From e51af80da771ee2ebd20242805a9ff6c04d17aa4 Mon Sep 17 00:00:00 2001 From: Robin Quint Date: Wed, 21 Dec 2022 15:14:31 +0100 Subject: [PATCH 01/18] upgraded imgui to 1.89.1, changed winit-support to use new event io --- imgui-sdl2-support/src/lib.rs | 2 +- imgui-sys/src/bindings.rs | 1218 ++-- imgui-sys/src/docking_bindings.rs | 6314 ++++++++-------- imgui-sys/src/wasm_bindings.rs | 1220 ++-- imgui-sys/src/wasm_docking_bindings.rs | 6318 ++++++++++------- .../third-party/imgui-docking/cimgui.cpp | 872 ++- imgui-sys/third-party/imgui-docking/cimgui.h | 1629 +++-- .../third-party/imgui-docking/cimgui_impl.h | 60 + .../imgui-docking/definitions.json | 5757 ++++++++++----- .../third-party/imgui-docking/definitions.lua | 5558 +++++++++------ .../imgui-docking/imgui/LICENSE.txt | 2 +- .../imgui-docking/imgui/imconfig.h | 29 +- .../third-party/imgui-docking/imgui/imgui.cpp | 4074 ++++++++--- .../third-party/imgui-docking/imgui/imgui.h | 890 ++- .../imgui-docking/imgui/imgui_demo.cpp | 948 ++- .../imgui-docking/imgui/imgui_draw.cpp | 223 +- .../imgui-docking/imgui/imgui_internal.h | 862 ++- .../imgui-docking/imgui/imgui_tables.cpp | 133 +- .../imgui-docking/imgui/imgui_widgets.cpp | 1280 ++-- .../imgui-docking/imgui/imstb_rectpack.h | 42 +- .../imgui-docking/imgui/imstb_textedit.h | 14 +- .../imgui-docking/imgui/imstb_truetype.h | 822 ++- .../imgui/misc/freetype/README.md | 6 +- .../imgui/misc/freetype/imgui_freetype.cpp | 5 +- .../imgui-docking/impl_definitions.json | 819 ++- .../imgui-docking/impl_definitions.lua | 712 ++ .../third-party/imgui-docking/overloads.txt | 384 +- .../imgui-docking/structs_and_enums.json | 2131 ++++-- .../imgui-docking/structs_and_enums.lua | 3795 ++++++---- .../imgui-docking/typedefs_dict.json | 29 +- .../imgui-docking/typedefs_dict.lua | 29 +- imgui-sys/third-party/imgui-master/cimgui.cpp | 306 +- imgui-sys/third-party/imgui-master/cimgui.h | 684 +- .../third-party/imgui-master/cimgui_impl.h | 60 + .../third-party/imgui-master/definitions.json | 2230 +++--- .../third-party/imgui-master/definitions.lua | 2049 +++--- .../imgui-master/imgui/LICENSE.txt | 2 +- .../third-party/imgui-master/imgui/imconfig.h | 29 +- .../third-party/imgui-master/imgui/imgui.cpp | 3561 +++++++--- .../third-party/imgui-master/imgui/imgui.h | 872 ++- .../imgui-master/imgui/imgui_demo.cpp | 944 ++- .../imgui-master/imgui/imgui_draw.cpp | 223 +- .../imgui-master/imgui/imgui_internal.h | 825 ++- .../imgui-master/imgui/imgui_tables.cpp | 133 +- .../imgui-master/imgui/imgui_widgets.cpp | 1263 ++-- .../imgui-master/imgui/imstb_rectpack.h | 42 +- .../imgui-master/imgui/imstb_textedit.h | 14 +- .../imgui-master/imgui/imstb_truetype.h | 822 ++- .../imgui/misc/freetype/README.md | 6 +- .../imgui/misc/freetype/imgui_freetype.cpp | 5 +- .../imgui-master/impl_definitions.json | 819 ++- .../imgui-master/impl_definitions.lua | 712 ++ .../third-party/imgui-master/overloads.txt | 190 +- .../imgui-master/structs_and_enums.json | 1187 +++- .../imgui-master/structs_and_enums.lua | 1399 ++-- .../imgui-master/typedefs_dict.json | 10 +- .../imgui-master/typedefs_dict.lua | 10 +- imgui-sys/third-party/update-imgui.sh | 4 +- imgui-winit-support/src/lib.rs | 81 +- imgui/src/draw_list.rs | 2 +- imgui/src/input/keyboard.rs | 263 +- imgui/src/io.rs | 181 +- imgui/src/lib.rs | 10 +- imgui/src/plothistogram.rs | 2 +- imgui/src/plotlines.rs | 2 +- imgui/src/popups.rs | 2 +- imgui/src/stacks.rs | 62 +- imgui/src/utils.rs | 4 +- imgui/src/widget/image.rs | 73 +- imgui/src/widget/menu.rs | 2 +- imgui/src/widget/misc.rs | 2 +- imgui/src/widget/selectable.rs | 2 +- imgui/src/widget/tree.rs | 10 +- imgui/src/window/child_window.rs | 2 +- xtask/src/bindgen.rs | 6 +- 75 files changed, 42396 insertions(+), 22888 deletions(-) diff --git a/imgui-sdl2-support/src/lib.rs b/imgui-sdl2-support/src/lib.rs index 7baf8f42f..a08ca5dd1 100644 --- a/imgui-sdl2-support/src/lib.rs +++ b/imgui-sdl2-support/src/lib.rs @@ -141,7 +141,7 @@ impl SdlPlatform { io[Key::Space] = Scancode::Space as _; io[Key::Enter] = Scancode::Return as _; io[Key::Escape] = Scancode::Escape as _; - io[Key::KeyPadEnter] = Scancode::KpEnter as _; + io[Key::KeypadEnter] = Scancode::KpEnter as _; io[Key::A] = Scancode::A as _; io[Key::C] = Scancode::C as _; io[Key::V] = Scancode::V as _; diff --git a/imgui-sys/src/bindings.rs b/imgui-sys/src/bindings.rs index 495362adc..fa6bf0626 100644 --- a/imgui-sys/src/bindings.rs +++ b/imgui-sys/src/bindings.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.1 */ +/* automatically generated by rust-bindgen 0.63.0 */ #![allow(nonstandard_style, clippy::all)] @@ -84,7 +84,7 @@ where } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImGuiContext { +pub struct ImDrawListSharedData { _unused: [u8; 0], } #[repr(C)] @@ -94,14 +94,13 @@ pub struct ImFontBuilderIO { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImDrawListSharedData { +pub struct ImGuiContext { _unused: [u8; 0], } pub type ImGuiCol = cty::c_int; pub type ImGuiCond = cty::c_int; pub type ImGuiDataType = cty::c_int; pub type ImGuiDir = cty::c_int; -pub type ImGuiKey = cty::c_int; pub type ImGuiMouseButton = cty::c_int; pub type ImGuiMouseCursor = cty::c_int; pub type ImGuiSortDirection = cty::c_int; @@ -119,7 +118,7 @@ pub type ImGuiDragDropFlags = cty::c_int; pub type ImGuiFocusedFlags = cty::c_int; pub type ImGuiHoveredFlags = cty::c_int; pub type ImGuiInputTextFlags = cty::c_int; -pub type ImGuiKeyModFlags = cty::c_int; +pub type ImGuiKeyChord = cty::c_int; pub type ImGuiPopupFlags = cty::c_int; pub type ImGuiSelectableFlags = cty::c_int; pub type ImGuiSliderFlags = cty::c_int; @@ -134,6 +133,7 @@ pub type ImGuiWindowFlags = cty::c_int; pub type ImTextureID = *mut cty::c_void; pub type ImDrawIdx = cty::c_ushort; pub type ImGuiID = cty::c_uint; +pub type ImS8 = cty::c_schar; pub type ImU8 = cty::c_uchar; pub type ImS16 = cty::c_short; pub type ImU16 = cty::c_ushort; @@ -152,281 +152,6 @@ pub type ImGuiMemAllocFunc = ::core::option::Option< pub type ImGuiMemFreeFunc = ::core::option::Option< unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), >; -pub type ImDrawCallback = ::core::option::Option< - unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawChannel { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawChannel, -} -impl Default for ImVector_ImDrawChannel { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawCmd { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawCmd, -} -impl Default for ImVector_ImDrawCmd { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawIdx { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawIdx, -} -impl Default for ImVector_ImDrawIdx { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawVert { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawVert, -} -impl Default for ImVector_ImDrawVert { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImFont, -} -impl Default for ImVector_ImFontPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontAtlasCustomRect { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontAtlasCustomRect, -} -impl Default for ImVector_ImFontAtlasCustomRect { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontConfig { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontConfig, -} -impl Default for ImVector_ImFontConfig { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontGlyph { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontGlyph, -} -impl Default for ImVector_ImFontGlyph { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiStoragePair { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiStoragePair, -} -impl Default for ImVector_ImGuiStoragePair { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTextRange { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTextRange, -} -impl Default for ImVector_ImGuiTextRange { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImTextureID { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImTextureID, -} -impl Default for ImVector_ImTextureID { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImU32 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImU32, -} -impl Default for ImVector_ImU32 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImVec2 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImVec2, -} -impl Default for ImVector_ImVec2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImVec4 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImVec4, -} -impl Default for ImVector_ImVec4 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImWchar { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImWchar, -} -impl Default for ImVector_ImWchar { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_char { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut cty::c_char, -} -impl Default for ImVector_char { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_float { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut f32, -} -impl Default for ImVector_float { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] pub struct ImVec2 { @@ -493,6 +218,7 @@ pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536; pub const ImGuiInputTextFlags_CharsScientific: ImGuiInputTextFlags_ = 131072; pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags_ = 262144; pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags_ = 524288; +pub const ImGuiInputTextFlags_EscapeClearsAll: ImGuiInputTextFlags_ = 1048576; pub type ImGuiInputTextFlags_ = cty::c_uint; pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags_ = 0; pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags_ = 1; @@ -651,8 +377,12 @@ pub const ImGuiHoveredFlags_AllowWhenBlockedByPopup: ImGuiHoveredFlags_ = 32; pub const ImGuiHoveredFlags_AllowWhenBlockedByActiveItem: ImGuiHoveredFlags_ = 128; pub const ImGuiHoveredFlags_AllowWhenOverlapped: ImGuiHoveredFlags_ = 256; pub const ImGuiHoveredFlags_AllowWhenDisabled: ImGuiHoveredFlags_ = 512; +pub const ImGuiHoveredFlags_NoNavOverride: ImGuiHoveredFlags_ = 1024; pub const ImGuiHoveredFlags_RectOnly: ImGuiHoveredFlags_ = 416; pub const ImGuiHoveredFlags_RootAndChildWindows: ImGuiHoveredFlags_ = 3; +pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags_ = 2048; +pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags_ = 4096; +pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags_ = 8192; pub type ImGuiHoveredFlags_ = cty::c_uint; pub const ImGuiDragDropFlags_None: ImGuiDragDropFlags_ = 0; pub const ImGuiDragDropFlags_SourceNoPreviewTooltip: ImGuiDragDropFlags_ = 1; @@ -689,59 +419,179 @@ pub const ImGuiSortDirection_None: ImGuiSortDirection_ = 0; pub const ImGuiSortDirection_Ascending: ImGuiSortDirection_ = 1; pub const ImGuiSortDirection_Descending: ImGuiSortDirection_ = 2; pub type ImGuiSortDirection_ = cty::c_uint; -pub const ImGuiKey_Tab: ImGuiKey_ = 0; -pub const ImGuiKey_LeftArrow: ImGuiKey_ = 1; -pub const ImGuiKey_RightArrow: ImGuiKey_ = 2; -pub const ImGuiKey_UpArrow: ImGuiKey_ = 3; -pub const ImGuiKey_DownArrow: ImGuiKey_ = 4; -pub const ImGuiKey_PageUp: ImGuiKey_ = 5; -pub const ImGuiKey_PageDown: ImGuiKey_ = 6; -pub const ImGuiKey_Home: ImGuiKey_ = 7; -pub const ImGuiKey_End: ImGuiKey_ = 8; -pub const ImGuiKey_Insert: ImGuiKey_ = 9; -pub const ImGuiKey_Delete: ImGuiKey_ = 10; -pub const ImGuiKey_Backspace: ImGuiKey_ = 11; -pub const ImGuiKey_Space: ImGuiKey_ = 12; -pub const ImGuiKey_Enter: ImGuiKey_ = 13; -pub const ImGuiKey_Escape: ImGuiKey_ = 14; -pub const ImGuiKey_KeyPadEnter: ImGuiKey_ = 15; -pub const ImGuiKey_A: ImGuiKey_ = 16; -pub const ImGuiKey_C: ImGuiKey_ = 17; -pub const ImGuiKey_V: ImGuiKey_ = 18; -pub const ImGuiKey_X: ImGuiKey_ = 19; -pub const ImGuiKey_Y: ImGuiKey_ = 20; -pub const ImGuiKey_Z: ImGuiKey_ = 21; -pub const ImGuiKey_COUNT: ImGuiKey_ = 22; -pub type ImGuiKey_ = cty::c_uint; -pub const ImGuiKeyModFlags_None: ImGuiKeyModFlags_ = 0; -pub const ImGuiKeyModFlags_Ctrl: ImGuiKeyModFlags_ = 1; -pub const ImGuiKeyModFlags_Shift: ImGuiKeyModFlags_ = 2; -pub const ImGuiKeyModFlags_Alt: ImGuiKeyModFlags_ = 4; -pub const ImGuiKeyModFlags_Super: ImGuiKeyModFlags_ = 8; -pub type ImGuiKeyModFlags_ = cty::c_uint; -pub const ImGuiNavInput_Activate: ImGuiNavInput_ = 0; -pub const ImGuiNavInput_Cancel: ImGuiNavInput_ = 1; -pub const ImGuiNavInput_Input: ImGuiNavInput_ = 2; -pub const ImGuiNavInput_Menu: ImGuiNavInput_ = 3; -pub const ImGuiNavInput_DpadLeft: ImGuiNavInput_ = 4; -pub const ImGuiNavInput_DpadRight: ImGuiNavInput_ = 5; -pub const ImGuiNavInput_DpadUp: ImGuiNavInput_ = 6; -pub const ImGuiNavInput_DpadDown: ImGuiNavInput_ = 7; -pub const ImGuiNavInput_LStickLeft: ImGuiNavInput_ = 8; -pub const ImGuiNavInput_LStickRight: ImGuiNavInput_ = 9; -pub const ImGuiNavInput_LStickUp: ImGuiNavInput_ = 10; -pub const ImGuiNavInput_LStickDown: ImGuiNavInput_ = 11; -pub const ImGuiNavInput_FocusPrev: ImGuiNavInput_ = 12; -pub const ImGuiNavInput_FocusNext: ImGuiNavInput_ = 13; -pub const ImGuiNavInput_TweakSlow: ImGuiNavInput_ = 14; -pub const ImGuiNavInput_TweakFast: ImGuiNavInput_ = 15; -pub const ImGuiNavInput_KeyLeft_: ImGuiNavInput_ = 16; -pub const ImGuiNavInput_KeyRight_: ImGuiNavInput_ = 17; -pub const ImGuiNavInput_KeyUp_: ImGuiNavInput_ = 18; -pub const ImGuiNavInput_KeyDown_: ImGuiNavInput_ = 19; -pub const ImGuiNavInput_COUNT: ImGuiNavInput_ = 20; -pub const ImGuiNavInput_InternalStart_: ImGuiNavInput_ = 16; -pub type ImGuiNavInput_ = cty::c_uint; +pub const ImGuiKey_None: ImGuiKey = 0; +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_Apostrophe: ImGuiKey = 584; +pub const ImGuiKey_Comma: ImGuiKey = 585; +pub const ImGuiKey_Minus: ImGuiKey = 586; +pub const ImGuiKey_Period: ImGuiKey = 587; +pub const ImGuiKey_Slash: ImGuiKey = 588; +pub const ImGuiKey_Semicolon: ImGuiKey = 589; +pub const ImGuiKey_Equal: ImGuiKey = 590; +pub const ImGuiKey_LeftBracket: ImGuiKey = 591; +pub const ImGuiKey_Backslash: ImGuiKey = 592; +pub const ImGuiKey_RightBracket: ImGuiKey = 593; +pub const ImGuiKey_GraveAccent: ImGuiKey = 594; +pub const ImGuiKey_CapsLock: ImGuiKey = 595; +pub const ImGuiKey_ScrollLock: ImGuiKey = 596; +pub const ImGuiKey_NumLock: ImGuiKey = 597; +pub const ImGuiKey_PrintScreen: ImGuiKey = 598; +pub const ImGuiKey_Pause: ImGuiKey = 599; +pub const ImGuiKey_Keypad0: ImGuiKey = 600; +pub const ImGuiKey_Keypad1: ImGuiKey = 601; +pub const ImGuiKey_Keypad2: ImGuiKey = 602; +pub const ImGuiKey_Keypad3: ImGuiKey = 603; +pub const ImGuiKey_Keypad4: ImGuiKey = 604; +pub const ImGuiKey_Keypad5: ImGuiKey = 605; +pub const ImGuiKey_Keypad6: ImGuiKey = 606; +pub const ImGuiKey_Keypad7: ImGuiKey = 607; +pub const ImGuiKey_Keypad8: ImGuiKey = 608; +pub const ImGuiKey_Keypad9: ImGuiKey = 609; +pub const ImGuiKey_KeypadDecimal: ImGuiKey = 610; +pub const ImGuiKey_KeypadDivide: ImGuiKey = 611; +pub const ImGuiKey_KeypadMultiply: ImGuiKey = 612; +pub const ImGuiKey_KeypadSubtract: ImGuiKey = 613; +pub const ImGuiKey_KeypadAdd: ImGuiKey = 614; +pub const ImGuiKey_KeypadEnter: ImGuiKey = 615; +pub const ImGuiKey_KeypadEqual: ImGuiKey = 616; +pub const ImGuiKey_GamepadStart: ImGuiKey = 617; +pub const ImGuiKey_GamepadBack: ImGuiKey = 618; +pub const ImGuiKey_GamepadFaceLeft: ImGuiKey = 619; +pub const ImGuiKey_GamepadFaceRight: ImGuiKey = 620; +pub const ImGuiKey_GamepadFaceUp: ImGuiKey = 621; +pub const ImGuiKey_GamepadFaceDown: ImGuiKey = 622; +pub const ImGuiKey_GamepadDpadLeft: ImGuiKey = 623; +pub const ImGuiKey_GamepadDpadRight: ImGuiKey = 624; +pub const ImGuiKey_GamepadDpadUp: ImGuiKey = 625; +pub const ImGuiKey_GamepadDpadDown: ImGuiKey = 626; +pub const ImGuiKey_GamepadL1: ImGuiKey = 627; +pub const ImGuiKey_GamepadR1: ImGuiKey = 628; +pub const ImGuiKey_GamepadL2: ImGuiKey = 629; +pub const ImGuiKey_GamepadR2: ImGuiKey = 630; +pub const ImGuiKey_GamepadL3: ImGuiKey = 631; +pub const ImGuiKey_GamepadR3: ImGuiKey = 632; +pub const ImGuiKey_GamepadLStickLeft: ImGuiKey = 633; +pub const ImGuiKey_GamepadLStickRight: ImGuiKey = 634; +pub const ImGuiKey_GamepadLStickUp: ImGuiKey = 635; +pub const ImGuiKey_GamepadLStickDown: ImGuiKey = 636; +pub const ImGuiKey_GamepadRStickLeft: ImGuiKey = 637; +pub const ImGuiKey_GamepadRStickRight: ImGuiKey = 638; +pub const ImGuiKey_GamepadRStickUp: ImGuiKey = 639; +pub const ImGuiKey_GamepadRStickDown: ImGuiKey = 640; +pub const ImGuiKey_MouseLeft: ImGuiKey = 641; +pub const ImGuiKey_MouseRight: ImGuiKey = 642; +pub const ImGuiKey_MouseMiddle: ImGuiKey = 643; +pub const ImGuiKey_MouseX1: ImGuiKey = 644; +pub const ImGuiKey_MouseX2: ImGuiKey = 645; +pub const ImGuiKey_MouseWheelX: ImGuiKey = 646; +pub const ImGuiKey_MouseWheelY: ImGuiKey = 647; +pub const ImGuiKey_ReservedForModCtrl: ImGuiKey = 648; +pub const ImGuiKey_ReservedForModShift: ImGuiKey = 649; +pub const ImGuiKey_ReservedForModAlt: ImGuiKey = 650; +pub const ImGuiKey_ReservedForModSuper: ImGuiKey = 651; +pub const ImGuiKey_COUNT: ImGuiKey = 652; +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 ImGuiMod_Shortcut: ImGuiKey = 4096; +pub const ImGuiKey_NamedKey_BEGIN: ImGuiKey = 512; +pub const ImGuiKey_NamedKey_END: ImGuiKey = 652; +pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 140; +pub const ImGuiKey_KeysData_SIZE: ImGuiKey = 652; +pub const ImGuiKey_KeysData_OFFSET: ImGuiKey = 0; +pub type ImGuiKey = cty::c_uint; +pub const ImGuiNavInput_Activate: ImGuiNavInput = 0; +pub const ImGuiNavInput_Cancel: ImGuiNavInput = 1; +pub const ImGuiNavInput_Input: ImGuiNavInput = 2; +pub const ImGuiNavInput_Menu: ImGuiNavInput = 3; +pub const ImGuiNavInput_DpadLeft: ImGuiNavInput = 4; +pub const ImGuiNavInput_DpadRight: ImGuiNavInput = 5; +pub const ImGuiNavInput_DpadUp: ImGuiNavInput = 6; +pub const ImGuiNavInput_DpadDown: ImGuiNavInput = 7; +pub const ImGuiNavInput_LStickLeft: ImGuiNavInput = 8; +pub const ImGuiNavInput_LStickRight: ImGuiNavInput = 9; +pub const ImGuiNavInput_LStickUp: ImGuiNavInput = 10; +pub const ImGuiNavInput_LStickDown: ImGuiNavInput = 11; +pub const ImGuiNavInput_FocusPrev: ImGuiNavInput = 12; +pub const ImGuiNavInput_FocusNext: ImGuiNavInput = 13; +pub const ImGuiNavInput_TweakSlow: ImGuiNavInput = 14; +pub const ImGuiNavInput_TweakFast: ImGuiNavInput = 15; +pub const ImGuiNavInput_COUNT: ImGuiNavInput = 16; +pub type ImGuiNavInput = cty::c_uint; pub const ImGuiConfigFlags_None: ImGuiConfigFlags_ = 0; pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags_ = 1; pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags_ = 2; @@ -962,6 +812,30 @@ impl Default for ImGuiStyle { } } #[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiKeyData { + pub Down: bool, + pub DownDuration: f32, + pub DownDurationPrev: f32, + pub AnalogValue: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImWchar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImWchar, +} +impl Default for ImVector_ImWchar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiIO { pub ConfigFlags: ImGuiConfigFlags, @@ -974,9 +848,10 @@ pub struct ImGuiIO { pub MouseDoubleClickTime: f32, pub MouseDoubleClickMaxDist: f32, pub MouseDragThreshold: f32, - pub KeyMap: [cty::c_int; 22usize], pub KeyRepeatDelay: f32, pub KeyRepeatRate: f32, + pub HoverDelayNormal: f32, + pub HoverDelayShort: f32, pub UserData: *mut cty::c_void, pub Fonts: *mut ImFontAtlas, pub FontGlobalScale: f32, @@ -985,7 +860,9 @@ pub struct ImGuiIO { pub DisplayFramebufferScale: ImVec2, pub MouseDrawCursor: bool, pub ConfigMacOSXBehaviors: bool, + pub ConfigInputTrickleEventQueue: bool, pub ConfigInputTextCursorBlink: bool, + pub ConfigInputTextEnterKeepActive: bool, pub ConfigDragClickToInputText: bool, pub ConfigWindowsResizeFromEdges: bool, pub ConfigWindowsMoveFromTitleBarOnly: bool, @@ -1002,19 +879,10 @@ pub struct ImGuiIO { unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), >, pub ClipboardUserData: *mut cty::c_void, - pub ImeSetInputScreenPosFn: - ::core::option::Option, - pub ImeWindowHandle: *mut cty::c_void, - pub MousePos: ImVec2, - pub MouseDown: [bool; 5usize], - pub MouseWheel: f32, - pub MouseWheelH: f32, - pub KeyCtrl: bool, - pub KeyShift: bool, - pub KeyAlt: bool, - pub KeySuper: bool, - pub KeysDown: [bool; 512usize], - pub NavInputs: [f32; 20usize], + pub SetPlatformImeDataFn: ::core::option::Option< + unsafe extern "C" fn(viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData), + >, + pub _UnusedPadding: *mut cty::c_void, pub WantCaptureMouse: bool, pub WantCaptureKeyboard: bool, pub WantTextInput: bool, @@ -1029,9 +897,20 @@ pub struct ImGuiIO { pub MetricsActiveWindows: cty::c_int, pub MetricsActiveAllocations: cty::c_int, pub MouseDelta: ImVec2, + pub KeyMap: [cty::c_int; 652usize], + pub KeysDown: [bool; 652usize], + pub NavInputs: [f32; 16usize], + pub MousePos: ImVec2, + pub MouseDown: [bool; 5usize], + pub MouseWheel: f32, + pub MouseWheelH: f32, + pub KeyCtrl: bool, + pub KeyShift: bool, + pub KeyAlt: bool, + pub KeySuper: bool, + pub KeyMods: ImGuiKeyChord, + pub KeysData: [ImGuiKeyData; 652usize], pub WantCaptureMouseUnlessPopupClose: bool, - pub KeyMods: ImGuiKeyModFlags, - pub KeyModsPrev: ImGuiKeyModFlags, pub MousePosPrev: ImVec2, pub MouseClickedPos: [ImVec2; 5usize], pub MouseClickedTime: [f64; 5usize], @@ -1044,14 +923,12 @@ pub struct ImGuiIO { pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], pub MouseDownDuration: [f32; 5usize], pub MouseDownDurationPrev: [f32; 5usize], - pub MouseDragMaxDistanceAbs: [ImVec2; 5usize], pub MouseDragMaxDistanceSqr: [f32; 5usize], - pub KeysDownDuration: [f32; 512usize], - pub KeysDownDurationPrev: [f32; 512usize], - pub NavInputsDownDuration: [f32; 20usize], - pub NavInputsDownDurationPrev: [f32; 20usize], pub PenPressure: f32, pub AppFocusLost: bool, + pub AppAcceptingEvents: bool, + pub BackendUsingLegacyKeyArrays: ImS8, + pub BackendUsingLegacyNavInputArray: bool, pub InputQueueSurrogate: ImWchar16, pub InputQueueCharacters: ImVector_ImWchar, } @@ -1199,6 +1076,22 @@ impl Default for ImGuiTextRange { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTextRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTextRange, +} +impl Default for ImVector_ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiTextFilter { pub InputBuf: [cty::c_char; 256usize], pub Filters: ImVector_ImGuiTextRange, @@ -1215,6 +1108,22 @@ impl Default for ImGuiTextFilter { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_char, +} +impl Default for ImVector_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiTextBuffer { pub Buf: ImVector_char, } @@ -1274,6 +1183,22 @@ impl ::core::fmt::Debug for ImGuiStoragePair { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStoragePair { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStoragePair, +} +impl Default for ImVector_ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiStorage { pub Data: ImVector_ImGuiStoragePair, } @@ -1310,6 +1235,9 @@ impl Default for ImGuiListClipper { pub struct ImColor { pub Value: ImVec4, } +pub type ImDrawCallback = ::core::option::Option< + unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImDrawCmd { @@ -1338,13 +1266,145 @@ pub struct ImDrawVert { pub col: ImU32, } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawCmdHeader { - pub ClipRect: ImVec4, - pub TextureId: ImTextureID, - pub VtxOffset: cty::c_uint, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmdHeader { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, +} +impl Default for ImDrawCmdHeader { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawCmd { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawCmd, +} +impl Default for ImVector_ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawIdx { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawIdx, +} +impl Default for ImVector_ImDrawIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawChannel { + pub _CmdBuffer: ImVector_ImDrawCmd, + pub _IdxBuffer: ImVector_ImDrawIdx, +} +impl Default for ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawChannel { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawChannel, +} +impl Default for ImVector_ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawListSplitter { + pub _Current: cty::c_int, + pub _Count: cty::c_int, + pub _Channels: ImVector_ImDrawChannel, +} +impl Default for ImDrawListSplitter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImDrawFlags_None: ImDrawFlags_ = 0; +pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; +pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; +pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; +pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; +pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; +pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; +pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; +pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; +pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; +pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; +pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; +pub type ImDrawFlags_ = cty::c_uint; +pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; +pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; +pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; +pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; +pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; +pub type ImDrawListFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawVert { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawVert, +} +impl Default for ImVector_ImDrawVert { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec4 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec4, } -impl Default for ImDrawCmdHeader { +impl Default for ImVector_ImVec4 { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1355,11 +1415,12 @@ impl Default for ImDrawCmdHeader { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImDrawChannel { - pub _CmdBuffer: ImVector_ImDrawCmd, - pub _IdxBuffer: ImVector_ImDrawIdx, +pub struct ImVector_ImTextureID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImTextureID, } -impl Default for ImDrawChannel { +impl Default for ImVector_ImTextureID { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1370,12 +1431,12 @@ impl Default for ImDrawChannel { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImDrawListSplitter { - pub _Current: cty::c_int, - pub _Count: cty::c_int, - pub _Channels: ImVector_ImDrawChannel, +pub struct ImVector_ImVec2 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec2, } -impl Default for ImDrawListSplitter { +impl Default for ImVector_ImVec2 { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1384,27 +1445,6 @@ impl Default for ImDrawListSplitter { } } } -pub const ImDrawFlags_None: ImDrawFlags_ = 0; -pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; -pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; -pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; -pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; -pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; -pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; -pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; -pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; -pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; -pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; -pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; -pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; -pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; -pub type ImDrawFlags_ = cty::c_uint; -pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; -pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; -pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; -pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; -pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; -pub type ImDrawListFlags_ = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImDrawList { @@ -1413,7 +1453,7 @@ pub struct ImDrawList { pub VtxBuffer: ImVector_ImDrawVert, pub Flags: ImDrawListFlags, pub _VtxCurrentIdx: cty::c_uint, - pub _Data: *const ImDrawListSharedData, + pub _Data: *mut ImDrawListSharedData, pub _OwnerName: *const cty::c_char, pub _VtxWritePtr: *mut ImDrawVert, pub _IdxWritePtr: *mut ImDrawIdx, @@ -1559,6 +1599,22 @@ impl ImFontGlyph { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImU32 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImU32, +} +impl Default for ImVector_ImU32 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImFontGlyphRangesBuilder { pub UsedChars: ImVector_ImU32, } @@ -1598,6 +1654,54 @@ pub const ImFontAtlasFlags_NoMouseCursors: ImFontAtlasFlags_ = 2; pub const ImFontAtlasFlags_NoBakedLines: ImFontAtlasFlags_ = 4; pub type ImFontAtlasFlags_ = cty::c_uint; #[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImFont, +} +impl Default for ImVector_ImFontPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontAtlasCustomRect { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontAtlasCustomRect, +} +impl Default for ImVector_ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontConfig { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontConfig, +} +impl Default for ImVector_ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImFontAtlas { pub Flags: ImFontAtlasFlags, @@ -1632,6 +1736,38 @@ impl Default for ImFontAtlas { } } #[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_float { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut f32, +} +impl Default for ImVector_float { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontGlyph { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontGlyph, +} +impl Default for ImVector_ImFontGlyph { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImFont { pub IndexAdvanceX: ImVector_float, @@ -1668,31 +1804,48 @@ pub const ImGuiViewportFlags_IsPlatformMonitor: ImGuiViewportFlags_ = 2; pub const ImGuiViewportFlags_OwnedByApp: ImGuiViewportFlags_ = 4; pub type ImGuiViewportFlags_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] +#[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiViewport { pub Flags: ImGuiViewportFlags, pub Pos: ImVec2, pub Size: ImVec2, pub WorkPos: ImVec2, pub WorkSize: ImVec2, + pub PlatformHandleRaw: *mut cty::c_void, +} +impl Default for ImGuiViewport { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformImeData { + pub WantVisible: bool, + pub InputPos: ImVec2, + pub InputLineHeight: f32, } extern "C" { - pub fn ImVec2_ImVec2Nil() -> *mut ImVec2; + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; } extern "C" { pub fn ImVec2_destroy(self_: *mut ImVec2); } extern "C" { - pub fn ImVec2_ImVec2Float(_x: f32, _y: f32) -> *mut ImVec2; + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; } extern "C" { - pub fn ImVec4_ImVec4Nil() -> *mut ImVec4; + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; } extern "C" { pub fn ImVec4_destroy(self_: *mut ImVec4); } extern "C" { - pub fn ImVec4_ImVec4Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; } extern "C" { pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; @@ -1730,6 +1883,9 @@ extern "C" { extern "C" { pub fn igShowMetricsWindow(p_open: *mut bool); } +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} extern "C" { pub fn igShowStackToolWindow(p_open: *mut bool); } @@ -1767,7 +1923,7 @@ extern "C" { pub fn igEnd(); } extern "C" { - pub fn igBeginChildStr( + pub fn igBeginChild_Str( str_id: *const cty::c_char, size: ImVec2, border: bool, @@ -1775,8 +1931,12 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igBeginChildID(id: ImGuiID, size: ImVec2, border: bool, flags: ImGuiWindowFlags) - -> bool; + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; } extern "C" { pub fn igEndChild(); @@ -1831,35 +1991,38 @@ extern "C" { extern "C" { pub fn igSetNextWindowFocus(); } +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} extern "C" { pub fn igSetNextWindowBgAlpha(alpha: f32); } extern "C" { - pub fn igSetWindowPosVec2(pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowSizeVec2(size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowCollapsedBool(collapsed: bool, cond: ImGuiCond); + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowFocusNil(); + pub fn igSetWindowFocus_Nil(); } extern "C" { pub fn igSetWindowFontScale(scale: f32); } extern "C" { - pub fn igSetWindowPosStr(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowSizeStr(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowCollapsedStr(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowFocusStr(name: *const cty::c_char); + pub fn igSetWindowFocus_Str(name: *const cty::c_char); } extern "C" { pub fn igGetContentRegionAvail(pOut: *mut ImVec2); @@ -1910,19 +2073,19 @@ extern "C" { pub fn igPopFont(); } extern "C" { - pub fn igPushStyleColorU32(idx: ImGuiCol, col: ImU32); + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); } extern "C" { - pub fn igPushStyleColorVec4(idx: ImGuiCol, col: ImVec4); + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); } extern "C" { pub fn igPopStyleColor(count: cty::c_int); } extern "C" { - pub fn igPushStyleVarFloat(idx: ImGuiStyleVar, val: f32); + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); } extern "C" { - pub fn igPushStyleVarVec2(idx: ImGuiStyleVar, val: ImVec2); + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); } extern "C" { pub fn igPopStyleVar(count: cty::c_int); @@ -1967,13 +2130,13 @@ extern "C" { pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); } extern "C" { - pub fn igGetColorU32Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; } extern "C" { - pub fn igGetColorU32Vec4(col: ImVec4) -> ImU32; + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; } extern "C" { - pub fn igGetColorU32U32(col: ImU32) -> ImU32; + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; } extern "C" { pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; @@ -2048,31 +2211,31 @@ extern "C" { pub fn igGetFrameHeightWithSpacing() -> f32; } extern "C" { - pub fn igPushIDStr(str_id: *const cty::c_char); + pub fn igPushID_Str(str_id: *const cty::c_char); } extern "C" { - pub fn igPushIDStrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); } extern "C" { - pub fn igPushIDPtr(ptr_id: *const cty::c_void); + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); } extern "C" { - pub fn igPushIDInt(int_id: cty::c_int); + pub fn igPushID_Int(int_id: cty::c_int); } extern "C" { pub fn igPopID(); } extern "C" { - pub fn igGetIDStr(str_id: *const cty::c_char) -> ImGuiID; + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; } extern "C" { - pub fn igGetIDStrStr( + pub fn igGetID_StrStr( str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char, ) -> ImGuiID; } extern "C" { - pub fn igGetIDPtr(ptr_id: *const cty::c_void) -> ImGuiID; + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; } extern "C" { pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); @@ -2111,49 +2274,28 @@ extern "C" { extern "C" { pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; } -extern "C" { - pub fn igImage( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - tint_col: ImVec4, - border_col: ImVec4, - ); -} -extern "C" { - pub fn igImageButton( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - frame_padding: cty::c_int, - bg_col: ImVec4, - tint_col: ImVec4, - ) -> bool; -} extern "C" { pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; } extern "C" { - pub fn igCheckboxFlagsIntPtr( + pub fn igCheckboxFlags_IntPtr( label: *const cty::c_char, flags: *mut cty::c_int, flags_value: cty::c_int, ) -> bool; } extern "C" { - pub fn igCheckboxFlagsUintPtr( + pub fn igCheckboxFlags_UintPtr( label: *const cty::c_char, flags: *mut cty::c_uint, flags_value: cty::c_uint, ) -> bool; } extern "C" { - pub fn igRadioButtonBool(label: *const cty::c_char, active: bool) -> bool; + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; } extern "C" { - pub fn igRadioButtonIntPtr( + pub fn igRadioButton_IntPtr( label: *const cty::c_char, v: *mut cty::c_int, v_button: cty::c_int, @@ -2165,6 +2307,27 @@ extern "C" { extern "C" { pub fn igBullet(); } +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} extern "C" { pub fn igBeginCombo( label: *const cty::c_char, @@ -2176,7 +2339,7 @@ extern "C" { pub fn igEndCombo(); } extern "C" { - pub fn igComboStr_arr( + pub fn igCombo_Str_arr( label: *const cty::c_char, current_item: *mut cty::c_int, items: *const *const cty::c_char, @@ -2185,7 +2348,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igComboStr( + pub fn igCombo_Str( label: *const cty::c_char, current_item: *mut cty::c_int, items_separated_by_zeros: *const cty::c_char, @@ -2193,7 +2356,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igComboFnBoolPtr( + pub fn igCombo_FnBoolPtr( label: *const cty::c_char, current_item: *mut cty::c_int, items_getter: ::core::option::Option< @@ -2664,19 +2827,19 @@ extern "C" { pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); } extern "C" { - pub fn igTreeNodeStr(label: *const cty::c_char) -> bool; + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; } extern "C" { - pub fn igTreeNodeStrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; } extern "C" { - pub fn igTreeNodePtr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; } extern "C" { - pub fn igTreeNodeExStr(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; } extern "C" { - pub fn igTreeNodeExStrStr( + pub fn igTreeNodeEx_StrStr( str_id: *const cty::c_char, flags: ImGuiTreeNodeFlags, fmt: *const cty::c_char, @@ -2684,7 +2847,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igTreeNodeExPtr( + pub fn igTreeNodeEx_Ptr( ptr_id: *const cty::c_void, flags: ImGuiTreeNodeFlags, fmt: *const cty::c_char, @@ -2692,10 +2855,10 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igTreePushStr(str_id: *const cty::c_char); + pub fn igTreePush_Str(str_id: *const cty::c_char); } extern "C" { - pub fn igTreePushPtr(ptr_id: *const cty::c_void); + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); } extern "C" { pub fn igTreePop(); @@ -2704,13 +2867,13 @@ extern "C" { pub fn igGetTreeNodeToLabelSpacing() -> f32; } extern "C" { - pub fn igCollapsingHeaderTreeNodeFlags( + pub fn igCollapsingHeader_TreeNodeFlags( label: *const cty::c_char, flags: ImGuiTreeNodeFlags, ) -> bool; } extern "C" { - pub fn igCollapsingHeaderBoolPtr( + pub fn igCollapsingHeader_BoolPtr( label: *const cty::c_char, p_visible: *mut bool, flags: ImGuiTreeNodeFlags, @@ -2720,7 +2883,7 @@ extern "C" { pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); } extern "C" { - pub fn igSelectableBool( + pub fn igSelectable_Bool( label: *const cty::c_char, selected: bool, flags: ImGuiSelectableFlags, @@ -2728,7 +2891,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igSelectableBoolPtr( + pub fn igSelectable_BoolPtr( label: *const cty::c_char, p_selected: *mut bool, flags: ImGuiSelectableFlags, @@ -2742,7 +2905,7 @@ extern "C" { pub fn igEndListBox(); } extern "C" { - pub fn igListBoxStr_arr( + pub fn igListBox_Str_arr( label: *const cty::c_char, current_item: *mut cty::c_int, items: *const *const cty::c_char, @@ -2751,7 +2914,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igListBoxFnBoolPtr( + pub fn igListBox_FnBoolPtr( label: *const cty::c_char, current_item: *mut cty::c_int, items_getter: ::core::option::Option< @@ -2767,7 +2930,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igPlotLinesFloatPtr( + pub fn igPlotLines_FloatPtr( label: *const cty::c_char, values: *const f32, values_count: cty::c_int, @@ -2780,7 +2943,7 @@ extern "C" { ); } extern "C" { - pub fn igPlotLinesFnFloatPtr( + pub fn igPlotLines_FnFloatPtr( label: *const cty::c_char, values_getter: ::core::option::Option< unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, @@ -2795,7 +2958,7 @@ extern "C" { ); } extern "C" { - pub fn igPlotHistogramFloatPtr( + pub fn igPlotHistogram_FloatPtr( label: *const cty::c_char, values: *const f32, values_count: cty::c_int, @@ -2808,7 +2971,7 @@ extern "C" { ); } extern "C" { - pub fn igPlotHistogramFnFloatPtr( + pub fn igPlotHistogram_FnFloatPtr( label: *const cty::c_char, values_getter: ::core::option::Option< unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, @@ -2823,16 +2986,16 @@ extern "C" { ); } extern "C" { - pub fn igValueBool(prefix: *const cty::c_char, b: bool); + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); } extern "C" { - pub fn igValueInt(prefix: *const cty::c_char, v: cty::c_int); + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); } extern "C" { - pub fn igValueUint(prefix: *const cty::c_char, v: cty::c_uint); + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); } extern "C" { - pub fn igValueFloat(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); } extern "C" { pub fn igBeginMenuBar() -> bool; @@ -2853,7 +3016,7 @@ extern "C" { pub fn igEndMenu(); } extern "C" { - pub fn igMenuItemBool( + pub fn igMenuItem_Bool( label: *const cty::c_char, shortcut: *const cty::c_char, selected: bool, @@ -2861,7 +3024,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igMenuItemBoolPtr( + pub fn igMenuItem_BoolPtr( label: *const cty::c_char, shortcut: *const cty::c_char, p_selected: *mut bool, @@ -2891,10 +3054,10 @@ extern "C" { pub fn igEndPopup(); } extern "C" { - pub fn igOpenPopupStr(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); } extern "C" { - pub fn igOpenPopupID(id: ImGuiID, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); } extern "C" { pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); @@ -3152,22 +3315,22 @@ extern "C" { pub fn igGetMainViewport() -> *mut ImGuiViewport; } extern "C" { - pub fn igIsRectVisibleNil(size: ImVec2) -> bool; + pub fn igGetBackgroundDrawList() -> *mut ImDrawList; } extern "C" { - pub fn igIsRectVisibleVec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; + pub fn igGetForegroundDrawList() -> *mut ImDrawList; } extern "C" { - pub fn igGetTime() -> f64; + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; } extern "C" { - pub fn igGetFrameCount() -> cty::c_int; + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; } extern "C" { - pub fn igGetBackgroundDrawList() -> *mut ImDrawList; + pub fn igGetTime() -> f64; } extern "C" { - pub fn igGetForegroundDrawList() -> *mut ImDrawList; + pub fn igGetFrameCount() -> cty::c_int; } extern "C" { pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; @@ -3223,23 +3386,22 @@ extern "C" { ); } extern "C" { - pub fn igGetKeyIndex(imgui_key: ImGuiKey) -> cty::c_int; + pub fn igIsKeyDown(key: ImGuiKey) -> bool; } extern "C" { - pub fn igIsKeyDown(user_key_index: cty::c_int) -> bool; + pub fn igIsKeyPressed(key: ImGuiKey, repeat: bool) -> bool; } extern "C" { - pub fn igIsKeyPressed(user_key_index: cty::c_int, repeat: bool) -> bool; + pub fn igIsKeyReleased(key: ImGuiKey) -> bool; } extern "C" { - pub fn igIsKeyReleased(user_key_index: cty::c_int) -> bool; + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; } extern "C" { - pub fn igGetKeyPressedAmount(key_index: cty::c_int, repeat_delay: f32, rate: f32) - -> cty::c_int; + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; } extern "C" { - pub fn igCaptureKeyboardFromApp(want_capture_keyboard_value: bool); + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); } extern "C" { pub fn igIsMouseDown(button: ImGuiMouseButton) -> bool; @@ -3287,7 +3449,7 @@ extern "C" { pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); } extern "C" { - pub fn igCaptureMouseFromApp(want_capture_mouse_value: bool); + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); } extern "C" { pub fn igGetClipboardText() -> *const cty::c_char; @@ -3307,6 +3469,9 @@ extern "C" { extern "C" { pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; } +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} extern "C" { pub fn igDebugCheckVersionAndDataLayout( version_str: *const cty::c_char, @@ -3347,6 +3512,24 @@ extern "C" { extern "C" { pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); } +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} extern "C" { pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); } @@ -3357,7 +3540,16 @@ extern "C" { pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); } extern "C" { - pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); } extern "C" { pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); @@ -3469,13 +3661,13 @@ extern "C" { pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; } extern "C" { - pub fn ImGuiTextRange_ImGuiTextRangeNil() -> *mut ImGuiTextRange; + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; } extern "C" { pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); } extern "C" { - pub fn ImGuiTextRange_ImGuiTextRangeStr( + pub fn ImGuiTextRange_ImGuiTextRange_Str( _b: *const cty::c_char, _e: *const cty::c_char, ) -> *mut ImGuiTextRange; @@ -3525,7 +3717,7 @@ extern "C" { ); } extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairInt( + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( _key: ImGuiID, _val_i: cty::c_int, ) -> *mut ImGuiStoragePair; @@ -3534,13 +3726,13 @@ extern "C" { pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); } extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairFloat( + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( _key: ImGuiID, _val_f: f32, ) -> *mut ImGuiStoragePair; } extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairPtr( + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( _key: ImGuiID, _val_p: *mut cty::c_void, ) -> *mut ImGuiStoragePair; @@ -3637,13 +3829,19 @@ extern "C" { ); } extern "C" { - pub fn ImColor_ImColorNil() -> *mut ImColor; + pub fn ImColor_ImColor_Nil() -> *mut ImColor; } extern "C" { pub fn ImColor_destroy(self_: *mut ImColor); } extern "C" { - pub fn ImColor_ImColorInt( + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Int( r: cty::c_int, g: cty::c_int, b: cty::c_int, @@ -3651,13 +3849,7 @@ extern "C" { ) -> *mut ImColor; } extern "C" { - pub fn ImColor_ImColorU32(rgba: ImU32) -> *mut ImColor; -} -extern "C" { - pub fn ImColor_ImColorFloat(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; -} -extern "C" { - pub fn ImColor_ImColorVec4(col: ImVec4) -> *mut ImColor; + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; } extern "C" { pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); @@ -3704,7 +3896,7 @@ extern "C" { ); } extern "C" { - pub fn ImDrawList_ImDrawList(shared_data: *const ImDrawListSharedData) -> *mut ImDrawList; + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; } extern "C" { pub fn ImDrawList_destroy(self_: *mut ImDrawList); @@ -3855,7 +4047,7 @@ extern "C" { ); } extern "C" { - pub fn ImDrawList_AddTextVec2( + pub fn ImDrawList_AddText_Vec2( self_: *mut ImDrawList, pos: ImVec2, col: ImU32, @@ -3864,7 +4056,7 @@ extern "C" { ); } extern "C" { - pub fn ImDrawList_AddTextFontPtr( + pub fn ImDrawList_AddText_FontPtr( self_: *mut ImDrawList, font: *const ImFont, font_size: f32, @@ -4305,6 +4497,9 @@ extern "C" { extern "C" { pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; } +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} extern "C" { pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; } @@ -4486,6 +4681,15 @@ extern "C" { extern "C" { pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); } +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); +} +extern "C" { + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; +} extern "C" { pub fn igLogText(fmt: *const cty::c_char, ...); } diff --git a/imgui-sys/src/docking_bindings.rs b/imgui-sys/src/docking_bindings.rs index 6c131a2d2..2134ff715 100644 --- a/imgui-sys/src/docking_bindings.rs +++ b/imgui-sys/src/docking_bindings.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.1 */ +/* automatically generated by rust-bindgen 0.63.0 */ #![allow(nonstandard_style, clippy::all)] @@ -82,8 +82,6 @@ where } } } -pub type __int64_t = cty::c_long; -pub type __uint64_t = cty::c_ulong; pub type __off_t = cty::c_long; pub type __off64_t = cty::c_long; pub type FILE = _IO_FILE; @@ -147,20 +145,34 @@ impl Default for _IO_FILE { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImGuiDockNodeSettings { +pub struct ImGuiDockRequest { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImGuiDockRequest { +pub struct ImGuiDockNodeSettings { _unused: [u8; 0], } +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_const_charPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *const cty::c_char, +} +impl Default for ImVector_const_charPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} pub type ImGuiCol = cty::c_int; pub type ImGuiCond = cty::c_int; pub type ImGuiDataType = cty::c_int; pub type ImGuiDir = cty::c_int; -pub type ImGuiKey = cty::c_int; -pub type ImGuiNavInput = cty::c_int; pub type ImGuiMouseButton = cty::c_int; pub type ImGuiMouseCursor = cty::c_int; pub type ImGuiSortDirection = cty::c_int; @@ -179,7 +191,7 @@ pub type ImGuiDragDropFlags = cty::c_int; pub type ImGuiFocusedFlags = cty::c_int; pub type ImGuiHoveredFlags = cty::c_int; pub type ImGuiInputTextFlags = cty::c_int; -pub type ImGuiKeyModFlags = cty::c_int; +pub type ImGuiKeyChord = cty::c_int; pub type ImGuiPopupFlags = cty::c_int; pub type ImGuiSelectableFlags = cty::c_int; pub type ImGuiSliderFlags = cty::c_int; @@ -200,8 +212,8 @@ pub type ImS16 = cty::c_short; pub type ImU16 = cty::c_ushort; pub type ImS32 = cty::c_int; pub type ImU32 = cty::c_uint; -pub type ImS64 = i64; -pub type ImU64 = u64; +pub type ImS64 = cty::c_longlong; +pub type ImU64 = cty::c_ulonglong; pub type ImWchar16 = cty::c_ushort; pub type ImWchar32 = cty::c_uint; pub type ImWchar = ImWchar32; @@ -216,872 +228,19 @@ pub type ImGuiMemAllocFunc = ::core::option::Option< pub type ImGuiMemFreeFunc = ::core::option::Option< unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), >; -pub type ImDrawCallback = ::core::option::Option< - unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), ->; -pub type ImGuiDataAuthority = cty::c_int; -pub type ImGuiLayoutType = cty::c_int; -pub type ImGuiActivateFlags = cty::c_int; -pub type ImGuiItemFlags = cty::c_int; -pub type ImGuiItemStatusFlags = cty::c_int; -pub type ImGuiOldColumnFlags = cty::c_int; -pub type ImGuiNavHighlightFlags = cty::c_int; -pub type ImGuiNavDirSourceFlags = cty::c_int; -pub type ImGuiNavMoveFlags = cty::c_int; -pub type ImGuiNextItemDataFlags = cty::c_int; -pub type ImGuiNextWindowDataFlags = cty::c_int; -pub type ImGuiScrollFlags = cty::c_int; -pub type ImGuiSeparatorFlags = cty::c_int; -pub type ImGuiTextFlags = cty::c_int; -pub type ImGuiTooltipFlags = cty::c_int; -pub type ImGuiErrorLogCallback = ::core::option::Option< - unsafe extern "C" fn(user_data: *mut cty::c_void, fmt: *const cty::c_char, ...), ->; -pub type ImFileHandle = *mut FILE; -pub type ImPoolIdx = cty::c_int; -pub type ImGuiContextHookCallback = ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, hook: *mut ImGuiContextHook), ->; -pub type ImGuiTableColumnIdx = ImS8; -pub type ImGuiTableDrawChannelIdx = ImU8; -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTableSettings { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTableSettings, -} -impl Default for ImVector_ImGuiTableSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImChunkStream_ImGuiTableSettings { - pub Buf: ImVector_ImGuiTableSettings, -} -impl Default for ImChunkStream_ImGuiTableSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiWindowSettings { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiWindowSettings, -} -impl Default for ImVector_ImGuiWindowSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImChunkStream_ImGuiWindowSettings { - pub Buf: ImVector_ImGuiWindowSettings, -} -impl Default for ImChunkStream_ImGuiWindowSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImSpan_ImGuiTableCellData { - pub Data: *mut ImGuiTableCellData, - pub DataEnd: *mut ImGuiTableCellData, -} -impl Default for ImSpan_ImGuiTableCellData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImSpan_ImGuiTableColumn { - pub Data: *mut ImGuiTableColumn, - pub DataEnd: *mut ImGuiTableColumn, -} -impl Default for ImSpan_ImGuiTableColumn { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImSpan_ImGuiTableColumnIdx { - pub Data: *mut ImGuiTableColumnIdx, - pub DataEnd: *mut ImGuiTableColumnIdx, -} -impl Default for ImSpan_ImGuiTableColumnIdx { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawChannel { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawChannel, -} -impl Default for ImVector_ImDrawChannel { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawCmd { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawCmd, -} -impl Default for ImVector_ImDrawCmd { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawIdx { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawIdx, -} -impl Default for ImVector_ImDrawIdx { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawListPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImDrawList, -} -impl Default for ImVector_ImDrawListPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawVert { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawVert, -} -impl Default for ImVector_ImDrawVert { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImFont, -} -impl Default for ImVector_ImFontPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec2 { + pub x: f32, + pub y: f32, } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontAtlasCustomRect { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontAtlasCustomRect, -} -impl Default for ImVector_ImFontAtlasCustomRect { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontConfig { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontConfig, -} -impl Default for ImVector_ImFontConfig { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontGlyph { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontGlyph, -} -impl Default for ImVector_ImFontGlyph { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiColorMod { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiColorMod, -} -impl Default for ImVector_ImGuiColorMod { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiContextHook { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiContextHook, -} -impl Default for ImVector_ImGuiContextHook { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiDockNodeSettings { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiDockNodeSettings, -} -impl Default for ImVector_ImGuiDockNodeSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiDockRequest { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiDockRequest, -} -impl Default for ImVector_ImGuiDockRequest { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiGroupData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiGroupData, -} -impl Default for ImVector_ImGuiGroupData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiID { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiID, -} -impl Default for ImVector_ImGuiID { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiItemFlags { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiItemFlags, -} -impl Default for ImVector_ImGuiItemFlags { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiListClipperData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiListClipperData, -} -impl Default for ImVector_ImGuiListClipperData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiListClipperRange { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiListClipperRange, -} -impl Default for ImVector_ImGuiListClipperRange { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiOldColumnData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiOldColumnData, -} -impl Default for ImVector_ImGuiOldColumnData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiOldColumns { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiOldColumns, -} -impl Default for ImVector_ImGuiOldColumns { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiPlatformMonitor { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiPlatformMonitor, -} -impl Default for ImVector_ImGuiPlatformMonitor { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiPopupData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiPopupData, -} -impl Default for ImVector_ImGuiPopupData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiPtrOrIndex { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiPtrOrIndex, -} -impl Default for ImVector_ImGuiPtrOrIndex { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiSettingsHandler { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiSettingsHandler, -} -impl Default for ImVector_ImGuiSettingsHandler { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiShrinkWidthItem { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiShrinkWidthItem, -} -impl Default for ImVector_ImGuiShrinkWidthItem { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiStackLevelInfo { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiStackLevelInfo, -} -impl Default for ImVector_ImGuiStackLevelInfo { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiStoragePair { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiStoragePair, -} -impl Default for ImVector_ImGuiStoragePair { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiStyleMod { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiStyleMod, -} -impl Default for ImVector_ImGuiStyleMod { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTabItem { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTabItem, -} -impl Default for ImVector_ImGuiTabItem { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTableColumnSortSpecs { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTableColumnSortSpecs, -} -impl Default for ImVector_ImGuiTableColumnSortSpecs { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTableTempData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTableTempData, -} -impl Default for ImVector_ImGuiTableTempData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTextRange { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTextRange, -} -impl Default for ImVector_ImGuiTextRange { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiViewportPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImGuiViewport, -} -impl Default for ImVector_ImGuiViewportPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiViewportPPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImGuiViewportP, -} -impl Default for ImVector_ImGuiViewportPPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiWindowPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImGuiWindow, -} -impl Default for ImVector_ImGuiWindowPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiWindowStackData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiWindowStackData, -} -impl Default for ImVector_ImGuiWindowStackData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImTextureID { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImTextureID, -} -impl Default for ImVector_ImTextureID { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImU32 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImU32, -} -impl Default for ImVector_ImU32 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImVec2 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImVec2, -} -impl Default for ImVector_ImVec2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImVec4 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImVec4, -} -impl Default for ImVector_ImVec4 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImWchar { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImWchar, -} -impl Default for ImVector_ImWchar { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_char { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut cty::c_char, -} -impl Default for ImVector_char { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_const_charPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *const cty::c_char, -} -impl Default for ImVector_const_charPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_float { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut f32, -} -impl Default for ImVector_float { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_unsigned_char { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut cty::c_uchar, -} -impl Default for ImVector_unsigned_char { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImVec2 { - pub x: f32, - pub y: f32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImVec4 { - pub x: f32, - pub y: f32, - pub z: f32, - pub w: f32, +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec4 { + pub x: f32, + pub y: f32, + pub z: f32, + pub w: f32, } pub const ImGuiWindowFlags_None: ImGuiWindowFlags_ = 0; pub const ImGuiWindowFlags_NoTitleBar: ImGuiWindowFlags_ = 1; @@ -1137,6 +296,7 @@ pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536; pub const ImGuiInputTextFlags_CharsScientific: ImGuiInputTextFlags_ = 131072; pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags_ = 262144; pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags_ = 524288; +pub const ImGuiInputTextFlags_EscapeClearsAll: ImGuiInputTextFlags_ = 1048576; pub type ImGuiInputTextFlags_ = cty::c_uint; pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags_ = 0; pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags_ = 1; @@ -1297,8 +457,12 @@ pub const ImGuiHoveredFlags_AllowWhenBlockedByPopup: ImGuiHoveredFlags_ = 32; pub const ImGuiHoveredFlags_AllowWhenBlockedByActiveItem: ImGuiHoveredFlags_ = 128; pub const ImGuiHoveredFlags_AllowWhenOverlapped: ImGuiHoveredFlags_ = 256; pub const ImGuiHoveredFlags_AllowWhenDisabled: ImGuiHoveredFlags_ = 512; +pub const ImGuiHoveredFlags_NoNavOverride: ImGuiHoveredFlags_ = 1024; pub const ImGuiHoveredFlags_RectOnly: ImGuiHoveredFlags_ = 416; pub const ImGuiHoveredFlags_RootAndChildWindows: ImGuiHoveredFlags_ = 3; +pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags_ = 2048; +pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags_ = 4096; +pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags_ = 8192; pub type ImGuiHoveredFlags_ = cty::c_uint; pub const ImGuiDockNodeFlags_None: ImGuiDockNodeFlags_ = 0; pub const ImGuiDockNodeFlags_KeepAliveOnly: ImGuiDockNodeFlags_ = 1; @@ -1343,59 +507,179 @@ pub const ImGuiSortDirection_None: ImGuiSortDirection_ = 0; pub const ImGuiSortDirection_Ascending: ImGuiSortDirection_ = 1; pub const ImGuiSortDirection_Descending: ImGuiSortDirection_ = 2; pub type ImGuiSortDirection_ = cty::c_uint; -pub const ImGuiKey_Tab: ImGuiKey_ = 0; -pub const ImGuiKey_LeftArrow: ImGuiKey_ = 1; -pub const ImGuiKey_RightArrow: ImGuiKey_ = 2; -pub const ImGuiKey_UpArrow: ImGuiKey_ = 3; -pub const ImGuiKey_DownArrow: ImGuiKey_ = 4; -pub const ImGuiKey_PageUp: ImGuiKey_ = 5; -pub const ImGuiKey_PageDown: ImGuiKey_ = 6; -pub const ImGuiKey_Home: ImGuiKey_ = 7; -pub const ImGuiKey_End: ImGuiKey_ = 8; -pub const ImGuiKey_Insert: ImGuiKey_ = 9; -pub const ImGuiKey_Delete: ImGuiKey_ = 10; -pub const ImGuiKey_Backspace: ImGuiKey_ = 11; -pub const ImGuiKey_Space: ImGuiKey_ = 12; -pub const ImGuiKey_Enter: ImGuiKey_ = 13; -pub const ImGuiKey_Escape: ImGuiKey_ = 14; -pub const ImGuiKey_KeyPadEnter: ImGuiKey_ = 15; -pub const ImGuiKey_A: ImGuiKey_ = 16; -pub const ImGuiKey_C: ImGuiKey_ = 17; -pub const ImGuiKey_V: ImGuiKey_ = 18; -pub const ImGuiKey_X: ImGuiKey_ = 19; -pub const ImGuiKey_Y: ImGuiKey_ = 20; -pub const ImGuiKey_Z: ImGuiKey_ = 21; -pub const ImGuiKey_COUNT: ImGuiKey_ = 22; -pub type ImGuiKey_ = cty::c_uint; -pub const ImGuiKeyModFlags_None: ImGuiKeyModFlags_ = 0; -pub const ImGuiKeyModFlags_Ctrl: ImGuiKeyModFlags_ = 1; -pub const ImGuiKeyModFlags_Shift: ImGuiKeyModFlags_ = 2; -pub const ImGuiKeyModFlags_Alt: ImGuiKeyModFlags_ = 4; -pub const ImGuiKeyModFlags_Super: ImGuiKeyModFlags_ = 8; -pub type ImGuiKeyModFlags_ = cty::c_uint; -pub const ImGuiNavInput_Activate: ImGuiNavInput_ = 0; -pub const ImGuiNavInput_Cancel: ImGuiNavInput_ = 1; -pub const ImGuiNavInput_Input: ImGuiNavInput_ = 2; -pub const ImGuiNavInput_Menu: ImGuiNavInput_ = 3; -pub const ImGuiNavInput_DpadLeft: ImGuiNavInput_ = 4; -pub const ImGuiNavInput_DpadRight: ImGuiNavInput_ = 5; -pub const ImGuiNavInput_DpadUp: ImGuiNavInput_ = 6; -pub const ImGuiNavInput_DpadDown: ImGuiNavInput_ = 7; -pub const ImGuiNavInput_LStickLeft: ImGuiNavInput_ = 8; -pub const ImGuiNavInput_LStickRight: ImGuiNavInput_ = 9; -pub const ImGuiNavInput_LStickUp: ImGuiNavInput_ = 10; -pub const ImGuiNavInput_LStickDown: ImGuiNavInput_ = 11; -pub const ImGuiNavInput_FocusPrev: ImGuiNavInput_ = 12; -pub const ImGuiNavInput_FocusNext: ImGuiNavInput_ = 13; -pub const ImGuiNavInput_TweakSlow: ImGuiNavInput_ = 14; -pub const ImGuiNavInput_TweakFast: ImGuiNavInput_ = 15; -pub const ImGuiNavInput_KeyLeft_: ImGuiNavInput_ = 16; -pub const ImGuiNavInput_KeyRight_: ImGuiNavInput_ = 17; -pub const ImGuiNavInput_KeyUp_: ImGuiNavInput_ = 18; -pub const ImGuiNavInput_KeyDown_: ImGuiNavInput_ = 19; -pub const ImGuiNavInput_COUNT: ImGuiNavInput_ = 20; -pub const ImGuiNavInput_InternalStart_: ImGuiNavInput_ = 16; -pub type ImGuiNavInput_ = cty::c_uint; +pub const ImGuiKey_None: ImGuiKey = 0; +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_Apostrophe: ImGuiKey = 584; +pub const ImGuiKey_Comma: ImGuiKey = 585; +pub const ImGuiKey_Minus: ImGuiKey = 586; +pub const ImGuiKey_Period: ImGuiKey = 587; +pub const ImGuiKey_Slash: ImGuiKey = 588; +pub const ImGuiKey_Semicolon: ImGuiKey = 589; +pub const ImGuiKey_Equal: ImGuiKey = 590; +pub const ImGuiKey_LeftBracket: ImGuiKey = 591; +pub const ImGuiKey_Backslash: ImGuiKey = 592; +pub const ImGuiKey_RightBracket: ImGuiKey = 593; +pub const ImGuiKey_GraveAccent: ImGuiKey = 594; +pub const ImGuiKey_CapsLock: ImGuiKey = 595; +pub const ImGuiKey_ScrollLock: ImGuiKey = 596; +pub const ImGuiKey_NumLock: ImGuiKey = 597; +pub const ImGuiKey_PrintScreen: ImGuiKey = 598; +pub const ImGuiKey_Pause: ImGuiKey = 599; +pub const ImGuiKey_Keypad0: ImGuiKey = 600; +pub const ImGuiKey_Keypad1: ImGuiKey = 601; +pub const ImGuiKey_Keypad2: ImGuiKey = 602; +pub const ImGuiKey_Keypad3: ImGuiKey = 603; +pub const ImGuiKey_Keypad4: ImGuiKey = 604; +pub const ImGuiKey_Keypad5: ImGuiKey = 605; +pub const ImGuiKey_Keypad6: ImGuiKey = 606; +pub const ImGuiKey_Keypad7: ImGuiKey = 607; +pub const ImGuiKey_Keypad8: ImGuiKey = 608; +pub const ImGuiKey_Keypad9: ImGuiKey = 609; +pub const ImGuiKey_KeypadDecimal: ImGuiKey = 610; +pub const ImGuiKey_KeypadDivide: ImGuiKey = 611; +pub const ImGuiKey_KeypadMultiply: ImGuiKey = 612; +pub const ImGuiKey_KeypadSubtract: ImGuiKey = 613; +pub const ImGuiKey_KeypadAdd: ImGuiKey = 614; +pub const ImGuiKey_KeypadEnter: ImGuiKey = 615; +pub const ImGuiKey_KeypadEqual: ImGuiKey = 616; +pub const ImGuiKey_GamepadStart: ImGuiKey = 617; +pub const ImGuiKey_GamepadBack: ImGuiKey = 618; +pub const ImGuiKey_GamepadFaceLeft: ImGuiKey = 619; +pub const ImGuiKey_GamepadFaceRight: ImGuiKey = 620; +pub const ImGuiKey_GamepadFaceUp: ImGuiKey = 621; +pub const ImGuiKey_GamepadFaceDown: ImGuiKey = 622; +pub const ImGuiKey_GamepadDpadLeft: ImGuiKey = 623; +pub const ImGuiKey_GamepadDpadRight: ImGuiKey = 624; +pub const ImGuiKey_GamepadDpadUp: ImGuiKey = 625; +pub const ImGuiKey_GamepadDpadDown: ImGuiKey = 626; +pub const ImGuiKey_GamepadL1: ImGuiKey = 627; +pub const ImGuiKey_GamepadR1: ImGuiKey = 628; +pub const ImGuiKey_GamepadL2: ImGuiKey = 629; +pub const ImGuiKey_GamepadR2: ImGuiKey = 630; +pub const ImGuiKey_GamepadL3: ImGuiKey = 631; +pub const ImGuiKey_GamepadR3: ImGuiKey = 632; +pub const ImGuiKey_GamepadLStickLeft: ImGuiKey = 633; +pub const ImGuiKey_GamepadLStickRight: ImGuiKey = 634; +pub const ImGuiKey_GamepadLStickUp: ImGuiKey = 635; +pub const ImGuiKey_GamepadLStickDown: ImGuiKey = 636; +pub const ImGuiKey_GamepadRStickLeft: ImGuiKey = 637; +pub const ImGuiKey_GamepadRStickRight: ImGuiKey = 638; +pub const ImGuiKey_GamepadRStickUp: ImGuiKey = 639; +pub const ImGuiKey_GamepadRStickDown: ImGuiKey = 640; +pub const ImGuiKey_MouseLeft: ImGuiKey = 641; +pub const ImGuiKey_MouseRight: ImGuiKey = 642; +pub const ImGuiKey_MouseMiddle: ImGuiKey = 643; +pub const ImGuiKey_MouseX1: ImGuiKey = 644; +pub const ImGuiKey_MouseX2: ImGuiKey = 645; +pub const ImGuiKey_MouseWheelX: ImGuiKey = 646; +pub const ImGuiKey_MouseWheelY: ImGuiKey = 647; +pub const ImGuiKey_ReservedForModCtrl: ImGuiKey = 648; +pub const ImGuiKey_ReservedForModShift: ImGuiKey = 649; +pub const ImGuiKey_ReservedForModAlt: ImGuiKey = 650; +pub const ImGuiKey_ReservedForModSuper: ImGuiKey = 651; +pub const ImGuiKey_COUNT: ImGuiKey = 652; +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 ImGuiMod_Shortcut: ImGuiKey = 4096; +pub const ImGuiKey_NamedKey_BEGIN: ImGuiKey = 512; +pub const ImGuiKey_NamedKey_END: ImGuiKey = 652; +pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 140; +pub const ImGuiKey_KeysData_SIZE: ImGuiKey = 652; +pub const ImGuiKey_KeysData_OFFSET: ImGuiKey = 0; +pub type ImGuiKey = cty::c_uint; +pub const ImGuiNavInput_Activate: ImGuiNavInput = 0; +pub const ImGuiNavInput_Cancel: ImGuiNavInput = 1; +pub const ImGuiNavInput_Input: ImGuiNavInput = 2; +pub const ImGuiNavInput_Menu: ImGuiNavInput = 3; +pub const ImGuiNavInput_DpadLeft: ImGuiNavInput = 4; +pub const ImGuiNavInput_DpadRight: ImGuiNavInput = 5; +pub const ImGuiNavInput_DpadUp: ImGuiNavInput = 6; +pub const ImGuiNavInput_DpadDown: ImGuiNavInput = 7; +pub const ImGuiNavInput_LStickLeft: ImGuiNavInput = 8; +pub const ImGuiNavInput_LStickRight: ImGuiNavInput = 9; +pub const ImGuiNavInput_LStickUp: ImGuiNavInput = 10; +pub const ImGuiNavInput_LStickDown: ImGuiNavInput = 11; +pub const ImGuiNavInput_FocusPrev: ImGuiNavInput = 12; +pub const ImGuiNavInput_FocusNext: ImGuiNavInput = 13; +pub const ImGuiNavInput_TweakSlow: ImGuiNavInput = 14; +pub const ImGuiNavInput_TweakFast: ImGuiNavInput = 15; +pub const ImGuiNavInput_COUNT: ImGuiNavInput = 16; +pub type ImGuiNavInput = cty::c_uint; pub const ImGuiConfigFlags_None: ImGuiConfigFlags_ = 0; pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags_ = 1; pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags_ = 2; @@ -1571,51 +855,1138 @@ pub const ImGuiCond_FirstUseEver: ImGuiCond_ = 4; pub const ImGuiCond_Appearing: ImGuiCond_ = 8; pub type ImGuiCond_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiStyle { - pub Alpha: f32, - pub DisabledAlpha: f32, - pub WindowPadding: ImVec2, - pub WindowRounding: f32, - pub WindowBorderSize: 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 GrabMinSize: f32, - pub GrabRounding: f32, - pub LogSliderDeadzone: f32, - pub TabRounding: f32, - pub TabBorderSize: f32, - pub TabMinWidthForCloseButton: f32, - pub ColorButtonPosition: ImGuiDir, - pub ButtonTextAlign: ImVec2, - pub SelectableTextAlign: ImVec2, - pub DisplayWindowPadding: ImVec2, - pub DisplaySafeAreaPadding: ImVec2, - pub MouseCursorScale: f32, - pub AntiAliasedLines: bool, - pub AntiAliasedLinesUseTex: bool, - pub AntiAliasedFill: bool, - pub CurveTessellationTol: f32, - pub CircleTessellationMaxError: f32, - pub Colors: [ImVec4; 55usize], +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiStyle { + pub Alpha: f32, + pub DisabledAlpha: f32, + pub WindowPadding: ImVec2, + pub WindowRounding: f32, + pub WindowBorderSize: 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 GrabMinSize: f32, + pub GrabRounding: f32, + pub LogSliderDeadzone: f32, + pub TabRounding: f32, + pub TabBorderSize: f32, + pub TabMinWidthForCloseButton: f32, + pub ColorButtonPosition: ImGuiDir, + pub ButtonTextAlign: ImVec2, + pub SelectableTextAlign: ImVec2, + pub DisplayWindowPadding: ImVec2, + pub DisplaySafeAreaPadding: ImVec2, + pub MouseCursorScale: f32, + pub AntiAliasedLines: bool, + pub AntiAliasedLinesUseTex: bool, + pub AntiAliasedFill: bool, + pub CurveTessellationTol: f32, + pub CircleTessellationMaxError: f32, + pub Colors: [ImVec4; 55usize], +} +impl Default for ImGuiStyle { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiKeyData { + pub Down: bool, + pub DownDuration: f32, + pub DownDurationPrev: f32, + pub AnalogValue: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImWchar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImWchar, +} +impl Default for ImVector_ImWchar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiIO { + pub ConfigFlags: ImGuiConfigFlags, + pub BackendFlags: ImGuiBackendFlags, + pub DisplaySize: ImVec2, + pub DeltaTime: f32, + pub IniSavingRate: f32, + pub IniFilename: *const cty::c_char, + pub LogFilename: *const cty::c_char, + pub MouseDoubleClickTime: f32, + pub MouseDoubleClickMaxDist: f32, + pub MouseDragThreshold: f32, + pub KeyRepeatDelay: f32, + pub KeyRepeatRate: f32, + pub HoverDelayNormal: f32, + pub HoverDelayShort: f32, + pub UserData: *mut cty::c_void, + pub Fonts: *mut ImFontAtlas, + pub FontGlobalScale: f32, + pub FontAllowUserScaling: bool, + pub FontDefault: *mut ImFont, + pub DisplayFramebufferScale: ImVec2, + pub ConfigDockingNoSplit: bool, + pub ConfigDockingWithShift: bool, + pub ConfigDockingAlwaysTabBar: bool, + pub ConfigDockingTransparentPayload: bool, + pub ConfigViewportsNoAutoMerge: bool, + pub ConfigViewportsNoTaskBarIcon: bool, + pub ConfigViewportsNoDecoration: bool, + pub ConfigViewportsNoDefaultParent: bool, + pub MouseDrawCursor: bool, + pub ConfigMacOSXBehaviors: bool, + pub ConfigInputTrickleEventQueue: bool, + pub ConfigInputTextCursorBlink: bool, + pub ConfigInputTextEnterKeepActive: bool, + pub ConfigDragClickToInputText: bool, + pub ConfigWindowsResizeFromEdges: bool, + pub ConfigWindowsMoveFromTitleBarOnly: bool, + pub ConfigMemoryCompactTimer: f32, + pub BackendPlatformName: *const cty::c_char, + pub BackendRendererName: *const cty::c_char, + pub BackendPlatformUserData: *mut cty::c_void, + pub BackendRendererUserData: *mut cty::c_void, + pub BackendLanguageUserData: *mut cty::c_void, + pub GetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void) -> *const cty::c_char, + >, + pub SetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), + >, + pub ClipboardUserData: *mut cty::c_void, + pub SetPlatformImeDataFn: ::core::option::Option< + unsafe extern "C" fn(viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData), + >, + pub _UnusedPadding: *mut cty::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: cty::c_int, + pub MetricsRenderIndices: cty::c_int, + pub MetricsRenderWindows: cty::c_int, + pub MetricsActiveWindows: cty::c_int, + pub MetricsActiveAllocations: cty::c_int, + pub MouseDelta: ImVec2, + pub KeyMap: [cty::c_int; 652usize], + pub KeysDown: [bool; 652usize], + pub NavInputs: [f32; 16usize], + pub MousePos: ImVec2, + pub MouseDown: [bool; 5usize], + pub MouseWheel: f32, + pub MouseWheelH: f32, + pub MouseHoveredViewport: ImGuiID, + pub KeyCtrl: bool, + pub KeyShift: bool, + pub KeyAlt: bool, + pub KeySuper: bool, + pub KeyMods: ImGuiKeyChord, + pub KeysData: [ImGuiKeyData; 652usize], + pub WantCaptureMouseUnlessPopupClose: bool, + pub MousePosPrev: ImVec2, + pub MouseClickedPos: [ImVec2; 5usize], + pub MouseClickedTime: [f64; 5usize], + pub MouseClicked: [bool; 5usize], + pub MouseDoubleClicked: [bool; 5usize], + pub MouseClickedCount: [ImU16; 5usize], + pub MouseClickedLastCount: [ImU16; 5usize], + pub MouseReleased: [bool; 5usize], + pub MouseDownOwned: [bool; 5usize], + pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], + pub MouseDownDuration: [f32; 5usize], + pub MouseDownDurationPrev: [f32; 5usize], + pub MouseDragMaxDistanceAbs: [ImVec2; 5usize], + pub MouseDragMaxDistanceSqr: [f32; 5usize], + pub PenPressure: f32, + pub AppFocusLost: bool, + pub AppAcceptingEvents: bool, + pub BackendUsingLegacyKeyArrays: ImS8, + pub BackendUsingLegacyNavInputArray: bool, + pub InputQueueSurrogate: ImWchar16, + pub InputQueueCharacters: ImVector_ImWchar, +} +impl Default for ImGuiIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputTextCallbackData { + pub EventFlag: ImGuiInputTextFlags, + pub Flags: ImGuiInputTextFlags, + pub UserData: *mut cty::c_void, + pub EventChar: ImWchar, + pub EventKey: ImGuiKey, + pub Buf: *mut cty::c_char, + pub BufTextLen: cty::c_int, + pub BufSize: cty::c_int, + pub BufDirty: bool, + pub CursorPos: cty::c_int, + pub SelectionStart: cty::c_int, + pub SelectionEnd: cty::c_int, +} +impl Default for ImGuiInputTextCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiSizeCallbackData { + pub UserData: *mut cty::c_void, + pub Pos: ImVec2, + pub CurrentSize: ImVec2, + pub DesiredSize: ImVec2, +} +impl Default for ImGuiSizeCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowClass { + pub ClassId: ImGuiID, + pub ParentViewportId: ImGuiID, + pub ViewportFlagsOverrideSet: ImGuiViewportFlags, + pub ViewportFlagsOverrideClear: ImGuiViewportFlags, + pub TabItemFlagsOverrideSet: ImGuiTabItemFlags, + pub DockNodeFlagsOverrideSet: ImGuiDockNodeFlags, + pub DockingAlwaysTabBar: bool, + pub DockingAllowUnclassed: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPayload { + pub Data: *mut cty::c_void, + pub DataSize: cty::c_int, + pub SourceId: ImGuiID, + pub SourceParentId: ImGuiID, + pub DataFrameCount: cty::c_int, + pub DataType: [cty::c_char; 33usize], + pub Preview: bool, + pub Delivery: bool, +} +impl Default for ImGuiPayload { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableColumnSortSpecs { + pub ColumnUserID: ImGuiID, + pub ColumnIndex: ImS16, + pub SortOrder: ImS16, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl ImGuiTableColumnSortSpecs { + #[inline] + pub fn SortDirection(&self) -> ImGuiSortDirection { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImGuiSortDirection) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImGuiSortDirection, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableSortSpecs { + pub Specs: *const ImGuiTableColumnSortSpecs, + pub SpecsCount: cty::c_int, + pub SpecsDirty: bool, +} +impl Default for ImGuiTableSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiOnceUponAFrame { + pub RefFrame: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextRange { + pub b: *const cty::c_char, + pub e: *const cty::c_char, +} +impl Default for ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTextRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTextRange, +} +impl Default for ImVector_ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextFilter { + pub InputBuf: [cty::c_char; 256usize], + pub Filters: ImVector_ImGuiTextRange, + pub CountGrep: cty::c_int, +} +impl Default for ImGuiTextFilter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_char, +} +impl Default for ImVector_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextBuffer { + pub Buf: ImVector_char, +} +impl Default for ImGuiTextBuffer { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiStoragePair { + pub key: ImGuiID, + pub __bindgen_anon_1: ImGuiStoragePair__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiStoragePair__bindgen_ty_1 { + pub val_i: cty::c_int, + pub val_f: f32, + pub val_p: *mut cty::c_void, +} +impl Default for ImGuiStoragePair__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiStoragePair__bindgen_ty_1 {{ union }}") + } +} +impl Default for ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!( + f, + "ImGuiStoragePair {{ key: {:?}, __bindgen_anon_1: {:?} }}", + self.key, self.__bindgen_anon_1 + ) + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStoragePair { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStoragePair, +} +impl Default for ImVector_ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStorage { + pub Data: ImVector_ImGuiStoragePair, +} +impl Default for ImGuiStorage { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiListClipper { + pub DisplayStart: cty::c_int, + pub DisplayEnd: cty::c_int, + pub ItemsCount: cty::c_int, + pub ItemsHeight: f32, + pub StartPosY: f32, + pub TempData: *mut cty::c_void, +} +impl Default for ImGuiListClipper { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImColor { + pub Value: ImVec4, +} +pub type ImDrawCallback = ::core::option::Option< + unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmd { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, + pub IdxOffset: cty::c_uint, + pub ElemCount: cty::c_uint, + pub UserCallback: ImDrawCallback, + pub UserCallbackData: *mut cty::c_void, +} +impl Default for ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImDrawVert { + pub pos: ImVec2, + pub uv: ImVec2, + pub col: ImU32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmdHeader { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, +} +impl Default for ImDrawCmdHeader { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawCmd { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawCmd, +} +impl Default for ImVector_ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawIdx { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawIdx, +} +impl Default for ImVector_ImDrawIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawChannel { + pub _CmdBuffer: ImVector_ImDrawCmd, + pub _IdxBuffer: ImVector_ImDrawIdx, +} +impl Default for ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawChannel { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawChannel, +} +impl Default for ImVector_ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawListSplitter { + pub _Current: cty::c_int, + pub _Count: cty::c_int, + pub _Channels: ImVector_ImDrawChannel, +} +impl Default for ImDrawListSplitter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImDrawFlags_None: ImDrawFlags_ = 0; +pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; +pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; +pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; +pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; +pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; +pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; +pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; +pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; +pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; +pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; +pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; +pub type ImDrawFlags_ = cty::c_uint; +pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; +pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; +pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; +pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; +pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; +pub type ImDrawListFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawVert { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawVert, +} +impl Default for ImVector_ImDrawVert { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec4 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec4, +} +impl Default for ImVector_ImVec4 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImTextureID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImTextureID, +} +impl Default for ImVector_ImTextureID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec2 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec2, +} +impl Default for ImVector_ImVec2 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawList { + pub CmdBuffer: ImVector_ImDrawCmd, + pub IdxBuffer: ImVector_ImDrawIdx, + pub VtxBuffer: ImVector_ImDrawVert, + pub Flags: ImDrawListFlags, + pub _VtxCurrentIdx: cty::c_uint, + pub _Data: *mut ImDrawListSharedData, + pub _OwnerName: *const cty::c_char, + pub _VtxWritePtr: *mut ImDrawVert, + pub _IdxWritePtr: *mut ImDrawIdx, + pub _ClipRectStack: ImVector_ImVec4, + pub _TextureIdStack: ImVector_ImTextureID, + pub _Path: ImVector_ImVec2, + pub _CmdHeader: ImDrawCmdHeader, + pub _Splitter: ImDrawListSplitter, + pub _FringeScale: f32, +} +impl Default for ImDrawList { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawData { + pub Valid: bool, + pub CmdListsCount: cty::c_int, + pub TotalIdxCount: cty::c_int, + pub TotalVtxCount: cty::c_int, + pub CmdLists: *mut *mut ImDrawList, + pub DisplayPos: ImVec2, + pub DisplaySize: ImVec2, + pub FramebufferScale: ImVec2, + pub OwnerViewport: *mut ImGuiViewport, +} +impl Default for ImDrawData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontConfig { + pub FontData: *mut cty::c_void, + pub FontDataSize: cty::c_int, + pub FontDataOwnedByAtlas: bool, + pub FontNo: cty::c_int, + pub SizePixels: f32, + pub OversampleH: cty::c_int, + pub OversampleV: cty::c_int, + pub PixelSnapH: bool, + pub GlyphExtraSpacing: ImVec2, + pub GlyphOffset: ImVec2, + pub GlyphRanges: *const ImWchar, + pub GlyphMinAdvanceX: f32, + pub GlyphMaxAdvanceX: f32, + pub MergeMode: bool, + pub FontBuilderFlags: cty::c_uint, + pub RasterizerMultiply: f32, + pub EllipsisChar: ImWchar, + pub Name: [cty::c_char; 40usize], + pub DstFont: *mut ImFont, +} +impl Default for ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImFontGlyph { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + 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, +} +impl ImFontGlyph { + #[inline] + pub fn Colored(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Colored(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Visible(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_Visible(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Codepoint(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Codepoint(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Colored: cty::c_uint, + Visible: cty::c_uint, + Codepoint: cty::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Colored: u32 = unsafe { ::core::mem::transmute(Colored) }; + Colored as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Visible: u32 = unsafe { ::core::mem::transmute(Visible) }; + Visible as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Codepoint: u32 = unsafe { ::core::mem::transmute(Codepoint) }; + Codepoint as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImU32 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImU32, +} +impl Default for ImVector_ImU32 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImFontGlyphRangesBuilder { + pub UsedChars: ImVector_ImU32, +} +impl Default for ImFontGlyphRangesBuilder { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlasCustomRect { + pub Width: cty::c_ushort, + pub Height: cty::c_ushort, + pub X: cty::c_ushort, + pub Y: cty::c_ushort, + pub GlyphID: cty::c_uint, + pub GlyphAdvanceX: f32, + pub GlyphOffset: ImVec2, + pub Font: *mut ImFont, +} +impl Default for ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 type ImFontAtlasFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImFont, +} +impl Default for ImVector_ImFontPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontAtlasCustomRect { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontAtlasCustomRect, +} +impl Default for ImVector_ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontConfig { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontConfig, +} +impl Default for ImVector_ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlas { + pub Flags: ImFontAtlasFlags, + pub TexID: ImTextureID, + pub TexDesiredWidth: cty::c_int, + pub TexGlyphPadding: cty::c_int, + pub Locked: bool, + pub TexReady: bool, + pub TexPixelsUseColors: bool, + pub TexPixelsAlpha8: *mut cty::c_uchar, + pub TexPixelsRGBA32: *mut cty::c_uint, + pub TexWidth: cty::c_int, + pub TexHeight: cty::c_int, + pub TexUvScale: ImVec2, + pub TexUvWhitePixel: ImVec2, + pub Fonts: ImVector_ImFontPtr, + pub CustomRects: ImVector_ImFontAtlasCustomRect, + pub ConfigData: ImVector_ImFontConfig, + pub TexUvLines: [ImVec4; 64usize], + pub FontBuilderIO: *const ImFontBuilderIO, + pub FontBuilderFlags: cty::c_uint, + pub PackIdMouseCursors: cty::c_int, + pub PackIdLines: cty::c_int, +} +impl Default for ImFontAtlas { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_float { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut f32, +} +impl Default for ImVector_float { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontGlyph { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontGlyph, +} +impl Default for ImVector_ImFontGlyph { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFont { + pub IndexAdvanceX: ImVector_float, + pub FallbackAdvanceX: f32, + pub FontSize: f32, + pub IndexLookup: ImVector_ImWchar, + pub Glyphs: ImVector_ImFontGlyph, + pub FallbackGlyph: *const ImFontGlyph, + pub ContainerAtlas: *mut ImFontAtlas, + pub ConfigData: *const ImFontConfig, + pub ConfigDataCount: cty::c_short, + pub FallbackChar: ImWchar, + pub EllipsisChar: ImWchar, + pub DotChar: ImWchar, + pub DirtyLookupTables: bool, + pub Scale: f32, + pub Ascent: f32, + pub Descent: f32, + pub MetricsTotalSurface: cty::c_int, + pub Used4kPagesMap: [ImU8; 34usize], +} +impl Default for ImFont { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 ImGuiViewportFlags_NoDecoration: ImGuiViewportFlags_ = 8; +pub const ImGuiViewportFlags_NoTaskBarIcon: ImGuiViewportFlags_ = 16; +pub const ImGuiViewportFlags_NoFocusOnAppearing: ImGuiViewportFlags_ = 32; +pub const ImGuiViewportFlags_NoFocusOnClick: ImGuiViewportFlags_ = 64; +pub const ImGuiViewportFlags_NoInputs: ImGuiViewportFlags_ = 128; +pub const ImGuiViewportFlags_NoRendererClear: ImGuiViewportFlags_ = 256; +pub const ImGuiViewportFlags_TopMost: ImGuiViewportFlags_ = 512; +pub const ImGuiViewportFlags_Minimized: ImGuiViewportFlags_ = 1024; +pub const ImGuiViewportFlags_NoAutoMerge: ImGuiViewportFlags_ = 2048; +pub const ImGuiViewportFlags_CanHostOtherWindows: ImGuiViewportFlags_ = 4096; +pub type ImGuiViewportFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiViewport { + pub ID: ImGuiID, + pub Flags: ImGuiViewportFlags, + pub Pos: ImVec2, + pub Size: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub DpiScale: f32, + pub ParentViewportId: ImGuiID, + pub DrawData: *mut ImDrawData, + pub RendererUserData: *mut cty::c_void, + pub PlatformUserData: *mut cty::c_void, + pub PlatformHandle: *mut cty::c_void, + pub PlatformHandleRaw: *mut cty::c_void, + pub PlatformWindowCreated: bool, + pub PlatformRequestMove: bool, + pub PlatformRequestResize: bool, + pub PlatformRequestClose: bool, +} +impl Default for ImGuiViewport { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiPlatformMonitor { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPlatformMonitor, +} +impl Default for ImVector_ImGuiPlatformMonitor { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiViewportPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiViewport, } -impl Default for ImGuiStyle { +impl Default for ImVector_ImGuiViewportPtr { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1625,106 +1996,127 @@ impl Default for ImGuiStyle { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiIO { - pub ConfigFlags: ImGuiConfigFlags, - pub BackendFlags: ImGuiBackendFlags, - pub DisplaySize: ImVec2, - pub DeltaTime: f32, - pub IniSavingRate: f32, - pub IniFilename: *const cty::c_char, - pub LogFilename: *const cty::c_char, - pub MouseDoubleClickTime: f32, - pub MouseDoubleClickMaxDist: f32, - pub MouseDragThreshold: f32, - pub KeyMap: [cty::c_int; 22usize], - pub KeyRepeatDelay: f32, - pub KeyRepeatRate: f32, - pub UserData: *mut cty::c_void, - pub Fonts: *mut ImFontAtlas, - pub FontGlobalScale: f32, - pub FontAllowUserScaling: bool, - pub FontDefault: *mut ImFont, - pub DisplayFramebufferScale: ImVec2, - pub ConfigDockingNoSplit: bool, - pub ConfigDockingWithShift: bool, - pub ConfigDockingAlwaysTabBar: bool, - pub ConfigDockingTransparentPayload: bool, - pub ConfigViewportsNoAutoMerge: bool, - pub ConfigViewportsNoTaskBarIcon: bool, - pub ConfigViewportsNoDecoration: bool, - pub ConfigViewportsNoDefaultParent: bool, - pub MouseDrawCursor: bool, - pub ConfigMacOSXBehaviors: bool, - pub ConfigInputTextCursorBlink: bool, - pub ConfigDragClickToInputText: bool, - pub ConfigWindowsResizeFromEdges: bool, - pub ConfigWindowsMoveFromTitleBarOnly: bool, - pub ConfigMemoryCompactTimer: f32, - pub BackendPlatformName: *const cty::c_char, - pub BackendRendererName: *const cty::c_char, - pub BackendPlatformUserData: *mut cty::c_void, - pub BackendRendererUserData: *mut cty::c_void, - pub BackendLanguageUserData: *mut cty::c_void, - pub GetClipboardTextFn: ::core::option::Option< - unsafe extern "C" fn(user_data: *mut cty::c_void) -> *const cty::c_char, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPlatformIO { + pub Platform_CreateWindow: ::core::option::Option, + pub Platform_DestroyWindow: + ::core::option::Option, + pub Platform_ShowWindow: ::core::option::Option, + pub Platform_SetWindowPos: + ::core::option::Option, + pub Platform_GetWindowPos: + ::core::option::Option ImVec2>, + pub Platform_SetWindowSize: + ::core::option::Option, + pub Platform_GetWindowSize: + ::core::option::Option ImVec2>, + pub Platform_SetWindowFocus: + ::core::option::Option, + pub Platform_GetWindowFocus: + ::core::option::Option bool>, + pub Platform_GetWindowMinimized: + ::core::option::Option bool>, + pub Platform_SetWindowTitle: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, str_: *const cty::c_char), >, - pub SetClipboardTextFn: ::core::option::Option< - unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), + pub Platform_SetWindowAlpha: + ::core::option::Option, + pub Platform_UpdateWindow: ::core::option::Option, + pub Platform_RenderWindow: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), >, - pub ClipboardUserData: *mut cty::c_void, - pub MousePos: ImVec2, - pub MouseDown: [bool; 5usize], - pub MouseWheel: f32, - pub MouseWheelH: f32, - pub MouseHoveredViewport: ImGuiID, - pub KeyCtrl: bool, - pub KeyShift: bool, - pub KeyAlt: bool, - pub KeySuper: bool, - pub KeysDown: [bool; 512usize], - pub NavInputs: [f32; 20usize], - 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: cty::c_int, - pub MetricsRenderIndices: cty::c_int, - pub MetricsRenderWindows: cty::c_int, - pub MetricsActiveWindows: cty::c_int, - pub MetricsActiveAllocations: cty::c_int, - pub MouseDelta: ImVec2, - pub WantCaptureMouseUnlessPopupClose: bool, - pub KeyMods: ImGuiKeyModFlags, - pub KeyModsPrev: ImGuiKeyModFlags, - pub MousePosPrev: ImVec2, - pub MouseClickedPos: [ImVec2; 5usize], - pub MouseClickedTime: [f64; 5usize], - pub MouseClicked: [bool; 5usize], - pub MouseDoubleClicked: [bool; 5usize], - pub MouseClickedCount: [ImU16; 5usize], - pub MouseClickedLastCount: [ImU16; 5usize], - pub MouseReleased: [bool; 5usize], - pub MouseDownOwned: [bool; 5usize], - pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], - pub MouseDownDuration: [f32; 5usize], - pub MouseDownDurationPrev: [f32; 5usize], - pub MouseDragMaxDistanceAbs: [ImVec2; 5usize], - pub MouseDragMaxDistanceSqr: [f32; 5usize], - pub KeysDownDuration: [f32; 512usize], - pub KeysDownDurationPrev: [f32; 512usize], - pub NavInputsDownDuration: [f32; 20usize], - pub NavInputsDownDurationPrev: [f32; 20usize], - pub PenPressure: f32, - pub AppFocusLost: bool, - pub InputQueueSurrogate: ImWchar16, - pub InputQueueCharacters: ImVector_ImWchar, + pub Platform_SwapBuffers: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Platform_GetWindowDpiScale: + ::core::option::Option f32>, + pub Platform_OnChangedViewport: + ::core::option::Option, + pub Platform_CreateVkSurface: ::core::option::Option< + unsafe extern "C" fn( + vp: *mut ImGuiViewport, + vk_inst: ImU64, + vk_allocators: *const cty::c_void, + out_vk_surface: *mut ImU64, + ) -> cty::c_int, + >, + pub Renderer_CreateWindow: ::core::option::Option, + pub Renderer_DestroyWindow: + ::core::option::Option, + pub Renderer_SetWindowSize: + ::core::option::Option, + pub Renderer_RenderWindow: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Renderer_SwapBuffers: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Monitors: ImVector_ImGuiPlatformMonitor, + pub Viewports: ImVector_ImGuiViewportPtr, +} +impl Default for ImGuiPlatformIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformMonitor { + pub MainPos: ImVec2, + pub MainSize: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub DpiScale: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformImeData { + pub WantVisible: bool, + pub InputPos: ImVec2, + pub InputLineHeight: f32, +} +pub type ImGuiDataAuthority = cty::c_int; +pub type ImGuiLayoutType = cty::c_int; +pub type ImGuiActivateFlags = cty::c_int; +pub type ImGuiDebugLogFlags = cty::c_int; +pub type ImGuiInputFlags = cty::c_int; +pub type ImGuiItemFlags = cty::c_int; +pub type ImGuiItemStatusFlags = cty::c_int; +pub type ImGuiOldColumnFlags = cty::c_int; +pub type ImGuiNavHighlightFlags = cty::c_int; +pub type ImGuiNavMoveFlags = cty::c_int; +pub type ImGuiNextItemDataFlags = cty::c_int; +pub type ImGuiNextWindowDataFlags = cty::c_int; +pub type ImGuiScrollFlags = cty::c_int; +pub type ImGuiSeparatorFlags = cty::c_int; +pub type ImGuiTextFlags = cty::c_int; +pub type ImGuiTooltipFlags = cty::c_int; +pub type ImGuiErrorLogCallback = ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, fmt: *const cty::c_char, ...), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct StbUndoRecord { + pub where_: cty::c_int, + pub insert_length: cty::c_int, + pub delete_length: cty::c_int, + pub char_storage: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct StbUndoState { + pub undo_rec: [StbUndoRecord; 99usize], + pub undo_char: [ImWchar; 999usize], + pub undo_point: cty::c_short, + pub redo_point: cty::c_short, + pub undo_char_point: cty::c_int, + pub redo_char_point: cty::c_int, } -impl Default for ImGuiIO { +impl Default for StbUndoState { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1734,22 +2126,24 @@ impl Default for ImGuiIO { } } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiInputTextCallbackData { - pub EventFlag: ImGuiInputTextFlags, - pub Flags: ImGuiInputTextFlags, - pub UserData: *mut cty::c_void, - pub EventChar: ImWchar, - pub EventKey: ImGuiKey, - pub Buf: *mut cty::c_char, - pub BufTextLen: cty::c_int, - pub BufSize: cty::c_int, - pub BufDirty: bool, - pub CursorPos: cty::c_int, - pub SelectionStart: cty::c_int, - pub SelectionEnd: cty::c_int, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct STB_TexteditState { + pub cursor: cty::c_int, + pub select_start: cty::c_int, + pub select_end: cty::c_int, + pub insert_mode: cty::c_uchar, + pub row_count_per_page: cty::c_int, + pub cursor_at_end_of_line: cty::c_uchar, + pub initialized: cty::c_uchar, + pub has_preferred_x: cty::c_uchar, + pub single_line: cty::c_uchar, + pub padding1: cty::c_uchar, + pub padding2: cty::c_uchar, + pub padding3: cty::c_uchar, + pub preferred_x: f32, + pub undostate: StbUndoState, } -impl Default for ImGuiInputTextCallbackData { +impl Default for STB_TexteditState { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1759,14 +2153,39 @@ impl Default for ImGuiInputTextCallbackData { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiSizeCallbackData { - pub UserData: *mut cty::c_void, - pub Pos: ImVec2, - pub CurrentSize: ImVec2, - pub DesiredSize: ImVec2, +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct StbTexteditRow { + pub x0: f32, + pub x1: f32, + pub baseline_y_delta: f32, + pub ymin: f32, + pub ymax: f32, + pub num_chars: cty::c_int, } -impl Default for ImGuiSizeCallbackData { +pub type ImFileHandle = *mut FILE; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec1 { + pub x: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVec2ih { + pub x: cty::c_short, + pub y: cty::c_short, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImRect { + pub Min: ImVec2, + pub Max: ImVec2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImBitVector { + pub Storage: ImVector_ImU32, +} +impl Default for ImBitVector { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1775,31 +2194,30 @@ impl Default for ImGuiSizeCallbackData { } } } +pub type ImPoolIdx = cty::c_int; #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiWindowClass { - pub ClassId: ImGuiID, - pub ParentViewportId: ImGuiID, - pub ViewportFlagsOverrideSet: ImGuiViewportFlags, - pub ViewportFlagsOverrideClear: ImGuiViewportFlags, - pub TabItemFlagsOverrideSet: ImGuiTabItemFlags, - pub DockNodeFlagsOverrideSet: ImGuiDockNodeFlags, - pub DockingAlwaysTabBar: bool, - pub DockingAllowUnclassed: bool, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_int { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_int, +} +impl Default for ImVector_int { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiPayload { - pub Data: *mut cty::c_void, - pub DataSize: cty::c_int, - pub SourceId: ImGuiID, - pub SourceParentId: ImGuiID, - pub DataFrameCount: cty::c_int, - pub DataType: [cty::c_char; 33usize], - pub Preview: bool, - pub Delivery: bool, +pub struct ImGuiTextIndex { + pub LineOffsets: ImVector_int, + pub EndOffset: cty::c_int, } -impl Default for ImGuiPayload { +impl Default for ImGuiTextIndex { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1809,47 +2227,52 @@ impl Default for ImGuiPayload { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTableColumnSortSpecs { - pub ColumnUserID: ImGuiID, - pub ColumnIndex: ImS16, - pub SortOrder: ImS16, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 3usize], +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawListSharedData { + pub TexUvWhitePixel: ImVec2, + pub Font: *mut ImFont, + pub FontSize: f32, + pub CurveTessellationTol: f32, + pub CircleSegmentMaxError: f32, + pub ClipRectFullscreen: ImVec4, + pub InitialFlags: ImDrawListFlags, + pub TempBuffer: ImVector_ImVec2, + pub ArcFastVtx: [ImVec2; 48usize], + pub ArcFastRadiusCutoff: f32, + pub CircleSegmentCounts: [ImU8; 64usize], + pub TexUvLines: *const ImVec4, } -impl ImGuiTableColumnSortSpecs { - #[inline] - pub fn SortDirection(&self) -> ImGuiSortDirection { - unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } - } - #[inline] - pub fn set_SortDirection(&mut self, val: ImGuiSortDirection) { +impl Default for ImDrawListSharedData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(0usize, 8u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn new_bitfield_1( - SortDirection: ImGuiSortDirection, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 8u8, { - let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) }; - SortDirection as u64 - }); - __bindgen_bitfield_unit +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawListPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImDrawList, +} +impl Default for ImVector_ImDrawListPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTableSortSpecs { - pub Specs: *const ImGuiTableColumnSortSpecs, - pub SpecsCount: cty::c_int, - pub SpecsDirty: bool, +pub struct ImDrawDataBuilder { + pub Layers: [ImVector_ImDrawListPtr; 2usize], } -impl Default for ImGuiTableSortSpecs { +impl Default for ImDrawDataBuilder { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1858,34 +2281,116 @@ impl Default for ImGuiTableSortSpecs { } } } +pub const ImGuiItemFlags_None: ImGuiItemFlags_ = 0; +pub const ImGuiItemFlags_NoTabStop: ImGuiItemFlags_ = 1; +pub const ImGuiItemFlags_ButtonRepeat: ImGuiItemFlags_ = 2; +pub const ImGuiItemFlags_Disabled: ImGuiItemFlags_ = 4; +pub const ImGuiItemFlags_NoNav: ImGuiItemFlags_ = 8; +pub const ImGuiItemFlags_NoNavDefaultFocus: ImGuiItemFlags_ = 16; +pub const ImGuiItemFlags_SelectableDontClosePopup: ImGuiItemFlags_ = 32; +pub const ImGuiItemFlags_MixedValue: ImGuiItemFlags_ = 64; +pub const ImGuiItemFlags_ReadOnly: ImGuiItemFlags_ = 128; +pub const ImGuiItemFlags_NoWindowHoverableCheck: ImGuiItemFlags_ = 256; +pub const ImGuiItemFlags_Inputable: ImGuiItemFlags_ = 1024; +pub type ImGuiItemFlags_ = cty::c_uint; +pub const ImGuiItemStatusFlags_None: ImGuiItemStatusFlags_ = 0; +pub const ImGuiItemStatusFlags_HoveredRect: ImGuiItemStatusFlags_ = 1; +pub const ImGuiItemStatusFlags_HasDisplayRect: ImGuiItemStatusFlags_ = 2; +pub const ImGuiItemStatusFlags_Edited: ImGuiItemStatusFlags_ = 4; +pub const ImGuiItemStatusFlags_ToggledSelection: ImGuiItemStatusFlags_ = 8; +pub const ImGuiItemStatusFlags_ToggledOpen: ImGuiItemStatusFlags_ = 16; +pub const ImGuiItemStatusFlags_HasDeactivated: ImGuiItemStatusFlags_ = 32; +pub const ImGuiItemStatusFlags_Deactivated: ImGuiItemStatusFlags_ = 64; +pub const ImGuiItemStatusFlags_HoveredWindow: ImGuiItemStatusFlags_ = 128; +pub const ImGuiItemStatusFlags_FocusedByTabbing: ImGuiItemStatusFlags_ = 256; +pub const ImGuiItemStatusFlags_Visible: ImGuiItemStatusFlags_ = 512; +pub type ImGuiItemStatusFlags_ = cty::c_uint; +pub const ImGuiInputTextFlags_Multiline: ImGuiInputTextFlagsPrivate_ = 67108864; +pub const ImGuiInputTextFlags_NoMarkEdited: ImGuiInputTextFlagsPrivate_ = 134217728; +pub const ImGuiInputTextFlags_MergedItem: ImGuiInputTextFlagsPrivate_ = 268435456; +pub type ImGuiInputTextFlagsPrivate_ = cty::c_uint; +pub const ImGuiButtonFlags_PressedOnClick: ImGuiButtonFlagsPrivate_ = 16; +pub const ImGuiButtonFlags_PressedOnClickRelease: ImGuiButtonFlagsPrivate_ = 32; +pub const ImGuiButtonFlags_PressedOnClickReleaseAnywhere: ImGuiButtonFlagsPrivate_ = 64; +pub const ImGuiButtonFlags_PressedOnRelease: ImGuiButtonFlagsPrivate_ = 128; +pub const ImGuiButtonFlags_PressedOnDoubleClick: ImGuiButtonFlagsPrivate_ = 256; +pub const ImGuiButtonFlags_PressedOnDragDropHold: ImGuiButtonFlagsPrivate_ = 512; +pub const ImGuiButtonFlags_Repeat: ImGuiButtonFlagsPrivate_ = 1024; +pub const ImGuiButtonFlags_FlattenChildren: ImGuiButtonFlagsPrivate_ = 2048; +pub const ImGuiButtonFlags_AllowItemOverlap: ImGuiButtonFlagsPrivate_ = 4096; +pub const ImGuiButtonFlags_DontClosePopups: ImGuiButtonFlagsPrivate_ = 8192; +pub const ImGuiButtonFlags_AlignTextBaseLine: ImGuiButtonFlagsPrivate_ = 32768; +pub const ImGuiButtonFlags_NoKeyModifiers: ImGuiButtonFlagsPrivate_ = 65536; +pub const ImGuiButtonFlags_NoHoldingActiveId: ImGuiButtonFlagsPrivate_ = 131072; +pub const ImGuiButtonFlags_NoNavFocus: ImGuiButtonFlagsPrivate_ = 262144; +pub const ImGuiButtonFlags_NoHoveredOnFocus: ImGuiButtonFlagsPrivate_ = 524288; +pub const ImGuiButtonFlags_NoSetKeyOwner: ImGuiButtonFlagsPrivate_ = 1048576; +pub const ImGuiButtonFlags_NoTestKeyOwner: ImGuiButtonFlagsPrivate_ = 2097152; +pub const ImGuiButtonFlags_PressedOnMask_: ImGuiButtonFlagsPrivate_ = 1008; +pub const ImGuiButtonFlags_PressedOnDefault_: ImGuiButtonFlagsPrivate_ = 32; +pub type ImGuiButtonFlagsPrivate_ = cty::c_uint; +pub const ImGuiComboFlags_CustomPreview: ImGuiComboFlagsPrivate_ = 1048576; +pub type ImGuiComboFlagsPrivate_ = cty::c_uint; +pub const ImGuiSliderFlags_Vertical: ImGuiSliderFlagsPrivate_ = 1048576; +pub const ImGuiSliderFlags_ReadOnly: ImGuiSliderFlagsPrivate_ = 2097152; +pub type ImGuiSliderFlagsPrivate_ = cty::c_uint; +pub const ImGuiSelectableFlags_NoHoldingActiveID: ImGuiSelectableFlagsPrivate_ = 1048576; +pub const ImGuiSelectableFlags_SelectOnNav: ImGuiSelectableFlagsPrivate_ = 2097152; +pub const ImGuiSelectableFlags_SelectOnClick: ImGuiSelectableFlagsPrivate_ = 4194304; +pub const ImGuiSelectableFlags_SelectOnRelease: ImGuiSelectableFlagsPrivate_ = 8388608; +pub const ImGuiSelectableFlags_SpanAvailWidth: ImGuiSelectableFlagsPrivate_ = 16777216; +pub const ImGuiSelectableFlags_DrawHoveredWhenHeld: ImGuiSelectableFlagsPrivate_ = 33554432; +pub const ImGuiSelectableFlags_SetNavIdOnHover: ImGuiSelectableFlagsPrivate_ = 67108864; +pub const ImGuiSelectableFlags_NoPadWithHalfSpacing: ImGuiSelectableFlagsPrivate_ = 134217728; +pub const ImGuiSelectableFlags_NoSetKeyOwner: ImGuiSelectableFlagsPrivate_ = 268435456; +pub type ImGuiSelectableFlagsPrivate_ = cty::c_uint; +pub const ImGuiTreeNodeFlags_ClipLabelForTrailingButton: ImGuiTreeNodeFlagsPrivate_ = 1048576; +pub type ImGuiTreeNodeFlagsPrivate_ = cty::c_uint; +pub const ImGuiSeparatorFlags_None: ImGuiSeparatorFlags_ = 0; +pub const ImGuiSeparatorFlags_Horizontal: ImGuiSeparatorFlags_ = 1; +pub const ImGuiSeparatorFlags_Vertical: ImGuiSeparatorFlags_ = 2; +pub const ImGuiSeparatorFlags_SpanAllColumns: ImGuiSeparatorFlags_ = 4; +pub type ImGuiSeparatorFlags_ = cty::c_uint; +pub const ImGuiTextFlags_None: ImGuiTextFlags_ = 0; +pub const ImGuiTextFlags_NoWidthForLargeClippedText: ImGuiTextFlags_ = 1; +pub type ImGuiTextFlags_ = cty::c_uint; +pub const ImGuiTooltipFlags_None: ImGuiTooltipFlags_ = 0; +pub const ImGuiTooltipFlags_OverridePreviousTooltip: ImGuiTooltipFlags_ = 1; +pub type ImGuiTooltipFlags_ = cty::c_uint; +pub const ImGuiLayoutType_Horizontal: ImGuiLayoutType_ = 0; +pub const ImGuiLayoutType_Vertical: ImGuiLayoutType_ = 1; +pub type ImGuiLayoutType_ = cty::c_uint; +pub const ImGuiLogType_None: ImGuiLogType = 0; +pub const ImGuiLogType_TTY: ImGuiLogType = 1; +pub const ImGuiLogType_File: ImGuiLogType = 2; +pub const ImGuiLogType_Buffer: ImGuiLogType = 3; +pub const ImGuiLogType_Clipboard: ImGuiLogType = 4; +pub type ImGuiLogType = cty::c_uint; +pub const ImGuiAxis_None: ImGuiAxis = -1; +pub const ImGuiAxis_X: ImGuiAxis = 0; +pub const ImGuiAxis_Y: ImGuiAxis = 1; +pub type ImGuiAxis = cty::c_int; +pub const ImGuiPlotType_Lines: ImGuiPlotType = 0; +pub const ImGuiPlotType_Histogram: ImGuiPlotType = 1; +pub type ImGuiPlotType = cty::c_uint; +pub const ImGuiPopupPositionPolicy_Default: ImGuiPopupPositionPolicy = 0; +pub const ImGuiPopupPositionPolicy_ComboBox: ImGuiPopupPositionPolicy = 1; +pub const ImGuiPopupPositionPolicy_Tooltip: ImGuiPopupPositionPolicy = 2; +pub type ImGuiPopupPositionPolicy = cty::c_uint; #[repr(C)] #[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiOnceUponAFrame { - pub RefFrame: cty::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTextRange { - pub b: *const cty::c_char, - pub e: *const cty::c_char, -} -impl Default for ImGuiTextRange { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct ImGuiDataTypeTempStorage { + pub Data: [ImU8; 8usize], } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTextFilter { - pub InputBuf: [cty::c_char; 256usize], - pub Filters: ImVector_ImGuiTextRange, - pub CountGrep: cty::c_int, +pub struct ImGuiDataTypeInfo { + pub Size: usize, + pub Name: *const cty::c_char, + pub PrintFmt: *const cty::c_char, + pub ScanFmt: *const cty::c_char, } -impl Default for ImGuiTextFilter { +impl Default for ImGuiDataTypeInfo { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1894,34 +2399,29 @@ impl Default for ImGuiTextFilter { } } } +pub const ImGuiDataType_String: ImGuiDataTypePrivate_ = 11; +pub const ImGuiDataType_Pointer: ImGuiDataTypePrivate_ = 12; +pub const ImGuiDataType_ID: ImGuiDataTypePrivate_ = 13; +pub type ImGuiDataTypePrivate_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTextBuffer { - pub Buf: ImVector_char, -} -impl Default for ImGuiTextBuffer { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiColorMod { + pub Col: ImGuiCol, + pub BackupValue: ImVec4, } #[repr(C)] #[derive(Copy, Clone)] -pub struct ImGuiStoragePair { - pub key: ImGuiID, - pub __bindgen_anon_1: ImGuiStoragePair__bindgen_ty_1, +pub struct ImGuiStyleMod { + pub VarIdx: ImGuiStyleVar, + pub __bindgen_anon_1: ImGuiStyleMod__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] -pub union ImGuiStoragePair__bindgen_ty_1 { - pub val_i: cty::c_int, - pub val_f: f32, - pub val_p: *mut cty::c_void, +pub union ImGuiStyleMod__bindgen_ty_1 { + pub BackupInt: [cty::c_int; 2usize], + pub BackupFloat: [f32; 2usize], } -impl Default for ImGuiStoragePair__bindgen_ty_1 { +impl Default for ImGuiStyleMod__bindgen_ty_1 { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1930,12 +2430,12 @@ impl Default for ImGuiStoragePair__bindgen_ty_1 { } } } -impl ::core::fmt::Debug for ImGuiStoragePair__bindgen_ty_1 { +impl ::core::fmt::Debug for ImGuiStyleMod__bindgen_ty_1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "ImGuiStoragePair__bindgen_ty_1 {{ union }}") + write!(f, "ImGuiStyleMod__bindgen_ty_1 {{ union }}") } } -impl Default for ImGuiStoragePair { +impl Default for ImGuiStyleMod { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1944,85 +2444,72 @@ impl Default for ImGuiStoragePair { } } } -impl ::core::fmt::Debug for ImGuiStoragePair { +impl ::core::fmt::Debug for ImGuiStyleMod { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { write!( f, - "ImGuiStoragePair {{ key: {:?}, __bindgen_anon_1: {:?} }}", - self.key, self.__bindgen_anon_1 + "ImGuiStyleMod {{ VarIdx: {:?}, __bindgen_anon_1: {:?} }}", + self.VarIdx, self.__bindgen_anon_1 ) } } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiStorage { - pub Data: ImVector_ImGuiStoragePair, -} -impl Default for ImGuiStorage { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTabBar { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTabBar, -} -impl Default for ImVector_ImGuiTabBar { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiComboPreviewData { + pub PreviewRect: ImRect, + pub BackupCursorPos: ImVec2, + pub BackupCursorMaxPos: ImVec2, + pub BackupCursorPosPrevLine: ImVec2, + pub BackupPrevLineTextBaseOffset: f32, + pub BackupLayout: ImGuiLayoutType, } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImPool_ImGuiTabBar { - pub Buf: ImVector_ImGuiTabBar, - pub Map: ImGuiStorage, - pub FreeIdx: ImPoolIdx, -} -impl Default for ImPool_ImGuiTabBar { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiGroupData { + pub WindowID: ImGuiID, + pub BackupCursorPos: ImVec2, + pub BackupCursorMaxPos: ImVec2, + pub BackupIndent: ImVec1, + pub BackupGroupOffset: ImVec1, + pub BackupCurrLineSize: ImVec2, + pub BackupCurrLineTextBaseOffset: f32, + pub BackupActiveIdIsAlive: ImGuiID, + pub BackupActiveIdPreviousFrameIsAlive: bool, + pub BackupHoveredIdIsAlive: bool, + pub EmitItem: bool, } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTable { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTable, -} -impl Default for ImVector_ImGuiTable { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiMenuColumns { + pub TotalWidth: ImU32, + pub NextTotalWidth: ImU32, + pub Spacing: ImU16, + pub OffsetIcon: ImU16, + pub OffsetLabel: ImU16, + pub OffsetShortcut: ImU16, + pub OffsetMark: ImU16, + pub Widths: [ImU16; 4usize], } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImPool_ImGuiTable { - pub Buf: ImVector_ImGuiTable, - pub Map: ImGuiStorage, - pub FreeIdx: ImPoolIdx, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiInputTextState { + pub ID: ImGuiID, + pub CurLenW: cty::c_int, + pub CurLenA: cty::c_int, + pub TextW: ImVector_ImWchar, + pub TextA: ImVector_char, + pub InitialTextA: ImVector_char, + pub TextAIsValid: bool, + pub BufCapacityA: cty::c_int, + pub ScrollX: f32, + pub Stb: STB_TexteditState, + pub CursorAnim: f32, + pub CursorFollow: bool, + pub SelectedAllMouseLock: bool, + pub Edited: bool, + pub Flags: ImGuiInputTextFlags, } -impl Default for ImPool_ImGuiTable { +impl Default for ImGuiInputTextState { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2033,15 +2520,17 @@ impl Default for ImPool_ImGuiTable { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiListClipper { - pub DisplayStart: cty::c_int, - pub DisplayEnd: cty::c_int, - pub ItemsCount: cty::c_int, - pub ItemsHeight: f32, - pub StartPosY: f32, - pub TempData: *mut cty::c_void, +pub struct ImGuiPopupData { + pub PopupId: ImGuiID, + pub Window: *mut ImGuiWindow, + pub BackupNavWindow: *mut ImGuiWindow, + pub ParentNavLayer: cty::c_int, + pub OpenFrameCount: cty::c_int, + pub OpenParentId: ImGuiID, + pub OpenPopupPos: ImVec2, + pub OpenMousePos: ImVec2, } -impl Default for ImGuiListClipper { +impl Default for ImGuiPopupData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2050,23 +2539,44 @@ impl Default for ImGuiListClipper { } } } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImColor { - pub Value: ImVec4, -} +pub const ImGuiNextWindowDataFlags_None: ImGuiNextWindowDataFlags_ = 0; +pub const ImGuiNextWindowDataFlags_HasPos: ImGuiNextWindowDataFlags_ = 1; +pub const ImGuiNextWindowDataFlags_HasSize: ImGuiNextWindowDataFlags_ = 2; +pub const ImGuiNextWindowDataFlags_HasContentSize: ImGuiNextWindowDataFlags_ = 4; +pub const ImGuiNextWindowDataFlags_HasCollapsed: ImGuiNextWindowDataFlags_ = 8; +pub const ImGuiNextWindowDataFlags_HasSizeConstraint: ImGuiNextWindowDataFlags_ = 16; +pub const ImGuiNextWindowDataFlags_HasFocus: ImGuiNextWindowDataFlags_ = 32; +pub const ImGuiNextWindowDataFlags_HasBgAlpha: ImGuiNextWindowDataFlags_ = 64; +pub const ImGuiNextWindowDataFlags_HasScroll: ImGuiNextWindowDataFlags_ = 128; +pub const ImGuiNextWindowDataFlags_HasViewport: ImGuiNextWindowDataFlags_ = 256; +pub const ImGuiNextWindowDataFlags_HasDock: ImGuiNextWindowDataFlags_ = 512; +pub const ImGuiNextWindowDataFlags_HasWindowClass: ImGuiNextWindowDataFlags_ = 1024; +pub type ImGuiNextWindowDataFlags_ = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawCmd { - pub ClipRect: ImVec4, - pub TextureId: ImTextureID, - pub VtxOffset: cty::c_uint, - pub IdxOffset: cty::c_uint, - pub ElemCount: cty::c_uint, - pub UserCallback: ImDrawCallback, - pub UserCallbackData: *mut cty::c_void, +pub struct ImGuiNextWindowData { + pub Flags: ImGuiNextWindowDataFlags, + pub PosCond: ImGuiCond, + pub SizeCond: ImGuiCond, + pub CollapsedCond: ImGuiCond, + pub DockCond: ImGuiCond, + pub PosVal: ImVec2, + pub PosPivotVal: ImVec2, + pub SizeVal: ImVec2, + pub ContentSizeVal: ImVec2, + pub ScrollVal: ImVec2, + pub PosUndock: bool, + pub CollapsedVal: bool, + pub SizeConstraintRect: ImRect, + pub SizeCallback: ImGuiSizeCallback, + pub SizeCallbackUserData: *mut cty::c_void, + pub BgAlphaVal: f32, + pub ViewportId: ImGuiID, + pub DockId: ImGuiID, + pub WindowClass: ImGuiWindowClass, + pub MenuBarOffsetMinVal: ImVec2, } -impl Default for ImDrawCmd { +impl Default for ImGuiNextWindowData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2075,21 +2585,50 @@ impl Default for ImDrawCmd { } } } +pub const ImGuiNextItemDataFlags_None: ImGuiNextItemDataFlags_ = 0; +pub const ImGuiNextItemDataFlags_HasWidth: ImGuiNextItemDataFlags_ = 1; +pub const ImGuiNextItemDataFlags_HasOpen: ImGuiNextItemDataFlags_ = 2; +pub type ImGuiNextItemDataFlags_ = cty::c_uint; #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImDrawVert { - pub pos: ImVec2, - pub uv: ImVec2, - pub col: ImU32, +pub struct ImGuiNextItemData { + pub Flags: ImGuiNextItemDataFlags, + pub Width: f32, + pub FocusScopeId: ImGuiID, + pub OpenCond: ImGuiCond, + pub OpenVal: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiLastItemData { + pub ID: ImGuiID, + pub InFlags: ImGuiItemFlags, + pub StatusFlags: ImGuiItemStatusFlags, + pub Rect: ImRect, + pub NavRect: ImRect, + pub DisplayRect: ImRect, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStackSizes { + pub SizeOfIDStack: cty::c_short, + pub SizeOfColorStack: cty::c_short, + pub SizeOfStyleVarStack: cty::c_short, + pub SizeOfFontStack: cty::c_short, + pub SizeOfFocusScopeStack: cty::c_short, + pub SizeOfGroupStack: cty::c_short, + pub SizeOfItemFlagsStack: cty::c_short, + pub SizeOfBeginPopupStack: cty::c_short, + pub SizeOfDisabledStack: cty::c_short, } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawCmdHeader { - pub ClipRect: ImVec4, - pub TextureId: ImTextureID, - pub VtxOffset: cty::c_uint, +pub struct ImGuiWindowStackData { + pub Window: *mut ImGuiWindow, + pub ParentLastItemDataBackup: ImGuiLastItemData, + pub StackSizesOnBegin: ImGuiStackSizes, } -impl Default for ImDrawCmdHeader { +impl Default for ImGuiWindowStackData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2099,12 +2638,19 @@ impl Default for ImDrawCmdHeader { } } #[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiShrinkWidthItem { + pub Index: cty::c_int, + pub Width: f32, + pub InitialWidth: f32, +} +#[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImDrawChannel { - pub _CmdBuffer: ImVector_ImDrawCmd, - pub _IdxBuffer: ImVector_ImDrawIdx, +pub struct ImGuiPtrOrIndex { + pub Ptr: *mut cty::c_void, + pub Index: cty::c_int, } -impl Default for ImDrawChannel { +impl Default for ImGuiPtrOrIndex { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2113,63 +2659,55 @@ impl Default for ImDrawChannel { } } } +pub const ImGuiInputEventType_None: ImGuiInputEventType = 0; +pub const ImGuiInputEventType_MousePos: ImGuiInputEventType = 1; +pub const ImGuiInputEventType_MouseWheel: ImGuiInputEventType = 2; +pub const ImGuiInputEventType_MouseButton: ImGuiInputEventType = 3; +pub const ImGuiInputEventType_MouseViewport: ImGuiInputEventType = 4; +pub const ImGuiInputEventType_Key: ImGuiInputEventType = 5; +pub const ImGuiInputEventType_Text: ImGuiInputEventType = 6; +pub const ImGuiInputEventType_Focus: ImGuiInputEventType = 7; +pub const ImGuiInputEventType_COUNT: ImGuiInputEventType = 8; +pub type ImGuiInputEventType = cty::c_uint; +pub const ImGuiInputSource_None: ImGuiInputSource = 0; +pub const ImGuiInputSource_Mouse: ImGuiInputSource = 1; +pub const ImGuiInputSource_Keyboard: ImGuiInputSource = 2; +pub const ImGuiInputSource_Gamepad: ImGuiInputSource = 3; +pub const ImGuiInputSource_Clipboard: ImGuiInputSource = 4; +pub const ImGuiInputSource_Nav: ImGuiInputSource = 5; +pub const ImGuiInputSource_COUNT: ImGuiInputSource = 6; +pub type ImGuiInputSource = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImDrawListSplitter { - pub _Current: cty::c_int, - pub _Count: cty::c_int, - pub _Channels: ImVector_ImDrawChannel, +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventMousePos { + pub PosX: f32, + pub PosY: f32, } -impl Default for ImDrawListSplitter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventMouseWheel { + pub WheelX: f32, + pub WheelY: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventMouseButton { + pub Button: cty::c_int, + pub Down: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventMouseViewport { + pub HoveredViewportID: ImGuiID, } -pub const ImDrawFlags_None: ImDrawFlags_ = 0; -pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; -pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; -pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; -pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; -pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; -pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; -pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; -pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; -pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; -pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; -pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; -pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; -pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; -pub type ImDrawFlags_ = cty::c_uint; -pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; -pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; -pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; -pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; -pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; -pub type ImDrawListFlags_ = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawList { - pub CmdBuffer: ImVector_ImDrawCmd, - pub IdxBuffer: ImVector_ImDrawIdx, - pub VtxBuffer: ImVector_ImDrawVert, - pub Flags: ImDrawListFlags, - pub _VtxCurrentIdx: cty::c_uint, - pub _Data: *const ImDrawListSharedData, - pub _OwnerName: *const cty::c_char, - pub _VtxWritePtr: *mut ImDrawVert, - pub _IdxWritePtr: *mut ImDrawIdx, - pub _ClipRectStack: ImVector_ImVec4, - pub _TextureIdStack: ImVector_ImTextureID, - pub _Path: ImVector_ImVec2, - pub _CmdHeader: ImDrawCmdHeader, - pub _Splitter: ImDrawListSplitter, - pub _FringeScale: f32, +pub struct ImGuiInputEventKey { + pub Key: ImGuiKey, + pub Down: bool, + pub AnalogValue: f32, } -impl Default for ImDrawList { +impl Default for ImGuiInputEventKey { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2179,19 +2717,35 @@ impl Default for ImDrawList { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawData { - pub Valid: bool, - pub CmdListsCount: cty::c_int, - pub TotalIdxCount: cty::c_int, - pub TotalVtxCount: cty::c_int, - pub CmdLists: *mut *mut ImDrawList, - pub DisplayPos: ImVec2, - pub DisplaySize: ImVec2, - pub FramebufferScale: ImVec2, - pub OwnerViewport: *mut ImGuiViewport, +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventText { + pub Char: cty::c_uint, } -impl Default for ImDrawData { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventAppFocused { + pub Focused: bool, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiInputEvent { + pub Type: ImGuiInputEventType, + pub Source: ImGuiInputSource, + pub __bindgen_anon_1: ImGuiInputEvent__bindgen_ty_1, + pub AddedByTestEngine: bool, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiInputEvent__bindgen_ty_1 { + pub MousePos: ImGuiInputEventMousePos, + pub MouseWheel: ImGuiInputEventMouseWheel, + pub MouseButton: ImGuiInputEventMouseButton, + pub MouseViewport: ImGuiInputEventMouseViewport, + pub Key: ImGuiInputEventKey, + pub Text: ImGuiInputEventText, + pub AppFocused: ImGuiInputEventAppFocused, +} +impl Default for ImGuiInputEvent__bindgen_ty_1 { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2200,30 +2754,12 @@ impl Default for ImDrawData { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImFontConfig { - pub FontData: *mut cty::c_void, - pub FontDataSize: cty::c_int, - pub FontDataOwnedByAtlas: bool, - pub FontNo: cty::c_int, - pub SizePixels: f32, - pub OversampleH: cty::c_int, - pub OversampleV: cty::c_int, - pub PixelSnapH: bool, - pub GlyphExtraSpacing: ImVec2, - pub GlyphOffset: ImVec2, - pub GlyphRanges: *const ImWchar, - pub GlyphMinAdvanceX: f32, - pub GlyphMaxAdvanceX: f32, - pub MergeMode: bool, - pub FontBuilderFlags: cty::c_uint, - pub RasterizerMultiply: f32, - pub EllipsisChar: ImWchar, - pub Name: [cty::c_char; 40usize], - pub DstFont: *mut ImFont, +impl ::core::fmt::Debug for ImGuiInputEvent__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiInputEvent__bindgen_ty_1 {{ union }}") + } } -impl Default for ImFontConfig { +impl Default for ImGuiInputEvent { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2232,83 +2768,45 @@ impl Default for ImFontConfig { } } } +impl ::core::fmt::Debug for ImGuiInputEvent { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write ! (f , "ImGuiInputEvent {{ Type: {:?}, Source: {:?}, __bindgen_anon_1: {:?}, AddedByTestEngine: {:?} }}" , self . Type , self . Source , self . __bindgen_anon_1 , self . AddedByTestEngine) + } +} +pub type ImGuiKeyRoutingIndex = ImS16; #[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImFontGlyph { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - 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, +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyRoutingData { + pub NextEntryIndex: ImGuiKeyRoutingIndex, + pub Mods: ImU16, + pub RoutingNextScore: ImU8, + pub RoutingCurr: ImGuiID, + pub RoutingNext: ImGuiID, } -impl ImFontGlyph { - #[inline] - pub fn Colored(&self) -> cty::c_uint { - unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_Colored(&mut self, val: cty::c_uint) { - unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Visible(&self) -> cty::c_uint { - unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_Visible(&mut self, val: cty::c_uint) { - unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn Codepoint(&self) -> cty::c_uint { - unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_Codepoint(&mut self, val: cty::c_uint) { +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiKeyRoutingData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiKeyRoutingData, +} +impl Default for ImVector_ImGuiKeyRoutingData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn new_bitfield_1( - Colored: cty::c_uint, - Visible: cty::c_uint, - Codepoint: cty::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let Colored: u32 = unsafe { ::core::mem::transmute(Colored) }; - Colored as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let Visible: u32 = unsafe { ::core::mem::transmute(Visible) }; - Visible as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let Codepoint: u32 = unsafe { ::core::mem::transmute(Codepoint) }; - Codepoint as u64 - }); - __bindgen_bitfield_unit - } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImFontGlyphRangesBuilder { - pub UsedChars: ImVector_ImU32, +pub struct ImGuiKeyRoutingTable { + pub Index: [ImGuiKeyRoutingIndex; 140usize], + pub Entries: ImVector_ImGuiKeyRoutingData, + pub EntriesNext: ImVector_ImGuiKeyRoutingData, } -impl Default for ImFontGlyphRangesBuilder { +impl Default for ImGuiKeyRoutingTable { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2318,18 +2816,55 @@ impl Default for ImFontGlyphRangesBuilder { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImFontAtlasCustomRect { - pub Width: cty::c_ushort, - pub Height: cty::c_ushort, - pub X: cty::c_ushort, - pub Y: cty::c_ushort, - pub GlyphID: cty::c_uint, - pub GlyphAdvanceX: f32, - pub GlyphOffset: ImVec2, - pub Font: *mut ImFont, +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyOwnerData { + pub OwnerCurr: ImGuiID, + pub OwnerNext: ImGuiID, + pub LockThisFrame: bool, + pub LockUntilRelease: bool, +} +pub const ImGuiInputFlags_None: ImGuiInputFlags_ = 0; +pub const ImGuiInputFlags_Repeat: ImGuiInputFlags_ = 1; +pub const ImGuiInputFlags_RepeatRateDefault: ImGuiInputFlags_ = 2; +pub const ImGuiInputFlags_RepeatRateNavMove: ImGuiInputFlags_ = 4; +pub const ImGuiInputFlags_RepeatRateNavTweak: ImGuiInputFlags_ = 8; +pub const ImGuiInputFlags_RepeatRateMask_: ImGuiInputFlags_ = 14; +pub const ImGuiInputFlags_CondHovered: ImGuiInputFlags_ = 16; +pub const ImGuiInputFlags_CondActive: ImGuiInputFlags_ = 32; +pub const ImGuiInputFlags_CondDefault_: ImGuiInputFlags_ = 48; +pub const ImGuiInputFlags_CondMask_: ImGuiInputFlags_ = 48; +pub const ImGuiInputFlags_LockThisFrame: ImGuiInputFlags_ = 64; +pub const ImGuiInputFlags_LockUntilRelease: ImGuiInputFlags_ = 128; +pub const ImGuiInputFlags_RouteFocused: ImGuiInputFlags_ = 256; +pub const ImGuiInputFlags_RouteGlobalLow: ImGuiInputFlags_ = 512; +pub const ImGuiInputFlags_RouteGlobal: ImGuiInputFlags_ = 1024; +pub const ImGuiInputFlags_RouteGlobalHigh: ImGuiInputFlags_ = 2048; +pub const ImGuiInputFlags_RouteMask_: ImGuiInputFlags_ = 3840; +pub const ImGuiInputFlags_RouteAlways: ImGuiInputFlags_ = 4096; +pub const ImGuiInputFlags_RouteUnlessBgFocused: ImGuiInputFlags_ = 8192; +pub const ImGuiInputFlags_RouteExtraMask_: ImGuiInputFlags_ = 12288; +pub const ImGuiInputFlags_SupportedByIsKeyPressed: ImGuiInputFlags_ = 15; +pub const ImGuiInputFlags_SupportedByShortcut: ImGuiInputFlags_ = 16143; +pub const ImGuiInputFlags_SupportedBySetKeyOwner: ImGuiInputFlags_ = 192; +pub const ImGuiInputFlags_SupportedBySetItemKeyOwner: ImGuiInputFlags_ = 240; +pub type ImGuiInputFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiListClipperRange { + pub Min: cty::c_int, + pub Max: cty::c_int, + pub PosToIndexConvert: bool, + pub PosToIndexOffsetMin: ImS8, + pub PosToIndexOffsetMax: ImS8, } -impl Default for ImFontAtlasCustomRect { +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiListClipperRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiListClipperRange, +} +impl Default for ImVector_ImGuiListClipperRange { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2338,37 +2873,16 @@ impl Default for ImFontAtlasCustomRect { } } } -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 type ImFontAtlasFlags_ = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImFontAtlas { - pub Flags: ImFontAtlasFlags, - pub TexID: ImTextureID, - pub TexDesiredWidth: cty::c_int, - pub TexGlyphPadding: cty::c_int, - pub Locked: bool, - pub TexReady: bool, - pub TexPixelsUseColors: bool, - pub TexPixelsAlpha8: *mut cty::c_uchar, - pub TexPixelsRGBA32: *mut cty::c_uint, - pub TexWidth: cty::c_int, - pub TexHeight: cty::c_int, - pub TexUvScale: ImVec2, - pub TexUvWhitePixel: ImVec2, - pub Fonts: ImVector_ImFontPtr, - pub CustomRects: ImVector_ImFontAtlasCustomRect, - pub ConfigData: ImVector_ImFontConfig, - pub TexUvLines: [ImVec4; 64usize], - pub FontBuilderIO: *const ImFontBuilderIO, - pub FontBuilderFlags: cty::c_uint, - pub PackIdMouseCursors: cty::c_int, - pub PackIdLines: cty::c_int, +pub struct ImGuiListClipperData { + pub ListClipper: *mut ImGuiListClipper, + pub LossynessOffset: f32, + pub StepNo: cty::c_int, + pub ItemsFrozen: cty::c_int, + pub Ranges: ImVector_ImGuiListClipperRange, } -impl Default for ImFontAtlas { +impl Default for ImGuiListClipperData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2377,29 +2891,60 @@ impl Default for ImFontAtlas { } } } +pub const ImGuiActivateFlags_None: ImGuiActivateFlags_ = 0; +pub const ImGuiActivateFlags_PreferInput: ImGuiActivateFlags_ = 1; +pub const ImGuiActivateFlags_PreferTweak: ImGuiActivateFlags_ = 2; +pub const ImGuiActivateFlags_TryToPreserveState: ImGuiActivateFlags_ = 4; +pub type ImGuiActivateFlags_ = cty::c_uint; +pub const ImGuiScrollFlags_None: ImGuiScrollFlags_ = 0; +pub const ImGuiScrollFlags_KeepVisibleEdgeX: ImGuiScrollFlags_ = 1; +pub const ImGuiScrollFlags_KeepVisibleEdgeY: ImGuiScrollFlags_ = 2; +pub const ImGuiScrollFlags_KeepVisibleCenterX: ImGuiScrollFlags_ = 4; +pub const ImGuiScrollFlags_KeepVisibleCenterY: ImGuiScrollFlags_ = 8; +pub const ImGuiScrollFlags_AlwaysCenterX: ImGuiScrollFlags_ = 16; +pub const ImGuiScrollFlags_AlwaysCenterY: ImGuiScrollFlags_ = 32; +pub const ImGuiScrollFlags_NoScrollParent: ImGuiScrollFlags_ = 64; +pub const ImGuiScrollFlags_MaskX_: ImGuiScrollFlags_ = 21; +pub const ImGuiScrollFlags_MaskY_: ImGuiScrollFlags_ = 42; +pub type ImGuiScrollFlags_ = cty::c_uint; +pub const ImGuiNavHighlightFlags_None: ImGuiNavHighlightFlags_ = 0; +pub const ImGuiNavHighlightFlags_TypeDefault: ImGuiNavHighlightFlags_ = 1; +pub const ImGuiNavHighlightFlags_TypeThin: ImGuiNavHighlightFlags_ = 2; +pub const ImGuiNavHighlightFlags_AlwaysDraw: ImGuiNavHighlightFlags_ = 4; +pub const ImGuiNavHighlightFlags_NoRounding: ImGuiNavHighlightFlags_ = 8; +pub type ImGuiNavHighlightFlags_ = cty::c_uint; +pub const ImGuiNavMoveFlags_None: ImGuiNavMoveFlags_ = 0; +pub const ImGuiNavMoveFlags_LoopX: ImGuiNavMoveFlags_ = 1; +pub const ImGuiNavMoveFlags_LoopY: ImGuiNavMoveFlags_ = 2; +pub const ImGuiNavMoveFlags_WrapX: ImGuiNavMoveFlags_ = 4; +pub const ImGuiNavMoveFlags_WrapY: ImGuiNavMoveFlags_ = 8; +pub const ImGuiNavMoveFlags_AllowCurrentNavId: ImGuiNavMoveFlags_ = 16; +pub const ImGuiNavMoveFlags_AlsoScoreVisibleSet: ImGuiNavMoveFlags_ = 32; +pub const ImGuiNavMoveFlags_ScrollToEdgeY: ImGuiNavMoveFlags_ = 64; +pub const ImGuiNavMoveFlags_Forwarded: ImGuiNavMoveFlags_ = 128; +pub const ImGuiNavMoveFlags_DebugNoResult: ImGuiNavMoveFlags_ = 256; +pub const ImGuiNavMoveFlags_FocusApi: ImGuiNavMoveFlags_ = 512; +pub const ImGuiNavMoveFlags_Tabbing: ImGuiNavMoveFlags_ = 1024; +pub const ImGuiNavMoveFlags_Activate: ImGuiNavMoveFlags_ = 2048; +pub const ImGuiNavMoveFlags_DontSetNavHighlight: ImGuiNavMoveFlags_ = 4096; +pub type ImGuiNavMoveFlags_ = cty::c_uint; +pub const ImGuiNavLayer_Main: ImGuiNavLayer = 0; +pub const ImGuiNavLayer_Menu: ImGuiNavLayer = 1; +pub const ImGuiNavLayer_COUNT: ImGuiNavLayer = 2; +pub type ImGuiNavLayer = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImFont { - pub IndexAdvanceX: ImVector_float, - pub FallbackAdvanceX: f32, - pub FontSize: f32, - pub IndexLookup: ImVector_ImWchar, - pub Glyphs: ImVector_ImFontGlyph, - pub FallbackGlyph: *const ImFontGlyph, - pub ContainerAtlas: *mut ImFontAtlas, - pub ConfigData: *const ImFontConfig, - pub ConfigDataCount: cty::c_short, - pub FallbackChar: ImWchar, - pub EllipsisChar: ImWchar, - pub DotChar: ImWchar, - pub DirtyLookupTables: bool, - pub Scale: f32, - pub Ascent: f32, - pub Descent: f32, - pub MetricsTotalSurface: cty::c_int, - pub Used4kPagesMap: [ImU8; 34usize], +pub struct ImGuiNavItemData { + pub Window: *mut ImGuiWindow, + pub ID: ImGuiID, + pub FocusScopeId: ImGuiID, + pub RectRel: ImRect, + pub InFlags: ImGuiItemFlags, + pub DistBox: f32, + pub DistCenter: f32, + pub DistAxial: f32, } -impl Default for ImFont { +impl Default for ImGuiNavItemData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2408,42 +2953,29 @@ impl Default for ImFont { } } } -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 ImGuiViewportFlags_NoDecoration: ImGuiViewportFlags_ = 8; -pub const ImGuiViewportFlags_NoTaskBarIcon: ImGuiViewportFlags_ = 16; -pub const ImGuiViewportFlags_NoFocusOnAppearing: ImGuiViewportFlags_ = 32; -pub const ImGuiViewportFlags_NoFocusOnClick: ImGuiViewportFlags_ = 64; -pub const ImGuiViewportFlags_NoInputs: ImGuiViewportFlags_ = 128; -pub const ImGuiViewportFlags_NoRendererClear: ImGuiViewportFlags_ = 256; -pub const ImGuiViewportFlags_TopMost: ImGuiViewportFlags_ = 512; -pub const ImGuiViewportFlags_Minimized: ImGuiViewportFlags_ = 1024; -pub const ImGuiViewportFlags_NoAutoMerge: ImGuiViewportFlags_ = 2048; -pub const ImGuiViewportFlags_CanHostOtherWindows: ImGuiViewportFlags_ = 4096; -pub type ImGuiViewportFlags_ = cty::c_uint; +pub const ImGuiOldColumnFlags_None: ImGuiOldColumnFlags_ = 0; +pub const ImGuiOldColumnFlags_NoBorder: ImGuiOldColumnFlags_ = 1; +pub const ImGuiOldColumnFlags_NoResize: ImGuiOldColumnFlags_ = 2; +pub const ImGuiOldColumnFlags_NoPreserveWidths: ImGuiOldColumnFlags_ = 4; +pub const ImGuiOldColumnFlags_NoForceWithinWindow: ImGuiOldColumnFlags_ = 8; +pub const ImGuiOldColumnFlags_GrowParentContentsSize: ImGuiOldColumnFlags_ = 16; +pub type ImGuiOldColumnFlags_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiViewport { - pub ID: ImGuiID, - pub Flags: ImGuiViewportFlags, - pub Pos: ImVec2, - pub Size: ImVec2, - pub WorkPos: ImVec2, - pub WorkSize: ImVec2, - pub DpiScale: f32, - pub ParentViewportId: ImGuiID, - pub DrawData: *mut ImDrawData, - pub RendererUserData: *mut cty::c_void, - pub PlatformUserData: *mut cty::c_void, - pub PlatformHandle: *mut cty::c_void, - pub PlatformHandleRaw: *mut cty::c_void, - pub PlatformRequestMove: bool, - pub PlatformRequestResize: bool, - pub PlatformRequestClose: bool, +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiOldColumnData { + pub OffsetNorm: f32, + pub OffsetNormBeforeResize: f32, + pub Flags: ImGuiOldColumnFlags, + pub ClipRect: ImRect, } -impl Default for ImGuiViewport { +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiOldColumnData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiOldColumnData, +} +impl Default for ImVector_ImGuiOldColumnData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2453,67 +2985,27 @@ impl Default for ImGuiViewport { } } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiPlatformIO { - pub Platform_CreateWindow: ::core::option::Option, - pub Platform_DestroyWindow: - ::core::option::Option, - pub Platform_ShowWindow: ::core::option::Option, - pub Platform_SetWindowPos: - ::core::option::Option, - pub Platform_GetWindowPos: - ::core::option::Option ImVec2>, - pub Platform_SetWindowSize: - ::core::option::Option, - pub Platform_GetWindowSize: - ::core::option::Option ImVec2>, - pub Platform_SetWindowFocus: - ::core::option::Option, - pub Platform_GetWindowFocus: - ::core::option::Option bool>, - pub Platform_GetWindowMinimized: - ::core::option::Option bool>, - pub Platform_SetWindowTitle: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, str_: *const cty::c_char), - >, - pub Platform_SetWindowAlpha: - ::core::option::Option, - pub Platform_UpdateWindow: ::core::option::Option, - pub Platform_RenderWindow: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), - >, - pub Platform_SwapBuffers: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), - >, - pub Platform_GetWindowDpiScale: - ::core::option::Option f32>, - pub Platform_OnChangedViewport: - ::core::option::Option, - pub Platform_SetImeInputPos: - ::core::option::Option, - pub Platform_CreateVkSurface: ::core::option::Option< - unsafe extern "C" fn( - vp: *mut ImGuiViewport, - vk_inst: ImU64, - vk_allocators: *const cty::c_void, - out_vk_surface: *mut ImU64, - ) -> cty::c_int, - >, - pub Renderer_CreateWindow: ::core::option::Option, - pub Renderer_DestroyWindow: - ::core::option::Option, - pub Renderer_SetWindowSize: - ::core::option::Option, - pub Renderer_RenderWindow: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), - >, - pub Renderer_SwapBuffers: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), - >, - pub Monitors: ImVector_ImGuiPlatformMonitor, - pub Viewports: ImVector_ImGuiViewportPtr, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiOldColumns { + pub ID: ImGuiID, + pub Flags: ImGuiOldColumnFlags, + pub IsFirstFrame: bool, + pub IsBeingResized: bool, + pub Current: cty::c_int, + pub Count: cty::c_int, + pub OffMinX: f32, + pub OffMaxX: f32, + pub LineMinY: f32, + pub LineMaxY: f32, + pub HostCursorPosY: f32, + pub HostCursorMaxPosX: f32, + pub HostInitialClipRect: ImRect, + pub HostBackupClipRect: ImRect, + pub HostBackupParentWorkRect: ImRect, + pub Columns: ImVector_ImGuiOldColumnData, + pub Splitter: ImDrawListSplitter, } -impl Default for ImGuiPlatformIO { +impl Default for ImGuiOldColumns { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2522,34 +3014,43 @@ impl Default for ImGuiPlatformIO { } } } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiPlatformMonitor { - pub MainPos: ImVec2, - pub MainSize: ImVec2, - pub WorkPos: ImVec2, - pub WorkSize: ImVec2, - pub DpiScale: f32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct StbUndoRecord { - pub where_: cty::c_int, - pub insert_length: cty::c_int, - pub delete_length: cty::c_int, - pub char_storage: cty::c_int, -} +pub const ImGuiDockNodeFlags_DockSpace: ImGuiDockNodeFlagsPrivate_ = 1024; +pub const ImGuiDockNodeFlags_CentralNode: ImGuiDockNodeFlagsPrivate_ = 2048; +pub const ImGuiDockNodeFlags_NoTabBar: ImGuiDockNodeFlagsPrivate_ = 4096; +pub const ImGuiDockNodeFlags_HiddenTabBar: ImGuiDockNodeFlagsPrivate_ = 8192; +pub const ImGuiDockNodeFlags_NoWindowMenuButton: ImGuiDockNodeFlagsPrivate_ = 16384; +pub const ImGuiDockNodeFlags_NoCloseButton: ImGuiDockNodeFlagsPrivate_ = 32768; +pub const ImGuiDockNodeFlags_NoDocking: ImGuiDockNodeFlagsPrivate_ = 65536; +pub const ImGuiDockNodeFlags_NoDockingSplitMe: ImGuiDockNodeFlagsPrivate_ = 131072; +pub const ImGuiDockNodeFlags_NoDockingSplitOther: ImGuiDockNodeFlagsPrivate_ = 262144; +pub const ImGuiDockNodeFlags_NoDockingOverMe: ImGuiDockNodeFlagsPrivate_ = 524288; +pub const ImGuiDockNodeFlags_NoDockingOverOther: ImGuiDockNodeFlagsPrivate_ = 1048576; +pub const ImGuiDockNodeFlags_NoDockingOverEmpty: ImGuiDockNodeFlagsPrivate_ = 2097152; +pub const ImGuiDockNodeFlags_NoResizeX: ImGuiDockNodeFlagsPrivate_ = 4194304; +pub const ImGuiDockNodeFlags_NoResizeY: ImGuiDockNodeFlagsPrivate_ = 8388608; +pub const ImGuiDockNodeFlags_SharedFlagsInheritMask_: ImGuiDockNodeFlagsPrivate_ = -1; +pub const ImGuiDockNodeFlags_NoResizeFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12582944; +pub const ImGuiDockNodeFlags_LocalFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12713072; +pub const ImGuiDockNodeFlags_LocalFlagsTransferMask_: ImGuiDockNodeFlagsPrivate_ = 12712048; +pub const ImGuiDockNodeFlags_SavedFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12712992; +pub type ImGuiDockNodeFlagsPrivate_ = cty::c_int; +pub const ImGuiDataAuthority_Auto: ImGuiDataAuthority_ = 0; +pub const ImGuiDataAuthority_DockNode: ImGuiDataAuthority_ = 1; +pub const ImGuiDataAuthority_Window: ImGuiDataAuthority_ = 2; +pub type ImGuiDataAuthority_ = cty::c_uint; +pub const ImGuiDockNodeState_Unknown: ImGuiDockNodeState = 0; +pub const ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow: ImGuiDockNodeState = 1; +pub const ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing: ImGuiDockNodeState = 2; +pub const ImGuiDockNodeState_HostWindowVisible: ImGuiDockNodeState = 3; +pub type ImGuiDockNodeState = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct StbUndoState { - pub undo_rec: [StbUndoRecord; 99usize], - pub undo_char: [ImWchar; 999usize], - pub undo_point: cty::c_short, - pub redo_point: cty::c_short, - pub undo_char_point: cty::c_int, - pub redo_char_point: cty::c_int, +pub struct ImVector_ImGuiWindowPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiWindow, } -impl Default for StbUndoState { +impl Default for ImVector_ImGuiWindowPtr { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2560,23 +3061,39 @@ impl Default for StbUndoState { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct STB_TexteditState { - pub cursor: cty::c_int, - pub select_start: cty::c_int, - pub select_end: cty::c_int, - pub insert_mode: cty::c_uchar, - pub row_count_per_page: cty::c_int, - pub cursor_at_end_of_line: cty::c_uchar, - pub initialized: cty::c_uchar, - pub has_preferred_x: cty::c_uchar, - pub single_line: cty::c_uchar, - pub padding1: cty::c_uchar, - pub padding2: cty::c_uchar, - pub padding3: cty::c_uchar, - pub preferred_x: f32, - pub undostate: StbUndoState, +pub struct ImGuiDockNode { + pub ID: ImGuiID, + pub SharedFlags: ImGuiDockNodeFlags, + pub LocalFlags: ImGuiDockNodeFlags, + pub LocalFlagsInWindows: ImGuiDockNodeFlags, + pub MergedFlags: ImGuiDockNodeFlags, + pub State: ImGuiDockNodeState, + pub ParentNode: *mut ImGuiDockNode, + pub ChildNodes: [*mut ImGuiDockNode; 2usize], + pub Windows: ImVector_ImGuiWindowPtr, + pub TabBar: *mut ImGuiTabBar, + pub Pos: ImVec2, + pub Size: ImVec2, + pub SizeRef: ImVec2, + pub SplitAxis: ImGuiAxis, + pub WindowClass: ImGuiWindowClass, + pub LastBgColor: ImU32, + pub HostWindow: *mut ImGuiWindow, + pub VisibleWindow: *mut ImGuiWindow, + pub CentralNode: *mut ImGuiDockNode, + pub OnlyNodeWithWindows: *mut ImGuiDockNode, + pub CountNodeWithWindows: cty::c_int, + pub LastFrameAlive: cty::c_int, + pub LastFrameActive: cty::c_int, + pub LastFrameFocused: cty::c_int, + pub LastFocusedNodeId: ImGuiID, + pub SelectedTabId: ImGuiID, + pub WantCloseTabId: ImGuiID, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, + pub __bindgen_padding_0: u8, } -impl Default for STB_TexteditState { +impl Default for ImGuiDockNode { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2585,205 +3102,261 @@ impl Default for STB_TexteditState { } } } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct StbTexteditRow { - pub x0: f32, - pub x1: f32, - pub baseline_y_delta: f32, - pub ymin: f32, - pub ymax: f32, - pub num_chars: cty::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImVec1 { - pub x: f32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVec2ih { - pub x: cty::c_short, - pub y: cty::c_short, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImRect { - pub Min: ImVec2, - pub Max: ImVec2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImBitVector { - pub Storage: ImVector_ImU32, -} -impl Default for ImBitVector { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); +impl ImGuiDockNode { + #[inline] + pub fn AuthorityForPos(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForPos(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 3u8, val as u64) + } + } + #[inline] + pub fn AuthorityForSize(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForSize(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(3usize, 3u8, val as u64) + } + } + #[inline] + pub fn AuthorityForViewport(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForViewport(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(6usize, 3u8, val as u64) + } + } + #[inline] + pub fn IsVisible(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsVisible(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsFocused(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsFocused(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(10usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsBgDrawnThisFrame(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsBgDrawnThisFrame(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(11usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasCloseButton(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasCloseButton(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasWindowMenuButton(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasWindowMenuButton(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasCentralNodeChild(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasCentralNodeChild(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantCloseAll(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantCloseAll(&mut self, val: bool) { unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) } } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawListSharedData { - pub TexUvWhitePixel: ImVec2, - pub Font: *mut ImFont, - pub FontSize: f32, - pub CurveTessellationTol: f32, - pub CircleSegmentMaxError: f32, - pub ClipRectFullscreen: ImVec4, - pub InitialFlags: ImDrawListFlags, - pub ArcFastVtx: [ImVec2; 48usize], - pub ArcFastRadiusCutoff: f32, - pub CircleSegmentCounts: [ImU8; 64usize], - pub TexUvLines: *const ImVec4, -} -impl Default for ImDrawListSharedData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); + #[inline] + pub fn WantLockSizeOnce(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantLockSizeOnce(&mut self, val: bool) { unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(16usize, 1u8, val as u64) } } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImDrawDataBuilder { - pub Layers: [ImVector_ImDrawListPtr; 2usize], -} -impl Default for ImDrawDataBuilder { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); + #[inline] + pub fn WantMouseMove(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantMouseMove(&mut self, val: bool) { unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(17usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantHiddenTabBarUpdate(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantHiddenTabBarUpdate(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(18usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantHiddenTabBarToggle(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantHiddenTabBarToggle(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(19usize, 1u8, val as u64) } } + #[inline] + pub fn new_bitfield_1( + AuthorityForPos: ImGuiDataAuthority, + AuthorityForSize: ImGuiDataAuthority, + AuthorityForViewport: ImGuiDataAuthority, + IsVisible: bool, + IsFocused: bool, + IsBgDrawnThisFrame: bool, + HasCloseButton: bool, + HasWindowMenuButton: bool, + HasCentralNodeChild: bool, + WantCloseAll: bool, + WantLockSizeOnce: bool, + WantMouseMove: bool, + WantHiddenTabBarUpdate: bool, + WantHiddenTabBarToggle: bool, + ) -> __BindgenBitfieldUnit<[u8; 3usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 3u8, { + let AuthorityForPos: u32 = unsafe { ::core::mem::transmute(AuthorityForPos) }; + AuthorityForPos as u64 + }); + __bindgen_bitfield_unit.set(3usize, 3u8, { + let AuthorityForSize: u32 = unsafe { ::core::mem::transmute(AuthorityForSize) }; + AuthorityForSize as u64 + }); + __bindgen_bitfield_unit.set(6usize, 3u8, { + let AuthorityForViewport: u32 = unsafe { ::core::mem::transmute(AuthorityForViewport) }; + AuthorityForViewport as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let IsVisible: u8 = unsafe { ::core::mem::transmute(IsVisible) }; + IsVisible as u64 + }); + __bindgen_bitfield_unit.set(10usize, 1u8, { + let IsFocused: u8 = unsafe { ::core::mem::transmute(IsFocused) }; + IsFocused as u64 + }); + __bindgen_bitfield_unit.set(11usize, 1u8, { + let IsBgDrawnThisFrame: u8 = unsafe { ::core::mem::transmute(IsBgDrawnThisFrame) }; + IsBgDrawnThisFrame as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let HasCloseButton: u8 = unsafe { ::core::mem::transmute(HasCloseButton) }; + HasCloseButton as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let HasWindowMenuButton: u8 = unsafe { ::core::mem::transmute(HasWindowMenuButton) }; + HasWindowMenuButton as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let HasCentralNodeChild: u8 = unsafe { ::core::mem::transmute(HasCentralNodeChild) }; + HasCentralNodeChild as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let WantCloseAll: u8 = unsafe { ::core::mem::transmute(WantCloseAll) }; + WantCloseAll as u64 + }); + __bindgen_bitfield_unit.set(16usize, 1u8, { + let WantLockSizeOnce: u8 = unsafe { ::core::mem::transmute(WantLockSizeOnce) }; + WantLockSizeOnce as u64 + }); + __bindgen_bitfield_unit.set(17usize, 1u8, { + let WantMouseMove: u8 = unsafe { ::core::mem::transmute(WantMouseMove) }; + WantMouseMove as u64 + }); + __bindgen_bitfield_unit.set(18usize, 1u8, { + let WantHiddenTabBarUpdate: u8 = + unsafe { ::core::mem::transmute(WantHiddenTabBarUpdate) }; + WantHiddenTabBarUpdate as u64 + }); + __bindgen_bitfield_unit.set(19usize, 1u8, { + let WantHiddenTabBarToggle: u8 = + unsafe { ::core::mem::transmute(WantHiddenTabBarToggle) }; + WantHiddenTabBarToggle as u64 + }); + __bindgen_bitfield_unit + } } -pub const ImGuiItemFlags_None: ImGuiItemFlags_ = 0; -pub const ImGuiItemFlags_NoTabStop: ImGuiItemFlags_ = 1; -pub const ImGuiItemFlags_ButtonRepeat: ImGuiItemFlags_ = 2; -pub const ImGuiItemFlags_Disabled: ImGuiItemFlags_ = 4; -pub const ImGuiItemFlags_NoNav: ImGuiItemFlags_ = 8; -pub const ImGuiItemFlags_NoNavDefaultFocus: ImGuiItemFlags_ = 16; -pub const ImGuiItemFlags_SelectableDontClosePopup: ImGuiItemFlags_ = 32; -pub const ImGuiItemFlags_MixedValue: ImGuiItemFlags_ = 64; -pub const ImGuiItemFlags_ReadOnly: ImGuiItemFlags_ = 128; -pub const ImGuiItemFlags_Inputable: ImGuiItemFlags_ = 256; -pub type ImGuiItemFlags_ = cty::c_uint; -pub const ImGuiItemStatusFlags_None: ImGuiItemStatusFlags_ = 0; -pub const ImGuiItemStatusFlags_HoveredRect: ImGuiItemStatusFlags_ = 1; -pub const ImGuiItemStatusFlags_HasDisplayRect: ImGuiItemStatusFlags_ = 2; -pub const ImGuiItemStatusFlags_Edited: ImGuiItemStatusFlags_ = 4; -pub const ImGuiItemStatusFlags_ToggledSelection: ImGuiItemStatusFlags_ = 8; -pub const ImGuiItemStatusFlags_ToggledOpen: ImGuiItemStatusFlags_ = 16; -pub const ImGuiItemStatusFlags_HasDeactivated: ImGuiItemStatusFlags_ = 32; -pub const ImGuiItemStatusFlags_Deactivated: ImGuiItemStatusFlags_ = 64; -pub const ImGuiItemStatusFlags_HoveredWindow: ImGuiItemStatusFlags_ = 128; -pub const ImGuiItemStatusFlags_FocusedByTabbing: ImGuiItemStatusFlags_ = 256; -pub type ImGuiItemStatusFlags_ = cty::c_uint; -pub const ImGuiInputTextFlags_Multiline: ImGuiInputTextFlagsPrivate_ = 67108864; -pub const ImGuiInputTextFlags_NoMarkEdited: ImGuiInputTextFlagsPrivate_ = 134217728; -pub const ImGuiInputTextFlags_MergedItem: ImGuiInputTextFlagsPrivate_ = 268435456; -pub type ImGuiInputTextFlagsPrivate_ = cty::c_uint; -pub const ImGuiButtonFlags_PressedOnClick: ImGuiButtonFlagsPrivate_ = 16; -pub const ImGuiButtonFlags_PressedOnClickRelease: ImGuiButtonFlagsPrivate_ = 32; -pub const ImGuiButtonFlags_PressedOnClickReleaseAnywhere: ImGuiButtonFlagsPrivate_ = 64; -pub const ImGuiButtonFlags_PressedOnRelease: ImGuiButtonFlagsPrivate_ = 128; -pub const ImGuiButtonFlags_PressedOnDoubleClick: ImGuiButtonFlagsPrivate_ = 256; -pub const ImGuiButtonFlags_PressedOnDragDropHold: ImGuiButtonFlagsPrivate_ = 512; -pub const ImGuiButtonFlags_Repeat: ImGuiButtonFlagsPrivate_ = 1024; -pub const ImGuiButtonFlags_FlattenChildren: ImGuiButtonFlagsPrivate_ = 2048; -pub const ImGuiButtonFlags_AllowItemOverlap: ImGuiButtonFlagsPrivate_ = 4096; -pub const ImGuiButtonFlags_DontClosePopups: ImGuiButtonFlagsPrivate_ = 8192; -pub const ImGuiButtonFlags_AlignTextBaseLine: ImGuiButtonFlagsPrivate_ = 32768; -pub const ImGuiButtonFlags_NoKeyModifiers: ImGuiButtonFlagsPrivate_ = 65536; -pub const ImGuiButtonFlags_NoHoldingActiveId: ImGuiButtonFlagsPrivate_ = 131072; -pub const ImGuiButtonFlags_NoNavFocus: ImGuiButtonFlagsPrivate_ = 262144; -pub const ImGuiButtonFlags_NoHoveredOnFocus: ImGuiButtonFlagsPrivate_ = 524288; -pub const ImGuiButtonFlags_PressedOnMask_: ImGuiButtonFlagsPrivate_ = 1008; -pub const ImGuiButtonFlags_PressedOnDefault_: ImGuiButtonFlagsPrivate_ = 32; -pub type ImGuiButtonFlagsPrivate_ = cty::c_uint; -pub const ImGuiComboFlags_CustomPreview: ImGuiComboFlagsPrivate_ = 1048576; -pub type ImGuiComboFlagsPrivate_ = cty::c_uint; -pub const ImGuiSliderFlags_Vertical: ImGuiSliderFlagsPrivate_ = 1048576; -pub const ImGuiSliderFlags_ReadOnly: ImGuiSliderFlagsPrivate_ = 2097152; -pub type ImGuiSliderFlagsPrivate_ = cty::c_uint; -pub const ImGuiSelectableFlags_NoHoldingActiveID: ImGuiSelectableFlagsPrivate_ = 1048576; -pub const ImGuiSelectableFlags_SelectOnNav: ImGuiSelectableFlagsPrivate_ = 2097152; -pub const ImGuiSelectableFlags_SelectOnClick: ImGuiSelectableFlagsPrivate_ = 4194304; -pub const ImGuiSelectableFlags_SelectOnRelease: ImGuiSelectableFlagsPrivate_ = 8388608; -pub const ImGuiSelectableFlags_SpanAvailWidth: ImGuiSelectableFlagsPrivate_ = 16777216; -pub const ImGuiSelectableFlags_DrawHoveredWhenHeld: ImGuiSelectableFlagsPrivate_ = 33554432; -pub const ImGuiSelectableFlags_SetNavIdOnHover: ImGuiSelectableFlagsPrivate_ = 67108864; -pub const ImGuiSelectableFlags_NoPadWithHalfSpacing: ImGuiSelectableFlagsPrivate_ = 134217728; -pub type ImGuiSelectableFlagsPrivate_ = cty::c_uint; -pub const ImGuiTreeNodeFlags_ClipLabelForTrailingButton: ImGuiTreeNodeFlagsPrivate_ = 1048576; -pub type ImGuiTreeNodeFlagsPrivate_ = cty::c_uint; -pub const ImGuiSeparatorFlags_None: ImGuiSeparatorFlags_ = 0; -pub const ImGuiSeparatorFlags_Horizontal: ImGuiSeparatorFlags_ = 1; -pub const ImGuiSeparatorFlags_Vertical: ImGuiSeparatorFlags_ = 2; -pub const ImGuiSeparatorFlags_SpanAllColumns: ImGuiSeparatorFlags_ = 4; -pub type ImGuiSeparatorFlags_ = cty::c_uint; -pub const ImGuiTextFlags_None: ImGuiTextFlags_ = 0; -pub const ImGuiTextFlags_NoWidthForLargeClippedText: ImGuiTextFlags_ = 1; -pub type ImGuiTextFlags_ = cty::c_uint; -pub const ImGuiTooltipFlags_None: ImGuiTooltipFlags_ = 0; -pub const ImGuiTooltipFlags_OverridePreviousTooltip: ImGuiTooltipFlags_ = 1; -pub type ImGuiTooltipFlags_ = cty::c_uint; -pub const ImGuiLayoutType_Horizontal: ImGuiLayoutType_ = 0; -pub const ImGuiLayoutType_Vertical: ImGuiLayoutType_ = 1; -pub type ImGuiLayoutType_ = cty::c_uint; -pub const ImGuiLogType_None: ImGuiLogType = 0; -pub const ImGuiLogType_TTY: ImGuiLogType = 1; -pub const ImGuiLogType_File: ImGuiLogType = 2; -pub const ImGuiLogType_Buffer: ImGuiLogType = 3; -pub const ImGuiLogType_Clipboard: ImGuiLogType = 4; -pub type ImGuiLogType = cty::c_uint; -pub const ImGuiAxis_None: ImGuiAxis = -1; -pub const ImGuiAxis_X: ImGuiAxis = 0; -pub const ImGuiAxis_Y: ImGuiAxis = 1; -pub type ImGuiAxis = cty::c_int; -pub const ImGuiPlotType_Lines: ImGuiPlotType = 0; -pub const ImGuiPlotType_Histogram: ImGuiPlotType = 1; -pub type ImGuiPlotType = cty::c_uint; -pub const ImGuiInputSource_None: ImGuiInputSource = 0; -pub const ImGuiInputSource_Mouse: ImGuiInputSource = 1; -pub const ImGuiInputSource_Keyboard: ImGuiInputSource = 2; -pub const ImGuiInputSource_Gamepad: ImGuiInputSource = 3; -pub const ImGuiInputSource_Nav: ImGuiInputSource = 4; -pub const ImGuiInputSource_Clipboard: ImGuiInputSource = 5; -pub const ImGuiInputSource_COUNT: ImGuiInputSource = 6; -pub type ImGuiInputSource = cty::c_uint; -pub const ImGuiInputReadMode_Down: ImGuiInputReadMode = 0; -pub const ImGuiInputReadMode_Pressed: ImGuiInputReadMode = 1; -pub const ImGuiInputReadMode_Released: ImGuiInputReadMode = 2; -pub const ImGuiInputReadMode_Repeat: ImGuiInputReadMode = 3; -pub const ImGuiInputReadMode_RepeatSlow: ImGuiInputReadMode = 4; -pub const ImGuiInputReadMode_RepeatFast: ImGuiInputReadMode = 5; -pub type ImGuiInputReadMode = cty::c_uint; -pub const ImGuiPopupPositionPolicy_Default: ImGuiPopupPositionPolicy = 0; -pub const ImGuiPopupPositionPolicy_ComboBox: ImGuiPopupPositionPolicy = 1; -pub const ImGuiPopupPositionPolicy_Tooltip: ImGuiPopupPositionPolicy = 2; -pub type ImGuiPopupPositionPolicy = cty::c_uint; +pub const ImGuiWindowDockStyleCol_Text: ImGuiWindowDockStyleCol = 0; +pub const ImGuiWindowDockStyleCol_Tab: ImGuiWindowDockStyleCol = 1; +pub const ImGuiWindowDockStyleCol_TabHovered: ImGuiWindowDockStyleCol = 2; +pub const ImGuiWindowDockStyleCol_TabActive: ImGuiWindowDockStyleCol = 3; +pub const ImGuiWindowDockStyleCol_TabUnfocused: ImGuiWindowDockStyleCol = 4; +pub const ImGuiWindowDockStyleCol_TabUnfocusedActive: ImGuiWindowDockStyleCol = 5; +pub const ImGuiWindowDockStyleCol_COUNT: ImGuiWindowDockStyleCol = 6; +pub type ImGuiWindowDockStyleCol = cty::c_uint; #[repr(C)] #[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiDataTypeTempStorage { - pub Data: [ImU8; 8usize], +pub struct ImGuiWindowDockStyle { + pub Colors: [ImU32; 6usize], } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiDataTypeInfo { - pub Size: usize, - pub Name: *const cty::c_char, - pub PrintFmt: *const cty::c_char, - pub ScanFmt: *const cty::c_char, +pub struct ImVector_ImGuiDockRequest { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiDockRequest, } -impl Default for ImGuiDataTypeInfo { +impl Default for ImVector_ImGuiDockRequest { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2792,43 +3365,14 @@ impl Default for ImGuiDataTypeInfo { } } } -pub const ImGuiDataType_String: ImGuiDataTypePrivate_ = 11; -pub const ImGuiDataType_Pointer: ImGuiDataTypePrivate_ = 12; -pub const ImGuiDataType_ID: ImGuiDataTypePrivate_ = 13; -pub type ImGuiDataTypePrivate_ = cty::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiColorMod { - pub Col: ImGuiCol, - pub BackupValue: ImVec4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ImGuiStyleMod { - pub VarIdx: ImGuiStyleVar, - pub __bindgen_anon_1: ImGuiStyleMod__bindgen_ty_1, -} #[repr(C)] -#[derive(Copy, Clone)] -pub union ImGuiStyleMod__bindgen_ty_1 { - pub BackupInt: [cty::c_int; 2usize], - pub BackupFloat: [f32; 2usize], -} -impl Default for ImGuiStyleMod__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl ::core::fmt::Debug for ImGuiStyleMod__bindgen_ty_1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "ImGuiStyleMod__bindgen_ty_1 {{ union }}") - } +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiDockNodeSettings { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiDockNodeSettings, } -impl Default for ImGuiStyleMod { +impl Default for ImVector_ImGuiDockNodeSettings { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2837,72 +3381,15 @@ impl Default for ImGuiStyleMod { } } } -impl ::core::fmt::Debug for ImGuiStyleMod { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!( - f, - "ImGuiStyleMod {{ VarIdx: {:?}, __bindgen_anon_1: {:?} }}", - self.VarIdx, self.__bindgen_anon_1 - ) - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiComboPreviewData { - pub PreviewRect: ImRect, - pub BackupCursorPos: ImVec2, - pub BackupCursorMaxPos: ImVec2, - pub BackupCursorPosPrevLine: ImVec2, - pub BackupPrevLineTextBaseOffset: f32, - pub BackupLayout: ImGuiLayoutType, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiGroupData { - pub WindowID: ImGuiID, - pub BackupCursorPos: ImVec2, - pub BackupCursorMaxPos: ImVec2, - pub BackupIndent: ImVec1, - pub BackupGroupOffset: ImVec1, - pub BackupCurrLineSize: ImVec2, - pub BackupCurrLineTextBaseOffset: f32, - pub BackupActiveIdIsAlive: ImGuiID, - pub BackupActiveIdPreviousFrameIsAlive: bool, - pub BackupHoveredIdIsAlive: bool, - pub EmitItem: bool, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiMenuColumns { - pub TotalWidth: ImU32, - pub NextTotalWidth: ImU32, - pub Spacing: ImU16, - pub OffsetIcon: ImU16, - pub OffsetLabel: ImU16, - pub OffsetShortcut: ImU16, - pub OffsetMark: ImU16, - pub Widths: [ImU16; 4usize], -} #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiInputTextState { - pub ID: ImGuiID, - pub CurLenW: cty::c_int, - pub CurLenA: cty::c_int, - pub TextW: ImVector_ImWchar, - pub TextA: ImVector_char, - pub InitialTextA: ImVector_char, - pub TextAIsValid: bool, - pub BufCapacityA: cty::c_int, - pub ScrollX: f32, - pub Stb: STB_TexteditState, - pub CursorAnim: f32, - pub CursorFollow: bool, - pub SelectedAllMouseLock: bool, - pub Edited: bool, - pub Flags: ImGuiInputTextFlags, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiDockContext { + pub Nodes: ImGuiStorage, + pub Requests: ImVector_ImGuiDockRequest, + pub NodesSettings: ImVector_ImGuiDockNodeSettings, + pub WantFullRebuild: bool, } -impl Default for ImGuiInputTextState { +impl Default for ImGuiDockContext { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2913,16 +3400,30 @@ impl Default for ImGuiInputTextState { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiPopupData { - pub PopupId: ImGuiID, +pub struct ImGuiViewportP { + pub _ImGuiViewport: ImGuiViewport, + pub Idx: cty::c_int, + pub LastFrameActive: cty::c_int, + pub LastFrontMostStampCount: cty::c_int, + pub LastNameHash: ImGuiID, + pub LastPos: ImVec2, + pub Alpha: f32, + pub LastAlpha: f32, + pub PlatformMonitor: cty::c_short, pub Window: *mut ImGuiWindow, - pub SourceWindow: *mut ImGuiWindow, - pub OpenFrameCount: cty::c_int, - pub OpenParentId: ImGuiID, - pub OpenPopupPos: ImVec2, - pub OpenMousePos: ImVec2, + pub DrawListsLastFrame: [cty::c_int; 2usize], + pub DrawLists: [*mut ImDrawList; 2usize], + pub DrawDataP: ImDrawData, + pub DrawDataBuilder: ImDrawDataBuilder, + pub LastPlatformPos: ImVec2, + pub LastPlatformSize: ImVec2, + pub LastRendererSize: ImVec2, + pub WorkOffsetMin: ImVec2, + pub WorkOffsetMax: ImVec2, + pub BuildWorkOffsetMin: ImVec2, + pub BuildWorkOffsetMax: ImVec2, } -impl Default for ImGuiPopupData { +impl Default for ImGuiViewportP { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2931,96 +3432,59 @@ impl Default for ImGuiPopupData { } } } -pub const ImGuiNextWindowDataFlags_None: ImGuiNextWindowDataFlags_ = 0; -pub const ImGuiNextWindowDataFlags_HasPos: ImGuiNextWindowDataFlags_ = 1; -pub const ImGuiNextWindowDataFlags_HasSize: ImGuiNextWindowDataFlags_ = 2; -pub const ImGuiNextWindowDataFlags_HasContentSize: ImGuiNextWindowDataFlags_ = 4; -pub const ImGuiNextWindowDataFlags_HasCollapsed: ImGuiNextWindowDataFlags_ = 8; -pub const ImGuiNextWindowDataFlags_HasSizeConstraint: ImGuiNextWindowDataFlags_ = 16; -pub const ImGuiNextWindowDataFlags_HasFocus: ImGuiNextWindowDataFlags_ = 32; -pub const ImGuiNextWindowDataFlags_HasBgAlpha: ImGuiNextWindowDataFlags_ = 64; -pub const ImGuiNextWindowDataFlags_HasScroll: ImGuiNextWindowDataFlags_ = 128; -pub const ImGuiNextWindowDataFlags_HasViewport: ImGuiNextWindowDataFlags_ = 256; -pub const ImGuiNextWindowDataFlags_HasDock: ImGuiNextWindowDataFlags_ = 512; -pub const ImGuiNextWindowDataFlags_HasWindowClass: ImGuiNextWindowDataFlags_ = 1024; -pub type ImGuiNextWindowDataFlags_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiNextWindowData { - pub Flags: ImGuiNextWindowDataFlags, - pub PosCond: ImGuiCond, - pub SizeCond: ImGuiCond, - pub CollapsedCond: ImGuiCond, - pub DockCond: ImGuiCond, - pub PosVal: ImVec2, - pub PosPivotVal: ImVec2, - pub SizeVal: ImVec2, - pub ContentSizeVal: ImVec2, - pub ScrollVal: ImVec2, - pub PosUndock: bool, - pub CollapsedVal: bool, - pub SizeConstraintRect: ImRect, - pub SizeCallback: ImGuiSizeCallback, - pub SizeCallbackUserData: *mut cty::c_void, - pub BgAlphaVal: f32, +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowSettings { + pub ID: ImGuiID, + pub Pos: ImVec2ih, + pub Size: ImVec2ih, + pub ViewportPos: ImVec2ih, pub ViewportId: ImGuiID, pub DockId: ImGuiID, - pub WindowClass: ImGuiWindowClass, - pub MenuBarOffsetMinVal: ImVec2, -} -impl Default for ImGuiNextWindowData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const ImGuiNextItemDataFlags_None: ImGuiNextItemDataFlags_ = 0; -pub const ImGuiNextItemDataFlags_HasWidth: ImGuiNextItemDataFlags_ = 1; -pub const ImGuiNextItemDataFlags_HasOpen: ImGuiNextItemDataFlags_ = 2; -pub type ImGuiNextItemDataFlags_ = cty::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiNextItemData { - pub Flags: ImGuiNextItemDataFlags, - pub Width: f32, - pub FocusScopeId: ImGuiID, - pub OpenCond: ImGuiCond, - pub OpenVal: bool, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiLastItemData { - pub ID: ImGuiID, - pub InFlags: ImGuiItemFlags, - pub StatusFlags: ImGuiItemStatusFlags, - pub Rect: ImRect, - pub NavRect: ImRect, - pub DisplayRect: ImRect, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiStackSizes { - pub SizeOfIDStack: cty::c_short, - pub SizeOfColorStack: cty::c_short, - pub SizeOfStyleVarStack: cty::c_short, - pub SizeOfFontStack: cty::c_short, - pub SizeOfFocusScopeStack: cty::c_short, - pub SizeOfGroupStack: cty::c_short, - pub SizeOfItemFlagsStack: cty::c_short, - pub SizeOfBeginPopupStack: cty::c_short, - pub SizeOfDisabledStack: cty::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiWindowStackData { - pub Window: *mut ImGuiWindow, - pub ParentLastItemDataBackup: ImGuiLastItemData, - pub StackSizesOnBegin: ImGuiStackSizes, + pub ClassId: ImGuiID, + pub DockOrder: cty::c_short, + pub Collapsed: bool, + pub WantApply: bool, } -impl Default for ImGuiWindowStackData { +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiSettingsHandler { + pub TypeName: *const cty::c_char, + pub TypeHash: ImGuiID, + pub ClearAllFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub ReadInitFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub ReadOpenFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + name: *const cty::c_char, + ) -> *mut cty::c_void, + >, + pub ReadLineFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + entry: *mut cty::c_void, + line: *const cty::c_char, + ), + >, + pub ApplyAllFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub WriteAllFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + out_buf: *mut ImGuiTextBuffer, + ), + >, + pub UserData: *mut cty::c_void, +} +impl Default for ImGuiSettingsHandler { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3029,19 +3493,23 @@ impl Default for ImGuiWindowStackData { } } } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiShrinkWidthItem { - pub Index: cty::c_int, - pub Width: f32, -} +pub const ImGuiLocKey_TableSizeOne: ImGuiLocKey = 0; +pub const ImGuiLocKey_TableSizeAllFit: ImGuiLocKey = 1; +pub const ImGuiLocKey_TableSizeAllDefault: ImGuiLocKey = 2; +pub const ImGuiLocKey_TableResetOrder: ImGuiLocKey = 3; +pub const ImGuiLocKey_WindowingMainMenuBar: ImGuiLocKey = 4; +pub const ImGuiLocKey_WindowingPopup: ImGuiLocKey = 5; +pub const ImGuiLocKey_WindowingUntitled: ImGuiLocKey = 6; +pub const ImGuiLocKey_DockingHideTabBar: ImGuiLocKey = 7; +pub const ImGuiLocKey_COUNT: ImGuiLocKey = 8; +pub type ImGuiLocKey = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiPtrOrIndex { - pub Ptr: *mut cty::c_void, - pub Index: cty::c_int, +pub struct ImGuiLocEntry { + pub Key: ImGuiLocKey, + pub Text: *const cty::c_char, } -impl Default for ImGuiPtrOrIndex { +impl Default for ImGuiLocEntry { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3050,25 +3518,43 @@ impl Default for ImGuiPtrOrIndex { } } } +pub const ImGuiDebugLogFlags_None: ImGuiDebugLogFlags_ = 0; +pub const ImGuiDebugLogFlags_EventActiveId: ImGuiDebugLogFlags_ = 1; +pub const ImGuiDebugLogFlags_EventFocus: ImGuiDebugLogFlags_ = 2; +pub const ImGuiDebugLogFlags_EventPopup: ImGuiDebugLogFlags_ = 4; +pub const ImGuiDebugLogFlags_EventNav: ImGuiDebugLogFlags_ = 8; +pub const ImGuiDebugLogFlags_EventClipper: ImGuiDebugLogFlags_ = 16; +pub const ImGuiDebugLogFlags_EventIO: ImGuiDebugLogFlags_ = 32; +pub const ImGuiDebugLogFlags_EventDocking: ImGuiDebugLogFlags_ = 64; +pub const ImGuiDebugLogFlags_EventViewport: ImGuiDebugLogFlags_ = 128; +pub const ImGuiDebugLogFlags_EventMask_: ImGuiDebugLogFlags_ = 255; +pub const ImGuiDebugLogFlags_OutputToTTY: ImGuiDebugLogFlags_ = 1024; +pub type ImGuiDebugLogFlags_ = cty::c_uint; #[repr(C)] #[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiListClipperRange { - pub Min: cty::c_int, - pub Max: cty::c_int, - pub PosToIndexConvert: bool, - pub PosToIndexOffsetMin: ImS8, - pub PosToIndexOffsetMax: ImS8, +pub struct ImGuiMetricsConfig { + pub ShowDebugLog: bool, + pub ShowStackTool: bool, + pub ShowWindowsRects: bool, + pub ShowWindowsBeginOrder: bool, + pub ShowTablesRects: bool, + pub ShowDrawCmdMesh: bool, + pub ShowDrawCmdBoundingBoxes: bool, + pub ShowDockingNodes: bool, + pub ShowWindowsRectsType: cty::c_int, + pub ShowTablesRectsType: cty::c_int, } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiListClipperData { - pub ListClipper: *mut ImGuiListClipper, - pub LossynessOffset: f32, - pub StepNo: cty::c_int, - pub ItemsFrozen: cty::c_int, - pub Ranges: ImVector_ImGuiListClipperRange, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStackLevelInfo { + pub ID: ImGuiID, + pub QueryFrameCount: ImS8, + pub QuerySuccess: bool, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub Desc: [cty::c_char; 57usize], } -impl Default for ImGuiListClipperData { +impl Default for ImGuiStackLevelInfo { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3077,111 +3563,36 @@ impl Default for ImGuiListClipperData { } } } -pub const ImGuiActivateFlags_None: ImGuiActivateFlags_ = 0; -pub const ImGuiActivateFlags_PreferInput: ImGuiActivateFlags_ = 1; -pub const ImGuiActivateFlags_PreferTweak: ImGuiActivateFlags_ = 2; -pub const ImGuiActivateFlags_TryToPreserveState: ImGuiActivateFlags_ = 4; -pub type ImGuiActivateFlags_ = cty::c_uint; -pub const ImGuiScrollFlags_None: ImGuiScrollFlags_ = 0; -pub const ImGuiScrollFlags_KeepVisibleEdgeX: ImGuiScrollFlags_ = 1; -pub const ImGuiScrollFlags_KeepVisibleEdgeY: ImGuiScrollFlags_ = 2; -pub const ImGuiScrollFlags_KeepVisibleCenterX: ImGuiScrollFlags_ = 4; -pub const ImGuiScrollFlags_KeepVisibleCenterY: ImGuiScrollFlags_ = 8; -pub const ImGuiScrollFlags_AlwaysCenterX: ImGuiScrollFlags_ = 16; -pub const ImGuiScrollFlags_AlwaysCenterY: ImGuiScrollFlags_ = 32; -pub const ImGuiScrollFlags_NoScrollParent: ImGuiScrollFlags_ = 64; -pub const ImGuiScrollFlags_MaskX_: ImGuiScrollFlags_ = 21; -pub const ImGuiScrollFlags_MaskY_: ImGuiScrollFlags_ = 42; -pub type ImGuiScrollFlags_ = cty::c_uint; -pub const ImGuiNavHighlightFlags_None: ImGuiNavHighlightFlags_ = 0; -pub const ImGuiNavHighlightFlags_TypeDefault: ImGuiNavHighlightFlags_ = 1; -pub const ImGuiNavHighlightFlags_TypeThin: ImGuiNavHighlightFlags_ = 2; -pub const ImGuiNavHighlightFlags_AlwaysDraw: ImGuiNavHighlightFlags_ = 4; -pub const ImGuiNavHighlightFlags_NoRounding: ImGuiNavHighlightFlags_ = 8; -pub type ImGuiNavHighlightFlags_ = cty::c_uint; -pub const ImGuiNavDirSourceFlags_None: ImGuiNavDirSourceFlags_ = 0; -pub const ImGuiNavDirSourceFlags_RawKeyboard: ImGuiNavDirSourceFlags_ = 1; -pub const ImGuiNavDirSourceFlags_Keyboard: ImGuiNavDirSourceFlags_ = 2; -pub const ImGuiNavDirSourceFlags_PadDPad: ImGuiNavDirSourceFlags_ = 4; -pub const ImGuiNavDirSourceFlags_PadLStick: ImGuiNavDirSourceFlags_ = 8; -pub type ImGuiNavDirSourceFlags_ = cty::c_uint; -pub const ImGuiNavMoveFlags_None: ImGuiNavMoveFlags_ = 0; -pub const ImGuiNavMoveFlags_LoopX: ImGuiNavMoveFlags_ = 1; -pub const ImGuiNavMoveFlags_LoopY: ImGuiNavMoveFlags_ = 2; -pub const ImGuiNavMoveFlags_WrapX: ImGuiNavMoveFlags_ = 4; -pub const ImGuiNavMoveFlags_WrapY: ImGuiNavMoveFlags_ = 8; -pub const ImGuiNavMoveFlags_AllowCurrentNavId: ImGuiNavMoveFlags_ = 16; -pub const ImGuiNavMoveFlags_AlsoScoreVisibleSet: ImGuiNavMoveFlags_ = 32; -pub const ImGuiNavMoveFlags_ScrollToEdgeY: ImGuiNavMoveFlags_ = 64; -pub const ImGuiNavMoveFlags_Forwarded: ImGuiNavMoveFlags_ = 128; -pub const ImGuiNavMoveFlags_DebugNoResult: ImGuiNavMoveFlags_ = 256; -pub const ImGuiNavMoveFlags_FocusApi: ImGuiNavMoveFlags_ = 512; -pub const ImGuiNavMoveFlags_Tabbing: ImGuiNavMoveFlags_ = 1024; -pub const ImGuiNavMoveFlags_Activate: ImGuiNavMoveFlags_ = 2048; -pub const ImGuiNavMoveFlags_DontSetNavHighlight: ImGuiNavMoveFlags_ = 4096; -pub type ImGuiNavMoveFlags_ = cty::c_uint; -pub const ImGuiNavLayer_Main: ImGuiNavLayer = 0; -pub const ImGuiNavLayer_Menu: ImGuiNavLayer = 1; -pub const ImGuiNavLayer_COUNT: ImGuiNavLayer = 2; -pub type ImGuiNavLayer = cty::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiNavItemData { - pub Window: *mut ImGuiWindow, - pub ID: ImGuiID, - pub FocusScopeId: ImGuiID, - pub RectRel: ImRect, - pub InFlags: ImGuiItemFlags, - pub DistBox: f32, - pub DistCenter: f32, - pub DistAxial: f32, -} -impl Default for ImGuiNavItemData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); +impl ImGuiStackLevelInfo { + #[inline] + pub fn DataType(&self) -> ImGuiDataType { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_DataType(&mut self, val: ImGuiDataType) { unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) } } -} -pub const ImGuiOldColumnFlags_None: ImGuiOldColumnFlags_ = 0; -pub const ImGuiOldColumnFlags_NoBorder: ImGuiOldColumnFlags_ = 1; -pub const ImGuiOldColumnFlags_NoResize: ImGuiOldColumnFlags_ = 2; -pub const ImGuiOldColumnFlags_NoPreserveWidths: ImGuiOldColumnFlags_ = 4; -pub const ImGuiOldColumnFlags_NoForceWithinWindow: ImGuiOldColumnFlags_ = 8; -pub const ImGuiOldColumnFlags_GrowParentContentsSize: ImGuiOldColumnFlags_ = 16; -pub type ImGuiOldColumnFlags_ = cty::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiOldColumnData { - pub OffsetNorm: f32, - pub OffsetNormBeforeResize: f32, - pub Flags: ImGuiOldColumnFlags, - pub ClipRect: ImRect, + #[inline] + pub fn new_bitfield_1(DataType: ImGuiDataType) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let DataType: u32 = unsafe { ::core::mem::transmute(DataType) }; + DataType as u64 + }); + __bindgen_bitfield_unit + } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiOldColumns { - pub ID: ImGuiID, - pub Flags: ImGuiOldColumnFlags, - pub IsFirstFrame: bool, - pub IsBeingResized: bool, - pub Current: cty::c_int, - pub Count: cty::c_int, - pub OffMinX: f32, - pub OffMaxX: f32, - pub LineMinY: f32, - pub LineMaxY: f32, - pub HostCursorPosY: f32, - pub HostCursorMaxPosX: f32, - pub HostInitialClipRect: ImRect, - pub HostBackupClipRect: ImRect, - pub HostBackupParentWorkRect: ImRect, - pub Columns: ImVector_ImGuiOldColumnData, - pub Splitter: ImDrawListSplitter, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStackLevelInfo { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStackLevelInfo, } -impl Default for ImGuiOldColumns { +impl Default for ImVector_ImGuiStackLevelInfo { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3190,70 +3601,17 @@ impl Default for ImGuiOldColumns { } } } -pub const ImGuiDockNodeFlags_DockSpace: ImGuiDockNodeFlagsPrivate_ = 1024; -pub const ImGuiDockNodeFlags_CentralNode: ImGuiDockNodeFlagsPrivate_ = 2048; -pub const ImGuiDockNodeFlags_NoTabBar: ImGuiDockNodeFlagsPrivate_ = 4096; -pub const ImGuiDockNodeFlags_HiddenTabBar: ImGuiDockNodeFlagsPrivate_ = 8192; -pub const ImGuiDockNodeFlags_NoWindowMenuButton: ImGuiDockNodeFlagsPrivate_ = 16384; -pub const ImGuiDockNodeFlags_NoCloseButton: ImGuiDockNodeFlagsPrivate_ = 32768; -pub const ImGuiDockNodeFlags_NoDocking: ImGuiDockNodeFlagsPrivate_ = 65536; -pub const ImGuiDockNodeFlags_NoDockingSplitMe: ImGuiDockNodeFlagsPrivate_ = 131072; -pub const ImGuiDockNodeFlags_NoDockingSplitOther: ImGuiDockNodeFlagsPrivate_ = 262144; -pub const ImGuiDockNodeFlags_NoDockingOverMe: ImGuiDockNodeFlagsPrivate_ = 524288; -pub const ImGuiDockNodeFlags_NoDockingOverOther: ImGuiDockNodeFlagsPrivate_ = 1048576; -pub const ImGuiDockNodeFlags_NoDockingOverEmpty: ImGuiDockNodeFlagsPrivate_ = 2097152; -pub const ImGuiDockNodeFlags_NoResizeX: ImGuiDockNodeFlagsPrivate_ = 4194304; -pub const ImGuiDockNodeFlags_NoResizeY: ImGuiDockNodeFlagsPrivate_ = 8388608; -pub const ImGuiDockNodeFlags_SharedFlagsInheritMask_: ImGuiDockNodeFlagsPrivate_ = -1; -pub const ImGuiDockNodeFlags_NoResizeFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12582944; -pub const ImGuiDockNodeFlags_LocalFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12713072; -pub const ImGuiDockNodeFlags_LocalFlagsTransferMask_: ImGuiDockNodeFlagsPrivate_ = 12712048; -pub const ImGuiDockNodeFlags_SavedFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12712992; -pub type ImGuiDockNodeFlagsPrivate_ = cty::c_int; -pub const ImGuiDataAuthority_Auto: ImGuiDataAuthority_ = 0; -pub const ImGuiDataAuthority_DockNode: ImGuiDataAuthority_ = 1; -pub const ImGuiDataAuthority_Window: ImGuiDataAuthority_ = 2; -pub type ImGuiDataAuthority_ = cty::c_uint; -pub const ImGuiDockNodeState_Unknown: ImGuiDockNodeState = 0; -pub const ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow: ImGuiDockNodeState = 1; -pub const ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing: ImGuiDockNodeState = 2; -pub const ImGuiDockNodeState_HostWindowVisible: ImGuiDockNodeState = 3; -pub type ImGuiDockNodeState = cty::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiDockNode { - pub ID: ImGuiID, - pub SharedFlags: ImGuiDockNodeFlags, - pub LocalFlags: ImGuiDockNodeFlags, - pub LocalFlagsInWindows: ImGuiDockNodeFlags, - pub MergedFlags: ImGuiDockNodeFlags, - pub State: ImGuiDockNodeState, - pub ParentNode: *mut ImGuiDockNode, - pub ChildNodes: [*mut ImGuiDockNode; 2usize], - pub Windows: ImVector_ImGuiWindowPtr, - pub TabBar: *mut ImGuiTabBar, - pub Pos: ImVec2, - pub Size: ImVec2, - pub SizeRef: ImVec2, - pub SplitAxis: ImGuiAxis, - pub WindowClass: ImGuiWindowClass, - pub LastBgColor: ImU32, - pub HostWindow: *mut ImGuiWindow, - pub VisibleWindow: *mut ImGuiWindow, - pub CentralNode: *mut ImGuiDockNode, - pub OnlyNodeWithWindows: *mut ImGuiDockNode, - pub CountNodeWithWindows: cty::c_int, - pub LastFrameAlive: cty::c_int, - pub LastFrameActive: cty::c_int, - pub LastFrameFocused: cty::c_int, - pub LastFocusedNodeId: ImGuiID, - pub SelectedTabId: ImGuiID, - pub WantCloseTabId: ImGuiID, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, - pub __bindgen_padding_0: u8, -} -impl Default for ImGuiDockNode { +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiStackTool { + pub LastActiveFrame: cty::c_int, + pub StackLevel: cty::c_int, + pub QueryId: ImGuiID, + pub Results: ImVector_ImGuiStackLevelInfo, + pub CopyToClipboardOnCtrlC: bool, + pub CopyToClipboardLastTime: f32, +} +impl Default for ImGuiStackTool { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3262,262 +3620,253 @@ impl Default for ImGuiDockNode { } } } -impl ImGuiDockNode { - #[inline] - pub fn AuthorityForPos(&self) -> ImGuiDataAuthority { - unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) } - } - #[inline] - pub fn set_AuthorityForPos(&mut self, val: ImGuiDataAuthority) { - unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(0usize, 3u8, val as u64) - } - } - #[inline] - pub fn AuthorityForSize(&self) -> ImGuiDataAuthority { - unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) } - } - #[inline] - pub fn set_AuthorityForSize(&mut self, val: ImGuiDataAuthority) { +pub type ImGuiContextHookCallback = ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, hook: *mut ImGuiContextHook), +>; +pub const ImGuiContextHookType_NewFramePre: ImGuiContextHookType = 0; +pub const ImGuiContextHookType_NewFramePost: ImGuiContextHookType = 1; +pub const ImGuiContextHookType_EndFramePre: ImGuiContextHookType = 2; +pub const ImGuiContextHookType_EndFramePost: ImGuiContextHookType = 3; +pub const ImGuiContextHookType_RenderPre: ImGuiContextHookType = 4; +pub const ImGuiContextHookType_RenderPost: ImGuiContextHookType = 5; +pub const ImGuiContextHookType_Shutdown: ImGuiContextHookType = 6; +pub const ImGuiContextHookType_PendingRemoval_: ImGuiContextHookType = 7; +pub type ImGuiContextHookType = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiContextHook { + pub HookId: ImGuiID, + pub Type: ImGuiContextHookType, + pub Owner: ImGuiID, + pub Callback: ImGuiContextHookCallback, + pub UserData: *mut cty::c_void, +} +impl Default for ImGuiContextHook { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(3usize, 3u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn AuthorityForViewport(&self) -> ImGuiDataAuthority { - unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) } - } - #[inline] - pub fn set_AuthorityForViewport(&mut self, val: ImGuiDataAuthority) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiInputEvent { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiInputEvent, +} +impl Default for ImVector_ImGuiInputEvent { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(6usize, 3u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn IsVisible(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) } - } - #[inline] - pub fn set_IsVisible(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiWindowStackData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiWindowStackData, +} +impl Default for ImVector_ImGuiWindowStackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(9usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn IsFocused(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) } - } - #[inline] - pub fn set_IsFocused(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiColorMod { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiColorMod, +} +impl Default for ImVector_ImGuiColorMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(10usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn IsBgDrawnThisFrame(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) } - } - #[inline] - pub fn set_IsBgDrawnThisFrame(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStyleMod { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStyleMod, +} +impl Default for ImVector_ImGuiStyleMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(11usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn HasCloseButton(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) } - } - #[inline] - pub fn set_HasCloseButton(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiID, +} +impl Default for ImVector_ImGuiID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(12usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn HasWindowMenuButton(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) } - } - #[inline] - pub fn set_HasWindowMenuButton(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiItemFlags { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiItemFlags, +} +impl Default for ImVector_ImGuiItemFlags { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(13usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn HasCentralNodeChild(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) } - } - #[inline] - pub fn set_HasCentralNodeChild(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiGroupData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiGroupData, +} +impl Default for ImVector_ImGuiGroupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantCloseAll(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantCloseAll(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiPopupData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPopupData, +} +impl Default for ImVector_ImGuiPopupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantLockSizeOnce(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantLockSizeOnce(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiViewportPPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiViewportP, +} +impl Default for ImVector_ImGuiViewportPPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(16usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantMouseMove(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantMouseMove(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_unsigned_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_uchar, +} +impl Default for ImVector_unsigned_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(17usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantHiddenTabBarUpdate(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantHiddenTabBarUpdate(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiListClipperData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiListClipperData, +} +impl Default for ImVector_ImGuiListClipperData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(18usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantHiddenTabBarToggle(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantHiddenTabBarToggle(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableTempData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableTempData, +} +impl Default for ImVector_ImGuiTableTempData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(19usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn new_bitfield_1( - AuthorityForPos: ImGuiDataAuthority, - AuthorityForSize: ImGuiDataAuthority, - AuthorityForViewport: ImGuiDataAuthority, - IsVisible: bool, - IsFocused: bool, - IsBgDrawnThisFrame: bool, - HasCloseButton: bool, - HasWindowMenuButton: bool, - HasCentralNodeChild: bool, - WantCloseAll: bool, - WantLockSizeOnce: bool, - WantMouseMove: bool, - WantHiddenTabBarUpdate: bool, - WantHiddenTabBarToggle: bool, - ) -> __BindgenBitfieldUnit<[u8; 3usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 3u8, { - let AuthorityForPos: u32 = unsafe { ::core::mem::transmute(AuthorityForPos) }; - AuthorityForPos as u64 - }); - __bindgen_bitfield_unit.set(3usize, 3u8, { - let AuthorityForSize: u32 = unsafe { ::core::mem::transmute(AuthorityForSize) }; - AuthorityForSize as u64 - }); - __bindgen_bitfield_unit.set(6usize, 3u8, { - let AuthorityForViewport: u32 = unsafe { ::core::mem::transmute(AuthorityForViewport) }; - AuthorityForViewport as u64 - }); - __bindgen_bitfield_unit.set(9usize, 1u8, { - let IsVisible: u8 = unsafe { ::core::mem::transmute(IsVisible) }; - IsVisible as u64 - }); - __bindgen_bitfield_unit.set(10usize, 1u8, { - let IsFocused: u8 = unsafe { ::core::mem::transmute(IsFocused) }; - IsFocused as u64 - }); - __bindgen_bitfield_unit.set(11usize, 1u8, { - let IsBgDrawnThisFrame: u8 = unsafe { ::core::mem::transmute(IsBgDrawnThisFrame) }; - IsBgDrawnThisFrame as u64 - }); - __bindgen_bitfield_unit.set(12usize, 1u8, { - let HasCloseButton: u8 = unsafe { ::core::mem::transmute(HasCloseButton) }; - HasCloseButton as u64 - }); - __bindgen_bitfield_unit.set(13usize, 1u8, { - let HasWindowMenuButton: u8 = unsafe { ::core::mem::transmute(HasWindowMenuButton) }; - HasWindowMenuButton as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let HasCentralNodeChild: u8 = unsafe { ::core::mem::transmute(HasCentralNodeChild) }; - HasCentralNodeChild as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let WantCloseAll: u8 = unsafe { ::core::mem::transmute(WantCloseAll) }; - WantCloseAll as u64 - }); - __bindgen_bitfield_unit.set(16usize, 1u8, { - let WantLockSizeOnce: u8 = unsafe { ::core::mem::transmute(WantLockSizeOnce) }; - WantLockSizeOnce as u64 - }); - __bindgen_bitfield_unit.set(17usize, 1u8, { - let WantMouseMove: u8 = unsafe { ::core::mem::transmute(WantMouseMove) }; - WantMouseMove as u64 - }); - __bindgen_bitfield_unit.set(18usize, 1u8, { - let WantHiddenTabBarUpdate: u8 = - unsafe { ::core::mem::transmute(WantHiddenTabBarUpdate) }; - WantHiddenTabBarUpdate as u64 - }); - __bindgen_bitfield_unit.set(19usize, 1u8, { - let WantHiddenTabBarToggle: u8 = - unsafe { ::core::mem::transmute(WantHiddenTabBarToggle) }; - WantHiddenTabBarToggle as u64 - }); - __bindgen_bitfield_unit - } } -pub const ImGuiWindowDockStyleCol_Text: ImGuiWindowDockStyleCol = 0; -pub const ImGuiWindowDockStyleCol_Tab: ImGuiWindowDockStyleCol = 1; -pub const ImGuiWindowDockStyleCol_TabHovered: ImGuiWindowDockStyleCol = 2; -pub const ImGuiWindowDockStyleCol_TabActive: ImGuiWindowDockStyleCol = 3; -pub const ImGuiWindowDockStyleCol_TabUnfocused: ImGuiWindowDockStyleCol = 4; -pub const ImGuiWindowDockStyleCol_TabUnfocusedActive: ImGuiWindowDockStyleCol = 5; -pub const ImGuiWindowDockStyleCol_COUNT: ImGuiWindowDockStyleCol = 6; -pub type ImGuiWindowDockStyleCol = cty::c_uint; #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiWindowDockStyle { - pub Colors: [ImU32; 6usize], +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTable { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTable, +} +impl Default for ImVector_ImGuiTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiDockContext { - pub Nodes: ImGuiStorage, - pub Requests: ImVector_ImGuiDockRequest, - pub NodesSettings: ImVector_ImGuiDockNodeSettings, - pub WantFullRebuild: bool, +pub struct ImPool_ImGuiTable { + pub Buf: ImVector_ImGuiTable, + pub Map: ImGuiStorage, + pub FreeIdx: ImPoolIdx, + pub AliveCount: ImPoolIdx, } -impl Default for ImGuiDockContext { +impl Default for ImPool_ImGuiTable { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3527,32 +3876,13 @@ impl Default for ImGuiDockContext { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiViewportP { - pub _ImGuiViewport: ImGuiViewport, - pub Idx: cty::c_int, - pub LastFrameActive: cty::c_int, - pub LastFrontMostStampCount: cty::c_int, - pub LastNameHash: ImGuiID, - pub LastPos: ImVec2, - pub Alpha: f32, - pub LastAlpha: f32, - pub PlatformMonitor: cty::c_short, - pub PlatformWindowCreated: bool, - pub Window: *mut ImGuiWindow, - pub DrawListsLastFrame: [cty::c_int; 2usize], - pub DrawLists: [*mut ImDrawList; 2usize], - pub DrawDataP: ImDrawData, - pub DrawDataBuilder: ImDrawDataBuilder, - pub LastPlatformPos: ImVec2, - pub LastPlatformSize: ImVec2, - pub LastRendererSize: ImVec2, - pub WorkOffsetMin: ImVec2, - pub WorkOffsetMax: ImVec2, - pub BuildWorkOffsetMin: ImVec2, - pub BuildWorkOffsetMax: ImVec2, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTabBar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTabBar, } -impl Default for ImGuiViewportP { +impl Default for ImVector_ImGuiTabBar { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3562,58 +3892,30 @@ impl Default for ImGuiViewportP { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiWindowSettings { - pub ID: ImGuiID, - pub Pos: ImVec2ih, - pub Size: ImVec2ih, - pub ViewportPos: ImVec2ih, - pub ViewportId: ImGuiID, - pub DockId: ImGuiID, - pub ClassId: ImGuiID, - pub DockOrder: cty::c_short, - pub Collapsed: bool, - pub WantApply: bool, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImPool_ImGuiTabBar { + pub Buf: ImVector_ImGuiTabBar, + pub Map: ImGuiStorage, + pub FreeIdx: ImPoolIdx, + pub AliveCount: ImPoolIdx, +} +impl Default for ImPool_ImGuiTabBar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiSettingsHandler { - pub TypeName: *const cty::c_char, - pub TypeHash: ImGuiID, - pub ClearAllFn: ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), - >, - pub ReadInitFn: ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), - >, - pub ReadOpenFn: ::core::option::Option< - unsafe extern "C" fn( - ctx: *mut ImGuiContext, - handler: *mut ImGuiSettingsHandler, - name: *const cty::c_char, - ) -> *mut cty::c_void, - >, - pub ReadLineFn: ::core::option::Option< - unsafe extern "C" fn( - ctx: *mut ImGuiContext, - handler: *mut ImGuiSettingsHandler, - entry: *mut cty::c_void, - line: *const cty::c_char, - ), - >, - pub ApplyAllFn: ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), - >, - pub WriteAllFn: ::core::option::Option< - unsafe extern "C" fn( - ctx: *mut ImGuiContext, - handler: *mut ImGuiSettingsHandler, - out_buf: *mut ImGuiTextBuffer, - ), - >, - pub UserData: *mut cty::c_void, +pub struct ImVector_ImGuiPtrOrIndex { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPtrOrIndex, } -impl Default for ImGuiSettingsHandler { +impl Default for ImVector_ImGuiPtrOrIndex { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3623,27 +3925,29 @@ impl Default for ImGuiSettingsHandler { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiMetricsConfig { - pub ShowStackTool: bool, - pub ShowWindowsRects: bool, - pub ShowWindowsBeginOrder: bool, - pub ShowTablesRects: bool, - pub ShowDrawCmdMesh: bool, - pub ShowDrawCmdBoundingBoxes: bool, - pub ShowDockingNodes: bool, - pub ShowWindowsRectsType: cty::c_int, - pub ShowTablesRectsType: cty::c_int, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiShrinkWidthItem { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiShrinkWidthItem, +} +impl Default for ImVector_ImGuiShrinkWidthItem { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiStackLevelInfo { - pub ID: ImGuiID, - pub QueryFrameCount: ImS8, - pub QuerySuccess: bool, - pub Desc: [cty::c_char; 58usize], +pub struct ImVector_ImGuiSettingsHandler { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiSettingsHandler, } -impl Default for ImGuiStackLevelInfo { +impl Default for ImVector_ImGuiSettingsHandler { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3654,13 +3958,10 @@ impl Default for ImGuiStackLevelInfo { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiStackTool { - pub LastActiveFrame: cty::c_int, - pub StackLevel: cty::c_int, - pub QueryId: ImGuiID, - pub Results: ImVector_ImGuiStackLevelInfo, +pub struct ImChunkStream_ImGuiWindowSettings { + pub Buf: ImVector_char, } -impl Default for ImGuiStackTool { +impl Default for ImChunkStream_ImGuiWindowSettings { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3669,25 +3970,28 @@ impl Default for ImGuiStackTool { } } } -pub const ImGuiContextHookType_NewFramePre: ImGuiContextHookType = 0; -pub const ImGuiContextHookType_NewFramePost: ImGuiContextHookType = 1; -pub const ImGuiContextHookType_EndFramePre: ImGuiContextHookType = 2; -pub const ImGuiContextHookType_EndFramePost: ImGuiContextHookType = 3; -pub const ImGuiContextHookType_RenderPre: ImGuiContextHookType = 4; -pub const ImGuiContextHookType_RenderPost: ImGuiContextHookType = 5; -pub const ImGuiContextHookType_Shutdown: ImGuiContextHookType = 6; -pub const ImGuiContextHookType_PendingRemoval_: ImGuiContextHookType = 7; -pub type ImGuiContextHookType = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiContextHook { - pub HookId: ImGuiID, - pub Type: ImGuiContextHookType, - pub Owner: ImGuiID, - pub Callback: ImGuiContextHookCallback, - pub UserData: *mut cty::c_void, +pub struct ImChunkStream_ImGuiTableSettings { + pub Buf: ImVector_char, } -impl Default for ImGuiContextHook { +impl Default for ImChunkStream_ImGuiTableSettings { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiContextHook { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiContextHook, +} +impl Default for ImVector_ImGuiContextHook { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3703,6 +4007,8 @@ pub struct ImGuiContext { pub FontAtlasOwnedByContext: bool, pub IO: ImGuiIO, pub PlatformIO: ImGuiPlatformIO, + pub InputEventsQueue: ImVector_ImGuiInputEvent, + pub InputEventsTrail: ImVector_ImGuiInputEvent, pub Style: ImGuiStyle, pub ConfigFlagsCurrFrame: ImGuiConfigFlags, pub ConfigFlagsLastFrame: ImGuiConfigFlags, @@ -3731,17 +4037,14 @@ pub struct ImGuiContext { pub CurrentWindow: *mut ImGuiWindow, pub HoveredWindow: *mut ImGuiWindow, pub HoveredWindowUnderMovingWindow: *mut ImGuiWindow, - pub HoveredDockNode: *mut ImGuiDockNode, pub MovingWindow: *mut ImGuiWindow, pub WheelingWindow: *mut ImGuiWindow, pub WheelingWindowRefMousePos: ImVec2, - pub WheelingWindowTimer: f32, + pub WheelingWindowReleaseTimer: f32, pub DebugHookIdInfo: ImGuiID, pub HoveredId: ImGuiID, pub HoveredIdPreviousFrame: ImGuiID, pub HoveredIdAllowOverlap: bool, - pub HoveredIdUsingMouseWheel: bool, - pub HoveredIdPreviousFrameUsingMouseWheel: bool, pub HoveredIdDisabled: bool, pub HoveredIdTimer: f32, pub HoveredIdNotActiveTimer: f32, @@ -3754,10 +4057,6 @@ pub struct ImGuiContext { pub ActiveIdHasBeenPressedBefore: bool, pub ActiveIdHasBeenEditedBefore: bool, pub ActiveIdHasBeenEditedThisFrame: bool, - pub ActiveIdUsingMouseWheel: bool, - pub ActiveIdUsingNavDirMask: ImU32, - pub ActiveIdUsingNavInputMask: ImU32, - pub ActiveIdUsingKeyInputMask: ImU64, pub ActiveIdClickOffset: ImVec2, pub ActiveIdWindow: *mut ImGuiWindow, pub ActiveIdSource: ImGuiInputSource, @@ -3768,7 +4067,14 @@ pub struct ImGuiContext { pub ActiveIdPreviousFrameWindow: *mut ImGuiWindow, pub LastActiveId: ImGuiID, pub LastActiveIdTimer: f32, + pub KeysOwnerData: [ImGuiKeyOwnerData; 140usize], + pub KeysRoutingTable: ImGuiKeyRoutingTable, + pub ActiveIdUsingNavDirMask: ImU32, + pub ActiveIdUsingAllKeyboardKeys: bool, + pub ActiveIdUsingNavInputMask: ImU32, + pub CurrentFocusScopeId: ImGuiID, pub CurrentItemFlags: ImGuiItemFlags, + pub DebugLocateId: ImGuiID, pub NextItemData: ImGuiNextItemData, pub LastItemData: ImGuiLastItemData, pub NextWindowData: ImGuiNextWindowData, @@ -3799,7 +4105,7 @@ pub struct ImGuiContext { pub NavActivateFlags: ImGuiActivateFlags, pub NavJustMovedToId: ImGuiID, pub NavJustMovedToFocusScopeId: ImGuiID, - pub NavJustMovedToKeyMods: ImGuiKeyModFlags, + pub NavJustMovedToKeyMods: ImGuiKeyChord, pub NavNextActivateId: ImGuiID, pub NavNextActivateFlags: ImGuiActivateFlags, pub NavInputSource: ImGuiInputSource, @@ -3818,7 +4124,7 @@ pub struct ImGuiContext { pub NavMoveForwardToNextFrame: bool, pub NavMoveFlags: ImGuiNavMoveFlags, pub NavMoveScrollFlags: ImGuiScrollFlags, - pub NavMoveKeyMods: ImGuiKeyModFlags, + pub NavMoveKeyMods: ImGuiKeyChord, pub NavMoveDir: ImGuiDir, pub NavMoveDirForDebug: ImGuiDir, pub NavMoveClipDir: ImGuiDir, @@ -3831,12 +4137,16 @@ pub struct ImGuiContext { pub NavMoveResultLocalVisible: ImGuiNavItemData, pub NavMoveResultOther: ImGuiNavItemData, pub NavTabbingResultFirst: ImGuiNavItemData, + pub ConfigNavWindowingKeyNext: ImGuiKeyChord, + pub ConfigNavWindowingKeyPrev: ImGuiKeyChord, pub NavWindowingTarget: *mut ImGuiWindow, pub NavWindowingTargetAnim: *mut ImGuiWindow, pub NavWindowingListWindow: *mut ImGuiWindow, pub NavWindowingTimer: f32, pub NavWindowingHighlightAlpha: f32, pub NavWindowingToggleLayer: bool, + pub NavWindowingAccumDeltaPos: ImVec2, + pub NavWindowingAccumDeltaSize: ImVec2, pub DimBgRatio: f32, pub MouseCursor: ImGuiMouseCursor, pub DragDropActive: bool, @@ -3868,6 +4178,10 @@ pub struct ImGuiContext { pub TabBars: ImPool_ImGuiTabBar, pub CurrentTabBarStack: ImVector_ImGuiPtrOrIndex, pub ShrinkWidthBuffer: ImVector_ImGuiShrinkWidthItem, + pub HoverDelayId: ImGuiID, + pub HoverDelayIdPreviousFrame: ImGuiID, + pub HoverDelayTimer: f32, + pub HoverDelayClearTimer: f32, pub MouseLastValidPos: ImVec2, pub InputTextState: ImGuiInputTextState, pub InputTextPasswordFont: ImFont, @@ -3878,6 +4192,7 @@ pub struct ImGuiContext { pub ColorEditLastColor: ImU32, pub ColorPickerRef: ImVec4, pub ComboPreviewData: ImGuiComboPreviewData, + pub SliderGrabClickOffset: f32, pub SliderCurrentAccum: f32, pub SliderCurrentAccumDirty: bool, pub DragCurrentAccumDirty: bool, @@ -3887,12 +4202,11 @@ pub struct ImGuiContext { pub DisabledAlphaBackup: f32, pub DisabledStackSize: cty::c_short, pub TooltipOverrideCount: cty::c_short, - pub TooltipSlowDelay: f32, pub ClipboardHandlerData: ImVector_char, pub MenusIdSubmittedThisFrame: ImVector_ImGuiID, - pub PlatformImePos: ImVec2, - pub PlatformImeLastPos: ImVec2, - pub PlatformImePosViewport: *mut ImGuiViewportP, + pub PlatformImeData: ImGuiPlatformImeData, + pub PlatformImeDataPrev: ImGuiPlatformImeData, + pub PlatformImeViewport: ImGuiID, pub PlatformLocaleDecimalPoint: cty::c_char, pub DockContext: ImGuiDockContext, pub SettingsLoaded: bool, @@ -3903,6 +4217,7 @@ pub struct ImGuiContext { pub SettingsTables: ImChunkStream_ImGuiTableSettings, pub Hooks: ImVector_ImGuiContextHook, pub HookIdNext: ImGuiID, + pub LocalizationTable: [*const cty::c_char; 8usize], pub LogEnabled: bool, pub LogType: ImGuiLogType, pub LogFile: ImFileHandle, @@ -3914,18 +4229,24 @@ pub struct ImGuiContext { pub LogDepthRef: cty::c_int, pub LogDepthToExpand: cty::c_int, pub LogDepthToExpandDefault: cty::c_int, + pub DebugLogFlags: ImGuiDebugLogFlags, + pub DebugLogBuf: ImGuiTextBuffer, + pub DebugLogIndex: ImGuiTextIndex, + pub DebugLocateFrames: ImU8, pub DebugItemPickerActive: bool, + pub DebugItemPickerMouseButton: ImU8, pub DebugItemPickerBreakId: ImGuiID, pub DebugMetricsConfig: ImGuiMetricsConfig, pub DebugStackTool: ImGuiStackTool, - pub FramerateSecPerFrame: [f32; 120usize], + pub DebugHoveredDockNode: *mut ImGuiDockNode, + pub FramerateSecPerFrame: [f32; 60usize], pub FramerateSecPerFrameIdx: cty::c_int, pub FramerateSecPerFrameCount: cty::c_int, pub FramerateSecPerFrameAccum: f32, pub WantCaptureMouseNextFrame: cty::c_int, pub WantCaptureKeyboardNextFrame: cty::c_int, pub WantTextInputNextFrame: cty::c_int, - pub TempBuffer: [cty::c_char; 3073usize], + pub TempBuffer: ImVector_char, } impl Default for ImGuiContext { fn default() -> Self { @@ -3948,6 +4269,8 @@ pub struct ImGuiWindowTempData { pub PrevLineSize: ImVec2, pub CurrLineTextBaseOffset: f32, pub PrevLineTextBaseOffset: f32, + pub IsSameLine: bool, + pub IsSetPos: bool, pub Indent: ImVec1, pub ColumnsOffset: ImVec1, pub GroupOffset: ImVec1, @@ -3955,7 +4278,6 @@ pub struct ImGuiWindowTempData { pub NavLayerCurrent: ImGuiNavLayer, pub NavLayersActiveMask: cty::c_short, pub NavLayersActiveMaskNext: cty::c_short, - pub NavFocusScopeIdCurrent: ImGuiID, pub NavHideHighlightOneFrame: bool, pub NavHasScroll: bool, pub MenuBarAppending: bool, @@ -3984,6 +4306,22 @@ impl Default for ImGuiWindowTempData { } } #[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiOldColumns { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiOldColumns, +} +impl Default for ImVector_ImGuiOldColumns { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiWindow { pub Name: *mut cty::c_char, @@ -4006,6 +4344,7 @@ pub struct ImGuiWindow { pub WindowBorderSize: f32, pub NameBufLen: cty::c_int, pub MoveId: ImGuiID, + pub TabId: ImGuiID, pub ChildId: ImGuiID, pub Scroll: ImVec2, pub ScrollMax: ImVec2, @@ -4029,6 +4368,7 @@ pub struct ImGuiWindow { pub HasCloseButton: bool, pub ResizeBorderHeld: cty::c_schar, pub BeginCount: cty::c_short, + pub BeginCountPreviousFrame: cty::c_short, pub BeginOrderWithinParent: cty::c_short, pub BeginOrderWithinContext: cty::c_short, pub FocusOrder: cty::c_short, @@ -4078,6 +4418,7 @@ pub struct ImGuiWindow { pub NavLastChildNavWindow: *mut ImGuiWindow, pub NavLastIds: [ImGuiID; 2usize], pub NavRectRel: [ImRect; 2usize], + pub NavRootFocusScopeId: ImGuiID, pub MemoryDrawListIdxCapacity: cty::c_int, pub MemoryDrawListVtxCapacity: cty::c_int, pub MemoryCompacted: bool, @@ -4267,6 +4608,7 @@ pub struct ImGuiTabItem { pub Offset: f32, pub Width: f32, pub ContentWidth: f32, + pub RequestedWidth: f32, pub NameOffset: ImS32, pub BeginOrder: ImS16, pub IndexDuringLayout: ImS16, @@ -4282,6 +4624,22 @@ impl Default for ImGuiTabItem { } } #[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTabItem { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTabItem, +} +impl Default for ImVector_ImGuiTabItem { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiTabBar { pub Tabs: ImVector_ImGuiTabItem, @@ -4325,6 +4683,8 @@ impl Default for ImGuiTabBar { } } } +pub type ImGuiTableColumnIdx = ImS8; +pub type ImGuiTableDrawChannelIdx = ImU8; #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] pub struct ImGuiTableColumn { @@ -4434,6 +4794,89 @@ pub struct ImGuiTableCellData { pub Column: ImGuiTableColumnIdx, } #[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableInstanceData { + pub LastOuterHeight: f32, + pub LastFirstRowHeight: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableColumn { + pub Data: *mut ImGuiTableColumn, + pub DataEnd: *mut ImGuiTableColumn, +} +impl Default for ImSpan_ImGuiTableColumn { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableColumnIdx { + pub Data: *mut ImGuiTableColumnIdx, + pub DataEnd: *mut ImGuiTableColumnIdx, +} +impl Default for ImSpan_ImGuiTableColumnIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableCellData { + pub Data: *mut ImGuiTableCellData, + pub DataEnd: *mut ImGuiTableCellData, +} +impl Default for ImSpan_ImGuiTableCellData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableInstanceData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableInstanceData, +} +impl Default for ImVector_ImGuiTableInstanceData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableColumnSortSpecs { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableColumnSortSpecs, +} +impl Default for ImVector_ImGuiTableColumnSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiTable { pub ID: ImGuiID, @@ -4475,11 +4918,10 @@ pub struct ImGuiTable { pub CellPaddingY: f32, pub CellSpacingX1: f32, pub CellSpacingX2: f32, - pub LastOuterHeight: f32, - pub LastFirstRowHeight: f32, pub InnerWidth: f32, pub ColumnsGivenWidth: f32, pub ColumnsAutoFitWidth: f32, + pub ColumnsStretchSumWeights: f32, pub ResizedColumnNextWidth: f32, pub ResizeLockMinContentsX2: f32, pub RefScale: f32, @@ -4496,6 +4938,8 @@ pub struct ImGuiTable { pub InnerWindow: *mut ImGuiWindow, pub ColumnsNames: ImGuiTextBuffer, pub DrawSplitter: *mut ImDrawListSplitter, + pub InstanceDataFirst: ImGuiTableInstanceData, + pub InstanceDataExtra: ImVector_ImGuiTableInstanceData, pub SortSpecsSingle: ImGuiTableColumnSortSpecs, pub SortSpecsMulti: ImVector_ImGuiTableColumnSortSpecs, pub SortSpecs: ImGuiTableSortSpecs, @@ -4698,22 +5142,22 @@ pub struct ImFontBuilderIO { ::core::option::Option bool>, } extern "C" { - pub fn ImVec2_ImVec2Nil() -> *mut ImVec2; + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; } extern "C" { pub fn ImVec2_destroy(self_: *mut ImVec2); } extern "C" { - pub fn ImVec2_ImVec2Float(_x: f32, _y: f32) -> *mut ImVec2; + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; } extern "C" { - pub fn ImVec4_ImVec4Nil() -> *mut ImVec4; + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; } extern "C" { pub fn ImVec4_destroy(self_: *mut ImVec4); } extern "C" { - pub fn ImVec4_ImVec4Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; } extern "C" { pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; @@ -4751,6 +5195,9 @@ extern "C" { extern "C" { pub fn igShowMetricsWindow(p_open: *mut bool); } +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} extern "C" { pub fn igShowStackToolWindow(p_open: *mut bool); } @@ -4788,7 +5235,7 @@ extern "C" { pub fn igEnd(); } extern "C" { - pub fn igBeginChildStr( + pub fn igBeginChild_Str( str_id: *const cty::c_char, size: ImVec2, border: bool, @@ -4796,8 +5243,12 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igBeginChildID(id: ImGuiID, size: ImVec2, border: bool, flags: ImGuiWindowFlags) - -> bool; + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; } extern "C" { pub fn igEndChild(); @@ -4858,6 +5309,9 @@ extern "C" { extern "C" { pub fn igSetNextWindowFocus(); } +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} extern "C" { pub fn igSetNextWindowBgAlpha(alpha: f32); } @@ -4865,31 +5319,31 @@ extern "C" { pub fn igSetNextWindowViewport(viewport_id: ImGuiID); } extern "C" { - pub fn igSetWindowPosVec2(pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowSizeVec2(size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowCollapsedBool(collapsed: bool, cond: ImGuiCond); + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowFocusNil(); + pub fn igSetWindowFocus_Nil(); } extern "C" { pub fn igSetWindowFontScale(scale: f32); } extern "C" { - pub fn igSetWindowPosStr(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowSizeStr(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowCollapsedStr(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowFocusStr(name: *const cty::c_char); + pub fn igSetWindowFocus_Str(name: *const cty::c_char); } extern "C" { pub fn igGetContentRegionAvail(pOut: *mut ImVec2); @@ -4910,10 +5364,10 @@ extern "C" { pub fn igGetScrollY() -> f32; } extern "C" { - pub fn igSetScrollXFloat(scroll_x: f32); + pub fn igSetScrollX_Float(scroll_x: f32); } extern "C" { - pub fn igSetScrollYFloat(scroll_y: f32); + pub fn igSetScrollY_Float(scroll_y: f32); } extern "C" { pub fn igGetScrollMaxX() -> f32; @@ -4928,10 +5382,10 @@ extern "C" { pub fn igSetScrollHereY(center_y_ratio: f32); } extern "C" { - pub fn igSetScrollFromPosXFloat(local_x: f32, center_x_ratio: f32); + pub fn igSetScrollFromPosX_Float(local_x: f32, center_x_ratio: f32); } extern "C" { - pub fn igSetScrollFromPosYFloat(local_y: f32, center_y_ratio: f32); + pub fn igSetScrollFromPosY_Float(local_y: f32, center_y_ratio: f32); } extern "C" { pub fn igPushFont(font: *mut ImFont); @@ -4940,19 +5394,19 @@ extern "C" { pub fn igPopFont(); } extern "C" { - pub fn igPushStyleColorU32(idx: ImGuiCol, col: ImU32); + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); } extern "C" { - pub fn igPushStyleColorVec4(idx: ImGuiCol, col: ImVec4); + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); } extern "C" { pub fn igPopStyleColor(count: cty::c_int); } extern "C" { - pub fn igPushStyleVarFloat(idx: ImGuiStyleVar, val: f32); + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); } extern "C" { - pub fn igPushStyleVarVec2(idx: ImGuiStyleVar, val: ImVec2); + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); } extern "C" { pub fn igPopStyleVar(count: cty::c_int); @@ -4997,13 +5451,13 @@ extern "C" { pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); } extern "C" { - pub fn igGetColorU32Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; } extern "C" { - pub fn igGetColorU32Vec4(col: ImVec4) -> ImU32; + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; } extern "C" { - pub fn igGetColorU32U32(col: ImU32) -> ImU32; + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; } extern "C" { pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; @@ -5078,31 +5532,31 @@ extern "C" { pub fn igGetFrameHeightWithSpacing() -> f32; } extern "C" { - pub fn igPushIDStr(str_id: *const cty::c_char); + pub fn igPushID_Str(str_id: *const cty::c_char); } extern "C" { - pub fn igPushIDStrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); } extern "C" { - pub fn igPushIDPtr(ptr_id: *const cty::c_void); + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); } extern "C" { - pub fn igPushIDInt(int_id: cty::c_int); + pub fn igPushID_Int(int_id: cty::c_int); } extern "C" { pub fn igPopID(); } extern "C" { - pub fn igGetIDStr(str_id: *const cty::c_char) -> ImGuiID; + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; } extern "C" { - pub fn igGetIDStrStr( + pub fn igGetID_StrStr( str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char, ) -> ImGuiID; } extern "C" { - pub fn igGetIDPtr(ptr_id: *const cty::c_void) -> ImGuiID; + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; } extern "C" { pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); @@ -5141,49 +5595,28 @@ extern "C" { extern "C" { pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; } -extern "C" { - pub fn igImage( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - tint_col: ImVec4, - border_col: ImVec4, - ); -} -extern "C" { - pub fn igImageButton( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - frame_padding: cty::c_int, - bg_col: ImVec4, - tint_col: ImVec4, - ) -> bool; -} extern "C" { pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; } extern "C" { - pub fn igCheckboxFlagsIntPtr( + pub fn igCheckboxFlags_IntPtr( label: *const cty::c_char, flags: *mut cty::c_int, flags_value: cty::c_int, ) -> bool; } extern "C" { - pub fn igCheckboxFlagsUintPtr( + pub fn igCheckboxFlags_UintPtr( label: *const cty::c_char, flags: *mut cty::c_uint, flags_value: cty::c_uint, ) -> bool; } extern "C" { - pub fn igRadioButtonBool(label: *const cty::c_char, active: bool) -> bool; + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; } extern "C" { - pub fn igRadioButtonIntPtr( + pub fn igRadioButton_IntPtr( label: *const cty::c_char, v: *mut cty::c_int, v_button: cty::c_int, @@ -5195,6 +5628,27 @@ extern "C" { extern "C" { pub fn igBullet(); } +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} extern "C" { pub fn igBeginCombo( label: *const cty::c_char, @@ -5206,7 +5660,7 @@ extern "C" { pub fn igEndCombo(); } extern "C" { - pub fn igComboStr_arr( + pub fn igCombo_Str_arr( label: *const cty::c_char, current_item: *mut cty::c_int, items: *const *const cty::c_char, @@ -5215,7 +5669,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igComboStr( + pub fn igCombo_Str( label: *const cty::c_char, current_item: *mut cty::c_int, items_separated_by_zeros: *const cty::c_char, @@ -5223,7 +5677,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igComboFnBoolPtr( + pub fn igCombo_FnBoolPtr( label: *const cty::c_char, current_item: *mut cty::c_int, items_getter: ::core::option::Option< @@ -5694,19 +6148,19 @@ extern "C" { pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); } extern "C" { - pub fn igTreeNodeStr(label: *const cty::c_char) -> bool; + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; } extern "C" { - pub fn igTreeNodeStrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; } extern "C" { - pub fn igTreeNodePtr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; } extern "C" { - pub fn igTreeNodeExStr(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; } extern "C" { - pub fn igTreeNodeExStrStr( + pub fn igTreeNodeEx_StrStr( str_id: *const cty::c_char, flags: ImGuiTreeNodeFlags, fmt: *const cty::c_char, @@ -5714,7 +6168,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igTreeNodeExPtr( + pub fn igTreeNodeEx_Ptr( ptr_id: *const cty::c_void, flags: ImGuiTreeNodeFlags, fmt: *const cty::c_char, @@ -5722,10 +6176,10 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igTreePushStr(str_id: *const cty::c_char); + pub fn igTreePush_Str(str_id: *const cty::c_char); } extern "C" { - pub fn igTreePushPtr(ptr_id: *const cty::c_void); + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); } extern "C" { pub fn igTreePop(); @@ -5734,13 +6188,13 @@ extern "C" { pub fn igGetTreeNodeToLabelSpacing() -> f32; } extern "C" { - pub fn igCollapsingHeaderTreeNodeFlags( + pub fn igCollapsingHeader_TreeNodeFlags( label: *const cty::c_char, flags: ImGuiTreeNodeFlags, ) -> bool; } extern "C" { - pub fn igCollapsingHeaderBoolPtr( + pub fn igCollapsingHeader_BoolPtr( label: *const cty::c_char, p_visible: *mut bool, flags: ImGuiTreeNodeFlags, @@ -5750,7 +6204,7 @@ extern "C" { pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); } extern "C" { - pub fn igSelectableBool( + pub fn igSelectable_Bool( label: *const cty::c_char, selected: bool, flags: ImGuiSelectableFlags, @@ -5758,7 +6212,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igSelectableBoolPtr( + pub fn igSelectable_BoolPtr( label: *const cty::c_char, p_selected: *mut bool, flags: ImGuiSelectableFlags, @@ -5772,7 +6226,7 @@ extern "C" { pub fn igEndListBox(); } extern "C" { - pub fn igListBoxStr_arr( + pub fn igListBox_Str_arr( label: *const cty::c_char, current_item: *mut cty::c_int, items: *const *const cty::c_char, @@ -5781,7 +6235,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igListBoxFnBoolPtr( + pub fn igListBox_FnBoolPtr( label: *const cty::c_char, current_item: *mut cty::c_int, items_getter: ::core::option::Option< @@ -5797,7 +6251,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igPlotLinesFloatPtr( + pub fn igPlotLines_FloatPtr( label: *const cty::c_char, values: *const f32, values_count: cty::c_int, @@ -5810,7 +6264,7 @@ extern "C" { ); } extern "C" { - pub fn igPlotLinesFnFloatPtr( + pub fn igPlotLines_FnFloatPtr( label: *const cty::c_char, values_getter: ::core::option::Option< unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, @@ -5825,7 +6279,7 @@ extern "C" { ); } extern "C" { - pub fn igPlotHistogramFloatPtr( + pub fn igPlotHistogram_FloatPtr( label: *const cty::c_char, values: *const f32, values_count: cty::c_int, @@ -5838,7 +6292,7 @@ extern "C" { ); } extern "C" { - pub fn igPlotHistogramFnFloatPtr( + pub fn igPlotHistogram_FnFloatPtr( label: *const cty::c_char, values_getter: ::core::option::Option< unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, @@ -5853,16 +6307,16 @@ extern "C" { ); } extern "C" { - pub fn igValueBool(prefix: *const cty::c_char, b: bool); + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); } extern "C" { - pub fn igValueInt(prefix: *const cty::c_char, v: cty::c_int); + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); } extern "C" { - pub fn igValueUint(prefix: *const cty::c_char, v: cty::c_uint); + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); } extern "C" { - pub fn igValueFloat(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); } extern "C" { pub fn igBeginMenuBar() -> bool; @@ -5883,7 +6337,7 @@ extern "C" { pub fn igEndMenu(); } extern "C" { - pub fn igMenuItemBool( + pub fn igMenuItem_Bool( label: *const cty::c_char, shortcut: *const cty::c_char, selected: bool, @@ -5891,7 +6345,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igMenuItemBoolPtr( + pub fn igMenuItem_BoolPtr( label: *const cty::c_char, shortcut: *const cty::c_char, p_selected: *mut bool, @@ -5921,10 +6375,10 @@ extern "C" { pub fn igEndPopup(); } extern "C" { - pub fn igOpenPopupStr(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); } extern "C" { - pub fn igOpenPopupID(id: ImGuiID, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); } extern "C" { pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); @@ -5951,7 +6405,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igIsPopupOpenStr(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; + pub fn igIsPopupOpen_Str(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; } extern "C" { pub fn igBeginTable( @@ -6004,7 +6458,7 @@ extern "C" { pub fn igTableGetRowIndex() -> cty::c_int; } extern "C" { - pub fn igTableGetColumnNameInt(column_n: cty::c_int) -> *const cty::c_char; + pub fn igTableGetColumnName_Int(column_n: cty::c_int) -> *const cty::c_char; } extern "C" { pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; @@ -6209,28 +6663,28 @@ extern "C" { pub fn igGetMainViewport() -> *mut ImGuiViewport; } extern "C" { - pub fn igIsRectVisibleNil(size: ImVec2) -> bool; + pub fn igGetBackgroundDrawList_Nil() -> *mut ImDrawList; } extern "C" { - pub fn igIsRectVisibleVec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; + pub fn igGetForegroundDrawList_Nil() -> *mut ImDrawList; } extern "C" { - pub fn igGetTime() -> f64; + pub fn igGetBackgroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; } extern "C" { - pub fn igGetFrameCount() -> cty::c_int; + pub fn igGetForegroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; } extern "C" { - pub fn igGetBackgroundDrawListNil() -> *mut ImDrawList; + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; } extern "C" { - pub fn igGetForegroundDrawListNil() -> *mut ImDrawList; + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; } extern "C" { - pub fn igGetBackgroundDrawListViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; + pub fn igGetTime() -> f64; } extern "C" { - pub fn igGetForegroundDrawListViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; + pub fn igGetFrameCount() -> cty::c_int; } extern "C" { pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; @@ -6286,32 +6740,31 @@ extern "C" { ); } extern "C" { - pub fn igGetKeyIndex(imgui_key: ImGuiKey) -> cty::c_int; + pub fn igIsKeyDown_Nil(key: ImGuiKey) -> bool; } extern "C" { - pub fn igIsKeyDown(user_key_index: cty::c_int) -> bool; + pub fn igIsKeyPressed_Bool(key: ImGuiKey, repeat: bool) -> bool; } extern "C" { - pub fn igIsKeyPressed(user_key_index: cty::c_int, repeat: bool) -> bool; + pub fn igIsKeyReleased_Nil(key: ImGuiKey) -> bool; } extern "C" { - pub fn igIsKeyReleased(user_key_index: cty::c_int) -> bool; + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; } extern "C" { - pub fn igGetKeyPressedAmount(key_index: cty::c_int, repeat_delay: f32, rate: f32) - -> cty::c_int; + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; } extern "C" { - pub fn igCaptureKeyboardFromApp(want_capture_keyboard_value: bool); + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); } extern "C" { - pub fn igIsMouseDown(button: ImGuiMouseButton) -> bool; + pub fn igIsMouseDown_Nil(button: ImGuiMouseButton) -> bool; } extern "C" { - pub fn igIsMouseClicked(button: ImGuiMouseButton, repeat: bool) -> bool; + pub fn igIsMouseClicked_Bool(button: ImGuiMouseButton, repeat: bool) -> bool; } extern "C" { - pub fn igIsMouseReleased(button: ImGuiMouseButton) -> bool; + pub fn igIsMouseReleased_Nil(button: ImGuiMouseButton) -> bool; } extern "C" { pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; @@ -6350,7 +6803,7 @@ extern "C" { pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); } extern "C" { - pub fn igCaptureMouseFromApp(want_capture_mouse_value: bool); + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); } extern "C" { pub fn igGetClipboardText() -> *const cty::c_char; @@ -6370,6 +6823,9 @@ extern "C" { extern "C" { pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; } +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} extern "C" { pub fn igDebugCheckVersionAndDataLayout( version_str: *const cty::c_char, @@ -6431,6 +6887,27 @@ extern "C" { extern "C" { pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); } +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +extern "C" { + pub fn ImGuiIO_AddMouseViewportEvent(self_: *mut ImGuiIO, id: ImGuiID); +} +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} extern "C" { pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); } @@ -6441,7 +6918,16 @@ extern "C" { pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); } extern "C" { - pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); } extern "C" { pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); @@ -6559,13 +7045,13 @@ extern "C" { pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; } extern "C" { - pub fn ImGuiTextRange_ImGuiTextRangeNil() -> *mut ImGuiTextRange; + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; } extern "C" { pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); } extern "C" { - pub fn ImGuiTextRange_ImGuiTextRangeStr( + pub fn ImGuiTextRange_ImGuiTextRange_Str( _b: *const cty::c_char, _e: *const cty::c_char, ) -> *mut ImGuiTextRange; @@ -6615,7 +7101,7 @@ extern "C" { ); } extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairInt( + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( _key: ImGuiID, _val_i: cty::c_int, ) -> *mut ImGuiStoragePair; @@ -6624,13 +7110,13 @@ extern "C" { pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); } extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairFloat( + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( _key: ImGuiID, _val_f: f32, ) -> *mut ImGuiStoragePair; } extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairPtr( + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( _key: ImGuiID, _val_p: *mut cty::c_void, ) -> *mut ImGuiStoragePair; @@ -6727,13 +7213,19 @@ extern "C" { ); } extern "C" { - pub fn ImColor_ImColorNil() -> *mut ImColor; + pub fn ImColor_ImColor_Nil() -> *mut ImColor; } extern "C" { pub fn ImColor_destroy(self_: *mut ImColor); } extern "C" { - pub fn ImColor_ImColorInt( + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Int( r: cty::c_int, g: cty::c_int, b: cty::c_int, @@ -6741,13 +7233,7 @@ extern "C" { ) -> *mut ImColor; } extern "C" { - pub fn ImColor_ImColorU32(rgba: ImU32) -> *mut ImColor; -} -extern "C" { - pub fn ImColor_ImColorFloat(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; -} -extern "C" { - pub fn ImColor_ImColorVec4(col: ImVec4) -> *mut ImColor; + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; } extern "C" { pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); @@ -6794,7 +7280,7 @@ extern "C" { ); } extern "C" { - pub fn ImDrawList_ImDrawList(shared_data: *const ImDrawListSharedData) -> *mut ImDrawList; + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; } extern "C" { pub fn ImDrawList_destroy(self_: *mut ImDrawList); @@ -6945,7 +7431,7 @@ extern "C" { ); } extern "C" { - pub fn ImDrawList_AddTextVec2( + pub fn ImDrawList_AddText_Vec2( self_: *mut ImDrawList, pos: ImVec2, col: ImU32, @@ -6954,7 +7440,7 @@ extern "C" { ); } extern "C" { - pub fn ImDrawList_AddTextFontPtr( + pub fn ImDrawList_AddText_FontPtr( self_: *mut ImDrawList, font: *const ImFont, font_size: f32, @@ -7395,6 +7881,9 @@ extern "C" { extern "C" { pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; } +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} extern "C" { pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; } @@ -7588,6 +8077,15 @@ extern "C" { extern "C" { pub fn ImGuiPlatformMonitor_destroy(self_: *mut ImGuiPlatformMonitor); } +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); +} +extern "C" { + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; +} extern "C" { pub fn igImHashData(data: *const cty::c_void, data_size: usize, seed: ImU32) -> ImGuiID; } @@ -7608,10 +8106,10 @@ extern "C" { pub fn igImAlphaBlendColors(col_a: ImU32, col_b: ImU32) -> ImU32; } extern "C" { - pub fn igImIsPowerOfTwoInt(v: cty::c_int) -> bool; + pub fn igImIsPowerOfTwo_Int(v: cty::c_int) -> bool; } extern "C" { - pub fn igImIsPowerOfTwoU64(v: ImU64) -> bool; + pub fn igImIsPowerOfTwo_U64(v: ImU64) -> bool; } extern "C" { pub fn igImUpperPowerOfTwo(v: cty::c_int) -> cty::c_int; @@ -7672,6 +8170,15 @@ extern "C" { extern "C" { pub fn igImStrSkipBlank(str_: *const cty::c_char) -> *const cty::c_char; } +extern "C" { + pub fn igImToUpper(c: cty::c_char) -> cty::c_char; +} +extern "C" { + pub fn igImCharIsBlankA(c: cty::c_char) -> bool; +} +extern "C" { + pub fn igImCharIsBlankW(c: cty::c_uint) -> bool; +} extern "C" { pub fn igImFormatString( buf: *mut cty::c_char, @@ -7680,6 +8187,14 @@ extern "C" { ... ) -> cty::c_int; } +extern "C" { + pub fn igImFormatStringToTempBuffer( + out_buf: *mut *const cty::c_char, + out_buf_end: *mut *const cty::c_char, + fmt: *const cty::c_char, + ... + ); +} extern "C" { pub fn igImParseFormatFindStart(format: *const cty::c_char) -> *const cty::c_char; } @@ -7694,16 +8209,24 @@ extern "C" { ) -> *const cty::c_char; } extern "C" { - pub fn igImParseFormatPrecision( - format: *const cty::c_char, - default_value: cty::c_int, - ) -> cty::c_int; + pub fn igImParseFormatSanitizeForPrinting( + fmt_in: *const cty::c_char, + fmt_out: *mut cty::c_char, + fmt_out_size: usize, + ); } extern "C" { - pub fn igImCharIsBlankA(c: cty::c_char) -> bool; + pub fn igImParseFormatSanitizeForScanning( + fmt_in: *const cty::c_char, + fmt_out: *mut cty::c_char, + fmt_out_size: usize, + ) -> *const cty::c_char; } extern "C" { - pub fn igImCharIsBlankW(c: cty::c_uint) -> bool; + pub fn igImParseFormatPrecision( + format: *const cty::c_char, + default_value: cty::c_int, + ) -> cty::c_int; } extern "C" { pub fn igImTextCharToUtf8(out_buf: *mut cty::c_char, c: cty::c_uint) -> *const cty::c_char; @@ -7784,37 +8307,37 @@ extern "C" { ) -> *mut cty::c_void; } extern "C" { - pub fn igImPowFloat(x: f32, y: f32) -> f32; + pub fn igImPow_Float(x: f32, y: f32) -> f32; } extern "C" { - pub fn igImPowdouble(x: f64, y: f64) -> f64; + pub fn igImPow_double(x: f64, y: f64) -> f64; } extern "C" { - pub fn igImLogFloat(x: f32) -> f32; + pub fn igImLog_Float(x: f32) -> f32; } extern "C" { - pub fn igImLogdouble(x: f64) -> f64; + pub fn igImLog_double(x: f64) -> f64; } extern "C" { - pub fn igImAbsInt(x: cty::c_int) -> cty::c_int; + pub fn igImAbs_Int(x: cty::c_int) -> cty::c_int; } extern "C" { - pub fn igImAbsFloat(x: f32) -> f32; + pub fn igImAbs_Float(x: f32) -> f32; } extern "C" { - pub fn igImAbsdouble(x: f64) -> f64; + pub fn igImAbs_double(x: f64) -> f64; } extern "C" { - pub fn igImSignFloat(x: f32) -> f32; + pub fn igImSign_Float(x: f32) -> f32; } extern "C" { - pub fn igImSigndouble(x: f64) -> f64; + pub fn igImSign_double(x: f64) -> f64; } extern "C" { - pub fn igImRsqrtFloat(x: f32) -> f32; + pub fn igImRsqrt_Float(x: f32) -> f32; } extern "C" { - pub fn igImRsqrtdouble(x: f64) -> f64; + pub fn igImRsqrt_double(x: f64) -> f64; } extern "C" { pub fn igImMin(pOut: *mut ImVec2, lhs: ImVec2, rhs: ImVec2); @@ -7826,34 +8349,37 @@ extern "C" { pub fn igImClamp(pOut: *mut ImVec2, v: ImVec2, mn: ImVec2, mx: ImVec2); } extern "C" { - pub fn igImLerpVec2Float(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: f32); + pub fn igImLerp_Vec2Float(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: f32); } extern "C" { - pub fn igImLerpVec2Vec2(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: ImVec2); + pub fn igImLerp_Vec2Vec2(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: ImVec2); } extern "C" { - pub fn igImLerpVec4(pOut: *mut ImVec4, a: ImVec4, b: ImVec4, t: f32); + pub fn igImLerp_Vec4(pOut: *mut ImVec4, a: ImVec4, b: ImVec4, t: f32); } extern "C" { pub fn igImSaturate(f: f32) -> f32; } extern "C" { - pub fn igImLengthSqrVec2(lhs: ImVec2) -> f32; + pub fn igImLengthSqr_Vec2(lhs: ImVec2) -> f32; } extern "C" { - pub fn igImLengthSqrVec4(lhs: ImVec4) -> f32; + pub fn igImLengthSqr_Vec4(lhs: ImVec4) -> f32; } extern "C" { pub fn igImInvLength(lhs: ImVec2, fail_value: f32) -> f32; } extern "C" { - pub fn igImFloorFloat(f: f32) -> f32; + pub fn igImFloor_Float(f: f32) -> f32; +} +extern "C" { + pub fn igImFloorSigned_Float(f: f32) -> f32; } extern "C" { - pub fn igImFloorSigned(f: f32) -> f32; + pub fn igImFloor_Vec2(pOut: *mut ImVec2, v: ImVec2); } extern "C" { - pub fn igImFloorVec2(pOut: *mut ImVec2, v: ImVec2); + pub fn igImFloorSigned_Vec2(pOut: *mut ImVec2, v: ImVec2); } extern "C" { pub fn igImModPositive(a: cty::c_int, b: cty::c_int) -> cty::c_int; @@ -7935,40 +8461,40 @@ extern "C" { pub fn igImGetDirQuadrantFromDelta(dx: f32, dy: f32) -> ImGuiDir; } extern "C" { - pub fn ImVec1_ImVec1Nil() -> *mut ImVec1; + pub fn ImVec1_ImVec1_Nil() -> *mut ImVec1; } extern "C" { pub fn ImVec1_destroy(self_: *mut ImVec1); } extern "C" { - pub fn ImVec1_ImVec1Float(_x: f32) -> *mut ImVec1; + pub fn ImVec1_ImVec1_Float(_x: f32) -> *mut ImVec1; } extern "C" { - pub fn ImVec2ih_ImVec2ihNil() -> *mut ImVec2ih; + pub fn ImVec2ih_ImVec2ih_Nil() -> *mut ImVec2ih; } extern "C" { pub fn ImVec2ih_destroy(self_: *mut ImVec2ih); } extern "C" { - pub fn ImVec2ih_ImVec2ihshort(_x: cty::c_short, _y: cty::c_short) -> *mut ImVec2ih; + pub fn ImVec2ih_ImVec2ih_short(_x: cty::c_short, _y: cty::c_short) -> *mut ImVec2ih; } extern "C" { - pub fn ImVec2ih_ImVec2ihVec2(rhs: ImVec2) -> *mut ImVec2ih; + pub fn ImVec2ih_ImVec2ih_Vec2(rhs: ImVec2) -> *mut ImVec2ih; } extern "C" { - pub fn ImRect_ImRectNil() -> *mut ImRect; + pub fn ImRect_ImRect_Nil() -> *mut ImRect; } extern "C" { pub fn ImRect_destroy(self_: *mut ImRect); } extern "C" { - pub fn ImRect_ImRectVec2(min: ImVec2, max: ImVec2) -> *mut ImRect; + pub fn ImRect_ImRect_Vec2(min: ImVec2, max: ImVec2) -> *mut ImRect; } extern "C" { - pub fn ImRect_ImRectVec4(v: ImVec4) -> *mut ImRect; + pub fn ImRect_ImRect_Vec4(v: ImVec4) -> *mut ImRect; } extern "C" { - pub fn ImRect_ImRectFloat(x1: f32, y1: f32, x2: f32, y2: f32) -> *mut ImRect; + pub fn ImRect_ImRect_Float(x1: f32, y1: f32, x2: f32, y2: f32) -> *mut ImRect; } extern "C" { pub fn ImRect_GetCenter(pOut: *mut ImVec2, self_: *mut ImRect); @@ -7998,25 +8524,25 @@ extern "C" { pub fn ImRect_GetBR(pOut: *mut ImVec2, self_: *mut ImRect); } extern "C" { - pub fn ImRect_ContainsVec2(self_: *mut ImRect, p: ImVec2) -> bool; + pub fn ImRect_Contains_Vec2(self_: *mut ImRect, p: ImVec2) -> bool; } extern "C" { - pub fn ImRect_ContainsRect(self_: *mut ImRect, r: ImRect) -> bool; + pub fn ImRect_Contains_Rect(self_: *mut ImRect, r: ImRect) -> bool; } extern "C" { pub fn ImRect_Overlaps(self_: *mut ImRect, r: ImRect) -> bool; } extern "C" { - pub fn ImRect_AddVec2(self_: *mut ImRect, p: ImVec2); + pub fn ImRect_Add_Vec2(self_: *mut ImRect, p: ImVec2); } extern "C" { - pub fn ImRect_AddRect(self_: *mut ImRect, r: ImRect); + pub fn ImRect_Add_Rect(self_: *mut ImRect, r: ImRect); } extern "C" { - pub fn ImRect_ExpandFloat(self_: *mut ImRect, amount: f32); + pub fn ImRect_Expand_Float(self_: *mut ImRect, amount: f32); } extern "C" { - pub fn ImRect_ExpandVec2(self_: *mut ImRect, amount: ImVec2); + pub fn ImRect_Expand_Vec2(self_: *mut ImRect, amount: ImVec2); } extern "C" { pub fn ImRect_Translate(self_: *mut ImRect, d: ImVec2); @@ -8069,6 +8595,34 @@ extern "C" { extern "C" { pub fn ImBitVector_ClearBit(self_: *mut ImBitVector, n: cty::c_int); } +extern "C" { + pub fn ImGuiTextIndex_clear(self_: *mut ImGuiTextIndex); +} +extern "C" { + pub fn ImGuiTextIndex_size(self_: *mut ImGuiTextIndex) -> cty::c_int; +} +extern "C" { + pub fn ImGuiTextIndex_get_line_begin( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + n: cty::c_int, + ) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextIndex_get_line_end( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + n: cty::c_int, + ) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextIndex_append( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + old_size: cty::c_int, + new_size: cty::c_int, + ); +} extern "C" { pub fn ImDrawListSharedData_ImDrawListSharedData() -> *mut ImDrawListSharedData; } @@ -8094,16 +8648,17 @@ extern "C" { pub fn ImDrawDataBuilder_FlattenIntoSingleLayer(self_: *mut ImDrawDataBuilder); } extern "C" { - pub fn ImGuiStyleMod_ImGuiStyleModInt(idx: ImGuiStyleVar, v: cty::c_int) -> *mut ImGuiStyleMod; + pub fn ImGuiStyleMod_ImGuiStyleMod_Int(idx: ImGuiStyleVar, v: cty::c_int) + -> *mut ImGuiStyleMod; } extern "C" { pub fn ImGuiStyleMod_destroy(self_: *mut ImGuiStyleMod); } extern "C" { - pub fn ImGuiStyleMod_ImGuiStyleModFloat(idx: ImGuiStyleVar, v: f32) -> *mut ImGuiStyleMod; + pub fn ImGuiStyleMod_ImGuiStyleMod_Float(idx: ImGuiStyleVar, v: f32) -> *mut ImGuiStyleMod; } extern "C" { - pub fn ImGuiStyleMod_ImGuiStyleModVec2(idx: ImGuiStyleVar, v: ImVec2) -> *mut ImGuiStyleMod; + pub fn ImGuiStyleMod_ImGuiStyleMod_Vec2(idx: ImGuiStyleVar, v: ImVec2) -> *mut ImGuiStyleMod; } extern "C" { pub fn ImGuiComboPreviewData_ImGuiComboPreviewData() -> *mut ImGuiComboPreviewData; @@ -8224,13 +8779,40 @@ extern "C" { pub fn ImGuiStackSizes_CompareWithCurrentState(self_: *mut ImGuiStackSizes); } extern "C" { - pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndexPtr(ptr: *mut cty::c_void) -> *mut ImGuiPtrOrIndex; + pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(ptr: *mut cty::c_void) -> *mut ImGuiPtrOrIndex; } extern "C" { pub fn ImGuiPtrOrIndex_destroy(self_: *mut ImGuiPtrOrIndex); } extern "C" { - pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndexInt(index: cty::c_int) -> *mut ImGuiPtrOrIndex; + pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(index: cty::c_int) -> *mut ImGuiPtrOrIndex; +} +extern "C" { + pub fn ImGuiInputEvent_ImGuiInputEvent() -> *mut ImGuiInputEvent; +} +extern "C" { + pub fn ImGuiInputEvent_destroy(self_: *mut ImGuiInputEvent); +} +extern "C" { + pub fn ImGuiKeyRoutingData_ImGuiKeyRoutingData() -> *mut ImGuiKeyRoutingData; +} +extern "C" { + pub fn ImGuiKeyRoutingData_destroy(self_: *mut ImGuiKeyRoutingData); +} +extern "C" { + pub fn ImGuiKeyRoutingTable_ImGuiKeyRoutingTable() -> *mut ImGuiKeyRoutingTable; +} +extern "C" { + pub fn ImGuiKeyRoutingTable_destroy(self_: *mut ImGuiKeyRoutingTable); +} +extern "C" { + pub fn ImGuiKeyRoutingTable_Clear(self_: *mut ImGuiKeyRoutingTable); +} +extern "C" { + pub fn ImGuiKeyOwnerData_ImGuiKeyOwnerData() -> *mut ImGuiKeyOwnerData; +} +extern "C" { + pub fn ImGuiKeyOwnerData_destroy(self_: *mut ImGuiKeyOwnerData); } extern "C" { pub fn ImGuiListClipperRange_FromIndices( @@ -8418,33 +9000,17 @@ extern "C" { pub fn ImGuiWindow_destroy(self_: *mut ImGuiWindow); } extern "C" { - pub fn ImGuiWindow_GetIDStr( - self_: *mut ImGuiWindow, - str_: *const cty::c_char, - str_end: *const cty::c_char, - ) -> ImGuiID; -} -extern "C" { - pub fn ImGuiWindow_GetIDPtr(self_: *mut ImGuiWindow, ptr: *const cty::c_void) -> ImGuiID; -} -extern "C" { - pub fn ImGuiWindow_GetIDInt(self_: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; -} -extern "C" { - pub fn ImGuiWindow_GetIDNoKeepAliveStr( + pub fn ImGuiWindow_GetID_Str( self_: *mut ImGuiWindow, str_: *const cty::c_char, str_end: *const cty::c_char, ) -> ImGuiID; } extern "C" { - pub fn ImGuiWindow_GetIDNoKeepAlivePtr( - self_: *mut ImGuiWindow, - ptr: *const cty::c_void, - ) -> ImGuiID; + pub fn ImGuiWindow_GetID_Ptr(self_: *mut ImGuiWindow, ptr: *const cty::c_void) -> ImGuiID; } extern "C" { - pub fn ImGuiWindow_GetIDNoKeepAliveInt(self_: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; + pub fn ImGuiWindow_GetID_Int(self_: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; } extern "C" { pub fn ImGuiWindow_GetIDFromRectangle(self_: *mut ImGuiWindow, r_abs: ImRect) -> ImGuiID; @@ -8495,6 +9061,12 @@ extern "C" { extern "C" { pub fn ImGuiTableColumn_destroy(self_: *mut ImGuiTableColumn); } +extern "C" { + pub fn ImGuiTableInstanceData_ImGuiTableInstanceData() -> *mut ImGuiTableInstanceData; +} +extern "C" { + pub fn ImGuiTableInstanceData_destroy(self_: *mut ImGuiTableInstanceData); +} extern "C" { pub fn ImGuiTable_ImGuiTable() -> *mut ImGuiTable; } @@ -8570,13 +9142,13 @@ extern "C" { pub fn igIsWindowNavFocusable(window: *mut ImGuiWindow) -> bool; } extern "C" { - pub fn igSetWindowPosWindowPtr(window: *mut ImGuiWindow, pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_WindowPtr(window: *mut ImGuiWindow, pos: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowSizeWindowPtr(window: *mut ImGuiWindow, size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_WindowPtr(window: *mut ImGuiWindow, size: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowCollapsedWindowPtr( + pub fn igSetWindowCollapsed_WindowPtr( window: *mut ImGuiWindow, collapsed: bool, cond: ImGuiCond, @@ -8627,13 +9199,16 @@ extern "C" { pub fn igGetDefaultFont() -> *mut ImFont; } extern "C" { - pub fn igGetForegroundDrawListWindowPtr(window: *mut ImGuiWindow) -> *mut ImDrawList; + pub fn igGetForegroundDrawList_WindowPtr(window: *mut ImGuiWindow) -> *mut ImDrawList; +} +extern "C" { + pub fn igInitialize(); } extern "C" { - pub fn igInitialize(context: *mut ImGuiContext); + pub fn igShutdown(); } extern "C" { - pub fn igShutdown(context: *mut ImGuiContext); + pub fn igUpdateInputEvents(trickle_fast_inputs: bool); } extern "C" { pub fn igUpdateHoveredWindowAndCaptureFlags(); @@ -8676,6 +9251,9 @@ extern "C" { extern "C" { pub fn igDestroyPlatformWindow(viewport: *mut ImGuiViewportP); } +extern "C" { + pub fn igSetWindowViewport(window: *mut ImGuiWindow, viewport: *mut ImGuiViewportP); +} extern "C" { pub fn igSetCurrentViewport(window: *mut ImGuiWindow, viewport: *mut ImGuiViewportP); } @@ -8685,10 +9263,15 @@ extern "C" { ) -> *const ImGuiPlatformMonitor; } extern "C" { - pub fn igMarkIniSettingsDirtyNil(); + pub fn igFindHoveredViewportFromPlatformWindowStack( + mouse_platform_pos: ImVec2, + ) -> *mut ImGuiViewportP; +} +extern "C" { + pub fn igMarkIniSettingsDirty_Nil(); } extern "C" { - pub fn igMarkIniSettingsDirtyWindowPtr(window: *mut ImGuiWindow); + pub fn igMarkIniSettingsDirty_WindowPtr(window: *mut ImGuiWindow); } extern "C" { pub fn igClearIniSettings(); @@ -8702,27 +9285,36 @@ extern "C" { extern "C" { pub fn igFindOrCreateWindowSettings(name: *const cty::c_char) -> *mut ImGuiWindowSettings; } +extern "C" { + pub fn igAddSettingsHandler(handler: *const ImGuiSettingsHandler); +} +extern "C" { + pub fn igRemoveSettingsHandler(type_name: *const cty::c_char); +} extern "C" { pub fn igFindSettingsHandler(type_name: *const cty::c_char) -> *mut ImGuiSettingsHandler; } extern "C" { - pub fn igSetNextWindowScroll(scroll: ImVec2); + pub fn igLocalizeRegisterEntries(entries: *const ImGuiLocEntry, count: cty::c_int); +} +extern "C" { + pub fn igLocalizeGetMsg(key: ImGuiLocKey) -> *const cty::c_char; } extern "C" { - pub fn igSetScrollXWindowPtr(window: *mut ImGuiWindow, scroll_x: f32); + pub fn igSetScrollX_WindowPtr(window: *mut ImGuiWindow, scroll_x: f32); } extern "C" { - pub fn igSetScrollYWindowPtr(window: *mut ImGuiWindow, scroll_y: f32); + pub fn igSetScrollY_WindowPtr(window: *mut ImGuiWindow, scroll_y: f32); } extern "C" { - pub fn igSetScrollFromPosXWindowPtr( + pub fn igSetScrollFromPosX_WindowPtr( window: *mut ImGuiWindow, local_x: f32, center_x_ratio: f32, ); } extern "C" { - pub fn igSetScrollFromPosYWindowPtr( + pub fn igSetScrollFromPosY_WindowPtr( window: *mut ImGuiWindow, local_y: f32, center_y_ratio: f32, @@ -8792,10 +9384,10 @@ extern "C" { ) -> ImGuiID; } extern "C" { - pub fn igItemSizeVec2(size: ImVec2, text_baseline_y: f32); + pub fn igItemSize_Vec2(size: ImVec2, text_baseline_y: f32); } extern "C" { - pub fn igItemSizeRect(bb: ImRect, text_baseline_y: f32); + pub fn igItemSize_Rect(bb: ImRect, text_baseline_y: f32); } extern "C" { pub fn igItemAdd( @@ -8884,7 +9476,7 @@ extern "C" { pub fn igClosePopupsExceptModals(); } extern "C" { - pub fn igIsPopupOpenID(id: ImGuiID, popup_flags: ImGuiPopupFlags) -> bool; + pub fn igIsPopupOpen_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags) -> bool; } extern "C" { pub fn igBeginPopupEx(id: ImGuiID, extra_flags: ImGuiWindowFlags) -> bool; @@ -8987,17 +9579,71 @@ extern "C" { pub fn igNavMoveRequestTryWrapping(window: *mut ImGuiWindow, move_flags: ImGuiNavMoveFlags); } extern "C" { - pub fn igGetNavInputAmount(n: ImGuiNavInput, mode: ImGuiInputReadMode) -> f32; + pub fn igActivateItem(id: ImGuiID); +} +extern "C" { + pub fn igSetNavWindow(window: *mut ImGuiWindow); +} +extern "C" { + pub fn igSetNavID( + id: ImGuiID, + nav_layer: ImGuiNavLayer, + focus_scope_id: ImGuiID, + rect_rel: ImRect, + ); +} +extern "C" { + pub fn igIsNamedKey(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igIsNamedKeyOrModKey(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igIsLegacyKey(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igIsKeyboardKey(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igIsGamepadKey(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igIsMouseKey(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igIsAliasKey(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igConvertSingleModFlagToKey(key: ImGuiKey) -> ImGuiKey; +} +extern "C" { + pub fn igGetKeyData(key: ImGuiKey) -> *mut ImGuiKeyData; +} +extern "C" { + pub fn igGetKeyChordName( + key_chord: ImGuiKeyChord, + out_buf: *mut cty::c_char, + out_buf_size: cty::c_int, + ); +} +extern "C" { + pub fn igMouseButtonToKey(button: ImGuiMouseButton) -> ImGuiKey; } extern "C" { - pub fn igGetNavInputAmount2d( + pub fn igIsMouseDragPastThreshold(button: ImGuiMouseButton, lock_threshold: f32) -> bool; +} +extern "C" { + pub fn igGetKeyVector2d( pOut: *mut ImVec2, - dir_sources: ImGuiNavDirSourceFlags, - mode: ImGuiInputReadMode, - slow_factor: f32, - fast_factor: f32, + key_left: ImGuiKey, + key_right: ImGuiKey, + key_up: ImGuiKey, + key_down: ImGuiKey, ); } +extern "C" { + pub fn igGetNavTweakPressedAmount(axis: ImGuiAxis) -> f32; +} extern "C" { pub fn igCalcTypematicRepeatAmount( t0: f32, @@ -9007,57 +9653,70 @@ extern "C" { ) -> cty::c_int; } extern "C" { - pub fn igActivateItem(id: ImGuiID); + pub fn igGetTypematicRepeatRate( + flags: ImGuiInputFlags, + repeat_delay: *mut f32, + repeat_rate: *mut f32, + ); } extern "C" { - pub fn igSetNavID( - id: ImGuiID, - nav_layer: ImGuiNavLayer, - focus_scope_id: ImGuiID, - rect_rel: ImRect, - ); + pub fn igSetActiveIdUsingAllKeyboardKeys(); } extern "C" { - pub fn igPushFocusScope(id: ImGuiID); + pub fn igIsActiveIdUsingNavDir(dir: ImGuiDir) -> bool; } extern "C" { - pub fn igPopFocusScope(); + pub fn igGetKeyOwner(key: ImGuiKey) -> ImGuiID; } extern "C" { - pub fn igGetFocusedFocusScope() -> ImGuiID; + pub fn igSetKeyOwner(key: ImGuiKey, owner_id: ImGuiID, flags: ImGuiInputFlags); } extern "C" { - pub fn igGetFocusScope() -> ImGuiID; + pub fn igSetItemKeyOwner(key: ImGuiKey, flags: ImGuiInputFlags); } extern "C" { - pub fn igSetItemUsingMouseWheel(); + pub fn igTestKeyOwner(key: ImGuiKey, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn igSetActiveIdUsingNavAndKeys(); + pub fn igGetKeyOwnerData(key: ImGuiKey) -> *mut ImGuiKeyOwnerData; } extern "C" { - pub fn igIsActiveIdUsingNavDir(dir: ImGuiDir) -> bool; + pub fn igIsKeyDown_ID(key: ImGuiKey, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn igIsActiveIdUsingNavInput(input: ImGuiNavInput) -> bool; + pub fn igIsKeyPressed_ID(key: ImGuiKey, owner_id: ImGuiID, flags: ImGuiInputFlags) -> bool; } extern "C" { - pub fn igIsActiveIdUsingKey(key: ImGuiKey) -> bool; + pub fn igIsKeyReleased_ID(key: ImGuiKey, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn igIsMouseDragPastThreshold(button: ImGuiMouseButton, lock_threshold: f32) -> bool; + pub fn igIsMouseDown_ID(button: ImGuiMouseButton, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn igIsKeyPressedMap(key: ImGuiKey, repeat: bool) -> bool; + pub fn igIsMouseClicked_ID( + button: ImGuiMouseButton, + owner_id: ImGuiID, + flags: ImGuiInputFlags, + ) -> bool; } extern "C" { - pub fn igIsNavInputDown(n: ImGuiNavInput) -> bool; + pub fn igIsMouseReleased_ID(button: ImGuiMouseButton, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn igIsNavInputTest(n: ImGuiNavInput, rm: ImGuiInputReadMode) -> bool; + pub fn igShortcut(key_chord: ImGuiKeyChord, owner_id: ImGuiID, flags: ImGuiInputFlags) -> bool; } extern "C" { - pub fn igGetMergedKeyModFlags() -> ImGuiKeyModFlags; + pub fn igSetShortcutRouting( + key_chord: ImGuiKeyChord, + owner_id: ImGuiID, + flags: ImGuiInputFlags, + ) -> bool; +} +extern "C" { + pub fn igTestShortcutRouting(key_chord: ImGuiKeyChord, owner_id: ImGuiID) -> bool; +} +extern "C" { + pub fn igGetShortcutRoutingData(key_chord: ImGuiKeyChord) -> *mut ImGuiKeyRoutingData; } extern "C" { pub fn igDockContextInitialize(ctx: *mut ImGuiContext); @@ -9108,12 +9767,16 @@ extern "C" { pub fn igDockContextCalcDropPosForDocking( target: *mut ImGuiWindow, target_node: *mut ImGuiDockNode, - payload: *mut ImGuiWindow, + payload_window: *mut ImGuiWindow, + payload_node: *mut ImGuiDockNode, split_dir: ImGuiDir, split_outer: bool, out_pos: *mut ImVec2, ) -> bool; } +extern "C" { + pub fn igDockContextFindNodeByID(ctx: *mut ImGuiContext, id: ImGuiID) -> *mut ImGuiDockNode; +} extern "C" { pub fn igDockNodeBeginAmendTabBar(node: *mut ImGuiDockNode) -> bool; } @@ -9209,6 +9872,18 @@ extern "C" { extern "C" { pub fn igDockBuilderFinish(node_id: ImGuiID); } +extern "C" { + pub fn igPushFocusScope(id: ImGuiID); +} +extern "C" { + pub fn igPopFocusScope(); +} +extern "C" { + pub fn igGetCurrentFocusScope() -> ImGuiID; +} +extern "C" { + pub fn igIsDragDropActive() -> bool; +} extern "C" { pub fn igBeginDragDropTargetCustom(bb: ImRect, id: ImGuiID) -> bool; } @@ -9218,6 +9893,9 @@ extern "C" { extern "C" { pub fn igIsDragDropPayloadBeingAccepted() -> bool; } +extern "C" { + pub fn igRenderDragDropTargetRect(bb: ImRect); +} extern "C" { pub fn igSetWindowClipRectBeforeSetChannel(window: *mut ImGuiWindow, clip_rect: ImRect); } @@ -9317,9 +9995,18 @@ extern "C" { extern "C" { pub fn igTableDrawContextMenu(table: *mut ImGuiTable); } +extern "C" { + pub fn igTableBeginContextMenuPopup(table: *mut ImGuiTable) -> bool; +} extern "C" { pub fn igTableMergeDrawChannels(table: *mut ImGuiTable); } +extern "C" { + pub fn igTableGetInstanceData( + table: *mut ImGuiTable, + instance_no: cty::c_int, + ) -> *mut ImGuiTableInstanceData; +} extern "C" { pub fn igTableSortSpecsSanitize(table: *mut ImGuiTable); } @@ -9351,7 +10038,7 @@ extern "C" { pub fn igTableGetCellBgRect(pOut: *mut ImRect, table: *const ImGuiTable, column_n: cty::c_int); } extern "C" { - pub fn igTableGetColumnNameTablePtr( + pub fn igTableGetColumnName_TablePtr( table: *const ImGuiTable, column_n: cty::c_int, ) -> *const cty::c_char; @@ -9376,10 +10063,10 @@ extern "C" { pub fn igTableRemove(table: *mut ImGuiTable); } extern "C" { - pub fn igTableGcCompactTransientBuffersTablePtr(table: *mut ImGuiTable); + pub fn igTableGcCompactTransientBuffers_TablePtr(table: *mut ImGuiTable); } extern "C" { - pub fn igTableGcCompactTransientBuffersTableTempDataPtr(table: *mut ImGuiTableTempData); + pub fn igTableGcCompactTransientBuffers_TableTempDataPtr(table: *mut ImGuiTableTempData); } extern "C" { pub fn igTableGcCompactSettings(); @@ -9397,7 +10084,7 @@ extern "C" { pub fn igTableGetBoundSettings(table: *mut ImGuiTable) -> *mut ImGuiTableSettings; } extern "C" { - pub fn igTableSettingsInstallHandler(context: *mut ImGuiContext); + pub fn igTableSettingsAddSettingsHandler(); } extern "C" { pub fn igTableSettingsCreate(id: ImGuiID, columns_count: cty::c_int) @@ -9462,7 +10149,14 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igTabItemCalcSize(pOut: *mut ImVec2, label: *const cty::c_char, has_close_button: bool); + pub fn igTabItemCalcSize_Str( + pOut: *mut ImVec2, + label: *const cty::c_char, + has_close_button_or_unsaved_marker: bool, + ); +} +extern "C" { + pub fn igTabItemCalcSize_WindowPtr(pOut: *mut ImVec2, window: *mut ImGuiWindow); } extern "C" { pub fn igTabItemBackground( @@ -9570,6 +10264,16 @@ extern "C" { text_end: *const cty::c_char, ) -> *const cty::c_char; } +extern "C" { + pub fn igRenderMouseCursor( + pos: ImVec2, + scale: f32, + mouse_cursor: ImGuiMouseCursor, + col_fill: ImU32, + col_border: ImU32, + col_shadow: ImU32, + ); +} extern "C" { pub fn igRenderArrow( draw_list: *mut ImDrawList, @@ -9585,17 +10289,6 @@ extern "C" { extern "C" { pub fn igRenderCheckMark(draw_list: *mut ImDrawList, pos: ImVec2, col: ImU32, sz: f32); } -extern "C" { - pub fn igRenderMouseCursor( - draw_list: *mut ImDrawList, - pos: ImVec2, - scale: f32, - mouse_cursor: ImGuiMouseCursor, - col_fill: ImU32, - col_border: ImU32, - col_shadow: ImU32, - ); -} extern "C" { pub fn igRenderArrowPointingAt( draw_list: *mut ImDrawList, @@ -9676,7 +10369,6 @@ extern "C" { size: ImVec2, uv0: ImVec2, uv1: ImVec2, - padding: ImVec2, bg_col: ImVec4, tint_col: ImVec4, ) -> bool; @@ -9697,14 +10389,14 @@ extern "C" { pub fn igSeparatorEx(flags: ImGuiSeparatorFlags); } extern "C" { - pub fn igCheckboxFlagsS64Ptr( + pub fn igCheckboxFlags_S64Ptr( label: *const cty::c_char, flags: *mut ImS64, flags_value: ImS64, ) -> bool; } extern "C" { - pub fn igCheckboxFlagsU64Ptr( + pub fn igCheckboxFlags_U64Ptr( label: *const cty::c_char, flags: *mut ImU64, flags_value: ImU64, @@ -9767,10 +10459,13 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igTreeNodeBehaviorIsOpen(id: ImGuiID, flags: ImGuiTreeNodeFlags) -> bool; + pub fn igTreePushOverrideID(id: ImGuiID); +} +extern "C" { + pub fn igTreeNodeSetOpen(id: ImGuiID, open: bool); } extern "C" { - pub fn igTreePushOverrideID(id: ImGuiID); + pub fn igTreeNodeUpdateNextOpen(id: ImGuiID, flags: ImGuiTreeNodeFlags) -> bool; } extern "C" { pub fn igDataTypeGetInfo(data_type: ImGuiDataType) -> *const ImGuiDataTypeInfo; @@ -9794,9 +10489,8 @@ extern "C" { ); } extern "C" { - pub fn igDataTypeApplyOpFromText( + pub fn igDataTypeApplyFromText( buf: *const cty::c_char, - initial_value_buf: *const cty::c_char, data_type: ImGuiDataType, p_data: *mut cty::c_void, format: *const cty::c_char, @@ -9914,6 +10608,9 @@ extern "C" { extern "C" { pub fn igGcAwakeTransientWindowBuffers(window: *mut ImGuiWindow); } +extern "C" { + pub fn igDebugLog(fmt: *const cty::c_char, ...); +} extern "C" { pub fn igErrorCheckEndFrameRecover( log_callback: ImGuiErrorLogCallback, @@ -9926,6 +10623,18 @@ extern "C" { user_data: *mut cty::c_void, ); } +extern "C" { + pub fn igErrorCheckUsingSetCursorPosToExtendParentBoundaries(); +} +extern "C" { + pub fn igDebugLocateItem(target_id: ImGuiID); +} +extern "C" { + pub fn igDebugLocateItemOnHover(target_id: ImGuiID); +} +extern "C" { + pub fn igDebugLocateItemResolveWithLastItem(); +} extern "C" { pub fn igDebugDrawItemRect(col: ImU32); } @@ -9969,6 +10678,9 @@ extern "C" { extern "C" { pub fn igDebugNodeFont(font: *mut ImFont); } +extern "C" { + pub fn igDebugNodeFontGlyph(font: *mut ImFont, glyph: *const ImFontGlyph); +} extern "C" { pub fn igDebugNodeStorage(storage: *mut ImGuiStorage, label: *const cty::c_char); } @@ -9981,6 +10693,9 @@ extern "C" { extern "C" { pub fn igDebugNodeTableSettings(settings: *mut ImGuiTableSettings); } +extern "C" { + pub fn igDebugNodeInputTextState(state: *mut ImGuiInputTextState); +} extern "C" { pub fn igDebugNodeWindow(window: *mut ImGuiWindow, label: *const cty::c_char); } @@ -10007,6 +10722,9 @@ extern "C" { bb: ImRect, ); } +extern "C" { + pub fn igIsKeyPressedMap(key: ImGuiKey, repeat: bool) -> bool; +} extern "C" { pub fn igImFontAtlasGetBuilderForStbTruetype() -> *const ImFontBuilderIO; } diff --git a/imgui-sys/src/wasm_bindings.rs b/imgui-sys/src/wasm_bindings.rs index c2e90efb3..cef00dd97 100644 --- a/imgui-sys/src/wasm_bindings.rs +++ b/imgui-sys/src/wasm_bindings.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.1 */ +/* automatically generated by rust-bindgen 0.63.0 */ #![allow(nonstandard_style, clippy::all)] @@ -84,7 +84,7 @@ where } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImGuiContext { +pub struct ImDrawListSharedData { _unused: [u8; 0], } #[repr(C)] @@ -94,14 +94,13 @@ pub struct ImFontBuilderIO { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImDrawListSharedData { +pub struct ImGuiContext { _unused: [u8; 0], } pub type ImGuiCol = cty::c_int; pub type ImGuiCond = cty::c_int; pub type ImGuiDataType = cty::c_int; pub type ImGuiDir = cty::c_int; -pub type ImGuiKey = cty::c_int; pub type ImGuiMouseButton = cty::c_int; pub type ImGuiMouseCursor = cty::c_int; pub type ImGuiSortDirection = cty::c_int; @@ -119,7 +118,7 @@ pub type ImGuiDragDropFlags = cty::c_int; pub type ImGuiFocusedFlags = cty::c_int; pub type ImGuiHoveredFlags = cty::c_int; pub type ImGuiInputTextFlags = cty::c_int; -pub type ImGuiKeyModFlags = cty::c_int; +pub type ImGuiKeyChord = cty::c_int; pub type ImGuiPopupFlags = cty::c_int; pub type ImGuiSelectableFlags = cty::c_int; pub type ImGuiSliderFlags = cty::c_int; @@ -134,6 +133,7 @@ pub type ImGuiWindowFlags = cty::c_int; pub type ImTextureID = *mut cty::c_void; pub type ImDrawIdx = cty::c_ushort; pub type ImGuiID = cty::c_uint; +pub type ImS8 = cty::c_schar; pub type ImU8 = cty::c_uchar; pub type ImS16 = cty::c_short; pub type ImU16 = cty::c_ushort; @@ -152,281 +152,6 @@ pub type ImGuiMemAllocFunc = ::core::option::Option< pub type ImGuiMemFreeFunc = ::core::option::Option< unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), >; -pub type ImDrawCallback = ::core::option::Option< - unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawChannel { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawChannel, -} -impl Default for ImVector_ImDrawChannel { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawCmd { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawCmd, -} -impl Default for ImVector_ImDrawCmd { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawIdx { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawIdx, -} -impl Default for ImVector_ImDrawIdx { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawVert { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawVert, -} -impl Default for ImVector_ImDrawVert { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImFont, -} -impl Default for ImVector_ImFontPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontAtlasCustomRect { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontAtlasCustomRect, -} -impl Default for ImVector_ImFontAtlasCustomRect { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontConfig { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontConfig, -} -impl Default for ImVector_ImFontConfig { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontGlyph { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontGlyph, -} -impl Default for ImVector_ImFontGlyph { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiStoragePair { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiStoragePair, -} -impl Default for ImVector_ImGuiStoragePair { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTextRange { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTextRange, -} -impl Default for ImVector_ImGuiTextRange { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImTextureID { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImTextureID, -} -impl Default for ImVector_ImTextureID { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImU32 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImU32, -} -impl Default for ImVector_ImU32 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImVec2 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImVec2, -} -impl Default for ImVector_ImVec2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImVec4 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImVec4, -} -impl Default for ImVector_ImVec4 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImWchar { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImWchar, -} -impl Default for ImVector_ImWchar { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_char { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut cty::c_char, -} -impl Default for ImVector_char { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_float { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut f32, -} -impl Default for ImVector_float { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] pub struct ImVec2 { @@ -493,6 +218,7 @@ pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536; pub const ImGuiInputTextFlags_CharsScientific: ImGuiInputTextFlags_ = 131072; pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags_ = 262144; pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags_ = 524288; +pub const ImGuiInputTextFlags_EscapeClearsAll: ImGuiInputTextFlags_ = 1048576; pub type ImGuiInputTextFlags_ = cty::c_uint; pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags_ = 0; pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags_ = 1; @@ -651,8 +377,12 @@ pub const ImGuiHoveredFlags_AllowWhenBlockedByPopup: ImGuiHoveredFlags_ = 32; pub const ImGuiHoveredFlags_AllowWhenBlockedByActiveItem: ImGuiHoveredFlags_ = 128; pub const ImGuiHoveredFlags_AllowWhenOverlapped: ImGuiHoveredFlags_ = 256; pub const ImGuiHoveredFlags_AllowWhenDisabled: ImGuiHoveredFlags_ = 512; +pub const ImGuiHoveredFlags_NoNavOverride: ImGuiHoveredFlags_ = 1024; pub const ImGuiHoveredFlags_RectOnly: ImGuiHoveredFlags_ = 416; pub const ImGuiHoveredFlags_RootAndChildWindows: ImGuiHoveredFlags_ = 3; +pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags_ = 2048; +pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags_ = 4096; +pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags_ = 8192; pub type ImGuiHoveredFlags_ = cty::c_uint; pub const ImGuiDragDropFlags_None: ImGuiDragDropFlags_ = 0; pub const ImGuiDragDropFlags_SourceNoPreviewTooltip: ImGuiDragDropFlags_ = 1; @@ -689,59 +419,179 @@ pub const ImGuiSortDirection_None: ImGuiSortDirection_ = 0; pub const ImGuiSortDirection_Ascending: ImGuiSortDirection_ = 1; pub const ImGuiSortDirection_Descending: ImGuiSortDirection_ = 2; pub type ImGuiSortDirection_ = cty::c_uint; -pub const ImGuiKey_Tab: ImGuiKey_ = 0; -pub const ImGuiKey_LeftArrow: ImGuiKey_ = 1; -pub const ImGuiKey_RightArrow: ImGuiKey_ = 2; -pub const ImGuiKey_UpArrow: ImGuiKey_ = 3; -pub const ImGuiKey_DownArrow: ImGuiKey_ = 4; -pub const ImGuiKey_PageUp: ImGuiKey_ = 5; -pub const ImGuiKey_PageDown: ImGuiKey_ = 6; -pub const ImGuiKey_Home: ImGuiKey_ = 7; -pub const ImGuiKey_End: ImGuiKey_ = 8; -pub const ImGuiKey_Insert: ImGuiKey_ = 9; -pub const ImGuiKey_Delete: ImGuiKey_ = 10; -pub const ImGuiKey_Backspace: ImGuiKey_ = 11; -pub const ImGuiKey_Space: ImGuiKey_ = 12; -pub const ImGuiKey_Enter: ImGuiKey_ = 13; -pub const ImGuiKey_Escape: ImGuiKey_ = 14; -pub const ImGuiKey_KeyPadEnter: ImGuiKey_ = 15; -pub const ImGuiKey_A: ImGuiKey_ = 16; -pub const ImGuiKey_C: ImGuiKey_ = 17; -pub const ImGuiKey_V: ImGuiKey_ = 18; -pub const ImGuiKey_X: ImGuiKey_ = 19; -pub const ImGuiKey_Y: ImGuiKey_ = 20; -pub const ImGuiKey_Z: ImGuiKey_ = 21; -pub const ImGuiKey_COUNT: ImGuiKey_ = 22; -pub type ImGuiKey_ = cty::c_uint; -pub const ImGuiKeyModFlags_None: ImGuiKeyModFlags_ = 0; -pub const ImGuiKeyModFlags_Ctrl: ImGuiKeyModFlags_ = 1; -pub const ImGuiKeyModFlags_Shift: ImGuiKeyModFlags_ = 2; -pub const ImGuiKeyModFlags_Alt: ImGuiKeyModFlags_ = 4; -pub const ImGuiKeyModFlags_Super: ImGuiKeyModFlags_ = 8; -pub type ImGuiKeyModFlags_ = cty::c_uint; -pub const ImGuiNavInput_Activate: ImGuiNavInput_ = 0; -pub const ImGuiNavInput_Cancel: ImGuiNavInput_ = 1; -pub const ImGuiNavInput_Input: ImGuiNavInput_ = 2; -pub const ImGuiNavInput_Menu: ImGuiNavInput_ = 3; -pub const ImGuiNavInput_DpadLeft: ImGuiNavInput_ = 4; -pub const ImGuiNavInput_DpadRight: ImGuiNavInput_ = 5; -pub const ImGuiNavInput_DpadUp: ImGuiNavInput_ = 6; -pub const ImGuiNavInput_DpadDown: ImGuiNavInput_ = 7; -pub const ImGuiNavInput_LStickLeft: ImGuiNavInput_ = 8; -pub const ImGuiNavInput_LStickRight: ImGuiNavInput_ = 9; -pub const ImGuiNavInput_LStickUp: ImGuiNavInput_ = 10; -pub const ImGuiNavInput_LStickDown: ImGuiNavInput_ = 11; -pub const ImGuiNavInput_FocusPrev: ImGuiNavInput_ = 12; -pub const ImGuiNavInput_FocusNext: ImGuiNavInput_ = 13; -pub const ImGuiNavInput_TweakSlow: ImGuiNavInput_ = 14; -pub const ImGuiNavInput_TweakFast: ImGuiNavInput_ = 15; -pub const ImGuiNavInput_KeyLeft_: ImGuiNavInput_ = 16; -pub const ImGuiNavInput_KeyRight_: ImGuiNavInput_ = 17; -pub const ImGuiNavInput_KeyUp_: ImGuiNavInput_ = 18; -pub const ImGuiNavInput_KeyDown_: ImGuiNavInput_ = 19; -pub const ImGuiNavInput_COUNT: ImGuiNavInput_ = 20; -pub const ImGuiNavInput_InternalStart_: ImGuiNavInput_ = 16; -pub type ImGuiNavInput_ = cty::c_uint; +pub const ImGuiKey_None: ImGuiKey = 0; +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_Apostrophe: ImGuiKey = 584; +pub const ImGuiKey_Comma: ImGuiKey = 585; +pub const ImGuiKey_Minus: ImGuiKey = 586; +pub const ImGuiKey_Period: ImGuiKey = 587; +pub const ImGuiKey_Slash: ImGuiKey = 588; +pub const ImGuiKey_Semicolon: ImGuiKey = 589; +pub const ImGuiKey_Equal: ImGuiKey = 590; +pub const ImGuiKey_LeftBracket: ImGuiKey = 591; +pub const ImGuiKey_Backslash: ImGuiKey = 592; +pub const ImGuiKey_RightBracket: ImGuiKey = 593; +pub const ImGuiKey_GraveAccent: ImGuiKey = 594; +pub const ImGuiKey_CapsLock: ImGuiKey = 595; +pub const ImGuiKey_ScrollLock: ImGuiKey = 596; +pub const ImGuiKey_NumLock: ImGuiKey = 597; +pub const ImGuiKey_PrintScreen: ImGuiKey = 598; +pub const ImGuiKey_Pause: ImGuiKey = 599; +pub const ImGuiKey_Keypad0: ImGuiKey = 600; +pub const ImGuiKey_Keypad1: ImGuiKey = 601; +pub const ImGuiKey_Keypad2: ImGuiKey = 602; +pub const ImGuiKey_Keypad3: ImGuiKey = 603; +pub const ImGuiKey_Keypad4: ImGuiKey = 604; +pub const ImGuiKey_Keypad5: ImGuiKey = 605; +pub const ImGuiKey_Keypad6: ImGuiKey = 606; +pub const ImGuiKey_Keypad7: ImGuiKey = 607; +pub const ImGuiKey_Keypad8: ImGuiKey = 608; +pub const ImGuiKey_Keypad9: ImGuiKey = 609; +pub const ImGuiKey_KeypadDecimal: ImGuiKey = 610; +pub const ImGuiKey_KeypadDivide: ImGuiKey = 611; +pub const ImGuiKey_KeypadMultiply: ImGuiKey = 612; +pub const ImGuiKey_KeypadSubtract: ImGuiKey = 613; +pub const ImGuiKey_KeypadAdd: ImGuiKey = 614; +pub const ImGuiKey_KeypadEnter: ImGuiKey = 615; +pub const ImGuiKey_KeypadEqual: ImGuiKey = 616; +pub const ImGuiKey_GamepadStart: ImGuiKey = 617; +pub const ImGuiKey_GamepadBack: ImGuiKey = 618; +pub const ImGuiKey_GamepadFaceLeft: ImGuiKey = 619; +pub const ImGuiKey_GamepadFaceRight: ImGuiKey = 620; +pub const ImGuiKey_GamepadFaceUp: ImGuiKey = 621; +pub const ImGuiKey_GamepadFaceDown: ImGuiKey = 622; +pub const ImGuiKey_GamepadDpadLeft: ImGuiKey = 623; +pub const ImGuiKey_GamepadDpadRight: ImGuiKey = 624; +pub const ImGuiKey_GamepadDpadUp: ImGuiKey = 625; +pub const ImGuiKey_GamepadDpadDown: ImGuiKey = 626; +pub const ImGuiKey_GamepadL1: ImGuiKey = 627; +pub const ImGuiKey_GamepadR1: ImGuiKey = 628; +pub const ImGuiKey_GamepadL2: ImGuiKey = 629; +pub const ImGuiKey_GamepadR2: ImGuiKey = 630; +pub const ImGuiKey_GamepadL3: ImGuiKey = 631; +pub const ImGuiKey_GamepadR3: ImGuiKey = 632; +pub const ImGuiKey_GamepadLStickLeft: ImGuiKey = 633; +pub const ImGuiKey_GamepadLStickRight: ImGuiKey = 634; +pub const ImGuiKey_GamepadLStickUp: ImGuiKey = 635; +pub const ImGuiKey_GamepadLStickDown: ImGuiKey = 636; +pub const ImGuiKey_GamepadRStickLeft: ImGuiKey = 637; +pub const ImGuiKey_GamepadRStickRight: ImGuiKey = 638; +pub const ImGuiKey_GamepadRStickUp: ImGuiKey = 639; +pub const ImGuiKey_GamepadRStickDown: ImGuiKey = 640; +pub const ImGuiKey_MouseLeft: ImGuiKey = 641; +pub const ImGuiKey_MouseRight: ImGuiKey = 642; +pub const ImGuiKey_MouseMiddle: ImGuiKey = 643; +pub const ImGuiKey_MouseX1: ImGuiKey = 644; +pub const ImGuiKey_MouseX2: ImGuiKey = 645; +pub const ImGuiKey_MouseWheelX: ImGuiKey = 646; +pub const ImGuiKey_MouseWheelY: ImGuiKey = 647; +pub const ImGuiKey_ReservedForModCtrl: ImGuiKey = 648; +pub const ImGuiKey_ReservedForModShift: ImGuiKey = 649; +pub const ImGuiKey_ReservedForModAlt: ImGuiKey = 650; +pub const ImGuiKey_ReservedForModSuper: ImGuiKey = 651; +pub const ImGuiKey_COUNT: ImGuiKey = 652; +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 ImGuiMod_Shortcut: ImGuiKey = 4096; +pub const ImGuiKey_NamedKey_BEGIN: ImGuiKey = 512; +pub const ImGuiKey_NamedKey_END: ImGuiKey = 652; +pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 140; +pub const ImGuiKey_KeysData_SIZE: ImGuiKey = 652; +pub const ImGuiKey_KeysData_OFFSET: ImGuiKey = 0; +pub type ImGuiKey = cty::c_uint; +pub const ImGuiNavInput_Activate: ImGuiNavInput = 0; +pub const ImGuiNavInput_Cancel: ImGuiNavInput = 1; +pub const ImGuiNavInput_Input: ImGuiNavInput = 2; +pub const ImGuiNavInput_Menu: ImGuiNavInput = 3; +pub const ImGuiNavInput_DpadLeft: ImGuiNavInput = 4; +pub const ImGuiNavInput_DpadRight: ImGuiNavInput = 5; +pub const ImGuiNavInput_DpadUp: ImGuiNavInput = 6; +pub const ImGuiNavInput_DpadDown: ImGuiNavInput = 7; +pub const ImGuiNavInput_LStickLeft: ImGuiNavInput = 8; +pub const ImGuiNavInput_LStickRight: ImGuiNavInput = 9; +pub const ImGuiNavInput_LStickUp: ImGuiNavInput = 10; +pub const ImGuiNavInput_LStickDown: ImGuiNavInput = 11; +pub const ImGuiNavInput_FocusPrev: ImGuiNavInput = 12; +pub const ImGuiNavInput_FocusNext: ImGuiNavInput = 13; +pub const ImGuiNavInput_TweakSlow: ImGuiNavInput = 14; +pub const ImGuiNavInput_TweakFast: ImGuiNavInput = 15; +pub const ImGuiNavInput_COUNT: ImGuiNavInput = 16; +pub type ImGuiNavInput = cty::c_uint; pub const ImGuiConfigFlags_None: ImGuiConfigFlags_ = 0; pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags_ = 1; pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags_ = 2; @@ -962,6 +812,30 @@ impl Default for ImGuiStyle { } } #[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiKeyData { + pub Down: bool, + pub DownDuration: f32, + pub DownDurationPrev: f32, + pub AnalogValue: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImWchar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImWchar, +} +impl Default for ImVector_ImWchar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiIO { pub ConfigFlags: ImGuiConfigFlags, @@ -974,9 +848,10 @@ pub struct ImGuiIO { pub MouseDoubleClickTime: f32, pub MouseDoubleClickMaxDist: f32, pub MouseDragThreshold: f32, - pub KeyMap: [cty::c_int; 22usize], pub KeyRepeatDelay: f32, pub KeyRepeatRate: f32, + pub HoverDelayNormal: f32, + pub HoverDelayShort: f32, pub UserData: *mut cty::c_void, pub Fonts: *mut ImFontAtlas, pub FontGlobalScale: f32, @@ -985,7 +860,9 @@ pub struct ImGuiIO { pub DisplayFramebufferScale: ImVec2, pub MouseDrawCursor: bool, pub ConfigMacOSXBehaviors: bool, + pub ConfigInputTrickleEventQueue: bool, pub ConfigInputTextCursorBlink: bool, + pub ConfigInputTextEnterKeepActive: bool, pub ConfigDragClickToInputText: bool, pub ConfigWindowsResizeFromEdges: bool, pub ConfigWindowsMoveFromTitleBarOnly: bool, @@ -1002,19 +879,10 @@ pub struct ImGuiIO { unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), >, pub ClipboardUserData: *mut cty::c_void, - pub ImeSetInputScreenPosFn: - ::core::option::Option, - pub ImeWindowHandle: *mut cty::c_void, - pub MousePos: ImVec2, - pub MouseDown: [bool; 5usize], - pub MouseWheel: f32, - pub MouseWheelH: f32, - pub KeyCtrl: bool, - pub KeyShift: bool, - pub KeyAlt: bool, - pub KeySuper: bool, - pub KeysDown: [bool; 512usize], - pub NavInputs: [f32; 20usize], + pub SetPlatformImeDataFn: ::core::option::Option< + unsafe extern "C" fn(viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData), + >, + pub _UnusedPadding: *mut cty::c_void, pub WantCaptureMouse: bool, pub WantCaptureKeyboard: bool, pub WantTextInput: bool, @@ -1029,9 +897,20 @@ pub struct ImGuiIO { pub MetricsActiveWindows: cty::c_int, pub MetricsActiveAllocations: cty::c_int, pub MouseDelta: ImVec2, + pub KeyMap: [cty::c_int; 652usize], + pub KeysDown: [bool; 652usize], + pub NavInputs: [f32; 16usize], + pub MousePos: ImVec2, + pub MouseDown: [bool; 5usize], + pub MouseWheel: f32, + pub MouseWheelH: f32, + pub KeyCtrl: bool, + pub KeyShift: bool, + pub KeyAlt: bool, + pub KeySuper: bool, + pub KeyMods: ImGuiKeyChord, + pub KeysData: [ImGuiKeyData; 652usize], pub WantCaptureMouseUnlessPopupClose: bool, - pub KeyMods: ImGuiKeyModFlags, - pub KeyModsPrev: ImGuiKeyModFlags, pub MousePosPrev: ImVec2, pub MouseClickedPos: [ImVec2; 5usize], pub MouseClickedTime: [f64; 5usize], @@ -1044,14 +923,12 @@ pub struct ImGuiIO { pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], pub MouseDownDuration: [f32; 5usize], pub MouseDownDurationPrev: [f32; 5usize], - pub MouseDragMaxDistanceAbs: [ImVec2; 5usize], pub MouseDragMaxDistanceSqr: [f32; 5usize], - pub KeysDownDuration: [f32; 512usize], - pub KeysDownDurationPrev: [f32; 512usize], - pub NavInputsDownDuration: [f32; 20usize], - pub NavInputsDownDurationPrev: [f32; 20usize], pub PenPressure: f32, pub AppFocusLost: bool, + pub AppAcceptingEvents: bool, + pub BackendUsingLegacyKeyArrays: ImS8, + pub BackendUsingLegacyNavInputArray: bool, pub InputQueueSurrogate: ImWchar16, pub InputQueueCharacters: ImVector_ImWchar, } @@ -1199,6 +1076,22 @@ impl Default for ImGuiTextRange { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTextRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTextRange, +} +impl Default for ImVector_ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiTextFilter { pub InputBuf: [cty::c_char; 256usize], pub Filters: ImVector_ImGuiTextRange, @@ -1215,6 +1108,22 @@ impl Default for ImGuiTextFilter { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_char, +} +impl Default for ImVector_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiTextBuffer { pub Buf: ImVector_char, } @@ -1274,6 +1183,22 @@ impl ::core::fmt::Debug for ImGuiStoragePair { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStoragePair { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStoragePair, +} +impl Default for ImVector_ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiStorage { pub Data: ImVector_ImGuiStoragePair, } @@ -1310,6 +1235,9 @@ impl Default for ImGuiListClipper { pub struct ImColor { pub Value: ImVec4, } +pub type ImDrawCallback = ::core::option::Option< + unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImDrawCmd { @@ -1355,11 +1283,144 @@ impl Default for ImDrawCmdHeader { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawCmd { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawCmd, +} +impl Default for ImVector_ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawIdx { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawIdx, +} +impl Default for ImVector_ImDrawIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImDrawChannel { pub _CmdBuffer: ImVector_ImDrawCmd, pub _IdxBuffer: ImVector_ImDrawIdx, } -impl Default for ImDrawChannel { +impl Default for ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawChannel { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawChannel, +} +impl Default for ImVector_ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawListSplitter { + pub _Current: cty::c_int, + pub _Count: cty::c_int, + pub _Channels: ImVector_ImDrawChannel, +} +impl Default for ImDrawListSplitter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImDrawFlags_None: ImDrawFlags_ = 0; +pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; +pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; +pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; +pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; +pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; +pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; +pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; +pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; +pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; +pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; +pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; +pub type ImDrawFlags_ = cty::c_uint; +pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; +pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; +pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; +pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; +pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; +pub type ImDrawListFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawVert { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawVert, +} +impl Default for ImVector_ImDrawVert { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec4 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec4, +} +impl Default for ImVector_ImVec4 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImTextureID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImTextureID, +} +impl Default for ImVector_ImTextureID { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1370,12 +1431,12 @@ impl Default for ImDrawChannel { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImDrawListSplitter { - pub _Current: cty::c_int, - pub _Count: cty::c_int, - pub _Channels: ImVector_ImDrawChannel, +pub struct ImVector_ImVec2 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec2, } -impl Default for ImDrawListSplitter { +impl Default for ImVector_ImVec2 { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1384,27 +1445,6 @@ impl Default for ImDrawListSplitter { } } } -pub const ImDrawFlags_None: ImDrawFlags_ = 0; -pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; -pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; -pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; -pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; -pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; -pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; -pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; -pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; -pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; -pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; -pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; -pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; -pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; -pub type ImDrawFlags_ = cty::c_uint; -pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; -pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; -pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; -pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; -pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; -pub type ImDrawListFlags_ = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImDrawList { @@ -1413,7 +1453,7 @@ pub struct ImDrawList { pub VtxBuffer: ImVector_ImDrawVert, pub Flags: ImDrawListFlags, pub _VtxCurrentIdx: cty::c_uint, - pub _Data: *const ImDrawListSharedData, + pub _Data: *mut ImDrawListSharedData, pub _OwnerName: *const cty::c_char, pub _VtxWritePtr: *mut ImDrawVert, pub _IdxWritePtr: *mut ImDrawIdx, @@ -1559,6 +1599,22 @@ impl ImFontGlyph { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImU32 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImU32, +} +impl Default for ImVector_ImU32 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImFontGlyphRangesBuilder { pub UsedChars: ImVector_ImU32, } @@ -1598,6 +1654,54 @@ pub const ImFontAtlasFlags_NoMouseCursors: ImFontAtlasFlags_ = 2; pub const ImFontAtlasFlags_NoBakedLines: ImFontAtlasFlags_ = 4; pub type ImFontAtlasFlags_ = cty::c_uint; #[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImFont, +} +impl Default for ImVector_ImFontPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontAtlasCustomRect { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontAtlasCustomRect, +} +impl Default for ImVector_ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontConfig { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontConfig, +} +impl Default for ImVector_ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImFontAtlas { pub Flags: ImFontAtlasFlags, @@ -1632,6 +1736,38 @@ impl Default for ImFontAtlas { } } #[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_float { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut f32, +} +impl Default for ImVector_float { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontGlyph { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontGlyph, +} +impl Default for ImVector_ImFontGlyph { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImFont { pub IndexAdvanceX: ImVector_float, @@ -1668,17 +1804,34 @@ pub const ImGuiViewportFlags_IsPlatformMonitor: ImGuiViewportFlags_ = 2; pub const ImGuiViewportFlags_OwnedByApp: ImGuiViewportFlags_ = 4; pub type ImGuiViewportFlags_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] +#[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiViewport { pub Flags: ImGuiViewportFlags, pub Pos: ImVec2, pub Size: ImVec2, pub WorkPos: ImVec2, pub WorkSize: ImVec2, + pub PlatformHandleRaw: *mut cty::c_void, +} +impl Default for ImGuiViewport { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformImeData { + pub WantVisible: bool, + pub InputPos: ImVec2, + pub InputLineHeight: f32, } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec2_ImVec2Nil() -> *mut ImVec2; + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -1686,11 +1839,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec2_ImVec2Float(_x: f32, _y: f32) -> *mut ImVec2; + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec4_ImVec4Nil() -> *mut ImVec4; + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -1698,7 +1851,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec4_ImVec4Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -1749,6 +1902,10 @@ extern "C" { pub fn igShowMetricsWindow(p_open: *mut bool); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igShowStackToolWindow(p_open: *mut bool); } @@ -1798,7 +1955,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginChildStr( + pub fn igBeginChild_Str( str_id: *const cty::c_char, size: ImVec2, border: bool, @@ -1807,8 +1964,12 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginChildID(id: ImGuiID, size: ImVec2, border: bool, flags: ImGuiWindowFlags) - -> bool; + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -1880,24 +2041,28 @@ extern "C" { pub fn igSetNextWindowFocus(); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igSetNextWindowBgAlpha(alpha: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowPosVec2(pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowSizeVec2(size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowCollapsedBool(collapsed: bool, cond: ImGuiCond); + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowFocusNil(); + pub fn igSetWindowFocus_Nil(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -1905,19 +2070,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowPosStr(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowSizeStr(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowCollapsedStr(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowFocusStr(name: *const cty::c_char); + pub fn igSetWindowFocus_Str(name: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -1985,11 +2150,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleColorU32(idx: ImGuiCol, col: ImU32); + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleColorVec4(idx: ImGuiCol, col: ImVec4); + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -1997,11 +2162,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleVarFloat(idx: ImGuiStyleVar, val: f32); + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleVarVec2(idx: ImGuiStyleVar, val: ImVec2); + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -2061,15 +2226,15 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColorU32Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColorU32Vec4(col: ImVec4) -> ImU32; + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColorU32U32(col: ImU32) -> ImU32; + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -2169,19 +2334,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushIDStr(str_id: *const cty::c_char); + pub fn igPushID_Str(str_id: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushIDStrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushIDPtr(ptr_id: *const cty::c_void); + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushIDInt(int_id: cty::c_int); + pub fn igPushID_Int(int_id: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -2189,18 +2354,18 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetIDStr(str_id: *const cty::c_char) -> ImGuiID; + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetIDStrStr( + pub fn igGetID_StrStr( str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char, ) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetIDPtr(ptr_id: *const cty::c_void) -> ImGuiID; + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -2251,35 +2416,12 @@ extern "C" { pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igImage( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - tint_col: ImVec4, - border_col: ImVec4, - ); -} -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igImageButton( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - frame_padding: cty::c_int, - bg_col: ImVec4, - tint_col: ImVec4, - ) -> bool; -} -#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCheckboxFlagsIntPtr( + pub fn igCheckboxFlags_IntPtr( label: *const cty::c_char, flags: *mut cty::c_int, flags_value: cty::c_int, @@ -2287,7 +2429,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCheckboxFlagsUintPtr( + pub fn igCheckboxFlags_UintPtr( label: *const cty::c_char, flags: *mut cty::c_uint, flags_value: cty::c_uint, @@ -2295,11 +2437,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igRadioButtonBool(label: *const cty::c_char, active: bool) -> bool; + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igRadioButtonIntPtr( + pub fn igRadioButton_IntPtr( label: *const cty::c_char, v: *mut cty::c_int, v_button: cty::c_int, @@ -2314,6 +2456,29 @@ extern "C" { pub fn igBullet(); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igBeginCombo( label: *const cty::c_char, @@ -2327,7 +2492,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igComboStr_arr( + pub fn igCombo_Str_arr( label: *const cty::c_char, current_item: *mut cty::c_int, items: *const *const cty::c_char, @@ -2337,7 +2502,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igComboStr( + pub fn igCombo_Str( label: *const cty::c_char, current_item: *mut cty::c_int, items_separated_by_zeros: *const cty::c_char, @@ -2346,7 +2511,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igComboFnBoolPtr( + pub fn igCombo_FnBoolPtr( label: *const cty::c_char, current_item: *mut cty::c_int, items_getter: ::core::option::Option< @@ -2864,23 +3029,23 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeStr(label: *const cty::c_char) -> bool; + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeStrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodePtr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeExStr(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeExStrStr( + pub fn igTreeNodeEx_StrStr( str_id: *const cty::c_char, flags: ImGuiTreeNodeFlags, fmt: *const cty::c_char, @@ -2889,7 +3054,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeExPtr( + pub fn igTreeNodeEx_Ptr( ptr_id: *const cty::c_void, flags: ImGuiTreeNodeFlags, fmt: *const cty::c_char, @@ -2898,11 +3063,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreePushStr(str_id: *const cty::c_char); + pub fn igTreePush_Str(str_id: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreePushPtr(ptr_id: *const cty::c_void); + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -2914,14 +3079,14 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCollapsingHeaderTreeNodeFlags( + pub fn igCollapsingHeader_TreeNodeFlags( label: *const cty::c_char, flags: ImGuiTreeNodeFlags, ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCollapsingHeaderBoolPtr( + pub fn igCollapsingHeader_BoolPtr( label: *const cty::c_char, p_visible: *mut bool, flags: ImGuiTreeNodeFlags, @@ -2933,7 +3098,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSelectableBool( + pub fn igSelectable_Bool( label: *const cty::c_char, selected: bool, flags: ImGuiSelectableFlags, @@ -2942,7 +3107,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSelectableBoolPtr( + pub fn igSelectable_BoolPtr( label: *const cty::c_char, p_selected: *mut bool, flags: ImGuiSelectableFlags, @@ -2959,7 +3124,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igListBoxStr_arr( + pub fn igListBox_Str_arr( label: *const cty::c_char, current_item: *mut cty::c_int, items: *const *const cty::c_char, @@ -2969,7 +3134,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igListBoxFnBoolPtr( + pub fn igListBox_FnBoolPtr( label: *const cty::c_char, current_item: *mut cty::c_int, items_getter: ::core::option::Option< @@ -2986,7 +3151,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotLinesFloatPtr( + pub fn igPlotLines_FloatPtr( label: *const cty::c_char, values: *const f32, values_count: cty::c_int, @@ -3000,7 +3165,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotLinesFnFloatPtr( + pub fn igPlotLines_FnFloatPtr( label: *const cty::c_char, values_getter: ::core::option::Option< unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, @@ -3016,7 +3181,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotHistogramFloatPtr( + pub fn igPlotHistogram_FloatPtr( label: *const cty::c_char, values: *const f32, values_count: cty::c_int, @@ -3030,7 +3195,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotHistogramFnFloatPtr( + pub fn igPlotHistogram_FnFloatPtr( label: *const cty::c_char, values_getter: ::core::option::Option< unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, @@ -3046,19 +3211,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValueBool(prefix: *const cty::c_char, b: bool); + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValueInt(prefix: *const cty::c_char, v: cty::c_int); + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValueUint(prefix: *const cty::c_char, v: cty::c_uint); + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValueFloat(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -3086,7 +3251,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMenuItemBool( + pub fn igMenuItem_Bool( label: *const cty::c_char, shortcut: *const cty::c_char, selected: bool, @@ -3095,7 +3260,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMenuItemBoolPtr( + pub fn igMenuItem_BoolPtr( label: *const cty::c_char, shortcut: *const cty::c_char, p_selected: *mut bool, @@ -3132,11 +3297,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igOpenPopupStr(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igOpenPopupID(id: ImGuiID, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -3468,27 +3633,27 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsRectVisibleNil(size: ImVec2) -> bool; + pub fn igGetBackgroundDrawList() -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsRectVisibleVec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; + pub fn igGetForegroundDrawList() -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetTime() -> f64; + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFrameCount() -> cty::c_int; + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetBackgroundDrawList() -> *mut ImDrawList; + pub fn igGetTime() -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetForegroundDrawList() -> *mut ImDrawList; + pub fn igGetFrameCount() -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -3556,28 +3721,27 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetKeyIndex(imgui_key: ImGuiKey) -> cty::c_int; + pub fn igIsKeyDown(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyDown(user_key_index: cty::c_int) -> bool; + pub fn igIsKeyPressed(key: ImGuiKey, repeat: bool) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyPressed(user_key_index: cty::c_int, repeat: bool) -> bool; + pub fn igIsKeyReleased(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyReleased(user_key_index: cty::c_int) -> bool; + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetKeyPressedAmount(key_index: cty::c_int, repeat_delay: f32, rate: f32) - -> cty::c_int; + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCaptureKeyboardFromApp(want_capture_keyboard_value: bool); + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -3641,7 +3805,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCaptureMouseFromApp(want_capture_mouse_value: bool); + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -3668,6 +3832,10 @@ extern "C" { pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igDebugCheckVersionAndDataLayout( version_str: *const cty::c_char, @@ -3716,6 +3884,30 @@ extern "C" { pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); } @@ -3729,7 +3921,17 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -3872,7 +4074,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextRange_ImGuiTextRangeNil() -> *mut ImGuiTextRange; + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -3880,7 +4082,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextRange_ImGuiTextRangeStr( + pub fn ImGuiTextRange_ImGuiTextRange_Str( _b: *const cty::c_char, _e: *const cty::c_char, ) -> *mut ImGuiTextRange; @@ -3943,7 +4145,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairInt( + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( _key: ImGuiID, _val_i: cty::c_int, ) -> *mut ImGuiStoragePair; @@ -3954,14 +4156,14 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairFloat( + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( _key: ImGuiID, _val_f: f32, ) -> *mut ImGuiStoragePair; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairPtr( + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( _key: ImGuiID, _val_p: *mut cty::c_void, ) -> *mut ImGuiStoragePair; @@ -4080,7 +4282,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorNil() -> *mut ImColor; + pub fn ImColor_ImColor_Nil() -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -4088,24 +4290,24 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorInt( - r: cty::c_int, - g: cty::c_int, - b: cty::c_int, - a: cty::c_int, - ) -> *mut ImColor; + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorU32(rgba: ImU32) -> *mut ImColor; + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorFloat(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; + pub fn ImColor_ImColor_Int( + r: cty::c_int, + g: cty::c_int, + b: cty::c_int, + a: cty::c_int, + ) -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorVec4(col: ImVec4) -> *mut ImColor; + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -4165,7 +4367,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_ImDrawList(shared_data: *const ImDrawListSharedData) -> *mut ImDrawList; + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -4337,7 +4539,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddTextVec2( + pub fn ImDrawList_AddText_Vec2( self_: *mut ImDrawList, pos: ImVec2, col: ImU32, @@ -4347,7 +4549,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddTextFontPtr( + pub fn ImDrawList_AddText_FontPtr( self_: *mut ImDrawList, font: *const ImFont, font_size: f32, @@ -4867,6 +5069,10 @@ extern "C" { pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; } @@ -5082,6 +5288,18 @@ extern "C" { pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igLogText(fmt: *const cty::c_char, ...); } diff --git a/imgui-sys/src/wasm_docking_bindings.rs b/imgui-sys/src/wasm_docking_bindings.rs index 01373bd50..29c531cdb 100644 --- a/imgui-sys/src/wasm_docking_bindings.rs +++ b/imgui-sys/src/wasm_docking_bindings.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.1 */ +/* automatically generated by rust-bindgen 0.63.0 */ #![allow(nonstandard_style, clippy::all)] @@ -82,8 +82,6 @@ where } } } -pub type __int64_t = cty::c_long; -pub type __uint64_t = cty::c_ulong; pub type __off_t = cty::c_long; pub type __off64_t = cty::c_long; pub type FILE = _IO_FILE; @@ -147,20 +145,34 @@ impl Default for _IO_FILE { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImGuiDockNodeSettings { +pub struct ImGuiDockRequest { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImGuiDockRequest { +pub struct ImGuiDockNodeSettings { _unused: [u8; 0], } +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_const_charPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *const cty::c_char, +} +impl Default for ImVector_const_charPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} pub type ImGuiCol = cty::c_int; pub type ImGuiCond = cty::c_int; pub type ImGuiDataType = cty::c_int; pub type ImGuiDir = cty::c_int; -pub type ImGuiKey = cty::c_int; -pub type ImGuiNavInput = cty::c_int; pub type ImGuiMouseButton = cty::c_int; pub type ImGuiMouseCursor = cty::c_int; pub type ImGuiSortDirection = cty::c_int; @@ -179,7 +191,7 @@ pub type ImGuiDragDropFlags = cty::c_int; pub type ImGuiFocusedFlags = cty::c_int; pub type ImGuiHoveredFlags = cty::c_int; pub type ImGuiInputTextFlags = cty::c_int; -pub type ImGuiKeyModFlags = cty::c_int; +pub type ImGuiKeyChord = cty::c_int; pub type ImGuiPopupFlags = cty::c_int; pub type ImGuiSelectableFlags = cty::c_int; pub type ImGuiSliderFlags = cty::c_int; @@ -200,8 +212,8 @@ pub type ImS16 = cty::c_short; pub type ImU16 = cty::c_ushort; pub type ImS32 = cty::c_int; pub type ImU32 = cty::c_uint; -pub type ImS64 = i64; -pub type ImU64 = u64; +pub type ImS64 = cty::c_longlong; +pub type ImU64 = cty::c_ulonglong; pub type ImWchar16 = cty::c_ushort; pub type ImWchar32 = cty::c_uint; pub type ImWchar = ImWchar32; @@ -216,872 +228,19 @@ pub type ImGuiMemAllocFunc = ::core::option::Option< pub type ImGuiMemFreeFunc = ::core::option::Option< unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), >; -pub type ImDrawCallback = ::core::option::Option< - unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), ->; -pub type ImGuiDataAuthority = cty::c_int; -pub type ImGuiLayoutType = cty::c_int; -pub type ImGuiActivateFlags = cty::c_int; -pub type ImGuiItemFlags = cty::c_int; -pub type ImGuiItemStatusFlags = cty::c_int; -pub type ImGuiOldColumnFlags = cty::c_int; -pub type ImGuiNavHighlightFlags = cty::c_int; -pub type ImGuiNavDirSourceFlags = cty::c_int; -pub type ImGuiNavMoveFlags = cty::c_int; -pub type ImGuiNextItemDataFlags = cty::c_int; -pub type ImGuiNextWindowDataFlags = cty::c_int; -pub type ImGuiScrollFlags = cty::c_int; -pub type ImGuiSeparatorFlags = cty::c_int; -pub type ImGuiTextFlags = cty::c_int; -pub type ImGuiTooltipFlags = cty::c_int; -pub type ImGuiErrorLogCallback = ::core::option::Option< - unsafe extern "C" fn(user_data: *mut cty::c_void, fmt: *const cty::c_char, ...), ->; -pub type ImFileHandle = *mut FILE; -pub type ImPoolIdx = cty::c_int; -pub type ImGuiContextHookCallback = ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, hook: *mut ImGuiContextHook), ->; -pub type ImGuiTableColumnIdx = ImS8; -pub type ImGuiTableDrawChannelIdx = ImU8; -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTableSettings { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTableSettings, -} -impl Default for ImVector_ImGuiTableSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImChunkStream_ImGuiTableSettings { - pub Buf: ImVector_ImGuiTableSettings, -} -impl Default for ImChunkStream_ImGuiTableSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiWindowSettings { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiWindowSettings, -} -impl Default for ImVector_ImGuiWindowSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImChunkStream_ImGuiWindowSettings { - pub Buf: ImVector_ImGuiWindowSettings, -} -impl Default for ImChunkStream_ImGuiWindowSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImSpan_ImGuiTableCellData { - pub Data: *mut ImGuiTableCellData, - pub DataEnd: *mut ImGuiTableCellData, -} -impl Default for ImSpan_ImGuiTableCellData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImSpan_ImGuiTableColumn { - pub Data: *mut ImGuiTableColumn, - pub DataEnd: *mut ImGuiTableColumn, -} -impl Default for ImSpan_ImGuiTableColumn { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImSpan_ImGuiTableColumnIdx { - pub Data: *mut ImGuiTableColumnIdx, - pub DataEnd: *mut ImGuiTableColumnIdx, -} -impl Default for ImSpan_ImGuiTableColumnIdx { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawChannel { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawChannel, -} -impl Default for ImVector_ImDrawChannel { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawCmd { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawCmd, -} -impl Default for ImVector_ImDrawCmd { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawIdx { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawIdx, -} -impl Default for ImVector_ImDrawIdx { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawListPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImDrawList, -} -impl Default for ImVector_ImDrawListPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImDrawVert { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImDrawVert, -} -impl Default for ImVector_ImDrawVert { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImFont, -} -impl Default for ImVector_ImFontPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec2 { + pub x: f32, + pub y: f32, } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontAtlasCustomRect { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontAtlasCustomRect, -} -impl Default for ImVector_ImFontAtlasCustomRect { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontConfig { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontConfig, -} -impl Default for ImVector_ImFontConfig { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImFontGlyph { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImFontGlyph, -} -impl Default for ImVector_ImFontGlyph { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiColorMod { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiColorMod, -} -impl Default for ImVector_ImGuiColorMod { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiContextHook { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiContextHook, -} -impl Default for ImVector_ImGuiContextHook { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiDockNodeSettings { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiDockNodeSettings, -} -impl Default for ImVector_ImGuiDockNodeSettings { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiDockRequest { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiDockRequest, -} -impl Default for ImVector_ImGuiDockRequest { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiGroupData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiGroupData, -} -impl Default for ImVector_ImGuiGroupData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiID { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiID, -} -impl Default for ImVector_ImGuiID { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiItemFlags { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiItemFlags, -} -impl Default for ImVector_ImGuiItemFlags { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiListClipperData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiListClipperData, -} -impl Default for ImVector_ImGuiListClipperData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiListClipperRange { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiListClipperRange, -} -impl Default for ImVector_ImGuiListClipperRange { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiOldColumnData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiOldColumnData, -} -impl Default for ImVector_ImGuiOldColumnData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiOldColumns { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiOldColumns, -} -impl Default for ImVector_ImGuiOldColumns { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiPlatformMonitor { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiPlatformMonitor, -} -impl Default for ImVector_ImGuiPlatformMonitor { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiPopupData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiPopupData, -} -impl Default for ImVector_ImGuiPopupData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiPtrOrIndex { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiPtrOrIndex, -} -impl Default for ImVector_ImGuiPtrOrIndex { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiSettingsHandler { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiSettingsHandler, -} -impl Default for ImVector_ImGuiSettingsHandler { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiShrinkWidthItem { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiShrinkWidthItem, -} -impl Default for ImVector_ImGuiShrinkWidthItem { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiStackLevelInfo { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiStackLevelInfo, -} -impl Default for ImVector_ImGuiStackLevelInfo { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiStoragePair { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiStoragePair, -} -impl Default for ImVector_ImGuiStoragePair { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiStyleMod { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiStyleMod, -} -impl Default for ImVector_ImGuiStyleMod { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTabItem { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTabItem, -} -impl Default for ImVector_ImGuiTabItem { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTableColumnSortSpecs { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTableColumnSortSpecs, -} -impl Default for ImVector_ImGuiTableColumnSortSpecs { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTableTempData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTableTempData, -} -impl Default for ImVector_ImGuiTableTempData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTextRange { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTextRange, -} -impl Default for ImVector_ImGuiTextRange { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiViewportPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImGuiViewport, -} -impl Default for ImVector_ImGuiViewportPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiViewportPPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImGuiViewportP, -} -impl Default for ImVector_ImGuiViewportPPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiWindowPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *mut ImGuiWindow, -} -impl Default for ImVector_ImGuiWindowPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiWindowStackData { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiWindowStackData, -} -impl Default for ImVector_ImGuiWindowStackData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImTextureID { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImTextureID, -} -impl Default for ImVector_ImTextureID { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImU32 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImU32, -} -impl Default for ImVector_ImU32 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImVec2 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImVec2, -} -impl Default for ImVector_ImVec2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImVec4 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImVec4, -} -impl Default for ImVector_ImVec4 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImWchar { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImWchar, -} -impl Default for ImVector_ImWchar { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_char { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut cty::c_char, -} -impl Default for ImVector_char { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_const_charPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut *const cty::c_char, -} -impl Default for ImVector_const_charPtr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_float { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut f32, -} -impl Default for ImVector_float { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_unsigned_char { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut cty::c_uchar, -} -impl Default for ImVector_unsigned_char { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImVec2 { - pub x: f32, - pub y: f32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImVec4 { - pub x: f32, - pub y: f32, - pub z: f32, - pub w: f32, +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec4 { + pub x: f32, + pub y: f32, + pub z: f32, + pub w: f32, } pub const ImGuiWindowFlags_None: ImGuiWindowFlags_ = 0; pub const ImGuiWindowFlags_NoTitleBar: ImGuiWindowFlags_ = 1; @@ -1137,6 +296,7 @@ pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536; pub const ImGuiInputTextFlags_CharsScientific: ImGuiInputTextFlags_ = 131072; pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags_ = 262144; pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags_ = 524288; +pub const ImGuiInputTextFlags_EscapeClearsAll: ImGuiInputTextFlags_ = 1048576; pub type ImGuiInputTextFlags_ = cty::c_uint; pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags_ = 0; pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags_ = 1; @@ -1297,8 +457,12 @@ pub const ImGuiHoveredFlags_AllowWhenBlockedByPopup: ImGuiHoveredFlags_ = 32; pub const ImGuiHoveredFlags_AllowWhenBlockedByActiveItem: ImGuiHoveredFlags_ = 128; pub const ImGuiHoveredFlags_AllowWhenOverlapped: ImGuiHoveredFlags_ = 256; pub const ImGuiHoveredFlags_AllowWhenDisabled: ImGuiHoveredFlags_ = 512; +pub const ImGuiHoveredFlags_NoNavOverride: ImGuiHoveredFlags_ = 1024; pub const ImGuiHoveredFlags_RectOnly: ImGuiHoveredFlags_ = 416; pub const ImGuiHoveredFlags_RootAndChildWindows: ImGuiHoveredFlags_ = 3; +pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags_ = 2048; +pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags_ = 4096; +pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags_ = 8192; pub type ImGuiHoveredFlags_ = cty::c_uint; pub const ImGuiDockNodeFlags_None: ImGuiDockNodeFlags_ = 0; pub const ImGuiDockNodeFlags_KeepAliveOnly: ImGuiDockNodeFlags_ = 1; @@ -1343,59 +507,179 @@ pub const ImGuiSortDirection_None: ImGuiSortDirection_ = 0; pub const ImGuiSortDirection_Ascending: ImGuiSortDirection_ = 1; pub const ImGuiSortDirection_Descending: ImGuiSortDirection_ = 2; pub type ImGuiSortDirection_ = cty::c_uint; -pub const ImGuiKey_Tab: ImGuiKey_ = 0; -pub const ImGuiKey_LeftArrow: ImGuiKey_ = 1; -pub const ImGuiKey_RightArrow: ImGuiKey_ = 2; -pub const ImGuiKey_UpArrow: ImGuiKey_ = 3; -pub const ImGuiKey_DownArrow: ImGuiKey_ = 4; -pub const ImGuiKey_PageUp: ImGuiKey_ = 5; -pub const ImGuiKey_PageDown: ImGuiKey_ = 6; -pub const ImGuiKey_Home: ImGuiKey_ = 7; -pub const ImGuiKey_End: ImGuiKey_ = 8; -pub const ImGuiKey_Insert: ImGuiKey_ = 9; -pub const ImGuiKey_Delete: ImGuiKey_ = 10; -pub const ImGuiKey_Backspace: ImGuiKey_ = 11; -pub const ImGuiKey_Space: ImGuiKey_ = 12; -pub const ImGuiKey_Enter: ImGuiKey_ = 13; -pub const ImGuiKey_Escape: ImGuiKey_ = 14; -pub const ImGuiKey_KeyPadEnter: ImGuiKey_ = 15; -pub const ImGuiKey_A: ImGuiKey_ = 16; -pub const ImGuiKey_C: ImGuiKey_ = 17; -pub const ImGuiKey_V: ImGuiKey_ = 18; -pub const ImGuiKey_X: ImGuiKey_ = 19; -pub const ImGuiKey_Y: ImGuiKey_ = 20; -pub const ImGuiKey_Z: ImGuiKey_ = 21; -pub const ImGuiKey_COUNT: ImGuiKey_ = 22; -pub type ImGuiKey_ = cty::c_uint; -pub const ImGuiKeyModFlags_None: ImGuiKeyModFlags_ = 0; -pub const ImGuiKeyModFlags_Ctrl: ImGuiKeyModFlags_ = 1; -pub const ImGuiKeyModFlags_Shift: ImGuiKeyModFlags_ = 2; -pub const ImGuiKeyModFlags_Alt: ImGuiKeyModFlags_ = 4; -pub const ImGuiKeyModFlags_Super: ImGuiKeyModFlags_ = 8; -pub type ImGuiKeyModFlags_ = cty::c_uint; -pub const ImGuiNavInput_Activate: ImGuiNavInput_ = 0; -pub const ImGuiNavInput_Cancel: ImGuiNavInput_ = 1; -pub const ImGuiNavInput_Input: ImGuiNavInput_ = 2; -pub const ImGuiNavInput_Menu: ImGuiNavInput_ = 3; -pub const ImGuiNavInput_DpadLeft: ImGuiNavInput_ = 4; -pub const ImGuiNavInput_DpadRight: ImGuiNavInput_ = 5; -pub const ImGuiNavInput_DpadUp: ImGuiNavInput_ = 6; -pub const ImGuiNavInput_DpadDown: ImGuiNavInput_ = 7; -pub const ImGuiNavInput_LStickLeft: ImGuiNavInput_ = 8; -pub const ImGuiNavInput_LStickRight: ImGuiNavInput_ = 9; -pub const ImGuiNavInput_LStickUp: ImGuiNavInput_ = 10; -pub const ImGuiNavInput_LStickDown: ImGuiNavInput_ = 11; -pub const ImGuiNavInput_FocusPrev: ImGuiNavInput_ = 12; -pub const ImGuiNavInput_FocusNext: ImGuiNavInput_ = 13; -pub const ImGuiNavInput_TweakSlow: ImGuiNavInput_ = 14; -pub const ImGuiNavInput_TweakFast: ImGuiNavInput_ = 15; -pub const ImGuiNavInput_KeyLeft_: ImGuiNavInput_ = 16; -pub const ImGuiNavInput_KeyRight_: ImGuiNavInput_ = 17; -pub const ImGuiNavInput_KeyUp_: ImGuiNavInput_ = 18; -pub const ImGuiNavInput_KeyDown_: ImGuiNavInput_ = 19; -pub const ImGuiNavInput_COUNT: ImGuiNavInput_ = 20; -pub const ImGuiNavInput_InternalStart_: ImGuiNavInput_ = 16; -pub type ImGuiNavInput_ = cty::c_uint; +pub const ImGuiKey_None: ImGuiKey = 0; +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_Apostrophe: ImGuiKey = 584; +pub const ImGuiKey_Comma: ImGuiKey = 585; +pub const ImGuiKey_Minus: ImGuiKey = 586; +pub const ImGuiKey_Period: ImGuiKey = 587; +pub const ImGuiKey_Slash: ImGuiKey = 588; +pub const ImGuiKey_Semicolon: ImGuiKey = 589; +pub const ImGuiKey_Equal: ImGuiKey = 590; +pub const ImGuiKey_LeftBracket: ImGuiKey = 591; +pub const ImGuiKey_Backslash: ImGuiKey = 592; +pub const ImGuiKey_RightBracket: ImGuiKey = 593; +pub const ImGuiKey_GraveAccent: ImGuiKey = 594; +pub const ImGuiKey_CapsLock: ImGuiKey = 595; +pub const ImGuiKey_ScrollLock: ImGuiKey = 596; +pub const ImGuiKey_NumLock: ImGuiKey = 597; +pub const ImGuiKey_PrintScreen: ImGuiKey = 598; +pub const ImGuiKey_Pause: ImGuiKey = 599; +pub const ImGuiKey_Keypad0: ImGuiKey = 600; +pub const ImGuiKey_Keypad1: ImGuiKey = 601; +pub const ImGuiKey_Keypad2: ImGuiKey = 602; +pub const ImGuiKey_Keypad3: ImGuiKey = 603; +pub const ImGuiKey_Keypad4: ImGuiKey = 604; +pub const ImGuiKey_Keypad5: ImGuiKey = 605; +pub const ImGuiKey_Keypad6: ImGuiKey = 606; +pub const ImGuiKey_Keypad7: ImGuiKey = 607; +pub const ImGuiKey_Keypad8: ImGuiKey = 608; +pub const ImGuiKey_Keypad9: ImGuiKey = 609; +pub const ImGuiKey_KeypadDecimal: ImGuiKey = 610; +pub const ImGuiKey_KeypadDivide: ImGuiKey = 611; +pub const ImGuiKey_KeypadMultiply: ImGuiKey = 612; +pub const ImGuiKey_KeypadSubtract: ImGuiKey = 613; +pub const ImGuiKey_KeypadAdd: ImGuiKey = 614; +pub const ImGuiKey_KeypadEnter: ImGuiKey = 615; +pub const ImGuiKey_KeypadEqual: ImGuiKey = 616; +pub const ImGuiKey_GamepadStart: ImGuiKey = 617; +pub const ImGuiKey_GamepadBack: ImGuiKey = 618; +pub const ImGuiKey_GamepadFaceLeft: ImGuiKey = 619; +pub const ImGuiKey_GamepadFaceRight: ImGuiKey = 620; +pub const ImGuiKey_GamepadFaceUp: ImGuiKey = 621; +pub const ImGuiKey_GamepadFaceDown: ImGuiKey = 622; +pub const ImGuiKey_GamepadDpadLeft: ImGuiKey = 623; +pub const ImGuiKey_GamepadDpadRight: ImGuiKey = 624; +pub const ImGuiKey_GamepadDpadUp: ImGuiKey = 625; +pub const ImGuiKey_GamepadDpadDown: ImGuiKey = 626; +pub const ImGuiKey_GamepadL1: ImGuiKey = 627; +pub const ImGuiKey_GamepadR1: ImGuiKey = 628; +pub const ImGuiKey_GamepadL2: ImGuiKey = 629; +pub const ImGuiKey_GamepadR2: ImGuiKey = 630; +pub const ImGuiKey_GamepadL3: ImGuiKey = 631; +pub const ImGuiKey_GamepadR3: ImGuiKey = 632; +pub const ImGuiKey_GamepadLStickLeft: ImGuiKey = 633; +pub const ImGuiKey_GamepadLStickRight: ImGuiKey = 634; +pub const ImGuiKey_GamepadLStickUp: ImGuiKey = 635; +pub const ImGuiKey_GamepadLStickDown: ImGuiKey = 636; +pub const ImGuiKey_GamepadRStickLeft: ImGuiKey = 637; +pub const ImGuiKey_GamepadRStickRight: ImGuiKey = 638; +pub const ImGuiKey_GamepadRStickUp: ImGuiKey = 639; +pub const ImGuiKey_GamepadRStickDown: ImGuiKey = 640; +pub const ImGuiKey_MouseLeft: ImGuiKey = 641; +pub const ImGuiKey_MouseRight: ImGuiKey = 642; +pub const ImGuiKey_MouseMiddle: ImGuiKey = 643; +pub const ImGuiKey_MouseX1: ImGuiKey = 644; +pub const ImGuiKey_MouseX2: ImGuiKey = 645; +pub const ImGuiKey_MouseWheelX: ImGuiKey = 646; +pub const ImGuiKey_MouseWheelY: ImGuiKey = 647; +pub const ImGuiKey_ReservedForModCtrl: ImGuiKey = 648; +pub const ImGuiKey_ReservedForModShift: ImGuiKey = 649; +pub const ImGuiKey_ReservedForModAlt: ImGuiKey = 650; +pub const ImGuiKey_ReservedForModSuper: ImGuiKey = 651; +pub const ImGuiKey_COUNT: ImGuiKey = 652; +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 ImGuiMod_Shortcut: ImGuiKey = 4096; +pub const ImGuiKey_NamedKey_BEGIN: ImGuiKey = 512; +pub const ImGuiKey_NamedKey_END: ImGuiKey = 652; +pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 140; +pub const ImGuiKey_KeysData_SIZE: ImGuiKey = 652; +pub const ImGuiKey_KeysData_OFFSET: ImGuiKey = 0; +pub type ImGuiKey = cty::c_uint; +pub const ImGuiNavInput_Activate: ImGuiNavInput = 0; +pub const ImGuiNavInput_Cancel: ImGuiNavInput = 1; +pub const ImGuiNavInput_Input: ImGuiNavInput = 2; +pub const ImGuiNavInput_Menu: ImGuiNavInput = 3; +pub const ImGuiNavInput_DpadLeft: ImGuiNavInput = 4; +pub const ImGuiNavInput_DpadRight: ImGuiNavInput = 5; +pub const ImGuiNavInput_DpadUp: ImGuiNavInput = 6; +pub const ImGuiNavInput_DpadDown: ImGuiNavInput = 7; +pub const ImGuiNavInput_LStickLeft: ImGuiNavInput = 8; +pub const ImGuiNavInput_LStickRight: ImGuiNavInput = 9; +pub const ImGuiNavInput_LStickUp: ImGuiNavInput = 10; +pub const ImGuiNavInput_LStickDown: ImGuiNavInput = 11; +pub const ImGuiNavInput_FocusPrev: ImGuiNavInput = 12; +pub const ImGuiNavInput_FocusNext: ImGuiNavInput = 13; +pub const ImGuiNavInput_TweakSlow: ImGuiNavInput = 14; +pub const ImGuiNavInput_TweakFast: ImGuiNavInput = 15; +pub const ImGuiNavInput_COUNT: ImGuiNavInput = 16; +pub type ImGuiNavInput = cty::c_uint; pub const ImGuiConfigFlags_None: ImGuiConfigFlags_ = 0; pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags_ = 1; pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags_ = 2; @@ -1572,50 +856,963 @@ pub const ImGuiCond_Appearing: ImGuiCond_ = 8; pub type ImGuiCond_ = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiStyle { - pub Alpha: f32, - pub DisabledAlpha: f32, - pub WindowPadding: ImVec2, - pub WindowRounding: f32, - pub WindowBorderSize: 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 GrabMinSize: f32, - pub GrabRounding: f32, - pub LogSliderDeadzone: f32, - pub TabRounding: f32, - pub TabBorderSize: f32, - pub TabMinWidthForCloseButton: f32, - pub ColorButtonPosition: ImGuiDir, - pub ButtonTextAlign: ImVec2, - pub SelectableTextAlign: ImVec2, - pub DisplayWindowPadding: ImVec2, - pub DisplaySafeAreaPadding: ImVec2, - pub MouseCursorScale: f32, - pub AntiAliasedLines: bool, - pub AntiAliasedLinesUseTex: bool, - pub AntiAliasedFill: bool, - pub CurveTessellationTol: f32, - pub CircleTessellationMaxError: f32, - pub Colors: [ImVec4; 55usize], +pub struct ImGuiStyle { + pub Alpha: f32, + pub DisabledAlpha: f32, + pub WindowPadding: ImVec2, + pub WindowRounding: f32, + pub WindowBorderSize: 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 GrabMinSize: f32, + pub GrabRounding: f32, + pub LogSliderDeadzone: f32, + pub TabRounding: f32, + pub TabBorderSize: f32, + pub TabMinWidthForCloseButton: f32, + pub ColorButtonPosition: ImGuiDir, + pub ButtonTextAlign: ImVec2, + pub SelectableTextAlign: ImVec2, + pub DisplayWindowPadding: ImVec2, + pub DisplaySafeAreaPadding: ImVec2, + pub MouseCursorScale: f32, + pub AntiAliasedLines: bool, + pub AntiAliasedLinesUseTex: bool, + pub AntiAliasedFill: bool, + pub CurveTessellationTol: f32, + pub CircleTessellationMaxError: f32, + pub Colors: [ImVec4; 55usize], +} +impl Default for ImGuiStyle { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiKeyData { + pub Down: bool, + pub DownDuration: f32, + pub DownDurationPrev: f32, + pub AnalogValue: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImWchar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImWchar, +} +impl Default for ImVector_ImWchar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiIO { + pub ConfigFlags: ImGuiConfigFlags, + pub BackendFlags: ImGuiBackendFlags, + pub DisplaySize: ImVec2, + pub DeltaTime: f32, + pub IniSavingRate: f32, + pub IniFilename: *const cty::c_char, + pub LogFilename: *const cty::c_char, + pub MouseDoubleClickTime: f32, + pub MouseDoubleClickMaxDist: f32, + pub MouseDragThreshold: f32, + pub KeyRepeatDelay: f32, + pub KeyRepeatRate: f32, + pub HoverDelayNormal: f32, + pub HoverDelayShort: f32, + pub UserData: *mut cty::c_void, + pub Fonts: *mut ImFontAtlas, + pub FontGlobalScale: f32, + pub FontAllowUserScaling: bool, + pub FontDefault: *mut ImFont, + pub DisplayFramebufferScale: ImVec2, + pub ConfigDockingNoSplit: bool, + pub ConfigDockingWithShift: bool, + pub ConfigDockingAlwaysTabBar: bool, + pub ConfigDockingTransparentPayload: bool, + pub ConfigViewportsNoAutoMerge: bool, + pub ConfigViewportsNoTaskBarIcon: bool, + pub ConfigViewportsNoDecoration: bool, + pub ConfigViewportsNoDefaultParent: bool, + pub MouseDrawCursor: bool, + pub ConfigMacOSXBehaviors: bool, + pub ConfigInputTrickleEventQueue: bool, + pub ConfigInputTextCursorBlink: bool, + pub ConfigInputTextEnterKeepActive: bool, + pub ConfigDragClickToInputText: bool, + pub ConfigWindowsResizeFromEdges: bool, + pub ConfigWindowsMoveFromTitleBarOnly: bool, + pub ConfigMemoryCompactTimer: f32, + pub BackendPlatformName: *const cty::c_char, + pub BackendRendererName: *const cty::c_char, + pub BackendPlatformUserData: *mut cty::c_void, + pub BackendRendererUserData: *mut cty::c_void, + pub BackendLanguageUserData: *mut cty::c_void, + pub GetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void) -> *const cty::c_char, + >, + pub SetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), + >, + pub ClipboardUserData: *mut cty::c_void, + pub SetPlatformImeDataFn: ::core::option::Option< + unsafe extern "C" fn(viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData), + >, + pub _UnusedPadding: *mut cty::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: cty::c_int, + pub MetricsRenderIndices: cty::c_int, + pub MetricsRenderWindows: cty::c_int, + pub MetricsActiveWindows: cty::c_int, + pub MetricsActiveAllocations: cty::c_int, + pub MouseDelta: ImVec2, + pub KeyMap: [cty::c_int; 652usize], + pub KeysDown: [bool; 652usize], + pub NavInputs: [f32; 16usize], + pub MousePos: ImVec2, + pub MouseDown: [bool; 5usize], + pub MouseWheel: f32, + pub MouseWheelH: f32, + pub MouseHoveredViewport: ImGuiID, + pub KeyCtrl: bool, + pub KeyShift: bool, + pub KeyAlt: bool, + pub KeySuper: bool, + pub KeyMods: ImGuiKeyChord, + pub KeysData: [ImGuiKeyData; 652usize], + pub WantCaptureMouseUnlessPopupClose: bool, + pub MousePosPrev: ImVec2, + pub MouseClickedPos: [ImVec2; 5usize], + pub MouseClickedTime: [f64; 5usize], + pub MouseClicked: [bool; 5usize], + pub MouseDoubleClicked: [bool; 5usize], + pub MouseClickedCount: [ImU16; 5usize], + pub MouseClickedLastCount: [ImU16; 5usize], + pub MouseReleased: [bool; 5usize], + pub MouseDownOwned: [bool; 5usize], + pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], + pub MouseDownDuration: [f32; 5usize], + pub MouseDownDurationPrev: [f32; 5usize], + pub MouseDragMaxDistanceAbs: [ImVec2; 5usize], + pub MouseDragMaxDistanceSqr: [f32; 5usize], + pub PenPressure: f32, + pub AppFocusLost: bool, + pub AppAcceptingEvents: bool, + pub BackendUsingLegacyKeyArrays: ImS8, + pub BackendUsingLegacyNavInputArray: bool, + pub InputQueueSurrogate: ImWchar16, + pub InputQueueCharacters: ImVector_ImWchar, +} +impl Default for ImGuiIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputTextCallbackData { + pub EventFlag: ImGuiInputTextFlags, + pub Flags: ImGuiInputTextFlags, + pub UserData: *mut cty::c_void, + pub EventChar: ImWchar, + pub EventKey: ImGuiKey, + pub Buf: *mut cty::c_char, + pub BufTextLen: cty::c_int, + pub BufSize: cty::c_int, + pub BufDirty: bool, + pub CursorPos: cty::c_int, + pub SelectionStart: cty::c_int, + pub SelectionEnd: cty::c_int, +} +impl Default for ImGuiInputTextCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiSizeCallbackData { + pub UserData: *mut cty::c_void, + pub Pos: ImVec2, + pub CurrentSize: ImVec2, + pub DesiredSize: ImVec2, +} +impl Default for ImGuiSizeCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowClass { + pub ClassId: ImGuiID, + pub ParentViewportId: ImGuiID, + pub ViewportFlagsOverrideSet: ImGuiViewportFlags, + pub ViewportFlagsOverrideClear: ImGuiViewportFlags, + pub TabItemFlagsOverrideSet: ImGuiTabItemFlags, + pub DockNodeFlagsOverrideSet: ImGuiDockNodeFlags, + pub DockingAlwaysTabBar: bool, + pub DockingAllowUnclassed: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPayload { + pub Data: *mut cty::c_void, + pub DataSize: cty::c_int, + pub SourceId: ImGuiID, + pub SourceParentId: ImGuiID, + pub DataFrameCount: cty::c_int, + pub DataType: [cty::c_char; 33usize], + pub Preview: bool, + pub Delivery: bool, +} +impl Default for ImGuiPayload { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableColumnSortSpecs { + pub ColumnUserID: ImGuiID, + pub ColumnIndex: ImS16, + pub SortOrder: ImS16, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl ImGuiTableColumnSortSpecs { + #[inline] + pub fn SortDirection(&self) -> ImGuiSortDirection { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImGuiSortDirection) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImGuiSortDirection, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableSortSpecs { + pub Specs: *const ImGuiTableColumnSortSpecs, + pub SpecsCount: cty::c_int, + pub SpecsDirty: bool, +} +impl Default for ImGuiTableSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiOnceUponAFrame { + pub RefFrame: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextRange { + pub b: *const cty::c_char, + pub e: *const cty::c_char, +} +impl Default for ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTextRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTextRange, +} +impl Default for ImVector_ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextFilter { + pub InputBuf: [cty::c_char; 256usize], + pub Filters: ImVector_ImGuiTextRange, + pub CountGrep: cty::c_int, +} +impl Default for ImGuiTextFilter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_char, +} +impl Default for ImVector_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextBuffer { + pub Buf: ImVector_char, +} +impl Default for ImGuiTextBuffer { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiStoragePair { + pub key: ImGuiID, + pub __bindgen_anon_1: ImGuiStoragePair__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiStoragePair__bindgen_ty_1 { + pub val_i: cty::c_int, + pub val_f: f32, + pub val_p: *mut cty::c_void, +} +impl Default for ImGuiStoragePair__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiStoragePair__bindgen_ty_1 {{ union }}") + } +} +impl Default for ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!( + f, + "ImGuiStoragePair {{ key: {:?}, __bindgen_anon_1: {:?} }}", + self.key, self.__bindgen_anon_1 + ) + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStoragePair { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStoragePair, +} +impl Default for ImVector_ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStorage { + pub Data: ImVector_ImGuiStoragePair, +} +impl Default for ImGuiStorage { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiListClipper { + pub DisplayStart: cty::c_int, + pub DisplayEnd: cty::c_int, + pub ItemsCount: cty::c_int, + pub ItemsHeight: f32, + pub StartPosY: f32, + pub TempData: *mut cty::c_void, +} +impl Default for ImGuiListClipper { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImColor { + pub Value: ImVec4, +} +pub type ImDrawCallback = ::core::option::Option< + unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmd { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, + pub IdxOffset: cty::c_uint, + pub ElemCount: cty::c_uint, + pub UserCallback: ImDrawCallback, + pub UserCallbackData: *mut cty::c_void, +} +impl Default for ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImDrawVert { + pub pos: ImVec2, + pub uv: ImVec2, + pub col: ImU32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmdHeader { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, +} +impl Default for ImDrawCmdHeader { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawCmd { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawCmd, +} +impl Default for ImVector_ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawIdx { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawIdx, +} +impl Default for ImVector_ImDrawIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawChannel { + pub _CmdBuffer: ImVector_ImDrawCmd, + pub _IdxBuffer: ImVector_ImDrawIdx, +} +impl Default for ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawChannel { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawChannel, +} +impl Default for ImVector_ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawListSplitter { + pub _Current: cty::c_int, + pub _Count: cty::c_int, + pub _Channels: ImVector_ImDrawChannel, +} +impl Default for ImDrawListSplitter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImDrawFlags_None: ImDrawFlags_ = 0; +pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; +pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; +pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; +pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; +pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; +pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; +pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; +pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; +pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; +pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; +pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; +pub type ImDrawFlags_ = cty::c_uint; +pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; +pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; +pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; +pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; +pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; +pub type ImDrawListFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawVert { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawVert, +} +impl Default for ImVector_ImDrawVert { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec4 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec4, +} +impl Default for ImVector_ImVec4 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImTextureID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImTextureID, +} +impl Default for ImVector_ImTextureID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec2 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec2, +} +impl Default for ImVector_ImVec2 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawList { + pub CmdBuffer: ImVector_ImDrawCmd, + pub IdxBuffer: ImVector_ImDrawIdx, + pub VtxBuffer: ImVector_ImDrawVert, + pub Flags: ImDrawListFlags, + pub _VtxCurrentIdx: cty::c_uint, + pub _Data: *mut ImDrawListSharedData, + pub _OwnerName: *const cty::c_char, + pub _VtxWritePtr: *mut ImDrawVert, + pub _IdxWritePtr: *mut ImDrawIdx, + pub _ClipRectStack: ImVector_ImVec4, + pub _TextureIdStack: ImVector_ImTextureID, + pub _Path: ImVector_ImVec2, + pub _CmdHeader: ImDrawCmdHeader, + pub _Splitter: ImDrawListSplitter, + pub _FringeScale: f32, +} +impl Default for ImDrawList { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawData { + pub Valid: bool, + pub CmdListsCount: cty::c_int, + pub TotalIdxCount: cty::c_int, + pub TotalVtxCount: cty::c_int, + pub CmdLists: *mut *mut ImDrawList, + pub DisplayPos: ImVec2, + pub DisplaySize: ImVec2, + pub FramebufferScale: ImVec2, + pub OwnerViewport: *mut ImGuiViewport, +} +impl Default for ImDrawData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontConfig { + pub FontData: *mut cty::c_void, + pub FontDataSize: cty::c_int, + pub FontDataOwnedByAtlas: bool, + pub FontNo: cty::c_int, + pub SizePixels: f32, + pub OversampleH: cty::c_int, + pub OversampleV: cty::c_int, + pub PixelSnapH: bool, + pub GlyphExtraSpacing: ImVec2, + pub GlyphOffset: ImVec2, + pub GlyphRanges: *const ImWchar, + pub GlyphMinAdvanceX: f32, + pub GlyphMaxAdvanceX: f32, + pub MergeMode: bool, + pub FontBuilderFlags: cty::c_uint, + pub RasterizerMultiply: f32, + pub EllipsisChar: ImWchar, + pub Name: [cty::c_char; 40usize], + pub DstFont: *mut ImFont, +} +impl Default for ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImFontGlyph { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + 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, +} +impl ImFontGlyph { + #[inline] + pub fn Colored(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Colored(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Visible(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_Visible(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Codepoint(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Codepoint(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Colored: cty::c_uint, + Visible: cty::c_uint, + Codepoint: cty::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Colored: u32 = unsafe { ::core::mem::transmute(Colored) }; + Colored as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Visible: u32 = unsafe { ::core::mem::transmute(Visible) }; + Visible as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Codepoint: u32 = unsafe { ::core::mem::transmute(Codepoint) }; + Codepoint as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImU32 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImU32, +} +impl Default for ImVector_ImU32 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImFontGlyphRangesBuilder { + pub UsedChars: ImVector_ImU32, +} +impl Default for ImFontGlyphRangesBuilder { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlasCustomRect { + pub Width: cty::c_ushort, + pub Height: cty::c_ushort, + pub X: cty::c_ushort, + pub Y: cty::c_ushort, + pub GlyphID: cty::c_uint, + pub GlyphAdvanceX: f32, + pub GlyphOffset: ImVec2, + pub Font: *mut ImFont, } -impl Default for ImGuiStyle { +impl Default for ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 type ImFontAtlasFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImFont, +} +impl Default for ImVector_ImFontPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontAtlasCustomRect { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontAtlasCustomRect, +} +impl Default for ImVector_ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontConfig { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontConfig, +} +impl Default for ImVector_ImFontConfig { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1626,105 +1823,46 @@ impl Default for ImGuiStyle { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiIO { - pub ConfigFlags: ImGuiConfigFlags, - pub BackendFlags: ImGuiBackendFlags, - pub DisplaySize: ImVec2, - pub DeltaTime: f32, - pub IniSavingRate: f32, - pub IniFilename: *const cty::c_char, - pub LogFilename: *const cty::c_char, - pub MouseDoubleClickTime: f32, - pub MouseDoubleClickMaxDist: f32, - pub MouseDragThreshold: f32, - pub KeyMap: [cty::c_int; 22usize], - pub KeyRepeatDelay: f32, - pub KeyRepeatRate: f32, - pub UserData: *mut cty::c_void, - pub Fonts: *mut ImFontAtlas, - pub FontGlobalScale: f32, - pub FontAllowUserScaling: bool, - pub FontDefault: *mut ImFont, - pub DisplayFramebufferScale: ImVec2, - pub ConfigDockingNoSplit: bool, - pub ConfigDockingWithShift: bool, - pub ConfigDockingAlwaysTabBar: bool, - pub ConfigDockingTransparentPayload: bool, - pub ConfigViewportsNoAutoMerge: bool, - pub ConfigViewportsNoTaskBarIcon: bool, - pub ConfigViewportsNoDecoration: bool, - pub ConfigViewportsNoDefaultParent: bool, - pub MouseDrawCursor: bool, - pub ConfigMacOSXBehaviors: bool, - pub ConfigInputTextCursorBlink: bool, - pub ConfigDragClickToInputText: bool, - pub ConfigWindowsResizeFromEdges: bool, - pub ConfigWindowsMoveFromTitleBarOnly: bool, - pub ConfigMemoryCompactTimer: f32, - pub BackendPlatformName: *const cty::c_char, - pub BackendRendererName: *const cty::c_char, - pub BackendPlatformUserData: *mut cty::c_void, - pub BackendRendererUserData: *mut cty::c_void, - pub BackendLanguageUserData: *mut cty::c_void, - pub GetClipboardTextFn: ::core::option::Option< - unsafe extern "C" fn(user_data: *mut cty::c_void) -> *const cty::c_char, - >, - pub SetClipboardTextFn: ::core::option::Option< - unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), - >, - pub ClipboardUserData: *mut cty::c_void, - pub MousePos: ImVec2, - pub MouseDown: [bool; 5usize], - pub MouseWheel: f32, - pub MouseWheelH: f32, - pub MouseHoveredViewport: ImGuiID, - pub KeyCtrl: bool, - pub KeyShift: bool, - pub KeyAlt: bool, - pub KeySuper: bool, - pub KeysDown: [bool; 512usize], - pub NavInputs: [f32; 20usize], - 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: cty::c_int, - pub MetricsRenderIndices: cty::c_int, - pub MetricsRenderWindows: cty::c_int, - pub MetricsActiveWindows: cty::c_int, - pub MetricsActiveAllocations: cty::c_int, - pub MouseDelta: ImVec2, - pub WantCaptureMouseUnlessPopupClose: bool, - pub KeyMods: ImGuiKeyModFlags, - pub KeyModsPrev: ImGuiKeyModFlags, - pub MousePosPrev: ImVec2, - pub MouseClickedPos: [ImVec2; 5usize], - pub MouseClickedTime: [f64; 5usize], - pub MouseClicked: [bool; 5usize], - pub MouseDoubleClicked: [bool; 5usize], - pub MouseClickedCount: [ImU16; 5usize], - pub MouseClickedLastCount: [ImU16; 5usize], - pub MouseReleased: [bool; 5usize], - pub MouseDownOwned: [bool; 5usize], - pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], - pub MouseDownDuration: [f32; 5usize], - pub MouseDownDurationPrev: [f32; 5usize], - pub MouseDragMaxDistanceAbs: [ImVec2; 5usize], - pub MouseDragMaxDistanceSqr: [f32; 5usize], - pub KeysDownDuration: [f32; 512usize], - pub KeysDownDurationPrev: [f32; 512usize], - pub NavInputsDownDuration: [f32; 20usize], - pub NavInputsDownDurationPrev: [f32; 20usize], - pub PenPressure: f32, - pub AppFocusLost: bool, - pub InputQueueSurrogate: ImWchar16, - pub InputQueueCharacters: ImVector_ImWchar, +pub struct ImFontAtlas { + pub Flags: ImFontAtlasFlags, + pub TexID: ImTextureID, + pub TexDesiredWidth: cty::c_int, + pub TexGlyphPadding: cty::c_int, + pub Locked: bool, + pub TexReady: bool, + pub TexPixelsUseColors: bool, + pub TexPixelsAlpha8: *mut cty::c_uchar, + pub TexPixelsRGBA32: *mut cty::c_uint, + pub TexWidth: cty::c_int, + pub TexHeight: cty::c_int, + pub TexUvScale: ImVec2, + pub TexUvWhitePixel: ImVec2, + pub Fonts: ImVector_ImFontPtr, + pub CustomRects: ImVector_ImFontAtlasCustomRect, + pub ConfigData: ImVector_ImFontConfig, + pub TexUvLines: [ImVec4; 64usize], + pub FontBuilderIO: *const ImFontBuilderIO, + pub FontBuilderFlags: cty::c_uint, + pub PackIdMouseCursors: cty::c_int, + pub PackIdLines: cty::c_int, +} +impl Default for ImFontAtlas { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_float { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut f32, } -impl Default for ImGuiIO { +impl Default for ImVector_float { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1735,21 +1873,12 @@ impl Default for ImGuiIO { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiInputTextCallbackData { - pub EventFlag: ImGuiInputTextFlags, - pub Flags: ImGuiInputTextFlags, - pub UserData: *mut cty::c_void, - pub EventChar: ImWchar, - pub EventKey: ImGuiKey, - pub Buf: *mut cty::c_char, - pub BufTextLen: cty::c_int, - pub BufSize: cty::c_int, - pub BufDirty: bool, - pub CursorPos: cty::c_int, - pub SelectionStart: cty::c_int, - pub SelectionEnd: cty::c_int, +pub struct ImVector_ImFontGlyph { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontGlyph, } -impl Default for ImGuiInputTextCallbackData { +impl Default for ImVector_ImFontGlyph { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1760,13 +1889,27 @@ impl Default for ImGuiInputTextCallbackData { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiSizeCallbackData { - pub UserData: *mut cty::c_void, - pub Pos: ImVec2, - pub CurrentSize: ImVec2, - pub DesiredSize: ImVec2, +pub struct ImFont { + pub IndexAdvanceX: ImVector_float, + pub FallbackAdvanceX: f32, + pub FontSize: f32, + pub IndexLookup: ImVector_ImWchar, + pub Glyphs: ImVector_ImFontGlyph, + pub FallbackGlyph: *const ImFontGlyph, + pub ContainerAtlas: *mut ImFontAtlas, + pub ConfigData: *const ImFontConfig, + pub ConfigDataCount: cty::c_short, + pub FallbackChar: ImWchar, + pub EllipsisChar: ImWchar, + pub DotChar: ImWchar, + pub DirtyLookupTables: bool, + pub Scale: f32, + pub Ascent: f32, + pub Descent: f32, + pub MetricsTotalSurface: cty::c_int, + pub Used4kPagesMap: [ImU8; 34usize], } -impl Default for ImGuiSizeCallbackData { +impl Default for ImFont { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1775,31 +1918,59 @@ impl Default for ImGuiSizeCallbackData { } } } +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 ImGuiViewportFlags_NoDecoration: ImGuiViewportFlags_ = 8; +pub const ImGuiViewportFlags_NoTaskBarIcon: ImGuiViewportFlags_ = 16; +pub const ImGuiViewportFlags_NoFocusOnAppearing: ImGuiViewportFlags_ = 32; +pub const ImGuiViewportFlags_NoFocusOnClick: ImGuiViewportFlags_ = 64; +pub const ImGuiViewportFlags_NoInputs: ImGuiViewportFlags_ = 128; +pub const ImGuiViewportFlags_NoRendererClear: ImGuiViewportFlags_ = 256; +pub const ImGuiViewportFlags_TopMost: ImGuiViewportFlags_ = 512; +pub const ImGuiViewportFlags_Minimized: ImGuiViewportFlags_ = 1024; +pub const ImGuiViewportFlags_NoAutoMerge: ImGuiViewportFlags_ = 2048; +pub const ImGuiViewportFlags_CanHostOtherWindows: ImGuiViewportFlags_ = 4096; +pub type ImGuiViewportFlags_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiWindowClass { - pub ClassId: ImGuiID, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiViewport { + pub ID: ImGuiID, + pub Flags: ImGuiViewportFlags, + pub Pos: ImVec2, + pub Size: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub DpiScale: f32, pub ParentViewportId: ImGuiID, - pub ViewportFlagsOverrideSet: ImGuiViewportFlags, - pub ViewportFlagsOverrideClear: ImGuiViewportFlags, - pub TabItemFlagsOverrideSet: ImGuiTabItemFlags, - pub DockNodeFlagsOverrideSet: ImGuiDockNodeFlags, - pub DockingAlwaysTabBar: bool, - pub DockingAllowUnclassed: bool, + pub DrawData: *mut ImDrawData, + pub RendererUserData: *mut cty::c_void, + pub PlatformUserData: *mut cty::c_void, + pub PlatformHandle: *mut cty::c_void, + pub PlatformHandleRaw: *mut cty::c_void, + pub PlatformWindowCreated: bool, + pub PlatformRequestMove: bool, + pub PlatformRequestResize: bool, + pub PlatformRequestClose: bool, +} +impl Default for ImGuiViewport { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiPayload { - pub Data: *mut cty::c_void, - pub DataSize: cty::c_int, - pub SourceId: ImGuiID, - pub SourceParentId: ImGuiID, - pub DataFrameCount: cty::c_int, - pub DataType: [cty::c_char; 33usize], - pub Preview: bool, - pub Delivery: bool, +pub struct ImVector_ImGuiPlatformMonitor { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPlatformMonitor, } -impl Default for ImGuiPayload { +impl Default for ImVector_ImGuiPlatformMonitor { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1809,47 +1980,143 @@ impl Default for ImGuiPayload { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTableColumnSortSpecs { - pub ColumnUserID: ImGuiID, - pub ColumnIndex: ImS16, - pub SortOrder: ImS16, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 3usize], +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiViewportPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiViewport, } -impl ImGuiTableColumnSortSpecs { - #[inline] - pub fn SortDirection(&self) -> ImGuiSortDirection { - unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } - } - #[inline] - pub fn set_SortDirection(&mut self, val: ImGuiSortDirection) { +impl Default for ImVector_ImGuiViewportPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(0usize, 8u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn new_bitfield_1( - SortDirection: ImGuiSortDirection, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 8u8, { - let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) }; - SortDirection as u64 - }); - __bindgen_bitfield_unit +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPlatformIO { + pub Platform_CreateWindow: ::core::option::Option, + pub Platform_DestroyWindow: + ::core::option::Option, + pub Platform_ShowWindow: ::core::option::Option, + pub Platform_SetWindowPos: + ::core::option::Option, + pub Platform_GetWindowPos: + ::core::option::Option ImVec2>, + pub Platform_SetWindowSize: + ::core::option::Option, + pub Platform_GetWindowSize: + ::core::option::Option ImVec2>, + pub Platform_SetWindowFocus: + ::core::option::Option, + pub Platform_GetWindowFocus: + ::core::option::Option bool>, + pub Platform_GetWindowMinimized: + ::core::option::Option bool>, + pub Platform_SetWindowTitle: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, str_: *const cty::c_char), + >, + pub Platform_SetWindowAlpha: + ::core::option::Option, + pub Platform_UpdateWindow: ::core::option::Option, + pub Platform_RenderWindow: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Platform_SwapBuffers: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Platform_GetWindowDpiScale: + ::core::option::Option f32>, + pub Platform_OnChangedViewport: + ::core::option::Option, + pub Platform_CreateVkSurface: ::core::option::Option< + unsafe extern "C" fn( + vp: *mut ImGuiViewport, + vk_inst: ImU64, + vk_allocators: *const cty::c_void, + out_vk_surface: *mut ImU64, + ) -> cty::c_int, + >, + pub Renderer_CreateWindow: ::core::option::Option, + pub Renderer_DestroyWindow: + ::core::option::Option, + pub Renderer_SetWindowSize: + ::core::option::Option, + pub Renderer_RenderWindow: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Renderer_SwapBuffers: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Monitors: ImVector_ImGuiPlatformMonitor, + pub Viewports: ImVector_ImGuiViewportPtr, +} +impl Default for ImGuiPlatformIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } } } #[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformMonitor { + pub MainPos: ImVec2, + pub MainSize: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub DpiScale: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformImeData { + pub WantVisible: bool, + pub InputPos: ImVec2, + pub InputLineHeight: f32, +} +pub type ImGuiDataAuthority = cty::c_int; +pub type ImGuiLayoutType = cty::c_int; +pub type ImGuiActivateFlags = cty::c_int; +pub type ImGuiDebugLogFlags = cty::c_int; +pub type ImGuiInputFlags = cty::c_int; +pub type ImGuiItemFlags = cty::c_int; +pub type ImGuiItemStatusFlags = cty::c_int; +pub type ImGuiOldColumnFlags = cty::c_int; +pub type ImGuiNavHighlightFlags = cty::c_int; +pub type ImGuiNavMoveFlags = cty::c_int; +pub type ImGuiNextItemDataFlags = cty::c_int; +pub type ImGuiNextWindowDataFlags = cty::c_int; +pub type ImGuiScrollFlags = cty::c_int; +pub type ImGuiSeparatorFlags = cty::c_int; +pub type ImGuiTextFlags = cty::c_int; +pub type ImGuiTooltipFlags = cty::c_int; +pub type ImGuiErrorLogCallback = ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, fmt: *const cty::c_char, ...), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct StbUndoRecord { + pub where_: cty::c_int, + pub insert_length: cty::c_int, + pub delete_length: cty::c_int, + pub char_storage: cty::c_int, +} +#[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTableSortSpecs { - pub Specs: *const ImGuiTableColumnSortSpecs, - pub SpecsCount: cty::c_int, - pub SpecsDirty: bool, +pub struct StbUndoState { + pub undo_rec: [StbUndoRecord; 99usize], + pub undo_char: [ImWchar; 999usize], + pub undo_point: cty::c_short, + pub redo_point: cty::c_short, + pub undo_char_point: cty::c_int, + pub redo_char_point: cty::c_int, } -impl Default for ImGuiTableSortSpecs { +impl Default for StbUndoState { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1859,17 +2126,24 @@ impl Default for ImGuiTableSortSpecs { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiOnceUponAFrame { - pub RefFrame: cty::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTextRange { - pub b: *const cty::c_char, - pub e: *const cty::c_char, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct STB_TexteditState { + pub cursor: cty::c_int, + pub select_start: cty::c_int, + pub select_end: cty::c_int, + pub insert_mode: cty::c_uchar, + pub row_count_per_page: cty::c_int, + pub cursor_at_end_of_line: cty::c_uchar, + pub initialized: cty::c_uchar, + pub has_preferred_x: cty::c_uchar, + pub single_line: cty::c_uchar, + pub padding1: cty::c_uchar, + pub padding2: cty::c_uchar, + pub padding3: cty::c_uchar, + pub preferred_x: f32, + pub undostate: StbUndoState, } -impl Default for ImGuiTextRange { +impl Default for STB_TexteditState { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1879,27 +2153,39 @@ impl Default for ImGuiTextRange { } } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTextFilter { - pub InputBuf: [cty::c_char; 256usize], - pub Filters: ImVector_ImGuiTextRange, - pub CountGrep: cty::c_int, +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct StbTexteditRow { + pub x0: f32, + pub x1: f32, + pub baseline_y_delta: f32, + pub ymin: f32, + pub ymax: f32, + pub num_chars: cty::c_int, } -impl Default for ImGuiTextFilter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub type ImFileHandle = *mut FILE; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec1 { + pub x: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVec2ih { + pub x: cty::c_short, + pub y: cty::c_short, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImRect { + pub Min: ImVec2, + pub Max: ImVec2, } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiTextBuffer { - pub Buf: ImVector_char, +pub struct ImBitVector { + pub Storage: ImVector_ImU32, } -impl Default for ImGuiTextBuffer { +impl Default for ImBitVector { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1908,20 +2194,15 @@ impl Default for ImGuiTextBuffer { } } } +pub type ImPoolIdx = cty::c_int; #[repr(C)] -#[derive(Copy, Clone)] -pub struct ImGuiStoragePair { - pub key: ImGuiID, - pub __bindgen_anon_1: ImGuiStoragePair__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ImGuiStoragePair__bindgen_ty_1 { - pub val_i: cty::c_int, - pub val_f: f32, - pub val_p: *mut cty::c_void, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_int { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_int, } -impl Default for ImGuiStoragePair__bindgen_ty_1 { +impl Default for ImVector_int { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1930,12 +2211,13 @@ impl Default for ImGuiStoragePair__bindgen_ty_1 { } } } -impl ::core::fmt::Debug for ImGuiStoragePair__bindgen_ty_1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "ImGuiStoragePair__bindgen_ty_1 {{ union }}") - } +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextIndex { + pub LineOffsets: ImVector_int, + pub EndOffset: cty::c_int, } -impl Default for ImGuiStoragePair { +impl Default for ImGuiTextIndex { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1944,21 +2226,23 @@ impl Default for ImGuiStoragePair { } } } -impl ::core::fmt::Debug for ImGuiStoragePair { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!( - f, - "ImGuiStoragePair {{ key: {:?}, __bindgen_anon_1: {:?} }}", - self.key, self.__bindgen_anon_1 - ) - } -} #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiStorage { - pub Data: ImVector_ImGuiStoragePair, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawListSharedData { + pub TexUvWhitePixel: ImVec2, + pub Font: *mut ImFont, + pub FontSize: f32, + pub CurveTessellationTol: f32, + pub CircleSegmentMaxError: f32, + pub ClipRectFullscreen: ImVec4, + pub InitialFlags: ImDrawListFlags, + pub TempBuffer: ImVector_ImVec2, + pub ArcFastVtx: [ImVec2; 48usize], + pub ArcFastRadiusCutoff: f32, + pub CircleSegmentCounts: [ImU8; 64usize], + pub TexUvLines: *const ImVec4, } -impl Default for ImGuiStorage { +impl Default for ImDrawListSharedData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1969,12 +2253,12 @@ impl Default for ImGuiStorage { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTabBar { +pub struct ImVector_ImDrawListPtr { pub Size: cty::c_int, pub Capacity: cty::c_int, - pub Data: *mut ImGuiTabBar, + pub Data: *mut *mut ImDrawList, } -impl Default for ImVector_ImGuiTabBar { +impl Default for ImVector_ImDrawListPtr { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1985,12 +2269,10 @@ impl Default for ImVector_ImGuiTabBar { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImPool_ImGuiTabBar { - pub Buf: ImVector_ImGuiTabBar, - pub Map: ImGuiStorage, - pub FreeIdx: ImPoolIdx, +pub struct ImDrawDataBuilder { + pub Layers: [ImVector_ImDrawListPtr; 2usize], } -impl Default for ImPool_ImGuiTabBar { +impl Default for ImDrawDataBuilder { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -1999,14 +2281,116 @@ impl Default for ImPool_ImGuiTabBar { } } } +pub const ImGuiItemFlags_None: ImGuiItemFlags_ = 0; +pub const ImGuiItemFlags_NoTabStop: ImGuiItemFlags_ = 1; +pub const ImGuiItemFlags_ButtonRepeat: ImGuiItemFlags_ = 2; +pub const ImGuiItemFlags_Disabled: ImGuiItemFlags_ = 4; +pub const ImGuiItemFlags_NoNav: ImGuiItemFlags_ = 8; +pub const ImGuiItemFlags_NoNavDefaultFocus: ImGuiItemFlags_ = 16; +pub const ImGuiItemFlags_SelectableDontClosePopup: ImGuiItemFlags_ = 32; +pub const ImGuiItemFlags_MixedValue: ImGuiItemFlags_ = 64; +pub const ImGuiItemFlags_ReadOnly: ImGuiItemFlags_ = 128; +pub const ImGuiItemFlags_NoWindowHoverableCheck: ImGuiItemFlags_ = 256; +pub const ImGuiItemFlags_Inputable: ImGuiItemFlags_ = 1024; +pub type ImGuiItemFlags_ = cty::c_uint; +pub const ImGuiItemStatusFlags_None: ImGuiItemStatusFlags_ = 0; +pub const ImGuiItemStatusFlags_HoveredRect: ImGuiItemStatusFlags_ = 1; +pub const ImGuiItemStatusFlags_HasDisplayRect: ImGuiItemStatusFlags_ = 2; +pub const ImGuiItemStatusFlags_Edited: ImGuiItemStatusFlags_ = 4; +pub const ImGuiItemStatusFlags_ToggledSelection: ImGuiItemStatusFlags_ = 8; +pub const ImGuiItemStatusFlags_ToggledOpen: ImGuiItemStatusFlags_ = 16; +pub const ImGuiItemStatusFlags_HasDeactivated: ImGuiItemStatusFlags_ = 32; +pub const ImGuiItemStatusFlags_Deactivated: ImGuiItemStatusFlags_ = 64; +pub const ImGuiItemStatusFlags_HoveredWindow: ImGuiItemStatusFlags_ = 128; +pub const ImGuiItemStatusFlags_FocusedByTabbing: ImGuiItemStatusFlags_ = 256; +pub const ImGuiItemStatusFlags_Visible: ImGuiItemStatusFlags_ = 512; +pub type ImGuiItemStatusFlags_ = cty::c_uint; +pub const ImGuiInputTextFlags_Multiline: ImGuiInputTextFlagsPrivate_ = 67108864; +pub const ImGuiInputTextFlags_NoMarkEdited: ImGuiInputTextFlagsPrivate_ = 134217728; +pub const ImGuiInputTextFlags_MergedItem: ImGuiInputTextFlagsPrivate_ = 268435456; +pub type ImGuiInputTextFlagsPrivate_ = cty::c_uint; +pub const ImGuiButtonFlags_PressedOnClick: ImGuiButtonFlagsPrivate_ = 16; +pub const ImGuiButtonFlags_PressedOnClickRelease: ImGuiButtonFlagsPrivate_ = 32; +pub const ImGuiButtonFlags_PressedOnClickReleaseAnywhere: ImGuiButtonFlagsPrivate_ = 64; +pub const ImGuiButtonFlags_PressedOnRelease: ImGuiButtonFlagsPrivate_ = 128; +pub const ImGuiButtonFlags_PressedOnDoubleClick: ImGuiButtonFlagsPrivate_ = 256; +pub const ImGuiButtonFlags_PressedOnDragDropHold: ImGuiButtonFlagsPrivate_ = 512; +pub const ImGuiButtonFlags_Repeat: ImGuiButtonFlagsPrivate_ = 1024; +pub const ImGuiButtonFlags_FlattenChildren: ImGuiButtonFlagsPrivate_ = 2048; +pub const ImGuiButtonFlags_AllowItemOverlap: ImGuiButtonFlagsPrivate_ = 4096; +pub const ImGuiButtonFlags_DontClosePopups: ImGuiButtonFlagsPrivate_ = 8192; +pub const ImGuiButtonFlags_AlignTextBaseLine: ImGuiButtonFlagsPrivate_ = 32768; +pub const ImGuiButtonFlags_NoKeyModifiers: ImGuiButtonFlagsPrivate_ = 65536; +pub const ImGuiButtonFlags_NoHoldingActiveId: ImGuiButtonFlagsPrivate_ = 131072; +pub const ImGuiButtonFlags_NoNavFocus: ImGuiButtonFlagsPrivate_ = 262144; +pub const ImGuiButtonFlags_NoHoveredOnFocus: ImGuiButtonFlagsPrivate_ = 524288; +pub const ImGuiButtonFlags_NoSetKeyOwner: ImGuiButtonFlagsPrivate_ = 1048576; +pub const ImGuiButtonFlags_NoTestKeyOwner: ImGuiButtonFlagsPrivate_ = 2097152; +pub const ImGuiButtonFlags_PressedOnMask_: ImGuiButtonFlagsPrivate_ = 1008; +pub const ImGuiButtonFlags_PressedOnDefault_: ImGuiButtonFlagsPrivate_ = 32; +pub type ImGuiButtonFlagsPrivate_ = cty::c_uint; +pub const ImGuiComboFlags_CustomPreview: ImGuiComboFlagsPrivate_ = 1048576; +pub type ImGuiComboFlagsPrivate_ = cty::c_uint; +pub const ImGuiSliderFlags_Vertical: ImGuiSliderFlagsPrivate_ = 1048576; +pub const ImGuiSliderFlags_ReadOnly: ImGuiSliderFlagsPrivate_ = 2097152; +pub type ImGuiSliderFlagsPrivate_ = cty::c_uint; +pub const ImGuiSelectableFlags_NoHoldingActiveID: ImGuiSelectableFlagsPrivate_ = 1048576; +pub const ImGuiSelectableFlags_SelectOnNav: ImGuiSelectableFlagsPrivate_ = 2097152; +pub const ImGuiSelectableFlags_SelectOnClick: ImGuiSelectableFlagsPrivate_ = 4194304; +pub const ImGuiSelectableFlags_SelectOnRelease: ImGuiSelectableFlagsPrivate_ = 8388608; +pub const ImGuiSelectableFlags_SpanAvailWidth: ImGuiSelectableFlagsPrivate_ = 16777216; +pub const ImGuiSelectableFlags_DrawHoveredWhenHeld: ImGuiSelectableFlagsPrivate_ = 33554432; +pub const ImGuiSelectableFlags_SetNavIdOnHover: ImGuiSelectableFlagsPrivate_ = 67108864; +pub const ImGuiSelectableFlags_NoPadWithHalfSpacing: ImGuiSelectableFlagsPrivate_ = 134217728; +pub const ImGuiSelectableFlags_NoSetKeyOwner: ImGuiSelectableFlagsPrivate_ = 268435456; +pub type ImGuiSelectableFlagsPrivate_ = cty::c_uint; +pub const ImGuiTreeNodeFlags_ClipLabelForTrailingButton: ImGuiTreeNodeFlagsPrivate_ = 1048576; +pub type ImGuiTreeNodeFlagsPrivate_ = cty::c_uint; +pub const ImGuiSeparatorFlags_None: ImGuiSeparatorFlags_ = 0; +pub const ImGuiSeparatorFlags_Horizontal: ImGuiSeparatorFlags_ = 1; +pub const ImGuiSeparatorFlags_Vertical: ImGuiSeparatorFlags_ = 2; +pub const ImGuiSeparatorFlags_SpanAllColumns: ImGuiSeparatorFlags_ = 4; +pub type ImGuiSeparatorFlags_ = cty::c_uint; +pub const ImGuiTextFlags_None: ImGuiTextFlags_ = 0; +pub const ImGuiTextFlags_NoWidthForLargeClippedText: ImGuiTextFlags_ = 1; +pub type ImGuiTextFlags_ = cty::c_uint; +pub const ImGuiTooltipFlags_None: ImGuiTooltipFlags_ = 0; +pub const ImGuiTooltipFlags_OverridePreviousTooltip: ImGuiTooltipFlags_ = 1; +pub type ImGuiTooltipFlags_ = cty::c_uint; +pub const ImGuiLayoutType_Horizontal: ImGuiLayoutType_ = 0; +pub const ImGuiLayoutType_Vertical: ImGuiLayoutType_ = 1; +pub type ImGuiLayoutType_ = cty::c_uint; +pub const ImGuiLogType_None: ImGuiLogType = 0; +pub const ImGuiLogType_TTY: ImGuiLogType = 1; +pub const ImGuiLogType_File: ImGuiLogType = 2; +pub const ImGuiLogType_Buffer: ImGuiLogType = 3; +pub const ImGuiLogType_Clipboard: ImGuiLogType = 4; +pub type ImGuiLogType = cty::c_uint; +pub const ImGuiAxis_None: ImGuiAxis = -1; +pub const ImGuiAxis_X: ImGuiAxis = 0; +pub const ImGuiAxis_Y: ImGuiAxis = 1; +pub type ImGuiAxis = cty::c_int; +pub const ImGuiPlotType_Lines: ImGuiPlotType = 0; +pub const ImGuiPlotType_Histogram: ImGuiPlotType = 1; +pub type ImGuiPlotType = cty::c_uint; +pub const ImGuiPopupPositionPolicy_Default: ImGuiPopupPositionPolicy = 0; +pub const ImGuiPopupPositionPolicy_ComboBox: ImGuiPopupPositionPolicy = 1; +pub const ImGuiPopupPositionPolicy_Tooltip: ImGuiPopupPositionPolicy = 2; +pub type ImGuiPopupPositionPolicy = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiDataTypeTempStorage { + pub Data: [ImU8; 8usize], +} #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVector_ImGuiTable { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut ImGuiTable, +pub struct ImGuiDataTypeInfo { + pub Size: usize, + pub Name: *const cty::c_char, + pub PrintFmt: *const cty::c_char, + pub ScanFmt: *const cty::c_char, } -impl Default for ImVector_ImGuiTable { +impl Default for ImGuiDataTypeInfo { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2015,14 +2399,29 @@ impl Default for ImVector_ImGuiTable { } } } +pub const ImGuiDataType_String: ImGuiDataTypePrivate_ = 11; +pub const ImGuiDataType_Pointer: ImGuiDataTypePrivate_ = 12; +pub const ImGuiDataType_ID: ImGuiDataTypePrivate_ = 13; +pub type ImGuiDataTypePrivate_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImPool_ImGuiTable { - pub Buf: ImVector_ImGuiTable, - pub Map: ImGuiStorage, - pub FreeIdx: ImPoolIdx, +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiColorMod { + pub Col: ImGuiCol, + pub BackupValue: ImVec4, } -impl Default for ImPool_ImGuiTable { +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiStyleMod { + pub VarIdx: ImGuiStyleVar, + pub __bindgen_anon_1: ImGuiStyleMod__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiStyleMod__bindgen_ty_1 { + pub BackupInt: [cty::c_int; 2usize], + pub BackupFloat: [f32; 2usize], +} +impl Default for ImGuiStyleMod__bindgen_ty_1 { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2031,17 +2430,12 @@ impl Default for ImPool_ImGuiTable { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiListClipper { - pub DisplayStart: cty::c_int, - pub DisplayEnd: cty::c_int, - pub ItemsCount: cty::c_int, - pub ItemsHeight: f32, - pub StartPosY: f32, - pub TempData: *mut cty::c_void, +impl ::core::fmt::Debug for ImGuiStyleMod__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiStyleMod__bindgen_ty_1 {{ union }}") + } } -impl Default for ImGuiListClipper { +impl Default for ImGuiStyleMod { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2050,46 +2444,72 @@ impl Default for ImGuiListClipper { } } } +impl ::core::fmt::Debug for ImGuiStyleMod { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!( + f, + "ImGuiStyleMod {{ VarIdx: {:?}, __bindgen_anon_1: {:?} }}", + self.VarIdx, self.__bindgen_anon_1 + ) + } +} #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImColor { - pub Value: ImVec4, +pub struct ImGuiComboPreviewData { + pub PreviewRect: ImRect, + pub BackupCursorPos: ImVec2, + pub BackupCursorMaxPos: ImVec2, + pub BackupCursorPosPrevLine: ImVec2, + pub BackupPrevLineTextBaseOffset: f32, + pub BackupLayout: ImGuiLayoutType, } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawCmd { - pub ClipRect: ImVec4, - pub TextureId: ImTextureID, - pub VtxOffset: cty::c_uint, - pub IdxOffset: cty::c_uint, - pub ElemCount: cty::c_uint, - pub UserCallback: ImDrawCallback, - pub UserCallbackData: *mut cty::c_void, -} -impl Default for ImDrawCmd { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiGroupData { + pub WindowID: ImGuiID, + pub BackupCursorPos: ImVec2, + pub BackupCursorMaxPos: ImVec2, + pub BackupIndent: ImVec1, + pub BackupGroupOffset: ImVec1, + pub BackupCurrLineSize: ImVec2, + pub BackupCurrLineTextBaseOffset: f32, + pub BackupActiveIdIsAlive: ImGuiID, + pub BackupActiveIdPreviousFrameIsAlive: bool, + pub BackupHoveredIdIsAlive: bool, + pub EmitItem: bool, } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImDrawVert { - pub pos: ImVec2, - pub uv: ImVec2, - pub col: ImU32, +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiMenuColumns { + pub TotalWidth: ImU32, + pub NextTotalWidth: ImU32, + pub Spacing: ImU16, + pub OffsetIcon: ImU16, + pub OffsetLabel: ImU16, + pub OffsetShortcut: ImU16, + pub OffsetMark: ImU16, + pub Widths: [ImU16; 4usize], } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawCmdHeader { - pub ClipRect: ImVec4, - pub TextureId: ImTextureID, - pub VtxOffset: cty::c_uint, +pub struct ImGuiInputTextState { + pub ID: ImGuiID, + pub CurLenW: cty::c_int, + pub CurLenA: cty::c_int, + pub TextW: ImVector_ImWchar, + pub TextA: ImVector_char, + pub InitialTextA: ImVector_char, + pub TextAIsValid: bool, + pub BufCapacityA: cty::c_int, + pub ScrollX: f32, + pub Stb: STB_TexteditState, + pub CursorAnim: f32, + pub CursorFollow: bool, + pub SelectedAllMouseLock: bool, + pub Edited: bool, + pub Flags: ImGuiInputTextFlags, } -impl Default for ImDrawCmdHeader { +impl Default for ImGuiInputTextState { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2099,12 +2519,18 @@ impl Default for ImDrawCmdHeader { } } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImDrawChannel { - pub _CmdBuffer: ImVector_ImDrawCmd, - pub _IdxBuffer: ImVector_ImDrawIdx, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiPopupData { + pub PopupId: ImGuiID, + pub Window: *mut ImGuiWindow, + pub BackupNavWindow: *mut ImGuiWindow, + pub ParentNavLayer: cty::c_int, + pub OpenFrameCount: cty::c_int, + pub OpenParentId: ImGuiID, + pub OpenPopupPos: ImVec2, + pub OpenMousePos: ImVec2, } -impl Default for ImDrawChannel { +impl Default for ImGuiPopupData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2113,14 +2539,44 @@ impl Default for ImDrawChannel { } } } +pub const ImGuiNextWindowDataFlags_None: ImGuiNextWindowDataFlags_ = 0; +pub const ImGuiNextWindowDataFlags_HasPos: ImGuiNextWindowDataFlags_ = 1; +pub const ImGuiNextWindowDataFlags_HasSize: ImGuiNextWindowDataFlags_ = 2; +pub const ImGuiNextWindowDataFlags_HasContentSize: ImGuiNextWindowDataFlags_ = 4; +pub const ImGuiNextWindowDataFlags_HasCollapsed: ImGuiNextWindowDataFlags_ = 8; +pub const ImGuiNextWindowDataFlags_HasSizeConstraint: ImGuiNextWindowDataFlags_ = 16; +pub const ImGuiNextWindowDataFlags_HasFocus: ImGuiNextWindowDataFlags_ = 32; +pub const ImGuiNextWindowDataFlags_HasBgAlpha: ImGuiNextWindowDataFlags_ = 64; +pub const ImGuiNextWindowDataFlags_HasScroll: ImGuiNextWindowDataFlags_ = 128; +pub const ImGuiNextWindowDataFlags_HasViewport: ImGuiNextWindowDataFlags_ = 256; +pub const ImGuiNextWindowDataFlags_HasDock: ImGuiNextWindowDataFlags_ = 512; +pub const ImGuiNextWindowDataFlags_HasWindowClass: ImGuiNextWindowDataFlags_ = 1024; +pub type ImGuiNextWindowDataFlags_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImDrawListSplitter { - pub _Current: cty::c_int, - pub _Count: cty::c_int, - pub _Channels: ImVector_ImDrawChannel, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiNextWindowData { + pub Flags: ImGuiNextWindowDataFlags, + pub PosCond: ImGuiCond, + pub SizeCond: ImGuiCond, + pub CollapsedCond: ImGuiCond, + pub DockCond: ImGuiCond, + pub PosVal: ImVec2, + pub PosPivotVal: ImVec2, + pub SizeVal: ImVec2, + pub ContentSizeVal: ImVec2, + pub ScrollVal: ImVec2, + pub PosUndock: bool, + pub CollapsedVal: bool, + pub SizeConstraintRect: ImRect, + pub SizeCallback: ImGuiSizeCallback, + pub SizeCallbackUserData: *mut cty::c_void, + pub BgAlphaVal: f32, + pub ViewportId: ImGuiID, + pub DockId: ImGuiID, + pub WindowClass: ImGuiWindowClass, + pub MenuBarOffsetMinVal: ImVec2, } -impl Default for ImDrawListSplitter { +impl Default for ImGuiNextWindowData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2129,47 +2585,50 @@ impl Default for ImDrawListSplitter { } } } -pub const ImDrawFlags_None: ImDrawFlags_ = 0; -pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; -pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; -pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; -pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; -pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; -pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; -pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; -pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; -pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; -pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; -pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; -pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; -pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; -pub type ImDrawFlags_ = cty::c_uint; -pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; -pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; -pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; -pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; -pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; -pub type ImDrawListFlags_ = cty::c_uint; +pub const ImGuiNextItemDataFlags_None: ImGuiNextItemDataFlags_ = 0; +pub const ImGuiNextItemDataFlags_HasWidth: ImGuiNextItemDataFlags_ = 1; +pub const ImGuiNextItemDataFlags_HasOpen: ImGuiNextItemDataFlags_ = 2; +pub type ImGuiNextItemDataFlags_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawList { - pub CmdBuffer: ImVector_ImDrawCmd, - pub IdxBuffer: ImVector_ImDrawIdx, - pub VtxBuffer: ImVector_ImDrawVert, - pub Flags: ImDrawListFlags, - pub _VtxCurrentIdx: cty::c_uint, - pub _Data: *const ImDrawListSharedData, - pub _OwnerName: *const cty::c_char, - pub _VtxWritePtr: *mut ImDrawVert, - pub _IdxWritePtr: *mut ImDrawIdx, - pub _ClipRectStack: ImVector_ImVec4, - pub _TextureIdStack: ImVector_ImTextureID, - pub _Path: ImVector_ImVec2, - pub _CmdHeader: ImDrawCmdHeader, - pub _Splitter: ImDrawListSplitter, - pub _FringeScale: f32, +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiNextItemData { + pub Flags: ImGuiNextItemDataFlags, + pub Width: f32, + pub FocusScopeId: ImGuiID, + pub OpenCond: ImGuiCond, + pub OpenVal: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiLastItemData { + pub ID: ImGuiID, + pub InFlags: ImGuiItemFlags, + pub StatusFlags: ImGuiItemStatusFlags, + pub Rect: ImRect, + pub NavRect: ImRect, + pub DisplayRect: ImRect, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStackSizes { + pub SizeOfIDStack: cty::c_short, + pub SizeOfColorStack: cty::c_short, + pub SizeOfStyleVarStack: cty::c_short, + pub SizeOfFontStack: cty::c_short, + pub SizeOfFocusScopeStack: cty::c_short, + pub SizeOfGroupStack: cty::c_short, + pub SizeOfItemFlagsStack: cty::c_short, + pub SizeOfBeginPopupStack: cty::c_short, + pub SizeOfDisabledStack: cty::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiWindowStackData { + pub Window: *mut ImGuiWindow, + pub ParentLastItemDataBackup: ImGuiLastItemData, + pub StackSizesOnBegin: ImGuiStackSizes, } -impl Default for ImDrawList { +impl Default for ImGuiWindowStackData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2179,19 +2638,19 @@ impl Default for ImDrawList { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawData { - pub Valid: bool, - pub CmdListsCount: cty::c_int, - pub TotalIdxCount: cty::c_int, - pub TotalVtxCount: cty::c_int, - pub CmdLists: *mut *mut ImDrawList, - pub DisplayPos: ImVec2, - pub DisplaySize: ImVec2, - pub FramebufferScale: ImVec2, - pub OwnerViewport: *mut ImGuiViewport, +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiShrinkWidthItem { + pub Index: cty::c_int, + pub Width: f32, + pub InitialWidth: f32, } -impl Default for ImDrawData { +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPtrOrIndex { + pub Ptr: *mut cty::c_void, + pub Index: cty::c_int, +} +impl Default for ImGuiPtrOrIndex { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2200,30 +2659,55 @@ impl Default for ImDrawData { } } } +pub const ImGuiInputEventType_None: ImGuiInputEventType = 0; +pub const ImGuiInputEventType_MousePos: ImGuiInputEventType = 1; +pub const ImGuiInputEventType_MouseWheel: ImGuiInputEventType = 2; +pub const ImGuiInputEventType_MouseButton: ImGuiInputEventType = 3; +pub const ImGuiInputEventType_MouseViewport: ImGuiInputEventType = 4; +pub const ImGuiInputEventType_Key: ImGuiInputEventType = 5; +pub const ImGuiInputEventType_Text: ImGuiInputEventType = 6; +pub const ImGuiInputEventType_Focus: ImGuiInputEventType = 7; +pub const ImGuiInputEventType_COUNT: ImGuiInputEventType = 8; +pub type ImGuiInputEventType = cty::c_uint; +pub const ImGuiInputSource_None: ImGuiInputSource = 0; +pub const ImGuiInputSource_Mouse: ImGuiInputSource = 1; +pub const ImGuiInputSource_Keyboard: ImGuiInputSource = 2; +pub const ImGuiInputSource_Gamepad: ImGuiInputSource = 3; +pub const ImGuiInputSource_Clipboard: ImGuiInputSource = 4; +pub const ImGuiInputSource_Nav: ImGuiInputSource = 5; +pub const ImGuiInputSource_COUNT: ImGuiInputSource = 6; +pub type ImGuiInputSource = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventMousePos { + pub PosX: f32, + pub PosY: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventMouseWheel { + pub WheelX: f32, + pub WheelY: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventMouseButton { + pub Button: cty::c_int, + pub Down: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventMouseViewport { + pub HoveredViewportID: ImGuiID, +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImFontConfig { - pub FontData: *mut cty::c_void, - pub FontDataSize: cty::c_int, - pub FontDataOwnedByAtlas: bool, - pub FontNo: cty::c_int, - pub SizePixels: f32, - pub OversampleH: cty::c_int, - pub OversampleV: cty::c_int, - pub PixelSnapH: bool, - pub GlyphExtraSpacing: ImVec2, - pub GlyphOffset: ImVec2, - pub GlyphRanges: *const ImWchar, - pub GlyphMinAdvanceX: f32, - pub GlyphMaxAdvanceX: f32, - pub MergeMode: bool, - pub FontBuilderFlags: cty::c_uint, - pub RasterizerMultiply: f32, - pub EllipsisChar: ImWchar, - pub Name: [cty::c_char; 40usize], - pub DstFont: *mut ImFont, +pub struct ImGuiInputEventKey { + pub Key: ImGuiKey, + pub Down: bool, + pub AnalogValue: f32, } -impl Default for ImFontConfig { +impl Default for ImGuiInputEventKey { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2233,82 +2717,35 @@ impl Default for ImFontConfig { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImFontGlyph { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - 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, +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventText { + pub Char: cty::c_uint, } -impl ImFontGlyph { - #[inline] - pub fn Colored(&self) -> cty::c_uint { - unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_Colored(&mut self, val: cty::c_uint) { - unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Visible(&self) -> cty::c_uint { - unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_Visible(&mut self, val: cty::c_uint) { - unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn Codepoint(&self) -> cty::c_uint { - unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_Codepoint(&mut self, val: cty::c_uint) { - unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Colored: cty::c_uint, - Visible: cty::c_uint, - Codepoint: cty::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let Colored: u32 = unsafe { ::core::mem::transmute(Colored) }; - Colored as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let Visible: u32 = unsafe { ::core::mem::transmute(Visible) }; - Visible as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let Codepoint: u32 = unsafe { ::core::mem::transmute(Codepoint) }; - Codepoint as u64 - }); - __bindgen_bitfield_unit - } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventAppFocused { + pub Focused: bool, } #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImFontGlyphRangesBuilder { - pub UsedChars: ImVector_ImU32, +#[derive(Copy, Clone)] +pub struct ImGuiInputEvent { + pub Type: ImGuiInputEventType, + pub Source: ImGuiInputSource, + pub __bindgen_anon_1: ImGuiInputEvent__bindgen_ty_1, + pub AddedByTestEngine: bool, } -impl Default for ImFontGlyphRangesBuilder { +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiInputEvent__bindgen_ty_1 { + pub MousePos: ImGuiInputEventMousePos, + pub MouseWheel: ImGuiInputEventMouseWheel, + pub MouseButton: ImGuiInputEventMouseButton, + pub MouseViewport: ImGuiInputEventMouseViewport, + pub Key: ImGuiInputEventKey, + pub Text: ImGuiInputEventText, + pub AppFocused: ImGuiInputEventAppFocused, +} +impl Default for ImGuiInputEvent__bindgen_ty_1 { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2317,19 +2754,12 @@ impl Default for ImFontGlyphRangesBuilder { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImFontAtlasCustomRect { - pub Width: cty::c_ushort, - pub Height: cty::c_ushort, - pub X: cty::c_ushort, - pub Y: cty::c_ushort, - pub GlyphID: cty::c_uint, - pub GlyphAdvanceX: f32, - pub GlyphOffset: ImVec2, - pub Font: *mut ImFont, +impl ::core::fmt::Debug for ImGuiInputEvent__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiInputEvent__bindgen_ty_1 {{ union }}") + } } -impl Default for ImFontAtlasCustomRect { +impl Default for ImGuiInputEvent { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2338,37 +2768,29 @@ impl Default for ImFontAtlasCustomRect { } } } -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 type ImFontAtlasFlags_ = cty::c_uint; +impl ::core::fmt::Debug for ImGuiInputEvent { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write ! (f , "ImGuiInputEvent {{ Type: {:?}, Source: {:?}, __bindgen_anon_1: {:?}, AddedByTestEngine: {:?} }}" , self . Type , self . Source , self . __bindgen_anon_1 , self . AddedByTestEngine) + } +} +pub type ImGuiKeyRoutingIndex = ImS16; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImFontAtlas { - pub Flags: ImFontAtlasFlags, - pub TexID: ImTextureID, - pub TexDesiredWidth: cty::c_int, - pub TexGlyphPadding: cty::c_int, - pub Locked: bool, - pub TexReady: bool, - pub TexPixelsUseColors: bool, - pub TexPixelsAlpha8: *mut cty::c_uchar, - pub TexPixelsRGBA32: *mut cty::c_uint, - pub TexWidth: cty::c_int, - pub TexHeight: cty::c_int, - pub TexUvScale: ImVec2, - pub TexUvWhitePixel: ImVec2, - pub Fonts: ImVector_ImFontPtr, - pub CustomRects: ImVector_ImFontAtlasCustomRect, - pub ConfigData: ImVector_ImFontConfig, - pub TexUvLines: [ImVec4; 64usize], - pub FontBuilderIO: *const ImFontBuilderIO, - pub FontBuilderFlags: cty::c_uint, - pub PackIdMouseCursors: cty::c_int, - pub PackIdLines: cty::c_int, +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyRoutingData { + pub NextEntryIndex: ImGuiKeyRoutingIndex, + pub Mods: ImU16, + pub RoutingNextScore: ImU8, + pub RoutingCurr: ImGuiID, + pub RoutingNext: ImGuiID, } -impl Default for ImFontAtlas { +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiKeyRoutingData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiKeyRoutingData, +} +impl Default for ImVector_ImGuiKeyRoutingData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2378,28 +2800,71 @@ impl Default for ImFontAtlas { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImFont { - pub IndexAdvanceX: ImVector_float, - pub FallbackAdvanceX: f32, - pub FontSize: f32, - pub IndexLookup: ImVector_ImWchar, - pub Glyphs: ImVector_ImFontGlyph, - pub FallbackGlyph: *const ImFontGlyph, - pub ContainerAtlas: *mut ImFontAtlas, - pub ConfigData: *const ImFontConfig, - pub ConfigDataCount: cty::c_short, - pub FallbackChar: ImWchar, - pub EllipsisChar: ImWchar, - pub DotChar: ImWchar, - pub DirtyLookupTables: bool, - pub Scale: f32, - pub Ascent: f32, - pub Descent: f32, - pub MetricsTotalSurface: cty::c_int, - pub Used4kPagesMap: [ImU8; 34usize], +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyRoutingTable { + pub Index: [ImGuiKeyRoutingIndex; 140usize], + pub Entries: ImVector_ImGuiKeyRoutingData, + pub EntriesNext: ImVector_ImGuiKeyRoutingData, } -impl Default for ImFont { +impl Default for ImGuiKeyRoutingTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyOwnerData { + pub OwnerCurr: ImGuiID, + pub OwnerNext: ImGuiID, + pub LockThisFrame: bool, + pub LockUntilRelease: bool, +} +pub const ImGuiInputFlags_None: ImGuiInputFlags_ = 0; +pub const ImGuiInputFlags_Repeat: ImGuiInputFlags_ = 1; +pub const ImGuiInputFlags_RepeatRateDefault: ImGuiInputFlags_ = 2; +pub const ImGuiInputFlags_RepeatRateNavMove: ImGuiInputFlags_ = 4; +pub const ImGuiInputFlags_RepeatRateNavTweak: ImGuiInputFlags_ = 8; +pub const ImGuiInputFlags_RepeatRateMask_: ImGuiInputFlags_ = 14; +pub const ImGuiInputFlags_CondHovered: ImGuiInputFlags_ = 16; +pub const ImGuiInputFlags_CondActive: ImGuiInputFlags_ = 32; +pub const ImGuiInputFlags_CondDefault_: ImGuiInputFlags_ = 48; +pub const ImGuiInputFlags_CondMask_: ImGuiInputFlags_ = 48; +pub const ImGuiInputFlags_LockThisFrame: ImGuiInputFlags_ = 64; +pub const ImGuiInputFlags_LockUntilRelease: ImGuiInputFlags_ = 128; +pub const ImGuiInputFlags_RouteFocused: ImGuiInputFlags_ = 256; +pub const ImGuiInputFlags_RouteGlobalLow: ImGuiInputFlags_ = 512; +pub const ImGuiInputFlags_RouteGlobal: ImGuiInputFlags_ = 1024; +pub const ImGuiInputFlags_RouteGlobalHigh: ImGuiInputFlags_ = 2048; +pub const ImGuiInputFlags_RouteMask_: ImGuiInputFlags_ = 3840; +pub const ImGuiInputFlags_RouteAlways: ImGuiInputFlags_ = 4096; +pub const ImGuiInputFlags_RouteUnlessBgFocused: ImGuiInputFlags_ = 8192; +pub const ImGuiInputFlags_RouteExtraMask_: ImGuiInputFlags_ = 12288; +pub const ImGuiInputFlags_SupportedByIsKeyPressed: ImGuiInputFlags_ = 15; +pub const ImGuiInputFlags_SupportedByShortcut: ImGuiInputFlags_ = 16143; +pub const ImGuiInputFlags_SupportedBySetKeyOwner: ImGuiInputFlags_ = 192; +pub const ImGuiInputFlags_SupportedBySetItemKeyOwner: ImGuiInputFlags_ = 240; +pub type ImGuiInputFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiListClipperRange { + pub Min: cty::c_int, + pub Max: cty::c_int, + pub PosToIndexConvert: bool, + pub PosToIndexOffsetMin: ImS8, + pub PosToIndexOffsetMax: ImS8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiListClipperRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiListClipperRange, +} +impl Default for ImVector_ImGuiListClipperRange { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2408,42 +2873,16 @@ impl Default for ImFont { } } } -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 ImGuiViewportFlags_NoDecoration: ImGuiViewportFlags_ = 8; -pub const ImGuiViewportFlags_NoTaskBarIcon: ImGuiViewportFlags_ = 16; -pub const ImGuiViewportFlags_NoFocusOnAppearing: ImGuiViewportFlags_ = 32; -pub const ImGuiViewportFlags_NoFocusOnClick: ImGuiViewportFlags_ = 64; -pub const ImGuiViewportFlags_NoInputs: ImGuiViewportFlags_ = 128; -pub const ImGuiViewportFlags_NoRendererClear: ImGuiViewportFlags_ = 256; -pub const ImGuiViewportFlags_TopMost: ImGuiViewportFlags_ = 512; -pub const ImGuiViewportFlags_Minimized: ImGuiViewportFlags_ = 1024; -pub const ImGuiViewportFlags_NoAutoMerge: ImGuiViewportFlags_ = 2048; -pub const ImGuiViewportFlags_CanHostOtherWindows: ImGuiViewportFlags_ = 4096; -pub type ImGuiViewportFlags_ = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiViewport { - pub ID: ImGuiID, - pub Flags: ImGuiViewportFlags, - pub Pos: ImVec2, - pub Size: ImVec2, - pub WorkPos: ImVec2, - pub WorkSize: ImVec2, - pub DpiScale: f32, - pub ParentViewportId: ImGuiID, - pub DrawData: *mut ImDrawData, - pub RendererUserData: *mut cty::c_void, - pub PlatformUserData: *mut cty::c_void, - pub PlatformHandle: *mut cty::c_void, - pub PlatformHandleRaw: *mut cty::c_void, - pub PlatformRequestMove: bool, - pub PlatformRequestResize: bool, - pub PlatformRequestClose: bool, +pub struct ImGuiListClipperData { + pub ListClipper: *mut ImGuiListClipper, + pub LossynessOffset: f32, + pub StepNo: cty::c_int, + pub ItemsFrozen: cty::c_int, + pub Ranges: ImVector_ImGuiListClipperRange, } -impl Default for ImGuiViewport { +impl Default for ImGuiListClipperData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2452,68 +2891,60 @@ impl Default for ImGuiViewport { } } } +pub const ImGuiActivateFlags_None: ImGuiActivateFlags_ = 0; +pub const ImGuiActivateFlags_PreferInput: ImGuiActivateFlags_ = 1; +pub const ImGuiActivateFlags_PreferTweak: ImGuiActivateFlags_ = 2; +pub const ImGuiActivateFlags_TryToPreserveState: ImGuiActivateFlags_ = 4; +pub type ImGuiActivateFlags_ = cty::c_uint; +pub const ImGuiScrollFlags_None: ImGuiScrollFlags_ = 0; +pub const ImGuiScrollFlags_KeepVisibleEdgeX: ImGuiScrollFlags_ = 1; +pub const ImGuiScrollFlags_KeepVisibleEdgeY: ImGuiScrollFlags_ = 2; +pub const ImGuiScrollFlags_KeepVisibleCenterX: ImGuiScrollFlags_ = 4; +pub const ImGuiScrollFlags_KeepVisibleCenterY: ImGuiScrollFlags_ = 8; +pub const ImGuiScrollFlags_AlwaysCenterX: ImGuiScrollFlags_ = 16; +pub const ImGuiScrollFlags_AlwaysCenterY: ImGuiScrollFlags_ = 32; +pub const ImGuiScrollFlags_NoScrollParent: ImGuiScrollFlags_ = 64; +pub const ImGuiScrollFlags_MaskX_: ImGuiScrollFlags_ = 21; +pub const ImGuiScrollFlags_MaskY_: ImGuiScrollFlags_ = 42; +pub type ImGuiScrollFlags_ = cty::c_uint; +pub const ImGuiNavHighlightFlags_None: ImGuiNavHighlightFlags_ = 0; +pub const ImGuiNavHighlightFlags_TypeDefault: ImGuiNavHighlightFlags_ = 1; +pub const ImGuiNavHighlightFlags_TypeThin: ImGuiNavHighlightFlags_ = 2; +pub const ImGuiNavHighlightFlags_AlwaysDraw: ImGuiNavHighlightFlags_ = 4; +pub const ImGuiNavHighlightFlags_NoRounding: ImGuiNavHighlightFlags_ = 8; +pub type ImGuiNavHighlightFlags_ = cty::c_uint; +pub const ImGuiNavMoveFlags_None: ImGuiNavMoveFlags_ = 0; +pub const ImGuiNavMoveFlags_LoopX: ImGuiNavMoveFlags_ = 1; +pub const ImGuiNavMoveFlags_LoopY: ImGuiNavMoveFlags_ = 2; +pub const ImGuiNavMoveFlags_WrapX: ImGuiNavMoveFlags_ = 4; +pub const ImGuiNavMoveFlags_WrapY: ImGuiNavMoveFlags_ = 8; +pub const ImGuiNavMoveFlags_AllowCurrentNavId: ImGuiNavMoveFlags_ = 16; +pub const ImGuiNavMoveFlags_AlsoScoreVisibleSet: ImGuiNavMoveFlags_ = 32; +pub const ImGuiNavMoveFlags_ScrollToEdgeY: ImGuiNavMoveFlags_ = 64; +pub const ImGuiNavMoveFlags_Forwarded: ImGuiNavMoveFlags_ = 128; +pub const ImGuiNavMoveFlags_DebugNoResult: ImGuiNavMoveFlags_ = 256; +pub const ImGuiNavMoveFlags_FocusApi: ImGuiNavMoveFlags_ = 512; +pub const ImGuiNavMoveFlags_Tabbing: ImGuiNavMoveFlags_ = 1024; +pub const ImGuiNavMoveFlags_Activate: ImGuiNavMoveFlags_ = 2048; +pub const ImGuiNavMoveFlags_DontSetNavHighlight: ImGuiNavMoveFlags_ = 4096; +pub type ImGuiNavMoveFlags_ = cty::c_uint; +pub const ImGuiNavLayer_Main: ImGuiNavLayer = 0; +pub const ImGuiNavLayer_Menu: ImGuiNavLayer = 1; +pub const ImGuiNavLayer_COUNT: ImGuiNavLayer = 2; +pub type ImGuiNavLayer = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiPlatformIO { - pub Platform_CreateWindow: ::core::option::Option, - pub Platform_DestroyWindow: - ::core::option::Option, - pub Platform_ShowWindow: ::core::option::Option, - pub Platform_SetWindowPos: - ::core::option::Option, - pub Platform_GetWindowPos: - ::core::option::Option ImVec2>, - pub Platform_SetWindowSize: - ::core::option::Option, - pub Platform_GetWindowSize: - ::core::option::Option ImVec2>, - pub Platform_SetWindowFocus: - ::core::option::Option, - pub Platform_GetWindowFocus: - ::core::option::Option bool>, - pub Platform_GetWindowMinimized: - ::core::option::Option bool>, - pub Platform_SetWindowTitle: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, str_: *const cty::c_char), - >, - pub Platform_SetWindowAlpha: - ::core::option::Option, - pub Platform_UpdateWindow: ::core::option::Option, - pub Platform_RenderWindow: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), - >, - pub Platform_SwapBuffers: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), - >, - pub Platform_GetWindowDpiScale: - ::core::option::Option f32>, - pub Platform_OnChangedViewport: - ::core::option::Option, - pub Platform_SetImeInputPos: - ::core::option::Option, - pub Platform_CreateVkSurface: ::core::option::Option< - unsafe extern "C" fn( - vp: *mut ImGuiViewport, - vk_inst: ImU64, - vk_allocators: *const cty::c_void, - out_vk_surface: *mut ImU64, - ) -> cty::c_int, - >, - pub Renderer_CreateWindow: ::core::option::Option, - pub Renderer_DestroyWindow: - ::core::option::Option, - pub Renderer_SetWindowSize: - ::core::option::Option, - pub Renderer_RenderWindow: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), - >, - pub Renderer_SwapBuffers: ::core::option::Option< - unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), - >, - pub Monitors: ImVector_ImGuiPlatformMonitor, - pub Viewports: ImVector_ImGuiViewportPtr, +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiNavItemData { + pub Window: *mut ImGuiWindow, + pub ID: ImGuiID, + pub FocusScopeId: ImGuiID, + pub RectRel: ImRect, + pub InFlags: ImGuiItemFlags, + pub DistBox: f32, + pub DistCenter: f32, + pub DistAxial: f32, } -impl Default for ImGuiPlatformIO { +impl Default for ImGuiNavItemData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2522,34 +2953,29 @@ impl Default for ImGuiPlatformIO { } } } +pub const ImGuiOldColumnFlags_None: ImGuiOldColumnFlags_ = 0; +pub const ImGuiOldColumnFlags_NoBorder: ImGuiOldColumnFlags_ = 1; +pub const ImGuiOldColumnFlags_NoResize: ImGuiOldColumnFlags_ = 2; +pub const ImGuiOldColumnFlags_NoPreserveWidths: ImGuiOldColumnFlags_ = 4; +pub const ImGuiOldColumnFlags_NoForceWithinWindow: ImGuiOldColumnFlags_ = 8; +pub const ImGuiOldColumnFlags_GrowParentContentsSize: ImGuiOldColumnFlags_ = 16; +pub type ImGuiOldColumnFlags_ = cty::c_uint; #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiPlatformMonitor { - pub MainPos: ImVec2, - pub MainSize: ImVec2, - pub WorkPos: ImVec2, - pub WorkSize: ImVec2, - pub DpiScale: f32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct StbUndoRecord { - pub where_: cty::c_int, - pub insert_length: cty::c_int, - pub delete_length: cty::c_int, - pub char_storage: cty::c_int, +pub struct ImGuiOldColumnData { + pub OffsetNorm: f32, + pub OffsetNormBeforeResize: f32, + pub Flags: ImGuiOldColumnFlags, + pub ClipRect: ImRect, } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct StbUndoState { - pub undo_rec: [StbUndoRecord; 99usize], - pub undo_char: [ImWchar; 999usize], - pub undo_point: cty::c_short, - pub redo_point: cty::c_short, - pub undo_char_point: cty::c_int, - pub redo_char_point: cty::c_int, +pub struct ImVector_ImGuiOldColumnData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiOldColumnData, } -impl Default for StbUndoState { +impl Default for ImVector_ImGuiOldColumnData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2560,23 +2986,26 @@ impl Default for StbUndoState { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct STB_TexteditState { - pub cursor: cty::c_int, - pub select_start: cty::c_int, - pub select_end: cty::c_int, - pub insert_mode: cty::c_uchar, - pub row_count_per_page: cty::c_int, - pub cursor_at_end_of_line: cty::c_uchar, - pub initialized: cty::c_uchar, - pub has_preferred_x: cty::c_uchar, - pub single_line: cty::c_uchar, - pub padding1: cty::c_uchar, - pub padding2: cty::c_uchar, - pub padding3: cty::c_uchar, - pub preferred_x: f32, - pub undostate: StbUndoState, +pub struct ImGuiOldColumns { + pub ID: ImGuiID, + pub Flags: ImGuiOldColumnFlags, + pub IsFirstFrame: bool, + pub IsBeingResized: bool, + pub Current: cty::c_int, + pub Count: cty::c_int, + pub OffMinX: f32, + pub OffMaxX: f32, + pub LineMinY: f32, + pub LineMaxY: f32, + pub HostCursorPosY: f32, + pub HostCursorMaxPosX: f32, + pub HostInitialClipRect: ImRect, + pub HostBackupClipRect: ImRect, + pub HostBackupParentWorkRect: ImRect, + pub Columns: ImVector_ImGuiOldColumnData, + pub Splitter: ImDrawListSplitter, } -impl Default for STB_TexteditState { +impl Default for ImGuiOldColumns { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2585,39 +3014,43 @@ impl Default for STB_TexteditState { } } } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct StbTexteditRow { - pub x0: f32, - pub x1: f32, - pub baseline_y_delta: f32, - pub ymin: f32, - pub ymax: f32, - pub num_chars: cty::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImVec1 { - pub x: f32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImVec2ih { - pub x: cty::c_short, - pub y: cty::c_short, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImRect { - pub Min: ImVec2, - pub Max: ImVec2, -} +pub const ImGuiDockNodeFlags_DockSpace: ImGuiDockNodeFlagsPrivate_ = 1024; +pub const ImGuiDockNodeFlags_CentralNode: ImGuiDockNodeFlagsPrivate_ = 2048; +pub const ImGuiDockNodeFlags_NoTabBar: ImGuiDockNodeFlagsPrivate_ = 4096; +pub const ImGuiDockNodeFlags_HiddenTabBar: ImGuiDockNodeFlagsPrivate_ = 8192; +pub const ImGuiDockNodeFlags_NoWindowMenuButton: ImGuiDockNodeFlagsPrivate_ = 16384; +pub const ImGuiDockNodeFlags_NoCloseButton: ImGuiDockNodeFlagsPrivate_ = 32768; +pub const ImGuiDockNodeFlags_NoDocking: ImGuiDockNodeFlagsPrivate_ = 65536; +pub const ImGuiDockNodeFlags_NoDockingSplitMe: ImGuiDockNodeFlagsPrivate_ = 131072; +pub const ImGuiDockNodeFlags_NoDockingSplitOther: ImGuiDockNodeFlagsPrivate_ = 262144; +pub const ImGuiDockNodeFlags_NoDockingOverMe: ImGuiDockNodeFlagsPrivate_ = 524288; +pub const ImGuiDockNodeFlags_NoDockingOverOther: ImGuiDockNodeFlagsPrivate_ = 1048576; +pub const ImGuiDockNodeFlags_NoDockingOverEmpty: ImGuiDockNodeFlagsPrivate_ = 2097152; +pub const ImGuiDockNodeFlags_NoResizeX: ImGuiDockNodeFlagsPrivate_ = 4194304; +pub const ImGuiDockNodeFlags_NoResizeY: ImGuiDockNodeFlagsPrivate_ = 8388608; +pub const ImGuiDockNodeFlags_SharedFlagsInheritMask_: ImGuiDockNodeFlagsPrivate_ = -1; +pub const ImGuiDockNodeFlags_NoResizeFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12582944; +pub const ImGuiDockNodeFlags_LocalFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12713072; +pub const ImGuiDockNodeFlags_LocalFlagsTransferMask_: ImGuiDockNodeFlagsPrivate_ = 12712048; +pub const ImGuiDockNodeFlags_SavedFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12712992; +pub type ImGuiDockNodeFlagsPrivate_ = cty::c_int; +pub const ImGuiDataAuthority_Auto: ImGuiDataAuthority_ = 0; +pub const ImGuiDataAuthority_DockNode: ImGuiDataAuthority_ = 1; +pub const ImGuiDataAuthority_Window: ImGuiDataAuthority_ = 2; +pub type ImGuiDataAuthority_ = cty::c_uint; +pub const ImGuiDockNodeState_Unknown: ImGuiDockNodeState = 0; +pub const ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow: ImGuiDockNodeState = 1; +pub const ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing: ImGuiDockNodeState = 2; +pub const ImGuiDockNodeState_HostWindowVisible: ImGuiDockNodeState = 3; +pub type ImGuiDockNodeState = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImBitVector { - pub Storage: ImVector_ImU32, +pub struct ImVector_ImGuiWindowPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiWindow, } -impl Default for ImBitVector { +impl Default for ImVector_ImGuiWindowPtr { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2628,20 +3061,39 @@ impl Default for ImBitVector { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImDrawListSharedData { - pub TexUvWhitePixel: ImVec2, - pub Font: *mut ImFont, - pub FontSize: f32, - pub CurveTessellationTol: f32, - pub CircleSegmentMaxError: f32, - pub ClipRectFullscreen: ImVec4, - pub InitialFlags: ImDrawListFlags, - pub ArcFastVtx: [ImVec2; 48usize], - pub ArcFastRadiusCutoff: f32, - pub CircleSegmentCounts: [ImU8; 64usize], - pub TexUvLines: *const ImVec4, +pub struct ImGuiDockNode { + pub ID: ImGuiID, + pub SharedFlags: ImGuiDockNodeFlags, + pub LocalFlags: ImGuiDockNodeFlags, + pub LocalFlagsInWindows: ImGuiDockNodeFlags, + pub MergedFlags: ImGuiDockNodeFlags, + pub State: ImGuiDockNodeState, + pub ParentNode: *mut ImGuiDockNode, + pub ChildNodes: [*mut ImGuiDockNode; 2usize], + pub Windows: ImVector_ImGuiWindowPtr, + pub TabBar: *mut ImGuiTabBar, + pub Pos: ImVec2, + pub Size: ImVec2, + pub SizeRef: ImVec2, + pub SplitAxis: ImGuiAxis, + pub WindowClass: ImGuiWindowClass, + pub LastBgColor: ImU32, + pub HostWindow: *mut ImGuiWindow, + pub VisibleWindow: *mut ImGuiWindow, + pub CentralNode: *mut ImGuiDockNode, + pub OnlyNodeWithWindows: *mut ImGuiDockNode, + pub CountNodeWithWindows: cty::c_int, + pub LastFrameAlive: cty::c_int, + pub LastFrameActive: cty::c_int, + pub LastFrameFocused: cty::c_int, + pub LastFocusedNodeId: ImGuiID, + pub SelectedTabId: ImGuiID, + pub WantCloseTabId: ImGuiID, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, + pub __bindgen_padding_0: u8, } -impl Default for ImDrawListSharedData { +impl Default for ImGuiDockNode { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2650,325 +3102,261 @@ impl Default for ImDrawListSharedData { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImDrawDataBuilder { - pub Layers: [ImVector_ImDrawListPtr; 2usize], -} -impl Default for ImDrawDataBuilder { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); +impl ImGuiDockNode { + #[inline] + pub fn AuthorityForPos(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForPos(&mut self, val: ImGuiDataAuthority) { unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 3u8, val as u64) } } -} -pub const ImGuiItemFlags_None: ImGuiItemFlags_ = 0; -pub const ImGuiItemFlags_NoTabStop: ImGuiItemFlags_ = 1; -pub const ImGuiItemFlags_ButtonRepeat: ImGuiItemFlags_ = 2; -pub const ImGuiItemFlags_Disabled: ImGuiItemFlags_ = 4; -pub const ImGuiItemFlags_NoNav: ImGuiItemFlags_ = 8; -pub const ImGuiItemFlags_NoNavDefaultFocus: ImGuiItemFlags_ = 16; -pub const ImGuiItemFlags_SelectableDontClosePopup: ImGuiItemFlags_ = 32; -pub const ImGuiItemFlags_MixedValue: ImGuiItemFlags_ = 64; -pub const ImGuiItemFlags_ReadOnly: ImGuiItemFlags_ = 128; -pub const ImGuiItemFlags_Inputable: ImGuiItemFlags_ = 256; -pub type ImGuiItemFlags_ = cty::c_uint; -pub const ImGuiItemStatusFlags_None: ImGuiItemStatusFlags_ = 0; -pub const ImGuiItemStatusFlags_HoveredRect: ImGuiItemStatusFlags_ = 1; -pub const ImGuiItemStatusFlags_HasDisplayRect: ImGuiItemStatusFlags_ = 2; -pub const ImGuiItemStatusFlags_Edited: ImGuiItemStatusFlags_ = 4; -pub const ImGuiItemStatusFlags_ToggledSelection: ImGuiItemStatusFlags_ = 8; -pub const ImGuiItemStatusFlags_ToggledOpen: ImGuiItemStatusFlags_ = 16; -pub const ImGuiItemStatusFlags_HasDeactivated: ImGuiItemStatusFlags_ = 32; -pub const ImGuiItemStatusFlags_Deactivated: ImGuiItemStatusFlags_ = 64; -pub const ImGuiItemStatusFlags_HoveredWindow: ImGuiItemStatusFlags_ = 128; -pub const ImGuiItemStatusFlags_FocusedByTabbing: ImGuiItemStatusFlags_ = 256; -pub type ImGuiItemStatusFlags_ = cty::c_uint; -pub const ImGuiInputTextFlags_Multiline: ImGuiInputTextFlagsPrivate_ = 67108864; -pub const ImGuiInputTextFlags_NoMarkEdited: ImGuiInputTextFlagsPrivate_ = 134217728; -pub const ImGuiInputTextFlags_MergedItem: ImGuiInputTextFlagsPrivate_ = 268435456; -pub type ImGuiInputTextFlagsPrivate_ = cty::c_uint; -pub const ImGuiButtonFlags_PressedOnClick: ImGuiButtonFlagsPrivate_ = 16; -pub const ImGuiButtonFlags_PressedOnClickRelease: ImGuiButtonFlagsPrivate_ = 32; -pub const ImGuiButtonFlags_PressedOnClickReleaseAnywhere: ImGuiButtonFlagsPrivate_ = 64; -pub const ImGuiButtonFlags_PressedOnRelease: ImGuiButtonFlagsPrivate_ = 128; -pub const ImGuiButtonFlags_PressedOnDoubleClick: ImGuiButtonFlagsPrivate_ = 256; -pub const ImGuiButtonFlags_PressedOnDragDropHold: ImGuiButtonFlagsPrivate_ = 512; -pub const ImGuiButtonFlags_Repeat: ImGuiButtonFlagsPrivate_ = 1024; -pub const ImGuiButtonFlags_FlattenChildren: ImGuiButtonFlagsPrivate_ = 2048; -pub const ImGuiButtonFlags_AllowItemOverlap: ImGuiButtonFlagsPrivate_ = 4096; -pub const ImGuiButtonFlags_DontClosePopups: ImGuiButtonFlagsPrivate_ = 8192; -pub const ImGuiButtonFlags_AlignTextBaseLine: ImGuiButtonFlagsPrivate_ = 32768; -pub const ImGuiButtonFlags_NoKeyModifiers: ImGuiButtonFlagsPrivate_ = 65536; -pub const ImGuiButtonFlags_NoHoldingActiveId: ImGuiButtonFlagsPrivate_ = 131072; -pub const ImGuiButtonFlags_NoNavFocus: ImGuiButtonFlagsPrivate_ = 262144; -pub const ImGuiButtonFlags_NoHoveredOnFocus: ImGuiButtonFlagsPrivate_ = 524288; -pub const ImGuiButtonFlags_PressedOnMask_: ImGuiButtonFlagsPrivate_ = 1008; -pub const ImGuiButtonFlags_PressedOnDefault_: ImGuiButtonFlagsPrivate_ = 32; -pub type ImGuiButtonFlagsPrivate_ = cty::c_uint; -pub const ImGuiComboFlags_CustomPreview: ImGuiComboFlagsPrivate_ = 1048576; -pub type ImGuiComboFlagsPrivate_ = cty::c_uint; -pub const ImGuiSliderFlags_Vertical: ImGuiSliderFlagsPrivate_ = 1048576; -pub const ImGuiSliderFlags_ReadOnly: ImGuiSliderFlagsPrivate_ = 2097152; -pub type ImGuiSliderFlagsPrivate_ = cty::c_uint; -pub const ImGuiSelectableFlags_NoHoldingActiveID: ImGuiSelectableFlagsPrivate_ = 1048576; -pub const ImGuiSelectableFlags_SelectOnNav: ImGuiSelectableFlagsPrivate_ = 2097152; -pub const ImGuiSelectableFlags_SelectOnClick: ImGuiSelectableFlagsPrivate_ = 4194304; -pub const ImGuiSelectableFlags_SelectOnRelease: ImGuiSelectableFlagsPrivate_ = 8388608; -pub const ImGuiSelectableFlags_SpanAvailWidth: ImGuiSelectableFlagsPrivate_ = 16777216; -pub const ImGuiSelectableFlags_DrawHoveredWhenHeld: ImGuiSelectableFlagsPrivate_ = 33554432; -pub const ImGuiSelectableFlags_SetNavIdOnHover: ImGuiSelectableFlagsPrivate_ = 67108864; -pub const ImGuiSelectableFlags_NoPadWithHalfSpacing: ImGuiSelectableFlagsPrivate_ = 134217728; -pub type ImGuiSelectableFlagsPrivate_ = cty::c_uint; -pub const ImGuiTreeNodeFlags_ClipLabelForTrailingButton: ImGuiTreeNodeFlagsPrivate_ = 1048576; -pub type ImGuiTreeNodeFlagsPrivate_ = cty::c_uint; -pub const ImGuiSeparatorFlags_None: ImGuiSeparatorFlags_ = 0; -pub const ImGuiSeparatorFlags_Horizontal: ImGuiSeparatorFlags_ = 1; -pub const ImGuiSeparatorFlags_Vertical: ImGuiSeparatorFlags_ = 2; -pub const ImGuiSeparatorFlags_SpanAllColumns: ImGuiSeparatorFlags_ = 4; -pub type ImGuiSeparatorFlags_ = cty::c_uint; -pub const ImGuiTextFlags_None: ImGuiTextFlags_ = 0; -pub const ImGuiTextFlags_NoWidthForLargeClippedText: ImGuiTextFlags_ = 1; -pub type ImGuiTextFlags_ = cty::c_uint; -pub const ImGuiTooltipFlags_None: ImGuiTooltipFlags_ = 0; -pub const ImGuiTooltipFlags_OverridePreviousTooltip: ImGuiTooltipFlags_ = 1; -pub type ImGuiTooltipFlags_ = cty::c_uint; -pub const ImGuiLayoutType_Horizontal: ImGuiLayoutType_ = 0; -pub const ImGuiLayoutType_Vertical: ImGuiLayoutType_ = 1; -pub type ImGuiLayoutType_ = cty::c_uint; -pub const ImGuiLogType_None: ImGuiLogType = 0; -pub const ImGuiLogType_TTY: ImGuiLogType = 1; -pub const ImGuiLogType_File: ImGuiLogType = 2; -pub const ImGuiLogType_Buffer: ImGuiLogType = 3; -pub const ImGuiLogType_Clipboard: ImGuiLogType = 4; -pub type ImGuiLogType = cty::c_uint; -pub const ImGuiAxis_None: ImGuiAxis = -1; -pub const ImGuiAxis_X: ImGuiAxis = 0; -pub const ImGuiAxis_Y: ImGuiAxis = 1; -pub type ImGuiAxis = cty::c_int; -pub const ImGuiPlotType_Lines: ImGuiPlotType = 0; -pub const ImGuiPlotType_Histogram: ImGuiPlotType = 1; -pub type ImGuiPlotType = cty::c_uint; -pub const ImGuiInputSource_None: ImGuiInputSource = 0; -pub const ImGuiInputSource_Mouse: ImGuiInputSource = 1; -pub const ImGuiInputSource_Keyboard: ImGuiInputSource = 2; -pub const ImGuiInputSource_Gamepad: ImGuiInputSource = 3; -pub const ImGuiInputSource_Nav: ImGuiInputSource = 4; -pub const ImGuiInputSource_Clipboard: ImGuiInputSource = 5; -pub const ImGuiInputSource_COUNT: ImGuiInputSource = 6; -pub type ImGuiInputSource = cty::c_uint; -pub const ImGuiInputReadMode_Down: ImGuiInputReadMode = 0; -pub const ImGuiInputReadMode_Pressed: ImGuiInputReadMode = 1; -pub const ImGuiInputReadMode_Released: ImGuiInputReadMode = 2; -pub const ImGuiInputReadMode_Repeat: ImGuiInputReadMode = 3; -pub const ImGuiInputReadMode_RepeatSlow: ImGuiInputReadMode = 4; -pub const ImGuiInputReadMode_RepeatFast: ImGuiInputReadMode = 5; -pub type ImGuiInputReadMode = cty::c_uint; -pub const ImGuiPopupPositionPolicy_Default: ImGuiPopupPositionPolicy = 0; -pub const ImGuiPopupPositionPolicy_ComboBox: ImGuiPopupPositionPolicy = 1; -pub const ImGuiPopupPositionPolicy_Tooltip: ImGuiPopupPositionPolicy = 2; -pub type ImGuiPopupPositionPolicy = cty::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiDataTypeTempStorage { - pub Data: [ImU8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiDataTypeInfo { - pub Size: usize, - pub Name: *const cty::c_char, - pub PrintFmt: *const cty::c_char, - pub ScanFmt: *const cty::c_char, -} -impl Default for ImGuiDataTypeInfo { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); + #[inline] + pub fn AuthorityForSize(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForSize(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(3usize, 3u8, val as u64) + } + } + #[inline] + pub fn AuthorityForViewport(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForViewport(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(6usize, 3u8, val as u64) + } + } + #[inline] + pub fn IsVisible(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsVisible(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsFocused(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsFocused(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(10usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsBgDrawnThisFrame(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsBgDrawnThisFrame(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(11usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasCloseButton(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasCloseButton(&mut self, val: bool) { unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) } } -} -pub const ImGuiDataType_String: ImGuiDataTypePrivate_ = 11; -pub const ImGuiDataType_Pointer: ImGuiDataTypePrivate_ = 12; -pub const ImGuiDataType_ID: ImGuiDataTypePrivate_ = 13; -pub type ImGuiDataTypePrivate_ = cty::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiColorMod { - pub Col: ImGuiCol, - pub BackupValue: ImVec4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ImGuiStyleMod { - pub VarIdx: ImGuiStyleVar, - pub __bindgen_anon_1: ImGuiStyleMod__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ImGuiStyleMod__bindgen_ty_1 { - pub BackupInt: [cty::c_int; 2usize], - pub BackupFloat: [f32; 2usize], -} -impl Default for ImGuiStyleMod__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); + #[inline] + pub fn HasWindowMenuButton(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasWindowMenuButton(&mut self, val: bool) { unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) } } -} -impl ::core::fmt::Debug for ImGuiStyleMod__bindgen_ty_1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!(f, "ImGuiStyleMod__bindgen_ty_1 {{ union }}") + #[inline] + pub fn HasCentralNodeChild(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) } } -} -impl Default for ImGuiStyleMod { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); + #[inline] + pub fn set_HasCentralNodeChild(&mut self, val: bool) { unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) } } -} -impl ::core::fmt::Debug for ImGuiStyleMod { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - write!( - f, - "ImGuiStyleMod {{ VarIdx: {:?}, __bindgen_anon_1: {:?} }}", - self.VarIdx, self.__bindgen_anon_1 - ) + #[inline] + pub fn WantCloseAll(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) } } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiComboPreviewData { - pub PreviewRect: ImRect, - pub BackupCursorPos: ImVec2, - pub BackupCursorMaxPos: ImVec2, - pub BackupCursorPosPrevLine: ImVec2, - pub BackupPrevLineTextBaseOffset: f32, - pub BackupLayout: ImGuiLayoutType, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiGroupData { - pub WindowID: ImGuiID, - pub BackupCursorPos: ImVec2, - pub BackupCursorMaxPos: ImVec2, - pub BackupIndent: ImVec1, - pub BackupGroupOffset: ImVec1, - pub BackupCurrLineSize: ImVec2, - pub BackupCurrLineTextBaseOffset: f32, - pub BackupActiveIdIsAlive: ImGuiID, - pub BackupActiveIdPreviousFrameIsAlive: bool, - pub BackupHoveredIdIsAlive: bool, - pub EmitItem: bool, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiMenuColumns { - pub TotalWidth: ImU32, - pub NextTotalWidth: ImU32, - pub Spacing: ImU16, - pub OffsetIcon: ImU16, - pub OffsetLabel: ImU16, - pub OffsetShortcut: ImU16, - pub OffsetMark: ImU16, - pub Widths: [ImU16; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiInputTextState { - pub ID: ImGuiID, - pub CurLenW: cty::c_int, - pub CurLenA: cty::c_int, - pub TextW: ImVector_ImWchar, - pub TextA: ImVector_char, - pub InitialTextA: ImVector_char, - pub TextAIsValid: bool, - pub BufCapacityA: cty::c_int, - pub ScrollX: f32, - pub Stb: STB_TexteditState, - pub CursorAnim: f32, - pub CursorFollow: bool, - pub SelectedAllMouseLock: bool, - pub Edited: bool, - pub Flags: ImGuiInputTextFlags, -} -impl Default for ImGuiInputTextState { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); + #[inline] + pub fn set_WantCloseAll(&mut self, val: bool) { unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantLockSizeOnce(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantLockSizeOnce(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(16usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantMouseMove(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantMouseMove(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(17usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantHiddenTabBarUpdate(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantHiddenTabBarUpdate(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(18usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantHiddenTabBarToggle(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantHiddenTabBarToggle(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(19usize, 1u8, val as u64) } } + #[inline] + pub fn new_bitfield_1( + AuthorityForPos: ImGuiDataAuthority, + AuthorityForSize: ImGuiDataAuthority, + AuthorityForViewport: ImGuiDataAuthority, + IsVisible: bool, + IsFocused: bool, + IsBgDrawnThisFrame: bool, + HasCloseButton: bool, + HasWindowMenuButton: bool, + HasCentralNodeChild: bool, + WantCloseAll: bool, + WantLockSizeOnce: bool, + WantMouseMove: bool, + WantHiddenTabBarUpdate: bool, + WantHiddenTabBarToggle: bool, + ) -> __BindgenBitfieldUnit<[u8; 3usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 3u8, { + let AuthorityForPos: u32 = unsafe { ::core::mem::transmute(AuthorityForPos) }; + AuthorityForPos as u64 + }); + __bindgen_bitfield_unit.set(3usize, 3u8, { + let AuthorityForSize: u32 = unsafe { ::core::mem::transmute(AuthorityForSize) }; + AuthorityForSize as u64 + }); + __bindgen_bitfield_unit.set(6usize, 3u8, { + let AuthorityForViewport: u32 = unsafe { ::core::mem::transmute(AuthorityForViewport) }; + AuthorityForViewport as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let IsVisible: u8 = unsafe { ::core::mem::transmute(IsVisible) }; + IsVisible as u64 + }); + __bindgen_bitfield_unit.set(10usize, 1u8, { + let IsFocused: u8 = unsafe { ::core::mem::transmute(IsFocused) }; + IsFocused as u64 + }); + __bindgen_bitfield_unit.set(11usize, 1u8, { + let IsBgDrawnThisFrame: u8 = unsafe { ::core::mem::transmute(IsBgDrawnThisFrame) }; + IsBgDrawnThisFrame as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let HasCloseButton: u8 = unsafe { ::core::mem::transmute(HasCloseButton) }; + HasCloseButton as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let HasWindowMenuButton: u8 = unsafe { ::core::mem::transmute(HasWindowMenuButton) }; + HasWindowMenuButton as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let HasCentralNodeChild: u8 = unsafe { ::core::mem::transmute(HasCentralNodeChild) }; + HasCentralNodeChild as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let WantCloseAll: u8 = unsafe { ::core::mem::transmute(WantCloseAll) }; + WantCloseAll as u64 + }); + __bindgen_bitfield_unit.set(16usize, 1u8, { + let WantLockSizeOnce: u8 = unsafe { ::core::mem::transmute(WantLockSizeOnce) }; + WantLockSizeOnce as u64 + }); + __bindgen_bitfield_unit.set(17usize, 1u8, { + let WantMouseMove: u8 = unsafe { ::core::mem::transmute(WantMouseMove) }; + WantMouseMove as u64 + }); + __bindgen_bitfield_unit.set(18usize, 1u8, { + let WantHiddenTabBarUpdate: u8 = + unsafe { ::core::mem::transmute(WantHiddenTabBarUpdate) }; + WantHiddenTabBarUpdate as u64 + }); + __bindgen_bitfield_unit.set(19usize, 1u8, { + let WantHiddenTabBarToggle: u8 = + unsafe { ::core::mem::transmute(WantHiddenTabBarToggle) }; + WantHiddenTabBarToggle as u64 + }); + __bindgen_bitfield_unit + } } +pub const ImGuiWindowDockStyleCol_Text: ImGuiWindowDockStyleCol = 0; +pub const ImGuiWindowDockStyleCol_Tab: ImGuiWindowDockStyleCol = 1; +pub const ImGuiWindowDockStyleCol_TabHovered: ImGuiWindowDockStyleCol = 2; +pub const ImGuiWindowDockStyleCol_TabActive: ImGuiWindowDockStyleCol = 3; +pub const ImGuiWindowDockStyleCol_TabUnfocused: ImGuiWindowDockStyleCol = 4; +pub const ImGuiWindowDockStyleCol_TabUnfocusedActive: ImGuiWindowDockStyleCol = 5; +pub const ImGuiWindowDockStyleCol_COUNT: ImGuiWindowDockStyleCol = 6; +pub type ImGuiWindowDockStyleCol = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiPopupData { - pub PopupId: ImGuiID, - pub Window: *mut ImGuiWindow, - pub SourceWindow: *mut ImGuiWindow, - pub OpenFrameCount: cty::c_int, - pub OpenParentId: ImGuiID, - pub OpenPopupPos: ImVec2, - pub OpenMousePos: ImVec2, -} -impl Default for ImGuiPopupData { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowDockStyle { + pub Colors: [ImU32; 6usize], } -pub const ImGuiNextWindowDataFlags_None: ImGuiNextWindowDataFlags_ = 0; -pub const ImGuiNextWindowDataFlags_HasPos: ImGuiNextWindowDataFlags_ = 1; -pub const ImGuiNextWindowDataFlags_HasSize: ImGuiNextWindowDataFlags_ = 2; -pub const ImGuiNextWindowDataFlags_HasContentSize: ImGuiNextWindowDataFlags_ = 4; -pub const ImGuiNextWindowDataFlags_HasCollapsed: ImGuiNextWindowDataFlags_ = 8; -pub const ImGuiNextWindowDataFlags_HasSizeConstraint: ImGuiNextWindowDataFlags_ = 16; -pub const ImGuiNextWindowDataFlags_HasFocus: ImGuiNextWindowDataFlags_ = 32; -pub const ImGuiNextWindowDataFlags_HasBgAlpha: ImGuiNextWindowDataFlags_ = 64; -pub const ImGuiNextWindowDataFlags_HasScroll: ImGuiNextWindowDataFlags_ = 128; -pub const ImGuiNextWindowDataFlags_HasViewport: ImGuiNextWindowDataFlags_ = 256; -pub const ImGuiNextWindowDataFlags_HasDock: ImGuiNextWindowDataFlags_ = 512; -pub const ImGuiNextWindowDataFlags_HasWindowClass: ImGuiNextWindowDataFlags_ = 1024; -pub type ImGuiNextWindowDataFlags_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiNextWindowData { - pub Flags: ImGuiNextWindowDataFlags, - pub PosCond: ImGuiCond, - pub SizeCond: ImGuiCond, - pub CollapsedCond: ImGuiCond, - pub DockCond: ImGuiCond, - pub PosVal: ImVec2, - pub PosPivotVal: ImVec2, - pub SizeVal: ImVec2, - pub ContentSizeVal: ImVec2, - pub ScrollVal: ImVec2, - pub PosUndock: bool, - pub CollapsedVal: bool, - pub SizeConstraintRect: ImRect, - pub SizeCallback: ImGuiSizeCallback, - pub SizeCallbackUserData: *mut cty::c_void, - pub BgAlphaVal: f32, - pub ViewportId: ImGuiID, - pub DockId: ImGuiID, - pub WindowClass: ImGuiWindowClass, - pub MenuBarOffsetMinVal: ImVec2, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiDockRequest { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiDockRequest, } -impl Default for ImGuiNextWindowData { +impl Default for ImVector_ImGuiDockRequest { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -2977,50 +3365,14 @@ impl Default for ImGuiNextWindowData { } } } -pub const ImGuiNextItemDataFlags_None: ImGuiNextItemDataFlags_ = 0; -pub const ImGuiNextItemDataFlags_HasWidth: ImGuiNextItemDataFlags_ = 1; -pub const ImGuiNextItemDataFlags_HasOpen: ImGuiNextItemDataFlags_ = 2; -pub type ImGuiNextItemDataFlags_ = cty::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiNextItemData { - pub Flags: ImGuiNextItemDataFlags, - pub Width: f32, - pub FocusScopeId: ImGuiID, - pub OpenCond: ImGuiCond, - pub OpenVal: bool, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiLastItemData { - pub ID: ImGuiID, - pub InFlags: ImGuiItemFlags, - pub StatusFlags: ImGuiItemStatusFlags, - pub Rect: ImRect, - pub NavRect: ImRect, - pub DisplayRect: ImRect, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiStackSizes { - pub SizeOfIDStack: cty::c_short, - pub SizeOfColorStack: cty::c_short, - pub SizeOfStyleVarStack: cty::c_short, - pub SizeOfFontStack: cty::c_short, - pub SizeOfFocusScopeStack: cty::c_short, - pub SizeOfGroupStack: cty::c_short, - pub SizeOfItemFlagsStack: cty::c_short, - pub SizeOfBeginPopupStack: cty::c_short, - pub SizeOfDisabledStack: cty::c_short, -} #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiWindowStackData { - pub Window: *mut ImGuiWindow, - pub ParentLastItemDataBackup: ImGuiLastItemData, - pub StackSizesOnBegin: ImGuiStackSizes, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiDockNodeSettings { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiDockNodeSettings, } -impl Default for ImGuiWindowStackData { +impl Default for ImVector_ImGuiDockNodeSettings { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3030,18 +3382,14 @@ impl Default for ImGuiWindowStackData { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiShrinkWidthItem { - pub Index: cty::c_int, - pub Width: f32, -} -#[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiPtrOrIndex { - pub Ptr: *mut cty::c_void, - pub Index: cty::c_int, +pub struct ImGuiDockContext { + pub Nodes: ImGuiStorage, + pub Requests: ImVector_ImGuiDockRequest, + pub NodesSettings: ImVector_ImGuiDockNodeSettings, + pub WantFullRebuild: bool, } -impl Default for ImGuiPtrOrIndex { +impl Default for ImGuiDockContext { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3051,24 +3399,31 @@ impl Default for ImGuiPtrOrIndex { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiListClipperRange { - pub Min: cty::c_int, - pub Max: cty::c_int, - pub PosToIndexConvert: bool, - pub PosToIndexOffsetMin: ImS8, - pub PosToIndexOffsetMax: ImS8, -} -#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiListClipperData { - pub ListClipper: *mut ImGuiListClipper, - pub LossynessOffset: f32, - pub StepNo: cty::c_int, - pub ItemsFrozen: cty::c_int, - pub Ranges: ImVector_ImGuiListClipperRange, +pub struct ImGuiViewportP { + pub _ImGuiViewport: ImGuiViewport, + pub Idx: cty::c_int, + pub LastFrameActive: cty::c_int, + pub LastFrontMostStampCount: cty::c_int, + pub LastNameHash: ImGuiID, + pub LastPos: ImVec2, + pub Alpha: f32, + pub LastAlpha: f32, + pub PlatformMonitor: cty::c_short, + pub Window: *mut ImGuiWindow, + pub DrawListsLastFrame: [cty::c_int; 2usize], + pub DrawLists: [*mut ImDrawList; 2usize], + pub DrawDataP: ImDrawData, + pub DrawDataBuilder: ImDrawDataBuilder, + pub LastPlatformPos: ImVec2, + pub LastPlatformSize: ImVec2, + pub LastRendererSize: ImVec2, + pub WorkOffsetMin: ImVec2, + pub WorkOffsetMax: ImVec2, + pub BuildWorkOffsetMin: ImVec2, + pub BuildWorkOffsetMax: ImVec2, } -impl Default for ImGuiListClipperData { +impl Default for ImGuiViewportP { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3077,66 +3432,59 @@ impl Default for ImGuiListClipperData { } } } -pub const ImGuiActivateFlags_None: ImGuiActivateFlags_ = 0; -pub const ImGuiActivateFlags_PreferInput: ImGuiActivateFlags_ = 1; -pub const ImGuiActivateFlags_PreferTweak: ImGuiActivateFlags_ = 2; -pub const ImGuiActivateFlags_TryToPreserveState: ImGuiActivateFlags_ = 4; -pub type ImGuiActivateFlags_ = cty::c_uint; -pub const ImGuiScrollFlags_None: ImGuiScrollFlags_ = 0; -pub const ImGuiScrollFlags_KeepVisibleEdgeX: ImGuiScrollFlags_ = 1; -pub const ImGuiScrollFlags_KeepVisibleEdgeY: ImGuiScrollFlags_ = 2; -pub const ImGuiScrollFlags_KeepVisibleCenterX: ImGuiScrollFlags_ = 4; -pub const ImGuiScrollFlags_KeepVisibleCenterY: ImGuiScrollFlags_ = 8; -pub const ImGuiScrollFlags_AlwaysCenterX: ImGuiScrollFlags_ = 16; -pub const ImGuiScrollFlags_AlwaysCenterY: ImGuiScrollFlags_ = 32; -pub const ImGuiScrollFlags_NoScrollParent: ImGuiScrollFlags_ = 64; -pub const ImGuiScrollFlags_MaskX_: ImGuiScrollFlags_ = 21; -pub const ImGuiScrollFlags_MaskY_: ImGuiScrollFlags_ = 42; -pub type ImGuiScrollFlags_ = cty::c_uint; -pub const ImGuiNavHighlightFlags_None: ImGuiNavHighlightFlags_ = 0; -pub const ImGuiNavHighlightFlags_TypeDefault: ImGuiNavHighlightFlags_ = 1; -pub const ImGuiNavHighlightFlags_TypeThin: ImGuiNavHighlightFlags_ = 2; -pub const ImGuiNavHighlightFlags_AlwaysDraw: ImGuiNavHighlightFlags_ = 4; -pub const ImGuiNavHighlightFlags_NoRounding: ImGuiNavHighlightFlags_ = 8; -pub type ImGuiNavHighlightFlags_ = cty::c_uint; -pub const ImGuiNavDirSourceFlags_None: ImGuiNavDirSourceFlags_ = 0; -pub const ImGuiNavDirSourceFlags_RawKeyboard: ImGuiNavDirSourceFlags_ = 1; -pub const ImGuiNavDirSourceFlags_Keyboard: ImGuiNavDirSourceFlags_ = 2; -pub const ImGuiNavDirSourceFlags_PadDPad: ImGuiNavDirSourceFlags_ = 4; -pub const ImGuiNavDirSourceFlags_PadLStick: ImGuiNavDirSourceFlags_ = 8; -pub type ImGuiNavDirSourceFlags_ = cty::c_uint; -pub const ImGuiNavMoveFlags_None: ImGuiNavMoveFlags_ = 0; -pub const ImGuiNavMoveFlags_LoopX: ImGuiNavMoveFlags_ = 1; -pub const ImGuiNavMoveFlags_LoopY: ImGuiNavMoveFlags_ = 2; -pub const ImGuiNavMoveFlags_WrapX: ImGuiNavMoveFlags_ = 4; -pub const ImGuiNavMoveFlags_WrapY: ImGuiNavMoveFlags_ = 8; -pub const ImGuiNavMoveFlags_AllowCurrentNavId: ImGuiNavMoveFlags_ = 16; -pub const ImGuiNavMoveFlags_AlsoScoreVisibleSet: ImGuiNavMoveFlags_ = 32; -pub const ImGuiNavMoveFlags_ScrollToEdgeY: ImGuiNavMoveFlags_ = 64; -pub const ImGuiNavMoveFlags_Forwarded: ImGuiNavMoveFlags_ = 128; -pub const ImGuiNavMoveFlags_DebugNoResult: ImGuiNavMoveFlags_ = 256; -pub const ImGuiNavMoveFlags_FocusApi: ImGuiNavMoveFlags_ = 512; -pub const ImGuiNavMoveFlags_Tabbing: ImGuiNavMoveFlags_ = 1024; -pub const ImGuiNavMoveFlags_Activate: ImGuiNavMoveFlags_ = 2048; -pub const ImGuiNavMoveFlags_DontSetNavHighlight: ImGuiNavMoveFlags_ = 4096; -pub type ImGuiNavMoveFlags_ = cty::c_uint; -pub const ImGuiNavLayer_Main: ImGuiNavLayer = 0; -pub const ImGuiNavLayer_Menu: ImGuiNavLayer = 1; -pub const ImGuiNavLayer_COUNT: ImGuiNavLayer = 2; -pub type ImGuiNavLayer = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiNavItemData { - pub Window: *mut ImGuiWindow, +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowSettings { pub ID: ImGuiID, - pub FocusScopeId: ImGuiID, - pub RectRel: ImRect, - pub InFlags: ImGuiItemFlags, - pub DistBox: f32, - pub DistCenter: f32, - pub DistAxial: f32, + pub Pos: ImVec2ih, + pub Size: ImVec2ih, + pub ViewportPos: ImVec2ih, + pub ViewportId: ImGuiID, + pub DockId: ImGuiID, + pub ClassId: ImGuiID, + pub DockOrder: cty::c_short, + pub Collapsed: bool, + pub WantApply: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiSettingsHandler { + pub TypeName: *const cty::c_char, + pub TypeHash: ImGuiID, + pub ClearAllFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub ReadInitFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub ReadOpenFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + name: *const cty::c_char, + ) -> *mut cty::c_void, + >, + pub ReadLineFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + entry: *mut cty::c_void, + line: *const cty::c_char, + ), + >, + pub ApplyAllFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub WriteAllFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + out_buf: *mut ImGuiTextBuffer, + ), + >, + pub UserData: *mut cty::c_void, } -impl Default for ImGuiNavItemData { +impl Default for ImGuiSettingsHandler { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3145,43 +3493,23 @@ impl Default for ImGuiNavItemData { } } } -pub const ImGuiOldColumnFlags_None: ImGuiOldColumnFlags_ = 0; -pub const ImGuiOldColumnFlags_NoBorder: ImGuiOldColumnFlags_ = 1; -pub const ImGuiOldColumnFlags_NoResize: ImGuiOldColumnFlags_ = 2; -pub const ImGuiOldColumnFlags_NoPreserveWidths: ImGuiOldColumnFlags_ = 4; -pub const ImGuiOldColumnFlags_NoForceWithinWindow: ImGuiOldColumnFlags_ = 8; -pub const ImGuiOldColumnFlags_GrowParentContentsSize: ImGuiOldColumnFlags_ = 16; -pub type ImGuiOldColumnFlags_ = cty::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq)] -pub struct ImGuiOldColumnData { - pub OffsetNorm: f32, - pub OffsetNormBeforeResize: f32, - pub Flags: ImGuiOldColumnFlags, - pub ClipRect: ImRect, -} +pub const ImGuiLocKey_TableSizeOne: ImGuiLocKey = 0; +pub const ImGuiLocKey_TableSizeAllFit: ImGuiLocKey = 1; +pub const ImGuiLocKey_TableSizeAllDefault: ImGuiLocKey = 2; +pub const ImGuiLocKey_TableResetOrder: ImGuiLocKey = 3; +pub const ImGuiLocKey_WindowingMainMenuBar: ImGuiLocKey = 4; +pub const ImGuiLocKey_WindowingPopup: ImGuiLocKey = 5; +pub const ImGuiLocKey_WindowingUntitled: ImGuiLocKey = 6; +pub const ImGuiLocKey_DockingHideTabBar: ImGuiLocKey = 7; +pub const ImGuiLocKey_COUNT: ImGuiLocKey = 8; +pub type ImGuiLocKey = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiOldColumns { - pub ID: ImGuiID, - pub Flags: ImGuiOldColumnFlags, - pub IsFirstFrame: bool, - pub IsBeingResized: bool, - pub Current: cty::c_int, - pub Count: cty::c_int, - pub OffMinX: f32, - pub OffMaxX: f32, - pub LineMinY: f32, - pub LineMaxY: f32, - pub HostCursorPosY: f32, - pub HostCursorMaxPosX: f32, - pub HostInitialClipRect: ImRect, - pub HostBackupClipRect: ImRect, - pub HostBackupParentWorkRect: ImRect, - pub Columns: ImVector_ImGuiOldColumnData, - pub Splitter: ImDrawListSplitter, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiLocEntry { + pub Key: ImGuiLocKey, + pub Text: *const cty::c_char, } -impl Default for ImGuiOldColumns { +impl Default for ImGuiLocEntry { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3190,70 +3518,43 @@ impl Default for ImGuiOldColumns { } } } -pub const ImGuiDockNodeFlags_DockSpace: ImGuiDockNodeFlagsPrivate_ = 1024; -pub const ImGuiDockNodeFlags_CentralNode: ImGuiDockNodeFlagsPrivate_ = 2048; -pub const ImGuiDockNodeFlags_NoTabBar: ImGuiDockNodeFlagsPrivate_ = 4096; -pub const ImGuiDockNodeFlags_HiddenTabBar: ImGuiDockNodeFlagsPrivate_ = 8192; -pub const ImGuiDockNodeFlags_NoWindowMenuButton: ImGuiDockNodeFlagsPrivate_ = 16384; -pub const ImGuiDockNodeFlags_NoCloseButton: ImGuiDockNodeFlagsPrivate_ = 32768; -pub const ImGuiDockNodeFlags_NoDocking: ImGuiDockNodeFlagsPrivate_ = 65536; -pub const ImGuiDockNodeFlags_NoDockingSplitMe: ImGuiDockNodeFlagsPrivate_ = 131072; -pub const ImGuiDockNodeFlags_NoDockingSplitOther: ImGuiDockNodeFlagsPrivate_ = 262144; -pub const ImGuiDockNodeFlags_NoDockingOverMe: ImGuiDockNodeFlagsPrivate_ = 524288; -pub const ImGuiDockNodeFlags_NoDockingOverOther: ImGuiDockNodeFlagsPrivate_ = 1048576; -pub const ImGuiDockNodeFlags_NoDockingOverEmpty: ImGuiDockNodeFlagsPrivate_ = 2097152; -pub const ImGuiDockNodeFlags_NoResizeX: ImGuiDockNodeFlagsPrivate_ = 4194304; -pub const ImGuiDockNodeFlags_NoResizeY: ImGuiDockNodeFlagsPrivate_ = 8388608; -pub const ImGuiDockNodeFlags_SharedFlagsInheritMask_: ImGuiDockNodeFlagsPrivate_ = -1; -pub const ImGuiDockNodeFlags_NoResizeFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12582944; -pub const ImGuiDockNodeFlags_LocalFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12713072; -pub const ImGuiDockNodeFlags_LocalFlagsTransferMask_: ImGuiDockNodeFlagsPrivate_ = 12712048; -pub const ImGuiDockNodeFlags_SavedFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12712992; -pub type ImGuiDockNodeFlagsPrivate_ = cty::c_int; -pub const ImGuiDataAuthority_Auto: ImGuiDataAuthority_ = 0; -pub const ImGuiDataAuthority_DockNode: ImGuiDataAuthority_ = 1; -pub const ImGuiDataAuthority_Window: ImGuiDataAuthority_ = 2; -pub type ImGuiDataAuthority_ = cty::c_uint; -pub const ImGuiDockNodeState_Unknown: ImGuiDockNodeState = 0; -pub const ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow: ImGuiDockNodeState = 1; -pub const ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing: ImGuiDockNodeState = 2; -pub const ImGuiDockNodeState_HostWindowVisible: ImGuiDockNodeState = 3; -pub type ImGuiDockNodeState = cty::c_uint; +pub const ImGuiDebugLogFlags_None: ImGuiDebugLogFlags_ = 0; +pub const ImGuiDebugLogFlags_EventActiveId: ImGuiDebugLogFlags_ = 1; +pub const ImGuiDebugLogFlags_EventFocus: ImGuiDebugLogFlags_ = 2; +pub const ImGuiDebugLogFlags_EventPopup: ImGuiDebugLogFlags_ = 4; +pub const ImGuiDebugLogFlags_EventNav: ImGuiDebugLogFlags_ = 8; +pub const ImGuiDebugLogFlags_EventClipper: ImGuiDebugLogFlags_ = 16; +pub const ImGuiDebugLogFlags_EventIO: ImGuiDebugLogFlags_ = 32; +pub const ImGuiDebugLogFlags_EventDocking: ImGuiDebugLogFlags_ = 64; +pub const ImGuiDebugLogFlags_EventViewport: ImGuiDebugLogFlags_ = 128; +pub const ImGuiDebugLogFlags_EventMask_: ImGuiDebugLogFlags_ = 255; +pub const ImGuiDebugLogFlags_OutputToTTY: ImGuiDebugLogFlags_ = 1024; +pub type ImGuiDebugLogFlags_ = cty::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiDockNode { +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiMetricsConfig { + pub ShowDebugLog: bool, + pub ShowStackTool: bool, + pub ShowWindowsRects: bool, + pub ShowWindowsBeginOrder: bool, + pub ShowTablesRects: bool, + pub ShowDrawCmdMesh: bool, + pub ShowDrawCmdBoundingBoxes: bool, + pub ShowDockingNodes: bool, + pub ShowWindowsRectsType: cty::c_int, + pub ShowTablesRectsType: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStackLevelInfo { pub ID: ImGuiID, - pub SharedFlags: ImGuiDockNodeFlags, - pub LocalFlags: ImGuiDockNodeFlags, - pub LocalFlagsInWindows: ImGuiDockNodeFlags, - pub MergedFlags: ImGuiDockNodeFlags, - pub State: ImGuiDockNodeState, - pub ParentNode: *mut ImGuiDockNode, - pub ChildNodes: [*mut ImGuiDockNode; 2usize], - pub Windows: ImVector_ImGuiWindowPtr, - pub TabBar: *mut ImGuiTabBar, - pub Pos: ImVec2, - pub Size: ImVec2, - pub SizeRef: ImVec2, - pub SplitAxis: ImGuiAxis, - pub WindowClass: ImGuiWindowClass, - pub LastBgColor: ImU32, - pub HostWindow: *mut ImGuiWindow, - pub VisibleWindow: *mut ImGuiWindow, - pub CentralNode: *mut ImGuiDockNode, - pub OnlyNodeWithWindows: *mut ImGuiDockNode, - pub CountNodeWithWindows: cty::c_int, - pub LastFrameAlive: cty::c_int, - pub LastFrameActive: cty::c_int, - pub LastFrameFocused: cty::c_int, - pub LastFocusedNodeId: ImGuiID, - pub SelectedTabId: ImGuiID, - pub WantCloseTabId: ImGuiID, + pub QueryFrameCount: ImS8, + pub QuerySuccess: bool, pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, - pub __bindgen_padding_0: u8, + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub Desc: [cty::c_char; 57usize], } -impl Default for ImGuiDockNode { +impl Default for ImGuiStackLevelInfo { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3262,262 +3563,277 @@ impl Default for ImGuiDockNode { } } } -impl ImGuiDockNode { - #[inline] - pub fn AuthorityForPos(&self) -> ImGuiDataAuthority { - unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) } - } - #[inline] - pub fn set_AuthorityForPos(&mut self, val: ImGuiDataAuthority) { - unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(0usize, 3u8, val as u64) - } - } +impl ImGuiStackLevelInfo { #[inline] - pub fn AuthorityForSize(&self) -> ImGuiDataAuthority { - unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) } + pub fn DataType(&self) -> ImGuiDataType { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } } #[inline] - pub fn set_AuthorityForSize(&mut self, val: ImGuiDataAuthority) { + pub fn set_DataType(&mut self, val: ImGuiDataType) { unsafe { let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(3usize, 3u8, val as u64) + self._bitfield_1.set(0usize, 8u8, val as u64) } } #[inline] - pub fn AuthorityForViewport(&self) -> ImGuiDataAuthority { - unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) } + pub fn new_bitfield_1(DataType: ImGuiDataType) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let DataType: u32 = unsafe { ::core::mem::transmute(DataType) }; + DataType as u64 + }); + __bindgen_bitfield_unit } - #[inline] - pub fn set_AuthorityForViewport(&mut self, val: ImGuiDataAuthority) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStackLevelInfo { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStackLevelInfo, +} +impl Default for ImVector_ImGuiStackLevelInfo { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u32 = ::core::mem::transmute(val); - self._bitfield_1.set(6usize, 3u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn IsVisible(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) } - } - #[inline] - pub fn set_IsVisible(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiStackTool { + pub LastActiveFrame: cty::c_int, + pub StackLevel: cty::c_int, + pub QueryId: ImGuiID, + pub Results: ImVector_ImGuiStackLevelInfo, + pub CopyToClipboardOnCtrlC: bool, + pub CopyToClipboardLastTime: f32, +} +impl Default for ImGuiStackTool { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(9usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn IsFocused(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) } - } - #[inline] - pub fn set_IsFocused(&mut self, val: bool) { +} +pub type ImGuiContextHookCallback = ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, hook: *mut ImGuiContextHook), +>; +pub const ImGuiContextHookType_NewFramePre: ImGuiContextHookType = 0; +pub const ImGuiContextHookType_NewFramePost: ImGuiContextHookType = 1; +pub const ImGuiContextHookType_EndFramePre: ImGuiContextHookType = 2; +pub const ImGuiContextHookType_EndFramePost: ImGuiContextHookType = 3; +pub const ImGuiContextHookType_RenderPre: ImGuiContextHookType = 4; +pub const ImGuiContextHookType_RenderPost: ImGuiContextHookType = 5; +pub const ImGuiContextHookType_Shutdown: ImGuiContextHookType = 6; +pub const ImGuiContextHookType_PendingRemoval_: ImGuiContextHookType = 7; +pub type ImGuiContextHookType = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiContextHook { + pub HookId: ImGuiID, + pub Type: ImGuiContextHookType, + pub Owner: ImGuiID, + pub Callback: ImGuiContextHookCallback, + pub UserData: *mut cty::c_void, +} +impl Default for ImGuiContextHook { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(10usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn IsBgDrawnThisFrame(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) } - } - #[inline] - pub fn set_IsBgDrawnThisFrame(&mut self, val: bool) { - unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(11usize, 1u8, val as u64) +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiInputEvent { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiInputEvent, +} +impl Default for ImVector_ImGuiInputEvent { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn HasCloseButton(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) } - } - #[inline] - pub fn set_HasCloseButton(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiWindowStackData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiWindowStackData, +} +impl Default for ImVector_ImGuiWindowStackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(12usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn HasWindowMenuButton(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) } - } - #[inline] - pub fn set_HasWindowMenuButton(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiColorMod { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiColorMod, +} +impl Default for ImVector_ImGuiColorMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(13usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn HasCentralNodeChild(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) } - } - #[inline] - pub fn set_HasCentralNodeChild(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStyleMod { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStyleMod, +} +impl Default for ImVector_ImGuiStyleMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantCloseAll(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantCloseAll(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiID, +} +impl Default for ImVector_ImGuiID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantLockSizeOnce(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantLockSizeOnce(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiItemFlags { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiItemFlags, +} +impl Default for ImVector_ImGuiItemFlags { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(16usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantMouseMove(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantMouseMove(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiGroupData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiGroupData, +} +impl Default for ImVector_ImGuiGroupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(17usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantHiddenTabBarUpdate(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantHiddenTabBarUpdate(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiPopupData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPopupData, +} +impl Default for ImVector_ImGuiPopupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(18usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn WantHiddenTabBarToggle(&self) -> bool { - unsafe { ::core::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u8) } - } - #[inline] - pub fn set_WantHiddenTabBarToggle(&mut self, val: bool) { +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiViewportPPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiViewportP, +} +impl Default for ImVector_ImGuiViewportPPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { - let val: u8 = ::core::mem::transmute(val); - self._bitfield_1.set(19usize, 1u8, val as u64) + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn new_bitfield_1( - AuthorityForPos: ImGuiDataAuthority, - AuthorityForSize: ImGuiDataAuthority, - AuthorityForViewport: ImGuiDataAuthority, - IsVisible: bool, - IsFocused: bool, - IsBgDrawnThisFrame: bool, - HasCloseButton: bool, - HasWindowMenuButton: bool, - HasCentralNodeChild: bool, - WantCloseAll: bool, - WantLockSizeOnce: bool, - WantMouseMove: bool, - WantHiddenTabBarUpdate: bool, - WantHiddenTabBarToggle: bool, - ) -> __BindgenBitfieldUnit<[u8; 3usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 3u8, { - let AuthorityForPos: u32 = unsafe { ::core::mem::transmute(AuthorityForPos) }; - AuthorityForPos as u64 - }); - __bindgen_bitfield_unit.set(3usize, 3u8, { - let AuthorityForSize: u32 = unsafe { ::core::mem::transmute(AuthorityForSize) }; - AuthorityForSize as u64 - }); - __bindgen_bitfield_unit.set(6usize, 3u8, { - let AuthorityForViewport: u32 = unsafe { ::core::mem::transmute(AuthorityForViewport) }; - AuthorityForViewport as u64 - }); - __bindgen_bitfield_unit.set(9usize, 1u8, { - let IsVisible: u8 = unsafe { ::core::mem::transmute(IsVisible) }; - IsVisible as u64 - }); - __bindgen_bitfield_unit.set(10usize, 1u8, { - let IsFocused: u8 = unsafe { ::core::mem::transmute(IsFocused) }; - IsFocused as u64 - }); - __bindgen_bitfield_unit.set(11usize, 1u8, { - let IsBgDrawnThisFrame: u8 = unsafe { ::core::mem::transmute(IsBgDrawnThisFrame) }; - IsBgDrawnThisFrame as u64 - }); - __bindgen_bitfield_unit.set(12usize, 1u8, { - let HasCloseButton: u8 = unsafe { ::core::mem::transmute(HasCloseButton) }; - HasCloseButton as u64 - }); - __bindgen_bitfield_unit.set(13usize, 1u8, { - let HasWindowMenuButton: u8 = unsafe { ::core::mem::transmute(HasWindowMenuButton) }; - HasWindowMenuButton as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let HasCentralNodeChild: u8 = unsafe { ::core::mem::transmute(HasCentralNodeChild) }; - HasCentralNodeChild as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let WantCloseAll: u8 = unsafe { ::core::mem::transmute(WantCloseAll) }; - WantCloseAll as u64 - }); - __bindgen_bitfield_unit.set(16usize, 1u8, { - let WantLockSizeOnce: u8 = unsafe { ::core::mem::transmute(WantLockSizeOnce) }; - WantLockSizeOnce as u64 - }); - __bindgen_bitfield_unit.set(17usize, 1u8, { - let WantMouseMove: u8 = unsafe { ::core::mem::transmute(WantMouseMove) }; - WantMouseMove as u64 - }); - __bindgen_bitfield_unit.set(18usize, 1u8, { - let WantHiddenTabBarUpdate: u8 = - unsafe { ::core::mem::transmute(WantHiddenTabBarUpdate) }; - WantHiddenTabBarUpdate as u64 - }); - __bindgen_bitfield_unit.set(19usize, 1u8, { - let WantHiddenTabBarToggle: u8 = - unsafe { ::core::mem::transmute(WantHiddenTabBarToggle) }; - WantHiddenTabBarToggle as u64 - }); - __bindgen_bitfield_unit +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_unsigned_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_uchar, +} +impl Default for ImVector_unsigned_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } } } -pub const ImGuiWindowDockStyleCol_Text: ImGuiWindowDockStyleCol = 0; -pub const ImGuiWindowDockStyleCol_Tab: ImGuiWindowDockStyleCol = 1; -pub const ImGuiWindowDockStyleCol_TabHovered: ImGuiWindowDockStyleCol = 2; -pub const ImGuiWindowDockStyleCol_TabActive: ImGuiWindowDockStyleCol = 3; -pub const ImGuiWindowDockStyleCol_TabUnfocused: ImGuiWindowDockStyleCol = 4; -pub const ImGuiWindowDockStyleCol_TabUnfocusedActive: ImGuiWindowDockStyleCol = 5; -pub const ImGuiWindowDockStyleCol_COUNT: ImGuiWindowDockStyleCol = 6; -pub type ImGuiWindowDockStyleCol = cty::c_uint; #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiWindowDockStyle { - pub Colors: [ImU32; 6usize], +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiListClipperData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiListClipperData, +} +impl Default for ImVector_ImGuiListClipperData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiDockContext { - pub Nodes: ImGuiStorage, - pub Requests: ImVector_ImGuiDockRequest, - pub NodesSettings: ImVector_ImGuiDockNodeSettings, - pub WantFullRebuild: bool, +pub struct ImVector_ImGuiTableTempData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableTempData, } -impl Default for ImGuiDockContext { +impl Default for ImVector_ImGuiTableTempData { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3527,32 +3843,13 @@ impl Default for ImGuiDockContext { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq)] -pub struct ImGuiViewportP { - pub _ImGuiViewport: ImGuiViewport, - pub Idx: cty::c_int, - pub LastFrameActive: cty::c_int, - pub LastFrontMostStampCount: cty::c_int, - pub LastNameHash: ImGuiID, - pub LastPos: ImVec2, - pub Alpha: f32, - pub LastAlpha: f32, - pub PlatformMonitor: cty::c_short, - pub PlatformWindowCreated: bool, - pub Window: *mut ImGuiWindow, - pub DrawListsLastFrame: [cty::c_int; 2usize], - pub DrawLists: [*mut ImDrawList; 2usize], - pub DrawDataP: ImDrawData, - pub DrawDataBuilder: ImDrawDataBuilder, - pub LastPlatformPos: ImVec2, - pub LastPlatformSize: ImVec2, - pub LastRendererSize: ImVec2, - pub WorkOffsetMin: ImVec2, - pub WorkOffsetMax: ImVec2, - pub BuildWorkOffsetMin: ImVec2, - pub BuildWorkOffsetMax: ImVec2, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTable { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTable, } -impl Default for ImGuiViewportP { +impl Default for ImVector_ImGuiTable { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3562,58 +3859,30 @@ impl Default for ImGuiViewportP { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiWindowSettings { - pub ID: ImGuiID, - pub Pos: ImVec2ih, - pub Size: ImVec2ih, - pub ViewportPos: ImVec2ih, - pub ViewportId: ImGuiID, - pub DockId: ImGuiID, - pub ClassId: ImGuiID, - pub DockOrder: cty::c_short, - pub Collapsed: bool, - pub WantApply: bool, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImPool_ImGuiTable { + pub Buf: ImVector_ImGuiTable, + pub Map: ImGuiStorage, + pub FreeIdx: ImPoolIdx, + pub AliveCount: ImPoolIdx, +} +impl Default for ImPool_ImGuiTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiSettingsHandler { - pub TypeName: *const cty::c_char, - pub TypeHash: ImGuiID, - pub ClearAllFn: ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), - >, - pub ReadInitFn: ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), - >, - pub ReadOpenFn: ::core::option::Option< - unsafe extern "C" fn( - ctx: *mut ImGuiContext, - handler: *mut ImGuiSettingsHandler, - name: *const cty::c_char, - ) -> *mut cty::c_void, - >, - pub ReadLineFn: ::core::option::Option< - unsafe extern "C" fn( - ctx: *mut ImGuiContext, - handler: *mut ImGuiSettingsHandler, - entry: *mut cty::c_void, - line: *const cty::c_char, - ), - >, - pub ApplyAllFn: ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), - >, - pub WriteAllFn: ::core::option::Option< - unsafe extern "C" fn( - ctx: *mut ImGuiContext, - handler: *mut ImGuiSettingsHandler, - out_buf: *mut ImGuiTextBuffer, - ), - >, - pub UserData: *mut cty::c_void, +pub struct ImVector_ImGuiTabBar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTabBar, } -impl Default for ImGuiSettingsHandler { +impl Default for ImVector_ImGuiTabBar { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3623,27 +3892,30 @@ impl Default for ImGuiSettingsHandler { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiMetricsConfig { - pub ShowStackTool: bool, - pub ShowWindowsRects: bool, - pub ShowWindowsBeginOrder: bool, - pub ShowTablesRects: bool, - pub ShowDrawCmdMesh: bool, - pub ShowDrawCmdBoundingBoxes: bool, - pub ShowDockingNodes: bool, - pub ShowWindowsRectsType: cty::c_int, - pub ShowTablesRectsType: cty::c_int, +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImPool_ImGuiTabBar { + pub Buf: ImVector_ImGuiTabBar, + pub Map: ImGuiStorage, + pub FreeIdx: ImPoolIdx, + pub AliveCount: ImPoolIdx, +} +impl Default for ImPool_ImGuiTabBar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiStackLevelInfo { - pub ID: ImGuiID, - pub QueryFrameCount: ImS8, - pub QuerySuccess: bool, - pub Desc: [cty::c_char; 58usize], +pub struct ImVector_ImGuiPtrOrIndex { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPtrOrIndex, } -impl Default for ImGuiStackLevelInfo { +impl Default for ImVector_ImGuiPtrOrIndex { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3654,13 +3926,12 @@ impl Default for ImGuiStackLevelInfo { } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiStackTool { - pub LastActiveFrame: cty::c_int, - pub StackLevel: cty::c_int, - pub QueryId: ImGuiID, - pub Results: ImVector_ImGuiStackLevelInfo, +pub struct ImVector_ImGuiShrinkWidthItem { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiShrinkWidthItem, } -impl Default for ImGuiStackTool { +impl Default for ImVector_ImGuiShrinkWidthItem { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3669,25 +3940,58 @@ impl Default for ImGuiStackTool { } } } -pub const ImGuiContextHookType_NewFramePre: ImGuiContextHookType = 0; -pub const ImGuiContextHookType_NewFramePost: ImGuiContextHookType = 1; -pub const ImGuiContextHookType_EndFramePre: ImGuiContextHookType = 2; -pub const ImGuiContextHookType_EndFramePost: ImGuiContextHookType = 3; -pub const ImGuiContextHookType_RenderPre: ImGuiContextHookType = 4; -pub const ImGuiContextHookType_RenderPost: ImGuiContextHookType = 5; -pub const ImGuiContextHookType_Shutdown: ImGuiContextHookType = 6; -pub const ImGuiContextHookType_PendingRemoval_: ImGuiContextHookType = 7; -pub type ImGuiContextHookType = cty::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct ImGuiContextHook { - pub HookId: ImGuiID, - pub Type: ImGuiContextHookType, - pub Owner: ImGuiID, - pub Callback: ImGuiContextHookCallback, - pub UserData: *mut cty::c_void, +pub struct ImVector_ImGuiSettingsHandler { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiSettingsHandler, } -impl Default for ImGuiContextHook { +impl Default for ImVector_ImGuiSettingsHandler { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImChunkStream_ImGuiWindowSettings { + pub Buf: ImVector_char, +} +impl Default for ImChunkStream_ImGuiWindowSettings { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImChunkStream_ImGuiTableSettings { + pub Buf: ImVector_char, +} +impl Default for ImChunkStream_ImGuiTableSettings { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiContextHook { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiContextHook, +} +impl Default for ImVector_ImGuiContextHook { fn default() -> Self { let mut s = ::core::mem::MaybeUninit::::uninit(); unsafe { @@ -3703,6 +4007,8 @@ pub struct ImGuiContext { pub FontAtlasOwnedByContext: bool, pub IO: ImGuiIO, pub PlatformIO: ImGuiPlatformIO, + pub InputEventsQueue: ImVector_ImGuiInputEvent, + pub InputEventsTrail: ImVector_ImGuiInputEvent, pub Style: ImGuiStyle, pub ConfigFlagsCurrFrame: ImGuiConfigFlags, pub ConfigFlagsLastFrame: ImGuiConfigFlags, @@ -3731,17 +4037,14 @@ pub struct ImGuiContext { pub CurrentWindow: *mut ImGuiWindow, pub HoveredWindow: *mut ImGuiWindow, pub HoveredWindowUnderMovingWindow: *mut ImGuiWindow, - pub HoveredDockNode: *mut ImGuiDockNode, pub MovingWindow: *mut ImGuiWindow, pub WheelingWindow: *mut ImGuiWindow, pub WheelingWindowRefMousePos: ImVec2, - pub WheelingWindowTimer: f32, + pub WheelingWindowReleaseTimer: f32, pub DebugHookIdInfo: ImGuiID, pub HoveredId: ImGuiID, pub HoveredIdPreviousFrame: ImGuiID, pub HoveredIdAllowOverlap: bool, - pub HoveredIdUsingMouseWheel: bool, - pub HoveredIdPreviousFrameUsingMouseWheel: bool, pub HoveredIdDisabled: bool, pub HoveredIdTimer: f32, pub HoveredIdNotActiveTimer: f32, @@ -3754,10 +4057,6 @@ pub struct ImGuiContext { pub ActiveIdHasBeenPressedBefore: bool, pub ActiveIdHasBeenEditedBefore: bool, pub ActiveIdHasBeenEditedThisFrame: bool, - pub ActiveIdUsingMouseWheel: bool, - pub ActiveIdUsingNavDirMask: ImU32, - pub ActiveIdUsingNavInputMask: ImU32, - pub ActiveIdUsingKeyInputMask: ImU64, pub ActiveIdClickOffset: ImVec2, pub ActiveIdWindow: *mut ImGuiWindow, pub ActiveIdSource: ImGuiInputSource, @@ -3768,7 +4067,14 @@ pub struct ImGuiContext { pub ActiveIdPreviousFrameWindow: *mut ImGuiWindow, pub LastActiveId: ImGuiID, pub LastActiveIdTimer: f32, + pub KeysOwnerData: [ImGuiKeyOwnerData; 140usize], + pub KeysRoutingTable: ImGuiKeyRoutingTable, + pub ActiveIdUsingNavDirMask: ImU32, + pub ActiveIdUsingAllKeyboardKeys: bool, + pub ActiveIdUsingNavInputMask: ImU32, + pub CurrentFocusScopeId: ImGuiID, pub CurrentItemFlags: ImGuiItemFlags, + pub DebugLocateId: ImGuiID, pub NextItemData: ImGuiNextItemData, pub LastItemData: ImGuiLastItemData, pub NextWindowData: ImGuiNextWindowData, @@ -3799,7 +4105,7 @@ pub struct ImGuiContext { pub NavActivateFlags: ImGuiActivateFlags, pub NavJustMovedToId: ImGuiID, pub NavJustMovedToFocusScopeId: ImGuiID, - pub NavJustMovedToKeyMods: ImGuiKeyModFlags, + pub NavJustMovedToKeyMods: ImGuiKeyChord, pub NavNextActivateId: ImGuiID, pub NavNextActivateFlags: ImGuiActivateFlags, pub NavInputSource: ImGuiInputSource, @@ -3818,7 +4124,7 @@ pub struct ImGuiContext { pub NavMoveForwardToNextFrame: bool, pub NavMoveFlags: ImGuiNavMoveFlags, pub NavMoveScrollFlags: ImGuiScrollFlags, - pub NavMoveKeyMods: ImGuiKeyModFlags, + pub NavMoveKeyMods: ImGuiKeyChord, pub NavMoveDir: ImGuiDir, pub NavMoveDirForDebug: ImGuiDir, pub NavMoveClipDir: ImGuiDir, @@ -3831,12 +4137,16 @@ pub struct ImGuiContext { pub NavMoveResultLocalVisible: ImGuiNavItemData, pub NavMoveResultOther: ImGuiNavItemData, pub NavTabbingResultFirst: ImGuiNavItemData, + pub ConfigNavWindowingKeyNext: ImGuiKeyChord, + pub ConfigNavWindowingKeyPrev: ImGuiKeyChord, pub NavWindowingTarget: *mut ImGuiWindow, pub NavWindowingTargetAnim: *mut ImGuiWindow, pub NavWindowingListWindow: *mut ImGuiWindow, pub NavWindowingTimer: f32, pub NavWindowingHighlightAlpha: f32, pub NavWindowingToggleLayer: bool, + pub NavWindowingAccumDeltaPos: ImVec2, + pub NavWindowingAccumDeltaSize: ImVec2, pub DimBgRatio: f32, pub MouseCursor: ImGuiMouseCursor, pub DragDropActive: bool, @@ -3868,6 +4178,10 @@ pub struct ImGuiContext { pub TabBars: ImPool_ImGuiTabBar, pub CurrentTabBarStack: ImVector_ImGuiPtrOrIndex, pub ShrinkWidthBuffer: ImVector_ImGuiShrinkWidthItem, + pub HoverDelayId: ImGuiID, + pub HoverDelayIdPreviousFrame: ImGuiID, + pub HoverDelayTimer: f32, + pub HoverDelayClearTimer: f32, pub MouseLastValidPos: ImVec2, pub InputTextState: ImGuiInputTextState, pub InputTextPasswordFont: ImFont, @@ -3878,6 +4192,7 @@ pub struct ImGuiContext { pub ColorEditLastColor: ImU32, pub ColorPickerRef: ImVec4, pub ComboPreviewData: ImGuiComboPreviewData, + pub SliderGrabClickOffset: f32, pub SliderCurrentAccum: f32, pub SliderCurrentAccumDirty: bool, pub DragCurrentAccumDirty: bool, @@ -3887,12 +4202,11 @@ pub struct ImGuiContext { pub DisabledAlphaBackup: f32, pub DisabledStackSize: cty::c_short, pub TooltipOverrideCount: cty::c_short, - pub TooltipSlowDelay: f32, pub ClipboardHandlerData: ImVector_char, pub MenusIdSubmittedThisFrame: ImVector_ImGuiID, - pub PlatformImePos: ImVec2, - pub PlatformImeLastPos: ImVec2, - pub PlatformImePosViewport: *mut ImGuiViewportP, + pub PlatformImeData: ImGuiPlatformImeData, + pub PlatformImeDataPrev: ImGuiPlatformImeData, + pub PlatformImeViewport: ImGuiID, pub PlatformLocaleDecimalPoint: cty::c_char, pub DockContext: ImGuiDockContext, pub SettingsLoaded: bool, @@ -3903,6 +4217,7 @@ pub struct ImGuiContext { pub SettingsTables: ImChunkStream_ImGuiTableSettings, pub Hooks: ImVector_ImGuiContextHook, pub HookIdNext: ImGuiID, + pub LocalizationTable: [*const cty::c_char; 8usize], pub LogEnabled: bool, pub LogType: ImGuiLogType, pub LogFile: ImFileHandle, @@ -3914,18 +4229,24 @@ pub struct ImGuiContext { pub LogDepthRef: cty::c_int, pub LogDepthToExpand: cty::c_int, pub LogDepthToExpandDefault: cty::c_int, + pub DebugLogFlags: ImGuiDebugLogFlags, + pub DebugLogBuf: ImGuiTextBuffer, + pub DebugLogIndex: ImGuiTextIndex, + pub DebugLocateFrames: ImU8, pub DebugItemPickerActive: bool, + pub DebugItemPickerMouseButton: ImU8, pub DebugItemPickerBreakId: ImGuiID, pub DebugMetricsConfig: ImGuiMetricsConfig, pub DebugStackTool: ImGuiStackTool, - pub FramerateSecPerFrame: [f32; 120usize], + pub DebugHoveredDockNode: *mut ImGuiDockNode, + pub FramerateSecPerFrame: [f32; 60usize], pub FramerateSecPerFrameIdx: cty::c_int, pub FramerateSecPerFrameCount: cty::c_int, pub FramerateSecPerFrameAccum: f32, pub WantCaptureMouseNextFrame: cty::c_int, pub WantCaptureKeyboardNextFrame: cty::c_int, pub WantTextInputNextFrame: cty::c_int, - pub TempBuffer: [cty::c_char; 3073usize], + pub TempBuffer: ImVector_char, } impl Default for ImGuiContext { fn default() -> Self { @@ -3948,6 +4269,8 @@ pub struct ImGuiWindowTempData { pub PrevLineSize: ImVec2, pub CurrLineTextBaseOffset: f32, pub PrevLineTextBaseOffset: f32, + pub IsSameLine: bool, + pub IsSetPos: bool, pub Indent: ImVec1, pub ColumnsOffset: ImVec1, pub GroupOffset: ImVec1, @@ -3955,7 +4278,6 @@ pub struct ImGuiWindowTempData { pub NavLayerCurrent: ImGuiNavLayer, pub NavLayersActiveMask: cty::c_short, pub NavLayersActiveMaskNext: cty::c_short, - pub NavFocusScopeIdCurrent: ImGuiID, pub NavHideHighlightOneFrame: bool, pub NavHasScroll: bool, pub MenuBarAppending: bool, @@ -3984,6 +4306,22 @@ impl Default for ImGuiWindowTempData { } } #[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiOldColumns { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiOldColumns, +} +impl Default for ImVector_ImGuiOldColumns { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiWindow { pub Name: *mut cty::c_char, @@ -4006,6 +4344,7 @@ pub struct ImGuiWindow { pub WindowBorderSize: f32, pub NameBufLen: cty::c_int, pub MoveId: ImGuiID, + pub TabId: ImGuiID, pub ChildId: ImGuiID, pub Scroll: ImVec2, pub ScrollMax: ImVec2, @@ -4029,6 +4368,7 @@ pub struct ImGuiWindow { pub HasCloseButton: bool, pub ResizeBorderHeld: cty::c_schar, pub BeginCount: cty::c_short, + pub BeginCountPreviousFrame: cty::c_short, pub BeginOrderWithinParent: cty::c_short, pub BeginOrderWithinContext: cty::c_short, pub FocusOrder: cty::c_short, @@ -4078,6 +4418,7 @@ pub struct ImGuiWindow { pub NavLastChildNavWindow: *mut ImGuiWindow, pub NavLastIds: [ImGuiID; 2usize], pub NavRectRel: [ImRect; 2usize], + pub NavRootFocusScopeId: ImGuiID, pub MemoryDrawListIdxCapacity: cty::c_int, pub MemoryDrawListVtxCapacity: cty::c_int, pub MemoryCompacted: bool, @@ -4267,6 +4608,7 @@ pub struct ImGuiTabItem { pub Offset: f32, pub Width: f32, pub ContentWidth: f32, + pub RequestedWidth: f32, pub NameOffset: ImS32, pub BeginOrder: ImS16, pub IndexDuringLayout: ImS16, @@ -4282,6 +4624,22 @@ impl Default for ImGuiTabItem { } } #[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTabItem { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTabItem, +} +impl Default for ImVector_ImGuiTabItem { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiTabBar { pub Tabs: ImVector_ImGuiTabItem, @@ -4325,6 +4683,8 @@ impl Default for ImGuiTabBar { } } } +pub type ImGuiTableColumnIdx = ImS8; +pub type ImGuiTableDrawChannelIdx = ImU8; #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] pub struct ImGuiTableColumn { @@ -4434,6 +4794,89 @@ pub struct ImGuiTableCellData { pub Column: ImGuiTableColumnIdx, } #[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableInstanceData { + pub LastOuterHeight: f32, + pub LastFirstRowHeight: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableColumn { + pub Data: *mut ImGuiTableColumn, + pub DataEnd: *mut ImGuiTableColumn, +} +impl Default for ImSpan_ImGuiTableColumn { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableColumnIdx { + pub Data: *mut ImGuiTableColumnIdx, + pub DataEnd: *mut ImGuiTableColumnIdx, +} +impl Default for ImSpan_ImGuiTableColumnIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableCellData { + pub Data: *mut ImGuiTableCellData, + pub DataEnd: *mut ImGuiTableCellData, +} +impl Default for ImSpan_ImGuiTableCellData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableInstanceData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableInstanceData, +} +impl Default for ImVector_ImGuiTableInstanceData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableColumnSortSpecs { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableColumnSortSpecs, +} +impl Default for ImVector_ImGuiTableColumnSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiTable { pub ID: ImGuiID, @@ -4475,11 +4918,10 @@ pub struct ImGuiTable { pub CellPaddingY: f32, pub CellSpacingX1: f32, pub CellSpacingX2: f32, - pub LastOuterHeight: f32, - pub LastFirstRowHeight: f32, pub InnerWidth: f32, pub ColumnsGivenWidth: f32, pub ColumnsAutoFitWidth: f32, + pub ColumnsStretchSumWeights: f32, pub ResizedColumnNextWidth: f32, pub ResizeLockMinContentsX2: f32, pub RefScale: f32, @@ -4496,6 +4938,8 @@ pub struct ImGuiTable { pub InnerWindow: *mut ImGuiWindow, pub ColumnsNames: ImGuiTextBuffer, pub DrawSplitter: *mut ImDrawListSplitter, + pub InstanceDataFirst: ImGuiTableInstanceData, + pub InstanceDataExtra: ImVector_ImGuiTableInstanceData, pub SortSpecsSingle: ImGuiTableColumnSortSpecs, pub SortSpecsMulti: ImVector_ImGuiTableColumnSortSpecs, pub SortSpecs: ImGuiTableSortSpecs, @@ -4699,7 +5143,7 @@ pub struct ImFontBuilderIO { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec2_ImVec2Nil() -> *mut ImVec2; + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -4707,11 +5151,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec2_ImVec2Float(_x: f32, _y: f32) -> *mut ImVec2; + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec4_ImVec4Nil() -> *mut ImVec4; + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -4719,7 +5163,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec4_ImVec4Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -4770,6 +5214,10 @@ extern "C" { pub fn igShowMetricsWindow(p_open: *mut bool); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igShowStackToolWindow(p_open: *mut bool); } @@ -4819,7 +5267,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginChildStr( + pub fn igBeginChild_Str( str_id: *const cty::c_char, size: ImVec2, border: bool, @@ -4828,8 +5276,12 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginChildID(id: ImGuiID, size: ImVec2, border: bool, flags: ImGuiWindowFlags) - -> bool; + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -4909,6 +5361,10 @@ extern "C" { pub fn igSetNextWindowFocus(); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igSetNextWindowBgAlpha(alpha: f32); } @@ -4918,19 +5374,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowPosVec2(pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowSizeVec2(size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowCollapsedBool(collapsed: bool, cond: ImGuiCond); + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowFocusNil(); + pub fn igSetWindowFocus_Nil(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -4938,19 +5394,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowPosStr(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowSizeStr(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowCollapsedStr(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowFocusStr(name: *const cty::c_char); + pub fn igSetWindowFocus_Str(name: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -4978,11 +5434,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollXFloat(scroll_x: f32); + pub fn igSetScrollX_Float(scroll_x: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollYFloat(scroll_y: f32); + pub fn igSetScrollY_Float(scroll_y: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -5002,11 +5458,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollFromPosXFloat(local_x: f32, center_x_ratio: f32); + pub fn igSetScrollFromPosX_Float(local_x: f32, center_x_ratio: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollFromPosYFloat(local_y: f32, center_y_ratio: f32); + pub fn igSetScrollFromPosY_Float(local_y: f32, center_y_ratio: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -5018,11 +5474,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleColorU32(idx: ImGuiCol, col: ImU32); + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleColorVec4(idx: ImGuiCol, col: ImVec4); + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -5030,11 +5486,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleVarFloat(idx: ImGuiStyleVar, val: f32); + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleVarVec2(idx: ImGuiStyleVar, val: ImVec2); + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -5094,15 +5550,15 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColorU32Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColorU32Vec4(col: ImVec4) -> ImU32; + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColorU32U32(col: ImU32) -> ImU32; + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -5202,19 +5658,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushIDStr(str_id: *const cty::c_char); + pub fn igPushID_Str(str_id: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushIDStrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushIDPtr(ptr_id: *const cty::c_void); + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushIDInt(int_id: cty::c_int); + pub fn igPushID_Int(int_id: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -5222,18 +5678,18 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetIDStr(str_id: *const cty::c_char) -> ImGuiID; + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetIDStrStr( + pub fn igGetID_StrStr( str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char, ) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetIDPtr(ptr_id: *const cty::c_void) -> ImGuiID; + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -5284,35 +5740,12 @@ extern "C" { pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igImage( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - tint_col: ImVec4, - border_col: ImVec4, - ); -} -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igImageButton( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - frame_padding: cty::c_int, - bg_col: ImVec4, - tint_col: ImVec4, - ) -> bool; -} -#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCheckboxFlagsIntPtr( + pub fn igCheckboxFlags_IntPtr( label: *const cty::c_char, flags: *mut cty::c_int, flags_value: cty::c_int, @@ -5320,7 +5753,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCheckboxFlagsUintPtr( + pub fn igCheckboxFlags_UintPtr( label: *const cty::c_char, flags: *mut cty::c_uint, flags_value: cty::c_uint, @@ -5328,11 +5761,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igRadioButtonBool(label: *const cty::c_char, active: bool) -> bool; + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igRadioButtonIntPtr( + pub fn igRadioButton_IntPtr( label: *const cty::c_char, v: *mut cty::c_int, v_button: cty::c_int, @@ -5347,6 +5780,29 @@ extern "C" { pub fn igBullet(); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igBeginCombo( label: *const cty::c_char, @@ -5360,7 +5816,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igComboStr_arr( + pub fn igCombo_Str_arr( label: *const cty::c_char, current_item: *mut cty::c_int, items: *const *const cty::c_char, @@ -5370,7 +5826,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igComboStr( + pub fn igCombo_Str( label: *const cty::c_char, current_item: *mut cty::c_int, items_separated_by_zeros: *const cty::c_char, @@ -5379,7 +5835,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igComboFnBoolPtr( + pub fn igCombo_FnBoolPtr( label: *const cty::c_char, current_item: *mut cty::c_int, items_getter: ::core::option::Option< @@ -5897,23 +6353,23 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeStr(label: *const cty::c_char) -> bool; + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeStrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodePtr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeExStr(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeExStrStr( + pub fn igTreeNodeEx_StrStr( str_id: *const cty::c_char, flags: ImGuiTreeNodeFlags, fmt: *const cty::c_char, @@ -5922,7 +6378,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeExPtr( + pub fn igTreeNodeEx_Ptr( ptr_id: *const cty::c_void, flags: ImGuiTreeNodeFlags, fmt: *const cty::c_char, @@ -5931,11 +6387,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreePushStr(str_id: *const cty::c_char); + pub fn igTreePush_Str(str_id: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreePushPtr(ptr_id: *const cty::c_void); + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -5947,14 +6403,14 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCollapsingHeaderTreeNodeFlags( + pub fn igCollapsingHeader_TreeNodeFlags( label: *const cty::c_char, flags: ImGuiTreeNodeFlags, ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCollapsingHeaderBoolPtr( + pub fn igCollapsingHeader_BoolPtr( label: *const cty::c_char, p_visible: *mut bool, flags: ImGuiTreeNodeFlags, @@ -5966,7 +6422,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSelectableBool( + pub fn igSelectable_Bool( label: *const cty::c_char, selected: bool, flags: ImGuiSelectableFlags, @@ -5975,7 +6431,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSelectableBoolPtr( + pub fn igSelectable_BoolPtr( label: *const cty::c_char, p_selected: *mut bool, flags: ImGuiSelectableFlags, @@ -5992,7 +6448,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igListBoxStr_arr( + pub fn igListBox_Str_arr( label: *const cty::c_char, current_item: *mut cty::c_int, items: *const *const cty::c_char, @@ -6002,7 +6458,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igListBoxFnBoolPtr( + pub fn igListBox_FnBoolPtr( label: *const cty::c_char, current_item: *mut cty::c_int, items_getter: ::core::option::Option< @@ -6019,7 +6475,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotLinesFloatPtr( + pub fn igPlotLines_FloatPtr( label: *const cty::c_char, values: *const f32, values_count: cty::c_int, @@ -6033,7 +6489,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotLinesFnFloatPtr( + pub fn igPlotLines_FnFloatPtr( label: *const cty::c_char, values_getter: ::core::option::Option< unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, @@ -6049,7 +6505,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotHistogramFloatPtr( + pub fn igPlotHistogram_FloatPtr( label: *const cty::c_char, values: *const f32, values_count: cty::c_int, @@ -6063,7 +6519,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotHistogramFnFloatPtr( + pub fn igPlotHistogram_FnFloatPtr( label: *const cty::c_char, values_getter: ::core::option::Option< unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, @@ -6079,19 +6535,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValueBool(prefix: *const cty::c_char, b: bool); + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValueInt(prefix: *const cty::c_char, v: cty::c_int); + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValueUint(prefix: *const cty::c_char, v: cty::c_uint); + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValueFloat(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -6119,7 +6575,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMenuItemBool( + pub fn igMenuItem_Bool( label: *const cty::c_char, shortcut: *const cty::c_char, selected: bool, @@ -6128,7 +6584,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMenuItemBoolPtr( + pub fn igMenuItem_BoolPtr( label: *const cty::c_char, shortcut: *const cty::c_char, p_selected: *mut bool, @@ -6165,11 +6621,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igOpenPopupStr(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igOpenPopupID(id: ImGuiID, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -6202,7 +6658,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsPopupOpenStr(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; + pub fn igIsPopupOpen_Str(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -6269,7 +6725,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGetColumnNameInt(column_n: cty::c_int) -> *const cty::c_char; + pub fn igTableGetColumnName_Int(column_n: cty::c_int) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -6534,35 +6990,35 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsRectVisibleNil(size: ImVec2) -> bool; + pub fn igGetBackgroundDrawList_Nil() -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsRectVisibleVec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; + pub fn igGetForegroundDrawList_Nil() -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetTime() -> f64; + pub fn igGetBackgroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFrameCount() -> cty::c_int; + pub fn igGetForegroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetBackgroundDrawListNil() -> *mut ImDrawList; + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetForegroundDrawListNil() -> *mut ImDrawList; + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetBackgroundDrawListViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; + pub fn igGetTime() -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetForegroundDrawListViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; + pub fn igGetFrameCount() -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -6630,40 +7086,39 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetKeyIndex(imgui_key: ImGuiKey) -> cty::c_int; + pub fn igIsKeyDown_Nil(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyDown(user_key_index: cty::c_int) -> bool; + pub fn igIsKeyPressed_Bool(key: ImGuiKey, repeat: bool) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyPressed(user_key_index: cty::c_int, repeat: bool) -> bool; + pub fn igIsKeyReleased_Nil(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyReleased(user_key_index: cty::c_int) -> bool; + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetKeyPressedAmount(key_index: cty::c_int, repeat_delay: f32, rate: f32) - -> cty::c_int; + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCaptureKeyboardFromApp(want_capture_keyboard_value: bool); + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseDown(button: ImGuiMouseButton) -> bool; + pub fn igIsMouseDown_Nil(button: ImGuiMouseButton) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseClicked(button: ImGuiMouseButton, repeat: bool) -> bool; + pub fn igIsMouseClicked_Bool(button: ImGuiMouseButton, repeat: bool) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseReleased(button: ImGuiMouseButton) -> bool; + pub fn igIsMouseReleased_Nil(button: ImGuiMouseButton) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -6715,7 +7170,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCaptureMouseFromApp(want_capture_mouse_value: bool); + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -6742,6 +7197,10 @@ extern "C" { pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igDebugCheckVersionAndDataLayout( version_str: *const cty::c_char, @@ -6817,6 +7276,34 @@ extern "C" { pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseViewportEvent(self_: *mut ImGuiIO, id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); } @@ -6830,7 +7317,17 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -6981,7 +7478,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextRange_ImGuiTextRangeNil() -> *mut ImGuiTextRange; + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -6989,7 +7486,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextRange_ImGuiTextRangeStr( + pub fn ImGuiTextRange_ImGuiTextRange_Str( _b: *const cty::c_char, _e: *const cty::c_char, ) -> *mut ImGuiTextRange; @@ -7052,7 +7549,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairInt( + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( _key: ImGuiID, _val_i: cty::c_int, ) -> *mut ImGuiStoragePair; @@ -7063,14 +7560,14 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairFloat( + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( _key: ImGuiID, _val_f: f32, ) -> *mut ImGuiStoragePair; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePairPtr( + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( _key: ImGuiID, _val_p: *mut cty::c_void, ) -> *mut ImGuiStoragePair; @@ -7189,7 +7686,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorNil() -> *mut ImColor; + pub fn ImColor_ImColor_Nil() -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -7197,24 +7694,24 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorInt( - r: cty::c_int, - g: cty::c_int, - b: cty::c_int, - a: cty::c_int, - ) -> *mut ImColor; + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorU32(rgba: ImU32) -> *mut ImColor; + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorFloat(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; + pub fn ImColor_ImColor_Int( + r: cty::c_int, + g: cty::c_int, + b: cty::c_int, + a: cty::c_int, + ) -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColorVec4(col: ImVec4) -> *mut ImColor; + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -7274,7 +7771,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_ImDrawList(shared_data: *const ImDrawListSharedData) -> *mut ImDrawList; + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -7446,7 +7943,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddTextVec2( + pub fn ImDrawList_AddText_Vec2( self_: *mut ImDrawList, pos: ImVec2, col: ImU32, @@ -7456,7 +7953,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddTextFontPtr( + pub fn ImDrawList_AddText_FontPtr( self_: *mut ImDrawList, font: *const ImFont, font_size: f32, @@ -7976,6 +8473,10 @@ extern "C" { pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; } @@ -8207,6 +8708,18 @@ extern "C" { pub fn ImGuiPlatformMonitor_destroy(self_: *mut ImGuiPlatformMonitor); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igImHashData(data: *const cty::c_void, data_size: usize, seed: ImU32) -> ImGuiID; } @@ -8231,11 +8744,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImIsPowerOfTwoInt(v: cty::c_int) -> bool; + pub fn igImIsPowerOfTwo_Int(v: cty::c_int) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImIsPowerOfTwoU64(v: ImU64) -> bool; + pub fn igImIsPowerOfTwo_U64(v: ImU64) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8310,6 +8823,18 @@ extern "C" { pub fn igImStrSkipBlank(str_: *const cty::c_char) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImToUpper(c: cty::c_char) -> cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImCharIsBlankA(c: cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImCharIsBlankW(c: cty::c_uint) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igImFormatString( buf: *mut cty::c_char, @@ -8319,6 +8844,15 @@ extern "C" { ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImFormatStringToTempBuffer( + out_buf: *mut *const cty::c_char, + out_buf_end: *mut *const cty::c_char, + fmt: *const cty::c_char, + ... + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igImParseFormatFindStart(format: *const cty::c_char) -> *const cty::c_char; } @@ -8336,18 +8870,26 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImParseFormatPrecision( - format: *const cty::c_char, - default_value: cty::c_int, - ) -> cty::c_int; + pub fn igImParseFormatSanitizeForPrinting( + fmt_in: *const cty::c_char, + fmt_out: *mut cty::c_char, + fmt_out_size: usize, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImCharIsBlankA(c: cty::c_char) -> bool; + pub fn igImParseFormatSanitizeForScanning( + fmt_in: *const cty::c_char, + fmt_out: *mut cty::c_char, + fmt_out_size: usize, + ) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImCharIsBlankW(c: cty::c_uint) -> bool; + pub fn igImParseFormatPrecision( + format: *const cty::c_char, + default_value: cty::c_int, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8442,47 +8984,47 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImPowFloat(x: f32, y: f32) -> f32; + pub fn igImPow_Float(x: f32, y: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImPowdouble(x: f64, y: f64) -> f64; + pub fn igImPow_double(x: f64, y: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImLogFloat(x: f32) -> f32; + pub fn igImLog_Float(x: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImLogdouble(x: f64) -> f64; + pub fn igImLog_double(x: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImAbsInt(x: cty::c_int) -> cty::c_int; + pub fn igImAbs_Int(x: cty::c_int) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImAbsFloat(x: f32) -> f32; + pub fn igImAbs_Float(x: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImAbsdouble(x: f64) -> f64; + pub fn igImAbs_double(x: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImSignFloat(x: f32) -> f32; + pub fn igImSign_Float(x: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImSigndouble(x: f64) -> f64; + pub fn igImSign_double(x: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImRsqrtFloat(x: f32) -> f32; + pub fn igImRsqrt_Float(x: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImRsqrtdouble(x: f64) -> f64; + pub fn igImRsqrt_double(x: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8498,15 +9040,15 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImLerpVec2Float(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: f32); + pub fn igImLerp_Vec2Float(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImLerpVec2Vec2(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: ImVec2); + pub fn igImLerp_Vec2Vec2(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImLerpVec4(pOut: *mut ImVec4, a: ImVec4, b: ImVec4, t: f32); + pub fn igImLerp_Vec4(pOut: *mut ImVec4, a: ImVec4, b: ImVec4, t: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8514,11 +9056,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImLengthSqrVec2(lhs: ImVec2) -> f32; + pub fn igImLengthSqr_Vec2(lhs: ImVec2) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImLengthSqrVec4(lhs: ImVec4) -> f32; + pub fn igImLengthSqr_Vec4(lhs: ImVec4) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8526,15 +9068,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImFloorFloat(f: f32) -> f32; + pub fn igImFloor_Float(f: f32) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImFloorSigned_Float(f: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImFloorSigned(f: f32) -> f32; + pub fn igImFloor_Vec2(pOut: *mut ImVec2, v: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImFloorVec2(pOut: *mut ImVec2, v: ImVec2); + pub fn igImFloorSigned_Vec2(pOut: *mut ImVec2, v: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8633,7 +9179,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec1_ImVec1Nil() -> *mut ImVec1; + pub fn ImVec1_ImVec1_Nil() -> *mut ImVec1; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8641,11 +9187,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec1_ImVec1Float(_x: f32) -> *mut ImVec1; + pub fn ImVec1_ImVec1_Float(_x: f32) -> *mut ImVec1; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec2ih_ImVec2ihNil() -> *mut ImVec2ih; + pub fn ImVec2ih_ImVec2ih_Nil() -> *mut ImVec2ih; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8653,15 +9199,15 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec2ih_ImVec2ihshort(_x: cty::c_short, _y: cty::c_short) -> *mut ImVec2ih; + pub fn ImVec2ih_ImVec2ih_short(_x: cty::c_short, _y: cty::c_short) -> *mut ImVec2ih; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImVec2ih_ImVec2ihVec2(rhs: ImVec2) -> *mut ImVec2ih; + pub fn ImVec2ih_ImVec2ih_Vec2(rhs: ImVec2) -> *mut ImVec2ih; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_ImRectNil() -> *mut ImRect; + pub fn ImRect_ImRect_Nil() -> *mut ImRect; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8669,15 +9215,15 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_ImRectVec2(min: ImVec2, max: ImVec2) -> *mut ImRect; + pub fn ImRect_ImRect_Vec2(min: ImVec2, max: ImVec2) -> *mut ImRect; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_ImRectVec4(v: ImVec4) -> *mut ImRect; + pub fn ImRect_ImRect_Vec4(v: ImVec4) -> *mut ImRect; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_ImRectFloat(x1: f32, y1: f32, x2: f32, y2: f32) -> *mut ImRect; + pub fn ImRect_ImRect_Float(x1: f32, y1: f32, x2: f32, y2: f32) -> *mut ImRect; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8717,11 +9263,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_ContainsVec2(self_: *mut ImRect, p: ImVec2) -> bool; + pub fn ImRect_Contains_Vec2(self_: *mut ImRect, p: ImVec2) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_ContainsRect(self_: *mut ImRect, r: ImRect) -> bool; + pub fn ImRect_Contains_Rect(self_: *mut ImRect, r: ImRect) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8729,19 +9275,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_AddVec2(self_: *mut ImRect, p: ImVec2); + pub fn ImRect_Add_Vec2(self_: *mut ImRect, p: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_AddRect(self_: *mut ImRect, r: ImRect); + pub fn ImRect_Add_Rect(self_: *mut ImRect, r: ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_ExpandFloat(self_: *mut ImRect, amount: f32); + pub fn ImRect_Expand_Float(self_: *mut ImRect, amount: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImRect_ExpandVec2(self_: *mut ImRect, amount: ImVec2); + pub fn ImRect_Expand_Vec2(self_: *mut ImRect, amount: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8812,6 +9358,39 @@ extern "C" { pub fn ImBitVector_ClearBit(self_: *mut ImBitVector, n: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_clear(self_: *mut ImGuiTextIndex); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_size(self_: *mut ImGuiTextIndex) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_get_line_begin( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + n: cty::c_int, + ) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_get_line_end( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + n: cty::c_int, + ) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_append( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + old_size: cty::c_int, + new_size: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn ImDrawListSharedData_ImDrawListSharedData() -> *mut ImDrawListSharedData; } @@ -8844,7 +9423,8 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStyleMod_ImGuiStyleModInt(idx: ImGuiStyleVar, v: cty::c_int) -> *mut ImGuiStyleMod; + pub fn ImGuiStyleMod_ImGuiStyleMod_Int(idx: ImGuiStyleVar, v: cty::c_int) + -> *mut ImGuiStyleMod; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -8852,11 +9432,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStyleMod_ImGuiStyleModFloat(idx: ImGuiStyleVar, v: f32) -> *mut ImGuiStyleMod; + pub fn ImGuiStyleMod_ImGuiStyleMod_Float(idx: ImGuiStyleVar, v: f32) -> *mut ImGuiStyleMod; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStyleMod_ImGuiStyleModVec2(idx: ImGuiStyleVar, v: ImVec2) -> *mut ImGuiStyleMod; + pub fn ImGuiStyleMod_ImGuiStyleMod_Vec2(idx: ImGuiStyleVar, v: ImVec2) -> *mut ImGuiStyleMod; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -9014,7 +9594,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndexPtr(ptr: *mut cty::c_void) -> *mut ImGuiPtrOrIndex; + pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(ptr: *mut cty::c_void) -> *mut ImGuiPtrOrIndex; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -9022,7 +9602,43 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndexInt(index: cty::c_int) -> *mut ImGuiPtrOrIndex; + pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(index: cty::c_int) -> *mut ImGuiPtrOrIndex; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputEvent_ImGuiInputEvent() -> *mut ImGuiInputEvent; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputEvent_destroy(self_: *mut ImGuiInputEvent); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiKeyRoutingData_ImGuiKeyRoutingData() -> *mut ImGuiKeyRoutingData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiKeyRoutingData_destroy(self_: *mut ImGuiKeyRoutingData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiKeyRoutingTable_ImGuiKeyRoutingTable() -> *mut ImGuiKeyRoutingTable; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiKeyRoutingTable_destroy(self_: *mut ImGuiKeyRoutingTable); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiKeyRoutingTable_Clear(self_: *mut ImGuiKeyRoutingTable); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiKeyOwnerData_ImGuiKeyOwnerData() -> *mut ImGuiKeyOwnerData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiKeyOwnerData_destroy(self_: *mut ImGuiKeyOwnerData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -9265,23 +9881,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiWindow_GetIDStr( - self_: *mut ImGuiWindow, - str_: *const cty::c_char, - str_end: *const cty::c_char, - ) -> ImGuiID; -} -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImGuiWindow_GetIDPtr(self_: *mut ImGuiWindow, ptr: *const cty::c_void) -> ImGuiID; -} -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImGuiWindow_GetIDInt(self_: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; -} -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImGuiWindow_GetIDNoKeepAliveStr( + pub fn ImGuiWindow_GetID_Str( self_: *mut ImGuiWindow, str_: *const cty::c_char, str_end: *const cty::c_char, @@ -9289,14 +9889,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiWindow_GetIDNoKeepAlivePtr( - self_: *mut ImGuiWindow, - ptr: *const cty::c_void, - ) -> ImGuiID; + pub fn ImGuiWindow_GetID_Ptr(self_: *mut ImGuiWindow, ptr: *const cty::c_void) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiWindow_GetIDNoKeepAliveInt(self_: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; + pub fn ImGuiWindow_GetID_Int(self_: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -9363,6 +9960,14 @@ extern "C" { pub fn ImGuiTableColumn_destroy(self_: *mut ImGuiTableColumn); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableInstanceData_ImGuiTableInstanceData() -> *mut ImGuiTableInstanceData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableInstanceData_destroy(self_: *mut ImGuiTableInstanceData); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn ImGuiTable_ImGuiTable() -> *mut ImGuiTable; } @@ -9457,15 +10062,15 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowPosWindowPtr(window: *mut ImGuiWindow, pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_WindowPtr(window: *mut ImGuiWindow, pos: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowSizeWindowPtr(window: *mut ImGuiWindow, size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_WindowPtr(window: *mut ImGuiWindow, size: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowCollapsedWindowPtr( + pub fn igSetWindowCollapsed_WindowPtr( window: *mut ImGuiWindow, collapsed: bool, cond: ImGuiCond, @@ -9530,15 +10135,19 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetForegroundDrawListWindowPtr(window: *mut ImGuiWindow) -> *mut ImDrawList; + pub fn igGetForegroundDrawList_WindowPtr(window: *mut ImGuiWindow) -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInitialize(context: *mut ImGuiContext); + pub fn igInitialize(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igShutdown(context: *mut ImGuiContext); + pub fn igShutdown(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igUpdateInputEvents(trickle_fast_inputs: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -9593,6 +10202,10 @@ extern "C" { pub fn igDestroyPlatformWindow(viewport: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowViewport(window: *mut ImGuiWindow, viewport: *mut ImGuiViewportP); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igSetCurrentViewport(window: *mut ImGuiWindow, viewport: *mut ImGuiViewportP); } @@ -9604,11 +10217,17 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMarkIniSettingsDirtyNil(); + pub fn igFindHoveredViewportFromPlatformWindowStack( + mouse_platform_pos: ImVec2, + ) -> *mut ImGuiViewportP; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMarkIniSettingsDirty_Nil(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMarkIniSettingsDirtyWindowPtr(window: *mut ImGuiWindow); + pub fn igMarkIniSettingsDirty_WindowPtr(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -9627,24 +10246,36 @@ extern "C" { pub fn igFindOrCreateWindowSettings(name: *const cty::c_char) -> *mut ImGuiWindowSettings; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igAddSettingsHandler(handler: *const ImGuiSettingsHandler); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRemoveSettingsHandler(type_name: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igFindSettingsHandler(type_name: *const cty::c_char) -> *mut ImGuiSettingsHandler; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowScroll(scroll: ImVec2); + pub fn igLocalizeRegisterEntries(entries: *const ImGuiLocEntry, count: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollXWindowPtr(window: *mut ImGuiWindow, scroll_x: f32); + pub fn igLocalizeGetMsg(key: ImGuiLocKey) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollYWindowPtr(window: *mut ImGuiWindow, scroll_y: f32); + pub fn igSetScrollX_WindowPtr(window: *mut ImGuiWindow, scroll_x: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollFromPosXWindowPtr( + pub fn igSetScrollY_WindowPtr(window: *mut ImGuiWindow, scroll_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollFromPosX_WindowPtr( window: *mut ImGuiWindow, local_x: f32, center_x_ratio: f32, @@ -9652,7 +10283,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollFromPosYWindowPtr( + pub fn igSetScrollFromPosY_WindowPtr( window: *mut ImGuiWindow, local_y: f32, center_y_ratio: f32, @@ -9741,11 +10372,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igItemSizeVec2(size: ImVec2, text_baseline_y: f32); + pub fn igItemSize_Vec2(size: ImVec2, text_baseline_y: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igItemSizeRect(bb: ImRect, text_baseline_y: f32); + pub fn igItemSize_Rect(bb: ImRect, text_baseline_y: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -9856,7 +10487,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsPopupOpenID(id: ImGuiID, popup_flags: ImGuiPopupFlags) -> bool; + pub fn igIsPopupOpen_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -9982,19 +10613,88 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetNavInputAmount(n: ImGuiNavInput, mode: ImGuiInputReadMode) -> f32; + pub fn igActivateItem(id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNavWindow(window: *mut ImGuiWindow); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNavID( + id: ImGuiID, + nav_layer: ImGuiNavLayer, + focus_scope_id: ImGuiID, + rect_rel: ImRect, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsNamedKey(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsNamedKeyOrModKey(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsLegacyKey(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyboardKey(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsGamepadKey(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseKey(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAliasKey(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igConvertSingleModFlagToKey(key: ImGuiKey) -> ImGuiKey; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetNavInputAmount2d( + pub fn igGetKeyData(key: ImGuiKey) -> *mut ImGuiKeyData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyChordName( + key_chord: ImGuiKeyChord, + out_buf: *mut cty::c_char, + out_buf_size: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMouseButtonToKey(button: ImGuiMouseButton) -> ImGuiKey; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDragPastThreshold(button: ImGuiMouseButton, lock_threshold: f32) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyVector2d( pOut: *mut ImVec2, - dir_sources: ImGuiNavDirSourceFlags, - mode: ImGuiInputReadMode, - slow_factor: f32, - fast_factor: f32, + key_left: ImGuiKey, + key_right: ImGuiKey, + key_up: ImGuiKey, + key_down: ImGuiKey, ); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetNavTweakPressedAmount(axis: ImGuiAxis) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igCalcTypematicRepeatAmount( t0: f32, @@ -10005,72 +10705,87 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igActivateItem(id: ImGuiID); + pub fn igGetTypematicRepeatRate( + flags: ImGuiInputFlags, + repeat_delay: *mut f32, + repeat_rate: *mut f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNavID( - id: ImGuiID, - nav_layer: ImGuiNavLayer, - focus_scope_id: ImGuiID, - rect_rel: ImRect, - ); + pub fn igSetActiveIdUsingAllKeyboardKeys(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushFocusScope(id: ImGuiID); + pub fn igIsActiveIdUsingNavDir(dir: ImGuiDir) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopFocusScope(); + pub fn igGetKeyOwner(key: ImGuiKey) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFocusedFocusScope() -> ImGuiID; + pub fn igSetKeyOwner(key: ImGuiKey, owner_id: ImGuiID, flags: ImGuiInputFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFocusScope() -> ImGuiID; + pub fn igSetItemKeyOwner(key: ImGuiKey, flags: ImGuiInputFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetItemUsingMouseWheel(); + pub fn igTestKeyOwner(key: ImGuiKey, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetActiveIdUsingNavAndKeys(); + pub fn igGetKeyOwnerData(key: ImGuiKey) -> *mut ImGuiKeyOwnerData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsActiveIdUsingNavDir(dir: ImGuiDir) -> bool; + pub fn igIsKeyDown_ID(key: ImGuiKey, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsActiveIdUsingNavInput(input: ImGuiNavInput) -> bool; + pub fn igIsKeyPressed_ID(key: ImGuiKey, owner_id: ImGuiID, flags: ImGuiInputFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsActiveIdUsingKey(key: ImGuiKey) -> bool; + pub fn igIsKeyReleased_ID(key: ImGuiKey, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseDragPastThreshold(button: ImGuiMouseButton, lock_threshold: f32) -> bool; + pub fn igIsMouseDown_ID(button: ImGuiMouseButton, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyPressedMap(key: ImGuiKey, repeat: bool) -> bool; + pub fn igIsMouseClicked_ID( + button: ImGuiMouseButton, + owner_id: ImGuiID, + flags: ImGuiInputFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseReleased_ID(button: ImGuiMouseButton, owner_id: ImGuiID) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShortcut(key_chord: ImGuiKeyChord, owner_id: ImGuiID, flags: ImGuiInputFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsNavInputDown(n: ImGuiNavInput) -> bool; + pub fn igSetShortcutRouting( + key_chord: ImGuiKeyChord, + owner_id: ImGuiID, + flags: ImGuiInputFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsNavInputTest(n: ImGuiNavInput, rm: ImGuiInputReadMode) -> bool; + pub fn igTestShortcutRouting(key_chord: ImGuiKeyChord, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetMergedKeyModFlags() -> ImGuiKeyModFlags; + pub fn igGetShortcutRoutingData(key_chord: ImGuiKeyChord) -> *mut ImGuiKeyRoutingData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -10133,13 +10848,18 @@ extern "C" { pub fn igDockContextCalcDropPosForDocking( target: *mut ImGuiWindow, target_node: *mut ImGuiDockNode, - payload: *mut ImGuiWindow, + payload_window: *mut ImGuiWindow, + payload_node: *mut ImGuiDockNode, split_dir: ImGuiDir, split_outer: bool, out_pos: *mut ImVec2, ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDockContextFindNodeByID(ctx: *mut ImGuiContext, id: ImGuiID) -> *mut ImGuiDockNode; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igDockNodeBeginAmendTabBar(node: *mut ImGuiDockNode) -> bool; } @@ -10261,6 +10981,22 @@ extern "C" { pub fn igDockBuilderFinish(node_id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushFocusScope(id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopFocusScope(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCurrentFocusScope() -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsDragDropActive() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igBeginDragDropTargetCustom(bb: ImRect, id: ImGuiID) -> bool; } @@ -10273,6 +11009,10 @@ extern "C" { pub fn igIsDragDropPayloadBeingAccepted() -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRenderDragDropTargetRect(bb: ImRect); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igSetWindowClipRectBeforeSetChannel(window: *mut ImGuiWindow, clip_rect: ImRect); } @@ -10400,10 +11140,21 @@ extern "C" { pub fn igTableDrawContextMenu(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableBeginContextMenuPopup(table: *mut ImGuiTable) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igTableMergeDrawChannels(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetInstanceData( + table: *mut ImGuiTable, + instance_no: cty::c_int, + ) -> *mut ImGuiTableInstanceData; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igTableSortSpecsSanitize(table: *mut ImGuiTable); } @@ -10445,7 +11196,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGetColumnNameTablePtr( + pub fn igTableGetColumnName_TablePtr( table: *const ImGuiTable, column_n: cty::c_int, ) -> *const cty::c_char; @@ -10476,11 +11227,11 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGcCompactTransientBuffersTablePtr(table: *mut ImGuiTable); + pub fn igTableGcCompactTransientBuffers_TablePtr(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGcCompactTransientBuffersTableTempDataPtr(table: *mut ImGuiTableTempData); + pub fn igTableGcCompactTransientBuffers_TableTempDataPtr(table: *mut ImGuiTableTempData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -10504,7 +11255,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableSettingsInstallHandler(context: *mut ImGuiContext); + pub fn igTableSettingsAddSettingsHandler(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -10582,7 +11333,15 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTabItemCalcSize(pOut: *mut ImVec2, label: *const cty::c_char, has_close_button: bool); + pub fn igTabItemCalcSize_Str( + pOut: *mut ImVec2, + label: *const cty::c_char, + has_close_button_or_unsaved_marker: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTabItemCalcSize_WindowPtr(pOut: *mut ImVec2, window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -10703,6 +11462,17 @@ extern "C" { ) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRenderMouseCursor( + pos: ImVec2, + scale: f32, + mouse_cursor: ImGuiMouseCursor, + col_fill: ImU32, + col_border: ImU32, + col_shadow: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igRenderArrow( draw_list: *mut ImDrawList, @@ -10721,18 +11491,6 @@ extern "C" { pub fn igRenderCheckMark(draw_list: *mut ImDrawList, pos: ImVec2, col: ImU32, sz: f32); } #[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igRenderMouseCursor( - draw_list: *mut ImDrawList, - pos: ImVec2, - scale: f32, - mouse_cursor: ImGuiMouseCursor, - col_fill: ImU32, - col_border: ImU32, - col_shadow: ImU32, - ); -} -#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igRenderArrowPointingAt( draw_list: *mut ImDrawList, @@ -10825,7 +11583,6 @@ extern "C" { size: ImVec2, uv0: ImVec2, uv1: ImVec2, - padding: ImVec2, bg_col: ImVec4, tint_col: ImVec4, ) -> bool; @@ -10852,7 +11609,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCheckboxFlagsS64Ptr( + pub fn igCheckboxFlags_S64Ptr( label: *const cty::c_char, flags: *mut ImS64, flags_value: ImS64, @@ -10860,7 +11617,7 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCheckboxFlagsU64Ptr( + pub fn igCheckboxFlags_U64Ptr( label: *const cty::c_char, flags: *mut ImU64, flags_value: ImU64, @@ -10929,11 +11686,15 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeBehaviorIsOpen(id: ImGuiID, flags: ImGuiTreeNodeFlags) -> bool; + pub fn igTreePushOverrideID(id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreePushOverrideID(id: ImGuiID); + pub fn igTreeNodeSetOpen(id: ImGuiID, open: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeUpdateNextOpen(id: ImGuiID, flags: ImGuiTreeNodeFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { @@ -10961,9 +11722,8 @@ extern "C" { } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDataTypeApplyOpFromText( + pub fn igDataTypeApplyFromText( buf: *const cty::c_char, - initial_value_buf: *const cty::c_char, data_type: ImGuiDataType, p_data: *mut cty::c_void, format: *const cty::c_char, @@ -11098,6 +11858,10 @@ extern "C" { pub fn igGcAwakeTransientWindowBuffers(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugLog(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igErrorCheckEndFrameRecover( log_callback: ImGuiErrorLogCallback, @@ -11112,6 +11876,22 @@ extern "C" { ); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igErrorCheckUsingSetCursorPosToExtendParentBoundaries(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugLocateItem(target_id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugLocateItemOnHover(target_id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugLocateItemResolveWithLastItem(); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igDebugDrawItemRect(col: ImU32); } @@ -11164,6 +11944,10 @@ extern "C" { pub fn igDebugNodeFont(font: *mut ImFont); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugNodeFontGlyph(font: *mut ImFont, glyph: *const ImFontGlyph); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igDebugNodeStorage(storage: *mut ImGuiStorage, label: *const cty::c_char); } @@ -11180,6 +11964,10 @@ extern "C" { pub fn igDebugNodeTableSettings(settings: *mut ImGuiTableSettings); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugNodeInputTextState(state: *mut ImGuiInputTextState); +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igDebugNodeWindow(window: *mut ImGuiWindow, label: *const cty::c_char); } @@ -11212,6 +12000,10 @@ extern "C" { ); } #[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyPressedMap(key: ImGuiKey, repeat: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] extern "C" { pub fn igImFontAtlasGetBuilderForStbTruetype() -> *const ImFontBuilderIO; } diff --git a/imgui-sys/third-party/imgui-docking/cimgui.cpp b/imgui-sys/third-party/imgui-docking/cimgui.cpp index d9ce56257..3466f54bc 100644 --- a/imgui-sys/third-party/imgui-docking/cimgui.cpp +++ b/imgui-sys/third-party/imgui-docking/cimgui.cpp @@ -1,10 +1,18 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui -//based on imgui.h file version "1.86" from Dear ImGui https://github.com/ocornut/imgui +//based on imgui.h file version "1.89.1" 18910 from Dear ImGui https://github.com/ocornut/imgui //with imgui_internal.h api //docking branch - -#include "./imgui/imgui.h" +#ifdef IMGUI_ENABLE_FREETYPE +#ifndef CIMGUI_FREETYPE +#error "IMGUI_FREETYPE should be defined for Freetype linking" +#endif +#else #ifdef CIMGUI_FREETYPE +#error "IMGUI_FREETYPE should not be defined without freetype generated cimgui" +#endif +#endif +#include "./imgui/imgui.h" +#ifdef IMGUI_ENABLE_FREETYPE #include "./imgui/misc/freetype/imgui_freetype.h" #endif #include "./imgui/imgui_internal.h" @@ -12,7 +20,7 @@ -CIMGUI_API ImVec2* ImVec2_ImVec2Nil(void) +CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void) { return IM_NEW(ImVec2)(); } @@ -20,11 +28,11 @@ CIMGUI_API void ImVec2_destroy(ImVec2* self) { IM_DELETE(self); } -CIMGUI_API ImVec2* ImVec2_ImVec2Float(float _x,float _y) +CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x,float _y) { return IM_NEW(ImVec2)(_x,_y); } -CIMGUI_API ImVec4* ImVec4_ImVec4Nil(void) +CIMGUI_API ImVec4* ImVec4_ImVec4_Nil(void) { return IM_NEW(ImVec4)(); } @@ -32,7 +40,7 @@ CIMGUI_API void ImVec4_destroy(ImVec4* self) { IM_DELETE(self); } -CIMGUI_API ImVec4* ImVec4_ImVec4Float(float _x,float _y,float _z,float _w) +CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x,float _y,float _z,float _w) { return IM_NEW(ImVec4)(_x,_y,_z,_w); } @@ -84,6 +92,10 @@ CIMGUI_API void igShowMetricsWindow(bool* p_open) { return ImGui::ShowMetricsWindow(p_open); } +CIMGUI_API void igShowDebugLogWindow(bool* p_open) +{ + return ImGui::ShowDebugLogWindow(p_open); +} CIMGUI_API void igShowStackToolWindow(bool* p_open) { return ImGui::ShowStackToolWindow(p_open); @@ -132,11 +144,11 @@ CIMGUI_API void igEnd() { return ImGui::End(); } -CIMGUI_API bool igBeginChildStr(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags) +CIMGUI_API bool igBeginChild_Str(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags) { return ImGui::BeginChild(str_id,size,border,flags); } -CIMGUI_API bool igBeginChildID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags) +CIMGUI_API bool igBeginChild_ID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags) { return ImGui::BeginChild(id,size,border,flags); } @@ -212,6 +224,10 @@ CIMGUI_API void igSetNextWindowFocus() { return ImGui::SetNextWindowFocus(); } +CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll) +{ + return ImGui::SetNextWindowScroll(scroll); +} CIMGUI_API void igSetNextWindowBgAlpha(float alpha) { return ImGui::SetNextWindowBgAlpha(alpha); @@ -220,19 +236,19 @@ CIMGUI_API void igSetNextWindowViewport(ImGuiID viewport_id) { return ImGui::SetNextWindowViewport(viewport_id); } -CIMGUI_API void igSetWindowPosVec2(const ImVec2 pos,ImGuiCond cond) +CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos,ImGuiCond cond) { return ImGui::SetWindowPos(pos,cond); } -CIMGUI_API void igSetWindowSizeVec2(const ImVec2 size,ImGuiCond cond) +CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size,ImGuiCond cond) { return ImGui::SetWindowSize(size,cond); } -CIMGUI_API void igSetWindowCollapsedBool(bool collapsed,ImGuiCond cond) +CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed,ImGuiCond cond) { return ImGui::SetWindowCollapsed(collapsed,cond); } -CIMGUI_API void igSetWindowFocusNil() +CIMGUI_API void igSetWindowFocus_Nil() { return ImGui::SetWindowFocus(); } @@ -240,19 +256,19 @@ CIMGUI_API void igSetWindowFontScale(float scale) { return ImGui::SetWindowFontScale(scale); } -CIMGUI_API void igSetWindowPosStr(const char* name,const ImVec2 pos,ImGuiCond cond) +CIMGUI_API void igSetWindowPos_Str(const char* name,const ImVec2 pos,ImGuiCond cond) { return ImGui::SetWindowPos(name,pos,cond); } -CIMGUI_API void igSetWindowSizeStr(const char* name,const ImVec2 size,ImGuiCond cond) +CIMGUI_API void igSetWindowSize_Str(const char* name,const ImVec2 size,ImGuiCond cond) { return ImGui::SetWindowSize(name,size,cond); } -CIMGUI_API void igSetWindowCollapsedStr(const char* name,bool collapsed,ImGuiCond cond) +CIMGUI_API void igSetWindowCollapsed_Str(const char* name,bool collapsed,ImGuiCond cond) { return ImGui::SetWindowCollapsed(name,collapsed,cond); } -CIMGUI_API void igSetWindowFocusStr(const char* name) +CIMGUI_API void igSetWindowFocus_Str(const char* name) { return ImGui::SetWindowFocus(name); } @@ -280,11 +296,11 @@ CIMGUI_API float igGetScrollY() { return ImGui::GetScrollY(); } -CIMGUI_API void igSetScrollXFloat(float scroll_x) +CIMGUI_API void igSetScrollX_Float(float scroll_x) { return ImGui::SetScrollX(scroll_x); } -CIMGUI_API void igSetScrollYFloat(float scroll_y) +CIMGUI_API void igSetScrollY_Float(float scroll_y) { return ImGui::SetScrollY(scroll_y); } @@ -304,11 +320,11 @@ CIMGUI_API void igSetScrollHereY(float center_y_ratio) { return ImGui::SetScrollHereY(center_y_ratio); } -CIMGUI_API void igSetScrollFromPosXFloat(float local_x,float center_x_ratio) +CIMGUI_API void igSetScrollFromPosX_Float(float local_x,float center_x_ratio) { return ImGui::SetScrollFromPosX(local_x,center_x_ratio); } -CIMGUI_API void igSetScrollFromPosYFloat(float local_y,float center_y_ratio) +CIMGUI_API void igSetScrollFromPosY_Float(float local_y,float center_y_ratio) { return ImGui::SetScrollFromPosY(local_y,center_y_ratio); } @@ -320,11 +336,11 @@ CIMGUI_API void igPopFont() { return ImGui::PopFont(); } -CIMGUI_API void igPushStyleColorU32(ImGuiCol idx,ImU32 col) +CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col) { return ImGui::PushStyleColor(idx,col); } -CIMGUI_API void igPushStyleColorVec4(ImGuiCol idx,const ImVec4 col) +CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx,const ImVec4 col) { return ImGui::PushStyleColor(idx,col); } @@ -332,11 +348,11 @@ CIMGUI_API void igPopStyleColor(int count) { return ImGui::PopStyleColor(count); } -CIMGUI_API void igPushStyleVarFloat(ImGuiStyleVar idx,float val) +CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx,float val) { return ImGui::PushStyleVar(idx,val); } -CIMGUI_API void igPushStyleVarVec2(ImGuiStyleVar idx,const ImVec2 val) +CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx,const ImVec2 val) { return ImGui::PushStyleVar(idx,val); } @@ -396,15 +412,15 @@ CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut) { *pOut = ImGui::GetFontTexUvWhitePixel(); } -CIMGUI_API ImU32 igGetColorU32Col(ImGuiCol idx,float alpha_mul) +CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul) { return ImGui::GetColorU32(idx,alpha_mul); } -CIMGUI_API ImU32 igGetColorU32Vec4(const ImVec4 col) +CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col) { return ImGui::GetColorU32(col); } -CIMGUI_API ImU32 igGetColorU32U32(ImU32 col) +CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col) { return ImGui::GetColorU32(col); } @@ -504,19 +520,19 @@ CIMGUI_API float igGetFrameHeightWithSpacing() { return ImGui::GetFrameHeightWithSpacing(); } -CIMGUI_API void igPushIDStr(const char* str_id) +CIMGUI_API void igPushID_Str(const char* str_id) { return ImGui::PushID(str_id); } -CIMGUI_API void igPushIDStrStr(const char* str_id_begin,const char* str_id_end) +CIMGUI_API void igPushID_StrStr(const char* str_id_begin,const char* str_id_end) { return ImGui::PushID(str_id_begin,str_id_end); } -CIMGUI_API void igPushIDPtr(const void* ptr_id) +CIMGUI_API void igPushID_Ptr(const void* ptr_id) { return ImGui::PushID(ptr_id); } -CIMGUI_API void igPushIDInt(int int_id) +CIMGUI_API void igPushID_Int(int int_id) { return ImGui::PushID(int_id); } @@ -524,15 +540,15 @@ CIMGUI_API void igPopID() { return ImGui::PopID(); } -CIMGUI_API ImGuiID igGetIDStr(const char* str_id) +CIMGUI_API ImGuiID igGetID_Str(const char* str_id) { return ImGui::GetID(str_id); } -CIMGUI_API ImGuiID igGetIDStrStr(const char* str_id_begin,const char* str_id_end) +CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin,const char* str_id_end) { return ImGui::GetID(str_id_begin,str_id_end); } -CIMGUI_API ImGuiID igGetIDPtr(const void* ptr_id) +CIMGUI_API ImGuiID igGetID_Ptr(const void* ptr_id) { return ImGui::GetID(ptr_id); } @@ -622,31 +638,23 @@ CIMGUI_API bool igArrowButton(const char* str_id,ImGuiDir dir) { return ImGui::ArrowButton(str_id,dir); } -CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col) -{ - return ImGui::Image(user_texture_id,size,uv0,uv1,tint_col,border_col); -} -CIMGUI_API bool igImageButton(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,int frame_padding,const ImVec4 bg_col,const ImVec4 tint_col) -{ - return ImGui::ImageButton(user_texture_id,size,uv0,uv1,frame_padding,bg_col,tint_col); -} CIMGUI_API bool igCheckbox(const char* label,bool* v) { return ImGui::Checkbox(label,v); } -CIMGUI_API bool igCheckboxFlagsIntPtr(const char* label,int* flags,int flags_value) +CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label,int* flags,int flags_value) { return ImGui::CheckboxFlags(label,flags,flags_value); } -CIMGUI_API bool igCheckboxFlagsUintPtr(const char* label,unsigned int* flags,unsigned int flags_value) +CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label,unsigned int* flags,unsigned int flags_value) { return ImGui::CheckboxFlags(label,flags,flags_value); } -CIMGUI_API bool igRadioButtonBool(const char* label,bool active) +CIMGUI_API bool igRadioButton_Bool(const char* label,bool active) { return ImGui::RadioButton(label,active); } -CIMGUI_API bool igRadioButtonIntPtr(const char* label,int* v,int v_button) +CIMGUI_API bool igRadioButton_IntPtr(const char* label,int* v,int v_button) { return ImGui::RadioButton(label,v,v_button); } @@ -658,6 +666,14 @@ CIMGUI_API void igBullet() { return ImGui::Bullet(); } +CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col) +{ + return ImGui::Image(user_texture_id,size,uv0,uv1,tint_col,border_col); +} +CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col) +{ + return ImGui::ImageButton(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col); +} CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags) { return ImGui::BeginCombo(label,preview_value,flags); @@ -666,15 +682,15 @@ CIMGUI_API void igEndCombo() { return ImGui::EndCombo(); } -CIMGUI_API bool igComboStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items) +CIMGUI_API bool igCombo_Str_arr(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 igComboStr(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items) +CIMGUI_API bool igCombo_Str(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 igComboFnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items) +CIMGUI_API bool igCombo_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items) { return ImGui::Combo(label,current_item,items_getter,data,items_count,popup_max_height_in_items); } @@ -854,7 +870,7 @@ CIMGUI_API bool igColorPicker4(const char* label,float col[4],ImGuiColorEditFlag { return ImGui::ColorPicker4(label,col,flags,ref_col); } -CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,ImVec2 size) +CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size) { return ImGui::ColorButton(desc_id,col,flags,size); } @@ -862,11 +878,11 @@ CIMGUI_API void igSetColorEditOptions(ImGuiColorEditFlags flags) { return ImGui::SetColorEditOptions(flags); } -CIMGUI_API bool igTreeNodeStr(const char* label) +CIMGUI_API bool igTreeNode_Str(const char* label) { return ImGui::TreeNode(label); } -CIMGUI_API bool igTreeNodeStrStr(const char* str_id,const char* fmt,...) +CIMGUI_API bool igTreeNode_StrStr(const char* str_id,const char* fmt,...) { va_list args; va_start(args, fmt); @@ -874,7 +890,7 @@ CIMGUI_API bool igTreeNodeStrStr(const char* str_id,const char* fmt,...) va_end(args); return ret; } -CIMGUI_API bool igTreeNodePtr(const void* ptr_id,const char* fmt,...) +CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id,const char* fmt,...) { va_list args; va_start(args, fmt); @@ -882,19 +898,19 @@ CIMGUI_API bool igTreeNodePtr(const void* ptr_id,const char* fmt,...) va_end(args); return ret; } -CIMGUI_API bool igTreeNodeVStr(const char* str_id,const char* fmt,va_list args) +CIMGUI_API bool igTreeNodeV_Str(const char* str_id,const char* fmt,va_list args) { return ImGui::TreeNodeV(str_id,fmt,args); } -CIMGUI_API bool igTreeNodeVPtr(const void* ptr_id,const char* fmt,va_list args) +CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id,const char* fmt,va_list args) { return ImGui::TreeNodeV(ptr_id,fmt,args); } -CIMGUI_API bool igTreeNodeExStr(const char* label,ImGuiTreeNodeFlags flags) +CIMGUI_API bool igTreeNodeEx_Str(const char* label,ImGuiTreeNodeFlags flags) { return ImGui::TreeNodeEx(label,flags); } -CIMGUI_API bool igTreeNodeExStrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...) +CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...) { va_list args; va_start(args, fmt); @@ -902,7 +918,7 @@ CIMGUI_API bool igTreeNodeExStrStr(const char* str_id,ImGuiTreeNodeFlags flags,c va_end(args); return ret; } -CIMGUI_API bool igTreeNodeExPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...) +CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...) { va_list args; va_start(args, fmt); @@ -910,19 +926,19 @@ CIMGUI_API bool igTreeNodeExPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,cons va_end(args); return ret; } -CIMGUI_API bool igTreeNodeExVStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) +CIMGUI_API bool igTreeNodeExV_Str(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) { return ImGui::TreeNodeExV(str_id,flags,fmt,args); } -CIMGUI_API bool igTreeNodeExVPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) +CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) { return ImGui::TreeNodeExV(ptr_id,flags,fmt,args); } -CIMGUI_API void igTreePushStr(const char* str_id) +CIMGUI_API void igTreePush_Str(const char* str_id) { return ImGui::TreePush(str_id); } -CIMGUI_API void igTreePushPtr(const void* ptr_id) +CIMGUI_API void igTreePush_Ptr(const void* ptr_id) { return ImGui::TreePush(ptr_id); } @@ -934,11 +950,11 @@ CIMGUI_API float igGetTreeNodeToLabelSpacing() { return ImGui::GetTreeNodeToLabelSpacing(); } -CIMGUI_API bool igCollapsingHeaderTreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags) +CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags) { return ImGui::CollapsingHeader(label,flags); } -CIMGUI_API bool igCollapsingHeaderBoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags) +CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags) { return ImGui::CollapsingHeader(label,p_visible,flags); } @@ -946,11 +962,11 @@ CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond) { return ImGui::SetNextItemOpen(is_open,cond); } -CIMGUI_API bool igSelectableBool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size) +CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size) { return ImGui::Selectable(label,selected,flags,size); } -CIMGUI_API bool igSelectableBoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size) +CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size) { return ImGui::Selectable(label,p_selected,flags,size); } @@ -962,43 +978,43 @@ CIMGUI_API void igEndListBox() { return ImGui::EndListBox(); } -CIMGUI_API bool igListBoxStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items) +CIMGUI_API bool igListBox_Str_arr(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 igListBoxFnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items) +CIMGUI_API bool igListBox_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items) { return ImGui::ListBox(label,current_item,items_getter,data,items_count,height_in_items); } -CIMGUI_API void igPlotLinesFloatPtr(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 igPlotLines_FloatPtr(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) { return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride); } -CIMGUI_API void igPlotLinesFnFloatPtr(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 igPlotLines_FnFloatPtr(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) { return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size); } -CIMGUI_API void igPlotHistogramFloatPtr(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 igPlotHistogram_FloatPtr(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) { return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride); } -CIMGUI_API void igPlotHistogramFnFloatPtr(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 igPlotHistogram_FnFloatPtr(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) { return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size); } -CIMGUI_API void igValueBool(const char* prefix,bool b) +CIMGUI_API void igValue_Bool(const char* prefix,bool b) { return ImGui::Value(prefix,b); } -CIMGUI_API void igValueInt(const char* prefix,int v) +CIMGUI_API void igValue_Int(const char* prefix,int v) { return ImGui::Value(prefix,v); } -CIMGUI_API void igValueUint(const char* prefix,unsigned int v) +CIMGUI_API void igValue_Uint(const char* prefix,unsigned int v) { return ImGui::Value(prefix,v); } -CIMGUI_API void igValueFloat(const char* prefix,float v,const char* float_format) +CIMGUI_API void igValue_Float(const char* prefix,float v,const char* float_format) { return ImGui::Value(prefix,v,float_format); } @@ -1026,11 +1042,11 @@ CIMGUI_API void igEndMenu() { return ImGui::EndMenu(); } -CIMGUI_API bool igMenuItemBool(const char* label,const char* shortcut,bool selected,bool enabled) +CIMGUI_API bool igMenuItem_Bool(const char* label,const char* shortcut,bool selected,bool enabled) { return ImGui::MenuItem(label,shortcut,selected,enabled); } -CIMGUI_API bool igMenuItemBoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled) +CIMGUI_API bool igMenuItem_BoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled) { return ImGui::MenuItem(label,shortcut,p_selected,enabled); } @@ -1065,11 +1081,11 @@ CIMGUI_API void igEndPopup() { return ImGui::EndPopup(); } -CIMGUI_API void igOpenPopupStr(const char* str_id,ImGuiPopupFlags popup_flags) +CIMGUI_API void igOpenPopup_Str(const char* str_id,ImGuiPopupFlags popup_flags) { return ImGui::OpenPopup(str_id,popup_flags); } -CIMGUI_API void igOpenPopupID(ImGuiID id,ImGuiPopupFlags popup_flags) +CIMGUI_API void igOpenPopup_ID(ImGuiID id,ImGuiPopupFlags popup_flags) { return ImGui::OpenPopup(id,popup_flags); } @@ -1093,7 +1109,7 @@ CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,ImGuiPopupFlags popup { return ImGui::BeginPopupContextVoid(str_id,popup_flags); } -CIMGUI_API bool igIsPopupOpenStr(const char* str_id,ImGuiPopupFlags flags) +CIMGUI_API bool igIsPopupOpen_Str(const char* str_id,ImGuiPopupFlags flags) { return ImGui::IsPopupOpen(str_id,flags); } @@ -1149,7 +1165,7 @@ CIMGUI_API int igTableGetRowIndex() { return ImGui::TableGetRowIndex(); } -CIMGUI_API const char* igTableGetColumnNameInt(int column_n) +CIMGUI_API const char* igTableGetColumnName_Int(int column_n) { return ImGui::TableGetColumnName(column_n); } @@ -1393,37 +1409,37 @@ CIMGUI_API ImGuiViewport* igGetMainViewport() { return ImGui::GetMainViewport(); } -CIMGUI_API bool igIsRectVisibleNil(const ImVec2 size) +CIMGUI_API ImDrawList* igGetBackgroundDrawList_Nil() { - return ImGui::IsRectVisible(size); + return ImGui::GetBackgroundDrawList(); } -CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max) +CIMGUI_API ImDrawList* igGetForegroundDrawList_Nil() { - return ImGui::IsRectVisible(rect_min,rect_max); + return ImGui::GetForegroundDrawList(); } -CIMGUI_API double igGetTime() +CIMGUI_API ImDrawList* igGetBackgroundDrawList_ViewportPtr(ImGuiViewport* viewport) { - return ImGui::GetTime(); + return ImGui::GetBackgroundDrawList(viewport); } -CIMGUI_API int igGetFrameCount() +CIMGUI_API ImDrawList* igGetForegroundDrawList_ViewportPtr(ImGuiViewport* viewport) { - return ImGui::GetFrameCount(); + return ImGui::GetForegroundDrawList(viewport); } -CIMGUI_API ImDrawList* igGetBackgroundDrawListNil() +CIMGUI_API bool igIsRectVisible_Nil(const ImVec2 size) { - return ImGui::GetBackgroundDrawList(); + return ImGui::IsRectVisible(size); } -CIMGUI_API ImDrawList* igGetForegroundDrawListNil() +CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min,const ImVec2 rect_max) { - return ImGui::GetForegroundDrawList(); + return ImGui::IsRectVisible(rect_min,rect_max); } -CIMGUI_API ImDrawList* igGetBackgroundDrawListViewportPtr(ImGuiViewport* viewport) +CIMGUI_API double igGetTime() { - return ImGui::GetBackgroundDrawList(viewport); + return ImGui::GetTime(); } -CIMGUI_API ImDrawList* igGetForegroundDrawListViewportPtr(ImGuiViewport* viewport) +CIMGUI_API int igGetFrameCount() { - return ImGui::GetForegroundDrawList(viewport); + return ImGui::GetFrameCount(); } CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData() { @@ -1469,39 +1485,39 @@ CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,floa { return ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b); } -CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key) +CIMGUI_API bool igIsKeyDown_Nil(ImGuiKey key) { - return ImGui::GetKeyIndex(imgui_key); + return ImGui::IsKeyDown(key); } -CIMGUI_API bool igIsKeyDown(int user_key_index) +CIMGUI_API bool igIsKeyPressed_Bool(ImGuiKey key,bool repeat) { - return ImGui::IsKeyDown(user_key_index); + return ImGui::IsKeyPressed(key,repeat); } -CIMGUI_API bool igIsKeyPressed(int user_key_index,bool repeat) +CIMGUI_API bool igIsKeyReleased_Nil(ImGuiKey key) { - return ImGui::IsKeyPressed(user_key_index,repeat); + return ImGui::IsKeyReleased(key); } -CIMGUI_API bool igIsKeyReleased(int user_key_index) +CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate) { - return ImGui::IsKeyReleased(user_key_index); + return ImGui::GetKeyPressedAmount(key,repeat_delay,rate); } -CIMGUI_API int igGetKeyPressedAmount(int key_index,float repeat_delay,float rate) +CIMGUI_API const char* igGetKeyName(ImGuiKey key) { - return ImGui::GetKeyPressedAmount(key_index,repeat_delay,rate); + return ImGui::GetKeyName(key); } -CIMGUI_API void igCaptureKeyboardFromApp(bool want_capture_keyboard_value) +CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) { - return ImGui::CaptureKeyboardFromApp(want_capture_keyboard_value); + return ImGui::SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } -CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button) +CIMGUI_API bool igIsMouseDown_Nil(ImGuiMouseButton button) { return ImGui::IsMouseDown(button); } -CIMGUI_API bool igIsMouseClicked(ImGuiMouseButton button,bool repeat) +CIMGUI_API bool igIsMouseClicked_Bool(ImGuiMouseButton button,bool repeat) { return ImGui::IsMouseClicked(button,repeat); } -CIMGUI_API bool igIsMouseReleased(ImGuiMouseButton button) +CIMGUI_API bool igIsMouseReleased_Nil(ImGuiMouseButton button) { return ImGui::IsMouseReleased(button); } @@ -1553,9 +1569,9 @@ CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type) { return ImGui::SetMouseCursor(cursor_type); } -CIMGUI_API void igCaptureMouseFromApp(bool want_capture_mouse_value) +CIMGUI_API void igSetNextFrameWantCaptureMouse(bool want_capture_mouse) { - return ImGui::CaptureMouseFromApp(want_capture_mouse_value); + return ImGui::SetNextFrameWantCaptureMouse(want_capture_mouse); } CIMGUI_API const char* igGetClipboardText() { @@ -1581,6 +1597,10 @@ CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size) { return ImGui::SaveIniSettingsToMemory(out_ini_size); } +CIMGUI_API void igDebugTextEncoding(const char* text) +{ + return ImGui::DebugTextEncoding(text); +} CIMGUI_API bool igDebugCheckVersionAndDataLayout(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); @@ -1637,6 +1657,34 @@ CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor) { return self->ScaleAllSizes(scale_factor); } +CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self,ImGuiKey key,bool down) +{ + return self->AddKeyEvent(key,down); +} +CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self,ImGuiKey key,bool down,float v) +{ + return self->AddKeyAnalogEvent(key,down,v); +} +CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self,float x,float y) +{ + return self->AddMousePosEvent(x,y); +} +CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self,int button,bool down) +{ + return self->AddMouseButtonEvent(button,down); +} +CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self,float wh_x,float wh_y) +{ + return self->AddMouseWheelEvent(wh_x,wh_y); +} +CIMGUI_API void ImGuiIO_AddMouseViewportEvent(ImGuiIO* self,ImGuiID id) +{ + return self->AddMouseViewportEvent(id); +} +CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused) +{ + return self->AddFocusEvent(focused); +} CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self,unsigned int c) { return self->AddInputCharacter(c); @@ -1649,9 +1697,13 @@ CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* str) { return self->AddInputCharactersUTF8(str); } -CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused) +CIMGUI_API void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index) { - return self->AddFocusEvent(focused); + return self->SetKeyEventNativeData(key,native_keycode,native_scancode,native_legacy_index); +} +CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self,bool accepting_events) +{ + return self->SetAppAcceptingEvents(accepting_events); } CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self) { @@ -1781,7 +1833,7 @@ CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self) { return self->IsActive(); } -CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeNil(void) +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(void) { return IM_NEW(ImGuiTextRange)(); } @@ -1789,7 +1841,7 @@ CIMGUI_API void ImGuiTextRange_destroy(ImGuiTextRange* self) { IM_DELETE(self); } -CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeStr(const char* _b,const char* _e) +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b,const char* _e) { return IM_NEW(ImGuiTextRange)(_b,_e); } @@ -1845,7 +1897,7 @@ CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,v { return self->appendfv(fmt,args); } -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairInt(ImGuiID _key,int _val_i) +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key,int _val_i) { return IM_NEW(ImGuiStoragePair)(_key,_val_i); } @@ -1853,11 +1905,11 @@ CIMGUI_API void ImGuiStoragePair_destroy(ImGuiStoragePair* self) { IM_DELETE(self); } -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairFloat(ImGuiID _key,float _val_f) +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key,float _val_f) { return IM_NEW(ImGuiStoragePair)(_key,_val_f); } -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairPtr(ImGuiID _key,void* _val_p) +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key,void* _val_p) { return IM_NEW(ImGuiStoragePair)(_key,_val_p); } @@ -1945,7 +1997,7 @@ CIMGUI_API void ImGuiListClipper_ForceDisplayRangeByIndices(ImGuiListClipper* se { return self->ForceDisplayRangeByIndices(item_min,item_max); } -CIMGUI_API ImColor* ImColor_ImColorNil(void) +CIMGUI_API ImColor* ImColor_ImColor_Nil(void) { return IM_NEW(ImColor)(); } @@ -1953,21 +2005,21 @@ CIMGUI_API void ImColor_destroy(ImColor* self) { IM_DELETE(self); } -CIMGUI_API ImColor* ImColor_ImColorInt(int r,int g,int b,int a) +CIMGUI_API ImColor* ImColor_ImColor_Float(float r,float g,float b,float a) { return IM_NEW(ImColor)(r,g,b,a); } -CIMGUI_API ImColor* ImColor_ImColorU32(ImU32 rgba) +CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col) { - return IM_NEW(ImColor)(rgba); + return IM_NEW(ImColor)(col); } -CIMGUI_API ImColor* ImColor_ImColorFloat(float r,float g,float b,float a) +CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a) { return IM_NEW(ImColor)(r,g,b,a); } -CIMGUI_API ImColor* ImColor_ImColorVec4(const ImVec4 col) +CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba) { - return IM_NEW(ImColor)(col); + return IM_NEW(ImColor)(rgba); } CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a) { @@ -2017,7 +2069,7 @@ CIMGUI_API void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self,Im { return self->SetCurrentChannel(draw_list,channel_idx); } -CIMGUI_API ImDrawList* ImDrawList_ImDrawList(const ImDrawListSharedData* shared_data) +CIMGUI_API ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data) { return IM_NEW(ImDrawList)(shared_data); } @@ -2025,7 +2077,7 @@ CIMGUI_API void ImDrawList_destroy(ImDrawList* self) { IM_DELETE(self); } -CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect) +CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect) { return self->PushClipRect(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect); } @@ -2101,11 +2153,11 @@ CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,fl { return self->AddNgonFilled(center,radius,col,num_segments); } -CIMGUI_API void ImDrawList_AddTextVec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end) +CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end) { return self->AddText(pos,col,text_begin,text_end); } -CIMGUI_API void ImDrawList_AddTextFontPtr(ImDrawList* self,const ImFont* font,float font_size,const 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_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect) { return self->AddText(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect); } @@ -2421,6 +2473,10 @@ CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self) { return self->GetGlyphRangesDefault(); } +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self) +{ + return self->GetGlyphRangesGreek(); +} CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self) { return self->GetGlyphRangesKorean(); @@ -2505,11 +2561,11 @@ CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,con { return self->CalcWordWrapPositionA(scale,text,text_end,wrap_width); } -CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c) +CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c) { return self->RenderChar(draw_list,size,pos,col,c); } -CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip) +CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip) { return self->RenderText(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip); } @@ -2573,6 +2629,18 @@ CIMGUI_API void ImGuiPlatformMonitor_destroy(ImGuiPlatformMonitor* self) { IM_DELETE(self); } +CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void) +{ + return IM_NEW(ImGuiPlatformImeData)(); +} +CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key) +{ + return ImGui::GetKeyIndex(key); +} CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImU32 seed) { return ImHashData(data,data_size,seed); @@ -2589,11 +2657,11 @@ CIMGUI_API ImU32 igImAlphaBlendColors(ImU32 col_a,ImU32 col_b) { return ImAlphaBlendColors(col_a,col_b); } -CIMGUI_API bool igImIsPowerOfTwoInt(int v) +CIMGUI_API bool igImIsPowerOfTwo_Int(int v) { return ImIsPowerOfTwo(v); } -CIMGUI_API bool igImIsPowerOfTwoU64(ImU64 v) +CIMGUI_API bool igImIsPowerOfTwo_U64(ImU64 v) { return ImIsPowerOfTwo(v); } @@ -2649,6 +2717,18 @@ CIMGUI_API const char* igImStrSkipBlank(const char* str) { return ImStrSkipBlank(str); } +CIMGUI_API char igImToUpper(char c) +{ + return ImToUpper(c); +} +CIMGUI_API bool igImCharIsBlankA(char c) +{ + return ImCharIsBlankA(c); +} +CIMGUI_API bool igImCharIsBlankW(unsigned int c) +{ + return ImCharIsBlankW(c); +} CIMGUI_API int igImFormatString(char* buf,size_t buf_size,const char* fmt,...) { va_list args; @@ -2661,6 +2741,17 @@ CIMGUI_API int igImFormatStringV(char* buf,size_t buf_size,const char* fmt,va_li { return ImFormatStringV(buf,buf_size,fmt,args); } +CIMGUI_API void igImFormatStringToTempBuffer(const char** out_buf,const char** out_buf_end,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImFormatStringToTempBufferV(out_buf,out_buf_end,fmt,args); + va_end(args); +} +CIMGUI_API void igImFormatStringToTempBufferV(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args) +{ + return ImFormatStringToTempBufferV(out_buf,out_buf_end,fmt,args); +} CIMGUI_API const char* igImParseFormatFindStart(const char* format) { return ImParseFormatFindStart(format); @@ -2673,17 +2764,17 @@ CIMGUI_API const char* igImParseFormatTrimDecorations(const char* format,char* b { return ImParseFormatTrimDecorations(format,buf,buf_size); } -CIMGUI_API int igImParseFormatPrecision(const char* format,int default_value) +CIMGUI_API void igImParseFormatSanitizeForPrinting(const char* fmt_in,char* fmt_out,size_t fmt_out_size) { - return ImParseFormatPrecision(format,default_value); + return ImParseFormatSanitizeForPrinting(fmt_in,fmt_out,fmt_out_size); } -CIMGUI_API bool igImCharIsBlankA(char c) +CIMGUI_API const char* igImParseFormatSanitizeForScanning(const char* fmt_in,char* fmt_out,size_t fmt_out_size) { - return ImCharIsBlankA(c); + return ImParseFormatSanitizeForScanning(fmt_in,fmt_out,fmt_out_size); } -CIMGUI_API bool igImCharIsBlankW(unsigned int c) +CIMGUI_API int igImParseFormatPrecision(const char* format,int default_value) { - return ImCharIsBlankW(c); + return ImParseFormatPrecision(format,default_value); } CIMGUI_API const char* igImTextCharToUtf8(char out_buf[5],unsigned int c) { @@ -2737,47 +2828,47 @@ CIMGUI_API void* igImFileLoadToMemory(const char* filename,const char* mode,size { return ImFileLoadToMemory(filename,mode,out_file_size,padding_bytes); } -CIMGUI_API float igImPowFloat(float x,float y) +CIMGUI_API float igImPow_Float(float x,float y) { return ImPow(x,y); } -CIMGUI_API double igImPowdouble(double x,double y) +CIMGUI_API double igImPow_double(double x,double y) { return ImPow(x,y); } -CIMGUI_API float igImLogFloat(float x) +CIMGUI_API float igImLog_Float(float x) { return ImLog(x); } -CIMGUI_API double igImLogdouble(double x) +CIMGUI_API double igImLog_double(double x) { return ImLog(x); } -CIMGUI_API int igImAbsInt(int x) +CIMGUI_API int igImAbs_Int(int x) { return ImAbs(x); } -CIMGUI_API float igImAbsFloat(float x) +CIMGUI_API float igImAbs_Float(float x) { return ImAbs(x); } -CIMGUI_API double igImAbsdouble(double x) +CIMGUI_API double igImAbs_double(double x) { return ImAbs(x); } -CIMGUI_API float igImSignFloat(float x) +CIMGUI_API float igImSign_Float(float x) { return ImSign(x); } -CIMGUI_API double igImSigndouble(double x) +CIMGUI_API double igImSign_double(double x) { return ImSign(x); } -CIMGUI_API float igImRsqrtFloat(float x) +CIMGUI_API float igImRsqrt_Float(float x) { return ImRsqrt(x); } -CIMGUI_API double igImRsqrtdouble(double x) +CIMGUI_API double igImRsqrt_double(double x) { return ImRsqrt(x); } @@ -2793,15 +2884,15 @@ CIMGUI_API void igImClamp(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,ImVec2 mx) { *pOut = ImClamp(v,mn,mx); } -CIMGUI_API void igImLerpVec2Float(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t) +CIMGUI_API void igImLerp_Vec2Float(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t) { *pOut = ImLerp(a,b,t); } -CIMGUI_API void igImLerpVec2Vec2(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t) +CIMGUI_API void igImLerp_Vec2Vec2(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t) { *pOut = ImLerp(a,b,t); } -CIMGUI_API void igImLerpVec4(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t) +CIMGUI_API void igImLerp_Vec4(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t) { *pOut = ImLerp(a,b,t); } @@ -2809,11 +2900,11 @@ CIMGUI_API float igImSaturate(float f) { return ImSaturate(f); } -CIMGUI_API float igImLengthSqrVec2(const ImVec2 lhs) +CIMGUI_API float igImLengthSqr_Vec2(const ImVec2 lhs) { return ImLengthSqr(lhs); } -CIMGUI_API float igImLengthSqrVec4(const ImVec4 lhs) +CIMGUI_API float igImLengthSqr_Vec4(const ImVec4 lhs) { return ImLengthSqr(lhs); } @@ -2821,18 +2912,22 @@ CIMGUI_API float igImInvLength(const ImVec2 lhs,float fail_value) { return ImInvLength(lhs,fail_value); } -CIMGUI_API float igImFloorFloat(float f) +CIMGUI_API float igImFloor_Float(float f) { return ImFloor(f); } -CIMGUI_API float igImFloorSigned(float f) +CIMGUI_API float igImFloorSigned_Float(float f) { return ImFloorSigned(f); } -CIMGUI_API void igImFloorVec2(ImVec2 *pOut,const ImVec2 v) +CIMGUI_API void igImFloor_Vec2(ImVec2 *pOut,const ImVec2 v) { *pOut = ImFloor(v); } +CIMGUI_API void igImFloorSigned_Vec2(ImVec2 *pOut,const ImVec2 v) +{ + *pOut = ImFloorSigned(v); +} CIMGUI_API int igImModPositive(int a,int b) { return ImModPositive(a,b); @@ -2897,7 +2992,7 @@ CIMGUI_API ImGuiDir igImGetDirQuadrantFromDelta(float dx,float dy) { return ImGetDirQuadrantFromDelta(dx,dy); } -CIMGUI_API ImVec1* ImVec1_ImVec1Nil(void) +CIMGUI_API ImVec1* ImVec1_ImVec1_Nil(void) { return IM_NEW(ImVec1)(); } @@ -2905,11 +3000,11 @@ CIMGUI_API void ImVec1_destroy(ImVec1* self) { IM_DELETE(self); } -CIMGUI_API ImVec1* ImVec1_ImVec1Float(float _x) +CIMGUI_API ImVec1* ImVec1_ImVec1_Float(float _x) { return IM_NEW(ImVec1)(_x); } -CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ihNil(void) +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Nil(void) { return IM_NEW(ImVec2ih)(); } @@ -2917,15 +3012,15 @@ CIMGUI_API void ImVec2ih_destroy(ImVec2ih* self) { IM_DELETE(self); } -CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ihshort(short _x,short _y) +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_short(short _x,short _y) { return IM_NEW(ImVec2ih)(_x,_y); } -CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ihVec2(const ImVec2 rhs) +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Vec2(const ImVec2 rhs) { return IM_NEW(ImVec2ih)(rhs); } -CIMGUI_API ImRect* ImRect_ImRectNil(void) +CIMGUI_API ImRect* ImRect_ImRect_Nil(void) { return IM_NEW(ImRect)(); } @@ -2933,15 +3028,15 @@ CIMGUI_API void ImRect_destroy(ImRect* self) { IM_DELETE(self); } -CIMGUI_API ImRect* ImRect_ImRectVec2(const ImVec2 min,const ImVec2 max) +CIMGUI_API ImRect* ImRect_ImRect_Vec2(const ImVec2 min,const ImVec2 max) { return IM_NEW(ImRect)(min,max); } -CIMGUI_API ImRect* ImRect_ImRectVec4(const ImVec4 v) +CIMGUI_API ImRect* ImRect_ImRect_Vec4(const ImVec4 v) { return IM_NEW(ImRect)(v); } -CIMGUI_API ImRect* ImRect_ImRectFloat(float x1,float y1,float x2,float y2) +CIMGUI_API ImRect* ImRect_ImRect_Float(float x1,float y1,float x2,float y2) { return IM_NEW(ImRect)(x1,y1,x2,y2); } @@ -2981,11 +3076,11 @@ CIMGUI_API void ImRect_GetBR(ImVec2 *pOut,ImRect* self) { *pOut = self->GetBR(); } -CIMGUI_API bool ImRect_ContainsVec2(ImRect* self,const ImVec2 p) +CIMGUI_API bool ImRect_Contains_Vec2(ImRect* self,const ImVec2 p) { return self->Contains(p); } -CIMGUI_API bool ImRect_ContainsRect(ImRect* self,const ImRect r) +CIMGUI_API bool ImRect_Contains_Rect(ImRect* self,const ImRect r) { return self->Contains(r); } @@ -2993,19 +3088,19 @@ CIMGUI_API bool ImRect_Overlaps(ImRect* self,const ImRect r) { return self->Overlaps(r); } -CIMGUI_API void ImRect_AddVec2(ImRect* self,const ImVec2 p) +CIMGUI_API void ImRect_Add_Vec2(ImRect* self,const ImVec2 p) { return self->Add(p); } -CIMGUI_API void ImRect_AddRect(ImRect* self,const ImRect r) +CIMGUI_API void ImRect_Add_Rect(ImRect* self,const ImRect r) { return self->Add(r); } -CIMGUI_API void ImRect_ExpandFloat(ImRect* self,const float amount) +CIMGUI_API void ImRect_Expand_Float(ImRect* self,const float amount) { return self->Expand(amount); } -CIMGUI_API void ImRect_ExpandVec2(ImRect* self,const ImVec2 amount) +CIMGUI_API void ImRect_Expand_Vec2(ImRect* self,const ImVec2 amount) { return self->Expand(amount); } @@ -3077,6 +3172,26 @@ CIMGUI_API void ImBitVector_ClearBit(ImBitVector* self,int n) { return self->ClearBit(n); } +CIMGUI_API void ImGuiTextIndex_clear(ImGuiTextIndex* self) +{ + return self->clear(); +} +CIMGUI_API int ImGuiTextIndex_size(ImGuiTextIndex* self) +{ + return self->size(); +} +CIMGUI_API const char* ImGuiTextIndex_get_line_begin(ImGuiTextIndex* self,const char* base,int n) +{ + return self->get_line_begin(base,n); +} +CIMGUI_API const char* ImGuiTextIndex_get_line_end(ImGuiTextIndex* self,const char* base,int n) +{ + return self->get_line_end(base,n); +} +CIMGUI_API void ImGuiTextIndex_append(ImGuiTextIndex* self,const char* base,int old_size,int new_size) +{ + return self->append(base,old_size,new_size); +} CIMGUI_API ImDrawListSharedData* ImDrawListSharedData_ImDrawListSharedData(void) { return IM_NEW(ImDrawListSharedData)(); @@ -3105,7 +3220,7 @@ CIMGUI_API void ImDrawDataBuilder_FlattenIntoSingleLayer(ImDrawDataBuilder* self { return self->FlattenIntoSingleLayer(); } -CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModInt(ImGuiStyleVar idx,int v) +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Int(ImGuiStyleVar idx,int v) { return IM_NEW(ImGuiStyleMod)(idx,v); } @@ -3113,11 +3228,11 @@ CIMGUI_API void ImGuiStyleMod_destroy(ImGuiStyleMod* self) { IM_DELETE(self); } -CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModFloat(ImGuiStyleVar idx,float v) +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Float(ImGuiStyleVar idx,float v) { return IM_NEW(ImGuiStyleMod)(idx,v); } -CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModVec2(ImGuiStyleVar idx,ImVec2 v) +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Vec2(ImGuiStyleVar idx,ImVec2 v) { return IM_NEW(ImGuiStyleMod)(idx,v); } @@ -3265,7 +3380,7 @@ CIMGUI_API void ImGuiStackSizes_CompareWithCurrentState(ImGuiStackSizes* self) { return self->CompareWithCurrentState(); } -CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndexPtr(void* ptr) +CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(void* ptr) { return IM_NEW(ImGuiPtrOrIndex)(ptr); } @@ -3273,10 +3388,46 @@ CIMGUI_API void ImGuiPtrOrIndex_destroy(ImGuiPtrOrIndex* self) { IM_DELETE(self); } -CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndexInt(int index) +CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(int index) { return IM_NEW(ImGuiPtrOrIndex)(index); } +CIMGUI_API ImGuiInputEvent* ImGuiInputEvent_ImGuiInputEvent(void) +{ + return IM_NEW(ImGuiInputEvent)(); +} +CIMGUI_API void ImGuiInputEvent_destroy(ImGuiInputEvent* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiKeyRoutingData* ImGuiKeyRoutingData_ImGuiKeyRoutingData(void) +{ + return IM_NEW(ImGuiKeyRoutingData)(); +} +CIMGUI_API void ImGuiKeyRoutingData_destroy(ImGuiKeyRoutingData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiKeyRoutingTable* ImGuiKeyRoutingTable_ImGuiKeyRoutingTable(void) +{ + return IM_NEW(ImGuiKeyRoutingTable)(); +} +CIMGUI_API void ImGuiKeyRoutingTable_destroy(ImGuiKeyRoutingTable* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiKeyRoutingTable_Clear(ImGuiKeyRoutingTable* self) +{ + return self->Clear(); +} +CIMGUI_API ImGuiKeyOwnerData* ImGuiKeyOwnerData_ImGuiKeyOwnerData(void) +{ + return IM_NEW(ImGuiKeyOwnerData)(); +} +CIMGUI_API void ImGuiKeyOwnerData_destroy(ImGuiKeyOwnerData* self) +{ + IM_DELETE(self); +} CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromIndices(int min,int max) { return ImGuiListClipperRange::FromIndices(min,max); @@ -3493,30 +3644,18 @@ CIMGUI_API void ImGuiWindow_destroy(ImGuiWindow* self) { IM_DELETE(self); } -CIMGUI_API ImGuiID ImGuiWindow_GetIDStr(ImGuiWindow* self,const char* str,const char* str_end) +CIMGUI_API ImGuiID ImGuiWindow_GetID_Str(ImGuiWindow* self,const char* str,const char* str_end) { return self->GetID(str,str_end); } -CIMGUI_API ImGuiID ImGuiWindow_GetIDPtr(ImGuiWindow* self,const void* ptr) +CIMGUI_API ImGuiID ImGuiWindow_GetID_Ptr(ImGuiWindow* self,const void* ptr) { return self->GetID(ptr); } -CIMGUI_API ImGuiID ImGuiWindow_GetIDInt(ImGuiWindow* self,int n) +CIMGUI_API ImGuiID ImGuiWindow_GetID_Int(ImGuiWindow* self,int n) { return self->GetID(n); } -CIMGUI_API ImGuiID ImGuiWindow_GetIDNoKeepAliveStr(ImGuiWindow* self,const char* str,const char* str_end) -{ - return self->GetIDNoKeepAlive(str,str_end); -} -CIMGUI_API ImGuiID ImGuiWindow_GetIDNoKeepAlivePtr(ImGuiWindow* self,const void* ptr) -{ - return self->GetIDNoKeepAlive(ptr); -} -CIMGUI_API ImGuiID ImGuiWindow_GetIDNoKeepAliveInt(ImGuiWindow* self,int n) -{ - return self->GetIDNoKeepAlive(n); -} CIMGUI_API ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self,const ImRect r_abs) { return self->GetIDFromRectangle(r_abs); @@ -3577,6 +3716,14 @@ CIMGUI_API void ImGuiTableColumn_destroy(ImGuiTableColumn* self) { IM_DELETE(self); } +CIMGUI_API ImGuiTableInstanceData* ImGuiTableInstanceData_ImGuiTableInstanceData(void) +{ + return IM_NEW(ImGuiTableInstanceData)(); +} +CIMGUI_API void ImGuiTableInstanceData_destroy(ImGuiTableInstanceData* self) +{ + IM_DELETE(self); +} CIMGUI_API ImGuiTable* ImGuiTable_ImGuiTable(void) { return IM_NEW(ImGuiTable)(); @@ -3653,15 +3800,15 @@ CIMGUI_API bool igIsWindowNavFocusable(ImGuiWindow* window) { return ImGui::IsWindowNavFocusable(window); } -CIMGUI_API void igSetWindowPosWindowPtr(ImGuiWindow* window,const ImVec2 pos,ImGuiCond cond) +CIMGUI_API void igSetWindowPos_WindowPtr(ImGuiWindow* window,const ImVec2 pos,ImGuiCond cond) { return ImGui::SetWindowPos(window,pos,cond); } -CIMGUI_API void igSetWindowSizeWindowPtr(ImGuiWindow* window,const ImVec2 size,ImGuiCond cond) +CIMGUI_API void igSetWindowSize_WindowPtr(ImGuiWindow* window,const ImVec2 size,ImGuiCond cond) { return ImGui::SetWindowSize(window,size,cond); } -CIMGUI_API void igSetWindowCollapsedWindowPtr(ImGuiWindow* window,bool collapsed,ImGuiCond cond) +CIMGUI_API void igSetWindowCollapsed_WindowPtr(ImGuiWindow* window,bool collapsed,ImGuiCond cond) { return ImGui::SetWindowCollapsed(window,collapsed,cond); } @@ -3717,17 +3864,21 @@ CIMGUI_API ImFont* igGetDefaultFont() { return ImGui::GetDefaultFont(); } -CIMGUI_API ImDrawList* igGetForegroundDrawListWindowPtr(ImGuiWindow* window) +CIMGUI_API ImDrawList* igGetForegroundDrawList_WindowPtr(ImGuiWindow* window) { return ImGui::GetForegroundDrawList(window); } -CIMGUI_API void igInitialize(ImGuiContext* context) +CIMGUI_API void igInitialize() { - return ImGui::Initialize(context); + return ImGui::Initialize(); } -CIMGUI_API void igShutdown(ImGuiContext* context) +CIMGUI_API void igShutdown() { - return ImGui::Shutdown(context); + return ImGui::Shutdown(); +} +CIMGUI_API void igUpdateInputEvents(bool trickle_fast_inputs) +{ + return ImGui::UpdateInputEvents(trickle_fast_inputs); } CIMGUI_API void igUpdateHoveredWindowAndCaptureFlags() { @@ -3773,6 +3924,10 @@ CIMGUI_API void igDestroyPlatformWindow(ImGuiViewportP* viewport) { return ImGui::DestroyPlatformWindow(viewport); } +CIMGUI_API void igSetWindowViewport(ImGuiWindow* window,ImGuiViewportP* viewport) +{ + return ImGui::SetWindowViewport(window,viewport); +} CIMGUI_API void igSetCurrentViewport(ImGuiWindow* window,ImGuiViewportP* viewport) { return ImGui::SetCurrentViewport(window,viewport); @@ -3781,11 +3936,15 @@ CIMGUI_API const ImGuiPlatformMonitor* igGetViewportPlatformMonitor(ImGuiViewpor { return ImGui::GetViewportPlatformMonitor(viewport); } -CIMGUI_API void igMarkIniSettingsDirtyNil() +CIMGUI_API ImGuiViewportP* igFindHoveredViewportFromPlatformWindowStack(const ImVec2 mouse_platform_pos) +{ + return ImGui::FindHoveredViewportFromPlatformWindowStack(mouse_platform_pos); +} +CIMGUI_API void igMarkIniSettingsDirty_Nil() { return ImGui::MarkIniSettingsDirty(); } -CIMGUI_API void igMarkIniSettingsDirtyWindowPtr(ImGuiWindow* window) +CIMGUI_API void igMarkIniSettingsDirty_WindowPtr(ImGuiWindow* window) { return ImGui::MarkIniSettingsDirty(window); } @@ -3805,27 +3964,39 @@ CIMGUI_API ImGuiWindowSettings* igFindOrCreateWindowSettings(const char* name) { return ImGui::FindOrCreateWindowSettings(name); } +CIMGUI_API void igAddSettingsHandler(const ImGuiSettingsHandler* handler) +{ + return ImGui::AddSettingsHandler(handler); +} +CIMGUI_API void igRemoveSettingsHandler(const char* type_name) +{ + return ImGui::RemoveSettingsHandler(type_name); +} CIMGUI_API ImGuiSettingsHandler* igFindSettingsHandler(const char* type_name) { return ImGui::FindSettingsHandler(type_name); } -CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll) +CIMGUI_API void igLocalizeRegisterEntries(const ImGuiLocEntry* entries,int count) { - return ImGui::SetNextWindowScroll(scroll); + return ImGui::LocalizeRegisterEntries(entries,count); +} +CIMGUI_API const char* igLocalizeGetMsg(ImGuiLocKey key) +{ + return ImGui::LocalizeGetMsg(key); } -CIMGUI_API void igSetScrollXWindowPtr(ImGuiWindow* window,float scroll_x) +CIMGUI_API void igSetScrollX_WindowPtr(ImGuiWindow* window,float scroll_x) { return ImGui::SetScrollX(window,scroll_x); } -CIMGUI_API void igSetScrollYWindowPtr(ImGuiWindow* window,float scroll_y) +CIMGUI_API void igSetScrollY_WindowPtr(ImGuiWindow* window,float scroll_y) { return ImGui::SetScrollY(window,scroll_y); } -CIMGUI_API void igSetScrollFromPosXWindowPtr(ImGuiWindow* window,float local_x,float center_x_ratio) +CIMGUI_API void igSetScrollFromPosX_WindowPtr(ImGuiWindow* window,float local_x,float center_x_ratio) { return ImGui::SetScrollFromPosX(window,local_x,center_x_ratio); } -CIMGUI_API void igSetScrollFromPosYWindowPtr(ImGuiWindow* window,float local_y,float center_y_ratio) +CIMGUI_API void igSetScrollFromPosY_WindowPtr(ImGuiWindow* window,float local_y,float center_y_ratio) { return ImGui::SetScrollFromPosY(window,local_y,center_y_ratio); } @@ -3901,11 +4072,11 @@ CIMGUI_API ImGuiID igGetIDWithSeed(const char* str_id_begin,const char* str_id_e { return ImGui::GetIDWithSeed(str_id_begin,str_id_end,seed); } -CIMGUI_API void igItemSizeVec2(const ImVec2 size,float text_baseline_y) +CIMGUI_API void igItemSize_Vec2(const ImVec2 size,float text_baseline_y) { return ImGui::ItemSize(size,text_baseline_y); } -CIMGUI_API void igItemSizeRect(const ImRect bb,float text_baseline_y) +CIMGUI_API void igItemSize_Rect(const ImRect bb,float text_baseline_y) { return ImGui::ItemSize(bb,text_baseline_y); } @@ -3993,7 +4164,7 @@ CIMGUI_API void igClosePopupsExceptModals() { return ImGui::ClosePopupsExceptModals(); } -CIMGUI_API bool igIsPopupOpenID(ImGuiID id,ImGuiPopupFlags popup_flags) +CIMGUI_API bool igIsPopupOpen_ID(ImGuiID id,ImGuiPopupFlags popup_flags) { return ImGui::IsPopupOpen(id,popup_flags); } @@ -4085,81 +4256,149 @@ CIMGUI_API void igNavMoveRequestTryWrapping(ImGuiWindow* window,ImGuiNavMoveFlag { return ImGui::NavMoveRequestTryWrapping(window,move_flags); } -CIMGUI_API float igGetNavInputAmount(ImGuiNavInput n,ImGuiInputReadMode mode) +CIMGUI_API void igActivateItem(ImGuiID id) { - return ImGui::GetNavInputAmount(n,mode); + return ImGui::ActivateItem(id); } -CIMGUI_API void igGetNavInputAmount2d(ImVec2 *pOut,ImGuiNavDirSourceFlags dir_sources,ImGuiInputReadMode mode,float slow_factor,float fast_factor) +CIMGUI_API void igSetNavWindow(ImGuiWindow* window) { - *pOut = ImGui::GetNavInputAmount2d(dir_sources,mode,slow_factor,fast_factor); + return ImGui::SetNavWindow(window); } -CIMGUI_API int igCalcTypematicRepeatAmount(float t0,float t1,float repeat_delay,float repeat_rate) +CIMGUI_API void igSetNavID(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel) { - return ImGui::CalcTypematicRepeatAmount(t0,t1,repeat_delay,repeat_rate); + return ImGui::SetNavID(id,nav_layer,focus_scope_id,rect_rel); } -CIMGUI_API void igActivateItem(ImGuiID id) +CIMGUI_API bool igIsNamedKey(ImGuiKey key) { - return ImGui::ActivateItem(id); + return ImGui::IsNamedKey(key); } -CIMGUI_API void igSetNavID(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel) +CIMGUI_API bool igIsNamedKeyOrModKey(ImGuiKey key) { - return ImGui::SetNavID(id,nav_layer,focus_scope_id,rect_rel); + return ImGui::IsNamedKeyOrModKey(key); } -CIMGUI_API void igPushFocusScope(ImGuiID id) +CIMGUI_API bool igIsLegacyKey(ImGuiKey key) { - return ImGui::PushFocusScope(id); + return ImGui::IsLegacyKey(key); } -CIMGUI_API void igPopFocusScope() +CIMGUI_API bool igIsKeyboardKey(ImGuiKey key) { - return ImGui::PopFocusScope(); + return ImGui::IsKeyboardKey(key); } -CIMGUI_API ImGuiID igGetFocusedFocusScope() +CIMGUI_API bool igIsGamepadKey(ImGuiKey key) { - return ImGui::GetFocusedFocusScope(); + return ImGui::IsGamepadKey(key); } -CIMGUI_API ImGuiID igGetFocusScope() +CIMGUI_API bool igIsMouseKey(ImGuiKey key) { - return ImGui::GetFocusScope(); + return ImGui::IsMouseKey(key); } -CIMGUI_API void igSetItemUsingMouseWheel() +CIMGUI_API bool igIsAliasKey(ImGuiKey key) { - return ImGui::SetItemUsingMouseWheel(); + return ImGui::IsAliasKey(key); } -CIMGUI_API void igSetActiveIdUsingNavAndKeys() +CIMGUI_API ImGuiKey igConvertSingleModFlagToKey(ImGuiKey key) { - return ImGui::SetActiveIdUsingNavAndKeys(); + return ImGui::ConvertSingleModFlagToKey(key); } -CIMGUI_API bool igIsActiveIdUsingNavDir(ImGuiDir dir) +CIMGUI_API ImGuiKeyData* igGetKeyData(ImGuiKey key) { - return ImGui::IsActiveIdUsingNavDir(dir); + return ImGui::GetKeyData(key); } -CIMGUI_API bool igIsActiveIdUsingNavInput(ImGuiNavInput input) +CIMGUI_API void igGetKeyChordName(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size) { - return ImGui::IsActiveIdUsingNavInput(input); + return ImGui::GetKeyChordName(key_chord,out_buf,out_buf_size); } -CIMGUI_API bool igIsActiveIdUsingKey(ImGuiKey key) +CIMGUI_API ImGuiKey igMouseButtonToKey(ImGuiMouseButton button) { - return ImGui::IsActiveIdUsingKey(key); + return ImGui::MouseButtonToKey(button); } CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button,float lock_threshold) { return ImGui::IsMouseDragPastThreshold(button,lock_threshold); } -CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key,bool repeat) +CIMGUI_API void igGetKeyVector2d(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down) { - return ImGui::IsKeyPressedMap(key,repeat); + *pOut = ImGui::GetKeyVector2d(key_left,key_right,key_up,key_down); +} +CIMGUI_API float igGetNavTweakPressedAmount(ImGuiAxis axis) +{ + return ImGui::GetNavTweakPressedAmount(axis); +} +CIMGUI_API int igCalcTypematicRepeatAmount(float t0,float t1,float repeat_delay,float repeat_rate) +{ + return ImGui::CalcTypematicRepeatAmount(t0,t1,repeat_delay,repeat_rate); +} +CIMGUI_API void igGetTypematicRepeatRate(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate) +{ + return ImGui::GetTypematicRepeatRate(flags,repeat_delay,repeat_rate); +} +CIMGUI_API void igSetActiveIdUsingAllKeyboardKeys() +{ + return ImGui::SetActiveIdUsingAllKeyboardKeys(); +} +CIMGUI_API bool igIsActiveIdUsingNavDir(ImGuiDir dir) +{ + return ImGui::IsActiveIdUsingNavDir(dir); +} +CIMGUI_API ImGuiID igGetKeyOwner(ImGuiKey key) +{ + return ImGui::GetKeyOwner(key); +} +CIMGUI_API void igSetKeyOwner(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags) +{ + return ImGui::SetKeyOwner(key,owner_id,flags); +} +CIMGUI_API void igSetItemKeyOwner(ImGuiKey key,ImGuiInputFlags flags) +{ + return ImGui::SetItemKeyOwner(key,flags); +} +CIMGUI_API bool igTestKeyOwner(ImGuiKey key,ImGuiID owner_id) +{ + return ImGui::TestKeyOwner(key,owner_id); +} +CIMGUI_API ImGuiKeyOwnerData* igGetKeyOwnerData(ImGuiKey key) +{ + return ImGui::GetKeyOwnerData(key); } -CIMGUI_API bool igIsNavInputDown(ImGuiNavInput n) +CIMGUI_API bool igIsKeyDown_ID(ImGuiKey key,ImGuiID owner_id) { - return ImGui::IsNavInputDown(n); + return ImGui::IsKeyDown(key,owner_id); } -CIMGUI_API bool igIsNavInputTest(ImGuiNavInput n,ImGuiInputReadMode rm) +CIMGUI_API bool igIsKeyPressed_ID(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags) { - return ImGui::IsNavInputTest(n,rm); + return ImGui::IsKeyPressed(key,owner_id,flags); } -CIMGUI_API ImGuiKeyModFlags igGetMergedKeyModFlags() +CIMGUI_API bool igIsKeyReleased_ID(ImGuiKey key,ImGuiID owner_id) { - return ImGui::GetMergedKeyModFlags(); + return ImGui::IsKeyReleased(key,owner_id); +} +CIMGUI_API bool igIsMouseDown_ID(ImGuiMouseButton button,ImGuiID owner_id) +{ + return ImGui::IsMouseDown(button,owner_id); +} +CIMGUI_API bool igIsMouseClicked_ID(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags) +{ + return ImGui::IsMouseClicked(button,owner_id,flags); +} +CIMGUI_API bool igIsMouseReleased_ID(ImGuiMouseButton button,ImGuiID owner_id) +{ + return ImGui::IsMouseReleased(button,owner_id); +} +CIMGUI_API bool igShortcut(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags) +{ + return ImGui::Shortcut(key_chord,owner_id,flags); +} +CIMGUI_API bool igSetShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags) +{ + return ImGui::SetShortcutRouting(key_chord,owner_id,flags); +} +CIMGUI_API bool igTestShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id) +{ + return ImGui::TestShortcutRouting(key_chord,owner_id); +} +CIMGUI_API ImGuiKeyRoutingData* igGetShortcutRoutingData(ImGuiKeyChord key_chord) +{ + return ImGui::GetShortcutRoutingData(key_chord); } CIMGUI_API void igDockContextInitialize(ImGuiContext* ctx) { @@ -4205,9 +4444,13 @@ CIMGUI_API void igDockContextQueueUndockNode(ImGuiContext* ctx,ImGuiDockNode* no { return ImGui::DockContextQueueUndockNode(ctx,node); } -CIMGUI_API bool igDockContextCalcDropPosForDocking(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos) +CIMGUI_API bool igDockContextCalcDropPosForDocking(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos) { - return ImGui::DockContextCalcDropPosForDocking(target,target_node,payload,split_dir,split_outer,out_pos); + return ImGui::DockContextCalcDropPosForDocking(target,target_node,payload_window,payload_node,split_dir,split_outer,out_pos); +} +CIMGUI_API ImGuiDockNode* igDockContextFindNodeByID(ImGuiContext* ctx,ImGuiID id) +{ + return ImGui::DockContextFindNodeByID(ctx,id); } CIMGUI_API bool igDockNodeBeginAmendTabBar(ImGuiDockNode* node) { @@ -4313,6 +4556,22 @@ CIMGUI_API void igDockBuilderFinish(ImGuiID node_id) { return ImGui::DockBuilderFinish(node_id); } +CIMGUI_API void igPushFocusScope(ImGuiID id) +{ + return ImGui::PushFocusScope(id); +} +CIMGUI_API void igPopFocusScope() +{ + return ImGui::PopFocusScope(); +} +CIMGUI_API ImGuiID igGetCurrentFocusScope() +{ + return ImGui::GetCurrentFocusScope(); +} +CIMGUI_API bool igIsDragDropActive() +{ + return ImGui::IsDragDropActive(); +} CIMGUI_API bool igBeginDragDropTargetCustom(const ImRect bb,ImGuiID id) { return ImGui::BeginDragDropTargetCustom(bb,id); @@ -4325,6 +4584,10 @@ CIMGUI_API bool igIsDragDropPayloadBeingAccepted() { return ImGui::IsDragDropPayloadBeingAccepted(); } +CIMGUI_API void igRenderDragDropTargetRect(const ImRect bb) +{ + return ImGui::RenderDragDropTargetRect(bb); +} CIMGUI_API void igSetWindowClipRectBeforeSetChannel(ImGuiWindow* window,const ImRect clip_rect) { return ImGui::SetWindowClipRectBeforeSetChannel(window,clip_rect); @@ -4437,10 +4700,18 @@ CIMGUI_API void igTableDrawContextMenu(ImGuiTable* table) { return ImGui::TableDrawContextMenu(table); } +CIMGUI_API bool igTableBeginContextMenuPopup(ImGuiTable* table) +{ + return ImGui::TableBeginContextMenuPopup(table); +} CIMGUI_API void igTableMergeDrawChannels(ImGuiTable* table) { return ImGui::TableMergeDrawChannels(table); } +CIMGUI_API ImGuiTableInstanceData* igTableGetInstanceData(ImGuiTable* table,int instance_no) +{ + return ImGui::TableGetInstanceData(table,instance_no); +} CIMGUI_API void igTableSortSpecsSanitize(ImGuiTable* table) { return ImGui::TableSortSpecsSanitize(table); @@ -4481,7 +4752,7 @@ CIMGUI_API void igTableGetCellBgRect(ImRect *pOut,const ImGuiTable* table,int co { *pOut = ImGui::TableGetCellBgRect(table,column_n); } -CIMGUI_API const char* igTableGetColumnNameTablePtr(const ImGuiTable* table,int column_n) +CIMGUI_API const char* igTableGetColumnName_TablePtr(const ImGuiTable* table,int column_n) { return ImGui::TableGetColumnName(table,column_n); } @@ -4505,11 +4776,11 @@ CIMGUI_API void igTableRemove(ImGuiTable* table) { return ImGui::TableRemove(table); } -CIMGUI_API void igTableGcCompactTransientBuffersTablePtr(ImGuiTable* table) +CIMGUI_API void igTableGcCompactTransientBuffers_TablePtr(ImGuiTable* table) { return ImGui::TableGcCompactTransientBuffers(table); } -CIMGUI_API void igTableGcCompactTransientBuffersTableTempDataPtr(ImGuiTableTempData* table) +CIMGUI_API void igTableGcCompactTransientBuffers_TableTempDataPtr(ImGuiTableTempData* table) { return ImGui::TableGcCompactTransientBuffers(table); } @@ -4533,9 +4804,9 @@ CIMGUI_API ImGuiTableSettings* igTableGetBoundSettings(ImGuiTable* table) { return ImGui::TableGetBoundSettings(table); } -CIMGUI_API void igTableSettingsInstallHandler(ImGuiContext* context) +CIMGUI_API void igTableSettingsAddSettingsHandler() { - return ImGui::TableSettingsInstallHandler(context); + return ImGui::TableSettingsAddSettingsHandler(); } CIMGUI_API ImGuiTableSettings* igTableSettingsCreate(ImGuiID id,int columns_count) { @@ -4585,9 +4856,13 @@ CIMGUI_API bool igTabItemEx(ImGuiTabBar* tab_bar,const char* label,bool* p_open, { return ImGui::TabItemEx(tab_bar,label,p_open,flags,docked_window); } -CIMGUI_API void igTabItemCalcSize(ImVec2 *pOut,const char* label,bool has_close_button) +CIMGUI_API void igTabItemCalcSize_Str(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker) { - *pOut = ImGui::TabItemCalcSize(label,has_close_button); + *pOut = ImGui::TabItemCalcSize(label,has_close_button_or_unsaved_marker); +} +CIMGUI_API void igTabItemCalcSize_WindowPtr(ImVec2 *pOut,ImGuiWindow* window) +{ + *pOut = ImGui::TabItemCalcSize(window); } CIMGUI_API void igTabItemBackground(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImU32 col) { @@ -4637,6 +4912,10 @@ CIMGUI_API const char* igFindRenderedTextEnd(const char* text,const char* text_e { return ImGui::FindRenderedTextEnd(text,text_end); } +CIMGUI_API void igRenderMouseCursor(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow) +{ + return ImGui::RenderMouseCursor(pos,scale,mouse_cursor,col_fill,col_border,col_shadow); +} CIMGUI_API void igRenderArrow(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale) { return ImGui::RenderArrow(draw_list,pos,col,dir,scale); @@ -4649,10 +4928,6 @@ CIMGUI_API void igRenderCheckMark(ImDrawList* draw_list,ImVec2 pos,ImU32 col,flo { return ImGui::RenderCheckMark(draw_list,pos,col,sz); } -CIMGUI_API void igRenderMouseCursor(ImDrawList* draw_list,ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow) -{ - return ImGui::RenderMouseCursor(draw_list,pos,scale,mouse_cursor,col_fill,col_border,col_shadow); -} CIMGUI_API void igRenderArrowPointingAt(ImDrawList* draw_list,ImVec2 pos,ImVec2 half_sz,ImGuiDir direction,ImU32 col) { return ImGui::RenderArrowPointingAt(draw_list,pos,half_sz,direction,col); @@ -4665,7 +4940,7 @@ CIMGUI_API void igRenderRectFilledRangeH(ImDrawList* draw_list,const ImRect rect { return ImGui::RenderRectFilledRangeH(draw_list,rect,col,x_start_norm,x_end_norm,rounding); } -CIMGUI_API void igRenderRectFilledWithHole(ImDrawList* draw_list,ImRect outer,ImRect inner,ImU32 col,float rounding) +CIMGUI_API void igRenderRectFilledWithHole(ImDrawList* draw_list,const ImRect outer,const ImRect inner,ImU32 col,float rounding) { return ImGui::RenderRectFilledWithHole(draw_list,outer,inner,col,rounding); } @@ -4701,9 +4976,9 @@ CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,ImS64* p { return ImGui::ScrollbarEx(bb,id,axis,p_scroll_v,avail_v,contents_v,flags); } -CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec2 padding,const ImVec4 bg_col,const ImVec4 tint_col) +CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col) { - return ImGui::ImageButtonEx(id,texture_id,size,uv0,uv1,padding,bg_col,tint_col); + return ImGui::ImageButtonEx(id,texture_id,size,uv0,uv1,bg_col,tint_col); } CIMGUI_API void igGetWindowScrollbarRect(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis) { @@ -4725,11 +5000,11 @@ CIMGUI_API void igSeparatorEx(ImGuiSeparatorFlags flags) { return ImGui::SeparatorEx(flags); } -CIMGUI_API bool igCheckboxFlagsS64Ptr(const char* label,ImS64* flags,ImS64 flags_value) +CIMGUI_API bool igCheckboxFlags_S64Ptr(const char* label,ImS64* flags,ImS64 flags_value) { return ImGui::CheckboxFlags(label,flags,flags_value); } -CIMGUI_API bool igCheckboxFlagsU64Ptr(const char* label,ImU64* flags,ImU64 flags_value) +CIMGUI_API bool igCheckboxFlags_U64Ptr(const char* label,ImU64* flags,ImU64 flags_value) { return ImGui::CheckboxFlags(label,flags,flags_value); } @@ -4753,14 +5028,18 @@ CIMGUI_API bool igTreeNodeBehavior(ImGuiID id,ImGuiTreeNodeFlags flags,const cha { return ImGui::TreeNodeBehavior(id,flags,label,label_end); } -CIMGUI_API bool igTreeNodeBehaviorIsOpen(ImGuiID id,ImGuiTreeNodeFlags flags) -{ - return ImGui::TreeNodeBehaviorIsOpen(id,flags); -} CIMGUI_API void igTreePushOverrideID(ImGuiID id) { return ImGui::TreePushOverrideID(id); } +CIMGUI_API void igTreeNodeSetOpen(ImGuiID id,bool open) +{ + return ImGui::TreeNodeSetOpen(id,open); +} +CIMGUI_API bool igTreeNodeUpdateNextOpen(ImGuiID id,ImGuiTreeNodeFlags flags) +{ + return ImGui::TreeNodeUpdateNextOpen(id,flags); +} CIMGUI_API const ImGuiDataTypeInfo* igDataTypeGetInfo(ImGuiDataType data_type) { return ImGui::DataTypeGetInfo(data_type); @@ -4773,9 +5052,9 @@ CIMGUI_API void igDataTypeApplyOp(ImGuiDataType data_type,int op,void* output,co { return ImGui::DataTypeApplyOp(data_type,op,output,arg_1,arg_2); } -CIMGUI_API bool igDataTypeApplyOpFromText(const char* buf,const char* initial_value_buf,ImGuiDataType data_type,void* p_data,const char* format) +CIMGUI_API bool igDataTypeApplyFromText(const char* buf,ImGuiDataType data_type,void* p_data,const char* format) { - return ImGui::DataTypeApplyOpFromText(buf,initial_value_buf,data_type,p_data,format); + return ImGui::DataTypeApplyFromText(buf,data_type,p_data,format); } CIMGUI_API int igDataTypeCompare(ImGuiDataType data_type,const void* arg_1,const void* arg_2) { @@ -4841,6 +5120,17 @@ CIMGUI_API void igGcAwakeTransientWindowBuffers(ImGuiWindow* window) { return ImGui::GcAwakeTransientWindowBuffers(window); } +CIMGUI_API void igDebugLog(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::DebugLogV(fmt,args); + va_end(args); +} +CIMGUI_API void igDebugLogV(const char* fmt,va_list args) +{ + return ImGui::DebugLogV(fmt,args); +} CIMGUI_API void igErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback,void* user_data) { return ImGui::ErrorCheckEndFrameRecover(log_callback,user_data); @@ -4849,6 +5139,22 @@ CIMGUI_API void igErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, { return ImGui::ErrorCheckEndWindowRecover(log_callback,user_data); } +CIMGUI_API void igErrorCheckUsingSetCursorPosToExtendParentBoundaries() +{ + return ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); +} +CIMGUI_API void igDebugLocateItem(ImGuiID target_id) +{ + return ImGui::DebugLocateItem(target_id); +} +CIMGUI_API void igDebugLocateItemOnHover(ImGuiID target_id) +{ + return ImGui::DebugLocateItemOnHover(target_id); +} +CIMGUI_API void igDebugLocateItemResolveWithLastItem() +{ + return ImGui::DebugLocateItemResolveWithLastItem(); +} CIMGUI_API void igDebugDrawItemRect(ImU32 col) { return ImGui::DebugDrawItemRect(col); @@ -4885,6 +5191,10 @@ CIMGUI_API void igDebugNodeFont(ImFont* font) { return ImGui::DebugNodeFont(font); } +CIMGUI_API void igDebugNodeFontGlyph(ImFont* font,const ImFontGlyph* glyph) +{ + return ImGui::DebugNodeFontGlyph(font,glyph); +} CIMGUI_API void igDebugNodeStorage(ImGuiStorage* storage,const char* label) { return ImGui::DebugNodeStorage(storage,label); @@ -4901,6 +5211,10 @@ CIMGUI_API void igDebugNodeTableSettings(ImGuiTableSettings* settings) { return ImGui::DebugNodeTableSettings(settings); } +CIMGUI_API void igDebugNodeInputTextState(ImGuiInputTextState* state) +{ + return ImGui::DebugNodeInputTextState(state); +} CIMGUI_API void igDebugNodeWindow(ImGuiWindow* window,const char* label) { return ImGui::DebugNodeWindow(window,label); @@ -4925,6 +5239,10 @@ CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list,ImGuiViewpo { return ImGui::DebugRenderViewportThumbnail(draw_list,viewport,bb); } +CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key,bool repeat) +{ + return ImGui::IsKeyPressedMap(key,repeat); +} CIMGUI_API const ImFontBuilderIO* igImFontAtlasGetBuilderForStbTruetype() { return ImFontAtlasGetBuilderForStbTruetype(); diff --git a/imgui-sys/third-party/imgui-docking/cimgui.h b/imgui-sys/third-party/imgui-docking/cimgui.h index 3e4a8cc95..bb43c6bd1 100644 --- a/imgui-sys/third-party/imgui-docking/cimgui.h +++ b/imgui-sys/third-party/imgui-docking/cimgui.h @@ -1,5 +1,5 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui -//based on imgui.h file version "1.86" from Dear ImGui https://github.com/ocornut/imgui +//based on imgui.h file version "1.89.1" 18910 from Dear ImGui https://github.com/ocornut/imgui //with imgui_internal.h api //docking branch #ifndef CIMGUI_INCLUDED @@ -12,9 +12,6 @@ #else #define API __declspec(dllexport) #endif - #ifndef __GNUC__ - #define snprintf sprintf_s - #endif #else #ifdef __GNUC__ #define API __attribute__((__visibility__("default"))) @@ -43,96 +40,77 @@ typedef unsigned __int64 ImU64; #ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS -typedef struct ImGuiTableColumnSettings ImGuiTableColumnSettings; -typedef struct ImGuiTableCellData ImGuiTableCellData; -typedef struct ImGuiStackTool ImGuiStackTool; -typedef struct ImGuiStackLevelInfo ImGuiStackLevelInfo; -typedef struct ImGuiViewportP ImGuiViewportP; -typedef struct ImGuiWindowDockStyle ImGuiWindowDockStyle; -typedef struct ImGuiListClipperData ImGuiListClipperData; -typedef struct ImGuiListClipperRange ImGuiListClipperRange; -typedef struct ImGuiPtrOrIndex ImGuiPtrOrIndex; -typedef struct ImGuiShrinkWidthItem ImGuiShrinkWidthItem; -typedef struct ImGuiWindowStackData ImGuiWindowStackData; -typedef struct ImGuiComboPreviewData ImGuiComboPreviewData; -typedef struct ImGuiDataTypeTempStorage ImGuiDataTypeTempStorage; -typedef struct ImVec2ih ImVec2ih; -typedef struct ImVec1 ImVec1; -typedef struct StbTexteditRow StbTexteditRow; -typedef struct STB_TexteditState STB_TexteditState; -typedef struct StbUndoState StbUndoState; -typedef struct StbUndoRecord StbUndoRecord; -typedef struct ImGuiWindowSettings ImGuiWindowSettings; -typedef struct ImGuiWindowTempData ImGuiWindowTempData; -typedef struct ImGuiWindow ImGuiWindow; -typedef struct ImGuiTableColumnsSettings ImGuiTableColumnsSettings; -typedef struct ImGuiTableSettings ImGuiTableSettings; -typedef struct ImGuiTableTempData ImGuiTableTempData; -typedef struct ImGuiTableColumn ImGuiTableColumn; -typedef struct ImGuiTable ImGuiTable; -typedef struct ImGuiTabItem ImGuiTabItem; -typedef struct ImGuiTabBar ImGuiTabBar; -typedef struct ImGuiStyleMod ImGuiStyleMod; -typedef struct ImGuiStackSizes ImGuiStackSizes; -typedef struct ImGuiSettingsHandler ImGuiSettingsHandler; -typedef struct ImGuiPopupData ImGuiPopupData; -typedef struct ImGuiOldColumns ImGuiOldColumns; -typedef struct ImGuiOldColumnData ImGuiOldColumnData; -typedef struct ImGuiNextItemData ImGuiNextItemData; -typedef struct ImGuiNextWindowData ImGuiNextWindowData; -typedef struct ImGuiMetricsConfig ImGuiMetricsConfig; -typedef struct ImGuiNavItemData ImGuiNavItemData; -typedef struct ImGuiMenuColumns ImGuiMenuColumns; -typedef struct ImGuiLastItemData ImGuiLastItemData; -typedef struct ImGuiInputTextState ImGuiInputTextState; -typedef struct ImGuiGroupData ImGuiGroupData; -typedef struct ImGuiDockNodeSettings ImGuiDockNodeSettings; -typedef struct ImGuiDockNode ImGuiDockNode; -typedef struct ImGuiDockRequest ImGuiDockRequest; -typedef struct ImGuiDockContext ImGuiDockContext; -typedef struct ImGuiDataTypeInfo ImGuiDataTypeInfo; -typedef struct ImGuiContextHook ImGuiContextHook; -typedef struct ImGuiColorMod ImGuiColorMod; -typedef struct ImDrawDataBuilder ImDrawDataBuilder; -typedef struct ImRect ImRect; -typedef struct ImBitVector ImBitVector; -typedef struct ImFontAtlasCustomRect ImFontAtlasCustomRect; -typedef struct ImDrawCmdHeader ImDrawCmdHeader; -typedef struct ImGuiStoragePair ImGuiStoragePair; -typedef struct ImGuiTextRange ImGuiTextRange; -typedef struct ImVec4 ImVec4; -typedef struct ImVec2 ImVec2; -typedef struct ImGuiWindowClass ImGuiWindowClass; -typedef struct ImGuiViewport ImGuiViewport; -typedef struct ImGuiTextFilter ImGuiTextFilter; -typedef struct ImGuiTextBuffer ImGuiTextBuffer; -typedef struct ImGuiTableColumnSortSpecs ImGuiTableColumnSortSpecs; -typedef struct ImGuiTableSortSpecs ImGuiTableSortSpecs; -typedef struct ImGuiStyle ImGuiStyle; -typedef struct ImGuiStorage ImGuiStorage; -typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData; -typedef struct ImGuiPlatformMonitor ImGuiPlatformMonitor; -typedef struct ImGuiPlatformIO ImGuiPlatformIO; -typedef struct ImGuiPayload ImGuiPayload; -typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame; -typedef struct ImGuiListClipper ImGuiListClipper; -typedef struct ImGuiInputTextCallbackData ImGuiInputTextCallbackData; -typedef struct ImGuiIO ImGuiIO; -typedef struct ImGuiContext ImGuiContext; -typedef struct ImColor ImColor; -typedef struct ImFontGlyphRangesBuilder ImFontGlyphRangesBuilder; -typedef struct ImFontGlyph ImFontGlyph; -typedef struct ImFontConfig ImFontConfig; -typedef struct ImFontBuilderIO ImFontBuilderIO; -typedef struct ImFontAtlas ImFontAtlas; -typedef struct ImFont ImFont; -typedef struct ImDrawVert ImDrawVert; -typedef struct ImDrawListSplitter ImDrawListSplitter; -typedef struct ImDrawListSharedData ImDrawListSharedData; -typedef struct ImDrawList ImDrawList; -typedef struct ImDrawData ImDrawData; -typedef struct ImDrawCmd ImDrawCmd; + typedef struct ImDrawChannel ImDrawChannel; +typedef struct ImDrawCmd ImDrawCmd; +typedef struct ImDrawData ImDrawData; +typedef struct ImDrawList ImDrawList; +typedef struct ImDrawListSharedData ImDrawListSharedData; +typedef struct ImDrawListSplitter ImDrawListSplitter; +typedef struct ImDrawVert ImDrawVert; +typedef struct ImFont ImFont; +typedef struct ImFontAtlas ImFontAtlas; +typedef struct ImFontBuilderIO ImFontBuilderIO; +typedef struct ImFontConfig ImFontConfig; +typedef struct ImFontGlyph ImFontGlyph; +typedef struct ImFontGlyphRangesBuilder ImFontGlyphRangesBuilder; +typedef struct ImColor ImColor; +typedef struct ImGuiContext ImGuiContext; +typedef struct ImGuiIO ImGuiIO; +typedef struct ImGuiInputTextCallbackData ImGuiInputTextCallbackData; +typedef struct ImGuiKeyData ImGuiKeyData; +typedef struct ImGuiListClipper ImGuiListClipper; +typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame; +typedef struct ImGuiPayload ImGuiPayload; +typedef struct ImGuiPlatformIO ImGuiPlatformIO; +typedef struct ImGuiPlatformMonitor ImGuiPlatformMonitor; +typedef struct ImGuiPlatformImeData ImGuiPlatformImeData; +typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData; +typedef struct ImGuiStorage ImGuiStorage; +typedef struct ImGuiStyle ImGuiStyle; +typedef struct ImGuiTableSortSpecs ImGuiTableSortSpecs; +typedef struct ImGuiTableColumnSortSpecs ImGuiTableColumnSortSpecs; +typedef struct ImGuiTextBuffer ImGuiTextBuffer; +typedef struct ImGuiTextFilter ImGuiTextFilter; +typedef struct ImGuiViewport ImGuiViewport; +typedef struct ImGuiWindowClass ImGuiWindowClass; +typedef struct ImBitVector ImBitVector; +typedef struct ImRect ImRect; +typedef struct ImDrawDataBuilder ImDrawDataBuilder; +typedef struct ImGuiColorMod ImGuiColorMod; +typedef struct ImGuiContextHook ImGuiContextHook; +typedef struct ImGuiDataTypeInfo ImGuiDataTypeInfo; +typedef struct ImGuiDockContext ImGuiDockContext; +typedef struct ImGuiDockRequest ImGuiDockRequest; +typedef struct ImGuiDockNode ImGuiDockNode; +typedef struct ImGuiDockNodeSettings ImGuiDockNodeSettings; +typedef struct ImGuiGroupData ImGuiGroupData; +typedef struct ImGuiInputTextState ImGuiInputTextState; +typedef struct ImGuiLastItemData ImGuiLastItemData; +typedef struct ImGuiLocEntry ImGuiLocEntry; +typedef struct ImGuiMenuColumns ImGuiMenuColumns; +typedef struct ImGuiNavItemData ImGuiNavItemData; +typedef struct ImGuiMetricsConfig ImGuiMetricsConfig; +typedef struct ImGuiNextWindowData ImGuiNextWindowData; +typedef struct ImGuiNextItemData ImGuiNextItemData; +typedef struct ImGuiOldColumnData ImGuiOldColumnData; +typedef struct ImGuiOldColumns ImGuiOldColumns; +typedef struct ImGuiPopupData ImGuiPopupData; +typedef struct ImGuiSettingsHandler ImGuiSettingsHandler; +typedef struct ImGuiStackSizes ImGuiStackSizes; +typedef struct ImGuiStyleMod ImGuiStyleMod; +typedef struct ImGuiTabBar ImGuiTabBar; +typedef struct ImGuiTabItem ImGuiTabItem; +typedef struct ImGuiTable ImGuiTable; +typedef struct ImGuiTableColumn ImGuiTableColumn; +typedef struct ImGuiTableInstanceData ImGuiTableInstanceData; +typedef struct ImGuiTableTempData ImGuiTableTempData; +typedef struct ImGuiTableSettings ImGuiTableSettings; +typedef struct ImGuiTableColumnsSettings ImGuiTableColumnsSettings; +typedef struct ImGuiWindow ImGuiWindow; +typedef struct ImGuiWindowTempData ImGuiWindowTempData; +typedef struct ImGuiWindowSettings ImGuiWindowSettings; +typedef struct ImVector_const_charPtr {int Size;int Capacity;const char** Data;} ImVector_const_charPtr; struct ImDrawChannel; struct ImDrawCmd; @@ -151,11 +129,13 @@ struct ImColor; struct ImGuiContext; struct ImGuiIO; struct ImGuiInputTextCallbackData; +struct ImGuiKeyData; struct ImGuiListClipper; struct ImGuiOnceUponAFrame; struct ImGuiPayload; struct ImGuiPlatformIO; struct ImGuiPlatformMonitor; +struct ImGuiPlatformImeData; struct ImGuiSizeCallbackData; struct ImGuiStorage; struct ImGuiStyle; @@ -169,8 +149,6 @@ typedef int ImGuiCol; typedef int ImGuiCond; typedef int ImGuiDataType; typedef int ImGuiDir; -typedef int ImGuiKey; -typedef int ImGuiNavInput; typedef int ImGuiMouseButton; typedef int ImGuiMouseCursor; typedef int ImGuiSortDirection; @@ -189,7 +167,7 @@ typedef int ImGuiDragDropFlags; typedef int ImGuiFocusedFlags; typedef int ImGuiHoveredFlags; typedef int ImGuiInputTextFlags; -typedef int ImGuiKeyModFlags; +typedef int ImGuiKeyChord; typedef int ImGuiPopupFlags; typedef int ImGuiSelectableFlags; typedef int ImGuiSliderFlags; @@ -210,8 +188,8 @@ typedef signed short ImS16; typedef unsigned short ImU16; typedef signed int ImS32; typedef unsigned int ImU32; -typedef int64_t ImS64; -typedef uint64_t ImU64; +typedef signed long long ImS64; +typedef unsigned long long ImU64; typedef unsigned short ImWchar16; typedef unsigned int ImWchar32; typedef ImWchar32 ImWchar; @@ -219,123 +197,12 @@ 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); -struct ImBitVector; -struct ImRect; -struct ImDrawDataBuilder; -struct ImDrawListSharedData; -struct ImGuiColorMod; -struct ImGuiContext; -struct ImGuiContextHook; -struct ImGuiDataTypeInfo; -struct ImGuiDockContext; -struct ImGuiDockRequest; -struct ImGuiDockNode; -struct ImGuiDockNodeSettings; -struct ImGuiGroupData; -struct ImGuiInputTextState; -struct ImGuiLastItemData; -struct ImGuiMenuColumns; -struct ImGuiNavItemData; -struct ImGuiMetricsConfig; -struct ImGuiNextWindowData; -struct ImGuiNextItemData; -struct ImGuiOldColumnData; -struct ImGuiOldColumns; -struct ImGuiPopupData; -struct ImGuiSettingsHandler; -struct ImGuiStackSizes; -struct ImGuiStyleMod; -struct ImGuiTabBar; -struct ImGuiTabItem; -struct ImGuiTable; -struct ImGuiTableColumn; -struct ImGuiTableTempData; -struct ImGuiTableSettings; -struct ImGuiTableColumnsSettings; -struct ImGuiWindow; -struct ImGuiWindowTempData; -struct ImGuiWindowSettings; -typedef int ImGuiDataAuthority; -typedef int ImGuiLayoutType; -typedef int ImGuiActivateFlags; -typedef int ImGuiItemFlags; -typedef int ImGuiItemStatusFlags; -typedef int ImGuiOldColumnFlags; -typedef int ImGuiNavHighlightFlags; -typedef int ImGuiNavDirSourceFlags; -typedef int ImGuiNavMoveFlags; -typedef int ImGuiNextItemDataFlags; -typedef int ImGuiNextWindowDataFlags; -typedef int ImGuiScrollFlags; -typedef int ImGuiSeparatorFlags; -typedef int ImGuiTextFlags; -typedef int ImGuiTooltipFlags; -typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...); -extern ImGuiContext* GImGui; -typedef FILE* ImFileHandle; -typedef int ImPoolIdx; -typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); -typedef ImS8 ImGuiTableColumnIdx; -typedef ImU8 ImGuiTableDrawChannelIdx; -typedef struct ImVector{int Size;int Capacity;void* Data;} ImVector; -typedef struct ImVector_ImGuiTableSettings {int Size;int Capacity;ImGuiTableSettings* Data;} ImVector_ImGuiTableSettings; -typedef struct ImChunkStream_ImGuiTableSettings {ImVector_ImGuiTableSettings Buf;} ImChunkStream_ImGuiTableSettings; -typedef struct ImVector_ImGuiWindowSettings {int Size;int Capacity;ImGuiWindowSettings* Data;} ImVector_ImGuiWindowSettings; -typedef struct ImChunkStream_ImGuiWindowSettings {ImVector_ImGuiWindowSettings Buf;} ImChunkStream_ImGuiWindowSettings; -typedef struct ImSpan_ImGuiTableCellData {ImGuiTableCellData* Data;ImGuiTableCellData* DataEnd;} ImSpan_ImGuiTableCellData; -typedef struct ImSpan_ImGuiTableColumn {ImGuiTableColumn* Data;ImGuiTableColumn* DataEnd;} ImSpan_ImGuiTableColumn; -typedef struct ImSpan_ImGuiTableColumnIdx {ImGuiTableColumnIdx* Data;ImGuiTableColumnIdx* DataEnd;} ImSpan_ImGuiTableColumnIdx; -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_ImDrawVert {int Size;int Capacity;ImDrawVert* Data;} ImVector_ImDrawVert; -typedef struct ImVector_ImFontPtr {int Size;int Capacity;ImFont** Data;} ImVector_ImFontPtr; -typedef struct ImVector_ImFontAtlasCustomRect {int Size;int Capacity;ImFontAtlasCustomRect* Data;} ImVector_ImFontAtlasCustomRect; -typedef struct ImVector_ImFontConfig {int Size;int Capacity;ImFontConfig* Data;} ImVector_ImFontConfig; -typedef struct ImVector_ImFontGlyph {int Size;int Capacity;ImFontGlyph* Data;} ImVector_ImFontGlyph; -typedef struct ImVector_ImGuiColorMod {int Size;int Capacity;ImGuiColorMod* Data;} ImVector_ImGuiColorMod; -typedef struct ImVector_ImGuiContextHook {int Size;int Capacity;ImGuiContextHook* Data;} ImVector_ImGuiContextHook; -typedef struct ImVector_ImGuiDockNodeSettings {int Size;int Capacity;ImGuiDockNodeSettings* Data;} ImVector_ImGuiDockNodeSettings; -typedef struct ImVector_ImGuiDockRequest {int Size;int Capacity;ImGuiDockRequest* Data;} ImVector_ImGuiDockRequest; -typedef struct ImVector_ImGuiGroupData {int Size;int Capacity;ImGuiGroupData* Data;} ImVector_ImGuiGroupData; -typedef struct ImVector_ImGuiID {int Size;int Capacity;ImGuiID* Data;} ImVector_ImGuiID; -typedef struct ImVector_ImGuiItemFlags {int Size;int Capacity;ImGuiItemFlags* Data;} ImVector_ImGuiItemFlags; -typedef struct ImVector_ImGuiListClipperData {int Size;int Capacity;ImGuiListClipperData* Data;} ImVector_ImGuiListClipperData; -typedef struct ImVector_ImGuiListClipperRange {int Size;int Capacity;ImGuiListClipperRange* Data;} ImVector_ImGuiListClipperRange; -typedef struct ImVector_ImGuiOldColumnData {int Size;int Capacity;ImGuiOldColumnData* Data;} ImVector_ImGuiOldColumnData; -typedef struct ImVector_ImGuiOldColumns {int Size;int Capacity;ImGuiOldColumns* Data;} ImVector_ImGuiOldColumns; -typedef struct ImVector_ImGuiPlatformMonitor {int Size;int Capacity;ImGuiPlatformMonitor* Data;} ImVector_ImGuiPlatformMonitor; -typedef struct ImVector_ImGuiPopupData {int Size;int Capacity;ImGuiPopupData* Data;} ImVector_ImGuiPopupData; -typedef struct ImVector_ImGuiPtrOrIndex {int Size;int Capacity;ImGuiPtrOrIndex* Data;} ImVector_ImGuiPtrOrIndex; -typedef struct ImVector_ImGuiSettingsHandler {int Size;int Capacity;ImGuiSettingsHandler* Data;} ImVector_ImGuiSettingsHandler; -typedef struct ImVector_ImGuiShrinkWidthItem {int Size;int Capacity;ImGuiShrinkWidthItem* Data;} ImVector_ImGuiShrinkWidthItem; -typedef struct ImVector_ImGuiStackLevelInfo {int Size;int Capacity;ImGuiStackLevelInfo* Data;} ImVector_ImGuiStackLevelInfo; -typedef struct ImVector_ImGuiStoragePair {int Size;int Capacity;ImGuiStoragePair* Data;} ImVector_ImGuiStoragePair; -typedef struct ImVector_ImGuiStyleMod {int Size;int Capacity;ImGuiStyleMod* Data;} ImVector_ImGuiStyleMod; -typedef struct ImVector_ImGuiTabItem {int Size;int Capacity;ImGuiTabItem* Data;} ImVector_ImGuiTabItem; -typedef struct ImVector_ImGuiTableColumnSortSpecs {int Size;int Capacity;ImGuiTableColumnSortSpecs* Data;} ImVector_ImGuiTableColumnSortSpecs; -typedef struct ImVector_ImGuiTableTempData {int Size;int Capacity;ImGuiTableTempData* Data;} ImVector_ImGuiTableTempData; -typedef struct ImVector_ImGuiTextRange {int Size;int Capacity;ImGuiTextRange* Data;} ImVector_ImGuiTextRange; -typedef struct ImVector_ImGuiViewportPtr {int Size;int Capacity;ImGuiViewport** Data;} ImVector_ImGuiViewportPtr; -typedef struct ImVector_ImGuiViewportPPtr {int Size;int Capacity;ImGuiViewportP** Data;} ImVector_ImGuiViewportPPtr; -typedef struct ImVector_ImGuiWindowPtr {int Size;int Capacity;ImGuiWindow** Data;} ImVector_ImGuiWindowPtr; -typedef struct ImVector_ImGuiWindowStackData {int Size;int Capacity;ImGuiWindowStackData* Data;} ImVector_ImGuiWindowStackData; -typedef struct ImVector_ImTextureID {int Size;int Capacity;ImTextureID* Data;} ImVector_ImTextureID; -typedef struct ImVector_ImU32 {int Size;int Capacity;ImU32* Data;} ImVector_ImU32; -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_const_charPtr {int Size;int Capacity;const char** Data;} ImVector_const_charPtr; -typedef struct ImVector_float {int Size;int Capacity;float* Data;} ImVector_float; -typedef struct ImVector_unsigned_char {int Size;int Capacity;unsigned char* Data;} ImVector_unsigned_char; - +typedef struct ImVec2 ImVec2; struct ImVec2 { float x, y; }; +typedef struct ImVec4 ImVec4; struct ImVec4 { float x, y, z, w; @@ -372,7 +239,7 @@ typedef enum { ImGuiWindowFlags_Popup = 1 << 26, ImGuiWindowFlags_Modal = 1 << 27, ImGuiWindowFlags_ChildMenu = 1 << 28, - ImGuiWindowFlags_DockNodeHost = 1 << 29 + ImGuiWindowFlags_DockNodeHost = 1 << 29, }ImGuiWindowFlags_; typedef enum { ImGuiInputTextFlags_None = 0, @@ -395,7 +262,8 @@ typedef enum { ImGuiInputTextFlags_NoUndoRedo = 1 << 16, ImGuiInputTextFlags_CharsScientific = 1 << 17, ImGuiInputTextFlags_CallbackResize = 1 << 18, - ImGuiInputTextFlags_CallbackEdit = 1 << 19 + ImGuiInputTextFlags_CallbackEdit = 1 << 19, + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, }ImGuiInputTextFlags_; typedef enum { ImGuiTreeNodeFlags_None = 0, @@ -413,7 +281,7 @@ typedef enum { ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, - ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, }ImGuiTreeNodeFlags_; typedef enum { ImGuiPopupFlags_None = 0, @@ -426,7 +294,7 @@ typedef enum { ImGuiPopupFlags_NoOpenOverItems = 1 << 6, ImGuiPopupFlags_AnyPopupId = 1 << 7, ImGuiPopupFlags_AnyPopupLevel = 1 << 8, - ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, }ImGuiPopupFlags_; typedef enum { ImGuiSelectableFlags_None = 0, @@ -434,7 +302,7 @@ typedef enum { ImGuiSelectableFlags_SpanAllColumns = 1 << 1, ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, ImGuiSelectableFlags_Disabled = 1 << 3, - ImGuiSelectableFlags_AllowItemOverlap = 1 << 4 + ImGuiSelectableFlags_AllowItemOverlap = 1 << 4, }ImGuiSelectableFlags_; typedef enum { ImGuiComboFlags_None = 0, @@ -445,7 +313,7 @@ typedef enum { ImGuiComboFlags_HeightLargest = 1 << 4, ImGuiComboFlags_NoArrowButton = 1 << 5, ImGuiComboFlags_NoPreview = 1 << 6, - ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, }ImGuiComboFlags_; typedef enum { ImGuiTabBarFlags_None = 0, @@ -458,7 +326,7 @@ typedef enum { ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, - ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, }ImGuiTabBarFlags_; typedef enum { ImGuiTabItemFlags_None = 0, @@ -469,7 +337,7 @@ typedef enum { ImGuiTabItemFlags_NoTooltip = 1 << 4, ImGuiTabItemFlags_NoReorder = 1 << 5, ImGuiTabItemFlags_Leading = 1 << 6, - ImGuiTabItemFlags_Trailing = 1 << 7 + ImGuiTabItemFlags_Trailing = 1 << 7, }ImGuiTabItemFlags_; typedef enum { ImGuiTableFlags_None = 0, @@ -507,7 +375,7 @@ typedef enum { ImGuiTableFlags_ScrollY = 1 << 25, ImGuiTableFlags_SortMulti = 1 << 26, ImGuiTableFlags_SortTristate = 1 << 27, - ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, }ImGuiTableFlags_; typedef enum { ImGuiTableColumnFlags_None = 0, @@ -536,17 +404,17 @@ typedef enum { ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, - ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30 + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, }ImGuiTableColumnFlags_; typedef enum { ImGuiTableRowFlags_None = 0, - ImGuiTableRowFlags_Headers = 1 << 0 + ImGuiTableRowFlags_Headers = 1 << 0, }ImGuiTableRowFlags_; typedef enum { ImGuiTableBgTarget_None = 0, ImGuiTableBgTarget_RowBg0 = 1, ImGuiTableBgTarget_RowBg1 = 2, - ImGuiTableBgTarget_CellBg = 3 + ImGuiTableBgTarget_CellBg = 3, }ImGuiTableBgTarget_; typedef enum { ImGuiFocusedFlags_None = 0, @@ -555,7 +423,7 @@ typedef enum { ImGuiFocusedFlags_AnyWindow = 1 << 2, ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, ImGuiFocusedFlags_DockHierarchy = 1 << 4, - ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, }ImGuiFocusedFlags_; typedef enum { ImGuiHoveredFlags_None = 0, @@ -568,8 +436,12 @@ typedef enum { ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 8, ImGuiHoveredFlags_AllowWhenDisabled = 1 << 9, + ImGuiHoveredFlags_NoNavOverride = 1 << 10, ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, - ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + ImGuiHoveredFlags_DelayNormal = 1 << 11, + ImGuiHoveredFlags_DelayShort = 1 << 12, + ImGuiHoveredFlags_NoSharedDelay = 1 << 13, }ImGuiHoveredFlags_; typedef enum { ImGuiDockNodeFlags_None = 0, @@ -578,7 +450,7 @@ typedef enum { ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3, ImGuiDockNodeFlags_NoSplit = 1 << 4, ImGuiDockNodeFlags_NoResize = 1 << 5, - ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6 + ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6, }ImGuiDockNodeFlags_; typedef enum { ImGuiDragDropFlags_None = 0, @@ -591,7 +463,7 @@ typedef enum { ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, - ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, }ImGuiDragDropFlags_; typedef enum { ImGuiDataType_S8, @@ -620,61 +492,166 @@ typedef enum { ImGuiSortDirection_Descending = 2 }ImGuiSortDirection_; typedef enum { - ImGuiKey_Tab, - ImGuiKey_LeftArrow, - ImGuiKey_RightArrow, - ImGuiKey_UpArrow, - ImGuiKey_DownArrow, - ImGuiKey_PageUp, - ImGuiKey_PageDown, - ImGuiKey_Home, - ImGuiKey_End, - ImGuiKey_Insert, - ImGuiKey_Delete, - ImGuiKey_Backspace, - ImGuiKey_Space, - ImGuiKey_Enter, - ImGuiKey_Escape, - ImGuiKey_KeyPadEnter, - ImGuiKey_A, - ImGuiKey_C, - ImGuiKey_V, - ImGuiKey_X, - ImGuiKey_Y, - ImGuiKey_Z, - ImGuiKey_COUNT -}ImGuiKey_; -typedef enum { - ImGuiKeyModFlags_None = 0, - ImGuiKeyModFlags_Ctrl = 1 << 0, - ImGuiKeyModFlags_Shift = 1 << 1, - ImGuiKeyModFlags_Alt = 1 << 2, - ImGuiKeyModFlags_Super = 1 << 3 -}ImGuiKeyModFlags_; -typedef enum { - ImGuiNavInput_Activate, - ImGuiNavInput_Cancel, - ImGuiNavInput_Input, - ImGuiNavInput_Menu, - ImGuiNavInput_DpadLeft, - ImGuiNavInput_DpadRight, - ImGuiNavInput_DpadUp, - ImGuiNavInput_DpadDown, - ImGuiNavInput_LStickLeft, - ImGuiNavInput_LStickRight, - ImGuiNavInput_LStickUp, - ImGuiNavInput_LStickDown, - ImGuiNavInput_FocusPrev, - ImGuiNavInput_FocusNext, - ImGuiNavInput_TweakSlow, - ImGuiNavInput_TweakFast, - ImGuiNavInput_KeyLeft_, - ImGuiNavInput_KeyRight_, - ImGuiNavInput_KeyUp_, - ImGuiNavInput_KeyDown_, +ImGuiKey_None=0, +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_Apostrophe=584, +ImGuiKey_Comma=585, +ImGuiKey_Minus=586, +ImGuiKey_Period=587, +ImGuiKey_Slash=588, +ImGuiKey_Semicolon=589, +ImGuiKey_Equal=590, +ImGuiKey_LeftBracket=591, +ImGuiKey_Backslash=592, +ImGuiKey_RightBracket=593, +ImGuiKey_GraveAccent=594, +ImGuiKey_CapsLock=595, +ImGuiKey_ScrollLock=596, +ImGuiKey_NumLock=597, +ImGuiKey_PrintScreen=598, +ImGuiKey_Pause=599, +ImGuiKey_Keypad0=600, +ImGuiKey_Keypad1=601, +ImGuiKey_Keypad2=602, +ImGuiKey_Keypad3=603, +ImGuiKey_Keypad4=604, +ImGuiKey_Keypad5=605, +ImGuiKey_Keypad6=606, +ImGuiKey_Keypad7=607, +ImGuiKey_Keypad8=608, +ImGuiKey_Keypad9=609, +ImGuiKey_KeypadDecimal=610, +ImGuiKey_KeypadDivide=611, +ImGuiKey_KeypadMultiply=612, +ImGuiKey_KeypadSubtract=613, +ImGuiKey_KeypadAdd=614, +ImGuiKey_KeypadEnter=615, +ImGuiKey_KeypadEqual=616, +ImGuiKey_GamepadStart=617, +ImGuiKey_GamepadBack=618, +ImGuiKey_GamepadFaceLeft=619, +ImGuiKey_GamepadFaceRight=620, +ImGuiKey_GamepadFaceUp=621, +ImGuiKey_GamepadFaceDown=622, +ImGuiKey_GamepadDpadLeft=623, +ImGuiKey_GamepadDpadRight=624, +ImGuiKey_GamepadDpadUp=625, +ImGuiKey_GamepadDpadDown=626, +ImGuiKey_GamepadL1=627, +ImGuiKey_GamepadR1=628, +ImGuiKey_GamepadL2=629, +ImGuiKey_GamepadR2=630, +ImGuiKey_GamepadL3=631, +ImGuiKey_GamepadR3=632, +ImGuiKey_GamepadLStickLeft=633, +ImGuiKey_GamepadLStickRight=634, +ImGuiKey_GamepadLStickUp=635, +ImGuiKey_GamepadLStickDown=636, +ImGuiKey_GamepadRStickLeft=637, +ImGuiKey_GamepadRStickRight=638, +ImGuiKey_GamepadRStickUp=639, +ImGuiKey_GamepadRStickDown=640, +ImGuiKey_MouseLeft=641, +ImGuiKey_MouseRight=642, +ImGuiKey_MouseMiddle=643, +ImGuiKey_MouseX1=644, +ImGuiKey_MouseX2=645, +ImGuiKey_MouseWheelX=646, +ImGuiKey_MouseWheelY=647, +ImGuiKey_ReservedForModCtrl=648, +ImGuiKey_ReservedForModShift=649, +ImGuiKey_ReservedForModAlt=650, +ImGuiKey_ReservedForModSuper=651, +ImGuiKey_COUNT=652, +ImGuiMod_None=0, +ImGuiMod_Ctrl=1 << 12, +ImGuiMod_Shift=1 << 13, +ImGuiMod_Alt=1 << 14, +ImGuiMod_Super=1 << 15, +ImGuiMod_Mask_=0xF000, +ImGuiMod_Shortcut=ImGuiMod_Ctrl, +ImGuiKey_NamedKey_BEGIN=512, +ImGuiKey_NamedKey_END=ImGuiKey_COUNT, +ImGuiKey_NamedKey_COUNT=ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +ImGuiKey_KeysData_SIZE=ImGuiKey_COUNT, +ImGuiKey_KeysData_OFFSET=0, +}ImGuiKey; +typedef enum { + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, ImGuiNavInput_COUNT, - ImGuiNavInput_InternalStart_ = ImGuiNavInput_KeyLeft_ -}ImGuiNavInput_; +}ImGuiNavInput; typedef enum { ImGuiConfigFlags_None = 0, ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, @@ -688,7 +665,7 @@ typedef enum { ImGuiConfigFlags_DpiEnableScaleViewports= 1 << 14, ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 15, ImGuiConfigFlags_IsSRGB = 1 << 20, - ImGuiConfigFlags_IsTouchScreen = 1 << 21 + ImGuiConfigFlags_IsTouchScreen = 1 << 21, }ImGuiConfigFlags_; typedef enum { ImGuiBackendFlags_None = 0, @@ -698,7 +675,7 @@ typedef enum { ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, ImGuiBackendFlags_PlatformHasViewports = 1 << 10, ImGuiBackendFlags_HasMouseHoveredViewport=1 << 11, - ImGuiBackendFlags_RendererHasViewports = 1 << 12 + ImGuiBackendFlags_RendererHasViewports = 1 << 12, }ImGuiBackendFlags_; typedef enum { ImGuiCol_Text, @@ -792,7 +769,7 @@ typedef enum { ImGuiButtonFlags_MouseButtonRight = 1 << 1, ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, - ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, }ImGuiButtonFlags_; typedef enum { ImGuiColorEditFlags_None = 0, @@ -823,7 +800,7 @@ typedef enum { ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, - ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, }ImGuiColorEditFlags_; typedef enum { ImGuiSliderFlags_None = 0, @@ -831,7 +808,7 @@ typedef enum { ImGuiSliderFlags_Logarithmic = 1 << 5, ImGuiSliderFlags_NoRoundToFormat = 1 << 6, ImGuiSliderFlags_NoInput = 1 << 7, - ImGuiSliderFlags_InvalidMask_ = 0x7000000F + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, }ImGuiSliderFlags_; typedef enum { ImGuiMouseButton_Left = 0, @@ -857,7 +834,7 @@ typedef enum { ImGuiCond_Always = 1 << 0, ImGuiCond_Once = 1 << 1, ImGuiCond_FirstUseEver = 1 << 2, - ImGuiCond_Appearing = 1 << 3 + ImGuiCond_Appearing = 1 << 3, }ImGuiCond_; struct ImGuiStyle { @@ -903,6 +880,15 @@ struct ImGuiStyle float CircleTessellationMaxError; ImVec4 Colors[ImGuiCol_COUNT]; }; +struct ImGuiKeyData +{ + bool Down; + float DownDuration; + float DownDurationPrev; + float AnalogValue; +}; +typedef struct ImVector_ImWchar {int Size;int Capacity;ImWchar* Data;} ImVector_ImWchar; + struct ImGuiIO { ImGuiConfigFlags ConfigFlags; @@ -915,9 +901,10 @@ struct ImGuiIO float MouseDoubleClickTime; float MouseDoubleClickMaxDist; float MouseDragThreshold; - int KeyMap[ImGuiKey_COUNT]; float KeyRepeatDelay; float KeyRepeatRate; + float HoverDelayNormal; + float HoverDelayShort; void* UserData; ImFontAtlas*Fonts; float FontGlobalScale; @@ -934,7 +921,9 @@ struct ImGuiIO bool ConfigViewportsNoDefaultParent; bool MouseDrawCursor; bool ConfigMacOSXBehaviors; + bool ConfigInputTrickleEventQueue; bool ConfigInputTextCursorBlink; + bool ConfigInputTextEnterKeepActive; bool ConfigDragClickToInputText; bool ConfigWindowsResizeFromEdges; bool ConfigWindowsMoveFromTitleBarOnly; @@ -947,17 +936,8 @@ struct ImGuiIO const char* (*GetClipboardTextFn)(void* user_data); void (*SetClipboardTextFn)(void* user_data, const char* text); void* ClipboardUserData; - ImVec2 MousePos; - bool MouseDown[5]; - float MouseWheel; - float MouseWheelH; - ImGuiID MouseHoveredViewport; - bool KeyCtrl; - bool KeyShift; - bool KeyAlt; - bool KeySuper; - bool KeysDown[512]; - float NavInputs[ImGuiNavInput_COUNT]; + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + void* _UnusedPadding; bool WantCaptureMouse; bool WantCaptureKeyboard; bool WantTextInput; @@ -972,9 +952,21 @@ struct ImGuiIO int MetricsActiveWindows; int MetricsActiveAllocations; ImVec2 MouseDelta; + int KeyMap[ImGuiKey_COUNT]; + bool KeysDown[ImGuiKey_COUNT]; + float NavInputs[ImGuiNavInput_COUNT]; + ImVec2 MousePos; + bool MouseDown[5]; + float MouseWheel; + float MouseWheelH; + ImGuiID MouseHoveredViewport; + bool KeyCtrl; + bool KeyShift; + bool KeyAlt; + bool KeySuper; + ImGuiKeyChord KeyMods; + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; bool WantCaptureMouseUnlessPopupClose; - ImGuiKeyModFlags KeyMods; - ImGuiKeyModFlags KeyModsPrev; ImVec2 MousePosPrev; ImVec2 MouseClickedPos[5]; double MouseClickedTime[5]; @@ -989,12 +981,11 @@ struct ImGuiIO float MouseDownDurationPrev[5]; ImVec2 MouseDragMaxDistanceAbs[5]; float MouseDragMaxDistanceSqr[5]; - float KeysDownDuration[512]; - float KeysDownDurationPrev[512]; - float NavInputsDownDuration[ImGuiNavInput_COUNT]; - float NavInputsDownDurationPrev[ImGuiNavInput_COUNT]; float PenPressure; bool AppFocusLost; + bool AppAcceptingEvents; + ImS8 BackendUsingLegacyKeyArrays; + bool BackendUsingLegacyNavInputArray; ImWchar16 InputQueueSurrogate; ImVector_ImWchar InputQueueCharacters; }; @@ -1064,12 +1055,19 @@ struct ImGuiTextRange const char* b; const char* e; }; +typedef struct ImGuiTextRange ImGuiTextRange; + +typedef struct ImVector_ImGuiTextRange {int Size;int Capacity;ImGuiTextRange* Data;} ImVector_ImGuiTextRange; + struct ImGuiTextFilter { char InputBuf[256]; ImVector_ImGuiTextRange Filters; int CountGrep; }; +typedef struct ImGuiTextRange ImGuiTextRange; +typedef struct ImVector_char {int Size;int Capacity;char* Data;} ImVector_char; + struct ImGuiTextBuffer { ImVector_char Buf; @@ -1079,14 +1077,15 @@ struct ImGuiStoragePair ImGuiID key; union { int val_i; float val_f; void* val_p; }; }; +typedef struct ImGuiStoragePair ImGuiStoragePair; + +typedef struct ImVector_ImGuiStoragePair {int Size;int Capacity;ImGuiStoragePair* Data;} ImVector_ImGuiStoragePair; + struct ImGuiStorage { ImVector_ImGuiStoragePair Data; }; -typedef struct ImVector_ImGuiTabBar {int Size;int Capacity;ImGuiTabBar* Data;} ImVector_ImGuiTabBar; -typedef struct ImPool_ImGuiTabBar {ImVector_ImGuiTabBar Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;} ImPool_ImGuiTabBar; -typedef struct ImVector_ImGuiTable {int Size;int Capacity;ImGuiTable* Data;} ImVector_ImGuiTable; -typedef struct ImPool_ImGuiTable {ImVector_ImGuiTable Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;} ImPool_ImGuiTable; +typedef struct ImGuiStoragePair ImGuiStoragePair; struct ImGuiListClipper { int DisplayStart; @@ -1100,6 +1099,7 @@ struct ImColor { ImVec4 Value; }; +typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); struct ImDrawCmd { ImVec4 ClipRect; @@ -1116,17 +1116,24 @@ struct ImDrawVert ImVec2 uv; ImU32 col; }; +typedef struct ImDrawCmdHeader ImDrawCmdHeader; struct ImDrawCmdHeader { ImVec4 ClipRect; ImTextureID TextureId; unsigned int VtxOffset; }; +typedef struct ImVector_ImDrawCmd {int Size;int Capacity;ImDrawCmd* Data;} ImVector_ImDrawCmd; + +typedef struct ImVector_ImDrawIdx {int Size;int Capacity;ImDrawIdx* Data;} ImVector_ImDrawIdx; + struct ImDrawChannel { ImVector_ImDrawCmd _CmdBuffer; ImVector_ImDrawIdx _IdxBuffer; }; +typedef struct ImVector_ImDrawChannel {int Size;int Capacity;ImDrawChannel* Data;} ImVector_ImDrawChannel; + struct ImDrawListSplitter { int _Current; @@ -1147,15 +1154,23 @@ typedef enum { ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, - ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, }ImDrawFlags_; typedef enum { ImDrawListFlags_None = 0, ImDrawListFlags_AntiAliasedLines = 1 << 0, ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, ImDrawListFlags_AntiAliasedFill = 1 << 2, - ImDrawListFlags_AllowVtxOffset = 1 << 3 + ImDrawListFlags_AllowVtxOffset = 1 << 3, }ImDrawListFlags_; +typedef struct ImVector_ImDrawVert {int Size;int Capacity;ImDrawVert* Data;} ImVector_ImDrawVert; + +typedef struct ImVector_ImVec4 {int Size;int Capacity;ImVec4* Data;} ImVector_ImVec4; + +typedef struct ImVector_ImTextureID {int Size;int Capacity;ImTextureID* Data;} ImVector_ImTextureID; + +typedef struct ImVector_ImVec2 {int Size;int Capacity;ImVec2* Data;} ImVector_ImVec2; + struct ImDrawList { ImVector_ImDrawCmd CmdBuffer; @@ -1163,7 +1178,7 @@ struct ImDrawList ImVector_ImDrawVert VtxBuffer; ImDrawListFlags Flags; unsigned int _VtxCurrentIdx; - const ImDrawListSharedData* _Data; + ImDrawListSharedData* _Data; const char* _OwnerName; ImDrawVert* _VtxWritePtr; ImDrawIdx* _IdxWritePtr; @@ -1217,10 +1232,13 @@ struct ImFontGlyph float X0, Y0, X1, Y1; float U0, V0, U1, V1; }; +typedef struct ImVector_ImU32 {int Size;int Capacity;ImU32* Data;} ImVector_ImU32; + struct ImFontGlyphRangesBuilder { ImVector_ImU32 UsedChars; }; +typedef struct ImFontAtlasCustomRect ImFontAtlasCustomRect; struct ImFontAtlasCustomRect { unsigned short Width, Height; @@ -1234,8 +1252,14 @@ typedef enum { ImFontAtlasFlags_None = 0, ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, ImFontAtlasFlags_NoMouseCursors = 1 << 1, - ImFontAtlasFlags_NoBakedLines = 1 << 2 + ImFontAtlasFlags_NoBakedLines = 1 << 2, }ImFontAtlasFlags_; +typedef struct ImVector_ImFontPtr {int Size;int Capacity;ImFont** Data;} ImVector_ImFontPtr; + +typedef struct ImVector_ImFontAtlasCustomRect {int Size;int Capacity;ImFontAtlasCustomRect* Data;} ImVector_ImFontAtlasCustomRect; + +typedef struct ImVector_ImFontConfig {int Size;int Capacity;ImFontConfig* Data;} ImVector_ImFontConfig; + struct ImFontAtlas { ImFontAtlasFlags Flags; @@ -1260,6 +1284,10 @@ struct ImFontAtlas int PackIdMouseCursors; int PackIdLines; }; +typedef struct ImVector_float {int Size;int Capacity;float* Data;} ImVector_float; + +typedef struct ImVector_ImFontGlyph {int Size;int Capacity;ImFontGlyph* Data;} ImVector_ImFontGlyph; + struct ImFont { ImVector_float IndexAdvanceX; @@ -1294,7 +1322,7 @@ typedef enum { ImGuiViewportFlags_TopMost = 1 << 9, ImGuiViewportFlags_Minimized = 1 << 10, ImGuiViewportFlags_NoAutoMerge = 1 << 11, - ImGuiViewportFlags_CanHostOtherWindows = 1 << 12 + ImGuiViewportFlags_CanHostOtherWindows = 1 << 12, }ImGuiViewportFlags_; struct ImGuiViewport { @@ -1311,10 +1339,15 @@ struct ImGuiViewport void* PlatformUserData; void* PlatformHandle; void* PlatformHandleRaw; + bool PlatformWindowCreated; bool PlatformRequestMove; bool PlatformRequestResize; bool PlatformRequestClose; }; +typedef struct ImVector_ImGuiPlatformMonitor {int Size;int Capacity;ImGuiPlatformMonitor* Data;} ImVector_ImGuiPlatformMonitor; + +typedef struct ImVector_ImGuiViewportPtr {int Size;int Capacity;ImGuiViewport** Data;} ImVector_ImGuiViewportPtr; + struct ImGuiPlatformIO { void (*Platform_CreateWindow)(ImGuiViewport* vp); @@ -1334,7 +1367,6 @@ struct ImGuiPlatformIO void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); void (*Platform_OnChangedViewport)(ImGuiViewport* vp); - void (*Platform_SetImeInputPos)(ImGuiViewport* vp, ImVec2 pos); int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); void (*Renderer_CreateWindow)(ImGuiViewport* vp); void (*Renderer_DestroyWindow)(ImGuiViewport* vp); @@ -1350,6 +1382,69 @@ struct ImGuiPlatformMonitor ImVec2 WorkPos, WorkSize; float DpiScale; }; +struct ImGuiPlatformImeData +{ + bool WantVisible; + ImVec2 InputPos; + float InputLineHeight; +}; +struct ImBitVector; +struct ImRect; +struct ImDrawDataBuilder; +struct ImDrawListSharedData; +struct ImGuiColorMod; +struct ImGuiContext; +struct ImGuiContextHook; +struct ImGuiDataTypeInfo; +struct ImGuiDockContext; +struct ImGuiDockRequest; +struct ImGuiDockNode; +struct ImGuiDockNodeSettings; +struct ImGuiGroupData; +struct ImGuiInputTextState; +struct ImGuiLastItemData; +struct ImGuiLocEntry; +struct ImGuiMenuColumns; +struct ImGuiNavItemData; +struct ImGuiMetricsConfig; +struct ImGuiNextWindowData; +struct ImGuiNextItemData; +struct ImGuiOldColumnData; +struct ImGuiOldColumns; +struct ImGuiPopupData; +struct ImGuiSettingsHandler; +struct ImGuiStackSizes; +struct ImGuiStyleMod; +struct ImGuiTabBar; +struct ImGuiTabItem; +struct ImGuiTable; +struct ImGuiTableColumn; +struct ImGuiTableInstanceData; +struct ImGuiTableTempData; +struct ImGuiTableSettings; +struct ImGuiTableColumnsSettings; +struct ImGuiWindow; +struct ImGuiWindowTempData; +struct ImGuiWindowSettings; +typedef int ImGuiDataAuthority; +typedef int ImGuiLayoutType; +typedef int ImGuiActivateFlags; +typedef int ImGuiDebugLogFlags; +typedef int ImGuiInputFlags; +typedef int ImGuiItemFlags; +typedef int ImGuiItemStatusFlags; +typedef int ImGuiOldColumnFlags; +typedef int ImGuiNavHighlightFlags; +typedef int ImGuiNavMoveFlags; +typedef int ImGuiNextItemDataFlags; +typedef int ImGuiNextWindowDataFlags; +typedef int ImGuiScrollFlags; +typedef int ImGuiSeparatorFlags; +typedef int ImGuiTextFlags; +typedef int ImGuiTooltipFlags; +typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...); +extern ImGuiContext* GImGui; +typedef struct StbUndoRecord StbUndoRecord; struct StbUndoRecord { int where; @@ -1357,6 +1452,7 @@ struct StbUndoRecord int delete_length; int char_storage; }; +typedef struct StbUndoState StbUndoState; struct StbUndoState { StbUndoRecord undo_rec [99]; @@ -1364,6 +1460,7 @@ struct StbUndoState short undo_point, redo_point; int undo_char_point, redo_char_point; }; +typedef struct STB_TexteditState STB_TexteditState; struct STB_TexteditState { int cursor; @@ -1379,6 +1476,7 @@ struct STB_TexteditState float preferred_x; StbUndoState undostate; }; +typedef struct StbTexteditRow StbTexteditRow; struct StbTexteditRow { float x0,x1; @@ -1386,10 +1484,13 @@ struct StbTexteditRow float ymin,ymax; int num_chars; }; +typedef FILE* ImFileHandle; +typedef struct ImVec1 ImVec1; struct ImVec1 { float x; }; +typedef struct ImVec2ih ImVec2ih; struct ImVec2ih { short x, y; @@ -1403,6 +1504,15 @@ struct ImBitVector { ImVector_ImU32 Storage; }; +typedef int ImPoolIdx; +typedef struct ImGuiTextIndex ImGuiTextIndex; +typedef struct ImVector_int {int Size;int Capacity;int* Data;} ImVector_int; + +struct ImGuiTextIndex +{ + ImVector_int LineOffsets; + int EndOffset; +}; struct ImDrawListSharedData { ImVec2 TexUvWhitePixel; @@ -1412,11 +1522,14 @@ struct ImDrawListSharedData float CircleSegmentMaxError; ImVec4 ClipRectFullscreen; ImDrawListFlags InitialFlags; + ImVector_ImVec2 TempBuffer; ImVec2 ArcFastVtx[48]; float ArcFastRadiusCutoff; ImU8 CircleSegmentCounts[64]; const ImVec4* TexUvLines; }; +typedef struct ImVector_ImDrawListPtr {int Size;int Capacity;ImDrawList** Data;} ImVector_ImDrawListPtr; + struct ImDrawDataBuilder { ImVector_ImDrawListPtr Layers[2]; @@ -1431,7 +1544,8 @@ typedef enum { ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, ImGuiItemFlags_MixedValue = 1 << 6, ImGuiItemFlags_ReadOnly = 1 << 7, - ImGuiItemFlags_Inputable = 1 << 8 + ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, + ImGuiItemFlags_Inputable = 1 << 10, }ImGuiItemFlags_; typedef enum { ImGuiItemStatusFlags_None = 0, @@ -1443,12 +1557,13 @@ typedef enum { ImGuiItemStatusFlags_HasDeactivated = 1 << 5, ImGuiItemStatusFlags_Deactivated = 1 << 6, ImGuiItemStatusFlags_HoveredWindow = 1 << 7, - ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8 + ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, + ImGuiItemStatusFlags_Visible = 1 << 9, }ImGuiItemStatusFlags_; typedef enum { ImGuiInputTextFlags_Multiline = 1 << 26, ImGuiInputTextFlags_NoMarkEdited = 1 << 27, - ImGuiInputTextFlags_MergedItem = 1 << 28 + ImGuiInputTextFlags_MergedItem = 1 << 28, }ImGuiInputTextFlagsPrivate_; typedef enum { ImGuiButtonFlags_PressedOnClick = 1 << 4, @@ -1466,15 +1581,17 @@ typedef enum { ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, ImGuiButtonFlags_NoNavFocus = 1 << 18, ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, + ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, + ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, - ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, }ImGuiButtonFlagsPrivate_; typedef enum { - ImGuiComboFlags_CustomPreview = 1 << 20 + ImGuiComboFlags_CustomPreview = 1 << 20, }ImGuiComboFlagsPrivate_; typedef enum { ImGuiSliderFlags_Vertical = 1 << 20, - ImGuiSliderFlags_ReadOnly = 1 << 21 + ImGuiSliderFlags_ReadOnly = 1 << 21, }ImGuiSliderFlagsPrivate_; typedef enum { ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, @@ -1484,24 +1601,25 @@ typedef enum { ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, ImGuiSelectableFlags_DrawHoveredWhenHeld = 1 << 25, ImGuiSelectableFlags_SetNavIdOnHover = 1 << 26, - ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 27 + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 27, + ImGuiSelectableFlags_NoSetKeyOwner = 1 << 28, }ImGuiSelectableFlagsPrivate_; typedef enum { - ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20 + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, }ImGuiTreeNodeFlagsPrivate_; typedef enum { ImGuiSeparatorFlags_None = 0, ImGuiSeparatorFlags_Horizontal = 1 << 0, ImGuiSeparatorFlags_Vertical = 1 << 1, - ImGuiSeparatorFlags_SpanAllColumns = 1 << 2 + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, }ImGuiSeparatorFlags_; typedef enum { ImGuiTextFlags_None = 0, - ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0 + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, }ImGuiTextFlags_; typedef enum { ImGuiTooltipFlags_None = 0, - ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0 + ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0, }ImGuiTooltipFlags_; typedef enum { ImGuiLayoutType_Horizontal = 0, @@ -1512,7 +1630,7 @@ typedef enum { ImGuiLogType_TTY, ImGuiLogType_File, ImGuiLogType_Buffer, - ImGuiLogType_Clipboard + ImGuiLogType_Clipboard, }ImGuiLogType; typedef enum { ImGuiAxis_None = -1, @@ -1521,30 +1639,14 @@ typedef enum { }ImGuiAxis; typedef enum { ImGuiPlotType_Lines, - ImGuiPlotType_Histogram + ImGuiPlotType_Histogram, }ImGuiPlotType; -typedef enum { - ImGuiInputSource_None = 0, - ImGuiInputSource_Mouse, - ImGuiInputSource_Keyboard, - ImGuiInputSource_Gamepad, - ImGuiInputSource_Nav, - ImGuiInputSource_Clipboard, - ImGuiInputSource_COUNT -}ImGuiInputSource; -typedef enum { - ImGuiInputReadMode_Down, - ImGuiInputReadMode_Pressed, - ImGuiInputReadMode_Released, - ImGuiInputReadMode_Repeat, - ImGuiInputReadMode_RepeatSlow, - ImGuiInputReadMode_RepeatFast -}ImGuiInputReadMode; typedef enum { ImGuiPopupPositionPolicy_Default, ImGuiPopupPositionPolicy_ComboBox, - ImGuiPopupPositionPolicy_Tooltip + ImGuiPopupPositionPolicy_Tooltip, }ImGuiPopupPositionPolicy; +typedef struct ImGuiDataTypeTempStorage ImGuiDataTypeTempStorage; struct ImGuiDataTypeTempStorage { ImU8 Data[8]; @@ -1559,7 +1661,7 @@ struct ImGuiDataTypeInfo typedef enum { ImGuiDataType_String = ImGuiDataType_COUNT + 1, ImGuiDataType_Pointer, - ImGuiDataType_ID + ImGuiDataType_ID, }ImGuiDataTypePrivate_; struct ImGuiColorMod { @@ -1571,6 +1673,7 @@ struct ImGuiStyleMod ImGuiStyleVar VarIdx; union { int BackupInt[2]; float BackupFloat[2]; }; }; +typedef struct ImGuiComboPreviewData ImGuiComboPreviewData; struct ImGuiComboPreviewData { ImRect PreviewRect; @@ -1626,7 +1729,8 @@ struct ImGuiPopupData { ImGuiID PopupId; ImGuiWindow* Window; - ImGuiWindow* SourceWindow; + ImGuiWindow* BackupNavWindow; + int ParentNavLayer; int OpenFrameCount; ImGuiID OpenParentId; ImVec2 OpenPopupPos; @@ -1644,7 +1748,7 @@ typedef enum { ImGuiNextWindowDataFlags_HasScroll = 1 << 7, ImGuiNextWindowDataFlags_HasViewport = 1 << 8, ImGuiNextWindowDataFlags_HasDock = 1 << 9, - ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10 + ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10, }ImGuiNextWindowDataFlags_; struct ImGuiNextWindowData { @@ -1672,7 +1776,7 @@ struct ImGuiNextWindowData typedef enum { ImGuiNextItemDataFlags_None = 0, ImGuiNextItemDataFlags_HasWidth = 1 << 0, - ImGuiNextItemDataFlags_HasOpen = 1 << 1 + ImGuiNextItemDataFlags_HasOpen = 1 << 1, }ImGuiNextItemDataFlags_; struct ImGuiNextItemData { @@ -1703,22 +1807,148 @@ struct ImGuiStackSizes short SizeOfBeginPopupStack; short SizeOfDisabledStack; }; +typedef struct ImGuiWindowStackData ImGuiWindowStackData; struct ImGuiWindowStackData { ImGuiWindow* Window; ImGuiLastItemData ParentLastItemDataBackup; ImGuiStackSizes StackSizesOnBegin; }; +typedef struct ImGuiShrinkWidthItem ImGuiShrinkWidthItem; struct ImGuiShrinkWidthItem { int Index; float Width; + float InitialWidth; }; +typedef struct ImGuiPtrOrIndex ImGuiPtrOrIndex; struct ImGuiPtrOrIndex { void* Ptr; int Index; }; +typedef struct ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN {ImU32 Storage[(ImGuiKey_NamedKey_COUNT+31)>>5];} ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN; + +typedef ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN ImBitArrayForNamedKeys; +typedef enum { + ImGuiInputEventType_None = 0, + ImGuiInputEventType_MousePos, + ImGuiInputEventType_MouseWheel, + ImGuiInputEventType_MouseButton, + ImGuiInputEventType_MouseViewport, + ImGuiInputEventType_Key, + ImGuiInputEventType_Text, + ImGuiInputEventType_Focus, + ImGuiInputEventType_COUNT +}ImGuiInputEventType; +typedef enum { + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, + ImGuiInputSource_Keyboard, + ImGuiInputSource_Gamepad, + ImGuiInputSource_Clipboard, + ImGuiInputSource_Nav, + ImGuiInputSource_COUNT +}ImGuiInputSource; +typedef struct ImGuiInputEventMousePos ImGuiInputEventMousePos; +struct ImGuiInputEventMousePos +{ float PosX, PosY; +}; +typedef struct ImGuiInputEventMouseWheel ImGuiInputEventMouseWheel; +struct ImGuiInputEventMouseWheel +{ float WheelX, WheelY; +}; +typedef struct ImGuiInputEventMouseButton ImGuiInputEventMouseButton; +struct ImGuiInputEventMouseButton +{ int Button; bool Down; +}; +typedef struct ImGuiInputEventMouseViewport ImGuiInputEventMouseViewport; +struct ImGuiInputEventMouseViewport +{ ImGuiID HoveredViewportID; +}; +typedef struct ImGuiInputEventKey ImGuiInputEventKey; +struct ImGuiInputEventKey +{ ImGuiKey Key; bool Down; float AnalogValue; +}; +typedef struct ImGuiInputEventText ImGuiInputEventText; +struct ImGuiInputEventText +{ unsigned int Char; +}; +typedef struct ImGuiInputEventAppFocused ImGuiInputEventAppFocused; +struct ImGuiInputEventAppFocused +{ bool Focused; +}; +typedef struct ImGuiInputEvent ImGuiInputEvent; +struct ImGuiInputEvent +{ + ImGuiInputEventType Type; + ImGuiInputSource Source; + union + { + ImGuiInputEventMousePos MousePos; + ImGuiInputEventMouseWheel MouseWheel; + ImGuiInputEventMouseButton MouseButton; + ImGuiInputEventMouseViewport MouseViewport; + ImGuiInputEventKey Key; + ImGuiInputEventText Text; + ImGuiInputEventAppFocused AppFocused; + }; + bool AddedByTestEngine; +}; +typedef ImS16 ImGuiKeyRoutingIndex; +typedef struct ImGuiKeyRoutingData ImGuiKeyRoutingData; +struct ImGuiKeyRoutingData +{ + ImGuiKeyRoutingIndex NextEntryIndex; + ImU16 Mods; + ImU8 RoutingNextScore; + ImGuiID RoutingCurr; + ImGuiID RoutingNext; +}; +typedef struct ImGuiKeyRoutingTable ImGuiKeyRoutingTable; +typedef struct ImVector_ImGuiKeyRoutingData {int Size;int Capacity;ImGuiKeyRoutingData* Data;} ImVector_ImGuiKeyRoutingData; + +struct ImGuiKeyRoutingTable +{ + ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; + ImVector_ImGuiKeyRoutingData Entries; + ImVector_ImGuiKeyRoutingData EntriesNext; +}; +typedef struct ImGuiKeyOwnerData ImGuiKeyOwnerData; +struct ImGuiKeyOwnerData +{ + ImGuiID OwnerCurr; + ImGuiID OwnerNext; + bool LockThisFrame; + bool LockUntilRelease; +}; +typedef enum { + ImGuiInputFlags_None = 0, + ImGuiInputFlags_Repeat = 1 << 0, + ImGuiInputFlags_RepeatRateDefault = 1 << 1, + ImGuiInputFlags_RepeatRateNavMove = 1 << 2, + ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, + ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, + ImGuiInputFlags_CondHovered = 1 << 4, + ImGuiInputFlags_CondActive = 1 << 5, + ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_LockThisFrame = 1 << 6, + ImGuiInputFlags_LockUntilRelease = 1 << 7, + ImGuiInputFlags_RouteFocused = 1 << 8, + ImGuiInputFlags_RouteGlobalLow = 1 << 9, + ImGuiInputFlags_RouteGlobal = 1 << 10, + ImGuiInputFlags_RouteGlobalHigh = 1 << 11, + ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, + ImGuiInputFlags_RouteAlways = 1 << 12, + ImGuiInputFlags_RouteUnlessBgFocused= 1 << 13, + ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, + ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, + ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, + ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, + ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, +}ImGuiInputFlags_; +typedef struct ImGuiListClipperRange ImGuiListClipperRange; struct ImGuiListClipperRange { int Min; @@ -1727,6 +1957,9 @@ struct ImGuiListClipperRange ImS8 PosToIndexOffsetMin; ImS8 PosToIndexOffsetMax; }; +typedef struct ImGuiListClipperData ImGuiListClipperData; +typedef struct ImVector_ImGuiListClipperRange {int Size;int Capacity;ImGuiListClipperRange* Data;} ImVector_ImGuiListClipperRange; + struct ImGuiListClipperData { ImGuiListClipper* ListClipper; @@ -1739,7 +1972,7 @@ typedef enum { ImGuiActivateFlags_None = 0, ImGuiActivateFlags_PreferInput = 1 << 0, ImGuiActivateFlags_PreferTweak = 1 << 1, - ImGuiActivateFlags_TryToPreserveState = 1 << 2 + ImGuiActivateFlags_TryToPreserveState = 1 << 2, }ImGuiActivateFlags_; typedef enum { ImGuiScrollFlags_None = 0, @@ -1751,22 +1984,15 @@ typedef enum { ImGuiScrollFlags_AlwaysCenterY = 1 << 5, ImGuiScrollFlags_NoScrollParent = 1 << 6, ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, - ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY + ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, }ImGuiScrollFlags_; typedef enum { ImGuiNavHighlightFlags_None = 0, ImGuiNavHighlightFlags_TypeDefault = 1 << 0, ImGuiNavHighlightFlags_TypeThin = 1 << 1, ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, - ImGuiNavHighlightFlags_NoRounding = 1 << 3 + ImGuiNavHighlightFlags_NoRounding = 1 << 3, }ImGuiNavHighlightFlags_; -typedef enum { - ImGuiNavDirSourceFlags_None = 0, - ImGuiNavDirSourceFlags_RawKeyboard = 1 << 0, - ImGuiNavDirSourceFlags_Keyboard = 1 << 1, - ImGuiNavDirSourceFlags_PadDPad = 1 << 2, - ImGuiNavDirSourceFlags_PadLStick = 1 << 3 -}ImGuiNavDirSourceFlags_; typedef enum { ImGuiNavMoveFlags_None = 0, ImGuiNavMoveFlags_LoopX = 1 << 0, @@ -1781,7 +2007,7 @@ typedef enum { ImGuiNavMoveFlags_FocusApi = 1 << 9, ImGuiNavMoveFlags_Tabbing = 1 << 10, ImGuiNavMoveFlags_Activate = 1 << 11, - ImGuiNavMoveFlags_DontSetNavHighlight = 1 << 12 + ImGuiNavMoveFlags_DontSetNavHighlight = 1 << 12, }ImGuiNavMoveFlags_; typedef enum { ImGuiNavLayer_Main = 0, @@ -1805,7 +2031,7 @@ typedef enum { ImGuiOldColumnFlags_NoResize = 1 << 1, ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, - ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4 + ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, }ImGuiOldColumnFlags_; struct ImGuiOldColumnData { @@ -1814,6 +2040,8 @@ struct ImGuiOldColumnData ImGuiOldColumnFlags Flags; ImRect ClipRect; }; +typedef struct ImVector_ImGuiOldColumnData {int Size;int Capacity;ImGuiOldColumnData* Data;} ImVector_ImGuiOldColumnData; + struct ImGuiOldColumns { ImGuiID ID; @@ -1856,14 +2084,16 @@ typedef enum { typedef enum { ImGuiDataAuthority_Auto, ImGuiDataAuthority_DockNode, - ImGuiDataAuthority_Window + ImGuiDataAuthority_Window, }ImGuiDataAuthority_; typedef enum { ImGuiDockNodeState_Unknown, ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow, ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing, - ImGuiDockNodeState_HostWindowVisible + ImGuiDockNodeState_HostWindowVisible, }ImGuiDockNodeState; +typedef struct ImVector_ImGuiWindowPtr {int Size;int Capacity;ImGuiWindow** Data;} ImVector_ImGuiWindowPtr; + struct ImGuiDockNode { ImGuiID ID; @@ -1917,10 +2147,15 @@ typedef enum { ImGuiWindowDockStyleCol_TabUnfocusedActive, ImGuiWindowDockStyleCol_COUNT }ImGuiWindowDockStyleCol; +typedef struct ImGuiWindowDockStyle ImGuiWindowDockStyle; struct ImGuiWindowDockStyle { ImU32 Colors[ImGuiWindowDockStyleCol_COUNT]; }; +typedef struct ImVector_ImGuiDockRequest {int Size;int Capacity;ImGuiDockRequest* Data;} ImVector_ImGuiDockRequest; + +typedef struct ImVector_ImGuiDockNodeSettings {int Size;int Capacity;ImGuiDockNodeSettings* Data;} ImVector_ImGuiDockNodeSettings; + struct ImGuiDockContext { ImGuiStorage Nodes; @@ -1928,6 +2163,7 @@ struct ImGuiDockContext ImVector_ImGuiDockNodeSettings NodesSettings; bool WantFullRebuild; }; +typedef struct ImGuiViewportP ImGuiViewportP; struct ImGuiViewportP { ImGuiViewport _ImGuiViewport; @@ -1939,7 +2175,6 @@ struct ImGuiViewportP float Alpha; float LastAlpha; short PlatformMonitor; - bool PlatformWindowCreated; ImGuiWindow* Window; int DrawListsLastFrame[2]; ImDrawList* DrawLists[2]; @@ -1978,8 +2213,38 @@ struct ImGuiSettingsHandler void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); void* UserData; }; +typedef enum { +ImGuiLocKey_TableSizeOne=0, +ImGuiLocKey_TableSizeAllFit=1, +ImGuiLocKey_TableSizeAllDefault=2, +ImGuiLocKey_TableResetOrder=3, +ImGuiLocKey_WindowingMainMenuBar=4, +ImGuiLocKey_WindowingPopup=5, +ImGuiLocKey_WindowingUntitled=6, +ImGuiLocKey_DockingHideTabBar=7, +ImGuiLocKey_COUNT=8, +}ImGuiLocKey; +struct ImGuiLocEntry +{ + ImGuiLocKey Key; + const char* Text; +}; +typedef enum { + ImGuiDebugLogFlags_None = 0, + ImGuiDebugLogFlags_EventActiveId = 1 << 0, + ImGuiDebugLogFlags_EventFocus = 1 << 1, + ImGuiDebugLogFlags_EventPopup = 1 << 2, + ImGuiDebugLogFlags_EventNav = 1 << 3, + ImGuiDebugLogFlags_EventClipper = 1 << 4, + ImGuiDebugLogFlags_EventIO = 1 << 5, + ImGuiDebugLogFlags_EventDocking = 1 << 6, + ImGuiDebugLogFlags_EventViewport = 1 << 7, + ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport, + ImGuiDebugLogFlags_OutputToTTY = 1 << 10, +}ImGuiDebugLogFlags_; struct ImGuiMetricsConfig { + bool ShowDebugLog; bool ShowStackTool; bool ShowWindowsRects; bool ShowWindowsBeginOrder; @@ -1990,20 +2255,28 @@ struct ImGuiMetricsConfig int ShowWindowsRectsType; int ShowTablesRectsType; }; +typedef struct ImGuiStackLevelInfo ImGuiStackLevelInfo; struct ImGuiStackLevelInfo { ImGuiID ID; ImS8 QueryFrameCount; bool QuerySuccess; - char Desc[58]; + ImGuiDataType DataType : 8; + char Desc[57]; }; +typedef struct ImGuiStackTool ImGuiStackTool; +typedef struct ImVector_ImGuiStackLevelInfo {int Size;int Capacity;ImGuiStackLevelInfo* Data;} ImVector_ImGuiStackLevelInfo; + struct ImGuiStackTool { int LastActiveFrame; int StackLevel; ImGuiID QueryId; ImVector_ImGuiStackLevelInfo Results; + bool CopyToClipboardOnCtrlC; + float CopyToClipboardLastTime; }; +typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); typedef enum { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }ImGuiContextHookType; struct ImGuiContextHook { @@ -2013,12 +2286,58 @@ struct ImGuiContextHook ImGuiContextHookCallback Callback; void* UserData; }; +typedef struct ImVector_ImGuiInputEvent {int Size;int Capacity;ImGuiInputEvent* Data;} ImVector_ImGuiInputEvent; + +typedef struct ImVector_ImGuiWindowStackData {int Size;int Capacity;ImGuiWindowStackData* Data;} ImVector_ImGuiWindowStackData; + +typedef struct ImVector_ImGuiColorMod {int Size;int Capacity;ImGuiColorMod* Data;} ImVector_ImGuiColorMod; + +typedef struct ImVector_ImGuiStyleMod {int Size;int Capacity;ImGuiStyleMod* Data;} ImVector_ImGuiStyleMod; + +typedef struct ImVector_ImGuiID {int Size;int Capacity;ImGuiID* Data;} ImVector_ImGuiID; + +typedef struct ImVector_ImGuiItemFlags {int Size;int Capacity;ImGuiItemFlags* Data;} ImVector_ImGuiItemFlags; + +typedef struct ImVector_ImGuiGroupData {int Size;int Capacity;ImGuiGroupData* Data;} ImVector_ImGuiGroupData; + +typedef struct ImVector_ImGuiPopupData {int Size;int Capacity;ImGuiPopupData* Data;} ImVector_ImGuiPopupData; + +typedef struct ImVector_ImGuiViewportPPtr {int Size;int Capacity;ImGuiViewportP** Data;} ImVector_ImGuiViewportPPtr; + +typedef struct ImVector_unsigned_char {int Size;int Capacity;unsigned char* Data;} ImVector_unsigned_char; + +typedef struct ImVector_ImGuiListClipperData {int Size;int Capacity;ImGuiListClipperData* Data;} ImVector_ImGuiListClipperData; + +typedef struct ImVector_ImGuiTableTempData {int Size;int Capacity;ImGuiTableTempData* Data;} ImVector_ImGuiTableTempData; + +typedef struct ImVector_ImGuiTable {int Size;int Capacity;ImGuiTable* Data;} ImVector_ImGuiTable; + +typedef struct ImPool_ImGuiTable {ImVector_ImGuiTable Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImGuiTable; + +typedef struct ImVector_ImGuiTabBar {int Size;int Capacity;ImGuiTabBar* Data;} ImVector_ImGuiTabBar; + +typedef struct ImPool_ImGuiTabBar {ImVector_ImGuiTabBar Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImGuiTabBar; + +typedef struct ImVector_ImGuiPtrOrIndex {int Size;int Capacity;ImGuiPtrOrIndex* Data;} ImVector_ImGuiPtrOrIndex; + +typedef struct ImVector_ImGuiShrinkWidthItem {int Size;int Capacity;ImGuiShrinkWidthItem* Data;} ImVector_ImGuiShrinkWidthItem; + +typedef struct ImVector_ImGuiSettingsHandler {int Size;int Capacity;ImGuiSettingsHandler* Data;} ImVector_ImGuiSettingsHandler; + +typedef struct ImChunkStream_ImGuiWindowSettings {ImVector_char Buf;} ImChunkStream_ImGuiWindowSettings; + +typedef struct ImChunkStream_ImGuiTableSettings {ImVector_char Buf;} ImChunkStream_ImGuiTableSettings; + +typedef struct ImVector_ImGuiContextHook {int Size;int Capacity;ImGuiContextHook* Data;} ImVector_ImGuiContextHook; + struct ImGuiContext { bool Initialized; bool FontAtlasOwnedByContext; ImGuiIO IO; ImGuiPlatformIO PlatformIO; + ImVector_ImGuiInputEvent InputEventsQueue; + ImVector_ImGuiInputEvent InputEventsTrail; ImGuiStyle Style; ImGuiConfigFlags ConfigFlagsCurrFrame; ImGuiConfigFlags ConfigFlagsLastFrame; @@ -2047,17 +2366,14 @@ struct ImGuiContext ImGuiWindow* CurrentWindow; ImGuiWindow* HoveredWindow; ImGuiWindow* HoveredWindowUnderMovingWindow; - ImGuiDockNode* HoveredDockNode; ImGuiWindow* MovingWindow; ImGuiWindow* WheelingWindow; ImVec2 WheelingWindowRefMousePos; - float WheelingWindowTimer; + float WheelingWindowReleaseTimer; ImGuiID DebugHookIdInfo; ImGuiID HoveredId; ImGuiID HoveredIdPreviousFrame; bool HoveredIdAllowOverlap; - bool HoveredIdUsingMouseWheel; - bool HoveredIdPreviousFrameUsingMouseWheel; bool HoveredIdDisabled; float HoveredIdTimer; float HoveredIdNotActiveTimer; @@ -2070,10 +2386,6 @@ struct ImGuiContext bool ActiveIdHasBeenPressedBefore; bool ActiveIdHasBeenEditedBefore; bool ActiveIdHasBeenEditedThisFrame; - bool ActiveIdUsingMouseWheel; - ImU32 ActiveIdUsingNavDirMask; - ImU32 ActiveIdUsingNavInputMask; - ImU64 ActiveIdUsingKeyInputMask; ImVec2 ActiveIdClickOffset; ImGuiWindow* ActiveIdWindow; ImGuiInputSource ActiveIdSource; @@ -2084,7 +2396,14 @@ struct ImGuiContext ImGuiWindow* ActiveIdPreviousFrameWindow; ImGuiID LastActiveId; float LastActiveIdTimer; + ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; + ImGuiKeyRoutingTable KeysRoutingTable; + ImU32 ActiveIdUsingNavDirMask; + bool ActiveIdUsingAllKeyboardKeys; + ImU32 ActiveIdUsingNavInputMask; + ImGuiID CurrentFocusScopeId; ImGuiItemFlags CurrentItemFlags; + ImGuiID DebugLocateId; ImGuiNextItemData NextItemData; ImGuiLastItemData LastItemData; ImGuiNextWindowData NextWindowData; @@ -2115,7 +2434,7 @@ struct ImGuiContext ImGuiActivateFlags NavActivateFlags; ImGuiID NavJustMovedToId; ImGuiID NavJustMovedToFocusScopeId; - ImGuiKeyModFlags NavJustMovedToKeyMods; + ImGuiKeyChord NavJustMovedToKeyMods; ImGuiID NavNextActivateId; ImGuiActivateFlags NavNextActivateFlags; ImGuiInputSource NavInputSource; @@ -2134,7 +2453,7 @@ struct ImGuiContext bool NavMoveForwardToNextFrame; ImGuiNavMoveFlags NavMoveFlags; ImGuiScrollFlags NavMoveScrollFlags; - ImGuiKeyModFlags NavMoveKeyMods; + ImGuiKeyChord NavMoveKeyMods; ImGuiDir NavMoveDir; ImGuiDir NavMoveDirForDebug; ImGuiDir NavMoveClipDir; @@ -2147,12 +2466,16 @@ struct ImGuiContext ImGuiNavItemData NavMoveResultLocalVisible; ImGuiNavItemData NavMoveResultOther; ImGuiNavItemData NavTabbingResultFirst; + ImGuiKeyChord ConfigNavWindowingKeyNext; + ImGuiKeyChord ConfigNavWindowingKeyPrev; ImGuiWindow* NavWindowingTarget; ImGuiWindow* NavWindowingTargetAnim; ImGuiWindow* NavWindowingListWindow; float NavWindowingTimer; float NavWindowingHighlightAlpha; bool NavWindowingToggleLayer; + ImVec2 NavWindowingAccumDeltaPos; + ImVec2 NavWindowingAccumDeltaSize; float DimBgRatio; ImGuiMouseCursor MouseCursor; bool DragDropActive; @@ -2184,6 +2507,10 @@ struct ImGuiContext ImPool_ImGuiTabBar TabBars; ImVector_ImGuiPtrOrIndex CurrentTabBarStack; ImVector_ImGuiShrinkWidthItem ShrinkWidthBuffer; + ImGuiID HoverDelayId; + ImGuiID HoverDelayIdPreviousFrame; + float HoverDelayTimer; + float HoverDelayClearTimer; ImVec2 MouseLastValidPos; ImGuiInputTextState InputTextState; ImFont InputTextPasswordFont; @@ -2194,6 +2521,7 @@ struct ImGuiContext ImU32 ColorEditLastColor; ImVec4 ColorPickerRef; ImGuiComboPreviewData ComboPreviewData; + float SliderGrabClickOffset; float SliderCurrentAccum; bool SliderCurrentAccumDirty; bool DragCurrentAccumDirty; @@ -2203,12 +2531,11 @@ struct ImGuiContext float DisabledAlphaBackup; short DisabledStackSize; short TooltipOverrideCount; - float TooltipSlowDelay; ImVector_char ClipboardHandlerData; ImVector_ImGuiID MenusIdSubmittedThisFrame; - ImVec2 PlatformImePos; - ImVec2 PlatformImeLastPos; - ImGuiViewportP* PlatformImePosViewport; + ImGuiPlatformImeData PlatformImeData; + ImGuiPlatformImeData PlatformImeDataPrev; + ImGuiID PlatformImeViewport; char PlatformLocaleDecimalPoint; ImGuiDockContext DockContext; bool SettingsLoaded; @@ -2219,6 +2546,7 @@ struct ImGuiContext ImChunkStream_ImGuiTableSettings SettingsTables; ImVector_ImGuiContextHook Hooks; ImGuiID HookIdNext; + const char* LocalizationTable[ImGuiLocKey_COUNT]; bool LogEnabled; ImGuiLogType LogType; ImFileHandle LogFile; @@ -2230,18 +2558,24 @@ struct ImGuiContext int LogDepthRef; int LogDepthToExpand; int LogDepthToExpandDefault; + ImGuiDebugLogFlags DebugLogFlags; + ImGuiTextBuffer DebugLogBuf; + ImGuiTextIndex DebugLogIndex; + ImU8 DebugLocateFrames; bool DebugItemPickerActive; + ImU8 DebugItemPickerMouseButton; ImGuiID DebugItemPickerBreakId; ImGuiMetricsConfig DebugMetricsConfig; ImGuiStackTool DebugStackTool; - float FramerateSecPerFrame[120]; + ImGuiDockNode* DebugHoveredDockNode; + float FramerateSecPerFrame[60]; int FramerateSecPerFrameIdx; int FramerateSecPerFrameCount; float FramerateSecPerFrameAccum; int WantCaptureMouseNextFrame; int WantCaptureKeyboardNextFrame; int WantTextInputNextFrame; - char TempBuffer[1024 * 3 + 1]; + ImVector_char TempBuffer; }; struct ImGuiWindowTempData { @@ -2254,6 +2588,8 @@ struct ImGuiWindowTempData ImVec2 PrevLineSize; float CurrLineTextBaseOffset; float PrevLineTextBaseOffset; + bool IsSameLine; + bool IsSetPos; ImVec1 Indent; ImVec1 ColumnsOffset; ImVec1 GroupOffset; @@ -2261,7 +2597,6 @@ struct ImGuiWindowTempData ImGuiNavLayer NavLayerCurrent; short NavLayersActiveMask; short NavLayersActiveMaskNext; - ImGuiID NavFocusScopeIdCurrent; bool NavHideHighlightOneFrame; bool NavHasScroll; bool MenuBarAppending; @@ -2280,6 +2615,8 @@ struct ImGuiWindowTempData ImVector_float ItemWidthStack; ImVector_float TextWrapPosStack; }; +typedef struct ImVector_ImGuiOldColumns {int Size;int Capacity;ImGuiOldColumns* Data;} ImVector_ImGuiOldColumns; + struct ImGuiWindow { char* Name; @@ -2301,6 +2638,7 @@ struct ImGuiWindow float WindowBorderSize; int NameBufLen; ImGuiID MoveId; + ImGuiID TabId; ImGuiID ChildId; ImVec2 Scroll; ImVec2 ScrollMax; @@ -2323,6 +2661,7 @@ struct ImGuiWindow bool HasCloseButton; signed char ResizeBorderHeld; short BeginCount; + short BeginCountPreviousFrame; short BeginOrderWithinParent; short BeginOrderWithinContext; short FocusOrder; @@ -2373,6 +2712,7 @@ struct ImGuiWindow ImGuiWindow* NavLastChildNavWindow; ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; ImRect NavRectRel[ImGuiNavLayer_COUNT]; + ImGuiID NavRootFocusScopeId; int MemoryDrawListIdxCapacity; int MemoryDrawListVtxCapacity; bool MemoryCompacted; @@ -2391,14 +2731,14 @@ struct ImGuiWindow typedef enum { ImGuiTabBarFlags_DockNode = 1 << 20, ImGuiTabBarFlags_IsFocused = 1 << 21, - ImGuiTabBarFlags_SaveSettings = 1 << 22 + ImGuiTabBarFlags_SaveSettings = 1 << 22, }ImGuiTabBarFlagsPrivate_; typedef enum { ImGuiTabItemFlags_SectionMask_ = ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing, ImGuiTabItemFlags_NoCloseButton = 1 << 20, ImGuiTabItemFlags_Button = 1 << 21, ImGuiTabItemFlags_Unsorted = 1 << 22, - ImGuiTabItemFlags_Preview = 1 << 23 + ImGuiTabItemFlags_Preview = 1 << 23, }ImGuiTabItemFlagsPrivate_; struct ImGuiTabItem { @@ -2410,11 +2750,14 @@ struct ImGuiTabItem float Offset; float Width; float ContentWidth; + float RequestedWidth; ImS32 NameOffset; ImS16 BeginOrder; ImS16 IndexDuringLayout; bool WantClose; }; +typedef struct ImVector_ImGuiTabItem {int Size;int Capacity;ImGuiTabItem* Data;} ImVector_ImGuiTabItem; + struct ImGuiTabBar { ImVector_ImGuiTabItem Tabs; @@ -2449,6 +2792,8 @@ struct ImGuiTabBar ImVec2 BackupCursorPos; ImGuiTextBuffer TabsNames; }; +typedef ImS8 ImGuiTableColumnIdx; +typedef ImU8 ImGuiTableDrawChannelIdx; struct ImGuiTableColumn { ImGuiTableColumnFlags Flags; @@ -2493,11 +2838,27 @@ struct ImGuiTableColumn ImU8 SortDirectionsAvailMask : 4; ImU8 SortDirectionsAvailList; }; +typedef struct ImGuiTableCellData ImGuiTableCellData; struct ImGuiTableCellData { ImU32 BgColor; ImGuiTableColumnIdx Column; }; +struct ImGuiTableInstanceData +{ + float LastOuterHeight; + float LastFirstRowHeight; +}; +typedef struct ImSpan_ImGuiTableColumn {ImGuiTableColumn* Data;ImGuiTableColumn* DataEnd;} ImSpan_ImGuiTableColumn; + +typedef struct ImSpan_ImGuiTableColumnIdx {ImGuiTableColumnIdx* Data;ImGuiTableColumnIdx* DataEnd;} ImSpan_ImGuiTableColumnIdx; + +typedef struct ImSpan_ImGuiTableCellData {ImGuiTableCellData* Data;ImGuiTableCellData* DataEnd;} ImSpan_ImGuiTableCellData; + +typedef struct ImVector_ImGuiTableInstanceData {int Size;int Capacity;ImGuiTableInstanceData* Data;} ImVector_ImGuiTableInstanceData; + +typedef struct ImVector_ImGuiTableColumnSortSpecs {int Size;int Capacity;ImGuiTableColumnSortSpecs* Data;} ImVector_ImGuiTableColumnSortSpecs; + struct ImGuiTable { ImGuiID ID; @@ -2539,11 +2900,10 @@ struct ImGuiTable float CellPaddingY; float CellSpacingX1; float CellSpacingX2; - float LastOuterHeight; - float LastFirstRowHeight; float InnerWidth; float ColumnsGivenWidth; float ColumnsAutoFitWidth; + float ColumnsStretchSumWeights; float ResizedColumnNextWidth; float ResizeLockMinContentsX2; float RefScale; @@ -2560,6 +2920,8 @@ struct ImGuiTable ImGuiWindow* InnerWindow; ImGuiTextBuffer ColumnsNames; ImDrawListSplitter* DrawSplitter; + ImGuiTableInstanceData InstanceDataFirst; + ImVector_ImGuiTableInstanceData InstanceDataExtra; ImGuiTableColumnSortSpecs SortSpecsSingle; ImVector_ImGuiTableColumnSortSpecs SortSpecsMulti; ImGuiTableSortSpecs SortSpecs; @@ -2619,6 +2981,7 @@ struct ImGuiTableTempData float HostBackupItemWidth; int HostBackupItemWidthStackSize; }; +typedef struct ImGuiTableColumnSettings ImGuiTableColumnSettings; struct ImGuiTableColumnSettings { float WidthOrWeight; @@ -2652,8 +3015,8 @@ typedef union SDL_Event SDL_Event; #endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS #ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS -typedef ImGuiStorage::ImGuiStoragePair ImGuiStoragePair; -typedef ImGuiTextFilter::ImGuiTextRange ImGuiTextRange; +typedef struct ImGuiStorage::ImGuiStoragePair ImGuiStoragePair; +typedef struct ImGuiTextFilter::ImGuiTextRange ImGuiTextRange; typedef ImStb::STB_TexteditState STB_TexteditState; typedef ImStb::StbTexteditRow StbTexteditRow; typedef ImStb::StbUndoRecord StbUndoRecord; @@ -2680,7 +3043,9 @@ typedef ImVector ImVector_ImGuiDockNodeSettings; typedef ImVector ImVector_ImGuiDockRequest; typedef ImVector ImVector_ImGuiGroupData; typedef ImVector ImVector_ImGuiID; +typedef ImVector ImVector_ImGuiInputEvent; typedef ImVector ImVector_ImGuiItemFlags; +typedef ImVector ImVector_ImGuiKeyRoutingData; typedef ImVector ImVector_ImGuiListClipperData; typedef ImVector ImVector_ImGuiListClipperRange; typedef ImVector ImVector_ImGuiOldColumnData; @@ -2695,6 +3060,7 @@ typedef ImVector ImVector_ImGuiStoragePair; typedef ImVector ImVector_ImGuiStyleMod; typedef ImVector ImVector_ImGuiTabItem; typedef ImVector ImVector_ImGuiTableColumnSortSpecs; +typedef ImVector ImVector_ImGuiTableInstanceData; typedef ImVector ImVector_ImGuiTableTempData; typedef ImVector ImVector_ImGuiTextRange; typedef ImVector ImVector_ImGuiViewportPtr; @@ -2709,14 +3075,15 @@ typedef ImVector ImVector_ImWchar; typedef ImVector ImVector_char; typedef ImVector ImVector_const_charPtr; typedef ImVector ImVector_float; +typedef ImVector ImVector_int; typedef ImVector ImVector_unsigned_char; #endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS -CIMGUI_API ImVec2* ImVec2_ImVec2Nil(void); +CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void); CIMGUI_API void ImVec2_destroy(ImVec2* self); -CIMGUI_API ImVec2* ImVec2_ImVec2Float(float _x,float _y); -CIMGUI_API ImVec4* ImVec4_ImVec4Nil(void); +CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x,float _y); +CIMGUI_API ImVec4* ImVec4_ImVec4_Nil(void); CIMGUI_API void ImVec4_destroy(ImVec4* self); -CIMGUI_API ImVec4* ImVec4_ImVec4Float(float _x,float _y,float _z,float _w); +CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x,float _y,float _z,float _w); CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas); CIMGUI_API void igDestroyContext(ImGuiContext* ctx); CIMGUI_API ImGuiContext* igGetCurrentContext(void); @@ -2729,6 +3096,7 @@ CIMGUI_API void igRender(void); CIMGUI_API ImDrawData* igGetDrawData(void); CIMGUI_API void igShowDemoWindow(bool* p_open); CIMGUI_API void igShowMetricsWindow(bool* p_open); +CIMGUI_API void igShowDebugLogWindow(bool* p_open); CIMGUI_API void igShowStackToolWindow(bool* p_open); CIMGUI_API void igShowAboutWindow(bool* p_open); CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref); @@ -2741,8 +3109,8 @@ CIMGUI_API void igStyleColorsLight(ImGuiStyle* dst); CIMGUI_API void igStyleColorsClassic(ImGuiStyle* dst); CIMGUI_API bool igBegin(const char* name,bool* p_open,ImGuiWindowFlags flags); CIMGUI_API void igEnd(void); -CIMGUI_API bool igBeginChildStr(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags); -CIMGUI_API bool igBeginChildID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags); +CIMGUI_API bool igBeginChild_Str(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags); +CIMGUI_API bool igBeginChild_ID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags); CIMGUI_API void igEndChild(void); CIMGUI_API bool igIsWindowAppearing(void); CIMGUI_API bool igIsWindowCollapsed(void); @@ -2761,38 +3129,39 @@ CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min,const ImVec CIMGUI_API void igSetNextWindowContentSize(const ImVec2 size); CIMGUI_API void igSetNextWindowCollapsed(bool collapsed,ImGuiCond cond); CIMGUI_API void igSetNextWindowFocus(void); +CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll); CIMGUI_API void igSetNextWindowBgAlpha(float alpha); CIMGUI_API void igSetNextWindowViewport(ImGuiID viewport_id); -CIMGUI_API void igSetWindowPosVec2(const ImVec2 pos,ImGuiCond cond); -CIMGUI_API void igSetWindowSizeVec2(const ImVec2 size,ImGuiCond cond); -CIMGUI_API void igSetWindowCollapsedBool(bool collapsed,ImGuiCond cond); -CIMGUI_API void igSetWindowFocusNil(void); +CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowFocus_Nil(void); CIMGUI_API void igSetWindowFontScale(float scale); -CIMGUI_API void igSetWindowPosStr(const char* name,const ImVec2 pos,ImGuiCond cond); -CIMGUI_API void igSetWindowSizeStr(const char* name,const ImVec2 size,ImGuiCond cond); -CIMGUI_API void igSetWindowCollapsedStr(const char* name,bool collapsed,ImGuiCond cond); -CIMGUI_API void igSetWindowFocusStr(const char* name); +CIMGUI_API void igSetWindowPos_Str(const char* name,const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Str(const char* name,const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Str(const char* name,bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowFocus_Str(const char* name); CIMGUI_API void igGetContentRegionAvail(ImVec2 *pOut); CIMGUI_API void igGetContentRegionMax(ImVec2 *pOut); CIMGUI_API void igGetWindowContentRegionMin(ImVec2 *pOut); CIMGUI_API void igGetWindowContentRegionMax(ImVec2 *pOut); CIMGUI_API float igGetScrollX(void); CIMGUI_API float igGetScrollY(void); -CIMGUI_API void igSetScrollXFloat(float scroll_x); -CIMGUI_API void igSetScrollYFloat(float scroll_y); +CIMGUI_API void igSetScrollX_Float(float scroll_x); +CIMGUI_API void igSetScrollY_Float(float scroll_y); CIMGUI_API float igGetScrollMaxX(void); CIMGUI_API float igGetScrollMaxY(void); CIMGUI_API void igSetScrollHereX(float center_x_ratio); CIMGUI_API void igSetScrollHereY(float center_y_ratio); -CIMGUI_API void igSetScrollFromPosXFloat(float local_x,float center_x_ratio); -CIMGUI_API void igSetScrollFromPosYFloat(float local_y,float center_y_ratio); +CIMGUI_API void igSetScrollFromPosX_Float(float local_x,float center_x_ratio); +CIMGUI_API void igSetScrollFromPosY_Float(float local_y,float center_y_ratio); CIMGUI_API void igPushFont(ImFont* font); CIMGUI_API void igPopFont(void); -CIMGUI_API void igPushStyleColorU32(ImGuiCol idx,ImU32 col); -CIMGUI_API void igPushStyleColorVec4(ImGuiCol idx,const ImVec4 col); +CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col); +CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx,const ImVec4 col); CIMGUI_API void igPopStyleColor(int count); -CIMGUI_API void igPushStyleVarFloat(ImGuiStyleVar idx,float val); -CIMGUI_API void igPushStyleVarVec2(ImGuiStyleVar idx,const ImVec2 val); +CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx,float val); +CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx,const ImVec2 val); CIMGUI_API void igPopStyleVar(int count); CIMGUI_API void igPushAllowKeyboardFocus(bool allow_keyboard_focus); CIMGUI_API void igPopAllowKeyboardFocus(void); @@ -2807,9 +3176,9 @@ CIMGUI_API void igPopTextWrapPos(void); CIMGUI_API ImFont* igGetFont(void); CIMGUI_API float igGetFontSize(void); CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut); -CIMGUI_API ImU32 igGetColorU32Col(ImGuiCol idx,float alpha_mul); -CIMGUI_API ImU32 igGetColorU32Vec4(const ImVec4 col); -CIMGUI_API ImU32 igGetColorU32U32(ImU32 col); +CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul); +CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col); +CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col); CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx); CIMGUI_API void igSeparator(void); CIMGUI_API void igSameLine(float offset_from_start_x,float spacing); @@ -2834,14 +3203,14 @@ CIMGUI_API float igGetTextLineHeight(void); CIMGUI_API float igGetTextLineHeightWithSpacing(void); CIMGUI_API float igGetFrameHeight(void); CIMGUI_API float igGetFrameHeightWithSpacing(void); -CIMGUI_API void igPushIDStr(const char* str_id); -CIMGUI_API void igPushIDStrStr(const char* str_id_begin,const char* str_id_end); -CIMGUI_API void igPushIDPtr(const void* ptr_id); -CIMGUI_API void igPushIDInt(int int_id); +CIMGUI_API void igPushID_Str(const char* str_id); +CIMGUI_API void igPushID_StrStr(const char* str_id_begin,const char* str_id_end); +CIMGUI_API void igPushID_Ptr(const void* ptr_id); +CIMGUI_API void igPushID_Int(int int_id); CIMGUI_API void igPopID(void); -CIMGUI_API ImGuiID igGetIDStr(const char* str_id); -CIMGUI_API ImGuiID igGetIDStrStr(const char* str_id_begin,const char* str_id_end); -CIMGUI_API ImGuiID igGetIDPtr(const void* ptr_id); +CIMGUI_API ImGuiID igGetID_Str(const char* str_id); +CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin,const char* str_id_end); +CIMGUI_API ImGuiID igGetID_Ptr(const void* ptr_id); CIMGUI_API void igTextUnformatted(const char* text,const char* text_end); CIMGUI_API void igText(const char* fmt,...); CIMGUI_API void igTextV(const char* fmt,va_list args); @@ -2859,20 +3228,20 @@ CIMGUI_API bool igButton(const char* label,const ImVec2 size); CIMGUI_API bool igSmallButton(const char* label); CIMGUI_API bool igInvisibleButton(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags); CIMGUI_API bool igArrowButton(const char* str_id,ImGuiDir dir); -CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col); -CIMGUI_API bool igImageButton(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,int frame_padding,const ImVec4 bg_col,const ImVec4 tint_col); CIMGUI_API bool igCheckbox(const char* label,bool* v); -CIMGUI_API bool igCheckboxFlagsIntPtr(const char* label,int* flags,int flags_value); -CIMGUI_API bool igCheckboxFlagsUintPtr(const char* label,unsigned int* flags,unsigned int flags_value); -CIMGUI_API bool igRadioButtonBool(const char* label,bool active); -CIMGUI_API bool igRadioButtonIntPtr(const char* label,int* v,int v_button); +CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label,int* flags,int flags_value); +CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label,unsigned int* flags,unsigned int flags_value); +CIMGUI_API bool igRadioButton_Bool(const char* label,bool active); +CIMGUI_API bool igRadioButton_IntPtr(const char* label,int* v,int v_button); CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay); CIMGUI_API void igBullet(void); +CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col); +CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col); CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags); CIMGUI_API void igEndCombo(void); -CIMGUI_API bool igComboStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items); -CIMGUI_API bool igComboStr(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items); -CIMGUI_API bool igComboFnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items); +CIMGUI_API bool igCombo_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items); +CIMGUI_API bool igCombo_Str(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items); +CIMGUI_API bool igCombo_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items); CIMGUI_API bool igDragFloat(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); CIMGUI_API bool igDragFloat2(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); CIMGUI_API bool igDragFloat3(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); @@ -2917,47 +3286,47 @@ CIMGUI_API bool igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags CIMGUI_API bool igColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags); CIMGUI_API bool igColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags); CIMGUI_API bool igColorPicker4(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col); -CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,ImVec2 size); +CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size); CIMGUI_API void igSetColorEditOptions(ImGuiColorEditFlags flags); -CIMGUI_API bool igTreeNodeStr(const char* label); -CIMGUI_API bool igTreeNodeStrStr(const char* str_id,const char* fmt,...); -CIMGUI_API bool igTreeNodePtr(const void* ptr_id,const char* fmt,...); -CIMGUI_API bool igTreeNodeVStr(const char* str_id,const char* fmt,va_list args); -CIMGUI_API bool igTreeNodeVPtr(const void* ptr_id,const char* fmt,va_list args); -CIMGUI_API bool igTreeNodeExStr(const char* label,ImGuiTreeNodeFlags flags); -CIMGUI_API bool igTreeNodeExStrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...); -CIMGUI_API bool igTreeNodeExPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...); -CIMGUI_API bool igTreeNodeExVStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); -CIMGUI_API bool igTreeNodeExVPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); -CIMGUI_API void igTreePushStr(const char* str_id); -CIMGUI_API void igTreePushPtr(const void* ptr_id); +CIMGUI_API bool igTreeNode_Str(const char* label); +CIMGUI_API bool igTreeNode_StrStr(const char* str_id,const char* fmt,...); +CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id,const char* fmt,...); +CIMGUI_API bool igTreeNodeV_Str(const char* str_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeEx_Str(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeExV_Str(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); +CIMGUI_API void igTreePush_Str(const char* str_id); +CIMGUI_API void igTreePush_Ptr(const void* ptr_id); CIMGUI_API void igTreePop(void); CIMGUI_API float igGetTreeNodeToLabelSpacing(void); -CIMGUI_API bool igCollapsingHeaderTreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags); -CIMGUI_API bool igCollapsingHeaderBoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags); CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond); -CIMGUI_API bool igSelectableBool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size); -CIMGUI_API bool igSelectableBoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size); CIMGUI_API bool igBeginListBox(const char* label,const ImVec2 size); CIMGUI_API void igEndListBox(void); -CIMGUI_API bool igListBoxStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items); -CIMGUI_API bool igListBoxFnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items); -CIMGUI_API void igPlotLinesFloatPtr(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 igPlotLinesFnFloatPtr(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 igPlotHistogramFloatPtr(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 igPlotHistogramFnFloatPtr(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 igValueBool(const char* prefix,bool b); -CIMGUI_API void igValueInt(const char* prefix,int v); -CIMGUI_API void igValueUint(const char* prefix,unsigned int v); -CIMGUI_API void igValueFloat(const char* prefix,float v,const char* float_format); +CIMGUI_API bool igListBox_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items); +CIMGUI_API bool igListBox_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items); +CIMGUI_API void igPlotLines_FloatPtr(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 igPlotLines_FnFloatPtr(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 igPlotHistogram_FloatPtr(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 igPlotHistogram_FnFloatPtr(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 igValue_Bool(const char* prefix,bool b); +CIMGUI_API void igValue_Int(const char* prefix,int v); +CIMGUI_API void igValue_Uint(const char* prefix,unsigned int v); +CIMGUI_API void igValue_Float(const char* prefix,float v,const char* float_format); CIMGUI_API bool igBeginMenuBar(void); CIMGUI_API void igEndMenuBar(void); CIMGUI_API bool igBeginMainMenuBar(void); CIMGUI_API void igEndMainMenuBar(void); CIMGUI_API bool igBeginMenu(const char* label,bool enabled); CIMGUI_API void igEndMenu(void); -CIMGUI_API bool igMenuItemBool(const char* label,const char* shortcut,bool selected,bool enabled); -CIMGUI_API bool igMenuItemBoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled); +CIMGUI_API bool igMenuItem_Bool(const char* label,const char* shortcut,bool selected,bool enabled); +CIMGUI_API bool igMenuItem_BoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled); CIMGUI_API void igBeginTooltip(void); CIMGUI_API void igEndTooltip(void); CIMGUI_API void igSetTooltip(const char* fmt,...); @@ -2965,14 +3334,14 @@ CIMGUI_API void igSetTooltipV(const char* fmt,va_list args); CIMGUI_API bool igBeginPopup(const char* str_id,ImGuiWindowFlags flags); CIMGUI_API bool igBeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags); CIMGUI_API void igEndPopup(void); -CIMGUI_API void igOpenPopupStr(const char* str_id,ImGuiPopupFlags popup_flags); -CIMGUI_API void igOpenPopupID(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopup_Str(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopup_ID(ImGuiID id,ImGuiPopupFlags popup_flags); CIMGUI_API void igOpenPopupOnItemClick(const char* str_id,ImGuiPopupFlags popup_flags); CIMGUI_API void igCloseCurrentPopup(void); CIMGUI_API bool igBeginPopupContextItem(const char* str_id,ImGuiPopupFlags popup_flags); CIMGUI_API bool igBeginPopupContextWindow(const char* str_id,ImGuiPopupFlags popup_flags); CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,ImGuiPopupFlags popup_flags); -CIMGUI_API bool igIsPopupOpenStr(const char* str_id,ImGuiPopupFlags flags); +CIMGUI_API bool igIsPopupOpen_Str(const char* str_id,ImGuiPopupFlags flags); CIMGUI_API bool igBeginTable(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width); CIMGUI_API void igEndTable(void); CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags,float min_row_height); @@ -2986,7 +3355,7 @@ CIMGUI_API ImGuiTableSortSpecs* igTableGetSortSpecs(void); CIMGUI_API int igTableGetColumnCount(void); CIMGUI_API int igTableGetColumnIndex(void); CIMGUI_API int igTableGetRowIndex(void); -CIMGUI_API const char* igTableGetColumnNameInt(int column_n); +CIMGUI_API const char* igTableGetColumnName_Int(int column_n); CIMGUI_API ImGuiTableColumnFlags igTableGetColumnFlags(int column_n); CIMGUI_API void igTableSetColumnEnabled(int column_n,bool v); CIMGUI_API void igTableSetBgColor(ImGuiTableBgTarget target,ImU32 color,int column_n); @@ -3047,14 +3416,14 @@ CIMGUI_API void igGetItemRectMax(ImVec2 *pOut); CIMGUI_API void igGetItemRectSize(ImVec2 *pOut); CIMGUI_API void igSetItemAllowOverlap(void); CIMGUI_API ImGuiViewport* igGetMainViewport(void); -CIMGUI_API bool igIsRectVisibleNil(const ImVec2 size); -CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max); +CIMGUI_API ImDrawList* igGetBackgroundDrawList_Nil(void); +CIMGUI_API ImDrawList* igGetForegroundDrawList_Nil(void); +CIMGUI_API ImDrawList* igGetBackgroundDrawList_ViewportPtr(ImGuiViewport* viewport); +CIMGUI_API ImDrawList* igGetForegroundDrawList_ViewportPtr(ImGuiViewport* viewport); +CIMGUI_API bool igIsRectVisible_Nil(const ImVec2 size); +CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min,const ImVec2 rect_max); CIMGUI_API double igGetTime(void); CIMGUI_API int igGetFrameCount(void); -CIMGUI_API ImDrawList* igGetBackgroundDrawListNil(void); -CIMGUI_API ImDrawList* igGetForegroundDrawListNil(void); -CIMGUI_API ImDrawList* igGetBackgroundDrawListViewportPtr(ImGuiViewport* viewport); -CIMGUI_API ImDrawList* igGetForegroundDrawListViewportPtr(ImGuiViewport* viewport); CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData(void); CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx); CIMGUI_API void igSetStateStorage(ImGuiStorage* storage); @@ -3066,15 +3435,15 @@ CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in); CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in); CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v); CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,float* out_g,float* out_b); -CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key); -CIMGUI_API bool igIsKeyDown(int user_key_index); -CIMGUI_API bool igIsKeyPressed(int user_key_index,bool repeat); -CIMGUI_API bool igIsKeyReleased(int user_key_index); -CIMGUI_API int igGetKeyPressedAmount(int key_index,float repeat_delay,float rate); -CIMGUI_API void igCaptureKeyboardFromApp(bool want_capture_keyboard_value); -CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button); -CIMGUI_API bool igIsMouseClicked(ImGuiMouseButton button,bool repeat); -CIMGUI_API bool igIsMouseReleased(ImGuiMouseButton button); +CIMGUI_API bool igIsKeyDown_Nil(ImGuiKey key); +CIMGUI_API bool igIsKeyPressed_Bool(ImGuiKey key,bool repeat); +CIMGUI_API bool igIsKeyReleased_Nil(ImGuiKey key); +CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate); +CIMGUI_API const char* igGetKeyName(ImGuiKey key); +CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); +CIMGUI_API bool igIsMouseDown_Nil(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseClicked_Bool(ImGuiMouseButton button,bool repeat); +CIMGUI_API bool igIsMouseReleased_Nil(ImGuiMouseButton button); CIMGUI_API bool igIsMouseDoubleClicked(ImGuiMouseButton button); CIMGUI_API int igGetMouseClickedCount(ImGuiMouseButton button); CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip); @@ -3087,13 +3456,14 @@ CIMGUI_API void igGetMouseDragDelta(ImVec2 *pOut,ImGuiMouseButton button,float l CIMGUI_API void igResetMouseDragDelta(ImGuiMouseButton button); CIMGUI_API ImGuiMouseCursor igGetMouseCursor(void); CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type); -CIMGUI_API void igCaptureMouseFromApp(bool want_capture_mouse_value); +CIMGUI_API void igSetNextFrameWantCaptureMouse(bool want_capture_mouse); CIMGUI_API const char* igGetClipboardText(void); CIMGUI_API void igSetClipboardText(const char* text); CIMGUI_API void igLoadIniSettingsFromDisk(const char* ini_filename); CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size); CIMGUI_API void igSaveIniSettingsToDisk(const char* ini_filename); CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size); +CIMGUI_API void igDebugTextEncoding(const char* text); CIMGUI_API bool igDebugCheckVersionAndDataLayout(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 igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data); CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data); @@ -3108,10 +3478,18 @@ CIMGUI_API ImGuiViewport* igFindViewportByPlatformHandle(void* platform_handle); CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void); CIMGUI_API void ImGuiStyle_destroy(ImGuiStyle* self); CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor); +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 wh_x,float wh_y); +CIMGUI_API void ImGuiIO_AddMouseViewportEvent(ImGuiIO* self,ImGuiID id); +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_AddFocusEvent(ImGuiIO* self,bool focused); +CIMGUI_API void ImGuiIO_SetKeyEventNativeData(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_ClearInputCharacters(ImGuiIO* self); CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self); CIMGUI_API ImGuiIO* ImGuiIO_ImGuiIO(void); @@ -3144,9 +3522,9 @@ CIMGUI_API bool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self,const char* tex CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self); CIMGUI_API void ImGuiTextFilter_Clear(ImGuiTextFilter* self); CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self); -CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeNil(void); +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(void); CIMGUI_API void ImGuiTextRange_destroy(ImGuiTextRange* self); -CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeStr(const char* _b,const char* _e); +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b,const char* _e); CIMGUI_API bool ImGuiTextRange_empty(ImGuiTextRange* self); CIMGUI_API void ImGuiTextRange_split(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out); CIMGUI_API ImGuiTextBuffer* ImGuiTextBuffer_ImGuiTextBuffer(void); @@ -3160,10 +3538,10 @@ CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity); CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self); CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end); CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,va_list args); -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairInt(ImGuiID _key,int _val_i); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key,int _val_i); CIMGUI_API void ImGuiStoragePair_destroy(ImGuiStoragePair* self); -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairFloat(ImGuiID _key,float _val_f); -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairPtr(ImGuiID _key,void* _val_p); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key,float _val_f); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key,void* _val_p); CIMGUI_API void ImGuiStorage_Clear(ImGuiStorage* self); CIMGUI_API int ImGuiStorage_GetInt(ImGuiStorage* self,ImGuiID key,int default_val); CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self,ImGuiID key,int val); @@ -3185,12 +3563,12 @@ CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self,int items_count,fl CIMGUI_API void ImGuiListClipper_End(ImGuiListClipper* self); CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self); CIMGUI_API void ImGuiListClipper_ForceDisplayRangeByIndices(ImGuiListClipper* self,int item_min,int item_max); -CIMGUI_API ImColor* ImColor_ImColorNil(void); +CIMGUI_API ImColor* ImColor_ImColor_Nil(void); CIMGUI_API void ImColor_destroy(ImColor* self); -CIMGUI_API ImColor* ImColor_ImColorInt(int r,int g,int b,int a); -CIMGUI_API ImColor* ImColor_ImColorU32(ImU32 rgba); -CIMGUI_API ImColor* ImColor_ImColorFloat(float r,float g,float b,float a); -CIMGUI_API ImColor* ImColor_ImColorVec4(const ImVec4 col); +CIMGUI_API ImColor* ImColor_ImColor_Float(float r,float g,float b,float a); +CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col); +CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a); +CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba); CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a); CIMGUI_API void ImColor_HSV(ImColor *pOut,float h,float s,float v,float a); CIMGUI_API ImDrawCmd* ImDrawCmd_ImDrawCmd(void); @@ -3203,9 +3581,9 @@ 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); -CIMGUI_API ImDrawList* ImDrawList_ImDrawList(const ImDrawListSharedData* shared_data); +CIMGUI_API ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data); CIMGUI_API void ImDrawList_destroy(ImDrawList* self); -CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect); +CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,const ImVec2 clip_rect_min,const 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_PushTextureID(ImDrawList* self,ImTextureID texture_id); @@ -3224,8 +3602,8 @@ CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self,const ImVec2 center,float CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness); CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); -CIMGUI_API void ImDrawList_AddTextVec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end); -CIMGUI_API void ImDrawList_AddTextFontPtr(ImDrawList* self,const ImFont* font,float font_size,const 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_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end); +CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const 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_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness); CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col); CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments); @@ -3304,6 +3682,7 @@ CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self,unsigned char** CIMGUI_API bool ImFontAtlas_IsBuilt(ImFontAtlas* self); CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self,ImTextureID id); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self); @@ -3325,8 +3704,8 @@ CIMGUI_API bool ImFont_IsLoaded(ImFont* self); CIMGUI_API const char* ImFont_GetDebugName(ImFont* self); CIMGUI_API void ImFont_CalcTextSizeA(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining); CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,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_RenderText(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip); +CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c); +CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip); CIMGUI_API void ImFont_BuildLookupTable(ImFont* self); CIMGUI_API void ImFont_ClearOutputData(ImFont* self); CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size); @@ -3342,12 +3721,15 @@ CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_ImGuiPlatformIO(void); CIMGUI_API void ImGuiPlatformIO_destroy(ImGuiPlatformIO* self); CIMGUI_API ImGuiPlatformMonitor* ImGuiPlatformMonitor_ImGuiPlatformMonitor(void); CIMGUI_API void ImGuiPlatformMonitor_destroy(ImGuiPlatformMonitor* self); +CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void); +CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self); +CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key); CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImU32 seed); CIMGUI_API ImGuiID igImHashStr(const char* data,size_t data_size,ImU32 seed); CIMGUI_API void igImQsort(void* base,size_t count,size_t size_of_element,int(*compare_func)(void const*,void const*)); CIMGUI_API ImU32 igImAlphaBlendColors(ImU32 col_a,ImU32 col_b); -CIMGUI_API bool igImIsPowerOfTwoInt(int v); -CIMGUI_API bool igImIsPowerOfTwoU64(ImU64 v); +CIMGUI_API bool igImIsPowerOfTwo_Int(int v); +CIMGUI_API bool igImIsPowerOfTwo_U64(ImU64 v); CIMGUI_API int igImUpperPowerOfTwo(int v); CIMGUI_API int igImStricmp(const char* str1,const char* str2); CIMGUI_API int igImStrnicmp(const char* str1,const char* str2,size_t count); @@ -3361,14 +3743,19 @@ CIMGUI_API const ImWchar* igImStrbolW(const ImWchar* buf_mid_line,const ImWchar* CIMGUI_API const char* igImStristr(const char* haystack,const char* haystack_end,const char* needle,const char* needle_end); CIMGUI_API void igImStrTrimBlanks(char* str); CIMGUI_API const char* igImStrSkipBlank(const char* str); +CIMGUI_API char igImToUpper(char c); +CIMGUI_API bool igImCharIsBlankA(char c); +CIMGUI_API bool igImCharIsBlankW(unsigned int c); CIMGUI_API int igImFormatString(char* buf,size_t buf_size,const char* fmt,...); CIMGUI_API int igImFormatStringV(char* buf,size_t buf_size,const char* fmt,va_list args); +CIMGUI_API void igImFormatStringToTempBuffer(const char** out_buf,const char** out_buf_end,const char* fmt,...); +CIMGUI_API void igImFormatStringToTempBufferV(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args); CIMGUI_API const char* igImParseFormatFindStart(const char* format); CIMGUI_API const char* igImParseFormatFindEnd(const char* format); CIMGUI_API const char* igImParseFormatTrimDecorations(const char* format,char* buf,size_t buf_size); +CIMGUI_API void igImParseFormatSanitizeForPrinting(const char* fmt_in,char* fmt_out,size_t fmt_out_size); +CIMGUI_API const char* igImParseFormatSanitizeForScanning(const char* fmt_in,char* fmt_out,size_t fmt_out_size); CIMGUI_API int igImParseFormatPrecision(const char* format,int default_value); -CIMGUI_API bool igImCharIsBlankA(char c); -CIMGUI_API bool igImCharIsBlankW(unsigned int c); CIMGUI_API const char* igImTextCharToUtf8(char out_buf[5],unsigned int c); CIMGUI_API int igImTextStrToUtf8(char* out_buf,int out_buf_size,const ImWchar* in_text,const ImWchar* in_text_end); CIMGUI_API int igImTextCharFromUtf8(unsigned int* out_char,const char* in_text,const char* in_text_end); @@ -3382,30 +3769,31 @@ CIMGUI_API ImU64 igImFileGetSize(ImFileHandle file); CIMGUI_API ImU64 igImFileRead(void* data,ImU64 size,ImU64 count,ImFileHandle file); CIMGUI_API ImU64 igImFileWrite(const void* data,ImU64 size,ImU64 count,ImFileHandle file); CIMGUI_API void* igImFileLoadToMemory(const char* filename,const char* mode,size_t* out_file_size,int padding_bytes); -CIMGUI_API float igImPowFloat(float x,float y); -CIMGUI_API double igImPowdouble(double x,double y); -CIMGUI_API float igImLogFloat(float x); -CIMGUI_API double igImLogdouble(double x); -CIMGUI_API int igImAbsInt(int x); -CIMGUI_API float igImAbsFloat(float x); -CIMGUI_API double igImAbsdouble(double x); -CIMGUI_API float igImSignFloat(float x); -CIMGUI_API double igImSigndouble(double x); -CIMGUI_API float igImRsqrtFloat(float x); -CIMGUI_API double igImRsqrtdouble(double x); +CIMGUI_API float igImPow_Float(float x,float y); +CIMGUI_API double igImPow_double(double x,double y); +CIMGUI_API float igImLog_Float(float x); +CIMGUI_API double igImLog_double(double x); +CIMGUI_API int igImAbs_Int(int x); +CIMGUI_API float igImAbs_Float(float x); +CIMGUI_API double igImAbs_double(double x); +CIMGUI_API float igImSign_Float(float x); +CIMGUI_API double igImSign_double(double x); +CIMGUI_API float igImRsqrt_Float(float x); +CIMGUI_API double igImRsqrt_double(double x); CIMGUI_API void igImMin(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); CIMGUI_API void igImMax(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); CIMGUI_API void igImClamp(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,ImVec2 mx); -CIMGUI_API void igImLerpVec2Float(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t); -CIMGUI_API void igImLerpVec2Vec2(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t); -CIMGUI_API void igImLerpVec4(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t); +CIMGUI_API void igImLerp_Vec2Float(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t); +CIMGUI_API void igImLerp_Vec2Vec2(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t); +CIMGUI_API void igImLerp_Vec4(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t); CIMGUI_API float igImSaturate(float f); -CIMGUI_API float igImLengthSqrVec2(const ImVec2 lhs); -CIMGUI_API float igImLengthSqrVec4(const ImVec4 lhs); +CIMGUI_API float igImLengthSqr_Vec2(const ImVec2 lhs); +CIMGUI_API float igImLengthSqr_Vec4(const ImVec4 lhs); CIMGUI_API float igImInvLength(const ImVec2 lhs,float fail_value); -CIMGUI_API float igImFloorFloat(float f); -CIMGUI_API float igImFloorSigned(float f); -CIMGUI_API void igImFloorVec2(ImVec2 *pOut,const ImVec2 v); +CIMGUI_API float igImFloor_Float(float f); +CIMGUI_API float igImFloorSigned_Float(float f); +CIMGUI_API void igImFloor_Vec2(ImVec2 *pOut,const ImVec2 v); +CIMGUI_API void igImFloorSigned_Vec2(ImVec2 *pOut,const ImVec2 v); CIMGUI_API int igImModPositive(int a,int b); CIMGUI_API float igImDot(const ImVec2 a,const ImVec2 b); CIMGUI_API void igImRotate(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a); @@ -3422,18 +3810,18 @@ CIMGUI_API void igImTriangleClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec CIMGUI_API void igImTriangleBarycentricCoords(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float* out_u,float* out_v,float* out_w); CIMGUI_API float igImTriangleArea(const ImVec2 a,const ImVec2 b,const ImVec2 c); CIMGUI_API ImGuiDir igImGetDirQuadrantFromDelta(float dx,float dy); -CIMGUI_API ImVec1* ImVec1_ImVec1Nil(void); +CIMGUI_API ImVec1* ImVec1_ImVec1_Nil(void); CIMGUI_API void ImVec1_destroy(ImVec1* self); -CIMGUI_API ImVec1* ImVec1_ImVec1Float(float _x); -CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ihNil(void); +CIMGUI_API ImVec1* ImVec1_ImVec1_Float(float _x); +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Nil(void); CIMGUI_API void ImVec2ih_destroy(ImVec2ih* self); -CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ihshort(short _x,short _y); -CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ihVec2(const ImVec2 rhs); -CIMGUI_API ImRect* ImRect_ImRectNil(void); +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_short(short _x,short _y); +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Vec2(const ImVec2 rhs); +CIMGUI_API ImRect* ImRect_ImRect_Nil(void); CIMGUI_API void ImRect_destroy(ImRect* self); -CIMGUI_API ImRect* ImRect_ImRectVec2(const ImVec2 min,const ImVec2 max); -CIMGUI_API ImRect* ImRect_ImRectVec4(const ImVec4 v); -CIMGUI_API ImRect* ImRect_ImRectFloat(float x1,float y1,float x2,float y2); +CIMGUI_API ImRect* ImRect_ImRect_Vec2(const ImVec2 min,const ImVec2 max); +CIMGUI_API ImRect* ImRect_ImRect_Vec4(const ImVec4 v); +CIMGUI_API ImRect* ImRect_ImRect_Float(float x1,float y1,float x2,float y2); CIMGUI_API void ImRect_GetCenter(ImVec2 *pOut,ImRect* self); CIMGUI_API void ImRect_GetSize(ImVec2 *pOut,ImRect* self); CIMGUI_API float ImRect_GetWidth(ImRect* self); @@ -3443,13 +3831,13 @@ CIMGUI_API void ImRect_GetTL(ImVec2 *pOut,ImRect* self); CIMGUI_API void ImRect_GetTR(ImVec2 *pOut,ImRect* self); CIMGUI_API void ImRect_GetBL(ImVec2 *pOut,ImRect* self); CIMGUI_API void ImRect_GetBR(ImVec2 *pOut,ImRect* self); -CIMGUI_API bool ImRect_ContainsVec2(ImRect* self,const ImVec2 p); -CIMGUI_API bool ImRect_ContainsRect(ImRect* self,const ImRect r); +CIMGUI_API bool ImRect_Contains_Vec2(ImRect* self,const ImVec2 p); +CIMGUI_API bool ImRect_Contains_Rect(ImRect* self,const ImRect r); CIMGUI_API bool ImRect_Overlaps(ImRect* self,const ImRect r); -CIMGUI_API void ImRect_AddVec2(ImRect* self,const ImVec2 p); -CIMGUI_API void ImRect_AddRect(ImRect* self,const ImRect r); -CIMGUI_API void ImRect_ExpandFloat(ImRect* self,const float amount); -CIMGUI_API void ImRect_ExpandVec2(ImRect* self,const ImVec2 amount); +CIMGUI_API void ImRect_Add_Vec2(ImRect* self,const ImVec2 p); +CIMGUI_API void ImRect_Add_Rect(ImRect* self,const ImRect r); +CIMGUI_API void ImRect_Expand_Float(ImRect* self,const float amount); +CIMGUI_API void ImRect_Expand_Vec2(ImRect* self,const ImVec2 amount); CIMGUI_API void ImRect_Translate(ImRect* self,const ImVec2 d); CIMGUI_API void ImRect_TranslateX(ImRect* self,float dx); CIMGUI_API void ImRect_TranslateY(ImRect* self,float dy); @@ -3467,6 +3855,11 @@ CIMGUI_API void ImBitVector_Clear(ImBitVector* self); CIMGUI_API bool ImBitVector_TestBit(ImBitVector* self,int n); CIMGUI_API void ImBitVector_SetBit(ImBitVector* self,int n); CIMGUI_API void ImBitVector_ClearBit(ImBitVector* self,int n); +CIMGUI_API void ImGuiTextIndex_clear(ImGuiTextIndex* self); +CIMGUI_API int ImGuiTextIndex_size(ImGuiTextIndex* self); +CIMGUI_API const char* ImGuiTextIndex_get_line_begin(ImGuiTextIndex* self,const char* base,int n); +CIMGUI_API const char* ImGuiTextIndex_get_line_end(ImGuiTextIndex* self,const char* base,int n); +CIMGUI_API void ImGuiTextIndex_append(ImGuiTextIndex* self,const char* base,int old_size,int new_size); CIMGUI_API ImDrawListSharedData* ImDrawListSharedData_ImDrawListSharedData(void); CIMGUI_API void ImDrawListSharedData_destroy(ImDrawListSharedData* self); CIMGUI_API void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self,float max_error); @@ -3474,10 +3867,10 @@ CIMGUI_API void ImDrawDataBuilder_Clear(ImDrawDataBuilder* self); CIMGUI_API void ImDrawDataBuilder_ClearFreeMemory(ImDrawDataBuilder* self); CIMGUI_API int ImDrawDataBuilder_GetDrawListCount(ImDrawDataBuilder* self); CIMGUI_API void ImDrawDataBuilder_FlattenIntoSingleLayer(ImDrawDataBuilder* self); -CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModInt(ImGuiStyleVar idx,int v); +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Int(ImGuiStyleVar idx,int v); CIMGUI_API void ImGuiStyleMod_destroy(ImGuiStyleMod* self); -CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModFloat(ImGuiStyleVar idx,float v); -CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModVec2(ImGuiStyleVar idx,ImVec2 v); +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Float(ImGuiStyleVar idx,float v); +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Vec2(ImGuiStyleVar idx,ImVec2 v); CIMGUI_API ImGuiComboPreviewData* ImGuiComboPreviewData_ImGuiComboPreviewData(void); CIMGUI_API void ImGuiComboPreviewData_destroy(ImGuiComboPreviewData* self); CIMGUI_API ImGuiMenuColumns* ImGuiMenuColumns_ImGuiMenuColumns(void); @@ -3514,9 +3907,18 @@ CIMGUI_API ImGuiStackSizes* ImGuiStackSizes_ImGuiStackSizes(void); CIMGUI_API void ImGuiStackSizes_destroy(ImGuiStackSizes* self); CIMGUI_API void ImGuiStackSizes_SetToCurrentState(ImGuiStackSizes* self); CIMGUI_API void ImGuiStackSizes_CompareWithCurrentState(ImGuiStackSizes* self); -CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndexPtr(void* ptr); +CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(void* ptr); CIMGUI_API void ImGuiPtrOrIndex_destroy(ImGuiPtrOrIndex* self); -CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndexInt(int index); +CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(int index); +CIMGUI_API ImGuiInputEvent* ImGuiInputEvent_ImGuiInputEvent(void); +CIMGUI_API void ImGuiInputEvent_destroy(ImGuiInputEvent* self); +CIMGUI_API ImGuiKeyRoutingData* ImGuiKeyRoutingData_ImGuiKeyRoutingData(void); +CIMGUI_API void ImGuiKeyRoutingData_destroy(ImGuiKeyRoutingData* self); +CIMGUI_API ImGuiKeyRoutingTable* ImGuiKeyRoutingTable_ImGuiKeyRoutingTable(void); +CIMGUI_API void ImGuiKeyRoutingTable_destroy(ImGuiKeyRoutingTable* self); +CIMGUI_API void ImGuiKeyRoutingTable_Clear(ImGuiKeyRoutingTable* self); +CIMGUI_API ImGuiKeyOwnerData* ImGuiKeyOwnerData_ImGuiKeyOwnerData(void); +CIMGUI_API void ImGuiKeyOwnerData_destroy(ImGuiKeyOwnerData* self); CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromIndices(int min,int max); CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromPositions(float y1,float y2,int off_min,int off_max); CIMGUI_API ImGuiListClipperData* ImGuiListClipperData_ImGuiListClipperData(void); @@ -3571,12 +3973,9 @@ CIMGUI_API ImGuiContext* ImGuiContext_ImGuiContext(ImFontAtlas* shared_font_atla CIMGUI_API void ImGuiContext_destroy(ImGuiContext* self); CIMGUI_API ImGuiWindow* ImGuiWindow_ImGuiWindow(ImGuiContext* context,const char* name); CIMGUI_API void ImGuiWindow_destroy(ImGuiWindow* self); -CIMGUI_API ImGuiID ImGuiWindow_GetIDStr(ImGuiWindow* self,const char* str,const char* str_end); -CIMGUI_API ImGuiID ImGuiWindow_GetIDPtr(ImGuiWindow* self,const void* ptr); -CIMGUI_API ImGuiID ImGuiWindow_GetIDInt(ImGuiWindow* self,int n); -CIMGUI_API ImGuiID ImGuiWindow_GetIDNoKeepAliveStr(ImGuiWindow* self,const char* str,const char* str_end); -CIMGUI_API ImGuiID ImGuiWindow_GetIDNoKeepAlivePtr(ImGuiWindow* self,const void* ptr); -CIMGUI_API ImGuiID ImGuiWindow_GetIDNoKeepAliveInt(ImGuiWindow* self,int n); +CIMGUI_API ImGuiID ImGuiWindow_GetID_Str(ImGuiWindow* self,const char* str,const char* str_end); +CIMGUI_API ImGuiID ImGuiWindow_GetID_Ptr(ImGuiWindow* self,const void* ptr); +CIMGUI_API ImGuiID ImGuiWindow_GetID_Int(ImGuiWindow* self,int n); CIMGUI_API ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self,const ImRect r_abs); CIMGUI_API void ImGuiWindow_Rect(ImRect *pOut,ImGuiWindow* self); CIMGUI_API float ImGuiWindow_CalcFontSize(ImGuiWindow* self); @@ -3592,6 +3991,8 @@ CIMGUI_API int ImGuiTabBar_GetTabOrder(ImGuiTabBar* self,const ImGuiTabItem* tab CIMGUI_API const char* ImGuiTabBar_GetTabName(ImGuiTabBar* self,const ImGuiTabItem* tab); CIMGUI_API ImGuiTableColumn* ImGuiTableColumn_ImGuiTableColumn(void); CIMGUI_API void ImGuiTableColumn_destroy(ImGuiTableColumn* self); +CIMGUI_API ImGuiTableInstanceData* ImGuiTableInstanceData_ImGuiTableInstanceData(void); +CIMGUI_API void ImGuiTableInstanceData_destroy(ImGuiTableInstanceData* self); CIMGUI_API ImGuiTable* ImGuiTable_ImGuiTable(void); CIMGUI_API void ImGuiTable_destroy(ImGuiTable* self); CIMGUI_API ImGuiTableTempData* ImGuiTableTempData_ImGuiTableTempData(void); @@ -3611,9 +4012,9 @@ CIMGUI_API bool igIsWindowChildOf(ImGuiWindow* window,ImGuiWindow* potential_par CIMGUI_API bool igIsWindowWithinBeginStackOf(ImGuiWindow* window,ImGuiWindow* potential_parent); CIMGUI_API bool igIsWindowAbove(ImGuiWindow* potential_above,ImGuiWindow* potential_below); CIMGUI_API bool igIsWindowNavFocusable(ImGuiWindow* window); -CIMGUI_API void igSetWindowPosWindowPtr(ImGuiWindow* window,const ImVec2 pos,ImGuiCond cond); -CIMGUI_API void igSetWindowSizeWindowPtr(ImGuiWindow* window,const ImVec2 size,ImGuiCond cond); -CIMGUI_API void igSetWindowCollapsedWindowPtr(ImGuiWindow* window,bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowPos_WindowPtr(ImGuiWindow* window,const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_WindowPtr(ImGuiWindow* window,const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_WindowPtr(ImGuiWindow* window,bool collapsed,ImGuiCond cond); CIMGUI_API void igSetWindowHitTestHole(ImGuiWindow* window,const ImVec2 pos,const ImVec2 size); CIMGUI_API void igWindowRectAbsToRel(ImRect *pOut,ImGuiWindow* window,const ImRect r); CIMGUI_API void igWindowRectRelToAbs(ImRect *pOut,ImGuiWindow* window,const ImRect r); @@ -3627,9 +4028,10 @@ CIMGUI_API int igFindWindowDisplayIndex(ImGuiWindow* window); CIMGUI_API ImGuiWindow* igFindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window); CIMGUI_API void igSetCurrentFont(ImFont* font); CIMGUI_API ImFont* igGetDefaultFont(void); -CIMGUI_API ImDrawList* igGetForegroundDrawListWindowPtr(ImGuiWindow* window); -CIMGUI_API void igInitialize(ImGuiContext* context); -CIMGUI_API void igShutdown(ImGuiContext* context); +CIMGUI_API ImDrawList* igGetForegroundDrawList_WindowPtr(ImGuiWindow* window); +CIMGUI_API void igInitialize(void); +CIMGUI_API void igShutdown(void); +CIMGUI_API void igUpdateInputEvents(bool trickle_fast_inputs); CIMGUI_API void igUpdateHoveredWindowAndCaptureFlags(void); CIMGUI_API void igStartMouseMovingWindow(ImGuiWindow* window); CIMGUI_API void igStartMouseMovingWindowOrNode(ImGuiWindow* window,ImGuiDockNode* node,bool undock_floating_node); @@ -3641,20 +4043,25 @@ CIMGUI_API void igCallContextHooks(ImGuiContext* context,ImGuiContextHookType ty CIMGUI_API void igTranslateWindowsInViewport(ImGuiViewportP* viewport,const ImVec2 old_pos,const ImVec2 new_pos); CIMGUI_API void igScaleWindowsInViewport(ImGuiViewportP* viewport,float scale); CIMGUI_API void igDestroyPlatformWindow(ImGuiViewportP* viewport); +CIMGUI_API void igSetWindowViewport(ImGuiWindow* window,ImGuiViewportP* viewport); CIMGUI_API void igSetCurrentViewport(ImGuiWindow* window,ImGuiViewportP* viewport); CIMGUI_API const ImGuiPlatformMonitor* igGetViewportPlatformMonitor(ImGuiViewport* viewport); -CIMGUI_API void igMarkIniSettingsDirtyNil(void); -CIMGUI_API void igMarkIniSettingsDirtyWindowPtr(ImGuiWindow* window); +CIMGUI_API ImGuiViewportP* igFindHoveredViewportFromPlatformWindowStack(const ImVec2 mouse_platform_pos); +CIMGUI_API void igMarkIniSettingsDirty_Nil(void); +CIMGUI_API void igMarkIniSettingsDirty_WindowPtr(ImGuiWindow* window); CIMGUI_API void igClearIniSettings(void); CIMGUI_API ImGuiWindowSettings* igCreateNewWindowSettings(const char* name); CIMGUI_API ImGuiWindowSettings* igFindWindowSettings(ImGuiID id); CIMGUI_API ImGuiWindowSettings* igFindOrCreateWindowSettings(const char* name); +CIMGUI_API void igAddSettingsHandler(const ImGuiSettingsHandler* handler); +CIMGUI_API void igRemoveSettingsHandler(const char* type_name); CIMGUI_API ImGuiSettingsHandler* igFindSettingsHandler(const char* type_name); -CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll); -CIMGUI_API void igSetScrollXWindowPtr(ImGuiWindow* window,float scroll_x); -CIMGUI_API void igSetScrollYWindowPtr(ImGuiWindow* window,float scroll_y); -CIMGUI_API void igSetScrollFromPosXWindowPtr(ImGuiWindow* window,float local_x,float center_x_ratio); -CIMGUI_API void igSetScrollFromPosYWindowPtr(ImGuiWindow* window,float local_y,float center_y_ratio); +CIMGUI_API void igLocalizeRegisterEntries(const ImGuiLocEntry* entries,int count); +CIMGUI_API const char* igLocalizeGetMsg(ImGuiLocKey key); +CIMGUI_API void igSetScrollX_WindowPtr(ImGuiWindow* window,float scroll_x); +CIMGUI_API void igSetScrollY_WindowPtr(ImGuiWindow* window,float scroll_y); +CIMGUI_API void igSetScrollFromPosX_WindowPtr(ImGuiWindow* window,float local_x,float center_x_ratio); +CIMGUI_API void igSetScrollFromPosY_WindowPtr(ImGuiWindow* window,float local_y,float center_y_ratio); CIMGUI_API void igScrollToItem(ImGuiScrollFlags flags); CIMGUI_API void igScrollToRect(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags); CIMGUI_API void igScrollToRectEx(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags); @@ -3673,8 +4080,8 @@ CIMGUI_API void igKeepAliveID(ImGuiID id); CIMGUI_API void igMarkItemEdited(ImGuiID id); CIMGUI_API void igPushOverrideID(ImGuiID id); CIMGUI_API ImGuiID igGetIDWithSeed(const char* str_id_begin,const char* str_id_end,ImGuiID seed); -CIMGUI_API void igItemSizeVec2(const ImVec2 size,float text_baseline_y); -CIMGUI_API void igItemSizeRect(const ImRect bb,float text_baseline_y); +CIMGUI_API void igItemSize_Vec2(const ImVec2 size,float text_baseline_y); +CIMGUI_API void igItemSize_Rect(const ImRect bb,float text_baseline_y); CIMGUI_API bool igItemAdd(const ImRect bb,ImGuiID id,const ImRect* nav_bb,ImGuiItemFlags extra_flags); CIMGUI_API bool igItemHoverable(const ImRect bb,ImGuiID id); CIMGUI_API bool igIsClippedEx(const ImRect bb,ImGuiID id); @@ -3696,7 +4103,7 @@ CIMGUI_API void igOpenPopupEx(ImGuiID id,ImGuiPopupFlags popup_flags); CIMGUI_API void igClosePopupToLevel(int remaining,bool restore_focus_to_window_under_popup); CIMGUI_API void igClosePopupsOverWindow(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup); CIMGUI_API void igClosePopupsExceptModals(void); -CIMGUI_API bool igIsPopupOpenID(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igIsPopupOpen_ID(ImGuiID id,ImGuiPopupFlags popup_flags); CIMGUI_API bool igBeginPopupEx(ImGuiID id,ImGuiWindowFlags extra_flags); CIMGUI_API void igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags); CIMGUI_API void igGetPopupAllowedExtentRect(ImRect *pOut,ImGuiWindow* window); @@ -3719,25 +4126,42 @@ CIMGUI_API void igNavMoveRequestResolveWithLastItem(ImGuiNavItemData* result); CIMGUI_API void igNavMoveRequestCancel(void); CIMGUI_API void igNavMoveRequestApplyResult(void); CIMGUI_API void igNavMoveRequestTryWrapping(ImGuiWindow* window,ImGuiNavMoveFlags move_flags); -CIMGUI_API float igGetNavInputAmount(ImGuiNavInput n,ImGuiInputReadMode mode); -CIMGUI_API void igGetNavInputAmount2d(ImVec2 *pOut,ImGuiNavDirSourceFlags dir_sources,ImGuiInputReadMode mode,float slow_factor,float fast_factor); -CIMGUI_API int igCalcTypematicRepeatAmount(float t0,float t1,float repeat_delay,float repeat_rate); CIMGUI_API void igActivateItem(ImGuiID id); +CIMGUI_API void igSetNavWindow(ImGuiWindow* window); CIMGUI_API void igSetNavID(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel); -CIMGUI_API void igPushFocusScope(ImGuiID id); -CIMGUI_API void igPopFocusScope(void); -CIMGUI_API ImGuiID igGetFocusedFocusScope(void); -CIMGUI_API ImGuiID igGetFocusScope(void); -CIMGUI_API void igSetItemUsingMouseWheel(void); -CIMGUI_API void igSetActiveIdUsingNavAndKeys(void); -CIMGUI_API bool igIsActiveIdUsingNavDir(ImGuiDir dir); -CIMGUI_API bool igIsActiveIdUsingNavInput(ImGuiNavInput input); -CIMGUI_API bool igIsActiveIdUsingKey(ImGuiKey key); +CIMGUI_API bool igIsNamedKey(ImGuiKey key); +CIMGUI_API bool igIsNamedKeyOrModKey(ImGuiKey key); +CIMGUI_API bool igIsLegacyKey(ImGuiKey key); +CIMGUI_API bool igIsKeyboardKey(ImGuiKey key); +CIMGUI_API bool igIsGamepadKey(ImGuiKey key); +CIMGUI_API bool igIsMouseKey(ImGuiKey key); +CIMGUI_API bool igIsAliasKey(ImGuiKey key); +CIMGUI_API ImGuiKey igConvertSingleModFlagToKey(ImGuiKey key); +CIMGUI_API ImGuiKeyData* igGetKeyData(ImGuiKey key); +CIMGUI_API void igGetKeyChordName(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size); +CIMGUI_API ImGuiKey igMouseButtonToKey(ImGuiMouseButton button); CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button,float lock_threshold); -CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key,bool repeat); -CIMGUI_API bool igIsNavInputDown(ImGuiNavInput n); -CIMGUI_API bool igIsNavInputTest(ImGuiNavInput n,ImGuiInputReadMode rm); -CIMGUI_API ImGuiKeyModFlags igGetMergedKeyModFlags(void); +CIMGUI_API void igGetKeyVector2d(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down); +CIMGUI_API float igGetNavTweakPressedAmount(ImGuiAxis axis); +CIMGUI_API int igCalcTypematicRepeatAmount(float t0,float t1,float repeat_delay,float repeat_rate); +CIMGUI_API void igGetTypematicRepeatRate(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate); +CIMGUI_API void igSetActiveIdUsingAllKeyboardKeys(void); +CIMGUI_API bool igIsActiveIdUsingNavDir(ImGuiDir dir); +CIMGUI_API ImGuiID igGetKeyOwner(ImGuiKey key); +CIMGUI_API void igSetKeyOwner(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API void igSetItemKeyOwner(ImGuiKey key,ImGuiInputFlags flags); +CIMGUI_API bool igTestKeyOwner(ImGuiKey key,ImGuiID owner_id); +CIMGUI_API ImGuiKeyOwnerData* igGetKeyOwnerData(ImGuiKey key); +CIMGUI_API bool igIsKeyDown_ID(ImGuiKey key,ImGuiID owner_id); +CIMGUI_API bool igIsKeyPressed_ID(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igIsKeyReleased_ID(ImGuiKey key,ImGuiID owner_id); +CIMGUI_API bool igIsMouseDown_ID(ImGuiMouseButton button,ImGuiID owner_id); +CIMGUI_API bool igIsMouseClicked_ID(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igIsMouseReleased_ID(ImGuiMouseButton button,ImGuiID owner_id); +CIMGUI_API bool igShortcut(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igSetShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igTestShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id); +CIMGUI_API ImGuiKeyRoutingData* igGetShortcutRoutingData(ImGuiKeyChord key_chord); CIMGUI_API void igDockContextInitialize(ImGuiContext* ctx); CIMGUI_API void igDockContextShutdown(ImGuiContext* ctx); CIMGUI_API void igDockContextClearNodes(ImGuiContext* ctx,ImGuiID root_id,bool clear_settings_refs); @@ -3749,7 +4173,8 @@ CIMGUI_API ImGuiID igDockContextGenNodeID(ImGuiContext* ctx); CIMGUI_API void igDockContextQueueDock(ImGuiContext* ctx,ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,float split_ratio,bool split_outer); CIMGUI_API void igDockContextQueueUndockWindow(ImGuiContext* ctx,ImGuiWindow* window); CIMGUI_API void igDockContextQueueUndockNode(ImGuiContext* ctx,ImGuiDockNode* node); -CIMGUI_API bool igDockContextCalcDropPosForDocking(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos); +CIMGUI_API bool igDockContextCalcDropPosForDocking(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos); +CIMGUI_API ImGuiDockNode* igDockContextFindNodeByID(ImGuiContext* ctx,ImGuiID id); CIMGUI_API bool igDockNodeBeginAmendTabBar(ImGuiDockNode* node); CIMGUI_API void igDockNodeEndAmendTabBar(void); CIMGUI_API ImGuiDockNode* igDockNodeGetRootNode(ImGuiDockNode* node); @@ -3776,9 +4201,14 @@ CIMGUI_API void igDockBuilderCopyDockSpace(ImGuiID src_dockspace_id,ImGuiID dst_ CIMGUI_API void igDockBuilderCopyNode(ImGuiID src_node_id,ImGuiID dst_node_id,ImVector_ImGuiID* out_node_remap_pairs); CIMGUI_API void igDockBuilderCopyWindowSettings(const char* src_name,const char* dst_name); CIMGUI_API void igDockBuilderFinish(ImGuiID node_id); +CIMGUI_API void igPushFocusScope(ImGuiID id); +CIMGUI_API void igPopFocusScope(void); +CIMGUI_API ImGuiID igGetCurrentFocusScope(void); +CIMGUI_API bool igIsDragDropActive(void); CIMGUI_API bool igBeginDragDropTargetCustom(const ImRect bb,ImGuiID id); CIMGUI_API void igClearDragDrop(void); CIMGUI_API bool igIsDragDropPayloadBeingAccepted(void); +CIMGUI_API void igRenderDragDropTargetRect(const ImRect bb); CIMGUI_API void igSetWindowClipRectBeforeSetChannel(ImGuiWindow* window,const ImRect clip_rect); CIMGUI_API void igBeginColumns(const char* str_id,int count,ImGuiOldColumnFlags flags); CIMGUI_API void igEndColumns(void); @@ -3807,7 +4237,9 @@ CIMGUI_API void igTableUpdateBorders(ImGuiTable* table); CIMGUI_API void igTableUpdateColumnsWeightFromWidth(ImGuiTable* table); CIMGUI_API void igTableDrawBorders(ImGuiTable* table); CIMGUI_API void igTableDrawContextMenu(ImGuiTable* table); +CIMGUI_API bool igTableBeginContextMenuPopup(ImGuiTable* table); CIMGUI_API void igTableMergeDrawChannels(ImGuiTable* table); +CIMGUI_API ImGuiTableInstanceData* igTableGetInstanceData(ImGuiTable* table,int instance_no); CIMGUI_API void igTableSortSpecsSanitize(ImGuiTable* table); CIMGUI_API void igTableSortSpecsBuild(ImGuiTable* table); CIMGUI_API ImGuiSortDirection igTableGetColumnNextSortDirection(ImGuiTableColumn* column); @@ -3818,20 +4250,20 @@ CIMGUI_API void igTableEndRow(ImGuiTable* table); CIMGUI_API void igTableBeginCell(ImGuiTable* table,int column_n); CIMGUI_API void igTableEndCell(ImGuiTable* table); CIMGUI_API void igTableGetCellBgRect(ImRect *pOut,const ImGuiTable* table,int column_n); -CIMGUI_API const char* igTableGetColumnNameTablePtr(const ImGuiTable* table,int column_n); +CIMGUI_API const char* igTableGetColumnName_TablePtr(const ImGuiTable* table,int column_n); CIMGUI_API ImGuiID igTableGetColumnResizeID(const ImGuiTable* table,int column_n,int instance_no); CIMGUI_API float igTableGetMaxColumnWidth(const ImGuiTable* table,int column_n); CIMGUI_API void igTableSetColumnWidthAutoSingle(ImGuiTable* table,int column_n); CIMGUI_API void igTableSetColumnWidthAutoAll(ImGuiTable* table); CIMGUI_API void igTableRemove(ImGuiTable* table); -CIMGUI_API void igTableGcCompactTransientBuffersTablePtr(ImGuiTable* table); -CIMGUI_API void igTableGcCompactTransientBuffersTableTempDataPtr(ImGuiTableTempData* table); +CIMGUI_API void igTableGcCompactTransientBuffers_TablePtr(ImGuiTable* table); +CIMGUI_API void igTableGcCompactTransientBuffers_TableTempDataPtr(ImGuiTableTempData* table); CIMGUI_API void igTableGcCompactSettings(void); CIMGUI_API void igTableLoadSettings(ImGuiTable* table); CIMGUI_API void igTableSaveSettings(ImGuiTable* table); CIMGUI_API void igTableResetSettings(ImGuiTable* table); CIMGUI_API ImGuiTableSettings* igTableGetBoundSettings(ImGuiTable* table); -CIMGUI_API void igTableSettingsInstallHandler(ImGuiContext* context); +CIMGUI_API void igTableSettingsAddSettingsHandler(void); CIMGUI_API ImGuiTableSettings* igTableSettingsCreate(ImGuiID id,int columns_count); CIMGUI_API ImGuiTableSettings* igTableSettingsFindByID(ImGuiID id); CIMGUI_API bool igBeginTabBarEx(ImGuiTabBar* tab_bar,const ImRect bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node); @@ -3844,7 +4276,8 @@ CIMGUI_API void igTabBarQueueReorder(ImGuiTabBar* tab_bar,const ImGuiTabItem* ta CIMGUI_API void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,ImVec2 mouse_pos); CIMGUI_API bool igTabBarProcessReorder(ImGuiTabBar* tab_bar); CIMGUI_API bool igTabItemEx(ImGuiTabBar* tab_bar,const char* label,bool* p_open,ImGuiTabItemFlags flags,ImGuiWindow* docked_window); -CIMGUI_API void igTabItemCalcSize(ImVec2 *pOut,const char* label,bool has_close_button); +CIMGUI_API void igTabItemCalcSize_Str(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker); +CIMGUI_API void igTabItemCalcSize_WindowPtr(ImVec2 *pOut,ImGuiWindow* window); CIMGUI_API void igTabItemBackground(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImU32 col); CIMGUI_API void igTabItemLabelAndCloseButton(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImVec2 frame_padding,const char* label,ImGuiID tab_id,ImGuiID close_button_id,bool is_contents_visible,bool* out_just_closed,bool* out_text_clipped); CIMGUI_API void igRenderText(ImVec2 pos,const char* text,const char* text_end,bool hide_text_after_hash); @@ -3857,14 +4290,14 @@ CIMGUI_API void igRenderFrameBorder(ImVec2 p_min,ImVec2 p_max,float rounding); CIMGUI_API void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,ImDrawFlags flags); CIMGUI_API void igRenderNavHighlight(const ImRect bb,ImGuiID id,ImGuiNavHighlightFlags flags); CIMGUI_API const char* igFindRenderedTextEnd(const char* text,const char* text_end); +CIMGUI_API void igRenderMouseCursor(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow); CIMGUI_API void igRenderArrow(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale); CIMGUI_API void igRenderBullet(ImDrawList* draw_list,ImVec2 pos,ImU32 col); CIMGUI_API void igRenderCheckMark(ImDrawList* draw_list,ImVec2 pos,ImU32 col,float sz); -CIMGUI_API void igRenderMouseCursor(ImDrawList* draw_list,ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow); CIMGUI_API void igRenderArrowPointingAt(ImDrawList* draw_list,ImVec2 pos,ImVec2 half_sz,ImGuiDir direction,ImU32 col); CIMGUI_API void igRenderArrowDockMenu(ImDrawList* draw_list,ImVec2 p_min,float sz,ImU32 col); CIMGUI_API void igRenderRectFilledRangeH(ImDrawList* draw_list,const ImRect rect,ImU32 col,float x_start_norm,float x_end_norm,float rounding); -CIMGUI_API void igRenderRectFilledWithHole(ImDrawList* draw_list,ImRect outer,ImRect inner,ImU32 col,float rounding); +CIMGUI_API void igRenderRectFilledWithHole(ImDrawList* draw_list,const ImRect outer,const ImRect inner,ImU32 col,float rounding); CIMGUI_API ImDrawFlags igCalcRoundingFlagsForRectInRect(const ImRect r_in,const ImRect r_outer,float threshold); CIMGUI_API void igTextEx(const char* text,const char* text_end,ImGuiTextFlags flags); CIMGUI_API bool igButtonEx(const char* label,const ImVec2 size_arg,ImGuiButtonFlags flags); @@ -3873,25 +4306,26 @@ CIMGUI_API bool igCollapseButton(ImGuiID id,const ImVec2 pos,ImGuiDockNode* dock CIMGUI_API bool igArrowButtonEx(const char* str_id,ImGuiDir dir,ImVec2 size_arg,ImGuiButtonFlags flags); CIMGUI_API void igScrollbar(ImGuiAxis axis); CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,ImS64* p_scroll_v,ImS64 avail_v,ImS64 contents_v,ImDrawFlags flags); -CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec2 padding,const ImVec4 bg_col,const ImVec4 tint_col); +CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col); CIMGUI_API void igGetWindowScrollbarRect(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis); CIMGUI_API ImGuiID igGetWindowScrollbarID(ImGuiWindow* window,ImGuiAxis axis); CIMGUI_API ImGuiID igGetWindowResizeCornerID(ImGuiWindow* window,int n); CIMGUI_API ImGuiID igGetWindowResizeBorderID(ImGuiWindow* window,ImGuiDir dir); CIMGUI_API void igSeparatorEx(ImGuiSeparatorFlags flags); -CIMGUI_API bool igCheckboxFlagsS64Ptr(const char* label,ImS64* flags,ImS64 flags_value); -CIMGUI_API bool igCheckboxFlagsU64Ptr(const char* label,ImU64* flags,ImU64 flags_value); +CIMGUI_API bool igCheckboxFlags_S64Ptr(const char* label,ImS64* flags,ImS64 flags_value); +CIMGUI_API bool igCheckboxFlags_U64Ptr(const char* label,ImU64* flags,ImU64 flags_value); CIMGUI_API bool igButtonBehavior(const ImRect bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags); CIMGUI_API bool igDragBehavior(ImGuiID id,ImGuiDataType data_type,void* p_v,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); CIMGUI_API bool igSliderBehavior(const ImRect bb,ImGuiID id,ImGuiDataType data_type,void* p_v,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags,ImRect* out_grab_bb); CIMGUI_API bool igSplitterBehavior(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* size1,float* size2,float min_size1,float min_size2,float hover_extend,float hover_visibility_delay,ImU32 bg_col); CIMGUI_API bool igTreeNodeBehavior(ImGuiID id,ImGuiTreeNodeFlags flags,const char* label,const char* label_end); -CIMGUI_API bool igTreeNodeBehaviorIsOpen(ImGuiID id,ImGuiTreeNodeFlags flags); CIMGUI_API void igTreePushOverrideID(ImGuiID id); +CIMGUI_API void igTreeNodeSetOpen(ImGuiID id,bool open); +CIMGUI_API bool igTreeNodeUpdateNextOpen(ImGuiID id,ImGuiTreeNodeFlags flags); CIMGUI_API const ImGuiDataTypeInfo* igDataTypeGetInfo(ImGuiDataType data_type); CIMGUI_API int igDataTypeFormatString(char* buf,int buf_size,ImGuiDataType data_type,const void* p_data,const char* format); CIMGUI_API void igDataTypeApplyOp(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2); -CIMGUI_API bool igDataTypeApplyOpFromText(const char* buf,const char* initial_value_buf,ImGuiDataType data_type,void* p_data,const char* format); +CIMGUI_API bool igDataTypeApplyFromText(const char* buf,ImGuiDataType data_type,void* p_data,const char* format); CIMGUI_API int igDataTypeCompare(ImGuiDataType data_type,const void* arg_1,const void* arg_2); CIMGUI_API bool igDataTypeClamp(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max); CIMGUI_API bool igInputTextEx(const char* label,const char* hint,char* buf,int buf_size,const ImVec2 size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); @@ -3908,8 +4342,14 @@ CIMGUI_API void igShadeVertsLinearUV(ImDrawList* draw_list,int vert_start_idx,in CIMGUI_API void igGcCompactTransientMiscBuffers(void); CIMGUI_API void igGcCompactTransientWindowBuffers(ImGuiWindow* window); CIMGUI_API void igGcAwakeTransientWindowBuffers(ImGuiWindow* window); +CIMGUI_API void igDebugLog(const char* fmt,...); +CIMGUI_API void igDebugLogV(const char* fmt,va_list args); CIMGUI_API void igErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback,void* user_data); CIMGUI_API void igErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback,void* user_data); +CIMGUI_API void igErrorCheckUsingSetCursorPosToExtendParentBoundaries(void); +CIMGUI_API void igDebugLocateItem(ImGuiID target_id); +CIMGUI_API void igDebugLocateItemOnHover(ImGuiID target_id); +CIMGUI_API void igDebugLocateItemResolveWithLastItem(void); CIMGUI_API void igDebugDrawItemRect(ImU32 col); CIMGUI_API void igDebugStartItemPicker(void); CIMGUI_API void igShowFontAtlas(ImFontAtlas* atlas); @@ -3919,16 +4359,19 @@ CIMGUI_API void igDebugNodeDockNode(ImGuiDockNode* node,const char* label); CIMGUI_API void igDebugNodeDrawList(ImGuiWindow* window,ImGuiViewportP* viewport,const ImDrawList* draw_list,const char* label); CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb); CIMGUI_API void igDebugNodeFont(ImFont* font); +CIMGUI_API void igDebugNodeFontGlyph(ImFont* font,const ImFontGlyph* glyph); CIMGUI_API void igDebugNodeStorage(ImGuiStorage* storage,const char* label); CIMGUI_API void igDebugNodeTabBar(ImGuiTabBar* tab_bar,const char* label); CIMGUI_API void igDebugNodeTable(ImGuiTable* table); CIMGUI_API void igDebugNodeTableSettings(ImGuiTableSettings* settings); +CIMGUI_API void igDebugNodeInputTextState(ImGuiInputTextState* state); CIMGUI_API void igDebugNodeWindow(ImGuiWindow* window,const char* label); CIMGUI_API void igDebugNodeWindowSettings(ImGuiWindowSettings* settings); CIMGUI_API void igDebugNodeWindowsList(ImVector_ImGuiWindowPtr* windows,const char* label); CIMGUI_API void igDebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows,int windows_size,ImGuiWindow* parent_in_begin_stack); CIMGUI_API void igDebugNodeViewport(ImGuiViewportP* viewport); CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb); +CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key,bool repeat); CIMGUI_API const ImFontBuilderIO* igImFontAtlasGetBuilderForStbTruetype(void); CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas); CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent); @@ -3946,12 +4389,12 @@ CIMGUI_API void igLogText(CONST char *fmt, ...); //no appendfV CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...); //for getting FLT_MAX in bindings -CIMGUI_API float igGET_FLT_MAX(); +CIMGUI_API float igGET_FLT_MAX(void); //for getting FLT_MIN in bindings -CIMGUI_API float igGET_FLT_MIN(); +CIMGUI_API float igGET_FLT_MIN(void); -CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create(); +CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create(void); CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self); CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p); CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p); diff --git a/imgui-sys/third-party/imgui-docking/cimgui_impl.h b/imgui-sys/third-party/imgui-docking/cimgui_impl.h index e69de29bb..597cca0c7 100644 --- a/imgui-sys/third-party/imgui-docking/cimgui_impl.h +++ b/imgui-sys/third-party/imgui-docking/cimgui_impl.h @@ -0,0 +1,60 @@ +#ifdef CIMGUI_USE_GLFW + +typedef struct GLFWwindow GLFWwindow; +typedef struct GLFWmonitor GLFWmonitor; +struct GLFWwindow; +struct GLFWmonitor;CIMGUI_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window,bool install_callbacks); +CIMGUI_API void ImGui_ImplGlfw_Shutdown(void); +CIMGUI_API void ImGui_ImplGlfw_NewFrame(void); +CIMGUI_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window,int focused); +CIMGUI_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window,int entered); +CIMGUI_API void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window,double x,double y); +CIMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window,int button,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window,double xoffset,double yoffset); +CIMGUI_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window,int key,int scancode,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window,unsigned int c); +CIMGUI_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor,int event); + +#endif +#ifdef CIMGUI_USE_OPENGL3 +CIMGUI_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version); +CIMGUI_API void ImGui_ImplOpenGL3_Shutdown(void); +CIMGUI_API void ImGui_ImplOpenGL3_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API bool ImGui_ImplOpenGL3_CreateFontsTexture(void); +CIMGUI_API void ImGui_ImplOpenGL3_DestroyFontsTexture(void); +CIMGUI_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(void); +CIMGUI_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(void); + +#endif +#ifdef CIMGUI_USE_OPENGL2 +CIMGUI_API bool ImGui_ImplOpenGL2_Init(void); +CIMGUI_API void ImGui_ImplOpenGL2_Shutdown(void); +CIMGUI_API void ImGui_ImplOpenGL2_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API bool ImGui_ImplOpenGL2_CreateFontsTexture(void); +CIMGUI_API void ImGui_ImplOpenGL2_DestroyFontsTexture(void); +CIMGUI_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(void); +CIMGUI_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(void); + +#endif +#ifdef CIMGUI_USE_SDL + +typedef struct SDL_Window SDL_Window; +typedef struct SDL_Renderer SDL_Renderer; +struct SDL_Window; +struct SDL_Renderer; +typedef union SDL_Event SDL_Event;CIMGUI_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window,void* sdl_gl_context); +CIMGUI_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer); +CIMGUI_API void ImGui_ImplSDL2_Shutdown(void); +CIMGUI_API void ImGui_ImplSDL2_NewFrame(void); +CIMGUI_API bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event); + +#endif diff --git a/imgui-sys/third-party/imgui-docking/definitions.json b/imgui-sys/third-party/imgui-docking/definitions.json index f15cb177c..bd455ebfa 100644 --- a/imgui-sys/third-party/imgui-docking/definitions.json +++ b/imgui-sys/third-party/imgui-docking/definitions.json @@ -13,7 +13,7 @@ "cimguiname": "ImBitArray_ClearAllBits", "defaults": {}, "funcname": "ClearAllBits", - "location": "imgui_internal:560", + "location": "imgui_internal:582", "ov_cimguiname": "ImBitArray_ClearAllBits", "ret": "void", "signature": "()", @@ -39,7 +39,7 @@ "cimguiname": "ImBitArray_ClearBit", "defaults": {}, "funcname": "ClearBit", - "location": "imgui_internal:564", + "location": "imgui_internal:586", "ov_cimguiname": "ImBitArray_ClearBit", "ret": "void", "signature": "(int)", @@ -57,7 +57,7 @@ "constructor": true, "defaults": {}, "funcname": "ImBitArray", - "location": "imgui_internal:559", + "location": "imgui_internal:581", "ov_cimguiname": "ImBitArray_ImBitArray", "signature": "()", "stname": "ImBitArray", @@ -78,7 +78,7 @@ "cimguiname": "ImBitArray_SetAllBits", "defaults": {}, "funcname": "SetAllBits", - "location": "imgui_internal:561", + "location": "imgui_internal:583", "ov_cimguiname": "ImBitArray_SetAllBits", "ret": "void", "signature": "()", @@ -104,7 +104,7 @@ "cimguiname": "ImBitArray_SetBit", "defaults": {}, "funcname": "SetBit", - "location": "imgui_internal:563", + "location": "imgui_internal:585", "ov_cimguiname": "ImBitArray_SetBit", "ret": "void", "signature": "(int)", @@ -134,7 +134,7 @@ "cimguiname": "ImBitArray_SetBitRange", "defaults": {}, "funcname": "SetBitRange", - "location": "imgui_internal:565", + "location": "imgui_internal:587", "ov_cimguiname": "ImBitArray_SetBitRange", "ret": "void", "signature": "(int,int)", @@ -160,7 +160,7 @@ "cimguiname": "ImBitArray_TestBit", "defaults": {}, "funcname": "TestBit", - "location": "imgui_internal:562", + "location": "imgui_internal:584", "ov_cimguiname": "ImBitArray_TestBit", "ret": "bool", "signature": "(int)const", @@ -202,7 +202,7 @@ "cimguiname": "ImBitVector_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui_internal:574", + "location": "imgui_internal:597", "ov_cimguiname": "ImBitVector_Clear", "ret": "void", "signature": "()", @@ -227,7 +227,7 @@ "cimguiname": "ImBitVector_ClearBit", "defaults": {}, "funcname": "ClearBit", - "location": "imgui_internal:577", + "location": "imgui_internal:600", "ov_cimguiname": "ImBitVector_ClearBit", "ret": "void", "signature": "(int)", @@ -252,7 +252,7 @@ "cimguiname": "ImBitVector_Create", "defaults": {}, "funcname": "Create", - "location": "imgui_internal:573", + "location": "imgui_internal:596", "ov_cimguiname": "ImBitVector_Create", "ret": "void", "signature": "(int)", @@ -277,7 +277,7 @@ "cimguiname": "ImBitVector_SetBit", "defaults": {}, "funcname": "SetBit", - "location": "imgui_internal:576", + "location": "imgui_internal:599", "ov_cimguiname": "ImBitVector_SetBit", "ret": "void", "signature": "(int)", @@ -302,7 +302,7 @@ "cimguiname": "ImBitVector_TestBit", "defaults": {}, "funcname": "TestBit", - "location": "imgui_internal:575", + "location": "imgui_internal:598", "ov_cimguiname": "ImBitVector_TestBit", "ret": "bool", "signature": "(int)const", @@ -327,7 +327,7 @@ "cimguiname": "ImChunkStream_alloc_chunk", "defaults": {}, "funcname": "alloc_chunk", - "location": "imgui_internal:680", + "location": "imgui_internal:703", "ov_cimguiname": "ImChunkStream_alloc_chunk", "ret": "T*", "signature": "(size_t)", @@ -349,7 +349,7 @@ "cimguiname": "ImChunkStream_begin", "defaults": {}, "funcname": "begin", - "location": "imgui_internal:681", + "location": "imgui_internal:704", "ov_cimguiname": "ImChunkStream_begin", "ret": "T*", "signature": "()", @@ -375,7 +375,7 @@ "cimguiname": "ImChunkStream_chunk_size", "defaults": {}, "funcname": "chunk_size", - "location": "imgui_internal:683", + "location": "imgui_internal:706", "ov_cimguiname": "ImChunkStream_chunk_size", "ret": "int", "signature": "(const T*)", @@ -397,7 +397,7 @@ "cimguiname": "ImChunkStream_clear", "defaults": {}, "funcname": "clear", - "location": "imgui_internal:677", + "location": "imgui_internal:700", "ov_cimguiname": "ImChunkStream_clear", "ret": "void", "signature": "()", @@ -419,7 +419,7 @@ "cimguiname": "ImChunkStream_empty", "defaults": {}, "funcname": "empty", - "location": "imgui_internal:678", + "location": "imgui_internal:701", "ov_cimguiname": "ImChunkStream_empty", "ret": "bool", "signature": "()const", @@ -441,7 +441,7 @@ "cimguiname": "ImChunkStream_end", "defaults": {}, "funcname": "end", - "location": "imgui_internal:684", + "location": "imgui_internal:707", "ov_cimguiname": "ImChunkStream_end", "ret": "T*", "signature": "()", @@ -467,7 +467,7 @@ "cimguiname": "ImChunkStream_next_chunk", "defaults": {}, "funcname": "next_chunk", - "location": "imgui_internal:682", + "location": "imgui_internal:705", "ov_cimguiname": "ImChunkStream_next_chunk", "ret": "T*", "signature": "(T*)", @@ -493,7 +493,7 @@ "cimguiname": "ImChunkStream_offset_from_ptr", "defaults": {}, "funcname": "offset_from_ptr", - "location": "imgui_internal:685", + "location": "imgui_internal:708", "ov_cimguiname": "ImChunkStream_offset_from_ptr", "ret": "int", "signature": "(const T*)", @@ -519,7 +519,7 @@ "cimguiname": "ImChunkStream_ptr_from_offset", "defaults": {}, "funcname": "ptr_from_offset", - "location": "imgui_internal:686", + "location": "imgui_internal:709", "ov_cimguiname": "ImChunkStream_ptr_from_offset", "ret": "T*", "signature": "(int)", @@ -541,7 +541,7 @@ "cimguiname": "ImChunkStream_size", "defaults": {}, "funcname": "size", - "location": "imgui_internal:679", + "location": "imgui_internal:702", "ov_cimguiname": "ImChunkStream_size", "ret": "int", "signature": "()const", @@ -551,7 +551,7 @@ ], "ImChunkStream_swap": [ { - "args": "(ImChunkStream* self,ImChunkStream* rhs)", + "args": "(ImChunkStream* self,ImChunkStream_T * rhs)", "argsT": [ { "name": "self", @@ -560,7 +560,7 @@ { "name": "rhs", "reftoptr": true, - "type": "ImChunkStream*" + "type": "ImChunkStream_T *" } ], "argsoriginal": "(ImChunkStream& rhs)", @@ -568,10 +568,10 @@ "cimguiname": "ImChunkStream_swap", "defaults": {}, "funcname": "swap", - "location": "imgui_internal:687", + "location": "imgui_internal:710", "ov_cimguiname": "ImChunkStream_swap", "ret": "void", - "signature": "(ImChunkStream*)", + "signature": "(ImChunkStream_T *)", "stname": "ImChunkStream", "templated": true } @@ -609,7 +609,7 @@ }, "funcname": "HSV", "is_static_function": true, - "location": "imgui:2361", + "location": "imgui:2472", "nonUDT": 1, "ov_cimguiname": "ImColor_HSV", "ret": "void", @@ -627,113 +627,113 @@ "constructor": true, "defaults": {}, "funcname": "ImColor", - "location": "imgui:2351", - "ov_cimguiname": "ImColor_ImColorNil", + "location": "imgui:2462", + "ov_cimguiname": "ImColor_ImColor_Nil", "signature": "()", "stname": "ImColor" }, { - "args": "(int r,int g,int b,int a)", + "args": "(float r,float g,float b,float a)", "argsT": [ { "name": "r", - "type": "int" + "type": "float" }, { "name": "g", - "type": "int" + "type": "float" }, { "name": "b", - "type": "int" + "type": "float" }, { "name": "a", - "type": "int" + "type": "float" } ], - "argsoriginal": "(int r,int g,int b,int a=255)", + "argsoriginal": "(float r,float g,float b,float a=1.0f)", "call_args": "(r,g,b,a)", "cimguiname": "ImColor_ImColor", "constructor": true, "defaults": { - "a": "255" + "a": "1.0f" }, "funcname": "ImColor", - "location": "imgui:2352", - "ov_cimguiname": "ImColor_ImColorInt", - "signature": "(int,int,int,int)", + "location": "imgui:2463", + "ov_cimguiname": "ImColor_ImColor_Float", + "signature": "(float,float,float,float)", "stname": "ImColor" }, { - "args": "(ImU32 rgba)", + "args": "(const ImVec4 col)", "argsT": [ { - "name": "rgba", - "type": "ImU32" + "name": "col", + "type": "const ImVec4" } ], - "argsoriginal": "(ImU32 rgba)", - "call_args": "(rgba)", + "argsoriginal": "(const ImVec4& col)", + "call_args": "(col)", "cimguiname": "ImColor_ImColor", "constructor": true, "defaults": {}, "funcname": "ImColor", - "location": "imgui:2353", - "ov_cimguiname": "ImColor_ImColorU32", - "signature": "(ImU32)", + "location": "imgui:2464", + "ov_cimguiname": "ImColor_ImColor_Vec4", + "signature": "(const ImVec4)", "stname": "ImColor" }, { - "args": "(float r,float g,float b,float a)", + "args": "(int r,int g,int b,int a)", "argsT": [ { "name": "r", - "type": "float" + "type": "int" }, { "name": "g", - "type": "float" + "type": "int" }, { "name": "b", - "type": "float" + "type": "int" }, { "name": "a", - "type": "float" + "type": "int" } ], - "argsoriginal": "(float r,float g,float b,float a=1.0f)", + "argsoriginal": "(int r,int g,int b,int a=255)", "call_args": "(r,g,b,a)", "cimguiname": "ImColor_ImColor", "constructor": true, "defaults": { - "a": "1.0f" + "a": "255" }, "funcname": "ImColor", - "location": "imgui:2354", - "ov_cimguiname": "ImColor_ImColorFloat", - "signature": "(float,float,float,float)", + "location": "imgui:2465", + "ov_cimguiname": "ImColor_ImColor_Int", + "signature": "(int,int,int,int)", "stname": "ImColor" }, { - "args": "(const ImVec4 col)", + "args": "(ImU32 rgba)", "argsT": [ { - "name": "col", - "type": "const ImVec4" + "name": "rgba", + "type": "ImU32" } ], - "argsoriginal": "(const ImVec4& col)", - "call_args": "(col)", + "argsoriginal": "(ImU32 rgba)", + "call_args": "(rgba)", "cimguiname": "ImColor_ImColor", "constructor": true, "defaults": {}, "funcname": "ImColor", - "location": "imgui:2355", - "ov_cimguiname": "ImColor_ImColorVec4", - "signature": "(const ImVec4)", + "location": "imgui:2466", + "ov_cimguiname": "ImColor_ImColor_U32", + "signature": "(ImU32)", "stname": "ImColor" } ], @@ -769,7 +769,7 @@ "a": "1.0f" }, "funcname": "SetHSV", - "location": "imgui:2360", + "location": "imgui:2471", "ov_cimguiname": "ImColor_SetHSV", "ret": "void", "signature": "(float,float,float,float)", @@ -809,7 +809,7 @@ "cimguiname": "ImDrawCmd_GetTexID", "defaults": {}, "funcname": "GetTexID", - "location": "imgui:2409", + "location": "imgui:2520", "ov_cimguiname": "ImDrawCmd_GetTexID", "ret": "ImTextureID", "signature": "()const", @@ -826,7 +826,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawCmd", - "location": "imgui:2406", + "location": "imgui:2517", "ov_cimguiname": "ImDrawCmd_ImDrawCmd", "signature": "()", "stname": "ImDrawCmd" @@ -865,7 +865,7 @@ "cimguiname": "ImDrawDataBuilder_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui_internal:747", + "location": "imgui_internal:786", "ov_cimguiname": "ImDrawDataBuilder_Clear", "ret": "void", "signature": "()", @@ -886,7 +886,7 @@ "cimguiname": "ImDrawDataBuilder_ClearFreeMemory", "defaults": {}, "funcname": "ClearFreeMemory", - "location": "imgui_internal:748", + "location": "imgui_internal:787", "ov_cimguiname": "ImDrawDataBuilder_ClearFreeMemory", "ret": "void", "signature": "()", @@ -907,7 +907,7 @@ "cimguiname": "ImDrawDataBuilder_FlattenIntoSingleLayer", "defaults": {}, "funcname": "FlattenIntoSingleLayer", - "location": "imgui_internal:750", + "location": "imgui_internal:789", "ov_cimguiname": "ImDrawDataBuilder_FlattenIntoSingleLayer", "ret": "void", "signature": "()", @@ -928,7 +928,7 @@ "cimguiname": "ImDrawDataBuilder_GetDrawListCount", "defaults": {}, "funcname": "GetDrawListCount", - "location": "imgui_internal:749", + "location": "imgui_internal:788", "ov_cimguiname": "ImDrawDataBuilder_GetDrawListCount", "ret": "int", "signature": "()const", @@ -949,7 +949,7 @@ "cimguiname": "ImDrawData_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2641", + "location": "imgui:2754", "ov_cimguiname": "ImDrawData_Clear", "ret": "void", "signature": "()", @@ -970,7 +970,7 @@ "cimguiname": "ImDrawData_DeIndexAllBuffers", "defaults": {}, "funcname": "DeIndexAllBuffers", - "location": "imgui:2642", + "location": "imgui:2755", "ov_cimguiname": "ImDrawData_DeIndexAllBuffers", "ret": "void", "signature": "()", @@ -987,7 +987,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawData", - "location": "imgui:2640", + "location": "imgui:2753", "ov_cimguiname": "ImDrawData_ImDrawData", "signature": "()", "stname": "ImDrawData" @@ -1011,7 +1011,7 @@ "cimguiname": "ImDrawData_ScaleClipRects", "defaults": {}, "funcname": "ScaleClipRects", - "location": "imgui:2643", + "location": "imgui:2756", "ov_cimguiname": "ImDrawData_ScaleClipRects", "ret": "void", "signature": "(const ImVec2)", @@ -1047,7 +1047,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawListSharedData", - "location": "imgui_internal:739", + "location": "imgui_internal:778", "ov_cimguiname": "ImDrawListSharedData_ImDrawListSharedData", "signature": "()", "stname": "ImDrawListSharedData" @@ -1071,7 +1071,7 @@ "cimguiname": "ImDrawListSharedData_SetCircleTessellationMaxError", "defaults": {}, "funcname": "SetCircleTessellationMaxError", - "location": "imgui_internal:740", + "location": "imgui_internal:779", "ov_cimguiname": "ImDrawListSharedData_SetCircleTessellationMaxError", "ret": "void", "signature": "(float)", @@ -1111,7 +1111,7 @@ "cimguiname": "ImDrawListSplitter_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2454", + "location": "imgui:2565", "ov_cimguiname": "ImDrawListSplitter_Clear", "ret": "void", "signature": "()", @@ -1132,7 +1132,7 @@ "cimguiname": "ImDrawListSplitter_ClearFreeMemory", "defaults": {}, "funcname": "ClearFreeMemory", - "location": "imgui:2455", + "location": "imgui:2566", "ov_cimguiname": "ImDrawListSplitter_ClearFreeMemory", "ret": "void", "signature": "()", @@ -1149,7 +1149,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawListSplitter", - "location": "imgui:2452", + "location": "imgui:2563", "ov_cimguiname": "ImDrawListSplitter_ImDrawListSplitter", "signature": "()", "stname": "ImDrawListSplitter" @@ -1173,7 +1173,7 @@ "cimguiname": "ImDrawListSplitter_Merge", "defaults": {}, "funcname": "Merge", - "location": "imgui:2457", + "location": "imgui:2568", "ov_cimguiname": "ImDrawListSplitter_Merge", "ret": "void", "signature": "(ImDrawList*)", @@ -1202,7 +1202,7 @@ "cimguiname": "ImDrawListSplitter_SetCurrentChannel", "defaults": {}, "funcname": "SetCurrentChannel", - "location": "imgui:2458", + "location": "imgui:2569", "ov_cimguiname": "ImDrawListSplitter_SetCurrentChannel", "ret": "void", "signature": "(ImDrawList*,int)", @@ -1231,7 +1231,7 @@ "cimguiname": "ImDrawListSplitter_Split", "defaults": {}, "funcname": "Split", - "location": "imgui:2456", + "location": "imgui:2567", "ov_cimguiname": "ImDrawListSplitter_Split", "ret": "void", "signature": "(ImDrawList*,int)", @@ -1251,7 +1251,7 @@ "cimguiname": "ImDrawListSplitter_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2453", + "location": "imgui:2564", "ov_cimguiname": "ImDrawListSplitter_destroy", "realdestructor": true, "ret": "void", @@ -1303,7 +1303,7 @@ "num_segments": "0" }, "funcname": "AddBezierCubic", - "location": "imgui:2556", + "location": "imgui:2668", "ov_cimguiname": "ImDrawList_AddBezierCubic", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", @@ -1350,7 +1350,7 @@ "num_segments": "0" }, "funcname": "AddBezierQuadratic", - "location": "imgui:2557", + "location": "imgui:2669", "ov_cimguiname": "ImDrawList_AddBezierQuadratic", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", @@ -1379,7 +1379,7 @@ "cimguiname": "ImDrawList_AddCallback", "defaults": {}, "funcname": "AddCallback", - "location": "imgui:2580", + "location": "imgui:2693", "ov_cimguiname": "ImDrawList_AddCallback", "ret": "void", "signature": "(ImDrawCallback,void*)", @@ -1423,7 +1423,7 @@ "thickness": "1.0f" }, "funcname": "AddCircle", - "location": "imgui:2548", + "location": "imgui:2660", "ov_cimguiname": "ImDrawList_AddCircle", "ret": "void", "signature": "(const ImVec2,float,ImU32,int,float)", @@ -1462,7 +1462,7 @@ "num_segments": "0" }, "funcname": "AddCircleFilled", - "location": "imgui:2549", + "location": "imgui:2661", "ov_cimguiname": "ImDrawList_AddCircleFilled", "ret": "void", "signature": "(const ImVec2,float,ImU32,int)", @@ -1495,7 +1495,7 @@ "cimguiname": "ImDrawList_AddConvexPolyFilled", "defaults": {}, "funcname": "AddConvexPolyFilled", - "location": "imgui:2555", + "location": "imgui:2667", "ov_cimguiname": "ImDrawList_AddConvexPolyFilled", "ret": "void", "signature": "(const ImVec2*,int,ImU32)", @@ -1516,7 +1516,7 @@ "cimguiname": "ImDrawList_AddDrawCmd", "defaults": {}, "funcname": "AddDrawCmd", - "location": "imgui:2581", + "location": "imgui:2694", "ov_cimguiname": "ImDrawList_AddDrawCmd", "ret": "void", "signature": "()", @@ -1565,7 +1565,7 @@ "uv_min": "ImVec2(0,0)" }, "funcname": "AddImage", - "location": "imgui:2563", + "location": "imgui:2675", "ov_cimguiname": "ImDrawList_AddImage", "ret": "void", "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -1632,7 +1632,7 @@ "uv4": "ImVec2(0,1)" }, "funcname": "AddImageQuad", - "location": "imgui:2564", + "location": "imgui:2676", "ov_cimguiname": "ImDrawList_AddImageQuad", "ret": "void", "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -1687,7 +1687,7 @@ "flags": "0" }, "funcname": "AddImageRounded", - "location": "imgui:2565", + "location": "imgui:2677", "ov_cimguiname": "ImDrawList_AddImageRounded", "ret": "void", "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", @@ -1726,7 +1726,7 @@ "thickness": "1.0f" }, "funcname": "AddLine", - "location": "imgui:2540", + "location": "imgui:2652", "ov_cimguiname": "ImDrawList_AddLine", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,float)", @@ -1769,7 +1769,7 @@ "thickness": "1.0f" }, "funcname": "AddNgon", - "location": "imgui:2550", + "location": "imgui:2662", "ov_cimguiname": "ImDrawList_AddNgon", "ret": "void", "signature": "(const ImVec2,float,ImU32,int,float)", @@ -1806,7 +1806,7 @@ "cimguiname": "ImDrawList_AddNgonFilled", "defaults": {}, "funcname": "AddNgonFilled", - "location": "imgui:2551", + "location": "imgui:2663", "ov_cimguiname": "ImDrawList_AddNgonFilled", "ret": "void", "signature": "(const ImVec2,float,ImU32,int)", @@ -1847,7 +1847,7 @@ "cimguiname": "ImDrawList_AddPolyline", "defaults": {}, "funcname": "AddPolyline", - "location": "imgui:2554", + "location": "imgui:2666", "ov_cimguiname": "ImDrawList_AddPolyline", "ret": "void", "signature": "(const ImVec2*,int,ImU32,ImDrawFlags,float)", @@ -1894,7 +1894,7 @@ "thickness": "1.0f" }, "funcname": "AddQuad", - "location": "imgui:2544", + "location": "imgui:2656", "ov_cimguiname": "ImDrawList_AddQuad", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)", @@ -1935,7 +1935,7 @@ "cimguiname": "ImDrawList_AddQuadFilled", "defaults": {}, "funcname": "AddQuadFilled", - "location": "imgui:2545", + "location": "imgui:2657", "ov_cimguiname": "ImDrawList_AddQuadFilled", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -1984,7 +1984,7 @@ "thickness": "1.0f" }, "funcname": "AddRect", - "location": "imgui:2541", + "location": "imgui:2653", "ov_cimguiname": "ImDrawList_AddRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)", @@ -2028,7 +2028,7 @@ "rounding": "0.0f" }, "funcname": "AddRectFilled", - "location": "imgui:2542", + "location": "imgui:2654", "ov_cimguiname": "ImDrawList_AddRectFilled", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", @@ -2073,7 +2073,7 @@ "cimguiname": "ImDrawList_AddRectFilledMultiColor", "defaults": {}, "funcname": "AddRectFilledMultiColor", - "location": "imgui:2543", + "location": "imgui:2655", "ov_cimguiname": "ImDrawList_AddRectFilledMultiColor", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)", @@ -2112,8 +2112,8 @@ "text_end": "NULL" }, "funcname": "AddText", - "location": "imgui:2552", - "ov_cimguiname": "ImDrawList_AddTextVec2", + "location": "imgui:2664", + "ov_cimguiname": "ImDrawList_AddText_Vec2", "ret": "void", "signature": "(const ImVec2,ImU32,const char*,const char*)", "stname": "ImDrawList" @@ -2167,8 +2167,8 @@ "wrap_width": "0.0f" }, "funcname": "AddText", - "location": "imgui:2553", - "ov_cimguiname": "ImDrawList_AddTextFontPtr", + "location": "imgui:2665", + "ov_cimguiname": "ImDrawList_AddText_FontPtr", "ret": "void", "signature": "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)", "stname": "ImDrawList" @@ -2210,7 +2210,7 @@ "thickness": "1.0f" }, "funcname": "AddTriangle", - "location": "imgui:2546", + "location": "imgui:2658", "ov_cimguiname": "ImDrawList_AddTriangle", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)", @@ -2247,7 +2247,7 @@ "cimguiname": "ImDrawList_AddTriangleFilled", "defaults": {}, "funcname": "AddTriangleFilled", - "location": "imgui:2547", + "location": "imgui:2659", "ov_cimguiname": "ImDrawList_AddTriangleFilled", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -2268,7 +2268,7 @@ "cimguiname": "ImDrawList_ChannelsMerge", "defaults": {}, "funcname": "ChannelsMerge", - "location": "imgui:2591", + "location": "imgui:2704", "ov_cimguiname": "ImDrawList_ChannelsMerge", "ret": "void", "signature": "()", @@ -2293,7 +2293,7 @@ "cimguiname": "ImDrawList_ChannelsSetCurrent", "defaults": {}, "funcname": "ChannelsSetCurrent", - "location": "imgui:2592", + "location": "imgui:2705", "ov_cimguiname": "ImDrawList_ChannelsSetCurrent", "ret": "void", "signature": "(int)", @@ -2318,7 +2318,7 @@ "cimguiname": "ImDrawList_ChannelsSplit", "defaults": {}, "funcname": "ChannelsSplit", - "location": "imgui:2590", + "location": "imgui:2703", "ov_cimguiname": "ImDrawList_ChannelsSplit", "ret": "void", "signature": "(int)", @@ -2339,7 +2339,7 @@ "cimguiname": "ImDrawList_CloneOutput", "defaults": {}, "funcname": "CloneOutput", - "location": "imgui:2582", + "location": "imgui:2695", "ov_cimguiname": "ImDrawList_CloneOutput", "ret": "ImDrawList*", "signature": "()const", @@ -2364,7 +2364,7 @@ "cimguiname": "ImDrawList_GetClipRectMax", "defaults": {}, "funcname": "GetClipRectMax", - "location": "imgui:2532", + "location": "imgui:2643", "nonUDT": 1, "ov_cimguiname": "ImDrawList_GetClipRectMax", "ret": "void", @@ -2390,7 +2390,7 @@ "cimguiname": "ImDrawList_GetClipRectMin", "defaults": {}, "funcname": "GetClipRectMin", - "location": "imgui:2531", + "location": "imgui:2642", "nonUDT": 1, "ov_cimguiname": "ImDrawList_GetClipRectMin", "ret": "void", @@ -2400,22 +2400,22 @@ ], "ImDrawList_ImDrawList": [ { - "args": "(const ImDrawListSharedData* shared_data)", + "args": "(ImDrawListSharedData* shared_data)", "argsT": [ { "name": "shared_data", - "type": "const ImDrawListSharedData*" + "type": "ImDrawListSharedData*" } ], - "argsoriginal": "(const ImDrawListSharedData* shared_data)", + "argsoriginal": "(ImDrawListSharedData* shared_data)", "call_args": "(shared_data)", "cimguiname": "ImDrawList_ImDrawList", "constructor": true, "defaults": {}, "funcname": "ImDrawList", - "location": "imgui:2523", + "location": "imgui:2634", "ov_cimguiname": "ImDrawList_ImDrawList", - "signature": "(const ImDrawListSharedData*)", + "signature": "(ImDrawListSharedData*)", "stname": "ImDrawList" } ], @@ -2455,7 +2455,7 @@ "num_segments": "0" }, "funcname": "PathArcTo", - "location": "imgui:2573", + "location": "imgui:2686", "ov_cimguiname": "ImDrawList_PathArcTo", "ret": "void", "signature": "(const ImVec2,float,float,float,int)", @@ -2492,7 +2492,7 @@ "cimguiname": "ImDrawList_PathArcToFast", "defaults": {}, "funcname": "PathArcToFast", - "location": "imgui:2574", + "location": "imgui:2687", "ov_cimguiname": "ImDrawList_PathArcToFast", "ret": "void", "signature": "(const ImVec2,float,int,int)", @@ -2531,7 +2531,7 @@ "num_segments": "0" }, "funcname": "PathBezierCubicCurveTo", - "location": "imgui:2575", + "location": "imgui:2688", "ov_cimguiname": "ImDrawList_PathBezierCubicCurveTo", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,int)", @@ -2566,7 +2566,7 @@ "num_segments": "0" }, "funcname": "PathBezierQuadraticCurveTo", - "location": "imgui:2576", + "location": "imgui:2689", "ov_cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", "ret": "void", "signature": "(const ImVec2,const ImVec2,int)", @@ -2587,7 +2587,7 @@ "cimguiname": "ImDrawList_PathClear", "defaults": {}, "funcname": "PathClear", - "location": "imgui:2568", + "location": "imgui:2681", "ov_cimguiname": "ImDrawList_PathClear", "ret": "void", "signature": "()", @@ -2612,7 +2612,7 @@ "cimguiname": "ImDrawList_PathFillConvex", "defaults": {}, "funcname": "PathFillConvex", - "location": "imgui:2571", + "location": "imgui:2684", "ov_cimguiname": "ImDrawList_PathFillConvex", "ret": "void", "signature": "(ImU32)", @@ -2637,7 +2637,7 @@ "cimguiname": "ImDrawList_PathLineTo", "defaults": {}, "funcname": "PathLineTo", - "location": "imgui:2569", + "location": "imgui:2682", "ov_cimguiname": "ImDrawList_PathLineTo", "ret": "void", "signature": "(const ImVec2)", @@ -2662,7 +2662,7 @@ "cimguiname": "ImDrawList_PathLineToMergeDuplicate", "defaults": {}, "funcname": "PathLineToMergeDuplicate", - "location": "imgui:2570", + "location": "imgui:2683", "ov_cimguiname": "ImDrawList_PathLineToMergeDuplicate", "ret": "void", "signature": "(const ImVec2)", @@ -2702,7 +2702,7 @@ "rounding": "0.0f" }, "funcname": "PathRect", - "location": "imgui:2577", + "location": "imgui:2690", "ov_cimguiname": "ImDrawList_PathRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,float,ImDrawFlags)", @@ -2738,7 +2738,7 @@ "thickness": "1.0f" }, "funcname": "PathStroke", - "location": "imgui:2572", + "location": "imgui:2685", "ov_cimguiname": "ImDrawList_PathStroke", "ret": "void", "signature": "(ImU32,ImDrawFlags,float)", @@ -2759,7 +2759,7 @@ "cimguiname": "ImDrawList_PopClipRect", "defaults": {}, "funcname": "PopClipRect", - "location": "imgui:2528", + "location": "imgui:2639", "ov_cimguiname": "ImDrawList_PopClipRect", "ret": "void", "signature": "()", @@ -2780,7 +2780,7 @@ "cimguiname": "ImDrawList_PopTextureID", "defaults": {}, "funcname": "PopTextureID", - "location": "imgui:2530", + "location": "imgui:2641", "ov_cimguiname": "ImDrawList_PopTextureID", "ret": "void", "signature": "()", @@ -2837,7 +2837,7 @@ "cimguiname": "ImDrawList_PrimQuadUV", "defaults": {}, "funcname": "PrimQuadUV", - "location": "imgui:2601", + "location": "imgui:2714", "ov_cimguiname": "ImDrawList_PrimQuadUV", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -2870,7 +2870,7 @@ "cimguiname": "ImDrawList_PrimRect", "defaults": {}, "funcname": "PrimRect", - "location": "imgui:2599", + "location": "imgui:2712", "ov_cimguiname": "ImDrawList_PrimRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32)", @@ -2911,7 +2911,7 @@ "cimguiname": "ImDrawList_PrimRectUV", "defaults": {}, "funcname": "PrimRectUV", - "location": "imgui:2600", + "location": "imgui:2713", "ov_cimguiname": "ImDrawList_PrimRectUV", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -2940,7 +2940,7 @@ "cimguiname": "ImDrawList_PrimReserve", "defaults": {}, "funcname": "PrimReserve", - "location": "imgui:2597", + "location": "imgui:2710", "ov_cimguiname": "ImDrawList_PrimReserve", "ret": "void", "signature": "(int,int)", @@ -2969,7 +2969,7 @@ "cimguiname": "ImDrawList_PrimUnreserve", "defaults": {}, "funcname": "PrimUnreserve", - "location": "imgui:2598", + "location": "imgui:2711", "ov_cimguiname": "ImDrawList_PrimUnreserve", "ret": "void", "signature": "(int,int)", @@ -3002,7 +3002,7 @@ "cimguiname": "ImDrawList_PrimVtx", "defaults": {}, "funcname": "PrimVtx", - "location": "imgui:2604", + "location": "imgui:2717", "ov_cimguiname": "ImDrawList_PrimVtx", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32)", @@ -3027,7 +3027,7 @@ "cimguiname": "ImDrawList_PrimWriteIdx", "defaults": {}, "funcname": "PrimWriteIdx", - "location": "imgui:2603", + "location": "imgui:2716", "ov_cimguiname": "ImDrawList_PrimWriteIdx", "ret": "void", "signature": "(ImDrawIdx)", @@ -3060,7 +3060,7 @@ "cimguiname": "ImDrawList_PrimWriteVtx", "defaults": {}, "funcname": "PrimWriteVtx", - "location": "imgui:2602", + "location": "imgui:2715", "ov_cimguiname": "ImDrawList_PrimWriteVtx", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32)", @@ -3069,7 +3069,7 @@ ], "ImDrawList_PushClipRect": [ { - "args": "(ImDrawList* self,ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", + "args": "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", "argsT": [ { "name": "self", @@ -3077,28 +3077,28 @@ }, { "name": "clip_rect_min", - "type": "ImVec2" + "type": "const ImVec2" }, { "name": "clip_rect_max", - "type": "ImVec2" + "type": "const ImVec2" }, { "name": "intersect_with_current_clip_rect", "type": "bool" } ], - "argsoriginal": "(ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect=false)", + "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)", "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", "cimguiname": "ImDrawList_PushClipRect", "defaults": { "intersect_with_current_clip_rect": "false" }, "funcname": "PushClipRect", - "location": "imgui:2526", + "location": "imgui:2637", "ov_cimguiname": "ImDrawList_PushClipRect", "ret": "void", - "signature": "(ImVec2,ImVec2,bool)", + "signature": "(const ImVec2,const ImVec2,bool)", "stname": "ImDrawList" } ], @@ -3116,7 +3116,7 @@ "cimguiname": "ImDrawList_PushClipRectFullScreen", "defaults": {}, "funcname": "PushClipRectFullScreen", - "location": "imgui:2527", + "location": "imgui:2638", "ov_cimguiname": "ImDrawList_PushClipRectFullScreen", "ret": "void", "signature": "()", @@ -3141,7 +3141,7 @@ "cimguiname": "ImDrawList_PushTextureID", "defaults": {}, "funcname": "PushTextureID", - "location": "imgui:2529", + "location": "imgui:2640", "ov_cimguiname": "ImDrawList_PushTextureID", "ret": "void", "signature": "(ImTextureID)", @@ -3166,7 +3166,7 @@ "cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", "defaults": {}, "funcname": "_CalcCircleAutoSegmentCount", - "location": "imgui:2619", + "location": "imgui:2732", "ov_cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", "ret": "int", "signature": "(float)const", @@ -3187,7 +3187,7 @@ "cimguiname": "ImDrawList__ClearFreeMemory", "defaults": {}, "funcname": "_ClearFreeMemory", - "location": "imgui:2613", + "location": "imgui:2726", "ov_cimguiname": "ImDrawList__ClearFreeMemory", "ret": "void", "signature": "()", @@ -3208,7 +3208,7 @@ "cimguiname": "ImDrawList__OnChangedClipRect", "defaults": {}, "funcname": "_OnChangedClipRect", - "location": "imgui:2616", + "location": "imgui:2729", "ov_cimguiname": "ImDrawList__OnChangedClipRect", "ret": "void", "signature": "()", @@ -3229,7 +3229,7 @@ "cimguiname": "ImDrawList__OnChangedTextureID", "defaults": {}, "funcname": "_OnChangedTextureID", - "location": "imgui:2617", + "location": "imgui:2730", "ov_cimguiname": "ImDrawList__OnChangedTextureID", "ret": "void", "signature": "()", @@ -3250,7 +3250,7 @@ "cimguiname": "ImDrawList__OnChangedVtxOffset", "defaults": {}, "funcname": "_OnChangedVtxOffset", - "location": "imgui:2618", + "location": "imgui:2731", "ov_cimguiname": "ImDrawList__OnChangedVtxOffset", "ret": "void", "signature": "()", @@ -3291,7 +3291,7 @@ "cimguiname": "ImDrawList__PathArcToFastEx", "defaults": {}, "funcname": "_PathArcToFastEx", - "location": "imgui:2620", + "location": "imgui:2733", "ov_cimguiname": "ImDrawList__PathArcToFastEx", "ret": "void", "signature": "(const ImVec2,float,int,int,int)", @@ -3332,7 +3332,7 @@ "cimguiname": "ImDrawList__PathArcToN", "defaults": {}, "funcname": "_PathArcToN", - "location": "imgui:2621", + "location": "imgui:2734", "ov_cimguiname": "ImDrawList__PathArcToN", "ret": "void", "signature": "(const ImVec2,float,float,float,int)", @@ -3353,7 +3353,7 @@ "cimguiname": "ImDrawList__PopUnusedDrawCmd", "defaults": {}, "funcname": "_PopUnusedDrawCmd", - "location": "imgui:2614", + "location": "imgui:2727", "ov_cimguiname": "ImDrawList__PopUnusedDrawCmd", "ret": "void", "signature": "()", @@ -3374,7 +3374,7 @@ "cimguiname": "ImDrawList__ResetForNewFrame", "defaults": {}, "funcname": "_ResetForNewFrame", - "location": "imgui:2612", + "location": "imgui:2725", "ov_cimguiname": "ImDrawList__ResetForNewFrame", "ret": "void", "signature": "()", @@ -3395,7 +3395,7 @@ "cimguiname": "ImDrawList__TryMergeDrawCmds", "defaults": {}, "funcname": "_TryMergeDrawCmds", - "location": "imgui:2615", + "location": "imgui:2728", "ov_cimguiname": "ImDrawList__TryMergeDrawCmds", "ret": "void", "signature": "()", @@ -3415,7 +3415,7 @@ "cimguiname": "ImDrawList_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2525", + "location": "imgui:2636", "ov_cimguiname": "ImDrawList_destroy", "realdestructor": true, "ret": "void", @@ -3433,7 +3433,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontAtlasCustomRect", - "location": "imgui:2714", + "location": "imgui:2827", "ov_cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", "signature": "()", "stname": "ImFontAtlasCustomRect" @@ -3453,7 +3453,7 @@ "cimguiname": "ImFontAtlasCustomRect_IsPacked", "defaults": {}, "funcname": "IsPacked", - "location": "imgui:2715", + "location": "imgui:2828", "ov_cimguiname": "ImFontAtlasCustomRect_IsPacked", "ret": "bool", "signature": "()const", @@ -3519,7 +3519,7 @@ "offset": "ImVec2(0,0)" }, "funcname": "AddCustomRectFontGlyph", - "location": "imgui:2798", + "location": "imgui:2912", "ov_cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", "ret": "int", "signature": "(ImFont*,ImWchar,int,int,float,const ImVec2)", @@ -3548,7 +3548,7 @@ "cimguiname": "ImFontAtlas_AddCustomRectRegular", "defaults": {}, "funcname": "AddCustomRectRegular", - "location": "imgui:2797", + "location": "imgui:2911", "ov_cimguiname": "ImFontAtlas_AddCustomRectRegular", "ret": "int", "signature": "(int,int)", @@ -3573,7 +3573,7 @@ "cimguiname": "ImFontAtlas_AddFont", "defaults": {}, "funcname": "AddFont", - "location": "imgui:2748", + "location": "imgui:2861", "ov_cimguiname": "ImFontAtlas_AddFont", "ret": "ImFont*", "signature": "(const ImFontConfig*)", @@ -3600,7 +3600,7 @@ "font_cfg": "NULL" }, "funcname": "AddFontDefault", - "location": "imgui:2749", + "location": "imgui:2862", "ov_cimguiname": "ImFontAtlas_AddFontDefault", "ret": "ImFont*", "signature": "(const ImFontConfig*)", @@ -3640,7 +3640,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromFileTTF", - "location": "imgui:2750", + "location": "imgui:2863", "ov_cimguiname": "ImFontAtlas_AddFontFromFileTTF", "ret": "ImFont*", "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", @@ -3680,7 +3680,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromMemoryCompressedBase85TTF", - "location": "imgui:2753", + "location": "imgui:2866", "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", "ret": "ImFont*", "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", @@ -3724,7 +3724,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromMemoryCompressedTTF", - "location": "imgui:2752", + "location": "imgui:2865", "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", "ret": "ImFont*", "signature": "(const void*,int,float,const ImFontConfig*,const ImWchar*)", @@ -3768,7 +3768,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromMemoryTTF", - "location": "imgui:2751", + "location": "imgui:2864", "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", "ret": "ImFont*", "signature": "(void*,int,float,const ImFontConfig*,const ImWchar*)", @@ -3789,7 +3789,7 @@ "cimguiname": "ImFontAtlas_Build", "defaults": {}, "funcname": "Build", - "location": "imgui:2764", + "location": "imgui:2877", "ov_cimguiname": "ImFontAtlas_Build", "ret": "bool", "signature": "()", @@ -3822,7 +3822,7 @@ "cimguiname": "ImFontAtlas_CalcCustomRectUV", "defaults": {}, "funcname": "CalcCustomRectUV", - "location": "imgui:2802", + "location": "imgui:2916", "ov_cimguiname": "ImFontAtlas_CalcCustomRectUV", "ret": "void", "signature": "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const", @@ -3843,7 +3843,7 @@ "cimguiname": "ImFontAtlas_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2757", + "location": "imgui:2870", "ov_cimguiname": "ImFontAtlas_Clear", "ret": "void", "signature": "()", @@ -3864,7 +3864,7 @@ "cimguiname": "ImFontAtlas_ClearFonts", "defaults": {}, "funcname": "ClearFonts", - "location": "imgui:2756", + "location": "imgui:2869", "ov_cimguiname": "ImFontAtlas_ClearFonts", "ret": "void", "signature": "()", @@ -3885,7 +3885,7 @@ "cimguiname": "ImFontAtlas_ClearInputData", "defaults": {}, "funcname": "ClearInputData", - "location": "imgui:2754", + "location": "imgui:2867", "ov_cimguiname": "ImFontAtlas_ClearInputData", "ret": "void", "signature": "()", @@ -3906,7 +3906,7 @@ "cimguiname": "ImFontAtlas_ClearTexData", "defaults": {}, "funcname": "ClearTexData", - "location": "imgui:2755", + "location": "imgui:2868", "ov_cimguiname": "ImFontAtlas_ClearTexData", "ret": "void", "signature": "()", @@ -3931,7 +3931,7 @@ "cimguiname": "ImFontAtlas_GetCustomRectByIndex", "defaults": {}, "funcname": "GetCustomRectByIndex", - "location": "imgui:2799", + "location": "imgui:2913", "ov_cimguiname": "ImFontAtlas_GetCustomRectByIndex", "ret": "ImFontAtlasCustomRect*", "signature": "(int)", @@ -3952,7 +3952,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", "defaults": {}, "funcname": "GetGlyphRangesChineseFull", - "location": "imgui:2780", + "location": "imgui:2894", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", "ret": "const ImWchar*", "signature": "()", @@ -3973,7 +3973,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", "defaults": {}, "funcname": "GetGlyphRangesChineseSimplifiedCommon", - "location": "imgui:2781", + "location": "imgui:2895", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", "ret": "const ImWchar*", "signature": "()", @@ -3994,7 +3994,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", "defaults": {}, "funcname": "GetGlyphRangesCyrillic", - "location": "imgui:2782", + "location": "imgui:2896", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", "ret": "const ImWchar*", "signature": "()", @@ -4015,13 +4015,34 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesDefault", "defaults": {}, "funcname": "GetGlyphRangesDefault", - "location": "imgui:2777", + "location": "imgui:2890", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesDefault", "ret": "const ImWchar*", "signature": "()", "stname": "ImFontAtlas" } ], + "ImFontAtlas_GetGlyphRangesGreek": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "defaults": {}, + "funcname": "GetGlyphRangesGreek", + "location": "imgui:2891", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], "ImFontAtlas_GetGlyphRangesJapanese": [ { "args": "(ImFontAtlas* self)", @@ -4036,7 +4057,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", "defaults": {}, "funcname": "GetGlyphRangesJapanese", - "location": "imgui:2779", + "location": "imgui:2893", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", "ret": "const ImWchar*", "signature": "()", @@ -4057,7 +4078,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesKorean", "defaults": {}, "funcname": "GetGlyphRangesKorean", - "location": "imgui:2778", + "location": "imgui:2892", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesKorean", "ret": "const ImWchar*", "signature": "()", @@ -4078,7 +4099,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesThai", "defaults": {}, "funcname": "GetGlyphRangesThai", - "location": "imgui:2783", + "location": "imgui:2897", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesThai", "ret": "const ImWchar*", "signature": "()", @@ -4099,7 +4120,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", "defaults": {}, "funcname": "GetGlyphRangesVietnamese", - "location": "imgui:2784", + "location": "imgui:2898", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", "ret": "const ImWchar*", "signature": "()", @@ -4140,7 +4161,7 @@ "cimguiname": "ImFontAtlas_GetMouseCursorTexData", "defaults": {}, "funcname": "GetMouseCursorTexData", - "location": "imgui:2803", + "location": "imgui:2917", "ov_cimguiname": "ImFontAtlas_GetMouseCursorTexData", "ret": "bool", "signature": "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])", @@ -4179,7 +4200,7 @@ "out_bytes_per_pixel": "NULL" }, "funcname": "GetTexDataAsAlpha8", - "location": "imgui:2765", + "location": "imgui:2878", "ov_cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", "ret": "void", "signature": "(unsigned char**,int*,int*,int*)", @@ -4218,7 +4239,7 @@ "out_bytes_per_pixel": "NULL" }, "funcname": "GetTexDataAsRGBA32", - "location": "imgui:2766", + "location": "imgui:2879", "ov_cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", "ret": "void", "signature": "(unsigned char**,int*,int*,int*)", @@ -4235,7 +4256,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontAtlas", - "location": "imgui:2746", + "location": "imgui:2859", "ov_cimguiname": "ImFontAtlas_ImFontAtlas", "signature": "()", "stname": "ImFontAtlas" @@ -4255,7 +4276,7 @@ "cimguiname": "ImFontAtlas_IsBuilt", "defaults": {}, "funcname": "IsBuilt", - "location": "imgui:2767", + "location": "imgui:2880", "ov_cimguiname": "ImFontAtlas_IsBuilt", "ret": "bool", "signature": "()const", @@ -4280,7 +4301,7 @@ "cimguiname": "ImFontAtlas_SetTexID", "defaults": {}, "funcname": "SetTexID", - "location": "imgui:2768", + "location": "imgui:2881", "ov_cimguiname": "ImFontAtlas_SetTexID", "ret": "void", "signature": "(ImTextureID)", @@ -4300,7 +4321,7 @@ "cimguiname": "ImFontAtlas_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2747", + "location": "imgui:2860", "ov_cimguiname": "ImFontAtlas_destroy", "realdestructor": true, "ret": "void", @@ -4318,7 +4339,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontConfig", - "location": "imgui:2674", + "location": "imgui:2787", "ov_cimguiname": "ImFontConfig_ImFontConfig", "signature": "()", "stname": "ImFontConfig" @@ -4361,7 +4382,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_AddChar", "defaults": {}, "funcname": "AddChar", - "location": "imgui:2699", + "location": "imgui:2812", "ov_cimguiname": "ImFontGlyphRangesBuilder_AddChar", "ret": "void", "signature": "(ImWchar)", @@ -4386,7 +4407,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_AddRanges", "defaults": {}, "funcname": "AddRanges", - "location": "imgui:2701", + "location": "imgui:2814", "ov_cimguiname": "ImFontGlyphRangesBuilder_AddRanges", "ret": "void", "signature": "(const ImWchar*)", @@ -4417,7 +4438,7 @@ "text_end": "NULL" }, "funcname": "AddText", - "location": "imgui:2700", + "location": "imgui:2813", "ov_cimguiname": "ImFontGlyphRangesBuilder_AddText", "ret": "void", "signature": "(const char*,const char*)", @@ -4442,7 +4463,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", "defaults": {}, "funcname": "BuildRanges", - "location": "imgui:2702", + "location": "imgui:2815", "ov_cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", "ret": "void", "signature": "(ImVector_ImWchar*)", @@ -4463,7 +4484,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2696", + "location": "imgui:2809", "ov_cimguiname": "ImFontGlyphRangesBuilder_Clear", "ret": "void", "signature": "()", @@ -4488,7 +4509,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_GetBit", "defaults": {}, "funcname": "GetBit", - "location": "imgui:2697", + "location": "imgui:2810", "ov_cimguiname": "ImFontGlyphRangesBuilder_GetBit", "ret": "bool", "signature": "(size_t)const", @@ -4505,7 +4526,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontGlyphRangesBuilder", - "location": "imgui:2695", + "location": "imgui:2808", "ov_cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", "signature": "()", "stname": "ImFontGlyphRangesBuilder" @@ -4529,7 +4550,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_SetBit", "defaults": {}, "funcname": "SetBit", - "location": "imgui:2698", + "location": "imgui:2811", "ov_cimguiname": "ImFontGlyphRangesBuilder_SetBit", "ret": "void", "signature": "(size_t)", @@ -4613,7 +4634,7 @@ "cimguiname": "ImFont_AddGlyph", "defaults": {}, "funcname": "AddGlyph", - "location": "imgui:2891", + "location": "imgui:3004", "ov_cimguiname": "ImFont_AddGlyph", "ret": "void", "signature": "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)", @@ -4648,7 +4669,7 @@ "overwrite_dst": "true" }, "funcname": "AddRemapChar", - "location": "imgui:2892", + "location": "imgui:3005", "ov_cimguiname": "ImFont_AddRemapChar", "ret": "void", "signature": "(ImWchar,ImWchar,bool)", @@ -4669,7 +4690,7 @@ "cimguiname": "ImFont_BuildLookupTable", "defaults": {}, "funcname": "BuildLookupTable", - "location": "imgui:2888", + "location": "imgui:3001", "ov_cimguiname": "ImFont_BuildLookupTable", "ret": "void", "signature": "()", @@ -4721,7 +4742,7 @@ "text_end": "NULL" }, "funcname": "CalcTextSizeA", - "location": "imgui:2882", + "location": "imgui:2995", "nonUDT": 1, "ov_cimguiname": "ImFont_CalcTextSizeA", "ret": "void", @@ -4759,7 +4780,7 @@ "cimguiname": "ImFont_CalcWordWrapPositionA", "defaults": {}, "funcname": "CalcWordWrapPositionA", - "location": "imgui:2883", + "location": "imgui:2996", "ov_cimguiname": "ImFont_CalcWordWrapPositionA", "ret": "const char*", "signature": "(float,const char*,const char*,float)const", @@ -4780,7 +4801,7 @@ "cimguiname": "ImFont_ClearOutputData", "defaults": {}, "funcname": "ClearOutputData", - "location": "imgui:2889", + "location": "imgui:3002", "ov_cimguiname": "ImFont_ClearOutputData", "ret": "void", "signature": "()", @@ -4805,7 +4826,7 @@ "cimguiname": "ImFont_FindGlyph", "defaults": {}, "funcname": "FindGlyph", - "location": "imgui:2874", + "location": "imgui:2987", "ov_cimguiname": "ImFont_FindGlyph", "ret": "const ImFontGlyph*", "signature": "(ImWchar)const", @@ -4830,7 +4851,7 @@ "cimguiname": "ImFont_FindGlyphNoFallback", "defaults": {}, "funcname": "FindGlyphNoFallback", - "location": "imgui:2875", + "location": "imgui:2988", "ov_cimguiname": "ImFont_FindGlyphNoFallback", "ret": "const ImFontGlyph*", "signature": "(ImWchar)const", @@ -4855,7 +4876,7 @@ "cimguiname": "ImFont_GetCharAdvance", "defaults": {}, "funcname": "GetCharAdvance", - "location": "imgui:2876", + "location": "imgui:2989", "ov_cimguiname": "ImFont_GetCharAdvance", "ret": "float", "signature": "(ImWchar)const", @@ -4876,7 +4897,7 @@ "cimguiname": "ImFont_GetDebugName", "defaults": {}, "funcname": "GetDebugName", - "location": "imgui:2878", + "location": "imgui:2991", "ov_cimguiname": "ImFont_GetDebugName", "ret": "const char*", "signature": "()const", @@ -4901,7 +4922,7 @@ "cimguiname": "ImFont_GrowIndex", "defaults": {}, "funcname": "GrowIndex", - "location": "imgui:2890", + "location": "imgui:3003", "ov_cimguiname": "ImFont_GrowIndex", "ret": "void", "signature": "(int)", @@ -4918,7 +4939,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFont", - "location": "imgui:2872", + "location": "imgui:2985", "ov_cimguiname": "ImFont_ImFont", "signature": "()", "stname": "ImFont" @@ -4946,7 +4967,7 @@ "cimguiname": "ImFont_IsGlyphRangeUnused", "defaults": {}, "funcname": "IsGlyphRangeUnused", - "location": "imgui:2894", + "location": "imgui:3007", "ov_cimguiname": "ImFont_IsGlyphRangeUnused", "ret": "bool", "signature": "(unsigned int,unsigned int)", @@ -4967,7 +4988,7 @@ "cimguiname": "ImFont_IsLoaded", "defaults": {}, "funcname": "IsLoaded", - "location": "imgui:2877", + "location": "imgui:2990", "ov_cimguiname": "ImFont_IsLoaded", "ret": "bool", "signature": "()const", @@ -4976,7 +4997,7 @@ ], "ImFont_RenderChar": [ { - "args": "(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c)", + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)", "argsT": [ { "name": "self", @@ -4992,7 +5013,7 @@ }, { "name": "pos", - "type": "ImVec2" + "type": "const ImVec2" }, { "name": "col", @@ -5003,21 +5024,21 @@ "type": "ImWchar" } ], - "argsoriginal": "(ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c)", + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)", "call_args": "(draw_list,size,pos,col,c)", "cimguiname": "ImFont_RenderChar", "defaults": {}, "funcname": "RenderChar", - "location": "imgui:2884", + "location": "imgui:2997", "ov_cimguiname": "ImFont_RenderChar", "ret": "void", - "signature": "(ImDrawList*,float,ImVec2,ImU32,ImWchar)const", + "signature": "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const", "stname": "ImFont" } ], "ImFont_RenderText": [ { - "args": "(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)", + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)", "argsT": [ { "name": "self", @@ -5033,7 +5054,7 @@ }, { "name": "pos", - "type": "ImVec2" + "type": "const ImVec2" }, { "name": "col", @@ -5060,7 +5081,7 @@ "type": "bool" } ], - "argsoriginal": "(ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)", + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)", "call_args": "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)", "cimguiname": "ImFont_RenderText", "defaults": { @@ -5068,10 +5089,10 @@ "wrap_width": "0.0f" }, "funcname": "RenderText", - "location": "imgui:2885", + "location": "imgui:2998", "ov_cimguiname": "ImFont_RenderText", "ret": "void", - "signature": "(ImDrawList*,float,ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const", + "signature": "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const", "stname": "ImFont" } ], @@ -5097,7 +5118,7 @@ "cimguiname": "ImFont_SetGlyphVisible", "defaults": {}, "funcname": "SetGlyphVisible", - "location": "imgui:2893", + "location": "imgui:3006", "ov_cimguiname": "ImFont_SetGlyphVisible", "ret": "void", "signature": "(ImWchar,bool)", @@ -5117,7 +5138,7 @@ "cimguiname": "ImFont_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2873", + "location": "imgui:2986", "ov_cimguiname": "ImFont_destroy", "realdestructor": true, "ret": "void", @@ -5135,7 +5156,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiComboPreviewData", - "location": "imgui_internal:990", + "location": "imgui_internal:1018", "ov_cimguiname": "ImGuiComboPreviewData_ImGuiComboPreviewData", "signature": "()", "stname": "ImGuiComboPreviewData" @@ -5170,7 +5191,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiContextHook", - "location": "imgui_internal:1663", + "location": "imgui_internal:1898", "ov_cimguiname": "ImGuiContextHook_ImGuiContextHook", "signature": "()", "stname": "ImGuiContextHook" @@ -5210,7 +5231,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiContext", - "location": "imgui_internal:1941", + "location": "imgui_internal:2204", "ov_cimguiname": "ImGuiContext_ImGuiContext", "signature": "(ImFontAtlas*)", "stname": "ImGuiContext" @@ -5245,7 +5266,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiDockContext", - "location": "imgui_internal:1508", + "location": "imgui_internal:1703", "ov_cimguiname": "ImGuiDockContext_ImGuiDockContext", "signature": "()", "stname": "ImGuiDockContext" @@ -5285,7 +5306,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiDockNode", - "location": "imgui_internal:1465", + "location": "imgui_internal:1660", "ov_cimguiname": "ImGuiDockNode_ImGuiDockNode", "signature": "(ImGuiID)", "stname": "ImGuiDockNode" @@ -5305,7 +5326,7 @@ "cimguiname": "ImGuiDockNode_IsCentralNode", "defaults": {}, "funcname": "IsCentralNode", - "location": "imgui_internal:1470", + "location": "imgui_internal:1665", "ov_cimguiname": "ImGuiDockNode_IsCentralNode", "ret": "bool", "signature": "()const", @@ -5326,7 +5347,7 @@ "cimguiname": "ImGuiDockNode_IsDockSpace", "defaults": {}, "funcname": "IsDockSpace", - "location": "imgui_internal:1468", + "location": "imgui_internal:1663", "ov_cimguiname": "ImGuiDockNode_IsDockSpace", "ret": "bool", "signature": "()const", @@ -5347,7 +5368,7 @@ "cimguiname": "ImGuiDockNode_IsEmpty", "defaults": {}, "funcname": "IsEmpty", - "location": "imgui_internal:1475", + "location": "imgui_internal:1670", "ov_cimguiname": "ImGuiDockNode_IsEmpty", "ret": "bool", "signature": "()const", @@ -5368,7 +5389,7 @@ "cimguiname": "ImGuiDockNode_IsFloatingNode", "defaults": {}, "funcname": "IsFloatingNode", - "location": "imgui_internal:1469", + "location": "imgui_internal:1664", "ov_cimguiname": "ImGuiDockNode_IsFloatingNode", "ret": "bool", "signature": "()const", @@ -5389,7 +5410,7 @@ "cimguiname": "ImGuiDockNode_IsHiddenTabBar", "defaults": {}, "funcname": "IsHiddenTabBar", - "location": "imgui_internal:1471", + "location": "imgui_internal:1666", "ov_cimguiname": "ImGuiDockNode_IsHiddenTabBar", "ret": "bool", "signature": "()const", @@ -5410,7 +5431,7 @@ "cimguiname": "ImGuiDockNode_IsLeafNode", "defaults": {}, "funcname": "IsLeafNode", - "location": "imgui_internal:1474", + "location": "imgui_internal:1669", "ov_cimguiname": "ImGuiDockNode_IsLeafNode", "ret": "bool", "signature": "()const", @@ -5431,7 +5452,7 @@ "cimguiname": "ImGuiDockNode_IsNoTabBar", "defaults": {}, "funcname": "IsNoTabBar", - "location": "imgui_internal:1472", + "location": "imgui_internal:1667", "ov_cimguiname": "ImGuiDockNode_IsNoTabBar", "ret": "bool", "signature": "()const", @@ -5452,7 +5473,7 @@ "cimguiname": "ImGuiDockNode_IsRootNode", "defaults": {}, "funcname": "IsRootNode", - "location": "imgui_internal:1467", + "location": "imgui_internal:1662", "ov_cimguiname": "ImGuiDockNode_IsRootNode", "ret": "bool", "signature": "()const", @@ -5473,7 +5494,7 @@ "cimguiname": "ImGuiDockNode_IsSplitNode", "defaults": {}, "funcname": "IsSplitNode", - "location": "imgui_internal:1473", + "location": "imgui_internal:1668", "ov_cimguiname": "ImGuiDockNode_IsSplitNode", "ret": "bool", "signature": "()const", @@ -5498,7 +5519,7 @@ "cimguiname": "ImGuiDockNode_Rect", "defaults": {}, "funcname": "Rect", - "location": "imgui_internal:1476", + "location": "imgui_internal:1671", "nonUDT": 1, "ov_cimguiname": "ImGuiDockNode_Rect", "ret": "void", @@ -5524,7 +5545,7 @@ "cimguiname": "ImGuiDockNode_SetLocalFlags", "defaults": {}, "funcname": "SetLocalFlags", - "location": "imgui_internal:1478", + "location": "imgui_internal:1673", "ov_cimguiname": "ImGuiDockNode_SetLocalFlags", "ret": "void", "signature": "(ImGuiDockNodeFlags)", @@ -5545,7 +5566,7 @@ "cimguiname": "ImGuiDockNode_UpdateMergedFlags", "defaults": {}, "funcname": "UpdateMergedFlags", - "location": "imgui_internal:1479", + "location": "imgui_internal:1674", "ov_cimguiname": "ImGuiDockNode_UpdateMergedFlags", "ret": "void", "signature": "()", @@ -5565,7 +5586,7 @@ "cimguiname": "ImGuiDockNode_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:1466", + "location": "imgui_internal:1661", "ov_cimguiname": "ImGuiDockNode_destroy", "realdestructor": true, "ret": "void", @@ -5591,7 +5612,7 @@ "cimguiname": "ImGuiIO_AddFocusEvent", "defaults": {}, "funcname": "AddFocusEvent", - "location": "imgui:1983", + "location": "imgui:2063", "ov_cimguiname": "ImGuiIO_AddFocusEvent", "ret": "void", "signature": "(bool)", @@ -5616,7 +5637,7 @@ "cimguiname": "ImGuiIO_AddInputCharacter", "defaults": {}, "funcname": "AddInputCharacter", - "location": "imgui:1980", + "location": "imgui:2064", "ov_cimguiname": "ImGuiIO_AddInputCharacter", "ret": "void", "signature": "(unsigned int)", @@ -5641,7 +5662,7 @@ "cimguiname": "ImGuiIO_AddInputCharacterUTF16", "defaults": {}, "funcname": "AddInputCharacterUTF16", - "location": "imgui:1981", + "location": "imgui:2065", "ov_cimguiname": "ImGuiIO_AddInputCharacterUTF16", "ret": "void", "signature": "(ImWchar16)", @@ -5666,13 +5687,187 @@ "cimguiname": "ImGuiIO_AddInputCharactersUTF8", "defaults": {}, "funcname": "AddInputCharactersUTF8", - "location": "imgui:1982", + "location": "imgui:2066", "ov_cimguiname": "ImGuiIO_AddInputCharactersUTF8", "ret": "void", "signature": "(const char*)", "stname": "ImGuiIO" } ], + "ImGuiIO_AddKeyAnalogEvent": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,bool down,float v)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "down", + "type": "bool" + }, + { + "name": "v", + "type": "float" + } + ], + "argsoriginal": "(ImGuiKey key,bool down,float v)", + "call_args": "(key,down,v)", + "cimguiname": "ImGuiIO_AddKeyAnalogEvent", + "defaults": {}, + "funcname": "AddKeyAnalogEvent", + "location": "imgui:2058", + "ov_cimguiname": "ImGuiIO_AddKeyAnalogEvent", + "ret": "void", + "signature": "(ImGuiKey,bool,float)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddKeyEvent": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,bool down)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "down", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiKey key,bool down)", + "call_args": "(key,down)", + "cimguiname": "ImGuiIO_AddKeyEvent", + "defaults": {}, + "funcname": "AddKeyEvent", + "location": "imgui:2057", + "ov_cimguiname": "ImGuiIO_AddKeyEvent", + "ret": "void", + "signature": "(ImGuiKey,bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMouseButtonEvent": [ + { + "args": "(ImGuiIO* self,int button,bool down)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "button", + "type": "int" + }, + { + "name": "down", + "type": "bool" + } + ], + "argsoriginal": "(int button,bool down)", + "call_args": "(button,down)", + "cimguiname": "ImGuiIO_AddMouseButtonEvent", + "defaults": {}, + "funcname": "AddMouseButtonEvent", + "location": "imgui:2060", + "ov_cimguiname": "ImGuiIO_AddMouseButtonEvent", + "ret": "void", + "signature": "(int,bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMousePosEvent": [ + { + "args": "(ImGuiIO* self,float x,float y)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ], + "argsoriginal": "(float x,float y)", + "call_args": "(x,y)", + "cimguiname": "ImGuiIO_AddMousePosEvent", + "defaults": {}, + "funcname": "AddMousePosEvent", + "location": "imgui:2059", + "ov_cimguiname": "ImGuiIO_AddMousePosEvent", + "ret": "void", + "signature": "(float,float)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMouseViewportEvent": [ + { + "args": "(ImGuiIO* self,ImGuiID id)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "ImGuiIO_AddMouseViewportEvent", + "defaults": {}, + "funcname": "AddMouseViewportEvent", + "location": "imgui:2062", + "ov_cimguiname": "ImGuiIO_AddMouseViewportEvent", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMouseWheelEvent": [ + { + "args": "(ImGuiIO* self,float wh_x,float wh_y)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "wh_x", + "type": "float" + }, + { + "name": "wh_y", + "type": "float" + } + ], + "argsoriginal": "(float wh_x,float wh_y)", + "call_args": "(wh_x,wh_y)", + "cimguiname": "ImGuiIO_AddMouseWheelEvent", + "defaults": {}, + "funcname": "AddMouseWheelEvent", + "location": "imgui:2061", + "ov_cimguiname": "ImGuiIO_AddMouseWheelEvent", + "ret": "void", + "signature": "(float,float)", + "stname": "ImGuiIO" + } + ], "ImGuiIO_ClearInputCharacters": [ { "args": "(ImGuiIO* self)", @@ -5687,7 +5882,7 @@ "cimguiname": "ImGuiIO_ClearInputCharacters", "defaults": {}, "funcname": "ClearInputCharacters", - "location": "imgui:1984", + "location": "imgui:2070", "ov_cimguiname": "ImGuiIO_ClearInputCharacters", "ret": "void", "signature": "()", @@ -5708,7 +5903,7 @@ "cimguiname": "ImGuiIO_ClearInputKeys", "defaults": {}, "funcname": "ClearInputKeys", - "location": "imgui:1985", + "location": "imgui:2071", "ov_cimguiname": "ImGuiIO_ClearInputKeys", "ret": "void", "signature": "()", @@ -5725,12 +5920,76 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiIO", - "location": "imgui:2038", + "location": "imgui:2146", "ov_cimguiname": "ImGuiIO_ImGuiIO", "signature": "()", "stname": "ImGuiIO" } ], + "ImGuiIO_SetAppAcceptingEvents": [ + { + "args": "(ImGuiIO* self,bool accepting_events)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "accepting_events", + "type": "bool" + } + ], + "argsoriginal": "(bool accepting_events)", + "call_args": "(accepting_events)", + "cimguiname": "ImGuiIO_SetAppAcceptingEvents", + "defaults": {}, + "funcname": "SetAppAcceptingEvents", + "location": "imgui:2069", + "ov_cimguiname": "ImGuiIO_SetAppAcceptingEvents", + "ret": "void", + "signature": "(bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_SetKeyEventNativeData": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "native_keycode", + "type": "int" + }, + { + "name": "native_scancode", + "type": "int" + }, + { + "name": "native_legacy_index", + "type": "int" + } + ], + "argsoriginal": "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)", + "call_args": "(key,native_keycode,native_scancode,native_legacy_index)", + "cimguiname": "ImGuiIO_SetKeyEventNativeData", + "defaults": { + "native_legacy_index": "-1" + }, + "funcname": "SetKeyEventNativeData", + "location": "imgui:2068", + "ov_cimguiname": "ImGuiIO_SetKeyEventNativeData", + "ret": "void", + "signature": "(ImGuiKey,int,int,int)", + "stname": "ImGuiIO" + } + ], "ImGuiIO_destroy": [ { "args": "(ImGuiIO* self)", @@ -5750,6 +6009,41 @@ "stname": "ImGuiIO" } ], + "ImGuiInputEvent_ImGuiInputEvent": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputEvent_ImGuiInputEvent", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiInputEvent", + "location": "imgui_internal:1302", + "ov_cimguiname": "ImGuiInputEvent_ImGuiInputEvent", + "signature": "()", + "stname": "ImGuiInputEvent" + } + ], + "ImGuiInputEvent_destroy": [ + { + "args": "(ImGuiInputEvent* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputEvent*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiInputEvent_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiInputEvent_destroy", + "ret": "void", + "signature": "(ImGuiInputEvent*)", + "stname": "ImGuiInputEvent" + } + ], "ImGuiInputTextCallbackData_ClearSelection": [ { "args": "(ImGuiInputTextCallbackData* self)", @@ -5764,7 +6058,7 @@ "cimguiname": "ImGuiInputTextCallbackData_ClearSelection", "defaults": {}, "funcname": "ClearSelection", - "location": "imgui:2079", + "location": "imgui:2187", "ov_cimguiname": "ImGuiInputTextCallbackData_ClearSelection", "ret": "void", "signature": "()", @@ -5793,7 +6087,7 @@ "cimguiname": "ImGuiInputTextCallbackData_DeleteChars", "defaults": {}, "funcname": "DeleteChars", - "location": "imgui:2076", + "location": "imgui:2184", "ov_cimguiname": "ImGuiInputTextCallbackData_DeleteChars", "ret": "void", "signature": "(int,int)", @@ -5814,7 +6108,7 @@ "cimguiname": "ImGuiInputTextCallbackData_HasSelection", "defaults": {}, "funcname": "HasSelection", - "location": "imgui:2080", + "location": "imgui:2188", "ov_cimguiname": "ImGuiInputTextCallbackData_HasSelection", "ret": "bool", "signature": "()const", @@ -5831,7 +6125,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiInputTextCallbackData", - "location": "imgui:2075", + "location": "imgui:2183", "ov_cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", "signature": "()", "stname": "ImGuiInputTextCallbackData" @@ -5865,7 +6159,7 @@ "text_end": "NULL" }, "funcname": "InsertChars", - "location": "imgui:2077", + "location": "imgui:2185", "ov_cimguiname": "ImGuiInputTextCallbackData_InsertChars", "ret": "void", "signature": "(int,const char*,const char*)", @@ -5886,7 +6180,7 @@ "cimguiname": "ImGuiInputTextCallbackData_SelectAll", "defaults": {}, "funcname": "SelectAll", - "location": "imgui:2078", + "location": "imgui:2186", "ov_cimguiname": "ImGuiInputTextCallbackData_SelectAll", "ret": "void", "signature": "()", @@ -5926,7 +6220,7 @@ "cimguiname": "ImGuiInputTextState_ClearFreeMemory", "defaults": {}, "funcname": "ClearFreeMemory", - "location": "imgui_internal:1048", + "location": "imgui_internal:1076", "ov_cimguiname": "ImGuiInputTextState_ClearFreeMemory", "ret": "void", "signature": "()", @@ -5947,7 +6241,7 @@ "cimguiname": "ImGuiInputTextState_ClearSelection", "defaults": {}, "funcname": "ClearSelection", - "location": "imgui_internal:1057", + "location": "imgui_internal:1085", "ov_cimguiname": "ImGuiInputTextState_ClearSelection", "ret": "void", "signature": "()", @@ -5968,7 +6262,7 @@ "cimguiname": "ImGuiInputTextState_ClearText", "defaults": {}, "funcname": "ClearText", - "location": "imgui_internal:1047", + "location": "imgui_internal:1075", "ov_cimguiname": "ImGuiInputTextState_ClearText", "ret": "void", "signature": "()", @@ -5989,7 +6283,7 @@ "cimguiname": "ImGuiInputTextState_CursorAnimReset", "defaults": {}, "funcname": "CursorAnimReset", - "location": "imgui_internal:1054", + "location": "imgui_internal:1082", "ov_cimguiname": "ImGuiInputTextState_CursorAnimReset", "ret": "void", "signature": "()", @@ -6010,7 +6304,7 @@ "cimguiname": "ImGuiInputTextState_CursorClamp", "defaults": {}, "funcname": "CursorClamp", - "location": "imgui_internal:1055", + "location": "imgui_internal:1083", "ov_cimguiname": "ImGuiInputTextState_CursorClamp", "ret": "void", "signature": "()", @@ -6031,7 +6325,7 @@ "cimguiname": "ImGuiInputTextState_GetCursorPos", "defaults": {}, "funcname": "GetCursorPos", - "location": "imgui_internal:1058", + "location": "imgui_internal:1086", "ov_cimguiname": "ImGuiInputTextState_GetCursorPos", "ret": "int", "signature": "()const", @@ -6052,7 +6346,7 @@ "cimguiname": "ImGuiInputTextState_GetRedoAvailCount", "defaults": {}, "funcname": "GetRedoAvailCount", - "location": "imgui_internal:1050", + "location": "imgui_internal:1078", "ov_cimguiname": "ImGuiInputTextState_GetRedoAvailCount", "ret": "int", "signature": "()const", @@ -6073,7 +6367,7 @@ "cimguiname": "ImGuiInputTextState_GetSelectionEnd", "defaults": {}, "funcname": "GetSelectionEnd", - "location": "imgui_internal:1060", + "location": "imgui_internal:1088", "ov_cimguiname": "ImGuiInputTextState_GetSelectionEnd", "ret": "int", "signature": "()const", @@ -6094,7 +6388,7 @@ "cimguiname": "ImGuiInputTextState_GetSelectionStart", "defaults": {}, "funcname": "GetSelectionStart", - "location": "imgui_internal:1059", + "location": "imgui_internal:1087", "ov_cimguiname": "ImGuiInputTextState_GetSelectionStart", "ret": "int", "signature": "()const", @@ -6115,7 +6409,7 @@ "cimguiname": "ImGuiInputTextState_GetUndoAvailCount", "defaults": {}, "funcname": "GetUndoAvailCount", - "location": "imgui_internal:1049", + "location": "imgui_internal:1077", "ov_cimguiname": "ImGuiInputTextState_GetUndoAvailCount", "ret": "int", "signature": "()const", @@ -6136,7 +6430,7 @@ "cimguiname": "ImGuiInputTextState_HasSelection", "defaults": {}, "funcname": "HasSelection", - "location": "imgui_internal:1056", + "location": "imgui_internal:1084", "ov_cimguiname": "ImGuiInputTextState_HasSelection", "ret": "bool", "signature": "()const", @@ -6153,7 +6447,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiInputTextState", - "location": "imgui_internal:1046", + "location": "imgui_internal:1074", "ov_cimguiname": "ImGuiInputTextState_ImGuiInputTextState", "signature": "()", "stname": "ImGuiInputTextState" @@ -6177,7 +6471,7 @@ "cimguiname": "ImGuiInputTextState_OnKeyPressed", "defaults": {}, "funcname": "OnKeyPressed", - "location": "imgui_internal:1051", + "location": "imgui_internal:1079", "ov_cimguiname": "ImGuiInputTextState_OnKeyPressed", "ret": "void", "signature": "(int)", @@ -6198,7 +6492,7 @@ "cimguiname": "ImGuiInputTextState_SelectAll", "defaults": {}, "funcname": "SelectAll", - "location": "imgui_internal:1061", + "location": "imgui_internal:1089", "ov_cimguiname": "ImGuiInputTextState_SelectAll", "ret": "void", "signature": "()", @@ -6224,6 +6518,132 @@ "stname": "ImGuiInputTextState" } ], + "ImGuiKeyOwnerData_ImGuiKeyOwnerData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiKeyOwnerData_ImGuiKeyOwnerData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiKeyOwnerData", + "location": "imgui_internal:1344", + "ov_cimguiname": "ImGuiKeyOwnerData_ImGuiKeyOwnerData", + "signature": "()", + "stname": "ImGuiKeyOwnerData" + } + ], + "ImGuiKeyOwnerData_destroy": [ + { + "args": "(ImGuiKeyOwnerData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiKeyOwnerData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiKeyOwnerData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiKeyOwnerData_destroy", + "ret": "void", + "signature": "(ImGuiKeyOwnerData*)", + "stname": "ImGuiKeyOwnerData" + } + ], + "ImGuiKeyRoutingData_ImGuiKeyRoutingData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiKeyRoutingData_ImGuiKeyRoutingData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiKeyRoutingData", + "location": "imgui_internal:1320", + "ov_cimguiname": "ImGuiKeyRoutingData_ImGuiKeyRoutingData", + "signature": "()", + "stname": "ImGuiKeyRoutingData" + } + ], + "ImGuiKeyRoutingData_destroy": [ + { + "args": "(ImGuiKeyRoutingData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiKeyRoutingData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiKeyRoutingData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiKeyRoutingData_destroy", + "ret": "void", + "signature": "(ImGuiKeyRoutingData*)", + "stname": "ImGuiKeyRoutingData" + } + ], + "ImGuiKeyRoutingTable_Clear": [ + { + "args": "(ImGuiKeyRoutingTable* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiKeyRoutingTable*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiKeyRoutingTable_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui_internal:1332", + "ov_cimguiname": "ImGuiKeyRoutingTable_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiKeyRoutingTable" + } + ], + "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiKeyRoutingTable", + "location": "imgui_internal:1331", + "ov_cimguiname": "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable", + "signature": "()", + "stname": "ImGuiKeyRoutingTable" + } + ], + "ImGuiKeyRoutingTable_destroy": [ + { + "args": "(ImGuiKeyRoutingTable* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiKeyRoutingTable*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiKeyRoutingTable_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiKeyRoutingTable_destroy", + "ret": "void", + "signature": "(ImGuiKeyRoutingTable*)", + "stname": "ImGuiKeyRoutingTable" + } + ], "ImGuiLastItemData_ImGuiLastItemData": [ { "args": "()", @@ -6234,7 +6654,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiLastItemData", - "location": "imgui_internal:1151", + "location": "imgui_internal:1180", "ov_cimguiname": "ImGuiLastItemData_ImGuiLastItemData", "signature": "()", "stname": "ImGuiLastItemData" @@ -6269,7 +6689,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiListClipperData", - "location": "imgui_internal:1219", + "location": "imgui_internal:1420", "ov_cimguiname": "ImGuiListClipperData_ImGuiListClipperData", "signature": "()", "stname": "ImGuiListClipperData" @@ -6293,7 +6713,7 @@ "cimguiname": "ImGuiListClipperData_Reset", "defaults": {}, "funcname": "Reset", - "location": "imgui_internal:1220", + "location": "imgui_internal:1421", "ov_cimguiname": "ImGuiListClipperData_Reset", "ret": "void", "signature": "(ImGuiListClipper*)", @@ -6338,7 +6758,7 @@ "defaults": {}, "funcname": "FromIndices", "is_static_function": true, - "location": "imgui_internal:1206", + "location": "imgui_internal:1407", "ov_cimguiname": "ImGuiListClipperRange_FromIndices", "ret": "ImGuiListClipperRange", "signature": "(int,int)", @@ -6372,7 +6792,7 @@ "defaults": {}, "funcname": "FromPositions", "is_static_function": true, - "location": "imgui_internal:1207", + "location": "imgui_internal:1408", "ov_cimguiname": "ImGuiListClipperRange_FromPositions", "ret": "ImGuiListClipperRange", "signature": "(float,float,int,int)", @@ -6403,7 +6823,7 @@ "items_height": "-1.0f" }, "funcname": "Begin", - "location": "imgui:2312", + "location": "imgui:2420", "ov_cimguiname": "ImGuiListClipper_Begin", "ret": "void", "signature": "(int,float)", @@ -6424,7 +6844,7 @@ "cimguiname": "ImGuiListClipper_End", "defaults": {}, "funcname": "End", - "location": "imgui:2313", + "location": "imgui:2421", "ov_cimguiname": "ImGuiListClipper_End", "ret": "void", "signature": "()", @@ -6453,7 +6873,7 @@ "cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", "defaults": {}, "funcname": "ForceDisplayRangeByIndices", - "location": "imgui:2317", + "location": "imgui:2425", "ov_cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", "ret": "void", "signature": "(int,int)", @@ -6470,7 +6890,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiListClipper", - "location": "imgui:2310", + "location": "imgui:2418", "ov_cimguiname": "ImGuiListClipper_ImGuiListClipper", "signature": "()", "stname": "ImGuiListClipper" @@ -6490,7 +6910,7 @@ "cimguiname": "ImGuiListClipper_Step", "defaults": {}, "funcname": "Step", - "location": "imgui:2314", + "location": "imgui:2422", "ov_cimguiname": "ImGuiListClipper_Step", "ret": "bool", "signature": "()", @@ -6510,7 +6930,7 @@ "cimguiname": "ImGuiListClipper_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2311", + "location": "imgui:2419", "ov_cimguiname": "ImGuiListClipper_destroy", "realdestructor": true, "ret": "void", @@ -6536,7 +6956,7 @@ "cimguiname": "ImGuiMenuColumns_CalcNextTotalWidth", "defaults": {}, "funcname": "CalcNextTotalWidth", - "location": "imgui_internal:1024", + "location": "imgui_internal:1052", "ov_cimguiname": "ImGuiMenuColumns_CalcNextTotalWidth", "ret": "void", "signature": "(bool)", @@ -6573,7 +6993,7 @@ "cimguiname": "ImGuiMenuColumns_DeclColumns", "defaults": {}, "funcname": "DeclColumns", - "location": "imgui_internal:1023", + "location": "imgui_internal:1051", "ov_cimguiname": "ImGuiMenuColumns_DeclColumns", "ret": "float", "signature": "(float,float,float,float)", @@ -6590,7 +7010,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiMenuColumns", - "location": "imgui_internal:1021", + "location": "imgui_internal:1049", "ov_cimguiname": "ImGuiMenuColumns_ImGuiMenuColumns", "signature": "()", "stname": "ImGuiMenuColumns" @@ -6618,7 +7038,7 @@ "cimguiname": "ImGuiMenuColumns_Update", "defaults": {}, "funcname": "Update", - "location": "imgui_internal:1022", + "location": "imgui_internal:1050", "ov_cimguiname": "ImGuiMenuColumns_Update", "ret": "void", "signature": "(float,bool)", @@ -6654,7 +7074,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiMetricsConfig", - "location": "imgui_internal:1613", + "location": "imgui_internal:1849", "ov_cimguiname": "ImGuiMetricsConfig_ImGuiMetricsConfig", "signature": "()", "stname": "ImGuiMetricsConfig" @@ -6693,7 +7113,7 @@ "cimguiname": "ImGuiNavItemData_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui_internal:1305", + "location": "imgui_internal:1497", "ov_cimguiname": "ImGuiNavItemData_Clear", "ret": "void", "signature": "()", @@ -6710,7 +7130,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiNavItemData", - "location": "imgui_internal:1304", + "location": "imgui_internal:1496", "ov_cimguiname": "ImGuiNavItemData_ImGuiNavItemData", "signature": "()", "stname": "ImGuiNavItemData" @@ -6749,7 +7169,7 @@ "cimguiname": "ImGuiNextItemData_ClearFlags", "defaults": {}, "funcname": "ClearFlags", - "location": "imgui_internal:1138", + "location": "imgui_internal:1167", "ov_cimguiname": "ImGuiNextItemData_ClearFlags", "ret": "void", "signature": "()", @@ -6766,7 +7186,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiNextItemData", - "location": "imgui_internal:1137", + "location": "imgui_internal:1166", "ov_cimguiname": "ImGuiNextItemData_ImGuiNextItemData", "signature": "()", "stname": "ImGuiNextItemData" @@ -6805,7 +7225,7 @@ "cimguiname": "ImGuiNextWindowData_ClearFlags", "defaults": {}, "funcname": "ClearFlags", - "location": "imgui_internal:1119", + "location": "imgui_internal:1148", "ov_cimguiname": "ImGuiNextWindowData_ClearFlags", "ret": "void", "signature": "()", @@ -6822,7 +7242,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiNextWindowData", - "location": "imgui_internal:1118", + "location": "imgui_internal:1147", "ov_cimguiname": "ImGuiNextWindowData_ImGuiNextWindowData", "signature": "()", "stname": "ImGuiNextWindowData" @@ -6857,7 +7277,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiOldColumnData", - "location": "imgui_internal:1340", + "location": "imgui_internal:1532", "ov_cimguiname": "ImGuiOldColumnData_ImGuiOldColumnData", "signature": "()", "stname": "ImGuiOldColumnData" @@ -6892,7 +7312,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiOldColumns", - "location": "imgui_internal:1361", + "location": "imgui_internal:1553", "ov_cimguiname": "ImGuiOldColumns_ImGuiOldColumns", "signature": "()", "stname": "ImGuiOldColumns" @@ -6927,7 +7347,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiOnceUponAFrame", - "location": "imgui:2176", + "location": "imgui:2284", "ov_cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", "signature": "()", "stname": "ImGuiOnceUponAFrame" @@ -6966,7 +7386,7 @@ "cimguiname": "ImGuiPayload_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2130", + "location": "imgui:2238", "ov_cimguiname": "ImGuiPayload_Clear", "ret": "void", "signature": "()", @@ -6983,7 +7403,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPayload", - "location": "imgui:2129", + "location": "imgui:2237", "ov_cimguiname": "ImGuiPayload_ImGuiPayload", "signature": "()", "stname": "ImGuiPayload" @@ -7007,7 +7427,7 @@ "cimguiname": "ImGuiPayload_IsDataType", "defaults": {}, "funcname": "IsDataType", - "location": "imgui:2131", + "location": "imgui:2239", "ov_cimguiname": "ImGuiPayload_IsDataType", "ret": "bool", "signature": "(const char*)const", @@ -7028,7 +7448,7 @@ "cimguiname": "ImGuiPayload_IsDelivery", "defaults": {}, "funcname": "IsDelivery", - "location": "imgui:2133", + "location": "imgui:2241", "ov_cimguiname": "ImGuiPayload_IsDelivery", "ret": "bool", "signature": "()const", @@ -7049,7 +7469,7 @@ "cimguiname": "ImGuiPayload_IsPreview", "defaults": {}, "funcname": "IsPreview", - "location": "imgui:2132", + "location": "imgui:2240", "ov_cimguiname": "ImGuiPayload_IsPreview", "ret": "bool", "signature": "()const", @@ -7085,7 +7505,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPlatformIO", - "location": "imgui:3068", + "location": "imgui:3182", "ov_cimguiname": "ImGuiPlatformIO_ImGuiPlatformIO", "signature": "()", "stname": "ImGuiPlatformIO" @@ -7110,6 +7530,41 @@ "stname": "ImGuiPlatformIO" } ], + "ImGuiPlatformImeData_ImGuiPlatformImeData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPlatformImeData", + "location": "imgui:3202", + "ov_cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "signature": "()", + "stname": "ImGuiPlatformImeData" + } + ], + "ImGuiPlatformImeData_destroy": [ + { + "args": "(ImGuiPlatformImeData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPlatformImeData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiPlatformImeData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPlatformImeData_destroy", + "ret": "void", + "signature": "(ImGuiPlatformImeData*)", + "stname": "ImGuiPlatformImeData" + } + ], "ImGuiPlatformMonitor_ImGuiPlatformMonitor": [ { "args": "()", @@ -7120,7 +7575,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPlatformMonitor", - "location": "imgui:3078", + "location": "imgui:3192", "ov_cimguiname": "ImGuiPlatformMonitor_ImGuiPlatformMonitor", "signature": "()", "stname": "ImGuiPlatformMonitor" @@ -7155,7 +7610,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPopupData", - "location": "imgui_internal:1075", + "location": "imgui_internal:1104", "ov_cimguiname": "ImGuiPopupData_ImGuiPopupData", "signature": "()", "stname": "ImGuiPopupData" @@ -7195,8 +7650,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPtrOrIndex", - "location": "imgui_internal:1190", - "ov_cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndexPtr", + "location": "imgui_internal:1220", + "ov_cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr", "signature": "(void*)", "stname": "ImGuiPtrOrIndex" }, @@ -7214,8 +7669,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPtrOrIndex", - "location": "imgui_internal:1191", - "ov_cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndexInt", + "location": "imgui_internal:1221", + "ov_cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int", "signature": "(int)", "stname": "ImGuiPtrOrIndex" } @@ -7249,7 +7704,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiSettingsHandler", - "location": "imgui_internal:1594", + "location": "imgui_internal:1788", "ov_cimguiname": "ImGuiSettingsHandler_ImGuiSettingsHandler", "signature": "()", "stname": "ImGuiSettingsHandler" @@ -7284,7 +7739,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStackLevelInfo", - "location": "imgui_internal:1634", + "location": "imgui_internal:1867", "ov_cimguiname": "ImGuiStackLevelInfo_ImGuiStackLevelInfo", "signature": "()", "stname": "ImGuiStackLevelInfo" @@ -7323,7 +7778,7 @@ "cimguiname": "ImGuiStackSizes_CompareWithCurrentState", "defaults": {}, "funcname": "CompareWithCurrentState", - "location": "imgui_internal:1168", + "location": "imgui_internal:1197", "ov_cimguiname": "ImGuiStackSizes_CompareWithCurrentState", "ret": "void", "signature": "()", @@ -7340,7 +7795,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStackSizes", - "location": "imgui_internal:1166", + "location": "imgui_internal:1195", "ov_cimguiname": "ImGuiStackSizes_ImGuiStackSizes", "signature": "()", "stname": "ImGuiStackSizes" @@ -7360,7 +7815,7 @@ "cimguiname": "ImGuiStackSizes_SetToCurrentState", "defaults": {}, "funcname": "SetToCurrentState", - "location": "imgui_internal:1167", + "location": "imgui_internal:1196", "ov_cimguiname": "ImGuiStackSizes_SetToCurrentState", "ret": "void", "signature": "()", @@ -7396,7 +7851,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStackTool", - "location": "imgui_internal:1645", + "location": "imgui_internal:1880", "ov_cimguiname": "ImGuiStackTool_ImGuiStackTool", "signature": "()", "stname": "ImGuiStackTool" @@ -7440,8 +7895,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStoragePair", - "location": "imgui:2243", - "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePairInt", + "location": "imgui:2351", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Int", "signature": "(ImGuiID,int)", "stname": "ImGuiStoragePair" }, @@ -7463,8 +7918,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStoragePair", - "location": "imgui:2244", - "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePairFloat", + "location": "imgui:2352", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Float", "signature": "(ImGuiID,float)", "stname": "ImGuiStoragePair" }, @@ -7486,8 +7941,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStoragePair", - "location": "imgui:2245", - "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePairPtr", + "location": "imgui:2353", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Ptr", "signature": "(ImGuiID,void*)", "stname": "ImGuiStoragePair" } @@ -7525,7 +7980,7 @@ "cimguiname": "ImGuiStorage_BuildSortByKey", "defaults": {}, "funcname": "BuildSortByKey", - "location": "imgui:2276", + "location": "imgui:2384", "ov_cimguiname": "ImGuiStorage_BuildSortByKey", "ret": "void", "signature": "()", @@ -7546,7 +8001,7 @@ "cimguiname": "ImGuiStorage_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2253", + "location": "imgui:2361", "ov_cimguiname": "ImGuiStorage_Clear", "ret": "void", "signature": "()", @@ -7577,7 +8032,7 @@ "default_val": "false" }, "funcname": "GetBool", - "location": "imgui:2256", + "location": "imgui:2364", "ov_cimguiname": "ImGuiStorage_GetBool", "ret": "bool", "signature": "(ImGuiID,bool)const", @@ -7608,7 +8063,7 @@ "default_val": "false" }, "funcname": "GetBoolRef", - "location": "imgui:2268", + "location": "imgui:2376", "ov_cimguiname": "ImGuiStorage_GetBoolRef", "ret": "bool*", "signature": "(ImGuiID,bool)", @@ -7639,7 +8094,7 @@ "default_val": "0.0f" }, "funcname": "GetFloat", - "location": "imgui:2258", + "location": "imgui:2366", "ov_cimguiname": "ImGuiStorage_GetFloat", "ret": "float", "signature": "(ImGuiID,float)const", @@ -7670,7 +8125,7 @@ "default_val": "0.0f" }, "funcname": "GetFloatRef", - "location": "imgui:2269", + "location": "imgui:2377", "ov_cimguiname": "ImGuiStorage_GetFloatRef", "ret": "float*", "signature": "(ImGuiID,float)", @@ -7701,7 +8156,7 @@ "default_val": "0" }, "funcname": "GetInt", - "location": "imgui:2254", + "location": "imgui:2362", "ov_cimguiname": "ImGuiStorage_GetInt", "ret": "int", "signature": "(ImGuiID,int)const", @@ -7732,7 +8187,7 @@ "default_val": "0" }, "funcname": "GetIntRef", - "location": "imgui:2267", + "location": "imgui:2375", "ov_cimguiname": "ImGuiStorage_GetIntRef", "ret": "int*", "signature": "(ImGuiID,int)", @@ -7757,7 +8212,7 @@ "cimguiname": "ImGuiStorage_GetVoidPtr", "defaults": {}, "funcname": "GetVoidPtr", - "location": "imgui:2260", + "location": "imgui:2368", "ov_cimguiname": "ImGuiStorage_GetVoidPtr", "ret": "void*", "signature": "(ImGuiID)const", @@ -7788,7 +8243,7 @@ "default_val": "NULL" }, "funcname": "GetVoidPtrRef", - "location": "imgui:2270", + "location": "imgui:2378", "ov_cimguiname": "ImGuiStorage_GetVoidPtrRef", "ret": "void**", "signature": "(ImGuiID,void*)", @@ -7813,7 +8268,7 @@ "cimguiname": "ImGuiStorage_SetAllInt", "defaults": {}, "funcname": "SetAllInt", - "location": "imgui:2273", + "location": "imgui:2381", "ov_cimguiname": "ImGuiStorage_SetAllInt", "ret": "void", "signature": "(int)", @@ -7842,7 +8297,7 @@ "cimguiname": "ImGuiStorage_SetBool", "defaults": {}, "funcname": "SetBool", - "location": "imgui:2257", + "location": "imgui:2365", "ov_cimguiname": "ImGuiStorage_SetBool", "ret": "void", "signature": "(ImGuiID,bool)", @@ -7871,7 +8326,7 @@ "cimguiname": "ImGuiStorage_SetFloat", "defaults": {}, "funcname": "SetFloat", - "location": "imgui:2259", + "location": "imgui:2367", "ov_cimguiname": "ImGuiStorage_SetFloat", "ret": "void", "signature": "(ImGuiID,float)", @@ -7900,7 +8355,7 @@ "cimguiname": "ImGuiStorage_SetInt", "defaults": {}, "funcname": "SetInt", - "location": "imgui:2255", + "location": "imgui:2363", "ov_cimguiname": "ImGuiStorage_SetInt", "ret": "void", "signature": "(ImGuiID,int)", @@ -7929,7 +8384,7 @@ "cimguiname": "ImGuiStorage_SetVoidPtr", "defaults": {}, "funcname": "SetVoidPtr", - "location": "imgui:2261", + "location": "imgui:2369", "ov_cimguiname": "ImGuiStorage_SetVoidPtr", "ret": "void", "signature": "(ImGuiID,void*)", @@ -7955,8 +8410,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStyleMod", - "location": "imgui_internal:975", - "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleModInt", + "location": "imgui_internal:1003", + "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleMod_Int", "signature": "(ImGuiStyleVar,int)", "stname": "ImGuiStyleMod" }, @@ -7978,8 +8433,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStyleMod", - "location": "imgui_internal:976", - "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleModFloat", + "location": "imgui_internal:1004", + "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleMod_Float", "signature": "(ImGuiStyleVar,float)", "stname": "ImGuiStyleMod" }, @@ -8001,8 +8456,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStyleMod", - "location": "imgui_internal:977", - "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleModVec2", + "location": "imgui_internal:1005", + "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleMod_Vec2", "signature": "(ImGuiStyleVar,ImVec2)", "stname": "ImGuiStyleMod" } @@ -8036,7 +8491,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStyle", - "location": "imgui:1886", + "location": "imgui:1953", "ov_cimguiname": "ImGuiStyle_ImGuiStyle", "signature": "()", "stname": "ImGuiStyle" @@ -8060,7 +8515,7 @@ "cimguiname": "ImGuiStyle_ScaleAllSizes", "defaults": {}, "funcname": "ScaleAllSizes", - "location": "imgui:1887", + "location": "imgui:1954", "ov_cimguiname": "ImGuiStyle_ScaleAllSizes", "ret": "void", "signature": "(float)", @@ -8104,7 +8559,7 @@ "cimguiname": "ImGuiTabBar_GetTabName", "defaults": {}, "funcname": "GetTabName", - "location": "imgui_internal:2370", + "location": "imgui_internal:2648", "ov_cimguiname": "ImGuiTabBar_GetTabName", "ret": "const char*", "signature": "(const ImGuiTabItem*)const", @@ -8129,7 +8584,7 @@ "cimguiname": "ImGuiTabBar_GetTabOrder", "defaults": {}, "funcname": "GetTabOrder", - "location": "imgui_internal:2369", + "location": "imgui_internal:2647", "ov_cimguiname": "ImGuiTabBar_GetTabOrder", "ret": "int", "signature": "(const ImGuiTabItem*)const", @@ -8146,7 +8601,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTabBar", - "location": "imgui_internal:2368", + "location": "imgui_internal:2646", "ov_cimguiname": "ImGuiTabBar_ImGuiTabBar", "signature": "()", "stname": "ImGuiTabBar" @@ -8181,7 +8636,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTabItem", - "location": "imgui_internal:2330", + "location": "imgui_internal:2608", "ov_cimguiname": "ImGuiTabItem_ImGuiTabItem", "signature": "()", "stname": "ImGuiTabItem" @@ -8216,7 +8671,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableColumnSettings", - "location": "imgui_internal:2606", + "location": "imgui_internal:2894", "ov_cimguiname": "ImGuiTableColumnSettings_ImGuiTableColumnSettings", "signature": "()", "stname": "ImGuiTableColumnSettings" @@ -8251,7 +8706,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableColumnSortSpecs", - "location": "imgui:2144", + "location": "imgui:2252", "ov_cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", "signature": "()", "stname": "ImGuiTableColumnSortSpecs" @@ -8286,7 +8741,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableColumn", - "location": "imgui_internal:2439", + "location": "imgui_internal:2717", "ov_cimguiname": "ImGuiTableColumn_ImGuiTableColumn", "signature": "()", "stname": "ImGuiTableColumn" @@ -8311,6 +8766,41 @@ "stname": "ImGuiTableColumn" } ], + "ImGuiTableInstanceData_ImGuiTableInstanceData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableInstanceData_ImGuiTableInstanceData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTableInstanceData", + "location": "imgui_internal:2744", + "ov_cimguiname": "ImGuiTableInstanceData_ImGuiTableInstanceData", + "signature": "()", + "stname": "ImGuiTableInstanceData" + } + ], + "ImGuiTableInstanceData_destroy": [ + { + "args": "(ImGuiTableInstanceData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTableInstanceData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTableInstanceData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableInstanceData_destroy", + "ret": "void", + "signature": "(ImGuiTableInstanceData*)", + "stname": "ImGuiTableInstanceData" + } + ], "ImGuiTableSettings_GetColumnSettings": [ { "args": "(ImGuiTableSettings* self)", @@ -8325,7 +8815,7 @@ "cimguiname": "ImGuiTableSettings_GetColumnSettings", "defaults": {}, "funcname": "GetColumnSettings", - "location": "imgui_internal:2629", + "location": "imgui_internal:2917", "ov_cimguiname": "ImGuiTableSettings_GetColumnSettings", "ret": "ImGuiTableColumnSettings*", "signature": "()", @@ -8342,7 +8832,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableSettings", - "location": "imgui_internal:2628", + "location": "imgui_internal:2916", "ov_cimguiname": "ImGuiTableSettings_ImGuiTableSettings", "signature": "()", "stname": "ImGuiTableSettings" @@ -8377,7 +8867,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableSortSpecs", - "location": "imgui:2157", + "location": "imgui:2265", "ov_cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", "signature": "()", "stname": "ImGuiTableSortSpecs" @@ -8412,7 +8902,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableTempData", - "location": "imgui_internal:2591", + "location": "imgui_internal:2879", "ov_cimguiname": "ImGuiTableTempData_ImGuiTableTempData", "signature": "()", "stname": "ImGuiTableTempData" @@ -8447,7 +8937,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTable", - "location": "imgui_internal:2567", + "location": "imgui_internal:2855", "ov_cimguiname": "ImGuiTable_ImGuiTable", "signature": "()", "stname": "ImGuiTable" @@ -8466,7 +8956,7 @@ "cimguiname": "ImGuiTable_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:2568", + "location": "imgui_internal:2856", "ov_cimguiname": "ImGuiTable_destroy", "realdestructor": true, "ret": "void", @@ -8484,7 +8974,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTextBuffer", - "location": "imgui:2214", + "location": "imgui:2322", "ov_cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", "signature": "()", "stname": "ImGuiTextBuffer" @@ -8514,7 +9004,7 @@ "str_end": "NULL" }, "funcname": "append", - "location": "imgui:2223", + "location": "imgui:2331", "ov_cimguiname": "ImGuiTextBuffer_append", "ret": "void", "signature": "(const char*,const char*)", @@ -8544,7 +9034,7 @@ "defaults": {}, "funcname": "appendf", "isvararg": "...)", - "location": "imgui:2224", + "location": "imgui:2332", "manual": true, "ov_cimguiname": "ImGuiTextBuffer_appendf", "ret": "void", @@ -8574,7 +9064,7 @@ "cimguiname": "ImGuiTextBuffer_appendfv", "defaults": {}, "funcname": "appendfv", - "location": "imgui:2225", + "location": "imgui:2333", "ov_cimguiname": "ImGuiTextBuffer_appendfv", "ret": "void", "signature": "(const char*,va_list)", @@ -8595,7 +9085,7 @@ "cimguiname": "ImGuiTextBuffer_begin", "defaults": {}, "funcname": "begin", - "location": "imgui:2216", + "location": "imgui:2324", "ov_cimguiname": "ImGuiTextBuffer_begin", "ret": "const char*", "signature": "()const", @@ -8616,7 +9106,7 @@ "cimguiname": "ImGuiTextBuffer_c_str", "defaults": {}, "funcname": "c_str", - "location": "imgui:2222", + "location": "imgui:2330", "ov_cimguiname": "ImGuiTextBuffer_c_str", "ret": "const char*", "signature": "()const", @@ -8637,7 +9127,7 @@ "cimguiname": "ImGuiTextBuffer_clear", "defaults": {}, "funcname": "clear", - "location": "imgui:2220", + "location": "imgui:2328", "ov_cimguiname": "ImGuiTextBuffer_clear", "ret": "void", "signature": "()", @@ -8677,7 +9167,7 @@ "cimguiname": "ImGuiTextBuffer_empty", "defaults": {}, "funcname": "empty", - "location": "imgui:2219", + "location": "imgui:2327", "ov_cimguiname": "ImGuiTextBuffer_empty", "ret": "bool", "signature": "()const", @@ -8698,7 +9188,7 @@ "cimguiname": "ImGuiTextBuffer_end", "defaults": {}, "funcname": "end", - "location": "imgui:2217", + "location": "imgui:2325", "ov_cimguiname": "ImGuiTextBuffer_end", "ret": "const char*", "signature": "()const", @@ -8723,7 +9213,7 @@ "cimguiname": "ImGuiTextBuffer_reserve", "defaults": {}, "funcname": "reserve", - "location": "imgui:2221", + "location": "imgui:2329", "ov_cimguiname": "ImGuiTextBuffer_reserve", "ret": "void", "signature": "(int)", @@ -8744,7 +9234,7 @@ "cimguiname": "ImGuiTextBuffer_size", "defaults": {}, "funcname": "size", - "location": "imgui:2218", + "location": "imgui:2326", "ov_cimguiname": "ImGuiTextBuffer_size", "ret": "int", "signature": "()const", @@ -8765,7 +9255,7 @@ "cimguiname": "ImGuiTextFilter_Build", "defaults": {}, "funcname": "Build", - "location": "imgui:2187", + "location": "imgui:2295", "ov_cimguiname": "ImGuiTextFilter_Build", "ret": "void", "signature": "()", @@ -8786,7 +9276,7 @@ "cimguiname": "ImGuiTextFilter_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2188", + "location": "imgui:2296", "ov_cimguiname": "ImGuiTextFilter_Clear", "ret": "void", "signature": "()", @@ -8818,7 +9308,7 @@ "width": "0.0f" }, "funcname": "Draw", - "location": "imgui:2185", + "location": "imgui:2293", "ov_cimguiname": "ImGuiTextFilter_Draw", "ret": "bool", "signature": "(const char*,float)", @@ -8842,7 +9332,7 @@ "default_filter": "\"\"" }, "funcname": "ImGuiTextFilter", - "location": "imgui:2184", + "location": "imgui:2292", "ov_cimguiname": "ImGuiTextFilter_ImGuiTextFilter", "signature": "(const char*)", "stname": "ImGuiTextFilter" @@ -8862,7 +9352,7 @@ "cimguiname": "ImGuiTextFilter_IsActive", "defaults": {}, "funcname": "IsActive", - "location": "imgui:2189", + "location": "imgui:2297", "ov_cimguiname": "ImGuiTextFilter_IsActive", "ret": "bool", "signature": "()const", @@ -8893,7 +9383,7 @@ "text_end": "NULL" }, "funcname": "PassFilter", - "location": "imgui:2186", + "location": "imgui:2294", "ov_cimguiname": "ImGuiTextFilter_PassFilter", "ret": "bool", "signature": "(const char*,const char*)const", @@ -8919,6 +9409,139 @@ "stname": "ImGuiTextFilter" } ], + "ImGuiTextIndex_append": [ + { + "args": "(ImGuiTextIndex* self,const char* base,int old_size,int new_size)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextIndex*" + }, + { + "name": "base", + "type": "const char*" + }, + { + "name": "old_size", + "type": "int" + }, + { + "name": "new_size", + "type": "int" + } + ], + "argsoriginal": "(const char* base,int old_size,int new_size)", + "call_args": "(base,old_size,new_size)", + "cimguiname": "ImGuiTextIndex_append", + "defaults": {}, + "funcname": "append", + "location": "imgui_internal:725", + "ov_cimguiname": "ImGuiTextIndex_append", + "ret": "void", + "signature": "(const char*,int,int)", + "stname": "ImGuiTextIndex" + } + ], + "ImGuiTextIndex_clear": [ + { + "args": "(ImGuiTextIndex* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextIndex*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextIndex_clear", + "defaults": {}, + "funcname": "clear", + "location": "imgui_internal:721", + "ov_cimguiname": "ImGuiTextIndex_clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextIndex" + } + ], + "ImGuiTextIndex_get_line_begin": [ + { + "args": "(ImGuiTextIndex* self,const char* base,int n)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextIndex*" + }, + { + "name": "base", + "type": "const char*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(const char* base,int n)", + "call_args": "(base,n)", + "cimguiname": "ImGuiTextIndex_get_line_begin", + "defaults": {}, + "funcname": "get_line_begin", + "location": "imgui_internal:723", + "ov_cimguiname": "ImGuiTextIndex_get_line_begin", + "ret": "const char*", + "signature": "(const char*,int)", + "stname": "ImGuiTextIndex" + } + ], + "ImGuiTextIndex_get_line_end": [ + { + "args": "(ImGuiTextIndex* self,const char* base,int n)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextIndex*" + }, + { + "name": "base", + "type": "const char*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(const char* base,int n)", + "call_args": "(base,n)", + "cimguiname": "ImGuiTextIndex_get_line_end", + "defaults": {}, + "funcname": "get_line_end", + "location": "imgui_internal:724", + "ov_cimguiname": "ImGuiTextIndex_get_line_end", + "ret": "const char*", + "signature": "(const char*,int)", + "stname": "ImGuiTextIndex" + } + ], + "ImGuiTextIndex_size": [ + { + "args": "(ImGuiTextIndex* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextIndex*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextIndex_size", + "defaults": {}, + "funcname": "size", + "location": "imgui_internal:722", + "ov_cimguiname": "ImGuiTextIndex_size", + "ret": "int", + "signature": "()", + "stname": "ImGuiTextIndex" + } + ], "ImGuiTextRange_ImGuiTextRange": [ { "args": "()", @@ -8929,8 +9552,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTextRange", - "location": "imgui:2197", - "ov_cimguiname": "ImGuiTextRange_ImGuiTextRangeNil", + "location": "imgui:2305", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Nil", "signature": "()", "stname": "ImGuiTextRange" }, @@ -8952,8 +9575,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTextRange", - "location": "imgui:2198", - "ov_cimguiname": "ImGuiTextRange_ImGuiTextRangeStr", + "location": "imgui:2306", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Str", "signature": "(const char*,const char*)", "stname": "ImGuiTextRange" } @@ -8991,7 +9614,7 @@ "cimguiname": "ImGuiTextRange_empty", "defaults": {}, "funcname": "empty", - "location": "imgui:2199", + "location": "imgui:2307", "ov_cimguiname": "ImGuiTextRange_empty", "ret": "bool", "signature": "()const", @@ -9020,7 +9643,7 @@ "cimguiname": "ImGuiTextRange_split", "defaults": {}, "funcname": "split", - "location": "imgui:2200", + "location": "imgui:2308", "ov_cimguiname": "ImGuiTextRange_split", "ret": "void", "signature": "(char,ImVector_ImGuiTextRange*)const", @@ -9049,7 +9672,7 @@ "cimguiname": "ImGuiViewportP_CalcWorkRectPos", "defaults": {}, "funcname": "CalcWorkRectPos", - "location": "imgui_internal:1548", + "location": "imgui_internal:1742", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_CalcWorkRectPos", "ret": "void", @@ -9083,7 +9706,7 @@ "cimguiname": "ImGuiViewportP_CalcWorkRectSize", "defaults": {}, "funcname": "CalcWorkRectSize", - "location": "imgui_internal:1549", + "location": "imgui_internal:1743", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_CalcWorkRectSize", "ret": "void", @@ -9105,7 +9728,7 @@ "cimguiname": "ImGuiViewportP_ClearRequestFlags", "defaults": {}, "funcname": "ClearRequestFlags", - "location": "imgui_internal:1545", + "location": "imgui_internal:1739", "ov_cimguiname": "ImGuiViewportP_ClearRequestFlags", "ret": "void", "signature": "()", @@ -9130,7 +9753,7 @@ "cimguiname": "ImGuiViewportP_GetBuildWorkRect", "defaults": {}, "funcname": "GetBuildWorkRect", - "location": "imgui_internal:1555", + "location": "imgui_internal:1749", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_GetBuildWorkRect", "ret": "void", @@ -9156,7 +9779,7 @@ "cimguiname": "ImGuiViewportP_GetMainRect", "defaults": {}, "funcname": "GetMainRect", - "location": "imgui_internal:1553", + "location": "imgui_internal:1747", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_GetMainRect", "ret": "void", @@ -9182,7 +9805,7 @@ "cimguiname": "ImGuiViewportP_GetWorkRect", "defaults": {}, "funcname": "GetWorkRect", - "location": "imgui_internal:1554", + "location": "imgui_internal:1748", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_GetWorkRect", "ret": "void", @@ -9200,7 +9823,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiViewportP", - "location": "imgui_internal:1543", + "location": "imgui_internal:1737", "ov_cimguiname": "ImGuiViewportP_ImGuiViewportP", "signature": "()", "stname": "ImGuiViewportP" @@ -9220,7 +9843,7 @@ "cimguiname": "ImGuiViewportP_UpdateWorkRect", "defaults": {}, "funcname": "UpdateWorkRect", - "location": "imgui_internal:1550", + "location": "imgui_internal:1744", "ov_cimguiname": "ImGuiViewportP_UpdateWorkRect", "ret": "void", "signature": "()", @@ -9240,7 +9863,7 @@ "cimguiname": "ImGuiViewportP_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:1544", + "location": "imgui_internal:1738", "ov_cimguiname": "ImGuiViewportP_destroy", "realdestructor": true, "ret": "void", @@ -9266,7 +9889,7 @@ "cimguiname": "ImGuiViewport_GetCenter", "defaults": {}, "funcname": "GetCenter", - "location": "imgui:2955", + "location": "imgui:3070", "nonUDT": 1, "ov_cimguiname": "ImGuiViewport_GetCenter", "ret": "void", @@ -9292,7 +9915,7 @@ "cimguiname": "ImGuiViewport_GetWorkCenter", "defaults": {}, "funcname": "GetWorkCenter", - "location": "imgui:2956", + "location": "imgui:3071", "nonUDT": 1, "ov_cimguiname": "ImGuiViewport_GetWorkCenter", "ret": "void", @@ -9310,7 +9933,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiViewport", - "location": "imgui:2951", + "location": "imgui:3066", "ov_cimguiname": "ImGuiViewport_ImGuiViewport", "signature": "()", "stname": "ImGuiViewport" @@ -9329,7 +9952,7 @@ "cimguiname": "ImGuiViewport_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2952", + "location": "imgui:3067", "ov_cimguiname": "ImGuiViewport_destroy", "realdestructor": true, "ret": "void", @@ -9347,7 +9970,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiWindowClass", - "location": "imgui:2111", + "location": "imgui:2219", "ov_cimguiname": "ImGuiWindowClass_ImGuiWindowClass", "signature": "()", "stname": "ImGuiWindowClass" @@ -9386,7 +10009,7 @@ "cimguiname": "ImGuiWindowSettings_GetName", "defaults": {}, "funcname": "GetName", - "location": "imgui_internal:1579", + "location": "imgui_internal:1773", "ov_cimguiname": "ImGuiWindowSettings_GetName", "ret": "char*", "signature": "()", @@ -9403,7 +10026,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiWindowSettings", - "location": "imgui_internal:1578", + "location": "imgui_internal:1772", "ov_cimguiname": "ImGuiWindowSettings_ImGuiWindowSettings", "signature": "()", "stname": "ImGuiWindowSettings" @@ -9442,7 +10065,7 @@ "cimguiname": "ImGuiWindow_CalcFontSize", "defaults": {}, "funcname": "CalcFontSize", - "location": "imgui_internal:2285", + "location": "imgui_internal:2562", "ov_cimguiname": "ImGuiWindow_CalcFontSize", "ret": "float", "signature": "()const", @@ -9473,8 +10096,8 @@ "str_end": "NULL" }, "funcname": "GetID", - "location": "imgui_internal:2275", - "ov_cimguiname": "ImGuiWindow_GetIDStr", + "location": "imgui_internal:2555", + "ov_cimguiname": "ImGuiWindow_GetID_Str", "ret": "ImGuiID", "signature": "(const char*,const char*)", "stname": "ImGuiWindow" @@ -9496,8 +10119,8 @@ "cimguiname": "ImGuiWindow_GetID", "defaults": {}, "funcname": "GetID", - "location": "imgui_internal:2276", - "ov_cimguiname": "ImGuiWindow_GetIDPtr", + "location": "imgui_internal:2556", + "ov_cimguiname": "ImGuiWindow_GetID_Ptr", "ret": "ImGuiID", "signature": "(const void*)", "stname": "ImGuiWindow" @@ -9519,8 +10142,8 @@ "cimguiname": "ImGuiWindow_GetID", "defaults": {}, "funcname": "GetID", - "location": "imgui_internal:2277", - "ov_cimguiname": "ImGuiWindow_GetIDInt", + "location": "imgui_internal:2557", + "ov_cimguiname": "ImGuiWindow_GetID_Int", "ret": "ImGuiID", "signature": "(int)", "stname": "ImGuiWindow" @@ -9544,90 +10167,13 @@ "cimguiname": "ImGuiWindow_GetIDFromRectangle", "defaults": {}, "funcname": "GetIDFromRectangle", - "location": "imgui_internal:2281", + "location": "imgui_internal:2558", "ov_cimguiname": "ImGuiWindow_GetIDFromRectangle", "ret": "ImGuiID", "signature": "(const ImRect)", "stname": "ImGuiWindow" } ], - "ImGuiWindow_GetIDNoKeepAlive": [ - { - "args": "(ImGuiWindow* self,const char* str,const char* str_end)", - "argsT": [ - { - "name": "self", - "type": "ImGuiWindow*" - }, - { - "name": "str", - "type": "const char*" - }, - { - "name": "str_end", - "type": "const char*" - } - ], - "argsoriginal": "(const char* str,const char* str_end=((void*)0))", - "call_args": "(str,str_end)", - "cimguiname": "ImGuiWindow_GetIDNoKeepAlive", - "defaults": { - "str_end": "NULL" - }, - "funcname": "GetIDNoKeepAlive", - "location": "imgui_internal:2278", - "ov_cimguiname": "ImGuiWindow_GetIDNoKeepAliveStr", - "ret": "ImGuiID", - "signature": "(const char*,const char*)", - "stname": "ImGuiWindow" - }, - { - "args": "(ImGuiWindow* self,const void* ptr)", - "argsT": [ - { - "name": "self", - "type": "ImGuiWindow*" - }, - { - "name": "ptr", - "type": "const void*" - } - ], - "argsoriginal": "(const void* ptr)", - "call_args": "(ptr)", - "cimguiname": "ImGuiWindow_GetIDNoKeepAlive", - "defaults": {}, - "funcname": "GetIDNoKeepAlive", - "location": "imgui_internal:2279", - "ov_cimguiname": "ImGuiWindow_GetIDNoKeepAlivePtr", - "ret": "ImGuiID", - "signature": "(const void*)", - "stname": "ImGuiWindow" - }, - { - "args": "(ImGuiWindow* self,int n)", - "argsT": [ - { - "name": "self", - "type": "ImGuiWindow*" - }, - { - "name": "n", - "type": "int" - } - ], - "argsoriginal": "(int n)", - "call_args": "(n)", - "cimguiname": "ImGuiWindow_GetIDNoKeepAlive", - "defaults": {}, - "funcname": "GetIDNoKeepAlive", - "location": "imgui_internal:2280", - "ov_cimguiname": "ImGuiWindow_GetIDNoKeepAliveInt", - "ret": "ImGuiID", - "signature": "(int)", - "stname": "ImGuiWindow" - } - ], "ImGuiWindow_ImGuiWindow": [ { "args": "(ImGuiContext* context,const char* name)", @@ -9647,7 +10193,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiWindow", - "location": "imgui_internal:2271", + "location": "imgui_internal:2551", "ov_cimguiname": "ImGuiWindow_ImGuiWindow", "signature": "(ImGuiContext*,const char*)", "stname": "ImGuiWindow" @@ -9667,7 +10213,7 @@ "cimguiname": "ImGuiWindow_MenuBarHeight", "defaults": {}, "funcname": "MenuBarHeight", - "location": "imgui_internal:2288", + "location": "imgui_internal:2565", "ov_cimguiname": "ImGuiWindow_MenuBarHeight", "ret": "float", "signature": "()const", @@ -9692,7 +10238,7 @@ "cimguiname": "ImGuiWindow_MenuBarRect", "defaults": {}, "funcname": "MenuBarRect", - "location": "imgui_internal:2289", + "location": "imgui_internal:2566", "nonUDT": 1, "ov_cimguiname": "ImGuiWindow_MenuBarRect", "ret": "void", @@ -9718,7 +10264,7 @@ "cimguiname": "ImGuiWindow_Rect", "defaults": {}, "funcname": "Rect", - "location": "imgui_internal:2284", + "location": "imgui_internal:2561", "nonUDT": 1, "ov_cimguiname": "ImGuiWindow_Rect", "ret": "void", @@ -9740,7 +10286,7 @@ "cimguiname": "ImGuiWindow_TitleBarHeight", "defaults": {}, "funcname": "TitleBarHeight", - "location": "imgui_internal:2286", + "location": "imgui_internal:2563", "ov_cimguiname": "ImGuiWindow_TitleBarHeight", "ret": "float", "signature": "()const", @@ -9765,7 +10311,7 @@ "cimguiname": "ImGuiWindow_TitleBarRect", "defaults": {}, "funcname": "TitleBarRect", - "location": "imgui_internal:2287", + "location": "imgui_internal:2564", "nonUDT": 1, "ov_cimguiname": "ImGuiWindow_TitleBarRect", "ret": "void", @@ -9786,7 +10332,7 @@ "cimguiname": "ImGuiWindow_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:2273", + "location": "imgui_internal:2553", "ov_cimguiname": "ImGuiWindow_destroy", "realdestructor": true, "ret": "void", @@ -9808,7 +10354,7 @@ "cimguiname": "ImPool_Add", "defaults": {}, "funcname": "Add", - "location": "imgui_internal:651", + "location": "imgui_internal:674", "ov_cimguiname": "ImPool_Add", "ret": "T*", "signature": "()", @@ -9830,7 +10376,7 @@ "cimguiname": "ImPool_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui_internal:650", + "location": "imgui_internal:673", "ov_cimguiname": "ImPool_Clear", "ret": "void", "signature": "()", @@ -9856,7 +10402,7 @@ "cimguiname": "ImPool_Contains", "defaults": {}, "funcname": "Contains", - "location": "imgui_internal:649", + "location": "imgui_internal:672", "ov_cimguiname": "ImPool_Contains", "ret": "bool", "signature": "(const T*)const", @@ -9878,7 +10424,7 @@ "cimguiname": "ImPool_GetAliveCount", "defaults": {}, "funcname": "GetAliveCount", - "location": "imgui_internal:658", + "location": "imgui_internal:681", "ov_cimguiname": "ImPool_GetAliveCount", "ret": "int", "signature": "()const", @@ -9900,7 +10446,7 @@ "cimguiname": "ImPool_GetBufSize", "defaults": {}, "funcname": "GetBufSize", - "location": "imgui_internal:659", + "location": "imgui_internal:682", "ov_cimguiname": "ImPool_GetBufSize", "ret": "int", "signature": "()const", @@ -9926,7 +10472,7 @@ "cimguiname": "ImPool_GetByIndex", "defaults": {}, "funcname": "GetByIndex", - "location": "imgui_internal:646", + "location": "imgui_internal:669", "ov_cimguiname": "ImPool_GetByIndex", "ret": "T*", "signature": "(ImPoolIdx)", @@ -9952,7 +10498,7 @@ "cimguiname": "ImPool_GetByKey", "defaults": {}, "funcname": "GetByKey", - "location": "imgui_internal:645", + "location": "imgui_internal:668", "ov_cimguiname": "ImPool_GetByKey", "ret": "T*", "signature": "(ImGuiID)", @@ -9978,7 +10524,7 @@ "cimguiname": "ImPool_GetIndex", "defaults": {}, "funcname": "GetIndex", - "location": "imgui_internal:647", + "location": "imgui_internal:670", "ov_cimguiname": "ImPool_GetIndex", "ret": "ImPoolIdx", "signature": "(const T*)const", @@ -10000,7 +10546,7 @@ "cimguiname": "ImPool_GetMapSize", "defaults": {}, "funcname": "GetMapSize", - "location": "imgui_internal:660", + "location": "imgui_internal:683", "ov_cimguiname": "ImPool_GetMapSize", "ret": "int", "signature": "()const", @@ -10026,7 +10572,7 @@ "cimguiname": "ImPool_GetOrAddByKey", "defaults": {}, "funcname": "GetOrAddByKey", - "location": "imgui_internal:648", + "location": "imgui_internal:671", "ov_cimguiname": "ImPool_GetOrAddByKey", "ret": "T*", "signature": "(ImGuiID)", @@ -10044,7 +10590,7 @@ "constructor": true, "defaults": {}, "funcname": "ImPool", - "location": "imgui_internal:643", + "location": "imgui_internal:666", "ov_cimguiname": "ImPool_ImPool", "signature": "()", "stname": "ImPool", @@ -10073,8 +10619,8 @@ "cimguiname": "ImPool_Remove", "defaults": {}, "funcname": "Remove", - "location": "imgui_internal:652", - "ov_cimguiname": "ImPool_RemoveTPtr", + "location": "imgui_internal:675", + "ov_cimguiname": "ImPool_Remove_TPtr", "ret": "void", "signature": "(ImGuiID,const T*)", "stname": "ImPool", @@ -10101,8 +10647,8 @@ "cimguiname": "ImPool_Remove", "defaults": {}, "funcname": "Remove", - "location": "imgui_internal:653", - "ov_cimguiname": "ImPool_RemovePoolIdx", + "location": "imgui_internal:676", + "ov_cimguiname": "ImPool_Remove_PoolIdx", "ret": "void", "signature": "(ImGuiID,ImPoolIdx)", "stname": "ImPool", @@ -10127,7 +10673,7 @@ "cimguiname": "ImPool_Reserve", "defaults": {}, "funcname": "Reserve", - "location": "imgui_internal:654", + "location": "imgui_internal:677", "ov_cimguiname": "ImPool_Reserve", "ret": "void", "signature": "(int)", @@ -10153,7 +10699,7 @@ "cimguiname": "ImPool_TryGetMapData", "defaults": {}, "funcname": "TryGetMapData", - "location": "imgui_internal:661", + "location": "imgui_internal:684", "ov_cimguiname": "ImPool_TryGetMapData", "ret": "T*", "signature": "(ImPoolIdx)", @@ -10174,7 +10720,7 @@ "cimguiname": "ImPool_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:644", + "location": "imgui_internal:667", "ov_cimguiname": "ImPool_destroy", "realdestructor": true, "ret": "void", @@ -10201,8 +10747,8 @@ "cimguiname": "ImRect_Add", "defaults": {}, "funcname": "Add", - "location": "imgui_internal:521", - "ov_cimguiname": "ImRect_AddVec2", + "location": "imgui_internal:543", + "ov_cimguiname": "ImRect_Add_Vec2", "ret": "void", "signature": "(const ImVec2)", "stname": "ImRect" @@ -10224,8 +10770,8 @@ "cimguiname": "ImRect_Add", "defaults": {}, "funcname": "Add", - "location": "imgui_internal:522", - "ov_cimguiname": "ImRect_AddRect", + "location": "imgui_internal:544", + "ov_cimguiname": "ImRect_Add_Rect", "ret": "void", "signature": "(const ImRect)", "stname": "ImRect" @@ -10249,7 +10795,7 @@ "cimguiname": "ImRect_ClipWith", "defaults": {}, "funcname": "ClipWith", - "location": "imgui_internal:528", + "location": "imgui_internal:550", "ov_cimguiname": "ImRect_ClipWith", "ret": "void", "signature": "(const ImRect)", @@ -10274,7 +10820,7 @@ "cimguiname": "ImRect_ClipWithFull", "defaults": {}, "funcname": "ClipWithFull", - "location": "imgui_internal:529", + "location": "imgui_internal:551", "ov_cimguiname": "ImRect_ClipWithFull", "ret": "void", "signature": "(const ImRect)", @@ -10299,8 +10845,8 @@ "cimguiname": "ImRect_Contains", "defaults": {}, "funcname": "Contains", - "location": "imgui_internal:518", - "ov_cimguiname": "ImRect_ContainsVec2", + "location": "imgui_internal:540", + "ov_cimguiname": "ImRect_Contains_Vec2", "ret": "bool", "signature": "(const ImVec2)const", "stname": "ImRect" @@ -10322,8 +10868,8 @@ "cimguiname": "ImRect_Contains", "defaults": {}, "funcname": "Contains", - "location": "imgui_internal:519", - "ov_cimguiname": "ImRect_ContainsRect", + "location": "imgui_internal:541", + "ov_cimguiname": "ImRect_Contains_Rect", "ret": "bool", "signature": "(const ImRect)const", "stname": "ImRect" @@ -10347,8 +10893,8 @@ "cimguiname": "ImRect_Expand", "defaults": {}, "funcname": "Expand", - "location": "imgui_internal:523", - "ov_cimguiname": "ImRect_ExpandFloat", + "location": "imgui_internal:545", + "ov_cimguiname": "ImRect_Expand_Float", "ret": "void", "signature": "(const float)", "stname": "ImRect" @@ -10370,8 +10916,8 @@ "cimguiname": "ImRect_Expand", "defaults": {}, "funcname": "Expand", - "location": "imgui_internal:524", - "ov_cimguiname": "ImRect_ExpandVec2", + "location": "imgui_internal:546", + "ov_cimguiname": "ImRect_Expand_Vec2", "ret": "void", "signature": "(const ImVec2)", "stname": "ImRect" @@ -10391,7 +10937,7 @@ "cimguiname": "ImRect_Floor", "defaults": {}, "funcname": "Floor", - "location": "imgui_internal:530", + "location": "imgui_internal:552", "ov_cimguiname": "ImRect_Floor", "ret": "void", "signature": "()", @@ -10412,7 +10958,7 @@ "cimguiname": "ImRect_GetArea", "defaults": {}, "funcname": "GetArea", - "location": "imgui_internal:513", + "location": "imgui_internal:535", "ov_cimguiname": "ImRect_GetArea", "ret": "float", "signature": "()const", @@ -10437,7 +10983,7 @@ "cimguiname": "ImRect_GetBL", "defaults": {}, "funcname": "GetBL", - "location": "imgui_internal:516", + "location": "imgui_internal:538", "nonUDT": 1, "ov_cimguiname": "ImRect_GetBL", "ret": "void", @@ -10463,7 +11009,7 @@ "cimguiname": "ImRect_GetBR", "defaults": {}, "funcname": "GetBR", - "location": "imgui_internal:517", + "location": "imgui_internal:539", "nonUDT": 1, "ov_cimguiname": "ImRect_GetBR", "ret": "void", @@ -10489,7 +11035,7 @@ "cimguiname": "ImRect_GetCenter", "defaults": {}, "funcname": "GetCenter", - "location": "imgui_internal:509", + "location": "imgui_internal:531", "nonUDT": 1, "ov_cimguiname": "ImRect_GetCenter", "ret": "void", @@ -10511,7 +11057,7 @@ "cimguiname": "ImRect_GetHeight", "defaults": {}, "funcname": "GetHeight", - "location": "imgui_internal:512", + "location": "imgui_internal:534", "ov_cimguiname": "ImRect_GetHeight", "ret": "float", "signature": "()const", @@ -10536,7 +11082,7 @@ "cimguiname": "ImRect_GetSize", "defaults": {}, "funcname": "GetSize", - "location": "imgui_internal:510", + "location": "imgui_internal:532", "nonUDT": 1, "ov_cimguiname": "ImRect_GetSize", "ret": "void", @@ -10562,7 +11108,7 @@ "cimguiname": "ImRect_GetTL", "defaults": {}, "funcname": "GetTL", - "location": "imgui_internal:514", + "location": "imgui_internal:536", "nonUDT": 1, "ov_cimguiname": "ImRect_GetTL", "ret": "void", @@ -10588,7 +11134,7 @@ "cimguiname": "ImRect_GetTR", "defaults": {}, "funcname": "GetTR", - "location": "imgui_internal:515", + "location": "imgui_internal:537", "nonUDT": 1, "ov_cimguiname": "ImRect_GetTR", "ret": "void", @@ -10610,7 +11156,7 @@ "cimguiname": "ImRect_GetWidth", "defaults": {}, "funcname": "GetWidth", - "location": "imgui_internal:511", + "location": "imgui_internal:533", "ov_cimguiname": "ImRect_GetWidth", "ret": "float", "signature": "()const", @@ -10627,8 +11173,8 @@ "constructor": true, "defaults": {}, "funcname": "ImRect", - "location": "imgui_internal:504", - "ov_cimguiname": "ImRect_ImRectNil", + "location": "imgui_internal:526", + "ov_cimguiname": "ImRect_ImRect_Nil", "signature": "()", "stname": "ImRect" }, @@ -10650,8 +11196,8 @@ "constructor": true, "defaults": {}, "funcname": "ImRect", - "location": "imgui_internal:505", - "ov_cimguiname": "ImRect_ImRectVec2", + "location": "imgui_internal:527", + "ov_cimguiname": "ImRect_ImRect_Vec2", "signature": "(const ImVec2,const ImVec2)", "stname": "ImRect" }, @@ -10669,8 +11215,8 @@ "constructor": true, "defaults": {}, "funcname": "ImRect", - "location": "imgui_internal:506", - "ov_cimguiname": "ImRect_ImRectVec4", + "location": "imgui_internal:528", + "ov_cimguiname": "ImRect_ImRect_Vec4", "signature": "(const ImVec4)", "stname": "ImRect" }, @@ -10700,8 +11246,8 @@ "constructor": true, "defaults": {}, "funcname": "ImRect", - "location": "imgui_internal:507", - "ov_cimguiname": "ImRect_ImRectFloat", + "location": "imgui_internal:529", + "ov_cimguiname": "ImRect_ImRect_Float", "signature": "(float,float,float,float)", "stname": "ImRect" } @@ -10720,7 +11266,7 @@ "cimguiname": "ImRect_IsInverted", "defaults": {}, "funcname": "IsInverted", - "location": "imgui_internal:531", + "location": "imgui_internal:553", "ov_cimguiname": "ImRect_IsInverted", "ret": "bool", "signature": "()const", @@ -10745,7 +11291,7 @@ "cimguiname": "ImRect_Overlaps", "defaults": {}, "funcname": "Overlaps", - "location": "imgui_internal:520", + "location": "imgui_internal:542", "ov_cimguiname": "ImRect_Overlaps", "ret": "bool", "signature": "(const ImRect)const", @@ -10770,7 +11316,7 @@ "cimguiname": "ImRect_ToVec4", "defaults": {}, "funcname": "ToVec4", - "location": "imgui_internal:532", + "location": "imgui_internal:554", "nonUDT": 1, "ov_cimguiname": "ImRect_ToVec4", "ret": "void", @@ -10796,7 +11342,7 @@ "cimguiname": "ImRect_Translate", "defaults": {}, "funcname": "Translate", - "location": "imgui_internal:525", + "location": "imgui_internal:547", "ov_cimguiname": "ImRect_Translate", "ret": "void", "signature": "(const ImVec2)", @@ -10821,7 +11367,7 @@ "cimguiname": "ImRect_TranslateX", "defaults": {}, "funcname": "TranslateX", - "location": "imgui_internal:526", + "location": "imgui_internal:548", "ov_cimguiname": "ImRect_TranslateX", "ret": "void", "signature": "(float)", @@ -10846,7 +11392,7 @@ "cimguiname": "ImRect_TranslateY", "defaults": {}, "funcname": "TranslateY", - "location": "imgui_internal:527", + "location": "imgui_internal:549", "ov_cimguiname": "ImRect_TranslateY", "ret": "void", "signature": "(float)", @@ -10886,7 +11432,7 @@ "cimguiname": "ImSpanAllocator_GetArenaSizeInBytes", "defaults": {}, "funcname": "GetArenaSizeInBytes", - "location": "imgui_internal:623", + "location": "imgui_internal:646", "ov_cimguiname": "ImSpanAllocator_GetArenaSizeInBytes", "ret": "int", "signature": "()", @@ -10912,7 +11458,7 @@ "cimguiname": "ImSpanAllocator_GetSpanPtrBegin", "defaults": {}, "funcname": "GetSpanPtrBegin", - "location": "imgui_internal:625", + "location": "imgui_internal:648", "ov_cimguiname": "ImSpanAllocator_GetSpanPtrBegin", "ret": "void*", "signature": "(int)", @@ -10938,7 +11484,7 @@ "cimguiname": "ImSpanAllocator_GetSpanPtrEnd", "defaults": {}, "funcname": "GetSpanPtrEnd", - "location": "imgui_internal:626", + "location": "imgui_internal:649", "ov_cimguiname": "ImSpanAllocator_GetSpanPtrEnd", "ret": "void*", "signature": "(int)", @@ -10956,7 +11502,7 @@ "constructor": true, "defaults": {}, "funcname": "ImSpanAllocator", - "location": "imgui_internal:621", + "location": "imgui_internal:644", "ov_cimguiname": "ImSpanAllocator_ImSpanAllocator", "signature": "()", "stname": "ImSpanAllocator", @@ -10991,7 +11537,7 @@ "a": "4" }, "funcname": "Reserve", - "location": "imgui_internal:622", + "location": "imgui_internal:645", "ov_cimguiname": "ImSpanAllocator_Reserve", "ret": "void", "signature": "(int,size_t,int)", @@ -11017,7 +11563,7 @@ "cimguiname": "ImSpanAllocator_SetArenaBasePtr", "defaults": {}, "funcname": "SetArenaBasePtr", - "location": "imgui_internal:624", + "location": "imgui_internal:647", "ov_cimguiname": "ImSpanAllocator_SetArenaBasePtr", "ret": "void", "signature": "(void*)", @@ -11055,8 +11601,8 @@ "constructor": true, "defaults": {}, "funcname": "ImSpan", - "location": "imgui_internal:589", - "ov_cimguiname": "ImSpan_ImSpanNil", + "location": "imgui_internal:612", + "ov_cimguiname": "ImSpan_ImSpan_Nil", "signature": "()", "stname": "ImSpan", "templated": true @@ -11079,8 +11625,8 @@ "constructor": true, "defaults": {}, "funcname": "ImSpan", - "location": "imgui_internal:590", - "ov_cimguiname": "ImSpan_ImSpanTPtrInt", + "location": "imgui_internal:613", + "ov_cimguiname": "ImSpan_ImSpan_TPtrInt", "signature": "(T*,int)", "stname": "ImSpan", "templated": true @@ -11103,8 +11649,8 @@ "constructor": true, "defaults": {}, "funcname": "ImSpan", - "location": "imgui_internal:591", - "ov_cimguiname": "ImSpan_ImSpanTPtrTPtr", + "location": "imgui_internal:614", + "ov_cimguiname": "ImSpan_ImSpan_TPtrTPtr", "signature": "(T*,T*)", "stname": "ImSpan", "templated": true @@ -11124,8 +11670,8 @@ "cimguiname": "ImSpan_begin", "defaults": {}, "funcname": "begin", - "location": "imgui_internal:600", - "ov_cimguiname": "ImSpan_beginNil", + "location": "imgui_internal:623", + "ov_cimguiname": "ImSpan_begin_Nil", "ret": "T*", "signature": "()", "stname": "ImSpan", @@ -11144,8 +11690,8 @@ "cimguiname": "ImSpan_begin", "defaults": {}, "funcname": "begin", - "location": "imgui_internal:601", - "ov_cimguiname": "ImSpan_begin_const", + "location": "imgui_internal:624", + "ov_cimguiname": "ImSpan_begin__const", "ret": "const T*", "signature": "()const", "stname": "ImSpan", @@ -11186,8 +11732,8 @@ "cimguiname": "ImSpan_end", "defaults": {}, "funcname": "end", - "location": "imgui_internal:602", - "ov_cimguiname": "ImSpan_endNil", + "location": "imgui_internal:625", + "ov_cimguiname": "ImSpan_end_Nil", "ret": "T*", "signature": "()", "stname": "ImSpan", @@ -11206,8 +11752,8 @@ "cimguiname": "ImSpan_end", "defaults": {}, "funcname": "end", - "location": "imgui_internal:603", - "ov_cimguiname": "ImSpan_end_const", + "location": "imgui_internal:626", + "ov_cimguiname": "ImSpan_end__const", "ret": "const T*", "signature": "()const", "stname": "ImSpan", @@ -11232,7 +11778,7 @@ "cimguiname": "ImSpan_index_from_ptr", "defaults": {}, "funcname": "index_from_ptr", - "location": "imgui_internal:606", + "location": "imgui_internal:629", "ov_cimguiname": "ImSpan_index_from_ptr", "ret": "int", "signature": "(const T*)const", @@ -11262,8 +11808,8 @@ "cimguiname": "ImSpan_set", "defaults": {}, "funcname": "set", - "location": "imgui_internal:593", - "ov_cimguiname": "ImSpan_setInt", + "location": "imgui_internal:616", + "ov_cimguiname": "ImSpan_set_Int", "ret": "void", "signature": "(T*,int)", "stname": "ImSpan", @@ -11290,8 +11836,8 @@ "cimguiname": "ImSpan_set", "defaults": {}, "funcname": "set", - "location": "imgui_internal:594", - "ov_cimguiname": "ImSpan_setTPtr", + "location": "imgui_internal:617", + "ov_cimguiname": "ImSpan_set_TPtr", "ret": "void", "signature": "(T*,T*)", "stname": "ImSpan", @@ -11312,7 +11858,7 @@ "cimguiname": "ImSpan_size", "defaults": {}, "funcname": "size", - "location": "imgui_internal:595", + "location": "imgui_internal:618", "ov_cimguiname": "ImSpan_size", "ret": "int", "signature": "()const", @@ -11334,7 +11880,7 @@ "cimguiname": "ImSpan_size_in_bytes", "defaults": {}, "funcname": "size_in_bytes", - "location": "imgui_internal:596", + "location": "imgui_internal:619", "ov_cimguiname": "ImSpan_size_in_bytes", "ret": "int", "signature": "()const", @@ -11352,8 +11898,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec1", - "location": "imgui_internal:484", - "ov_cimguiname": "ImVec1_ImVec1Nil", + "location": "imgui_internal:506", + "ov_cimguiname": "ImVec1_ImVec1_Nil", "signature": "()", "stname": "ImVec1" }, @@ -11371,8 +11917,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec1", - "location": "imgui_internal:485", - "ov_cimguiname": "ImVec1_ImVec1Float", + "location": "imgui_internal:507", + "ov_cimguiname": "ImVec1_ImVec1_Float", "signature": "(float)", "stname": "ImVec1" } @@ -11406,8 +11952,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2", - "location": "imgui:269", - "ov_cimguiname": "ImVec2_ImVec2Nil", + "location": "imgui:262", + "ov_cimguiname": "ImVec2_ImVec2_Nil", "signature": "()", "stname": "ImVec2" }, @@ -11429,8 +11975,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2", - "location": "imgui:270", - "ov_cimguiname": "ImVec2_ImVec2Float", + "location": "imgui:263", + "ov_cimguiname": "ImVec2_ImVec2_Float", "signature": "(float,float)", "stname": "ImVec2" } @@ -11464,8 +12010,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2ih", - "location": "imgui_internal:492", - "ov_cimguiname": "ImVec2ih_ImVec2ihNil", + "location": "imgui_internal:514", + "ov_cimguiname": "ImVec2ih_ImVec2ih_Nil", "signature": "()", "stname": "ImVec2ih" }, @@ -11487,8 +12033,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2ih", - "location": "imgui_internal:493", - "ov_cimguiname": "ImVec2ih_ImVec2ihshort", + "location": "imgui_internal:515", + "ov_cimguiname": "ImVec2ih_ImVec2ih_short", "signature": "(short,short)", "stname": "ImVec2ih" }, @@ -11506,8 +12052,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2ih", - "location": "imgui_internal:494", - "ov_cimguiname": "ImVec2ih_ImVec2ihVec2", + "location": "imgui_internal:516", + "ov_cimguiname": "ImVec2ih_ImVec2ih_Vec2", "signature": "(const ImVec2)", "stname": "ImVec2ih" } @@ -11541,8 +12087,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec4", - "location": "imgui:282", - "ov_cimguiname": "ImVec4_ImVec4Nil", + "location": "imgui:275", + "ov_cimguiname": "ImVec4_ImVec4_Nil", "signature": "()", "stname": "ImVec4" }, @@ -11572,8 +12118,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec4", - "location": "imgui:283", - "ov_cimguiname": "ImVec4_ImVec4Float", + "location": "imgui:276", + "ov_cimguiname": "ImVec4_ImVec4_Float", "signature": "(float,float,float,float)", "stname": "ImVec4" } @@ -11607,18 +12153,18 @@ "constructor": true, "defaults": {}, "funcname": "ImVector", - "location": "imgui:1784", - "ov_cimguiname": "ImVector_ImVectorNil", + "location": "imgui:1850", + "ov_cimguiname": "ImVector_ImVector_Nil", "signature": "()", "stname": "ImVector", "templated": true }, { - "args": "(const ImVector src)", + "args": "(const ImVector_T src)", "argsT": [ { "name": "src", - "type": "const ImVector" + "type": "const ImVector_T " } ], "argsoriginal": "(const ImVector& src)", @@ -11627,9 +12173,9 @@ "constructor": true, "defaults": {}, "funcname": "ImVector", - "location": "imgui:1785", - "ov_cimguiname": "ImVector_ImVectorVector", - "signature": "(const ImVector)", + "location": "imgui:1851", + "ov_cimguiname": "ImVector_ImVector_Vector_T_", + "signature": "(const ImVector_T )", "stname": "ImVector", "templated": true } @@ -11652,7 +12198,7 @@ "cimguiname": "ImVector__grow_capacity", "defaults": {}, "funcname": "_grow_capacity", - "location": "imgui:1811", + "location": "imgui:1877", "ov_cimguiname": "ImVector__grow_capacity", "ret": "int", "signature": "(int)const", @@ -11674,8 +12220,8 @@ "cimguiname": "ImVector_back", "defaults": {}, "funcname": "back", - "location": "imgui:1807", - "ov_cimguiname": "ImVector_backNil", + "location": "imgui:1873", + "ov_cimguiname": "ImVector_back_Nil", "ret": "T*", "retref": "&", "signature": "()", @@ -11695,8 +12241,8 @@ "cimguiname": "ImVector_back", "defaults": {}, "funcname": "back", - "location": "imgui:1808", - "ov_cimguiname": "ImVector_back_const", + "location": "imgui:1874", + "ov_cimguiname": "ImVector_back__const", "ret": "const T*", "retref": "&", "signature": "()const", @@ -11718,8 +12264,8 @@ "cimguiname": "ImVector_begin", "defaults": {}, "funcname": "begin", - "location": "imgui:1801", - "ov_cimguiname": "ImVector_beginNil", + "location": "imgui:1867", + "ov_cimguiname": "ImVector_begin_Nil", "ret": "T*", "signature": "()", "stname": "ImVector", @@ -11738,8 +12284,8 @@ "cimguiname": "ImVector_begin", "defaults": {}, "funcname": "begin", - "location": "imgui:1802", - "ov_cimguiname": "ImVector_begin_const", + "location": "imgui:1868", + "ov_cimguiname": "ImVector_begin__const", "ret": "const T*", "signature": "()const", "stname": "ImVector", @@ -11760,7 +12306,7 @@ "cimguiname": "ImVector_capacity", "defaults": {}, "funcname": "capacity", - "location": "imgui:1797", + "location": "imgui:1863", "ov_cimguiname": "ImVector_capacity", "ret": "int", "signature": "()const", @@ -11782,7 +12328,7 @@ "cimguiname": "ImVector_clear", "defaults": {}, "funcname": "clear", - "location": "imgui:1789", + "location": "imgui:1855", "ov_cimguiname": "ImVector_clear", "ret": "void", "signature": "()", @@ -11804,7 +12350,7 @@ "cimguiname": "ImVector_clear_delete", "defaults": {}, "funcname": "clear_delete", - "location": "imgui:1790", + "location": "imgui:1856", "ov_cimguiname": "ImVector_clear_delete", "ret": "void", "signature": "()", @@ -11826,7 +12372,7 @@ "cimguiname": "ImVector_clear_destruct", "defaults": {}, "funcname": "clear_destruct", - "location": "imgui:1791", + "location": "imgui:1857", "ov_cimguiname": "ImVector_clear_destruct", "ret": "void", "signature": "()", @@ -11852,7 +12398,7 @@ "cimguiname": "ImVector_contains", "defaults": {}, "funcname": "contains", - "location": "imgui:1825", + "location": "imgui:1892", "ov_cimguiname": "ImVector_contains", "ret": "bool", "signature": "(const T)const", @@ -11873,7 +12419,7 @@ "cimguiname": "ImVector_destroy", "defaults": {}, "destructor": true, - "location": "imgui:1787", + "location": "imgui:1853", "ov_cimguiname": "ImVector_destroy", "realdestructor": true, "ret": "void", @@ -11896,7 +12442,7 @@ "cimguiname": "ImVector_empty", "defaults": {}, "funcname": "empty", - "location": "imgui:1793", + "location": "imgui:1859", "ov_cimguiname": "ImVector_empty", "ret": "bool", "signature": "()const", @@ -11918,8 +12464,8 @@ "cimguiname": "ImVector_end", "defaults": {}, "funcname": "end", - "location": "imgui:1803", - "ov_cimguiname": "ImVector_endNil", + "location": "imgui:1869", + "ov_cimguiname": "ImVector_end_Nil", "ret": "T*", "signature": "()", "stname": "ImVector", @@ -11938,8 +12484,8 @@ "cimguiname": "ImVector_end", "defaults": {}, "funcname": "end", - "location": "imgui:1804", - "ov_cimguiname": "ImVector_end_const", + "location": "imgui:1870", + "ov_cimguiname": "ImVector_end__const", "ret": "const T*", "signature": "()const", "stname": "ImVector", @@ -11964,8 +12510,8 @@ "cimguiname": "ImVector_erase", "defaults": {}, "funcname": "erase", - "location": "imgui:1821", - "ov_cimguiname": "ImVector_eraseNil", + "location": "imgui:1888", + "ov_cimguiname": "ImVector_erase_Nil", "ret": "T*", "signature": "(const T*)", "stname": "ImVector", @@ -11992,8 +12538,8 @@ "cimguiname": "ImVector_erase", "defaults": {}, "funcname": "erase", - "location": "imgui:1822", - "ov_cimguiname": "ImVector_eraseTPtr", + "location": "imgui:1889", + "ov_cimguiname": "ImVector_erase_TPtr", "ret": "T*", "signature": "(const T*,const T*)", "stname": "ImVector", @@ -12018,7 +12564,7 @@ "cimguiname": "ImVector_erase_unsorted", "defaults": {}, "funcname": "erase_unsorted", - "location": "imgui:1823", + "location": "imgui:1890", "ov_cimguiname": "ImVector_erase_unsorted", "ret": "T*", "signature": "(const T*)", @@ -12044,8 +12590,8 @@ "cimguiname": "ImVector_find", "defaults": {}, "funcname": "find", - "location": "imgui:1826", - "ov_cimguiname": "ImVector_findNil", + "location": "imgui:1893", + "ov_cimguiname": "ImVector_find_Nil", "ret": "T*", "signature": "(const T)", "stname": "ImVector", @@ -12068,8 +12614,8 @@ "cimguiname": "ImVector_find", "defaults": {}, "funcname": "find", - "location": "imgui:1827", - "ov_cimguiname": "ImVector_find_const", + "location": "imgui:1894", + "ov_cimguiname": "ImVector_find__const", "ret": "const T*", "signature": "(const T)const", "stname": "ImVector", @@ -12094,7 +12640,7 @@ "cimguiname": "ImVector_find_erase", "defaults": {}, "funcname": "find_erase", - "location": "imgui:1828", + "location": "imgui:1895", "ov_cimguiname": "ImVector_find_erase", "ret": "bool", "signature": "(const T)", @@ -12120,7 +12666,7 @@ "cimguiname": "ImVector_find_erase_unsorted", "defaults": {}, "funcname": "find_erase_unsorted", - "location": "imgui:1829", + "location": "imgui:1896", "ov_cimguiname": "ImVector_find_erase_unsorted", "ret": "bool", "signature": "(const T)", @@ -12142,8 +12688,8 @@ "cimguiname": "ImVector_front", "defaults": {}, "funcname": "front", - "location": "imgui:1805", - "ov_cimguiname": "ImVector_frontNil", + "location": "imgui:1871", + "ov_cimguiname": "ImVector_front_Nil", "ret": "T*", "retref": "&", "signature": "()", @@ -12163,8 +12709,8 @@ "cimguiname": "ImVector_front", "defaults": {}, "funcname": "front", - "location": "imgui:1806", - "ov_cimguiname": "ImVector_front_const", + "location": "imgui:1872", + "ov_cimguiname": "ImVector_front__const", "ret": "const T*", "retref": "&", "signature": "()const", @@ -12190,7 +12736,7 @@ "cimguiname": "ImVector_index_from_ptr", "defaults": {}, "funcname": "index_from_ptr", - "location": "imgui:1830", + "location": "imgui:1897", "ov_cimguiname": "ImVector_index_from_ptr", "ret": "int", "signature": "(const T*)const", @@ -12220,7 +12766,7 @@ "cimguiname": "ImVector_insert", "defaults": {}, "funcname": "insert", - "location": "imgui:1824", + "location": "imgui:1891", "ov_cimguiname": "ImVector_insert", "ret": "T*", "signature": "(const T*,const T)", @@ -12242,7 +12788,7 @@ "cimguiname": "ImVector_max_size", "defaults": {}, "funcname": "max_size", - "location": "imgui:1796", + "location": "imgui:1862", "ov_cimguiname": "ImVector_max_size", "ret": "int", "signature": "()const", @@ -12264,7 +12810,7 @@ "cimguiname": "ImVector_pop_back", "defaults": {}, "funcname": "pop_back", - "location": "imgui:1819", + "location": "imgui:1886", "ov_cimguiname": "ImVector_pop_back", "ret": "void", "signature": "()", @@ -12290,7 +12836,7 @@ "cimguiname": "ImVector_push_back", "defaults": {}, "funcname": "push_back", - "location": "imgui:1818", + "location": "imgui:1885", "ov_cimguiname": "ImVector_push_back", "ret": "void", "signature": "(const T)", @@ -12316,7 +12862,7 @@ "cimguiname": "ImVector_push_front", "defaults": {}, "funcname": "push_front", - "location": "imgui:1820", + "location": "imgui:1887", "ov_cimguiname": "ImVector_push_front", "ret": "void", "signature": "(const T)", @@ -12342,7 +12888,7 @@ "cimguiname": "ImVector_reserve", "defaults": {}, "funcname": "reserve", - "location": "imgui:1815", + "location": "imgui:1881", "ov_cimguiname": "ImVector_reserve", "ret": "void", "signature": "(int)", @@ -12350,6 +12896,32 @@ "templated": true } ], + "ImVector_reserve_discard": [ + { + "args": "(ImVector* self,int new_capacity)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_capacity", + "type": "int" + } + ], + "argsoriginal": "(int new_capacity)", + "call_args": "(new_capacity)", + "cimguiname": "ImVector_reserve_discard", + "defaults": {}, + "funcname": "reserve_discard", + "location": "imgui:1882", + "ov_cimguiname": "ImVector_reserve_discard", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], "ImVector_resize": [ { "args": "(ImVector* self,int new_size)", @@ -12368,8 +12940,8 @@ "cimguiname": "ImVector_resize", "defaults": {}, "funcname": "resize", - "location": "imgui:1812", - "ov_cimguiname": "ImVector_resizeNil", + "location": "imgui:1878", + "ov_cimguiname": "ImVector_resize_Nil", "ret": "void", "signature": "(int)", "stname": "ImVector", @@ -12396,8 +12968,8 @@ "cimguiname": "ImVector_resize", "defaults": {}, "funcname": "resize", - "location": "imgui:1813", - "ov_cimguiname": "ImVector_resizeT", + "location": "imgui:1879", + "ov_cimguiname": "ImVector_resize_T", "ret": "void", "signature": "(int,const T)", "stname": "ImVector", @@ -12422,7 +12994,7 @@ "cimguiname": "ImVector_shrink", "defaults": {}, "funcname": "shrink", - "location": "imgui:1814", + "location": "imgui:1880", "ov_cimguiname": "ImVector_shrink", "ret": "void", "signature": "(int)", @@ -12444,7 +13016,7 @@ "cimguiname": "ImVector_size", "defaults": {}, "funcname": "size", - "location": "imgui:1794", + "location": "imgui:1860", "ov_cimguiname": "ImVector_size", "ret": "int", "signature": "()const", @@ -12466,7 +13038,7 @@ "cimguiname": "ImVector_size_in_bytes", "defaults": {}, "funcname": "size_in_bytes", - "location": "imgui:1795", + "location": "imgui:1861", "ov_cimguiname": "ImVector_size_in_bytes", "ret": "int", "signature": "()const", @@ -12476,7 +13048,7 @@ ], "ImVector_swap": [ { - "args": "(ImVector* self,ImVector* rhs)", + "args": "(ImVector* self,ImVector_T * rhs)", "argsT": [ { "name": "self", @@ -12485,7 +13057,7 @@ { "name": "rhs", "reftoptr": true, - "type": "ImVector*" + "type": "ImVector_T *" } ], "argsoriginal": "(ImVector& rhs)", @@ -12493,10 +13065,10 @@ "cimguiname": "ImVector_swap", "defaults": {}, "funcname": "swap", - "location": "imgui:1809", + "location": "imgui:1875", "ov_cimguiname": "ImVector_swap", "ret": "void", - "signature": "(ImVector*)", + "signature": "(ImVector_T *)", "stname": "ImVector", "templated": true } @@ -12521,7 +13093,7 @@ "flags": "0" }, "funcname": "AcceptDragDropPayload", - "location": "imgui:844", + "location": "imgui:841", "namespace": "ImGui", "ov_cimguiname": "igAcceptDragDropPayload", "ret": "const ImGuiPayload*", @@ -12543,7 +13115,7 @@ "cimguiname": "igActivateItem", "defaults": {}, "funcname": "ActivateItem", - "location": "imgui_internal:2812", + "location": "imgui_internal:3094", "namespace": "ImGui", "ov_cimguiname": "igActivateItem", "ret": "void", @@ -12569,7 +13141,7 @@ "cimguiname": "igAddContextHook", "defaults": {}, "funcname": "AddContextHook", - "location": "imgui_internal:2688", + "location": "imgui_internal:2977", "namespace": "ImGui", "ov_cimguiname": "igAddContextHook", "ret": "ImGuiID", @@ -12577,6 +13149,28 @@ "stname": "" } ], + "igAddSettingsHandler": [ + { + "args": "(const ImGuiSettingsHandler* handler)", + "argsT": [ + { + "name": "handler", + "type": "const ImGuiSettingsHandler*" + } + ], + "argsoriginal": "(const ImGuiSettingsHandler* handler)", + "call_args": "(handler)", + "cimguiname": "igAddSettingsHandler", + "defaults": {}, + "funcname": "AddSettingsHandler", + "location": "imgui_internal:2997", + "namespace": "ImGui", + "ov_cimguiname": "igAddSettingsHandler", + "ret": "void", + "signature": "(const ImGuiSettingsHandler*)", + "stname": "" + } + ], "igAlignTextToFramePadding": [ { "args": "()", @@ -12586,7 +13180,7 @@ "cimguiname": "igAlignTextToFramePadding", "defaults": {}, "funcname": "AlignTextToFramePadding", - "location": "imgui:468", + "location": "imgui:465", "namespace": "ImGui", "ov_cimguiname": "igAlignTextToFramePadding", "ret": "void", @@ -12612,7 +13206,7 @@ "cimguiname": "igArrowButton", "defaults": {}, "funcname": "ArrowButton", - "location": "imgui:515", + "location": "imgui:512", "namespace": "ImGui", "ov_cimguiname": "igArrowButton", "ret": "bool", @@ -12648,7 +13242,7 @@ "flags": "0" }, "funcname": "ArrowButtonEx", - "location": "imgui_internal:3006", + "location": "imgui_internal:3354", "namespace": "ImGui", "ov_cimguiname": "igArrowButtonEx", "ret": "bool", @@ -12681,7 +13275,7 @@ "p_open": "NULL" }, "funcname": "Begin", - "location": "imgui:342", + "location": "imgui:336", "namespace": "ImGui", "ov_cimguiname": "igBegin", "ret": "bool", @@ -12719,9 +13313,9 @@ "size": "ImVec2(0,0)" }, "funcname": "BeginChild", - "location": "imgui:353", + "location": "imgui:347", "namespace": "ImGui", - "ov_cimguiname": "igBeginChildStr", + "ov_cimguiname": "igBeginChild_Str", "ret": "bool", "signature": "(const char*,const ImVec2,bool,ImGuiWindowFlags)", "stname": "" @@ -12755,9 +13349,9 @@ "size": "ImVec2(0,0)" }, "funcname": "BeginChild", - "location": "imgui:354", + "location": "imgui:348", "namespace": "ImGui", - "ov_cimguiname": "igBeginChildID", + "ov_cimguiname": "igBeginChild_ID", "ret": "bool", "signature": "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)", "stname": "" @@ -12793,7 +13387,7 @@ "cimguiname": "igBeginChildEx", "defaults": {}, "funcname": "BeginChildEx", - "location": "imgui_internal:2775", + "location": "imgui_internal:3060", "namespace": "ImGui", "ov_cimguiname": "igBeginChildEx", "ret": "bool", @@ -12825,7 +13419,7 @@ "flags": "0" }, "funcname": "BeginChildFrame", - "location": "imgui:905", + "location": "imgui:904", "namespace": "ImGui", "ov_cimguiname": "igBeginChildFrame", "ret": "bool", @@ -12857,7 +13451,7 @@ "flags": "0" }, "funcname": "BeginColumns", - "location": "imgui_internal:2894", + "location": "imgui_internal:3245", "namespace": "ImGui", "ov_cimguiname": "igBeginColumns", "ret": "void", @@ -12919,7 +13513,7 @@ "cimguiname": "igBeginComboPopup", "defaults": {}, "funcname": "BeginComboPopup", - "location": "imgui_internal:2795", + "location": "imgui_internal:3080", "namespace": "ImGui", "ov_cimguiname": "igBeginComboPopup", "ret": "bool", @@ -12936,7 +13530,7 @@ "cimguiname": "igBeginComboPreview", "defaults": {}, "funcname": "BeginComboPreview", - "location": "imgui_internal:2796", + "location": "imgui_internal:3081", "namespace": "ImGui", "ov_cimguiname": "igBeginComboPreview", "ret": "bool", @@ -12960,7 +13554,7 @@ "disabled": "true" }, "funcname": "BeginDisabled", - "location": "imgui:852", + "location": "imgui:849", "namespace": "ImGui", "ov_cimguiname": "igBeginDisabled", "ret": "void", @@ -12982,7 +13576,7 @@ "cimguiname": "igBeginDockableDragDropSource", "defaults": {}, "funcname": "BeginDockableDragDropSource", - "location": "imgui_internal:2859", + "location": "imgui_internal:3196", "namespace": "ImGui", "ov_cimguiname": "igBeginDockableDragDropSource", "ret": "void", @@ -13004,7 +13598,7 @@ "cimguiname": "igBeginDockableDragDropTarget", "defaults": {}, "funcname": "BeginDockableDragDropTarget", - "location": "imgui_internal:2860", + "location": "imgui_internal:3197", "namespace": "ImGui", "ov_cimguiname": "igBeginDockableDragDropTarget", "ret": "void", @@ -13030,7 +13624,7 @@ "cimguiname": "igBeginDocked", "defaults": {}, "funcname": "BeginDocked", - "location": "imgui_internal:2858", + "location": "imgui_internal:3195", "namespace": "ImGui", "ov_cimguiname": "igBeginDocked", "ret": "void", @@ -13054,7 +13648,7 @@ "flags": "0" }, "funcname": "BeginDragDropSource", - "location": "imgui:840", + "location": "imgui:837", "namespace": "ImGui", "ov_cimguiname": "igBeginDragDropSource", "ret": "bool", @@ -13071,7 +13665,7 @@ "cimguiname": "igBeginDragDropTarget", "defaults": {}, "funcname": "BeginDragDropTarget", - "location": "imgui:843", + "location": "imgui:840", "namespace": "ImGui", "ov_cimguiname": "igBeginDragDropTarget", "ret": "bool", @@ -13097,7 +13691,7 @@ "cimguiname": "igBeginDragDropTargetCustom", "defaults": {}, "funcname": "BeginDragDropTargetCustom", - "location": "imgui_internal:2888", + "location": "imgui_internal:3238", "namespace": "ImGui", "ov_cimguiname": "igBeginDragDropTargetCustom", "ret": "bool", @@ -13114,7 +13708,7 @@ "cimguiname": "igBeginGroup", "defaults": {}, "funcname": "BeginGroup", - "location": "imgui:457", + "location": "imgui:454", "namespace": "ImGui", "ov_cimguiname": "igBeginGroup", "ret": "void", @@ -13142,7 +13736,7 @@ "size": "ImVec2(0,0)" }, "funcname": "BeginListBox", - "location": "imgui:640", + "location": "imgui:641", "namespace": "ImGui", "ov_cimguiname": "igBeginListBox", "ret": "bool", @@ -13159,7 +13753,7 @@ "cimguiname": "igBeginMainMenuBar", "defaults": {}, "funcname": "BeginMainMenuBar", - "location": "imgui:666", + "location": "imgui:667", "namespace": "ImGui", "ov_cimguiname": "igBeginMainMenuBar", "ret": "bool", @@ -13187,7 +13781,7 @@ "enabled": "true" }, "funcname": "BeginMenu", - "location": "imgui:668", + "location": "imgui:669", "namespace": "ImGui", "ov_cimguiname": "igBeginMenu", "ret": "bool", @@ -13204,7 +13798,7 @@ "cimguiname": "igBeginMenuBar", "defaults": {}, "funcname": "BeginMenuBar", - "location": "imgui:664", + "location": "imgui:665", "namespace": "ImGui", "ov_cimguiname": "igBeginMenuBar", "ret": "bool", @@ -13236,7 +13830,7 @@ "enabled": "true" }, "funcname": "BeginMenuEx", - "location": "imgui_internal:2791", + "location": "imgui_internal:3076", "namespace": "ImGui", "ov_cimguiname": "igBeginMenuEx", "ret": "bool", @@ -13264,7 +13858,7 @@ "flags": "0" }, "funcname": "BeginPopup", - "location": "imgui:692", + "location": "imgui:693", "namespace": "ImGui", "ov_cimguiname": "igBeginPopup", "ret": "bool", @@ -13293,7 +13887,7 @@ "str_id": "NULL" }, "funcname": "BeginPopupContextItem", - "location": "imgui:713", + "location": "imgui:715", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupContextItem", "ret": "bool", @@ -13322,7 +13916,7 @@ "str_id": "NULL" }, "funcname": "BeginPopupContextVoid", - "location": "imgui:715", + "location": "imgui:717", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupContextVoid", "ret": "bool", @@ -13351,7 +13945,7 @@ "str_id": "NULL" }, "funcname": "BeginPopupContextWindow", - "location": "imgui:714", + "location": "imgui:716", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupContextWindow", "ret": "bool", @@ -13377,7 +13971,7 @@ "cimguiname": "igBeginPopupEx", "defaults": {}, "funcname": "BeginPopupEx", - "location": "imgui_internal:2781", + "location": "imgui_internal:3066", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupEx", "ret": "bool", @@ -13410,7 +14004,7 @@ "p_open": "NULL" }, "funcname": "BeginPopupModal", - "location": "imgui:693", + "location": "imgui:694", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupModal", "ret": "bool", @@ -13438,7 +14032,7 @@ "flags": "0" }, "funcname": "BeginTabBar", - "location": "imgui:798", + "location": "imgui:795", "namespace": "ImGui", "ov_cimguiname": "igBeginTabBar", "ret": "bool", @@ -13472,7 +14066,7 @@ "cimguiname": "igBeginTabBarEx", "defaults": {}, "funcname": "BeginTabBarEx", - "location": "imgui_internal:2956", + "location": "imgui_internal:3309", "namespace": "ImGui", "ov_cimguiname": "igBeginTabBarEx", "ret": "bool", @@ -13505,7 +14099,7 @@ "p_open": "NULL" }, "funcname": "BeginTabItem", - "location": "imgui:800", + "location": "imgui:797", "namespace": "ImGui", "ov_cimguiname": "igBeginTabItem", "ret": "bool", @@ -13593,7 +14187,7 @@ "outer_size": "ImVec2(0,0)" }, "funcname": "BeginTableEx", - "location": "imgui_internal:2916", + "location": "imgui_internal:3267", "namespace": "ImGui", "ov_cimguiname": "igBeginTableEx", "ret": "bool", @@ -13610,7 +14204,7 @@ "cimguiname": "igBeginTooltip", "defaults": {}, "funcname": "BeginTooltip", - "location": "imgui:675", + "location": "imgui:676", "namespace": "ImGui", "ov_cimguiname": "igBeginTooltip", "ret": "void", @@ -13636,7 +14230,7 @@ "cimguiname": "igBeginTooltipEx", "defaults": {}, "funcname": "BeginTooltipEx", - "location": "imgui_internal:2782", + "location": "imgui_internal:3067", "namespace": "ImGui", "ov_cimguiname": "igBeginTooltipEx", "ret": "void", @@ -13674,7 +14268,7 @@ "cimguiname": "igBeginViewportSideBar", "defaults": {}, "funcname": "BeginViewportSideBar", - "location": "imgui_internal:2790", + "location": "imgui_internal:3075", "namespace": "ImGui", "ov_cimguiname": "igBeginViewportSideBar", "ret": "bool", @@ -13696,7 +14290,7 @@ "cimguiname": "igBringWindowToDisplayBack", "defaults": {}, "funcname": "BringWindowToDisplayBack", - "location": "imgui_internal:2666", + "location": "imgui_internal:2954", "namespace": "ImGui", "ov_cimguiname": "igBringWindowToDisplayBack", "ret": "void", @@ -13722,7 +14316,7 @@ "cimguiname": "igBringWindowToDisplayBehind", "defaults": {}, "funcname": "BringWindowToDisplayBehind", - "location": "imgui_internal:2667", + "location": "imgui_internal:2955", "namespace": "ImGui", "ov_cimguiname": "igBringWindowToDisplayBehind", "ret": "void", @@ -13744,7 +14338,7 @@ "cimguiname": "igBringWindowToDisplayFront", "defaults": {}, "funcname": "BringWindowToDisplayFront", - "location": "imgui_internal:2665", + "location": "imgui_internal:2953", "namespace": "ImGui", "ov_cimguiname": "igBringWindowToDisplayFront", "ret": "void", @@ -13766,7 +14360,7 @@ "cimguiname": "igBringWindowToFocusFront", "defaults": {}, "funcname": "BringWindowToFocusFront", - "location": "imgui_internal:2664", + "location": "imgui_internal:2952", "namespace": "ImGui", "ov_cimguiname": "igBringWindowToFocusFront", "ret": "void", @@ -13783,7 +14377,7 @@ "cimguiname": "igBullet", "defaults": {}, "funcname": "Bullet", - "location": "imgui:524", + "location": "imgui:519", "namespace": "ImGui", "ov_cimguiname": "igBullet", "ret": "void", @@ -13810,7 +14404,7 @@ "defaults": {}, "funcname": "BulletText", "isvararg": "...)", - "location": "imgui:506", + "location": "imgui:503", "namespace": "ImGui", "ov_cimguiname": "igBulletText", "ret": "void", @@ -13836,7 +14430,7 @@ "cimguiname": "igBulletTextV", "defaults": {}, "funcname": "BulletTextV", - "location": "imgui:507", + "location": "imgui:504", "namespace": "ImGui", "ov_cimguiname": "igBulletTextV", "ret": "void", @@ -13864,7 +14458,7 @@ "size": "ImVec2(0,0)" }, "funcname": "Button", - "location": "imgui:512", + "location": "imgui:509", "namespace": "ImGui", "ov_cimguiname": "igButton", "ret": "bool", @@ -13904,7 +14498,7 @@ "flags": "0" }, "funcname": "ButtonBehavior", - "location": "imgui_internal:3019", + "location": "imgui_internal:3367", "namespace": "ImGui", "ov_cimguiname": "igButtonBehavior", "ret": "bool", @@ -13937,7 +14531,7 @@ "size_arg": "ImVec2(0,0)" }, "funcname": "ButtonEx", - "location": "imgui_internal:3003", + "location": "imgui_internal:3351", "namespace": "ImGui", "ov_cimguiname": "igButtonEx", "ret": "bool", @@ -13971,7 +14565,7 @@ "cimguiname": "igCalcItemSize", "defaults": {}, "funcname": "CalcItemSize", - "location": "imgui_internal:2746", + "location": "imgui_internal:3042", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igCalcItemSize", @@ -13989,7 +14583,7 @@ "cimguiname": "igCalcItemWidth", "defaults": {}, "funcname": "CalcItemWidth", - "location": "imgui:429", + "location": "imgui:426", "namespace": "ImGui", "ov_cimguiname": "igCalcItemWidth", "ret": "float", @@ -14019,7 +14613,7 @@ "cimguiname": "igCalcRoundingFlagsForRectInRect", "defaults": {}, "funcname": "CalcRoundingFlagsForRectInRect", - "location": "imgui_internal:2993", + "location": "imgui_internal:3347", "namespace": "ImGui", "ov_cimguiname": "igCalcRoundingFlagsForRectInRect", "ret": "ImDrawFlags", @@ -14061,7 +14655,7 @@ "wrap_width": "-1.0f" }, "funcname": "CalcTextSize", - "location": "imgui:909", + "location": "imgui:908", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igCalcTextSize", @@ -14096,7 +14690,7 @@ "cimguiname": "igCalcTypematicRepeatAmount", "defaults": {}, "funcname": "CalcTypematicRepeatAmount", - "location": "imgui_internal:2811", + "location": "imgui_internal:3122", "namespace": "ImGui", "ov_cimguiname": "igCalcTypematicRepeatAmount", "ret": "int", @@ -14122,7 +14716,7 @@ "cimguiname": "igCalcWindowNextAutoFitSize", "defaults": {}, "funcname": "CalcWindowNextAutoFitSize", - "location": "imgui_internal:2649", + "location": "imgui_internal:2937", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igCalcWindowNextAutoFitSize", @@ -14149,7 +14743,7 @@ "cimguiname": "igCalcWrapWidthForPos", "defaults": {}, "funcname": "CalcWrapWidthForPos", - "location": "imgui_internal:2747", + "location": "imgui_internal:3043", "namespace": "ImGui", "ov_cimguiname": "igCalcWrapWidthForPos", "ret": "float", @@ -14175,7 +14769,7 @@ "cimguiname": "igCallContextHooks", "defaults": {}, "funcname": "CallContextHooks", - "location": "imgui_internal:2690", + "location": "imgui_internal:2979", "namespace": "ImGui", "ov_cimguiname": "igCallContextHooks", "ret": "void", @@ -14183,54 +14777,6 @@ "stname": "" } ], - "igCaptureKeyboardFromApp": [ - { - "args": "(bool want_capture_keyboard_value)", - "argsT": [ - { - "name": "want_capture_keyboard_value", - "type": "bool" - } - ], - "argsoriginal": "(bool want_capture_keyboard_value=true)", - "call_args": "(want_capture_keyboard_value)", - "cimguiname": "igCaptureKeyboardFromApp", - "defaults": { - "want_capture_keyboard_value": "true" - }, - "funcname": "CaptureKeyboardFromApp", - "location": "imgui:925", - "namespace": "ImGui", - "ov_cimguiname": "igCaptureKeyboardFromApp", - "ret": "void", - "signature": "(bool)", - "stname": "" - } - ], - "igCaptureMouseFromApp": [ - { - "args": "(bool want_capture_mouse_value)", - "argsT": [ - { - "name": "want_capture_mouse_value", - "type": "bool" - } - ], - "argsoriginal": "(bool want_capture_mouse_value=true)", - "call_args": "(want_capture_mouse_value)", - "cimguiname": "igCaptureMouseFromApp", - "defaults": { - "want_capture_mouse_value": "true" - }, - "funcname": "CaptureMouseFromApp", - "location": "imgui:946", - "namespace": "ImGui", - "ov_cimguiname": "igCaptureMouseFromApp", - "ret": "void", - "signature": "(bool)", - "stname": "" - } - ], "igCheckbox": [ { "args": "(const char* label,bool* v)", @@ -14249,7 +14795,7 @@ "cimguiname": "igCheckbox", "defaults": {}, "funcname": "Checkbox", - "location": "imgui:518", + "location": "imgui:513", "namespace": "ImGui", "ov_cimguiname": "igCheckbox", "ret": "bool", @@ -14279,9 +14825,9 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui:519", + "location": "imgui:514", "namespace": "ImGui", - "ov_cimguiname": "igCheckboxFlagsIntPtr", + "ov_cimguiname": "igCheckboxFlags_IntPtr", "ret": "bool", "signature": "(const char*,int*,int)", "stname": "" @@ -14307,9 +14853,9 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui:520", + "location": "imgui:515", "namespace": "ImGui", - "ov_cimguiname": "igCheckboxFlagsUintPtr", + "ov_cimguiname": "igCheckboxFlags_UintPtr", "ret": "bool", "signature": "(const char*,unsigned int*,unsigned int)", "stname": "" @@ -14335,9 +14881,9 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui_internal:3015", + "location": "imgui_internal:3363", "namespace": "ImGui", - "ov_cimguiname": "igCheckboxFlagsS64Ptr", + "ov_cimguiname": "igCheckboxFlags_S64Ptr", "ret": "bool", "signature": "(const char*,ImS64*,ImS64)", "stname": "" @@ -14363,9 +14909,9 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui_internal:3016", + "location": "imgui_internal:3364", "namespace": "ImGui", - "ov_cimguiname": "igCheckboxFlagsU64Ptr", + "ov_cimguiname": "igCheckboxFlags_U64Ptr", "ret": "bool", "signature": "(const char*,ImU64*,ImU64)", "stname": "" @@ -14380,7 +14926,7 @@ "cimguiname": "igClearActiveID", "defaults": {}, "funcname": "ClearActiveID", - "location": "imgui_internal:2731", + "location": "imgui_internal:3027", "namespace": "ImGui", "ov_cimguiname": "igClearActiveID", "ret": "void", @@ -14397,7 +14943,7 @@ "cimguiname": "igClearDragDrop", "defaults": {}, "funcname": "ClearDragDrop", - "location": "imgui_internal:2889", + "location": "imgui_internal:3239", "namespace": "ImGui", "ov_cimguiname": "igClearDragDrop", "ret": "void", @@ -14414,7 +14960,7 @@ "cimguiname": "igClearIniSettings", "defaults": {}, "funcname": "ClearIniSettings", - "location": "imgui_internal:2702", + "location": "imgui_internal:2993", "namespace": "ImGui", "ov_cimguiname": "igClearIniSettings", "ret": "void", @@ -14440,7 +14986,7 @@ "cimguiname": "igCloseButton", "defaults": {}, "funcname": "CloseButton", - "location": "imgui_internal:3004", + "location": "imgui_internal:3352", "namespace": "ImGui", "ov_cimguiname": "igCloseButton", "ret": "bool", @@ -14457,7 +15003,7 @@ "cimguiname": "igCloseCurrentPopup", "defaults": {}, "funcname": "CloseCurrentPopup", - "location": "imgui:706", + "location": "imgui:708", "namespace": "ImGui", "ov_cimguiname": "igCloseCurrentPopup", "ret": "void", @@ -14483,7 +15029,7 @@ "cimguiname": "igClosePopupToLevel", "defaults": {}, "funcname": "ClosePopupToLevel", - "location": "imgui_internal:2777", + "location": "imgui_internal:3062", "namespace": "ImGui", "ov_cimguiname": "igClosePopupToLevel", "ret": "void", @@ -14500,7 +15046,7 @@ "cimguiname": "igClosePopupsExceptModals", "defaults": {}, "funcname": "ClosePopupsExceptModals", - "location": "imgui_internal:2779", + "location": "imgui_internal:3064", "namespace": "ImGui", "ov_cimguiname": "igClosePopupsExceptModals", "ret": "void", @@ -14526,7 +15072,7 @@ "cimguiname": "igClosePopupsOverWindow", "defaults": {}, "funcname": "ClosePopupsOverWindow", - "location": "imgui_internal:2778", + "location": "imgui_internal:3063", "namespace": "ImGui", "ov_cimguiname": "igClosePopupsOverWindow", "ret": "void", @@ -14556,7 +15102,7 @@ "cimguiname": "igCollapseButton", "defaults": {}, "funcname": "CollapseButton", - "location": "imgui_internal:3005", + "location": "imgui_internal:3353", "namespace": "ImGui", "ov_cimguiname": "igCollapseButton", "ret": "bool", @@ -14584,9 +15130,9 @@ "flags": "0" }, "funcname": "CollapsingHeader", - "location": "imgui:624", + "location": "imgui:625", "namespace": "ImGui", - "ov_cimguiname": "igCollapsingHeaderTreeNodeFlags", + "ov_cimguiname": "igCollapsingHeader_TreeNodeFlags", "ret": "bool", "signature": "(const char*,ImGuiTreeNodeFlags)", "stname": "" @@ -14614,9 +15160,9 @@ "flags": "0" }, "funcname": "CollapsingHeader", - "location": "imgui:625", + "location": "imgui:626", "namespace": "ImGui", - "ov_cimguiname": "igCollapsingHeaderBoolPtr", + "ov_cimguiname": "igCollapsingHeader_BoolPtr", "ret": "bool", "signature": "(const char*,bool*,ImGuiTreeNodeFlags)", "stname": "" @@ -14624,7 +15170,7 @@ ], "igColorButton": [ { - "args": "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,ImVec2 size)", + "args": "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)", "argsT": [ { "name": "desc_id", @@ -14640,10 +15186,10 @@ }, { "name": "size", - "type": "ImVec2" + "type": "const ImVec2" } ], - "argsoriginal": "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,ImVec2 size=ImVec2(0,0))", + "argsoriginal": "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))", "call_args": "(desc_id,col,flags,size)", "cimguiname": "igColorButton", "defaults": { @@ -14651,11 +15197,11 @@ "size": "ImVec2(0,0)" }, "funcname": "ColorButton", - "location": "imgui:605", + "location": "imgui:606", "namespace": "ImGui", "ov_cimguiname": "igColorButton", "ret": "bool", - "signature": "(const char*,const ImVec4,ImGuiColorEditFlags,ImVec2)", + "signature": "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)", "stname": "" } ], @@ -14673,7 +15219,7 @@ "cimguiname": "igColorConvertFloat4ToU32", "defaults": {}, "funcname": "ColorConvertFloat4ToU32", - "location": "imgui:913", + "location": "imgui:912", "namespace": "ImGui", "ov_cimguiname": "igColorConvertFloat4ToU32", "ret": "ImU32", @@ -14718,7 +15264,7 @@ "cimguiname": "igColorConvertHSVtoRGB", "defaults": {}, "funcname": "ColorConvertHSVtoRGB", - "location": "imgui:915", + "location": "imgui:914", "namespace": "ImGui", "ov_cimguiname": "igColorConvertHSVtoRGB", "ret": "void", @@ -14763,7 +15309,7 @@ "cimguiname": "igColorConvertRGBtoHSV", "defaults": {}, "funcname": "ColorConvertRGBtoHSV", - "location": "imgui:914", + "location": "imgui:913", "namespace": "ImGui", "ov_cimguiname": "igColorConvertRGBtoHSV", "ret": "void", @@ -14789,7 +15335,7 @@ "cimguiname": "igColorConvertU32ToFloat4", "defaults": {}, "funcname": "ColorConvertU32ToFloat4", - "location": "imgui:912", + "location": "imgui:911", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igColorConvertU32ToFloat4", @@ -14822,7 +15368,7 @@ "flags": "0" }, "funcname": "ColorEdit3", - "location": "imgui:601", + "location": "imgui:602", "namespace": "ImGui", "ov_cimguiname": "igColorEdit3", "ret": "bool", @@ -14854,7 +15400,7 @@ "flags": "0" }, "funcname": "ColorEdit4", - "location": "imgui:602", + "location": "imgui:603", "namespace": "ImGui", "ov_cimguiname": "igColorEdit4", "ret": "bool", @@ -14880,7 +15426,7 @@ "cimguiname": "igColorEditOptionsPopup", "defaults": {}, "funcname": "ColorEditOptionsPopup", - "location": "imgui_internal:3054", + "location": "imgui_internal:3403", "namespace": "ImGui", "ov_cimguiname": "igColorEditOptionsPopup", "ret": "void", @@ -14912,7 +15458,7 @@ "flags": "0" }, "funcname": "ColorPicker3", - "location": "imgui:603", + "location": "imgui:604", "namespace": "ImGui", "ov_cimguiname": "igColorPicker3", "ret": "bool", @@ -14949,7 +15495,7 @@ "ref_col": "NULL" }, "funcname": "ColorPicker4", - "location": "imgui:604", + "location": "imgui:605", "namespace": "ImGui", "ov_cimguiname": "igColorPicker4", "ret": "bool", @@ -14975,7 +15521,7 @@ "cimguiname": "igColorPickerOptionsPopup", "defaults": {}, "funcname": "ColorPickerOptionsPopup", - "location": "imgui_internal:3055", + "location": "imgui_internal:3404", "namespace": "ImGui", "ov_cimguiname": "igColorPickerOptionsPopup", "ret": "void", @@ -15005,7 +15551,7 @@ "cimguiname": "igColorTooltip", "defaults": {}, "funcname": "ColorTooltip", - "location": "imgui_internal:3053", + "location": "imgui_internal:3402", "namespace": "ImGui", "ov_cimguiname": "igColorTooltip", "ret": "void", @@ -15039,7 +15585,7 @@ "id": "NULL" }, "funcname": "Columns", - "location": "imgui:787", + "location": "imgui:784", "namespace": "ImGui", "ov_cimguiname": "igColumns", "ret": "void", @@ -15081,7 +15627,7 @@ "funcname": "Combo", "location": "imgui:531", "namespace": "ImGui", - "ov_cimguiname": "igComboStr_arr", + "ov_cimguiname": "igCombo_Str_arr", "ret": "bool", "signature": "(const char*,int*,const char* const[],int,int)", "stname": "" @@ -15115,7 +15661,7 @@ "funcname": "Combo", "location": "imgui:532", "namespace": "ImGui", - "ov_cimguiname": "igComboStr", + "ov_cimguiname": "igCombo_Str", "ret": "bool", "signature": "(const char*,int*,const char*,int)", "stname": "" @@ -15159,12 +15705,34 @@ "funcname": "Combo", "location": "imgui:533", "namespace": "ImGui", - "ov_cimguiname": "igComboFnBoolPtr", + "ov_cimguiname": "igCombo_FnBoolPtr", "ret": "bool", "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", "stname": "" } ], + "igConvertSingleModFlagToKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igConvertSingleModFlagToKey", + "defaults": {}, + "funcname": "ConvertSingleModFlagToKey", + "location": "imgui_internal:3107", + "namespace": "ImGui", + "ov_cimguiname": "igConvertSingleModFlagToKey", + "ret": "ImGuiKey", + "signature": "(ImGuiKey)", + "stname": "" + } + ], "igCreateContext": [ { "args": "(ImFontAtlas* shared_font_atlas)", @@ -15181,7 +15749,7 @@ "shared_font_atlas": "NULL" }, "funcname": "CreateContext", - "location": "imgui:301", + "location": "imgui:294", "namespace": "ImGui", "ov_cimguiname": "igCreateContext", "ret": "ImGuiContext*", @@ -15203,7 +15771,7 @@ "cimguiname": "igCreateNewWindowSettings", "defaults": {}, "funcname": "CreateNewWindowSettings", - "location": "imgui_internal:2703", + "location": "imgui_internal:2994", "namespace": "ImGui", "ov_cimguiname": "igCreateNewWindowSettings", "ret": "ImGuiWindowSettings*", @@ -15211,6 +15779,40 @@ "stname": "" } ], + "igDataTypeApplyFromText": [ + { + "args": "(const char* buf,ImGuiDataType data_type,void* p_data,const char* format)", + "argsT": [ + { + "name": "buf", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "format", + "type": "const char*" + } + ], + "argsoriginal": "(const char* buf,ImGuiDataType data_type,void* p_data,const char* format)", + "call_args": "(buf,data_type,p_data,format)", + "cimguiname": "igDataTypeApplyFromText", + "defaults": {}, + "funcname": "DataTypeApplyFromText", + "location": "imgui_internal:3390", + "namespace": "ImGui", + "ov_cimguiname": "igDataTypeApplyFromText", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,const char*)", + "stname": "" + } + ], "igDataTypeApplyOp": [ { "args": "(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2)", @@ -15241,7 +15843,7 @@ "cimguiname": "igDataTypeApplyOp", "defaults": {}, "funcname": "DataTypeApplyOp", - "location": "imgui_internal:3040", + "location": "imgui_internal:3389", "namespace": "ImGui", "ov_cimguiname": "igDataTypeApplyOp", "ret": "void", @@ -15249,44 +15851,6 @@ "stname": "" } ], - "igDataTypeApplyOpFromText": [ - { - "args": "(const char* buf,const char* initial_value_buf,ImGuiDataType data_type,void* p_data,const char* format)", - "argsT": [ - { - "name": "buf", - "type": "const char*" - }, - { - "name": "initial_value_buf", - "type": "const char*" - }, - { - "name": "data_type", - "type": "ImGuiDataType" - }, - { - "name": "p_data", - "type": "void*" - }, - { - "name": "format", - "type": "const char*" - } - ], - "argsoriginal": "(const char* buf,const char* initial_value_buf,ImGuiDataType data_type,void* p_data,const char* format)", - "call_args": "(buf,initial_value_buf,data_type,p_data,format)", - "cimguiname": "igDataTypeApplyOpFromText", - "defaults": {}, - "funcname": "DataTypeApplyOpFromText", - "location": "imgui_internal:3041", - "namespace": "ImGui", - "ov_cimguiname": "igDataTypeApplyOpFromText", - "ret": "bool", - "signature": "(const char*,const char*,ImGuiDataType,void*,const char*)", - "stname": "" - } - ], "igDataTypeClamp": [ { "args": "(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max)", @@ -15313,7 +15877,7 @@ "cimguiname": "igDataTypeClamp", "defaults": {}, "funcname": "DataTypeClamp", - "location": "imgui_internal:3043", + "location": "imgui_internal:3392", "namespace": "ImGui", "ov_cimguiname": "igDataTypeClamp", "ret": "bool", @@ -15343,7 +15907,7 @@ "cimguiname": "igDataTypeCompare", "defaults": {}, "funcname": "DataTypeCompare", - "location": "imgui_internal:3042", + "location": "imgui_internal:3391", "namespace": "ImGui", "ov_cimguiname": "igDataTypeCompare", "ret": "int", @@ -15381,7 +15945,7 @@ "cimguiname": "igDataTypeFormatString", "defaults": {}, "funcname": "DataTypeFormatString", - "location": "imgui_internal:3039", + "location": "imgui_internal:3388", "namespace": "ImGui", "ov_cimguiname": "igDataTypeFormatString", "ret": "int", @@ -15403,7 +15967,7 @@ "cimguiname": "igDataTypeGetInfo", "defaults": {}, "funcname": "DataTypeGetInfo", - "location": "imgui_internal:3038", + "location": "imgui_internal:3387", "namespace": "ImGui", "ov_cimguiname": "igDataTypeGetInfo", "ret": "const ImGuiDataTypeInfo*", @@ -15449,7 +16013,7 @@ "cimguiname": "igDebugCheckVersionAndDataLayout", "defaults": {}, "funcname": "DebugCheckVersionAndDataLayout", - "location": "imgui:964", + "location": "imgui:966", "namespace": "ImGui", "ov_cimguiname": "igDebugCheckVersionAndDataLayout", "ret": "bool", @@ -15473,7 +16037,7 @@ "col": "4278190335" }, "funcname": "DebugDrawItemRect", - "location": "imgui_internal:3072", + "location": "imgui_internal:3429", "namespace": "ImGui", "ov_cimguiname": "igDebugDrawItemRect", "ret": "void", @@ -15507,7 +16071,7 @@ "cimguiname": "igDebugHookIdInfo", "defaults": {}, "funcname": "DebugHookIdInfo", - "location": "imgui_internal:3076", + "location": "imgui_internal:3432", "namespace": "ImGui", "ov_cimguiname": "igDebugHookIdInfo", "ret": "void", @@ -15515,6 +16079,120 @@ "stname": "" } ], + "igDebugLocateItem": [ + { + "args": "(ImGuiID target_id)", + "argsT": [ + { + "name": "target_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID target_id)", + "call_args": "(target_id)", + "cimguiname": "igDebugLocateItem", + "defaults": {}, + "funcname": "DebugLocateItem", + "location": "imgui_internal:3426", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLocateItem", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igDebugLocateItemOnHover": [ + { + "args": "(ImGuiID target_id)", + "argsT": [ + { + "name": "target_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID target_id)", + "call_args": "(target_id)", + "cimguiname": "igDebugLocateItemOnHover", + "defaults": {}, + "funcname": "DebugLocateItemOnHover", + "location": "imgui_internal:3427", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLocateItemOnHover", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igDebugLocateItemResolveWithLastItem": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igDebugLocateItemResolveWithLastItem", + "defaults": {}, + "funcname": "DebugLocateItemResolveWithLastItem", + "location": "imgui_internal:3428", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLocateItemResolveWithLastItem", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igDebugLog": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igDebugLog", + "defaults": {}, + "funcname": "DebugLog", + "isvararg": "...)", + "location": "imgui_internal:3419", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLog", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igDebugLogV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igDebugLogV", + "defaults": {}, + "funcname": "DebugLogV", + "location": "imgui_internal:3420", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLogV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], "igDebugNodeColumns": [ { "args": "(ImGuiOldColumns* columns)", @@ -15529,7 +16207,7 @@ "cimguiname": "igDebugNodeColumns", "defaults": {}, "funcname": "DebugNodeColumns", - "location": "imgui_internal:3077", + "location": "imgui_internal:3433", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeColumns", "ret": "void", @@ -15555,7 +16233,7 @@ "cimguiname": "igDebugNodeDockNode", "defaults": {}, "funcname": "DebugNodeDockNode", - "location": "imgui_internal:3078", + "location": "imgui_internal:3434", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeDockNode", "ret": "void", @@ -15593,7 +16271,7 @@ "cimguiname": "igDebugNodeDrawCmdShowMeshAndBoundingBox", "defaults": {}, "funcname": "DebugNodeDrawCmdShowMeshAndBoundingBox", - "location": "imgui_internal:3080", + "location": "imgui_internal:3436", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeDrawCmdShowMeshAndBoundingBox", "ret": "void", @@ -15627,7 +16305,7 @@ "cimguiname": "igDebugNodeDrawList", "defaults": {}, "funcname": "DebugNodeDrawList", - "location": "imgui_internal:3079", + "location": "imgui_internal:3435", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeDrawList", "ret": "void", @@ -15649,7 +16327,7 @@ "cimguiname": "igDebugNodeFont", "defaults": {}, "funcname": "DebugNodeFont", - "location": "imgui_internal:3081", + "location": "imgui_internal:3437", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeFont", "ret": "void", @@ -15657,6 +16335,54 @@ "stname": "" } ], + "igDebugNodeFontGlyph": [ + { + "args": "(ImFont* font,const ImFontGlyph* glyph)", + "argsT": [ + { + "name": "font", + "type": "ImFont*" + }, + { + "name": "glyph", + "type": "const ImFontGlyph*" + } + ], + "argsoriginal": "(ImFont* font,const ImFontGlyph* glyph)", + "call_args": "(font,glyph)", + "cimguiname": "igDebugNodeFontGlyph", + "defaults": {}, + "funcname": "DebugNodeFontGlyph", + "location": "imgui_internal:3438", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeFontGlyph", + "ret": "void", + "signature": "(ImFont*,const ImFontGlyph*)", + "stname": "" + } + ], + "igDebugNodeInputTextState": [ + { + "args": "(ImGuiInputTextState* state)", + "argsT": [ + { + "name": "state", + "type": "ImGuiInputTextState*" + } + ], + "argsoriginal": "(ImGuiInputTextState* state)", + "call_args": "(state)", + "cimguiname": "igDebugNodeInputTextState", + "defaults": {}, + "funcname": "DebugNodeInputTextState", + "location": "imgui_internal:3443", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeInputTextState", + "ret": "void", + "signature": "(ImGuiInputTextState*)", + "stname": "" + } + ], "igDebugNodeStorage": [ { "args": "(ImGuiStorage* storage,const char* label)", @@ -15675,7 +16401,7 @@ "cimguiname": "igDebugNodeStorage", "defaults": {}, "funcname": "DebugNodeStorage", - "location": "imgui_internal:3082", + "location": "imgui_internal:3439", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeStorage", "ret": "void", @@ -15701,7 +16427,7 @@ "cimguiname": "igDebugNodeTabBar", "defaults": {}, "funcname": "DebugNodeTabBar", - "location": "imgui_internal:3083", + "location": "imgui_internal:3440", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeTabBar", "ret": "void", @@ -15723,7 +16449,7 @@ "cimguiname": "igDebugNodeTable", "defaults": {}, "funcname": "DebugNodeTable", - "location": "imgui_internal:3084", + "location": "imgui_internal:3441", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeTable", "ret": "void", @@ -15745,7 +16471,7 @@ "cimguiname": "igDebugNodeTableSettings", "defaults": {}, "funcname": "DebugNodeTableSettings", - "location": "imgui_internal:3085", + "location": "imgui_internal:3442", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeTableSettings", "ret": "void", @@ -15767,7 +16493,7 @@ "cimguiname": "igDebugNodeViewport", "defaults": {}, "funcname": "DebugNodeViewport", - "location": "imgui_internal:3090", + "location": "imgui_internal:3448", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeViewport", "ret": "void", @@ -15793,7 +16519,7 @@ "cimguiname": "igDebugNodeWindow", "defaults": {}, "funcname": "DebugNodeWindow", - "location": "imgui_internal:3086", + "location": "imgui_internal:3444", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeWindow", "ret": "void", @@ -15815,7 +16541,7 @@ "cimguiname": "igDebugNodeWindowSettings", "defaults": {}, "funcname": "DebugNodeWindowSettings", - "location": "imgui_internal:3087", + "location": "imgui_internal:3445", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeWindowSettings", "ret": "void", @@ -15841,7 +16567,7 @@ "cimguiname": "igDebugNodeWindowsList", "defaults": {}, "funcname": "DebugNodeWindowsList", - "location": "imgui_internal:3088", + "location": "imgui_internal:3446", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeWindowsList", "ret": "void", @@ -15871,7 +16597,7 @@ "cimguiname": "igDebugNodeWindowsListByBeginStackParent", "defaults": {}, "funcname": "DebugNodeWindowsListByBeginStackParent", - "location": "imgui_internal:3089", + "location": "imgui_internal:3447", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeWindowsListByBeginStackParent", "ret": "void", @@ -15901,7 +16627,7 @@ "cimguiname": "igDebugRenderViewportThumbnail", "defaults": {}, "funcname": "DebugRenderViewportThumbnail", - "location": "imgui_internal:3091", + "location": "imgui_internal:3449", "namespace": "ImGui", "ov_cimguiname": "igDebugRenderViewportThumbnail", "ret": "void", @@ -15918,7 +16644,7 @@ "cimguiname": "igDebugStartItemPicker", "defaults": {}, "funcname": "DebugStartItemPicker", - "location": "imgui_internal:3073", + "location": "imgui_internal:3430", "namespace": "ImGui", "ov_cimguiname": "igDebugStartItemPicker", "ret": "void", @@ -15926,6 +16652,28 @@ "stname": "" } ], + "igDebugTextEncoding": [ + { + "args": "(const char* text)", + "argsT": [ + { + "name": "text", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text)", + "call_args": "(text)", + "cimguiname": "igDebugTextEncoding", + "defaults": {}, + "funcname": "DebugTextEncoding", + "location": "imgui:965", + "namespace": "ImGui", + "ov_cimguiname": "igDebugTextEncoding", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], "igDestroyContext": [ { "args": "(ImGuiContext* ctx)", @@ -15942,7 +16690,7 @@ "ctx": "NULL" }, "funcname": "DestroyContext", - "location": "imgui:302", + "location": "imgui:295", "namespace": "ImGui", "ov_cimguiname": "igDestroyContext", "ret": "void", @@ -15964,7 +16712,7 @@ "cimguiname": "igDestroyPlatformWindow", "defaults": {}, "funcname": "DestroyPlatformWindow", - "location": "imgui_internal:2695", + "location": "imgui_internal:2984", "namespace": "ImGui", "ov_cimguiname": "igDestroyPlatformWindow", "ret": "void", @@ -15981,7 +16729,7 @@ "cimguiname": "igDestroyPlatformWindows", "defaults": {}, "funcname": "DestroyPlatformWindows", - "location": "imgui:981", + "location": "imgui:983", "namespace": "ImGui", "ov_cimguiname": "igDestroyPlatformWindows", "ret": "void", @@ -16010,7 +16758,7 @@ "node_id": "0" }, "funcname": "DockBuilderAddNode", - "location": "imgui_internal:2875", + "location": "imgui_internal:3212", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderAddNode", "ret": "ImGuiID", @@ -16040,7 +16788,7 @@ "cimguiname": "igDockBuilderCopyDockSpace", "defaults": {}, "funcname": "DockBuilderCopyDockSpace", - "location": "imgui_internal:2882", + "location": "imgui_internal:3219", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderCopyDockSpace", "ret": "void", @@ -16070,7 +16818,7 @@ "cimguiname": "igDockBuilderCopyNode", "defaults": {}, "funcname": "DockBuilderCopyNode", - "location": "imgui_internal:2883", + "location": "imgui_internal:3220", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderCopyNode", "ret": "void", @@ -16096,7 +16844,7 @@ "cimguiname": "igDockBuilderCopyWindowSettings", "defaults": {}, "funcname": "DockBuilderCopyWindowSettings", - "location": "imgui_internal:2884", + "location": "imgui_internal:3221", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderCopyWindowSettings", "ret": "void", @@ -16122,7 +16870,7 @@ "cimguiname": "igDockBuilderDockWindow", "defaults": {}, "funcname": "DockBuilderDockWindow", - "location": "imgui_internal:2872", + "location": "imgui_internal:3209", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderDockWindow", "ret": "void", @@ -16144,7 +16892,7 @@ "cimguiname": "igDockBuilderFinish", "defaults": {}, "funcname": "DockBuilderFinish", - "location": "imgui_internal:2885", + "location": "imgui_internal:3222", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderFinish", "ret": "void", @@ -16166,7 +16914,7 @@ "cimguiname": "igDockBuilderGetCentralNode", "defaults": {}, "funcname": "DockBuilderGetCentralNode", - "location": "imgui_internal:2874", + "location": "imgui_internal:3211", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderGetCentralNode", "ret": "ImGuiDockNode*", @@ -16188,7 +16936,7 @@ "cimguiname": "igDockBuilderGetNode", "defaults": {}, "funcname": "DockBuilderGetNode", - "location": "imgui_internal:2873", + "location": "imgui_internal:3210", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderGetNode", "ret": "ImGuiDockNode*", @@ -16210,7 +16958,7 @@ "cimguiname": "igDockBuilderRemoveNode", "defaults": {}, "funcname": "DockBuilderRemoveNode", - "location": "imgui_internal:2876", + "location": "imgui_internal:3213", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderRemoveNode", "ret": "void", @@ -16232,7 +16980,7 @@ "cimguiname": "igDockBuilderRemoveNodeChildNodes", "defaults": {}, "funcname": "DockBuilderRemoveNodeChildNodes", - "location": "imgui_internal:2878", + "location": "imgui_internal:3215", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderRemoveNodeChildNodes", "ret": "void", @@ -16260,7 +17008,7 @@ "clear_settings_refs": "true" }, "funcname": "DockBuilderRemoveNodeDockedWindows", - "location": "imgui_internal:2877", + "location": "imgui_internal:3214", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderRemoveNodeDockedWindows", "ret": "void", @@ -16286,7 +17034,7 @@ "cimguiname": "igDockBuilderSetNodePos", "defaults": {}, "funcname": "DockBuilderSetNodePos", - "location": "imgui_internal:2879", + "location": "imgui_internal:3216", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderSetNodePos", "ret": "void", @@ -16312,7 +17060,7 @@ "cimguiname": "igDockBuilderSetNodeSize", "defaults": {}, "funcname": "DockBuilderSetNodeSize", - "location": "imgui_internal:2880", + "location": "imgui_internal:3217", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderSetNodeSize", "ret": "void", @@ -16350,7 +17098,7 @@ "cimguiname": "igDockBuilderSplitNode", "defaults": {}, "funcname": "DockBuilderSplitNode", - "location": "imgui_internal:2881", + "location": "imgui_internal:3218", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderSplitNode", "ret": "ImGuiID", @@ -16360,7 +17108,7 @@ ], "igDockContextCalcDropPosForDocking": [ { - "args": "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)", + "args": "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)", "argsT": [ { "name": "target", @@ -16371,9 +17119,13 @@ "type": "ImGuiDockNode*" }, { - "name": "payload", + "name": "payload_window", "type": "ImGuiWindow*" }, + { + "name": "payload_node", + "type": "ImGuiDockNode*" + }, { "name": "split_dir", "type": "ImGuiDir" @@ -16387,16 +17139,16 @@ "type": "ImVec2*" } ], - "argsoriginal": "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)", - "call_args": "(target,target_node,payload,split_dir,split_outer,out_pos)", + "argsoriginal": "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)", + "call_args": "(target,target_node,payload_window,payload_node,split_dir,split_outer,out_pos)", "cimguiname": "igDockContextCalcDropPosForDocking", "defaults": {}, "funcname": "DockContextCalcDropPosForDocking", - "location": "imgui_internal:2849", + "location": "imgui_internal:3185", "namespace": "ImGui", "ov_cimguiname": "igDockContextCalcDropPosForDocking", "ret": "bool", - "signature": "(ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDir,bool,ImVec2*)", + "signature": "(ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDockNode*,ImGuiDir,bool,ImVec2*)", "stname": "" } ], @@ -16422,7 +17174,7 @@ "cimguiname": "igDockContextClearNodes", "defaults": {}, "funcname": "DockContextClearNodes", - "location": "imgui_internal:2840", + "location": "imgui_internal:3176", "namespace": "ImGui", "ov_cimguiname": "igDockContextClearNodes", "ret": "void", @@ -16444,7 +17196,7 @@ "cimguiname": "igDockContextEndFrame", "defaults": {}, "funcname": "DockContextEndFrame", - "location": "imgui_internal:2844", + "location": "imgui_internal:3180", "namespace": "ImGui", "ov_cimguiname": "igDockContextEndFrame", "ret": "void", @@ -16452,6 +17204,32 @@ "stname": "" } ], + "igDockContextFindNodeByID": [ + { + "args": "(ImGuiContext* ctx,ImGuiID id)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + }, + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiContext* ctx,ImGuiID id)", + "call_args": "(ctx,id)", + "cimguiname": "igDockContextFindNodeByID", + "defaults": {}, + "funcname": "DockContextFindNodeByID", + "location": "imgui_internal:3186", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextFindNodeByID", + "ret": "ImGuiDockNode*", + "signature": "(ImGuiContext*,ImGuiID)", + "stname": "" + } + ], "igDockContextGenNodeID": [ { "args": "(ImGuiContext* ctx)", @@ -16466,7 +17244,7 @@ "cimguiname": "igDockContextGenNodeID", "defaults": {}, "funcname": "DockContextGenNodeID", - "location": "imgui_internal:2845", + "location": "imgui_internal:3181", "namespace": "ImGui", "ov_cimguiname": "igDockContextGenNodeID", "ret": "ImGuiID", @@ -16488,7 +17266,7 @@ "cimguiname": "igDockContextInitialize", "defaults": {}, "funcname": "DockContextInitialize", - "location": "imgui_internal:2838", + "location": "imgui_internal:3174", "namespace": "ImGui", "ov_cimguiname": "igDockContextInitialize", "ret": "void", @@ -16510,7 +17288,7 @@ "cimguiname": "igDockContextNewFrameUpdateDocking", "defaults": {}, "funcname": "DockContextNewFrameUpdateDocking", - "location": "imgui_internal:2843", + "location": "imgui_internal:3179", "namespace": "ImGui", "ov_cimguiname": "igDockContextNewFrameUpdateDocking", "ret": "void", @@ -16532,7 +17310,7 @@ "cimguiname": "igDockContextNewFrameUpdateUndocking", "defaults": {}, "funcname": "DockContextNewFrameUpdateUndocking", - "location": "imgui_internal:2842", + "location": "imgui_internal:3178", "namespace": "ImGui", "ov_cimguiname": "igDockContextNewFrameUpdateUndocking", "ret": "void", @@ -16578,7 +17356,7 @@ "cimguiname": "igDockContextQueueDock", "defaults": {}, "funcname": "DockContextQueueDock", - "location": "imgui_internal:2846", + "location": "imgui_internal:3182", "namespace": "ImGui", "ov_cimguiname": "igDockContextQueueDock", "ret": "void", @@ -16604,7 +17382,7 @@ "cimguiname": "igDockContextQueueUndockNode", "defaults": {}, "funcname": "DockContextQueueUndockNode", - "location": "imgui_internal:2848", + "location": "imgui_internal:3184", "namespace": "ImGui", "ov_cimguiname": "igDockContextQueueUndockNode", "ret": "void", @@ -16630,7 +17408,7 @@ "cimguiname": "igDockContextQueueUndockWindow", "defaults": {}, "funcname": "DockContextQueueUndockWindow", - "location": "imgui_internal:2847", + "location": "imgui_internal:3183", "namespace": "ImGui", "ov_cimguiname": "igDockContextQueueUndockWindow", "ret": "void", @@ -16652,7 +17430,7 @@ "cimguiname": "igDockContextRebuildNodes", "defaults": {}, "funcname": "DockContextRebuildNodes", - "location": "imgui_internal:2841", + "location": "imgui_internal:3177", "namespace": "ImGui", "ov_cimguiname": "igDockContextRebuildNodes", "ret": "void", @@ -16674,7 +17452,7 @@ "cimguiname": "igDockContextShutdown", "defaults": {}, "funcname": "DockContextShutdown", - "location": "imgui_internal:2839", + "location": "imgui_internal:3175", "namespace": "ImGui", "ov_cimguiname": "igDockContextShutdown", "ret": "void", @@ -16696,7 +17474,7 @@ "cimguiname": "igDockNodeBeginAmendTabBar", "defaults": {}, "funcname": "DockNodeBeginAmendTabBar", - "location": "imgui_internal:2850", + "location": "imgui_internal:3187", "namespace": "ImGui", "ov_cimguiname": "igDockNodeBeginAmendTabBar", "ret": "bool", @@ -16713,7 +17491,7 @@ "cimguiname": "igDockNodeEndAmendTabBar", "defaults": {}, "funcname": "DockNodeEndAmendTabBar", - "location": "imgui_internal:2851", + "location": "imgui_internal:3188", "namespace": "ImGui", "ov_cimguiname": "igDockNodeEndAmendTabBar", "ret": "void", @@ -16735,7 +17513,7 @@ "cimguiname": "igDockNodeGetDepth", "defaults": {}, "funcname": "DockNodeGetDepth", - "location": "imgui_internal:2854", + "location": "imgui_internal:3191", "namespace": "ImGui", "ov_cimguiname": "igDockNodeGetDepth", "ret": "int", @@ -16757,7 +17535,7 @@ "cimguiname": "igDockNodeGetRootNode", "defaults": {}, "funcname": "DockNodeGetRootNode", - "location": "imgui_internal:2852", + "location": "imgui_internal:3189", "namespace": "ImGui", "ov_cimguiname": "igDockNodeGetRootNode", "ret": "ImGuiDockNode*", @@ -16779,7 +17557,7 @@ "cimguiname": "igDockNodeGetWindowMenuButtonId", "defaults": {}, "funcname": "DockNodeGetWindowMenuButtonId", - "location": "imgui_internal:2855", + "location": "imgui_internal:3192", "namespace": "ImGui", "ov_cimguiname": "igDockNodeGetWindowMenuButtonId", "ret": "ImGuiID", @@ -16805,7 +17583,7 @@ "cimguiname": "igDockNodeIsInHierarchyOf", "defaults": {}, "funcname": "DockNodeIsInHierarchyOf", - "location": "imgui_internal:2853", + "location": "imgui_internal:3190", "namespace": "ImGui", "ov_cimguiname": "igDockNodeIsInHierarchyOf", "ret": "bool", @@ -16843,7 +17621,7 @@ "window_class": "NULL" }, "funcname": "DockSpace", - "location": "imgui:818", + "location": "imgui:815", "namespace": "ImGui", "ov_cimguiname": "igDockSpace", "ret": "ImGuiID", @@ -16877,7 +17655,7 @@ "window_class": "NULL" }, "funcname": "DockSpaceOverViewport", - "location": "imgui:819", + "location": "imgui:816", "namespace": "ImGui", "ov_cimguiname": "igDockSpaceOverViewport", "ret": "ImGuiID", @@ -16927,7 +17705,7 @@ "cimguiname": "igDragBehavior", "defaults": {}, "funcname": "DragBehavior", - "location": "imgui_internal:3020", + "location": "imgui_internal:3368", "namespace": "ImGui", "ov_cimguiname": "igDragBehavior", "ret": "bool", @@ -16979,7 +17757,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat", - "location": "imgui:546", + "location": "imgui:547", "namespace": "ImGui", "ov_cimguiname": "igDragFloat", "ret": "bool", @@ -17031,7 +17809,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat2", - "location": "imgui:547", + "location": "imgui:548", "namespace": "ImGui", "ov_cimguiname": "igDragFloat2", "ret": "bool", @@ -17083,7 +17861,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat3", - "location": "imgui:548", + "location": "imgui:549", "namespace": "ImGui", "ov_cimguiname": "igDragFloat3", "ret": "bool", @@ -17135,7 +17913,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat4", - "location": "imgui:549", + "location": "imgui:550", "namespace": "ImGui", "ov_cimguiname": "igDragFloat4", "ret": "bool", @@ -17196,7 +17974,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloatRange2", - "location": "imgui:550", + "location": "imgui:551", "namespace": "ImGui", "ov_cimguiname": "igDragFloatRange2", "ret": "bool", @@ -17248,7 +18026,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt", - "location": "imgui:551", + "location": "imgui:552", "namespace": "ImGui", "ov_cimguiname": "igDragInt", "ret": "bool", @@ -17300,7 +18078,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt2", - "location": "imgui:552", + "location": "imgui:553", "namespace": "ImGui", "ov_cimguiname": "igDragInt2", "ret": "bool", @@ -17352,7 +18130,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt3", - "location": "imgui:553", + "location": "imgui:554", "namespace": "ImGui", "ov_cimguiname": "igDragInt3", "ret": "bool", @@ -17404,7 +18182,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt4", - "location": "imgui:554", + "location": "imgui:555", "namespace": "ImGui", "ov_cimguiname": "igDragInt4", "ret": "bool", @@ -17465,7 +18243,7 @@ "v_speed": "1.0f" }, "funcname": "DragIntRange2", - "location": "imgui:555", + "location": "imgui:556", "namespace": "ImGui", "ov_cimguiname": "igDragIntRange2", "ret": "bool", @@ -17521,7 +18299,7 @@ "v_speed": "1.0f" }, "funcname": "DragScalar", - "location": "imgui:556", + "location": "imgui:557", "namespace": "ImGui", "ov_cimguiname": "igDragScalar", "ret": "bool", @@ -17581,7 +18359,7 @@ "v_speed": "1.0f" }, "funcname": "DragScalarN", - "location": "imgui:557", + "location": "imgui:558", "namespace": "ImGui", "ov_cimguiname": "igDragScalarN", "ret": "bool", @@ -17603,7 +18381,7 @@ "cimguiname": "igDummy", "defaults": {}, "funcname": "Dummy", - "location": "imgui:454", + "location": "imgui:451", "namespace": "ImGui", "ov_cimguiname": "igDummy", "ret": "void", @@ -17620,7 +18398,7 @@ "cimguiname": "igEnd", "defaults": {}, "funcname": "End", - "location": "imgui:343", + "location": "imgui:337", "namespace": "ImGui", "ov_cimguiname": "igEnd", "ret": "void", @@ -17637,7 +18415,7 @@ "cimguiname": "igEndChild", "defaults": {}, "funcname": "EndChild", - "location": "imgui:355", + "location": "imgui:349", "namespace": "ImGui", "ov_cimguiname": "igEndChild", "ret": "void", @@ -17654,7 +18432,7 @@ "cimguiname": "igEndChildFrame", "defaults": {}, "funcname": "EndChildFrame", - "location": "imgui:906", + "location": "imgui:905", "namespace": "ImGui", "ov_cimguiname": "igEndChildFrame", "ret": "void", @@ -17671,7 +18449,7 @@ "cimguiname": "igEndColumns", "defaults": {}, "funcname": "EndColumns", - "location": "imgui_internal:2895", + "location": "imgui_internal:3246", "namespace": "ImGui", "ov_cimguiname": "igEndColumns", "ret": "void", @@ -17705,7 +18483,7 @@ "cimguiname": "igEndComboPreview", "defaults": {}, "funcname": "EndComboPreview", - "location": "imgui_internal:2797", + "location": "imgui_internal:3082", "namespace": "ImGui", "ov_cimguiname": "igEndComboPreview", "ret": "void", @@ -17722,7 +18500,7 @@ "cimguiname": "igEndDisabled", "defaults": {}, "funcname": "EndDisabled", - "location": "imgui:853", + "location": "imgui:850", "namespace": "ImGui", "ov_cimguiname": "igEndDisabled", "ret": "void", @@ -17739,7 +18517,7 @@ "cimguiname": "igEndDragDropSource", "defaults": {}, "funcname": "EndDragDropSource", - "location": "imgui:842", + "location": "imgui:839", "namespace": "ImGui", "ov_cimguiname": "igEndDragDropSource", "ret": "void", @@ -17756,7 +18534,7 @@ "cimguiname": "igEndDragDropTarget", "defaults": {}, "funcname": "EndDragDropTarget", - "location": "imgui:845", + "location": "imgui:842", "namespace": "ImGui", "ov_cimguiname": "igEndDragDropTarget", "ret": "void", @@ -17773,7 +18551,7 @@ "cimguiname": "igEndFrame", "defaults": {}, "funcname": "EndFrame", - "location": "imgui:310", + "location": "imgui:303", "namespace": "ImGui", "ov_cimguiname": "igEndFrame", "ret": "void", @@ -17790,7 +18568,7 @@ "cimguiname": "igEndGroup", "defaults": {}, "funcname": "EndGroup", - "location": "imgui:458", + "location": "imgui:455", "namespace": "ImGui", "ov_cimguiname": "igEndGroup", "ret": "void", @@ -17807,7 +18585,7 @@ "cimguiname": "igEndListBox", "defaults": {}, "funcname": "EndListBox", - "location": "imgui:641", + "location": "imgui:642", "namespace": "ImGui", "ov_cimguiname": "igEndListBox", "ret": "void", @@ -17824,7 +18602,7 @@ "cimguiname": "igEndMainMenuBar", "defaults": {}, "funcname": "EndMainMenuBar", - "location": "imgui:667", + "location": "imgui:668", "namespace": "ImGui", "ov_cimguiname": "igEndMainMenuBar", "ret": "void", @@ -17841,7 +18619,7 @@ "cimguiname": "igEndMenu", "defaults": {}, "funcname": "EndMenu", - "location": "imgui:669", + "location": "imgui:670", "namespace": "ImGui", "ov_cimguiname": "igEndMenu", "ret": "void", @@ -17858,7 +18636,7 @@ "cimguiname": "igEndMenuBar", "defaults": {}, "funcname": "EndMenuBar", - "location": "imgui:665", + "location": "imgui:666", "namespace": "ImGui", "ov_cimguiname": "igEndMenuBar", "ret": "void", @@ -17875,7 +18653,7 @@ "cimguiname": "igEndPopup", "defaults": {}, "funcname": "EndPopup", - "location": "imgui:694", + "location": "imgui:695", "namespace": "ImGui", "ov_cimguiname": "igEndPopup", "ret": "void", @@ -17892,7 +18670,7 @@ "cimguiname": "igEndTabBar", "defaults": {}, "funcname": "EndTabBar", - "location": "imgui:799", + "location": "imgui:796", "namespace": "ImGui", "ov_cimguiname": "igEndTabBar", "ret": "void", @@ -17909,7 +18687,7 @@ "cimguiname": "igEndTabItem", "defaults": {}, "funcname": "EndTabItem", - "location": "imgui:801", + "location": "imgui:798", "namespace": "ImGui", "ov_cimguiname": "igEndTabItem", "ret": "void", @@ -17943,7 +18721,7 @@ "cimguiname": "igEndTooltip", "defaults": {}, "funcname": "EndTooltip", - "location": "imgui:676", + "location": "imgui:677", "namespace": "ImGui", "ov_cimguiname": "igEndTooltip", "ret": "void", @@ -17971,7 +18749,7 @@ "user_data": "NULL" }, "funcname": "ErrorCheckEndFrameRecover", - "location": "imgui_internal:3070", + "location": "imgui_internal:3423", "namespace": "ImGui", "ov_cimguiname": "igErrorCheckEndFrameRecover", "ret": "void", @@ -17999,7 +18777,7 @@ "user_data": "NULL" }, "funcname": "ErrorCheckEndWindowRecover", - "location": "imgui_internal:3071", + "location": "imgui_internal:3424", "namespace": "ImGui", "ov_cimguiname": "igErrorCheckEndWindowRecover", "ret": "void", @@ -18007,6 +18785,23 @@ "stname": "" } ], + "igErrorCheckUsingSetCursorPosToExtendParentBoundaries": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igErrorCheckUsingSetCursorPosToExtendParentBoundaries", + "defaults": {}, + "funcname": "ErrorCheckUsingSetCursorPosToExtendParentBoundaries", + "location": "imgui_internal:3425", + "namespace": "ImGui", + "ov_cimguiname": "igErrorCheckUsingSetCursorPosToExtendParentBoundaries", + "ret": "void", + "signature": "()", + "stname": "" + } + ], "igFindBestWindowPosForPopup": [ { "args": "(ImVec2 *pOut,ImGuiWindow* window)", @@ -18025,7 +18820,7 @@ "cimguiname": "igFindBestWindowPosForPopup", "defaults": {}, "funcname": "FindBestWindowPosForPopup", - "location": "imgui_internal:2786", + "location": "imgui_internal:3071", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igFindBestWindowPosForPopup", @@ -18072,7 +18867,7 @@ "cimguiname": "igFindBestWindowPosForPopupEx", "defaults": {}, "funcname": "FindBestWindowPosForPopupEx", - "location": "imgui_internal:2787", + "location": "imgui_internal:3072", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igFindBestWindowPosForPopupEx", @@ -18095,7 +18890,7 @@ "cimguiname": "igFindBottomMostVisibleWindowWithinBeginStack", "defaults": {}, "funcname": "FindBottomMostVisibleWindowWithinBeginStack", - "location": "imgui_internal:2669", + "location": "imgui_internal:2957", "namespace": "ImGui", "ov_cimguiname": "igFindBottomMostVisibleWindowWithinBeginStack", "ret": "ImGuiWindow*", @@ -18103,6 +18898,28 @@ "stname": "" } ], + "igFindHoveredViewportFromPlatformWindowStack": [ + { + "args": "(const ImVec2 mouse_platform_pos)", + "argsT": [ + { + "name": "mouse_platform_pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& mouse_platform_pos)", + "call_args": "(mouse_platform_pos)", + "cimguiname": "igFindHoveredViewportFromPlatformWindowStack", + "defaults": {}, + "funcname": "FindHoveredViewportFromPlatformWindowStack", + "location": "imgui_internal:2988", + "namespace": "ImGui", + "ov_cimguiname": "igFindHoveredViewportFromPlatformWindowStack", + "ret": "ImGuiViewportP*", + "signature": "(const ImVec2)", + "stname": "" + } + ], "igFindOrCreateColumns": [ { "args": "(ImGuiWindow* window,ImGuiID id)", @@ -18121,7 +18938,7 @@ "cimguiname": "igFindOrCreateColumns", "defaults": {}, "funcname": "FindOrCreateColumns", - "location": "imgui_internal:2900", + "location": "imgui_internal:3251", "namespace": "ImGui", "ov_cimguiname": "igFindOrCreateColumns", "ret": "ImGuiOldColumns*", @@ -18143,7 +18960,7 @@ "cimguiname": "igFindOrCreateWindowSettings", "defaults": {}, "funcname": "FindOrCreateWindowSettings", - "location": "imgui_internal:2705", + "location": "imgui_internal:2996", "namespace": "ImGui", "ov_cimguiname": "igFindOrCreateWindowSettings", "ret": "ImGuiWindowSettings*", @@ -18171,7 +18988,7 @@ "text_end": "NULL" }, "funcname": "FindRenderedTextEnd", - "location": "imgui_internal:2982", + "location": "imgui_internal:3336", "namespace": "ImGui", "ov_cimguiname": "igFindRenderedTextEnd", "ret": "const char*", @@ -18193,7 +19010,7 @@ "cimguiname": "igFindSettingsHandler", "defaults": {}, "funcname": "FindSettingsHandler", - "location": "imgui_internal:2706", + "location": "imgui_internal:2999", "namespace": "ImGui", "ov_cimguiname": "igFindSettingsHandler", "ret": "ImGuiSettingsHandler*", @@ -18215,7 +19032,7 @@ "cimguiname": "igFindViewportByID", "defaults": {}, "funcname": "FindViewportByID", - "location": "imgui:982", + "location": "imgui:984", "namespace": "ImGui", "ov_cimguiname": "igFindViewportByID", "ret": "ImGuiViewport*", @@ -18237,7 +19054,7 @@ "cimguiname": "igFindViewportByPlatformHandle", "defaults": {}, "funcname": "FindViewportByPlatformHandle", - "location": "imgui:983", + "location": "imgui:985", "namespace": "ImGui", "ov_cimguiname": "igFindViewportByPlatformHandle", "ret": "ImGuiViewport*", @@ -18259,7 +19076,7 @@ "cimguiname": "igFindWindowByID", "defaults": {}, "funcname": "FindWindowByID", - "location": "imgui_internal:2646", + "location": "imgui_internal:2934", "namespace": "ImGui", "ov_cimguiname": "igFindWindowByID", "ret": "ImGuiWindow*", @@ -18281,7 +19098,7 @@ "cimguiname": "igFindWindowByName", "defaults": {}, "funcname": "FindWindowByName", - "location": "imgui_internal:2647", + "location": "imgui_internal:2935", "namespace": "ImGui", "ov_cimguiname": "igFindWindowByName", "ret": "ImGuiWindow*", @@ -18303,7 +19120,7 @@ "cimguiname": "igFindWindowDisplayIndex", "defaults": {}, "funcname": "FindWindowDisplayIndex", - "location": "imgui_internal:2668", + "location": "imgui_internal:2956", "namespace": "ImGui", "ov_cimguiname": "igFindWindowDisplayIndex", "ret": "int", @@ -18325,7 +19142,7 @@ "cimguiname": "igFindWindowSettings", "defaults": {}, "funcname": "FindWindowSettings", - "location": "imgui_internal:2704", + "location": "imgui_internal:2995", "namespace": "ImGui", "ov_cimguiname": "igFindWindowSettings", "ret": "ImGuiWindowSettings*", @@ -18351,7 +19168,7 @@ "cimguiname": "igFocusTopMostWindowUnderOne", "defaults": {}, "funcname": "FocusTopMostWindowUnderOne", - "location": "imgui_internal:2663", + "location": "imgui_internal:2951", "namespace": "ImGui", "ov_cimguiname": "igFocusTopMostWindowUnderOne", "ret": "void", @@ -18373,7 +19190,7 @@ "cimguiname": "igFocusWindow", "defaults": {}, "funcname": "FocusWindow", - "location": "imgui_internal:2662", + "location": "imgui_internal:2950", "namespace": "ImGui", "ov_cimguiname": "igFocusWindow", "ret": "void", @@ -18395,7 +19212,7 @@ "cimguiname": "igGcAwakeTransientWindowBuffers", "defaults": {}, "funcname": "GcAwakeTransientWindowBuffers", - "location": "imgui_internal:3067", + "location": "imgui_internal:3416", "namespace": "ImGui", "ov_cimguiname": "igGcAwakeTransientWindowBuffers", "ret": "void", @@ -18412,7 +19229,7 @@ "cimguiname": "igGcCompactTransientMiscBuffers", "defaults": {}, "funcname": "GcCompactTransientMiscBuffers", - "location": "imgui_internal:3065", + "location": "imgui_internal:3414", "namespace": "ImGui", "ov_cimguiname": "igGcCompactTransientMiscBuffers", "ret": "void", @@ -18434,7 +19251,7 @@ "cimguiname": "igGcCompactTransientWindowBuffers", "defaults": {}, "funcname": "GcCompactTransientWindowBuffers", - "location": "imgui_internal:3066", + "location": "imgui_internal:3415", "namespace": "ImGui", "ov_cimguiname": "igGcCompactTransientWindowBuffers", "ret": "void", @@ -18451,7 +19268,7 @@ "cimguiname": "igGetActiveID", "defaults": {}, "funcname": "GetActiveID", - "location": "imgui_internal:2727", + "location": "imgui_internal:3023", "namespace": "ImGui", "ov_cimguiname": "igGetActiveID", "ret": "ImGuiID", @@ -18481,7 +19298,7 @@ "cimguiname": "igGetAllocatorFunctions", "defaults": {}, "funcname": "GetAllocatorFunctions", - "location": "imgui:971", + "location": "imgui:973", "namespace": "ImGui", "ov_cimguiname": "igGetAllocatorFunctions", "ret": "void", @@ -18498,9 +19315,9 @@ "cimguiname": "igGetBackgroundDrawList", "defaults": {}, "funcname": "GetBackgroundDrawList", - "location": "imgui:897", + "location": "imgui:890", "namespace": "ImGui", - "ov_cimguiname": "igGetBackgroundDrawListNil", + "ov_cimguiname": "igGetBackgroundDrawList_Nil", "ret": "ImDrawList*", "signature": "()", "stname": "" @@ -18518,9 +19335,9 @@ "cimguiname": "igGetBackgroundDrawList", "defaults": {}, "funcname": "GetBackgroundDrawList", - "location": "imgui:899", + "location": "imgui:892", "namespace": "ImGui", - "ov_cimguiname": "igGetBackgroundDrawListViewportPtr", + "ov_cimguiname": "igGetBackgroundDrawList_ViewportPtr", "ret": "ImDrawList*", "signature": "(ImGuiViewport*)", "stname": "" @@ -18535,7 +19352,7 @@ "cimguiname": "igGetClipboardText", "defaults": {}, "funcname": "GetClipboardText", - "location": "imgui:950", + "location": "imgui:952", "namespace": "ImGui", "ov_cimguiname": "igGetClipboardText", "ret": "const char*", @@ -18563,9 +19380,9 @@ "alpha_mul": "1.0f" }, "funcname": "GetColorU32", - "location": "imgui:438", + "location": "imgui:435", "namespace": "ImGui", - "ov_cimguiname": "igGetColorU32Col", + "ov_cimguiname": "igGetColorU32_Col", "ret": "ImU32", "signature": "(ImGuiCol,float)", "stname": "" @@ -18583,9 +19400,9 @@ "cimguiname": "igGetColorU32", "defaults": {}, "funcname": "GetColorU32", - "location": "imgui:439", + "location": "imgui:436", "namespace": "ImGui", - "ov_cimguiname": "igGetColorU32Vec4", + "ov_cimguiname": "igGetColorU32_Vec4", "ret": "ImU32", "signature": "(const ImVec4)", "stname": "" @@ -18603,9 +19420,9 @@ "cimguiname": "igGetColorU32", "defaults": {}, "funcname": "GetColorU32", - "location": "imgui:440", + "location": "imgui:437", "namespace": "ImGui", - "ov_cimguiname": "igGetColorU32U32", + "ov_cimguiname": "igGetColorU32_U32", "ret": "ImU32", "signature": "(ImU32)", "stname": "" @@ -18620,7 +19437,7 @@ "cimguiname": "igGetColumnIndex", "defaults": {}, "funcname": "GetColumnIndex", - "location": "imgui:789", + "location": "imgui:786", "namespace": "ImGui", "ov_cimguiname": "igGetColumnIndex", "ret": "int", @@ -18646,7 +19463,7 @@ "cimguiname": "igGetColumnNormFromOffset", "defaults": {}, "funcname": "GetColumnNormFromOffset", - "location": "imgui_internal:2902", + "location": "imgui_internal:3253", "namespace": "ImGui", "ov_cimguiname": "igGetColumnNormFromOffset", "ret": "float", @@ -18670,7 +19487,7 @@ "column_index": "-1" }, "funcname": "GetColumnOffset", - "location": "imgui:792", + "location": "imgui:789", "namespace": "ImGui", "ov_cimguiname": "igGetColumnOffset", "ret": "float", @@ -18696,7 +19513,7 @@ "cimguiname": "igGetColumnOffsetFromNorm", "defaults": {}, "funcname": "GetColumnOffsetFromNorm", - "location": "imgui_internal:2901", + "location": "imgui_internal:3252", "namespace": "ImGui", "ov_cimguiname": "igGetColumnOffsetFromNorm", "ret": "float", @@ -18720,7 +19537,7 @@ "column_index": "-1" }, "funcname": "GetColumnWidth", - "location": "imgui:790", + "location": "imgui:787", "namespace": "ImGui", "ov_cimguiname": "igGetColumnWidth", "ret": "float", @@ -18737,7 +19554,7 @@ "cimguiname": "igGetColumnsCount", "defaults": {}, "funcname": "GetColumnsCount", - "location": "imgui:794", + "location": "imgui:791", "namespace": "ImGui", "ov_cimguiname": "igGetColumnsCount", "ret": "int", @@ -18763,7 +19580,7 @@ "cimguiname": "igGetColumnsID", "defaults": {}, "funcname": "GetColumnsID", - "location": "imgui_internal:2899", + "location": "imgui_internal:3250", "namespace": "ImGui", "ov_cimguiname": "igGetColumnsID", "ret": "ImGuiID", @@ -18785,7 +19602,7 @@ "cimguiname": "igGetContentRegionAvail", "defaults": {}, "funcname": "GetContentRegionAvail", - "location": "imgui:394", + "location": "imgui:389", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetContentRegionAvail", @@ -18808,7 +19625,7 @@ "cimguiname": "igGetContentRegionMax", "defaults": {}, "funcname": "GetContentRegionMax", - "location": "imgui:395", + "location": "imgui:390", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetContentRegionMax", @@ -18831,7 +19648,7 @@ "cimguiname": "igGetContentRegionMaxAbs", "defaults": {}, "funcname": "GetContentRegionMaxAbs", - "location": "imgui_internal:2750", + "location": "imgui_internal:3046", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetContentRegionMaxAbs", @@ -18849,7 +19666,7 @@ "cimguiname": "igGetCurrentContext", "defaults": {}, "funcname": "GetCurrentContext", - "location": "imgui:303", + "location": "imgui:296", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentContext", "ret": "ImGuiContext*", @@ -18857,6 +19674,23 @@ "stname": "" } ], + "igGetCurrentFocusScope": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCurrentFocusScope", + "defaults": {}, + "funcname": "GetCurrentFocusScope", + "location": "imgui_internal:3234", + "namespace": "ImGui", + "ov_cimguiname": "igGetCurrentFocusScope", + "ret": "ImGuiID", + "signature": "()", + "stname": "" + } + ], "igGetCurrentTable": [ { "args": "()", @@ -18866,7 +19700,7 @@ "cimguiname": "igGetCurrentTable", "defaults": {}, "funcname": "GetCurrentTable", - "location": "imgui_internal:2914", + "location": "imgui_internal:3265", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentTable", "ret": "ImGuiTable*", @@ -18883,7 +19717,7 @@ "cimguiname": "igGetCurrentWindow", "defaults": {}, "funcname": "GetCurrentWindow", - "location": "imgui_internal:2645", + "location": "imgui_internal:2933", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentWindow", "ret": "ImGuiWindow*", @@ -18900,7 +19734,7 @@ "cimguiname": "igGetCurrentWindowRead", "defaults": {}, "funcname": "GetCurrentWindowRead", - "location": "imgui_internal:2644", + "location": "imgui_internal:2932", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentWindowRead", "ret": "ImGuiWindow*", @@ -18922,7 +19756,7 @@ "cimguiname": "igGetCursorPos", "defaults": {}, "funcname": "GetCursorPos", - "location": "imgui:459", + "location": "imgui:456", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorPos", @@ -18940,7 +19774,7 @@ "cimguiname": "igGetCursorPosX", "defaults": {}, "funcname": "GetCursorPosX", - "location": "imgui:460", + "location": "imgui:457", "namespace": "ImGui", "ov_cimguiname": "igGetCursorPosX", "ret": "float", @@ -18957,7 +19791,7 @@ "cimguiname": "igGetCursorPosY", "defaults": {}, "funcname": "GetCursorPosY", - "location": "imgui:461", + "location": "imgui:458", "namespace": "ImGui", "ov_cimguiname": "igGetCursorPosY", "ret": "float", @@ -18979,7 +19813,7 @@ "cimguiname": "igGetCursorScreenPos", "defaults": {}, "funcname": "GetCursorScreenPos", - "location": "imgui:466", + "location": "imgui:463", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorScreenPos", @@ -19002,7 +19836,7 @@ "cimguiname": "igGetCursorStartPos", "defaults": {}, "funcname": "GetCursorStartPos", - "location": "imgui:465", + "location": "imgui:462", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorStartPos", @@ -19020,7 +19854,7 @@ "cimguiname": "igGetDefaultFont", "defaults": {}, "funcname": "GetDefaultFont", - "location": "imgui_internal:2673", + "location": "imgui_internal:2961", "namespace": "ImGui", "ov_cimguiname": "igGetDefaultFont", "ret": "ImFont*", @@ -19037,7 +19871,7 @@ "cimguiname": "igGetDragDropPayload", "defaults": {}, "funcname": "GetDragDropPayload", - "location": "imgui:846", + "location": "imgui:843", "namespace": "ImGui", "ov_cimguiname": "igGetDragDropPayload", "ret": "const ImGuiPayload*", @@ -19054,7 +19888,7 @@ "cimguiname": "igGetDrawData", "defaults": {}, "funcname": "GetDrawData", - "location": "imgui:312", + "location": "imgui:305", "namespace": "ImGui", "ov_cimguiname": "igGetDrawData", "ret": "ImDrawData*", @@ -19071,7 +19905,7 @@ "cimguiname": "igGetDrawListSharedData", "defaults": {}, "funcname": "GetDrawListSharedData", - "location": "imgui:901", + "location": "imgui:900", "namespace": "ImGui", "ov_cimguiname": "igGetDrawListSharedData", "ret": "ImDrawListSharedData*", @@ -19088,7 +19922,7 @@ "cimguiname": "igGetFocusID", "defaults": {}, "funcname": "GetFocusID", - "location": "imgui_internal:2728", + "location": "imgui_internal:3024", "namespace": "ImGui", "ov_cimguiname": "igGetFocusID", "ret": "ImGuiID", @@ -19096,40 +19930,6 @@ "stname": "" } ], - "igGetFocusScope": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetFocusScope", - "defaults": {}, - "funcname": "GetFocusScope", - "location": "imgui_internal:2821", - "namespace": "ImGui", - "ov_cimguiname": "igGetFocusScope", - "ret": "ImGuiID", - "signature": "()", - "stname": "" - } - ], - "igGetFocusedFocusScope": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetFocusedFocusScope", - "defaults": {}, - "funcname": "GetFocusedFocusScope", - "location": "imgui_internal:2820", - "namespace": "ImGui", - "ov_cimguiname": "igGetFocusedFocusScope", - "ret": "ImGuiID", - "signature": "()", - "stname": "" - } - ], "igGetFont": [ { "args": "()", @@ -19139,7 +19939,7 @@ "cimguiname": "igGetFont", "defaults": {}, "funcname": "GetFont", - "location": "imgui:435", + "location": "imgui:432", "namespace": "ImGui", "ov_cimguiname": "igGetFont", "ret": "ImFont*", @@ -19156,7 +19956,7 @@ "cimguiname": "igGetFontSize", "defaults": {}, "funcname": "GetFontSize", - "location": "imgui:436", + "location": "imgui:433", "namespace": "ImGui", "ov_cimguiname": "igGetFontSize", "ret": "float", @@ -19178,7 +19978,7 @@ "cimguiname": "igGetFontTexUvWhitePixel", "defaults": {}, "funcname": "GetFontTexUvWhitePixel", - "location": "imgui:437", + "location": "imgui:434", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetFontTexUvWhitePixel", @@ -19196,9 +19996,9 @@ "cimguiname": "igGetForegroundDrawList", "defaults": {}, "funcname": "GetForegroundDrawList", - "location": "imgui:898", + "location": "imgui:891", "namespace": "ImGui", - "ov_cimguiname": "igGetForegroundDrawListNil", + "ov_cimguiname": "igGetForegroundDrawList_Nil", "ret": "ImDrawList*", "signature": "()", "stname": "" @@ -19216,9 +20016,9 @@ "cimguiname": "igGetForegroundDrawList", "defaults": {}, "funcname": "GetForegroundDrawList", - "location": "imgui:900", + "location": "imgui:893", "namespace": "ImGui", - "ov_cimguiname": "igGetForegroundDrawListViewportPtr", + "ov_cimguiname": "igGetForegroundDrawList_ViewportPtr", "ret": "ImDrawList*", "signature": "(ImGuiViewport*)", "stname": "" @@ -19236,9 +20036,9 @@ "cimguiname": "igGetForegroundDrawList", "defaults": {}, "funcname": "GetForegroundDrawList", - "location": "imgui_internal:2674", + "location": "imgui_internal:2962", "namespace": "ImGui", - "ov_cimguiname": "igGetForegroundDrawListWindowPtr", + "ov_cimguiname": "igGetForegroundDrawList_WindowPtr", "ret": "ImDrawList*", "signature": "(ImGuiWindow*)", "stname": "" @@ -19253,7 +20053,7 @@ "cimguiname": "igGetFrameCount", "defaults": {}, "funcname": "GetFrameCount", - "location": "imgui:896", + "location": "imgui:899", "namespace": "ImGui", "ov_cimguiname": "igGetFrameCount", "ret": "int", @@ -19270,7 +20070,7 @@ "cimguiname": "igGetFrameHeight", "defaults": {}, "funcname": "GetFrameHeight", - "location": "imgui:471", + "location": "imgui:468", "namespace": "ImGui", "ov_cimguiname": "igGetFrameHeight", "ret": "float", @@ -19287,7 +20087,7 @@ "cimguiname": "igGetFrameHeightWithSpacing", "defaults": {}, "funcname": "GetFrameHeightWithSpacing", - "location": "imgui:472", + "location": "imgui:469", "namespace": "ImGui", "ov_cimguiname": "igGetFrameHeightWithSpacing", "ret": "float", @@ -19304,7 +20104,7 @@ "cimguiname": "igGetHoveredID", "defaults": {}, "funcname": "GetHoveredID", - "location": "imgui_internal:2732", + "location": "imgui_internal:3028", "namespace": "ImGui", "ov_cimguiname": "igGetHoveredID", "ret": "ImGuiID", @@ -19326,9 +20126,9 @@ "cimguiname": "igGetID", "defaults": {}, "funcname": "GetID", - "location": "imgui:490", + "location": "imgui:487", "namespace": "ImGui", - "ov_cimguiname": "igGetIDStr", + "ov_cimguiname": "igGetID_Str", "ret": "ImGuiID", "signature": "(const char*)", "stname": "" @@ -19350,9 +20150,9 @@ "cimguiname": "igGetID", "defaults": {}, "funcname": "GetID", - "location": "imgui:491", + "location": "imgui:488", "namespace": "ImGui", - "ov_cimguiname": "igGetIDStrStr", + "ov_cimguiname": "igGetID_StrStr", "ret": "ImGuiID", "signature": "(const char*,const char*)", "stname": "" @@ -19370,9 +20170,9 @@ "cimguiname": "igGetID", "defaults": {}, "funcname": "GetID", - "location": "imgui:492", + "location": "imgui:489", "namespace": "ImGui", - "ov_cimguiname": "igGetIDPtr", + "ov_cimguiname": "igGetID_Ptr", "ret": "ImGuiID", "signature": "(const void*)", "stname": "" @@ -19400,7 +20200,7 @@ "cimguiname": "igGetIDWithSeed", "defaults": {}, "funcname": "GetIDWithSeed", - "location": "imgui_internal:2737", + "location": "imgui_internal:3033", "namespace": "ImGui", "ov_cimguiname": "igGetIDWithSeed", "ret": "ImGuiID", @@ -19417,7 +20217,7 @@ "cimguiname": "igGetIO", "defaults": {}, "funcname": "GetIO", - "location": "imgui:307", + "location": "imgui:300", "namespace": "ImGui", "ov_cimguiname": "igGetIO", "ret": "ImGuiIO*", @@ -19440,7 +20240,7 @@ "cimguiname": "igGetInputTextState", "defaults": {}, "funcname": "GetInputTextState", - "location": "imgui_internal:3050", + "location": "imgui_internal:3399", "namespace": "ImGui", "ov_cimguiname": "igGetInputTextState", "ret": "ImGuiInputTextState*", @@ -19457,7 +20257,7 @@ "cimguiname": "igGetItemFlags", "defaults": {}, "funcname": "GetItemFlags", - "location": "imgui_internal:2726", + "location": "imgui_internal:3022", "namespace": "ImGui", "ov_cimguiname": "igGetItemFlags", "ret": "ImGuiItemFlags", @@ -19474,7 +20274,7 @@ "cimguiname": "igGetItemID", "defaults": {}, "funcname": "GetItemID", - "location": "imgui_internal:2724", + "location": "imgui_internal:3020", "namespace": "ImGui", "ov_cimguiname": "igGetItemID", "ret": "ImGuiID", @@ -19496,7 +20296,7 @@ "cimguiname": "igGetItemRectMax", "defaults": {}, "funcname": "GetItemRectMax", - "location": "imgui:882", + "location": "imgui:879", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectMax", @@ -19519,7 +20319,7 @@ "cimguiname": "igGetItemRectMin", "defaults": {}, "funcname": "GetItemRectMin", - "location": "imgui:881", + "location": "imgui:878", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectMin", @@ -19542,7 +20342,7 @@ "cimguiname": "igGetItemRectSize", "defaults": {}, "funcname": "GetItemRectSize", - "location": "imgui:883", + "location": "imgui:880", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectSize", @@ -19560,7 +20360,7 @@ "cimguiname": "igGetItemStatusFlags", "defaults": {}, "funcname": "GetItemStatusFlags", - "location": "imgui_internal:2725", + "location": "imgui_internal:3021", "namespace": "ImGui", "ov_cimguiname": "igGetItemStatusFlags", "ret": "ImGuiItemStatusFlags", @@ -19568,35 +20368,153 @@ "stname": "" } ], + "igGetKeyChordName": [ + { + "args": "(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size)", + "argsT": [ + { + "name": "key_chord", + "type": "ImGuiKeyChord" + }, + { + "name": "out_buf", + "type": "char*" + }, + { + "name": "out_buf_size", + "type": "int" + } + ], + "argsoriginal": "(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size)", + "call_args": "(key_chord,out_buf,out_buf_size)", + "cimguiname": "igGetKeyChordName", + "defaults": {}, + "funcname": "GetKeyChordName", + "location": "imgui_internal:3117", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyChordName", + "ret": "void", + "signature": "(ImGuiKeyChord,char*,int)", + "stname": "" + } + ], + "igGetKeyData": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyData", + "defaults": {}, + "funcname": "GetKeyData", + "location": "imgui_internal:3116", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyData", + "ret": "ImGuiKeyData*", + "signature": "(ImGuiKey)", + "stname": "" + } + ], "igGetKeyIndex": [ { - "args": "(ImGuiKey imgui_key)", + "args": "(ImGuiKey key)", "argsT": [ { - "name": "imgui_key", + "name": "key", "type": "ImGuiKey" } ], - "argsoriginal": "(ImGuiKey imgui_key)", - "call_args": "(imgui_key)", + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", "cimguiname": "igGetKeyIndex", "defaults": {}, "funcname": "GetKeyIndex", - "location": "imgui:920", + "location": "imgui:3214", "namespace": "ImGui", "ov_cimguiname": "igGetKeyIndex", - "ret": "int", + "ret": "ImGuiKey", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyName": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyName", + "defaults": {}, + "funcname": "GetKeyName", + "location": "imgui:926", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyName", + "ret": "const char*", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyOwner": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyOwner", + "defaults": {}, + "funcname": "GetKeyOwner", + "location": "imgui_internal:3138", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyOwner", + "ret": "ImGuiID", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyOwnerData": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyOwnerData", + "defaults": {}, + "funcname": "GetKeyOwnerData", + "location": "imgui_internal:3142", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyOwnerData", + "ret": "ImGuiKeyOwnerData*", "signature": "(ImGuiKey)", "stname": "" } ], "igGetKeyPressedAmount": [ { - "args": "(int key_index,float repeat_delay,float rate)", + "args": "(ImGuiKey key,float repeat_delay,float rate)", "argsT": [ { - "name": "key_index", - "type": "int" + "name": "key", + "type": "ImGuiKey" }, { "name": "repeat_delay", @@ -19607,49 +20525,71 @@ "type": "float" } ], - "argsoriginal": "(int key_index,float repeat_delay,float rate)", - "call_args": "(key_index,repeat_delay,rate)", + "argsoriginal": "(ImGuiKey key,float repeat_delay,float rate)", + "call_args": "(key,repeat_delay,rate)", "cimguiname": "igGetKeyPressedAmount", "defaults": {}, "funcname": "GetKeyPressedAmount", - "location": "imgui:924", + "location": "imgui:925", "namespace": "ImGui", "ov_cimguiname": "igGetKeyPressedAmount", "ret": "int", - "signature": "(int,float,float)", + "signature": "(ImGuiKey,float,float)", "stname": "" } ], - "igGetMainViewport": [ + "igGetKeyVector2d": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetMainViewport", + "args": "(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "key_left", + "type": "ImGuiKey" + }, + { + "name": "key_right", + "type": "ImGuiKey" + }, + { + "name": "key_up", + "type": "ImGuiKey" + }, + { + "name": "key_down", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", + "call_args": "(key_left,key_right,key_up,key_down)", + "cimguiname": "igGetKeyVector2d", "defaults": {}, - "funcname": "GetMainViewport", - "location": "imgui:890", + "funcname": "GetKeyVector2d", + "location": "imgui_internal:3120", "namespace": "ImGui", - "ov_cimguiname": "igGetMainViewport", - "ret": "ImGuiViewport*", - "signature": "()", + "nonUDT": 1, + "ov_cimguiname": "igGetKeyVector2d", + "ret": "void", + "signature": "(ImGuiKey,ImGuiKey,ImGuiKey,ImGuiKey)", "stname": "" } ], - "igGetMergedKeyModFlags": [ + "igGetMainViewport": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetMergedKeyModFlags", + "cimguiname": "igGetMainViewport", "defaults": {}, - "funcname": "GetMergedKeyModFlags", - "location": "imgui_internal:2834", + "funcname": "GetMainViewport", + "location": "imgui:887", "namespace": "ImGui", - "ov_cimguiname": "igGetMergedKeyModFlags", - "ret": "ImGuiKeyModFlags", + "ov_cimguiname": "igGetMainViewport", + "ret": "ImGuiViewport*", "signature": "()", "stname": "" } @@ -19668,7 +20608,7 @@ "cimguiname": "igGetMouseClickedCount", "defaults": {}, "funcname": "GetMouseClickedCount", - "location": "imgui:935", + "location": "imgui:937", "namespace": "ImGui", "ov_cimguiname": "igGetMouseClickedCount", "ret": "int", @@ -19685,7 +20625,7 @@ "cimguiname": "igGetMouseCursor", "defaults": {}, "funcname": "GetMouseCursor", - "location": "imgui:944", + "location": "imgui:946", "namespace": "ImGui", "ov_cimguiname": "igGetMouseCursor", "ret": "ImGuiMouseCursor", @@ -19718,7 +20658,7 @@ "lock_threshold": "-1.0f" }, "funcname": "GetMouseDragDelta", - "location": "imgui:942", + "location": "imgui:944", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMouseDragDelta", @@ -19741,7 +20681,7 @@ "cimguiname": "igGetMousePos", "defaults": {}, "funcname": "GetMousePos", - "location": "imgui:939", + "location": "imgui:941", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMousePos", @@ -19764,7 +20704,7 @@ "cimguiname": "igGetMousePosOnOpeningCurrentPopup", "defaults": {}, "funcname": "GetMousePosOnOpeningCurrentPopup", - "location": "imgui:940", + "location": "imgui:942", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMousePosOnOpeningCurrentPopup", @@ -19773,71 +20713,25 @@ "stname": "" } ], - "igGetNavInputAmount": [ + "igGetNavTweakPressedAmount": [ { - "args": "(ImGuiNavInput n,ImGuiInputReadMode mode)", + "args": "(ImGuiAxis axis)", "argsT": [ { - "name": "n", - "type": "ImGuiNavInput" - }, - { - "name": "mode", - "type": "ImGuiInputReadMode" + "name": "axis", + "type": "ImGuiAxis" } ], - "argsoriginal": "(ImGuiNavInput n,ImGuiInputReadMode mode)", - "call_args": "(n,mode)", - "cimguiname": "igGetNavInputAmount", + "argsoriginal": "(ImGuiAxis axis)", + "call_args": "(axis)", + "cimguiname": "igGetNavTweakPressedAmount", "defaults": {}, - "funcname": "GetNavInputAmount", - "location": "imgui_internal:2809", + "funcname": "GetNavTweakPressedAmount", + "location": "imgui_internal:3121", "namespace": "ImGui", - "ov_cimguiname": "igGetNavInputAmount", + "ov_cimguiname": "igGetNavTweakPressedAmount", "ret": "float", - "signature": "(ImGuiNavInput,ImGuiInputReadMode)", - "stname": "" - } - ], - "igGetNavInputAmount2d": [ - { - "args": "(ImVec2 *pOut,ImGuiNavDirSourceFlags dir_sources,ImGuiInputReadMode mode,float slow_factor,float fast_factor)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, - { - "name": "dir_sources", - "type": "ImGuiNavDirSourceFlags" - }, - { - "name": "mode", - "type": "ImGuiInputReadMode" - }, - { - "name": "slow_factor", - "type": "float" - }, - { - "name": "fast_factor", - "type": "float" - } - ], - "argsoriginal": "(ImGuiNavDirSourceFlags dir_sources,ImGuiInputReadMode mode,float slow_factor=0.0f,float fast_factor=0.0f)", - "call_args": "(dir_sources,mode,slow_factor,fast_factor)", - "cimguiname": "igGetNavInputAmount2d", - "defaults": { - "fast_factor": "0.0f", - "slow_factor": "0.0f" - }, - "funcname": "GetNavInputAmount2d", - "location": "imgui_internal:2810", - "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetNavInputAmount2d", - "ret": "void", - "signature": "(ImGuiNavDirSourceFlags,ImGuiInputReadMode,float,float)", + "signature": "(ImGuiAxis)", "stname": "" } ], @@ -19850,7 +20744,7 @@ "cimguiname": "igGetPlatformIO", "defaults": {}, "funcname": "GetPlatformIO", - "location": "imgui:978", + "location": "imgui:980", "namespace": "ImGui", "ov_cimguiname": "igGetPlatformIO", "ret": "ImGuiPlatformIO*", @@ -19877,7 +20771,7 @@ "cimguiname": "igGetPopupAllowedExtentRect", "defaults": {}, "funcname": "GetPopupAllowedExtentRect", - "location": "imgui_internal:2783", + "location": "imgui_internal:3068", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetPopupAllowedExtentRect", @@ -19895,7 +20789,7 @@ "cimguiname": "igGetScrollMaxX", "defaults": {}, "funcname": "GetScrollMaxX", - "location": "imgui:404", + "location": "imgui:401", "namespace": "ImGui", "ov_cimguiname": "igGetScrollMaxX", "ret": "float", @@ -19912,7 +20806,7 @@ "cimguiname": "igGetScrollMaxY", "defaults": {}, "funcname": "GetScrollMaxY", - "location": "imgui:405", + "location": "imgui:402", "namespace": "ImGui", "ov_cimguiname": "igGetScrollMaxY", "ret": "float", @@ -19929,7 +20823,7 @@ "cimguiname": "igGetScrollX", "defaults": {}, "funcname": "GetScrollX", - "location": "imgui:400", + "location": "imgui:397", "namespace": "ImGui", "ov_cimguiname": "igGetScrollX", "ret": "float", @@ -19946,7 +20840,7 @@ "cimguiname": "igGetScrollY", "defaults": {}, "funcname": "GetScrollY", - "location": "imgui:401", + "location": "imgui:398", "namespace": "ImGui", "ov_cimguiname": "igGetScrollY", "ret": "float", @@ -19954,6 +20848,28 @@ "stname": "" } ], + "igGetShortcutRoutingData": [ + { + "args": "(ImGuiKeyChord key_chord)", + "argsT": [ + { + "name": "key_chord", + "type": "ImGuiKeyChord" + } + ], + "argsoriginal": "(ImGuiKeyChord key_chord)", + "call_args": "(key_chord)", + "cimguiname": "igGetShortcutRoutingData", + "defaults": {}, + "funcname": "GetShortcutRoutingData", + "location": "imgui_internal:3170", + "namespace": "ImGui", + "ov_cimguiname": "igGetShortcutRoutingData", + "ret": "ImGuiKeyRoutingData*", + "signature": "(ImGuiKeyChord)", + "stname": "" + } + ], "igGetStateStorage": [ { "args": "()", @@ -19963,7 +20879,7 @@ "cimguiname": "igGetStateStorage", "defaults": {}, "funcname": "GetStateStorage", - "location": "imgui:904", + "location": "imgui:903", "namespace": "ImGui", "ov_cimguiname": "igGetStateStorage", "ret": "ImGuiStorage*", @@ -19980,7 +20896,7 @@ "cimguiname": "igGetStyle", "defaults": {}, "funcname": "GetStyle", - "location": "imgui:308", + "location": "imgui:301", "namespace": "ImGui", "ov_cimguiname": "igGetStyle", "ret": "ImGuiStyle*", @@ -20003,7 +20919,7 @@ "cimguiname": "igGetStyleColorName", "defaults": {}, "funcname": "GetStyleColorName", - "location": "imgui:902", + "location": "imgui:901", "namespace": "ImGui", "ov_cimguiname": "igGetStyleColorName", "ret": "const char*", @@ -20025,7 +20941,7 @@ "cimguiname": "igGetStyleColorVec4", "defaults": {}, "funcname": "GetStyleColorVec4", - "location": "imgui:441", + "location": "imgui:438", "namespace": "ImGui", "ov_cimguiname": "igGetStyleColorVec4", "ret": "const ImVec4*", @@ -20043,7 +20959,7 @@ "cimguiname": "igGetTextLineHeight", "defaults": {}, "funcname": "GetTextLineHeight", - "location": "imgui:469", + "location": "imgui:466", "namespace": "ImGui", "ov_cimguiname": "igGetTextLineHeight", "ret": "float", @@ -20060,7 +20976,7 @@ "cimguiname": "igGetTextLineHeightWithSpacing", "defaults": {}, "funcname": "GetTextLineHeightWithSpacing", - "location": "imgui:470", + "location": "imgui:467", "namespace": "ImGui", "ov_cimguiname": "igGetTextLineHeightWithSpacing", "ret": "float", @@ -20077,7 +20993,7 @@ "cimguiname": "igGetTime", "defaults": {}, "funcname": "GetTime", - "location": "imgui:895", + "location": "imgui:898", "namespace": "ImGui", "ov_cimguiname": "igGetTime", "ret": "double", @@ -20094,7 +21010,7 @@ "cimguiname": "igGetTopMostAndVisiblePopupModal", "defaults": {}, "funcname": "GetTopMostAndVisiblePopupModal", - "location": "imgui_internal:2785", + "location": "imgui_internal:3070", "namespace": "ImGui", "ov_cimguiname": "igGetTopMostAndVisiblePopupModal", "ret": "ImGuiWindow*", @@ -20111,7 +21027,7 @@ "cimguiname": "igGetTopMostPopupModal", "defaults": {}, "funcname": "GetTopMostPopupModal", - "location": "imgui_internal:2784", + "location": "imgui_internal:3069", "namespace": "ImGui", "ov_cimguiname": "igGetTopMostPopupModal", "ret": "ImGuiWindow*", @@ -20128,7 +21044,7 @@ "cimguiname": "igGetTreeNodeToLabelSpacing", "defaults": {}, "funcname": "GetTreeNodeToLabelSpacing", - "location": "imgui:623", + "location": "imgui:624", "namespace": "ImGui", "ov_cimguiname": "igGetTreeNodeToLabelSpacing", "ret": "float", @@ -20136,6 +21052,36 @@ "stname": "" } ], + "igGetTypematicRepeatRate": [ + { + "args": "(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiInputFlags" + }, + { + "name": "repeat_delay", + "type": "float*" + }, + { + "name": "repeat_rate", + "type": "float*" + } + ], + "argsoriginal": "(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate)", + "call_args": "(flags,repeat_delay,repeat_rate)", + "cimguiname": "igGetTypematicRepeatRate", + "defaults": {}, + "funcname": "GetTypematicRepeatRate", + "location": "imgui_internal:3123", + "namespace": "ImGui", + "ov_cimguiname": "igGetTypematicRepeatRate", + "ret": "void", + "signature": "(ImGuiInputFlags,float*,float*)", + "stname": "" + } + ], "igGetVersion": [ { "args": "()", @@ -20145,7 +21091,7 @@ "cimguiname": "igGetVersion", "defaults": {}, "funcname": "GetVersion", - "location": "imgui:323", + "location": "imgui:317", "namespace": "ImGui", "ov_cimguiname": "igGetVersion", "ret": "const char*", @@ -20167,7 +21113,7 @@ "cimguiname": "igGetViewportPlatformMonitor", "defaults": {}, "funcname": "GetViewportPlatformMonitor", - "location": "imgui_internal:2697", + "location": "imgui_internal:2987", "namespace": "ImGui", "ov_cimguiname": "igGetViewportPlatformMonitor", "ret": "const ImGuiPlatformMonitor*", @@ -20189,7 +21135,7 @@ "cimguiname": "igGetWindowAlwaysWantOwnTabBar", "defaults": {}, "funcname": "GetWindowAlwaysWantOwnTabBar", - "location": "imgui_internal:2857", + "location": "imgui_internal:3194", "namespace": "ImGui", "ov_cimguiname": "igGetWindowAlwaysWantOwnTabBar", "ret": "bool", @@ -20211,7 +21157,7 @@ "cimguiname": "igGetWindowContentRegionMax", "defaults": {}, "funcname": "GetWindowContentRegionMax", - "location": "imgui:397", + "location": "imgui:392", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowContentRegionMax", @@ -20234,7 +21180,7 @@ "cimguiname": "igGetWindowContentRegionMin", "defaults": {}, "funcname": "GetWindowContentRegionMin", - "location": "imgui:396", + "location": "imgui:391", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowContentRegionMin", @@ -20252,7 +21198,7 @@ "cimguiname": "igGetWindowDockID", "defaults": {}, "funcname": "GetWindowDockID", - "location": "imgui:822", + "location": "imgui:819", "namespace": "ImGui", "ov_cimguiname": "igGetWindowDockID", "ret": "ImGuiID", @@ -20269,7 +21215,7 @@ "cimguiname": "igGetWindowDockNode", "defaults": {}, "funcname": "GetWindowDockNode", - "location": "imgui_internal:2856", + "location": "imgui_internal:3193", "namespace": "ImGui", "ov_cimguiname": "igGetWindowDockNode", "ret": "ImGuiDockNode*", @@ -20286,7 +21232,7 @@ "cimguiname": "igGetWindowDpiScale", "defaults": {}, "funcname": "GetWindowDpiScale", - "location": "imgui:364", + "location": "imgui:358", "namespace": "ImGui", "ov_cimguiname": "igGetWindowDpiScale", "ret": "float", @@ -20303,7 +21249,7 @@ "cimguiname": "igGetWindowDrawList", "defaults": {}, "funcname": "GetWindowDrawList", - "location": "imgui:363", + "location": "imgui:357", "namespace": "ImGui", "ov_cimguiname": "igGetWindowDrawList", "ret": "ImDrawList*", @@ -20320,7 +21266,7 @@ "cimguiname": "igGetWindowHeight", "defaults": {}, "funcname": "GetWindowHeight", - "location": "imgui:368", + "location": "imgui:362", "namespace": "ImGui", "ov_cimguiname": "igGetWindowHeight", "ret": "float", @@ -20342,7 +21288,7 @@ "cimguiname": "igGetWindowPos", "defaults": {}, "funcname": "GetWindowPos", - "location": "imgui:365", + "location": "imgui:359", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowPos", @@ -20369,7 +21315,7 @@ "cimguiname": "igGetWindowResizeBorderID", "defaults": {}, "funcname": "GetWindowResizeBorderID", - "location": "imgui_internal:3013", + "location": "imgui_internal:3361", "namespace": "ImGui", "ov_cimguiname": "igGetWindowResizeBorderID", "ret": "ImGuiID", @@ -20395,7 +21341,7 @@ "cimguiname": "igGetWindowResizeCornerID", "defaults": {}, "funcname": "GetWindowResizeCornerID", - "location": "imgui_internal:3012", + "location": "imgui_internal:3360", "namespace": "ImGui", "ov_cimguiname": "igGetWindowResizeCornerID", "ret": "ImGuiID", @@ -20421,7 +21367,7 @@ "cimguiname": "igGetWindowScrollbarID", "defaults": {}, "funcname": "GetWindowScrollbarID", - "location": "imgui_internal:3011", + "location": "imgui_internal:3359", "namespace": "ImGui", "ov_cimguiname": "igGetWindowScrollbarID", "ret": "ImGuiID", @@ -20451,7 +21397,7 @@ "cimguiname": "igGetWindowScrollbarRect", "defaults": {}, "funcname": "GetWindowScrollbarRect", - "location": "imgui_internal:3010", + "location": "imgui_internal:3358", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowScrollbarRect", @@ -20474,7 +21420,7 @@ "cimguiname": "igGetWindowSize", "defaults": {}, "funcname": "GetWindowSize", - "location": "imgui:366", + "location": "imgui:360", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowSize", @@ -20492,7 +21438,7 @@ "cimguiname": "igGetWindowViewport", "defaults": {}, "funcname": "GetWindowViewport", - "location": "imgui:369", + "location": "imgui:363", "namespace": "ImGui", "ov_cimguiname": "igGetWindowViewport", "ret": "ImGuiViewport*", @@ -20509,7 +21455,7 @@ "cimguiname": "igGetWindowWidth", "defaults": {}, "funcname": "GetWindowWidth", - "location": "imgui:367", + "location": "imgui:361", "namespace": "ImGui", "ov_cimguiname": "igGetWindowWidth", "ret": "float", @@ -20531,8 +21477,8 @@ "cimguiname": "igImAbs", "defaults": {}, "funcname": "ImAbs", - "location": "imgui_internal:423", - "ov_cimguiname": "igImAbsInt", + "location": "imgui_internal:444", + "ov_cimguiname": "igImAbs_Int", "ret": "int", "signature": "(int)", "stname": "" @@ -20550,8 +21496,8 @@ "cimguiname": "igImAbs", "defaults": {}, "funcname": "ImAbs", - "location": "imgui_internal:424", - "ov_cimguiname": "igImAbsFloat", + "location": "imgui_internal:445", + "ov_cimguiname": "igImAbs_Float", "ret": "float", "signature": "(float)", "stname": "" @@ -20569,8 +21515,8 @@ "cimguiname": "igImAbs", "defaults": {}, "funcname": "ImAbs", - "location": "imgui_internal:425", - "ov_cimguiname": "igImAbsdouble", + "location": "imgui_internal:446", + "ov_cimguiname": "igImAbs_double", "ret": "double", "signature": "(double)", "stname": "" @@ -20594,7 +21540,7 @@ "cimguiname": "igImAlphaBlendColors", "defaults": {}, "funcname": "ImAlphaBlendColors", - "location": "imgui_internal:322", + "location": "imgui_internal:334", "ov_cimguiname": "igImAlphaBlendColors", "ret": "ImU32", "signature": "(ImU32,ImU32)", @@ -20635,7 +21581,7 @@ "cimguiname": "igImBezierCubicCalc", "defaults": {}, "funcname": "ImBezierCubicCalc", - "location": "imgui_internal:467", + "location": "imgui_internal:489", "nonUDT": 1, "ov_cimguiname": "igImBezierCubicCalc", "ret": "void", @@ -20681,7 +21627,7 @@ "cimguiname": "igImBezierCubicClosestPoint", "defaults": {}, "funcname": "ImBezierCubicClosestPoint", - "location": "imgui_internal:468", + "location": "imgui_internal:490", "nonUDT": 1, "ov_cimguiname": "igImBezierCubicClosestPoint", "ret": "void", @@ -20727,7 +21673,7 @@ "cimguiname": "igImBezierCubicClosestPointCasteljau", "defaults": {}, "funcname": "ImBezierCubicClosestPointCasteljau", - "location": "imgui_internal:469", + "location": "imgui_internal:491", "nonUDT": 1, "ov_cimguiname": "igImBezierCubicClosestPointCasteljau", "ret": "void", @@ -20765,7 +21711,7 @@ "cimguiname": "igImBezierQuadraticCalc", "defaults": {}, "funcname": "ImBezierQuadraticCalc", - "location": "imgui_internal:470", + "location": "imgui_internal:492", "nonUDT": 1, "ov_cimguiname": "igImBezierQuadraticCalc", "ret": "void", @@ -20791,7 +21737,7 @@ "cimguiname": "igImBitArrayClearBit", "defaults": {}, "funcname": "ImBitArrayClearBit", - "location": "imgui_internal:538", + "location": "imgui_internal:560", "ov_cimguiname": "igImBitArrayClearBit", "ret": "void", "signature": "(ImU32*,int)", @@ -20816,7 +21762,7 @@ "cimguiname": "igImBitArraySetBit", "defaults": {}, "funcname": "ImBitArraySetBit", - "location": "imgui_internal:539", + "location": "imgui_internal:561", "ov_cimguiname": "igImBitArraySetBit", "ret": "void", "signature": "(ImU32*,int)", @@ -20845,7 +21791,7 @@ "cimguiname": "igImBitArraySetBitRange", "defaults": {}, "funcname": "ImBitArraySetBitRange", - "location": "imgui_internal:540", + "location": "imgui_internal:562", "ov_cimguiname": "igImBitArraySetBitRange", "ret": "void", "signature": "(ImU32*,int,int)", @@ -20870,7 +21816,7 @@ "cimguiname": "igImBitArrayTestBit", "defaults": {}, "funcname": "ImBitArrayTestBit", - "location": "imgui_internal:537", + "location": "imgui_internal:559", "ov_cimguiname": "igImBitArrayTestBit", "ret": "bool", "signature": "(const ImU32*,int)", @@ -20891,7 +21837,7 @@ "cimguiname": "igImCharIsBlankA", "defaults": {}, "funcname": "ImCharIsBlankA", - "location": "imgui_internal:348", + "location": "imgui_internal:356", "ov_cimguiname": "igImCharIsBlankA", "ret": "bool", "signature": "(char)", @@ -20912,7 +21858,7 @@ "cimguiname": "igImCharIsBlankW", "defaults": {}, "funcname": "ImCharIsBlankW", - "location": "imgui_internal:349", + "location": "imgui_internal:357", "ov_cimguiname": "igImCharIsBlankW", "ret": "bool", "signature": "(unsigned int)", @@ -20945,7 +21891,7 @@ "cimguiname": "igImClamp", "defaults": {}, "funcname": "ImClamp", - "location": "imgui_internal:447", + "location": "imgui_internal:468", "nonUDT": 1, "ov_cimguiname": "igImClamp", "ret": "void", @@ -20971,7 +21917,7 @@ "cimguiname": "igImDot", "defaults": {}, "funcname": "ImDot", - "location": "imgui_internal:459", + "location": "imgui_internal:481", "ov_cimguiname": "igImDot", "ret": "float", "signature": "(const ImVec2,const ImVec2)", @@ -20992,7 +21938,7 @@ "cimguiname": "igImFileClose", "defaults": {}, "funcname": "ImFileClose", - "location": "imgui_internal:396", + "location": "imgui_internal:417", "ov_cimguiname": "igImFileClose", "ret": "bool", "signature": "(ImFileHandle)", @@ -21013,7 +21959,7 @@ "cimguiname": "igImFileGetSize", "defaults": {}, "funcname": "ImFileGetSize", - "location": "imgui_internal:397", + "location": "imgui_internal:418", "ov_cimguiname": "igImFileGetSize", "ret": "ImU64", "signature": "(ImFileHandle)", @@ -21049,7 +21995,7 @@ "padding_bytes": "0" }, "funcname": "ImFileLoadToMemory", - "location": "imgui_internal:403", + "location": "imgui_internal:424", "ov_cimguiname": "igImFileLoadToMemory", "ret": "void*", "signature": "(const char*,const char*,size_t*,int)", @@ -21074,7 +22020,7 @@ "cimguiname": "igImFileOpen", "defaults": {}, "funcname": "ImFileOpen", - "location": "imgui_internal:395", + "location": "imgui_internal:416", "ov_cimguiname": "igImFileOpen", "ret": "ImFileHandle", "signature": "(const char*,const char*)", @@ -21107,7 +22053,7 @@ "cimguiname": "igImFileRead", "defaults": {}, "funcname": "ImFileRead", - "location": "imgui_internal:398", + "location": "imgui_internal:419", "ov_cimguiname": "igImFileRead", "ret": "ImU64", "signature": "(void*,ImU64,ImU64,ImFileHandle)", @@ -21140,7 +22086,7 @@ "cimguiname": "igImFileWrite", "defaults": {}, "funcname": "ImFileWrite", - "location": "imgui_internal:399", + "location": "imgui_internal:420", "ov_cimguiname": "igImFileWrite", "ret": "ImU64", "signature": "(const void*,ImU64,ImU64,ImFileHandle)", @@ -21161,8 +22107,8 @@ "cimguiname": "igImFloor", "defaults": {}, "funcname": "ImFloor", - "location": "imgui_internal:455", - "ov_cimguiname": "igImFloorFloat", + "location": "imgui_internal:476", + "ov_cimguiname": "igImFloor_Float", "ret": "float", "signature": "(float)", "stname": "" @@ -21184,9 +22130,9 @@ "cimguiname": "igImFloor", "defaults": {}, "funcname": "ImFloor", - "location": "imgui_internal:457", + "location": "imgui_internal:478", "nonUDT": 1, - "ov_cimguiname": "igImFloorVec2", + "ov_cimguiname": "igImFloor_Vec2", "ret": "void", "signature": "(const ImVec2)", "stname": "" @@ -21206,11 +22152,35 @@ "cimguiname": "igImFloorSigned", "defaults": {}, "funcname": "ImFloorSigned", - "location": "imgui_internal:456", - "ov_cimguiname": "igImFloorSigned", + "location": "imgui_internal:477", + "ov_cimguiname": "igImFloorSigned_Float", "ret": "float", "signature": "(float)", "stname": "" + }, + { + "args": "(ImVec2 *pOut,const ImVec2 v)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "v", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& v)", + "call_args": "(v)", + "cimguiname": "igImFloorSigned", + "defaults": {}, + "funcname": "ImFloorSigned", + "location": "imgui_internal:479", + "nonUDT": 1, + "ov_cimguiname": "igImFloorSigned_Vec2", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" } ], "igImFontAtlasBuildFinish": [ @@ -21227,7 +22197,7 @@ "cimguiname": "igImFontAtlasBuildFinish", "defaults": {}, "funcname": "ImFontAtlasBuildFinish", - "location": "imgui_internal:3111", + "location": "imgui_internal:3488", "ov_cimguiname": "igImFontAtlasBuildFinish", "ret": "void", "signature": "(ImFontAtlas*)", @@ -21248,7 +22218,7 @@ "cimguiname": "igImFontAtlasBuildInit", "defaults": {}, "funcname": "ImFontAtlasBuildInit", - "location": "imgui_internal:3108", + "location": "imgui_internal:3485", "ov_cimguiname": "igImFontAtlasBuildInit", "ret": "void", "signature": "(ImFontAtlas*)", @@ -21273,7 +22243,7 @@ "cimguiname": "igImFontAtlasBuildMultiplyCalcLookupTable", "defaults": {}, "funcname": "ImFontAtlasBuildMultiplyCalcLookupTable", - "location": "imgui_internal:3114", + "location": "imgui_internal:3491", "ov_cimguiname": "igImFontAtlasBuildMultiplyCalcLookupTable", "ret": "void", "signature": "(unsigned char[256],float)", @@ -21318,7 +22288,7 @@ "cimguiname": "igImFontAtlasBuildMultiplyRectAlpha8", "defaults": {}, "funcname": "ImFontAtlasBuildMultiplyRectAlpha8", - "location": "imgui_internal:3115", + "location": "imgui_internal:3492", "ov_cimguiname": "igImFontAtlasBuildMultiplyRectAlpha8", "ret": "void", "signature": "(const unsigned char[256],unsigned char*,int,int,int,int,int)", @@ -21343,7 +22313,7 @@ "cimguiname": "igImFontAtlasBuildPackCustomRects", "defaults": {}, "funcname": "ImFontAtlasBuildPackCustomRects", - "location": "imgui_internal:3110", + "location": "imgui_internal:3487", "ov_cimguiname": "igImFontAtlasBuildPackCustomRects", "ret": "void", "signature": "(ImFontAtlas*,void*)", @@ -21392,7 +22362,7 @@ "cimguiname": "igImFontAtlasBuildRender32bppRectFromString", "defaults": {}, "funcname": "ImFontAtlasBuildRender32bppRectFromString", - "location": "imgui_internal:3113", + "location": "imgui_internal:3490", "ov_cimguiname": "igImFontAtlasBuildRender32bppRectFromString", "ret": "void", "signature": "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned int)", @@ -21441,7 +22411,7 @@ "cimguiname": "igImFontAtlasBuildRender8bppRectFromString", "defaults": {}, "funcname": "ImFontAtlasBuildRender8bppRectFromString", - "location": "imgui_internal:3112", + "location": "imgui_internal:3489", "ov_cimguiname": "igImFontAtlasBuildRender8bppRectFromString", "ret": "void", "signature": "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned char)", @@ -21478,7 +22448,7 @@ "cimguiname": "igImFontAtlasBuildSetupFont", "defaults": {}, "funcname": "ImFontAtlasBuildSetupFont", - "location": "imgui_internal:3109", + "location": "imgui_internal:3486", "ov_cimguiname": "igImFontAtlasBuildSetupFont", "ret": "void", "signature": "(ImFontAtlas*,ImFont*,ImFontConfig*,float,float)", @@ -21494,7 +22464,7 @@ "cimguiname": "igImFontAtlasGetBuilderForStbTruetype", "defaults": {}, "funcname": "ImFontAtlasGetBuilderForStbTruetype", - "location": "imgui_internal:3107", + "location": "imgui_internal:3483", "ov_cimguiname": "igImFontAtlasGetBuilderForStbTruetype", "ret": "const ImFontBuilderIO*", "signature": "()", @@ -21528,13 +22498,80 @@ "defaults": {}, "funcname": "ImFormatString", "isvararg": "...)", - "location": "imgui_internal:342", + "location": "imgui_internal:361", "ov_cimguiname": "igImFormatString", "ret": "int", "signature": "(char*,size_t,const char*,...)", "stname": "" } ], + "igImFormatStringToTempBuffer": [ + { + "args": "(const char** out_buf,const char** out_buf_end,const char* fmt,...)", + "argsT": [ + { + "name": "out_buf", + "type": "const char**" + }, + { + "name": "out_buf_end", + "type": "const char**" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char** out_buf,const char** out_buf_end,const char* fmt,...)", + "call_args": "(out_buf,out_buf_end,fmt,...)", + "cimguiname": "igImFormatStringToTempBuffer", + "defaults": {}, + "funcname": "ImFormatStringToTempBuffer", + "isvararg": "...)", + "location": "imgui_internal:363", + "ov_cimguiname": "igImFormatStringToTempBuffer", + "ret": "void", + "signature": "(const char**,const char**,const char*,...)", + "stname": "" + } + ], + "igImFormatStringToTempBufferV": [ + { + "args": "(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args)", + "argsT": [ + { + "name": "out_buf", + "type": "const char**" + }, + { + "name": "out_buf_end", + "type": "const char**" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args)", + "call_args": "(out_buf,out_buf_end,fmt,args)", + "cimguiname": "igImFormatStringToTempBufferV", + "defaults": {}, + "funcname": "ImFormatStringToTempBufferV", + "location": "imgui_internal:364", + "ov_cimguiname": "igImFormatStringToTempBufferV", + "ret": "void", + "signature": "(const char**,const char**,const char*,va_list)", + "stname": "" + } + ], "igImFormatStringV": [ { "args": "(char* buf,size_t buf_size,const char* fmt,va_list args)", @@ -21561,7 +22598,7 @@ "cimguiname": "igImFormatStringV", "defaults": {}, "funcname": "ImFormatStringV", - "location": "imgui_internal:343", + "location": "imgui_internal:362", "ov_cimguiname": "igImFormatStringV", "ret": "int", "signature": "(char*,size_t,const char*,va_list)", @@ -21586,7 +22623,7 @@ "cimguiname": "igImGetDirQuadrantFromDelta", "defaults": {}, "funcname": "ImGetDirQuadrantFromDelta", - "location": "imgui_internal:476", + "location": "imgui_internal:498", "ov_cimguiname": "igImGetDirQuadrantFromDelta", "ret": "ImGuiDir", "signature": "(float,float)", @@ -21617,7 +22654,7 @@ "seed": "0" }, "funcname": "ImHashData", - "location": "imgui_internal:310", + "location": "imgui_internal:325", "ov_cimguiname": "igImHashData", "ret": "ImGuiID", "signature": "(const void*,size_t,ImU32)", @@ -21649,7 +22686,7 @@ "seed": "0" }, "funcname": "ImHashStr", - "location": "imgui_internal:311", + "location": "imgui_internal:326", "ov_cimguiname": "igImHashStr", "ret": "ImGuiID", "signature": "(const char*,size_t,ImU32)", @@ -21674,7 +22711,7 @@ "cimguiname": "igImInvLength", "defaults": {}, "funcname": "ImInvLength", - "location": "imgui_internal:454", + "location": "imgui_internal:475", "ov_cimguiname": "igImInvLength", "ret": "float", "signature": "(const ImVec2,float)", @@ -21695,7 +22732,7 @@ "cimguiname": "igImIsFloatAboveGuaranteedIntegerPrecision", "defaults": {}, "funcname": "ImIsFloatAboveGuaranteedIntegerPrecision", - "location": "imgui_internal:463", + "location": "imgui_internal:485", "ov_cimguiname": "igImIsFloatAboveGuaranteedIntegerPrecision", "ret": "bool", "signature": "(float)", @@ -21716,8 +22753,8 @@ "cimguiname": "igImIsPowerOfTwo", "defaults": {}, "funcname": "ImIsPowerOfTwo", - "location": "imgui_internal:325", - "ov_cimguiname": "igImIsPowerOfTwoInt", + "location": "imgui_internal:337", + "ov_cimguiname": "igImIsPowerOfTwo_Int", "ret": "bool", "signature": "(int)", "stname": "" @@ -21735,8 +22772,8 @@ "cimguiname": "igImIsPowerOfTwo", "defaults": {}, "funcname": "ImIsPowerOfTwo", - "location": "imgui_internal:326", - "ov_cimguiname": "igImIsPowerOfTwoU64", + "location": "imgui_internal:338", + "ov_cimguiname": "igImIsPowerOfTwo_U64", "ret": "bool", "signature": "(ImU64)", "stname": "" @@ -21756,8 +22793,8 @@ "cimguiname": "igImLengthSqr", "defaults": {}, "funcname": "ImLengthSqr", - "location": "imgui_internal:452", - "ov_cimguiname": "igImLengthSqrVec2", + "location": "imgui_internal:473", + "ov_cimguiname": "igImLengthSqr_Vec2", "ret": "float", "signature": "(const ImVec2)", "stname": "" @@ -21775,8 +22812,8 @@ "cimguiname": "igImLengthSqr", "defaults": {}, "funcname": "ImLengthSqr", - "location": "imgui_internal:453", - "ov_cimguiname": "igImLengthSqrVec4", + "location": "imgui_internal:474", + "ov_cimguiname": "igImLengthSqr_Vec4", "ret": "float", "signature": "(const ImVec4)", "stname": "" @@ -21808,9 +22845,9 @@ "cimguiname": "igImLerp", "defaults": {}, "funcname": "ImLerp", - "location": "imgui_internal:448", + "location": "imgui_internal:469", "nonUDT": 1, - "ov_cimguiname": "igImLerpVec2Float", + "ov_cimguiname": "igImLerp_Vec2Float", "ret": "void", "signature": "(const ImVec2,const ImVec2,float)", "stname": "" @@ -21840,9 +22877,9 @@ "cimguiname": "igImLerp", "defaults": {}, "funcname": "ImLerp", - "location": "imgui_internal:449", + "location": "imgui_internal:470", "nonUDT": 1, - "ov_cimguiname": "igImLerpVec2Vec2", + "ov_cimguiname": "igImLerp_Vec2Vec2", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2)", "stname": "" @@ -21872,9 +22909,9 @@ "cimguiname": "igImLerp", "defaults": {}, "funcname": "ImLerp", - "location": "imgui_internal:450", + "location": "imgui_internal:471", "nonUDT": 1, - "ov_cimguiname": "igImLerpVec4", + "ov_cimguiname": "igImLerp_Vec4", "ret": "void", "signature": "(const ImVec4,const ImVec4,float)", "stname": "" @@ -21906,7 +22943,7 @@ "cimguiname": "igImLineClosestPoint", "defaults": {}, "funcname": "ImLineClosestPoint", - "location": "imgui_internal:471", + "location": "imgui_internal:493", "nonUDT": 1, "ov_cimguiname": "igImLineClosestPoint", "ret": "void", @@ -21936,7 +22973,7 @@ "cimguiname": "igImLinearSweep", "defaults": {}, "funcname": "ImLinearSweep", - "location": "imgui_internal:461", + "location": "imgui_internal:483", "ov_cimguiname": "igImLinearSweep", "ret": "float", "signature": "(float,float,float)", @@ -21957,8 +22994,8 @@ "cimguiname": "igImLog", "defaults": {}, "funcname": "ImLog", - "location": "imgui_internal:421", - "ov_cimguiname": "igImLogFloat", + "location": "imgui_internal:442", + "ov_cimguiname": "igImLog_Float", "ret": "float", "signature": "(float)", "stname": "" @@ -21976,8 +23013,8 @@ "cimguiname": "igImLog", "defaults": {}, "funcname": "ImLog", - "location": "imgui_internal:422", - "ov_cimguiname": "igImLogdouble", + "location": "imgui_internal:443", + "ov_cimguiname": "igImLog_double", "ret": "double", "signature": "(double)", "stname": "" @@ -22005,7 +23042,7 @@ "cimguiname": "igImMax", "defaults": {}, "funcname": "ImMax", - "location": "imgui_internal:446", + "location": "imgui_internal:467", "nonUDT": 1, "ov_cimguiname": "igImMax", "ret": "void", @@ -22035,7 +23072,7 @@ "cimguiname": "igImMin", "defaults": {}, "funcname": "ImMin", - "location": "imgui_internal:445", + "location": "imgui_internal:466", "nonUDT": 1, "ov_cimguiname": "igImMin", "ret": "void", @@ -22061,7 +23098,7 @@ "cimguiname": "igImModPositive", "defaults": {}, "funcname": "ImModPositive", - "location": "imgui_internal:458", + "location": "imgui_internal:480", "ov_cimguiname": "igImModPositive", "ret": "int", "signature": "(int,int)", @@ -22090,7 +23127,7 @@ "cimguiname": "igImMul", "defaults": {}, "funcname": "ImMul", - "location": "imgui_internal:462", + "location": "imgui_internal:484", "nonUDT": 1, "ov_cimguiname": "igImMul", "ret": "void", @@ -22112,7 +23149,7 @@ "cimguiname": "igImParseFormatFindEnd", "defaults": {}, "funcname": "ImParseFormatFindEnd", - "location": "imgui_internal:345", + "location": "imgui_internal:366", "ov_cimguiname": "igImParseFormatFindEnd", "ret": "const char*", "signature": "(const char*)", @@ -22133,7 +23170,7 @@ "cimguiname": "igImParseFormatFindStart", "defaults": {}, "funcname": "ImParseFormatFindStart", - "location": "imgui_internal:344", + "location": "imgui_internal:365", "ov_cimguiname": "igImParseFormatFindStart", "ret": "const char*", "signature": "(const char*)", @@ -22158,13 +23195,71 @@ "cimguiname": "igImParseFormatPrecision", "defaults": {}, "funcname": "ImParseFormatPrecision", - "location": "imgui_internal:347", + "location": "imgui_internal:370", "ov_cimguiname": "igImParseFormatPrecision", "ret": "int", "signature": "(const char*,int)", "stname": "" } ], + "igImParseFormatSanitizeForPrinting": [ + { + "args": "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)", + "argsT": [ + { + "name": "fmt_in", + "type": "const char*" + }, + { + "name": "fmt_out", + "type": "char*" + }, + { + "name": "fmt_out_size", + "type": "size_t" + } + ], + "argsoriginal": "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)", + "call_args": "(fmt_in,fmt_out,fmt_out_size)", + "cimguiname": "igImParseFormatSanitizeForPrinting", + "defaults": {}, + "funcname": "ImParseFormatSanitizeForPrinting", + "location": "imgui_internal:368", + "ov_cimguiname": "igImParseFormatSanitizeForPrinting", + "ret": "void", + "signature": "(const char*,char*,size_t)", + "stname": "" + } + ], + "igImParseFormatSanitizeForScanning": [ + { + "args": "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)", + "argsT": [ + { + "name": "fmt_in", + "type": "const char*" + }, + { + "name": "fmt_out", + "type": "char*" + }, + { + "name": "fmt_out_size", + "type": "size_t" + } + ], + "argsoriginal": "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)", + "call_args": "(fmt_in,fmt_out,fmt_out_size)", + "cimguiname": "igImParseFormatSanitizeForScanning", + "defaults": {}, + "funcname": "ImParseFormatSanitizeForScanning", + "location": "imgui_internal:369", + "ov_cimguiname": "igImParseFormatSanitizeForScanning", + "ret": "const char*", + "signature": "(const char*,char*,size_t)", + "stname": "" + } + ], "igImParseFormatTrimDecorations": [ { "args": "(const char* format,char* buf,size_t buf_size)", @@ -22187,7 +23282,7 @@ "cimguiname": "igImParseFormatTrimDecorations", "defaults": {}, "funcname": "ImParseFormatTrimDecorations", - "location": "imgui_internal:346", + "location": "imgui_internal:367", "ov_cimguiname": "igImParseFormatTrimDecorations", "ret": "const char*", "signature": "(const char*,char*,size_t)", @@ -22212,8 +23307,8 @@ "cimguiname": "igImPow", "defaults": {}, "funcname": "ImPow", - "location": "imgui_internal:419", - "ov_cimguiname": "igImPowFloat", + "location": "imgui_internal:440", + "ov_cimguiname": "igImPow_Float", "ret": "float", "signature": "(float,float)", "stname": "" @@ -22235,8 +23330,8 @@ "cimguiname": "igImPow", "defaults": {}, "funcname": "ImPow", - "location": "imgui_internal:420", - "ov_cimguiname": "igImPowdouble", + "location": "imgui_internal:441", + "ov_cimguiname": "igImPow_double", "ret": "double", "signature": "(double,double)", "stname": "" @@ -22270,7 +23365,7 @@ "cimguiname": "igImQsort", "defaults": {}, "funcname": "ImQsort", - "location": "imgui_internal:318", + "location": "imgui_internal:330", "ov_cimguiname": "igImQsort", "ret": "void", "signature": "(void*,size_t,size_t,int(*)(void const*,void const*))", @@ -22303,7 +23398,7 @@ "cimguiname": "igImRotate", "defaults": {}, "funcname": "ImRotate", - "location": "imgui_internal:460", + "location": "imgui_internal:482", "nonUDT": 1, "ov_cimguiname": "igImRotate", "ret": "void", @@ -22325,8 +23420,8 @@ "cimguiname": "igImRsqrt", "defaults": {}, "funcname": "ImRsqrt", - "location": "imgui_internal:429", - "ov_cimguiname": "igImRsqrtFloat", + "location": "imgui_internal:450", + "ov_cimguiname": "igImRsqrt_Float", "ret": "float", "signature": "(float)", "stname": "" @@ -22344,8 +23439,8 @@ "cimguiname": "igImRsqrt", "defaults": {}, "funcname": "ImRsqrt", - "location": "imgui_internal:433", - "ov_cimguiname": "igImRsqrtdouble", + "location": "imgui_internal:454", + "ov_cimguiname": "igImRsqrt_double", "ret": "double", "signature": "(double)", "stname": "" @@ -22365,7 +23460,7 @@ "cimguiname": "igImSaturate", "defaults": {}, "funcname": "ImSaturate", - "location": "imgui_internal:451", + "location": "imgui_internal:472", "ov_cimguiname": "igImSaturate", "ret": "float", "signature": "(float)", @@ -22386,8 +23481,8 @@ "cimguiname": "igImSign", "defaults": {}, "funcname": "ImSign", - "location": "imgui_internal:426", - "ov_cimguiname": "igImSignFloat", + "location": "imgui_internal:447", + "ov_cimguiname": "igImSign_Float", "ret": "float", "signature": "(float)", "stname": "" @@ -22405,8 +23500,8 @@ "cimguiname": "igImSign", "defaults": {}, "funcname": "ImSign", - "location": "imgui_internal:427", - "ov_cimguiname": "igImSigndouble", + "location": "imgui_internal:448", + "ov_cimguiname": "igImSign_double", "ret": "double", "signature": "(double)", "stname": "" @@ -22426,7 +23521,7 @@ "cimguiname": "igImStrSkipBlank", "defaults": {}, "funcname": "ImStrSkipBlank", - "location": "imgui_internal:341", + "location": "imgui_internal:353", "ov_cimguiname": "igImStrSkipBlank", "ret": "const char*", "signature": "(const char*)", @@ -22447,7 +23542,7 @@ "cimguiname": "igImStrTrimBlanks", "defaults": {}, "funcname": "ImStrTrimBlanks", - "location": "imgui_internal:340", + "location": "imgui_internal:352", "ov_cimguiname": "igImStrTrimBlanks", "ret": "void", "signature": "(char*)", @@ -22472,7 +23567,7 @@ "cimguiname": "igImStrbolW", "defaults": {}, "funcname": "ImStrbolW", - "location": "imgui_internal:338", + "location": "imgui_internal:350", "ov_cimguiname": "igImStrbolW", "ret": "const ImWchar*", "signature": "(const ImWchar*,const ImWchar*)", @@ -22501,7 +23596,7 @@ "cimguiname": "igImStrchrRange", "defaults": {}, "funcname": "ImStrchrRange", - "location": "imgui_internal:335", + "location": "imgui_internal:347", "ov_cimguiname": "igImStrchrRange", "ret": "const char*", "signature": "(const char*,const char*,char)", @@ -22522,7 +23617,7 @@ "cimguiname": "igImStrdup", "defaults": {}, "funcname": "ImStrdup", - "location": "imgui_internal:333", + "location": "imgui_internal:345", "ov_cimguiname": "igImStrdup", "ret": "char*", "signature": "(const char*)", @@ -22551,7 +23646,7 @@ "cimguiname": "igImStrdupcpy", "defaults": {}, "funcname": "ImStrdupcpy", - "location": "imgui_internal:334", + "location": "imgui_internal:346", "ov_cimguiname": "igImStrdupcpy", "ret": "char*", "signature": "(char*,size_t*,const char*)", @@ -22576,7 +23671,7 @@ "cimguiname": "igImStreolRange", "defaults": {}, "funcname": "ImStreolRange", - "location": "imgui_internal:337", + "location": "imgui_internal:349", "ov_cimguiname": "igImStreolRange", "ret": "const char*", "signature": "(const char*,const char*)", @@ -22601,7 +23696,7 @@ "cimguiname": "igImStricmp", "defaults": {}, "funcname": "ImStricmp", - "location": "imgui_internal:330", + "location": "imgui_internal:342", "ov_cimguiname": "igImStricmp", "ret": "int", "signature": "(const char*,const char*)", @@ -22634,7 +23729,7 @@ "cimguiname": "igImStristr", "defaults": {}, "funcname": "ImStristr", - "location": "imgui_internal:339", + "location": "imgui_internal:351", "ov_cimguiname": "igImStristr", "ret": "const char*", "signature": "(const char*,const char*,const char*,const char*)", @@ -22655,7 +23750,7 @@ "cimguiname": "igImStrlenW", "defaults": {}, "funcname": "ImStrlenW", - "location": "imgui_internal:336", + "location": "imgui_internal:348", "ov_cimguiname": "igImStrlenW", "ret": "int", "signature": "(const ImWchar*)", @@ -22684,7 +23779,7 @@ "cimguiname": "igImStrncpy", "defaults": {}, "funcname": "ImStrncpy", - "location": "imgui_internal:332", + "location": "imgui_internal:344", "ov_cimguiname": "igImStrncpy", "ret": "void", "signature": "(char*,const char*,size_t)", @@ -22713,7 +23808,7 @@ "cimguiname": "igImStrnicmp", "defaults": {}, "funcname": "ImStrnicmp", - "location": "imgui_internal:331", + "location": "imgui_internal:343", "ov_cimguiname": "igImStrnicmp", "ret": "int", "signature": "(const char*,const char*,size_t)", @@ -22742,7 +23837,7 @@ "cimguiname": "igImTextCharFromUtf8", "defaults": {}, "funcname": "ImTextCharFromUtf8", - "location": "imgui_internal:354", + "location": "imgui_internal:375", "ov_cimguiname": "igImTextCharFromUtf8", "ret": "int", "signature": "(unsigned int*,const char*,const char*)", @@ -22767,7 +23862,7 @@ "cimguiname": "igImTextCharToUtf8", "defaults": {}, "funcname": "ImTextCharToUtf8", - "location": "imgui_internal:352", + "location": "imgui_internal:373", "ov_cimguiname": "igImTextCharToUtf8", "ret": "const char*", "signature": "(char[5],unsigned int)", @@ -22792,7 +23887,7 @@ "cimguiname": "igImTextCountCharsFromUtf8", "defaults": {}, "funcname": "ImTextCountCharsFromUtf8", - "location": "imgui_internal:356", + "location": "imgui_internal:377", "ov_cimguiname": "igImTextCountCharsFromUtf8", "ret": "int", "signature": "(const char*,const char*)", @@ -22817,7 +23912,7 @@ "cimguiname": "igImTextCountUtf8BytesFromChar", "defaults": {}, "funcname": "ImTextCountUtf8BytesFromChar", - "location": "imgui_internal:357", + "location": "imgui_internal:378", "ov_cimguiname": "igImTextCountUtf8BytesFromChar", "ret": "int", "signature": "(const char*,const char*)", @@ -22842,7 +23937,7 @@ "cimguiname": "igImTextCountUtf8BytesFromStr", "defaults": {}, "funcname": "ImTextCountUtf8BytesFromStr", - "location": "imgui_internal:358", + "location": "imgui_internal:379", "ov_cimguiname": "igImTextCountUtf8BytesFromStr", "ret": "int", "signature": "(const ImWchar*,const ImWchar*)", @@ -22881,7 +23976,7 @@ "in_remaining": "NULL" }, "funcname": "ImTextStrFromUtf8", - "location": "imgui_internal:355", + "location": "imgui_internal:376", "ov_cimguiname": "igImTextStrFromUtf8", "ret": "int", "signature": "(ImWchar*,int,const char*,const char*,const char**)", @@ -22914,13 +24009,34 @@ "cimguiname": "igImTextStrToUtf8", "defaults": {}, "funcname": "ImTextStrToUtf8", - "location": "imgui_internal:353", + "location": "imgui_internal:374", "ov_cimguiname": "igImTextStrToUtf8", "ret": "int", "signature": "(char*,int,const ImWchar*,const ImWchar*)", "stname": "" } ], + "igImToUpper": [ + { + "args": "(char c)", + "argsT": [ + { + "name": "c", + "type": "char" + } + ], + "argsoriginal": "(char c)", + "call_args": "(c)", + "cimguiname": "igImToUpper", + "defaults": {}, + "funcname": "ImToUpper", + "location": "imgui_internal:355", + "ov_cimguiname": "igImToUpper", + "ret": "char", + "signature": "(char)", + "stname": "" + } + ], "igImTriangleArea": [ { "args": "(const ImVec2 a,const ImVec2 b,const ImVec2 c)", @@ -22943,7 +24059,7 @@ "cimguiname": "igImTriangleArea", "defaults": {}, "funcname": "ImTriangleArea", - "location": "imgui_internal:475", + "location": "imgui_internal:497", "ov_cimguiname": "igImTriangleArea", "ret": "float", "signature": "(const ImVec2,const ImVec2,const ImVec2)", @@ -22991,7 +24107,7 @@ "cimguiname": "igImTriangleBarycentricCoords", "defaults": {}, "funcname": "ImTriangleBarycentricCoords", - "location": "imgui_internal:474", + "location": "imgui_internal:496", "ov_cimguiname": "igImTriangleBarycentricCoords", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float*,float*,float*)", @@ -23028,7 +24144,7 @@ "cimguiname": "igImTriangleClosestPoint", "defaults": {}, "funcname": "ImTriangleClosestPoint", - "location": "imgui_internal:473", + "location": "imgui_internal:495", "nonUDT": 1, "ov_cimguiname": "igImTriangleClosestPoint", "ret": "void", @@ -23062,7 +24178,7 @@ "cimguiname": "igImTriangleContainsPoint", "defaults": {}, "funcname": "ImTriangleContainsPoint", - "location": "imgui_internal:472", + "location": "imgui_internal:494", "ov_cimguiname": "igImTriangleContainsPoint", "ret": "bool", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2)", @@ -23083,7 +24199,7 @@ "cimguiname": "igImUpperPowerOfTwo", "defaults": {}, "funcname": "ImUpperPowerOfTwo", - "location": "imgui_internal:327", + "location": "imgui_internal:339", "ov_cimguiname": "igImUpperPowerOfTwo", "ret": "int", "signature": "(int)", @@ -23129,7 +24245,7 @@ "uv1": "ImVec2(1,1)" }, "funcname": "Image", - "location": "imgui:516", + "location": "imgui:523", "namespace": "ImGui", "ov_cimguiname": "igImage", "ret": "void", @@ -23139,8 +24255,12 @@ ], "igImageButton": [ { - "args": "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,int frame_padding,const ImVec4 bg_col,const ImVec4 tint_col)", + "args": "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, { "name": "user_texture_id", "type": "ImTextureID" @@ -23157,10 +24277,6 @@ "name": "uv1", "type": "const ImVec2" }, - { - "name": "frame_padding", - "type": "int" - }, { "name": "bg_col", "type": "const ImVec4" @@ -23170,28 +24286,27 @@ "type": "const ImVec4" } ], - "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),int frame_padding=-1,const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", - "call_args": "(user_texture_id,size,uv0,uv1,frame_padding,bg_col,tint_col)", + "argsoriginal": "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", + "call_args": "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)", "cimguiname": "igImageButton", "defaults": { "bg_col": "ImVec4(0,0,0,0)", - "frame_padding": "-1", "tint_col": "ImVec4(1,1,1,1)", "uv0": "ImVec2(0,0)", "uv1": "ImVec2(1,1)" }, "funcname": "ImageButton", - "location": "imgui:517", + "location": "imgui:524", "namespace": "ImGui", "ov_cimguiname": "igImageButton", "ret": "bool", - "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,int,const ImVec4,const ImVec4)", + "signature": "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", "stname": "" } ], "igImageButtonEx": [ { - "args": "(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec2 padding,const ImVec4 bg_col,const ImVec4 tint_col)", + "args": "(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", "argsT": [ { "name": "id", @@ -23213,10 +24328,6 @@ "name": "uv1", "type": "const ImVec2" }, - { - "name": "padding", - "type": "const ImVec2" - }, { "name": "bg_col", "type": "const ImVec4" @@ -23226,16 +24337,16 @@ "type": "const ImVec4" } ], - "argsoriginal": "(ImGuiID id,ImTextureID texture_id,const ImVec2& size,const ImVec2& uv0,const ImVec2& uv1,const ImVec2& padding,const ImVec4& bg_col,const ImVec4& tint_col)", - "call_args": "(id,texture_id,size,uv0,uv1,padding,bg_col,tint_col)", + "argsoriginal": "(ImGuiID id,ImTextureID texture_id,const ImVec2& size,const ImVec2& uv0,const ImVec2& uv1,const ImVec4& bg_col,const ImVec4& tint_col)", + "call_args": "(id,texture_id,size,uv0,uv1,bg_col,tint_col)", "cimguiname": "igImageButtonEx", "defaults": {}, "funcname": "ImageButtonEx", - "location": "imgui_internal:3009", + "location": "imgui_internal:3357", "namespace": "ImGui", "ov_cimguiname": "igImageButtonEx", "ret": "bool", - "signature": "(ImGuiID,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "signature": "(ImGuiID,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", "stname": "" } ], @@ -23255,7 +24366,7 @@ "indent_w": "0.0f" }, "funcname": "Indent", - "location": "imgui:455", + "location": "imgui:452", "namespace": "ImGui", "ov_cimguiname": "igIndent", "ret": "void", @@ -23265,23 +24376,18 @@ ], "igInitialize": [ { - "args": "(ImGuiContext* context)", - "argsT": [ - { - "name": "context", - "type": "ImGuiContext*" - } - ], - "argsoriginal": "(ImGuiContext* context)", - "call_args": "(context)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", "cimguiname": "igInitialize", "defaults": {}, "funcname": "Initialize", - "location": "imgui_internal:2677", + "location": "imgui_internal:2965", "namespace": "ImGui", "ov_cimguiname": "igInitialize", "ret": "void", - "signature": "(ImGuiContext*)", + "signature": "()", "stname": "" } ], @@ -23324,7 +24430,7 @@ "step_fast": "0.0" }, "funcname": "InputDouble", - "location": "imgui:594", + "location": "imgui:595", "namespace": "ImGui", "ov_cimguiname": "igInputDouble", "ret": "bool", @@ -23371,7 +24477,7 @@ "step_fast": "0.0f" }, "funcname": "InputFloat", - "location": "imgui:586", + "location": "imgui:587", "namespace": "ImGui", "ov_cimguiname": "igInputFloat", "ret": "bool", @@ -23408,7 +24514,7 @@ "format": "\"%.3f\"" }, "funcname": "InputFloat2", - "location": "imgui:587", + "location": "imgui:588", "namespace": "ImGui", "ov_cimguiname": "igInputFloat2", "ret": "bool", @@ -23445,7 +24551,7 @@ "format": "\"%.3f\"" }, "funcname": "InputFloat3", - "location": "imgui:588", + "location": "imgui:589", "namespace": "ImGui", "ov_cimguiname": "igInputFloat3", "ret": "bool", @@ -23482,7 +24588,7 @@ "format": "\"%.3f\"" }, "funcname": "InputFloat4", - "location": "imgui:589", + "location": "imgui:590", "namespace": "ImGui", "ov_cimguiname": "igInputFloat4", "ret": "bool", @@ -23524,7 +24630,7 @@ "step_fast": "100" }, "funcname": "InputInt", - "location": "imgui:590", + "location": "imgui:591", "namespace": "ImGui", "ov_cimguiname": "igInputInt", "ret": "bool", @@ -23556,7 +24662,7 @@ "flags": "0" }, "funcname": "InputInt2", - "location": "imgui:591", + "location": "imgui:592", "namespace": "ImGui", "ov_cimguiname": "igInputInt2", "ret": "bool", @@ -23588,7 +24694,7 @@ "flags": "0" }, "funcname": "InputInt3", - "location": "imgui:592", + "location": "imgui:593", "namespace": "ImGui", "ov_cimguiname": "igInputInt3", "ret": "bool", @@ -23620,7 +24726,7 @@ "flags": "0" }, "funcname": "InputInt4", - "location": "imgui:593", + "location": "imgui:594", "namespace": "ImGui", "ov_cimguiname": "igInputInt4", "ret": "bool", @@ -23671,7 +24777,7 @@ "p_step_fast": "NULL" }, "funcname": "InputScalar", - "location": "imgui:595", + "location": "imgui:596", "namespace": "ImGui", "ov_cimguiname": "igInputScalar", "ret": "bool", @@ -23726,7 +24832,7 @@ "p_step_fast": "NULL" }, "funcname": "InputScalarN", - "location": "imgui:596", + "location": "imgui:597", "namespace": "ImGui", "ov_cimguiname": "igInputScalarN", "ret": "bool", @@ -23772,7 +24878,7 @@ "user_data": "NULL" }, "funcname": "InputText", - "location": "imgui:583", + "location": "imgui:584", "namespace": "ImGui", "ov_cimguiname": "igInputText", "ret": "bool", @@ -23825,7 +24931,7 @@ "user_data": "NULL" }, "funcname": "InputTextEx", - "location": "imgui_internal:3046", + "location": "imgui_internal:3395", "namespace": "ImGui", "ov_cimguiname": "igInputTextEx", "ret": "bool", @@ -23876,7 +24982,7 @@ "user_data": "NULL" }, "funcname": "InputTextMultiline", - "location": "imgui:584", + "location": "imgui:585", "namespace": "ImGui", "ov_cimguiname": "igInputTextMultiline", "ret": "bool", @@ -23926,7 +25032,7 @@ "user_data": "NULL" }, "funcname": "InputTextWithHint", - "location": "imgui:585", + "location": "imgui:586", "namespace": "ImGui", "ov_cimguiname": "igInputTextWithHint", "ret": "bool", @@ -23958,7 +25064,7 @@ "flags": "0" }, "funcname": "InvisibleButton", - "location": "imgui:514", + "location": "imgui:511", "namespace": "ImGui", "ov_cimguiname": "igInvisibleButton", "ret": "bool", @@ -23966,28 +25072,6 @@ "stname": "" } ], - "igIsActiveIdUsingKey": [ - { - "args": "(ImGuiKey key)", - "argsT": [ - { - "name": "key", - "type": "ImGuiKey" - } - ], - "argsoriginal": "(ImGuiKey key)", - "call_args": "(key)", - "cimguiname": "igIsActiveIdUsingKey", - "defaults": {}, - "funcname": "IsActiveIdUsingKey", - "location": "imgui_internal:2829", - "namespace": "ImGui", - "ov_cimguiname": "igIsActiveIdUsingKey", - "ret": "bool", - "signature": "(ImGuiKey)", - "stname": "" - } - ], "igIsActiveIdUsingNavDir": [ { "args": "(ImGuiDir dir)", @@ -24002,7 +25086,7 @@ "cimguiname": "igIsActiveIdUsingNavDir", "defaults": {}, "funcname": "IsActiveIdUsingNavDir", - "location": "imgui_internal:2827", + "location": "imgui_internal:3125", "namespace": "ImGui", "ov_cimguiname": "igIsActiveIdUsingNavDir", "ret": "bool", @@ -24010,25 +25094,25 @@ "stname": "" } ], - "igIsActiveIdUsingNavInput": [ + "igIsAliasKey": [ { - "args": "(ImGuiNavInput input)", + "args": "(ImGuiKey key)", "argsT": [ { - "name": "input", - "type": "ImGuiNavInput" + "name": "key", + "type": "ImGuiKey" } ], - "argsoriginal": "(ImGuiNavInput input)", - "call_args": "(input)", - "cimguiname": "igIsActiveIdUsingNavInput", + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsAliasKey", "defaults": {}, - "funcname": "IsActiveIdUsingNavInput", - "location": "imgui_internal:2828", + "funcname": "IsAliasKey", + "location": "imgui_internal:3106", "namespace": "ImGui", - "ov_cimguiname": "igIsActiveIdUsingNavInput", + "ov_cimguiname": "igIsAliasKey", "ret": "bool", - "signature": "(ImGuiNavInput)", + "signature": "(ImGuiKey)", "stname": "" } ], @@ -24041,7 +25125,7 @@ "cimguiname": "igIsAnyItemActive", "defaults": {}, "funcname": "IsAnyItemActive", - "location": "imgui:879", + "location": "imgui:876", "namespace": "ImGui", "ov_cimguiname": "igIsAnyItemActive", "ret": "bool", @@ -24058,7 +25142,7 @@ "cimguiname": "igIsAnyItemFocused", "defaults": {}, "funcname": "IsAnyItemFocused", - "location": "imgui:880", + "location": "imgui:877", "namespace": "ImGui", "ov_cimguiname": "igIsAnyItemFocused", "ret": "bool", @@ -24075,7 +25159,7 @@ "cimguiname": "igIsAnyItemHovered", "defaults": {}, "funcname": "IsAnyItemHovered", - "location": "imgui:878", + "location": "imgui:875", "namespace": "ImGui", "ov_cimguiname": "igIsAnyItemHovered", "ret": "bool", @@ -24092,7 +25176,7 @@ "cimguiname": "igIsAnyMouseDown", "defaults": {}, "funcname": "IsAnyMouseDown", - "location": "imgui:938", + "location": "imgui:940", "namespace": "ImGui", "ov_cimguiname": "igIsAnyMouseDown", "ret": "bool", @@ -24118,7 +25202,7 @@ "cimguiname": "igIsClippedEx", "defaults": {}, "funcname": "IsClippedEx", - "location": "imgui_internal:2744", + "location": "imgui_internal:3040", "namespace": "ImGui", "ov_cimguiname": "igIsClippedEx", "ret": "bool", @@ -24126,6 +25210,23 @@ "stname": "" } ], + "igIsDragDropActive": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsDragDropActive", + "defaults": {}, + "funcname": "IsDragDropActive", + "location": "imgui_internal:3237", + "namespace": "ImGui", + "ov_cimguiname": "igIsDragDropActive", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], "igIsDragDropPayloadBeingAccepted": [ { "args": "()", @@ -24135,7 +25236,7 @@ "cimguiname": "igIsDragDropPayloadBeingAccepted", "defaults": {}, "funcname": "IsDragDropPayloadBeingAccepted", - "location": "imgui_internal:2890", + "location": "imgui_internal:3240", "namespace": "ImGui", "ov_cimguiname": "igIsDragDropPayloadBeingAccepted", "ret": "bool", @@ -24143,6 +25244,28 @@ "stname": "" } ], + "igIsGamepadKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsGamepadKey", + "defaults": {}, + "funcname": "IsGamepadKey", + "location": "imgui_internal:3104", + "namespace": "ImGui", + "ov_cimguiname": "igIsGamepadKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], "igIsItemActivated": [ { "args": "()", @@ -24152,7 +25275,7 @@ "cimguiname": "igIsItemActivated", "defaults": {}, "funcname": "IsItemActivated", - "location": "imgui:874", + "location": "imgui:871", "namespace": "ImGui", "ov_cimguiname": "igIsItemActivated", "ret": "bool", @@ -24169,7 +25292,7 @@ "cimguiname": "igIsItemActive", "defaults": {}, "funcname": "IsItemActive", - "location": "imgui:869", + "location": "imgui:866", "namespace": "ImGui", "ov_cimguiname": "igIsItemActive", "ret": "bool", @@ -24193,7 +25316,7 @@ "mouse_button": "0" }, "funcname": "IsItemClicked", - "location": "imgui:871", + "location": "imgui:868", "namespace": "ImGui", "ov_cimguiname": "igIsItemClicked", "ret": "bool", @@ -24210,7 +25333,7 @@ "cimguiname": "igIsItemDeactivated", "defaults": {}, "funcname": "IsItemDeactivated", - "location": "imgui:875", + "location": "imgui:872", "namespace": "ImGui", "ov_cimguiname": "igIsItemDeactivated", "ret": "bool", @@ -24227,7 +25350,7 @@ "cimguiname": "igIsItemDeactivatedAfterEdit", "defaults": {}, "funcname": "IsItemDeactivatedAfterEdit", - "location": "imgui:876", + "location": "imgui:873", "namespace": "ImGui", "ov_cimguiname": "igIsItemDeactivatedAfterEdit", "ret": "bool", @@ -24244,7 +25367,7 @@ "cimguiname": "igIsItemEdited", "defaults": {}, "funcname": "IsItemEdited", - "location": "imgui:873", + "location": "imgui:870", "namespace": "ImGui", "ov_cimguiname": "igIsItemEdited", "ret": "bool", @@ -24261,7 +25384,7 @@ "cimguiname": "igIsItemFocused", "defaults": {}, "funcname": "IsItemFocused", - "location": "imgui:870", + "location": "imgui:867", "namespace": "ImGui", "ov_cimguiname": "igIsItemFocused", "ret": "bool", @@ -24285,7 +25408,7 @@ "flags": "0" }, "funcname": "IsItemHovered", - "location": "imgui:868", + "location": "imgui:865", "namespace": "ImGui", "ov_cimguiname": "igIsItemHovered", "ret": "bool", @@ -24302,7 +25425,7 @@ "cimguiname": "igIsItemToggledOpen", "defaults": {}, "funcname": "IsItemToggledOpen", - "location": "imgui:877", + "location": "imgui:874", "namespace": "ImGui", "ov_cimguiname": "igIsItemToggledOpen", "ret": "bool", @@ -24319,7 +25442,7 @@ "cimguiname": "igIsItemToggledSelection", "defaults": {}, "funcname": "IsItemToggledSelection", - "location": "imgui_internal:2749", + "location": "imgui_internal:3045", "namespace": "ImGui", "ov_cimguiname": "igIsItemToggledSelection", "ret": "bool", @@ -24336,7 +25459,7 @@ "cimguiname": "igIsItemVisible", "defaults": {}, "funcname": "IsItemVisible", - "location": "imgui:872", + "location": "imgui:869", "namespace": "ImGui", "ov_cimguiname": "igIsItemVisible", "ret": "bool", @@ -24346,51 +25469,105 @@ ], "igIsKeyDown": [ { - "args": "(int user_key_index)", + "args": "(ImGuiKey key)", "argsT": [ { - "name": "user_key_index", - "type": "int" + "name": "key", + "type": "ImGuiKey" } ], - "argsoriginal": "(int user_key_index)", - "call_args": "(user_key_index)", + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", "cimguiname": "igIsKeyDown", "defaults": {}, "funcname": "IsKeyDown", - "location": "imgui:921", + "location": "imgui:922", "namespace": "ImGui", - "ov_cimguiname": "igIsKeyDown", + "ov_cimguiname": "igIsKeyDown_Nil", "ret": "bool", - "signature": "(int)", + "signature": "(ImGuiKey)", + "stname": "" + }, + { + "args": "(ImGuiKey key,ImGuiID owner_id)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id)", + "call_args": "(key,owner_id)", + "cimguiname": "igIsKeyDown", + "defaults": {}, + "funcname": "IsKeyDown", + "location": "imgui_internal:3150", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyDown_ID", + "ret": "bool", + "signature": "(ImGuiKey,ImGuiID)", "stname": "" } ], "igIsKeyPressed": [ { - "args": "(int user_key_index,bool repeat)", + "args": "(ImGuiKey key,bool repeat)", "argsT": [ { - "name": "user_key_index", - "type": "int" + "name": "key", + "type": "ImGuiKey" }, { "name": "repeat", "type": "bool" } ], - "argsoriginal": "(int user_key_index,bool repeat=true)", - "call_args": "(user_key_index,repeat)", + "argsoriginal": "(ImGuiKey key,bool repeat=true)", + "call_args": "(key,repeat)", "cimguiname": "igIsKeyPressed", "defaults": { "repeat": "true" }, "funcname": "IsKeyPressed", - "location": "imgui:922", + "location": "imgui:923", "namespace": "ImGui", - "ov_cimguiname": "igIsKeyPressed", + "ov_cimguiname": "igIsKeyPressed_Bool", "ret": "bool", - "signature": "(int,bool)", + "signature": "(ImGuiKey,bool)", + "stname": "" + }, + { + "args": "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags=0)", + "call_args": "(key,owner_id,flags)", + "cimguiname": "igIsKeyPressed", + "defaults": { + "flags": "0" + }, + "funcname": "IsKeyPressed", + "location": "imgui_internal:3151", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyPressed_ID", + "ret": "bool", + "signature": "(ImGuiKey,ImGuiID,ImGuiInputFlags)", "stname": "" } ], @@ -24414,7 +25591,7 @@ "repeat": "true" }, "funcname": "IsKeyPressedMap", - "location": "imgui_internal:2831", + "location": "imgui_internal:3465", "namespace": "ImGui", "ov_cimguiname": "igIsKeyPressedMap", "ret": "bool", @@ -24424,23 +25601,91 @@ ], "igIsKeyReleased": [ { - "args": "(int user_key_index)", + "args": "(ImGuiKey key)", "argsT": [ { - "name": "user_key_index", - "type": "int" + "name": "key", + "type": "ImGuiKey" } ], - "argsoriginal": "(int user_key_index)", - "call_args": "(user_key_index)", + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", "cimguiname": "igIsKeyReleased", "defaults": {}, "funcname": "IsKeyReleased", - "location": "imgui:923", + "location": "imgui:924", "namespace": "ImGui", - "ov_cimguiname": "igIsKeyReleased", + "ov_cimguiname": "igIsKeyReleased_Nil", "ret": "bool", - "signature": "(int)", + "signature": "(ImGuiKey)", + "stname": "" + }, + { + "args": "(ImGuiKey key,ImGuiID owner_id)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id)", + "call_args": "(key,owner_id)", + "cimguiname": "igIsKeyReleased", + "defaults": {}, + "funcname": "IsKeyReleased", + "location": "imgui_internal:3152", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyReleased_ID", + "ret": "bool", + "signature": "(ImGuiKey,ImGuiID)", + "stname": "" + } + ], + "igIsKeyboardKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsKeyboardKey", + "defaults": {}, + "funcname": "IsKeyboardKey", + "location": "imgui_internal:3103", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyboardKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsLegacyKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsLegacyKey", + "defaults": {}, + "funcname": "IsLegacyKey", + "location": "imgui_internal:3102", + "namespace": "ImGui", + "ov_cimguiname": "igIsLegacyKey", + "ret": "bool", + "signature": "(ImGuiKey)", "stname": "" } ], @@ -24464,12 +25709,42 @@ "repeat": "false" }, "funcname": "IsMouseClicked", - "location": "imgui:932", + "location": "imgui:934", "namespace": "ImGui", - "ov_cimguiname": "igIsMouseClicked", + "ov_cimguiname": "igIsMouseClicked_Bool", "ret": "bool", "signature": "(ImGuiMouseButton,bool)", "stname": "" + }, + { + "args": "(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags=0)", + "call_args": "(button,owner_id,flags)", + "cimguiname": "igIsMouseClicked", + "defaults": { + "flags": "0" + }, + "funcname": "IsMouseClicked", + "location": "imgui_internal:3154", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseClicked_ID", + "ret": "bool", + "signature": "(ImGuiMouseButton,ImGuiID,ImGuiInputFlags)", + "stname": "" } ], "igIsMouseDoubleClicked": [ @@ -24486,7 +25761,7 @@ "cimguiname": "igIsMouseDoubleClicked", "defaults": {}, "funcname": "IsMouseDoubleClicked", - "location": "imgui:934", + "location": "imgui:936", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDoubleClicked", "ret": "bool", @@ -24508,12 +25783,36 @@ "cimguiname": "igIsMouseDown", "defaults": {}, "funcname": "IsMouseDown", - "location": "imgui:931", + "location": "imgui:933", "namespace": "ImGui", - "ov_cimguiname": "igIsMouseDown", + "ov_cimguiname": "igIsMouseDown_Nil", "ret": "bool", "signature": "(ImGuiMouseButton)", "stname": "" + }, + { + "args": "(ImGuiMouseButton button,ImGuiID owner_id)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiMouseButton button,ImGuiID owner_id)", + "call_args": "(button,owner_id)", + "cimguiname": "igIsMouseDown", + "defaults": {}, + "funcname": "IsMouseDown", + "location": "imgui_internal:3153", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDown_ID", + "ret": "bool", + "signature": "(ImGuiMouseButton,ImGuiID)", + "stname": "" } ], "igIsMouseDragPastThreshold": [ @@ -24536,7 +25835,7 @@ "lock_threshold": "-1.0f" }, "funcname": "IsMouseDragPastThreshold", - "location": "imgui_internal:2830", + "location": "imgui_internal:3119", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDragPastThreshold", "ret": "bool", @@ -24564,7 +25863,7 @@ "lock_threshold": "-1.0f" }, "funcname": "IsMouseDragging", - "location": "imgui:941", + "location": "imgui:943", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDragging", "ret": "bool", @@ -24596,7 +25895,7 @@ "clip": "true" }, "funcname": "IsMouseHoveringRect", - "location": "imgui:936", + "location": "imgui:938", "namespace": "ImGui", "ov_cimguiname": "igIsMouseHoveringRect", "ret": "bool", @@ -24604,6 +25903,28 @@ "stname": "" } ], + "igIsMouseKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsMouseKey", + "defaults": {}, + "funcname": "IsMouseKey", + "location": "imgui_internal:3105", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], "igIsMousePosValid": [ { "args": "(const ImVec2* mouse_pos)", @@ -24620,7 +25941,7 @@ "mouse_pos": "NULL" }, "funcname": "IsMousePosValid", - "location": "imgui:937", + "location": "imgui:939", "namespace": "ImGui", "ov_cimguiname": "igIsMousePosValid", "ret": "bool", @@ -24642,59 +25963,79 @@ "cimguiname": "igIsMouseReleased", "defaults": {}, "funcname": "IsMouseReleased", - "location": "imgui:933", + "location": "imgui:935", "namespace": "ImGui", - "ov_cimguiname": "igIsMouseReleased", + "ov_cimguiname": "igIsMouseReleased_Nil", "ret": "bool", "signature": "(ImGuiMouseButton)", "stname": "" + }, + { + "args": "(ImGuiMouseButton button,ImGuiID owner_id)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiMouseButton button,ImGuiID owner_id)", + "call_args": "(button,owner_id)", + "cimguiname": "igIsMouseReleased", + "defaults": {}, + "funcname": "IsMouseReleased", + "location": "imgui_internal:3155", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseReleased_ID", + "ret": "bool", + "signature": "(ImGuiMouseButton,ImGuiID)", + "stname": "" } ], - "igIsNavInputDown": [ + "igIsNamedKey": [ { - "args": "(ImGuiNavInput n)", + "args": "(ImGuiKey key)", "argsT": [ { - "name": "n", - "type": "ImGuiNavInput" + "name": "key", + "type": "ImGuiKey" } ], - "argsoriginal": "(ImGuiNavInput n)", - "call_args": "(n)", - "cimguiname": "igIsNavInputDown", + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsNamedKey", "defaults": {}, - "funcname": "IsNavInputDown", - "location": "imgui_internal:2832", + "funcname": "IsNamedKey", + "location": "imgui_internal:3100", "namespace": "ImGui", - "ov_cimguiname": "igIsNavInputDown", + "ov_cimguiname": "igIsNamedKey", "ret": "bool", - "signature": "(ImGuiNavInput)", + "signature": "(ImGuiKey)", "stname": "" } ], - "igIsNavInputTest": [ + "igIsNamedKeyOrModKey": [ { - "args": "(ImGuiNavInput n,ImGuiInputReadMode rm)", + "args": "(ImGuiKey key)", "argsT": [ { - "name": "n", - "type": "ImGuiNavInput" - }, - { - "name": "rm", - "type": "ImGuiInputReadMode" + "name": "key", + "type": "ImGuiKey" } ], - "argsoriginal": "(ImGuiNavInput n,ImGuiInputReadMode rm)", - "call_args": "(n,rm)", - "cimguiname": "igIsNavInputTest", + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsNamedKeyOrModKey", "defaults": {}, - "funcname": "IsNavInputTest", - "location": "imgui_internal:2833", + "funcname": "IsNamedKeyOrModKey", + "location": "imgui_internal:3101", "namespace": "ImGui", - "ov_cimguiname": "igIsNavInputTest", + "ov_cimguiname": "igIsNamedKeyOrModKey", "ret": "bool", - "signature": "(ImGuiNavInput,ImGuiInputReadMode)", + "signature": "(ImGuiKey)", "stname": "" } ], @@ -24718,9 +26059,9 @@ "flags": "0" }, "funcname": "IsPopupOpen", - "location": "imgui:721", + "location": "imgui:723", "namespace": "ImGui", - "ov_cimguiname": "igIsPopupOpenStr", + "ov_cimguiname": "igIsPopupOpen_Str", "ret": "bool", "signature": "(const char*,ImGuiPopupFlags)", "stname": "" @@ -24742,9 +26083,9 @@ "cimguiname": "igIsPopupOpen", "defaults": {}, "funcname": "IsPopupOpen", - "location": "imgui_internal:2780", + "location": "imgui_internal:3065", "namespace": "ImGui", - "ov_cimguiname": "igIsPopupOpenID", + "ov_cimguiname": "igIsPopupOpen_ID", "ret": "bool", "signature": "(ImGuiID,ImGuiPopupFlags)", "stname": "" @@ -24764,9 +26105,9 @@ "cimguiname": "igIsRectVisible", "defaults": {}, "funcname": "IsRectVisible", - "location": "imgui:893", + "location": "imgui:896", "namespace": "ImGui", - "ov_cimguiname": "igIsRectVisibleNil", + "ov_cimguiname": "igIsRectVisible_Nil", "ret": "bool", "signature": "(const ImVec2)", "stname": "" @@ -24788,9 +26129,9 @@ "cimguiname": "igIsRectVisible", "defaults": {}, "funcname": "IsRectVisible", - "location": "imgui:894", + "location": "imgui:897", "namespace": "ImGui", - "ov_cimguiname": "igIsRectVisibleVec2", + "ov_cimguiname": "igIsRectVisible_Vec2", "ret": "bool", "signature": "(const ImVec2,const ImVec2)", "stname": "" @@ -24814,7 +26155,7 @@ "cimguiname": "igIsWindowAbove", "defaults": {}, "funcname": "IsWindowAbove", - "location": "imgui_internal:2652", + "location": "imgui_internal:2940", "namespace": "ImGui", "ov_cimguiname": "igIsWindowAbove", "ret": "bool", @@ -24831,7 +26172,7 @@ "cimguiname": "igIsWindowAppearing", "defaults": {}, "funcname": "IsWindowAppearing", - "location": "imgui:359", + "location": "imgui:353", "namespace": "ImGui", "ov_cimguiname": "igIsWindowAppearing", "ret": "bool", @@ -24865,7 +26206,7 @@ "cimguiname": "igIsWindowChildOf", "defaults": {}, "funcname": "IsWindowChildOf", - "location": "imgui_internal:2650", + "location": "imgui_internal:2938", "namespace": "ImGui", "ov_cimguiname": "igIsWindowChildOf", "ret": "bool", @@ -24882,7 +26223,7 @@ "cimguiname": "igIsWindowCollapsed", "defaults": {}, "funcname": "IsWindowCollapsed", - "location": "imgui:360", + "location": "imgui:354", "namespace": "ImGui", "ov_cimguiname": "igIsWindowCollapsed", "ret": "bool", @@ -24899,7 +26240,7 @@ "cimguiname": "igIsWindowDocked", "defaults": {}, "funcname": "IsWindowDocked", - "location": "imgui:823", + "location": "imgui:820", "namespace": "ImGui", "ov_cimguiname": "igIsWindowDocked", "ret": "bool", @@ -24923,7 +26264,7 @@ "flags": "0" }, "funcname": "IsWindowFocused", - "location": "imgui:361", + "location": "imgui:355", "namespace": "ImGui", "ov_cimguiname": "igIsWindowFocused", "ret": "bool", @@ -24947,7 +26288,7 @@ "flags": "0" }, "funcname": "IsWindowHovered", - "location": "imgui:362", + "location": "imgui:356", "namespace": "ImGui", "ov_cimguiname": "igIsWindowHovered", "ret": "bool", @@ -24969,7 +26310,7 @@ "cimguiname": "igIsWindowNavFocusable", "defaults": {}, "funcname": "IsWindowNavFocusable", - "location": "imgui_internal:2653", + "location": "imgui_internal:2941", "namespace": "ImGui", "ov_cimguiname": "igIsWindowNavFocusable", "ret": "bool", @@ -24995,7 +26336,7 @@ "cimguiname": "igIsWindowWithinBeginStackOf", "defaults": {}, "funcname": "IsWindowWithinBeginStackOf", - "location": "imgui_internal:2651", + "location": "imgui_internal:2939", "namespace": "ImGui", "ov_cimguiname": "igIsWindowWithinBeginStackOf", "ret": "bool", @@ -25032,7 +26373,7 @@ "nav_bb": "NULL" }, "funcname": "ItemAdd", - "location": "imgui_internal:2742", + "location": "imgui_internal:3038", "namespace": "ImGui", "ov_cimguiname": "igItemAdd", "ret": "bool", @@ -25058,7 +26399,7 @@ "cimguiname": "igItemHoverable", "defaults": {}, "funcname": "ItemHoverable", - "location": "imgui_internal:2743", + "location": "imgui_internal:3039", "namespace": "ImGui", "ov_cimguiname": "igItemHoverable", "ret": "bool", @@ -25086,9 +26427,9 @@ "text_baseline_y": "-1.0f" }, "funcname": "ItemSize", - "location": "imgui_internal:2740", + "location": "imgui_internal:3036", "namespace": "ImGui", - "ov_cimguiname": "igItemSizeVec2", + "ov_cimguiname": "igItemSize_Vec2", "ret": "void", "signature": "(const ImVec2,float)", "stname": "" @@ -25112,9 +26453,9 @@ "text_baseline_y": "-1.0f" }, "funcname": "ItemSize", - "location": "imgui_internal:2741", + "location": "imgui_internal:3037", "namespace": "ImGui", - "ov_cimguiname": "igItemSizeRect", + "ov_cimguiname": "igItemSize_Rect", "ret": "void", "signature": "(const ImRect,float)", "stname": "" @@ -25134,7 +26475,7 @@ "cimguiname": "igKeepAliveID", "defaults": {}, "funcname": "KeepAliveID", - "location": "imgui_internal:2734", + "location": "imgui_internal:3030", "namespace": "ImGui", "ov_cimguiname": "igKeepAliveID", "ret": "void", @@ -25165,7 +26506,7 @@ "defaults": {}, "funcname": "LabelText", "isvararg": "...)", - "location": "imgui:504", + "location": "imgui:501", "namespace": "ImGui", "ov_cimguiname": "igLabelText", "ret": "void", @@ -25195,7 +26536,7 @@ "cimguiname": "igLabelTextV", "defaults": {}, "funcname": "LabelTextV", - "location": "imgui:505", + "location": "imgui:502", "namespace": "ImGui", "ov_cimguiname": "igLabelTextV", "ret": "void", @@ -25235,9 +26576,9 @@ "height_in_items": "-1" }, "funcname": "ListBox", - "location": "imgui:642", + "location": "imgui:643", "namespace": "ImGui", - "ov_cimguiname": "igListBoxStr_arr", + "ov_cimguiname": "igListBox_Str_arr", "ret": "bool", "signature": "(const char*,int*,const char* const[],int,int)", "stname": "" @@ -25279,9 +26620,9 @@ "height_in_items": "-1" }, "funcname": "ListBox", - "location": "imgui:643", + "location": "imgui:644", "namespace": "ImGui", - "ov_cimguiname": "igListBoxFnBoolPtr", + "ov_cimguiname": "igListBox_FnBoolPtr", "ret": "bool", "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", "stname": "" @@ -25301,7 +26642,7 @@ "cimguiname": "igLoadIniSettingsFromDisk", "defaults": {}, "funcname": "LoadIniSettingsFromDisk", - "location": "imgui:957", + "location": "imgui:959", "namespace": "ImGui", "ov_cimguiname": "igLoadIniSettingsFromDisk", "ret": "void", @@ -25329,7 +26670,7 @@ "ini_size": "0" }, "funcname": "LoadIniSettingsFromMemory", - "location": "imgui:958", + "location": "imgui:960", "namespace": "ImGui", "ov_cimguiname": "igLoadIniSettingsFromMemory", "ret": "void", @@ -25337,6 +26678,54 @@ "stname": "" } ], + "igLocalizeGetMsg": [ + { + "args": "(ImGuiLocKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiLocKey" + } + ], + "argsoriginal": "(ImGuiLocKey key)", + "call_args": "(key)", + "cimguiname": "igLocalizeGetMsg", + "defaults": {}, + "funcname": "LocalizeGetMsg", + "location": "imgui_internal:3003", + "namespace": "ImGui", + "ov_cimguiname": "igLocalizeGetMsg", + "ret": "const char*", + "signature": "(ImGuiLocKey)", + "stname": "" + } + ], + "igLocalizeRegisterEntries": [ + { + "args": "(const ImGuiLocEntry* entries,int count)", + "argsT": [ + { + "name": "entries", + "type": "const ImGuiLocEntry*" + }, + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(const ImGuiLocEntry* entries,int count)", + "call_args": "(entries,count)", + "cimguiname": "igLocalizeRegisterEntries", + "defaults": {}, + "funcname": "LocalizeRegisterEntries", + "location": "imgui_internal:3002", + "namespace": "ImGui", + "ov_cimguiname": "igLocalizeRegisterEntries", + "ret": "void", + "signature": "(const ImGuiLocEntry*,int)", + "stname": "" + } + ], "igLogBegin": [ { "args": "(ImGuiLogType type,int auto_open_depth)", @@ -25355,7 +26744,7 @@ "cimguiname": "igLogBegin", "defaults": {}, "funcname": "LogBegin", - "location": "imgui_internal:2769", + "location": "imgui_internal:3054", "namespace": "ImGui", "ov_cimguiname": "igLogBegin", "ret": "void", @@ -25372,7 +26761,7 @@ "cimguiname": "igLogButtons", "defaults": {}, "funcname": "LogButtons", - "location": "imgui:831", + "location": "imgui:828", "namespace": "ImGui", "ov_cimguiname": "igLogButtons", "ret": "void", @@ -25389,7 +26778,7 @@ "cimguiname": "igLogFinish", "defaults": {}, "funcname": "LogFinish", - "location": "imgui:830", + "location": "imgui:827", "namespace": "ImGui", "ov_cimguiname": "igLogFinish", "ret": "void", @@ -25421,7 +26810,7 @@ "text_end": "NULL" }, "funcname": "LogRenderedText", - "location": "imgui_internal:2771", + "location": "imgui_internal:3056", "namespace": "ImGui", "ov_cimguiname": "igLogRenderedText", "ret": "void", @@ -25447,7 +26836,7 @@ "cimguiname": "igLogSetNextTextDecoration", "defaults": {}, "funcname": "LogSetNextTextDecoration", - "location": "imgui_internal:2772", + "location": "imgui_internal:3057", "namespace": "ImGui", "ov_cimguiname": "igLogSetNextTextDecoration", "ret": "void", @@ -25474,7 +26863,7 @@ "defaults": {}, "funcname": "LogText", "isvararg": "...)", - "location": "imgui:832", + "location": "imgui:829", "manual": true, "namespace": "ImGui", "ov_cimguiname": "igLogText", @@ -25501,7 +26890,7 @@ "cimguiname": "igLogTextV", "defaults": {}, "funcname": "LogTextV", - "location": "imgui:833", + "location": "imgui:830", "namespace": "ImGui", "ov_cimguiname": "igLogTextV", "ret": "void", @@ -25525,7 +26914,7 @@ "auto_open_depth": "-1" }, "funcname": "LogToBuffer", - "location": "imgui_internal:2770", + "location": "imgui_internal:3055", "namespace": "ImGui", "ov_cimguiname": "igLogToBuffer", "ret": "void", @@ -25549,7 +26938,7 @@ "auto_open_depth": "-1" }, "funcname": "LogToClipboard", - "location": "imgui:829", + "location": "imgui:826", "namespace": "ImGui", "ov_cimguiname": "igLogToClipboard", "ret": "void", @@ -25578,7 +26967,7 @@ "filename": "NULL" }, "funcname": "LogToFile", - "location": "imgui:828", + "location": "imgui:825", "namespace": "ImGui", "ov_cimguiname": "igLogToFile", "ret": "void", @@ -25602,7 +26991,7 @@ "auto_open_depth": "-1" }, "funcname": "LogToTTY", - "location": "imgui:827", + "location": "imgui:824", "namespace": "ImGui", "ov_cimguiname": "igLogToTTY", "ret": "void", @@ -25619,9 +27008,9 @@ "cimguiname": "igMarkIniSettingsDirty", "defaults": {}, "funcname": "MarkIniSettingsDirty", - "location": "imgui_internal:2700", + "location": "imgui_internal:2991", "namespace": "ImGui", - "ov_cimguiname": "igMarkIniSettingsDirtyNil", + "ov_cimguiname": "igMarkIniSettingsDirty_Nil", "ret": "void", "signature": "()", "stname": "" @@ -25639,9 +27028,9 @@ "cimguiname": "igMarkIniSettingsDirty", "defaults": {}, "funcname": "MarkIniSettingsDirty", - "location": "imgui_internal:2701", + "location": "imgui_internal:2992", "namespace": "ImGui", - "ov_cimguiname": "igMarkIniSettingsDirtyWindowPtr", + "ov_cimguiname": "igMarkIniSettingsDirty_WindowPtr", "ret": "void", "signature": "(ImGuiWindow*)", "stname": "" @@ -25661,7 +27050,7 @@ "cimguiname": "igMarkItemEdited", "defaults": {}, "funcname": "MarkItemEdited", - "location": "imgui_internal:2735", + "location": "imgui_internal:3031", "namespace": "ImGui", "ov_cimguiname": "igMarkItemEdited", "ret": "void", @@ -25683,7 +27072,7 @@ "cimguiname": "igMemAlloc", "defaults": {}, "funcname": "MemAlloc", - "location": "imgui:972", + "location": "imgui:974", "namespace": "ImGui", "ov_cimguiname": "igMemAlloc", "ret": "void*", @@ -25705,7 +27094,7 @@ "cimguiname": "igMemFree", "defaults": {}, "funcname": "MemFree", - "location": "imgui:973", + "location": "imgui:975", "namespace": "ImGui", "ov_cimguiname": "igMemFree", "ret": "void", @@ -25743,9 +27132,9 @@ "shortcut": "NULL" }, "funcname": "MenuItem", - "location": "imgui:670", + "location": "imgui:671", "namespace": "ImGui", - "ov_cimguiname": "igMenuItemBool", + "ov_cimguiname": "igMenuItem_Bool", "ret": "bool", "signature": "(const char*,const char*,bool,bool)", "stname": "" @@ -25777,9 +27166,9 @@ "enabled": "true" }, "funcname": "MenuItem", - "location": "imgui:671", + "location": "imgui:672", "namespace": "ImGui", - "ov_cimguiname": "igMenuItemBoolPtr", + "ov_cimguiname": "igMenuItem_BoolPtr", "ret": "bool", "signature": "(const char*,const char*,bool*,bool)", "stname": "" @@ -25819,7 +27208,7 @@ "shortcut": "NULL" }, "funcname": "MenuItemEx", - "location": "imgui_internal:2792", + "location": "imgui_internal:3077", "namespace": "ImGui", "ov_cimguiname": "igMenuItemEx", "ret": "bool", @@ -25827,6 +27216,28 @@ "stname": "" } ], + "igMouseButtonToKey": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igMouseButtonToKey", + "defaults": {}, + "funcname": "MouseButtonToKey", + "location": "imgui_internal:3118", + "namespace": "ImGui", + "ov_cimguiname": "igMouseButtonToKey", + "ret": "ImGuiKey", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], "igNavInitRequestApplyResult": [ { "args": "()", @@ -25836,7 +27247,7 @@ "cimguiname": "igNavInitRequestApplyResult", "defaults": {}, "funcname": "NavInitRequestApplyResult", - "location": "imgui_internal:2801", + "location": "imgui_internal:3086", "namespace": "ImGui", "ov_cimguiname": "igNavInitRequestApplyResult", "ret": "void", @@ -25862,7 +27273,7 @@ "cimguiname": "igNavInitWindow", "defaults": {}, "funcname": "NavInitWindow", - "location": "imgui_internal:2800", + "location": "imgui_internal:3085", "namespace": "ImGui", "ov_cimguiname": "igNavInitWindow", "ret": "void", @@ -25879,7 +27290,7 @@ "cimguiname": "igNavMoveRequestApplyResult", "defaults": {}, "funcname": "NavMoveRequestApplyResult", - "location": "imgui_internal:2807", + "location": "imgui_internal:3092", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestApplyResult", "ret": "void", @@ -25896,7 +27307,7 @@ "cimguiname": "igNavMoveRequestButNoResultYet", "defaults": {}, "funcname": "NavMoveRequestButNoResultYet", - "location": "imgui_internal:2802", + "location": "imgui_internal:3087", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestButNoResultYet", "ret": "bool", @@ -25913,7 +27324,7 @@ "cimguiname": "igNavMoveRequestCancel", "defaults": {}, "funcname": "NavMoveRequestCancel", - "location": "imgui_internal:2806", + "location": "imgui_internal:3091", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestCancel", "ret": "void", @@ -25947,7 +27358,7 @@ "cimguiname": "igNavMoveRequestForward", "defaults": {}, "funcname": "NavMoveRequestForward", - "location": "imgui_internal:2804", + "location": "imgui_internal:3089", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestForward", "ret": "void", @@ -25969,7 +27380,7 @@ "cimguiname": "igNavMoveRequestResolveWithLastItem", "defaults": {}, "funcname": "NavMoveRequestResolveWithLastItem", - "location": "imgui_internal:2805", + "location": "imgui_internal:3090", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestResolveWithLastItem", "ret": "void", @@ -26003,7 +27414,7 @@ "cimguiname": "igNavMoveRequestSubmit", "defaults": {}, "funcname": "NavMoveRequestSubmit", - "location": "imgui_internal:2803", + "location": "imgui_internal:3088", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestSubmit", "ret": "void", @@ -26029,7 +27440,7 @@ "cimguiname": "igNavMoveRequestTryWrapping", "defaults": {}, "funcname": "NavMoveRequestTryWrapping", - "location": "imgui_internal:2808", + "location": "imgui_internal:3093", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestTryWrapping", "ret": "void", @@ -26046,7 +27457,7 @@ "cimguiname": "igNewFrame", "defaults": {}, "funcname": "NewFrame", - "location": "imgui:309", + "location": "imgui:302", "namespace": "ImGui", "ov_cimguiname": "igNewFrame", "ret": "void", @@ -26063,7 +27474,7 @@ "cimguiname": "igNewLine", "defaults": {}, "funcname": "NewLine", - "location": "imgui:452", + "location": "imgui:449", "namespace": "ImGui", "ov_cimguiname": "igNewLine", "ret": "void", @@ -26080,7 +27491,7 @@ "cimguiname": "igNextColumn", "defaults": {}, "funcname": "NextColumn", - "location": "imgui:788", + "location": "imgui:785", "namespace": "ImGui", "ov_cimguiname": "igNextColumn", "ret": "void", @@ -26108,9 +27519,9 @@ "popup_flags": "0" }, "funcname": "OpenPopup", - "location": "imgui:703", + "location": "imgui:705", "namespace": "ImGui", - "ov_cimguiname": "igOpenPopupStr", + "ov_cimguiname": "igOpenPopup_Str", "ret": "void", "signature": "(const char*,ImGuiPopupFlags)", "stname": "" @@ -26134,9 +27545,9 @@ "popup_flags": "0" }, "funcname": "OpenPopup", - "location": "imgui:704", + "location": "imgui:706", "namespace": "ImGui", - "ov_cimguiname": "igOpenPopupID", + "ov_cimguiname": "igOpenPopup_ID", "ret": "void", "signature": "(ImGuiID,ImGuiPopupFlags)", "stname": "" @@ -26162,7 +27573,7 @@ "popup_flags": "ImGuiPopupFlags_None" }, "funcname": "OpenPopupEx", - "location": "imgui_internal:2776", + "location": "imgui_internal:3061", "namespace": "ImGui", "ov_cimguiname": "igOpenPopupEx", "ret": "void", @@ -26191,7 +27602,7 @@ "str_id": "NULL" }, "funcname": "OpenPopupOnItemClick", - "location": "imgui:705", + "location": "imgui:707", "namespace": "ImGui", "ov_cimguiname": "igOpenPopupOnItemClick", "ret": "void", @@ -26251,7 +27662,7 @@ "cimguiname": "igPlotEx", "defaults": {}, "funcname": "PlotEx", - "location": "imgui_internal:3058", + "location": "imgui_internal:3407", "namespace": "ImGui", "ov_cimguiname": "igPlotEx", "ret": "int", @@ -26312,9 +27723,9 @@ "values_offset": "0" }, "funcname": "PlotHistogram", - "location": "imgui:649", + "location": "imgui:650", "namespace": "ImGui", - "ov_cimguiname": "igPlotHistogramFloatPtr", + "ov_cimguiname": "igPlotHistogram_FloatPtr", "ret": "void", "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", "stname": "" @@ -26372,9 +27783,9 @@ "values_offset": "0" }, "funcname": "PlotHistogram", - "location": "imgui:650", + "location": "imgui:651", "namespace": "ImGui", - "ov_cimguiname": "igPlotHistogramFnFloatPtr", + "ov_cimguiname": "igPlotHistogram_FnFloatPtr", "ret": "void", "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", "stname": "" @@ -26433,9 +27844,9 @@ "values_offset": "0" }, "funcname": "PlotLines", - "location": "imgui:647", + "location": "imgui:648", "namespace": "ImGui", - "ov_cimguiname": "igPlotLinesFloatPtr", + "ov_cimguiname": "igPlotLines_FloatPtr", "ret": "void", "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", "stname": "" @@ -26493,9 +27904,9 @@ "values_offset": "0" }, "funcname": "PlotLines", - "location": "imgui:648", + "location": "imgui:649", "namespace": "ImGui", - "ov_cimguiname": "igPlotLinesFnFloatPtr", + "ov_cimguiname": "igPlotLines_FnFloatPtr", "ret": "void", "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", "stname": "" @@ -26510,7 +27921,7 @@ "cimguiname": "igPopAllowKeyboardFocus", "defaults": {}, "funcname": "PopAllowKeyboardFocus", - "location": "imgui:421", + "location": "imgui:418", "namespace": "ImGui", "ov_cimguiname": "igPopAllowKeyboardFocus", "ret": "void", @@ -26527,7 +27938,7 @@ "cimguiname": "igPopButtonRepeat", "defaults": {}, "funcname": "PopButtonRepeat", - "location": "imgui:423", + "location": "imgui:420", "namespace": "ImGui", "ov_cimguiname": "igPopButtonRepeat", "ret": "void", @@ -26544,7 +27955,7 @@ "cimguiname": "igPopClipRect", "defaults": {}, "funcname": "PopClipRect", - "location": "imgui:858", + "location": "imgui:855", "namespace": "ImGui", "ov_cimguiname": "igPopClipRect", "ret": "void", @@ -26561,7 +27972,7 @@ "cimguiname": "igPopColumnsBackground", "defaults": {}, "funcname": "PopColumnsBackground", - "location": "imgui_internal:2898", + "location": "imgui_internal:3249", "namespace": "ImGui", "ov_cimguiname": "igPopColumnsBackground", "ret": "void", @@ -26578,7 +27989,7 @@ "cimguiname": "igPopFocusScope", "defaults": {}, "funcname": "PopFocusScope", - "location": "imgui_internal:2819", + "location": "imgui_internal:3233", "namespace": "ImGui", "ov_cimguiname": "igPopFocusScope", "ret": "void", @@ -26595,7 +28006,7 @@ "cimguiname": "igPopFont", "defaults": {}, "funcname": "PopFont", - "location": "imgui:413", + "location": "imgui:410", "namespace": "ImGui", "ov_cimguiname": "igPopFont", "ret": "void", @@ -26612,7 +28023,7 @@ "cimguiname": "igPopID", "defaults": {}, "funcname": "PopID", - "location": "imgui:489", + "location": "imgui:486", "namespace": "ImGui", "ov_cimguiname": "igPopID", "ret": "void", @@ -26629,7 +28040,7 @@ "cimguiname": "igPopItemFlag", "defaults": {}, "funcname": "PopItemFlag", - "location": "imgui_internal:2755", + "location": "imgui_internal:3051", "namespace": "ImGui", "ov_cimguiname": "igPopItemFlag", "ret": "void", @@ -26646,7 +28057,7 @@ "cimguiname": "igPopItemWidth", "defaults": {}, "funcname": "PopItemWidth", - "location": "imgui:427", + "location": "imgui:424", "namespace": "ImGui", "ov_cimguiname": "igPopItemWidth", "ret": "void", @@ -26670,7 +28081,7 @@ "count": "1" }, "funcname": "PopStyleColor", - "location": "imgui:416", + "location": "imgui:413", "namespace": "ImGui", "ov_cimguiname": "igPopStyleColor", "ret": "void", @@ -26694,7 +28105,7 @@ "count": "1" }, "funcname": "PopStyleVar", - "location": "imgui:419", + "location": "imgui:416", "namespace": "ImGui", "ov_cimguiname": "igPopStyleVar", "ret": "void", @@ -26711,7 +28122,7 @@ "cimguiname": "igPopTextWrapPos", "defaults": {}, "funcname": "PopTextWrapPos", - "location": "imgui:431", + "location": "imgui:428", "namespace": "ImGui", "ov_cimguiname": "igPopTextWrapPos", "ret": "void", @@ -26744,7 +28155,7 @@ "size_arg": "ImVec2(-FLT_MIN,0)" }, "funcname": "ProgressBar", - "location": "imgui:523", + "location": "imgui:518", "namespace": "ImGui", "ov_cimguiname": "igProgressBar", "ret": "void", @@ -26766,7 +28177,7 @@ "cimguiname": "igPushAllowKeyboardFocus", "defaults": {}, "funcname": "PushAllowKeyboardFocus", - "location": "imgui:420", + "location": "imgui:417", "namespace": "ImGui", "ov_cimguiname": "igPushAllowKeyboardFocus", "ret": "void", @@ -26788,7 +28199,7 @@ "cimguiname": "igPushButtonRepeat", "defaults": {}, "funcname": "PushButtonRepeat", - "location": "imgui:422", + "location": "imgui:419", "namespace": "ImGui", "ov_cimguiname": "igPushButtonRepeat", "ret": "void", @@ -26818,7 +28229,7 @@ "cimguiname": "igPushClipRect", "defaults": {}, "funcname": "PushClipRect", - "location": "imgui:857", + "location": "imgui:854", "namespace": "ImGui", "ov_cimguiname": "igPushClipRect", "ret": "void", @@ -26840,7 +28251,7 @@ "cimguiname": "igPushColumnClipRect", "defaults": {}, "funcname": "PushColumnClipRect", - "location": "imgui_internal:2896", + "location": "imgui_internal:3247", "namespace": "ImGui", "ov_cimguiname": "igPushColumnClipRect", "ret": "void", @@ -26857,7 +28268,7 @@ "cimguiname": "igPushColumnsBackground", "defaults": {}, "funcname": "PushColumnsBackground", - "location": "imgui_internal:2897", + "location": "imgui_internal:3248", "namespace": "ImGui", "ov_cimguiname": "igPushColumnsBackground", "ret": "void", @@ -26879,7 +28290,7 @@ "cimguiname": "igPushFocusScope", "defaults": {}, "funcname": "PushFocusScope", - "location": "imgui_internal:2818", + "location": "imgui_internal:3232", "namespace": "ImGui", "ov_cimguiname": "igPushFocusScope", "ret": "void", @@ -26901,7 +28312,7 @@ "cimguiname": "igPushFont", "defaults": {}, "funcname": "PushFont", - "location": "imgui:412", + "location": "imgui:409", "namespace": "ImGui", "ov_cimguiname": "igPushFont", "ret": "void", @@ -26923,9 +28334,9 @@ "cimguiname": "igPushID", "defaults": {}, "funcname": "PushID", - "location": "imgui:485", + "location": "imgui:482", "namespace": "ImGui", - "ov_cimguiname": "igPushIDStr", + "ov_cimguiname": "igPushID_Str", "ret": "void", "signature": "(const char*)", "stname": "" @@ -26947,9 +28358,9 @@ "cimguiname": "igPushID", "defaults": {}, "funcname": "PushID", - "location": "imgui:486", + "location": "imgui:483", "namespace": "ImGui", - "ov_cimguiname": "igPushIDStrStr", + "ov_cimguiname": "igPushID_StrStr", "ret": "void", "signature": "(const char*,const char*)", "stname": "" @@ -26967,9 +28378,9 @@ "cimguiname": "igPushID", "defaults": {}, "funcname": "PushID", - "location": "imgui:487", + "location": "imgui:484", "namespace": "ImGui", - "ov_cimguiname": "igPushIDPtr", + "ov_cimguiname": "igPushID_Ptr", "ret": "void", "signature": "(const void*)", "stname": "" @@ -26987,9 +28398,9 @@ "cimguiname": "igPushID", "defaults": {}, "funcname": "PushID", - "location": "imgui:488", + "location": "imgui:485", "namespace": "ImGui", - "ov_cimguiname": "igPushIDInt", + "ov_cimguiname": "igPushID_Int", "ret": "void", "signature": "(int)", "stname": "" @@ -27013,7 +28424,7 @@ "cimguiname": "igPushItemFlag", "defaults": {}, "funcname": "PushItemFlag", - "location": "imgui_internal:2754", + "location": "imgui_internal:3050", "namespace": "ImGui", "ov_cimguiname": "igPushItemFlag", "ret": "void", @@ -27035,7 +28446,7 @@ "cimguiname": "igPushItemWidth", "defaults": {}, "funcname": "PushItemWidth", - "location": "imgui:426", + "location": "imgui:423", "namespace": "ImGui", "ov_cimguiname": "igPushItemWidth", "ret": "void", @@ -27061,7 +28472,7 @@ "cimguiname": "igPushMultiItemsWidths", "defaults": {}, "funcname": "PushMultiItemsWidths", - "location": "imgui_internal:2748", + "location": "imgui_internal:3044", "namespace": "ImGui", "ov_cimguiname": "igPushMultiItemsWidths", "ret": "void", @@ -27083,7 +28494,7 @@ "cimguiname": "igPushOverrideID", "defaults": {}, "funcname": "PushOverrideID", - "location": "imgui_internal:2736", + "location": "imgui_internal:3032", "namespace": "ImGui", "ov_cimguiname": "igPushOverrideID", "ret": "void", @@ -27109,9 +28520,9 @@ "cimguiname": "igPushStyleColor", "defaults": {}, "funcname": "PushStyleColor", - "location": "imgui:414", + "location": "imgui:411", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleColorU32", + "ov_cimguiname": "igPushStyleColor_U32", "ret": "void", "signature": "(ImGuiCol,ImU32)", "stname": "" @@ -27133,9 +28544,9 @@ "cimguiname": "igPushStyleColor", "defaults": {}, "funcname": "PushStyleColor", - "location": "imgui:415", + "location": "imgui:412", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleColorVec4", + "ov_cimguiname": "igPushStyleColor_Vec4", "ret": "void", "signature": "(ImGuiCol,const ImVec4)", "stname": "" @@ -27159,9 +28570,9 @@ "cimguiname": "igPushStyleVar", "defaults": {}, "funcname": "PushStyleVar", - "location": "imgui:417", + "location": "imgui:414", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleVarFloat", + "ov_cimguiname": "igPushStyleVar_Float", "ret": "void", "signature": "(ImGuiStyleVar,float)", "stname": "" @@ -27183,9 +28594,9 @@ "cimguiname": "igPushStyleVar", "defaults": {}, "funcname": "PushStyleVar", - "location": "imgui:418", + "location": "imgui:415", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleVarVec2", + "ov_cimguiname": "igPushStyleVar_Vec2", "ret": "void", "signature": "(ImGuiStyleVar,const ImVec2)", "stname": "" @@ -27207,7 +28618,7 @@ "wrap_local_pos_x": "0.0f" }, "funcname": "PushTextWrapPos", - "location": "imgui:430", + "location": "imgui:427", "namespace": "ImGui", "ov_cimguiname": "igPushTextWrapPos", "ret": "void", @@ -27233,9 +28644,9 @@ "cimguiname": "igRadioButton", "defaults": {}, "funcname": "RadioButton", - "location": "imgui:521", + "location": "imgui:516", "namespace": "ImGui", - "ov_cimguiname": "igRadioButtonBool", + "ov_cimguiname": "igRadioButton_Bool", "ret": "bool", "signature": "(const char*,bool)", "stname": "" @@ -27261,9 +28672,9 @@ "cimguiname": "igRadioButton", "defaults": {}, "funcname": "RadioButton", - "location": "imgui:522", + "location": "imgui:517", "namespace": "ImGui", - "ov_cimguiname": "igRadioButtonIntPtr", + "ov_cimguiname": "igRadioButton_IntPtr", "ret": "bool", "signature": "(const char*,int*,int)", "stname": "" @@ -27287,7 +28698,7 @@ "cimguiname": "igRemoveContextHook", "defaults": {}, "funcname": "RemoveContextHook", - "location": "imgui_internal:2689", + "location": "imgui_internal:2978", "namespace": "ImGui", "ov_cimguiname": "igRemoveContextHook", "ret": "void", @@ -27295,6 +28706,28 @@ "stname": "" } ], + "igRemoveSettingsHandler": [ + { + "args": "(const char* type_name)", + "argsT": [ + { + "name": "type_name", + "type": "const char*" + } + ], + "argsoriginal": "(const char* type_name)", + "call_args": "(type_name)", + "cimguiname": "igRemoveSettingsHandler", + "defaults": {}, + "funcname": "RemoveSettingsHandler", + "location": "imgui_internal:2998", + "namespace": "ImGui", + "ov_cimguiname": "igRemoveSettingsHandler", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], "igRender": [ { "args": "()", @@ -27304,7 +28737,7 @@ "cimguiname": "igRender", "defaults": {}, "funcname": "Render", - "location": "imgui:311", + "location": "imgui:304", "namespace": "ImGui", "ov_cimguiname": "igRender", "ret": "void", @@ -27344,7 +28777,7 @@ "scale": "1.0f" }, "funcname": "RenderArrow", - "location": "imgui_internal:2985", + "location": "imgui_internal:3340", "namespace": "ImGui", "ov_cimguiname": "igRenderArrow", "ret": "void", @@ -27378,7 +28811,7 @@ "cimguiname": "igRenderArrowDockMenu", "defaults": {}, "funcname": "RenderArrowDockMenu", - "location": "imgui_internal:2990", + "location": "imgui_internal:3344", "namespace": "ImGui", "ov_cimguiname": "igRenderArrowDockMenu", "ret": "void", @@ -27416,7 +28849,7 @@ "cimguiname": "igRenderArrowPointingAt", "defaults": {}, "funcname": "RenderArrowPointingAt", - "location": "imgui_internal:2989", + "location": "imgui_internal:3343", "namespace": "ImGui", "ov_cimguiname": "igRenderArrowPointingAt", "ret": "void", @@ -27446,7 +28879,7 @@ "cimguiname": "igRenderBullet", "defaults": {}, "funcname": "RenderBullet", - "location": "imgui_internal:2986", + "location": "imgui_internal:3341", "namespace": "ImGui", "ov_cimguiname": "igRenderBullet", "ret": "void", @@ -27480,7 +28913,7 @@ "cimguiname": "igRenderCheckMark", "defaults": {}, "funcname": "RenderCheckMark", - "location": "imgui_internal:2987", + "location": "imgui_internal:3342", "namespace": "ImGui", "ov_cimguiname": "igRenderCheckMark", "ret": "void", @@ -27533,7 +28966,7 @@ "rounding": "0.0f" }, "funcname": "RenderColorRectWithAlphaCheckerboard", - "location": "imgui_internal:2980", + "location": "imgui_internal:3334", "namespace": "ImGui", "ov_cimguiname": "igRenderColorRectWithAlphaCheckerboard", "ret": "void", @@ -27541,6 +28974,28 @@ "stname": "" } ], + "igRenderDragDropTargetRect": [ + { + "args": "(const ImRect bb)", + "argsT": [ + { + "name": "bb", + "type": "const ImRect" + } + ], + "argsoriginal": "(const ImRect& bb)", + "call_args": "(bb)", + "cimguiname": "igRenderDragDropTargetRect", + "defaults": {}, + "funcname": "RenderDragDropTargetRect", + "location": "imgui_internal:3241", + "namespace": "ImGui", + "ov_cimguiname": "igRenderDragDropTargetRect", + "ret": "void", + "signature": "(const ImRect)", + "stname": "" + } + ], "igRenderFrame": [ { "args": "(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border,float rounding)", @@ -27574,7 +29029,7 @@ "rounding": "0.0f" }, "funcname": "RenderFrame", - "location": "imgui_internal:2978", + "location": "imgui_internal:3332", "namespace": "ImGui", "ov_cimguiname": "igRenderFrame", "ret": "void", @@ -27606,7 +29061,7 @@ "rounding": "0.0f" }, "funcname": "RenderFrameBorder", - "location": "imgui_internal:2979", + "location": "imgui_internal:3333", "namespace": "ImGui", "ov_cimguiname": "igRenderFrameBorder", "ret": "void", @@ -27616,12 +29071,8 @@ ], "igRenderMouseCursor": [ { - "args": "(ImDrawList* draw_list,ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)", + "args": "(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)", "argsT": [ - { - "name": "draw_list", - "type": "ImDrawList*" - }, { "name": "pos", "type": "ImVec2" @@ -27647,16 +29098,16 @@ "type": "ImU32" } ], - "argsoriginal": "(ImDrawList* draw_list,ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)", - "call_args": "(draw_list,pos,scale,mouse_cursor,col_fill,col_border,col_shadow)", + "argsoriginal": "(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)", + "call_args": "(pos,scale,mouse_cursor,col_fill,col_border,col_shadow)", "cimguiname": "igRenderMouseCursor", "defaults": {}, "funcname": "RenderMouseCursor", - "location": "imgui_internal:2988", + "location": "imgui_internal:3337", "namespace": "ImGui", "ov_cimguiname": "igRenderMouseCursor", "ret": "void", - "signature": "(ImDrawList*,ImVec2,float,ImGuiMouseCursor,ImU32,ImU32,ImU32)", + "signature": "(ImVec2,float,ImGuiMouseCursor,ImU32,ImU32,ImU32)", "stname": "" } ], @@ -27684,7 +29135,7 @@ "flags": "ImGuiNavHighlightFlags_TypeDefault" }, "funcname": "RenderNavHighlight", - "location": "imgui_internal:2981", + "location": "imgui_internal:3335", "namespace": "ImGui", "ov_cimguiname": "igRenderNavHighlight", "ret": "void", @@ -27713,7 +29164,7 @@ "renderer_render_arg": "NULL" }, "funcname": "RenderPlatformWindowsDefault", - "location": "imgui:980", + "location": "imgui:982", "namespace": "ImGui", "ov_cimguiname": "igRenderPlatformWindowsDefault", "ret": "void", @@ -27755,7 +29206,7 @@ "cimguiname": "igRenderRectFilledRangeH", "defaults": {}, "funcname": "RenderRectFilledRangeH", - "location": "imgui_internal:2991", + "location": "imgui_internal:3345", "namespace": "ImGui", "ov_cimguiname": "igRenderRectFilledRangeH", "ret": "void", @@ -27765,7 +29216,7 @@ ], "igRenderRectFilledWithHole": [ { - "args": "(ImDrawList* draw_list,ImRect outer,ImRect inner,ImU32 col,float rounding)", + "args": "(ImDrawList* draw_list,const ImRect outer,const ImRect inner,ImU32 col,float rounding)", "argsT": [ { "name": "draw_list", @@ -27773,11 +29224,11 @@ }, { "name": "outer", - "type": "ImRect" + "type": "const ImRect" }, { "name": "inner", - "type": "ImRect" + "type": "const ImRect" }, { "name": "col", @@ -27788,16 +29239,16 @@ "type": "float" } ], - "argsoriginal": "(ImDrawList* draw_list,ImRect outer,ImRect inner,ImU32 col,float rounding)", + "argsoriginal": "(ImDrawList* draw_list,const ImRect& outer,const ImRect& inner,ImU32 col,float rounding)", "call_args": "(draw_list,outer,inner,col,rounding)", "cimguiname": "igRenderRectFilledWithHole", "defaults": {}, "funcname": "RenderRectFilledWithHole", - "location": "imgui_internal:2992", + "location": "imgui_internal:3346", "namespace": "ImGui", "ov_cimguiname": "igRenderRectFilledWithHole", "ret": "void", - "signature": "(ImDrawList*,ImRect,ImRect,ImU32,float)", + "signature": "(ImDrawList*,const ImRect,const ImRect,ImU32,float)", "stname": "" } ], @@ -27830,7 +29281,7 @@ "text_end": "NULL" }, "funcname": "RenderText", - "location": "imgui_internal:2973", + "location": "imgui_internal:3327", "namespace": "ImGui", "ov_cimguiname": "igRenderText", "ret": "void", @@ -27879,7 +29330,7 @@ "clip_rect": "NULL" }, "funcname": "RenderTextClipped", - "location": "imgui_internal:2975", + "location": "imgui_internal:3329", "namespace": "ImGui", "ov_cimguiname": "igRenderTextClipped", "ret": "void", @@ -27932,7 +29383,7 @@ "clip_rect": "NULL" }, "funcname": "RenderTextClippedEx", - "location": "imgui_internal:2976", + "location": "imgui_internal:3330", "namespace": "ImGui", "ov_cimguiname": "igRenderTextClippedEx", "ret": "void", @@ -27982,7 +29433,7 @@ "cimguiname": "igRenderTextEllipsis", "defaults": {}, "funcname": "RenderTextEllipsis", - "location": "imgui_internal:2977", + "location": "imgui_internal:3331", "namespace": "ImGui", "ov_cimguiname": "igRenderTextEllipsis", "ret": "void", @@ -28016,7 +29467,7 @@ "cimguiname": "igRenderTextWrapped", "defaults": {}, "funcname": "RenderTextWrapped", - "location": "imgui_internal:2974", + "location": "imgui_internal:3328", "namespace": "ImGui", "ov_cimguiname": "igRenderTextWrapped", "ret": "void", @@ -28040,7 +29491,7 @@ "button": "0" }, "funcname": "ResetMouseDragDelta", - "location": "imgui:943", + "location": "imgui:945", "namespace": "ImGui", "ov_cimguiname": "igResetMouseDragDelta", "ret": "void", @@ -28069,7 +29520,7 @@ "spacing": "-1.0f" }, "funcname": "SameLine", - "location": "imgui:451", + "location": "imgui:448", "namespace": "ImGui", "ov_cimguiname": "igSameLine", "ret": "void", @@ -28091,7 +29542,7 @@ "cimguiname": "igSaveIniSettingsToDisk", "defaults": {}, "funcname": "SaveIniSettingsToDisk", - "location": "imgui:959", + "location": "imgui:961", "namespace": "ImGui", "ov_cimguiname": "igSaveIniSettingsToDisk", "ret": "void", @@ -28115,7 +29566,7 @@ "out_ini_size": "NULL" }, "funcname": "SaveIniSettingsToMemory", - "location": "imgui:960", + "location": "imgui:962", "namespace": "ImGui", "ov_cimguiname": "igSaveIniSettingsToMemory", "ret": "const char*", @@ -28141,7 +29592,7 @@ "cimguiname": "igScaleWindowsInViewport", "defaults": {}, "funcname": "ScaleWindowsInViewport", - "location": "imgui_internal:2694", + "location": "imgui_internal:2983", "namespace": "ImGui", "ov_cimguiname": "igScaleWindowsInViewport", "ret": "void", @@ -28167,7 +29618,7 @@ "cimguiname": "igScrollToBringRectIntoView", "defaults": {}, "funcname": "ScrollToBringRectIntoView", - "location": "imgui_internal:2720", + "location": "imgui_internal:3016", "namespace": "ImGui", "ov_cimguiname": "igScrollToBringRectIntoView", "ret": "void", @@ -28191,7 +29642,7 @@ "flags": "0" }, "funcname": "ScrollToItem", - "location": "imgui_internal:2716", + "location": "imgui_internal:3012", "namespace": "ImGui", "ov_cimguiname": "igScrollToItem", "ret": "void", @@ -28223,7 +29674,7 @@ "flags": "0" }, "funcname": "ScrollToRect", - "location": "imgui_internal:2717", + "location": "imgui_internal:3013", "namespace": "ImGui", "ov_cimguiname": "igScrollToRect", "ret": "void", @@ -28259,7 +29710,7 @@ "flags": "0" }, "funcname": "ScrollToRectEx", - "location": "imgui_internal:2718", + "location": "imgui_internal:3014", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igScrollToRectEx", @@ -28282,7 +29733,7 @@ "cimguiname": "igScrollbar", "defaults": {}, "funcname": "Scrollbar", - "location": "imgui_internal:3007", + "location": "imgui_internal:3355", "namespace": "ImGui", "ov_cimguiname": "igScrollbar", "ret": "void", @@ -28328,7 +29779,7 @@ "cimguiname": "igScrollbarEx", "defaults": {}, "funcname": "ScrollbarEx", - "location": "imgui_internal:3008", + "location": "imgui_internal:3356", "namespace": "ImGui", "ov_cimguiname": "igScrollbarEx", "ret": "bool", @@ -28366,9 +29817,9 @@ "size": "ImVec2(0,0)" }, "funcname": "Selectable", - "location": "imgui:631", + "location": "imgui:632", "namespace": "ImGui", - "ov_cimguiname": "igSelectableBool", + "ov_cimguiname": "igSelectable_Bool", "ret": "bool", "signature": "(const char*,bool,ImGuiSelectableFlags,const ImVec2)", "stname": "" @@ -28401,9 +29852,9 @@ "size": "ImVec2(0,0)" }, "funcname": "Selectable", - "location": "imgui:632", + "location": "imgui:633", "namespace": "ImGui", - "ov_cimguiname": "igSelectableBoolPtr", + "ov_cimguiname": "igSelectable_BoolPtr", "ret": "bool", "signature": "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)", "stname": "" @@ -28418,7 +29869,7 @@ "cimguiname": "igSeparator", "defaults": {}, "funcname": "Separator", - "location": "imgui:450", + "location": "imgui:447", "namespace": "ImGui", "ov_cimguiname": "igSeparator", "ret": "void", @@ -28440,7 +29891,7 @@ "cimguiname": "igSeparatorEx", "defaults": {}, "funcname": "SeparatorEx", - "location": "imgui_internal:3014", + "location": "imgui_internal:3362", "namespace": "ImGui", "ov_cimguiname": "igSeparatorEx", "ret": "void", @@ -28466,7 +29917,7 @@ "cimguiname": "igSetActiveID", "defaults": {}, "funcname": "SetActiveID", - "location": "imgui_internal:2729", + "location": "imgui_internal:3025", "namespace": "ImGui", "ov_cimguiname": "igSetActiveID", "ret": "void", @@ -28474,18 +29925,18 @@ "stname": "" } ], - "igSetActiveIdUsingNavAndKeys": [ + "igSetActiveIdUsingAllKeyboardKeys": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igSetActiveIdUsingNavAndKeys", + "cimguiname": "igSetActiveIdUsingAllKeyboardKeys", "defaults": {}, - "funcname": "SetActiveIdUsingNavAndKeys", - "location": "imgui_internal:2826", + "funcname": "SetActiveIdUsingAllKeyboardKeys", + "location": "imgui_internal:3124", "namespace": "ImGui", - "ov_cimguiname": "igSetActiveIdUsingNavAndKeys", + "ov_cimguiname": "igSetActiveIdUsingAllKeyboardKeys", "ret": "void", "signature": "()", "stname": "" @@ -28515,7 +29966,7 @@ "user_data": "NULL" }, "funcname": "SetAllocatorFunctions", - "location": "imgui:970", + "location": "imgui:972", "namespace": "ImGui", "ov_cimguiname": "igSetAllocatorFunctions", "ret": "void", @@ -28537,7 +29988,7 @@ "cimguiname": "igSetClipboardText", "defaults": {}, "funcname": "SetClipboardText", - "location": "imgui:951", + "location": "imgui:953", "namespace": "ImGui", "ov_cimguiname": "igSetClipboardText", "ret": "void", @@ -28559,7 +30010,7 @@ "cimguiname": "igSetColorEditOptions", "defaults": {}, "funcname": "SetColorEditOptions", - "location": "imgui:606", + "location": "imgui:607", "namespace": "ImGui", "ov_cimguiname": "igSetColorEditOptions", "ret": "void", @@ -28585,7 +30036,7 @@ "cimguiname": "igSetColumnOffset", "defaults": {}, "funcname": "SetColumnOffset", - "location": "imgui:793", + "location": "imgui:790", "namespace": "ImGui", "ov_cimguiname": "igSetColumnOffset", "ret": "void", @@ -28611,7 +30062,7 @@ "cimguiname": "igSetColumnWidth", "defaults": {}, "funcname": "SetColumnWidth", - "location": "imgui:791", + "location": "imgui:788", "namespace": "ImGui", "ov_cimguiname": "igSetColumnWidth", "ret": "void", @@ -28633,7 +30084,7 @@ "cimguiname": "igSetCurrentContext", "defaults": {}, "funcname": "SetCurrentContext", - "location": "imgui:304", + "location": "imgui:297", "namespace": "ImGui", "ov_cimguiname": "igSetCurrentContext", "ret": "void", @@ -28655,7 +30106,7 @@ "cimguiname": "igSetCurrentFont", "defaults": {}, "funcname": "SetCurrentFont", - "location": "imgui_internal:2672", + "location": "imgui_internal:2960", "namespace": "ImGui", "ov_cimguiname": "igSetCurrentFont", "ret": "void", @@ -28681,7 +30132,7 @@ "cimguiname": "igSetCurrentViewport", "defaults": {}, "funcname": "SetCurrentViewport", - "location": "imgui_internal:2696", + "location": "imgui_internal:2986", "namespace": "ImGui", "ov_cimguiname": "igSetCurrentViewport", "ret": "void", @@ -28703,7 +30154,7 @@ "cimguiname": "igSetCursorPos", "defaults": {}, "funcname": "SetCursorPos", - "location": "imgui:462", + "location": "imgui:459", "namespace": "ImGui", "ov_cimguiname": "igSetCursorPos", "ret": "void", @@ -28725,7 +30176,7 @@ "cimguiname": "igSetCursorPosX", "defaults": {}, "funcname": "SetCursorPosX", - "location": "imgui:463", + "location": "imgui:460", "namespace": "ImGui", "ov_cimguiname": "igSetCursorPosX", "ret": "void", @@ -28747,7 +30198,7 @@ "cimguiname": "igSetCursorPosY", "defaults": {}, "funcname": "SetCursorPosY", - "location": "imgui:464", + "location": "imgui:461", "namespace": "ImGui", "ov_cimguiname": "igSetCursorPosY", "ret": "void", @@ -28769,7 +30220,7 @@ "cimguiname": "igSetCursorScreenPos", "defaults": {}, "funcname": "SetCursorScreenPos", - "location": "imgui:467", + "location": "imgui:464", "namespace": "ImGui", "ov_cimguiname": "igSetCursorScreenPos", "ret": "void", @@ -28805,7 +30256,7 @@ "cond": "0" }, "funcname": "SetDragDropPayload", - "location": "imgui:841", + "location": "imgui:838", "namespace": "ImGui", "ov_cimguiname": "igSetDragDropPayload", "ret": "bool", @@ -28831,7 +30282,7 @@ "cimguiname": "igSetFocusID", "defaults": {}, "funcname": "SetFocusID", - "location": "imgui_internal:2730", + "location": "imgui_internal:3026", "namespace": "ImGui", "ov_cimguiname": "igSetFocusID", "ret": "void", @@ -28853,7 +30304,7 @@ "cimguiname": "igSetHoveredID", "defaults": {}, "funcname": "SetHoveredID", - "location": "imgui_internal:2733", + "location": "imgui_internal:3029", "namespace": "ImGui", "ov_cimguiname": "igSetHoveredID", "ret": "void", @@ -28870,7 +30321,7 @@ "cimguiname": "igSetItemAllowOverlap", "defaults": {}, "funcname": "SetItemAllowOverlap", - "location": "imgui:884", + "location": "imgui:881", "namespace": "ImGui", "ov_cimguiname": "igSetItemAllowOverlap", "ret": "void", @@ -28887,7 +30338,7 @@ "cimguiname": "igSetItemDefaultFocus", "defaults": {}, "funcname": "SetItemDefaultFocus", - "location": "imgui:862", + "location": "imgui:859", "namespace": "ImGui", "ov_cimguiname": "igSetItemDefaultFocus", "ret": "void", @@ -28895,20 +30346,63 @@ "stname": "" } ], - "igSetItemUsingMouseWheel": [ + "igSetItemKeyOwner": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igSetItemUsingMouseWheel", - "defaults": {}, - "funcname": "SetItemUsingMouseWheel", - "location": "imgui_internal:2825", + "args": "(ImGuiKey key,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiKey key,ImGuiInputFlags flags=0)", + "call_args": "(key,flags)", + "cimguiname": "igSetItemKeyOwner", + "defaults": { + "flags": "0" + }, + "funcname": "SetItemKeyOwner", + "location": "imgui_internal:3140", "namespace": "ImGui", - "ov_cimguiname": "igSetItemUsingMouseWheel", + "ov_cimguiname": "igSetItemKeyOwner", "ret": "void", - "signature": "()", + "signature": "(ImGuiKey,ImGuiInputFlags)", + "stname": "" + } + ], + "igSetKeyOwner": [ + { + "args": "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags=0)", + "call_args": "(key,owner_id,flags)", + "cimguiname": "igSetKeyOwner", + "defaults": { + "flags": "0" + }, + "funcname": "SetKeyOwner", + "location": "imgui_internal:3139", + "namespace": "ImGui", + "ov_cimguiname": "igSetKeyOwner", + "ret": "void", + "signature": "(ImGuiKey,ImGuiID,ImGuiInputFlags)", "stname": "" } ], @@ -28928,7 +30422,7 @@ "offset": "0" }, "funcname": "SetKeyboardFocusHere", - "location": "imgui:863", + "location": "imgui:860", "namespace": "ImGui", "ov_cimguiname": "igSetKeyboardFocusHere", "ret": "void", @@ -28962,7 +30456,7 @@ "cimguiname": "igSetLastItemData", "defaults": {}, "funcname": "SetLastItemData", - "location": "imgui_internal:2745", + "location": "imgui_internal:3041", "namespace": "ImGui", "ov_cimguiname": "igSetLastItemData", "ret": "void", @@ -28984,7 +30478,7 @@ "cimguiname": "igSetMouseCursor", "defaults": {}, "funcname": "SetMouseCursor", - "location": "imgui:945", + "location": "imgui:947", "namespace": "ImGui", "ov_cimguiname": "igSetMouseCursor", "ret": "void", @@ -29018,7 +30512,7 @@ "cimguiname": "igSetNavID", "defaults": {}, "funcname": "SetNavID", - "location": "imgui_internal:2813", + "location": "imgui_internal:3096", "namespace": "ImGui", "ov_cimguiname": "igSetNavID", "ret": "void", @@ -29026,6 +30520,72 @@ "stname": "" } ], + "igSetNavWindow": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igSetNavWindow", + "defaults": {}, + "funcname": "SetNavWindow", + "location": "imgui_internal:3095", + "namespace": "ImGui", + "ov_cimguiname": "igSetNavWindow", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igSetNextFrameWantCaptureKeyboard": [ + { + "args": "(bool want_capture_keyboard)", + "argsT": [ + { + "name": "want_capture_keyboard", + "type": "bool" + } + ], + "argsoriginal": "(bool want_capture_keyboard)", + "call_args": "(want_capture_keyboard)", + "cimguiname": "igSetNextFrameWantCaptureKeyboard", + "defaults": {}, + "funcname": "SetNextFrameWantCaptureKeyboard", + "location": "imgui:927", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextFrameWantCaptureKeyboard", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igSetNextFrameWantCaptureMouse": [ + { + "args": "(bool want_capture_mouse)", + "argsT": [ + { + "name": "want_capture_mouse", + "type": "bool" + } + ], + "argsoriginal": "(bool want_capture_mouse)", + "call_args": "(want_capture_mouse)", + "cimguiname": "igSetNextFrameWantCaptureMouse", + "defaults": {}, + "funcname": "SetNextFrameWantCaptureMouse", + "location": "imgui:948", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextFrameWantCaptureMouse", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], "igSetNextItemOpen": [ { "args": "(bool is_open,ImGuiCond cond)", @@ -29046,7 +30606,7 @@ "cond": "0" }, "funcname": "SetNextItemOpen", - "location": "imgui:626", + "location": "imgui:627", "namespace": "ImGui", "ov_cimguiname": "igSetNextItemOpen", "ret": "void", @@ -29068,7 +30628,7 @@ "cimguiname": "igSetNextItemWidth", "defaults": {}, "funcname": "SetNextItemWidth", - "location": "imgui:428", + "location": "imgui:425", "namespace": "ImGui", "ov_cimguiname": "igSetNextItemWidth", "ret": "void", @@ -29090,7 +30650,7 @@ "cimguiname": "igSetNextWindowBgAlpha", "defaults": {}, "funcname": "SetNextWindowBgAlpha", - "location": "imgui:379", + "location": "imgui:374", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowBgAlpha", "ret": "void", @@ -29112,7 +30672,7 @@ "cimguiname": "igSetNextWindowClass", "defaults": {}, "funcname": "SetNextWindowClass", - "location": "imgui:821", + "location": "imgui:818", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowClass", "ret": "void", @@ -29140,7 +30700,7 @@ "cond": "0" }, "funcname": "SetNextWindowCollapsed", - "location": "imgui:377", + "location": "imgui:371", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowCollapsed", "ret": "void", @@ -29162,7 +30722,7 @@ "cimguiname": "igSetNextWindowContentSize", "defaults": {}, "funcname": "SetNextWindowContentSize", - "location": "imgui:376", + "location": "imgui:370", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowContentSize", "ret": "void", @@ -29190,7 +30750,7 @@ "cond": "0" }, "funcname": "SetNextWindowDockID", - "location": "imgui:820", + "location": "imgui:817", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowDockID", "ret": "void", @@ -29207,7 +30767,7 @@ "cimguiname": "igSetNextWindowFocus", "defaults": {}, "funcname": "SetNextWindowFocus", - "location": "imgui:378", + "location": "imgui:372", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowFocus", "ret": "void", @@ -29240,7 +30800,7 @@ "pivot": "ImVec2(0,0)" }, "funcname": "SetNextWindowPos", - "location": "imgui:373", + "location": "imgui:367", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowPos", "ret": "void", @@ -29262,7 +30822,7 @@ "cimguiname": "igSetNextWindowScroll", "defaults": {}, "funcname": "SetNextWindowScroll", - "location": "imgui_internal:2709", + "location": "imgui:373", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowScroll", "ret": "void", @@ -29290,7 +30850,7 @@ "cond": "0" }, "funcname": "SetNextWindowSize", - "location": "imgui:374", + "location": "imgui:368", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowSize", "ret": "void", @@ -29327,7 +30887,7 @@ "custom_callback_data": "NULL" }, "funcname": "SetNextWindowSizeConstraints", - "location": "imgui:375", + "location": "imgui:369", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowSizeConstraints", "ret": "void", @@ -29349,7 +30909,7 @@ "cimguiname": "igSetNextWindowViewport", "defaults": {}, "funcname": "SetNextWindowViewport", - "location": "imgui:380", + "location": "imgui:375", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowViewport", "ret": "void", @@ -29377,9 +30937,9 @@ "center_x_ratio": "0.5f" }, "funcname": "SetScrollFromPosX", - "location": "imgui:408", + "location": "imgui:405", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollFromPosXFloat", + "ov_cimguiname": "igSetScrollFromPosX_Float", "ret": "void", "signature": "(float,float)", "stname": "" @@ -29405,9 +30965,9 @@ "cimguiname": "igSetScrollFromPosX", "defaults": {}, "funcname": "SetScrollFromPosX", - "location": "imgui_internal:2712", + "location": "imgui_internal:3008", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollFromPosXWindowPtr", + "ov_cimguiname": "igSetScrollFromPosX_WindowPtr", "ret": "void", "signature": "(ImGuiWindow*,float,float)", "stname": "" @@ -29433,9 +30993,9 @@ "center_y_ratio": "0.5f" }, "funcname": "SetScrollFromPosY", - "location": "imgui:409", + "location": "imgui:406", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollFromPosYFloat", + "ov_cimguiname": "igSetScrollFromPosY_Float", "ret": "void", "signature": "(float,float)", "stname": "" @@ -29461,9 +31021,9 @@ "cimguiname": "igSetScrollFromPosY", "defaults": {}, "funcname": "SetScrollFromPosY", - "location": "imgui_internal:2713", + "location": "imgui_internal:3009", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollFromPosYWindowPtr", + "ov_cimguiname": "igSetScrollFromPosY_WindowPtr", "ret": "void", "signature": "(ImGuiWindow*,float,float)", "stname": "" @@ -29485,7 +31045,7 @@ "center_x_ratio": "0.5f" }, "funcname": "SetScrollHereX", - "location": "imgui:406", + "location": "imgui:403", "namespace": "ImGui", "ov_cimguiname": "igSetScrollHereX", "ret": "void", @@ -29509,7 +31069,7 @@ "center_y_ratio": "0.5f" }, "funcname": "SetScrollHereY", - "location": "imgui:407", + "location": "imgui:404", "namespace": "ImGui", "ov_cimguiname": "igSetScrollHereY", "ret": "void", @@ -29531,9 +31091,9 @@ "cimguiname": "igSetScrollX", "defaults": {}, "funcname": "SetScrollX", - "location": "imgui:402", + "location": "imgui:399", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollXFloat", + "ov_cimguiname": "igSetScrollX_Float", "ret": "void", "signature": "(float)", "stname": "" @@ -29555,9 +31115,9 @@ "cimguiname": "igSetScrollX", "defaults": {}, "funcname": "SetScrollX", - "location": "imgui_internal:2710", + "location": "imgui_internal:3006", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollXWindowPtr", + "ov_cimguiname": "igSetScrollX_WindowPtr", "ret": "void", "signature": "(ImGuiWindow*,float)", "stname": "" @@ -29577,9 +31137,9 @@ "cimguiname": "igSetScrollY", "defaults": {}, "funcname": "SetScrollY", - "location": "imgui:403", + "location": "imgui:400", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollYFloat", + "ov_cimguiname": "igSetScrollY_Float", "ret": "void", "signature": "(float)", "stname": "" @@ -29601,14 +31161,47 @@ "cimguiname": "igSetScrollY", "defaults": {}, "funcname": "SetScrollY", - "location": "imgui_internal:2711", + "location": "imgui_internal:3007", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollYWindowPtr", + "ov_cimguiname": "igSetScrollY_WindowPtr", "ret": "void", "signature": "(ImGuiWindow*,float)", "stname": "" } ], + "igSetShortcutRouting": [ + { + "args": "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "key_chord", + "type": "ImGuiKeyChord" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiKeyChord key_chord,ImGuiID owner_id=0,ImGuiInputFlags flags=0)", + "call_args": "(key_chord,owner_id,flags)", + "cimguiname": "igSetShortcutRouting", + "defaults": { + "flags": "0", + "owner_id": "0" + }, + "funcname": "SetShortcutRouting", + "location": "imgui_internal:3168", + "namespace": "ImGui", + "ov_cimguiname": "igSetShortcutRouting", + "ret": "bool", + "signature": "(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)", + "stname": "" + } + ], "igSetStateStorage": [ { "args": "(ImGuiStorage* storage)", @@ -29623,7 +31216,7 @@ "cimguiname": "igSetStateStorage", "defaults": {}, "funcname": "SetStateStorage", - "location": "imgui:903", + "location": "imgui:902", "namespace": "ImGui", "ov_cimguiname": "igSetStateStorage", "ret": "void", @@ -29645,7 +31238,7 @@ "cimguiname": "igSetTabItemClosed", "defaults": {}, "funcname": "SetTabItemClosed", - "location": "imgui:803", + "location": "imgui:800", "namespace": "ImGui", "ov_cimguiname": "igSetTabItemClosed", "ret": "void", @@ -29672,7 +31265,7 @@ "defaults": {}, "funcname": "SetTooltip", "isvararg": "...)", - "location": "imgui:677", + "location": "imgui:678", "namespace": "ImGui", "ov_cimguiname": "igSetTooltip", "ret": "void", @@ -29698,7 +31291,7 @@ "cimguiname": "igSetTooltipV", "defaults": {}, "funcname": "SetTooltipV", - "location": "imgui:678", + "location": "imgui:679", "namespace": "ImGui", "ov_cimguiname": "igSetTooltipV", "ret": "void", @@ -29724,7 +31317,7 @@ "cimguiname": "igSetWindowClipRectBeforeSetChannel", "defaults": {}, "funcname": "SetWindowClipRectBeforeSetChannel", - "location": "imgui_internal:2893", + "location": "imgui_internal:3244", "namespace": "ImGui", "ov_cimguiname": "igSetWindowClipRectBeforeSetChannel", "ret": "void", @@ -29752,9 +31345,9 @@ "cond": "0" }, "funcname": "SetWindowCollapsed", - "location": "imgui:383", + "location": "imgui:378", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowCollapsedBool", + "ov_cimguiname": "igSetWindowCollapsed_Bool", "ret": "void", "signature": "(bool,ImGuiCond)", "stname": "" @@ -29782,9 +31375,9 @@ "cond": "0" }, "funcname": "SetWindowCollapsed", - "location": "imgui:388", + "location": "imgui:383", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowCollapsedStr", + "ov_cimguiname": "igSetWindowCollapsed_Str", "ret": "void", "signature": "(const char*,bool,ImGuiCond)", "stname": "" @@ -29812,9 +31405,9 @@ "cond": "0" }, "funcname": "SetWindowCollapsed", - "location": "imgui_internal:2656", + "location": "imgui_internal:2944", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowCollapsedWindowPtr", + "ov_cimguiname": "igSetWindowCollapsed_WindowPtr", "ret": "void", "signature": "(ImGuiWindow*,bool,ImGuiCond)", "stname": "" @@ -29842,7 +31435,7 @@ "cimguiname": "igSetWindowDock", "defaults": {}, "funcname": "SetWindowDock", - "location": "imgui_internal:2861", + "location": "imgui_internal:3198", "namespace": "ImGui", "ov_cimguiname": "igSetWindowDock", "ret": "void", @@ -29859,9 +31452,9 @@ "cimguiname": "igSetWindowFocus", "defaults": {}, "funcname": "SetWindowFocus", - "location": "imgui:384", + "location": "imgui:379", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowFocusNil", + "ov_cimguiname": "igSetWindowFocus_Nil", "ret": "void", "signature": "()", "stname": "" @@ -29879,9 +31472,9 @@ "cimguiname": "igSetWindowFocus", "defaults": {}, "funcname": "SetWindowFocus", - "location": "imgui:389", + "location": "imgui:384", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowFocusStr", + "ov_cimguiname": "igSetWindowFocus_Str", "ret": "void", "signature": "(const char*)", "stname": "" @@ -29901,7 +31494,7 @@ "cimguiname": "igSetWindowFontScale", "defaults": {}, "funcname": "SetWindowFontScale", - "location": "imgui:385", + "location": "imgui:380", "namespace": "ImGui", "ov_cimguiname": "igSetWindowFontScale", "ret": "void", @@ -29931,7 +31524,7 @@ "cimguiname": "igSetWindowHitTestHole", "defaults": {}, "funcname": "SetWindowHitTestHole", - "location": "imgui_internal:2657", + "location": "imgui_internal:2945", "namespace": "ImGui", "ov_cimguiname": "igSetWindowHitTestHole", "ret": "void", @@ -29959,9 +31552,9 @@ "cond": "0" }, "funcname": "SetWindowPos", - "location": "imgui:381", + "location": "imgui:376", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowPosVec2", + "ov_cimguiname": "igSetWindowPos_Vec2", "ret": "void", "signature": "(const ImVec2,ImGuiCond)", "stname": "" @@ -29989,9 +31582,9 @@ "cond": "0" }, "funcname": "SetWindowPos", - "location": "imgui:386", + "location": "imgui:381", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowPosStr", + "ov_cimguiname": "igSetWindowPos_Str", "ret": "void", "signature": "(const char*,const ImVec2,ImGuiCond)", "stname": "" @@ -30019,9 +31612,9 @@ "cond": "0" }, "funcname": "SetWindowPos", - "location": "imgui_internal:2654", + "location": "imgui_internal:2942", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowPosWindowPtr", + "ov_cimguiname": "igSetWindowPos_WindowPtr", "ret": "void", "signature": "(ImGuiWindow*,const ImVec2,ImGuiCond)", "stname": "" @@ -30047,9 +31640,9 @@ "cond": "0" }, "funcname": "SetWindowSize", - "location": "imgui:382", + "location": "imgui:377", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowSizeVec2", + "ov_cimguiname": "igSetWindowSize_Vec2", "ret": "void", "signature": "(const ImVec2,ImGuiCond)", "stname": "" @@ -30077,9 +31670,9 @@ "cond": "0" }, "funcname": "SetWindowSize", - "location": "imgui:387", + "location": "imgui:382", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowSizeStr", + "ov_cimguiname": "igSetWindowSize_Str", "ret": "void", "signature": "(const char*,const ImVec2,ImGuiCond)", "stname": "" @@ -30107,14 +31700,40 @@ "cond": "0" }, "funcname": "SetWindowSize", - "location": "imgui_internal:2655", + "location": "imgui_internal:2943", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowSizeWindowPtr", + "ov_cimguiname": "igSetWindowSize_WindowPtr", "ret": "void", "signature": "(ImGuiWindow*,const ImVec2,ImGuiCond)", "stname": "" } ], + "igSetWindowViewport": [ + { + "args": "(ImGuiWindow* window,ImGuiViewportP* viewport)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "viewport", + "type": "ImGuiViewportP*" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiViewportP* viewport)", + "call_args": "(window,viewport)", + "cimguiname": "igSetWindowViewport", + "defaults": {}, + "funcname": "SetWindowViewport", + "location": "imgui_internal:2985", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowViewport", + "ret": "void", + "signature": "(ImGuiWindow*,ImGuiViewportP*)", + "stname": "" + } + ], "igShadeVertsLinearColorGradientKeepAlpha": [ { "args": "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1)", @@ -30153,7 +31772,7 @@ "cimguiname": "igShadeVertsLinearColorGradientKeepAlpha", "defaults": {}, "funcname": "ShadeVertsLinearColorGradientKeepAlpha", - "location": "imgui_internal:3061", + "location": "imgui_internal:3410", "namespace": "ImGui", "ov_cimguiname": "igShadeVertsLinearColorGradientKeepAlpha", "ret": "void", @@ -30203,7 +31822,7 @@ "cimguiname": "igShadeVertsLinearUV", "defaults": {}, "funcname": "ShadeVertsLinearUV", - "location": "imgui_internal:3062", + "location": "imgui_internal:3411", "namespace": "ImGui", "ov_cimguiname": "igShadeVertsLinearUV", "ret": "void", @@ -30211,6 +31830,39 @@ "stname": "" } ], + "igShortcut": [ + { + "args": "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "key_chord", + "type": "ImGuiKeyChord" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiKeyChord key_chord,ImGuiID owner_id=0,ImGuiInputFlags flags=0)", + "call_args": "(key_chord,owner_id,flags)", + "cimguiname": "igShortcut", + "defaults": { + "flags": "0", + "owner_id": "0" + }, + "funcname": "Shortcut", + "location": "imgui_internal:3167", + "namespace": "ImGui", + "ov_cimguiname": "igShortcut", + "ret": "bool", + "signature": "(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)", + "stname": "" + } + ], "igShowAboutWindow": [ { "args": "(bool* p_open)", @@ -30227,7 +31879,7 @@ "p_open": "NULL" }, "funcname": "ShowAboutWindow", - "location": "imgui:318", + "location": "imgui:312", "namespace": "ImGui", "ov_cimguiname": "igShowAboutWindow", "ret": "void", @@ -30235,6 +31887,30 @@ "stname": "" } ], + "igShowDebugLogWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowDebugLogWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowDebugLogWindow", + "location": "imgui:310", + "namespace": "ImGui", + "ov_cimguiname": "igShowDebugLogWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], "igShowDemoWindow": [ { "args": "(bool* p_open)", @@ -30251,7 +31927,7 @@ "p_open": "NULL" }, "funcname": "ShowDemoWindow", - "location": "imgui:315", + "location": "imgui:308", "namespace": "ImGui", "ov_cimguiname": "igShowDemoWindow", "ret": "void", @@ -30273,7 +31949,7 @@ "cimguiname": "igShowFontAtlas", "defaults": {}, "funcname": "ShowFontAtlas", - "location": "imgui_internal:3075", + "location": "imgui_internal:3431", "namespace": "ImGui", "ov_cimguiname": "igShowFontAtlas", "ret": "void", @@ -30295,7 +31971,7 @@ "cimguiname": "igShowFontSelector", "defaults": {}, "funcname": "ShowFontSelector", - "location": "imgui:321", + "location": "imgui:315", "namespace": "ImGui", "ov_cimguiname": "igShowFontSelector", "ret": "void", @@ -30319,7 +31995,7 @@ "p_open": "NULL" }, "funcname": "ShowMetricsWindow", - "location": "imgui:316", + "location": "imgui:309", "namespace": "ImGui", "ov_cimguiname": "igShowMetricsWindow", "ret": "void", @@ -30343,7 +32019,7 @@ "p_open": "NULL" }, "funcname": "ShowStackToolWindow", - "location": "imgui:317", + "location": "imgui:311", "namespace": "ImGui", "ov_cimguiname": "igShowStackToolWindow", "ret": "void", @@ -30367,7 +32043,7 @@ "ref": "NULL" }, "funcname": "ShowStyleEditor", - "location": "imgui:319", + "location": "imgui:313", "namespace": "ImGui", "ov_cimguiname": "igShowStyleEditor", "ret": "void", @@ -30389,7 +32065,7 @@ "cimguiname": "igShowStyleSelector", "defaults": {}, "funcname": "ShowStyleSelector", - "location": "imgui:320", + "location": "imgui:314", "namespace": "ImGui", "ov_cimguiname": "igShowStyleSelector", "ret": "bool", @@ -30406,7 +32082,7 @@ "cimguiname": "igShowUserGuide", "defaults": {}, "funcname": "ShowUserGuide", - "location": "imgui:322", + "location": "imgui:316", "namespace": "ImGui", "ov_cimguiname": "igShowUserGuide", "ret": "void", @@ -30436,7 +32112,7 @@ "cimguiname": "igShrinkWidths", "defaults": {}, "funcname": "ShrinkWidths", - "location": "imgui_internal:2751", + "location": "imgui_internal:3047", "namespace": "ImGui", "ov_cimguiname": "igShrinkWidths", "ret": "void", @@ -30446,23 +32122,18 @@ ], "igShutdown": [ { - "args": "(ImGuiContext* context)", - "argsT": [ - { - "name": "context", - "type": "ImGuiContext*" - } - ], - "argsoriginal": "(ImGuiContext* context)", - "call_args": "(context)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", "cimguiname": "igShutdown", "defaults": {}, "funcname": "Shutdown", - "location": "imgui_internal:2678", + "location": "imgui_internal:2966", "namespace": "ImGui", "ov_cimguiname": "igShutdown", "ret": "void", - "signature": "(ImGuiContext*)", + "signature": "()", "stname": "" } ], @@ -30505,7 +32176,7 @@ "v_degrees_min": "-360.0f" }, "funcname": "SliderAngle", - "location": "imgui:569", + "location": "imgui:570", "namespace": "ImGui", "ov_cimguiname": "igSliderAngle", "ret": "bool", @@ -30559,7 +32230,7 @@ "cimguiname": "igSliderBehavior", "defaults": {}, "funcname": "SliderBehavior", - "location": "imgui_internal:3021", + "location": "imgui_internal:3369", "namespace": "ImGui", "ov_cimguiname": "igSliderBehavior", "ret": "bool", @@ -30604,7 +32275,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat", - "location": "imgui:565", + "location": "imgui:566", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat", "ret": "bool", @@ -30649,7 +32320,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat2", - "location": "imgui:566", + "location": "imgui:567", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat2", "ret": "bool", @@ -30694,7 +32365,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat3", - "location": "imgui:567", + "location": "imgui:568", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat3", "ret": "bool", @@ -30739,7 +32410,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat4", - "location": "imgui:568", + "location": "imgui:569", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat4", "ret": "bool", @@ -30784,7 +32455,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt", - "location": "imgui:570", + "location": "imgui:571", "namespace": "ImGui", "ov_cimguiname": "igSliderInt", "ret": "bool", @@ -30829,7 +32500,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt2", - "location": "imgui:571", + "location": "imgui:572", "namespace": "ImGui", "ov_cimguiname": "igSliderInt2", "ret": "bool", @@ -30874,7 +32545,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt3", - "location": "imgui:572", + "location": "imgui:573", "namespace": "ImGui", "ov_cimguiname": "igSliderInt3", "ret": "bool", @@ -30919,7 +32590,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt4", - "location": "imgui:573", + "location": "imgui:574", "namespace": "ImGui", "ov_cimguiname": "igSliderInt4", "ret": "bool", @@ -30968,7 +32639,7 @@ "format": "NULL" }, "funcname": "SliderScalar", - "location": "imgui:574", + "location": "imgui:575", "namespace": "ImGui", "ov_cimguiname": "igSliderScalar", "ret": "bool", @@ -31021,7 +32692,7 @@ "format": "NULL" }, "funcname": "SliderScalarN", - "location": "imgui:575", + "location": "imgui:576", "namespace": "ImGui", "ov_cimguiname": "igSliderScalarN", "ret": "bool", @@ -31043,7 +32714,7 @@ "cimguiname": "igSmallButton", "defaults": {}, "funcname": "SmallButton", - "location": "imgui:513", + "location": "imgui:510", "namespace": "ImGui", "ov_cimguiname": "igSmallButton", "ret": "bool", @@ -31060,7 +32731,7 @@ "cimguiname": "igSpacing", "defaults": {}, "funcname": "Spacing", - "location": "imgui:453", + "location": "imgui:450", "namespace": "ImGui", "ov_cimguiname": "igSpacing", "ret": "void", @@ -31122,7 +32793,7 @@ "hover_visibility_delay": "0.0f" }, "funcname": "SplitterBehavior", - "location": "imgui_internal:3022", + "location": "imgui_internal:3370", "namespace": "ImGui", "ov_cimguiname": "igSplitterBehavior", "ret": "bool", @@ -31144,7 +32815,7 @@ "cimguiname": "igStartMouseMovingWindow", "defaults": {}, "funcname": "StartMouseMovingWindow", - "location": "imgui_internal:2682", + "location": "imgui_internal:2971", "namespace": "ImGui", "ov_cimguiname": "igStartMouseMovingWindow", "ret": "void", @@ -31174,7 +32845,7 @@ "cimguiname": "igStartMouseMovingWindowOrNode", "defaults": {}, "funcname": "StartMouseMovingWindowOrNode", - "location": "imgui_internal:2683", + "location": "imgui_internal:2972", "namespace": "ImGui", "ov_cimguiname": "igStartMouseMovingWindowOrNode", "ret": "void", @@ -31198,7 +32869,7 @@ "dst": "NULL" }, "funcname": "StyleColorsClassic", - "location": "imgui:328", + "location": "imgui:322", "namespace": "ImGui", "ov_cimguiname": "igStyleColorsClassic", "ret": "void", @@ -31222,7 +32893,7 @@ "dst": "NULL" }, "funcname": "StyleColorsDark", - "location": "imgui:326", + "location": "imgui:320", "namespace": "ImGui", "ov_cimguiname": "igStyleColorsDark", "ret": "void", @@ -31246,7 +32917,7 @@ "dst": "NULL" }, "funcname": "StyleColorsLight", - "location": "imgui:327", + "location": "imgui:321", "namespace": "ImGui", "ov_cimguiname": "igStyleColorsLight", "ret": "void", @@ -31276,7 +32947,7 @@ "cimguiname": "igTabBarAddTab", "defaults": {}, "funcname": "TabBarAddTab", - "location": "imgui_internal:2959", + "location": "imgui_internal:3312", "namespace": "ImGui", "ov_cimguiname": "igTabBarAddTab", "ret": "void", @@ -31302,7 +32973,7 @@ "cimguiname": "igTabBarCloseTab", "defaults": {}, "funcname": "TabBarCloseTab", - "location": "imgui_internal:2961", + "location": "imgui_internal:3314", "namespace": "ImGui", "ov_cimguiname": "igTabBarCloseTab", "ret": "void", @@ -31324,7 +32995,7 @@ "cimguiname": "igTabBarFindMostRecentlySelectedTabForActiveWindow", "defaults": {}, "funcname": "TabBarFindMostRecentlySelectedTabForActiveWindow", - "location": "imgui_internal:2958", + "location": "imgui_internal:3311", "namespace": "ImGui", "ov_cimguiname": "igTabBarFindMostRecentlySelectedTabForActiveWindow", "ret": "ImGuiTabItem*", @@ -31350,7 +33021,7 @@ "cimguiname": "igTabBarFindTabByID", "defaults": {}, "funcname": "TabBarFindTabByID", - "location": "imgui_internal:2957", + "location": "imgui_internal:3310", "namespace": "ImGui", "ov_cimguiname": "igTabBarFindTabByID", "ret": "ImGuiTabItem*", @@ -31372,7 +33043,7 @@ "cimguiname": "igTabBarProcessReorder", "defaults": {}, "funcname": "TabBarProcessReorder", - "location": "imgui_internal:2964", + "location": "imgui_internal:3317", "namespace": "ImGui", "ov_cimguiname": "igTabBarProcessReorder", "ret": "bool", @@ -31402,7 +33073,7 @@ "cimguiname": "igTabBarQueueReorder", "defaults": {}, "funcname": "TabBarQueueReorder", - "location": "imgui_internal:2962", + "location": "imgui_internal:3315", "namespace": "ImGui", "ov_cimguiname": "igTabBarQueueReorder", "ret": "void", @@ -31432,7 +33103,7 @@ "cimguiname": "igTabBarQueueReorderFromMousePos", "defaults": {}, "funcname": "TabBarQueueReorderFromMousePos", - "location": "imgui_internal:2963", + "location": "imgui_internal:3316", "namespace": "ImGui", "ov_cimguiname": "igTabBarQueueReorderFromMousePos", "ret": "void", @@ -31458,7 +33129,7 @@ "cimguiname": "igTabBarRemoveTab", "defaults": {}, "funcname": "TabBarRemoveTab", - "location": "imgui_internal:2960", + "location": "imgui_internal:3313", "namespace": "ImGui", "ov_cimguiname": "igTabBarRemoveTab", "ret": "void", @@ -31492,7 +33163,7 @@ "cimguiname": "igTabItemBackground", "defaults": {}, "funcname": "TabItemBackground", - "location": "imgui_internal:2967", + "location": "imgui_internal:3321", "namespace": "ImGui", "ov_cimguiname": "igTabItemBackground", "ret": "void", @@ -31520,7 +33191,7 @@ "flags": "0" }, "funcname": "TabItemButton", - "location": "imgui:802", + "location": "imgui:799", "namespace": "ImGui", "ov_cimguiname": "igTabItemButton", "ret": "bool", @@ -31530,7 +33201,7 @@ ], "igTabItemCalcSize": [ { - "args": "(ImVec2 *pOut,const char* label,bool has_close_button)", + "args": "(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker)", "argsT": [ { "name": "pOut", @@ -31541,22 +33212,47 @@ "type": "const char*" }, { - "name": "has_close_button", + "name": "has_close_button_or_unsaved_marker", "type": "bool" } ], - "argsoriginal": "(const char* label,bool has_close_button)", - "call_args": "(label,has_close_button)", + "argsoriginal": "(const char* label,bool has_close_button_or_unsaved_marker)", + "call_args": "(label,has_close_button_or_unsaved_marker)", "cimguiname": "igTabItemCalcSize", "defaults": {}, "funcname": "TabItemCalcSize", - "location": "imgui_internal:2966", + "location": "imgui_internal:3319", "namespace": "ImGui", "nonUDT": 1, - "ov_cimguiname": "igTabItemCalcSize", + "ov_cimguiname": "igTabItemCalcSize_Str", "ret": "void", "signature": "(const char*,bool)", "stname": "" + }, + { + "args": "(ImVec2 *pOut,ImGuiWindow* window)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igTabItemCalcSize", + "defaults": {}, + "funcname": "TabItemCalcSize", + "location": "imgui_internal:3320", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igTabItemCalcSize_WindowPtr", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" } ], "igTabItemEx": [ @@ -31589,7 +33285,7 @@ "cimguiname": "igTabItemEx", "defaults": {}, "funcname": "TabItemEx", - "location": "imgui_internal:2965", + "location": "imgui_internal:3318", "namespace": "ImGui", "ov_cimguiname": "igTabItemEx", "ret": "bool", @@ -31647,7 +33343,7 @@ "cimguiname": "igTabItemLabelAndCloseButton", "defaults": {}, "funcname": "TabItemLabelAndCloseButton", - "location": "imgui_internal:2968", + "location": "imgui_internal:3322", "namespace": "ImGui", "ov_cimguiname": "igTabItemLabelAndCloseButton", "ret": "void", @@ -31669,7 +33365,7 @@ "cimguiname": "igTableBeginApplyRequests", "defaults": {}, "funcname": "TableBeginApplyRequests", - "location": "imgui_internal:2918", + "location": "imgui_internal:3269", "namespace": "ImGui", "ov_cimguiname": "igTableBeginApplyRequests", "ret": "void", @@ -31695,7 +33391,7 @@ "cimguiname": "igTableBeginCell", "defaults": {}, "funcname": "TableBeginCell", - "location": "imgui_internal:2933", + "location": "imgui_internal:3286", "namespace": "ImGui", "ov_cimguiname": "igTableBeginCell", "ret": "void", @@ -31703,6 +33399,28 @@ "stname": "" } ], + "igTableBeginContextMenuPopup": [ + { + "args": "(ImGuiTable* table)", + "argsT": [ + { + "name": "table", + "type": "ImGuiTable*" + } + ], + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableBeginContextMenuPopup", + "defaults": {}, + "funcname": "TableBeginContextMenuPopup", + "location": "imgui_internal:3276", + "namespace": "ImGui", + "ov_cimguiname": "igTableBeginContextMenuPopup", + "ret": "bool", + "signature": "(ImGuiTable*)", + "stname": "" + } + ], "igTableBeginInitMemory": [ { "args": "(ImGuiTable* table,int columns_count)", @@ -31721,7 +33439,7 @@ "cimguiname": "igTableBeginInitMemory", "defaults": {}, "funcname": "TableBeginInitMemory", - "location": "imgui_internal:2917", + "location": "imgui_internal:3268", "namespace": "ImGui", "ov_cimguiname": "igTableBeginInitMemory", "ret": "void", @@ -31743,7 +33461,7 @@ "cimguiname": "igTableBeginRow", "defaults": {}, "funcname": "TableBeginRow", - "location": "imgui_internal:2931", + "location": "imgui_internal:3284", "namespace": "ImGui", "ov_cimguiname": "igTableBeginRow", "ret": "void", @@ -31765,7 +33483,7 @@ "cimguiname": "igTableDrawBorders", "defaults": {}, "funcname": "TableDrawBorders", - "location": "imgui_internal:2923", + "location": "imgui_internal:3274", "namespace": "ImGui", "ov_cimguiname": "igTableDrawBorders", "ret": "void", @@ -31787,7 +33505,7 @@ "cimguiname": "igTableDrawContextMenu", "defaults": {}, "funcname": "TableDrawContextMenu", - "location": "imgui_internal:2924", + "location": "imgui_internal:3275", "namespace": "ImGui", "ov_cimguiname": "igTableDrawContextMenu", "ret": "void", @@ -31809,7 +33527,7 @@ "cimguiname": "igTableEndCell", "defaults": {}, "funcname": "TableEndCell", - "location": "imgui_internal:2934", + "location": "imgui_internal:3287", "namespace": "ImGui", "ov_cimguiname": "igTableEndCell", "ret": "void", @@ -31831,7 +33549,7 @@ "cimguiname": "igTableEndRow", "defaults": {}, "funcname": "TableEndRow", - "location": "imgui_internal:2932", + "location": "imgui_internal:3285", "namespace": "ImGui", "ov_cimguiname": "igTableEndRow", "ret": "void", @@ -31853,7 +33571,7 @@ "cimguiname": "igTableFindByID", "defaults": {}, "funcname": "TableFindByID", - "location": "imgui_internal:2915", + "location": "imgui_internal:3266", "namespace": "ImGui", "ov_cimguiname": "igTableFindByID", "ret": "ImGuiTable*", @@ -31879,7 +33597,7 @@ "cimguiname": "igTableFixColumnSortDirection", "defaults": {}, "funcname": "TableFixColumnSortDirection", - "location": "imgui_internal:2929", + "location": "imgui_internal:3282", "namespace": "ImGui", "ov_cimguiname": "igTableFixColumnSortDirection", "ret": "void", @@ -31896,7 +33614,7 @@ "cimguiname": "igTableGcCompactSettings", "defaults": {}, "funcname": "TableGcCompactSettings", - "location": "imgui_internal:2944", + "location": "imgui_internal:3297", "namespace": "ImGui", "ov_cimguiname": "igTableGcCompactSettings", "ret": "void", @@ -31918,9 +33636,9 @@ "cimguiname": "igTableGcCompactTransientBuffers", "defaults": {}, "funcname": "TableGcCompactTransientBuffers", - "location": "imgui_internal:2942", + "location": "imgui_internal:3295", "namespace": "ImGui", - "ov_cimguiname": "igTableGcCompactTransientBuffersTablePtr", + "ov_cimguiname": "igTableGcCompactTransientBuffers_TablePtr", "ret": "void", "signature": "(ImGuiTable*)", "stname": "" @@ -31938,9 +33656,9 @@ "cimguiname": "igTableGcCompactTransientBuffers", "defaults": {}, "funcname": "TableGcCompactTransientBuffers", - "location": "imgui_internal:2943", + "location": "imgui_internal:3296", "namespace": "ImGui", - "ov_cimguiname": "igTableGcCompactTransientBuffersTableTempDataPtr", + "ov_cimguiname": "igTableGcCompactTransientBuffers_TableTempDataPtr", "ret": "void", "signature": "(ImGuiTableTempData*)", "stname": "" @@ -31960,7 +33678,7 @@ "cimguiname": "igTableGetBoundSettings", "defaults": {}, "funcname": "TableGetBoundSettings", - "location": "imgui_internal:2950", + "location": "imgui_internal:3303", "namespace": "ImGui", "ov_cimguiname": "igTableGetBoundSettings", "ret": "ImGuiTableSettings*", @@ -31990,7 +33708,7 @@ "cimguiname": "igTableGetCellBgRect", "defaults": {}, "funcname": "TableGetCellBgRect", - "location": "imgui_internal:2935", + "location": "imgui_internal:3288", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igTableGetCellBgRect", @@ -32008,7 +33726,7 @@ "cimguiname": "igTableGetColumnCount", "defaults": {}, "funcname": "TableGetColumnCount", - "location": "imgui:777", + "location": "imgui:774", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnCount", "ret": "int", @@ -32032,7 +33750,7 @@ "column_n": "-1" }, "funcname": "TableGetColumnFlags", - "location": "imgui:781", + "location": "imgui:778", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnFlags", "ret": "ImGuiTableColumnFlags", @@ -32049,7 +33767,7 @@ "cimguiname": "igTableGetColumnIndex", "defaults": {}, "funcname": "TableGetColumnIndex", - "location": "imgui:778", + "location": "imgui:775", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnIndex", "ret": "int", @@ -32073,9 +33791,9 @@ "column_n": "-1" }, "funcname": "TableGetColumnName", - "location": "imgui:780", + "location": "imgui:777", "namespace": "ImGui", - "ov_cimguiname": "igTableGetColumnNameInt", + "ov_cimguiname": "igTableGetColumnName_Int", "ret": "const char*", "signature": "(int)", "stname": "" @@ -32097,9 +33815,9 @@ "cimguiname": "igTableGetColumnName", "defaults": {}, "funcname": "TableGetColumnName", - "location": "imgui_internal:2936", + "location": "imgui_internal:3289", "namespace": "ImGui", - "ov_cimguiname": "igTableGetColumnNameTablePtr", + "ov_cimguiname": "igTableGetColumnName_TablePtr", "ret": "const char*", "signature": "(const ImGuiTable*,int)", "stname": "" @@ -32119,7 +33837,7 @@ "cimguiname": "igTableGetColumnNextSortDirection", "defaults": {}, "funcname": "TableGetColumnNextSortDirection", - "location": "imgui_internal:2928", + "location": "imgui_internal:3281", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnNextSortDirection", "ret": "ImGuiSortDirection", @@ -32151,7 +33869,7 @@ "instance_no": "0" }, "funcname": "TableGetColumnResizeID", - "location": "imgui_internal:2937", + "location": "imgui_internal:3290", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnResizeID", "ret": "ImGuiID", @@ -32177,7 +33895,7 @@ "cimguiname": "igTableGetColumnWidthAuto", "defaults": {}, "funcname": "TableGetColumnWidthAuto", - "location": "imgui_internal:2930", + "location": "imgui_internal:3283", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnWidthAuto", "ret": "float", @@ -32194,7 +33912,7 @@ "cimguiname": "igTableGetHeaderRowHeight", "defaults": {}, "funcname": "TableGetHeaderRowHeight", - "location": "imgui_internal:2909", + "location": "imgui_internal:3260", "namespace": "ImGui", "ov_cimguiname": "igTableGetHeaderRowHeight", "ret": "float", @@ -32211,7 +33929,7 @@ "cimguiname": "igTableGetHoveredColumn", "defaults": {}, "funcname": "TableGetHoveredColumn", - "location": "imgui_internal:2908", + "location": "imgui_internal:3259", "namespace": "ImGui", "ov_cimguiname": "igTableGetHoveredColumn", "ret": "int", @@ -32219,6 +33937,32 @@ "stname": "" } ], + "igTableGetInstanceData": [ + { + "args": "(ImGuiTable* table,int instance_no)", + "argsT": [ + { + "name": "table", + "type": "ImGuiTable*" + }, + { + "name": "instance_no", + "type": "int" + } + ], + "argsoriginal": "(ImGuiTable* table,int instance_no)", + "call_args": "(table,instance_no)", + "cimguiname": "igTableGetInstanceData", + "defaults": {}, + "funcname": "TableGetInstanceData", + "location": "imgui_internal:3278", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetInstanceData", + "ret": "ImGuiTableInstanceData*", + "signature": "(ImGuiTable*,int)", + "stname": "" + } + ], "igTableGetMaxColumnWidth": [ { "args": "(const ImGuiTable* table,int column_n)", @@ -32237,7 +33981,7 @@ "cimguiname": "igTableGetMaxColumnWidth", "defaults": {}, "funcname": "TableGetMaxColumnWidth", - "location": "imgui_internal:2938", + "location": "imgui_internal:3291", "namespace": "ImGui", "ov_cimguiname": "igTableGetMaxColumnWidth", "ret": "float", @@ -32254,7 +33998,7 @@ "cimguiname": "igTableGetRowIndex", "defaults": {}, "funcname": "TableGetRowIndex", - "location": "imgui:779", + "location": "imgui:776", "namespace": "ImGui", "ov_cimguiname": "igTableGetRowIndex", "ret": "int", @@ -32332,7 +34076,7 @@ "cimguiname": "igTableLoadSettings", "defaults": {}, "funcname": "TableLoadSettings", - "location": "imgui_internal:2947", + "location": "imgui_internal:3300", "namespace": "ImGui", "ov_cimguiname": "igTableLoadSettings", "ret": "void", @@ -32354,7 +34098,7 @@ "cimguiname": "igTableMergeDrawChannels", "defaults": {}, "funcname": "TableMergeDrawChannels", - "location": "imgui_internal:2925", + "location": "imgui_internal:3277", "namespace": "ImGui", "ov_cimguiname": "igTableMergeDrawChannels", "ret": "void", @@ -32424,7 +34168,7 @@ "column_n": "-1" }, "funcname": "TableOpenContextMenu", - "location": "imgui_internal:2905", + "location": "imgui_internal:3256", "namespace": "ImGui", "ov_cimguiname": "igTableOpenContextMenu", "ret": "void", @@ -32441,7 +34185,7 @@ "cimguiname": "igTablePopBackgroundChannel", "defaults": {}, "funcname": "TablePopBackgroundChannel", - "location": "imgui_internal:2911", + "location": "imgui_internal:3262", "namespace": "ImGui", "ov_cimguiname": "igTablePopBackgroundChannel", "ret": "void", @@ -32458,7 +34202,7 @@ "cimguiname": "igTablePushBackgroundChannel", "defaults": {}, "funcname": "TablePushBackgroundChannel", - "location": "imgui_internal:2910", + "location": "imgui_internal:3261", "namespace": "ImGui", "ov_cimguiname": "igTablePushBackgroundChannel", "ret": "void", @@ -32480,7 +34224,7 @@ "cimguiname": "igTableRemove", "defaults": {}, "funcname": "TableRemove", - "location": "imgui_internal:2941", + "location": "imgui_internal:3294", "namespace": "ImGui", "ov_cimguiname": "igTableRemove", "ret": "void", @@ -32502,7 +34246,7 @@ "cimguiname": "igTableResetSettings", "defaults": {}, "funcname": "TableResetSettings", - "location": "imgui_internal:2949", + "location": "imgui_internal:3302", "namespace": "ImGui", "ov_cimguiname": "igTableResetSettings", "ret": "void", @@ -32524,7 +34268,7 @@ "cimguiname": "igTableSaveSettings", "defaults": {}, "funcname": "TableSaveSettings", - "location": "imgui_internal:2948", + "location": "imgui_internal:3301", "namespace": "ImGui", "ov_cimguiname": "igTableSaveSettings", "ret": "void", @@ -32556,7 +34300,7 @@ "column_n": "-1" }, "funcname": "TableSetBgColor", - "location": "imgui:783", + "location": "imgui:780", "namespace": "ImGui", "ov_cimguiname": "igTableSetBgColor", "ret": "void", @@ -32582,7 +34326,7 @@ "cimguiname": "igTableSetColumnEnabled", "defaults": {}, "funcname": "TableSetColumnEnabled", - "location": "imgui:782", + "location": "imgui:779", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnEnabled", "ret": "void", @@ -32634,7 +34378,7 @@ "cimguiname": "igTableSetColumnSortDirection", "defaults": {}, "funcname": "TableSetColumnSortDirection", - "location": "imgui_internal:2907", + "location": "imgui_internal:3258", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnSortDirection", "ret": "void", @@ -32660,7 +34404,7 @@ "cimguiname": "igTableSetColumnWidth", "defaults": {}, "funcname": "TableSetColumnWidth", - "location": "imgui_internal:2906", + "location": "imgui_internal:3257", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnWidth", "ret": "void", @@ -32682,7 +34426,7 @@ "cimguiname": "igTableSetColumnWidthAutoAll", "defaults": {}, "funcname": "TableSetColumnWidthAutoAll", - "location": "imgui_internal:2940", + "location": "imgui_internal:3293", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnWidthAutoAll", "ret": "void", @@ -32708,7 +34452,7 @@ "cimguiname": "igTableSetColumnWidthAutoSingle", "defaults": {}, "funcname": "TableSetColumnWidthAutoSingle", - "location": "imgui_internal:2939", + "location": "imgui_internal:3292", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnWidthAutoSingle", "ret": "void", @@ -32716,6 +34460,23 @@ "stname": "" } ], + "igTableSettingsAddSettingsHandler": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableSettingsAddSettingsHandler", + "defaults": {}, + "funcname": "TableSettingsAddSettingsHandler", + "location": "imgui_internal:3304", + "namespace": "ImGui", + "ov_cimguiname": "igTableSettingsAddSettingsHandler", + "ret": "void", + "signature": "()", + "stname": "" + } + ], "igTableSettingsCreate": [ { "args": "(ImGuiID id,int columns_count)", @@ -32734,7 +34495,7 @@ "cimguiname": "igTableSettingsCreate", "defaults": {}, "funcname": "TableSettingsCreate", - "location": "imgui_internal:2952", + "location": "imgui_internal:3305", "namespace": "ImGui", "ov_cimguiname": "igTableSettingsCreate", "ret": "ImGuiTableSettings*", @@ -32756,7 +34517,7 @@ "cimguiname": "igTableSettingsFindByID", "defaults": {}, "funcname": "TableSettingsFindByID", - "location": "imgui_internal:2953", + "location": "imgui_internal:3306", "namespace": "ImGui", "ov_cimguiname": "igTableSettingsFindByID", "ret": "ImGuiTableSettings*", @@ -32764,28 +34525,6 @@ "stname": "" } ], - "igTableSettingsInstallHandler": [ - { - "args": "(ImGuiContext* context)", - "argsT": [ - { - "name": "context", - "type": "ImGuiContext*" - } - ], - "argsoriginal": "(ImGuiContext* context)", - "call_args": "(context)", - "cimguiname": "igTableSettingsInstallHandler", - "defaults": {}, - "funcname": "TableSettingsInstallHandler", - "location": "imgui_internal:2951", - "namespace": "ImGui", - "ov_cimguiname": "igTableSettingsInstallHandler", - "ret": "void", - "signature": "(ImGuiContext*)", - "stname": "" - } - ], "igTableSetupColumn": [ { "args": "(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)", @@ -32838,7 +34577,7 @@ "cimguiname": "igTableSetupDrawChannels", "defaults": {}, "funcname": "TableSetupDrawChannels", - "location": "imgui_internal:2919", + "location": "imgui_internal:3270", "namespace": "ImGui", "ov_cimguiname": "igTableSetupDrawChannels", "ret": "void", @@ -32886,7 +34625,7 @@ "cimguiname": "igTableSortSpecsBuild", "defaults": {}, "funcname": "TableSortSpecsBuild", - "location": "imgui_internal:2927", + "location": "imgui_internal:3280", "namespace": "ImGui", "ov_cimguiname": "igTableSortSpecsBuild", "ret": "void", @@ -32908,7 +34647,7 @@ "cimguiname": "igTableSortSpecsSanitize", "defaults": {}, "funcname": "TableSortSpecsSanitize", - "location": "imgui_internal:2926", + "location": "imgui_internal:3279", "namespace": "ImGui", "ov_cimguiname": "igTableSortSpecsSanitize", "ret": "void", @@ -32930,7 +34669,7 @@ "cimguiname": "igTableUpdateBorders", "defaults": {}, "funcname": "TableUpdateBorders", - "location": "imgui_internal:2921", + "location": "imgui_internal:3272", "namespace": "ImGui", "ov_cimguiname": "igTableUpdateBorders", "ret": "void", @@ -32952,7 +34691,7 @@ "cimguiname": "igTableUpdateColumnsWeightFromWidth", "defaults": {}, "funcname": "TableUpdateColumnsWeightFromWidth", - "location": "imgui_internal:2922", + "location": "imgui_internal:3273", "namespace": "ImGui", "ov_cimguiname": "igTableUpdateColumnsWeightFromWidth", "ret": "void", @@ -32974,7 +34713,7 @@ "cimguiname": "igTableUpdateLayout", "defaults": {}, "funcname": "TableUpdateLayout", - "location": "imgui_internal:2920", + "location": "imgui_internal:3271", "namespace": "ImGui", "ov_cimguiname": "igTableUpdateLayout", "ret": "void", @@ -32996,7 +34735,7 @@ "cimguiname": "igTempInputIsActive", "defaults": {}, "funcname": "TempInputIsActive", - "location": "imgui_internal:3049", + "location": "imgui_internal:3398", "namespace": "ImGui", "ov_cimguiname": "igTempInputIsActive", "ret": "bool", @@ -33049,7 +34788,7 @@ "p_clamp_min": "NULL" }, "funcname": "TempInputScalar", - "location": "imgui_internal:3048", + "location": "imgui_internal:3397", "namespace": "ImGui", "ov_cimguiname": "igTempInputScalar", "ret": "bool", @@ -33091,7 +34830,7 @@ "cimguiname": "igTempInputText", "defaults": {}, "funcname": "TempInputText", - "location": "imgui_internal:3047", + "location": "imgui_internal:3396", "namespace": "ImGui", "ov_cimguiname": "igTempInputText", "ret": "bool", @@ -33099,6 +34838,58 @@ "stname": "" } ], + "igTestKeyOwner": [ + { + "args": "(ImGuiKey key,ImGuiID owner_id)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id)", + "call_args": "(key,owner_id)", + "cimguiname": "igTestKeyOwner", + "defaults": {}, + "funcname": "TestKeyOwner", + "location": "imgui_internal:3141", + "namespace": "ImGui", + "ov_cimguiname": "igTestKeyOwner", + "ret": "bool", + "signature": "(ImGuiKey,ImGuiID)", + "stname": "" + } + ], + "igTestShortcutRouting": [ + { + "args": "(ImGuiKeyChord key_chord,ImGuiID owner_id)", + "argsT": [ + { + "name": "key_chord", + "type": "ImGuiKeyChord" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiKeyChord key_chord,ImGuiID owner_id)", + "call_args": "(key_chord,owner_id)", + "cimguiname": "igTestShortcutRouting", + "defaults": {}, + "funcname": "TestShortcutRouting", + "location": "imgui_internal:3169", + "namespace": "ImGui", + "ov_cimguiname": "igTestShortcutRouting", + "ret": "bool", + "signature": "(ImGuiKeyChord,ImGuiID)", + "stname": "" + } + ], "igText": [ { "args": "(const char* fmt,...)", @@ -33118,7 +34909,7 @@ "defaults": {}, "funcname": "Text", "isvararg": "...)", - "location": "imgui:496", + "location": "imgui:493", "namespace": "ImGui", "ov_cimguiname": "igText", "ret": "void", @@ -33149,7 +34940,7 @@ "defaults": {}, "funcname": "TextColored", "isvararg": "...)", - "location": "imgui:498", + "location": "imgui:495", "namespace": "ImGui", "ov_cimguiname": "igTextColored", "ret": "void", @@ -33179,7 +34970,7 @@ "cimguiname": "igTextColoredV", "defaults": {}, "funcname": "TextColoredV", - "location": "imgui:499", + "location": "imgui:496", "namespace": "ImGui", "ov_cimguiname": "igTextColoredV", "ret": "void", @@ -33206,7 +34997,7 @@ "defaults": {}, "funcname": "TextDisabled", "isvararg": "...)", - "location": "imgui:500", + "location": "imgui:497", "namespace": "ImGui", "ov_cimguiname": "igTextDisabled", "ret": "void", @@ -33232,7 +35023,7 @@ "cimguiname": "igTextDisabledV", "defaults": {}, "funcname": "TextDisabledV", - "location": "imgui:501", + "location": "imgui:498", "namespace": "ImGui", "ov_cimguiname": "igTextDisabledV", "ret": "void", @@ -33265,7 +35056,7 @@ "text_end": "NULL" }, "funcname": "TextEx", - "location": "imgui_internal:3002", + "location": "imgui_internal:3350", "namespace": "ImGui", "ov_cimguiname": "igTextEx", "ret": "void", @@ -33293,7 +35084,7 @@ "text_end": "NULL" }, "funcname": "TextUnformatted", - "location": "imgui:495", + "location": "imgui:492", "namespace": "ImGui", "ov_cimguiname": "igTextUnformatted", "ret": "void", @@ -33319,7 +35110,7 @@ "cimguiname": "igTextV", "defaults": {}, "funcname": "TextV", - "location": "imgui:497", + "location": "imgui:494", "namespace": "ImGui", "ov_cimguiname": "igTextV", "ret": "void", @@ -33346,7 +35137,7 @@ "defaults": {}, "funcname": "TextWrapped", "isvararg": "...)", - "location": "imgui:502", + "location": "imgui:499", "namespace": "ImGui", "ov_cimguiname": "igTextWrapped", "ret": "void", @@ -33372,7 +35163,7 @@ "cimguiname": "igTextWrappedV", "defaults": {}, "funcname": "TextWrappedV", - "location": "imgui:503", + "location": "imgui:500", "namespace": "ImGui", "ov_cimguiname": "igTextWrappedV", "ret": "void", @@ -33402,7 +35193,7 @@ "cimguiname": "igTranslateWindowsInViewport", "defaults": {}, "funcname": "TranslateWindowsInViewport", - "location": "imgui_internal:2693", + "location": "imgui_internal:2982", "namespace": "ImGui", "ov_cimguiname": "igTranslateWindowsInViewport", "ret": "void", @@ -33424,9 +35215,9 @@ "cimguiname": "igTreeNode", "defaults": {}, "funcname": "TreeNode", - "location": "imgui:610", + "location": "imgui:611", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeStr", + "ov_cimguiname": "igTreeNode_Str", "ret": "bool", "signature": "(const char*)", "stname": "" @@ -33453,9 +35244,9 @@ "defaults": {}, "funcname": "TreeNode", "isvararg": "...)", - "location": "imgui:611", + "location": "imgui:612", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeStrStr", + "ov_cimguiname": "igTreeNode_StrStr", "ret": "bool", "signature": "(const char*,const char*,...)", "stname": "" @@ -33482,9 +35273,9 @@ "defaults": {}, "funcname": "TreeNode", "isvararg": "...)", - "location": "imgui:612", + "location": "imgui:613", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodePtr", + "ov_cimguiname": "igTreeNode_Ptr", "ret": "bool", "signature": "(const void*,const char*,...)", "stname": "" @@ -33518,7 +35309,7 @@ "label_end": "NULL" }, "funcname": "TreeNodeBehavior", - "location": "imgui_internal:3023", + "location": "imgui_internal:3371", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeBehavior", "ret": "bool", @@ -33526,34 +35317,6 @@ "stname": "" } ], - "igTreeNodeBehaviorIsOpen": [ - { - "args": "(ImGuiID id,ImGuiTreeNodeFlags flags)", - "argsT": [ - { - "name": "id", - "type": "ImGuiID" - }, - { - "name": "flags", - "type": "ImGuiTreeNodeFlags" - } - ], - "argsoriginal": "(ImGuiID id,ImGuiTreeNodeFlags flags=0)", - "call_args": "(id,flags)", - "cimguiname": "igTreeNodeBehaviorIsOpen", - "defaults": { - "flags": "0" - }, - "funcname": "TreeNodeBehaviorIsOpen", - "location": "imgui_internal:3024", - "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeBehaviorIsOpen", - "ret": "bool", - "signature": "(ImGuiID,ImGuiTreeNodeFlags)", - "stname": "" - } - ], "igTreeNodeEx": [ { "args": "(const char* label,ImGuiTreeNodeFlags flags)", @@ -33574,9 +35337,9 @@ "flags": "0" }, "funcname": "TreeNodeEx", - "location": "imgui:615", + "location": "imgui:616", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExStr", + "ov_cimguiname": "igTreeNodeEx_Str", "ret": "bool", "signature": "(const char*,ImGuiTreeNodeFlags)", "stname": "" @@ -33607,9 +35370,9 @@ "defaults": {}, "funcname": "TreeNodeEx", "isvararg": "...)", - "location": "imgui:616", + "location": "imgui:617", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExStrStr", + "ov_cimguiname": "igTreeNodeEx_StrStr", "ret": "bool", "signature": "(const char*,ImGuiTreeNodeFlags,const char*,...)", "stname": "" @@ -33640,9 +35403,9 @@ "defaults": {}, "funcname": "TreeNodeEx", "isvararg": "...)", - "location": "imgui:617", + "location": "imgui:618", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExPtr", + "ov_cimguiname": "igTreeNodeEx_Ptr", "ret": "bool", "signature": "(const void*,ImGuiTreeNodeFlags,const char*,...)", "stname": "" @@ -33674,9 +35437,9 @@ "cimguiname": "igTreeNodeExV", "defaults": {}, "funcname": "TreeNodeExV", - "location": "imgui:618", + "location": "imgui:619", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExVStr", + "ov_cimguiname": "igTreeNodeExV_Str", "ret": "bool", "signature": "(const char*,ImGuiTreeNodeFlags,const char*,va_list)", "stname": "" @@ -33706,14 +35469,66 @@ "cimguiname": "igTreeNodeExV", "defaults": {}, "funcname": "TreeNodeExV", - "location": "imgui:619", + "location": "imgui:620", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExVPtr", + "ov_cimguiname": "igTreeNodeExV_Ptr", "ret": "bool", "signature": "(const void*,ImGuiTreeNodeFlags,const char*,va_list)", "stname": "" } ], + "igTreeNodeSetOpen": [ + { + "args": "(ImGuiID id,bool open)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "open", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiID id,bool open)", + "call_args": "(id,open)", + "cimguiname": "igTreeNodeSetOpen", + "defaults": {}, + "funcname": "TreeNodeSetOpen", + "location": "imgui_internal:3373", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeSetOpen", + "ret": "void", + "signature": "(ImGuiID,bool)", + "stname": "" + } + ], + "igTreeNodeUpdateNextOpen": [ + { + "args": "(ImGuiID id,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiTreeNodeFlags flags)", + "call_args": "(id,flags)", + "cimguiname": "igTreeNodeUpdateNextOpen", + "defaults": {}, + "funcname": "TreeNodeUpdateNextOpen", + "location": "imgui_internal:3374", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeUpdateNextOpen", + "ret": "bool", + "signature": "(ImGuiID,ImGuiTreeNodeFlags)", + "stname": "" + } + ], "igTreeNodeV": [ { "args": "(const char* str_id,const char* fmt,va_list args)", @@ -33736,9 +35551,9 @@ "cimguiname": "igTreeNodeV", "defaults": {}, "funcname": "TreeNodeV", - "location": "imgui:613", + "location": "imgui:614", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeVStr", + "ov_cimguiname": "igTreeNodeV_Str", "ret": "bool", "signature": "(const char*,const char*,va_list)", "stname": "" @@ -33764,9 +35579,9 @@ "cimguiname": "igTreeNodeV", "defaults": {}, "funcname": "TreeNodeV", - "location": "imgui:614", + "location": "imgui:615", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeVPtr", + "ov_cimguiname": "igTreeNodeV_Ptr", "ret": "bool", "signature": "(const void*,const char*,va_list)", "stname": "" @@ -33781,7 +35596,7 @@ "cimguiname": "igTreePop", "defaults": {}, "funcname": "TreePop", - "location": "imgui:622", + "location": "imgui:623", "namespace": "ImGui", "ov_cimguiname": "igTreePop", "ret": "void", @@ -33803,9 +35618,9 @@ "cimguiname": "igTreePush", "defaults": {}, "funcname": "TreePush", - "location": "imgui:620", + "location": "imgui:621", "namespace": "ImGui", - "ov_cimguiname": "igTreePushStr", + "ov_cimguiname": "igTreePush_Str", "ret": "void", "signature": "(const char*)", "stname": "" @@ -33818,16 +35633,14 @@ "type": "const void*" } ], - "argsoriginal": "(const void* ptr_id=((void*)0))", + "argsoriginal": "(const void* ptr_id)", "call_args": "(ptr_id)", "cimguiname": "igTreePush", - "defaults": { - "ptr_id": "NULL" - }, + "defaults": {}, "funcname": "TreePush", - "location": "imgui:621", + "location": "imgui:622", "namespace": "ImGui", - "ov_cimguiname": "igTreePushPtr", + "ov_cimguiname": "igTreePush_Ptr", "ret": "void", "signature": "(const void*)", "stname": "" @@ -33847,7 +35660,7 @@ "cimguiname": "igTreePushOverrideID", "defaults": {}, "funcname": "TreePushOverrideID", - "location": "imgui_internal:3025", + "location": "imgui_internal:3372", "namespace": "ImGui", "ov_cimguiname": "igTreePushOverrideID", "ret": "void", @@ -33871,7 +35684,7 @@ "indent_w": "0.0f" }, "funcname": "Unindent", - "location": "imgui:456", + "location": "imgui:453", "namespace": "ImGui", "ov_cimguiname": "igUnindent", "ret": "void", @@ -33888,7 +35701,7 @@ "cimguiname": "igUpdateHoveredWindowAndCaptureFlags", "defaults": {}, "funcname": "UpdateHoveredWindowAndCaptureFlags", - "location": "imgui_internal:2681", + "location": "imgui_internal:2970", "namespace": "ImGui", "ov_cimguiname": "igUpdateHoveredWindowAndCaptureFlags", "ret": "void", @@ -33896,6 +35709,28 @@ "stname": "" } ], + "igUpdateInputEvents": [ + { + "args": "(bool trickle_fast_inputs)", + "argsT": [ + { + "name": "trickle_fast_inputs", + "type": "bool" + } + ], + "argsoriginal": "(bool trickle_fast_inputs)", + "call_args": "(trickle_fast_inputs)", + "cimguiname": "igUpdateInputEvents", + "defaults": {}, + "funcname": "UpdateInputEvents", + "location": "imgui_internal:2969", + "namespace": "ImGui", + "ov_cimguiname": "igUpdateInputEvents", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], "igUpdateMouseMovingWindowEndFrame": [ { "args": "()", @@ -33905,7 +35740,7 @@ "cimguiname": "igUpdateMouseMovingWindowEndFrame", "defaults": {}, "funcname": "UpdateMouseMovingWindowEndFrame", - "location": "imgui_internal:2685", + "location": "imgui_internal:2974", "namespace": "ImGui", "ov_cimguiname": "igUpdateMouseMovingWindowEndFrame", "ret": "void", @@ -33922,7 +35757,7 @@ "cimguiname": "igUpdateMouseMovingWindowNewFrame", "defaults": {}, "funcname": "UpdateMouseMovingWindowNewFrame", - "location": "imgui_internal:2684", + "location": "imgui_internal:2973", "namespace": "ImGui", "ov_cimguiname": "igUpdateMouseMovingWindowNewFrame", "ret": "void", @@ -33939,7 +35774,7 @@ "cimguiname": "igUpdatePlatformWindows", "defaults": {}, "funcname": "UpdatePlatformWindows", - "location": "imgui:979", + "location": "imgui:981", "namespace": "ImGui", "ov_cimguiname": "igUpdatePlatformWindows", "ret": "void", @@ -33969,7 +35804,7 @@ "cimguiname": "igUpdateWindowParentAndRootLinks", "defaults": {}, "funcname": "UpdateWindowParentAndRootLinks", - "location": "imgui_internal:2648", + "location": "imgui_internal:2936", "namespace": "ImGui", "ov_cimguiname": "igUpdateWindowParentAndRootLinks", "ret": "void", @@ -34018,7 +35853,7 @@ "format": "\"%.3f\"" }, "funcname": "VSliderFloat", - "location": "imgui:576", + "location": "imgui:577", "namespace": "ImGui", "ov_cimguiname": "igVSliderFloat", "ret": "bool", @@ -34067,7 +35902,7 @@ "format": "\"%d\"" }, "funcname": "VSliderInt", - "location": "imgui:577", + "location": "imgui:578", "namespace": "ImGui", "ov_cimguiname": "igVSliderInt", "ret": "bool", @@ -34120,7 +35955,7 @@ "format": "NULL" }, "funcname": "VSliderScalar", - "location": "imgui:578", + "location": "imgui:579", "namespace": "ImGui", "ov_cimguiname": "igVSliderScalar", "ret": "bool", @@ -34146,9 +35981,9 @@ "cimguiname": "igValue", "defaults": {}, "funcname": "Value", - "location": "imgui:654", + "location": "imgui:655", "namespace": "ImGui", - "ov_cimguiname": "igValueBool", + "ov_cimguiname": "igValue_Bool", "ret": "void", "signature": "(const char*,bool)", "stname": "" @@ -34170,9 +36005,9 @@ "cimguiname": "igValue", "defaults": {}, "funcname": "Value", - "location": "imgui:655", + "location": "imgui:656", "namespace": "ImGui", - "ov_cimguiname": "igValueInt", + "ov_cimguiname": "igValue_Int", "ret": "void", "signature": "(const char*,int)", "stname": "" @@ -34194,9 +36029,9 @@ "cimguiname": "igValue", "defaults": {}, "funcname": "Value", - "location": "imgui:656", + "location": "imgui:657", "namespace": "ImGui", - "ov_cimguiname": "igValueUint", + "ov_cimguiname": "igValue_Uint", "ret": "void", "signature": "(const char*,unsigned int)", "stname": "" @@ -34224,9 +36059,9 @@ "float_format": "NULL" }, "funcname": "Value", - "location": "imgui:657", + "location": "imgui:658", "namespace": "ImGui", - "ov_cimguiname": "igValueFloat", + "ov_cimguiname": "igValue_Float", "ret": "void", "signature": "(const char*,float,const char*)", "stname": "" @@ -34254,7 +36089,7 @@ "cimguiname": "igWindowRectAbsToRel", "defaults": {}, "funcname": "WindowRectAbsToRel", - "location": "imgui_internal:2658", + "location": "imgui_internal:2946", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igWindowRectAbsToRel", @@ -34285,7 +36120,7 @@ "cimguiname": "igWindowRectRelToAbs", "defaults": {}, "funcname": "WindowRectRelToAbs", - "location": "imgui_internal:2659", + "location": "imgui_internal:2947", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igWindowRectRelToAbs", diff --git a/imgui-sys/third-party/imgui-docking/definitions.lua b/imgui-sys/third-party/imgui-docking/definitions.lua index 806a84096..b78bb178e 100644 --- a/imgui-sys/third-party/imgui-docking/definitions.lua +++ b/imgui-sys/third-party/imgui-docking/definitions.lua @@ -11,7 +11,7 @@ defs["ImBitArray_ClearAllBits"][1]["call_args"] = "()" defs["ImBitArray_ClearAllBits"][1]["cimguiname"] = "ImBitArray_ClearAllBits" defs["ImBitArray_ClearAllBits"][1]["defaults"] = {} defs["ImBitArray_ClearAllBits"][1]["funcname"] = "ClearAllBits" -defs["ImBitArray_ClearAllBits"][1]["location"] = "imgui_internal:560" +defs["ImBitArray_ClearAllBits"][1]["location"] = "imgui_internal:582" defs["ImBitArray_ClearAllBits"][1]["ov_cimguiname"] = "ImBitArray_ClearAllBits" defs["ImBitArray_ClearAllBits"][1]["ret"] = "void" defs["ImBitArray_ClearAllBits"][1]["signature"] = "()" @@ -33,7 +33,7 @@ defs["ImBitArray_ClearBit"][1]["call_args"] = "(n)" defs["ImBitArray_ClearBit"][1]["cimguiname"] = "ImBitArray_ClearBit" defs["ImBitArray_ClearBit"][1]["defaults"] = {} defs["ImBitArray_ClearBit"][1]["funcname"] = "ClearBit" -defs["ImBitArray_ClearBit"][1]["location"] = "imgui_internal:564" +defs["ImBitArray_ClearBit"][1]["location"] = "imgui_internal:586" defs["ImBitArray_ClearBit"][1]["ov_cimguiname"] = "ImBitArray_ClearBit" defs["ImBitArray_ClearBit"][1]["ret"] = "void" defs["ImBitArray_ClearBit"][1]["signature"] = "(int)" @@ -50,7 +50,7 @@ defs["ImBitArray_ImBitArray"][1]["cimguiname"] = "ImBitArray_ImBitArray" defs["ImBitArray_ImBitArray"][1]["constructor"] = true defs["ImBitArray_ImBitArray"][1]["defaults"] = {} defs["ImBitArray_ImBitArray"][1]["funcname"] = "ImBitArray" -defs["ImBitArray_ImBitArray"][1]["location"] = "imgui_internal:559" +defs["ImBitArray_ImBitArray"][1]["location"] = "imgui_internal:581" defs["ImBitArray_ImBitArray"][1]["ov_cimguiname"] = "ImBitArray_ImBitArray" defs["ImBitArray_ImBitArray"][1]["signature"] = "()" defs["ImBitArray_ImBitArray"][1]["stname"] = "ImBitArray" @@ -68,7 +68,7 @@ defs["ImBitArray_SetAllBits"][1]["call_args"] = "()" defs["ImBitArray_SetAllBits"][1]["cimguiname"] = "ImBitArray_SetAllBits" defs["ImBitArray_SetAllBits"][1]["defaults"] = {} defs["ImBitArray_SetAllBits"][1]["funcname"] = "SetAllBits" -defs["ImBitArray_SetAllBits"][1]["location"] = "imgui_internal:561" +defs["ImBitArray_SetAllBits"][1]["location"] = "imgui_internal:583" defs["ImBitArray_SetAllBits"][1]["ov_cimguiname"] = "ImBitArray_SetAllBits" defs["ImBitArray_SetAllBits"][1]["ret"] = "void" defs["ImBitArray_SetAllBits"][1]["signature"] = "()" @@ -90,7 +90,7 @@ defs["ImBitArray_SetBit"][1]["call_args"] = "(n)" defs["ImBitArray_SetBit"][1]["cimguiname"] = "ImBitArray_SetBit" defs["ImBitArray_SetBit"][1]["defaults"] = {} defs["ImBitArray_SetBit"][1]["funcname"] = "SetBit" -defs["ImBitArray_SetBit"][1]["location"] = "imgui_internal:563" +defs["ImBitArray_SetBit"][1]["location"] = "imgui_internal:585" defs["ImBitArray_SetBit"][1]["ov_cimguiname"] = "ImBitArray_SetBit" defs["ImBitArray_SetBit"][1]["ret"] = "void" defs["ImBitArray_SetBit"][1]["signature"] = "(int)" @@ -115,7 +115,7 @@ defs["ImBitArray_SetBitRange"][1]["call_args"] = "(n,n2)" defs["ImBitArray_SetBitRange"][1]["cimguiname"] = "ImBitArray_SetBitRange" defs["ImBitArray_SetBitRange"][1]["defaults"] = {} defs["ImBitArray_SetBitRange"][1]["funcname"] = "SetBitRange" -defs["ImBitArray_SetBitRange"][1]["location"] = "imgui_internal:565" +defs["ImBitArray_SetBitRange"][1]["location"] = "imgui_internal:587" defs["ImBitArray_SetBitRange"][1]["ov_cimguiname"] = "ImBitArray_SetBitRange" defs["ImBitArray_SetBitRange"][1]["ret"] = "void" defs["ImBitArray_SetBitRange"][1]["signature"] = "(int,int)" @@ -137,7 +137,7 @@ defs["ImBitArray_TestBit"][1]["call_args"] = "(n)" defs["ImBitArray_TestBit"][1]["cimguiname"] = "ImBitArray_TestBit" defs["ImBitArray_TestBit"][1]["defaults"] = {} defs["ImBitArray_TestBit"][1]["funcname"] = "TestBit" -defs["ImBitArray_TestBit"][1]["location"] = "imgui_internal:562" +defs["ImBitArray_TestBit"][1]["location"] = "imgui_internal:584" defs["ImBitArray_TestBit"][1]["ov_cimguiname"] = "ImBitArray_TestBit" defs["ImBitArray_TestBit"][1]["ret"] = "bool" defs["ImBitArray_TestBit"][1]["signature"] = "(int)const" @@ -173,7 +173,7 @@ defs["ImBitVector_Clear"][1]["call_args"] = "()" defs["ImBitVector_Clear"][1]["cimguiname"] = "ImBitVector_Clear" defs["ImBitVector_Clear"][1]["defaults"] = {} defs["ImBitVector_Clear"][1]["funcname"] = "Clear" -defs["ImBitVector_Clear"][1]["location"] = "imgui_internal:574" +defs["ImBitVector_Clear"][1]["location"] = "imgui_internal:597" defs["ImBitVector_Clear"][1]["ov_cimguiname"] = "ImBitVector_Clear" defs["ImBitVector_Clear"][1]["ret"] = "void" defs["ImBitVector_Clear"][1]["signature"] = "()" @@ -194,7 +194,7 @@ defs["ImBitVector_ClearBit"][1]["call_args"] = "(n)" defs["ImBitVector_ClearBit"][1]["cimguiname"] = "ImBitVector_ClearBit" defs["ImBitVector_ClearBit"][1]["defaults"] = {} defs["ImBitVector_ClearBit"][1]["funcname"] = "ClearBit" -defs["ImBitVector_ClearBit"][1]["location"] = "imgui_internal:577" +defs["ImBitVector_ClearBit"][1]["location"] = "imgui_internal:600" defs["ImBitVector_ClearBit"][1]["ov_cimguiname"] = "ImBitVector_ClearBit" defs["ImBitVector_ClearBit"][1]["ret"] = "void" defs["ImBitVector_ClearBit"][1]["signature"] = "(int)" @@ -215,7 +215,7 @@ defs["ImBitVector_Create"][1]["call_args"] = "(sz)" defs["ImBitVector_Create"][1]["cimguiname"] = "ImBitVector_Create" defs["ImBitVector_Create"][1]["defaults"] = {} defs["ImBitVector_Create"][1]["funcname"] = "Create" -defs["ImBitVector_Create"][1]["location"] = "imgui_internal:573" +defs["ImBitVector_Create"][1]["location"] = "imgui_internal:596" defs["ImBitVector_Create"][1]["ov_cimguiname"] = "ImBitVector_Create" defs["ImBitVector_Create"][1]["ret"] = "void" defs["ImBitVector_Create"][1]["signature"] = "(int)" @@ -236,7 +236,7 @@ defs["ImBitVector_SetBit"][1]["call_args"] = "(n)" defs["ImBitVector_SetBit"][1]["cimguiname"] = "ImBitVector_SetBit" defs["ImBitVector_SetBit"][1]["defaults"] = {} defs["ImBitVector_SetBit"][1]["funcname"] = "SetBit" -defs["ImBitVector_SetBit"][1]["location"] = "imgui_internal:576" +defs["ImBitVector_SetBit"][1]["location"] = "imgui_internal:599" defs["ImBitVector_SetBit"][1]["ov_cimguiname"] = "ImBitVector_SetBit" defs["ImBitVector_SetBit"][1]["ret"] = "void" defs["ImBitVector_SetBit"][1]["signature"] = "(int)" @@ -257,7 +257,7 @@ defs["ImBitVector_TestBit"][1]["call_args"] = "(n)" defs["ImBitVector_TestBit"][1]["cimguiname"] = "ImBitVector_TestBit" defs["ImBitVector_TestBit"][1]["defaults"] = {} defs["ImBitVector_TestBit"][1]["funcname"] = "TestBit" -defs["ImBitVector_TestBit"][1]["location"] = "imgui_internal:575" +defs["ImBitVector_TestBit"][1]["location"] = "imgui_internal:598" defs["ImBitVector_TestBit"][1]["ov_cimguiname"] = "ImBitVector_TestBit" defs["ImBitVector_TestBit"][1]["ret"] = "bool" defs["ImBitVector_TestBit"][1]["signature"] = "(int)const" @@ -278,7 +278,7 @@ defs["ImChunkStream_alloc_chunk"][1]["call_args"] = "(sz)" defs["ImChunkStream_alloc_chunk"][1]["cimguiname"] = "ImChunkStream_alloc_chunk" defs["ImChunkStream_alloc_chunk"][1]["defaults"] = {} defs["ImChunkStream_alloc_chunk"][1]["funcname"] = "alloc_chunk" -defs["ImChunkStream_alloc_chunk"][1]["location"] = "imgui_internal:680" +defs["ImChunkStream_alloc_chunk"][1]["location"] = "imgui_internal:703" defs["ImChunkStream_alloc_chunk"][1]["ov_cimguiname"] = "ImChunkStream_alloc_chunk" defs["ImChunkStream_alloc_chunk"][1]["ret"] = "T*" defs["ImChunkStream_alloc_chunk"][1]["signature"] = "(size_t)" @@ -297,7 +297,7 @@ defs["ImChunkStream_begin"][1]["call_args"] = "()" defs["ImChunkStream_begin"][1]["cimguiname"] = "ImChunkStream_begin" defs["ImChunkStream_begin"][1]["defaults"] = {} defs["ImChunkStream_begin"][1]["funcname"] = "begin" -defs["ImChunkStream_begin"][1]["location"] = "imgui_internal:681" +defs["ImChunkStream_begin"][1]["location"] = "imgui_internal:704" defs["ImChunkStream_begin"][1]["ov_cimguiname"] = "ImChunkStream_begin" defs["ImChunkStream_begin"][1]["ret"] = "T*" defs["ImChunkStream_begin"][1]["signature"] = "()" @@ -319,7 +319,7 @@ defs["ImChunkStream_chunk_size"][1]["call_args"] = "(p)" defs["ImChunkStream_chunk_size"][1]["cimguiname"] = "ImChunkStream_chunk_size" defs["ImChunkStream_chunk_size"][1]["defaults"] = {} defs["ImChunkStream_chunk_size"][1]["funcname"] = "chunk_size" -defs["ImChunkStream_chunk_size"][1]["location"] = "imgui_internal:683" +defs["ImChunkStream_chunk_size"][1]["location"] = "imgui_internal:706" defs["ImChunkStream_chunk_size"][1]["ov_cimguiname"] = "ImChunkStream_chunk_size" defs["ImChunkStream_chunk_size"][1]["ret"] = "int" defs["ImChunkStream_chunk_size"][1]["signature"] = "(const T*)" @@ -338,7 +338,7 @@ defs["ImChunkStream_clear"][1]["call_args"] = "()" defs["ImChunkStream_clear"][1]["cimguiname"] = "ImChunkStream_clear" defs["ImChunkStream_clear"][1]["defaults"] = {} defs["ImChunkStream_clear"][1]["funcname"] = "clear" -defs["ImChunkStream_clear"][1]["location"] = "imgui_internal:677" +defs["ImChunkStream_clear"][1]["location"] = "imgui_internal:700" defs["ImChunkStream_clear"][1]["ov_cimguiname"] = "ImChunkStream_clear" defs["ImChunkStream_clear"][1]["ret"] = "void" defs["ImChunkStream_clear"][1]["signature"] = "()" @@ -357,7 +357,7 @@ defs["ImChunkStream_empty"][1]["call_args"] = "()" defs["ImChunkStream_empty"][1]["cimguiname"] = "ImChunkStream_empty" defs["ImChunkStream_empty"][1]["defaults"] = {} defs["ImChunkStream_empty"][1]["funcname"] = "empty" -defs["ImChunkStream_empty"][1]["location"] = "imgui_internal:678" +defs["ImChunkStream_empty"][1]["location"] = "imgui_internal:701" defs["ImChunkStream_empty"][1]["ov_cimguiname"] = "ImChunkStream_empty" defs["ImChunkStream_empty"][1]["ret"] = "bool" defs["ImChunkStream_empty"][1]["signature"] = "()const" @@ -376,7 +376,7 @@ defs["ImChunkStream_end"][1]["call_args"] = "()" defs["ImChunkStream_end"][1]["cimguiname"] = "ImChunkStream_end" defs["ImChunkStream_end"][1]["defaults"] = {} defs["ImChunkStream_end"][1]["funcname"] = "end" -defs["ImChunkStream_end"][1]["location"] = "imgui_internal:684" +defs["ImChunkStream_end"][1]["location"] = "imgui_internal:707" defs["ImChunkStream_end"][1]["ov_cimguiname"] = "ImChunkStream_end" defs["ImChunkStream_end"][1]["ret"] = "T*" defs["ImChunkStream_end"][1]["signature"] = "()" @@ -398,7 +398,7 @@ defs["ImChunkStream_next_chunk"][1]["call_args"] = "(p)" defs["ImChunkStream_next_chunk"][1]["cimguiname"] = "ImChunkStream_next_chunk" defs["ImChunkStream_next_chunk"][1]["defaults"] = {} defs["ImChunkStream_next_chunk"][1]["funcname"] = "next_chunk" -defs["ImChunkStream_next_chunk"][1]["location"] = "imgui_internal:682" +defs["ImChunkStream_next_chunk"][1]["location"] = "imgui_internal:705" defs["ImChunkStream_next_chunk"][1]["ov_cimguiname"] = "ImChunkStream_next_chunk" defs["ImChunkStream_next_chunk"][1]["ret"] = "T*" defs["ImChunkStream_next_chunk"][1]["signature"] = "(T*)" @@ -420,7 +420,7 @@ defs["ImChunkStream_offset_from_ptr"][1]["call_args"] = "(p)" defs["ImChunkStream_offset_from_ptr"][1]["cimguiname"] = "ImChunkStream_offset_from_ptr" defs["ImChunkStream_offset_from_ptr"][1]["defaults"] = {} defs["ImChunkStream_offset_from_ptr"][1]["funcname"] = "offset_from_ptr" -defs["ImChunkStream_offset_from_ptr"][1]["location"] = "imgui_internal:685" +defs["ImChunkStream_offset_from_ptr"][1]["location"] = "imgui_internal:708" defs["ImChunkStream_offset_from_ptr"][1]["ov_cimguiname"] = "ImChunkStream_offset_from_ptr" defs["ImChunkStream_offset_from_ptr"][1]["ret"] = "int" defs["ImChunkStream_offset_from_ptr"][1]["signature"] = "(const T*)" @@ -442,7 +442,7 @@ defs["ImChunkStream_ptr_from_offset"][1]["call_args"] = "(off)" defs["ImChunkStream_ptr_from_offset"][1]["cimguiname"] = "ImChunkStream_ptr_from_offset" defs["ImChunkStream_ptr_from_offset"][1]["defaults"] = {} defs["ImChunkStream_ptr_from_offset"][1]["funcname"] = "ptr_from_offset" -defs["ImChunkStream_ptr_from_offset"][1]["location"] = "imgui_internal:686" +defs["ImChunkStream_ptr_from_offset"][1]["location"] = "imgui_internal:709" defs["ImChunkStream_ptr_from_offset"][1]["ov_cimguiname"] = "ImChunkStream_ptr_from_offset" defs["ImChunkStream_ptr_from_offset"][1]["ret"] = "T*" defs["ImChunkStream_ptr_from_offset"][1]["signature"] = "(int)" @@ -461,7 +461,7 @@ defs["ImChunkStream_size"][1]["call_args"] = "()" defs["ImChunkStream_size"][1]["cimguiname"] = "ImChunkStream_size" defs["ImChunkStream_size"][1]["defaults"] = {} defs["ImChunkStream_size"][1]["funcname"] = "size" -defs["ImChunkStream_size"][1]["location"] = "imgui_internal:679" +defs["ImChunkStream_size"][1]["location"] = "imgui_internal:702" defs["ImChunkStream_size"][1]["ov_cimguiname"] = "ImChunkStream_size" defs["ImChunkStream_size"][1]["ret"] = "int" defs["ImChunkStream_size"][1]["signature"] = "()const" @@ -470,7 +470,7 @@ defs["ImChunkStream_size"][1]["templated"] = true defs["ImChunkStream_size"]["()const"] = defs["ImChunkStream_size"][1] defs["ImChunkStream_swap"] = {} defs["ImChunkStream_swap"][1] = {} -defs["ImChunkStream_swap"][1]["args"] = "(ImChunkStream* self,ImChunkStream* rhs)" +defs["ImChunkStream_swap"][1]["args"] = "(ImChunkStream* self,ImChunkStream_T * rhs)" defs["ImChunkStream_swap"][1]["argsT"] = {} defs["ImChunkStream_swap"][1]["argsT"][1] = {} defs["ImChunkStream_swap"][1]["argsT"][1]["name"] = "self" @@ -478,19 +478,19 @@ defs["ImChunkStream_swap"][1]["argsT"][1]["type"] = "ImChunkStream*" defs["ImChunkStream_swap"][1]["argsT"][2] = {} defs["ImChunkStream_swap"][1]["argsT"][2]["name"] = "rhs" defs["ImChunkStream_swap"][1]["argsT"][2]["reftoptr"] = true -defs["ImChunkStream_swap"][1]["argsT"][2]["type"] = "ImChunkStream*" +defs["ImChunkStream_swap"][1]["argsT"][2]["type"] = "ImChunkStream_T *" defs["ImChunkStream_swap"][1]["argsoriginal"] = "(ImChunkStream& rhs)" defs["ImChunkStream_swap"][1]["call_args"] = "(*rhs)" defs["ImChunkStream_swap"][1]["cimguiname"] = "ImChunkStream_swap" defs["ImChunkStream_swap"][1]["defaults"] = {} defs["ImChunkStream_swap"][1]["funcname"] = "swap" -defs["ImChunkStream_swap"][1]["location"] = "imgui_internal:687" +defs["ImChunkStream_swap"][1]["location"] = "imgui_internal:710" defs["ImChunkStream_swap"][1]["ov_cimguiname"] = "ImChunkStream_swap" defs["ImChunkStream_swap"][1]["ret"] = "void" -defs["ImChunkStream_swap"][1]["signature"] = "(ImChunkStream*)" +defs["ImChunkStream_swap"][1]["signature"] = "(ImChunkStream_T *)" defs["ImChunkStream_swap"][1]["stname"] = "ImChunkStream" defs["ImChunkStream_swap"][1]["templated"] = true -defs["ImChunkStream_swap"]["(ImChunkStream*)"] = defs["ImChunkStream_swap"][1] +defs["ImChunkStream_swap"]["(ImChunkStream_T *)"] = defs["ImChunkStream_swap"][1] defs["ImColor_HSV"] = {} defs["ImColor_HSV"][1] = {} defs["ImColor_HSV"][1]["args"] = "(ImColor *pOut,float h,float s,float v,float a)" @@ -517,7 +517,7 @@ defs["ImColor_HSV"][1]["defaults"] = {} defs["ImColor_HSV"][1]["defaults"]["a"] = "1.0f" defs["ImColor_HSV"][1]["funcname"] = "HSV" defs["ImColor_HSV"][1]["is_static_function"] = true -defs["ImColor_HSV"][1]["location"] = "imgui:2361" +defs["ImColor_HSV"][1]["location"] = "imgui:2472" defs["ImColor_HSV"][1]["nonUDT"] = 1 defs["ImColor_HSV"][1]["ov_cimguiname"] = "ImColor_HSV" defs["ImColor_HSV"][1]["ret"] = "void" @@ -534,99 +534,99 @@ defs["ImColor_ImColor"][1]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][1]["constructor"] = true defs["ImColor_ImColor"][1]["defaults"] = {} defs["ImColor_ImColor"][1]["funcname"] = "ImColor" -defs["ImColor_ImColor"][1]["location"] = "imgui:2351" -defs["ImColor_ImColor"][1]["ov_cimguiname"] = "ImColor_ImColorNil" +defs["ImColor_ImColor"][1]["location"] = "imgui:2462" +defs["ImColor_ImColor"][1]["ov_cimguiname"] = "ImColor_ImColor_Nil" defs["ImColor_ImColor"][1]["signature"] = "()" defs["ImColor_ImColor"][1]["stname"] = "ImColor" defs["ImColor_ImColor"][2] = {} -defs["ImColor_ImColor"][2]["args"] = "(int r,int g,int b,int a)" +defs["ImColor_ImColor"][2]["args"] = "(float r,float g,float b,float a)" defs["ImColor_ImColor"][2]["argsT"] = {} defs["ImColor_ImColor"][2]["argsT"][1] = {} defs["ImColor_ImColor"][2]["argsT"][1]["name"] = "r" -defs["ImColor_ImColor"][2]["argsT"][1]["type"] = "int" +defs["ImColor_ImColor"][2]["argsT"][1]["type"] = "float" defs["ImColor_ImColor"][2]["argsT"][2] = {} defs["ImColor_ImColor"][2]["argsT"][2]["name"] = "g" -defs["ImColor_ImColor"][2]["argsT"][2]["type"] = "int" +defs["ImColor_ImColor"][2]["argsT"][2]["type"] = "float" defs["ImColor_ImColor"][2]["argsT"][3] = {} defs["ImColor_ImColor"][2]["argsT"][3]["name"] = "b" -defs["ImColor_ImColor"][2]["argsT"][3]["type"] = "int" +defs["ImColor_ImColor"][2]["argsT"][3]["type"] = "float" defs["ImColor_ImColor"][2]["argsT"][4] = {} defs["ImColor_ImColor"][2]["argsT"][4]["name"] = "a" -defs["ImColor_ImColor"][2]["argsT"][4]["type"] = "int" -defs["ImColor_ImColor"][2]["argsoriginal"] = "(int r,int g,int b,int a=255)" +defs["ImColor_ImColor"][2]["argsT"][4]["type"] = "float" +defs["ImColor_ImColor"][2]["argsoriginal"] = "(float r,float g,float b,float a=1.0f)" defs["ImColor_ImColor"][2]["call_args"] = "(r,g,b,a)" defs["ImColor_ImColor"][2]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][2]["constructor"] = true defs["ImColor_ImColor"][2]["defaults"] = {} -defs["ImColor_ImColor"][2]["defaults"]["a"] = "255" +defs["ImColor_ImColor"][2]["defaults"]["a"] = "1.0f" defs["ImColor_ImColor"][2]["funcname"] = "ImColor" -defs["ImColor_ImColor"][2]["location"] = "imgui:2352" -defs["ImColor_ImColor"][2]["ov_cimguiname"] = "ImColor_ImColorInt" -defs["ImColor_ImColor"][2]["signature"] = "(int,int,int,int)" +defs["ImColor_ImColor"][2]["location"] = "imgui:2463" +defs["ImColor_ImColor"][2]["ov_cimguiname"] = "ImColor_ImColor_Float" +defs["ImColor_ImColor"][2]["signature"] = "(float,float,float,float)" defs["ImColor_ImColor"][2]["stname"] = "ImColor" defs["ImColor_ImColor"][3] = {} -defs["ImColor_ImColor"][3]["args"] = "(ImU32 rgba)" +defs["ImColor_ImColor"][3]["args"] = "(const ImVec4 col)" defs["ImColor_ImColor"][3]["argsT"] = {} defs["ImColor_ImColor"][3]["argsT"][1] = {} -defs["ImColor_ImColor"][3]["argsT"][1]["name"] = "rgba" -defs["ImColor_ImColor"][3]["argsT"][1]["type"] = "ImU32" -defs["ImColor_ImColor"][3]["argsoriginal"] = "(ImU32 rgba)" -defs["ImColor_ImColor"][3]["call_args"] = "(rgba)" +defs["ImColor_ImColor"][3]["argsT"][1]["name"] = "col" +defs["ImColor_ImColor"][3]["argsT"][1]["type"] = "const ImVec4" +defs["ImColor_ImColor"][3]["argsoriginal"] = "(const ImVec4& col)" +defs["ImColor_ImColor"][3]["call_args"] = "(col)" defs["ImColor_ImColor"][3]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][3]["constructor"] = true defs["ImColor_ImColor"][3]["defaults"] = {} defs["ImColor_ImColor"][3]["funcname"] = "ImColor" -defs["ImColor_ImColor"][3]["location"] = "imgui:2353" -defs["ImColor_ImColor"][3]["ov_cimguiname"] = "ImColor_ImColorU32" -defs["ImColor_ImColor"][3]["signature"] = "(ImU32)" +defs["ImColor_ImColor"][3]["location"] = "imgui:2464" +defs["ImColor_ImColor"][3]["ov_cimguiname"] = "ImColor_ImColor_Vec4" +defs["ImColor_ImColor"][3]["signature"] = "(const ImVec4)" defs["ImColor_ImColor"][3]["stname"] = "ImColor" defs["ImColor_ImColor"][4] = {} -defs["ImColor_ImColor"][4]["args"] = "(float r,float g,float b,float a)" +defs["ImColor_ImColor"][4]["args"] = "(int r,int g,int b,int a)" defs["ImColor_ImColor"][4]["argsT"] = {} defs["ImColor_ImColor"][4]["argsT"][1] = {} defs["ImColor_ImColor"][4]["argsT"][1]["name"] = "r" -defs["ImColor_ImColor"][4]["argsT"][1]["type"] = "float" +defs["ImColor_ImColor"][4]["argsT"][1]["type"] = "int" defs["ImColor_ImColor"][4]["argsT"][2] = {} defs["ImColor_ImColor"][4]["argsT"][2]["name"] = "g" -defs["ImColor_ImColor"][4]["argsT"][2]["type"] = "float" +defs["ImColor_ImColor"][4]["argsT"][2]["type"] = "int" defs["ImColor_ImColor"][4]["argsT"][3] = {} defs["ImColor_ImColor"][4]["argsT"][3]["name"] = "b" -defs["ImColor_ImColor"][4]["argsT"][3]["type"] = "float" +defs["ImColor_ImColor"][4]["argsT"][3]["type"] = "int" defs["ImColor_ImColor"][4]["argsT"][4] = {} defs["ImColor_ImColor"][4]["argsT"][4]["name"] = "a" -defs["ImColor_ImColor"][4]["argsT"][4]["type"] = "float" -defs["ImColor_ImColor"][4]["argsoriginal"] = "(float r,float g,float b,float a=1.0f)" +defs["ImColor_ImColor"][4]["argsT"][4]["type"] = "int" +defs["ImColor_ImColor"][4]["argsoriginal"] = "(int r,int g,int b,int a=255)" defs["ImColor_ImColor"][4]["call_args"] = "(r,g,b,a)" defs["ImColor_ImColor"][4]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][4]["constructor"] = true defs["ImColor_ImColor"][4]["defaults"] = {} -defs["ImColor_ImColor"][4]["defaults"]["a"] = "1.0f" +defs["ImColor_ImColor"][4]["defaults"]["a"] = "255" defs["ImColor_ImColor"][4]["funcname"] = "ImColor" -defs["ImColor_ImColor"][4]["location"] = "imgui:2354" -defs["ImColor_ImColor"][4]["ov_cimguiname"] = "ImColor_ImColorFloat" -defs["ImColor_ImColor"][4]["signature"] = "(float,float,float,float)" +defs["ImColor_ImColor"][4]["location"] = "imgui:2465" +defs["ImColor_ImColor"][4]["ov_cimguiname"] = "ImColor_ImColor_Int" +defs["ImColor_ImColor"][4]["signature"] = "(int,int,int,int)" defs["ImColor_ImColor"][4]["stname"] = "ImColor" defs["ImColor_ImColor"][5] = {} -defs["ImColor_ImColor"][5]["args"] = "(const ImVec4 col)" +defs["ImColor_ImColor"][5]["args"] = "(ImU32 rgba)" defs["ImColor_ImColor"][5]["argsT"] = {} defs["ImColor_ImColor"][5]["argsT"][1] = {} -defs["ImColor_ImColor"][5]["argsT"][1]["name"] = "col" -defs["ImColor_ImColor"][5]["argsT"][1]["type"] = "const ImVec4" -defs["ImColor_ImColor"][5]["argsoriginal"] = "(const ImVec4& col)" -defs["ImColor_ImColor"][5]["call_args"] = "(col)" +defs["ImColor_ImColor"][5]["argsT"][1]["name"] = "rgba" +defs["ImColor_ImColor"][5]["argsT"][1]["type"] = "ImU32" +defs["ImColor_ImColor"][5]["argsoriginal"] = "(ImU32 rgba)" +defs["ImColor_ImColor"][5]["call_args"] = "(rgba)" defs["ImColor_ImColor"][5]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][5]["constructor"] = true defs["ImColor_ImColor"][5]["defaults"] = {} defs["ImColor_ImColor"][5]["funcname"] = "ImColor" -defs["ImColor_ImColor"][5]["location"] = "imgui:2355" -defs["ImColor_ImColor"][5]["ov_cimguiname"] = "ImColor_ImColorVec4" -defs["ImColor_ImColor"][5]["signature"] = "(const ImVec4)" +defs["ImColor_ImColor"][5]["location"] = "imgui:2466" +defs["ImColor_ImColor"][5]["ov_cimguiname"] = "ImColor_ImColor_U32" +defs["ImColor_ImColor"][5]["signature"] = "(ImU32)" defs["ImColor_ImColor"][5]["stname"] = "ImColor" defs["ImColor_ImColor"]["()"] = defs["ImColor_ImColor"][1] -defs["ImColor_ImColor"]["(ImU32)"] = defs["ImColor_ImColor"][3] -defs["ImColor_ImColor"]["(const ImVec4)"] = defs["ImColor_ImColor"][5] -defs["ImColor_ImColor"]["(float,float,float,float)"] = defs["ImColor_ImColor"][4] -defs["ImColor_ImColor"]["(int,int,int,int)"] = defs["ImColor_ImColor"][2] +defs["ImColor_ImColor"]["(ImU32)"] = defs["ImColor_ImColor"][5] +defs["ImColor_ImColor"]["(const ImVec4)"] = defs["ImColor_ImColor"][3] +defs["ImColor_ImColor"]["(float,float,float,float)"] = defs["ImColor_ImColor"][2] +defs["ImColor_ImColor"]["(int,int,int,int)"] = defs["ImColor_ImColor"][4] defs["ImColor_SetHSV"] = {} defs["ImColor_SetHSV"][1] = {} defs["ImColor_SetHSV"][1]["args"] = "(ImColor* self,float h,float s,float v,float a)" @@ -652,7 +652,7 @@ defs["ImColor_SetHSV"][1]["cimguiname"] = "ImColor_SetHSV" defs["ImColor_SetHSV"][1]["defaults"] = {} defs["ImColor_SetHSV"][1]["defaults"]["a"] = "1.0f" defs["ImColor_SetHSV"][1]["funcname"] = "SetHSV" -defs["ImColor_SetHSV"][1]["location"] = "imgui:2360" +defs["ImColor_SetHSV"][1]["location"] = "imgui:2471" defs["ImColor_SetHSV"][1]["ov_cimguiname"] = "ImColor_SetHSV" defs["ImColor_SetHSV"][1]["ret"] = "void" defs["ImColor_SetHSV"][1]["signature"] = "(float,float,float,float)" @@ -686,7 +686,7 @@ defs["ImDrawCmd_GetTexID"][1]["call_args"] = "()" defs["ImDrawCmd_GetTexID"][1]["cimguiname"] = "ImDrawCmd_GetTexID" defs["ImDrawCmd_GetTexID"][1]["defaults"] = {} defs["ImDrawCmd_GetTexID"][1]["funcname"] = "GetTexID" -defs["ImDrawCmd_GetTexID"][1]["location"] = "imgui:2409" +defs["ImDrawCmd_GetTexID"][1]["location"] = "imgui:2520" defs["ImDrawCmd_GetTexID"][1]["ov_cimguiname"] = "ImDrawCmd_GetTexID" defs["ImDrawCmd_GetTexID"][1]["ret"] = "ImTextureID" defs["ImDrawCmd_GetTexID"][1]["signature"] = "()const" @@ -702,7 +702,7 @@ defs["ImDrawCmd_ImDrawCmd"][1]["cimguiname"] = "ImDrawCmd_ImDrawCmd" defs["ImDrawCmd_ImDrawCmd"][1]["constructor"] = true defs["ImDrawCmd_ImDrawCmd"][1]["defaults"] = {} defs["ImDrawCmd_ImDrawCmd"][1]["funcname"] = "ImDrawCmd" -defs["ImDrawCmd_ImDrawCmd"][1]["location"] = "imgui:2406" +defs["ImDrawCmd_ImDrawCmd"][1]["location"] = "imgui:2517" defs["ImDrawCmd_ImDrawCmd"][1]["ov_cimguiname"] = "ImDrawCmd_ImDrawCmd" defs["ImDrawCmd_ImDrawCmd"][1]["signature"] = "()" defs["ImDrawCmd_ImDrawCmd"][1]["stname"] = "ImDrawCmd" @@ -735,7 +735,7 @@ defs["ImDrawDataBuilder_Clear"][1]["call_args"] = "()" defs["ImDrawDataBuilder_Clear"][1]["cimguiname"] = "ImDrawDataBuilder_Clear" defs["ImDrawDataBuilder_Clear"][1]["defaults"] = {} defs["ImDrawDataBuilder_Clear"][1]["funcname"] = "Clear" -defs["ImDrawDataBuilder_Clear"][1]["location"] = "imgui_internal:747" +defs["ImDrawDataBuilder_Clear"][1]["location"] = "imgui_internal:786" defs["ImDrawDataBuilder_Clear"][1]["ov_cimguiname"] = "ImDrawDataBuilder_Clear" defs["ImDrawDataBuilder_Clear"][1]["ret"] = "void" defs["ImDrawDataBuilder_Clear"][1]["signature"] = "()" @@ -753,7 +753,7 @@ defs["ImDrawDataBuilder_ClearFreeMemory"][1]["call_args"] = "()" defs["ImDrawDataBuilder_ClearFreeMemory"][1]["cimguiname"] = "ImDrawDataBuilder_ClearFreeMemory" defs["ImDrawDataBuilder_ClearFreeMemory"][1]["defaults"] = {} defs["ImDrawDataBuilder_ClearFreeMemory"][1]["funcname"] = "ClearFreeMemory" -defs["ImDrawDataBuilder_ClearFreeMemory"][1]["location"] = "imgui_internal:748" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["location"] = "imgui_internal:787" defs["ImDrawDataBuilder_ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawDataBuilder_ClearFreeMemory" defs["ImDrawDataBuilder_ClearFreeMemory"][1]["ret"] = "void" defs["ImDrawDataBuilder_ClearFreeMemory"][1]["signature"] = "()" @@ -771,7 +771,7 @@ defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["call_args"] = "()" defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["cimguiname"] = "ImDrawDataBuilder_FlattenIntoSingleLayer" defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["defaults"] = {} defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["funcname"] = "FlattenIntoSingleLayer" -defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["location"] = "imgui_internal:750" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["location"] = "imgui_internal:789" defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["ov_cimguiname"] = "ImDrawDataBuilder_FlattenIntoSingleLayer" defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["ret"] = "void" defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["signature"] = "()" @@ -789,7 +789,7 @@ defs["ImDrawDataBuilder_GetDrawListCount"][1]["call_args"] = "()" defs["ImDrawDataBuilder_GetDrawListCount"][1]["cimguiname"] = "ImDrawDataBuilder_GetDrawListCount" defs["ImDrawDataBuilder_GetDrawListCount"][1]["defaults"] = {} defs["ImDrawDataBuilder_GetDrawListCount"][1]["funcname"] = "GetDrawListCount" -defs["ImDrawDataBuilder_GetDrawListCount"][1]["location"] = "imgui_internal:749" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["location"] = "imgui_internal:788" defs["ImDrawDataBuilder_GetDrawListCount"][1]["ov_cimguiname"] = "ImDrawDataBuilder_GetDrawListCount" defs["ImDrawDataBuilder_GetDrawListCount"][1]["ret"] = "int" defs["ImDrawDataBuilder_GetDrawListCount"][1]["signature"] = "()const" @@ -807,7 +807,7 @@ defs["ImDrawData_Clear"][1]["call_args"] = "()" defs["ImDrawData_Clear"][1]["cimguiname"] = "ImDrawData_Clear" defs["ImDrawData_Clear"][1]["defaults"] = {} defs["ImDrawData_Clear"][1]["funcname"] = "Clear" -defs["ImDrawData_Clear"][1]["location"] = "imgui:2641" +defs["ImDrawData_Clear"][1]["location"] = "imgui:2754" defs["ImDrawData_Clear"][1]["ov_cimguiname"] = "ImDrawData_Clear" defs["ImDrawData_Clear"][1]["ret"] = "void" defs["ImDrawData_Clear"][1]["signature"] = "()" @@ -825,7 +825,7 @@ defs["ImDrawData_DeIndexAllBuffers"][1]["call_args"] = "()" defs["ImDrawData_DeIndexAllBuffers"][1]["cimguiname"] = "ImDrawData_DeIndexAllBuffers" defs["ImDrawData_DeIndexAllBuffers"][1]["defaults"] = {} defs["ImDrawData_DeIndexAllBuffers"][1]["funcname"] = "DeIndexAllBuffers" -defs["ImDrawData_DeIndexAllBuffers"][1]["location"] = "imgui:2642" +defs["ImDrawData_DeIndexAllBuffers"][1]["location"] = "imgui:2755" defs["ImDrawData_DeIndexAllBuffers"][1]["ov_cimguiname"] = "ImDrawData_DeIndexAllBuffers" defs["ImDrawData_DeIndexAllBuffers"][1]["ret"] = "void" defs["ImDrawData_DeIndexAllBuffers"][1]["signature"] = "()" @@ -841,7 +841,7 @@ defs["ImDrawData_ImDrawData"][1]["cimguiname"] = "ImDrawData_ImDrawData" defs["ImDrawData_ImDrawData"][1]["constructor"] = true defs["ImDrawData_ImDrawData"][1]["defaults"] = {} defs["ImDrawData_ImDrawData"][1]["funcname"] = "ImDrawData" -defs["ImDrawData_ImDrawData"][1]["location"] = "imgui:2640" +defs["ImDrawData_ImDrawData"][1]["location"] = "imgui:2753" defs["ImDrawData_ImDrawData"][1]["ov_cimguiname"] = "ImDrawData_ImDrawData" defs["ImDrawData_ImDrawData"][1]["signature"] = "()" defs["ImDrawData_ImDrawData"][1]["stname"] = "ImDrawData" @@ -861,7 +861,7 @@ defs["ImDrawData_ScaleClipRects"][1]["call_args"] = "(fb_scale)" defs["ImDrawData_ScaleClipRects"][1]["cimguiname"] = "ImDrawData_ScaleClipRects" defs["ImDrawData_ScaleClipRects"][1]["defaults"] = {} defs["ImDrawData_ScaleClipRects"][1]["funcname"] = "ScaleClipRects" -defs["ImDrawData_ScaleClipRects"][1]["location"] = "imgui:2643" +defs["ImDrawData_ScaleClipRects"][1]["location"] = "imgui:2756" defs["ImDrawData_ScaleClipRects"][1]["ov_cimguiname"] = "ImDrawData_ScaleClipRects" defs["ImDrawData_ScaleClipRects"][1]["ret"] = "void" defs["ImDrawData_ScaleClipRects"][1]["signature"] = "(const ImVec2)" @@ -893,7 +893,7 @@ defs["ImDrawListSharedData_ImDrawListSharedData"][1]["cimguiname"] = "ImDrawList defs["ImDrawListSharedData_ImDrawListSharedData"][1]["constructor"] = true defs["ImDrawListSharedData_ImDrawListSharedData"][1]["defaults"] = {} defs["ImDrawListSharedData_ImDrawListSharedData"][1]["funcname"] = "ImDrawListSharedData" -defs["ImDrawListSharedData_ImDrawListSharedData"][1]["location"] = "imgui_internal:739" +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["location"] = "imgui_internal:778" defs["ImDrawListSharedData_ImDrawListSharedData"][1]["ov_cimguiname"] = "ImDrawListSharedData_ImDrawListSharedData" defs["ImDrawListSharedData_ImDrawListSharedData"][1]["signature"] = "()" defs["ImDrawListSharedData_ImDrawListSharedData"][1]["stname"] = "ImDrawListSharedData" @@ -913,7 +913,7 @@ defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["call_args"] = "(m defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["cimguiname"] = "ImDrawListSharedData_SetCircleTessellationMaxError" defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["defaults"] = {} defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["funcname"] = "SetCircleTessellationMaxError" -defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["location"] = "imgui_internal:740" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["location"] = "imgui_internal:779" defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["ov_cimguiname"] = "ImDrawListSharedData_SetCircleTessellationMaxError" defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["ret"] = "void" defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["signature"] = "(float)" @@ -947,7 +947,7 @@ defs["ImDrawListSplitter_Clear"][1]["call_args"] = "()" defs["ImDrawListSplitter_Clear"][1]["cimguiname"] = "ImDrawListSplitter_Clear" defs["ImDrawListSplitter_Clear"][1]["defaults"] = {} defs["ImDrawListSplitter_Clear"][1]["funcname"] = "Clear" -defs["ImDrawListSplitter_Clear"][1]["location"] = "imgui:2454" +defs["ImDrawListSplitter_Clear"][1]["location"] = "imgui:2565" defs["ImDrawListSplitter_Clear"][1]["ov_cimguiname"] = "ImDrawListSplitter_Clear" defs["ImDrawListSplitter_Clear"][1]["ret"] = "void" defs["ImDrawListSplitter_Clear"][1]["signature"] = "()" @@ -965,7 +965,7 @@ defs["ImDrawListSplitter_ClearFreeMemory"][1]["call_args"] = "()" defs["ImDrawListSplitter_ClearFreeMemory"][1]["cimguiname"] = "ImDrawListSplitter_ClearFreeMemory" defs["ImDrawListSplitter_ClearFreeMemory"][1]["defaults"] = {} defs["ImDrawListSplitter_ClearFreeMemory"][1]["funcname"] = "ClearFreeMemory" -defs["ImDrawListSplitter_ClearFreeMemory"][1]["location"] = "imgui:2455" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["location"] = "imgui:2566" defs["ImDrawListSplitter_ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawListSplitter_ClearFreeMemory" defs["ImDrawListSplitter_ClearFreeMemory"][1]["ret"] = "void" defs["ImDrawListSplitter_ClearFreeMemory"][1]["signature"] = "()" @@ -981,7 +981,7 @@ defs["ImDrawListSplitter_ImDrawListSplitter"][1]["cimguiname"] = "ImDrawListSpli defs["ImDrawListSplitter_ImDrawListSplitter"][1]["constructor"] = true defs["ImDrawListSplitter_ImDrawListSplitter"][1]["defaults"] = {} defs["ImDrawListSplitter_ImDrawListSplitter"][1]["funcname"] = "ImDrawListSplitter" -defs["ImDrawListSplitter_ImDrawListSplitter"][1]["location"] = "imgui:2452" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["location"] = "imgui:2563" defs["ImDrawListSplitter_ImDrawListSplitter"][1]["ov_cimguiname"] = "ImDrawListSplitter_ImDrawListSplitter" defs["ImDrawListSplitter_ImDrawListSplitter"][1]["signature"] = "()" defs["ImDrawListSplitter_ImDrawListSplitter"][1]["stname"] = "ImDrawListSplitter" @@ -1001,7 +1001,7 @@ defs["ImDrawListSplitter_Merge"][1]["call_args"] = "(draw_list)" defs["ImDrawListSplitter_Merge"][1]["cimguiname"] = "ImDrawListSplitter_Merge" defs["ImDrawListSplitter_Merge"][1]["defaults"] = {} defs["ImDrawListSplitter_Merge"][1]["funcname"] = "Merge" -defs["ImDrawListSplitter_Merge"][1]["location"] = "imgui:2457" +defs["ImDrawListSplitter_Merge"][1]["location"] = "imgui:2568" defs["ImDrawListSplitter_Merge"][1]["ov_cimguiname"] = "ImDrawListSplitter_Merge" defs["ImDrawListSplitter_Merge"][1]["ret"] = "void" defs["ImDrawListSplitter_Merge"][1]["signature"] = "(ImDrawList*)" @@ -1025,7 +1025,7 @@ defs["ImDrawListSplitter_SetCurrentChannel"][1]["call_args"] = "(draw_list,chann defs["ImDrawListSplitter_SetCurrentChannel"][1]["cimguiname"] = "ImDrawListSplitter_SetCurrentChannel" defs["ImDrawListSplitter_SetCurrentChannel"][1]["defaults"] = {} defs["ImDrawListSplitter_SetCurrentChannel"][1]["funcname"] = "SetCurrentChannel" -defs["ImDrawListSplitter_SetCurrentChannel"][1]["location"] = "imgui:2458" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["location"] = "imgui:2569" defs["ImDrawListSplitter_SetCurrentChannel"][1]["ov_cimguiname"] = "ImDrawListSplitter_SetCurrentChannel" defs["ImDrawListSplitter_SetCurrentChannel"][1]["ret"] = "void" defs["ImDrawListSplitter_SetCurrentChannel"][1]["signature"] = "(ImDrawList*,int)" @@ -1049,7 +1049,7 @@ defs["ImDrawListSplitter_Split"][1]["call_args"] = "(draw_list,count)" defs["ImDrawListSplitter_Split"][1]["cimguiname"] = "ImDrawListSplitter_Split" defs["ImDrawListSplitter_Split"][1]["defaults"] = {} defs["ImDrawListSplitter_Split"][1]["funcname"] = "Split" -defs["ImDrawListSplitter_Split"][1]["location"] = "imgui:2456" +defs["ImDrawListSplitter_Split"][1]["location"] = "imgui:2567" defs["ImDrawListSplitter_Split"][1]["ov_cimguiname"] = "ImDrawListSplitter_Split" defs["ImDrawListSplitter_Split"][1]["ret"] = "void" defs["ImDrawListSplitter_Split"][1]["signature"] = "(ImDrawList*,int)" @@ -1066,7 +1066,7 @@ defs["ImDrawListSplitter_destroy"][1]["call_args"] = "(self)" defs["ImDrawListSplitter_destroy"][1]["cimguiname"] = "ImDrawListSplitter_destroy" defs["ImDrawListSplitter_destroy"][1]["defaults"] = {} defs["ImDrawListSplitter_destroy"][1]["destructor"] = true -defs["ImDrawListSplitter_destroy"][1]["location"] = "imgui:2453" +defs["ImDrawListSplitter_destroy"][1]["location"] = "imgui:2564" defs["ImDrawListSplitter_destroy"][1]["ov_cimguiname"] = "ImDrawListSplitter_destroy" defs["ImDrawListSplitter_destroy"][1]["realdestructor"] = true defs["ImDrawListSplitter_destroy"][1]["ret"] = "void" @@ -1107,7 +1107,7 @@ defs["ImDrawList_AddBezierCubic"][1]["cimguiname"] = "ImDrawList_AddBezierCubic" defs["ImDrawList_AddBezierCubic"][1]["defaults"] = {} defs["ImDrawList_AddBezierCubic"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_AddBezierCubic"][1]["funcname"] = "AddBezierCubic" -defs["ImDrawList_AddBezierCubic"][1]["location"] = "imgui:2556" +defs["ImDrawList_AddBezierCubic"][1]["location"] = "imgui:2668" defs["ImDrawList_AddBezierCubic"][1]["ov_cimguiname"] = "ImDrawList_AddBezierCubic" defs["ImDrawList_AddBezierCubic"][1]["ret"] = "void" defs["ImDrawList_AddBezierCubic"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)" @@ -1144,7 +1144,7 @@ defs["ImDrawList_AddBezierQuadratic"][1]["cimguiname"] = "ImDrawList_AddBezierQu defs["ImDrawList_AddBezierQuadratic"][1]["defaults"] = {} defs["ImDrawList_AddBezierQuadratic"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_AddBezierQuadratic"][1]["funcname"] = "AddBezierQuadratic" -defs["ImDrawList_AddBezierQuadratic"][1]["location"] = "imgui:2557" +defs["ImDrawList_AddBezierQuadratic"][1]["location"] = "imgui:2669" defs["ImDrawList_AddBezierQuadratic"][1]["ov_cimguiname"] = "ImDrawList_AddBezierQuadratic" defs["ImDrawList_AddBezierQuadratic"][1]["ret"] = "void" defs["ImDrawList_AddBezierQuadratic"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)" @@ -1168,7 +1168,7 @@ defs["ImDrawList_AddCallback"][1]["call_args"] = "(callback,callback_data)" defs["ImDrawList_AddCallback"][1]["cimguiname"] = "ImDrawList_AddCallback" defs["ImDrawList_AddCallback"][1]["defaults"] = {} defs["ImDrawList_AddCallback"][1]["funcname"] = "AddCallback" -defs["ImDrawList_AddCallback"][1]["location"] = "imgui:2580" +defs["ImDrawList_AddCallback"][1]["location"] = "imgui:2693" defs["ImDrawList_AddCallback"][1]["ov_cimguiname"] = "ImDrawList_AddCallback" defs["ImDrawList_AddCallback"][1]["ret"] = "void" defs["ImDrawList_AddCallback"][1]["signature"] = "(ImDrawCallback,void*)" @@ -1203,7 +1203,7 @@ defs["ImDrawList_AddCircle"][1]["defaults"] = {} defs["ImDrawList_AddCircle"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_AddCircle"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddCircle"][1]["funcname"] = "AddCircle" -defs["ImDrawList_AddCircle"][1]["location"] = "imgui:2548" +defs["ImDrawList_AddCircle"][1]["location"] = "imgui:2660" defs["ImDrawList_AddCircle"][1]["ov_cimguiname"] = "ImDrawList_AddCircle" defs["ImDrawList_AddCircle"][1]["ret"] = "void" defs["ImDrawList_AddCircle"][1]["signature"] = "(const ImVec2,float,ImU32,int,float)" @@ -1234,7 +1234,7 @@ defs["ImDrawList_AddCircleFilled"][1]["cimguiname"] = "ImDrawList_AddCircleFille defs["ImDrawList_AddCircleFilled"][1]["defaults"] = {} defs["ImDrawList_AddCircleFilled"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_AddCircleFilled"][1]["funcname"] = "AddCircleFilled" -defs["ImDrawList_AddCircleFilled"][1]["location"] = "imgui:2549" +defs["ImDrawList_AddCircleFilled"][1]["location"] = "imgui:2661" defs["ImDrawList_AddCircleFilled"][1]["ov_cimguiname"] = "ImDrawList_AddCircleFilled" defs["ImDrawList_AddCircleFilled"][1]["ret"] = "void" defs["ImDrawList_AddCircleFilled"][1]["signature"] = "(const ImVec2,float,ImU32,int)" @@ -1261,7 +1261,7 @@ defs["ImDrawList_AddConvexPolyFilled"][1]["call_args"] = "(points,num_points,col defs["ImDrawList_AddConvexPolyFilled"][1]["cimguiname"] = "ImDrawList_AddConvexPolyFilled" defs["ImDrawList_AddConvexPolyFilled"][1]["defaults"] = {} defs["ImDrawList_AddConvexPolyFilled"][1]["funcname"] = "AddConvexPolyFilled" -defs["ImDrawList_AddConvexPolyFilled"][1]["location"] = "imgui:2555" +defs["ImDrawList_AddConvexPolyFilled"][1]["location"] = "imgui:2667" defs["ImDrawList_AddConvexPolyFilled"][1]["ov_cimguiname"] = "ImDrawList_AddConvexPolyFilled" defs["ImDrawList_AddConvexPolyFilled"][1]["ret"] = "void" defs["ImDrawList_AddConvexPolyFilled"][1]["signature"] = "(const ImVec2*,int,ImU32)" @@ -1279,7 +1279,7 @@ defs["ImDrawList_AddDrawCmd"][1]["call_args"] = "()" defs["ImDrawList_AddDrawCmd"][1]["cimguiname"] = "ImDrawList_AddDrawCmd" defs["ImDrawList_AddDrawCmd"][1]["defaults"] = {} defs["ImDrawList_AddDrawCmd"][1]["funcname"] = "AddDrawCmd" -defs["ImDrawList_AddDrawCmd"][1]["location"] = "imgui:2581" +defs["ImDrawList_AddDrawCmd"][1]["location"] = "imgui:2694" defs["ImDrawList_AddDrawCmd"][1]["ov_cimguiname"] = "ImDrawList_AddDrawCmd" defs["ImDrawList_AddDrawCmd"][1]["ret"] = "void" defs["ImDrawList_AddDrawCmd"][1]["signature"] = "()" @@ -1318,7 +1318,7 @@ defs["ImDrawList_AddImage"][1]["defaults"]["col"] = "4294967295" defs["ImDrawList_AddImage"][1]["defaults"]["uv_max"] = "ImVec2(1,1)" defs["ImDrawList_AddImage"][1]["defaults"]["uv_min"] = "ImVec2(0,0)" defs["ImDrawList_AddImage"][1]["funcname"] = "AddImage" -defs["ImDrawList_AddImage"][1]["location"] = "imgui:2563" +defs["ImDrawList_AddImage"][1]["location"] = "imgui:2675" defs["ImDrawList_AddImage"][1]["ov_cimguiname"] = "ImDrawList_AddImage" defs["ImDrawList_AddImage"][1]["ret"] = "void" defs["ImDrawList_AddImage"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -1371,7 +1371,7 @@ defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv2"] = "ImVec2(1,0)" defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv3"] = "ImVec2(1,1)" defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv4"] = "ImVec2(0,1)" defs["ImDrawList_AddImageQuad"][1]["funcname"] = "AddImageQuad" -defs["ImDrawList_AddImageQuad"][1]["location"] = "imgui:2564" +defs["ImDrawList_AddImageQuad"][1]["location"] = "imgui:2676" defs["ImDrawList_AddImageQuad"][1]["ov_cimguiname"] = "ImDrawList_AddImageQuad" defs["ImDrawList_AddImageQuad"][1]["ret"] = "void" defs["ImDrawList_AddImageQuad"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -1414,7 +1414,7 @@ defs["ImDrawList_AddImageRounded"][1]["cimguiname"] = "ImDrawList_AddImageRounde defs["ImDrawList_AddImageRounded"][1]["defaults"] = {} defs["ImDrawList_AddImageRounded"][1]["defaults"]["flags"] = "0" defs["ImDrawList_AddImageRounded"][1]["funcname"] = "AddImageRounded" -defs["ImDrawList_AddImageRounded"][1]["location"] = "imgui:2565" +defs["ImDrawList_AddImageRounded"][1]["location"] = "imgui:2677" defs["ImDrawList_AddImageRounded"][1]["ov_cimguiname"] = "ImDrawList_AddImageRounded" defs["ImDrawList_AddImageRounded"][1]["ret"] = "void" defs["ImDrawList_AddImageRounded"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)" @@ -1445,7 +1445,7 @@ defs["ImDrawList_AddLine"][1]["cimguiname"] = "ImDrawList_AddLine" defs["ImDrawList_AddLine"][1]["defaults"] = {} defs["ImDrawList_AddLine"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddLine"][1]["funcname"] = "AddLine" -defs["ImDrawList_AddLine"][1]["location"] = "imgui:2540" +defs["ImDrawList_AddLine"][1]["location"] = "imgui:2652" defs["ImDrawList_AddLine"][1]["ov_cimguiname"] = "ImDrawList_AddLine" defs["ImDrawList_AddLine"][1]["ret"] = "void" defs["ImDrawList_AddLine"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float)" @@ -1479,7 +1479,7 @@ defs["ImDrawList_AddNgon"][1]["cimguiname"] = "ImDrawList_AddNgon" defs["ImDrawList_AddNgon"][1]["defaults"] = {} defs["ImDrawList_AddNgon"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddNgon"][1]["funcname"] = "AddNgon" -defs["ImDrawList_AddNgon"][1]["location"] = "imgui:2550" +defs["ImDrawList_AddNgon"][1]["location"] = "imgui:2662" defs["ImDrawList_AddNgon"][1]["ov_cimguiname"] = "ImDrawList_AddNgon" defs["ImDrawList_AddNgon"][1]["ret"] = "void" defs["ImDrawList_AddNgon"][1]["signature"] = "(const ImVec2,float,ImU32,int,float)" @@ -1509,7 +1509,7 @@ defs["ImDrawList_AddNgonFilled"][1]["call_args"] = "(center,radius,col,num_segme defs["ImDrawList_AddNgonFilled"][1]["cimguiname"] = "ImDrawList_AddNgonFilled" defs["ImDrawList_AddNgonFilled"][1]["defaults"] = {} defs["ImDrawList_AddNgonFilled"][1]["funcname"] = "AddNgonFilled" -defs["ImDrawList_AddNgonFilled"][1]["location"] = "imgui:2551" +defs["ImDrawList_AddNgonFilled"][1]["location"] = "imgui:2663" defs["ImDrawList_AddNgonFilled"][1]["ov_cimguiname"] = "ImDrawList_AddNgonFilled" defs["ImDrawList_AddNgonFilled"][1]["ret"] = "void" defs["ImDrawList_AddNgonFilled"][1]["signature"] = "(const ImVec2,float,ImU32,int)" @@ -1542,7 +1542,7 @@ defs["ImDrawList_AddPolyline"][1]["call_args"] = "(points,num_points,col,flags,t defs["ImDrawList_AddPolyline"][1]["cimguiname"] = "ImDrawList_AddPolyline" defs["ImDrawList_AddPolyline"][1]["defaults"] = {} defs["ImDrawList_AddPolyline"][1]["funcname"] = "AddPolyline" -defs["ImDrawList_AddPolyline"][1]["location"] = "imgui:2554" +defs["ImDrawList_AddPolyline"][1]["location"] = "imgui:2666" defs["ImDrawList_AddPolyline"][1]["ov_cimguiname"] = "ImDrawList_AddPolyline" defs["ImDrawList_AddPolyline"][1]["ret"] = "void" defs["ImDrawList_AddPolyline"][1]["signature"] = "(const ImVec2*,int,ImU32,ImDrawFlags,float)" @@ -1579,7 +1579,7 @@ defs["ImDrawList_AddQuad"][1]["cimguiname"] = "ImDrawList_AddQuad" defs["ImDrawList_AddQuad"][1]["defaults"] = {} defs["ImDrawList_AddQuad"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddQuad"][1]["funcname"] = "AddQuad" -defs["ImDrawList_AddQuad"][1]["location"] = "imgui:2544" +defs["ImDrawList_AddQuad"][1]["location"] = "imgui:2656" defs["ImDrawList_AddQuad"][1]["ov_cimguiname"] = "ImDrawList_AddQuad" defs["ImDrawList_AddQuad"][1]["ret"] = "void" defs["ImDrawList_AddQuad"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)" @@ -1612,7 +1612,7 @@ defs["ImDrawList_AddQuadFilled"][1]["call_args"] = "(p1,p2,p3,p4,col)" defs["ImDrawList_AddQuadFilled"][1]["cimguiname"] = "ImDrawList_AddQuadFilled" defs["ImDrawList_AddQuadFilled"][1]["defaults"] = {} defs["ImDrawList_AddQuadFilled"][1]["funcname"] = "AddQuadFilled" -defs["ImDrawList_AddQuadFilled"][1]["location"] = "imgui:2545" +defs["ImDrawList_AddQuadFilled"][1]["location"] = "imgui:2657" defs["ImDrawList_AddQuadFilled"][1]["ov_cimguiname"] = "ImDrawList_AddQuadFilled" defs["ImDrawList_AddQuadFilled"][1]["ret"] = "void" defs["ImDrawList_AddQuadFilled"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -1651,7 +1651,7 @@ defs["ImDrawList_AddRect"][1]["defaults"]["flags"] = "0" defs["ImDrawList_AddRect"][1]["defaults"]["rounding"] = "0.0f" defs["ImDrawList_AddRect"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddRect"][1]["funcname"] = "AddRect" -defs["ImDrawList_AddRect"][1]["location"] = "imgui:2541" +defs["ImDrawList_AddRect"][1]["location"] = "imgui:2653" defs["ImDrawList_AddRect"][1]["ov_cimguiname"] = "ImDrawList_AddRect" defs["ImDrawList_AddRect"][1]["ret"] = "void" defs["ImDrawList_AddRect"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)" @@ -1686,7 +1686,7 @@ defs["ImDrawList_AddRectFilled"][1]["defaults"] = {} defs["ImDrawList_AddRectFilled"][1]["defaults"]["flags"] = "0" defs["ImDrawList_AddRectFilled"][1]["defaults"]["rounding"] = "0.0f" defs["ImDrawList_AddRectFilled"][1]["funcname"] = "AddRectFilled" -defs["ImDrawList_AddRectFilled"][1]["location"] = "imgui:2542" +defs["ImDrawList_AddRectFilled"][1]["location"] = "imgui:2654" defs["ImDrawList_AddRectFilled"][1]["ov_cimguiname"] = "ImDrawList_AddRectFilled" defs["ImDrawList_AddRectFilled"][1]["ret"] = "void" defs["ImDrawList_AddRectFilled"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)" @@ -1722,7 +1722,7 @@ defs["ImDrawList_AddRectFilledMultiColor"][1]["call_args"] = "(p_min,p_max,col_u defs["ImDrawList_AddRectFilledMultiColor"][1]["cimguiname"] = "ImDrawList_AddRectFilledMultiColor" defs["ImDrawList_AddRectFilledMultiColor"][1]["defaults"] = {} defs["ImDrawList_AddRectFilledMultiColor"][1]["funcname"] = "AddRectFilledMultiColor" -defs["ImDrawList_AddRectFilledMultiColor"][1]["location"] = "imgui:2543" +defs["ImDrawList_AddRectFilledMultiColor"][1]["location"] = "imgui:2655" defs["ImDrawList_AddRectFilledMultiColor"][1]["ov_cimguiname"] = "ImDrawList_AddRectFilledMultiColor" defs["ImDrawList_AddRectFilledMultiColor"][1]["ret"] = "void" defs["ImDrawList_AddRectFilledMultiColor"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)" @@ -1753,8 +1753,8 @@ defs["ImDrawList_AddText"][1]["cimguiname"] = "ImDrawList_AddText" defs["ImDrawList_AddText"][1]["defaults"] = {} defs["ImDrawList_AddText"][1]["defaults"]["text_end"] = "NULL" defs["ImDrawList_AddText"][1]["funcname"] = "AddText" -defs["ImDrawList_AddText"][1]["location"] = "imgui:2552" -defs["ImDrawList_AddText"][1]["ov_cimguiname"] = "ImDrawList_AddTextVec2" +defs["ImDrawList_AddText"][1]["location"] = "imgui:2664" +defs["ImDrawList_AddText"][1]["ov_cimguiname"] = "ImDrawList_AddText_Vec2" defs["ImDrawList_AddText"][1]["ret"] = "void" defs["ImDrawList_AddText"][1]["signature"] = "(const ImVec2,ImU32,const char*,const char*)" defs["ImDrawList_AddText"][1]["stname"] = "ImDrawList" @@ -1796,8 +1796,8 @@ defs["ImDrawList_AddText"][2]["defaults"]["cpu_fine_clip_rect"] = "NULL" defs["ImDrawList_AddText"][2]["defaults"]["text_end"] = "NULL" defs["ImDrawList_AddText"][2]["defaults"]["wrap_width"] = "0.0f" defs["ImDrawList_AddText"][2]["funcname"] = "AddText" -defs["ImDrawList_AddText"][2]["location"] = "imgui:2553" -defs["ImDrawList_AddText"][2]["ov_cimguiname"] = "ImDrawList_AddTextFontPtr" +defs["ImDrawList_AddText"][2]["location"] = "imgui:2665" +defs["ImDrawList_AddText"][2]["ov_cimguiname"] = "ImDrawList_AddText_FontPtr" defs["ImDrawList_AddText"][2]["ret"] = "void" defs["ImDrawList_AddText"][2]["signature"] = "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)" defs["ImDrawList_AddText"][2]["stname"] = "ImDrawList" @@ -1831,7 +1831,7 @@ defs["ImDrawList_AddTriangle"][1]["cimguiname"] = "ImDrawList_AddTriangle" defs["ImDrawList_AddTriangle"][1]["defaults"] = {} defs["ImDrawList_AddTriangle"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddTriangle"][1]["funcname"] = "AddTriangle" -defs["ImDrawList_AddTriangle"][1]["location"] = "imgui:2546" +defs["ImDrawList_AddTriangle"][1]["location"] = "imgui:2658" defs["ImDrawList_AddTriangle"][1]["ov_cimguiname"] = "ImDrawList_AddTriangle" defs["ImDrawList_AddTriangle"][1]["ret"] = "void" defs["ImDrawList_AddTriangle"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)" @@ -1861,7 +1861,7 @@ defs["ImDrawList_AddTriangleFilled"][1]["call_args"] = "(p1,p2,p3,col)" defs["ImDrawList_AddTriangleFilled"][1]["cimguiname"] = "ImDrawList_AddTriangleFilled" defs["ImDrawList_AddTriangleFilled"][1]["defaults"] = {} defs["ImDrawList_AddTriangleFilled"][1]["funcname"] = "AddTriangleFilled" -defs["ImDrawList_AddTriangleFilled"][1]["location"] = "imgui:2547" +defs["ImDrawList_AddTriangleFilled"][1]["location"] = "imgui:2659" defs["ImDrawList_AddTriangleFilled"][1]["ov_cimguiname"] = "ImDrawList_AddTriangleFilled" defs["ImDrawList_AddTriangleFilled"][1]["ret"] = "void" defs["ImDrawList_AddTriangleFilled"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -1879,7 +1879,7 @@ defs["ImDrawList_ChannelsMerge"][1]["call_args"] = "()" defs["ImDrawList_ChannelsMerge"][1]["cimguiname"] = "ImDrawList_ChannelsMerge" defs["ImDrawList_ChannelsMerge"][1]["defaults"] = {} defs["ImDrawList_ChannelsMerge"][1]["funcname"] = "ChannelsMerge" -defs["ImDrawList_ChannelsMerge"][1]["location"] = "imgui:2591" +defs["ImDrawList_ChannelsMerge"][1]["location"] = "imgui:2704" defs["ImDrawList_ChannelsMerge"][1]["ov_cimguiname"] = "ImDrawList_ChannelsMerge" defs["ImDrawList_ChannelsMerge"][1]["ret"] = "void" defs["ImDrawList_ChannelsMerge"][1]["signature"] = "()" @@ -1900,7 +1900,7 @@ defs["ImDrawList_ChannelsSetCurrent"][1]["call_args"] = "(n)" defs["ImDrawList_ChannelsSetCurrent"][1]["cimguiname"] = "ImDrawList_ChannelsSetCurrent" defs["ImDrawList_ChannelsSetCurrent"][1]["defaults"] = {} defs["ImDrawList_ChannelsSetCurrent"][1]["funcname"] = "ChannelsSetCurrent" -defs["ImDrawList_ChannelsSetCurrent"][1]["location"] = "imgui:2592" +defs["ImDrawList_ChannelsSetCurrent"][1]["location"] = "imgui:2705" defs["ImDrawList_ChannelsSetCurrent"][1]["ov_cimguiname"] = "ImDrawList_ChannelsSetCurrent" defs["ImDrawList_ChannelsSetCurrent"][1]["ret"] = "void" defs["ImDrawList_ChannelsSetCurrent"][1]["signature"] = "(int)" @@ -1921,7 +1921,7 @@ defs["ImDrawList_ChannelsSplit"][1]["call_args"] = "(count)" defs["ImDrawList_ChannelsSplit"][1]["cimguiname"] = "ImDrawList_ChannelsSplit" defs["ImDrawList_ChannelsSplit"][1]["defaults"] = {} defs["ImDrawList_ChannelsSplit"][1]["funcname"] = "ChannelsSplit" -defs["ImDrawList_ChannelsSplit"][1]["location"] = "imgui:2590" +defs["ImDrawList_ChannelsSplit"][1]["location"] = "imgui:2703" defs["ImDrawList_ChannelsSplit"][1]["ov_cimguiname"] = "ImDrawList_ChannelsSplit" defs["ImDrawList_ChannelsSplit"][1]["ret"] = "void" defs["ImDrawList_ChannelsSplit"][1]["signature"] = "(int)" @@ -1939,7 +1939,7 @@ defs["ImDrawList_CloneOutput"][1]["call_args"] = "()" defs["ImDrawList_CloneOutput"][1]["cimguiname"] = "ImDrawList_CloneOutput" defs["ImDrawList_CloneOutput"][1]["defaults"] = {} defs["ImDrawList_CloneOutput"][1]["funcname"] = "CloneOutput" -defs["ImDrawList_CloneOutput"][1]["location"] = "imgui:2582" +defs["ImDrawList_CloneOutput"][1]["location"] = "imgui:2695" defs["ImDrawList_CloneOutput"][1]["ov_cimguiname"] = "ImDrawList_CloneOutput" defs["ImDrawList_CloneOutput"][1]["ret"] = "ImDrawList*" defs["ImDrawList_CloneOutput"][1]["signature"] = "()const" @@ -1960,7 +1960,7 @@ defs["ImDrawList_GetClipRectMax"][1]["call_args"] = "()" defs["ImDrawList_GetClipRectMax"][1]["cimguiname"] = "ImDrawList_GetClipRectMax" defs["ImDrawList_GetClipRectMax"][1]["defaults"] = {} defs["ImDrawList_GetClipRectMax"][1]["funcname"] = "GetClipRectMax" -defs["ImDrawList_GetClipRectMax"][1]["location"] = "imgui:2532" +defs["ImDrawList_GetClipRectMax"][1]["location"] = "imgui:2643" defs["ImDrawList_GetClipRectMax"][1]["nonUDT"] = 1 defs["ImDrawList_GetClipRectMax"][1]["ov_cimguiname"] = "ImDrawList_GetClipRectMax" defs["ImDrawList_GetClipRectMax"][1]["ret"] = "void" @@ -1982,7 +1982,7 @@ defs["ImDrawList_GetClipRectMin"][1]["call_args"] = "()" defs["ImDrawList_GetClipRectMin"][1]["cimguiname"] = "ImDrawList_GetClipRectMin" defs["ImDrawList_GetClipRectMin"][1]["defaults"] = {} defs["ImDrawList_GetClipRectMin"][1]["funcname"] = "GetClipRectMin" -defs["ImDrawList_GetClipRectMin"][1]["location"] = "imgui:2531" +defs["ImDrawList_GetClipRectMin"][1]["location"] = "imgui:2642" defs["ImDrawList_GetClipRectMin"][1]["nonUDT"] = 1 defs["ImDrawList_GetClipRectMin"][1]["ov_cimguiname"] = "ImDrawList_GetClipRectMin" defs["ImDrawList_GetClipRectMin"][1]["ret"] = "void" @@ -1991,22 +1991,22 @@ defs["ImDrawList_GetClipRectMin"][1]["stname"] = "ImDrawList" defs["ImDrawList_GetClipRectMin"]["()const"] = defs["ImDrawList_GetClipRectMin"][1] defs["ImDrawList_ImDrawList"] = {} defs["ImDrawList_ImDrawList"][1] = {} -defs["ImDrawList_ImDrawList"][1]["args"] = "(const ImDrawListSharedData* shared_data)" +defs["ImDrawList_ImDrawList"][1]["args"] = "(ImDrawListSharedData* shared_data)" defs["ImDrawList_ImDrawList"][1]["argsT"] = {} defs["ImDrawList_ImDrawList"][1]["argsT"][1] = {} defs["ImDrawList_ImDrawList"][1]["argsT"][1]["name"] = "shared_data" -defs["ImDrawList_ImDrawList"][1]["argsT"][1]["type"] = "const ImDrawListSharedData*" -defs["ImDrawList_ImDrawList"][1]["argsoriginal"] = "(const ImDrawListSharedData* shared_data)" +defs["ImDrawList_ImDrawList"][1]["argsT"][1]["type"] = "ImDrawListSharedData*" +defs["ImDrawList_ImDrawList"][1]["argsoriginal"] = "(ImDrawListSharedData* shared_data)" defs["ImDrawList_ImDrawList"][1]["call_args"] = "(shared_data)" defs["ImDrawList_ImDrawList"][1]["cimguiname"] = "ImDrawList_ImDrawList" defs["ImDrawList_ImDrawList"][1]["constructor"] = true defs["ImDrawList_ImDrawList"][1]["defaults"] = {} defs["ImDrawList_ImDrawList"][1]["funcname"] = "ImDrawList" -defs["ImDrawList_ImDrawList"][1]["location"] = "imgui:2523" +defs["ImDrawList_ImDrawList"][1]["location"] = "imgui:2634" defs["ImDrawList_ImDrawList"][1]["ov_cimguiname"] = "ImDrawList_ImDrawList" -defs["ImDrawList_ImDrawList"][1]["signature"] = "(const ImDrawListSharedData*)" +defs["ImDrawList_ImDrawList"][1]["signature"] = "(ImDrawListSharedData*)" defs["ImDrawList_ImDrawList"][1]["stname"] = "ImDrawList" -defs["ImDrawList_ImDrawList"]["(const ImDrawListSharedData*)"] = defs["ImDrawList_ImDrawList"][1] +defs["ImDrawList_ImDrawList"]["(ImDrawListSharedData*)"] = defs["ImDrawList_ImDrawList"][1] defs["ImDrawList_PathArcTo"] = {} defs["ImDrawList_PathArcTo"][1] = {} defs["ImDrawList_PathArcTo"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)" @@ -2035,7 +2035,7 @@ defs["ImDrawList_PathArcTo"][1]["cimguiname"] = "ImDrawList_PathArcTo" defs["ImDrawList_PathArcTo"][1]["defaults"] = {} defs["ImDrawList_PathArcTo"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_PathArcTo"][1]["funcname"] = "PathArcTo" -defs["ImDrawList_PathArcTo"][1]["location"] = "imgui:2573" +defs["ImDrawList_PathArcTo"][1]["location"] = "imgui:2686" defs["ImDrawList_PathArcTo"][1]["ov_cimguiname"] = "ImDrawList_PathArcTo" defs["ImDrawList_PathArcTo"][1]["ret"] = "void" defs["ImDrawList_PathArcTo"][1]["signature"] = "(const ImVec2,float,float,float,int)" @@ -2065,7 +2065,7 @@ defs["ImDrawList_PathArcToFast"][1]["call_args"] = "(center,radius,a_min_of_12,a defs["ImDrawList_PathArcToFast"][1]["cimguiname"] = "ImDrawList_PathArcToFast" defs["ImDrawList_PathArcToFast"][1]["defaults"] = {} defs["ImDrawList_PathArcToFast"][1]["funcname"] = "PathArcToFast" -defs["ImDrawList_PathArcToFast"][1]["location"] = "imgui:2574" +defs["ImDrawList_PathArcToFast"][1]["location"] = "imgui:2687" defs["ImDrawList_PathArcToFast"][1]["ov_cimguiname"] = "ImDrawList_PathArcToFast" defs["ImDrawList_PathArcToFast"][1]["ret"] = "void" defs["ImDrawList_PathArcToFast"][1]["signature"] = "(const ImVec2,float,int,int)" @@ -2096,7 +2096,7 @@ defs["ImDrawList_PathBezierCubicCurveTo"][1]["cimguiname"] = "ImDrawList_PathBez defs["ImDrawList_PathBezierCubicCurveTo"][1]["defaults"] = {} defs["ImDrawList_PathBezierCubicCurveTo"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_PathBezierCubicCurveTo"][1]["funcname"] = "PathBezierCubicCurveTo" -defs["ImDrawList_PathBezierCubicCurveTo"][1]["location"] = "imgui:2575" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["location"] = "imgui:2688" defs["ImDrawList_PathBezierCubicCurveTo"][1]["ov_cimguiname"] = "ImDrawList_PathBezierCubicCurveTo" defs["ImDrawList_PathBezierCubicCurveTo"][1]["ret"] = "void" defs["ImDrawList_PathBezierCubicCurveTo"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,int)" @@ -2124,7 +2124,7 @@ defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["cimguiname"] = "ImDrawList_Pat defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["defaults"] = {} defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["funcname"] = "PathBezierQuadraticCurveTo" -defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["location"] = "imgui:2576" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["location"] = "imgui:2689" defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["ov_cimguiname"] = "ImDrawList_PathBezierQuadraticCurveTo" defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["ret"] = "void" defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["signature"] = "(const ImVec2,const ImVec2,int)" @@ -2142,7 +2142,7 @@ defs["ImDrawList_PathClear"][1]["call_args"] = "()" defs["ImDrawList_PathClear"][1]["cimguiname"] = "ImDrawList_PathClear" defs["ImDrawList_PathClear"][1]["defaults"] = {} defs["ImDrawList_PathClear"][1]["funcname"] = "PathClear" -defs["ImDrawList_PathClear"][1]["location"] = "imgui:2568" +defs["ImDrawList_PathClear"][1]["location"] = "imgui:2681" defs["ImDrawList_PathClear"][1]["ov_cimguiname"] = "ImDrawList_PathClear" defs["ImDrawList_PathClear"][1]["ret"] = "void" defs["ImDrawList_PathClear"][1]["signature"] = "()" @@ -2163,7 +2163,7 @@ defs["ImDrawList_PathFillConvex"][1]["call_args"] = "(col)" defs["ImDrawList_PathFillConvex"][1]["cimguiname"] = "ImDrawList_PathFillConvex" defs["ImDrawList_PathFillConvex"][1]["defaults"] = {} defs["ImDrawList_PathFillConvex"][1]["funcname"] = "PathFillConvex" -defs["ImDrawList_PathFillConvex"][1]["location"] = "imgui:2571" +defs["ImDrawList_PathFillConvex"][1]["location"] = "imgui:2684" defs["ImDrawList_PathFillConvex"][1]["ov_cimguiname"] = "ImDrawList_PathFillConvex" defs["ImDrawList_PathFillConvex"][1]["ret"] = "void" defs["ImDrawList_PathFillConvex"][1]["signature"] = "(ImU32)" @@ -2184,7 +2184,7 @@ defs["ImDrawList_PathLineTo"][1]["call_args"] = "(pos)" defs["ImDrawList_PathLineTo"][1]["cimguiname"] = "ImDrawList_PathLineTo" defs["ImDrawList_PathLineTo"][1]["defaults"] = {} defs["ImDrawList_PathLineTo"][1]["funcname"] = "PathLineTo" -defs["ImDrawList_PathLineTo"][1]["location"] = "imgui:2569" +defs["ImDrawList_PathLineTo"][1]["location"] = "imgui:2682" defs["ImDrawList_PathLineTo"][1]["ov_cimguiname"] = "ImDrawList_PathLineTo" defs["ImDrawList_PathLineTo"][1]["ret"] = "void" defs["ImDrawList_PathLineTo"][1]["signature"] = "(const ImVec2)" @@ -2205,7 +2205,7 @@ defs["ImDrawList_PathLineToMergeDuplicate"][1]["call_args"] = "(pos)" defs["ImDrawList_PathLineToMergeDuplicate"][1]["cimguiname"] = "ImDrawList_PathLineToMergeDuplicate" defs["ImDrawList_PathLineToMergeDuplicate"][1]["defaults"] = {} defs["ImDrawList_PathLineToMergeDuplicate"][1]["funcname"] = "PathLineToMergeDuplicate" -defs["ImDrawList_PathLineToMergeDuplicate"][1]["location"] = "imgui:2570" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["location"] = "imgui:2683" defs["ImDrawList_PathLineToMergeDuplicate"][1]["ov_cimguiname"] = "ImDrawList_PathLineToMergeDuplicate" defs["ImDrawList_PathLineToMergeDuplicate"][1]["ret"] = "void" defs["ImDrawList_PathLineToMergeDuplicate"][1]["signature"] = "(const ImVec2)" @@ -2237,7 +2237,7 @@ defs["ImDrawList_PathRect"][1]["defaults"] = {} defs["ImDrawList_PathRect"][1]["defaults"]["flags"] = "0" defs["ImDrawList_PathRect"][1]["defaults"]["rounding"] = "0.0f" defs["ImDrawList_PathRect"][1]["funcname"] = "PathRect" -defs["ImDrawList_PathRect"][1]["location"] = "imgui:2577" +defs["ImDrawList_PathRect"][1]["location"] = "imgui:2690" defs["ImDrawList_PathRect"][1]["ov_cimguiname"] = "ImDrawList_PathRect" defs["ImDrawList_PathRect"][1]["ret"] = "void" defs["ImDrawList_PathRect"][1]["signature"] = "(const ImVec2,const ImVec2,float,ImDrawFlags)" @@ -2266,7 +2266,7 @@ defs["ImDrawList_PathStroke"][1]["defaults"] = {} defs["ImDrawList_PathStroke"][1]["defaults"]["flags"] = "0" defs["ImDrawList_PathStroke"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_PathStroke"][1]["funcname"] = "PathStroke" -defs["ImDrawList_PathStroke"][1]["location"] = "imgui:2572" +defs["ImDrawList_PathStroke"][1]["location"] = "imgui:2685" defs["ImDrawList_PathStroke"][1]["ov_cimguiname"] = "ImDrawList_PathStroke" defs["ImDrawList_PathStroke"][1]["ret"] = "void" defs["ImDrawList_PathStroke"][1]["signature"] = "(ImU32,ImDrawFlags,float)" @@ -2284,7 +2284,7 @@ defs["ImDrawList_PopClipRect"][1]["call_args"] = "()" defs["ImDrawList_PopClipRect"][1]["cimguiname"] = "ImDrawList_PopClipRect" defs["ImDrawList_PopClipRect"][1]["defaults"] = {} defs["ImDrawList_PopClipRect"][1]["funcname"] = "PopClipRect" -defs["ImDrawList_PopClipRect"][1]["location"] = "imgui:2528" +defs["ImDrawList_PopClipRect"][1]["location"] = "imgui:2639" defs["ImDrawList_PopClipRect"][1]["ov_cimguiname"] = "ImDrawList_PopClipRect" defs["ImDrawList_PopClipRect"][1]["ret"] = "void" defs["ImDrawList_PopClipRect"][1]["signature"] = "()" @@ -2302,7 +2302,7 @@ defs["ImDrawList_PopTextureID"][1]["call_args"] = "()" defs["ImDrawList_PopTextureID"][1]["cimguiname"] = "ImDrawList_PopTextureID" defs["ImDrawList_PopTextureID"][1]["defaults"] = {} defs["ImDrawList_PopTextureID"][1]["funcname"] = "PopTextureID" -defs["ImDrawList_PopTextureID"][1]["location"] = "imgui:2530" +defs["ImDrawList_PopTextureID"][1]["location"] = "imgui:2641" defs["ImDrawList_PopTextureID"][1]["ov_cimguiname"] = "ImDrawList_PopTextureID" defs["ImDrawList_PopTextureID"][1]["ret"] = "void" defs["ImDrawList_PopTextureID"][1]["signature"] = "()" @@ -2347,7 +2347,7 @@ defs["ImDrawList_PrimQuadUV"][1]["call_args"] = "(a,b,c,d,uv_a,uv_b,uv_c,uv_d,co defs["ImDrawList_PrimQuadUV"][1]["cimguiname"] = "ImDrawList_PrimQuadUV" defs["ImDrawList_PrimQuadUV"][1]["defaults"] = {} defs["ImDrawList_PrimQuadUV"][1]["funcname"] = "PrimQuadUV" -defs["ImDrawList_PrimQuadUV"][1]["location"] = "imgui:2601" +defs["ImDrawList_PrimQuadUV"][1]["location"] = "imgui:2714" defs["ImDrawList_PrimQuadUV"][1]["ov_cimguiname"] = "ImDrawList_PrimQuadUV" defs["ImDrawList_PrimQuadUV"][1]["ret"] = "void" defs["ImDrawList_PrimQuadUV"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -2374,7 +2374,7 @@ defs["ImDrawList_PrimRect"][1]["call_args"] = "(a,b,col)" defs["ImDrawList_PrimRect"][1]["cimguiname"] = "ImDrawList_PrimRect" defs["ImDrawList_PrimRect"][1]["defaults"] = {} defs["ImDrawList_PrimRect"][1]["funcname"] = "PrimRect" -defs["ImDrawList_PrimRect"][1]["location"] = "imgui:2599" +defs["ImDrawList_PrimRect"][1]["location"] = "imgui:2712" defs["ImDrawList_PrimRect"][1]["ov_cimguiname"] = "ImDrawList_PrimRect" defs["ImDrawList_PrimRect"][1]["ret"] = "void" defs["ImDrawList_PrimRect"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" @@ -2407,7 +2407,7 @@ defs["ImDrawList_PrimRectUV"][1]["call_args"] = "(a,b,uv_a,uv_b,col)" defs["ImDrawList_PrimRectUV"][1]["cimguiname"] = "ImDrawList_PrimRectUV" defs["ImDrawList_PrimRectUV"][1]["defaults"] = {} defs["ImDrawList_PrimRectUV"][1]["funcname"] = "PrimRectUV" -defs["ImDrawList_PrimRectUV"][1]["location"] = "imgui:2600" +defs["ImDrawList_PrimRectUV"][1]["location"] = "imgui:2713" defs["ImDrawList_PrimRectUV"][1]["ov_cimguiname"] = "ImDrawList_PrimRectUV" defs["ImDrawList_PrimRectUV"][1]["ret"] = "void" defs["ImDrawList_PrimRectUV"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -2431,7 +2431,7 @@ defs["ImDrawList_PrimReserve"][1]["call_args"] = "(idx_count,vtx_count)" defs["ImDrawList_PrimReserve"][1]["cimguiname"] = "ImDrawList_PrimReserve" defs["ImDrawList_PrimReserve"][1]["defaults"] = {} defs["ImDrawList_PrimReserve"][1]["funcname"] = "PrimReserve" -defs["ImDrawList_PrimReserve"][1]["location"] = "imgui:2597" +defs["ImDrawList_PrimReserve"][1]["location"] = "imgui:2710" defs["ImDrawList_PrimReserve"][1]["ov_cimguiname"] = "ImDrawList_PrimReserve" defs["ImDrawList_PrimReserve"][1]["ret"] = "void" defs["ImDrawList_PrimReserve"][1]["signature"] = "(int,int)" @@ -2455,7 +2455,7 @@ defs["ImDrawList_PrimUnreserve"][1]["call_args"] = "(idx_count,vtx_count)" defs["ImDrawList_PrimUnreserve"][1]["cimguiname"] = "ImDrawList_PrimUnreserve" defs["ImDrawList_PrimUnreserve"][1]["defaults"] = {} defs["ImDrawList_PrimUnreserve"][1]["funcname"] = "PrimUnreserve" -defs["ImDrawList_PrimUnreserve"][1]["location"] = "imgui:2598" +defs["ImDrawList_PrimUnreserve"][1]["location"] = "imgui:2711" defs["ImDrawList_PrimUnreserve"][1]["ov_cimguiname"] = "ImDrawList_PrimUnreserve" defs["ImDrawList_PrimUnreserve"][1]["ret"] = "void" defs["ImDrawList_PrimUnreserve"][1]["signature"] = "(int,int)" @@ -2482,7 +2482,7 @@ defs["ImDrawList_PrimVtx"][1]["call_args"] = "(pos,uv,col)" defs["ImDrawList_PrimVtx"][1]["cimguiname"] = "ImDrawList_PrimVtx" defs["ImDrawList_PrimVtx"][1]["defaults"] = {} defs["ImDrawList_PrimVtx"][1]["funcname"] = "PrimVtx" -defs["ImDrawList_PrimVtx"][1]["location"] = "imgui:2604" +defs["ImDrawList_PrimVtx"][1]["location"] = "imgui:2717" defs["ImDrawList_PrimVtx"][1]["ov_cimguiname"] = "ImDrawList_PrimVtx" defs["ImDrawList_PrimVtx"][1]["ret"] = "void" defs["ImDrawList_PrimVtx"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" @@ -2503,7 +2503,7 @@ defs["ImDrawList_PrimWriteIdx"][1]["call_args"] = "(idx)" defs["ImDrawList_PrimWriteIdx"][1]["cimguiname"] = "ImDrawList_PrimWriteIdx" defs["ImDrawList_PrimWriteIdx"][1]["defaults"] = {} defs["ImDrawList_PrimWriteIdx"][1]["funcname"] = "PrimWriteIdx" -defs["ImDrawList_PrimWriteIdx"][1]["location"] = "imgui:2603" +defs["ImDrawList_PrimWriteIdx"][1]["location"] = "imgui:2716" defs["ImDrawList_PrimWriteIdx"][1]["ov_cimguiname"] = "ImDrawList_PrimWriteIdx" defs["ImDrawList_PrimWriteIdx"][1]["ret"] = "void" defs["ImDrawList_PrimWriteIdx"][1]["signature"] = "(ImDrawIdx)" @@ -2530,7 +2530,7 @@ defs["ImDrawList_PrimWriteVtx"][1]["call_args"] = "(pos,uv,col)" defs["ImDrawList_PrimWriteVtx"][1]["cimguiname"] = "ImDrawList_PrimWriteVtx" defs["ImDrawList_PrimWriteVtx"][1]["defaults"] = {} defs["ImDrawList_PrimWriteVtx"][1]["funcname"] = "PrimWriteVtx" -defs["ImDrawList_PrimWriteVtx"][1]["location"] = "imgui:2602" +defs["ImDrawList_PrimWriteVtx"][1]["location"] = "imgui:2715" defs["ImDrawList_PrimWriteVtx"][1]["ov_cimguiname"] = "ImDrawList_PrimWriteVtx" defs["ImDrawList_PrimWriteVtx"][1]["ret"] = "void" defs["ImDrawList_PrimWriteVtx"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" @@ -2538,32 +2538,32 @@ defs["ImDrawList_PrimWriteVtx"][1]["stname"] = "ImDrawList" defs["ImDrawList_PrimWriteVtx"]["(const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimWriteVtx"][1] defs["ImDrawList_PushClipRect"] = {} defs["ImDrawList_PushClipRect"][1] = {} -defs["ImDrawList_PushClipRect"][1]["args"] = "(ImDrawList* self,ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)" +defs["ImDrawList_PushClipRect"][1]["args"] = "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)" defs["ImDrawList_PushClipRect"][1]["argsT"] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][1] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][1]["name"] = "self" defs["ImDrawList_PushClipRect"][1]["argsT"][1]["type"] = "ImDrawList*" defs["ImDrawList_PushClipRect"][1]["argsT"][2] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][2]["name"] = "clip_rect_min" -defs["ImDrawList_PushClipRect"][1]["argsT"][2]["type"] = "ImVec2" +defs["ImDrawList_PushClipRect"][1]["argsT"][2]["type"] = "const ImVec2" defs["ImDrawList_PushClipRect"][1]["argsT"][3] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][3]["name"] = "clip_rect_max" -defs["ImDrawList_PushClipRect"][1]["argsT"][3]["type"] = "ImVec2" +defs["ImDrawList_PushClipRect"][1]["argsT"][3]["type"] = "const ImVec2" defs["ImDrawList_PushClipRect"][1]["argsT"][4] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][4]["name"] = "intersect_with_current_clip_rect" defs["ImDrawList_PushClipRect"][1]["argsT"][4]["type"] = "bool" -defs["ImDrawList_PushClipRect"][1]["argsoriginal"] = "(ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect=false)" +defs["ImDrawList_PushClipRect"][1]["argsoriginal"] = "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)" defs["ImDrawList_PushClipRect"][1]["call_args"] = "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)" defs["ImDrawList_PushClipRect"][1]["cimguiname"] = "ImDrawList_PushClipRect" defs["ImDrawList_PushClipRect"][1]["defaults"] = {} defs["ImDrawList_PushClipRect"][1]["defaults"]["intersect_with_current_clip_rect"] = "false" defs["ImDrawList_PushClipRect"][1]["funcname"] = "PushClipRect" -defs["ImDrawList_PushClipRect"][1]["location"] = "imgui:2526" +defs["ImDrawList_PushClipRect"][1]["location"] = "imgui:2637" defs["ImDrawList_PushClipRect"][1]["ov_cimguiname"] = "ImDrawList_PushClipRect" defs["ImDrawList_PushClipRect"][1]["ret"] = "void" -defs["ImDrawList_PushClipRect"][1]["signature"] = "(ImVec2,ImVec2,bool)" +defs["ImDrawList_PushClipRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" defs["ImDrawList_PushClipRect"][1]["stname"] = "ImDrawList" -defs["ImDrawList_PushClipRect"]["(ImVec2,ImVec2,bool)"] = defs["ImDrawList_PushClipRect"][1] +defs["ImDrawList_PushClipRect"]["(const ImVec2,const ImVec2,bool)"] = defs["ImDrawList_PushClipRect"][1] defs["ImDrawList_PushClipRectFullScreen"] = {} defs["ImDrawList_PushClipRectFullScreen"][1] = {} defs["ImDrawList_PushClipRectFullScreen"][1]["args"] = "(ImDrawList* self)" @@ -2576,7 +2576,7 @@ defs["ImDrawList_PushClipRectFullScreen"][1]["call_args"] = "()" defs["ImDrawList_PushClipRectFullScreen"][1]["cimguiname"] = "ImDrawList_PushClipRectFullScreen" defs["ImDrawList_PushClipRectFullScreen"][1]["defaults"] = {} defs["ImDrawList_PushClipRectFullScreen"][1]["funcname"] = "PushClipRectFullScreen" -defs["ImDrawList_PushClipRectFullScreen"][1]["location"] = "imgui:2527" +defs["ImDrawList_PushClipRectFullScreen"][1]["location"] = "imgui:2638" defs["ImDrawList_PushClipRectFullScreen"][1]["ov_cimguiname"] = "ImDrawList_PushClipRectFullScreen" defs["ImDrawList_PushClipRectFullScreen"][1]["ret"] = "void" defs["ImDrawList_PushClipRectFullScreen"][1]["signature"] = "()" @@ -2597,7 +2597,7 @@ defs["ImDrawList_PushTextureID"][1]["call_args"] = "(texture_id)" defs["ImDrawList_PushTextureID"][1]["cimguiname"] = "ImDrawList_PushTextureID" defs["ImDrawList_PushTextureID"][1]["defaults"] = {} defs["ImDrawList_PushTextureID"][1]["funcname"] = "PushTextureID" -defs["ImDrawList_PushTextureID"][1]["location"] = "imgui:2529" +defs["ImDrawList_PushTextureID"][1]["location"] = "imgui:2640" defs["ImDrawList_PushTextureID"][1]["ov_cimguiname"] = "ImDrawList_PushTextureID" defs["ImDrawList_PushTextureID"][1]["ret"] = "void" defs["ImDrawList_PushTextureID"][1]["signature"] = "(ImTextureID)" @@ -2618,7 +2618,7 @@ defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["call_args"] = "(radius)" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["cimguiname"] = "ImDrawList__CalcCircleAutoSegmentCount" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["defaults"] = {} defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["funcname"] = "_CalcCircleAutoSegmentCount" -defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["location"] = "imgui:2619" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["location"] = "imgui:2732" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["ov_cimguiname"] = "ImDrawList__CalcCircleAutoSegmentCount" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["ret"] = "int" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["signature"] = "(float)const" @@ -2636,7 +2636,7 @@ defs["ImDrawList__ClearFreeMemory"][1]["call_args"] = "()" defs["ImDrawList__ClearFreeMemory"][1]["cimguiname"] = "ImDrawList__ClearFreeMemory" defs["ImDrawList__ClearFreeMemory"][1]["defaults"] = {} defs["ImDrawList__ClearFreeMemory"][1]["funcname"] = "_ClearFreeMemory" -defs["ImDrawList__ClearFreeMemory"][1]["location"] = "imgui:2613" +defs["ImDrawList__ClearFreeMemory"][1]["location"] = "imgui:2726" defs["ImDrawList__ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawList__ClearFreeMemory" defs["ImDrawList__ClearFreeMemory"][1]["ret"] = "void" defs["ImDrawList__ClearFreeMemory"][1]["signature"] = "()" @@ -2654,7 +2654,7 @@ defs["ImDrawList__OnChangedClipRect"][1]["call_args"] = "()" defs["ImDrawList__OnChangedClipRect"][1]["cimguiname"] = "ImDrawList__OnChangedClipRect" defs["ImDrawList__OnChangedClipRect"][1]["defaults"] = {} defs["ImDrawList__OnChangedClipRect"][1]["funcname"] = "_OnChangedClipRect" -defs["ImDrawList__OnChangedClipRect"][1]["location"] = "imgui:2616" +defs["ImDrawList__OnChangedClipRect"][1]["location"] = "imgui:2729" defs["ImDrawList__OnChangedClipRect"][1]["ov_cimguiname"] = "ImDrawList__OnChangedClipRect" defs["ImDrawList__OnChangedClipRect"][1]["ret"] = "void" defs["ImDrawList__OnChangedClipRect"][1]["signature"] = "()" @@ -2672,7 +2672,7 @@ defs["ImDrawList__OnChangedTextureID"][1]["call_args"] = "()" defs["ImDrawList__OnChangedTextureID"][1]["cimguiname"] = "ImDrawList__OnChangedTextureID" defs["ImDrawList__OnChangedTextureID"][1]["defaults"] = {} defs["ImDrawList__OnChangedTextureID"][1]["funcname"] = "_OnChangedTextureID" -defs["ImDrawList__OnChangedTextureID"][1]["location"] = "imgui:2617" +defs["ImDrawList__OnChangedTextureID"][1]["location"] = "imgui:2730" defs["ImDrawList__OnChangedTextureID"][1]["ov_cimguiname"] = "ImDrawList__OnChangedTextureID" defs["ImDrawList__OnChangedTextureID"][1]["ret"] = "void" defs["ImDrawList__OnChangedTextureID"][1]["signature"] = "()" @@ -2690,7 +2690,7 @@ defs["ImDrawList__OnChangedVtxOffset"][1]["call_args"] = "()" defs["ImDrawList__OnChangedVtxOffset"][1]["cimguiname"] = "ImDrawList__OnChangedVtxOffset" defs["ImDrawList__OnChangedVtxOffset"][1]["defaults"] = {} defs["ImDrawList__OnChangedVtxOffset"][1]["funcname"] = "_OnChangedVtxOffset" -defs["ImDrawList__OnChangedVtxOffset"][1]["location"] = "imgui:2618" +defs["ImDrawList__OnChangedVtxOffset"][1]["location"] = "imgui:2731" defs["ImDrawList__OnChangedVtxOffset"][1]["ov_cimguiname"] = "ImDrawList__OnChangedVtxOffset" defs["ImDrawList__OnChangedVtxOffset"][1]["ret"] = "void" defs["ImDrawList__OnChangedVtxOffset"][1]["signature"] = "()" @@ -2723,7 +2723,7 @@ defs["ImDrawList__PathArcToFastEx"][1]["call_args"] = "(center,radius,a_min_samp defs["ImDrawList__PathArcToFastEx"][1]["cimguiname"] = "ImDrawList__PathArcToFastEx" defs["ImDrawList__PathArcToFastEx"][1]["defaults"] = {} defs["ImDrawList__PathArcToFastEx"][1]["funcname"] = "_PathArcToFastEx" -defs["ImDrawList__PathArcToFastEx"][1]["location"] = "imgui:2620" +defs["ImDrawList__PathArcToFastEx"][1]["location"] = "imgui:2733" defs["ImDrawList__PathArcToFastEx"][1]["ov_cimguiname"] = "ImDrawList__PathArcToFastEx" defs["ImDrawList__PathArcToFastEx"][1]["ret"] = "void" defs["ImDrawList__PathArcToFastEx"][1]["signature"] = "(const ImVec2,float,int,int,int)" @@ -2756,7 +2756,7 @@ defs["ImDrawList__PathArcToN"][1]["call_args"] = "(center,radius,a_min,a_max,num defs["ImDrawList__PathArcToN"][1]["cimguiname"] = "ImDrawList__PathArcToN" defs["ImDrawList__PathArcToN"][1]["defaults"] = {} defs["ImDrawList__PathArcToN"][1]["funcname"] = "_PathArcToN" -defs["ImDrawList__PathArcToN"][1]["location"] = "imgui:2621" +defs["ImDrawList__PathArcToN"][1]["location"] = "imgui:2734" defs["ImDrawList__PathArcToN"][1]["ov_cimguiname"] = "ImDrawList__PathArcToN" defs["ImDrawList__PathArcToN"][1]["ret"] = "void" defs["ImDrawList__PathArcToN"][1]["signature"] = "(const ImVec2,float,float,float,int)" @@ -2774,7 +2774,7 @@ defs["ImDrawList__PopUnusedDrawCmd"][1]["call_args"] = "()" defs["ImDrawList__PopUnusedDrawCmd"][1]["cimguiname"] = "ImDrawList__PopUnusedDrawCmd" defs["ImDrawList__PopUnusedDrawCmd"][1]["defaults"] = {} defs["ImDrawList__PopUnusedDrawCmd"][1]["funcname"] = "_PopUnusedDrawCmd" -defs["ImDrawList__PopUnusedDrawCmd"][1]["location"] = "imgui:2614" +defs["ImDrawList__PopUnusedDrawCmd"][1]["location"] = "imgui:2727" defs["ImDrawList__PopUnusedDrawCmd"][1]["ov_cimguiname"] = "ImDrawList__PopUnusedDrawCmd" defs["ImDrawList__PopUnusedDrawCmd"][1]["ret"] = "void" defs["ImDrawList__PopUnusedDrawCmd"][1]["signature"] = "()" @@ -2792,7 +2792,7 @@ defs["ImDrawList__ResetForNewFrame"][1]["call_args"] = "()" defs["ImDrawList__ResetForNewFrame"][1]["cimguiname"] = "ImDrawList__ResetForNewFrame" defs["ImDrawList__ResetForNewFrame"][1]["defaults"] = {} defs["ImDrawList__ResetForNewFrame"][1]["funcname"] = "_ResetForNewFrame" -defs["ImDrawList__ResetForNewFrame"][1]["location"] = "imgui:2612" +defs["ImDrawList__ResetForNewFrame"][1]["location"] = "imgui:2725" defs["ImDrawList__ResetForNewFrame"][1]["ov_cimguiname"] = "ImDrawList__ResetForNewFrame" defs["ImDrawList__ResetForNewFrame"][1]["ret"] = "void" defs["ImDrawList__ResetForNewFrame"][1]["signature"] = "()" @@ -2810,7 +2810,7 @@ defs["ImDrawList__TryMergeDrawCmds"][1]["call_args"] = "()" defs["ImDrawList__TryMergeDrawCmds"][1]["cimguiname"] = "ImDrawList__TryMergeDrawCmds" defs["ImDrawList__TryMergeDrawCmds"][1]["defaults"] = {} defs["ImDrawList__TryMergeDrawCmds"][1]["funcname"] = "_TryMergeDrawCmds" -defs["ImDrawList__TryMergeDrawCmds"][1]["location"] = "imgui:2615" +defs["ImDrawList__TryMergeDrawCmds"][1]["location"] = "imgui:2728" defs["ImDrawList__TryMergeDrawCmds"][1]["ov_cimguiname"] = "ImDrawList__TryMergeDrawCmds" defs["ImDrawList__TryMergeDrawCmds"][1]["ret"] = "void" defs["ImDrawList__TryMergeDrawCmds"][1]["signature"] = "()" @@ -2827,7 +2827,7 @@ defs["ImDrawList_destroy"][1]["call_args"] = "(self)" defs["ImDrawList_destroy"][1]["cimguiname"] = "ImDrawList_destroy" defs["ImDrawList_destroy"][1]["defaults"] = {} defs["ImDrawList_destroy"][1]["destructor"] = true -defs["ImDrawList_destroy"][1]["location"] = "imgui:2525" +defs["ImDrawList_destroy"][1]["location"] = "imgui:2636" defs["ImDrawList_destroy"][1]["ov_cimguiname"] = "ImDrawList_destroy" defs["ImDrawList_destroy"][1]["realdestructor"] = true defs["ImDrawList_destroy"][1]["ret"] = "void" @@ -2844,7 +2844,7 @@ defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["cimguiname"] = "ImFontAt defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["constructor"] = true defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["defaults"] = {} defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["funcname"] = "ImFontAtlasCustomRect" -defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["location"] = "imgui:2714" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["location"] = "imgui:2827" defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_ImFontAtlasCustomRect" defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["signature"] = "()" defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["stname"] = "ImFontAtlasCustomRect" @@ -2861,7 +2861,7 @@ defs["ImFontAtlasCustomRect_IsPacked"][1]["call_args"] = "()" defs["ImFontAtlasCustomRect_IsPacked"][1]["cimguiname"] = "ImFontAtlasCustomRect_IsPacked" defs["ImFontAtlasCustomRect_IsPacked"][1]["defaults"] = {} defs["ImFontAtlasCustomRect_IsPacked"][1]["funcname"] = "IsPacked" -defs["ImFontAtlasCustomRect_IsPacked"][1]["location"] = "imgui:2715" +defs["ImFontAtlasCustomRect_IsPacked"][1]["location"] = "imgui:2828" defs["ImFontAtlasCustomRect_IsPacked"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_IsPacked" defs["ImFontAtlasCustomRect_IsPacked"][1]["ret"] = "bool" defs["ImFontAtlasCustomRect_IsPacked"][1]["signature"] = "()const" @@ -2914,7 +2914,7 @@ defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["cimguiname"] = "ImFontAtlas_AddCu defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["defaults"] = {} defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["defaults"]["offset"] = "ImVec2(0,0)" defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["funcname"] = "AddCustomRectFontGlyph" -defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["location"] = "imgui:2798" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["location"] = "imgui:2912" defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["ov_cimguiname"] = "ImFontAtlas_AddCustomRectFontGlyph" defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["ret"] = "int" defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["signature"] = "(ImFont*,ImWchar,int,int,float,const ImVec2)" @@ -2938,7 +2938,7 @@ defs["ImFontAtlas_AddCustomRectRegular"][1]["call_args"] = "(width,height)" defs["ImFontAtlas_AddCustomRectRegular"][1]["cimguiname"] = "ImFontAtlas_AddCustomRectRegular" defs["ImFontAtlas_AddCustomRectRegular"][1]["defaults"] = {} defs["ImFontAtlas_AddCustomRectRegular"][1]["funcname"] = "AddCustomRectRegular" -defs["ImFontAtlas_AddCustomRectRegular"][1]["location"] = "imgui:2797" +defs["ImFontAtlas_AddCustomRectRegular"][1]["location"] = "imgui:2911" defs["ImFontAtlas_AddCustomRectRegular"][1]["ov_cimguiname"] = "ImFontAtlas_AddCustomRectRegular" defs["ImFontAtlas_AddCustomRectRegular"][1]["ret"] = "int" defs["ImFontAtlas_AddCustomRectRegular"][1]["signature"] = "(int,int)" @@ -2959,7 +2959,7 @@ defs["ImFontAtlas_AddFont"][1]["call_args"] = "(font_cfg)" defs["ImFontAtlas_AddFont"][1]["cimguiname"] = "ImFontAtlas_AddFont" defs["ImFontAtlas_AddFont"][1]["defaults"] = {} defs["ImFontAtlas_AddFont"][1]["funcname"] = "AddFont" -defs["ImFontAtlas_AddFont"][1]["location"] = "imgui:2748" +defs["ImFontAtlas_AddFont"][1]["location"] = "imgui:2861" defs["ImFontAtlas_AddFont"][1]["ov_cimguiname"] = "ImFontAtlas_AddFont" defs["ImFontAtlas_AddFont"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFont"][1]["signature"] = "(const ImFontConfig*)" @@ -2981,7 +2981,7 @@ defs["ImFontAtlas_AddFontDefault"][1]["cimguiname"] = "ImFontAtlas_AddFontDefaul defs["ImFontAtlas_AddFontDefault"][1]["defaults"] = {} defs["ImFontAtlas_AddFontDefault"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontDefault"][1]["funcname"] = "AddFontDefault" -defs["ImFontAtlas_AddFontDefault"][1]["location"] = "imgui:2749" +defs["ImFontAtlas_AddFontDefault"][1]["location"] = "imgui:2862" defs["ImFontAtlas_AddFontDefault"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontDefault" defs["ImFontAtlas_AddFontDefault"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontDefault"][1]["signature"] = "(const ImFontConfig*)" @@ -3013,7 +3013,7 @@ defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"] = {} defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"]["glyph_ranges"] = "NULL" defs["ImFontAtlas_AddFontFromFileTTF"][1]["funcname"] = "AddFontFromFileTTF" -defs["ImFontAtlas_AddFontFromFileTTF"][1]["location"] = "imgui:2750" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["location"] = "imgui:2863" defs["ImFontAtlas_AddFontFromFileTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromFileTTF" defs["ImFontAtlas_AddFontFromFileTTF"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontFromFileTTF"][1]["signature"] = "(const char*,float,const ImFontConfig*,const ImWchar*)" @@ -3045,7 +3045,7 @@ defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"] = {} defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"]["glyph_ranges"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["funcname"] = "AddFontFromMemoryCompressedBase85TTF" -defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["location"] = "imgui:2753" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["location"] = "imgui:2866" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["signature"] = "(const char*,float,const ImFontConfig*,const ImWchar*)" @@ -3080,7 +3080,7 @@ defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"] = {} defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"]["glyph_ranges"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["funcname"] = "AddFontFromMemoryCompressedTTF" -defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["location"] = "imgui:2752" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["location"] = "imgui:2865" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedTTF" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["signature"] = "(const void*,int,float,const ImFontConfig*,const ImWchar*)" @@ -3115,7 +3115,7 @@ defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"] = {} defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"]["glyph_ranges"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["funcname"] = "AddFontFromMemoryTTF" -defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["location"] = "imgui:2751" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["location"] = "imgui:2864" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryTTF" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["signature"] = "(void*,int,float,const ImFontConfig*,const ImWchar*)" @@ -3133,7 +3133,7 @@ defs["ImFontAtlas_Build"][1]["call_args"] = "()" defs["ImFontAtlas_Build"][1]["cimguiname"] = "ImFontAtlas_Build" defs["ImFontAtlas_Build"][1]["defaults"] = {} defs["ImFontAtlas_Build"][1]["funcname"] = "Build" -defs["ImFontAtlas_Build"][1]["location"] = "imgui:2764" +defs["ImFontAtlas_Build"][1]["location"] = "imgui:2877" defs["ImFontAtlas_Build"][1]["ov_cimguiname"] = "ImFontAtlas_Build" defs["ImFontAtlas_Build"][1]["ret"] = "bool" defs["ImFontAtlas_Build"][1]["signature"] = "()" @@ -3160,7 +3160,7 @@ defs["ImFontAtlas_CalcCustomRectUV"][1]["call_args"] = "(rect,out_uv_min,out_uv_ defs["ImFontAtlas_CalcCustomRectUV"][1]["cimguiname"] = "ImFontAtlas_CalcCustomRectUV" defs["ImFontAtlas_CalcCustomRectUV"][1]["defaults"] = {} defs["ImFontAtlas_CalcCustomRectUV"][1]["funcname"] = "CalcCustomRectUV" -defs["ImFontAtlas_CalcCustomRectUV"][1]["location"] = "imgui:2802" +defs["ImFontAtlas_CalcCustomRectUV"][1]["location"] = "imgui:2916" defs["ImFontAtlas_CalcCustomRectUV"][1]["ov_cimguiname"] = "ImFontAtlas_CalcCustomRectUV" defs["ImFontAtlas_CalcCustomRectUV"][1]["ret"] = "void" defs["ImFontAtlas_CalcCustomRectUV"][1]["signature"] = "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const" @@ -3178,7 +3178,7 @@ defs["ImFontAtlas_Clear"][1]["call_args"] = "()" defs["ImFontAtlas_Clear"][1]["cimguiname"] = "ImFontAtlas_Clear" defs["ImFontAtlas_Clear"][1]["defaults"] = {} defs["ImFontAtlas_Clear"][1]["funcname"] = "Clear" -defs["ImFontAtlas_Clear"][1]["location"] = "imgui:2757" +defs["ImFontAtlas_Clear"][1]["location"] = "imgui:2870" defs["ImFontAtlas_Clear"][1]["ov_cimguiname"] = "ImFontAtlas_Clear" defs["ImFontAtlas_Clear"][1]["ret"] = "void" defs["ImFontAtlas_Clear"][1]["signature"] = "()" @@ -3196,7 +3196,7 @@ defs["ImFontAtlas_ClearFonts"][1]["call_args"] = "()" defs["ImFontAtlas_ClearFonts"][1]["cimguiname"] = "ImFontAtlas_ClearFonts" defs["ImFontAtlas_ClearFonts"][1]["defaults"] = {} defs["ImFontAtlas_ClearFonts"][1]["funcname"] = "ClearFonts" -defs["ImFontAtlas_ClearFonts"][1]["location"] = "imgui:2756" +defs["ImFontAtlas_ClearFonts"][1]["location"] = "imgui:2869" defs["ImFontAtlas_ClearFonts"][1]["ov_cimguiname"] = "ImFontAtlas_ClearFonts" defs["ImFontAtlas_ClearFonts"][1]["ret"] = "void" defs["ImFontAtlas_ClearFonts"][1]["signature"] = "()" @@ -3214,7 +3214,7 @@ defs["ImFontAtlas_ClearInputData"][1]["call_args"] = "()" defs["ImFontAtlas_ClearInputData"][1]["cimguiname"] = "ImFontAtlas_ClearInputData" defs["ImFontAtlas_ClearInputData"][1]["defaults"] = {} defs["ImFontAtlas_ClearInputData"][1]["funcname"] = "ClearInputData" -defs["ImFontAtlas_ClearInputData"][1]["location"] = "imgui:2754" +defs["ImFontAtlas_ClearInputData"][1]["location"] = "imgui:2867" defs["ImFontAtlas_ClearInputData"][1]["ov_cimguiname"] = "ImFontAtlas_ClearInputData" defs["ImFontAtlas_ClearInputData"][1]["ret"] = "void" defs["ImFontAtlas_ClearInputData"][1]["signature"] = "()" @@ -3232,7 +3232,7 @@ defs["ImFontAtlas_ClearTexData"][1]["call_args"] = "()" defs["ImFontAtlas_ClearTexData"][1]["cimguiname"] = "ImFontAtlas_ClearTexData" defs["ImFontAtlas_ClearTexData"][1]["defaults"] = {} defs["ImFontAtlas_ClearTexData"][1]["funcname"] = "ClearTexData" -defs["ImFontAtlas_ClearTexData"][1]["location"] = "imgui:2755" +defs["ImFontAtlas_ClearTexData"][1]["location"] = "imgui:2868" defs["ImFontAtlas_ClearTexData"][1]["ov_cimguiname"] = "ImFontAtlas_ClearTexData" defs["ImFontAtlas_ClearTexData"][1]["ret"] = "void" defs["ImFontAtlas_ClearTexData"][1]["signature"] = "()" @@ -3253,7 +3253,7 @@ defs["ImFontAtlas_GetCustomRectByIndex"][1]["call_args"] = "(index)" defs["ImFontAtlas_GetCustomRectByIndex"][1]["cimguiname"] = "ImFontAtlas_GetCustomRectByIndex" defs["ImFontAtlas_GetCustomRectByIndex"][1]["defaults"] = {} defs["ImFontAtlas_GetCustomRectByIndex"][1]["funcname"] = "GetCustomRectByIndex" -defs["ImFontAtlas_GetCustomRectByIndex"][1]["location"] = "imgui:2799" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["location"] = "imgui:2913" defs["ImFontAtlas_GetCustomRectByIndex"][1]["ov_cimguiname"] = "ImFontAtlas_GetCustomRectByIndex" defs["ImFontAtlas_GetCustomRectByIndex"][1]["ret"] = "ImFontAtlasCustomRect*" defs["ImFontAtlas_GetCustomRectByIndex"][1]["signature"] = "(int)" @@ -3271,7 +3271,7 @@ defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseFull" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["funcname"] = "GetGlyphRangesChineseFull" -defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["location"] = "imgui:2780" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["location"] = "imgui:2894" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseFull" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["signature"] = "()" @@ -3289,7 +3289,7 @@ defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["funcname"] = "GetGlyphRangesChineseSimplifiedCommon" -defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["location"] = "imgui:2781" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["location"] = "imgui:2895" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["signature"] = "()" @@ -3307,7 +3307,7 @@ defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesCyrillic" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["funcname"] = "GetGlyphRangesCyrillic" -defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["location"] = "imgui:2782" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["location"] = "imgui:2896" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesCyrillic" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["signature"] = "()" @@ -3325,12 +3325,30 @@ defs["ImFontAtlas_GetGlyphRangesDefault"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesDefault" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesDefault"][1]["funcname"] = "GetGlyphRangesDefault" -defs["ImFontAtlas_GetGlyphRangesDefault"][1]["location"] = "imgui:2777" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["location"] = "imgui:2890" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesDefault" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["signature"] = "()" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["stname"] = "ImFontAtlas" defs["ImFontAtlas_GetGlyphRangesDefault"]["()"] = defs["ImFontAtlas_GetGlyphRangesDefault"][1] +defs["ImFontAtlas_GetGlyphRangesGreek"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["funcname"] = "GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["location"] = "imgui:2891" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesGreek"]["()"] = defs["ImFontAtlas_GetGlyphRangesGreek"][1] defs["ImFontAtlas_GetGlyphRangesJapanese"] = {} defs["ImFontAtlas_GetGlyphRangesJapanese"][1] = {} defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["args"] = "(ImFontAtlas* self)" @@ -3343,7 +3361,7 @@ defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesJapanese" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["funcname"] = "GetGlyphRangesJapanese" -defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["location"] = "imgui:2779" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["location"] = "imgui:2893" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesJapanese" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["signature"] = "()" @@ -3361,7 +3379,7 @@ defs["ImFontAtlas_GetGlyphRangesKorean"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesKorean" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesKorean"][1]["funcname"] = "GetGlyphRangesKorean" -defs["ImFontAtlas_GetGlyphRangesKorean"][1]["location"] = "imgui:2778" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["location"] = "imgui:2892" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesKorean" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["signature"] = "()" @@ -3379,7 +3397,7 @@ defs["ImFontAtlas_GetGlyphRangesThai"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesThai"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesThai" defs["ImFontAtlas_GetGlyphRangesThai"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesThai"][1]["funcname"] = "GetGlyphRangesThai" -defs["ImFontAtlas_GetGlyphRangesThai"][1]["location"] = "imgui:2783" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["location"] = "imgui:2897" defs["ImFontAtlas_GetGlyphRangesThai"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesThai" defs["ImFontAtlas_GetGlyphRangesThai"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesThai"][1]["signature"] = "()" @@ -3397,7 +3415,7 @@ defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesVietnamese" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["funcname"] = "GetGlyphRangesVietnamese" -defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["location"] = "imgui:2784" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["location"] = "imgui:2898" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesVietnamese" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["signature"] = "()" @@ -3430,7 +3448,7 @@ defs["ImFontAtlas_GetMouseCursorTexData"][1]["call_args"] = "(cursor,out_offset, defs["ImFontAtlas_GetMouseCursorTexData"][1]["cimguiname"] = "ImFontAtlas_GetMouseCursorTexData" defs["ImFontAtlas_GetMouseCursorTexData"][1]["defaults"] = {} defs["ImFontAtlas_GetMouseCursorTexData"][1]["funcname"] = "GetMouseCursorTexData" -defs["ImFontAtlas_GetMouseCursorTexData"][1]["location"] = "imgui:2803" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["location"] = "imgui:2917" defs["ImFontAtlas_GetMouseCursorTexData"][1]["ov_cimguiname"] = "ImFontAtlas_GetMouseCursorTexData" defs["ImFontAtlas_GetMouseCursorTexData"][1]["ret"] = "bool" defs["ImFontAtlas_GetMouseCursorTexData"][1]["signature"] = "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])" @@ -3461,7 +3479,7 @@ defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["cimguiname"] = "ImFontAtlas_GetTexDat defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["defaults"] = {} defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["defaults"]["out_bytes_per_pixel"] = "NULL" defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["funcname"] = "GetTexDataAsAlpha8" -defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["location"] = "imgui:2765" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["location"] = "imgui:2878" defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["ov_cimguiname"] = "ImFontAtlas_GetTexDataAsAlpha8" defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["ret"] = "void" defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["signature"] = "(unsigned char**,int*,int*,int*)" @@ -3492,7 +3510,7 @@ defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["cimguiname"] = "ImFontAtlas_GetTexDat defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["defaults"] = {} defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["defaults"]["out_bytes_per_pixel"] = "NULL" defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["funcname"] = "GetTexDataAsRGBA32" -defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["location"] = "imgui:2766" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["location"] = "imgui:2879" defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["ov_cimguiname"] = "ImFontAtlas_GetTexDataAsRGBA32" defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["ret"] = "void" defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["signature"] = "(unsigned char**,int*,int*,int*)" @@ -3508,7 +3526,7 @@ defs["ImFontAtlas_ImFontAtlas"][1]["cimguiname"] = "ImFontAtlas_ImFontAtlas" defs["ImFontAtlas_ImFontAtlas"][1]["constructor"] = true defs["ImFontAtlas_ImFontAtlas"][1]["defaults"] = {} defs["ImFontAtlas_ImFontAtlas"][1]["funcname"] = "ImFontAtlas" -defs["ImFontAtlas_ImFontAtlas"][1]["location"] = "imgui:2746" +defs["ImFontAtlas_ImFontAtlas"][1]["location"] = "imgui:2859" defs["ImFontAtlas_ImFontAtlas"][1]["ov_cimguiname"] = "ImFontAtlas_ImFontAtlas" defs["ImFontAtlas_ImFontAtlas"][1]["signature"] = "()" defs["ImFontAtlas_ImFontAtlas"][1]["stname"] = "ImFontAtlas" @@ -3525,7 +3543,7 @@ defs["ImFontAtlas_IsBuilt"][1]["call_args"] = "()" defs["ImFontAtlas_IsBuilt"][1]["cimguiname"] = "ImFontAtlas_IsBuilt" defs["ImFontAtlas_IsBuilt"][1]["defaults"] = {} defs["ImFontAtlas_IsBuilt"][1]["funcname"] = "IsBuilt" -defs["ImFontAtlas_IsBuilt"][1]["location"] = "imgui:2767" +defs["ImFontAtlas_IsBuilt"][1]["location"] = "imgui:2880" defs["ImFontAtlas_IsBuilt"][1]["ov_cimguiname"] = "ImFontAtlas_IsBuilt" defs["ImFontAtlas_IsBuilt"][1]["ret"] = "bool" defs["ImFontAtlas_IsBuilt"][1]["signature"] = "()const" @@ -3546,7 +3564,7 @@ defs["ImFontAtlas_SetTexID"][1]["call_args"] = "(id)" defs["ImFontAtlas_SetTexID"][1]["cimguiname"] = "ImFontAtlas_SetTexID" defs["ImFontAtlas_SetTexID"][1]["defaults"] = {} defs["ImFontAtlas_SetTexID"][1]["funcname"] = "SetTexID" -defs["ImFontAtlas_SetTexID"][1]["location"] = "imgui:2768" +defs["ImFontAtlas_SetTexID"][1]["location"] = "imgui:2881" defs["ImFontAtlas_SetTexID"][1]["ov_cimguiname"] = "ImFontAtlas_SetTexID" defs["ImFontAtlas_SetTexID"][1]["ret"] = "void" defs["ImFontAtlas_SetTexID"][1]["signature"] = "(ImTextureID)" @@ -3563,7 +3581,7 @@ defs["ImFontAtlas_destroy"][1]["call_args"] = "(self)" defs["ImFontAtlas_destroy"][1]["cimguiname"] = "ImFontAtlas_destroy" defs["ImFontAtlas_destroy"][1]["defaults"] = {} defs["ImFontAtlas_destroy"][1]["destructor"] = true -defs["ImFontAtlas_destroy"][1]["location"] = "imgui:2747" +defs["ImFontAtlas_destroy"][1]["location"] = "imgui:2860" defs["ImFontAtlas_destroy"][1]["ov_cimguiname"] = "ImFontAtlas_destroy" defs["ImFontAtlas_destroy"][1]["realdestructor"] = true defs["ImFontAtlas_destroy"][1]["ret"] = "void" @@ -3580,7 +3598,7 @@ defs["ImFontConfig_ImFontConfig"][1]["cimguiname"] = "ImFontConfig_ImFontConfig" defs["ImFontConfig_ImFontConfig"][1]["constructor"] = true defs["ImFontConfig_ImFontConfig"][1]["defaults"] = {} defs["ImFontConfig_ImFontConfig"][1]["funcname"] = "ImFontConfig" -defs["ImFontConfig_ImFontConfig"][1]["location"] = "imgui:2674" +defs["ImFontConfig_ImFontConfig"][1]["location"] = "imgui:2787" defs["ImFontConfig_ImFontConfig"][1]["ov_cimguiname"] = "ImFontConfig_ImFontConfig" defs["ImFontConfig_ImFontConfig"][1]["signature"] = "()" defs["ImFontConfig_ImFontConfig"][1]["stname"] = "ImFontConfig" @@ -3616,7 +3634,7 @@ defs["ImFontGlyphRangesBuilder_AddChar"][1]["call_args"] = "(c)" defs["ImFontGlyphRangesBuilder_AddChar"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddChar" defs["ImFontGlyphRangesBuilder_AddChar"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_AddChar"][1]["funcname"] = "AddChar" -defs["ImFontGlyphRangesBuilder_AddChar"][1]["location"] = "imgui:2699" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["location"] = "imgui:2812" defs["ImFontGlyphRangesBuilder_AddChar"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddChar" defs["ImFontGlyphRangesBuilder_AddChar"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_AddChar"][1]["signature"] = "(ImWchar)" @@ -3637,7 +3655,7 @@ defs["ImFontGlyphRangesBuilder_AddRanges"][1]["call_args"] = "(ranges)" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddRanges" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_AddRanges"][1]["funcname"] = "AddRanges" -defs["ImFontGlyphRangesBuilder_AddRanges"][1]["location"] = "imgui:2701" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["location"] = "imgui:2814" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddRanges" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["signature"] = "(const ImWchar*)" @@ -3662,7 +3680,7 @@ defs["ImFontGlyphRangesBuilder_AddText"][1]["cimguiname"] = "ImFontGlyphRangesBu defs["ImFontGlyphRangesBuilder_AddText"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_AddText"][1]["defaults"]["text_end"] = "NULL" defs["ImFontGlyphRangesBuilder_AddText"][1]["funcname"] = "AddText" -defs["ImFontGlyphRangesBuilder_AddText"][1]["location"] = "imgui:2700" +defs["ImFontGlyphRangesBuilder_AddText"][1]["location"] = "imgui:2813" defs["ImFontGlyphRangesBuilder_AddText"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddText" defs["ImFontGlyphRangesBuilder_AddText"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_AddText"][1]["signature"] = "(const char*,const char*)" @@ -3683,7 +3701,7 @@ defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["call_args"] = "(out_ranges)" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_BuildRanges" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["funcname"] = "BuildRanges" -defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["location"] = "imgui:2702" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["location"] = "imgui:2815" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_BuildRanges" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["signature"] = "(ImVector_ImWchar*)" @@ -3701,7 +3719,7 @@ defs["ImFontGlyphRangesBuilder_Clear"][1]["call_args"] = "()" defs["ImFontGlyphRangesBuilder_Clear"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_Clear" defs["ImFontGlyphRangesBuilder_Clear"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_Clear"][1]["funcname"] = "Clear" -defs["ImFontGlyphRangesBuilder_Clear"][1]["location"] = "imgui:2696" +defs["ImFontGlyphRangesBuilder_Clear"][1]["location"] = "imgui:2809" defs["ImFontGlyphRangesBuilder_Clear"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_Clear" defs["ImFontGlyphRangesBuilder_Clear"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_Clear"][1]["signature"] = "()" @@ -3722,7 +3740,7 @@ defs["ImFontGlyphRangesBuilder_GetBit"][1]["call_args"] = "(n)" defs["ImFontGlyphRangesBuilder_GetBit"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_GetBit" defs["ImFontGlyphRangesBuilder_GetBit"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_GetBit"][1]["funcname"] = "GetBit" -defs["ImFontGlyphRangesBuilder_GetBit"][1]["location"] = "imgui:2697" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["location"] = "imgui:2810" defs["ImFontGlyphRangesBuilder_GetBit"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_GetBit" defs["ImFontGlyphRangesBuilder_GetBit"][1]["ret"] = "bool" defs["ImFontGlyphRangesBuilder_GetBit"][1]["signature"] = "(size_t)const" @@ -3738,7 +3756,7 @@ defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["cimguiname"] = "Im defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["constructor"] = true defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["funcname"] = "ImFontGlyphRangesBuilder" -defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["location"] = "imgui:2695" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["location"] = "imgui:2808" defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder" defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["signature"] = "()" defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["stname"] = "ImFontGlyphRangesBuilder" @@ -3758,7 +3776,7 @@ defs["ImFontGlyphRangesBuilder_SetBit"][1]["call_args"] = "(n)" defs["ImFontGlyphRangesBuilder_SetBit"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_SetBit" defs["ImFontGlyphRangesBuilder_SetBit"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_SetBit"][1]["funcname"] = "SetBit" -defs["ImFontGlyphRangesBuilder_SetBit"][1]["location"] = "imgui:2698" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["location"] = "imgui:2811" defs["ImFontGlyphRangesBuilder_SetBit"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_SetBit" defs["ImFontGlyphRangesBuilder_SetBit"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_SetBit"][1]["signature"] = "(size_t)" @@ -3825,7 +3843,7 @@ defs["ImFont_AddGlyph"][1]["call_args"] = "(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,ad defs["ImFont_AddGlyph"][1]["cimguiname"] = "ImFont_AddGlyph" defs["ImFont_AddGlyph"][1]["defaults"] = {} defs["ImFont_AddGlyph"][1]["funcname"] = "AddGlyph" -defs["ImFont_AddGlyph"][1]["location"] = "imgui:2891" +defs["ImFont_AddGlyph"][1]["location"] = "imgui:3004" defs["ImFont_AddGlyph"][1]["ov_cimguiname"] = "ImFont_AddGlyph" defs["ImFont_AddGlyph"][1]["ret"] = "void" defs["ImFont_AddGlyph"][1]["signature"] = "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)" @@ -3853,7 +3871,7 @@ defs["ImFont_AddRemapChar"][1]["cimguiname"] = "ImFont_AddRemapChar" defs["ImFont_AddRemapChar"][1]["defaults"] = {} defs["ImFont_AddRemapChar"][1]["defaults"]["overwrite_dst"] = "true" defs["ImFont_AddRemapChar"][1]["funcname"] = "AddRemapChar" -defs["ImFont_AddRemapChar"][1]["location"] = "imgui:2892" +defs["ImFont_AddRemapChar"][1]["location"] = "imgui:3005" defs["ImFont_AddRemapChar"][1]["ov_cimguiname"] = "ImFont_AddRemapChar" defs["ImFont_AddRemapChar"][1]["ret"] = "void" defs["ImFont_AddRemapChar"][1]["signature"] = "(ImWchar,ImWchar,bool)" @@ -3871,7 +3889,7 @@ defs["ImFont_BuildLookupTable"][1]["call_args"] = "()" defs["ImFont_BuildLookupTable"][1]["cimguiname"] = "ImFont_BuildLookupTable" defs["ImFont_BuildLookupTable"][1]["defaults"] = {} defs["ImFont_BuildLookupTable"][1]["funcname"] = "BuildLookupTable" -defs["ImFont_BuildLookupTable"][1]["location"] = "imgui:2888" +defs["ImFont_BuildLookupTable"][1]["location"] = "imgui:3001" defs["ImFont_BuildLookupTable"][1]["ov_cimguiname"] = "ImFont_BuildLookupTable" defs["ImFont_BuildLookupTable"][1]["ret"] = "void" defs["ImFont_BuildLookupTable"][1]["signature"] = "()" @@ -3912,7 +3930,7 @@ defs["ImFont_CalcTextSizeA"][1]["defaults"] = {} defs["ImFont_CalcTextSizeA"][1]["defaults"]["remaining"] = "NULL" defs["ImFont_CalcTextSizeA"][1]["defaults"]["text_end"] = "NULL" defs["ImFont_CalcTextSizeA"][1]["funcname"] = "CalcTextSizeA" -defs["ImFont_CalcTextSizeA"][1]["location"] = "imgui:2882" +defs["ImFont_CalcTextSizeA"][1]["location"] = "imgui:2995" defs["ImFont_CalcTextSizeA"][1]["nonUDT"] = 1 defs["ImFont_CalcTextSizeA"][1]["ov_cimguiname"] = "ImFont_CalcTextSizeA" defs["ImFont_CalcTextSizeA"][1]["ret"] = "void" @@ -3943,7 +3961,7 @@ defs["ImFont_CalcWordWrapPositionA"][1]["call_args"] = "(scale,text,text_end,wra defs["ImFont_CalcWordWrapPositionA"][1]["cimguiname"] = "ImFont_CalcWordWrapPositionA" defs["ImFont_CalcWordWrapPositionA"][1]["defaults"] = {} defs["ImFont_CalcWordWrapPositionA"][1]["funcname"] = "CalcWordWrapPositionA" -defs["ImFont_CalcWordWrapPositionA"][1]["location"] = "imgui:2883" +defs["ImFont_CalcWordWrapPositionA"][1]["location"] = "imgui:2996" defs["ImFont_CalcWordWrapPositionA"][1]["ov_cimguiname"] = "ImFont_CalcWordWrapPositionA" defs["ImFont_CalcWordWrapPositionA"][1]["ret"] = "const char*" defs["ImFont_CalcWordWrapPositionA"][1]["signature"] = "(float,const char*,const char*,float)const" @@ -3961,7 +3979,7 @@ defs["ImFont_ClearOutputData"][1]["call_args"] = "()" defs["ImFont_ClearOutputData"][1]["cimguiname"] = "ImFont_ClearOutputData" defs["ImFont_ClearOutputData"][1]["defaults"] = {} defs["ImFont_ClearOutputData"][1]["funcname"] = "ClearOutputData" -defs["ImFont_ClearOutputData"][1]["location"] = "imgui:2889" +defs["ImFont_ClearOutputData"][1]["location"] = "imgui:3002" defs["ImFont_ClearOutputData"][1]["ov_cimguiname"] = "ImFont_ClearOutputData" defs["ImFont_ClearOutputData"][1]["ret"] = "void" defs["ImFont_ClearOutputData"][1]["signature"] = "()" @@ -3982,7 +4000,7 @@ defs["ImFont_FindGlyph"][1]["call_args"] = "(c)" defs["ImFont_FindGlyph"][1]["cimguiname"] = "ImFont_FindGlyph" defs["ImFont_FindGlyph"][1]["defaults"] = {} defs["ImFont_FindGlyph"][1]["funcname"] = "FindGlyph" -defs["ImFont_FindGlyph"][1]["location"] = "imgui:2874" +defs["ImFont_FindGlyph"][1]["location"] = "imgui:2987" defs["ImFont_FindGlyph"][1]["ov_cimguiname"] = "ImFont_FindGlyph" defs["ImFont_FindGlyph"][1]["ret"] = "const ImFontGlyph*" defs["ImFont_FindGlyph"][1]["signature"] = "(ImWchar)const" @@ -4003,7 +4021,7 @@ defs["ImFont_FindGlyphNoFallback"][1]["call_args"] = "(c)" defs["ImFont_FindGlyphNoFallback"][1]["cimguiname"] = "ImFont_FindGlyphNoFallback" defs["ImFont_FindGlyphNoFallback"][1]["defaults"] = {} defs["ImFont_FindGlyphNoFallback"][1]["funcname"] = "FindGlyphNoFallback" -defs["ImFont_FindGlyphNoFallback"][1]["location"] = "imgui:2875" +defs["ImFont_FindGlyphNoFallback"][1]["location"] = "imgui:2988" defs["ImFont_FindGlyphNoFallback"][1]["ov_cimguiname"] = "ImFont_FindGlyphNoFallback" defs["ImFont_FindGlyphNoFallback"][1]["ret"] = "const ImFontGlyph*" defs["ImFont_FindGlyphNoFallback"][1]["signature"] = "(ImWchar)const" @@ -4024,7 +4042,7 @@ defs["ImFont_GetCharAdvance"][1]["call_args"] = "(c)" defs["ImFont_GetCharAdvance"][1]["cimguiname"] = "ImFont_GetCharAdvance" defs["ImFont_GetCharAdvance"][1]["defaults"] = {} defs["ImFont_GetCharAdvance"][1]["funcname"] = "GetCharAdvance" -defs["ImFont_GetCharAdvance"][1]["location"] = "imgui:2876" +defs["ImFont_GetCharAdvance"][1]["location"] = "imgui:2989" defs["ImFont_GetCharAdvance"][1]["ov_cimguiname"] = "ImFont_GetCharAdvance" defs["ImFont_GetCharAdvance"][1]["ret"] = "float" defs["ImFont_GetCharAdvance"][1]["signature"] = "(ImWchar)const" @@ -4042,7 +4060,7 @@ defs["ImFont_GetDebugName"][1]["call_args"] = "()" defs["ImFont_GetDebugName"][1]["cimguiname"] = "ImFont_GetDebugName" defs["ImFont_GetDebugName"][1]["defaults"] = {} defs["ImFont_GetDebugName"][1]["funcname"] = "GetDebugName" -defs["ImFont_GetDebugName"][1]["location"] = "imgui:2878" +defs["ImFont_GetDebugName"][1]["location"] = "imgui:2991" defs["ImFont_GetDebugName"][1]["ov_cimguiname"] = "ImFont_GetDebugName" defs["ImFont_GetDebugName"][1]["ret"] = "const char*" defs["ImFont_GetDebugName"][1]["signature"] = "()const" @@ -4063,7 +4081,7 @@ defs["ImFont_GrowIndex"][1]["call_args"] = "(new_size)" defs["ImFont_GrowIndex"][1]["cimguiname"] = "ImFont_GrowIndex" defs["ImFont_GrowIndex"][1]["defaults"] = {} defs["ImFont_GrowIndex"][1]["funcname"] = "GrowIndex" -defs["ImFont_GrowIndex"][1]["location"] = "imgui:2890" +defs["ImFont_GrowIndex"][1]["location"] = "imgui:3003" defs["ImFont_GrowIndex"][1]["ov_cimguiname"] = "ImFont_GrowIndex" defs["ImFont_GrowIndex"][1]["ret"] = "void" defs["ImFont_GrowIndex"][1]["signature"] = "(int)" @@ -4079,7 +4097,7 @@ defs["ImFont_ImFont"][1]["cimguiname"] = "ImFont_ImFont" defs["ImFont_ImFont"][1]["constructor"] = true defs["ImFont_ImFont"][1]["defaults"] = {} defs["ImFont_ImFont"][1]["funcname"] = "ImFont" -defs["ImFont_ImFont"][1]["location"] = "imgui:2872" +defs["ImFont_ImFont"][1]["location"] = "imgui:2985" defs["ImFont_ImFont"][1]["ov_cimguiname"] = "ImFont_ImFont" defs["ImFont_ImFont"][1]["signature"] = "()" defs["ImFont_ImFont"][1]["stname"] = "ImFont" @@ -4102,7 +4120,7 @@ defs["ImFont_IsGlyphRangeUnused"][1]["call_args"] = "(c_begin,c_last)" defs["ImFont_IsGlyphRangeUnused"][1]["cimguiname"] = "ImFont_IsGlyphRangeUnused" defs["ImFont_IsGlyphRangeUnused"][1]["defaults"] = {} defs["ImFont_IsGlyphRangeUnused"][1]["funcname"] = "IsGlyphRangeUnused" -defs["ImFont_IsGlyphRangeUnused"][1]["location"] = "imgui:2894" +defs["ImFont_IsGlyphRangeUnused"][1]["location"] = "imgui:3007" defs["ImFont_IsGlyphRangeUnused"][1]["ov_cimguiname"] = "ImFont_IsGlyphRangeUnused" defs["ImFont_IsGlyphRangeUnused"][1]["ret"] = "bool" defs["ImFont_IsGlyphRangeUnused"][1]["signature"] = "(unsigned int,unsigned int)" @@ -4120,7 +4138,7 @@ defs["ImFont_IsLoaded"][1]["call_args"] = "()" defs["ImFont_IsLoaded"][1]["cimguiname"] = "ImFont_IsLoaded" defs["ImFont_IsLoaded"][1]["defaults"] = {} defs["ImFont_IsLoaded"][1]["funcname"] = "IsLoaded" -defs["ImFont_IsLoaded"][1]["location"] = "imgui:2877" +defs["ImFont_IsLoaded"][1]["location"] = "imgui:2990" defs["ImFont_IsLoaded"][1]["ov_cimguiname"] = "ImFont_IsLoaded" defs["ImFont_IsLoaded"][1]["ret"] = "bool" defs["ImFont_IsLoaded"][1]["signature"] = "()const" @@ -4128,7 +4146,7 @@ defs["ImFont_IsLoaded"][1]["stname"] = "ImFont" defs["ImFont_IsLoaded"]["()const"] = defs["ImFont_IsLoaded"][1] defs["ImFont_RenderChar"] = {} defs["ImFont_RenderChar"][1] = {} -defs["ImFont_RenderChar"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c)" +defs["ImFont_RenderChar"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)" defs["ImFont_RenderChar"][1]["argsT"] = {} defs["ImFont_RenderChar"][1]["argsT"][1] = {} defs["ImFont_RenderChar"][1]["argsT"][1]["name"] = "self" @@ -4141,27 +4159,27 @@ defs["ImFont_RenderChar"][1]["argsT"][3]["name"] = "size" defs["ImFont_RenderChar"][1]["argsT"][3]["type"] = "float" defs["ImFont_RenderChar"][1]["argsT"][4] = {} defs["ImFont_RenderChar"][1]["argsT"][4]["name"] = "pos" -defs["ImFont_RenderChar"][1]["argsT"][4]["type"] = "ImVec2" +defs["ImFont_RenderChar"][1]["argsT"][4]["type"] = "const ImVec2" defs["ImFont_RenderChar"][1]["argsT"][5] = {} defs["ImFont_RenderChar"][1]["argsT"][5]["name"] = "col" defs["ImFont_RenderChar"][1]["argsT"][5]["type"] = "ImU32" defs["ImFont_RenderChar"][1]["argsT"][6] = {} defs["ImFont_RenderChar"][1]["argsT"][6]["name"] = "c" defs["ImFont_RenderChar"][1]["argsT"][6]["type"] = "ImWchar" -defs["ImFont_RenderChar"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c)" +defs["ImFont_RenderChar"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)" defs["ImFont_RenderChar"][1]["call_args"] = "(draw_list,size,pos,col,c)" defs["ImFont_RenderChar"][1]["cimguiname"] = "ImFont_RenderChar" defs["ImFont_RenderChar"][1]["defaults"] = {} defs["ImFont_RenderChar"][1]["funcname"] = "RenderChar" -defs["ImFont_RenderChar"][1]["location"] = "imgui:2884" +defs["ImFont_RenderChar"][1]["location"] = "imgui:2997" defs["ImFont_RenderChar"][1]["ov_cimguiname"] = "ImFont_RenderChar" defs["ImFont_RenderChar"][1]["ret"] = "void" -defs["ImFont_RenderChar"][1]["signature"] = "(ImDrawList*,float,ImVec2,ImU32,ImWchar)const" +defs["ImFont_RenderChar"][1]["signature"] = "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const" defs["ImFont_RenderChar"][1]["stname"] = "ImFont" -defs["ImFont_RenderChar"]["(ImDrawList*,float,ImVec2,ImU32,ImWchar)const"] = defs["ImFont_RenderChar"][1] +defs["ImFont_RenderChar"]["(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const"] = defs["ImFont_RenderChar"][1] defs["ImFont_RenderText"] = {} defs["ImFont_RenderText"][1] = {} -defs["ImFont_RenderText"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)" +defs["ImFont_RenderText"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)" defs["ImFont_RenderText"][1]["argsT"] = {} defs["ImFont_RenderText"][1]["argsT"][1] = {} defs["ImFont_RenderText"][1]["argsT"][1]["name"] = "self" @@ -4174,7 +4192,7 @@ defs["ImFont_RenderText"][1]["argsT"][3]["name"] = "size" defs["ImFont_RenderText"][1]["argsT"][3]["type"] = "float" defs["ImFont_RenderText"][1]["argsT"][4] = {} defs["ImFont_RenderText"][1]["argsT"][4]["name"] = "pos" -defs["ImFont_RenderText"][1]["argsT"][4]["type"] = "ImVec2" +defs["ImFont_RenderText"][1]["argsT"][4]["type"] = "const ImVec2" defs["ImFont_RenderText"][1]["argsT"][5] = {} defs["ImFont_RenderText"][1]["argsT"][5]["name"] = "col" defs["ImFont_RenderText"][1]["argsT"][5]["type"] = "ImU32" @@ -4193,19 +4211,19 @@ defs["ImFont_RenderText"][1]["argsT"][9]["type"] = "float" defs["ImFont_RenderText"][1]["argsT"][10] = {} defs["ImFont_RenderText"][1]["argsT"][10]["name"] = "cpu_fine_clip" defs["ImFont_RenderText"][1]["argsT"][10]["type"] = "bool" -defs["ImFont_RenderText"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)" +defs["ImFont_RenderText"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)" defs["ImFont_RenderText"][1]["call_args"] = "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)" defs["ImFont_RenderText"][1]["cimguiname"] = "ImFont_RenderText" defs["ImFont_RenderText"][1]["defaults"] = {} defs["ImFont_RenderText"][1]["defaults"]["cpu_fine_clip"] = "false" defs["ImFont_RenderText"][1]["defaults"]["wrap_width"] = "0.0f" defs["ImFont_RenderText"][1]["funcname"] = "RenderText" -defs["ImFont_RenderText"][1]["location"] = "imgui:2885" +defs["ImFont_RenderText"][1]["location"] = "imgui:2998" defs["ImFont_RenderText"][1]["ov_cimguiname"] = "ImFont_RenderText" defs["ImFont_RenderText"][1]["ret"] = "void" -defs["ImFont_RenderText"][1]["signature"] = "(ImDrawList*,float,ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const" +defs["ImFont_RenderText"][1]["signature"] = "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const" defs["ImFont_RenderText"][1]["stname"] = "ImFont" -defs["ImFont_RenderText"]["(ImDrawList*,float,ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const"] = defs["ImFont_RenderText"][1] +defs["ImFont_RenderText"]["(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const"] = defs["ImFont_RenderText"][1] defs["ImFont_SetGlyphVisible"] = {} defs["ImFont_SetGlyphVisible"][1] = {} defs["ImFont_SetGlyphVisible"][1]["args"] = "(ImFont* self,ImWchar c,bool visible)" @@ -4224,7 +4242,7 @@ defs["ImFont_SetGlyphVisible"][1]["call_args"] = "(c,visible)" defs["ImFont_SetGlyphVisible"][1]["cimguiname"] = "ImFont_SetGlyphVisible" defs["ImFont_SetGlyphVisible"][1]["defaults"] = {} defs["ImFont_SetGlyphVisible"][1]["funcname"] = "SetGlyphVisible" -defs["ImFont_SetGlyphVisible"][1]["location"] = "imgui:2893" +defs["ImFont_SetGlyphVisible"][1]["location"] = "imgui:3006" defs["ImFont_SetGlyphVisible"][1]["ov_cimguiname"] = "ImFont_SetGlyphVisible" defs["ImFont_SetGlyphVisible"][1]["ret"] = "void" defs["ImFont_SetGlyphVisible"][1]["signature"] = "(ImWchar,bool)" @@ -4241,7 +4259,7 @@ defs["ImFont_destroy"][1]["call_args"] = "(self)" defs["ImFont_destroy"][1]["cimguiname"] = "ImFont_destroy" defs["ImFont_destroy"][1]["defaults"] = {} defs["ImFont_destroy"][1]["destructor"] = true -defs["ImFont_destroy"][1]["location"] = "imgui:2873" +defs["ImFont_destroy"][1]["location"] = "imgui:2986" defs["ImFont_destroy"][1]["ov_cimguiname"] = "ImFont_destroy" defs["ImFont_destroy"][1]["realdestructor"] = true defs["ImFont_destroy"][1]["ret"] = "void" @@ -4258,7 +4276,7 @@ defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["cimguiname"] = "ImGuiCom defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["constructor"] = true defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["defaults"] = {} defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["funcname"] = "ImGuiComboPreviewData" -defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["location"] = "imgui_internal:990" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["location"] = "imgui_internal:1018" defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["ov_cimguiname"] = "ImGuiComboPreviewData_ImGuiComboPreviewData" defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["signature"] = "()" defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["stname"] = "ImGuiComboPreviewData" @@ -4289,7 +4307,7 @@ defs["ImGuiContextHook_ImGuiContextHook"][1]["cimguiname"] = "ImGuiContextHook_I defs["ImGuiContextHook_ImGuiContextHook"][1]["constructor"] = true defs["ImGuiContextHook_ImGuiContextHook"][1]["defaults"] = {} defs["ImGuiContextHook_ImGuiContextHook"][1]["funcname"] = "ImGuiContextHook" -defs["ImGuiContextHook_ImGuiContextHook"][1]["location"] = "imgui_internal:1663" +defs["ImGuiContextHook_ImGuiContextHook"][1]["location"] = "imgui_internal:1898" defs["ImGuiContextHook_ImGuiContextHook"][1]["ov_cimguiname"] = "ImGuiContextHook_ImGuiContextHook" defs["ImGuiContextHook_ImGuiContextHook"][1]["signature"] = "()" defs["ImGuiContextHook_ImGuiContextHook"][1]["stname"] = "ImGuiContextHook" @@ -4323,7 +4341,7 @@ defs["ImGuiContext_ImGuiContext"][1]["cimguiname"] = "ImGuiContext_ImGuiContext" defs["ImGuiContext_ImGuiContext"][1]["constructor"] = true defs["ImGuiContext_ImGuiContext"][1]["defaults"] = {} defs["ImGuiContext_ImGuiContext"][1]["funcname"] = "ImGuiContext" -defs["ImGuiContext_ImGuiContext"][1]["location"] = "imgui_internal:1941" +defs["ImGuiContext_ImGuiContext"][1]["location"] = "imgui_internal:2204" defs["ImGuiContext_ImGuiContext"][1]["ov_cimguiname"] = "ImGuiContext_ImGuiContext" defs["ImGuiContext_ImGuiContext"][1]["signature"] = "(ImFontAtlas*)" defs["ImGuiContext_ImGuiContext"][1]["stname"] = "ImGuiContext" @@ -4354,7 +4372,7 @@ defs["ImGuiDockContext_ImGuiDockContext"][1]["cimguiname"] = "ImGuiDockContext_I defs["ImGuiDockContext_ImGuiDockContext"][1]["constructor"] = true defs["ImGuiDockContext_ImGuiDockContext"][1]["defaults"] = {} defs["ImGuiDockContext_ImGuiDockContext"][1]["funcname"] = "ImGuiDockContext" -defs["ImGuiDockContext_ImGuiDockContext"][1]["location"] = "imgui_internal:1508" +defs["ImGuiDockContext_ImGuiDockContext"][1]["location"] = "imgui_internal:1703" defs["ImGuiDockContext_ImGuiDockContext"][1]["ov_cimguiname"] = "ImGuiDockContext_ImGuiDockContext" defs["ImGuiDockContext_ImGuiDockContext"][1]["signature"] = "()" defs["ImGuiDockContext_ImGuiDockContext"][1]["stname"] = "ImGuiDockContext" @@ -4388,7 +4406,7 @@ defs["ImGuiDockNode_ImGuiDockNode"][1]["cimguiname"] = "ImGuiDockNode_ImGuiDockN defs["ImGuiDockNode_ImGuiDockNode"][1]["constructor"] = true defs["ImGuiDockNode_ImGuiDockNode"][1]["defaults"] = {} defs["ImGuiDockNode_ImGuiDockNode"][1]["funcname"] = "ImGuiDockNode" -defs["ImGuiDockNode_ImGuiDockNode"][1]["location"] = "imgui_internal:1465" +defs["ImGuiDockNode_ImGuiDockNode"][1]["location"] = "imgui_internal:1660" defs["ImGuiDockNode_ImGuiDockNode"][1]["ov_cimguiname"] = "ImGuiDockNode_ImGuiDockNode" defs["ImGuiDockNode_ImGuiDockNode"][1]["signature"] = "(ImGuiID)" defs["ImGuiDockNode_ImGuiDockNode"][1]["stname"] = "ImGuiDockNode" @@ -4405,7 +4423,7 @@ defs["ImGuiDockNode_IsCentralNode"][1]["call_args"] = "()" defs["ImGuiDockNode_IsCentralNode"][1]["cimguiname"] = "ImGuiDockNode_IsCentralNode" defs["ImGuiDockNode_IsCentralNode"][1]["defaults"] = {} defs["ImGuiDockNode_IsCentralNode"][1]["funcname"] = "IsCentralNode" -defs["ImGuiDockNode_IsCentralNode"][1]["location"] = "imgui_internal:1470" +defs["ImGuiDockNode_IsCentralNode"][1]["location"] = "imgui_internal:1665" defs["ImGuiDockNode_IsCentralNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsCentralNode" defs["ImGuiDockNode_IsCentralNode"][1]["ret"] = "bool" defs["ImGuiDockNode_IsCentralNode"][1]["signature"] = "()const" @@ -4423,7 +4441,7 @@ defs["ImGuiDockNode_IsDockSpace"][1]["call_args"] = "()" defs["ImGuiDockNode_IsDockSpace"][1]["cimguiname"] = "ImGuiDockNode_IsDockSpace" defs["ImGuiDockNode_IsDockSpace"][1]["defaults"] = {} defs["ImGuiDockNode_IsDockSpace"][1]["funcname"] = "IsDockSpace" -defs["ImGuiDockNode_IsDockSpace"][1]["location"] = "imgui_internal:1468" +defs["ImGuiDockNode_IsDockSpace"][1]["location"] = "imgui_internal:1663" defs["ImGuiDockNode_IsDockSpace"][1]["ov_cimguiname"] = "ImGuiDockNode_IsDockSpace" defs["ImGuiDockNode_IsDockSpace"][1]["ret"] = "bool" defs["ImGuiDockNode_IsDockSpace"][1]["signature"] = "()const" @@ -4441,7 +4459,7 @@ defs["ImGuiDockNode_IsEmpty"][1]["call_args"] = "()" defs["ImGuiDockNode_IsEmpty"][1]["cimguiname"] = "ImGuiDockNode_IsEmpty" defs["ImGuiDockNode_IsEmpty"][1]["defaults"] = {} defs["ImGuiDockNode_IsEmpty"][1]["funcname"] = "IsEmpty" -defs["ImGuiDockNode_IsEmpty"][1]["location"] = "imgui_internal:1475" +defs["ImGuiDockNode_IsEmpty"][1]["location"] = "imgui_internal:1670" defs["ImGuiDockNode_IsEmpty"][1]["ov_cimguiname"] = "ImGuiDockNode_IsEmpty" defs["ImGuiDockNode_IsEmpty"][1]["ret"] = "bool" defs["ImGuiDockNode_IsEmpty"][1]["signature"] = "()const" @@ -4459,7 +4477,7 @@ defs["ImGuiDockNode_IsFloatingNode"][1]["call_args"] = "()" defs["ImGuiDockNode_IsFloatingNode"][1]["cimguiname"] = "ImGuiDockNode_IsFloatingNode" defs["ImGuiDockNode_IsFloatingNode"][1]["defaults"] = {} defs["ImGuiDockNode_IsFloatingNode"][1]["funcname"] = "IsFloatingNode" -defs["ImGuiDockNode_IsFloatingNode"][1]["location"] = "imgui_internal:1469" +defs["ImGuiDockNode_IsFloatingNode"][1]["location"] = "imgui_internal:1664" defs["ImGuiDockNode_IsFloatingNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsFloatingNode" defs["ImGuiDockNode_IsFloatingNode"][1]["ret"] = "bool" defs["ImGuiDockNode_IsFloatingNode"][1]["signature"] = "()const" @@ -4477,7 +4495,7 @@ defs["ImGuiDockNode_IsHiddenTabBar"][1]["call_args"] = "()" defs["ImGuiDockNode_IsHiddenTabBar"][1]["cimguiname"] = "ImGuiDockNode_IsHiddenTabBar" defs["ImGuiDockNode_IsHiddenTabBar"][1]["defaults"] = {} defs["ImGuiDockNode_IsHiddenTabBar"][1]["funcname"] = "IsHiddenTabBar" -defs["ImGuiDockNode_IsHiddenTabBar"][1]["location"] = "imgui_internal:1471" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["location"] = "imgui_internal:1666" defs["ImGuiDockNode_IsHiddenTabBar"][1]["ov_cimguiname"] = "ImGuiDockNode_IsHiddenTabBar" defs["ImGuiDockNode_IsHiddenTabBar"][1]["ret"] = "bool" defs["ImGuiDockNode_IsHiddenTabBar"][1]["signature"] = "()const" @@ -4495,7 +4513,7 @@ defs["ImGuiDockNode_IsLeafNode"][1]["call_args"] = "()" defs["ImGuiDockNode_IsLeafNode"][1]["cimguiname"] = "ImGuiDockNode_IsLeafNode" defs["ImGuiDockNode_IsLeafNode"][1]["defaults"] = {} defs["ImGuiDockNode_IsLeafNode"][1]["funcname"] = "IsLeafNode" -defs["ImGuiDockNode_IsLeafNode"][1]["location"] = "imgui_internal:1474" +defs["ImGuiDockNode_IsLeafNode"][1]["location"] = "imgui_internal:1669" defs["ImGuiDockNode_IsLeafNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsLeafNode" defs["ImGuiDockNode_IsLeafNode"][1]["ret"] = "bool" defs["ImGuiDockNode_IsLeafNode"][1]["signature"] = "()const" @@ -4513,7 +4531,7 @@ defs["ImGuiDockNode_IsNoTabBar"][1]["call_args"] = "()" defs["ImGuiDockNode_IsNoTabBar"][1]["cimguiname"] = "ImGuiDockNode_IsNoTabBar" defs["ImGuiDockNode_IsNoTabBar"][1]["defaults"] = {} defs["ImGuiDockNode_IsNoTabBar"][1]["funcname"] = "IsNoTabBar" -defs["ImGuiDockNode_IsNoTabBar"][1]["location"] = "imgui_internal:1472" +defs["ImGuiDockNode_IsNoTabBar"][1]["location"] = "imgui_internal:1667" defs["ImGuiDockNode_IsNoTabBar"][1]["ov_cimguiname"] = "ImGuiDockNode_IsNoTabBar" defs["ImGuiDockNode_IsNoTabBar"][1]["ret"] = "bool" defs["ImGuiDockNode_IsNoTabBar"][1]["signature"] = "()const" @@ -4531,7 +4549,7 @@ defs["ImGuiDockNode_IsRootNode"][1]["call_args"] = "()" defs["ImGuiDockNode_IsRootNode"][1]["cimguiname"] = "ImGuiDockNode_IsRootNode" defs["ImGuiDockNode_IsRootNode"][1]["defaults"] = {} defs["ImGuiDockNode_IsRootNode"][1]["funcname"] = "IsRootNode" -defs["ImGuiDockNode_IsRootNode"][1]["location"] = "imgui_internal:1467" +defs["ImGuiDockNode_IsRootNode"][1]["location"] = "imgui_internal:1662" defs["ImGuiDockNode_IsRootNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsRootNode" defs["ImGuiDockNode_IsRootNode"][1]["ret"] = "bool" defs["ImGuiDockNode_IsRootNode"][1]["signature"] = "()const" @@ -4549,7 +4567,7 @@ defs["ImGuiDockNode_IsSplitNode"][1]["call_args"] = "()" defs["ImGuiDockNode_IsSplitNode"][1]["cimguiname"] = "ImGuiDockNode_IsSplitNode" defs["ImGuiDockNode_IsSplitNode"][1]["defaults"] = {} defs["ImGuiDockNode_IsSplitNode"][1]["funcname"] = "IsSplitNode" -defs["ImGuiDockNode_IsSplitNode"][1]["location"] = "imgui_internal:1473" +defs["ImGuiDockNode_IsSplitNode"][1]["location"] = "imgui_internal:1668" defs["ImGuiDockNode_IsSplitNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsSplitNode" defs["ImGuiDockNode_IsSplitNode"][1]["ret"] = "bool" defs["ImGuiDockNode_IsSplitNode"][1]["signature"] = "()const" @@ -4570,7 +4588,7 @@ defs["ImGuiDockNode_Rect"][1]["call_args"] = "()" defs["ImGuiDockNode_Rect"][1]["cimguiname"] = "ImGuiDockNode_Rect" defs["ImGuiDockNode_Rect"][1]["defaults"] = {} defs["ImGuiDockNode_Rect"][1]["funcname"] = "Rect" -defs["ImGuiDockNode_Rect"][1]["location"] = "imgui_internal:1476" +defs["ImGuiDockNode_Rect"][1]["location"] = "imgui_internal:1671" defs["ImGuiDockNode_Rect"][1]["nonUDT"] = 1 defs["ImGuiDockNode_Rect"][1]["ov_cimguiname"] = "ImGuiDockNode_Rect" defs["ImGuiDockNode_Rect"][1]["ret"] = "void" @@ -4592,7 +4610,7 @@ defs["ImGuiDockNode_SetLocalFlags"][1]["call_args"] = "(flags)" defs["ImGuiDockNode_SetLocalFlags"][1]["cimguiname"] = "ImGuiDockNode_SetLocalFlags" defs["ImGuiDockNode_SetLocalFlags"][1]["defaults"] = {} defs["ImGuiDockNode_SetLocalFlags"][1]["funcname"] = "SetLocalFlags" -defs["ImGuiDockNode_SetLocalFlags"][1]["location"] = "imgui_internal:1478" +defs["ImGuiDockNode_SetLocalFlags"][1]["location"] = "imgui_internal:1673" defs["ImGuiDockNode_SetLocalFlags"][1]["ov_cimguiname"] = "ImGuiDockNode_SetLocalFlags" defs["ImGuiDockNode_SetLocalFlags"][1]["ret"] = "void" defs["ImGuiDockNode_SetLocalFlags"][1]["signature"] = "(ImGuiDockNodeFlags)" @@ -4610,7 +4628,7 @@ defs["ImGuiDockNode_UpdateMergedFlags"][1]["call_args"] = "()" defs["ImGuiDockNode_UpdateMergedFlags"][1]["cimguiname"] = "ImGuiDockNode_UpdateMergedFlags" defs["ImGuiDockNode_UpdateMergedFlags"][1]["defaults"] = {} defs["ImGuiDockNode_UpdateMergedFlags"][1]["funcname"] = "UpdateMergedFlags" -defs["ImGuiDockNode_UpdateMergedFlags"][1]["location"] = "imgui_internal:1479" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["location"] = "imgui_internal:1674" defs["ImGuiDockNode_UpdateMergedFlags"][1]["ov_cimguiname"] = "ImGuiDockNode_UpdateMergedFlags" defs["ImGuiDockNode_UpdateMergedFlags"][1]["ret"] = "void" defs["ImGuiDockNode_UpdateMergedFlags"][1]["signature"] = "()" @@ -4627,7 +4645,7 @@ defs["ImGuiDockNode_destroy"][1]["call_args"] = "(self)" defs["ImGuiDockNode_destroy"][1]["cimguiname"] = "ImGuiDockNode_destroy" defs["ImGuiDockNode_destroy"][1]["defaults"] = {} defs["ImGuiDockNode_destroy"][1]["destructor"] = true -defs["ImGuiDockNode_destroy"][1]["location"] = "imgui_internal:1466" +defs["ImGuiDockNode_destroy"][1]["location"] = "imgui_internal:1661" defs["ImGuiDockNode_destroy"][1]["ov_cimguiname"] = "ImGuiDockNode_destroy" defs["ImGuiDockNode_destroy"][1]["realdestructor"] = true defs["ImGuiDockNode_destroy"][1]["ret"] = "void" @@ -4649,7 +4667,7 @@ defs["ImGuiIO_AddFocusEvent"][1]["call_args"] = "(focused)" defs["ImGuiIO_AddFocusEvent"][1]["cimguiname"] = "ImGuiIO_AddFocusEvent" defs["ImGuiIO_AddFocusEvent"][1]["defaults"] = {} defs["ImGuiIO_AddFocusEvent"][1]["funcname"] = "AddFocusEvent" -defs["ImGuiIO_AddFocusEvent"][1]["location"] = "imgui:1983" +defs["ImGuiIO_AddFocusEvent"][1]["location"] = "imgui:2063" defs["ImGuiIO_AddFocusEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddFocusEvent" defs["ImGuiIO_AddFocusEvent"][1]["ret"] = "void" defs["ImGuiIO_AddFocusEvent"][1]["signature"] = "(bool)" @@ -4670,7 +4688,7 @@ defs["ImGuiIO_AddInputCharacter"][1]["call_args"] = "(c)" defs["ImGuiIO_AddInputCharacter"][1]["cimguiname"] = "ImGuiIO_AddInputCharacter" defs["ImGuiIO_AddInputCharacter"][1]["defaults"] = {} defs["ImGuiIO_AddInputCharacter"][1]["funcname"] = "AddInputCharacter" -defs["ImGuiIO_AddInputCharacter"][1]["location"] = "imgui:1980" +defs["ImGuiIO_AddInputCharacter"][1]["location"] = "imgui:2064" defs["ImGuiIO_AddInputCharacter"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharacter" defs["ImGuiIO_AddInputCharacter"][1]["ret"] = "void" defs["ImGuiIO_AddInputCharacter"][1]["signature"] = "(unsigned int)" @@ -4691,7 +4709,7 @@ defs["ImGuiIO_AddInputCharacterUTF16"][1]["call_args"] = "(c)" defs["ImGuiIO_AddInputCharacterUTF16"][1]["cimguiname"] = "ImGuiIO_AddInputCharacterUTF16" defs["ImGuiIO_AddInputCharacterUTF16"][1]["defaults"] = {} defs["ImGuiIO_AddInputCharacterUTF16"][1]["funcname"] = "AddInputCharacterUTF16" -defs["ImGuiIO_AddInputCharacterUTF16"][1]["location"] = "imgui:1981" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["location"] = "imgui:2065" defs["ImGuiIO_AddInputCharacterUTF16"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharacterUTF16" defs["ImGuiIO_AddInputCharacterUTF16"][1]["ret"] = "void" defs["ImGuiIO_AddInputCharacterUTF16"][1]["signature"] = "(ImWchar16)" @@ -4712,12 +4730,156 @@ defs["ImGuiIO_AddInputCharactersUTF8"][1]["call_args"] = "(str)" defs["ImGuiIO_AddInputCharactersUTF8"][1]["cimguiname"] = "ImGuiIO_AddInputCharactersUTF8" defs["ImGuiIO_AddInputCharactersUTF8"][1]["defaults"] = {} defs["ImGuiIO_AddInputCharactersUTF8"][1]["funcname"] = "AddInputCharactersUTF8" -defs["ImGuiIO_AddInputCharactersUTF8"][1]["location"] = "imgui:1982" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["location"] = "imgui:2066" defs["ImGuiIO_AddInputCharactersUTF8"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharactersUTF8" defs["ImGuiIO_AddInputCharactersUTF8"][1]["ret"] = "void" defs["ImGuiIO_AddInputCharactersUTF8"][1]["signature"] = "(const char*)" defs["ImGuiIO_AddInputCharactersUTF8"][1]["stname"] = "ImGuiIO" defs["ImGuiIO_AddInputCharactersUTF8"]["(const char*)"] = defs["ImGuiIO_AddInputCharactersUTF8"][1] +defs["ImGuiIO_AddKeyAnalogEvent"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,bool down,float v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4]["name"] = "v" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4]["type"] = "float" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsoriginal"] = "(ImGuiKey key,bool down,float v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["call_args"] = "(key,down,v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["cimguiname"] = "ImGuiIO_AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["funcname"] = "AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["location"] = "imgui:2058" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["signature"] = "(ImGuiKey,bool,float)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddKeyAnalogEvent"]["(ImGuiKey,bool,float)"] = defs["ImGuiIO_AddKeyAnalogEvent"][1] +defs["ImGuiIO_AddKeyEvent"] = {} +defs["ImGuiIO_AddKeyEvent"][1] = {} +defs["ImGuiIO_AddKeyEvent"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,bool down)" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddKeyEvent"][1]["argsoriginal"] = "(ImGuiKey key,bool down)" +defs["ImGuiIO_AddKeyEvent"][1]["call_args"] = "(key,down)" +defs["ImGuiIO_AddKeyEvent"][1]["cimguiname"] = "ImGuiIO_AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddKeyEvent"][1]["funcname"] = "AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["location"] = "imgui:2057" +defs["ImGuiIO_AddKeyEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddKeyEvent"][1]["signature"] = "(ImGuiKey,bool)" +defs["ImGuiIO_AddKeyEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddKeyEvent"]["(ImGuiKey,bool)"] = defs["ImGuiIO_AddKeyEvent"][1] +defs["ImGuiIO_AddMouseButtonEvent"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["args"] = "(ImGuiIO* self,int button,bool down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2]["name"] = "button" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2]["type"] = "int" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsoriginal"] = "(int button,bool down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["call_args"] = "(button,down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["funcname"] = "AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["location"] = "imgui:2060" +defs["ImGuiIO_AddMouseButtonEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseButtonEvent"][1]["signature"] = "(int,bool)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseButtonEvent"]["(int,bool)"] = defs["ImGuiIO_AddMouseButtonEvent"][1] +defs["ImGuiIO_AddMousePosEvent"] = {} +defs["ImGuiIO_AddMousePosEvent"][1] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["args"] = "(ImGuiIO* self,float x,float y)" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2]["name"] = "x" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2]["type"] = "float" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3]["name"] = "y" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3]["type"] = "float" +defs["ImGuiIO_AddMousePosEvent"][1]["argsoriginal"] = "(float x,float y)" +defs["ImGuiIO_AddMousePosEvent"][1]["call_args"] = "(x,y)" +defs["ImGuiIO_AddMousePosEvent"][1]["cimguiname"] = "ImGuiIO_AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["funcname"] = "AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["location"] = "imgui:2059" +defs["ImGuiIO_AddMousePosEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMousePosEvent"][1]["signature"] = "(float,float)" +defs["ImGuiIO_AddMousePosEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMousePosEvent"]["(float,float)"] = defs["ImGuiIO_AddMousePosEvent"][1] +defs["ImGuiIO_AddMouseViewportEvent"] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["args"] = "(ImGuiIO* self,ImGuiID id)" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][2]["name"] = "id" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsoriginal"] = "(ImGuiID id)" +defs["ImGuiIO_AddMouseViewportEvent"][1]["call_args"] = "(id)" +defs["ImGuiIO_AddMouseViewportEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseViewportEvent" +defs["ImGuiIO_AddMouseViewportEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["funcname"] = "AddMouseViewportEvent" +defs["ImGuiIO_AddMouseViewportEvent"][1]["location"] = "imgui:2062" +defs["ImGuiIO_AddMouseViewportEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseViewportEvent" +defs["ImGuiIO_AddMouseViewportEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseViewportEvent"][1]["signature"] = "(ImGuiID)" +defs["ImGuiIO_AddMouseViewportEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseViewportEvent"]["(ImGuiID)"] = defs["ImGuiIO_AddMouseViewportEvent"][1] +defs["ImGuiIO_AddMouseWheelEvent"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["args"] = "(ImGuiIO* self,float wh_x,float wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2]["name"] = "wh_x" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2]["type"] = "float" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3]["name"] = "wh_y" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3]["type"] = "float" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsoriginal"] = "(float wh_x,float wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["call_args"] = "(wh_x,wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["funcname"] = "AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["location"] = "imgui:2061" +defs["ImGuiIO_AddMouseWheelEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseWheelEvent"][1]["signature"] = "(float,float)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseWheelEvent"]["(float,float)"] = defs["ImGuiIO_AddMouseWheelEvent"][1] defs["ImGuiIO_ClearInputCharacters"] = {} defs["ImGuiIO_ClearInputCharacters"][1] = {} defs["ImGuiIO_ClearInputCharacters"][1]["args"] = "(ImGuiIO* self)" @@ -4730,7 +4892,7 @@ defs["ImGuiIO_ClearInputCharacters"][1]["call_args"] = "()" defs["ImGuiIO_ClearInputCharacters"][1]["cimguiname"] = "ImGuiIO_ClearInputCharacters" defs["ImGuiIO_ClearInputCharacters"][1]["defaults"] = {} defs["ImGuiIO_ClearInputCharacters"][1]["funcname"] = "ClearInputCharacters" -defs["ImGuiIO_ClearInputCharacters"][1]["location"] = "imgui:1984" +defs["ImGuiIO_ClearInputCharacters"][1]["location"] = "imgui:2070" defs["ImGuiIO_ClearInputCharacters"][1]["ov_cimguiname"] = "ImGuiIO_ClearInputCharacters" defs["ImGuiIO_ClearInputCharacters"][1]["ret"] = "void" defs["ImGuiIO_ClearInputCharacters"][1]["signature"] = "()" @@ -4748,7 +4910,7 @@ defs["ImGuiIO_ClearInputKeys"][1]["call_args"] = "()" defs["ImGuiIO_ClearInputKeys"][1]["cimguiname"] = "ImGuiIO_ClearInputKeys" defs["ImGuiIO_ClearInputKeys"][1]["defaults"] = {} defs["ImGuiIO_ClearInputKeys"][1]["funcname"] = "ClearInputKeys" -defs["ImGuiIO_ClearInputKeys"][1]["location"] = "imgui:1985" +defs["ImGuiIO_ClearInputKeys"][1]["location"] = "imgui:2071" defs["ImGuiIO_ClearInputKeys"][1]["ov_cimguiname"] = "ImGuiIO_ClearInputKeys" defs["ImGuiIO_ClearInputKeys"][1]["ret"] = "void" defs["ImGuiIO_ClearInputKeys"][1]["signature"] = "()" @@ -4764,11 +4926,63 @@ defs["ImGuiIO_ImGuiIO"][1]["cimguiname"] = "ImGuiIO_ImGuiIO" defs["ImGuiIO_ImGuiIO"][1]["constructor"] = true defs["ImGuiIO_ImGuiIO"][1]["defaults"] = {} defs["ImGuiIO_ImGuiIO"][1]["funcname"] = "ImGuiIO" -defs["ImGuiIO_ImGuiIO"][1]["location"] = "imgui:2038" +defs["ImGuiIO_ImGuiIO"][1]["location"] = "imgui:2146" defs["ImGuiIO_ImGuiIO"][1]["ov_cimguiname"] = "ImGuiIO_ImGuiIO" defs["ImGuiIO_ImGuiIO"][1]["signature"] = "()" defs["ImGuiIO_ImGuiIO"][1]["stname"] = "ImGuiIO" defs["ImGuiIO_ImGuiIO"]["()"] = defs["ImGuiIO_ImGuiIO"][1] +defs["ImGuiIO_SetAppAcceptingEvents"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["args"] = "(ImGuiIO* self,bool accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2]["name"] = "accepting_events" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2]["type"] = "bool" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsoriginal"] = "(bool accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["call_args"] = "(accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["cimguiname"] = "ImGuiIO_SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["defaults"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["funcname"] = "SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["location"] = "imgui:2069" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["ov_cimguiname"] = "ImGuiIO_SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["ret"] = "void" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["signature"] = "(bool)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_SetAppAcceptingEvents"]["(bool)"] = defs["ImGuiIO_SetAppAcceptingEvents"][1] +defs["ImGuiIO_SetKeyEventNativeData"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3]["name"] = "native_keycode" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4]["name"] = "native_scancode" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5]["name"] = "native_legacy_index" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsoriginal"] = "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["call_args"] = "(key,native_keycode,native_scancode,native_legacy_index)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["cimguiname"] = "ImGuiIO_SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["defaults"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["defaults"]["native_legacy_index"] = "-1" +defs["ImGuiIO_SetKeyEventNativeData"][1]["funcname"] = "SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["location"] = "imgui:2068" +defs["ImGuiIO_SetKeyEventNativeData"][1]["ov_cimguiname"] = "ImGuiIO_SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["ret"] = "void" +defs["ImGuiIO_SetKeyEventNativeData"][1]["signature"] = "(ImGuiKey,int,int,int)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_SetKeyEventNativeData"]["(ImGuiKey,int,int,int)"] = defs["ImGuiIO_SetKeyEventNativeData"][1] defs["ImGuiIO_destroy"] = {} defs["ImGuiIO_destroy"][1] = {} defs["ImGuiIO_destroy"][1]["args"] = "(ImGuiIO* self)" @@ -4785,6 +4999,37 @@ defs["ImGuiIO_destroy"][1]["ret"] = "void" defs["ImGuiIO_destroy"][1]["signature"] = "(ImGuiIO*)" defs["ImGuiIO_destroy"][1]["stname"] = "ImGuiIO" defs["ImGuiIO_destroy"]["(ImGuiIO*)"] = defs["ImGuiIO_destroy"][1] +defs["ImGuiInputEvent_ImGuiInputEvent"] = {} +defs["ImGuiInputEvent_ImGuiInputEvent"][1] = {} +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["args"] = "()" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["argsT"] = {} +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["argsoriginal"] = "()" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["call_args"] = "()" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["cimguiname"] = "ImGuiInputEvent_ImGuiInputEvent" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["constructor"] = true +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["defaults"] = {} +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["funcname"] = "ImGuiInputEvent" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["location"] = "imgui_internal:1302" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["ov_cimguiname"] = "ImGuiInputEvent_ImGuiInputEvent" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["signature"] = "()" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["stname"] = "ImGuiInputEvent" +defs["ImGuiInputEvent_ImGuiInputEvent"]["()"] = defs["ImGuiInputEvent_ImGuiInputEvent"][1] +defs["ImGuiInputEvent_destroy"] = {} +defs["ImGuiInputEvent_destroy"][1] = {} +defs["ImGuiInputEvent_destroy"][1]["args"] = "(ImGuiInputEvent* self)" +defs["ImGuiInputEvent_destroy"][1]["argsT"] = {} +defs["ImGuiInputEvent_destroy"][1]["argsT"][1] = {} +defs["ImGuiInputEvent_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputEvent_destroy"][1]["argsT"][1]["type"] = "ImGuiInputEvent*" +defs["ImGuiInputEvent_destroy"][1]["call_args"] = "(self)" +defs["ImGuiInputEvent_destroy"][1]["cimguiname"] = "ImGuiInputEvent_destroy" +defs["ImGuiInputEvent_destroy"][1]["defaults"] = {} +defs["ImGuiInputEvent_destroy"][1]["destructor"] = true +defs["ImGuiInputEvent_destroy"][1]["ov_cimguiname"] = "ImGuiInputEvent_destroy" +defs["ImGuiInputEvent_destroy"][1]["ret"] = "void" +defs["ImGuiInputEvent_destroy"][1]["signature"] = "(ImGuiInputEvent*)" +defs["ImGuiInputEvent_destroy"][1]["stname"] = "ImGuiInputEvent" +defs["ImGuiInputEvent_destroy"]["(ImGuiInputEvent*)"] = defs["ImGuiInputEvent_destroy"][1] defs["ImGuiInputTextCallbackData_ClearSelection"] = {} defs["ImGuiInputTextCallbackData_ClearSelection"][1] = {} defs["ImGuiInputTextCallbackData_ClearSelection"][1]["args"] = "(ImGuiInputTextCallbackData* self)" @@ -4797,7 +5042,7 @@ defs["ImGuiInputTextCallbackData_ClearSelection"][1]["call_args"] = "()" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["cimguiname"] = "ImGuiInputTextCallbackData_ClearSelection" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_ClearSelection"][1]["funcname"] = "ClearSelection" -defs["ImGuiInputTextCallbackData_ClearSelection"][1]["location"] = "imgui:2079" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["location"] = "imgui:2187" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_ClearSelection" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["ret"] = "void" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["signature"] = "()" @@ -4821,7 +5066,7 @@ defs["ImGuiInputTextCallbackData_DeleteChars"][1]["call_args"] = "(pos,bytes_cou defs["ImGuiInputTextCallbackData_DeleteChars"][1]["cimguiname"] = "ImGuiInputTextCallbackData_DeleteChars" defs["ImGuiInputTextCallbackData_DeleteChars"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_DeleteChars"][1]["funcname"] = "DeleteChars" -defs["ImGuiInputTextCallbackData_DeleteChars"][1]["location"] = "imgui:2076" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["location"] = "imgui:2184" defs["ImGuiInputTextCallbackData_DeleteChars"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_DeleteChars" defs["ImGuiInputTextCallbackData_DeleteChars"][1]["ret"] = "void" defs["ImGuiInputTextCallbackData_DeleteChars"][1]["signature"] = "(int,int)" @@ -4839,7 +5084,7 @@ defs["ImGuiInputTextCallbackData_HasSelection"][1]["call_args"] = "()" defs["ImGuiInputTextCallbackData_HasSelection"][1]["cimguiname"] = "ImGuiInputTextCallbackData_HasSelection" defs["ImGuiInputTextCallbackData_HasSelection"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_HasSelection"][1]["funcname"] = "HasSelection" -defs["ImGuiInputTextCallbackData_HasSelection"][1]["location"] = "imgui:2080" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["location"] = "imgui:2188" defs["ImGuiInputTextCallbackData_HasSelection"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_HasSelection" defs["ImGuiInputTextCallbackData_HasSelection"][1]["ret"] = "bool" defs["ImGuiInputTextCallbackData_HasSelection"][1]["signature"] = "()const" @@ -4855,7 +5100,7 @@ defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["cimguiname"] = defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["constructor"] = true defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["funcname"] = "ImGuiInputTextCallbackData" -defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["location"] = "imgui:2075" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["location"] = "imgui:2183" defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData" defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["signature"] = "()" defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["stname"] = "ImGuiInputTextCallbackData" @@ -4882,7 +5127,7 @@ defs["ImGuiInputTextCallbackData_InsertChars"][1]["cimguiname"] = "ImGuiInputTex defs["ImGuiInputTextCallbackData_InsertChars"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_InsertChars"][1]["defaults"]["text_end"] = "NULL" defs["ImGuiInputTextCallbackData_InsertChars"][1]["funcname"] = "InsertChars" -defs["ImGuiInputTextCallbackData_InsertChars"][1]["location"] = "imgui:2077" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["location"] = "imgui:2185" defs["ImGuiInputTextCallbackData_InsertChars"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_InsertChars" defs["ImGuiInputTextCallbackData_InsertChars"][1]["ret"] = "void" defs["ImGuiInputTextCallbackData_InsertChars"][1]["signature"] = "(int,const char*,const char*)" @@ -4900,7 +5145,7 @@ defs["ImGuiInputTextCallbackData_SelectAll"][1]["call_args"] = "()" defs["ImGuiInputTextCallbackData_SelectAll"][1]["cimguiname"] = "ImGuiInputTextCallbackData_SelectAll" defs["ImGuiInputTextCallbackData_SelectAll"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_SelectAll"][1]["funcname"] = "SelectAll" -defs["ImGuiInputTextCallbackData_SelectAll"][1]["location"] = "imgui:2078" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["location"] = "imgui:2186" defs["ImGuiInputTextCallbackData_SelectAll"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_SelectAll" defs["ImGuiInputTextCallbackData_SelectAll"][1]["ret"] = "void" defs["ImGuiInputTextCallbackData_SelectAll"][1]["signature"] = "()" @@ -4934,7 +5179,7 @@ defs["ImGuiInputTextState_ClearFreeMemory"][1]["call_args"] = "()" defs["ImGuiInputTextState_ClearFreeMemory"][1]["cimguiname"] = "ImGuiInputTextState_ClearFreeMemory" defs["ImGuiInputTextState_ClearFreeMemory"][1]["defaults"] = {} defs["ImGuiInputTextState_ClearFreeMemory"][1]["funcname"] = "ClearFreeMemory" -defs["ImGuiInputTextState_ClearFreeMemory"][1]["location"] = "imgui_internal:1048" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["location"] = "imgui_internal:1076" defs["ImGuiInputTextState_ClearFreeMemory"][1]["ov_cimguiname"] = "ImGuiInputTextState_ClearFreeMemory" defs["ImGuiInputTextState_ClearFreeMemory"][1]["ret"] = "void" defs["ImGuiInputTextState_ClearFreeMemory"][1]["signature"] = "()" @@ -4952,7 +5197,7 @@ defs["ImGuiInputTextState_ClearSelection"][1]["call_args"] = "()" defs["ImGuiInputTextState_ClearSelection"][1]["cimguiname"] = "ImGuiInputTextState_ClearSelection" defs["ImGuiInputTextState_ClearSelection"][1]["defaults"] = {} defs["ImGuiInputTextState_ClearSelection"][1]["funcname"] = "ClearSelection" -defs["ImGuiInputTextState_ClearSelection"][1]["location"] = "imgui_internal:1057" +defs["ImGuiInputTextState_ClearSelection"][1]["location"] = "imgui_internal:1085" defs["ImGuiInputTextState_ClearSelection"][1]["ov_cimguiname"] = "ImGuiInputTextState_ClearSelection" defs["ImGuiInputTextState_ClearSelection"][1]["ret"] = "void" defs["ImGuiInputTextState_ClearSelection"][1]["signature"] = "()" @@ -4970,7 +5215,7 @@ defs["ImGuiInputTextState_ClearText"][1]["call_args"] = "()" defs["ImGuiInputTextState_ClearText"][1]["cimguiname"] = "ImGuiInputTextState_ClearText" defs["ImGuiInputTextState_ClearText"][1]["defaults"] = {} defs["ImGuiInputTextState_ClearText"][1]["funcname"] = "ClearText" -defs["ImGuiInputTextState_ClearText"][1]["location"] = "imgui_internal:1047" +defs["ImGuiInputTextState_ClearText"][1]["location"] = "imgui_internal:1075" defs["ImGuiInputTextState_ClearText"][1]["ov_cimguiname"] = "ImGuiInputTextState_ClearText" defs["ImGuiInputTextState_ClearText"][1]["ret"] = "void" defs["ImGuiInputTextState_ClearText"][1]["signature"] = "()" @@ -4988,7 +5233,7 @@ defs["ImGuiInputTextState_CursorAnimReset"][1]["call_args"] = "()" defs["ImGuiInputTextState_CursorAnimReset"][1]["cimguiname"] = "ImGuiInputTextState_CursorAnimReset" defs["ImGuiInputTextState_CursorAnimReset"][1]["defaults"] = {} defs["ImGuiInputTextState_CursorAnimReset"][1]["funcname"] = "CursorAnimReset" -defs["ImGuiInputTextState_CursorAnimReset"][1]["location"] = "imgui_internal:1054" +defs["ImGuiInputTextState_CursorAnimReset"][1]["location"] = "imgui_internal:1082" defs["ImGuiInputTextState_CursorAnimReset"][1]["ov_cimguiname"] = "ImGuiInputTextState_CursorAnimReset" defs["ImGuiInputTextState_CursorAnimReset"][1]["ret"] = "void" defs["ImGuiInputTextState_CursorAnimReset"][1]["signature"] = "()" @@ -5006,7 +5251,7 @@ defs["ImGuiInputTextState_CursorClamp"][1]["call_args"] = "()" defs["ImGuiInputTextState_CursorClamp"][1]["cimguiname"] = "ImGuiInputTextState_CursorClamp" defs["ImGuiInputTextState_CursorClamp"][1]["defaults"] = {} defs["ImGuiInputTextState_CursorClamp"][1]["funcname"] = "CursorClamp" -defs["ImGuiInputTextState_CursorClamp"][1]["location"] = "imgui_internal:1055" +defs["ImGuiInputTextState_CursorClamp"][1]["location"] = "imgui_internal:1083" defs["ImGuiInputTextState_CursorClamp"][1]["ov_cimguiname"] = "ImGuiInputTextState_CursorClamp" defs["ImGuiInputTextState_CursorClamp"][1]["ret"] = "void" defs["ImGuiInputTextState_CursorClamp"][1]["signature"] = "()" @@ -5024,7 +5269,7 @@ defs["ImGuiInputTextState_GetCursorPos"][1]["call_args"] = "()" defs["ImGuiInputTextState_GetCursorPos"][1]["cimguiname"] = "ImGuiInputTextState_GetCursorPos" defs["ImGuiInputTextState_GetCursorPos"][1]["defaults"] = {} defs["ImGuiInputTextState_GetCursorPos"][1]["funcname"] = "GetCursorPos" -defs["ImGuiInputTextState_GetCursorPos"][1]["location"] = "imgui_internal:1058" +defs["ImGuiInputTextState_GetCursorPos"][1]["location"] = "imgui_internal:1086" defs["ImGuiInputTextState_GetCursorPos"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetCursorPos" defs["ImGuiInputTextState_GetCursorPos"][1]["ret"] = "int" defs["ImGuiInputTextState_GetCursorPos"][1]["signature"] = "()const" @@ -5042,7 +5287,7 @@ defs["ImGuiInputTextState_GetRedoAvailCount"][1]["call_args"] = "()" defs["ImGuiInputTextState_GetRedoAvailCount"][1]["cimguiname"] = "ImGuiInputTextState_GetRedoAvailCount" defs["ImGuiInputTextState_GetRedoAvailCount"][1]["defaults"] = {} defs["ImGuiInputTextState_GetRedoAvailCount"][1]["funcname"] = "GetRedoAvailCount" -defs["ImGuiInputTextState_GetRedoAvailCount"][1]["location"] = "imgui_internal:1050" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["location"] = "imgui_internal:1078" defs["ImGuiInputTextState_GetRedoAvailCount"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetRedoAvailCount" defs["ImGuiInputTextState_GetRedoAvailCount"][1]["ret"] = "int" defs["ImGuiInputTextState_GetRedoAvailCount"][1]["signature"] = "()const" @@ -5060,7 +5305,7 @@ defs["ImGuiInputTextState_GetSelectionEnd"][1]["call_args"] = "()" defs["ImGuiInputTextState_GetSelectionEnd"][1]["cimguiname"] = "ImGuiInputTextState_GetSelectionEnd" defs["ImGuiInputTextState_GetSelectionEnd"][1]["defaults"] = {} defs["ImGuiInputTextState_GetSelectionEnd"][1]["funcname"] = "GetSelectionEnd" -defs["ImGuiInputTextState_GetSelectionEnd"][1]["location"] = "imgui_internal:1060" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["location"] = "imgui_internal:1088" defs["ImGuiInputTextState_GetSelectionEnd"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetSelectionEnd" defs["ImGuiInputTextState_GetSelectionEnd"][1]["ret"] = "int" defs["ImGuiInputTextState_GetSelectionEnd"][1]["signature"] = "()const" @@ -5078,7 +5323,7 @@ defs["ImGuiInputTextState_GetSelectionStart"][1]["call_args"] = "()" defs["ImGuiInputTextState_GetSelectionStart"][1]["cimguiname"] = "ImGuiInputTextState_GetSelectionStart" defs["ImGuiInputTextState_GetSelectionStart"][1]["defaults"] = {} defs["ImGuiInputTextState_GetSelectionStart"][1]["funcname"] = "GetSelectionStart" -defs["ImGuiInputTextState_GetSelectionStart"][1]["location"] = "imgui_internal:1059" +defs["ImGuiInputTextState_GetSelectionStart"][1]["location"] = "imgui_internal:1087" defs["ImGuiInputTextState_GetSelectionStart"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetSelectionStart" defs["ImGuiInputTextState_GetSelectionStart"][1]["ret"] = "int" defs["ImGuiInputTextState_GetSelectionStart"][1]["signature"] = "()const" @@ -5096,7 +5341,7 @@ defs["ImGuiInputTextState_GetUndoAvailCount"][1]["call_args"] = "()" defs["ImGuiInputTextState_GetUndoAvailCount"][1]["cimguiname"] = "ImGuiInputTextState_GetUndoAvailCount" defs["ImGuiInputTextState_GetUndoAvailCount"][1]["defaults"] = {} defs["ImGuiInputTextState_GetUndoAvailCount"][1]["funcname"] = "GetUndoAvailCount" -defs["ImGuiInputTextState_GetUndoAvailCount"][1]["location"] = "imgui_internal:1049" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["location"] = "imgui_internal:1077" defs["ImGuiInputTextState_GetUndoAvailCount"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetUndoAvailCount" defs["ImGuiInputTextState_GetUndoAvailCount"][1]["ret"] = "int" defs["ImGuiInputTextState_GetUndoAvailCount"][1]["signature"] = "()const" @@ -5114,7 +5359,7 @@ defs["ImGuiInputTextState_HasSelection"][1]["call_args"] = "()" defs["ImGuiInputTextState_HasSelection"][1]["cimguiname"] = "ImGuiInputTextState_HasSelection" defs["ImGuiInputTextState_HasSelection"][1]["defaults"] = {} defs["ImGuiInputTextState_HasSelection"][1]["funcname"] = "HasSelection" -defs["ImGuiInputTextState_HasSelection"][1]["location"] = "imgui_internal:1056" +defs["ImGuiInputTextState_HasSelection"][1]["location"] = "imgui_internal:1084" defs["ImGuiInputTextState_HasSelection"][1]["ov_cimguiname"] = "ImGuiInputTextState_HasSelection" defs["ImGuiInputTextState_HasSelection"][1]["ret"] = "bool" defs["ImGuiInputTextState_HasSelection"][1]["signature"] = "()const" @@ -5130,7 +5375,7 @@ defs["ImGuiInputTextState_ImGuiInputTextState"][1]["cimguiname"] = "ImGuiInputTe defs["ImGuiInputTextState_ImGuiInputTextState"][1]["constructor"] = true defs["ImGuiInputTextState_ImGuiInputTextState"][1]["defaults"] = {} defs["ImGuiInputTextState_ImGuiInputTextState"][1]["funcname"] = "ImGuiInputTextState" -defs["ImGuiInputTextState_ImGuiInputTextState"][1]["location"] = "imgui_internal:1046" +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["location"] = "imgui_internal:1074" defs["ImGuiInputTextState_ImGuiInputTextState"][1]["ov_cimguiname"] = "ImGuiInputTextState_ImGuiInputTextState" defs["ImGuiInputTextState_ImGuiInputTextState"][1]["signature"] = "()" defs["ImGuiInputTextState_ImGuiInputTextState"][1]["stname"] = "ImGuiInputTextState" @@ -5150,7 +5395,7 @@ defs["ImGuiInputTextState_OnKeyPressed"][1]["call_args"] = "(key)" defs["ImGuiInputTextState_OnKeyPressed"][1]["cimguiname"] = "ImGuiInputTextState_OnKeyPressed" defs["ImGuiInputTextState_OnKeyPressed"][1]["defaults"] = {} defs["ImGuiInputTextState_OnKeyPressed"][1]["funcname"] = "OnKeyPressed" -defs["ImGuiInputTextState_OnKeyPressed"][1]["location"] = "imgui_internal:1051" +defs["ImGuiInputTextState_OnKeyPressed"][1]["location"] = "imgui_internal:1079" defs["ImGuiInputTextState_OnKeyPressed"][1]["ov_cimguiname"] = "ImGuiInputTextState_OnKeyPressed" defs["ImGuiInputTextState_OnKeyPressed"][1]["ret"] = "void" defs["ImGuiInputTextState_OnKeyPressed"][1]["signature"] = "(int)" @@ -5168,7 +5413,7 @@ defs["ImGuiInputTextState_SelectAll"][1]["call_args"] = "()" defs["ImGuiInputTextState_SelectAll"][1]["cimguiname"] = "ImGuiInputTextState_SelectAll" defs["ImGuiInputTextState_SelectAll"][1]["defaults"] = {} defs["ImGuiInputTextState_SelectAll"][1]["funcname"] = "SelectAll" -defs["ImGuiInputTextState_SelectAll"][1]["location"] = "imgui_internal:1061" +defs["ImGuiInputTextState_SelectAll"][1]["location"] = "imgui_internal:1089" defs["ImGuiInputTextState_SelectAll"][1]["ov_cimguiname"] = "ImGuiInputTextState_SelectAll" defs["ImGuiInputTextState_SelectAll"][1]["ret"] = "void" defs["ImGuiInputTextState_SelectAll"][1]["signature"] = "()" @@ -5190,6 +5435,117 @@ defs["ImGuiInputTextState_destroy"][1]["ret"] = "void" defs["ImGuiInputTextState_destroy"][1]["signature"] = "(ImGuiInputTextState*)" defs["ImGuiInputTextState_destroy"][1]["stname"] = "ImGuiInputTextState" defs["ImGuiInputTextState_destroy"]["(ImGuiInputTextState*)"] = defs["ImGuiInputTextState_destroy"][1] +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"] = {} +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1] = {} +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["args"] = "()" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["argsT"] = {} +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["argsoriginal"] = "()" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["call_args"] = "()" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["cimguiname"] = "ImGuiKeyOwnerData_ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["constructor"] = true +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["defaults"] = {} +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["funcname"] = "ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["location"] = "imgui_internal:1344" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["ov_cimguiname"] = "ImGuiKeyOwnerData_ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["signature"] = "()" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["stname"] = "ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"]["()"] = defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1] +defs["ImGuiKeyOwnerData_destroy"] = {} +defs["ImGuiKeyOwnerData_destroy"][1] = {} +defs["ImGuiKeyOwnerData_destroy"][1]["args"] = "(ImGuiKeyOwnerData* self)" +defs["ImGuiKeyOwnerData_destroy"][1]["argsT"] = {} +defs["ImGuiKeyOwnerData_destroy"][1]["argsT"][1] = {} +defs["ImGuiKeyOwnerData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiKeyOwnerData_destroy"][1]["argsT"][1]["type"] = "ImGuiKeyOwnerData*" +defs["ImGuiKeyOwnerData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiKeyOwnerData_destroy"][1]["cimguiname"] = "ImGuiKeyOwnerData_destroy" +defs["ImGuiKeyOwnerData_destroy"][1]["defaults"] = {} +defs["ImGuiKeyOwnerData_destroy"][1]["destructor"] = true +defs["ImGuiKeyOwnerData_destroy"][1]["ov_cimguiname"] = "ImGuiKeyOwnerData_destroy" +defs["ImGuiKeyOwnerData_destroy"][1]["ret"] = "void" +defs["ImGuiKeyOwnerData_destroy"][1]["signature"] = "(ImGuiKeyOwnerData*)" +defs["ImGuiKeyOwnerData_destroy"][1]["stname"] = "ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_destroy"]["(ImGuiKeyOwnerData*)"] = defs["ImGuiKeyOwnerData_destroy"][1] +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"] = {} +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1] = {} +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["args"] = "()" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["argsT"] = {} +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["argsoriginal"] = "()" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["call_args"] = "()" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["cimguiname"] = "ImGuiKeyRoutingData_ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["constructor"] = true +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["defaults"] = {} +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["funcname"] = "ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["location"] = "imgui_internal:1320" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["ov_cimguiname"] = "ImGuiKeyRoutingData_ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["signature"] = "()" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["stname"] = "ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"]["()"] = defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1] +defs["ImGuiKeyRoutingData_destroy"] = {} +defs["ImGuiKeyRoutingData_destroy"][1] = {} +defs["ImGuiKeyRoutingData_destroy"][1]["args"] = "(ImGuiKeyRoutingData* self)" +defs["ImGuiKeyRoutingData_destroy"][1]["argsT"] = {} +defs["ImGuiKeyRoutingData_destroy"][1]["argsT"][1] = {} +defs["ImGuiKeyRoutingData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiKeyRoutingData_destroy"][1]["argsT"][1]["type"] = "ImGuiKeyRoutingData*" +defs["ImGuiKeyRoutingData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiKeyRoutingData_destroy"][1]["cimguiname"] = "ImGuiKeyRoutingData_destroy" +defs["ImGuiKeyRoutingData_destroy"][1]["defaults"] = {} +defs["ImGuiKeyRoutingData_destroy"][1]["destructor"] = true +defs["ImGuiKeyRoutingData_destroy"][1]["ov_cimguiname"] = "ImGuiKeyRoutingData_destroy" +defs["ImGuiKeyRoutingData_destroy"][1]["ret"] = "void" +defs["ImGuiKeyRoutingData_destroy"][1]["signature"] = "(ImGuiKeyRoutingData*)" +defs["ImGuiKeyRoutingData_destroy"][1]["stname"] = "ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_destroy"]["(ImGuiKeyRoutingData*)"] = defs["ImGuiKeyRoutingData_destroy"][1] +defs["ImGuiKeyRoutingTable_Clear"] = {} +defs["ImGuiKeyRoutingTable_Clear"][1] = {} +defs["ImGuiKeyRoutingTable_Clear"][1]["args"] = "(ImGuiKeyRoutingTable* self)" +defs["ImGuiKeyRoutingTable_Clear"][1]["argsT"] = {} +defs["ImGuiKeyRoutingTable_Clear"][1]["argsT"][1] = {} +defs["ImGuiKeyRoutingTable_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiKeyRoutingTable_Clear"][1]["argsT"][1]["type"] = "ImGuiKeyRoutingTable*" +defs["ImGuiKeyRoutingTable_Clear"][1]["argsoriginal"] = "()" +defs["ImGuiKeyRoutingTable_Clear"][1]["call_args"] = "()" +defs["ImGuiKeyRoutingTable_Clear"][1]["cimguiname"] = "ImGuiKeyRoutingTable_Clear" +defs["ImGuiKeyRoutingTable_Clear"][1]["defaults"] = {} +defs["ImGuiKeyRoutingTable_Clear"][1]["funcname"] = "Clear" +defs["ImGuiKeyRoutingTable_Clear"][1]["location"] = "imgui_internal:1332" +defs["ImGuiKeyRoutingTable_Clear"][1]["ov_cimguiname"] = "ImGuiKeyRoutingTable_Clear" +defs["ImGuiKeyRoutingTable_Clear"][1]["ret"] = "void" +defs["ImGuiKeyRoutingTable_Clear"][1]["signature"] = "()" +defs["ImGuiKeyRoutingTable_Clear"][1]["stname"] = "ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_Clear"]["()"] = defs["ImGuiKeyRoutingTable_Clear"][1] +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"] = {} +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1] = {} +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["args"] = "()" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["argsT"] = {} +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["argsoriginal"] = "()" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["call_args"] = "()" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["cimguiname"] = "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["constructor"] = true +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["defaults"] = {} +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["funcname"] = "ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["location"] = "imgui_internal:1331" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["ov_cimguiname"] = "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["signature"] = "()" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["stname"] = "ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"]["()"] = defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1] +defs["ImGuiKeyRoutingTable_destroy"] = {} +defs["ImGuiKeyRoutingTable_destroy"][1] = {} +defs["ImGuiKeyRoutingTable_destroy"][1]["args"] = "(ImGuiKeyRoutingTable* self)" +defs["ImGuiKeyRoutingTable_destroy"][1]["argsT"] = {} +defs["ImGuiKeyRoutingTable_destroy"][1]["argsT"][1] = {} +defs["ImGuiKeyRoutingTable_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiKeyRoutingTable_destroy"][1]["argsT"][1]["type"] = "ImGuiKeyRoutingTable*" +defs["ImGuiKeyRoutingTable_destroy"][1]["call_args"] = "(self)" +defs["ImGuiKeyRoutingTable_destroy"][1]["cimguiname"] = "ImGuiKeyRoutingTable_destroy" +defs["ImGuiKeyRoutingTable_destroy"][1]["defaults"] = {} +defs["ImGuiKeyRoutingTable_destroy"][1]["destructor"] = true +defs["ImGuiKeyRoutingTable_destroy"][1]["ov_cimguiname"] = "ImGuiKeyRoutingTable_destroy" +defs["ImGuiKeyRoutingTable_destroy"][1]["ret"] = "void" +defs["ImGuiKeyRoutingTable_destroy"][1]["signature"] = "(ImGuiKeyRoutingTable*)" +defs["ImGuiKeyRoutingTable_destroy"][1]["stname"] = "ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_destroy"]["(ImGuiKeyRoutingTable*)"] = defs["ImGuiKeyRoutingTable_destroy"][1] defs["ImGuiLastItemData_ImGuiLastItemData"] = {} defs["ImGuiLastItemData_ImGuiLastItemData"][1] = {} defs["ImGuiLastItemData_ImGuiLastItemData"][1]["args"] = "()" @@ -5200,7 +5556,7 @@ defs["ImGuiLastItemData_ImGuiLastItemData"][1]["cimguiname"] = "ImGuiLastItemDat defs["ImGuiLastItemData_ImGuiLastItemData"][1]["constructor"] = true defs["ImGuiLastItemData_ImGuiLastItemData"][1]["defaults"] = {} defs["ImGuiLastItemData_ImGuiLastItemData"][1]["funcname"] = "ImGuiLastItemData" -defs["ImGuiLastItemData_ImGuiLastItemData"][1]["location"] = "imgui_internal:1151" +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["location"] = "imgui_internal:1180" defs["ImGuiLastItemData_ImGuiLastItemData"][1]["ov_cimguiname"] = "ImGuiLastItemData_ImGuiLastItemData" defs["ImGuiLastItemData_ImGuiLastItemData"][1]["signature"] = "()" defs["ImGuiLastItemData_ImGuiLastItemData"][1]["stname"] = "ImGuiLastItemData" @@ -5231,7 +5587,7 @@ defs["ImGuiListClipperData_ImGuiListClipperData"][1]["cimguiname"] = "ImGuiListC defs["ImGuiListClipperData_ImGuiListClipperData"][1]["constructor"] = true defs["ImGuiListClipperData_ImGuiListClipperData"][1]["defaults"] = {} defs["ImGuiListClipperData_ImGuiListClipperData"][1]["funcname"] = "ImGuiListClipperData" -defs["ImGuiListClipperData_ImGuiListClipperData"][1]["location"] = "imgui_internal:1219" +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["location"] = "imgui_internal:1420" defs["ImGuiListClipperData_ImGuiListClipperData"][1]["ov_cimguiname"] = "ImGuiListClipperData_ImGuiListClipperData" defs["ImGuiListClipperData_ImGuiListClipperData"][1]["signature"] = "()" defs["ImGuiListClipperData_ImGuiListClipperData"][1]["stname"] = "ImGuiListClipperData" @@ -5251,7 +5607,7 @@ defs["ImGuiListClipperData_Reset"][1]["call_args"] = "(clipper)" defs["ImGuiListClipperData_Reset"][1]["cimguiname"] = "ImGuiListClipperData_Reset" defs["ImGuiListClipperData_Reset"][1]["defaults"] = {} defs["ImGuiListClipperData_Reset"][1]["funcname"] = "Reset" -defs["ImGuiListClipperData_Reset"][1]["location"] = "imgui_internal:1220" +defs["ImGuiListClipperData_Reset"][1]["location"] = "imgui_internal:1421" defs["ImGuiListClipperData_Reset"][1]["ov_cimguiname"] = "ImGuiListClipperData_Reset" defs["ImGuiListClipperData_Reset"][1]["ret"] = "void" defs["ImGuiListClipperData_Reset"][1]["signature"] = "(ImGuiListClipper*)" @@ -5289,7 +5645,7 @@ defs["ImGuiListClipperRange_FromIndices"][1]["cimguiname"] = "ImGuiListClipperRa defs["ImGuiListClipperRange_FromIndices"][1]["defaults"] = {} defs["ImGuiListClipperRange_FromIndices"][1]["funcname"] = "FromIndices" defs["ImGuiListClipperRange_FromIndices"][1]["is_static_function"] = true -defs["ImGuiListClipperRange_FromIndices"][1]["location"] = "imgui_internal:1206" +defs["ImGuiListClipperRange_FromIndices"][1]["location"] = "imgui_internal:1407" defs["ImGuiListClipperRange_FromIndices"][1]["ov_cimguiname"] = "ImGuiListClipperRange_FromIndices" defs["ImGuiListClipperRange_FromIndices"][1]["ret"] = "ImGuiListClipperRange" defs["ImGuiListClipperRange_FromIndices"][1]["signature"] = "(int,int)" @@ -5317,7 +5673,7 @@ defs["ImGuiListClipperRange_FromPositions"][1]["cimguiname"] = "ImGuiListClipper defs["ImGuiListClipperRange_FromPositions"][1]["defaults"] = {} defs["ImGuiListClipperRange_FromPositions"][1]["funcname"] = "FromPositions" defs["ImGuiListClipperRange_FromPositions"][1]["is_static_function"] = true -defs["ImGuiListClipperRange_FromPositions"][1]["location"] = "imgui_internal:1207" +defs["ImGuiListClipperRange_FromPositions"][1]["location"] = "imgui_internal:1408" defs["ImGuiListClipperRange_FromPositions"][1]["ov_cimguiname"] = "ImGuiListClipperRange_FromPositions" defs["ImGuiListClipperRange_FromPositions"][1]["ret"] = "ImGuiListClipperRange" defs["ImGuiListClipperRange_FromPositions"][1]["signature"] = "(float,float,int,int)" @@ -5342,7 +5698,7 @@ defs["ImGuiListClipper_Begin"][1]["cimguiname"] = "ImGuiListClipper_Begin" defs["ImGuiListClipper_Begin"][1]["defaults"] = {} defs["ImGuiListClipper_Begin"][1]["defaults"]["items_height"] = "-1.0f" defs["ImGuiListClipper_Begin"][1]["funcname"] = "Begin" -defs["ImGuiListClipper_Begin"][1]["location"] = "imgui:2312" +defs["ImGuiListClipper_Begin"][1]["location"] = "imgui:2420" defs["ImGuiListClipper_Begin"][1]["ov_cimguiname"] = "ImGuiListClipper_Begin" defs["ImGuiListClipper_Begin"][1]["ret"] = "void" defs["ImGuiListClipper_Begin"][1]["signature"] = "(int,float)" @@ -5360,7 +5716,7 @@ defs["ImGuiListClipper_End"][1]["call_args"] = "()" defs["ImGuiListClipper_End"][1]["cimguiname"] = "ImGuiListClipper_End" defs["ImGuiListClipper_End"][1]["defaults"] = {} defs["ImGuiListClipper_End"][1]["funcname"] = "End" -defs["ImGuiListClipper_End"][1]["location"] = "imgui:2313" +defs["ImGuiListClipper_End"][1]["location"] = "imgui:2421" defs["ImGuiListClipper_End"][1]["ov_cimguiname"] = "ImGuiListClipper_End" defs["ImGuiListClipper_End"][1]["ret"] = "void" defs["ImGuiListClipper_End"][1]["signature"] = "()" @@ -5384,7 +5740,7 @@ defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["call_args"] = "(item_min defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["cimguiname"] = "ImGuiListClipper_ForceDisplayRangeByIndices" defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["defaults"] = {} defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["funcname"] = "ForceDisplayRangeByIndices" -defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["location"] = "imgui:2317" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["location"] = "imgui:2425" defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["ov_cimguiname"] = "ImGuiListClipper_ForceDisplayRangeByIndices" defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["ret"] = "void" defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["signature"] = "(int,int)" @@ -5400,7 +5756,7 @@ defs["ImGuiListClipper_ImGuiListClipper"][1]["cimguiname"] = "ImGuiListClipper_I defs["ImGuiListClipper_ImGuiListClipper"][1]["constructor"] = true defs["ImGuiListClipper_ImGuiListClipper"][1]["defaults"] = {} defs["ImGuiListClipper_ImGuiListClipper"][1]["funcname"] = "ImGuiListClipper" -defs["ImGuiListClipper_ImGuiListClipper"][1]["location"] = "imgui:2310" +defs["ImGuiListClipper_ImGuiListClipper"][1]["location"] = "imgui:2418" defs["ImGuiListClipper_ImGuiListClipper"][1]["ov_cimguiname"] = "ImGuiListClipper_ImGuiListClipper" defs["ImGuiListClipper_ImGuiListClipper"][1]["signature"] = "()" defs["ImGuiListClipper_ImGuiListClipper"][1]["stname"] = "ImGuiListClipper" @@ -5417,7 +5773,7 @@ defs["ImGuiListClipper_Step"][1]["call_args"] = "()" defs["ImGuiListClipper_Step"][1]["cimguiname"] = "ImGuiListClipper_Step" defs["ImGuiListClipper_Step"][1]["defaults"] = {} defs["ImGuiListClipper_Step"][1]["funcname"] = "Step" -defs["ImGuiListClipper_Step"][1]["location"] = "imgui:2314" +defs["ImGuiListClipper_Step"][1]["location"] = "imgui:2422" defs["ImGuiListClipper_Step"][1]["ov_cimguiname"] = "ImGuiListClipper_Step" defs["ImGuiListClipper_Step"][1]["ret"] = "bool" defs["ImGuiListClipper_Step"][1]["signature"] = "()" @@ -5434,7 +5790,7 @@ defs["ImGuiListClipper_destroy"][1]["call_args"] = "(self)" defs["ImGuiListClipper_destroy"][1]["cimguiname"] = "ImGuiListClipper_destroy" defs["ImGuiListClipper_destroy"][1]["defaults"] = {} defs["ImGuiListClipper_destroy"][1]["destructor"] = true -defs["ImGuiListClipper_destroy"][1]["location"] = "imgui:2311" +defs["ImGuiListClipper_destroy"][1]["location"] = "imgui:2419" defs["ImGuiListClipper_destroy"][1]["ov_cimguiname"] = "ImGuiListClipper_destroy" defs["ImGuiListClipper_destroy"][1]["realdestructor"] = true defs["ImGuiListClipper_destroy"][1]["ret"] = "void" @@ -5456,7 +5812,7 @@ defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["call_args"] = "(update_offsets)" defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["cimguiname"] = "ImGuiMenuColumns_CalcNextTotalWidth" defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["defaults"] = {} defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["funcname"] = "CalcNextTotalWidth" -defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["location"] = "imgui_internal:1024" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["location"] = "imgui_internal:1052" defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["ov_cimguiname"] = "ImGuiMenuColumns_CalcNextTotalWidth" defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["ret"] = "void" defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["signature"] = "(bool)" @@ -5486,7 +5842,7 @@ defs["ImGuiMenuColumns_DeclColumns"][1]["call_args"] = "(w_icon,w_label,w_shortc defs["ImGuiMenuColumns_DeclColumns"][1]["cimguiname"] = "ImGuiMenuColumns_DeclColumns" defs["ImGuiMenuColumns_DeclColumns"][1]["defaults"] = {} defs["ImGuiMenuColumns_DeclColumns"][1]["funcname"] = "DeclColumns" -defs["ImGuiMenuColumns_DeclColumns"][1]["location"] = "imgui_internal:1023" +defs["ImGuiMenuColumns_DeclColumns"][1]["location"] = "imgui_internal:1051" defs["ImGuiMenuColumns_DeclColumns"][1]["ov_cimguiname"] = "ImGuiMenuColumns_DeclColumns" defs["ImGuiMenuColumns_DeclColumns"][1]["ret"] = "float" defs["ImGuiMenuColumns_DeclColumns"][1]["signature"] = "(float,float,float,float)" @@ -5502,7 +5858,7 @@ defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["cimguiname"] = "ImGuiMenuColumns_I defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["constructor"] = true defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["defaults"] = {} defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["funcname"] = "ImGuiMenuColumns" -defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["location"] = "imgui_internal:1021" +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["location"] = "imgui_internal:1049" defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["ov_cimguiname"] = "ImGuiMenuColumns_ImGuiMenuColumns" defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["signature"] = "()" defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["stname"] = "ImGuiMenuColumns" @@ -5525,7 +5881,7 @@ defs["ImGuiMenuColumns_Update"][1]["call_args"] = "(spacing,window_reappearing)" defs["ImGuiMenuColumns_Update"][1]["cimguiname"] = "ImGuiMenuColumns_Update" defs["ImGuiMenuColumns_Update"][1]["defaults"] = {} defs["ImGuiMenuColumns_Update"][1]["funcname"] = "Update" -defs["ImGuiMenuColumns_Update"][1]["location"] = "imgui_internal:1022" +defs["ImGuiMenuColumns_Update"][1]["location"] = "imgui_internal:1050" defs["ImGuiMenuColumns_Update"][1]["ov_cimguiname"] = "ImGuiMenuColumns_Update" defs["ImGuiMenuColumns_Update"][1]["ret"] = "void" defs["ImGuiMenuColumns_Update"][1]["signature"] = "(float,bool)" @@ -5557,7 +5913,7 @@ defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["cimguiname"] = "ImGuiMetricsCo defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["constructor"] = true defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["defaults"] = {} defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["funcname"] = "ImGuiMetricsConfig" -defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["location"] = "imgui_internal:1613" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["location"] = "imgui_internal:1849" defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["ov_cimguiname"] = "ImGuiMetricsConfig_ImGuiMetricsConfig" defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["signature"] = "()" defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["stname"] = "ImGuiMetricsConfig" @@ -5590,7 +5946,7 @@ defs["ImGuiNavItemData_Clear"][1]["call_args"] = "()" defs["ImGuiNavItemData_Clear"][1]["cimguiname"] = "ImGuiNavItemData_Clear" defs["ImGuiNavItemData_Clear"][1]["defaults"] = {} defs["ImGuiNavItemData_Clear"][1]["funcname"] = "Clear" -defs["ImGuiNavItemData_Clear"][1]["location"] = "imgui_internal:1305" +defs["ImGuiNavItemData_Clear"][1]["location"] = "imgui_internal:1497" defs["ImGuiNavItemData_Clear"][1]["ov_cimguiname"] = "ImGuiNavItemData_Clear" defs["ImGuiNavItemData_Clear"][1]["ret"] = "void" defs["ImGuiNavItemData_Clear"][1]["signature"] = "()" @@ -5606,7 +5962,7 @@ defs["ImGuiNavItemData_ImGuiNavItemData"][1]["cimguiname"] = "ImGuiNavItemData_I defs["ImGuiNavItemData_ImGuiNavItemData"][1]["constructor"] = true defs["ImGuiNavItemData_ImGuiNavItemData"][1]["defaults"] = {} defs["ImGuiNavItemData_ImGuiNavItemData"][1]["funcname"] = "ImGuiNavItemData" -defs["ImGuiNavItemData_ImGuiNavItemData"][1]["location"] = "imgui_internal:1304" +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["location"] = "imgui_internal:1496" defs["ImGuiNavItemData_ImGuiNavItemData"][1]["ov_cimguiname"] = "ImGuiNavItemData_ImGuiNavItemData" defs["ImGuiNavItemData_ImGuiNavItemData"][1]["signature"] = "()" defs["ImGuiNavItemData_ImGuiNavItemData"][1]["stname"] = "ImGuiNavItemData" @@ -5639,7 +5995,7 @@ defs["ImGuiNextItemData_ClearFlags"][1]["call_args"] = "()" defs["ImGuiNextItemData_ClearFlags"][1]["cimguiname"] = "ImGuiNextItemData_ClearFlags" defs["ImGuiNextItemData_ClearFlags"][1]["defaults"] = {} defs["ImGuiNextItemData_ClearFlags"][1]["funcname"] = "ClearFlags" -defs["ImGuiNextItemData_ClearFlags"][1]["location"] = "imgui_internal:1138" +defs["ImGuiNextItemData_ClearFlags"][1]["location"] = "imgui_internal:1167" defs["ImGuiNextItemData_ClearFlags"][1]["ov_cimguiname"] = "ImGuiNextItemData_ClearFlags" defs["ImGuiNextItemData_ClearFlags"][1]["ret"] = "void" defs["ImGuiNextItemData_ClearFlags"][1]["signature"] = "()" @@ -5655,7 +6011,7 @@ defs["ImGuiNextItemData_ImGuiNextItemData"][1]["cimguiname"] = "ImGuiNextItemDat defs["ImGuiNextItemData_ImGuiNextItemData"][1]["constructor"] = true defs["ImGuiNextItemData_ImGuiNextItemData"][1]["defaults"] = {} defs["ImGuiNextItemData_ImGuiNextItemData"][1]["funcname"] = "ImGuiNextItemData" -defs["ImGuiNextItemData_ImGuiNextItemData"][1]["location"] = "imgui_internal:1137" +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["location"] = "imgui_internal:1166" defs["ImGuiNextItemData_ImGuiNextItemData"][1]["ov_cimguiname"] = "ImGuiNextItemData_ImGuiNextItemData" defs["ImGuiNextItemData_ImGuiNextItemData"][1]["signature"] = "()" defs["ImGuiNextItemData_ImGuiNextItemData"][1]["stname"] = "ImGuiNextItemData" @@ -5688,7 +6044,7 @@ defs["ImGuiNextWindowData_ClearFlags"][1]["call_args"] = "()" defs["ImGuiNextWindowData_ClearFlags"][1]["cimguiname"] = "ImGuiNextWindowData_ClearFlags" defs["ImGuiNextWindowData_ClearFlags"][1]["defaults"] = {} defs["ImGuiNextWindowData_ClearFlags"][1]["funcname"] = "ClearFlags" -defs["ImGuiNextWindowData_ClearFlags"][1]["location"] = "imgui_internal:1119" +defs["ImGuiNextWindowData_ClearFlags"][1]["location"] = "imgui_internal:1148" defs["ImGuiNextWindowData_ClearFlags"][1]["ov_cimguiname"] = "ImGuiNextWindowData_ClearFlags" defs["ImGuiNextWindowData_ClearFlags"][1]["ret"] = "void" defs["ImGuiNextWindowData_ClearFlags"][1]["signature"] = "()" @@ -5704,7 +6060,7 @@ defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["cimguiname"] = "ImGuiNextWin defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["constructor"] = true defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["defaults"] = {} defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["funcname"] = "ImGuiNextWindowData" -defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["location"] = "imgui_internal:1118" +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["location"] = "imgui_internal:1147" defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["ov_cimguiname"] = "ImGuiNextWindowData_ImGuiNextWindowData" defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["signature"] = "()" defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["stname"] = "ImGuiNextWindowData" @@ -5735,7 +6091,7 @@ defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["cimguiname"] = "ImGuiOldColumn defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["constructor"] = true defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["defaults"] = {} defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["funcname"] = "ImGuiOldColumnData" -defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["location"] = "imgui_internal:1340" +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["location"] = "imgui_internal:1532" defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["ov_cimguiname"] = "ImGuiOldColumnData_ImGuiOldColumnData" defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["signature"] = "()" defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["stname"] = "ImGuiOldColumnData" @@ -5766,7 +6122,7 @@ defs["ImGuiOldColumns_ImGuiOldColumns"][1]["cimguiname"] = "ImGuiOldColumns_ImGu defs["ImGuiOldColumns_ImGuiOldColumns"][1]["constructor"] = true defs["ImGuiOldColumns_ImGuiOldColumns"][1]["defaults"] = {} defs["ImGuiOldColumns_ImGuiOldColumns"][1]["funcname"] = "ImGuiOldColumns" -defs["ImGuiOldColumns_ImGuiOldColumns"][1]["location"] = "imgui_internal:1361" +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["location"] = "imgui_internal:1553" defs["ImGuiOldColumns_ImGuiOldColumns"][1]["ov_cimguiname"] = "ImGuiOldColumns_ImGuiOldColumns" defs["ImGuiOldColumns_ImGuiOldColumns"][1]["signature"] = "()" defs["ImGuiOldColumns_ImGuiOldColumns"][1]["stname"] = "ImGuiOldColumns" @@ -5797,7 +6153,7 @@ defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["cimguiname"] = "ImGuiOnceUpo defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["constructor"] = true defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["defaults"] = {} defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["funcname"] = "ImGuiOnceUponAFrame" -defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["location"] = "imgui:2176" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["location"] = "imgui:2284" defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["ov_cimguiname"] = "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame" defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["signature"] = "()" defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["stname"] = "ImGuiOnceUponAFrame" @@ -5830,7 +6186,7 @@ defs["ImGuiPayload_Clear"][1]["call_args"] = "()" defs["ImGuiPayload_Clear"][1]["cimguiname"] = "ImGuiPayload_Clear" defs["ImGuiPayload_Clear"][1]["defaults"] = {} defs["ImGuiPayload_Clear"][1]["funcname"] = "Clear" -defs["ImGuiPayload_Clear"][1]["location"] = "imgui:2130" +defs["ImGuiPayload_Clear"][1]["location"] = "imgui:2238" defs["ImGuiPayload_Clear"][1]["ov_cimguiname"] = "ImGuiPayload_Clear" defs["ImGuiPayload_Clear"][1]["ret"] = "void" defs["ImGuiPayload_Clear"][1]["signature"] = "()" @@ -5846,7 +6202,7 @@ defs["ImGuiPayload_ImGuiPayload"][1]["cimguiname"] = "ImGuiPayload_ImGuiPayload" defs["ImGuiPayload_ImGuiPayload"][1]["constructor"] = true defs["ImGuiPayload_ImGuiPayload"][1]["defaults"] = {} defs["ImGuiPayload_ImGuiPayload"][1]["funcname"] = "ImGuiPayload" -defs["ImGuiPayload_ImGuiPayload"][1]["location"] = "imgui:2129" +defs["ImGuiPayload_ImGuiPayload"][1]["location"] = "imgui:2237" defs["ImGuiPayload_ImGuiPayload"][1]["ov_cimguiname"] = "ImGuiPayload_ImGuiPayload" defs["ImGuiPayload_ImGuiPayload"][1]["signature"] = "()" defs["ImGuiPayload_ImGuiPayload"][1]["stname"] = "ImGuiPayload" @@ -5866,7 +6222,7 @@ defs["ImGuiPayload_IsDataType"][1]["call_args"] = "(type)" defs["ImGuiPayload_IsDataType"][1]["cimguiname"] = "ImGuiPayload_IsDataType" defs["ImGuiPayload_IsDataType"][1]["defaults"] = {} defs["ImGuiPayload_IsDataType"][1]["funcname"] = "IsDataType" -defs["ImGuiPayload_IsDataType"][1]["location"] = "imgui:2131" +defs["ImGuiPayload_IsDataType"][1]["location"] = "imgui:2239" defs["ImGuiPayload_IsDataType"][1]["ov_cimguiname"] = "ImGuiPayload_IsDataType" defs["ImGuiPayload_IsDataType"][1]["ret"] = "bool" defs["ImGuiPayload_IsDataType"][1]["signature"] = "(const char*)const" @@ -5884,7 +6240,7 @@ defs["ImGuiPayload_IsDelivery"][1]["call_args"] = "()" defs["ImGuiPayload_IsDelivery"][1]["cimguiname"] = "ImGuiPayload_IsDelivery" defs["ImGuiPayload_IsDelivery"][1]["defaults"] = {} defs["ImGuiPayload_IsDelivery"][1]["funcname"] = "IsDelivery" -defs["ImGuiPayload_IsDelivery"][1]["location"] = "imgui:2133" +defs["ImGuiPayload_IsDelivery"][1]["location"] = "imgui:2241" defs["ImGuiPayload_IsDelivery"][1]["ov_cimguiname"] = "ImGuiPayload_IsDelivery" defs["ImGuiPayload_IsDelivery"][1]["ret"] = "bool" defs["ImGuiPayload_IsDelivery"][1]["signature"] = "()const" @@ -5902,7 +6258,7 @@ defs["ImGuiPayload_IsPreview"][1]["call_args"] = "()" defs["ImGuiPayload_IsPreview"][1]["cimguiname"] = "ImGuiPayload_IsPreview" defs["ImGuiPayload_IsPreview"][1]["defaults"] = {} defs["ImGuiPayload_IsPreview"][1]["funcname"] = "IsPreview" -defs["ImGuiPayload_IsPreview"][1]["location"] = "imgui:2132" +defs["ImGuiPayload_IsPreview"][1]["location"] = "imgui:2240" defs["ImGuiPayload_IsPreview"][1]["ov_cimguiname"] = "ImGuiPayload_IsPreview" defs["ImGuiPayload_IsPreview"][1]["ret"] = "bool" defs["ImGuiPayload_IsPreview"][1]["signature"] = "()const" @@ -5934,7 +6290,7 @@ defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["cimguiname"] = "ImGuiPlatformIO_ImGu defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["constructor"] = true defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["defaults"] = {} defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["funcname"] = "ImGuiPlatformIO" -defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["location"] = "imgui:3068" +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["location"] = "imgui:3182" defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["ov_cimguiname"] = "ImGuiPlatformIO_ImGuiPlatformIO" defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["signature"] = "()" defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["stname"] = "ImGuiPlatformIO" @@ -5955,6 +6311,37 @@ defs["ImGuiPlatformIO_destroy"][1]["ret"] = "void" defs["ImGuiPlatformIO_destroy"][1]["signature"] = "(ImGuiPlatformIO*)" defs["ImGuiPlatformIO_destroy"][1]["stname"] = "ImGuiPlatformIO" defs["ImGuiPlatformIO_destroy"]["(ImGuiPlatformIO*)"] = defs["ImGuiPlatformIO_destroy"][1] +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["args"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["argsT"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["argsoriginal"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["call_args"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["cimguiname"] = "ImGuiPlatformImeData_ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["constructor"] = true +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["defaults"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["funcname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["location"] = "imgui:3202" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["ov_cimguiname"] = "ImGuiPlatformImeData_ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["signature"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["stname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"]["()"] = defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1] +defs["ImGuiPlatformImeData_destroy"] = {} +defs["ImGuiPlatformImeData_destroy"][1] = {} +defs["ImGuiPlatformImeData_destroy"][1]["args"] = "(ImGuiPlatformImeData* self)" +defs["ImGuiPlatformImeData_destroy"][1]["argsT"] = {} +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1] = {} +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1]["type"] = "ImGuiPlatformImeData*" +defs["ImGuiPlatformImeData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPlatformImeData_destroy"][1]["cimguiname"] = "ImGuiPlatformImeData_destroy" +defs["ImGuiPlatformImeData_destroy"][1]["defaults"] = {} +defs["ImGuiPlatformImeData_destroy"][1]["destructor"] = true +defs["ImGuiPlatformImeData_destroy"][1]["ov_cimguiname"] = "ImGuiPlatformImeData_destroy" +defs["ImGuiPlatformImeData_destroy"][1]["ret"] = "void" +defs["ImGuiPlatformImeData_destroy"][1]["signature"] = "(ImGuiPlatformImeData*)" +defs["ImGuiPlatformImeData_destroy"][1]["stname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_destroy"]["(ImGuiPlatformImeData*)"] = defs["ImGuiPlatformImeData_destroy"][1] defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"] = {} defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1] = {} defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["args"] = "()" @@ -5965,7 +6352,7 @@ defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["cimguiname"] = "ImGuiPlatf defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["constructor"] = true defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["defaults"] = {} defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["funcname"] = "ImGuiPlatformMonitor" -defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["location"] = "imgui:3078" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["location"] = "imgui:3192" defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["ov_cimguiname"] = "ImGuiPlatformMonitor_ImGuiPlatformMonitor" defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["signature"] = "()" defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["stname"] = "ImGuiPlatformMonitor" @@ -5996,7 +6383,7 @@ defs["ImGuiPopupData_ImGuiPopupData"][1]["cimguiname"] = "ImGuiPopupData_ImGuiPo defs["ImGuiPopupData_ImGuiPopupData"][1]["constructor"] = true defs["ImGuiPopupData_ImGuiPopupData"][1]["defaults"] = {} defs["ImGuiPopupData_ImGuiPopupData"][1]["funcname"] = "ImGuiPopupData" -defs["ImGuiPopupData_ImGuiPopupData"][1]["location"] = "imgui_internal:1075" +defs["ImGuiPopupData_ImGuiPopupData"][1]["location"] = "imgui_internal:1104" defs["ImGuiPopupData_ImGuiPopupData"][1]["ov_cimguiname"] = "ImGuiPopupData_ImGuiPopupData" defs["ImGuiPopupData_ImGuiPopupData"][1]["signature"] = "()" defs["ImGuiPopupData_ImGuiPopupData"][1]["stname"] = "ImGuiPopupData" @@ -6030,8 +6417,8 @@ defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["cimguiname"] = "ImGuiPtrOrIndex_ImGu defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["constructor"] = true defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["defaults"] = {} defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["funcname"] = "ImGuiPtrOrIndex" -defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["location"] = "imgui_internal:1190" -defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["ov_cimguiname"] = "ImGuiPtrOrIndex_ImGuiPtrOrIndexPtr" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["location"] = "imgui_internal:1220" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["ov_cimguiname"] = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr" defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["signature"] = "(void*)" defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["stname"] = "ImGuiPtrOrIndex" defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2] = {} @@ -6046,8 +6433,8 @@ defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["cimguiname"] = "ImGuiPtrOrIndex_ImGu defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["constructor"] = true defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["defaults"] = {} defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["funcname"] = "ImGuiPtrOrIndex" -defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["location"] = "imgui_internal:1191" -defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["ov_cimguiname"] = "ImGuiPtrOrIndex_ImGuiPtrOrIndexInt" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["location"] = "imgui_internal:1221" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["ov_cimguiname"] = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int" defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["signature"] = "(int)" defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["stname"] = "ImGuiPtrOrIndex" defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"]["(int)"] = defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2] @@ -6078,7 +6465,7 @@ defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["cimguiname"] = "ImGuiSetti defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["constructor"] = true defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["defaults"] = {} defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["funcname"] = "ImGuiSettingsHandler" -defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["location"] = "imgui_internal:1594" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["location"] = "imgui_internal:1788" defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["ov_cimguiname"] = "ImGuiSettingsHandler_ImGuiSettingsHandler" defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["signature"] = "()" defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["stname"] = "ImGuiSettingsHandler" @@ -6109,7 +6496,7 @@ defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["cimguiname"] = "ImGuiStackLe defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["constructor"] = true defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["defaults"] = {} defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["funcname"] = "ImGuiStackLevelInfo" -defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["location"] = "imgui_internal:1634" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["location"] = "imgui_internal:1867" defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["ov_cimguiname"] = "ImGuiStackLevelInfo_ImGuiStackLevelInfo" defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["signature"] = "()" defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["stname"] = "ImGuiStackLevelInfo" @@ -6142,7 +6529,7 @@ defs["ImGuiStackSizes_CompareWithCurrentState"][1]["call_args"] = "()" defs["ImGuiStackSizes_CompareWithCurrentState"][1]["cimguiname"] = "ImGuiStackSizes_CompareWithCurrentState" defs["ImGuiStackSizes_CompareWithCurrentState"][1]["defaults"] = {} defs["ImGuiStackSizes_CompareWithCurrentState"][1]["funcname"] = "CompareWithCurrentState" -defs["ImGuiStackSizes_CompareWithCurrentState"][1]["location"] = "imgui_internal:1168" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["location"] = "imgui_internal:1197" defs["ImGuiStackSizes_CompareWithCurrentState"][1]["ov_cimguiname"] = "ImGuiStackSizes_CompareWithCurrentState" defs["ImGuiStackSizes_CompareWithCurrentState"][1]["ret"] = "void" defs["ImGuiStackSizes_CompareWithCurrentState"][1]["signature"] = "()" @@ -6158,7 +6545,7 @@ defs["ImGuiStackSizes_ImGuiStackSizes"][1]["cimguiname"] = "ImGuiStackSizes_ImGu defs["ImGuiStackSizes_ImGuiStackSizes"][1]["constructor"] = true defs["ImGuiStackSizes_ImGuiStackSizes"][1]["defaults"] = {} defs["ImGuiStackSizes_ImGuiStackSizes"][1]["funcname"] = "ImGuiStackSizes" -defs["ImGuiStackSizes_ImGuiStackSizes"][1]["location"] = "imgui_internal:1166" +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["location"] = "imgui_internal:1195" defs["ImGuiStackSizes_ImGuiStackSizes"][1]["ov_cimguiname"] = "ImGuiStackSizes_ImGuiStackSizes" defs["ImGuiStackSizes_ImGuiStackSizes"][1]["signature"] = "()" defs["ImGuiStackSizes_ImGuiStackSizes"][1]["stname"] = "ImGuiStackSizes" @@ -6175,7 +6562,7 @@ defs["ImGuiStackSizes_SetToCurrentState"][1]["call_args"] = "()" defs["ImGuiStackSizes_SetToCurrentState"][1]["cimguiname"] = "ImGuiStackSizes_SetToCurrentState" defs["ImGuiStackSizes_SetToCurrentState"][1]["defaults"] = {} defs["ImGuiStackSizes_SetToCurrentState"][1]["funcname"] = "SetToCurrentState" -defs["ImGuiStackSizes_SetToCurrentState"][1]["location"] = "imgui_internal:1167" +defs["ImGuiStackSizes_SetToCurrentState"][1]["location"] = "imgui_internal:1196" defs["ImGuiStackSizes_SetToCurrentState"][1]["ov_cimguiname"] = "ImGuiStackSizes_SetToCurrentState" defs["ImGuiStackSizes_SetToCurrentState"][1]["ret"] = "void" defs["ImGuiStackSizes_SetToCurrentState"][1]["signature"] = "()" @@ -6207,7 +6594,7 @@ defs["ImGuiStackTool_ImGuiStackTool"][1]["cimguiname"] = "ImGuiStackTool_ImGuiSt defs["ImGuiStackTool_ImGuiStackTool"][1]["constructor"] = true defs["ImGuiStackTool_ImGuiStackTool"][1]["defaults"] = {} defs["ImGuiStackTool_ImGuiStackTool"][1]["funcname"] = "ImGuiStackTool" -defs["ImGuiStackTool_ImGuiStackTool"][1]["location"] = "imgui_internal:1645" +defs["ImGuiStackTool_ImGuiStackTool"][1]["location"] = "imgui_internal:1880" defs["ImGuiStackTool_ImGuiStackTool"][1]["ov_cimguiname"] = "ImGuiStackTool_ImGuiStackTool" defs["ImGuiStackTool_ImGuiStackTool"][1]["signature"] = "()" defs["ImGuiStackTool_ImGuiStackTool"][1]["stname"] = "ImGuiStackTool" @@ -6244,8 +6631,8 @@ defs["ImGuiStoragePair_ImGuiStoragePair"][1]["cimguiname"] = "ImGuiStoragePair_I defs["ImGuiStoragePair_ImGuiStoragePair"][1]["constructor"] = true defs["ImGuiStoragePair_ImGuiStoragePair"][1]["defaults"] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][1]["funcname"] = "ImGuiStoragePair" -defs["ImGuiStoragePair_ImGuiStoragePair"][1]["location"] = "imgui:2243" -defs["ImGuiStoragePair_ImGuiStoragePair"][1]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePairInt" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["location"] = "imgui:2351" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Int" defs["ImGuiStoragePair_ImGuiStoragePair"][1]["signature"] = "(ImGuiID,int)" defs["ImGuiStoragePair_ImGuiStoragePair"][1]["stname"] = "ImGuiStoragePair" defs["ImGuiStoragePair_ImGuiStoragePair"][2] = {} @@ -6263,8 +6650,8 @@ defs["ImGuiStoragePair_ImGuiStoragePair"][2]["cimguiname"] = "ImGuiStoragePair_I defs["ImGuiStoragePair_ImGuiStoragePair"][2]["constructor"] = true defs["ImGuiStoragePair_ImGuiStoragePair"][2]["defaults"] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][2]["funcname"] = "ImGuiStoragePair" -defs["ImGuiStoragePair_ImGuiStoragePair"][2]["location"] = "imgui:2244" -defs["ImGuiStoragePair_ImGuiStoragePair"][2]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePairFloat" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["location"] = "imgui:2352" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Float" defs["ImGuiStoragePair_ImGuiStoragePair"][2]["signature"] = "(ImGuiID,float)" defs["ImGuiStoragePair_ImGuiStoragePair"][2]["stname"] = "ImGuiStoragePair" defs["ImGuiStoragePair_ImGuiStoragePair"][3] = {} @@ -6282,8 +6669,8 @@ defs["ImGuiStoragePair_ImGuiStoragePair"][3]["cimguiname"] = "ImGuiStoragePair_I defs["ImGuiStoragePair_ImGuiStoragePair"][3]["constructor"] = true defs["ImGuiStoragePair_ImGuiStoragePair"][3]["defaults"] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][3]["funcname"] = "ImGuiStoragePair" -defs["ImGuiStoragePair_ImGuiStoragePair"][3]["location"] = "imgui:2245" -defs["ImGuiStoragePair_ImGuiStoragePair"][3]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePairPtr" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["location"] = "imgui:2353" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Ptr" defs["ImGuiStoragePair_ImGuiStoragePair"][3]["signature"] = "(ImGuiID,void*)" defs["ImGuiStoragePair_ImGuiStoragePair"][3]["stname"] = "ImGuiStoragePair" defs["ImGuiStoragePair_ImGuiStoragePair"]["(ImGuiID,float)"] = defs["ImGuiStoragePair_ImGuiStoragePair"][2] @@ -6317,7 +6704,7 @@ defs["ImGuiStorage_BuildSortByKey"][1]["call_args"] = "()" defs["ImGuiStorage_BuildSortByKey"][1]["cimguiname"] = "ImGuiStorage_BuildSortByKey" defs["ImGuiStorage_BuildSortByKey"][1]["defaults"] = {} defs["ImGuiStorage_BuildSortByKey"][1]["funcname"] = "BuildSortByKey" -defs["ImGuiStorage_BuildSortByKey"][1]["location"] = "imgui:2276" +defs["ImGuiStorage_BuildSortByKey"][1]["location"] = "imgui:2384" defs["ImGuiStorage_BuildSortByKey"][1]["ov_cimguiname"] = "ImGuiStorage_BuildSortByKey" defs["ImGuiStorage_BuildSortByKey"][1]["ret"] = "void" defs["ImGuiStorage_BuildSortByKey"][1]["signature"] = "()" @@ -6335,7 +6722,7 @@ defs["ImGuiStorage_Clear"][1]["call_args"] = "()" defs["ImGuiStorage_Clear"][1]["cimguiname"] = "ImGuiStorage_Clear" defs["ImGuiStorage_Clear"][1]["defaults"] = {} defs["ImGuiStorage_Clear"][1]["funcname"] = "Clear" -defs["ImGuiStorage_Clear"][1]["location"] = "imgui:2253" +defs["ImGuiStorage_Clear"][1]["location"] = "imgui:2361" defs["ImGuiStorage_Clear"][1]["ov_cimguiname"] = "ImGuiStorage_Clear" defs["ImGuiStorage_Clear"][1]["ret"] = "void" defs["ImGuiStorage_Clear"][1]["signature"] = "()" @@ -6360,7 +6747,7 @@ defs["ImGuiStorage_GetBool"][1]["cimguiname"] = "ImGuiStorage_GetBool" defs["ImGuiStorage_GetBool"][1]["defaults"] = {} defs["ImGuiStorage_GetBool"][1]["defaults"]["default_val"] = "false" defs["ImGuiStorage_GetBool"][1]["funcname"] = "GetBool" -defs["ImGuiStorage_GetBool"][1]["location"] = "imgui:2256" +defs["ImGuiStorage_GetBool"][1]["location"] = "imgui:2364" defs["ImGuiStorage_GetBool"][1]["ov_cimguiname"] = "ImGuiStorage_GetBool" defs["ImGuiStorage_GetBool"][1]["ret"] = "bool" defs["ImGuiStorage_GetBool"][1]["signature"] = "(ImGuiID,bool)const" @@ -6385,7 +6772,7 @@ defs["ImGuiStorage_GetBoolRef"][1]["cimguiname"] = "ImGuiStorage_GetBoolRef" defs["ImGuiStorage_GetBoolRef"][1]["defaults"] = {} defs["ImGuiStorage_GetBoolRef"][1]["defaults"]["default_val"] = "false" defs["ImGuiStorage_GetBoolRef"][1]["funcname"] = "GetBoolRef" -defs["ImGuiStorage_GetBoolRef"][1]["location"] = "imgui:2268" +defs["ImGuiStorage_GetBoolRef"][1]["location"] = "imgui:2376" defs["ImGuiStorage_GetBoolRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetBoolRef" defs["ImGuiStorage_GetBoolRef"][1]["ret"] = "bool*" defs["ImGuiStorage_GetBoolRef"][1]["signature"] = "(ImGuiID,bool)" @@ -6410,7 +6797,7 @@ defs["ImGuiStorage_GetFloat"][1]["cimguiname"] = "ImGuiStorage_GetFloat" defs["ImGuiStorage_GetFloat"][1]["defaults"] = {} defs["ImGuiStorage_GetFloat"][1]["defaults"]["default_val"] = "0.0f" defs["ImGuiStorage_GetFloat"][1]["funcname"] = "GetFloat" -defs["ImGuiStorage_GetFloat"][1]["location"] = "imgui:2258" +defs["ImGuiStorage_GetFloat"][1]["location"] = "imgui:2366" defs["ImGuiStorage_GetFloat"][1]["ov_cimguiname"] = "ImGuiStorage_GetFloat" defs["ImGuiStorage_GetFloat"][1]["ret"] = "float" defs["ImGuiStorage_GetFloat"][1]["signature"] = "(ImGuiID,float)const" @@ -6435,7 +6822,7 @@ defs["ImGuiStorage_GetFloatRef"][1]["cimguiname"] = "ImGuiStorage_GetFloatRef" defs["ImGuiStorage_GetFloatRef"][1]["defaults"] = {} defs["ImGuiStorage_GetFloatRef"][1]["defaults"]["default_val"] = "0.0f" defs["ImGuiStorage_GetFloatRef"][1]["funcname"] = "GetFloatRef" -defs["ImGuiStorage_GetFloatRef"][1]["location"] = "imgui:2269" +defs["ImGuiStorage_GetFloatRef"][1]["location"] = "imgui:2377" defs["ImGuiStorage_GetFloatRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetFloatRef" defs["ImGuiStorage_GetFloatRef"][1]["ret"] = "float*" defs["ImGuiStorage_GetFloatRef"][1]["signature"] = "(ImGuiID,float)" @@ -6460,7 +6847,7 @@ defs["ImGuiStorage_GetInt"][1]["cimguiname"] = "ImGuiStorage_GetInt" defs["ImGuiStorage_GetInt"][1]["defaults"] = {} defs["ImGuiStorage_GetInt"][1]["defaults"]["default_val"] = "0" defs["ImGuiStorage_GetInt"][1]["funcname"] = "GetInt" -defs["ImGuiStorage_GetInt"][1]["location"] = "imgui:2254" +defs["ImGuiStorage_GetInt"][1]["location"] = "imgui:2362" defs["ImGuiStorage_GetInt"][1]["ov_cimguiname"] = "ImGuiStorage_GetInt" defs["ImGuiStorage_GetInt"][1]["ret"] = "int" defs["ImGuiStorage_GetInt"][1]["signature"] = "(ImGuiID,int)const" @@ -6485,7 +6872,7 @@ defs["ImGuiStorage_GetIntRef"][1]["cimguiname"] = "ImGuiStorage_GetIntRef" defs["ImGuiStorage_GetIntRef"][1]["defaults"] = {} defs["ImGuiStorage_GetIntRef"][1]["defaults"]["default_val"] = "0" defs["ImGuiStorage_GetIntRef"][1]["funcname"] = "GetIntRef" -defs["ImGuiStorage_GetIntRef"][1]["location"] = "imgui:2267" +defs["ImGuiStorage_GetIntRef"][1]["location"] = "imgui:2375" defs["ImGuiStorage_GetIntRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetIntRef" defs["ImGuiStorage_GetIntRef"][1]["ret"] = "int*" defs["ImGuiStorage_GetIntRef"][1]["signature"] = "(ImGuiID,int)" @@ -6506,7 +6893,7 @@ defs["ImGuiStorage_GetVoidPtr"][1]["call_args"] = "(key)" defs["ImGuiStorage_GetVoidPtr"][1]["cimguiname"] = "ImGuiStorage_GetVoidPtr" defs["ImGuiStorage_GetVoidPtr"][1]["defaults"] = {} defs["ImGuiStorage_GetVoidPtr"][1]["funcname"] = "GetVoidPtr" -defs["ImGuiStorage_GetVoidPtr"][1]["location"] = "imgui:2260" +defs["ImGuiStorage_GetVoidPtr"][1]["location"] = "imgui:2368" defs["ImGuiStorage_GetVoidPtr"][1]["ov_cimguiname"] = "ImGuiStorage_GetVoidPtr" defs["ImGuiStorage_GetVoidPtr"][1]["ret"] = "void*" defs["ImGuiStorage_GetVoidPtr"][1]["signature"] = "(ImGuiID)const" @@ -6531,7 +6918,7 @@ defs["ImGuiStorage_GetVoidPtrRef"][1]["cimguiname"] = "ImGuiStorage_GetVoidPtrRe defs["ImGuiStorage_GetVoidPtrRef"][1]["defaults"] = {} defs["ImGuiStorage_GetVoidPtrRef"][1]["defaults"]["default_val"] = "NULL" defs["ImGuiStorage_GetVoidPtrRef"][1]["funcname"] = "GetVoidPtrRef" -defs["ImGuiStorage_GetVoidPtrRef"][1]["location"] = "imgui:2270" +defs["ImGuiStorage_GetVoidPtrRef"][1]["location"] = "imgui:2378" defs["ImGuiStorage_GetVoidPtrRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetVoidPtrRef" defs["ImGuiStorage_GetVoidPtrRef"][1]["ret"] = "void**" defs["ImGuiStorage_GetVoidPtrRef"][1]["signature"] = "(ImGuiID,void*)" @@ -6552,7 +6939,7 @@ defs["ImGuiStorage_SetAllInt"][1]["call_args"] = "(val)" defs["ImGuiStorage_SetAllInt"][1]["cimguiname"] = "ImGuiStorage_SetAllInt" defs["ImGuiStorage_SetAllInt"][1]["defaults"] = {} defs["ImGuiStorage_SetAllInt"][1]["funcname"] = "SetAllInt" -defs["ImGuiStorage_SetAllInt"][1]["location"] = "imgui:2273" +defs["ImGuiStorage_SetAllInt"][1]["location"] = "imgui:2381" defs["ImGuiStorage_SetAllInt"][1]["ov_cimguiname"] = "ImGuiStorage_SetAllInt" defs["ImGuiStorage_SetAllInt"][1]["ret"] = "void" defs["ImGuiStorage_SetAllInt"][1]["signature"] = "(int)" @@ -6576,7 +6963,7 @@ defs["ImGuiStorage_SetBool"][1]["call_args"] = "(key,val)" defs["ImGuiStorage_SetBool"][1]["cimguiname"] = "ImGuiStorage_SetBool" defs["ImGuiStorage_SetBool"][1]["defaults"] = {} defs["ImGuiStorage_SetBool"][1]["funcname"] = "SetBool" -defs["ImGuiStorage_SetBool"][1]["location"] = "imgui:2257" +defs["ImGuiStorage_SetBool"][1]["location"] = "imgui:2365" defs["ImGuiStorage_SetBool"][1]["ov_cimguiname"] = "ImGuiStorage_SetBool" defs["ImGuiStorage_SetBool"][1]["ret"] = "void" defs["ImGuiStorage_SetBool"][1]["signature"] = "(ImGuiID,bool)" @@ -6600,7 +6987,7 @@ defs["ImGuiStorage_SetFloat"][1]["call_args"] = "(key,val)" defs["ImGuiStorage_SetFloat"][1]["cimguiname"] = "ImGuiStorage_SetFloat" defs["ImGuiStorage_SetFloat"][1]["defaults"] = {} defs["ImGuiStorage_SetFloat"][1]["funcname"] = "SetFloat" -defs["ImGuiStorage_SetFloat"][1]["location"] = "imgui:2259" +defs["ImGuiStorage_SetFloat"][1]["location"] = "imgui:2367" defs["ImGuiStorage_SetFloat"][1]["ov_cimguiname"] = "ImGuiStorage_SetFloat" defs["ImGuiStorage_SetFloat"][1]["ret"] = "void" defs["ImGuiStorage_SetFloat"][1]["signature"] = "(ImGuiID,float)" @@ -6624,7 +7011,7 @@ defs["ImGuiStorage_SetInt"][1]["call_args"] = "(key,val)" defs["ImGuiStorage_SetInt"][1]["cimguiname"] = "ImGuiStorage_SetInt" defs["ImGuiStorage_SetInt"][1]["defaults"] = {} defs["ImGuiStorage_SetInt"][1]["funcname"] = "SetInt" -defs["ImGuiStorage_SetInt"][1]["location"] = "imgui:2255" +defs["ImGuiStorage_SetInt"][1]["location"] = "imgui:2363" defs["ImGuiStorage_SetInt"][1]["ov_cimguiname"] = "ImGuiStorage_SetInt" defs["ImGuiStorage_SetInt"][1]["ret"] = "void" defs["ImGuiStorage_SetInt"][1]["signature"] = "(ImGuiID,int)" @@ -6648,7 +7035,7 @@ defs["ImGuiStorage_SetVoidPtr"][1]["call_args"] = "(key,val)" defs["ImGuiStorage_SetVoidPtr"][1]["cimguiname"] = "ImGuiStorage_SetVoidPtr" defs["ImGuiStorage_SetVoidPtr"][1]["defaults"] = {} defs["ImGuiStorage_SetVoidPtr"][1]["funcname"] = "SetVoidPtr" -defs["ImGuiStorage_SetVoidPtr"][1]["location"] = "imgui:2261" +defs["ImGuiStorage_SetVoidPtr"][1]["location"] = "imgui:2369" defs["ImGuiStorage_SetVoidPtr"][1]["ov_cimguiname"] = "ImGuiStorage_SetVoidPtr" defs["ImGuiStorage_SetVoidPtr"][1]["ret"] = "void" defs["ImGuiStorage_SetVoidPtr"][1]["signature"] = "(ImGuiID,void*)" @@ -6670,8 +7057,8 @@ defs["ImGuiStyleMod_ImGuiStyleMod"][1]["cimguiname"] = "ImGuiStyleMod_ImGuiStyle defs["ImGuiStyleMod_ImGuiStyleMod"][1]["constructor"] = true defs["ImGuiStyleMod_ImGuiStyleMod"][1]["defaults"] = {} defs["ImGuiStyleMod_ImGuiStyleMod"][1]["funcname"] = "ImGuiStyleMod" -defs["ImGuiStyleMod_ImGuiStyleMod"][1]["location"] = "imgui_internal:975" -defs["ImGuiStyleMod_ImGuiStyleMod"][1]["ov_cimguiname"] = "ImGuiStyleMod_ImGuiStyleModInt" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["location"] = "imgui_internal:1003" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["ov_cimguiname"] = "ImGuiStyleMod_ImGuiStyleMod_Int" defs["ImGuiStyleMod_ImGuiStyleMod"][1]["signature"] = "(ImGuiStyleVar,int)" defs["ImGuiStyleMod_ImGuiStyleMod"][1]["stname"] = "ImGuiStyleMod" defs["ImGuiStyleMod_ImGuiStyleMod"][2] = {} @@ -6689,8 +7076,8 @@ defs["ImGuiStyleMod_ImGuiStyleMod"][2]["cimguiname"] = "ImGuiStyleMod_ImGuiStyle defs["ImGuiStyleMod_ImGuiStyleMod"][2]["constructor"] = true defs["ImGuiStyleMod_ImGuiStyleMod"][2]["defaults"] = {} defs["ImGuiStyleMod_ImGuiStyleMod"][2]["funcname"] = "ImGuiStyleMod" -defs["ImGuiStyleMod_ImGuiStyleMod"][2]["location"] = "imgui_internal:976" -defs["ImGuiStyleMod_ImGuiStyleMod"][2]["ov_cimguiname"] = "ImGuiStyleMod_ImGuiStyleModFloat" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["location"] = "imgui_internal:1004" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["ov_cimguiname"] = "ImGuiStyleMod_ImGuiStyleMod_Float" defs["ImGuiStyleMod_ImGuiStyleMod"][2]["signature"] = "(ImGuiStyleVar,float)" defs["ImGuiStyleMod_ImGuiStyleMod"][2]["stname"] = "ImGuiStyleMod" defs["ImGuiStyleMod_ImGuiStyleMod"][3] = {} @@ -6708,8 +7095,8 @@ defs["ImGuiStyleMod_ImGuiStyleMod"][3]["cimguiname"] = "ImGuiStyleMod_ImGuiStyle defs["ImGuiStyleMod_ImGuiStyleMod"][3]["constructor"] = true defs["ImGuiStyleMod_ImGuiStyleMod"][3]["defaults"] = {} defs["ImGuiStyleMod_ImGuiStyleMod"][3]["funcname"] = "ImGuiStyleMod" -defs["ImGuiStyleMod_ImGuiStyleMod"][3]["location"] = "imgui_internal:977" -defs["ImGuiStyleMod_ImGuiStyleMod"][3]["ov_cimguiname"] = "ImGuiStyleMod_ImGuiStyleModVec2" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["location"] = "imgui_internal:1005" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["ov_cimguiname"] = "ImGuiStyleMod_ImGuiStyleMod_Vec2" defs["ImGuiStyleMod_ImGuiStyleMod"][3]["signature"] = "(ImGuiStyleVar,ImVec2)" defs["ImGuiStyleMod_ImGuiStyleMod"][3]["stname"] = "ImGuiStyleMod" defs["ImGuiStyleMod_ImGuiStyleMod"]["(ImGuiStyleVar,ImVec2)"] = defs["ImGuiStyleMod_ImGuiStyleMod"][3] @@ -6741,7 +7128,7 @@ defs["ImGuiStyle_ImGuiStyle"][1]["cimguiname"] = "ImGuiStyle_ImGuiStyle" defs["ImGuiStyle_ImGuiStyle"][1]["constructor"] = true defs["ImGuiStyle_ImGuiStyle"][1]["defaults"] = {} defs["ImGuiStyle_ImGuiStyle"][1]["funcname"] = "ImGuiStyle" -defs["ImGuiStyle_ImGuiStyle"][1]["location"] = "imgui:1886" +defs["ImGuiStyle_ImGuiStyle"][1]["location"] = "imgui:1953" defs["ImGuiStyle_ImGuiStyle"][1]["ov_cimguiname"] = "ImGuiStyle_ImGuiStyle" defs["ImGuiStyle_ImGuiStyle"][1]["signature"] = "()" defs["ImGuiStyle_ImGuiStyle"][1]["stname"] = "ImGuiStyle" @@ -6761,7 +7148,7 @@ defs["ImGuiStyle_ScaleAllSizes"][1]["call_args"] = "(scale_factor)" defs["ImGuiStyle_ScaleAllSizes"][1]["cimguiname"] = "ImGuiStyle_ScaleAllSizes" defs["ImGuiStyle_ScaleAllSizes"][1]["defaults"] = {} defs["ImGuiStyle_ScaleAllSizes"][1]["funcname"] = "ScaleAllSizes" -defs["ImGuiStyle_ScaleAllSizes"][1]["location"] = "imgui:1887" +defs["ImGuiStyle_ScaleAllSizes"][1]["location"] = "imgui:1954" defs["ImGuiStyle_ScaleAllSizes"][1]["ov_cimguiname"] = "ImGuiStyle_ScaleAllSizes" defs["ImGuiStyle_ScaleAllSizes"][1]["ret"] = "void" defs["ImGuiStyle_ScaleAllSizes"][1]["signature"] = "(float)" @@ -6798,7 +7185,7 @@ defs["ImGuiTabBar_GetTabName"][1]["call_args"] = "(tab)" defs["ImGuiTabBar_GetTabName"][1]["cimguiname"] = "ImGuiTabBar_GetTabName" defs["ImGuiTabBar_GetTabName"][1]["defaults"] = {} defs["ImGuiTabBar_GetTabName"][1]["funcname"] = "GetTabName" -defs["ImGuiTabBar_GetTabName"][1]["location"] = "imgui_internal:2370" +defs["ImGuiTabBar_GetTabName"][1]["location"] = "imgui_internal:2648" defs["ImGuiTabBar_GetTabName"][1]["ov_cimguiname"] = "ImGuiTabBar_GetTabName" defs["ImGuiTabBar_GetTabName"][1]["ret"] = "const char*" defs["ImGuiTabBar_GetTabName"][1]["signature"] = "(const ImGuiTabItem*)const" @@ -6819,7 +7206,7 @@ defs["ImGuiTabBar_GetTabOrder"][1]["call_args"] = "(tab)" defs["ImGuiTabBar_GetTabOrder"][1]["cimguiname"] = "ImGuiTabBar_GetTabOrder" defs["ImGuiTabBar_GetTabOrder"][1]["defaults"] = {} defs["ImGuiTabBar_GetTabOrder"][1]["funcname"] = "GetTabOrder" -defs["ImGuiTabBar_GetTabOrder"][1]["location"] = "imgui_internal:2369" +defs["ImGuiTabBar_GetTabOrder"][1]["location"] = "imgui_internal:2647" defs["ImGuiTabBar_GetTabOrder"][1]["ov_cimguiname"] = "ImGuiTabBar_GetTabOrder" defs["ImGuiTabBar_GetTabOrder"][1]["ret"] = "int" defs["ImGuiTabBar_GetTabOrder"][1]["signature"] = "(const ImGuiTabItem*)const" @@ -6835,7 +7222,7 @@ defs["ImGuiTabBar_ImGuiTabBar"][1]["cimguiname"] = "ImGuiTabBar_ImGuiTabBar" defs["ImGuiTabBar_ImGuiTabBar"][1]["constructor"] = true defs["ImGuiTabBar_ImGuiTabBar"][1]["defaults"] = {} defs["ImGuiTabBar_ImGuiTabBar"][1]["funcname"] = "ImGuiTabBar" -defs["ImGuiTabBar_ImGuiTabBar"][1]["location"] = "imgui_internal:2368" +defs["ImGuiTabBar_ImGuiTabBar"][1]["location"] = "imgui_internal:2646" defs["ImGuiTabBar_ImGuiTabBar"][1]["ov_cimguiname"] = "ImGuiTabBar_ImGuiTabBar" defs["ImGuiTabBar_ImGuiTabBar"][1]["signature"] = "()" defs["ImGuiTabBar_ImGuiTabBar"][1]["stname"] = "ImGuiTabBar" @@ -6866,7 +7253,7 @@ defs["ImGuiTabItem_ImGuiTabItem"][1]["cimguiname"] = "ImGuiTabItem_ImGuiTabItem" defs["ImGuiTabItem_ImGuiTabItem"][1]["constructor"] = true defs["ImGuiTabItem_ImGuiTabItem"][1]["defaults"] = {} defs["ImGuiTabItem_ImGuiTabItem"][1]["funcname"] = "ImGuiTabItem" -defs["ImGuiTabItem_ImGuiTabItem"][1]["location"] = "imgui_internal:2330" +defs["ImGuiTabItem_ImGuiTabItem"][1]["location"] = "imgui_internal:2608" defs["ImGuiTabItem_ImGuiTabItem"][1]["ov_cimguiname"] = "ImGuiTabItem_ImGuiTabItem" defs["ImGuiTabItem_ImGuiTabItem"][1]["signature"] = "()" defs["ImGuiTabItem_ImGuiTabItem"][1]["stname"] = "ImGuiTabItem" @@ -6897,7 +7284,7 @@ defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["cimguiname"] = "Im defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["constructor"] = true defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["defaults"] = {} defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["funcname"] = "ImGuiTableColumnSettings" -defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["location"] = "imgui_internal:2606" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["location"] = "imgui_internal:2894" defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["ov_cimguiname"] = "ImGuiTableColumnSettings_ImGuiTableColumnSettings" defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["signature"] = "()" defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["stname"] = "ImGuiTableColumnSettings" @@ -6928,7 +7315,7 @@ defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["cimguiname"] = " defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["constructor"] = true defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["defaults"] = {} defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["funcname"] = "ImGuiTableColumnSortSpecs" -defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["location"] = "imgui:2144" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["location"] = "imgui:2252" defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["ov_cimguiname"] = "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs" defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["signature"] = "()" defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["stname"] = "ImGuiTableColumnSortSpecs" @@ -6959,7 +7346,7 @@ defs["ImGuiTableColumn_ImGuiTableColumn"][1]["cimguiname"] = "ImGuiTableColumn_I defs["ImGuiTableColumn_ImGuiTableColumn"][1]["constructor"] = true defs["ImGuiTableColumn_ImGuiTableColumn"][1]["defaults"] = {} defs["ImGuiTableColumn_ImGuiTableColumn"][1]["funcname"] = "ImGuiTableColumn" -defs["ImGuiTableColumn_ImGuiTableColumn"][1]["location"] = "imgui_internal:2439" +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["location"] = "imgui_internal:2717" defs["ImGuiTableColumn_ImGuiTableColumn"][1]["ov_cimguiname"] = "ImGuiTableColumn_ImGuiTableColumn" defs["ImGuiTableColumn_ImGuiTableColumn"][1]["signature"] = "()" defs["ImGuiTableColumn_ImGuiTableColumn"][1]["stname"] = "ImGuiTableColumn" @@ -6980,6 +7367,37 @@ defs["ImGuiTableColumn_destroy"][1]["ret"] = "void" defs["ImGuiTableColumn_destroy"][1]["signature"] = "(ImGuiTableColumn*)" defs["ImGuiTableColumn_destroy"][1]["stname"] = "ImGuiTableColumn" defs["ImGuiTableColumn_destroy"]["(ImGuiTableColumn*)"] = defs["ImGuiTableColumn_destroy"][1] +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"] = {} +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1] = {} +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["args"] = "()" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["argsT"] = {} +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["argsoriginal"] = "()" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["call_args"] = "()" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["cimguiname"] = "ImGuiTableInstanceData_ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["constructor"] = true +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["defaults"] = {} +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["funcname"] = "ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["location"] = "imgui_internal:2744" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["ov_cimguiname"] = "ImGuiTableInstanceData_ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["signature"] = "()" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["stname"] = "ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"]["()"] = defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1] +defs["ImGuiTableInstanceData_destroy"] = {} +defs["ImGuiTableInstanceData_destroy"][1] = {} +defs["ImGuiTableInstanceData_destroy"][1]["args"] = "(ImGuiTableInstanceData* self)" +defs["ImGuiTableInstanceData_destroy"][1]["argsT"] = {} +defs["ImGuiTableInstanceData_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableInstanceData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableInstanceData_destroy"][1]["argsT"][1]["type"] = "ImGuiTableInstanceData*" +defs["ImGuiTableInstanceData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableInstanceData_destroy"][1]["cimguiname"] = "ImGuiTableInstanceData_destroy" +defs["ImGuiTableInstanceData_destroy"][1]["defaults"] = {} +defs["ImGuiTableInstanceData_destroy"][1]["destructor"] = true +defs["ImGuiTableInstanceData_destroy"][1]["ov_cimguiname"] = "ImGuiTableInstanceData_destroy" +defs["ImGuiTableInstanceData_destroy"][1]["ret"] = "void" +defs["ImGuiTableInstanceData_destroy"][1]["signature"] = "(ImGuiTableInstanceData*)" +defs["ImGuiTableInstanceData_destroy"][1]["stname"] = "ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_destroy"]["(ImGuiTableInstanceData*)"] = defs["ImGuiTableInstanceData_destroy"][1] defs["ImGuiTableSettings_GetColumnSettings"] = {} defs["ImGuiTableSettings_GetColumnSettings"][1] = {} defs["ImGuiTableSettings_GetColumnSettings"][1]["args"] = "(ImGuiTableSettings* self)" @@ -6992,7 +7410,7 @@ defs["ImGuiTableSettings_GetColumnSettings"][1]["call_args"] = "()" defs["ImGuiTableSettings_GetColumnSettings"][1]["cimguiname"] = "ImGuiTableSettings_GetColumnSettings" defs["ImGuiTableSettings_GetColumnSettings"][1]["defaults"] = {} defs["ImGuiTableSettings_GetColumnSettings"][1]["funcname"] = "GetColumnSettings" -defs["ImGuiTableSettings_GetColumnSettings"][1]["location"] = "imgui_internal:2629" +defs["ImGuiTableSettings_GetColumnSettings"][1]["location"] = "imgui_internal:2917" defs["ImGuiTableSettings_GetColumnSettings"][1]["ov_cimguiname"] = "ImGuiTableSettings_GetColumnSettings" defs["ImGuiTableSettings_GetColumnSettings"][1]["ret"] = "ImGuiTableColumnSettings*" defs["ImGuiTableSettings_GetColumnSettings"][1]["signature"] = "()" @@ -7008,7 +7426,7 @@ defs["ImGuiTableSettings_ImGuiTableSettings"][1]["cimguiname"] = "ImGuiTableSett defs["ImGuiTableSettings_ImGuiTableSettings"][1]["constructor"] = true defs["ImGuiTableSettings_ImGuiTableSettings"][1]["defaults"] = {} defs["ImGuiTableSettings_ImGuiTableSettings"][1]["funcname"] = "ImGuiTableSettings" -defs["ImGuiTableSettings_ImGuiTableSettings"][1]["location"] = "imgui_internal:2628" +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["location"] = "imgui_internal:2916" defs["ImGuiTableSettings_ImGuiTableSettings"][1]["ov_cimguiname"] = "ImGuiTableSettings_ImGuiTableSettings" defs["ImGuiTableSettings_ImGuiTableSettings"][1]["signature"] = "()" defs["ImGuiTableSettings_ImGuiTableSettings"][1]["stname"] = "ImGuiTableSettings" @@ -7039,7 +7457,7 @@ defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["cimguiname"] = "ImGuiTableSo defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["constructor"] = true defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["defaults"] = {} defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["funcname"] = "ImGuiTableSortSpecs" -defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["location"] = "imgui:2157" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["location"] = "imgui:2265" defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["ov_cimguiname"] = "ImGuiTableSortSpecs_ImGuiTableSortSpecs" defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["signature"] = "()" defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["stname"] = "ImGuiTableSortSpecs" @@ -7070,7 +7488,7 @@ defs["ImGuiTableTempData_ImGuiTableTempData"][1]["cimguiname"] = "ImGuiTableTemp defs["ImGuiTableTempData_ImGuiTableTempData"][1]["constructor"] = true defs["ImGuiTableTempData_ImGuiTableTempData"][1]["defaults"] = {} defs["ImGuiTableTempData_ImGuiTableTempData"][1]["funcname"] = "ImGuiTableTempData" -defs["ImGuiTableTempData_ImGuiTableTempData"][1]["location"] = "imgui_internal:2591" +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["location"] = "imgui_internal:2879" defs["ImGuiTableTempData_ImGuiTableTempData"][1]["ov_cimguiname"] = "ImGuiTableTempData_ImGuiTableTempData" defs["ImGuiTableTempData_ImGuiTableTempData"][1]["signature"] = "()" defs["ImGuiTableTempData_ImGuiTableTempData"][1]["stname"] = "ImGuiTableTempData" @@ -7101,7 +7519,7 @@ defs["ImGuiTable_ImGuiTable"][1]["cimguiname"] = "ImGuiTable_ImGuiTable" defs["ImGuiTable_ImGuiTable"][1]["constructor"] = true defs["ImGuiTable_ImGuiTable"][1]["defaults"] = {} defs["ImGuiTable_ImGuiTable"][1]["funcname"] = "ImGuiTable" -defs["ImGuiTable_ImGuiTable"][1]["location"] = "imgui_internal:2567" +defs["ImGuiTable_ImGuiTable"][1]["location"] = "imgui_internal:2855" defs["ImGuiTable_ImGuiTable"][1]["ov_cimguiname"] = "ImGuiTable_ImGuiTable" defs["ImGuiTable_ImGuiTable"][1]["signature"] = "()" defs["ImGuiTable_ImGuiTable"][1]["stname"] = "ImGuiTable" @@ -7117,7 +7535,7 @@ defs["ImGuiTable_destroy"][1]["call_args"] = "(self)" defs["ImGuiTable_destroy"][1]["cimguiname"] = "ImGuiTable_destroy" defs["ImGuiTable_destroy"][1]["defaults"] = {} defs["ImGuiTable_destroy"][1]["destructor"] = true -defs["ImGuiTable_destroy"][1]["location"] = "imgui_internal:2568" +defs["ImGuiTable_destroy"][1]["location"] = "imgui_internal:2856" defs["ImGuiTable_destroy"][1]["ov_cimguiname"] = "ImGuiTable_destroy" defs["ImGuiTable_destroy"][1]["realdestructor"] = true defs["ImGuiTable_destroy"][1]["ret"] = "void" @@ -7134,7 +7552,7 @@ defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["cimguiname"] = "ImGuiTextBuffer_ImGu defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["constructor"] = true defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["defaults"] = {} defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["funcname"] = "ImGuiTextBuffer" -defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["location"] = "imgui:2214" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["location"] = "imgui:2322" defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["ov_cimguiname"] = "ImGuiTextBuffer_ImGuiTextBuffer" defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["signature"] = "()" defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["stname"] = "ImGuiTextBuffer" @@ -7158,7 +7576,7 @@ defs["ImGuiTextBuffer_append"][1]["cimguiname"] = "ImGuiTextBuffer_append" defs["ImGuiTextBuffer_append"][1]["defaults"] = {} defs["ImGuiTextBuffer_append"][1]["defaults"]["str_end"] = "NULL" defs["ImGuiTextBuffer_append"][1]["funcname"] = "append" -defs["ImGuiTextBuffer_append"][1]["location"] = "imgui:2223" +defs["ImGuiTextBuffer_append"][1]["location"] = "imgui:2331" defs["ImGuiTextBuffer_append"][1]["ov_cimguiname"] = "ImGuiTextBuffer_append" defs["ImGuiTextBuffer_append"][1]["ret"] = "void" defs["ImGuiTextBuffer_append"][1]["signature"] = "(const char*,const char*)" @@ -7183,7 +7601,7 @@ defs["ImGuiTextBuffer_appendf"][1]["cimguiname"] = "ImGuiTextBuffer_appendf" defs["ImGuiTextBuffer_appendf"][1]["defaults"] = {} defs["ImGuiTextBuffer_appendf"][1]["funcname"] = "appendf" defs["ImGuiTextBuffer_appendf"][1]["isvararg"] = "...)" -defs["ImGuiTextBuffer_appendf"][1]["location"] = "imgui:2224" +defs["ImGuiTextBuffer_appendf"][1]["location"] = "imgui:2332" defs["ImGuiTextBuffer_appendf"][1]["manual"] = true defs["ImGuiTextBuffer_appendf"][1]["ov_cimguiname"] = "ImGuiTextBuffer_appendf" defs["ImGuiTextBuffer_appendf"][1]["ret"] = "void" @@ -7208,7 +7626,7 @@ defs["ImGuiTextBuffer_appendfv"][1]["call_args"] = "(fmt,args)" defs["ImGuiTextBuffer_appendfv"][1]["cimguiname"] = "ImGuiTextBuffer_appendfv" defs["ImGuiTextBuffer_appendfv"][1]["defaults"] = {} defs["ImGuiTextBuffer_appendfv"][1]["funcname"] = "appendfv" -defs["ImGuiTextBuffer_appendfv"][1]["location"] = "imgui:2225" +defs["ImGuiTextBuffer_appendfv"][1]["location"] = "imgui:2333" defs["ImGuiTextBuffer_appendfv"][1]["ov_cimguiname"] = "ImGuiTextBuffer_appendfv" defs["ImGuiTextBuffer_appendfv"][1]["ret"] = "void" defs["ImGuiTextBuffer_appendfv"][1]["signature"] = "(const char*,va_list)" @@ -7226,7 +7644,7 @@ defs["ImGuiTextBuffer_begin"][1]["call_args"] = "()" defs["ImGuiTextBuffer_begin"][1]["cimguiname"] = "ImGuiTextBuffer_begin" defs["ImGuiTextBuffer_begin"][1]["defaults"] = {} defs["ImGuiTextBuffer_begin"][1]["funcname"] = "begin" -defs["ImGuiTextBuffer_begin"][1]["location"] = "imgui:2216" +defs["ImGuiTextBuffer_begin"][1]["location"] = "imgui:2324" defs["ImGuiTextBuffer_begin"][1]["ov_cimguiname"] = "ImGuiTextBuffer_begin" defs["ImGuiTextBuffer_begin"][1]["ret"] = "const char*" defs["ImGuiTextBuffer_begin"][1]["signature"] = "()const" @@ -7244,7 +7662,7 @@ defs["ImGuiTextBuffer_c_str"][1]["call_args"] = "()" defs["ImGuiTextBuffer_c_str"][1]["cimguiname"] = "ImGuiTextBuffer_c_str" defs["ImGuiTextBuffer_c_str"][1]["defaults"] = {} defs["ImGuiTextBuffer_c_str"][1]["funcname"] = "c_str" -defs["ImGuiTextBuffer_c_str"][1]["location"] = "imgui:2222" +defs["ImGuiTextBuffer_c_str"][1]["location"] = "imgui:2330" defs["ImGuiTextBuffer_c_str"][1]["ov_cimguiname"] = "ImGuiTextBuffer_c_str" defs["ImGuiTextBuffer_c_str"][1]["ret"] = "const char*" defs["ImGuiTextBuffer_c_str"][1]["signature"] = "()const" @@ -7262,7 +7680,7 @@ defs["ImGuiTextBuffer_clear"][1]["call_args"] = "()" defs["ImGuiTextBuffer_clear"][1]["cimguiname"] = "ImGuiTextBuffer_clear" defs["ImGuiTextBuffer_clear"][1]["defaults"] = {} defs["ImGuiTextBuffer_clear"][1]["funcname"] = "clear" -defs["ImGuiTextBuffer_clear"][1]["location"] = "imgui:2220" +defs["ImGuiTextBuffer_clear"][1]["location"] = "imgui:2328" defs["ImGuiTextBuffer_clear"][1]["ov_cimguiname"] = "ImGuiTextBuffer_clear" defs["ImGuiTextBuffer_clear"][1]["ret"] = "void" defs["ImGuiTextBuffer_clear"][1]["signature"] = "()" @@ -7296,7 +7714,7 @@ defs["ImGuiTextBuffer_empty"][1]["call_args"] = "()" defs["ImGuiTextBuffer_empty"][1]["cimguiname"] = "ImGuiTextBuffer_empty" defs["ImGuiTextBuffer_empty"][1]["defaults"] = {} defs["ImGuiTextBuffer_empty"][1]["funcname"] = "empty" -defs["ImGuiTextBuffer_empty"][1]["location"] = "imgui:2219" +defs["ImGuiTextBuffer_empty"][1]["location"] = "imgui:2327" defs["ImGuiTextBuffer_empty"][1]["ov_cimguiname"] = "ImGuiTextBuffer_empty" defs["ImGuiTextBuffer_empty"][1]["ret"] = "bool" defs["ImGuiTextBuffer_empty"][1]["signature"] = "()const" @@ -7314,7 +7732,7 @@ defs["ImGuiTextBuffer_end"][1]["call_args"] = "()" defs["ImGuiTextBuffer_end"][1]["cimguiname"] = "ImGuiTextBuffer_end" defs["ImGuiTextBuffer_end"][1]["defaults"] = {} defs["ImGuiTextBuffer_end"][1]["funcname"] = "end" -defs["ImGuiTextBuffer_end"][1]["location"] = "imgui:2217" +defs["ImGuiTextBuffer_end"][1]["location"] = "imgui:2325" defs["ImGuiTextBuffer_end"][1]["ov_cimguiname"] = "ImGuiTextBuffer_end" defs["ImGuiTextBuffer_end"][1]["ret"] = "const char*" defs["ImGuiTextBuffer_end"][1]["signature"] = "()const" @@ -7335,7 +7753,7 @@ defs["ImGuiTextBuffer_reserve"][1]["call_args"] = "(capacity)" defs["ImGuiTextBuffer_reserve"][1]["cimguiname"] = "ImGuiTextBuffer_reserve" defs["ImGuiTextBuffer_reserve"][1]["defaults"] = {} defs["ImGuiTextBuffer_reserve"][1]["funcname"] = "reserve" -defs["ImGuiTextBuffer_reserve"][1]["location"] = "imgui:2221" +defs["ImGuiTextBuffer_reserve"][1]["location"] = "imgui:2329" defs["ImGuiTextBuffer_reserve"][1]["ov_cimguiname"] = "ImGuiTextBuffer_reserve" defs["ImGuiTextBuffer_reserve"][1]["ret"] = "void" defs["ImGuiTextBuffer_reserve"][1]["signature"] = "(int)" @@ -7353,7 +7771,7 @@ defs["ImGuiTextBuffer_size"][1]["call_args"] = "()" defs["ImGuiTextBuffer_size"][1]["cimguiname"] = "ImGuiTextBuffer_size" defs["ImGuiTextBuffer_size"][1]["defaults"] = {} defs["ImGuiTextBuffer_size"][1]["funcname"] = "size" -defs["ImGuiTextBuffer_size"][1]["location"] = "imgui:2218" +defs["ImGuiTextBuffer_size"][1]["location"] = "imgui:2326" defs["ImGuiTextBuffer_size"][1]["ov_cimguiname"] = "ImGuiTextBuffer_size" defs["ImGuiTextBuffer_size"][1]["ret"] = "int" defs["ImGuiTextBuffer_size"][1]["signature"] = "()const" @@ -7371,7 +7789,7 @@ defs["ImGuiTextFilter_Build"][1]["call_args"] = "()" defs["ImGuiTextFilter_Build"][1]["cimguiname"] = "ImGuiTextFilter_Build" defs["ImGuiTextFilter_Build"][1]["defaults"] = {} defs["ImGuiTextFilter_Build"][1]["funcname"] = "Build" -defs["ImGuiTextFilter_Build"][1]["location"] = "imgui:2187" +defs["ImGuiTextFilter_Build"][1]["location"] = "imgui:2295" defs["ImGuiTextFilter_Build"][1]["ov_cimguiname"] = "ImGuiTextFilter_Build" defs["ImGuiTextFilter_Build"][1]["ret"] = "void" defs["ImGuiTextFilter_Build"][1]["signature"] = "()" @@ -7389,7 +7807,7 @@ defs["ImGuiTextFilter_Clear"][1]["call_args"] = "()" defs["ImGuiTextFilter_Clear"][1]["cimguiname"] = "ImGuiTextFilter_Clear" defs["ImGuiTextFilter_Clear"][1]["defaults"] = {} defs["ImGuiTextFilter_Clear"][1]["funcname"] = "Clear" -defs["ImGuiTextFilter_Clear"][1]["location"] = "imgui:2188" +defs["ImGuiTextFilter_Clear"][1]["location"] = "imgui:2296" defs["ImGuiTextFilter_Clear"][1]["ov_cimguiname"] = "ImGuiTextFilter_Clear" defs["ImGuiTextFilter_Clear"][1]["ret"] = "void" defs["ImGuiTextFilter_Clear"][1]["signature"] = "()" @@ -7415,7 +7833,7 @@ defs["ImGuiTextFilter_Draw"][1]["defaults"] = {} defs["ImGuiTextFilter_Draw"][1]["defaults"]["label"] = "\"Filter(inc,-exc)\"" defs["ImGuiTextFilter_Draw"][1]["defaults"]["width"] = "0.0f" defs["ImGuiTextFilter_Draw"][1]["funcname"] = "Draw" -defs["ImGuiTextFilter_Draw"][1]["location"] = "imgui:2185" +defs["ImGuiTextFilter_Draw"][1]["location"] = "imgui:2293" defs["ImGuiTextFilter_Draw"][1]["ov_cimguiname"] = "ImGuiTextFilter_Draw" defs["ImGuiTextFilter_Draw"][1]["ret"] = "bool" defs["ImGuiTextFilter_Draw"][1]["signature"] = "(const char*,float)" @@ -7435,7 +7853,7 @@ defs["ImGuiTextFilter_ImGuiTextFilter"][1]["constructor"] = true defs["ImGuiTextFilter_ImGuiTextFilter"][1]["defaults"] = {} defs["ImGuiTextFilter_ImGuiTextFilter"][1]["defaults"]["default_filter"] = "\"\"" defs["ImGuiTextFilter_ImGuiTextFilter"][1]["funcname"] = "ImGuiTextFilter" -defs["ImGuiTextFilter_ImGuiTextFilter"][1]["location"] = "imgui:2184" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["location"] = "imgui:2292" defs["ImGuiTextFilter_ImGuiTextFilter"][1]["ov_cimguiname"] = "ImGuiTextFilter_ImGuiTextFilter" defs["ImGuiTextFilter_ImGuiTextFilter"][1]["signature"] = "(const char*)" defs["ImGuiTextFilter_ImGuiTextFilter"][1]["stname"] = "ImGuiTextFilter" @@ -7452,7 +7870,7 @@ defs["ImGuiTextFilter_IsActive"][1]["call_args"] = "()" defs["ImGuiTextFilter_IsActive"][1]["cimguiname"] = "ImGuiTextFilter_IsActive" defs["ImGuiTextFilter_IsActive"][1]["defaults"] = {} defs["ImGuiTextFilter_IsActive"][1]["funcname"] = "IsActive" -defs["ImGuiTextFilter_IsActive"][1]["location"] = "imgui:2189" +defs["ImGuiTextFilter_IsActive"][1]["location"] = "imgui:2297" defs["ImGuiTextFilter_IsActive"][1]["ov_cimguiname"] = "ImGuiTextFilter_IsActive" defs["ImGuiTextFilter_IsActive"][1]["ret"] = "bool" defs["ImGuiTextFilter_IsActive"][1]["signature"] = "()const" @@ -7477,7 +7895,7 @@ defs["ImGuiTextFilter_PassFilter"][1]["cimguiname"] = "ImGuiTextFilter_PassFilte defs["ImGuiTextFilter_PassFilter"][1]["defaults"] = {} defs["ImGuiTextFilter_PassFilter"][1]["defaults"]["text_end"] = "NULL" defs["ImGuiTextFilter_PassFilter"][1]["funcname"] = "PassFilter" -defs["ImGuiTextFilter_PassFilter"][1]["location"] = "imgui:2186" +defs["ImGuiTextFilter_PassFilter"][1]["location"] = "imgui:2294" defs["ImGuiTextFilter_PassFilter"][1]["ov_cimguiname"] = "ImGuiTextFilter_PassFilter" defs["ImGuiTextFilter_PassFilter"][1]["ret"] = "bool" defs["ImGuiTextFilter_PassFilter"][1]["signature"] = "(const char*,const char*)const" @@ -7499,6 +7917,117 @@ defs["ImGuiTextFilter_destroy"][1]["ret"] = "void" defs["ImGuiTextFilter_destroy"][1]["signature"] = "(ImGuiTextFilter*)" defs["ImGuiTextFilter_destroy"][1]["stname"] = "ImGuiTextFilter" defs["ImGuiTextFilter_destroy"]["(ImGuiTextFilter*)"] = defs["ImGuiTextFilter_destroy"][1] +defs["ImGuiTextIndex_append"] = {} +defs["ImGuiTextIndex_append"][1] = {} +defs["ImGuiTextIndex_append"][1]["args"] = "(ImGuiTextIndex* self,const char* base,int old_size,int new_size)" +defs["ImGuiTextIndex_append"][1]["argsT"] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_append"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_append"][1]["argsT"][2] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][2]["name"] = "base" +defs["ImGuiTextIndex_append"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextIndex_append"][1]["argsT"][3] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][3]["name"] = "old_size" +defs["ImGuiTextIndex_append"][1]["argsT"][3]["type"] = "int" +defs["ImGuiTextIndex_append"][1]["argsT"][4] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][4]["name"] = "new_size" +defs["ImGuiTextIndex_append"][1]["argsT"][4]["type"] = "int" +defs["ImGuiTextIndex_append"][1]["argsoriginal"] = "(const char* base,int old_size,int new_size)" +defs["ImGuiTextIndex_append"][1]["call_args"] = "(base,old_size,new_size)" +defs["ImGuiTextIndex_append"][1]["cimguiname"] = "ImGuiTextIndex_append" +defs["ImGuiTextIndex_append"][1]["defaults"] = {} +defs["ImGuiTextIndex_append"][1]["funcname"] = "append" +defs["ImGuiTextIndex_append"][1]["location"] = "imgui_internal:725" +defs["ImGuiTextIndex_append"][1]["ov_cimguiname"] = "ImGuiTextIndex_append" +defs["ImGuiTextIndex_append"][1]["ret"] = "void" +defs["ImGuiTextIndex_append"][1]["signature"] = "(const char*,int,int)" +defs["ImGuiTextIndex_append"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_append"]["(const char*,int,int)"] = defs["ImGuiTextIndex_append"][1] +defs["ImGuiTextIndex_clear"] = {} +defs["ImGuiTextIndex_clear"][1] = {} +defs["ImGuiTextIndex_clear"][1]["args"] = "(ImGuiTextIndex* self)" +defs["ImGuiTextIndex_clear"][1]["argsT"] = {} +defs["ImGuiTextIndex_clear"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_clear"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_clear"][1]["argsoriginal"] = "()" +defs["ImGuiTextIndex_clear"][1]["call_args"] = "()" +defs["ImGuiTextIndex_clear"][1]["cimguiname"] = "ImGuiTextIndex_clear" +defs["ImGuiTextIndex_clear"][1]["defaults"] = {} +defs["ImGuiTextIndex_clear"][1]["funcname"] = "clear" +defs["ImGuiTextIndex_clear"][1]["location"] = "imgui_internal:721" +defs["ImGuiTextIndex_clear"][1]["ov_cimguiname"] = "ImGuiTextIndex_clear" +defs["ImGuiTextIndex_clear"][1]["ret"] = "void" +defs["ImGuiTextIndex_clear"][1]["signature"] = "()" +defs["ImGuiTextIndex_clear"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_clear"]["()"] = defs["ImGuiTextIndex_clear"][1] +defs["ImGuiTextIndex_get_line_begin"] = {} +defs["ImGuiTextIndex_get_line_begin"][1] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["args"] = "(ImGuiTextIndex* self,const char* base,int n)" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][2] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][2]["name"] = "base" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][3] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][3]["name"] = "n" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][3]["type"] = "int" +defs["ImGuiTextIndex_get_line_begin"][1]["argsoriginal"] = "(const char* base,int n)" +defs["ImGuiTextIndex_get_line_begin"][1]["call_args"] = "(base,n)" +defs["ImGuiTextIndex_get_line_begin"][1]["cimguiname"] = "ImGuiTextIndex_get_line_begin" +defs["ImGuiTextIndex_get_line_begin"][1]["defaults"] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["funcname"] = "get_line_begin" +defs["ImGuiTextIndex_get_line_begin"][1]["location"] = "imgui_internal:723" +defs["ImGuiTextIndex_get_line_begin"][1]["ov_cimguiname"] = "ImGuiTextIndex_get_line_begin" +defs["ImGuiTextIndex_get_line_begin"][1]["ret"] = "const char*" +defs["ImGuiTextIndex_get_line_begin"][1]["signature"] = "(const char*,int)" +defs["ImGuiTextIndex_get_line_begin"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_get_line_begin"]["(const char*,int)"] = defs["ImGuiTextIndex_get_line_begin"][1] +defs["ImGuiTextIndex_get_line_end"] = {} +defs["ImGuiTextIndex_get_line_end"][1] = {} +defs["ImGuiTextIndex_get_line_end"][1]["args"] = "(ImGuiTextIndex* self,const char* base,int n)" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"] = {} +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][2] = {} +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][2]["name"] = "base" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][3] = {} +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][3]["name"] = "n" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][3]["type"] = "int" +defs["ImGuiTextIndex_get_line_end"][1]["argsoriginal"] = "(const char* base,int n)" +defs["ImGuiTextIndex_get_line_end"][1]["call_args"] = "(base,n)" +defs["ImGuiTextIndex_get_line_end"][1]["cimguiname"] = "ImGuiTextIndex_get_line_end" +defs["ImGuiTextIndex_get_line_end"][1]["defaults"] = {} +defs["ImGuiTextIndex_get_line_end"][1]["funcname"] = "get_line_end" +defs["ImGuiTextIndex_get_line_end"][1]["location"] = "imgui_internal:724" +defs["ImGuiTextIndex_get_line_end"][1]["ov_cimguiname"] = "ImGuiTextIndex_get_line_end" +defs["ImGuiTextIndex_get_line_end"][1]["ret"] = "const char*" +defs["ImGuiTextIndex_get_line_end"][1]["signature"] = "(const char*,int)" +defs["ImGuiTextIndex_get_line_end"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_get_line_end"]["(const char*,int)"] = defs["ImGuiTextIndex_get_line_end"][1] +defs["ImGuiTextIndex_size"] = {} +defs["ImGuiTextIndex_size"][1] = {} +defs["ImGuiTextIndex_size"][1]["args"] = "(ImGuiTextIndex* self)" +defs["ImGuiTextIndex_size"][1]["argsT"] = {} +defs["ImGuiTextIndex_size"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_size"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_size"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_size"][1]["argsoriginal"] = "()" +defs["ImGuiTextIndex_size"][1]["call_args"] = "()" +defs["ImGuiTextIndex_size"][1]["cimguiname"] = "ImGuiTextIndex_size" +defs["ImGuiTextIndex_size"][1]["defaults"] = {} +defs["ImGuiTextIndex_size"][1]["funcname"] = "size" +defs["ImGuiTextIndex_size"][1]["location"] = "imgui_internal:722" +defs["ImGuiTextIndex_size"][1]["ov_cimguiname"] = "ImGuiTextIndex_size" +defs["ImGuiTextIndex_size"][1]["ret"] = "int" +defs["ImGuiTextIndex_size"][1]["signature"] = "()" +defs["ImGuiTextIndex_size"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_size"]["()"] = defs["ImGuiTextIndex_size"][1] defs["ImGuiTextRange_ImGuiTextRange"] = {} defs["ImGuiTextRange_ImGuiTextRange"][1] = {} defs["ImGuiTextRange_ImGuiTextRange"][1]["args"] = "()" @@ -7509,8 +8038,8 @@ defs["ImGuiTextRange_ImGuiTextRange"][1]["cimguiname"] = "ImGuiTextRange_ImGuiTe defs["ImGuiTextRange_ImGuiTextRange"][1]["constructor"] = true defs["ImGuiTextRange_ImGuiTextRange"][1]["defaults"] = {} defs["ImGuiTextRange_ImGuiTextRange"][1]["funcname"] = "ImGuiTextRange" -defs["ImGuiTextRange_ImGuiTextRange"][1]["location"] = "imgui:2197" -defs["ImGuiTextRange_ImGuiTextRange"][1]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRangeNil" +defs["ImGuiTextRange_ImGuiTextRange"][1]["location"] = "imgui:2305" +defs["ImGuiTextRange_ImGuiTextRange"][1]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRange_Nil" defs["ImGuiTextRange_ImGuiTextRange"][1]["signature"] = "()" defs["ImGuiTextRange_ImGuiTextRange"][1]["stname"] = "ImGuiTextRange" defs["ImGuiTextRange_ImGuiTextRange"][2] = {} @@ -7528,8 +8057,8 @@ defs["ImGuiTextRange_ImGuiTextRange"][2]["cimguiname"] = "ImGuiTextRange_ImGuiTe defs["ImGuiTextRange_ImGuiTextRange"][2]["constructor"] = true defs["ImGuiTextRange_ImGuiTextRange"][2]["defaults"] = {} defs["ImGuiTextRange_ImGuiTextRange"][2]["funcname"] = "ImGuiTextRange" -defs["ImGuiTextRange_ImGuiTextRange"][2]["location"] = "imgui:2198" -defs["ImGuiTextRange_ImGuiTextRange"][2]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRangeStr" +defs["ImGuiTextRange_ImGuiTextRange"][2]["location"] = "imgui:2306" +defs["ImGuiTextRange_ImGuiTextRange"][2]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRange_Str" defs["ImGuiTextRange_ImGuiTextRange"][2]["signature"] = "(const char*,const char*)" defs["ImGuiTextRange_ImGuiTextRange"][2]["stname"] = "ImGuiTextRange" defs["ImGuiTextRange_ImGuiTextRange"]["()"] = defs["ImGuiTextRange_ImGuiTextRange"][1] @@ -7562,7 +8091,7 @@ defs["ImGuiTextRange_empty"][1]["call_args"] = "()" defs["ImGuiTextRange_empty"][1]["cimguiname"] = "ImGuiTextRange_empty" defs["ImGuiTextRange_empty"][1]["defaults"] = {} defs["ImGuiTextRange_empty"][1]["funcname"] = "empty" -defs["ImGuiTextRange_empty"][1]["location"] = "imgui:2199" +defs["ImGuiTextRange_empty"][1]["location"] = "imgui:2307" defs["ImGuiTextRange_empty"][1]["ov_cimguiname"] = "ImGuiTextRange_empty" defs["ImGuiTextRange_empty"][1]["ret"] = "bool" defs["ImGuiTextRange_empty"][1]["signature"] = "()const" @@ -7586,7 +8115,7 @@ defs["ImGuiTextRange_split"][1]["call_args"] = "(separator,out)" defs["ImGuiTextRange_split"][1]["cimguiname"] = "ImGuiTextRange_split" defs["ImGuiTextRange_split"][1]["defaults"] = {} defs["ImGuiTextRange_split"][1]["funcname"] = "split" -defs["ImGuiTextRange_split"][1]["location"] = "imgui:2200" +defs["ImGuiTextRange_split"][1]["location"] = "imgui:2308" defs["ImGuiTextRange_split"][1]["ov_cimguiname"] = "ImGuiTextRange_split" defs["ImGuiTextRange_split"][1]["ret"] = "void" defs["ImGuiTextRange_split"][1]["signature"] = "(char,ImVector_ImGuiTextRange*)const" @@ -7610,7 +8139,7 @@ defs["ImGuiViewportP_CalcWorkRectPos"][1]["call_args"] = "(off_min)" defs["ImGuiViewportP_CalcWorkRectPos"][1]["cimguiname"] = "ImGuiViewportP_CalcWorkRectPos" defs["ImGuiViewportP_CalcWorkRectPos"][1]["defaults"] = {} defs["ImGuiViewportP_CalcWorkRectPos"][1]["funcname"] = "CalcWorkRectPos" -defs["ImGuiViewportP_CalcWorkRectPos"][1]["location"] = "imgui_internal:1548" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["location"] = "imgui_internal:1742" defs["ImGuiViewportP_CalcWorkRectPos"][1]["nonUDT"] = 1 defs["ImGuiViewportP_CalcWorkRectPos"][1]["ov_cimguiname"] = "ImGuiViewportP_CalcWorkRectPos" defs["ImGuiViewportP_CalcWorkRectPos"][1]["ret"] = "void" @@ -7638,7 +8167,7 @@ defs["ImGuiViewportP_CalcWorkRectSize"][1]["call_args"] = "(off_min,off_max)" defs["ImGuiViewportP_CalcWorkRectSize"][1]["cimguiname"] = "ImGuiViewportP_CalcWorkRectSize" defs["ImGuiViewportP_CalcWorkRectSize"][1]["defaults"] = {} defs["ImGuiViewportP_CalcWorkRectSize"][1]["funcname"] = "CalcWorkRectSize" -defs["ImGuiViewportP_CalcWorkRectSize"][1]["location"] = "imgui_internal:1549" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["location"] = "imgui_internal:1743" defs["ImGuiViewportP_CalcWorkRectSize"][1]["nonUDT"] = 1 defs["ImGuiViewportP_CalcWorkRectSize"][1]["ov_cimguiname"] = "ImGuiViewportP_CalcWorkRectSize" defs["ImGuiViewportP_CalcWorkRectSize"][1]["ret"] = "void" @@ -7657,7 +8186,7 @@ defs["ImGuiViewportP_ClearRequestFlags"][1]["call_args"] = "()" defs["ImGuiViewportP_ClearRequestFlags"][1]["cimguiname"] = "ImGuiViewportP_ClearRequestFlags" defs["ImGuiViewportP_ClearRequestFlags"][1]["defaults"] = {} defs["ImGuiViewportP_ClearRequestFlags"][1]["funcname"] = "ClearRequestFlags" -defs["ImGuiViewportP_ClearRequestFlags"][1]["location"] = "imgui_internal:1545" +defs["ImGuiViewportP_ClearRequestFlags"][1]["location"] = "imgui_internal:1739" defs["ImGuiViewportP_ClearRequestFlags"][1]["ov_cimguiname"] = "ImGuiViewportP_ClearRequestFlags" defs["ImGuiViewportP_ClearRequestFlags"][1]["ret"] = "void" defs["ImGuiViewportP_ClearRequestFlags"][1]["signature"] = "()" @@ -7678,7 +8207,7 @@ defs["ImGuiViewportP_GetBuildWorkRect"][1]["call_args"] = "()" defs["ImGuiViewportP_GetBuildWorkRect"][1]["cimguiname"] = "ImGuiViewportP_GetBuildWorkRect" defs["ImGuiViewportP_GetBuildWorkRect"][1]["defaults"] = {} defs["ImGuiViewportP_GetBuildWorkRect"][1]["funcname"] = "GetBuildWorkRect" -defs["ImGuiViewportP_GetBuildWorkRect"][1]["location"] = "imgui_internal:1555" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["location"] = "imgui_internal:1749" defs["ImGuiViewportP_GetBuildWorkRect"][1]["nonUDT"] = 1 defs["ImGuiViewportP_GetBuildWorkRect"][1]["ov_cimguiname"] = "ImGuiViewportP_GetBuildWorkRect" defs["ImGuiViewportP_GetBuildWorkRect"][1]["ret"] = "void" @@ -7700,7 +8229,7 @@ defs["ImGuiViewportP_GetMainRect"][1]["call_args"] = "()" defs["ImGuiViewportP_GetMainRect"][1]["cimguiname"] = "ImGuiViewportP_GetMainRect" defs["ImGuiViewportP_GetMainRect"][1]["defaults"] = {} defs["ImGuiViewportP_GetMainRect"][1]["funcname"] = "GetMainRect" -defs["ImGuiViewportP_GetMainRect"][1]["location"] = "imgui_internal:1553" +defs["ImGuiViewportP_GetMainRect"][1]["location"] = "imgui_internal:1747" defs["ImGuiViewportP_GetMainRect"][1]["nonUDT"] = 1 defs["ImGuiViewportP_GetMainRect"][1]["ov_cimguiname"] = "ImGuiViewportP_GetMainRect" defs["ImGuiViewportP_GetMainRect"][1]["ret"] = "void" @@ -7722,7 +8251,7 @@ defs["ImGuiViewportP_GetWorkRect"][1]["call_args"] = "()" defs["ImGuiViewportP_GetWorkRect"][1]["cimguiname"] = "ImGuiViewportP_GetWorkRect" defs["ImGuiViewportP_GetWorkRect"][1]["defaults"] = {} defs["ImGuiViewportP_GetWorkRect"][1]["funcname"] = "GetWorkRect" -defs["ImGuiViewportP_GetWorkRect"][1]["location"] = "imgui_internal:1554" +defs["ImGuiViewportP_GetWorkRect"][1]["location"] = "imgui_internal:1748" defs["ImGuiViewportP_GetWorkRect"][1]["nonUDT"] = 1 defs["ImGuiViewportP_GetWorkRect"][1]["ov_cimguiname"] = "ImGuiViewportP_GetWorkRect" defs["ImGuiViewportP_GetWorkRect"][1]["ret"] = "void" @@ -7739,7 +8268,7 @@ defs["ImGuiViewportP_ImGuiViewportP"][1]["cimguiname"] = "ImGuiViewportP_ImGuiVi defs["ImGuiViewportP_ImGuiViewportP"][1]["constructor"] = true defs["ImGuiViewportP_ImGuiViewportP"][1]["defaults"] = {} defs["ImGuiViewportP_ImGuiViewportP"][1]["funcname"] = "ImGuiViewportP" -defs["ImGuiViewportP_ImGuiViewportP"][1]["location"] = "imgui_internal:1543" +defs["ImGuiViewportP_ImGuiViewportP"][1]["location"] = "imgui_internal:1737" defs["ImGuiViewportP_ImGuiViewportP"][1]["ov_cimguiname"] = "ImGuiViewportP_ImGuiViewportP" defs["ImGuiViewportP_ImGuiViewportP"][1]["signature"] = "()" defs["ImGuiViewportP_ImGuiViewportP"][1]["stname"] = "ImGuiViewportP" @@ -7756,7 +8285,7 @@ defs["ImGuiViewportP_UpdateWorkRect"][1]["call_args"] = "()" defs["ImGuiViewportP_UpdateWorkRect"][1]["cimguiname"] = "ImGuiViewportP_UpdateWorkRect" defs["ImGuiViewportP_UpdateWorkRect"][1]["defaults"] = {} defs["ImGuiViewportP_UpdateWorkRect"][1]["funcname"] = "UpdateWorkRect" -defs["ImGuiViewportP_UpdateWorkRect"][1]["location"] = "imgui_internal:1550" +defs["ImGuiViewportP_UpdateWorkRect"][1]["location"] = "imgui_internal:1744" defs["ImGuiViewportP_UpdateWorkRect"][1]["ov_cimguiname"] = "ImGuiViewportP_UpdateWorkRect" defs["ImGuiViewportP_UpdateWorkRect"][1]["ret"] = "void" defs["ImGuiViewportP_UpdateWorkRect"][1]["signature"] = "()" @@ -7773,7 +8302,7 @@ defs["ImGuiViewportP_destroy"][1]["call_args"] = "(self)" defs["ImGuiViewportP_destroy"][1]["cimguiname"] = "ImGuiViewportP_destroy" defs["ImGuiViewportP_destroy"][1]["defaults"] = {} defs["ImGuiViewportP_destroy"][1]["destructor"] = true -defs["ImGuiViewportP_destroy"][1]["location"] = "imgui_internal:1544" +defs["ImGuiViewportP_destroy"][1]["location"] = "imgui_internal:1738" defs["ImGuiViewportP_destroy"][1]["ov_cimguiname"] = "ImGuiViewportP_destroy" defs["ImGuiViewportP_destroy"][1]["realdestructor"] = true defs["ImGuiViewportP_destroy"][1]["ret"] = "void" @@ -7795,7 +8324,7 @@ defs["ImGuiViewport_GetCenter"][1]["call_args"] = "()" defs["ImGuiViewport_GetCenter"][1]["cimguiname"] = "ImGuiViewport_GetCenter" defs["ImGuiViewport_GetCenter"][1]["defaults"] = {} defs["ImGuiViewport_GetCenter"][1]["funcname"] = "GetCenter" -defs["ImGuiViewport_GetCenter"][1]["location"] = "imgui:2955" +defs["ImGuiViewport_GetCenter"][1]["location"] = "imgui:3070" defs["ImGuiViewport_GetCenter"][1]["nonUDT"] = 1 defs["ImGuiViewport_GetCenter"][1]["ov_cimguiname"] = "ImGuiViewport_GetCenter" defs["ImGuiViewport_GetCenter"][1]["ret"] = "void" @@ -7817,7 +8346,7 @@ defs["ImGuiViewport_GetWorkCenter"][1]["call_args"] = "()" defs["ImGuiViewport_GetWorkCenter"][1]["cimguiname"] = "ImGuiViewport_GetWorkCenter" defs["ImGuiViewport_GetWorkCenter"][1]["defaults"] = {} defs["ImGuiViewport_GetWorkCenter"][1]["funcname"] = "GetWorkCenter" -defs["ImGuiViewport_GetWorkCenter"][1]["location"] = "imgui:2956" +defs["ImGuiViewport_GetWorkCenter"][1]["location"] = "imgui:3071" defs["ImGuiViewport_GetWorkCenter"][1]["nonUDT"] = 1 defs["ImGuiViewport_GetWorkCenter"][1]["ov_cimguiname"] = "ImGuiViewport_GetWorkCenter" defs["ImGuiViewport_GetWorkCenter"][1]["ret"] = "void" @@ -7834,7 +8363,7 @@ defs["ImGuiViewport_ImGuiViewport"][1]["cimguiname"] = "ImGuiViewport_ImGuiViewp defs["ImGuiViewport_ImGuiViewport"][1]["constructor"] = true defs["ImGuiViewport_ImGuiViewport"][1]["defaults"] = {} defs["ImGuiViewport_ImGuiViewport"][1]["funcname"] = "ImGuiViewport" -defs["ImGuiViewport_ImGuiViewport"][1]["location"] = "imgui:2951" +defs["ImGuiViewport_ImGuiViewport"][1]["location"] = "imgui:3066" defs["ImGuiViewport_ImGuiViewport"][1]["ov_cimguiname"] = "ImGuiViewport_ImGuiViewport" defs["ImGuiViewport_ImGuiViewport"][1]["signature"] = "()" defs["ImGuiViewport_ImGuiViewport"][1]["stname"] = "ImGuiViewport" @@ -7850,7 +8379,7 @@ defs["ImGuiViewport_destroy"][1]["call_args"] = "(self)" defs["ImGuiViewport_destroy"][1]["cimguiname"] = "ImGuiViewport_destroy" defs["ImGuiViewport_destroy"][1]["defaults"] = {} defs["ImGuiViewport_destroy"][1]["destructor"] = true -defs["ImGuiViewport_destroy"][1]["location"] = "imgui:2952" +defs["ImGuiViewport_destroy"][1]["location"] = "imgui:3067" defs["ImGuiViewport_destroy"][1]["ov_cimguiname"] = "ImGuiViewport_destroy" defs["ImGuiViewport_destroy"][1]["realdestructor"] = true defs["ImGuiViewport_destroy"][1]["ret"] = "void" @@ -7867,7 +8396,7 @@ defs["ImGuiWindowClass_ImGuiWindowClass"][1]["cimguiname"] = "ImGuiWindowClass_I defs["ImGuiWindowClass_ImGuiWindowClass"][1]["constructor"] = true defs["ImGuiWindowClass_ImGuiWindowClass"][1]["defaults"] = {} defs["ImGuiWindowClass_ImGuiWindowClass"][1]["funcname"] = "ImGuiWindowClass" -defs["ImGuiWindowClass_ImGuiWindowClass"][1]["location"] = "imgui:2111" +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["location"] = "imgui:2219" defs["ImGuiWindowClass_ImGuiWindowClass"][1]["ov_cimguiname"] = "ImGuiWindowClass_ImGuiWindowClass" defs["ImGuiWindowClass_ImGuiWindowClass"][1]["signature"] = "()" defs["ImGuiWindowClass_ImGuiWindowClass"][1]["stname"] = "ImGuiWindowClass" @@ -7900,7 +8429,7 @@ defs["ImGuiWindowSettings_GetName"][1]["call_args"] = "()" defs["ImGuiWindowSettings_GetName"][1]["cimguiname"] = "ImGuiWindowSettings_GetName" defs["ImGuiWindowSettings_GetName"][1]["defaults"] = {} defs["ImGuiWindowSettings_GetName"][1]["funcname"] = "GetName" -defs["ImGuiWindowSettings_GetName"][1]["location"] = "imgui_internal:1579" +defs["ImGuiWindowSettings_GetName"][1]["location"] = "imgui_internal:1773" defs["ImGuiWindowSettings_GetName"][1]["ov_cimguiname"] = "ImGuiWindowSettings_GetName" defs["ImGuiWindowSettings_GetName"][1]["ret"] = "char*" defs["ImGuiWindowSettings_GetName"][1]["signature"] = "()" @@ -7916,7 +8445,7 @@ defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["cimguiname"] = "ImGuiWindowS defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["constructor"] = true defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["defaults"] = {} defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["funcname"] = "ImGuiWindowSettings" -defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["location"] = "imgui_internal:1578" +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["location"] = "imgui_internal:1772" defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["ov_cimguiname"] = "ImGuiWindowSettings_ImGuiWindowSettings" defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["signature"] = "()" defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["stname"] = "ImGuiWindowSettings" @@ -7949,7 +8478,7 @@ defs["ImGuiWindow_CalcFontSize"][1]["call_args"] = "()" defs["ImGuiWindow_CalcFontSize"][1]["cimguiname"] = "ImGuiWindow_CalcFontSize" defs["ImGuiWindow_CalcFontSize"][1]["defaults"] = {} defs["ImGuiWindow_CalcFontSize"][1]["funcname"] = "CalcFontSize" -defs["ImGuiWindow_CalcFontSize"][1]["location"] = "imgui_internal:2285" +defs["ImGuiWindow_CalcFontSize"][1]["location"] = "imgui_internal:2562" defs["ImGuiWindow_CalcFontSize"][1]["ov_cimguiname"] = "ImGuiWindow_CalcFontSize" defs["ImGuiWindow_CalcFontSize"][1]["ret"] = "float" defs["ImGuiWindow_CalcFontSize"][1]["signature"] = "()const" @@ -7974,8 +8503,8 @@ defs["ImGuiWindow_GetID"][1]["cimguiname"] = "ImGuiWindow_GetID" defs["ImGuiWindow_GetID"][1]["defaults"] = {} defs["ImGuiWindow_GetID"][1]["defaults"]["str_end"] = "NULL" defs["ImGuiWindow_GetID"][1]["funcname"] = "GetID" -defs["ImGuiWindow_GetID"][1]["location"] = "imgui_internal:2275" -defs["ImGuiWindow_GetID"][1]["ov_cimguiname"] = "ImGuiWindow_GetIDStr" +defs["ImGuiWindow_GetID"][1]["location"] = "imgui_internal:2555" +defs["ImGuiWindow_GetID"][1]["ov_cimguiname"] = "ImGuiWindow_GetID_Str" defs["ImGuiWindow_GetID"][1]["ret"] = "ImGuiID" defs["ImGuiWindow_GetID"][1]["signature"] = "(const char*,const char*)" defs["ImGuiWindow_GetID"][1]["stname"] = "ImGuiWindow" @@ -7993,8 +8522,8 @@ defs["ImGuiWindow_GetID"][2]["call_args"] = "(ptr)" defs["ImGuiWindow_GetID"][2]["cimguiname"] = "ImGuiWindow_GetID" defs["ImGuiWindow_GetID"][2]["defaults"] = {} defs["ImGuiWindow_GetID"][2]["funcname"] = "GetID" -defs["ImGuiWindow_GetID"][2]["location"] = "imgui_internal:2276" -defs["ImGuiWindow_GetID"][2]["ov_cimguiname"] = "ImGuiWindow_GetIDPtr" +defs["ImGuiWindow_GetID"][2]["location"] = "imgui_internal:2556" +defs["ImGuiWindow_GetID"][2]["ov_cimguiname"] = "ImGuiWindow_GetID_Ptr" defs["ImGuiWindow_GetID"][2]["ret"] = "ImGuiID" defs["ImGuiWindow_GetID"][2]["signature"] = "(const void*)" defs["ImGuiWindow_GetID"][2]["stname"] = "ImGuiWindow" @@ -8012,8 +8541,8 @@ defs["ImGuiWindow_GetID"][3]["call_args"] = "(n)" defs["ImGuiWindow_GetID"][3]["cimguiname"] = "ImGuiWindow_GetID" defs["ImGuiWindow_GetID"][3]["defaults"] = {} defs["ImGuiWindow_GetID"][3]["funcname"] = "GetID" -defs["ImGuiWindow_GetID"][3]["location"] = "imgui_internal:2277" -defs["ImGuiWindow_GetID"][3]["ov_cimguiname"] = "ImGuiWindow_GetIDInt" +defs["ImGuiWindow_GetID"][3]["location"] = "imgui_internal:2557" +defs["ImGuiWindow_GetID"][3]["ov_cimguiname"] = "ImGuiWindow_GetID_Int" defs["ImGuiWindow_GetID"][3]["ret"] = "ImGuiID" defs["ImGuiWindow_GetID"][3]["signature"] = "(int)" defs["ImGuiWindow_GetID"][3]["stname"] = "ImGuiWindow" @@ -8035,77 +8564,12 @@ defs["ImGuiWindow_GetIDFromRectangle"][1]["call_args"] = "(r_abs)" defs["ImGuiWindow_GetIDFromRectangle"][1]["cimguiname"] = "ImGuiWindow_GetIDFromRectangle" defs["ImGuiWindow_GetIDFromRectangle"][1]["defaults"] = {} defs["ImGuiWindow_GetIDFromRectangle"][1]["funcname"] = "GetIDFromRectangle" -defs["ImGuiWindow_GetIDFromRectangle"][1]["location"] = "imgui_internal:2281" +defs["ImGuiWindow_GetIDFromRectangle"][1]["location"] = "imgui_internal:2558" defs["ImGuiWindow_GetIDFromRectangle"][1]["ov_cimguiname"] = "ImGuiWindow_GetIDFromRectangle" defs["ImGuiWindow_GetIDFromRectangle"][1]["ret"] = "ImGuiID" defs["ImGuiWindow_GetIDFromRectangle"][1]["signature"] = "(const ImRect)" defs["ImGuiWindow_GetIDFromRectangle"][1]["stname"] = "ImGuiWindow" defs["ImGuiWindow_GetIDFromRectangle"]["(const ImRect)"] = defs["ImGuiWindow_GetIDFromRectangle"][1] -defs["ImGuiWindow_GetIDNoKeepAlive"] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][1] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["args"] = "(ImGuiWindow* self,const char* str,const char* str_end)" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"][1] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"][1]["name"] = "self" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"][1]["type"] = "ImGuiWindow*" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"][2] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"][2]["name"] = "str" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"][2]["type"] = "const char*" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"][3] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"][3]["name"] = "str_end" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsT"][3]["type"] = "const char*" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["argsoriginal"] = "(const char* str,const char* str_end=((void*)0))" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["call_args"] = "(str,str_end)" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["cimguiname"] = "ImGuiWindow_GetIDNoKeepAlive" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["defaults"] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["defaults"]["str_end"] = "NULL" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["funcname"] = "GetIDNoKeepAlive" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["location"] = "imgui_internal:2278" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["ov_cimguiname"] = "ImGuiWindow_GetIDNoKeepAliveStr" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["ret"] = "ImGuiID" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["signature"] = "(const char*,const char*)" -defs["ImGuiWindow_GetIDNoKeepAlive"][1]["stname"] = "ImGuiWindow" -defs["ImGuiWindow_GetIDNoKeepAlive"][2] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["args"] = "(ImGuiWindow* self,const void* ptr)" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["argsT"] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["argsT"][1] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["argsT"][1]["name"] = "self" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["argsT"][1]["type"] = "ImGuiWindow*" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["argsT"][2] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["argsT"][2]["name"] = "ptr" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["argsT"][2]["type"] = "const void*" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["argsoriginal"] = "(const void* ptr)" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["call_args"] = "(ptr)" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["cimguiname"] = "ImGuiWindow_GetIDNoKeepAlive" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["defaults"] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["funcname"] = "GetIDNoKeepAlive" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["location"] = "imgui_internal:2279" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["ov_cimguiname"] = "ImGuiWindow_GetIDNoKeepAlivePtr" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["ret"] = "ImGuiID" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["signature"] = "(const void*)" -defs["ImGuiWindow_GetIDNoKeepAlive"][2]["stname"] = "ImGuiWindow" -defs["ImGuiWindow_GetIDNoKeepAlive"][3] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["args"] = "(ImGuiWindow* self,int n)" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["argsT"] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["argsT"][1] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["argsT"][1]["name"] = "self" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["argsT"][1]["type"] = "ImGuiWindow*" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["argsT"][2] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["argsT"][2]["name"] = "n" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["argsT"][2]["type"] = "int" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["argsoriginal"] = "(int n)" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["call_args"] = "(n)" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["cimguiname"] = "ImGuiWindow_GetIDNoKeepAlive" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["defaults"] = {} -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["funcname"] = "GetIDNoKeepAlive" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["location"] = "imgui_internal:2280" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["ov_cimguiname"] = "ImGuiWindow_GetIDNoKeepAliveInt" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["ret"] = "ImGuiID" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["signature"] = "(int)" -defs["ImGuiWindow_GetIDNoKeepAlive"][3]["stname"] = "ImGuiWindow" -defs["ImGuiWindow_GetIDNoKeepAlive"]["(const char*,const char*)"] = defs["ImGuiWindow_GetIDNoKeepAlive"][1] -defs["ImGuiWindow_GetIDNoKeepAlive"]["(const void*)"] = defs["ImGuiWindow_GetIDNoKeepAlive"][2] -defs["ImGuiWindow_GetIDNoKeepAlive"]["(int)"] = defs["ImGuiWindow_GetIDNoKeepAlive"][3] defs["ImGuiWindow_ImGuiWindow"] = {} defs["ImGuiWindow_ImGuiWindow"][1] = {} defs["ImGuiWindow_ImGuiWindow"][1]["args"] = "(ImGuiContext* context,const char* name)" @@ -8122,7 +8586,7 @@ defs["ImGuiWindow_ImGuiWindow"][1]["cimguiname"] = "ImGuiWindow_ImGuiWindow" defs["ImGuiWindow_ImGuiWindow"][1]["constructor"] = true defs["ImGuiWindow_ImGuiWindow"][1]["defaults"] = {} defs["ImGuiWindow_ImGuiWindow"][1]["funcname"] = "ImGuiWindow" -defs["ImGuiWindow_ImGuiWindow"][1]["location"] = "imgui_internal:2271" +defs["ImGuiWindow_ImGuiWindow"][1]["location"] = "imgui_internal:2551" defs["ImGuiWindow_ImGuiWindow"][1]["ov_cimguiname"] = "ImGuiWindow_ImGuiWindow" defs["ImGuiWindow_ImGuiWindow"][1]["signature"] = "(ImGuiContext*,const char*)" defs["ImGuiWindow_ImGuiWindow"][1]["stname"] = "ImGuiWindow" @@ -8139,7 +8603,7 @@ defs["ImGuiWindow_MenuBarHeight"][1]["call_args"] = "()" defs["ImGuiWindow_MenuBarHeight"][1]["cimguiname"] = "ImGuiWindow_MenuBarHeight" defs["ImGuiWindow_MenuBarHeight"][1]["defaults"] = {} defs["ImGuiWindow_MenuBarHeight"][1]["funcname"] = "MenuBarHeight" -defs["ImGuiWindow_MenuBarHeight"][1]["location"] = "imgui_internal:2288" +defs["ImGuiWindow_MenuBarHeight"][1]["location"] = "imgui_internal:2565" defs["ImGuiWindow_MenuBarHeight"][1]["ov_cimguiname"] = "ImGuiWindow_MenuBarHeight" defs["ImGuiWindow_MenuBarHeight"][1]["ret"] = "float" defs["ImGuiWindow_MenuBarHeight"][1]["signature"] = "()const" @@ -8160,7 +8624,7 @@ defs["ImGuiWindow_MenuBarRect"][1]["call_args"] = "()" defs["ImGuiWindow_MenuBarRect"][1]["cimguiname"] = "ImGuiWindow_MenuBarRect" defs["ImGuiWindow_MenuBarRect"][1]["defaults"] = {} defs["ImGuiWindow_MenuBarRect"][1]["funcname"] = "MenuBarRect" -defs["ImGuiWindow_MenuBarRect"][1]["location"] = "imgui_internal:2289" +defs["ImGuiWindow_MenuBarRect"][1]["location"] = "imgui_internal:2566" defs["ImGuiWindow_MenuBarRect"][1]["nonUDT"] = 1 defs["ImGuiWindow_MenuBarRect"][1]["ov_cimguiname"] = "ImGuiWindow_MenuBarRect" defs["ImGuiWindow_MenuBarRect"][1]["ret"] = "void" @@ -8182,7 +8646,7 @@ defs["ImGuiWindow_Rect"][1]["call_args"] = "()" defs["ImGuiWindow_Rect"][1]["cimguiname"] = "ImGuiWindow_Rect" defs["ImGuiWindow_Rect"][1]["defaults"] = {} defs["ImGuiWindow_Rect"][1]["funcname"] = "Rect" -defs["ImGuiWindow_Rect"][1]["location"] = "imgui_internal:2284" +defs["ImGuiWindow_Rect"][1]["location"] = "imgui_internal:2561" defs["ImGuiWindow_Rect"][1]["nonUDT"] = 1 defs["ImGuiWindow_Rect"][1]["ov_cimguiname"] = "ImGuiWindow_Rect" defs["ImGuiWindow_Rect"][1]["ret"] = "void" @@ -8201,7 +8665,7 @@ defs["ImGuiWindow_TitleBarHeight"][1]["call_args"] = "()" defs["ImGuiWindow_TitleBarHeight"][1]["cimguiname"] = "ImGuiWindow_TitleBarHeight" defs["ImGuiWindow_TitleBarHeight"][1]["defaults"] = {} defs["ImGuiWindow_TitleBarHeight"][1]["funcname"] = "TitleBarHeight" -defs["ImGuiWindow_TitleBarHeight"][1]["location"] = "imgui_internal:2286" +defs["ImGuiWindow_TitleBarHeight"][1]["location"] = "imgui_internal:2563" defs["ImGuiWindow_TitleBarHeight"][1]["ov_cimguiname"] = "ImGuiWindow_TitleBarHeight" defs["ImGuiWindow_TitleBarHeight"][1]["ret"] = "float" defs["ImGuiWindow_TitleBarHeight"][1]["signature"] = "()const" @@ -8222,7 +8686,7 @@ defs["ImGuiWindow_TitleBarRect"][1]["call_args"] = "()" defs["ImGuiWindow_TitleBarRect"][1]["cimguiname"] = "ImGuiWindow_TitleBarRect" defs["ImGuiWindow_TitleBarRect"][1]["defaults"] = {} defs["ImGuiWindow_TitleBarRect"][1]["funcname"] = "TitleBarRect" -defs["ImGuiWindow_TitleBarRect"][1]["location"] = "imgui_internal:2287" +defs["ImGuiWindow_TitleBarRect"][1]["location"] = "imgui_internal:2564" defs["ImGuiWindow_TitleBarRect"][1]["nonUDT"] = 1 defs["ImGuiWindow_TitleBarRect"][1]["ov_cimguiname"] = "ImGuiWindow_TitleBarRect" defs["ImGuiWindow_TitleBarRect"][1]["ret"] = "void" @@ -8240,7 +8704,7 @@ defs["ImGuiWindow_destroy"][1]["call_args"] = "(self)" defs["ImGuiWindow_destroy"][1]["cimguiname"] = "ImGuiWindow_destroy" defs["ImGuiWindow_destroy"][1]["defaults"] = {} defs["ImGuiWindow_destroy"][1]["destructor"] = true -defs["ImGuiWindow_destroy"][1]["location"] = "imgui_internal:2273" +defs["ImGuiWindow_destroy"][1]["location"] = "imgui_internal:2553" defs["ImGuiWindow_destroy"][1]["ov_cimguiname"] = "ImGuiWindow_destroy" defs["ImGuiWindow_destroy"][1]["realdestructor"] = true defs["ImGuiWindow_destroy"][1]["ret"] = "void" @@ -8259,7 +8723,7 @@ defs["ImPool_Add"][1]["call_args"] = "()" defs["ImPool_Add"][1]["cimguiname"] = "ImPool_Add" defs["ImPool_Add"][1]["defaults"] = {} defs["ImPool_Add"][1]["funcname"] = "Add" -defs["ImPool_Add"][1]["location"] = "imgui_internal:651" +defs["ImPool_Add"][1]["location"] = "imgui_internal:674" defs["ImPool_Add"][1]["ov_cimguiname"] = "ImPool_Add" defs["ImPool_Add"][1]["ret"] = "T*" defs["ImPool_Add"][1]["signature"] = "()" @@ -8278,7 +8742,7 @@ defs["ImPool_Clear"][1]["call_args"] = "()" defs["ImPool_Clear"][1]["cimguiname"] = "ImPool_Clear" defs["ImPool_Clear"][1]["defaults"] = {} defs["ImPool_Clear"][1]["funcname"] = "Clear" -defs["ImPool_Clear"][1]["location"] = "imgui_internal:650" +defs["ImPool_Clear"][1]["location"] = "imgui_internal:673" defs["ImPool_Clear"][1]["ov_cimguiname"] = "ImPool_Clear" defs["ImPool_Clear"][1]["ret"] = "void" defs["ImPool_Clear"][1]["signature"] = "()" @@ -8300,7 +8764,7 @@ defs["ImPool_Contains"][1]["call_args"] = "(p)" defs["ImPool_Contains"][1]["cimguiname"] = "ImPool_Contains" defs["ImPool_Contains"][1]["defaults"] = {} defs["ImPool_Contains"][1]["funcname"] = "Contains" -defs["ImPool_Contains"][1]["location"] = "imgui_internal:649" +defs["ImPool_Contains"][1]["location"] = "imgui_internal:672" defs["ImPool_Contains"][1]["ov_cimguiname"] = "ImPool_Contains" defs["ImPool_Contains"][1]["ret"] = "bool" defs["ImPool_Contains"][1]["signature"] = "(const T*)const" @@ -8319,7 +8783,7 @@ defs["ImPool_GetAliveCount"][1]["call_args"] = "()" defs["ImPool_GetAliveCount"][1]["cimguiname"] = "ImPool_GetAliveCount" defs["ImPool_GetAliveCount"][1]["defaults"] = {} defs["ImPool_GetAliveCount"][1]["funcname"] = "GetAliveCount" -defs["ImPool_GetAliveCount"][1]["location"] = "imgui_internal:658" +defs["ImPool_GetAliveCount"][1]["location"] = "imgui_internal:681" defs["ImPool_GetAliveCount"][1]["ov_cimguiname"] = "ImPool_GetAliveCount" defs["ImPool_GetAliveCount"][1]["ret"] = "int" defs["ImPool_GetAliveCount"][1]["signature"] = "()const" @@ -8338,7 +8802,7 @@ defs["ImPool_GetBufSize"][1]["call_args"] = "()" defs["ImPool_GetBufSize"][1]["cimguiname"] = "ImPool_GetBufSize" defs["ImPool_GetBufSize"][1]["defaults"] = {} defs["ImPool_GetBufSize"][1]["funcname"] = "GetBufSize" -defs["ImPool_GetBufSize"][1]["location"] = "imgui_internal:659" +defs["ImPool_GetBufSize"][1]["location"] = "imgui_internal:682" defs["ImPool_GetBufSize"][1]["ov_cimguiname"] = "ImPool_GetBufSize" defs["ImPool_GetBufSize"][1]["ret"] = "int" defs["ImPool_GetBufSize"][1]["signature"] = "()const" @@ -8360,7 +8824,7 @@ defs["ImPool_GetByIndex"][1]["call_args"] = "(n)" defs["ImPool_GetByIndex"][1]["cimguiname"] = "ImPool_GetByIndex" defs["ImPool_GetByIndex"][1]["defaults"] = {} defs["ImPool_GetByIndex"][1]["funcname"] = "GetByIndex" -defs["ImPool_GetByIndex"][1]["location"] = "imgui_internal:646" +defs["ImPool_GetByIndex"][1]["location"] = "imgui_internal:669" defs["ImPool_GetByIndex"][1]["ov_cimguiname"] = "ImPool_GetByIndex" defs["ImPool_GetByIndex"][1]["ret"] = "T*" defs["ImPool_GetByIndex"][1]["signature"] = "(ImPoolIdx)" @@ -8382,7 +8846,7 @@ defs["ImPool_GetByKey"][1]["call_args"] = "(key)" defs["ImPool_GetByKey"][1]["cimguiname"] = "ImPool_GetByKey" defs["ImPool_GetByKey"][1]["defaults"] = {} defs["ImPool_GetByKey"][1]["funcname"] = "GetByKey" -defs["ImPool_GetByKey"][1]["location"] = "imgui_internal:645" +defs["ImPool_GetByKey"][1]["location"] = "imgui_internal:668" defs["ImPool_GetByKey"][1]["ov_cimguiname"] = "ImPool_GetByKey" defs["ImPool_GetByKey"][1]["ret"] = "T*" defs["ImPool_GetByKey"][1]["signature"] = "(ImGuiID)" @@ -8404,7 +8868,7 @@ defs["ImPool_GetIndex"][1]["call_args"] = "(p)" defs["ImPool_GetIndex"][1]["cimguiname"] = "ImPool_GetIndex" defs["ImPool_GetIndex"][1]["defaults"] = {} defs["ImPool_GetIndex"][1]["funcname"] = "GetIndex" -defs["ImPool_GetIndex"][1]["location"] = "imgui_internal:647" +defs["ImPool_GetIndex"][1]["location"] = "imgui_internal:670" defs["ImPool_GetIndex"][1]["ov_cimguiname"] = "ImPool_GetIndex" defs["ImPool_GetIndex"][1]["ret"] = "ImPoolIdx" defs["ImPool_GetIndex"][1]["signature"] = "(const T*)const" @@ -8423,7 +8887,7 @@ defs["ImPool_GetMapSize"][1]["call_args"] = "()" defs["ImPool_GetMapSize"][1]["cimguiname"] = "ImPool_GetMapSize" defs["ImPool_GetMapSize"][1]["defaults"] = {} defs["ImPool_GetMapSize"][1]["funcname"] = "GetMapSize" -defs["ImPool_GetMapSize"][1]["location"] = "imgui_internal:660" +defs["ImPool_GetMapSize"][1]["location"] = "imgui_internal:683" defs["ImPool_GetMapSize"][1]["ov_cimguiname"] = "ImPool_GetMapSize" defs["ImPool_GetMapSize"][1]["ret"] = "int" defs["ImPool_GetMapSize"][1]["signature"] = "()const" @@ -8445,7 +8909,7 @@ defs["ImPool_GetOrAddByKey"][1]["call_args"] = "(key)" defs["ImPool_GetOrAddByKey"][1]["cimguiname"] = "ImPool_GetOrAddByKey" defs["ImPool_GetOrAddByKey"][1]["defaults"] = {} defs["ImPool_GetOrAddByKey"][1]["funcname"] = "GetOrAddByKey" -defs["ImPool_GetOrAddByKey"][1]["location"] = "imgui_internal:648" +defs["ImPool_GetOrAddByKey"][1]["location"] = "imgui_internal:671" defs["ImPool_GetOrAddByKey"][1]["ov_cimguiname"] = "ImPool_GetOrAddByKey" defs["ImPool_GetOrAddByKey"][1]["ret"] = "T*" defs["ImPool_GetOrAddByKey"][1]["signature"] = "(ImGuiID)" @@ -8462,7 +8926,7 @@ defs["ImPool_ImPool"][1]["cimguiname"] = "ImPool_ImPool" defs["ImPool_ImPool"][1]["constructor"] = true defs["ImPool_ImPool"][1]["defaults"] = {} defs["ImPool_ImPool"][1]["funcname"] = "ImPool" -defs["ImPool_ImPool"][1]["location"] = "imgui_internal:643" +defs["ImPool_ImPool"][1]["location"] = "imgui_internal:666" defs["ImPool_ImPool"][1]["ov_cimguiname"] = "ImPool_ImPool" defs["ImPool_ImPool"][1]["signature"] = "()" defs["ImPool_ImPool"][1]["stname"] = "ImPool" @@ -8486,8 +8950,8 @@ defs["ImPool_Remove"][1]["call_args"] = "(key,p)" defs["ImPool_Remove"][1]["cimguiname"] = "ImPool_Remove" defs["ImPool_Remove"][1]["defaults"] = {} defs["ImPool_Remove"][1]["funcname"] = "Remove" -defs["ImPool_Remove"][1]["location"] = "imgui_internal:652" -defs["ImPool_Remove"][1]["ov_cimguiname"] = "ImPool_RemoveTPtr" +defs["ImPool_Remove"][1]["location"] = "imgui_internal:675" +defs["ImPool_Remove"][1]["ov_cimguiname"] = "ImPool_Remove_TPtr" defs["ImPool_Remove"][1]["ret"] = "void" defs["ImPool_Remove"][1]["signature"] = "(ImGuiID,const T*)" defs["ImPool_Remove"][1]["stname"] = "ImPool" @@ -8509,8 +8973,8 @@ defs["ImPool_Remove"][2]["call_args"] = "(key,idx)" defs["ImPool_Remove"][2]["cimguiname"] = "ImPool_Remove" defs["ImPool_Remove"][2]["defaults"] = {} defs["ImPool_Remove"][2]["funcname"] = "Remove" -defs["ImPool_Remove"][2]["location"] = "imgui_internal:653" -defs["ImPool_Remove"][2]["ov_cimguiname"] = "ImPool_RemovePoolIdx" +defs["ImPool_Remove"][2]["location"] = "imgui_internal:676" +defs["ImPool_Remove"][2]["ov_cimguiname"] = "ImPool_Remove_PoolIdx" defs["ImPool_Remove"][2]["ret"] = "void" defs["ImPool_Remove"][2]["signature"] = "(ImGuiID,ImPoolIdx)" defs["ImPool_Remove"][2]["stname"] = "ImPool" @@ -8532,7 +8996,7 @@ defs["ImPool_Reserve"][1]["call_args"] = "(capacity)" defs["ImPool_Reserve"][1]["cimguiname"] = "ImPool_Reserve" defs["ImPool_Reserve"][1]["defaults"] = {} defs["ImPool_Reserve"][1]["funcname"] = "Reserve" -defs["ImPool_Reserve"][1]["location"] = "imgui_internal:654" +defs["ImPool_Reserve"][1]["location"] = "imgui_internal:677" defs["ImPool_Reserve"][1]["ov_cimguiname"] = "ImPool_Reserve" defs["ImPool_Reserve"][1]["ret"] = "void" defs["ImPool_Reserve"][1]["signature"] = "(int)" @@ -8554,7 +9018,7 @@ defs["ImPool_TryGetMapData"][1]["call_args"] = "(n)" defs["ImPool_TryGetMapData"][1]["cimguiname"] = "ImPool_TryGetMapData" defs["ImPool_TryGetMapData"][1]["defaults"] = {} defs["ImPool_TryGetMapData"][1]["funcname"] = "TryGetMapData" -defs["ImPool_TryGetMapData"][1]["location"] = "imgui_internal:661" +defs["ImPool_TryGetMapData"][1]["location"] = "imgui_internal:684" defs["ImPool_TryGetMapData"][1]["ov_cimguiname"] = "ImPool_TryGetMapData" defs["ImPool_TryGetMapData"][1]["ret"] = "T*" defs["ImPool_TryGetMapData"][1]["signature"] = "(ImPoolIdx)" @@ -8572,7 +9036,7 @@ defs["ImPool_destroy"][1]["call_args"] = "(self)" defs["ImPool_destroy"][1]["cimguiname"] = "ImPool_destroy" defs["ImPool_destroy"][1]["defaults"] = {} defs["ImPool_destroy"][1]["destructor"] = true -defs["ImPool_destroy"][1]["location"] = "imgui_internal:644" +defs["ImPool_destroy"][1]["location"] = "imgui_internal:667" defs["ImPool_destroy"][1]["ov_cimguiname"] = "ImPool_destroy" defs["ImPool_destroy"][1]["realdestructor"] = true defs["ImPool_destroy"][1]["ret"] = "void" @@ -8595,8 +9059,8 @@ defs["ImRect_Add"][1]["call_args"] = "(p)" defs["ImRect_Add"][1]["cimguiname"] = "ImRect_Add" defs["ImRect_Add"][1]["defaults"] = {} defs["ImRect_Add"][1]["funcname"] = "Add" -defs["ImRect_Add"][1]["location"] = "imgui_internal:521" -defs["ImRect_Add"][1]["ov_cimguiname"] = "ImRect_AddVec2" +defs["ImRect_Add"][1]["location"] = "imgui_internal:543" +defs["ImRect_Add"][1]["ov_cimguiname"] = "ImRect_Add_Vec2" defs["ImRect_Add"][1]["ret"] = "void" defs["ImRect_Add"][1]["signature"] = "(const ImVec2)" defs["ImRect_Add"][1]["stname"] = "ImRect" @@ -8614,8 +9078,8 @@ defs["ImRect_Add"][2]["call_args"] = "(r)" defs["ImRect_Add"][2]["cimguiname"] = "ImRect_Add" defs["ImRect_Add"][2]["defaults"] = {} defs["ImRect_Add"][2]["funcname"] = "Add" -defs["ImRect_Add"][2]["location"] = "imgui_internal:522" -defs["ImRect_Add"][2]["ov_cimguiname"] = "ImRect_AddRect" +defs["ImRect_Add"][2]["location"] = "imgui_internal:544" +defs["ImRect_Add"][2]["ov_cimguiname"] = "ImRect_Add_Rect" defs["ImRect_Add"][2]["ret"] = "void" defs["ImRect_Add"][2]["signature"] = "(const ImRect)" defs["ImRect_Add"][2]["stname"] = "ImRect" @@ -8636,7 +9100,7 @@ defs["ImRect_ClipWith"][1]["call_args"] = "(r)" defs["ImRect_ClipWith"][1]["cimguiname"] = "ImRect_ClipWith" defs["ImRect_ClipWith"][1]["defaults"] = {} defs["ImRect_ClipWith"][1]["funcname"] = "ClipWith" -defs["ImRect_ClipWith"][1]["location"] = "imgui_internal:528" +defs["ImRect_ClipWith"][1]["location"] = "imgui_internal:550" defs["ImRect_ClipWith"][1]["ov_cimguiname"] = "ImRect_ClipWith" defs["ImRect_ClipWith"][1]["ret"] = "void" defs["ImRect_ClipWith"][1]["signature"] = "(const ImRect)" @@ -8657,7 +9121,7 @@ defs["ImRect_ClipWithFull"][1]["call_args"] = "(r)" defs["ImRect_ClipWithFull"][1]["cimguiname"] = "ImRect_ClipWithFull" defs["ImRect_ClipWithFull"][1]["defaults"] = {} defs["ImRect_ClipWithFull"][1]["funcname"] = "ClipWithFull" -defs["ImRect_ClipWithFull"][1]["location"] = "imgui_internal:529" +defs["ImRect_ClipWithFull"][1]["location"] = "imgui_internal:551" defs["ImRect_ClipWithFull"][1]["ov_cimguiname"] = "ImRect_ClipWithFull" defs["ImRect_ClipWithFull"][1]["ret"] = "void" defs["ImRect_ClipWithFull"][1]["signature"] = "(const ImRect)" @@ -8678,8 +9142,8 @@ defs["ImRect_Contains"][1]["call_args"] = "(p)" defs["ImRect_Contains"][1]["cimguiname"] = "ImRect_Contains" defs["ImRect_Contains"][1]["defaults"] = {} defs["ImRect_Contains"][1]["funcname"] = "Contains" -defs["ImRect_Contains"][1]["location"] = "imgui_internal:518" -defs["ImRect_Contains"][1]["ov_cimguiname"] = "ImRect_ContainsVec2" +defs["ImRect_Contains"][1]["location"] = "imgui_internal:540" +defs["ImRect_Contains"][1]["ov_cimguiname"] = "ImRect_Contains_Vec2" defs["ImRect_Contains"][1]["ret"] = "bool" defs["ImRect_Contains"][1]["signature"] = "(const ImVec2)const" defs["ImRect_Contains"][1]["stname"] = "ImRect" @@ -8697,8 +9161,8 @@ defs["ImRect_Contains"][2]["call_args"] = "(r)" defs["ImRect_Contains"][2]["cimguiname"] = "ImRect_Contains" defs["ImRect_Contains"][2]["defaults"] = {} defs["ImRect_Contains"][2]["funcname"] = "Contains" -defs["ImRect_Contains"][2]["location"] = "imgui_internal:519" -defs["ImRect_Contains"][2]["ov_cimguiname"] = "ImRect_ContainsRect" +defs["ImRect_Contains"][2]["location"] = "imgui_internal:541" +defs["ImRect_Contains"][2]["ov_cimguiname"] = "ImRect_Contains_Rect" defs["ImRect_Contains"][2]["ret"] = "bool" defs["ImRect_Contains"][2]["signature"] = "(const ImRect)const" defs["ImRect_Contains"][2]["stname"] = "ImRect" @@ -8719,8 +9183,8 @@ defs["ImRect_Expand"][1]["call_args"] = "(amount)" defs["ImRect_Expand"][1]["cimguiname"] = "ImRect_Expand" defs["ImRect_Expand"][1]["defaults"] = {} defs["ImRect_Expand"][1]["funcname"] = "Expand" -defs["ImRect_Expand"][1]["location"] = "imgui_internal:523" -defs["ImRect_Expand"][1]["ov_cimguiname"] = "ImRect_ExpandFloat" +defs["ImRect_Expand"][1]["location"] = "imgui_internal:545" +defs["ImRect_Expand"][1]["ov_cimguiname"] = "ImRect_Expand_Float" defs["ImRect_Expand"][1]["ret"] = "void" defs["ImRect_Expand"][1]["signature"] = "(const float)" defs["ImRect_Expand"][1]["stname"] = "ImRect" @@ -8738,8 +9202,8 @@ defs["ImRect_Expand"][2]["call_args"] = "(amount)" defs["ImRect_Expand"][2]["cimguiname"] = "ImRect_Expand" defs["ImRect_Expand"][2]["defaults"] = {} defs["ImRect_Expand"][2]["funcname"] = "Expand" -defs["ImRect_Expand"][2]["location"] = "imgui_internal:524" -defs["ImRect_Expand"][2]["ov_cimguiname"] = "ImRect_ExpandVec2" +defs["ImRect_Expand"][2]["location"] = "imgui_internal:546" +defs["ImRect_Expand"][2]["ov_cimguiname"] = "ImRect_Expand_Vec2" defs["ImRect_Expand"][2]["ret"] = "void" defs["ImRect_Expand"][2]["signature"] = "(const ImVec2)" defs["ImRect_Expand"][2]["stname"] = "ImRect" @@ -8757,7 +9221,7 @@ defs["ImRect_Floor"][1]["call_args"] = "()" defs["ImRect_Floor"][1]["cimguiname"] = "ImRect_Floor" defs["ImRect_Floor"][1]["defaults"] = {} defs["ImRect_Floor"][1]["funcname"] = "Floor" -defs["ImRect_Floor"][1]["location"] = "imgui_internal:530" +defs["ImRect_Floor"][1]["location"] = "imgui_internal:552" defs["ImRect_Floor"][1]["ov_cimguiname"] = "ImRect_Floor" defs["ImRect_Floor"][1]["ret"] = "void" defs["ImRect_Floor"][1]["signature"] = "()" @@ -8775,7 +9239,7 @@ defs["ImRect_GetArea"][1]["call_args"] = "()" defs["ImRect_GetArea"][1]["cimguiname"] = "ImRect_GetArea" defs["ImRect_GetArea"][1]["defaults"] = {} defs["ImRect_GetArea"][1]["funcname"] = "GetArea" -defs["ImRect_GetArea"][1]["location"] = "imgui_internal:513" +defs["ImRect_GetArea"][1]["location"] = "imgui_internal:535" defs["ImRect_GetArea"][1]["ov_cimguiname"] = "ImRect_GetArea" defs["ImRect_GetArea"][1]["ret"] = "float" defs["ImRect_GetArea"][1]["signature"] = "()const" @@ -8796,7 +9260,7 @@ defs["ImRect_GetBL"][1]["call_args"] = "()" defs["ImRect_GetBL"][1]["cimguiname"] = "ImRect_GetBL" defs["ImRect_GetBL"][1]["defaults"] = {} defs["ImRect_GetBL"][1]["funcname"] = "GetBL" -defs["ImRect_GetBL"][1]["location"] = "imgui_internal:516" +defs["ImRect_GetBL"][1]["location"] = "imgui_internal:538" defs["ImRect_GetBL"][1]["nonUDT"] = 1 defs["ImRect_GetBL"][1]["ov_cimguiname"] = "ImRect_GetBL" defs["ImRect_GetBL"][1]["ret"] = "void" @@ -8818,7 +9282,7 @@ defs["ImRect_GetBR"][1]["call_args"] = "()" defs["ImRect_GetBR"][1]["cimguiname"] = "ImRect_GetBR" defs["ImRect_GetBR"][1]["defaults"] = {} defs["ImRect_GetBR"][1]["funcname"] = "GetBR" -defs["ImRect_GetBR"][1]["location"] = "imgui_internal:517" +defs["ImRect_GetBR"][1]["location"] = "imgui_internal:539" defs["ImRect_GetBR"][1]["nonUDT"] = 1 defs["ImRect_GetBR"][1]["ov_cimguiname"] = "ImRect_GetBR" defs["ImRect_GetBR"][1]["ret"] = "void" @@ -8840,7 +9304,7 @@ defs["ImRect_GetCenter"][1]["call_args"] = "()" defs["ImRect_GetCenter"][1]["cimguiname"] = "ImRect_GetCenter" defs["ImRect_GetCenter"][1]["defaults"] = {} defs["ImRect_GetCenter"][1]["funcname"] = "GetCenter" -defs["ImRect_GetCenter"][1]["location"] = "imgui_internal:509" +defs["ImRect_GetCenter"][1]["location"] = "imgui_internal:531" defs["ImRect_GetCenter"][1]["nonUDT"] = 1 defs["ImRect_GetCenter"][1]["ov_cimguiname"] = "ImRect_GetCenter" defs["ImRect_GetCenter"][1]["ret"] = "void" @@ -8859,7 +9323,7 @@ defs["ImRect_GetHeight"][1]["call_args"] = "()" defs["ImRect_GetHeight"][1]["cimguiname"] = "ImRect_GetHeight" defs["ImRect_GetHeight"][1]["defaults"] = {} defs["ImRect_GetHeight"][1]["funcname"] = "GetHeight" -defs["ImRect_GetHeight"][1]["location"] = "imgui_internal:512" +defs["ImRect_GetHeight"][1]["location"] = "imgui_internal:534" defs["ImRect_GetHeight"][1]["ov_cimguiname"] = "ImRect_GetHeight" defs["ImRect_GetHeight"][1]["ret"] = "float" defs["ImRect_GetHeight"][1]["signature"] = "()const" @@ -8880,7 +9344,7 @@ defs["ImRect_GetSize"][1]["call_args"] = "()" defs["ImRect_GetSize"][1]["cimguiname"] = "ImRect_GetSize" defs["ImRect_GetSize"][1]["defaults"] = {} defs["ImRect_GetSize"][1]["funcname"] = "GetSize" -defs["ImRect_GetSize"][1]["location"] = "imgui_internal:510" +defs["ImRect_GetSize"][1]["location"] = "imgui_internal:532" defs["ImRect_GetSize"][1]["nonUDT"] = 1 defs["ImRect_GetSize"][1]["ov_cimguiname"] = "ImRect_GetSize" defs["ImRect_GetSize"][1]["ret"] = "void" @@ -8902,7 +9366,7 @@ defs["ImRect_GetTL"][1]["call_args"] = "()" defs["ImRect_GetTL"][1]["cimguiname"] = "ImRect_GetTL" defs["ImRect_GetTL"][1]["defaults"] = {} defs["ImRect_GetTL"][1]["funcname"] = "GetTL" -defs["ImRect_GetTL"][1]["location"] = "imgui_internal:514" +defs["ImRect_GetTL"][1]["location"] = "imgui_internal:536" defs["ImRect_GetTL"][1]["nonUDT"] = 1 defs["ImRect_GetTL"][1]["ov_cimguiname"] = "ImRect_GetTL" defs["ImRect_GetTL"][1]["ret"] = "void" @@ -8924,7 +9388,7 @@ defs["ImRect_GetTR"][1]["call_args"] = "()" defs["ImRect_GetTR"][1]["cimguiname"] = "ImRect_GetTR" defs["ImRect_GetTR"][1]["defaults"] = {} defs["ImRect_GetTR"][1]["funcname"] = "GetTR" -defs["ImRect_GetTR"][1]["location"] = "imgui_internal:515" +defs["ImRect_GetTR"][1]["location"] = "imgui_internal:537" defs["ImRect_GetTR"][1]["nonUDT"] = 1 defs["ImRect_GetTR"][1]["ov_cimguiname"] = "ImRect_GetTR" defs["ImRect_GetTR"][1]["ret"] = "void" @@ -8943,7 +9407,7 @@ defs["ImRect_GetWidth"][1]["call_args"] = "()" defs["ImRect_GetWidth"][1]["cimguiname"] = "ImRect_GetWidth" defs["ImRect_GetWidth"][1]["defaults"] = {} defs["ImRect_GetWidth"][1]["funcname"] = "GetWidth" -defs["ImRect_GetWidth"][1]["location"] = "imgui_internal:511" +defs["ImRect_GetWidth"][1]["location"] = "imgui_internal:533" defs["ImRect_GetWidth"][1]["ov_cimguiname"] = "ImRect_GetWidth" defs["ImRect_GetWidth"][1]["ret"] = "float" defs["ImRect_GetWidth"][1]["signature"] = "()const" @@ -8959,8 +9423,8 @@ defs["ImRect_ImRect"][1]["cimguiname"] = "ImRect_ImRect" defs["ImRect_ImRect"][1]["constructor"] = true defs["ImRect_ImRect"][1]["defaults"] = {} defs["ImRect_ImRect"][1]["funcname"] = "ImRect" -defs["ImRect_ImRect"][1]["location"] = "imgui_internal:504" -defs["ImRect_ImRect"][1]["ov_cimguiname"] = "ImRect_ImRectNil" +defs["ImRect_ImRect"][1]["location"] = "imgui_internal:526" +defs["ImRect_ImRect"][1]["ov_cimguiname"] = "ImRect_ImRect_Nil" defs["ImRect_ImRect"][1]["signature"] = "()" defs["ImRect_ImRect"][1]["stname"] = "ImRect" defs["ImRect_ImRect"][2] = {} @@ -8978,8 +9442,8 @@ defs["ImRect_ImRect"][2]["cimguiname"] = "ImRect_ImRect" defs["ImRect_ImRect"][2]["constructor"] = true defs["ImRect_ImRect"][2]["defaults"] = {} defs["ImRect_ImRect"][2]["funcname"] = "ImRect" -defs["ImRect_ImRect"][2]["location"] = "imgui_internal:505" -defs["ImRect_ImRect"][2]["ov_cimguiname"] = "ImRect_ImRectVec2" +defs["ImRect_ImRect"][2]["location"] = "imgui_internal:527" +defs["ImRect_ImRect"][2]["ov_cimguiname"] = "ImRect_ImRect_Vec2" defs["ImRect_ImRect"][2]["signature"] = "(const ImVec2,const ImVec2)" defs["ImRect_ImRect"][2]["stname"] = "ImRect" defs["ImRect_ImRect"][3] = {} @@ -8994,8 +9458,8 @@ defs["ImRect_ImRect"][3]["cimguiname"] = "ImRect_ImRect" defs["ImRect_ImRect"][3]["constructor"] = true defs["ImRect_ImRect"][3]["defaults"] = {} defs["ImRect_ImRect"][3]["funcname"] = "ImRect" -defs["ImRect_ImRect"][3]["location"] = "imgui_internal:506" -defs["ImRect_ImRect"][3]["ov_cimguiname"] = "ImRect_ImRectVec4" +defs["ImRect_ImRect"][3]["location"] = "imgui_internal:528" +defs["ImRect_ImRect"][3]["ov_cimguiname"] = "ImRect_ImRect_Vec4" defs["ImRect_ImRect"][3]["signature"] = "(const ImVec4)" defs["ImRect_ImRect"][3]["stname"] = "ImRect" defs["ImRect_ImRect"][4] = {} @@ -9019,8 +9483,8 @@ defs["ImRect_ImRect"][4]["cimguiname"] = "ImRect_ImRect" defs["ImRect_ImRect"][4]["constructor"] = true defs["ImRect_ImRect"][4]["defaults"] = {} defs["ImRect_ImRect"][4]["funcname"] = "ImRect" -defs["ImRect_ImRect"][4]["location"] = "imgui_internal:507" -defs["ImRect_ImRect"][4]["ov_cimguiname"] = "ImRect_ImRectFloat" +defs["ImRect_ImRect"][4]["location"] = "imgui_internal:529" +defs["ImRect_ImRect"][4]["ov_cimguiname"] = "ImRect_ImRect_Float" defs["ImRect_ImRect"][4]["signature"] = "(float,float,float,float)" defs["ImRect_ImRect"][4]["stname"] = "ImRect" defs["ImRect_ImRect"]["()"] = defs["ImRect_ImRect"][1] @@ -9039,7 +9503,7 @@ defs["ImRect_IsInverted"][1]["call_args"] = "()" defs["ImRect_IsInverted"][1]["cimguiname"] = "ImRect_IsInverted" defs["ImRect_IsInverted"][1]["defaults"] = {} defs["ImRect_IsInverted"][1]["funcname"] = "IsInverted" -defs["ImRect_IsInverted"][1]["location"] = "imgui_internal:531" +defs["ImRect_IsInverted"][1]["location"] = "imgui_internal:553" defs["ImRect_IsInverted"][1]["ov_cimguiname"] = "ImRect_IsInverted" defs["ImRect_IsInverted"][1]["ret"] = "bool" defs["ImRect_IsInverted"][1]["signature"] = "()const" @@ -9060,7 +9524,7 @@ defs["ImRect_Overlaps"][1]["call_args"] = "(r)" defs["ImRect_Overlaps"][1]["cimguiname"] = "ImRect_Overlaps" defs["ImRect_Overlaps"][1]["defaults"] = {} defs["ImRect_Overlaps"][1]["funcname"] = "Overlaps" -defs["ImRect_Overlaps"][1]["location"] = "imgui_internal:520" +defs["ImRect_Overlaps"][1]["location"] = "imgui_internal:542" defs["ImRect_Overlaps"][1]["ov_cimguiname"] = "ImRect_Overlaps" defs["ImRect_Overlaps"][1]["ret"] = "bool" defs["ImRect_Overlaps"][1]["signature"] = "(const ImRect)const" @@ -9081,7 +9545,7 @@ defs["ImRect_ToVec4"][1]["call_args"] = "()" defs["ImRect_ToVec4"][1]["cimguiname"] = "ImRect_ToVec4" defs["ImRect_ToVec4"][1]["defaults"] = {} defs["ImRect_ToVec4"][1]["funcname"] = "ToVec4" -defs["ImRect_ToVec4"][1]["location"] = "imgui_internal:532" +defs["ImRect_ToVec4"][1]["location"] = "imgui_internal:554" defs["ImRect_ToVec4"][1]["nonUDT"] = 1 defs["ImRect_ToVec4"][1]["ov_cimguiname"] = "ImRect_ToVec4" defs["ImRect_ToVec4"][1]["ret"] = "void" @@ -9103,7 +9567,7 @@ defs["ImRect_Translate"][1]["call_args"] = "(d)" defs["ImRect_Translate"][1]["cimguiname"] = "ImRect_Translate" defs["ImRect_Translate"][1]["defaults"] = {} defs["ImRect_Translate"][1]["funcname"] = "Translate" -defs["ImRect_Translate"][1]["location"] = "imgui_internal:525" +defs["ImRect_Translate"][1]["location"] = "imgui_internal:547" defs["ImRect_Translate"][1]["ov_cimguiname"] = "ImRect_Translate" defs["ImRect_Translate"][1]["ret"] = "void" defs["ImRect_Translate"][1]["signature"] = "(const ImVec2)" @@ -9124,7 +9588,7 @@ defs["ImRect_TranslateX"][1]["call_args"] = "(dx)" defs["ImRect_TranslateX"][1]["cimguiname"] = "ImRect_TranslateX" defs["ImRect_TranslateX"][1]["defaults"] = {} defs["ImRect_TranslateX"][1]["funcname"] = "TranslateX" -defs["ImRect_TranslateX"][1]["location"] = "imgui_internal:526" +defs["ImRect_TranslateX"][1]["location"] = "imgui_internal:548" defs["ImRect_TranslateX"][1]["ov_cimguiname"] = "ImRect_TranslateX" defs["ImRect_TranslateX"][1]["ret"] = "void" defs["ImRect_TranslateX"][1]["signature"] = "(float)" @@ -9145,7 +9609,7 @@ defs["ImRect_TranslateY"][1]["call_args"] = "(dy)" defs["ImRect_TranslateY"][1]["cimguiname"] = "ImRect_TranslateY" defs["ImRect_TranslateY"][1]["defaults"] = {} defs["ImRect_TranslateY"][1]["funcname"] = "TranslateY" -defs["ImRect_TranslateY"][1]["location"] = "imgui_internal:527" +defs["ImRect_TranslateY"][1]["location"] = "imgui_internal:549" defs["ImRect_TranslateY"][1]["ov_cimguiname"] = "ImRect_TranslateY" defs["ImRect_TranslateY"][1]["ret"] = "void" defs["ImRect_TranslateY"][1]["signature"] = "(float)" @@ -9179,7 +9643,7 @@ defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["call_args"] = "()" defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["cimguiname"] = "ImSpanAllocator_GetArenaSizeInBytes" defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["defaults"] = {} defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["funcname"] = "GetArenaSizeInBytes" -defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["location"] = "imgui_internal:623" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["location"] = "imgui_internal:646" defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["ov_cimguiname"] = "ImSpanAllocator_GetArenaSizeInBytes" defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["ret"] = "int" defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["signature"] = "()" @@ -9201,7 +9665,7 @@ defs["ImSpanAllocator_GetSpanPtrBegin"][1]["call_args"] = "(n)" defs["ImSpanAllocator_GetSpanPtrBegin"][1]["cimguiname"] = "ImSpanAllocator_GetSpanPtrBegin" defs["ImSpanAllocator_GetSpanPtrBegin"][1]["defaults"] = {} defs["ImSpanAllocator_GetSpanPtrBegin"][1]["funcname"] = "GetSpanPtrBegin" -defs["ImSpanAllocator_GetSpanPtrBegin"][1]["location"] = "imgui_internal:625" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["location"] = "imgui_internal:648" defs["ImSpanAllocator_GetSpanPtrBegin"][1]["ov_cimguiname"] = "ImSpanAllocator_GetSpanPtrBegin" defs["ImSpanAllocator_GetSpanPtrBegin"][1]["ret"] = "void*" defs["ImSpanAllocator_GetSpanPtrBegin"][1]["signature"] = "(int)" @@ -9223,7 +9687,7 @@ defs["ImSpanAllocator_GetSpanPtrEnd"][1]["call_args"] = "(n)" defs["ImSpanAllocator_GetSpanPtrEnd"][1]["cimguiname"] = "ImSpanAllocator_GetSpanPtrEnd" defs["ImSpanAllocator_GetSpanPtrEnd"][1]["defaults"] = {} defs["ImSpanAllocator_GetSpanPtrEnd"][1]["funcname"] = "GetSpanPtrEnd" -defs["ImSpanAllocator_GetSpanPtrEnd"][1]["location"] = "imgui_internal:626" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["location"] = "imgui_internal:649" defs["ImSpanAllocator_GetSpanPtrEnd"][1]["ov_cimguiname"] = "ImSpanAllocator_GetSpanPtrEnd" defs["ImSpanAllocator_GetSpanPtrEnd"][1]["ret"] = "void*" defs["ImSpanAllocator_GetSpanPtrEnd"][1]["signature"] = "(int)" @@ -9240,7 +9704,7 @@ defs["ImSpanAllocator_ImSpanAllocator"][1]["cimguiname"] = "ImSpanAllocator_ImSp defs["ImSpanAllocator_ImSpanAllocator"][1]["constructor"] = true defs["ImSpanAllocator_ImSpanAllocator"][1]["defaults"] = {} defs["ImSpanAllocator_ImSpanAllocator"][1]["funcname"] = "ImSpanAllocator" -defs["ImSpanAllocator_ImSpanAllocator"][1]["location"] = "imgui_internal:621" +defs["ImSpanAllocator_ImSpanAllocator"][1]["location"] = "imgui_internal:644" defs["ImSpanAllocator_ImSpanAllocator"][1]["ov_cimguiname"] = "ImSpanAllocator_ImSpanAllocator" defs["ImSpanAllocator_ImSpanAllocator"][1]["signature"] = "()" defs["ImSpanAllocator_ImSpanAllocator"][1]["stname"] = "ImSpanAllocator" @@ -9268,7 +9732,7 @@ defs["ImSpanAllocator_Reserve"][1]["cimguiname"] = "ImSpanAllocator_Reserve" defs["ImSpanAllocator_Reserve"][1]["defaults"] = {} defs["ImSpanAllocator_Reserve"][1]["defaults"]["a"] = "4" defs["ImSpanAllocator_Reserve"][1]["funcname"] = "Reserve" -defs["ImSpanAllocator_Reserve"][1]["location"] = "imgui_internal:622" +defs["ImSpanAllocator_Reserve"][1]["location"] = "imgui_internal:645" defs["ImSpanAllocator_Reserve"][1]["ov_cimguiname"] = "ImSpanAllocator_Reserve" defs["ImSpanAllocator_Reserve"][1]["ret"] = "void" defs["ImSpanAllocator_Reserve"][1]["signature"] = "(int,size_t,int)" @@ -9290,7 +9754,7 @@ defs["ImSpanAllocator_SetArenaBasePtr"][1]["call_args"] = "(base_ptr)" defs["ImSpanAllocator_SetArenaBasePtr"][1]["cimguiname"] = "ImSpanAllocator_SetArenaBasePtr" defs["ImSpanAllocator_SetArenaBasePtr"][1]["defaults"] = {} defs["ImSpanAllocator_SetArenaBasePtr"][1]["funcname"] = "SetArenaBasePtr" -defs["ImSpanAllocator_SetArenaBasePtr"][1]["location"] = "imgui_internal:624" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["location"] = "imgui_internal:647" defs["ImSpanAllocator_SetArenaBasePtr"][1]["ov_cimguiname"] = "ImSpanAllocator_SetArenaBasePtr" defs["ImSpanAllocator_SetArenaBasePtr"][1]["ret"] = "void" defs["ImSpanAllocator_SetArenaBasePtr"][1]["signature"] = "(void*)" @@ -9324,8 +9788,8 @@ defs["ImSpan_ImSpan"][1]["cimguiname"] = "ImSpan_ImSpan" defs["ImSpan_ImSpan"][1]["constructor"] = true defs["ImSpan_ImSpan"][1]["defaults"] = {} defs["ImSpan_ImSpan"][1]["funcname"] = "ImSpan" -defs["ImSpan_ImSpan"][1]["location"] = "imgui_internal:589" -defs["ImSpan_ImSpan"][1]["ov_cimguiname"] = "ImSpan_ImSpanNil" +defs["ImSpan_ImSpan"][1]["location"] = "imgui_internal:612" +defs["ImSpan_ImSpan"][1]["ov_cimguiname"] = "ImSpan_ImSpan_Nil" defs["ImSpan_ImSpan"][1]["signature"] = "()" defs["ImSpan_ImSpan"][1]["stname"] = "ImSpan" defs["ImSpan_ImSpan"][1]["templated"] = true @@ -9344,8 +9808,8 @@ defs["ImSpan_ImSpan"][2]["cimguiname"] = "ImSpan_ImSpan" defs["ImSpan_ImSpan"][2]["constructor"] = true defs["ImSpan_ImSpan"][2]["defaults"] = {} defs["ImSpan_ImSpan"][2]["funcname"] = "ImSpan" -defs["ImSpan_ImSpan"][2]["location"] = "imgui_internal:590" -defs["ImSpan_ImSpan"][2]["ov_cimguiname"] = "ImSpan_ImSpanTPtrInt" +defs["ImSpan_ImSpan"][2]["location"] = "imgui_internal:613" +defs["ImSpan_ImSpan"][2]["ov_cimguiname"] = "ImSpan_ImSpan_TPtrInt" defs["ImSpan_ImSpan"][2]["signature"] = "(T*,int)" defs["ImSpan_ImSpan"][2]["stname"] = "ImSpan" defs["ImSpan_ImSpan"][2]["templated"] = true @@ -9364,8 +9828,8 @@ defs["ImSpan_ImSpan"][3]["cimguiname"] = "ImSpan_ImSpan" defs["ImSpan_ImSpan"][3]["constructor"] = true defs["ImSpan_ImSpan"][3]["defaults"] = {} defs["ImSpan_ImSpan"][3]["funcname"] = "ImSpan" -defs["ImSpan_ImSpan"][3]["location"] = "imgui_internal:591" -defs["ImSpan_ImSpan"][3]["ov_cimguiname"] = "ImSpan_ImSpanTPtrTPtr" +defs["ImSpan_ImSpan"][3]["location"] = "imgui_internal:614" +defs["ImSpan_ImSpan"][3]["ov_cimguiname"] = "ImSpan_ImSpan_TPtrTPtr" defs["ImSpan_ImSpan"][3]["signature"] = "(T*,T*)" defs["ImSpan_ImSpan"][3]["stname"] = "ImSpan" defs["ImSpan_ImSpan"][3]["templated"] = true @@ -9384,8 +9848,8 @@ defs["ImSpan_begin"][1]["call_args"] = "()" defs["ImSpan_begin"][1]["cimguiname"] = "ImSpan_begin" defs["ImSpan_begin"][1]["defaults"] = {} defs["ImSpan_begin"][1]["funcname"] = "begin" -defs["ImSpan_begin"][1]["location"] = "imgui_internal:600" -defs["ImSpan_begin"][1]["ov_cimguiname"] = "ImSpan_beginNil" +defs["ImSpan_begin"][1]["location"] = "imgui_internal:623" +defs["ImSpan_begin"][1]["ov_cimguiname"] = "ImSpan_begin_Nil" defs["ImSpan_begin"][1]["ret"] = "T*" defs["ImSpan_begin"][1]["signature"] = "()" defs["ImSpan_begin"][1]["stname"] = "ImSpan" @@ -9401,8 +9865,8 @@ defs["ImSpan_begin"][2]["call_args"] = "()" defs["ImSpan_begin"][2]["cimguiname"] = "ImSpan_begin" defs["ImSpan_begin"][2]["defaults"] = {} defs["ImSpan_begin"][2]["funcname"] = "begin" -defs["ImSpan_begin"][2]["location"] = "imgui_internal:601" -defs["ImSpan_begin"][2]["ov_cimguiname"] = "ImSpan_begin_const" +defs["ImSpan_begin"][2]["location"] = "imgui_internal:624" +defs["ImSpan_begin"][2]["ov_cimguiname"] = "ImSpan_begin__const" defs["ImSpan_begin"][2]["ret"] = "const T*" defs["ImSpan_begin"][2]["signature"] = "()const" defs["ImSpan_begin"][2]["stname"] = "ImSpan" @@ -9438,8 +9902,8 @@ defs["ImSpan_end"][1]["call_args"] = "()" defs["ImSpan_end"][1]["cimguiname"] = "ImSpan_end" defs["ImSpan_end"][1]["defaults"] = {} defs["ImSpan_end"][1]["funcname"] = "end" -defs["ImSpan_end"][1]["location"] = "imgui_internal:602" -defs["ImSpan_end"][1]["ov_cimguiname"] = "ImSpan_endNil" +defs["ImSpan_end"][1]["location"] = "imgui_internal:625" +defs["ImSpan_end"][1]["ov_cimguiname"] = "ImSpan_end_Nil" defs["ImSpan_end"][1]["ret"] = "T*" defs["ImSpan_end"][1]["signature"] = "()" defs["ImSpan_end"][1]["stname"] = "ImSpan" @@ -9455,8 +9919,8 @@ defs["ImSpan_end"][2]["call_args"] = "()" defs["ImSpan_end"][2]["cimguiname"] = "ImSpan_end" defs["ImSpan_end"][2]["defaults"] = {} defs["ImSpan_end"][2]["funcname"] = "end" -defs["ImSpan_end"][2]["location"] = "imgui_internal:603" -defs["ImSpan_end"][2]["ov_cimguiname"] = "ImSpan_end_const" +defs["ImSpan_end"][2]["location"] = "imgui_internal:626" +defs["ImSpan_end"][2]["ov_cimguiname"] = "ImSpan_end__const" defs["ImSpan_end"][2]["ret"] = "const T*" defs["ImSpan_end"][2]["signature"] = "()const" defs["ImSpan_end"][2]["stname"] = "ImSpan" @@ -9478,7 +9942,7 @@ defs["ImSpan_index_from_ptr"][1]["call_args"] = "(it)" defs["ImSpan_index_from_ptr"][1]["cimguiname"] = "ImSpan_index_from_ptr" defs["ImSpan_index_from_ptr"][1]["defaults"] = {} defs["ImSpan_index_from_ptr"][1]["funcname"] = "index_from_ptr" -defs["ImSpan_index_from_ptr"][1]["location"] = "imgui_internal:606" +defs["ImSpan_index_from_ptr"][1]["location"] = "imgui_internal:629" defs["ImSpan_index_from_ptr"][1]["ov_cimguiname"] = "ImSpan_index_from_ptr" defs["ImSpan_index_from_ptr"][1]["ret"] = "int" defs["ImSpan_index_from_ptr"][1]["signature"] = "(const T*)const" @@ -9503,8 +9967,8 @@ defs["ImSpan_set"][1]["call_args"] = "(data,size)" defs["ImSpan_set"][1]["cimguiname"] = "ImSpan_set" defs["ImSpan_set"][1]["defaults"] = {} defs["ImSpan_set"][1]["funcname"] = "set" -defs["ImSpan_set"][1]["location"] = "imgui_internal:593" -defs["ImSpan_set"][1]["ov_cimguiname"] = "ImSpan_setInt" +defs["ImSpan_set"][1]["location"] = "imgui_internal:616" +defs["ImSpan_set"][1]["ov_cimguiname"] = "ImSpan_set_Int" defs["ImSpan_set"][1]["ret"] = "void" defs["ImSpan_set"][1]["signature"] = "(T*,int)" defs["ImSpan_set"][1]["stname"] = "ImSpan" @@ -9526,8 +9990,8 @@ defs["ImSpan_set"][2]["call_args"] = "(data,data_end)" defs["ImSpan_set"][2]["cimguiname"] = "ImSpan_set" defs["ImSpan_set"][2]["defaults"] = {} defs["ImSpan_set"][2]["funcname"] = "set" -defs["ImSpan_set"][2]["location"] = "imgui_internal:594" -defs["ImSpan_set"][2]["ov_cimguiname"] = "ImSpan_setTPtr" +defs["ImSpan_set"][2]["location"] = "imgui_internal:617" +defs["ImSpan_set"][2]["ov_cimguiname"] = "ImSpan_set_TPtr" defs["ImSpan_set"][2]["ret"] = "void" defs["ImSpan_set"][2]["signature"] = "(T*,T*)" defs["ImSpan_set"][2]["stname"] = "ImSpan" @@ -9546,7 +10010,7 @@ defs["ImSpan_size"][1]["call_args"] = "()" defs["ImSpan_size"][1]["cimguiname"] = "ImSpan_size" defs["ImSpan_size"][1]["defaults"] = {} defs["ImSpan_size"][1]["funcname"] = "size" -defs["ImSpan_size"][1]["location"] = "imgui_internal:595" +defs["ImSpan_size"][1]["location"] = "imgui_internal:618" defs["ImSpan_size"][1]["ov_cimguiname"] = "ImSpan_size" defs["ImSpan_size"][1]["ret"] = "int" defs["ImSpan_size"][1]["signature"] = "()const" @@ -9565,7 +10029,7 @@ defs["ImSpan_size_in_bytes"][1]["call_args"] = "()" defs["ImSpan_size_in_bytes"][1]["cimguiname"] = "ImSpan_size_in_bytes" defs["ImSpan_size_in_bytes"][1]["defaults"] = {} defs["ImSpan_size_in_bytes"][1]["funcname"] = "size_in_bytes" -defs["ImSpan_size_in_bytes"][1]["location"] = "imgui_internal:596" +defs["ImSpan_size_in_bytes"][1]["location"] = "imgui_internal:619" defs["ImSpan_size_in_bytes"][1]["ov_cimguiname"] = "ImSpan_size_in_bytes" defs["ImSpan_size_in_bytes"][1]["ret"] = "int" defs["ImSpan_size_in_bytes"][1]["signature"] = "()const" @@ -9582,8 +10046,8 @@ defs["ImVec1_ImVec1"][1]["cimguiname"] = "ImVec1_ImVec1" defs["ImVec1_ImVec1"][1]["constructor"] = true defs["ImVec1_ImVec1"][1]["defaults"] = {} defs["ImVec1_ImVec1"][1]["funcname"] = "ImVec1" -defs["ImVec1_ImVec1"][1]["location"] = "imgui_internal:484" -defs["ImVec1_ImVec1"][1]["ov_cimguiname"] = "ImVec1_ImVec1Nil" +defs["ImVec1_ImVec1"][1]["location"] = "imgui_internal:506" +defs["ImVec1_ImVec1"][1]["ov_cimguiname"] = "ImVec1_ImVec1_Nil" defs["ImVec1_ImVec1"][1]["signature"] = "()" defs["ImVec1_ImVec1"][1]["stname"] = "ImVec1" defs["ImVec1_ImVec1"][2] = {} @@ -9598,8 +10062,8 @@ defs["ImVec1_ImVec1"][2]["cimguiname"] = "ImVec1_ImVec1" defs["ImVec1_ImVec1"][2]["constructor"] = true defs["ImVec1_ImVec1"][2]["defaults"] = {} defs["ImVec1_ImVec1"][2]["funcname"] = "ImVec1" -defs["ImVec1_ImVec1"][2]["location"] = "imgui_internal:485" -defs["ImVec1_ImVec1"][2]["ov_cimguiname"] = "ImVec1_ImVec1Float" +defs["ImVec1_ImVec1"][2]["location"] = "imgui_internal:507" +defs["ImVec1_ImVec1"][2]["ov_cimguiname"] = "ImVec1_ImVec1_Float" defs["ImVec1_ImVec1"][2]["signature"] = "(float)" defs["ImVec1_ImVec1"][2]["stname"] = "ImVec1" defs["ImVec1_ImVec1"]["()"] = defs["ImVec1_ImVec1"][1] @@ -9630,8 +10094,8 @@ defs["ImVec2_ImVec2"][1]["cimguiname"] = "ImVec2_ImVec2" defs["ImVec2_ImVec2"][1]["constructor"] = true defs["ImVec2_ImVec2"][1]["defaults"] = {} defs["ImVec2_ImVec2"][1]["funcname"] = "ImVec2" -defs["ImVec2_ImVec2"][1]["location"] = "imgui:269" -defs["ImVec2_ImVec2"][1]["ov_cimguiname"] = "ImVec2_ImVec2Nil" +defs["ImVec2_ImVec2"][1]["location"] = "imgui:262" +defs["ImVec2_ImVec2"][1]["ov_cimguiname"] = "ImVec2_ImVec2_Nil" defs["ImVec2_ImVec2"][1]["signature"] = "()" defs["ImVec2_ImVec2"][1]["stname"] = "ImVec2" defs["ImVec2_ImVec2"][2] = {} @@ -9649,8 +10113,8 @@ defs["ImVec2_ImVec2"][2]["cimguiname"] = "ImVec2_ImVec2" defs["ImVec2_ImVec2"][2]["constructor"] = true defs["ImVec2_ImVec2"][2]["defaults"] = {} defs["ImVec2_ImVec2"][2]["funcname"] = "ImVec2" -defs["ImVec2_ImVec2"][2]["location"] = "imgui:270" -defs["ImVec2_ImVec2"][2]["ov_cimguiname"] = "ImVec2_ImVec2Float" +defs["ImVec2_ImVec2"][2]["location"] = "imgui:263" +defs["ImVec2_ImVec2"][2]["ov_cimguiname"] = "ImVec2_ImVec2_Float" defs["ImVec2_ImVec2"][2]["signature"] = "(float,float)" defs["ImVec2_ImVec2"][2]["stname"] = "ImVec2" defs["ImVec2_ImVec2"]["()"] = defs["ImVec2_ImVec2"][1] @@ -9681,8 +10145,8 @@ defs["ImVec2ih_ImVec2ih"][1]["cimguiname"] = "ImVec2ih_ImVec2ih" defs["ImVec2ih_ImVec2ih"][1]["constructor"] = true defs["ImVec2ih_ImVec2ih"][1]["defaults"] = {} defs["ImVec2ih_ImVec2ih"][1]["funcname"] = "ImVec2ih" -defs["ImVec2ih_ImVec2ih"][1]["location"] = "imgui_internal:492" -defs["ImVec2ih_ImVec2ih"][1]["ov_cimguiname"] = "ImVec2ih_ImVec2ihNil" +defs["ImVec2ih_ImVec2ih"][1]["location"] = "imgui_internal:514" +defs["ImVec2ih_ImVec2ih"][1]["ov_cimguiname"] = "ImVec2ih_ImVec2ih_Nil" defs["ImVec2ih_ImVec2ih"][1]["signature"] = "()" defs["ImVec2ih_ImVec2ih"][1]["stname"] = "ImVec2ih" defs["ImVec2ih_ImVec2ih"][2] = {} @@ -9700,8 +10164,8 @@ defs["ImVec2ih_ImVec2ih"][2]["cimguiname"] = "ImVec2ih_ImVec2ih" defs["ImVec2ih_ImVec2ih"][2]["constructor"] = true defs["ImVec2ih_ImVec2ih"][2]["defaults"] = {} defs["ImVec2ih_ImVec2ih"][2]["funcname"] = "ImVec2ih" -defs["ImVec2ih_ImVec2ih"][2]["location"] = "imgui_internal:493" -defs["ImVec2ih_ImVec2ih"][2]["ov_cimguiname"] = "ImVec2ih_ImVec2ihshort" +defs["ImVec2ih_ImVec2ih"][2]["location"] = "imgui_internal:515" +defs["ImVec2ih_ImVec2ih"][2]["ov_cimguiname"] = "ImVec2ih_ImVec2ih_short" defs["ImVec2ih_ImVec2ih"][2]["signature"] = "(short,short)" defs["ImVec2ih_ImVec2ih"][2]["stname"] = "ImVec2ih" defs["ImVec2ih_ImVec2ih"][3] = {} @@ -9716,8 +10180,8 @@ defs["ImVec2ih_ImVec2ih"][3]["cimguiname"] = "ImVec2ih_ImVec2ih" defs["ImVec2ih_ImVec2ih"][3]["constructor"] = true defs["ImVec2ih_ImVec2ih"][3]["defaults"] = {} defs["ImVec2ih_ImVec2ih"][3]["funcname"] = "ImVec2ih" -defs["ImVec2ih_ImVec2ih"][3]["location"] = "imgui_internal:494" -defs["ImVec2ih_ImVec2ih"][3]["ov_cimguiname"] = "ImVec2ih_ImVec2ihVec2" +defs["ImVec2ih_ImVec2ih"][3]["location"] = "imgui_internal:516" +defs["ImVec2ih_ImVec2ih"][3]["ov_cimguiname"] = "ImVec2ih_ImVec2ih_Vec2" defs["ImVec2ih_ImVec2ih"][3]["signature"] = "(const ImVec2)" defs["ImVec2ih_ImVec2ih"][3]["stname"] = "ImVec2ih" defs["ImVec2ih_ImVec2ih"]["()"] = defs["ImVec2ih_ImVec2ih"][1] @@ -9749,8 +10213,8 @@ defs["ImVec4_ImVec4"][1]["cimguiname"] = "ImVec4_ImVec4" defs["ImVec4_ImVec4"][1]["constructor"] = true defs["ImVec4_ImVec4"][1]["defaults"] = {} defs["ImVec4_ImVec4"][1]["funcname"] = "ImVec4" -defs["ImVec4_ImVec4"][1]["location"] = "imgui:282" -defs["ImVec4_ImVec4"][1]["ov_cimguiname"] = "ImVec4_ImVec4Nil" +defs["ImVec4_ImVec4"][1]["location"] = "imgui:275" +defs["ImVec4_ImVec4"][1]["ov_cimguiname"] = "ImVec4_ImVec4_Nil" defs["ImVec4_ImVec4"][1]["signature"] = "()" defs["ImVec4_ImVec4"][1]["stname"] = "ImVec4" defs["ImVec4_ImVec4"][2] = {} @@ -9774,8 +10238,8 @@ defs["ImVec4_ImVec4"][2]["cimguiname"] = "ImVec4_ImVec4" defs["ImVec4_ImVec4"][2]["constructor"] = true defs["ImVec4_ImVec4"][2]["defaults"] = {} defs["ImVec4_ImVec4"][2]["funcname"] = "ImVec4" -defs["ImVec4_ImVec4"][2]["location"] = "imgui:283" -defs["ImVec4_ImVec4"][2]["ov_cimguiname"] = "ImVec4_ImVec4Float" +defs["ImVec4_ImVec4"][2]["location"] = "imgui:276" +defs["ImVec4_ImVec4"][2]["ov_cimguiname"] = "ImVec4_ImVec4_Float" defs["ImVec4_ImVec4"][2]["signature"] = "(float,float,float,float)" defs["ImVec4_ImVec4"][2]["stname"] = "ImVec4" defs["ImVec4_ImVec4"]["()"] = defs["ImVec4_ImVec4"][1] @@ -9806,30 +10270,30 @@ defs["ImVector_ImVector"][1]["cimguiname"] = "ImVector_ImVector" defs["ImVector_ImVector"][1]["constructor"] = true defs["ImVector_ImVector"][1]["defaults"] = {} defs["ImVector_ImVector"][1]["funcname"] = "ImVector" -defs["ImVector_ImVector"][1]["location"] = "imgui:1784" -defs["ImVector_ImVector"][1]["ov_cimguiname"] = "ImVector_ImVectorNil" +defs["ImVector_ImVector"][1]["location"] = "imgui:1850" +defs["ImVector_ImVector"][1]["ov_cimguiname"] = "ImVector_ImVector_Nil" defs["ImVector_ImVector"][1]["signature"] = "()" defs["ImVector_ImVector"][1]["stname"] = "ImVector" defs["ImVector_ImVector"][1]["templated"] = true defs["ImVector_ImVector"][2] = {} -defs["ImVector_ImVector"][2]["args"] = "(const ImVector src)" +defs["ImVector_ImVector"][2]["args"] = "(const ImVector_T src)" defs["ImVector_ImVector"][2]["argsT"] = {} defs["ImVector_ImVector"][2]["argsT"][1] = {} defs["ImVector_ImVector"][2]["argsT"][1]["name"] = "src" -defs["ImVector_ImVector"][2]["argsT"][1]["type"] = "const ImVector" +defs["ImVector_ImVector"][2]["argsT"][1]["type"] = "const ImVector_T " defs["ImVector_ImVector"][2]["argsoriginal"] = "(const ImVector& src)" defs["ImVector_ImVector"][2]["call_args"] = "(src)" defs["ImVector_ImVector"][2]["cimguiname"] = "ImVector_ImVector" defs["ImVector_ImVector"][2]["constructor"] = true defs["ImVector_ImVector"][2]["defaults"] = {} defs["ImVector_ImVector"][2]["funcname"] = "ImVector" -defs["ImVector_ImVector"][2]["location"] = "imgui:1785" -defs["ImVector_ImVector"][2]["ov_cimguiname"] = "ImVector_ImVectorVector" -defs["ImVector_ImVector"][2]["signature"] = "(const ImVector)" +defs["ImVector_ImVector"][2]["location"] = "imgui:1851" +defs["ImVector_ImVector"][2]["ov_cimguiname"] = "ImVector_ImVector_Vector_T_" +defs["ImVector_ImVector"][2]["signature"] = "(const ImVector_T )" defs["ImVector_ImVector"][2]["stname"] = "ImVector" defs["ImVector_ImVector"][2]["templated"] = true defs["ImVector_ImVector"]["()"] = defs["ImVector_ImVector"][1] -defs["ImVector_ImVector"]["(const ImVector)"] = defs["ImVector_ImVector"][2] +defs["ImVector_ImVector"]["(const ImVector_T )"] = defs["ImVector_ImVector"][2] defs["ImVector__grow_capacity"] = {} defs["ImVector__grow_capacity"][1] = {} defs["ImVector__grow_capacity"][1]["args"] = "(ImVector* self,int sz)" @@ -9845,7 +10309,7 @@ defs["ImVector__grow_capacity"][1]["call_args"] = "(sz)" defs["ImVector__grow_capacity"][1]["cimguiname"] = "ImVector__grow_capacity" defs["ImVector__grow_capacity"][1]["defaults"] = {} defs["ImVector__grow_capacity"][1]["funcname"] = "_grow_capacity" -defs["ImVector__grow_capacity"][1]["location"] = "imgui:1811" +defs["ImVector__grow_capacity"][1]["location"] = "imgui:1877" defs["ImVector__grow_capacity"][1]["ov_cimguiname"] = "ImVector__grow_capacity" defs["ImVector__grow_capacity"][1]["ret"] = "int" defs["ImVector__grow_capacity"][1]["signature"] = "(int)const" @@ -9864,8 +10328,8 @@ defs["ImVector_back"][1]["call_args"] = "()" defs["ImVector_back"][1]["cimguiname"] = "ImVector_back" defs["ImVector_back"][1]["defaults"] = {} defs["ImVector_back"][1]["funcname"] = "back" -defs["ImVector_back"][1]["location"] = "imgui:1807" -defs["ImVector_back"][1]["ov_cimguiname"] = "ImVector_backNil" +defs["ImVector_back"][1]["location"] = "imgui:1873" +defs["ImVector_back"][1]["ov_cimguiname"] = "ImVector_back_Nil" defs["ImVector_back"][1]["ret"] = "T*" defs["ImVector_back"][1]["retref"] = "&" defs["ImVector_back"][1]["signature"] = "()" @@ -9882,8 +10346,8 @@ defs["ImVector_back"][2]["call_args"] = "()" defs["ImVector_back"][2]["cimguiname"] = "ImVector_back" defs["ImVector_back"][2]["defaults"] = {} defs["ImVector_back"][2]["funcname"] = "back" -defs["ImVector_back"][2]["location"] = "imgui:1808" -defs["ImVector_back"][2]["ov_cimguiname"] = "ImVector_back_const" +defs["ImVector_back"][2]["location"] = "imgui:1874" +defs["ImVector_back"][2]["ov_cimguiname"] = "ImVector_back__const" defs["ImVector_back"][2]["ret"] = "const T*" defs["ImVector_back"][2]["retref"] = "&" defs["ImVector_back"][2]["signature"] = "()const" @@ -9903,8 +10367,8 @@ defs["ImVector_begin"][1]["call_args"] = "()" defs["ImVector_begin"][1]["cimguiname"] = "ImVector_begin" defs["ImVector_begin"][1]["defaults"] = {} defs["ImVector_begin"][1]["funcname"] = "begin" -defs["ImVector_begin"][1]["location"] = "imgui:1801" -defs["ImVector_begin"][1]["ov_cimguiname"] = "ImVector_beginNil" +defs["ImVector_begin"][1]["location"] = "imgui:1867" +defs["ImVector_begin"][1]["ov_cimguiname"] = "ImVector_begin_Nil" defs["ImVector_begin"][1]["ret"] = "T*" defs["ImVector_begin"][1]["signature"] = "()" defs["ImVector_begin"][1]["stname"] = "ImVector" @@ -9920,8 +10384,8 @@ defs["ImVector_begin"][2]["call_args"] = "()" defs["ImVector_begin"][2]["cimguiname"] = "ImVector_begin" defs["ImVector_begin"][2]["defaults"] = {} defs["ImVector_begin"][2]["funcname"] = "begin" -defs["ImVector_begin"][2]["location"] = "imgui:1802" -defs["ImVector_begin"][2]["ov_cimguiname"] = "ImVector_begin_const" +defs["ImVector_begin"][2]["location"] = "imgui:1868" +defs["ImVector_begin"][2]["ov_cimguiname"] = "ImVector_begin__const" defs["ImVector_begin"][2]["ret"] = "const T*" defs["ImVector_begin"][2]["signature"] = "()const" defs["ImVector_begin"][2]["stname"] = "ImVector" @@ -9940,7 +10404,7 @@ defs["ImVector_capacity"][1]["call_args"] = "()" defs["ImVector_capacity"][1]["cimguiname"] = "ImVector_capacity" defs["ImVector_capacity"][1]["defaults"] = {} defs["ImVector_capacity"][1]["funcname"] = "capacity" -defs["ImVector_capacity"][1]["location"] = "imgui:1797" +defs["ImVector_capacity"][1]["location"] = "imgui:1863" defs["ImVector_capacity"][1]["ov_cimguiname"] = "ImVector_capacity" defs["ImVector_capacity"][1]["ret"] = "int" defs["ImVector_capacity"][1]["signature"] = "()const" @@ -9959,7 +10423,7 @@ defs["ImVector_clear"][1]["call_args"] = "()" defs["ImVector_clear"][1]["cimguiname"] = "ImVector_clear" defs["ImVector_clear"][1]["defaults"] = {} defs["ImVector_clear"][1]["funcname"] = "clear" -defs["ImVector_clear"][1]["location"] = "imgui:1789" +defs["ImVector_clear"][1]["location"] = "imgui:1855" defs["ImVector_clear"][1]["ov_cimguiname"] = "ImVector_clear" defs["ImVector_clear"][1]["ret"] = "void" defs["ImVector_clear"][1]["signature"] = "()" @@ -9978,7 +10442,7 @@ defs["ImVector_clear_delete"][1]["call_args"] = "()" defs["ImVector_clear_delete"][1]["cimguiname"] = "ImVector_clear_delete" defs["ImVector_clear_delete"][1]["defaults"] = {} defs["ImVector_clear_delete"][1]["funcname"] = "clear_delete" -defs["ImVector_clear_delete"][1]["location"] = "imgui:1790" +defs["ImVector_clear_delete"][1]["location"] = "imgui:1856" defs["ImVector_clear_delete"][1]["ov_cimguiname"] = "ImVector_clear_delete" defs["ImVector_clear_delete"][1]["ret"] = "void" defs["ImVector_clear_delete"][1]["signature"] = "()" @@ -9997,7 +10461,7 @@ defs["ImVector_clear_destruct"][1]["call_args"] = "()" defs["ImVector_clear_destruct"][1]["cimguiname"] = "ImVector_clear_destruct" defs["ImVector_clear_destruct"][1]["defaults"] = {} defs["ImVector_clear_destruct"][1]["funcname"] = "clear_destruct" -defs["ImVector_clear_destruct"][1]["location"] = "imgui:1791" +defs["ImVector_clear_destruct"][1]["location"] = "imgui:1857" defs["ImVector_clear_destruct"][1]["ov_cimguiname"] = "ImVector_clear_destruct" defs["ImVector_clear_destruct"][1]["ret"] = "void" defs["ImVector_clear_destruct"][1]["signature"] = "()" @@ -10019,7 +10483,7 @@ defs["ImVector_contains"][1]["call_args"] = "(v)" defs["ImVector_contains"][1]["cimguiname"] = "ImVector_contains" defs["ImVector_contains"][1]["defaults"] = {} defs["ImVector_contains"][1]["funcname"] = "contains" -defs["ImVector_contains"][1]["location"] = "imgui:1825" +defs["ImVector_contains"][1]["location"] = "imgui:1892" defs["ImVector_contains"][1]["ov_cimguiname"] = "ImVector_contains" defs["ImVector_contains"][1]["ret"] = "bool" defs["ImVector_contains"][1]["signature"] = "(const T)const" @@ -10037,7 +10501,7 @@ defs["ImVector_destroy"][1]["call_args"] = "(self)" defs["ImVector_destroy"][1]["cimguiname"] = "ImVector_destroy" defs["ImVector_destroy"][1]["defaults"] = {} defs["ImVector_destroy"][1]["destructor"] = true -defs["ImVector_destroy"][1]["location"] = "imgui:1787" +defs["ImVector_destroy"][1]["location"] = "imgui:1853" defs["ImVector_destroy"][1]["ov_cimguiname"] = "ImVector_destroy" defs["ImVector_destroy"][1]["realdestructor"] = true defs["ImVector_destroy"][1]["ret"] = "void" @@ -10057,7 +10521,7 @@ defs["ImVector_empty"][1]["call_args"] = "()" defs["ImVector_empty"][1]["cimguiname"] = "ImVector_empty" defs["ImVector_empty"][1]["defaults"] = {} defs["ImVector_empty"][1]["funcname"] = "empty" -defs["ImVector_empty"][1]["location"] = "imgui:1793" +defs["ImVector_empty"][1]["location"] = "imgui:1859" defs["ImVector_empty"][1]["ov_cimguiname"] = "ImVector_empty" defs["ImVector_empty"][1]["ret"] = "bool" defs["ImVector_empty"][1]["signature"] = "()const" @@ -10076,8 +10540,8 @@ defs["ImVector_end"][1]["call_args"] = "()" defs["ImVector_end"][1]["cimguiname"] = "ImVector_end" defs["ImVector_end"][1]["defaults"] = {} defs["ImVector_end"][1]["funcname"] = "end" -defs["ImVector_end"][1]["location"] = "imgui:1803" -defs["ImVector_end"][1]["ov_cimguiname"] = "ImVector_endNil" +defs["ImVector_end"][1]["location"] = "imgui:1869" +defs["ImVector_end"][1]["ov_cimguiname"] = "ImVector_end_Nil" defs["ImVector_end"][1]["ret"] = "T*" defs["ImVector_end"][1]["signature"] = "()" defs["ImVector_end"][1]["stname"] = "ImVector" @@ -10093,8 +10557,8 @@ defs["ImVector_end"][2]["call_args"] = "()" defs["ImVector_end"][2]["cimguiname"] = "ImVector_end" defs["ImVector_end"][2]["defaults"] = {} defs["ImVector_end"][2]["funcname"] = "end" -defs["ImVector_end"][2]["location"] = "imgui:1804" -defs["ImVector_end"][2]["ov_cimguiname"] = "ImVector_end_const" +defs["ImVector_end"][2]["location"] = "imgui:1870" +defs["ImVector_end"][2]["ov_cimguiname"] = "ImVector_end__const" defs["ImVector_end"][2]["ret"] = "const T*" defs["ImVector_end"][2]["signature"] = "()const" defs["ImVector_end"][2]["stname"] = "ImVector" @@ -10116,8 +10580,8 @@ defs["ImVector_erase"][1]["call_args"] = "(it)" defs["ImVector_erase"][1]["cimguiname"] = "ImVector_erase" defs["ImVector_erase"][1]["defaults"] = {} defs["ImVector_erase"][1]["funcname"] = "erase" -defs["ImVector_erase"][1]["location"] = "imgui:1821" -defs["ImVector_erase"][1]["ov_cimguiname"] = "ImVector_eraseNil" +defs["ImVector_erase"][1]["location"] = "imgui:1888" +defs["ImVector_erase"][1]["ov_cimguiname"] = "ImVector_erase_Nil" defs["ImVector_erase"][1]["ret"] = "T*" defs["ImVector_erase"][1]["signature"] = "(const T*)" defs["ImVector_erase"][1]["stname"] = "ImVector" @@ -10139,8 +10603,8 @@ defs["ImVector_erase"][2]["call_args"] = "(it,it_last)" defs["ImVector_erase"][2]["cimguiname"] = "ImVector_erase" defs["ImVector_erase"][2]["defaults"] = {} defs["ImVector_erase"][2]["funcname"] = "erase" -defs["ImVector_erase"][2]["location"] = "imgui:1822" -defs["ImVector_erase"][2]["ov_cimguiname"] = "ImVector_eraseTPtr" +defs["ImVector_erase"][2]["location"] = "imgui:1889" +defs["ImVector_erase"][2]["ov_cimguiname"] = "ImVector_erase_TPtr" defs["ImVector_erase"][2]["ret"] = "T*" defs["ImVector_erase"][2]["signature"] = "(const T*,const T*)" defs["ImVector_erase"][2]["stname"] = "ImVector" @@ -10162,7 +10626,7 @@ defs["ImVector_erase_unsorted"][1]["call_args"] = "(it)" defs["ImVector_erase_unsorted"][1]["cimguiname"] = "ImVector_erase_unsorted" defs["ImVector_erase_unsorted"][1]["defaults"] = {} defs["ImVector_erase_unsorted"][1]["funcname"] = "erase_unsorted" -defs["ImVector_erase_unsorted"][1]["location"] = "imgui:1823" +defs["ImVector_erase_unsorted"][1]["location"] = "imgui:1890" defs["ImVector_erase_unsorted"][1]["ov_cimguiname"] = "ImVector_erase_unsorted" defs["ImVector_erase_unsorted"][1]["ret"] = "T*" defs["ImVector_erase_unsorted"][1]["signature"] = "(const T*)" @@ -10184,8 +10648,8 @@ defs["ImVector_find"][1]["call_args"] = "(v)" defs["ImVector_find"][1]["cimguiname"] = "ImVector_find" defs["ImVector_find"][1]["defaults"] = {} defs["ImVector_find"][1]["funcname"] = "find" -defs["ImVector_find"][1]["location"] = "imgui:1826" -defs["ImVector_find"][1]["ov_cimguiname"] = "ImVector_findNil" +defs["ImVector_find"][1]["location"] = "imgui:1893" +defs["ImVector_find"][1]["ov_cimguiname"] = "ImVector_find_Nil" defs["ImVector_find"][1]["ret"] = "T*" defs["ImVector_find"][1]["signature"] = "(const T)" defs["ImVector_find"][1]["stname"] = "ImVector" @@ -10204,8 +10668,8 @@ defs["ImVector_find"][2]["call_args"] = "(v)" defs["ImVector_find"][2]["cimguiname"] = "ImVector_find" defs["ImVector_find"][2]["defaults"] = {} defs["ImVector_find"][2]["funcname"] = "find" -defs["ImVector_find"][2]["location"] = "imgui:1827" -defs["ImVector_find"][2]["ov_cimguiname"] = "ImVector_find_const" +defs["ImVector_find"][2]["location"] = "imgui:1894" +defs["ImVector_find"][2]["ov_cimguiname"] = "ImVector_find__const" defs["ImVector_find"][2]["ret"] = "const T*" defs["ImVector_find"][2]["signature"] = "(const T)const" defs["ImVector_find"][2]["stname"] = "ImVector" @@ -10227,7 +10691,7 @@ defs["ImVector_find_erase"][1]["call_args"] = "(v)" defs["ImVector_find_erase"][1]["cimguiname"] = "ImVector_find_erase" defs["ImVector_find_erase"][1]["defaults"] = {} defs["ImVector_find_erase"][1]["funcname"] = "find_erase" -defs["ImVector_find_erase"][1]["location"] = "imgui:1828" +defs["ImVector_find_erase"][1]["location"] = "imgui:1895" defs["ImVector_find_erase"][1]["ov_cimguiname"] = "ImVector_find_erase" defs["ImVector_find_erase"][1]["ret"] = "bool" defs["ImVector_find_erase"][1]["signature"] = "(const T)" @@ -10249,7 +10713,7 @@ defs["ImVector_find_erase_unsorted"][1]["call_args"] = "(v)" defs["ImVector_find_erase_unsorted"][1]["cimguiname"] = "ImVector_find_erase_unsorted" defs["ImVector_find_erase_unsorted"][1]["defaults"] = {} defs["ImVector_find_erase_unsorted"][1]["funcname"] = "find_erase_unsorted" -defs["ImVector_find_erase_unsorted"][1]["location"] = "imgui:1829" +defs["ImVector_find_erase_unsorted"][1]["location"] = "imgui:1896" defs["ImVector_find_erase_unsorted"][1]["ov_cimguiname"] = "ImVector_find_erase_unsorted" defs["ImVector_find_erase_unsorted"][1]["ret"] = "bool" defs["ImVector_find_erase_unsorted"][1]["signature"] = "(const T)" @@ -10268,8 +10732,8 @@ defs["ImVector_front"][1]["call_args"] = "()" defs["ImVector_front"][1]["cimguiname"] = "ImVector_front" defs["ImVector_front"][1]["defaults"] = {} defs["ImVector_front"][1]["funcname"] = "front" -defs["ImVector_front"][1]["location"] = "imgui:1805" -defs["ImVector_front"][1]["ov_cimguiname"] = "ImVector_frontNil" +defs["ImVector_front"][1]["location"] = "imgui:1871" +defs["ImVector_front"][1]["ov_cimguiname"] = "ImVector_front_Nil" defs["ImVector_front"][1]["ret"] = "T*" defs["ImVector_front"][1]["retref"] = "&" defs["ImVector_front"][1]["signature"] = "()" @@ -10286,8 +10750,8 @@ defs["ImVector_front"][2]["call_args"] = "()" defs["ImVector_front"][2]["cimguiname"] = "ImVector_front" defs["ImVector_front"][2]["defaults"] = {} defs["ImVector_front"][2]["funcname"] = "front" -defs["ImVector_front"][2]["location"] = "imgui:1806" -defs["ImVector_front"][2]["ov_cimguiname"] = "ImVector_front_const" +defs["ImVector_front"][2]["location"] = "imgui:1872" +defs["ImVector_front"][2]["ov_cimguiname"] = "ImVector_front__const" defs["ImVector_front"][2]["ret"] = "const T*" defs["ImVector_front"][2]["retref"] = "&" defs["ImVector_front"][2]["signature"] = "()const" @@ -10310,7 +10774,7 @@ defs["ImVector_index_from_ptr"][1]["call_args"] = "(it)" defs["ImVector_index_from_ptr"][1]["cimguiname"] = "ImVector_index_from_ptr" defs["ImVector_index_from_ptr"][1]["defaults"] = {} defs["ImVector_index_from_ptr"][1]["funcname"] = "index_from_ptr" -defs["ImVector_index_from_ptr"][1]["location"] = "imgui:1830" +defs["ImVector_index_from_ptr"][1]["location"] = "imgui:1897" defs["ImVector_index_from_ptr"][1]["ov_cimguiname"] = "ImVector_index_from_ptr" defs["ImVector_index_from_ptr"][1]["ret"] = "int" defs["ImVector_index_from_ptr"][1]["signature"] = "(const T*)const" @@ -10335,7 +10799,7 @@ defs["ImVector_insert"][1]["call_args"] = "(it,v)" defs["ImVector_insert"][1]["cimguiname"] = "ImVector_insert" defs["ImVector_insert"][1]["defaults"] = {} defs["ImVector_insert"][1]["funcname"] = "insert" -defs["ImVector_insert"][1]["location"] = "imgui:1824" +defs["ImVector_insert"][1]["location"] = "imgui:1891" defs["ImVector_insert"][1]["ov_cimguiname"] = "ImVector_insert" defs["ImVector_insert"][1]["ret"] = "T*" defs["ImVector_insert"][1]["signature"] = "(const T*,const T)" @@ -10354,7 +10818,7 @@ defs["ImVector_max_size"][1]["call_args"] = "()" defs["ImVector_max_size"][1]["cimguiname"] = "ImVector_max_size" defs["ImVector_max_size"][1]["defaults"] = {} defs["ImVector_max_size"][1]["funcname"] = "max_size" -defs["ImVector_max_size"][1]["location"] = "imgui:1796" +defs["ImVector_max_size"][1]["location"] = "imgui:1862" defs["ImVector_max_size"][1]["ov_cimguiname"] = "ImVector_max_size" defs["ImVector_max_size"][1]["ret"] = "int" defs["ImVector_max_size"][1]["signature"] = "()const" @@ -10373,7 +10837,7 @@ defs["ImVector_pop_back"][1]["call_args"] = "()" defs["ImVector_pop_back"][1]["cimguiname"] = "ImVector_pop_back" defs["ImVector_pop_back"][1]["defaults"] = {} defs["ImVector_pop_back"][1]["funcname"] = "pop_back" -defs["ImVector_pop_back"][1]["location"] = "imgui:1819" +defs["ImVector_pop_back"][1]["location"] = "imgui:1886" defs["ImVector_pop_back"][1]["ov_cimguiname"] = "ImVector_pop_back" defs["ImVector_pop_back"][1]["ret"] = "void" defs["ImVector_pop_back"][1]["signature"] = "()" @@ -10395,7 +10859,7 @@ defs["ImVector_push_back"][1]["call_args"] = "(v)" defs["ImVector_push_back"][1]["cimguiname"] = "ImVector_push_back" defs["ImVector_push_back"][1]["defaults"] = {} defs["ImVector_push_back"][1]["funcname"] = "push_back" -defs["ImVector_push_back"][1]["location"] = "imgui:1818" +defs["ImVector_push_back"][1]["location"] = "imgui:1885" defs["ImVector_push_back"][1]["ov_cimguiname"] = "ImVector_push_back" defs["ImVector_push_back"][1]["ret"] = "void" defs["ImVector_push_back"][1]["signature"] = "(const T)" @@ -10417,7 +10881,7 @@ defs["ImVector_push_front"][1]["call_args"] = "(v)" defs["ImVector_push_front"][1]["cimguiname"] = "ImVector_push_front" defs["ImVector_push_front"][1]["defaults"] = {} defs["ImVector_push_front"][1]["funcname"] = "push_front" -defs["ImVector_push_front"][1]["location"] = "imgui:1820" +defs["ImVector_push_front"][1]["location"] = "imgui:1887" defs["ImVector_push_front"][1]["ov_cimguiname"] = "ImVector_push_front" defs["ImVector_push_front"][1]["ret"] = "void" defs["ImVector_push_front"][1]["signature"] = "(const T)" @@ -10439,13 +10903,35 @@ defs["ImVector_reserve"][1]["call_args"] = "(new_capacity)" defs["ImVector_reserve"][1]["cimguiname"] = "ImVector_reserve" defs["ImVector_reserve"][1]["defaults"] = {} defs["ImVector_reserve"][1]["funcname"] = "reserve" -defs["ImVector_reserve"][1]["location"] = "imgui:1815" +defs["ImVector_reserve"][1]["location"] = "imgui:1881" defs["ImVector_reserve"][1]["ov_cimguiname"] = "ImVector_reserve" defs["ImVector_reserve"][1]["ret"] = "void" defs["ImVector_reserve"][1]["signature"] = "(int)" defs["ImVector_reserve"][1]["stname"] = "ImVector" defs["ImVector_reserve"][1]["templated"] = true defs["ImVector_reserve"]["(int)"] = defs["ImVector_reserve"][1] +defs["ImVector_reserve_discard"] = {} +defs["ImVector_reserve_discard"][1] = {} +defs["ImVector_reserve_discard"][1]["args"] = "(ImVector* self,int new_capacity)" +defs["ImVector_reserve_discard"][1]["argsT"] = {} +defs["ImVector_reserve_discard"][1]["argsT"][1] = {} +defs["ImVector_reserve_discard"][1]["argsT"][1]["name"] = "self" +defs["ImVector_reserve_discard"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_reserve_discard"][1]["argsT"][2] = {} +defs["ImVector_reserve_discard"][1]["argsT"][2]["name"] = "new_capacity" +defs["ImVector_reserve_discard"][1]["argsT"][2]["type"] = "int" +defs["ImVector_reserve_discard"][1]["argsoriginal"] = "(int new_capacity)" +defs["ImVector_reserve_discard"][1]["call_args"] = "(new_capacity)" +defs["ImVector_reserve_discard"][1]["cimguiname"] = "ImVector_reserve_discard" +defs["ImVector_reserve_discard"][1]["defaults"] = {} +defs["ImVector_reserve_discard"][1]["funcname"] = "reserve_discard" +defs["ImVector_reserve_discard"][1]["location"] = "imgui:1882" +defs["ImVector_reserve_discard"][1]["ov_cimguiname"] = "ImVector_reserve_discard" +defs["ImVector_reserve_discard"][1]["ret"] = "void" +defs["ImVector_reserve_discard"][1]["signature"] = "(int)" +defs["ImVector_reserve_discard"][1]["stname"] = "ImVector" +defs["ImVector_reserve_discard"][1]["templated"] = true +defs["ImVector_reserve_discard"]["(int)"] = defs["ImVector_reserve_discard"][1] defs["ImVector_resize"] = {} defs["ImVector_resize"][1] = {} defs["ImVector_resize"][1]["args"] = "(ImVector* self,int new_size)" @@ -10461,8 +10947,8 @@ defs["ImVector_resize"][1]["call_args"] = "(new_size)" defs["ImVector_resize"][1]["cimguiname"] = "ImVector_resize" defs["ImVector_resize"][1]["defaults"] = {} defs["ImVector_resize"][1]["funcname"] = "resize" -defs["ImVector_resize"][1]["location"] = "imgui:1812" -defs["ImVector_resize"][1]["ov_cimguiname"] = "ImVector_resizeNil" +defs["ImVector_resize"][1]["location"] = "imgui:1878" +defs["ImVector_resize"][1]["ov_cimguiname"] = "ImVector_resize_Nil" defs["ImVector_resize"][1]["ret"] = "void" defs["ImVector_resize"][1]["signature"] = "(int)" defs["ImVector_resize"][1]["stname"] = "ImVector" @@ -10484,8 +10970,8 @@ defs["ImVector_resize"][2]["call_args"] = "(new_size,v)" defs["ImVector_resize"][2]["cimguiname"] = "ImVector_resize" defs["ImVector_resize"][2]["defaults"] = {} defs["ImVector_resize"][2]["funcname"] = "resize" -defs["ImVector_resize"][2]["location"] = "imgui:1813" -defs["ImVector_resize"][2]["ov_cimguiname"] = "ImVector_resizeT" +defs["ImVector_resize"][2]["location"] = "imgui:1879" +defs["ImVector_resize"][2]["ov_cimguiname"] = "ImVector_resize_T" defs["ImVector_resize"][2]["ret"] = "void" defs["ImVector_resize"][2]["signature"] = "(int,const T)" defs["ImVector_resize"][2]["stname"] = "ImVector" @@ -10507,7 +10993,7 @@ defs["ImVector_shrink"][1]["call_args"] = "(new_size)" defs["ImVector_shrink"][1]["cimguiname"] = "ImVector_shrink" defs["ImVector_shrink"][1]["defaults"] = {} defs["ImVector_shrink"][1]["funcname"] = "shrink" -defs["ImVector_shrink"][1]["location"] = "imgui:1814" +defs["ImVector_shrink"][1]["location"] = "imgui:1880" defs["ImVector_shrink"][1]["ov_cimguiname"] = "ImVector_shrink" defs["ImVector_shrink"][1]["ret"] = "void" defs["ImVector_shrink"][1]["signature"] = "(int)" @@ -10526,7 +11012,7 @@ defs["ImVector_size"][1]["call_args"] = "()" defs["ImVector_size"][1]["cimguiname"] = "ImVector_size" defs["ImVector_size"][1]["defaults"] = {} defs["ImVector_size"][1]["funcname"] = "size" -defs["ImVector_size"][1]["location"] = "imgui:1794" +defs["ImVector_size"][1]["location"] = "imgui:1860" defs["ImVector_size"][1]["ov_cimguiname"] = "ImVector_size" defs["ImVector_size"][1]["ret"] = "int" defs["ImVector_size"][1]["signature"] = "()const" @@ -10545,7 +11031,7 @@ defs["ImVector_size_in_bytes"][1]["call_args"] = "()" defs["ImVector_size_in_bytes"][1]["cimguiname"] = "ImVector_size_in_bytes" defs["ImVector_size_in_bytes"][1]["defaults"] = {} defs["ImVector_size_in_bytes"][1]["funcname"] = "size_in_bytes" -defs["ImVector_size_in_bytes"][1]["location"] = "imgui:1795" +defs["ImVector_size_in_bytes"][1]["location"] = "imgui:1861" defs["ImVector_size_in_bytes"][1]["ov_cimguiname"] = "ImVector_size_in_bytes" defs["ImVector_size_in_bytes"][1]["ret"] = "int" defs["ImVector_size_in_bytes"][1]["signature"] = "()const" @@ -10554,7 +11040,7 @@ defs["ImVector_size_in_bytes"][1]["templated"] = true defs["ImVector_size_in_bytes"]["()const"] = defs["ImVector_size_in_bytes"][1] defs["ImVector_swap"] = {} defs["ImVector_swap"][1] = {} -defs["ImVector_swap"][1]["args"] = "(ImVector* self,ImVector* rhs)" +defs["ImVector_swap"][1]["args"] = "(ImVector* self,ImVector_T * rhs)" defs["ImVector_swap"][1]["argsT"] = {} defs["ImVector_swap"][1]["argsT"][1] = {} defs["ImVector_swap"][1]["argsT"][1]["name"] = "self" @@ -10562,19 +11048,19 @@ defs["ImVector_swap"][1]["argsT"][1]["type"] = "ImVector*" defs["ImVector_swap"][1]["argsT"][2] = {} defs["ImVector_swap"][1]["argsT"][2]["name"] = "rhs" defs["ImVector_swap"][1]["argsT"][2]["reftoptr"] = true -defs["ImVector_swap"][1]["argsT"][2]["type"] = "ImVector*" +defs["ImVector_swap"][1]["argsT"][2]["type"] = "ImVector_T *" defs["ImVector_swap"][1]["argsoriginal"] = "(ImVector& rhs)" defs["ImVector_swap"][1]["call_args"] = "(*rhs)" defs["ImVector_swap"][1]["cimguiname"] = "ImVector_swap" defs["ImVector_swap"][1]["defaults"] = {} defs["ImVector_swap"][1]["funcname"] = "swap" -defs["ImVector_swap"][1]["location"] = "imgui:1809" +defs["ImVector_swap"][1]["location"] = "imgui:1875" defs["ImVector_swap"][1]["ov_cimguiname"] = "ImVector_swap" defs["ImVector_swap"][1]["ret"] = "void" -defs["ImVector_swap"][1]["signature"] = "(ImVector*)" +defs["ImVector_swap"][1]["signature"] = "(ImVector_T *)" defs["ImVector_swap"][1]["stname"] = "ImVector" defs["ImVector_swap"][1]["templated"] = true -defs["ImVector_swap"]["(ImVector*)"] = defs["ImVector_swap"][1] +defs["ImVector_swap"]["(ImVector_T *)"] = defs["ImVector_swap"][1] defs["igAcceptDragDropPayload"] = {} defs["igAcceptDragDropPayload"][1] = {} defs["igAcceptDragDropPayload"][1]["args"] = "(const char* type,ImGuiDragDropFlags flags)" @@ -10591,7 +11077,7 @@ defs["igAcceptDragDropPayload"][1]["cimguiname"] = "igAcceptDragDropPayload" defs["igAcceptDragDropPayload"][1]["defaults"] = {} defs["igAcceptDragDropPayload"][1]["defaults"]["flags"] = "0" defs["igAcceptDragDropPayload"][1]["funcname"] = "AcceptDragDropPayload" -defs["igAcceptDragDropPayload"][1]["location"] = "imgui:844" +defs["igAcceptDragDropPayload"][1]["location"] = "imgui:841" defs["igAcceptDragDropPayload"][1]["namespace"] = "ImGui" defs["igAcceptDragDropPayload"][1]["ov_cimguiname"] = "igAcceptDragDropPayload" defs["igAcceptDragDropPayload"][1]["ret"] = "const ImGuiPayload*" @@ -10610,7 +11096,7 @@ defs["igActivateItem"][1]["call_args"] = "(id)" defs["igActivateItem"][1]["cimguiname"] = "igActivateItem" defs["igActivateItem"][1]["defaults"] = {} defs["igActivateItem"][1]["funcname"] = "ActivateItem" -defs["igActivateItem"][1]["location"] = "imgui_internal:2812" +defs["igActivateItem"][1]["location"] = "imgui_internal:3094" defs["igActivateItem"][1]["namespace"] = "ImGui" defs["igActivateItem"][1]["ov_cimguiname"] = "igActivateItem" defs["igActivateItem"][1]["ret"] = "void" @@ -10632,13 +11118,32 @@ defs["igAddContextHook"][1]["call_args"] = "(context,hook)" defs["igAddContextHook"][1]["cimguiname"] = "igAddContextHook" defs["igAddContextHook"][1]["defaults"] = {} defs["igAddContextHook"][1]["funcname"] = "AddContextHook" -defs["igAddContextHook"][1]["location"] = "imgui_internal:2688" +defs["igAddContextHook"][1]["location"] = "imgui_internal:2977" defs["igAddContextHook"][1]["namespace"] = "ImGui" defs["igAddContextHook"][1]["ov_cimguiname"] = "igAddContextHook" defs["igAddContextHook"][1]["ret"] = "ImGuiID" defs["igAddContextHook"][1]["signature"] = "(ImGuiContext*,const ImGuiContextHook*)" defs["igAddContextHook"][1]["stname"] = "" defs["igAddContextHook"]["(ImGuiContext*,const ImGuiContextHook*)"] = defs["igAddContextHook"][1] +defs["igAddSettingsHandler"] = {} +defs["igAddSettingsHandler"][1] = {} +defs["igAddSettingsHandler"][1]["args"] = "(const ImGuiSettingsHandler* handler)" +defs["igAddSettingsHandler"][1]["argsT"] = {} +defs["igAddSettingsHandler"][1]["argsT"][1] = {} +defs["igAddSettingsHandler"][1]["argsT"][1]["name"] = "handler" +defs["igAddSettingsHandler"][1]["argsT"][1]["type"] = "const ImGuiSettingsHandler*" +defs["igAddSettingsHandler"][1]["argsoriginal"] = "(const ImGuiSettingsHandler* handler)" +defs["igAddSettingsHandler"][1]["call_args"] = "(handler)" +defs["igAddSettingsHandler"][1]["cimguiname"] = "igAddSettingsHandler" +defs["igAddSettingsHandler"][1]["defaults"] = {} +defs["igAddSettingsHandler"][1]["funcname"] = "AddSettingsHandler" +defs["igAddSettingsHandler"][1]["location"] = "imgui_internal:2997" +defs["igAddSettingsHandler"][1]["namespace"] = "ImGui" +defs["igAddSettingsHandler"][1]["ov_cimguiname"] = "igAddSettingsHandler" +defs["igAddSettingsHandler"][1]["ret"] = "void" +defs["igAddSettingsHandler"][1]["signature"] = "(const ImGuiSettingsHandler*)" +defs["igAddSettingsHandler"][1]["stname"] = "" +defs["igAddSettingsHandler"]["(const ImGuiSettingsHandler*)"] = defs["igAddSettingsHandler"][1] defs["igAlignTextToFramePadding"] = {} defs["igAlignTextToFramePadding"][1] = {} defs["igAlignTextToFramePadding"][1]["args"] = "()" @@ -10648,7 +11153,7 @@ defs["igAlignTextToFramePadding"][1]["call_args"] = "()" defs["igAlignTextToFramePadding"][1]["cimguiname"] = "igAlignTextToFramePadding" defs["igAlignTextToFramePadding"][1]["defaults"] = {} defs["igAlignTextToFramePadding"][1]["funcname"] = "AlignTextToFramePadding" -defs["igAlignTextToFramePadding"][1]["location"] = "imgui:468" +defs["igAlignTextToFramePadding"][1]["location"] = "imgui:465" defs["igAlignTextToFramePadding"][1]["namespace"] = "ImGui" defs["igAlignTextToFramePadding"][1]["ov_cimguiname"] = "igAlignTextToFramePadding" defs["igAlignTextToFramePadding"][1]["ret"] = "void" @@ -10670,7 +11175,7 @@ defs["igArrowButton"][1]["call_args"] = "(str_id,dir)" defs["igArrowButton"][1]["cimguiname"] = "igArrowButton" defs["igArrowButton"][1]["defaults"] = {} defs["igArrowButton"][1]["funcname"] = "ArrowButton" -defs["igArrowButton"][1]["location"] = "imgui:515" +defs["igArrowButton"][1]["location"] = "imgui:512" defs["igArrowButton"][1]["namespace"] = "ImGui" defs["igArrowButton"][1]["ov_cimguiname"] = "igArrowButton" defs["igArrowButton"][1]["ret"] = "bool" @@ -10699,7 +11204,7 @@ defs["igArrowButtonEx"][1]["cimguiname"] = "igArrowButtonEx" defs["igArrowButtonEx"][1]["defaults"] = {} defs["igArrowButtonEx"][1]["defaults"]["flags"] = "0" defs["igArrowButtonEx"][1]["funcname"] = "ArrowButtonEx" -defs["igArrowButtonEx"][1]["location"] = "imgui_internal:3006" +defs["igArrowButtonEx"][1]["location"] = "imgui_internal:3354" defs["igArrowButtonEx"][1]["namespace"] = "ImGui" defs["igArrowButtonEx"][1]["ov_cimguiname"] = "igArrowButtonEx" defs["igArrowButtonEx"][1]["ret"] = "bool" @@ -10726,7 +11231,7 @@ defs["igBegin"][1]["defaults"] = {} defs["igBegin"][1]["defaults"]["flags"] = "0" defs["igBegin"][1]["defaults"]["p_open"] = "NULL" defs["igBegin"][1]["funcname"] = "Begin" -defs["igBegin"][1]["location"] = "imgui:342" +defs["igBegin"][1]["location"] = "imgui:336" defs["igBegin"][1]["namespace"] = "ImGui" defs["igBegin"][1]["ov_cimguiname"] = "igBegin" defs["igBegin"][1]["ret"] = "bool" @@ -10757,9 +11262,9 @@ defs["igBeginChild"][1]["defaults"]["border"] = "false" defs["igBeginChild"][1]["defaults"]["flags"] = "0" defs["igBeginChild"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igBeginChild"][1]["funcname"] = "BeginChild" -defs["igBeginChild"][1]["location"] = "imgui:353" +defs["igBeginChild"][1]["location"] = "imgui:347" defs["igBeginChild"][1]["namespace"] = "ImGui" -defs["igBeginChild"][1]["ov_cimguiname"] = "igBeginChildStr" +defs["igBeginChild"][1]["ov_cimguiname"] = "igBeginChild_Str" defs["igBeginChild"][1]["ret"] = "bool" defs["igBeginChild"][1]["signature"] = "(const char*,const ImVec2,bool,ImGuiWindowFlags)" defs["igBeginChild"][1]["stname"] = "" @@ -10786,9 +11291,9 @@ defs["igBeginChild"][2]["defaults"]["border"] = "false" defs["igBeginChild"][2]["defaults"]["flags"] = "0" defs["igBeginChild"][2]["defaults"]["size"] = "ImVec2(0,0)" defs["igBeginChild"][2]["funcname"] = "BeginChild" -defs["igBeginChild"][2]["location"] = "imgui:354" +defs["igBeginChild"][2]["location"] = "imgui:348" defs["igBeginChild"][2]["namespace"] = "ImGui" -defs["igBeginChild"][2]["ov_cimguiname"] = "igBeginChildID" +defs["igBeginChild"][2]["ov_cimguiname"] = "igBeginChild_ID" defs["igBeginChild"][2]["ret"] = "bool" defs["igBeginChild"][2]["signature"] = "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)" defs["igBeginChild"][2]["stname"] = "" @@ -10818,7 +11323,7 @@ defs["igBeginChildEx"][1]["call_args"] = "(name,id,size_arg,border,flags)" defs["igBeginChildEx"][1]["cimguiname"] = "igBeginChildEx" defs["igBeginChildEx"][1]["defaults"] = {} defs["igBeginChildEx"][1]["funcname"] = "BeginChildEx" -defs["igBeginChildEx"][1]["location"] = "imgui_internal:2775" +defs["igBeginChildEx"][1]["location"] = "imgui_internal:3060" defs["igBeginChildEx"][1]["namespace"] = "ImGui" defs["igBeginChildEx"][1]["ov_cimguiname"] = "igBeginChildEx" defs["igBeginChildEx"][1]["ret"] = "bool" @@ -10844,7 +11349,7 @@ defs["igBeginChildFrame"][1]["cimguiname"] = "igBeginChildFrame" defs["igBeginChildFrame"][1]["defaults"] = {} defs["igBeginChildFrame"][1]["defaults"]["flags"] = "0" defs["igBeginChildFrame"][1]["funcname"] = "BeginChildFrame" -defs["igBeginChildFrame"][1]["location"] = "imgui:905" +defs["igBeginChildFrame"][1]["location"] = "imgui:904" defs["igBeginChildFrame"][1]["namespace"] = "ImGui" defs["igBeginChildFrame"][1]["ov_cimguiname"] = "igBeginChildFrame" defs["igBeginChildFrame"][1]["ret"] = "bool" @@ -10870,7 +11375,7 @@ defs["igBeginColumns"][1]["cimguiname"] = "igBeginColumns" defs["igBeginColumns"][1]["defaults"] = {} defs["igBeginColumns"][1]["defaults"]["flags"] = "0" defs["igBeginColumns"][1]["funcname"] = "BeginColumns" -defs["igBeginColumns"][1]["location"] = "imgui_internal:2894" +defs["igBeginColumns"][1]["location"] = "imgui_internal:3245" defs["igBeginColumns"][1]["namespace"] = "ImGui" defs["igBeginColumns"][1]["ov_cimguiname"] = "igBeginColumns" defs["igBeginColumns"][1]["ret"] = "void" @@ -10921,7 +11426,7 @@ defs["igBeginComboPopup"][1]["call_args"] = "(popup_id,bb,flags)" defs["igBeginComboPopup"][1]["cimguiname"] = "igBeginComboPopup" defs["igBeginComboPopup"][1]["defaults"] = {} defs["igBeginComboPopup"][1]["funcname"] = "BeginComboPopup" -defs["igBeginComboPopup"][1]["location"] = "imgui_internal:2795" +defs["igBeginComboPopup"][1]["location"] = "imgui_internal:3080" defs["igBeginComboPopup"][1]["namespace"] = "ImGui" defs["igBeginComboPopup"][1]["ov_cimguiname"] = "igBeginComboPopup" defs["igBeginComboPopup"][1]["ret"] = "bool" @@ -10937,7 +11442,7 @@ defs["igBeginComboPreview"][1]["call_args"] = "()" defs["igBeginComboPreview"][1]["cimguiname"] = "igBeginComboPreview" defs["igBeginComboPreview"][1]["defaults"] = {} defs["igBeginComboPreview"][1]["funcname"] = "BeginComboPreview" -defs["igBeginComboPreview"][1]["location"] = "imgui_internal:2796" +defs["igBeginComboPreview"][1]["location"] = "imgui_internal:3081" defs["igBeginComboPreview"][1]["namespace"] = "ImGui" defs["igBeginComboPreview"][1]["ov_cimguiname"] = "igBeginComboPreview" defs["igBeginComboPreview"][1]["ret"] = "bool" @@ -10957,7 +11462,7 @@ defs["igBeginDisabled"][1]["cimguiname"] = "igBeginDisabled" defs["igBeginDisabled"][1]["defaults"] = {} defs["igBeginDisabled"][1]["defaults"]["disabled"] = "true" defs["igBeginDisabled"][1]["funcname"] = "BeginDisabled" -defs["igBeginDisabled"][1]["location"] = "imgui:852" +defs["igBeginDisabled"][1]["location"] = "imgui:849" defs["igBeginDisabled"][1]["namespace"] = "ImGui" defs["igBeginDisabled"][1]["ov_cimguiname"] = "igBeginDisabled" defs["igBeginDisabled"][1]["ret"] = "void" @@ -10976,7 +11481,7 @@ defs["igBeginDockableDragDropSource"][1]["call_args"] = "(window)" defs["igBeginDockableDragDropSource"][1]["cimguiname"] = "igBeginDockableDragDropSource" defs["igBeginDockableDragDropSource"][1]["defaults"] = {} defs["igBeginDockableDragDropSource"][1]["funcname"] = "BeginDockableDragDropSource" -defs["igBeginDockableDragDropSource"][1]["location"] = "imgui_internal:2859" +defs["igBeginDockableDragDropSource"][1]["location"] = "imgui_internal:3196" defs["igBeginDockableDragDropSource"][1]["namespace"] = "ImGui" defs["igBeginDockableDragDropSource"][1]["ov_cimguiname"] = "igBeginDockableDragDropSource" defs["igBeginDockableDragDropSource"][1]["ret"] = "void" @@ -10995,7 +11500,7 @@ defs["igBeginDockableDragDropTarget"][1]["call_args"] = "(window)" defs["igBeginDockableDragDropTarget"][1]["cimguiname"] = "igBeginDockableDragDropTarget" defs["igBeginDockableDragDropTarget"][1]["defaults"] = {} defs["igBeginDockableDragDropTarget"][1]["funcname"] = "BeginDockableDragDropTarget" -defs["igBeginDockableDragDropTarget"][1]["location"] = "imgui_internal:2860" +defs["igBeginDockableDragDropTarget"][1]["location"] = "imgui_internal:3197" defs["igBeginDockableDragDropTarget"][1]["namespace"] = "ImGui" defs["igBeginDockableDragDropTarget"][1]["ov_cimguiname"] = "igBeginDockableDragDropTarget" defs["igBeginDockableDragDropTarget"][1]["ret"] = "void" @@ -11017,7 +11522,7 @@ defs["igBeginDocked"][1]["call_args"] = "(window,p_open)" defs["igBeginDocked"][1]["cimguiname"] = "igBeginDocked" defs["igBeginDocked"][1]["defaults"] = {} defs["igBeginDocked"][1]["funcname"] = "BeginDocked" -defs["igBeginDocked"][1]["location"] = "imgui_internal:2858" +defs["igBeginDocked"][1]["location"] = "imgui_internal:3195" defs["igBeginDocked"][1]["namespace"] = "ImGui" defs["igBeginDocked"][1]["ov_cimguiname"] = "igBeginDocked" defs["igBeginDocked"][1]["ret"] = "void" @@ -11037,7 +11542,7 @@ defs["igBeginDragDropSource"][1]["cimguiname"] = "igBeginDragDropSource" defs["igBeginDragDropSource"][1]["defaults"] = {} defs["igBeginDragDropSource"][1]["defaults"]["flags"] = "0" defs["igBeginDragDropSource"][1]["funcname"] = "BeginDragDropSource" -defs["igBeginDragDropSource"][1]["location"] = "imgui:840" +defs["igBeginDragDropSource"][1]["location"] = "imgui:837" defs["igBeginDragDropSource"][1]["namespace"] = "ImGui" defs["igBeginDragDropSource"][1]["ov_cimguiname"] = "igBeginDragDropSource" defs["igBeginDragDropSource"][1]["ret"] = "bool" @@ -11053,7 +11558,7 @@ defs["igBeginDragDropTarget"][1]["call_args"] = "()" defs["igBeginDragDropTarget"][1]["cimguiname"] = "igBeginDragDropTarget" defs["igBeginDragDropTarget"][1]["defaults"] = {} defs["igBeginDragDropTarget"][1]["funcname"] = "BeginDragDropTarget" -defs["igBeginDragDropTarget"][1]["location"] = "imgui:843" +defs["igBeginDragDropTarget"][1]["location"] = "imgui:840" defs["igBeginDragDropTarget"][1]["namespace"] = "ImGui" defs["igBeginDragDropTarget"][1]["ov_cimguiname"] = "igBeginDragDropTarget" defs["igBeginDragDropTarget"][1]["ret"] = "bool" @@ -11075,7 +11580,7 @@ defs["igBeginDragDropTargetCustom"][1]["call_args"] = "(bb,id)" defs["igBeginDragDropTargetCustom"][1]["cimguiname"] = "igBeginDragDropTargetCustom" defs["igBeginDragDropTargetCustom"][1]["defaults"] = {} defs["igBeginDragDropTargetCustom"][1]["funcname"] = "BeginDragDropTargetCustom" -defs["igBeginDragDropTargetCustom"][1]["location"] = "imgui_internal:2888" +defs["igBeginDragDropTargetCustom"][1]["location"] = "imgui_internal:3238" defs["igBeginDragDropTargetCustom"][1]["namespace"] = "ImGui" defs["igBeginDragDropTargetCustom"][1]["ov_cimguiname"] = "igBeginDragDropTargetCustom" defs["igBeginDragDropTargetCustom"][1]["ret"] = "bool" @@ -11091,7 +11596,7 @@ defs["igBeginGroup"][1]["call_args"] = "()" defs["igBeginGroup"][1]["cimguiname"] = "igBeginGroup" defs["igBeginGroup"][1]["defaults"] = {} defs["igBeginGroup"][1]["funcname"] = "BeginGroup" -defs["igBeginGroup"][1]["location"] = "imgui:457" +defs["igBeginGroup"][1]["location"] = "imgui:454" defs["igBeginGroup"][1]["namespace"] = "ImGui" defs["igBeginGroup"][1]["ov_cimguiname"] = "igBeginGroup" defs["igBeginGroup"][1]["ret"] = "void" @@ -11114,7 +11619,7 @@ defs["igBeginListBox"][1]["cimguiname"] = "igBeginListBox" defs["igBeginListBox"][1]["defaults"] = {} defs["igBeginListBox"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igBeginListBox"][1]["funcname"] = "BeginListBox" -defs["igBeginListBox"][1]["location"] = "imgui:640" +defs["igBeginListBox"][1]["location"] = "imgui:641" defs["igBeginListBox"][1]["namespace"] = "ImGui" defs["igBeginListBox"][1]["ov_cimguiname"] = "igBeginListBox" defs["igBeginListBox"][1]["ret"] = "bool" @@ -11130,7 +11635,7 @@ defs["igBeginMainMenuBar"][1]["call_args"] = "()" defs["igBeginMainMenuBar"][1]["cimguiname"] = "igBeginMainMenuBar" defs["igBeginMainMenuBar"][1]["defaults"] = {} defs["igBeginMainMenuBar"][1]["funcname"] = "BeginMainMenuBar" -defs["igBeginMainMenuBar"][1]["location"] = "imgui:666" +defs["igBeginMainMenuBar"][1]["location"] = "imgui:667" defs["igBeginMainMenuBar"][1]["namespace"] = "ImGui" defs["igBeginMainMenuBar"][1]["ov_cimguiname"] = "igBeginMainMenuBar" defs["igBeginMainMenuBar"][1]["ret"] = "bool" @@ -11153,7 +11658,7 @@ defs["igBeginMenu"][1]["cimguiname"] = "igBeginMenu" defs["igBeginMenu"][1]["defaults"] = {} defs["igBeginMenu"][1]["defaults"]["enabled"] = "true" defs["igBeginMenu"][1]["funcname"] = "BeginMenu" -defs["igBeginMenu"][1]["location"] = "imgui:668" +defs["igBeginMenu"][1]["location"] = "imgui:669" defs["igBeginMenu"][1]["namespace"] = "ImGui" defs["igBeginMenu"][1]["ov_cimguiname"] = "igBeginMenu" defs["igBeginMenu"][1]["ret"] = "bool" @@ -11169,7 +11674,7 @@ defs["igBeginMenuBar"][1]["call_args"] = "()" defs["igBeginMenuBar"][1]["cimguiname"] = "igBeginMenuBar" defs["igBeginMenuBar"][1]["defaults"] = {} defs["igBeginMenuBar"][1]["funcname"] = "BeginMenuBar" -defs["igBeginMenuBar"][1]["location"] = "imgui:664" +defs["igBeginMenuBar"][1]["location"] = "imgui:665" defs["igBeginMenuBar"][1]["namespace"] = "ImGui" defs["igBeginMenuBar"][1]["ov_cimguiname"] = "igBeginMenuBar" defs["igBeginMenuBar"][1]["ret"] = "bool" @@ -11195,7 +11700,7 @@ defs["igBeginMenuEx"][1]["cimguiname"] = "igBeginMenuEx" defs["igBeginMenuEx"][1]["defaults"] = {} defs["igBeginMenuEx"][1]["defaults"]["enabled"] = "true" defs["igBeginMenuEx"][1]["funcname"] = "BeginMenuEx" -defs["igBeginMenuEx"][1]["location"] = "imgui_internal:2791" +defs["igBeginMenuEx"][1]["location"] = "imgui_internal:3076" defs["igBeginMenuEx"][1]["namespace"] = "ImGui" defs["igBeginMenuEx"][1]["ov_cimguiname"] = "igBeginMenuEx" defs["igBeginMenuEx"][1]["ret"] = "bool" @@ -11218,7 +11723,7 @@ defs["igBeginPopup"][1]["cimguiname"] = "igBeginPopup" defs["igBeginPopup"][1]["defaults"] = {} defs["igBeginPopup"][1]["defaults"]["flags"] = "0" defs["igBeginPopup"][1]["funcname"] = "BeginPopup" -defs["igBeginPopup"][1]["location"] = "imgui:692" +defs["igBeginPopup"][1]["location"] = "imgui:693" defs["igBeginPopup"][1]["namespace"] = "ImGui" defs["igBeginPopup"][1]["ov_cimguiname"] = "igBeginPopup" defs["igBeginPopup"][1]["ret"] = "bool" @@ -11242,7 +11747,7 @@ defs["igBeginPopupContextItem"][1]["defaults"] = {} defs["igBeginPopupContextItem"][1]["defaults"]["popup_flags"] = "1" defs["igBeginPopupContextItem"][1]["defaults"]["str_id"] = "NULL" defs["igBeginPopupContextItem"][1]["funcname"] = "BeginPopupContextItem" -defs["igBeginPopupContextItem"][1]["location"] = "imgui:713" +defs["igBeginPopupContextItem"][1]["location"] = "imgui:715" defs["igBeginPopupContextItem"][1]["namespace"] = "ImGui" defs["igBeginPopupContextItem"][1]["ov_cimguiname"] = "igBeginPopupContextItem" defs["igBeginPopupContextItem"][1]["ret"] = "bool" @@ -11266,7 +11771,7 @@ defs["igBeginPopupContextVoid"][1]["defaults"] = {} defs["igBeginPopupContextVoid"][1]["defaults"]["popup_flags"] = "1" defs["igBeginPopupContextVoid"][1]["defaults"]["str_id"] = "NULL" defs["igBeginPopupContextVoid"][1]["funcname"] = "BeginPopupContextVoid" -defs["igBeginPopupContextVoid"][1]["location"] = "imgui:715" +defs["igBeginPopupContextVoid"][1]["location"] = "imgui:717" defs["igBeginPopupContextVoid"][1]["namespace"] = "ImGui" defs["igBeginPopupContextVoid"][1]["ov_cimguiname"] = "igBeginPopupContextVoid" defs["igBeginPopupContextVoid"][1]["ret"] = "bool" @@ -11290,7 +11795,7 @@ defs["igBeginPopupContextWindow"][1]["defaults"] = {} defs["igBeginPopupContextWindow"][1]["defaults"]["popup_flags"] = "1" defs["igBeginPopupContextWindow"][1]["defaults"]["str_id"] = "NULL" defs["igBeginPopupContextWindow"][1]["funcname"] = "BeginPopupContextWindow" -defs["igBeginPopupContextWindow"][1]["location"] = "imgui:714" +defs["igBeginPopupContextWindow"][1]["location"] = "imgui:716" defs["igBeginPopupContextWindow"][1]["namespace"] = "ImGui" defs["igBeginPopupContextWindow"][1]["ov_cimguiname"] = "igBeginPopupContextWindow" defs["igBeginPopupContextWindow"][1]["ret"] = "bool" @@ -11312,7 +11817,7 @@ defs["igBeginPopupEx"][1]["call_args"] = "(id,extra_flags)" defs["igBeginPopupEx"][1]["cimguiname"] = "igBeginPopupEx" defs["igBeginPopupEx"][1]["defaults"] = {} defs["igBeginPopupEx"][1]["funcname"] = "BeginPopupEx" -defs["igBeginPopupEx"][1]["location"] = "imgui_internal:2781" +defs["igBeginPopupEx"][1]["location"] = "imgui_internal:3066" defs["igBeginPopupEx"][1]["namespace"] = "ImGui" defs["igBeginPopupEx"][1]["ov_cimguiname"] = "igBeginPopupEx" defs["igBeginPopupEx"][1]["ret"] = "bool" @@ -11339,7 +11844,7 @@ defs["igBeginPopupModal"][1]["defaults"] = {} defs["igBeginPopupModal"][1]["defaults"]["flags"] = "0" defs["igBeginPopupModal"][1]["defaults"]["p_open"] = "NULL" defs["igBeginPopupModal"][1]["funcname"] = "BeginPopupModal" -defs["igBeginPopupModal"][1]["location"] = "imgui:693" +defs["igBeginPopupModal"][1]["location"] = "imgui:694" defs["igBeginPopupModal"][1]["namespace"] = "ImGui" defs["igBeginPopupModal"][1]["ov_cimguiname"] = "igBeginPopupModal" defs["igBeginPopupModal"][1]["ret"] = "bool" @@ -11362,7 +11867,7 @@ defs["igBeginTabBar"][1]["cimguiname"] = "igBeginTabBar" defs["igBeginTabBar"][1]["defaults"] = {} defs["igBeginTabBar"][1]["defaults"]["flags"] = "0" defs["igBeginTabBar"][1]["funcname"] = "BeginTabBar" -defs["igBeginTabBar"][1]["location"] = "imgui:798" +defs["igBeginTabBar"][1]["location"] = "imgui:795" defs["igBeginTabBar"][1]["namespace"] = "ImGui" defs["igBeginTabBar"][1]["ov_cimguiname"] = "igBeginTabBar" defs["igBeginTabBar"][1]["ret"] = "bool" @@ -11390,7 +11895,7 @@ defs["igBeginTabBarEx"][1]["call_args"] = "(tab_bar,bb,flags,dock_node)" defs["igBeginTabBarEx"][1]["cimguiname"] = "igBeginTabBarEx" defs["igBeginTabBarEx"][1]["defaults"] = {} defs["igBeginTabBarEx"][1]["funcname"] = "BeginTabBarEx" -defs["igBeginTabBarEx"][1]["location"] = "imgui_internal:2956" +defs["igBeginTabBarEx"][1]["location"] = "imgui_internal:3309" defs["igBeginTabBarEx"][1]["namespace"] = "ImGui" defs["igBeginTabBarEx"][1]["ov_cimguiname"] = "igBeginTabBarEx" defs["igBeginTabBarEx"][1]["ret"] = "bool" @@ -11417,7 +11922,7 @@ defs["igBeginTabItem"][1]["defaults"] = {} defs["igBeginTabItem"][1]["defaults"]["flags"] = "0" defs["igBeginTabItem"][1]["defaults"]["p_open"] = "NULL" defs["igBeginTabItem"][1]["funcname"] = "BeginTabItem" -defs["igBeginTabItem"][1]["location"] = "imgui:800" +defs["igBeginTabItem"][1]["location"] = "imgui:797" defs["igBeginTabItem"][1]["namespace"] = "ImGui" defs["igBeginTabItem"][1]["ov_cimguiname"] = "igBeginTabItem" defs["igBeginTabItem"][1]["ret"] = "bool" @@ -11488,7 +11993,7 @@ defs["igBeginTableEx"][1]["defaults"]["flags"] = "0" defs["igBeginTableEx"][1]["defaults"]["inner_width"] = "0.0f" defs["igBeginTableEx"][1]["defaults"]["outer_size"] = "ImVec2(0,0)" defs["igBeginTableEx"][1]["funcname"] = "BeginTableEx" -defs["igBeginTableEx"][1]["location"] = "imgui_internal:2916" +defs["igBeginTableEx"][1]["location"] = "imgui_internal:3267" defs["igBeginTableEx"][1]["namespace"] = "ImGui" defs["igBeginTableEx"][1]["ov_cimguiname"] = "igBeginTableEx" defs["igBeginTableEx"][1]["ret"] = "bool" @@ -11504,7 +12009,7 @@ defs["igBeginTooltip"][1]["call_args"] = "()" defs["igBeginTooltip"][1]["cimguiname"] = "igBeginTooltip" defs["igBeginTooltip"][1]["defaults"] = {} defs["igBeginTooltip"][1]["funcname"] = "BeginTooltip" -defs["igBeginTooltip"][1]["location"] = "imgui:675" +defs["igBeginTooltip"][1]["location"] = "imgui:676" defs["igBeginTooltip"][1]["namespace"] = "ImGui" defs["igBeginTooltip"][1]["ov_cimguiname"] = "igBeginTooltip" defs["igBeginTooltip"][1]["ret"] = "void" @@ -11526,7 +12031,7 @@ defs["igBeginTooltipEx"][1]["call_args"] = "(tooltip_flags,extra_window_flags)" defs["igBeginTooltipEx"][1]["cimguiname"] = "igBeginTooltipEx" defs["igBeginTooltipEx"][1]["defaults"] = {} defs["igBeginTooltipEx"][1]["funcname"] = "BeginTooltipEx" -defs["igBeginTooltipEx"][1]["location"] = "imgui_internal:2782" +defs["igBeginTooltipEx"][1]["location"] = "imgui_internal:3067" defs["igBeginTooltipEx"][1]["namespace"] = "ImGui" defs["igBeginTooltipEx"][1]["ov_cimguiname"] = "igBeginTooltipEx" defs["igBeginTooltipEx"][1]["ret"] = "void" @@ -11557,7 +12062,7 @@ defs["igBeginViewportSideBar"][1]["call_args"] = "(name,viewport,dir,size,window defs["igBeginViewportSideBar"][1]["cimguiname"] = "igBeginViewportSideBar" defs["igBeginViewportSideBar"][1]["defaults"] = {} defs["igBeginViewportSideBar"][1]["funcname"] = "BeginViewportSideBar" -defs["igBeginViewportSideBar"][1]["location"] = "imgui_internal:2790" +defs["igBeginViewportSideBar"][1]["location"] = "imgui_internal:3075" defs["igBeginViewportSideBar"][1]["namespace"] = "ImGui" defs["igBeginViewportSideBar"][1]["ov_cimguiname"] = "igBeginViewportSideBar" defs["igBeginViewportSideBar"][1]["ret"] = "bool" @@ -11576,7 +12081,7 @@ defs["igBringWindowToDisplayBack"][1]["call_args"] = "(window)" defs["igBringWindowToDisplayBack"][1]["cimguiname"] = "igBringWindowToDisplayBack" defs["igBringWindowToDisplayBack"][1]["defaults"] = {} defs["igBringWindowToDisplayBack"][1]["funcname"] = "BringWindowToDisplayBack" -defs["igBringWindowToDisplayBack"][1]["location"] = "imgui_internal:2666" +defs["igBringWindowToDisplayBack"][1]["location"] = "imgui_internal:2954" defs["igBringWindowToDisplayBack"][1]["namespace"] = "ImGui" defs["igBringWindowToDisplayBack"][1]["ov_cimguiname"] = "igBringWindowToDisplayBack" defs["igBringWindowToDisplayBack"][1]["ret"] = "void" @@ -11598,7 +12103,7 @@ defs["igBringWindowToDisplayBehind"][1]["call_args"] = "(window,above_window)" defs["igBringWindowToDisplayBehind"][1]["cimguiname"] = "igBringWindowToDisplayBehind" defs["igBringWindowToDisplayBehind"][1]["defaults"] = {} defs["igBringWindowToDisplayBehind"][1]["funcname"] = "BringWindowToDisplayBehind" -defs["igBringWindowToDisplayBehind"][1]["location"] = "imgui_internal:2667" +defs["igBringWindowToDisplayBehind"][1]["location"] = "imgui_internal:2955" defs["igBringWindowToDisplayBehind"][1]["namespace"] = "ImGui" defs["igBringWindowToDisplayBehind"][1]["ov_cimguiname"] = "igBringWindowToDisplayBehind" defs["igBringWindowToDisplayBehind"][1]["ret"] = "void" @@ -11617,7 +12122,7 @@ defs["igBringWindowToDisplayFront"][1]["call_args"] = "(window)" defs["igBringWindowToDisplayFront"][1]["cimguiname"] = "igBringWindowToDisplayFront" defs["igBringWindowToDisplayFront"][1]["defaults"] = {} defs["igBringWindowToDisplayFront"][1]["funcname"] = "BringWindowToDisplayFront" -defs["igBringWindowToDisplayFront"][1]["location"] = "imgui_internal:2665" +defs["igBringWindowToDisplayFront"][1]["location"] = "imgui_internal:2953" defs["igBringWindowToDisplayFront"][1]["namespace"] = "ImGui" defs["igBringWindowToDisplayFront"][1]["ov_cimguiname"] = "igBringWindowToDisplayFront" defs["igBringWindowToDisplayFront"][1]["ret"] = "void" @@ -11636,7 +12141,7 @@ defs["igBringWindowToFocusFront"][1]["call_args"] = "(window)" defs["igBringWindowToFocusFront"][1]["cimguiname"] = "igBringWindowToFocusFront" defs["igBringWindowToFocusFront"][1]["defaults"] = {} defs["igBringWindowToFocusFront"][1]["funcname"] = "BringWindowToFocusFront" -defs["igBringWindowToFocusFront"][1]["location"] = "imgui_internal:2664" +defs["igBringWindowToFocusFront"][1]["location"] = "imgui_internal:2952" defs["igBringWindowToFocusFront"][1]["namespace"] = "ImGui" defs["igBringWindowToFocusFront"][1]["ov_cimguiname"] = "igBringWindowToFocusFront" defs["igBringWindowToFocusFront"][1]["ret"] = "void" @@ -11652,7 +12157,7 @@ defs["igBullet"][1]["call_args"] = "()" defs["igBullet"][1]["cimguiname"] = "igBullet" defs["igBullet"][1]["defaults"] = {} defs["igBullet"][1]["funcname"] = "Bullet" -defs["igBullet"][1]["location"] = "imgui:524" +defs["igBullet"][1]["location"] = "imgui:519" defs["igBullet"][1]["namespace"] = "ImGui" defs["igBullet"][1]["ov_cimguiname"] = "igBullet" defs["igBullet"][1]["ret"] = "void" @@ -11675,7 +12180,7 @@ defs["igBulletText"][1]["cimguiname"] = "igBulletText" defs["igBulletText"][1]["defaults"] = {} defs["igBulletText"][1]["funcname"] = "BulletText" defs["igBulletText"][1]["isvararg"] = "...)" -defs["igBulletText"][1]["location"] = "imgui:506" +defs["igBulletText"][1]["location"] = "imgui:503" defs["igBulletText"][1]["namespace"] = "ImGui" defs["igBulletText"][1]["ov_cimguiname"] = "igBulletText" defs["igBulletText"][1]["ret"] = "void" @@ -11697,7 +12202,7 @@ defs["igBulletTextV"][1]["call_args"] = "(fmt,args)" defs["igBulletTextV"][1]["cimguiname"] = "igBulletTextV" defs["igBulletTextV"][1]["defaults"] = {} defs["igBulletTextV"][1]["funcname"] = "BulletTextV" -defs["igBulletTextV"][1]["location"] = "imgui:507" +defs["igBulletTextV"][1]["location"] = "imgui:504" defs["igBulletTextV"][1]["namespace"] = "ImGui" defs["igBulletTextV"][1]["ov_cimguiname"] = "igBulletTextV" defs["igBulletTextV"][1]["ret"] = "void" @@ -11720,7 +12225,7 @@ defs["igButton"][1]["cimguiname"] = "igButton" defs["igButton"][1]["defaults"] = {} defs["igButton"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igButton"][1]["funcname"] = "Button" -defs["igButton"][1]["location"] = "imgui:512" +defs["igButton"][1]["location"] = "imgui:509" defs["igButton"][1]["namespace"] = "ImGui" defs["igButton"][1]["ov_cimguiname"] = "igButton" defs["igButton"][1]["ret"] = "bool" @@ -11752,7 +12257,7 @@ defs["igButtonBehavior"][1]["cimguiname"] = "igButtonBehavior" defs["igButtonBehavior"][1]["defaults"] = {} defs["igButtonBehavior"][1]["defaults"]["flags"] = "0" defs["igButtonBehavior"][1]["funcname"] = "ButtonBehavior" -defs["igButtonBehavior"][1]["location"] = "imgui_internal:3019" +defs["igButtonBehavior"][1]["location"] = "imgui_internal:3367" defs["igButtonBehavior"][1]["namespace"] = "ImGui" defs["igButtonBehavior"][1]["ov_cimguiname"] = "igButtonBehavior" defs["igButtonBehavior"][1]["ret"] = "bool" @@ -11779,7 +12284,7 @@ defs["igButtonEx"][1]["defaults"] = {} defs["igButtonEx"][1]["defaults"]["flags"] = "0" defs["igButtonEx"][1]["defaults"]["size_arg"] = "ImVec2(0,0)" defs["igButtonEx"][1]["funcname"] = "ButtonEx" -defs["igButtonEx"][1]["location"] = "imgui_internal:3003" +defs["igButtonEx"][1]["location"] = "imgui_internal:3351" defs["igButtonEx"][1]["namespace"] = "ImGui" defs["igButtonEx"][1]["ov_cimguiname"] = "igButtonEx" defs["igButtonEx"][1]["ret"] = "bool" @@ -11807,7 +12312,7 @@ defs["igCalcItemSize"][1]["call_args"] = "(size,default_w,default_h)" defs["igCalcItemSize"][1]["cimguiname"] = "igCalcItemSize" defs["igCalcItemSize"][1]["defaults"] = {} defs["igCalcItemSize"][1]["funcname"] = "CalcItemSize" -defs["igCalcItemSize"][1]["location"] = "imgui_internal:2746" +defs["igCalcItemSize"][1]["location"] = "imgui_internal:3042" defs["igCalcItemSize"][1]["namespace"] = "ImGui" defs["igCalcItemSize"][1]["nonUDT"] = 1 defs["igCalcItemSize"][1]["ov_cimguiname"] = "igCalcItemSize" @@ -11824,7 +12329,7 @@ defs["igCalcItemWidth"][1]["call_args"] = "()" defs["igCalcItemWidth"][1]["cimguiname"] = "igCalcItemWidth" defs["igCalcItemWidth"][1]["defaults"] = {} defs["igCalcItemWidth"][1]["funcname"] = "CalcItemWidth" -defs["igCalcItemWidth"][1]["location"] = "imgui:429" +defs["igCalcItemWidth"][1]["location"] = "imgui:426" defs["igCalcItemWidth"][1]["namespace"] = "ImGui" defs["igCalcItemWidth"][1]["ov_cimguiname"] = "igCalcItemWidth" defs["igCalcItemWidth"][1]["ret"] = "float" @@ -11849,7 +12354,7 @@ defs["igCalcRoundingFlagsForRectInRect"][1]["call_args"] = "(r_in,r_outer,thresh defs["igCalcRoundingFlagsForRectInRect"][1]["cimguiname"] = "igCalcRoundingFlagsForRectInRect" defs["igCalcRoundingFlagsForRectInRect"][1]["defaults"] = {} defs["igCalcRoundingFlagsForRectInRect"][1]["funcname"] = "CalcRoundingFlagsForRectInRect" -defs["igCalcRoundingFlagsForRectInRect"][1]["location"] = "imgui_internal:2993" +defs["igCalcRoundingFlagsForRectInRect"][1]["location"] = "imgui_internal:3347" defs["igCalcRoundingFlagsForRectInRect"][1]["namespace"] = "ImGui" defs["igCalcRoundingFlagsForRectInRect"][1]["ov_cimguiname"] = "igCalcRoundingFlagsForRectInRect" defs["igCalcRoundingFlagsForRectInRect"][1]["ret"] = "ImDrawFlags" @@ -11883,7 +12388,7 @@ defs["igCalcTextSize"][1]["defaults"]["hide_text_after_double_hash"] = "false" defs["igCalcTextSize"][1]["defaults"]["text_end"] = "NULL" defs["igCalcTextSize"][1]["defaults"]["wrap_width"] = "-1.0f" defs["igCalcTextSize"][1]["funcname"] = "CalcTextSize" -defs["igCalcTextSize"][1]["location"] = "imgui:909" +defs["igCalcTextSize"][1]["location"] = "imgui:908" defs["igCalcTextSize"][1]["namespace"] = "ImGui" defs["igCalcTextSize"][1]["nonUDT"] = 1 defs["igCalcTextSize"][1]["ov_cimguiname"] = "igCalcTextSize" @@ -11912,7 +12417,7 @@ defs["igCalcTypematicRepeatAmount"][1]["call_args"] = "(t0,t1,repeat_delay,repea defs["igCalcTypematicRepeatAmount"][1]["cimguiname"] = "igCalcTypematicRepeatAmount" defs["igCalcTypematicRepeatAmount"][1]["defaults"] = {} defs["igCalcTypematicRepeatAmount"][1]["funcname"] = "CalcTypematicRepeatAmount" -defs["igCalcTypematicRepeatAmount"][1]["location"] = "imgui_internal:2811" +defs["igCalcTypematicRepeatAmount"][1]["location"] = "imgui_internal:3122" defs["igCalcTypematicRepeatAmount"][1]["namespace"] = "ImGui" defs["igCalcTypematicRepeatAmount"][1]["ov_cimguiname"] = "igCalcTypematicRepeatAmount" defs["igCalcTypematicRepeatAmount"][1]["ret"] = "int" @@ -11934,7 +12439,7 @@ defs["igCalcWindowNextAutoFitSize"][1]["call_args"] = "(window)" defs["igCalcWindowNextAutoFitSize"][1]["cimguiname"] = "igCalcWindowNextAutoFitSize" defs["igCalcWindowNextAutoFitSize"][1]["defaults"] = {} defs["igCalcWindowNextAutoFitSize"][1]["funcname"] = "CalcWindowNextAutoFitSize" -defs["igCalcWindowNextAutoFitSize"][1]["location"] = "imgui_internal:2649" +defs["igCalcWindowNextAutoFitSize"][1]["location"] = "imgui_internal:2937" defs["igCalcWindowNextAutoFitSize"][1]["namespace"] = "ImGui" defs["igCalcWindowNextAutoFitSize"][1]["nonUDT"] = 1 defs["igCalcWindowNextAutoFitSize"][1]["ov_cimguiname"] = "igCalcWindowNextAutoFitSize" @@ -11957,7 +12462,7 @@ defs["igCalcWrapWidthForPos"][1]["call_args"] = "(pos,wrap_pos_x)" defs["igCalcWrapWidthForPos"][1]["cimguiname"] = "igCalcWrapWidthForPos" defs["igCalcWrapWidthForPos"][1]["defaults"] = {} defs["igCalcWrapWidthForPos"][1]["funcname"] = "CalcWrapWidthForPos" -defs["igCalcWrapWidthForPos"][1]["location"] = "imgui_internal:2747" +defs["igCalcWrapWidthForPos"][1]["location"] = "imgui_internal:3043" defs["igCalcWrapWidthForPos"][1]["namespace"] = "ImGui" defs["igCalcWrapWidthForPos"][1]["ov_cimguiname"] = "igCalcWrapWidthForPos" defs["igCalcWrapWidthForPos"][1]["ret"] = "float" @@ -11979,53 +12484,13 @@ defs["igCallContextHooks"][1]["call_args"] = "(context,type)" defs["igCallContextHooks"][1]["cimguiname"] = "igCallContextHooks" defs["igCallContextHooks"][1]["defaults"] = {} defs["igCallContextHooks"][1]["funcname"] = "CallContextHooks" -defs["igCallContextHooks"][1]["location"] = "imgui_internal:2690" +defs["igCallContextHooks"][1]["location"] = "imgui_internal:2979" defs["igCallContextHooks"][1]["namespace"] = "ImGui" defs["igCallContextHooks"][1]["ov_cimguiname"] = "igCallContextHooks" defs["igCallContextHooks"][1]["ret"] = "void" defs["igCallContextHooks"][1]["signature"] = "(ImGuiContext*,ImGuiContextHookType)" defs["igCallContextHooks"][1]["stname"] = "" defs["igCallContextHooks"]["(ImGuiContext*,ImGuiContextHookType)"] = defs["igCallContextHooks"][1] -defs["igCaptureKeyboardFromApp"] = {} -defs["igCaptureKeyboardFromApp"][1] = {} -defs["igCaptureKeyboardFromApp"][1]["args"] = "(bool want_capture_keyboard_value)" -defs["igCaptureKeyboardFromApp"][1]["argsT"] = {} -defs["igCaptureKeyboardFromApp"][1]["argsT"][1] = {} -defs["igCaptureKeyboardFromApp"][1]["argsT"][1]["name"] = "want_capture_keyboard_value" -defs["igCaptureKeyboardFromApp"][1]["argsT"][1]["type"] = "bool" -defs["igCaptureKeyboardFromApp"][1]["argsoriginal"] = "(bool want_capture_keyboard_value=true)" -defs["igCaptureKeyboardFromApp"][1]["call_args"] = "(want_capture_keyboard_value)" -defs["igCaptureKeyboardFromApp"][1]["cimguiname"] = "igCaptureKeyboardFromApp" -defs["igCaptureKeyboardFromApp"][1]["defaults"] = {} -defs["igCaptureKeyboardFromApp"][1]["defaults"]["want_capture_keyboard_value"] = "true" -defs["igCaptureKeyboardFromApp"][1]["funcname"] = "CaptureKeyboardFromApp" -defs["igCaptureKeyboardFromApp"][1]["location"] = "imgui:925" -defs["igCaptureKeyboardFromApp"][1]["namespace"] = "ImGui" -defs["igCaptureKeyboardFromApp"][1]["ov_cimguiname"] = "igCaptureKeyboardFromApp" -defs["igCaptureKeyboardFromApp"][1]["ret"] = "void" -defs["igCaptureKeyboardFromApp"][1]["signature"] = "(bool)" -defs["igCaptureKeyboardFromApp"][1]["stname"] = "" -defs["igCaptureKeyboardFromApp"]["(bool)"] = defs["igCaptureKeyboardFromApp"][1] -defs["igCaptureMouseFromApp"] = {} -defs["igCaptureMouseFromApp"][1] = {} -defs["igCaptureMouseFromApp"][1]["args"] = "(bool want_capture_mouse_value)" -defs["igCaptureMouseFromApp"][1]["argsT"] = {} -defs["igCaptureMouseFromApp"][1]["argsT"][1] = {} -defs["igCaptureMouseFromApp"][1]["argsT"][1]["name"] = "want_capture_mouse_value" -defs["igCaptureMouseFromApp"][1]["argsT"][1]["type"] = "bool" -defs["igCaptureMouseFromApp"][1]["argsoriginal"] = "(bool want_capture_mouse_value=true)" -defs["igCaptureMouseFromApp"][1]["call_args"] = "(want_capture_mouse_value)" -defs["igCaptureMouseFromApp"][1]["cimguiname"] = "igCaptureMouseFromApp" -defs["igCaptureMouseFromApp"][1]["defaults"] = {} -defs["igCaptureMouseFromApp"][1]["defaults"]["want_capture_mouse_value"] = "true" -defs["igCaptureMouseFromApp"][1]["funcname"] = "CaptureMouseFromApp" -defs["igCaptureMouseFromApp"][1]["location"] = "imgui:946" -defs["igCaptureMouseFromApp"][1]["namespace"] = "ImGui" -defs["igCaptureMouseFromApp"][1]["ov_cimguiname"] = "igCaptureMouseFromApp" -defs["igCaptureMouseFromApp"][1]["ret"] = "void" -defs["igCaptureMouseFromApp"][1]["signature"] = "(bool)" -defs["igCaptureMouseFromApp"][1]["stname"] = "" -defs["igCaptureMouseFromApp"]["(bool)"] = defs["igCaptureMouseFromApp"][1] defs["igCheckbox"] = {} defs["igCheckbox"][1] = {} defs["igCheckbox"][1]["args"] = "(const char* label,bool* v)" @@ -12041,7 +12506,7 @@ defs["igCheckbox"][1]["call_args"] = "(label,v)" defs["igCheckbox"][1]["cimguiname"] = "igCheckbox" defs["igCheckbox"][1]["defaults"] = {} defs["igCheckbox"][1]["funcname"] = "Checkbox" -defs["igCheckbox"][1]["location"] = "imgui:518" +defs["igCheckbox"][1]["location"] = "imgui:513" defs["igCheckbox"][1]["namespace"] = "ImGui" defs["igCheckbox"][1]["ov_cimguiname"] = "igCheckbox" defs["igCheckbox"][1]["ret"] = "bool" @@ -12066,9 +12531,9 @@ defs["igCheckboxFlags"][1]["call_args"] = "(label,flags,flags_value)" defs["igCheckboxFlags"][1]["cimguiname"] = "igCheckboxFlags" defs["igCheckboxFlags"][1]["defaults"] = {} defs["igCheckboxFlags"][1]["funcname"] = "CheckboxFlags" -defs["igCheckboxFlags"][1]["location"] = "imgui:519" +defs["igCheckboxFlags"][1]["location"] = "imgui:514" defs["igCheckboxFlags"][1]["namespace"] = "ImGui" -defs["igCheckboxFlags"][1]["ov_cimguiname"] = "igCheckboxFlagsIntPtr" +defs["igCheckboxFlags"][1]["ov_cimguiname"] = "igCheckboxFlags_IntPtr" defs["igCheckboxFlags"][1]["ret"] = "bool" defs["igCheckboxFlags"][1]["signature"] = "(const char*,int*,int)" defs["igCheckboxFlags"][1]["stname"] = "" @@ -12089,9 +12554,9 @@ defs["igCheckboxFlags"][2]["call_args"] = "(label,flags,flags_value)" defs["igCheckboxFlags"][2]["cimguiname"] = "igCheckboxFlags" defs["igCheckboxFlags"][2]["defaults"] = {} defs["igCheckboxFlags"][2]["funcname"] = "CheckboxFlags" -defs["igCheckboxFlags"][2]["location"] = "imgui:520" +defs["igCheckboxFlags"][2]["location"] = "imgui:515" defs["igCheckboxFlags"][2]["namespace"] = "ImGui" -defs["igCheckboxFlags"][2]["ov_cimguiname"] = "igCheckboxFlagsUintPtr" +defs["igCheckboxFlags"][2]["ov_cimguiname"] = "igCheckboxFlags_UintPtr" defs["igCheckboxFlags"][2]["ret"] = "bool" defs["igCheckboxFlags"][2]["signature"] = "(const char*,unsigned int*,unsigned int)" defs["igCheckboxFlags"][2]["stname"] = "" @@ -12112,9 +12577,9 @@ defs["igCheckboxFlags"][3]["call_args"] = "(label,flags,flags_value)" defs["igCheckboxFlags"][3]["cimguiname"] = "igCheckboxFlags" defs["igCheckboxFlags"][3]["defaults"] = {} defs["igCheckboxFlags"][3]["funcname"] = "CheckboxFlags" -defs["igCheckboxFlags"][3]["location"] = "imgui_internal:3015" +defs["igCheckboxFlags"][3]["location"] = "imgui_internal:3363" defs["igCheckboxFlags"][3]["namespace"] = "ImGui" -defs["igCheckboxFlags"][3]["ov_cimguiname"] = "igCheckboxFlagsS64Ptr" +defs["igCheckboxFlags"][3]["ov_cimguiname"] = "igCheckboxFlags_S64Ptr" defs["igCheckboxFlags"][3]["ret"] = "bool" defs["igCheckboxFlags"][3]["signature"] = "(const char*,ImS64*,ImS64)" defs["igCheckboxFlags"][3]["stname"] = "" @@ -12135,9 +12600,9 @@ defs["igCheckboxFlags"][4]["call_args"] = "(label,flags,flags_value)" defs["igCheckboxFlags"][4]["cimguiname"] = "igCheckboxFlags" defs["igCheckboxFlags"][4]["defaults"] = {} defs["igCheckboxFlags"][4]["funcname"] = "CheckboxFlags" -defs["igCheckboxFlags"][4]["location"] = "imgui_internal:3016" +defs["igCheckboxFlags"][4]["location"] = "imgui_internal:3364" defs["igCheckboxFlags"][4]["namespace"] = "ImGui" -defs["igCheckboxFlags"][4]["ov_cimguiname"] = "igCheckboxFlagsU64Ptr" +defs["igCheckboxFlags"][4]["ov_cimguiname"] = "igCheckboxFlags_U64Ptr" defs["igCheckboxFlags"][4]["ret"] = "bool" defs["igCheckboxFlags"][4]["signature"] = "(const char*,ImU64*,ImU64)" defs["igCheckboxFlags"][4]["stname"] = "" @@ -12154,7 +12619,7 @@ defs["igClearActiveID"][1]["call_args"] = "()" defs["igClearActiveID"][1]["cimguiname"] = "igClearActiveID" defs["igClearActiveID"][1]["defaults"] = {} defs["igClearActiveID"][1]["funcname"] = "ClearActiveID" -defs["igClearActiveID"][1]["location"] = "imgui_internal:2731" +defs["igClearActiveID"][1]["location"] = "imgui_internal:3027" defs["igClearActiveID"][1]["namespace"] = "ImGui" defs["igClearActiveID"][1]["ov_cimguiname"] = "igClearActiveID" defs["igClearActiveID"][1]["ret"] = "void" @@ -12170,7 +12635,7 @@ defs["igClearDragDrop"][1]["call_args"] = "()" defs["igClearDragDrop"][1]["cimguiname"] = "igClearDragDrop" defs["igClearDragDrop"][1]["defaults"] = {} defs["igClearDragDrop"][1]["funcname"] = "ClearDragDrop" -defs["igClearDragDrop"][1]["location"] = "imgui_internal:2889" +defs["igClearDragDrop"][1]["location"] = "imgui_internal:3239" defs["igClearDragDrop"][1]["namespace"] = "ImGui" defs["igClearDragDrop"][1]["ov_cimguiname"] = "igClearDragDrop" defs["igClearDragDrop"][1]["ret"] = "void" @@ -12186,7 +12651,7 @@ defs["igClearIniSettings"][1]["call_args"] = "()" defs["igClearIniSettings"][1]["cimguiname"] = "igClearIniSettings" defs["igClearIniSettings"][1]["defaults"] = {} defs["igClearIniSettings"][1]["funcname"] = "ClearIniSettings" -defs["igClearIniSettings"][1]["location"] = "imgui_internal:2702" +defs["igClearIniSettings"][1]["location"] = "imgui_internal:2993" defs["igClearIniSettings"][1]["namespace"] = "ImGui" defs["igClearIniSettings"][1]["ov_cimguiname"] = "igClearIniSettings" defs["igClearIniSettings"][1]["ret"] = "void" @@ -12208,7 +12673,7 @@ defs["igCloseButton"][1]["call_args"] = "(id,pos)" defs["igCloseButton"][1]["cimguiname"] = "igCloseButton" defs["igCloseButton"][1]["defaults"] = {} defs["igCloseButton"][1]["funcname"] = "CloseButton" -defs["igCloseButton"][1]["location"] = "imgui_internal:3004" +defs["igCloseButton"][1]["location"] = "imgui_internal:3352" defs["igCloseButton"][1]["namespace"] = "ImGui" defs["igCloseButton"][1]["ov_cimguiname"] = "igCloseButton" defs["igCloseButton"][1]["ret"] = "bool" @@ -12224,7 +12689,7 @@ defs["igCloseCurrentPopup"][1]["call_args"] = "()" defs["igCloseCurrentPopup"][1]["cimguiname"] = "igCloseCurrentPopup" defs["igCloseCurrentPopup"][1]["defaults"] = {} defs["igCloseCurrentPopup"][1]["funcname"] = "CloseCurrentPopup" -defs["igCloseCurrentPopup"][1]["location"] = "imgui:706" +defs["igCloseCurrentPopup"][1]["location"] = "imgui:708" defs["igCloseCurrentPopup"][1]["namespace"] = "ImGui" defs["igCloseCurrentPopup"][1]["ov_cimguiname"] = "igCloseCurrentPopup" defs["igCloseCurrentPopup"][1]["ret"] = "void" @@ -12246,7 +12711,7 @@ defs["igClosePopupToLevel"][1]["call_args"] = "(remaining,restore_focus_to_windo defs["igClosePopupToLevel"][1]["cimguiname"] = "igClosePopupToLevel" defs["igClosePopupToLevel"][1]["defaults"] = {} defs["igClosePopupToLevel"][1]["funcname"] = "ClosePopupToLevel" -defs["igClosePopupToLevel"][1]["location"] = "imgui_internal:2777" +defs["igClosePopupToLevel"][1]["location"] = "imgui_internal:3062" defs["igClosePopupToLevel"][1]["namespace"] = "ImGui" defs["igClosePopupToLevel"][1]["ov_cimguiname"] = "igClosePopupToLevel" defs["igClosePopupToLevel"][1]["ret"] = "void" @@ -12262,7 +12727,7 @@ defs["igClosePopupsExceptModals"][1]["call_args"] = "()" defs["igClosePopupsExceptModals"][1]["cimguiname"] = "igClosePopupsExceptModals" defs["igClosePopupsExceptModals"][1]["defaults"] = {} defs["igClosePopupsExceptModals"][1]["funcname"] = "ClosePopupsExceptModals" -defs["igClosePopupsExceptModals"][1]["location"] = "imgui_internal:2779" +defs["igClosePopupsExceptModals"][1]["location"] = "imgui_internal:3064" defs["igClosePopupsExceptModals"][1]["namespace"] = "ImGui" defs["igClosePopupsExceptModals"][1]["ov_cimguiname"] = "igClosePopupsExceptModals" defs["igClosePopupsExceptModals"][1]["ret"] = "void" @@ -12284,7 +12749,7 @@ defs["igClosePopupsOverWindow"][1]["call_args"] = "(ref_window,restore_focus_to_ defs["igClosePopupsOverWindow"][1]["cimguiname"] = "igClosePopupsOverWindow" defs["igClosePopupsOverWindow"][1]["defaults"] = {} defs["igClosePopupsOverWindow"][1]["funcname"] = "ClosePopupsOverWindow" -defs["igClosePopupsOverWindow"][1]["location"] = "imgui_internal:2778" +defs["igClosePopupsOverWindow"][1]["location"] = "imgui_internal:3063" defs["igClosePopupsOverWindow"][1]["namespace"] = "ImGui" defs["igClosePopupsOverWindow"][1]["ov_cimguiname"] = "igClosePopupsOverWindow" defs["igClosePopupsOverWindow"][1]["ret"] = "void" @@ -12309,7 +12774,7 @@ defs["igCollapseButton"][1]["call_args"] = "(id,pos,dock_node)" defs["igCollapseButton"][1]["cimguiname"] = "igCollapseButton" defs["igCollapseButton"][1]["defaults"] = {} defs["igCollapseButton"][1]["funcname"] = "CollapseButton" -defs["igCollapseButton"][1]["location"] = "imgui_internal:3005" +defs["igCollapseButton"][1]["location"] = "imgui_internal:3353" defs["igCollapseButton"][1]["namespace"] = "ImGui" defs["igCollapseButton"][1]["ov_cimguiname"] = "igCollapseButton" defs["igCollapseButton"][1]["ret"] = "bool" @@ -12332,9 +12797,9 @@ defs["igCollapsingHeader"][1]["cimguiname"] = "igCollapsingHeader" defs["igCollapsingHeader"][1]["defaults"] = {} defs["igCollapsingHeader"][1]["defaults"]["flags"] = "0" defs["igCollapsingHeader"][1]["funcname"] = "CollapsingHeader" -defs["igCollapsingHeader"][1]["location"] = "imgui:624" +defs["igCollapsingHeader"][1]["location"] = "imgui:625" defs["igCollapsingHeader"][1]["namespace"] = "ImGui" -defs["igCollapsingHeader"][1]["ov_cimguiname"] = "igCollapsingHeaderTreeNodeFlags" +defs["igCollapsingHeader"][1]["ov_cimguiname"] = "igCollapsingHeader_TreeNodeFlags" defs["igCollapsingHeader"][1]["ret"] = "bool" defs["igCollapsingHeader"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags)" defs["igCollapsingHeader"][1]["stname"] = "" @@ -12356,9 +12821,9 @@ defs["igCollapsingHeader"][2]["cimguiname"] = "igCollapsingHeader" defs["igCollapsingHeader"][2]["defaults"] = {} defs["igCollapsingHeader"][2]["defaults"]["flags"] = "0" defs["igCollapsingHeader"][2]["funcname"] = "CollapsingHeader" -defs["igCollapsingHeader"][2]["location"] = "imgui:625" +defs["igCollapsingHeader"][2]["location"] = "imgui:626" defs["igCollapsingHeader"][2]["namespace"] = "ImGui" -defs["igCollapsingHeader"][2]["ov_cimguiname"] = "igCollapsingHeaderBoolPtr" +defs["igCollapsingHeader"][2]["ov_cimguiname"] = "igCollapsingHeader_BoolPtr" defs["igCollapsingHeader"][2]["ret"] = "bool" defs["igCollapsingHeader"][2]["signature"] = "(const char*,bool*,ImGuiTreeNodeFlags)" defs["igCollapsingHeader"][2]["stname"] = "" @@ -12366,7 +12831,7 @@ defs["igCollapsingHeader"]["(const char*,ImGuiTreeNodeFlags)"] = defs["igCollaps defs["igCollapsingHeader"]["(const char*,bool*,ImGuiTreeNodeFlags)"] = defs["igCollapsingHeader"][2] defs["igColorButton"] = {} defs["igColorButton"][1] = {} -defs["igColorButton"][1]["args"] = "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,ImVec2 size)" +defs["igColorButton"][1]["args"] = "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)" defs["igColorButton"][1]["argsT"] = {} defs["igColorButton"][1]["argsT"][1] = {} defs["igColorButton"][1]["argsT"][1]["name"] = "desc_id" @@ -12379,21 +12844,21 @@ defs["igColorButton"][1]["argsT"][3]["name"] = "flags" defs["igColorButton"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" defs["igColorButton"][1]["argsT"][4] = {} defs["igColorButton"][1]["argsT"][4]["name"] = "size" -defs["igColorButton"][1]["argsT"][4]["type"] = "ImVec2" -defs["igColorButton"][1]["argsoriginal"] = "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,ImVec2 size=ImVec2(0,0))" +defs["igColorButton"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igColorButton"][1]["argsoriginal"] = "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))" defs["igColorButton"][1]["call_args"] = "(desc_id,col,flags,size)" defs["igColorButton"][1]["cimguiname"] = "igColorButton" defs["igColorButton"][1]["defaults"] = {} defs["igColorButton"][1]["defaults"]["flags"] = "0" defs["igColorButton"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igColorButton"][1]["funcname"] = "ColorButton" -defs["igColorButton"][1]["location"] = "imgui:605" +defs["igColorButton"][1]["location"] = "imgui:606" defs["igColorButton"][1]["namespace"] = "ImGui" defs["igColorButton"][1]["ov_cimguiname"] = "igColorButton" defs["igColorButton"][1]["ret"] = "bool" -defs["igColorButton"][1]["signature"] = "(const char*,const ImVec4,ImGuiColorEditFlags,ImVec2)" +defs["igColorButton"][1]["signature"] = "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)" defs["igColorButton"][1]["stname"] = "" -defs["igColorButton"]["(const char*,const ImVec4,ImGuiColorEditFlags,ImVec2)"] = defs["igColorButton"][1] +defs["igColorButton"]["(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)"] = defs["igColorButton"][1] defs["igColorConvertFloat4ToU32"] = {} defs["igColorConvertFloat4ToU32"][1] = {} defs["igColorConvertFloat4ToU32"][1]["args"] = "(const ImVec4 in)" @@ -12406,7 +12871,7 @@ defs["igColorConvertFloat4ToU32"][1]["call_args"] = "(in)" defs["igColorConvertFloat4ToU32"][1]["cimguiname"] = "igColorConvertFloat4ToU32" defs["igColorConvertFloat4ToU32"][1]["defaults"] = {} defs["igColorConvertFloat4ToU32"][1]["funcname"] = "ColorConvertFloat4ToU32" -defs["igColorConvertFloat4ToU32"][1]["location"] = "imgui:913" +defs["igColorConvertFloat4ToU32"][1]["location"] = "imgui:912" defs["igColorConvertFloat4ToU32"][1]["namespace"] = "ImGui" defs["igColorConvertFloat4ToU32"][1]["ov_cimguiname"] = "igColorConvertFloat4ToU32" defs["igColorConvertFloat4ToU32"][1]["ret"] = "ImU32" @@ -12443,7 +12908,7 @@ defs["igColorConvertHSVtoRGB"][1]["call_args"] = "(h,s,v,*out_r,*out_g,*out_b)" defs["igColorConvertHSVtoRGB"][1]["cimguiname"] = "igColorConvertHSVtoRGB" defs["igColorConvertHSVtoRGB"][1]["defaults"] = {} defs["igColorConvertHSVtoRGB"][1]["funcname"] = "ColorConvertHSVtoRGB" -defs["igColorConvertHSVtoRGB"][1]["location"] = "imgui:915" +defs["igColorConvertHSVtoRGB"][1]["location"] = "imgui:914" defs["igColorConvertHSVtoRGB"][1]["namespace"] = "ImGui" defs["igColorConvertHSVtoRGB"][1]["ov_cimguiname"] = "igColorConvertHSVtoRGB" defs["igColorConvertHSVtoRGB"][1]["ret"] = "void" @@ -12480,7 +12945,7 @@ defs["igColorConvertRGBtoHSV"][1]["call_args"] = "(r,g,b,*out_h,*out_s,*out_v)" defs["igColorConvertRGBtoHSV"][1]["cimguiname"] = "igColorConvertRGBtoHSV" defs["igColorConvertRGBtoHSV"][1]["defaults"] = {} defs["igColorConvertRGBtoHSV"][1]["funcname"] = "ColorConvertRGBtoHSV" -defs["igColorConvertRGBtoHSV"][1]["location"] = "imgui:914" +defs["igColorConvertRGBtoHSV"][1]["location"] = "imgui:913" defs["igColorConvertRGBtoHSV"][1]["namespace"] = "ImGui" defs["igColorConvertRGBtoHSV"][1]["ov_cimguiname"] = "igColorConvertRGBtoHSV" defs["igColorConvertRGBtoHSV"][1]["ret"] = "void" @@ -12502,7 +12967,7 @@ defs["igColorConvertU32ToFloat4"][1]["call_args"] = "(in)" defs["igColorConvertU32ToFloat4"][1]["cimguiname"] = "igColorConvertU32ToFloat4" defs["igColorConvertU32ToFloat4"][1]["defaults"] = {} defs["igColorConvertU32ToFloat4"][1]["funcname"] = "ColorConvertU32ToFloat4" -defs["igColorConvertU32ToFloat4"][1]["location"] = "imgui:912" +defs["igColorConvertU32ToFloat4"][1]["location"] = "imgui:911" defs["igColorConvertU32ToFloat4"][1]["namespace"] = "ImGui" defs["igColorConvertU32ToFloat4"][1]["nonUDT"] = 1 defs["igColorConvertU32ToFloat4"][1]["ov_cimguiname"] = "igColorConvertU32ToFloat4" @@ -12529,7 +12994,7 @@ defs["igColorEdit3"][1]["cimguiname"] = "igColorEdit3" defs["igColorEdit3"][1]["defaults"] = {} defs["igColorEdit3"][1]["defaults"]["flags"] = "0" defs["igColorEdit3"][1]["funcname"] = "ColorEdit3" -defs["igColorEdit3"][1]["location"] = "imgui:601" +defs["igColorEdit3"][1]["location"] = "imgui:602" defs["igColorEdit3"][1]["namespace"] = "ImGui" defs["igColorEdit3"][1]["ov_cimguiname"] = "igColorEdit3" defs["igColorEdit3"][1]["ret"] = "bool" @@ -12555,7 +13020,7 @@ defs["igColorEdit4"][1]["cimguiname"] = "igColorEdit4" defs["igColorEdit4"][1]["defaults"] = {} defs["igColorEdit4"][1]["defaults"]["flags"] = "0" defs["igColorEdit4"][1]["funcname"] = "ColorEdit4" -defs["igColorEdit4"][1]["location"] = "imgui:602" +defs["igColorEdit4"][1]["location"] = "imgui:603" defs["igColorEdit4"][1]["namespace"] = "ImGui" defs["igColorEdit4"][1]["ov_cimguiname"] = "igColorEdit4" defs["igColorEdit4"][1]["ret"] = "bool" @@ -12577,7 +13042,7 @@ defs["igColorEditOptionsPopup"][1]["call_args"] = "(col,flags)" defs["igColorEditOptionsPopup"][1]["cimguiname"] = "igColorEditOptionsPopup" defs["igColorEditOptionsPopup"][1]["defaults"] = {} defs["igColorEditOptionsPopup"][1]["funcname"] = "ColorEditOptionsPopup" -defs["igColorEditOptionsPopup"][1]["location"] = "imgui_internal:3054" +defs["igColorEditOptionsPopup"][1]["location"] = "imgui_internal:3403" defs["igColorEditOptionsPopup"][1]["namespace"] = "ImGui" defs["igColorEditOptionsPopup"][1]["ov_cimguiname"] = "igColorEditOptionsPopup" defs["igColorEditOptionsPopup"][1]["ret"] = "void" @@ -12603,7 +13068,7 @@ defs["igColorPicker3"][1]["cimguiname"] = "igColorPicker3" defs["igColorPicker3"][1]["defaults"] = {} defs["igColorPicker3"][1]["defaults"]["flags"] = "0" defs["igColorPicker3"][1]["funcname"] = "ColorPicker3" -defs["igColorPicker3"][1]["location"] = "imgui:603" +defs["igColorPicker3"][1]["location"] = "imgui:604" defs["igColorPicker3"][1]["namespace"] = "ImGui" defs["igColorPicker3"][1]["ov_cimguiname"] = "igColorPicker3" defs["igColorPicker3"][1]["ret"] = "bool" @@ -12633,7 +13098,7 @@ defs["igColorPicker4"][1]["defaults"] = {} defs["igColorPicker4"][1]["defaults"]["flags"] = "0" defs["igColorPicker4"][1]["defaults"]["ref_col"] = "NULL" defs["igColorPicker4"][1]["funcname"] = "ColorPicker4" -defs["igColorPicker4"][1]["location"] = "imgui:604" +defs["igColorPicker4"][1]["location"] = "imgui:605" defs["igColorPicker4"][1]["namespace"] = "ImGui" defs["igColorPicker4"][1]["ov_cimguiname"] = "igColorPicker4" defs["igColorPicker4"][1]["ret"] = "bool" @@ -12655,7 +13120,7 @@ defs["igColorPickerOptionsPopup"][1]["call_args"] = "(ref_col,flags)" defs["igColorPickerOptionsPopup"][1]["cimguiname"] = "igColorPickerOptionsPopup" defs["igColorPickerOptionsPopup"][1]["defaults"] = {} defs["igColorPickerOptionsPopup"][1]["funcname"] = "ColorPickerOptionsPopup" -defs["igColorPickerOptionsPopup"][1]["location"] = "imgui_internal:3055" +defs["igColorPickerOptionsPopup"][1]["location"] = "imgui_internal:3404" defs["igColorPickerOptionsPopup"][1]["namespace"] = "ImGui" defs["igColorPickerOptionsPopup"][1]["ov_cimguiname"] = "igColorPickerOptionsPopup" defs["igColorPickerOptionsPopup"][1]["ret"] = "void" @@ -12680,7 +13145,7 @@ defs["igColorTooltip"][1]["call_args"] = "(text,col,flags)" defs["igColorTooltip"][1]["cimguiname"] = "igColorTooltip" defs["igColorTooltip"][1]["defaults"] = {} defs["igColorTooltip"][1]["funcname"] = "ColorTooltip" -defs["igColorTooltip"][1]["location"] = "imgui_internal:3053" +defs["igColorTooltip"][1]["location"] = "imgui_internal:3402" defs["igColorTooltip"][1]["namespace"] = "ImGui" defs["igColorTooltip"][1]["ov_cimguiname"] = "igColorTooltip" defs["igColorTooltip"][1]["ret"] = "void" @@ -12708,7 +13173,7 @@ defs["igColumns"][1]["defaults"]["border"] = "true" defs["igColumns"][1]["defaults"]["count"] = "1" defs["igColumns"][1]["defaults"]["id"] = "NULL" defs["igColumns"][1]["funcname"] = "Columns" -defs["igColumns"][1]["location"] = "imgui:787" +defs["igColumns"][1]["location"] = "imgui:784" defs["igColumns"][1]["namespace"] = "ImGui" defs["igColumns"][1]["ov_cimguiname"] = "igColumns" defs["igColumns"][1]["ret"] = "void" @@ -12742,7 +13207,7 @@ defs["igCombo"][1]["defaults"]["popup_max_height_in_items"] = "-1" defs["igCombo"][1]["funcname"] = "Combo" defs["igCombo"][1]["location"] = "imgui:531" defs["igCombo"][1]["namespace"] = "ImGui" -defs["igCombo"][1]["ov_cimguiname"] = "igComboStr_arr" +defs["igCombo"][1]["ov_cimguiname"] = "igCombo_Str_arr" defs["igCombo"][1]["ret"] = "bool" defs["igCombo"][1]["signature"] = "(const char*,int*,const char* const[],int,int)" defs["igCombo"][1]["stname"] = "" @@ -12769,7 +13234,7 @@ defs["igCombo"][2]["defaults"]["popup_max_height_in_items"] = "-1" defs["igCombo"][2]["funcname"] = "Combo" defs["igCombo"][2]["location"] = "imgui:532" defs["igCombo"][2]["namespace"] = "ImGui" -defs["igCombo"][2]["ov_cimguiname"] = "igComboStr" +defs["igCombo"][2]["ov_cimguiname"] = "igCombo_Str" defs["igCombo"][2]["ret"] = "bool" defs["igCombo"][2]["signature"] = "(const char*,int*,const char*,int)" defs["igCombo"][2]["stname"] = "" @@ -12804,13 +13269,32 @@ defs["igCombo"][3]["defaults"]["popup_max_height_in_items"] = "-1" defs["igCombo"][3]["funcname"] = "Combo" defs["igCombo"][3]["location"] = "imgui:533" defs["igCombo"][3]["namespace"] = "ImGui" -defs["igCombo"][3]["ov_cimguiname"] = "igComboFnBoolPtr" +defs["igCombo"][3]["ov_cimguiname"] = "igCombo_FnBoolPtr" defs["igCombo"][3]["ret"] = "bool" defs["igCombo"][3]["signature"] = "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)" defs["igCombo"][3]["stname"] = "" defs["igCombo"]["(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)"] = defs["igCombo"][3] defs["igCombo"]["(const char*,int*,const char* const[],int,int)"] = defs["igCombo"][1] defs["igCombo"]["(const char*,int*,const char*,int)"] = defs["igCombo"][2] +defs["igConvertSingleModFlagToKey"] = {} +defs["igConvertSingleModFlagToKey"][1] = {} +defs["igConvertSingleModFlagToKey"][1]["args"] = "(ImGuiKey key)" +defs["igConvertSingleModFlagToKey"][1]["argsT"] = {} +defs["igConvertSingleModFlagToKey"][1]["argsT"][1] = {} +defs["igConvertSingleModFlagToKey"][1]["argsT"][1]["name"] = "key" +defs["igConvertSingleModFlagToKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igConvertSingleModFlagToKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igConvertSingleModFlagToKey"][1]["call_args"] = "(key)" +defs["igConvertSingleModFlagToKey"][1]["cimguiname"] = "igConvertSingleModFlagToKey" +defs["igConvertSingleModFlagToKey"][1]["defaults"] = {} +defs["igConvertSingleModFlagToKey"][1]["funcname"] = "ConvertSingleModFlagToKey" +defs["igConvertSingleModFlagToKey"][1]["location"] = "imgui_internal:3107" +defs["igConvertSingleModFlagToKey"][1]["namespace"] = "ImGui" +defs["igConvertSingleModFlagToKey"][1]["ov_cimguiname"] = "igConvertSingleModFlagToKey" +defs["igConvertSingleModFlagToKey"][1]["ret"] = "ImGuiKey" +defs["igConvertSingleModFlagToKey"][1]["signature"] = "(ImGuiKey)" +defs["igConvertSingleModFlagToKey"][1]["stname"] = "" +defs["igConvertSingleModFlagToKey"]["(ImGuiKey)"] = defs["igConvertSingleModFlagToKey"][1] defs["igCreateContext"] = {} defs["igCreateContext"][1] = {} defs["igCreateContext"][1]["args"] = "(ImFontAtlas* shared_font_atlas)" @@ -12824,7 +13308,7 @@ defs["igCreateContext"][1]["cimguiname"] = "igCreateContext" defs["igCreateContext"][1]["defaults"] = {} defs["igCreateContext"][1]["defaults"]["shared_font_atlas"] = "NULL" defs["igCreateContext"][1]["funcname"] = "CreateContext" -defs["igCreateContext"][1]["location"] = "imgui:301" +defs["igCreateContext"][1]["location"] = "imgui:294" defs["igCreateContext"][1]["namespace"] = "ImGui" defs["igCreateContext"][1]["ov_cimguiname"] = "igCreateContext" defs["igCreateContext"][1]["ret"] = "ImGuiContext*" @@ -12843,13 +13327,41 @@ defs["igCreateNewWindowSettings"][1]["call_args"] = "(name)" defs["igCreateNewWindowSettings"][1]["cimguiname"] = "igCreateNewWindowSettings" defs["igCreateNewWindowSettings"][1]["defaults"] = {} defs["igCreateNewWindowSettings"][1]["funcname"] = "CreateNewWindowSettings" -defs["igCreateNewWindowSettings"][1]["location"] = "imgui_internal:2703" +defs["igCreateNewWindowSettings"][1]["location"] = "imgui_internal:2994" defs["igCreateNewWindowSettings"][1]["namespace"] = "ImGui" defs["igCreateNewWindowSettings"][1]["ov_cimguiname"] = "igCreateNewWindowSettings" defs["igCreateNewWindowSettings"][1]["ret"] = "ImGuiWindowSettings*" defs["igCreateNewWindowSettings"][1]["signature"] = "(const char*)" defs["igCreateNewWindowSettings"][1]["stname"] = "" defs["igCreateNewWindowSettings"]["(const char*)"] = defs["igCreateNewWindowSettings"][1] +defs["igDataTypeApplyFromText"] = {} +defs["igDataTypeApplyFromText"][1] = {} +defs["igDataTypeApplyFromText"][1]["args"] = "(const char* buf,ImGuiDataType data_type,void* p_data,const char* format)" +defs["igDataTypeApplyFromText"][1]["argsT"] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][1] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][1]["name"] = "buf" +defs["igDataTypeApplyFromText"][1]["argsT"][1]["type"] = "const char*" +defs["igDataTypeApplyFromText"][1]["argsT"][2] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][2]["name"] = "data_type" +defs["igDataTypeApplyFromText"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igDataTypeApplyFromText"][1]["argsT"][3] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][3]["name"] = "p_data" +defs["igDataTypeApplyFromText"][1]["argsT"][3]["type"] = "void*" +defs["igDataTypeApplyFromText"][1]["argsT"][4] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][4]["name"] = "format" +defs["igDataTypeApplyFromText"][1]["argsT"][4]["type"] = "const char*" +defs["igDataTypeApplyFromText"][1]["argsoriginal"] = "(const char* buf,ImGuiDataType data_type,void* p_data,const char* format)" +defs["igDataTypeApplyFromText"][1]["call_args"] = "(buf,data_type,p_data,format)" +defs["igDataTypeApplyFromText"][1]["cimguiname"] = "igDataTypeApplyFromText" +defs["igDataTypeApplyFromText"][1]["defaults"] = {} +defs["igDataTypeApplyFromText"][1]["funcname"] = "DataTypeApplyFromText" +defs["igDataTypeApplyFromText"][1]["location"] = "imgui_internal:3390" +defs["igDataTypeApplyFromText"][1]["namespace"] = "ImGui" +defs["igDataTypeApplyFromText"][1]["ov_cimguiname"] = "igDataTypeApplyFromText" +defs["igDataTypeApplyFromText"][1]["ret"] = "bool" +defs["igDataTypeApplyFromText"][1]["signature"] = "(const char*,ImGuiDataType,void*,const char*)" +defs["igDataTypeApplyFromText"][1]["stname"] = "" +defs["igDataTypeApplyFromText"]["(const char*,ImGuiDataType,void*,const char*)"] = defs["igDataTypeApplyFromText"][1] defs["igDataTypeApplyOp"] = {} defs["igDataTypeApplyOp"][1] = {} defs["igDataTypeApplyOp"][1]["args"] = "(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2)" @@ -12874,44 +13386,13 @@ defs["igDataTypeApplyOp"][1]["call_args"] = "(data_type,op,output,arg_1,arg_2)" defs["igDataTypeApplyOp"][1]["cimguiname"] = "igDataTypeApplyOp" defs["igDataTypeApplyOp"][1]["defaults"] = {} defs["igDataTypeApplyOp"][1]["funcname"] = "DataTypeApplyOp" -defs["igDataTypeApplyOp"][1]["location"] = "imgui_internal:3040" +defs["igDataTypeApplyOp"][1]["location"] = "imgui_internal:3389" defs["igDataTypeApplyOp"][1]["namespace"] = "ImGui" defs["igDataTypeApplyOp"][1]["ov_cimguiname"] = "igDataTypeApplyOp" defs["igDataTypeApplyOp"][1]["ret"] = "void" defs["igDataTypeApplyOp"][1]["signature"] = "(ImGuiDataType,int,void*,const void*,const void*)" defs["igDataTypeApplyOp"][1]["stname"] = "" defs["igDataTypeApplyOp"]["(ImGuiDataType,int,void*,const void*,const void*)"] = defs["igDataTypeApplyOp"][1] -defs["igDataTypeApplyOpFromText"] = {} -defs["igDataTypeApplyOpFromText"][1] = {} -defs["igDataTypeApplyOpFromText"][1]["args"] = "(const char* buf,const char* initial_value_buf,ImGuiDataType data_type,void* p_data,const char* format)" -defs["igDataTypeApplyOpFromText"][1]["argsT"] = {} -defs["igDataTypeApplyOpFromText"][1]["argsT"][1] = {} -defs["igDataTypeApplyOpFromText"][1]["argsT"][1]["name"] = "buf" -defs["igDataTypeApplyOpFromText"][1]["argsT"][1]["type"] = "const char*" -defs["igDataTypeApplyOpFromText"][1]["argsT"][2] = {} -defs["igDataTypeApplyOpFromText"][1]["argsT"][2]["name"] = "initial_value_buf" -defs["igDataTypeApplyOpFromText"][1]["argsT"][2]["type"] = "const char*" -defs["igDataTypeApplyOpFromText"][1]["argsT"][3] = {} -defs["igDataTypeApplyOpFromText"][1]["argsT"][3]["name"] = "data_type" -defs["igDataTypeApplyOpFromText"][1]["argsT"][3]["type"] = "ImGuiDataType" -defs["igDataTypeApplyOpFromText"][1]["argsT"][4] = {} -defs["igDataTypeApplyOpFromText"][1]["argsT"][4]["name"] = "p_data" -defs["igDataTypeApplyOpFromText"][1]["argsT"][4]["type"] = "void*" -defs["igDataTypeApplyOpFromText"][1]["argsT"][5] = {} -defs["igDataTypeApplyOpFromText"][1]["argsT"][5]["name"] = "format" -defs["igDataTypeApplyOpFromText"][1]["argsT"][5]["type"] = "const char*" -defs["igDataTypeApplyOpFromText"][1]["argsoriginal"] = "(const char* buf,const char* initial_value_buf,ImGuiDataType data_type,void* p_data,const char* format)" -defs["igDataTypeApplyOpFromText"][1]["call_args"] = "(buf,initial_value_buf,data_type,p_data,format)" -defs["igDataTypeApplyOpFromText"][1]["cimguiname"] = "igDataTypeApplyOpFromText" -defs["igDataTypeApplyOpFromText"][1]["defaults"] = {} -defs["igDataTypeApplyOpFromText"][1]["funcname"] = "DataTypeApplyOpFromText" -defs["igDataTypeApplyOpFromText"][1]["location"] = "imgui_internal:3041" -defs["igDataTypeApplyOpFromText"][1]["namespace"] = "ImGui" -defs["igDataTypeApplyOpFromText"][1]["ov_cimguiname"] = "igDataTypeApplyOpFromText" -defs["igDataTypeApplyOpFromText"][1]["ret"] = "bool" -defs["igDataTypeApplyOpFromText"][1]["signature"] = "(const char*,const char*,ImGuiDataType,void*,const char*)" -defs["igDataTypeApplyOpFromText"][1]["stname"] = "" -defs["igDataTypeApplyOpFromText"]["(const char*,const char*,ImGuiDataType,void*,const char*)"] = defs["igDataTypeApplyOpFromText"][1] defs["igDataTypeClamp"] = {} defs["igDataTypeClamp"][1] = {} defs["igDataTypeClamp"][1]["args"] = "(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max)" @@ -12933,7 +13414,7 @@ defs["igDataTypeClamp"][1]["call_args"] = "(data_type,p_data,p_min,p_max)" defs["igDataTypeClamp"][1]["cimguiname"] = "igDataTypeClamp" defs["igDataTypeClamp"][1]["defaults"] = {} defs["igDataTypeClamp"][1]["funcname"] = "DataTypeClamp" -defs["igDataTypeClamp"][1]["location"] = "imgui_internal:3043" +defs["igDataTypeClamp"][1]["location"] = "imgui_internal:3392" defs["igDataTypeClamp"][1]["namespace"] = "ImGui" defs["igDataTypeClamp"][1]["ov_cimguiname"] = "igDataTypeClamp" defs["igDataTypeClamp"][1]["ret"] = "bool" @@ -12958,7 +13439,7 @@ defs["igDataTypeCompare"][1]["call_args"] = "(data_type,arg_1,arg_2)" defs["igDataTypeCompare"][1]["cimguiname"] = "igDataTypeCompare" defs["igDataTypeCompare"][1]["defaults"] = {} defs["igDataTypeCompare"][1]["funcname"] = "DataTypeCompare" -defs["igDataTypeCompare"][1]["location"] = "imgui_internal:3042" +defs["igDataTypeCompare"][1]["location"] = "imgui_internal:3391" defs["igDataTypeCompare"][1]["namespace"] = "ImGui" defs["igDataTypeCompare"][1]["ov_cimguiname"] = "igDataTypeCompare" defs["igDataTypeCompare"][1]["ret"] = "int" @@ -12989,7 +13470,7 @@ defs["igDataTypeFormatString"][1]["call_args"] = "(buf,buf_size,data_type,p_data defs["igDataTypeFormatString"][1]["cimguiname"] = "igDataTypeFormatString" defs["igDataTypeFormatString"][1]["defaults"] = {} defs["igDataTypeFormatString"][1]["funcname"] = "DataTypeFormatString" -defs["igDataTypeFormatString"][1]["location"] = "imgui_internal:3039" +defs["igDataTypeFormatString"][1]["location"] = "imgui_internal:3388" defs["igDataTypeFormatString"][1]["namespace"] = "ImGui" defs["igDataTypeFormatString"][1]["ov_cimguiname"] = "igDataTypeFormatString" defs["igDataTypeFormatString"][1]["ret"] = "int" @@ -13008,7 +13489,7 @@ defs["igDataTypeGetInfo"][1]["call_args"] = "(data_type)" defs["igDataTypeGetInfo"][1]["cimguiname"] = "igDataTypeGetInfo" defs["igDataTypeGetInfo"][1]["defaults"] = {} defs["igDataTypeGetInfo"][1]["funcname"] = "DataTypeGetInfo" -defs["igDataTypeGetInfo"][1]["location"] = "imgui_internal:3038" +defs["igDataTypeGetInfo"][1]["location"] = "imgui_internal:3387" defs["igDataTypeGetInfo"][1]["namespace"] = "ImGui" defs["igDataTypeGetInfo"][1]["ov_cimguiname"] = "igDataTypeGetInfo" defs["igDataTypeGetInfo"][1]["ret"] = "const ImGuiDataTypeInfo*" @@ -13045,7 +13526,7 @@ defs["igDebugCheckVersionAndDataLayout"][1]["call_args"] = "(version_str,sz_io,s defs["igDebugCheckVersionAndDataLayout"][1]["cimguiname"] = "igDebugCheckVersionAndDataLayout" defs["igDebugCheckVersionAndDataLayout"][1]["defaults"] = {} defs["igDebugCheckVersionAndDataLayout"][1]["funcname"] = "DebugCheckVersionAndDataLayout" -defs["igDebugCheckVersionAndDataLayout"][1]["location"] = "imgui:964" +defs["igDebugCheckVersionAndDataLayout"][1]["location"] = "imgui:966" defs["igDebugCheckVersionAndDataLayout"][1]["namespace"] = "ImGui" defs["igDebugCheckVersionAndDataLayout"][1]["ov_cimguiname"] = "igDebugCheckVersionAndDataLayout" defs["igDebugCheckVersionAndDataLayout"][1]["ret"] = "bool" @@ -13065,7 +13546,7 @@ defs["igDebugDrawItemRect"][1]["cimguiname"] = "igDebugDrawItemRect" defs["igDebugDrawItemRect"][1]["defaults"] = {} defs["igDebugDrawItemRect"][1]["defaults"]["col"] = "4278190335" defs["igDebugDrawItemRect"][1]["funcname"] = "DebugDrawItemRect" -defs["igDebugDrawItemRect"][1]["location"] = "imgui_internal:3072" +defs["igDebugDrawItemRect"][1]["location"] = "imgui_internal:3429" defs["igDebugDrawItemRect"][1]["namespace"] = "ImGui" defs["igDebugDrawItemRect"][1]["ov_cimguiname"] = "igDebugDrawItemRect" defs["igDebugDrawItemRect"][1]["ret"] = "void" @@ -13093,13 +13574,112 @@ defs["igDebugHookIdInfo"][1]["call_args"] = "(id,data_type,data_id,data_id_end)" defs["igDebugHookIdInfo"][1]["cimguiname"] = "igDebugHookIdInfo" defs["igDebugHookIdInfo"][1]["defaults"] = {} defs["igDebugHookIdInfo"][1]["funcname"] = "DebugHookIdInfo" -defs["igDebugHookIdInfo"][1]["location"] = "imgui_internal:3076" +defs["igDebugHookIdInfo"][1]["location"] = "imgui_internal:3432" defs["igDebugHookIdInfo"][1]["namespace"] = "ImGui" defs["igDebugHookIdInfo"][1]["ov_cimguiname"] = "igDebugHookIdInfo" defs["igDebugHookIdInfo"][1]["ret"] = "void" defs["igDebugHookIdInfo"][1]["signature"] = "(ImGuiID,ImGuiDataType,const void*,const void*)" defs["igDebugHookIdInfo"][1]["stname"] = "" defs["igDebugHookIdInfo"]["(ImGuiID,ImGuiDataType,const void*,const void*)"] = defs["igDebugHookIdInfo"][1] +defs["igDebugLocateItem"] = {} +defs["igDebugLocateItem"][1] = {} +defs["igDebugLocateItem"][1]["args"] = "(ImGuiID target_id)" +defs["igDebugLocateItem"][1]["argsT"] = {} +defs["igDebugLocateItem"][1]["argsT"][1] = {} +defs["igDebugLocateItem"][1]["argsT"][1]["name"] = "target_id" +defs["igDebugLocateItem"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDebugLocateItem"][1]["argsoriginal"] = "(ImGuiID target_id)" +defs["igDebugLocateItem"][1]["call_args"] = "(target_id)" +defs["igDebugLocateItem"][1]["cimguiname"] = "igDebugLocateItem" +defs["igDebugLocateItem"][1]["defaults"] = {} +defs["igDebugLocateItem"][1]["funcname"] = "DebugLocateItem" +defs["igDebugLocateItem"][1]["location"] = "imgui_internal:3426" +defs["igDebugLocateItem"][1]["namespace"] = "ImGui" +defs["igDebugLocateItem"][1]["ov_cimguiname"] = "igDebugLocateItem" +defs["igDebugLocateItem"][1]["ret"] = "void" +defs["igDebugLocateItem"][1]["signature"] = "(ImGuiID)" +defs["igDebugLocateItem"][1]["stname"] = "" +defs["igDebugLocateItem"]["(ImGuiID)"] = defs["igDebugLocateItem"][1] +defs["igDebugLocateItemOnHover"] = {} +defs["igDebugLocateItemOnHover"][1] = {} +defs["igDebugLocateItemOnHover"][1]["args"] = "(ImGuiID target_id)" +defs["igDebugLocateItemOnHover"][1]["argsT"] = {} +defs["igDebugLocateItemOnHover"][1]["argsT"][1] = {} +defs["igDebugLocateItemOnHover"][1]["argsT"][1]["name"] = "target_id" +defs["igDebugLocateItemOnHover"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDebugLocateItemOnHover"][1]["argsoriginal"] = "(ImGuiID target_id)" +defs["igDebugLocateItemOnHover"][1]["call_args"] = "(target_id)" +defs["igDebugLocateItemOnHover"][1]["cimguiname"] = "igDebugLocateItemOnHover" +defs["igDebugLocateItemOnHover"][1]["defaults"] = {} +defs["igDebugLocateItemOnHover"][1]["funcname"] = "DebugLocateItemOnHover" +defs["igDebugLocateItemOnHover"][1]["location"] = "imgui_internal:3427" +defs["igDebugLocateItemOnHover"][1]["namespace"] = "ImGui" +defs["igDebugLocateItemOnHover"][1]["ov_cimguiname"] = "igDebugLocateItemOnHover" +defs["igDebugLocateItemOnHover"][1]["ret"] = "void" +defs["igDebugLocateItemOnHover"][1]["signature"] = "(ImGuiID)" +defs["igDebugLocateItemOnHover"][1]["stname"] = "" +defs["igDebugLocateItemOnHover"]["(ImGuiID)"] = defs["igDebugLocateItemOnHover"][1] +defs["igDebugLocateItemResolveWithLastItem"] = {} +defs["igDebugLocateItemResolveWithLastItem"][1] = {} +defs["igDebugLocateItemResolveWithLastItem"][1]["args"] = "()" +defs["igDebugLocateItemResolveWithLastItem"][1]["argsT"] = {} +defs["igDebugLocateItemResolveWithLastItem"][1]["argsoriginal"] = "()" +defs["igDebugLocateItemResolveWithLastItem"][1]["call_args"] = "()" +defs["igDebugLocateItemResolveWithLastItem"][1]["cimguiname"] = "igDebugLocateItemResolveWithLastItem" +defs["igDebugLocateItemResolveWithLastItem"][1]["defaults"] = {} +defs["igDebugLocateItemResolveWithLastItem"][1]["funcname"] = "DebugLocateItemResolveWithLastItem" +defs["igDebugLocateItemResolveWithLastItem"][1]["location"] = "imgui_internal:3428" +defs["igDebugLocateItemResolveWithLastItem"][1]["namespace"] = "ImGui" +defs["igDebugLocateItemResolveWithLastItem"][1]["ov_cimguiname"] = "igDebugLocateItemResolveWithLastItem" +defs["igDebugLocateItemResolveWithLastItem"][1]["ret"] = "void" +defs["igDebugLocateItemResolveWithLastItem"][1]["signature"] = "()" +defs["igDebugLocateItemResolveWithLastItem"][1]["stname"] = "" +defs["igDebugLocateItemResolveWithLastItem"]["()"] = defs["igDebugLocateItemResolveWithLastItem"][1] +defs["igDebugLog"] = {} +defs["igDebugLog"][1] = {} +defs["igDebugLog"][1]["args"] = "(const char* fmt,...)" +defs["igDebugLog"][1]["argsT"] = {} +defs["igDebugLog"][1]["argsT"][1] = {} +defs["igDebugLog"][1]["argsT"][1]["name"] = "fmt" +defs["igDebugLog"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugLog"][1]["argsT"][2] = {} +defs["igDebugLog"][1]["argsT"][2]["name"] = "..." +defs["igDebugLog"][1]["argsT"][2]["type"] = "..." +defs["igDebugLog"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igDebugLog"][1]["call_args"] = "(fmt,...)" +defs["igDebugLog"][1]["cimguiname"] = "igDebugLog" +defs["igDebugLog"][1]["defaults"] = {} +defs["igDebugLog"][1]["funcname"] = "DebugLog" +defs["igDebugLog"][1]["isvararg"] = "...)" +defs["igDebugLog"][1]["location"] = "imgui_internal:3419" +defs["igDebugLog"][1]["namespace"] = "ImGui" +defs["igDebugLog"][1]["ov_cimguiname"] = "igDebugLog" +defs["igDebugLog"][1]["ret"] = "void" +defs["igDebugLog"][1]["signature"] = "(const char*,...)" +defs["igDebugLog"][1]["stname"] = "" +defs["igDebugLog"]["(const char*,...)"] = defs["igDebugLog"][1] +defs["igDebugLogV"] = {} +defs["igDebugLogV"][1] = {} +defs["igDebugLogV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igDebugLogV"][1]["argsT"] = {} +defs["igDebugLogV"][1]["argsT"][1] = {} +defs["igDebugLogV"][1]["argsT"][1]["name"] = "fmt" +defs["igDebugLogV"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugLogV"][1]["argsT"][2] = {} +defs["igDebugLogV"][1]["argsT"][2]["name"] = "args" +defs["igDebugLogV"][1]["argsT"][2]["type"] = "va_list" +defs["igDebugLogV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igDebugLogV"][1]["call_args"] = "(fmt,args)" +defs["igDebugLogV"][1]["cimguiname"] = "igDebugLogV" +defs["igDebugLogV"][1]["defaults"] = {} +defs["igDebugLogV"][1]["funcname"] = "DebugLogV" +defs["igDebugLogV"][1]["location"] = "imgui_internal:3420" +defs["igDebugLogV"][1]["namespace"] = "ImGui" +defs["igDebugLogV"][1]["ov_cimguiname"] = "igDebugLogV" +defs["igDebugLogV"][1]["ret"] = "void" +defs["igDebugLogV"][1]["signature"] = "(const char*,va_list)" +defs["igDebugLogV"][1]["stname"] = "" +defs["igDebugLogV"]["(const char*,va_list)"] = defs["igDebugLogV"][1] defs["igDebugNodeColumns"] = {} defs["igDebugNodeColumns"][1] = {} defs["igDebugNodeColumns"][1]["args"] = "(ImGuiOldColumns* columns)" @@ -13112,7 +13692,7 @@ defs["igDebugNodeColumns"][1]["call_args"] = "(columns)" defs["igDebugNodeColumns"][1]["cimguiname"] = "igDebugNodeColumns" defs["igDebugNodeColumns"][1]["defaults"] = {} defs["igDebugNodeColumns"][1]["funcname"] = "DebugNodeColumns" -defs["igDebugNodeColumns"][1]["location"] = "imgui_internal:3077" +defs["igDebugNodeColumns"][1]["location"] = "imgui_internal:3433" defs["igDebugNodeColumns"][1]["namespace"] = "ImGui" defs["igDebugNodeColumns"][1]["ov_cimguiname"] = "igDebugNodeColumns" defs["igDebugNodeColumns"][1]["ret"] = "void" @@ -13134,7 +13714,7 @@ defs["igDebugNodeDockNode"][1]["call_args"] = "(node,label)" defs["igDebugNodeDockNode"][1]["cimguiname"] = "igDebugNodeDockNode" defs["igDebugNodeDockNode"][1]["defaults"] = {} defs["igDebugNodeDockNode"][1]["funcname"] = "DebugNodeDockNode" -defs["igDebugNodeDockNode"][1]["location"] = "imgui_internal:3078" +defs["igDebugNodeDockNode"][1]["location"] = "imgui_internal:3434" defs["igDebugNodeDockNode"][1]["namespace"] = "ImGui" defs["igDebugNodeDockNode"][1]["ov_cimguiname"] = "igDebugNodeDockNode" defs["igDebugNodeDockNode"][1]["ret"] = "void" @@ -13165,7 +13745,7 @@ defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["call_args"] = "(out_draw_li defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["cimguiname"] = "igDebugNodeDrawCmdShowMeshAndBoundingBox" defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["defaults"] = {} defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["funcname"] = "DebugNodeDrawCmdShowMeshAndBoundingBox" -defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["location"] = "imgui_internal:3080" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["location"] = "imgui_internal:3436" defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["namespace"] = "ImGui" defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["ov_cimguiname"] = "igDebugNodeDrawCmdShowMeshAndBoundingBox" defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["ret"] = "void" @@ -13193,7 +13773,7 @@ defs["igDebugNodeDrawList"][1]["call_args"] = "(window,viewport,draw_list,label) defs["igDebugNodeDrawList"][1]["cimguiname"] = "igDebugNodeDrawList" defs["igDebugNodeDrawList"][1]["defaults"] = {} defs["igDebugNodeDrawList"][1]["funcname"] = "DebugNodeDrawList" -defs["igDebugNodeDrawList"][1]["location"] = "imgui_internal:3079" +defs["igDebugNodeDrawList"][1]["location"] = "imgui_internal:3435" defs["igDebugNodeDrawList"][1]["namespace"] = "ImGui" defs["igDebugNodeDrawList"][1]["ov_cimguiname"] = "igDebugNodeDrawList" defs["igDebugNodeDrawList"][1]["ret"] = "void" @@ -13212,13 +13792,54 @@ defs["igDebugNodeFont"][1]["call_args"] = "(font)" defs["igDebugNodeFont"][1]["cimguiname"] = "igDebugNodeFont" defs["igDebugNodeFont"][1]["defaults"] = {} defs["igDebugNodeFont"][1]["funcname"] = "DebugNodeFont" -defs["igDebugNodeFont"][1]["location"] = "imgui_internal:3081" +defs["igDebugNodeFont"][1]["location"] = "imgui_internal:3437" defs["igDebugNodeFont"][1]["namespace"] = "ImGui" defs["igDebugNodeFont"][1]["ov_cimguiname"] = "igDebugNodeFont" defs["igDebugNodeFont"][1]["ret"] = "void" defs["igDebugNodeFont"][1]["signature"] = "(ImFont*)" defs["igDebugNodeFont"][1]["stname"] = "" defs["igDebugNodeFont"]["(ImFont*)"] = defs["igDebugNodeFont"][1] +defs["igDebugNodeFontGlyph"] = {} +defs["igDebugNodeFontGlyph"][1] = {} +defs["igDebugNodeFontGlyph"][1]["args"] = "(ImFont* font,const ImFontGlyph* glyph)" +defs["igDebugNodeFontGlyph"][1]["argsT"] = {} +defs["igDebugNodeFontGlyph"][1]["argsT"][1] = {} +defs["igDebugNodeFontGlyph"][1]["argsT"][1]["name"] = "font" +defs["igDebugNodeFontGlyph"][1]["argsT"][1]["type"] = "ImFont*" +defs["igDebugNodeFontGlyph"][1]["argsT"][2] = {} +defs["igDebugNodeFontGlyph"][1]["argsT"][2]["name"] = "glyph" +defs["igDebugNodeFontGlyph"][1]["argsT"][2]["type"] = "const ImFontGlyph*" +defs["igDebugNodeFontGlyph"][1]["argsoriginal"] = "(ImFont* font,const ImFontGlyph* glyph)" +defs["igDebugNodeFontGlyph"][1]["call_args"] = "(font,glyph)" +defs["igDebugNodeFontGlyph"][1]["cimguiname"] = "igDebugNodeFontGlyph" +defs["igDebugNodeFontGlyph"][1]["defaults"] = {} +defs["igDebugNodeFontGlyph"][1]["funcname"] = "DebugNodeFontGlyph" +defs["igDebugNodeFontGlyph"][1]["location"] = "imgui_internal:3438" +defs["igDebugNodeFontGlyph"][1]["namespace"] = "ImGui" +defs["igDebugNodeFontGlyph"][1]["ov_cimguiname"] = "igDebugNodeFontGlyph" +defs["igDebugNodeFontGlyph"][1]["ret"] = "void" +defs["igDebugNodeFontGlyph"][1]["signature"] = "(ImFont*,const ImFontGlyph*)" +defs["igDebugNodeFontGlyph"][1]["stname"] = "" +defs["igDebugNodeFontGlyph"]["(ImFont*,const ImFontGlyph*)"] = defs["igDebugNodeFontGlyph"][1] +defs["igDebugNodeInputTextState"] = {} +defs["igDebugNodeInputTextState"][1] = {} +defs["igDebugNodeInputTextState"][1]["args"] = "(ImGuiInputTextState* state)" +defs["igDebugNodeInputTextState"][1]["argsT"] = {} +defs["igDebugNodeInputTextState"][1]["argsT"][1] = {} +defs["igDebugNodeInputTextState"][1]["argsT"][1]["name"] = "state" +defs["igDebugNodeInputTextState"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["igDebugNodeInputTextState"][1]["argsoriginal"] = "(ImGuiInputTextState* state)" +defs["igDebugNodeInputTextState"][1]["call_args"] = "(state)" +defs["igDebugNodeInputTextState"][1]["cimguiname"] = "igDebugNodeInputTextState" +defs["igDebugNodeInputTextState"][1]["defaults"] = {} +defs["igDebugNodeInputTextState"][1]["funcname"] = "DebugNodeInputTextState" +defs["igDebugNodeInputTextState"][1]["location"] = "imgui_internal:3443" +defs["igDebugNodeInputTextState"][1]["namespace"] = "ImGui" +defs["igDebugNodeInputTextState"][1]["ov_cimguiname"] = "igDebugNodeInputTextState" +defs["igDebugNodeInputTextState"][1]["ret"] = "void" +defs["igDebugNodeInputTextState"][1]["signature"] = "(ImGuiInputTextState*)" +defs["igDebugNodeInputTextState"][1]["stname"] = "" +defs["igDebugNodeInputTextState"]["(ImGuiInputTextState*)"] = defs["igDebugNodeInputTextState"][1] defs["igDebugNodeStorage"] = {} defs["igDebugNodeStorage"][1] = {} defs["igDebugNodeStorage"][1]["args"] = "(ImGuiStorage* storage,const char* label)" @@ -13234,7 +13855,7 @@ defs["igDebugNodeStorage"][1]["call_args"] = "(storage,label)" defs["igDebugNodeStorage"][1]["cimguiname"] = "igDebugNodeStorage" defs["igDebugNodeStorage"][1]["defaults"] = {} defs["igDebugNodeStorage"][1]["funcname"] = "DebugNodeStorage" -defs["igDebugNodeStorage"][1]["location"] = "imgui_internal:3082" +defs["igDebugNodeStorage"][1]["location"] = "imgui_internal:3439" defs["igDebugNodeStorage"][1]["namespace"] = "ImGui" defs["igDebugNodeStorage"][1]["ov_cimguiname"] = "igDebugNodeStorage" defs["igDebugNodeStorage"][1]["ret"] = "void" @@ -13256,7 +13877,7 @@ defs["igDebugNodeTabBar"][1]["call_args"] = "(tab_bar,label)" defs["igDebugNodeTabBar"][1]["cimguiname"] = "igDebugNodeTabBar" defs["igDebugNodeTabBar"][1]["defaults"] = {} defs["igDebugNodeTabBar"][1]["funcname"] = "DebugNodeTabBar" -defs["igDebugNodeTabBar"][1]["location"] = "imgui_internal:3083" +defs["igDebugNodeTabBar"][1]["location"] = "imgui_internal:3440" defs["igDebugNodeTabBar"][1]["namespace"] = "ImGui" defs["igDebugNodeTabBar"][1]["ov_cimguiname"] = "igDebugNodeTabBar" defs["igDebugNodeTabBar"][1]["ret"] = "void" @@ -13275,7 +13896,7 @@ defs["igDebugNodeTable"][1]["call_args"] = "(table)" defs["igDebugNodeTable"][1]["cimguiname"] = "igDebugNodeTable" defs["igDebugNodeTable"][1]["defaults"] = {} defs["igDebugNodeTable"][1]["funcname"] = "DebugNodeTable" -defs["igDebugNodeTable"][1]["location"] = "imgui_internal:3084" +defs["igDebugNodeTable"][1]["location"] = "imgui_internal:3441" defs["igDebugNodeTable"][1]["namespace"] = "ImGui" defs["igDebugNodeTable"][1]["ov_cimguiname"] = "igDebugNodeTable" defs["igDebugNodeTable"][1]["ret"] = "void" @@ -13294,7 +13915,7 @@ defs["igDebugNodeTableSettings"][1]["call_args"] = "(settings)" defs["igDebugNodeTableSettings"][1]["cimguiname"] = "igDebugNodeTableSettings" defs["igDebugNodeTableSettings"][1]["defaults"] = {} defs["igDebugNodeTableSettings"][1]["funcname"] = "DebugNodeTableSettings" -defs["igDebugNodeTableSettings"][1]["location"] = "imgui_internal:3085" +defs["igDebugNodeTableSettings"][1]["location"] = "imgui_internal:3442" defs["igDebugNodeTableSettings"][1]["namespace"] = "ImGui" defs["igDebugNodeTableSettings"][1]["ov_cimguiname"] = "igDebugNodeTableSettings" defs["igDebugNodeTableSettings"][1]["ret"] = "void" @@ -13313,7 +13934,7 @@ defs["igDebugNodeViewport"][1]["call_args"] = "(viewport)" defs["igDebugNodeViewport"][1]["cimguiname"] = "igDebugNodeViewport" defs["igDebugNodeViewport"][1]["defaults"] = {} defs["igDebugNodeViewport"][1]["funcname"] = "DebugNodeViewport" -defs["igDebugNodeViewport"][1]["location"] = "imgui_internal:3090" +defs["igDebugNodeViewport"][1]["location"] = "imgui_internal:3448" defs["igDebugNodeViewport"][1]["namespace"] = "ImGui" defs["igDebugNodeViewport"][1]["ov_cimguiname"] = "igDebugNodeViewport" defs["igDebugNodeViewport"][1]["ret"] = "void" @@ -13335,7 +13956,7 @@ defs["igDebugNodeWindow"][1]["call_args"] = "(window,label)" defs["igDebugNodeWindow"][1]["cimguiname"] = "igDebugNodeWindow" defs["igDebugNodeWindow"][1]["defaults"] = {} defs["igDebugNodeWindow"][1]["funcname"] = "DebugNodeWindow" -defs["igDebugNodeWindow"][1]["location"] = "imgui_internal:3086" +defs["igDebugNodeWindow"][1]["location"] = "imgui_internal:3444" defs["igDebugNodeWindow"][1]["namespace"] = "ImGui" defs["igDebugNodeWindow"][1]["ov_cimguiname"] = "igDebugNodeWindow" defs["igDebugNodeWindow"][1]["ret"] = "void" @@ -13354,7 +13975,7 @@ defs["igDebugNodeWindowSettings"][1]["call_args"] = "(settings)" defs["igDebugNodeWindowSettings"][1]["cimguiname"] = "igDebugNodeWindowSettings" defs["igDebugNodeWindowSettings"][1]["defaults"] = {} defs["igDebugNodeWindowSettings"][1]["funcname"] = "DebugNodeWindowSettings" -defs["igDebugNodeWindowSettings"][1]["location"] = "imgui_internal:3087" +defs["igDebugNodeWindowSettings"][1]["location"] = "imgui_internal:3445" defs["igDebugNodeWindowSettings"][1]["namespace"] = "ImGui" defs["igDebugNodeWindowSettings"][1]["ov_cimguiname"] = "igDebugNodeWindowSettings" defs["igDebugNodeWindowSettings"][1]["ret"] = "void" @@ -13376,7 +13997,7 @@ defs["igDebugNodeWindowsList"][1]["call_args"] = "(windows,label)" defs["igDebugNodeWindowsList"][1]["cimguiname"] = "igDebugNodeWindowsList" defs["igDebugNodeWindowsList"][1]["defaults"] = {} defs["igDebugNodeWindowsList"][1]["funcname"] = "DebugNodeWindowsList" -defs["igDebugNodeWindowsList"][1]["location"] = "imgui_internal:3088" +defs["igDebugNodeWindowsList"][1]["location"] = "imgui_internal:3446" defs["igDebugNodeWindowsList"][1]["namespace"] = "ImGui" defs["igDebugNodeWindowsList"][1]["ov_cimguiname"] = "igDebugNodeWindowsList" defs["igDebugNodeWindowsList"][1]["ret"] = "void" @@ -13401,7 +14022,7 @@ defs["igDebugNodeWindowsListByBeginStackParent"][1]["call_args"] = "(windows,win defs["igDebugNodeWindowsListByBeginStackParent"][1]["cimguiname"] = "igDebugNodeWindowsListByBeginStackParent" defs["igDebugNodeWindowsListByBeginStackParent"][1]["defaults"] = {} defs["igDebugNodeWindowsListByBeginStackParent"][1]["funcname"] = "DebugNodeWindowsListByBeginStackParent" -defs["igDebugNodeWindowsListByBeginStackParent"][1]["location"] = "imgui_internal:3089" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["location"] = "imgui_internal:3447" defs["igDebugNodeWindowsListByBeginStackParent"][1]["namespace"] = "ImGui" defs["igDebugNodeWindowsListByBeginStackParent"][1]["ov_cimguiname"] = "igDebugNodeWindowsListByBeginStackParent" defs["igDebugNodeWindowsListByBeginStackParent"][1]["ret"] = "void" @@ -13426,7 +14047,7 @@ defs["igDebugRenderViewportThumbnail"][1]["call_args"] = "(draw_list,viewport,bb defs["igDebugRenderViewportThumbnail"][1]["cimguiname"] = "igDebugRenderViewportThumbnail" defs["igDebugRenderViewportThumbnail"][1]["defaults"] = {} defs["igDebugRenderViewportThumbnail"][1]["funcname"] = "DebugRenderViewportThumbnail" -defs["igDebugRenderViewportThumbnail"][1]["location"] = "imgui_internal:3091" +defs["igDebugRenderViewportThumbnail"][1]["location"] = "imgui_internal:3449" defs["igDebugRenderViewportThumbnail"][1]["namespace"] = "ImGui" defs["igDebugRenderViewportThumbnail"][1]["ov_cimguiname"] = "igDebugRenderViewportThumbnail" defs["igDebugRenderViewportThumbnail"][1]["ret"] = "void" @@ -13442,13 +14063,32 @@ defs["igDebugStartItemPicker"][1]["call_args"] = "()" defs["igDebugStartItemPicker"][1]["cimguiname"] = "igDebugStartItemPicker" defs["igDebugStartItemPicker"][1]["defaults"] = {} defs["igDebugStartItemPicker"][1]["funcname"] = "DebugStartItemPicker" -defs["igDebugStartItemPicker"][1]["location"] = "imgui_internal:3073" +defs["igDebugStartItemPicker"][1]["location"] = "imgui_internal:3430" defs["igDebugStartItemPicker"][1]["namespace"] = "ImGui" defs["igDebugStartItemPicker"][1]["ov_cimguiname"] = "igDebugStartItemPicker" defs["igDebugStartItemPicker"][1]["ret"] = "void" defs["igDebugStartItemPicker"][1]["signature"] = "()" defs["igDebugStartItemPicker"][1]["stname"] = "" defs["igDebugStartItemPicker"]["()"] = defs["igDebugStartItemPicker"][1] +defs["igDebugTextEncoding"] = {} +defs["igDebugTextEncoding"][1] = {} +defs["igDebugTextEncoding"][1]["args"] = "(const char* text)" +defs["igDebugTextEncoding"][1]["argsT"] = {} +defs["igDebugTextEncoding"][1]["argsT"][1] = {} +defs["igDebugTextEncoding"][1]["argsT"][1]["name"] = "text" +defs["igDebugTextEncoding"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugTextEncoding"][1]["argsoriginal"] = "(const char* text)" +defs["igDebugTextEncoding"][1]["call_args"] = "(text)" +defs["igDebugTextEncoding"][1]["cimguiname"] = "igDebugTextEncoding" +defs["igDebugTextEncoding"][1]["defaults"] = {} +defs["igDebugTextEncoding"][1]["funcname"] = "DebugTextEncoding" +defs["igDebugTextEncoding"][1]["location"] = "imgui:965" +defs["igDebugTextEncoding"][1]["namespace"] = "ImGui" +defs["igDebugTextEncoding"][1]["ov_cimguiname"] = "igDebugTextEncoding" +defs["igDebugTextEncoding"][1]["ret"] = "void" +defs["igDebugTextEncoding"][1]["signature"] = "(const char*)" +defs["igDebugTextEncoding"][1]["stname"] = "" +defs["igDebugTextEncoding"]["(const char*)"] = defs["igDebugTextEncoding"][1] defs["igDestroyContext"] = {} defs["igDestroyContext"][1] = {} defs["igDestroyContext"][1]["args"] = "(ImGuiContext* ctx)" @@ -13462,7 +14102,7 @@ defs["igDestroyContext"][1]["cimguiname"] = "igDestroyContext" defs["igDestroyContext"][1]["defaults"] = {} defs["igDestroyContext"][1]["defaults"]["ctx"] = "NULL" defs["igDestroyContext"][1]["funcname"] = "DestroyContext" -defs["igDestroyContext"][1]["location"] = "imgui:302" +defs["igDestroyContext"][1]["location"] = "imgui:295" defs["igDestroyContext"][1]["namespace"] = "ImGui" defs["igDestroyContext"][1]["ov_cimguiname"] = "igDestroyContext" defs["igDestroyContext"][1]["ret"] = "void" @@ -13481,7 +14121,7 @@ defs["igDestroyPlatformWindow"][1]["call_args"] = "(viewport)" defs["igDestroyPlatformWindow"][1]["cimguiname"] = "igDestroyPlatformWindow" defs["igDestroyPlatformWindow"][1]["defaults"] = {} defs["igDestroyPlatformWindow"][1]["funcname"] = "DestroyPlatformWindow" -defs["igDestroyPlatformWindow"][1]["location"] = "imgui_internal:2695" +defs["igDestroyPlatformWindow"][1]["location"] = "imgui_internal:2984" defs["igDestroyPlatformWindow"][1]["namespace"] = "ImGui" defs["igDestroyPlatformWindow"][1]["ov_cimguiname"] = "igDestroyPlatformWindow" defs["igDestroyPlatformWindow"][1]["ret"] = "void" @@ -13497,7 +14137,7 @@ defs["igDestroyPlatformWindows"][1]["call_args"] = "()" defs["igDestroyPlatformWindows"][1]["cimguiname"] = "igDestroyPlatformWindows" defs["igDestroyPlatformWindows"][1]["defaults"] = {} defs["igDestroyPlatformWindows"][1]["funcname"] = "DestroyPlatformWindows" -defs["igDestroyPlatformWindows"][1]["location"] = "imgui:981" +defs["igDestroyPlatformWindows"][1]["location"] = "imgui:983" defs["igDestroyPlatformWindows"][1]["namespace"] = "ImGui" defs["igDestroyPlatformWindows"][1]["ov_cimguiname"] = "igDestroyPlatformWindows" defs["igDestroyPlatformWindows"][1]["ret"] = "void" @@ -13521,7 +14161,7 @@ defs["igDockBuilderAddNode"][1]["defaults"] = {} defs["igDockBuilderAddNode"][1]["defaults"]["flags"] = "0" defs["igDockBuilderAddNode"][1]["defaults"]["node_id"] = "0" defs["igDockBuilderAddNode"][1]["funcname"] = "DockBuilderAddNode" -defs["igDockBuilderAddNode"][1]["location"] = "imgui_internal:2875" +defs["igDockBuilderAddNode"][1]["location"] = "imgui_internal:3212" defs["igDockBuilderAddNode"][1]["namespace"] = "ImGui" defs["igDockBuilderAddNode"][1]["ov_cimguiname"] = "igDockBuilderAddNode" defs["igDockBuilderAddNode"][1]["ret"] = "ImGuiID" @@ -13546,7 +14186,7 @@ defs["igDockBuilderCopyDockSpace"][1]["call_args"] = "(src_dockspace_id,dst_dock defs["igDockBuilderCopyDockSpace"][1]["cimguiname"] = "igDockBuilderCopyDockSpace" defs["igDockBuilderCopyDockSpace"][1]["defaults"] = {} defs["igDockBuilderCopyDockSpace"][1]["funcname"] = "DockBuilderCopyDockSpace" -defs["igDockBuilderCopyDockSpace"][1]["location"] = "imgui_internal:2882" +defs["igDockBuilderCopyDockSpace"][1]["location"] = "imgui_internal:3219" defs["igDockBuilderCopyDockSpace"][1]["namespace"] = "ImGui" defs["igDockBuilderCopyDockSpace"][1]["ov_cimguiname"] = "igDockBuilderCopyDockSpace" defs["igDockBuilderCopyDockSpace"][1]["ret"] = "void" @@ -13571,7 +14211,7 @@ defs["igDockBuilderCopyNode"][1]["call_args"] = "(src_node_id,dst_node_id,out_no defs["igDockBuilderCopyNode"][1]["cimguiname"] = "igDockBuilderCopyNode" defs["igDockBuilderCopyNode"][1]["defaults"] = {} defs["igDockBuilderCopyNode"][1]["funcname"] = "DockBuilderCopyNode" -defs["igDockBuilderCopyNode"][1]["location"] = "imgui_internal:2883" +defs["igDockBuilderCopyNode"][1]["location"] = "imgui_internal:3220" defs["igDockBuilderCopyNode"][1]["namespace"] = "ImGui" defs["igDockBuilderCopyNode"][1]["ov_cimguiname"] = "igDockBuilderCopyNode" defs["igDockBuilderCopyNode"][1]["ret"] = "void" @@ -13593,7 +14233,7 @@ defs["igDockBuilderCopyWindowSettings"][1]["call_args"] = "(src_name,dst_name)" defs["igDockBuilderCopyWindowSettings"][1]["cimguiname"] = "igDockBuilderCopyWindowSettings" defs["igDockBuilderCopyWindowSettings"][1]["defaults"] = {} defs["igDockBuilderCopyWindowSettings"][1]["funcname"] = "DockBuilderCopyWindowSettings" -defs["igDockBuilderCopyWindowSettings"][1]["location"] = "imgui_internal:2884" +defs["igDockBuilderCopyWindowSettings"][1]["location"] = "imgui_internal:3221" defs["igDockBuilderCopyWindowSettings"][1]["namespace"] = "ImGui" defs["igDockBuilderCopyWindowSettings"][1]["ov_cimguiname"] = "igDockBuilderCopyWindowSettings" defs["igDockBuilderCopyWindowSettings"][1]["ret"] = "void" @@ -13615,7 +14255,7 @@ defs["igDockBuilderDockWindow"][1]["call_args"] = "(window_name,node_id)" defs["igDockBuilderDockWindow"][1]["cimguiname"] = "igDockBuilderDockWindow" defs["igDockBuilderDockWindow"][1]["defaults"] = {} defs["igDockBuilderDockWindow"][1]["funcname"] = "DockBuilderDockWindow" -defs["igDockBuilderDockWindow"][1]["location"] = "imgui_internal:2872" +defs["igDockBuilderDockWindow"][1]["location"] = "imgui_internal:3209" defs["igDockBuilderDockWindow"][1]["namespace"] = "ImGui" defs["igDockBuilderDockWindow"][1]["ov_cimguiname"] = "igDockBuilderDockWindow" defs["igDockBuilderDockWindow"][1]["ret"] = "void" @@ -13634,7 +14274,7 @@ defs["igDockBuilderFinish"][1]["call_args"] = "(node_id)" defs["igDockBuilderFinish"][1]["cimguiname"] = "igDockBuilderFinish" defs["igDockBuilderFinish"][1]["defaults"] = {} defs["igDockBuilderFinish"][1]["funcname"] = "DockBuilderFinish" -defs["igDockBuilderFinish"][1]["location"] = "imgui_internal:2885" +defs["igDockBuilderFinish"][1]["location"] = "imgui_internal:3222" defs["igDockBuilderFinish"][1]["namespace"] = "ImGui" defs["igDockBuilderFinish"][1]["ov_cimguiname"] = "igDockBuilderFinish" defs["igDockBuilderFinish"][1]["ret"] = "void" @@ -13653,7 +14293,7 @@ defs["igDockBuilderGetCentralNode"][1]["call_args"] = "(node_id)" defs["igDockBuilderGetCentralNode"][1]["cimguiname"] = "igDockBuilderGetCentralNode" defs["igDockBuilderGetCentralNode"][1]["defaults"] = {} defs["igDockBuilderGetCentralNode"][1]["funcname"] = "DockBuilderGetCentralNode" -defs["igDockBuilderGetCentralNode"][1]["location"] = "imgui_internal:2874" +defs["igDockBuilderGetCentralNode"][1]["location"] = "imgui_internal:3211" defs["igDockBuilderGetCentralNode"][1]["namespace"] = "ImGui" defs["igDockBuilderGetCentralNode"][1]["ov_cimguiname"] = "igDockBuilderGetCentralNode" defs["igDockBuilderGetCentralNode"][1]["ret"] = "ImGuiDockNode*" @@ -13672,7 +14312,7 @@ defs["igDockBuilderGetNode"][1]["call_args"] = "(node_id)" defs["igDockBuilderGetNode"][1]["cimguiname"] = "igDockBuilderGetNode" defs["igDockBuilderGetNode"][1]["defaults"] = {} defs["igDockBuilderGetNode"][1]["funcname"] = "DockBuilderGetNode" -defs["igDockBuilderGetNode"][1]["location"] = "imgui_internal:2873" +defs["igDockBuilderGetNode"][1]["location"] = "imgui_internal:3210" defs["igDockBuilderGetNode"][1]["namespace"] = "ImGui" defs["igDockBuilderGetNode"][1]["ov_cimguiname"] = "igDockBuilderGetNode" defs["igDockBuilderGetNode"][1]["ret"] = "ImGuiDockNode*" @@ -13691,7 +14331,7 @@ defs["igDockBuilderRemoveNode"][1]["call_args"] = "(node_id)" defs["igDockBuilderRemoveNode"][1]["cimguiname"] = "igDockBuilderRemoveNode" defs["igDockBuilderRemoveNode"][1]["defaults"] = {} defs["igDockBuilderRemoveNode"][1]["funcname"] = "DockBuilderRemoveNode" -defs["igDockBuilderRemoveNode"][1]["location"] = "imgui_internal:2876" +defs["igDockBuilderRemoveNode"][1]["location"] = "imgui_internal:3213" defs["igDockBuilderRemoveNode"][1]["namespace"] = "ImGui" defs["igDockBuilderRemoveNode"][1]["ov_cimguiname"] = "igDockBuilderRemoveNode" defs["igDockBuilderRemoveNode"][1]["ret"] = "void" @@ -13710,7 +14350,7 @@ defs["igDockBuilderRemoveNodeChildNodes"][1]["call_args"] = "(node_id)" defs["igDockBuilderRemoveNodeChildNodes"][1]["cimguiname"] = "igDockBuilderRemoveNodeChildNodes" defs["igDockBuilderRemoveNodeChildNodes"][1]["defaults"] = {} defs["igDockBuilderRemoveNodeChildNodes"][1]["funcname"] = "DockBuilderRemoveNodeChildNodes" -defs["igDockBuilderRemoveNodeChildNodes"][1]["location"] = "imgui_internal:2878" +defs["igDockBuilderRemoveNodeChildNodes"][1]["location"] = "imgui_internal:3215" defs["igDockBuilderRemoveNodeChildNodes"][1]["namespace"] = "ImGui" defs["igDockBuilderRemoveNodeChildNodes"][1]["ov_cimguiname"] = "igDockBuilderRemoveNodeChildNodes" defs["igDockBuilderRemoveNodeChildNodes"][1]["ret"] = "void" @@ -13733,7 +14373,7 @@ defs["igDockBuilderRemoveNodeDockedWindows"][1]["cimguiname"] = "igDockBuilderRe defs["igDockBuilderRemoveNodeDockedWindows"][1]["defaults"] = {} defs["igDockBuilderRemoveNodeDockedWindows"][1]["defaults"]["clear_settings_refs"] = "true" defs["igDockBuilderRemoveNodeDockedWindows"][1]["funcname"] = "DockBuilderRemoveNodeDockedWindows" -defs["igDockBuilderRemoveNodeDockedWindows"][1]["location"] = "imgui_internal:2877" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["location"] = "imgui_internal:3214" defs["igDockBuilderRemoveNodeDockedWindows"][1]["namespace"] = "ImGui" defs["igDockBuilderRemoveNodeDockedWindows"][1]["ov_cimguiname"] = "igDockBuilderRemoveNodeDockedWindows" defs["igDockBuilderRemoveNodeDockedWindows"][1]["ret"] = "void" @@ -13755,7 +14395,7 @@ defs["igDockBuilderSetNodePos"][1]["call_args"] = "(node_id,pos)" defs["igDockBuilderSetNodePos"][1]["cimguiname"] = "igDockBuilderSetNodePos" defs["igDockBuilderSetNodePos"][1]["defaults"] = {} defs["igDockBuilderSetNodePos"][1]["funcname"] = "DockBuilderSetNodePos" -defs["igDockBuilderSetNodePos"][1]["location"] = "imgui_internal:2879" +defs["igDockBuilderSetNodePos"][1]["location"] = "imgui_internal:3216" defs["igDockBuilderSetNodePos"][1]["namespace"] = "ImGui" defs["igDockBuilderSetNodePos"][1]["ov_cimguiname"] = "igDockBuilderSetNodePos" defs["igDockBuilderSetNodePos"][1]["ret"] = "void" @@ -13777,7 +14417,7 @@ defs["igDockBuilderSetNodeSize"][1]["call_args"] = "(node_id,size)" defs["igDockBuilderSetNodeSize"][1]["cimguiname"] = "igDockBuilderSetNodeSize" defs["igDockBuilderSetNodeSize"][1]["defaults"] = {} defs["igDockBuilderSetNodeSize"][1]["funcname"] = "DockBuilderSetNodeSize" -defs["igDockBuilderSetNodeSize"][1]["location"] = "imgui_internal:2880" +defs["igDockBuilderSetNodeSize"][1]["location"] = "imgui_internal:3217" defs["igDockBuilderSetNodeSize"][1]["namespace"] = "ImGui" defs["igDockBuilderSetNodeSize"][1]["ov_cimguiname"] = "igDockBuilderSetNodeSize" defs["igDockBuilderSetNodeSize"][1]["ret"] = "void" @@ -13808,7 +14448,7 @@ defs["igDockBuilderSplitNode"][1]["call_args"] = "(node_id,split_dir,size_ratio_ defs["igDockBuilderSplitNode"][1]["cimguiname"] = "igDockBuilderSplitNode" defs["igDockBuilderSplitNode"][1]["defaults"] = {} defs["igDockBuilderSplitNode"][1]["funcname"] = "DockBuilderSplitNode" -defs["igDockBuilderSplitNode"][1]["location"] = "imgui_internal:2881" +defs["igDockBuilderSplitNode"][1]["location"] = "imgui_internal:3218" defs["igDockBuilderSplitNode"][1]["namespace"] = "ImGui" defs["igDockBuilderSplitNode"][1]["ov_cimguiname"] = "igDockBuilderSplitNode" defs["igDockBuilderSplitNode"][1]["ret"] = "ImGuiID" @@ -13817,7 +14457,7 @@ defs["igDockBuilderSplitNode"][1]["stname"] = "" defs["igDockBuilderSplitNode"]["(ImGuiID,ImGuiDir,float,ImGuiID*,ImGuiID*)"] = defs["igDockBuilderSplitNode"][1] defs["igDockContextCalcDropPosForDocking"] = {} defs["igDockContextCalcDropPosForDocking"][1] = {} -defs["igDockContextCalcDropPosForDocking"][1]["args"] = "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)" +defs["igDockContextCalcDropPosForDocking"][1]["args"] = "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)" defs["igDockContextCalcDropPosForDocking"][1]["argsT"] = {} defs["igDockContextCalcDropPosForDocking"][1]["argsT"][1] = {} defs["igDockContextCalcDropPosForDocking"][1]["argsT"][1]["name"] = "target" @@ -13826,29 +14466,32 @@ defs["igDockContextCalcDropPosForDocking"][1]["argsT"][2] = {} defs["igDockContextCalcDropPosForDocking"][1]["argsT"][2]["name"] = "target_node" defs["igDockContextCalcDropPosForDocking"][1]["argsT"][2]["type"] = "ImGuiDockNode*" defs["igDockContextCalcDropPosForDocking"][1]["argsT"][3] = {} -defs["igDockContextCalcDropPosForDocking"][1]["argsT"][3]["name"] = "payload" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][3]["name"] = "payload_window" defs["igDockContextCalcDropPosForDocking"][1]["argsT"][3]["type"] = "ImGuiWindow*" defs["igDockContextCalcDropPosForDocking"][1]["argsT"][4] = {} -defs["igDockContextCalcDropPosForDocking"][1]["argsT"][4]["name"] = "split_dir" -defs["igDockContextCalcDropPosForDocking"][1]["argsT"][4]["type"] = "ImGuiDir" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][4]["name"] = "payload_node" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][4]["type"] = "ImGuiDockNode*" defs["igDockContextCalcDropPosForDocking"][1]["argsT"][5] = {} -defs["igDockContextCalcDropPosForDocking"][1]["argsT"][5]["name"] = "split_outer" -defs["igDockContextCalcDropPosForDocking"][1]["argsT"][5]["type"] = "bool" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][5]["name"] = "split_dir" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][5]["type"] = "ImGuiDir" defs["igDockContextCalcDropPosForDocking"][1]["argsT"][6] = {} -defs["igDockContextCalcDropPosForDocking"][1]["argsT"][6]["name"] = "out_pos" -defs["igDockContextCalcDropPosForDocking"][1]["argsT"][6]["type"] = "ImVec2*" -defs["igDockContextCalcDropPosForDocking"][1]["argsoriginal"] = "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)" -defs["igDockContextCalcDropPosForDocking"][1]["call_args"] = "(target,target_node,payload,split_dir,split_outer,out_pos)" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][6]["name"] = "split_outer" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][6]["type"] = "bool" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][7] = {} +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][7]["name"] = "out_pos" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][7]["type"] = "ImVec2*" +defs["igDockContextCalcDropPosForDocking"][1]["argsoriginal"] = "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)" +defs["igDockContextCalcDropPosForDocking"][1]["call_args"] = "(target,target_node,payload_window,payload_node,split_dir,split_outer,out_pos)" defs["igDockContextCalcDropPosForDocking"][1]["cimguiname"] = "igDockContextCalcDropPosForDocking" defs["igDockContextCalcDropPosForDocking"][1]["defaults"] = {} defs["igDockContextCalcDropPosForDocking"][1]["funcname"] = "DockContextCalcDropPosForDocking" -defs["igDockContextCalcDropPosForDocking"][1]["location"] = "imgui_internal:2849" +defs["igDockContextCalcDropPosForDocking"][1]["location"] = "imgui_internal:3185" defs["igDockContextCalcDropPosForDocking"][1]["namespace"] = "ImGui" defs["igDockContextCalcDropPosForDocking"][1]["ov_cimguiname"] = "igDockContextCalcDropPosForDocking" defs["igDockContextCalcDropPosForDocking"][1]["ret"] = "bool" -defs["igDockContextCalcDropPosForDocking"][1]["signature"] = "(ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDir,bool,ImVec2*)" +defs["igDockContextCalcDropPosForDocking"][1]["signature"] = "(ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDockNode*,ImGuiDir,bool,ImVec2*)" defs["igDockContextCalcDropPosForDocking"][1]["stname"] = "" -defs["igDockContextCalcDropPosForDocking"]["(ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDir,bool,ImVec2*)"] = defs["igDockContextCalcDropPosForDocking"][1] +defs["igDockContextCalcDropPosForDocking"]["(ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDockNode*,ImGuiDir,bool,ImVec2*)"] = defs["igDockContextCalcDropPosForDocking"][1] defs["igDockContextClearNodes"] = {} defs["igDockContextClearNodes"][1] = {} defs["igDockContextClearNodes"][1]["args"] = "(ImGuiContext* ctx,ImGuiID root_id,bool clear_settings_refs)" @@ -13867,7 +14510,7 @@ defs["igDockContextClearNodes"][1]["call_args"] = "(ctx,root_id,clear_settings_r defs["igDockContextClearNodes"][1]["cimguiname"] = "igDockContextClearNodes" defs["igDockContextClearNodes"][1]["defaults"] = {} defs["igDockContextClearNodes"][1]["funcname"] = "DockContextClearNodes" -defs["igDockContextClearNodes"][1]["location"] = "imgui_internal:2840" +defs["igDockContextClearNodes"][1]["location"] = "imgui_internal:3176" defs["igDockContextClearNodes"][1]["namespace"] = "ImGui" defs["igDockContextClearNodes"][1]["ov_cimguiname"] = "igDockContextClearNodes" defs["igDockContextClearNodes"][1]["ret"] = "void" @@ -13886,13 +14529,35 @@ defs["igDockContextEndFrame"][1]["call_args"] = "(ctx)" defs["igDockContextEndFrame"][1]["cimguiname"] = "igDockContextEndFrame" defs["igDockContextEndFrame"][1]["defaults"] = {} defs["igDockContextEndFrame"][1]["funcname"] = "DockContextEndFrame" -defs["igDockContextEndFrame"][1]["location"] = "imgui_internal:2844" +defs["igDockContextEndFrame"][1]["location"] = "imgui_internal:3180" defs["igDockContextEndFrame"][1]["namespace"] = "ImGui" defs["igDockContextEndFrame"][1]["ov_cimguiname"] = "igDockContextEndFrame" defs["igDockContextEndFrame"][1]["ret"] = "void" defs["igDockContextEndFrame"][1]["signature"] = "(ImGuiContext*)" defs["igDockContextEndFrame"][1]["stname"] = "" defs["igDockContextEndFrame"]["(ImGuiContext*)"] = defs["igDockContextEndFrame"][1] +defs["igDockContextFindNodeByID"] = {} +defs["igDockContextFindNodeByID"][1] = {} +defs["igDockContextFindNodeByID"][1]["args"] = "(ImGuiContext* ctx,ImGuiID id)" +defs["igDockContextFindNodeByID"][1]["argsT"] = {} +defs["igDockContextFindNodeByID"][1]["argsT"][1] = {} +defs["igDockContextFindNodeByID"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextFindNodeByID"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextFindNodeByID"][1]["argsT"][2] = {} +defs["igDockContextFindNodeByID"][1]["argsT"][2]["name"] = "id" +defs["igDockContextFindNodeByID"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igDockContextFindNodeByID"][1]["argsoriginal"] = "(ImGuiContext* ctx,ImGuiID id)" +defs["igDockContextFindNodeByID"][1]["call_args"] = "(ctx,id)" +defs["igDockContextFindNodeByID"][1]["cimguiname"] = "igDockContextFindNodeByID" +defs["igDockContextFindNodeByID"][1]["defaults"] = {} +defs["igDockContextFindNodeByID"][1]["funcname"] = "DockContextFindNodeByID" +defs["igDockContextFindNodeByID"][1]["location"] = "imgui_internal:3186" +defs["igDockContextFindNodeByID"][1]["namespace"] = "ImGui" +defs["igDockContextFindNodeByID"][1]["ov_cimguiname"] = "igDockContextFindNodeByID" +defs["igDockContextFindNodeByID"][1]["ret"] = "ImGuiDockNode*" +defs["igDockContextFindNodeByID"][1]["signature"] = "(ImGuiContext*,ImGuiID)" +defs["igDockContextFindNodeByID"][1]["stname"] = "" +defs["igDockContextFindNodeByID"]["(ImGuiContext*,ImGuiID)"] = defs["igDockContextFindNodeByID"][1] defs["igDockContextGenNodeID"] = {} defs["igDockContextGenNodeID"][1] = {} defs["igDockContextGenNodeID"][1]["args"] = "(ImGuiContext* ctx)" @@ -13905,7 +14570,7 @@ defs["igDockContextGenNodeID"][1]["call_args"] = "(ctx)" defs["igDockContextGenNodeID"][1]["cimguiname"] = "igDockContextGenNodeID" defs["igDockContextGenNodeID"][1]["defaults"] = {} defs["igDockContextGenNodeID"][1]["funcname"] = "DockContextGenNodeID" -defs["igDockContextGenNodeID"][1]["location"] = "imgui_internal:2845" +defs["igDockContextGenNodeID"][1]["location"] = "imgui_internal:3181" defs["igDockContextGenNodeID"][1]["namespace"] = "ImGui" defs["igDockContextGenNodeID"][1]["ov_cimguiname"] = "igDockContextGenNodeID" defs["igDockContextGenNodeID"][1]["ret"] = "ImGuiID" @@ -13924,7 +14589,7 @@ defs["igDockContextInitialize"][1]["call_args"] = "(ctx)" defs["igDockContextInitialize"][1]["cimguiname"] = "igDockContextInitialize" defs["igDockContextInitialize"][1]["defaults"] = {} defs["igDockContextInitialize"][1]["funcname"] = "DockContextInitialize" -defs["igDockContextInitialize"][1]["location"] = "imgui_internal:2838" +defs["igDockContextInitialize"][1]["location"] = "imgui_internal:3174" defs["igDockContextInitialize"][1]["namespace"] = "ImGui" defs["igDockContextInitialize"][1]["ov_cimguiname"] = "igDockContextInitialize" defs["igDockContextInitialize"][1]["ret"] = "void" @@ -13943,7 +14608,7 @@ defs["igDockContextNewFrameUpdateDocking"][1]["call_args"] = "(ctx)" defs["igDockContextNewFrameUpdateDocking"][1]["cimguiname"] = "igDockContextNewFrameUpdateDocking" defs["igDockContextNewFrameUpdateDocking"][1]["defaults"] = {} defs["igDockContextNewFrameUpdateDocking"][1]["funcname"] = "DockContextNewFrameUpdateDocking" -defs["igDockContextNewFrameUpdateDocking"][1]["location"] = "imgui_internal:2843" +defs["igDockContextNewFrameUpdateDocking"][1]["location"] = "imgui_internal:3179" defs["igDockContextNewFrameUpdateDocking"][1]["namespace"] = "ImGui" defs["igDockContextNewFrameUpdateDocking"][1]["ov_cimguiname"] = "igDockContextNewFrameUpdateDocking" defs["igDockContextNewFrameUpdateDocking"][1]["ret"] = "void" @@ -13962,7 +14627,7 @@ defs["igDockContextNewFrameUpdateUndocking"][1]["call_args"] = "(ctx)" defs["igDockContextNewFrameUpdateUndocking"][1]["cimguiname"] = "igDockContextNewFrameUpdateUndocking" defs["igDockContextNewFrameUpdateUndocking"][1]["defaults"] = {} defs["igDockContextNewFrameUpdateUndocking"][1]["funcname"] = "DockContextNewFrameUpdateUndocking" -defs["igDockContextNewFrameUpdateUndocking"][1]["location"] = "imgui_internal:2842" +defs["igDockContextNewFrameUpdateUndocking"][1]["location"] = "imgui_internal:3178" defs["igDockContextNewFrameUpdateUndocking"][1]["namespace"] = "ImGui" defs["igDockContextNewFrameUpdateUndocking"][1]["ov_cimguiname"] = "igDockContextNewFrameUpdateUndocking" defs["igDockContextNewFrameUpdateUndocking"][1]["ret"] = "void" @@ -13999,7 +14664,7 @@ defs["igDockContextQueueDock"][1]["call_args"] = "(ctx,target,target_node,payloa defs["igDockContextQueueDock"][1]["cimguiname"] = "igDockContextQueueDock" defs["igDockContextQueueDock"][1]["defaults"] = {} defs["igDockContextQueueDock"][1]["funcname"] = "DockContextQueueDock" -defs["igDockContextQueueDock"][1]["location"] = "imgui_internal:2846" +defs["igDockContextQueueDock"][1]["location"] = "imgui_internal:3182" defs["igDockContextQueueDock"][1]["namespace"] = "ImGui" defs["igDockContextQueueDock"][1]["ov_cimguiname"] = "igDockContextQueueDock" defs["igDockContextQueueDock"][1]["ret"] = "void" @@ -14021,7 +14686,7 @@ defs["igDockContextQueueUndockNode"][1]["call_args"] = "(ctx,node)" defs["igDockContextQueueUndockNode"][1]["cimguiname"] = "igDockContextQueueUndockNode" defs["igDockContextQueueUndockNode"][1]["defaults"] = {} defs["igDockContextQueueUndockNode"][1]["funcname"] = "DockContextQueueUndockNode" -defs["igDockContextQueueUndockNode"][1]["location"] = "imgui_internal:2848" +defs["igDockContextQueueUndockNode"][1]["location"] = "imgui_internal:3184" defs["igDockContextQueueUndockNode"][1]["namespace"] = "ImGui" defs["igDockContextQueueUndockNode"][1]["ov_cimguiname"] = "igDockContextQueueUndockNode" defs["igDockContextQueueUndockNode"][1]["ret"] = "void" @@ -14043,7 +14708,7 @@ defs["igDockContextQueueUndockWindow"][1]["call_args"] = "(ctx,window)" defs["igDockContextQueueUndockWindow"][1]["cimguiname"] = "igDockContextQueueUndockWindow" defs["igDockContextQueueUndockWindow"][1]["defaults"] = {} defs["igDockContextQueueUndockWindow"][1]["funcname"] = "DockContextQueueUndockWindow" -defs["igDockContextQueueUndockWindow"][1]["location"] = "imgui_internal:2847" +defs["igDockContextQueueUndockWindow"][1]["location"] = "imgui_internal:3183" defs["igDockContextQueueUndockWindow"][1]["namespace"] = "ImGui" defs["igDockContextQueueUndockWindow"][1]["ov_cimguiname"] = "igDockContextQueueUndockWindow" defs["igDockContextQueueUndockWindow"][1]["ret"] = "void" @@ -14062,7 +14727,7 @@ defs["igDockContextRebuildNodes"][1]["call_args"] = "(ctx)" defs["igDockContextRebuildNodes"][1]["cimguiname"] = "igDockContextRebuildNodes" defs["igDockContextRebuildNodes"][1]["defaults"] = {} defs["igDockContextRebuildNodes"][1]["funcname"] = "DockContextRebuildNodes" -defs["igDockContextRebuildNodes"][1]["location"] = "imgui_internal:2841" +defs["igDockContextRebuildNodes"][1]["location"] = "imgui_internal:3177" defs["igDockContextRebuildNodes"][1]["namespace"] = "ImGui" defs["igDockContextRebuildNodes"][1]["ov_cimguiname"] = "igDockContextRebuildNodes" defs["igDockContextRebuildNodes"][1]["ret"] = "void" @@ -14081,7 +14746,7 @@ defs["igDockContextShutdown"][1]["call_args"] = "(ctx)" defs["igDockContextShutdown"][1]["cimguiname"] = "igDockContextShutdown" defs["igDockContextShutdown"][1]["defaults"] = {} defs["igDockContextShutdown"][1]["funcname"] = "DockContextShutdown" -defs["igDockContextShutdown"][1]["location"] = "imgui_internal:2839" +defs["igDockContextShutdown"][1]["location"] = "imgui_internal:3175" defs["igDockContextShutdown"][1]["namespace"] = "ImGui" defs["igDockContextShutdown"][1]["ov_cimguiname"] = "igDockContextShutdown" defs["igDockContextShutdown"][1]["ret"] = "void" @@ -14100,7 +14765,7 @@ defs["igDockNodeBeginAmendTabBar"][1]["call_args"] = "(node)" defs["igDockNodeBeginAmendTabBar"][1]["cimguiname"] = "igDockNodeBeginAmendTabBar" defs["igDockNodeBeginAmendTabBar"][1]["defaults"] = {} defs["igDockNodeBeginAmendTabBar"][1]["funcname"] = "DockNodeBeginAmendTabBar" -defs["igDockNodeBeginAmendTabBar"][1]["location"] = "imgui_internal:2850" +defs["igDockNodeBeginAmendTabBar"][1]["location"] = "imgui_internal:3187" defs["igDockNodeBeginAmendTabBar"][1]["namespace"] = "ImGui" defs["igDockNodeBeginAmendTabBar"][1]["ov_cimguiname"] = "igDockNodeBeginAmendTabBar" defs["igDockNodeBeginAmendTabBar"][1]["ret"] = "bool" @@ -14116,7 +14781,7 @@ defs["igDockNodeEndAmendTabBar"][1]["call_args"] = "()" defs["igDockNodeEndAmendTabBar"][1]["cimguiname"] = "igDockNodeEndAmendTabBar" defs["igDockNodeEndAmendTabBar"][1]["defaults"] = {} defs["igDockNodeEndAmendTabBar"][1]["funcname"] = "DockNodeEndAmendTabBar" -defs["igDockNodeEndAmendTabBar"][1]["location"] = "imgui_internal:2851" +defs["igDockNodeEndAmendTabBar"][1]["location"] = "imgui_internal:3188" defs["igDockNodeEndAmendTabBar"][1]["namespace"] = "ImGui" defs["igDockNodeEndAmendTabBar"][1]["ov_cimguiname"] = "igDockNodeEndAmendTabBar" defs["igDockNodeEndAmendTabBar"][1]["ret"] = "void" @@ -14135,7 +14800,7 @@ defs["igDockNodeGetDepth"][1]["call_args"] = "(node)" defs["igDockNodeGetDepth"][1]["cimguiname"] = "igDockNodeGetDepth" defs["igDockNodeGetDepth"][1]["defaults"] = {} defs["igDockNodeGetDepth"][1]["funcname"] = "DockNodeGetDepth" -defs["igDockNodeGetDepth"][1]["location"] = "imgui_internal:2854" +defs["igDockNodeGetDepth"][1]["location"] = "imgui_internal:3191" defs["igDockNodeGetDepth"][1]["namespace"] = "ImGui" defs["igDockNodeGetDepth"][1]["ov_cimguiname"] = "igDockNodeGetDepth" defs["igDockNodeGetDepth"][1]["ret"] = "int" @@ -14154,7 +14819,7 @@ defs["igDockNodeGetRootNode"][1]["call_args"] = "(node)" defs["igDockNodeGetRootNode"][1]["cimguiname"] = "igDockNodeGetRootNode" defs["igDockNodeGetRootNode"][1]["defaults"] = {} defs["igDockNodeGetRootNode"][1]["funcname"] = "DockNodeGetRootNode" -defs["igDockNodeGetRootNode"][1]["location"] = "imgui_internal:2852" +defs["igDockNodeGetRootNode"][1]["location"] = "imgui_internal:3189" defs["igDockNodeGetRootNode"][1]["namespace"] = "ImGui" defs["igDockNodeGetRootNode"][1]["ov_cimguiname"] = "igDockNodeGetRootNode" defs["igDockNodeGetRootNode"][1]["ret"] = "ImGuiDockNode*" @@ -14173,7 +14838,7 @@ defs["igDockNodeGetWindowMenuButtonId"][1]["call_args"] = "(node)" defs["igDockNodeGetWindowMenuButtonId"][1]["cimguiname"] = "igDockNodeGetWindowMenuButtonId" defs["igDockNodeGetWindowMenuButtonId"][1]["defaults"] = {} defs["igDockNodeGetWindowMenuButtonId"][1]["funcname"] = "DockNodeGetWindowMenuButtonId" -defs["igDockNodeGetWindowMenuButtonId"][1]["location"] = "imgui_internal:2855" +defs["igDockNodeGetWindowMenuButtonId"][1]["location"] = "imgui_internal:3192" defs["igDockNodeGetWindowMenuButtonId"][1]["namespace"] = "ImGui" defs["igDockNodeGetWindowMenuButtonId"][1]["ov_cimguiname"] = "igDockNodeGetWindowMenuButtonId" defs["igDockNodeGetWindowMenuButtonId"][1]["ret"] = "ImGuiID" @@ -14195,7 +14860,7 @@ defs["igDockNodeIsInHierarchyOf"][1]["call_args"] = "(node,parent)" defs["igDockNodeIsInHierarchyOf"][1]["cimguiname"] = "igDockNodeIsInHierarchyOf" defs["igDockNodeIsInHierarchyOf"][1]["defaults"] = {} defs["igDockNodeIsInHierarchyOf"][1]["funcname"] = "DockNodeIsInHierarchyOf" -defs["igDockNodeIsInHierarchyOf"][1]["location"] = "imgui_internal:2853" +defs["igDockNodeIsInHierarchyOf"][1]["location"] = "imgui_internal:3190" defs["igDockNodeIsInHierarchyOf"][1]["namespace"] = "ImGui" defs["igDockNodeIsInHierarchyOf"][1]["ov_cimguiname"] = "igDockNodeIsInHierarchyOf" defs["igDockNodeIsInHierarchyOf"][1]["ret"] = "bool" @@ -14226,7 +14891,7 @@ defs["igDockSpace"][1]["defaults"]["flags"] = "0" defs["igDockSpace"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igDockSpace"][1]["defaults"]["window_class"] = "NULL" defs["igDockSpace"][1]["funcname"] = "DockSpace" -defs["igDockSpace"][1]["location"] = "imgui:818" +defs["igDockSpace"][1]["location"] = "imgui:815" defs["igDockSpace"][1]["namespace"] = "ImGui" defs["igDockSpace"][1]["ov_cimguiname"] = "igDockSpace" defs["igDockSpace"][1]["ret"] = "ImGuiID" @@ -14254,7 +14919,7 @@ defs["igDockSpaceOverViewport"][1]["defaults"]["flags"] = "0" defs["igDockSpaceOverViewport"][1]["defaults"]["viewport"] = "NULL" defs["igDockSpaceOverViewport"][1]["defaults"]["window_class"] = "NULL" defs["igDockSpaceOverViewport"][1]["funcname"] = "DockSpaceOverViewport" -defs["igDockSpaceOverViewport"][1]["location"] = "imgui:819" +defs["igDockSpaceOverViewport"][1]["location"] = "imgui:816" defs["igDockSpaceOverViewport"][1]["namespace"] = "ImGui" defs["igDockSpaceOverViewport"][1]["ov_cimguiname"] = "igDockSpaceOverViewport" defs["igDockSpaceOverViewport"][1]["ret"] = "ImGuiID" @@ -14294,7 +14959,7 @@ defs["igDragBehavior"][1]["call_args"] = "(id,data_type,p_v,v_speed,p_min,p_max, defs["igDragBehavior"][1]["cimguiname"] = "igDragBehavior" defs["igDragBehavior"][1]["defaults"] = {} defs["igDragBehavior"][1]["funcname"] = "DragBehavior" -defs["igDragBehavior"][1]["location"] = "imgui_internal:3020" +defs["igDragBehavior"][1]["location"] = "imgui_internal:3368" defs["igDragBehavior"][1]["namespace"] = "ImGui" defs["igDragBehavior"][1]["ov_cimguiname"] = "igDragBehavior" defs["igDragBehavior"][1]["ret"] = "bool" @@ -14336,7 +15001,7 @@ defs["igDragFloat"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloat"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloat"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloat"][1]["funcname"] = "DragFloat" -defs["igDragFloat"][1]["location"] = "imgui:546" +defs["igDragFloat"][1]["location"] = "imgui:547" defs["igDragFloat"][1]["namespace"] = "ImGui" defs["igDragFloat"][1]["ov_cimguiname"] = "igDragFloat" defs["igDragFloat"][1]["ret"] = "bool" @@ -14378,7 +15043,7 @@ defs["igDragFloat2"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloat2"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloat2"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloat2"][1]["funcname"] = "DragFloat2" -defs["igDragFloat2"][1]["location"] = "imgui:547" +defs["igDragFloat2"][1]["location"] = "imgui:548" defs["igDragFloat2"][1]["namespace"] = "ImGui" defs["igDragFloat2"][1]["ov_cimguiname"] = "igDragFloat2" defs["igDragFloat2"][1]["ret"] = "bool" @@ -14420,7 +15085,7 @@ defs["igDragFloat3"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloat3"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloat3"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloat3"][1]["funcname"] = "DragFloat3" -defs["igDragFloat3"][1]["location"] = "imgui:548" +defs["igDragFloat3"][1]["location"] = "imgui:549" defs["igDragFloat3"][1]["namespace"] = "ImGui" defs["igDragFloat3"][1]["ov_cimguiname"] = "igDragFloat3" defs["igDragFloat3"][1]["ret"] = "bool" @@ -14462,7 +15127,7 @@ defs["igDragFloat4"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloat4"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloat4"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloat4"][1]["funcname"] = "DragFloat4" -defs["igDragFloat4"][1]["location"] = "imgui:549" +defs["igDragFloat4"][1]["location"] = "imgui:550" defs["igDragFloat4"][1]["namespace"] = "ImGui" defs["igDragFloat4"][1]["ov_cimguiname"] = "igDragFloat4" defs["igDragFloat4"][1]["ret"] = "bool" @@ -14511,7 +15176,7 @@ defs["igDragFloatRange2"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloatRange2"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloatRange2"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloatRange2"][1]["funcname"] = "DragFloatRange2" -defs["igDragFloatRange2"][1]["location"] = "imgui:550" +defs["igDragFloatRange2"][1]["location"] = "imgui:551" defs["igDragFloatRange2"][1]["namespace"] = "ImGui" defs["igDragFloatRange2"][1]["ov_cimguiname"] = "igDragFloatRange2" defs["igDragFloatRange2"][1]["ret"] = "bool" @@ -14553,7 +15218,7 @@ defs["igDragInt"][1]["defaults"]["v_max"] = "0" defs["igDragInt"][1]["defaults"]["v_min"] = "0" defs["igDragInt"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragInt"][1]["funcname"] = "DragInt" -defs["igDragInt"][1]["location"] = "imgui:551" +defs["igDragInt"][1]["location"] = "imgui:552" defs["igDragInt"][1]["namespace"] = "ImGui" defs["igDragInt"][1]["ov_cimguiname"] = "igDragInt" defs["igDragInt"][1]["ret"] = "bool" @@ -14595,7 +15260,7 @@ defs["igDragInt2"][1]["defaults"]["v_max"] = "0" defs["igDragInt2"][1]["defaults"]["v_min"] = "0" defs["igDragInt2"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragInt2"][1]["funcname"] = "DragInt2" -defs["igDragInt2"][1]["location"] = "imgui:552" +defs["igDragInt2"][1]["location"] = "imgui:553" defs["igDragInt2"][1]["namespace"] = "ImGui" defs["igDragInt2"][1]["ov_cimguiname"] = "igDragInt2" defs["igDragInt2"][1]["ret"] = "bool" @@ -14637,7 +15302,7 @@ defs["igDragInt3"][1]["defaults"]["v_max"] = "0" defs["igDragInt3"][1]["defaults"]["v_min"] = "0" defs["igDragInt3"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragInt3"][1]["funcname"] = "DragInt3" -defs["igDragInt3"][1]["location"] = "imgui:553" +defs["igDragInt3"][1]["location"] = "imgui:554" defs["igDragInt3"][1]["namespace"] = "ImGui" defs["igDragInt3"][1]["ov_cimguiname"] = "igDragInt3" defs["igDragInt3"][1]["ret"] = "bool" @@ -14679,7 +15344,7 @@ defs["igDragInt4"][1]["defaults"]["v_max"] = "0" defs["igDragInt4"][1]["defaults"]["v_min"] = "0" defs["igDragInt4"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragInt4"][1]["funcname"] = "DragInt4" -defs["igDragInt4"][1]["location"] = "imgui:554" +defs["igDragInt4"][1]["location"] = "imgui:555" defs["igDragInt4"][1]["namespace"] = "ImGui" defs["igDragInt4"][1]["ov_cimguiname"] = "igDragInt4" defs["igDragInt4"][1]["ret"] = "bool" @@ -14728,7 +15393,7 @@ defs["igDragIntRange2"][1]["defaults"]["v_max"] = "0" defs["igDragIntRange2"][1]["defaults"]["v_min"] = "0" defs["igDragIntRange2"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragIntRange2"][1]["funcname"] = "DragIntRange2" -defs["igDragIntRange2"][1]["location"] = "imgui:555" +defs["igDragIntRange2"][1]["location"] = "imgui:556" defs["igDragIntRange2"][1]["namespace"] = "ImGui" defs["igDragIntRange2"][1]["ov_cimguiname"] = "igDragIntRange2" defs["igDragIntRange2"][1]["ret"] = "bool" @@ -14773,7 +15438,7 @@ defs["igDragScalar"][1]["defaults"]["p_max"] = "NULL" defs["igDragScalar"][1]["defaults"]["p_min"] = "NULL" defs["igDragScalar"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragScalar"][1]["funcname"] = "DragScalar" -defs["igDragScalar"][1]["location"] = "imgui:556" +defs["igDragScalar"][1]["location"] = "imgui:557" defs["igDragScalar"][1]["namespace"] = "ImGui" defs["igDragScalar"][1]["ov_cimguiname"] = "igDragScalar" defs["igDragScalar"][1]["ret"] = "bool" @@ -14821,7 +15486,7 @@ defs["igDragScalarN"][1]["defaults"]["p_max"] = "NULL" defs["igDragScalarN"][1]["defaults"]["p_min"] = "NULL" defs["igDragScalarN"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragScalarN"][1]["funcname"] = "DragScalarN" -defs["igDragScalarN"][1]["location"] = "imgui:557" +defs["igDragScalarN"][1]["location"] = "imgui:558" defs["igDragScalarN"][1]["namespace"] = "ImGui" defs["igDragScalarN"][1]["ov_cimguiname"] = "igDragScalarN" defs["igDragScalarN"][1]["ret"] = "bool" @@ -14840,7 +15505,7 @@ defs["igDummy"][1]["call_args"] = "(size)" defs["igDummy"][1]["cimguiname"] = "igDummy" defs["igDummy"][1]["defaults"] = {} defs["igDummy"][1]["funcname"] = "Dummy" -defs["igDummy"][1]["location"] = "imgui:454" +defs["igDummy"][1]["location"] = "imgui:451" defs["igDummy"][1]["namespace"] = "ImGui" defs["igDummy"][1]["ov_cimguiname"] = "igDummy" defs["igDummy"][1]["ret"] = "void" @@ -14856,7 +15521,7 @@ defs["igEnd"][1]["call_args"] = "()" defs["igEnd"][1]["cimguiname"] = "igEnd" defs["igEnd"][1]["defaults"] = {} defs["igEnd"][1]["funcname"] = "End" -defs["igEnd"][1]["location"] = "imgui:343" +defs["igEnd"][1]["location"] = "imgui:337" defs["igEnd"][1]["namespace"] = "ImGui" defs["igEnd"][1]["ov_cimguiname"] = "igEnd" defs["igEnd"][1]["ret"] = "void" @@ -14872,7 +15537,7 @@ defs["igEndChild"][1]["call_args"] = "()" defs["igEndChild"][1]["cimguiname"] = "igEndChild" defs["igEndChild"][1]["defaults"] = {} defs["igEndChild"][1]["funcname"] = "EndChild" -defs["igEndChild"][1]["location"] = "imgui:355" +defs["igEndChild"][1]["location"] = "imgui:349" defs["igEndChild"][1]["namespace"] = "ImGui" defs["igEndChild"][1]["ov_cimguiname"] = "igEndChild" defs["igEndChild"][1]["ret"] = "void" @@ -14888,7 +15553,7 @@ defs["igEndChildFrame"][1]["call_args"] = "()" defs["igEndChildFrame"][1]["cimguiname"] = "igEndChildFrame" defs["igEndChildFrame"][1]["defaults"] = {} defs["igEndChildFrame"][1]["funcname"] = "EndChildFrame" -defs["igEndChildFrame"][1]["location"] = "imgui:906" +defs["igEndChildFrame"][1]["location"] = "imgui:905" defs["igEndChildFrame"][1]["namespace"] = "ImGui" defs["igEndChildFrame"][1]["ov_cimguiname"] = "igEndChildFrame" defs["igEndChildFrame"][1]["ret"] = "void" @@ -14904,7 +15569,7 @@ defs["igEndColumns"][1]["call_args"] = "()" defs["igEndColumns"][1]["cimguiname"] = "igEndColumns" defs["igEndColumns"][1]["defaults"] = {} defs["igEndColumns"][1]["funcname"] = "EndColumns" -defs["igEndColumns"][1]["location"] = "imgui_internal:2895" +defs["igEndColumns"][1]["location"] = "imgui_internal:3246" defs["igEndColumns"][1]["namespace"] = "ImGui" defs["igEndColumns"][1]["ov_cimguiname"] = "igEndColumns" defs["igEndColumns"][1]["ret"] = "void" @@ -14936,7 +15601,7 @@ defs["igEndComboPreview"][1]["call_args"] = "()" defs["igEndComboPreview"][1]["cimguiname"] = "igEndComboPreview" defs["igEndComboPreview"][1]["defaults"] = {} defs["igEndComboPreview"][1]["funcname"] = "EndComboPreview" -defs["igEndComboPreview"][1]["location"] = "imgui_internal:2797" +defs["igEndComboPreview"][1]["location"] = "imgui_internal:3082" defs["igEndComboPreview"][1]["namespace"] = "ImGui" defs["igEndComboPreview"][1]["ov_cimguiname"] = "igEndComboPreview" defs["igEndComboPreview"][1]["ret"] = "void" @@ -14952,7 +15617,7 @@ defs["igEndDisabled"][1]["call_args"] = "()" defs["igEndDisabled"][1]["cimguiname"] = "igEndDisabled" defs["igEndDisabled"][1]["defaults"] = {} defs["igEndDisabled"][1]["funcname"] = "EndDisabled" -defs["igEndDisabled"][1]["location"] = "imgui:853" +defs["igEndDisabled"][1]["location"] = "imgui:850" defs["igEndDisabled"][1]["namespace"] = "ImGui" defs["igEndDisabled"][1]["ov_cimguiname"] = "igEndDisabled" defs["igEndDisabled"][1]["ret"] = "void" @@ -14968,7 +15633,7 @@ defs["igEndDragDropSource"][1]["call_args"] = "()" defs["igEndDragDropSource"][1]["cimguiname"] = "igEndDragDropSource" defs["igEndDragDropSource"][1]["defaults"] = {} defs["igEndDragDropSource"][1]["funcname"] = "EndDragDropSource" -defs["igEndDragDropSource"][1]["location"] = "imgui:842" +defs["igEndDragDropSource"][1]["location"] = "imgui:839" defs["igEndDragDropSource"][1]["namespace"] = "ImGui" defs["igEndDragDropSource"][1]["ov_cimguiname"] = "igEndDragDropSource" defs["igEndDragDropSource"][1]["ret"] = "void" @@ -14984,7 +15649,7 @@ defs["igEndDragDropTarget"][1]["call_args"] = "()" defs["igEndDragDropTarget"][1]["cimguiname"] = "igEndDragDropTarget" defs["igEndDragDropTarget"][1]["defaults"] = {} defs["igEndDragDropTarget"][1]["funcname"] = "EndDragDropTarget" -defs["igEndDragDropTarget"][1]["location"] = "imgui:845" +defs["igEndDragDropTarget"][1]["location"] = "imgui:842" defs["igEndDragDropTarget"][1]["namespace"] = "ImGui" defs["igEndDragDropTarget"][1]["ov_cimguiname"] = "igEndDragDropTarget" defs["igEndDragDropTarget"][1]["ret"] = "void" @@ -15000,7 +15665,7 @@ defs["igEndFrame"][1]["call_args"] = "()" defs["igEndFrame"][1]["cimguiname"] = "igEndFrame" defs["igEndFrame"][1]["defaults"] = {} defs["igEndFrame"][1]["funcname"] = "EndFrame" -defs["igEndFrame"][1]["location"] = "imgui:310" +defs["igEndFrame"][1]["location"] = "imgui:303" defs["igEndFrame"][1]["namespace"] = "ImGui" defs["igEndFrame"][1]["ov_cimguiname"] = "igEndFrame" defs["igEndFrame"][1]["ret"] = "void" @@ -15016,7 +15681,7 @@ defs["igEndGroup"][1]["call_args"] = "()" defs["igEndGroup"][1]["cimguiname"] = "igEndGroup" defs["igEndGroup"][1]["defaults"] = {} defs["igEndGroup"][1]["funcname"] = "EndGroup" -defs["igEndGroup"][1]["location"] = "imgui:458" +defs["igEndGroup"][1]["location"] = "imgui:455" defs["igEndGroup"][1]["namespace"] = "ImGui" defs["igEndGroup"][1]["ov_cimguiname"] = "igEndGroup" defs["igEndGroup"][1]["ret"] = "void" @@ -15032,7 +15697,7 @@ defs["igEndListBox"][1]["call_args"] = "()" defs["igEndListBox"][1]["cimguiname"] = "igEndListBox" defs["igEndListBox"][1]["defaults"] = {} defs["igEndListBox"][1]["funcname"] = "EndListBox" -defs["igEndListBox"][1]["location"] = "imgui:641" +defs["igEndListBox"][1]["location"] = "imgui:642" defs["igEndListBox"][1]["namespace"] = "ImGui" defs["igEndListBox"][1]["ov_cimguiname"] = "igEndListBox" defs["igEndListBox"][1]["ret"] = "void" @@ -15048,7 +15713,7 @@ defs["igEndMainMenuBar"][1]["call_args"] = "()" defs["igEndMainMenuBar"][1]["cimguiname"] = "igEndMainMenuBar" defs["igEndMainMenuBar"][1]["defaults"] = {} defs["igEndMainMenuBar"][1]["funcname"] = "EndMainMenuBar" -defs["igEndMainMenuBar"][1]["location"] = "imgui:667" +defs["igEndMainMenuBar"][1]["location"] = "imgui:668" defs["igEndMainMenuBar"][1]["namespace"] = "ImGui" defs["igEndMainMenuBar"][1]["ov_cimguiname"] = "igEndMainMenuBar" defs["igEndMainMenuBar"][1]["ret"] = "void" @@ -15064,7 +15729,7 @@ defs["igEndMenu"][1]["call_args"] = "()" defs["igEndMenu"][1]["cimguiname"] = "igEndMenu" defs["igEndMenu"][1]["defaults"] = {} defs["igEndMenu"][1]["funcname"] = "EndMenu" -defs["igEndMenu"][1]["location"] = "imgui:669" +defs["igEndMenu"][1]["location"] = "imgui:670" defs["igEndMenu"][1]["namespace"] = "ImGui" defs["igEndMenu"][1]["ov_cimguiname"] = "igEndMenu" defs["igEndMenu"][1]["ret"] = "void" @@ -15080,7 +15745,7 @@ defs["igEndMenuBar"][1]["call_args"] = "()" defs["igEndMenuBar"][1]["cimguiname"] = "igEndMenuBar" defs["igEndMenuBar"][1]["defaults"] = {} defs["igEndMenuBar"][1]["funcname"] = "EndMenuBar" -defs["igEndMenuBar"][1]["location"] = "imgui:665" +defs["igEndMenuBar"][1]["location"] = "imgui:666" defs["igEndMenuBar"][1]["namespace"] = "ImGui" defs["igEndMenuBar"][1]["ov_cimguiname"] = "igEndMenuBar" defs["igEndMenuBar"][1]["ret"] = "void" @@ -15096,7 +15761,7 @@ defs["igEndPopup"][1]["call_args"] = "()" defs["igEndPopup"][1]["cimguiname"] = "igEndPopup" defs["igEndPopup"][1]["defaults"] = {} defs["igEndPopup"][1]["funcname"] = "EndPopup" -defs["igEndPopup"][1]["location"] = "imgui:694" +defs["igEndPopup"][1]["location"] = "imgui:695" defs["igEndPopup"][1]["namespace"] = "ImGui" defs["igEndPopup"][1]["ov_cimguiname"] = "igEndPopup" defs["igEndPopup"][1]["ret"] = "void" @@ -15112,7 +15777,7 @@ defs["igEndTabBar"][1]["call_args"] = "()" defs["igEndTabBar"][1]["cimguiname"] = "igEndTabBar" defs["igEndTabBar"][1]["defaults"] = {} defs["igEndTabBar"][1]["funcname"] = "EndTabBar" -defs["igEndTabBar"][1]["location"] = "imgui:799" +defs["igEndTabBar"][1]["location"] = "imgui:796" defs["igEndTabBar"][1]["namespace"] = "ImGui" defs["igEndTabBar"][1]["ov_cimguiname"] = "igEndTabBar" defs["igEndTabBar"][1]["ret"] = "void" @@ -15128,7 +15793,7 @@ defs["igEndTabItem"][1]["call_args"] = "()" defs["igEndTabItem"][1]["cimguiname"] = "igEndTabItem" defs["igEndTabItem"][1]["defaults"] = {} defs["igEndTabItem"][1]["funcname"] = "EndTabItem" -defs["igEndTabItem"][1]["location"] = "imgui:801" +defs["igEndTabItem"][1]["location"] = "imgui:798" defs["igEndTabItem"][1]["namespace"] = "ImGui" defs["igEndTabItem"][1]["ov_cimguiname"] = "igEndTabItem" defs["igEndTabItem"][1]["ret"] = "void" @@ -15160,7 +15825,7 @@ defs["igEndTooltip"][1]["call_args"] = "()" defs["igEndTooltip"][1]["cimguiname"] = "igEndTooltip" defs["igEndTooltip"][1]["defaults"] = {} defs["igEndTooltip"][1]["funcname"] = "EndTooltip" -defs["igEndTooltip"][1]["location"] = "imgui:676" +defs["igEndTooltip"][1]["location"] = "imgui:677" defs["igEndTooltip"][1]["namespace"] = "ImGui" defs["igEndTooltip"][1]["ov_cimguiname"] = "igEndTooltip" defs["igEndTooltip"][1]["ret"] = "void" @@ -15183,7 +15848,7 @@ defs["igErrorCheckEndFrameRecover"][1]["cimguiname"] = "igErrorCheckEndFrameReco defs["igErrorCheckEndFrameRecover"][1]["defaults"] = {} defs["igErrorCheckEndFrameRecover"][1]["defaults"]["user_data"] = "NULL" defs["igErrorCheckEndFrameRecover"][1]["funcname"] = "ErrorCheckEndFrameRecover" -defs["igErrorCheckEndFrameRecover"][1]["location"] = "imgui_internal:3070" +defs["igErrorCheckEndFrameRecover"][1]["location"] = "imgui_internal:3423" defs["igErrorCheckEndFrameRecover"][1]["namespace"] = "ImGui" defs["igErrorCheckEndFrameRecover"][1]["ov_cimguiname"] = "igErrorCheckEndFrameRecover" defs["igErrorCheckEndFrameRecover"][1]["ret"] = "void" @@ -15206,13 +15871,29 @@ defs["igErrorCheckEndWindowRecover"][1]["cimguiname"] = "igErrorCheckEndWindowRe defs["igErrorCheckEndWindowRecover"][1]["defaults"] = {} defs["igErrorCheckEndWindowRecover"][1]["defaults"]["user_data"] = "NULL" defs["igErrorCheckEndWindowRecover"][1]["funcname"] = "ErrorCheckEndWindowRecover" -defs["igErrorCheckEndWindowRecover"][1]["location"] = "imgui_internal:3071" +defs["igErrorCheckEndWindowRecover"][1]["location"] = "imgui_internal:3424" defs["igErrorCheckEndWindowRecover"][1]["namespace"] = "ImGui" defs["igErrorCheckEndWindowRecover"][1]["ov_cimguiname"] = "igErrorCheckEndWindowRecover" defs["igErrorCheckEndWindowRecover"][1]["ret"] = "void" defs["igErrorCheckEndWindowRecover"][1]["signature"] = "(ImGuiErrorLogCallback,void*)" defs["igErrorCheckEndWindowRecover"][1]["stname"] = "" defs["igErrorCheckEndWindowRecover"]["(ImGuiErrorLogCallback,void*)"] = defs["igErrorCheckEndWindowRecover"][1] +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"] = {} +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1] = {} +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["args"] = "()" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["argsT"] = {} +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["argsoriginal"] = "()" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["call_args"] = "()" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["cimguiname"] = "igErrorCheckUsingSetCursorPosToExtendParentBoundaries" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["defaults"] = {} +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["funcname"] = "ErrorCheckUsingSetCursorPosToExtendParentBoundaries" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["location"] = "imgui_internal:3425" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["namespace"] = "ImGui" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["ov_cimguiname"] = "igErrorCheckUsingSetCursorPosToExtendParentBoundaries" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["ret"] = "void" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["signature"] = "()" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["stname"] = "" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"]["()"] = defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1] defs["igFindBestWindowPosForPopup"] = {} defs["igFindBestWindowPosForPopup"][1] = {} defs["igFindBestWindowPosForPopup"][1]["args"] = "(ImVec2 *pOut,ImGuiWindow* window)" @@ -15228,7 +15909,7 @@ defs["igFindBestWindowPosForPopup"][1]["call_args"] = "(window)" defs["igFindBestWindowPosForPopup"][1]["cimguiname"] = "igFindBestWindowPosForPopup" defs["igFindBestWindowPosForPopup"][1]["defaults"] = {} defs["igFindBestWindowPosForPopup"][1]["funcname"] = "FindBestWindowPosForPopup" -defs["igFindBestWindowPosForPopup"][1]["location"] = "imgui_internal:2786" +defs["igFindBestWindowPosForPopup"][1]["location"] = "imgui_internal:3071" defs["igFindBestWindowPosForPopup"][1]["namespace"] = "ImGui" defs["igFindBestWindowPosForPopup"][1]["nonUDT"] = 1 defs["igFindBestWindowPosForPopup"][1]["ov_cimguiname"] = "igFindBestWindowPosForPopup" @@ -15266,7 +15947,7 @@ defs["igFindBestWindowPosForPopupEx"][1]["call_args"] = "(ref_pos,size,last_dir, defs["igFindBestWindowPosForPopupEx"][1]["cimguiname"] = "igFindBestWindowPosForPopupEx" defs["igFindBestWindowPosForPopupEx"][1]["defaults"] = {} defs["igFindBestWindowPosForPopupEx"][1]["funcname"] = "FindBestWindowPosForPopupEx" -defs["igFindBestWindowPosForPopupEx"][1]["location"] = "imgui_internal:2787" +defs["igFindBestWindowPosForPopupEx"][1]["location"] = "imgui_internal:3072" defs["igFindBestWindowPosForPopupEx"][1]["namespace"] = "ImGui" defs["igFindBestWindowPosForPopupEx"][1]["nonUDT"] = 1 defs["igFindBestWindowPosForPopupEx"][1]["ov_cimguiname"] = "igFindBestWindowPosForPopupEx" @@ -15286,13 +15967,32 @@ defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["call_args"] = "(window defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["cimguiname"] = "igFindBottomMostVisibleWindowWithinBeginStack" defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["defaults"] = {} defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["funcname"] = "FindBottomMostVisibleWindowWithinBeginStack" -defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["location"] = "imgui_internal:2669" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["location"] = "imgui_internal:2957" defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["namespace"] = "ImGui" defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["ov_cimguiname"] = "igFindBottomMostVisibleWindowWithinBeginStack" defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["ret"] = "ImGuiWindow*" defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["signature"] = "(ImGuiWindow*)" defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["stname"] = "" defs["igFindBottomMostVisibleWindowWithinBeginStack"]["(ImGuiWindow*)"] = defs["igFindBottomMostVisibleWindowWithinBeginStack"][1] +defs["igFindHoveredViewportFromPlatformWindowStack"] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["args"] = "(const ImVec2 mouse_platform_pos)" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsT"] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsT"][1] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsT"][1]["name"] = "mouse_platform_pos" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsoriginal"] = "(const ImVec2& mouse_platform_pos)" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["call_args"] = "(mouse_platform_pos)" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["cimguiname"] = "igFindHoveredViewportFromPlatformWindowStack" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["defaults"] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["funcname"] = "FindHoveredViewportFromPlatformWindowStack" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["location"] = "imgui_internal:2988" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["namespace"] = "ImGui" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["ov_cimguiname"] = "igFindHoveredViewportFromPlatformWindowStack" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["ret"] = "ImGuiViewportP*" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["signature"] = "(const ImVec2)" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["stname"] = "" +defs["igFindHoveredViewportFromPlatformWindowStack"]["(const ImVec2)"] = defs["igFindHoveredViewportFromPlatformWindowStack"][1] defs["igFindOrCreateColumns"] = {} defs["igFindOrCreateColumns"][1] = {} defs["igFindOrCreateColumns"][1]["args"] = "(ImGuiWindow* window,ImGuiID id)" @@ -15308,7 +16008,7 @@ defs["igFindOrCreateColumns"][1]["call_args"] = "(window,id)" defs["igFindOrCreateColumns"][1]["cimguiname"] = "igFindOrCreateColumns" defs["igFindOrCreateColumns"][1]["defaults"] = {} defs["igFindOrCreateColumns"][1]["funcname"] = "FindOrCreateColumns" -defs["igFindOrCreateColumns"][1]["location"] = "imgui_internal:2900" +defs["igFindOrCreateColumns"][1]["location"] = "imgui_internal:3251" defs["igFindOrCreateColumns"][1]["namespace"] = "ImGui" defs["igFindOrCreateColumns"][1]["ov_cimguiname"] = "igFindOrCreateColumns" defs["igFindOrCreateColumns"][1]["ret"] = "ImGuiOldColumns*" @@ -15327,7 +16027,7 @@ defs["igFindOrCreateWindowSettings"][1]["call_args"] = "(name)" defs["igFindOrCreateWindowSettings"][1]["cimguiname"] = "igFindOrCreateWindowSettings" defs["igFindOrCreateWindowSettings"][1]["defaults"] = {} defs["igFindOrCreateWindowSettings"][1]["funcname"] = "FindOrCreateWindowSettings" -defs["igFindOrCreateWindowSettings"][1]["location"] = "imgui_internal:2705" +defs["igFindOrCreateWindowSettings"][1]["location"] = "imgui_internal:2996" defs["igFindOrCreateWindowSettings"][1]["namespace"] = "ImGui" defs["igFindOrCreateWindowSettings"][1]["ov_cimguiname"] = "igFindOrCreateWindowSettings" defs["igFindOrCreateWindowSettings"][1]["ret"] = "ImGuiWindowSettings*" @@ -15350,7 +16050,7 @@ defs["igFindRenderedTextEnd"][1]["cimguiname"] = "igFindRenderedTextEnd" defs["igFindRenderedTextEnd"][1]["defaults"] = {} defs["igFindRenderedTextEnd"][1]["defaults"]["text_end"] = "NULL" defs["igFindRenderedTextEnd"][1]["funcname"] = "FindRenderedTextEnd" -defs["igFindRenderedTextEnd"][1]["location"] = "imgui_internal:2982" +defs["igFindRenderedTextEnd"][1]["location"] = "imgui_internal:3336" defs["igFindRenderedTextEnd"][1]["namespace"] = "ImGui" defs["igFindRenderedTextEnd"][1]["ov_cimguiname"] = "igFindRenderedTextEnd" defs["igFindRenderedTextEnd"][1]["ret"] = "const char*" @@ -15369,7 +16069,7 @@ defs["igFindSettingsHandler"][1]["call_args"] = "(type_name)" defs["igFindSettingsHandler"][1]["cimguiname"] = "igFindSettingsHandler" defs["igFindSettingsHandler"][1]["defaults"] = {} defs["igFindSettingsHandler"][1]["funcname"] = "FindSettingsHandler" -defs["igFindSettingsHandler"][1]["location"] = "imgui_internal:2706" +defs["igFindSettingsHandler"][1]["location"] = "imgui_internal:2999" defs["igFindSettingsHandler"][1]["namespace"] = "ImGui" defs["igFindSettingsHandler"][1]["ov_cimguiname"] = "igFindSettingsHandler" defs["igFindSettingsHandler"][1]["ret"] = "ImGuiSettingsHandler*" @@ -15388,7 +16088,7 @@ defs["igFindViewportByID"][1]["call_args"] = "(id)" defs["igFindViewportByID"][1]["cimguiname"] = "igFindViewportByID" defs["igFindViewportByID"][1]["defaults"] = {} defs["igFindViewportByID"][1]["funcname"] = "FindViewportByID" -defs["igFindViewportByID"][1]["location"] = "imgui:982" +defs["igFindViewportByID"][1]["location"] = "imgui:984" defs["igFindViewportByID"][1]["namespace"] = "ImGui" defs["igFindViewportByID"][1]["ov_cimguiname"] = "igFindViewportByID" defs["igFindViewportByID"][1]["ret"] = "ImGuiViewport*" @@ -15407,7 +16107,7 @@ defs["igFindViewportByPlatformHandle"][1]["call_args"] = "(platform_handle)" defs["igFindViewportByPlatformHandle"][1]["cimguiname"] = "igFindViewportByPlatformHandle" defs["igFindViewportByPlatformHandle"][1]["defaults"] = {} defs["igFindViewportByPlatformHandle"][1]["funcname"] = "FindViewportByPlatformHandle" -defs["igFindViewportByPlatformHandle"][1]["location"] = "imgui:983" +defs["igFindViewportByPlatformHandle"][1]["location"] = "imgui:985" defs["igFindViewportByPlatformHandle"][1]["namespace"] = "ImGui" defs["igFindViewportByPlatformHandle"][1]["ov_cimguiname"] = "igFindViewportByPlatformHandle" defs["igFindViewportByPlatformHandle"][1]["ret"] = "ImGuiViewport*" @@ -15426,7 +16126,7 @@ defs["igFindWindowByID"][1]["call_args"] = "(id)" defs["igFindWindowByID"][1]["cimguiname"] = "igFindWindowByID" defs["igFindWindowByID"][1]["defaults"] = {} defs["igFindWindowByID"][1]["funcname"] = "FindWindowByID" -defs["igFindWindowByID"][1]["location"] = "imgui_internal:2646" +defs["igFindWindowByID"][1]["location"] = "imgui_internal:2934" defs["igFindWindowByID"][1]["namespace"] = "ImGui" defs["igFindWindowByID"][1]["ov_cimguiname"] = "igFindWindowByID" defs["igFindWindowByID"][1]["ret"] = "ImGuiWindow*" @@ -15445,7 +16145,7 @@ defs["igFindWindowByName"][1]["call_args"] = "(name)" defs["igFindWindowByName"][1]["cimguiname"] = "igFindWindowByName" defs["igFindWindowByName"][1]["defaults"] = {} defs["igFindWindowByName"][1]["funcname"] = "FindWindowByName" -defs["igFindWindowByName"][1]["location"] = "imgui_internal:2647" +defs["igFindWindowByName"][1]["location"] = "imgui_internal:2935" defs["igFindWindowByName"][1]["namespace"] = "ImGui" defs["igFindWindowByName"][1]["ov_cimguiname"] = "igFindWindowByName" defs["igFindWindowByName"][1]["ret"] = "ImGuiWindow*" @@ -15464,7 +16164,7 @@ defs["igFindWindowDisplayIndex"][1]["call_args"] = "(window)" defs["igFindWindowDisplayIndex"][1]["cimguiname"] = "igFindWindowDisplayIndex" defs["igFindWindowDisplayIndex"][1]["defaults"] = {} defs["igFindWindowDisplayIndex"][1]["funcname"] = "FindWindowDisplayIndex" -defs["igFindWindowDisplayIndex"][1]["location"] = "imgui_internal:2668" +defs["igFindWindowDisplayIndex"][1]["location"] = "imgui_internal:2956" defs["igFindWindowDisplayIndex"][1]["namespace"] = "ImGui" defs["igFindWindowDisplayIndex"][1]["ov_cimguiname"] = "igFindWindowDisplayIndex" defs["igFindWindowDisplayIndex"][1]["ret"] = "int" @@ -15483,7 +16183,7 @@ defs["igFindWindowSettings"][1]["call_args"] = "(id)" defs["igFindWindowSettings"][1]["cimguiname"] = "igFindWindowSettings" defs["igFindWindowSettings"][1]["defaults"] = {} defs["igFindWindowSettings"][1]["funcname"] = "FindWindowSettings" -defs["igFindWindowSettings"][1]["location"] = "imgui_internal:2704" +defs["igFindWindowSettings"][1]["location"] = "imgui_internal:2995" defs["igFindWindowSettings"][1]["namespace"] = "ImGui" defs["igFindWindowSettings"][1]["ov_cimguiname"] = "igFindWindowSettings" defs["igFindWindowSettings"][1]["ret"] = "ImGuiWindowSettings*" @@ -15505,7 +16205,7 @@ defs["igFocusTopMostWindowUnderOne"][1]["call_args"] = "(under_this_window,ignor defs["igFocusTopMostWindowUnderOne"][1]["cimguiname"] = "igFocusTopMostWindowUnderOne" defs["igFocusTopMostWindowUnderOne"][1]["defaults"] = {} defs["igFocusTopMostWindowUnderOne"][1]["funcname"] = "FocusTopMostWindowUnderOne" -defs["igFocusTopMostWindowUnderOne"][1]["location"] = "imgui_internal:2663" +defs["igFocusTopMostWindowUnderOne"][1]["location"] = "imgui_internal:2951" defs["igFocusTopMostWindowUnderOne"][1]["namespace"] = "ImGui" defs["igFocusTopMostWindowUnderOne"][1]["ov_cimguiname"] = "igFocusTopMostWindowUnderOne" defs["igFocusTopMostWindowUnderOne"][1]["ret"] = "void" @@ -15524,7 +16224,7 @@ defs["igFocusWindow"][1]["call_args"] = "(window)" defs["igFocusWindow"][1]["cimguiname"] = "igFocusWindow" defs["igFocusWindow"][1]["defaults"] = {} defs["igFocusWindow"][1]["funcname"] = "FocusWindow" -defs["igFocusWindow"][1]["location"] = "imgui_internal:2662" +defs["igFocusWindow"][1]["location"] = "imgui_internal:2950" defs["igFocusWindow"][1]["namespace"] = "ImGui" defs["igFocusWindow"][1]["ov_cimguiname"] = "igFocusWindow" defs["igFocusWindow"][1]["ret"] = "void" @@ -15543,7 +16243,7 @@ defs["igGcAwakeTransientWindowBuffers"][1]["call_args"] = "(window)" defs["igGcAwakeTransientWindowBuffers"][1]["cimguiname"] = "igGcAwakeTransientWindowBuffers" defs["igGcAwakeTransientWindowBuffers"][1]["defaults"] = {} defs["igGcAwakeTransientWindowBuffers"][1]["funcname"] = "GcAwakeTransientWindowBuffers" -defs["igGcAwakeTransientWindowBuffers"][1]["location"] = "imgui_internal:3067" +defs["igGcAwakeTransientWindowBuffers"][1]["location"] = "imgui_internal:3416" defs["igGcAwakeTransientWindowBuffers"][1]["namespace"] = "ImGui" defs["igGcAwakeTransientWindowBuffers"][1]["ov_cimguiname"] = "igGcAwakeTransientWindowBuffers" defs["igGcAwakeTransientWindowBuffers"][1]["ret"] = "void" @@ -15559,7 +16259,7 @@ defs["igGcCompactTransientMiscBuffers"][1]["call_args"] = "()" defs["igGcCompactTransientMiscBuffers"][1]["cimguiname"] = "igGcCompactTransientMiscBuffers" defs["igGcCompactTransientMiscBuffers"][1]["defaults"] = {} defs["igGcCompactTransientMiscBuffers"][1]["funcname"] = "GcCompactTransientMiscBuffers" -defs["igGcCompactTransientMiscBuffers"][1]["location"] = "imgui_internal:3065" +defs["igGcCompactTransientMiscBuffers"][1]["location"] = "imgui_internal:3414" defs["igGcCompactTransientMiscBuffers"][1]["namespace"] = "ImGui" defs["igGcCompactTransientMiscBuffers"][1]["ov_cimguiname"] = "igGcCompactTransientMiscBuffers" defs["igGcCompactTransientMiscBuffers"][1]["ret"] = "void" @@ -15578,7 +16278,7 @@ defs["igGcCompactTransientWindowBuffers"][1]["call_args"] = "(window)" defs["igGcCompactTransientWindowBuffers"][1]["cimguiname"] = "igGcCompactTransientWindowBuffers" defs["igGcCompactTransientWindowBuffers"][1]["defaults"] = {} defs["igGcCompactTransientWindowBuffers"][1]["funcname"] = "GcCompactTransientWindowBuffers" -defs["igGcCompactTransientWindowBuffers"][1]["location"] = "imgui_internal:3066" +defs["igGcCompactTransientWindowBuffers"][1]["location"] = "imgui_internal:3415" defs["igGcCompactTransientWindowBuffers"][1]["namespace"] = "ImGui" defs["igGcCompactTransientWindowBuffers"][1]["ov_cimguiname"] = "igGcCompactTransientWindowBuffers" defs["igGcCompactTransientWindowBuffers"][1]["ret"] = "void" @@ -15594,7 +16294,7 @@ defs["igGetActiveID"][1]["call_args"] = "()" defs["igGetActiveID"][1]["cimguiname"] = "igGetActiveID" defs["igGetActiveID"][1]["defaults"] = {} defs["igGetActiveID"][1]["funcname"] = "GetActiveID" -defs["igGetActiveID"][1]["location"] = "imgui_internal:2727" +defs["igGetActiveID"][1]["location"] = "imgui_internal:3023" defs["igGetActiveID"][1]["namespace"] = "ImGui" defs["igGetActiveID"][1]["ov_cimguiname"] = "igGetActiveID" defs["igGetActiveID"][1]["ret"] = "ImGuiID" @@ -15619,7 +16319,7 @@ defs["igGetAllocatorFunctions"][1]["call_args"] = "(p_alloc_func,p_free_func,p_u defs["igGetAllocatorFunctions"][1]["cimguiname"] = "igGetAllocatorFunctions" defs["igGetAllocatorFunctions"][1]["defaults"] = {} defs["igGetAllocatorFunctions"][1]["funcname"] = "GetAllocatorFunctions" -defs["igGetAllocatorFunctions"][1]["location"] = "imgui:971" +defs["igGetAllocatorFunctions"][1]["location"] = "imgui:973" defs["igGetAllocatorFunctions"][1]["namespace"] = "ImGui" defs["igGetAllocatorFunctions"][1]["ov_cimguiname"] = "igGetAllocatorFunctions" defs["igGetAllocatorFunctions"][1]["ret"] = "void" @@ -15635,9 +16335,9 @@ defs["igGetBackgroundDrawList"][1]["call_args"] = "()" defs["igGetBackgroundDrawList"][1]["cimguiname"] = "igGetBackgroundDrawList" defs["igGetBackgroundDrawList"][1]["defaults"] = {} defs["igGetBackgroundDrawList"][1]["funcname"] = "GetBackgroundDrawList" -defs["igGetBackgroundDrawList"][1]["location"] = "imgui:897" +defs["igGetBackgroundDrawList"][1]["location"] = "imgui:890" defs["igGetBackgroundDrawList"][1]["namespace"] = "ImGui" -defs["igGetBackgroundDrawList"][1]["ov_cimguiname"] = "igGetBackgroundDrawListNil" +defs["igGetBackgroundDrawList"][1]["ov_cimguiname"] = "igGetBackgroundDrawList_Nil" defs["igGetBackgroundDrawList"][1]["ret"] = "ImDrawList*" defs["igGetBackgroundDrawList"][1]["signature"] = "()" defs["igGetBackgroundDrawList"][1]["stname"] = "" @@ -15652,9 +16352,9 @@ defs["igGetBackgroundDrawList"][2]["call_args"] = "(viewport)" defs["igGetBackgroundDrawList"][2]["cimguiname"] = "igGetBackgroundDrawList" defs["igGetBackgroundDrawList"][2]["defaults"] = {} defs["igGetBackgroundDrawList"][2]["funcname"] = "GetBackgroundDrawList" -defs["igGetBackgroundDrawList"][2]["location"] = "imgui:899" +defs["igGetBackgroundDrawList"][2]["location"] = "imgui:892" defs["igGetBackgroundDrawList"][2]["namespace"] = "ImGui" -defs["igGetBackgroundDrawList"][2]["ov_cimguiname"] = "igGetBackgroundDrawListViewportPtr" +defs["igGetBackgroundDrawList"][2]["ov_cimguiname"] = "igGetBackgroundDrawList_ViewportPtr" defs["igGetBackgroundDrawList"][2]["ret"] = "ImDrawList*" defs["igGetBackgroundDrawList"][2]["signature"] = "(ImGuiViewport*)" defs["igGetBackgroundDrawList"][2]["stname"] = "" @@ -15669,7 +16369,7 @@ defs["igGetClipboardText"][1]["call_args"] = "()" defs["igGetClipboardText"][1]["cimguiname"] = "igGetClipboardText" defs["igGetClipboardText"][1]["defaults"] = {} defs["igGetClipboardText"][1]["funcname"] = "GetClipboardText" -defs["igGetClipboardText"][1]["location"] = "imgui:950" +defs["igGetClipboardText"][1]["location"] = "imgui:952" defs["igGetClipboardText"][1]["namespace"] = "ImGui" defs["igGetClipboardText"][1]["ov_cimguiname"] = "igGetClipboardText" defs["igGetClipboardText"][1]["ret"] = "const char*" @@ -15692,9 +16392,9 @@ defs["igGetColorU32"][1]["cimguiname"] = "igGetColorU32" defs["igGetColorU32"][1]["defaults"] = {} defs["igGetColorU32"][1]["defaults"]["alpha_mul"] = "1.0f" defs["igGetColorU32"][1]["funcname"] = "GetColorU32" -defs["igGetColorU32"][1]["location"] = "imgui:438" +defs["igGetColorU32"][1]["location"] = "imgui:435" defs["igGetColorU32"][1]["namespace"] = "ImGui" -defs["igGetColorU32"][1]["ov_cimguiname"] = "igGetColorU32Col" +defs["igGetColorU32"][1]["ov_cimguiname"] = "igGetColorU32_Col" defs["igGetColorU32"][1]["ret"] = "ImU32" defs["igGetColorU32"][1]["signature"] = "(ImGuiCol,float)" defs["igGetColorU32"][1]["stname"] = "" @@ -15709,9 +16409,9 @@ defs["igGetColorU32"][2]["call_args"] = "(col)" defs["igGetColorU32"][2]["cimguiname"] = "igGetColorU32" defs["igGetColorU32"][2]["defaults"] = {} defs["igGetColorU32"][2]["funcname"] = "GetColorU32" -defs["igGetColorU32"][2]["location"] = "imgui:439" +defs["igGetColorU32"][2]["location"] = "imgui:436" defs["igGetColorU32"][2]["namespace"] = "ImGui" -defs["igGetColorU32"][2]["ov_cimguiname"] = "igGetColorU32Vec4" +defs["igGetColorU32"][2]["ov_cimguiname"] = "igGetColorU32_Vec4" defs["igGetColorU32"][2]["ret"] = "ImU32" defs["igGetColorU32"][2]["signature"] = "(const ImVec4)" defs["igGetColorU32"][2]["stname"] = "" @@ -15726,9 +16426,9 @@ defs["igGetColorU32"][3]["call_args"] = "(col)" defs["igGetColorU32"][3]["cimguiname"] = "igGetColorU32" defs["igGetColorU32"][3]["defaults"] = {} defs["igGetColorU32"][3]["funcname"] = "GetColorU32" -defs["igGetColorU32"][3]["location"] = "imgui:440" +defs["igGetColorU32"][3]["location"] = "imgui:437" defs["igGetColorU32"][3]["namespace"] = "ImGui" -defs["igGetColorU32"][3]["ov_cimguiname"] = "igGetColorU32U32" +defs["igGetColorU32"][3]["ov_cimguiname"] = "igGetColorU32_U32" defs["igGetColorU32"][3]["ret"] = "ImU32" defs["igGetColorU32"][3]["signature"] = "(ImU32)" defs["igGetColorU32"][3]["stname"] = "" @@ -15744,7 +16444,7 @@ defs["igGetColumnIndex"][1]["call_args"] = "()" defs["igGetColumnIndex"][1]["cimguiname"] = "igGetColumnIndex" defs["igGetColumnIndex"][1]["defaults"] = {} defs["igGetColumnIndex"][1]["funcname"] = "GetColumnIndex" -defs["igGetColumnIndex"][1]["location"] = "imgui:789" +defs["igGetColumnIndex"][1]["location"] = "imgui:786" defs["igGetColumnIndex"][1]["namespace"] = "ImGui" defs["igGetColumnIndex"][1]["ov_cimguiname"] = "igGetColumnIndex" defs["igGetColumnIndex"][1]["ret"] = "int" @@ -15766,7 +16466,7 @@ defs["igGetColumnNormFromOffset"][1]["call_args"] = "(columns,offset)" defs["igGetColumnNormFromOffset"][1]["cimguiname"] = "igGetColumnNormFromOffset" defs["igGetColumnNormFromOffset"][1]["defaults"] = {} defs["igGetColumnNormFromOffset"][1]["funcname"] = "GetColumnNormFromOffset" -defs["igGetColumnNormFromOffset"][1]["location"] = "imgui_internal:2902" +defs["igGetColumnNormFromOffset"][1]["location"] = "imgui_internal:3253" defs["igGetColumnNormFromOffset"][1]["namespace"] = "ImGui" defs["igGetColumnNormFromOffset"][1]["ov_cimguiname"] = "igGetColumnNormFromOffset" defs["igGetColumnNormFromOffset"][1]["ret"] = "float" @@ -15786,7 +16486,7 @@ defs["igGetColumnOffset"][1]["cimguiname"] = "igGetColumnOffset" defs["igGetColumnOffset"][1]["defaults"] = {} defs["igGetColumnOffset"][1]["defaults"]["column_index"] = "-1" defs["igGetColumnOffset"][1]["funcname"] = "GetColumnOffset" -defs["igGetColumnOffset"][1]["location"] = "imgui:792" +defs["igGetColumnOffset"][1]["location"] = "imgui:789" defs["igGetColumnOffset"][1]["namespace"] = "ImGui" defs["igGetColumnOffset"][1]["ov_cimguiname"] = "igGetColumnOffset" defs["igGetColumnOffset"][1]["ret"] = "float" @@ -15808,7 +16508,7 @@ defs["igGetColumnOffsetFromNorm"][1]["call_args"] = "(columns,offset_norm)" defs["igGetColumnOffsetFromNorm"][1]["cimguiname"] = "igGetColumnOffsetFromNorm" defs["igGetColumnOffsetFromNorm"][1]["defaults"] = {} defs["igGetColumnOffsetFromNorm"][1]["funcname"] = "GetColumnOffsetFromNorm" -defs["igGetColumnOffsetFromNorm"][1]["location"] = "imgui_internal:2901" +defs["igGetColumnOffsetFromNorm"][1]["location"] = "imgui_internal:3252" defs["igGetColumnOffsetFromNorm"][1]["namespace"] = "ImGui" defs["igGetColumnOffsetFromNorm"][1]["ov_cimguiname"] = "igGetColumnOffsetFromNorm" defs["igGetColumnOffsetFromNorm"][1]["ret"] = "float" @@ -15828,7 +16528,7 @@ defs["igGetColumnWidth"][1]["cimguiname"] = "igGetColumnWidth" defs["igGetColumnWidth"][1]["defaults"] = {} defs["igGetColumnWidth"][1]["defaults"]["column_index"] = "-1" defs["igGetColumnWidth"][1]["funcname"] = "GetColumnWidth" -defs["igGetColumnWidth"][1]["location"] = "imgui:790" +defs["igGetColumnWidth"][1]["location"] = "imgui:787" defs["igGetColumnWidth"][1]["namespace"] = "ImGui" defs["igGetColumnWidth"][1]["ov_cimguiname"] = "igGetColumnWidth" defs["igGetColumnWidth"][1]["ret"] = "float" @@ -15844,7 +16544,7 @@ defs["igGetColumnsCount"][1]["call_args"] = "()" defs["igGetColumnsCount"][1]["cimguiname"] = "igGetColumnsCount" defs["igGetColumnsCount"][1]["defaults"] = {} defs["igGetColumnsCount"][1]["funcname"] = "GetColumnsCount" -defs["igGetColumnsCount"][1]["location"] = "imgui:794" +defs["igGetColumnsCount"][1]["location"] = "imgui:791" defs["igGetColumnsCount"][1]["namespace"] = "ImGui" defs["igGetColumnsCount"][1]["ov_cimguiname"] = "igGetColumnsCount" defs["igGetColumnsCount"][1]["ret"] = "int" @@ -15866,7 +16566,7 @@ defs["igGetColumnsID"][1]["call_args"] = "(str_id,count)" defs["igGetColumnsID"][1]["cimguiname"] = "igGetColumnsID" defs["igGetColumnsID"][1]["defaults"] = {} defs["igGetColumnsID"][1]["funcname"] = "GetColumnsID" -defs["igGetColumnsID"][1]["location"] = "imgui_internal:2899" +defs["igGetColumnsID"][1]["location"] = "imgui_internal:3250" defs["igGetColumnsID"][1]["namespace"] = "ImGui" defs["igGetColumnsID"][1]["ov_cimguiname"] = "igGetColumnsID" defs["igGetColumnsID"][1]["ret"] = "ImGuiID" @@ -15885,7 +16585,7 @@ defs["igGetContentRegionAvail"][1]["call_args"] = "()" defs["igGetContentRegionAvail"][1]["cimguiname"] = "igGetContentRegionAvail" defs["igGetContentRegionAvail"][1]["defaults"] = {} defs["igGetContentRegionAvail"][1]["funcname"] = "GetContentRegionAvail" -defs["igGetContentRegionAvail"][1]["location"] = "imgui:394" +defs["igGetContentRegionAvail"][1]["location"] = "imgui:389" defs["igGetContentRegionAvail"][1]["namespace"] = "ImGui" defs["igGetContentRegionAvail"][1]["nonUDT"] = 1 defs["igGetContentRegionAvail"][1]["ov_cimguiname"] = "igGetContentRegionAvail" @@ -15905,7 +16605,7 @@ defs["igGetContentRegionMax"][1]["call_args"] = "()" defs["igGetContentRegionMax"][1]["cimguiname"] = "igGetContentRegionMax" defs["igGetContentRegionMax"][1]["defaults"] = {} defs["igGetContentRegionMax"][1]["funcname"] = "GetContentRegionMax" -defs["igGetContentRegionMax"][1]["location"] = "imgui:395" +defs["igGetContentRegionMax"][1]["location"] = "imgui:390" defs["igGetContentRegionMax"][1]["namespace"] = "ImGui" defs["igGetContentRegionMax"][1]["nonUDT"] = 1 defs["igGetContentRegionMax"][1]["ov_cimguiname"] = "igGetContentRegionMax" @@ -15925,7 +16625,7 @@ defs["igGetContentRegionMaxAbs"][1]["call_args"] = "()" defs["igGetContentRegionMaxAbs"][1]["cimguiname"] = "igGetContentRegionMaxAbs" defs["igGetContentRegionMaxAbs"][1]["defaults"] = {} defs["igGetContentRegionMaxAbs"][1]["funcname"] = "GetContentRegionMaxAbs" -defs["igGetContentRegionMaxAbs"][1]["location"] = "imgui_internal:2750" +defs["igGetContentRegionMaxAbs"][1]["location"] = "imgui_internal:3046" defs["igGetContentRegionMaxAbs"][1]["namespace"] = "ImGui" defs["igGetContentRegionMaxAbs"][1]["nonUDT"] = 1 defs["igGetContentRegionMaxAbs"][1]["ov_cimguiname"] = "igGetContentRegionMaxAbs" @@ -15942,13 +16642,29 @@ defs["igGetCurrentContext"][1]["call_args"] = "()" defs["igGetCurrentContext"][1]["cimguiname"] = "igGetCurrentContext" defs["igGetCurrentContext"][1]["defaults"] = {} defs["igGetCurrentContext"][1]["funcname"] = "GetCurrentContext" -defs["igGetCurrentContext"][1]["location"] = "imgui:303" +defs["igGetCurrentContext"][1]["location"] = "imgui:296" defs["igGetCurrentContext"][1]["namespace"] = "ImGui" defs["igGetCurrentContext"][1]["ov_cimguiname"] = "igGetCurrentContext" defs["igGetCurrentContext"][1]["ret"] = "ImGuiContext*" defs["igGetCurrentContext"][1]["signature"] = "()" defs["igGetCurrentContext"][1]["stname"] = "" defs["igGetCurrentContext"]["()"] = defs["igGetCurrentContext"][1] +defs["igGetCurrentFocusScope"] = {} +defs["igGetCurrentFocusScope"][1] = {} +defs["igGetCurrentFocusScope"][1]["args"] = "()" +defs["igGetCurrentFocusScope"][1]["argsT"] = {} +defs["igGetCurrentFocusScope"][1]["argsoriginal"] = "()" +defs["igGetCurrentFocusScope"][1]["call_args"] = "()" +defs["igGetCurrentFocusScope"][1]["cimguiname"] = "igGetCurrentFocusScope" +defs["igGetCurrentFocusScope"][1]["defaults"] = {} +defs["igGetCurrentFocusScope"][1]["funcname"] = "GetCurrentFocusScope" +defs["igGetCurrentFocusScope"][1]["location"] = "imgui_internal:3234" +defs["igGetCurrentFocusScope"][1]["namespace"] = "ImGui" +defs["igGetCurrentFocusScope"][1]["ov_cimguiname"] = "igGetCurrentFocusScope" +defs["igGetCurrentFocusScope"][1]["ret"] = "ImGuiID" +defs["igGetCurrentFocusScope"][1]["signature"] = "()" +defs["igGetCurrentFocusScope"][1]["stname"] = "" +defs["igGetCurrentFocusScope"]["()"] = defs["igGetCurrentFocusScope"][1] defs["igGetCurrentTable"] = {} defs["igGetCurrentTable"][1] = {} defs["igGetCurrentTable"][1]["args"] = "()" @@ -15958,7 +16674,7 @@ defs["igGetCurrentTable"][1]["call_args"] = "()" defs["igGetCurrentTable"][1]["cimguiname"] = "igGetCurrentTable" defs["igGetCurrentTable"][1]["defaults"] = {} defs["igGetCurrentTable"][1]["funcname"] = "GetCurrentTable" -defs["igGetCurrentTable"][1]["location"] = "imgui_internal:2914" +defs["igGetCurrentTable"][1]["location"] = "imgui_internal:3265" defs["igGetCurrentTable"][1]["namespace"] = "ImGui" defs["igGetCurrentTable"][1]["ov_cimguiname"] = "igGetCurrentTable" defs["igGetCurrentTable"][1]["ret"] = "ImGuiTable*" @@ -15974,7 +16690,7 @@ defs["igGetCurrentWindow"][1]["call_args"] = "()" defs["igGetCurrentWindow"][1]["cimguiname"] = "igGetCurrentWindow" defs["igGetCurrentWindow"][1]["defaults"] = {} defs["igGetCurrentWindow"][1]["funcname"] = "GetCurrentWindow" -defs["igGetCurrentWindow"][1]["location"] = "imgui_internal:2645" +defs["igGetCurrentWindow"][1]["location"] = "imgui_internal:2933" defs["igGetCurrentWindow"][1]["namespace"] = "ImGui" defs["igGetCurrentWindow"][1]["ov_cimguiname"] = "igGetCurrentWindow" defs["igGetCurrentWindow"][1]["ret"] = "ImGuiWindow*" @@ -15990,7 +16706,7 @@ defs["igGetCurrentWindowRead"][1]["call_args"] = "()" defs["igGetCurrentWindowRead"][1]["cimguiname"] = "igGetCurrentWindowRead" defs["igGetCurrentWindowRead"][1]["defaults"] = {} defs["igGetCurrentWindowRead"][1]["funcname"] = "GetCurrentWindowRead" -defs["igGetCurrentWindowRead"][1]["location"] = "imgui_internal:2644" +defs["igGetCurrentWindowRead"][1]["location"] = "imgui_internal:2932" defs["igGetCurrentWindowRead"][1]["namespace"] = "ImGui" defs["igGetCurrentWindowRead"][1]["ov_cimguiname"] = "igGetCurrentWindowRead" defs["igGetCurrentWindowRead"][1]["ret"] = "ImGuiWindow*" @@ -16009,7 +16725,7 @@ defs["igGetCursorPos"][1]["call_args"] = "()" defs["igGetCursorPos"][1]["cimguiname"] = "igGetCursorPos" defs["igGetCursorPos"][1]["defaults"] = {} defs["igGetCursorPos"][1]["funcname"] = "GetCursorPos" -defs["igGetCursorPos"][1]["location"] = "imgui:459" +defs["igGetCursorPos"][1]["location"] = "imgui:456" defs["igGetCursorPos"][1]["namespace"] = "ImGui" defs["igGetCursorPos"][1]["nonUDT"] = 1 defs["igGetCursorPos"][1]["ov_cimguiname"] = "igGetCursorPos" @@ -16026,7 +16742,7 @@ defs["igGetCursorPosX"][1]["call_args"] = "()" defs["igGetCursorPosX"][1]["cimguiname"] = "igGetCursorPosX" defs["igGetCursorPosX"][1]["defaults"] = {} defs["igGetCursorPosX"][1]["funcname"] = "GetCursorPosX" -defs["igGetCursorPosX"][1]["location"] = "imgui:460" +defs["igGetCursorPosX"][1]["location"] = "imgui:457" defs["igGetCursorPosX"][1]["namespace"] = "ImGui" defs["igGetCursorPosX"][1]["ov_cimguiname"] = "igGetCursorPosX" defs["igGetCursorPosX"][1]["ret"] = "float" @@ -16042,7 +16758,7 @@ defs["igGetCursorPosY"][1]["call_args"] = "()" defs["igGetCursorPosY"][1]["cimguiname"] = "igGetCursorPosY" defs["igGetCursorPosY"][1]["defaults"] = {} defs["igGetCursorPosY"][1]["funcname"] = "GetCursorPosY" -defs["igGetCursorPosY"][1]["location"] = "imgui:461" +defs["igGetCursorPosY"][1]["location"] = "imgui:458" defs["igGetCursorPosY"][1]["namespace"] = "ImGui" defs["igGetCursorPosY"][1]["ov_cimguiname"] = "igGetCursorPosY" defs["igGetCursorPosY"][1]["ret"] = "float" @@ -16061,7 +16777,7 @@ defs["igGetCursorScreenPos"][1]["call_args"] = "()" defs["igGetCursorScreenPos"][1]["cimguiname"] = "igGetCursorScreenPos" defs["igGetCursorScreenPos"][1]["defaults"] = {} defs["igGetCursorScreenPos"][1]["funcname"] = "GetCursorScreenPos" -defs["igGetCursorScreenPos"][1]["location"] = "imgui:466" +defs["igGetCursorScreenPos"][1]["location"] = "imgui:463" defs["igGetCursorScreenPos"][1]["namespace"] = "ImGui" defs["igGetCursorScreenPos"][1]["nonUDT"] = 1 defs["igGetCursorScreenPos"][1]["ov_cimguiname"] = "igGetCursorScreenPos" @@ -16081,7 +16797,7 @@ defs["igGetCursorStartPos"][1]["call_args"] = "()" defs["igGetCursorStartPos"][1]["cimguiname"] = "igGetCursorStartPos" defs["igGetCursorStartPos"][1]["defaults"] = {} defs["igGetCursorStartPos"][1]["funcname"] = "GetCursorStartPos" -defs["igGetCursorStartPos"][1]["location"] = "imgui:465" +defs["igGetCursorStartPos"][1]["location"] = "imgui:462" defs["igGetCursorStartPos"][1]["namespace"] = "ImGui" defs["igGetCursorStartPos"][1]["nonUDT"] = 1 defs["igGetCursorStartPos"][1]["ov_cimguiname"] = "igGetCursorStartPos" @@ -16098,7 +16814,7 @@ defs["igGetDefaultFont"][1]["call_args"] = "()" defs["igGetDefaultFont"][1]["cimguiname"] = "igGetDefaultFont" defs["igGetDefaultFont"][1]["defaults"] = {} defs["igGetDefaultFont"][1]["funcname"] = "GetDefaultFont" -defs["igGetDefaultFont"][1]["location"] = "imgui_internal:2673" +defs["igGetDefaultFont"][1]["location"] = "imgui_internal:2961" defs["igGetDefaultFont"][1]["namespace"] = "ImGui" defs["igGetDefaultFont"][1]["ov_cimguiname"] = "igGetDefaultFont" defs["igGetDefaultFont"][1]["ret"] = "ImFont*" @@ -16114,7 +16830,7 @@ defs["igGetDragDropPayload"][1]["call_args"] = "()" defs["igGetDragDropPayload"][1]["cimguiname"] = "igGetDragDropPayload" defs["igGetDragDropPayload"][1]["defaults"] = {} defs["igGetDragDropPayload"][1]["funcname"] = "GetDragDropPayload" -defs["igGetDragDropPayload"][1]["location"] = "imgui:846" +defs["igGetDragDropPayload"][1]["location"] = "imgui:843" defs["igGetDragDropPayload"][1]["namespace"] = "ImGui" defs["igGetDragDropPayload"][1]["ov_cimguiname"] = "igGetDragDropPayload" defs["igGetDragDropPayload"][1]["ret"] = "const ImGuiPayload*" @@ -16130,7 +16846,7 @@ defs["igGetDrawData"][1]["call_args"] = "()" defs["igGetDrawData"][1]["cimguiname"] = "igGetDrawData" defs["igGetDrawData"][1]["defaults"] = {} defs["igGetDrawData"][1]["funcname"] = "GetDrawData" -defs["igGetDrawData"][1]["location"] = "imgui:312" +defs["igGetDrawData"][1]["location"] = "imgui:305" defs["igGetDrawData"][1]["namespace"] = "ImGui" defs["igGetDrawData"][1]["ov_cimguiname"] = "igGetDrawData" defs["igGetDrawData"][1]["ret"] = "ImDrawData*" @@ -16146,7 +16862,7 @@ defs["igGetDrawListSharedData"][1]["call_args"] = "()" defs["igGetDrawListSharedData"][1]["cimguiname"] = "igGetDrawListSharedData" defs["igGetDrawListSharedData"][1]["defaults"] = {} defs["igGetDrawListSharedData"][1]["funcname"] = "GetDrawListSharedData" -defs["igGetDrawListSharedData"][1]["location"] = "imgui:901" +defs["igGetDrawListSharedData"][1]["location"] = "imgui:900" defs["igGetDrawListSharedData"][1]["namespace"] = "ImGui" defs["igGetDrawListSharedData"][1]["ov_cimguiname"] = "igGetDrawListSharedData" defs["igGetDrawListSharedData"][1]["ret"] = "ImDrawListSharedData*" @@ -16162,45 +16878,13 @@ defs["igGetFocusID"][1]["call_args"] = "()" defs["igGetFocusID"][1]["cimguiname"] = "igGetFocusID" defs["igGetFocusID"][1]["defaults"] = {} defs["igGetFocusID"][1]["funcname"] = "GetFocusID" -defs["igGetFocusID"][1]["location"] = "imgui_internal:2728" +defs["igGetFocusID"][1]["location"] = "imgui_internal:3024" defs["igGetFocusID"][1]["namespace"] = "ImGui" defs["igGetFocusID"][1]["ov_cimguiname"] = "igGetFocusID" defs["igGetFocusID"][1]["ret"] = "ImGuiID" defs["igGetFocusID"][1]["signature"] = "()" defs["igGetFocusID"][1]["stname"] = "" defs["igGetFocusID"]["()"] = defs["igGetFocusID"][1] -defs["igGetFocusScope"] = {} -defs["igGetFocusScope"][1] = {} -defs["igGetFocusScope"][1]["args"] = "()" -defs["igGetFocusScope"][1]["argsT"] = {} -defs["igGetFocusScope"][1]["argsoriginal"] = "()" -defs["igGetFocusScope"][1]["call_args"] = "()" -defs["igGetFocusScope"][1]["cimguiname"] = "igGetFocusScope" -defs["igGetFocusScope"][1]["defaults"] = {} -defs["igGetFocusScope"][1]["funcname"] = "GetFocusScope" -defs["igGetFocusScope"][1]["location"] = "imgui_internal:2821" -defs["igGetFocusScope"][1]["namespace"] = "ImGui" -defs["igGetFocusScope"][1]["ov_cimguiname"] = "igGetFocusScope" -defs["igGetFocusScope"][1]["ret"] = "ImGuiID" -defs["igGetFocusScope"][1]["signature"] = "()" -defs["igGetFocusScope"][1]["stname"] = "" -defs["igGetFocusScope"]["()"] = defs["igGetFocusScope"][1] -defs["igGetFocusedFocusScope"] = {} -defs["igGetFocusedFocusScope"][1] = {} -defs["igGetFocusedFocusScope"][1]["args"] = "()" -defs["igGetFocusedFocusScope"][1]["argsT"] = {} -defs["igGetFocusedFocusScope"][1]["argsoriginal"] = "()" -defs["igGetFocusedFocusScope"][1]["call_args"] = "()" -defs["igGetFocusedFocusScope"][1]["cimguiname"] = "igGetFocusedFocusScope" -defs["igGetFocusedFocusScope"][1]["defaults"] = {} -defs["igGetFocusedFocusScope"][1]["funcname"] = "GetFocusedFocusScope" -defs["igGetFocusedFocusScope"][1]["location"] = "imgui_internal:2820" -defs["igGetFocusedFocusScope"][1]["namespace"] = "ImGui" -defs["igGetFocusedFocusScope"][1]["ov_cimguiname"] = "igGetFocusedFocusScope" -defs["igGetFocusedFocusScope"][1]["ret"] = "ImGuiID" -defs["igGetFocusedFocusScope"][1]["signature"] = "()" -defs["igGetFocusedFocusScope"][1]["stname"] = "" -defs["igGetFocusedFocusScope"]["()"] = defs["igGetFocusedFocusScope"][1] defs["igGetFont"] = {} defs["igGetFont"][1] = {} defs["igGetFont"][1]["args"] = "()" @@ -16210,7 +16894,7 @@ defs["igGetFont"][1]["call_args"] = "()" defs["igGetFont"][1]["cimguiname"] = "igGetFont" defs["igGetFont"][1]["defaults"] = {} defs["igGetFont"][1]["funcname"] = "GetFont" -defs["igGetFont"][1]["location"] = "imgui:435" +defs["igGetFont"][1]["location"] = "imgui:432" defs["igGetFont"][1]["namespace"] = "ImGui" defs["igGetFont"][1]["ov_cimguiname"] = "igGetFont" defs["igGetFont"][1]["ret"] = "ImFont*" @@ -16226,7 +16910,7 @@ defs["igGetFontSize"][1]["call_args"] = "()" defs["igGetFontSize"][1]["cimguiname"] = "igGetFontSize" defs["igGetFontSize"][1]["defaults"] = {} defs["igGetFontSize"][1]["funcname"] = "GetFontSize" -defs["igGetFontSize"][1]["location"] = "imgui:436" +defs["igGetFontSize"][1]["location"] = "imgui:433" defs["igGetFontSize"][1]["namespace"] = "ImGui" defs["igGetFontSize"][1]["ov_cimguiname"] = "igGetFontSize" defs["igGetFontSize"][1]["ret"] = "float" @@ -16245,7 +16929,7 @@ defs["igGetFontTexUvWhitePixel"][1]["call_args"] = "()" defs["igGetFontTexUvWhitePixel"][1]["cimguiname"] = "igGetFontTexUvWhitePixel" defs["igGetFontTexUvWhitePixel"][1]["defaults"] = {} defs["igGetFontTexUvWhitePixel"][1]["funcname"] = "GetFontTexUvWhitePixel" -defs["igGetFontTexUvWhitePixel"][1]["location"] = "imgui:437" +defs["igGetFontTexUvWhitePixel"][1]["location"] = "imgui:434" defs["igGetFontTexUvWhitePixel"][1]["namespace"] = "ImGui" defs["igGetFontTexUvWhitePixel"][1]["nonUDT"] = 1 defs["igGetFontTexUvWhitePixel"][1]["ov_cimguiname"] = "igGetFontTexUvWhitePixel" @@ -16262,9 +16946,9 @@ defs["igGetForegroundDrawList"][1]["call_args"] = "()" defs["igGetForegroundDrawList"][1]["cimguiname"] = "igGetForegroundDrawList" defs["igGetForegroundDrawList"][1]["defaults"] = {} defs["igGetForegroundDrawList"][1]["funcname"] = "GetForegroundDrawList" -defs["igGetForegroundDrawList"][1]["location"] = "imgui:898" +defs["igGetForegroundDrawList"][1]["location"] = "imgui:891" defs["igGetForegroundDrawList"][1]["namespace"] = "ImGui" -defs["igGetForegroundDrawList"][1]["ov_cimguiname"] = "igGetForegroundDrawListNil" +defs["igGetForegroundDrawList"][1]["ov_cimguiname"] = "igGetForegroundDrawList_Nil" defs["igGetForegroundDrawList"][1]["ret"] = "ImDrawList*" defs["igGetForegroundDrawList"][1]["signature"] = "()" defs["igGetForegroundDrawList"][1]["stname"] = "" @@ -16279,9 +16963,9 @@ defs["igGetForegroundDrawList"][2]["call_args"] = "(viewport)" defs["igGetForegroundDrawList"][2]["cimguiname"] = "igGetForegroundDrawList" defs["igGetForegroundDrawList"][2]["defaults"] = {} defs["igGetForegroundDrawList"][2]["funcname"] = "GetForegroundDrawList" -defs["igGetForegroundDrawList"][2]["location"] = "imgui:900" +defs["igGetForegroundDrawList"][2]["location"] = "imgui:893" defs["igGetForegroundDrawList"][2]["namespace"] = "ImGui" -defs["igGetForegroundDrawList"][2]["ov_cimguiname"] = "igGetForegroundDrawListViewportPtr" +defs["igGetForegroundDrawList"][2]["ov_cimguiname"] = "igGetForegroundDrawList_ViewportPtr" defs["igGetForegroundDrawList"][2]["ret"] = "ImDrawList*" defs["igGetForegroundDrawList"][2]["signature"] = "(ImGuiViewport*)" defs["igGetForegroundDrawList"][2]["stname"] = "" @@ -16296,9 +16980,9 @@ defs["igGetForegroundDrawList"][3]["call_args"] = "(window)" defs["igGetForegroundDrawList"][3]["cimguiname"] = "igGetForegroundDrawList" defs["igGetForegroundDrawList"][3]["defaults"] = {} defs["igGetForegroundDrawList"][3]["funcname"] = "GetForegroundDrawList" -defs["igGetForegroundDrawList"][3]["location"] = "imgui_internal:2674" +defs["igGetForegroundDrawList"][3]["location"] = "imgui_internal:2962" defs["igGetForegroundDrawList"][3]["namespace"] = "ImGui" -defs["igGetForegroundDrawList"][3]["ov_cimguiname"] = "igGetForegroundDrawListWindowPtr" +defs["igGetForegroundDrawList"][3]["ov_cimguiname"] = "igGetForegroundDrawList_WindowPtr" defs["igGetForegroundDrawList"][3]["ret"] = "ImDrawList*" defs["igGetForegroundDrawList"][3]["signature"] = "(ImGuiWindow*)" defs["igGetForegroundDrawList"][3]["stname"] = "" @@ -16314,7 +16998,7 @@ defs["igGetFrameCount"][1]["call_args"] = "()" defs["igGetFrameCount"][1]["cimguiname"] = "igGetFrameCount" defs["igGetFrameCount"][1]["defaults"] = {} defs["igGetFrameCount"][1]["funcname"] = "GetFrameCount" -defs["igGetFrameCount"][1]["location"] = "imgui:896" +defs["igGetFrameCount"][1]["location"] = "imgui:899" defs["igGetFrameCount"][1]["namespace"] = "ImGui" defs["igGetFrameCount"][1]["ov_cimguiname"] = "igGetFrameCount" defs["igGetFrameCount"][1]["ret"] = "int" @@ -16330,7 +17014,7 @@ defs["igGetFrameHeight"][1]["call_args"] = "()" defs["igGetFrameHeight"][1]["cimguiname"] = "igGetFrameHeight" defs["igGetFrameHeight"][1]["defaults"] = {} defs["igGetFrameHeight"][1]["funcname"] = "GetFrameHeight" -defs["igGetFrameHeight"][1]["location"] = "imgui:471" +defs["igGetFrameHeight"][1]["location"] = "imgui:468" defs["igGetFrameHeight"][1]["namespace"] = "ImGui" defs["igGetFrameHeight"][1]["ov_cimguiname"] = "igGetFrameHeight" defs["igGetFrameHeight"][1]["ret"] = "float" @@ -16346,7 +17030,7 @@ defs["igGetFrameHeightWithSpacing"][1]["call_args"] = "()" defs["igGetFrameHeightWithSpacing"][1]["cimguiname"] = "igGetFrameHeightWithSpacing" defs["igGetFrameHeightWithSpacing"][1]["defaults"] = {} defs["igGetFrameHeightWithSpacing"][1]["funcname"] = "GetFrameHeightWithSpacing" -defs["igGetFrameHeightWithSpacing"][1]["location"] = "imgui:472" +defs["igGetFrameHeightWithSpacing"][1]["location"] = "imgui:469" defs["igGetFrameHeightWithSpacing"][1]["namespace"] = "ImGui" defs["igGetFrameHeightWithSpacing"][1]["ov_cimguiname"] = "igGetFrameHeightWithSpacing" defs["igGetFrameHeightWithSpacing"][1]["ret"] = "float" @@ -16362,7 +17046,7 @@ defs["igGetHoveredID"][1]["call_args"] = "()" defs["igGetHoveredID"][1]["cimguiname"] = "igGetHoveredID" defs["igGetHoveredID"][1]["defaults"] = {} defs["igGetHoveredID"][1]["funcname"] = "GetHoveredID" -defs["igGetHoveredID"][1]["location"] = "imgui_internal:2732" +defs["igGetHoveredID"][1]["location"] = "imgui_internal:3028" defs["igGetHoveredID"][1]["namespace"] = "ImGui" defs["igGetHoveredID"][1]["ov_cimguiname"] = "igGetHoveredID" defs["igGetHoveredID"][1]["ret"] = "ImGuiID" @@ -16381,9 +17065,9 @@ defs["igGetID"][1]["call_args"] = "(str_id)" defs["igGetID"][1]["cimguiname"] = "igGetID" defs["igGetID"][1]["defaults"] = {} defs["igGetID"][1]["funcname"] = "GetID" -defs["igGetID"][1]["location"] = "imgui:490" +defs["igGetID"][1]["location"] = "imgui:487" defs["igGetID"][1]["namespace"] = "ImGui" -defs["igGetID"][1]["ov_cimguiname"] = "igGetIDStr" +defs["igGetID"][1]["ov_cimguiname"] = "igGetID_Str" defs["igGetID"][1]["ret"] = "ImGuiID" defs["igGetID"][1]["signature"] = "(const char*)" defs["igGetID"][1]["stname"] = "" @@ -16401,9 +17085,9 @@ defs["igGetID"][2]["call_args"] = "(str_id_begin,str_id_end)" defs["igGetID"][2]["cimguiname"] = "igGetID" defs["igGetID"][2]["defaults"] = {} defs["igGetID"][2]["funcname"] = "GetID" -defs["igGetID"][2]["location"] = "imgui:491" +defs["igGetID"][2]["location"] = "imgui:488" defs["igGetID"][2]["namespace"] = "ImGui" -defs["igGetID"][2]["ov_cimguiname"] = "igGetIDStrStr" +defs["igGetID"][2]["ov_cimguiname"] = "igGetID_StrStr" defs["igGetID"][2]["ret"] = "ImGuiID" defs["igGetID"][2]["signature"] = "(const char*,const char*)" defs["igGetID"][2]["stname"] = "" @@ -16418,9 +17102,9 @@ defs["igGetID"][3]["call_args"] = "(ptr_id)" defs["igGetID"][3]["cimguiname"] = "igGetID" defs["igGetID"][3]["defaults"] = {} defs["igGetID"][3]["funcname"] = "GetID" -defs["igGetID"][3]["location"] = "imgui:492" +defs["igGetID"][3]["location"] = "imgui:489" defs["igGetID"][3]["namespace"] = "ImGui" -defs["igGetID"][3]["ov_cimguiname"] = "igGetIDPtr" +defs["igGetID"][3]["ov_cimguiname"] = "igGetID_Ptr" defs["igGetID"][3]["ret"] = "ImGuiID" defs["igGetID"][3]["signature"] = "(const void*)" defs["igGetID"][3]["stname"] = "" @@ -16445,7 +17129,7 @@ defs["igGetIDWithSeed"][1]["call_args"] = "(str_id_begin,str_id_end,seed)" defs["igGetIDWithSeed"][1]["cimguiname"] = "igGetIDWithSeed" defs["igGetIDWithSeed"][1]["defaults"] = {} defs["igGetIDWithSeed"][1]["funcname"] = "GetIDWithSeed" -defs["igGetIDWithSeed"][1]["location"] = "imgui_internal:2737" +defs["igGetIDWithSeed"][1]["location"] = "imgui_internal:3033" defs["igGetIDWithSeed"][1]["namespace"] = "ImGui" defs["igGetIDWithSeed"][1]["ov_cimguiname"] = "igGetIDWithSeed" defs["igGetIDWithSeed"][1]["ret"] = "ImGuiID" @@ -16461,7 +17145,7 @@ defs["igGetIO"][1]["call_args"] = "()" defs["igGetIO"][1]["cimguiname"] = "igGetIO" defs["igGetIO"][1]["defaults"] = {} defs["igGetIO"][1]["funcname"] = "GetIO" -defs["igGetIO"][1]["location"] = "imgui:307" +defs["igGetIO"][1]["location"] = "imgui:300" defs["igGetIO"][1]["namespace"] = "ImGui" defs["igGetIO"][1]["ov_cimguiname"] = "igGetIO" defs["igGetIO"][1]["ret"] = "ImGuiIO*" @@ -16481,7 +17165,7 @@ defs["igGetInputTextState"][1]["call_args"] = "(id)" defs["igGetInputTextState"][1]["cimguiname"] = "igGetInputTextState" defs["igGetInputTextState"][1]["defaults"] = {} defs["igGetInputTextState"][1]["funcname"] = "GetInputTextState" -defs["igGetInputTextState"][1]["location"] = "imgui_internal:3050" +defs["igGetInputTextState"][1]["location"] = "imgui_internal:3399" defs["igGetInputTextState"][1]["namespace"] = "ImGui" defs["igGetInputTextState"][1]["ov_cimguiname"] = "igGetInputTextState" defs["igGetInputTextState"][1]["ret"] = "ImGuiInputTextState*" @@ -16497,7 +17181,7 @@ defs["igGetItemFlags"][1]["call_args"] = "()" defs["igGetItemFlags"][1]["cimguiname"] = "igGetItemFlags" defs["igGetItemFlags"][1]["defaults"] = {} defs["igGetItemFlags"][1]["funcname"] = "GetItemFlags" -defs["igGetItemFlags"][1]["location"] = "imgui_internal:2726" +defs["igGetItemFlags"][1]["location"] = "imgui_internal:3022" defs["igGetItemFlags"][1]["namespace"] = "ImGui" defs["igGetItemFlags"][1]["ov_cimguiname"] = "igGetItemFlags" defs["igGetItemFlags"][1]["ret"] = "ImGuiItemFlags" @@ -16513,7 +17197,7 @@ defs["igGetItemID"][1]["call_args"] = "()" defs["igGetItemID"][1]["cimguiname"] = "igGetItemID" defs["igGetItemID"][1]["defaults"] = {} defs["igGetItemID"][1]["funcname"] = "GetItemID" -defs["igGetItemID"][1]["location"] = "imgui_internal:2724" +defs["igGetItemID"][1]["location"] = "imgui_internal:3020" defs["igGetItemID"][1]["namespace"] = "ImGui" defs["igGetItemID"][1]["ov_cimguiname"] = "igGetItemID" defs["igGetItemID"][1]["ret"] = "ImGuiID" @@ -16532,7 +17216,7 @@ defs["igGetItemRectMax"][1]["call_args"] = "()" defs["igGetItemRectMax"][1]["cimguiname"] = "igGetItemRectMax" defs["igGetItemRectMax"][1]["defaults"] = {} defs["igGetItemRectMax"][1]["funcname"] = "GetItemRectMax" -defs["igGetItemRectMax"][1]["location"] = "imgui:882" +defs["igGetItemRectMax"][1]["location"] = "imgui:879" defs["igGetItemRectMax"][1]["namespace"] = "ImGui" defs["igGetItemRectMax"][1]["nonUDT"] = 1 defs["igGetItemRectMax"][1]["ov_cimguiname"] = "igGetItemRectMax" @@ -16552,7 +17236,7 @@ defs["igGetItemRectMin"][1]["call_args"] = "()" defs["igGetItemRectMin"][1]["cimguiname"] = "igGetItemRectMin" defs["igGetItemRectMin"][1]["defaults"] = {} defs["igGetItemRectMin"][1]["funcname"] = "GetItemRectMin" -defs["igGetItemRectMin"][1]["location"] = "imgui:881" +defs["igGetItemRectMin"][1]["location"] = "imgui:878" defs["igGetItemRectMin"][1]["namespace"] = "ImGui" defs["igGetItemRectMin"][1]["nonUDT"] = 1 defs["igGetItemRectMin"][1]["ov_cimguiname"] = "igGetItemRectMin" @@ -16572,7 +17256,7 @@ defs["igGetItemRectSize"][1]["call_args"] = "()" defs["igGetItemRectSize"][1]["cimguiname"] = "igGetItemRectSize" defs["igGetItemRectSize"][1]["defaults"] = {} defs["igGetItemRectSize"][1]["funcname"] = "GetItemRectSize" -defs["igGetItemRectSize"][1]["location"] = "imgui:883" +defs["igGetItemRectSize"][1]["location"] = "imgui:880" defs["igGetItemRectSize"][1]["namespace"] = "ImGui" defs["igGetItemRectSize"][1]["nonUDT"] = 1 defs["igGetItemRectSize"][1]["ov_cimguiname"] = "igGetItemRectSize" @@ -16589,57 +17273,190 @@ defs["igGetItemStatusFlags"][1]["call_args"] = "()" defs["igGetItemStatusFlags"][1]["cimguiname"] = "igGetItemStatusFlags" defs["igGetItemStatusFlags"][1]["defaults"] = {} defs["igGetItemStatusFlags"][1]["funcname"] = "GetItemStatusFlags" -defs["igGetItemStatusFlags"][1]["location"] = "imgui_internal:2725" +defs["igGetItemStatusFlags"][1]["location"] = "imgui_internal:3021" defs["igGetItemStatusFlags"][1]["namespace"] = "ImGui" defs["igGetItemStatusFlags"][1]["ov_cimguiname"] = "igGetItemStatusFlags" defs["igGetItemStatusFlags"][1]["ret"] = "ImGuiItemStatusFlags" defs["igGetItemStatusFlags"][1]["signature"] = "()" defs["igGetItemStatusFlags"][1]["stname"] = "" defs["igGetItemStatusFlags"]["()"] = defs["igGetItemStatusFlags"][1] +defs["igGetKeyChordName"] = {} +defs["igGetKeyChordName"][1] = {} +defs["igGetKeyChordName"][1]["args"] = "(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size)" +defs["igGetKeyChordName"][1]["argsT"] = {} +defs["igGetKeyChordName"][1]["argsT"][1] = {} +defs["igGetKeyChordName"][1]["argsT"][1]["name"] = "key_chord" +defs["igGetKeyChordName"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igGetKeyChordName"][1]["argsT"][2] = {} +defs["igGetKeyChordName"][1]["argsT"][2]["name"] = "out_buf" +defs["igGetKeyChordName"][1]["argsT"][2]["type"] = "char*" +defs["igGetKeyChordName"][1]["argsT"][3] = {} +defs["igGetKeyChordName"][1]["argsT"][3]["name"] = "out_buf_size" +defs["igGetKeyChordName"][1]["argsT"][3]["type"] = "int" +defs["igGetKeyChordName"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size)" +defs["igGetKeyChordName"][1]["call_args"] = "(key_chord,out_buf,out_buf_size)" +defs["igGetKeyChordName"][1]["cimguiname"] = "igGetKeyChordName" +defs["igGetKeyChordName"][1]["defaults"] = {} +defs["igGetKeyChordName"][1]["funcname"] = "GetKeyChordName" +defs["igGetKeyChordName"][1]["location"] = "imgui_internal:3117" +defs["igGetKeyChordName"][1]["namespace"] = "ImGui" +defs["igGetKeyChordName"][1]["ov_cimguiname"] = "igGetKeyChordName" +defs["igGetKeyChordName"][1]["ret"] = "void" +defs["igGetKeyChordName"][1]["signature"] = "(ImGuiKeyChord,char*,int)" +defs["igGetKeyChordName"][1]["stname"] = "" +defs["igGetKeyChordName"]["(ImGuiKeyChord,char*,int)"] = defs["igGetKeyChordName"][1] +defs["igGetKeyData"] = {} +defs["igGetKeyData"][1] = {} +defs["igGetKeyData"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyData"][1]["argsT"] = {} +defs["igGetKeyData"][1]["argsT"][1] = {} +defs["igGetKeyData"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyData"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyData"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyData"][1]["call_args"] = "(key)" +defs["igGetKeyData"][1]["cimguiname"] = "igGetKeyData" +defs["igGetKeyData"][1]["defaults"] = {} +defs["igGetKeyData"][1]["funcname"] = "GetKeyData" +defs["igGetKeyData"][1]["location"] = "imgui_internal:3116" +defs["igGetKeyData"][1]["namespace"] = "ImGui" +defs["igGetKeyData"][1]["ov_cimguiname"] = "igGetKeyData" +defs["igGetKeyData"][1]["ret"] = "ImGuiKeyData*" +defs["igGetKeyData"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyData"][1]["stname"] = "" +defs["igGetKeyData"]["(ImGuiKey)"] = defs["igGetKeyData"][1] defs["igGetKeyIndex"] = {} defs["igGetKeyIndex"][1] = {} -defs["igGetKeyIndex"][1]["args"] = "(ImGuiKey imgui_key)" +defs["igGetKeyIndex"][1]["args"] = "(ImGuiKey key)" defs["igGetKeyIndex"][1]["argsT"] = {} defs["igGetKeyIndex"][1]["argsT"][1] = {} -defs["igGetKeyIndex"][1]["argsT"][1]["name"] = "imgui_key" +defs["igGetKeyIndex"][1]["argsT"][1]["name"] = "key" defs["igGetKeyIndex"][1]["argsT"][1]["type"] = "ImGuiKey" -defs["igGetKeyIndex"][1]["argsoriginal"] = "(ImGuiKey imgui_key)" -defs["igGetKeyIndex"][1]["call_args"] = "(imgui_key)" +defs["igGetKeyIndex"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyIndex"][1]["call_args"] = "(key)" defs["igGetKeyIndex"][1]["cimguiname"] = "igGetKeyIndex" defs["igGetKeyIndex"][1]["defaults"] = {} defs["igGetKeyIndex"][1]["funcname"] = "GetKeyIndex" -defs["igGetKeyIndex"][1]["location"] = "imgui:920" +defs["igGetKeyIndex"][1]["location"] = "imgui:3214" defs["igGetKeyIndex"][1]["namespace"] = "ImGui" defs["igGetKeyIndex"][1]["ov_cimguiname"] = "igGetKeyIndex" -defs["igGetKeyIndex"][1]["ret"] = "int" +defs["igGetKeyIndex"][1]["ret"] = "ImGuiKey" defs["igGetKeyIndex"][1]["signature"] = "(ImGuiKey)" defs["igGetKeyIndex"][1]["stname"] = "" defs["igGetKeyIndex"]["(ImGuiKey)"] = defs["igGetKeyIndex"][1] +defs["igGetKeyName"] = {} +defs["igGetKeyName"][1] = {} +defs["igGetKeyName"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyName"][1]["argsT"] = {} +defs["igGetKeyName"][1]["argsT"][1] = {} +defs["igGetKeyName"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyName"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyName"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyName"][1]["call_args"] = "(key)" +defs["igGetKeyName"][1]["cimguiname"] = "igGetKeyName" +defs["igGetKeyName"][1]["defaults"] = {} +defs["igGetKeyName"][1]["funcname"] = "GetKeyName" +defs["igGetKeyName"][1]["location"] = "imgui:926" +defs["igGetKeyName"][1]["namespace"] = "ImGui" +defs["igGetKeyName"][1]["ov_cimguiname"] = "igGetKeyName" +defs["igGetKeyName"][1]["ret"] = "const char*" +defs["igGetKeyName"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyName"][1]["stname"] = "" +defs["igGetKeyName"]["(ImGuiKey)"] = defs["igGetKeyName"][1] +defs["igGetKeyOwner"] = {} +defs["igGetKeyOwner"][1] = {} +defs["igGetKeyOwner"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyOwner"][1]["argsT"] = {} +defs["igGetKeyOwner"][1]["argsT"][1] = {} +defs["igGetKeyOwner"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyOwner"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyOwner"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyOwner"][1]["call_args"] = "(key)" +defs["igGetKeyOwner"][1]["cimguiname"] = "igGetKeyOwner" +defs["igGetKeyOwner"][1]["defaults"] = {} +defs["igGetKeyOwner"][1]["funcname"] = "GetKeyOwner" +defs["igGetKeyOwner"][1]["location"] = "imgui_internal:3138" +defs["igGetKeyOwner"][1]["namespace"] = "ImGui" +defs["igGetKeyOwner"][1]["ov_cimguiname"] = "igGetKeyOwner" +defs["igGetKeyOwner"][1]["ret"] = "ImGuiID" +defs["igGetKeyOwner"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyOwner"][1]["stname"] = "" +defs["igGetKeyOwner"]["(ImGuiKey)"] = defs["igGetKeyOwner"][1] +defs["igGetKeyOwnerData"] = {} +defs["igGetKeyOwnerData"][1] = {} +defs["igGetKeyOwnerData"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyOwnerData"][1]["argsT"] = {} +defs["igGetKeyOwnerData"][1]["argsT"][1] = {} +defs["igGetKeyOwnerData"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyOwnerData"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyOwnerData"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyOwnerData"][1]["call_args"] = "(key)" +defs["igGetKeyOwnerData"][1]["cimguiname"] = "igGetKeyOwnerData" +defs["igGetKeyOwnerData"][1]["defaults"] = {} +defs["igGetKeyOwnerData"][1]["funcname"] = "GetKeyOwnerData" +defs["igGetKeyOwnerData"][1]["location"] = "imgui_internal:3142" +defs["igGetKeyOwnerData"][1]["namespace"] = "ImGui" +defs["igGetKeyOwnerData"][1]["ov_cimguiname"] = "igGetKeyOwnerData" +defs["igGetKeyOwnerData"][1]["ret"] = "ImGuiKeyOwnerData*" +defs["igGetKeyOwnerData"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyOwnerData"][1]["stname"] = "" +defs["igGetKeyOwnerData"]["(ImGuiKey)"] = defs["igGetKeyOwnerData"][1] defs["igGetKeyPressedAmount"] = {} defs["igGetKeyPressedAmount"][1] = {} -defs["igGetKeyPressedAmount"][1]["args"] = "(int key_index,float repeat_delay,float rate)" +defs["igGetKeyPressedAmount"][1]["args"] = "(ImGuiKey key,float repeat_delay,float rate)" defs["igGetKeyPressedAmount"][1]["argsT"] = {} defs["igGetKeyPressedAmount"][1]["argsT"][1] = {} -defs["igGetKeyPressedAmount"][1]["argsT"][1]["name"] = "key_index" -defs["igGetKeyPressedAmount"][1]["argsT"][1]["type"] = "int" +defs["igGetKeyPressedAmount"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyPressedAmount"][1]["argsT"][1]["type"] = "ImGuiKey" defs["igGetKeyPressedAmount"][1]["argsT"][2] = {} defs["igGetKeyPressedAmount"][1]["argsT"][2]["name"] = "repeat_delay" defs["igGetKeyPressedAmount"][1]["argsT"][2]["type"] = "float" defs["igGetKeyPressedAmount"][1]["argsT"][3] = {} defs["igGetKeyPressedAmount"][1]["argsT"][3]["name"] = "rate" defs["igGetKeyPressedAmount"][1]["argsT"][3]["type"] = "float" -defs["igGetKeyPressedAmount"][1]["argsoriginal"] = "(int key_index,float repeat_delay,float rate)" -defs["igGetKeyPressedAmount"][1]["call_args"] = "(key_index,repeat_delay,rate)" +defs["igGetKeyPressedAmount"][1]["argsoriginal"] = "(ImGuiKey key,float repeat_delay,float rate)" +defs["igGetKeyPressedAmount"][1]["call_args"] = "(key,repeat_delay,rate)" defs["igGetKeyPressedAmount"][1]["cimguiname"] = "igGetKeyPressedAmount" defs["igGetKeyPressedAmount"][1]["defaults"] = {} defs["igGetKeyPressedAmount"][1]["funcname"] = "GetKeyPressedAmount" -defs["igGetKeyPressedAmount"][1]["location"] = "imgui:924" +defs["igGetKeyPressedAmount"][1]["location"] = "imgui:925" defs["igGetKeyPressedAmount"][1]["namespace"] = "ImGui" defs["igGetKeyPressedAmount"][1]["ov_cimguiname"] = "igGetKeyPressedAmount" defs["igGetKeyPressedAmount"][1]["ret"] = "int" -defs["igGetKeyPressedAmount"][1]["signature"] = "(int,float,float)" +defs["igGetKeyPressedAmount"][1]["signature"] = "(ImGuiKey,float,float)" defs["igGetKeyPressedAmount"][1]["stname"] = "" -defs["igGetKeyPressedAmount"]["(int,float,float)"] = defs["igGetKeyPressedAmount"][1] +defs["igGetKeyPressedAmount"]["(ImGuiKey,float,float)"] = defs["igGetKeyPressedAmount"][1] +defs["igGetKeyVector2d"] = {} +defs["igGetKeyVector2d"][1] = {} +defs["igGetKeyVector2d"][1]["args"] = "(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)" +defs["igGetKeyVector2d"][1]["argsT"] = {} +defs["igGetKeyVector2d"][1]["argsT"][1] = {} +defs["igGetKeyVector2d"][1]["argsT"][1]["name"] = "pOut" +defs["igGetKeyVector2d"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetKeyVector2d"][1]["argsT"][2] = {} +defs["igGetKeyVector2d"][1]["argsT"][2]["name"] = "key_left" +defs["igGetKeyVector2d"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["igGetKeyVector2d"][1]["argsT"][3] = {} +defs["igGetKeyVector2d"][1]["argsT"][3]["name"] = "key_right" +defs["igGetKeyVector2d"][1]["argsT"][3]["type"] = "ImGuiKey" +defs["igGetKeyVector2d"][1]["argsT"][4] = {} +defs["igGetKeyVector2d"][1]["argsT"][4]["name"] = "key_up" +defs["igGetKeyVector2d"][1]["argsT"][4]["type"] = "ImGuiKey" +defs["igGetKeyVector2d"][1]["argsT"][5] = {} +defs["igGetKeyVector2d"][1]["argsT"][5]["name"] = "key_down" +defs["igGetKeyVector2d"][1]["argsT"][5]["type"] = "ImGuiKey" +defs["igGetKeyVector2d"][1]["argsoriginal"] = "(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)" +defs["igGetKeyVector2d"][1]["call_args"] = "(key_left,key_right,key_up,key_down)" +defs["igGetKeyVector2d"][1]["cimguiname"] = "igGetKeyVector2d" +defs["igGetKeyVector2d"][1]["defaults"] = {} +defs["igGetKeyVector2d"][1]["funcname"] = "GetKeyVector2d" +defs["igGetKeyVector2d"][1]["location"] = "imgui_internal:3120" +defs["igGetKeyVector2d"][1]["namespace"] = "ImGui" +defs["igGetKeyVector2d"][1]["nonUDT"] = 1 +defs["igGetKeyVector2d"][1]["ov_cimguiname"] = "igGetKeyVector2d" +defs["igGetKeyVector2d"][1]["ret"] = "void" +defs["igGetKeyVector2d"][1]["signature"] = "(ImGuiKey,ImGuiKey,ImGuiKey,ImGuiKey)" +defs["igGetKeyVector2d"][1]["stname"] = "" +defs["igGetKeyVector2d"]["(ImGuiKey,ImGuiKey,ImGuiKey,ImGuiKey)"] = defs["igGetKeyVector2d"][1] defs["igGetMainViewport"] = {} defs["igGetMainViewport"][1] = {} defs["igGetMainViewport"][1]["args"] = "()" @@ -16649,29 +17466,13 @@ defs["igGetMainViewport"][1]["call_args"] = "()" defs["igGetMainViewport"][1]["cimguiname"] = "igGetMainViewport" defs["igGetMainViewport"][1]["defaults"] = {} defs["igGetMainViewport"][1]["funcname"] = "GetMainViewport" -defs["igGetMainViewport"][1]["location"] = "imgui:890" +defs["igGetMainViewport"][1]["location"] = "imgui:887" defs["igGetMainViewport"][1]["namespace"] = "ImGui" defs["igGetMainViewport"][1]["ov_cimguiname"] = "igGetMainViewport" defs["igGetMainViewport"][1]["ret"] = "ImGuiViewport*" defs["igGetMainViewport"][1]["signature"] = "()" defs["igGetMainViewport"][1]["stname"] = "" defs["igGetMainViewport"]["()"] = defs["igGetMainViewport"][1] -defs["igGetMergedKeyModFlags"] = {} -defs["igGetMergedKeyModFlags"][1] = {} -defs["igGetMergedKeyModFlags"][1]["args"] = "()" -defs["igGetMergedKeyModFlags"][1]["argsT"] = {} -defs["igGetMergedKeyModFlags"][1]["argsoriginal"] = "()" -defs["igGetMergedKeyModFlags"][1]["call_args"] = "()" -defs["igGetMergedKeyModFlags"][1]["cimguiname"] = "igGetMergedKeyModFlags" -defs["igGetMergedKeyModFlags"][1]["defaults"] = {} -defs["igGetMergedKeyModFlags"][1]["funcname"] = "GetMergedKeyModFlags" -defs["igGetMergedKeyModFlags"][1]["location"] = "imgui_internal:2834" -defs["igGetMergedKeyModFlags"][1]["namespace"] = "ImGui" -defs["igGetMergedKeyModFlags"][1]["ov_cimguiname"] = "igGetMergedKeyModFlags" -defs["igGetMergedKeyModFlags"][1]["ret"] = "ImGuiKeyModFlags" -defs["igGetMergedKeyModFlags"][1]["signature"] = "()" -defs["igGetMergedKeyModFlags"][1]["stname"] = "" -defs["igGetMergedKeyModFlags"]["()"] = defs["igGetMergedKeyModFlags"][1] defs["igGetMouseClickedCount"] = {} defs["igGetMouseClickedCount"][1] = {} defs["igGetMouseClickedCount"][1]["args"] = "(ImGuiMouseButton button)" @@ -16684,7 +17485,7 @@ defs["igGetMouseClickedCount"][1]["call_args"] = "(button)" defs["igGetMouseClickedCount"][1]["cimguiname"] = "igGetMouseClickedCount" defs["igGetMouseClickedCount"][1]["defaults"] = {} defs["igGetMouseClickedCount"][1]["funcname"] = "GetMouseClickedCount" -defs["igGetMouseClickedCount"][1]["location"] = "imgui:935" +defs["igGetMouseClickedCount"][1]["location"] = "imgui:937" defs["igGetMouseClickedCount"][1]["namespace"] = "ImGui" defs["igGetMouseClickedCount"][1]["ov_cimguiname"] = "igGetMouseClickedCount" defs["igGetMouseClickedCount"][1]["ret"] = "int" @@ -16700,7 +17501,7 @@ defs["igGetMouseCursor"][1]["call_args"] = "()" defs["igGetMouseCursor"][1]["cimguiname"] = "igGetMouseCursor" defs["igGetMouseCursor"][1]["defaults"] = {} defs["igGetMouseCursor"][1]["funcname"] = "GetMouseCursor" -defs["igGetMouseCursor"][1]["location"] = "imgui:944" +defs["igGetMouseCursor"][1]["location"] = "imgui:946" defs["igGetMouseCursor"][1]["namespace"] = "ImGui" defs["igGetMouseCursor"][1]["ov_cimguiname"] = "igGetMouseCursor" defs["igGetMouseCursor"][1]["ret"] = "ImGuiMouseCursor" @@ -16727,7 +17528,7 @@ defs["igGetMouseDragDelta"][1]["defaults"] = {} defs["igGetMouseDragDelta"][1]["defaults"]["button"] = "0" defs["igGetMouseDragDelta"][1]["defaults"]["lock_threshold"] = "-1.0f" defs["igGetMouseDragDelta"][1]["funcname"] = "GetMouseDragDelta" -defs["igGetMouseDragDelta"][1]["location"] = "imgui:942" +defs["igGetMouseDragDelta"][1]["location"] = "imgui:944" defs["igGetMouseDragDelta"][1]["namespace"] = "ImGui" defs["igGetMouseDragDelta"][1]["nonUDT"] = 1 defs["igGetMouseDragDelta"][1]["ov_cimguiname"] = "igGetMouseDragDelta" @@ -16747,7 +17548,7 @@ defs["igGetMousePos"][1]["call_args"] = "()" defs["igGetMousePos"][1]["cimguiname"] = "igGetMousePos" defs["igGetMousePos"][1]["defaults"] = {} defs["igGetMousePos"][1]["funcname"] = "GetMousePos" -defs["igGetMousePos"][1]["location"] = "imgui:939" +defs["igGetMousePos"][1]["location"] = "imgui:941" defs["igGetMousePos"][1]["namespace"] = "ImGui" defs["igGetMousePos"][1]["nonUDT"] = 1 defs["igGetMousePos"][1]["ov_cimguiname"] = "igGetMousePos" @@ -16767,7 +17568,7 @@ defs["igGetMousePosOnOpeningCurrentPopup"][1]["call_args"] = "()" defs["igGetMousePosOnOpeningCurrentPopup"][1]["cimguiname"] = "igGetMousePosOnOpeningCurrentPopup" defs["igGetMousePosOnOpeningCurrentPopup"][1]["defaults"] = {} defs["igGetMousePosOnOpeningCurrentPopup"][1]["funcname"] = "GetMousePosOnOpeningCurrentPopup" -defs["igGetMousePosOnOpeningCurrentPopup"][1]["location"] = "imgui:940" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["location"] = "imgui:942" defs["igGetMousePosOnOpeningCurrentPopup"][1]["namespace"] = "ImGui" defs["igGetMousePosOnOpeningCurrentPopup"][1]["nonUDT"] = 1 defs["igGetMousePosOnOpeningCurrentPopup"][1]["ov_cimguiname"] = "igGetMousePosOnOpeningCurrentPopup" @@ -16775,62 +17576,25 @@ defs["igGetMousePosOnOpeningCurrentPopup"][1]["ret"] = "void" defs["igGetMousePosOnOpeningCurrentPopup"][1]["signature"] = "()" defs["igGetMousePosOnOpeningCurrentPopup"][1]["stname"] = "" defs["igGetMousePosOnOpeningCurrentPopup"]["()"] = defs["igGetMousePosOnOpeningCurrentPopup"][1] -defs["igGetNavInputAmount"] = {} -defs["igGetNavInputAmount"][1] = {} -defs["igGetNavInputAmount"][1]["args"] = "(ImGuiNavInput n,ImGuiInputReadMode mode)" -defs["igGetNavInputAmount"][1]["argsT"] = {} -defs["igGetNavInputAmount"][1]["argsT"][1] = {} -defs["igGetNavInputAmount"][1]["argsT"][1]["name"] = "n" -defs["igGetNavInputAmount"][1]["argsT"][1]["type"] = "ImGuiNavInput" -defs["igGetNavInputAmount"][1]["argsT"][2] = {} -defs["igGetNavInputAmount"][1]["argsT"][2]["name"] = "mode" -defs["igGetNavInputAmount"][1]["argsT"][2]["type"] = "ImGuiInputReadMode" -defs["igGetNavInputAmount"][1]["argsoriginal"] = "(ImGuiNavInput n,ImGuiInputReadMode mode)" -defs["igGetNavInputAmount"][1]["call_args"] = "(n,mode)" -defs["igGetNavInputAmount"][1]["cimguiname"] = "igGetNavInputAmount" -defs["igGetNavInputAmount"][1]["defaults"] = {} -defs["igGetNavInputAmount"][1]["funcname"] = "GetNavInputAmount" -defs["igGetNavInputAmount"][1]["location"] = "imgui_internal:2809" -defs["igGetNavInputAmount"][1]["namespace"] = "ImGui" -defs["igGetNavInputAmount"][1]["ov_cimguiname"] = "igGetNavInputAmount" -defs["igGetNavInputAmount"][1]["ret"] = "float" -defs["igGetNavInputAmount"][1]["signature"] = "(ImGuiNavInput,ImGuiInputReadMode)" -defs["igGetNavInputAmount"][1]["stname"] = "" -defs["igGetNavInputAmount"]["(ImGuiNavInput,ImGuiInputReadMode)"] = defs["igGetNavInputAmount"][1] -defs["igGetNavInputAmount2d"] = {} -defs["igGetNavInputAmount2d"][1] = {} -defs["igGetNavInputAmount2d"][1]["args"] = "(ImVec2 *pOut,ImGuiNavDirSourceFlags dir_sources,ImGuiInputReadMode mode,float slow_factor,float fast_factor)" -defs["igGetNavInputAmount2d"][1]["argsT"] = {} -defs["igGetNavInputAmount2d"][1]["argsT"][1] = {} -defs["igGetNavInputAmount2d"][1]["argsT"][1]["name"] = "pOut" -defs["igGetNavInputAmount2d"][1]["argsT"][1]["type"] = "ImVec2*" -defs["igGetNavInputAmount2d"][1]["argsT"][2] = {} -defs["igGetNavInputAmount2d"][1]["argsT"][2]["name"] = "dir_sources" -defs["igGetNavInputAmount2d"][1]["argsT"][2]["type"] = "ImGuiNavDirSourceFlags" -defs["igGetNavInputAmount2d"][1]["argsT"][3] = {} -defs["igGetNavInputAmount2d"][1]["argsT"][3]["name"] = "mode" -defs["igGetNavInputAmount2d"][1]["argsT"][3]["type"] = "ImGuiInputReadMode" -defs["igGetNavInputAmount2d"][1]["argsT"][4] = {} -defs["igGetNavInputAmount2d"][1]["argsT"][4]["name"] = "slow_factor" -defs["igGetNavInputAmount2d"][1]["argsT"][4]["type"] = "float" -defs["igGetNavInputAmount2d"][1]["argsT"][5] = {} -defs["igGetNavInputAmount2d"][1]["argsT"][5]["name"] = "fast_factor" -defs["igGetNavInputAmount2d"][1]["argsT"][5]["type"] = "float" -defs["igGetNavInputAmount2d"][1]["argsoriginal"] = "(ImGuiNavDirSourceFlags dir_sources,ImGuiInputReadMode mode,float slow_factor=0.0f,float fast_factor=0.0f)" -defs["igGetNavInputAmount2d"][1]["call_args"] = "(dir_sources,mode,slow_factor,fast_factor)" -defs["igGetNavInputAmount2d"][1]["cimguiname"] = "igGetNavInputAmount2d" -defs["igGetNavInputAmount2d"][1]["defaults"] = {} -defs["igGetNavInputAmount2d"][1]["defaults"]["fast_factor"] = "0.0f" -defs["igGetNavInputAmount2d"][1]["defaults"]["slow_factor"] = "0.0f" -defs["igGetNavInputAmount2d"][1]["funcname"] = "GetNavInputAmount2d" -defs["igGetNavInputAmount2d"][1]["location"] = "imgui_internal:2810" -defs["igGetNavInputAmount2d"][1]["namespace"] = "ImGui" -defs["igGetNavInputAmount2d"][1]["nonUDT"] = 1 -defs["igGetNavInputAmount2d"][1]["ov_cimguiname"] = "igGetNavInputAmount2d" -defs["igGetNavInputAmount2d"][1]["ret"] = "void" -defs["igGetNavInputAmount2d"][1]["signature"] = "(ImGuiNavDirSourceFlags,ImGuiInputReadMode,float,float)" -defs["igGetNavInputAmount2d"][1]["stname"] = "" -defs["igGetNavInputAmount2d"]["(ImGuiNavDirSourceFlags,ImGuiInputReadMode,float,float)"] = defs["igGetNavInputAmount2d"][1] +defs["igGetNavTweakPressedAmount"] = {} +defs["igGetNavTweakPressedAmount"][1] = {} +defs["igGetNavTweakPressedAmount"][1]["args"] = "(ImGuiAxis axis)" +defs["igGetNavTweakPressedAmount"][1]["argsT"] = {} +defs["igGetNavTweakPressedAmount"][1]["argsT"][1] = {} +defs["igGetNavTweakPressedAmount"][1]["argsT"][1]["name"] = "axis" +defs["igGetNavTweakPressedAmount"][1]["argsT"][1]["type"] = "ImGuiAxis" +defs["igGetNavTweakPressedAmount"][1]["argsoriginal"] = "(ImGuiAxis axis)" +defs["igGetNavTweakPressedAmount"][1]["call_args"] = "(axis)" +defs["igGetNavTweakPressedAmount"][1]["cimguiname"] = "igGetNavTweakPressedAmount" +defs["igGetNavTweakPressedAmount"][1]["defaults"] = {} +defs["igGetNavTweakPressedAmount"][1]["funcname"] = "GetNavTweakPressedAmount" +defs["igGetNavTweakPressedAmount"][1]["location"] = "imgui_internal:3121" +defs["igGetNavTweakPressedAmount"][1]["namespace"] = "ImGui" +defs["igGetNavTweakPressedAmount"][1]["ov_cimguiname"] = "igGetNavTweakPressedAmount" +defs["igGetNavTweakPressedAmount"][1]["ret"] = "float" +defs["igGetNavTweakPressedAmount"][1]["signature"] = "(ImGuiAxis)" +defs["igGetNavTweakPressedAmount"][1]["stname"] = "" +defs["igGetNavTweakPressedAmount"]["(ImGuiAxis)"] = defs["igGetNavTweakPressedAmount"][1] defs["igGetPlatformIO"] = {} defs["igGetPlatformIO"][1] = {} defs["igGetPlatformIO"][1]["args"] = "()" @@ -16840,7 +17604,7 @@ defs["igGetPlatformIO"][1]["call_args"] = "()" defs["igGetPlatformIO"][1]["cimguiname"] = "igGetPlatformIO" defs["igGetPlatformIO"][1]["defaults"] = {} defs["igGetPlatformIO"][1]["funcname"] = "GetPlatformIO" -defs["igGetPlatformIO"][1]["location"] = "imgui:978" +defs["igGetPlatformIO"][1]["location"] = "imgui:980" defs["igGetPlatformIO"][1]["namespace"] = "ImGui" defs["igGetPlatformIO"][1]["ov_cimguiname"] = "igGetPlatformIO" defs["igGetPlatformIO"][1]["ret"] = "ImGuiPlatformIO*" @@ -16863,7 +17627,7 @@ defs["igGetPopupAllowedExtentRect"][1]["call_args"] = "(window)" defs["igGetPopupAllowedExtentRect"][1]["cimguiname"] = "igGetPopupAllowedExtentRect" defs["igGetPopupAllowedExtentRect"][1]["defaults"] = {} defs["igGetPopupAllowedExtentRect"][1]["funcname"] = "GetPopupAllowedExtentRect" -defs["igGetPopupAllowedExtentRect"][1]["location"] = "imgui_internal:2783" +defs["igGetPopupAllowedExtentRect"][1]["location"] = "imgui_internal:3068" defs["igGetPopupAllowedExtentRect"][1]["namespace"] = "ImGui" defs["igGetPopupAllowedExtentRect"][1]["nonUDT"] = 1 defs["igGetPopupAllowedExtentRect"][1]["ov_cimguiname"] = "igGetPopupAllowedExtentRect" @@ -16880,7 +17644,7 @@ defs["igGetScrollMaxX"][1]["call_args"] = "()" defs["igGetScrollMaxX"][1]["cimguiname"] = "igGetScrollMaxX" defs["igGetScrollMaxX"][1]["defaults"] = {} defs["igGetScrollMaxX"][1]["funcname"] = "GetScrollMaxX" -defs["igGetScrollMaxX"][1]["location"] = "imgui:404" +defs["igGetScrollMaxX"][1]["location"] = "imgui:401" defs["igGetScrollMaxX"][1]["namespace"] = "ImGui" defs["igGetScrollMaxX"][1]["ov_cimguiname"] = "igGetScrollMaxX" defs["igGetScrollMaxX"][1]["ret"] = "float" @@ -16896,7 +17660,7 @@ defs["igGetScrollMaxY"][1]["call_args"] = "()" defs["igGetScrollMaxY"][1]["cimguiname"] = "igGetScrollMaxY" defs["igGetScrollMaxY"][1]["defaults"] = {} defs["igGetScrollMaxY"][1]["funcname"] = "GetScrollMaxY" -defs["igGetScrollMaxY"][1]["location"] = "imgui:405" +defs["igGetScrollMaxY"][1]["location"] = "imgui:402" defs["igGetScrollMaxY"][1]["namespace"] = "ImGui" defs["igGetScrollMaxY"][1]["ov_cimguiname"] = "igGetScrollMaxY" defs["igGetScrollMaxY"][1]["ret"] = "float" @@ -16912,7 +17676,7 @@ defs["igGetScrollX"][1]["call_args"] = "()" defs["igGetScrollX"][1]["cimguiname"] = "igGetScrollX" defs["igGetScrollX"][1]["defaults"] = {} defs["igGetScrollX"][1]["funcname"] = "GetScrollX" -defs["igGetScrollX"][1]["location"] = "imgui:400" +defs["igGetScrollX"][1]["location"] = "imgui:397" defs["igGetScrollX"][1]["namespace"] = "ImGui" defs["igGetScrollX"][1]["ov_cimguiname"] = "igGetScrollX" defs["igGetScrollX"][1]["ret"] = "float" @@ -16928,13 +17692,32 @@ defs["igGetScrollY"][1]["call_args"] = "()" defs["igGetScrollY"][1]["cimguiname"] = "igGetScrollY" defs["igGetScrollY"][1]["defaults"] = {} defs["igGetScrollY"][1]["funcname"] = "GetScrollY" -defs["igGetScrollY"][1]["location"] = "imgui:401" +defs["igGetScrollY"][1]["location"] = "imgui:398" defs["igGetScrollY"][1]["namespace"] = "ImGui" defs["igGetScrollY"][1]["ov_cimguiname"] = "igGetScrollY" defs["igGetScrollY"][1]["ret"] = "float" defs["igGetScrollY"][1]["signature"] = "()" defs["igGetScrollY"][1]["stname"] = "" defs["igGetScrollY"]["()"] = defs["igGetScrollY"][1] +defs["igGetShortcutRoutingData"] = {} +defs["igGetShortcutRoutingData"][1] = {} +defs["igGetShortcutRoutingData"][1]["args"] = "(ImGuiKeyChord key_chord)" +defs["igGetShortcutRoutingData"][1]["argsT"] = {} +defs["igGetShortcutRoutingData"][1]["argsT"][1] = {} +defs["igGetShortcutRoutingData"][1]["argsT"][1]["name"] = "key_chord" +defs["igGetShortcutRoutingData"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igGetShortcutRoutingData"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord)" +defs["igGetShortcutRoutingData"][1]["call_args"] = "(key_chord)" +defs["igGetShortcutRoutingData"][1]["cimguiname"] = "igGetShortcutRoutingData" +defs["igGetShortcutRoutingData"][1]["defaults"] = {} +defs["igGetShortcutRoutingData"][1]["funcname"] = "GetShortcutRoutingData" +defs["igGetShortcutRoutingData"][1]["location"] = "imgui_internal:3170" +defs["igGetShortcutRoutingData"][1]["namespace"] = "ImGui" +defs["igGetShortcutRoutingData"][1]["ov_cimguiname"] = "igGetShortcutRoutingData" +defs["igGetShortcutRoutingData"][1]["ret"] = "ImGuiKeyRoutingData*" +defs["igGetShortcutRoutingData"][1]["signature"] = "(ImGuiKeyChord)" +defs["igGetShortcutRoutingData"][1]["stname"] = "" +defs["igGetShortcutRoutingData"]["(ImGuiKeyChord)"] = defs["igGetShortcutRoutingData"][1] defs["igGetStateStorage"] = {} defs["igGetStateStorage"][1] = {} defs["igGetStateStorage"][1]["args"] = "()" @@ -16944,7 +17727,7 @@ defs["igGetStateStorage"][1]["call_args"] = "()" defs["igGetStateStorage"][1]["cimguiname"] = "igGetStateStorage" defs["igGetStateStorage"][1]["defaults"] = {} defs["igGetStateStorage"][1]["funcname"] = "GetStateStorage" -defs["igGetStateStorage"][1]["location"] = "imgui:904" +defs["igGetStateStorage"][1]["location"] = "imgui:903" defs["igGetStateStorage"][1]["namespace"] = "ImGui" defs["igGetStateStorage"][1]["ov_cimguiname"] = "igGetStateStorage" defs["igGetStateStorage"][1]["ret"] = "ImGuiStorage*" @@ -16960,7 +17743,7 @@ defs["igGetStyle"][1]["call_args"] = "()" defs["igGetStyle"][1]["cimguiname"] = "igGetStyle" defs["igGetStyle"][1]["defaults"] = {} defs["igGetStyle"][1]["funcname"] = "GetStyle" -defs["igGetStyle"][1]["location"] = "imgui:308" +defs["igGetStyle"][1]["location"] = "imgui:301" defs["igGetStyle"][1]["namespace"] = "ImGui" defs["igGetStyle"][1]["ov_cimguiname"] = "igGetStyle" defs["igGetStyle"][1]["ret"] = "ImGuiStyle*" @@ -16980,7 +17763,7 @@ defs["igGetStyleColorName"][1]["call_args"] = "(idx)" defs["igGetStyleColorName"][1]["cimguiname"] = "igGetStyleColorName" defs["igGetStyleColorName"][1]["defaults"] = {} defs["igGetStyleColorName"][1]["funcname"] = "GetStyleColorName" -defs["igGetStyleColorName"][1]["location"] = "imgui:902" +defs["igGetStyleColorName"][1]["location"] = "imgui:901" defs["igGetStyleColorName"][1]["namespace"] = "ImGui" defs["igGetStyleColorName"][1]["ov_cimguiname"] = "igGetStyleColorName" defs["igGetStyleColorName"][1]["ret"] = "const char*" @@ -16999,7 +17782,7 @@ defs["igGetStyleColorVec4"][1]["call_args"] = "(idx)" defs["igGetStyleColorVec4"][1]["cimguiname"] = "igGetStyleColorVec4" defs["igGetStyleColorVec4"][1]["defaults"] = {} defs["igGetStyleColorVec4"][1]["funcname"] = "GetStyleColorVec4" -defs["igGetStyleColorVec4"][1]["location"] = "imgui:441" +defs["igGetStyleColorVec4"][1]["location"] = "imgui:438" defs["igGetStyleColorVec4"][1]["namespace"] = "ImGui" defs["igGetStyleColorVec4"][1]["ov_cimguiname"] = "igGetStyleColorVec4" defs["igGetStyleColorVec4"][1]["ret"] = "const ImVec4*" @@ -17016,7 +17799,7 @@ defs["igGetTextLineHeight"][1]["call_args"] = "()" defs["igGetTextLineHeight"][1]["cimguiname"] = "igGetTextLineHeight" defs["igGetTextLineHeight"][1]["defaults"] = {} defs["igGetTextLineHeight"][1]["funcname"] = "GetTextLineHeight" -defs["igGetTextLineHeight"][1]["location"] = "imgui:469" +defs["igGetTextLineHeight"][1]["location"] = "imgui:466" defs["igGetTextLineHeight"][1]["namespace"] = "ImGui" defs["igGetTextLineHeight"][1]["ov_cimguiname"] = "igGetTextLineHeight" defs["igGetTextLineHeight"][1]["ret"] = "float" @@ -17032,7 +17815,7 @@ defs["igGetTextLineHeightWithSpacing"][1]["call_args"] = "()" defs["igGetTextLineHeightWithSpacing"][1]["cimguiname"] = "igGetTextLineHeightWithSpacing" defs["igGetTextLineHeightWithSpacing"][1]["defaults"] = {} defs["igGetTextLineHeightWithSpacing"][1]["funcname"] = "GetTextLineHeightWithSpacing" -defs["igGetTextLineHeightWithSpacing"][1]["location"] = "imgui:470" +defs["igGetTextLineHeightWithSpacing"][1]["location"] = "imgui:467" defs["igGetTextLineHeightWithSpacing"][1]["namespace"] = "ImGui" defs["igGetTextLineHeightWithSpacing"][1]["ov_cimguiname"] = "igGetTextLineHeightWithSpacing" defs["igGetTextLineHeightWithSpacing"][1]["ret"] = "float" @@ -17048,7 +17831,7 @@ defs["igGetTime"][1]["call_args"] = "()" defs["igGetTime"][1]["cimguiname"] = "igGetTime" defs["igGetTime"][1]["defaults"] = {} defs["igGetTime"][1]["funcname"] = "GetTime" -defs["igGetTime"][1]["location"] = "imgui:895" +defs["igGetTime"][1]["location"] = "imgui:898" defs["igGetTime"][1]["namespace"] = "ImGui" defs["igGetTime"][1]["ov_cimguiname"] = "igGetTime" defs["igGetTime"][1]["ret"] = "double" @@ -17064,7 +17847,7 @@ defs["igGetTopMostAndVisiblePopupModal"][1]["call_args"] = "()" defs["igGetTopMostAndVisiblePopupModal"][1]["cimguiname"] = "igGetTopMostAndVisiblePopupModal" defs["igGetTopMostAndVisiblePopupModal"][1]["defaults"] = {} defs["igGetTopMostAndVisiblePopupModal"][1]["funcname"] = "GetTopMostAndVisiblePopupModal" -defs["igGetTopMostAndVisiblePopupModal"][1]["location"] = "imgui_internal:2785" +defs["igGetTopMostAndVisiblePopupModal"][1]["location"] = "imgui_internal:3070" defs["igGetTopMostAndVisiblePopupModal"][1]["namespace"] = "ImGui" defs["igGetTopMostAndVisiblePopupModal"][1]["ov_cimguiname"] = "igGetTopMostAndVisiblePopupModal" defs["igGetTopMostAndVisiblePopupModal"][1]["ret"] = "ImGuiWindow*" @@ -17080,7 +17863,7 @@ defs["igGetTopMostPopupModal"][1]["call_args"] = "()" defs["igGetTopMostPopupModal"][1]["cimguiname"] = "igGetTopMostPopupModal" defs["igGetTopMostPopupModal"][1]["defaults"] = {} defs["igGetTopMostPopupModal"][1]["funcname"] = "GetTopMostPopupModal" -defs["igGetTopMostPopupModal"][1]["location"] = "imgui_internal:2784" +defs["igGetTopMostPopupModal"][1]["location"] = "imgui_internal:3069" defs["igGetTopMostPopupModal"][1]["namespace"] = "ImGui" defs["igGetTopMostPopupModal"][1]["ov_cimguiname"] = "igGetTopMostPopupModal" defs["igGetTopMostPopupModal"][1]["ret"] = "ImGuiWindow*" @@ -17096,13 +17879,38 @@ defs["igGetTreeNodeToLabelSpacing"][1]["call_args"] = "()" defs["igGetTreeNodeToLabelSpacing"][1]["cimguiname"] = "igGetTreeNodeToLabelSpacing" defs["igGetTreeNodeToLabelSpacing"][1]["defaults"] = {} defs["igGetTreeNodeToLabelSpacing"][1]["funcname"] = "GetTreeNodeToLabelSpacing" -defs["igGetTreeNodeToLabelSpacing"][1]["location"] = "imgui:623" +defs["igGetTreeNodeToLabelSpacing"][1]["location"] = "imgui:624" defs["igGetTreeNodeToLabelSpacing"][1]["namespace"] = "ImGui" defs["igGetTreeNodeToLabelSpacing"][1]["ov_cimguiname"] = "igGetTreeNodeToLabelSpacing" defs["igGetTreeNodeToLabelSpacing"][1]["ret"] = "float" defs["igGetTreeNodeToLabelSpacing"][1]["signature"] = "()" defs["igGetTreeNodeToLabelSpacing"][1]["stname"] = "" defs["igGetTreeNodeToLabelSpacing"]["()"] = defs["igGetTreeNodeToLabelSpacing"][1] +defs["igGetTypematicRepeatRate"] = {} +defs["igGetTypematicRepeatRate"][1] = {} +defs["igGetTypematicRepeatRate"][1]["args"] = "(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate)" +defs["igGetTypematicRepeatRate"][1]["argsT"] = {} +defs["igGetTypematicRepeatRate"][1]["argsT"][1] = {} +defs["igGetTypematicRepeatRate"][1]["argsT"][1]["name"] = "flags" +defs["igGetTypematicRepeatRate"][1]["argsT"][1]["type"] = "ImGuiInputFlags" +defs["igGetTypematicRepeatRate"][1]["argsT"][2] = {} +defs["igGetTypematicRepeatRate"][1]["argsT"][2]["name"] = "repeat_delay" +defs["igGetTypematicRepeatRate"][1]["argsT"][2]["type"] = "float*" +defs["igGetTypematicRepeatRate"][1]["argsT"][3] = {} +defs["igGetTypematicRepeatRate"][1]["argsT"][3]["name"] = "repeat_rate" +defs["igGetTypematicRepeatRate"][1]["argsT"][3]["type"] = "float*" +defs["igGetTypematicRepeatRate"][1]["argsoriginal"] = "(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate)" +defs["igGetTypematicRepeatRate"][1]["call_args"] = "(flags,repeat_delay,repeat_rate)" +defs["igGetTypematicRepeatRate"][1]["cimguiname"] = "igGetTypematicRepeatRate" +defs["igGetTypematicRepeatRate"][1]["defaults"] = {} +defs["igGetTypematicRepeatRate"][1]["funcname"] = "GetTypematicRepeatRate" +defs["igGetTypematicRepeatRate"][1]["location"] = "imgui_internal:3123" +defs["igGetTypematicRepeatRate"][1]["namespace"] = "ImGui" +defs["igGetTypematicRepeatRate"][1]["ov_cimguiname"] = "igGetTypematicRepeatRate" +defs["igGetTypematicRepeatRate"][1]["ret"] = "void" +defs["igGetTypematicRepeatRate"][1]["signature"] = "(ImGuiInputFlags,float*,float*)" +defs["igGetTypematicRepeatRate"][1]["stname"] = "" +defs["igGetTypematicRepeatRate"]["(ImGuiInputFlags,float*,float*)"] = defs["igGetTypematicRepeatRate"][1] defs["igGetVersion"] = {} defs["igGetVersion"][1] = {} defs["igGetVersion"][1]["args"] = "()" @@ -17112,7 +17920,7 @@ defs["igGetVersion"][1]["call_args"] = "()" defs["igGetVersion"][1]["cimguiname"] = "igGetVersion" defs["igGetVersion"][1]["defaults"] = {} defs["igGetVersion"][1]["funcname"] = "GetVersion" -defs["igGetVersion"][1]["location"] = "imgui:323" +defs["igGetVersion"][1]["location"] = "imgui:317" defs["igGetVersion"][1]["namespace"] = "ImGui" defs["igGetVersion"][1]["ov_cimguiname"] = "igGetVersion" defs["igGetVersion"][1]["ret"] = "const char*" @@ -17131,7 +17939,7 @@ defs["igGetViewportPlatformMonitor"][1]["call_args"] = "(viewport)" defs["igGetViewportPlatformMonitor"][1]["cimguiname"] = "igGetViewportPlatformMonitor" defs["igGetViewportPlatformMonitor"][1]["defaults"] = {} defs["igGetViewportPlatformMonitor"][1]["funcname"] = "GetViewportPlatformMonitor" -defs["igGetViewportPlatformMonitor"][1]["location"] = "imgui_internal:2697" +defs["igGetViewportPlatformMonitor"][1]["location"] = "imgui_internal:2987" defs["igGetViewportPlatformMonitor"][1]["namespace"] = "ImGui" defs["igGetViewportPlatformMonitor"][1]["ov_cimguiname"] = "igGetViewportPlatformMonitor" defs["igGetViewportPlatformMonitor"][1]["ret"] = "const ImGuiPlatformMonitor*" @@ -17150,7 +17958,7 @@ defs["igGetWindowAlwaysWantOwnTabBar"][1]["call_args"] = "(window)" defs["igGetWindowAlwaysWantOwnTabBar"][1]["cimguiname"] = "igGetWindowAlwaysWantOwnTabBar" defs["igGetWindowAlwaysWantOwnTabBar"][1]["defaults"] = {} defs["igGetWindowAlwaysWantOwnTabBar"][1]["funcname"] = "GetWindowAlwaysWantOwnTabBar" -defs["igGetWindowAlwaysWantOwnTabBar"][1]["location"] = "imgui_internal:2857" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["location"] = "imgui_internal:3194" defs["igGetWindowAlwaysWantOwnTabBar"][1]["namespace"] = "ImGui" defs["igGetWindowAlwaysWantOwnTabBar"][1]["ov_cimguiname"] = "igGetWindowAlwaysWantOwnTabBar" defs["igGetWindowAlwaysWantOwnTabBar"][1]["ret"] = "bool" @@ -17169,7 +17977,7 @@ defs["igGetWindowContentRegionMax"][1]["call_args"] = "()" defs["igGetWindowContentRegionMax"][1]["cimguiname"] = "igGetWindowContentRegionMax" defs["igGetWindowContentRegionMax"][1]["defaults"] = {} defs["igGetWindowContentRegionMax"][1]["funcname"] = "GetWindowContentRegionMax" -defs["igGetWindowContentRegionMax"][1]["location"] = "imgui:397" +defs["igGetWindowContentRegionMax"][1]["location"] = "imgui:392" defs["igGetWindowContentRegionMax"][1]["namespace"] = "ImGui" defs["igGetWindowContentRegionMax"][1]["nonUDT"] = 1 defs["igGetWindowContentRegionMax"][1]["ov_cimguiname"] = "igGetWindowContentRegionMax" @@ -17189,7 +17997,7 @@ defs["igGetWindowContentRegionMin"][1]["call_args"] = "()" defs["igGetWindowContentRegionMin"][1]["cimguiname"] = "igGetWindowContentRegionMin" defs["igGetWindowContentRegionMin"][1]["defaults"] = {} defs["igGetWindowContentRegionMin"][1]["funcname"] = "GetWindowContentRegionMin" -defs["igGetWindowContentRegionMin"][1]["location"] = "imgui:396" +defs["igGetWindowContentRegionMin"][1]["location"] = "imgui:391" defs["igGetWindowContentRegionMin"][1]["namespace"] = "ImGui" defs["igGetWindowContentRegionMin"][1]["nonUDT"] = 1 defs["igGetWindowContentRegionMin"][1]["ov_cimguiname"] = "igGetWindowContentRegionMin" @@ -17206,7 +18014,7 @@ defs["igGetWindowDockID"][1]["call_args"] = "()" defs["igGetWindowDockID"][1]["cimguiname"] = "igGetWindowDockID" defs["igGetWindowDockID"][1]["defaults"] = {} defs["igGetWindowDockID"][1]["funcname"] = "GetWindowDockID" -defs["igGetWindowDockID"][1]["location"] = "imgui:822" +defs["igGetWindowDockID"][1]["location"] = "imgui:819" defs["igGetWindowDockID"][1]["namespace"] = "ImGui" defs["igGetWindowDockID"][1]["ov_cimguiname"] = "igGetWindowDockID" defs["igGetWindowDockID"][1]["ret"] = "ImGuiID" @@ -17222,7 +18030,7 @@ defs["igGetWindowDockNode"][1]["call_args"] = "()" defs["igGetWindowDockNode"][1]["cimguiname"] = "igGetWindowDockNode" defs["igGetWindowDockNode"][1]["defaults"] = {} defs["igGetWindowDockNode"][1]["funcname"] = "GetWindowDockNode" -defs["igGetWindowDockNode"][1]["location"] = "imgui_internal:2856" +defs["igGetWindowDockNode"][1]["location"] = "imgui_internal:3193" defs["igGetWindowDockNode"][1]["namespace"] = "ImGui" defs["igGetWindowDockNode"][1]["ov_cimguiname"] = "igGetWindowDockNode" defs["igGetWindowDockNode"][1]["ret"] = "ImGuiDockNode*" @@ -17238,7 +18046,7 @@ defs["igGetWindowDpiScale"][1]["call_args"] = "()" defs["igGetWindowDpiScale"][1]["cimguiname"] = "igGetWindowDpiScale" defs["igGetWindowDpiScale"][1]["defaults"] = {} defs["igGetWindowDpiScale"][1]["funcname"] = "GetWindowDpiScale" -defs["igGetWindowDpiScale"][1]["location"] = "imgui:364" +defs["igGetWindowDpiScale"][1]["location"] = "imgui:358" defs["igGetWindowDpiScale"][1]["namespace"] = "ImGui" defs["igGetWindowDpiScale"][1]["ov_cimguiname"] = "igGetWindowDpiScale" defs["igGetWindowDpiScale"][1]["ret"] = "float" @@ -17254,7 +18062,7 @@ defs["igGetWindowDrawList"][1]["call_args"] = "()" defs["igGetWindowDrawList"][1]["cimguiname"] = "igGetWindowDrawList" defs["igGetWindowDrawList"][1]["defaults"] = {} defs["igGetWindowDrawList"][1]["funcname"] = "GetWindowDrawList" -defs["igGetWindowDrawList"][1]["location"] = "imgui:363" +defs["igGetWindowDrawList"][1]["location"] = "imgui:357" defs["igGetWindowDrawList"][1]["namespace"] = "ImGui" defs["igGetWindowDrawList"][1]["ov_cimguiname"] = "igGetWindowDrawList" defs["igGetWindowDrawList"][1]["ret"] = "ImDrawList*" @@ -17270,7 +18078,7 @@ defs["igGetWindowHeight"][1]["call_args"] = "()" defs["igGetWindowHeight"][1]["cimguiname"] = "igGetWindowHeight" defs["igGetWindowHeight"][1]["defaults"] = {} defs["igGetWindowHeight"][1]["funcname"] = "GetWindowHeight" -defs["igGetWindowHeight"][1]["location"] = "imgui:368" +defs["igGetWindowHeight"][1]["location"] = "imgui:362" defs["igGetWindowHeight"][1]["namespace"] = "ImGui" defs["igGetWindowHeight"][1]["ov_cimguiname"] = "igGetWindowHeight" defs["igGetWindowHeight"][1]["ret"] = "float" @@ -17289,7 +18097,7 @@ defs["igGetWindowPos"][1]["call_args"] = "()" defs["igGetWindowPos"][1]["cimguiname"] = "igGetWindowPos" defs["igGetWindowPos"][1]["defaults"] = {} defs["igGetWindowPos"][1]["funcname"] = "GetWindowPos" -defs["igGetWindowPos"][1]["location"] = "imgui:365" +defs["igGetWindowPos"][1]["location"] = "imgui:359" defs["igGetWindowPos"][1]["namespace"] = "ImGui" defs["igGetWindowPos"][1]["nonUDT"] = 1 defs["igGetWindowPos"][1]["ov_cimguiname"] = "igGetWindowPos" @@ -17312,7 +18120,7 @@ defs["igGetWindowResizeBorderID"][1]["call_args"] = "(window,dir)" defs["igGetWindowResizeBorderID"][1]["cimguiname"] = "igGetWindowResizeBorderID" defs["igGetWindowResizeBorderID"][1]["defaults"] = {} defs["igGetWindowResizeBorderID"][1]["funcname"] = "GetWindowResizeBorderID" -defs["igGetWindowResizeBorderID"][1]["location"] = "imgui_internal:3013" +defs["igGetWindowResizeBorderID"][1]["location"] = "imgui_internal:3361" defs["igGetWindowResizeBorderID"][1]["namespace"] = "ImGui" defs["igGetWindowResizeBorderID"][1]["ov_cimguiname"] = "igGetWindowResizeBorderID" defs["igGetWindowResizeBorderID"][1]["ret"] = "ImGuiID" @@ -17334,7 +18142,7 @@ defs["igGetWindowResizeCornerID"][1]["call_args"] = "(window,n)" defs["igGetWindowResizeCornerID"][1]["cimguiname"] = "igGetWindowResizeCornerID" defs["igGetWindowResizeCornerID"][1]["defaults"] = {} defs["igGetWindowResizeCornerID"][1]["funcname"] = "GetWindowResizeCornerID" -defs["igGetWindowResizeCornerID"][1]["location"] = "imgui_internal:3012" +defs["igGetWindowResizeCornerID"][1]["location"] = "imgui_internal:3360" defs["igGetWindowResizeCornerID"][1]["namespace"] = "ImGui" defs["igGetWindowResizeCornerID"][1]["ov_cimguiname"] = "igGetWindowResizeCornerID" defs["igGetWindowResizeCornerID"][1]["ret"] = "ImGuiID" @@ -17356,7 +18164,7 @@ defs["igGetWindowScrollbarID"][1]["call_args"] = "(window,axis)" defs["igGetWindowScrollbarID"][1]["cimguiname"] = "igGetWindowScrollbarID" defs["igGetWindowScrollbarID"][1]["defaults"] = {} defs["igGetWindowScrollbarID"][1]["funcname"] = "GetWindowScrollbarID" -defs["igGetWindowScrollbarID"][1]["location"] = "imgui_internal:3011" +defs["igGetWindowScrollbarID"][1]["location"] = "imgui_internal:3359" defs["igGetWindowScrollbarID"][1]["namespace"] = "ImGui" defs["igGetWindowScrollbarID"][1]["ov_cimguiname"] = "igGetWindowScrollbarID" defs["igGetWindowScrollbarID"][1]["ret"] = "ImGuiID" @@ -17381,7 +18189,7 @@ defs["igGetWindowScrollbarRect"][1]["call_args"] = "(window,axis)" defs["igGetWindowScrollbarRect"][1]["cimguiname"] = "igGetWindowScrollbarRect" defs["igGetWindowScrollbarRect"][1]["defaults"] = {} defs["igGetWindowScrollbarRect"][1]["funcname"] = "GetWindowScrollbarRect" -defs["igGetWindowScrollbarRect"][1]["location"] = "imgui_internal:3010" +defs["igGetWindowScrollbarRect"][1]["location"] = "imgui_internal:3358" defs["igGetWindowScrollbarRect"][1]["namespace"] = "ImGui" defs["igGetWindowScrollbarRect"][1]["nonUDT"] = 1 defs["igGetWindowScrollbarRect"][1]["ov_cimguiname"] = "igGetWindowScrollbarRect" @@ -17401,7 +18209,7 @@ defs["igGetWindowSize"][1]["call_args"] = "()" defs["igGetWindowSize"][1]["cimguiname"] = "igGetWindowSize" defs["igGetWindowSize"][1]["defaults"] = {} defs["igGetWindowSize"][1]["funcname"] = "GetWindowSize" -defs["igGetWindowSize"][1]["location"] = "imgui:366" +defs["igGetWindowSize"][1]["location"] = "imgui:360" defs["igGetWindowSize"][1]["namespace"] = "ImGui" defs["igGetWindowSize"][1]["nonUDT"] = 1 defs["igGetWindowSize"][1]["ov_cimguiname"] = "igGetWindowSize" @@ -17418,7 +18226,7 @@ defs["igGetWindowViewport"][1]["call_args"] = "()" defs["igGetWindowViewport"][1]["cimguiname"] = "igGetWindowViewport" defs["igGetWindowViewport"][1]["defaults"] = {} defs["igGetWindowViewport"][1]["funcname"] = "GetWindowViewport" -defs["igGetWindowViewport"][1]["location"] = "imgui:369" +defs["igGetWindowViewport"][1]["location"] = "imgui:363" defs["igGetWindowViewport"][1]["namespace"] = "ImGui" defs["igGetWindowViewport"][1]["ov_cimguiname"] = "igGetWindowViewport" defs["igGetWindowViewport"][1]["ret"] = "ImGuiViewport*" @@ -17434,7 +18242,7 @@ defs["igGetWindowWidth"][1]["call_args"] = "()" defs["igGetWindowWidth"][1]["cimguiname"] = "igGetWindowWidth" defs["igGetWindowWidth"][1]["defaults"] = {} defs["igGetWindowWidth"][1]["funcname"] = "GetWindowWidth" -defs["igGetWindowWidth"][1]["location"] = "imgui:367" +defs["igGetWindowWidth"][1]["location"] = "imgui:361" defs["igGetWindowWidth"][1]["namespace"] = "ImGui" defs["igGetWindowWidth"][1]["ov_cimguiname"] = "igGetWindowWidth" defs["igGetWindowWidth"][1]["ret"] = "float" @@ -17453,8 +18261,8 @@ defs["igImAbs"][1]["call_args"] = "(x)" defs["igImAbs"][1]["cimguiname"] = "igImAbs" defs["igImAbs"][1]["defaults"] = {} defs["igImAbs"][1]["funcname"] = "ImAbs" -defs["igImAbs"][1]["location"] = "imgui_internal:423" -defs["igImAbs"][1]["ov_cimguiname"] = "igImAbsInt" +defs["igImAbs"][1]["location"] = "imgui_internal:444" +defs["igImAbs"][1]["ov_cimguiname"] = "igImAbs_Int" defs["igImAbs"][1]["ret"] = "int" defs["igImAbs"][1]["signature"] = "(int)" defs["igImAbs"][1]["stname"] = "" @@ -17469,8 +18277,8 @@ defs["igImAbs"][2]["call_args"] = "(x)" defs["igImAbs"][2]["cimguiname"] = "igImAbs" defs["igImAbs"][2]["defaults"] = {} defs["igImAbs"][2]["funcname"] = "ImAbs" -defs["igImAbs"][2]["location"] = "imgui_internal:424" -defs["igImAbs"][2]["ov_cimguiname"] = "igImAbsFloat" +defs["igImAbs"][2]["location"] = "imgui_internal:445" +defs["igImAbs"][2]["ov_cimguiname"] = "igImAbs_Float" defs["igImAbs"][2]["ret"] = "float" defs["igImAbs"][2]["signature"] = "(float)" defs["igImAbs"][2]["stname"] = "" @@ -17485,8 +18293,8 @@ defs["igImAbs"][3]["call_args"] = "(x)" defs["igImAbs"][3]["cimguiname"] = "igImAbs" defs["igImAbs"][3]["defaults"] = {} defs["igImAbs"][3]["funcname"] = "ImAbs" -defs["igImAbs"][3]["location"] = "imgui_internal:425" -defs["igImAbs"][3]["ov_cimguiname"] = "igImAbsdouble" +defs["igImAbs"][3]["location"] = "imgui_internal:446" +defs["igImAbs"][3]["ov_cimguiname"] = "igImAbs_double" defs["igImAbs"][3]["ret"] = "double" defs["igImAbs"][3]["signature"] = "(double)" defs["igImAbs"][3]["stname"] = "" @@ -17508,7 +18316,7 @@ defs["igImAlphaBlendColors"][1]["call_args"] = "(col_a,col_b)" defs["igImAlphaBlendColors"][1]["cimguiname"] = "igImAlphaBlendColors" defs["igImAlphaBlendColors"][1]["defaults"] = {} defs["igImAlphaBlendColors"][1]["funcname"] = "ImAlphaBlendColors" -defs["igImAlphaBlendColors"][1]["location"] = "imgui_internal:322" +defs["igImAlphaBlendColors"][1]["location"] = "imgui_internal:334" defs["igImAlphaBlendColors"][1]["ov_cimguiname"] = "igImAlphaBlendColors" defs["igImAlphaBlendColors"][1]["ret"] = "ImU32" defs["igImAlphaBlendColors"][1]["signature"] = "(ImU32,ImU32)" @@ -17541,7 +18349,7 @@ defs["igImBezierCubicCalc"][1]["call_args"] = "(p1,p2,p3,p4,t)" defs["igImBezierCubicCalc"][1]["cimguiname"] = "igImBezierCubicCalc" defs["igImBezierCubicCalc"][1]["defaults"] = {} defs["igImBezierCubicCalc"][1]["funcname"] = "ImBezierCubicCalc" -defs["igImBezierCubicCalc"][1]["location"] = "imgui_internal:467" +defs["igImBezierCubicCalc"][1]["location"] = "imgui_internal:489" defs["igImBezierCubicCalc"][1]["nonUDT"] = 1 defs["igImBezierCubicCalc"][1]["ov_cimguiname"] = "igImBezierCubicCalc" defs["igImBezierCubicCalc"][1]["ret"] = "void" @@ -17578,7 +18386,7 @@ defs["igImBezierCubicClosestPoint"][1]["call_args"] = "(p1,p2,p3,p4,p,num_segmen defs["igImBezierCubicClosestPoint"][1]["cimguiname"] = "igImBezierCubicClosestPoint" defs["igImBezierCubicClosestPoint"][1]["defaults"] = {} defs["igImBezierCubicClosestPoint"][1]["funcname"] = "ImBezierCubicClosestPoint" -defs["igImBezierCubicClosestPoint"][1]["location"] = "imgui_internal:468" +defs["igImBezierCubicClosestPoint"][1]["location"] = "imgui_internal:490" defs["igImBezierCubicClosestPoint"][1]["nonUDT"] = 1 defs["igImBezierCubicClosestPoint"][1]["ov_cimguiname"] = "igImBezierCubicClosestPoint" defs["igImBezierCubicClosestPoint"][1]["ret"] = "void" @@ -17615,7 +18423,7 @@ defs["igImBezierCubicClosestPointCasteljau"][1]["call_args"] = "(p1,p2,p3,p4,p,t defs["igImBezierCubicClosestPointCasteljau"][1]["cimguiname"] = "igImBezierCubicClosestPointCasteljau" defs["igImBezierCubicClosestPointCasteljau"][1]["defaults"] = {} defs["igImBezierCubicClosestPointCasteljau"][1]["funcname"] = "ImBezierCubicClosestPointCasteljau" -defs["igImBezierCubicClosestPointCasteljau"][1]["location"] = "imgui_internal:469" +defs["igImBezierCubicClosestPointCasteljau"][1]["location"] = "imgui_internal:491" defs["igImBezierCubicClosestPointCasteljau"][1]["nonUDT"] = 1 defs["igImBezierCubicClosestPointCasteljau"][1]["ov_cimguiname"] = "igImBezierCubicClosestPointCasteljau" defs["igImBezierCubicClosestPointCasteljau"][1]["ret"] = "void" @@ -17646,7 +18454,7 @@ defs["igImBezierQuadraticCalc"][1]["call_args"] = "(p1,p2,p3,t)" defs["igImBezierQuadraticCalc"][1]["cimguiname"] = "igImBezierQuadraticCalc" defs["igImBezierQuadraticCalc"][1]["defaults"] = {} defs["igImBezierQuadraticCalc"][1]["funcname"] = "ImBezierQuadraticCalc" -defs["igImBezierQuadraticCalc"][1]["location"] = "imgui_internal:470" +defs["igImBezierQuadraticCalc"][1]["location"] = "imgui_internal:492" defs["igImBezierQuadraticCalc"][1]["nonUDT"] = 1 defs["igImBezierQuadraticCalc"][1]["ov_cimguiname"] = "igImBezierQuadraticCalc" defs["igImBezierQuadraticCalc"][1]["ret"] = "void" @@ -17668,7 +18476,7 @@ defs["igImBitArrayClearBit"][1]["call_args"] = "(arr,n)" defs["igImBitArrayClearBit"][1]["cimguiname"] = "igImBitArrayClearBit" defs["igImBitArrayClearBit"][1]["defaults"] = {} defs["igImBitArrayClearBit"][1]["funcname"] = "ImBitArrayClearBit" -defs["igImBitArrayClearBit"][1]["location"] = "imgui_internal:538" +defs["igImBitArrayClearBit"][1]["location"] = "imgui_internal:560" defs["igImBitArrayClearBit"][1]["ov_cimguiname"] = "igImBitArrayClearBit" defs["igImBitArrayClearBit"][1]["ret"] = "void" defs["igImBitArrayClearBit"][1]["signature"] = "(ImU32*,int)" @@ -17689,7 +18497,7 @@ defs["igImBitArraySetBit"][1]["call_args"] = "(arr,n)" defs["igImBitArraySetBit"][1]["cimguiname"] = "igImBitArraySetBit" defs["igImBitArraySetBit"][1]["defaults"] = {} defs["igImBitArraySetBit"][1]["funcname"] = "ImBitArraySetBit" -defs["igImBitArraySetBit"][1]["location"] = "imgui_internal:539" +defs["igImBitArraySetBit"][1]["location"] = "imgui_internal:561" defs["igImBitArraySetBit"][1]["ov_cimguiname"] = "igImBitArraySetBit" defs["igImBitArraySetBit"][1]["ret"] = "void" defs["igImBitArraySetBit"][1]["signature"] = "(ImU32*,int)" @@ -17713,7 +18521,7 @@ defs["igImBitArraySetBitRange"][1]["call_args"] = "(arr,n,n2)" defs["igImBitArraySetBitRange"][1]["cimguiname"] = "igImBitArraySetBitRange" defs["igImBitArraySetBitRange"][1]["defaults"] = {} defs["igImBitArraySetBitRange"][1]["funcname"] = "ImBitArraySetBitRange" -defs["igImBitArraySetBitRange"][1]["location"] = "imgui_internal:540" +defs["igImBitArraySetBitRange"][1]["location"] = "imgui_internal:562" defs["igImBitArraySetBitRange"][1]["ov_cimguiname"] = "igImBitArraySetBitRange" defs["igImBitArraySetBitRange"][1]["ret"] = "void" defs["igImBitArraySetBitRange"][1]["signature"] = "(ImU32*,int,int)" @@ -17734,7 +18542,7 @@ defs["igImBitArrayTestBit"][1]["call_args"] = "(arr,n)" defs["igImBitArrayTestBit"][1]["cimguiname"] = "igImBitArrayTestBit" defs["igImBitArrayTestBit"][1]["defaults"] = {} defs["igImBitArrayTestBit"][1]["funcname"] = "ImBitArrayTestBit" -defs["igImBitArrayTestBit"][1]["location"] = "imgui_internal:537" +defs["igImBitArrayTestBit"][1]["location"] = "imgui_internal:559" defs["igImBitArrayTestBit"][1]["ov_cimguiname"] = "igImBitArrayTestBit" defs["igImBitArrayTestBit"][1]["ret"] = "bool" defs["igImBitArrayTestBit"][1]["signature"] = "(const ImU32*,int)" @@ -17752,7 +18560,7 @@ defs["igImCharIsBlankA"][1]["call_args"] = "(c)" defs["igImCharIsBlankA"][1]["cimguiname"] = "igImCharIsBlankA" defs["igImCharIsBlankA"][1]["defaults"] = {} defs["igImCharIsBlankA"][1]["funcname"] = "ImCharIsBlankA" -defs["igImCharIsBlankA"][1]["location"] = "imgui_internal:348" +defs["igImCharIsBlankA"][1]["location"] = "imgui_internal:356" defs["igImCharIsBlankA"][1]["ov_cimguiname"] = "igImCharIsBlankA" defs["igImCharIsBlankA"][1]["ret"] = "bool" defs["igImCharIsBlankA"][1]["signature"] = "(char)" @@ -17770,7 +18578,7 @@ defs["igImCharIsBlankW"][1]["call_args"] = "(c)" defs["igImCharIsBlankW"][1]["cimguiname"] = "igImCharIsBlankW" defs["igImCharIsBlankW"][1]["defaults"] = {} defs["igImCharIsBlankW"][1]["funcname"] = "ImCharIsBlankW" -defs["igImCharIsBlankW"][1]["location"] = "imgui_internal:349" +defs["igImCharIsBlankW"][1]["location"] = "imgui_internal:357" defs["igImCharIsBlankW"][1]["ov_cimguiname"] = "igImCharIsBlankW" defs["igImCharIsBlankW"][1]["ret"] = "bool" defs["igImCharIsBlankW"][1]["signature"] = "(unsigned int)" @@ -17797,7 +18605,7 @@ defs["igImClamp"][1]["call_args"] = "(v,mn,mx)" defs["igImClamp"][1]["cimguiname"] = "igImClamp" defs["igImClamp"][1]["defaults"] = {} defs["igImClamp"][1]["funcname"] = "ImClamp" -defs["igImClamp"][1]["location"] = "imgui_internal:447" +defs["igImClamp"][1]["location"] = "imgui_internal:468" defs["igImClamp"][1]["nonUDT"] = 1 defs["igImClamp"][1]["ov_cimguiname"] = "igImClamp" defs["igImClamp"][1]["ret"] = "void" @@ -17819,7 +18627,7 @@ defs["igImDot"][1]["call_args"] = "(a,b)" defs["igImDot"][1]["cimguiname"] = "igImDot" defs["igImDot"][1]["defaults"] = {} defs["igImDot"][1]["funcname"] = "ImDot" -defs["igImDot"][1]["location"] = "imgui_internal:459" +defs["igImDot"][1]["location"] = "imgui_internal:481" defs["igImDot"][1]["ov_cimguiname"] = "igImDot" defs["igImDot"][1]["ret"] = "float" defs["igImDot"][1]["signature"] = "(const ImVec2,const ImVec2)" @@ -17837,7 +18645,7 @@ defs["igImFileClose"][1]["call_args"] = "(file)" defs["igImFileClose"][1]["cimguiname"] = "igImFileClose" defs["igImFileClose"][1]["defaults"] = {} defs["igImFileClose"][1]["funcname"] = "ImFileClose" -defs["igImFileClose"][1]["location"] = "imgui_internal:396" +defs["igImFileClose"][1]["location"] = "imgui_internal:417" defs["igImFileClose"][1]["ov_cimguiname"] = "igImFileClose" defs["igImFileClose"][1]["ret"] = "bool" defs["igImFileClose"][1]["signature"] = "(ImFileHandle)" @@ -17855,7 +18663,7 @@ defs["igImFileGetSize"][1]["call_args"] = "(file)" defs["igImFileGetSize"][1]["cimguiname"] = "igImFileGetSize" defs["igImFileGetSize"][1]["defaults"] = {} defs["igImFileGetSize"][1]["funcname"] = "ImFileGetSize" -defs["igImFileGetSize"][1]["location"] = "imgui_internal:397" +defs["igImFileGetSize"][1]["location"] = "imgui_internal:418" defs["igImFileGetSize"][1]["ov_cimguiname"] = "igImFileGetSize" defs["igImFileGetSize"][1]["ret"] = "ImU64" defs["igImFileGetSize"][1]["signature"] = "(ImFileHandle)" @@ -17884,7 +18692,7 @@ defs["igImFileLoadToMemory"][1]["defaults"] = {} defs["igImFileLoadToMemory"][1]["defaults"]["out_file_size"] = "NULL" defs["igImFileLoadToMemory"][1]["defaults"]["padding_bytes"] = "0" defs["igImFileLoadToMemory"][1]["funcname"] = "ImFileLoadToMemory" -defs["igImFileLoadToMemory"][1]["location"] = "imgui_internal:403" +defs["igImFileLoadToMemory"][1]["location"] = "imgui_internal:424" defs["igImFileLoadToMemory"][1]["ov_cimguiname"] = "igImFileLoadToMemory" defs["igImFileLoadToMemory"][1]["ret"] = "void*" defs["igImFileLoadToMemory"][1]["signature"] = "(const char*,const char*,size_t*,int)" @@ -17905,7 +18713,7 @@ defs["igImFileOpen"][1]["call_args"] = "(filename,mode)" defs["igImFileOpen"][1]["cimguiname"] = "igImFileOpen" defs["igImFileOpen"][1]["defaults"] = {} defs["igImFileOpen"][1]["funcname"] = "ImFileOpen" -defs["igImFileOpen"][1]["location"] = "imgui_internal:395" +defs["igImFileOpen"][1]["location"] = "imgui_internal:416" defs["igImFileOpen"][1]["ov_cimguiname"] = "igImFileOpen" defs["igImFileOpen"][1]["ret"] = "ImFileHandle" defs["igImFileOpen"][1]["signature"] = "(const char*,const char*)" @@ -17932,7 +18740,7 @@ defs["igImFileRead"][1]["call_args"] = "(data,size,count,file)" defs["igImFileRead"][1]["cimguiname"] = "igImFileRead" defs["igImFileRead"][1]["defaults"] = {} defs["igImFileRead"][1]["funcname"] = "ImFileRead" -defs["igImFileRead"][1]["location"] = "imgui_internal:398" +defs["igImFileRead"][1]["location"] = "imgui_internal:419" defs["igImFileRead"][1]["ov_cimguiname"] = "igImFileRead" defs["igImFileRead"][1]["ret"] = "ImU64" defs["igImFileRead"][1]["signature"] = "(void*,ImU64,ImU64,ImFileHandle)" @@ -17959,7 +18767,7 @@ defs["igImFileWrite"][1]["call_args"] = "(data,size,count,file)" defs["igImFileWrite"][1]["cimguiname"] = "igImFileWrite" defs["igImFileWrite"][1]["defaults"] = {} defs["igImFileWrite"][1]["funcname"] = "ImFileWrite" -defs["igImFileWrite"][1]["location"] = "imgui_internal:399" +defs["igImFileWrite"][1]["location"] = "imgui_internal:420" defs["igImFileWrite"][1]["ov_cimguiname"] = "igImFileWrite" defs["igImFileWrite"][1]["ret"] = "ImU64" defs["igImFileWrite"][1]["signature"] = "(const void*,ImU64,ImU64,ImFileHandle)" @@ -17977,8 +18785,8 @@ defs["igImFloor"][1]["call_args"] = "(f)" defs["igImFloor"][1]["cimguiname"] = "igImFloor" defs["igImFloor"][1]["defaults"] = {} defs["igImFloor"][1]["funcname"] = "ImFloor" -defs["igImFloor"][1]["location"] = "imgui_internal:455" -defs["igImFloor"][1]["ov_cimguiname"] = "igImFloorFloat" +defs["igImFloor"][1]["location"] = "imgui_internal:476" +defs["igImFloor"][1]["ov_cimguiname"] = "igImFloor_Float" defs["igImFloor"][1]["ret"] = "float" defs["igImFloor"][1]["signature"] = "(float)" defs["igImFloor"][1]["stname"] = "" @@ -17996,9 +18804,9 @@ defs["igImFloor"][2]["call_args"] = "(v)" defs["igImFloor"][2]["cimguiname"] = "igImFloor" defs["igImFloor"][2]["defaults"] = {} defs["igImFloor"][2]["funcname"] = "ImFloor" -defs["igImFloor"][2]["location"] = "imgui_internal:457" +defs["igImFloor"][2]["location"] = "imgui_internal:478" defs["igImFloor"][2]["nonUDT"] = 1 -defs["igImFloor"][2]["ov_cimguiname"] = "igImFloorVec2" +defs["igImFloor"][2]["ov_cimguiname"] = "igImFloor_Vec2" defs["igImFloor"][2]["ret"] = "void" defs["igImFloor"][2]["signature"] = "(const ImVec2)" defs["igImFloor"][2]["stname"] = "" @@ -18016,11 +18824,32 @@ defs["igImFloorSigned"][1]["call_args"] = "(f)" defs["igImFloorSigned"][1]["cimguiname"] = "igImFloorSigned" defs["igImFloorSigned"][1]["defaults"] = {} defs["igImFloorSigned"][1]["funcname"] = "ImFloorSigned" -defs["igImFloorSigned"][1]["location"] = "imgui_internal:456" -defs["igImFloorSigned"][1]["ov_cimguiname"] = "igImFloorSigned" +defs["igImFloorSigned"][1]["location"] = "imgui_internal:477" +defs["igImFloorSigned"][1]["ov_cimguiname"] = "igImFloorSigned_Float" defs["igImFloorSigned"][1]["ret"] = "float" defs["igImFloorSigned"][1]["signature"] = "(float)" defs["igImFloorSigned"][1]["stname"] = "" +defs["igImFloorSigned"][2] = {} +defs["igImFloorSigned"][2]["args"] = "(ImVec2 *pOut,const ImVec2 v)" +defs["igImFloorSigned"][2]["argsT"] = {} +defs["igImFloorSigned"][2]["argsT"][1] = {} +defs["igImFloorSigned"][2]["argsT"][1]["name"] = "pOut" +defs["igImFloorSigned"][2]["argsT"][1]["type"] = "ImVec2*" +defs["igImFloorSigned"][2]["argsT"][2] = {} +defs["igImFloorSigned"][2]["argsT"][2]["name"] = "v" +defs["igImFloorSigned"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igImFloorSigned"][2]["argsoriginal"] = "(const ImVec2& v)" +defs["igImFloorSigned"][2]["call_args"] = "(v)" +defs["igImFloorSigned"][2]["cimguiname"] = "igImFloorSigned" +defs["igImFloorSigned"][2]["defaults"] = {} +defs["igImFloorSigned"][2]["funcname"] = "ImFloorSigned" +defs["igImFloorSigned"][2]["location"] = "imgui_internal:479" +defs["igImFloorSigned"][2]["nonUDT"] = 1 +defs["igImFloorSigned"][2]["ov_cimguiname"] = "igImFloorSigned_Vec2" +defs["igImFloorSigned"][2]["ret"] = "void" +defs["igImFloorSigned"][2]["signature"] = "(const ImVec2)" +defs["igImFloorSigned"][2]["stname"] = "" +defs["igImFloorSigned"]["(const ImVec2)"] = defs["igImFloorSigned"][2] defs["igImFloorSigned"]["(float)"] = defs["igImFloorSigned"][1] defs["igImFontAtlasBuildFinish"] = {} defs["igImFontAtlasBuildFinish"][1] = {} @@ -18034,7 +18863,7 @@ defs["igImFontAtlasBuildFinish"][1]["call_args"] = "(atlas)" defs["igImFontAtlasBuildFinish"][1]["cimguiname"] = "igImFontAtlasBuildFinish" defs["igImFontAtlasBuildFinish"][1]["defaults"] = {} defs["igImFontAtlasBuildFinish"][1]["funcname"] = "ImFontAtlasBuildFinish" -defs["igImFontAtlasBuildFinish"][1]["location"] = "imgui_internal:3111" +defs["igImFontAtlasBuildFinish"][1]["location"] = "imgui_internal:3488" defs["igImFontAtlasBuildFinish"][1]["ov_cimguiname"] = "igImFontAtlasBuildFinish" defs["igImFontAtlasBuildFinish"][1]["ret"] = "void" defs["igImFontAtlasBuildFinish"][1]["signature"] = "(ImFontAtlas*)" @@ -18052,7 +18881,7 @@ defs["igImFontAtlasBuildInit"][1]["call_args"] = "(atlas)" defs["igImFontAtlasBuildInit"][1]["cimguiname"] = "igImFontAtlasBuildInit" defs["igImFontAtlasBuildInit"][1]["defaults"] = {} defs["igImFontAtlasBuildInit"][1]["funcname"] = "ImFontAtlasBuildInit" -defs["igImFontAtlasBuildInit"][1]["location"] = "imgui_internal:3108" +defs["igImFontAtlasBuildInit"][1]["location"] = "imgui_internal:3485" defs["igImFontAtlasBuildInit"][1]["ov_cimguiname"] = "igImFontAtlasBuildInit" defs["igImFontAtlasBuildInit"][1]["ret"] = "void" defs["igImFontAtlasBuildInit"][1]["signature"] = "(ImFontAtlas*)" @@ -18073,7 +18902,7 @@ defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["call_args"] = "(out_table, defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["cimguiname"] = "igImFontAtlasBuildMultiplyCalcLookupTable" defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["defaults"] = {} defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["funcname"] = "ImFontAtlasBuildMultiplyCalcLookupTable" -defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["location"] = "imgui_internal:3114" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["location"] = "imgui_internal:3491" defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["ov_cimguiname"] = "igImFontAtlasBuildMultiplyCalcLookupTable" defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["ret"] = "void" defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["signature"] = "(unsigned char[256],float)" @@ -18109,7 +18938,7 @@ defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["call_args"] = "(table,pixels,x, defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["cimguiname"] = "igImFontAtlasBuildMultiplyRectAlpha8" defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["defaults"] = {} defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["funcname"] = "ImFontAtlasBuildMultiplyRectAlpha8" -defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["location"] = "imgui_internal:3115" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["location"] = "imgui_internal:3492" defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["ov_cimguiname"] = "igImFontAtlasBuildMultiplyRectAlpha8" defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["ret"] = "void" defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["signature"] = "(const unsigned char[256],unsigned char*,int,int,int,int,int)" @@ -18130,7 +18959,7 @@ defs["igImFontAtlasBuildPackCustomRects"][1]["call_args"] = "(atlas,stbrp_contex defs["igImFontAtlasBuildPackCustomRects"][1]["cimguiname"] = "igImFontAtlasBuildPackCustomRects" defs["igImFontAtlasBuildPackCustomRects"][1]["defaults"] = {} defs["igImFontAtlasBuildPackCustomRects"][1]["funcname"] = "ImFontAtlasBuildPackCustomRects" -defs["igImFontAtlasBuildPackCustomRects"][1]["location"] = "imgui_internal:3110" +defs["igImFontAtlasBuildPackCustomRects"][1]["location"] = "imgui_internal:3487" defs["igImFontAtlasBuildPackCustomRects"][1]["ov_cimguiname"] = "igImFontAtlasBuildPackCustomRects" defs["igImFontAtlasBuildPackCustomRects"][1]["ret"] = "void" defs["igImFontAtlasBuildPackCustomRects"][1]["signature"] = "(ImFontAtlas*,void*)" @@ -18169,7 +18998,7 @@ defs["igImFontAtlasBuildRender32bppRectFromString"][1]["call_args"] = "(atlas,x, defs["igImFontAtlasBuildRender32bppRectFromString"][1]["cimguiname"] = "igImFontAtlasBuildRender32bppRectFromString" defs["igImFontAtlasBuildRender32bppRectFromString"][1]["defaults"] = {} defs["igImFontAtlasBuildRender32bppRectFromString"][1]["funcname"] = "ImFontAtlasBuildRender32bppRectFromString" -defs["igImFontAtlasBuildRender32bppRectFromString"][1]["location"] = "imgui_internal:3113" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["location"] = "imgui_internal:3490" defs["igImFontAtlasBuildRender32bppRectFromString"][1]["ov_cimguiname"] = "igImFontAtlasBuildRender32bppRectFromString" defs["igImFontAtlasBuildRender32bppRectFromString"][1]["ret"] = "void" defs["igImFontAtlasBuildRender32bppRectFromString"][1]["signature"] = "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned int)" @@ -18208,7 +19037,7 @@ defs["igImFontAtlasBuildRender8bppRectFromString"][1]["call_args"] = "(atlas,x,y defs["igImFontAtlasBuildRender8bppRectFromString"][1]["cimguiname"] = "igImFontAtlasBuildRender8bppRectFromString" defs["igImFontAtlasBuildRender8bppRectFromString"][1]["defaults"] = {} defs["igImFontAtlasBuildRender8bppRectFromString"][1]["funcname"] = "ImFontAtlasBuildRender8bppRectFromString" -defs["igImFontAtlasBuildRender8bppRectFromString"][1]["location"] = "imgui_internal:3112" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["location"] = "imgui_internal:3489" defs["igImFontAtlasBuildRender8bppRectFromString"][1]["ov_cimguiname"] = "igImFontAtlasBuildRender8bppRectFromString" defs["igImFontAtlasBuildRender8bppRectFromString"][1]["ret"] = "void" defs["igImFontAtlasBuildRender8bppRectFromString"][1]["signature"] = "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned char)" @@ -18238,7 +19067,7 @@ defs["igImFontAtlasBuildSetupFont"][1]["call_args"] = "(atlas,font,font_config,a defs["igImFontAtlasBuildSetupFont"][1]["cimguiname"] = "igImFontAtlasBuildSetupFont" defs["igImFontAtlasBuildSetupFont"][1]["defaults"] = {} defs["igImFontAtlasBuildSetupFont"][1]["funcname"] = "ImFontAtlasBuildSetupFont" -defs["igImFontAtlasBuildSetupFont"][1]["location"] = "imgui_internal:3109" +defs["igImFontAtlasBuildSetupFont"][1]["location"] = "imgui_internal:3486" defs["igImFontAtlasBuildSetupFont"][1]["ov_cimguiname"] = "igImFontAtlasBuildSetupFont" defs["igImFontAtlasBuildSetupFont"][1]["ret"] = "void" defs["igImFontAtlasBuildSetupFont"][1]["signature"] = "(ImFontAtlas*,ImFont*,ImFontConfig*,float,float)" @@ -18253,7 +19082,7 @@ defs["igImFontAtlasGetBuilderForStbTruetype"][1]["call_args"] = "()" defs["igImFontAtlasGetBuilderForStbTruetype"][1]["cimguiname"] = "igImFontAtlasGetBuilderForStbTruetype" defs["igImFontAtlasGetBuilderForStbTruetype"][1]["defaults"] = {} defs["igImFontAtlasGetBuilderForStbTruetype"][1]["funcname"] = "ImFontAtlasGetBuilderForStbTruetype" -defs["igImFontAtlasGetBuilderForStbTruetype"][1]["location"] = "imgui_internal:3107" +defs["igImFontAtlasGetBuilderForStbTruetype"][1]["location"] = "imgui_internal:3483" defs["igImFontAtlasGetBuilderForStbTruetype"][1]["ov_cimguiname"] = "igImFontAtlasGetBuilderForStbTruetype" defs["igImFontAtlasGetBuilderForStbTruetype"][1]["ret"] = "const ImFontBuilderIO*" defs["igImFontAtlasGetBuilderForStbTruetype"][1]["signature"] = "()" @@ -18281,12 +19110,67 @@ defs["igImFormatString"][1]["cimguiname"] = "igImFormatString" defs["igImFormatString"][1]["defaults"] = {} defs["igImFormatString"][1]["funcname"] = "ImFormatString" defs["igImFormatString"][1]["isvararg"] = "...)" -defs["igImFormatString"][1]["location"] = "imgui_internal:342" +defs["igImFormatString"][1]["location"] = "imgui_internal:361" defs["igImFormatString"][1]["ov_cimguiname"] = "igImFormatString" defs["igImFormatString"][1]["ret"] = "int" defs["igImFormatString"][1]["signature"] = "(char*,size_t,const char*,...)" defs["igImFormatString"][1]["stname"] = "" defs["igImFormatString"]["(char*,size_t,const char*,...)"] = defs["igImFormatString"][1] +defs["igImFormatStringToTempBuffer"] = {} +defs["igImFormatStringToTempBuffer"][1] = {} +defs["igImFormatStringToTempBuffer"][1]["args"] = "(const char** out_buf,const char** out_buf_end,const char* fmt,...)" +defs["igImFormatStringToTempBuffer"][1]["argsT"] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][1] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][1]["name"] = "out_buf" +defs["igImFormatStringToTempBuffer"][1]["argsT"][1]["type"] = "const char**" +defs["igImFormatStringToTempBuffer"][1]["argsT"][2] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][2]["name"] = "out_buf_end" +defs["igImFormatStringToTempBuffer"][1]["argsT"][2]["type"] = "const char**" +defs["igImFormatStringToTempBuffer"][1]["argsT"][3] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][3]["name"] = "fmt" +defs["igImFormatStringToTempBuffer"][1]["argsT"][3]["type"] = "const char*" +defs["igImFormatStringToTempBuffer"][1]["argsT"][4] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][4]["name"] = "..." +defs["igImFormatStringToTempBuffer"][1]["argsT"][4]["type"] = "..." +defs["igImFormatStringToTempBuffer"][1]["argsoriginal"] = "(const char** out_buf,const char** out_buf_end,const char* fmt,...)" +defs["igImFormatStringToTempBuffer"][1]["call_args"] = "(out_buf,out_buf_end,fmt,...)" +defs["igImFormatStringToTempBuffer"][1]["cimguiname"] = "igImFormatStringToTempBuffer" +defs["igImFormatStringToTempBuffer"][1]["defaults"] = {} +defs["igImFormatStringToTempBuffer"][1]["funcname"] = "ImFormatStringToTempBuffer" +defs["igImFormatStringToTempBuffer"][1]["isvararg"] = "...)" +defs["igImFormatStringToTempBuffer"][1]["location"] = "imgui_internal:363" +defs["igImFormatStringToTempBuffer"][1]["ov_cimguiname"] = "igImFormatStringToTempBuffer" +defs["igImFormatStringToTempBuffer"][1]["ret"] = "void" +defs["igImFormatStringToTempBuffer"][1]["signature"] = "(const char**,const char**,const char*,...)" +defs["igImFormatStringToTempBuffer"][1]["stname"] = "" +defs["igImFormatStringToTempBuffer"]["(const char**,const char**,const char*,...)"] = defs["igImFormatStringToTempBuffer"][1] +defs["igImFormatStringToTempBufferV"] = {} +defs["igImFormatStringToTempBufferV"][1] = {} +defs["igImFormatStringToTempBufferV"][1]["args"] = "(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args)" +defs["igImFormatStringToTempBufferV"][1]["argsT"] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][1] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][1]["name"] = "out_buf" +defs["igImFormatStringToTempBufferV"][1]["argsT"][1]["type"] = "const char**" +defs["igImFormatStringToTempBufferV"][1]["argsT"][2] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][2]["name"] = "out_buf_end" +defs["igImFormatStringToTempBufferV"][1]["argsT"][2]["type"] = "const char**" +defs["igImFormatStringToTempBufferV"][1]["argsT"][3] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][3]["name"] = "fmt" +defs["igImFormatStringToTempBufferV"][1]["argsT"][3]["type"] = "const char*" +defs["igImFormatStringToTempBufferV"][1]["argsT"][4] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][4]["name"] = "args" +defs["igImFormatStringToTempBufferV"][1]["argsT"][4]["type"] = "va_list" +defs["igImFormatStringToTempBufferV"][1]["argsoriginal"] = "(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args)" +defs["igImFormatStringToTempBufferV"][1]["call_args"] = "(out_buf,out_buf_end,fmt,args)" +defs["igImFormatStringToTempBufferV"][1]["cimguiname"] = "igImFormatStringToTempBufferV" +defs["igImFormatStringToTempBufferV"][1]["defaults"] = {} +defs["igImFormatStringToTempBufferV"][1]["funcname"] = "ImFormatStringToTempBufferV" +defs["igImFormatStringToTempBufferV"][1]["location"] = "imgui_internal:364" +defs["igImFormatStringToTempBufferV"][1]["ov_cimguiname"] = "igImFormatStringToTempBufferV" +defs["igImFormatStringToTempBufferV"][1]["ret"] = "void" +defs["igImFormatStringToTempBufferV"][1]["signature"] = "(const char**,const char**,const char*,va_list)" +defs["igImFormatStringToTempBufferV"][1]["stname"] = "" +defs["igImFormatStringToTempBufferV"]["(const char**,const char**,const char*,va_list)"] = defs["igImFormatStringToTempBufferV"][1] defs["igImFormatStringV"] = {} defs["igImFormatStringV"][1] = {} defs["igImFormatStringV"][1]["args"] = "(char* buf,size_t buf_size,const char* fmt,va_list args)" @@ -18308,7 +19192,7 @@ defs["igImFormatStringV"][1]["call_args"] = "(buf,buf_size,fmt,args)" defs["igImFormatStringV"][1]["cimguiname"] = "igImFormatStringV" defs["igImFormatStringV"][1]["defaults"] = {} defs["igImFormatStringV"][1]["funcname"] = "ImFormatStringV" -defs["igImFormatStringV"][1]["location"] = "imgui_internal:343" +defs["igImFormatStringV"][1]["location"] = "imgui_internal:362" defs["igImFormatStringV"][1]["ov_cimguiname"] = "igImFormatStringV" defs["igImFormatStringV"][1]["ret"] = "int" defs["igImFormatStringV"][1]["signature"] = "(char*,size_t,const char*,va_list)" @@ -18329,7 +19213,7 @@ defs["igImGetDirQuadrantFromDelta"][1]["call_args"] = "(dx,dy)" defs["igImGetDirQuadrantFromDelta"][1]["cimguiname"] = "igImGetDirQuadrantFromDelta" defs["igImGetDirQuadrantFromDelta"][1]["defaults"] = {} defs["igImGetDirQuadrantFromDelta"][1]["funcname"] = "ImGetDirQuadrantFromDelta" -defs["igImGetDirQuadrantFromDelta"][1]["location"] = "imgui_internal:476" +defs["igImGetDirQuadrantFromDelta"][1]["location"] = "imgui_internal:498" defs["igImGetDirQuadrantFromDelta"][1]["ov_cimguiname"] = "igImGetDirQuadrantFromDelta" defs["igImGetDirQuadrantFromDelta"][1]["ret"] = "ImGuiDir" defs["igImGetDirQuadrantFromDelta"][1]["signature"] = "(float,float)" @@ -18354,7 +19238,7 @@ defs["igImHashData"][1]["cimguiname"] = "igImHashData" defs["igImHashData"][1]["defaults"] = {} defs["igImHashData"][1]["defaults"]["seed"] = "0" defs["igImHashData"][1]["funcname"] = "ImHashData" -defs["igImHashData"][1]["location"] = "imgui_internal:310" +defs["igImHashData"][1]["location"] = "imgui_internal:325" defs["igImHashData"][1]["ov_cimguiname"] = "igImHashData" defs["igImHashData"][1]["ret"] = "ImGuiID" defs["igImHashData"][1]["signature"] = "(const void*,size_t,ImU32)" @@ -18380,7 +19264,7 @@ defs["igImHashStr"][1]["defaults"] = {} defs["igImHashStr"][1]["defaults"]["data_size"] = "0" defs["igImHashStr"][1]["defaults"]["seed"] = "0" defs["igImHashStr"][1]["funcname"] = "ImHashStr" -defs["igImHashStr"][1]["location"] = "imgui_internal:311" +defs["igImHashStr"][1]["location"] = "imgui_internal:326" defs["igImHashStr"][1]["ov_cimguiname"] = "igImHashStr" defs["igImHashStr"][1]["ret"] = "ImGuiID" defs["igImHashStr"][1]["signature"] = "(const char*,size_t,ImU32)" @@ -18401,7 +19285,7 @@ defs["igImInvLength"][1]["call_args"] = "(lhs,fail_value)" defs["igImInvLength"][1]["cimguiname"] = "igImInvLength" defs["igImInvLength"][1]["defaults"] = {} defs["igImInvLength"][1]["funcname"] = "ImInvLength" -defs["igImInvLength"][1]["location"] = "imgui_internal:454" +defs["igImInvLength"][1]["location"] = "imgui_internal:475" defs["igImInvLength"][1]["ov_cimguiname"] = "igImInvLength" defs["igImInvLength"][1]["ret"] = "float" defs["igImInvLength"][1]["signature"] = "(const ImVec2,float)" @@ -18419,7 +19303,7 @@ defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["call_args"] = "(f)" defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["cimguiname"] = "igImIsFloatAboveGuaranteedIntegerPrecision" defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["defaults"] = {} defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["funcname"] = "ImIsFloatAboveGuaranteedIntegerPrecision" -defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["location"] = "imgui_internal:463" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["location"] = "imgui_internal:485" defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["ov_cimguiname"] = "igImIsFloatAboveGuaranteedIntegerPrecision" defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["ret"] = "bool" defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["signature"] = "(float)" @@ -18437,8 +19321,8 @@ defs["igImIsPowerOfTwo"][1]["call_args"] = "(v)" defs["igImIsPowerOfTwo"][1]["cimguiname"] = "igImIsPowerOfTwo" defs["igImIsPowerOfTwo"][1]["defaults"] = {} defs["igImIsPowerOfTwo"][1]["funcname"] = "ImIsPowerOfTwo" -defs["igImIsPowerOfTwo"][1]["location"] = "imgui_internal:325" -defs["igImIsPowerOfTwo"][1]["ov_cimguiname"] = "igImIsPowerOfTwoInt" +defs["igImIsPowerOfTwo"][1]["location"] = "imgui_internal:337" +defs["igImIsPowerOfTwo"][1]["ov_cimguiname"] = "igImIsPowerOfTwo_Int" defs["igImIsPowerOfTwo"][1]["ret"] = "bool" defs["igImIsPowerOfTwo"][1]["signature"] = "(int)" defs["igImIsPowerOfTwo"][1]["stname"] = "" @@ -18453,8 +19337,8 @@ defs["igImIsPowerOfTwo"][2]["call_args"] = "(v)" defs["igImIsPowerOfTwo"][2]["cimguiname"] = "igImIsPowerOfTwo" defs["igImIsPowerOfTwo"][2]["defaults"] = {} defs["igImIsPowerOfTwo"][2]["funcname"] = "ImIsPowerOfTwo" -defs["igImIsPowerOfTwo"][2]["location"] = "imgui_internal:326" -defs["igImIsPowerOfTwo"][2]["ov_cimguiname"] = "igImIsPowerOfTwoU64" +defs["igImIsPowerOfTwo"][2]["location"] = "imgui_internal:338" +defs["igImIsPowerOfTwo"][2]["ov_cimguiname"] = "igImIsPowerOfTwo_U64" defs["igImIsPowerOfTwo"][2]["ret"] = "bool" defs["igImIsPowerOfTwo"][2]["signature"] = "(ImU64)" defs["igImIsPowerOfTwo"][2]["stname"] = "" @@ -18472,8 +19356,8 @@ defs["igImLengthSqr"][1]["call_args"] = "(lhs)" defs["igImLengthSqr"][1]["cimguiname"] = "igImLengthSqr" defs["igImLengthSqr"][1]["defaults"] = {} defs["igImLengthSqr"][1]["funcname"] = "ImLengthSqr" -defs["igImLengthSqr"][1]["location"] = "imgui_internal:452" -defs["igImLengthSqr"][1]["ov_cimguiname"] = "igImLengthSqrVec2" +defs["igImLengthSqr"][1]["location"] = "imgui_internal:473" +defs["igImLengthSqr"][1]["ov_cimguiname"] = "igImLengthSqr_Vec2" defs["igImLengthSqr"][1]["ret"] = "float" defs["igImLengthSqr"][1]["signature"] = "(const ImVec2)" defs["igImLengthSqr"][1]["stname"] = "" @@ -18488,8 +19372,8 @@ defs["igImLengthSqr"][2]["call_args"] = "(lhs)" defs["igImLengthSqr"][2]["cimguiname"] = "igImLengthSqr" defs["igImLengthSqr"][2]["defaults"] = {} defs["igImLengthSqr"][2]["funcname"] = "ImLengthSqr" -defs["igImLengthSqr"][2]["location"] = "imgui_internal:453" -defs["igImLengthSqr"][2]["ov_cimguiname"] = "igImLengthSqrVec4" +defs["igImLengthSqr"][2]["location"] = "imgui_internal:474" +defs["igImLengthSqr"][2]["ov_cimguiname"] = "igImLengthSqr_Vec4" defs["igImLengthSqr"][2]["ret"] = "float" defs["igImLengthSqr"][2]["signature"] = "(const ImVec4)" defs["igImLengthSqr"][2]["stname"] = "" @@ -18516,9 +19400,9 @@ defs["igImLerp"][1]["call_args"] = "(a,b,t)" defs["igImLerp"][1]["cimguiname"] = "igImLerp" defs["igImLerp"][1]["defaults"] = {} defs["igImLerp"][1]["funcname"] = "ImLerp" -defs["igImLerp"][1]["location"] = "imgui_internal:448" +defs["igImLerp"][1]["location"] = "imgui_internal:469" defs["igImLerp"][1]["nonUDT"] = 1 -defs["igImLerp"][1]["ov_cimguiname"] = "igImLerpVec2Float" +defs["igImLerp"][1]["ov_cimguiname"] = "igImLerp_Vec2Float" defs["igImLerp"][1]["ret"] = "void" defs["igImLerp"][1]["signature"] = "(const ImVec2,const ImVec2,float)" defs["igImLerp"][1]["stname"] = "" @@ -18542,9 +19426,9 @@ defs["igImLerp"][2]["call_args"] = "(a,b,t)" defs["igImLerp"][2]["cimguiname"] = "igImLerp" defs["igImLerp"][2]["defaults"] = {} defs["igImLerp"][2]["funcname"] = "ImLerp" -defs["igImLerp"][2]["location"] = "imgui_internal:449" +defs["igImLerp"][2]["location"] = "imgui_internal:470" defs["igImLerp"][2]["nonUDT"] = 1 -defs["igImLerp"][2]["ov_cimguiname"] = "igImLerpVec2Vec2" +defs["igImLerp"][2]["ov_cimguiname"] = "igImLerp_Vec2Vec2" defs["igImLerp"][2]["ret"] = "void" defs["igImLerp"][2]["signature"] = "(const ImVec2,const ImVec2,const ImVec2)" defs["igImLerp"][2]["stname"] = "" @@ -18568,9 +19452,9 @@ defs["igImLerp"][3]["call_args"] = "(a,b,t)" defs["igImLerp"][3]["cimguiname"] = "igImLerp" defs["igImLerp"][3]["defaults"] = {} defs["igImLerp"][3]["funcname"] = "ImLerp" -defs["igImLerp"][3]["location"] = "imgui_internal:450" +defs["igImLerp"][3]["location"] = "imgui_internal:471" defs["igImLerp"][3]["nonUDT"] = 1 -defs["igImLerp"][3]["ov_cimguiname"] = "igImLerpVec4" +defs["igImLerp"][3]["ov_cimguiname"] = "igImLerp_Vec4" defs["igImLerp"][3]["ret"] = "void" defs["igImLerp"][3]["signature"] = "(const ImVec4,const ImVec4,float)" defs["igImLerp"][3]["stname"] = "" @@ -18598,7 +19482,7 @@ defs["igImLineClosestPoint"][1]["call_args"] = "(a,b,p)" defs["igImLineClosestPoint"][1]["cimguiname"] = "igImLineClosestPoint" defs["igImLineClosestPoint"][1]["defaults"] = {} defs["igImLineClosestPoint"][1]["funcname"] = "ImLineClosestPoint" -defs["igImLineClosestPoint"][1]["location"] = "imgui_internal:471" +defs["igImLineClosestPoint"][1]["location"] = "imgui_internal:493" defs["igImLineClosestPoint"][1]["nonUDT"] = 1 defs["igImLineClosestPoint"][1]["ov_cimguiname"] = "igImLineClosestPoint" defs["igImLineClosestPoint"][1]["ret"] = "void" @@ -18623,7 +19507,7 @@ defs["igImLinearSweep"][1]["call_args"] = "(current,target,speed)" defs["igImLinearSweep"][1]["cimguiname"] = "igImLinearSweep" defs["igImLinearSweep"][1]["defaults"] = {} defs["igImLinearSweep"][1]["funcname"] = "ImLinearSweep" -defs["igImLinearSweep"][1]["location"] = "imgui_internal:461" +defs["igImLinearSweep"][1]["location"] = "imgui_internal:483" defs["igImLinearSweep"][1]["ov_cimguiname"] = "igImLinearSweep" defs["igImLinearSweep"][1]["ret"] = "float" defs["igImLinearSweep"][1]["signature"] = "(float,float,float)" @@ -18641,8 +19525,8 @@ defs["igImLog"][1]["call_args"] = "(x)" defs["igImLog"][1]["cimguiname"] = "igImLog" defs["igImLog"][1]["defaults"] = {} defs["igImLog"][1]["funcname"] = "ImLog" -defs["igImLog"][1]["location"] = "imgui_internal:421" -defs["igImLog"][1]["ov_cimguiname"] = "igImLogFloat" +defs["igImLog"][1]["location"] = "imgui_internal:442" +defs["igImLog"][1]["ov_cimguiname"] = "igImLog_Float" defs["igImLog"][1]["ret"] = "float" defs["igImLog"][1]["signature"] = "(float)" defs["igImLog"][1]["stname"] = "" @@ -18657,8 +19541,8 @@ defs["igImLog"][2]["call_args"] = "(x)" defs["igImLog"][2]["cimguiname"] = "igImLog" defs["igImLog"][2]["defaults"] = {} defs["igImLog"][2]["funcname"] = "ImLog" -defs["igImLog"][2]["location"] = "imgui_internal:422" -defs["igImLog"][2]["ov_cimguiname"] = "igImLogdouble" +defs["igImLog"][2]["location"] = "imgui_internal:443" +defs["igImLog"][2]["ov_cimguiname"] = "igImLog_double" defs["igImLog"][2]["ret"] = "double" defs["igImLog"][2]["signature"] = "(double)" defs["igImLog"][2]["stname"] = "" @@ -18682,7 +19566,7 @@ defs["igImMax"][1]["call_args"] = "(lhs,rhs)" defs["igImMax"][1]["cimguiname"] = "igImMax" defs["igImMax"][1]["defaults"] = {} defs["igImMax"][1]["funcname"] = "ImMax" -defs["igImMax"][1]["location"] = "imgui_internal:446" +defs["igImMax"][1]["location"] = "imgui_internal:467" defs["igImMax"][1]["nonUDT"] = 1 defs["igImMax"][1]["ov_cimguiname"] = "igImMax" defs["igImMax"][1]["ret"] = "void" @@ -18707,7 +19591,7 @@ defs["igImMin"][1]["call_args"] = "(lhs,rhs)" defs["igImMin"][1]["cimguiname"] = "igImMin" defs["igImMin"][1]["defaults"] = {} defs["igImMin"][1]["funcname"] = "ImMin" -defs["igImMin"][1]["location"] = "imgui_internal:445" +defs["igImMin"][1]["location"] = "imgui_internal:466" defs["igImMin"][1]["nonUDT"] = 1 defs["igImMin"][1]["ov_cimguiname"] = "igImMin" defs["igImMin"][1]["ret"] = "void" @@ -18729,7 +19613,7 @@ defs["igImModPositive"][1]["call_args"] = "(a,b)" defs["igImModPositive"][1]["cimguiname"] = "igImModPositive" defs["igImModPositive"][1]["defaults"] = {} defs["igImModPositive"][1]["funcname"] = "ImModPositive" -defs["igImModPositive"][1]["location"] = "imgui_internal:458" +defs["igImModPositive"][1]["location"] = "imgui_internal:480" defs["igImModPositive"][1]["ov_cimguiname"] = "igImModPositive" defs["igImModPositive"][1]["ret"] = "int" defs["igImModPositive"][1]["signature"] = "(int,int)" @@ -18753,7 +19637,7 @@ defs["igImMul"][1]["call_args"] = "(lhs,rhs)" defs["igImMul"][1]["cimguiname"] = "igImMul" defs["igImMul"][1]["defaults"] = {} defs["igImMul"][1]["funcname"] = "ImMul" -defs["igImMul"][1]["location"] = "imgui_internal:462" +defs["igImMul"][1]["location"] = "imgui_internal:484" defs["igImMul"][1]["nonUDT"] = 1 defs["igImMul"][1]["ov_cimguiname"] = "igImMul" defs["igImMul"][1]["ret"] = "void" @@ -18772,7 +19656,7 @@ defs["igImParseFormatFindEnd"][1]["call_args"] = "(format)" defs["igImParseFormatFindEnd"][1]["cimguiname"] = "igImParseFormatFindEnd" defs["igImParseFormatFindEnd"][1]["defaults"] = {} defs["igImParseFormatFindEnd"][1]["funcname"] = "ImParseFormatFindEnd" -defs["igImParseFormatFindEnd"][1]["location"] = "imgui_internal:345" +defs["igImParseFormatFindEnd"][1]["location"] = "imgui_internal:366" defs["igImParseFormatFindEnd"][1]["ov_cimguiname"] = "igImParseFormatFindEnd" defs["igImParseFormatFindEnd"][1]["ret"] = "const char*" defs["igImParseFormatFindEnd"][1]["signature"] = "(const char*)" @@ -18790,7 +19674,7 @@ defs["igImParseFormatFindStart"][1]["call_args"] = "(format)" defs["igImParseFormatFindStart"][1]["cimguiname"] = "igImParseFormatFindStart" defs["igImParseFormatFindStart"][1]["defaults"] = {} defs["igImParseFormatFindStart"][1]["funcname"] = "ImParseFormatFindStart" -defs["igImParseFormatFindStart"][1]["location"] = "imgui_internal:344" +defs["igImParseFormatFindStart"][1]["location"] = "imgui_internal:365" defs["igImParseFormatFindStart"][1]["ov_cimguiname"] = "igImParseFormatFindStart" defs["igImParseFormatFindStart"][1]["ret"] = "const char*" defs["igImParseFormatFindStart"][1]["signature"] = "(const char*)" @@ -18811,12 +19695,60 @@ defs["igImParseFormatPrecision"][1]["call_args"] = "(format,default_value)" defs["igImParseFormatPrecision"][1]["cimguiname"] = "igImParseFormatPrecision" defs["igImParseFormatPrecision"][1]["defaults"] = {} defs["igImParseFormatPrecision"][1]["funcname"] = "ImParseFormatPrecision" -defs["igImParseFormatPrecision"][1]["location"] = "imgui_internal:347" +defs["igImParseFormatPrecision"][1]["location"] = "imgui_internal:370" defs["igImParseFormatPrecision"][1]["ov_cimguiname"] = "igImParseFormatPrecision" defs["igImParseFormatPrecision"][1]["ret"] = "int" defs["igImParseFormatPrecision"][1]["signature"] = "(const char*,int)" defs["igImParseFormatPrecision"][1]["stname"] = "" defs["igImParseFormatPrecision"]["(const char*,int)"] = defs["igImParseFormatPrecision"][1] +defs["igImParseFormatSanitizeForPrinting"] = {} +defs["igImParseFormatSanitizeForPrinting"][1] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["args"] = "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][1] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][1]["name"] = "fmt_in" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][1]["type"] = "const char*" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][2] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][2]["name"] = "fmt_out" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][2]["type"] = "char*" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][3] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][3]["name"] = "fmt_out_size" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][3]["type"] = "size_t" +defs["igImParseFormatSanitizeForPrinting"][1]["argsoriginal"] = "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)" +defs["igImParseFormatSanitizeForPrinting"][1]["call_args"] = "(fmt_in,fmt_out,fmt_out_size)" +defs["igImParseFormatSanitizeForPrinting"][1]["cimguiname"] = "igImParseFormatSanitizeForPrinting" +defs["igImParseFormatSanitizeForPrinting"][1]["defaults"] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["funcname"] = "ImParseFormatSanitizeForPrinting" +defs["igImParseFormatSanitizeForPrinting"][1]["location"] = "imgui_internal:368" +defs["igImParseFormatSanitizeForPrinting"][1]["ov_cimguiname"] = "igImParseFormatSanitizeForPrinting" +defs["igImParseFormatSanitizeForPrinting"][1]["ret"] = "void" +defs["igImParseFormatSanitizeForPrinting"][1]["signature"] = "(const char*,char*,size_t)" +defs["igImParseFormatSanitizeForPrinting"][1]["stname"] = "" +defs["igImParseFormatSanitizeForPrinting"]["(const char*,char*,size_t)"] = defs["igImParseFormatSanitizeForPrinting"][1] +defs["igImParseFormatSanitizeForScanning"] = {} +defs["igImParseFormatSanitizeForScanning"][1] = {} +defs["igImParseFormatSanitizeForScanning"][1]["args"] = "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"] = {} +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][1] = {} +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][1]["name"] = "fmt_in" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][1]["type"] = "const char*" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][2] = {} +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][2]["name"] = "fmt_out" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][2]["type"] = "char*" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][3] = {} +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][3]["name"] = "fmt_out_size" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][3]["type"] = "size_t" +defs["igImParseFormatSanitizeForScanning"][1]["argsoriginal"] = "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)" +defs["igImParseFormatSanitizeForScanning"][1]["call_args"] = "(fmt_in,fmt_out,fmt_out_size)" +defs["igImParseFormatSanitizeForScanning"][1]["cimguiname"] = "igImParseFormatSanitizeForScanning" +defs["igImParseFormatSanitizeForScanning"][1]["defaults"] = {} +defs["igImParseFormatSanitizeForScanning"][1]["funcname"] = "ImParseFormatSanitizeForScanning" +defs["igImParseFormatSanitizeForScanning"][1]["location"] = "imgui_internal:369" +defs["igImParseFormatSanitizeForScanning"][1]["ov_cimguiname"] = "igImParseFormatSanitizeForScanning" +defs["igImParseFormatSanitizeForScanning"][1]["ret"] = "const char*" +defs["igImParseFormatSanitizeForScanning"][1]["signature"] = "(const char*,char*,size_t)" +defs["igImParseFormatSanitizeForScanning"][1]["stname"] = "" +defs["igImParseFormatSanitizeForScanning"]["(const char*,char*,size_t)"] = defs["igImParseFormatSanitizeForScanning"][1] defs["igImParseFormatTrimDecorations"] = {} defs["igImParseFormatTrimDecorations"][1] = {} defs["igImParseFormatTrimDecorations"][1]["args"] = "(const char* format,char* buf,size_t buf_size)" @@ -18835,7 +19767,7 @@ defs["igImParseFormatTrimDecorations"][1]["call_args"] = "(format,buf,buf_size)" defs["igImParseFormatTrimDecorations"][1]["cimguiname"] = "igImParseFormatTrimDecorations" defs["igImParseFormatTrimDecorations"][1]["defaults"] = {} defs["igImParseFormatTrimDecorations"][1]["funcname"] = "ImParseFormatTrimDecorations" -defs["igImParseFormatTrimDecorations"][1]["location"] = "imgui_internal:346" +defs["igImParseFormatTrimDecorations"][1]["location"] = "imgui_internal:367" defs["igImParseFormatTrimDecorations"][1]["ov_cimguiname"] = "igImParseFormatTrimDecorations" defs["igImParseFormatTrimDecorations"][1]["ret"] = "const char*" defs["igImParseFormatTrimDecorations"][1]["signature"] = "(const char*,char*,size_t)" @@ -18856,8 +19788,8 @@ defs["igImPow"][1]["call_args"] = "(x,y)" defs["igImPow"][1]["cimguiname"] = "igImPow" defs["igImPow"][1]["defaults"] = {} defs["igImPow"][1]["funcname"] = "ImPow" -defs["igImPow"][1]["location"] = "imgui_internal:419" -defs["igImPow"][1]["ov_cimguiname"] = "igImPowFloat" +defs["igImPow"][1]["location"] = "imgui_internal:440" +defs["igImPow"][1]["ov_cimguiname"] = "igImPow_Float" defs["igImPow"][1]["ret"] = "float" defs["igImPow"][1]["signature"] = "(float,float)" defs["igImPow"][1]["stname"] = "" @@ -18875,8 +19807,8 @@ defs["igImPow"][2]["call_args"] = "(x,y)" defs["igImPow"][2]["cimguiname"] = "igImPow" defs["igImPow"][2]["defaults"] = {} defs["igImPow"][2]["funcname"] = "ImPow" -defs["igImPow"][2]["location"] = "imgui_internal:420" -defs["igImPow"][2]["ov_cimguiname"] = "igImPowdouble" +defs["igImPow"][2]["location"] = "imgui_internal:441" +defs["igImPow"][2]["ov_cimguiname"] = "igImPow_double" defs["igImPow"][2]["ret"] = "double" defs["igImPow"][2]["signature"] = "(double,double)" defs["igImPow"][2]["stname"] = "" @@ -18905,7 +19837,7 @@ defs["igImQsort"][1]["call_args"] = "(base,count,size_of_element,compare_func)" defs["igImQsort"][1]["cimguiname"] = "igImQsort" defs["igImQsort"][1]["defaults"] = {} defs["igImQsort"][1]["funcname"] = "ImQsort" -defs["igImQsort"][1]["location"] = "imgui_internal:318" +defs["igImQsort"][1]["location"] = "imgui_internal:330" defs["igImQsort"][1]["ov_cimguiname"] = "igImQsort" defs["igImQsort"][1]["ret"] = "void" defs["igImQsort"][1]["signature"] = "(void*,size_t,size_t,int(*)(void const*,void const*))" @@ -18932,7 +19864,7 @@ defs["igImRotate"][1]["call_args"] = "(v,cos_a,sin_a)" defs["igImRotate"][1]["cimguiname"] = "igImRotate" defs["igImRotate"][1]["defaults"] = {} defs["igImRotate"][1]["funcname"] = "ImRotate" -defs["igImRotate"][1]["location"] = "imgui_internal:460" +defs["igImRotate"][1]["location"] = "imgui_internal:482" defs["igImRotate"][1]["nonUDT"] = 1 defs["igImRotate"][1]["ov_cimguiname"] = "igImRotate" defs["igImRotate"][1]["ret"] = "void" @@ -18951,8 +19883,8 @@ defs["igImRsqrt"][1]["call_args"] = "(x)" defs["igImRsqrt"][1]["cimguiname"] = "igImRsqrt" defs["igImRsqrt"][1]["defaults"] = {} defs["igImRsqrt"][1]["funcname"] = "ImRsqrt" -defs["igImRsqrt"][1]["location"] = "imgui_internal:429" -defs["igImRsqrt"][1]["ov_cimguiname"] = "igImRsqrtFloat" +defs["igImRsqrt"][1]["location"] = "imgui_internal:450" +defs["igImRsqrt"][1]["ov_cimguiname"] = "igImRsqrt_Float" defs["igImRsqrt"][1]["ret"] = "float" defs["igImRsqrt"][1]["signature"] = "(float)" defs["igImRsqrt"][1]["stname"] = "" @@ -18967,8 +19899,8 @@ defs["igImRsqrt"][2]["call_args"] = "(x)" defs["igImRsqrt"][2]["cimguiname"] = "igImRsqrt" defs["igImRsqrt"][2]["defaults"] = {} defs["igImRsqrt"][2]["funcname"] = "ImRsqrt" -defs["igImRsqrt"][2]["location"] = "imgui_internal:433" -defs["igImRsqrt"][2]["ov_cimguiname"] = "igImRsqrtdouble" +defs["igImRsqrt"][2]["location"] = "imgui_internal:454" +defs["igImRsqrt"][2]["ov_cimguiname"] = "igImRsqrt_double" defs["igImRsqrt"][2]["ret"] = "double" defs["igImRsqrt"][2]["signature"] = "(double)" defs["igImRsqrt"][2]["stname"] = "" @@ -18986,7 +19918,7 @@ defs["igImSaturate"][1]["call_args"] = "(f)" defs["igImSaturate"][1]["cimguiname"] = "igImSaturate" defs["igImSaturate"][1]["defaults"] = {} defs["igImSaturate"][1]["funcname"] = "ImSaturate" -defs["igImSaturate"][1]["location"] = "imgui_internal:451" +defs["igImSaturate"][1]["location"] = "imgui_internal:472" defs["igImSaturate"][1]["ov_cimguiname"] = "igImSaturate" defs["igImSaturate"][1]["ret"] = "float" defs["igImSaturate"][1]["signature"] = "(float)" @@ -19004,8 +19936,8 @@ defs["igImSign"][1]["call_args"] = "(x)" defs["igImSign"][1]["cimguiname"] = "igImSign" defs["igImSign"][1]["defaults"] = {} defs["igImSign"][1]["funcname"] = "ImSign" -defs["igImSign"][1]["location"] = "imgui_internal:426" -defs["igImSign"][1]["ov_cimguiname"] = "igImSignFloat" +defs["igImSign"][1]["location"] = "imgui_internal:447" +defs["igImSign"][1]["ov_cimguiname"] = "igImSign_Float" defs["igImSign"][1]["ret"] = "float" defs["igImSign"][1]["signature"] = "(float)" defs["igImSign"][1]["stname"] = "" @@ -19020,8 +19952,8 @@ defs["igImSign"][2]["call_args"] = "(x)" defs["igImSign"][2]["cimguiname"] = "igImSign" defs["igImSign"][2]["defaults"] = {} defs["igImSign"][2]["funcname"] = "ImSign" -defs["igImSign"][2]["location"] = "imgui_internal:427" -defs["igImSign"][2]["ov_cimguiname"] = "igImSigndouble" +defs["igImSign"][2]["location"] = "imgui_internal:448" +defs["igImSign"][2]["ov_cimguiname"] = "igImSign_double" defs["igImSign"][2]["ret"] = "double" defs["igImSign"][2]["signature"] = "(double)" defs["igImSign"][2]["stname"] = "" @@ -19039,7 +19971,7 @@ defs["igImStrSkipBlank"][1]["call_args"] = "(str)" defs["igImStrSkipBlank"][1]["cimguiname"] = "igImStrSkipBlank" defs["igImStrSkipBlank"][1]["defaults"] = {} defs["igImStrSkipBlank"][1]["funcname"] = "ImStrSkipBlank" -defs["igImStrSkipBlank"][1]["location"] = "imgui_internal:341" +defs["igImStrSkipBlank"][1]["location"] = "imgui_internal:353" defs["igImStrSkipBlank"][1]["ov_cimguiname"] = "igImStrSkipBlank" defs["igImStrSkipBlank"][1]["ret"] = "const char*" defs["igImStrSkipBlank"][1]["signature"] = "(const char*)" @@ -19057,7 +19989,7 @@ defs["igImStrTrimBlanks"][1]["call_args"] = "(str)" defs["igImStrTrimBlanks"][1]["cimguiname"] = "igImStrTrimBlanks" defs["igImStrTrimBlanks"][1]["defaults"] = {} defs["igImStrTrimBlanks"][1]["funcname"] = "ImStrTrimBlanks" -defs["igImStrTrimBlanks"][1]["location"] = "imgui_internal:340" +defs["igImStrTrimBlanks"][1]["location"] = "imgui_internal:352" defs["igImStrTrimBlanks"][1]["ov_cimguiname"] = "igImStrTrimBlanks" defs["igImStrTrimBlanks"][1]["ret"] = "void" defs["igImStrTrimBlanks"][1]["signature"] = "(char*)" @@ -19078,7 +20010,7 @@ defs["igImStrbolW"][1]["call_args"] = "(buf_mid_line,buf_begin)" defs["igImStrbolW"][1]["cimguiname"] = "igImStrbolW" defs["igImStrbolW"][1]["defaults"] = {} defs["igImStrbolW"][1]["funcname"] = "ImStrbolW" -defs["igImStrbolW"][1]["location"] = "imgui_internal:338" +defs["igImStrbolW"][1]["location"] = "imgui_internal:350" defs["igImStrbolW"][1]["ov_cimguiname"] = "igImStrbolW" defs["igImStrbolW"][1]["ret"] = "const ImWchar*" defs["igImStrbolW"][1]["signature"] = "(const ImWchar*,const ImWchar*)" @@ -19102,7 +20034,7 @@ defs["igImStrchrRange"][1]["call_args"] = "(str_begin,str_end,c)" defs["igImStrchrRange"][1]["cimguiname"] = "igImStrchrRange" defs["igImStrchrRange"][1]["defaults"] = {} defs["igImStrchrRange"][1]["funcname"] = "ImStrchrRange" -defs["igImStrchrRange"][1]["location"] = "imgui_internal:335" +defs["igImStrchrRange"][1]["location"] = "imgui_internal:347" defs["igImStrchrRange"][1]["ov_cimguiname"] = "igImStrchrRange" defs["igImStrchrRange"][1]["ret"] = "const char*" defs["igImStrchrRange"][1]["signature"] = "(const char*,const char*,char)" @@ -19120,7 +20052,7 @@ defs["igImStrdup"][1]["call_args"] = "(str)" defs["igImStrdup"][1]["cimguiname"] = "igImStrdup" defs["igImStrdup"][1]["defaults"] = {} defs["igImStrdup"][1]["funcname"] = "ImStrdup" -defs["igImStrdup"][1]["location"] = "imgui_internal:333" +defs["igImStrdup"][1]["location"] = "imgui_internal:345" defs["igImStrdup"][1]["ov_cimguiname"] = "igImStrdup" defs["igImStrdup"][1]["ret"] = "char*" defs["igImStrdup"][1]["signature"] = "(const char*)" @@ -19144,7 +20076,7 @@ defs["igImStrdupcpy"][1]["call_args"] = "(dst,p_dst_size,str)" defs["igImStrdupcpy"][1]["cimguiname"] = "igImStrdupcpy" defs["igImStrdupcpy"][1]["defaults"] = {} defs["igImStrdupcpy"][1]["funcname"] = "ImStrdupcpy" -defs["igImStrdupcpy"][1]["location"] = "imgui_internal:334" +defs["igImStrdupcpy"][1]["location"] = "imgui_internal:346" defs["igImStrdupcpy"][1]["ov_cimguiname"] = "igImStrdupcpy" defs["igImStrdupcpy"][1]["ret"] = "char*" defs["igImStrdupcpy"][1]["signature"] = "(char*,size_t*,const char*)" @@ -19165,7 +20097,7 @@ defs["igImStreolRange"][1]["call_args"] = "(str,str_end)" defs["igImStreolRange"][1]["cimguiname"] = "igImStreolRange" defs["igImStreolRange"][1]["defaults"] = {} defs["igImStreolRange"][1]["funcname"] = "ImStreolRange" -defs["igImStreolRange"][1]["location"] = "imgui_internal:337" +defs["igImStreolRange"][1]["location"] = "imgui_internal:349" defs["igImStreolRange"][1]["ov_cimguiname"] = "igImStreolRange" defs["igImStreolRange"][1]["ret"] = "const char*" defs["igImStreolRange"][1]["signature"] = "(const char*,const char*)" @@ -19186,7 +20118,7 @@ defs["igImStricmp"][1]["call_args"] = "(str1,str2)" defs["igImStricmp"][1]["cimguiname"] = "igImStricmp" defs["igImStricmp"][1]["defaults"] = {} defs["igImStricmp"][1]["funcname"] = "ImStricmp" -defs["igImStricmp"][1]["location"] = "imgui_internal:330" +defs["igImStricmp"][1]["location"] = "imgui_internal:342" defs["igImStricmp"][1]["ov_cimguiname"] = "igImStricmp" defs["igImStricmp"][1]["ret"] = "int" defs["igImStricmp"][1]["signature"] = "(const char*,const char*)" @@ -19213,7 +20145,7 @@ defs["igImStristr"][1]["call_args"] = "(haystack,haystack_end,needle,needle_end) defs["igImStristr"][1]["cimguiname"] = "igImStristr" defs["igImStristr"][1]["defaults"] = {} defs["igImStristr"][1]["funcname"] = "ImStristr" -defs["igImStristr"][1]["location"] = "imgui_internal:339" +defs["igImStristr"][1]["location"] = "imgui_internal:351" defs["igImStristr"][1]["ov_cimguiname"] = "igImStristr" defs["igImStristr"][1]["ret"] = "const char*" defs["igImStristr"][1]["signature"] = "(const char*,const char*,const char*,const char*)" @@ -19231,7 +20163,7 @@ defs["igImStrlenW"][1]["call_args"] = "(str)" defs["igImStrlenW"][1]["cimguiname"] = "igImStrlenW" defs["igImStrlenW"][1]["defaults"] = {} defs["igImStrlenW"][1]["funcname"] = "ImStrlenW" -defs["igImStrlenW"][1]["location"] = "imgui_internal:336" +defs["igImStrlenW"][1]["location"] = "imgui_internal:348" defs["igImStrlenW"][1]["ov_cimguiname"] = "igImStrlenW" defs["igImStrlenW"][1]["ret"] = "int" defs["igImStrlenW"][1]["signature"] = "(const ImWchar*)" @@ -19255,7 +20187,7 @@ defs["igImStrncpy"][1]["call_args"] = "(dst,src,count)" defs["igImStrncpy"][1]["cimguiname"] = "igImStrncpy" defs["igImStrncpy"][1]["defaults"] = {} defs["igImStrncpy"][1]["funcname"] = "ImStrncpy" -defs["igImStrncpy"][1]["location"] = "imgui_internal:332" +defs["igImStrncpy"][1]["location"] = "imgui_internal:344" defs["igImStrncpy"][1]["ov_cimguiname"] = "igImStrncpy" defs["igImStrncpy"][1]["ret"] = "void" defs["igImStrncpy"][1]["signature"] = "(char*,const char*,size_t)" @@ -19279,7 +20211,7 @@ defs["igImStrnicmp"][1]["call_args"] = "(str1,str2,count)" defs["igImStrnicmp"][1]["cimguiname"] = "igImStrnicmp" defs["igImStrnicmp"][1]["defaults"] = {} defs["igImStrnicmp"][1]["funcname"] = "ImStrnicmp" -defs["igImStrnicmp"][1]["location"] = "imgui_internal:331" +defs["igImStrnicmp"][1]["location"] = "imgui_internal:343" defs["igImStrnicmp"][1]["ov_cimguiname"] = "igImStrnicmp" defs["igImStrnicmp"][1]["ret"] = "int" defs["igImStrnicmp"][1]["signature"] = "(const char*,const char*,size_t)" @@ -19303,7 +20235,7 @@ defs["igImTextCharFromUtf8"][1]["call_args"] = "(out_char,in_text,in_text_end)" defs["igImTextCharFromUtf8"][1]["cimguiname"] = "igImTextCharFromUtf8" defs["igImTextCharFromUtf8"][1]["defaults"] = {} defs["igImTextCharFromUtf8"][1]["funcname"] = "ImTextCharFromUtf8" -defs["igImTextCharFromUtf8"][1]["location"] = "imgui_internal:354" +defs["igImTextCharFromUtf8"][1]["location"] = "imgui_internal:375" defs["igImTextCharFromUtf8"][1]["ov_cimguiname"] = "igImTextCharFromUtf8" defs["igImTextCharFromUtf8"][1]["ret"] = "int" defs["igImTextCharFromUtf8"][1]["signature"] = "(unsigned int*,const char*,const char*)" @@ -19324,7 +20256,7 @@ defs["igImTextCharToUtf8"][1]["call_args"] = "(out_buf,c)" defs["igImTextCharToUtf8"][1]["cimguiname"] = "igImTextCharToUtf8" defs["igImTextCharToUtf8"][1]["defaults"] = {} defs["igImTextCharToUtf8"][1]["funcname"] = "ImTextCharToUtf8" -defs["igImTextCharToUtf8"][1]["location"] = "imgui_internal:352" +defs["igImTextCharToUtf8"][1]["location"] = "imgui_internal:373" defs["igImTextCharToUtf8"][1]["ov_cimguiname"] = "igImTextCharToUtf8" defs["igImTextCharToUtf8"][1]["ret"] = "const char*" defs["igImTextCharToUtf8"][1]["signature"] = "(char[5],unsigned int)" @@ -19345,7 +20277,7 @@ defs["igImTextCountCharsFromUtf8"][1]["call_args"] = "(in_text,in_text_end)" defs["igImTextCountCharsFromUtf8"][1]["cimguiname"] = "igImTextCountCharsFromUtf8" defs["igImTextCountCharsFromUtf8"][1]["defaults"] = {} defs["igImTextCountCharsFromUtf8"][1]["funcname"] = "ImTextCountCharsFromUtf8" -defs["igImTextCountCharsFromUtf8"][1]["location"] = "imgui_internal:356" +defs["igImTextCountCharsFromUtf8"][1]["location"] = "imgui_internal:377" defs["igImTextCountCharsFromUtf8"][1]["ov_cimguiname"] = "igImTextCountCharsFromUtf8" defs["igImTextCountCharsFromUtf8"][1]["ret"] = "int" defs["igImTextCountCharsFromUtf8"][1]["signature"] = "(const char*,const char*)" @@ -19366,7 +20298,7 @@ defs["igImTextCountUtf8BytesFromChar"][1]["call_args"] = "(in_text,in_text_end)" defs["igImTextCountUtf8BytesFromChar"][1]["cimguiname"] = "igImTextCountUtf8BytesFromChar" defs["igImTextCountUtf8BytesFromChar"][1]["defaults"] = {} defs["igImTextCountUtf8BytesFromChar"][1]["funcname"] = "ImTextCountUtf8BytesFromChar" -defs["igImTextCountUtf8BytesFromChar"][1]["location"] = "imgui_internal:357" +defs["igImTextCountUtf8BytesFromChar"][1]["location"] = "imgui_internal:378" defs["igImTextCountUtf8BytesFromChar"][1]["ov_cimguiname"] = "igImTextCountUtf8BytesFromChar" defs["igImTextCountUtf8BytesFromChar"][1]["ret"] = "int" defs["igImTextCountUtf8BytesFromChar"][1]["signature"] = "(const char*,const char*)" @@ -19387,7 +20319,7 @@ defs["igImTextCountUtf8BytesFromStr"][1]["call_args"] = "(in_text,in_text_end)" defs["igImTextCountUtf8BytesFromStr"][1]["cimguiname"] = "igImTextCountUtf8BytesFromStr" defs["igImTextCountUtf8BytesFromStr"][1]["defaults"] = {} defs["igImTextCountUtf8BytesFromStr"][1]["funcname"] = "ImTextCountUtf8BytesFromStr" -defs["igImTextCountUtf8BytesFromStr"][1]["location"] = "imgui_internal:358" +defs["igImTextCountUtf8BytesFromStr"][1]["location"] = "imgui_internal:379" defs["igImTextCountUtf8BytesFromStr"][1]["ov_cimguiname"] = "igImTextCountUtf8BytesFromStr" defs["igImTextCountUtf8BytesFromStr"][1]["ret"] = "int" defs["igImTextCountUtf8BytesFromStr"][1]["signature"] = "(const ImWchar*,const ImWchar*)" @@ -19418,7 +20350,7 @@ defs["igImTextStrFromUtf8"][1]["cimguiname"] = "igImTextStrFromUtf8" defs["igImTextStrFromUtf8"][1]["defaults"] = {} defs["igImTextStrFromUtf8"][1]["defaults"]["in_remaining"] = "NULL" defs["igImTextStrFromUtf8"][1]["funcname"] = "ImTextStrFromUtf8" -defs["igImTextStrFromUtf8"][1]["location"] = "imgui_internal:355" +defs["igImTextStrFromUtf8"][1]["location"] = "imgui_internal:376" defs["igImTextStrFromUtf8"][1]["ov_cimguiname"] = "igImTextStrFromUtf8" defs["igImTextStrFromUtf8"][1]["ret"] = "int" defs["igImTextStrFromUtf8"][1]["signature"] = "(ImWchar*,int,const char*,const char*,const char**)" @@ -19445,12 +20377,30 @@ defs["igImTextStrToUtf8"][1]["call_args"] = "(out_buf,out_buf_size,in_text,in_te defs["igImTextStrToUtf8"][1]["cimguiname"] = "igImTextStrToUtf8" defs["igImTextStrToUtf8"][1]["defaults"] = {} defs["igImTextStrToUtf8"][1]["funcname"] = "ImTextStrToUtf8" -defs["igImTextStrToUtf8"][1]["location"] = "imgui_internal:353" +defs["igImTextStrToUtf8"][1]["location"] = "imgui_internal:374" defs["igImTextStrToUtf8"][1]["ov_cimguiname"] = "igImTextStrToUtf8" defs["igImTextStrToUtf8"][1]["ret"] = "int" defs["igImTextStrToUtf8"][1]["signature"] = "(char*,int,const ImWchar*,const ImWchar*)" defs["igImTextStrToUtf8"][1]["stname"] = "" defs["igImTextStrToUtf8"]["(char*,int,const ImWchar*,const ImWchar*)"] = defs["igImTextStrToUtf8"][1] +defs["igImToUpper"] = {} +defs["igImToUpper"][1] = {} +defs["igImToUpper"][1]["args"] = "(char c)" +defs["igImToUpper"][1]["argsT"] = {} +defs["igImToUpper"][1]["argsT"][1] = {} +defs["igImToUpper"][1]["argsT"][1]["name"] = "c" +defs["igImToUpper"][1]["argsT"][1]["type"] = "char" +defs["igImToUpper"][1]["argsoriginal"] = "(char c)" +defs["igImToUpper"][1]["call_args"] = "(c)" +defs["igImToUpper"][1]["cimguiname"] = "igImToUpper" +defs["igImToUpper"][1]["defaults"] = {} +defs["igImToUpper"][1]["funcname"] = "ImToUpper" +defs["igImToUpper"][1]["location"] = "imgui_internal:355" +defs["igImToUpper"][1]["ov_cimguiname"] = "igImToUpper" +defs["igImToUpper"][1]["ret"] = "char" +defs["igImToUpper"][1]["signature"] = "(char)" +defs["igImToUpper"][1]["stname"] = "" +defs["igImToUpper"]["(char)"] = defs["igImToUpper"][1] defs["igImTriangleArea"] = {} defs["igImTriangleArea"][1] = {} defs["igImTriangleArea"][1]["args"] = "(const ImVec2 a,const ImVec2 b,const ImVec2 c)" @@ -19469,7 +20419,7 @@ defs["igImTriangleArea"][1]["call_args"] = "(a,b,c)" defs["igImTriangleArea"][1]["cimguiname"] = "igImTriangleArea" defs["igImTriangleArea"][1]["defaults"] = {} defs["igImTriangleArea"][1]["funcname"] = "ImTriangleArea" -defs["igImTriangleArea"][1]["location"] = "imgui_internal:475" +defs["igImTriangleArea"][1]["location"] = "imgui_internal:497" defs["igImTriangleArea"][1]["ov_cimguiname"] = "igImTriangleArea" defs["igImTriangleArea"][1]["ret"] = "float" defs["igImTriangleArea"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2)" @@ -19508,7 +20458,7 @@ defs["igImTriangleBarycentricCoords"][1]["call_args"] = "(a,b,c,p,*out_u,*out_v, defs["igImTriangleBarycentricCoords"][1]["cimguiname"] = "igImTriangleBarycentricCoords" defs["igImTriangleBarycentricCoords"][1]["defaults"] = {} defs["igImTriangleBarycentricCoords"][1]["funcname"] = "ImTriangleBarycentricCoords" -defs["igImTriangleBarycentricCoords"][1]["location"] = "imgui_internal:474" +defs["igImTriangleBarycentricCoords"][1]["location"] = "imgui_internal:496" defs["igImTriangleBarycentricCoords"][1]["ov_cimguiname"] = "igImTriangleBarycentricCoords" defs["igImTriangleBarycentricCoords"][1]["ret"] = "void" defs["igImTriangleBarycentricCoords"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float*,float*,float*)" @@ -19538,7 +20488,7 @@ defs["igImTriangleClosestPoint"][1]["call_args"] = "(a,b,c,p)" defs["igImTriangleClosestPoint"][1]["cimguiname"] = "igImTriangleClosestPoint" defs["igImTriangleClosestPoint"][1]["defaults"] = {} defs["igImTriangleClosestPoint"][1]["funcname"] = "ImTriangleClosestPoint" -defs["igImTriangleClosestPoint"][1]["location"] = "imgui_internal:473" +defs["igImTriangleClosestPoint"][1]["location"] = "imgui_internal:495" defs["igImTriangleClosestPoint"][1]["nonUDT"] = 1 defs["igImTriangleClosestPoint"][1]["ov_cimguiname"] = "igImTriangleClosestPoint" defs["igImTriangleClosestPoint"][1]["ret"] = "void" @@ -19566,7 +20516,7 @@ defs["igImTriangleContainsPoint"][1]["call_args"] = "(a,b,c,p)" defs["igImTriangleContainsPoint"][1]["cimguiname"] = "igImTriangleContainsPoint" defs["igImTriangleContainsPoint"][1]["defaults"] = {} defs["igImTriangleContainsPoint"][1]["funcname"] = "ImTriangleContainsPoint" -defs["igImTriangleContainsPoint"][1]["location"] = "imgui_internal:472" +defs["igImTriangleContainsPoint"][1]["location"] = "imgui_internal:494" defs["igImTriangleContainsPoint"][1]["ov_cimguiname"] = "igImTriangleContainsPoint" defs["igImTriangleContainsPoint"][1]["ret"] = "bool" defs["igImTriangleContainsPoint"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2)" @@ -19584,7 +20534,7 @@ defs["igImUpperPowerOfTwo"][1]["call_args"] = "(v)" defs["igImUpperPowerOfTwo"][1]["cimguiname"] = "igImUpperPowerOfTwo" defs["igImUpperPowerOfTwo"][1]["defaults"] = {} defs["igImUpperPowerOfTwo"][1]["funcname"] = "ImUpperPowerOfTwo" -defs["igImUpperPowerOfTwo"][1]["location"] = "imgui_internal:327" +defs["igImUpperPowerOfTwo"][1]["location"] = "imgui_internal:339" defs["igImUpperPowerOfTwo"][1]["ov_cimguiname"] = "igImUpperPowerOfTwo" defs["igImUpperPowerOfTwo"][1]["ret"] = "int" defs["igImUpperPowerOfTwo"][1]["signature"] = "(int)" @@ -19621,7 +20571,7 @@ defs["igImage"][1]["defaults"]["tint_col"] = "ImVec4(1,1,1,1)" defs["igImage"][1]["defaults"]["uv0"] = "ImVec2(0,0)" defs["igImage"][1]["defaults"]["uv1"] = "ImVec2(1,1)" defs["igImage"][1]["funcname"] = "Image" -defs["igImage"][1]["location"] = "imgui:516" +defs["igImage"][1]["location"] = "imgui:523" defs["igImage"][1]["namespace"] = "ImGui" defs["igImage"][1]["ov_cimguiname"] = "igImage" defs["igImage"][1]["ret"] = "void" @@ -19630,49 +20580,48 @@ defs["igImage"][1]["stname"] = "" defs["igImage"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImage"][1] defs["igImageButton"] = {} defs["igImageButton"][1] = {} -defs["igImageButton"][1]["args"] = "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,int frame_padding,const ImVec4 bg_col,const ImVec4 tint_col)" +defs["igImageButton"][1]["args"] = "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)" defs["igImageButton"][1]["argsT"] = {} defs["igImageButton"][1]["argsT"][1] = {} -defs["igImageButton"][1]["argsT"][1]["name"] = "user_texture_id" -defs["igImageButton"][1]["argsT"][1]["type"] = "ImTextureID" +defs["igImageButton"][1]["argsT"][1]["name"] = "str_id" +defs["igImageButton"][1]["argsT"][1]["type"] = "const char*" defs["igImageButton"][1]["argsT"][2] = {} -defs["igImageButton"][1]["argsT"][2]["name"] = "size" -defs["igImageButton"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImageButton"][1]["argsT"][2]["name"] = "user_texture_id" +defs["igImageButton"][1]["argsT"][2]["type"] = "ImTextureID" defs["igImageButton"][1]["argsT"][3] = {} -defs["igImageButton"][1]["argsT"][3]["name"] = "uv0" +defs["igImageButton"][1]["argsT"][3]["name"] = "size" defs["igImageButton"][1]["argsT"][3]["type"] = "const ImVec2" defs["igImageButton"][1]["argsT"][4] = {} -defs["igImageButton"][1]["argsT"][4]["name"] = "uv1" +defs["igImageButton"][1]["argsT"][4]["name"] = "uv0" defs["igImageButton"][1]["argsT"][4]["type"] = "const ImVec2" defs["igImageButton"][1]["argsT"][5] = {} -defs["igImageButton"][1]["argsT"][5]["name"] = "frame_padding" -defs["igImageButton"][1]["argsT"][5]["type"] = "int" +defs["igImageButton"][1]["argsT"][5]["name"] = "uv1" +defs["igImageButton"][1]["argsT"][5]["type"] = "const ImVec2" defs["igImageButton"][1]["argsT"][6] = {} defs["igImageButton"][1]["argsT"][6]["name"] = "bg_col" defs["igImageButton"][1]["argsT"][6]["type"] = "const ImVec4" defs["igImageButton"][1]["argsT"][7] = {} defs["igImageButton"][1]["argsT"][7]["name"] = "tint_col" defs["igImageButton"][1]["argsT"][7]["type"] = "const ImVec4" -defs["igImageButton"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),int frame_padding=-1,const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))" -defs["igImageButton"][1]["call_args"] = "(user_texture_id,size,uv0,uv1,frame_padding,bg_col,tint_col)" +defs["igImageButton"][1]["argsoriginal"] = "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))" +defs["igImageButton"][1]["call_args"] = "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)" defs["igImageButton"][1]["cimguiname"] = "igImageButton" defs["igImageButton"][1]["defaults"] = {} defs["igImageButton"][1]["defaults"]["bg_col"] = "ImVec4(0,0,0,0)" -defs["igImageButton"][1]["defaults"]["frame_padding"] = "-1" defs["igImageButton"][1]["defaults"]["tint_col"] = "ImVec4(1,1,1,1)" defs["igImageButton"][1]["defaults"]["uv0"] = "ImVec2(0,0)" defs["igImageButton"][1]["defaults"]["uv1"] = "ImVec2(1,1)" defs["igImageButton"][1]["funcname"] = "ImageButton" -defs["igImageButton"][1]["location"] = "imgui:517" +defs["igImageButton"][1]["location"] = "imgui:524" defs["igImageButton"][1]["namespace"] = "ImGui" defs["igImageButton"][1]["ov_cimguiname"] = "igImageButton" defs["igImageButton"][1]["ret"] = "bool" -defs["igImageButton"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,int,const ImVec4,const ImVec4)" +defs["igImageButton"][1]["signature"] = "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" defs["igImageButton"][1]["stname"] = "" -defs["igImageButton"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,int,const ImVec4,const ImVec4)"] = defs["igImageButton"][1] +defs["igImageButton"]["(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImageButton"][1] defs["igImageButtonEx"] = {} defs["igImageButtonEx"][1] = {} -defs["igImageButtonEx"][1]["args"] = "(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec2 padding,const ImVec4 bg_col,const ImVec4 tint_col)" +defs["igImageButtonEx"][1]["args"] = "(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)" defs["igImageButtonEx"][1]["argsT"] = {} defs["igImageButtonEx"][1]["argsT"][1] = {} defs["igImageButtonEx"][1]["argsT"][1]["name"] = "id" @@ -19690,26 +20639,23 @@ defs["igImageButtonEx"][1]["argsT"][5] = {} defs["igImageButtonEx"][1]["argsT"][5]["name"] = "uv1" defs["igImageButtonEx"][1]["argsT"][5]["type"] = "const ImVec2" defs["igImageButtonEx"][1]["argsT"][6] = {} -defs["igImageButtonEx"][1]["argsT"][6]["name"] = "padding" -defs["igImageButtonEx"][1]["argsT"][6]["type"] = "const ImVec2" +defs["igImageButtonEx"][1]["argsT"][6]["name"] = "bg_col" +defs["igImageButtonEx"][1]["argsT"][6]["type"] = "const ImVec4" defs["igImageButtonEx"][1]["argsT"][7] = {} -defs["igImageButtonEx"][1]["argsT"][7]["name"] = "bg_col" +defs["igImageButtonEx"][1]["argsT"][7]["name"] = "tint_col" defs["igImageButtonEx"][1]["argsT"][7]["type"] = "const ImVec4" -defs["igImageButtonEx"][1]["argsT"][8] = {} -defs["igImageButtonEx"][1]["argsT"][8]["name"] = "tint_col" -defs["igImageButtonEx"][1]["argsT"][8]["type"] = "const ImVec4" -defs["igImageButtonEx"][1]["argsoriginal"] = "(ImGuiID id,ImTextureID texture_id,const ImVec2& size,const ImVec2& uv0,const ImVec2& uv1,const ImVec2& padding,const ImVec4& bg_col,const ImVec4& tint_col)" -defs["igImageButtonEx"][1]["call_args"] = "(id,texture_id,size,uv0,uv1,padding,bg_col,tint_col)" +defs["igImageButtonEx"][1]["argsoriginal"] = "(ImGuiID id,ImTextureID texture_id,const ImVec2& size,const ImVec2& uv0,const ImVec2& uv1,const ImVec4& bg_col,const ImVec4& tint_col)" +defs["igImageButtonEx"][1]["call_args"] = "(id,texture_id,size,uv0,uv1,bg_col,tint_col)" defs["igImageButtonEx"][1]["cimguiname"] = "igImageButtonEx" defs["igImageButtonEx"][1]["defaults"] = {} defs["igImageButtonEx"][1]["funcname"] = "ImageButtonEx" -defs["igImageButtonEx"][1]["location"] = "imgui_internal:3009" +defs["igImageButtonEx"][1]["location"] = "imgui_internal:3357" defs["igImageButtonEx"][1]["namespace"] = "ImGui" defs["igImageButtonEx"][1]["ov_cimguiname"] = "igImageButtonEx" defs["igImageButtonEx"][1]["ret"] = "bool" -defs["igImageButtonEx"][1]["signature"] = "(ImGuiID,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" +defs["igImageButtonEx"][1]["signature"] = "(ImGuiID,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" defs["igImageButtonEx"][1]["stname"] = "" -defs["igImageButtonEx"]["(ImGuiID,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImageButtonEx"][1] +defs["igImageButtonEx"]["(ImGuiID,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImageButtonEx"][1] defs["igIndent"] = {} defs["igIndent"][1] = {} defs["igIndent"][1]["args"] = "(float indent_w)" @@ -19723,7 +20669,7 @@ defs["igIndent"][1]["cimguiname"] = "igIndent" defs["igIndent"][1]["defaults"] = {} defs["igIndent"][1]["defaults"]["indent_w"] = "0.0f" defs["igIndent"][1]["funcname"] = "Indent" -defs["igIndent"][1]["location"] = "imgui:455" +defs["igIndent"][1]["location"] = "imgui:452" defs["igIndent"][1]["namespace"] = "ImGui" defs["igIndent"][1]["ov_cimguiname"] = "igIndent" defs["igIndent"][1]["ret"] = "void" @@ -19732,23 +20678,20 @@ defs["igIndent"][1]["stname"] = "" defs["igIndent"]["(float)"] = defs["igIndent"][1] defs["igInitialize"] = {} defs["igInitialize"][1] = {} -defs["igInitialize"][1]["args"] = "(ImGuiContext* context)" +defs["igInitialize"][1]["args"] = "()" defs["igInitialize"][1]["argsT"] = {} -defs["igInitialize"][1]["argsT"][1] = {} -defs["igInitialize"][1]["argsT"][1]["name"] = "context" -defs["igInitialize"][1]["argsT"][1]["type"] = "ImGuiContext*" -defs["igInitialize"][1]["argsoriginal"] = "(ImGuiContext* context)" -defs["igInitialize"][1]["call_args"] = "(context)" +defs["igInitialize"][1]["argsoriginal"] = "()" +defs["igInitialize"][1]["call_args"] = "()" defs["igInitialize"][1]["cimguiname"] = "igInitialize" defs["igInitialize"][1]["defaults"] = {} defs["igInitialize"][1]["funcname"] = "Initialize" -defs["igInitialize"][1]["location"] = "imgui_internal:2677" +defs["igInitialize"][1]["location"] = "imgui_internal:2965" defs["igInitialize"][1]["namespace"] = "ImGui" defs["igInitialize"][1]["ov_cimguiname"] = "igInitialize" defs["igInitialize"][1]["ret"] = "void" -defs["igInitialize"][1]["signature"] = "(ImGuiContext*)" +defs["igInitialize"][1]["signature"] = "()" defs["igInitialize"][1]["stname"] = "" -defs["igInitialize"]["(ImGuiContext*)"] = defs["igInitialize"][1] +defs["igInitialize"]["()"] = defs["igInitialize"][1] defs["igInputDouble"] = {} defs["igInputDouble"][1] = {} defs["igInputDouble"][1]["args"] = "(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags)" @@ -19780,7 +20723,7 @@ defs["igInputDouble"][1]["defaults"]["format"] = "\"%.6f\"" defs["igInputDouble"][1]["defaults"]["step"] = "0.0" defs["igInputDouble"][1]["defaults"]["step_fast"] = "0.0" defs["igInputDouble"][1]["funcname"] = "InputDouble" -defs["igInputDouble"][1]["location"] = "imgui:594" +defs["igInputDouble"][1]["location"] = "imgui:595" defs["igInputDouble"][1]["namespace"] = "ImGui" defs["igInputDouble"][1]["ov_cimguiname"] = "igInputDouble" defs["igInputDouble"][1]["ret"] = "bool" @@ -19818,7 +20761,7 @@ defs["igInputFloat"][1]["defaults"]["format"] = "\"%.3f\"" defs["igInputFloat"][1]["defaults"]["step"] = "0.0f" defs["igInputFloat"][1]["defaults"]["step_fast"] = "0.0f" defs["igInputFloat"][1]["funcname"] = "InputFloat" -defs["igInputFloat"][1]["location"] = "imgui:586" +defs["igInputFloat"][1]["location"] = "imgui:587" defs["igInputFloat"][1]["namespace"] = "ImGui" defs["igInputFloat"][1]["ov_cimguiname"] = "igInputFloat" defs["igInputFloat"][1]["ret"] = "bool" @@ -19848,7 +20791,7 @@ defs["igInputFloat2"][1]["defaults"] = {} defs["igInputFloat2"][1]["defaults"]["flags"] = "0" defs["igInputFloat2"][1]["defaults"]["format"] = "\"%.3f\"" defs["igInputFloat2"][1]["funcname"] = "InputFloat2" -defs["igInputFloat2"][1]["location"] = "imgui:587" +defs["igInputFloat2"][1]["location"] = "imgui:588" defs["igInputFloat2"][1]["namespace"] = "ImGui" defs["igInputFloat2"][1]["ov_cimguiname"] = "igInputFloat2" defs["igInputFloat2"][1]["ret"] = "bool" @@ -19878,7 +20821,7 @@ defs["igInputFloat3"][1]["defaults"] = {} defs["igInputFloat3"][1]["defaults"]["flags"] = "0" defs["igInputFloat3"][1]["defaults"]["format"] = "\"%.3f\"" defs["igInputFloat3"][1]["funcname"] = "InputFloat3" -defs["igInputFloat3"][1]["location"] = "imgui:588" +defs["igInputFloat3"][1]["location"] = "imgui:589" defs["igInputFloat3"][1]["namespace"] = "ImGui" defs["igInputFloat3"][1]["ov_cimguiname"] = "igInputFloat3" defs["igInputFloat3"][1]["ret"] = "bool" @@ -19908,7 +20851,7 @@ defs["igInputFloat4"][1]["defaults"] = {} defs["igInputFloat4"][1]["defaults"]["flags"] = "0" defs["igInputFloat4"][1]["defaults"]["format"] = "\"%.3f\"" defs["igInputFloat4"][1]["funcname"] = "InputFloat4" -defs["igInputFloat4"][1]["location"] = "imgui:589" +defs["igInputFloat4"][1]["location"] = "imgui:590" defs["igInputFloat4"][1]["namespace"] = "ImGui" defs["igInputFloat4"][1]["ov_cimguiname"] = "igInputFloat4" defs["igInputFloat4"][1]["ret"] = "bool" @@ -19942,7 +20885,7 @@ defs["igInputInt"][1]["defaults"]["flags"] = "0" defs["igInputInt"][1]["defaults"]["step"] = "1" defs["igInputInt"][1]["defaults"]["step_fast"] = "100" defs["igInputInt"][1]["funcname"] = "InputInt" -defs["igInputInt"][1]["location"] = "imgui:590" +defs["igInputInt"][1]["location"] = "imgui:591" defs["igInputInt"][1]["namespace"] = "ImGui" defs["igInputInt"][1]["ov_cimguiname"] = "igInputInt" defs["igInputInt"][1]["ret"] = "bool" @@ -19968,7 +20911,7 @@ defs["igInputInt2"][1]["cimguiname"] = "igInputInt2" defs["igInputInt2"][1]["defaults"] = {} defs["igInputInt2"][1]["defaults"]["flags"] = "0" defs["igInputInt2"][1]["funcname"] = "InputInt2" -defs["igInputInt2"][1]["location"] = "imgui:591" +defs["igInputInt2"][1]["location"] = "imgui:592" defs["igInputInt2"][1]["namespace"] = "ImGui" defs["igInputInt2"][1]["ov_cimguiname"] = "igInputInt2" defs["igInputInt2"][1]["ret"] = "bool" @@ -19994,7 +20937,7 @@ defs["igInputInt3"][1]["cimguiname"] = "igInputInt3" defs["igInputInt3"][1]["defaults"] = {} defs["igInputInt3"][1]["defaults"]["flags"] = "0" defs["igInputInt3"][1]["funcname"] = "InputInt3" -defs["igInputInt3"][1]["location"] = "imgui:592" +defs["igInputInt3"][1]["location"] = "imgui:593" defs["igInputInt3"][1]["namespace"] = "ImGui" defs["igInputInt3"][1]["ov_cimguiname"] = "igInputInt3" defs["igInputInt3"][1]["ret"] = "bool" @@ -20020,7 +20963,7 @@ defs["igInputInt4"][1]["cimguiname"] = "igInputInt4" defs["igInputInt4"][1]["defaults"] = {} defs["igInputInt4"][1]["defaults"]["flags"] = "0" defs["igInputInt4"][1]["funcname"] = "InputInt4" -defs["igInputInt4"][1]["location"] = "imgui:593" +defs["igInputInt4"][1]["location"] = "imgui:594" defs["igInputInt4"][1]["namespace"] = "ImGui" defs["igInputInt4"][1]["ov_cimguiname"] = "igInputInt4" defs["igInputInt4"][1]["ret"] = "bool" @@ -20061,7 +21004,7 @@ defs["igInputScalar"][1]["defaults"]["format"] = "NULL" defs["igInputScalar"][1]["defaults"]["p_step"] = "NULL" defs["igInputScalar"][1]["defaults"]["p_step_fast"] = "NULL" defs["igInputScalar"][1]["funcname"] = "InputScalar" -defs["igInputScalar"][1]["location"] = "imgui:595" +defs["igInputScalar"][1]["location"] = "imgui:596" defs["igInputScalar"][1]["namespace"] = "ImGui" defs["igInputScalar"][1]["ov_cimguiname"] = "igInputScalar" defs["igInputScalar"][1]["ret"] = "bool" @@ -20105,7 +21048,7 @@ defs["igInputScalarN"][1]["defaults"]["format"] = "NULL" defs["igInputScalarN"][1]["defaults"]["p_step"] = "NULL" defs["igInputScalarN"][1]["defaults"]["p_step_fast"] = "NULL" defs["igInputScalarN"][1]["funcname"] = "InputScalarN" -defs["igInputScalarN"][1]["location"] = "imgui:596" +defs["igInputScalarN"][1]["location"] = "imgui:597" defs["igInputScalarN"][1]["namespace"] = "ImGui" defs["igInputScalarN"][1]["ov_cimguiname"] = "igInputScalarN" defs["igInputScalarN"][1]["ret"] = "bool" @@ -20142,7 +21085,7 @@ defs["igInputText"][1]["defaults"]["callback"] = "NULL" defs["igInputText"][1]["defaults"]["flags"] = "0" defs["igInputText"][1]["defaults"]["user_data"] = "NULL" defs["igInputText"][1]["funcname"] = "InputText" -defs["igInputText"][1]["location"] = "imgui:583" +defs["igInputText"][1]["location"] = "imgui:584" defs["igInputText"][1]["namespace"] = "ImGui" defs["igInputText"][1]["ov_cimguiname"] = "igInputText" defs["igInputText"][1]["ret"] = "bool" @@ -20184,7 +21127,7 @@ defs["igInputTextEx"][1]["defaults"] = {} defs["igInputTextEx"][1]["defaults"]["callback"] = "NULL" defs["igInputTextEx"][1]["defaults"]["user_data"] = "NULL" defs["igInputTextEx"][1]["funcname"] = "InputTextEx" -defs["igInputTextEx"][1]["location"] = "imgui_internal:3046" +defs["igInputTextEx"][1]["location"] = "imgui_internal:3395" defs["igInputTextEx"][1]["namespace"] = "ImGui" defs["igInputTextEx"][1]["ov_cimguiname"] = "igInputTextEx" defs["igInputTextEx"][1]["ret"] = "bool" @@ -20225,7 +21168,7 @@ defs["igInputTextMultiline"][1]["defaults"]["flags"] = "0" defs["igInputTextMultiline"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igInputTextMultiline"][1]["defaults"]["user_data"] = "NULL" defs["igInputTextMultiline"][1]["funcname"] = "InputTextMultiline" -defs["igInputTextMultiline"][1]["location"] = "imgui:584" +defs["igInputTextMultiline"][1]["location"] = "imgui:585" defs["igInputTextMultiline"][1]["namespace"] = "ImGui" defs["igInputTextMultiline"][1]["ov_cimguiname"] = "igInputTextMultiline" defs["igInputTextMultiline"][1]["ret"] = "bool" @@ -20265,7 +21208,7 @@ defs["igInputTextWithHint"][1]["defaults"]["callback"] = "NULL" defs["igInputTextWithHint"][1]["defaults"]["flags"] = "0" defs["igInputTextWithHint"][1]["defaults"]["user_data"] = "NULL" defs["igInputTextWithHint"][1]["funcname"] = "InputTextWithHint" -defs["igInputTextWithHint"][1]["location"] = "imgui:585" +defs["igInputTextWithHint"][1]["location"] = "imgui:586" defs["igInputTextWithHint"][1]["namespace"] = "ImGui" defs["igInputTextWithHint"][1]["ov_cimguiname"] = "igInputTextWithHint" defs["igInputTextWithHint"][1]["ret"] = "bool" @@ -20291,32 +21234,13 @@ defs["igInvisibleButton"][1]["cimguiname"] = "igInvisibleButton" defs["igInvisibleButton"][1]["defaults"] = {} defs["igInvisibleButton"][1]["defaults"]["flags"] = "0" defs["igInvisibleButton"][1]["funcname"] = "InvisibleButton" -defs["igInvisibleButton"][1]["location"] = "imgui:514" +defs["igInvisibleButton"][1]["location"] = "imgui:511" defs["igInvisibleButton"][1]["namespace"] = "ImGui" defs["igInvisibleButton"][1]["ov_cimguiname"] = "igInvisibleButton" defs["igInvisibleButton"][1]["ret"] = "bool" defs["igInvisibleButton"][1]["signature"] = "(const char*,const ImVec2,ImGuiButtonFlags)" defs["igInvisibleButton"][1]["stname"] = "" defs["igInvisibleButton"]["(const char*,const ImVec2,ImGuiButtonFlags)"] = defs["igInvisibleButton"][1] -defs["igIsActiveIdUsingKey"] = {} -defs["igIsActiveIdUsingKey"][1] = {} -defs["igIsActiveIdUsingKey"][1]["args"] = "(ImGuiKey key)" -defs["igIsActiveIdUsingKey"][1]["argsT"] = {} -defs["igIsActiveIdUsingKey"][1]["argsT"][1] = {} -defs["igIsActiveIdUsingKey"][1]["argsT"][1]["name"] = "key" -defs["igIsActiveIdUsingKey"][1]["argsT"][1]["type"] = "ImGuiKey" -defs["igIsActiveIdUsingKey"][1]["argsoriginal"] = "(ImGuiKey key)" -defs["igIsActiveIdUsingKey"][1]["call_args"] = "(key)" -defs["igIsActiveIdUsingKey"][1]["cimguiname"] = "igIsActiveIdUsingKey" -defs["igIsActiveIdUsingKey"][1]["defaults"] = {} -defs["igIsActiveIdUsingKey"][1]["funcname"] = "IsActiveIdUsingKey" -defs["igIsActiveIdUsingKey"][1]["location"] = "imgui_internal:2829" -defs["igIsActiveIdUsingKey"][1]["namespace"] = "ImGui" -defs["igIsActiveIdUsingKey"][1]["ov_cimguiname"] = "igIsActiveIdUsingKey" -defs["igIsActiveIdUsingKey"][1]["ret"] = "bool" -defs["igIsActiveIdUsingKey"][1]["signature"] = "(ImGuiKey)" -defs["igIsActiveIdUsingKey"][1]["stname"] = "" -defs["igIsActiveIdUsingKey"]["(ImGuiKey)"] = defs["igIsActiveIdUsingKey"][1] defs["igIsActiveIdUsingNavDir"] = {} defs["igIsActiveIdUsingNavDir"][1] = {} defs["igIsActiveIdUsingNavDir"][1]["args"] = "(ImGuiDir dir)" @@ -20329,32 +21253,32 @@ defs["igIsActiveIdUsingNavDir"][1]["call_args"] = "(dir)" defs["igIsActiveIdUsingNavDir"][1]["cimguiname"] = "igIsActiveIdUsingNavDir" defs["igIsActiveIdUsingNavDir"][1]["defaults"] = {} defs["igIsActiveIdUsingNavDir"][1]["funcname"] = "IsActiveIdUsingNavDir" -defs["igIsActiveIdUsingNavDir"][1]["location"] = "imgui_internal:2827" +defs["igIsActiveIdUsingNavDir"][1]["location"] = "imgui_internal:3125" defs["igIsActiveIdUsingNavDir"][1]["namespace"] = "ImGui" defs["igIsActiveIdUsingNavDir"][1]["ov_cimguiname"] = "igIsActiveIdUsingNavDir" defs["igIsActiveIdUsingNavDir"][1]["ret"] = "bool" defs["igIsActiveIdUsingNavDir"][1]["signature"] = "(ImGuiDir)" defs["igIsActiveIdUsingNavDir"][1]["stname"] = "" defs["igIsActiveIdUsingNavDir"]["(ImGuiDir)"] = defs["igIsActiveIdUsingNavDir"][1] -defs["igIsActiveIdUsingNavInput"] = {} -defs["igIsActiveIdUsingNavInput"][1] = {} -defs["igIsActiveIdUsingNavInput"][1]["args"] = "(ImGuiNavInput input)" -defs["igIsActiveIdUsingNavInput"][1]["argsT"] = {} -defs["igIsActiveIdUsingNavInput"][1]["argsT"][1] = {} -defs["igIsActiveIdUsingNavInput"][1]["argsT"][1]["name"] = "input" -defs["igIsActiveIdUsingNavInput"][1]["argsT"][1]["type"] = "ImGuiNavInput" -defs["igIsActiveIdUsingNavInput"][1]["argsoriginal"] = "(ImGuiNavInput input)" -defs["igIsActiveIdUsingNavInput"][1]["call_args"] = "(input)" -defs["igIsActiveIdUsingNavInput"][1]["cimguiname"] = "igIsActiveIdUsingNavInput" -defs["igIsActiveIdUsingNavInput"][1]["defaults"] = {} -defs["igIsActiveIdUsingNavInput"][1]["funcname"] = "IsActiveIdUsingNavInput" -defs["igIsActiveIdUsingNavInput"][1]["location"] = "imgui_internal:2828" -defs["igIsActiveIdUsingNavInput"][1]["namespace"] = "ImGui" -defs["igIsActiveIdUsingNavInput"][1]["ov_cimguiname"] = "igIsActiveIdUsingNavInput" -defs["igIsActiveIdUsingNavInput"][1]["ret"] = "bool" -defs["igIsActiveIdUsingNavInput"][1]["signature"] = "(ImGuiNavInput)" -defs["igIsActiveIdUsingNavInput"][1]["stname"] = "" -defs["igIsActiveIdUsingNavInput"]["(ImGuiNavInput)"] = defs["igIsActiveIdUsingNavInput"][1] +defs["igIsAliasKey"] = {} +defs["igIsAliasKey"][1] = {} +defs["igIsAliasKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsAliasKey"][1]["argsT"] = {} +defs["igIsAliasKey"][1]["argsT"][1] = {} +defs["igIsAliasKey"][1]["argsT"][1]["name"] = "key" +defs["igIsAliasKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsAliasKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsAliasKey"][1]["call_args"] = "(key)" +defs["igIsAliasKey"][1]["cimguiname"] = "igIsAliasKey" +defs["igIsAliasKey"][1]["defaults"] = {} +defs["igIsAliasKey"][1]["funcname"] = "IsAliasKey" +defs["igIsAliasKey"][1]["location"] = "imgui_internal:3106" +defs["igIsAliasKey"][1]["namespace"] = "ImGui" +defs["igIsAliasKey"][1]["ov_cimguiname"] = "igIsAliasKey" +defs["igIsAliasKey"][1]["ret"] = "bool" +defs["igIsAliasKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsAliasKey"][1]["stname"] = "" +defs["igIsAliasKey"]["(ImGuiKey)"] = defs["igIsAliasKey"][1] defs["igIsAnyItemActive"] = {} defs["igIsAnyItemActive"][1] = {} defs["igIsAnyItemActive"][1]["args"] = "()" @@ -20364,7 +21288,7 @@ defs["igIsAnyItemActive"][1]["call_args"] = "()" defs["igIsAnyItemActive"][1]["cimguiname"] = "igIsAnyItemActive" defs["igIsAnyItemActive"][1]["defaults"] = {} defs["igIsAnyItemActive"][1]["funcname"] = "IsAnyItemActive" -defs["igIsAnyItemActive"][1]["location"] = "imgui:879" +defs["igIsAnyItemActive"][1]["location"] = "imgui:876" defs["igIsAnyItemActive"][1]["namespace"] = "ImGui" defs["igIsAnyItemActive"][1]["ov_cimguiname"] = "igIsAnyItemActive" defs["igIsAnyItemActive"][1]["ret"] = "bool" @@ -20380,7 +21304,7 @@ defs["igIsAnyItemFocused"][1]["call_args"] = "()" defs["igIsAnyItemFocused"][1]["cimguiname"] = "igIsAnyItemFocused" defs["igIsAnyItemFocused"][1]["defaults"] = {} defs["igIsAnyItemFocused"][1]["funcname"] = "IsAnyItemFocused" -defs["igIsAnyItemFocused"][1]["location"] = "imgui:880" +defs["igIsAnyItemFocused"][1]["location"] = "imgui:877" defs["igIsAnyItemFocused"][1]["namespace"] = "ImGui" defs["igIsAnyItemFocused"][1]["ov_cimguiname"] = "igIsAnyItemFocused" defs["igIsAnyItemFocused"][1]["ret"] = "bool" @@ -20396,7 +21320,7 @@ defs["igIsAnyItemHovered"][1]["call_args"] = "()" defs["igIsAnyItemHovered"][1]["cimguiname"] = "igIsAnyItemHovered" defs["igIsAnyItemHovered"][1]["defaults"] = {} defs["igIsAnyItemHovered"][1]["funcname"] = "IsAnyItemHovered" -defs["igIsAnyItemHovered"][1]["location"] = "imgui:878" +defs["igIsAnyItemHovered"][1]["location"] = "imgui:875" defs["igIsAnyItemHovered"][1]["namespace"] = "ImGui" defs["igIsAnyItemHovered"][1]["ov_cimguiname"] = "igIsAnyItemHovered" defs["igIsAnyItemHovered"][1]["ret"] = "bool" @@ -20412,7 +21336,7 @@ defs["igIsAnyMouseDown"][1]["call_args"] = "()" defs["igIsAnyMouseDown"][1]["cimguiname"] = "igIsAnyMouseDown" defs["igIsAnyMouseDown"][1]["defaults"] = {} defs["igIsAnyMouseDown"][1]["funcname"] = "IsAnyMouseDown" -defs["igIsAnyMouseDown"][1]["location"] = "imgui:938" +defs["igIsAnyMouseDown"][1]["location"] = "imgui:940" defs["igIsAnyMouseDown"][1]["namespace"] = "ImGui" defs["igIsAnyMouseDown"][1]["ov_cimguiname"] = "igIsAnyMouseDown" defs["igIsAnyMouseDown"][1]["ret"] = "bool" @@ -20434,13 +21358,29 @@ defs["igIsClippedEx"][1]["call_args"] = "(bb,id)" defs["igIsClippedEx"][1]["cimguiname"] = "igIsClippedEx" defs["igIsClippedEx"][1]["defaults"] = {} defs["igIsClippedEx"][1]["funcname"] = "IsClippedEx" -defs["igIsClippedEx"][1]["location"] = "imgui_internal:2744" +defs["igIsClippedEx"][1]["location"] = "imgui_internal:3040" defs["igIsClippedEx"][1]["namespace"] = "ImGui" defs["igIsClippedEx"][1]["ov_cimguiname"] = "igIsClippedEx" defs["igIsClippedEx"][1]["ret"] = "bool" defs["igIsClippedEx"][1]["signature"] = "(const ImRect,ImGuiID)" defs["igIsClippedEx"][1]["stname"] = "" defs["igIsClippedEx"]["(const ImRect,ImGuiID)"] = defs["igIsClippedEx"][1] +defs["igIsDragDropActive"] = {} +defs["igIsDragDropActive"][1] = {} +defs["igIsDragDropActive"][1]["args"] = "()" +defs["igIsDragDropActive"][1]["argsT"] = {} +defs["igIsDragDropActive"][1]["argsoriginal"] = "()" +defs["igIsDragDropActive"][1]["call_args"] = "()" +defs["igIsDragDropActive"][1]["cimguiname"] = "igIsDragDropActive" +defs["igIsDragDropActive"][1]["defaults"] = {} +defs["igIsDragDropActive"][1]["funcname"] = "IsDragDropActive" +defs["igIsDragDropActive"][1]["location"] = "imgui_internal:3237" +defs["igIsDragDropActive"][1]["namespace"] = "ImGui" +defs["igIsDragDropActive"][1]["ov_cimguiname"] = "igIsDragDropActive" +defs["igIsDragDropActive"][1]["ret"] = "bool" +defs["igIsDragDropActive"][1]["signature"] = "()" +defs["igIsDragDropActive"][1]["stname"] = "" +defs["igIsDragDropActive"]["()"] = defs["igIsDragDropActive"][1] defs["igIsDragDropPayloadBeingAccepted"] = {} defs["igIsDragDropPayloadBeingAccepted"][1] = {} defs["igIsDragDropPayloadBeingAccepted"][1]["args"] = "()" @@ -20450,13 +21390,32 @@ defs["igIsDragDropPayloadBeingAccepted"][1]["call_args"] = "()" defs["igIsDragDropPayloadBeingAccepted"][1]["cimguiname"] = "igIsDragDropPayloadBeingAccepted" defs["igIsDragDropPayloadBeingAccepted"][1]["defaults"] = {} defs["igIsDragDropPayloadBeingAccepted"][1]["funcname"] = "IsDragDropPayloadBeingAccepted" -defs["igIsDragDropPayloadBeingAccepted"][1]["location"] = "imgui_internal:2890" +defs["igIsDragDropPayloadBeingAccepted"][1]["location"] = "imgui_internal:3240" defs["igIsDragDropPayloadBeingAccepted"][1]["namespace"] = "ImGui" defs["igIsDragDropPayloadBeingAccepted"][1]["ov_cimguiname"] = "igIsDragDropPayloadBeingAccepted" defs["igIsDragDropPayloadBeingAccepted"][1]["ret"] = "bool" defs["igIsDragDropPayloadBeingAccepted"][1]["signature"] = "()" defs["igIsDragDropPayloadBeingAccepted"][1]["stname"] = "" defs["igIsDragDropPayloadBeingAccepted"]["()"] = defs["igIsDragDropPayloadBeingAccepted"][1] +defs["igIsGamepadKey"] = {} +defs["igIsGamepadKey"][1] = {} +defs["igIsGamepadKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsGamepadKey"][1]["argsT"] = {} +defs["igIsGamepadKey"][1]["argsT"][1] = {} +defs["igIsGamepadKey"][1]["argsT"][1]["name"] = "key" +defs["igIsGamepadKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsGamepadKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsGamepadKey"][1]["call_args"] = "(key)" +defs["igIsGamepadKey"][1]["cimguiname"] = "igIsGamepadKey" +defs["igIsGamepadKey"][1]["defaults"] = {} +defs["igIsGamepadKey"][1]["funcname"] = "IsGamepadKey" +defs["igIsGamepadKey"][1]["location"] = "imgui_internal:3104" +defs["igIsGamepadKey"][1]["namespace"] = "ImGui" +defs["igIsGamepadKey"][1]["ov_cimguiname"] = "igIsGamepadKey" +defs["igIsGamepadKey"][1]["ret"] = "bool" +defs["igIsGamepadKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsGamepadKey"][1]["stname"] = "" +defs["igIsGamepadKey"]["(ImGuiKey)"] = defs["igIsGamepadKey"][1] defs["igIsItemActivated"] = {} defs["igIsItemActivated"][1] = {} defs["igIsItemActivated"][1]["args"] = "()" @@ -20466,7 +21425,7 @@ defs["igIsItemActivated"][1]["call_args"] = "()" defs["igIsItemActivated"][1]["cimguiname"] = "igIsItemActivated" defs["igIsItemActivated"][1]["defaults"] = {} defs["igIsItemActivated"][1]["funcname"] = "IsItemActivated" -defs["igIsItemActivated"][1]["location"] = "imgui:874" +defs["igIsItemActivated"][1]["location"] = "imgui:871" defs["igIsItemActivated"][1]["namespace"] = "ImGui" defs["igIsItemActivated"][1]["ov_cimguiname"] = "igIsItemActivated" defs["igIsItemActivated"][1]["ret"] = "bool" @@ -20482,7 +21441,7 @@ defs["igIsItemActive"][1]["call_args"] = "()" defs["igIsItemActive"][1]["cimguiname"] = "igIsItemActive" defs["igIsItemActive"][1]["defaults"] = {} defs["igIsItemActive"][1]["funcname"] = "IsItemActive" -defs["igIsItemActive"][1]["location"] = "imgui:869" +defs["igIsItemActive"][1]["location"] = "imgui:866" defs["igIsItemActive"][1]["namespace"] = "ImGui" defs["igIsItemActive"][1]["ov_cimguiname"] = "igIsItemActive" defs["igIsItemActive"][1]["ret"] = "bool" @@ -20502,7 +21461,7 @@ defs["igIsItemClicked"][1]["cimguiname"] = "igIsItemClicked" defs["igIsItemClicked"][1]["defaults"] = {} defs["igIsItemClicked"][1]["defaults"]["mouse_button"] = "0" defs["igIsItemClicked"][1]["funcname"] = "IsItemClicked" -defs["igIsItemClicked"][1]["location"] = "imgui:871" +defs["igIsItemClicked"][1]["location"] = "imgui:868" defs["igIsItemClicked"][1]["namespace"] = "ImGui" defs["igIsItemClicked"][1]["ov_cimguiname"] = "igIsItemClicked" defs["igIsItemClicked"][1]["ret"] = "bool" @@ -20518,7 +21477,7 @@ defs["igIsItemDeactivated"][1]["call_args"] = "()" defs["igIsItemDeactivated"][1]["cimguiname"] = "igIsItemDeactivated" defs["igIsItemDeactivated"][1]["defaults"] = {} defs["igIsItemDeactivated"][1]["funcname"] = "IsItemDeactivated" -defs["igIsItemDeactivated"][1]["location"] = "imgui:875" +defs["igIsItemDeactivated"][1]["location"] = "imgui:872" defs["igIsItemDeactivated"][1]["namespace"] = "ImGui" defs["igIsItemDeactivated"][1]["ov_cimguiname"] = "igIsItemDeactivated" defs["igIsItemDeactivated"][1]["ret"] = "bool" @@ -20534,7 +21493,7 @@ defs["igIsItemDeactivatedAfterEdit"][1]["call_args"] = "()" defs["igIsItemDeactivatedAfterEdit"][1]["cimguiname"] = "igIsItemDeactivatedAfterEdit" defs["igIsItemDeactivatedAfterEdit"][1]["defaults"] = {} defs["igIsItemDeactivatedAfterEdit"][1]["funcname"] = "IsItemDeactivatedAfterEdit" -defs["igIsItemDeactivatedAfterEdit"][1]["location"] = "imgui:876" +defs["igIsItemDeactivatedAfterEdit"][1]["location"] = "imgui:873" defs["igIsItemDeactivatedAfterEdit"][1]["namespace"] = "ImGui" defs["igIsItemDeactivatedAfterEdit"][1]["ov_cimguiname"] = "igIsItemDeactivatedAfterEdit" defs["igIsItemDeactivatedAfterEdit"][1]["ret"] = "bool" @@ -20550,7 +21509,7 @@ defs["igIsItemEdited"][1]["call_args"] = "()" defs["igIsItemEdited"][1]["cimguiname"] = "igIsItemEdited" defs["igIsItemEdited"][1]["defaults"] = {} defs["igIsItemEdited"][1]["funcname"] = "IsItemEdited" -defs["igIsItemEdited"][1]["location"] = "imgui:873" +defs["igIsItemEdited"][1]["location"] = "imgui:870" defs["igIsItemEdited"][1]["namespace"] = "ImGui" defs["igIsItemEdited"][1]["ov_cimguiname"] = "igIsItemEdited" defs["igIsItemEdited"][1]["ret"] = "bool" @@ -20566,7 +21525,7 @@ defs["igIsItemFocused"][1]["call_args"] = "()" defs["igIsItemFocused"][1]["cimguiname"] = "igIsItemFocused" defs["igIsItemFocused"][1]["defaults"] = {} defs["igIsItemFocused"][1]["funcname"] = "IsItemFocused" -defs["igIsItemFocused"][1]["location"] = "imgui:870" +defs["igIsItemFocused"][1]["location"] = "imgui:867" defs["igIsItemFocused"][1]["namespace"] = "ImGui" defs["igIsItemFocused"][1]["ov_cimguiname"] = "igIsItemFocused" defs["igIsItemFocused"][1]["ret"] = "bool" @@ -20586,7 +21545,7 @@ defs["igIsItemHovered"][1]["cimguiname"] = "igIsItemHovered" defs["igIsItemHovered"][1]["defaults"] = {} defs["igIsItemHovered"][1]["defaults"]["flags"] = "0" defs["igIsItemHovered"][1]["funcname"] = "IsItemHovered" -defs["igIsItemHovered"][1]["location"] = "imgui:868" +defs["igIsItemHovered"][1]["location"] = "imgui:865" defs["igIsItemHovered"][1]["namespace"] = "ImGui" defs["igIsItemHovered"][1]["ov_cimguiname"] = "igIsItemHovered" defs["igIsItemHovered"][1]["ret"] = "bool" @@ -20602,7 +21561,7 @@ defs["igIsItemToggledOpen"][1]["call_args"] = "()" defs["igIsItemToggledOpen"][1]["cimguiname"] = "igIsItemToggledOpen" defs["igIsItemToggledOpen"][1]["defaults"] = {} defs["igIsItemToggledOpen"][1]["funcname"] = "IsItemToggledOpen" -defs["igIsItemToggledOpen"][1]["location"] = "imgui:877" +defs["igIsItemToggledOpen"][1]["location"] = "imgui:874" defs["igIsItemToggledOpen"][1]["namespace"] = "ImGui" defs["igIsItemToggledOpen"][1]["ov_cimguiname"] = "igIsItemToggledOpen" defs["igIsItemToggledOpen"][1]["ret"] = "bool" @@ -20618,7 +21577,7 @@ defs["igIsItemToggledSelection"][1]["call_args"] = "()" defs["igIsItemToggledSelection"][1]["cimguiname"] = "igIsItemToggledSelection" defs["igIsItemToggledSelection"][1]["defaults"] = {} defs["igIsItemToggledSelection"][1]["funcname"] = "IsItemToggledSelection" -defs["igIsItemToggledSelection"][1]["location"] = "imgui_internal:2749" +defs["igIsItemToggledSelection"][1]["location"] = "imgui_internal:3045" defs["igIsItemToggledSelection"][1]["namespace"] = "ImGui" defs["igIsItemToggledSelection"][1]["ov_cimguiname"] = "igIsItemToggledSelection" defs["igIsItemToggledSelection"][1]["ret"] = "bool" @@ -20634,7 +21593,7 @@ defs["igIsItemVisible"][1]["call_args"] = "()" defs["igIsItemVisible"][1]["cimguiname"] = "igIsItemVisible" defs["igIsItemVisible"][1]["defaults"] = {} defs["igIsItemVisible"][1]["funcname"] = "IsItemVisible" -defs["igIsItemVisible"][1]["location"] = "imgui:872" +defs["igIsItemVisible"][1]["location"] = "imgui:869" defs["igIsItemVisible"][1]["namespace"] = "ImGui" defs["igIsItemVisible"][1]["ov_cimguiname"] = "igIsItemVisible" defs["igIsItemVisible"][1]["ret"] = "bool" @@ -20643,46 +21602,92 @@ defs["igIsItemVisible"][1]["stname"] = "" defs["igIsItemVisible"]["()"] = defs["igIsItemVisible"][1] defs["igIsKeyDown"] = {} defs["igIsKeyDown"][1] = {} -defs["igIsKeyDown"][1]["args"] = "(int user_key_index)" +defs["igIsKeyDown"][1]["args"] = "(ImGuiKey key)" defs["igIsKeyDown"][1]["argsT"] = {} defs["igIsKeyDown"][1]["argsT"][1] = {} -defs["igIsKeyDown"][1]["argsT"][1]["name"] = "user_key_index" -defs["igIsKeyDown"][1]["argsT"][1]["type"] = "int" -defs["igIsKeyDown"][1]["argsoriginal"] = "(int user_key_index)" -defs["igIsKeyDown"][1]["call_args"] = "(user_key_index)" +defs["igIsKeyDown"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyDown"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyDown"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyDown"][1]["call_args"] = "(key)" defs["igIsKeyDown"][1]["cimguiname"] = "igIsKeyDown" defs["igIsKeyDown"][1]["defaults"] = {} defs["igIsKeyDown"][1]["funcname"] = "IsKeyDown" -defs["igIsKeyDown"][1]["location"] = "imgui:921" +defs["igIsKeyDown"][1]["location"] = "imgui:922" defs["igIsKeyDown"][1]["namespace"] = "ImGui" -defs["igIsKeyDown"][1]["ov_cimguiname"] = "igIsKeyDown" +defs["igIsKeyDown"][1]["ov_cimguiname"] = "igIsKeyDown_Nil" defs["igIsKeyDown"][1]["ret"] = "bool" -defs["igIsKeyDown"][1]["signature"] = "(int)" +defs["igIsKeyDown"][1]["signature"] = "(ImGuiKey)" defs["igIsKeyDown"][1]["stname"] = "" -defs["igIsKeyDown"]["(int)"] = defs["igIsKeyDown"][1] +defs["igIsKeyDown"][2] = {} +defs["igIsKeyDown"][2]["args"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igIsKeyDown"][2]["argsT"] = {} +defs["igIsKeyDown"][2]["argsT"][1] = {} +defs["igIsKeyDown"][2]["argsT"][1]["name"] = "key" +defs["igIsKeyDown"][2]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyDown"][2]["argsT"][2] = {} +defs["igIsKeyDown"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsKeyDown"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsKeyDown"][2]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igIsKeyDown"][2]["call_args"] = "(key,owner_id)" +defs["igIsKeyDown"][2]["cimguiname"] = "igIsKeyDown" +defs["igIsKeyDown"][2]["defaults"] = {} +defs["igIsKeyDown"][2]["funcname"] = "IsKeyDown" +defs["igIsKeyDown"][2]["location"] = "imgui_internal:3150" +defs["igIsKeyDown"][2]["namespace"] = "ImGui" +defs["igIsKeyDown"][2]["ov_cimguiname"] = "igIsKeyDown_ID" +defs["igIsKeyDown"][2]["ret"] = "bool" +defs["igIsKeyDown"][2]["signature"] = "(ImGuiKey,ImGuiID)" +defs["igIsKeyDown"][2]["stname"] = "" +defs["igIsKeyDown"]["(ImGuiKey)"] = defs["igIsKeyDown"][1] +defs["igIsKeyDown"]["(ImGuiKey,ImGuiID)"] = defs["igIsKeyDown"][2] defs["igIsKeyPressed"] = {} defs["igIsKeyPressed"][1] = {} -defs["igIsKeyPressed"][1]["args"] = "(int user_key_index,bool repeat)" +defs["igIsKeyPressed"][1]["args"] = "(ImGuiKey key,bool repeat)" defs["igIsKeyPressed"][1]["argsT"] = {} defs["igIsKeyPressed"][1]["argsT"][1] = {} -defs["igIsKeyPressed"][1]["argsT"][1]["name"] = "user_key_index" -defs["igIsKeyPressed"][1]["argsT"][1]["type"] = "int" +defs["igIsKeyPressed"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyPressed"][1]["argsT"][1]["type"] = "ImGuiKey" defs["igIsKeyPressed"][1]["argsT"][2] = {} defs["igIsKeyPressed"][1]["argsT"][2]["name"] = "repeat" defs["igIsKeyPressed"][1]["argsT"][2]["type"] = "bool" -defs["igIsKeyPressed"][1]["argsoriginal"] = "(int user_key_index,bool repeat=true)" -defs["igIsKeyPressed"][1]["call_args"] = "(user_key_index,repeat)" +defs["igIsKeyPressed"][1]["argsoriginal"] = "(ImGuiKey key,bool repeat=true)" +defs["igIsKeyPressed"][1]["call_args"] = "(key,repeat)" defs["igIsKeyPressed"][1]["cimguiname"] = "igIsKeyPressed" defs["igIsKeyPressed"][1]["defaults"] = {} defs["igIsKeyPressed"][1]["defaults"]["repeat"] = "true" defs["igIsKeyPressed"][1]["funcname"] = "IsKeyPressed" -defs["igIsKeyPressed"][1]["location"] = "imgui:922" +defs["igIsKeyPressed"][1]["location"] = "imgui:923" defs["igIsKeyPressed"][1]["namespace"] = "ImGui" -defs["igIsKeyPressed"][1]["ov_cimguiname"] = "igIsKeyPressed" +defs["igIsKeyPressed"][1]["ov_cimguiname"] = "igIsKeyPressed_Bool" defs["igIsKeyPressed"][1]["ret"] = "bool" -defs["igIsKeyPressed"][1]["signature"] = "(int,bool)" +defs["igIsKeyPressed"][1]["signature"] = "(ImGuiKey,bool)" defs["igIsKeyPressed"][1]["stname"] = "" -defs["igIsKeyPressed"]["(int,bool)"] = defs["igIsKeyPressed"][1] +defs["igIsKeyPressed"][2] = {} +defs["igIsKeyPressed"][2]["args"] = "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igIsKeyPressed"][2]["argsT"] = {} +defs["igIsKeyPressed"][2]["argsT"][1] = {} +defs["igIsKeyPressed"][2]["argsT"][1]["name"] = "key" +defs["igIsKeyPressed"][2]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyPressed"][2]["argsT"][2] = {} +defs["igIsKeyPressed"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsKeyPressed"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsKeyPressed"][2]["argsT"][3] = {} +defs["igIsKeyPressed"][2]["argsT"][3]["name"] = "flags" +defs["igIsKeyPressed"][2]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igIsKeyPressed"][2]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags=0)" +defs["igIsKeyPressed"][2]["call_args"] = "(key,owner_id,flags)" +defs["igIsKeyPressed"][2]["cimguiname"] = "igIsKeyPressed" +defs["igIsKeyPressed"][2]["defaults"] = {} +defs["igIsKeyPressed"][2]["defaults"]["flags"] = "0" +defs["igIsKeyPressed"][2]["funcname"] = "IsKeyPressed" +defs["igIsKeyPressed"][2]["location"] = "imgui_internal:3151" +defs["igIsKeyPressed"][2]["namespace"] = "ImGui" +defs["igIsKeyPressed"][2]["ov_cimguiname"] = "igIsKeyPressed_ID" +defs["igIsKeyPressed"][2]["ret"] = "bool" +defs["igIsKeyPressed"][2]["signature"] = "(ImGuiKey,ImGuiID,ImGuiInputFlags)" +defs["igIsKeyPressed"][2]["stname"] = "" +defs["igIsKeyPressed"]["(ImGuiKey,ImGuiID,ImGuiInputFlags)"] = defs["igIsKeyPressed"][2] +defs["igIsKeyPressed"]["(ImGuiKey,bool)"] = defs["igIsKeyPressed"][1] defs["igIsKeyPressedMap"] = {} defs["igIsKeyPressedMap"][1] = {} defs["igIsKeyPressedMap"][1]["args"] = "(ImGuiKey key,bool repeat)" @@ -20699,7 +21704,7 @@ defs["igIsKeyPressedMap"][1]["cimguiname"] = "igIsKeyPressedMap" defs["igIsKeyPressedMap"][1]["defaults"] = {} defs["igIsKeyPressedMap"][1]["defaults"]["repeat"] = "true" defs["igIsKeyPressedMap"][1]["funcname"] = "IsKeyPressedMap" -defs["igIsKeyPressedMap"][1]["location"] = "imgui_internal:2831" +defs["igIsKeyPressedMap"][1]["location"] = "imgui_internal:3465" defs["igIsKeyPressedMap"][1]["namespace"] = "ImGui" defs["igIsKeyPressedMap"][1]["ov_cimguiname"] = "igIsKeyPressedMap" defs["igIsKeyPressedMap"][1]["ret"] = "bool" @@ -20708,23 +21713,82 @@ defs["igIsKeyPressedMap"][1]["stname"] = "" defs["igIsKeyPressedMap"]["(ImGuiKey,bool)"] = defs["igIsKeyPressedMap"][1] defs["igIsKeyReleased"] = {} defs["igIsKeyReleased"][1] = {} -defs["igIsKeyReleased"][1]["args"] = "(int user_key_index)" +defs["igIsKeyReleased"][1]["args"] = "(ImGuiKey key)" defs["igIsKeyReleased"][1]["argsT"] = {} defs["igIsKeyReleased"][1]["argsT"][1] = {} -defs["igIsKeyReleased"][1]["argsT"][1]["name"] = "user_key_index" -defs["igIsKeyReleased"][1]["argsT"][1]["type"] = "int" -defs["igIsKeyReleased"][1]["argsoriginal"] = "(int user_key_index)" -defs["igIsKeyReleased"][1]["call_args"] = "(user_key_index)" +defs["igIsKeyReleased"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyReleased"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyReleased"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyReleased"][1]["call_args"] = "(key)" defs["igIsKeyReleased"][1]["cimguiname"] = "igIsKeyReleased" defs["igIsKeyReleased"][1]["defaults"] = {} defs["igIsKeyReleased"][1]["funcname"] = "IsKeyReleased" -defs["igIsKeyReleased"][1]["location"] = "imgui:923" +defs["igIsKeyReleased"][1]["location"] = "imgui:924" defs["igIsKeyReleased"][1]["namespace"] = "ImGui" -defs["igIsKeyReleased"][1]["ov_cimguiname"] = "igIsKeyReleased" +defs["igIsKeyReleased"][1]["ov_cimguiname"] = "igIsKeyReleased_Nil" defs["igIsKeyReleased"][1]["ret"] = "bool" -defs["igIsKeyReleased"][1]["signature"] = "(int)" +defs["igIsKeyReleased"][1]["signature"] = "(ImGuiKey)" defs["igIsKeyReleased"][1]["stname"] = "" -defs["igIsKeyReleased"]["(int)"] = defs["igIsKeyReleased"][1] +defs["igIsKeyReleased"][2] = {} +defs["igIsKeyReleased"][2]["args"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igIsKeyReleased"][2]["argsT"] = {} +defs["igIsKeyReleased"][2]["argsT"][1] = {} +defs["igIsKeyReleased"][2]["argsT"][1]["name"] = "key" +defs["igIsKeyReleased"][2]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyReleased"][2]["argsT"][2] = {} +defs["igIsKeyReleased"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsKeyReleased"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsKeyReleased"][2]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igIsKeyReleased"][2]["call_args"] = "(key,owner_id)" +defs["igIsKeyReleased"][2]["cimguiname"] = "igIsKeyReleased" +defs["igIsKeyReleased"][2]["defaults"] = {} +defs["igIsKeyReleased"][2]["funcname"] = "IsKeyReleased" +defs["igIsKeyReleased"][2]["location"] = "imgui_internal:3152" +defs["igIsKeyReleased"][2]["namespace"] = "ImGui" +defs["igIsKeyReleased"][2]["ov_cimguiname"] = "igIsKeyReleased_ID" +defs["igIsKeyReleased"][2]["ret"] = "bool" +defs["igIsKeyReleased"][2]["signature"] = "(ImGuiKey,ImGuiID)" +defs["igIsKeyReleased"][2]["stname"] = "" +defs["igIsKeyReleased"]["(ImGuiKey)"] = defs["igIsKeyReleased"][1] +defs["igIsKeyReleased"]["(ImGuiKey,ImGuiID)"] = defs["igIsKeyReleased"][2] +defs["igIsKeyboardKey"] = {} +defs["igIsKeyboardKey"][1] = {} +defs["igIsKeyboardKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsKeyboardKey"][1]["argsT"] = {} +defs["igIsKeyboardKey"][1]["argsT"][1] = {} +defs["igIsKeyboardKey"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyboardKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyboardKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyboardKey"][1]["call_args"] = "(key)" +defs["igIsKeyboardKey"][1]["cimguiname"] = "igIsKeyboardKey" +defs["igIsKeyboardKey"][1]["defaults"] = {} +defs["igIsKeyboardKey"][1]["funcname"] = "IsKeyboardKey" +defs["igIsKeyboardKey"][1]["location"] = "imgui_internal:3103" +defs["igIsKeyboardKey"][1]["namespace"] = "ImGui" +defs["igIsKeyboardKey"][1]["ov_cimguiname"] = "igIsKeyboardKey" +defs["igIsKeyboardKey"][1]["ret"] = "bool" +defs["igIsKeyboardKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsKeyboardKey"][1]["stname"] = "" +defs["igIsKeyboardKey"]["(ImGuiKey)"] = defs["igIsKeyboardKey"][1] +defs["igIsLegacyKey"] = {} +defs["igIsLegacyKey"][1] = {} +defs["igIsLegacyKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsLegacyKey"][1]["argsT"] = {} +defs["igIsLegacyKey"][1]["argsT"][1] = {} +defs["igIsLegacyKey"][1]["argsT"][1]["name"] = "key" +defs["igIsLegacyKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsLegacyKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsLegacyKey"][1]["call_args"] = "(key)" +defs["igIsLegacyKey"][1]["cimguiname"] = "igIsLegacyKey" +defs["igIsLegacyKey"][1]["defaults"] = {} +defs["igIsLegacyKey"][1]["funcname"] = "IsLegacyKey" +defs["igIsLegacyKey"][1]["location"] = "imgui_internal:3102" +defs["igIsLegacyKey"][1]["namespace"] = "ImGui" +defs["igIsLegacyKey"][1]["ov_cimguiname"] = "igIsLegacyKey" +defs["igIsLegacyKey"][1]["ret"] = "bool" +defs["igIsLegacyKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsLegacyKey"][1]["stname"] = "" +defs["igIsLegacyKey"]["(ImGuiKey)"] = defs["igIsLegacyKey"][1] defs["igIsMouseClicked"] = {} defs["igIsMouseClicked"][1] = {} defs["igIsMouseClicked"][1]["args"] = "(ImGuiMouseButton button,bool repeat)" @@ -20741,12 +21805,37 @@ defs["igIsMouseClicked"][1]["cimguiname"] = "igIsMouseClicked" defs["igIsMouseClicked"][1]["defaults"] = {} defs["igIsMouseClicked"][1]["defaults"]["repeat"] = "false" defs["igIsMouseClicked"][1]["funcname"] = "IsMouseClicked" -defs["igIsMouseClicked"][1]["location"] = "imgui:932" +defs["igIsMouseClicked"][1]["location"] = "imgui:934" defs["igIsMouseClicked"][1]["namespace"] = "ImGui" -defs["igIsMouseClicked"][1]["ov_cimguiname"] = "igIsMouseClicked" +defs["igIsMouseClicked"][1]["ov_cimguiname"] = "igIsMouseClicked_Bool" defs["igIsMouseClicked"][1]["ret"] = "bool" defs["igIsMouseClicked"][1]["signature"] = "(ImGuiMouseButton,bool)" defs["igIsMouseClicked"][1]["stname"] = "" +defs["igIsMouseClicked"][2] = {} +defs["igIsMouseClicked"][2]["args"] = "(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igIsMouseClicked"][2]["argsT"] = {} +defs["igIsMouseClicked"][2]["argsT"][1] = {} +defs["igIsMouseClicked"][2]["argsT"][1]["name"] = "button" +defs["igIsMouseClicked"][2]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseClicked"][2]["argsT"][2] = {} +defs["igIsMouseClicked"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsMouseClicked"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsMouseClicked"][2]["argsT"][3] = {} +defs["igIsMouseClicked"][2]["argsT"][3]["name"] = "flags" +defs["igIsMouseClicked"][2]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igIsMouseClicked"][2]["argsoriginal"] = "(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags=0)" +defs["igIsMouseClicked"][2]["call_args"] = "(button,owner_id,flags)" +defs["igIsMouseClicked"][2]["cimguiname"] = "igIsMouseClicked" +defs["igIsMouseClicked"][2]["defaults"] = {} +defs["igIsMouseClicked"][2]["defaults"]["flags"] = "0" +defs["igIsMouseClicked"][2]["funcname"] = "IsMouseClicked" +defs["igIsMouseClicked"][2]["location"] = "imgui_internal:3154" +defs["igIsMouseClicked"][2]["namespace"] = "ImGui" +defs["igIsMouseClicked"][2]["ov_cimguiname"] = "igIsMouseClicked_ID" +defs["igIsMouseClicked"][2]["ret"] = "bool" +defs["igIsMouseClicked"][2]["signature"] = "(ImGuiMouseButton,ImGuiID,ImGuiInputFlags)" +defs["igIsMouseClicked"][2]["stname"] = "" +defs["igIsMouseClicked"]["(ImGuiMouseButton,ImGuiID,ImGuiInputFlags)"] = defs["igIsMouseClicked"][2] defs["igIsMouseClicked"]["(ImGuiMouseButton,bool)"] = defs["igIsMouseClicked"][1] defs["igIsMouseDoubleClicked"] = {} defs["igIsMouseDoubleClicked"][1] = {} @@ -20760,7 +21849,7 @@ defs["igIsMouseDoubleClicked"][1]["call_args"] = "(button)" defs["igIsMouseDoubleClicked"][1]["cimguiname"] = "igIsMouseDoubleClicked" defs["igIsMouseDoubleClicked"][1]["defaults"] = {} defs["igIsMouseDoubleClicked"][1]["funcname"] = "IsMouseDoubleClicked" -defs["igIsMouseDoubleClicked"][1]["location"] = "imgui:934" +defs["igIsMouseDoubleClicked"][1]["location"] = "imgui:936" defs["igIsMouseDoubleClicked"][1]["namespace"] = "ImGui" defs["igIsMouseDoubleClicked"][1]["ov_cimguiname"] = "igIsMouseDoubleClicked" defs["igIsMouseDoubleClicked"][1]["ret"] = "bool" @@ -20779,13 +21868,34 @@ defs["igIsMouseDown"][1]["call_args"] = "(button)" defs["igIsMouseDown"][1]["cimguiname"] = "igIsMouseDown" defs["igIsMouseDown"][1]["defaults"] = {} defs["igIsMouseDown"][1]["funcname"] = "IsMouseDown" -defs["igIsMouseDown"][1]["location"] = "imgui:931" +defs["igIsMouseDown"][1]["location"] = "imgui:933" defs["igIsMouseDown"][1]["namespace"] = "ImGui" -defs["igIsMouseDown"][1]["ov_cimguiname"] = "igIsMouseDown" +defs["igIsMouseDown"][1]["ov_cimguiname"] = "igIsMouseDown_Nil" defs["igIsMouseDown"][1]["ret"] = "bool" defs["igIsMouseDown"][1]["signature"] = "(ImGuiMouseButton)" defs["igIsMouseDown"][1]["stname"] = "" +defs["igIsMouseDown"][2] = {} +defs["igIsMouseDown"][2]["args"] = "(ImGuiMouseButton button,ImGuiID owner_id)" +defs["igIsMouseDown"][2]["argsT"] = {} +defs["igIsMouseDown"][2]["argsT"][1] = {} +defs["igIsMouseDown"][2]["argsT"][1]["name"] = "button" +defs["igIsMouseDown"][2]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseDown"][2]["argsT"][2] = {} +defs["igIsMouseDown"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsMouseDown"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsMouseDown"][2]["argsoriginal"] = "(ImGuiMouseButton button,ImGuiID owner_id)" +defs["igIsMouseDown"][2]["call_args"] = "(button,owner_id)" +defs["igIsMouseDown"][2]["cimguiname"] = "igIsMouseDown" +defs["igIsMouseDown"][2]["defaults"] = {} +defs["igIsMouseDown"][2]["funcname"] = "IsMouseDown" +defs["igIsMouseDown"][2]["location"] = "imgui_internal:3153" +defs["igIsMouseDown"][2]["namespace"] = "ImGui" +defs["igIsMouseDown"][2]["ov_cimguiname"] = "igIsMouseDown_ID" +defs["igIsMouseDown"][2]["ret"] = "bool" +defs["igIsMouseDown"][2]["signature"] = "(ImGuiMouseButton,ImGuiID)" +defs["igIsMouseDown"][2]["stname"] = "" defs["igIsMouseDown"]["(ImGuiMouseButton)"] = defs["igIsMouseDown"][1] +defs["igIsMouseDown"]["(ImGuiMouseButton,ImGuiID)"] = defs["igIsMouseDown"][2] defs["igIsMouseDragPastThreshold"] = {} defs["igIsMouseDragPastThreshold"][1] = {} defs["igIsMouseDragPastThreshold"][1]["args"] = "(ImGuiMouseButton button,float lock_threshold)" @@ -20802,7 +21912,7 @@ defs["igIsMouseDragPastThreshold"][1]["cimguiname"] = "igIsMouseDragPastThreshol defs["igIsMouseDragPastThreshold"][1]["defaults"] = {} defs["igIsMouseDragPastThreshold"][1]["defaults"]["lock_threshold"] = "-1.0f" defs["igIsMouseDragPastThreshold"][1]["funcname"] = "IsMouseDragPastThreshold" -defs["igIsMouseDragPastThreshold"][1]["location"] = "imgui_internal:2830" +defs["igIsMouseDragPastThreshold"][1]["location"] = "imgui_internal:3119" defs["igIsMouseDragPastThreshold"][1]["namespace"] = "ImGui" defs["igIsMouseDragPastThreshold"][1]["ov_cimguiname"] = "igIsMouseDragPastThreshold" defs["igIsMouseDragPastThreshold"][1]["ret"] = "bool" @@ -20825,7 +21935,7 @@ defs["igIsMouseDragging"][1]["cimguiname"] = "igIsMouseDragging" defs["igIsMouseDragging"][1]["defaults"] = {} defs["igIsMouseDragging"][1]["defaults"]["lock_threshold"] = "-1.0f" defs["igIsMouseDragging"][1]["funcname"] = "IsMouseDragging" -defs["igIsMouseDragging"][1]["location"] = "imgui:941" +defs["igIsMouseDragging"][1]["location"] = "imgui:943" defs["igIsMouseDragging"][1]["namespace"] = "ImGui" defs["igIsMouseDragging"][1]["ov_cimguiname"] = "igIsMouseDragging" defs["igIsMouseDragging"][1]["ret"] = "bool" @@ -20851,13 +21961,32 @@ defs["igIsMouseHoveringRect"][1]["cimguiname"] = "igIsMouseHoveringRect" defs["igIsMouseHoveringRect"][1]["defaults"] = {} defs["igIsMouseHoveringRect"][1]["defaults"]["clip"] = "true" defs["igIsMouseHoveringRect"][1]["funcname"] = "IsMouseHoveringRect" -defs["igIsMouseHoveringRect"][1]["location"] = "imgui:936" +defs["igIsMouseHoveringRect"][1]["location"] = "imgui:938" defs["igIsMouseHoveringRect"][1]["namespace"] = "ImGui" defs["igIsMouseHoveringRect"][1]["ov_cimguiname"] = "igIsMouseHoveringRect" defs["igIsMouseHoveringRect"][1]["ret"] = "bool" defs["igIsMouseHoveringRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" defs["igIsMouseHoveringRect"][1]["stname"] = "" defs["igIsMouseHoveringRect"]["(const ImVec2,const ImVec2,bool)"] = defs["igIsMouseHoveringRect"][1] +defs["igIsMouseKey"] = {} +defs["igIsMouseKey"][1] = {} +defs["igIsMouseKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsMouseKey"][1]["argsT"] = {} +defs["igIsMouseKey"][1]["argsT"][1] = {} +defs["igIsMouseKey"][1]["argsT"][1]["name"] = "key" +defs["igIsMouseKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsMouseKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsMouseKey"][1]["call_args"] = "(key)" +defs["igIsMouseKey"][1]["cimguiname"] = "igIsMouseKey" +defs["igIsMouseKey"][1]["defaults"] = {} +defs["igIsMouseKey"][1]["funcname"] = "IsMouseKey" +defs["igIsMouseKey"][1]["location"] = "imgui_internal:3105" +defs["igIsMouseKey"][1]["namespace"] = "ImGui" +defs["igIsMouseKey"][1]["ov_cimguiname"] = "igIsMouseKey" +defs["igIsMouseKey"][1]["ret"] = "bool" +defs["igIsMouseKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsMouseKey"][1]["stname"] = "" +defs["igIsMouseKey"]["(ImGuiKey)"] = defs["igIsMouseKey"][1] defs["igIsMousePosValid"] = {} defs["igIsMousePosValid"][1] = {} defs["igIsMousePosValid"][1]["args"] = "(const ImVec2* mouse_pos)" @@ -20871,7 +22000,7 @@ defs["igIsMousePosValid"][1]["cimguiname"] = "igIsMousePosValid" defs["igIsMousePosValid"][1]["defaults"] = {} defs["igIsMousePosValid"][1]["defaults"]["mouse_pos"] = "NULL" defs["igIsMousePosValid"][1]["funcname"] = "IsMousePosValid" -defs["igIsMousePosValid"][1]["location"] = "imgui:937" +defs["igIsMousePosValid"][1]["location"] = "imgui:939" defs["igIsMousePosValid"][1]["namespace"] = "ImGui" defs["igIsMousePosValid"][1]["ov_cimguiname"] = "igIsMousePosValid" defs["igIsMousePosValid"][1]["ret"] = "bool" @@ -20890,54 +22019,72 @@ defs["igIsMouseReleased"][1]["call_args"] = "(button)" defs["igIsMouseReleased"][1]["cimguiname"] = "igIsMouseReleased" defs["igIsMouseReleased"][1]["defaults"] = {} defs["igIsMouseReleased"][1]["funcname"] = "IsMouseReleased" -defs["igIsMouseReleased"][1]["location"] = "imgui:933" +defs["igIsMouseReleased"][1]["location"] = "imgui:935" defs["igIsMouseReleased"][1]["namespace"] = "ImGui" -defs["igIsMouseReleased"][1]["ov_cimguiname"] = "igIsMouseReleased" +defs["igIsMouseReleased"][1]["ov_cimguiname"] = "igIsMouseReleased_Nil" defs["igIsMouseReleased"][1]["ret"] = "bool" defs["igIsMouseReleased"][1]["signature"] = "(ImGuiMouseButton)" defs["igIsMouseReleased"][1]["stname"] = "" +defs["igIsMouseReleased"][2] = {} +defs["igIsMouseReleased"][2]["args"] = "(ImGuiMouseButton button,ImGuiID owner_id)" +defs["igIsMouseReleased"][2]["argsT"] = {} +defs["igIsMouseReleased"][2]["argsT"][1] = {} +defs["igIsMouseReleased"][2]["argsT"][1]["name"] = "button" +defs["igIsMouseReleased"][2]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseReleased"][2]["argsT"][2] = {} +defs["igIsMouseReleased"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsMouseReleased"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsMouseReleased"][2]["argsoriginal"] = "(ImGuiMouseButton button,ImGuiID owner_id)" +defs["igIsMouseReleased"][2]["call_args"] = "(button,owner_id)" +defs["igIsMouseReleased"][2]["cimguiname"] = "igIsMouseReleased" +defs["igIsMouseReleased"][2]["defaults"] = {} +defs["igIsMouseReleased"][2]["funcname"] = "IsMouseReleased" +defs["igIsMouseReleased"][2]["location"] = "imgui_internal:3155" +defs["igIsMouseReleased"][2]["namespace"] = "ImGui" +defs["igIsMouseReleased"][2]["ov_cimguiname"] = "igIsMouseReleased_ID" +defs["igIsMouseReleased"][2]["ret"] = "bool" +defs["igIsMouseReleased"][2]["signature"] = "(ImGuiMouseButton,ImGuiID)" +defs["igIsMouseReleased"][2]["stname"] = "" defs["igIsMouseReleased"]["(ImGuiMouseButton)"] = defs["igIsMouseReleased"][1] -defs["igIsNavInputDown"] = {} -defs["igIsNavInputDown"][1] = {} -defs["igIsNavInputDown"][1]["args"] = "(ImGuiNavInput n)" -defs["igIsNavInputDown"][1]["argsT"] = {} -defs["igIsNavInputDown"][1]["argsT"][1] = {} -defs["igIsNavInputDown"][1]["argsT"][1]["name"] = "n" -defs["igIsNavInputDown"][1]["argsT"][1]["type"] = "ImGuiNavInput" -defs["igIsNavInputDown"][1]["argsoriginal"] = "(ImGuiNavInput n)" -defs["igIsNavInputDown"][1]["call_args"] = "(n)" -defs["igIsNavInputDown"][1]["cimguiname"] = "igIsNavInputDown" -defs["igIsNavInputDown"][1]["defaults"] = {} -defs["igIsNavInputDown"][1]["funcname"] = "IsNavInputDown" -defs["igIsNavInputDown"][1]["location"] = "imgui_internal:2832" -defs["igIsNavInputDown"][1]["namespace"] = "ImGui" -defs["igIsNavInputDown"][1]["ov_cimguiname"] = "igIsNavInputDown" -defs["igIsNavInputDown"][1]["ret"] = "bool" -defs["igIsNavInputDown"][1]["signature"] = "(ImGuiNavInput)" -defs["igIsNavInputDown"][1]["stname"] = "" -defs["igIsNavInputDown"]["(ImGuiNavInput)"] = defs["igIsNavInputDown"][1] -defs["igIsNavInputTest"] = {} -defs["igIsNavInputTest"][1] = {} -defs["igIsNavInputTest"][1]["args"] = "(ImGuiNavInput n,ImGuiInputReadMode rm)" -defs["igIsNavInputTest"][1]["argsT"] = {} -defs["igIsNavInputTest"][1]["argsT"][1] = {} -defs["igIsNavInputTest"][1]["argsT"][1]["name"] = "n" -defs["igIsNavInputTest"][1]["argsT"][1]["type"] = "ImGuiNavInput" -defs["igIsNavInputTest"][1]["argsT"][2] = {} -defs["igIsNavInputTest"][1]["argsT"][2]["name"] = "rm" -defs["igIsNavInputTest"][1]["argsT"][2]["type"] = "ImGuiInputReadMode" -defs["igIsNavInputTest"][1]["argsoriginal"] = "(ImGuiNavInput n,ImGuiInputReadMode rm)" -defs["igIsNavInputTest"][1]["call_args"] = "(n,rm)" -defs["igIsNavInputTest"][1]["cimguiname"] = "igIsNavInputTest" -defs["igIsNavInputTest"][1]["defaults"] = {} -defs["igIsNavInputTest"][1]["funcname"] = "IsNavInputTest" -defs["igIsNavInputTest"][1]["location"] = "imgui_internal:2833" -defs["igIsNavInputTest"][1]["namespace"] = "ImGui" -defs["igIsNavInputTest"][1]["ov_cimguiname"] = "igIsNavInputTest" -defs["igIsNavInputTest"][1]["ret"] = "bool" -defs["igIsNavInputTest"][1]["signature"] = "(ImGuiNavInput,ImGuiInputReadMode)" -defs["igIsNavInputTest"][1]["stname"] = "" -defs["igIsNavInputTest"]["(ImGuiNavInput,ImGuiInputReadMode)"] = defs["igIsNavInputTest"][1] +defs["igIsMouseReleased"]["(ImGuiMouseButton,ImGuiID)"] = defs["igIsMouseReleased"][2] +defs["igIsNamedKey"] = {} +defs["igIsNamedKey"][1] = {} +defs["igIsNamedKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsNamedKey"][1]["argsT"] = {} +defs["igIsNamedKey"][1]["argsT"][1] = {} +defs["igIsNamedKey"][1]["argsT"][1]["name"] = "key" +defs["igIsNamedKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsNamedKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsNamedKey"][1]["call_args"] = "(key)" +defs["igIsNamedKey"][1]["cimguiname"] = "igIsNamedKey" +defs["igIsNamedKey"][1]["defaults"] = {} +defs["igIsNamedKey"][1]["funcname"] = "IsNamedKey" +defs["igIsNamedKey"][1]["location"] = "imgui_internal:3100" +defs["igIsNamedKey"][1]["namespace"] = "ImGui" +defs["igIsNamedKey"][1]["ov_cimguiname"] = "igIsNamedKey" +defs["igIsNamedKey"][1]["ret"] = "bool" +defs["igIsNamedKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsNamedKey"][1]["stname"] = "" +defs["igIsNamedKey"]["(ImGuiKey)"] = defs["igIsNamedKey"][1] +defs["igIsNamedKeyOrModKey"] = {} +defs["igIsNamedKeyOrModKey"][1] = {} +defs["igIsNamedKeyOrModKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsNamedKeyOrModKey"][1]["argsT"] = {} +defs["igIsNamedKeyOrModKey"][1]["argsT"][1] = {} +defs["igIsNamedKeyOrModKey"][1]["argsT"][1]["name"] = "key" +defs["igIsNamedKeyOrModKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsNamedKeyOrModKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsNamedKeyOrModKey"][1]["call_args"] = "(key)" +defs["igIsNamedKeyOrModKey"][1]["cimguiname"] = "igIsNamedKeyOrModKey" +defs["igIsNamedKeyOrModKey"][1]["defaults"] = {} +defs["igIsNamedKeyOrModKey"][1]["funcname"] = "IsNamedKeyOrModKey" +defs["igIsNamedKeyOrModKey"][1]["location"] = "imgui_internal:3101" +defs["igIsNamedKeyOrModKey"][1]["namespace"] = "ImGui" +defs["igIsNamedKeyOrModKey"][1]["ov_cimguiname"] = "igIsNamedKeyOrModKey" +defs["igIsNamedKeyOrModKey"][1]["ret"] = "bool" +defs["igIsNamedKeyOrModKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsNamedKeyOrModKey"][1]["stname"] = "" +defs["igIsNamedKeyOrModKey"]["(ImGuiKey)"] = defs["igIsNamedKeyOrModKey"][1] defs["igIsPopupOpen"] = {} defs["igIsPopupOpen"][1] = {} defs["igIsPopupOpen"][1]["args"] = "(const char* str_id,ImGuiPopupFlags flags)" @@ -20954,9 +22101,9 @@ defs["igIsPopupOpen"][1]["cimguiname"] = "igIsPopupOpen" defs["igIsPopupOpen"][1]["defaults"] = {} defs["igIsPopupOpen"][1]["defaults"]["flags"] = "0" defs["igIsPopupOpen"][1]["funcname"] = "IsPopupOpen" -defs["igIsPopupOpen"][1]["location"] = "imgui:721" +defs["igIsPopupOpen"][1]["location"] = "imgui:723" defs["igIsPopupOpen"][1]["namespace"] = "ImGui" -defs["igIsPopupOpen"][1]["ov_cimguiname"] = "igIsPopupOpenStr" +defs["igIsPopupOpen"][1]["ov_cimguiname"] = "igIsPopupOpen_Str" defs["igIsPopupOpen"][1]["ret"] = "bool" defs["igIsPopupOpen"][1]["signature"] = "(const char*,ImGuiPopupFlags)" defs["igIsPopupOpen"][1]["stname"] = "" @@ -20974,9 +22121,9 @@ defs["igIsPopupOpen"][2]["call_args"] = "(id,popup_flags)" defs["igIsPopupOpen"][2]["cimguiname"] = "igIsPopupOpen" defs["igIsPopupOpen"][2]["defaults"] = {} defs["igIsPopupOpen"][2]["funcname"] = "IsPopupOpen" -defs["igIsPopupOpen"][2]["location"] = "imgui_internal:2780" +defs["igIsPopupOpen"][2]["location"] = "imgui_internal:3065" defs["igIsPopupOpen"][2]["namespace"] = "ImGui" -defs["igIsPopupOpen"][2]["ov_cimguiname"] = "igIsPopupOpenID" +defs["igIsPopupOpen"][2]["ov_cimguiname"] = "igIsPopupOpen_ID" defs["igIsPopupOpen"][2]["ret"] = "bool" defs["igIsPopupOpen"][2]["signature"] = "(ImGuiID,ImGuiPopupFlags)" defs["igIsPopupOpen"][2]["stname"] = "" @@ -20994,9 +22141,9 @@ defs["igIsRectVisible"][1]["call_args"] = "(size)" defs["igIsRectVisible"][1]["cimguiname"] = "igIsRectVisible" defs["igIsRectVisible"][1]["defaults"] = {} defs["igIsRectVisible"][1]["funcname"] = "IsRectVisible" -defs["igIsRectVisible"][1]["location"] = "imgui:893" +defs["igIsRectVisible"][1]["location"] = "imgui:896" defs["igIsRectVisible"][1]["namespace"] = "ImGui" -defs["igIsRectVisible"][1]["ov_cimguiname"] = "igIsRectVisibleNil" +defs["igIsRectVisible"][1]["ov_cimguiname"] = "igIsRectVisible_Nil" defs["igIsRectVisible"][1]["ret"] = "bool" defs["igIsRectVisible"][1]["signature"] = "(const ImVec2)" defs["igIsRectVisible"][1]["stname"] = "" @@ -21014,9 +22161,9 @@ defs["igIsRectVisible"][2]["call_args"] = "(rect_min,rect_max)" defs["igIsRectVisible"][2]["cimguiname"] = "igIsRectVisible" defs["igIsRectVisible"][2]["defaults"] = {} defs["igIsRectVisible"][2]["funcname"] = "IsRectVisible" -defs["igIsRectVisible"][2]["location"] = "imgui:894" +defs["igIsRectVisible"][2]["location"] = "imgui:897" defs["igIsRectVisible"][2]["namespace"] = "ImGui" -defs["igIsRectVisible"][2]["ov_cimguiname"] = "igIsRectVisibleVec2" +defs["igIsRectVisible"][2]["ov_cimguiname"] = "igIsRectVisible_Vec2" defs["igIsRectVisible"][2]["ret"] = "bool" defs["igIsRectVisible"][2]["signature"] = "(const ImVec2,const ImVec2)" defs["igIsRectVisible"][2]["stname"] = "" @@ -21037,7 +22184,7 @@ defs["igIsWindowAbove"][1]["call_args"] = "(potential_above,potential_below)" defs["igIsWindowAbove"][1]["cimguiname"] = "igIsWindowAbove" defs["igIsWindowAbove"][1]["defaults"] = {} defs["igIsWindowAbove"][1]["funcname"] = "IsWindowAbove" -defs["igIsWindowAbove"][1]["location"] = "imgui_internal:2652" +defs["igIsWindowAbove"][1]["location"] = "imgui_internal:2940" defs["igIsWindowAbove"][1]["namespace"] = "ImGui" defs["igIsWindowAbove"][1]["ov_cimguiname"] = "igIsWindowAbove" defs["igIsWindowAbove"][1]["ret"] = "bool" @@ -21053,7 +22200,7 @@ defs["igIsWindowAppearing"][1]["call_args"] = "()" defs["igIsWindowAppearing"][1]["cimguiname"] = "igIsWindowAppearing" defs["igIsWindowAppearing"][1]["defaults"] = {} defs["igIsWindowAppearing"][1]["funcname"] = "IsWindowAppearing" -defs["igIsWindowAppearing"][1]["location"] = "imgui:359" +defs["igIsWindowAppearing"][1]["location"] = "imgui:353" defs["igIsWindowAppearing"][1]["namespace"] = "ImGui" defs["igIsWindowAppearing"][1]["ov_cimguiname"] = "igIsWindowAppearing" defs["igIsWindowAppearing"][1]["ret"] = "bool" @@ -21081,7 +22228,7 @@ defs["igIsWindowChildOf"][1]["call_args"] = "(window,potential_parent,popup_hier defs["igIsWindowChildOf"][1]["cimguiname"] = "igIsWindowChildOf" defs["igIsWindowChildOf"][1]["defaults"] = {} defs["igIsWindowChildOf"][1]["funcname"] = "IsWindowChildOf" -defs["igIsWindowChildOf"][1]["location"] = "imgui_internal:2650" +defs["igIsWindowChildOf"][1]["location"] = "imgui_internal:2938" defs["igIsWindowChildOf"][1]["namespace"] = "ImGui" defs["igIsWindowChildOf"][1]["ov_cimguiname"] = "igIsWindowChildOf" defs["igIsWindowChildOf"][1]["ret"] = "bool" @@ -21097,7 +22244,7 @@ defs["igIsWindowCollapsed"][1]["call_args"] = "()" defs["igIsWindowCollapsed"][1]["cimguiname"] = "igIsWindowCollapsed" defs["igIsWindowCollapsed"][1]["defaults"] = {} defs["igIsWindowCollapsed"][1]["funcname"] = "IsWindowCollapsed" -defs["igIsWindowCollapsed"][1]["location"] = "imgui:360" +defs["igIsWindowCollapsed"][1]["location"] = "imgui:354" defs["igIsWindowCollapsed"][1]["namespace"] = "ImGui" defs["igIsWindowCollapsed"][1]["ov_cimguiname"] = "igIsWindowCollapsed" defs["igIsWindowCollapsed"][1]["ret"] = "bool" @@ -21113,7 +22260,7 @@ defs["igIsWindowDocked"][1]["call_args"] = "()" defs["igIsWindowDocked"][1]["cimguiname"] = "igIsWindowDocked" defs["igIsWindowDocked"][1]["defaults"] = {} defs["igIsWindowDocked"][1]["funcname"] = "IsWindowDocked" -defs["igIsWindowDocked"][1]["location"] = "imgui:823" +defs["igIsWindowDocked"][1]["location"] = "imgui:820" defs["igIsWindowDocked"][1]["namespace"] = "ImGui" defs["igIsWindowDocked"][1]["ov_cimguiname"] = "igIsWindowDocked" defs["igIsWindowDocked"][1]["ret"] = "bool" @@ -21133,7 +22280,7 @@ defs["igIsWindowFocused"][1]["cimguiname"] = "igIsWindowFocused" defs["igIsWindowFocused"][1]["defaults"] = {} defs["igIsWindowFocused"][1]["defaults"]["flags"] = "0" defs["igIsWindowFocused"][1]["funcname"] = "IsWindowFocused" -defs["igIsWindowFocused"][1]["location"] = "imgui:361" +defs["igIsWindowFocused"][1]["location"] = "imgui:355" defs["igIsWindowFocused"][1]["namespace"] = "ImGui" defs["igIsWindowFocused"][1]["ov_cimguiname"] = "igIsWindowFocused" defs["igIsWindowFocused"][1]["ret"] = "bool" @@ -21153,7 +22300,7 @@ defs["igIsWindowHovered"][1]["cimguiname"] = "igIsWindowHovered" defs["igIsWindowHovered"][1]["defaults"] = {} defs["igIsWindowHovered"][1]["defaults"]["flags"] = "0" defs["igIsWindowHovered"][1]["funcname"] = "IsWindowHovered" -defs["igIsWindowHovered"][1]["location"] = "imgui:362" +defs["igIsWindowHovered"][1]["location"] = "imgui:356" defs["igIsWindowHovered"][1]["namespace"] = "ImGui" defs["igIsWindowHovered"][1]["ov_cimguiname"] = "igIsWindowHovered" defs["igIsWindowHovered"][1]["ret"] = "bool" @@ -21172,7 +22319,7 @@ defs["igIsWindowNavFocusable"][1]["call_args"] = "(window)" defs["igIsWindowNavFocusable"][1]["cimguiname"] = "igIsWindowNavFocusable" defs["igIsWindowNavFocusable"][1]["defaults"] = {} defs["igIsWindowNavFocusable"][1]["funcname"] = "IsWindowNavFocusable" -defs["igIsWindowNavFocusable"][1]["location"] = "imgui_internal:2653" +defs["igIsWindowNavFocusable"][1]["location"] = "imgui_internal:2941" defs["igIsWindowNavFocusable"][1]["namespace"] = "ImGui" defs["igIsWindowNavFocusable"][1]["ov_cimguiname"] = "igIsWindowNavFocusable" defs["igIsWindowNavFocusable"][1]["ret"] = "bool" @@ -21194,7 +22341,7 @@ defs["igIsWindowWithinBeginStackOf"][1]["call_args"] = "(window,potential_parent defs["igIsWindowWithinBeginStackOf"][1]["cimguiname"] = "igIsWindowWithinBeginStackOf" defs["igIsWindowWithinBeginStackOf"][1]["defaults"] = {} defs["igIsWindowWithinBeginStackOf"][1]["funcname"] = "IsWindowWithinBeginStackOf" -defs["igIsWindowWithinBeginStackOf"][1]["location"] = "imgui_internal:2651" +defs["igIsWindowWithinBeginStackOf"][1]["location"] = "imgui_internal:2939" defs["igIsWindowWithinBeginStackOf"][1]["namespace"] = "ImGui" defs["igIsWindowWithinBeginStackOf"][1]["ov_cimguiname"] = "igIsWindowWithinBeginStackOf" defs["igIsWindowWithinBeginStackOf"][1]["ret"] = "bool" @@ -21224,7 +22371,7 @@ defs["igItemAdd"][1]["defaults"] = {} defs["igItemAdd"][1]["defaults"]["extra_flags"] = "0" defs["igItemAdd"][1]["defaults"]["nav_bb"] = "NULL" defs["igItemAdd"][1]["funcname"] = "ItemAdd" -defs["igItemAdd"][1]["location"] = "imgui_internal:2742" +defs["igItemAdd"][1]["location"] = "imgui_internal:3038" defs["igItemAdd"][1]["namespace"] = "ImGui" defs["igItemAdd"][1]["ov_cimguiname"] = "igItemAdd" defs["igItemAdd"][1]["ret"] = "bool" @@ -21246,7 +22393,7 @@ defs["igItemHoverable"][1]["call_args"] = "(bb,id)" defs["igItemHoverable"][1]["cimguiname"] = "igItemHoverable" defs["igItemHoverable"][1]["defaults"] = {} defs["igItemHoverable"][1]["funcname"] = "ItemHoverable" -defs["igItemHoverable"][1]["location"] = "imgui_internal:2743" +defs["igItemHoverable"][1]["location"] = "imgui_internal:3039" defs["igItemHoverable"][1]["namespace"] = "ImGui" defs["igItemHoverable"][1]["ov_cimguiname"] = "igItemHoverable" defs["igItemHoverable"][1]["ret"] = "bool" @@ -21269,9 +22416,9 @@ defs["igItemSize"][1]["cimguiname"] = "igItemSize" defs["igItemSize"][1]["defaults"] = {} defs["igItemSize"][1]["defaults"]["text_baseline_y"] = "-1.0f" defs["igItemSize"][1]["funcname"] = "ItemSize" -defs["igItemSize"][1]["location"] = "imgui_internal:2740" +defs["igItemSize"][1]["location"] = "imgui_internal:3036" defs["igItemSize"][1]["namespace"] = "ImGui" -defs["igItemSize"][1]["ov_cimguiname"] = "igItemSizeVec2" +defs["igItemSize"][1]["ov_cimguiname"] = "igItemSize_Vec2" defs["igItemSize"][1]["ret"] = "void" defs["igItemSize"][1]["signature"] = "(const ImVec2,float)" defs["igItemSize"][1]["stname"] = "" @@ -21290,9 +22437,9 @@ defs["igItemSize"][2]["cimguiname"] = "igItemSize" defs["igItemSize"][2]["defaults"] = {} defs["igItemSize"][2]["defaults"]["text_baseline_y"] = "-1.0f" defs["igItemSize"][2]["funcname"] = "ItemSize" -defs["igItemSize"][2]["location"] = "imgui_internal:2741" +defs["igItemSize"][2]["location"] = "imgui_internal:3037" defs["igItemSize"][2]["namespace"] = "ImGui" -defs["igItemSize"][2]["ov_cimguiname"] = "igItemSizeRect" +defs["igItemSize"][2]["ov_cimguiname"] = "igItemSize_Rect" defs["igItemSize"][2]["ret"] = "void" defs["igItemSize"][2]["signature"] = "(const ImRect,float)" defs["igItemSize"][2]["stname"] = "" @@ -21310,7 +22457,7 @@ defs["igKeepAliveID"][1]["call_args"] = "(id)" defs["igKeepAliveID"][1]["cimguiname"] = "igKeepAliveID" defs["igKeepAliveID"][1]["defaults"] = {} defs["igKeepAliveID"][1]["funcname"] = "KeepAliveID" -defs["igKeepAliveID"][1]["location"] = "imgui_internal:2734" +defs["igKeepAliveID"][1]["location"] = "imgui_internal:3030" defs["igKeepAliveID"][1]["namespace"] = "ImGui" defs["igKeepAliveID"][1]["ov_cimguiname"] = "igKeepAliveID" defs["igKeepAliveID"][1]["ret"] = "void" @@ -21336,7 +22483,7 @@ defs["igLabelText"][1]["cimguiname"] = "igLabelText" defs["igLabelText"][1]["defaults"] = {} defs["igLabelText"][1]["funcname"] = "LabelText" defs["igLabelText"][1]["isvararg"] = "...)" -defs["igLabelText"][1]["location"] = "imgui:504" +defs["igLabelText"][1]["location"] = "imgui:501" defs["igLabelText"][1]["namespace"] = "ImGui" defs["igLabelText"][1]["ov_cimguiname"] = "igLabelText" defs["igLabelText"][1]["ret"] = "void" @@ -21361,7 +22508,7 @@ defs["igLabelTextV"][1]["call_args"] = "(label,fmt,args)" defs["igLabelTextV"][1]["cimguiname"] = "igLabelTextV" defs["igLabelTextV"][1]["defaults"] = {} defs["igLabelTextV"][1]["funcname"] = "LabelTextV" -defs["igLabelTextV"][1]["location"] = "imgui:505" +defs["igLabelTextV"][1]["location"] = "imgui:502" defs["igLabelTextV"][1]["namespace"] = "ImGui" defs["igLabelTextV"][1]["ov_cimguiname"] = "igLabelTextV" defs["igLabelTextV"][1]["ret"] = "void" @@ -21393,9 +22540,9 @@ defs["igListBox"][1]["cimguiname"] = "igListBox" defs["igListBox"][1]["defaults"] = {} defs["igListBox"][1]["defaults"]["height_in_items"] = "-1" defs["igListBox"][1]["funcname"] = "ListBox" -defs["igListBox"][1]["location"] = "imgui:642" +defs["igListBox"][1]["location"] = "imgui:643" defs["igListBox"][1]["namespace"] = "ImGui" -defs["igListBox"][1]["ov_cimguiname"] = "igListBoxStr_arr" +defs["igListBox"][1]["ov_cimguiname"] = "igListBox_Str_arr" defs["igListBox"][1]["ret"] = "bool" defs["igListBox"][1]["signature"] = "(const char*,int*,const char* const[],int,int)" defs["igListBox"][1]["stname"] = "" @@ -21428,9 +22575,9 @@ defs["igListBox"][2]["cimguiname"] = "igListBox" defs["igListBox"][2]["defaults"] = {} defs["igListBox"][2]["defaults"]["height_in_items"] = "-1" defs["igListBox"][2]["funcname"] = "ListBox" -defs["igListBox"][2]["location"] = "imgui:643" +defs["igListBox"][2]["location"] = "imgui:644" defs["igListBox"][2]["namespace"] = "ImGui" -defs["igListBox"][2]["ov_cimguiname"] = "igListBoxFnBoolPtr" +defs["igListBox"][2]["ov_cimguiname"] = "igListBox_FnBoolPtr" defs["igListBox"][2]["ret"] = "bool" defs["igListBox"][2]["signature"] = "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)" defs["igListBox"][2]["stname"] = "" @@ -21448,7 +22595,7 @@ defs["igLoadIniSettingsFromDisk"][1]["call_args"] = "(ini_filename)" defs["igLoadIniSettingsFromDisk"][1]["cimguiname"] = "igLoadIniSettingsFromDisk" defs["igLoadIniSettingsFromDisk"][1]["defaults"] = {} defs["igLoadIniSettingsFromDisk"][1]["funcname"] = "LoadIniSettingsFromDisk" -defs["igLoadIniSettingsFromDisk"][1]["location"] = "imgui:957" +defs["igLoadIniSettingsFromDisk"][1]["location"] = "imgui:959" defs["igLoadIniSettingsFromDisk"][1]["namespace"] = "ImGui" defs["igLoadIniSettingsFromDisk"][1]["ov_cimguiname"] = "igLoadIniSettingsFromDisk" defs["igLoadIniSettingsFromDisk"][1]["ret"] = "void" @@ -21471,13 +22618,54 @@ defs["igLoadIniSettingsFromMemory"][1]["cimguiname"] = "igLoadIniSettingsFromMem defs["igLoadIniSettingsFromMemory"][1]["defaults"] = {} defs["igLoadIniSettingsFromMemory"][1]["defaults"]["ini_size"] = "0" defs["igLoadIniSettingsFromMemory"][1]["funcname"] = "LoadIniSettingsFromMemory" -defs["igLoadIniSettingsFromMemory"][1]["location"] = "imgui:958" +defs["igLoadIniSettingsFromMemory"][1]["location"] = "imgui:960" defs["igLoadIniSettingsFromMemory"][1]["namespace"] = "ImGui" defs["igLoadIniSettingsFromMemory"][1]["ov_cimguiname"] = "igLoadIniSettingsFromMemory" defs["igLoadIniSettingsFromMemory"][1]["ret"] = "void" defs["igLoadIniSettingsFromMemory"][1]["signature"] = "(const char*,size_t)" defs["igLoadIniSettingsFromMemory"][1]["stname"] = "" defs["igLoadIniSettingsFromMemory"]["(const char*,size_t)"] = defs["igLoadIniSettingsFromMemory"][1] +defs["igLocalizeGetMsg"] = {} +defs["igLocalizeGetMsg"][1] = {} +defs["igLocalizeGetMsg"][1]["args"] = "(ImGuiLocKey key)" +defs["igLocalizeGetMsg"][1]["argsT"] = {} +defs["igLocalizeGetMsg"][1]["argsT"][1] = {} +defs["igLocalizeGetMsg"][1]["argsT"][1]["name"] = "key" +defs["igLocalizeGetMsg"][1]["argsT"][1]["type"] = "ImGuiLocKey" +defs["igLocalizeGetMsg"][1]["argsoriginal"] = "(ImGuiLocKey key)" +defs["igLocalizeGetMsg"][1]["call_args"] = "(key)" +defs["igLocalizeGetMsg"][1]["cimguiname"] = "igLocalizeGetMsg" +defs["igLocalizeGetMsg"][1]["defaults"] = {} +defs["igLocalizeGetMsg"][1]["funcname"] = "LocalizeGetMsg" +defs["igLocalizeGetMsg"][1]["location"] = "imgui_internal:3003" +defs["igLocalizeGetMsg"][1]["namespace"] = "ImGui" +defs["igLocalizeGetMsg"][1]["ov_cimguiname"] = "igLocalizeGetMsg" +defs["igLocalizeGetMsg"][1]["ret"] = "const char*" +defs["igLocalizeGetMsg"][1]["signature"] = "(ImGuiLocKey)" +defs["igLocalizeGetMsg"][1]["stname"] = "" +defs["igLocalizeGetMsg"]["(ImGuiLocKey)"] = defs["igLocalizeGetMsg"][1] +defs["igLocalizeRegisterEntries"] = {} +defs["igLocalizeRegisterEntries"][1] = {} +defs["igLocalizeRegisterEntries"][1]["args"] = "(const ImGuiLocEntry* entries,int count)" +defs["igLocalizeRegisterEntries"][1]["argsT"] = {} +defs["igLocalizeRegisterEntries"][1]["argsT"][1] = {} +defs["igLocalizeRegisterEntries"][1]["argsT"][1]["name"] = "entries" +defs["igLocalizeRegisterEntries"][1]["argsT"][1]["type"] = "const ImGuiLocEntry*" +defs["igLocalizeRegisterEntries"][1]["argsT"][2] = {} +defs["igLocalizeRegisterEntries"][1]["argsT"][2]["name"] = "count" +defs["igLocalizeRegisterEntries"][1]["argsT"][2]["type"] = "int" +defs["igLocalizeRegisterEntries"][1]["argsoriginal"] = "(const ImGuiLocEntry* entries,int count)" +defs["igLocalizeRegisterEntries"][1]["call_args"] = "(entries,count)" +defs["igLocalizeRegisterEntries"][1]["cimguiname"] = "igLocalizeRegisterEntries" +defs["igLocalizeRegisterEntries"][1]["defaults"] = {} +defs["igLocalizeRegisterEntries"][1]["funcname"] = "LocalizeRegisterEntries" +defs["igLocalizeRegisterEntries"][1]["location"] = "imgui_internal:3002" +defs["igLocalizeRegisterEntries"][1]["namespace"] = "ImGui" +defs["igLocalizeRegisterEntries"][1]["ov_cimguiname"] = "igLocalizeRegisterEntries" +defs["igLocalizeRegisterEntries"][1]["ret"] = "void" +defs["igLocalizeRegisterEntries"][1]["signature"] = "(const ImGuiLocEntry*,int)" +defs["igLocalizeRegisterEntries"][1]["stname"] = "" +defs["igLocalizeRegisterEntries"]["(const ImGuiLocEntry*,int)"] = defs["igLocalizeRegisterEntries"][1] defs["igLogBegin"] = {} defs["igLogBegin"][1] = {} defs["igLogBegin"][1]["args"] = "(ImGuiLogType type,int auto_open_depth)" @@ -21493,7 +22681,7 @@ defs["igLogBegin"][1]["call_args"] = "(type,auto_open_depth)" defs["igLogBegin"][1]["cimguiname"] = "igLogBegin" defs["igLogBegin"][1]["defaults"] = {} defs["igLogBegin"][1]["funcname"] = "LogBegin" -defs["igLogBegin"][1]["location"] = "imgui_internal:2769" +defs["igLogBegin"][1]["location"] = "imgui_internal:3054" defs["igLogBegin"][1]["namespace"] = "ImGui" defs["igLogBegin"][1]["ov_cimguiname"] = "igLogBegin" defs["igLogBegin"][1]["ret"] = "void" @@ -21509,7 +22697,7 @@ defs["igLogButtons"][1]["call_args"] = "()" defs["igLogButtons"][1]["cimguiname"] = "igLogButtons" defs["igLogButtons"][1]["defaults"] = {} defs["igLogButtons"][1]["funcname"] = "LogButtons" -defs["igLogButtons"][1]["location"] = "imgui:831" +defs["igLogButtons"][1]["location"] = "imgui:828" defs["igLogButtons"][1]["namespace"] = "ImGui" defs["igLogButtons"][1]["ov_cimguiname"] = "igLogButtons" defs["igLogButtons"][1]["ret"] = "void" @@ -21525,7 +22713,7 @@ defs["igLogFinish"][1]["call_args"] = "()" defs["igLogFinish"][1]["cimguiname"] = "igLogFinish" defs["igLogFinish"][1]["defaults"] = {} defs["igLogFinish"][1]["funcname"] = "LogFinish" -defs["igLogFinish"][1]["location"] = "imgui:830" +defs["igLogFinish"][1]["location"] = "imgui:827" defs["igLogFinish"][1]["namespace"] = "ImGui" defs["igLogFinish"][1]["ov_cimguiname"] = "igLogFinish" defs["igLogFinish"][1]["ret"] = "void" @@ -21551,7 +22739,7 @@ defs["igLogRenderedText"][1]["cimguiname"] = "igLogRenderedText" defs["igLogRenderedText"][1]["defaults"] = {} defs["igLogRenderedText"][1]["defaults"]["text_end"] = "NULL" defs["igLogRenderedText"][1]["funcname"] = "LogRenderedText" -defs["igLogRenderedText"][1]["location"] = "imgui_internal:2771" +defs["igLogRenderedText"][1]["location"] = "imgui_internal:3056" defs["igLogRenderedText"][1]["namespace"] = "ImGui" defs["igLogRenderedText"][1]["ov_cimguiname"] = "igLogRenderedText" defs["igLogRenderedText"][1]["ret"] = "void" @@ -21573,7 +22761,7 @@ defs["igLogSetNextTextDecoration"][1]["call_args"] = "(prefix,suffix)" defs["igLogSetNextTextDecoration"][1]["cimguiname"] = "igLogSetNextTextDecoration" defs["igLogSetNextTextDecoration"][1]["defaults"] = {} defs["igLogSetNextTextDecoration"][1]["funcname"] = "LogSetNextTextDecoration" -defs["igLogSetNextTextDecoration"][1]["location"] = "imgui_internal:2772" +defs["igLogSetNextTextDecoration"][1]["location"] = "imgui_internal:3057" defs["igLogSetNextTextDecoration"][1]["namespace"] = "ImGui" defs["igLogSetNextTextDecoration"][1]["ov_cimguiname"] = "igLogSetNextTextDecoration" defs["igLogSetNextTextDecoration"][1]["ret"] = "void" @@ -21596,7 +22784,7 @@ defs["igLogText"][1]["cimguiname"] = "igLogText" defs["igLogText"][1]["defaults"] = {} defs["igLogText"][1]["funcname"] = "LogText" defs["igLogText"][1]["isvararg"] = "...)" -defs["igLogText"][1]["location"] = "imgui:832" +defs["igLogText"][1]["location"] = "imgui:829" defs["igLogText"][1]["manual"] = true defs["igLogText"][1]["namespace"] = "ImGui" defs["igLogText"][1]["ov_cimguiname"] = "igLogText" @@ -21619,7 +22807,7 @@ defs["igLogTextV"][1]["call_args"] = "(fmt,args)" defs["igLogTextV"][1]["cimguiname"] = "igLogTextV" defs["igLogTextV"][1]["defaults"] = {} defs["igLogTextV"][1]["funcname"] = "LogTextV" -defs["igLogTextV"][1]["location"] = "imgui:833" +defs["igLogTextV"][1]["location"] = "imgui:830" defs["igLogTextV"][1]["namespace"] = "ImGui" defs["igLogTextV"][1]["ov_cimguiname"] = "igLogTextV" defs["igLogTextV"][1]["ret"] = "void" @@ -21639,7 +22827,7 @@ defs["igLogToBuffer"][1]["cimguiname"] = "igLogToBuffer" defs["igLogToBuffer"][1]["defaults"] = {} defs["igLogToBuffer"][1]["defaults"]["auto_open_depth"] = "-1" defs["igLogToBuffer"][1]["funcname"] = "LogToBuffer" -defs["igLogToBuffer"][1]["location"] = "imgui_internal:2770" +defs["igLogToBuffer"][1]["location"] = "imgui_internal:3055" defs["igLogToBuffer"][1]["namespace"] = "ImGui" defs["igLogToBuffer"][1]["ov_cimguiname"] = "igLogToBuffer" defs["igLogToBuffer"][1]["ret"] = "void" @@ -21659,7 +22847,7 @@ defs["igLogToClipboard"][1]["cimguiname"] = "igLogToClipboard" defs["igLogToClipboard"][1]["defaults"] = {} defs["igLogToClipboard"][1]["defaults"]["auto_open_depth"] = "-1" defs["igLogToClipboard"][1]["funcname"] = "LogToClipboard" -defs["igLogToClipboard"][1]["location"] = "imgui:829" +defs["igLogToClipboard"][1]["location"] = "imgui:826" defs["igLogToClipboard"][1]["namespace"] = "ImGui" defs["igLogToClipboard"][1]["ov_cimguiname"] = "igLogToClipboard" defs["igLogToClipboard"][1]["ret"] = "void" @@ -21683,7 +22871,7 @@ defs["igLogToFile"][1]["defaults"] = {} defs["igLogToFile"][1]["defaults"]["auto_open_depth"] = "-1" defs["igLogToFile"][1]["defaults"]["filename"] = "NULL" defs["igLogToFile"][1]["funcname"] = "LogToFile" -defs["igLogToFile"][1]["location"] = "imgui:828" +defs["igLogToFile"][1]["location"] = "imgui:825" defs["igLogToFile"][1]["namespace"] = "ImGui" defs["igLogToFile"][1]["ov_cimguiname"] = "igLogToFile" defs["igLogToFile"][1]["ret"] = "void" @@ -21703,7 +22891,7 @@ defs["igLogToTTY"][1]["cimguiname"] = "igLogToTTY" defs["igLogToTTY"][1]["defaults"] = {} defs["igLogToTTY"][1]["defaults"]["auto_open_depth"] = "-1" defs["igLogToTTY"][1]["funcname"] = "LogToTTY" -defs["igLogToTTY"][1]["location"] = "imgui:827" +defs["igLogToTTY"][1]["location"] = "imgui:824" defs["igLogToTTY"][1]["namespace"] = "ImGui" defs["igLogToTTY"][1]["ov_cimguiname"] = "igLogToTTY" defs["igLogToTTY"][1]["ret"] = "void" @@ -21719,9 +22907,9 @@ defs["igMarkIniSettingsDirty"][1]["call_args"] = "()" defs["igMarkIniSettingsDirty"][1]["cimguiname"] = "igMarkIniSettingsDirty" defs["igMarkIniSettingsDirty"][1]["defaults"] = {} defs["igMarkIniSettingsDirty"][1]["funcname"] = "MarkIniSettingsDirty" -defs["igMarkIniSettingsDirty"][1]["location"] = "imgui_internal:2700" +defs["igMarkIniSettingsDirty"][1]["location"] = "imgui_internal:2991" defs["igMarkIniSettingsDirty"][1]["namespace"] = "ImGui" -defs["igMarkIniSettingsDirty"][1]["ov_cimguiname"] = "igMarkIniSettingsDirtyNil" +defs["igMarkIniSettingsDirty"][1]["ov_cimguiname"] = "igMarkIniSettingsDirty_Nil" defs["igMarkIniSettingsDirty"][1]["ret"] = "void" defs["igMarkIniSettingsDirty"][1]["signature"] = "()" defs["igMarkIniSettingsDirty"][1]["stname"] = "" @@ -21736,9 +22924,9 @@ defs["igMarkIniSettingsDirty"][2]["call_args"] = "(window)" defs["igMarkIniSettingsDirty"][2]["cimguiname"] = "igMarkIniSettingsDirty" defs["igMarkIniSettingsDirty"][2]["defaults"] = {} defs["igMarkIniSettingsDirty"][2]["funcname"] = "MarkIniSettingsDirty" -defs["igMarkIniSettingsDirty"][2]["location"] = "imgui_internal:2701" +defs["igMarkIniSettingsDirty"][2]["location"] = "imgui_internal:2992" defs["igMarkIniSettingsDirty"][2]["namespace"] = "ImGui" -defs["igMarkIniSettingsDirty"][2]["ov_cimguiname"] = "igMarkIniSettingsDirtyWindowPtr" +defs["igMarkIniSettingsDirty"][2]["ov_cimguiname"] = "igMarkIniSettingsDirty_WindowPtr" defs["igMarkIniSettingsDirty"][2]["ret"] = "void" defs["igMarkIniSettingsDirty"][2]["signature"] = "(ImGuiWindow*)" defs["igMarkIniSettingsDirty"][2]["stname"] = "" @@ -21756,7 +22944,7 @@ defs["igMarkItemEdited"][1]["call_args"] = "(id)" defs["igMarkItemEdited"][1]["cimguiname"] = "igMarkItemEdited" defs["igMarkItemEdited"][1]["defaults"] = {} defs["igMarkItemEdited"][1]["funcname"] = "MarkItemEdited" -defs["igMarkItemEdited"][1]["location"] = "imgui_internal:2735" +defs["igMarkItemEdited"][1]["location"] = "imgui_internal:3031" defs["igMarkItemEdited"][1]["namespace"] = "ImGui" defs["igMarkItemEdited"][1]["ov_cimguiname"] = "igMarkItemEdited" defs["igMarkItemEdited"][1]["ret"] = "void" @@ -21775,7 +22963,7 @@ defs["igMemAlloc"][1]["call_args"] = "(size)" defs["igMemAlloc"][1]["cimguiname"] = "igMemAlloc" defs["igMemAlloc"][1]["defaults"] = {} defs["igMemAlloc"][1]["funcname"] = "MemAlloc" -defs["igMemAlloc"][1]["location"] = "imgui:972" +defs["igMemAlloc"][1]["location"] = "imgui:974" defs["igMemAlloc"][1]["namespace"] = "ImGui" defs["igMemAlloc"][1]["ov_cimguiname"] = "igMemAlloc" defs["igMemAlloc"][1]["ret"] = "void*" @@ -21794,7 +22982,7 @@ defs["igMemFree"][1]["call_args"] = "(ptr)" defs["igMemFree"][1]["cimguiname"] = "igMemFree" defs["igMemFree"][1]["defaults"] = {} defs["igMemFree"][1]["funcname"] = "MemFree" -defs["igMemFree"][1]["location"] = "imgui:973" +defs["igMemFree"][1]["location"] = "imgui:975" defs["igMemFree"][1]["namespace"] = "ImGui" defs["igMemFree"][1]["ov_cimguiname"] = "igMemFree" defs["igMemFree"][1]["ret"] = "void" @@ -21825,9 +23013,9 @@ defs["igMenuItem"][1]["defaults"]["enabled"] = "true" defs["igMenuItem"][1]["defaults"]["selected"] = "false" defs["igMenuItem"][1]["defaults"]["shortcut"] = "NULL" defs["igMenuItem"][1]["funcname"] = "MenuItem" -defs["igMenuItem"][1]["location"] = "imgui:670" +defs["igMenuItem"][1]["location"] = "imgui:671" defs["igMenuItem"][1]["namespace"] = "ImGui" -defs["igMenuItem"][1]["ov_cimguiname"] = "igMenuItemBool" +defs["igMenuItem"][1]["ov_cimguiname"] = "igMenuItem_Bool" defs["igMenuItem"][1]["ret"] = "bool" defs["igMenuItem"][1]["signature"] = "(const char*,const char*,bool,bool)" defs["igMenuItem"][1]["stname"] = "" @@ -21852,9 +23040,9 @@ defs["igMenuItem"][2]["cimguiname"] = "igMenuItem" defs["igMenuItem"][2]["defaults"] = {} defs["igMenuItem"][2]["defaults"]["enabled"] = "true" defs["igMenuItem"][2]["funcname"] = "MenuItem" -defs["igMenuItem"][2]["location"] = "imgui:671" +defs["igMenuItem"][2]["location"] = "imgui:672" defs["igMenuItem"][2]["namespace"] = "ImGui" -defs["igMenuItem"][2]["ov_cimguiname"] = "igMenuItemBoolPtr" +defs["igMenuItem"][2]["ov_cimguiname"] = "igMenuItem_BoolPtr" defs["igMenuItem"][2]["ret"] = "bool" defs["igMenuItem"][2]["signature"] = "(const char*,const char*,bool*,bool)" defs["igMenuItem"][2]["stname"] = "" @@ -21887,13 +23075,32 @@ defs["igMenuItemEx"][1]["defaults"]["enabled"] = "true" defs["igMenuItemEx"][1]["defaults"]["selected"] = "false" defs["igMenuItemEx"][1]["defaults"]["shortcut"] = "NULL" defs["igMenuItemEx"][1]["funcname"] = "MenuItemEx" -defs["igMenuItemEx"][1]["location"] = "imgui_internal:2792" +defs["igMenuItemEx"][1]["location"] = "imgui_internal:3077" defs["igMenuItemEx"][1]["namespace"] = "ImGui" defs["igMenuItemEx"][1]["ov_cimguiname"] = "igMenuItemEx" defs["igMenuItemEx"][1]["ret"] = "bool" defs["igMenuItemEx"][1]["signature"] = "(const char*,const char*,const char*,bool,bool)" defs["igMenuItemEx"][1]["stname"] = "" defs["igMenuItemEx"]["(const char*,const char*,const char*,bool,bool)"] = defs["igMenuItemEx"][1] +defs["igMouseButtonToKey"] = {} +defs["igMouseButtonToKey"][1] = {} +defs["igMouseButtonToKey"][1]["args"] = "(ImGuiMouseButton button)" +defs["igMouseButtonToKey"][1]["argsT"] = {} +defs["igMouseButtonToKey"][1]["argsT"][1] = {} +defs["igMouseButtonToKey"][1]["argsT"][1]["name"] = "button" +defs["igMouseButtonToKey"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igMouseButtonToKey"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igMouseButtonToKey"][1]["call_args"] = "(button)" +defs["igMouseButtonToKey"][1]["cimguiname"] = "igMouseButtonToKey" +defs["igMouseButtonToKey"][1]["defaults"] = {} +defs["igMouseButtonToKey"][1]["funcname"] = "MouseButtonToKey" +defs["igMouseButtonToKey"][1]["location"] = "imgui_internal:3118" +defs["igMouseButtonToKey"][1]["namespace"] = "ImGui" +defs["igMouseButtonToKey"][1]["ov_cimguiname"] = "igMouseButtonToKey" +defs["igMouseButtonToKey"][1]["ret"] = "ImGuiKey" +defs["igMouseButtonToKey"][1]["signature"] = "(ImGuiMouseButton)" +defs["igMouseButtonToKey"][1]["stname"] = "" +defs["igMouseButtonToKey"]["(ImGuiMouseButton)"] = defs["igMouseButtonToKey"][1] defs["igNavInitRequestApplyResult"] = {} defs["igNavInitRequestApplyResult"][1] = {} defs["igNavInitRequestApplyResult"][1]["args"] = "()" @@ -21903,7 +23110,7 @@ defs["igNavInitRequestApplyResult"][1]["call_args"] = "()" defs["igNavInitRequestApplyResult"][1]["cimguiname"] = "igNavInitRequestApplyResult" defs["igNavInitRequestApplyResult"][1]["defaults"] = {} defs["igNavInitRequestApplyResult"][1]["funcname"] = "NavInitRequestApplyResult" -defs["igNavInitRequestApplyResult"][1]["location"] = "imgui_internal:2801" +defs["igNavInitRequestApplyResult"][1]["location"] = "imgui_internal:3086" defs["igNavInitRequestApplyResult"][1]["namespace"] = "ImGui" defs["igNavInitRequestApplyResult"][1]["ov_cimguiname"] = "igNavInitRequestApplyResult" defs["igNavInitRequestApplyResult"][1]["ret"] = "void" @@ -21925,7 +23132,7 @@ defs["igNavInitWindow"][1]["call_args"] = "(window,force_reinit)" defs["igNavInitWindow"][1]["cimguiname"] = "igNavInitWindow" defs["igNavInitWindow"][1]["defaults"] = {} defs["igNavInitWindow"][1]["funcname"] = "NavInitWindow" -defs["igNavInitWindow"][1]["location"] = "imgui_internal:2800" +defs["igNavInitWindow"][1]["location"] = "imgui_internal:3085" defs["igNavInitWindow"][1]["namespace"] = "ImGui" defs["igNavInitWindow"][1]["ov_cimguiname"] = "igNavInitWindow" defs["igNavInitWindow"][1]["ret"] = "void" @@ -21941,7 +23148,7 @@ defs["igNavMoveRequestApplyResult"][1]["call_args"] = "()" defs["igNavMoveRequestApplyResult"][1]["cimguiname"] = "igNavMoveRequestApplyResult" defs["igNavMoveRequestApplyResult"][1]["defaults"] = {} defs["igNavMoveRequestApplyResult"][1]["funcname"] = "NavMoveRequestApplyResult" -defs["igNavMoveRequestApplyResult"][1]["location"] = "imgui_internal:2807" +defs["igNavMoveRequestApplyResult"][1]["location"] = "imgui_internal:3092" defs["igNavMoveRequestApplyResult"][1]["namespace"] = "ImGui" defs["igNavMoveRequestApplyResult"][1]["ov_cimguiname"] = "igNavMoveRequestApplyResult" defs["igNavMoveRequestApplyResult"][1]["ret"] = "void" @@ -21957,7 +23164,7 @@ defs["igNavMoveRequestButNoResultYet"][1]["call_args"] = "()" defs["igNavMoveRequestButNoResultYet"][1]["cimguiname"] = "igNavMoveRequestButNoResultYet" defs["igNavMoveRequestButNoResultYet"][1]["defaults"] = {} defs["igNavMoveRequestButNoResultYet"][1]["funcname"] = "NavMoveRequestButNoResultYet" -defs["igNavMoveRequestButNoResultYet"][1]["location"] = "imgui_internal:2802" +defs["igNavMoveRequestButNoResultYet"][1]["location"] = "imgui_internal:3087" defs["igNavMoveRequestButNoResultYet"][1]["namespace"] = "ImGui" defs["igNavMoveRequestButNoResultYet"][1]["ov_cimguiname"] = "igNavMoveRequestButNoResultYet" defs["igNavMoveRequestButNoResultYet"][1]["ret"] = "bool" @@ -21973,7 +23180,7 @@ defs["igNavMoveRequestCancel"][1]["call_args"] = "()" defs["igNavMoveRequestCancel"][1]["cimguiname"] = "igNavMoveRequestCancel" defs["igNavMoveRequestCancel"][1]["defaults"] = {} defs["igNavMoveRequestCancel"][1]["funcname"] = "NavMoveRequestCancel" -defs["igNavMoveRequestCancel"][1]["location"] = "imgui_internal:2806" +defs["igNavMoveRequestCancel"][1]["location"] = "imgui_internal:3091" defs["igNavMoveRequestCancel"][1]["namespace"] = "ImGui" defs["igNavMoveRequestCancel"][1]["ov_cimguiname"] = "igNavMoveRequestCancel" defs["igNavMoveRequestCancel"][1]["ret"] = "void" @@ -22001,7 +23208,7 @@ defs["igNavMoveRequestForward"][1]["call_args"] = "(move_dir,clip_dir,move_flags defs["igNavMoveRequestForward"][1]["cimguiname"] = "igNavMoveRequestForward" defs["igNavMoveRequestForward"][1]["defaults"] = {} defs["igNavMoveRequestForward"][1]["funcname"] = "NavMoveRequestForward" -defs["igNavMoveRequestForward"][1]["location"] = "imgui_internal:2804" +defs["igNavMoveRequestForward"][1]["location"] = "imgui_internal:3089" defs["igNavMoveRequestForward"][1]["namespace"] = "ImGui" defs["igNavMoveRequestForward"][1]["ov_cimguiname"] = "igNavMoveRequestForward" defs["igNavMoveRequestForward"][1]["ret"] = "void" @@ -22020,7 +23227,7 @@ defs["igNavMoveRequestResolveWithLastItem"][1]["call_args"] = "(result)" defs["igNavMoveRequestResolveWithLastItem"][1]["cimguiname"] = "igNavMoveRequestResolveWithLastItem" defs["igNavMoveRequestResolveWithLastItem"][1]["defaults"] = {} defs["igNavMoveRequestResolveWithLastItem"][1]["funcname"] = "NavMoveRequestResolveWithLastItem" -defs["igNavMoveRequestResolveWithLastItem"][1]["location"] = "imgui_internal:2805" +defs["igNavMoveRequestResolveWithLastItem"][1]["location"] = "imgui_internal:3090" defs["igNavMoveRequestResolveWithLastItem"][1]["namespace"] = "ImGui" defs["igNavMoveRequestResolveWithLastItem"][1]["ov_cimguiname"] = "igNavMoveRequestResolveWithLastItem" defs["igNavMoveRequestResolveWithLastItem"][1]["ret"] = "void" @@ -22048,7 +23255,7 @@ defs["igNavMoveRequestSubmit"][1]["call_args"] = "(move_dir,clip_dir,move_flags, defs["igNavMoveRequestSubmit"][1]["cimguiname"] = "igNavMoveRequestSubmit" defs["igNavMoveRequestSubmit"][1]["defaults"] = {} defs["igNavMoveRequestSubmit"][1]["funcname"] = "NavMoveRequestSubmit" -defs["igNavMoveRequestSubmit"][1]["location"] = "imgui_internal:2803" +defs["igNavMoveRequestSubmit"][1]["location"] = "imgui_internal:3088" defs["igNavMoveRequestSubmit"][1]["namespace"] = "ImGui" defs["igNavMoveRequestSubmit"][1]["ov_cimguiname"] = "igNavMoveRequestSubmit" defs["igNavMoveRequestSubmit"][1]["ret"] = "void" @@ -22070,7 +23277,7 @@ defs["igNavMoveRequestTryWrapping"][1]["call_args"] = "(window,move_flags)" defs["igNavMoveRequestTryWrapping"][1]["cimguiname"] = "igNavMoveRequestTryWrapping" defs["igNavMoveRequestTryWrapping"][1]["defaults"] = {} defs["igNavMoveRequestTryWrapping"][1]["funcname"] = "NavMoveRequestTryWrapping" -defs["igNavMoveRequestTryWrapping"][1]["location"] = "imgui_internal:2808" +defs["igNavMoveRequestTryWrapping"][1]["location"] = "imgui_internal:3093" defs["igNavMoveRequestTryWrapping"][1]["namespace"] = "ImGui" defs["igNavMoveRequestTryWrapping"][1]["ov_cimguiname"] = "igNavMoveRequestTryWrapping" defs["igNavMoveRequestTryWrapping"][1]["ret"] = "void" @@ -22086,7 +23293,7 @@ defs["igNewFrame"][1]["call_args"] = "()" defs["igNewFrame"][1]["cimguiname"] = "igNewFrame" defs["igNewFrame"][1]["defaults"] = {} defs["igNewFrame"][1]["funcname"] = "NewFrame" -defs["igNewFrame"][1]["location"] = "imgui:309" +defs["igNewFrame"][1]["location"] = "imgui:302" defs["igNewFrame"][1]["namespace"] = "ImGui" defs["igNewFrame"][1]["ov_cimguiname"] = "igNewFrame" defs["igNewFrame"][1]["ret"] = "void" @@ -22102,7 +23309,7 @@ defs["igNewLine"][1]["call_args"] = "()" defs["igNewLine"][1]["cimguiname"] = "igNewLine" defs["igNewLine"][1]["defaults"] = {} defs["igNewLine"][1]["funcname"] = "NewLine" -defs["igNewLine"][1]["location"] = "imgui:452" +defs["igNewLine"][1]["location"] = "imgui:449" defs["igNewLine"][1]["namespace"] = "ImGui" defs["igNewLine"][1]["ov_cimguiname"] = "igNewLine" defs["igNewLine"][1]["ret"] = "void" @@ -22118,7 +23325,7 @@ defs["igNextColumn"][1]["call_args"] = "()" defs["igNextColumn"][1]["cimguiname"] = "igNextColumn" defs["igNextColumn"][1]["defaults"] = {} defs["igNextColumn"][1]["funcname"] = "NextColumn" -defs["igNextColumn"][1]["location"] = "imgui:788" +defs["igNextColumn"][1]["location"] = "imgui:785" defs["igNextColumn"][1]["namespace"] = "ImGui" defs["igNextColumn"][1]["ov_cimguiname"] = "igNextColumn" defs["igNextColumn"][1]["ret"] = "void" @@ -22141,9 +23348,9 @@ defs["igOpenPopup"][1]["cimguiname"] = "igOpenPopup" defs["igOpenPopup"][1]["defaults"] = {} defs["igOpenPopup"][1]["defaults"]["popup_flags"] = "0" defs["igOpenPopup"][1]["funcname"] = "OpenPopup" -defs["igOpenPopup"][1]["location"] = "imgui:703" +defs["igOpenPopup"][1]["location"] = "imgui:705" defs["igOpenPopup"][1]["namespace"] = "ImGui" -defs["igOpenPopup"][1]["ov_cimguiname"] = "igOpenPopupStr" +defs["igOpenPopup"][1]["ov_cimguiname"] = "igOpenPopup_Str" defs["igOpenPopup"][1]["ret"] = "void" defs["igOpenPopup"][1]["signature"] = "(const char*,ImGuiPopupFlags)" defs["igOpenPopup"][1]["stname"] = "" @@ -22162,9 +23369,9 @@ defs["igOpenPopup"][2]["cimguiname"] = "igOpenPopup" defs["igOpenPopup"][2]["defaults"] = {} defs["igOpenPopup"][2]["defaults"]["popup_flags"] = "0" defs["igOpenPopup"][2]["funcname"] = "OpenPopup" -defs["igOpenPopup"][2]["location"] = "imgui:704" +defs["igOpenPopup"][2]["location"] = "imgui:706" defs["igOpenPopup"][2]["namespace"] = "ImGui" -defs["igOpenPopup"][2]["ov_cimguiname"] = "igOpenPopupID" +defs["igOpenPopup"][2]["ov_cimguiname"] = "igOpenPopup_ID" defs["igOpenPopup"][2]["ret"] = "void" defs["igOpenPopup"][2]["signature"] = "(ImGuiID,ImGuiPopupFlags)" defs["igOpenPopup"][2]["stname"] = "" @@ -22186,7 +23393,7 @@ defs["igOpenPopupEx"][1]["cimguiname"] = "igOpenPopupEx" defs["igOpenPopupEx"][1]["defaults"] = {} defs["igOpenPopupEx"][1]["defaults"]["popup_flags"] = "ImGuiPopupFlags_None" defs["igOpenPopupEx"][1]["funcname"] = "OpenPopupEx" -defs["igOpenPopupEx"][1]["location"] = "imgui_internal:2776" +defs["igOpenPopupEx"][1]["location"] = "imgui_internal:3061" defs["igOpenPopupEx"][1]["namespace"] = "ImGui" defs["igOpenPopupEx"][1]["ov_cimguiname"] = "igOpenPopupEx" defs["igOpenPopupEx"][1]["ret"] = "void" @@ -22210,7 +23417,7 @@ defs["igOpenPopupOnItemClick"][1]["defaults"] = {} defs["igOpenPopupOnItemClick"][1]["defaults"]["popup_flags"] = "1" defs["igOpenPopupOnItemClick"][1]["defaults"]["str_id"] = "NULL" defs["igOpenPopupOnItemClick"][1]["funcname"] = "OpenPopupOnItemClick" -defs["igOpenPopupOnItemClick"][1]["location"] = "imgui:705" +defs["igOpenPopupOnItemClick"][1]["location"] = "imgui:707" defs["igOpenPopupOnItemClick"][1]["namespace"] = "ImGui" defs["igOpenPopupOnItemClick"][1]["ov_cimguiname"] = "igOpenPopupOnItemClick" defs["igOpenPopupOnItemClick"][1]["ret"] = "void" @@ -22258,7 +23465,7 @@ defs["igPlotEx"][1]["call_args"] = "(plot_type,label,values_getter,data,values_c defs["igPlotEx"][1]["cimguiname"] = "igPlotEx" defs["igPlotEx"][1]["defaults"] = {} defs["igPlotEx"][1]["funcname"] = "PlotEx" -defs["igPlotEx"][1]["location"] = "imgui_internal:3058" +defs["igPlotEx"][1]["location"] = "imgui_internal:3407" defs["igPlotEx"][1]["namespace"] = "ImGui" defs["igPlotEx"][1]["ov_cimguiname"] = "igPlotEx" defs["igPlotEx"][1]["ret"] = "int" @@ -22307,9 +23514,9 @@ defs["igPlotHistogram"][1]["defaults"]["scale_min"] = "FLT_MAX" defs["igPlotHistogram"][1]["defaults"]["stride"] = "sizeof(float)" defs["igPlotHistogram"][1]["defaults"]["values_offset"] = "0" defs["igPlotHistogram"][1]["funcname"] = "PlotHistogram" -defs["igPlotHistogram"][1]["location"] = "imgui:649" +defs["igPlotHistogram"][1]["location"] = "imgui:650" defs["igPlotHistogram"][1]["namespace"] = "ImGui" -defs["igPlotHistogram"][1]["ov_cimguiname"] = "igPlotHistogramFloatPtr" +defs["igPlotHistogram"][1]["ov_cimguiname"] = "igPlotHistogram_FloatPtr" defs["igPlotHistogram"][1]["ret"] = "void" defs["igPlotHistogram"][1]["signature"] = "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)" defs["igPlotHistogram"][1]["stname"] = "" @@ -22355,9 +23562,9 @@ defs["igPlotHistogram"][2]["defaults"]["scale_max"] = "FLT_MAX" defs["igPlotHistogram"][2]["defaults"]["scale_min"] = "FLT_MAX" defs["igPlotHistogram"][2]["defaults"]["values_offset"] = "0" defs["igPlotHistogram"][2]["funcname"] = "PlotHistogram" -defs["igPlotHistogram"][2]["location"] = "imgui:650" +defs["igPlotHistogram"][2]["location"] = "imgui:651" defs["igPlotHistogram"][2]["namespace"] = "ImGui" -defs["igPlotHistogram"][2]["ov_cimguiname"] = "igPlotHistogramFnFloatPtr" +defs["igPlotHistogram"][2]["ov_cimguiname"] = "igPlotHistogram_FnFloatPtr" defs["igPlotHistogram"][2]["ret"] = "void" defs["igPlotHistogram"][2]["signature"] = "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)" defs["igPlotHistogram"][2]["stname"] = "" @@ -22405,9 +23612,9 @@ defs["igPlotLines"][1]["defaults"]["scale_min"] = "FLT_MAX" defs["igPlotLines"][1]["defaults"]["stride"] = "sizeof(float)" defs["igPlotLines"][1]["defaults"]["values_offset"] = "0" defs["igPlotLines"][1]["funcname"] = "PlotLines" -defs["igPlotLines"][1]["location"] = "imgui:647" +defs["igPlotLines"][1]["location"] = "imgui:648" defs["igPlotLines"][1]["namespace"] = "ImGui" -defs["igPlotLines"][1]["ov_cimguiname"] = "igPlotLinesFloatPtr" +defs["igPlotLines"][1]["ov_cimguiname"] = "igPlotLines_FloatPtr" defs["igPlotLines"][1]["ret"] = "void" defs["igPlotLines"][1]["signature"] = "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)" defs["igPlotLines"][1]["stname"] = "" @@ -22453,9 +23660,9 @@ defs["igPlotLines"][2]["defaults"]["scale_max"] = "FLT_MAX" defs["igPlotLines"][2]["defaults"]["scale_min"] = "FLT_MAX" defs["igPlotLines"][2]["defaults"]["values_offset"] = "0" defs["igPlotLines"][2]["funcname"] = "PlotLines" -defs["igPlotLines"][2]["location"] = "imgui:648" +defs["igPlotLines"][2]["location"] = "imgui:649" defs["igPlotLines"][2]["namespace"] = "ImGui" -defs["igPlotLines"][2]["ov_cimguiname"] = "igPlotLinesFnFloatPtr" +defs["igPlotLines"][2]["ov_cimguiname"] = "igPlotLines_FnFloatPtr" defs["igPlotLines"][2]["ret"] = "void" defs["igPlotLines"][2]["signature"] = "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)" defs["igPlotLines"][2]["stname"] = "" @@ -22470,7 +23677,7 @@ defs["igPopAllowKeyboardFocus"][1]["call_args"] = "()" defs["igPopAllowKeyboardFocus"][1]["cimguiname"] = "igPopAllowKeyboardFocus" defs["igPopAllowKeyboardFocus"][1]["defaults"] = {} defs["igPopAllowKeyboardFocus"][1]["funcname"] = "PopAllowKeyboardFocus" -defs["igPopAllowKeyboardFocus"][1]["location"] = "imgui:421" +defs["igPopAllowKeyboardFocus"][1]["location"] = "imgui:418" defs["igPopAllowKeyboardFocus"][1]["namespace"] = "ImGui" defs["igPopAllowKeyboardFocus"][1]["ov_cimguiname"] = "igPopAllowKeyboardFocus" defs["igPopAllowKeyboardFocus"][1]["ret"] = "void" @@ -22486,7 +23693,7 @@ defs["igPopButtonRepeat"][1]["call_args"] = "()" defs["igPopButtonRepeat"][1]["cimguiname"] = "igPopButtonRepeat" defs["igPopButtonRepeat"][1]["defaults"] = {} defs["igPopButtonRepeat"][1]["funcname"] = "PopButtonRepeat" -defs["igPopButtonRepeat"][1]["location"] = "imgui:423" +defs["igPopButtonRepeat"][1]["location"] = "imgui:420" defs["igPopButtonRepeat"][1]["namespace"] = "ImGui" defs["igPopButtonRepeat"][1]["ov_cimguiname"] = "igPopButtonRepeat" defs["igPopButtonRepeat"][1]["ret"] = "void" @@ -22502,7 +23709,7 @@ defs["igPopClipRect"][1]["call_args"] = "()" defs["igPopClipRect"][1]["cimguiname"] = "igPopClipRect" defs["igPopClipRect"][1]["defaults"] = {} defs["igPopClipRect"][1]["funcname"] = "PopClipRect" -defs["igPopClipRect"][1]["location"] = "imgui:858" +defs["igPopClipRect"][1]["location"] = "imgui:855" defs["igPopClipRect"][1]["namespace"] = "ImGui" defs["igPopClipRect"][1]["ov_cimguiname"] = "igPopClipRect" defs["igPopClipRect"][1]["ret"] = "void" @@ -22518,7 +23725,7 @@ defs["igPopColumnsBackground"][1]["call_args"] = "()" defs["igPopColumnsBackground"][1]["cimguiname"] = "igPopColumnsBackground" defs["igPopColumnsBackground"][1]["defaults"] = {} defs["igPopColumnsBackground"][1]["funcname"] = "PopColumnsBackground" -defs["igPopColumnsBackground"][1]["location"] = "imgui_internal:2898" +defs["igPopColumnsBackground"][1]["location"] = "imgui_internal:3249" defs["igPopColumnsBackground"][1]["namespace"] = "ImGui" defs["igPopColumnsBackground"][1]["ov_cimguiname"] = "igPopColumnsBackground" defs["igPopColumnsBackground"][1]["ret"] = "void" @@ -22534,7 +23741,7 @@ defs["igPopFocusScope"][1]["call_args"] = "()" defs["igPopFocusScope"][1]["cimguiname"] = "igPopFocusScope" defs["igPopFocusScope"][1]["defaults"] = {} defs["igPopFocusScope"][1]["funcname"] = "PopFocusScope" -defs["igPopFocusScope"][1]["location"] = "imgui_internal:2819" +defs["igPopFocusScope"][1]["location"] = "imgui_internal:3233" defs["igPopFocusScope"][1]["namespace"] = "ImGui" defs["igPopFocusScope"][1]["ov_cimguiname"] = "igPopFocusScope" defs["igPopFocusScope"][1]["ret"] = "void" @@ -22550,7 +23757,7 @@ defs["igPopFont"][1]["call_args"] = "()" defs["igPopFont"][1]["cimguiname"] = "igPopFont" defs["igPopFont"][1]["defaults"] = {} defs["igPopFont"][1]["funcname"] = "PopFont" -defs["igPopFont"][1]["location"] = "imgui:413" +defs["igPopFont"][1]["location"] = "imgui:410" defs["igPopFont"][1]["namespace"] = "ImGui" defs["igPopFont"][1]["ov_cimguiname"] = "igPopFont" defs["igPopFont"][1]["ret"] = "void" @@ -22566,7 +23773,7 @@ defs["igPopID"][1]["call_args"] = "()" defs["igPopID"][1]["cimguiname"] = "igPopID" defs["igPopID"][1]["defaults"] = {} defs["igPopID"][1]["funcname"] = "PopID" -defs["igPopID"][1]["location"] = "imgui:489" +defs["igPopID"][1]["location"] = "imgui:486" defs["igPopID"][1]["namespace"] = "ImGui" defs["igPopID"][1]["ov_cimguiname"] = "igPopID" defs["igPopID"][1]["ret"] = "void" @@ -22582,7 +23789,7 @@ defs["igPopItemFlag"][1]["call_args"] = "()" defs["igPopItemFlag"][1]["cimguiname"] = "igPopItemFlag" defs["igPopItemFlag"][1]["defaults"] = {} defs["igPopItemFlag"][1]["funcname"] = "PopItemFlag" -defs["igPopItemFlag"][1]["location"] = "imgui_internal:2755" +defs["igPopItemFlag"][1]["location"] = "imgui_internal:3051" defs["igPopItemFlag"][1]["namespace"] = "ImGui" defs["igPopItemFlag"][1]["ov_cimguiname"] = "igPopItemFlag" defs["igPopItemFlag"][1]["ret"] = "void" @@ -22598,7 +23805,7 @@ defs["igPopItemWidth"][1]["call_args"] = "()" defs["igPopItemWidth"][1]["cimguiname"] = "igPopItemWidth" defs["igPopItemWidth"][1]["defaults"] = {} defs["igPopItemWidth"][1]["funcname"] = "PopItemWidth" -defs["igPopItemWidth"][1]["location"] = "imgui:427" +defs["igPopItemWidth"][1]["location"] = "imgui:424" defs["igPopItemWidth"][1]["namespace"] = "ImGui" defs["igPopItemWidth"][1]["ov_cimguiname"] = "igPopItemWidth" defs["igPopItemWidth"][1]["ret"] = "void" @@ -22618,7 +23825,7 @@ defs["igPopStyleColor"][1]["cimguiname"] = "igPopStyleColor" defs["igPopStyleColor"][1]["defaults"] = {} defs["igPopStyleColor"][1]["defaults"]["count"] = "1" defs["igPopStyleColor"][1]["funcname"] = "PopStyleColor" -defs["igPopStyleColor"][1]["location"] = "imgui:416" +defs["igPopStyleColor"][1]["location"] = "imgui:413" defs["igPopStyleColor"][1]["namespace"] = "ImGui" defs["igPopStyleColor"][1]["ov_cimguiname"] = "igPopStyleColor" defs["igPopStyleColor"][1]["ret"] = "void" @@ -22638,7 +23845,7 @@ defs["igPopStyleVar"][1]["cimguiname"] = "igPopStyleVar" defs["igPopStyleVar"][1]["defaults"] = {} defs["igPopStyleVar"][1]["defaults"]["count"] = "1" defs["igPopStyleVar"][1]["funcname"] = "PopStyleVar" -defs["igPopStyleVar"][1]["location"] = "imgui:419" +defs["igPopStyleVar"][1]["location"] = "imgui:416" defs["igPopStyleVar"][1]["namespace"] = "ImGui" defs["igPopStyleVar"][1]["ov_cimguiname"] = "igPopStyleVar" defs["igPopStyleVar"][1]["ret"] = "void" @@ -22654,7 +23861,7 @@ defs["igPopTextWrapPos"][1]["call_args"] = "()" defs["igPopTextWrapPos"][1]["cimguiname"] = "igPopTextWrapPos" defs["igPopTextWrapPos"][1]["defaults"] = {} defs["igPopTextWrapPos"][1]["funcname"] = "PopTextWrapPos" -defs["igPopTextWrapPos"][1]["location"] = "imgui:431" +defs["igPopTextWrapPos"][1]["location"] = "imgui:428" defs["igPopTextWrapPos"][1]["namespace"] = "ImGui" defs["igPopTextWrapPos"][1]["ov_cimguiname"] = "igPopTextWrapPos" defs["igPopTextWrapPos"][1]["ret"] = "void" @@ -22681,7 +23888,7 @@ defs["igProgressBar"][1]["defaults"] = {} defs["igProgressBar"][1]["defaults"]["overlay"] = "NULL" defs["igProgressBar"][1]["defaults"]["size_arg"] = "ImVec2(-FLT_MIN,0)" defs["igProgressBar"][1]["funcname"] = "ProgressBar" -defs["igProgressBar"][1]["location"] = "imgui:523" +defs["igProgressBar"][1]["location"] = "imgui:518" defs["igProgressBar"][1]["namespace"] = "ImGui" defs["igProgressBar"][1]["ov_cimguiname"] = "igProgressBar" defs["igProgressBar"][1]["ret"] = "void" @@ -22700,7 +23907,7 @@ defs["igPushAllowKeyboardFocus"][1]["call_args"] = "(allow_keyboard_focus)" defs["igPushAllowKeyboardFocus"][1]["cimguiname"] = "igPushAllowKeyboardFocus" defs["igPushAllowKeyboardFocus"][1]["defaults"] = {} defs["igPushAllowKeyboardFocus"][1]["funcname"] = "PushAllowKeyboardFocus" -defs["igPushAllowKeyboardFocus"][1]["location"] = "imgui:420" +defs["igPushAllowKeyboardFocus"][1]["location"] = "imgui:417" defs["igPushAllowKeyboardFocus"][1]["namespace"] = "ImGui" defs["igPushAllowKeyboardFocus"][1]["ov_cimguiname"] = "igPushAllowKeyboardFocus" defs["igPushAllowKeyboardFocus"][1]["ret"] = "void" @@ -22719,7 +23926,7 @@ defs["igPushButtonRepeat"][1]["call_args"] = "(repeat)" defs["igPushButtonRepeat"][1]["cimguiname"] = "igPushButtonRepeat" defs["igPushButtonRepeat"][1]["defaults"] = {} defs["igPushButtonRepeat"][1]["funcname"] = "PushButtonRepeat" -defs["igPushButtonRepeat"][1]["location"] = "imgui:422" +defs["igPushButtonRepeat"][1]["location"] = "imgui:419" defs["igPushButtonRepeat"][1]["namespace"] = "ImGui" defs["igPushButtonRepeat"][1]["ov_cimguiname"] = "igPushButtonRepeat" defs["igPushButtonRepeat"][1]["ret"] = "void" @@ -22744,7 +23951,7 @@ defs["igPushClipRect"][1]["call_args"] = "(clip_rect_min,clip_rect_max,intersect defs["igPushClipRect"][1]["cimguiname"] = "igPushClipRect" defs["igPushClipRect"][1]["defaults"] = {} defs["igPushClipRect"][1]["funcname"] = "PushClipRect" -defs["igPushClipRect"][1]["location"] = "imgui:857" +defs["igPushClipRect"][1]["location"] = "imgui:854" defs["igPushClipRect"][1]["namespace"] = "ImGui" defs["igPushClipRect"][1]["ov_cimguiname"] = "igPushClipRect" defs["igPushClipRect"][1]["ret"] = "void" @@ -22763,7 +23970,7 @@ defs["igPushColumnClipRect"][1]["call_args"] = "(column_index)" defs["igPushColumnClipRect"][1]["cimguiname"] = "igPushColumnClipRect" defs["igPushColumnClipRect"][1]["defaults"] = {} defs["igPushColumnClipRect"][1]["funcname"] = "PushColumnClipRect" -defs["igPushColumnClipRect"][1]["location"] = "imgui_internal:2896" +defs["igPushColumnClipRect"][1]["location"] = "imgui_internal:3247" defs["igPushColumnClipRect"][1]["namespace"] = "ImGui" defs["igPushColumnClipRect"][1]["ov_cimguiname"] = "igPushColumnClipRect" defs["igPushColumnClipRect"][1]["ret"] = "void" @@ -22779,7 +23986,7 @@ defs["igPushColumnsBackground"][1]["call_args"] = "()" defs["igPushColumnsBackground"][1]["cimguiname"] = "igPushColumnsBackground" defs["igPushColumnsBackground"][1]["defaults"] = {} defs["igPushColumnsBackground"][1]["funcname"] = "PushColumnsBackground" -defs["igPushColumnsBackground"][1]["location"] = "imgui_internal:2897" +defs["igPushColumnsBackground"][1]["location"] = "imgui_internal:3248" defs["igPushColumnsBackground"][1]["namespace"] = "ImGui" defs["igPushColumnsBackground"][1]["ov_cimguiname"] = "igPushColumnsBackground" defs["igPushColumnsBackground"][1]["ret"] = "void" @@ -22798,7 +24005,7 @@ defs["igPushFocusScope"][1]["call_args"] = "(id)" defs["igPushFocusScope"][1]["cimguiname"] = "igPushFocusScope" defs["igPushFocusScope"][1]["defaults"] = {} defs["igPushFocusScope"][1]["funcname"] = "PushFocusScope" -defs["igPushFocusScope"][1]["location"] = "imgui_internal:2818" +defs["igPushFocusScope"][1]["location"] = "imgui_internal:3232" defs["igPushFocusScope"][1]["namespace"] = "ImGui" defs["igPushFocusScope"][1]["ov_cimguiname"] = "igPushFocusScope" defs["igPushFocusScope"][1]["ret"] = "void" @@ -22817,7 +24024,7 @@ defs["igPushFont"][1]["call_args"] = "(font)" defs["igPushFont"][1]["cimguiname"] = "igPushFont" defs["igPushFont"][1]["defaults"] = {} defs["igPushFont"][1]["funcname"] = "PushFont" -defs["igPushFont"][1]["location"] = "imgui:412" +defs["igPushFont"][1]["location"] = "imgui:409" defs["igPushFont"][1]["namespace"] = "ImGui" defs["igPushFont"][1]["ov_cimguiname"] = "igPushFont" defs["igPushFont"][1]["ret"] = "void" @@ -22836,9 +24043,9 @@ defs["igPushID"][1]["call_args"] = "(str_id)" defs["igPushID"][1]["cimguiname"] = "igPushID" defs["igPushID"][1]["defaults"] = {} defs["igPushID"][1]["funcname"] = "PushID" -defs["igPushID"][1]["location"] = "imgui:485" +defs["igPushID"][1]["location"] = "imgui:482" defs["igPushID"][1]["namespace"] = "ImGui" -defs["igPushID"][1]["ov_cimguiname"] = "igPushIDStr" +defs["igPushID"][1]["ov_cimguiname"] = "igPushID_Str" defs["igPushID"][1]["ret"] = "void" defs["igPushID"][1]["signature"] = "(const char*)" defs["igPushID"][1]["stname"] = "" @@ -22856,9 +24063,9 @@ defs["igPushID"][2]["call_args"] = "(str_id_begin,str_id_end)" defs["igPushID"][2]["cimguiname"] = "igPushID" defs["igPushID"][2]["defaults"] = {} defs["igPushID"][2]["funcname"] = "PushID" -defs["igPushID"][2]["location"] = "imgui:486" +defs["igPushID"][2]["location"] = "imgui:483" defs["igPushID"][2]["namespace"] = "ImGui" -defs["igPushID"][2]["ov_cimguiname"] = "igPushIDStrStr" +defs["igPushID"][2]["ov_cimguiname"] = "igPushID_StrStr" defs["igPushID"][2]["ret"] = "void" defs["igPushID"][2]["signature"] = "(const char*,const char*)" defs["igPushID"][2]["stname"] = "" @@ -22873,9 +24080,9 @@ defs["igPushID"][3]["call_args"] = "(ptr_id)" defs["igPushID"][3]["cimguiname"] = "igPushID" defs["igPushID"][3]["defaults"] = {} defs["igPushID"][3]["funcname"] = "PushID" -defs["igPushID"][3]["location"] = "imgui:487" +defs["igPushID"][3]["location"] = "imgui:484" defs["igPushID"][3]["namespace"] = "ImGui" -defs["igPushID"][3]["ov_cimguiname"] = "igPushIDPtr" +defs["igPushID"][3]["ov_cimguiname"] = "igPushID_Ptr" defs["igPushID"][3]["ret"] = "void" defs["igPushID"][3]["signature"] = "(const void*)" defs["igPushID"][3]["stname"] = "" @@ -22890,9 +24097,9 @@ defs["igPushID"][4]["call_args"] = "(int_id)" defs["igPushID"][4]["cimguiname"] = "igPushID" defs["igPushID"][4]["defaults"] = {} defs["igPushID"][4]["funcname"] = "PushID" -defs["igPushID"][4]["location"] = "imgui:488" +defs["igPushID"][4]["location"] = "imgui:485" defs["igPushID"][4]["namespace"] = "ImGui" -defs["igPushID"][4]["ov_cimguiname"] = "igPushIDInt" +defs["igPushID"][4]["ov_cimguiname"] = "igPushID_Int" defs["igPushID"][4]["ret"] = "void" defs["igPushID"][4]["signature"] = "(int)" defs["igPushID"][4]["stname"] = "" @@ -22915,7 +24122,7 @@ defs["igPushItemFlag"][1]["call_args"] = "(option,enabled)" defs["igPushItemFlag"][1]["cimguiname"] = "igPushItemFlag" defs["igPushItemFlag"][1]["defaults"] = {} defs["igPushItemFlag"][1]["funcname"] = "PushItemFlag" -defs["igPushItemFlag"][1]["location"] = "imgui_internal:2754" +defs["igPushItemFlag"][1]["location"] = "imgui_internal:3050" defs["igPushItemFlag"][1]["namespace"] = "ImGui" defs["igPushItemFlag"][1]["ov_cimguiname"] = "igPushItemFlag" defs["igPushItemFlag"][1]["ret"] = "void" @@ -22934,7 +24141,7 @@ defs["igPushItemWidth"][1]["call_args"] = "(item_width)" defs["igPushItemWidth"][1]["cimguiname"] = "igPushItemWidth" defs["igPushItemWidth"][1]["defaults"] = {} defs["igPushItemWidth"][1]["funcname"] = "PushItemWidth" -defs["igPushItemWidth"][1]["location"] = "imgui:426" +defs["igPushItemWidth"][1]["location"] = "imgui:423" defs["igPushItemWidth"][1]["namespace"] = "ImGui" defs["igPushItemWidth"][1]["ov_cimguiname"] = "igPushItemWidth" defs["igPushItemWidth"][1]["ret"] = "void" @@ -22956,7 +24163,7 @@ defs["igPushMultiItemsWidths"][1]["call_args"] = "(components,width_full)" defs["igPushMultiItemsWidths"][1]["cimguiname"] = "igPushMultiItemsWidths" defs["igPushMultiItemsWidths"][1]["defaults"] = {} defs["igPushMultiItemsWidths"][1]["funcname"] = "PushMultiItemsWidths" -defs["igPushMultiItemsWidths"][1]["location"] = "imgui_internal:2748" +defs["igPushMultiItemsWidths"][1]["location"] = "imgui_internal:3044" defs["igPushMultiItemsWidths"][1]["namespace"] = "ImGui" defs["igPushMultiItemsWidths"][1]["ov_cimguiname"] = "igPushMultiItemsWidths" defs["igPushMultiItemsWidths"][1]["ret"] = "void" @@ -22975,7 +24182,7 @@ defs["igPushOverrideID"][1]["call_args"] = "(id)" defs["igPushOverrideID"][1]["cimguiname"] = "igPushOverrideID" defs["igPushOverrideID"][1]["defaults"] = {} defs["igPushOverrideID"][1]["funcname"] = "PushOverrideID" -defs["igPushOverrideID"][1]["location"] = "imgui_internal:2736" +defs["igPushOverrideID"][1]["location"] = "imgui_internal:3032" defs["igPushOverrideID"][1]["namespace"] = "ImGui" defs["igPushOverrideID"][1]["ov_cimguiname"] = "igPushOverrideID" defs["igPushOverrideID"][1]["ret"] = "void" @@ -22997,9 +24204,9 @@ defs["igPushStyleColor"][1]["call_args"] = "(idx,col)" defs["igPushStyleColor"][1]["cimguiname"] = "igPushStyleColor" defs["igPushStyleColor"][1]["defaults"] = {} defs["igPushStyleColor"][1]["funcname"] = "PushStyleColor" -defs["igPushStyleColor"][1]["location"] = "imgui:414" +defs["igPushStyleColor"][1]["location"] = "imgui:411" defs["igPushStyleColor"][1]["namespace"] = "ImGui" -defs["igPushStyleColor"][1]["ov_cimguiname"] = "igPushStyleColorU32" +defs["igPushStyleColor"][1]["ov_cimguiname"] = "igPushStyleColor_U32" defs["igPushStyleColor"][1]["ret"] = "void" defs["igPushStyleColor"][1]["signature"] = "(ImGuiCol,ImU32)" defs["igPushStyleColor"][1]["stname"] = "" @@ -23017,9 +24224,9 @@ defs["igPushStyleColor"][2]["call_args"] = "(idx,col)" defs["igPushStyleColor"][2]["cimguiname"] = "igPushStyleColor" defs["igPushStyleColor"][2]["defaults"] = {} defs["igPushStyleColor"][2]["funcname"] = "PushStyleColor" -defs["igPushStyleColor"][2]["location"] = "imgui:415" +defs["igPushStyleColor"][2]["location"] = "imgui:412" defs["igPushStyleColor"][2]["namespace"] = "ImGui" -defs["igPushStyleColor"][2]["ov_cimguiname"] = "igPushStyleColorVec4" +defs["igPushStyleColor"][2]["ov_cimguiname"] = "igPushStyleColor_Vec4" defs["igPushStyleColor"][2]["ret"] = "void" defs["igPushStyleColor"][2]["signature"] = "(ImGuiCol,const ImVec4)" defs["igPushStyleColor"][2]["stname"] = "" @@ -23040,9 +24247,9 @@ defs["igPushStyleVar"][1]["call_args"] = "(idx,val)" defs["igPushStyleVar"][1]["cimguiname"] = "igPushStyleVar" defs["igPushStyleVar"][1]["defaults"] = {} defs["igPushStyleVar"][1]["funcname"] = "PushStyleVar" -defs["igPushStyleVar"][1]["location"] = "imgui:417" +defs["igPushStyleVar"][1]["location"] = "imgui:414" defs["igPushStyleVar"][1]["namespace"] = "ImGui" -defs["igPushStyleVar"][1]["ov_cimguiname"] = "igPushStyleVarFloat" +defs["igPushStyleVar"][1]["ov_cimguiname"] = "igPushStyleVar_Float" defs["igPushStyleVar"][1]["ret"] = "void" defs["igPushStyleVar"][1]["signature"] = "(ImGuiStyleVar,float)" defs["igPushStyleVar"][1]["stname"] = "" @@ -23060,9 +24267,9 @@ defs["igPushStyleVar"][2]["call_args"] = "(idx,val)" defs["igPushStyleVar"][2]["cimguiname"] = "igPushStyleVar" defs["igPushStyleVar"][2]["defaults"] = {} defs["igPushStyleVar"][2]["funcname"] = "PushStyleVar" -defs["igPushStyleVar"][2]["location"] = "imgui:418" +defs["igPushStyleVar"][2]["location"] = "imgui:415" defs["igPushStyleVar"][2]["namespace"] = "ImGui" -defs["igPushStyleVar"][2]["ov_cimguiname"] = "igPushStyleVarVec2" +defs["igPushStyleVar"][2]["ov_cimguiname"] = "igPushStyleVar_Vec2" defs["igPushStyleVar"][2]["ret"] = "void" defs["igPushStyleVar"][2]["signature"] = "(ImGuiStyleVar,const ImVec2)" defs["igPushStyleVar"][2]["stname"] = "" @@ -23081,7 +24288,7 @@ defs["igPushTextWrapPos"][1]["cimguiname"] = "igPushTextWrapPos" defs["igPushTextWrapPos"][1]["defaults"] = {} defs["igPushTextWrapPos"][1]["defaults"]["wrap_local_pos_x"] = "0.0f" defs["igPushTextWrapPos"][1]["funcname"] = "PushTextWrapPos" -defs["igPushTextWrapPos"][1]["location"] = "imgui:430" +defs["igPushTextWrapPos"][1]["location"] = "imgui:427" defs["igPushTextWrapPos"][1]["namespace"] = "ImGui" defs["igPushTextWrapPos"][1]["ov_cimguiname"] = "igPushTextWrapPos" defs["igPushTextWrapPos"][1]["ret"] = "void" @@ -23103,9 +24310,9 @@ defs["igRadioButton"][1]["call_args"] = "(label,active)" defs["igRadioButton"][1]["cimguiname"] = "igRadioButton" defs["igRadioButton"][1]["defaults"] = {} defs["igRadioButton"][1]["funcname"] = "RadioButton" -defs["igRadioButton"][1]["location"] = "imgui:521" +defs["igRadioButton"][1]["location"] = "imgui:516" defs["igRadioButton"][1]["namespace"] = "ImGui" -defs["igRadioButton"][1]["ov_cimguiname"] = "igRadioButtonBool" +defs["igRadioButton"][1]["ov_cimguiname"] = "igRadioButton_Bool" defs["igRadioButton"][1]["ret"] = "bool" defs["igRadioButton"][1]["signature"] = "(const char*,bool)" defs["igRadioButton"][1]["stname"] = "" @@ -23126,9 +24333,9 @@ defs["igRadioButton"][2]["call_args"] = "(label,v,v_button)" defs["igRadioButton"][2]["cimguiname"] = "igRadioButton" defs["igRadioButton"][2]["defaults"] = {} defs["igRadioButton"][2]["funcname"] = "RadioButton" -defs["igRadioButton"][2]["location"] = "imgui:522" +defs["igRadioButton"][2]["location"] = "imgui:517" defs["igRadioButton"][2]["namespace"] = "ImGui" -defs["igRadioButton"][2]["ov_cimguiname"] = "igRadioButtonIntPtr" +defs["igRadioButton"][2]["ov_cimguiname"] = "igRadioButton_IntPtr" defs["igRadioButton"][2]["ret"] = "bool" defs["igRadioButton"][2]["signature"] = "(const char*,int*,int)" defs["igRadioButton"][2]["stname"] = "" @@ -23149,13 +24356,32 @@ defs["igRemoveContextHook"][1]["call_args"] = "(context,hook_to_remove)" defs["igRemoveContextHook"][1]["cimguiname"] = "igRemoveContextHook" defs["igRemoveContextHook"][1]["defaults"] = {} defs["igRemoveContextHook"][1]["funcname"] = "RemoveContextHook" -defs["igRemoveContextHook"][1]["location"] = "imgui_internal:2689" +defs["igRemoveContextHook"][1]["location"] = "imgui_internal:2978" defs["igRemoveContextHook"][1]["namespace"] = "ImGui" defs["igRemoveContextHook"][1]["ov_cimguiname"] = "igRemoveContextHook" defs["igRemoveContextHook"][1]["ret"] = "void" defs["igRemoveContextHook"][1]["signature"] = "(ImGuiContext*,ImGuiID)" defs["igRemoveContextHook"][1]["stname"] = "" defs["igRemoveContextHook"]["(ImGuiContext*,ImGuiID)"] = defs["igRemoveContextHook"][1] +defs["igRemoveSettingsHandler"] = {} +defs["igRemoveSettingsHandler"][1] = {} +defs["igRemoveSettingsHandler"][1]["args"] = "(const char* type_name)" +defs["igRemoveSettingsHandler"][1]["argsT"] = {} +defs["igRemoveSettingsHandler"][1]["argsT"][1] = {} +defs["igRemoveSettingsHandler"][1]["argsT"][1]["name"] = "type_name" +defs["igRemoveSettingsHandler"][1]["argsT"][1]["type"] = "const char*" +defs["igRemoveSettingsHandler"][1]["argsoriginal"] = "(const char* type_name)" +defs["igRemoveSettingsHandler"][1]["call_args"] = "(type_name)" +defs["igRemoveSettingsHandler"][1]["cimguiname"] = "igRemoveSettingsHandler" +defs["igRemoveSettingsHandler"][1]["defaults"] = {} +defs["igRemoveSettingsHandler"][1]["funcname"] = "RemoveSettingsHandler" +defs["igRemoveSettingsHandler"][1]["location"] = "imgui_internal:2998" +defs["igRemoveSettingsHandler"][1]["namespace"] = "ImGui" +defs["igRemoveSettingsHandler"][1]["ov_cimguiname"] = "igRemoveSettingsHandler" +defs["igRemoveSettingsHandler"][1]["ret"] = "void" +defs["igRemoveSettingsHandler"][1]["signature"] = "(const char*)" +defs["igRemoveSettingsHandler"][1]["stname"] = "" +defs["igRemoveSettingsHandler"]["(const char*)"] = defs["igRemoveSettingsHandler"][1] defs["igRender"] = {} defs["igRender"][1] = {} defs["igRender"][1]["args"] = "()" @@ -23165,7 +24391,7 @@ defs["igRender"][1]["call_args"] = "()" defs["igRender"][1]["cimguiname"] = "igRender" defs["igRender"][1]["defaults"] = {} defs["igRender"][1]["funcname"] = "Render" -defs["igRender"][1]["location"] = "imgui:311" +defs["igRender"][1]["location"] = "imgui:304" defs["igRender"][1]["namespace"] = "ImGui" defs["igRender"][1]["ov_cimguiname"] = "igRender" defs["igRender"][1]["ret"] = "void" @@ -23197,7 +24423,7 @@ defs["igRenderArrow"][1]["cimguiname"] = "igRenderArrow" defs["igRenderArrow"][1]["defaults"] = {} defs["igRenderArrow"][1]["defaults"]["scale"] = "1.0f" defs["igRenderArrow"][1]["funcname"] = "RenderArrow" -defs["igRenderArrow"][1]["location"] = "imgui_internal:2985" +defs["igRenderArrow"][1]["location"] = "imgui_internal:3340" defs["igRenderArrow"][1]["namespace"] = "ImGui" defs["igRenderArrow"][1]["ov_cimguiname"] = "igRenderArrow" defs["igRenderArrow"][1]["ret"] = "void" @@ -23225,7 +24451,7 @@ defs["igRenderArrowDockMenu"][1]["call_args"] = "(draw_list,p_min,sz,col)" defs["igRenderArrowDockMenu"][1]["cimguiname"] = "igRenderArrowDockMenu" defs["igRenderArrowDockMenu"][1]["defaults"] = {} defs["igRenderArrowDockMenu"][1]["funcname"] = "RenderArrowDockMenu" -defs["igRenderArrowDockMenu"][1]["location"] = "imgui_internal:2990" +defs["igRenderArrowDockMenu"][1]["location"] = "imgui_internal:3344" defs["igRenderArrowDockMenu"][1]["namespace"] = "ImGui" defs["igRenderArrowDockMenu"][1]["ov_cimguiname"] = "igRenderArrowDockMenu" defs["igRenderArrowDockMenu"][1]["ret"] = "void" @@ -23256,7 +24482,7 @@ defs["igRenderArrowPointingAt"][1]["call_args"] = "(draw_list,pos,half_sz,direct defs["igRenderArrowPointingAt"][1]["cimguiname"] = "igRenderArrowPointingAt" defs["igRenderArrowPointingAt"][1]["defaults"] = {} defs["igRenderArrowPointingAt"][1]["funcname"] = "RenderArrowPointingAt" -defs["igRenderArrowPointingAt"][1]["location"] = "imgui_internal:2989" +defs["igRenderArrowPointingAt"][1]["location"] = "imgui_internal:3343" defs["igRenderArrowPointingAt"][1]["namespace"] = "ImGui" defs["igRenderArrowPointingAt"][1]["ov_cimguiname"] = "igRenderArrowPointingAt" defs["igRenderArrowPointingAt"][1]["ret"] = "void" @@ -23281,7 +24507,7 @@ defs["igRenderBullet"][1]["call_args"] = "(draw_list,pos,col)" defs["igRenderBullet"][1]["cimguiname"] = "igRenderBullet" defs["igRenderBullet"][1]["defaults"] = {} defs["igRenderBullet"][1]["funcname"] = "RenderBullet" -defs["igRenderBullet"][1]["location"] = "imgui_internal:2986" +defs["igRenderBullet"][1]["location"] = "imgui_internal:3341" defs["igRenderBullet"][1]["namespace"] = "ImGui" defs["igRenderBullet"][1]["ov_cimguiname"] = "igRenderBullet" defs["igRenderBullet"][1]["ret"] = "void" @@ -23309,7 +24535,7 @@ defs["igRenderCheckMark"][1]["call_args"] = "(draw_list,pos,col,sz)" defs["igRenderCheckMark"][1]["cimguiname"] = "igRenderCheckMark" defs["igRenderCheckMark"][1]["defaults"] = {} defs["igRenderCheckMark"][1]["funcname"] = "RenderCheckMark" -defs["igRenderCheckMark"][1]["location"] = "imgui_internal:2987" +defs["igRenderCheckMark"][1]["location"] = "imgui_internal:3342" defs["igRenderCheckMark"][1]["namespace"] = "ImGui" defs["igRenderCheckMark"][1]["ov_cimguiname"] = "igRenderCheckMark" defs["igRenderCheckMark"][1]["ret"] = "void" @@ -23351,13 +24577,32 @@ defs["igRenderColorRectWithAlphaCheckerboard"][1]["defaults"] = {} defs["igRenderColorRectWithAlphaCheckerboard"][1]["defaults"]["flags"] = "0" defs["igRenderColorRectWithAlphaCheckerboard"][1]["defaults"]["rounding"] = "0.0f" defs["igRenderColorRectWithAlphaCheckerboard"][1]["funcname"] = "RenderColorRectWithAlphaCheckerboard" -defs["igRenderColorRectWithAlphaCheckerboard"][1]["location"] = "imgui_internal:2980" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["location"] = "imgui_internal:3334" defs["igRenderColorRectWithAlphaCheckerboard"][1]["namespace"] = "ImGui" defs["igRenderColorRectWithAlphaCheckerboard"][1]["ov_cimguiname"] = "igRenderColorRectWithAlphaCheckerboard" defs["igRenderColorRectWithAlphaCheckerboard"][1]["ret"] = "void" defs["igRenderColorRectWithAlphaCheckerboard"][1]["signature"] = "(ImDrawList*,ImVec2,ImVec2,ImU32,float,ImVec2,float,ImDrawFlags)" defs["igRenderColorRectWithAlphaCheckerboard"][1]["stname"] = "" defs["igRenderColorRectWithAlphaCheckerboard"]["(ImDrawList*,ImVec2,ImVec2,ImU32,float,ImVec2,float,ImDrawFlags)"] = defs["igRenderColorRectWithAlphaCheckerboard"][1] +defs["igRenderDragDropTargetRect"] = {} +defs["igRenderDragDropTargetRect"][1] = {} +defs["igRenderDragDropTargetRect"][1]["args"] = "(const ImRect bb)" +defs["igRenderDragDropTargetRect"][1]["argsT"] = {} +defs["igRenderDragDropTargetRect"][1]["argsT"][1] = {} +defs["igRenderDragDropTargetRect"][1]["argsT"][1]["name"] = "bb" +defs["igRenderDragDropTargetRect"][1]["argsT"][1]["type"] = "const ImRect" +defs["igRenderDragDropTargetRect"][1]["argsoriginal"] = "(const ImRect& bb)" +defs["igRenderDragDropTargetRect"][1]["call_args"] = "(bb)" +defs["igRenderDragDropTargetRect"][1]["cimguiname"] = "igRenderDragDropTargetRect" +defs["igRenderDragDropTargetRect"][1]["defaults"] = {} +defs["igRenderDragDropTargetRect"][1]["funcname"] = "RenderDragDropTargetRect" +defs["igRenderDragDropTargetRect"][1]["location"] = "imgui_internal:3241" +defs["igRenderDragDropTargetRect"][1]["namespace"] = "ImGui" +defs["igRenderDragDropTargetRect"][1]["ov_cimguiname"] = "igRenderDragDropTargetRect" +defs["igRenderDragDropTargetRect"][1]["ret"] = "void" +defs["igRenderDragDropTargetRect"][1]["signature"] = "(const ImRect)" +defs["igRenderDragDropTargetRect"][1]["stname"] = "" +defs["igRenderDragDropTargetRect"]["(const ImRect)"] = defs["igRenderDragDropTargetRect"][1] defs["igRenderFrame"] = {} defs["igRenderFrame"][1] = {} defs["igRenderFrame"][1]["args"] = "(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border,float rounding)" @@ -23384,7 +24629,7 @@ defs["igRenderFrame"][1]["defaults"] = {} defs["igRenderFrame"][1]["defaults"]["border"] = "true" defs["igRenderFrame"][1]["defaults"]["rounding"] = "0.0f" defs["igRenderFrame"][1]["funcname"] = "RenderFrame" -defs["igRenderFrame"][1]["location"] = "imgui_internal:2978" +defs["igRenderFrame"][1]["location"] = "imgui_internal:3332" defs["igRenderFrame"][1]["namespace"] = "ImGui" defs["igRenderFrame"][1]["ov_cimguiname"] = "igRenderFrame" defs["igRenderFrame"][1]["ret"] = "void" @@ -23410,7 +24655,7 @@ defs["igRenderFrameBorder"][1]["cimguiname"] = "igRenderFrameBorder" defs["igRenderFrameBorder"][1]["defaults"] = {} defs["igRenderFrameBorder"][1]["defaults"]["rounding"] = "0.0f" defs["igRenderFrameBorder"][1]["funcname"] = "RenderFrameBorder" -defs["igRenderFrameBorder"][1]["location"] = "imgui_internal:2979" +defs["igRenderFrameBorder"][1]["location"] = "imgui_internal:3333" defs["igRenderFrameBorder"][1]["namespace"] = "ImGui" defs["igRenderFrameBorder"][1]["ov_cimguiname"] = "igRenderFrameBorder" defs["igRenderFrameBorder"][1]["ret"] = "void" @@ -23419,41 +24664,38 @@ defs["igRenderFrameBorder"][1]["stname"] = "" defs["igRenderFrameBorder"]["(ImVec2,ImVec2,float)"] = defs["igRenderFrameBorder"][1] defs["igRenderMouseCursor"] = {} defs["igRenderMouseCursor"][1] = {} -defs["igRenderMouseCursor"][1]["args"] = "(ImDrawList* draw_list,ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)" +defs["igRenderMouseCursor"][1]["args"] = "(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)" defs["igRenderMouseCursor"][1]["argsT"] = {} defs["igRenderMouseCursor"][1]["argsT"][1] = {} -defs["igRenderMouseCursor"][1]["argsT"][1]["name"] = "draw_list" -defs["igRenderMouseCursor"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderMouseCursor"][1]["argsT"][1]["name"] = "pos" +defs["igRenderMouseCursor"][1]["argsT"][1]["type"] = "ImVec2" defs["igRenderMouseCursor"][1]["argsT"][2] = {} -defs["igRenderMouseCursor"][1]["argsT"][2]["name"] = "pos" -defs["igRenderMouseCursor"][1]["argsT"][2]["type"] = "ImVec2" +defs["igRenderMouseCursor"][1]["argsT"][2]["name"] = "scale" +defs["igRenderMouseCursor"][1]["argsT"][2]["type"] = "float" defs["igRenderMouseCursor"][1]["argsT"][3] = {} -defs["igRenderMouseCursor"][1]["argsT"][3]["name"] = "scale" -defs["igRenderMouseCursor"][1]["argsT"][3]["type"] = "float" +defs["igRenderMouseCursor"][1]["argsT"][3]["name"] = "mouse_cursor" +defs["igRenderMouseCursor"][1]["argsT"][3]["type"] = "ImGuiMouseCursor" defs["igRenderMouseCursor"][1]["argsT"][4] = {} -defs["igRenderMouseCursor"][1]["argsT"][4]["name"] = "mouse_cursor" -defs["igRenderMouseCursor"][1]["argsT"][4]["type"] = "ImGuiMouseCursor" +defs["igRenderMouseCursor"][1]["argsT"][4]["name"] = "col_fill" +defs["igRenderMouseCursor"][1]["argsT"][4]["type"] = "ImU32" defs["igRenderMouseCursor"][1]["argsT"][5] = {} -defs["igRenderMouseCursor"][1]["argsT"][5]["name"] = "col_fill" +defs["igRenderMouseCursor"][1]["argsT"][5]["name"] = "col_border" defs["igRenderMouseCursor"][1]["argsT"][5]["type"] = "ImU32" defs["igRenderMouseCursor"][1]["argsT"][6] = {} -defs["igRenderMouseCursor"][1]["argsT"][6]["name"] = "col_border" +defs["igRenderMouseCursor"][1]["argsT"][6]["name"] = "col_shadow" defs["igRenderMouseCursor"][1]["argsT"][6]["type"] = "ImU32" -defs["igRenderMouseCursor"][1]["argsT"][7] = {} -defs["igRenderMouseCursor"][1]["argsT"][7]["name"] = "col_shadow" -defs["igRenderMouseCursor"][1]["argsT"][7]["type"] = "ImU32" -defs["igRenderMouseCursor"][1]["argsoriginal"] = "(ImDrawList* draw_list,ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)" -defs["igRenderMouseCursor"][1]["call_args"] = "(draw_list,pos,scale,mouse_cursor,col_fill,col_border,col_shadow)" +defs["igRenderMouseCursor"][1]["argsoriginal"] = "(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)" +defs["igRenderMouseCursor"][1]["call_args"] = "(pos,scale,mouse_cursor,col_fill,col_border,col_shadow)" defs["igRenderMouseCursor"][1]["cimguiname"] = "igRenderMouseCursor" defs["igRenderMouseCursor"][1]["defaults"] = {} defs["igRenderMouseCursor"][1]["funcname"] = "RenderMouseCursor" -defs["igRenderMouseCursor"][1]["location"] = "imgui_internal:2988" +defs["igRenderMouseCursor"][1]["location"] = "imgui_internal:3337" defs["igRenderMouseCursor"][1]["namespace"] = "ImGui" defs["igRenderMouseCursor"][1]["ov_cimguiname"] = "igRenderMouseCursor" defs["igRenderMouseCursor"][1]["ret"] = "void" -defs["igRenderMouseCursor"][1]["signature"] = "(ImDrawList*,ImVec2,float,ImGuiMouseCursor,ImU32,ImU32,ImU32)" +defs["igRenderMouseCursor"][1]["signature"] = "(ImVec2,float,ImGuiMouseCursor,ImU32,ImU32,ImU32)" defs["igRenderMouseCursor"][1]["stname"] = "" -defs["igRenderMouseCursor"]["(ImDrawList*,ImVec2,float,ImGuiMouseCursor,ImU32,ImU32,ImU32)"] = defs["igRenderMouseCursor"][1] +defs["igRenderMouseCursor"]["(ImVec2,float,ImGuiMouseCursor,ImU32,ImU32,ImU32)"] = defs["igRenderMouseCursor"][1] defs["igRenderNavHighlight"] = {} defs["igRenderNavHighlight"][1] = {} defs["igRenderNavHighlight"][1]["args"] = "(const ImRect bb,ImGuiID id,ImGuiNavHighlightFlags flags)" @@ -23473,7 +24715,7 @@ defs["igRenderNavHighlight"][1]["cimguiname"] = "igRenderNavHighlight" defs["igRenderNavHighlight"][1]["defaults"] = {} defs["igRenderNavHighlight"][1]["defaults"]["flags"] = "ImGuiNavHighlightFlags_TypeDefault" defs["igRenderNavHighlight"][1]["funcname"] = "RenderNavHighlight" -defs["igRenderNavHighlight"][1]["location"] = "imgui_internal:2981" +defs["igRenderNavHighlight"][1]["location"] = "imgui_internal:3335" defs["igRenderNavHighlight"][1]["namespace"] = "ImGui" defs["igRenderNavHighlight"][1]["ov_cimguiname"] = "igRenderNavHighlight" defs["igRenderNavHighlight"][1]["ret"] = "void" @@ -23497,7 +24739,7 @@ defs["igRenderPlatformWindowsDefault"][1]["defaults"] = {} defs["igRenderPlatformWindowsDefault"][1]["defaults"]["platform_render_arg"] = "NULL" defs["igRenderPlatformWindowsDefault"][1]["defaults"]["renderer_render_arg"] = "NULL" defs["igRenderPlatformWindowsDefault"][1]["funcname"] = "RenderPlatformWindowsDefault" -defs["igRenderPlatformWindowsDefault"][1]["location"] = "imgui:980" +defs["igRenderPlatformWindowsDefault"][1]["location"] = "imgui:982" defs["igRenderPlatformWindowsDefault"][1]["namespace"] = "ImGui" defs["igRenderPlatformWindowsDefault"][1]["ov_cimguiname"] = "igRenderPlatformWindowsDefault" defs["igRenderPlatformWindowsDefault"][1]["ret"] = "void" @@ -23531,7 +24773,7 @@ defs["igRenderRectFilledRangeH"][1]["call_args"] = "(draw_list,rect,col,x_start_ defs["igRenderRectFilledRangeH"][1]["cimguiname"] = "igRenderRectFilledRangeH" defs["igRenderRectFilledRangeH"][1]["defaults"] = {} defs["igRenderRectFilledRangeH"][1]["funcname"] = "RenderRectFilledRangeH" -defs["igRenderRectFilledRangeH"][1]["location"] = "imgui_internal:2991" +defs["igRenderRectFilledRangeH"][1]["location"] = "imgui_internal:3345" defs["igRenderRectFilledRangeH"][1]["namespace"] = "ImGui" defs["igRenderRectFilledRangeH"][1]["ov_cimguiname"] = "igRenderRectFilledRangeH" defs["igRenderRectFilledRangeH"][1]["ret"] = "void" @@ -23540,35 +24782,35 @@ defs["igRenderRectFilledRangeH"][1]["stname"] = "" defs["igRenderRectFilledRangeH"]["(ImDrawList*,const ImRect,ImU32,float,float,float)"] = defs["igRenderRectFilledRangeH"][1] defs["igRenderRectFilledWithHole"] = {} defs["igRenderRectFilledWithHole"][1] = {} -defs["igRenderRectFilledWithHole"][1]["args"] = "(ImDrawList* draw_list,ImRect outer,ImRect inner,ImU32 col,float rounding)" +defs["igRenderRectFilledWithHole"][1]["args"] = "(ImDrawList* draw_list,const ImRect outer,const ImRect inner,ImU32 col,float rounding)" defs["igRenderRectFilledWithHole"][1]["argsT"] = {} defs["igRenderRectFilledWithHole"][1]["argsT"][1] = {} defs["igRenderRectFilledWithHole"][1]["argsT"][1]["name"] = "draw_list" defs["igRenderRectFilledWithHole"][1]["argsT"][1]["type"] = "ImDrawList*" defs["igRenderRectFilledWithHole"][1]["argsT"][2] = {} defs["igRenderRectFilledWithHole"][1]["argsT"][2]["name"] = "outer" -defs["igRenderRectFilledWithHole"][1]["argsT"][2]["type"] = "ImRect" +defs["igRenderRectFilledWithHole"][1]["argsT"][2]["type"] = "const ImRect" defs["igRenderRectFilledWithHole"][1]["argsT"][3] = {} defs["igRenderRectFilledWithHole"][1]["argsT"][3]["name"] = "inner" -defs["igRenderRectFilledWithHole"][1]["argsT"][3]["type"] = "ImRect" +defs["igRenderRectFilledWithHole"][1]["argsT"][3]["type"] = "const ImRect" defs["igRenderRectFilledWithHole"][1]["argsT"][4] = {} defs["igRenderRectFilledWithHole"][1]["argsT"][4]["name"] = "col" defs["igRenderRectFilledWithHole"][1]["argsT"][4]["type"] = "ImU32" defs["igRenderRectFilledWithHole"][1]["argsT"][5] = {} defs["igRenderRectFilledWithHole"][1]["argsT"][5]["name"] = "rounding" defs["igRenderRectFilledWithHole"][1]["argsT"][5]["type"] = "float" -defs["igRenderRectFilledWithHole"][1]["argsoriginal"] = "(ImDrawList* draw_list,ImRect outer,ImRect inner,ImU32 col,float rounding)" +defs["igRenderRectFilledWithHole"][1]["argsoriginal"] = "(ImDrawList* draw_list,const ImRect& outer,const ImRect& inner,ImU32 col,float rounding)" defs["igRenderRectFilledWithHole"][1]["call_args"] = "(draw_list,outer,inner,col,rounding)" defs["igRenderRectFilledWithHole"][1]["cimguiname"] = "igRenderRectFilledWithHole" defs["igRenderRectFilledWithHole"][1]["defaults"] = {} defs["igRenderRectFilledWithHole"][1]["funcname"] = "RenderRectFilledWithHole" -defs["igRenderRectFilledWithHole"][1]["location"] = "imgui_internal:2992" +defs["igRenderRectFilledWithHole"][1]["location"] = "imgui_internal:3346" defs["igRenderRectFilledWithHole"][1]["namespace"] = "ImGui" defs["igRenderRectFilledWithHole"][1]["ov_cimguiname"] = "igRenderRectFilledWithHole" defs["igRenderRectFilledWithHole"][1]["ret"] = "void" -defs["igRenderRectFilledWithHole"][1]["signature"] = "(ImDrawList*,ImRect,ImRect,ImU32,float)" +defs["igRenderRectFilledWithHole"][1]["signature"] = "(ImDrawList*,const ImRect,const ImRect,ImU32,float)" defs["igRenderRectFilledWithHole"][1]["stname"] = "" -defs["igRenderRectFilledWithHole"]["(ImDrawList*,ImRect,ImRect,ImU32,float)"] = defs["igRenderRectFilledWithHole"][1] +defs["igRenderRectFilledWithHole"]["(ImDrawList*,const ImRect,const ImRect,ImU32,float)"] = defs["igRenderRectFilledWithHole"][1] defs["igRenderText"] = {} defs["igRenderText"][1] = {} defs["igRenderText"][1]["args"] = "(ImVec2 pos,const char* text,const char* text_end,bool hide_text_after_hash)" @@ -23592,7 +24834,7 @@ defs["igRenderText"][1]["defaults"] = {} defs["igRenderText"][1]["defaults"]["hide_text_after_hash"] = "true" defs["igRenderText"][1]["defaults"]["text_end"] = "NULL" defs["igRenderText"][1]["funcname"] = "RenderText" -defs["igRenderText"][1]["location"] = "imgui_internal:2973" +defs["igRenderText"][1]["location"] = "imgui_internal:3327" defs["igRenderText"][1]["namespace"] = "ImGui" defs["igRenderText"][1]["ov_cimguiname"] = "igRenderText" defs["igRenderText"][1]["ret"] = "void" @@ -23631,7 +24873,7 @@ defs["igRenderTextClipped"][1]["defaults"] = {} defs["igRenderTextClipped"][1]["defaults"]["align"] = "ImVec2(0,0)" defs["igRenderTextClipped"][1]["defaults"]["clip_rect"] = "NULL" defs["igRenderTextClipped"][1]["funcname"] = "RenderTextClipped" -defs["igRenderTextClipped"][1]["location"] = "imgui_internal:2975" +defs["igRenderTextClipped"][1]["location"] = "imgui_internal:3329" defs["igRenderTextClipped"][1]["namespace"] = "ImGui" defs["igRenderTextClipped"][1]["ov_cimguiname"] = "igRenderTextClipped" defs["igRenderTextClipped"][1]["ret"] = "void" @@ -23673,7 +24915,7 @@ defs["igRenderTextClippedEx"][1]["defaults"] = {} defs["igRenderTextClippedEx"][1]["defaults"]["align"] = "ImVec2(0,0)" defs["igRenderTextClippedEx"][1]["defaults"]["clip_rect"] = "NULL" defs["igRenderTextClippedEx"][1]["funcname"] = "RenderTextClippedEx" -defs["igRenderTextClippedEx"][1]["location"] = "imgui_internal:2976" +defs["igRenderTextClippedEx"][1]["location"] = "imgui_internal:3330" defs["igRenderTextClippedEx"][1]["namespace"] = "ImGui" defs["igRenderTextClippedEx"][1]["ov_cimguiname"] = "igRenderTextClippedEx" defs["igRenderTextClippedEx"][1]["ret"] = "void" @@ -23713,7 +24955,7 @@ defs["igRenderTextEllipsis"][1]["call_args"] = "(draw_list,pos_min,pos_max,clip_ defs["igRenderTextEllipsis"][1]["cimguiname"] = "igRenderTextEllipsis" defs["igRenderTextEllipsis"][1]["defaults"] = {} defs["igRenderTextEllipsis"][1]["funcname"] = "RenderTextEllipsis" -defs["igRenderTextEllipsis"][1]["location"] = "imgui_internal:2977" +defs["igRenderTextEllipsis"][1]["location"] = "imgui_internal:3331" defs["igRenderTextEllipsis"][1]["namespace"] = "ImGui" defs["igRenderTextEllipsis"][1]["ov_cimguiname"] = "igRenderTextEllipsis" defs["igRenderTextEllipsis"][1]["ret"] = "void" @@ -23741,7 +24983,7 @@ defs["igRenderTextWrapped"][1]["call_args"] = "(pos,text,text_end,wrap_width)" defs["igRenderTextWrapped"][1]["cimguiname"] = "igRenderTextWrapped" defs["igRenderTextWrapped"][1]["defaults"] = {} defs["igRenderTextWrapped"][1]["funcname"] = "RenderTextWrapped" -defs["igRenderTextWrapped"][1]["location"] = "imgui_internal:2974" +defs["igRenderTextWrapped"][1]["location"] = "imgui_internal:3328" defs["igRenderTextWrapped"][1]["namespace"] = "ImGui" defs["igRenderTextWrapped"][1]["ov_cimguiname"] = "igRenderTextWrapped" defs["igRenderTextWrapped"][1]["ret"] = "void" @@ -23761,7 +25003,7 @@ defs["igResetMouseDragDelta"][1]["cimguiname"] = "igResetMouseDragDelta" defs["igResetMouseDragDelta"][1]["defaults"] = {} defs["igResetMouseDragDelta"][1]["defaults"]["button"] = "0" defs["igResetMouseDragDelta"][1]["funcname"] = "ResetMouseDragDelta" -defs["igResetMouseDragDelta"][1]["location"] = "imgui:943" +defs["igResetMouseDragDelta"][1]["location"] = "imgui:945" defs["igResetMouseDragDelta"][1]["namespace"] = "ImGui" defs["igResetMouseDragDelta"][1]["ov_cimguiname"] = "igResetMouseDragDelta" defs["igResetMouseDragDelta"][1]["ret"] = "void" @@ -23785,7 +25027,7 @@ defs["igSameLine"][1]["defaults"] = {} defs["igSameLine"][1]["defaults"]["offset_from_start_x"] = "0.0f" defs["igSameLine"][1]["defaults"]["spacing"] = "-1.0f" defs["igSameLine"][1]["funcname"] = "SameLine" -defs["igSameLine"][1]["location"] = "imgui:451" +defs["igSameLine"][1]["location"] = "imgui:448" defs["igSameLine"][1]["namespace"] = "ImGui" defs["igSameLine"][1]["ov_cimguiname"] = "igSameLine" defs["igSameLine"][1]["ret"] = "void" @@ -23804,7 +25046,7 @@ defs["igSaveIniSettingsToDisk"][1]["call_args"] = "(ini_filename)" defs["igSaveIniSettingsToDisk"][1]["cimguiname"] = "igSaveIniSettingsToDisk" defs["igSaveIniSettingsToDisk"][1]["defaults"] = {} defs["igSaveIniSettingsToDisk"][1]["funcname"] = "SaveIniSettingsToDisk" -defs["igSaveIniSettingsToDisk"][1]["location"] = "imgui:959" +defs["igSaveIniSettingsToDisk"][1]["location"] = "imgui:961" defs["igSaveIniSettingsToDisk"][1]["namespace"] = "ImGui" defs["igSaveIniSettingsToDisk"][1]["ov_cimguiname"] = "igSaveIniSettingsToDisk" defs["igSaveIniSettingsToDisk"][1]["ret"] = "void" @@ -23824,7 +25066,7 @@ defs["igSaveIniSettingsToMemory"][1]["cimguiname"] = "igSaveIniSettingsToMemory" defs["igSaveIniSettingsToMemory"][1]["defaults"] = {} defs["igSaveIniSettingsToMemory"][1]["defaults"]["out_ini_size"] = "NULL" defs["igSaveIniSettingsToMemory"][1]["funcname"] = "SaveIniSettingsToMemory" -defs["igSaveIniSettingsToMemory"][1]["location"] = "imgui:960" +defs["igSaveIniSettingsToMemory"][1]["location"] = "imgui:962" defs["igSaveIniSettingsToMemory"][1]["namespace"] = "ImGui" defs["igSaveIniSettingsToMemory"][1]["ov_cimguiname"] = "igSaveIniSettingsToMemory" defs["igSaveIniSettingsToMemory"][1]["ret"] = "const char*" @@ -23846,7 +25088,7 @@ defs["igScaleWindowsInViewport"][1]["call_args"] = "(viewport,scale)" defs["igScaleWindowsInViewport"][1]["cimguiname"] = "igScaleWindowsInViewport" defs["igScaleWindowsInViewport"][1]["defaults"] = {} defs["igScaleWindowsInViewport"][1]["funcname"] = "ScaleWindowsInViewport" -defs["igScaleWindowsInViewport"][1]["location"] = "imgui_internal:2694" +defs["igScaleWindowsInViewport"][1]["location"] = "imgui_internal:2983" defs["igScaleWindowsInViewport"][1]["namespace"] = "ImGui" defs["igScaleWindowsInViewport"][1]["ov_cimguiname"] = "igScaleWindowsInViewport" defs["igScaleWindowsInViewport"][1]["ret"] = "void" @@ -23868,7 +25110,7 @@ defs["igScrollToBringRectIntoView"][1]["call_args"] = "(window,rect)" defs["igScrollToBringRectIntoView"][1]["cimguiname"] = "igScrollToBringRectIntoView" defs["igScrollToBringRectIntoView"][1]["defaults"] = {} defs["igScrollToBringRectIntoView"][1]["funcname"] = "ScrollToBringRectIntoView" -defs["igScrollToBringRectIntoView"][1]["location"] = "imgui_internal:2720" +defs["igScrollToBringRectIntoView"][1]["location"] = "imgui_internal:3016" defs["igScrollToBringRectIntoView"][1]["namespace"] = "ImGui" defs["igScrollToBringRectIntoView"][1]["ov_cimguiname"] = "igScrollToBringRectIntoView" defs["igScrollToBringRectIntoView"][1]["ret"] = "void" @@ -23888,7 +25130,7 @@ defs["igScrollToItem"][1]["cimguiname"] = "igScrollToItem" defs["igScrollToItem"][1]["defaults"] = {} defs["igScrollToItem"][1]["defaults"]["flags"] = "0" defs["igScrollToItem"][1]["funcname"] = "ScrollToItem" -defs["igScrollToItem"][1]["location"] = "imgui_internal:2716" +defs["igScrollToItem"][1]["location"] = "imgui_internal:3012" defs["igScrollToItem"][1]["namespace"] = "ImGui" defs["igScrollToItem"][1]["ov_cimguiname"] = "igScrollToItem" defs["igScrollToItem"][1]["ret"] = "void" @@ -23914,7 +25156,7 @@ defs["igScrollToRect"][1]["cimguiname"] = "igScrollToRect" defs["igScrollToRect"][1]["defaults"] = {} defs["igScrollToRect"][1]["defaults"]["flags"] = "0" defs["igScrollToRect"][1]["funcname"] = "ScrollToRect" -defs["igScrollToRect"][1]["location"] = "imgui_internal:2717" +defs["igScrollToRect"][1]["location"] = "imgui_internal:3013" defs["igScrollToRect"][1]["namespace"] = "ImGui" defs["igScrollToRect"][1]["ov_cimguiname"] = "igScrollToRect" defs["igScrollToRect"][1]["ret"] = "void" @@ -23943,7 +25185,7 @@ defs["igScrollToRectEx"][1]["cimguiname"] = "igScrollToRectEx" defs["igScrollToRectEx"][1]["defaults"] = {} defs["igScrollToRectEx"][1]["defaults"]["flags"] = "0" defs["igScrollToRectEx"][1]["funcname"] = "ScrollToRectEx" -defs["igScrollToRectEx"][1]["location"] = "imgui_internal:2718" +defs["igScrollToRectEx"][1]["location"] = "imgui_internal:3014" defs["igScrollToRectEx"][1]["namespace"] = "ImGui" defs["igScrollToRectEx"][1]["nonUDT"] = 1 defs["igScrollToRectEx"][1]["ov_cimguiname"] = "igScrollToRectEx" @@ -23963,7 +25205,7 @@ defs["igScrollbar"][1]["call_args"] = "(axis)" defs["igScrollbar"][1]["cimguiname"] = "igScrollbar" defs["igScrollbar"][1]["defaults"] = {} defs["igScrollbar"][1]["funcname"] = "Scrollbar" -defs["igScrollbar"][1]["location"] = "imgui_internal:3007" +defs["igScrollbar"][1]["location"] = "imgui_internal:3355" defs["igScrollbar"][1]["namespace"] = "ImGui" defs["igScrollbar"][1]["ov_cimguiname"] = "igScrollbar" defs["igScrollbar"][1]["ret"] = "void" @@ -24000,7 +25242,7 @@ defs["igScrollbarEx"][1]["call_args"] = "(bb,id,axis,p_scroll_v,avail_v,contents defs["igScrollbarEx"][1]["cimguiname"] = "igScrollbarEx" defs["igScrollbarEx"][1]["defaults"] = {} defs["igScrollbarEx"][1]["funcname"] = "ScrollbarEx" -defs["igScrollbarEx"][1]["location"] = "imgui_internal:3008" +defs["igScrollbarEx"][1]["location"] = "imgui_internal:3356" defs["igScrollbarEx"][1]["namespace"] = "ImGui" defs["igScrollbarEx"][1]["ov_cimguiname"] = "igScrollbarEx" defs["igScrollbarEx"][1]["ret"] = "bool" @@ -24031,9 +25273,9 @@ defs["igSelectable"][1]["defaults"]["flags"] = "0" defs["igSelectable"][1]["defaults"]["selected"] = "false" defs["igSelectable"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igSelectable"][1]["funcname"] = "Selectable" -defs["igSelectable"][1]["location"] = "imgui:631" +defs["igSelectable"][1]["location"] = "imgui:632" defs["igSelectable"][1]["namespace"] = "ImGui" -defs["igSelectable"][1]["ov_cimguiname"] = "igSelectableBool" +defs["igSelectable"][1]["ov_cimguiname"] = "igSelectable_Bool" defs["igSelectable"][1]["ret"] = "bool" defs["igSelectable"][1]["signature"] = "(const char*,bool,ImGuiSelectableFlags,const ImVec2)" defs["igSelectable"][1]["stname"] = "" @@ -24059,9 +25301,9 @@ defs["igSelectable"][2]["defaults"] = {} defs["igSelectable"][2]["defaults"]["flags"] = "0" defs["igSelectable"][2]["defaults"]["size"] = "ImVec2(0,0)" defs["igSelectable"][2]["funcname"] = "Selectable" -defs["igSelectable"][2]["location"] = "imgui:632" +defs["igSelectable"][2]["location"] = "imgui:633" defs["igSelectable"][2]["namespace"] = "ImGui" -defs["igSelectable"][2]["ov_cimguiname"] = "igSelectableBoolPtr" +defs["igSelectable"][2]["ov_cimguiname"] = "igSelectable_BoolPtr" defs["igSelectable"][2]["ret"] = "bool" defs["igSelectable"][2]["signature"] = "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)" defs["igSelectable"][2]["stname"] = "" @@ -24076,7 +25318,7 @@ defs["igSeparator"][1]["call_args"] = "()" defs["igSeparator"][1]["cimguiname"] = "igSeparator" defs["igSeparator"][1]["defaults"] = {} defs["igSeparator"][1]["funcname"] = "Separator" -defs["igSeparator"][1]["location"] = "imgui:450" +defs["igSeparator"][1]["location"] = "imgui:447" defs["igSeparator"][1]["namespace"] = "ImGui" defs["igSeparator"][1]["ov_cimguiname"] = "igSeparator" defs["igSeparator"][1]["ret"] = "void" @@ -24095,7 +25337,7 @@ defs["igSeparatorEx"][1]["call_args"] = "(flags)" defs["igSeparatorEx"][1]["cimguiname"] = "igSeparatorEx" defs["igSeparatorEx"][1]["defaults"] = {} defs["igSeparatorEx"][1]["funcname"] = "SeparatorEx" -defs["igSeparatorEx"][1]["location"] = "imgui_internal:3014" +defs["igSeparatorEx"][1]["location"] = "imgui_internal:3362" defs["igSeparatorEx"][1]["namespace"] = "ImGui" defs["igSeparatorEx"][1]["ov_cimguiname"] = "igSeparatorEx" defs["igSeparatorEx"][1]["ret"] = "void" @@ -24117,29 +25359,29 @@ defs["igSetActiveID"][1]["call_args"] = "(id,window)" defs["igSetActiveID"][1]["cimguiname"] = "igSetActiveID" defs["igSetActiveID"][1]["defaults"] = {} defs["igSetActiveID"][1]["funcname"] = "SetActiveID" -defs["igSetActiveID"][1]["location"] = "imgui_internal:2729" +defs["igSetActiveID"][1]["location"] = "imgui_internal:3025" defs["igSetActiveID"][1]["namespace"] = "ImGui" defs["igSetActiveID"][1]["ov_cimguiname"] = "igSetActiveID" defs["igSetActiveID"][1]["ret"] = "void" defs["igSetActiveID"][1]["signature"] = "(ImGuiID,ImGuiWindow*)" defs["igSetActiveID"][1]["stname"] = "" defs["igSetActiveID"]["(ImGuiID,ImGuiWindow*)"] = defs["igSetActiveID"][1] -defs["igSetActiveIdUsingNavAndKeys"] = {} -defs["igSetActiveIdUsingNavAndKeys"][1] = {} -defs["igSetActiveIdUsingNavAndKeys"][1]["args"] = "()" -defs["igSetActiveIdUsingNavAndKeys"][1]["argsT"] = {} -defs["igSetActiveIdUsingNavAndKeys"][1]["argsoriginal"] = "()" -defs["igSetActiveIdUsingNavAndKeys"][1]["call_args"] = "()" -defs["igSetActiveIdUsingNavAndKeys"][1]["cimguiname"] = "igSetActiveIdUsingNavAndKeys" -defs["igSetActiveIdUsingNavAndKeys"][1]["defaults"] = {} -defs["igSetActiveIdUsingNavAndKeys"][1]["funcname"] = "SetActiveIdUsingNavAndKeys" -defs["igSetActiveIdUsingNavAndKeys"][1]["location"] = "imgui_internal:2826" -defs["igSetActiveIdUsingNavAndKeys"][1]["namespace"] = "ImGui" -defs["igSetActiveIdUsingNavAndKeys"][1]["ov_cimguiname"] = "igSetActiveIdUsingNavAndKeys" -defs["igSetActiveIdUsingNavAndKeys"][1]["ret"] = "void" -defs["igSetActiveIdUsingNavAndKeys"][1]["signature"] = "()" -defs["igSetActiveIdUsingNavAndKeys"][1]["stname"] = "" -defs["igSetActiveIdUsingNavAndKeys"]["()"] = defs["igSetActiveIdUsingNavAndKeys"][1] +defs["igSetActiveIdUsingAllKeyboardKeys"] = {} +defs["igSetActiveIdUsingAllKeyboardKeys"][1] = {} +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["args"] = "()" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["argsT"] = {} +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["argsoriginal"] = "()" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["call_args"] = "()" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["cimguiname"] = "igSetActiveIdUsingAllKeyboardKeys" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["defaults"] = {} +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["funcname"] = "SetActiveIdUsingAllKeyboardKeys" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["location"] = "imgui_internal:3124" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["namespace"] = "ImGui" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["ov_cimguiname"] = "igSetActiveIdUsingAllKeyboardKeys" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["ret"] = "void" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["signature"] = "()" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["stname"] = "" +defs["igSetActiveIdUsingAllKeyboardKeys"]["()"] = defs["igSetActiveIdUsingAllKeyboardKeys"][1] defs["igSetAllocatorFunctions"] = {} defs["igSetAllocatorFunctions"][1] = {} defs["igSetAllocatorFunctions"][1]["args"] = "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)" @@ -24159,7 +25401,7 @@ defs["igSetAllocatorFunctions"][1]["cimguiname"] = "igSetAllocatorFunctions" defs["igSetAllocatorFunctions"][1]["defaults"] = {} defs["igSetAllocatorFunctions"][1]["defaults"]["user_data"] = "NULL" defs["igSetAllocatorFunctions"][1]["funcname"] = "SetAllocatorFunctions" -defs["igSetAllocatorFunctions"][1]["location"] = "imgui:970" +defs["igSetAllocatorFunctions"][1]["location"] = "imgui:972" defs["igSetAllocatorFunctions"][1]["namespace"] = "ImGui" defs["igSetAllocatorFunctions"][1]["ov_cimguiname"] = "igSetAllocatorFunctions" defs["igSetAllocatorFunctions"][1]["ret"] = "void" @@ -24178,7 +25420,7 @@ defs["igSetClipboardText"][1]["call_args"] = "(text)" defs["igSetClipboardText"][1]["cimguiname"] = "igSetClipboardText" defs["igSetClipboardText"][1]["defaults"] = {} defs["igSetClipboardText"][1]["funcname"] = "SetClipboardText" -defs["igSetClipboardText"][1]["location"] = "imgui:951" +defs["igSetClipboardText"][1]["location"] = "imgui:953" defs["igSetClipboardText"][1]["namespace"] = "ImGui" defs["igSetClipboardText"][1]["ov_cimguiname"] = "igSetClipboardText" defs["igSetClipboardText"][1]["ret"] = "void" @@ -24197,7 +25439,7 @@ defs["igSetColorEditOptions"][1]["call_args"] = "(flags)" defs["igSetColorEditOptions"][1]["cimguiname"] = "igSetColorEditOptions" defs["igSetColorEditOptions"][1]["defaults"] = {} defs["igSetColorEditOptions"][1]["funcname"] = "SetColorEditOptions" -defs["igSetColorEditOptions"][1]["location"] = "imgui:606" +defs["igSetColorEditOptions"][1]["location"] = "imgui:607" defs["igSetColorEditOptions"][1]["namespace"] = "ImGui" defs["igSetColorEditOptions"][1]["ov_cimguiname"] = "igSetColorEditOptions" defs["igSetColorEditOptions"][1]["ret"] = "void" @@ -24219,7 +25461,7 @@ defs["igSetColumnOffset"][1]["call_args"] = "(column_index,offset_x)" defs["igSetColumnOffset"][1]["cimguiname"] = "igSetColumnOffset" defs["igSetColumnOffset"][1]["defaults"] = {} defs["igSetColumnOffset"][1]["funcname"] = "SetColumnOffset" -defs["igSetColumnOffset"][1]["location"] = "imgui:793" +defs["igSetColumnOffset"][1]["location"] = "imgui:790" defs["igSetColumnOffset"][1]["namespace"] = "ImGui" defs["igSetColumnOffset"][1]["ov_cimguiname"] = "igSetColumnOffset" defs["igSetColumnOffset"][1]["ret"] = "void" @@ -24241,7 +25483,7 @@ defs["igSetColumnWidth"][1]["call_args"] = "(column_index,width)" defs["igSetColumnWidth"][1]["cimguiname"] = "igSetColumnWidth" defs["igSetColumnWidth"][1]["defaults"] = {} defs["igSetColumnWidth"][1]["funcname"] = "SetColumnWidth" -defs["igSetColumnWidth"][1]["location"] = "imgui:791" +defs["igSetColumnWidth"][1]["location"] = "imgui:788" defs["igSetColumnWidth"][1]["namespace"] = "ImGui" defs["igSetColumnWidth"][1]["ov_cimguiname"] = "igSetColumnWidth" defs["igSetColumnWidth"][1]["ret"] = "void" @@ -24260,7 +25502,7 @@ defs["igSetCurrentContext"][1]["call_args"] = "(ctx)" defs["igSetCurrentContext"][1]["cimguiname"] = "igSetCurrentContext" defs["igSetCurrentContext"][1]["defaults"] = {} defs["igSetCurrentContext"][1]["funcname"] = "SetCurrentContext" -defs["igSetCurrentContext"][1]["location"] = "imgui:304" +defs["igSetCurrentContext"][1]["location"] = "imgui:297" defs["igSetCurrentContext"][1]["namespace"] = "ImGui" defs["igSetCurrentContext"][1]["ov_cimguiname"] = "igSetCurrentContext" defs["igSetCurrentContext"][1]["ret"] = "void" @@ -24279,7 +25521,7 @@ defs["igSetCurrentFont"][1]["call_args"] = "(font)" defs["igSetCurrentFont"][1]["cimguiname"] = "igSetCurrentFont" defs["igSetCurrentFont"][1]["defaults"] = {} defs["igSetCurrentFont"][1]["funcname"] = "SetCurrentFont" -defs["igSetCurrentFont"][1]["location"] = "imgui_internal:2672" +defs["igSetCurrentFont"][1]["location"] = "imgui_internal:2960" defs["igSetCurrentFont"][1]["namespace"] = "ImGui" defs["igSetCurrentFont"][1]["ov_cimguiname"] = "igSetCurrentFont" defs["igSetCurrentFont"][1]["ret"] = "void" @@ -24301,7 +25543,7 @@ defs["igSetCurrentViewport"][1]["call_args"] = "(window,viewport)" defs["igSetCurrentViewport"][1]["cimguiname"] = "igSetCurrentViewport" defs["igSetCurrentViewport"][1]["defaults"] = {} defs["igSetCurrentViewport"][1]["funcname"] = "SetCurrentViewport" -defs["igSetCurrentViewport"][1]["location"] = "imgui_internal:2696" +defs["igSetCurrentViewport"][1]["location"] = "imgui_internal:2986" defs["igSetCurrentViewport"][1]["namespace"] = "ImGui" defs["igSetCurrentViewport"][1]["ov_cimguiname"] = "igSetCurrentViewport" defs["igSetCurrentViewport"][1]["ret"] = "void" @@ -24320,7 +25562,7 @@ defs["igSetCursorPos"][1]["call_args"] = "(local_pos)" defs["igSetCursorPos"][1]["cimguiname"] = "igSetCursorPos" defs["igSetCursorPos"][1]["defaults"] = {} defs["igSetCursorPos"][1]["funcname"] = "SetCursorPos" -defs["igSetCursorPos"][1]["location"] = "imgui:462" +defs["igSetCursorPos"][1]["location"] = "imgui:459" defs["igSetCursorPos"][1]["namespace"] = "ImGui" defs["igSetCursorPos"][1]["ov_cimguiname"] = "igSetCursorPos" defs["igSetCursorPos"][1]["ret"] = "void" @@ -24339,7 +25581,7 @@ defs["igSetCursorPosX"][1]["call_args"] = "(local_x)" defs["igSetCursorPosX"][1]["cimguiname"] = "igSetCursorPosX" defs["igSetCursorPosX"][1]["defaults"] = {} defs["igSetCursorPosX"][1]["funcname"] = "SetCursorPosX" -defs["igSetCursorPosX"][1]["location"] = "imgui:463" +defs["igSetCursorPosX"][1]["location"] = "imgui:460" defs["igSetCursorPosX"][1]["namespace"] = "ImGui" defs["igSetCursorPosX"][1]["ov_cimguiname"] = "igSetCursorPosX" defs["igSetCursorPosX"][1]["ret"] = "void" @@ -24358,7 +25600,7 @@ defs["igSetCursorPosY"][1]["call_args"] = "(local_y)" defs["igSetCursorPosY"][1]["cimguiname"] = "igSetCursorPosY" defs["igSetCursorPosY"][1]["defaults"] = {} defs["igSetCursorPosY"][1]["funcname"] = "SetCursorPosY" -defs["igSetCursorPosY"][1]["location"] = "imgui:464" +defs["igSetCursorPosY"][1]["location"] = "imgui:461" defs["igSetCursorPosY"][1]["namespace"] = "ImGui" defs["igSetCursorPosY"][1]["ov_cimguiname"] = "igSetCursorPosY" defs["igSetCursorPosY"][1]["ret"] = "void" @@ -24377,7 +25619,7 @@ defs["igSetCursorScreenPos"][1]["call_args"] = "(pos)" defs["igSetCursorScreenPos"][1]["cimguiname"] = "igSetCursorScreenPos" defs["igSetCursorScreenPos"][1]["defaults"] = {} defs["igSetCursorScreenPos"][1]["funcname"] = "SetCursorScreenPos" -defs["igSetCursorScreenPos"][1]["location"] = "imgui:467" +defs["igSetCursorScreenPos"][1]["location"] = "imgui:464" defs["igSetCursorScreenPos"][1]["namespace"] = "ImGui" defs["igSetCursorScreenPos"][1]["ov_cimguiname"] = "igSetCursorScreenPos" defs["igSetCursorScreenPos"][1]["ret"] = "void" @@ -24406,7 +25648,7 @@ defs["igSetDragDropPayload"][1]["cimguiname"] = "igSetDragDropPayload" defs["igSetDragDropPayload"][1]["defaults"] = {} defs["igSetDragDropPayload"][1]["defaults"]["cond"] = "0" defs["igSetDragDropPayload"][1]["funcname"] = "SetDragDropPayload" -defs["igSetDragDropPayload"][1]["location"] = "imgui:841" +defs["igSetDragDropPayload"][1]["location"] = "imgui:838" defs["igSetDragDropPayload"][1]["namespace"] = "ImGui" defs["igSetDragDropPayload"][1]["ov_cimguiname"] = "igSetDragDropPayload" defs["igSetDragDropPayload"][1]["ret"] = "bool" @@ -24428,7 +25670,7 @@ defs["igSetFocusID"][1]["call_args"] = "(id,window)" defs["igSetFocusID"][1]["cimguiname"] = "igSetFocusID" defs["igSetFocusID"][1]["defaults"] = {} defs["igSetFocusID"][1]["funcname"] = "SetFocusID" -defs["igSetFocusID"][1]["location"] = "imgui_internal:2730" +defs["igSetFocusID"][1]["location"] = "imgui_internal:3026" defs["igSetFocusID"][1]["namespace"] = "ImGui" defs["igSetFocusID"][1]["ov_cimguiname"] = "igSetFocusID" defs["igSetFocusID"][1]["ret"] = "void" @@ -24447,7 +25689,7 @@ defs["igSetHoveredID"][1]["call_args"] = "(id)" defs["igSetHoveredID"][1]["cimguiname"] = "igSetHoveredID" defs["igSetHoveredID"][1]["defaults"] = {} defs["igSetHoveredID"][1]["funcname"] = "SetHoveredID" -defs["igSetHoveredID"][1]["location"] = "imgui_internal:2733" +defs["igSetHoveredID"][1]["location"] = "imgui_internal:3029" defs["igSetHoveredID"][1]["namespace"] = "ImGui" defs["igSetHoveredID"][1]["ov_cimguiname"] = "igSetHoveredID" defs["igSetHoveredID"][1]["ret"] = "void" @@ -24463,7 +25705,7 @@ defs["igSetItemAllowOverlap"][1]["call_args"] = "()" defs["igSetItemAllowOverlap"][1]["cimguiname"] = "igSetItemAllowOverlap" defs["igSetItemAllowOverlap"][1]["defaults"] = {} defs["igSetItemAllowOverlap"][1]["funcname"] = "SetItemAllowOverlap" -defs["igSetItemAllowOverlap"][1]["location"] = "imgui:884" +defs["igSetItemAllowOverlap"][1]["location"] = "imgui:881" defs["igSetItemAllowOverlap"][1]["namespace"] = "ImGui" defs["igSetItemAllowOverlap"][1]["ov_cimguiname"] = "igSetItemAllowOverlap" defs["igSetItemAllowOverlap"][1]["ret"] = "void" @@ -24479,29 +25721,62 @@ defs["igSetItemDefaultFocus"][1]["call_args"] = "()" defs["igSetItemDefaultFocus"][1]["cimguiname"] = "igSetItemDefaultFocus" defs["igSetItemDefaultFocus"][1]["defaults"] = {} defs["igSetItemDefaultFocus"][1]["funcname"] = "SetItemDefaultFocus" -defs["igSetItemDefaultFocus"][1]["location"] = "imgui:862" +defs["igSetItemDefaultFocus"][1]["location"] = "imgui:859" defs["igSetItemDefaultFocus"][1]["namespace"] = "ImGui" defs["igSetItemDefaultFocus"][1]["ov_cimguiname"] = "igSetItemDefaultFocus" defs["igSetItemDefaultFocus"][1]["ret"] = "void" defs["igSetItemDefaultFocus"][1]["signature"] = "()" defs["igSetItemDefaultFocus"][1]["stname"] = "" defs["igSetItemDefaultFocus"]["()"] = defs["igSetItemDefaultFocus"][1] -defs["igSetItemUsingMouseWheel"] = {} -defs["igSetItemUsingMouseWheel"][1] = {} -defs["igSetItemUsingMouseWheel"][1]["args"] = "()" -defs["igSetItemUsingMouseWheel"][1]["argsT"] = {} -defs["igSetItemUsingMouseWheel"][1]["argsoriginal"] = "()" -defs["igSetItemUsingMouseWheel"][1]["call_args"] = "()" -defs["igSetItemUsingMouseWheel"][1]["cimguiname"] = "igSetItemUsingMouseWheel" -defs["igSetItemUsingMouseWheel"][1]["defaults"] = {} -defs["igSetItemUsingMouseWheel"][1]["funcname"] = "SetItemUsingMouseWheel" -defs["igSetItemUsingMouseWheel"][1]["location"] = "imgui_internal:2825" -defs["igSetItemUsingMouseWheel"][1]["namespace"] = "ImGui" -defs["igSetItemUsingMouseWheel"][1]["ov_cimguiname"] = "igSetItemUsingMouseWheel" -defs["igSetItemUsingMouseWheel"][1]["ret"] = "void" -defs["igSetItemUsingMouseWheel"][1]["signature"] = "()" -defs["igSetItemUsingMouseWheel"][1]["stname"] = "" -defs["igSetItemUsingMouseWheel"]["()"] = defs["igSetItemUsingMouseWheel"][1] +defs["igSetItemKeyOwner"] = {} +defs["igSetItemKeyOwner"][1] = {} +defs["igSetItemKeyOwner"][1]["args"] = "(ImGuiKey key,ImGuiInputFlags flags)" +defs["igSetItemKeyOwner"][1]["argsT"] = {} +defs["igSetItemKeyOwner"][1]["argsT"][1] = {} +defs["igSetItemKeyOwner"][1]["argsT"][1]["name"] = "key" +defs["igSetItemKeyOwner"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igSetItemKeyOwner"][1]["argsT"][2] = {} +defs["igSetItemKeyOwner"][1]["argsT"][2]["name"] = "flags" +defs["igSetItemKeyOwner"][1]["argsT"][2]["type"] = "ImGuiInputFlags" +defs["igSetItemKeyOwner"][1]["argsoriginal"] = "(ImGuiKey key,ImGuiInputFlags flags=0)" +defs["igSetItemKeyOwner"][1]["call_args"] = "(key,flags)" +defs["igSetItemKeyOwner"][1]["cimguiname"] = "igSetItemKeyOwner" +defs["igSetItemKeyOwner"][1]["defaults"] = {} +defs["igSetItemKeyOwner"][1]["defaults"]["flags"] = "0" +defs["igSetItemKeyOwner"][1]["funcname"] = "SetItemKeyOwner" +defs["igSetItemKeyOwner"][1]["location"] = "imgui_internal:3140" +defs["igSetItemKeyOwner"][1]["namespace"] = "ImGui" +defs["igSetItemKeyOwner"][1]["ov_cimguiname"] = "igSetItemKeyOwner" +defs["igSetItemKeyOwner"][1]["ret"] = "void" +defs["igSetItemKeyOwner"][1]["signature"] = "(ImGuiKey,ImGuiInputFlags)" +defs["igSetItemKeyOwner"][1]["stname"] = "" +defs["igSetItemKeyOwner"]["(ImGuiKey,ImGuiInputFlags)"] = defs["igSetItemKeyOwner"][1] +defs["igSetKeyOwner"] = {} +defs["igSetKeyOwner"][1] = {} +defs["igSetKeyOwner"][1]["args"] = "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igSetKeyOwner"][1]["argsT"] = {} +defs["igSetKeyOwner"][1]["argsT"][1] = {} +defs["igSetKeyOwner"][1]["argsT"][1]["name"] = "key" +defs["igSetKeyOwner"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igSetKeyOwner"][1]["argsT"][2] = {} +defs["igSetKeyOwner"][1]["argsT"][2]["name"] = "owner_id" +defs["igSetKeyOwner"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igSetKeyOwner"][1]["argsT"][3] = {} +defs["igSetKeyOwner"][1]["argsT"][3]["name"] = "flags" +defs["igSetKeyOwner"][1]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igSetKeyOwner"][1]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags=0)" +defs["igSetKeyOwner"][1]["call_args"] = "(key,owner_id,flags)" +defs["igSetKeyOwner"][1]["cimguiname"] = "igSetKeyOwner" +defs["igSetKeyOwner"][1]["defaults"] = {} +defs["igSetKeyOwner"][1]["defaults"]["flags"] = "0" +defs["igSetKeyOwner"][1]["funcname"] = "SetKeyOwner" +defs["igSetKeyOwner"][1]["location"] = "imgui_internal:3139" +defs["igSetKeyOwner"][1]["namespace"] = "ImGui" +defs["igSetKeyOwner"][1]["ov_cimguiname"] = "igSetKeyOwner" +defs["igSetKeyOwner"][1]["ret"] = "void" +defs["igSetKeyOwner"][1]["signature"] = "(ImGuiKey,ImGuiID,ImGuiInputFlags)" +defs["igSetKeyOwner"][1]["stname"] = "" +defs["igSetKeyOwner"]["(ImGuiKey,ImGuiID,ImGuiInputFlags)"] = defs["igSetKeyOwner"][1] defs["igSetKeyboardFocusHere"] = {} defs["igSetKeyboardFocusHere"][1] = {} defs["igSetKeyboardFocusHere"][1]["args"] = "(int offset)" @@ -24515,7 +25790,7 @@ defs["igSetKeyboardFocusHere"][1]["cimguiname"] = "igSetKeyboardFocusHere" defs["igSetKeyboardFocusHere"][1]["defaults"] = {} defs["igSetKeyboardFocusHere"][1]["defaults"]["offset"] = "0" defs["igSetKeyboardFocusHere"][1]["funcname"] = "SetKeyboardFocusHere" -defs["igSetKeyboardFocusHere"][1]["location"] = "imgui:863" +defs["igSetKeyboardFocusHere"][1]["location"] = "imgui:860" defs["igSetKeyboardFocusHere"][1]["namespace"] = "ImGui" defs["igSetKeyboardFocusHere"][1]["ov_cimguiname"] = "igSetKeyboardFocusHere" defs["igSetKeyboardFocusHere"][1]["ret"] = "void" @@ -24543,7 +25818,7 @@ defs["igSetLastItemData"][1]["call_args"] = "(item_id,in_flags,status_flags,item defs["igSetLastItemData"][1]["cimguiname"] = "igSetLastItemData" defs["igSetLastItemData"][1]["defaults"] = {} defs["igSetLastItemData"][1]["funcname"] = "SetLastItemData" -defs["igSetLastItemData"][1]["location"] = "imgui_internal:2745" +defs["igSetLastItemData"][1]["location"] = "imgui_internal:3041" defs["igSetLastItemData"][1]["namespace"] = "ImGui" defs["igSetLastItemData"][1]["ov_cimguiname"] = "igSetLastItemData" defs["igSetLastItemData"][1]["ret"] = "void" @@ -24562,7 +25837,7 @@ defs["igSetMouseCursor"][1]["call_args"] = "(cursor_type)" defs["igSetMouseCursor"][1]["cimguiname"] = "igSetMouseCursor" defs["igSetMouseCursor"][1]["defaults"] = {} defs["igSetMouseCursor"][1]["funcname"] = "SetMouseCursor" -defs["igSetMouseCursor"][1]["location"] = "imgui:945" +defs["igSetMouseCursor"][1]["location"] = "imgui:947" defs["igSetMouseCursor"][1]["namespace"] = "ImGui" defs["igSetMouseCursor"][1]["ov_cimguiname"] = "igSetMouseCursor" defs["igSetMouseCursor"][1]["ret"] = "void" @@ -24590,13 +25865,70 @@ defs["igSetNavID"][1]["call_args"] = "(id,nav_layer,focus_scope_id,rect_rel)" defs["igSetNavID"][1]["cimguiname"] = "igSetNavID" defs["igSetNavID"][1]["defaults"] = {} defs["igSetNavID"][1]["funcname"] = "SetNavID" -defs["igSetNavID"][1]["location"] = "imgui_internal:2813" +defs["igSetNavID"][1]["location"] = "imgui_internal:3096" defs["igSetNavID"][1]["namespace"] = "ImGui" defs["igSetNavID"][1]["ov_cimguiname"] = "igSetNavID" defs["igSetNavID"][1]["ret"] = "void" defs["igSetNavID"][1]["signature"] = "(ImGuiID,ImGuiNavLayer,ImGuiID,const ImRect)" defs["igSetNavID"][1]["stname"] = "" defs["igSetNavID"]["(ImGuiID,ImGuiNavLayer,ImGuiID,const ImRect)"] = defs["igSetNavID"][1] +defs["igSetNavWindow"] = {} +defs["igSetNavWindow"][1] = {} +defs["igSetNavWindow"][1]["args"] = "(ImGuiWindow* window)" +defs["igSetNavWindow"][1]["argsT"] = {} +defs["igSetNavWindow"][1]["argsT"][1] = {} +defs["igSetNavWindow"][1]["argsT"][1]["name"] = "window" +defs["igSetNavWindow"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetNavWindow"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igSetNavWindow"][1]["call_args"] = "(window)" +defs["igSetNavWindow"][1]["cimguiname"] = "igSetNavWindow" +defs["igSetNavWindow"][1]["defaults"] = {} +defs["igSetNavWindow"][1]["funcname"] = "SetNavWindow" +defs["igSetNavWindow"][1]["location"] = "imgui_internal:3095" +defs["igSetNavWindow"][1]["namespace"] = "ImGui" +defs["igSetNavWindow"][1]["ov_cimguiname"] = "igSetNavWindow" +defs["igSetNavWindow"][1]["ret"] = "void" +defs["igSetNavWindow"][1]["signature"] = "(ImGuiWindow*)" +defs["igSetNavWindow"][1]["stname"] = "" +defs["igSetNavWindow"]["(ImGuiWindow*)"] = defs["igSetNavWindow"][1] +defs["igSetNextFrameWantCaptureKeyboard"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["args"] = "(bool want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1]["name"] = "want_capture_keyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsoriginal"] = "(bool want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["call_args"] = "(want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["cimguiname"] = "igSetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["defaults"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["funcname"] = "SetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["location"] = "imgui:927" +defs["igSetNextFrameWantCaptureKeyboard"][1]["namespace"] = "ImGui" +defs["igSetNextFrameWantCaptureKeyboard"][1]["ov_cimguiname"] = "igSetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["ret"] = "void" +defs["igSetNextFrameWantCaptureKeyboard"][1]["signature"] = "(bool)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["stname"] = "" +defs["igSetNextFrameWantCaptureKeyboard"]["(bool)"] = defs["igSetNextFrameWantCaptureKeyboard"][1] +defs["igSetNextFrameWantCaptureMouse"] = {} +defs["igSetNextFrameWantCaptureMouse"][1] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["args"] = "(bool want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1]["name"] = "want_capture_mouse" +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextFrameWantCaptureMouse"][1]["argsoriginal"] = "(bool want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["call_args"] = "(want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["cimguiname"] = "igSetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["defaults"] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["funcname"] = "SetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["location"] = "imgui:948" +defs["igSetNextFrameWantCaptureMouse"][1]["namespace"] = "ImGui" +defs["igSetNextFrameWantCaptureMouse"][1]["ov_cimguiname"] = "igSetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["ret"] = "void" +defs["igSetNextFrameWantCaptureMouse"][1]["signature"] = "(bool)" +defs["igSetNextFrameWantCaptureMouse"][1]["stname"] = "" +defs["igSetNextFrameWantCaptureMouse"]["(bool)"] = defs["igSetNextFrameWantCaptureMouse"][1] defs["igSetNextItemOpen"] = {} defs["igSetNextItemOpen"][1] = {} defs["igSetNextItemOpen"][1]["args"] = "(bool is_open,ImGuiCond cond)" @@ -24613,7 +25945,7 @@ defs["igSetNextItemOpen"][1]["cimguiname"] = "igSetNextItemOpen" defs["igSetNextItemOpen"][1]["defaults"] = {} defs["igSetNextItemOpen"][1]["defaults"]["cond"] = "0" defs["igSetNextItemOpen"][1]["funcname"] = "SetNextItemOpen" -defs["igSetNextItemOpen"][1]["location"] = "imgui:626" +defs["igSetNextItemOpen"][1]["location"] = "imgui:627" defs["igSetNextItemOpen"][1]["namespace"] = "ImGui" defs["igSetNextItemOpen"][1]["ov_cimguiname"] = "igSetNextItemOpen" defs["igSetNextItemOpen"][1]["ret"] = "void" @@ -24632,7 +25964,7 @@ defs["igSetNextItemWidth"][1]["call_args"] = "(item_width)" defs["igSetNextItemWidth"][1]["cimguiname"] = "igSetNextItemWidth" defs["igSetNextItemWidth"][1]["defaults"] = {} defs["igSetNextItemWidth"][1]["funcname"] = "SetNextItemWidth" -defs["igSetNextItemWidth"][1]["location"] = "imgui:428" +defs["igSetNextItemWidth"][1]["location"] = "imgui:425" defs["igSetNextItemWidth"][1]["namespace"] = "ImGui" defs["igSetNextItemWidth"][1]["ov_cimguiname"] = "igSetNextItemWidth" defs["igSetNextItemWidth"][1]["ret"] = "void" @@ -24651,7 +25983,7 @@ defs["igSetNextWindowBgAlpha"][1]["call_args"] = "(alpha)" defs["igSetNextWindowBgAlpha"][1]["cimguiname"] = "igSetNextWindowBgAlpha" defs["igSetNextWindowBgAlpha"][1]["defaults"] = {} defs["igSetNextWindowBgAlpha"][1]["funcname"] = "SetNextWindowBgAlpha" -defs["igSetNextWindowBgAlpha"][1]["location"] = "imgui:379" +defs["igSetNextWindowBgAlpha"][1]["location"] = "imgui:374" defs["igSetNextWindowBgAlpha"][1]["namespace"] = "ImGui" defs["igSetNextWindowBgAlpha"][1]["ov_cimguiname"] = "igSetNextWindowBgAlpha" defs["igSetNextWindowBgAlpha"][1]["ret"] = "void" @@ -24670,7 +26002,7 @@ defs["igSetNextWindowClass"][1]["call_args"] = "(window_class)" defs["igSetNextWindowClass"][1]["cimguiname"] = "igSetNextWindowClass" defs["igSetNextWindowClass"][1]["defaults"] = {} defs["igSetNextWindowClass"][1]["funcname"] = "SetNextWindowClass" -defs["igSetNextWindowClass"][1]["location"] = "imgui:821" +defs["igSetNextWindowClass"][1]["location"] = "imgui:818" defs["igSetNextWindowClass"][1]["namespace"] = "ImGui" defs["igSetNextWindowClass"][1]["ov_cimguiname"] = "igSetNextWindowClass" defs["igSetNextWindowClass"][1]["ret"] = "void" @@ -24693,7 +26025,7 @@ defs["igSetNextWindowCollapsed"][1]["cimguiname"] = "igSetNextWindowCollapsed" defs["igSetNextWindowCollapsed"][1]["defaults"] = {} defs["igSetNextWindowCollapsed"][1]["defaults"]["cond"] = "0" defs["igSetNextWindowCollapsed"][1]["funcname"] = "SetNextWindowCollapsed" -defs["igSetNextWindowCollapsed"][1]["location"] = "imgui:377" +defs["igSetNextWindowCollapsed"][1]["location"] = "imgui:371" defs["igSetNextWindowCollapsed"][1]["namespace"] = "ImGui" defs["igSetNextWindowCollapsed"][1]["ov_cimguiname"] = "igSetNextWindowCollapsed" defs["igSetNextWindowCollapsed"][1]["ret"] = "void" @@ -24712,7 +26044,7 @@ defs["igSetNextWindowContentSize"][1]["call_args"] = "(size)" defs["igSetNextWindowContentSize"][1]["cimguiname"] = "igSetNextWindowContentSize" defs["igSetNextWindowContentSize"][1]["defaults"] = {} defs["igSetNextWindowContentSize"][1]["funcname"] = "SetNextWindowContentSize" -defs["igSetNextWindowContentSize"][1]["location"] = "imgui:376" +defs["igSetNextWindowContentSize"][1]["location"] = "imgui:370" defs["igSetNextWindowContentSize"][1]["namespace"] = "ImGui" defs["igSetNextWindowContentSize"][1]["ov_cimguiname"] = "igSetNextWindowContentSize" defs["igSetNextWindowContentSize"][1]["ret"] = "void" @@ -24735,7 +26067,7 @@ defs["igSetNextWindowDockID"][1]["cimguiname"] = "igSetNextWindowDockID" defs["igSetNextWindowDockID"][1]["defaults"] = {} defs["igSetNextWindowDockID"][1]["defaults"]["cond"] = "0" defs["igSetNextWindowDockID"][1]["funcname"] = "SetNextWindowDockID" -defs["igSetNextWindowDockID"][1]["location"] = "imgui:820" +defs["igSetNextWindowDockID"][1]["location"] = "imgui:817" defs["igSetNextWindowDockID"][1]["namespace"] = "ImGui" defs["igSetNextWindowDockID"][1]["ov_cimguiname"] = "igSetNextWindowDockID" defs["igSetNextWindowDockID"][1]["ret"] = "void" @@ -24751,7 +26083,7 @@ defs["igSetNextWindowFocus"][1]["call_args"] = "()" defs["igSetNextWindowFocus"][1]["cimguiname"] = "igSetNextWindowFocus" defs["igSetNextWindowFocus"][1]["defaults"] = {} defs["igSetNextWindowFocus"][1]["funcname"] = "SetNextWindowFocus" -defs["igSetNextWindowFocus"][1]["location"] = "imgui:378" +defs["igSetNextWindowFocus"][1]["location"] = "imgui:372" defs["igSetNextWindowFocus"][1]["namespace"] = "ImGui" defs["igSetNextWindowFocus"][1]["ov_cimguiname"] = "igSetNextWindowFocus" defs["igSetNextWindowFocus"][1]["ret"] = "void" @@ -24778,7 +26110,7 @@ defs["igSetNextWindowPos"][1]["defaults"] = {} defs["igSetNextWindowPos"][1]["defaults"]["cond"] = "0" defs["igSetNextWindowPos"][1]["defaults"]["pivot"] = "ImVec2(0,0)" defs["igSetNextWindowPos"][1]["funcname"] = "SetNextWindowPos" -defs["igSetNextWindowPos"][1]["location"] = "imgui:373" +defs["igSetNextWindowPos"][1]["location"] = "imgui:367" defs["igSetNextWindowPos"][1]["namespace"] = "ImGui" defs["igSetNextWindowPos"][1]["ov_cimguiname"] = "igSetNextWindowPos" defs["igSetNextWindowPos"][1]["ret"] = "void" @@ -24797,7 +26129,7 @@ defs["igSetNextWindowScroll"][1]["call_args"] = "(scroll)" defs["igSetNextWindowScroll"][1]["cimguiname"] = "igSetNextWindowScroll" defs["igSetNextWindowScroll"][1]["defaults"] = {} defs["igSetNextWindowScroll"][1]["funcname"] = "SetNextWindowScroll" -defs["igSetNextWindowScroll"][1]["location"] = "imgui_internal:2709" +defs["igSetNextWindowScroll"][1]["location"] = "imgui:373" defs["igSetNextWindowScroll"][1]["namespace"] = "ImGui" defs["igSetNextWindowScroll"][1]["ov_cimguiname"] = "igSetNextWindowScroll" defs["igSetNextWindowScroll"][1]["ret"] = "void" @@ -24820,7 +26152,7 @@ defs["igSetNextWindowSize"][1]["cimguiname"] = "igSetNextWindowSize" defs["igSetNextWindowSize"][1]["defaults"] = {} defs["igSetNextWindowSize"][1]["defaults"]["cond"] = "0" defs["igSetNextWindowSize"][1]["funcname"] = "SetNextWindowSize" -defs["igSetNextWindowSize"][1]["location"] = "imgui:374" +defs["igSetNextWindowSize"][1]["location"] = "imgui:368" defs["igSetNextWindowSize"][1]["namespace"] = "ImGui" defs["igSetNextWindowSize"][1]["ov_cimguiname"] = "igSetNextWindowSize" defs["igSetNextWindowSize"][1]["ret"] = "void" @@ -24850,7 +26182,7 @@ defs["igSetNextWindowSizeConstraints"][1]["defaults"] = {} defs["igSetNextWindowSizeConstraints"][1]["defaults"]["custom_callback"] = "NULL" defs["igSetNextWindowSizeConstraints"][1]["defaults"]["custom_callback_data"] = "NULL" defs["igSetNextWindowSizeConstraints"][1]["funcname"] = "SetNextWindowSizeConstraints" -defs["igSetNextWindowSizeConstraints"][1]["location"] = "imgui:375" +defs["igSetNextWindowSizeConstraints"][1]["location"] = "imgui:369" defs["igSetNextWindowSizeConstraints"][1]["namespace"] = "ImGui" defs["igSetNextWindowSizeConstraints"][1]["ov_cimguiname"] = "igSetNextWindowSizeConstraints" defs["igSetNextWindowSizeConstraints"][1]["ret"] = "void" @@ -24869,7 +26201,7 @@ defs["igSetNextWindowViewport"][1]["call_args"] = "(viewport_id)" defs["igSetNextWindowViewport"][1]["cimguiname"] = "igSetNextWindowViewport" defs["igSetNextWindowViewport"][1]["defaults"] = {} defs["igSetNextWindowViewport"][1]["funcname"] = "SetNextWindowViewport" -defs["igSetNextWindowViewport"][1]["location"] = "imgui:380" +defs["igSetNextWindowViewport"][1]["location"] = "imgui:375" defs["igSetNextWindowViewport"][1]["namespace"] = "ImGui" defs["igSetNextWindowViewport"][1]["ov_cimguiname"] = "igSetNextWindowViewport" defs["igSetNextWindowViewport"][1]["ret"] = "void" @@ -24892,9 +26224,9 @@ defs["igSetScrollFromPosX"][1]["cimguiname"] = "igSetScrollFromPosX" defs["igSetScrollFromPosX"][1]["defaults"] = {} defs["igSetScrollFromPosX"][1]["defaults"]["center_x_ratio"] = "0.5f" defs["igSetScrollFromPosX"][1]["funcname"] = "SetScrollFromPosX" -defs["igSetScrollFromPosX"][1]["location"] = "imgui:408" +defs["igSetScrollFromPosX"][1]["location"] = "imgui:405" defs["igSetScrollFromPosX"][1]["namespace"] = "ImGui" -defs["igSetScrollFromPosX"][1]["ov_cimguiname"] = "igSetScrollFromPosXFloat" +defs["igSetScrollFromPosX"][1]["ov_cimguiname"] = "igSetScrollFromPosX_Float" defs["igSetScrollFromPosX"][1]["ret"] = "void" defs["igSetScrollFromPosX"][1]["signature"] = "(float,float)" defs["igSetScrollFromPosX"][1]["stname"] = "" @@ -24915,9 +26247,9 @@ defs["igSetScrollFromPosX"][2]["call_args"] = "(window,local_x,center_x_ratio)" defs["igSetScrollFromPosX"][2]["cimguiname"] = "igSetScrollFromPosX" defs["igSetScrollFromPosX"][2]["defaults"] = {} defs["igSetScrollFromPosX"][2]["funcname"] = "SetScrollFromPosX" -defs["igSetScrollFromPosX"][2]["location"] = "imgui_internal:2712" +defs["igSetScrollFromPosX"][2]["location"] = "imgui_internal:3008" defs["igSetScrollFromPosX"][2]["namespace"] = "ImGui" -defs["igSetScrollFromPosX"][2]["ov_cimguiname"] = "igSetScrollFromPosXWindowPtr" +defs["igSetScrollFromPosX"][2]["ov_cimguiname"] = "igSetScrollFromPosX_WindowPtr" defs["igSetScrollFromPosX"][2]["ret"] = "void" defs["igSetScrollFromPosX"][2]["signature"] = "(ImGuiWindow*,float,float)" defs["igSetScrollFromPosX"][2]["stname"] = "" @@ -24939,9 +26271,9 @@ defs["igSetScrollFromPosY"][1]["cimguiname"] = "igSetScrollFromPosY" defs["igSetScrollFromPosY"][1]["defaults"] = {} defs["igSetScrollFromPosY"][1]["defaults"]["center_y_ratio"] = "0.5f" defs["igSetScrollFromPosY"][1]["funcname"] = "SetScrollFromPosY" -defs["igSetScrollFromPosY"][1]["location"] = "imgui:409" +defs["igSetScrollFromPosY"][1]["location"] = "imgui:406" defs["igSetScrollFromPosY"][1]["namespace"] = "ImGui" -defs["igSetScrollFromPosY"][1]["ov_cimguiname"] = "igSetScrollFromPosYFloat" +defs["igSetScrollFromPosY"][1]["ov_cimguiname"] = "igSetScrollFromPosY_Float" defs["igSetScrollFromPosY"][1]["ret"] = "void" defs["igSetScrollFromPosY"][1]["signature"] = "(float,float)" defs["igSetScrollFromPosY"][1]["stname"] = "" @@ -24962,9 +26294,9 @@ defs["igSetScrollFromPosY"][2]["call_args"] = "(window,local_y,center_y_ratio)" defs["igSetScrollFromPosY"][2]["cimguiname"] = "igSetScrollFromPosY" defs["igSetScrollFromPosY"][2]["defaults"] = {} defs["igSetScrollFromPosY"][2]["funcname"] = "SetScrollFromPosY" -defs["igSetScrollFromPosY"][2]["location"] = "imgui_internal:2713" +defs["igSetScrollFromPosY"][2]["location"] = "imgui_internal:3009" defs["igSetScrollFromPosY"][2]["namespace"] = "ImGui" -defs["igSetScrollFromPosY"][2]["ov_cimguiname"] = "igSetScrollFromPosYWindowPtr" +defs["igSetScrollFromPosY"][2]["ov_cimguiname"] = "igSetScrollFromPosY_WindowPtr" defs["igSetScrollFromPosY"][2]["ret"] = "void" defs["igSetScrollFromPosY"][2]["signature"] = "(ImGuiWindow*,float,float)" defs["igSetScrollFromPosY"][2]["stname"] = "" @@ -24983,7 +26315,7 @@ defs["igSetScrollHereX"][1]["cimguiname"] = "igSetScrollHereX" defs["igSetScrollHereX"][1]["defaults"] = {} defs["igSetScrollHereX"][1]["defaults"]["center_x_ratio"] = "0.5f" defs["igSetScrollHereX"][1]["funcname"] = "SetScrollHereX" -defs["igSetScrollHereX"][1]["location"] = "imgui:406" +defs["igSetScrollHereX"][1]["location"] = "imgui:403" defs["igSetScrollHereX"][1]["namespace"] = "ImGui" defs["igSetScrollHereX"][1]["ov_cimguiname"] = "igSetScrollHereX" defs["igSetScrollHereX"][1]["ret"] = "void" @@ -25003,7 +26335,7 @@ defs["igSetScrollHereY"][1]["cimguiname"] = "igSetScrollHereY" defs["igSetScrollHereY"][1]["defaults"] = {} defs["igSetScrollHereY"][1]["defaults"]["center_y_ratio"] = "0.5f" defs["igSetScrollHereY"][1]["funcname"] = "SetScrollHereY" -defs["igSetScrollHereY"][1]["location"] = "imgui:407" +defs["igSetScrollHereY"][1]["location"] = "imgui:404" defs["igSetScrollHereY"][1]["namespace"] = "ImGui" defs["igSetScrollHereY"][1]["ov_cimguiname"] = "igSetScrollHereY" defs["igSetScrollHereY"][1]["ret"] = "void" @@ -25022,9 +26354,9 @@ defs["igSetScrollX"][1]["call_args"] = "(scroll_x)" defs["igSetScrollX"][1]["cimguiname"] = "igSetScrollX" defs["igSetScrollX"][1]["defaults"] = {} defs["igSetScrollX"][1]["funcname"] = "SetScrollX" -defs["igSetScrollX"][1]["location"] = "imgui:402" +defs["igSetScrollX"][1]["location"] = "imgui:399" defs["igSetScrollX"][1]["namespace"] = "ImGui" -defs["igSetScrollX"][1]["ov_cimguiname"] = "igSetScrollXFloat" +defs["igSetScrollX"][1]["ov_cimguiname"] = "igSetScrollX_Float" defs["igSetScrollX"][1]["ret"] = "void" defs["igSetScrollX"][1]["signature"] = "(float)" defs["igSetScrollX"][1]["stname"] = "" @@ -25042,9 +26374,9 @@ defs["igSetScrollX"][2]["call_args"] = "(window,scroll_x)" defs["igSetScrollX"][2]["cimguiname"] = "igSetScrollX" defs["igSetScrollX"][2]["defaults"] = {} defs["igSetScrollX"][2]["funcname"] = "SetScrollX" -defs["igSetScrollX"][2]["location"] = "imgui_internal:2710" +defs["igSetScrollX"][2]["location"] = "imgui_internal:3006" defs["igSetScrollX"][2]["namespace"] = "ImGui" -defs["igSetScrollX"][2]["ov_cimguiname"] = "igSetScrollXWindowPtr" +defs["igSetScrollX"][2]["ov_cimguiname"] = "igSetScrollX_WindowPtr" defs["igSetScrollX"][2]["ret"] = "void" defs["igSetScrollX"][2]["signature"] = "(ImGuiWindow*,float)" defs["igSetScrollX"][2]["stname"] = "" @@ -25062,9 +26394,9 @@ defs["igSetScrollY"][1]["call_args"] = "(scroll_y)" defs["igSetScrollY"][1]["cimguiname"] = "igSetScrollY" defs["igSetScrollY"][1]["defaults"] = {} defs["igSetScrollY"][1]["funcname"] = "SetScrollY" -defs["igSetScrollY"][1]["location"] = "imgui:403" +defs["igSetScrollY"][1]["location"] = "imgui:400" defs["igSetScrollY"][1]["namespace"] = "ImGui" -defs["igSetScrollY"][1]["ov_cimguiname"] = "igSetScrollYFloat" +defs["igSetScrollY"][1]["ov_cimguiname"] = "igSetScrollY_Float" defs["igSetScrollY"][1]["ret"] = "void" defs["igSetScrollY"][1]["signature"] = "(float)" defs["igSetScrollY"][1]["stname"] = "" @@ -25082,14 +26414,41 @@ defs["igSetScrollY"][2]["call_args"] = "(window,scroll_y)" defs["igSetScrollY"][2]["cimguiname"] = "igSetScrollY" defs["igSetScrollY"][2]["defaults"] = {} defs["igSetScrollY"][2]["funcname"] = "SetScrollY" -defs["igSetScrollY"][2]["location"] = "imgui_internal:2711" +defs["igSetScrollY"][2]["location"] = "imgui_internal:3007" defs["igSetScrollY"][2]["namespace"] = "ImGui" -defs["igSetScrollY"][2]["ov_cimguiname"] = "igSetScrollYWindowPtr" +defs["igSetScrollY"][2]["ov_cimguiname"] = "igSetScrollY_WindowPtr" defs["igSetScrollY"][2]["ret"] = "void" defs["igSetScrollY"][2]["signature"] = "(ImGuiWindow*,float)" defs["igSetScrollY"][2]["stname"] = "" defs["igSetScrollY"]["(ImGuiWindow*,float)"] = defs["igSetScrollY"][2] defs["igSetScrollY"]["(float)"] = defs["igSetScrollY"][1] +defs["igSetShortcutRouting"] = {} +defs["igSetShortcutRouting"][1] = {} +defs["igSetShortcutRouting"][1]["args"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igSetShortcutRouting"][1]["argsT"] = {} +defs["igSetShortcutRouting"][1]["argsT"][1] = {} +defs["igSetShortcutRouting"][1]["argsT"][1]["name"] = "key_chord" +defs["igSetShortcutRouting"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igSetShortcutRouting"][1]["argsT"][2] = {} +defs["igSetShortcutRouting"][1]["argsT"][2]["name"] = "owner_id" +defs["igSetShortcutRouting"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igSetShortcutRouting"][1]["argsT"][3] = {} +defs["igSetShortcutRouting"][1]["argsT"][3]["name"] = "flags" +defs["igSetShortcutRouting"][1]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igSetShortcutRouting"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id=0,ImGuiInputFlags flags=0)" +defs["igSetShortcutRouting"][1]["call_args"] = "(key_chord,owner_id,flags)" +defs["igSetShortcutRouting"][1]["cimguiname"] = "igSetShortcutRouting" +defs["igSetShortcutRouting"][1]["defaults"] = {} +defs["igSetShortcutRouting"][1]["defaults"]["flags"] = "0" +defs["igSetShortcutRouting"][1]["defaults"]["owner_id"] = "0" +defs["igSetShortcutRouting"][1]["funcname"] = "SetShortcutRouting" +defs["igSetShortcutRouting"][1]["location"] = "imgui_internal:3168" +defs["igSetShortcutRouting"][1]["namespace"] = "ImGui" +defs["igSetShortcutRouting"][1]["ov_cimguiname"] = "igSetShortcutRouting" +defs["igSetShortcutRouting"][1]["ret"] = "bool" +defs["igSetShortcutRouting"][1]["signature"] = "(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)" +defs["igSetShortcutRouting"][1]["stname"] = "" +defs["igSetShortcutRouting"]["(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)"] = defs["igSetShortcutRouting"][1] defs["igSetStateStorage"] = {} defs["igSetStateStorage"][1] = {} defs["igSetStateStorage"][1]["args"] = "(ImGuiStorage* storage)" @@ -25102,7 +26461,7 @@ defs["igSetStateStorage"][1]["call_args"] = "(storage)" defs["igSetStateStorage"][1]["cimguiname"] = "igSetStateStorage" defs["igSetStateStorage"][1]["defaults"] = {} defs["igSetStateStorage"][1]["funcname"] = "SetStateStorage" -defs["igSetStateStorage"][1]["location"] = "imgui:903" +defs["igSetStateStorage"][1]["location"] = "imgui:902" defs["igSetStateStorage"][1]["namespace"] = "ImGui" defs["igSetStateStorage"][1]["ov_cimguiname"] = "igSetStateStorage" defs["igSetStateStorage"][1]["ret"] = "void" @@ -25121,7 +26480,7 @@ defs["igSetTabItemClosed"][1]["call_args"] = "(tab_or_docked_window_label)" defs["igSetTabItemClosed"][1]["cimguiname"] = "igSetTabItemClosed" defs["igSetTabItemClosed"][1]["defaults"] = {} defs["igSetTabItemClosed"][1]["funcname"] = "SetTabItemClosed" -defs["igSetTabItemClosed"][1]["location"] = "imgui:803" +defs["igSetTabItemClosed"][1]["location"] = "imgui:800" defs["igSetTabItemClosed"][1]["namespace"] = "ImGui" defs["igSetTabItemClosed"][1]["ov_cimguiname"] = "igSetTabItemClosed" defs["igSetTabItemClosed"][1]["ret"] = "void" @@ -25144,7 +26503,7 @@ defs["igSetTooltip"][1]["cimguiname"] = "igSetTooltip" defs["igSetTooltip"][1]["defaults"] = {} defs["igSetTooltip"][1]["funcname"] = "SetTooltip" defs["igSetTooltip"][1]["isvararg"] = "...)" -defs["igSetTooltip"][1]["location"] = "imgui:677" +defs["igSetTooltip"][1]["location"] = "imgui:678" defs["igSetTooltip"][1]["namespace"] = "ImGui" defs["igSetTooltip"][1]["ov_cimguiname"] = "igSetTooltip" defs["igSetTooltip"][1]["ret"] = "void" @@ -25166,7 +26525,7 @@ defs["igSetTooltipV"][1]["call_args"] = "(fmt,args)" defs["igSetTooltipV"][1]["cimguiname"] = "igSetTooltipV" defs["igSetTooltipV"][1]["defaults"] = {} defs["igSetTooltipV"][1]["funcname"] = "SetTooltipV" -defs["igSetTooltipV"][1]["location"] = "imgui:678" +defs["igSetTooltipV"][1]["location"] = "imgui:679" defs["igSetTooltipV"][1]["namespace"] = "ImGui" defs["igSetTooltipV"][1]["ov_cimguiname"] = "igSetTooltipV" defs["igSetTooltipV"][1]["ret"] = "void" @@ -25188,7 +26547,7 @@ defs["igSetWindowClipRectBeforeSetChannel"][1]["call_args"] = "(window,clip_rect defs["igSetWindowClipRectBeforeSetChannel"][1]["cimguiname"] = "igSetWindowClipRectBeforeSetChannel" defs["igSetWindowClipRectBeforeSetChannel"][1]["defaults"] = {} defs["igSetWindowClipRectBeforeSetChannel"][1]["funcname"] = "SetWindowClipRectBeforeSetChannel" -defs["igSetWindowClipRectBeforeSetChannel"][1]["location"] = "imgui_internal:2893" +defs["igSetWindowClipRectBeforeSetChannel"][1]["location"] = "imgui_internal:3244" defs["igSetWindowClipRectBeforeSetChannel"][1]["namespace"] = "ImGui" defs["igSetWindowClipRectBeforeSetChannel"][1]["ov_cimguiname"] = "igSetWindowClipRectBeforeSetChannel" defs["igSetWindowClipRectBeforeSetChannel"][1]["ret"] = "void" @@ -25211,9 +26570,9 @@ defs["igSetWindowCollapsed"][1]["cimguiname"] = "igSetWindowCollapsed" defs["igSetWindowCollapsed"][1]["defaults"] = {} defs["igSetWindowCollapsed"][1]["defaults"]["cond"] = "0" defs["igSetWindowCollapsed"][1]["funcname"] = "SetWindowCollapsed" -defs["igSetWindowCollapsed"][1]["location"] = "imgui:383" +defs["igSetWindowCollapsed"][1]["location"] = "imgui:378" defs["igSetWindowCollapsed"][1]["namespace"] = "ImGui" -defs["igSetWindowCollapsed"][1]["ov_cimguiname"] = "igSetWindowCollapsedBool" +defs["igSetWindowCollapsed"][1]["ov_cimguiname"] = "igSetWindowCollapsed_Bool" defs["igSetWindowCollapsed"][1]["ret"] = "void" defs["igSetWindowCollapsed"][1]["signature"] = "(bool,ImGuiCond)" defs["igSetWindowCollapsed"][1]["stname"] = "" @@ -25235,9 +26594,9 @@ defs["igSetWindowCollapsed"][2]["cimguiname"] = "igSetWindowCollapsed" defs["igSetWindowCollapsed"][2]["defaults"] = {} defs["igSetWindowCollapsed"][2]["defaults"]["cond"] = "0" defs["igSetWindowCollapsed"][2]["funcname"] = "SetWindowCollapsed" -defs["igSetWindowCollapsed"][2]["location"] = "imgui:388" +defs["igSetWindowCollapsed"][2]["location"] = "imgui:383" defs["igSetWindowCollapsed"][2]["namespace"] = "ImGui" -defs["igSetWindowCollapsed"][2]["ov_cimguiname"] = "igSetWindowCollapsedStr" +defs["igSetWindowCollapsed"][2]["ov_cimguiname"] = "igSetWindowCollapsed_Str" defs["igSetWindowCollapsed"][2]["ret"] = "void" defs["igSetWindowCollapsed"][2]["signature"] = "(const char*,bool,ImGuiCond)" defs["igSetWindowCollapsed"][2]["stname"] = "" @@ -25259,9 +26618,9 @@ defs["igSetWindowCollapsed"][3]["cimguiname"] = "igSetWindowCollapsed" defs["igSetWindowCollapsed"][3]["defaults"] = {} defs["igSetWindowCollapsed"][3]["defaults"]["cond"] = "0" defs["igSetWindowCollapsed"][3]["funcname"] = "SetWindowCollapsed" -defs["igSetWindowCollapsed"][3]["location"] = "imgui_internal:2656" +defs["igSetWindowCollapsed"][3]["location"] = "imgui_internal:2944" defs["igSetWindowCollapsed"][3]["namespace"] = "ImGui" -defs["igSetWindowCollapsed"][3]["ov_cimguiname"] = "igSetWindowCollapsedWindowPtr" +defs["igSetWindowCollapsed"][3]["ov_cimguiname"] = "igSetWindowCollapsed_WindowPtr" defs["igSetWindowCollapsed"][3]["ret"] = "void" defs["igSetWindowCollapsed"][3]["signature"] = "(ImGuiWindow*,bool,ImGuiCond)" defs["igSetWindowCollapsed"][3]["stname"] = "" @@ -25286,7 +26645,7 @@ defs["igSetWindowDock"][1]["call_args"] = "(window,dock_id,cond)" defs["igSetWindowDock"][1]["cimguiname"] = "igSetWindowDock" defs["igSetWindowDock"][1]["defaults"] = {} defs["igSetWindowDock"][1]["funcname"] = "SetWindowDock" -defs["igSetWindowDock"][1]["location"] = "imgui_internal:2861" +defs["igSetWindowDock"][1]["location"] = "imgui_internal:3198" defs["igSetWindowDock"][1]["namespace"] = "ImGui" defs["igSetWindowDock"][1]["ov_cimguiname"] = "igSetWindowDock" defs["igSetWindowDock"][1]["ret"] = "void" @@ -25302,9 +26661,9 @@ defs["igSetWindowFocus"][1]["call_args"] = "()" defs["igSetWindowFocus"][1]["cimguiname"] = "igSetWindowFocus" defs["igSetWindowFocus"][1]["defaults"] = {} defs["igSetWindowFocus"][1]["funcname"] = "SetWindowFocus" -defs["igSetWindowFocus"][1]["location"] = "imgui:384" +defs["igSetWindowFocus"][1]["location"] = "imgui:379" defs["igSetWindowFocus"][1]["namespace"] = "ImGui" -defs["igSetWindowFocus"][1]["ov_cimguiname"] = "igSetWindowFocusNil" +defs["igSetWindowFocus"][1]["ov_cimguiname"] = "igSetWindowFocus_Nil" defs["igSetWindowFocus"][1]["ret"] = "void" defs["igSetWindowFocus"][1]["signature"] = "()" defs["igSetWindowFocus"][1]["stname"] = "" @@ -25319,9 +26678,9 @@ defs["igSetWindowFocus"][2]["call_args"] = "(name)" defs["igSetWindowFocus"][2]["cimguiname"] = "igSetWindowFocus" defs["igSetWindowFocus"][2]["defaults"] = {} defs["igSetWindowFocus"][2]["funcname"] = "SetWindowFocus" -defs["igSetWindowFocus"][2]["location"] = "imgui:389" +defs["igSetWindowFocus"][2]["location"] = "imgui:384" defs["igSetWindowFocus"][2]["namespace"] = "ImGui" -defs["igSetWindowFocus"][2]["ov_cimguiname"] = "igSetWindowFocusStr" +defs["igSetWindowFocus"][2]["ov_cimguiname"] = "igSetWindowFocus_Str" defs["igSetWindowFocus"][2]["ret"] = "void" defs["igSetWindowFocus"][2]["signature"] = "(const char*)" defs["igSetWindowFocus"][2]["stname"] = "" @@ -25339,7 +26698,7 @@ defs["igSetWindowFontScale"][1]["call_args"] = "(scale)" defs["igSetWindowFontScale"][1]["cimguiname"] = "igSetWindowFontScale" defs["igSetWindowFontScale"][1]["defaults"] = {} defs["igSetWindowFontScale"][1]["funcname"] = "SetWindowFontScale" -defs["igSetWindowFontScale"][1]["location"] = "imgui:385" +defs["igSetWindowFontScale"][1]["location"] = "imgui:380" defs["igSetWindowFontScale"][1]["namespace"] = "ImGui" defs["igSetWindowFontScale"][1]["ov_cimguiname"] = "igSetWindowFontScale" defs["igSetWindowFontScale"][1]["ret"] = "void" @@ -25364,7 +26723,7 @@ defs["igSetWindowHitTestHole"][1]["call_args"] = "(window,pos,size)" defs["igSetWindowHitTestHole"][1]["cimguiname"] = "igSetWindowHitTestHole" defs["igSetWindowHitTestHole"][1]["defaults"] = {} defs["igSetWindowHitTestHole"][1]["funcname"] = "SetWindowHitTestHole" -defs["igSetWindowHitTestHole"][1]["location"] = "imgui_internal:2657" +defs["igSetWindowHitTestHole"][1]["location"] = "imgui_internal:2945" defs["igSetWindowHitTestHole"][1]["namespace"] = "ImGui" defs["igSetWindowHitTestHole"][1]["ov_cimguiname"] = "igSetWindowHitTestHole" defs["igSetWindowHitTestHole"][1]["ret"] = "void" @@ -25387,9 +26746,9 @@ defs["igSetWindowPos"][1]["cimguiname"] = "igSetWindowPos" defs["igSetWindowPos"][1]["defaults"] = {} defs["igSetWindowPos"][1]["defaults"]["cond"] = "0" defs["igSetWindowPos"][1]["funcname"] = "SetWindowPos" -defs["igSetWindowPos"][1]["location"] = "imgui:381" +defs["igSetWindowPos"][1]["location"] = "imgui:376" defs["igSetWindowPos"][1]["namespace"] = "ImGui" -defs["igSetWindowPos"][1]["ov_cimguiname"] = "igSetWindowPosVec2" +defs["igSetWindowPos"][1]["ov_cimguiname"] = "igSetWindowPos_Vec2" defs["igSetWindowPos"][1]["ret"] = "void" defs["igSetWindowPos"][1]["signature"] = "(const ImVec2,ImGuiCond)" defs["igSetWindowPos"][1]["stname"] = "" @@ -25411,9 +26770,9 @@ defs["igSetWindowPos"][2]["cimguiname"] = "igSetWindowPos" defs["igSetWindowPos"][2]["defaults"] = {} defs["igSetWindowPos"][2]["defaults"]["cond"] = "0" defs["igSetWindowPos"][2]["funcname"] = "SetWindowPos" -defs["igSetWindowPos"][2]["location"] = "imgui:386" +defs["igSetWindowPos"][2]["location"] = "imgui:381" defs["igSetWindowPos"][2]["namespace"] = "ImGui" -defs["igSetWindowPos"][2]["ov_cimguiname"] = "igSetWindowPosStr" +defs["igSetWindowPos"][2]["ov_cimguiname"] = "igSetWindowPos_Str" defs["igSetWindowPos"][2]["ret"] = "void" defs["igSetWindowPos"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" defs["igSetWindowPos"][2]["stname"] = "" @@ -25435,9 +26794,9 @@ defs["igSetWindowPos"][3]["cimguiname"] = "igSetWindowPos" defs["igSetWindowPos"][3]["defaults"] = {} defs["igSetWindowPos"][3]["defaults"]["cond"] = "0" defs["igSetWindowPos"][3]["funcname"] = "SetWindowPos" -defs["igSetWindowPos"][3]["location"] = "imgui_internal:2654" +defs["igSetWindowPos"][3]["location"] = "imgui_internal:2942" defs["igSetWindowPos"][3]["namespace"] = "ImGui" -defs["igSetWindowPos"][3]["ov_cimguiname"] = "igSetWindowPosWindowPtr" +defs["igSetWindowPos"][3]["ov_cimguiname"] = "igSetWindowPos_WindowPtr" defs["igSetWindowPos"][3]["ret"] = "void" defs["igSetWindowPos"][3]["signature"] = "(ImGuiWindow*,const ImVec2,ImGuiCond)" defs["igSetWindowPos"][3]["stname"] = "" @@ -25460,9 +26819,9 @@ defs["igSetWindowSize"][1]["cimguiname"] = "igSetWindowSize" defs["igSetWindowSize"][1]["defaults"] = {} defs["igSetWindowSize"][1]["defaults"]["cond"] = "0" defs["igSetWindowSize"][1]["funcname"] = "SetWindowSize" -defs["igSetWindowSize"][1]["location"] = "imgui:382" +defs["igSetWindowSize"][1]["location"] = "imgui:377" defs["igSetWindowSize"][1]["namespace"] = "ImGui" -defs["igSetWindowSize"][1]["ov_cimguiname"] = "igSetWindowSizeVec2" +defs["igSetWindowSize"][1]["ov_cimguiname"] = "igSetWindowSize_Vec2" defs["igSetWindowSize"][1]["ret"] = "void" defs["igSetWindowSize"][1]["signature"] = "(const ImVec2,ImGuiCond)" defs["igSetWindowSize"][1]["stname"] = "" @@ -25484,9 +26843,9 @@ defs["igSetWindowSize"][2]["cimguiname"] = "igSetWindowSize" defs["igSetWindowSize"][2]["defaults"] = {} defs["igSetWindowSize"][2]["defaults"]["cond"] = "0" defs["igSetWindowSize"][2]["funcname"] = "SetWindowSize" -defs["igSetWindowSize"][2]["location"] = "imgui:387" +defs["igSetWindowSize"][2]["location"] = "imgui:382" defs["igSetWindowSize"][2]["namespace"] = "ImGui" -defs["igSetWindowSize"][2]["ov_cimguiname"] = "igSetWindowSizeStr" +defs["igSetWindowSize"][2]["ov_cimguiname"] = "igSetWindowSize_Str" defs["igSetWindowSize"][2]["ret"] = "void" defs["igSetWindowSize"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" defs["igSetWindowSize"][2]["stname"] = "" @@ -25508,15 +26867,37 @@ defs["igSetWindowSize"][3]["cimguiname"] = "igSetWindowSize" defs["igSetWindowSize"][3]["defaults"] = {} defs["igSetWindowSize"][3]["defaults"]["cond"] = "0" defs["igSetWindowSize"][3]["funcname"] = "SetWindowSize" -defs["igSetWindowSize"][3]["location"] = "imgui_internal:2655" +defs["igSetWindowSize"][3]["location"] = "imgui_internal:2943" defs["igSetWindowSize"][3]["namespace"] = "ImGui" -defs["igSetWindowSize"][3]["ov_cimguiname"] = "igSetWindowSizeWindowPtr" +defs["igSetWindowSize"][3]["ov_cimguiname"] = "igSetWindowSize_WindowPtr" defs["igSetWindowSize"][3]["ret"] = "void" defs["igSetWindowSize"][3]["signature"] = "(ImGuiWindow*,const ImVec2,ImGuiCond)" defs["igSetWindowSize"][3]["stname"] = "" defs["igSetWindowSize"]["(ImGuiWindow*,const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][3] defs["igSetWindowSize"]["(const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][1] defs["igSetWindowSize"]["(const char*,const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][2] +defs["igSetWindowViewport"] = {} +defs["igSetWindowViewport"][1] = {} +defs["igSetWindowViewport"][1]["args"] = "(ImGuiWindow* window,ImGuiViewportP* viewport)" +defs["igSetWindowViewport"][1]["argsT"] = {} +defs["igSetWindowViewport"][1]["argsT"][1] = {} +defs["igSetWindowViewport"][1]["argsT"][1]["name"] = "window" +defs["igSetWindowViewport"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetWindowViewport"][1]["argsT"][2] = {} +defs["igSetWindowViewport"][1]["argsT"][2]["name"] = "viewport" +defs["igSetWindowViewport"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["igSetWindowViewport"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiViewportP* viewport)" +defs["igSetWindowViewport"][1]["call_args"] = "(window,viewport)" +defs["igSetWindowViewport"][1]["cimguiname"] = "igSetWindowViewport" +defs["igSetWindowViewport"][1]["defaults"] = {} +defs["igSetWindowViewport"][1]["funcname"] = "SetWindowViewport" +defs["igSetWindowViewport"][1]["location"] = "imgui_internal:2985" +defs["igSetWindowViewport"][1]["namespace"] = "ImGui" +defs["igSetWindowViewport"][1]["ov_cimguiname"] = "igSetWindowViewport" +defs["igSetWindowViewport"][1]["ret"] = "void" +defs["igSetWindowViewport"][1]["signature"] = "(ImGuiWindow*,ImGuiViewportP*)" +defs["igSetWindowViewport"][1]["stname"] = "" +defs["igSetWindowViewport"]["(ImGuiWindow*,ImGuiViewportP*)"] = defs["igSetWindowViewport"][1] defs["igShadeVertsLinearColorGradientKeepAlpha"] = {} defs["igShadeVertsLinearColorGradientKeepAlpha"][1] = {} defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["args"] = "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1)" @@ -25547,7 +26928,7 @@ defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["call_args"] = "(draw_list,v defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["cimguiname"] = "igShadeVertsLinearColorGradientKeepAlpha" defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["defaults"] = {} defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["funcname"] = "ShadeVertsLinearColorGradientKeepAlpha" -defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["location"] = "imgui_internal:3061" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["location"] = "imgui_internal:3410" defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["namespace"] = "ImGui" defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["ov_cimguiname"] = "igShadeVertsLinearColorGradientKeepAlpha" defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["ret"] = "void" @@ -25587,13 +26968,40 @@ defs["igShadeVertsLinearUV"][1]["call_args"] = "(draw_list,vert_start_idx,vert_e defs["igShadeVertsLinearUV"][1]["cimguiname"] = "igShadeVertsLinearUV" defs["igShadeVertsLinearUV"][1]["defaults"] = {} defs["igShadeVertsLinearUV"][1]["funcname"] = "ShadeVertsLinearUV" -defs["igShadeVertsLinearUV"][1]["location"] = "imgui_internal:3062" +defs["igShadeVertsLinearUV"][1]["location"] = "imgui_internal:3411" defs["igShadeVertsLinearUV"][1]["namespace"] = "ImGui" defs["igShadeVertsLinearUV"][1]["ov_cimguiname"] = "igShadeVertsLinearUV" defs["igShadeVertsLinearUV"][1]["ret"] = "void" defs["igShadeVertsLinearUV"][1]["signature"] = "(ImDrawList*,int,int,const ImVec2,const ImVec2,const ImVec2,const ImVec2,bool)" defs["igShadeVertsLinearUV"][1]["stname"] = "" defs["igShadeVertsLinearUV"]["(ImDrawList*,int,int,const ImVec2,const ImVec2,const ImVec2,const ImVec2,bool)"] = defs["igShadeVertsLinearUV"][1] +defs["igShortcut"] = {} +defs["igShortcut"][1] = {} +defs["igShortcut"][1]["args"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igShortcut"][1]["argsT"] = {} +defs["igShortcut"][1]["argsT"][1] = {} +defs["igShortcut"][1]["argsT"][1]["name"] = "key_chord" +defs["igShortcut"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igShortcut"][1]["argsT"][2] = {} +defs["igShortcut"][1]["argsT"][2]["name"] = "owner_id" +defs["igShortcut"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igShortcut"][1]["argsT"][3] = {} +defs["igShortcut"][1]["argsT"][3]["name"] = "flags" +defs["igShortcut"][1]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igShortcut"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id=0,ImGuiInputFlags flags=0)" +defs["igShortcut"][1]["call_args"] = "(key_chord,owner_id,flags)" +defs["igShortcut"][1]["cimguiname"] = "igShortcut" +defs["igShortcut"][1]["defaults"] = {} +defs["igShortcut"][1]["defaults"]["flags"] = "0" +defs["igShortcut"][1]["defaults"]["owner_id"] = "0" +defs["igShortcut"][1]["funcname"] = "Shortcut" +defs["igShortcut"][1]["location"] = "imgui_internal:3167" +defs["igShortcut"][1]["namespace"] = "ImGui" +defs["igShortcut"][1]["ov_cimguiname"] = "igShortcut" +defs["igShortcut"][1]["ret"] = "bool" +defs["igShortcut"][1]["signature"] = "(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)" +defs["igShortcut"][1]["stname"] = "" +defs["igShortcut"]["(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)"] = defs["igShortcut"][1] defs["igShowAboutWindow"] = {} defs["igShowAboutWindow"][1] = {} defs["igShowAboutWindow"][1]["args"] = "(bool* p_open)" @@ -25607,13 +27015,33 @@ defs["igShowAboutWindow"][1]["cimguiname"] = "igShowAboutWindow" defs["igShowAboutWindow"][1]["defaults"] = {} defs["igShowAboutWindow"][1]["defaults"]["p_open"] = "NULL" defs["igShowAboutWindow"][1]["funcname"] = "ShowAboutWindow" -defs["igShowAboutWindow"][1]["location"] = "imgui:318" +defs["igShowAboutWindow"][1]["location"] = "imgui:312" defs["igShowAboutWindow"][1]["namespace"] = "ImGui" defs["igShowAboutWindow"][1]["ov_cimguiname"] = "igShowAboutWindow" defs["igShowAboutWindow"][1]["ret"] = "void" defs["igShowAboutWindow"][1]["signature"] = "(bool*)" defs["igShowAboutWindow"][1]["stname"] = "" defs["igShowAboutWindow"]["(bool*)"] = defs["igShowAboutWindow"][1] +defs["igShowDebugLogWindow"] = {} +defs["igShowDebugLogWindow"][1] = {} +defs["igShowDebugLogWindow"][1]["args"] = "(bool* p_open)" +defs["igShowDebugLogWindow"][1]["argsT"] = {} +defs["igShowDebugLogWindow"][1]["argsT"][1] = {} +defs["igShowDebugLogWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowDebugLogWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowDebugLogWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowDebugLogWindow"][1]["call_args"] = "(p_open)" +defs["igShowDebugLogWindow"][1]["cimguiname"] = "igShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["defaults"] = {} +defs["igShowDebugLogWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowDebugLogWindow"][1]["funcname"] = "ShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["location"] = "imgui:310" +defs["igShowDebugLogWindow"][1]["namespace"] = "ImGui" +defs["igShowDebugLogWindow"][1]["ov_cimguiname"] = "igShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["ret"] = "void" +defs["igShowDebugLogWindow"][1]["signature"] = "(bool*)" +defs["igShowDebugLogWindow"][1]["stname"] = "" +defs["igShowDebugLogWindow"]["(bool*)"] = defs["igShowDebugLogWindow"][1] defs["igShowDemoWindow"] = {} defs["igShowDemoWindow"][1] = {} defs["igShowDemoWindow"][1]["args"] = "(bool* p_open)" @@ -25627,7 +27055,7 @@ defs["igShowDemoWindow"][1]["cimguiname"] = "igShowDemoWindow" defs["igShowDemoWindow"][1]["defaults"] = {} defs["igShowDemoWindow"][1]["defaults"]["p_open"] = "NULL" defs["igShowDemoWindow"][1]["funcname"] = "ShowDemoWindow" -defs["igShowDemoWindow"][1]["location"] = "imgui:315" +defs["igShowDemoWindow"][1]["location"] = "imgui:308" defs["igShowDemoWindow"][1]["namespace"] = "ImGui" defs["igShowDemoWindow"][1]["ov_cimguiname"] = "igShowDemoWindow" defs["igShowDemoWindow"][1]["ret"] = "void" @@ -25646,7 +27074,7 @@ defs["igShowFontAtlas"][1]["call_args"] = "(atlas)" defs["igShowFontAtlas"][1]["cimguiname"] = "igShowFontAtlas" defs["igShowFontAtlas"][1]["defaults"] = {} defs["igShowFontAtlas"][1]["funcname"] = "ShowFontAtlas" -defs["igShowFontAtlas"][1]["location"] = "imgui_internal:3075" +defs["igShowFontAtlas"][1]["location"] = "imgui_internal:3431" defs["igShowFontAtlas"][1]["namespace"] = "ImGui" defs["igShowFontAtlas"][1]["ov_cimguiname"] = "igShowFontAtlas" defs["igShowFontAtlas"][1]["ret"] = "void" @@ -25665,7 +27093,7 @@ defs["igShowFontSelector"][1]["call_args"] = "(label)" defs["igShowFontSelector"][1]["cimguiname"] = "igShowFontSelector" defs["igShowFontSelector"][1]["defaults"] = {} defs["igShowFontSelector"][1]["funcname"] = "ShowFontSelector" -defs["igShowFontSelector"][1]["location"] = "imgui:321" +defs["igShowFontSelector"][1]["location"] = "imgui:315" defs["igShowFontSelector"][1]["namespace"] = "ImGui" defs["igShowFontSelector"][1]["ov_cimguiname"] = "igShowFontSelector" defs["igShowFontSelector"][1]["ret"] = "void" @@ -25685,7 +27113,7 @@ defs["igShowMetricsWindow"][1]["cimguiname"] = "igShowMetricsWindow" defs["igShowMetricsWindow"][1]["defaults"] = {} defs["igShowMetricsWindow"][1]["defaults"]["p_open"] = "NULL" defs["igShowMetricsWindow"][1]["funcname"] = "ShowMetricsWindow" -defs["igShowMetricsWindow"][1]["location"] = "imgui:316" +defs["igShowMetricsWindow"][1]["location"] = "imgui:309" defs["igShowMetricsWindow"][1]["namespace"] = "ImGui" defs["igShowMetricsWindow"][1]["ov_cimguiname"] = "igShowMetricsWindow" defs["igShowMetricsWindow"][1]["ret"] = "void" @@ -25705,7 +27133,7 @@ defs["igShowStackToolWindow"][1]["cimguiname"] = "igShowStackToolWindow" defs["igShowStackToolWindow"][1]["defaults"] = {} defs["igShowStackToolWindow"][1]["defaults"]["p_open"] = "NULL" defs["igShowStackToolWindow"][1]["funcname"] = "ShowStackToolWindow" -defs["igShowStackToolWindow"][1]["location"] = "imgui:317" +defs["igShowStackToolWindow"][1]["location"] = "imgui:311" defs["igShowStackToolWindow"][1]["namespace"] = "ImGui" defs["igShowStackToolWindow"][1]["ov_cimguiname"] = "igShowStackToolWindow" defs["igShowStackToolWindow"][1]["ret"] = "void" @@ -25725,7 +27153,7 @@ defs["igShowStyleEditor"][1]["cimguiname"] = "igShowStyleEditor" defs["igShowStyleEditor"][1]["defaults"] = {} defs["igShowStyleEditor"][1]["defaults"]["ref"] = "NULL" defs["igShowStyleEditor"][1]["funcname"] = "ShowStyleEditor" -defs["igShowStyleEditor"][1]["location"] = "imgui:319" +defs["igShowStyleEditor"][1]["location"] = "imgui:313" defs["igShowStyleEditor"][1]["namespace"] = "ImGui" defs["igShowStyleEditor"][1]["ov_cimguiname"] = "igShowStyleEditor" defs["igShowStyleEditor"][1]["ret"] = "void" @@ -25744,7 +27172,7 @@ defs["igShowStyleSelector"][1]["call_args"] = "(label)" defs["igShowStyleSelector"][1]["cimguiname"] = "igShowStyleSelector" defs["igShowStyleSelector"][1]["defaults"] = {} defs["igShowStyleSelector"][1]["funcname"] = "ShowStyleSelector" -defs["igShowStyleSelector"][1]["location"] = "imgui:320" +defs["igShowStyleSelector"][1]["location"] = "imgui:314" defs["igShowStyleSelector"][1]["namespace"] = "ImGui" defs["igShowStyleSelector"][1]["ov_cimguiname"] = "igShowStyleSelector" defs["igShowStyleSelector"][1]["ret"] = "bool" @@ -25760,7 +27188,7 @@ defs["igShowUserGuide"][1]["call_args"] = "()" defs["igShowUserGuide"][1]["cimguiname"] = "igShowUserGuide" defs["igShowUserGuide"][1]["defaults"] = {} defs["igShowUserGuide"][1]["funcname"] = "ShowUserGuide" -defs["igShowUserGuide"][1]["location"] = "imgui:322" +defs["igShowUserGuide"][1]["location"] = "imgui:316" defs["igShowUserGuide"][1]["namespace"] = "ImGui" defs["igShowUserGuide"][1]["ov_cimguiname"] = "igShowUserGuide" defs["igShowUserGuide"][1]["ret"] = "void" @@ -25785,7 +27213,7 @@ defs["igShrinkWidths"][1]["call_args"] = "(items,count,width_excess)" defs["igShrinkWidths"][1]["cimguiname"] = "igShrinkWidths" defs["igShrinkWidths"][1]["defaults"] = {} defs["igShrinkWidths"][1]["funcname"] = "ShrinkWidths" -defs["igShrinkWidths"][1]["location"] = "imgui_internal:2751" +defs["igShrinkWidths"][1]["location"] = "imgui_internal:3047" defs["igShrinkWidths"][1]["namespace"] = "ImGui" defs["igShrinkWidths"][1]["ov_cimguiname"] = "igShrinkWidths" defs["igShrinkWidths"][1]["ret"] = "void" @@ -25794,23 +27222,20 @@ defs["igShrinkWidths"][1]["stname"] = "" defs["igShrinkWidths"]["(ImGuiShrinkWidthItem*,int,float)"] = defs["igShrinkWidths"][1] defs["igShutdown"] = {} defs["igShutdown"][1] = {} -defs["igShutdown"][1]["args"] = "(ImGuiContext* context)" +defs["igShutdown"][1]["args"] = "()" defs["igShutdown"][1]["argsT"] = {} -defs["igShutdown"][1]["argsT"][1] = {} -defs["igShutdown"][1]["argsT"][1]["name"] = "context" -defs["igShutdown"][1]["argsT"][1]["type"] = "ImGuiContext*" -defs["igShutdown"][1]["argsoriginal"] = "(ImGuiContext* context)" -defs["igShutdown"][1]["call_args"] = "(context)" +defs["igShutdown"][1]["argsoriginal"] = "()" +defs["igShutdown"][1]["call_args"] = "()" defs["igShutdown"][1]["cimguiname"] = "igShutdown" defs["igShutdown"][1]["defaults"] = {} defs["igShutdown"][1]["funcname"] = "Shutdown" -defs["igShutdown"][1]["location"] = "imgui_internal:2678" +defs["igShutdown"][1]["location"] = "imgui_internal:2966" defs["igShutdown"][1]["namespace"] = "ImGui" defs["igShutdown"][1]["ov_cimguiname"] = "igShutdown" defs["igShutdown"][1]["ret"] = "void" -defs["igShutdown"][1]["signature"] = "(ImGuiContext*)" +defs["igShutdown"][1]["signature"] = "()" defs["igShutdown"][1]["stname"] = "" -defs["igShutdown"]["(ImGuiContext*)"] = defs["igShutdown"][1] +defs["igShutdown"]["()"] = defs["igShutdown"][1] defs["igSliderAngle"] = {} defs["igSliderAngle"][1] = {} defs["igSliderAngle"][1]["args"] = "(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags)" @@ -25842,7 +27267,7 @@ defs["igSliderAngle"][1]["defaults"]["format"] = "\"%.0f deg\"" defs["igSliderAngle"][1]["defaults"]["v_degrees_max"] = "+360.0f" defs["igSliderAngle"][1]["defaults"]["v_degrees_min"] = "-360.0f" defs["igSliderAngle"][1]["funcname"] = "SliderAngle" -defs["igSliderAngle"][1]["location"] = "imgui:569" +defs["igSliderAngle"][1]["location"] = "imgui:570" defs["igSliderAngle"][1]["namespace"] = "ImGui" defs["igSliderAngle"][1]["ov_cimguiname"] = "igSliderAngle" defs["igSliderAngle"][1]["ret"] = "bool" @@ -25885,7 +27310,7 @@ defs["igSliderBehavior"][1]["call_args"] = "(bb,id,data_type,p_v,p_min,p_max,for defs["igSliderBehavior"][1]["cimguiname"] = "igSliderBehavior" defs["igSliderBehavior"][1]["defaults"] = {} defs["igSliderBehavior"][1]["funcname"] = "SliderBehavior" -defs["igSliderBehavior"][1]["location"] = "imgui_internal:3021" +defs["igSliderBehavior"][1]["location"] = "imgui_internal:3369" defs["igSliderBehavior"][1]["namespace"] = "ImGui" defs["igSliderBehavior"][1]["ov_cimguiname"] = "igSliderBehavior" defs["igSliderBehavior"][1]["ret"] = "bool" @@ -25921,7 +27346,7 @@ defs["igSliderFloat"][1]["defaults"] = {} defs["igSliderFloat"][1]["defaults"]["flags"] = "0" defs["igSliderFloat"][1]["defaults"]["format"] = "\"%.3f\"" defs["igSliderFloat"][1]["funcname"] = "SliderFloat" -defs["igSliderFloat"][1]["location"] = "imgui:565" +defs["igSliderFloat"][1]["location"] = "imgui:566" defs["igSliderFloat"][1]["namespace"] = "ImGui" defs["igSliderFloat"][1]["ov_cimguiname"] = "igSliderFloat" defs["igSliderFloat"][1]["ret"] = "bool" @@ -25957,7 +27382,7 @@ defs["igSliderFloat2"][1]["defaults"] = {} defs["igSliderFloat2"][1]["defaults"]["flags"] = "0" defs["igSliderFloat2"][1]["defaults"]["format"] = "\"%.3f\"" defs["igSliderFloat2"][1]["funcname"] = "SliderFloat2" -defs["igSliderFloat2"][1]["location"] = "imgui:566" +defs["igSliderFloat2"][1]["location"] = "imgui:567" defs["igSliderFloat2"][1]["namespace"] = "ImGui" defs["igSliderFloat2"][1]["ov_cimguiname"] = "igSliderFloat2" defs["igSliderFloat2"][1]["ret"] = "bool" @@ -25993,7 +27418,7 @@ defs["igSliderFloat3"][1]["defaults"] = {} defs["igSliderFloat3"][1]["defaults"]["flags"] = "0" defs["igSliderFloat3"][1]["defaults"]["format"] = "\"%.3f\"" defs["igSliderFloat3"][1]["funcname"] = "SliderFloat3" -defs["igSliderFloat3"][1]["location"] = "imgui:567" +defs["igSliderFloat3"][1]["location"] = "imgui:568" defs["igSliderFloat3"][1]["namespace"] = "ImGui" defs["igSliderFloat3"][1]["ov_cimguiname"] = "igSliderFloat3" defs["igSliderFloat3"][1]["ret"] = "bool" @@ -26029,7 +27454,7 @@ defs["igSliderFloat4"][1]["defaults"] = {} defs["igSliderFloat4"][1]["defaults"]["flags"] = "0" defs["igSliderFloat4"][1]["defaults"]["format"] = "\"%.3f\"" defs["igSliderFloat4"][1]["funcname"] = "SliderFloat4" -defs["igSliderFloat4"][1]["location"] = "imgui:568" +defs["igSliderFloat4"][1]["location"] = "imgui:569" defs["igSliderFloat4"][1]["namespace"] = "ImGui" defs["igSliderFloat4"][1]["ov_cimguiname"] = "igSliderFloat4" defs["igSliderFloat4"][1]["ret"] = "bool" @@ -26065,7 +27490,7 @@ defs["igSliderInt"][1]["defaults"] = {} defs["igSliderInt"][1]["defaults"]["flags"] = "0" defs["igSliderInt"][1]["defaults"]["format"] = "\"%d\"" defs["igSliderInt"][1]["funcname"] = "SliderInt" -defs["igSliderInt"][1]["location"] = "imgui:570" +defs["igSliderInt"][1]["location"] = "imgui:571" defs["igSliderInt"][1]["namespace"] = "ImGui" defs["igSliderInt"][1]["ov_cimguiname"] = "igSliderInt" defs["igSliderInt"][1]["ret"] = "bool" @@ -26101,7 +27526,7 @@ defs["igSliderInt2"][1]["defaults"] = {} defs["igSliderInt2"][1]["defaults"]["flags"] = "0" defs["igSliderInt2"][1]["defaults"]["format"] = "\"%d\"" defs["igSliderInt2"][1]["funcname"] = "SliderInt2" -defs["igSliderInt2"][1]["location"] = "imgui:571" +defs["igSliderInt2"][1]["location"] = "imgui:572" defs["igSliderInt2"][1]["namespace"] = "ImGui" defs["igSliderInt2"][1]["ov_cimguiname"] = "igSliderInt2" defs["igSliderInt2"][1]["ret"] = "bool" @@ -26137,7 +27562,7 @@ defs["igSliderInt3"][1]["defaults"] = {} defs["igSliderInt3"][1]["defaults"]["flags"] = "0" defs["igSliderInt3"][1]["defaults"]["format"] = "\"%d\"" defs["igSliderInt3"][1]["funcname"] = "SliderInt3" -defs["igSliderInt3"][1]["location"] = "imgui:572" +defs["igSliderInt3"][1]["location"] = "imgui:573" defs["igSliderInt3"][1]["namespace"] = "ImGui" defs["igSliderInt3"][1]["ov_cimguiname"] = "igSliderInt3" defs["igSliderInt3"][1]["ret"] = "bool" @@ -26173,7 +27598,7 @@ defs["igSliderInt4"][1]["defaults"] = {} defs["igSliderInt4"][1]["defaults"]["flags"] = "0" defs["igSliderInt4"][1]["defaults"]["format"] = "\"%d\"" defs["igSliderInt4"][1]["funcname"] = "SliderInt4" -defs["igSliderInt4"][1]["location"] = "imgui:573" +defs["igSliderInt4"][1]["location"] = "imgui:574" defs["igSliderInt4"][1]["namespace"] = "ImGui" defs["igSliderInt4"][1]["ov_cimguiname"] = "igSliderInt4" defs["igSliderInt4"][1]["ret"] = "bool" @@ -26212,7 +27637,7 @@ defs["igSliderScalar"][1]["defaults"] = {} defs["igSliderScalar"][1]["defaults"]["flags"] = "0" defs["igSliderScalar"][1]["defaults"]["format"] = "NULL" defs["igSliderScalar"][1]["funcname"] = "SliderScalar" -defs["igSliderScalar"][1]["location"] = "imgui:574" +defs["igSliderScalar"][1]["location"] = "imgui:575" defs["igSliderScalar"][1]["namespace"] = "ImGui" defs["igSliderScalar"][1]["ov_cimguiname"] = "igSliderScalar" defs["igSliderScalar"][1]["ret"] = "bool" @@ -26254,7 +27679,7 @@ defs["igSliderScalarN"][1]["defaults"] = {} defs["igSliderScalarN"][1]["defaults"]["flags"] = "0" defs["igSliderScalarN"][1]["defaults"]["format"] = "NULL" defs["igSliderScalarN"][1]["funcname"] = "SliderScalarN" -defs["igSliderScalarN"][1]["location"] = "imgui:575" +defs["igSliderScalarN"][1]["location"] = "imgui:576" defs["igSliderScalarN"][1]["namespace"] = "ImGui" defs["igSliderScalarN"][1]["ov_cimguiname"] = "igSliderScalarN" defs["igSliderScalarN"][1]["ret"] = "bool" @@ -26273,7 +27698,7 @@ defs["igSmallButton"][1]["call_args"] = "(label)" defs["igSmallButton"][1]["cimguiname"] = "igSmallButton" defs["igSmallButton"][1]["defaults"] = {} defs["igSmallButton"][1]["funcname"] = "SmallButton" -defs["igSmallButton"][1]["location"] = "imgui:513" +defs["igSmallButton"][1]["location"] = "imgui:510" defs["igSmallButton"][1]["namespace"] = "ImGui" defs["igSmallButton"][1]["ov_cimguiname"] = "igSmallButton" defs["igSmallButton"][1]["ret"] = "bool" @@ -26289,7 +27714,7 @@ defs["igSpacing"][1]["call_args"] = "()" defs["igSpacing"][1]["cimguiname"] = "igSpacing" defs["igSpacing"][1]["defaults"] = {} defs["igSpacing"][1]["funcname"] = "Spacing" -defs["igSpacing"][1]["location"] = "imgui:453" +defs["igSpacing"][1]["location"] = "imgui:450" defs["igSpacing"][1]["namespace"] = "ImGui" defs["igSpacing"][1]["ov_cimguiname"] = "igSpacing" defs["igSpacing"][1]["ret"] = "void" @@ -26338,7 +27763,7 @@ defs["igSplitterBehavior"][1]["defaults"]["bg_col"] = "0" defs["igSplitterBehavior"][1]["defaults"]["hover_extend"] = "0.0f" defs["igSplitterBehavior"][1]["defaults"]["hover_visibility_delay"] = "0.0f" defs["igSplitterBehavior"][1]["funcname"] = "SplitterBehavior" -defs["igSplitterBehavior"][1]["location"] = "imgui_internal:3022" +defs["igSplitterBehavior"][1]["location"] = "imgui_internal:3370" defs["igSplitterBehavior"][1]["namespace"] = "ImGui" defs["igSplitterBehavior"][1]["ov_cimguiname"] = "igSplitterBehavior" defs["igSplitterBehavior"][1]["ret"] = "bool" @@ -26357,7 +27782,7 @@ defs["igStartMouseMovingWindow"][1]["call_args"] = "(window)" defs["igStartMouseMovingWindow"][1]["cimguiname"] = "igStartMouseMovingWindow" defs["igStartMouseMovingWindow"][1]["defaults"] = {} defs["igStartMouseMovingWindow"][1]["funcname"] = "StartMouseMovingWindow" -defs["igStartMouseMovingWindow"][1]["location"] = "imgui_internal:2682" +defs["igStartMouseMovingWindow"][1]["location"] = "imgui_internal:2971" defs["igStartMouseMovingWindow"][1]["namespace"] = "ImGui" defs["igStartMouseMovingWindow"][1]["ov_cimguiname"] = "igStartMouseMovingWindow" defs["igStartMouseMovingWindow"][1]["ret"] = "void" @@ -26382,7 +27807,7 @@ defs["igStartMouseMovingWindowOrNode"][1]["call_args"] = "(window,node,undock_fl defs["igStartMouseMovingWindowOrNode"][1]["cimguiname"] = "igStartMouseMovingWindowOrNode" defs["igStartMouseMovingWindowOrNode"][1]["defaults"] = {} defs["igStartMouseMovingWindowOrNode"][1]["funcname"] = "StartMouseMovingWindowOrNode" -defs["igStartMouseMovingWindowOrNode"][1]["location"] = "imgui_internal:2683" +defs["igStartMouseMovingWindowOrNode"][1]["location"] = "imgui_internal:2972" defs["igStartMouseMovingWindowOrNode"][1]["namespace"] = "ImGui" defs["igStartMouseMovingWindowOrNode"][1]["ov_cimguiname"] = "igStartMouseMovingWindowOrNode" defs["igStartMouseMovingWindowOrNode"][1]["ret"] = "void" @@ -26402,7 +27827,7 @@ defs["igStyleColorsClassic"][1]["cimguiname"] = "igStyleColorsClassic" defs["igStyleColorsClassic"][1]["defaults"] = {} defs["igStyleColorsClassic"][1]["defaults"]["dst"] = "NULL" defs["igStyleColorsClassic"][1]["funcname"] = "StyleColorsClassic" -defs["igStyleColorsClassic"][1]["location"] = "imgui:328" +defs["igStyleColorsClassic"][1]["location"] = "imgui:322" defs["igStyleColorsClassic"][1]["namespace"] = "ImGui" defs["igStyleColorsClassic"][1]["ov_cimguiname"] = "igStyleColorsClassic" defs["igStyleColorsClassic"][1]["ret"] = "void" @@ -26422,7 +27847,7 @@ defs["igStyleColorsDark"][1]["cimguiname"] = "igStyleColorsDark" defs["igStyleColorsDark"][1]["defaults"] = {} defs["igStyleColorsDark"][1]["defaults"]["dst"] = "NULL" defs["igStyleColorsDark"][1]["funcname"] = "StyleColorsDark" -defs["igStyleColorsDark"][1]["location"] = "imgui:326" +defs["igStyleColorsDark"][1]["location"] = "imgui:320" defs["igStyleColorsDark"][1]["namespace"] = "ImGui" defs["igStyleColorsDark"][1]["ov_cimguiname"] = "igStyleColorsDark" defs["igStyleColorsDark"][1]["ret"] = "void" @@ -26442,7 +27867,7 @@ defs["igStyleColorsLight"][1]["cimguiname"] = "igStyleColorsLight" defs["igStyleColorsLight"][1]["defaults"] = {} defs["igStyleColorsLight"][1]["defaults"]["dst"] = "NULL" defs["igStyleColorsLight"][1]["funcname"] = "StyleColorsLight" -defs["igStyleColorsLight"][1]["location"] = "imgui:327" +defs["igStyleColorsLight"][1]["location"] = "imgui:321" defs["igStyleColorsLight"][1]["namespace"] = "ImGui" defs["igStyleColorsLight"][1]["ov_cimguiname"] = "igStyleColorsLight" defs["igStyleColorsLight"][1]["ret"] = "void" @@ -26467,7 +27892,7 @@ defs["igTabBarAddTab"][1]["call_args"] = "(tab_bar,tab_flags,window)" defs["igTabBarAddTab"][1]["cimguiname"] = "igTabBarAddTab" defs["igTabBarAddTab"][1]["defaults"] = {} defs["igTabBarAddTab"][1]["funcname"] = "TabBarAddTab" -defs["igTabBarAddTab"][1]["location"] = "imgui_internal:2959" +defs["igTabBarAddTab"][1]["location"] = "imgui_internal:3312" defs["igTabBarAddTab"][1]["namespace"] = "ImGui" defs["igTabBarAddTab"][1]["ov_cimguiname"] = "igTabBarAddTab" defs["igTabBarAddTab"][1]["ret"] = "void" @@ -26489,7 +27914,7 @@ defs["igTabBarCloseTab"][1]["call_args"] = "(tab_bar,tab)" defs["igTabBarCloseTab"][1]["cimguiname"] = "igTabBarCloseTab" defs["igTabBarCloseTab"][1]["defaults"] = {} defs["igTabBarCloseTab"][1]["funcname"] = "TabBarCloseTab" -defs["igTabBarCloseTab"][1]["location"] = "imgui_internal:2961" +defs["igTabBarCloseTab"][1]["location"] = "imgui_internal:3314" defs["igTabBarCloseTab"][1]["namespace"] = "ImGui" defs["igTabBarCloseTab"][1]["ov_cimguiname"] = "igTabBarCloseTab" defs["igTabBarCloseTab"][1]["ret"] = "void" @@ -26508,7 +27933,7 @@ defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["call_args"] = "(t defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["cimguiname"] = "igTabBarFindMostRecentlySelectedTabForActiveWindow" defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["defaults"] = {} defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["funcname"] = "TabBarFindMostRecentlySelectedTabForActiveWindow" -defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["location"] = "imgui_internal:2958" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["location"] = "imgui_internal:3311" defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["namespace"] = "ImGui" defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["ov_cimguiname"] = "igTabBarFindMostRecentlySelectedTabForActiveWindow" defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["ret"] = "ImGuiTabItem*" @@ -26530,7 +27955,7 @@ defs["igTabBarFindTabByID"][1]["call_args"] = "(tab_bar,tab_id)" defs["igTabBarFindTabByID"][1]["cimguiname"] = "igTabBarFindTabByID" defs["igTabBarFindTabByID"][1]["defaults"] = {} defs["igTabBarFindTabByID"][1]["funcname"] = "TabBarFindTabByID" -defs["igTabBarFindTabByID"][1]["location"] = "imgui_internal:2957" +defs["igTabBarFindTabByID"][1]["location"] = "imgui_internal:3310" defs["igTabBarFindTabByID"][1]["namespace"] = "ImGui" defs["igTabBarFindTabByID"][1]["ov_cimguiname"] = "igTabBarFindTabByID" defs["igTabBarFindTabByID"][1]["ret"] = "ImGuiTabItem*" @@ -26549,7 +27974,7 @@ defs["igTabBarProcessReorder"][1]["call_args"] = "(tab_bar)" defs["igTabBarProcessReorder"][1]["cimguiname"] = "igTabBarProcessReorder" defs["igTabBarProcessReorder"][1]["defaults"] = {} defs["igTabBarProcessReorder"][1]["funcname"] = "TabBarProcessReorder" -defs["igTabBarProcessReorder"][1]["location"] = "imgui_internal:2964" +defs["igTabBarProcessReorder"][1]["location"] = "imgui_internal:3317" defs["igTabBarProcessReorder"][1]["namespace"] = "ImGui" defs["igTabBarProcessReorder"][1]["ov_cimguiname"] = "igTabBarProcessReorder" defs["igTabBarProcessReorder"][1]["ret"] = "bool" @@ -26574,7 +27999,7 @@ defs["igTabBarQueueReorder"][1]["call_args"] = "(tab_bar,tab,offset)" defs["igTabBarQueueReorder"][1]["cimguiname"] = "igTabBarQueueReorder" defs["igTabBarQueueReorder"][1]["defaults"] = {} defs["igTabBarQueueReorder"][1]["funcname"] = "TabBarQueueReorder" -defs["igTabBarQueueReorder"][1]["location"] = "imgui_internal:2962" +defs["igTabBarQueueReorder"][1]["location"] = "imgui_internal:3315" defs["igTabBarQueueReorder"][1]["namespace"] = "ImGui" defs["igTabBarQueueReorder"][1]["ov_cimguiname"] = "igTabBarQueueReorder" defs["igTabBarQueueReorder"][1]["ret"] = "void" @@ -26599,7 +28024,7 @@ defs["igTabBarQueueReorderFromMousePos"][1]["call_args"] = "(tab_bar,tab,mouse_p defs["igTabBarQueueReorderFromMousePos"][1]["cimguiname"] = "igTabBarQueueReorderFromMousePos" defs["igTabBarQueueReorderFromMousePos"][1]["defaults"] = {} defs["igTabBarQueueReorderFromMousePos"][1]["funcname"] = "TabBarQueueReorderFromMousePos" -defs["igTabBarQueueReorderFromMousePos"][1]["location"] = "imgui_internal:2963" +defs["igTabBarQueueReorderFromMousePos"][1]["location"] = "imgui_internal:3316" defs["igTabBarQueueReorderFromMousePos"][1]["namespace"] = "ImGui" defs["igTabBarQueueReorderFromMousePos"][1]["ov_cimguiname"] = "igTabBarQueueReorderFromMousePos" defs["igTabBarQueueReorderFromMousePos"][1]["ret"] = "void" @@ -26621,7 +28046,7 @@ defs["igTabBarRemoveTab"][1]["call_args"] = "(tab_bar,tab_id)" defs["igTabBarRemoveTab"][1]["cimguiname"] = "igTabBarRemoveTab" defs["igTabBarRemoveTab"][1]["defaults"] = {} defs["igTabBarRemoveTab"][1]["funcname"] = "TabBarRemoveTab" -defs["igTabBarRemoveTab"][1]["location"] = "imgui_internal:2960" +defs["igTabBarRemoveTab"][1]["location"] = "imgui_internal:3313" defs["igTabBarRemoveTab"][1]["namespace"] = "ImGui" defs["igTabBarRemoveTab"][1]["ov_cimguiname"] = "igTabBarRemoveTab" defs["igTabBarRemoveTab"][1]["ret"] = "void" @@ -26649,7 +28074,7 @@ defs["igTabItemBackground"][1]["call_args"] = "(draw_list,bb,flags,col)" defs["igTabItemBackground"][1]["cimguiname"] = "igTabItemBackground" defs["igTabItemBackground"][1]["defaults"] = {} defs["igTabItemBackground"][1]["funcname"] = "TabItemBackground" -defs["igTabItemBackground"][1]["location"] = "imgui_internal:2967" +defs["igTabItemBackground"][1]["location"] = "imgui_internal:3321" defs["igTabItemBackground"][1]["namespace"] = "ImGui" defs["igTabItemBackground"][1]["ov_cimguiname"] = "igTabItemBackground" defs["igTabItemBackground"][1]["ret"] = "void" @@ -26672,7 +28097,7 @@ defs["igTabItemButton"][1]["cimguiname"] = "igTabItemButton" defs["igTabItemButton"][1]["defaults"] = {} defs["igTabItemButton"][1]["defaults"]["flags"] = "0" defs["igTabItemButton"][1]["funcname"] = "TabItemButton" -defs["igTabItemButton"][1]["location"] = "imgui:802" +defs["igTabItemButton"][1]["location"] = "imgui:799" defs["igTabItemButton"][1]["namespace"] = "ImGui" defs["igTabItemButton"][1]["ov_cimguiname"] = "igTabItemButton" defs["igTabItemButton"][1]["ret"] = "bool" @@ -26681,7 +28106,7 @@ defs["igTabItemButton"][1]["stname"] = "" defs["igTabItemButton"]["(const char*,ImGuiTabItemFlags)"] = defs["igTabItemButton"][1] defs["igTabItemCalcSize"] = {} defs["igTabItemCalcSize"][1] = {} -defs["igTabItemCalcSize"][1]["args"] = "(ImVec2 *pOut,const char* label,bool has_close_button)" +defs["igTabItemCalcSize"][1]["args"] = "(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker)" defs["igTabItemCalcSize"][1]["argsT"] = {} defs["igTabItemCalcSize"][1]["argsT"][1] = {} defs["igTabItemCalcSize"][1]["argsT"][1]["name"] = "pOut" @@ -26690,20 +28115,42 @@ defs["igTabItemCalcSize"][1]["argsT"][2] = {} defs["igTabItemCalcSize"][1]["argsT"][2]["name"] = "label" defs["igTabItemCalcSize"][1]["argsT"][2]["type"] = "const char*" defs["igTabItemCalcSize"][1]["argsT"][3] = {} -defs["igTabItemCalcSize"][1]["argsT"][3]["name"] = "has_close_button" +defs["igTabItemCalcSize"][1]["argsT"][3]["name"] = "has_close_button_or_unsaved_marker" defs["igTabItemCalcSize"][1]["argsT"][3]["type"] = "bool" -defs["igTabItemCalcSize"][1]["argsoriginal"] = "(const char* label,bool has_close_button)" -defs["igTabItemCalcSize"][1]["call_args"] = "(label,has_close_button)" +defs["igTabItemCalcSize"][1]["argsoriginal"] = "(const char* label,bool has_close_button_or_unsaved_marker)" +defs["igTabItemCalcSize"][1]["call_args"] = "(label,has_close_button_or_unsaved_marker)" defs["igTabItemCalcSize"][1]["cimguiname"] = "igTabItemCalcSize" defs["igTabItemCalcSize"][1]["defaults"] = {} defs["igTabItemCalcSize"][1]["funcname"] = "TabItemCalcSize" -defs["igTabItemCalcSize"][1]["location"] = "imgui_internal:2966" +defs["igTabItemCalcSize"][1]["location"] = "imgui_internal:3319" defs["igTabItemCalcSize"][1]["namespace"] = "ImGui" defs["igTabItemCalcSize"][1]["nonUDT"] = 1 -defs["igTabItemCalcSize"][1]["ov_cimguiname"] = "igTabItemCalcSize" +defs["igTabItemCalcSize"][1]["ov_cimguiname"] = "igTabItemCalcSize_Str" defs["igTabItemCalcSize"][1]["ret"] = "void" defs["igTabItemCalcSize"][1]["signature"] = "(const char*,bool)" defs["igTabItemCalcSize"][1]["stname"] = "" +defs["igTabItemCalcSize"][2] = {} +defs["igTabItemCalcSize"][2]["args"] = "(ImVec2 *pOut,ImGuiWindow* window)" +defs["igTabItemCalcSize"][2]["argsT"] = {} +defs["igTabItemCalcSize"][2]["argsT"][1] = {} +defs["igTabItemCalcSize"][2]["argsT"][1]["name"] = "pOut" +defs["igTabItemCalcSize"][2]["argsT"][1]["type"] = "ImVec2*" +defs["igTabItemCalcSize"][2]["argsT"][2] = {} +defs["igTabItemCalcSize"][2]["argsT"][2]["name"] = "window" +defs["igTabItemCalcSize"][2]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igTabItemCalcSize"][2]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igTabItemCalcSize"][2]["call_args"] = "(window)" +defs["igTabItemCalcSize"][2]["cimguiname"] = "igTabItemCalcSize" +defs["igTabItemCalcSize"][2]["defaults"] = {} +defs["igTabItemCalcSize"][2]["funcname"] = "TabItemCalcSize" +defs["igTabItemCalcSize"][2]["location"] = "imgui_internal:3320" +defs["igTabItemCalcSize"][2]["namespace"] = "ImGui" +defs["igTabItemCalcSize"][2]["nonUDT"] = 1 +defs["igTabItemCalcSize"][2]["ov_cimguiname"] = "igTabItemCalcSize_WindowPtr" +defs["igTabItemCalcSize"][2]["ret"] = "void" +defs["igTabItemCalcSize"][2]["signature"] = "(ImGuiWindow*)" +defs["igTabItemCalcSize"][2]["stname"] = "" +defs["igTabItemCalcSize"]["(ImGuiWindow*)"] = defs["igTabItemCalcSize"][2] defs["igTabItemCalcSize"]["(const char*,bool)"] = defs["igTabItemCalcSize"][1] defs["igTabItemEx"] = {} defs["igTabItemEx"][1] = {} @@ -26729,7 +28176,7 @@ defs["igTabItemEx"][1]["call_args"] = "(tab_bar,label,p_open,flags,docked_window defs["igTabItemEx"][1]["cimguiname"] = "igTabItemEx" defs["igTabItemEx"][1]["defaults"] = {} defs["igTabItemEx"][1]["funcname"] = "TabItemEx" -defs["igTabItemEx"][1]["location"] = "imgui_internal:2965" +defs["igTabItemEx"][1]["location"] = "imgui_internal:3318" defs["igTabItemEx"][1]["namespace"] = "ImGui" defs["igTabItemEx"][1]["ov_cimguiname"] = "igTabItemEx" defs["igTabItemEx"][1]["ret"] = "bool" @@ -26775,7 +28222,7 @@ defs["igTabItemLabelAndCloseButton"][1]["call_args"] = "(draw_list,bb,flags,fram defs["igTabItemLabelAndCloseButton"][1]["cimguiname"] = "igTabItemLabelAndCloseButton" defs["igTabItemLabelAndCloseButton"][1]["defaults"] = {} defs["igTabItemLabelAndCloseButton"][1]["funcname"] = "TabItemLabelAndCloseButton" -defs["igTabItemLabelAndCloseButton"][1]["location"] = "imgui_internal:2968" +defs["igTabItemLabelAndCloseButton"][1]["location"] = "imgui_internal:3322" defs["igTabItemLabelAndCloseButton"][1]["namespace"] = "ImGui" defs["igTabItemLabelAndCloseButton"][1]["ov_cimguiname"] = "igTabItemLabelAndCloseButton" defs["igTabItemLabelAndCloseButton"][1]["ret"] = "void" @@ -26794,7 +28241,7 @@ defs["igTableBeginApplyRequests"][1]["call_args"] = "(table)" defs["igTableBeginApplyRequests"][1]["cimguiname"] = "igTableBeginApplyRequests" defs["igTableBeginApplyRequests"][1]["defaults"] = {} defs["igTableBeginApplyRequests"][1]["funcname"] = "TableBeginApplyRequests" -defs["igTableBeginApplyRequests"][1]["location"] = "imgui_internal:2918" +defs["igTableBeginApplyRequests"][1]["location"] = "imgui_internal:3269" defs["igTableBeginApplyRequests"][1]["namespace"] = "ImGui" defs["igTableBeginApplyRequests"][1]["ov_cimguiname"] = "igTableBeginApplyRequests" defs["igTableBeginApplyRequests"][1]["ret"] = "void" @@ -26816,13 +28263,32 @@ defs["igTableBeginCell"][1]["call_args"] = "(table,column_n)" defs["igTableBeginCell"][1]["cimguiname"] = "igTableBeginCell" defs["igTableBeginCell"][1]["defaults"] = {} defs["igTableBeginCell"][1]["funcname"] = "TableBeginCell" -defs["igTableBeginCell"][1]["location"] = "imgui_internal:2933" +defs["igTableBeginCell"][1]["location"] = "imgui_internal:3286" defs["igTableBeginCell"][1]["namespace"] = "ImGui" defs["igTableBeginCell"][1]["ov_cimguiname"] = "igTableBeginCell" defs["igTableBeginCell"][1]["ret"] = "void" defs["igTableBeginCell"][1]["signature"] = "(ImGuiTable*,int)" defs["igTableBeginCell"][1]["stname"] = "" defs["igTableBeginCell"]["(ImGuiTable*,int)"] = defs["igTableBeginCell"][1] +defs["igTableBeginContextMenuPopup"] = {} +defs["igTableBeginContextMenuPopup"][1] = {} +defs["igTableBeginContextMenuPopup"][1]["args"] = "(ImGuiTable* table)" +defs["igTableBeginContextMenuPopup"][1]["argsT"] = {} +defs["igTableBeginContextMenuPopup"][1]["argsT"][1] = {} +defs["igTableBeginContextMenuPopup"][1]["argsT"][1]["name"] = "table" +defs["igTableBeginContextMenuPopup"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableBeginContextMenuPopup"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableBeginContextMenuPopup"][1]["call_args"] = "(table)" +defs["igTableBeginContextMenuPopup"][1]["cimguiname"] = "igTableBeginContextMenuPopup" +defs["igTableBeginContextMenuPopup"][1]["defaults"] = {} +defs["igTableBeginContextMenuPopup"][1]["funcname"] = "TableBeginContextMenuPopup" +defs["igTableBeginContextMenuPopup"][1]["location"] = "imgui_internal:3276" +defs["igTableBeginContextMenuPopup"][1]["namespace"] = "ImGui" +defs["igTableBeginContextMenuPopup"][1]["ov_cimguiname"] = "igTableBeginContextMenuPopup" +defs["igTableBeginContextMenuPopup"][1]["ret"] = "bool" +defs["igTableBeginContextMenuPopup"][1]["signature"] = "(ImGuiTable*)" +defs["igTableBeginContextMenuPopup"][1]["stname"] = "" +defs["igTableBeginContextMenuPopup"]["(ImGuiTable*)"] = defs["igTableBeginContextMenuPopup"][1] defs["igTableBeginInitMemory"] = {} defs["igTableBeginInitMemory"][1] = {} defs["igTableBeginInitMemory"][1]["args"] = "(ImGuiTable* table,int columns_count)" @@ -26838,7 +28304,7 @@ defs["igTableBeginInitMemory"][1]["call_args"] = "(table,columns_count)" defs["igTableBeginInitMemory"][1]["cimguiname"] = "igTableBeginInitMemory" defs["igTableBeginInitMemory"][1]["defaults"] = {} defs["igTableBeginInitMemory"][1]["funcname"] = "TableBeginInitMemory" -defs["igTableBeginInitMemory"][1]["location"] = "imgui_internal:2917" +defs["igTableBeginInitMemory"][1]["location"] = "imgui_internal:3268" defs["igTableBeginInitMemory"][1]["namespace"] = "ImGui" defs["igTableBeginInitMemory"][1]["ov_cimguiname"] = "igTableBeginInitMemory" defs["igTableBeginInitMemory"][1]["ret"] = "void" @@ -26857,7 +28323,7 @@ defs["igTableBeginRow"][1]["call_args"] = "(table)" defs["igTableBeginRow"][1]["cimguiname"] = "igTableBeginRow" defs["igTableBeginRow"][1]["defaults"] = {} defs["igTableBeginRow"][1]["funcname"] = "TableBeginRow" -defs["igTableBeginRow"][1]["location"] = "imgui_internal:2931" +defs["igTableBeginRow"][1]["location"] = "imgui_internal:3284" defs["igTableBeginRow"][1]["namespace"] = "ImGui" defs["igTableBeginRow"][1]["ov_cimguiname"] = "igTableBeginRow" defs["igTableBeginRow"][1]["ret"] = "void" @@ -26876,7 +28342,7 @@ defs["igTableDrawBorders"][1]["call_args"] = "(table)" defs["igTableDrawBorders"][1]["cimguiname"] = "igTableDrawBorders" defs["igTableDrawBorders"][1]["defaults"] = {} defs["igTableDrawBorders"][1]["funcname"] = "TableDrawBorders" -defs["igTableDrawBorders"][1]["location"] = "imgui_internal:2923" +defs["igTableDrawBorders"][1]["location"] = "imgui_internal:3274" defs["igTableDrawBorders"][1]["namespace"] = "ImGui" defs["igTableDrawBorders"][1]["ov_cimguiname"] = "igTableDrawBorders" defs["igTableDrawBorders"][1]["ret"] = "void" @@ -26895,7 +28361,7 @@ defs["igTableDrawContextMenu"][1]["call_args"] = "(table)" defs["igTableDrawContextMenu"][1]["cimguiname"] = "igTableDrawContextMenu" defs["igTableDrawContextMenu"][1]["defaults"] = {} defs["igTableDrawContextMenu"][1]["funcname"] = "TableDrawContextMenu" -defs["igTableDrawContextMenu"][1]["location"] = "imgui_internal:2924" +defs["igTableDrawContextMenu"][1]["location"] = "imgui_internal:3275" defs["igTableDrawContextMenu"][1]["namespace"] = "ImGui" defs["igTableDrawContextMenu"][1]["ov_cimguiname"] = "igTableDrawContextMenu" defs["igTableDrawContextMenu"][1]["ret"] = "void" @@ -26914,7 +28380,7 @@ defs["igTableEndCell"][1]["call_args"] = "(table)" defs["igTableEndCell"][1]["cimguiname"] = "igTableEndCell" defs["igTableEndCell"][1]["defaults"] = {} defs["igTableEndCell"][1]["funcname"] = "TableEndCell" -defs["igTableEndCell"][1]["location"] = "imgui_internal:2934" +defs["igTableEndCell"][1]["location"] = "imgui_internal:3287" defs["igTableEndCell"][1]["namespace"] = "ImGui" defs["igTableEndCell"][1]["ov_cimguiname"] = "igTableEndCell" defs["igTableEndCell"][1]["ret"] = "void" @@ -26933,7 +28399,7 @@ defs["igTableEndRow"][1]["call_args"] = "(table)" defs["igTableEndRow"][1]["cimguiname"] = "igTableEndRow" defs["igTableEndRow"][1]["defaults"] = {} defs["igTableEndRow"][1]["funcname"] = "TableEndRow" -defs["igTableEndRow"][1]["location"] = "imgui_internal:2932" +defs["igTableEndRow"][1]["location"] = "imgui_internal:3285" defs["igTableEndRow"][1]["namespace"] = "ImGui" defs["igTableEndRow"][1]["ov_cimguiname"] = "igTableEndRow" defs["igTableEndRow"][1]["ret"] = "void" @@ -26952,7 +28418,7 @@ defs["igTableFindByID"][1]["call_args"] = "(id)" defs["igTableFindByID"][1]["cimguiname"] = "igTableFindByID" defs["igTableFindByID"][1]["defaults"] = {} defs["igTableFindByID"][1]["funcname"] = "TableFindByID" -defs["igTableFindByID"][1]["location"] = "imgui_internal:2915" +defs["igTableFindByID"][1]["location"] = "imgui_internal:3266" defs["igTableFindByID"][1]["namespace"] = "ImGui" defs["igTableFindByID"][1]["ov_cimguiname"] = "igTableFindByID" defs["igTableFindByID"][1]["ret"] = "ImGuiTable*" @@ -26974,7 +28440,7 @@ defs["igTableFixColumnSortDirection"][1]["call_args"] = "(table,column)" defs["igTableFixColumnSortDirection"][1]["cimguiname"] = "igTableFixColumnSortDirection" defs["igTableFixColumnSortDirection"][1]["defaults"] = {} defs["igTableFixColumnSortDirection"][1]["funcname"] = "TableFixColumnSortDirection" -defs["igTableFixColumnSortDirection"][1]["location"] = "imgui_internal:2929" +defs["igTableFixColumnSortDirection"][1]["location"] = "imgui_internal:3282" defs["igTableFixColumnSortDirection"][1]["namespace"] = "ImGui" defs["igTableFixColumnSortDirection"][1]["ov_cimguiname"] = "igTableFixColumnSortDirection" defs["igTableFixColumnSortDirection"][1]["ret"] = "void" @@ -26990,7 +28456,7 @@ defs["igTableGcCompactSettings"][1]["call_args"] = "()" defs["igTableGcCompactSettings"][1]["cimguiname"] = "igTableGcCompactSettings" defs["igTableGcCompactSettings"][1]["defaults"] = {} defs["igTableGcCompactSettings"][1]["funcname"] = "TableGcCompactSettings" -defs["igTableGcCompactSettings"][1]["location"] = "imgui_internal:2944" +defs["igTableGcCompactSettings"][1]["location"] = "imgui_internal:3297" defs["igTableGcCompactSettings"][1]["namespace"] = "ImGui" defs["igTableGcCompactSettings"][1]["ov_cimguiname"] = "igTableGcCompactSettings" defs["igTableGcCompactSettings"][1]["ret"] = "void" @@ -27009,9 +28475,9 @@ defs["igTableGcCompactTransientBuffers"][1]["call_args"] = "(table)" defs["igTableGcCompactTransientBuffers"][1]["cimguiname"] = "igTableGcCompactTransientBuffers" defs["igTableGcCompactTransientBuffers"][1]["defaults"] = {} defs["igTableGcCompactTransientBuffers"][1]["funcname"] = "TableGcCompactTransientBuffers" -defs["igTableGcCompactTransientBuffers"][1]["location"] = "imgui_internal:2942" +defs["igTableGcCompactTransientBuffers"][1]["location"] = "imgui_internal:3295" defs["igTableGcCompactTransientBuffers"][1]["namespace"] = "ImGui" -defs["igTableGcCompactTransientBuffers"][1]["ov_cimguiname"] = "igTableGcCompactTransientBuffersTablePtr" +defs["igTableGcCompactTransientBuffers"][1]["ov_cimguiname"] = "igTableGcCompactTransientBuffers_TablePtr" defs["igTableGcCompactTransientBuffers"][1]["ret"] = "void" defs["igTableGcCompactTransientBuffers"][1]["signature"] = "(ImGuiTable*)" defs["igTableGcCompactTransientBuffers"][1]["stname"] = "" @@ -27026,9 +28492,9 @@ defs["igTableGcCompactTransientBuffers"][2]["call_args"] = "(table)" defs["igTableGcCompactTransientBuffers"][2]["cimguiname"] = "igTableGcCompactTransientBuffers" defs["igTableGcCompactTransientBuffers"][2]["defaults"] = {} defs["igTableGcCompactTransientBuffers"][2]["funcname"] = "TableGcCompactTransientBuffers" -defs["igTableGcCompactTransientBuffers"][2]["location"] = "imgui_internal:2943" +defs["igTableGcCompactTransientBuffers"][2]["location"] = "imgui_internal:3296" defs["igTableGcCompactTransientBuffers"][2]["namespace"] = "ImGui" -defs["igTableGcCompactTransientBuffers"][2]["ov_cimguiname"] = "igTableGcCompactTransientBuffersTableTempDataPtr" +defs["igTableGcCompactTransientBuffers"][2]["ov_cimguiname"] = "igTableGcCompactTransientBuffers_TableTempDataPtr" defs["igTableGcCompactTransientBuffers"][2]["ret"] = "void" defs["igTableGcCompactTransientBuffers"][2]["signature"] = "(ImGuiTableTempData*)" defs["igTableGcCompactTransientBuffers"][2]["stname"] = "" @@ -27046,7 +28512,7 @@ defs["igTableGetBoundSettings"][1]["call_args"] = "(table)" defs["igTableGetBoundSettings"][1]["cimguiname"] = "igTableGetBoundSettings" defs["igTableGetBoundSettings"][1]["defaults"] = {} defs["igTableGetBoundSettings"][1]["funcname"] = "TableGetBoundSettings" -defs["igTableGetBoundSettings"][1]["location"] = "imgui_internal:2950" +defs["igTableGetBoundSettings"][1]["location"] = "imgui_internal:3303" defs["igTableGetBoundSettings"][1]["namespace"] = "ImGui" defs["igTableGetBoundSettings"][1]["ov_cimguiname"] = "igTableGetBoundSettings" defs["igTableGetBoundSettings"][1]["ret"] = "ImGuiTableSettings*" @@ -27071,7 +28537,7 @@ defs["igTableGetCellBgRect"][1]["call_args"] = "(table,column_n)" defs["igTableGetCellBgRect"][1]["cimguiname"] = "igTableGetCellBgRect" defs["igTableGetCellBgRect"][1]["defaults"] = {} defs["igTableGetCellBgRect"][1]["funcname"] = "TableGetCellBgRect" -defs["igTableGetCellBgRect"][1]["location"] = "imgui_internal:2935" +defs["igTableGetCellBgRect"][1]["location"] = "imgui_internal:3288" defs["igTableGetCellBgRect"][1]["namespace"] = "ImGui" defs["igTableGetCellBgRect"][1]["nonUDT"] = 1 defs["igTableGetCellBgRect"][1]["ov_cimguiname"] = "igTableGetCellBgRect" @@ -27088,7 +28554,7 @@ defs["igTableGetColumnCount"][1]["call_args"] = "()" defs["igTableGetColumnCount"][1]["cimguiname"] = "igTableGetColumnCount" defs["igTableGetColumnCount"][1]["defaults"] = {} defs["igTableGetColumnCount"][1]["funcname"] = "TableGetColumnCount" -defs["igTableGetColumnCount"][1]["location"] = "imgui:777" +defs["igTableGetColumnCount"][1]["location"] = "imgui:774" defs["igTableGetColumnCount"][1]["namespace"] = "ImGui" defs["igTableGetColumnCount"][1]["ov_cimguiname"] = "igTableGetColumnCount" defs["igTableGetColumnCount"][1]["ret"] = "int" @@ -27108,7 +28574,7 @@ defs["igTableGetColumnFlags"][1]["cimguiname"] = "igTableGetColumnFlags" defs["igTableGetColumnFlags"][1]["defaults"] = {} defs["igTableGetColumnFlags"][1]["defaults"]["column_n"] = "-1" defs["igTableGetColumnFlags"][1]["funcname"] = "TableGetColumnFlags" -defs["igTableGetColumnFlags"][1]["location"] = "imgui:781" +defs["igTableGetColumnFlags"][1]["location"] = "imgui:778" defs["igTableGetColumnFlags"][1]["namespace"] = "ImGui" defs["igTableGetColumnFlags"][1]["ov_cimguiname"] = "igTableGetColumnFlags" defs["igTableGetColumnFlags"][1]["ret"] = "ImGuiTableColumnFlags" @@ -27124,7 +28590,7 @@ defs["igTableGetColumnIndex"][1]["call_args"] = "()" defs["igTableGetColumnIndex"][1]["cimguiname"] = "igTableGetColumnIndex" defs["igTableGetColumnIndex"][1]["defaults"] = {} defs["igTableGetColumnIndex"][1]["funcname"] = "TableGetColumnIndex" -defs["igTableGetColumnIndex"][1]["location"] = "imgui:778" +defs["igTableGetColumnIndex"][1]["location"] = "imgui:775" defs["igTableGetColumnIndex"][1]["namespace"] = "ImGui" defs["igTableGetColumnIndex"][1]["ov_cimguiname"] = "igTableGetColumnIndex" defs["igTableGetColumnIndex"][1]["ret"] = "int" @@ -27144,9 +28610,9 @@ defs["igTableGetColumnName"][1]["cimguiname"] = "igTableGetColumnName" defs["igTableGetColumnName"][1]["defaults"] = {} defs["igTableGetColumnName"][1]["defaults"]["column_n"] = "-1" defs["igTableGetColumnName"][1]["funcname"] = "TableGetColumnName" -defs["igTableGetColumnName"][1]["location"] = "imgui:780" +defs["igTableGetColumnName"][1]["location"] = "imgui:777" defs["igTableGetColumnName"][1]["namespace"] = "ImGui" -defs["igTableGetColumnName"][1]["ov_cimguiname"] = "igTableGetColumnNameInt" +defs["igTableGetColumnName"][1]["ov_cimguiname"] = "igTableGetColumnName_Int" defs["igTableGetColumnName"][1]["ret"] = "const char*" defs["igTableGetColumnName"][1]["signature"] = "(int)" defs["igTableGetColumnName"][1]["stname"] = "" @@ -27164,9 +28630,9 @@ defs["igTableGetColumnName"][2]["call_args"] = "(table,column_n)" defs["igTableGetColumnName"][2]["cimguiname"] = "igTableGetColumnName" defs["igTableGetColumnName"][2]["defaults"] = {} defs["igTableGetColumnName"][2]["funcname"] = "TableGetColumnName" -defs["igTableGetColumnName"][2]["location"] = "imgui_internal:2936" +defs["igTableGetColumnName"][2]["location"] = "imgui_internal:3289" defs["igTableGetColumnName"][2]["namespace"] = "ImGui" -defs["igTableGetColumnName"][2]["ov_cimguiname"] = "igTableGetColumnNameTablePtr" +defs["igTableGetColumnName"][2]["ov_cimguiname"] = "igTableGetColumnName_TablePtr" defs["igTableGetColumnName"][2]["ret"] = "const char*" defs["igTableGetColumnName"][2]["signature"] = "(const ImGuiTable*,int)" defs["igTableGetColumnName"][2]["stname"] = "" @@ -27184,7 +28650,7 @@ defs["igTableGetColumnNextSortDirection"][1]["call_args"] = "(column)" defs["igTableGetColumnNextSortDirection"][1]["cimguiname"] = "igTableGetColumnNextSortDirection" defs["igTableGetColumnNextSortDirection"][1]["defaults"] = {} defs["igTableGetColumnNextSortDirection"][1]["funcname"] = "TableGetColumnNextSortDirection" -defs["igTableGetColumnNextSortDirection"][1]["location"] = "imgui_internal:2928" +defs["igTableGetColumnNextSortDirection"][1]["location"] = "imgui_internal:3281" defs["igTableGetColumnNextSortDirection"][1]["namespace"] = "ImGui" defs["igTableGetColumnNextSortDirection"][1]["ov_cimguiname"] = "igTableGetColumnNextSortDirection" defs["igTableGetColumnNextSortDirection"][1]["ret"] = "ImGuiSortDirection" @@ -27210,7 +28676,7 @@ defs["igTableGetColumnResizeID"][1]["cimguiname"] = "igTableGetColumnResizeID" defs["igTableGetColumnResizeID"][1]["defaults"] = {} defs["igTableGetColumnResizeID"][1]["defaults"]["instance_no"] = "0" defs["igTableGetColumnResizeID"][1]["funcname"] = "TableGetColumnResizeID" -defs["igTableGetColumnResizeID"][1]["location"] = "imgui_internal:2937" +defs["igTableGetColumnResizeID"][1]["location"] = "imgui_internal:3290" defs["igTableGetColumnResizeID"][1]["namespace"] = "ImGui" defs["igTableGetColumnResizeID"][1]["ov_cimguiname"] = "igTableGetColumnResizeID" defs["igTableGetColumnResizeID"][1]["ret"] = "ImGuiID" @@ -27232,7 +28698,7 @@ defs["igTableGetColumnWidthAuto"][1]["call_args"] = "(table,column)" defs["igTableGetColumnWidthAuto"][1]["cimguiname"] = "igTableGetColumnWidthAuto" defs["igTableGetColumnWidthAuto"][1]["defaults"] = {} defs["igTableGetColumnWidthAuto"][1]["funcname"] = "TableGetColumnWidthAuto" -defs["igTableGetColumnWidthAuto"][1]["location"] = "imgui_internal:2930" +defs["igTableGetColumnWidthAuto"][1]["location"] = "imgui_internal:3283" defs["igTableGetColumnWidthAuto"][1]["namespace"] = "ImGui" defs["igTableGetColumnWidthAuto"][1]["ov_cimguiname"] = "igTableGetColumnWidthAuto" defs["igTableGetColumnWidthAuto"][1]["ret"] = "float" @@ -27248,7 +28714,7 @@ defs["igTableGetHeaderRowHeight"][1]["call_args"] = "()" defs["igTableGetHeaderRowHeight"][1]["cimguiname"] = "igTableGetHeaderRowHeight" defs["igTableGetHeaderRowHeight"][1]["defaults"] = {} defs["igTableGetHeaderRowHeight"][1]["funcname"] = "TableGetHeaderRowHeight" -defs["igTableGetHeaderRowHeight"][1]["location"] = "imgui_internal:2909" +defs["igTableGetHeaderRowHeight"][1]["location"] = "imgui_internal:3260" defs["igTableGetHeaderRowHeight"][1]["namespace"] = "ImGui" defs["igTableGetHeaderRowHeight"][1]["ov_cimguiname"] = "igTableGetHeaderRowHeight" defs["igTableGetHeaderRowHeight"][1]["ret"] = "float" @@ -27264,13 +28730,35 @@ defs["igTableGetHoveredColumn"][1]["call_args"] = "()" defs["igTableGetHoveredColumn"][1]["cimguiname"] = "igTableGetHoveredColumn" defs["igTableGetHoveredColumn"][1]["defaults"] = {} defs["igTableGetHoveredColumn"][1]["funcname"] = "TableGetHoveredColumn" -defs["igTableGetHoveredColumn"][1]["location"] = "imgui_internal:2908" +defs["igTableGetHoveredColumn"][1]["location"] = "imgui_internal:3259" defs["igTableGetHoveredColumn"][1]["namespace"] = "ImGui" defs["igTableGetHoveredColumn"][1]["ov_cimguiname"] = "igTableGetHoveredColumn" defs["igTableGetHoveredColumn"][1]["ret"] = "int" defs["igTableGetHoveredColumn"][1]["signature"] = "()" defs["igTableGetHoveredColumn"][1]["stname"] = "" defs["igTableGetHoveredColumn"]["()"] = defs["igTableGetHoveredColumn"][1] +defs["igTableGetInstanceData"] = {} +defs["igTableGetInstanceData"][1] = {} +defs["igTableGetInstanceData"][1]["args"] = "(ImGuiTable* table,int instance_no)" +defs["igTableGetInstanceData"][1]["argsT"] = {} +defs["igTableGetInstanceData"][1]["argsT"][1] = {} +defs["igTableGetInstanceData"][1]["argsT"][1]["name"] = "table" +defs["igTableGetInstanceData"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableGetInstanceData"][1]["argsT"][2] = {} +defs["igTableGetInstanceData"][1]["argsT"][2]["name"] = "instance_no" +defs["igTableGetInstanceData"][1]["argsT"][2]["type"] = "int" +defs["igTableGetInstanceData"][1]["argsoriginal"] = "(ImGuiTable* table,int instance_no)" +defs["igTableGetInstanceData"][1]["call_args"] = "(table,instance_no)" +defs["igTableGetInstanceData"][1]["cimguiname"] = "igTableGetInstanceData" +defs["igTableGetInstanceData"][1]["defaults"] = {} +defs["igTableGetInstanceData"][1]["funcname"] = "TableGetInstanceData" +defs["igTableGetInstanceData"][1]["location"] = "imgui_internal:3278" +defs["igTableGetInstanceData"][1]["namespace"] = "ImGui" +defs["igTableGetInstanceData"][1]["ov_cimguiname"] = "igTableGetInstanceData" +defs["igTableGetInstanceData"][1]["ret"] = "ImGuiTableInstanceData*" +defs["igTableGetInstanceData"][1]["signature"] = "(ImGuiTable*,int)" +defs["igTableGetInstanceData"][1]["stname"] = "" +defs["igTableGetInstanceData"]["(ImGuiTable*,int)"] = defs["igTableGetInstanceData"][1] defs["igTableGetMaxColumnWidth"] = {} defs["igTableGetMaxColumnWidth"][1] = {} defs["igTableGetMaxColumnWidth"][1]["args"] = "(const ImGuiTable* table,int column_n)" @@ -27286,7 +28774,7 @@ defs["igTableGetMaxColumnWidth"][1]["call_args"] = "(table,column_n)" defs["igTableGetMaxColumnWidth"][1]["cimguiname"] = "igTableGetMaxColumnWidth" defs["igTableGetMaxColumnWidth"][1]["defaults"] = {} defs["igTableGetMaxColumnWidth"][1]["funcname"] = "TableGetMaxColumnWidth" -defs["igTableGetMaxColumnWidth"][1]["location"] = "imgui_internal:2938" +defs["igTableGetMaxColumnWidth"][1]["location"] = "imgui_internal:3291" defs["igTableGetMaxColumnWidth"][1]["namespace"] = "ImGui" defs["igTableGetMaxColumnWidth"][1]["ov_cimguiname"] = "igTableGetMaxColumnWidth" defs["igTableGetMaxColumnWidth"][1]["ret"] = "float" @@ -27302,7 +28790,7 @@ defs["igTableGetRowIndex"][1]["call_args"] = "()" defs["igTableGetRowIndex"][1]["cimguiname"] = "igTableGetRowIndex" defs["igTableGetRowIndex"][1]["defaults"] = {} defs["igTableGetRowIndex"][1]["funcname"] = "TableGetRowIndex" -defs["igTableGetRowIndex"][1]["location"] = "imgui:779" +defs["igTableGetRowIndex"][1]["location"] = "imgui:776" defs["igTableGetRowIndex"][1]["namespace"] = "ImGui" defs["igTableGetRowIndex"][1]["ov_cimguiname"] = "igTableGetRowIndex" defs["igTableGetRowIndex"][1]["ret"] = "int" @@ -27372,7 +28860,7 @@ defs["igTableLoadSettings"][1]["call_args"] = "(table)" defs["igTableLoadSettings"][1]["cimguiname"] = "igTableLoadSettings" defs["igTableLoadSettings"][1]["defaults"] = {} defs["igTableLoadSettings"][1]["funcname"] = "TableLoadSettings" -defs["igTableLoadSettings"][1]["location"] = "imgui_internal:2947" +defs["igTableLoadSettings"][1]["location"] = "imgui_internal:3300" defs["igTableLoadSettings"][1]["namespace"] = "ImGui" defs["igTableLoadSettings"][1]["ov_cimguiname"] = "igTableLoadSettings" defs["igTableLoadSettings"][1]["ret"] = "void" @@ -27391,7 +28879,7 @@ defs["igTableMergeDrawChannels"][1]["call_args"] = "(table)" defs["igTableMergeDrawChannels"][1]["cimguiname"] = "igTableMergeDrawChannels" defs["igTableMergeDrawChannels"][1]["defaults"] = {} defs["igTableMergeDrawChannels"][1]["funcname"] = "TableMergeDrawChannels" -defs["igTableMergeDrawChannels"][1]["location"] = "imgui_internal:2925" +defs["igTableMergeDrawChannels"][1]["location"] = "imgui_internal:3277" defs["igTableMergeDrawChannels"][1]["namespace"] = "ImGui" defs["igTableMergeDrawChannels"][1]["ov_cimguiname"] = "igTableMergeDrawChannels" defs["igTableMergeDrawChannels"][1]["ret"] = "void" @@ -27451,7 +28939,7 @@ defs["igTableOpenContextMenu"][1]["cimguiname"] = "igTableOpenContextMenu" defs["igTableOpenContextMenu"][1]["defaults"] = {} defs["igTableOpenContextMenu"][1]["defaults"]["column_n"] = "-1" defs["igTableOpenContextMenu"][1]["funcname"] = "TableOpenContextMenu" -defs["igTableOpenContextMenu"][1]["location"] = "imgui_internal:2905" +defs["igTableOpenContextMenu"][1]["location"] = "imgui_internal:3256" defs["igTableOpenContextMenu"][1]["namespace"] = "ImGui" defs["igTableOpenContextMenu"][1]["ov_cimguiname"] = "igTableOpenContextMenu" defs["igTableOpenContextMenu"][1]["ret"] = "void" @@ -27467,7 +28955,7 @@ defs["igTablePopBackgroundChannel"][1]["call_args"] = "()" defs["igTablePopBackgroundChannel"][1]["cimguiname"] = "igTablePopBackgroundChannel" defs["igTablePopBackgroundChannel"][1]["defaults"] = {} defs["igTablePopBackgroundChannel"][1]["funcname"] = "TablePopBackgroundChannel" -defs["igTablePopBackgroundChannel"][1]["location"] = "imgui_internal:2911" +defs["igTablePopBackgroundChannel"][1]["location"] = "imgui_internal:3262" defs["igTablePopBackgroundChannel"][1]["namespace"] = "ImGui" defs["igTablePopBackgroundChannel"][1]["ov_cimguiname"] = "igTablePopBackgroundChannel" defs["igTablePopBackgroundChannel"][1]["ret"] = "void" @@ -27483,7 +28971,7 @@ defs["igTablePushBackgroundChannel"][1]["call_args"] = "()" defs["igTablePushBackgroundChannel"][1]["cimguiname"] = "igTablePushBackgroundChannel" defs["igTablePushBackgroundChannel"][1]["defaults"] = {} defs["igTablePushBackgroundChannel"][1]["funcname"] = "TablePushBackgroundChannel" -defs["igTablePushBackgroundChannel"][1]["location"] = "imgui_internal:2910" +defs["igTablePushBackgroundChannel"][1]["location"] = "imgui_internal:3261" defs["igTablePushBackgroundChannel"][1]["namespace"] = "ImGui" defs["igTablePushBackgroundChannel"][1]["ov_cimguiname"] = "igTablePushBackgroundChannel" defs["igTablePushBackgroundChannel"][1]["ret"] = "void" @@ -27502,7 +28990,7 @@ defs["igTableRemove"][1]["call_args"] = "(table)" defs["igTableRemove"][1]["cimguiname"] = "igTableRemove" defs["igTableRemove"][1]["defaults"] = {} defs["igTableRemove"][1]["funcname"] = "TableRemove" -defs["igTableRemove"][1]["location"] = "imgui_internal:2941" +defs["igTableRemove"][1]["location"] = "imgui_internal:3294" defs["igTableRemove"][1]["namespace"] = "ImGui" defs["igTableRemove"][1]["ov_cimguiname"] = "igTableRemove" defs["igTableRemove"][1]["ret"] = "void" @@ -27521,7 +29009,7 @@ defs["igTableResetSettings"][1]["call_args"] = "(table)" defs["igTableResetSettings"][1]["cimguiname"] = "igTableResetSettings" defs["igTableResetSettings"][1]["defaults"] = {} defs["igTableResetSettings"][1]["funcname"] = "TableResetSettings" -defs["igTableResetSettings"][1]["location"] = "imgui_internal:2949" +defs["igTableResetSettings"][1]["location"] = "imgui_internal:3302" defs["igTableResetSettings"][1]["namespace"] = "ImGui" defs["igTableResetSettings"][1]["ov_cimguiname"] = "igTableResetSettings" defs["igTableResetSettings"][1]["ret"] = "void" @@ -27540,7 +29028,7 @@ defs["igTableSaveSettings"][1]["call_args"] = "(table)" defs["igTableSaveSettings"][1]["cimguiname"] = "igTableSaveSettings" defs["igTableSaveSettings"][1]["defaults"] = {} defs["igTableSaveSettings"][1]["funcname"] = "TableSaveSettings" -defs["igTableSaveSettings"][1]["location"] = "imgui_internal:2948" +defs["igTableSaveSettings"][1]["location"] = "imgui_internal:3301" defs["igTableSaveSettings"][1]["namespace"] = "ImGui" defs["igTableSaveSettings"][1]["ov_cimguiname"] = "igTableSaveSettings" defs["igTableSaveSettings"][1]["ret"] = "void" @@ -27566,7 +29054,7 @@ defs["igTableSetBgColor"][1]["cimguiname"] = "igTableSetBgColor" defs["igTableSetBgColor"][1]["defaults"] = {} defs["igTableSetBgColor"][1]["defaults"]["column_n"] = "-1" defs["igTableSetBgColor"][1]["funcname"] = "TableSetBgColor" -defs["igTableSetBgColor"][1]["location"] = "imgui:783" +defs["igTableSetBgColor"][1]["location"] = "imgui:780" defs["igTableSetBgColor"][1]["namespace"] = "ImGui" defs["igTableSetBgColor"][1]["ov_cimguiname"] = "igTableSetBgColor" defs["igTableSetBgColor"][1]["ret"] = "void" @@ -27588,7 +29076,7 @@ defs["igTableSetColumnEnabled"][1]["call_args"] = "(column_n,v)" defs["igTableSetColumnEnabled"][1]["cimguiname"] = "igTableSetColumnEnabled" defs["igTableSetColumnEnabled"][1]["defaults"] = {} defs["igTableSetColumnEnabled"][1]["funcname"] = "TableSetColumnEnabled" -defs["igTableSetColumnEnabled"][1]["location"] = "imgui:782" +defs["igTableSetColumnEnabled"][1]["location"] = "imgui:779" defs["igTableSetColumnEnabled"][1]["namespace"] = "ImGui" defs["igTableSetColumnEnabled"][1]["ov_cimguiname"] = "igTableSetColumnEnabled" defs["igTableSetColumnEnabled"][1]["ret"] = "void" @@ -27632,7 +29120,7 @@ defs["igTableSetColumnSortDirection"][1]["call_args"] = "(column_n,sort_directio defs["igTableSetColumnSortDirection"][1]["cimguiname"] = "igTableSetColumnSortDirection" defs["igTableSetColumnSortDirection"][1]["defaults"] = {} defs["igTableSetColumnSortDirection"][1]["funcname"] = "TableSetColumnSortDirection" -defs["igTableSetColumnSortDirection"][1]["location"] = "imgui_internal:2907" +defs["igTableSetColumnSortDirection"][1]["location"] = "imgui_internal:3258" defs["igTableSetColumnSortDirection"][1]["namespace"] = "ImGui" defs["igTableSetColumnSortDirection"][1]["ov_cimguiname"] = "igTableSetColumnSortDirection" defs["igTableSetColumnSortDirection"][1]["ret"] = "void" @@ -27654,7 +29142,7 @@ defs["igTableSetColumnWidth"][1]["call_args"] = "(column_n,width)" defs["igTableSetColumnWidth"][1]["cimguiname"] = "igTableSetColumnWidth" defs["igTableSetColumnWidth"][1]["defaults"] = {} defs["igTableSetColumnWidth"][1]["funcname"] = "TableSetColumnWidth" -defs["igTableSetColumnWidth"][1]["location"] = "imgui_internal:2906" +defs["igTableSetColumnWidth"][1]["location"] = "imgui_internal:3257" defs["igTableSetColumnWidth"][1]["namespace"] = "ImGui" defs["igTableSetColumnWidth"][1]["ov_cimguiname"] = "igTableSetColumnWidth" defs["igTableSetColumnWidth"][1]["ret"] = "void" @@ -27673,7 +29161,7 @@ defs["igTableSetColumnWidthAutoAll"][1]["call_args"] = "(table)" defs["igTableSetColumnWidthAutoAll"][1]["cimguiname"] = "igTableSetColumnWidthAutoAll" defs["igTableSetColumnWidthAutoAll"][1]["defaults"] = {} defs["igTableSetColumnWidthAutoAll"][1]["funcname"] = "TableSetColumnWidthAutoAll" -defs["igTableSetColumnWidthAutoAll"][1]["location"] = "imgui_internal:2940" +defs["igTableSetColumnWidthAutoAll"][1]["location"] = "imgui_internal:3293" defs["igTableSetColumnWidthAutoAll"][1]["namespace"] = "ImGui" defs["igTableSetColumnWidthAutoAll"][1]["ov_cimguiname"] = "igTableSetColumnWidthAutoAll" defs["igTableSetColumnWidthAutoAll"][1]["ret"] = "void" @@ -27695,13 +29183,29 @@ defs["igTableSetColumnWidthAutoSingle"][1]["call_args"] = "(table,column_n)" defs["igTableSetColumnWidthAutoSingle"][1]["cimguiname"] = "igTableSetColumnWidthAutoSingle" defs["igTableSetColumnWidthAutoSingle"][1]["defaults"] = {} defs["igTableSetColumnWidthAutoSingle"][1]["funcname"] = "TableSetColumnWidthAutoSingle" -defs["igTableSetColumnWidthAutoSingle"][1]["location"] = "imgui_internal:2939" +defs["igTableSetColumnWidthAutoSingle"][1]["location"] = "imgui_internal:3292" defs["igTableSetColumnWidthAutoSingle"][1]["namespace"] = "ImGui" defs["igTableSetColumnWidthAutoSingle"][1]["ov_cimguiname"] = "igTableSetColumnWidthAutoSingle" defs["igTableSetColumnWidthAutoSingle"][1]["ret"] = "void" defs["igTableSetColumnWidthAutoSingle"][1]["signature"] = "(ImGuiTable*,int)" defs["igTableSetColumnWidthAutoSingle"][1]["stname"] = "" defs["igTableSetColumnWidthAutoSingle"]["(ImGuiTable*,int)"] = defs["igTableSetColumnWidthAutoSingle"][1] +defs["igTableSettingsAddSettingsHandler"] = {} +defs["igTableSettingsAddSettingsHandler"][1] = {} +defs["igTableSettingsAddSettingsHandler"][1]["args"] = "()" +defs["igTableSettingsAddSettingsHandler"][1]["argsT"] = {} +defs["igTableSettingsAddSettingsHandler"][1]["argsoriginal"] = "()" +defs["igTableSettingsAddSettingsHandler"][1]["call_args"] = "()" +defs["igTableSettingsAddSettingsHandler"][1]["cimguiname"] = "igTableSettingsAddSettingsHandler" +defs["igTableSettingsAddSettingsHandler"][1]["defaults"] = {} +defs["igTableSettingsAddSettingsHandler"][1]["funcname"] = "TableSettingsAddSettingsHandler" +defs["igTableSettingsAddSettingsHandler"][1]["location"] = "imgui_internal:3304" +defs["igTableSettingsAddSettingsHandler"][1]["namespace"] = "ImGui" +defs["igTableSettingsAddSettingsHandler"][1]["ov_cimguiname"] = "igTableSettingsAddSettingsHandler" +defs["igTableSettingsAddSettingsHandler"][1]["ret"] = "void" +defs["igTableSettingsAddSettingsHandler"][1]["signature"] = "()" +defs["igTableSettingsAddSettingsHandler"][1]["stname"] = "" +defs["igTableSettingsAddSettingsHandler"]["()"] = defs["igTableSettingsAddSettingsHandler"][1] defs["igTableSettingsCreate"] = {} defs["igTableSettingsCreate"][1] = {} defs["igTableSettingsCreate"][1]["args"] = "(ImGuiID id,int columns_count)" @@ -27717,7 +29221,7 @@ defs["igTableSettingsCreate"][1]["call_args"] = "(id,columns_count)" defs["igTableSettingsCreate"][1]["cimguiname"] = "igTableSettingsCreate" defs["igTableSettingsCreate"][1]["defaults"] = {} defs["igTableSettingsCreate"][1]["funcname"] = "TableSettingsCreate" -defs["igTableSettingsCreate"][1]["location"] = "imgui_internal:2952" +defs["igTableSettingsCreate"][1]["location"] = "imgui_internal:3305" defs["igTableSettingsCreate"][1]["namespace"] = "ImGui" defs["igTableSettingsCreate"][1]["ov_cimguiname"] = "igTableSettingsCreate" defs["igTableSettingsCreate"][1]["ret"] = "ImGuiTableSettings*" @@ -27736,32 +29240,13 @@ defs["igTableSettingsFindByID"][1]["call_args"] = "(id)" defs["igTableSettingsFindByID"][1]["cimguiname"] = "igTableSettingsFindByID" defs["igTableSettingsFindByID"][1]["defaults"] = {} defs["igTableSettingsFindByID"][1]["funcname"] = "TableSettingsFindByID" -defs["igTableSettingsFindByID"][1]["location"] = "imgui_internal:2953" +defs["igTableSettingsFindByID"][1]["location"] = "imgui_internal:3306" defs["igTableSettingsFindByID"][1]["namespace"] = "ImGui" defs["igTableSettingsFindByID"][1]["ov_cimguiname"] = "igTableSettingsFindByID" defs["igTableSettingsFindByID"][1]["ret"] = "ImGuiTableSettings*" defs["igTableSettingsFindByID"][1]["signature"] = "(ImGuiID)" defs["igTableSettingsFindByID"][1]["stname"] = "" defs["igTableSettingsFindByID"]["(ImGuiID)"] = defs["igTableSettingsFindByID"][1] -defs["igTableSettingsInstallHandler"] = {} -defs["igTableSettingsInstallHandler"][1] = {} -defs["igTableSettingsInstallHandler"][1]["args"] = "(ImGuiContext* context)" -defs["igTableSettingsInstallHandler"][1]["argsT"] = {} -defs["igTableSettingsInstallHandler"][1]["argsT"][1] = {} -defs["igTableSettingsInstallHandler"][1]["argsT"][1]["name"] = "context" -defs["igTableSettingsInstallHandler"][1]["argsT"][1]["type"] = "ImGuiContext*" -defs["igTableSettingsInstallHandler"][1]["argsoriginal"] = "(ImGuiContext* context)" -defs["igTableSettingsInstallHandler"][1]["call_args"] = "(context)" -defs["igTableSettingsInstallHandler"][1]["cimguiname"] = "igTableSettingsInstallHandler" -defs["igTableSettingsInstallHandler"][1]["defaults"] = {} -defs["igTableSettingsInstallHandler"][1]["funcname"] = "TableSettingsInstallHandler" -defs["igTableSettingsInstallHandler"][1]["location"] = "imgui_internal:2951" -defs["igTableSettingsInstallHandler"][1]["namespace"] = "ImGui" -defs["igTableSettingsInstallHandler"][1]["ov_cimguiname"] = "igTableSettingsInstallHandler" -defs["igTableSettingsInstallHandler"][1]["ret"] = "void" -defs["igTableSettingsInstallHandler"][1]["signature"] = "(ImGuiContext*)" -defs["igTableSettingsInstallHandler"][1]["stname"] = "" -defs["igTableSettingsInstallHandler"]["(ImGuiContext*)"] = defs["igTableSettingsInstallHandler"][1] defs["igTableSetupColumn"] = {} defs["igTableSetupColumn"][1] = {} defs["igTableSetupColumn"][1]["args"] = "(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)" @@ -27805,7 +29290,7 @@ defs["igTableSetupDrawChannels"][1]["call_args"] = "(table)" defs["igTableSetupDrawChannels"][1]["cimguiname"] = "igTableSetupDrawChannels" defs["igTableSetupDrawChannels"][1]["defaults"] = {} defs["igTableSetupDrawChannels"][1]["funcname"] = "TableSetupDrawChannels" -defs["igTableSetupDrawChannels"][1]["location"] = "imgui_internal:2919" +defs["igTableSetupDrawChannels"][1]["location"] = "imgui_internal:3270" defs["igTableSetupDrawChannels"][1]["namespace"] = "ImGui" defs["igTableSetupDrawChannels"][1]["ov_cimguiname"] = "igTableSetupDrawChannels" defs["igTableSetupDrawChannels"][1]["ret"] = "void" @@ -27846,7 +29331,7 @@ defs["igTableSortSpecsBuild"][1]["call_args"] = "(table)" defs["igTableSortSpecsBuild"][1]["cimguiname"] = "igTableSortSpecsBuild" defs["igTableSortSpecsBuild"][1]["defaults"] = {} defs["igTableSortSpecsBuild"][1]["funcname"] = "TableSortSpecsBuild" -defs["igTableSortSpecsBuild"][1]["location"] = "imgui_internal:2927" +defs["igTableSortSpecsBuild"][1]["location"] = "imgui_internal:3280" defs["igTableSortSpecsBuild"][1]["namespace"] = "ImGui" defs["igTableSortSpecsBuild"][1]["ov_cimguiname"] = "igTableSortSpecsBuild" defs["igTableSortSpecsBuild"][1]["ret"] = "void" @@ -27865,7 +29350,7 @@ defs["igTableSortSpecsSanitize"][1]["call_args"] = "(table)" defs["igTableSortSpecsSanitize"][1]["cimguiname"] = "igTableSortSpecsSanitize" defs["igTableSortSpecsSanitize"][1]["defaults"] = {} defs["igTableSortSpecsSanitize"][1]["funcname"] = "TableSortSpecsSanitize" -defs["igTableSortSpecsSanitize"][1]["location"] = "imgui_internal:2926" +defs["igTableSortSpecsSanitize"][1]["location"] = "imgui_internal:3279" defs["igTableSortSpecsSanitize"][1]["namespace"] = "ImGui" defs["igTableSortSpecsSanitize"][1]["ov_cimguiname"] = "igTableSortSpecsSanitize" defs["igTableSortSpecsSanitize"][1]["ret"] = "void" @@ -27884,7 +29369,7 @@ defs["igTableUpdateBorders"][1]["call_args"] = "(table)" defs["igTableUpdateBorders"][1]["cimguiname"] = "igTableUpdateBorders" defs["igTableUpdateBorders"][1]["defaults"] = {} defs["igTableUpdateBorders"][1]["funcname"] = "TableUpdateBorders" -defs["igTableUpdateBorders"][1]["location"] = "imgui_internal:2921" +defs["igTableUpdateBorders"][1]["location"] = "imgui_internal:3272" defs["igTableUpdateBorders"][1]["namespace"] = "ImGui" defs["igTableUpdateBorders"][1]["ov_cimguiname"] = "igTableUpdateBorders" defs["igTableUpdateBorders"][1]["ret"] = "void" @@ -27903,7 +29388,7 @@ defs["igTableUpdateColumnsWeightFromWidth"][1]["call_args"] = "(table)" defs["igTableUpdateColumnsWeightFromWidth"][1]["cimguiname"] = "igTableUpdateColumnsWeightFromWidth" defs["igTableUpdateColumnsWeightFromWidth"][1]["defaults"] = {} defs["igTableUpdateColumnsWeightFromWidth"][1]["funcname"] = "TableUpdateColumnsWeightFromWidth" -defs["igTableUpdateColumnsWeightFromWidth"][1]["location"] = "imgui_internal:2922" +defs["igTableUpdateColumnsWeightFromWidth"][1]["location"] = "imgui_internal:3273" defs["igTableUpdateColumnsWeightFromWidth"][1]["namespace"] = "ImGui" defs["igTableUpdateColumnsWeightFromWidth"][1]["ov_cimguiname"] = "igTableUpdateColumnsWeightFromWidth" defs["igTableUpdateColumnsWeightFromWidth"][1]["ret"] = "void" @@ -27922,7 +29407,7 @@ defs["igTableUpdateLayout"][1]["call_args"] = "(table)" defs["igTableUpdateLayout"][1]["cimguiname"] = "igTableUpdateLayout" defs["igTableUpdateLayout"][1]["defaults"] = {} defs["igTableUpdateLayout"][1]["funcname"] = "TableUpdateLayout" -defs["igTableUpdateLayout"][1]["location"] = "imgui_internal:2920" +defs["igTableUpdateLayout"][1]["location"] = "imgui_internal:3271" defs["igTableUpdateLayout"][1]["namespace"] = "ImGui" defs["igTableUpdateLayout"][1]["ov_cimguiname"] = "igTableUpdateLayout" defs["igTableUpdateLayout"][1]["ret"] = "void" @@ -27941,7 +29426,7 @@ defs["igTempInputIsActive"][1]["call_args"] = "(id)" defs["igTempInputIsActive"][1]["cimguiname"] = "igTempInputIsActive" defs["igTempInputIsActive"][1]["defaults"] = {} defs["igTempInputIsActive"][1]["funcname"] = "TempInputIsActive" -defs["igTempInputIsActive"][1]["location"] = "imgui_internal:3049" +defs["igTempInputIsActive"][1]["location"] = "imgui_internal:3398" defs["igTempInputIsActive"][1]["namespace"] = "ImGui" defs["igTempInputIsActive"][1]["ov_cimguiname"] = "igTempInputIsActive" defs["igTempInputIsActive"][1]["ret"] = "bool" @@ -27983,7 +29468,7 @@ defs["igTempInputScalar"][1]["defaults"] = {} defs["igTempInputScalar"][1]["defaults"]["p_clamp_max"] = "NULL" defs["igTempInputScalar"][1]["defaults"]["p_clamp_min"] = "NULL" defs["igTempInputScalar"][1]["funcname"] = "TempInputScalar" -defs["igTempInputScalar"][1]["location"] = "imgui_internal:3048" +defs["igTempInputScalar"][1]["location"] = "imgui_internal:3397" defs["igTempInputScalar"][1]["namespace"] = "ImGui" defs["igTempInputScalar"][1]["ov_cimguiname"] = "igTempInputScalar" defs["igTempInputScalar"][1]["ret"] = "bool" @@ -28017,13 +29502,57 @@ defs["igTempInputText"][1]["call_args"] = "(bb,id,label,buf,buf_size,flags)" defs["igTempInputText"][1]["cimguiname"] = "igTempInputText" defs["igTempInputText"][1]["defaults"] = {} defs["igTempInputText"][1]["funcname"] = "TempInputText" -defs["igTempInputText"][1]["location"] = "imgui_internal:3047" +defs["igTempInputText"][1]["location"] = "imgui_internal:3396" defs["igTempInputText"][1]["namespace"] = "ImGui" defs["igTempInputText"][1]["ov_cimguiname"] = "igTempInputText" defs["igTempInputText"][1]["ret"] = "bool" defs["igTempInputText"][1]["signature"] = "(const ImRect,ImGuiID,const char*,char*,int,ImGuiInputTextFlags)" defs["igTempInputText"][1]["stname"] = "" defs["igTempInputText"]["(const ImRect,ImGuiID,const char*,char*,int,ImGuiInputTextFlags)"] = defs["igTempInputText"][1] +defs["igTestKeyOwner"] = {} +defs["igTestKeyOwner"][1] = {} +defs["igTestKeyOwner"][1]["args"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igTestKeyOwner"][1]["argsT"] = {} +defs["igTestKeyOwner"][1]["argsT"][1] = {} +defs["igTestKeyOwner"][1]["argsT"][1]["name"] = "key" +defs["igTestKeyOwner"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igTestKeyOwner"][1]["argsT"][2] = {} +defs["igTestKeyOwner"][1]["argsT"][2]["name"] = "owner_id" +defs["igTestKeyOwner"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igTestKeyOwner"][1]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igTestKeyOwner"][1]["call_args"] = "(key,owner_id)" +defs["igTestKeyOwner"][1]["cimguiname"] = "igTestKeyOwner" +defs["igTestKeyOwner"][1]["defaults"] = {} +defs["igTestKeyOwner"][1]["funcname"] = "TestKeyOwner" +defs["igTestKeyOwner"][1]["location"] = "imgui_internal:3141" +defs["igTestKeyOwner"][1]["namespace"] = "ImGui" +defs["igTestKeyOwner"][1]["ov_cimguiname"] = "igTestKeyOwner" +defs["igTestKeyOwner"][1]["ret"] = "bool" +defs["igTestKeyOwner"][1]["signature"] = "(ImGuiKey,ImGuiID)" +defs["igTestKeyOwner"][1]["stname"] = "" +defs["igTestKeyOwner"]["(ImGuiKey,ImGuiID)"] = defs["igTestKeyOwner"][1] +defs["igTestShortcutRouting"] = {} +defs["igTestShortcutRouting"][1] = {} +defs["igTestShortcutRouting"][1]["args"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id)" +defs["igTestShortcutRouting"][1]["argsT"] = {} +defs["igTestShortcutRouting"][1]["argsT"][1] = {} +defs["igTestShortcutRouting"][1]["argsT"][1]["name"] = "key_chord" +defs["igTestShortcutRouting"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igTestShortcutRouting"][1]["argsT"][2] = {} +defs["igTestShortcutRouting"][1]["argsT"][2]["name"] = "owner_id" +defs["igTestShortcutRouting"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igTestShortcutRouting"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id)" +defs["igTestShortcutRouting"][1]["call_args"] = "(key_chord,owner_id)" +defs["igTestShortcutRouting"][1]["cimguiname"] = "igTestShortcutRouting" +defs["igTestShortcutRouting"][1]["defaults"] = {} +defs["igTestShortcutRouting"][1]["funcname"] = "TestShortcutRouting" +defs["igTestShortcutRouting"][1]["location"] = "imgui_internal:3169" +defs["igTestShortcutRouting"][1]["namespace"] = "ImGui" +defs["igTestShortcutRouting"][1]["ov_cimguiname"] = "igTestShortcutRouting" +defs["igTestShortcutRouting"][1]["ret"] = "bool" +defs["igTestShortcutRouting"][1]["signature"] = "(ImGuiKeyChord,ImGuiID)" +defs["igTestShortcutRouting"][1]["stname"] = "" +defs["igTestShortcutRouting"]["(ImGuiKeyChord,ImGuiID)"] = defs["igTestShortcutRouting"][1] defs["igText"] = {} defs["igText"][1] = {} defs["igText"][1]["args"] = "(const char* fmt,...)" @@ -28040,7 +29569,7 @@ defs["igText"][1]["cimguiname"] = "igText" defs["igText"][1]["defaults"] = {} defs["igText"][1]["funcname"] = "Text" defs["igText"][1]["isvararg"] = "...)" -defs["igText"][1]["location"] = "imgui:496" +defs["igText"][1]["location"] = "imgui:493" defs["igText"][1]["namespace"] = "ImGui" defs["igText"][1]["ov_cimguiname"] = "igText" defs["igText"][1]["ret"] = "void" @@ -28066,7 +29595,7 @@ defs["igTextColored"][1]["cimguiname"] = "igTextColored" defs["igTextColored"][1]["defaults"] = {} defs["igTextColored"][1]["funcname"] = "TextColored" defs["igTextColored"][1]["isvararg"] = "...)" -defs["igTextColored"][1]["location"] = "imgui:498" +defs["igTextColored"][1]["location"] = "imgui:495" defs["igTextColored"][1]["namespace"] = "ImGui" defs["igTextColored"][1]["ov_cimguiname"] = "igTextColored" defs["igTextColored"][1]["ret"] = "void" @@ -28091,7 +29620,7 @@ defs["igTextColoredV"][1]["call_args"] = "(col,fmt,args)" defs["igTextColoredV"][1]["cimguiname"] = "igTextColoredV" defs["igTextColoredV"][1]["defaults"] = {} defs["igTextColoredV"][1]["funcname"] = "TextColoredV" -defs["igTextColoredV"][1]["location"] = "imgui:499" +defs["igTextColoredV"][1]["location"] = "imgui:496" defs["igTextColoredV"][1]["namespace"] = "ImGui" defs["igTextColoredV"][1]["ov_cimguiname"] = "igTextColoredV" defs["igTextColoredV"][1]["ret"] = "void" @@ -28114,7 +29643,7 @@ defs["igTextDisabled"][1]["cimguiname"] = "igTextDisabled" defs["igTextDisabled"][1]["defaults"] = {} defs["igTextDisabled"][1]["funcname"] = "TextDisabled" defs["igTextDisabled"][1]["isvararg"] = "...)" -defs["igTextDisabled"][1]["location"] = "imgui:500" +defs["igTextDisabled"][1]["location"] = "imgui:497" defs["igTextDisabled"][1]["namespace"] = "ImGui" defs["igTextDisabled"][1]["ov_cimguiname"] = "igTextDisabled" defs["igTextDisabled"][1]["ret"] = "void" @@ -28136,7 +29665,7 @@ defs["igTextDisabledV"][1]["call_args"] = "(fmt,args)" defs["igTextDisabledV"][1]["cimguiname"] = "igTextDisabledV" defs["igTextDisabledV"][1]["defaults"] = {} defs["igTextDisabledV"][1]["funcname"] = "TextDisabledV" -defs["igTextDisabledV"][1]["location"] = "imgui:501" +defs["igTextDisabledV"][1]["location"] = "imgui:498" defs["igTextDisabledV"][1]["namespace"] = "ImGui" defs["igTextDisabledV"][1]["ov_cimguiname"] = "igTextDisabledV" defs["igTextDisabledV"][1]["ret"] = "void" @@ -28163,7 +29692,7 @@ defs["igTextEx"][1]["defaults"] = {} defs["igTextEx"][1]["defaults"]["flags"] = "0" defs["igTextEx"][1]["defaults"]["text_end"] = "NULL" defs["igTextEx"][1]["funcname"] = "TextEx" -defs["igTextEx"][1]["location"] = "imgui_internal:3002" +defs["igTextEx"][1]["location"] = "imgui_internal:3350" defs["igTextEx"][1]["namespace"] = "ImGui" defs["igTextEx"][1]["ov_cimguiname"] = "igTextEx" defs["igTextEx"][1]["ret"] = "void" @@ -28186,7 +29715,7 @@ defs["igTextUnformatted"][1]["cimguiname"] = "igTextUnformatted" defs["igTextUnformatted"][1]["defaults"] = {} defs["igTextUnformatted"][1]["defaults"]["text_end"] = "NULL" defs["igTextUnformatted"][1]["funcname"] = "TextUnformatted" -defs["igTextUnformatted"][1]["location"] = "imgui:495" +defs["igTextUnformatted"][1]["location"] = "imgui:492" defs["igTextUnformatted"][1]["namespace"] = "ImGui" defs["igTextUnformatted"][1]["ov_cimguiname"] = "igTextUnformatted" defs["igTextUnformatted"][1]["ret"] = "void" @@ -28208,7 +29737,7 @@ defs["igTextV"][1]["call_args"] = "(fmt,args)" defs["igTextV"][1]["cimguiname"] = "igTextV" defs["igTextV"][1]["defaults"] = {} defs["igTextV"][1]["funcname"] = "TextV" -defs["igTextV"][1]["location"] = "imgui:497" +defs["igTextV"][1]["location"] = "imgui:494" defs["igTextV"][1]["namespace"] = "ImGui" defs["igTextV"][1]["ov_cimguiname"] = "igTextV" defs["igTextV"][1]["ret"] = "void" @@ -28231,7 +29760,7 @@ defs["igTextWrapped"][1]["cimguiname"] = "igTextWrapped" defs["igTextWrapped"][1]["defaults"] = {} defs["igTextWrapped"][1]["funcname"] = "TextWrapped" defs["igTextWrapped"][1]["isvararg"] = "...)" -defs["igTextWrapped"][1]["location"] = "imgui:502" +defs["igTextWrapped"][1]["location"] = "imgui:499" defs["igTextWrapped"][1]["namespace"] = "ImGui" defs["igTextWrapped"][1]["ov_cimguiname"] = "igTextWrapped" defs["igTextWrapped"][1]["ret"] = "void" @@ -28253,7 +29782,7 @@ defs["igTextWrappedV"][1]["call_args"] = "(fmt,args)" defs["igTextWrappedV"][1]["cimguiname"] = "igTextWrappedV" defs["igTextWrappedV"][1]["defaults"] = {} defs["igTextWrappedV"][1]["funcname"] = "TextWrappedV" -defs["igTextWrappedV"][1]["location"] = "imgui:503" +defs["igTextWrappedV"][1]["location"] = "imgui:500" defs["igTextWrappedV"][1]["namespace"] = "ImGui" defs["igTextWrappedV"][1]["ov_cimguiname"] = "igTextWrappedV" defs["igTextWrappedV"][1]["ret"] = "void" @@ -28278,7 +29807,7 @@ defs["igTranslateWindowsInViewport"][1]["call_args"] = "(viewport,old_pos,new_po defs["igTranslateWindowsInViewport"][1]["cimguiname"] = "igTranslateWindowsInViewport" defs["igTranslateWindowsInViewport"][1]["defaults"] = {} defs["igTranslateWindowsInViewport"][1]["funcname"] = "TranslateWindowsInViewport" -defs["igTranslateWindowsInViewport"][1]["location"] = "imgui_internal:2693" +defs["igTranslateWindowsInViewport"][1]["location"] = "imgui_internal:2982" defs["igTranslateWindowsInViewport"][1]["namespace"] = "ImGui" defs["igTranslateWindowsInViewport"][1]["ov_cimguiname"] = "igTranslateWindowsInViewport" defs["igTranslateWindowsInViewport"][1]["ret"] = "void" @@ -28297,9 +29826,9 @@ defs["igTreeNode"][1]["call_args"] = "(label)" defs["igTreeNode"][1]["cimguiname"] = "igTreeNode" defs["igTreeNode"][1]["defaults"] = {} defs["igTreeNode"][1]["funcname"] = "TreeNode" -defs["igTreeNode"][1]["location"] = "imgui:610" +defs["igTreeNode"][1]["location"] = "imgui:611" defs["igTreeNode"][1]["namespace"] = "ImGui" -defs["igTreeNode"][1]["ov_cimguiname"] = "igTreeNodeStr" +defs["igTreeNode"][1]["ov_cimguiname"] = "igTreeNode_Str" defs["igTreeNode"][1]["ret"] = "bool" defs["igTreeNode"][1]["signature"] = "(const char*)" defs["igTreeNode"][1]["stname"] = "" @@ -28321,9 +29850,9 @@ defs["igTreeNode"][2]["cimguiname"] = "igTreeNode" defs["igTreeNode"][2]["defaults"] = {} defs["igTreeNode"][2]["funcname"] = "TreeNode" defs["igTreeNode"][2]["isvararg"] = "...)" -defs["igTreeNode"][2]["location"] = "imgui:611" +defs["igTreeNode"][2]["location"] = "imgui:612" defs["igTreeNode"][2]["namespace"] = "ImGui" -defs["igTreeNode"][2]["ov_cimguiname"] = "igTreeNodeStrStr" +defs["igTreeNode"][2]["ov_cimguiname"] = "igTreeNode_StrStr" defs["igTreeNode"][2]["ret"] = "bool" defs["igTreeNode"][2]["signature"] = "(const char*,const char*,...)" defs["igTreeNode"][2]["stname"] = "" @@ -28345,9 +29874,9 @@ defs["igTreeNode"][3]["cimguiname"] = "igTreeNode" defs["igTreeNode"][3]["defaults"] = {} defs["igTreeNode"][3]["funcname"] = "TreeNode" defs["igTreeNode"][3]["isvararg"] = "...)" -defs["igTreeNode"][3]["location"] = "imgui:612" +defs["igTreeNode"][3]["location"] = "imgui:613" defs["igTreeNode"][3]["namespace"] = "ImGui" -defs["igTreeNode"][3]["ov_cimguiname"] = "igTreeNodePtr" +defs["igTreeNode"][3]["ov_cimguiname"] = "igTreeNode_Ptr" defs["igTreeNode"][3]["ret"] = "bool" defs["igTreeNode"][3]["signature"] = "(const void*,const char*,...)" defs["igTreeNode"][3]["stname"] = "" @@ -28376,36 +29905,13 @@ defs["igTreeNodeBehavior"][1]["cimguiname"] = "igTreeNodeBehavior" defs["igTreeNodeBehavior"][1]["defaults"] = {} defs["igTreeNodeBehavior"][1]["defaults"]["label_end"] = "NULL" defs["igTreeNodeBehavior"][1]["funcname"] = "TreeNodeBehavior" -defs["igTreeNodeBehavior"][1]["location"] = "imgui_internal:3023" +defs["igTreeNodeBehavior"][1]["location"] = "imgui_internal:3371" defs["igTreeNodeBehavior"][1]["namespace"] = "ImGui" defs["igTreeNodeBehavior"][1]["ov_cimguiname"] = "igTreeNodeBehavior" defs["igTreeNodeBehavior"][1]["ret"] = "bool" defs["igTreeNodeBehavior"][1]["signature"] = "(ImGuiID,ImGuiTreeNodeFlags,const char*,const char*)" defs["igTreeNodeBehavior"][1]["stname"] = "" defs["igTreeNodeBehavior"]["(ImGuiID,ImGuiTreeNodeFlags,const char*,const char*)"] = defs["igTreeNodeBehavior"][1] -defs["igTreeNodeBehaviorIsOpen"] = {} -defs["igTreeNodeBehaviorIsOpen"][1] = {} -defs["igTreeNodeBehaviorIsOpen"][1]["args"] = "(ImGuiID id,ImGuiTreeNodeFlags flags)" -defs["igTreeNodeBehaviorIsOpen"][1]["argsT"] = {} -defs["igTreeNodeBehaviorIsOpen"][1]["argsT"][1] = {} -defs["igTreeNodeBehaviorIsOpen"][1]["argsT"][1]["name"] = "id" -defs["igTreeNodeBehaviorIsOpen"][1]["argsT"][1]["type"] = "ImGuiID" -defs["igTreeNodeBehaviorIsOpen"][1]["argsT"][2] = {} -defs["igTreeNodeBehaviorIsOpen"][1]["argsT"][2]["name"] = "flags" -defs["igTreeNodeBehaviorIsOpen"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" -defs["igTreeNodeBehaviorIsOpen"][1]["argsoriginal"] = "(ImGuiID id,ImGuiTreeNodeFlags flags=0)" -defs["igTreeNodeBehaviorIsOpen"][1]["call_args"] = "(id,flags)" -defs["igTreeNodeBehaviorIsOpen"][1]["cimguiname"] = "igTreeNodeBehaviorIsOpen" -defs["igTreeNodeBehaviorIsOpen"][1]["defaults"] = {} -defs["igTreeNodeBehaviorIsOpen"][1]["defaults"]["flags"] = "0" -defs["igTreeNodeBehaviorIsOpen"][1]["funcname"] = "TreeNodeBehaviorIsOpen" -defs["igTreeNodeBehaviorIsOpen"][1]["location"] = "imgui_internal:3024" -defs["igTreeNodeBehaviorIsOpen"][1]["namespace"] = "ImGui" -defs["igTreeNodeBehaviorIsOpen"][1]["ov_cimguiname"] = "igTreeNodeBehaviorIsOpen" -defs["igTreeNodeBehaviorIsOpen"][1]["ret"] = "bool" -defs["igTreeNodeBehaviorIsOpen"][1]["signature"] = "(ImGuiID,ImGuiTreeNodeFlags)" -defs["igTreeNodeBehaviorIsOpen"][1]["stname"] = "" -defs["igTreeNodeBehaviorIsOpen"]["(ImGuiID,ImGuiTreeNodeFlags)"] = defs["igTreeNodeBehaviorIsOpen"][1] defs["igTreeNodeEx"] = {} defs["igTreeNodeEx"][1] = {} defs["igTreeNodeEx"][1]["args"] = "(const char* label,ImGuiTreeNodeFlags flags)" @@ -28422,9 +29928,9 @@ defs["igTreeNodeEx"][1]["cimguiname"] = "igTreeNodeEx" defs["igTreeNodeEx"][1]["defaults"] = {} defs["igTreeNodeEx"][1]["defaults"]["flags"] = "0" defs["igTreeNodeEx"][1]["funcname"] = "TreeNodeEx" -defs["igTreeNodeEx"][1]["location"] = "imgui:615" +defs["igTreeNodeEx"][1]["location"] = "imgui:616" defs["igTreeNodeEx"][1]["namespace"] = "ImGui" -defs["igTreeNodeEx"][1]["ov_cimguiname"] = "igTreeNodeExStr" +defs["igTreeNodeEx"][1]["ov_cimguiname"] = "igTreeNodeEx_Str" defs["igTreeNodeEx"][1]["ret"] = "bool" defs["igTreeNodeEx"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags)" defs["igTreeNodeEx"][1]["stname"] = "" @@ -28449,9 +29955,9 @@ defs["igTreeNodeEx"][2]["cimguiname"] = "igTreeNodeEx" defs["igTreeNodeEx"][2]["defaults"] = {} defs["igTreeNodeEx"][2]["funcname"] = "TreeNodeEx" defs["igTreeNodeEx"][2]["isvararg"] = "...)" -defs["igTreeNodeEx"][2]["location"] = "imgui:616" +defs["igTreeNodeEx"][2]["location"] = "imgui:617" defs["igTreeNodeEx"][2]["namespace"] = "ImGui" -defs["igTreeNodeEx"][2]["ov_cimguiname"] = "igTreeNodeExStrStr" +defs["igTreeNodeEx"][2]["ov_cimguiname"] = "igTreeNodeEx_StrStr" defs["igTreeNodeEx"][2]["ret"] = "bool" defs["igTreeNodeEx"][2]["signature"] = "(const char*,ImGuiTreeNodeFlags,const char*,...)" defs["igTreeNodeEx"][2]["stname"] = "" @@ -28476,9 +29982,9 @@ defs["igTreeNodeEx"][3]["cimguiname"] = "igTreeNodeEx" defs["igTreeNodeEx"][3]["defaults"] = {} defs["igTreeNodeEx"][3]["funcname"] = "TreeNodeEx" defs["igTreeNodeEx"][3]["isvararg"] = "...)" -defs["igTreeNodeEx"][3]["location"] = "imgui:617" +defs["igTreeNodeEx"][3]["location"] = "imgui:618" defs["igTreeNodeEx"][3]["namespace"] = "ImGui" -defs["igTreeNodeEx"][3]["ov_cimguiname"] = "igTreeNodeExPtr" +defs["igTreeNodeEx"][3]["ov_cimguiname"] = "igTreeNodeEx_Ptr" defs["igTreeNodeEx"][3]["ret"] = "bool" defs["igTreeNodeEx"][3]["signature"] = "(const void*,ImGuiTreeNodeFlags,const char*,...)" defs["igTreeNodeEx"][3]["stname"] = "" @@ -28506,9 +30012,9 @@ defs["igTreeNodeExV"][1]["call_args"] = "(str_id,flags,fmt,args)" defs["igTreeNodeExV"][1]["cimguiname"] = "igTreeNodeExV" defs["igTreeNodeExV"][1]["defaults"] = {} defs["igTreeNodeExV"][1]["funcname"] = "TreeNodeExV" -defs["igTreeNodeExV"][1]["location"] = "imgui:618" +defs["igTreeNodeExV"][1]["location"] = "imgui:619" defs["igTreeNodeExV"][1]["namespace"] = "ImGui" -defs["igTreeNodeExV"][1]["ov_cimguiname"] = "igTreeNodeExVStr" +defs["igTreeNodeExV"][1]["ov_cimguiname"] = "igTreeNodeExV_Str" defs["igTreeNodeExV"][1]["ret"] = "bool" defs["igTreeNodeExV"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags,const char*,va_list)" defs["igTreeNodeExV"][1]["stname"] = "" @@ -28532,14 +30038,58 @@ defs["igTreeNodeExV"][2]["call_args"] = "(ptr_id,flags,fmt,args)" defs["igTreeNodeExV"][2]["cimguiname"] = "igTreeNodeExV" defs["igTreeNodeExV"][2]["defaults"] = {} defs["igTreeNodeExV"][2]["funcname"] = "TreeNodeExV" -defs["igTreeNodeExV"][2]["location"] = "imgui:619" +defs["igTreeNodeExV"][2]["location"] = "imgui:620" defs["igTreeNodeExV"][2]["namespace"] = "ImGui" -defs["igTreeNodeExV"][2]["ov_cimguiname"] = "igTreeNodeExVPtr" +defs["igTreeNodeExV"][2]["ov_cimguiname"] = "igTreeNodeExV_Ptr" defs["igTreeNodeExV"][2]["ret"] = "bool" defs["igTreeNodeExV"][2]["signature"] = "(const void*,ImGuiTreeNodeFlags,const char*,va_list)" defs["igTreeNodeExV"][2]["stname"] = "" defs["igTreeNodeExV"]["(const char*,ImGuiTreeNodeFlags,const char*,va_list)"] = defs["igTreeNodeExV"][1] defs["igTreeNodeExV"]["(const void*,ImGuiTreeNodeFlags,const char*,va_list)"] = defs["igTreeNodeExV"][2] +defs["igTreeNodeSetOpen"] = {} +defs["igTreeNodeSetOpen"][1] = {} +defs["igTreeNodeSetOpen"][1]["args"] = "(ImGuiID id,bool open)" +defs["igTreeNodeSetOpen"][1]["argsT"] = {} +defs["igTreeNodeSetOpen"][1]["argsT"][1] = {} +defs["igTreeNodeSetOpen"][1]["argsT"][1]["name"] = "id" +defs["igTreeNodeSetOpen"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTreeNodeSetOpen"][1]["argsT"][2] = {} +defs["igTreeNodeSetOpen"][1]["argsT"][2]["name"] = "open" +defs["igTreeNodeSetOpen"][1]["argsT"][2]["type"] = "bool" +defs["igTreeNodeSetOpen"][1]["argsoriginal"] = "(ImGuiID id,bool open)" +defs["igTreeNodeSetOpen"][1]["call_args"] = "(id,open)" +defs["igTreeNodeSetOpen"][1]["cimguiname"] = "igTreeNodeSetOpen" +defs["igTreeNodeSetOpen"][1]["defaults"] = {} +defs["igTreeNodeSetOpen"][1]["funcname"] = "TreeNodeSetOpen" +defs["igTreeNodeSetOpen"][1]["location"] = "imgui_internal:3373" +defs["igTreeNodeSetOpen"][1]["namespace"] = "ImGui" +defs["igTreeNodeSetOpen"][1]["ov_cimguiname"] = "igTreeNodeSetOpen" +defs["igTreeNodeSetOpen"][1]["ret"] = "void" +defs["igTreeNodeSetOpen"][1]["signature"] = "(ImGuiID,bool)" +defs["igTreeNodeSetOpen"][1]["stname"] = "" +defs["igTreeNodeSetOpen"]["(ImGuiID,bool)"] = defs["igTreeNodeSetOpen"][1] +defs["igTreeNodeUpdateNextOpen"] = {} +defs["igTreeNodeUpdateNextOpen"][1] = {} +defs["igTreeNodeUpdateNextOpen"][1]["args"] = "(ImGuiID id,ImGuiTreeNodeFlags flags)" +defs["igTreeNodeUpdateNextOpen"][1]["argsT"] = {} +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][1] = {} +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][1]["name"] = "id" +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][2] = {} +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][2]["name"] = "flags" +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeUpdateNextOpen"][1]["argsoriginal"] = "(ImGuiID id,ImGuiTreeNodeFlags flags)" +defs["igTreeNodeUpdateNextOpen"][1]["call_args"] = "(id,flags)" +defs["igTreeNodeUpdateNextOpen"][1]["cimguiname"] = "igTreeNodeUpdateNextOpen" +defs["igTreeNodeUpdateNextOpen"][1]["defaults"] = {} +defs["igTreeNodeUpdateNextOpen"][1]["funcname"] = "TreeNodeUpdateNextOpen" +defs["igTreeNodeUpdateNextOpen"][1]["location"] = "imgui_internal:3374" +defs["igTreeNodeUpdateNextOpen"][1]["namespace"] = "ImGui" +defs["igTreeNodeUpdateNextOpen"][1]["ov_cimguiname"] = "igTreeNodeUpdateNextOpen" +defs["igTreeNodeUpdateNextOpen"][1]["ret"] = "bool" +defs["igTreeNodeUpdateNextOpen"][1]["signature"] = "(ImGuiID,ImGuiTreeNodeFlags)" +defs["igTreeNodeUpdateNextOpen"][1]["stname"] = "" +defs["igTreeNodeUpdateNextOpen"]["(ImGuiID,ImGuiTreeNodeFlags)"] = defs["igTreeNodeUpdateNextOpen"][1] defs["igTreeNodeV"] = {} defs["igTreeNodeV"][1] = {} defs["igTreeNodeV"][1]["args"] = "(const char* str_id,const char* fmt,va_list args)" @@ -28558,9 +30108,9 @@ defs["igTreeNodeV"][1]["call_args"] = "(str_id,fmt,args)" defs["igTreeNodeV"][1]["cimguiname"] = "igTreeNodeV" defs["igTreeNodeV"][1]["defaults"] = {} defs["igTreeNodeV"][1]["funcname"] = "TreeNodeV" -defs["igTreeNodeV"][1]["location"] = "imgui:613" +defs["igTreeNodeV"][1]["location"] = "imgui:614" defs["igTreeNodeV"][1]["namespace"] = "ImGui" -defs["igTreeNodeV"][1]["ov_cimguiname"] = "igTreeNodeVStr" +defs["igTreeNodeV"][1]["ov_cimguiname"] = "igTreeNodeV_Str" defs["igTreeNodeV"][1]["ret"] = "bool" defs["igTreeNodeV"][1]["signature"] = "(const char*,const char*,va_list)" defs["igTreeNodeV"][1]["stname"] = "" @@ -28581,9 +30131,9 @@ defs["igTreeNodeV"][2]["call_args"] = "(ptr_id,fmt,args)" defs["igTreeNodeV"][2]["cimguiname"] = "igTreeNodeV" defs["igTreeNodeV"][2]["defaults"] = {} defs["igTreeNodeV"][2]["funcname"] = "TreeNodeV" -defs["igTreeNodeV"][2]["location"] = "imgui:614" +defs["igTreeNodeV"][2]["location"] = "imgui:615" defs["igTreeNodeV"][2]["namespace"] = "ImGui" -defs["igTreeNodeV"][2]["ov_cimguiname"] = "igTreeNodeVPtr" +defs["igTreeNodeV"][2]["ov_cimguiname"] = "igTreeNodeV_Ptr" defs["igTreeNodeV"][2]["ret"] = "bool" defs["igTreeNodeV"][2]["signature"] = "(const void*,const char*,va_list)" defs["igTreeNodeV"][2]["stname"] = "" @@ -28598,7 +30148,7 @@ defs["igTreePop"][1]["call_args"] = "()" defs["igTreePop"][1]["cimguiname"] = "igTreePop" defs["igTreePop"][1]["defaults"] = {} defs["igTreePop"][1]["funcname"] = "TreePop" -defs["igTreePop"][1]["location"] = "imgui:622" +defs["igTreePop"][1]["location"] = "imgui:623" defs["igTreePop"][1]["namespace"] = "ImGui" defs["igTreePop"][1]["ov_cimguiname"] = "igTreePop" defs["igTreePop"][1]["ret"] = "void" @@ -28617,9 +30167,9 @@ defs["igTreePush"][1]["call_args"] = "(str_id)" defs["igTreePush"][1]["cimguiname"] = "igTreePush" defs["igTreePush"][1]["defaults"] = {} defs["igTreePush"][1]["funcname"] = "TreePush" -defs["igTreePush"][1]["location"] = "imgui:620" +defs["igTreePush"][1]["location"] = "imgui:621" defs["igTreePush"][1]["namespace"] = "ImGui" -defs["igTreePush"][1]["ov_cimguiname"] = "igTreePushStr" +defs["igTreePush"][1]["ov_cimguiname"] = "igTreePush_Str" defs["igTreePush"][1]["ret"] = "void" defs["igTreePush"][1]["signature"] = "(const char*)" defs["igTreePush"][1]["stname"] = "" @@ -28629,15 +30179,14 @@ defs["igTreePush"][2]["argsT"] = {} defs["igTreePush"][2]["argsT"][1] = {} defs["igTreePush"][2]["argsT"][1]["name"] = "ptr_id" defs["igTreePush"][2]["argsT"][1]["type"] = "const void*" -defs["igTreePush"][2]["argsoriginal"] = "(const void* ptr_id=((void*)0))" +defs["igTreePush"][2]["argsoriginal"] = "(const void* ptr_id)" defs["igTreePush"][2]["call_args"] = "(ptr_id)" defs["igTreePush"][2]["cimguiname"] = "igTreePush" defs["igTreePush"][2]["defaults"] = {} -defs["igTreePush"][2]["defaults"]["ptr_id"] = "NULL" defs["igTreePush"][2]["funcname"] = "TreePush" -defs["igTreePush"][2]["location"] = "imgui:621" +defs["igTreePush"][2]["location"] = "imgui:622" defs["igTreePush"][2]["namespace"] = "ImGui" -defs["igTreePush"][2]["ov_cimguiname"] = "igTreePushPtr" +defs["igTreePush"][2]["ov_cimguiname"] = "igTreePush_Ptr" defs["igTreePush"][2]["ret"] = "void" defs["igTreePush"][2]["signature"] = "(const void*)" defs["igTreePush"][2]["stname"] = "" @@ -28655,7 +30204,7 @@ defs["igTreePushOverrideID"][1]["call_args"] = "(id)" defs["igTreePushOverrideID"][1]["cimguiname"] = "igTreePushOverrideID" defs["igTreePushOverrideID"][1]["defaults"] = {} defs["igTreePushOverrideID"][1]["funcname"] = "TreePushOverrideID" -defs["igTreePushOverrideID"][1]["location"] = "imgui_internal:3025" +defs["igTreePushOverrideID"][1]["location"] = "imgui_internal:3372" defs["igTreePushOverrideID"][1]["namespace"] = "ImGui" defs["igTreePushOverrideID"][1]["ov_cimguiname"] = "igTreePushOverrideID" defs["igTreePushOverrideID"][1]["ret"] = "void" @@ -28675,7 +30224,7 @@ defs["igUnindent"][1]["cimguiname"] = "igUnindent" defs["igUnindent"][1]["defaults"] = {} defs["igUnindent"][1]["defaults"]["indent_w"] = "0.0f" defs["igUnindent"][1]["funcname"] = "Unindent" -defs["igUnindent"][1]["location"] = "imgui:456" +defs["igUnindent"][1]["location"] = "imgui:453" defs["igUnindent"][1]["namespace"] = "ImGui" defs["igUnindent"][1]["ov_cimguiname"] = "igUnindent" defs["igUnindent"][1]["ret"] = "void" @@ -28691,13 +30240,32 @@ defs["igUpdateHoveredWindowAndCaptureFlags"][1]["call_args"] = "()" defs["igUpdateHoveredWindowAndCaptureFlags"][1]["cimguiname"] = "igUpdateHoveredWindowAndCaptureFlags" defs["igUpdateHoveredWindowAndCaptureFlags"][1]["defaults"] = {} defs["igUpdateHoveredWindowAndCaptureFlags"][1]["funcname"] = "UpdateHoveredWindowAndCaptureFlags" -defs["igUpdateHoveredWindowAndCaptureFlags"][1]["location"] = "imgui_internal:2681" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["location"] = "imgui_internal:2970" defs["igUpdateHoveredWindowAndCaptureFlags"][1]["namespace"] = "ImGui" defs["igUpdateHoveredWindowAndCaptureFlags"][1]["ov_cimguiname"] = "igUpdateHoveredWindowAndCaptureFlags" defs["igUpdateHoveredWindowAndCaptureFlags"][1]["ret"] = "void" defs["igUpdateHoveredWindowAndCaptureFlags"][1]["signature"] = "()" defs["igUpdateHoveredWindowAndCaptureFlags"][1]["stname"] = "" defs["igUpdateHoveredWindowAndCaptureFlags"]["()"] = defs["igUpdateHoveredWindowAndCaptureFlags"][1] +defs["igUpdateInputEvents"] = {} +defs["igUpdateInputEvents"][1] = {} +defs["igUpdateInputEvents"][1]["args"] = "(bool trickle_fast_inputs)" +defs["igUpdateInputEvents"][1]["argsT"] = {} +defs["igUpdateInputEvents"][1]["argsT"][1] = {} +defs["igUpdateInputEvents"][1]["argsT"][1]["name"] = "trickle_fast_inputs" +defs["igUpdateInputEvents"][1]["argsT"][1]["type"] = "bool" +defs["igUpdateInputEvents"][1]["argsoriginal"] = "(bool trickle_fast_inputs)" +defs["igUpdateInputEvents"][1]["call_args"] = "(trickle_fast_inputs)" +defs["igUpdateInputEvents"][1]["cimguiname"] = "igUpdateInputEvents" +defs["igUpdateInputEvents"][1]["defaults"] = {} +defs["igUpdateInputEvents"][1]["funcname"] = "UpdateInputEvents" +defs["igUpdateInputEvents"][1]["location"] = "imgui_internal:2969" +defs["igUpdateInputEvents"][1]["namespace"] = "ImGui" +defs["igUpdateInputEvents"][1]["ov_cimguiname"] = "igUpdateInputEvents" +defs["igUpdateInputEvents"][1]["ret"] = "void" +defs["igUpdateInputEvents"][1]["signature"] = "(bool)" +defs["igUpdateInputEvents"][1]["stname"] = "" +defs["igUpdateInputEvents"]["(bool)"] = defs["igUpdateInputEvents"][1] defs["igUpdateMouseMovingWindowEndFrame"] = {} defs["igUpdateMouseMovingWindowEndFrame"][1] = {} defs["igUpdateMouseMovingWindowEndFrame"][1]["args"] = "()" @@ -28707,7 +30275,7 @@ defs["igUpdateMouseMovingWindowEndFrame"][1]["call_args"] = "()" defs["igUpdateMouseMovingWindowEndFrame"][1]["cimguiname"] = "igUpdateMouseMovingWindowEndFrame" defs["igUpdateMouseMovingWindowEndFrame"][1]["defaults"] = {} defs["igUpdateMouseMovingWindowEndFrame"][1]["funcname"] = "UpdateMouseMovingWindowEndFrame" -defs["igUpdateMouseMovingWindowEndFrame"][1]["location"] = "imgui_internal:2685" +defs["igUpdateMouseMovingWindowEndFrame"][1]["location"] = "imgui_internal:2974" defs["igUpdateMouseMovingWindowEndFrame"][1]["namespace"] = "ImGui" defs["igUpdateMouseMovingWindowEndFrame"][1]["ov_cimguiname"] = "igUpdateMouseMovingWindowEndFrame" defs["igUpdateMouseMovingWindowEndFrame"][1]["ret"] = "void" @@ -28723,7 +30291,7 @@ defs["igUpdateMouseMovingWindowNewFrame"][1]["call_args"] = "()" defs["igUpdateMouseMovingWindowNewFrame"][1]["cimguiname"] = "igUpdateMouseMovingWindowNewFrame" defs["igUpdateMouseMovingWindowNewFrame"][1]["defaults"] = {} defs["igUpdateMouseMovingWindowNewFrame"][1]["funcname"] = "UpdateMouseMovingWindowNewFrame" -defs["igUpdateMouseMovingWindowNewFrame"][1]["location"] = "imgui_internal:2684" +defs["igUpdateMouseMovingWindowNewFrame"][1]["location"] = "imgui_internal:2973" defs["igUpdateMouseMovingWindowNewFrame"][1]["namespace"] = "ImGui" defs["igUpdateMouseMovingWindowNewFrame"][1]["ov_cimguiname"] = "igUpdateMouseMovingWindowNewFrame" defs["igUpdateMouseMovingWindowNewFrame"][1]["ret"] = "void" @@ -28739,7 +30307,7 @@ defs["igUpdatePlatformWindows"][1]["call_args"] = "()" defs["igUpdatePlatformWindows"][1]["cimguiname"] = "igUpdatePlatformWindows" defs["igUpdatePlatformWindows"][1]["defaults"] = {} defs["igUpdatePlatformWindows"][1]["funcname"] = "UpdatePlatformWindows" -defs["igUpdatePlatformWindows"][1]["location"] = "imgui:979" +defs["igUpdatePlatformWindows"][1]["location"] = "imgui:981" defs["igUpdatePlatformWindows"][1]["namespace"] = "ImGui" defs["igUpdatePlatformWindows"][1]["ov_cimguiname"] = "igUpdatePlatformWindows" defs["igUpdatePlatformWindows"][1]["ret"] = "void" @@ -28764,7 +30332,7 @@ defs["igUpdateWindowParentAndRootLinks"][1]["call_args"] = "(window,flags,parent defs["igUpdateWindowParentAndRootLinks"][1]["cimguiname"] = "igUpdateWindowParentAndRootLinks" defs["igUpdateWindowParentAndRootLinks"][1]["defaults"] = {} defs["igUpdateWindowParentAndRootLinks"][1]["funcname"] = "UpdateWindowParentAndRootLinks" -defs["igUpdateWindowParentAndRootLinks"][1]["location"] = "imgui_internal:2648" +defs["igUpdateWindowParentAndRootLinks"][1]["location"] = "imgui_internal:2936" defs["igUpdateWindowParentAndRootLinks"][1]["namespace"] = "ImGui" defs["igUpdateWindowParentAndRootLinks"][1]["ov_cimguiname"] = "igUpdateWindowParentAndRootLinks" defs["igUpdateWindowParentAndRootLinks"][1]["ret"] = "void" @@ -28803,7 +30371,7 @@ defs["igVSliderFloat"][1]["defaults"] = {} defs["igVSliderFloat"][1]["defaults"]["flags"] = "0" defs["igVSliderFloat"][1]["defaults"]["format"] = "\"%.3f\"" defs["igVSliderFloat"][1]["funcname"] = "VSliderFloat" -defs["igVSliderFloat"][1]["location"] = "imgui:576" +defs["igVSliderFloat"][1]["location"] = "imgui:577" defs["igVSliderFloat"][1]["namespace"] = "ImGui" defs["igVSliderFloat"][1]["ov_cimguiname"] = "igVSliderFloat" defs["igVSliderFloat"][1]["ret"] = "bool" @@ -28842,7 +30410,7 @@ defs["igVSliderInt"][1]["defaults"] = {} defs["igVSliderInt"][1]["defaults"]["flags"] = "0" defs["igVSliderInt"][1]["defaults"]["format"] = "\"%d\"" defs["igVSliderInt"][1]["funcname"] = "VSliderInt" -defs["igVSliderInt"][1]["location"] = "imgui:577" +defs["igVSliderInt"][1]["location"] = "imgui:578" defs["igVSliderInt"][1]["namespace"] = "ImGui" defs["igVSliderInt"][1]["ov_cimguiname"] = "igVSliderInt" defs["igVSliderInt"][1]["ret"] = "bool" @@ -28884,7 +30452,7 @@ defs["igVSliderScalar"][1]["defaults"] = {} defs["igVSliderScalar"][1]["defaults"]["flags"] = "0" defs["igVSliderScalar"][1]["defaults"]["format"] = "NULL" defs["igVSliderScalar"][1]["funcname"] = "VSliderScalar" -defs["igVSliderScalar"][1]["location"] = "imgui:578" +defs["igVSliderScalar"][1]["location"] = "imgui:579" defs["igVSliderScalar"][1]["namespace"] = "ImGui" defs["igVSliderScalar"][1]["ov_cimguiname"] = "igVSliderScalar" defs["igVSliderScalar"][1]["ret"] = "bool" @@ -28906,9 +30474,9 @@ defs["igValue"][1]["call_args"] = "(prefix,b)" defs["igValue"][1]["cimguiname"] = "igValue" defs["igValue"][1]["defaults"] = {} defs["igValue"][1]["funcname"] = "Value" -defs["igValue"][1]["location"] = "imgui:654" +defs["igValue"][1]["location"] = "imgui:655" defs["igValue"][1]["namespace"] = "ImGui" -defs["igValue"][1]["ov_cimguiname"] = "igValueBool" +defs["igValue"][1]["ov_cimguiname"] = "igValue_Bool" defs["igValue"][1]["ret"] = "void" defs["igValue"][1]["signature"] = "(const char*,bool)" defs["igValue"][1]["stname"] = "" @@ -28926,9 +30494,9 @@ defs["igValue"][2]["call_args"] = "(prefix,v)" defs["igValue"][2]["cimguiname"] = "igValue" defs["igValue"][2]["defaults"] = {} defs["igValue"][2]["funcname"] = "Value" -defs["igValue"][2]["location"] = "imgui:655" +defs["igValue"][2]["location"] = "imgui:656" defs["igValue"][2]["namespace"] = "ImGui" -defs["igValue"][2]["ov_cimguiname"] = "igValueInt" +defs["igValue"][2]["ov_cimguiname"] = "igValue_Int" defs["igValue"][2]["ret"] = "void" defs["igValue"][2]["signature"] = "(const char*,int)" defs["igValue"][2]["stname"] = "" @@ -28946,9 +30514,9 @@ defs["igValue"][3]["call_args"] = "(prefix,v)" defs["igValue"][3]["cimguiname"] = "igValue" defs["igValue"][3]["defaults"] = {} defs["igValue"][3]["funcname"] = "Value" -defs["igValue"][3]["location"] = "imgui:656" +defs["igValue"][3]["location"] = "imgui:657" defs["igValue"][3]["namespace"] = "ImGui" -defs["igValue"][3]["ov_cimguiname"] = "igValueUint" +defs["igValue"][3]["ov_cimguiname"] = "igValue_Uint" defs["igValue"][3]["ret"] = "void" defs["igValue"][3]["signature"] = "(const char*,unsigned int)" defs["igValue"][3]["stname"] = "" @@ -28970,9 +30538,9 @@ defs["igValue"][4]["cimguiname"] = "igValue" defs["igValue"][4]["defaults"] = {} defs["igValue"][4]["defaults"]["float_format"] = "NULL" defs["igValue"][4]["funcname"] = "Value" -defs["igValue"][4]["location"] = "imgui:657" +defs["igValue"][4]["location"] = "imgui:658" defs["igValue"][4]["namespace"] = "ImGui" -defs["igValue"][4]["ov_cimguiname"] = "igValueFloat" +defs["igValue"][4]["ov_cimguiname"] = "igValue_Float" defs["igValue"][4]["ret"] = "void" defs["igValue"][4]["signature"] = "(const char*,float,const char*)" defs["igValue"][4]["stname"] = "" @@ -28998,7 +30566,7 @@ defs["igWindowRectAbsToRel"][1]["call_args"] = "(window,r)" defs["igWindowRectAbsToRel"][1]["cimguiname"] = "igWindowRectAbsToRel" defs["igWindowRectAbsToRel"][1]["defaults"] = {} defs["igWindowRectAbsToRel"][1]["funcname"] = "WindowRectAbsToRel" -defs["igWindowRectAbsToRel"][1]["location"] = "imgui_internal:2658" +defs["igWindowRectAbsToRel"][1]["location"] = "imgui_internal:2946" defs["igWindowRectAbsToRel"][1]["namespace"] = "ImGui" defs["igWindowRectAbsToRel"][1]["nonUDT"] = 1 defs["igWindowRectAbsToRel"][1]["ov_cimguiname"] = "igWindowRectAbsToRel" @@ -29024,7 +30592,7 @@ defs["igWindowRectRelToAbs"][1]["call_args"] = "(window,r)" defs["igWindowRectRelToAbs"][1]["cimguiname"] = "igWindowRectRelToAbs" defs["igWindowRectRelToAbs"][1]["defaults"] = {} defs["igWindowRectRelToAbs"][1]["funcname"] = "WindowRectRelToAbs" -defs["igWindowRectRelToAbs"][1]["location"] = "imgui_internal:2659" +defs["igWindowRectRelToAbs"][1]["location"] = "imgui_internal:2947" defs["igWindowRectRelToAbs"][1]["namespace"] = "ImGui" defs["igWindowRectRelToAbs"][1]["nonUDT"] = 1 defs["igWindowRectRelToAbs"][1]["ov_cimguiname"] = "igWindowRectRelToAbs" diff --git a/imgui-sys/third-party/imgui-docking/imgui/LICENSE.txt b/imgui-sys/third-party/imgui-docking/imgui/LICENSE.txt index 780533dcb..4023e0caa 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/LICENSE.txt +++ b/imgui-sys/third-party/imgui-docking/imgui/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2021 Omar Cornut +Copyright (c) 2014-2022 Omar Cornut Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/imgui-sys/third-party/imgui-docking/imgui/imconfig.h b/imgui-sys/third-party/imgui-docking/imgui/imconfig.h index 7082c5507..ed265082d 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imconfig.h +++ b/imgui-sys/third-party/imgui-docking/imgui/imconfig.h @@ -28,12 +28,13 @@ //---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to avoid using soon-to-be obsolete function/names. //#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS +//#define IMGUI_DISABLE_OBSOLETE_KEYIO // 1.87: disable legacy io.KeyMap[]+io.KeysDown[] in favor io.AddKeyEvent(). This will be folded into IMGUI_DISABLE_OBSOLETE_FUNCTIONS in a few versions. -//---- Disable all of Dear ImGui or don't implement standard windows. -// It is very strongly recommended to NOT disable the demo windows during development. Please read comments in imgui_demo.cpp. +//---- Disable all of Dear ImGui or don't implement standard windows/tools. +// It is very strongly recommended to NOT disable the demo windows and debug tool during development. They are extremely useful in day to day work. Please read comments in imgui_demo.cpp. //#define IMGUI_DISABLE // Disable everything: all headers and source files will be empty. -//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. Not recommended. -//#define IMGUI_DISABLE_METRICS_WINDOW // Disable metrics/debugger and other debug tools: ShowMetricsWindow() and ShowStackToolWindow() will be empty. +//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. +//#define IMGUI_DISABLE_DEBUG_TOOLS // Disable metrics/debugger and other debug tools: ShowMetricsWindow(), ShowDebugLogWindow() and ShowStackToolWindow() will be empty (this was called IMGUI_DISABLE_METRICS_WINDOW before 1.88). //---- Don't implement some functions to reduce linkage requirements. //#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. (user32.lib/.a, kernel32.lib/.a) @@ -61,12 +62,13 @@ // By default the embedded implementations are declared static and not available outside of Dear ImGui sources files. //#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" //#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_STB_SPRINTF_FILENAME "my_folder/stb_sprintf.h" // only used if enabled //#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION //#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION -//---- Use stb_printf's faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined) -// Requires 'stb_sprintf.h' to be available in the include path. Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by STB sprintf. -// #define IMGUI_USE_STB_SPRINTF +//---- Use stb_sprintf.h for a faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined) +// Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by stb_sprintf.h. +//#define IMGUI_USE_STB_SPRINTF //---- Use FreeType to build and rasterize the font atlas (instead of stb_truetype which is embedded by default in Dear ImGui) // Requires FreeType headers to be available in the include path. Requires program to be compiled with 'misc/freetype/imgui_freetype.cpp' (in this repository) + the FreeType library (not provided). @@ -80,12 +82,12 @@ //---- Define constructor and implicit cast operators to convert back<>forth between your math types and ImVec2/ImVec4. // This will be inlined as part of ImVec2 and ImVec4 class declarations. /* -#define IM_VEC2_CLASS_EXTRA \ - ImVec2(const MyVec2& f) { x = f.x; y = f.y; } \ +#define IM_VEC2_CLASS_EXTRA \ + constexpr ImVec2(const MyVec2& f) : x(f.x), y(f.y) {} \ operator MyVec2() const { return MyVec2(x,y); } -#define IM_VEC4_CLASS_EXTRA \ - ImVec4(const MyVec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \ +#define IM_VEC4_CLASS_EXTRA \ + constexpr ImVec4(const MyVec4& f) : x(f.x), y(f.y), z(f.z), w(f.w) {} \ operator MyVec4() const { return MyVec4(x,y,z,w); } */ @@ -106,11 +108,6 @@ //#define IM_DEBUG_BREAK IM_ASSERT(0) //#define IM_DEBUG_BREAK __debugbreak() -//---- Debug Tools: Have the Item Picker break in the ItemAdd() function instead of ItemHoverable(), -// (which comes earlier in the code, will catch a few extra items, allow picking items other than Hovered one.) -// This adds a small runtime cost which is why it is not enabled by default. -//#define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX - //---- Debug Tools: Enable slower asserts //#define IMGUI_DEBUG_PARANOID diff --git a/imgui-sys/third-party/imgui-docking/imgui/imgui.cpp b/imgui-sys/third-party/imgui-docking/imgui/imgui.cpp index eb5c71011..ecfcd507c 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imgui.cpp +++ b/imgui-sys/third-party/imgui-docking/imgui/imgui.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (main code and documentation) // Help: @@ -11,7 +11,7 @@ // - FAQ http://dearimgui.org/faq // - Homepage & latest https://github.com/ocornut/imgui // - Releases & changelog https://github.com/ocornut/imgui/releases -// - Gallery https://github.com/ocornut/imgui/issues/4451 (please post your screenshots/video there!) +// - Gallery https://github.com/ocornut/imgui/issues/5243 (please post your screenshots/video there!) // - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) // - Glossary https://github.com/ocornut/imgui/wiki/Glossary // - Issues & support https://github.com/ocornut/imgui/issues @@ -65,11 +65,12 @@ CODE // [SECTION] MISC HELPERS/UTILITIES (Color functions) // [SECTION] ImGuiStorage // [SECTION] ImGuiTextFilter -// [SECTION] ImGuiTextBuffer +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex // [SECTION] ImGuiListClipper // [SECTION] STYLING // [SECTION] RENDER HELPERS // [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +// [SECTION] INPUTS // [SECTION] ERROR CHECKING // [SECTION] LAYOUT // [SECTION] SCROLLING @@ -79,10 +80,12 @@ CODE // [SECTION] DRAG AND DROP // [SECTION] LOGGING/CAPTURING // [SECTION] SETTINGS +// [SECTION] LOCALIZATION // [SECTION] VIEWPORTS, PLATFORM WINDOWS // [SECTION] DOCKING // [SECTION] PLATFORM DEPENDENT HELPERS // [SECTION] METRICS/DEBUGGER WINDOW +// [SECTION] DEBUG LOG WINDOW // [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) */ @@ -101,6 +104,7 @@ CODE - Easy to hack and improve. - Minimize setup and maintenance. - Minimize state storage on user side. + - Minimize state synchronization. - Portable, minimize dependencies, run on target (consoles, phones, etc.). - Efficient runtime and memory consumption. @@ -124,14 +128,13 @@ CODE - Hold SHIFT or use mouse to select text. - CTRL+Left/Right to word jump. - CTRL+Shift+Left/Right to select words. - - CTRL+A our Double-Click to select all. + - CTRL+A or Double-Click to select all. - CTRL+X,CTRL+C,CTRL+V to use OS clipboard/ - CTRL+Z,CTRL+Y to undo/redo. - ESCAPE to revert text to its original value. - - You can apply arithmetic operators +,*,/ on numerical values. Use +- to subtract (because - would set a negative value!) - Controls are automatically adjusted for OSX to match standard OSX text editing operations. - General Keyboard controls: enable with ImGuiConfigFlags_NavEnableKeyboard. - - General Gamepad controls: enable with ImGuiConfigFlags_NavEnableGamepad. See suggested mappings in imgui.h ImGuiNavInput_ + download PNG/PSD at http://dearimgui.org/controls_sheets + - General Gamepad controls: enable with ImGuiConfigFlags_NavEnableGamepad. Download controller mapping PNG/PSD at http://dearimgui.org/controls_sheets PROGRAMMER GUIDE @@ -255,9 +258,9 @@ CODE io.DeltaTime = 1.0f/60.0f; // set the time elapsed since the previous frame (in seconds) io.DisplaySize.x = 1920.0f; // set the current display width io.DisplaySize.y = 1280.0f; // set the current display height here - io.MousePos = my_mouse_pos; // set the mouse position - io.MouseDown[0] = my_mouse_buttons[0]; // set the mouse button states - io.MouseDown[1] = my_mouse_buttons[1]; + io.AddMousePosEvent(mouse_x, mouse_y); // update mouse position + io.AddMouseButtonEvent(0, mouse_b[0]); // update mouse button states + io.AddMouseButtonEvent(1, mouse_b[1]); // update mouse button states // Call NewFrame(), after this point you can use ImGui::* functions anytime // (So you want to try calling NewFrame() as early as you can in your main loop to be able to use Dear ImGui everywhere) @@ -289,12 +292,14 @@ CODE --------------------------------------------- The backends in impl_impl_XXX.cpp files contain many working implementations of a rendering function. - void void MyImGuiRenderFunction(ImDrawData* draw_data) + void MyImGuiRenderFunction(ImDrawData* draw_data) { // TODO: Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled + // TODO: Setup texture sampling state: sample with bilinear filtering (NOT point/nearest filtering). Use 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines;' to allow point/nearest filtering. // TODO: Setup viewport covering draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize // TODO: Setup orthographic projection matrix cover draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize // TODO: Setup shader: vertex { float2 pos, float2 uv, u32 color }, fragment shader sample color from 1 texture, multiply by vertex color. + ImVec2 clip_off = draw_data->DisplayPos; for (int n = 0; n < draw_data->CmdListsCount; n++) { const ImDrawList* cmd_list = draw_data->CmdLists[n]; @@ -309,9 +314,11 @@ CODE } else { - // The texture for the draw call is specified by pcmd->GetTexID(). - // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. - MyEngineBindTexture((MyTexture*)pcmd->GetTexID()); + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; // We are using scissoring to clip some objects. All low-level graphics API should support it. // - If your engine doesn't support scissoring yet, you may ignore this at first. You will get some small glitches @@ -322,14 +329,16 @@ CODE // - In the interest of supporting multi-viewport applications (see 'docking' branch on github), // always subtract draw_data->DisplayPos from clipping bounds to convert them to your viewport space. // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) - ImVec2 pos = draw_data->DisplayPos; - MyEngineScissor((int)(pcmd->ClipRect.x - pos.x), (int)(pcmd->ClipRect.y - pos.y), (int)(pcmd->ClipRect.z - pos.x), (int)(pcmd->ClipRect.w - pos.y)); + MyEngineSetScissor(clip_min.x, clip_min.y, clip_max.x, clip_max.y); + + // The texture for the draw call is specified by pcmd->GetTexID(). + // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. + MyEngineBindTexture((MyTexture*)pcmd->GetTexID()); // Render 'pcmd->ElemCount/3' indexed triangles. // By default the indices ImDrawIdx are 16-bit, you can change them to 32-bit in imconfig.h if your engine doesn't support 16-bit indices. - MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer, vtx_buffer); + MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer + pcmd->IdxOffset, vtx_buffer, pcmd->VtxOffset); } - idx_buffer += pcmd->ElemCount; } } } @@ -338,31 +347,27 @@ CODE USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS ------------------------------------------ - The gamepad/keyboard navigation is fairly functional and keeps being improved. - - Gamepad support is particularly useful to use Dear ImGui on a console system (e.g. PS4, Switch, XB1) without a mouse! - - You can ask questions and report issues at https://github.com/ocornut/imgui/issues/787 + - Gamepad support is particularly useful to use Dear ImGui on a console system (e.g. PlayStation, Switch, Xbox) without a mouse! - The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. - Keyboard: - - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. - NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. - - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), the io.WantCaptureKeyboard flag - will be set. For more advanced uses, you may want to read from: + - Application: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. + - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), + the io.WantCaptureKeyboard flag will be set. For more advanced uses, you may want to read from: - io.NavActive: true when a window is focused and it doesn't have the ImGuiWindowFlags_NoNavInputs flag set. - io.NavVisible: true when the navigation cursor is visible (and usually goes false when mouse is used). - or query focus information with e.g. IsWindowFocused(ImGuiFocusedFlags_AnyWindow), IsItemFocused() etc. functions. Please reach out if you think the game vs navigation input sharing could be improved. - Gamepad: - - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. - - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + fill the io.NavInputs[] fields before calling NewFrame(). - Note that io.NavInputs[] is cleared by EndFrame(). - - See 'enum ImGuiNavInput_' in imgui.h for a description of inputs. For each entry of io.NavInputs[], set the following values: - 0.0f= not held. 1.0f= fully held. Pass intermediate 0.0f..1.0f values for analog triggers/sticks. - - We use a simple >0.0f test for activation testing, and won't attempt to test for a dead-zone. - Your code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). + - Application: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. + - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + call io.AddKeyEvent/AddKeyAnalogEvent() with ImGuiKey_Gamepad_XXX keys. + For analog values (0.0f to 1.0f), backend is responsible to handling a dead-zone and rescaling inputs accordingly. + Backend code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). + - BEFORE 1.87, BACKENDS USED TO WRITE TO io.NavInputs[]. This is now obsolete. Please call io functions instead! - You can download PNG/PSD files depicting the gamepad controls for common controllers at: http://dearimgui.org/controls_sheets - - If you need to share inputs between your game and the imgui parts, the easiest approach is to go all-or-nothing, with a buttons combo - to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. + - If you need to share inputs between your game and the Dear ImGui interface, the easiest approach is to go all-or-nothing, + with a buttons combo to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. - Mouse: - - PS4 users: Consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. + - PS4/PS5 users: Consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. - Consoles/Tablet/Phone users: Consider using a Synergy 1.x server (on your PC) + uSynergy.c (on your console/tablet/phone app) to share your PC mouse/keyboard. - On a TV/console system where readability may be lower or mouse inputs may be awkward, you may want to set the ImGuiConfigFlags_NavEnableSetMousePos flag. Enabling ImGuiConfigFlags_NavEnableSetMousePos + ImGuiBackendFlags_HasSetMousePos instructs dear imgui to move your mouse cursor along with navigation movements. @@ -382,14 +387,80 @@ CODE You can read releases logs https://github.com/ocornut/imgui/releases for more details. (Docking/Viewport Branch) - - 2021/XX/XX (1.XX) - when multi-viewports are enabled, all positions will be in your natural OS coordinates space. It means that: + - 2022/XX/XX (1.XX) - when multi-viewports are enabled, all positions will be in your natural OS coordinates space. It means that: - reference to hard-coded positions such as in SetNextWindowPos(ImVec2(0,0)) are probably not what you want anymore. you may use GetMainViewport()->Pos to offset hard-coded positions, e.g. SetNextWindowPos(GetMainViewport()->Pos) - likewise io.MousePos and GetMousePos() will use OS coordinates. If you query mouse positions to interact with non-imgui coordinates you will need to offset them, e.g. subtract GetWindowViewport()->Pos. - - 2021/XX/XX (1.XX) - Moved IME support functions from io.ImeSetInputScreenPosFn, io.ImeWindowHandle to the PlatformIO api. - + - 2022/10/26 (1.89) - commented out redirecting OpenPopupContextItem() which was briefly the name of OpenPopupOnItemClick() from 1.77 to 1.79. + - 2022/10/12 (1.89) - removed runtime patching of invalid "%f"/"%0.f" format strings for DragInt()/SliderInt(). This was obsoleted in 1.61 (May 2018). See 1.61 changelog for details. + - 2022/09/26 (1.89) - renamed and merged keyboard modifiers key enums and flags into a same set. Kept inline redirection enums (will obsolete). + - ImGuiKey_ModCtrl and ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl + - ImGuiKey_ModShift and ImGuiModFlags_Shift -> ImGuiMod_Shift + - ImGuiKey_ModAlt and ImGuiModFlags_Alt -> ImGuiMod_Alt + - ImGuiKey_ModSuper and ImGuiModFlags_Super -> ImGuiMod_Super + the ImGuiKey_ModXXX were introduced in 1.87 and mostly used by backends. + the ImGuiModFlags_XXX have been exposed in imgui.h but not really used by any public api only by third-party extensions. + exceptionally commenting out the older ImGuiKeyModFlags_XXX names ahead of obsolescence schedule to reduce confusion and because they were not meant to be used anyway. + - 2022/09/12 (1.89) - removed the bizarre legacy default argument for 'TreePush(const void* ptr = NULL)', always pass a pointer value explicitly. NULL/nullptr is ok but require cast, e.g. TreePush((void*)nullptr); + - 2022/09/05 (1.89) - commented out redirecting functions/enums names that were marked obsolete in 1.77 and 1.78 (June 2020): + - DragScalar(), DragScalarN(), DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - SliderScalar(), SliderScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - BeginPopupContextWindow(const char*, ImGuiMouseButton, bool) -> use BeginPopupContextWindow(const char*, ImGuiPopupFlags) + - 2022/09/02 (1.89) - obsoleted using SetCursorPos()/SetCursorScreenPos() to extend parent window/cell boundaries. + this relates to when moving the cursor position beyond current boundaries WITHOUT submitting an item. + - previously this would make the window content size ~200x200: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); + - instead, please submit an item: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); + - alternative: + Begin(...) + Dummy(ImVec2(200,200)) + End(); + - content size is now only extended when submitting an item! + - with '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will now be detected and assert. + - without '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will silently be fixed until we obsolete it. + - 2022/08/03 (1.89) - changed signature of ImageButton() function. Kept redirection function (will obsolete). + - added 'const char* str_id' parameter + removed 'int frame_padding = -1' parameter. + - old signature: bool ImageButton(ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), int frame_padding = -1, ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values. + - had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer. + - new signature: bool ImageButton(const char* str_id, ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - requires an explicit identifier. You may still use e.g. PushID() calls and then pass an empty identifier. + - always uses style.FramePadding for padding, to be consistent with other buttons. You may use PushStyleVar() to alter this. + - 2022/07/08 (1.89) - inputs: removed io.NavInputs[] and ImGuiNavInput enum (following 1.87 changes). + - Official backends from 1.87+ -> no issue. + - Official backends from 1.60 to 1.86 -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need updating! + - Custom backends not writing to io.NavInputs[] -> no issue. + - Custom backends writing to io.NavInputs[] -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need fixing! + - TL;DR: Backends should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values instead of filling io.NavInput[]. + - 2022/06/15 (1.88) - renamed IMGUI_DISABLE_METRICS_WINDOW to IMGUI_DISABLE_DEBUG_TOOLS for correctness. kept support for old define (will obsolete). + - 2022/05/03 (1.88) - backends: osx: removed ImGui_ImplOSX_HandleEvent() from backend API in favor of backend automatically handling event capture. All ImGui_ImplOSX_HandleEvent() calls should be removed as they are now unnecessary. + - 2022/04/05 (1.88) - inputs: renamed ImGuiKeyModFlags to ImGuiModFlags. Kept inline redirection enums (will obsolete). This was never used in public API functions but technically present in imgui.h and ImGuiIO. + - 2022/01/20 (1.87) - inputs: reworded gamepad IO. + - Backend writing to io.NavInputs[] -> backend should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values. + - 2022/01/19 (1.87) - sliders, drags: removed support for legacy arithmetic operators (+,+-,*,/) when inputing text. This doesn't break any api/code but a feature that used to be accessible by end-users (which seemingly no one used). + - 2022/01/17 (1.87) - inputs: reworked mouse IO. + - Backend writing to io.MousePos -> backend should call io.AddMousePosEvent() + - Backend writing to io.MouseDown[] -> backend should call io.AddMouseButtonEvent() + - Backend writing to io.MouseWheel -> backend should call io.AddMouseWheelEvent() + - Backend writing to io.MouseHoveredViewport -> backend should call io.AddMouseViewportEvent() [Docking branch w/ multi-viewports only] + note: for all calls to IO new functions, the Dear ImGui context should be bound/current. + read https://github.com/ocornut/imgui/issues/4921 for details. + - 2022/01/10 (1.87) - inputs: reworked keyboard IO. Removed io.KeyMap[], io.KeysDown[] in favor of calling io.AddKeyEvent(). Removed GetKeyIndex(), now unecessary. All IsKeyXXX() functions now take ImGuiKey values. All features are still functional until IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Read Changelog and Release Notes for details. + - IsKeyPressed(MY_NATIVE_KEY_XXX) -> use IsKeyPressed(ImGuiKey_XXX) + - IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) -> use IsKeyPressed(ImGuiKey_XXX) + - Backend writing to io.KeyMap[],io.KeysDown[] -> backend should call io.AddKeyEvent() (+ call io.SetKeyEventNativeData() if you want legacy user code to stil function with legacy key codes). + - Backend writing to io.KeyCtrl, io.KeyShift.. -> backend should call io.AddKeyEvent() with ImGuiMod_XXX values. *IF YOU PULLED CODE BETWEEN 2021/01/10 and 2021/01/27: We used to have a io.AddKeyModsEvent() function which was now replaced by io.AddKeyEvent() with ImGuiMod_XXX values.* + - one case won't work with backward compatibility: if your custom backend used ImGuiKey as mock native indices (e.g. "io.KeyMap[ImGuiKey_A] = ImGuiKey_A") because those values are now larger than the legacy KeyDown[] array. Will assert. + - inputs: added ImGuiKey_ModCtrl/ImGuiKey_ModShift/ImGuiKey_ModAlt/ImGuiKey_ModSuper values to submit keyboard modifiers using io.AddKeyEvent(), instead of writing directly to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper. + - 2022/01/05 (1.87) - inputs: renamed ImGuiKey_KeyPadEnter to ImGuiKey_KeypadEnter to align with new symbols. Kept redirection enum. + - 2022/01/05 (1.87) - removed io.ImeSetInputScreenPosFn() in favor of more flexible io.SetPlatformImeDataFn(). Removed 'void* io.ImeWindowHandle' in favor of writing to 'void* ImGuiViewport::PlatformHandleRaw'. + - 2022/01/01 (1.87) - commented out redirecting functions/enums names that were marked obsolete in 1.69, 1.70, 1.71, 1.72 (March-July 2019) + - ImGui::SetNextTreeNodeOpen() -> use ImGui::SetNextItemOpen() + - ImGui::GetContentRegionAvailWidth() -> use ImGui::GetContentRegionAvail().x + - ImGui::TreeAdvanceToLabelPos() -> use ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetTreeNodeToLabelSpacing()); + - ImFontAtlas::CustomRect -> use ImFontAtlasCustomRect + - ImGuiColorEditFlags_RGB/HSV/HEX -> use ImGuiColorEditFlags_DisplayRGB/HSV/Hex - 2021/12/20 (1.86) - backends: removed obsolete Marmalade backend (imgui_impl_marmalade.cpp) + example. Find last supported version at https://github.com/ocornut/imgui/wiki/Bindings - 2021/11/04 (1.86) - removed CalcListClipping() function. Prefer using ImGuiListClipper which can return non-contiguous ranges. Please open an issue if you think you really need this function. - 2021/08/23 (1.85) - removed GetWindowContentRegionWidth() function. keep inline redirection helper. can use 'GetWindowContentRegionMax().x - GetWindowContentRegionMin().x' instead for generally 'GetContentRegionAvail().x' is more useful. @@ -740,7 +811,7 @@ CODE - How can I have widgets with an empty label? - How can I have multiple widgets with the same label? - How can I have multiple windows with the same label? - Q: How can I display an image? What is ImTextureID, how does it works? + Q: How can I display an image? What is ImTextureID, how does it work? Q: How can I use my own math types instead of ImVec2/ImVec4? Q: How can I interact with standard C++ types (such as std::string and std::vector)? Q: How can I display custom shapes? (using low-level ImDrawList API) @@ -799,7 +870,6 @@ CODE #include "imgui_internal.h" // System includes -#include // toupper #include // vsnprintf, sscanf, printf #if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier #include // intptr_t @@ -846,7 +916,7 @@ CODE #if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later #pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types #endif -#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). #pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). #pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). #endif @@ -869,7 +939,7 @@ CODE #pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. #pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision #elif defined(__GNUC__) -// We disable -Wpragmas because GCC doesn't provide an has_warning equivalent and some forks/patches may not following the warning/version association. +// We disable -Wpragmas because GCC doesn't provide a has_warning equivalent and some forks/patches may not follow the warning/version association. #pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind #pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used #pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size @@ -893,7 +963,7 @@ static const float NAV_WINDOWING_LIST_APPEAR_DELAY = 0.15f; // Time // Window resizing from edges (when io.ConfigWindowsResizeFromEdges = true and ImGuiBackendFlags_HasMouseCursors is set in io.BackendFlags by backend) static const float WINDOWS_HOVER_PADDING = 4.0f; // Extend outside window for hovering/resizing (maxxed with TouchPadding) and inside windows for borders. Affect FindHoveredWindow(). static const float WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER = 0.04f; // Reduce visual noise by only highlighting the border after a certain time. -static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 2.00f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. +static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 0.70f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. // Docking static const float DOCKING_TRANSPARENT_PAYLOAD_ALPHA = 0.50f; // For use with io.ConfigDockingTransparentPayload. Apply to Viewport _or_ WindowBg in host viewport. @@ -921,6 +991,7 @@ static void WindowSettingsHandler_WriteAll(ImGuiContext*, ImGuiSetti // Platform Dependents default implementation for IO functions static const char* GetClipboardTextFn_DefaultImpl(void* user_data); static void SetClipboardTextFn_DefaultImpl(void* user_data, const char* text); +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data); namespace ImGui { @@ -954,6 +1025,7 @@ static void UpdateDebugToolStackQueries(); // Misc static void UpdateSettings(); +static void UpdateKeyboardInputs(); static void UpdateMouseInputs(); static void UpdateMouseWheel(); static bool UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect); @@ -1052,12 +1124,12 @@ ImGuiStyle::ImGuiStyle() ColumnsMinSpacing = 6.0f; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). ScrollbarSize = 14.0f; // Width of the vertical scrollbar, Height of the horizontal scrollbar ScrollbarRounding = 9.0f; // Radius of grab corners rounding for scrollbar - GrabMinSize = 10.0f; // Minimum width/height of a grab box for slider/scrollbar + GrabMinSize = 12.0f; // Minimum width/height of a grab box for slider/scrollbar GrabRounding = 0.0f; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. LogSliderDeadzone = 4.0f; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. TabRounding = 4.0f; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. TabBorderSize = 0.0f; // Thickness of border around tabs. - TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appears on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. ColorButtonPosition = ImGuiDir_Right; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text. SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. @@ -1065,7 +1137,7 @@ ImGuiStyle::ImGuiStyle() DisplaySafeAreaPadding = ImVec2(3,3); // If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows. MouseCursorScale = 1.0f; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. AntiAliasedLines = true; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. - AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering. + AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). AntiAliasedFill = true; // Enable anti-aliased filled shapes (rounded rectangles, circles, etc.). CurveTessellationTol = 1.25f; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. CircleTessellationMaxError = 0.30f; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. @@ -1107,7 +1179,7 @@ ImGuiIO::ImGuiIO() { // Most fields are initialized with zero memset(this, 0, sizeof(*this)); - IM_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); // Our pre-C++11 IM_STATIC_ASSERT() macros triggers warning on modern compilers so we don't use it here. + IM_STATIC_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); // Settings ConfigFlags = ImGuiConfigFlags_None; @@ -1119,10 +1191,14 @@ ImGuiIO::ImGuiIO() LogFilename = "imgui_log.txt"; MouseDoubleClickTime = 0.30f; MouseDoubleClickMaxDist = 6.0f; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO for (int i = 0; i < ImGuiKey_COUNT; i++) KeyMap[i] = -1; +#endif KeyRepeatDelay = 0.275f; KeyRepeatRate = 0.050f; + HoverDelayNormal = 0.30f; + HoverDelayShort = 0.10f; UserData = NULL; Fonts = NULL; @@ -1150,7 +1226,10 @@ ImGuiIO::ImGuiIO() #else ConfigMacOSXBehaviors = false; #endif + ConfigInputTrickleEventQueue = true; ConfigInputTextCursorBlink = true; + ConfigInputTextEnterKeepActive = false; + ConfigDragClickToInputText = false; ConfigWindowsResizeFromEdges = true; ConfigWindowsMoveFromTitleBarOnly = false; ConfigMemoryCompactTimer = 60.0f; @@ -1161,36 +1240,48 @@ ImGuiIO::ImGuiIO() GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations SetClipboardTextFn = SetClipboardTextFn_DefaultImpl; ClipboardUserData = NULL; + SetPlatformImeDataFn = SetPlatformImeDataFn_DefaultImpl; // Input (NB: we already have memset zero the entire structure!) MousePos = ImVec2(-FLT_MAX, -FLT_MAX); MousePosPrev = ImVec2(-FLT_MAX, -FLT_MAX); MouseDragThreshold = 6.0f; for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDurationPrev[i] = -1.0f; - for (int i = 0; i < IM_ARRAYSIZE(KeysDownDuration); i++) KeysDownDuration[i] = KeysDownDurationPrev[i] = -1.0f; - for (int i = 0; i < IM_ARRAYSIZE(NavInputsDownDuration); i++) NavInputsDownDuration[i] = -1.0f; + for (int i = 0; i < IM_ARRAYSIZE(KeysData); i++) { KeysData[i].DownDuration = KeysData[i].DownDurationPrev = -1.0f; } + AppAcceptingEvents = true; + BackendUsingLegacyKeyArrays = (ImS8)-1; + BackendUsingLegacyNavInputArray = true; // assume using legacy array until proven wrong } // Pass in translated ASCII characters for text input. // - with glfw you can get those from the callback set in glfwSetCharCallback() // - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message +// FIXME: Should in theory be called "AddCharacterEvent()" to be consistent with new API void ImGuiIO::AddInputCharacter(unsigned int c) { - if (c != 0) - InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + if (c == 0 || !AppAcceptingEvents) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Text; + e.Source = ImGuiInputSource_Keyboard; + e.Text.Char = c; + g.InputEventsQueue.push_back(e); } // UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so // we should save the high surrogate. void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) { - if (c == 0 && InputQueueSurrogate == 0) + if ((c == 0 && InputQueueSurrogate == 0) || !AppAcceptingEvents) return; if ((c & 0xFC00) == 0xD800) // High surrogate, must save { if (InputQueueSurrogate != 0) - InputQueueCharacters.push_back(IM_UNICODE_CODEPOINT_INVALID); + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); InputQueueSurrogate = c; return; } @@ -1200,7 +1291,7 @@ void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) { if ((c & 0xFC00) != 0xDC00) // Invalid low surrogate { - InputQueueCharacters.push_back(IM_UNICODE_CODEPOINT_INVALID); + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); } else { @@ -1213,41 +1304,250 @@ void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) InputQueueSurrogate = 0; } - InputQueueCharacters.push_back(cp); + AddInputCharacter((unsigned)cp); } void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) { + if (!AppAcceptingEvents) + return; while (*utf8_chars != 0) { unsigned int c = 0; utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL); if (c != 0) - InputQueueCharacters.push_back((ImWchar)c); + AddInputCharacter(c); } } +// FIXME: Perhaps we could clear queued events as well? void ImGuiIO::ClearInputCharacters() { InputQueueCharacters.resize(0); } +// FIXME: Perhaps we could clear queued events as well? void ImGuiIO::ClearInputKeys() { +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO memset(KeysDown, 0, sizeof(KeysDown)); - for (int n = 0; n < IM_ARRAYSIZE(KeysDownDuration); n++) - KeysDownDuration[n] = KeysDownDurationPrev[n] = -1.0f; +#endif + for (int n = 0; n < IM_ARRAYSIZE(KeysData); n++) + { + KeysData[n].Down = false; + KeysData[n].DownDuration = -1.0f; + KeysData[n].DownDurationPrev = -1.0f; + } KeyCtrl = KeyShift = KeyAlt = KeySuper = false; - KeyMods = KeyModsPrev = ImGuiKeyModFlags_None; - for (int n = 0; n < IM_ARRAYSIZE(NavInputsDownDuration); n++) - NavInputsDownDuration[n] = NavInputsDownDurationPrev[n] = -1.0f; + KeyMods = ImGuiMod_None; + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + for (int n = 0; n < IM_ARRAYSIZE(MouseDown); n++) + { + MouseDown[n] = false; + MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f; + } + MouseWheel = MouseWheelH = 0.0f; +} + +static ImGuiInputEvent* FindLatestInputEvent(ImGuiInputEventType type, int arg = -1) +{ + ImGuiContext& g = *GImGui; + for (int n = g.InputEventsQueue.Size - 1; n >= 0; n--) + { + ImGuiInputEvent* e = &g.InputEventsQueue[n]; + if (e->Type != type) + continue; + if (type == ImGuiInputEventType_Key && e->Key.Key != arg) + continue; + if (type == ImGuiInputEventType_MouseButton && e->MouseButton.Button != arg) + continue; + return e; + } + return NULL; +} + +// Queue a new key down/up event. +// - ImGuiKey key: Translated key (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) +// - bool down: Is the key down? use false to signify a key release. +// - float analog_value: 0.0f..1.0f +void ImGuiIO::AddKeyAnalogEvent(ImGuiKey key, bool down, float analog_value) +{ + //if (e->Down) { IMGUI_DEBUG_LOG_IO("AddKeyEvent() Key='%s' %d, NativeKeycode = %d, NativeScancode = %d\n", ImGui::GetKeyName(e->Key), e->Down, e->NativeKeycode, e->NativeScancode); } + if (key == ImGuiKey_None || !AppAcceptingEvents) + return; + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(ImGui::IsNamedKeyOrModKey(key)); // Backend needs to pass a valid ImGuiKey_ constant. 0..511 values are legacy native key codes which are not accepted by this API. + IM_ASSERT(!ImGui::IsAliasKey(key)); // Backend cannot submit ImGuiKey_MouseXXX values they are automatically inferred from AddMouseXXX() events. + + // Verify that backend isn't mixing up using new io.AddKeyEvent() api and old io.KeysDown[] + io.KeyMap[] data. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((BackendUsingLegacyKeyArrays == -1 || BackendUsingLegacyKeyArrays == 0) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + if (BackendUsingLegacyKeyArrays == -1) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + IM_ASSERT(KeyMap[n] == -1 && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + BackendUsingLegacyKeyArrays = 0; +#endif + if (ImGui::IsGamepadKey(key)) + BackendUsingLegacyNavInputArray = false; + + // Filter duplicate (in particular: key mods and gamepad analog values are commonly spammed) + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_Key, (int)key); + const ImGuiKeyData* key_data = ImGui::GetKeyData(key); + const bool latest_key_down = latest_event ? latest_event->Key.Down : key_data->Down; + const float latest_key_analog = latest_event ? latest_event->Key.AnalogValue : key_data->AnalogValue; + if (latest_key_down == down && latest_key_analog == analog_value) + return; + + // Add event + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Key; + e.Source = ImGui::IsGamepadKey(key) ? ImGuiInputSource_Gamepad : ImGuiInputSource_Keyboard; + e.Key.Key = key; + e.Key.Down = down; + e.Key.AnalogValue = analog_value; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) +{ + if (!AppAcceptingEvents) + return; + AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); +} + +// [Optional] Call after AddKeyEvent(). +// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. +// If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this. +void ImGuiIO::SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index) +{ + if (key == ImGuiKey_None) + return; + IM_ASSERT(ImGui::IsNamedKey(key)); // >= 512 + IM_ASSERT(native_legacy_index == -1 || ImGui::IsLegacyKey((ImGuiKey)native_legacy_index)); // >= 0 && <= 511 + IM_UNUSED(native_keycode); // Yet unused + IM_UNUSED(native_scancode); // Yet unused + + // Build native->imgui map so old user code can still call key functions with native 0..511 values. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const int legacy_key = (native_legacy_index != -1) ? native_legacy_index : native_keycode; + if (!ImGui::IsLegacyKey((ImGuiKey)legacy_key)) + return; + KeyMap[legacy_key] = key; + KeyMap[key] = legacy_key; +#else + IM_UNUSED(key); + IM_UNUSED(native_legacy_index); +#endif +} + +// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. +void ImGuiIO::SetAppAcceptingEvents(bool accepting_events) +{ + AppAcceptingEvents = accepting_events; +} + +// Queue a mouse move event +void ImGuiIO::AddMousePosEvent(float x, float y) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + if (!AppAcceptingEvents) + return; + + // Apply same flooring as UpdateMouseInputs() + ImVec2 pos((x > -FLT_MAX) ? ImFloorSigned(x) : x, (y > -FLT_MAX) ? ImFloorSigned(y) : y); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MousePos); + const ImVec2 latest_pos = latest_event ? ImVec2(latest_event->MousePos.PosX, latest_event->MousePos.PosY) : g.IO.MousePos; + if (latest_pos.x == pos.x && latest_pos.y == pos.y) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MousePos; + e.Source = ImGuiInputSource_Mouse; + e.MousePos.PosX = pos.x; + e.MousePos.PosY = pos.y; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddMouseButtonEvent(int mouse_button, bool down) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MouseButton, (int)mouse_button); + const bool latest_button_down = latest_event ? latest_event->MouseButton.Down : g.IO.MouseDown[mouse_button]; + if (latest_button_down == down) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseButton; + e.Source = ImGuiInputSource_Mouse; + e.MouseButton.Button = mouse_button; + e.MouseButton.Down = down; + g.InputEventsQueue.push_back(e); +} + +// Queue a mouse wheel event (most mouse/API will only have a Y component) +void ImGuiIO::AddMouseWheelEvent(float wheel_x, float wheel_y) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + + // Filter duplicate (unlike most events, wheel values are relative and easy to filter) + if (!AppAcceptingEvents || (wheel_x == 0.0f && wheel_y == 0.0f)) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseWheel; + e.Source = ImGuiInputSource_Mouse; + e.MouseWheel.WheelX = wheel_x; + e.MouseWheel.WheelY = wheel_y; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddMouseViewportEvent(ImGuiID viewport_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MouseViewport); + const ImGuiID latest_viewport_id = latest_event ? latest_event->MouseViewport.HoveredViewportID : g.IO.MouseHoveredViewport; + if (latest_viewport_id == viewport_id) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseViewport; + e.Source = ImGuiInputSource_Mouse; + e.MouseViewport.HoveredViewportID = viewport_id; + g.InputEventsQueue.push_back(e); } void ImGuiIO::AddFocusEvent(bool focused) { - // We intentionally overwrite this and process in NewFrame(), in order to give a chance - // to multi-viewports backends to queue AddFocusEvent(false),AddFocusEvent(true) in same frame. - AppFocusLost = !focused; + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_Focus); + const bool latest_focused = latest_event ? latest_event->AppFocused.Focused : !g.IO.AppFocusLost; + if (latest_focused == focused) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Focus; + e.AppFocused.Focused = focused; + g.InputEventsQueue.push_back(e); } //----------------------------------------------------------------------------- @@ -1378,14 +1678,14 @@ ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, int ImStricmp(const char* str1, const char* str2) { int d; - while ((d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; } + while ((d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; } return d; } int ImStrnicmp(const char* str1, const char* str2, size_t count) { int d = 0; - while (count > 0 && (d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; count--; } + while (count > 0 && (d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; count--; } return d; } @@ -1452,14 +1752,14 @@ const char* ImStristr(const char* haystack, const char* haystack_end, const char if (!needle_end) needle_end = needle + strlen(needle); - const char un0 = (char)toupper(*needle); + const char un0 = (char)ImToUpper(*needle); while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end)) { - if (toupper(*haystack) == un0) + if (ImToUpper(*haystack) == un0) { const char* b = needle + 1; for (const char* a = haystack + 1; b < needle_end; a++, b++) - if (toupper(*a) != toupper(*b)) + if (ImToUpper(*a) != ImToUpper(*b)) break; if (b == needle_end) return haystack; @@ -1503,8 +1803,12 @@ const char* ImStrSkipBlank(const char* str) // designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.) #ifdef IMGUI_USE_STB_SPRINTF #define STB_SPRINTF_IMPLEMENTATION +#ifdef IMGUI_STB_SPRINTF_FILENAME +#include IMGUI_STB_SPRINTF_FILENAME +#else #include "stb_sprintf.h" #endif +#endif #if defined(_MSC_VER) && !defined(vsnprintf) #define vsnprintf _vsnprintf @@ -1544,6 +1848,25 @@ int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) } #endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + va_list args; + va_start(args, fmt); + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } + va_end(args); +} + +void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } +} + // CRC32 needs a 1KB lookup table (not cache friendly) // Although the code to generate the table is simple and shorter than the table itself, using a const table allows us to easily: // - avoid an unnecessary branch/memory tap, - keep the ImHashXXX functions usable by static constructors, - make it thread-safe. @@ -2105,18 +2428,15 @@ void ImGuiStorage::SetAllInt(int v) //----------------------------------------------------------------------------- // Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" -ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) +ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) //-V1077 { + InputBuf[0] = 0; + CountGrep = 0; if (default_filter) { ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); Build(); } - else - { - InputBuf[0] = 0; - CountGrep = 0; - } } bool ImGuiTextFilter::Draw(const char* label, float width) @@ -2203,7 +2523,7 @@ bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const } //----------------------------------------------------------------------------- -// [SECTION] ImGuiTextBuffer +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex //----------------------------------------------------------------------------- // On some platform vsnprintf() takes va_list by reference and modifies it. @@ -2271,6 +2591,20 @@ void ImGuiTextBuffer::appendfv(const char* fmt, va_list args) va_end(args_copy); } +void ImGuiTextIndex::append(const char* base, int old_size, int new_size) +{ + IM_ASSERT(old_size >= 0 && new_size >= old_size && new_size >= EndOffset); + if (old_size == new_size) + return; + if (EndOffset == 0 || base[EndOffset - 1] == '\n') + LineOffsets.push_back(EndOffset); + const char* base_end = base + new_size; + for (const char* p = base + old_size; (p = (const char*)memchr(p, '\n', base_end - p)) != 0; ) + if (++p < base_end) // Don't push a trailing offset on last \n + LineOffsets.push_back((int)(intptr_t)(p - base)); + EndOffset = ImMax(EndOffset, new_size); +} + //----------------------------------------------------------------------------- // [SECTION] ImGuiListClipper // This is currently not as flexible/powerful as it should be and really confusing/spaghetti, mostly because we changed @@ -2287,7 +2621,7 @@ static bool GetSkipItemForListClipping() #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS // Legacy helper to calculate coarse clipping of large list of evenly sized items. -// This legacy API is not ideal because it assume we will return a single contiguous rectangle. +// This legacy API is not ideal because it assumes we will return a single contiguous rectangle. // Prefer using ImGuiListClipper which can returns non-contiguous ranges. void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) { @@ -2402,13 +2736,11 @@ ImGuiListClipper::~ImGuiListClipper() End(); } -// Use case A: Begin() called from constructor with items_height<0, then called again from Step() in StepNo 1 -// Use case B: Begin() called from constructor with items_height>0 -// FIXME-LEGACY: Ideally we should remove the Begin/End functions but they are part of the legacy API we still support. This is why some of the code in Step() calling Begin() and reassign some fields, spaghetti style. void ImGuiListClipper::Begin(int items_count, float items_height) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Begin(%d,%.2f) in '%s'\n", items_count, items_height, window->Name); if (ImGuiTable* table = g.CurrentTable) if (table->IsInsideRow) @@ -2431,15 +2763,15 @@ void ImGuiListClipper::Begin(int items_count, float items_height) void ImGuiListClipper::End() { - // In theory here we should assert that we are already at the right position, but it seems saner to just seek at the end and not assert/crash the user. ImGuiContext& g = *GImGui; - if (ItemsCount >= 0 && ItemsCount < INT_MAX && DisplayStart >= 0) - ImGuiListClipper_SeekCursorForItem(this, ItemsCount); - ItemsCount = -1; - - // Restore temporary buffer and fix back pointers which may be invalidated when nesting if (ImGuiListClipperData* data = (ImGuiListClipperData*)TempData) { + // In theory here we should assert that we are already at the right position, but it seems saner to just seek at the end and not assert/crash the user. + IMGUI_DEBUG_LOG_CLIPPER("Clipper: End() in '%s'\n", g.CurrentWindow->Name); + if (ItemsCount >= 0 && ItemsCount < INT_MAX && DisplayStart >= 0) + ImGuiListClipper_SeekCursorForItem(this, ItemsCount); + + // Restore temporary buffer and fix back pointers which may be invalidated when nesting IM_ASSERT(data->ListClipper == this); data->StepNo = data->Ranges.Size; if (--g.ClipperTempDataStacked > 0) @@ -2449,6 +2781,7 @@ void ImGuiListClipper::End() } TempData = NULL; } + ItemsCount = -1; } void ImGuiListClipper::ForceDisplayRangeByIndices(int item_min, int item_max) @@ -2460,29 +2793,29 @@ void ImGuiListClipper::ForceDisplayRangeByIndices(int item_min, int item_max) data->Ranges.push_back(ImGuiListClipperRange::FromIndices(item_min, item_max)); } -bool ImGuiListClipper::Step() +static bool ImGuiListClipper_StepInternal(ImGuiListClipper* clipper) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - ImGuiListClipperData* data = (ImGuiListClipperData*)TempData; + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + IM_ASSERT(data != NULL && "Called ImGuiListClipper::Step() too many times, or before ImGuiListClipper::Begin() ?"); ImGuiTable* table = g.CurrentTable; if (table && table->IsInsideRow) ImGui::TableEndRow(table); // No items - if (ItemsCount == 0 || GetSkipItemForListClipping()) - return (void)End(), false; + if (clipper->ItemsCount == 0 || GetSkipItemForListClipping()) + return false; // While we are in frozen row state, keep displaying items one by one, unclipped // FIXME: Could be stored as a table-agnostic state. if (data->StepNo == 0 && table != NULL && !table->IsUnfrozenRows) { - DisplayStart = data->ItemsFrozen; - DisplayEnd = data->ItemsFrozen + 1; - if (DisplayStart >= ItemsCount) - return (void)End(), false; - data->ItemsFrozen++; + clipper->DisplayStart = data->ItemsFrozen; + clipper->DisplayEnd = ImMin(data->ItemsFrozen + 1, clipper->ItemsCount); + if (clipper->DisplayStart < clipper->DisplayEnd) + data->ItemsFrozen++; return true; } @@ -2490,15 +2823,13 @@ bool ImGuiListClipper::Step() bool calc_clipping = false; if (data->StepNo == 0) { - StartPosY = window->DC.CursorPos.y; - if (ItemsHeight <= 0.0f) + clipper->StartPosY = window->DC.CursorPos.y; + if (clipper->ItemsHeight <= 0.0f) { // Submit the first item (or range) so we can measure its height (generally the first range is 0..1) data->Ranges.push_front(ImGuiListClipperRange::FromIndices(data->ItemsFrozen, data->ItemsFrozen + 1)); - DisplayStart = ImMax(data->Ranges[0].Min, data->ItemsFrozen); - DisplayEnd = ImMin(data->Ranges[0].Max, ItemsCount); - if (DisplayStart == DisplayEnd) - return (void)End(), false; + clipper->DisplayStart = ImMax(data->Ranges[0].Min, data->ItemsFrozen); + clipper->DisplayEnd = ImMin(data->Ranges[0].Max, clipper->ItemsCount); data->StepNo = 1; return true; } @@ -2506,29 +2837,29 @@ bool ImGuiListClipper::Step() } // Step 1: Let the clipper infer height from first range - if (ItemsHeight <= 0.0f) + if (clipper->ItemsHeight <= 0.0f) { IM_ASSERT(data->StepNo == 1); if (table) - IM_ASSERT(table->RowPosY1 == StartPosY && table->RowPosY2 == window->DC.CursorPos.y); + IM_ASSERT(table->RowPosY1 == clipper->StartPosY && table->RowPosY2 == window->DC.CursorPos.y); - ItemsHeight = (window->DC.CursorPos.y - StartPosY) / (float)(DisplayEnd - DisplayStart); - bool affected_by_floating_point_precision = ImIsFloatAboveGuaranteedIntegerPrecision(StartPosY) || ImIsFloatAboveGuaranteedIntegerPrecision(window->DC.CursorPos.y); + clipper->ItemsHeight = (window->DC.CursorPos.y - clipper->StartPosY) / (float)(clipper->DisplayEnd - clipper->DisplayStart); + bool affected_by_floating_point_precision = ImIsFloatAboveGuaranteedIntegerPrecision(clipper->StartPosY) || ImIsFloatAboveGuaranteedIntegerPrecision(window->DC.CursorPos.y); if (affected_by_floating_point_precision) - ItemsHeight = window->DC.PrevLineSize.y + g.Style.ItemSpacing.y; // FIXME: Technically wouldn't allow multi-line entries. + clipper->ItemsHeight = window->DC.PrevLineSize.y + g.Style.ItemSpacing.y; // FIXME: Technically wouldn't allow multi-line entries. - IM_ASSERT(ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); + IM_ASSERT(clipper->ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); calc_clipping = true; // If item height had to be calculated, calculate clipping afterwards. } // Step 0 or 1: Calculate the actual ranges of visible elements. - const int already_submitted = DisplayEnd; + const int already_submitted = clipper->DisplayEnd; if (calc_clipping) { if (g.LogEnabled) { // If logging is active, do not perform any clipping - data->Ranges.push_back(ImGuiListClipperRange::FromIndices(0, ItemsCount)); + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(0, clipper->ItemsCount)); } else { @@ -2537,7 +2868,7 @@ bool ImGuiListClipper::Step() if (is_nav_request) data->Ranges.push_back(ImGuiListClipperRange::FromPositions(g.NavScoringNoClipRect.Min.y, g.NavScoringNoClipRect.Max.y, 0, 0)); if (is_nav_request && (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) && g.NavTabbingDir == -1) - data->Ranges.push_back(ImGuiListClipperRange::FromIndices(ItemsCount - 1, ItemsCount)); + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(clipper->ItemsCount - 1, clipper->ItemsCount)); // Add focused/active item ImRect nav_rect_abs = ImGui::WindowRectRelToAbs(window, window->NavRectRel[0]); @@ -2557,10 +2888,10 @@ bool ImGuiListClipper::Step() for (int i = 0; i < data->Ranges.Size; i++) if (data->Ranges[i].PosToIndexConvert) { - int m1 = (int)(((double)data->Ranges[i].Min - window->DC.CursorPos.y - data->LossynessOffset) / ItemsHeight); - int m2 = (int)((((double)data->Ranges[i].Max - window->DC.CursorPos.y - data->LossynessOffset) / ItemsHeight) + 0.999999f); - data->Ranges[i].Min = ImClamp(already_submitted + m1 + data->Ranges[i].PosToIndexOffsetMin, already_submitted, ItemsCount - 1); - data->Ranges[i].Max = ImClamp(already_submitted + m2 + data->Ranges[i].PosToIndexOffsetMax, data->Ranges[i].Min + 1, ItemsCount); + int m1 = (int)(((double)data->Ranges[i].Min - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight); + int m2 = (int)((((double)data->Ranges[i].Max - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight) + 0.999999f); + data->Ranges[i].Min = ImClamp(already_submitted + m1 + data->Ranges[i].PosToIndexOffsetMin, already_submitted, clipper->ItemsCount - 1); + data->Ranges[i].Max = ImClamp(already_submitted + m2 + data->Ranges[i].PosToIndexOffsetMax, data->Ranges[i].Min + 1, clipper->ItemsCount); data->Ranges[i].PosToIndexConvert = false; } ImGuiListClipper_SortAndFuseRanges(data->Ranges, data->StepNo); @@ -2569,23 +2900,42 @@ bool ImGuiListClipper::Step() // Step 0+ (if item height is given in advance) or 1+: Display the next range in line. if (data->StepNo < data->Ranges.Size) { - DisplayStart = ImMax(data->Ranges[data->StepNo].Min, already_submitted); - DisplayEnd = ImMin(data->Ranges[data->StepNo].Max, ItemsCount); - if (DisplayStart > already_submitted) //-V1051 - ImGuiListClipper_SeekCursorForItem(this, DisplayStart); + clipper->DisplayStart = ImMax(data->Ranges[data->StepNo].Min, already_submitted); + clipper->DisplayEnd = ImMin(data->Ranges[data->StepNo].Max, clipper->ItemsCount); + if (clipper->DisplayStart > already_submitted) //-V1051 + ImGuiListClipper_SeekCursorForItem(clipper, clipper->DisplayStart); data->StepNo++; return true; } // After the last step: Let the clipper validate that we have reached the expected Y position (corresponding to element DisplayEnd), // Advance the cursor to the end of the list and then returns 'false' to end the loop. - if (ItemsCount < INT_MAX) - ImGuiListClipper_SeekCursorForItem(this, ItemsCount); - ItemsCount = -1; + if (clipper->ItemsCount < INT_MAX) + ImGuiListClipper_SeekCursorForItem(clipper, clipper->ItemsCount); return false; } +bool ImGuiListClipper::Step() +{ + ImGuiContext& g = *GImGui; + bool need_items_height = (ItemsHeight <= 0.0f); + bool ret = ImGuiListClipper_StepInternal(this); + if (ret && (DisplayStart == DisplayEnd)) + ret = false; + if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); + if (need_items_height && ItemsHeight > 0.0f) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); + if (ret) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); + else + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); + if (!ret) + End(); + return ret; +} + //----------------------------------------------------------------------------- // [SECTION] STYLING //----------------------------------------------------------------------------- @@ -2652,6 +3002,11 @@ void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col) void ImGui::PopStyleColor(int count) { ImGuiContext& g = *GImGui; + if (g.ColorStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.ColorStack.Size > count, "Calling PopStyleColor() too many times: stack underflow."); + count = g.ColorStack.Size; + } while (count > 0) { ImGuiColorMod& backup = g.ColorStack.back(); @@ -2741,6 +3096,11 @@ void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val) void ImGui::PopStyleVar(int count) { ImGuiContext& g = *GImGui; + if (g.StyleVarStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.StyleVarStack.Size > count, "Calling PopStyleVar() too many times: stack underflow."); + count = g.StyleVarStack.Size; + } while (count > 0) { // We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it. @@ -3066,6 +3426,34 @@ void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFl } } +void ImGui::RenderMouseCursor(ImVec2 base_pos, float base_scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); + ImFontAtlas* font_atlas = g.DrawListSharedData.Font->ContainerAtlas; + for (int n = 0; n < g.Viewports.Size; n++) + { + // We scale cursor with current viewport/monitor, however Windows 10 for its own hardware cursor seems to be using a different scale factor. + ImVec2 offset, size, uv[4]; + if (!font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2])) + continue; + ImGuiViewportP* viewport = g.Viewports[n]; + const ImVec2 pos = base_pos - offset; + const float scale = base_scale * viewport->DpiScale; + if (!viewport->GetMainRect().Overlaps(ImRect(pos, pos + ImVec2(size.x + 2, size.y + 2) * scale))) + continue; + ImDrawList* draw_list = GetForegroundDrawList(viewport); + ImTextureID tex_id = font_atlas->TexID; + draw_list->PushTextureID(tex_id); + draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill); + draw_list->PopTextureID(); + } +} + + //----------------------------------------------------------------------------- // [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) //----------------------------------------------------------------------------- @@ -3081,6 +3469,7 @@ ImGuiWindow::ImGuiWindow(ImGuiContext* context, const char* name) : DrawListInst ViewportAllowPlatformMonitorExtend = -1; ViewportPos = ImVec2(FLT_MAX, FLT_MAX); MoveId = GetID("#MOVE"); + TabId = GetID("#TAB"); ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f); AutoFitFramesX = AutoFitFramesY = -1; @@ -3110,7 +3499,6 @@ ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) { ImGuiID seed = IDStack.back(); ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); - ImGui::KeepAliveID(id); ImGuiContext& g = *GImGui; if (g.DebugHookIdInfo == id) ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); @@ -3121,7 +3509,6 @@ ImGuiID ImGuiWindow::GetID(const void* ptr) { ImGuiID seed = IDStack.back(); ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); - ImGui::KeepAliveID(id); ImGuiContext& g = *GImGui; if (g.DebugHookIdInfo == id) ImGui::DebugHookIdInfo(id, ImGuiDataType_Pointer, ptr, NULL); @@ -3129,37 +3516,6 @@ ImGuiID ImGuiWindow::GetID(const void* ptr) } ImGuiID ImGuiWindow::GetID(int n) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashData(&n, sizeof(n), seed); - ImGui::KeepAliveID(id); - ImGuiContext& g = *GImGui; - if (g.DebugHookIdInfo == id) - ImGui::DebugHookIdInfo(id, ImGuiDataType_S32, (void*)(intptr_t)n, NULL); - return id; -} - -ImGuiID ImGuiWindow::GetIDNoKeepAlive(const char* str, const char* str_end) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); - ImGuiContext& g = *GImGui; - if (g.DebugHookIdInfo == id) - ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); - return id; -} - -ImGuiID ImGuiWindow::GetIDNoKeepAlive(const void* ptr) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); - ImGuiContext& g = *GImGui; - if (g.DebugHookIdInfo == id) - ImGui::DebugHookIdInfo(id, ImGuiDataType_Pointer, ptr, NULL); - return id; -} - -ImGuiID ImGuiWindow::GetIDNoKeepAlive(int n) { ImGuiID seed = IDStack.back(); ImGuiID id = ImHashData(&n, sizeof(n), seed); @@ -3175,7 +3531,6 @@ ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs) ImGuiID seed = IDStack.back(); ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs); ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed); - ImGui::KeepAliveID(id); return id; } @@ -3225,9 +3580,21 @@ void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window) void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) { ImGuiContext& g = *GImGui; + + // While most behaved code would make an effort to not steal active id during window move/drag operations, + // we at least need to be resilient to it. Cancelling the move is rather aggressive and users of 'master' branch + // may prefer the weird ill-defined half working situation ('docking' did assert), so may need to rework that. + if (g.MovingWindow != NULL && g.ActiveId == g.MovingWindow->MoveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() cancel MovingWindow\n"); + g.MovingWindow = NULL; + } + + // Set active id g.ActiveIdIsJustActivated = (g.ActiveId != id); if (g.ActiveIdIsJustActivated) { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() old:0x%08X (window \"%s\") -> new:0x%08X (window \"%s\")\n", g.ActiveId, g.ActiveIdWindow ? g.ActiveIdWindow->Name : "", id, window ? window->Name : ""); g.ActiveIdTimer = 0.0f; g.ActiveIdHasBeenPressedBefore = false; g.ActiveIdHasBeenEditedBefore = false; @@ -3246,15 +3613,16 @@ void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) if (id) { g.ActiveIdIsAlive = id; - g.ActiveIdSource = (g.NavActivateId == id || g.NavActivateInputId == id || g.NavJustMovedToId == id) ? ImGuiInputSource_Nav : ImGuiInputSource_Mouse; + g.ActiveIdSource = (g.NavActivateId == id || g.NavActivateInputId == id || g.NavJustMovedToId == id) ? (ImGuiInputSource)ImGuiInputSource_Nav : ImGuiInputSource_Mouse; } // Clear declaration of inputs claimed by the widget // (Please note that this is WIP and not all keys/inputs are thoroughly declared by all widgets yet) - g.ActiveIdUsingMouseWheel = false; g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO g.ActiveIdUsingNavInputMask = 0x00; - g.ActiveIdUsingKeyInputMask = 0x00; +#endif } void ImGui::ClearActiveID() @@ -3267,7 +3635,6 @@ void ImGui::SetHoveredID(ImGuiID id) ImGuiContext& g = *GImGui; g.HoveredId = id; g.HoveredIdAllowOverlap = false; - g.HoveredIdUsingMouseWheel = false; if (id != 0 && g.HoveredIdPreviousFrame != id) g.HoveredIdTimer = g.HoveredIdNotActiveTimer = 0.0f; } @@ -3278,6 +3645,8 @@ ImGuiID ImGui::GetHoveredID() return g.HoveredId ? g.HoveredId : g.HoveredIdPreviousFrame; } +// This is called by ItemAdd(). +// Code not using ItemAdd() may need to call this manually otherwise ActiveId will be cleared. In IMGUI_VERSION_NUM < 18717 this was called by GetID(). void ImGui::KeepAliveID(ImGuiID id) { ImGuiContext& g = *GImGui; @@ -3290,7 +3659,7 @@ void ImGui::KeepAliveID(ImGuiID id) void ImGui::MarkItemEdited(ImGuiID id) { // This marking is solely to be able to provide info for IsItemDeactivatedAfterEdit(). - // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need need to fill the data. + // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need to fill the data. ImGuiContext& g = *GImGui; IM_ASSERT(g.ActiveId == id || g.ActiveId == 0 || g.DragDropActive); IM_UNUSED(id); // Avoid unused variable warnings when asserts are compiled out. @@ -3310,11 +3679,17 @@ static inline bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFla if (focused_root_window->WasActive && focused_root_window != window->RootWindowDockTree) { // For the purpose of those flags we differentiate "standard popup" from "modal popup" - // NB: The order of those two tests is important because Modal windows are also Popups. + // NB: The 'else' is important because Modal windows are also Popups. + bool want_inhibit = false; if (focused_root_window->Flags & ImGuiWindowFlags_Modal) - return false; - if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) - return false; + want_inhibit = true; + else if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + want_inhibit = true; + + // Inhibit hover unless the window is within the stack of our modal/popup + if (want_inhibit) + if (!ImGui::IsWindowWithinBeginStackOf(window->RootWindow, focused_root_window)) + return false; } // Filter by viewport @@ -3332,7 +3707,7 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - if (g.NavDisableMouseHover && !g.NavDisableHighlight) + if (g.NavDisableMouseHover && !g.NavDisableHighlight && !(flags & ImGuiHoveredFlags_NoNavOverride)) { if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) return false; @@ -3347,6 +3722,7 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) return false; IM_ASSERT((flags & (ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_NoPopupHierarchy | ImGuiHoveredFlags_DockHierarchy)) == 0); // Flags not supported by this function + // Done with rectangle culling so we can perform heavier checks now // Test if we are hovering the right window (our window could be behind another window) // [2021/03/02] Reworked / reverted the revert, finally. Note we want e.g. BeginGroup/ItemAdd/EndGroup to work as well. (#3851) // [2017/10/16] Reverted commit 344d48be3 and testing RootWindow instead. I believe it is correct to NOT test for RootWindow but this leaves us unable @@ -3358,12 +3734,13 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) // Test if another item is active (e.g. being dragged) if ((flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) == 0) - if (g.ActiveId != 0 && g.ActiveId != g.LastItemData.ID && !g.ActiveIdAllowOverlap && g.ActiveId != window->MoveId) - return false; + if (g.ActiveId != 0 && g.ActiveId != g.LastItemData.ID && !g.ActiveIdAllowOverlap) + if (g.ActiveId != window->MoveId && g.ActiveId != window->TabId) + return false; // Test if interactions on this window are blocked by an active popup or modal. // The ImGuiHoveredFlags_AllowWhenBlockedByPopup flag will be tested here. - if (!IsWindowContentHoverable(window, flags)) + if (!IsWindowContentHoverable(window, flags) && !(g.LastItemData.InFlags & ImGuiItemFlags_NoWindowHoverableCheck)) return false; // Test if the item is disabled @@ -3371,11 +3748,30 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) return false; // Special handling for calling after Begin() which represent the title bar or tab. - // When the window is collapsed (SkipItems==true) that last item will never be overwritten so we need to detect the case. - if ((g.LastItemData.ID == window->ID || g.LastItemData.ID == window->MoveId) && window->WriteAccessed) + // When the window is skipped/collapsed (SkipItems==true) that last item (always ->MoveId submitted by Begin) + // will never be overwritten so we need to detect the case. + if (g.LastItemData.ID == window->MoveId && window->WriteAccessed) return false; } + // Handle hover delay + // (some ideas: https://www.nngroup.com/articles/timing-exposing-content) + float delay; + if (flags & ImGuiHoveredFlags_DelayNormal) + delay = g.IO.HoverDelayNormal; + else if (flags & ImGuiHoveredFlags_DelayShort) + delay = g.IO.HoverDelayShort; + else + delay = 0.0f; + if (delay > 0.0f) + { + ImGuiID hover_delay_id = (g.LastItemData.ID != 0) ? g.LastItemData.ID : window->GetIDFromRectangle(g.LastItemData.Rect); + if ((flags & ImGuiHoveredFlags_NoSharedDelay) && (g.HoverDelayIdPreviousFrame != hover_delay_id)) + g.HoverDelayTimer = 0.0f; + g.HoverDelayId = hover_delay_id; + return g.HoverDelayTimer >= delay; + } + return true; } @@ -3393,9 +3789,10 @@ bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) return false; if (!IsMouseHoveringRect(bb.Min, bb.Max)) return false; - if (g.NavDisableMouseHover) - return false; - if (!IsWindowContentHoverable(window, ImGuiHoveredFlags_None)) + + // Done with rectangle culling so we can perform heavier checks now. + ImGuiItemFlags item_flags = (g.LastItemData.ID == id ? g.LastItemData.InFlags : g.CurrentItemFlags); + if (!(item_flags & ImGuiItemFlags_NoWindowHoverableCheck) && !IsWindowContentHoverable(window, ImGuiHoveredFlags_None)) { g.HoveredIdDisabled = true; return false; @@ -3407,7 +3804,6 @@ bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) SetHoveredID(id); // When disabled we'll return false but still set HoveredId - ImGuiItemFlags item_flags = (g.LastItemData.ID == id ? g.LastItemData.InFlags : g.CurrentItemFlags); if (item_flags & ImGuiItemFlags_Disabled) { // Release active id if turning disabled @@ -3422,17 +3818,20 @@ bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) // [DEBUG] Item Picker tool! // We perform the check here because SetHoveredID() is not frequently called (1~ time a frame), making // the cost of this tool near-zero. We can get slightly better call-stack and support picking non-hovered - // items if we perform the test in ItemAdd(), but that would incur a small runtime cost. - // #define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX in imconfig.h if you want this check to also be performed in ItemAdd(). + // items if we performed the test in ItemAdd(), but that would incur a small runtime cost. if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id) GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255)); if (g.DebugItemPickerBreakId == id) IM_DEBUG_BREAK(); } + if (g.NavDisableMouseHover) + return false; + return true; } +// FIXME: This is inlined/duplicated in ItemAdd() bool ImGui::IsClippedEx(const ImRect& bb, ImGuiID id) { ImGuiContext& g = *GImGui; @@ -3547,20 +3946,23 @@ void ImGui::GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeF ImGuiContext* ImGui::CreateContext(ImFontAtlas* shared_font_atlas) { + ImGuiContext* prev_ctx = GetCurrentContext(); ImGuiContext* ctx = IM_NEW(ImGuiContext)(shared_font_atlas); - if (GImGui == NULL) - SetCurrentContext(ctx); - Initialize(ctx); + SetCurrentContext(ctx); + Initialize(); + if (prev_ctx != NULL) + SetCurrentContext(prev_ctx); // Restore previous context if any, else keep new one. return ctx; } void ImGui::DestroyContext(ImGuiContext* ctx) { - if (ctx == NULL) - ctx = GImGui; - Shutdown(ctx); - if (GImGui == ctx) - SetCurrentContext(NULL); + ImGuiContext* prev_ctx = GetCurrentContext(); + if (ctx == NULL) //-V1051 + ctx = prev_ctx; + SetCurrentContext(ctx); + Shutdown(); + SetCurrentContext((prev_ctx != ctx) ? prev_ctx : NULL); IM_DELETE(ctx); } @@ -3686,7 +4088,7 @@ void ImGui::StartMouseMovingWindow(ImGuiWindow* window) g.NavDisableHighlight = true; g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - window->RootWindowDockTree->Pos; g.ActiveIdNoClearOnFocusLoss = true; - SetActiveIdUsingNavAndKeys(); + SetActiveIdUsingAllKeyboardKeys(); bool can_move_window = true; if ((window->Flags & ImGuiWindowFlags_NoMove) || (window->RootWindowDockTree->Flags & ImGuiWindowFlags_NoMove)) @@ -3741,13 +4143,12 @@ void ImGui::UpdateMouseMovingWindowNewFrame() ImGuiWindow* moving_window = g.MovingWindow->RootWindowDockTree; // When a window stop being submitted while being dragged, it may will its viewport until next Begin() - const bool window_disappared = (!moving_window->WasActive || moving_window->Viewport == NULL); + const bool window_disappared = ((!moving_window->WasActive && !moving_window->Active) || moving_window->Viewport == NULL); if (g.IO.MouseDown[0] && IsMousePosValid(&g.IO.MousePos) && !window_disappared) { ImVec2 pos = g.IO.MousePos - g.ActiveIdClickOffset; if (moving_window->Pos.x != pos.x || moving_window->Pos.y != pos.y) { - MarkIniSettingsDirty(moving_window); SetWindowPos(moving_window, pos, ImGuiCond_Always); if (moving_window->ViewportOwned) // Synchronize viewport immediately because some overlays may relies on clipping rectangle before we Begin() into the window. { @@ -3845,6 +4246,8 @@ void ImGui::UpdateMouseMovingWindowEndFrame() } } +// This is called during NewFrame()->UpdateViewportsNewFrame() only. +// Need to keep in sync with SetWindowPos() static void TranslateWindow(ImGuiWindow* window, const ImVec2& delta) { window->Pos += delta; @@ -3854,6 +4257,7 @@ static void TranslateWindow(ImGuiWindow* window, const ImVec2& delta) window->DC.CursorPos += delta; window->DC.CursorStartPos += delta; window->DC.CursorMaxPos += delta; + window->DC.IdealMaxPos += delta; } static void ScaleWindow(ImGuiWindow* window, float scale) @@ -3870,77 +4274,251 @@ static bool IsWindowActiveAndVisible(ImGuiWindow* window) return (window->Active) && (!window->Hidden); } +static void UpdateAliasKey(ImGuiKey key, bool v, float analog_value) +{ + IM_ASSERT(ImGui::IsAliasKey(key)); + ImGuiKeyData* key_data = ImGui::GetKeyData(key); + key_data->Down = v; + key_data->AnalogValue = analog_value; +} + +// Rewrite routing data buffers to strip old entries + sort by key to make queries not touch scattered data. +// Entries D,A,B,B,A,C,B --> A,A,B,B,B,C,D +// Index A:1 B:2 C:5 D:0 --> A:0 B:2 C:5 D:6 +// See 'Metrics->Key Owners & Shortcut Routing' to visualize the result of that operation. +static void UpdateKeyRoutingTable(ImGuiKeyRoutingTable* rt) +{ + ImGuiContext& g = *GImGui; + rt->EntriesNext.resize(0); + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + const int new_routing_start_idx = rt->EntriesNext.Size; + ImGuiKeyRoutingData* routing_entry; + for (int old_routing_idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; old_routing_idx != -1; old_routing_idx = routing_entry->NextEntryIndex) + { + routing_entry = &rt->Entries[old_routing_idx]; + routing_entry->RoutingCurr = routing_entry->RoutingNext; // Update entry + routing_entry->RoutingNext = ImGuiKeyOwner_None; + routing_entry->RoutingNextScore = 255; + if (routing_entry->RoutingCurr == ImGuiKeyOwner_None) + continue; + rt->EntriesNext.push_back(*routing_entry); // Write alive ones into new buffer + + // Apply routing to owner if there's no owner already (RoutingCurr == None at this point) + if (routing_entry->Mods == g.IO.KeyMods) + { + ImGuiKeyOwnerData* owner_data = ImGui::GetKeyOwnerData(key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + owner_data->OwnerCurr = routing_entry->RoutingCurr; + } + } + + // Rewrite linked-list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = (ImGuiKeyRoutingIndex)(new_routing_start_idx < rt->EntriesNext.Size ? new_routing_start_idx : -1); + for (int n = new_routing_start_idx; n < rt->EntriesNext.Size; n++) + rt->EntriesNext[n].NextEntryIndex = (ImGuiKeyRoutingIndex)((n + 1 < rt->EntriesNext.Size) ? n + 1 : -1); + } + rt->Entries.swap(rt->EntriesNext); // Swap new and old indexes +} + +// [Internal] Do not use directly (should read io.KeyMods instead) +static ImGuiKeyChord GetMergedModsFromBools() +{ + ImGuiContext& g = *GImGui; + ImGuiKeyChord key_chord = 0; + if (g.IO.KeyCtrl) { key_chord |= ImGuiMod_Ctrl; } + if (g.IO.KeyShift) { key_chord |= ImGuiMod_Shift; } + if (g.IO.KeyAlt) { key_chord |= ImGuiMod_Alt; } + if (g.IO.KeySuper) { key_chord |= ImGuiMod_Super; } + return key_chord; +} + +static void ImGui::UpdateKeyboardInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Import legacy keys or verify they are not used +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (io.BackendUsingLegacyKeyArrays == 0) + { + // Backend used new io.AddKeyEvent() API: Good! Verify that old arrays are never written to externally. + for (int n = 0; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT((io.KeysDown[n] == false || IsKeyDown((ImGuiKey)n)) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + } + else + { + if (g.FrameCount == 0) + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT(g.IO.KeyMap[n] == -1 && "Backend is not allowed to write to io.KeyMap[0..511]!"); + + // Build reverse KeyMap (Named -> Legacy) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + if (io.KeyMap[n] != -1) + { + IM_ASSERT(IsLegacyKey((ImGuiKey)io.KeyMap[n])); + io.KeyMap[io.KeyMap[n]] = n; + } + + // Import legacy keys into new ones + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + if (io.KeysDown[n] || io.BackendUsingLegacyKeyArrays == 1) + { + const ImGuiKey key = (ImGuiKey)(io.KeyMap[n] != -1 ? io.KeyMap[n] : n); + IM_ASSERT(io.KeyMap[n] == -1 || IsNamedKey(key)); + io.KeysData[key].Down = io.KeysDown[n]; + if (key != n) + io.KeysDown[key] = io.KeysDown[n]; // Allow legacy code using io.KeysDown[GetKeyIndex()] with old backends + io.BackendUsingLegacyKeyArrays = 1; + } + if (io.BackendUsingLegacyKeyArrays == 1) + { + GetKeyData(ImGuiMod_Ctrl)->Down = io.KeyCtrl; + GetKeyData(ImGuiMod_Shift)->Down = io.KeyShift; + GetKeyData(ImGuiMod_Alt)->Down = io.KeyAlt; + GetKeyData(ImGuiMod_Super)->Down = io.KeySuper; + } + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + if (io.BackendUsingLegacyNavInputArray && nav_gamepad_active) + { + #define MAP_LEGACY_NAV_INPUT_TO_KEY1(_KEY, _NAV1) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f); io.KeysData[_KEY].AnalogValue = io.NavInputs[_NAV1]; } while (0) + #define MAP_LEGACY_NAV_INPUT_TO_KEY2(_KEY, _NAV1, _NAV2) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f) || (io.NavInputs[_NAV2] > 0.0f); io.KeysData[_KEY].AnalogValue = ImMax(io.NavInputs[_NAV1], io.NavInputs[_NAV2]); } while (0) + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceDown, ImGuiNavInput_Activate); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceRight, ImGuiNavInput_Cancel); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceLeft, ImGuiNavInput_Menu); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceUp, ImGuiNavInput_Input); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadLeft, ImGuiNavInput_DpadLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadRight, ImGuiNavInput_DpadRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadUp, ImGuiNavInput_DpadUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadDown, ImGuiNavInput_DpadDown); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadL1, ImGuiNavInput_FocusPrev, ImGuiNavInput_TweakSlow); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadR1, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakFast); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickLeft, ImGuiNavInput_LStickLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickRight, ImGuiNavInput_LStickRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickUp, ImGuiNavInput_LStickUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickDown, ImGuiNavInput_LStickDown); + #undef NAV_MAP_KEY + } +#endif + +#endif + + // Synchronize io.KeyMods with individual modifiers io.KeyXXX bools, update aliases + io.KeyMods = GetMergedModsFromBools(); + for (int n = 0; n < ImGuiMouseButton_COUNT; n++) + UpdateAliasKey(MouseButtonToKey(n), io.MouseDown[n], io.MouseDown[n] ? 1.0f : 0.0f); + UpdateAliasKey(ImGuiKey_MouseWheelX, io.MouseWheelH != 0.0f, io.MouseWheelH); + UpdateAliasKey(ImGuiKey_MouseWheelY, io.MouseWheel != 0.0f, io.MouseWheel); + + // Clear gamepad data if disabled + if ((io.BackendFlags & ImGuiBackendFlags_HasGamepad) == 0) + for (int i = ImGuiKey_Gamepad_BEGIN; i < ImGuiKey_Gamepad_END; i++) + { + io.KeysData[i - ImGuiKey_KeysData_OFFSET].Down = false; + io.KeysData[i - ImGuiKey_KeysData_OFFSET].AnalogValue = 0.0f; + } + + // Update keys + for (int i = 0; i < ImGuiKey_KeysData_SIZE; i++) + { + ImGuiKeyData* key_data = &io.KeysData[i]; + key_data->DownDurationPrev = key_data->DownDuration; + key_data->DownDuration = key_data->Down ? (key_data->DownDuration < 0.0f ? 0.0f : key_data->DownDuration + io.DeltaTime) : -1.0f; + } + + // Update keys/input owner (named keys only): one entry per key + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyData* key_data = &io.KeysData[key - ImGuiKey_KeysData_OFFSET]; + ImGuiKeyOwnerData* owner_data = &g.KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; + owner_data->OwnerCurr = owner_data->OwnerNext; + if (!key_data->Down) // Important: ownership is released on the frame after a release. Ensure a 'MouseDown -> CloseWindow -> MouseUp' chain doesn't lead to someone else seeing the MouseUp. + owner_data->OwnerNext = ImGuiKeyOwner_None; + owner_data->LockThisFrame = owner_data->LockUntilRelease = owner_data->LockUntilRelease && key_data->Down; // Clear LockUntilRelease when key is not Down anymore + } + + UpdateKeyRoutingTable(&g.KeysRoutingTable); +} + static void ImGui::UpdateMouseInputs() { ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; // Round mouse position to avoid spreading non-rounded position (e.g. UpdateManualResize doesn't support them well) - if (IsMousePosValid(&g.IO.MousePos)) - g.IO.MousePos = g.MouseLastValidPos = ImFloor(g.IO.MousePos); + if (IsMousePosValid(&io.MousePos)) + io.MousePos = g.MouseLastValidPos = ImFloorSigned(io.MousePos); // If mouse just appeared or disappeared (usually denoted by -FLT_MAX components) we cancel out movement in MouseDelta - if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MousePosPrev)) - g.IO.MouseDelta = g.IO.MousePos - g.IO.MousePosPrev; + if (IsMousePosValid(&io.MousePos) && IsMousePosValid(&io.MousePosPrev)) + io.MouseDelta = io.MousePos - io.MousePosPrev; else - g.IO.MouseDelta = ImVec2(0.0f, 0.0f); + io.MouseDelta = ImVec2(0.0f, 0.0f); // If mouse moved we re-enable mouse hovering in case it was disabled by gamepad/keyboard. In theory should use a >0.0f threshold but would need to reset in everywhere we set this to true. - if (g.IO.MouseDelta.x != 0.0f || g.IO.MouseDelta.y != 0.0f) + if (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f) g.NavDisableMouseHover = false; - g.IO.MousePosPrev = g.IO.MousePos; - for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) + io.MousePosPrev = io.MousePos; + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) { - g.IO.MouseClicked[i] = g.IO.MouseDown[i] && g.IO.MouseDownDuration[i] < 0.0f; - g.IO.MouseClickedCount[i] = 0; // Will be filled below - g.IO.MouseReleased[i] = !g.IO.MouseDown[i] && g.IO.MouseDownDuration[i] >= 0.0f; - g.IO.MouseDownDurationPrev[i] = g.IO.MouseDownDuration[i]; - g.IO.MouseDownDuration[i] = g.IO.MouseDown[i] ? (g.IO.MouseDownDuration[i] < 0.0f ? 0.0f : g.IO.MouseDownDuration[i] + g.IO.DeltaTime) : -1.0f; - if (g.IO.MouseClicked[i]) + io.MouseClicked[i] = io.MouseDown[i] && io.MouseDownDuration[i] < 0.0f; + io.MouseClickedCount[i] = 0; // Will be filled below + io.MouseReleased[i] = !io.MouseDown[i] && io.MouseDownDuration[i] >= 0.0f; + io.MouseDownDurationPrev[i] = io.MouseDownDuration[i]; + io.MouseDownDuration[i] = io.MouseDown[i] ? (io.MouseDownDuration[i] < 0.0f ? 0.0f : io.MouseDownDuration[i] + io.DeltaTime) : -1.0f; + if (io.MouseClicked[i]) { bool is_repeated_click = false; - if ((float)(g.Time - g.IO.MouseClickedTime[i]) < g.IO.MouseDoubleClickTime) + if ((float)(g.Time - io.MouseClickedTime[i]) < io.MouseDoubleClickTime) { - ImVec2 delta_from_click_pos = IsMousePosValid(&g.IO.MousePos) ? (g.IO.MousePos - g.IO.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); - if (ImLengthSqr(delta_from_click_pos) < g.IO.MouseDoubleClickMaxDist * g.IO.MouseDoubleClickMaxDist) + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + if (ImLengthSqr(delta_from_click_pos) < io.MouseDoubleClickMaxDist * io.MouseDoubleClickMaxDist) is_repeated_click = true; } if (is_repeated_click) - g.IO.MouseClickedLastCount[i]++; + io.MouseClickedLastCount[i]++; else - g.IO.MouseClickedLastCount[i] = 1; - g.IO.MouseClickedTime[i] = g.Time; - g.IO.MouseClickedPos[i] = g.IO.MousePos; - g.IO.MouseClickedCount[i] = g.IO.MouseClickedLastCount[i]; - g.IO.MouseDragMaxDistanceAbs[i] = ImVec2(0.0f, 0.0f); - g.IO.MouseDragMaxDistanceSqr[i] = 0.0f; + io.MouseClickedLastCount[i] = 1; + io.MouseClickedTime[i] = g.Time; + io.MouseClickedPos[i] = io.MousePos; + io.MouseClickedCount[i] = io.MouseClickedLastCount[i]; + io.MouseDragMaxDistanceAbs[i] = ImVec2(0.0f, 0.0f); + io.MouseDragMaxDistanceSqr[i] = 0.0f; } - else if (g.IO.MouseDown[i]) + else if (io.MouseDown[i]) { // Maintain the maximum distance we reaching from the initial click position, which is used with dragging threshold - ImVec2 delta_from_click_pos = IsMousePosValid(&g.IO.MousePos) ? (g.IO.MousePos - g.IO.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); - g.IO.MouseDragMaxDistanceSqr[i] = ImMax(g.IO.MouseDragMaxDistanceSqr[i], ImLengthSqr(delta_from_click_pos)); - g.IO.MouseDragMaxDistanceAbs[i].x = ImMax(g.IO.MouseDragMaxDistanceAbs[i].x, delta_from_click_pos.x < 0.0f ? -delta_from_click_pos.x : delta_from_click_pos.x); - g.IO.MouseDragMaxDistanceAbs[i].y = ImMax(g.IO.MouseDragMaxDistanceAbs[i].y, delta_from_click_pos.y < 0.0f ? -delta_from_click_pos.y : delta_from_click_pos.y); + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + io.MouseDragMaxDistanceSqr[i] = ImMax(io.MouseDragMaxDistanceSqr[i], ImLengthSqr(delta_from_click_pos)); + io.MouseDragMaxDistanceAbs[i].x = ImMax(io.MouseDragMaxDistanceAbs[i].x, delta_from_click_pos.x < 0.0f ? -delta_from_click_pos.x : delta_from_click_pos.x); + io.MouseDragMaxDistanceAbs[i].y = ImMax(io.MouseDragMaxDistanceAbs[i].y, delta_from_click_pos.y < 0.0f ? -delta_from_click_pos.y : delta_from_click_pos.y); } // We provide io.MouseDoubleClicked[] as a legacy service - g.IO.MouseDoubleClicked[i] = (g.IO.MouseClickedCount[i] == 2); + io.MouseDoubleClicked[i] = (io.MouseClickedCount[i] == 2); // Clicking any mouse button reactivate mouse hovering which may have been deactivated by gamepad/keyboard navigation - if (g.IO.MouseClicked[i]) + if (io.MouseClicked[i]) g.NavDisableMouseHover = false; } } -static void StartLockWheelingWindow(ImGuiWindow* window) +static void LockWheelingWindow(ImGuiWindow* window, float wheel_amount) { ImGuiContext& g = *GImGui; + if (window) + g.WheelingWindowReleaseTimer = ImMin(g.WheelingWindowReleaseTimer + ImAbs(wheel_amount) * WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER, WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER); + else + g.WheelingWindowReleaseTimer = 0.0f; if (g.WheelingWindow == window) return; + IMGUI_DEBUG_LOG_IO("LockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL"); g.WheelingWindow = window; g.WheelingWindowRefMousePos = g.IO.MousePos; - g.WheelingWindowTimer = WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER; } void ImGui::UpdateMouseWheel() @@ -3950,31 +4528,30 @@ void ImGui::UpdateMouseWheel() // Reset the locked window if we move the mouse or after the timer elapses if (g.WheelingWindow != NULL) { - g.WheelingWindowTimer -= g.IO.DeltaTime; + g.WheelingWindowReleaseTimer -= g.IO.DeltaTime; if (IsMousePosValid() && ImLengthSqr(g.IO.MousePos - g.WheelingWindowRefMousePos) > g.IO.MouseDragThreshold * g.IO.MouseDragThreshold) - g.WheelingWindowTimer = 0.0f; - if (g.WheelingWindowTimer <= 0.0f) - { - g.WheelingWindow = NULL; - g.WheelingWindowTimer = 0.0f; - } + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindowReleaseTimer <= 0.0f) + LockWheelingWindow(NULL, 0.0f); } - if (g.IO.MouseWheel == 0.0f && g.IO.MouseWheelH == 0.0f) - return; - - if ((g.ActiveId != 0 && g.ActiveIdUsingMouseWheel) || (g.HoveredIdPreviousFrame != 0 && g.HoveredIdPreviousFrameUsingMouseWheel)) + ImVec2 wheel; + wheel.x = TestKeyOwner(ImGuiKey_MouseWheelX, ImGuiKeyOwner_None) ? g.IO.MouseWheelH : 0.0f; + wheel.y = TestKeyOwner(ImGuiKey_MouseWheelY, ImGuiKeyOwner_None) ? g.IO.MouseWheel : 0.0f; + if (wheel.x == 0.0f && wheel.y == 0.0f) return; - ImGuiWindow* window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; - if (!window || window->Collapsed) + //IMGUI_DEBUG_LOG("MouseWheel X:%.3f Y:%.3f\n", wheel_x, wheel_y); + ImGuiWindow* mouse_window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; + if (!mouse_window || mouse_window->Collapsed) return; // Zoom / Scale window // FIXME-OBSOLETE: This is an old feature, it still works but pretty much nobody is using it and may be best redesigned. - if (g.IO.MouseWheel != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) + if (wheel.y != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) { - StartLockWheelingWindow(window); + LockWheelingWindow(mouse_window, wheel.y); + ImGuiWindow* window = mouse_window; const float new_font_scale = ImClamp(window->FontWindowScale + g.IO.MouseWheel * 0.10f, 0.50f, 2.50f); const float scale = new_font_scale / window->FontWindowScale; window->FontWindowScale = new_font_scale; @@ -3987,43 +4564,50 @@ void ImGui::UpdateMouseWheel() } return; } - - // Mouse wheel scrolling - // If a child window has the ImGuiWindowFlags_NoScrollWithMouse flag, we give a chance to scroll its parent if (g.IO.KeyCtrl) return; + // Mouse wheel scrolling // As a standard behavior holding SHIFT while using Vertical Mouse Wheel triggers Horizontal scroll instead // (we avoid doing it on OSX as it the OS input layer handles this already) const bool swap_axis = g.IO.KeyShift && !g.IO.ConfigMacOSXBehaviors; - const float wheel_y = swap_axis ? 0.0f : g.IO.MouseWheel; - const float wheel_x = swap_axis ? g.IO.MouseWheel : g.IO.MouseWheelH; + if (swap_axis) + { + wheel.x = wheel.y; + wheel.y = 0.0f; + } // Vertical Mouse Wheel scrolling - if (wheel_y != 0.0f) + // Bubble up into parent window if: + // - a child window doesn't allow any scrolling. + // - a child window doesn't need scrolling because it is already at the edge for the direction we are going in. + // - a child window has the ImGuiWindowFlags_NoScrollWithMouse flag. + if (wheel.y != 0.0f) { - StartLockWheelingWindow(window); + ImGuiWindow* window = mouse_window; while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.y == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) window = window->ParentWindow; if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) { + LockWheelingWindow(mouse_window, wheel.y); float max_step = window->InnerRect.GetHeight() * 0.67f; float scroll_step = ImFloor(ImMin(5 * window->CalcFontSize(), max_step)); - SetScrollY(window, window->Scroll.y - wheel_y * scroll_step); + SetScrollY(window, window->Scroll.y - wheel.y * scroll_step); } } // Horizontal Mouse Wheel scrolling, or Vertical Mouse Wheel w/ Shift held - if (wheel_x != 0.0f) + if (wheel.x != 0.0f) { - StartLockWheelingWindow(window); + ImGuiWindow* window = mouse_window; while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.x == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) window = window->ParentWindow; if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) { + LockWheelingWindow(mouse_window, wheel.x); float max_step = window->InnerRect.GetWidth() * 0.67f; float scroll_step = ImFloor(ImMin(2 * window->CalcFontSize(), max_step)); - SetScrollX(window, window->Scroll.x - wheel_x * scroll_step); + SetScrollX(window, window->Scroll.x - wheel.x * scroll_step); } } } @@ -4106,17 +4690,6 @@ void ImGui::UpdateHoveredWindowAndCaptureFlags() io.WantTextInput = (g.WantTextInputNextFrame != -1) ? (g.WantTextInputNextFrame != 0) : false; } -ImGuiKeyModFlags ImGui::GetMergedKeyModFlags() -{ - ImGuiContext& g = *GImGui; - ImGuiKeyModFlags key_mod_flags = ImGuiKeyModFlags_None; - if (g.IO.KeyCtrl) { key_mod_flags |= ImGuiKeyModFlags_Ctrl; } - if (g.IO.KeyShift) { key_mod_flags |= ImGuiKeyModFlags_Shift; } - if (g.IO.KeyAlt) { key_mod_flags |= ImGuiKeyModFlags_Alt; } - if (g.IO.KeySuper) { key_mod_flags |= ImGuiKeyModFlags_Super; } - return key_mod_flags; -} - void ImGui::NewFrame() { IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); @@ -4152,6 +4725,11 @@ void ImGui::NewFrame() g.FramerateSecPerFrameCount = ImMin(g.FramerateSecPerFrameCount + 1, IM_ARRAYSIZE(g.FramerateSecPerFrame)); g.IO.Framerate = (g.FramerateSecPerFrameAccum > 0.0f) ? (1.0f / (g.FramerateSecPerFrameAccum / (float)g.FramerateSecPerFrameCount)) : FLT_MAX; + // Process input queue (trickle as many events as possible), turn events into writes to IO structure + g.InputEventsTrail.resize(0); + UpdateInputEvents(g.IO.ConfigInputTrickleEventQueue); + + // Update viewports (after processing input queue, so io.MouseHoveredViewport is set) UpdateViewportsNewFrame(); // Setup current font and draw list shared data @@ -4197,15 +4775,20 @@ void ImGui::NewFrame() if (g.HoveredId && g.ActiveId != g.HoveredId) g.HoveredIdNotActiveTimer += g.IO.DeltaTime; g.HoveredIdPreviousFrame = g.HoveredId; - g.HoveredIdPreviousFrameUsingMouseWheel = g.HoveredIdUsingMouseWheel; g.HoveredId = 0; g.HoveredIdAllowOverlap = false; - g.HoveredIdUsingMouseWheel = false; g.HoveredIdDisabled = false; - // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) - if (g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId && g.ActiveId != 0) + // Clear ActiveID if the item is not alive anymore. + // In 1.87, the common most call to KeepAliveID() was moved from GetID() to ItemAdd(). + // As a result, custom widget using ButtonBehavior() _without_ ItemAdd() need to call KeepAliveID() themselves. + if (g.ActiveId != 0 && g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("NewFrame(): ClearActiveID() because it isn't marked alive anymore!\n"); ClearActiveID(); + } + + // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) if (g.ActiveId) g.ActiveIdTimer += g.IO.DeltaTime; g.LastActiveIdTimer += g.IO.DeltaTime; @@ -4221,8 +4804,41 @@ void ImGui::NewFrame() if (g.ActiveId == 0) { g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO g.ActiveIdUsingNavInputMask = 0x00; - g.ActiveIdUsingKeyInputMask = 0x00; +#endif + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (g.ActiveId == 0) + g.ActiveIdUsingNavInputMask = 0; + else if (g.ActiveIdUsingNavInputMask != 0) + { + // If your custom widget code used: { g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); } + // Since IMGUI_VERSION_NUM >= 18804 it should be: { SetKeyOwner(ImGuiKey_Escape, g.ActiveId); SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId); } + if (g.ActiveIdUsingNavInputMask & (1 << ImGuiNavInput_Cancel)) + SetKeyOwner(ImGuiKey_Escape, g.ActiveId); + if (g.ActiveIdUsingNavInputMask & ~(1 << ImGuiNavInput_Cancel)) + IM_ASSERT(0); // Other values unsupported + } +#endif + + // Update hover delay for IsItemHovered() with delays and tooltips + g.HoverDelayIdPreviousFrame = g.HoverDelayId; + if (g.HoverDelayId != 0) + { + //if (g.IO.MouseDelta.x == 0.0f && g.IO.MouseDelta.y == 0.0f) // Need design/flags + g.HoverDelayTimer += g.IO.DeltaTime; + g.HoverDelayClearTimer = 0.0f; + g.HoverDelayId = 0; + } + else if (g.HoverDelayTimer > 0.0f) + { + // This gives a little bit of leeway before clearing the hover timer, allowing mouse to cross gaps + g.HoverDelayClearTimer += g.IO.DeltaTime; + if (g.HoverDelayClearTimer >= ImMax(0.20f, g.IO.DeltaTime * 2.0f)) // ~6 frames at 30 Hz + allow for low framerate + g.HoverDelayTimer = g.HoverDelayClearTimer = 0.0f; // May want a decaying timer, in which case need to clamp at max first, based on max of caller last requested timer. } // Drag and drop @@ -4237,20 +4853,13 @@ void ImGui::NewFrame() //if (g.IO.AppFocusLost) // ClosePopupsExceptModals(); - // Clear buttons state when focus is lost - // (this is useful so e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger the Alt menu toggle) - if (g.IO.AppFocusLost) - { - g.IO.ClearInputKeys(); - g.IO.AppFocusLost = false; - } - // Update keyboard input state - // Synchronize io.KeyMods with individual modifiers io.KeyXXX bools - g.IO.KeyMods = GetMergedKeyModFlags(); - memcpy(g.IO.KeysDownDurationPrev, g.IO.KeysDownDuration, sizeof(g.IO.KeysDownDuration)); - for (int i = 0; i < IM_ARRAYSIZE(g.IO.KeysDown); i++) - g.IO.KeysDownDuration[i] = g.IO.KeysDown[i] ? (g.IO.KeysDownDuration[i] < 0.0f ? 0.0f : g.IO.KeysDownDuration[i] + g.IO.DeltaTime) : -1.0f; + UpdateKeyboardInputs(); + + //IM_ASSERT(g.IO.KeyCtrl == IsKeyDown(ImGuiKey_LeftCtrl) || IsKeyDown(ImGuiKey_RightCtrl)); + //IM_ASSERT(g.IO.KeyShift == IsKeyDown(ImGuiKey_LeftShift) || IsKeyDown(ImGuiKey_RightShift)); + //IM_ASSERT(g.IO.KeyAlt == IsKeyDown(ImGuiKey_LeftAlt) || IsKeyDown(ImGuiKey_RightAlt)); + //IM_ASSERT(g.IO.KeySuper == IsKeyDown(ImGuiKey_LeftSuper) || IsKeyDown(ImGuiKey_RightSuper)); // Update gamepad/keyboard navigation NavUpdate(); @@ -4277,8 +4886,10 @@ void ImGui::NewFrame() g.MouseCursor = ImGuiMouseCursor_Arrow; g.WantCaptureMouseNextFrame = g.WantCaptureKeyboardNextFrame = g.WantTextInputNextFrame = -1; - g.PlatformImePos = ImVec2(1.0f, 1.0f); // OS Input Method Editor showing on top-left of our window by default - g.PlatformImePosViewport = NULL; + + // Platform IME data: reset for the frame + g.PlatformImeDataPrev = g.PlatformImeData; + g.PlatformImeData.WantVisible = false; // Mouse wheel scrolling, scale UpdateMouseWheel(); @@ -4290,9 +4901,10 @@ void ImGui::NewFrame() { ImGuiWindow* window = g.Windows[i]; window->WasActive = window->Active; - window->BeginCount = 0; window->Active = false; window->WriteAccessed = false; + window->BeginCountPreviousFrame = window->BeginCount; + window->BeginCount = 0; // Garbage collect transient buffers of recently unused windows if (!window->WasActive && !window->MemoryCompacted && window->LastTimeActive < memory_compact_start_time) @@ -4328,10 +4940,12 @@ void ImGui::NewFrame() // [DEBUG] Update debug features UpdateDebugToolItemPicker(); UpdateDebugToolStackQueries(); + if (g.DebugLocateFrames > 0 && --g.DebugLocateFrames == 0) + g.DebugLocateId = 0; // Create implicit/fallback window - which we will only render it if the user has added something to it. // We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags. - // This fallback is particularly important as it avoid ImGui:: calls from crashing. + // This fallback is particularly important as it prevents ImGui:: calls from crashing. g.WithinFrameScopeWithImplicitWindow = true; SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); Begin("Debug##Default"); @@ -4340,12 +4954,25 @@ void ImGui::NewFrame() CallContextHooks(&g, ImGuiContextHookType_NewFramePost); } -void ImGui::Initialize(ImGuiContext* context) +// IMPORTANT: ###xxx suffixes must be same in ALL languages +static const ImGuiLocEntry GLocalizationEntriesEnUS[] = { - ImGuiContext& g = *context; + { ImGuiLocKey_TableSizeOne, "Size column to fit###SizeOne" }, + { ImGuiLocKey_TableSizeAllFit, "Size all columns to fit###SizeAll" }, + { ImGuiLocKey_TableSizeAllDefault, "Size all columns to default###SizeAll" }, + { ImGuiLocKey_TableResetOrder, "Reset order###ResetOrder" }, + { ImGuiLocKey_WindowingMainMenuBar, "(Main menu bar)" }, + { ImGuiLocKey_WindowingPopup, "(Popup)" }, + { ImGuiLocKey_WindowingUntitled, "(Untitled)" }, + { ImGuiLocKey_DockingHideTabBar, "Hide tab bar###HideTabBar" }, +}; + +void ImGui::Initialize() +{ + ImGuiContext& g = *GImGui; IM_ASSERT(!g.Initialized && !g.SettingsLoaded); - // Add .ini handle for ImGuiWindow type + // Add .ini handle for ImGuiWindow and ImGuiTable types { ImGuiSettingsHandler ini_handler; ini_handler.TypeName = "Window"; @@ -4355,11 +4982,12 @@ void ImGui::Initialize(ImGuiContext* context) ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine; ini_handler.ApplyAllFn = WindowSettingsHandler_ApplyAll; ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll; - g.SettingsHandlers.push_back(ini_handler); + AddSettingsHandler(&ini_handler); } + TableSettingsAddSettingsHandler(); - // Add .ini handle for ImGuiTable type - TableSettingsInstallHandler(context); + // Setup default localization table + LocalizeRegisterEntries(GLocalizationEntriesEnUS, IM_ARRAYSIZE(GLocalizationEntriesEnUS)); // Create default viewport ImGuiViewportP* viewport = IM_NEW(ImGuiViewportP)(); @@ -4368,6 +4996,7 @@ void ImGui::Initialize(ImGuiContext* context) viewport->PlatformWindowCreated = true; viewport->Flags = ImGuiViewportFlags_OwnedByApp; g.Viewports.push_back(viewport); + g.TempBuffer.resize(1024 * 3 + 1, 0); g.PlatformIO.Viewports.push_back(g.Viewports[0]); #ifdef IMGUI_HAS_DOCK @@ -4379,16 +5008,17 @@ void ImGui::Initialize(ImGuiContext* context) } // This function is merely here to free heap allocations. -void ImGui::Shutdown(ImGuiContext* context) +void ImGui::Shutdown() { // The fonts atlas can be used prior to calling NewFrame(), so we clear it even if g.Initialized is FALSE (which would happen if we never called NewFrame) - ImGuiContext& g = *context; + ImGuiContext& g = *GImGui; if (g.IO.Fonts && g.FontAtlasOwnedByContext) { g.IO.Fonts->Locked = false; IM_DELETE(g.IO.Fonts); } g.IO.Fonts = NULL; + g.DrawListSharedData.TempBuffer.clear(); // Cleanup of other data are conditional on actually having initialized Dear ImGui. if (!g.Initialized) @@ -4396,18 +5026,10 @@ void ImGui::Shutdown(ImGuiContext* context) // Save settings (unless we haven't attempted to load them: CreateContext/DestroyContext without a call to NewFrame shouldn't save an empty file) if (g.SettingsLoaded && g.IO.IniFilename != NULL) - { - ImGuiContext* backup_context = GImGui; - SetCurrentContext(&g); SaveIniSettingsToDisk(g.IO.IniFilename); - SetCurrentContext(backup_context); - } // Destroy platform windows - ImGuiContext* backup_context = ImGui::GetCurrentContext(); - SetCurrentContext(context); DestroyPlatformWindows(); - SetCurrentContext(backup_context); // Shutdown extensions DockContextShutdown(&g); @@ -4425,6 +5047,9 @@ void ImGui::Shutdown(ImGuiContext* context) g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; g.ActiveIdWindow = g.ActiveIdPreviousFrameWindow = NULL; g.MovingWindow = NULL; + + g.KeysRoutingTable.Clear(); + g.ColorStack.clear(); g.StyleVarStack.clear(); g.FontStack.clear(); @@ -4460,6 +5085,8 @@ void ImGui::Shutdown(ImGuiContext* context) g.LogFile = NULL; } g.LogBuffer.clear(); + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); g.Initialized = false; } @@ -4494,11 +5121,10 @@ static void AddWindowToSortBuffer(ImVector* out_sorted_windows, Im static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list) { - // Remove trailing command if unused. - // Technically we could return directly instead of popping, but this make things looks neat in Metrics/Debugger window as well. - draw_list->_PopUnusedDrawCmd(); if (draw_list->CmdBuffer.Size == 0) return; + if (draw_list->CmdBuffer.Size == 1 && draw_list->CmdBuffer[0].ElemCount == 0 && draw_list->CmdBuffer[0].UserCallback == NULL) + return; // Draw list sanity check. Detect mismatch between PrimReserve() calls and incrementing _VtxCurrentIdx, _VtxWritePtr etc. // May trigger for you if you are using PrimXXX functions incorrectly. @@ -4595,8 +5221,10 @@ static void SetupViewportDrawData(ImGuiViewportP* viewport, ImVectorOwnerViewport = viewport; for (int n = 0; n < draw_lists->Size; n++) { - draw_data->TotalVtxCount += draw_lists->Data[n]->VtxBuffer.Size; - draw_data->TotalIdxCount += draw_lists->Data[n]->IdxBuffer.Size; + ImDrawList* draw_list = draw_lists->Data[n]; + draw_list->_PopUnusedDrawCmd(); + draw_data->TotalVtxCount += draw_list->VtxBuffer.Size; + draw_data->TotalIdxCount += draw_list->IdxBuffer.Size; } } @@ -4640,6 +5268,7 @@ static void ImGui::RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 { // We've already called AddWindowToDrawData() which called DrawList->ChannelsMerge() on DockNodeHost windows, // and draw list have been trimmed already, hence the explicit recreation of a draw command if missing. + // FIXME: This is creating complication, might be simpler if we could inject a drawlist in drawdata at a given position and not attempt to manipulate ImDrawCmd order. ImDrawList* draw_list = window->RootWindowDockTree->DrawList; if (draw_list->CmdBuffer.Size == 0) draw_list->AddDrawCmd(); @@ -4650,12 +5279,15 @@ static void ImGui::RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 draw_list->CmdBuffer.pop_back(); draw_list->CmdBuffer.push_front(cmd); draw_list->PopClipRect(); + draw_list->AddDrawCmd(); // We need to create a command as CmdBuffer.back().IdxOffset won't be correct if we append to same command. } // Draw over sibling docking nodes in a same docking tree if (window->RootWindow->DockIsActive) { ImDrawList* draw_list = FindFrontMostVisibleChildWindow(window->RootWindowDockTree)->DrawList; + if (draw_list->CmdBuffer.Size == 0) + draw_list->AddDrawCmd(); draw_list->PushClipRect(viewport_rect.Min, viewport_rect.Max, false); RenderRectFilledWithHole(draw_list, window->RootWindowDockTree->Rect(), window->RootWindow->Rect(), col, 0.0f);// window->RootWindowDockTree->WindowRounding); draw_list->PopClipRect(); @@ -4683,6 +5315,8 @@ static void ImGui::RenderDimmedBackgrounds() { ImGuiContext& g = *GImGui; ImGuiWindow* modal_window = GetTopMostAndVisiblePopupModal(); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + return; const bool dim_bg_for_modal = (modal_window != NULL); const bool dim_bg_for_window_list = (g.NavWindowingTargetAnim != NULL && g.NavWindowingTargetAnim->Active); if (!dim_bg_for_modal && !dim_bg_for_window_list) @@ -4700,7 +5334,7 @@ static void ImGui::RenderDimmedBackgrounds() { // Draw dimming behind CTRL+Tab target window and behind CTRL+Tab UI window RenderDimmedBackgroundBehindWindow(g.NavWindowingTargetAnim, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio)); - if (g.NavWindowingListWindow != NULL && g.NavWindowingListWindow->Viewport != g.NavWindowingTargetAnim->Viewport) + if (g.NavWindowingListWindow != NULL && g.NavWindowingListWindow->Viewport && g.NavWindowingListWindow->Viewport != g.NavWindowingTargetAnim->Viewport) RenderDimmedBackgroundBehindWindow(g.NavWindowingListWindow, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio)); viewports_already_dimmed[0] = g.NavWindowingTargetAnim->Viewport; viewports_already_dimmed[1] = g.NavWindowingListWindow ? g.NavWindowingListWindow->Viewport : NULL; @@ -4749,14 +5383,12 @@ void ImGui::EndFrame() ErrorCheckEndFrameSanityChecks(); - // Notify OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) - if (g.PlatformIO.Platform_SetImeInputPos && (g.PlatformImeLastPos.x == FLT_MAX || ImLengthSqr(g.PlatformImePos - g.PlatformImeLastPos) > 0.0001f)) - if (g.PlatformImePosViewport && g.PlatformImePosViewport->PlatformWindowCreated) - { - g.PlatformIO.Platform_SetImeInputPos(g.PlatformImePosViewport, g.PlatformImePos); - g.PlatformImeLastPos = g.PlatformImePos; - g.PlatformImePosViewport = NULL; - } + // Notify Platform/OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) + if (g.IO.SetPlatformImeDataFn && memcmp(&g.PlatformImeData, &g.PlatformImeDataPrev, sizeof(ImGuiPlatformImeData)) != 0) + { + ImGuiViewport* viewport = FindViewportByID(g.PlatformImeViewport); + g.IO.SetPlatformImeDataFn(viewport ? viewport : GetMainViewport(), &g.PlatformImeData); + } // Hide implicit/fallback "Debug" window if it hasn't been used g.WithinFrameScopeWithImplicitWindow = false; @@ -4820,10 +5452,9 @@ void ImGui::EndFrame() g.IO.Fonts->Locked = false; // Clear Input data for next frame + g.IO.AppFocusLost = false; g.IO.MouseWheel = g.IO.MouseWheelH = 0.0f; g.IO.InputQueueCharacters.resize(0); - g.IO.KeyModsPrev = g.IO.KeyMods; // doing it here is better than in NewFrame() as we'll tolerate backend writing to KeyMods. If we want to firmly disallow it we should detect it. - memset(g.IO.NavInputs, 0, sizeof(g.IO.NavInputs)); CallContextHooks(&g, ImGuiContextHookType_EndFramePost); } @@ -4872,9 +5503,9 @@ void ImGui::Render() if (first_render_of_frame) RenderDimmedBackgrounds(); - ImVec2 mouse_cursor_offset, mouse_cursor_size, mouse_cursor_uv[4]; - if (g.IO.MouseDrawCursor && g.MouseCursor != ImGuiMouseCursor_None) - g.IO.Fonts->GetMouseCursorTexData(g.MouseCursor, &mouse_cursor_offset, &mouse_cursor_size, &mouse_cursor_uv[0], &mouse_cursor_uv[2]); + // Draw software mouse cursor if requested by io.MouseDrawCursor flag + if (g.IO.MouseDrawCursor && first_render_of_frame && g.MouseCursor != ImGuiMouseCursor_None) + RenderMouseCursor(g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); // Setup ImDrawData structures for end-user g.IO.MetricsRenderVertices = g.IO.MetricsRenderIndices = 0; @@ -4883,15 +5514,6 @@ void ImGui::Render() ImGuiViewportP* viewport = g.Viewports[n]; viewport->DrawDataBuilder.FlattenIntoSingleLayer(); - // Draw software mouse cursor if requested by io.MouseDrawCursor flag - // (note we scale cursor by current viewport/monitor, however Windows 10 for its own hardware cursor seems to be using a different scale factor) - if (mouse_cursor_size.x > 0.0f && mouse_cursor_size.y > 0.0f && first_render_of_frame) - { - float scale = g.Style.MouseCursorScale * viewport->DpiScale; - if (viewport->GetMainRect().Overlaps(ImRect(g.IO.MousePos, g.IO.MousePos + ImVec2(mouse_cursor_size.x + 2, mouse_cursor_size.y + 2) * scale))) - RenderMouseCursor(GetForegroundDrawList(viewport), g.IO.MousePos, scale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); - } - // Add foreground ImDrawList (for each active viewport) if (viewport->DrawLists[1] != NULL) AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[0], GetForegroundDrawList(viewport)); @@ -5000,240 +5622,6 @@ static void FindHoveredWindow() g.MovingWindow->Viewport = moving_window_viewport; } -// Test if mouse cursor is hovering given rectangle -// NB- Rectangle is clipped by our current clip setting -// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) -bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) -{ - ImGuiContext& g = *GImGui; - - // Clip - ImRect rect_clipped(r_min, r_max); - if (clip) - rect_clipped.ClipWith(g.CurrentWindow->ClipRect); - - // Expand for touch input - const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding); - if (!rect_for_touch.Contains(g.IO.MousePos)) - return false; - if (!g.MouseViewport->GetMainRect().Overlaps(rect_clipped)) - return false; - return true; -} - -int ImGui::GetKeyIndex(ImGuiKey imgui_key) -{ - IM_ASSERT(imgui_key >= 0 && imgui_key < ImGuiKey_COUNT); - ImGuiContext& g = *GImGui; - return g.IO.KeyMap[imgui_key]; -} - -// Note that dear imgui doesn't know the semantic of each entry of io.KeysDown[]! -// Use your own indices/enums according to how your backend/engine stored them into io.KeysDown[]! -bool ImGui::IsKeyDown(int user_key_index) -{ - if (user_key_index < 0) - return false; - ImGuiContext& g = *GImGui; - IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - return g.IO.KeysDown[user_key_index]; -} - -// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) -// t1 = current time (e.g.: g.Time) -// An event is triggered at: -// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N -int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) -{ - if (t1 == 0.0f) - return 1; - if (t0 >= t1) - return 0; - if (repeat_rate <= 0.0f) - return (t0 < repeat_delay) && (t1 >= repeat_delay); - const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); - const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); - const int count = count_t1 - count_t0; - return count; -} - -int ImGui::GetKeyPressedAmount(int key_index, float repeat_delay, float repeat_rate) -{ - ImGuiContext& g = *GImGui; - if (key_index < 0) - return 0; - IM_ASSERT(key_index >= 0 && key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - const float t = g.IO.KeysDownDuration[key_index]; - return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); -} - -bool ImGui::IsKeyPressed(int user_key_index, bool repeat) -{ - ImGuiContext& g = *GImGui; - if (user_key_index < 0) - return false; - IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - const float t = g.IO.KeysDownDuration[user_key_index]; - if (t == 0.0f) - return true; - if (repeat && t > g.IO.KeyRepeatDelay) - return GetKeyPressedAmount(user_key_index, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; - return false; -} - -bool ImGui::IsKeyReleased(int user_key_index) -{ - ImGuiContext& g = *GImGui; - if (user_key_index < 0) return false; - IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - return g.IO.KeysDownDurationPrev[user_key_index] >= 0.0f && !g.IO.KeysDown[user_key_index]; -} - -bool ImGui::IsMouseDown(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseDown[button]; -} - -bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - const float t = g.IO.MouseDownDuration[button]; - if (t == 0.0f) - return true; - - if (repeat && t > g.IO.KeyRepeatDelay) - { - // FIXME: 2019/05/03: Our old repeat code was wrong here and led to doubling the repeat rate, which made it an ok rate for repeat on mouse hold. - int amount = CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate * 0.50f); - if (amount > 0) - return true; - } - return false; -} - -bool ImGui::IsMouseReleased(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseReleased[button]; -} - -bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseClickedCount[button] == 2; -} - -int ImGui::GetMouseClickedCount(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseClickedCount[button]; -} - -// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. -// [Internal] This doesn't test if the button is pressed -bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - if (lock_threshold < 0.0f) - lock_threshold = g.IO.MouseDragThreshold; - return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; -} - -bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - if (!g.IO.MouseDown[button]) - return false; - return IsMouseDragPastThreshold(button, lock_threshold); -} - -ImVec2 ImGui::GetMousePos() -{ - ImGuiContext& g = *GImGui; - return g.IO.MousePos; -} - -// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! -ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() -{ - ImGuiContext& g = *GImGui; - if (g.BeginPopupStack.Size > 0) - return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; - return g.IO.MousePos; -} - -// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. -bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) -{ - // The assert is only to silence a false-positive in XCode Static Analysis. - // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). - IM_ASSERT(GImGui != NULL); - const float MOUSE_INVALID = -256000.0f; - ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; - return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; -} - -bool ImGui::IsAnyMouseDown() -{ - ImGuiContext& g = *GImGui; - for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) - if (g.IO.MouseDown[n]) - return true; - return false; -} - -// Return the delta from the initial clicking position while the mouse button is clicked or was just released. -// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. -// NB: This is only valid if IsMousePosValid(). backends in theory should always keep mouse position valid when dragging even outside the client window. -ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - if (lock_threshold < 0.0f) - lock_threshold = g.IO.MouseDragThreshold; - if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) - if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) - if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) - return g.IO.MousePos - g.IO.MouseClickedPos[button]; - return ImVec2(0.0f, 0.0f); -} - -void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr - g.IO.MouseClickedPos[button] = g.IO.MousePos; -} - -ImGuiMouseCursor ImGui::GetMouseCursor() -{ - return GImGui->MouseCursor; -} - -void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) -{ - GImGui->MouseCursor = cursor_type; -} - -void ImGui::CaptureKeyboardFromApp(bool capture) -{ - GImGui->WantCaptureKeyboardNextFrame = capture ? 1 : 0; -} - -void ImGui::CaptureMouseFromApp(bool capture) -{ - GImGui->WantCaptureMouseNextFrame = capture ? 1 : 0; -} - bool ImGui::IsItemActive() { ImGuiContext& g = *GImGui; @@ -5321,7 +5709,7 @@ bool ImGui::IsAnyItemFocused() bool ImGui::IsItemVisible() { ImGuiContext& g = *GImGui; - return g.CurrentWindow->ClipRect.Overlaps(g.LastItemData.Rect); + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) != 0; } bool ImGui::IsItemEdited() @@ -5342,23 +5730,13 @@ void ImGui::SetItemAllowOverlap() g.ActiveIdAllowOverlap = true; } -void ImGui::SetItemUsingMouseWheel() -{ - ImGuiContext& g = *GImGui; - ImGuiID id = g.LastItemData.ID; - if (g.HoveredId == id) - g.HoveredIdUsingMouseWheel = true; - if (g.ActiveId == id) - g.ActiveIdUsingMouseWheel = true; -} - -void ImGui::SetActiveIdUsingNavAndKeys() +// FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version for the two users of this function. +void ImGui::SetActiveIdUsingAllKeyboardKeys() { ImGuiContext& g = *GImGui; IM_ASSERT(g.ActiveId != 0); - g.ActiveIdUsingNavDirMask = ~(ImU32)0; - g.ActiveIdUsingNavInputMask = ~(ImU32)0; - g.ActiveIdUsingKeyInputMask = ~(ImU64)0; + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_COUNT) - 1; + g.ActiveIdUsingAllKeyboardKeys = true; NavMoveRequestCancel(); } @@ -5393,21 +5771,22 @@ bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, b ImVec2 size = ImFloor(size_arg); const int auto_fit_axises = ((size.x == 0.0f) ? (1 << ImGuiAxis_X) : 0x00) | ((size.y == 0.0f) ? (1 << ImGuiAxis_Y) : 0x00); if (size.x <= 0.0f) - size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too much issues) + size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too many issues) if (size.y <= 0.0f) size.y = ImMax(content_avail.y + size.y, 4.0f); SetNextWindowSize(size); // Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value. + const char* temp_window_name; if (name) - ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%s/%s_%08X", parent_window->Name, name, id); + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%s_%08X", parent_window->Name, name, id); else - ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%s/%08X", parent_window->Name, id); + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%08X", parent_window->Name, id); const float backup_border_size = g.Style.ChildBorderSize; if (!border) g.Style.ChildBorderSize = 0.0f; - bool ret = Begin(g.TempBuffer, NULL, flags); + bool ret = Begin(temp_window_name, NULL, flags); g.Style.ChildBorderSize = backup_border_size; ImGuiWindow* child_window = g.CurrentWindow; @@ -5549,7 +5928,7 @@ static void UpdateWindowInFocusOrderList(ImGuiWindow* window, bool just_created, { ImGuiContext& g = *GImGui; - const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0; + const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0 && ((new_flags & ImGuiWindowFlags_Popup) == 0 || (new_flags & ImGuiWindowFlags_ChildMenu) != 0); const bool child_flag_changed = new_is_explicit_child != window->IsExplicitChild; if ((just_created || child_flag_changed) && !new_is_explicit_child) { @@ -5592,7 +5971,7 @@ static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); ApplyWindowSettings(window, settings); } - window->DC.CursorStartPos = window->DC.CursorMaxPos = window->Pos; // So first call to CalcContentSize() doesn't return crazy values + window->DC.CursorStartPos = window->DC.CursorMaxPos = window->DC.IdealMaxPos = window->Pos; // So first call to CalcWindowContentSizes() doesn't return crazy values if ((flags & ImGuiWindowFlags_AlwaysAutoResize) != 0) { @@ -5612,7 +5991,6 @@ static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) g.Windows.push_front(window); // Quite slow but rare and only once else g.Windows.push_back(window); - UpdateWindowInFocusOrderList(window, true, window->Flags); return window; } @@ -5703,8 +6081,7 @@ static ImVec2 CalcWindowAutoFitSize(ImGuiWindow* window, const ImVec2& size_cont if (is_popup || is_menu) // Popups and menus bypass style.WindowMinSize by default, but we give then a non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups) size_min = ImMin(size_min, ImVec2(4.0f, 4.0f)); - // FIXME-VIEWPORT-WORKAREA: May want to use GetWorkSize() instead of Size depending on the type of windows? - ImVec2 avail_size = window->Viewport->Size; + ImVec2 avail_size = window->Viewport->WorkSize; if (window->ViewportOwned) avail_size = ImVec2(FLT_MAX, FLT_MAX); const int monitor_idx = window->ViewportAllowPlatformMonitorExtend; @@ -5823,7 +6200,7 @@ ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) } // Handle resize for: Resize Grips, Borders, Gamepad -// Return true when using auto-fit (double click on resize grip) +// Return true when using auto-fit (double-click on resize grip) static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect) { ImGuiContext& g = *GImGui; @@ -5831,7 +6208,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) return false; - if (window->WasActive == false) // Early out to avoid running this code for e.g. an hidden implicit/fallback Debug window. + if (window->WasActive == false) // Early out to avoid running this code for e.g. a hidden implicit/fallback Debug window. return false; bool ret_auto_fit = false; @@ -5869,6 +6246,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s if (resize_rect.Min.x > resize_rect.Max.x) ImSwap(resize_rect.Min.x, resize_rect.Max.x); if (resize_rect.Min.y > resize_rect.Max.y) ImSwap(resize_rect.Min.y, resize_rect.Max.y); ImGuiID resize_grip_id = window->GetID(resize_grip_n); // == GetWindowResizeCornerID() + ItemAdd(resize_rect, resize_grip_id, NULL, ImGuiItemFlags_NoNav); ButtonBehavior(resize_rect, resize_grip_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); //GetForegroundDrawList(window)->AddRect(resize_rect.Min, resize_rect.Max, IM_COL32(255, 255, 0, 255)); if (hovered || held) @@ -5904,6 +6282,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s bool hovered, held; ImRect border_rect = GetResizeBorderRect(window, border_n, grip_hover_inner_size, WINDOWS_HOVER_PADDING); ImGuiID border_id = window->GetID(border_n + 4); // == GetWindowResizeBorderID() + ItemAdd(border_rect, border_id, NULL, ImGuiItemFlags_NoNav); ButtonBehavior(border_rect, border_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); //GetForegroundDrawLists(window)->AddRect(border_rect.Min, border_rect.Max, IM_COL32(255, 255, 0, 255)); if ((hovered && g.HoveredIdTimer > WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER) || held) @@ -5928,23 +6307,31 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s window->DC.NavLayerCurrent = ImGuiNavLayer_Main; // Navigation resize (keyboard/gamepad) + // FIXME: This cannot be moved to NavUpdateWindowing() because CalcWindowSizeAfterConstraint() need to callback into user. + // Not even sure the callback works here. if (g.NavWindowingTarget && g.NavWindowingTarget->RootWindowDockTree == window) { - ImVec2 nav_resize_delta; + ImVec2 nav_resize_dir; if (g.NavInputSource == ImGuiInputSource_Keyboard && g.IO.KeyShift) - nav_resize_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_RawKeyboard, ImGuiInputReadMode_Down); + nav_resize_dir = GetKeyVector2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); if (g.NavInputSource == ImGuiInputSource_Gamepad) - nav_resize_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_Down); - if (nav_resize_delta.x != 0.0f || nav_resize_delta.y != 0.0f) + nav_resize_dir = GetKeyVector2d(ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown); + if (nav_resize_dir.x != 0.0f || nav_resize_dir.y != 0.0f) { const float NAV_RESIZE_SPEED = 600.0f; - nav_resize_delta *= ImFloor(NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y)); - nav_resize_delta = ImMax(nav_resize_delta, visibility_rect.Min - window->Pos - window->Size); + const float resize_step = NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaSize += nav_resize_dir * resize_step; + g.NavWindowingAccumDeltaSize = ImMax(g.NavWindowingAccumDeltaSize, visibility_rect.Min - window->Pos - window->Size); // We need Pos+Size >= visibility_rect.Min, so Size >= visibility_rect.Min - Pos, so size_delta >= visibility_rect.Min - window->Pos - window->Size g.NavWindowingToggleLayer = false; g.NavDisableMouseHover = true; resize_grip_col[0] = GetColorU32(ImGuiCol_ResizeGripActive); - // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. - size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + nav_resize_delta); + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaSize); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. + size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + accum_floored); + g.NavWindowingAccumDeltaSize -= accum_floored; + } } } @@ -5964,12 +6351,12 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s return ret_auto_fit; } -static inline void ClampWindowRect(ImGuiWindow* window, const ImRect& visibility_rect) +static inline void ClampWindowPos(ImGuiWindow* window, const ImRect& visibility_rect) { ImGuiContext& g = *GImGui; ImVec2 size_for_clamping = window->Size; - if (g.IO.ConfigWindowsMoveFromTitleBarOnly && !(window->Flags & ImGuiWindowFlags_NoTitleBar)) - size_for_clamping.y = window->TitleBarHeight(); + if (g.IO.ConfigWindowsMoveFromTitleBarOnly && (!(window->Flags & ImGuiWindowFlags_NoTitleBar) || window->DockNodeAsHost)) + size_for_clamping.y = ImGui::GetFrameHeight(); // Not using window->TitleBarHeight() as DockNodeAsHost will report 0.0f here. window->Pos = ImClamp(window->Pos, visibility_rect.Min - size_for_clamping, visibility_rect.Max); } @@ -6010,15 +6397,17 @@ void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar window->SkipItems = false; // Draw window + handle manual resize - // As we highlight the title bar when want_focus is set, multiple reappearing windows will have have their title bar highlighted on their reappearing frame. + // As we highlight the title bar when want_focus is set, multiple reappearing windows will have their title bar highlighted on their reappearing frame. const float window_rounding = window->WindowRounding; const float window_border_size = window->WindowBorderSize; if (window->Collapsed) { // Title bar only - float backup_border_size = style.FrameBorderSize; + const float backup_border_size = style.FrameBorderSize; g.Style.FrameBorderSize = window->WindowBorderSize; ImU32 title_bar_col = GetColorU32((title_bar_is_highlight && !g.NavDisableHighlight) ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBgCollapsed); + if (window->ViewportOwned) + title_bar_col |= IM_COL32_A_MASK; // No alpha (we don't support is_docking_transparent_payload here because simpler and less meaningful, but could with a bit of code shuffle/reuse) RenderFrame(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, true, window_rounding); g.Style.FrameBorderSize = backup_border_size; } @@ -6035,8 +6424,7 @@ void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar ImU32 bg_col = GetColorU32(GetWindowBgColorIdx(window)); if (window->ViewportOwned) { - // No alpha - bg_col = (bg_col | IM_COL32_A_MASK); + bg_col |= IM_COL32_A_MASK; // No alpha if (is_docking_transparent_payload) window->Viewport->Alpha *= DOCKING_TRANSPARENT_PAYLOAD_ALPHA; } @@ -6060,16 +6448,14 @@ void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar } // Render, for docked windows and host windows we ensure bg goes before decorations - ImDrawList* bg_draw_list = window->DockIsActive ? window->DockNode->HostWindow->DrawList : window->DrawList; - if (window->DockIsActive || (flags & ImGuiWindowFlags_DockNodeHost)) - bg_draw_list->ChannelsSetCurrent(0); if (window->DockIsActive) window->DockNode->LastBgColor = bg_col; - + ImDrawList* bg_draw_list = window->DockIsActive ? window->DockNode->HostWindow->DrawList : window->DrawList; + if (window->DockIsActive || (flags & ImGuiWindowFlags_DockNodeHost)) + bg_draw_list->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); bg_draw_list->AddRectFilled(window->Pos + ImVec2(0, window->TitleBarHeight()), window->Pos + window->Size, bg_col, window_rounding, (flags & ImGuiWindowFlags_NoTitleBar) ? 0 : ImDrawFlags_RoundCornersBottom); - if (window->DockIsActive || (flags & ImGuiWindowFlags_DockNodeHost)) - bg_draw_list->ChannelsSetCurrent(1); + bg_draw_list->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); } if (window->DockIsActive) window->DockNode->IsBgDrawnThisFrame = true; @@ -6101,8 +6487,10 @@ void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar float unhide_sz_hit = ImFloor(g.FontSize * 0.55f); ImVec2 p = node->Pos; ImRect r(p, p + ImVec2(unhide_sz_hit, unhide_sz_hit)); + ImGuiID unhide_id = window->GetID("#UNHIDE"); + KeepAliveID(unhide_id); bool hovered, held; - if (ButtonBehavior(r, window->GetID("#UNHIDE"), &hovered, &held, ImGuiButtonFlags_FlattenChildren)) + if (ButtonBehavior(r, unhide_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren)) node->WantHiddenTabBarToggle = true; else if (held && IsMouseDragging(0)) StartMouseMovingWindowOrNode(window, node, true); @@ -6240,7 +6628,7 @@ void ImGui::UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags } if (parent_window && (flags & ImGuiWindowFlags_Popup)) window->RootWindowPopupTree = parent_window->RootWindowPopupTree; - if (parent_window && !(flags & ImGuiWindowFlags_Modal) && (flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup))) + if (parent_window && !(flags & ImGuiWindowFlags_Modal) && (flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup))) // FIXME: simply use _NoTitleBar ? window->RootWindowForTitleBarHighlight = parent_window->RootWindowForTitleBarHighlight; while (window->RootWindowForNav->Flags & ImGuiWindowFlags_NavFlattened) { @@ -6268,7 +6656,9 @@ static ImGuiWindow* ImGui::FindBlockingModal(ImGuiWindow* window) for (int i = g.OpenPopupStack.Size - 1; i >= 0; i--) { ImGuiWindow* popup_window = g.OpenPopupStack.Data[i].Window; - if (popup_window == NULL || !popup_window->WasActive || !(popup_window->Flags & ImGuiWindowFlags_Modal)) // Check WasActive, because this code may run before popup renders on current frame. + if (popup_window == NULL || !(popup_window->Flags & ImGuiWindowFlags_Modal)) + continue; + if (!popup_window->Active && !popup_window->WasActive) // Check WasActive, because this code may run before popup renders on current frame, also check Active to handle newly created windows. continue; if (IsWindowWithinBeginStackOf(window, popup_window)) // Window is rendered over last modal, no render order change needed. break; @@ -6299,8 +6689,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) const bool window_just_created = (window == NULL); if (window_just_created) window = CreateNewWindow(name, flags); - else - UpdateWindowInFocusOrderList(window, window_just_created, flags); // Automatically disable manual moving/resizing when NoInputs is set if ((flags & ImGuiWindowFlags_NoInputs) == ImGuiWindowFlags_NoInputs) @@ -6326,10 +6714,10 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) const bool window_was_appearing = window->Appearing; if (first_begin_of_the_frame) { + UpdateWindowInFocusOrderList(window, window_just_created, flags); window->Appearing = window_just_activated_by_user; if (window->Appearing) SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); - window->FlagsPreviousFrame = window->Flags; window->Flags = (ImGuiWindowFlags)flags; window->LastFrameActive = current_frame; @@ -6358,10 +6746,10 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) BeginDocked(window, p_open); flags = window->Flags; if (window->DockIsActive) + { IM_ASSERT(window->DockNode != NULL); - - // Docking currently override constraints - g.NextWindowData.Flags &= ~ImGuiNextWindowDataFlags_HasSizeConstraint; + g.NextWindowData.Flags &= ~ImGuiNextWindowDataFlags_HasSizeConstraint; // Docking currently override constraints + } // Amend the Appearing flag if (window->DockTabIsVisible && !dock_tab_was_visible && dock_node_was_visible && !window->Appearing && !window_was_appearing) @@ -6377,7 +6765,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) } // Parent window is latched only on the first call to Begin() of the frame, so further append-calls can be done from a different window stack - ImGuiWindow* parent_window_in_stack = window->DockIsActive ? window->DockNode->HostWindow : g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back().Window; + ImGuiWindow* parent_window_in_stack = (window->DockIsActive && window->DockNode->HostWindow) ? window->DockNode->HostWindow : g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back().Window; ImGuiWindow* parent_window = first_begin_of_the_frame ? ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup)) ? parent_window_in_stack : NULL) : window->ParentWindow; IM_ASSERT(parent_window != NULL || !(flags & ImGuiWindowFlags_ChildWindow)); @@ -6393,25 +6781,31 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) window_stack_data.ParentLastItemDataBackup = g.LastItemData; window_stack_data.StackSizesOnBegin.SetToCurrentState(); g.CurrentWindowStack.push_back(window_stack_data); - g.CurrentWindow = NULL; if (flags & ImGuiWindowFlags_ChildMenu) g.BeginMenuCount++; + // Update ->RootWindow and others pointers (before any possible call to FocusWindow) + if (first_begin_of_the_frame) + { + UpdateWindowParentAndRootLinks(window, flags, parent_window); + window->ParentWindowInBeginStack = parent_window_in_stack; + } + + // Add to focus scope stack + PushFocusScope(window->ID); + window->NavRootFocusScopeId = g.CurrentFocusScopeId; + g.CurrentWindow = NULL; + + // Add to popup stack if (flags & ImGuiWindowFlags_Popup) { ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; popup_ref.Window = window; + popup_ref.ParentNavLayer = parent_window_in_stack->DC.NavLayerCurrent; g.BeginPopupStack.push_back(popup_ref); window->PopupId = popup_ref.PopupId; } - // Update ->RootWindow and others pointers (before any possible call to FocusWindow) - if (first_begin_of_the_frame) - { - UpdateWindowParentAndRootLinks(window, flags, parent_window); - window->ParentWindowInBeginStack = parent_window_in_stack; - } - // Process SetNextWindow***() calls // (FIXME: Consider splitting the HasXXX flags into X/Y components bool window_pos_set_by_api = false; @@ -6469,6 +6863,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) { // Initialize const bool window_is_child_tooltip = (flags & ImGuiWindowFlags_ChildWindow) && (flags & ImGuiWindowFlags_Tooltip); // FIXME-WIP: Undocumented behavior of Child+Tooltip for pinned tooltip (#1345) + const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); window->Active = true; window->HasCloseButton = (p_open != NULL); window->ClipRect = ImVec4(-FLT_MAX, -FLT_MAX, +FLT_MAX, +FLT_MAX); @@ -6478,7 +6873,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) if (flags & ImGuiWindowFlags_DockNodeHost) { window->DrawList->ChannelsSplit(2); - window->DrawList->ChannelsSetCurrent(1); // Render decorations on channel 1 as we will render the backgrounds manually later + window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); // Render decorations on channel 1 as we will render the backgrounds manually later } // Restore buffer capacity when woken from a compacted state, to avoid @@ -6502,7 +6897,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // UPDATE CONTENTS SIZE, UPDATE HIDDEN STATUS // Update contents size from last frame for auto-fitting (or use explicit size) - const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); CalcWindowContentSizes(window, &window->ContentSize, &window->ContentSizeIdeal); // FIXME: These flags are decremented before they are used. This means that in order to have these fields produce their intended behaviors @@ -6559,6 +6953,9 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) window->DC.MenuBarOffset.x = ImMax(ImMax(window->WindowPadding.x, style.ItemSpacing.x), g.NextWindowData.MenuBarOffsetMinVal.x); window->DC.MenuBarOffset.y = g.NextWindowData.MenuBarOffsetMinVal.y; + bool use_current_size_for_scrollbar_x = window_just_created; + bool use_current_size_for_scrollbar_y = window_just_created; + // Collapse window by double-clicking on title bar // At this point we don't have a clipping rectangle setup yet, so we can use the title bar area for hit detection and drawing if (!(flags & ImGuiWindowFlags_NoTitleBar) && !(flags & ImGuiWindowFlags_NoCollapse) && !window->DockIsActive) @@ -6570,6 +6967,8 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) if (window->WantCollapseToggle) { window->Collapsed = !window->Collapsed; + if (!window->Collapsed) + use_current_size_for_scrollbar_y = true; MarkIniSettingsDirty(window); } } @@ -6583,8 +6982,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // Calculate auto-fit size, handle automatic resize const ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, window->ContentSizeIdeal); - bool use_current_size_for_scrollbar_x = window_just_created; - bool use_current_size_for_scrollbar_y = window_just_created; if ((flags & ImGuiWindowFlags_AlwaysAutoResize) && !window->Collapsed) { // Using SetNextWindowSize() overrides ImGuiWindowFlags_AlwaysAutoResize, so it can be used on tooltips/popups, etc. @@ -6682,11 +7079,11 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // Clamp position/size so window stays visible within its viewport or monitor // Ignore zero-sized display explicitly to avoid losing positions if a window manager reports zero-sized window when initializing or minimizing. // FIXME: Similar to code in GetWindowAllowedExtentRect() - if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) + if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow)) { if (!window->ViewportOwned && viewport_rect.GetWidth() > 0 && viewport_rect.GetHeight() > 0.0f) { - ClampWindowRect(window, visibility_rect); + ClampWindowPos(window, visibility_rect); } else if (window->ViewportOwned && g.PlatformIO.Monitors.Size > 0) { @@ -6694,7 +7091,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) const ImGuiPlatformMonitor* monitor = GetViewportPlatformMonitor(window->Viewport); visibility_rect.Min = monitor->WorkPos + visibility_padding; visibility_rect.Max = monitor->WorkPos + monitor->WorkSize - visibility_padding; - ClampWindowRect(window, visibility_rect); + ClampWindowPos(window, visibility_rect); } } window->Pos = ImFloor(window->Pos); @@ -6736,6 +7133,18 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) } } + // [Test Engine] Register whole window in the item system +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (g.TestEngineHookItems) + { + IM_ASSERT(window->IDStack.Size == 1); + window->IDStack.Size = 0; // As window->IDStack[0] == window->ID here, make sure TestEngine doesn't erroneously see window as parent of itself. + IMGUI_TEST_ENGINE_ITEM_ADD(window->Rect(), window->ID); + IMGUI_TEST_ENGINE_ITEM_INFO(window->ID, window->Name, (g.HoveredWindow == window) ? ImGuiItemStatusFlags_HoveredRect : 0); + window->IDStack.Size = 1; + } +#endif + // Decide if we are going to handle borders and resize grips const bool handle_borders_and_resize_grips = (window->DockNodeAsHost || !window->DockIsActive); @@ -6784,7 +7193,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) } // UPDATE RECTANGLES (1- THOSE NOT AFFECTED BY SCROLLING) - // Update various regions. Variables they depends on should be set above in this function. + // Update various regions. Variables they depend on should be set above in this function. // We set this up after processing the resize grip so that our rectangles doesn't lag by a frame. // Outer rectangle @@ -6923,6 +7332,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) window->DC.IdealMaxPos = window->DC.CursorStartPos; window->DC.CurrLineSize = window->DC.PrevLineSize = ImVec2(0.0f, 0.0f); window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; window->DC.NavLayerCurrent = ImGuiNavLayer_Main; window->DC.NavLayersActiveMask = window->DC.NavLayersActiveMaskNext; @@ -6964,7 +7374,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) { window->Viewport->PlatformRequestClose = false; g.NavWindowingToggleLayer = false; // Assume user mapped PlatformRequestClose on ALT-F4 so we disable ALT for menu toggle. False positive not an issue. - IMGUI_DEBUG_LOG_VIEWPORT("Window '%s' PlatformRequestClose\n", window->Name); + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Window '%s' PlatformRequestClose\n", window->Name); *p_open = false; } } @@ -6982,7 +7392,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) /* //if (g.NavWindow == window && g.ActiveId == 0) if (g.ActiveId == window->MoveId) - if (g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_C)) + if (g.IO.KeyCtrl && IsKeyPressed(ImGuiKey_C)) LogToClipboard(); */ @@ -7004,10 +7414,17 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // We fill last item data based on Title Bar/Tab, in order for IsItemHovered() and IsItemActive() to be usable after Begin(). // This is useful to allow creating context menus on title bar only, etc. if (window->DockIsActive) - SetLastItemData(window->ID, g.CurrentItemFlags, window->DockTabItemStatusFlags, window->DockTabItemRect); + SetLastItemData(window->MoveId, g.CurrentItemFlags, window->DockTabItemStatusFlags, window->DockTabItemRect); else SetLastItemData(window->MoveId, g.CurrentItemFlags, IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max, false) ? ImGuiItemStatusFlags_HoveredRect : 0, title_bar_rect); + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (g.DebugLocateId != 0 && (window->ID == g.DebugLocateId || window->MoveId == g.DebugLocateId)) + DebugLocateItemResolveWithLastItem(); +#endif + + // [Test Engine] Register title bar / tab #ifdef IMGUI_ENABLE_TEST_ENGINE if (!(window->Flags & ImGuiWindowFlags_NoTitleBar)) IMGUI_TEST_ENGINE_ITEM_ADD(g.LastItemData.Rect, g.LastItemData.ID); @@ -7020,9 +7437,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) SetCurrentWindow(window); } - // Pull/inherit current state - window->DC.NavFocusScopeIdCurrent = (flags & ImGuiWindowFlags_ChildWindow) ? parent_window->DC.NavFocusScopeIdCurrent : window->GetID("#FOCUSSCOPE"); // Inherit from parent only // -V595 - if (!(flags & ImGuiWindowFlags_DockNodeHost)) PushClipRect(window->InnerClipRect.Min, window->InnerClipRect.Max, true); @@ -7088,6 +7502,10 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) skip_items = true; window->SkipItems = skip_items; + // Restore NavLayersActiveMaskNext to previous value when not visible, so a CTRL+Tab back can use a safe value. + if (window->SkipItems) + window->DC.NavLayersActiveMaskNext = window->DC.NavLayersActiveMask; + // Sanity check: there are two spots which can set Appearing = true // - when 'window_just_activated_by_user' is set -> HiddenFramesCannotSkipItems is set -> SkipItems always false // - in BeginDocked() path when DockNodeIsVisible == DockTabIsVisible == true -> hidden _should_ be all zero // FIXME: Not formally proven, hence the assert. @@ -7120,11 +7538,15 @@ void ImGui::End() EndColumns(); if (!(window->Flags & ImGuiWindowFlags_DockNodeHost)) // Pop inner window clip rectangle PopClipRect(); + PopFocusScope(); // Stop logging if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) // FIXME: add more options for scope of logging LogFinish(); + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + // Docking: report contents sizes to parent to allow for auto-resize if (window->DockNode && window->DockTabIsVisible) if (ImGuiWindow* host_window = window->DockNode->HostWindow) // FIXME-DOCK @@ -7228,20 +7650,17 @@ void ImGui::FocusWindow(ImGuiWindow* window) if (g.NavWindow != window) { - g.NavWindow = window; + SetNavWindow(window); if (window && g.NavDisableMouseHover) g.NavMousePosDirty = true; g.NavId = window ? window->NavLastIds[0] : 0; // Restore NavId - g.NavFocusScopeId = 0; - g.NavIdIsAlive = false; g.NavLayer = ImGuiNavLayer_Main; - g.NavInitRequest = g.NavMoveSubmitted = g.NavMoveScoringItems = false; - NavUpdateAnyRequestFlag(); - //IMGUI_DEBUG_LOG("FocusWindow(\"%s\")\n", window ? window->Name : NULL); - } + g.NavFocusScopeId = window ? window->NavRootFocusScopeId : 0; + g.NavIdIsAlive = false; - // Close popups if any - ClosePopupsOverWindow(window, false); + // Close popups if any + ClosePopupsOverWindow(window, false); + } // Move the root window to the top of the pile IM_ASSERT(window == NULL || window->RootWindowDockTree != NULL); @@ -7265,7 +7684,7 @@ void ImGui::FocusWindow(ImGuiWindow* window) // Select in dock node if (dock_node && dock_node->TabBar) - dock_node->TabBar->SelectedTabId = dock_node->TabBar->NextSelectedTabId = window->ID; + dock_node->TabBar->SelectedTabId = dock_node->TabBar->NextSelectedTabId = window->TabId; // Bring to front BringWindowToFocusFront(focus_front_window); @@ -7607,6 +8026,10 @@ void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond) const ImVec2 old_pos = window->Pos; window->Pos = ImFloor(pos); ImVec2 offset = window->Pos - old_pos; + if (offset.x == 0.0f && offset.y == 0.0f) + return; + MarkIniSettingsDirty(window); + // FIXME: share code with TranslateWindow(), need to confirm whether the 3 rect modified by TranslateWindow() are desirable here. window->DC.CursorPos += offset; // As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor window->DC.CursorMaxPos += offset; // And more importantly we need to offset CursorMaxPos/CursorStartPos this so ContentSize calculation doesn't get affected. window->DC.IdealMaxPos += offset; @@ -7641,26 +8064,19 @@ void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond con window->SetWindowSizeAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); // Set - if (size.x > 0.0f) - { - window->AutoFitFramesX = 0; - window->SizeFull.x = IM_FLOOR(size.x); - } - else - { - window->AutoFitFramesX = 2; + ImVec2 old_size = window->SizeFull; + window->AutoFitFramesX = (size.x <= 0.0f) ? 2 : 0; + window->AutoFitFramesY = (size.y <= 0.0f) ? 2 : 0; + if (size.x <= 0.0f) window->AutoFitOnlyGrows = false; - } - if (size.y > 0.0f) - { - window->AutoFitFramesY = 0; - window->SizeFull.y = IM_FLOOR(size.y); - } else - { - window->AutoFitFramesY = 2; + window->SizeFull.x = IM_FLOOR(size.x); + if (size.y <= 0.0f) window->AutoFitOnlyGrows = false; - } + else + window->SizeFull.y = IM_FLOOR(size.y); + if (old_size.x != window->SizeFull.x || old_size.y != window->SizeFull.y) + MarkIniSettingsDirty(window); } void ImGui::SetWindowSize(const ImVec2& size, ImGuiCond cond) @@ -7876,26 +8292,38 @@ void ImGui::ActivateItem(ImGuiID id) void ImGui::PushFocusScope(ImGuiID id) { ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - g.FocusScopeStack.push_back(window->DC.NavFocusScopeIdCurrent); - window->DC.NavFocusScopeIdCurrent = id; + g.FocusScopeStack.push_back(id); + g.CurrentFocusScopeId = id; } void ImGui::PopFocusScope() { ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; IM_ASSERT(g.FocusScopeStack.Size > 0); // Too many PopFocusScope() ? - window->DC.NavFocusScopeIdCurrent = g.FocusScopeStack.back(); g.FocusScopeStack.pop_back(); + g.CurrentFocusScopeId = g.FocusScopeStack.Size ? g.FocusScopeStack.back() : 0; } +// Note: this will likely be called ActivateItem() once we rework our Focus/Activation system! void ImGui::SetKeyboardFocusHere(int offset) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; IM_ASSERT(offset >= -1); // -1 is allowed but not below - g.NavWindow = window; + IMGUI_DEBUG_LOG_ACTIVEID("SetKeyboardFocusHere(%d) in window \"%s\"\n", offset, window->Name); + + // It makes sense in the vast majority of cases to never interrupt a drag and drop. + // When we refactor this function into ActivateItem() we may want to make this an option. + // MovingWindow is protected from most user inputs using SetActiveIdUsingNavAndKeys(), but + // is also automatically dropped in the event g.ActiveId is stolen. + if (g.DragDropActive || g.MovingWindow != NULL) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetKeyboardFocusHere() ignored while DragDropActive!\n"); + return; + } + + SetNavWindow(window); + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; NavMoveRequestSubmit(ImGuiDir_None, offset < 0 ? ImGuiDir_Up : ImGuiDir_Down, ImGuiNavMoveFlags_Tabbing | ImGuiNavMoveFlags_FocusApi, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. if (offset == -1) @@ -7923,113 +8351,926 @@ void ImGui::SetItemDefaultFocus() g.NavInitResultRectRel = WindowRectAbsToRel(window, g.LastItemData.Rect); NavUpdateAnyRequestFlag(); - // Scroll could be done in NavInitRequestApplyResult() via a opt-in flag (we however don't want regular init requests to scroll) + // Scroll could be done in NavInitRequestApplyResult() via an opt-in flag (we however don't want regular init requests to scroll) if (!IsItemVisible()) ScrollToRectEx(window, g.LastItemData.Rect, ImGuiScrollFlags_None); } -void ImGui::SetStateStorage(ImGuiStorage* tree) +void ImGui::SetStateStorage(ImGuiStorage* tree) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + window->DC.StateStorage = tree ? tree : &window->StateStorage; +} + +ImGuiStorage* ImGui::GetStateStorage() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->DC.StateStorage; +} + +void ImGui::PushID(const char* str_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id_begin, str_id_end); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const void* ptr_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(ptr_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(int int_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(int_id); + window->IDStack.push_back(id); +} + +// Push a given id value ignoring the ID stack as a seed. +void ImGui::PushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_ID, NULL, NULL); + window->IDStack.push_back(id); +} + +// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call +// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level. +// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more) +ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed) +{ + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); + return id; +} + +void ImGui::PopID() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + IM_ASSERT(window->IDStack.Size > 1); // Too many PopID(), or could be popping in a wrong/different window? + window->IDStack.pop_back(); +} + +ImGuiID ImGui::GetID(const char* str_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id); +} + +ImGuiID ImGui::GetID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id_begin, str_id_end); +} + +ImGuiID ImGui::GetID(const void* ptr_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(ptr_id); +} + +bool ImGui::IsRectVisible(const ImVec2& size) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + size)); +} + +bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(rect_min, rect_max)); +} + + +//----------------------------------------------------------------------------- +// [SECTION] INPUTS +//----------------------------------------------------------------------------- + +// Test if mouse cursor is hovering given rectangle +// NB- Rectangle is clipped by our current clip setting +// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) +bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) +{ + ImGuiContext& g = *GImGui; + + // Clip + ImRect rect_clipped(r_min, r_max); + if (clip) + rect_clipped.ClipWith(g.CurrentWindow->ClipRect); + + // Expand for touch input + const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding); + if (!rect_for_touch.Contains(g.IO.MousePos)) + return false; + if (!g.MouseViewport->GetMainRect().Overlaps(rect_clipped)) + return false; + return true; +} + +ImGuiKeyData* ImGui::GetKeyData(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + + // Special storage location for mods + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(key); + + int index; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT(key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_NamedKey_END); + if (IsLegacyKey(key)) + index = (g.IO.KeyMap[key] != -1) ? g.IO.KeyMap[key] : key; // Remap native->imgui or imgui->native + else + index = key; +#else + IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code."); + index = key - ImGuiKey_NamedKey_BEGIN; +#endif + return &g.IO.KeysData[index]; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +ImGuiKey ImGui::GetKeyIndex(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(IsNamedKey(key)); + const ImGuiKeyData* key_data = GetKeyData(key); + return (ImGuiKey)(key_data - g.IO.KeysData); +} +#endif + +// Those names a provided for debugging purpose and are not meant to be saved persistently not compared. +static const char* const GKeyNames[] = +{ + "Tab", "LeftArrow", "RightArrow", "UpArrow", "DownArrow", "PageUp", "PageDown", + "Home", "End", "Insert", "Delete", "Backspace", "Space", "Enter", "Escape", + "LeftCtrl", "LeftShift", "LeftAlt", "LeftSuper", "RightCtrl", "RightShift", "RightAlt", "RightSuper", "Menu", + "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", + "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", + "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", + "Apostrophe", "Comma", "Minus", "Period", "Slash", "Semicolon", "Equal", "LeftBracket", + "Backslash", "RightBracket", "GraveAccent", "CapsLock", "ScrollLock", "NumLock", "PrintScreen", + "Pause", "Keypad0", "Keypad1", "Keypad2", "Keypad3", "Keypad4", "Keypad5", "Keypad6", + "Keypad7", "Keypad8", "Keypad9", "KeypadDecimal", "KeypadDivide", "KeypadMultiply", + "KeypadSubtract", "KeypadAdd", "KeypadEnter", "KeypadEqual", + "GamepadStart", "GamepadBack", + "GamepadFaceLeft", "GamepadFaceRight", "GamepadFaceUp", "GamepadFaceDown", + "GamepadDpadLeft", "GamepadDpadRight", "GamepadDpadUp", "GamepadDpadDown", + "GamepadL1", "GamepadR1", "GamepadL2", "GamepadR2", "GamepadL3", "GamepadR3", + "GamepadLStickLeft", "GamepadLStickRight", "GamepadLStickUp", "GamepadLStickDown", + "GamepadRStickLeft", "GamepadRStickRight", "GamepadRStickUp", "GamepadRStickDown", + "MouseLeft", "MouseRight", "MouseMiddle", "MouseX1", "MouseX2", "MouseWheelX", "MouseWheelY", + "ModCtrl", "ModShift", "ModAlt", "ModSuper", // ReservedForModXXX are showing the ModXXX names. +}; +IM_STATIC_ASSERT(ImGuiKey_NamedKey_COUNT == IM_ARRAYSIZE(GKeyNames)); + +const char* ImGui::GetKeyName(ImGuiKey key) +{ +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((IsNamedKey(key) || key == ImGuiKey_None) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend and user code."); +#else + if (IsLegacyKey(key)) + { + ImGuiIO& io = GetIO(); + if (io.KeyMap[key] == -1) + return "N/A"; + IM_ASSERT(IsNamedKey((ImGuiKey)io.KeyMap[key])); + key = (ImGuiKey)io.KeyMap[key]; + } +#endif + if (key == ImGuiKey_None) + return "None"; + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(key); + if (!IsNamedKey(key)) + return "Unknown"; + + return GKeyNames[key - ImGuiKey_NamedKey_BEGIN]; +} + +void ImGui::GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size) +{ + ImGuiContext& g = *GImGui; + ImFormatString(out_buf, (size_t)out_buf_size, "%s%s%s%s%s", + (key_chord & ImGuiMod_Ctrl) ? "Ctrl+" : "", + (key_chord & ImGuiMod_Shift) ? "Shift+" : "", + (key_chord & ImGuiMod_Alt) ? "Alt+" : "", + (key_chord & ImGuiMod_Super) ? (g.IO.ConfigMacOSXBehaviors ? "Cmd+" : "Super+") : "", + GetKeyName((ImGuiKey)(key_chord & ~ImGuiMod_Mask_))); +} + +// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) +// t1 = current time (e.g.: g.Time) +// An event is triggered at: +// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N +int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) +{ + if (t1 == 0.0f) + return 1; + if (t0 >= t1) + return 0; + if (repeat_rate <= 0.0f) + return (t0 < repeat_delay) && (t1 >= repeat_delay); + const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); + const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); + const int count = count_t1 - count_t0; + return count; +} + +void ImGui::GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate) +{ + ImGuiContext& g = *GImGui; + switch (flags & ImGuiInputFlags_RepeatRateMask_) + { + case ImGuiInputFlags_RepeatRateNavMove: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.80f; return; + case ImGuiInputFlags_RepeatRateNavTweak: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.30f; return; + case ImGuiInputFlags_RepeatRateDefault: default: *repeat_delay = g.IO.KeyRepeatDelay * 1.00f; *repeat_rate = g.IO.KeyRepeatRate * 1.00f; return; + } +} + +// Return value representing the number of presses in the last time period, for the given repeat rate +// (most often returns 0 or 1. The result is generally only >1 when RepeatRate is smaller than DeltaTime, aka large DeltaTime or fast RepeatRate) +int ImGui::GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float repeat_rate) +{ + ImGuiContext& g = *GImGui; + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return 0; + const float t = key_data->DownDuration; + return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); +} + +// Return 2D vector representing the combination of four cardinal direction, with analog value support (for e.g. ImGuiKey_GamepadLStick* values). +ImVec2 ImGui::GetKeyVector2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down) +{ + return ImVec2( + GetKeyData(key_right)->AnalogValue - GetKeyData(key_left)->AnalogValue, + GetKeyData(key_down)->AnalogValue - GetKeyData(key_up)->AnalogValue); +} + +// owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope(). +static inline ImGuiID GetRoutingIdFromOwnerId(ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + return (owner_id != ImGuiKeyOwner_None && owner_id != ImGuiKeyOwner_Any) ? owner_id : g.CurrentFocusScopeId; +} + +ImGuiKeyRoutingData* ImGui::GetShortcutRoutingData(ImGuiKeyChord key_chord) +{ + // Majority of shortcuts will be Key + any number of Mods + // We accept _Single_ mod with ImGuiKey_None. + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl | ImGuiMod_Shift); // Legal + // - Shortcut(ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiMod_Ctrl | ImGuiMod_Shift); // Not legal + ImGuiContext& g = *GImGui; + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + ImGuiKeyRoutingData* routing_data; + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(mods); + IM_ASSERT(IsNamedKey(key)); + + // Get (in the majority of case, the linked list will have one element so this should be 2 reads. + // Subsequent elements will be contiguous in memory as list is sorted/rebuilt in NewFrame). + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; idx = routing_data->NextEntryIndex) + { + routing_data = &rt->Entries[idx]; + if (routing_data->Mods == mods) + return routing_data; + } + + // Add to linked-list + ImGuiKeyRoutingIndex routing_data_idx = (ImGuiKeyRoutingIndex)rt->Entries.Size; + rt->Entries.push_back(ImGuiKeyRoutingData()); + routing_data = &rt->Entries[routing_data_idx]; + routing_data->Mods = (ImU16)mods; + routing_data->NextEntryIndex = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; // Setup linked list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = routing_data_idx; + return routing_data; +} + +// Current score encoding (lower is highest priority): +// - 0: ImGuiInputFlags_RouteGlobalHigh +// - 1: ImGuiInputFlags_RouteFocused (if item active) +// - 2: ImGuiInputFlags_RouteGlobal +// - 3+: ImGuiInputFlags_RouteFocused (if window in focus-stack) +// - 254: ImGuiInputFlags_RouteGlobalLow +// - 255: never route +// 'flags' should include an explicit routing policy +static int CalcRoutingScore(ImGuiWindow* location, ImGuiID owner_id, ImGuiInputFlags flags) +{ + if (flags & ImGuiInputFlags_RouteFocused) + { + ImGuiContext& g = *GImGui; + ImGuiWindow* focused = g.NavWindow; + + // ActiveID gets top priority + // (we don't check g.ActiveIdUsingAllKeys here. Routing is applied but if input ownership is tested later it may discard it) + if (owner_id != 0 && g.ActiveId == owner_id) + return 1; + + // Score based on distance to focused window (lower is better) + // Assuming both windows are submitting a routing request, + // - When Window....... is focused -> Window scores 3 (best), Window/ChildB scores 255 (no match) + // - When Window/ChildB is focused -> Window scores 4, Window/ChildB scores 3 (best) + // Assuming only WindowA is submitting a routing request, + // - When Window/ChildB is focused -> Window scores 4 (best), Window/ChildB doesn't have a score. + if (focused != NULL && focused->RootWindow == location->RootWindow) + for (int next_score = 3; focused != NULL; next_score++) + { + if (focused == location) + { + IM_ASSERT(next_score < 255); + return next_score; + } + focused = (focused->RootWindow != focused) ? focused->ParentWindow : NULL; // FIXME: This could be later abstracted as a focus path + } + return 255; + } + + // ImGuiInputFlags_RouteGlobalHigh is default, so calls without flags are not conditional + if (flags & ImGuiInputFlags_RouteGlobal) + return 2; + if (flags & ImGuiInputFlags_RouteGlobalLow) + return 254; + return 0; +} + +// Request a desired route for an input chord (key + mods). +// Return true if the route is available this frame. +// - Routes and key ownership are attributed at the beginning of next frame based on best score and mod state. +// (Conceptually this does a "Submit for next frame" + "Test for current frame". +// As such, it could be called TrySetXXX or SubmitXXX, or the Submit and Test operations should be separate.) +// - Using 'owner_id == ImGuiKeyOwner_Any/0': auto-assign an owner based on current focus scope (each window has its focus scope by default) +// - Using 'owner_id == ImGuiKeyOwner_None': allows disabling/locking a shortcut. +bool ImGui::SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteGlobalHigh; // IMPORTANT: This is the default for SetShortcutRouting() but NOT Shortcut() + else + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiInputFlags_RouteMask_)); // Check that only 1 routing flag is used + + if (flags & ImGuiInputFlags_RouteUnlessBgFocused) + if (g.NavWindow == NULL) + return false; + if (flags & ImGuiInputFlags_RouteAlways) + return true; + + const int score = CalcRoutingScore(g.CurrentWindow, owner_id, flags); + if (score == 255) + return false; + + // Submit routing for NEXT frame (assuming score is sufficient) + // FIXME: Could expose a way to use a "serve last" policy for same score resolution (using <= instead of <). + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + //const bool set_route = (flags & ImGuiInputFlags_ServeLast) ? (score <= routing_data->RoutingNextScore) : (score < routing_data->RoutingNextScore); + if (score < routing_data->RoutingNextScore) + { + routing_data->RoutingNext = routing_id; + routing_data->RoutingNextScore = (ImU8)score; + } + + // Return routing state for CURRENT frame + return routing_data->RoutingCurr == routing_id; +} + +// Currently unused by core (but used by tests) +// Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading. +bool ImGui::TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id) +{ + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + return routing_data->RoutingCurr == routing_id; +} + +// Note that Dear ImGui doesn't know the meaning/semantic of ImGuiKey from 0..511: they are legacy native keycodes. +// Consider transitioning from 'IsKeyDown(MY_ENGINE_KEY_A)' (<1.87) to IsKeyDown(ImGuiKey_A) (>= 1.87) +bool ImGui::IsKeyDown(ImGuiKey key) +{ + return IsKeyDown(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyDown(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyPressed(ImGuiKey key, bool repeat) +{ + return IsKeyPressed(key, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +// Important: unless legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this requires EXPLICIT repeat. +bool ImGui::IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = key_data->DownDuration; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + bool pressed = (t == 0.0f); + if (!pressed && ((flags & ImGuiInputFlags_Repeat) != 0)) + { + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(flags, &repeat_delay, &repeat_rate); + pressed = (t > repeat_delay) && GetKeyPressedAmount(key, repeat_delay, repeat_rate) > 0; + } + if (!pressed) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyReleased(ImGuiKey key) +{ + return IsKeyReleased(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyReleased(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (key_data->DownDurationPrev < 0.0f || key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // should be same as IsKeyDown(MouseButtonToKey(button), ImGuiKeyOwner_Any), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyDown(MouseButtonToKey(button), owner_id), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) +{ + return IsMouseClicked(button, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = g.IO.MouseDownDuration[button]; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + const bool repeat = (flags & ImGuiInputFlags_Repeat) != 0; + const bool pressed = (t == 0.0f) || (repeat && t > g.IO.KeyRepeatDelay && CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0); + if (!pressed) + return false; + + if (!TestKeyOwner(MouseButtonToKey(button), owner_id)) + return false; + + return true; +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // Should be same as IsKeyReleased(MouseButtonToKey(button), ImGuiKeyOwner_Any) +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyReleased(MouseButtonToKey(button), owner_id) +} + +bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); +} + +int ImGui::GetMouseClickedCount(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button]; +} + +// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. +// [Internal] This doesn't test if the button is pressed +bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; +} + +bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) + return false; + return IsMouseDragPastThreshold(button, lock_threshold); +} + +ImVec2 ImGui::GetMousePos() +{ + ImGuiContext& g = *GImGui; + return g.IO.MousePos; +} + +// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! +ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() +{ + ImGuiContext& g = *GImGui; + if (g.BeginPopupStack.Size > 0) + return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; + return g.IO.MousePos; +} + +// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. +bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) +{ + // The assert is only to silence a false-positive in XCode Static Analysis. + // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). + IM_ASSERT(GImGui != NULL); + const float MOUSE_INVALID = -256000.0f; + ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; + return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; +} + +// [WILL OBSOLETE] This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. +bool ImGui::IsAnyMouseDown() +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) + if (g.IO.MouseDown[n]) + return true; + return false; +} + +// Return the delta from the initial clicking position while the mouse button is clicked or was just released. +// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. +// NB: This is only valid if IsMousePosValid(). backends in theory should always keep mouse position valid when dragging even outside the client window. +ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) { - ImGuiWindow* window = GImGui->CurrentWindow; - window->DC.StateStorage = tree ? tree : &window->StateStorage; + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) + if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) + if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) + return g.IO.MousePos - g.IO.MouseClickedPos[button]; + return ImVec2(0.0f, 0.0f); } -ImGuiStorage* ImGui::GetStateStorage() +void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) { - ImGuiWindow* window = GImGui->CurrentWindow; - return window->DC.StateStorage; + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr + g.IO.MouseClickedPos[button] = g.IO.MousePos; } -void ImGui::PushID(const char* str_id) +// Get desired mouse cursor shape. +// Important: this is meant to be used by a platform backend, it is reset in ImGui::NewFrame(), +// updated during the frame, and locked in EndFrame()/Render(). +// If you use software rendering by setting io.MouseDrawCursor then Dear ImGui will render those for you +ImGuiMouseCursor ImGui::GetMouseCursor() { ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(str_id); - window->IDStack.push_back(id); + return g.MouseCursor; } -void ImGui::PushID(const char* str_id_begin, const char* str_id_end) +void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) { ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(str_id_begin, str_id_end); - window->IDStack.push_back(id); + g.MouseCursor = cursor_type; } -void ImGui::PushID(const void* ptr_id) +void ImGui::SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) { ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(ptr_id); - window->IDStack.push_back(id); + g.WantCaptureKeyboardNextFrame = want_capture_keyboard ? 1 : 0; } -void ImGui::PushID(int int_id) +void ImGui::SetNextFrameWantCaptureMouse(bool want_capture_mouse) { ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(int_id); - window->IDStack.push_back(id); + g.WantCaptureMouseNextFrame = want_capture_mouse ? 1 : 0; } -// Push a given id value ignoring the ID stack as a seed. -void ImGui::PushOverrideID(ImGuiID id) +#ifndef IMGUI_DISABLE_DEBUG_TOOLS +static const char* GetInputSourceName(ImGuiInputSource source) { - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (g.DebugHookIdInfo == id) - DebugHookIdInfo(id, ImGuiDataType_ID, NULL, NULL); - window->IDStack.push_back(id); + const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad", "Nav", "Clipboard" }; + IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT && source >= 0 && source < ImGuiInputSource_COUNT); + return input_source_names[source]; } - -// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call -// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level. -// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more) -ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed) +static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e) { - ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); - KeepAliveID(id); ImGuiContext& g = *GImGui; - if (g.DebugHookIdInfo == id) - DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); - return id; + if (e->Type == ImGuiInputEventType_MousePos) { if (e->MousePos.PosX == -FLT_MAX && e->MousePos.PosY == -FLT_MAX) IMGUI_DEBUG_LOG_IO("%s: MousePos (-FLT_MAX, -FLT_MAX)\n", prefix); else IMGUI_DEBUG_LOG_IO("%s: MousePos (%.1f, %.1f)\n", prefix, e->MousePos.PosX, e->MousePos.PosY); return; } + if (e->Type == ImGuiInputEventType_MouseButton) { IMGUI_DEBUG_LOG_IO("%s: MouseButton %d %s\n", prefix, e->MouseButton.Button, e->MouseButton.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_MouseWheel) { IMGUI_DEBUG_LOG_IO("%s: MouseWheel (%.1f, %.1f)\n", prefix, e->MouseWheel.WheelX, e->MouseWheel.WheelY); return; } + if (e->Type == ImGuiInputEventType_MouseViewport){IMGUI_DEBUG_LOG_IO("%s: MouseViewport (0x%08X)\n", prefix, e->MouseViewport.HoveredViewportID); return; } + if (e->Type == ImGuiInputEventType_Key) { IMGUI_DEBUG_LOG_IO("%s: Key \"%s\" %s\n", prefix, ImGui::GetKeyName(e->Key.Key), e->Key.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_Text) { IMGUI_DEBUG_LOG_IO("%s: Text: %c (U+%08X)\n", prefix, e->Text.Char, e->Text.Char); return; } + if (e->Type == ImGuiInputEventType_Focus) { IMGUI_DEBUG_LOG_IO("%s: AppFocused %d\n", prefix, e->AppFocused.Focused); return; } } +#endif -void ImGui::PopID() +// Process input queue +// We always call this with the value of 'bool g.IO.ConfigInputTrickleEventQueue'. +// - trickle_fast_inputs = false : process all events, turn into flattened input state (e.g. successive down/up/down/up will be lost) +// - trickle_fast_inputs = true : process as many events as possible (successive down/up/down/up will be trickled over several frames so nothing is lost) (new feature in 1.87) +void ImGui::UpdateInputEvents(bool trickle_fast_inputs) { - ImGuiWindow* window = GImGui->CurrentWindow; - IM_ASSERT(window->IDStack.Size > 1); // Too many PopID(), or could be popping in a wrong/different window? - window->IDStack.pop_back(); + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Only trickle chars<>key when working with InputText() + // FIXME: InputText() could parse event trail? + // FIXME: Could specialize chars<>keys trickling rules for control keys (those not typically associated to characters) + const bool trickle_interleaved_keys_and_text = (trickle_fast_inputs && g.WantTextInputNextFrame == 1); + + bool mouse_moved = false, mouse_wheeled = false, key_changed = false, text_inputted = false; + int mouse_button_changed = 0x00; + ImBitArray key_changed_mask; + + int event_n = 0; + for (; event_n < g.InputEventsQueue.Size; event_n++) + { + ImGuiInputEvent* e = &g.InputEventsQueue[event_n]; + if (e->Type == ImGuiInputEventType_MousePos) + { + // Trickling Rule: Stop processing queued events if we already handled a mouse button change + ImVec2 event_pos(e->MousePos.PosX, e->MousePos.PosY); + if (trickle_fast_inputs && (mouse_button_changed != 0 || mouse_wheeled || key_changed || text_inputted)) + break; + io.MousePos = event_pos; + mouse_moved = true; + } + else if (e->Type == ImGuiInputEventType_MouseButton) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + const ImGuiMouseButton button = e->MouseButton.Button; + IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); + if (trickle_fast_inputs && ((mouse_button_changed & (1 << button)) || mouse_wheeled)) + break; + io.MouseDown[button] = e->MouseButton.Down; + mouse_button_changed |= (1 << button); + } + else if (e->Type == ImGuiInputEventType_MouseWheel) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the event + if (trickle_fast_inputs && (mouse_moved || mouse_button_changed != 0)) + break; + io.MouseWheelH += e->MouseWheel.WheelX; + io.MouseWheel += e->MouseWheel.WheelY; + mouse_wheeled = true; + } + else if (e->Type == ImGuiInputEventType_MouseViewport) + { + io.MouseHoveredViewport = e->MouseViewport.HoveredViewportID; + } + else if (e->Type == ImGuiInputEventType_Key) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + ImGuiKey key = e->Key.Key; + IM_ASSERT(key != ImGuiKey_None); + ImGuiKeyData* key_data = GetKeyData(key); + const int key_data_index = (int)(key_data - g.IO.KeysData); + if (trickle_fast_inputs && key_data->Down != e->Key.Down && (key_changed_mask.TestBit(key_data_index) || text_inputted || mouse_button_changed != 0)) + break; + key_data->Down = e->Key.Down; + key_data->AnalogValue = e->Key.AnalogValue; + key_changed = true; + key_changed_mask.SetBit(key_data_index); + + if (key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super) + { + if (key == ImGuiMod_Ctrl) { io.KeyCtrl = key_data->Down; } + if (key == ImGuiMod_Shift) { io.KeyShift = key_data->Down; } + if (key == ImGuiMod_Alt) { io.KeyAlt = key_data->Down; } + if (key == ImGuiMod_Super) { io.KeySuper = key_data->Down; } + io.KeyMods = GetMergedModsFromBools(); + } + + // Allow legacy code using io.KeysDown[GetKeyIndex()] with new backends +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + io.KeysDown[key_data_index] = key_data->Down; + if (io.KeyMap[key_data_index] != -1) + io.KeysDown[io.KeyMap[key_data_index]] = key_data->Down; +#endif + } + else if (e->Type == ImGuiInputEventType_Text) + { + // Trickling Rule: Stop processing queued events if keys/mouse have been interacted with + if (trickle_fast_inputs && ((key_changed && trickle_interleaved_keys_and_text) || mouse_button_changed != 0 || mouse_moved || mouse_wheeled)) + break; + unsigned int c = e->Text.Char; + io.InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); + if (trickle_interleaved_keys_and_text) + text_inputted = true; + } + else if (e->Type == ImGuiInputEventType_Focus) + { + // We intentionally overwrite this and process in NewFrame(), in order to give a chance + // to multi-viewports backends to queue AddFocusEvent(false) + AddFocusEvent(true) in same frame. + const bool focus_lost = !e->AppFocused.Focused; + io.AppFocusLost = focus_lost; + } + else + { + IM_ASSERT(0 && "Unknown event!"); + } + } + + // Record trail (for domain-specific applications wanting to access a precise trail) + //if (event_n != 0) IMGUI_DEBUG_LOG_IO("Processed: %d / Remaining: %d\n", event_n, g.InputEventsQueue.Size - event_n); + for (int n = 0; n < event_n; n++) + g.InputEventsTrail.push_back(g.InputEventsQueue[n]); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (event_n != 0 && (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO)) + for (int n = 0; n < g.InputEventsQueue.Size; n++) + DebugPrintInputEvent(n < event_n ? "Processed" : "Remaining", &g.InputEventsQueue[n]); +#endif + + // Remaining events will be processed on the next frame + if (event_n == g.InputEventsQueue.Size) + g.InputEventsQueue.resize(0); + else + g.InputEventsQueue.erase(g.InputEventsQueue.Data, g.InputEventsQueue.Data + event_n); + + // Clear buttons state when focus is lost + // - this is useful so e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger the Alt menu toggle. + // - we clear in EndFrame() and not now in order allow application/user code polling this flag + // (e.g. custom backend may want to clear additional data, custom widgets may want to react with a "canceling" event). + if (g.IO.AppFocusLost) + g.IO.ClearInputKeys(); } -ImGuiID ImGui::GetID(const char* str_id) +ImGuiID ImGui::GetKeyOwner(ImGuiKey key) { - ImGuiWindow* window = GImGui->CurrentWindow; - return window->GetID(str_id); + if (!IsNamedKeyOrModKey(key)) + return ImGuiKeyOwner_None; + + ImGuiContext& g = *GImGui; + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + ImGuiID owner_id = owner_data->OwnerCurr; + + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return ImGuiKeyOwner_None; + + return owner_id; } -ImGuiID ImGui::GetID(const char* str_id_begin, const char* str_id_end) +// TestKeyOwner(..., ID) : (owner == None || owner == ID) +// TestKeyOwner(..., None) : (owner == None) +// TestKeyOwner(..., Any) : no owner test +// All paths are also testing for key not being locked, for the rare cases that key have been locked with using ImGuiInputFlags_LockXXX flags. +bool ImGui::TestKeyOwner(ImGuiKey key, ImGuiID owner_id) { - ImGuiWindow* window = GImGui->CurrentWindow; - return window->GetID(str_id_begin, str_id_end); + if (!IsNamedKeyOrModKey(key)) + return true; + + ImGuiContext& g = *GImGui; + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return false; + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + if (owner_id == ImGuiKeyOwner_Any) + return (owner_data->LockThisFrame == false); + + // Note: SetKeyOwner() sets OwnerCurr. It is not strictly required for most mouse routing overlap (because of ActiveId/HoveredId + // are acting as filter before this has a chance to filter), but sane as soon as user tries to look into things. + // Setting OwnerCurr in SetKeyOwner() is more consistent than testing OwnerNext here: would be inconsistent with getter and other functions. + if (owner_data->OwnerCurr != owner_id) + { + if (owner_data->LockThisFrame) + return false; + if (owner_data->OwnerCurr != ImGuiKeyOwner_None) + return false; + } + + return true; } -ImGuiID ImGui::GetID(const void* ptr_id) +// _LockXXX flags are useful to lock keys away from code which is not input-owner aware. +// When using _LockXXX flags, you can use ImGuiKeyOwner_Any to lock keys from everyone. +// - SetKeyOwner(..., None) : clears owner +// - SetKeyOwner(..., Any, !Lock) : illegal (assert) +// - SetKeyOwner(..., Any or None, Lock) : set lock +void ImGui::SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) { - ImGuiWindow* window = GImGui->CurrentWindow; - return window->GetID(ptr_id); + IM_ASSERT(IsNamedKeyOrModKey(key) && (owner_id != ImGuiKeyOwner_Any || (flags & (ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease)))); // Can only use _Any with _LockXXX flags (to eat a key away without an ID to retrieve it) + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetKeyOwner) == 0); // Passing flags not supported by this function! + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + owner_data->OwnerCurr = owner_data->OwnerNext = owner_id; + + // We cannot lock by default as it would likely break lots of legacy code. + // In the case of using LockUntilRelease while key is not down we still lock during the frame (no key_data->Down test) + owner_data->LockUntilRelease = (flags & ImGuiInputFlags_LockUntilRelease) != 0; + owner_data->LockThisFrame = (flags & ImGuiInputFlags_LockThisFrame) != 0 || (owner_data->LockUntilRelease); } -bool ImGui::IsRectVisible(const ImVec2& size) +// This is more or less equivalent to: +// if (IsItemHovered() || IsItemActive()) +// SetKeyOwner(key, GetItemID()); +// Extensive uses of that (e.g. many calls for a single item) may want to manually perform the tests once and then call SetKeyOwner() multiple times. +// More advanced usage scenarios may want to call SetKeyOwner() manually based on different condition. +// Worth noting is that only one item can be hovered and only one item can be active, therefore this usage pattern doesn't need to bother with routing and priority. +void ImGui::SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags) { - ImGuiWindow* window = GImGui->CurrentWindow; - return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + size)); + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (id == 0 || (g.HoveredId != id && g.ActiveId != id)) + return; + if ((flags & ImGuiInputFlags_CondMask_) == 0) + flags |= ImGuiInputFlags_CondDefault_; + if ((g.HoveredId == id && (flags & ImGuiInputFlags_CondHovered)) || (g.ActiveId == id && (flags & ImGuiInputFlags_CondActive))) + { + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetItemKeyOwner) == 0); // Passing flags not supported by this function! + SetKeyOwner(key, id, flags & ~ImGuiInputFlags_CondMask_); + } } -bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) +// - Need to decide how to handle shortcut translations for Non-Mac <> Mac +// - Ideas: https://github.com/ocornut/imgui/issues/456#issuecomment-264390864 +bool ImGui::Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) { - ImGuiWindow* window = GImGui->CurrentWindow; - return window->ClipRect.Overlaps(ImRect(rect_min, rect_max)); + ImGuiContext& g = *GImGui; + + // When using (owner_id == 0/Any): SetShortcutRouting() will use CurrentFocusScopeId and filter with this, so IsKeyPressed() is fine with he 0/Any. + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteFocused; + if (!SetShortcutRouting(key_chord, owner_id, flags)) + return false; + + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (g.IO.KeyMods != mods) + return false; + + // Special storage location for mods + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(mods); + + if (!IsKeyPressed(key, owner_id, (flags & (ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_)))) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByShortcut) == 0); // Passing flags not supported by this function! + + return true; } @@ -8039,9 +9280,12 @@ bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) // Helper function to verify ABI compatibility between caller code and compiled version of Dear ImGui. // Verify that the type sizes are matching between the calling file's compilation unit and imgui.cpp's compilation unit -// If the user has inconsistent compilation settings, imgui configuration #define, packing pragma, etc. your user code -// may see different structures than what imgui.cpp sees, which is problematic. -// We usually require settings to be in imconfig.h to make sure that they are accessible to all compilation units involved with Dear ImGui. +// If this triggers you have an issue: +// - Most commonly: mismatched headers and compiled code version. +// - Or: mismatched configuration #define, compilation settings, packing pragma etc. +// The configuration settings mentioned in imconfig.h must be set for all compilation units involved with Dear ImGui, +// which is way it is required you put them in your imconfig file (and not just before including imgui.h). +// Otherwise it is possible that different compilation units would see different structure layout bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_vert, size_t sz_idx) { bool error = false; @@ -8055,6 +9299,38 @@ bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, si return !error; } +// Until 1.89 (IMGUI_VERSION_NUM < 18814) it was legal to use SetCursorPos() to extend the boundary of a parent (e.g. window or table cell) +// This is causing issues and ambiguity and we need to retire that. +// See https://github.com/ocornut/imgui/issues/5548 for more details. +// [Scenario 1] +// Previously this would make the window content size ~200x200: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); // NOT OK +// Instead, please submit an item: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); // OK +// Alternative: +// Begin(...) + Dummy(ImVec2(200,200)) + End(); // OK +// [Scenario 2] +// For reference this is one of the issue what we aim to fix with this change: +// BeginGroup() + SomeItem("foobar") + SetCursorScreenPos(GetCursorScreenPos()) + EndGroup() +// The previous logic made SetCursorScreenPos(GetCursorScreenPos()) have a side-effect! It would erroneously incorporate ItemSpacing.y after the item into content size, making the group taller! +// While this code is a little twisted, no-one would expect SetXXX(GetXXX()) to have a side-effect. Using vertical alignment patterns could trigger this issue. +void ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->DC.IsSetPos); + window->DC.IsSetPos = false; +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (window->DC.CursorPos.x <= window->DC.CursorMaxPos.x && window->DC.CursorPos.y <= window->DC.CursorMaxPos.y) + return; + if (window->SkipItems) + return; + IM_ASSERT(0 && "Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries. Please submit an item e.g. Dummy() to validate extent."); +#else + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); +#endif +} + static void ImGui::ErrorCheckNewFrameSanityChecks() { ImGuiContext& g = *GImGui; @@ -8075,16 +9351,19 @@ static void ImGui::ErrorCheckNewFrameSanityChecks() IM_ASSERT(g.IO.DisplaySize.x >= 0.0f && g.IO.DisplaySize.y >= 0.0f && "Invalid DisplaySize value!"); IM_ASSERT(g.IO.Fonts->IsBuilt() && "Font Atlas not built! Make sure you called ImGui_ImplXXXX_NewFrame() function for renderer backend, which should call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8()"); IM_ASSERT(g.Style.CurveTessellationTol > 0.0f && "Invalid style setting!"); - IM_ASSERT(g.Style.CircleTessellationMaxError > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.CircleTessellationMaxError > 0.0f && "Invalid style setting!"); IM_ASSERT(g.Style.Alpha >= 0.0f && g.Style.Alpha <= 1.0f && "Invalid style setting!"); // Allows us to avoid a few clamps in color computations IM_ASSERT(g.Style.WindowMinSize.x >= 1.0f && g.Style.WindowMinSize.y >= 1.0f && "Invalid style setting."); IM_ASSERT(g.Style.WindowMenuButtonPosition == ImGuiDir_None || g.Style.WindowMenuButtonPosition == ImGuiDir_Left || g.Style.WindowMenuButtonPosition == ImGuiDir_Right); - for (int n = 0; n < ImGuiKey_COUNT; n++) - IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < IM_ARRAYSIZE(g.IO.KeysDown) && "io.KeyMap[] contains an out of bound value (need to be 0..512, or -1 for unmapped key)"); + IM_ASSERT(g.Style.ColorButtonPosition == ImGuiDir_Left || g.Style.ColorButtonPosition == ImGuiDir_Right); +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_COUNT; n++) + IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < ImGuiKey_LegacyNativeKey_END && "io.KeyMap[] contains an out of bound value (need to be 0..511, or -1 for unmapped key)"); // Check: required key mapping (we intentionally do NOT check all keys to not pressure user into setting up everything, but Space is required and was only added in 1.60 WIP) - if (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) + if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && g.IO.BackendUsingLegacyKeyArrays == 1) IM_ASSERT(g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation."); +#endif // Check: the io.ConfigWindowsResizeFromEdges option requires backend to honor mouse cursor changes and set the ImGuiBackendFlags_HasMouseCursors flag accordingly. if (g.IO.ConfigWindowsResizeFromEdges && !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseCursors)) @@ -8141,11 +9420,11 @@ static void ImGui::ErrorCheckEndFrameSanityChecks() // send key release events mid-frame. This would normally trigger this assertion and lead to sheared inputs. // We silently accommodate for this case by ignoring/ the case where all io.KeyXXX modifiers were released (aka key_mod_flags == 0), // while still correctly asserting on mid-frame key press events. - const ImGuiKeyModFlags key_mod_flags = GetMergedKeyModFlags(); - IM_ASSERT((key_mod_flags == 0 || g.IO.KeyMods == key_mod_flags) && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); - IM_UNUSED(key_mod_flags); + const ImGuiKeyChord key_mods = GetMergedModsFromBools(); + IM_ASSERT((key_mods == 0 || g.IO.KeyMods == key_mods) && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); + IM_UNUSED(key_mods); - // Recover from errors + // [EXPERIMENTAL] Recover from errors: You may call this yourself before EndFrame(). //ErrorCheckEndFrameRecover(); // Report when there is a mismatch of Begin/BeginChild vs End/EndChild calls. Important: Remember that the Begin/BeginChild API requires you @@ -8185,7 +9464,6 @@ void ImGui::ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, voi IM_ASSERT(window->IsFallbackWindow); break; } - IM_ASSERT(window == g.CurrentWindow); if (window->Flags & ImGuiWindowFlags_ChildWindow) { if (log_callback) log_callback(user_data, "Recovered from missing EndChild() for '%s'", window->Name); @@ -8252,7 +9530,7 @@ void ImGui::ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, vo if (log_callback) log_callback(user_data, "Recovered from missing PopStyleVar() in '%s'", window->Name); PopStyleVar(); } - while (g.FocusScopeStack.Size > stack_sizes->SizeOfFocusScopeStack) //-V1044 + while (g.FocusScopeStack.Size > stack_sizes->SizeOfFocusScopeStack + 1) //-V1044 { if (log_callback) log_callback(user_data, "Recovered from missing PopFocusScope() in '%s'", window->Name); PopFocusScope(); @@ -8328,7 +9606,7 @@ void ImGuiStackSizes::CompareWithCurrentState() // - GetWindowContentRegionMin(), GetWindowContentRegionMax() // - BeginGroup() // - EndGroup() -// Also see in imgui_widgets: tab bars, columns. +// Also see in imgui_widgets: tab bars, and in imgui_tables: tables, columns. //----------------------------------------------------------------------------- // Advance cursor given item size for layout. @@ -8345,14 +9623,16 @@ void ImGui::ItemSize(const ImVec2& size, float text_baseline_y) // In theory we should be offsetting the starting position (window->DC.CursorPos), that will be the topic of a larger refactor, // but since ItemSize() is not yet an API that moves the cursor (to handle e.g. wrapping) enlarging the height has the same effect. const float offset_to_match_baseline_y = (text_baseline_y >= 0) ? ImMax(0.0f, window->DC.CurrLineTextBaseOffset - text_baseline_y) : 0.0f; - const float line_height = ImMax(window->DC.CurrLineSize.y, size.y + offset_to_match_baseline_y); + + const float line_y1 = window->DC.IsSameLine ? window->DC.CursorPosPrevLine.y : window->DC.CursorPos.y; + const float line_height = ImMax(window->DC.CurrLineSize.y, /*ImMax(*/window->DC.CursorPos.y - line_y1/*, 0.0f)*/ + size.y + offset_to_match_baseline_y); // Always align ourselves on pixel boundaries //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x + size.x; - window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y; + window->DC.CursorPosPrevLine.y = line_y1; window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); // Next line - window->DC.CursorPos.y = IM_FLOOR(window->DC.CursorPos.y + line_height + g.Style.ItemSpacing.y); // Next line + window->DC.CursorPos.y = IM_FLOOR(line_y1 + line_height + g.Style.ItemSpacing.y); // Next line window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPosPrevLine.x); window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y - g.Style.ItemSpacing.y); //if (g.IO.KeyAlt) window->DrawList->AddCircle(window->DC.CursorMaxPos, 3.0f, IM_COL32(255,0,0,255), 4); // [DEBUG] @@ -8361,17 +9641,13 @@ void ImGui::ItemSize(const ImVec2& size, float text_baseline_y) window->DC.CurrLineSize.y = 0.0f; window->DC.PrevLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, text_baseline_y); window->DC.CurrLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; // Horizontal layout mode if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) SameLine(); } -void ImGui::ItemSize(const ImRect& bb, float text_baseline_y) -{ - ItemSize(bb.GetSize(), text_baseline_y); -} - // Declare item bounding box for clipping and interaction. // Note that the size can be different than the one provided to ItemSize(). Typically, widgets that spread over available surface // declare their minimum size requirement to ItemSize() and provide a larger region to ItemAdd() which is used drawing/interaction. @@ -8391,6 +9667,8 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu // Directional navigation processing if (id != 0) { + KeepAliveID(id); + // Runs prior to clipping early-out // (a) So that NavInitRequest can be honored, for newly opened windows to select a default widget // (b) So that we can scroll up/down past clipped items. This adds a small O(N) cost to regular navigation requests @@ -8400,25 +9678,19 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu // to reach unclipped widgets. This would work if user had explicit scrolling control (e.g. mapped on a stick). // We intentionally don't check if g.NavWindow != NULL because g.NavAnyRequest should only be set when it is non null. // If we crash on a NULL g.NavWindow we need to fix the bug elsewhere. - window->DC.NavLayersActiveMaskNext |= (1 << window->DC.NavLayerCurrent); - if (g.NavId == id || g.NavAnyRequest) - if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) - if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) - NavProcessItem(); + if (!(g.LastItemData.InFlags & ImGuiItemFlags_NoNav)) + { + window->DC.NavLayersActiveMaskNext |= (1 << window->DC.NavLayerCurrent); + if (g.NavId == id || g.NavAnyRequest) + if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) + if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) + NavProcessItem(); + } // [DEBUG] People keep stumbling on this problem and using "" as identifier in the root of a window instead of "##something". // Empty identifier are valid and useful in a small amount of cases, but 99.9% of the time you want to use "##something". // READ THE FAQ: https://dearimgui.org/faq IM_ASSERT(id != window->ID && "Cannot have an empty ID at the root of a window. If you need an empty label, use ## and read the FAQ about how the ID Stack works!"); - - // [DEBUG] Item Picker tool, when enabling the "extended" version we perform the check in ItemAdd() -#ifdef IMGUI_DEBUG_TOOL_ITEM_PICKER_EX - if (id == g.DebugItemPickerBreakId) - { - IM_DEBUG_BREAK(); - g.DebugItemPickerBreakId = 0; - } -#endif } g.NextItemData.Flags = ImGuiNextItemDataFlags_None; @@ -8428,12 +9700,26 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu #endif // Clipping test - const bool is_clipped = IsClippedEx(bb, id); - if (is_clipped) - return false; + // (FIXME: This is a modified copy of IsClippedEx() so we can reuse the is_rect_visible value) + //const bool is_clipped = IsClippedEx(bb, id); + //if (is_clipped) + // return false; + const bool is_rect_visible = bb.Overlaps(window->ClipRect); + if (!is_rect_visible) + if (id == 0 || (id != g.ActiveId && id != g.NavId)) + if (!g.LogEnabled) + return false; + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (id != 0 && id == g.DebugLocateId) + DebugLocateItemResolveWithLastItem(); +#endif //if (g.IO.KeyAlt) window->DrawList->AddRect(bb.Min, bb.Max, IM_COL32(255,255,0,120)); // [DEBUG] // We need to calculate this now to take account of the current clipping rectangle (as items like Selectable may change them) + if (is_rect_visible) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Visible; if (IsMouseHoveringRect(bb.Min, bb.Max)) g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; return true; @@ -8446,25 +9732,28 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu // spacing_w >= 0 : enforce spacing amount void ImGui::SameLine(float offset_from_start_x, float spacing_w) { - ImGuiWindow* window = GetCurrentWindow(); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; if (window->SkipItems) return; - ImGuiContext& g = *GImGui; if (offset_from_start_x != 0.0f) { - if (spacing_w < 0.0f) spacing_w = 0.0f; + if (spacing_w < 0.0f) + spacing_w = 0.0f; window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + offset_from_start_x + spacing_w + window->DC.GroupOffset.x + window->DC.ColumnsOffset.x; window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; } else { - if (spacing_w < 0.0f) spacing_w = g.Style.ItemSpacing.x; + if (spacing_w < 0.0f) + spacing_w = g.Style.ItemSpacing.x; window->DC.CursorPos.x = window->DC.CursorPosPrevLine.x + spacing_w; window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; } window->DC.CurrLineSize = window->DC.PrevLineSize; window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + window->DC.IsSameLine = true; } ImVec2 ImGui::GetCursorScreenPos() @@ -8473,11 +9762,15 @@ ImVec2 ImGui::GetCursorScreenPos() return window->DC.CursorPos; } +// 2022/08/05: Setting cursor position also extend boundaries (via modifying CursorMaxPos) used to compute window size, group size etc. +// I believe this was is a judicious choice but it's probably being relied upon (it has been the case since 1.31 and 1.50) +// It would be sane if we requested user to use SetCursorPos() + Dummy(ImVec2(0,0)) to extend CursorMaxPos... void ImGui::SetCursorScreenPos(const ImVec2& pos) { ImGuiWindow* window = GetCurrentWindow(); window->DC.CursorPos = pos; - window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; } // User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. @@ -8504,21 +9797,24 @@ void ImGui::SetCursorPos(const ImVec2& local_pos) { ImGuiWindow* window = GetCurrentWindow(); window->DC.CursorPos = window->Pos - window->Scroll + local_pos; - window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; } void ImGui::SetCursorPosX(float x) { ImGuiWindow* window = GetCurrentWindow(); window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + x; - window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); + //window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); + window->DC.IsSetPos = true; } void ImGui::SetCursorPosY(float y) { ImGuiWindow* window = GetCurrentWindow(); window->DC.CursorPos.y = window->Pos.y - window->Scroll.y + y; - window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); + //window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); + window->DC.IsSetPos = true; } ImVec2 ImGui::GetCursorStartPos() @@ -8609,7 +9905,8 @@ float ImGui::CalcItemWidth() // The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable) ImVec2 ImGui::CalcItemSize(ImVec2 size, float default_w, float default_h) { - ImGuiWindow* window = GImGui->CurrentWindow; + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; ImVec2 region_max; if (size.x < 0.0f || size.y < 0.0f) @@ -8734,6 +10031,9 @@ void ImGui::EndGroup() ImGuiGroupData& group_data = g.GroupStack.back(); IM_ASSERT(group_data.WindowID == window->ID); // EndGroup() in wrong window? + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + ImRect group_bb(group_data.BackupCursorPos, ImMax(window->DC.CursorMaxPos, group_data.BackupCursorPos)); window->DC.CursorPos = group_data.BackupCursorPos; @@ -8756,7 +10056,7 @@ void ImGui::EndGroup() ItemAdd(group_bb, 0, NULL, ImGuiItemFlags_NoTabStop); // If the current ActiveId was declared within the boundary of our group, we copy it to LastItemId so IsItemActive(), IsItemDeactivated() etc. will be functional on the entire group. - // It would be be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. + // It would be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. // Also if you grep for LastItemId you'll notice it is only used in that context. // (The two tests not the same because ActiveIdIsAlive is an ID itself, in order to be able to handle ActiveId being overwritten during the frame.) const bool group_contains_curr_active_id = (group_data.BackupActiveIdIsAlive != g.ActiveId) && (g.ActiveIdIsAlive == g.ActiveId) && g.ActiveId; @@ -8874,8 +10174,8 @@ ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGui const bool fully_visible_x = item_rect.Min.x >= window_rect.Min.x && item_rect.Max.x <= window_rect.Max.x; const bool fully_visible_y = item_rect.Min.y >= window_rect.Min.y && item_rect.Max.y <= window_rect.Max.y; - const bool can_be_fully_visible_x = (item_rect.GetWidth() + g.Style.ItemSpacing.x * 2.0f) <= window_rect.GetWidth(); - const bool can_be_fully_visible_y = (item_rect.GetHeight() + g.Style.ItemSpacing.y * 2.0f) <= window_rect.GetHeight(); + const bool can_be_fully_visible_x = (item_rect.GetWidth() + g.Style.ItemSpacing.x * 2.0f) <= window_rect.GetWidth() || (window->AutoFitFramesX > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + const bool can_be_fully_visible_y = (item_rect.GetHeight() + g.Style.ItemSpacing.y * 2.0f) <= window_rect.GetHeight() || (window->AutoFitFramesY > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; if ((flags & ImGuiScrollFlags_KeepVisibleEdgeX) && !fully_visible_x) { @@ -8886,8 +10186,10 @@ ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGui } else if (((flags & ImGuiScrollFlags_KeepVisibleCenterX) && !fully_visible_x) || (flags & ImGuiScrollFlags_AlwaysCenterX)) { - float target_x = can_be_fully_visible_x ? ImFloor((item_rect.Min.x + item_rect.Max.x - window->InnerRect.GetWidth()) * 0.5f) : item_rect.Min.x; - SetScrollFromPosX(window, target_x - window->Pos.x, 0.0f); + if (can_be_fully_visible_x) + SetScrollFromPosX(window, ImFloor((item_rect.Min.x + item_rect.Max.y) * 0.5f) - window->Pos.x, 0.5f); + else + SetScrollFromPosX(window, item_rect.Min.x - window->Pos.x, 0.0f); } if ((flags & ImGuiScrollFlags_KeepVisibleEdgeY) && !fully_visible_y) @@ -8899,8 +10201,10 @@ ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGui } else if (((flags & ImGuiScrollFlags_KeepVisibleCenterY) && !fully_visible_y) || (flags & ImGuiScrollFlags_AlwaysCenterY)) { - float target_y = can_be_fully_visible_y ? ImFloor((item_rect.Min.y + item_rect.Max.y - window->InnerRect.GetHeight()) * 0.5f) : item_rect.Min.y; - SetScrollFromPosY(window, target_y - window->Pos.y, 0.0f); + if (can_be_fully_visible_y) + SetScrollFromPosY(window, ImFloor((item_rect.Min.y + item_rect.Max.y) * 0.5f) - window->Pos.y, 0.5f); + else + SetScrollFromPosY(window, item_rect.Min.y - window->Pos.y, 0.0f); } ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); @@ -8975,7 +10279,7 @@ void ImGui::SetScrollY(float scroll_y) // - local_pos = (absolution_pos - window->Pos) // - So local_x/local_y are 0.0f for a position at the upper-left corner of a window, // and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area. -// - They mostly exists because of legacy API. +// - They mostly exist because of legacy API. // Following the rules above, when trying to work with scrolling code, consider that: // - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect! // - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense @@ -9166,7 +10470,9 @@ ImGuiWindow* ImGui::GetTopMostAndVisiblePopupModal() void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) { ImGuiContext& g = *GImGui; - OpenPopupEx(g.CurrentWindow->GetID(str_id), popup_flags); + ImGuiID id = g.CurrentWindow->GetID(str_id); + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopup(\"%s\" -> 0x%08X\n", str_id, id); + OpenPopupEx(id, popup_flags); } void ImGui::OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags) @@ -9191,13 +10497,13 @@ void ImGui::OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags) ImGuiPopupData popup_ref; // Tagged as new ref as Window will be set back to NULL if we write this into OpenPopupStack. popup_ref.PopupId = id; popup_ref.Window = NULL; - popup_ref.SourceWindow = g.NavWindow; + popup_ref.BackupNavWindow = g.NavWindow; // When popup closes focus may be restored to NavWindow (depend on window type). popup_ref.OpenFrameCount = g.FrameCount; popup_ref.OpenParentId = parent_window->IDStack.back(); popup_ref.OpenPopupPos = NavCalcPreferredRefPos(); popup_ref.OpenMousePos = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : popup_ref.OpenPopupPos; - IMGUI_DEBUG_LOG_POPUP("OpenPopupEx(0x%08X)\n", id); + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopupEx(0x%08X)\n", id); if (g.OpenPopupStack.Size < current_stack_size + 1) { g.OpenPopupStack.push_back(popup_ref); @@ -9267,7 +10573,7 @@ void ImGui::ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to } if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below { - IMGUI_DEBUG_LOG_POPUP("ClosePopupsOverWindow(\"%s\") -> ClosePopupToLevel(%d)\n", ref_window->Name, popup_count_to_keep); + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupsOverWindow(\"%s\")\n", ref_window ? ref_window->Name : ""); ClosePopupToLevel(popup_count_to_keep, restore_focus_to_window_under_popup); } } @@ -9290,16 +10596,17 @@ void ImGui::ClosePopupsExceptModals() void ImGui::ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup) { ImGuiContext& g = *GImGui; - IMGUI_DEBUG_LOG_POPUP("ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); IM_ASSERT(remaining >= 0 && remaining < g.OpenPopupStack.Size); // Trim open popup stack - ImGuiWindow* focus_window = g.OpenPopupStack[remaining].SourceWindow; ImGuiWindow* popup_window = g.OpenPopupStack[remaining].Window; + ImGuiWindow* popup_backup_nav_window = g.OpenPopupStack[remaining].BackupNavWindow; g.OpenPopupStack.resize(remaining); if (restore_focus_to_window_under_popup) { + ImGuiWindow* focus_window = (popup_window && popup_window->Flags & ImGuiWindowFlags_ChildMenu) ? popup_window->ParentWindow : popup_backup_nav_window; if (focus_window && !focus_window->WasActive && popup_window) { // Fallback @@ -9335,7 +10642,7 @@ void ImGui::CloseCurrentPopup() break; popup_idx--; } - IMGUI_DEBUG_LOG_POPUP("CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); + IMGUI_DEBUG_LOG_POPUP("[popup] CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); ClosePopupToLevel(popup_idx, true); // A common pattern is to close a popup when selecting a menu item/selectable that will open another window. @@ -9378,7 +10685,8 @@ bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags flags) return false; } flags |= ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings; - return BeginPopupEx(g.CurrentWindow->GetID(str_id), flags); + ImGuiID id = g.CurrentWindow->GetID(str_id); + return BeginPopupEx(id, flags); } // If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup. @@ -9457,7 +10765,7 @@ void ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags // - You may want to handle the whole on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters). // This is essentially the same as: // id = str_id ? GetID(str_id) : GetItemID(); -// OpenPopupOnItemClick(str_id); +// OpenPopupOnItemClick(str_id, ImGuiPopupFlags_MouseButtonRight); // return BeginPopup(id); // Which is essentially the same as: // id = str_id ? GetID(str_id) : GetItemID(); @@ -9553,7 +10861,7 @@ ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& s const float avail_w = (dir == ImGuiDir_Left ? r_avoid.Min.x : r_outer.Max.x) - (dir == ImGuiDir_Right ? r_avoid.Max.x : r_outer.Min.x); const float avail_h = (dir == ImGuiDir_Up ? r_avoid.Min.y : r_outer.Max.y) - (dir == ImGuiDir_Down ? r_avoid.Max.y : r_outer.Min.y); - // If there not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) + // If there's not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) if (avail_w < size.x && (dir == ImGuiDir_Left || dir == ImGuiDir_Right)) continue; if (avail_h < size.y && (dir == ImGuiDir_Up || dir == ImGuiDir_Down)) @@ -9628,8 +10936,7 @@ ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) } if (window->Flags & ImGuiWindowFlags_Popup) { - ImRect r_avoid = ImRect(window->Pos.x - 1, window->Pos.y - 1, window->Pos.x + 1, window->Pos.y + 1); - return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, ImRect(window->Pos, window->Pos), ImGuiPopupPositionPolicy_Default); // Ideally we'd disable r_avoid here } if (window->Flags & ImGuiWindowFlags_Tooltip) { @@ -9651,8 +10958,22 @@ ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) // [SECTION] KEYBOARD/GAMEPAD NAVIGATION //----------------------------------------------------------------------------- -// FIXME-NAV: The existence of SetNavID vs SetFocusID properly needs to be clarified/reworked. -// In our terminology those should be interchangeable. Those two functions are merely a legacy artifact, so at minimum naming should be clarified. +// FIXME-NAV: The existence of SetNavID vs SetFocusID vs FocusWindow() needs to be clarified/reworked. +// In our terminology those should be interchangeable, yet right now this is super confusing. +// Those two functions are merely a legacy artifact, so at minimum naming should be clarified. + +void ImGui::SetNavWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.NavWindow != window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] SetNavWindow(\"%s\")\n", window ? window->Name : ""); + g.NavWindow = window; + } + g.NavInitRequest = g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + void ImGui::SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel) { ImGuiContext& g = *GImGui; @@ -9670,15 +10991,15 @@ void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window) ImGuiContext& g = *GImGui; IM_ASSERT(id != 0); - // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and window->DC.NavFocusScopeIdCurrent are valid. + if (g.NavWindow != window) + SetNavWindow(window); + + // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and g.CurrentFocusScopeId are valid. // Note that window may be != g.CurrentWindow (e.g. SetFocusID call in InputTextEx for multi-line text) const ImGuiNavLayer nav_layer = window->DC.NavLayerCurrent; - if (g.NavWindow != window) - g.NavInitRequest = false; - g.NavWindow = window; g.NavId = id; g.NavLayer = nav_layer; - g.NavFocusScopeId = window->DC.NavFocusScopeIdCurrent; + g.NavFocusScopeId = g.CurrentFocusScopeId; window->NavLastIds[nav_layer] = id; if (g.LastItemData.ID == id) window->NavRectRel[nav_layer] = WindowRectAbsToRel(window, g.LastItemData.NavRect); @@ -9742,7 +11063,7 @@ static bool ImGui::NavScoreItem(ImGuiNavItemData* result) } // We perform scoring on items bounding box clipped by the current clipping rectangle on the other axis (clipping on our movement axis would give us equal scores for all clipped items) - // For example, this ensure that items in one column are not reached when moving vertically from items in another column. + // For example, this ensures that items in one column are not reached when moving vertically from items in another column. NavClampRectToVisibleAreaForMoveDir(g.NavMoveClipDir, cand, window->ClipRect); // Compute distance between boxes @@ -9806,7 +11127,7 @@ static bool ImGui::NavScoreItem(ImGuiNavItemData* result) } #endif - // Is it in the quadrant we're interesting in moving to? + // Is it in the quadrant we're interested in moving to? bool new_best = false; const ImGuiDir move_dir = g.NavMoveDir; if (quadrant == move_dir) @@ -9859,7 +11180,7 @@ static void ImGui::NavApplyItemToResult(ImGuiNavItemData* result) ImGuiWindow* window = g.CurrentWindow; result->Window = window; result->ID = g.LastItemData.ID; - result->FocusScopeId = window->DC.NavFocusScopeIdCurrent; + result->FocusScopeId = g.CurrentFocusScopeId; result->InFlags = g.LastItemData.InFlags; result->RectRel = WindowRectAbsToRel(window, g.LastItemData.NavRect); } @@ -9875,10 +11196,10 @@ static void ImGui::NavProcessItem() const ImGuiItemFlags item_flags = g.LastItemData.InFlags; // Process Init Request - if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent) + if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent && (item_flags & ImGuiItemFlags_Disabled) == 0) { // Even if 'ImGuiItemFlags_NoNavDefaultFocus' is on (typically collapse/close button) we record the first ResultId so they can be used as a fallback - const bool candidate_for_nav_default_focus = (item_flags & (ImGuiItemFlags_NoNavDefaultFocus | ImGuiItemFlags_Disabled)) == 0; + const bool candidate_for_nav_default_focus = (item_flags & ImGuiItemFlags_NoNavDefaultFocus) == 0; if (candidate_for_nav_default_focus || g.NavInitResultId == 0) { g.NavInitResultId = id; @@ -9902,7 +11223,7 @@ static void ImGui::NavProcessItem() if (is_tab_stop || (g.NavMoveFlags & ImGuiNavMoveFlags_FocusApi)) NavProcessItemForTabbingRequest(id); } - else if ((g.NavId != id || (g.NavMoveFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) && !(item_flags & (ImGuiItemFlags_Disabled | ImGuiItemFlags_NoNav))) + else if ((g.NavId != id || (g.NavMoveFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) && !(item_flags & ImGuiItemFlags_Disabled)) { ImGuiNavItemData* result = (window == g.NavWindow) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; if (!is_tabbing) @@ -9923,9 +11244,10 @@ static void ImGui::NavProcessItem() // Update window-relative bounding box of navigated item if (g.NavId == id) { - g.NavWindow = window; // Always refresh g.NavWindow, because some operations such as FocusItem() don't have a window. + if (g.NavWindow != window) + SetNavWindow(window); // Always refresh g.NavWindow, because some operations such as FocusItem() may not have a window. g.NavLayer = window->DC.NavLayerCurrent; - g.NavFocusScopeId = window->DC.NavFocusScopeIdCurrent; + g.NavFocusScopeId = g.CurrentFocusScopeId; g.NavIdIsAlive = true; window->NavRectRel[window->DC.NavLayerCurrent] = WindowRectAbsToRel(window, nav_bb); // Store item bounding box (relative to window position) } @@ -10001,10 +11323,11 @@ void ImGui::NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavM g.NavMoveScrollFlags = scroll_flags; g.NavMoveForwardToNextFrame = false; g.NavMoveKeyMods = g.IO.KeyMods; - g.NavTabbingCounter = 0; g.NavMoveResultLocal.Clear(); g.NavMoveResultLocalVisible.Clear(); g.NavMoveResultOther.Clear(); + g.NavTabbingCounter = 0; + g.NavTabbingResultFirst.Clear(); NavUpdateAnyRequestFlag(); } @@ -10074,7 +11397,12 @@ void ImGui::NavRestoreLayer(ImGuiNavLayer layer) { ImGuiContext& g = *GImGui; if (layer == ImGuiNavLayer_Main) - g.NavWindow = NavRestoreLastChildNavWindow(g.NavWindow); + { + ImGuiWindow* prev_nav_window = g.NavWindow; + g.NavWindow = NavRestoreLastChildNavWindow(g.NavWindow); // FIXME-NAV: Should clear ongoing nav requests? + if (prev_nav_window) + IMGUI_DEBUG_LOG_FOCUS("[focus] NavRestoreLayer: from \"%s\" to SetNavWindow(\"%s\")\n", prev_nav_window->Name, g.NavWindow->Name); + } ImGuiWindow* window = g.NavWindow; if (window->NavLastIds[layer] != 0) { @@ -10111,7 +11439,8 @@ void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) if (window->Flags & ImGuiWindowFlags_NoNavInputs) { - g.NavId = g.NavFocusScopeId = 0; + g.NavId = 0; + g.NavFocusScopeId = window->NavRootFocusScopeId; return; } @@ -10121,7 +11450,7 @@ void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from NavInitWindow(), init_for_nav=%d, window=\"%s\", layer=%d\n", init_for_nav, window->Name, g.NavLayer); if (init_for_nav) { - SetNavID(0, g.NavLayer, 0, ImRect()); + SetNavID(0, g.NavLayer, window->NavRootFocusScopeId, ImRect()); g.NavInitRequest = true; g.NavInitRequestFromMove = false; g.NavInitResultId = 0; @@ -10131,7 +11460,7 @@ void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) else { g.NavId = window->NavLastIds[0]; - g.NavFocusScopeId = 0; + g.NavFocusScopeId = window->NavRootFocusScopeId; } } @@ -10142,9 +11471,10 @@ static ImVec2 ImGui::NavCalcPreferredRefPos() if (g.NavDisableHighlight || !g.NavDisableMouseHover || !window) { // Mouse (we need a fallback in case the mouse becomes invalid after being used) - if (IsMousePosValid(&g.IO.MousePos)) - return g.IO.MousePos; - return g.MouseLastValidPos; + // The +1.0f offset when stored by OpenPopupEx() allows reopening this or another popup (same or another mouse button) while not moving the mouse, it is pretty standard. + // In theory we could move that +1.0f offset in OpenPopupEx() + ImVec2 p = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : g.MouseLastValidPos; + return ImVec2(p.x + 1.0f, p.y); } else { @@ -10162,44 +11492,27 @@ static ImVec2 ImGui::NavCalcPreferredRefPos() } } -float ImGui::GetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode) +float ImGui::GetNavTweakPressedAmount(ImGuiAxis axis) { ImGuiContext& g = *GImGui; - if (mode == ImGuiInputReadMode_Down) - return g.IO.NavInputs[n]; // Instant, read analog input (0.0f..1.0f, as provided by user) + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(ImGuiInputFlags_RepeatRateNavTweak, &repeat_delay, &repeat_rate); - const float t = g.IO.NavInputsDownDuration[n]; - if (t < 0.0f && mode == ImGuiInputReadMode_Released) // Return 1.0f when just released, no repeat, ignore analog input. - return (g.IO.NavInputsDownDurationPrev[n] >= 0.0f ? 1.0f : 0.0f); - if (t < 0.0f) - return 0.0f; - if (mode == ImGuiInputReadMode_Pressed) // Return 1.0f when just pressed, no repeat, ignore analog input. - return (t == 0.0f) ? 1.0f : 0.0f; - if (mode == ImGuiInputReadMode_Repeat) - return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 0.72f, g.IO.KeyRepeatRate * 0.80f); - if (mode == ImGuiInputReadMode_RepeatSlow) - return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 1.25f, g.IO.KeyRepeatRate * 2.00f); - if (mode == ImGuiInputReadMode_RepeatFast) - return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 0.72f, g.IO.KeyRepeatRate * 0.30f); - return 0.0f; -} - -ImVec2 ImGui::GetNavInputAmount2d(ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor, float fast_factor) -{ - ImVec2 delta(0.0f, 0.0f); - if (dir_sources & ImGuiNavDirSourceFlags_RawKeyboard) - delta += ImVec2((float)IsKeyDown(GetKeyIndex(ImGuiKey_RightArrow)) - (float)IsKeyDown(GetKeyIndex(ImGuiKey_LeftArrow)), (float)IsKeyDown(GetKeyIndex(ImGuiKey_DownArrow)) - (float)IsKeyDown(GetKeyIndex(ImGuiKey_UpArrow))); - if (dir_sources & ImGuiNavDirSourceFlags_Keyboard) - delta += ImVec2(GetNavInputAmount(ImGuiNavInput_KeyRight_, mode) - GetNavInputAmount(ImGuiNavInput_KeyLeft_, mode), GetNavInputAmount(ImGuiNavInput_KeyDown_, mode) - GetNavInputAmount(ImGuiNavInput_KeyUp_, mode)); - if (dir_sources & ImGuiNavDirSourceFlags_PadDPad) - delta += ImVec2(GetNavInputAmount(ImGuiNavInput_DpadRight, mode) - GetNavInputAmount(ImGuiNavInput_DpadLeft, mode), GetNavInputAmount(ImGuiNavInput_DpadDown, mode) - GetNavInputAmount(ImGuiNavInput_DpadUp, mode)); - if (dir_sources & ImGuiNavDirSourceFlags_PadLStick) - delta += ImVec2(GetNavInputAmount(ImGuiNavInput_LStickRight, mode) - GetNavInputAmount(ImGuiNavInput_LStickLeft, mode), GetNavInputAmount(ImGuiNavInput_LStickDown, mode) - GetNavInputAmount(ImGuiNavInput_LStickUp, mode)); - if (slow_factor != 0.0f && IsNavInputDown(ImGuiNavInput_TweakSlow)) - delta *= slow_factor; - if (fast_factor != 0.0f && IsNavInputDown(ImGuiNavInput_TweakFast)) - delta *= fast_factor; - return delta; + ImGuiKey key_less, key_more; + if (g.NavInputSource == ImGuiInputSource_Gamepad) + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadLeft : ImGuiKey_GamepadDpadUp; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadRight : ImGuiKey_GamepadDpadDown; + } + else + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_LeftArrow : ImGuiKey_UpArrow; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_RightArrow : ImGuiKey_DownArrow; + } + float amount = (float)GetKeyPressedAmount(key_more, repeat_delay, repeat_rate) - (float)GetKeyPressedAmount(key_less, repeat_delay, repeat_rate); + if (amount != 0.0f && IsKeyDown(key_less) && IsKeyDown(key_more)) // Cancel when opposite directions are held, regardless of repeat phase + amount = 0.0f; + return amount; } static void ImGui::NavUpdate() @@ -10208,39 +11521,22 @@ static void ImGui::NavUpdate() ImGuiIO& io = g.IO; io.WantSetMousePos = false; - //if (g.NavScoringDebugCount > 0) IMGUI_DEBUG_LOG("NavScoringDebugCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.NavScoringDebugCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); + //if (g.NavScoringDebugCount > 0) IMGUI_DEBUG_LOG_NAV("[nav] NavScoringDebugCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.NavScoringDebugCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); - // Set input source as Gamepad when buttons are pressed (as some features differs when used with Gamepad vs Keyboard) - // (do it before we map Keyboard input!) - const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + // Set input source based on which keys are last pressed (as some features differs when used with Gamepad vs Keyboard) + // FIXME-NAV: Now that keys are separated maybe we can get rid of NavInputSource? const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; - if (nav_gamepad_active && g.NavInputSource != ImGuiInputSource_Gamepad) - { - if (io.NavInputs[ImGuiNavInput_Activate] > 0.0f || io.NavInputs[ImGuiNavInput_Input] > 0.0f || io.NavInputs[ImGuiNavInput_Cancel] > 0.0f || io.NavInputs[ImGuiNavInput_Menu] > 0.0f - || io.NavInputs[ImGuiNavInput_DpadLeft] > 0.0f || io.NavInputs[ImGuiNavInput_DpadRight] > 0.0f || io.NavInputs[ImGuiNavInput_DpadUp] > 0.0f || io.NavInputs[ImGuiNavInput_DpadDown] > 0.0f) - g.NavInputSource = ImGuiInputSource_Gamepad; - } - - // Update Keyboard->Nav inputs mapping + const ImGuiKey nav_gamepad_keys_to_change_source[] = { ImGuiKey_GamepadFaceRight, ImGuiKey_GamepadFaceLeft, ImGuiKey_GamepadFaceUp, ImGuiKey_GamepadFaceDown, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown }; + if (nav_gamepad_active) + for (ImGuiKey key : nav_gamepad_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Gamepad; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const ImGuiKey nav_keyboard_keys_to_change_source[] = { ImGuiKey_Space, ImGuiKey_Enter, ImGuiKey_Escape, ImGuiKey_RightArrow, ImGuiKey_LeftArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow }; if (nav_keyboard_active) - { - #define NAV_MAP_KEY(_KEY, _NAV_INPUT) do { if (IsKeyDown(io.KeyMap[_KEY])) { io.NavInputs[_NAV_INPUT] = 1.0f; g.NavInputSource = ImGuiInputSource_Keyboard; } } while (0) - NAV_MAP_KEY(ImGuiKey_Space, ImGuiNavInput_Activate ); - NAV_MAP_KEY(ImGuiKey_Enter, ImGuiNavInput_Input ); - NAV_MAP_KEY(ImGuiKey_Escape, ImGuiNavInput_Cancel ); - NAV_MAP_KEY(ImGuiKey_LeftArrow, ImGuiNavInput_KeyLeft_ ); - NAV_MAP_KEY(ImGuiKey_RightArrow,ImGuiNavInput_KeyRight_); - NAV_MAP_KEY(ImGuiKey_UpArrow, ImGuiNavInput_KeyUp_ ); - NAV_MAP_KEY(ImGuiKey_DownArrow, ImGuiNavInput_KeyDown_ ); - if (io.KeyCtrl) - io.NavInputs[ImGuiNavInput_TweakSlow] = 1.0f; - if (io.KeyShift) - io.NavInputs[ImGuiNavInput_TweakFast] = 1.0f; - #undef NAV_MAP_KEY - } - memcpy(io.NavInputsDownDurationPrev, io.NavInputsDownDuration, sizeof(io.NavInputsDownDuration)); - for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) - io.NavInputsDownDuration[i] = (io.NavInputs[i] > 0.0f) ? (io.NavInputsDownDuration[i] < 0.0f ? 0.0f : io.NavInputsDownDuration[i] + io.DeltaTime) : -1.0f; + for (ImGuiKey key : nav_keyboard_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Keyboard; // Process navigation init request (select first/default focus) if (g.NavInitResultId != 0) @@ -10285,10 +11581,10 @@ static void ImGui::NavUpdate() g.NavActivateFlags = ImGuiActivateFlags_None; if (g.NavId != 0 && !g.NavDisableHighlight && !g.NavWindowingTarget && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) { - bool activate_down = IsNavInputDown(ImGuiNavInput_Activate); - bool input_down = IsNavInputDown(ImGuiNavInput_Input); - bool activate_pressed = activate_down && IsNavInputTest(ImGuiNavInput_Activate, ImGuiInputReadMode_Pressed); - bool input_pressed = input_down && IsNavInputTest(ImGuiNavInput_Input, ImGuiInputReadMode_Pressed); + const bool activate_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Space)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadActivate)); + const bool activate_pressed = activate_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Space, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadActivate, false))); + const bool input_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Enter)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadInput)); + const bool input_pressed = input_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Enter, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadInput, false))); if (g.ActiveId == 0 && activate_pressed) { g.NavActivateId = g.NavId; @@ -10343,13 +11639,17 @@ static void ImGui::NavUpdate() SetScrollY(window, ImFloor(window->Scroll.y + ((move_dir == ImGuiDir_Up) ? -1.0f : +1.0f) * scroll_speed)); } - // *Normal* Manual scroll with NavScrollXXX keys + // *Normal* Manual scroll with LStick // Next movement request will clamp the NavId reference rectangle to the visible area, so navigation will resume within those bounds. - ImVec2 scroll_dir = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadLStick, ImGuiInputReadMode_Down, 1.0f / 10.0f, 10.0f); - if (scroll_dir.x != 0.0f && window->ScrollbarX) - SetScrollX(window, ImFloor(window->Scroll.x + scroll_dir.x * scroll_speed)); - if (scroll_dir.y != 0.0f) - SetScrollY(window, ImFloor(window->Scroll.y + scroll_dir.y * scroll_speed)); + if (nav_gamepad_active) + { + const ImVec2 scroll_dir = GetKeyVector2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + const float tweak_factor = IsKeyDown(ImGuiKey_NavGamepadTweakSlow) ? 1.0f / 10.0f : IsKeyDown(ImGuiKey_NavGamepadTweakFast) ? 10.0f : 1.0f; + if (scroll_dir.x != 0.0f && window->ScrollbarX) + SetScrollX(window, ImFloor(window->Scroll.x + scroll_dir.x * scroll_speed * tweak_factor)); + if (scroll_dir.y != 0.0f) + SetScrollY(window, ImFloor(window->Scroll.y + scroll_dir.y * scroll_speed * tweak_factor)); + } } // Always prioritize mouse highlight if navigation is disabled @@ -10365,7 +11665,7 @@ static void ImGui::NavUpdate() { io.MousePos = io.MousePosPrev = NavCalcPreferredRefPos(); io.WantSetMousePos = true; - //IMGUI_DEBUG_LOG("SetMousePos: (%.1f,%.1f)\n", io.MousePos.x, io.MousePos.y); + //IMGUI_DEBUG_LOG_IO("SetMousePos: (%.1f,%.1f)\n", io.MousePos.x, io.MousePos.y); } // [DEBUG] @@ -10389,7 +11689,7 @@ void ImGui::NavInitRequestApplyResult() // Apply result from previous navigation init request (will typically select the first item, unless SetItemDefaultFocus() has been called) // FIXME-NAV: On _NavFlattened windows, g.NavWindow will only be updated during subsequent frame. Not a problem currently. - IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", g.NavInitResultId, g.NavLayer, g.NavWindow->Name); + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: ApplyResult: NavID 0x%08X in Layer %d Window \"%s\"\n", g.NavInitResultId, g.NavLayer, g.NavWindow->Name); SetNavID(g.NavInitResultId, g.NavLayer, 0, g.NavInitResultRectRel); g.NavIdIsAlive = true; // Mark as alive from previous frame as we got a result if (g.NavInitRequestFromMove) @@ -10401,6 +11701,8 @@ void ImGui::NavUpdateCreateMoveRequest() ImGuiContext& g = *GImGui; ImGuiIO& io = g.IO; ImGuiWindow* window = g.NavWindow; + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; if (g.NavMoveForwardToNextFrame && window != NULL) { @@ -10418,11 +11720,11 @@ void ImGui::NavUpdateCreateMoveRequest() g.NavMoveScrollFlags = ImGuiScrollFlags_None; if (window && !g.NavWindowingTarget && !(window->Flags & ImGuiWindowFlags_NoNavInputs)) { - const ImGuiInputReadMode read_mode = ImGuiInputReadMode_Repeat; - if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && (IsNavInputTest(ImGuiNavInput_DpadLeft, read_mode) || IsNavInputTest(ImGuiNavInput_KeyLeft_, read_mode))) { g.NavMoveDir = ImGuiDir_Left; } - if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && (IsNavInputTest(ImGuiNavInput_DpadRight, read_mode) || IsNavInputTest(ImGuiNavInput_KeyRight_, read_mode))) { g.NavMoveDir = ImGuiDir_Right; } - if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && (IsNavInputTest(ImGuiNavInput_DpadUp, read_mode) || IsNavInputTest(ImGuiNavInput_KeyUp_, read_mode))) { g.NavMoveDir = ImGuiDir_Up; } - if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && (IsNavInputTest(ImGuiNavInput_DpadDown, read_mode) || IsNavInputTest(ImGuiNavInput_KeyDown_, read_mode))) { g.NavMoveDir = ImGuiDir_Down; } + const ImGuiInputFlags repeat_mode = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateNavMove; + if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadLeft, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_LeftArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Left; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadRight, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_RightArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Right; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadUp, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_UpArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Up; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadDown, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_DownArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Down; } } g.NavMoveClipDir = g.NavMoveDir; g.NavScoringNoClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); @@ -10430,7 +11732,6 @@ void ImGui::NavUpdateCreateMoveRequest() // Update PageUp/PageDown/Home/End scroll // FIXME-NAV: Consider enabling those keys even without the master ImGuiConfigFlags_NavEnableKeyboard flag? - const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; float scoring_rect_offset_y = 0.0f; if (window && g.NavMoveDir == ImGuiDir_None && nav_keyboard_active) scoring_rect_offset_y = NavUpdatePageUpPageDown(); @@ -10442,7 +11743,7 @@ void ImGui::NavUpdateCreateMoveRequest() // [DEBUG] Always send a request #if IMGUI_DEBUG_NAV_SCORING - if (io.KeyCtrl && IsKeyPressedMap(ImGuiKey_C)) + if (io.KeyCtrl && IsKeyPressed(ImGuiKey_C)) g.NavMoveDirForDebug = (ImGuiDir)((g.NavMoveDirForDebug + 1) & 3); if (io.KeyCtrl && g.NavMoveDir == ImGuiDir_None) { @@ -10456,28 +11757,34 @@ void ImGui::NavUpdateCreateMoveRequest() if (g.NavMoveDir != ImGuiDir_None) NavMoveRequestSubmit(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); - // Moving with no reference triggers a init request (will be used as a fallback if the direction fails to find a match) + // Moving with no reference triggers an init request (will be used as a fallback if the direction fails to find a match) if (g.NavMoveSubmitted && g.NavId == 0) { - IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", g.NavWindow->Name, g.NavLayer); + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", window ? window->Name : "", g.NavLayer); g.NavInitRequest = g.NavInitRequestFromMove = true; g.NavInitResultId = 0; g.NavDisableHighlight = false; } // When using gamepad, we project the reference nav bounding box into window visible area. - // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, since with gamepad every movements are relative + // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, since with gamepad all movements are relative // (can't focus a visible object like we can with the mouse). - if (g.NavMoveSubmitted && g.NavInputSource == ImGuiInputSource_Gamepad && g.NavLayer == ImGuiNavLayer_Main && window != NULL) + if (g.NavMoveSubmitted && g.NavInputSource == ImGuiInputSource_Gamepad && g.NavLayer == ImGuiNavLayer_Main && window != NULL)// && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded)) { - ImRect window_rect_rel = WindowRectAbsToRel(window, ImRect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1))); - if (!window_rect_rel.Contains(window->NavRectRel[g.NavLayer])) + bool clamp_x = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_WrapX)) == 0; + bool clamp_y = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapY)) == 0; + ImRect inner_rect_rel = WindowRectAbsToRel(window, ImRect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1))); + if ((clamp_x || clamp_y) && !inner_rect_rel.Contains(window->NavRectRel[g.NavLayer])) { - IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel\n"); - float pad = window->CalcFontSize() * 0.5f; - window_rect_rel.Expand(ImVec2(-ImMin(window_rect_rel.GetWidth(), pad), -ImMin(window_rect_rel.GetHeight(), pad))); // Terrible approximation for the intent of starting navigation from first fully visible item - window->NavRectRel[g.NavLayer].ClipWithFull(window_rect_rel); - g.NavId = g.NavFocusScopeId = 0; + //IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel for gamepad move\n"); + float pad_x = ImMin(inner_rect_rel.GetWidth(), window->CalcFontSize() * 0.5f); + float pad_y = ImMin(inner_rect_rel.GetHeight(), window->CalcFontSize() * 0.5f); // Terrible approximation for the intent of starting navigation from first fully visible item + inner_rect_rel.Min.x = clamp_x ? (inner_rect_rel.Min.x + pad_x) : -FLT_MAX; + inner_rect_rel.Max.x = clamp_x ? (inner_rect_rel.Max.x - pad_x) : +FLT_MAX; + inner_rect_rel.Min.y = clamp_y ? (inner_rect_rel.Min.y + pad_y) : -FLT_MAX; + inner_rect_rel.Max.y = clamp_y ? (inner_rect_rel.Max.y - pad_y) : +FLT_MAX; + window->NavRectRel[g.NavLayer].ClipWithFull(inner_rect_rel); + g.NavId = 0; } } @@ -10490,7 +11797,7 @@ void ImGui::NavUpdateCreateMoveRequest() scoring_rect.TranslateY(scoring_rect_offset_y); scoring_rect.Min.x = ImMin(scoring_rect.Min.x + 1.0f, scoring_rect.Max.x); scoring_rect.Max.x = scoring_rect.Min.x; - IM_ASSERT(!scoring_rect.IsInverted()); // Ensure if we have a finite, non-inverted bounding box here will allows us to remove extraneous ImFabs() calls in NavScoreItem(). + IM_ASSERT(!scoring_rect.IsInverted()); // Ensure if we have a finite, non-inverted bounding box here will allow us to remove extraneous ImFabs() calls in NavScoreItem(). //GetForegroundDrawList()->AddRect(scoring_rect.Min, scoring_rect.Max, IM_COL32(255,200,0,255)); // [DEBUG] //if (!g.NavScoringNoClipRect.IsInverted()) { GetForegroundDrawList()->AddRect(g.NavScoringNoClipRect.Min, g.NavScoringNoClipRect.Max, IM_COL32(255, 200, 0, 255)); } // [DEBUG] } @@ -10506,7 +11813,7 @@ void ImGui::NavUpdateCreateTabbingRequest() if (window == NULL || g.NavWindowingTarget != NULL || (window->Flags & ImGuiWindowFlags_NoNavInputs)) return; - const bool tab_pressed = IsKeyPressedMap(ImGuiKey_Tab, true) && !IsActiveIdUsingKey(ImGuiKey_Tab) && !g.IO.KeyCtrl && !g.IO.KeyAlt; + const bool tab_pressed = IsKeyPressed(ImGuiKey_Tab, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat) && !g.IO.KeyCtrl && !g.IO.KeyAlt; if (!tab_pressed) return; @@ -10519,7 +11826,6 @@ void ImGui::NavUpdateCreateTabbingRequest() ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; ImGuiDir clip_dir = (g.NavTabbingDir < 0) ? ImGuiDir_Up : ImGuiDir_Down; NavMoveRequestSubmit(ImGuiDir_None, clip_dir, ImGuiNavMoveFlags_Tabbing, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. - g.NavTabbingResultFirst.Clear(); g.NavTabbingCounter = -1; } @@ -10540,7 +11846,7 @@ void ImGui::NavMoveRequestApplyResult() if ((g.NavTabbingCounter == 1 || g.NavTabbingDir == 0) && g.NavTabbingResultFirst.ID) result = &g.NavTabbingResultFirst; - // In a situation when there is no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) + // In a situation when there are no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) if (result == NULL) { if (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) @@ -10577,7 +11883,11 @@ void ImGui::NavMoveRequestApplyResult() } } - g.NavWindow = result->Window; + if (g.NavWindow != result->Window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] NavMoveRequest: SetNavWindow(\"%s\")\n", result->Window->Name); + g.NavWindow = result->Window; + } if (g.ActiveId != result->ID) ClearActiveID(); if (g.NavId != result->ID) @@ -10619,14 +11929,15 @@ void ImGui::NavMoveRequestApplyResult() static void ImGui::NavUpdateCancelRequest() { ImGuiContext& g = *GImGui; - if (!IsNavInputTest(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed)) + const bool nav_gamepad_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (g.IO.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + if (!(nav_keyboard_active && IsKeyPressed(ImGuiKey_Escape, ImGuiKeyOwner_None)) && !(nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadCancel, ImGuiKeyOwner_None))) return; - IMGUI_DEBUG_LOG_NAV("[nav] ImGuiNavInput_Cancel\n"); + IMGUI_DEBUG_LOG_NAV("[nav] NavUpdateCancelRequest()\n"); if (g.ActiveId != 0) { - if (!IsActiveIdUsingNavInput(ImGuiNavInput_Cancel)) - ClearActiveID(); + ClearActiveID(); } else if (g.NavLayer != ImGuiNavLayer_Main) { @@ -10645,18 +11956,17 @@ static void ImGui::NavUpdateCancelRequest() SetNavID(child_window->ChildId, ImGuiNavLayer_Main, 0, WindowRectAbsToRel(parent_window, child_rect)); NavRestoreHighlightAfterMove(); } - else if (g.OpenPopupStack.Size > 0) + else if (g.OpenPopupStack.Size > 0 && g.OpenPopupStack.back().Window != NULL && !(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) { // Close open popup/menu - if (!(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) - ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); + ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); } else { // Clear NavLastId for popups but keep it for regular child window so we can leave one and come back where we were if (g.NavWindow && ((g.NavWindow->Flags & ImGuiWindowFlags_Popup) || !(g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow))) g.NavWindow->NavLastIds[0] = 0; - g.NavId = g.NavFocusScopeId = 0; + g.NavId = 0; } } @@ -10667,16 +11977,14 @@ static void ImGui::NavUpdateCancelRequest() static float ImGui::NavUpdatePageUpPageDown() { ImGuiContext& g = *GImGui; - ImGuiIO& io = g.IO; - ImGuiWindow* window = g.NavWindow; if ((window->Flags & ImGuiWindowFlags_NoNavInputs) || g.NavWindowingTarget != NULL) return 0.0f; - const bool page_up_held = IsKeyDown(io.KeyMap[ImGuiKey_PageUp]) && !IsActiveIdUsingKey(ImGuiKey_PageUp); - const bool page_down_held = IsKeyDown(io.KeyMap[ImGuiKey_PageDown]) && !IsActiveIdUsingKey(ImGuiKey_PageDown); - const bool home_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_Home]) && !IsActiveIdUsingKey(ImGuiKey_Home); - const bool end_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_End]) && !IsActiveIdUsingKey(ImGuiKey_End); + const bool page_up_held = IsKeyDown(ImGuiKey_PageUp, ImGuiKeyOwner_None); + const bool page_down_held = IsKeyDown(ImGuiKey_PageDown, ImGuiKeyOwner_None); + const bool home_pressed = IsKeyPressed(ImGuiKey_Home, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + const bool end_pressed = IsKeyPressed(ImGuiKey_End, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); if (page_up_held == page_down_held && home_pressed == end_pressed) // Proceed if either (not both) are pressed, otherwise early out return 0.0f; @@ -10686,9 +11994,9 @@ static float ImGui::NavUpdatePageUpPageDown() if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavHasScroll) { // Fallback manual-scroll when window has no navigable item - if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) + if (IsKeyPressed(ImGuiKey_PageUp, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) SetScrollY(window, window->Scroll.y - window->InnerRect.GetHeight()); - else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) + else if (IsKeyPressed(ImGuiKey_PageDown, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) SetScrollY(window, window->Scroll.y + window->InnerRect.GetHeight()); else if (home_pressed) SetScrollY(window, 0.0f); @@ -10700,14 +12008,14 @@ static float ImGui::NavUpdatePageUpPageDown() ImRect& nav_rect_rel = window->NavRectRel[g.NavLayer]; const float page_offset_y = ImMax(0.0f, window->InnerRect.GetHeight() - window->CalcFontSize() * 1.0f + nav_rect_rel.GetHeight()); float nav_scoring_rect_offset_y = 0.0f; - if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) + if (IsKeyPressed(ImGuiKey_PageUp, true)) { nav_scoring_rect_offset_y = -page_offset_y; g.NavMoveDir = ImGuiDir_Down; // Because our scoring rect is offset up, we request the down direction (so we can always land on the last item) g.NavMoveClipDir = ImGuiDir_Up; g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; } - else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) + else if (IsKeyPressed(ImGuiKey_PageDown, true)) { nav_scoring_rect_offset_y = +page_offset_y; g.NavMoveDir = ImGuiDir_Up; // Because our scoring rect is offset down, we request the up direction (so we can always land on the last item) @@ -10842,7 +12150,10 @@ static void NavUpdateWindowingHighlightWindow(int focus_change_dir) if (!window_target) window_target = FindWindowNavFocusable((focus_change_dir < 0) ? (g.WindowsFocusOrder.Size - 1) : 0, i_current, focus_change_dir); if (window_target) // Don't reset windowing target if there's a single window in the list + { g.NavWindowingTarget = g.NavWindowingTargetAnim = window_target; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + } g.NavWindowingToggleLayer = false; } @@ -10871,13 +12182,18 @@ static void ImGui::NavUpdateWindowing() } // Start CTRL+Tab or Square+L/R window selection - const bool start_windowing_with_gamepad = allow_windowing && !g.NavWindowingTarget && IsNavInputTest(ImGuiNavInput_Menu, ImGuiInputReadMode_Pressed); - const bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && io.KeyCtrl && IsKeyPressedMap(ImGuiKey_Tab); + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const bool keyboard_next_window = allow_windowing && g.ConfigNavWindowingKeyNext && Shortcut(g.ConfigNavWindowingKeyNext, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool keyboard_prev_window = allow_windowing && g.ConfigNavWindowingKeyPrev && Shortcut(g.ConfigNavWindowingKeyPrev, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool start_windowing_with_gamepad = allow_windowing && nav_gamepad_active && !g.NavWindowingTarget && IsKeyPressed(ImGuiKey_NavGamepadMenu, 0, ImGuiInputFlags_None); + const bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && (keyboard_next_window || keyboard_prev_window); // Note: enabled even without NavEnableKeyboard! if (start_windowing_with_gamepad || start_windowing_with_keyboard) if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1)) { g.NavWindowingTarget = g.NavWindowingTargetAnim = window->RootWindow; g.NavWindowingTimer = g.NavWindowingHighlightAlpha = 0.0f; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); g.NavWindowingToggleLayer = start_windowing_with_gamepad ? true : false; // Gamepad starts toggling layer g.NavInputSource = start_windowing_with_keyboard ? ImGuiInputSource_Keyboard : ImGuiInputSource_Gamepad; } @@ -10890,7 +12206,7 @@ static void ImGui::NavUpdateWindowing() g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // Select window to focus - const int focus_change_dir = (int)IsNavInputTest(ImGuiNavInput_FocusPrev, ImGuiInputReadMode_RepeatSlow) - (int)IsNavInputTest(ImGuiNavInput_FocusNext, ImGuiInputReadMode_RepeatSlow); + const int focus_change_dir = (int)IsKeyPressed(ImGuiKey_GamepadL1) - (int)IsKeyPressed(ImGuiKey_GamepadR1); if (focus_change_dir != 0) { NavUpdateWindowingHighlightWindow(focus_change_dir); @@ -10898,7 +12214,7 @@ static void ImGui::NavUpdateWindowing() } // Single press toggles NavLayer, long press with L/R apply actual focus on release (until then the window was merely rendered top-most) - if (!IsNavInputDown(ImGuiNavInput_Menu)) + if (!IsKeyDown(ImGuiKey_NavGamepadMenu)) { g.NavWindowingToggleLayer &= (g.NavWindowingHighlightAlpha < 1.0f); // Once button was held long enough we don't consider it a tap-to-toggle-layer press anymore. if (g.NavWindowingToggleLayer && g.NavWindow) @@ -10913,18 +12229,19 @@ static void ImGui::NavUpdateWindowing() if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Keyboard) { // Visuals only appears after a brief time after pressing TAB the first time, so that a fast CTRL+TAB doesn't add visual noise + ImGuiKeyChord shared_mods = ((g.ConfigNavWindowingKeyNext ? g.ConfigNavWindowingKeyNext : ImGuiMod_Mask_) & (g.ConfigNavWindowingKeyPrev ? g.ConfigNavWindowingKeyPrev : ImGuiMod_Mask_)) & ImGuiMod_Mask_; + IM_ASSERT(shared_mods != 0); // Next/Prev shortcut currently needs a shared modifier to "hold", otherwise Prev actions would keep cycling between two windows. g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // 1.0f - if (IsKeyPressedMap(ImGuiKey_Tab, true)) - NavUpdateWindowingHighlightWindow(io.KeyShift ? +1 : -1); - if (!io.KeyCtrl) + if (keyboard_next_window || keyboard_prev_window) + NavUpdateWindowingHighlightWindow(keyboard_next_window ? -1 : +1); + else if ((io.KeyMods & shared_mods) != shared_mods) apply_focus_window = g.NavWindowingTarget; } // Keyboard: Press and Release ALT to toggle menu layer // - Testing that only Alt is tested prevents Alt+Shift or AltGR from toggling menu layer. // - AltGR is normally Alt+Ctrl but we can't reliably detect it (not all backends/systems/layout emit it as Alt+Ctrl). But even on keyboards without AltGR we don't want Alt+Ctrl to open menu anyway. - const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; - if (nav_keyboard_active && io.KeyMods == ImGuiKeyModFlags_Alt && (io.KeyModsPrev & ImGuiKeyModFlags_Alt) == 0) + if (nav_keyboard_active && IsKeyPressed(ImGuiMod_Alt, ImGuiKeyOwner_None)) { g.NavWindowingToggleLayer = true; g.NavInputSource = ImGuiInputSource_Keyboard; @@ -10933,36 +12250,41 @@ static void ImGui::NavUpdateWindowing() { // We cancel toggling nav layer when any text has been typed (generally while holding Alt). (See #370) // We cancel toggling nav layer when other modifiers are pressed. (See #4439) - if (io.InputQueueCharacters.Size > 0 || io.KeyCtrl || io.KeyShift || io.KeySuper) + // We cancel toggling nav layer if an owner has claimed the key. + if (io.InputQueueCharacters.Size > 0 || io.KeyCtrl || io.KeyShift || io.KeySuper || TestKeyOwner(ImGuiMod_Alt, ImGuiKeyOwner_None) == false) g.NavWindowingToggleLayer = false; // Apply layer toggle on release - // Important: we don't assume that Alt was previously held in order to handle loss of focus when backend calls io.AddFocusEvent(false) // Important: as before version <18314 we lacked an explicit IO event for focus gain/loss, we also compare mouse validity to detect old backends clearing mouse pos on focus loss. - if (!(io.KeyMods & ImGuiKeyModFlags_Alt) && (io.KeyModsPrev & ImGuiKeyModFlags_Alt) && g.NavWindowingToggleLayer) + if (IsKeyReleased(ImGuiMod_Alt) && g.NavWindowingToggleLayer) if (g.ActiveId == 0 || g.ActiveIdAllowOverlap) if (IsMousePosValid(&io.MousePos) == IsMousePosValid(&io.MousePosPrev)) apply_toggle_layer = true; - if (!io.KeyAlt) + if (!IsKeyDown(ImGuiMod_Alt)) g.NavWindowingToggleLayer = false; } // Move window if (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoMove)) { - ImVec2 move_delta; + ImVec2 nav_move_dir; if (g.NavInputSource == ImGuiInputSource_Keyboard && !io.KeyShift) - move_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_RawKeyboard, ImGuiInputReadMode_Down); + nav_move_dir = GetKeyVector2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); if (g.NavInputSource == ImGuiInputSource_Gamepad) - move_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadLStick, ImGuiInputReadMode_Down); - if (move_delta.x != 0.0f || move_delta.y != 0.0f) + nav_move_dir = GetKeyVector2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + if (nav_move_dir.x != 0.0f || nav_move_dir.y != 0.0f) { const float NAV_MOVE_SPEED = 800.0f; - const float move_speed = ImFloor(NAV_MOVE_SPEED * io.DeltaTime * ImMin(io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y)); // FIXME: Doesn't handle variable framerate very well - ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindowDockTree; - SetWindowPos(moving_window, moving_window->Pos + move_delta * move_speed, ImGuiCond_Always); - MarkIniSettingsDirty(moving_window); + const float move_step = NAV_MOVE_SPEED * io.DeltaTime * ImMin(io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaPos += nav_move_dir * move_step; g.NavDisableMouseHover = true; + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaPos); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindowDockTree; + SetWindowPos(moving_window, moving_window->Pos + accum_floored, ImGuiCond_Always); + g.NavWindowingAccumDeltaPos -= accum_floored; + } } } @@ -11032,12 +12354,12 @@ static void ImGui::NavUpdateWindowing() static const char* GetFallbackWindowNameForWindowingList(ImGuiWindow* window) { if (window->Flags & ImGuiWindowFlags_Popup) - return "(Popup)"; + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingPopup); if ((window->Flags & ImGuiWindowFlags_MenuBar) && strcmp(window->Name, "##MainMenuBar") == 0) - return "(Main menu bar)"; + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingMainMenuBar); if (window->DockNodeAsHost) - return "(Dock node)"; - return "(Untitled)"; + return "(Dock node)"; // Not normally shown to user. + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingUntitled); } // Overlay displayed when using CTRL+TAB. Called by EndFrame(). @@ -11076,6 +12398,12 @@ void ImGui::NavUpdateWindowingOverlay() // [SECTION] DRAG AND DROP //----------------------------------------------------------------------------- +bool ImGui::IsDragDropActive() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive; +} + void ImGui::ClearDragDrop() { ImGuiContext& g = *GImGui; @@ -11145,6 +12473,7 @@ bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) // We don't need to maintain/call ClearActiveID() as releasing the button will early out this function and trigger !ActiveIdIsAlive. // Rely on keeping other window->LastItemXXX fields intact. source_id = g.LastItemData.ID = window->GetIDFromRectangle(g.LastItemData.Rect); + KeepAliveID(source_id); bool is_hovered = ItemHoverable(g.LastItemData.Rect, source_id); if (is_hovered && g.IO.MouseClicked[mouse_button]) { @@ -11160,7 +12489,7 @@ bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) source_drag_active = IsMouseDragging(mouse_button); // Disable navigation and key inputs while dragging + cancel existing request if any - SetActiveIdUsingNavAndKeys(); + SetActiveIdUsingAllKeyboardKeys(); } else { @@ -11264,6 +12593,7 @@ bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_s } payload.DataFrameCount = g.FrameCount; + // Return whether the payload has been accepted return (g.DragDropAcceptFrameCount == g.FrameCount) || (g.DragDropAcceptFrameCount == g.FrameCount - 1); } @@ -11291,7 +12621,7 @@ bool ImGui::BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id) } // We don't use BeginDragDropTargetCustom() and duplicate its code because: -// 1) we use LastItemRectHoveredRect which handles items that pushes a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. +// 1) we use LastItemRectHoveredRect which handles items that push a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. // 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can. // Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case) bool ImGui::BeginDragDropTarget() @@ -11310,7 +12640,10 @@ bool ImGui::BeginDragDropTarget() const ImRect& display_rect = (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDisplayRect) ? g.LastItemData.DisplayRect : g.LastItemData.Rect; ImGuiID id = g.LastItemData.ID; if (id == 0) + { id = window->GetIDFromRectangle(display_rect); + KeepAliveID(id); + } if (g.DragDropPayload.SourceId == id) return false; @@ -11350,9 +12683,8 @@ const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDrop } // Render default drop visuals - // FIXME-DRAGDROP: Settle on a proper default visuals for drop target. payload.Preview = was_accepted_previously; - flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that lives for 1 frame) + flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that live for 1 frame) if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) window->DrawList->AddRect(r.Min - ImVec2(3.5f,3.5f), r.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); @@ -11364,10 +12696,16 @@ const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDrop return &payload; } +// FIXME-DRAGDROP: Settle on a proper default visuals for drop target. +void ImGui::RenderDragDropTargetRect(const ImRect& bb) +{ + GetWindowDrawList()->AddRect(bb.Min - ImVec2(3.5f, 3.5f), bb.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); +} + const ImGuiPayload* ImGui::GetDragDropPayload() { ImGuiContext& g = *GImGui; - return g.DragDropActive ? &g.DragDropPayload : NULL; + return (g.DragDropActive && g.DragDropPayload.DataFrameCount != -1) ? &g.DragDropPayload : NULL; } // We don't really use/need this now, but added it for the sake of consistency and because we might need it later. @@ -11724,6 +13062,20 @@ ImGuiWindowSettings* ImGui::FindOrCreateWindowSettings(const char* name) return CreateNewWindowSettings(name); } +void ImGui::AddSettingsHandler(const ImGuiSettingsHandler* handler) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(FindSettingsHandler(handler->TypeName) == NULL); + g.SettingsHandlers.push_back(*handler); +} + +void ImGui::RemoveSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + if (ImGuiSettingsHandler* handler = FindSettingsHandler(type_name)) + g.SettingsHandlers.erase(handler); +} + ImGuiSettingsHandler* ImGui::FindSettingsHandler(const char* type_name) { ImGuiContext& g = *GImGui; @@ -11749,7 +13101,8 @@ void ImGui::LoadIniSettingsFromDisk(const char* ini_filename) char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size); if (!file_data) return; - LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); + if (file_data_size > 0) + LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); IM_FREE(file_data); } @@ -11951,6 +13304,7 @@ static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandl buf->appendf("Collapsed=%d\n", settings->Collapsed); if (settings->DockId != 0) { + //buf->appendf("TabId=0x%08X\n", ImHashStr("#TAB", 4, settings->ID)); // window->TabId: this is not read back but writing it makes "debugging" the .ini data easier. if (settings->DockOrder == -1) buf->appendf("DockId=0x%08X\n", settings->DockId); else @@ -11963,6 +13317,18 @@ static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandl } +//----------------------------------------------------------------------------- +// [SECTION] LOCALIZATION +//----------------------------------------------------------------------------- + +void ImGui::LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count) +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < count; n++) + g.LocalizationTable[entries[n].Key] = entries[n].Text; +} + + //----------------------------------------------------------------------------- // [SECTION] VIEWPORTS, PLATFORM WINDOWS //----------------------------------------------------------------------------- @@ -12027,7 +13393,7 @@ void ImGui::SetCurrentViewport(ImGuiWindow* current_window, ImGuiViewportP* view return; g.CurrentDpiScale = viewport ? viewport->DpiScale : 1.0f; g.CurrentViewport = viewport; - //IMGUI_DEBUG_LOG_VIEWPORT("SetCurrentViewport changed '%s' 0x%08X\n", current_window ? current_window->Name : NULL, viewport ? viewport->ID : 0); + //IMGUI_DEBUG_LOG_VIEWPORT("[viewport] SetCurrentViewport changed '%s' 0x%08X\n", current_window ? current_window->Name : NULL, viewport ? viewport->ID : 0); // Notify platform layer of viewport changes // FIXME-DPI: This is only currently used for experimenting with handling of multiple DPI @@ -12035,7 +13401,7 @@ void ImGui::SetCurrentViewport(ImGuiWindow* current_window, ImGuiViewportP* view g.PlatformIO.Platform_OnChangedViewport(g.CurrentViewport); } -static void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) +void ImGui::SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) { // Abandon viewport if (window->ViewportOwned && window->Viewport->Window == window) @@ -12142,7 +13508,7 @@ void ImGui::ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale) // If the backend doesn't set MouseLastHoveredViewport or doesn't honor ImGuiViewportFlags_NoInputs, we do a search ourselves. // A) It won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window. // B) It requires Platform_GetWindowFocus to be implemented by backend. -static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(const ImVec2 mouse_platform_pos) +ImGuiViewportP* ImGui::FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos) { ImGuiContext& g = *GImGui; ImGuiViewportP* best_candidate = NULL; @@ -12294,17 +13660,14 @@ static void ImGui::UpdateViewportsNewFrame() { viewport_hovered = g.IO.MouseHoveredViewport ? (ImGuiViewportP*)FindViewportByID(g.IO.MouseHoveredViewport) : NULL; if (viewport_hovered && (viewport_hovered->Flags & ImGuiViewportFlags_NoInputs)) - { - // Backend failed at honoring its contract if it returned a viewport with the _NoInputs flag. - IM_ASSERT(0); - viewport_hovered = FindHoveredViewportFromPlatformWindowStack(g.IO.MousePos); - } + viewport_hovered = FindHoveredViewportFromPlatformWindowStack(g.IO.MousePos); // Backend failed to handle _NoInputs viewport: revert to our fallback. } else { // If the backend doesn't know how to honor ImGuiViewportFlags_NoInputs, we do a search ourselves. Note that this search: // A) won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window. - // B) uses LastFrameAsRefViewport as a flawed replacement for the last time a window was focused (we could/should fix that by introducing Focus functions in PlatformIO) + // B) won't take account of how the backend apply parent<>child relationship to secondary viewports, which affects their Z order. + // C) uses LastFrameAsRefViewport as a flawed replacement for the last time a window was focused (we could/should fix that by introducing Focus functions in PlatformIO) viewport_hovered = FindHoveredViewportFromPlatformWindowStack(g.IO.MousePos); } if (viewport_hovered != NULL) @@ -12376,9 +13739,10 @@ ImGuiViewportP* ImGui::AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const ImGuiViewportP* viewport = (ImGuiViewportP*)FindViewportByID(id); if (viewport) { - if (!viewport->PlatformRequestMove) + // Always update for main viewport as we are already pulling correct platform pos/size (see #4900) + if (!viewport->PlatformRequestMove || viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID) viewport->Pos = pos; - if (!viewport->PlatformRequestResize) + if (!viewport->PlatformRequestResize || viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID) viewport->Size = size; viewport->Flags = flags | (viewport->Flags & ImGuiViewportFlags_Minimized); // Preserve existing flags } @@ -12393,7 +13757,7 @@ ImGuiViewportP* ImGui::AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const viewport->Flags = flags; UpdateViewportPlatformMonitor(viewport); g.Viewports.push_back(viewport); - IMGUI_DEBUG_LOG_VIEWPORT("Add Viewport %08X (%s)\n", id, window->Name); + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Add Viewport %08X '%s'\n", id, window ? window->Name : ""); // We normally setup for all viewports in NewFrame() but here need to handle the mid-frame creation of a new viewport. // We need to extend the fullscreen clip rect so the OverlayDrawList clip is correct for that the first frame @@ -12435,7 +13799,7 @@ static void ImGui::DestroyViewport(ImGuiViewportP* viewport) g.MouseLastHoveredViewport = NULL; // Destroy - IMGUI_DEBUG_LOG_VIEWPORT("Delete Viewport %08X (%s)\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Delete Viewport %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); DestroyPlatformWindow(viewport); // In most circumstances the platform window will already be destroyed here. IM_ASSERT(g.PlatformIO.Viewports.contains(viewport) == false); IM_ASSERT(g.Viewports[viewport->Idx] == viewport); @@ -12518,7 +13882,8 @@ static void ImGui::WindowSelectViewport(ImGuiWindow* window) { // Merge into host viewport? // We cannot test window->ViewportOwned as it set lower in the function. - bool try_to_merge_into_host_viewport = (window->Viewport && window == window->Viewport->Window && g.ActiveId == 0); + // Testing (g.ActiveId == 0 || g.ActiveIdAllowOverlap) to avoid merging during a short-term widget interaction. Main intent was to avoid during resize (see #4212) + bool try_to_merge_into_host_viewport = (window->Viewport && window == window->Viewport->Window && (g.ActiveId == 0 || g.ActiveIdAllowOverlap)); if (try_to_merge_into_host_viewport) UpdateTryMergeWindowIntoHostViewports(window); } @@ -12550,7 +13915,7 @@ static void ImGui::WindowSelectViewport(ImGuiWindow* window) if ((window->Flags & ImGuiWindowFlags_DockNodeHost) && window->Viewport->LastFrameActive < g.FrameCount && will_be_visible) { // Steal/transfer ownership - IMGUI_DEBUG_LOG_VIEWPORT("Window '%s' steal Viewport %08X from Window '%s'\n", window->Name, window->Viewport->ID, window->Viewport->Window->Name); + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Window '%s' steal Viewport %08X from Window '%s'\n", window->Name, window->Viewport->ID, window->Viewport->Window->Name); window->Viewport->Window = window; window->Viewport->ID = window->ID; window->Viewport->LastNameHash = 0; @@ -12697,10 +14062,10 @@ void ImGui::UpdatePlatformWindows() continue; // Create window - bool is_new_platform_window = (viewport->PlatformWindowCreated == false); + const bool is_new_platform_window = (viewport->PlatformWindowCreated == false); if (is_new_platform_window) { - IMGUI_DEBUG_LOG_VIEWPORT("Create Platform Window %08X (%s)\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Create Platform Window %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); g.PlatformIO.Platform_CreateWindow(viewport); if (g.PlatformIO.Renderer_CreateWindow != NULL) g.PlatformIO.Renderer_CreateWindow(viewport); @@ -13073,7 +14438,6 @@ namespace ImGui static void DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref = true); static void DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); static void DockContextPruneUnusedSettingsNodes(ImGuiContext* ctx); - static ImGuiDockNode* DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id); static ImGuiDockNode* DockContextBindNodeToWindow(ImGuiContext* ctx, ImGuiWindow* window); static void DockContextBuildNodesFromSettings(ImGuiContext* ctx, ImGuiDockNodeSettings* node_settings_array, int node_settings_count); static void DockContextBuildAddWindowsToNodes(ImGuiContext* ctx, ImGuiID root_id); // Use root_id==0 to add all @@ -13097,7 +14461,7 @@ namespace ImGui static void DockNodeUpdateVisibleFlag(ImGuiDockNode* node); static void DockNodeStartMouseMovingWindow(ImGuiDockNode* node, ImGuiWindow* window); static bool DockNodeIsDropAllowed(ImGuiWindow* host_window, ImGuiWindow* payload_window); - static void DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, ImGuiDockPreviewData* preview_data, bool is_explicit_target, bool is_outer_docking); + static void DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDockPreviewData* preview_data, bool is_explicit_target, bool is_outer_docking); static void DockNodePreviewDockRender(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, const ImGuiDockPreviewData* preview_data); static void DockNodeCalcTabBarLayout(const ImGuiDockNode* node, ImRect* out_title_rect, ImRect* out_tab_bar_rect, ImVec2* out_window_menu_button_pos, ImVec2* out_close_button_pos); static void DockNodeCalcSplitRects(ImVec2& pos_old, ImVec2& size_old, ImVec2& pos_new, ImVec2& size_new, ImGuiDir dir, ImVec2 size_new_desired); @@ -13189,8 +14553,9 @@ void ImGui::DockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear // (Different from DockSettingsHandler_ClearAll() + DockSettingsHandler_ApplyAll() because this reuses current settings!) void ImGui::DockContextRebuildNodes(ImGuiContext* ctx) { - IMGUI_DEBUG_LOG_DOCKING("DockContextRebuild()\n"); - ImGuiDockContext* dc = &ctx->DockContext; + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextRebuildNodes\n"); SaveIniSettingsToMemory(); ImGuiID root_id = 0; // Rebuild all DockContextClearNodes(ctx, root_id, false); @@ -13202,7 +14567,7 @@ void ImGui::DockContextRebuildNodes(ImGuiContext* ctx) void ImGui::DockContextNewFrameUpdateUndocking(ImGuiContext* ctx) { ImGuiContext& g = *ctx; - ImGuiDockContext* dc = &ctx->DockContext; + ImGuiDockContext* dc = &ctx->DockContext; if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) { if (dc->Nodes.Data.Size > 0 || dc->Requests.Size > 0) @@ -13253,13 +14618,13 @@ void ImGui::DockContextNewFrameUpdateDocking(ImGuiContext* ctx) // [DEBUG] Store hovered dock node. // We could in theory use DockNodeTreeFindVisibleNodeByPos() on the root host dock node, but using ->DockNode is a good shortcut. // Note this is mostly a debug thing and isn't actually used for docking target, because docking involve more detailed filtering. - g.HoveredDockNode = NULL; + g.DebugHoveredDockNode = NULL; if (ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow) { if (hovered_window->DockNodeAsHost) - g.HoveredDockNode = DockNodeTreeFindVisibleNodeByPos(hovered_window->DockNodeAsHost, g.IO.MousePos); + g.DebugHoveredDockNode = DockNodeTreeFindVisibleNodeByPos(hovered_window->DockNodeAsHost, g.IO.MousePos); else if (hovered_window->RootWindow->DockNode) - g.HoveredDockNode = hovered_window->RootWindow->DockNode; + g.DebugHoveredDockNode = hovered_window->RootWindow->DockNode; } // Process Docking requests @@ -13287,12 +14652,12 @@ void ImGui::DockContextEndFrame(ImGuiContext* ctx) { ImRect bg_rect(node->Pos + ImVec2(0.0f, GetFrameHeight()), node->Pos + node->Size); ImDrawFlags bg_rounding_flags = CalcRoundingFlagsForRectInRect(bg_rect, node->HostWindow->Rect(), DOCKING_SPLITTER_SIZE); - node->HostWindow->DrawList->ChannelsSetCurrent(0); + node->HostWindow->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); node->HostWindow->DrawList->AddRectFilled(bg_rect.Min, bg_rect.Max, node->LastBgColor, node->HostWindow->WindowRounding, bg_rounding_flags); } } -static ImGuiDockNode* ImGui::DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id) +ImGuiDockNode* ImGui::DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id) { return (ImGuiDockNode*)ctx->DockContext.Nodes.GetVoidPtr(id); } @@ -13311,13 +14676,14 @@ ImGuiID ImGui::DockContextGenNodeID(ImGuiContext* ctx) static ImGuiDockNode* ImGui::DockContextAddNode(ImGuiContext* ctx, ImGuiID id) { // Generate an ID for the new node (the exact ID value doesn't matter as long as it is not already used) and add the first window. + ImGuiContext& g = *ctx; if (id == 0) id = DockContextGenNodeID(ctx); else IM_ASSERT(DockContextFindNodeByID(ctx, id) == NULL); // We don't set node->LastFrameAlive on construction. Nodes are always created at all time to reflect .ini settings! - IMGUI_DEBUG_LOG_DOCKING("DockContextAddNode 0x%08X\n", id); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextAddNode 0x%08X\n", id); ImGuiDockNode* node = IM_NEW(ImGuiDockNode)(id); ctx->DockContext.Nodes.SetVoidPtr(node->ID, node); return node; @@ -13328,7 +14694,7 @@ static void ImGui::DockContextRemoveNode(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiContext& g = *ctx; ImGuiDockContext* dc = &ctx->DockContext; - IMGUI_DEBUG_LOG_DOCKING("DockContextRemoveNode 0x%08X\n", node->ID); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextRemoveNode 0x%08X\n", node->ID); IM_ASSERT(DockContextFindNodeByID(ctx, node->ID) == node); IM_ASSERT(node->ChildNodes[0] == NULL && node->ChildNodes[1] == NULL); IM_ASSERT(node->Windows.Size == 0); @@ -13427,7 +14793,7 @@ static void ImGui::DockContextPruneUnusedSettingsNodes(ImGuiContext* ctx) remove |= (data_root->CountChildWindows == 0); if (remove) { - IMGUI_DEBUG_LOG_DOCKING("DockContextPruneUnusedSettingsNodes: Prune 0x%08X\n", settings->ID); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextPruneUnusedSettingsNodes: Prune 0x%08X\n", settings->ID); DockSettingsRemoveNodeReferences(&settings->ID, 1); settings->ID = 0; } @@ -13546,9 +14912,9 @@ void ImGui::DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req) ImGuiWindow* target_window = req->DockTargetWindow; ImGuiDockNode* node = req->DockTargetNode; if (payload_window) - IMGUI_DEBUG_LOG_DOCKING("DockContextProcessDock node 0x%08X target '%s' dock window '%s', split_dir %d\n", node ? node->ID : 0, target_window ? target_window->Name : "NULL", payload_window ? payload_window->Name : "NULL", req->DockSplitDir); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessDock node 0x%08X target '%s' dock window '%s', split_dir %d\n", node ? node->ID : 0, target_window ? target_window->Name : "NULL", payload_window->Name, req->DockSplitDir); else - IMGUI_DEBUG_LOG_DOCKING("DockContextProcessDock node 0x%08X, split_dir %d\n", node ? node->ID : 0, req->DockSplitDir); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessDock node 0x%08X, split_dir %d\n", node ? node->ID : 0, req->DockSplitDir); // Decide which Tab will be selected at the end of the operation ImGuiID next_selected_id = 0; @@ -13560,7 +14926,7 @@ void ImGui::DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req) if (payload_node && payload_node->IsLeafNode()) next_selected_id = payload_node->TabBar->NextSelectedTabId ? payload_node->TabBar->NextSelectedTabId : payload_node->TabBar->SelectedTabId; if (payload_node == NULL) - next_selected_id = payload_window->ID; + next_selected_id = payload_window->TabId; } // FIXME-DOCK: When we are trying to dock an existing single-window node into a loose window, transfer Node ID as well @@ -13697,8 +15063,8 @@ static ImVec2 FixLargeWindowsWhenUndocking(const ImVec2& size, ImGuiViewport* re void ImGui::DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref) { - IMGUI_DEBUG_LOG_DOCKING("DockContextProcessUndockWindow window '%s', clear_persistent_docking_ref = %d\n", window->Name, clear_persistent_docking_ref); - IM_UNUSED(ctx); + ImGuiContext& g = *ctx; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessUndockWindow window '%s', clear_persistent_docking_ref = %d\n", window->Name, clear_persistent_docking_ref); if (window->DockNode) DockNodeRemoveWindow(window->DockNode, window, clear_persistent_docking_ref ? 0 : window->DockId); else @@ -13713,7 +15079,8 @@ void ImGui::DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* windo void ImGui::DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) { - IMGUI_DEBUG_LOG_DOCKING("DockContextProcessUndockNode node %08X\n", node->ID); + ImGuiContext& g = *ctx; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessUndockNode node %08X\n", node->ID); IM_ASSERT(node->IsLeafNode()); IM_ASSERT(node->Windows.Size >= 1); @@ -13726,14 +15093,6 @@ void ImGui::DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) new_node->SizeRef = node->SizeRef; DockNodeMoveWindows(new_node, node); DockSettingsRenameNodeReferences(node->ID, new_node->ID); - for (int n = 0; n < new_node->Windows.Size; n++) - { - ImGuiWindow* window = new_node->Windows[n]; - window->Flags &= ~ImGuiWindowFlags_ChildWindow; - if (window->ParentWindow) - window->ParentWindow->DC.ChildWindows.find_erase(window); - UpdateWindowParentAndRootLinks(window, window->Flags, NULL); - } node = new_node; } else @@ -13746,6 +15105,14 @@ void ImGui::DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) node->ParentNode->AuthorityForViewport = ImGuiDataAuthority_Window; // The node that stays in place keeps the viewport, so our newly dragged out node will create a new viewport node->ParentNode = NULL; } + for (int n = 0; n < node->Windows.Size; n++) + { + ImGuiWindow* window = node->Windows[n]; + window->Flags &= ~ImGuiWindowFlags_ChildWindow; + if (window->ParentWindow) + window->ParentWindow->DC.ChildWindows.find_erase(window); + UpdateWindowParentAndRootLinks(window, window->Flags, NULL); + } node->AuthorityForPos = node->AuthorityForSize = ImGuiDataAuthority_DockNode; node->Size = FixLargeWindowsWhenUndocking(node->Size, node->Windows[0]->Viewport); node->WantMouseMove = true; @@ -13753,14 +15120,14 @@ void ImGui::DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) } // This is mostly used for automation. -bool ImGui::DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos) +bool ImGui::DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos) { // In DockNodePreviewDockSetup() for a root central node instead of showing both "inner" and "outer" drop rects // (which would be functionally identical) we only show the outer one. Reflect this here. if (target_node && target_node->ParentNode == NULL && target_node->IsCentralNode() && split_dir != ImGuiDir_None) split_outer = true; ImGuiDockPreviewData split_data; - DockNodePreviewDockSetup(target, target_node, payload, &split_data, false, split_outer); + DockNodePreviewDockSetup(target, target_node, payload_window, payload_node, &split_data, false, split_outer); if (split_data.DropRectsDraw[split_dir+1].IsInverted()) return false; *out_pos = split_data.DropRectsDraw[split_dir+1].GetCenter(); @@ -13837,7 +15204,7 @@ int ImGui::DockNodeGetTabOrder(ImGuiWindow* window) ImGuiTabBar* tab_bar = window->DockNode->TabBar; if (tab_bar == NULL) return -1; - ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, window->ID); + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, window->TabId); return tab ? tab_bar->GetTabOrder(tab) : -1; } @@ -13857,7 +15224,7 @@ static void ImGui::DockNodeAddWindow(ImGuiDockNode* node, ImGuiWindow* window, b DockNodeRemoveWindow(window->DockNode, window, 0); } IM_ASSERT(window->DockNode == NULL || window->DockNodeAsHost == NULL); - IMGUI_DEBUG_LOG_DOCKING("DockNodeAddWindow node 0x%08X window '%s'\n", node->ID, window->Name); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeAddWindow node 0x%08X window '%s'\n", node->ID, window->Name); // If more than 2 windows appeared on the same frame leading to the creation of a new hosting window, // we'll hide windows until the host window is ready. Hide the 1st window after its been output (so it is not visible for one frame). @@ -13913,7 +15280,7 @@ static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window //IM_ASSERT(window->RootWindowDockTree == node->HostWindow); //IM_ASSERT(window->LastFrameActive < g.FrameCount); // We may call this from Begin() IM_ASSERT(save_dock_id == 0 || save_dock_id == node->ID); - IMGUI_DEBUG_LOG_DOCKING("DockNodeRemoveWindow node 0x%08X window '%s'\n", node->ID, window->Name); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeRemoveWindow node 0x%08X window '%s'\n", node->ID, window->Name); window->DockNode = NULL; window->DockIsActive = window->DockTabWantClose = false; @@ -13941,7 +15308,7 @@ static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window node->WantHiddenTabBarUpdate = true; if (node->TabBar) { - TabBarRemoveTab(node->TabBar, window->ID); + TabBarRemoveTab(node->TabBar, window->TabId); const int tab_count_threshold_for_tab_bar = node->IsCentralNode() ? 1 : 2; if (node->Windows.Size < tab_count_threshold_for_tab_bar) DockNodeRemoveTabBar(node); @@ -13960,7 +15327,7 @@ static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window if (node->HostWindow->ViewportOwned && node->IsRootNode()) { // Transfer viewport back to the remaining loose window - IMGUI_DEBUG_LOG_VIEWPORT("Node %08X transfer Viewport %08X=>%08X for Window '%s'\n", node->ID, node->HostWindow->Viewport->ID, remaining_window->ID, remaining_window->Name); + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Node %08X transfer Viewport %08X=>%08X for Window '%s'\n", node->ID, node->HostWindow->Viewport->ID, remaining_window->ID, remaining_window->Name); IM_ASSERT(node->HostWindow->Viewport->Window == node->HostWindow); node->HostWindow->Viewport->Window = remaining_window; node->HostWindow->Viewport->ID = remaining_window->ID; @@ -14002,15 +15369,12 @@ static void ImGui::DockNodeMoveWindows(ImGuiDockNode* dst_node, ImGuiDockNode* s src_node->TabBar = NULL; } - for (int n = 0; n < src_node->Windows.Size; n++) + // Tab order is not important here, it is preserved by sorting in DockNodeUpdateTabBar(). + for (ImGuiWindow* window : src_node->Windows) { - // DockNode's TabBar may have non-window Tabs manually appended by user - if (ImGuiWindow* window = src_tab_bar ? src_tab_bar->Tabs[n].Window : src_node->Windows[n]) - { - window->DockNode = NULL; - window->DockIsActive = false; - DockNodeAddWindow(dst_node, window, move_tab_bar ? false : true); - } + window->DockNode = NULL; + window->DockIsActive = false; + DockNodeAddWindow(dst_node, window, !move_tab_bar); } src_node->Windows.clear(); @@ -14124,7 +15488,7 @@ static void ImGui::DockNodeUpdateFlagsAndCollapse(ImGuiDockNode* node) bool node_was_active = (node->LastFrameActive + 1 == g.FrameCount); bool remove = false; remove |= node_was_active && (window->LastFrameActive + 1 < g.FrameCount); - remove |= node_was_active && (node->WantCloseAll || node->WantCloseTabId == window->ID) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument); // Submit all _expected_ closure from last frame + remove |= node_was_active && (node->WantCloseAll || node->WantCloseTabId == window->TabId) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument); // Submit all _expected_ closure from last frame remove |= (window->DockTabWantClose); if (remove) { @@ -14442,8 +15806,17 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node) if (node->IsSplitNode()) IM_ASSERT(node->TabBar == NULL); if (node->IsRootNode()) - if (g.NavWindow && g.NavWindow->RootWindow->DockNode && g.NavWindow->RootWindow->ParentWindow == host_window) - node->LastFocusedNodeId = g.NavWindow->RootWindow->DockNode->ID; + if (ImGuiWindow* p_window = g.NavWindow ? g.NavWindow->RootWindow : NULL) + while (p_window != NULL && p_window->DockNode != NULL) + { + ImGuiDockNode* p_node = DockNodeGetRootNode(p_window->DockNode); + if (p_node == node) + { + node->LastFocusedNodeId = p_window->DockNode->ID; // Note: not using root node ID! + break; + } + p_window = p_node->HostWindow ? p_node->HostWindow->RootWindow : NULL; + } // Register a hit-test hole in the window unless we are currently dragging a window that is compatible with our dockspace ImGuiDockNode* central_node = node->CentralNode; @@ -14470,14 +15843,14 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node) if (central_node_hole && !hole_rect.IsInverted()) { SetWindowHitTestHole(host_window, hole_rect.Min, hole_rect.Max - hole_rect.Min); - SetWindowHitTestHole(host_window->ParentWindow, hole_rect.Min, hole_rect.Max - hole_rect.Min); + if (host_window->ParentWindow) + SetWindowHitTestHole(host_window->ParentWindow, hole_rect.Min, hole_rect.Max - hole_rect.Min); } } // Update position/size, process and draw resizing splitters if (node->IsRootNode() && host_window) { - host_window->DrawList->ChannelsSetCurrent(1); DockNodeTreeUpdatePosSize(node, host_window->Pos, host_window->Size); DockNodeTreeUpdateSplitter(node); } @@ -14485,7 +15858,7 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node) // Draw empty node background (currently can only be the Central Node) if (host_window && node->IsEmpty() && node->IsVisible) { - host_window->DrawList->ChannelsSetCurrent(0); + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); node->LastBgColor = (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) ? 0 : GetColorU32(ImGuiCol_DockingEmptyBg); if (node->LastBgColor != 0) host_window->DrawList->AddRectFilled(node->Pos, node->Pos + node->Size, node->LastBgColor); @@ -14498,7 +15871,7 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node) const bool render_dockspace_bg = node->IsRootNode() && host_window && (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0; if (render_dockspace_bg && node->IsVisible) { - host_window->DrawList->ChannelsSetCurrent(0); + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); if (central_node_hole) RenderRectFilledWithHole(host_window->DrawList, node->Rect(), central_node->Rect(), GetColorU32(ImGuiCol_WindowBg), 0.0f); else @@ -14507,7 +15880,7 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node) // Draw and populate Tab Bar if (host_window) - host_window->DrawList->ChannelsSetCurrent(1); + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); if (host_window && node->Windows.Size > 0) { DockNodeUpdateTabBar(node, host_window); @@ -14521,7 +15894,7 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node) if (node->TabBar && node->TabBar->SelectedTabId) node->SelectedTabId = node->TabBar->SelectedTabId; else if (node->Windows.Size > 0) - node->SelectedTabId = node->Windows[0]->ID; + node->SelectedTabId = node->Windows[0]->TabId; // Draw payload drop target if (host_window && node->IsVisible) @@ -14542,13 +15915,7 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node) // Render outer borders last (after the tab bar) if (node->IsRootNode()) - { - host_window->DrawList->ChannelsSetCurrent(1); RenderWindowOuterBorders(host_window); - } - - // Further rendering (= hosted windows background) will be drawn on layer 0 - host_window->DrawList->ChannelsSetCurrent(0); } // End host window @@ -14580,7 +15947,7 @@ static ImGuiID ImGui::DockNodeUpdateWindowMenu(ImGuiDockNode* node, ImGuiTabBar* node->IsFocused = true; if (tab_bar->Tabs.Size == 1) { - if (MenuItem("Hide tab bar", NULL, node->IsHiddenTabBar())) + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_DockingHideTabBar), NULL, node->IsHiddenTabBar())) node->WantHiddenTabBarToggle = true; } else @@ -14623,6 +15990,28 @@ void ImGui::DockNodeEndAmendTabBar() End(); } +static bool IsDockNodeTitleBarHighlighted(ImGuiDockNode* node, ImGuiDockNode* root_node) +{ + // CTRL+Tab highlight (only highlighting leaf node, not whole hierarchy) + ImGuiContext& g = *GImGui; + if (g.NavWindowingTarget) + return (g.NavWindowingTarget->DockNode == node); + + // FIXME-DOCKING: May want alternative to treat central node void differently? e.g. if (g.NavWindow == host_window) + if (g.NavWindow && root_node->LastFocusedNodeId == node->ID) + { + // FIXME: This could all be backed in RootWindowForTitleBarHighlight? Probably need to reorganize for both dock nodes + other RootWindowForTitleBarHighlight users (not-node) + ImGuiWindow* parent_window = g.NavWindow->RootWindow; + while (parent_window->Flags & ImGuiWindowFlags_ChildMenu) + parent_window = parent_window->ParentWindow->RootWindow; + ImGuiDockNode* start_parent_node = parent_window->DockNodeAsHost ? parent_window->DockNodeAsHost : parent_window->DockNode; + for (ImGuiDockNode* parent_node = start_parent_node; parent_node != NULL; parent_node = parent_node->HostWindow ? parent_node->HostWindow->RootWindow->DockNode : NULL) + if ((parent_node = ImGui::DockNodeGetRootNode(parent_node)) == root_node) + return true; + } + return false; +} + // Submit the tab bar corresponding to a dock node and various housekeeping details. static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_window) { @@ -14638,9 +16027,7 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w // Decide if we should use a focused title bar color bool is_focused = false; ImGuiDockNode* root_node = DockNodeGetRootNode(node); - if (g.NavWindowingTarget) - is_focused = (g.NavWindowingTarget->DockNode == node); - else if (g.NavWindow && g.NavWindow->RootWindowForTitleBarHighlight == host_window->RootWindowDockTree && root_node->LastFocusedNodeId == node->ID) + if (IsDockNodeTitleBarHighlighted(node, root_node)) is_focused = true; // Hidden tab bar will show a triangle on the upper-left (in Begin) @@ -14656,7 +16043,7 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w if (is_focused || root_node->VisibleWindow == NULL) root_node->VisibleWindow = node->VisibleWindow; if (node->TabBar) - node->TabBar->VisibleTabId = node->VisibleWindow->ID; + node->TabBar->VisibleTabId = node->VisibleWindow->TabId; } return; } @@ -14707,7 +16094,7 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w for (int window_n = 0; window_n < node->Windows.Size; window_n++) { ImGuiWindow* window = node->Windows[window_n]; - if (TabBarFindTabByID(tab_bar, window->ID) == NULL) + if (TabBarFindTabByID(tab_bar, window->TabId) == NULL) TabBarAddTab(tab_bar, ImGuiTabItemFlags_Unsorted, window); } @@ -14737,22 +16124,22 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w } if (tab_bar->Tabs.Size > tabs_unsorted_start) { - IMGUI_DEBUG_LOG_DOCKING("In node 0x%08X: %d new appearing tabs:%s\n", node->ID, tab_bar->Tabs.Size - tabs_unsorted_start, (tab_bar->Tabs.Size > tabs_unsorted_start + 1) ? " (will sort)" : ""); + IMGUI_DEBUG_LOG_DOCKING("[docking] In node 0x%08X: %d new appearing tabs:%s\n", node->ID, tab_bar->Tabs.Size - tabs_unsorted_start, (tab_bar->Tabs.Size > tabs_unsorted_start + 1) ? " (will sort)" : ""); for (int tab_n = tabs_unsorted_start; tab_n < tab_bar->Tabs.Size; tab_n++) - IMGUI_DEBUG_LOG_DOCKING(" - Tab '%s' Order %d\n", tab_bar->Tabs[tab_n].Window->Name, tab_bar->Tabs[tab_n].Window->DockOrder); + IMGUI_DEBUG_LOG_DOCKING("[docking] - Tab '%s' Order %d\n", tab_bar->Tabs[tab_n].Window->Name, tab_bar->Tabs[tab_n].Window->DockOrder); if (tab_bar->Tabs.Size > tabs_unsorted_start + 1) ImQsort(tab_bar->Tabs.Data + tabs_unsorted_start, tab_bar->Tabs.Size - tabs_unsorted_start, sizeof(ImGuiTabItem), TabItemComparerByDockOrder); } // Apply NavWindow focus back to the tab bar if (g.NavWindow && g.NavWindow->RootWindow->DockNode == node) - tab_bar->SelectedTabId = g.NavWindow->RootWindow->ID; + tab_bar->SelectedTabId = g.NavWindow->RootWindow->TabId; // Selected newly added tabs, or persistent tab ID if the tab bar was just recreated if (tab_bar_is_recreated && TabBarFindTabByID(tab_bar, node->SelectedTabId) != NULL) tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = node->SelectedTabId; else if (tab_bar->Tabs.Size > tabs_count_old) - tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = tab_bar->Tabs.back().Window->ID; + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = tab_bar->Tabs.back().Window->TabId; // Begin tab bar ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_AutoSelectNewTabs; // | ImGuiTabBarFlags_NoTabListScrollingButtons); @@ -14772,7 +16159,7 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w for (int window_n = 0; window_n < node->Windows.Size; window_n++) { ImGuiWindow* window = node->Windows[window_n]; - if ((closed_all || closed_one == window->ID) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument)) + if ((closed_all || closed_one == window->TabId) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument)) continue; if (window->LastFrameActive + 1 >= g.FrameCount || !node_was_active) { @@ -14787,11 +16174,12 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) g.Style.Colors[GWindowDockStyleColors[color_n]] = ColorConvertU32ToFloat4(window->DockStyle.Colors[color_n]); + // Note that TabItemEx() calls TabBarCalcTabID() so our tab item ID will ignore the current ID stack (rightly so) bool tab_open = true; TabItemEx(tab_bar, window->Name, window->HasCloseButton ? &tab_open : NULL, tab_item_flags, window); if (!tab_open) - node->WantCloseTabId = window->ID; - if (tab_bar->VisibleTabId == window->ID) + node->WantCloseTabId = window->TabId; + if (tab_bar->VisibleTabId == window->TabId) node->VisibleWindow = window; // Store last item data so it can be queried with IsItemXXX functions after the user Begin() call @@ -14800,7 +16188,7 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w // Update navigation ID on menu layer if (g.NavWindow && g.NavWindow->RootWindow == window && (window->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) == 0) - host_window->NavLastIds[1] = window->ID; + host_window->NavLastIds[1] = window->TabId; } } @@ -14814,7 +16202,7 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w root_node->VisibleWindow = node->VisibleWindow; // Close button (after VisibleWindow was updated) - // Note that VisibleWindow may have been overrided by CTRL+Tabbing, so VisibleWindow->ID may be != from tab_bar->SelectedTabId + // Note that VisibleWindow may have been overrided by CTRL+Tabbing, so VisibleWindow->TabId may be != from tab_bar->SelectedTabId const bool close_button_is_enabled = node->HasCloseButton && node->VisibleWindow && node->VisibleWindow->HasCloseButton; const bool close_button_is_visible = node->HasCloseButton; //const bool close_button_is_visible = close_button_is_enabled; // Most people would expect this behavior of not even showing the button (leaving a hole since we can't claim that space as other windows in the tba bar have one) @@ -15077,20 +16465,21 @@ bool ImGui::DockNodeCalcDropRectsAndTestMousePos(const ImRect& parent, ImGuiDir // host_node may be NULL if the window doesn't have a DockNode already. // FIXME-DOCK: This is misnamed since it's also doing the filtering. -static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* root_payload, ImGuiDockPreviewData* data, bool is_explicit_target, bool is_outer_docking) +static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDockPreviewData* data, bool is_explicit_target, bool is_outer_docking) { ImGuiContext& g = *GImGui; // There is an edge case when docking into a dockspace which only has inactive nodes. // In this case DockNodeTreeFindNodeByPos() will have selected a leaf node which is inactive. // Because the inactive leaf node doesn't have proper pos/size yet, we'll use the root node as reference. - ImGuiDockNode* root_payload_as_host = root_payload->DockNodeAsHost; + if (payload_node == NULL) + payload_node = payload_window->DockNodeAsHost; ImGuiDockNode* ref_node_for_rect = (host_node && !host_node->IsVisible) ? DockNodeGetRootNode(host_node) : host_node; if (ref_node_for_rect) - IM_ASSERT(ref_node_for_rect->IsVisible); + IM_ASSERT(ref_node_for_rect->IsVisible == true); // Filter, figure out where we are allowed to dock - ImGuiDockNodeFlags src_node_flags = root_payload_as_host ? root_payload_as_host->MergedFlags : root_payload->WindowClass.DockNodeFlagsOverrideSet; + ImGuiDockNodeFlags src_node_flags = payload_node ? payload_node->MergedFlags : payload_window->WindowClass.DockNodeFlagsOverrideSet; ImGuiDockNodeFlags dst_node_flags = host_node ? host_node->MergedFlags : host_window->WindowClass.DockNodeFlagsOverrideSet; data->IsCenterAvailable = true; if (is_outer_docking) @@ -15099,7 +16488,7 @@ static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockN data->IsCenterAvailable = false; else if (host_node && (dst_node_flags & ImGuiDockNodeFlags_NoDockingInCentralNode) && host_node->IsCentralNode()) data->IsCenterAvailable = false; - else if ((!host_node || !host_node->IsEmpty()) && root_payload_as_host && root_payload_as_host->IsSplitNode() && (root_payload_as_host->OnlyNodeWithWindows == NULL)) // Is _visibly_ split? + else if ((!host_node || !host_node->IsEmpty()) && payload_node && payload_node->IsSplitNode() && (payload_node->OnlyNodeWithWindows == NULL)) // Is _visibly_ split? data->IsCenterAvailable = false; else if (dst_node_flags & ImGuiDockNodeFlags_NoDockingOverMe) data->IsCenterAvailable = false; @@ -15117,7 +16506,7 @@ static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockN data->IsSidesAvailable = false; // Build a tentative future node (reuse same structure because it is practical. Shape will be readjusted when previewing a split) - data->FutureNode.HasCloseButton = (host_node ? host_node->HasCloseButton : host_window->HasCloseButton) || (root_payload->HasCloseButton); + data->FutureNode.HasCloseButton = (host_node ? host_node->HasCloseButton : host_window->HasCloseButton) || (payload_window->HasCloseButton); data->FutureNode.HasWindowMenuButton = host_node ? true : ((host_window->Flags & ImGuiWindowFlags_NoCollapse) == 0); data->FutureNode.Pos = ref_node_for_rect ? ref_node_for_rect->Pos : host_window->Pos; data->FutureNode.Size = ref_node_for_rect ? ref_node_for_rect->Size : host_window->Size; @@ -15154,7 +16543,7 @@ static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockN ImGuiAxis split_axis = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; ImVec2 pos_new, pos_old = data->FutureNode.Pos; ImVec2 size_new, size_old = data->FutureNode.Size; - DockNodeCalcSplitRects(pos_old, size_old, pos_new, size_new, split_dir, root_payload->Size); + DockNodeCalcSplitRects(pos_old, size_old, pos_new, size_new, split_dir, payload_window->Size); // Calculate split ratio so we can pass it down the docking request float split_ratio = ImSaturate(size_new[split_axis] / data->FutureNode.Size[split_axis]); @@ -15210,11 +16599,11 @@ static void ImGui::DockNodePreviewDockRender(ImGuiWindow* host_window, ImGuiDock if (!host_node->IsHiddenTabBar() && !host_node->IsNoTabBar()) tab_pos.x += host_node->TabBar->WidthAllTabs + g.Style.ItemInnerSpacing.x; // We don't use OffsetNewTab because when using non-persistent-order tab bar it is incremented with each Tab submission. else - tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_node->Windows[0]->Name, host_node->Windows[0]->HasCloseButton).x; + tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_node->Windows[0]).x; } else if (!(host_window->Flags & ImGuiWindowFlags_DockNodeHost)) { - tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_window->Name, host_window->HasCloseButton).x; // Account for slight offset which will be added when changing from title bar to tab bar + tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_window).x; // Account for slight offset which will be added when changing from title bar to tab bar } // Draw tab shape/label preview (payload may be a loose window or a host window carrying multiple tabbed windows) @@ -15232,7 +16621,7 @@ static void ImGui::DockNodePreviewDockRender(ImGuiWindow* host_window, ImGuiDock continue; // Calculate the tab bounding box for each payload window - ImVec2 tab_size = TabItemCalcSize(payload_window->Name, payload_window->HasCloseButton); + ImVec2 tab_size = TabItemCalcSize(payload_window); ImRect tab_bb(tab_pos.x, tab_pos.y, tab_pos.x + tab_size.x, tab_pos.y + tab_size.y); tab_pos.x += tab_size.x + g.Style.ItemInnerSpacing.x; const ImU32 overlay_col_text = GetColorU32(payload_window->DockStyle.Colors[ImGuiWindowDockStyleCol_Text]); @@ -15339,6 +16728,7 @@ void ImGui::DockNodeTreeSplit(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImG void ImGui::DockNodeTreeMerge(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiDockNode* merge_lead_child) { // When called from DockContextProcessUndockNode() it is possible that one of the child is NULL. + ImGuiContext& g = *GImGui; ImGuiDockNode* child_0 = parent_node->ChildNodes[0]; ImGuiDockNode* child_1 = parent_node->ChildNodes[1]; IM_ASSERT(child_0 || child_1); @@ -15348,7 +16738,7 @@ void ImGui::DockNodeTreeMerge(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImG IM_ASSERT(parent_node->TabBar == NULL); IM_ASSERT(parent_node->Windows.Size == 0); } - IMGUI_DEBUG_LOG_DOCKING("DockNodeTreeMerge 0x%08X & 0x%08X back into parent 0x%08X\n", child_0 ? child_0->ID : 0, child_1 ? child_1->ID : 0, parent_node->ID); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeTreeMerge: 0x%08X + 0x%08X back into parent 0x%08X\n", child_0 ? child_0->ID : 0, child_1 ? child_1->ID : 0, parent_node->ID); ImVec2 backup_last_explicit_size = parent_node->SizeRef; DockNodeMoveChildNodes(parent_node, merge_lead_child); @@ -15646,7 +17036,8 @@ ImGuiDockNode* ImGui::DockNodeTreeFindVisibleNodeByPos(ImGuiDockNode* node, ImVe if (ImGuiDockNode* hovered_node = DockNodeTreeFindVisibleNodeByPos(node->ChildNodes[1], pos)) return hovered_node; - return NULL; + // This means we are hovering over the splitter/spacing of a parent node + return node; } //----------------------------------------------------------------------------- @@ -15716,12 +17107,12 @@ ImGuiID ImGui::DockSpace(ImGuiID id, const ImVec2& size_arg, ImGuiDockNodeFlags ImGuiDockNode* node = DockContextFindNodeByID(ctx, id); if (!node) { - IMGUI_DEBUG_LOG_DOCKING("DockSpace: dockspace node 0x%08X created\n", id); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSpace: dockspace node 0x%08X created\n", id); node = DockContextAddNode(ctx, id); node->SetLocalFlags(ImGuiDockNodeFlags_CentralNode); } if (window_class && window_class->ClassId != node->WindowClass.ClassId) - IMGUI_DEBUG_LOG_DOCKING("DockSpace: dockspace node 0x%08X: setup WindowClass 0x%08X -> 0x%08X\n", id, node->WindowClass.ClassId, window_class->ClassId); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSpace: dockspace node 0x%08X: setup WindowClass 0x%08X -> 0x%08X\n", id, node->WindowClass.ClassId, window_class->ClassId); node->SharedFlags = flags; node->WindowClass = window_class ? *window_class : ImGuiWindowClass(); @@ -16057,11 +17448,11 @@ void ImGui::DockBuilderRemoveNodeDockedWindows(ImGuiID root_id, bool clear_setti // FIXME-DOCK: We are not exposing nor using split_outer. ImGuiID ImGui::DockBuilderSplitNode(ImGuiID id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir) { - ImGuiContext* ctx = GImGui; + ImGuiContext& g = *GImGui; IM_ASSERT(split_dir != ImGuiDir_None); - IMGUI_DEBUG_LOG_DOCKING("DockBuilderSplitNode node 0x%08X, split_dir %d\n", id, split_dir); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderSplitNode: node 0x%08X, split_dir %d\n", id, split_dir); - ImGuiDockNode* node = DockContextFindNodeByID(ctx, id); + ImGuiDockNode* node = DockContextFindNodeByID(&g, id); if (node == NULL) { IM_ASSERT(node != NULL); @@ -16078,7 +17469,7 @@ ImGuiID ImGui::DockBuilderSplitNode(ImGuiID id, ImGuiDir split_dir, float size_r req.DockSplitDir = split_dir; req.DockSplitRatio = ImSaturate((split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? size_ratio_for_node_at_dir : 1.0f - size_ratio_for_node_at_dir); req.DockSplitOuter = false; - DockContextProcessDock(ctx, &req); + DockContextProcessDock(&g, &req); ImGuiID id_at_dir = node->ChildNodes[(split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 0 : 1]->ID; ImGuiID id_at_opposite_dir = node->ChildNodes[(split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 1 : 0]->ID; @@ -16091,8 +17482,8 @@ ImGuiID ImGui::DockBuilderSplitNode(ImGuiID id, ImGuiDir split_dir, float size_r static ImGuiDockNode* DockBuilderCopyNodeRec(ImGuiDockNode* src_node, ImGuiID dst_node_id_if_known, ImVector* out_node_remap_pairs) { - ImGuiContext* ctx = GImGui; - ImGuiDockNode* dst_node = ImGui::DockContextAddNode(ctx, dst_node_id_if_known); + ImGuiContext& g = *GImGui; + ImGuiDockNode* dst_node = ImGui::DockContextAddNode(&g, dst_node_id_if_known); dst_node->SharedFlags = src_node->SharedFlags; dst_node->LocalFlags = src_node->LocalFlags; dst_node->LocalFlagsInWindows = ImGuiDockNodeFlags_None; @@ -16112,7 +17503,7 @@ static ImGuiDockNode* DockBuilderCopyNodeRec(ImGuiDockNode* src_node, ImGuiID ds dst_node->ChildNodes[child_n]->ParentNode = dst_node; } - IMGUI_DEBUG_LOG_DOCKING("Fork node %08X -> %08X (%d childs)\n", src_node->ID, dst_node->ID, dst_node->IsSplitNode() ? 2 : 0); + IMGUI_DEBUG_LOG_DOCKING("[docking] Fork node %08X -> %08X (%d childs)\n", src_node->ID, dst_node->ID, dst_node->IsSplitNode() ? 2 : 0); return dst_node; } @@ -16167,6 +17558,7 @@ void ImGui::DockBuilderCopyWindowSettings(const char* src_name, const char* dst_ // FIXME: Will probably want to change this signature, in particular how the window remapping pairs are passed. void ImGui::DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector* in_window_remap_pairs) { + ImGuiContext& g = *GImGui; IM_ASSERT(src_dockspace_id != 0); IM_ASSERT(dst_dockspace_id != 0); IM_ASSERT(in_window_remap_pairs != NULL); @@ -16206,14 +17598,14 @@ void ImGui::DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_docks if (dst_dock_id != 0) { // Docked windows gets redocked into the new node hierarchy. - IMGUI_DEBUG_LOG_DOCKING("Remap live window '%s' 0x%08X -> '%s' 0x%08X\n", src_window_name, src_dock_id, dst_window_name, dst_dock_id); + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap live window '%s' 0x%08X -> '%s' 0x%08X\n", src_window_name, src_dock_id, dst_window_name, dst_dock_id); DockBuilderDockWindow(dst_window_name, dst_dock_id); } else { // Floating windows gets their settings transferred (regardless of whether the new window already exist or not) // When this is leading to a Copy and not a Move, we would get two overlapping floating windows. Could we possibly dock them together? - IMGUI_DEBUG_LOG_DOCKING("Remap window settings '%s' -> '%s'\n", src_window_name, dst_window_name); + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap window settings '%s' -> '%s'\n", src_window_name, dst_window_name); DockBuilderCopyWindowSettings(src_window_name, dst_window_name); } } @@ -16232,7 +17624,7 @@ void ImGui::DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_docks continue; // Docked windows gets redocked into the new node hierarchy. - IMGUI_DEBUG_LOG_DOCKING("Remap window '%s' %08X -> %08X\n", window->Name, src_dock_id, dst_dock_id); + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap window '%s' %08X -> %08X\n", window->Name, src_dock_id, dst_dock_id); DockBuilderDockWindow(window->Name, dst_dock_id); } } @@ -16428,7 +17820,7 @@ void ImGui::BeginDocked(ImGuiWindow* window, bool* p_open) if (node->TabBar && window->WasActive) window->DockOrder = (short)DockNodeGetTabOrder(window); - if ((node->WantCloseAll || node->WantCloseTabId == window->ID) && p_open != NULL) + if ((node->WantCloseAll || node->WantCloseTabId == window->TabId) && p_open != NULL) *p_open = false; // Update ChildId to allow returning from Child to Parent with Escape @@ -16514,17 +17906,19 @@ void ImGui::BeginDockableDragDropTarget(ImGuiWindow* window) const bool do_preview = payload->IsPreview() || payload->IsDelivery(); if (do_preview && (node != NULL || dock_into_floating_window)) { + // If we have a non-leaf node it means we are hovering the border of a parent node, in which case only outer markers will appear. ImGuiDockPreviewData split_inner; ImGuiDockPreviewData split_outer; ImGuiDockPreviewData* split_data = &split_inner; - if (node && (node->ParentNode || node->IsCentralNode())) + if (node && (node->ParentNode || node->IsCentralNode() || !node->IsLeafNode())) if (ImGuiDockNode* root_node = DockNodeGetRootNode(node)) { - DockNodePreviewDockSetup(window, root_node, payload_window, &split_outer, is_explicit_target, true); + DockNodePreviewDockSetup(window, root_node, payload_window, NULL, &split_outer, is_explicit_target, true); if (split_outer.IsSplitDirExplicit) split_data = &split_outer; } - DockNodePreviewDockSetup(window, node, payload_window, &split_inner, is_explicit_target, false); + if (!node || node->IsLeafNode()) + DockNodePreviewDockSetup(window, node, payload_window, NULL, &split_inner, is_explicit_target, false); if (split_data == &split_outer) split_inner.IsDropAllowed = false; @@ -16556,7 +17950,7 @@ void ImGui::BeginDockableDragDropTarget(ImGuiWindow* window) static void ImGui::DockSettingsRenameNodeReferences(ImGuiID old_node_id, ImGuiID new_node_id) { ImGuiContext& g = *GImGui; - IMGUI_DEBUG_LOG_DOCKING("DockSettingsRenameNodeReferences: from 0x%08X -> to 0x%08X\n", old_node_id, new_node_id); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSettingsRenameNodeReferences: from 0x%08X -> to 0x%08X\n", old_node_id, new_node_id); for (int window_n = 0; window_n < g.Windows.Size; window_n++) { ImGuiWindow* window = g.Windows[window_n]; @@ -16894,17 +18288,63 @@ static void SetClipboardTextFn_DefaultImpl(void*, const char* text) #endif +// Win32 API IME support (for Asian languages, etc.) +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) + +#include +#ifdef _MSC_VER +#pragma comment(lib, "imm32") +#endif + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data) +{ + // Notify OS Input Method Editor of text input position + HWND hwnd = (HWND)viewport->PlatformHandleRaw; +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (hwnd == 0) + hwnd = (HWND)ImGui::GetIO().ImeWindowHandle; +#endif + if (hwnd == 0) + return; + + //::ImmAssociateContextEx(hwnd, NULL, data->WantVisible ? IACE_DEFAULT : 0); + if (HIMC himc = ::ImmGetContext(hwnd)) + { + COMPOSITIONFORM composition_form = {}; + composition_form.ptCurrentPos.x = (LONG)(data->InputPos.x - viewport->Pos.x); + composition_form.ptCurrentPos.y = (LONG)(data->InputPos.y - viewport->Pos.y); + composition_form.dwStyle = CFS_FORCE_POSITION; + ::ImmSetCompositionWindow(himc, &composition_form); + CANDIDATEFORM candidate_form = {}; + candidate_form.dwStyle = CFS_CANDIDATEPOS; + candidate_form.ptCurrentPos.x = (LONG)(data->InputPos.x - viewport->Pos.x); + candidate_form.ptCurrentPos.y = (LONG)(data->InputPos.y - viewport->Pos.y); + ::ImmSetCandidateWindow(himc, &candidate_form); + ::ImmReleaseContext(hwnd, himc); + } +} + +#else + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport*, ImGuiPlatformImeData*) {} + +#endif + //----------------------------------------------------------------------------- // [SECTION] METRICS/DEBUGGER WINDOW //----------------------------------------------------------------------------- // - RenderViewportThumbnail() [Internal] // - RenderViewportsThumbnails() [Internal] +// - DebugTextEncoding() // - MetricsHelpMarker() [Internal] +// - ShowFontAtlas() [Internal] // - ShowMetricsWindow() // - DebugNodeColumns() [Internal] // - DebugNodeDockNode() [Internal] // - DebugNodeDrawList() [Internal] // - DebugNodeDrawCmdShowMeshAndBoundingBox() [Internal] +// - DebugNodeFont() [Internal] +// - DebugNodeFontGlyph() [Internal] // - DebugNodeStorage() [Internal] // - DebugNodeTabBar() [Internal] // - DebugNodeViewport() [Internal] @@ -16914,7 +18354,7 @@ static void SetClipboardTextFn_DefaultImpl(void*, const char* text) // - DebugNodeWindowsListByBeginStackParent() [Internal] //----------------------------------------------------------------------------- -#ifndef IMGUI_DISABLE_METRICS_WINDOW +#ifndef IMGUI_DISABLE_DEBUG_TOOLS void ImGui::DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb) { @@ -16971,16 +18411,52 @@ static void RenderViewportsThumbnails() static int IMGUI_CDECL ViewportComparerByFrontMostStampCount(const void* lhs, const void* rhs) { - const ImGuiViewportP* a = *(const ImGuiViewportP* const *)lhs; - const ImGuiViewportP* b = *(const ImGuiViewportP* const *)rhs; + const ImGuiViewportP* a = *(const ImGuiViewportP* const*)lhs; + const ImGuiViewportP* b = *(const ImGuiViewportP* const*)rhs; return b->LastFrontMostStampCount - a->LastFrontMostStampCount; } +// Helper tool to diagnose between text encoding issues and font loading issues. Pass your UTF-8 string and verify that there are correct. +void ImGui::DebugTextEncoding(const char* str) +{ + Text("Text: \"%s\"", str); + if (!BeginTable("list", 4, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit)) + return; + TableSetupColumn("Offset"); + TableSetupColumn("UTF-8"); + TableSetupColumn("Glyph"); + TableSetupColumn("Codepoint"); + TableHeadersRow(); + for (const char* p = str; *p != 0; ) + { + unsigned int c; + const int c_utf8_len = ImTextCharFromUtf8(&c, p, NULL); + TableNextColumn(); + Text("%d", (int)(p - str)); + TableNextColumn(); + for (int byte_index = 0; byte_index < c_utf8_len; byte_index++) + { + if (byte_index > 0) + SameLine(); + Text("0x%02X", (int)(unsigned char)p[byte_index]); + } + TableNextColumn(); + if (GetFont()->FindGlyphNoFallback((ImWchar)c)) + TextUnformatted(p, p + c_utf8_len); + else + TextUnformatted((c == IM_UNICODE_CODEPOINT_INVALID) ? "[invalid]" : "[missing]"); + TableNextColumn(); + Text("U+%04X", (int)c); + p += c_utf8_len; + } + EndTable(); +} + // Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds. static void MetricsHelpMarker(const char* desc) { ImGui::TextDisabled("(?)"); - if (ImGui::IsItemHovered()) + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) { ImGui::BeginTooltip(); ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); @@ -16990,15 +18466,32 @@ static void MetricsHelpMarker(const char* desc) } } -#ifndef IMGUI_DISABLE_DEMO_WINDOWS -namespace ImGui { void ShowFontAtlas(ImFontAtlas* atlas); } -#endif +// [DEBUG] List fonts in a font atlas and display its texture +void ImGui::ShowFontAtlas(ImFontAtlas* atlas) +{ + for (int i = 0; i < atlas->Fonts.Size; i++) + { + ImFont* font = atlas->Fonts[i]; + PushID(font); + DebugNodeFont(font); + PopID(); + } + if (TreeNode("Atlas texture", "Atlas texture (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) + { + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); + ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); + Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), tint_col, border_col); + TreePop(); + } +} void ImGui::ShowMetricsWindow(bool* p_open) { ImGuiContext& g = *GImGui; ImGuiIO& io = g.IO; ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + if (cfg->ShowDebugLog) + ShowDebugLogWindow(&cfg->ShowDebugLog); if (cfg->ShowStackTool) ShowStackToolWindow(&cfg->ShowStackTool); @@ -17031,19 +18524,20 @@ void ImGui::ShowMetricsWindow(bool* p_open) { static ImRect GetTableRect(ImGuiTable* table, int rect_type, int n) { + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); // Always using last submitted instance if (rect_type == TRT_OuterRect) { return table->OuterRect; } else if (rect_type == TRT_InnerRect) { return table->InnerRect; } else if (rect_type == TRT_WorkRect) { return table->WorkRect; } else if (rect_type == TRT_HostClipRect) { return table->HostClipRect; } else if (rect_type == TRT_InnerClipRect) { return table->InnerClipRect; } else if (rect_type == TRT_BackgroundClipRect) { return table->BgClipRect; } - else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table->LastOuterHeight); } + else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table_instance->LastOuterHeight); } else if (rect_type == TRT_ColumnsWorkRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->WorkRect.Min.y, c->WorkMaxX, table->WorkRect.Max.y); } else if (rect_type == TRT_ColumnsClipRect) { ImGuiTableColumn* c = &table->Columns[n]; return c->ClipRect; } - else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table->LastFirstRowHeight); } // Note: y1/y2 not always accurate - else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table->LastFirstRowHeight); } - else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table->LastFirstRowHeight); } - else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table->LastFirstRowHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } + else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } // Note: y1/y2 not always accurate + else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } + else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } + else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } IM_ASSERT(0); return ImRect(); } @@ -17066,8 +18560,32 @@ void ImGui::ShowMetricsWindow(bool* p_open) // Tools if (TreeNode("Tools")) { + bool show_encoding_viewer = TreeNode("UTF-8 Encoding viewer"); + SameLine(); + MetricsHelpMarker("You can also call ImGui::DebugTextEncoding() from your code with a given string to test that your UTF-8 encoding settings are correct."); + if (show_encoding_viewer) + { + static char buf[100] = ""; + SetNextItemWidth(-FLT_MIN); + InputText("##Text", buf, IM_ARRAYSIZE(buf)); + if (buf[0] != 0) + DebugTextEncoding(buf); + TreePop(); + } + + // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. + if (Checkbox("Show Item Picker", &g.DebugItemPickerActive) && g.DebugItemPickerActive) + DebugStartItemPicker(); + SameLine(); + MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); + + // Stack Tool is your best friend! + Checkbox("Show Debug Log", &cfg->ShowDebugLog); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowDebugLogWindow() from your code."); + // Stack Tool is your best friend! - Checkbox("Show stack tool", &cfg->ShowStackTool); + Checkbox("Show Stack Tool", &cfg->ShowStackTool); SameLine(); MetricsHelpMarker("You can also call ImGui::ShowStackToolWindow() from your code."); @@ -17133,12 +18651,6 @@ void ImGui::ShowMetricsWindow(bool* p_open) } } - // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. - if (Button("Item Picker..")) - DebugStartItemPicker(); - SameLine(); - MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); - TreePop(); } @@ -17212,7 +18724,8 @@ void ImGui::ShowMetricsWindow(bool* p_open) TreePop(); } - if (TreeNode("Inferred order (front-to-back)")) + BulletText("MouseViewport: 0x%08X (UserHovered 0x%08X, LastHovered 0x%08X)", g.MouseViewport ? g.MouseViewport->ID : 0, g.IO.MouseHoveredViewport, g.MouseLastHoveredViewport ? g.MouseLastHoveredViewport->ID : 0); + if (TreeNode("Inferred Z order (front-to-back)")) { static ImVector viewports; viewports.resize(g.Viewports.Size); @@ -17234,8 +18747,12 @@ void ImGui::ShowMetricsWindow(bool* p_open) { for (int i = 0; i < g.OpenPopupStack.Size; i++) { - ImGuiWindow* window = g.OpenPopupStack[i].Window; - BulletText("PopupID: %08x, Window: '%s'%s%s", g.OpenPopupStack[i].PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? " ChildWindow" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? " ChildMenu" : ""); + // As it's difficult to interact with tree nodes while popups are open, we display everything inline. + const ImGuiPopupData* popup_data = &g.OpenPopupStack[i]; + ImGuiWindow* window = popup_data->Window; + BulletText("PopupID: %08x, Window: '%s' (%s%s), BackupNavWindow '%s', ParentWindow '%s'", + popup_data->PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? "Child;" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? "Menu;" : "", + popup_data->BackupNavWindow ? popup_data->BackupNavWindow->Name : "NULL", window && window->ParentWindow ? window->ParentWindow->Name : "NULL"); } TreePop(); } @@ -17263,14 +18780,19 @@ void ImGui::ShowMetricsWindow(bool* p_open) } // Details for Fonts -#ifndef IMGUI_DISABLE_DEMO_WINDOWS ImFontAtlas* atlas = g.IO.Fonts; if (TreeNode("Fonts", "Fonts (%d)", atlas->Fonts.Size)) { ShowFontAtlas(atlas); TreePop(); } -#endif + + // Details for InputText + if (TreeNode("InputText")) + { + DebugNodeInputTextState(&g.InputTextState); + TreePop(); + } // Details for Docking #ifdef IMGUI_HAS_DOCK @@ -17362,35 +18884,74 @@ void ImGui::ShowMetricsWindow(bool* p_open) TreePop(); } - // Misc Details - if (TreeNode("Internal state")) + if (TreeNode("Key Owners & Shortcut Routing")) { - const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad", "Nav", "Clipboard" }; IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT); + TextUnformatted("Key Owners:"); + if (BeginListBox("##owners", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 8))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + continue; + Text("%s: 0x%08X%s", GetKeyName(key), owner_data->OwnerCurr, + owner_data->LockUntilRelease ? " LockUntilRelease" : owner_data->LockThisFrame ? " LockThisFrame" : ""); + DebugLocateItemOnHover(owner_data->OwnerCurr); + } + EndListBox(); + } + TextUnformatted("Shortcut Routing:"); + if (BeginListBox("##routes", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 8))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; ) + { + char key_chord_name[64]; + ImGuiKeyRoutingData* routing_data = &rt->Entries[idx]; + GetKeyChordName(key | routing_data->Mods, key_chord_name, IM_ARRAYSIZE(key_chord_name)); + Text("%s: 0x%08X", key_chord_name, routing_data->RoutingCurr); + DebugLocateItemOnHover(routing_data->RoutingCurr); + idx = routing_data->NextEntryIndex; + } + } + EndListBox(); + } + Text("(ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: 0x%X)", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + TreePop(); + } + if (TreeNode("Internal state")) + { Text("WINDOWING"); Indent(); Text("HoveredWindow: '%s'", g.HoveredWindow ? g.HoveredWindow->Name : "NULL"); Text("HoveredWindow->Root: '%s'", g.HoveredWindow ? g.HoveredWindow->RootWindowDockTree->Name : "NULL"); Text("HoveredWindowUnderMovingWindow: '%s'", g.HoveredWindowUnderMovingWindow ? g.HoveredWindowUnderMovingWindow->Name : "NULL"); - Text("HoveredDockNode: 0x%08X", g.HoveredDockNode ? g.HoveredDockNode->ID : 0); + Text("HoveredDockNode: 0x%08X", g.DebugHoveredDockNode ? g.DebugHoveredDockNode->ID : 0); Text("MovingWindow: '%s'", g.MovingWindow ? g.MovingWindow->Name : "NULL"); Text("MouseViewport: 0x%08X (UserHovered 0x%08X, LastHovered 0x%08X)", g.MouseViewport->ID, g.IO.MouseHoveredViewport, g.MouseLastHoveredViewport ? g.MouseLastHoveredViewport->ID : 0); Unindent(); Text("ITEMS"); Indent(); - Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, input_source_names[g.ActiveIdSource]); + Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, GetInputSourceName(g.ActiveIdSource)); + DebugLocateItemOnHover(g.ActiveId); Text("ActiveIdWindow: '%s'", g.ActiveIdWindow ? g.ActiveIdWindow->Name : "NULL"); - Text("ActiveIdUsing: Wheel: %d, NavDirMask: %X, NavInputMask: %X, KeyInputMask: %llX", g.ActiveIdUsingMouseWheel, g.ActiveIdUsingNavDirMask, g.ActiveIdUsingNavInputMask, g.ActiveIdUsingKeyInputMask); + Text("ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: %X", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); Text("HoveredId: 0x%08X (%.2f sec), AllowOverlap: %d", g.HoveredIdPreviousFrame, g.HoveredIdTimer, g.HoveredIdAllowOverlap); // Not displaying g.HoveredId as it is update mid-frame + Text("HoverDelayId: 0x%08X, Timer: %.2f, ClearTimer: %.2f", g.HoverDelayId, g.HoverDelayTimer, g.HoverDelayClearTimer); Text("DragDrop: %d, SourceId = 0x%08X, Payload \"%s\" (%d bytes)", g.DragDropActive, g.DragDropPayload.SourceId, g.DragDropPayload.DataType, g.DragDropPayload.DataSize); + DebugLocateItemOnHover(g.DragDropPayload.SourceId); Unindent(); Text("NAV,FOCUS"); Indent(); Text("NavWindow: '%s'", g.NavWindow ? g.NavWindow->Name : "NULL"); Text("NavId: 0x%08X, NavLayer: %d", g.NavId, g.NavLayer); - Text("NavInputSource: %s", input_source_names[g.NavInputSource]); + DebugLocateItemOnHover(g.NavId); + Text("NavInputSource: %s", GetInputSourceName(g.NavInputSource)); Text("NavActive: %d, NavVisible: %d", g.IO.NavActive, g.IO.NavVisible); Text("NavActivateId/DownId/PressedId/InputId: %08X/%08X/%08X/%08X", g.NavActivateId, g.NavActivateDownId, g.NavActivatePressedId, g.NavActivateInputId); Text("NavActivateFlags: %04X", g.NavActivateFlags); @@ -17456,11 +19017,11 @@ void ImGui::ShowMetricsWindow(bool* p_open) #ifdef IMGUI_HAS_DOCK // Overlay: Display Docking info - if (cfg->ShowDockingNodes && g.IO.KeyCtrl && g.HoveredDockNode) + if (cfg->ShowDockingNodes && g.IO.KeyCtrl && g.DebugHoveredDockNode) { char buf[64] = ""; char* p = buf; - ImGuiDockNode* node = g.HoveredDockNode; + ImGuiDockNode* node = g.DebugHoveredDockNode; ImDrawList* overlay_draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "DockId: %X%s\n", node->ID, node->IsCentralNode() ? " *CentralNode*" : ""); p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "WindowClass: %08X\n", node->WindowClass.ClassId); @@ -17477,25 +19038,6 @@ void ImGui::ShowMetricsWindow(bool* p_open) End(); } -// [DEBUG] List fonts in a font atlas and display its texture -void ImGui::ShowFontAtlas(ImFontAtlas* atlas) -{ - for (int i = 0; i < atlas->Fonts.Size; i++) - { - ImFont* font = atlas->Fonts[i]; - PushID(font); - DebugNodeFont(font); - PopID(); - } - if (TreeNode("Atlas texture", "Atlas texture (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) - { - ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); - ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); - Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), tint_col, border_col); - TreePop(); - } -} - // [DEBUG] Display contents of Columns void ImGui::DebugNodeColumns(ImGuiOldColumns* columns) { @@ -17543,10 +19085,11 @@ void ImGui::DebugNodeDockNode(ImGuiDockNode* node, const char* label) const bool is_active = (g.FrameCount - node->LastFrameActive < 2); // Submitted if (!is_alive) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } bool open; + ImGuiTreeNodeFlags tree_node_flags = node->IsFocused ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; if (node->Windows.Size > 0) - open = TreeNode((void*)(intptr_t)node->ID, "%s 0x%04X%s: %d windows (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", node->Windows.Size, node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); + open = TreeNodeEx((void*)(intptr_t)node->ID, tree_node_flags, "%s 0x%04X%s: %d windows (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", node->Windows.Size, node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); else - open = TreeNode((void*)(intptr_t)node->ID, "%s 0x%04X%s: %s split (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", (node->SplitAxis == ImGuiAxis_X) ? "horizontal" : (node->SplitAxis == ImGuiAxis_Y) ? "vertical" : "n/a", node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); + open = TreeNodeEx((void*)(intptr_t)node->ID, tree_node_flags, "%s 0x%04X%s: %s (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", (node->SplitAxis == ImGuiAxis_X) ? "horizontal split" : (node->SplitAxis == ImGuiAxis_Y) ? "vertical split" : "empty", node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); if (!is_alive) { PopStyleColor(); } if (is_active && IsItemHovered()) if (ImGuiWindow* window = node->HostWindow ? node->HostWindow : node->VisibleWindow) @@ -17560,10 +19103,10 @@ void ImGui::DebugNodeDockNode(ImGuiDockNode* node, const char* label) DebugNodeWindow(node->HostWindow, "HostWindow"); DebugNodeWindow(node->VisibleWindow, "VisibleWindow"); BulletText("SelectedTabID: 0x%08X, LastFocusedNodeID: 0x%08X", node->SelectedTabId, node->LastFocusedNodeId); - BulletText("Misc:%s%s%s%s%s%s", + BulletText("Misc:%s%s%s%s%s%s%s", node->IsDockSpace() ? " IsDockSpace" : "", node->IsCentralNode() ? " IsCentralNode" : "", - is_alive ? " IsAlive" : "", is_active ? " IsActive" : "", + is_alive ? " IsAlive" : "", is_active ? " IsActive" : "", node->IsFocused ? " IsFocused" : "", node->WantLockSizeOnce ? " WantLockSizeOnce" : "", node->HasCentralNodeChild ? " HasCentralNodeChild" : ""); if (TreeNode("flags", "Flags Merged: 0x%04X, Local: 0x%04X, InWindows: 0x%04X, Shared: 0x%04X", node->MergedFlags, node->LocalFlags, node->LocalFlagsInWindows, node->SharedFlags)) @@ -17586,6 +19129,8 @@ void ImGui::DebugNodeDockNode(ImGuiDockNode* node, const char* label) DebugNodeDockNode(node->ChildNodes[1], "Child[1]"); if (node->TabBar) DebugNodeTabBar(node->TabBar, "TabBar"); + DebugNodeWindowsList(&node->Windows, "Windows"); + TreePop(); } } @@ -17789,17 +19334,13 @@ void ImGui::DebugNodeFont(ImFont* font) ImVec2 cell_p2(cell_p1.x + cell_size, cell_p1.y + cell_size); const ImFontGlyph* glyph = font->FindGlyphNoFallback((ImWchar)(base + n)); draw_list->AddRect(cell_p1, cell_p2, glyph ? IM_COL32(255, 255, 255, 100) : IM_COL32(255, 255, 255, 50)); - if (glyph) - font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); - if (glyph && IsMouseHoveringRect(cell_p1, cell_p2)) + if (!glyph) + continue; + font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); + if (IsMouseHoveringRect(cell_p1, cell_p2)) { BeginTooltip(); - Text("Codepoint: U+%04X", base + n); - Separator(); - Text("Visible: %d", glyph->Visible); - Text("AdvanceX: %.1f", glyph->AdvanceX); - Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); - Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); + DebugNodeFontGlyph(font, glyph); EndTooltip(); } } @@ -17811,6 +19352,16 @@ void ImGui::DebugNodeFont(ImFont* font) TreePop(); } +void ImGui::DebugNodeFontGlyph(ImFont*, const ImFontGlyph* glyph) +{ + Text("Codepoint: U+%04X", glyph->Codepoint); + Separator(); + Text("Visible: %d", glyph->Visible); + Text("AdvanceX: %.1f", glyph->AdvanceX); + Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); + Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); +} + // [DEBUG] Display contents of ImGuiStorage void ImGui::DebugNodeStorage(ImGuiStorage* storage, const char* label) { @@ -17859,7 +19410,7 @@ void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label) PushID(tab); if (SmallButton("<")) { TabBarQueueReorder(tab_bar, tab, -1); } SameLine(0, 2); if (SmallButton(">")) { TabBarQueueReorder(tab_bar, tab, +1); } SameLine(); - Text("%02d%c Tab 0x%08X '%s' Offset: %.1f, Width: %.1f/%.1f", + Text("%02d%c Tab 0x%08X '%s' Offset: %.2f, Width: %.2f/%.2f", tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID, (tab->Window || tab->NameOffset != -1) ? tab_bar->GetTabName(tab) : "???", tab->Offset, tab->Width, tab->ContentWidth); PopID(); } @@ -17936,13 +19487,10 @@ void ImGui::DebugNodeWindow(ImGuiWindow* window, const char* label) { ImRect r = window->NavRectRel[layer]; if (r.Min.x >= r.Max.y && r.Min.y >= r.Max.y) - { BulletText("NavLastIds[%d]: 0x%08X", layer, window->NavLastIds[layer]); - continue; - } - BulletText("NavLastIds[%d]: 0x%08X at +(%.1f,%.1f)(%.1f,%.1f)", layer, window->NavLastIds[layer], r.Min.x, r.Min.y, r.Max.x, r.Max.y); - if (IsItemHovered()) - GetForegroundDrawList(window)->AddRect(r.Min + window->Pos, r.Max + window->Pos, IM_COL32(255, 255, 0, 255)); + else + BulletText("NavLastIds[%d]: 0x%08X at +(%.1f,%.1f)(%.1f,%.1f)", layer, window->NavLastIds[layer], r.Min.x, r.Min.y, r.Max.x, r.Max.y); + DebugLocateItemOnHover(window->NavLastIds[layer]); } BulletText("NavLayersActiveMask: %X, NavLastChildNavWindow: %s", window->DC.NavLayersActiveMask, window->NavLastChildNavWindow ? window->NavLastChildNavWindow->Name : "NULL"); @@ -18003,10 +19551,128 @@ void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int wi } } +//----------------------------------------------------------------------------- +// [SECTION] DEBUG LOG WINDOW +//----------------------------------------------------------------------------- + +void ImGui::DebugLog(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + DebugLogV(fmt, args); + va_end(args); +} + +void ImGui::DebugLogV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + const int old_size = g.DebugLogBuf.size(); + g.DebugLogBuf.appendf("[%05d] ", g.FrameCount); + g.DebugLogBuf.appendfv(fmt, args); + if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTTY) + IMGUI_DEBUG_PRINTF("%s", g.DebugLogBuf.begin() + old_size); + g.DebugLogIndex.append(g.DebugLogBuf.c_str(), old_size, g.DebugLogBuf.size()); +} + +void ImGui::ShowDebugLogWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 12.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui Debug Log", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + AlignTextToFramePadding(); + Text("Log events:"); + SameLine(); CheckboxFlags("All", &g.DebugLogFlags, ImGuiDebugLogFlags_EventMask_); + SameLine(); CheckboxFlags("ActiveId", &g.DebugLogFlags, ImGuiDebugLogFlags_EventActiveId); + SameLine(); CheckboxFlags("Focus", &g.DebugLogFlags, ImGuiDebugLogFlags_EventFocus); + SameLine(); CheckboxFlags("Popup", &g.DebugLogFlags, ImGuiDebugLogFlags_EventPopup); + SameLine(); CheckboxFlags("Nav", &g.DebugLogFlags, ImGuiDebugLogFlags_EventNav); + SameLine(); CheckboxFlags("Clipper", &g.DebugLogFlags, ImGuiDebugLogFlags_EventClipper); + SameLine(); CheckboxFlags("IO", &g.DebugLogFlags, ImGuiDebugLogFlags_EventIO); + SameLine(); CheckboxFlags("Docking", &g.DebugLogFlags, ImGuiDebugLogFlags_EventDocking); + SameLine(); CheckboxFlags("Viewport", &g.DebugLogFlags, ImGuiDebugLogFlags_EventViewport); + + if (SmallButton("Clear")) + { + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + } + SameLine(); + if (SmallButton("Copy")) + SetClipboardText(g.DebugLogBuf.c_str()); + BeginChild("##log", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar); + + ImGuiListClipper clipper; + clipper.Begin(g.DebugLogIndex.size()); + while (clipper.Step()) + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_begin = g.DebugLogIndex.get_line_begin(g.DebugLogBuf.c_str(), line_no); + const char* line_end = g.DebugLogIndex.get_line_end(g.DebugLogBuf.c_str(), line_no); + TextUnformatted(line_begin, line_end); + ImRect text_rect = g.LastItemData.Rect; + if (IsItemHovered()) + for (const char* p = line_begin; p < line_end - 10; p++) + { + ImGuiID id = 0; + if (p[0] != '0' || (p[1] != 'x' && p[1] != 'X') || sscanf(p + 2, "%X", &id) != 1) + continue; + ImVec2 p0 = CalcTextSize(line_begin, p); + ImVec2 p1 = CalcTextSize(p, p + 10); + g.LastItemData.Rect = ImRect(text_rect.Min + ImVec2(p0.x, 0.0f), text_rect.Min + ImVec2(p0.x + p1.x, p1.y)); + if (IsMouseHoveringRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, true)) + DebugLocateItemOnHover(id); + p += 10; + } + } + if (GetScrollY() >= GetScrollMaxY()) + SetScrollHereY(1.0f); + EndChild(); + + End(); +} + //----------------------------------------------------------------------------- // [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) //----------------------------------------------------------------------------- +static const ImU32 DEBUG_LOCATE_ITEM_COLOR = IM_COL32(0, 255, 0, 255); // Green + +void ImGui::DebugLocateItem(ImGuiID target_id) +{ + ImGuiContext& g = *GImGui; + g.DebugLocateId = target_id; + g.DebugLocateFrames = 2; +} + +void ImGui::DebugLocateItemOnHover(ImGuiID target_id) +{ + if (target_id == 0 || !IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + return; + ImGuiContext& g = *GImGui; + DebugLocateItem(target_id); + GetForegroundDrawList(g.CurrentWindow)->AddRect(g.LastItemData.Rect.Min - ImVec2(3.0f, 3.0f), g.LastItemData.Rect.Max + ImVec2(3.0f, 3.0f), DEBUG_LOCATE_ITEM_COLOR); +} + +void ImGui::DebugLocateItemResolveWithLastItem() +{ + ImGuiContext& g = *GImGui; + ImGuiLastItemData item_data = g.LastItemData; + g.DebugLocateId = 0; + ImDrawList* draw_list = GetForegroundDrawList(g.CurrentWindow); + ImRect r = item_data.Rect; + r.Expand(3.0f); + ImVec2 p1 = g.IO.MousePos; + ImVec2 p2 = ImVec2((p1.x < r.Min.x) ? r.Min.x : (p1.x > r.Max.x) ? r.Max.x : p1.x, (p1.y < r.Min.y) ? r.Min.y : (p1.y > r.Max.y) ? r.Max.y : p1.y); + draw_list->AddRect(r.Min, r.Max, DEBUG_LOCATE_ITEM_COLOR); + draw_list->AddLine(p1, p2, DEBUG_LOCATE_ITEM_COLOR); +} + // [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. void ImGui::UpdateDebugToolItemPicker() { @@ -18017,18 +19683,26 @@ void ImGui::UpdateDebugToolItemPicker() const ImGuiID hovered_id = g.HoveredIdPreviousFrame; SetMouseCursor(ImGuiMouseCursor_Hand); - if (IsKeyPressedMap(ImGuiKey_Escape)) + if (IsKeyPressed(ImGuiKey_Escape)) g.DebugItemPickerActive = false; - if (IsMouseClicked(0) && hovered_id) + const bool change_mapping = g.IO.KeyMods == (ImGuiMod_Ctrl | ImGuiMod_Shift); + if (!change_mapping && IsMouseClicked(g.DebugItemPickerMouseButton) && hovered_id) { g.DebugItemPickerBreakId = hovered_id; g.DebugItemPickerActive = false; } - SetNextWindowBgAlpha(0.60f); + for (int mouse_button = 0; mouse_button < 3; mouse_button++) + if (change_mapping && IsMouseClicked(mouse_button)) + g.DebugItemPickerMouseButton = (ImU8)mouse_button; + SetNextWindowBgAlpha(0.70f); BeginTooltip(); Text("HoveredId: 0x%08X", hovered_id); Text("Press ESC to abort picking."); - TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click to break in debugger!"); + const char* mouse_button_names[] = { "Left", "Right", "Middle" }; + if (change_mapping) + Text("Remap w/ Ctrl+Shift: click anywhere to select new mouse button."); + else + TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click %s Button to break in debugger! (remap w/ Ctrl+Shift)", mouse_button_names[g.DebugItemPickerMouseButton]); EndTooltip(); } @@ -18080,7 +19754,7 @@ void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* dat ImGuiStackTool* tool = &g.DebugStackTool; // Step 0: stack query - // This assume that the ID was computed with the current ID stack, which tends to be the case for our widget. + // This assumes that the ID was computed with the current ID stack, which tends to be the case for our widget. if (tool->StackLevel == -1) { tool->StackLevel++; @@ -18097,27 +19771,44 @@ void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* dat ImGuiStackLevelInfo* info = &tool->Results[tool->StackLevel]; IM_ASSERT(info->ID == id && info->QueryFrameCount > 0); - int data_len; switch (data_type) { case ImGuiDataType_S32: ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%d", (int)(intptr_t)data_id); break; case ImGuiDataType_String: - data_len = data_id_end ? (int)((const char*)data_id_end - (const char*)data_id) : (int)strlen((const char*)data_id); - ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "\"%.*s\"", data_len, (const char*)data_id); + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%.*s", data_id_end ? (int)((const char*)data_id_end - (const char*)data_id) : (int)strlen((const char*)data_id), (const char*)data_id); break; case ImGuiDataType_Pointer: ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "(void*)0x%p", data_id); break; case ImGuiDataType_ID: - if (info->Desc[0] == 0) // PushOverrideID() is often used to avoid hashing twice, which would lead to 2 calls to DebugHookIdInfo(). We prioritize the first one. - ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "0x%08X [override]", id); + if (info->Desc[0] != 0) // PushOverrideID() is often used to avoid hashing twice, which would lead to 2 calls to DebugHookIdInfo(). We prioritize the first one. + return; + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "0x%08X [override]", id); break; default: IM_ASSERT(0); } info->QuerySuccess = true; + info->DataType = data_type; +} + +static int StackToolFormatLevelInfo(ImGuiStackTool* tool, int n, bool format_for_ui, char* buf, size_t buf_size) +{ + ImGuiStackLevelInfo* info = &tool->Results[n]; + ImGuiWindow* window = (info->Desc[0] == 0 && n == 0) ? ImGui::FindWindowByID(info->ID) : NULL; + if (window) // Source: window name (because the root ID don't call GetID() and so doesn't get hooked) + return ImFormatString(buf, buf_size, format_for_ui ? "\"%s\" [window]" : "%s", window->Name); + if (info->QuerySuccess) // Source: GetID() hooks (prioritize over ItemInfo() because we frequently use patterns like: PushID(str), Button("") where they both have same id) + return ImFormatString(buf, buf_size, (format_for_ui && info->DataType == ImGuiDataType_String) ? "\"%s\"" : "%s", info->Desc); + if (tool->StackLevel < tool->Results.Size) // Only start using fallback below when all queries are done, so during queries we don't flickering ??? markers. + return (*buf = 0); +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (const char* label = ImGuiTestEngine_FindItemDebugLabel(GImGui, info->ID)) // Source: ImGuiTestEngine's ItemInfo() + return ImFormatString(buf, buf_size, format_for_ui ? "??? \"%s\"" : "%s", label); +#endif + return ImFormatString(buf, buf_size, "???"); } // Stack Tool: Display UI @@ -18133,6 +19824,7 @@ void ImGui::ShowStackToolWindow(bool* p_open) } // Display hovered/active status + ImGuiStackTool* tool = &g.DebugStackTool; const ImGuiID hovered_id = g.HoveredIdPreviousFrame; const ImGuiID active_id = g.ActiveId; #ifdef IMGUI_ENABLE_TEST_ENGINE @@ -18143,8 +19835,33 @@ void ImGui::ShowStackToolWindow(bool* p_open) SameLine(); MetricsHelpMarker("Hover an item with the mouse to display elements of the ID Stack leading to the item's final ID.\nEach level of the stack correspond to a PushID() call.\nAll levels of the stack are hashed together to make the final ID of a widget (ID displayed at the bottom level of the stack).\nRead FAQ entry about the ID stack for details."); + // CTRL+C to copy path + const float time_since_copy = (float)g.Time - tool->CopyToClipboardLastTime; + Checkbox("Ctrl+C: copy path to clipboard", &tool->CopyToClipboardOnCtrlC); + SameLine(); + TextColored((time_since_copy >= 0.0f && time_since_copy < 0.75f && ImFmod(time_since_copy, 0.25f) < 0.25f * 0.5f) ? ImVec4(1.f, 1.f, 0.3f, 1.f) : ImVec4(), "*COPIED*"); + if (tool->CopyToClipboardOnCtrlC && IsKeyDown(ImGuiMod_Ctrl) && IsKeyPressed(ImGuiKey_C)) + { + tool->CopyToClipboardLastTime = (float)g.Time; + char* p = g.TempBuffer.Data; + char* p_end = p + g.TempBuffer.Size; + for (int stack_n = 0; stack_n < tool->Results.Size && p + 3 < p_end; stack_n++) + { + *p++ = '/'; + char level_desc[256]; + StackToolFormatLevelInfo(tool, stack_n, false, level_desc, IM_ARRAYSIZE(level_desc)); + for (int n = 0; level_desc[n] && p + 2 < p_end; n++) + { + if (level_desc[n] == '/') + *p++ = '\\'; + *p++ = level_desc[n]; + } + } + *p = '\0'; + SetClipboardText(g.TempBuffer.Data); + } + // Display decorated stack - ImGuiStackTool* tool = &g.DebugStackTool; tool->LastActiveFrame = g.FrameCount; if (tool->Results.Size > 0 && BeginTable("##table", 3, ImGuiTableFlags_Borders)) { @@ -18158,23 +19875,9 @@ void ImGui::ShowStackToolWindow(bool* p_open) ImGuiStackLevelInfo* info = &tool->Results[n]; TableNextColumn(); Text("0x%08X", (n > 0) ? tool->Results[n - 1].ID : 0); - TableNextColumn(); - ImGuiWindow* window = (info->Desc[0] == 0 && n == 0) ? FindWindowByID(info->ID) : NULL; - if (window) // Source: window name (because the root ID don't call GetID() and so doesn't get hooked) - Text("\"%s\" [window]", window->Name); - else if (info->QuerySuccess) // Source: GetID() hooks (prioritize over ItemInfo() because we frequently use patterns like: PushID(str), Button("") where they both have same id) - TextUnformatted(info->Desc); - else if (tool->StackLevel >= tool->Results.Size) // Only start using fallback below when all queries are done, so during queries we don't flickering ??? markers. - { -#ifdef IMGUI_ENABLE_TEST_ENGINE - if (const char* label = ImGuiTestEngine_FindItemDebugLabel(&g, info->ID)) // Source: ImGuiTestEngine's ItemInfo() - Text("??? \"%s\"", label); - else -#endif - TextUnformatted("???"); - } - + StackToolFormatLevelInfo(tool, n, true, g.TempBuffer.Data, g.TempBuffer.Size); + TextUnformatted(g.TempBuffer.Data); TableNextColumn(); Text("0x%08X", info->ID); if (n == tool->Results.Size - 1) @@ -18200,12 +19903,15 @@ void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings*) {} void ImGui::DebugNodeWindowsList(ImVector*, const char*) {} void ImGui::DebugNodeViewport(ImGuiViewportP*) {} +void ImGui::DebugLog(const char*, ...) {} +void ImGui::DebugLogV(const char*, va_list) {} +void ImGui::ShowDebugLogWindow(bool*) {} void ImGui::ShowStackToolWindow(bool*) {} void ImGui::DebugHookIdInfo(ImGuiID, ImGuiDataType, const void*, const void*) {} void ImGui::UpdateDebugToolItemPicker() {} void ImGui::UpdateDebugToolStackQueries() {} -#endif // #ifndef IMGUI_DISABLE_METRICS_WINDOW +#endif // #ifndef IMGUI_DISABLE_DEBUG_TOOLS //----------------------------------------------------------------------------- diff --git a/imgui-sys/third-party/imgui-docking/imgui/imgui.h b/imgui-sys/third-party/imgui-docking/imgui/imgui.h index ceb3b086d..1004ac07d 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imgui.h +++ b/imgui-sys/third-party/imgui-docking/imgui/imgui.h @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (headers) // Help: @@ -11,7 +11,7 @@ // - FAQ http://dearimgui.org/faq // - Homepage & latest https://github.com/ocornut/imgui // - Releases & changelog https://github.com/ocornut/imgui/releases -// - Gallery https://github.com/ocornut/imgui/issues/4451 (please post your screenshots/video there!) +// - Gallery https://github.com/ocornut/imgui/issues/5243 (please post your screenshots/video there!) // - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) // - Glossary https://github.com/ocornut/imgui/wiki/Glossary // - Issues & support https://github.com/ocornut/imgui/issues @@ -20,6 +20,14 @@ // - For first-time users having issues compiling/linking/running or issues loading fonts: // please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. +// Library Version +// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM > 12345') +#define IMGUI_VERSION "1.89.1" +#define IMGUI_VERSION_NUM 18910 +#define IMGUI_HAS_TABLE +#define IMGUI_HAS_VIEWPORT // Viewport WIP branch +#define IMGUI_HAS_DOCK // Docking WIP branch + /* Index of this file: @@ -35,20 +43,19 @@ Index of this file: // [SECTION] Drawing API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawFlags, ImDrawListFlags, ImDrawList, ImDrawData) // [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) // [SECTION] Viewports (ImGuiViewportFlags, ImGuiViewport) -// [SECTION] Platform interface for multi-viewport support (ImGuiPlatformIO, ImGuiPlatformMonitor) +// [SECTION] Platform Dependent Interfaces (ImGuiPlatformIO, ImGuiPlatformMonitor, ImGuiPlatformImeData) // [SECTION] Obsolete functions and types */ #pragma once -// Configuration file with compile-time options (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system') +// Configuration file with compile-time options +// (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system') #ifdef IMGUI_USER_CONFIG #include IMGUI_USER_CONFIG #endif -#if !defined(IMGUI_DISABLE_INCLUDE_IMCONFIG_H) || defined(IMGUI_INCLUDE_IMCONFIG_H) #include "imconfig.h" -#endif #ifndef IMGUI_DISABLE @@ -62,15 +69,6 @@ Index of this file: #include // ptrdiff_t, NULL #include // memset, memmove, memcpy, strlen, strchr, strcpy, strcmp -// Version -// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens) -#define IMGUI_VERSION "1.86" -#define IMGUI_VERSION_NUM 18600 -#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) -#define IMGUI_HAS_TABLE -#define IMGUI_HAS_VIEWPORT // Viewport WIP branch -#define IMGUI_HAS_DOCK // Docking WIP branch - // Define attributes of all API symbols declarations (e.g. for DLL under Windows) // IMGUI_API is used for core imgui functions, IMGUI_IMPL_API is used for the default backends files (imgui_impl_xxx.h) // Using dear imgui via a shared library is not recommended, because we don't guarantee backward nor forward ABI compatibility (also function call overhead, as dear imgui is a call-heavy API) @@ -88,11 +86,8 @@ Index of this file: #endif #define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) // Size of a static C-style array. Don't use on pointers! #define IM_UNUSED(_VAR) ((void)(_VAR)) // Used to silence "unused variable warnings". Often useful as asserts may be stripped out from final builds. -#if (__cplusplus >= 201100) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201100) #define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // Offset of _MEMBER within _TYPE. Standardized as offsetof() in C++11 -#else -#define IM_OFFSETOF(_TYPE,_MEMBER) ((size_t)&(((_TYPE*)0)->_MEMBER)) // Offset of _MEMBER within _TYPE. Old style macro. -#endif +#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) // Helper Macros - IM_FMTARGS, IM_FMTLIST: Apply printf-style warnings to our formatting functions. #if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__) @@ -107,7 +102,7 @@ Index of this file: #endif // Disable some of MSVC most aggressive Debug runtime checks in function header/footer (used in some simple/low-level functions) -#if defined(_MSC_VER) && !defined(__clang__) && !defined(IMGUI_DEBUG_PARANOID) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID) #define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off)) #define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop)) #else @@ -154,11 +149,13 @@ struct ImColor; // Helper functions to create a color that c struct ImGuiContext; // Dear ImGui context (opaque structure, unless including imgui_internal.h) struct ImGuiIO; // Main configuration and I/O between your application and ImGui struct ImGuiInputTextCallbackData; // Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use) +struct ImGuiKeyData; // Storage for ImGuiIO and IsKeyDown(), IsKeyPressed() etc functions. struct ImGuiListClipper; // Helper to manually clip large list of items struct ImGuiOnceUponAFrame; // Helper for running a block of code not more than once a frame struct ImGuiPayload; // User data payload for drag and drop operations struct ImGuiPlatformIO; // Multi-viewport support: interface for Platform/Renderer backends + viewports to render struct ImGuiPlatformMonitor; // Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning popups and tooltips to avoid them straddling monitors +struct ImGuiPlatformImeData; // Platform IME data for io.SetPlatformImeDataFn() function. struct ImGuiSizeCallbackData; // Callback data when using SetNextWindowSizeConstraints() (rare/advanced use) struct ImGuiStorage; // Helper for key->value storage struct ImGuiStyle; // Runtime data for styling/colors @@ -169,21 +166,26 @@ struct ImGuiTextFilter; // Helper to parse and apply text filters (e struct ImGuiViewport; // A Platform Window (always 1 unless multi-viewport are enabled. One per platform window to output to). In the future may represent Platform Monitor struct ImGuiWindowClass; // Window class (rare/advanced uses: provide hints to the platform backend via altered viewport flags and parent/child info) -// Enums/Flags (declared as int for compatibility with old C++, to allow using as flags without overhead, and to not pollute the top of this file) +// Enumerations +// - We don't use strongly typed enums much because they add constraints (can't extend in private code, can't store typed in bit fields, extra casting on iteration) // - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! -// In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. // With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +enum ImGuiKey : int; // -> enum ImGuiKey // Enum: A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) typedef int ImGuiCol; // -> enum ImGuiCol_ // Enum: A color identifier for styling typedef int ImGuiCond; // -> enum ImGuiCond_ // Enum: A condition for many Set*() functions typedef int ImGuiDataType; // -> enum ImGuiDataType_ // Enum: A primary data type typedef int ImGuiDir; // -> enum ImGuiDir_ // Enum: A cardinal direction -typedef int ImGuiKey; // -> enum ImGuiKey_ // Enum: A key identifier (ImGui-side enum) -typedef int ImGuiNavInput; // -> enum ImGuiNavInput_ // Enum: An input identifier for navigation typedef int ImGuiMouseButton; // -> enum ImGuiMouseButton_ // Enum: A mouse button identifier (0=left, 1=right, 2=middle) -typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor identifier +typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor shape typedef int ImGuiSortDirection; // -> enum ImGuiSortDirection_ // Enum: A sorting direction (ascending or descending) typedef int ImGuiStyleVar; // -> enum ImGuiStyleVar_ // Enum: A variable identifier for styling typedef int ImGuiTableBgTarget; // -> enum ImGuiTableBgTarget_ // Enum: A color target for TableSetBgColor() + +// Flags (declared as int for compatibility with old C++, to allow using as flags without overhead, and to not pollute the top of this file) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. typedef int ImDrawFlags; // -> enum ImDrawFlags_ // Flags: for ImDrawList functions typedef int ImDrawListFlags; // -> enum ImDrawListFlags_ // Flags: for ImDrawList instance typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build @@ -197,7 +199,7 @@ typedef int ImGuiDragDropFlags; // -> enum ImGuiDragDropFlags_ // Flags: f typedef int ImGuiFocusedFlags; // -> enum ImGuiFocusedFlags_ // Flags: for IsWindowFocused() typedef int ImGuiHoveredFlags; // -> enum ImGuiHoveredFlags_ // Flags: for IsItemHovered(), IsWindowHovered() etc. typedef int ImGuiInputTextFlags; // -> enum ImGuiInputTextFlags_ // Flags: for InputText(), InputTextMultiline() -typedef int ImGuiKeyModFlags; // -> enum ImGuiKeyModFlags_ // Flags: for io.KeyMods (Ctrl/Shift/Alt/Super) +typedef int ImGuiKeyChord; // -> ImGuiKey | ImGuiMod_XXX // Flags: for storage only for now: an ImGuiKey optionally OR-ed with one or more ImGuiMod_XXX values. typedef int ImGuiPopupFlags; // -> enum ImGuiPopupFlags_ // Flags: for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() typedef int ImGuiSelectableFlags; // -> enum ImGuiSelectableFlags_ // Flags: for Selectable() typedef int ImGuiSliderFlags; // -> enum ImGuiSliderFlags_ // Flags: for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. @@ -232,17 +234,8 @@ typedef signed short ImS16; // 16-bit signed integer typedef unsigned short ImU16; // 16-bit unsigned integer typedef signed int ImS32; // 32-bit signed integer == int typedef unsigned int ImU32; // 32-bit unsigned integer (often used to store packed colors) -#if defined(_MSC_VER) && !defined(__clang__) -typedef signed __int64 ImS64; // 64-bit signed integer (pre and post C++11 with Visual Studio) -typedef unsigned __int64 ImU64; // 64-bit unsigned integer (pre and post C++11 with Visual Studio) -#elif (defined(__clang__) || defined(__GNUC__)) && (__cplusplus < 201100) -#include -typedef int64_t ImS64; // 64-bit signed integer (pre C++11) -typedef uint64_t ImU64; // 64-bit unsigned integer (pre C++11) -#else -typedef signed long long ImS64; // 64-bit signed integer (post C++11) -typedef unsigned long long ImU64; // 64-bit unsigned integer (post C++11) -#endif +typedef signed long long ImS64; // 64-bit signed integer +typedef unsigned long long ImU64; // 64-bit unsigned integer // Character types // (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) @@ -266,8 +259,8 @@ IM_MSVC_RUNTIME_CHECKS_OFF struct ImVec2 { float x, y; - ImVec2() { x = y = 0.0f; } - ImVec2(float _x, float _y) { x = _x; y = _y; } + constexpr ImVec2() : x(0.0f), y(0.0f) { } + constexpr ImVec2(float _x, float _y) : x(_x), y(_y) { } float operator[] (size_t idx) const { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. float& operator[] (size_t idx) { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. #ifdef IM_VEC2_CLASS_EXTRA @@ -278,9 +271,9 @@ struct ImVec2 // ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type] struct ImVec4 { - float x, y, z, w; - ImVec4() { x = y = z = w = 0.0f; } - ImVec4(float _x, float _y, float _z, float _w) { x = _x; y = _y; z = _z; w = _w; } + float x, y, z, w; + constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { } + constexpr ImVec4(float _x, float _y, float _z, float _w) : x(_x), y(_y), z(_z), w(_w) { } #ifdef IM_VEC4_CLASS_EXTRA IM_VEC4_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec4. #endif @@ -314,12 +307,13 @@ namespace ImGui // Demo, Debug, Information IMGUI_API void ShowDemoWindow(bool* p_open = NULL); // create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. + IMGUI_API void ShowDebugLogWindow(bool* p_open = NULL); // create Debug Log window. display a simplified log of important dear imgui events. IMGUI_API void ShowStackToolWindow(bool* p_open = NULL); // create Stack Tool window. hover items with mouse to query information about the source of their unique ID. IMGUI_API void ShowAboutWindow(bool* p_open = NULL); // create About window. display Dear ImGui version, credits and build/system information. IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) IMGUI_API bool ShowStyleSelector(const char* label); // add style selector block (not a window), essentially a combo listing the default styles. IMGUI_API void ShowFontSelector(const char* label); // add font selector block (not a window), essentially a combo listing the loaded fonts. - IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as a end-user (mouse/keyboard controls). + IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls). IMGUI_API const char* GetVersion(); // get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp) // Styles @@ -376,6 +370,7 @@ namespace ImGui IMGUI_API void SetNextWindowContentSize(const ImVec2& size); // set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // set next window collapsed state. call before Begin() IMGUI_API void SetNextWindowFocus(); // set next window to be focused / top-most. call before Begin() + IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // set next window scrolling value (use < 0.0f to not affect a given axis). IMGUI_API void SetNextWindowBgAlpha(float alpha); // set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground. IMGUI_API void SetNextWindowViewport(ImGuiID viewport_id); // set next window viewport IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); // (not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. @@ -394,9 +389,11 @@ namespace ImGui IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - GetCursorPos() IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates IMGUI_API ImVec2 GetWindowContentRegionMin(); // content boundaries min for the full window (roughly (0,0)-Scroll), in window coordinates - IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be override with SetNextWindowContentSize(), in window coordinates + IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be overridden with SetNextWindowContentSize(), in window coordinates // Windows Scrolling + // - Any change of Scroll will be applied at the beginning of next frame in the first call to Begin(). + // - You may instead use SetNextWindowScroll() prior to calling Begin() to avoid this delay, as an alternative to using SetScrollX()/SetScrollY(). IMGUI_API float GetScrollX(); // get scrolling amount [0 .. GetScrollMaxX()] IMGUI_API float GetScrollY(); // get scrolling amount [0 .. GetScrollMaxY()] IMGUI_API void SetScrollX(float scroll_x); // set scrolling amount [0 .. GetScrollMaxX()] @@ -449,7 +446,7 @@ namespace ImGui // Absolute coordinate: GetCursorScreenPos(), SetCursorScreenPos(), all ImDrawList:: functions. IMGUI_API void Separator(); // separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f); // call between widgets or groups to layout them horizontally. X position given in window coordinates. - IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in an horizontal-layout context. + IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in a horizontal-layout context. IMGUI_API void Spacing(); // add vertical spacing. IMGUI_API void Dummy(const ImVec2& size); // add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. IMGUI_API void Indent(float indent_w = 0.0f); // move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 @@ -513,8 +510,6 @@ namespace ImGui IMGUI_API bool SmallButton(const char* label); // button with FramePadding=(0,0) to easily embed within text IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0); // flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); // square button with an arrow shape - IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1,1), const ImVec4& tint_col = ImVec4(1,1,1,1), const ImVec4& border_col = ImVec4(0,0,0,0)); - IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1,1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0,0,0,0), const ImVec4& tint_col = ImVec4(1,1,1,1)); // <0 frame_padding uses default frame padding settings. 0 for no padding IMGUI_API bool Checkbox(const char* label, bool* v); IMGUI_API bool CheckboxFlags(const char* label, int* flags, int flags_value); IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value); @@ -523,7 +518,12 @@ namespace ImGui IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-FLT_MIN, 0), const char* overlay = NULL); IMGUI_API void Bullet(); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses - // Widgets: Combo Box + // Widgets: Images + // - Read about ImTextureID here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& tint_col = ImVec4(1, 1, 1, 1), const ImVec4& border_col = ImVec4(0, 0, 0, 0)); + IMGUI_API bool ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); + + // Widgets: Combo Box (Dropdown) // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created. IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0); @@ -534,14 +534,15 @@ namespace ImGui // Widgets: Drag Sliders // - CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. - // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every functions, note that a 'float v[X]' function argument is the same as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x + // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every function, note that a 'float v[X]' function argument is the same as 'float* v', + // the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. // - Format string may also be set to NULL or use the default format ("%f" or "%d"). // - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits if ImGuiSliderFlags_AlwaysClamp is not used. // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. // - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. - // - Legacy: Pre-1.78 there are DragXXX() function signatures that takes a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // - Legacy: Pre-1.78 there are DragXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); @@ -560,7 +561,7 @@ namespace ImGui // - CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. // - Format string may also be set to NULL or use the default format ("%f" or "%d"). - // - Legacy: Pre-1.78 there are SliderXXX() function signatures that takes a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // - Legacy: Pre-1.78 there are SliderXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); @@ -602,7 +603,7 @@ namespace ImGui IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0); IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = 0, const float* ref_col = NULL); - IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0, 0)); // display a color square/button, hover for details, return true when pressed. + IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // display a color square/button, hover for details, return true when pressed. IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); // initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. // Widgets: Trees @@ -618,7 +619,7 @@ namespace ImGui IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); IMGUI_API void TreePush(const char* str_id); // ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. - IMGUI_API void TreePush(const void* ptr_id = NULL); // " + IMGUI_API void TreePush(const void* ptr_id); // " IMGUI_API void TreePop(); // ~ Unindent()+PopId() IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); // if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). @@ -688,7 +689,7 @@ namespace ImGui // Popups: begin/end functions // - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards. ImGuiWindowFlags are forwarded to the window. - // - BeginPopupModal(): block every interactions behind the window, cannot be closed by user, add a dimming background, has a title bar. + // - BeginPopupModal(): block every interaction behind the window, cannot be closed by user, add a dimming background, has a title bar. IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); // return true if the popup is open, and you can start outputting to it. IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); // return true if the modal is open, and you can start outputting to it. IMGUI_API void EndPopup(); // only call EndPopup() if BeginPopupXXX() returns true! @@ -700,6 +701,7 @@ namespace ImGui // - CloseCurrentPopup() is called by default by Selectable()/MenuItem() when activated (FIXME: need some options). // - Use ImGuiPopupFlags_NoOpenOverExistingPopup to avoid opening a popup if there's already one at the same level. This is equivalent to e.g. testing for !IsAnyPopupOpen() prior to OpenPopup(). // - Use IsWindowAppearing() after BeginPopup() to tell if a window just opened. + // - IMPORTANT: Notice that for OpenPopupOnItemClick() we exceptionally default flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter IMGUI_API void OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); // call to mark popup as open (don't call every frame!). IMGUI_API void OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags = 0); // id overload to facilitate calling from nested stacks IMGUI_API void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) @@ -709,7 +711,7 @@ namespace ImGui // - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking. // - They are convenient to easily create context menus, hence the name. // - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future. - // - IMPORTANT: we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. + // - IMPORTANT: Notice that we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);// open+begin popup when clicked on current window. IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked in void (where there are no windows). @@ -721,19 +723,17 @@ namespace ImGui IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); // return true if the popup is open. // Tables - // [BETA API] API may evolve slightly! If you use this, please update to the next version when it comes out! // - Full-featured replacement for old Columns API. - // - See Demo->Tables for demo code. - // - See top of imgui_tables.cpp for general commentary. + // - See Demo->Tables for demo code. See top of imgui_tables.cpp for general commentary. // - See ImGuiTableFlags_ and ImGuiTableColumnFlags_ enums for a description of available flags. // The typical call flow is: - // - 1. Call BeginTable(). + // - 1. Call BeginTable(), early out if returning false. // - 2. Optionally call TableSetupColumn() to submit column name/flags/defaults. // - 3. Optionally call TableSetupScrollFreeze() to request scroll freezing of columns/rows. // - 4. Optionally call TableHeadersRow() to submit a header row. Names are pulled from TableSetupColumn() data. // - 5. Populate contents: // - In most situations you can use TableNextRow() + TableSetColumnIndex(N) to start appending into a column. - // - If you are using tables as a sort of grid, where every columns is holding the same type of contents, + // - If you are using tables as a sort of grid, where every column is holding the same type of contents, // you may prefer using TableNextColumn() instead of TableNextRow() + TableSetColumnIndex(). // TableNextColumn() will automatically wrap-around into the next row if needed. // - IMPORTANT: Comparatively to the old Columns() API, we need to call TableNextColumn() for the first column! @@ -746,10 +746,10 @@ namespace ImGui // -------------------------------------------------------------------------------------------------------- // - 5. Call EndTable() IMGUI_API bool BeginTable(const char* str_id, int column, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0.0f, 0.0f), float inner_width = 0.0f); - IMGUI_API void EndTable(); // only call EndTable() if BeginTable() returns true! + IMGUI_API void EndTable(); // only call EndTable() if BeginTable() returns true! IMGUI_API void TableNextRow(ImGuiTableRowFlags row_flags = 0, float min_row_height = 0.0f); // append into the first cell of a new row. - IMGUI_API bool TableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible. - IMGUI_API bool TableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible. + IMGUI_API bool TableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible. + IMGUI_API bool TableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible. // Tables: Headers & Columns declaration // - Use TableSetupColumn() to specify label, resizing policy, default width/weight, id, various other flags etc. @@ -760,20 +760,17 @@ namespace ImGui // some advanced use cases (e.g. adding custom widgets in header row). // - Use TableSetupScrollFreeze() to lock columns/rows so they stay visible when scrolled. IMGUI_API void TableSetupColumn(const char* label, ImGuiTableColumnFlags flags = 0, float init_width_or_weight = 0.0f, ImGuiID user_id = 0); - IMGUI_API void TableSetupScrollFreeze(int cols, int rows); // lock columns/rows so they stay visible when scrolled. - IMGUI_API void TableHeadersRow(); // submit all headers cells based on data provided to TableSetupColumn() + submit context menu - IMGUI_API void TableHeader(const char* label); // submit one header cell manually (rarely used) - - // Tables: Sorting - // - Call TableGetSortSpecs() to retrieve latest sort specs for the table. NULL when not sorting. - // - When 'SpecsDirty == true' you should sort your data. It will be true when sorting specs have changed - // since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, else you may - // wastefully sort your data every frame! - // - Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). - IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting). - - // Tables: Miscellaneous functions + IMGUI_API void TableSetupScrollFreeze(int cols, int rows); // lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableHeadersRow(); // submit all headers cells based on data provided to TableSetupColumn() + submit context menu + IMGUI_API void TableHeader(const char* label); // submit one header cell manually (rarely used) + + // Tables: Sorting & Miscellaneous functions + // - Sorting: call TableGetSortSpecs() to retrieve latest sort specs for the table. NULL when not sorting. + // When 'sort_specs->SpecsDirty == true' you should sort your data. It will be true when sorting specs have + // changed since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, + // else you may wastefully sort your data every frame! // - Functions args 'int column_n' treat the default value of -1 as the same as passing the current column index. + IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). IMGUI_API int TableGetColumnCount(); // return number of columns (value passed to BeginTable) IMGUI_API int TableGetColumnIndex(); // return current column index. IMGUI_API int TableGetRowIndex(); // return current row index. @@ -838,7 +835,7 @@ namespace ImGui // - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725) // - An item can be both drag source and drop target. IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); // call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource() - IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. + IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. IMGUI_API void EndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true! IMGUI_API bool BeginDragDropTarget(); // call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0); // accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. @@ -868,12 +865,12 @@ namespace ImGui IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); // is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. IMGUI_API bool IsItemActive(); // is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false) IMGUI_API bool IsItemFocused(); // is the last item focused for keyboard/gamepad navigation? - IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this it NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. + IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. IMGUI_API bool IsItemVisible(); // is the last item visible? (items may be out of sight because of clipping/scrolling) IMGUI_API bool IsItemEdited(); // did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. IMGUI_API bool IsItemActivated(); // was the last item just made active (item was previously inactive). - IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that requires continuous editing. - IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that requires continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). + IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing. + IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). IMGUI_API bool IsItemToggledOpen(); // was the last item open state toggled? set by TreeNode(). IMGUI_API bool IsAnyItemHovered(); // is any item hovered? IMGUI_API bool IsAnyItemActive(); // is any item active? @@ -889,15 +886,17 @@ namespace ImGui // - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. IMGUI_API ImGuiViewport* GetMainViewport(); // return primary/default viewport. This can never be NULL. + // Background/Foreground Draw Lists + IMGUI_API ImDrawList* GetBackgroundDrawList(); // get background draw list for the viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(); // get foreground draw list for the viewport associated to the current window. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + IMGUI_API ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport); // get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport); // get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + // Miscellaneous Utilities IMGUI_API bool IsRectVisible(const ImVec2& size); // test if rectangle (of given size, starting from cursor position) is visible / not clipped. IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. IMGUI_API double GetTime(); // get global imgui time. incremented by io.DeltaTime every frame. IMGUI_API int GetFrameCount(); // get global imgui frame count. incremented by 1 every frame. - IMGUI_API ImDrawList* GetBackgroundDrawList(); // get background draw list for the viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. - IMGUI_API ImDrawList* GetForegroundDrawList(); // get foreground draw list for the viewport associated to the current window. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. - IMGUI_API ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport); // get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. - IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport); // get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); // you may use this when creating your own ImDrawList instances. IMGUI_API const char* GetStyleColorName(ImGuiCol idx); // get a string corresponding to the enum value (for display, saving, etc.). IMGUI_API void SetStateStorage(ImGuiStorage* storage); // replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) @@ -915,14 +914,17 @@ namespace ImGui IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); // Inputs Utilities: Keyboard - // - For 'int user_key_index' you can use your own indices/enums according to how your backend/engine stored them in io.KeysDown[]. - // - We don't know the meaning of those value. You can use GetKeyIndex() to map a ImGuiKey_ value into the user index. - IMGUI_API int GetKeyIndex(ImGuiKey imgui_key); // map ImGuiKey_* values into user's key index. == io.KeyMap[key] - IMGUI_API bool IsKeyDown(int user_key_index); // is key being held. == io.KeysDown[user_key_index]. - IMGUI_API bool IsKeyPressed(int user_key_index, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate - IMGUI_API bool IsKeyReleased(int user_key_index); // was key released (went from Down to !Down)? - IMGUI_API int GetKeyPressedAmount(int key_index, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate - IMGUI_API void CaptureKeyboardFromApp(bool want_capture_keyboard_value = true); // attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard_value"; after the next NewFrame() call. + // Without IMGUI_DISABLE_OBSOLETE_KEYIO: (legacy support) + // - For 'ImGuiKey key' you can still use your legacy native/user indices according to how your backend/engine stored them in io.KeysDown[]. + // With IMGUI_DISABLE_OBSOLETE_KEYIO: (this is the way forward) + // - Any use of 'ImGuiKey' will assert when key < 512 will be passed, previously reserved as native/user keys indices + // - GetKeyIndex() is pass-through and therefore deprecated (gone if IMGUI_DISABLE_OBSOLETE_KEYIO is defined) + IMGUI_API bool IsKeyDown(ImGuiKey key); // is key being held. + IMGUI_API bool IsKeyPressed(ImGuiKey key, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate + IMGUI_API bool IsKeyReleased(ImGuiKey key); // was key released (went from Down to !Down)? + IMGUI_API int GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate + IMGUI_API const char* GetKeyName(ImGuiKey key); // [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared. + IMGUI_API void SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); // Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call. // Inputs Utilities: Mouse // - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right. @@ -935,15 +937,15 @@ namespace ImGui IMGUI_API int GetMouseClickedCount(ImGuiMouseButton button); // return the number of successive mouse-clicks at the time where a click happen (otherwise 0). IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = true);// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); // by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available - IMGUI_API bool IsAnyMouseDown(); // is any mouse button held? + IMGUI_API bool IsAnyMouseDown(); // [WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. IMGUI_API ImVec2 GetMousePos(); // shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); // retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) IMGUI_API bool IsMouseDragging(ImGuiMouseButton button, float lock_threshold = -1.0f); // is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) IMGUI_API ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0, float lock_threshold = -1.0f); // return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) IMGUI_API void ResetMouseDragDelta(ImGuiMouseButton button = 0); // - IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired cursor type, reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you - IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired cursor type - IMGUI_API void CaptureMouseFromApp(bool want_capture_mouse_value = true); // attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse_value;" after the next NewFrame() call. + IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you + IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired mouse cursor shape + IMGUI_API void SetNextFrameWantCaptureMouse(bool want_capture_mouse); // Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call. // Clipboard Utilities // - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard. @@ -960,7 +962,7 @@ namespace ImGui IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. // Debug Utilities - // - This is used by the IMGUI_CHECKVERSION() macro. + IMGUI_API void DebugTextEncoding(const char* text); IMGUI_API bool 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); // This is called by IMGUI_CHECKVERSION() macro. // Memory Allocators @@ -989,6 +991,7 @@ namespace ImGui //----------------------------------------------------------------------------- // Flags for ImGui::Begin() +// (Those are per-window flags. There are shared flags in ImGuiIO: io.ConfigWindowsResizeFromEdges and io.ConfigWindowsMoveFromTitleBarOnly) enum ImGuiWindowFlags_ { ImGuiWindowFlags_None = 0, @@ -1025,13 +1028,11 @@ enum ImGuiWindowFlags_ ImGuiWindowFlags_Popup = 1 << 26, // Don't use! For internal use by BeginPopup() ImGuiWindowFlags_Modal = 1 << 27, // Don't use! For internal use by BeginPopupModal() ImGuiWindowFlags_ChildMenu = 1 << 28, // Don't use! For internal use by BeginMenu() - ImGuiWindowFlags_DockNodeHost = 1 << 29 // Don't use! For internal use by Begin()/NewFrame() - - // [Obsolete] - //ImGuiWindowFlags_ResizeFromAnySide = 1 << 17, // --> Set io.ConfigWindowsResizeFromEdges=true and make sure mouse cursors are supported by backend (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) + ImGuiWindowFlags_DockNodeHost = 1 << 29, // Don't use! For internal use by Begin()/NewFrame() }; // Flags for ImGui::InputText() +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigInputTextCursorBlink and io.ConfigInputTextEnterKeepActive) enum ImGuiInputTextFlags_ { ImGuiInputTextFlags_None = 0, @@ -1054,11 +1055,12 @@ enum ImGuiInputTextFlags_ ImGuiInputTextFlags_NoUndoRedo = 1 << 16, // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID(). ImGuiInputTextFlags_CharsScientific = 1 << 17, // Allow 0123456789.+-*/eE (Scientific notation input) ImGuiInputTextFlags_CallbackResize = 1 << 18, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) - ImGuiInputTextFlags_CallbackEdit = 1 << 19 // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + ImGuiInputTextFlags_CallbackEdit = 1 << 19, // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, // Escape key clears content if not empty, and deactivate otherwise (constrast to default behavior of Escape to revert) // Obsolete names (will be removed soon) #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite // [renamed in 1.82] name was not matching behavior + ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite // [renamed in 1.82] name was not matching behavior #endif }; @@ -1081,7 +1083,7 @@ enum ImGuiTreeNodeFlags_ ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, // Extend hit box to the left-most and right-most edges (bypass the indented area). ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, // (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop) //ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 14, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible - ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, }; // Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions. @@ -1090,7 +1092,7 @@ enum ImGuiTreeNodeFlags_ // It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags. // - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0. // IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter -// and want to another another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag. +// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly. // - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later). enum ImGuiPopupFlags_ { @@ -1104,18 +1106,18 @@ enum ImGuiPopupFlags_ ImGuiPopupFlags_NoOpenOverItems = 1 << 6, // For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space ImGuiPopupFlags_AnyPopupId = 1 << 7, // For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup. ImGuiPopupFlags_AnyPopupLevel = 1 << 8, // For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level) - ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, }; // Flags for ImGui::Selectable() enum ImGuiSelectableFlags_ { ImGuiSelectableFlags_None = 0, - ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this don't close parent popup window + ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this doesn't close parent popup window ImGuiSelectableFlags_SpanAllColumns = 1 << 1, // Selectable frame can span all columns (text will still fit in current column) ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, // Generate press events on double clicks too ImGuiSelectableFlags_Disabled = 1 << 3, // Cannot be selected, display grayed out text - ImGuiSelectableFlags_AllowItemOverlap = 1 << 4 // (WIP) Hit testing to allow subsequent widgets to overlap this one + ImGuiSelectableFlags_AllowItemOverlap = 1 << 4, // (WIP) Hit testing to allow subsequent widgets to overlap this one }; // Flags for ImGui::BeginCombo() @@ -1129,7 +1131,7 @@ enum ImGuiComboFlags_ ImGuiComboFlags_HeightLargest = 1 << 4, // As many fitting items as possible ImGuiComboFlags_NoArrowButton = 1 << 5, // Display on the preview box without the square arrow button ImGuiComboFlags_NoPreview = 1 << 6, // Display only a square arrow button - ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, }; // Flags for ImGui::BeginTabBar() @@ -1145,7 +1147,7 @@ enum ImGuiTabBarFlags_ ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, // Resize tabs when they don't fit ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, // Add scroll buttons when tabs don't fit ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, - ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, }; // Flags for ImGui::BeginTabItem() @@ -1159,12 +1161,11 @@ enum ImGuiTabItemFlags_ ImGuiTabItemFlags_NoTooltip = 1 << 4, // Disable tooltip for the given tab ImGuiTabItemFlags_NoReorder = 1 << 5, // Disable reordering this tab or having another tab cross over this tab ImGuiTabItemFlags_Leading = 1 << 6, // Enforce the tab position to the left of the tab bar (after the tab list popup button) - ImGuiTabItemFlags_Trailing = 1 << 7 // Enforce the tab position to the right of the tab bar (before the scrolling buttons) + ImGuiTabItemFlags_Trailing = 1 << 7, // Enforce the tab position to the right of the tab bar (before the scrolling buttons) }; // Flags for ImGui::BeginTable() -// [BETA API] API may evolve slightly! If you use this, please update to the next version when it comes out! -// - Important! Sizing policies have complex and subtle side effects, more so than you would expect. +// - Important! Sizing policies have complex and subtle side effects, much more so than you would expect. // Read comments/demos carefully + experiment with live demos to get acquainted with them. // - The DEFAULT sizing policies are: // - Default to ImGuiTableFlags_SizingFixedFit if ScrollX is on, or if host window has ImGuiWindowFlags_AlwaysAutoResize. @@ -1172,15 +1173,15 @@ enum ImGuiTabItemFlags_ // - When ScrollX is off: // - Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretch with same weight. // - Columns sizing policy allowed: Stretch (default), Fixed/Auto. -// - Fixed Columns will generally obtain their requested width (unless the table cannot fit them all). -// - Stretch Columns will share the remaining width. +// - Fixed Columns (if any) will generally obtain their requested width (unless the table cannot fit them all). +// - Stretch Columns will share the remaining width according to their respective weight. // - Mixed Fixed/Stretch columns is possible but has various side-effects on resizing behaviors. // The typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. // (this is because the visible order of columns have subtle but necessary effects on how they react to manual resizing). // - When ScrollX is on: // - Table defaults to ImGuiTableFlags_SizingFixedFit -> all Columns defaults to ImGuiTableColumnFlags_WidthFixed // - Columns sizing policy allowed: Fixed/Auto mostly. -// - Fixed Columns can be enlarged as needed. Table will show an horizontal scrollbar if needed. +// - Fixed Columns can be enlarged as needed. Table will show a horizontal scrollbar if needed. // - When using auto-resizing (non-resizable) fixed columns, querying the content width to use item right-alignment e.g. SetNextItemWidth(-FLT_MIN) doesn't make sense, would create a feedback loop. // - Using Stretch columns OFTEN DOES NOT MAKE SENSE if ScrollX is on, UNLESS you have specified a value for 'inner_width' in BeginTable(). // If you specify a value for 'inner_width' then effectively the scrolling space is known and Stretch or mixed Fixed/Stretch columns become meaningful again. @@ -1206,8 +1207,8 @@ enum ImGuiTableFlags_ ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, // Draw inner borders. ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, // Draw outer borders. ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, // Draw all borders. - ImGuiTableFlags_NoBordersInBody = 1 << 11, // [ALPHA] Disable vertical borders in columns Body (borders will always appears in Headers). -> May move to style - ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, // [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers). -> May move to style + ImGuiTableFlags_NoBordersInBody = 1 << 11, // [ALPHA] Disable vertical borders in columns Body (borders will always appear in Headers). -> May move to style + ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, // [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers). -> May move to style // Sizing Policy (read above for defaults) ImGuiTableFlags_SizingFixedFit = 1 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width. ImGuiTableFlags_SizingFixedSame = 2 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible. @@ -1221,24 +1222,18 @@ enum ImGuiTableFlags_ // Clipping ImGuiTableFlags_NoClip = 1 << 20, // Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze(). // Padding - ImGuiTableFlags_PadOuterX = 1 << 21, // Default if BordersOuterV is on. Enable outer-most padding. Generally desirable if you have headers. - ImGuiTableFlags_NoPadOuterX = 1 << 22, // Default if BordersOuterV is off. Disable outer-most padding. + ImGuiTableFlags_PadOuterX = 1 << 21, // Default if BordersOuterV is on. Enable outermost padding. Generally desirable if you have headers. + ImGuiTableFlags_NoPadOuterX = 1 << 22, // Default if BordersOuterV is off. Disable outermost padding. ImGuiTableFlags_NoPadInnerX = 1 << 23, // Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off). // Scrolling - ImGuiTableFlags_ScrollX = 1 << 24, // Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this create a child window, ScrollY is currently generally recommended when using ScrollX. + ImGuiTableFlags_ScrollX = 1 << 24, // Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this creates a child window, ScrollY is currently generally recommended when using ScrollX. ImGuiTableFlags_ScrollY = 1 << 25, // Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. // Sorting ImGuiTableFlags_SortMulti = 1 << 26, // Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1). ImGuiTableFlags_SortTristate = 1 << 27, // Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0). // [Internal] Combinations and masks - ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame - - // Obsolete names (will be removed soon) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //, ImGuiTableFlags_ColumnsWidthFixed = ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_ColumnsWidthStretch = ImGuiTableFlags_SizingStretchSame // WIP Tables 2020/12 - //, ImGuiTableFlags_SizingPolicyFixed = ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_SizingPolicyStretch = ImGuiTableFlags_SizingStretchSame // WIP Tables 2021/01 -#endif + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, }; // Flags for ImGui::TableSetupColumn() @@ -1275,19 +1270,14 @@ enum ImGuiTableColumnFlags_ ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, - ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30 // [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge) - - // Obsolete names (will be removed soon) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //ImGuiTableColumnFlags_WidthAuto = ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoResize, // Column will not stretch and keep resizing based on submitted contents. -#endif + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, // [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge) }; // Flags for ImGui::TableNextRow() enum ImGuiTableRowFlags_ { - ImGuiTableRowFlags_None = 0, - ImGuiTableRowFlags_Headers = 1 << 0 // Identify header row (set default background color + width of its contents accounted different for auto column width) + ImGuiTableRowFlags_None = 0, + ImGuiTableRowFlags_Headers = 1 << 0, // Identify header row (set default background color + width of its contents accounted differently for auto column width) }; // Enum for ImGui::TableSetBgColor() @@ -1295,16 +1285,16 @@ enum ImGuiTableRowFlags_ // - Layer 0: draw with RowBg0 color if set, otherwise draw with ColumnBg0 if set. // - Layer 1: draw with RowBg1 color if set, otherwise draw with ColumnBg1 if set. // - Layer 2: draw with CellBg color if set. -// The purpose of the two row/columns layers is to let you decide if a background color changes should override or blend with the existing color. +// The purpose of the two row/columns layers is to let you decide if a background color change should override or blend with the existing color. // When using ImGuiTableFlags_RowBg on the table, each row has the RowBg0 color automatically set for odd/even rows. // If you set the color of RowBg0 target, your color will override the existing RowBg0 color. // If you set the color of RowBg1 or ColumnBg1 target, your color will blend over the RowBg0 color. enum ImGuiTableBgTarget_ { - ImGuiTableBgTarget_None = 0, - ImGuiTableBgTarget_RowBg0 = 1, // Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used) - ImGuiTableBgTarget_RowBg1 = 2, // Set row background color 1 (generally used for selection marking) - ImGuiTableBgTarget_CellBg = 3 // Set cell background color (top-most color) + ImGuiTableBgTarget_None = 0, + ImGuiTableBgTarget_RowBg0 = 1, // Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used) + ImGuiTableBgTarget_RowBg1 = 2, // Set row background color 1 (generally used for selection marking) + ImGuiTableBgTarget_CellBg = 3, // Set cell background color (top-most color) }; // Flags for ImGui::IsWindowFocused() @@ -1316,7 +1306,7 @@ enum ImGuiFocusedFlags_ ImGuiFocusedFlags_AnyWindow = 1 << 2, // Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ! ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, // Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) ImGuiFocusedFlags_DockHierarchy = 1 << 4, // Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) - ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, }; // Flags for ImGui::IsItemHovered(), ImGui::IsWindowHovered() @@ -1335,8 +1325,14 @@ enum ImGuiHoveredFlags_ ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, // Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns. ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 8, // IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window ImGuiHoveredFlags_AllowWhenDisabled = 1 << 9, // IsItemHovered() only: Return true even if the item is disabled + ImGuiHoveredFlags_NoNavOverride = 1 << 10, // Disable using gamepad/keyboard navigation state when active, always query mouse. ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, - ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + + // Hovering delays (for tooltips) + ImGuiHoveredFlags_DelayNormal = 1 << 11, // Return true after io.HoverDelayNormal elapsed (~0.30 sec) + ImGuiHoveredFlags_DelayShort = 1 << 12, // Return true after io.HoverDelayShort elapsed (~0.10 sec) + ImGuiHoveredFlags_NoSharedDelay = 1 << 13, // Disable shared delay system where moving from one item to the next keeps the previous timer for a short time (standard for tooltips with long delays) }; // Flags for ImGui::DockSpace(), shared/inherited by child nodes. @@ -1351,7 +1347,7 @@ enum ImGuiDockNodeFlags_ ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3, // Shared // Enable passthru dockspace: 1) DockSpace() will render a ImGuiCol_WindowBg background covering everything excepted the Central Node when empty. Meaning the host window should probably use SetNextWindowBgAlpha(0.0f) prior to Begin() when using this. 2) When Central Node is empty: let inputs pass-through + won't display a DockingEmptyBg background. See demo for details. ImGuiDockNodeFlags_NoSplit = 1 << 4, // Shared/Local // Disable splitting the node into smaller nodes. Useful e.g. when embedding dockspaces into a main root one (the root one may have splitting disabled to reduce confusion). Note: when turned off, existing splits will be preserved. ImGuiDockNodeFlags_NoResize = 1 << 5, // Shared/Local // Disable resizing node using the splitter/separators. Useful with programmatically setup dockspaces. - ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6 // Shared/Local // Tab bar will automatically hide when there is a single window in the dock node. + ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6, // Shared/Local // Tab bar will automatically hide when there is a single window in the dock node. }; // Flags for ImGui::BeginDragDropSource(), ImGui::AcceptDragDropPayload() @@ -1359,8 +1355,8 @@ enum ImGuiDragDropFlags_ { ImGuiDragDropFlags_None = 0, // BeginDragDropSource() flags - ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disable this behavior. - ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disable this behavior so you can still call IsItemHovered() on the source item. + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior. + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item. ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, // Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item. ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, // Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit. ImGuiDragDropFlags_SourceExtern = 1 << 4, // External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously. @@ -1369,7 +1365,7 @@ enum ImGuiDragDropFlags_ ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, // AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered. ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, // Do not draw the default highlight rectangle when hovering over target. ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, // Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site. - ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect // For peeking ahead and inspecting the payload before delivery. + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, // For peeking ahead and inspecting the payload before delivery. }; // Standard Drag and Drop payload types. You can define you own payload types using short strings. Types starting with '_' are defined by Dear ImGui. @@ -1411,10 +1407,14 @@ enum ImGuiSortDirection_ ImGuiSortDirection_Descending = 2 // Descending = 9->0, Z->A etc. }; -// User fill ImGuiIO.KeyMap[] array with indices into the ImGuiIO.KeysDown[512] array -enum ImGuiKey_ +// A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) +// All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87) +// Since >= 1.89 we increased typing (went from int to enum), some legacy code may need a cast to ImGuiKey. +enum ImGuiKey : int { - ImGuiKey_Tab, + // Keyboard + ImGuiKey_None = 0, + ImGuiKey_Tab = 512, // == ImGuiKey_NamedKey_BEGIN ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, @@ -1429,66 +1429,133 @@ enum ImGuiKey_ ImGuiKey_Space, ImGuiKey_Enter, ImGuiKey_Escape, - ImGuiKey_KeyPadEnter, - ImGuiKey_A, // for text edit CTRL+A: select all - ImGuiKey_C, // for text edit CTRL+C: copy - ImGuiKey_V, // for text edit CTRL+V: paste - ImGuiKey_X, // for text edit CTRL+X: cut - ImGuiKey_Y, // for text edit CTRL+Y: redo - ImGuiKey_Z, // for text edit CTRL+Z: undo - ImGuiKey_COUNT -}; - -// To test io.KeyMods (which is a combination of individual fields io.KeyCtrl, io.KeyShift, io.KeyAlt set by user/backend) -enum ImGuiKeyModFlags_ -{ - ImGuiKeyModFlags_None = 0, - ImGuiKeyModFlags_Ctrl = 1 << 0, - ImGuiKeyModFlags_Shift = 1 << 1, - ImGuiKeyModFlags_Alt = 1 << 2, - ImGuiKeyModFlags_Super = 1 << 3 -}; - -// Gamepad/Keyboard navigation -// Keyboard: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. -// Gamepad: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. Backend: set ImGuiBackendFlags_HasGamepad and fill the io.NavInputs[] fields before calling NewFrame(). Note that io.NavInputs[] is cleared by EndFrame(). -// Read instructions in imgui.cpp for more details. Download PNG/PSD at http://dearimgui.org/controls_sheets. -enum ImGuiNavInput_ -{ - // Gamepad Mapping - ImGuiNavInput_Activate, // activate / open / toggle / tweak value // e.g. Cross (PS4), A (Xbox), A (Switch), Space (Keyboard) - ImGuiNavInput_Cancel, // cancel / close / exit // e.g. Circle (PS4), B (Xbox), B (Switch), Escape (Keyboard) - ImGuiNavInput_Input, // text input / on-screen keyboard // e.g. Triang.(PS4), Y (Xbox), X (Switch), Return (Keyboard) - ImGuiNavInput_Menu, // tap: toggle menu / hold: focus, move, resize // e.g. Square (PS4), X (Xbox), Y (Switch), Alt (Keyboard) - ImGuiNavInput_DpadLeft, // move / tweak / resize window (w/ PadMenu) // e.g. D-pad Left/Right/Up/Down (Gamepads), Arrow keys (Keyboard) - ImGuiNavInput_DpadRight, // - ImGuiNavInput_DpadUp, // - ImGuiNavInput_DpadDown, // - ImGuiNavInput_LStickLeft, // scroll / move window (w/ PadMenu) // e.g. Left Analog Stick Left/Right/Up/Down - ImGuiNavInput_LStickRight, // - ImGuiNavInput_LStickUp, // - ImGuiNavInput_LStickDown, // - ImGuiNavInput_FocusPrev, // next window (w/ PadMenu) // e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch) - ImGuiNavInput_FocusNext, // prev window (w/ PadMenu) // e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch) - ImGuiNavInput_TweakSlow, // slower tweaks // e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch) - ImGuiNavInput_TweakFast, // faster tweaks // e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch) - - // [Internal] Don't use directly! This is used internally to differentiate keyboard from gamepad inputs for behaviors that require to differentiate them. - // Keyboard behavior that have no corresponding gamepad mapping (e.g. CTRL+TAB) will be directly reading from io.KeysDown[] instead of io.NavInputs[]. - ImGuiNavInput_KeyLeft_, // move left // = Arrow keys - ImGuiNavInput_KeyRight_, // move right - ImGuiNavInput_KeyUp_, // move up - ImGuiNavInput_KeyDown_, // move down + ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper, + ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper, + ImGuiKey_Menu, + ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9, + ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J, + ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T, + ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z, + ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6, + ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12, + ImGuiKey_Apostrophe, // ' + ImGuiKey_Comma, // , + ImGuiKey_Minus, // - + ImGuiKey_Period, // . + ImGuiKey_Slash, // / + ImGuiKey_Semicolon, // ; + ImGuiKey_Equal, // = + ImGuiKey_LeftBracket, // [ + ImGuiKey_Backslash, // \ (this text inhibit multiline comment caused by backslash) + ImGuiKey_RightBracket, // ] + ImGuiKey_GraveAccent, // ` + ImGuiKey_CapsLock, + ImGuiKey_ScrollLock, + ImGuiKey_NumLock, + ImGuiKey_PrintScreen, + ImGuiKey_Pause, + ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4, + ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9, + ImGuiKey_KeypadDecimal, + ImGuiKey_KeypadDivide, + ImGuiKey_KeypadMultiply, + ImGuiKey_KeypadSubtract, + ImGuiKey_KeypadAdd, + ImGuiKey_KeypadEnter, + ImGuiKey_KeypadEqual, + + // Gamepad (some of those are analog values, 0.0f to 1.0f) // GAME NAVIGATION ACTION + // (download controller mapping PNG/PSD at http://dearimgui.org/controls_sheets) + ImGuiKey_GamepadStart, // Menu (Xbox) + (Switch) Start/Options (PS) + ImGuiKey_GamepadBack, // View (Xbox) - (Switch) Share (PS) + ImGuiKey_GamepadFaceLeft, // X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows) + ImGuiKey_GamepadFaceRight, // B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit + ImGuiKey_GamepadFaceUp, // Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard + ImGuiKey_GamepadFaceDown, // A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak + ImGuiKey_GamepadDpadLeft, // D-pad Left // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadRight, // D-pad Right // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadUp, // D-pad Up // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadDown, // D-pad Down // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadL1, // L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode) + ImGuiKey_GamepadR1, // R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode) + ImGuiKey_GamepadL2, // L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog] + ImGuiKey_GamepadR2, // R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog] + ImGuiKey_GamepadL3, // L Stick (Xbox) L3 (Switch) L3 (PS) + ImGuiKey_GamepadR3, // R Stick (Xbox) R3 (Switch) R3 (PS) + ImGuiKey_GamepadLStickLeft, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickRight, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickUp, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickDown, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadRStickLeft, // [Analog] + ImGuiKey_GamepadRStickRight, // [Analog] + ImGuiKey_GamepadRStickUp, // [Analog] + ImGuiKey_GamepadRStickDown, // [Analog] + + // Mouse Buttons (auto-submitted from AddMouseButtonEvent() calls) + // - This is mirroring the data also written to io.MouseDown[], io.MouseWheel, in a format allowing them to be accessed via standard key API. + ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY, + + // [Internal] Reserved for mod storage + ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper, + ImGuiKey_COUNT, + + // Keyboard Modifiers (explicitly submitted by backend via AddKeyEvent() calls) + // - This is mirroring the data also written to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper, in a format allowing + // them to be accessed via standard key API, allowing calls such as IsKeyPressed(), IsKeyReleased(), querying duration etc. + // - Code polling every key (e.g. an interface to detect a key press for input mapping) might want to ignore those + // and prefer using the real keys (e.g. ImGuiKey_LeftCtrl, ImGuiKey_RightCtrl instead of ImGuiMod_Ctrl). + // - In theory the value of keyboard modifiers should be roughly equivalent to a logical or of the equivalent left/right keys. + // In practice: it's complicated; mods are often provided from different sources. Keyboard layout, IME, sticky keys and + // backends tend to interfere and break that equivalence. The safer decision is to relay that ambiguity down to the end-user... + ImGuiMod_None = 0, + ImGuiMod_Ctrl = 1 << 12, + ImGuiMod_Shift = 1 << 13, + ImGuiMod_Alt = 1 << 14, // Option/Menu + ImGuiMod_Super = 1 << 15, // Cmd/Super/Windows + ImGuiMod_Mask_ = 0xF000, +#if defined(__APPLE__) + ImGuiMod_Shortcut = ImGuiMod_Super, +#else + ImGuiMod_Shortcut = ImGuiMod_Ctrl, +#endif + + // [Internal] Prior to 1.87 we required user to fill io.KeysDown[512] using their own native index + the io.KeyMap[] array. + // We are ditching this method but keeping a legacy path for user code doing e.g. IsKeyPressed(MY_NATIVE_KEY_CODE) + ImGuiKey_NamedKey_BEGIN = 512, + ImGuiKey_NamedKey_END = ImGuiKey_COUNT, + ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT, // Size of KeysData[]: only hold named keys + ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN, // First key stored in io.KeysData[0]. Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET). +#else + ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT, // Size of KeysData[]: hold legacy 0..512 keycodes + named keys + ImGuiKey_KeysData_OFFSET = 0, // First key stored in io.KeysData[0]. Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET). +#endif + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super, // Renamed in 1.89 + ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter, // Renamed in 1.87 +#endif +}; + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +// OBSOLETED in 1.88 (from July 2022): ImGuiNavInput and io.NavInputs[]. +// Official backends between 1.60 and 1.86: will keep working and feed gamepad inputs as long as IMGUI_DISABLE_OBSOLETE_KEYIO is not set. +// Custom backends: feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +enum ImGuiNavInput +{ + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, ImGuiNavInput_COUNT, - ImGuiNavInput_InternalStart_ = ImGuiNavInput_KeyLeft_ }; +#endif // Configuration flags stored in io.ConfigFlags. Set by user/application. enum ImGuiConfigFlags_ { ImGuiConfigFlags_None = 0, - ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. NewFrame() will automatically fill io.NavInputs[] based on io.KeysDown[]. - ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. This is mostly to instruct your imgui backend to fill io.NavInputs[]. Backend also needs to set ImGuiBackendFlags_HasGamepad. + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad. ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth. ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, // Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set. ImGuiConfigFlags_NoMouse = 1 << 4, // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the backend. @@ -1503,9 +1570,9 @@ enum ImGuiConfigFlags_ ImGuiConfigFlags_DpiEnableScaleViewports= 1 << 14, // [BETA: Don't use] FIXME-DPI: Reposition and resize imgui windows when the DpiScale of a viewport changed (mostly useful for the main viewport hosting other window). Note that resizing the main window itself is up to your application. ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 15, // [BETA: Don't use] FIXME-DPI: Request bitmap-scaled fonts to match DpiScale. This is a very low-quality workaround. The correct way to handle DPI is _currently_ to replace the atlas and/or fonts in the Platform_OnChangedViewport callback, but this is all early work in progress. - // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are not used by core Dear ImGui) + // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are NOT used by core Dear ImGui) ImGuiConfigFlags_IsSRGB = 1 << 20, // Application is SRGB-aware. - ImGuiConfigFlags_IsTouchScreen = 1 << 21 // Application is using a touch screen instead of a mouse. + ImGuiConfigFlags_IsTouchScreen = 1 << 21, // Application is using a touch screen instead of a mouse. }; // Backend capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom backend. @@ -1519,8 +1586,8 @@ enum ImGuiBackendFlags_ // [BETA] Viewports ImGuiBackendFlags_PlatformHasViewports = 1 << 10, // Backend Platform supports multiple viewports. - ImGuiBackendFlags_HasMouseHoveredViewport=1 << 11, // Backend Platform supports setting io.MouseHoveredViewport to the viewport directly under the mouse _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag and _REGARDLESS_ of whether another viewport is focused and may be capturing the mouse. This information is _NOT EASY_ to provide correctly with most high-level engines! Don't set this without studying _carefully_ how the backends handle ImGuiViewportFlags_NoInputs! - ImGuiBackendFlags_RendererHasViewports = 1 << 12 // Backend Renderer supports multiple viewports. + ImGuiBackendFlags_HasMouseHoveredViewport=1 << 11, // Backend Platform supports calling io.AddMouseViewportEvent() with the viewport under the mouse. IF POSSIBLE, ignore viewports with the ImGuiViewportFlags_NoInputs flag (Win32 backend, GLFW 3.30+ backend can do this, SDL backend cannot). If this cannot be done, Dear ImGui needs to use a flawed heuristic to find the viewport under. + ImGuiBackendFlags_RendererHasViewports = 1 << 12, // Backend Renderer supports multiple viewports. }; // Enumeration for PushStyleColor() / PopStyleColor() @@ -1556,10 +1623,10 @@ enum ImGuiCol_ ImGuiCol_Separator, ImGuiCol_SeparatorHovered, ImGuiCol_SeparatorActive, - ImGuiCol_ResizeGrip, + ImGuiCol_ResizeGrip, // Resize grip in lower-right and lower-left corners of windows. ImGuiCol_ResizeGripHovered, ImGuiCol_ResizeGripActive, - ImGuiCol_Tab, + ImGuiCol_Tab, // TabItem in a TabBar ImGuiCol_TabHovered, ImGuiCol_TabActive, ImGuiCol_TabUnfocused, @@ -1576,7 +1643,7 @@ enum ImGuiCol_ ImGuiCol_TableRowBg, // Table row background (even rows) ImGuiCol_TableRowBgAlt, // Table row background (odd rows) ImGuiCol_TextSelectedBg, - ImGuiCol_DragDropTarget, + ImGuiCol_DragDropTarget, // Rectangle highlighting a drop target ImGuiCol_NavHighlight, // Gamepad/keyboard: current highlighted item ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active @@ -1588,7 +1655,7 @@ enum ImGuiCol_ // - The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code. // During initialization or between frames, feel free to just poke into ImGuiStyle directly. // - Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description. -// In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. // With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. // - When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type. enum ImGuiStyleVar_ @@ -1632,7 +1699,7 @@ enum ImGuiButtonFlags_ // [Internal] ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, - ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, }; // Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() @@ -1673,16 +1740,15 @@ enum ImGuiColorEditFlags_ ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, - ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, // Obsolete names (will be removed) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] -#endif + // ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] }; // Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. // We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText) enum ImGuiSliderFlags_ { ImGuiSliderFlags_None = 0, @@ -1690,11 +1756,11 @@ enum ImGuiSliderFlags_ ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits) ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget - ImGuiSliderFlags_InvalidMask_ = 0x7000000F // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. // Obsolete names (will be removed) #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp // [renamed in 1.79] + ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp, // [renamed in 1.79] #endif }; @@ -1716,7 +1782,7 @@ enum ImGuiMouseCursor_ ImGuiMouseCursor_Arrow = 0, ImGuiMouseCursor_TextInput, // When hovering over InputText, etc. ImGuiMouseCursor_ResizeAll, // (Unused by Dear ImGui functions) - ImGuiMouseCursor_ResizeNS, // When hovering over an horizontal border + ImGuiMouseCursor_ResizeNS, // When hovering over a horizontal border ImGuiMouseCursor_ResizeEW, // When hovering over a vertical border or a column ImGuiMouseCursor_ResizeNESW, // When hovering over the bottom-left corner of a window ImGuiMouseCursor_ResizeNWSE, // When hovering over the bottom-right corner of a window @@ -1731,10 +1797,10 @@ enum ImGuiMouseCursor_ enum ImGuiCond_ { ImGuiCond_None = 0, // No condition (always set the variable), same as _Always - ImGuiCond_Always = 1 << 0, // No condition (always set the variable) + ImGuiCond_Always = 1 << 0, // No condition (always set the variable), same as _None ImGuiCond_Once = 1 << 1, // Set the variable once per runtime session (only the first call will succeed) ImGuiCond_FirstUseEver = 1 << 2, // Set the variable if the object/window has no persistently saved data (no entry in .ini file) - ImGuiCond_Appearing = 1 << 3 // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) + ImGuiCond_Appearing = 1 << 3, // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) }; //----------------------------------------------------------------------------- @@ -1783,7 +1849,7 @@ struct ImVector // Constructors, destructor inline ImVector() { Size = Capacity = 0; Data = NULL; } inline ImVector(const ImVector& src) { Size = Capacity = 0; Data = NULL; operator=(src); } - inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } + inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); if (src.Data) memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } inline ~ImVector() { if (Data) IM_FREE(Data); } // Important: does not destruct anything inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } // Important: does not destruct anything @@ -1813,13 +1879,14 @@ struct ImVector inline void resize(int new_size, const T& v) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); if (new_size > Size) for (int n = Size; n < new_size; n++) memcpy(&Data[n], &v, sizeof(v)); Size = new_size; } inline void shrink(int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; } // Resize a vector to a smaller size, guaranteed not to cause a reallocation inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); IM_FREE(Data); } Data = new_data; Capacity = new_capacity; } + inline void reserve_discard(int new_capacity) { if (new_capacity <= Capacity) return; if (Data) IM_FREE(Data); Data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); Capacity = new_capacity; } // NB: It is illegal to call push_back/push_front/insert with a reference pointing inside the ImVector data itself! e.g. v.push_back(v[10]) is forbidden. inline void push_back(const T& v) { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } inline void pop_back() { IM_ASSERT(Size > 0); Size--; } inline void push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } inline T* erase(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((size_t)Size - (size_t)off - 1) * sizeof(T)); Size--; return Data + off; } - inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last > it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - (size_t)count) * sizeof(T)); Size -= (int)count; return Data + off; } + inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last >= it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - (size_t)count) * sizeof(T)); Size -= (int)count; return Data + off; } inline T* erase_unsorted(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; if (it < Data + Size - 1) memcpy(Data + off, Data + Size - 1, sizeof(T)); Size--; return Data + off; } inline T* insert(const T* it, const T& v) { IM_ASSERT(it >= Data && it <= Data + Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(T)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; } inline bool contains(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; } @@ -1846,7 +1913,7 @@ struct ImGuiStyle ImVec2 WindowPadding; // Padding within a window. float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constraint individual windows, use SetNextWindowSizeConstraints(). + ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints(). ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. @@ -1869,7 +1936,7 @@ struct ImGuiStyle float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. float TabBorderSize; // Thickness of border around tabs. - float TabMinWidthForCloseButton; // Minimum width for close button to appears on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + float TabMinWidthForCloseButton; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. @@ -1877,7 +1944,7 @@ struct ImGuiStyle ImVec2 DisplaySafeAreaPadding; // If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly! float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). We apply per-monitor DPI scaling over this scale. May be removed later. bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). - bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering. Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList). bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. float CircleTessellationMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. @@ -1894,25 +1961,36 @@ struct ImGuiStyle // Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage. //----------------------------------------------------------------------------- +// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions. +// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration. +struct ImGuiKeyData +{ + bool Down; // True for if key is down + float DownDuration; // Duration the key has been down (<0.0f: not pressed, 0.0f: just pressed, >0.0f: time held) + float DownDurationPrev; // Last frame duration the key has been down + float AnalogValue; // 0.0f..1.0f for gamepad values +}; + struct ImGuiIO { //------------------------------------------------------------------ - // Configuration (fill once) // Default value + // Configuration // Default value //------------------------------------------------------------------ ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc. ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend) to communicate features supported by the backend. - ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size) - float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. + ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size). May change every frame. + float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame. float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. const char* IniFilename; // = "imgui.ini" // Path to .ini file (important: default "imgui.ini" is relative to current working dir!). Set NULL to disable automatic .ini loading/saving or if you want to manually call LoadIniSettingsXXX() / SaveIniSettingsXXX() functions. const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. - int KeyMap[ImGuiKey_COUNT]; // // Map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. - float KeyRepeatDelay; // = 0.250f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). + float KeyRepeatDelay; // = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. + float HoverDelayNormal; // = 0.30 sec // Delay on hovering before IsItemHovered(ImGuiHoveredFlags_DelayNormal) returns true. + float HoverDelayShort; // = 0.10 sec // Delay on hovering before IsItemHovered(ImGuiHoveredFlags_DelayShort) returns true. void* UserData; // = NULL // Store your own data for retrieval by callbacks. ImFontAtlas*Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. @@ -1936,7 +2014,9 @@ struct ImGuiIO // Miscellaneous options bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations. bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // OS X style: Text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl. + bool ConfigInputTrickleEventQueue; // = true // Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates. bool ConfigInputTextCursorBlink; // = true // Enable blinking cursor (optional as some users consider it to be distracting). + bool ConfigInputTextEnterKeepActive; // = false // [BETA] Pressing Enter will keep item active and select contents (single-line only). bool ConfigDragClickToInputText; // = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). Not desirable on devices without a keyboard. bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) bool ConfigWindowsMoveFromTitleBarOnly; // = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar. @@ -1960,29 +2040,35 @@ struct ImGuiIO void (*SetClipboardTextFn)(void* user_data, const char* text); void* ClipboardUserData; + // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) + // (default to use native imm32 api on Windows) + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + void* ImeWindowHandle; // = NULL // [Obsolete] Set ImGuiViewport::PlatformHandleRaw instead. Set this to your HWND to get automatic IME cursor positioning. +#else + void* _UnusedPadding; // Unused field to keep data structure the same size. +#endif + //------------------------------------------------------------------ - // Input - Fill before calling NewFrame() + // Input - Call before calling NewFrame() //------------------------------------------------------------------ - ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) - bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Others buttons allows us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. - float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. - float MouseWheelH; // Mouse wheel Horizontal. Most users don't have a mouse with an horizontal wheel, may not be filled by all backends. - ImGuiID MouseHoveredViewport; // (Optional) When using multiple viewports: viewport the OS mouse cursor is hovering _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag, and _REGARDLESS_ of whether another viewport is focused. Set io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport if you can provide this info. If you don't imgui will infer the value using the rectangles and last focused time of the viewports it knows about (ignoring other OS windows). - bool KeyCtrl; // Keyboard modifier pressed: Control - bool KeyShift; // Keyboard modifier pressed: Shift - bool KeyAlt; // Keyboard modifier pressed: Alt - bool KeySuper; // Keyboard modifier pressed: Cmd/Super/Windows - bool KeysDown[512]; // Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). - float NavInputs[ImGuiNavInput_COUNT]; // Gamepad inputs. Cleared back to zero by EndFrame(). Keyboard keys will be auto-mapped and be written here by NewFrame(). - - // Functions - IMGUI_API void AddInputCharacter(unsigned int c); // Queue new character input - IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue new character input from an UTF-16 character, it can be a surrogate - IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue new characters input from an UTF-8 string - IMGUI_API void AddFocusEvent(bool focused); // Notifies Dear ImGui when hosting platform windows lose or gain input focus - IMGUI_API void ClearInputCharacters(); // [Internal] Clear the text input buffer manually - IMGUI_API void ClearInputKeys(); // [Internal] Release all keys + // Input Functions + IMGUI_API void AddKeyEvent(ImGuiKey key, bool down); // Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) + IMGUI_API void AddKeyAnalogEvent(ImGuiKey key, bool down, float v); // Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. + IMGUI_API void AddMousePosEvent(float x, float y); // Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered) + IMGUI_API void AddMouseButtonEvent(int button, bool down); // Queue a mouse button change + IMGUI_API void AddMouseWheelEvent(float wh_x, float wh_y); // Queue a mouse wheel update + IMGUI_API void AddMouseViewportEvent(ImGuiID id); // Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support). + IMGUI_API void AddFocusEvent(bool focused); // Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window) + IMGUI_API void AddInputCharacter(unsigned int c); // Queue a new character input + IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue a new character input from a UTF-16 character, it can be a surrogate + IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue a new characters input from a UTF-8 string + + IMGUI_API void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index = -1); // [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. + IMGUI_API void SetAppAcceptingEvents(bool accepting_events); // Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. + IMGUI_API void ClearInputCharacters(); // [Internal] Clear the text input buffer manually + IMGUI_API void ClearInputKeys(); // [Internal] Release all keys //------------------------------------------------------------------ // Output - Updated by NewFrame() or EndFrame()/Render() @@ -1990,50 +2076,72 @@ struct ImGuiIO // generally easier and more correct to use their state BEFORE calling NewFrame(). See FAQ for details!) //------------------------------------------------------------------ - bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). - bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). - bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). - bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. - bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! - bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. - bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). - float Framerate; // Rough estimate of application framerate, in frame per second. Solely for convenience. Rolling average estimation based on io.DeltaTime over 120 frames. - int MetricsRenderVertices; // Vertices output during last call to Render() - int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 - int MetricsRenderWindows; // Number of visible windows - int MetricsActiveWindows; // Number of active windows - int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. - ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). + bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). + bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). + bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. + bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! + bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. + bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). + float Framerate; // Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally. + int MetricsRenderVertices; // Vertices output during last call to Render() + int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 + int MetricsRenderWindows; // Number of visible windows + int MetricsActiveWindows; // Number of active windows + int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. + ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + + // Legacy: before 1.87, we required backend to fill io.KeyMap[] (imgui->native map) during initialization and io.KeysDown[] (native indices) every frame. + // This is still temporarily supported as a legacy feature. However the new preferred scheme is for backend to call io.AddKeyEvent(). + // Old (<1.87): ImGui::IsKeyPressed(ImGui::GetIO().KeyMap[ImGuiKey_Space]) --> New (1.87+) ImGui::IsKeyPressed(ImGuiKey_Space) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + int KeyMap[ImGuiKey_COUNT]; // [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512. + bool KeysDown[ImGuiKey_COUNT]; // [LEGACY] Input: Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow. + float NavInputs[ImGuiNavInput_COUNT]; // [LEGACY] Since 1.88, NavInputs[] was removed. Backends from 1.60 to 1.86 won't build. Feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +#endif //------------------------------------------------------------------ // [Internal] Dear ImGui will maintain those fields. Forward compatibility not guaranteed! //------------------------------------------------------------------ - bool WantCaptureMouseUnlessPopupClose;// Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. - ImGuiKeyModFlags KeyMods; // Key mods flags (same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags), updated by NewFrame() - ImGuiKeyModFlags KeyModsPrev; // Previous key mods - ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) - ImVec2 MouseClickedPos[5]; // Position at time of clicking - double MouseClickedTime[5]; // Time of last click (used to figure out double-click) - bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) - bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) - ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down - ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. - bool MouseReleased[5]; // Mouse button went from Down to !Down - bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. - bool MouseDownOwnedUnlessPopupClose[5];//Track if button was clicked inside a dear imgui window. - float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) - float MouseDownDurationPrev[5]; // Previous time the mouse button has been down - ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point - float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point - float KeysDownDuration[512]; // Duration the keyboard key has been down (0.0f == just pressed) - float KeysDownDurationPrev[512]; // Previous duration the key has been down - float NavInputsDownDuration[ImGuiNavInput_COUNT]; - float NavInputsDownDurationPrev[ImGuiNavInput_COUNT]; - float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. - bool AppFocusLost; - ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16 - ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. + // Main Input State + // (this block used to be written by backend, since 1.87 it is best to NOT write to those directly, call the AddXXX functions above instead) + // (reading from those variables is fair game, as they are extremely unlikely to be moving anywhere) + ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) + bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. + float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. + float MouseWheelH; // Mouse wheel Horizontal. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends. + ImGuiID MouseHoveredViewport; // (Optional) Modify using io.AddMouseViewportEvent(). With multi-viewports: viewport the OS mouse is hovering. If possible _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag is much better (few backends can handle that). Set io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport if you can provide this info. If you don't imgui will infer the value using the rectangles and last focused time of the viewports it knows about (ignoring other OS windows). + bool KeyCtrl; // Keyboard modifier down: Control + bool KeyShift; // Keyboard modifier down: Shift + bool KeyAlt; // Keyboard modifier down: Alt + bool KeySuper; // Keyboard modifier down: Cmd/Super/Windows + + // Other state maintained from data above + IO function calls + ImGuiKeyChord KeyMods; // Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags). Read-only, updated by NewFrame() + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; // Key state for all known keys. Use IsKeyXXX() functions to access this. + bool WantCaptureMouseUnlessPopupClose; // Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. + ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) + ImVec2 MouseClickedPos[5]; // Position at time of clicking + double MouseClickedTime[5]; // Time of last click (used to figure out double-click) + bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) + bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) + ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down + ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. + bool MouseReleased[5]; // Mouse button went from Down to !Down + bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. + bool MouseDownOwnedUnlessPopupClose[5]; // Track if button was clicked inside a dear imgui window. + float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) + float MouseDownDurationPrev[5]; // Previous time the mouse button has been down + ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point + float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds) + float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. + bool AppFocusLost; // Only modify via AddFocusEvent() + bool AppAcceptingEvents; // Only modify via SetAppAcceptingEvents() + ImS8 BackendUsingLegacyKeyArrays; // -1: unknown, 0: using AddKeyEvent(), 1: using legacy io.KeysDown[] + bool BackendUsingLegacyNavInputArray; // 0: using AddKeyAnalogEvent(), 1: writing to legacy io.NavInputs[] directly + ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16() + ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. IMGUI_API ImGuiIO(); }; @@ -2084,7 +2192,7 @@ struct ImGuiInputTextCallbackData // NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough. struct ImGuiSizeCallbackData { - void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints() + void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in here (need reinterpret_cast<>). ImVec2 Pos; // Read-only. Window position, for reference. ImVec2 CurrentSize; // Read-only. Current window size. ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing. @@ -2169,7 +2277,7 @@ struct ImGuiTableSortSpecs #define IM_UNICODE_CODEPOINT_MAX 0xFFFF // Maximum Unicode code point supported by this build. #endif -// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create an UI within deep-nested code that runs multiple times every frame. +// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create a UI within deep-nested code that runs multiple times every frame. // Usage: static ImGuiOnceUponAFrame oaf; if (oaf) ImGui::Text("This will be called only once per frame"); struct ImGuiOnceUponAFrame { @@ -2277,7 +2385,7 @@ struct ImGuiStorage }; // Helper: Manually clip large list of items. -// If you have lots evenly spaced items and you have a random access to the list, you can perform coarse +// If you have lots evenly spaced items and you have random access to the list, you can perform coarse // clipping based on visibility to only submit items that are in view. // The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped. // (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally @@ -2322,6 +2430,8 @@ struct ImGuiListClipper }; // Helpers macros to generate 32-bit encoded colors +// User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file. +#ifndef IM_COL32_R_SHIFT #ifdef IMGUI_USE_BGRA_PACKED_COLOR #define IM_COL32_R_SHIFT 16 #define IM_COL32_G_SHIFT 8 @@ -2335,6 +2445,7 @@ struct ImGuiListClipper #define IM_COL32_A_SHIFT 24 #define IM_COL32_A_MASK 0xFF000000 #endif +#endif #define IM_COL32(R,G,B,A) (((ImU32)(A)<> IM_COL32_R_SHIFT) & 0xFF) * sc; Value.y = (float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * sc; Value.z = (float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * sc; Value.w = (float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * sc; } - ImColor(float r, float g, float b, float a = 1.0f) { Value.x = r; Value.y = g; Value.z = b; Value.w = a; } - ImColor(const ImVec4& col) { Value = col; } inline operator ImU32() const { return ImGui::ColorConvertFloat4ToU32(Value); } inline operator ImVec4() const { return Value; } @@ -2389,16 +2500,16 @@ typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* c #define ImDrawCallback_ResetRenderState (ImDrawCallback)(-1) // Typically, 1 command = 1 GPU draw call (unless command is a callback) -// - VtxOffset/IdxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, -// those fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. -// Pre-1.71 backends will typically ignore the VtxOffset/IdxOffset fields. +// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, +// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. +// Backends made for <1.71. will typically ignore the VtxOffset fields. // - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). struct ImDrawCmd { ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates ImTextureID TextureId; // 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas. unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. - unsigned int IdxOffset; // 4 // Start offset in index buffer. Always equal to sum of ElemCount drawn so far. + unsigned int IdxOffset; // 4 // Start offset in index buffer. unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. void* UserCallbackData; // 4-8 // The draw callback code can access this. @@ -2420,7 +2531,7 @@ struct ImDrawVert #else // You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h // The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine. -// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared a the time you'd want to set your type up. +// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared at the time you'd want to set your type up. // NOTE: IMGUI DOESN'T CLEAR THE STRUCTURE AND DOESN'T CALL A CONSTRUCTOR SO ANY CUSTOM FIELD WILL BE UNINITIALIZED. IF YOU ADD EXTRA FIELDS (SUCH AS A 'Z' COORDINATES) YOU WILL NEED TO CLEAR THEM DURING RENDER OR TO IGNORE THEM. IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT; #endif @@ -2475,7 +2586,7 @@ enum ImDrawFlags_ ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, // Default to ALL corners if none of the _RoundCornersXX flags are specified. - ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, }; // Flags for ImDrawList instance. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly. @@ -2484,9 +2595,9 @@ enum ImDrawListFlags_ { ImDrawListFlags_None = 0, ImDrawListFlags_AntiAliasedLines = 1 << 0, // Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles) - ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering. + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). ImDrawListFlags_AntiAliasedFill = 1 << 2, // Enable anti-aliased edge around filled shapes (rounded rectangles, circles). - ImDrawListFlags_AllowVtxOffset = 1 << 3 // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. + ImDrawListFlags_AllowVtxOffset = 1 << 3, // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. }; // Draw command list @@ -2508,7 +2619,7 @@ struct ImDrawList // [Internal, used while building lists] unsigned int _VtxCurrentIdx; // [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. - const ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) + ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) const char* _OwnerName; // Pointer to owner window's name for debugging ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) @@ -2520,10 +2631,10 @@ struct ImDrawList float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content // If you want to create ImDrawList instances, pass them ImGui::GetDrawListSharedData() or create and use your own ImDrawListSharedData (so you can use ImDrawList without ImGui) - ImDrawList(const ImDrawListSharedData* shared_data) { memset(this, 0, sizeof(*this)); _Data = shared_data; } + ImDrawList(ImDrawListSharedData* shared_data) { memset(this, 0, sizeof(*this)); _Data = shared_data; } ~ImDrawList() { _ClearFreeMemory(); } - IMGUI_API void PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) IMGUI_API void PushClipRectFullScreen(); IMGUI_API void PopClipRect(); IMGUI_API void PushTextureID(ImTextureID texture_id); @@ -2532,11 +2643,12 @@ struct ImDrawList inline ImVec2 GetClipRectMax() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.z, cr.w); } // Primitives + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners. // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred). // In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12. // In future versions we will use textures to provide cheaper and higher-quality circles. - // Use AddNgon() and AddNgonFilled() functions if you need to guaranteed a specific number of sides. + // Use AddNgon() and AddNgonFilled() functions if you need to guarantee a specific number of sides. IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f); IMGUI_API void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0, float thickness = 1.0f); // a: upper-left, b: lower-right (== upper-left + size) IMGUI_API void AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0); // a: upper-left, b: lower-right (== upper-left + size) @@ -2552,7 +2664,7 @@ struct ImDrawList IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL); IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); IMGUI_API void AddPolyline(const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness); - IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); // Note: Anti-aliased filling requires points to be in clockwise order. + IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); IMGUI_API void AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0); // Cubic Bezier (4 control points) IMGUI_API void AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments = 0); // Quadratic Bezier (3 control points) @@ -2565,10 +2677,11 @@ struct ImDrawList IMGUI_API void AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags = 0); // Stateful path API, add points then finish with PathFillConvex() or PathStroke() + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. inline void PathClear() { _Path.Size = 0; } inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); } - inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } // Note: Anti-aliased filling requires points to be in clockwise order. + inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } inline void PathStroke(ImU32 col, ImDrawFlags flags = 0, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; } IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 0); IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle @@ -2604,8 +2717,8 @@ struct ImDrawList inline void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); } // Write vertex with unique index #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } - inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } + inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) + inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) #endif // [Internal helpers] @@ -2721,7 +2834,7 @@ enum ImFontAtlasFlags_ ImFontAtlasFlags_None = 0, ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two ImFontAtlasFlags_NoMouseCursors = 1 << 1, // Don't build software mouse cursors into the atlas (save a little texture memory) - ImFontAtlasFlags_NoBakedLines = 1 << 2 // Don't build thick line textures into the atlas (save a little texture memory). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). + ImFontAtlasFlags_NoBakedLines = 1 << 2, // Don't build thick line textures into the atlas (save a little texture memory, allow support for point/nearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). }; // Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding: @@ -2740,7 +2853,7 @@ enum ImFontAtlasFlags_ // - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction. // You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed, // - Even though many functions are suffixed with "TTF", OTF data is supported just as well. -// - This is an old API and it is currently awkward for those and and various other reasons! We will address them in the future! +// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future! struct ImFontAtlas { IMGUI_API ImFontAtlas(); @@ -2764,7 +2877,7 @@ struct ImFontAtlas IMGUI_API bool Build(); // Build pixels data. This is called automatically for you by the GetTexData*** functions. IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 1 byte per-pixel IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 4 bytes-per-pixel - bool IsBuilt() const { return Fonts.Size > 0 && TexReady; } // Bit ambiguous: used to detect when user didn't built texture but effectively we should check TexID != 0 except that would be backend dependent... + bool IsBuilt() const { return Fonts.Size > 0 && TexReady; } // Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... void SetTexID(ImTextureID id) { TexID = id; } //------------------------------------------- @@ -2775,6 +2888,7 @@ struct ImFontAtlas // NB: Make sure that your string are UTF-8 and NOT in your local code page. In C++11, you can create UTF-8 string literal using the u8"Hello world" syntax. See FAQ for details. // NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data. IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin + IMGUI_API const ImWchar* GetGlyphRangesGreek(); // Default + Greek and Coptic IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters IMGUI_API const ImWchar* GetGlyphRangesJapanese(); // Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs @@ -2809,7 +2923,7 @@ struct ImFontAtlas ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure. int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height. - int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0. + int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false). bool Locked; // Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert. // [Internal] @@ -2835,10 +2949,9 @@ struct ImFontAtlas int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors int PackIdLines; // Custom texture rectangle ID for baked anti-aliased lines -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ + // [Obsolete] + //typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ //typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ -#endif }; // Font runtime data and rendering @@ -2881,8 +2994,8 @@ struct ImFont // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; - IMGUI_API void RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const; - IMGUI_API void RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; + IMGUI_API void RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const; + IMGUI_API void RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; // [Internal] Don't use! IMGUI_API void BuildLookupTable(); @@ -2914,7 +3027,7 @@ enum ImGuiViewportFlags_ ImGuiViewportFlags_TopMost = 1 << 9, // Platform Window: Display on top (for tooltips only). ImGuiViewportFlags_Minimized = 1 << 10, // Platform Window: Window is minimized, can skip render. When minimized we tend to avoid using the viewport pos/size for clipping window or testing if they are contained in the viewport. ImGuiViewportFlags_NoAutoMerge = 1 << 11, // Platform Window: Avoid merging this window into another host window. This can only be set via ImGuiWindowClass viewport flags override (because we need to now ahead if we are going to create a viewport in the first place!). - ImGuiViewportFlags_CanHostOtherWindows = 1 << 12 // Main viewport: can host multiple imgui windows (secondary viewports are associated to a single window). + ImGuiViewportFlags_CanHostOtherWindows = 1 << 12, // Main viewport: can host multiple imgui windows (secondary viewports are associated to a single window). }; // - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. @@ -2936,6 +3049,7 @@ struct ImGuiViewport ImGuiID ParentViewportId; // (Advanced) 0: no parent. Instruct the platform backend to setup a parent/child relationship between platform windows. ImDrawData* DrawData; // The ImDrawData corresponding to this viewport. Valid after Render() and until the next call to NewFrame(). + // Platform/Backend Dependent Data // Our design separate the Renderer and Platform backends to facilitate combining default backends with each others. // When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled // by the same system and you may not need to use all the UserData/Handle fields. @@ -2943,7 +3057,8 @@ struct ImGuiViewport void* RendererUserData; // void* to hold custom data structure for the renderer (e.g. swap chain, framebuffers etc.). generally set by your Renderer_CreateWindow function. void* PlatformUserData; // void* to hold custom data structure for the OS / platform (e.g. windowing info, render context). generally set by your Platform_CreateWindow function. void* PlatformHandle; // void* for FindViewportByPlatformHandle(). (e.g. suggested to use natural platform handle such as HWND, GLFWWindow*, SDL_Window*) - void* PlatformHandleRaw; // void* to hold lower-level, platform-native window handle (e.g. the HWND) when using an abstraction layer like GLFW or SDL (where PlatformHandle would be a SDL_Window*) + void* PlatformHandleRaw; // void* to hold lower-level, platform-native window handle (under Win32 this is expected to be a HWND, unused for other platforms), when using an abstraction layer like GLFW or SDL (where PlatformHandle would be a SDL_Window*) + bool PlatformWindowCreated; // Platform window has been created (Platform_CreateWindow() has been called). This is false during the first frame where a viewport is being created. bool PlatformRequestMove; // Platform window requested move (e.g. window was moved by the OS / host window manager, authoritative position will be OS window position) bool PlatformRequestResize; // Platform window requested resize (e.g. window was resized by the OS / host window manager, authoritative size will be OS window size) bool PlatformRequestClose; // Platform window requested closure (e.g. window was moved by the OS / host window manager, e.g. pressing ALT-F4) @@ -2957,7 +3072,7 @@ struct ImGuiViewport }; //----------------------------------------------------------------------------- -// [SECTION] Platform interface for multi-viewport support +// [SECTION] Platform Dependent Interfaces (for e.g. multi-viewport support) //----------------------------------------------------------------------------- // [BETA] (Optional) This is completely optional, for advanced users! // If you are new to Dear ImGui and trying to integrate it into your engine, you can probably ignore this for now. @@ -3043,7 +3158,6 @@ struct ImGuiPlatformIO void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); // N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96 DPI. void (*Platform_OnChangedViewport)(ImGuiViewport* vp); // . F . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Called during Begin() every time the viewport we are outputting into changes, so backend has a chance to swap fonts to adjust style. - void (*Platform_SetImeInputPos)(ImGuiViewport* vp, ImVec2 pos); // . F . . . // (Optional) Set IME (Input Method Editor, e.g. for Asian languages) input position, so text preview appears over the imgui input box. FIXME: The call timing of this is inconsistent because we want to support without multi-viewports. int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); // (Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie them both). // (Optional) Renderer functions (e.g. DirectX, OpenGL, Vulkan) @@ -3078,60 +3192,93 @@ struct ImGuiPlatformMonitor ImGuiPlatformMonitor() { MainPos = MainSize = WorkPos = WorkSize = ImVec2(0, 0); DpiScale = 1.0f; } }; +// (Optional) Support for IME (Input Method Editor) via the io.SetPlatformImeDataFn() function. +struct ImGuiPlatformImeData +{ + bool WantVisible; // A widget wants the IME to be visible + ImVec2 InputPos; // Position of the input cursor + float InputLineHeight; // Line height + + ImGuiPlatformImeData() { memset(this, 0, sizeof(*this)); } +}; + //----------------------------------------------------------------------------- // [SECTION] Obsolete functions and types // (Will be removed! Read 'API BREAKING CHANGES' section in imgui.cpp for details) // Please keep your copy of dear imgui up to date! Occasionally set '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in imconfig.h to stay ahead. //----------------------------------------------------------------------------- +namespace ImGui +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key); // map ImGuiKey_* values into legacy native key index. == io.KeyMap[key] +#else + static inline ImGuiKey GetKeyIndex(ImGuiKey key) { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END && "ImGuiKey and native_index was merged together and native_index is disabled by IMGUI_DISABLE_OBSOLETE_KEYIO. Please switch to ImGuiKey."); return key; } +#endif +} + #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS namespace ImGui { + // OBSOLETED in 1.89 (from August 2022) + IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); // Use new ImageButton() signature (explicit item id, regular FramePadding) + // OBSOLETED in 1.88 (from May 2022) + static inline void CaptureKeyboardFromApp(bool want_capture_keyboard = true) { SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } // Renamed as name was misleading + removed default value. + static inline void CaptureMouseFromApp(bool want_capture_mouse = true) { SetNextFrameWantCaptureMouse(want_capture_mouse); } // Renamed as name was misleading + removed default value. // OBSOLETED in 1.86 (from November 2021) IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // Calculate coarse clipping for large list of evenly sized items. Prefer using ImGuiListClipper. // OBSOLETED in 1.85 (from August 2021) - static inline float GetWindowContentRegionWidth() { return GetWindowContentRegionMax().x - GetWindowContentRegionMin().x; } + static inline float GetWindowContentRegionWidth() { return GetWindowContentRegionMax().x - GetWindowContentRegionMin().x; } // OBSOLETED in 1.81 (from February 2021) IMGUI_API bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1); // Helper to calculate size from items_count and height_in_items static inline bool ListBoxHeader(const char* label, const ImVec2& size = ImVec2(0, 0)) { return BeginListBox(label, size); } - static inline void ListBoxFooter() { EndListBox(); } - // OBSOLETED in 1.79 (from August 2020) - static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! - // OBSOLETED in 1.78 (from June 2020) - // Old drag/sliders functions that took a 'float power = 1.0' argument instead of flags. - // For shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. - IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power); - IMGUI_API bool DragScalarN(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, float power); - static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } - static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } - static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } - static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } - IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power); - IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power); - static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } - static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } - static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } - static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } - // OBSOLETED in 1.77 (from June 2020) - static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } - // OBSOLETED in 1.72 (from April 2019) - static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } - // OBSOLETED in 1.71 (from June 2019) - static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } - // OBSOLETED in 1.70 (from May 2019) - static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } + static inline void ListBoxFooter() { EndListBox(); } // Some of the older obsolete names along with their replacement (commented out so they are not reported in IDE) - //static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } // OBSOLETED in 1.69 (from Mar 2019) - //static inline void SetScrollHere(float ratio = 0.5f) { SetScrollHereY(ratio); } // OBSOLETED in 1.66 (from Nov 2018) - //static inline bool IsItemDeactivatedAfterChange() { return IsItemDeactivatedAfterEdit(); } // OBSOLETED in 1.63 (from Aug 2018) - //static inline bool IsAnyWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_AnyWindow); } // OBSOLETED in 1.60 (from Apr 2018) - //static inline bool IsAnyWindowHovered() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.60 (between Dec 2017 and Apr 2018) - //static inline void ShowTestWindow() { return ShowDemoWindow(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) - //static inline bool IsRootWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootWindow); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) - //static inline bool IsRootWindowOrAnyChildFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) - //static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) - //static inline float GetItemsLineHeightWithSpacing() { return GetFrameHeightWithSpacing(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //-- OBSOLETED in 1.79 (from August 2020) + //static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! + //-- OBSOLETED in 1.78 (from June 2020): Old drag/sliders functions that took a 'float power > 1.0f' argument instead of ImGuiSliderFlags_Logarithmic. See github.com/ocornut/imgui/issues/3361 for details. + //IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power = 1.0f) // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool DragScalarN(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, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //-- OBSOLETED in 1.77 and before + //static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } // OBSOLETED in 1.77 (from June 2020) + //static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } // OBSOLETED in 1.72 (from July 2019) + //static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } // OBSOLETED in 1.71 (from June 2019) + //static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } // OBSOLETED in 1.70 (from May 2019) + //static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } // OBSOLETED in 1.69 (from Mar 2019) + //static inline void SetScrollHere(float ratio = 0.5f) { SetScrollHereY(ratio); } // OBSOLETED in 1.66 (from Nov 2018) + //static inline bool IsItemDeactivatedAfterChange() { return IsItemDeactivatedAfterEdit(); } // OBSOLETED in 1.63 (from Aug 2018) + //-- OBSOLETED in 1.60 and before + //static inline bool IsAnyWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_AnyWindow); } // OBSOLETED in 1.60 (from Apr 2018) + //static inline bool IsAnyWindowHovered() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.60 (between Dec 2017 and Apr 2018) + //static inline void ShowTestWindow() { return ShowDemoWindow(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootWindow); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowOrAnyChildFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline float GetItemsLineHeightWithSpacing() { return GetFrameHeightWithSpacing(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //IMGUI_API bool Begin(char* name, bool* p_open, ImVec2 size_first_use, float bg_alpha = -1.0f, ImGuiWindowFlags flags=0); // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017): Equivalent of using SetNextWindowSize(size, ImGuiCond_FirstUseEver) and SetNextWindowBgAlpha(). + //static inline bool IsRootWindowOrAnyChildHovered() { return IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void AlignFirstTextHeightToWidgets() { AlignTextToFramePadding(); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void SetNextWindowPosCenter(ImGuiCond c=0) { SetNextWindowPos(GetMainViewport()->GetCenter(), c, ImVec2(0.5f,0.5f)); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline bool IsItemHoveredRect() { return IsItemHovered(ImGuiHoveredFlags_RectOnly); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsPosHoveringAnyWindow(const ImVec2&) { IM_ASSERT(0); return false; } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017): This was misleading and partly broken. You probably want to use the io.WantCaptureMouse flag instead. + //static inline bool IsMouseHoveringAnyWindow() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsMouseHoveringWindow() { return IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //-- OBSOLETED in 1.50 and before + //static inline bool CollapsingHeader(char* label, const char* str_id, bool framed = true, bool default_open = false) { return CollapsingHeader(label, (default_open ? (1 << 5) : 0)); } // OBSOLETED in 1.49 + //static inline ImFont*GetWindowFont() { return GetFont(); } // OBSOLETED in 1.48 + //static inline float GetWindowFontSize() { return GetFontSize(); } // OBSOLETED in 1.48 + //static inline void SetScrollPosHere() { SetScrollHere(); } // OBSOLETED in 1.42 } // OBSOLETED in 1.82 (from Mars 2021): flags for AddRect(), AddRectFilled(), AddImageRounded(), PathRect() @@ -3147,11 +3294,26 @@ enum ImDrawCornerFlags_ ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight, ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight, ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, - ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight + ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight, }; +// RENAMED and MERGED both ImGuiKey_ModXXX and ImGuiModFlags_XXX into ImGuiMod_XXX (from September 2022) +// RENAMED ImGuiKeyModFlags -> ImGuiModFlags in 1.88 (from April 2022). Exceptionally commented out ahead of obscolescence schedule to reduce confusion and because they were not meant to be used in the first place. +typedef ImGuiKeyChord ImGuiModFlags; // == int. We generally use ImGuiKeyChord to mean "a ImGuiKey or-ed with any number of ImGuiMod_XXX value", but you may store only mods in there. +enum ImGuiModFlags_ { ImGuiModFlags_None = 0, ImGuiModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiModFlags_Shift = ImGuiMod_Shift, ImGuiModFlags_Alt = ImGuiMod_Alt, ImGuiModFlags_Super = ImGuiMod_Super }; +//typedef ImGuiKeyChord ImGuiKeyModFlags; // == int +//enum ImGuiKeyModFlags_ { ImGuiKeyModFlags_None = 0, ImGuiKeyModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiKeyModFlags_Shift = ImGuiMod_Shift, ImGuiKeyModFlags_Alt = ImGuiMod_Alt, ImGuiKeyModFlags_Super = ImGuiMod_Super }; + #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// RENAMED IMGUI_DISABLE_METRICS_WINDOW > IMGUI_DISABLE_DEBUG_TOOLS in 1.88 (from June 2022) +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && !defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_DEBUG_TOOLS) +#define IMGUI_DISABLE_DEBUG_TOOLS +#endif +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) +#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name. +#endif + //----------------------------------------------------------------------------- #if defined(__clang__) diff --git a/imgui-sys/third-party/imgui-docking/imgui/imgui_demo.cpp b/imgui-sys/third-party/imgui-docking/imgui/imgui_demo.cpp index 5d6779e9a..45308def6 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imgui_demo.cpp +++ b/imgui-sys/third-party/imgui-docking/imgui/imgui_demo.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (demo code) // Help: @@ -8,11 +8,15 @@ // Read imgui.cpp for more details, documentation and comments. // Get the latest version at https://github.com/ocornut/imgui +// ------------------------------------------------- +// PLEASE DO NOT REMOVE THIS FILE FROM YOUR PROJECT! +// ------------------------------------------------- // Message to the person tempted to delete this file when integrating Dear ImGui into their codebase: -// Do NOT remove this file from your project! Think again! It is the most useful reference code that you and other -// coders will want to refer to and call. Have the ImGui::ShowDemoWindow() function wired in an always-available -// debug menu of your game/app! Removing this file from your project is hindering access to documentation for everyone -// in your team, likely leading you to poorer usage of the library. +// Think again! It is the most useful reference code that you and other coders will want to refer to and call. +// Have the ImGui::ShowDemoWindow() function wired in an always-available debug menu of your game/app! +// Also include Metrics! ItemPicker! DebugLog! and other debug features. +// Removing this file from your project is hindering access to documentation for everyone in your team, +// likely leading you to poorer usage of the library. // Everything in this file will be stripped out by the linker if you don't call ImGui::ShowDemoWindow(). // If you want to link core Dear ImGui in your shipped builds but want a thorough guarantee that the demo will not be // linked, you can setup your imconfig.h with #define IMGUI_DISABLE_DEMO_WINDOWS and those functions will be empty. @@ -39,22 +43,25 @@ // Because we can't assume anything about your support of maths operators, we cannot use them in imgui_demo.cpp. // Navigating this file: -// - In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. // - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. /* Index of this file: -// [SECTION] Forward Declarations, Helpers +// [SECTION] Forward Declarations +// [SECTION] Helpers // [SECTION] Demo Window / ShowDemoWindow() +// - ShowDemoWindow() // - sub section: ShowDemoWindowWidgets() // - sub section: ShowDemoWindowLayout() // - sub section: ShowDemoWindowPopups() // - sub section: ShowDemoWindowTables() -// - sub section: ShowDemoWindowMisc() +// - sub section: ShowDemoWindowInputs() // [SECTION] About Window / ShowAboutWindow() // [SECTION] Style Editor / ShowStyleEditor() +// [SECTION] User Guide / ShowUserGuide() // [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() // [SECTION] Example App: Debug Console / ShowExampleAppConsole() // [SECTION] Example App: Debug Log / ShowExampleAppLog() @@ -93,8 +100,9 @@ Index of this file: // Visual Studio warnings #ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). #endif // Clang/GCC warnings with -Weverything @@ -187,12 +195,25 @@ static void ShowExampleAppWindowTitles(bool* p_open); static void ShowExampleAppCustomRendering(bool* p_open); static void ShowExampleMenuFile(); +// We split the contents of the big ShowDemoWindow() function into smaller functions +// (because the link time of very large functions grow non-linearly) +static void ShowDemoWindowWidgets(); +static void ShowDemoWindowLayout(); +static void ShowDemoWindowPopups(); +static void ShowDemoWindowTables(); +static void ShowDemoWindowColumns(); +static void ShowDemoWindowInputs(); + +//----------------------------------------------------------------------------- +// [SECTION] Helpers +//----------------------------------------------------------------------------- + // Helper to display a little (?) mark which shows a tooltip when hovered. // In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md) static void HelpMarker(const char* desc) { ImGui::TextDisabled("(?)"); - if (ImGui::IsItemHovered()) + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) { ImGui::BeginTooltip(); ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); @@ -212,80 +233,39 @@ static void ShowDockingDisabledMessage() io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; } -// Helper to wire demo markers located in code to a interactive browser +// Helper to wire demo markers located in code to an interactive browser typedef void (*ImGuiDemoMarkerCallback)(const char* file, int line, const char* section, void* user_data); -extern ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback; -extern void* GImGuiDemoMarkerCallbackUserData; -ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback = NULL; -void* GImGuiDemoMarkerCallbackUserData = NULL; +extern ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback; +extern void* GImGuiDemoMarkerCallbackUserData; +ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback = NULL; +void* GImGuiDemoMarkerCallbackUserData = NULL; #define IMGUI_DEMO_MARKER(section) do { if (GImGuiDemoMarkerCallback != NULL) GImGuiDemoMarkerCallback(__FILE__, __LINE__, section, GImGuiDemoMarkerCallbackUserData); } while (0) -// Helper to display basic user controls. -void ImGui::ShowUserGuide() -{ - ImGuiIO& io = ImGui::GetIO(); - ImGui::BulletText("Double-click on title bar to collapse window."); - ImGui::BulletText( - "Click and drag on lower corner to resize window\n" - "(double-click to auto fit window to its contents)."); - ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text."); - ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields."); - ImGui::BulletText("CTRL+Tab to select a window."); - if (io.FontAllowUserScaling) - ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents."); - ImGui::BulletText("While inputing text:\n"); - ImGui::Indent(); - ImGui::BulletText("CTRL+Left/Right to word jump."); - ImGui::BulletText("CTRL+A or double-click to select all."); - ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste."); - ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo."); - ImGui::BulletText("ESCAPE to revert."); - ImGui::BulletText("You can apply arithmetic operators +,*,/ on numerical values.\nUse +- to subtract."); - ImGui::Unindent(); - ImGui::BulletText("With keyboard navigation enabled:"); - ImGui::Indent(); - ImGui::BulletText("Arrow keys to navigate."); - ImGui::BulletText("Space to activate a widget."); - ImGui::BulletText("Return to input text into a widget."); - ImGui::BulletText("Escape to deactivate a widget, close popup, exit child window."); - ImGui::BulletText("Alt to jump to the menu layer of a window."); - ImGui::Unindent(); -} - //----------------------------------------------------------------------------- // [SECTION] Demo Window / ShowDemoWindow() //----------------------------------------------------------------------------- +// - ShowDemoWindow() // - ShowDemoWindowWidgets() // - ShowDemoWindowLayout() // - ShowDemoWindowPopups() // - ShowDemoWindowTables() // - ShowDemoWindowColumns() -// - ShowDemoWindowMisc() +// - ShowDemoWindowInputs() //----------------------------------------------------------------------------- -// We split the contents of the big ShowDemoWindow() function into smaller functions -// (because the link time of very large functions grow non-linearly) -static void ShowDemoWindowWidgets(); -static void ShowDemoWindowLayout(); -static void ShowDemoWindowPopups(); -static void ShowDemoWindowTables(); -static void ShowDemoWindowColumns(); -static void ShowDemoWindowMisc(); - // Demonstrate most Dear ImGui features (this is big function!) // You may execute this function to experiment with the UI and understand what it does. // You may then search for keywords in the code when you are interested by a specific feature. void ImGui::ShowDemoWindow(bool* p_open) { // Exceptionally add an extra assert here for people confused about initial Dear ImGui setup - // Most ImGui functions would normally just crash if the context is missing. + // Most functions would normally just crash if the context is missing. IM_ASSERT(ImGui::GetCurrentContext() != NULL && "Missing dear imgui context. Refer to examples app!"); // Examples Apps (accessible from the "Examples" menu) static bool show_app_main_menu_bar = false; static bool show_app_dockspace = false; static bool show_app_documents = false; - static bool show_app_console = false; static bool show_app_log = false; static bool show_app_layout = false; @@ -301,7 +281,6 @@ void ImGui::ShowDemoWindow(bool* p_open) if (show_app_main_menu_bar) ShowExampleAppMainMenuBar(); if (show_app_dockspace) ShowExampleAppDockSpace(&show_app_dockspace); // Process the Docking app first, as explicit DockSpace() nodes needs to be submitted early (read comments near the DockSpace function) if (show_app_documents) ShowExampleAppDocuments(&show_app_documents); // Process the Document app next, as it may also use a DockSpace() - if (show_app_console) ShowExampleAppConsole(&show_app_console); if (show_app_log) ShowExampleAppLog(&show_app_log); if (show_app_layout) ShowExampleAppLayout(&show_app_layout); @@ -314,15 +293,21 @@ void ImGui::ShowDemoWindow(bool* p_open) if (show_app_window_titles) ShowExampleAppWindowTitles(&show_app_window_titles); if (show_app_custom_rendering) ShowExampleAppCustomRendering(&show_app_custom_rendering); - // Dear ImGui Apps (accessible from the "Tools" menu) + // Dear ImGui Tools/Apps (accessible from the "Tools" menu) static bool show_app_metrics = false; + static bool show_app_debug_log = false; static bool show_app_stack_tool = false; - static bool show_app_style_editor = false; static bool show_app_about = false; + static bool show_app_style_editor = false; - if (show_app_metrics) { ImGui::ShowMetricsWindow(&show_app_metrics); } - if (show_app_stack_tool) { ImGui::ShowStackToolWindow(&show_app_stack_tool); } - if (show_app_about) { ImGui::ShowAboutWindow(&show_app_about); } + if (show_app_metrics) + ImGui::ShowMetricsWindow(&show_app_metrics); + if (show_app_debug_log) + ImGui::ShowDebugLogWindow(&show_app_debug_log); + if (show_app_stack_tool) + ImGui::ShowStackToolWindow(&show_app_stack_tool); + if (show_app_about) + ImGui::ShowAboutWindow(&show_app_about); if (show_app_style_editor) { ImGui::Begin("Dear ImGui Style Editor", &show_app_style_editor); @@ -373,10 +358,8 @@ void ImGui::ShowDemoWindow(bool* p_open) } // Most "big" widgets share a common width settings by default. See 'Demo->Layout->Widgets Width' for details. - // e.g. Use 2/3 of the space for widgets and 1/3 for labels (right align) //ImGui::PushItemWidth(-ImGui::GetWindowWidth() * 0.35f); - // e.g. Leave a fixed amount of width for labels (by passing a negative value), the rest goes to widgets. ImGui::PushItemWidth(ImGui::GetFontSize() * -12); @@ -412,10 +395,14 @@ void ImGui::ShowDemoWindow(bool* p_open) if (ImGui::BeginMenu("Tools")) { IMGUI_DEMO_MARKER("Menu/Tools"); -#ifndef IMGUI_DISABLE_METRICS_WINDOW - ImGui::MenuItem("Metrics/Debugger", NULL, &show_app_metrics); - ImGui::MenuItem("Stack Tool", NULL, &show_app_stack_tool); +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + const bool has_debug_tools = true; +#else + const bool has_debug_tools = false; #endif + ImGui::MenuItem("Metrics/Debugger", NULL, &show_app_metrics, has_debug_tools); + ImGui::MenuItem("Debug Log", NULL, &show_app_debug_log, has_debug_tools); + ImGui::MenuItem("Stack Tool", NULL, &show_app_stack_tool, has_debug_tools); ImGui::MenuItem("Style Editor", NULL, &show_app_style_editor); ImGui::MenuItem("About Dear ImGui", NULL, &show_app_about); ImGui::EndMenu(); @@ -423,7 +410,7 @@ void ImGui::ShowDemoWindow(bool* p_open) ImGui::EndMenuBar(); } - ImGui::Text("dear imgui says hello. (%s)", IMGUI_VERSION); + ImGui::Text("dear imgui says hello! (%s) (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); ImGui::Spacing(); IMGUI_DEMO_MARKER("Help"); @@ -471,7 +458,7 @@ void ImGui::ShowDemoWindow(bool* p_open) ImGui::SameLine(); ImGui::Text("<>"); } - if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Space))) + if (ImGui::IsKeyPressed(ImGuiKey_Space)) io.ConfigFlags &= ~ImGuiConfigFlags_NoMouse; } ImGui::CheckboxFlags("io.ConfigFlags: NoMouseCursorChange", &io.ConfigFlags, ImGuiConfigFlags_NoMouseCursorChange); @@ -513,8 +500,12 @@ void ImGui::ShowDemoWindow(bool* p_open) ImGui::Unindent(); } + ImGui::Checkbox("io.ConfigInputTrickleEventQueue", &io.ConfigInputTrickleEventQueue); + ImGui::SameLine(); HelpMarker("Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates."); ImGui::Checkbox("io.ConfigInputTextCursorBlink", &io.ConfigInputTextCursorBlink); - ImGui::SameLine(); HelpMarker("Enable blinking cursor (optional as some users consider it to be distracting)"); + ImGui::SameLine(); HelpMarker("Enable blinking cursor (optional as some users consider it to be distracting)."); + ImGui::Checkbox("io.ConfigInputTextEnterKeepActive", &io.ConfigInputTextEnterKeepActive); + ImGui::SameLine(); HelpMarker("Pressing Enter will keep item active and select contents (single-line only)."); ImGui::Checkbox("io.ConfigDragClickToInputText", &io.ConfigDragClickToInputText); ImGui::SameLine(); HelpMarker("Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving)."); ImGui::Checkbox("io.ConfigWindowsResizeFromEdges", &io.ConfigWindowsResizeFromEdges); @@ -535,6 +526,7 @@ void ImGui::ShowDemoWindow(bool* p_open) "Here we expose them as read-only fields to avoid breaking interactions with your backend."); // Make a local copy to avoid modifying actual backend flags. + // FIXME: We don't use BeginDisabled() to keep label bright, maybe we need a BeginReadonly() equivalent.. ImGuiBackendFlags backend_flags = io.BackendFlags; ImGui::CheckboxFlags("io.BackendFlags: HasGamepad", &backend_flags, ImGuiBackendFlags_HasGamepad); ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &backend_flags, ImGuiBackendFlags_HasMouseCursors); @@ -602,7 +594,7 @@ void ImGui::ShowDemoWindow(bool* p_open) ShowDemoWindowLayout(); ShowDemoWindowPopups(); ShowDemoWindowTables(); - ShowDemoWindowMisc(); + ShowDemoWindowInputs(); // End of ShowDemoWindow() ImGui::PopItemWidth(); @@ -676,22 +668,6 @@ static void ShowDemoWindowWidgets() ImGui::SameLine(); ImGui::Text("%d", counter); - IMGUI_DEMO_MARKER("Widgets/Basic/Tooltips"); - ImGui::Text("Hover over me"); - if (ImGui::IsItemHovered()) - ImGui::SetTooltip("I am a tooltip"); - - ImGui::SameLine(); - ImGui::Text("- or me"); - if (ImGui::IsItemHovered()) - { - ImGui::BeginTooltip(); - ImGui::Text("I am a fancy tooltip"); - static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; - ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); - ImGui::EndTooltip(); - } - ImGui::Separator(); ImGui::LabelText("label", "Value"); @@ -716,7 +692,7 @@ static void ShowDemoWindowWidgets() "USER:\n" "Hold SHIFT or use mouse to select text.\n" "CTRL+Left/Right to word jump.\n" - "CTRL+A or double-click to select all.\n" + "CTRL+A or Double-Click to select all.\n" "CTRL+X,CTRL+C,CTRL+V clipboard.\n" "CTRL+Z,CTRL+Y undo/redo.\n" "ESCAPE to revert.\n\n" @@ -731,10 +707,6 @@ static void ShowDemoWindowWidgets() IMGUI_DEMO_MARKER("Widgets/Basic/InputInt, InputFloat"); static int i0 = 123; ImGui::InputInt("input int", &i0); - ImGui::SameLine(); HelpMarker( - "You can apply arithmetic operators +,*,/ on numerical values.\n" - " e.g. [ 100 ], input \'*2\', result becomes [ 200 ]\n" - "Use +- to subtract."); static float f0 = 0.001f; ImGui::InputFloat("input float", &f0, 0.01f, 1.0f, "%.3f"); @@ -819,6 +791,40 @@ static void ShowDemoWindowWidgets() "Using the simplified one-liner ListBox API here.\nRefer to the \"List boxes\" section below for an explanation of how to use the more flexible and general BeginListBox/EndListBox API."); } + { + // Tooltips + IMGUI_DEMO_MARKER("Widgets/Basic/Tooltips"); + ImGui::AlignTextToFramePadding(); + ImGui::Text("Tooltips:"); + + ImGui::SameLine(); + ImGui::Button("Button"); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("I am a tooltip"); + + ImGui::SameLine(); + ImGui::Button("Fancy"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::Text("I am a fancy tooltip"); + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); + ImGui::Text("Sin(time) = %f", sinf((float)ImGui::GetTime())); + ImGui::EndTooltip(); + } + + ImGui::SameLine(); + ImGui::Button("Delayed"); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal)) // Delay best used on items that highlight on hover, so this not a great example! + ImGui::SetTooltip("I am a tooltip with a delay."); + + ImGui::SameLine(); + HelpMarker( + "Tooltip are created by using the IsItemHovered() function over any kind of item."); + + } + ImGui::TreePop(); } @@ -1037,7 +1043,7 @@ static void ShowDemoWindowWidgets() // Note that characters values are preserved even by InputText() if the font cannot be displayed, // so you can safely copy & paste garbled characters into another application. ImGui::TextWrapped( - "CJK text will only appears if the font was loaded with the appropriate CJK character ranges. " + "CJK text will only appear if the font was loaded with the appropriate CJK character ranges. " "Call io.Fonts->AddFontFromFileTTF() manually to load extra character ranges. " "Read docs/FONTS.md for details."); ImGui::Text("Hiragana: \xe3\x81\x8b\xe3\x81\x8d\xe3\x81\x8f\xe3\x81\x91\xe3\x81\x93 (kakikukeko)"); // Normally we would use u8"blah blah" with the proper characters directly in the string. @@ -1110,15 +1116,21 @@ static void ShowDemoWindowWidgets() static int pressed_count = 0; for (int i = 0; i < 8; i++) { + // UV coordinates are often (0.0f, 0.0f) and (1.0f, 1.0f) to display an entire textures. + // Here are trying to display only a 32x32 pixels area of the texture, hence the UV computation. + // Read about UV coordinates here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples ImGui::PushID(i); - int frame_padding = -1 + i; // -1 == uses default padding (style.FramePadding) - ImVec2 size = ImVec2(32.0f, 32.0f); // Size of the image we want to make visible - ImVec2 uv0 = ImVec2(0.0f, 0.0f); // UV coordinates for lower-left - ImVec2 uv1 = ImVec2(32.0f / my_tex_w, 32.0f / my_tex_h);// UV coordinates for (32,32) in our texture - ImVec4 bg_col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); // Black background - ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint - if (ImGui::ImageButton(my_tex_id, size, uv0, uv1, frame_padding, bg_col, tint_col)) + if (i > 0) + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(i - 1.0f, i - 1.0f)); + ImVec2 size = ImVec2(32.0f, 32.0f); // Size of the image we want to make visible + ImVec2 uv0 = ImVec2(0.0f, 0.0f); // UV coordinates for lower-left + ImVec2 uv1 = ImVec2(32.0f / my_tex_w, 32.0f / my_tex_h); // UV coordinates for (32,32) in our texture + ImVec4 bg_col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); // Black background + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + if (ImGui::ImageButton("", my_tex_id, size, uv0, uv1, bg_col, tint_col)) pressed_count += 1; + if (i > 0) + ImGui::PopStyleVar(); ImGui::PopID(); ImGui::SameLine(); } @@ -1130,6 +1142,7 @@ static void ShowDemoWindowWidgets() IMGUI_DEMO_MARKER("Widgets/Combo"); if (ImGui::TreeNode("Combo")) { + // Combo Boxes are also called "Dropdown" in other systems // Expose flags as checkbox for the demo static ImGuiComboFlags flags = 0; ImGui::CheckboxFlags("ImGuiComboFlags_PopupAlignLeft", &flags, ImGuiComboFlags_PopupAlignLeft); @@ -1494,7 +1507,7 @@ static void ShowDemoWindowWidgets() static char buf3[64]; static int edit_count = 0; ImGui::InputText("Edit", buf3, 64, ImGuiInputTextFlags_CallbackEdit, Funcs::MyCallback, (void*)&edit_count); - ImGui::SameLine(); HelpMarker("Here we toggle the casing of the first character on every edits + count edits."); + ImGui::SameLine(); HelpMarker("Here we toggle the casing of the first character on every edit + count edits."); ImGui::SameLine(); ImGui::Text("(%d)", edit_count); ImGui::TreePop(); @@ -1914,10 +1927,9 @@ static void ShowDemoWindowWidgets() ImGui::Combo("Display Mode", &display_mode, "Auto/Current\0None\0RGB Only\0HSV Only\0Hex Only\0"); ImGui::SameLine(); HelpMarker( "ColorEdit defaults to displaying RGB inputs if you don't specify a display mode, " - "but the user can change it with a right-click.\n\nColorPicker defaults to displaying RGB+HSV+Hex " + "but the user can change it with a right-click on those inputs.\n\nColorPicker defaults to displaying RGB+HSV+Hex " "if you don't specify a display mode.\n\nYou can change the defaults using SetColorEditOptions()."); - ImGui::Combo("Picker Mode", &picker_mode, "Auto/Current\0Hue bar + SV rect\0Hue wheel + SV triangle\0"); - ImGui::SameLine(); HelpMarker("User can right-click the picker to change mode."); + ImGui::SameLine(); HelpMarker("When not specified explicitly (Auto/Current mode), user can right-click the picker to change mode."); ImGuiColorEditFlags flags = misc_flags; if (!alpha) flags |= ImGuiColorEditFlags_NoAlpha; // This is by default if you call ColorPicker3() instead of ColorPicker4() if (alpha_bar) flags |= ImGuiColorEditFlags_AlphaBar; @@ -1941,6 +1953,15 @@ static void ShowDemoWindowWidgets() if (ImGui::Button("Default: Float + HDR + Hue Wheel")) ImGui::SetColorEditOptions(ImGuiColorEditFlags_Float | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_PickerHueWheel); + // Always both a small version of both types of pickers (to make it more visible in the demo to people who are skimming quickly through it) + ImGui::Text("Both types:"); + float w = (ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.y) * 0.40f; + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##5", (float*)&color, ImGuiColorEditFlags_PickerHueBar | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + ImGui::SameLine(); + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##6", (float*)&color, ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + // HSV encoded support (to avoid RGB<>HSV round trips and singularities when S==0 or V==0) static ImVec4 color_hsv(0.23f, 1.0f, 1.0f, 1.0f); // Stored as HSV! ImGui::Spacing(); @@ -2011,7 +2032,7 @@ static void ShowDemoWindowWidgets() // - integer/float/double // To avoid polluting the public API with all possible combinations, we use the ImGuiDataType enum // to pass the type, and passing all arguments by pointer. - // This is the reason the test code below creates local variables to hold "zero" "one" etc. for each types. + // This is the reason the test code below creates local variables to hold "zero" "one" etc. for each type. // In practice, if you frequently use a given type that is not covered by the normal API entry points, // you can wrap it yourself inside a 1 line function which can take typed argument as value instead of void*, // and then pass their address to the generic function. For example: @@ -2056,13 +2077,14 @@ static void ShowDemoWindowWidgets() ImGui::Text("Drags:"); ImGui::Checkbox("Clamp integers to 0..50", &drag_clamp); ImGui::SameLine(); HelpMarker( - "As with every widgets in dear imgui, we never modify values unless there is a user interaction.\n" + "As with every widget in dear imgui, we never modify values unless there is a user interaction.\n" "You can override the clamping limits by using CTRL+Click to input a value."); ImGui::DragScalar("drag s8", ImGuiDataType_S8, &s8_v, drag_speed, drag_clamp ? &s8_zero : NULL, drag_clamp ? &s8_fifty : NULL); ImGui::DragScalar("drag u8", ImGuiDataType_U8, &u8_v, drag_speed, drag_clamp ? &u8_zero : NULL, drag_clamp ? &u8_fifty : NULL, "%u ms"); ImGui::DragScalar("drag s16", ImGuiDataType_S16, &s16_v, drag_speed, drag_clamp ? &s16_zero : NULL, drag_clamp ? &s16_fifty : NULL); ImGui::DragScalar("drag u16", ImGuiDataType_U16, &u16_v, drag_speed, drag_clamp ? &u16_zero : NULL, drag_clamp ? &u16_fifty : NULL, "%u ms"); ImGui::DragScalar("drag s32", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL); + ImGui::DragScalar("drag s32 hex", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL, "0x%08X"); ImGui::DragScalar("drag u32", ImGuiDataType_U32, &u32_v, drag_speed, drag_clamp ? &u32_zero : NULL, drag_clamp ? &u32_fifty : NULL, "%u ms"); ImGui::DragScalar("drag s64", ImGuiDataType_S64, &s64_v, drag_speed, drag_clamp ? &s64_zero : NULL, drag_clamp ? &s64_fifty : NULL); ImGui::DragScalar("drag u64", ImGuiDataType_U64, &u64_v, drag_speed, drag_clamp ? &u64_zero : NULL, drag_clamp ? &u64_fifty : NULL); @@ -2080,6 +2102,7 @@ static void ShowDemoWindowWidgets() ImGui::SliderScalar("slider s32 low", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty,"%d"); ImGui::SliderScalar("slider s32 high", ImGuiDataType_S32, &s32_v, &s32_hi_a, &s32_hi_b, "%d"); ImGui::SliderScalar("slider s32 full", ImGuiDataType_S32, &s32_v, &s32_min, &s32_max, "%d"); + ImGui::SliderScalar("slider s32 hex", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty, "0x%04X"); ImGui::SliderScalar("slider u32 low", ImGuiDataType_U32, &u32_v, &u32_zero, &u32_fifty,"%u"); ImGui::SliderScalar("slider u32 high", ImGuiDataType_U32, &u32_v, &u32_hi_a, &u32_hi_b, "%u"); ImGui::SliderScalar("slider u32 full", ImGuiDataType_U32, &u32_v, &u32_min, &u32_max, "%u"); @@ -2113,9 +2136,9 @@ static void ShowDemoWindowWidgets() ImGui::InputScalar("input s16", ImGuiDataType_S16, &s16_v, inputs_step ? &s16_one : NULL, NULL, "%d"); ImGui::InputScalar("input u16", ImGuiDataType_U16, &u16_v, inputs_step ? &u16_one : NULL, NULL, "%u"); ImGui::InputScalar("input s32", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%d"); - ImGui::InputScalar("input s32 hex", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%08X", ImGuiInputTextFlags_CharsHexadecimal); + ImGui::InputScalar("input s32 hex", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%04X"); ImGui::InputScalar("input u32", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%u"); - ImGui::InputScalar("input u32 hex", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%08X", ImGuiInputTextFlags_CharsHexadecimal); + ImGui::InputScalar("input u32 hex", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%08X"); ImGui::InputScalar("input s64", ImGuiDataType_S64, &s64_v, inputs_step ? &s64_one : NULL); ImGui::InputScalar("input u64", ImGuiDataType_U64, &u64_v, inputs_step ? &u64_one : NULL); ImGui::InputScalar("input float", ImGuiDataType_Float, &f32_v, inputs_step ? &f32_one : NULL); @@ -2353,7 +2376,7 @@ static void ShowDemoWindowWidgets() HelpMarker("Testing how various types of items are interacting with the IsItemXXX functions. Note that the bool return value of most ImGui function is generally equivalent to calling ImGui::IsItemHovered()."); ImGui::Checkbox("Item Disabled", &item_disabled); - // Submit selected item item so we can query their status in the code following it. + // Submit selected items so we can query their status in the code following it. bool ret = false; static bool b = false; static float col4f[4] = { 1.0f, 0.5, 0.0f, 1.0f }; @@ -2377,6 +2400,10 @@ static void ShowDemoWindowWidgets() if (item_type == 14){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::Combo("ITEM: Combo", ¤t, items, IM_ARRAYSIZE(items)); } if (item_type == 15){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::ListBox("ITEM: ListBox", ¤t, items, IM_ARRAYSIZE(items), IM_ARRAYSIZE(items)); } + bool hovered_delay_none = ImGui::IsItemHovered(); + bool hovered_delay_short = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort); + bool hovered_delay_normal = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal); + // Display the values of IsItemHovered() and other common item state functions. // Note that the ImGuiHoveredFlags_XXX flags can be combined. // Because BulletText is an item itself and that would affect the output of IsItemXXX functions, @@ -2421,6 +2448,8 @@ static void ShowDemoWindowWidgets() ImGui::GetItemRectMax().x, ImGui::GetItemRectMax().y, ImGui::GetItemRectSize().x, ImGui::GetItemRectSize().y ); + ImGui::BulletText( + "w/ Hovering Delay: None = %d, Fast %d, Normal = %d", hovered_delay_none, hovered_delay_short, hovered_delay_normal); if (item_disabled) ImGui::EndDisabled(); @@ -2540,6 +2569,26 @@ static void ShowDemoWindowWidgets() ImGui::SameLine(); HelpMarker("Demonstrate using BeginDisabled()/EndDisabled() across this section."); ImGui::TreePop(); } + + IMGUI_DEMO_MARKER("Widgets/Text Filter"); + if (ImGui::TreeNode("Text Filter")) + { + // Helper class to easy setup a text filter. + // You may want to implement a more feature-full filtering scheme in your own application. + HelpMarker("Not a widget per-se, but ImGuiTextFilter is a helper to perform simple filtering on text strings."); + static ImGuiTextFilter filter; + ImGui::Text("Filter usage:\n" + " \"\" display all lines\n" + " \"xxx\" display lines containing \"xxx\"\n" + " \"xxx,yyy\" display lines containing \"xxx\" or \"yyy\"\n" + " \"-xxx\" hide lines containing \"xxx\""); + filter.Draw(); + const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" }; + for (int i = 0; i < IM_ARRAYSIZE(lines); i++) + if (filter.PassFilter(lines[i])) + ImGui::BulletText("%s", lines[i]); + ImGui::TreePop(); + } } static void ShowDemoWindowLayout() @@ -3266,59 +3315,58 @@ static void ShowDemoWindowLayout() ImGui::DragFloat2("size", (float*)&size, 0.5f, 1.0f, 200.0f, "%.0f"); ImGui::TextWrapped("(Click and drag to scroll)"); + HelpMarker( + "(Left) Using ImGui::PushClipRect():\n" + "Will alter ImGui hit-testing logic + ImDrawList rendering.\n" + "(use this if you want your clipping rectangle to affect interactions)\n\n" + "(Center) Using ImDrawList::PushClipRect():\n" + "Will alter ImDrawList rendering only.\n" + "(use this as a shortcut if you are only using ImDrawList calls)\n\n" + "(Right) Using ImDrawList::AddText() with a fine ClipRect:\n" + "Will alter only this specific ImDrawList::AddText() rendering.\n" + "This is often used internally to avoid altering the clipping rectangle and minimize draw calls."); + for (int n = 0; n < 3; n++) { if (n > 0) ImGui::SameLine(); - ImGui::PushID(n); - ImGui::BeginGroup(); // Lock X position - ImGui::InvisibleButton("##empty", size); + ImGui::PushID(n); + ImGui::InvisibleButton("##canvas", size); if (ImGui::IsItemActive() && ImGui::IsMouseDragging(ImGuiMouseButton_Left)) { offset.x += ImGui::GetIO().MouseDelta.x; offset.y += ImGui::GetIO().MouseDelta.y; } + ImGui::PopID(); + if (!ImGui::IsItemVisible()) // Skip rendering as ImDrawList elements are not clipped. + continue; + const ImVec2 p0 = ImGui::GetItemRectMin(); const ImVec2 p1 = ImGui::GetItemRectMax(); const char* text_str = "Line 1 hello\nLine 2 clip me!"; const ImVec2 text_pos = ImVec2(p0.x + offset.x, p0.y + offset.y); ImDrawList* draw_list = ImGui::GetWindowDrawList(); - switch (n) { case 0: - HelpMarker( - "Using ImGui::PushClipRect():\n" - "Will alter ImGui hit-testing logic + ImDrawList rendering.\n" - "(use this if you want your clipping rectangle to affect interactions)"); ImGui::PushClipRect(p0, p1, true); draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); ImGui::PopClipRect(); break; case 1: - HelpMarker( - "Using ImDrawList::PushClipRect():\n" - "Will alter ImDrawList rendering only.\n" - "(use this as a shortcut if you are only using ImDrawList calls)"); draw_list->PushClipRect(p0, p1, true); draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); draw_list->PopClipRect(); break; case 2: - HelpMarker( - "Using ImDrawList::AddText() with a fine ClipRect:\n" - "Will alter only this specific ImDrawList::AddText() rendering.\n" - "(this is often used internally to avoid altering the clipping rectangle and minimize draw calls)"); ImVec4 clip_rect(p0.x, p0.y, p1.x, p1.y); // AddText() takes a ImVec4* here so let's convert. draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); draw_list->AddText(ImGui::GetFont(), ImGui::GetFontSize(), text_pos, IM_COL32_WHITE, text_str, NULL, 0.0f, &clip_rect); break; } - ImGui::EndGroup(); - ImGui::PopID(); } ImGui::TreePop(); @@ -3455,7 +3503,7 @@ static void ShowDemoWindowPopups() // if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) // OpenPopup(id); // return BeginPopup(id); - // For advanced advanced uses you may want to replicate and customize this code. + // For advanced uses you may want to replicate and customize this code. // See more details in BeginPopupContextItem(). // Example 1 @@ -3484,7 +3532,7 @@ static void ShowDemoWindowPopups() { HelpMarker("Text() elements don't have stable identifiers so we need to provide one."); static float value = 0.5f; - ImGui::Text("Value = %.3f <-- (1) right-click this value", value); + ImGui::Text("Value = %.3f <-- (1) right-click this text", value); if (ImGui::BeginPopupContextItem("my popup")) { if (ImGui::Selectable("Set to zero")) value = 0.0f; @@ -3611,26 +3659,19 @@ static void ShowDemoWindowPopups() ImGui::TextWrapped("Below we are testing adding menu items to a regular window. It's rather unusual but should work!"); ImGui::Separator(); - // Note: As a quirk in this very specific example, we want to differentiate the parent of this menu from the - // parent of the various popup menus above. To do so we are encloding the items in a PushID()/PopID() block - // to make them two different menusets. If we don't, opening any popup above and hovering our menu here would - // open it. This is because once a menu is active, we allow to switch to a sibling menu by just hovering on it, - // which is the desired behavior for regular menus. - ImGui::PushID("foo"); ImGui::MenuItem("Menu item", "CTRL+M"); if (ImGui::BeginMenu("Menu inside a regular window")) { ShowExampleMenuFile(); ImGui::EndMenu(); } - ImGui::PopID(); ImGui::Separator(); ImGui::TreePop(); } } // Dummy data structure that we use for the Table demo. -// (pre-C++11 doesn't allow us to instantiate ImVector template if this structure if defined inside the demo function) +// (pre-C++11 doesn't allow us to instantiate ImVector template if this structure is defined inside the demo function) namespace { // We are passing our own identifier to TableSetupColumn() to facilitate identifying columns in the sorting code. @@ -3849,7 +3890,7 @@ static void ShowDemoWindowTables() } // [Method 2] Using TableNextColumn() called multiple times, instead of using a for loop + TableSetColumnIndex(). - // This is generally more convenient when you have code manually submitting the contents of each columns. + // This is generally more convenient when you have code manually submitting the contents of each column. HelpMarker("Using TableNextRow() + calling TableNextColumn() _before_ each cell, manually."); if (ImGui::BeginTable("table2", 3)) { @@ -3867,10 +3908,10 @@ static void ShowDemoWindowTables() } // [Method 3] We call TableNextColumn() _before_ each cell. We never call TableNextRow(), - // as TableNextColumn() will automatically wrap around and create new roes as needed. + // as TableNextColumn() will automatically wrap around and create new rows as needed. // This is generally more convenient when your cells all contains the same type of data. HelpMarker( - "Only using TableNextColumn(), which tends to be convenient for tables where every cells contains the same type of contents.\n" + "Only using TableNextColumn(), which tends to be convenient for tables where every cell contains the same type of contents.\n" "This is also more similar to the old NextColumn() function of the Columns API, and provided to facilitate the Columns->Tables API transition."); if (ImGui::BeginTable("table3", 3)) { @@ -3922,7 +3963,7 @@ static void ShowDemoWindowTables() ImGui::SameLine(); ImGui::RadioButton("Text", &contents_type, CT_Text); ImGui::SameLine(); ImGui::RadioButton("FillButton", &contents_type, CT_FillButton); ImGui::Checkbox("Display headers", &display_headers); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appears in Headers"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); PopStyleCompact(); if (ImGui::BeginTable("table1", 3, flags)) @@ -3947,7 +3988,7 @@ static void ShowDemoWindowTables() sprintf(buf, "Hello %d,%d", column, row); if (contents_type == CT_Text) ImGui::TextUnformatted(buf); - else if (contents_type) + else if (contents_type == CT_FillButton) ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); } } @@ -3961,8 +4002,8 @@ static void ShowDemoWindowTables() IMGUI_DEMO_MARKER("Tables/Resizable, stretch"); if (ImGui::TreeNode("Resizable, stretch")) { - // By default, if we don't enable ScrollX the sizing policy for each columns is "Stretch" - // Each columns maintain a sizing weight, and they will occupy all available width. + // By default, if we don't enable ScrollX the sizing policy for each column is "Stretch" + // All columns maintain a sizing weight, and they will occupy all available width. static ImGuiTableFlags flags = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; PushStyleCompact(); ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); @@ -4084,7 +4125,7 @@ static void ShowDemoWindowTables() ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); PopStyleCompact(); if (ImGui::BeginTable("table1", 3, flags)) @@ -4142,7 +4183,7 @@ static void ShowDemoWindowTables() "- any form of row selection\n" "Because of this, activating BorderOuterV sets the default to PadOuterX. Using PadOuterX or NoPadOuterX you can override the default.\n\n" "Actual padding values are using style.CellPadding.\n\n" - "In this demo we don't show horizontal borders to emphasis how they don't affect default horizontal padding."); + "In this demo we don't show horizontal borders to emphasize how they don't affect default horizontal padding."); static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV; PushStyleCompact(); @@ -4491,14 +4532,16 @@ static void ShowDemoWindowTables() { ImGui::TableNextColumn(); ImGui::PushID(column); - ImGui::AlignTextToFramePadding(); // FIXME-TABLE: Workaround for wrong text baseline propagation + ImGui::AlignTextToFramePadding(); // FIXME-TABLE: Workaround for wrong text baseline propagation across columns ImGui::Text("'%s'", column_names[column]); ImGui::Spacing(); ImGui::Text("Input flags:"); EditTableColumnsFlags(&column_flags[column]); ImGui::Spacing(); ImGui::Text("Output flags:"); + ImGui::BeginDisabled(); ShowTableColumnsStatusFlags(column_flags_out[column]); + ImGui::EndDisabled(); ImGui::PopID(); } PopStyleCompact(); @@ -4609,7 +4652,7 @@ static void ShowDemoWindowTables() IMGUI_DEMO_MARKER("Tables/Nested tables"); if (ImGui::TreeNode("Nested tables")) { - HelpMarker("This demonstrate embedding a table into another table cell."); + HelpMarker("This demonstrates embedding a table into another table cell."); if (ImGui::BeginTable("table_nested1", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) { @@ -4654,7 +4697,7 @@ static void ShowDemoWindowTables() IMGUI_DEMO_MARKER("Tables/Row height"); if (ImGui::TreeNode("Row height")) { - HelpMarker("You can pass a 'min_row_height' to TableNextRow().\n\nRows are padded with 'style.CellPadding.y' on top and bottom, so effectively the minimum row height will always be >= 'style.CellPadding.y * 2.0f'.\n\nWe cannot honor a _maximum_ row height as that would requires a unique clipping rectangle per row."); + HelpMarker("You can pass a 'min_row_height' to TableNextRow().\n\nRows are padded with 'style.CellPadding.y' on top and bottom, so effectively the minimum row height will always be >= 'style.CellPadding.y * 2.0f'.\n\nWe cannot honor a _maximum_ row height as that would require a unique clipping rectangle per row."); if (ImGui::BeginTable("table_row_height", 1, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersInnerV)) { for (int row = 0; row < 10; row++) @@ -4903,7 +4946,7 @@ static void ShowDemoWindowTables() ImGui::TableSetColumnIndex(1); ImGui::SliderFloat("float1", &dummy_f, 0.0f, 1.0f); ImGui::TableSetColumnIndex(2); - ImGui::SliderFloat("float2", &dummy_f, 0.0f, 1.0f); + ImGui::SliderFloat("##float2", &dummy_f, 0.0f, 1.0f); // No visible label since right-aligned ImGui::PopID(); } ImGui::EndTable(); @@ -5216,7 +5259,7 @@ static void ShowDemoWindowTables() static bool show_headers = true; static bool show_wrapped_text = false; //static ImGuiTextFilter filter; - //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // FIXME-TABLE: Enabling this results in initial clipped first pass on table which tend to affects column sizing + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // FIXME-TABLE: Enabling this results in initial clipped first pass on table which tend to affect column sizing if (ImGui::TreeNode("Options")) { // Make the UI compact because there are so many fields @@ -5243,8 +5286,8 @@ static void ShowDemoWindowTables() ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appears in Headers"); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); ImGui::TreePop(); } @@ -5307,7 +5350,7 @@ static void ShowDemoWindowTables() HelpMarker("If scrolling is disabled (ScrollX and ScrollY not set):\n" "- The table is output directly in the parent window.\n" "- OuterSize.x < 0.0f will right-align the table.\n" - "- OuterSize.x = 0.0f will narrow fit the table unless there are any Stretch column.\n" + "- OuterSize.x = 0.0f will narrow fit the table unless there are any Stretch columns.\n" "- OuterSize.y then becomes the minimum size for the table, which will extend vertically if there are more rows (unless NoHostExtendY is set)."); // From a user point of view we will tend to use 'inner_width' differently depending on whether our table is embedding scrolling. @@ -5712,38 +5755,28 @@ static void ShowDemoWindowColumns() ImGui::TreePop(); } -static void ShowDemoWindowMisc() -{ - IMGUI_DEMO_MARKER("Filtering"); - if (ImGui::CollapsingHeader("Filtering")) - { - // Helper class to easy setup a text filter. - // You may want to implement a more feature-full filtering scheme in your own application. - static ImGuiTextFilter filter; - ImGui::Text("Filter usage:\n" - " \"\" display all lines\n" - " \"xxx\" display lines containing \"xxx\"\n" - " \"xxx,yyy\" display lines containing \"xxx\" or \"yyy\"\n" - " \"-xxx\" hide lines containing \"xxx\""); - filter.Draw(); - const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" }; - for (int i = 0; i < IM_ARRAYSIZE(lines); i++) - if (filter.PassFilter(lines[i])) - ImGui::BulletText("%s", lines[i]); - } +namespace ImGui { extern ImGuiKeyData* GetKeyData(ImGuiKey key); } +static void ShowDemoWindowInputs() +{ IMGUI_DEMO_MARKER("Inputs, Navigation & Focus"); if (ImGui::CollapsingHeader("Inputs, Navigation & Focus")) { ImGuiIO& io = ImGui::GetIO(); // Display ImGuiIO output flags - ImGui::Text("WantCaptureMouse: %d", io.WantCaptureMouse); - ImGui::Text("WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); - ImGui::Text("WantCaptureKeyboard: %d", io.WantCaptureKeyboard); - ImGui::Text("WantTextInput: %d", io.WantTextInput); - ImGui::Text("WantSetMousePos: %d", io.WantSetMousePos); - ImGui::Text("NavActive: %d, NavVisible: %d", io.NavActive, io.NavVisible); + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Output"); + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + if (ImGui::TreeNode("Output")) + { + ImGui::Text("io.WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("io.WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); + ImGui::Text("io.WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + ImGui::Text("io.WantTextInput: %d", io.WantTextInput); + ImGui::Text("io.WantSetMousePos: %d", io.WantSetMousePos); + ImGui::Text("io.NavActive: %d, io.NavVisible: %d", io.NavActive, io.NavVisible); + ImGui::TreePop(); + } // Display Mouse state IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse State"); @@ -5764,26 +5797,138 @@ static void ShowDemoWindowMisc() ImGui::TreePop(); } - // Display Keyboard/Mouse state - IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Keyboard & Navigation State"); - if (ImGui::TreeNode("Keyboard & Navigation State")) + // Display mouse cursors + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse Cursors"); + if (ImGui::TreeNode("Mouse Cursors")) { - ImGui::Text("Keys down:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyDown(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X) (%.02f secs)", i, i, io.KeysDownDuration[i]); } - ImGui::Text("Keys pressed:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyPressed(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X)", i, i); } - ImGui::Text("Keys release:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyReleased(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X)", i, i); } + const char* mouse_cursors_names[] = { "Arrow", "TextInput", "ResizeAll", "ResizeNS", "ResizeEW", "ResizeNESW", "ResizeNWSE", "Hand", "NotAllowed" }; + IM_ASSERT(IM_ARRAYSIZE(mouse_cursors_names) == ImGuiMouseCursor_COUNT); + + ImGuiMouseCursor current = ImGui::GetMouseCursor(); + ImGui::Text("Current mouse cursor = %d: %s", current, mouse_cursors_names[current]); + ImGui::BeginDisabled(true); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &io.BackendFlags, ImGuiBackendFlags_HasMouseCursors); + ImGui::EndDisabled(); + + ImGui::Text("Hover to see mouse cursors:"); + ImGui::SameLine(); HelpMarker( + "Your application can render a different mouse cursor based on what ImGui::GetMouseCursor() returns. " + "If software cursor rendering (io.MouseDrawCursor) is set ImGui will draw the right cursor for you, " + "otherwise your backend needs to handle it."); + for (int i = 0; i < ImGuiMouseCursor_COUNT; i++) + { + char label[32]; + sprintf(label, "Mouse cursor %d: %s", i, mouse_cursors_names[i]); + ImGui::Bullet(); ImGui::Selectable(label, false); + if (ImGui::IsItemHovered()) + ImGui::SetMouseCursor(i); + } + ImGui::TreePop(); + } + + // Display Keyboard/Mouse state + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Keyboard, Gamepad & Navigation State"); + if (ImGui::TreeNode("Keyboard, Gamepad & Navigation State")) + { + // We iterate both legacy native range and named ImGuiKey ranges, which is a little odd but this allows displaying the data for old/new backends. + // User code should never have to go through such hoops: old code may use native keycodes, new code may use ImGuiKey codes. +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey) { return false; } }; + const ImGuiKey key_first = (ImGuiKey)ImGuiKey_NamedKey_BEGIN; +#else + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey key) { return key < 512 && ImGui::GetIO().KeyMap[key] != -1; } }; // Hide Native<>ImGuiKey duplicates when both exists in the array + const ImGuiKey key_first = (ImGuiKey)0; + //ImGui::Text("Legacy raw:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key++) { if (io.KeysDown[key]) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } +#endif + ImGui::Text("Keys down:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyDown(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d (%.02f)", ImGui::GetKeyName(key), key, ImGui::GetKeyData(key)->DownDuration); } } + ImGui::Text("Keys pressed:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyPressed(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } + ImGui::Text("Keys released:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyReleased(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } ImGui::Text("Keys mods: %s%s%s%s", io.KeyCtrl ? "CTRL " : "", io.KeyShift ? "SHIFT " : "", io.KeyAlt ? "ALT " : "", io.KeySuper ? "SUPER " : ""); ImGui::Text("Chars queue:"); for (int i = 0; i < io.InputQueueCharacters.Size; i++) { ImWchar c = io.InputQueueCharacters[i]; ImGui::SameLine(); ImGui::Text("\'%c\' (0x%04X)", (c > ' ' && c <= 255) ? (char)c : '?', c); } // FIXME: We should convert 'c' to UTF-8 here but the functions are not public. - ImGui::Text("NavInputs down:"); for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) if (io.NavInputs[i] > 0.0f) { ImGui::SameLine(); ImGui::Text("[%d] %.2f (%.02f secs)", i, io.NavInputs[i], io.NavInputsDownDuration[i]); } - ImGui::Text("NavInputs pressed:"); for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) if (io.NavInputsDownDuration[i] == 0.0f) { ImGui::SameLine(); ImGui::Text("[%d]", i); } + // Draw an arbitrary US keyboard layout to visualize translated keys + { + const ImVec2 key_size = ImVec2(35.0f, 35.0f); + const float key_rounding = 3.0f; + const ImVec2 key_face_size = ImVec2(25.0f, 25.0f); + const ImVec2 key_face_pos = ImVec2(5.0f, 3.0f); + const float key_face_rounding = 2.0f; + const ImVec2 key_label_pos = ImVec2(7.0f, 4.0f); + const ImVec2 key_step = ImVec2(key_size.x - 1.0f, key_size.y - 1.0f); + const float key_row_offset = 9.0f; + + ImVec2 board_min = ImGui::GetCursorScreenPos(); + ImVec2 board_max = ImVec2(board_min.x + 3 * key_step.x + 2 * key_row_offset + 10.0f, board_min.y + 3 * key_step.y + 10.0f); + ImVec2 start_pos = ImVec2(board_min.x + 5.0f - key_step.x, board_min.y); + + struct KeyLayoutData { int Row, Col; const char* Label; ImGuiKey Key; }; + const KeyLayoutData keys_to_display[] = + { + { 0, 0, "", ImGuiKey_Tab }, { 0, 1, "Q", ImGuiKey_Q }, { 0, 2, "W", ImGuiKey_W }, { 0, 3, "E", ImGuiKey_E }, { 0, 4, "R", ImGuiKey_R }, + { 1, 0, "", ImGuiKey_CapsLock }, { 1, 1, "A", ImGuiKey_A }, { 1, 2, "S", ImGuiKey_S }, { 1, 3, "D", ImGuiKey_D }, { 1, 4, "F", ImGuiKey_F }, + { 2, 0, "", ImGuiKey_LeftShift },{ 2, 1, "Z", ImGuiKey_Z }, { 2, 2, "X", ImGuiKey_X }, { 2, 3, "C", ImGuiKey_C }, { 2, 4, "V", ImGuiKey_V } + }; + + // Elements rendered manually via ImDrawList API are not clipped automatically. + // While not strictly necessary, here IsItemVisible() is used to avoid rendering these shapes when they are out of view. + ImGui::Dummy(ImVec2(board_max.x - board_min.x, board_max.y - board_min.y)); + if (ImGui::IsItemVisible()) + { + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + draw_list->PushClipRect(board_min, board_max, true); + for (int n = 0; n < IM_ARRAYSIZE(keys_to_display); n++) + { + const KeyLayoutData* key_data = &keys_to_display[n]; + ImVec2 key_min = ImVec2(start_pos.x + key_data->Col * key_step.x + key_data->Row * key_row_offset, start_pos.y + key_data->Row * key_step.y); + ImVec2 key_max = ImVec2(key_min.x + key_size.x, key_min.y + key_size.y); + draw_list->AddRectFilled(key_min, key_max, IM_COL32(204, 204, 204, 255), key_rounding); + draw_list->AddRect(key_min, key_max, IM_COL32(24, 24, 24, 255), key_rounding); + ImVec2 face_min = ImVec2(key_min.x + key_face_pos.x, key_min.y + key_face_pos.y); + ImVec2 face_max = ImVec2(face_min.x + key_face_size.x, face_min.y + key_face_size.y); + draw_list->AddRect(face_min, face_max, IM_COL32(193, 193, 193, 255), key_face_rounding, ImDrawFlags_None, 2.0f); + draw_list->AddRectFilled(face_min, face_max, IM_COL32(252, 252, 252, 255), key_face_rounding); + ImVec2 label_min = ImVec2(key_min.x + key_label_pos.x, key_min.y + key_label_pos.y); + draw_list->AddText(label_min, IM_COL32(64, 64, 64, 255), key_data->Label); + if (ImGui::IsKeyDown(key_data->Key)) + draw_list->AddRectFilled(key_min, key_max, IM_COL32(255, 0, 0, 128), key_rounding); + } + draw_list->PopClipRect(); + } + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Capture override")) + { + HelpMarker( + "The value of io.WantCaptureMouse and io.WantCaptureKeyboard are normally set by Dear ImGui " + "to instruct your application of how to route inputs. Typically, when a value is true, it means " + "Dear ImGui wants the corresponding inputs and we expect the underlying application to ignore them.\n\n" + "The most typical case is: when hovering a window, Dear ImGui set io.WantCaptureMouse to true, " + "and underlying application should ignore mouse inputs (in practice there are many and more subtle " + "rules leading to how those flags are set)."); + + ImGui::Text("io.WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("io.WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); + ImGui::Text("io.WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + + HelpMarker( + "Hovering the colored canvas will override io.WantCaptureXXX fields.\n" + "Notice how normally (when set to none), the value of io.WantCaptureKeyboard would be false when hovering and true when clicking."); + static int capture_override_mouse = -1; + static int capture_override_keyboard = -1; + const char* capture_override_desc[] = { "None", "Set to false", "Set to true" }; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureMouse()", &capture_override_mouse, -1, +1, capture_override_desc[capture_override_mouse + 1], ImGuiSliderFlags_AlwaysClamp); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureKeyboard()", &capture_override_keyboard, -1, +1, capture_override_desc[capture_override_keyboard + 1], ImGuiSliderFlags_AlwaysClamp); + + ImGui::ColorButton("##panel", ImVec4(0.7f, 0.1f, 0.7f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, ImVec2(256.0f, 192.0f)); // Dummy item + if (ImGui::IsItemHovered() && capture_override_mouse != -1) + ImGui::SetNextFrameWantCaptureMouse(capture_override_mouse == 1); + if (ImGui::IsItemHovered() && capture_override_keyboard != -1) + ImGui::SetNextFrameWantCaptureKeyboard(capture_override_keyboard == 1); - ImGui::Button("Hovering me sets the\nkeyboard capture flag"); - if (ImGui::IsItemHovered()) - ImGui::CaptureKeyboardFromApp(true); - ImGui::SameLine(); - ImGui::Button("Holding me clears the\nthe keyboard capture flag"); - if (ImGui::IsItemActive()) - ImGui::CaptureKeyboardFromApp(false); ImGui::TreePop(); } @@ -5873,30 +6018,6 @@ static void ShowDemoWindowMisc() ImGui::Text("io.MouseDelta: (%.1f, %.1f)", mouse_delta.x, mouse_delta.y); ImGui::TreePop(); } - - IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse cursors"); - if (ImGui::TreeNode("Mouse cursors")) - { - const char* mouse_cursors_names[] = { "Arrow", "TextInput", "ResizeAll", "ResizeNS", "ResizeEW", "ResizeNESW", "ResizeNWSE", "Hand", "NotAllowed" }; - IM_ASSERT(IM_ARRAYSIZE(mouse_cursors_names) == ImGuiMouseCursor_COUNT); - - ImGuiMouseCursor current = ImGui::GetMouseCursor(); - ImGui::Text("Current mouse cursor = %d: %s", current, mouse_cursors_names[current]); - ImGui::Text("Hover to see mouse cursors:"); - ImGui::SameLine(); HelpMarker( - "Your application can render a different mouse cursor based on what ImGui::GetMouseCursor() returns. " - "If software cursor rendering (io.MouseDrawCursor) is set ImGui will draw the right cursor for you, " - "otherwise your backend needs to handle it."); - for (int i = 0; i < ImGuiMouseCursor_COUNT; i++) - { - char label[32]; - sprintf(label, "Mouse cursor %d: %s", i, mouse_cursors_names[i]); - ImGui::Bullet(); ImGui::Selectable(label, false); - if (ImGui::IsItemHovered()) - ImGui::SetMouseCursor(i); - } - ImGui::TreePop(); - } } } @@ -5941,6 +6062,9 @@ void ImGui::ShowAboutWindow(bool* p_open) #ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_FUNCTIONS"); #endif +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_KEYIO"); +#endif #ifdef IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS"); #endif @@ -6075,7 +6199,7 @@ void ImGui::ShowAboutWindow(bool* p_open) namespace ImGui { IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); } // Demo helper function to select among loaded fonts. -// Here we use the regular BeginCombo()/EndCombo() api which is more the more flexible one. +// Here we use the regular BeginCombo()/EndCombo() api which is the more flexible one. void ImGui::ShowFontSelector(const char* label) { ImGuiIO& io = ImGui::GetIO(); @@ -6367,6 +6491,40 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref) ImGui::PopItemWidth(); } +//----------------------------------------------------------------------------- +// [SECTION] User Guide / ShowUserGuide() +//----------------------------------------------------------------------------- + +void ImGui::ShowUserGuide() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui::BulletText("Double-click on title bar to collapse window."); + ImGui::BulletText( + "Click and drag on lower corner to resize window\n" + "(double-click to auto fit window to its contents)."); + ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text."); + ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields."); + ImGui::BulletText("CTRL+Tab to select a window."); + if (io.FontAllowUserScaling) + ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents."); + ImGui::BulletText("While inputing text:\n"); + ImGui::Indent(); + ImGui::BulletText("CTRL+Left/Right to word jump."); + ImGui::BulletText("CTRL+A or double-click to select all."); + ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste."); + ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo."); + ImGui::BulletText("ESCAPE to revert."); + ImGui::Unindent(); + ImGui::BulletText("With keyboard navigation enabled:"); + ImGui::Indent(); + ImGui::BulletText("Arrow keys to navigate."); + ImGui::BulletText("Space to activate a widget."); + ImGui::BulletText("Return to input text into a widget."); + ImGui::BulletText("Escape to deactivate a widget, close popup, exit child window."); + ImGui::BulletText("Alt to jump to the menu layer of a window."); + ImGui::Unindent(); +} + //----------------------------------------------------------------------------- // [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() //----------------------------------------------------------------------------- @@ -6601,72 +6759,76 @@ struct ExampleAppConsole // Reserve enough left-over height for 1 separator + 1 input text const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing(); - ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar); - if (ImGui::BeginPopupContextWindow()) + if (ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar)) { - if (ImGui::Selectable("Clear")) ClearLog(); - ImGui::EndPopup(); - } + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::Selectable("Clear")) ClearLog(); + ImGui::EndPopup(); + } - // Display every line as a separate entry so we can change their color or add custom widgets. - // If you only want raw text you can use ImGui::TextUnformatted(log.begin(), log.end()); - // NB- if you have thousands of entries this approach may be too inefficient and may require user-side clipping - // to only process visible items. The clipper will automatically measure the height of your first item and then - // "seek" to display only items in the visible area. - // To use the clipper we can replace your standard loop: - // for (int i = 0; i < Items.Size; i++) - // With: - // ImGuiListClipper clipper; - // clipper.Begin(Items.Size); - // while (clipper.Step()) - // for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) - // - That your items are evenly spaced (same height) - // - That you have cheap random access to your elements (you can access them given their index, - // without processing all the ones before) - // You cannot this code as-is if a filter is active because it breaks the 'cheap random-access' property. - // We would need random-access on the post-filtered list. - // A typical application wanting coarse clipping and filtering may want to pre-compute an array of indices - // or offsets of items that passed the filtering test, recomputing this array when user changes the filter, - // and appending newly elements as they are inserted. This is left as a task to the user until we can manage - // to improve this example code! - // If your items are of variable height: - // - Split them into same height items would be simpler and facilitate random-seeking into your list. - // - Consider using manual call to IsRectVisible() and skipping extraneous decoration from your items. - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing - if (copy_to_clipboard) - ImGui::LogToClipboard(); - for (int i = 0; i < Items.Size; i++) - { - const char* item = Items[i]; - if (!Filter.PassFilter(item)) - continue; + // Display every line as a separate entry so we can change their color or add custom widgets. + // If you only want raw text you can use ImGui::TextUnformatted(log.begin(), log.end()); + // NB- if you have thousands of entries this approach may be too inefficient and may require user-side clipping + // to only process visible items. The clipper will automatically measure the height of your first item and then + // "seek" to display only items in the visible area. + // To use the clipper we can replace your standard loop: + // for (int i = 0; i < Items.Size; i++) + // With: + // ImGuiListClipper clipper; + // clipper.Begin(Items.Size); + // while (clipper.Step()) + // for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + // - That your items are evenly spaced (same height) + // - That you have cheap random access to your elements (you can access them given their index, + // without processing all the ones before) + // You cannot this code as-is if a filter is active because it breaks the 'cheap random-access' property. + // We would need random-access on the post-filtered list. + // A typical application wanting coarse clipping and filtering may want to pre-compute an array of indices + // or offsets of items that passed the filtering test, recomputing this array when user changes the filter, + // and appending newly elements as they are inserted. This is left as a task to the user until we can manage + // to improve this example code! + // If your items are of variable height: + // - Split them into same height items would be simpler and facilitate random-seeking into your list. + // - Consider using manual call to IsRectVisible() and skipping extraneous decoration from your items. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing + if (copy_to_clipboard) + ImGui::LogToClipboard(); + for (int i = 0; i < Items.Size; i++) + { + const char* item = Items[i]; + if (!Filter.PassFilter(item)) + continue; - // Normally you would store more information in your item than just a string. - // (e.g. make Items[] an array of structure, store color/type etc.) - ImVec4 color; - bool has_color = false; - if (strstr(item, "[error]")) { color = ImVec4(1.0f, 0.4f, 0.4f, 1.0f); has_color = true; } - else if (strncmp(item, "# ", 2) == 0) { color = ImVec4(1.0f, 0.8f, 0.6f, 1.0f); has_color = true; } - if (has_color) - ImGui::PushStyleColor(ImGuiCol_Text, color); - ImGui::TextUnformatted(item); - if (has_color) - ImGui::PopStyleColor(); - } - if (copy_to_clipboard) - ImGui::LogFinish(); + // Normally you would store more information in your item than just a string. + // (e.g. make Items[] an array of structure, store color/type etc.) + ImVec4 color; + bool has_color = false; + if (strstr(item, "[error]")) { color = ImVec4(1.0f, 0.4f, 0.4f, 1.0f); has_color = true; } + else if (strncmp(item, "# ", 2) == 0) { color = ImVec4(1.0f, 0.8f, 0.6f, 1.0f); has_color = true; } + if (has_color) + ImGui::PushStyleColor(ImGuiCol_Text, color); + ImGui::TextUnformatted(item); + if (has_color) + ImGui::PopStyleColor(); + } + if (copy_to_clipboard) + ImGui::LogFinish(); - if (ScrollToBottom || (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())) - ImGui::SetScrollHereY(1.0f); - ScrollToBottom = false; + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (ScrollToBottom || (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())) + ImGui::SetScrollHereY(1.0f); + ScrollToBottom = false; - ImGui::PopStyleVar(); + ImGui::PopStyleVar(); + } ImGui::EndChild(); ImGui::Separator(); // Command-line bool reclaim_focus = false; - ImGuiInputTextFlags input_text_flags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory; + ImGuiInputTextFlags input_text_flags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_EscapeClearsAll | ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory; if (ImGui::InputText("Input", InputBuf, IM_ARRAYSIZE(InputBuf), input_text_flags, &TextEditCallbackStub, (void*)this)) { char* s = InputBuf; @@ -6908,63 +7070,66 @@ struct ExampleAppLog Filter.Draw("Filter", -100.0f); ImGui::Separator(); - ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar); - - if (clear) - Clear(); - if (copy) - ImGui::LogToClipboard(); - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); - const char* buf = Buf.begin(); - const char* buf_end = Buf.end(); - if (Filter.IsActive()) + if (ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar)) { - // In this example we don't use the clipper when Filter is enabled. - // This is because we don't have a random access on the result on our filter. - // A real application processing logs with ten of thousands of entries may want to store the result of - // search/filter.. especially if the filtering function is not trivial (e.g. reg-exp). - for (int line_no = 0; line_no < LineOffsets.Size; line_no++) - { - const char* line_start = buf + LineOffsets[line_no]; - const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; - if (Filter.PassFilter(line_start, line_end)) - ImGui::TextUnformatted(line_start, line_end); - } - } - else - { - // The simplest and easy way to display the entire buffer: - // ImGui::TextUnformatted(buf_begin, buf_end); - // And it'll just work. TextUnformatted() has specialization for large blob of text and will fast-forward - // to skip non-visible lines. Here we instead demonstrate using the clipper to only process lines that are - // within the visible area. - // If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them - // on your side is recommended. Using ImGuiListClipper requires - // - A) random access into your data - // - B) items all being the same height, - // both of which we can handle since we an array pointing to the beginning of each line of text. - // When using the filter (in the block of code above) we don't have random access into the data to display - // anymore, which is why we don't use the clipper. Storing or skimming through the search result would make - // it possible (and would be recommended if you want to search through tens of thousands of entries). - ImGuiListClipper clipper; - clipper.Begin(LineOffsets.Size); - while (clipper.Step()) - { - for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + if (clear) + Clear(); + if (copy) + ImGui::LogToClipboard(); + + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + const char* buf = Buf.begin(); + const char* buf_end = Buf.end(); + if (Filter.IsActive()) + { + // In this example we don't use the clipper when Filter is enabled. + // This is because we don't have random access to the result of our filter. + // A real application processing logs with ten of thousands of entries may want to store the result of + // search/filter.. especially if the filtering function is not trivial (e.g. reg-exp). + for (int line_no = 0; line_no < LineOffsets.Size; line_no++) { const char* line_start = buf + LineOffsets[line_no]; const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; - ImGui::TextUnformatted(line_start, line_end); + if (Filter.PassFilter(line_start, line_end)) + ImGui::TextUnformatted(line_start, line_end); } } - clipper.End(); - } - ImGui::PopStyleVar(); - - if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) - ImGui::SetScrollHereY(1.0f); + else + { + // The simplest and easy way to display the entire buffer: + // ImGui::TextUnformatted(buf_begin, buf_end); + // And it'll just work. TextUnformatted() has specialization for large blob of text and will fast-forward + // to skip non-visible lines. Here we instead demonstrate using the clipper to only process lines that are + // within the visible area. + // If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them + // on your side is recommended. Using ImGuiListClipper requires + // - A) random access into your data + // - B) items all being the same height, + // both of which we can handle since we have an array pointing to the beginning of each line of text. + // When using the filter (in the block of code above) we don't have random access into the data to display + // anymore, which is why we don't use the clipper. Storing or skimming through the search result would make + // it possible (and would be recommended if you want to search through tens of thousands of entries). + ImGuiListClipper clipper; + clipper.Begin(LineOffsets.Size); + while (clipper.Step()) + { + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + ImGui::TextUnformatted(line_start, line_end); + } + } + clipper.End(); + } + ImGui::PopStyleVar(); + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) + ImGui::SetScrollHereY(1.0f); + } ImGui::EndChild(); ImGui::End(); } @@ -7244,53 +7409,84 @@ static void ShowExampleAppAutoResize(bool* p_open) //----------------------------------------------------------------------------- // Demonstrate creating a window with custom resize constraints. +// Note that size constraints currently don't work on a docked window (when in 'docking' branch) static void ShowExampleAppConstrainedResize(bool* p_open) { struct CustomConstraints { // Helper functions to demonstrate programmatic constraints - static void Square(ImGuiSizeCallbackData* data) { data->DesiredSize.x = data->DesiredSize.y = IM_MAX(data->DesiredSize.x, data->DesiredSize.y); } - static void Step(ImGuiSizeCallbackData* data) { float step = (float)(int)(intptr_t)data->UserData; data->DesiredSize = ImVec2((int)(data->DesiredSize.x / step + 0.5f) * step, (int)(data->DesiredSize.y / step + 0.5f) * step); } + // FIXME: This doesn't take account of decoration size (e.g. title bar), library should make this easier. + static void AspectRatio(ImGuiSizeCallbackData* data) { float aspect_ratio = *(float*)data->UserData; data->DesiredSize.x = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); data->DesiredSize.y = (float)(int)(data->DesiredSize.x / aspect_ratio); } + static void Square(ImGuiSizeCallbackData* data) { data->DesiredSize.x = data->DesiredSize.y = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); } + static void Step(ImGuiSizeCallbackData* data) { float step = *(float*)data->UserData; data->DesiredSize = ImVec2((int)(data->CurrentSize.x / step + 0.5f) * step, (int)(data->CurrentSize.y / step + 0.5f) * step); } }; const char* test_desc[] = { + "Between 100x100 and 500x500", + "At least 100x100", "Resize vertical only", "Resize horizontal only", - "Width > 100, Height > 100", - "Width 400-500", - "Height 400-500", + "Width Between 400 and 500", + "Custom: Aspect Ratio 16:9", "Custom: Always Square", "Custom: Fixed Steps (100)", }; + // Options static bool auto_resize = false; - static int type = 0; + static bool window_padding = true; + static int type = 5; // Aspect Ratio static int display_lines = 10; - if (type == 0) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 0), ImVec2(-1, FLT_MAX)); // Vertical only - if (type == 1) ImGui::SetNextWindowSizeConstraints(ImVec2(0, -1), ImVec2(FLT_MAX, -1)); // Horizontal only - if (type == 2) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(FLT_MAX, FLT_MAX)); // Width > 100, Height > 100 - if (type == 3) ImGui::SetNextWindowSizeConstraints(ImVec2(400, -1), ImVec2(500, -1)); // Width 400-500 - if (type == 4) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 400), ImVec2(-1, 500)); // Height 400-500 - if (type == 5) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Square); // Always Square - if (type == 6) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Step, (void*)(intptr_t)100); // Fixed Step - ImGuiWindowFlags flags = auto_resize ? ImGuiWindowFlags_AlwaysAutoResize : 0; - if (ImGui::Begin("Example: Constrained Resize", p_open, flags)) + // Submit constraint + float aspect_ratio = 16.0f / 9.0f; + float fixed_step = 100.0f; + if (type == 0) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(500, 500)); // Between 100x100 and 500x500 + if (type == 1) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(FLT_MAX, FLT_MAX)); // Width > 100, Height > 100 + if (type == 2) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 0), ImVec2(-1, FLT_MAX)); // Vertical only + if (type == 3) ImGui::SetNextWindowSizeConstraints(ImVec2(0, -1), ImVec2(FLT_MAX, -1)); // Horizontal only + if (type == 4) ImGui::SetNextWindowSizeConstraints(ImVec2(400, -1), ImVec2(500, -1)); // Width Between and 400 and 500 + if (type == 5) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::AspectRatio, (void*)&aspect_ratio); // Aspect ratio + if (type == 6) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Square); // Always Square + if (type == 7) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Step, (void*)&fixed_step); // Fixed Step + + // Submit window + if (!window_padding) + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + const ImGuiWindowFlags window_flags = auto_resize ? ImGuiWindowFlags_AlwaysAutoResize : 0; + const bool window_open = ImGui::Begin("Example: Constrained Resize", p_open, window_flags); + if (!window_padding) + ImGui::PopStyleVar(); + if (window_open) { IMGUI_DEMO_MARKER("Examples/Constrained Resizing window"); - if (ImGui::IsWindowDocked()) - ImGui::Text("Warning: Sizing Constraints won't work if the window is docked!"); - if (ImGui::Button("200x200")) { ImGui::SetWindowSize(ImVec2(200, 200)); } ImGui::SameLine(); - if (ImGui::Button("500x500")) { ImGui::SetWindowSize(ImVec2(500, 500)); } ImGui::SameLine(); - if (ImGui::Button("800x200")) { ImGui::SetWindowSize(ImVec2(800, 200)); } - ImGui::SetNextItemWidth(200); - ImGui::Combo("Constraint", &type, test_desc, IM_ARRAYSIZE(test_desc)); - ImGui::SetNextItemWidth(200); - ImGui::DragInt("Lines", &display_lines, 0.2f, 1, 100); - ImGui::Checkbox("Auto-resize", &auto_resize); - for (int i = 0; i < display_lines; i++) - ImGui::Text("%*sHello, sailor! Making this line long enough for the example.", i * 4, ""); + if (ImGui::GetIO().KeyShift) + { + // Display a dummy viewport (in your real app you would likely use ImageButton() to display a texture. + ImVec2 avail_size = ImGui::GetContentRegionAvail(); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImGui::ColorButton("viewport", ImVec4(0.5f, 0.2f, 0.5f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, avail_size); + ImGui::SetCursorScreenPos(ImVec2(pos.x + 10, pos.y + 10)); + ImGui::Text("%.2f x %.2f", avail_size.x, avail_size.y); + } + else + { + ImGui::Text("(Hold SHIFT to display a dummy viewport)"); + if (ImGui::IsWindowDocked()) + ImGui::Text("Warning: Sizing Constraints won't work if the window is docked!"); + if (ImGui::Button("Set 200x200")) { ImGui::SetWindowSize(ImVec2(200, 200)); } ImGui::SameLine(); + if (ImGui::Button("Set 500x500")) { ImGui::SetWindowSize(ImVec2(500, 500)); } ImGui::SameLine(); + if (ImGui::Button("Set 800x200")) { ImGui::SetWindowSize(ImVec2(800, 200)); } + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::Combo("Constraint", &type, test_desc, IM_ARRAYSIZE(test_desc)); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::DragInt("Lines", &display_lines, 0.2f, 1, 100); + ImGui::Checkbox("Auto-resize", &auto_resize); + ImGui::Checkbox("Window padding", &window_padding); + for (int i = 0; i < display_lines; i++) + ImGui::Text("%*sHello, sailor! Making this line long enough for the example.", i * 4, ""); + } } ImGui::End(); } @@ -7303,29 +7499,35 @@ static void ShowExampleAppConstrainedResize(bool* p_open) // + a context-menu to choose which corner of the screen to use. static void ShowExampleAppSimpleOverlay(bool* p_open) { - static int corner = 0; + static int location = 0; ImGuiIO& io = ImGui::GetIO(); ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoDocking | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav; - if (corner != -1) + if (location >= 0) { const float PAD = 10.0f; const ImGuiViewport* viewport = ImGui::GetMainViewport(); ImVec2 work_pos = viewport->WorkPos; // Use work area to avoid menu-bar/task-bar, if any! ImVec2 work_size = viewport->WorkSize; ImVec2 window_pos, window_pos_pivot; - window_pos.x = (corner & 1) ? (work_pos.x + work_size.x - PAD) : (work_pos.x + PAD); - window_pos.y = (corner & 2) ? (work_pos.y + work_size.y - PAD) : (work_pos.y + PAD); - window_pos_pivot.x = (corner & 1) ? 1.0f : 0.0f; - window_pos_pivot.y = (corner & 2) ? 1.0f : 0.0f; + window_pos.x = (location & 1) ? (work_pos.x + work_size.x - PAD) : (work_pos.x + PAD); + window_pos.y = (location & 2) ? (work_pos.y + work_size.y - PAD) : (work_pos.y + PAD); + window_pos_pivot.x = (location & 1) ? 1.0f : 0.0f; + window_pos_pivot.y = (location & 2) ? 1.0f : 0.0f; ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always, window_pos_pivot); ImGui::SetNextWindowViewport(viewport->ID); window_flags |= ImGuiWindowFlags_NoMove; } + else if (location == -2) + { + // Center window + ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + window_flags |= ImGuiWindowFlags_NoMove; + } ImGui::SetNextWindowBgAlpha(0.35f); // Transparent background if (ImGui::Begin("Example: Simple overlay", p_open, window_flags)) { IMGUI_DEMO_MARKER("Examples/Simple Overlay"); - ImGui::Text("Simple overlay\n" "in the corner of the screen.\n" "(right-click to change position)"); + ImGui::Text("Simple overlay\n" "(right-click to change position)"); ImGui::Separator(); if (ImGui::IsMousePosValid()) ImGui::Text("Mouse Position: (%.1f,%.1f)", io.MousePos.x, io.MousePos.y); @@ -7333,11 +7535,12 @@ static void ShowExampleAppSimpleOverlay(bool* p_open) ImGui::Text("Mouse Position: "); if (ImGui::BeginPopupContextWindow()) { - if (ImGui::MenuItem("Custom", NULL, corner == -1)) corner = -1; - if (ImGui::MenuItem("Top-left", NULL, corner == 0)) corner = 0; - if (ImGui::MenuItem("Top-right", NULL, corner == 1)) corner = 1; - if (ImGui::MenuItem("Bottom-left", NULL, corner == 2)) corner = 2; - if (ImGui::MenuItem("Bottom-right", NULL, corner == 3)) corner = 3; + if (ImGui::MenuItem("Custom", NULL, location == -1)) location = -1; + if (ImGui::MenuItem("Center", NULL, location == -2)) location = -2; + if (ImGui::MenuItem("Top-left", NULL, location == 0)) location = 0; + if (ImGui::MenuItem("Top-right", NULL, location == 1)) location = 1; + if (ImGui::MenuItem("Bottom-left", NULL, location == 2)) location = 2; + if (ImGui::MenuItem("Bottom-right", NULL, location == 3)) location = 3; if (p_open && ImGui::MenuItem("Close")) *p_open = false; ImGui::EndPopup(); } @@ -7353,7 +7556,7 @@ static void ShowExampleAppSimpleOverlay(bool* p_open) static void ShowExampleAppFullscreen(bool* p_open) { static bool use_work_area = true; - static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings; + static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings; // We demonstrate using the full viewport area or the work area (without menu-bars, task-bars etc.) // Based on your use case you may want one of the other. @@ -7385,8 +7588,8 @@ static void ShowExampleAppFullscreen(bool* p_open) // [SECTION] Example App: Manipulating Window Titles / ShowExampleAppWindowTitles() //----------------------------------------------------------------------------- -// Demonstrate using "##" and "###" in identifiers to manipulate ID generation. -// This apply to all regular items as well. +// Demonstrate the use of "##" and "###" in identifiers to manipulate ID generation. +// This applies to all regular items as well. // Read FAQ section "How can I have multiple widgets with the same label?" for details. static void ShowExampleAppWindowTitles(bool*) { @@ -7606,8 +7809,8 @@ static void ShowExampleAppCustomRendering(bool* p_open) // Context menu (under default mouse threshold) ImVec2 drag_delta = ImGui::GetMouseDragDelta(ImGuiMouseButton_Right); - if (opt_enable_context_menu && ImGui::IsMouseReleased(ImGuiMouseButton_Right) && drag_delta.x == 0.0f && drag_delta.y == 0.0f) - ImGui::OpenPopupOnItemClick("context"); + if (opt_enable_context_menu && drag_delta.x == 0.0f && drag_delta.y == 0.0f) + ImGui::OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); if (ImGui::BeginPopup("context")) { if (adding_line) @@ -7930,7 +8133,8 @@ void ShowExampleAppDocuments(bool* p_open) if (ImGui::MenuItem("Close All Documents", NULL, false, open_count > 0)) for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) app.Documents[doc_n].DoQueueClose(); - if (ImGui::MenuItem("Exit", "Alt+F4")) {} + if (ImGui::MenuItem("Exit", "Ctrl+F4") && p_open) + *p_open = false; ImGui::EndMenu(); } ImGui::EndMenuBar(); diff --git a/imgui-sys/third-party/imgui-docking/imgui/imgui_draw.cpp b/imgui-sys/third-party/imgui-docking/imgui/imgui_draw.cpp index 80ef77d3d..3b9a640d8 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imgui_draw.cpp +++ b/imgui-sys/third-party/imgui-docking/imgui/imgui_draw.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (drawing and font code) /* @@ -39,25 +39,12 @@ Index of this file: #endif #include // vsnprintf, sscanf, printf -#if !defined(alloca) -#if defined(__GLIBC__) || defined(__sun) || defined(__APPLE__) || defined(__NEWLIB__) -#include // alloca (glibc uses . Note that Cygwin may have _WIN32 defined, so the order matters here) -#elif defined(_WIN32) -#include // alloca -#if !defined(alloca) -#define alloca _alloca // for clang with MS Codegen -#endif -#else -#include // alloca -#endif -#endif // Visual Studio warnings #ifdef _MSC_VER #pragma warning (disable: 4127) // condition expression is constant #pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#pragma warning (disable: 6255) // [Static Analyzer] _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. #pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). #pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) #endif @@ -67,9 +54,6 @@ Index of this file: #if __has_warning("-Wunknown-warning-option") #pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! #endif -#if __has_warning("-Walloca") -#pragma clang diagnostic ignored "-Walloca" // warning: use of function '__builtin_alloca' is discouraged -#endif #pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' #pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. #pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok. @@ -90,7 +74,7 @@ Index of this file: #endif //------------------------------------------------------------------------- -// [SECTION] STB libraries implementation +// [SECTION] STB libraries implementation (for stb_truetype and stb_rect_pack) //------------------------------------------------------------------------- // Compile time options: @@ -399,7 +383,7 @@ void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error) for (int i = 0; i < IM_ARRAYSIZE(CircleSegmentCounts); i++) { const float radius = (float)i; - CircleSegmentCounts[i] = (ImU8)((i > 0) ? IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError) : 0); + CircleSegmentCounts[i] = (ImU8)((i > 0) ? IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError) : IM_DRAWLIST_ARCFAST_SAMPLE_MAX); } ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); } @@ -408,10 +392,9 @@ void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error) void ImDrawList::_ResetForNewFrame() { // Verify that the ImDrawCmd fields we want to memcmp() are contiguous in memory. - // (those should be IM_STATIC_ASSERT() in theory but with our pre C++11 setup the whole check doesn't compile with GCC) - IM_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); - IM_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); - IM_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); if (_Splitter._Count > 1) _Splitter.Merge(this); @@ -496,9 +479,10 @@ void ImDrawList::AddCallback(ImDrawCallback callback, void* callback_data) } // Compare ClipRect, TextureId and VtxOffset with a single memcmp() -#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) -#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset -#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset +#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) +#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset +#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset +#define ImDrawCmd_AreSequentialIdxOffset(CMD_0, CMD_1) (CMD_0->IdxOffset + CMD_0->ElemCount == CMD_1->IdxOffset) // Try to merge two last draw commands void ImDrawList::_TryMergeDrawCmds() @@ -506,7 +490,7 @@ void ImDrawList::_TryMergeDrawCmds() IM_ASSERT_PARANOID(CmdBuffer.Size > 0); ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; ImDrawCmd* prev_cmd = curr_cmd - 1; - if (ImDrawCmd_HeaderCompare(curr_cmd, prev_cmd) == 0 && curr_cmd->UserCallback == NULL && prev_cmd->UserCallback == NULL) + if (ImDrawCmd_HeaderCompare(curr_cmd, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && curr_cmd->UserCallback == NULL && prev_cmd->UserCallback == NULL) { prev_cmd->ElemCount += curr_cmd->ElemCount; CmdBuffer.pop_back(); @@ -529,7 +513,7 @@ void ImDrawList::_OnChangedClipRect() // Try to merge with previous command if it matches, else use current command ImDrawCmd* prev_cmd = curr_cmd - 1; - if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && prev_cmd->UserCallback == NULL) + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) { CmdBuffer.pop_back(); return; @@ -552,7 +536,7 @@ void ImDrawList::_OnChangedTextureID() // Try to merge with previous command if it matches, else use current command ImDrawCmd* prev_cmd = curr_cmd - 1; - if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && prev_cmd->UserCallback == NULL) + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) { CmdBuffer.pop_back(); return; @@ -588,7 +572,7 @@ int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const } // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) -void ImDrawList::PushClipRect(ImVec2 cr_min, ImVec2 cr_max, bool intersect_with_current_clip_rect) +void ImDrawList::PushClipRect(const ImVec2& cr_min, const ImVec2& cr_max, bool intersect_with_current_clip_rect) { ImVec4 cr(cr_min.x, cr_min.y, cr_max.x, cr_max.y); if (intersect_with_current_clip_rect) @@ -761,7 +745,8 @@ void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 // Temporary buffer // The first items are normals at each line point, then after that there are either 2 or 4 temp points for each line point - ImVec2* temp_normals = (ImVec2*)alloca(points_count * ((use_texture || !thick_line) ? 3 : 5) * sizeof(ImVec2)); //-V630 + _Data->TempBuffer.reserve_discard(points_count * ((use_texture || !thick_line) ? 3 : 5)); + ImVec2* temp_normals = _Data->TempBuffer.Data; ImVec2* temp_points = temp_normals + points_count; // Calculate normals (tangents) for each line segment @@ -981,7 +966,8 @@ void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 } } -// We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. +// - We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. +// - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) { if (points_count < 3) @@ -1008,7 +994,8 @@ void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_coun } // Compute normals - ImVec2* temp_normals = (ImVec2*)alloca(points_count * sizeof(ImVec2)); //-V630 + _Data->TempBuffer.reserve_discard(points_count); + ImVec2* temp_normals = _Data->TempBuffer.Data; for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) { const ImVec2& p0 = points[i0]; @@ -1065,7 +1052,7 @@ void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_coun void ImDrawList::_PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step) { - if (radius <= 0.0f) + if (radius < 0.5f) { _Path.push_back(center); return; @@ -1157,7 +1144,7 @@ void ImDrawList::_PathArcToFastEx(const ImVec2& center, float radius, int a_min_ void ImDrawList::_PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) { - if (radius <= 0.0f) + if (radius < 0.5f) { _Path.push_back(center); return; @@ -1176,7 +1163,7 @@ void ImDrawList::_PathArcToN(const ImVec2& center, float radius, float a_min, fl // 0: East, 3: South, 6: West, 9: North, 12: East void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12) { - if (radius <= 0.0f) + if (radius < 0.5f) { _Path.push_back(center); return; @@ -1186,7 +1173,7 @@ void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_ void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) { - if (radius <= 0.0f) + if (radius < 0.5f) { _Path.push_back(center); return; @@ -1214,8 +1201,8 @@ void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, floa const float a_min_segment_angle = a_min_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; const float a_max_segment_angle = a_max_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; - const bool a_emit_start = (a_min_segment_angle - a_min) != 0.0f; - const bool a_emit_end = (a_max - a_max_segment_angle) != 0.0f; + const bool a_emit_start = ImAbs(a_min_segment_angle - a_min) >= 1e-5f; + const bool a_emit_end = ImAbs(a_max - a_max_segment_angle) >= 1e-5f; _Path.reserve(_Path.Size + (a_mid_samples + 1 + (a_emit_start ? 1 : 0) + (a_emit_end ? 1 : 0))); if (a_emit_start) @@ -1302,6 +1289,7 @@ void ImDrawList::PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, cons ImVec2 p1 = _Path.back(); if (num_segments == 0) { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); PathBezierCubicCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, _Data->CurveTessellationTol, 0); // Auto-tessellated } else @@ -1317,6 +1305,7 @@ void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, ImVec2 p1 = _Path.back(); if (num_segments == 0) { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); PathBezierQuadraticCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, _Data->CurveTessellationTol, 0);// Auto-tessellated } else @@ -1331,6 +1320,7 @@ IM_STATIC_ASSERT(ImDrawFlags_RoundCornersTopLeft == (1 << 4)); static inline ImDrawFlags FixRectCornerFlags(ImDrawFlags flags) { #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // Obsoleted in 1.82 (from February 2021) // Legacy Support for hard coded ~0 (used to be a suggested equivalent to ImDrawCornerFlags_All) // ~0 --> ImDrawFlags_RoundCornersAll or 0 if (flags == ~0) @@ -1367,7 +1357,7 @@ void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDr rounding = ImMin(rounding, ImFabs(b.x - a.x) * ( ((flags & ImDrawFlags_RoundCornersTop) == ImDrawFlags_RoundCornersTop) || ((flags & ImDrawFlags_RoundCornersBottom) == ImDrawFlags_RoundCornersBottom) ? 0.5f : 1.0f ) - 1.0f); rounding = ImMin(rounding, ImFabs(b.y - a.y) * ( ((flags & ImDrawFlags_RoundCornersLeft) == ImDrawFlags_RoundCornersLeft) || ((flags & ImDrawFlags_RoundCornersRight) == ImDrawFlags_RoundCornersRight) ? 0.5f : 1.0f ) - 1.0f); - if (rounding <= 0.0f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) { PathLineTo(a); PathLineTo(ImVec2(b.x, a.y)); @@ -1413,7 +1403,7 @@ void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 c { if ((col & IM_COL32_A_MASK) == 0) return; - if (rounding <= 0.0f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) { PrimReserve(6, 4); PrimRect(p_min, p_max, col); @@ -1489,7 +1479,7 @@ void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImV void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) { - if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) return; if (num_segments <= 0) @@ -1513,7 +1503,7 @@ void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int nu void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) { - if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) return; if (num_segments <= 0) @@ -1653,7 +1643,7 @@ void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_mi return; flags = FixRectCornerFlags(flags); - if (rounding <= 0.0f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) { AddImage(user_texture_id, p_min, p_max, uv_min, uv_max, col); return; @@ -1741,13 +1731,13 @@ void ImDrawListSplitter::Merge(ImDrawList* draw_list) for (int i = 1; i < _Count; i++) { ImDrawChannel& ch = _Channels[i]; - - // Equivalent of PopUnusedDrawCmd() for this channel's cmdbuffer and except we don't need to test for UserCallback. - if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0) + if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0 && ch._CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() ch._CmdBuffer.pop_back(); if (ch._CmdBuffer.Size > 0 && last_cmd != NULL) { + // Do not include ImDrawCmd_AreSequentialIdxOffset() in the compare as we rebuild IdxOffset values ourselves. + // Manipulating IdxOffset (e.g. by reordering draw commands like done by RenderDimmedBackgroundBehindWindow()) is not supported within a splitter. ImDrawCmd* next_cmd = &ch._CmdBuffer[0]; if (ImDrawCmd_HeaderCompare(last_cmd, next_cmd) == 0 && last_cmd->UserCallback == NULL && next_cmd->UserCallback == NULL) { @@ -2305,10 +2295,11 @@ void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], fl void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride) { + IM_ASSERT_PARANOID(w <= stride); unsigned char* data = pixels + x + y * stride; - for (int j = h; j > 0; j--, data += stride) - for (int i = 0; i < w; i++) - data[i] = table[data[i]]; + for (int j = h; j > 0; j--, data += stride - w) + for (int i = w; i > 0; i--, data++) + *data = table[*data]; } #ifdef IMGUI_ENABLE_STB_TRUETYPE @@ -2325,7 +2316,7 @@ struct ImFontBuildSrcData int GlyphsHighest; // Highest requested codepoint int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) - ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsMap) + ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsSet) }; // Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) @@ -2645,8 +2636,8 @@ void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opa for (int i = 0; i < pack_rects.Size; i++) if (pack_rects[i].was_packed) { - user_rects[i].X = pack_rects[i].x; - user_rects[i].Y = pack_rects[i].y; + user_rects[i].X = (unsigned short)pack_rects[i].x; + user_rects[i].Y = (unsigned short)pack_rects[i].y; IM_ASSERT(pack_rects[i].w == user_rects[i].Width && pack_rects[i].h == user_rects[i].Height); atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); } @@ -2746,13 +2737,13 @@ static void ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) { unsigned int* write_ptr = &atlas->TexPixelsRGBA32[r->X + ((r->Y + y) * atlas->TexWidth)]; for (unsigned int i = 0; i < pad_left; i++) - *(write_ptr + i) = IM_COL32_BLACK_TRANS; + *(write_ptr + i) = IM_COL32(255, 255, 255, 0); for (unsigned int i = 0; i < line_width; i++) *(write_ptr + pad_left + i) = IM_COL32_WHITE; for (unsigned int i = 0; i < pad_right; i++) - *(write_ptr + pad_left + line_width + i) = IM_COL32_BLACK_TRANS; + *(write_ptr + pad_left + line_width + i) = IM_COL32(255, 255, 255, 0); } // Calculate UVs for this line @@ -2825,6 +2816,17 @@ const ImWchar* ImFontAtlas::GetGlyphRangesDefault() return &ranges[0]; } +const ImWchar* ImFontAtlas::GetGlyphRangesGreek() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0370, 0x03FF, // Greek and Coptic + 0, + }; + return &ranges[0]; +} + const ImWchar* ImFontAtlas::GetGlyphRangesKorean() { static const ImWchar ranges[] = @@ -3337,11 +3339,21 @@ const ImFontGlyph* ImFont::FindGlyphNoFallback(ImWchar c) const return &Glyphs.Data[i]; } -const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const +// Wrapping skips upcoming blanks +static inline const char* CalcWordWrapNextLineStartA(const char* text, const char* text_end) { - // Simple word-wrapping for English, not full-featured. Please submit failing cases! - // FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) + while (text < text_end && ImCharIsBlankA(*text)) + text++; + if (*text == '\n') + text++; + return text; +} +// Simple word-wrapping for English, not full-featured. Please submit failing cases! +// This will return the next location to wrap from. If no wrapping if necessary, this will fast-forward to e.g. text_end. +// FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) +const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const +{ // For references, possible wrap point marked with ^ // "aaa bbb, ccc,ddd. eee fff. ggg!" // ^ ^ ^ ^ ^__ ^ ^ @@ -3353,7 +3365,6 @@ const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const c // Cut words that cannot possibly fit within one line. // e.g.: "The tropical fish" with ~5 characters worth of width --> "The tr" "opical" "fish" - float line_width = 0.0f; float word_width = 0.0f; float blank_width = 0.0f; @@ -3433,6 +3444,10 @@ const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const c s = next_s; } + // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. + // +1 may not be a character start point in UTF-8 but it's ok because caller loops use (text >= word_wrap_eol). + if (s == text && text < text_end) + return s + 1; return s; } @@ -3457,11 +3472,7 @@ ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, cons { // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. if (!word_wrap_eol) - { word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); - if (word_wrap_eol == s) // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. - word_wrap_eol++; // +1 may not be a character start point in UTF-8 but it's ok because we use s >= word_wrap_eol below - } if (s >= word_wrap_eol) { @@ -3470,13 +3481,7 @@ ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, cons text_size.y += line_height; line_width = 0.0f; word_wrap_eol = NULL; - - // Wrapping skips upcoming blanks - while (s < text_end) - { - const char c = *s; - if (ImCharIsBlankA(c)) { s++; } else if (c == '\n') { s++; break; } else { break; } - } + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks continue; } } @@ -3531,7 +3536,7 @@ ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, cons } // Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. -void ImFont::RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const +void ImFont::RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const { const ImFontGlyph* glyph = FindGlyph(c); if (!glyph || !glyph->Visible) @@ -3539,38 +3544,47 @@ void ImFont::RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col if (glyph->Colored) col |= ~IM_COL32_A_MASK; float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f; - pos.x = IM_FLOOR(pos.x); - pos.y = IM_FLOOR(pos.y); + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); draw_list->PrimReserve(6, 4); - draw_list->PrimRectUV(ImVec2(pos.x + glyph->X0 * scale, pos.y + glyph->Y0 * scale), ImVec2(pos.x + glyph->X1 * scale, pos.y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); + draw_list->PrimRectUV(ImVec2(x + glyph->X0 * scale, y + glyph->Y0 * scale), ImVec2(x + glyph->X1 * scale, y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); } // Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. -void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const +void ImFont::RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const { if (!text_end) text_end = text_begin + strlen(text_begin); // ImGui:: functions generally already provides a valid text_end, so this is merely to handle direct calls. // Align to be pixel perfect - pos.x = IM_FLOOR(pos.x); - pos.y = IM_FLOOR(pos.y); - float x = pos.x; - float y = pos.y; + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); if (y > clip_rect.w) return; + const float start_x = x; const float scale = size / FontSize; const float line_height = FontSize * scale; const bool word_wrap_enabled = (wrap_width > 0.0f); - const char* word_wrap_eol = NULL; // Fast-forward to first visible line const char* s = text_begin; - if (y + line_height < clip_rect.y && !word_wrap_enabled) + if (y + line_height < clip_rect.y) while (y + line_height < clip_rect.y && s < text_end) { - s = (const char*)memchr(s, '\n', text_end - s); - s = s ? s + 1 : text_end; + const char* line_end = (const char*)memchr(s, '\n', text_end - s); + if (word_wrap_enabled) + { + // FIXME-OPT: This is not optimal as do first do a search for \n before calling CalcWordWrapPositionA(). + // If the specs for CalcWordWrapPositionA() were reworked to optionally return on \n we could combine both. + // However it is still better than nothing performing the fast-forward! + s = CalcWordWrapPositionA(scale, s, line_end, wrap_width); + s = CalcWordWrapNextLineStartA(s, text_end); + } + else + { + s = line_end ? line_end + 1 : text_end; + } y += line_height; } @@ -3602,6 +3616,7 @@ void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col unsigned int vtx_current_idx = draw_list->_VtxCurrentIdx; const ImU32 col_untinted = col | ~IM_COL32_A_MASK; + const char* word_wrap_eol = NULL; while (s < text_end) { @@ -3609,24 +3624,14 @@ void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col { // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. if (!word_wrap_eol) - { - word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - pos.x)); - if (word_wrap_eol == s) // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. - word_wrap_eol++; // +1 may not be a character start point in UTF-8 but it's ok because we use s >= word_wrap_eol below - } + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - start_x)); if (s >= word_wrap_eol) { - x = pos.x; + x = start_x; y += line_height; word_wrap_eol = NULL; - - // Wrapping skips upcoming blanks - while (s < text_end) - { - const char c = *s; - if (ImCharIsBlankA(c)) { s++; } else if (c == '\n') { s++; break; } else { break; } - } + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks continue; } } @@ -3648,7 +3653,7 @@ void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col { if (c == '\n') { - x = pos.x; + x = start_x; y += line_height; if (y > clip_rect.w) break; // break out of main loop @@ -3744,7 +3749,6 @@ void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col // - RenderArrow() // - RenderBullet() // - RenderCheckMark() -// - RenderMouseCursor() // - RenderArrowDockMenu() // - RenderArrowPointingAt() // - RenderRectFilledRangeH() @@ -3806,27 +3810,6 @@ void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float draw_list->PathStroke(col, 0, thickness); } -void ImGui::RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) -{ - if (mouse_cursor == ImGuiMouseCursor_None) - return; - IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); - - ImFontAtlas* font_atlas = draw_list->_Data->Font->ContainerAtlas; - ImVec2 offset, size, uv[4]; - if (font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2])) - { - pos -= offset; - ImTextureID tex_id = font_atlas->TexID; - draw_list->PushTextureID(tex_id); - draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow); - draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow); - draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border); - draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill); - draw_list->PopTextureID(); - } -} - // Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side. void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) { @@ -3917,7 +3900,7 @@ void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, Im draw_list->PathFillConvex(col); } -void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding) +void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding) { const bool fill_L = (inner.Min.x > outer.Min.x); const bool fill_R = (inner.Max.x < outer.Max.x); diff --git a/imgui-sys/third-party/imgui-docking/imgui/imgui_internal.h b/imgui-sys/third-party/imgui-docking/imgui/imgui_internal.h index 398c69dc2..59916c790 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imgui_internal.h +++ b/imgui-sys/third-party/imgui-docking/imgui/imgui_internal.h @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (internal structures/api) // You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility! @@ -18,6 +18,7 @@ Index of this file: // [SECTION] Generic helpers // [SECTION] ImDrawList support // [SECTION] Widgets support: flags, enums, data structures +// [SECTION] Inputs support // [SECTION] Clipper support // [SECTION] Navigation support // [SECTION] Columns support @@ -25,6 +26,7 @@ Index of this file: // [SECTION] Docking support // [SECTION] Viewport support // [SECTION] Settings support +// [SECTION] Localization support // [SECTION] Metrics, Debug tools // [SECTION] Generic context hooks // [SECTION] ImGuiContext (main imgui context) @@ -124,6 +126,7 @@ struct ImGuiDockNodeSettings; // Storage for a dock node in .ini file (we struct ImGuiGroupData; // Stacked storage data for BeginGroup()/EndGroup() struct ImGuiInputTextState; // Internal state of the currently focused/edited text input box struct ImGuiLastItemData; // Status storage for last submitted items +struct ImGuiLocEntry; // A localization entry. struct ImGuiMenuColumns; // Simple column measurement, currently used for MenuItem() only struct ImGuiNavItemData; // Result of a gamepad/keyboard directional navigation move query result struct ImGuiMetricsConfig; // Storage for ShowMetricsWindow() and DebugNodeXXX() functions @@ -139,6 +142,7 @@ struct ImGuiTabBar; // Storage for a tab bar struct ImGuiTabItem; // Storage for a tab item (within a tab bar) struct ImGuiTable; // Storage for a table struct ImGuiTableColumn; // Storage for one column of a table +struct ImGuiTableInstanceData; // Storage for one instance of a same table struct ImGuiTableTempData; // Temporary storage for one table (one per table in the stack), shared between tables. struct ImGuiTableSettings; // Storage for a table .ini settings struct ImGuiTableColumnsSettings; // Storage for a column .ini settings @@ -146,15 +150,20 @@ struct ImGuiWindow; // Storage for one window struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame, in practice we currently keep it for each window) struct ImGuiWindowSettings; // Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during this session) +// Enumerations // Use your programming IDE "Go to definition" facility on the names of the center columns to find the actual flags/enum lists. +enum ImGuiLocKey : int; // -> enum ImGuiLocKey // Enum: a localization entry for translation. typedef int ImGuiDataAuthority; // -> enum ImGuiDataAuthority_ // Enum: for storing the source authority (dock node vs window) of a field typedef int ImGuiLayoutType; // -> enum ImGuiLayoutType_ // Enum: Horizontal or vertical + +// Flags typedef int ImGuiActivateFlags; // -> enum ImGuiActivateFlags_ // Flags: for navigation/focus function (will be for ActivateItem() later) -typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag() -typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for DC.LastItemStatusFlags +typedef int ImGuiDebugLogFlags; // -> enum ImGuiDebugLogFlags_ // Flags: for ShowDebugLogWindow(), g.DebugLogFlags +typedef int ImGuiInputFlags; // -> enum ImGuiInputFlags_ // Flags: for IsKeyPressed(), IsMouseClicked(), SetKeyOwner(), SetItemKeyOwner() etc. +typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag(), g.LastItemData.InFlags +typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for g.LastItemData.StatusFlags typedef int ImGuiOldColumnFlags; // -> enum ImGuiOldColumnFlags_ // Flags: for BeginColumns() typedef int ImGuiNavHighlightFlags; // -> enum ImGuiNavHighlightFlags_ // Flags: for RenderNavHighlight() -typedef int ImGuiNavDirSourceFlags; // -> enum ImGuiNavDirSourceFlags_ // Flags: for GetNavInputAmount2d() typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions @@ -199,27 +208,29 @@ namespace ImStb // Internal Drag and Drop payload types. String starting with '_' are reserved for Dear ImGui. #define IMGUI_PAYLOAD_TYPE_WINDOW "_IMWINDOW" // Payload == ImGuiWindow* -// Debug Logging -#ifndef IMGUI_DEBUG_LOG -#define IMGUI_DEBUG_LOG(_FMT,...) printf("[%05d] " _FMT, GImGui->FrameCount, __VA_ARGS__) +// Debug Printing Into TTY +// (since IMGUI_VERSION_NUM >= 18729: IMGUI_DEBUG_LOG was reworked into IMGUI_DEBUG_PRINTF (and removed framecount from it). If you were using a #define IMGUI_DEBUG_LOG please rename) +#ifndef IMGUI_DEBUG_PRINTF +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#define IMGUI_DEBUG_PRINTF(_FMT,...) printf(_FMT, __VA_ARGS__) +#else +#define IMGUI_DEBUG_PRINTF(_FMT,...) +#endif #endif -// Debug Logging for selected systems. Remove the '((void)0) //' to enable. -//#define IMGUI_DEBUG_LOG_POPUP IMGUI_DEBUG_LOG // Enable log -//#define IMGUI_DEBUG_LOG_NAV IMGUI_DEBUG_LOG // Enable log -//#define IMGUI_DEBUG_LOG_VIEWPORT IMGUI_DEBUG_LOG // Enable log -//#define IMGUI_DEBUG_LOG_DOCKING IMGUI_DEBUG_LOG // Enable log -#define IMGUI_DEBUG_LOG_POPUP(...) ((void)0) // Disable log -#define IMGUI_DEBUG_LOG_NAV(...) ((void)0) // Disable log -#define IMGUI_DEBUG_LOG_VIEWPORT(...) ((void)0) // Disable log -#define IMGUI_DEBUG_LOG_DOCKING(...) ((void)0) // Disable log +// Debug Logging for ShowDebugLogWindow(). This is designed for relatively rare events so please don't spam. +#define IMGUI_DEBUG_LOG(...) ImGui::DebugLog(__VA_ARGS__) +#define IMGUI_DEBUG_LOG_ACTIVEID(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventActiveId) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_FOCUS(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventFocus) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_POPUP(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventPopup) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_NAV(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventNav) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_CLIPPER(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventClipper) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_IO(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_DOCKING(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventDocking) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_VIEWPORT(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventViewport) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) // Static Asserts -#if (__cplusplus >= 201100) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201100) #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") -#else -#define IM_STATIC_ASSERT(_COND) typedef char static_assertion_##__line__[(_COND)?1:-1] -#endif // "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much. // We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code. @@ -243,8 +254,10 @@ namespace ImStb #else #define IM_NEWLINE "\n" #endif +#ifndef IM_TABSIZE // Until we move this to runtime and/or add proper tab support, at least allow users to compile-time override #define IM_TABSIZE (4) -#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + (_ALIGN - 1)) & ~(_ALIGN - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8 +#endif +#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + ((_ALIGN) - 1)) & ~((_ALIGN) - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8 #define IM_F32_TO_INT8_UNBOUND(_VAL) ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f))) // Unsaturated, for display purpose #define IM_F32_TO_INT8_SAT(_VAL) ((int)(ImSaturate(_VAL) * 255.0f + 0.5f)) // Saturated, always output 0..255 #define IM_FLOOR(_VAL) ((float)(int)(_VAL)) // ImFloor() is not inlined in MSVC debug builds @@ -291,7 +304,8 @@ namespace ImStb // - Helpers: Hashing // - Helpers: Sorting // - Helpers: Bit manipulation -// - Helpers: String, Formatting +// - Helpers: String +// - Helpers: Formatting // - Helpers: UTF-8 <> wchar conversions // - Helpers: ImVec2/ImVec4 operators // - Helpers: Maths @@ -304,14 +318,12 @@ namespace ImStb // - Helper: ImSpan<>, ImSpanAllocator<> // - Helper: ImPool<> // - Helper: ImChunkStream<> +// - Helper: ImGuiTextIndex //----------------------------------------------------------------------------- // Helpers: Hashing IMGUI_API ImGuiID ImHashData(const void* data, size_t data_size, ImU32 seed = 0); IMGUI_API ImGuiID ImHashStr(const char* data, size_t data_size = 0, ImU32 seed = 0); -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS -static inline ImGuiID ImHash(const void* data, int size, ImU32 seed = 0) { return size ? ImHashData(data, (size_t)size, seed) : ImHashStr((const char*)data, 0, seed); } // [moved to ImHashStr/ImHashData in 1.68] -#endif // Helpers: Sorting #ifndef ImQsort @@ -326,7 +338,7 @@ static inline bool ImIsPowerOfTwo(int v) { return v != 0 && (v & static inline bool ImIsPowerOfTwo(ImU64 v) { return v != 0 && (v & (v - 1)) == 0; } static inline int ImUpperPowerOfTwo(int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; } -// Helpers: String, Formatting +// Helpers: String IMGUI_API int ImStricmp(const char* str1, const char* str2); IMGUI_API int ImStrnicmp(const char* str1, const char* str2, size_t count); IMGUI_API void ImStrncpy(char* dst, const char* src, size_t count); @@ -339,14 +351,23 @@ IMGUI_API const ImWchar*ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* bu IMGUI_API const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); IMGUI_API void ImStrTrimBlanks(char* str); IMGUI_API const char* ImStrSkipBlank(const char* str); +IM_MSVC_RUNTIME_CHECKS_OFF +static inline char ImToUpper(char c) { return (c >= 'a' && c <= 'z') ? c &= ~32 : c; } +static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } +static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Formatting IMGUI_API int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) IM_FMTARGS(3); IMGUI_API int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) IM_FMTLIST(3); IMGUI_API const char* ImParseFormatFindStart(const char* format); IMGUI_API const char* ImParseFormatFindEnd(const char* format); IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); +IMGUI_API void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size); IMGUI_API int ImParseFormatPrecision(const char* format, int default_value); -static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } -static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } // Helpers: UTF-8 <> wchar conversions IMGUI_API const char* ImTextCharToUtf8(char out_buf[5], unsigned int c); // return out_buf @@ -453,8 +474,9 @@ static inline float ImLengthSqr(const ImVec2& lhs) static inline float ImLengthSqr(const ImVec4& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y) + (lhs.z * lhs.z) + (lhs.w * lhs.w); } static inline float ImInvLength(const ImVec2& lhs, float fail_value) { float d = (lhs.x * lhs.x) + (lhs.y * lhs.y); if (d > 0.0f) return ImRsqrt(d); return fail_value; } static inline float ImFloor(float f) { return (float)(int)(f); } -static inline float ImFloorSigned(float f) { return (float)((f >= 0 || (int)f == f) ? (int)f : (int)f - 1); } // Decent replacement for floorf() +static inline float ImFloorSigned(float f) { return (float)((f >= 0 || (float)(int)f == f) ? (int)f : (int)f - 1); } // Decent replacement for floorf() static inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2((float)(int)(v.x), (float)(int)(v.y)); } +static inline ImVec2 ImFloorSigned(const ImVec2& v) { return ImVec2(ImFloorSigned(v.x), ImFloorSigned(v.y)); } static inline int ImModPositive(int a, int b) { return (a + b) % b; } static inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; } static inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); } @@ -481,17 +503,17 @@ IM_MSVC_RUNTIME_CHECKS_OFF struct ImVec1 { float x; - ImVec1() { x = 0.0f; } - ImVec1(float _x) { x = _x; } + constexpr ImVec1() : x(0.0f) { } + constexpr ImVec1(float _x) : x(_x) { } }; // Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage) struct ImVec2ih { short x, y; - ImVec2ih() { x = y = 0; } - ImVec2ih(short _x, short _y) { x = _x; y = _y; } - explicit ImVec2ih(const ImVec2& rhs) { x = (short)rhs.x; y = (short)rhs.y; } + constexpr ImVec2ih() : x(0), y(0) {} + constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {} + constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {} }; // Helper: ImRect (2D axis aligned bounding-box) @@ -501,10 +523,10 @@ struct IMGUI_API ImRect ImVec2 Min; // Upper-left ImVec2 Max; // Lower-right - ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} - ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} - ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} - ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} + constexpr ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} + constexpr ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} + constexpr ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} + constexpr ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + Max.y) * 0.5f); } ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); } @@ -552,17 +574,18 @@ inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on ran // Helper: ImBitArray class (wrapper over ImBitArray functions) // Store 1-bit per value. -template -struct IMGUI_API ImBitArray +template +struct ImBitArray { ImU32 Storage[(BITCOUNT + 31) >> 5]; ImBitArray() { ClearAllBits(); } void ClearAllBits() { memset(Storage, 0, sizeof(Storage)); } void SetAllBits() { memset(Storage, 255, sizeof(Storage)); } - bool TestBit(int n) const { IM_ASSERT(n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } - void SetBit(int n) { IM_ASSERT(n < BITCOUNT); ImBitArraySetBit(Storage, n); } - void ClearBit(int n) { IM_ASSERT(n < BITCOUNT); ImBitArrayClearBit(Storage, n); } - void SetBitRange(int n, int n2) { ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2) + bool TestBit(int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } + void SetBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArraySetBit(Storage, n); } + void ClearBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArrayClearBit(Storage, n); } + void SetBitRange(int n, int n2) { n += OFFSET; n2 += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT && n2 > n && n2 <= BITCOUNT); ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2) + bool operator[](int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } }; // Helper: ImBitVector @@ -633,7 +656,7 @@ struct ImSpanAllocator // Honor constructor/destructor. Add/remove invalidate all pointers. Indexes have the same lifetime as the associated object. typedef int ImPoolIdx; template -struct IMGUI_API ImPool +struct ImPool { ImVector Buf; // Contiguous data ImGuiStorage Map; // ID->Index @@ -670,7 +693,7 @@ struct IMGUI_API ImPool // We store the chunk size first, and align the final size on 4 bytes boundaries. // The tedious/zealous amount of casting is to avoid -Wcast-align warnings. template -struct IMGUI_API ImChunkStream +struct ImChunkStream { ImVector Buf; @@ -688,6 +711,20 @@ struct IMGUI_API ImChunkStream }; +// Helper: ImGuiTextIndex<> +// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. +struct ImGuiTextIndex +{ + ImVector LineOffsets; + int EndOffset = 0; // Because we don't own text buffer we need to maintain EndOffset (may bake in LineOffsets?) + + void clear() { LineOffsets.clear(); EndOffset = 0; } + int size() { return LineOffsets.Size; } + const char* get_line_begin(const char* base, int n) { return base + LineOffsets[n]; } + const char* get_line_end(const char* base, int n) { return base + (n + 1 < LineOffsets.Size ? (LineOffsets[n + 1] - 1) : EndOffset); } + void append(const char* base, int old_size, int new_size); +}; + //----------------------------------------------------------------------------- // [SECTION] ImDrawList support //----------------------------------------------------------------------------- @@ -702,7 +739,6 @@ struct IMGUI_API ImChunkStream // // Rendering circles with an odd number of segments, while mathematically correct will produce // asymmetrical results on the raster grid. Therefore we're rounding N to next even number (7->8, 8->8, 9->10 etc.) -// #define IM_ROUNDUP_TO_EVEN(_V) ((((_V) + 1) / 2) * 2) #define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN 4 #define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX 512 @@ -730,6 +766,9 @@ struct IMGUI_API ImDrawListSharedData ImVec4 ClipRectFullscreen; // Value for PushClipRectFullscreen() ImDrawListFlags InitialFlags; // Initial flags at the beginning of the frame (it is possible to alter flags on a per-drawlist basis afterwards) + // [Internal] Temp write buffer + ImVector TempBuffer; + // [Internal] Lookup tables ImVec2 ArcFastVtx[IM_DRAWLIST_ARCFAST_TABLE_SIZE]; // Sample points on the quarter of the circle. float ArcFastRadiusCutoff; // Cutoff radius after which arc drawing will fallback to slower PathArcTo() @@ -754,10 +793,14 @@ struct ImDrawDataBuilder // [SECTION] Widgets support: flags, enums, data structures //----------------------------------------------------------------------------- -// Transient per-window flags, reset at the beginning of the frame. For child window, inherited from parent on first Begin(). +// Flags used by upcoming items +// - input: PushItemFlag() manipulates g.CurrentItemFlags, ItemAdd() calls may add extra flags. +// - output: stored in g.LastItemData.InFlags +// Current window shared by all windows. // This is going to be exposed in imgui.h when stabilized enough. enum ImGuiItemFlags_ { + // Controlled by user ImGuiItemFlags_None = 0, ImGuiItemFlags_NoTabStop = 1 << 0, // false // Disable keyboard tabbing (FIXME: should merge with _NoNav) ImGuiItemFlags_ButtonRepeat = 1 << 1, // false // Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings. @@ -767,10 +810,14 @@ enum ImGuiItemFlags_ ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, // false // Disable MenuItem/Selectable() automatically closing their popup window ImGuiItemFlags_MixedValue = 1 << 6, // false // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets) ImGuiItemFlags_ReadOnly = 1 << 7, // false // [ALPHA] Allow hovering interactions but underlying value is not changed. - ImGuiItemFlags_Inputable = 1 << 8 // false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature. + ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, // false // Disable hoverable check in ItemHoverable() + + // Controlled by widget code + ImGuiItemFlags_Inputable = 1 << 10, // false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature. }; -// Storage for LastItem data +// Status flags for an already submitted item +// - output: stored in g.LastItemData.StatusFlags enum ImGuiItemStatusFlags_ { ImGuiItemStatusFlags_None = 0, @@ -782,14 +829,14 @@ enum ImGuiItemStatusFlags_ ImGuiItemStatusFlags_HasDeactivated = 1 << 5, // Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag. ImGuiItemStatusFlags_Deactivated = 1 << 6, // Only valid if ImGuiItemStatusFlags_HasDeactivated is set. ImGuiItemStatusFlags_HoveredWindow = 1 << 7, // Override the HoveredWindow test to allow cross-window hover testing. - ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8 // Set when the Focusable item just got focused by Tabbing (FIXME: to be removed soon) + ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, // Set when the Focusable item just got focused by Tabbing (FIXME: to be removed soon) + ImGuiItemStatusFlags_Visible = 1 << 9, // [WIP] Set when item is overlapping the current clipping rectangle (Used internally. Please don't use yet: API/system will change as we refactor Itemadd()). #ifdef IMGUI_ENABLE_TEST_ENGINE - , // [imgui_tests only] - ImGuiItemStatusFlags_Openable = 1 << 20, // + ImGuiItemStatusFlags_Openable = 1 << 20, // Item is an openable (e.g. TreeNode) ImGuiItemStatusFlags_Opened = 1 << 21, // - ImGuiItemStatusFlags_Checkable = 1 << 22, // - ImGuiItemStatusFlags_Checked = 1 << 23 // + ImGuiItemStatusFlags_Checkable = 1 << 22, // Item is a checkable (e.g. CheckBox, MenuItem) + ImGuiItemStatusFlags_Checked = 1 << 23, // #endif }; @@ -799,7 +846,7 @@ enum ImGuiInputTextFlagsPrivate_ // [Internal] ImGuiInputTextFlags_Multiline = 1 << 26, // For internal use by InputTextMultiline() ImGuiInputTextFlags_NoMarkEdited = 1 << 27, // For internal use by functions using InputText() before reformatting data - ImGuiInputTextFlags_MergedItem = 1 << 28 // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match. + ImGuiInputTextFlags_MergedItem = 1 << 28, // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match. }; // Extend ImGuiButtonFlags_ @@ -819,23 +866,25 @@ enum ImGuiButtonFlagsPrivate_ ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine ImGuiButtonFlags_NoKeyModifiers = 1 << 16, // disable mouse interaction if a key modifier is held ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only) - ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated + ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated (FIXME: this is essentially used everytime an item uses ImGuiItemFlags_NoNav, but because legacy specs don't requires LastItemData to be set ButtonBehavior(), we can't poll g.LastItemData.InFlags) ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, // don't report as hovered when nav focus is on this item + ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, // don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, // don't test key/input owner when polling the key (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, - ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, }; // Extend ImGuiComboFlags_ enum ImGuiComboFlagsPrivate_ { - ImGuiComboFlags_CustomPreview = 1 << 20 // enable BeginComboPreview() + ImGuiComboFlags_CustomPreview = 1 << 20, // enable BeginComboPreview() }; // Extend ImGuiSliderFlags_ enum ImGuiSliderFlagsPrivate_ { ImGuiSliderFlags_Vertical = 1 << 20, // Should this slider be orientated vertically? - ImGuiSliderFlags_ReadOnly = 1 << 21 + ImGuiSliderFlags_ReadOnly = 1 << 21, }; // Extend ImGuiSelectableFlags_ @@ -849,33 +898,34 @@ enum ImGuiSelectableFlagsPrivate_ ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, // Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus) ImGuiSelectableFlags_DrawHoveredWhenHeld = 1 << 25, // Always show active when held, even is not hovered. This concept could probably be renamed/formalized somehow. ImGuiSelectableFlags_SetNavIdOnHover = 1 << 26, // Set Nav/Focus ID on mouse hover (used by MenuItem) - ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 27 // Disable padding each side with ItemSpacing * 0.5f + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 27, // Disable padding each side with ItemSpacing * 0.5f + ImGuiSelectableFlags_NoSetKeyOwner = 1 << 28, // Don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) }; // Extend ImGuiTreeNodeFlags_ enum ImGuiTreeNodeFlagsPrivate_ { - ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20 + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, }; enum ImGuiSeparatorFlags_ { - ImGuiSeparatorFlags_None = 0, - ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar - ImGuiSeparatorFlags_Vertical = 1 << 1, - ImGuiSeparatorFlags_SpanAllColumns = 1 << 2 + ImGuiSeparatorFlags_None = 0, + ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar + ImGuiSeparatorFlags_Vertical = 1 << 1, + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, }; enum ImGuiTextFlags_ { - ImGuiTextFlags_None = 0, - ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0 + ImGuiTextFlags_None = 0, + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, }; enum ImGuiTooltipFlags_ { - ImGuiTooltipFlags_None = 0, - ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0 // Override will clear/ignore previously submitted tooltip (defaults to append) + ImGuiTooltipFlags_None = 0, + ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0, // Override will clear/ignore previously submitted tooltip (defaults to append) }; // FIXME: this is in development, not exposed/functional as a generic feature yet. @@ -892,7 +942,7 @@ enum ImGuiLogType ImGuiLogType_TTY, ImGuiLogType_File, ImGuiLogType_Buffer, - ImGuiLogType_Clipboard + ImGuiLogType_Clipboard, }; // X/Y enums are fixed to 0/1 so they may be used to index ImVec2 @@ -906,36 +956,14 @@ enum ImGuiAxis enum ImGuiPlotType { ImGuiPlotType_Lines, - ImGuiPlotType_Histogram -}; - -enum ImGuiInputSource -{ - ImGuiInputSource_None = 0, - ImGuiInputSource_Mouse, - ImGuiInputSource_Keyboard, - ImGuiInputSource_Gamepad, - ImGuiInputSource_Nav, // Stored in g.ActiveIdSource only - ImGuiInputSource_Clipboard, // Currently only used by InputText() - ImGuiInputSource_COUNT -}; - -// FIXME-NAV: Clarify/expose various repeat delay/rate -enum ImGuiInputReadMode -{ - ImGuiInputReadMode_Down, - ImGuiInputReadMode_Pressed, - ImGuiInputReadMode_Released, - ImGuiInputReadMode_Repeat, - ImGuiInputReadMode_RepeatSlow, - ImGuiInputReadMode_RepeatFast + ImGuiPlotType_Histogram, }; enum ImGuiPopupPositionPolicy { ImGuiPopupPositionPolicy_Default, ImGuiPopupPositionPolicy_ComboBox, - ImGuiPopupPositionPolicy_Tooltip + ImGuiPopupPositionPolicy_Tooltip, }; struct ImGuiDataTypeTempStorage @@ -957,14 +985,14 @@ enum ImGuiDataTypePrivate_ { ImGuiDataType_String = ImGuiDataType_COUNT + 1, ImGuiDataType_Pointer, - ImGuiDataType_ID + ImGuiDataType_ID, }; // Stacked color modifier, backup of modified data so we can restore it struct ImGuiColorMod { - ImGuiCol Col; - ImVec4 BackupValue; + ImGuiCol Col; + ImVec4 BackupValue; }; // Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable. @@ -1041,7 +1069,7 @@ struct IMGUI_API ImGuiInputTextState bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!) bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection bool Edited; // edited this frame - ImGuiInputTextFlags Flags; // copy of InputText() flags + ImGuiInputTextFlags Flags; // copy of InputText() flags. may be used to check if e.g. ImGuiInputTextFlags_Password is set. ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } void ClearText() { CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); } @@ -1066,13 +1094,14 @@ struct ImGuiPopupData { ImGuiID PopupId; // Set on OpenPopup() ImGuiWindow* Window; // Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup() - ImGuiWindow* SourceWindow; // Set on OpenPopup() copy of NavWindow at the time of opening the popup + ImGuiWindow* BackupNavWindow;// Set on OpenPopup(), a NavWindow that will be restored on popup close + int ParentNavLayer; // Resolved on BeginPopup(). Actually a ImGuiNavLayer type (declared down below), initialized to -1 which is not part of an enum, but serves well-enough as "not any of layers" value int OpenFrameCount; // Set on OpenPopup() ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) ImVec2 OpenPopupPos; // Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse) ImVec2 OpenMousePos; // Set on OpenPopup(), copy of mouse position at the time of opening popup - ImGuiPopupData() { memset(this, 0, sizeof(*this)); OpenFrameCount = -1; } + ImGuiPopupData() { memset(this, 0, sizeof(*this)); ParentNavLayer = OpenFrameCount = -1; } }; enum ImGuiNextWindowDataFlags_ @@ -1088,7 +1117,7 @@ enum ImGuiNextWindowDataFlags_ ImGuiNextWindowDataFlags_HasScroll = 1 << 7, ImGuiNextWindowDataFlags_HasViewport = 1 << 8, ImGuiNextWindowDataFlags_HasDock = 1 << 9, - ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10 + ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10, }; // Storage for SetNexWindow** functions @@ -1123,7 +1152,7 @@ enum ImGuiNextItemDataFlags_ { ImGuiNextItemDataFlags_None = 0, ImGuiNextItemDataFlags_HasWidth = 1 << 0, - ImGuiNextItemDataFlags_HasOpen = 1 << 1 + ImGuiNextItemDataFlags_HasOpen = 1 << 1, }; struct ImGuiNextItemData @@ -1180,6 +1209,7 @@ struct ImGuiShrinkWidthItem { int Index; float Width; + float InitialWidth; }; struct ImGuiPtrOrIndex @@ -1191,6 +1221,177 @@ struct ImGuiPtrOrIndex ImGuiPtrOrIndex(int index) { Ptr = NULL; Index = index; } }; +//----------------------------------------------------------------------------- +// [SECTION] Inputs support +//----------------------------------------------------------------------------- + +typedef ImBitArray ImBitArrayForNamedKeys; + +// [Internal] Key ranges +#define ImGuiKey_LegacyNativeKey_BEGIN 0 +#define ImGuiKey_LegacyNativeKey_END 512 +#define ImGuiKey_Keyboard_BEGIN (ImGuiKey_NamedKey_BEGIN) +#define ImGuiKey_Keyboard_END (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_BEGIN (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_END (ImGuiKey_GamepadRStickDown + 1) +#define ImGuiKey_Mouse_BEGIN (ImGuiKey_MouseLeft) +#define ImGuiKey_Mouse_END (ImGuiKey_MouseWheelY + 1) +#define ImGuiKey_Aliases_BEGIN (ImGuiKey_Mouse_BEGIN) +#define ImGuiKey_Aliases_END (ImGuiKey_Mouse_END) + +// [Internal] Named shortcuts for Navigation +#define ImGuiKey_NavKeyboardTweakSlow ImGuiMod_Ctrl +#define ImGuiKey_NavKeyboardTweakFast ImGuiMod_Shift +#define ImGuiKey_NavGamepadTweakSlow ImGuiKey_GamepadL1 +#define ImGuiKey_NavGamepadTweakFast ImGuiKey_GamepadR1 +#define ImGuiKey_NavGamepadActivate ImGuiKey_GamepadFaceDown +#define ImGuiKey_NavGamepadCancel ImGuiKey_GamepadFaceRight +#define ImGuiKey_NavGamepadMenu ImGuiKey_GamepadFaceLeft +#define ImGuiKey_NavGamepadInput ImGuiKey_GamepadFaceUp + +enum ImGuiInputEventType +{ + ImGuiInputEventType_None = 0, + ImGuiInputEventType_MousePos, + ImGuiInputEventType_MouseWheel, + ImGuiInputEventType_MouseButton, + ImGuiInputEventType_MouseViewport, + ImGuiInputEventType_Key, + ImGuiInputEventType_Text, + ImGuiInputEventType_Focus, + ImGuiInputEventType_COUNT +}; + +enum ImGuiInputSource +{ + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, + ImGuiInputSource_Keyboard, + ImGuiInputSource_Gamepad, + ImGuiInputSource_Clipboard, // Currently only used by InputText() + ImGuiInputSource_Nav, // Stored in g.ActiveIdSource only + ImGuiInputSource_COUNT +}; + +// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension? +// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor' +struct ImGuiInputEventMousePos { float PosX, PosY; }; +struct ImGuiInputEventMouseWheel { float WheelX, WheelY; }; +struct ImGuiInputEventMouseButton { int Button; bool Down; }; +struct ImGuiInputEventMouseViewport { ImGuiID HoveredViewportID; }; +struct ImGuiInputEventKey { ImGuiKey Key; bool Down; float AnalogValue; }; +struct ImGuiInputEventText { unsigned int Char; }; +struct ImGuiInputEventAppFocused { bool Focused; }; + +struct ImGuiInputEvent +{ + ImGuiInputEventType Type; + ImGuiInputSource Source; + union + { + ImGuiInputEventMousePos MousePos; // if Type == ImGuiInputEventType_MousePos + ImGuiInputEventMouseWheel MouseWheel; // if Type == ImGuiInputEventType_MouseWheel + ImGuiInputEventMouseButton MouseButton; // if Type == ImGuiInputEventType_MouseButton + ImGuiInputEventMouseViewport MouseViewport; // if Type == ImGuiInputEventType_MouseViewport + ImGuiInputEventKey Key; // if Type == ImGuiInputEventType_Key + ImGuiInputEventText Text; // if Type == ImGuiInputEventType_Text + ImGuiInputEventAppFocused AppFocused; // if Type == ImGuiInputEventType_Focus + }; + bool AddedByTestEngine; + + ImGuiInputEvent() { memset(this, 0, sizeof(*this)); } +}; + +// Input function taking an 'ImGuiID owner_id' argument defaults to (ImGuiKeyOwner_Any == 0) aka don't test ownership, which matches legacy behavior. +#define ImGuiKeyOwner_Any ((ImGuiID)0) // Accept key that have an owner, UNLESS a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. +#define ImGuiKeyOwner_None ((ImGuiID)-1) // Require key to have no owner. + +typedef ImS16 ImGuiKeyRoutingIndex; + +// Routing table entry (sizeof() == 16 bytes) +struct ImGuiKeyRoutingData +{ + ImGuiKeyRoutingIndex NextEntryIndex; + ImU16 Mods; // Technically we'd only need 4 bits but for simplify we store ImGuiMod_ values which need 16 bits. + ImU8 RoutingNextScore; // Lower is better (0: perfect score) + ImGuiID RoutingCurr; + ImGuiID RoutingNext; + + ImGuiKeyRoutingData() { NextEntryIndex = -1; Mods = 0; RoutingNextScore = 255; RoutingCurr = RoutingNext = ImGuiKeyOwner_None; } +}; + +// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching. +// Stored in main context (1 instance) +struct ImGuiKeyRoutingTable +{ + ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; // Index of first entry in Entries[] + ImVector Entries; + ImVector EntriesNext; // Double-buffer to avoid reallocation (could use a shared buffer) + + ImGuiKeyRoutingTable() { Clear(); } + void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Index); n++) Index[n] = -1; Entries.clear(); EntriesNext.clear(); } +}; + +// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features) +// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData. +struct ImGuiKeyOwnerData +{ + ImGuiID OwnerCurr; + ImGuiID OwnerNext; + bool LockThisFrame; // Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame. + bool LockUntilRelease; // Reading this key requires explicit owner id (until key is released). Set by ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well. + + ImGuiKeyOwnerData() { OwnerCurr = OwnerNext = ImGuiKeyOwner_None; LockThisFrame = LockUntilRelease = false; } +}; + +// Flags for extended versions of IsKeyPressed(), IsMouseClicked(), Shortcut(), SetKeyOwner(), SetItemKeyOwner() +// Don't mistake with ImGuiInputTextFlags! (for ImGui::InputText() function) +enum ImGuiInputFlags_ +{ + // Flags for IsKeyPressed(), IsMouseClicked(), Shortcut() + ImGuiInputFlags_None = 0, + ImGuiInputFlags_Repeat = 1 << 0, // Return true on successive repeats. Default for legacy IsKeyPressed(). NOT Default for legacy IsMouseClicked(). MUST BE == 1. + ImGuiInputFlags_RepeatRateDefault = 1 << 1, // Repeat rate: Regular (default) + ImGuiInputFlags_RepeatRateNavMove = 1 << 2, // Repeat rate: Fast + ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, // Repeat rate: Faster + ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, + + // Flags for SetItemKeyOwner() + ImGuiInputFlags_CondHovered = 1 << 4, // Only set if item is hovered (default to both) + ImGuiInputFlags_CondActive = 1 << 5, // Only set if item is active (default to both) + ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + + // Flags for SetKeyOwner(), SetItemKeyOwner() + ImGuiInputFlags_LockThisFrame = 1 << 6, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared at end of frame. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + ImGuiInputFlags_LockUntilRelease = 1 << 7, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared when the key is released or at end of each frame if key is released. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + + // Routing policies for Shortcut() + low-level SetShortcutRouting() + // - The general idea is that several callers register interest in a shortcut, and only one owner gets it. + // - When a policy (other than _RouteAlways) is set, Shortcut() will register itself with SetShortcutRouting(), + // allowing the system to decide where to route the input among other route-aware calls. + // - Shortcut() uses ImGuiInputFlags_RouteFocused by default: meaning that a simple Shortcut() poll + // will register a route and only succeed when parent window is in the focus stack and if no-one + // with a higher priority is claiming the shortcut. + // - Using ImGuiInputFlags_RouteAlways is roughly equivalent to doing e.g. IsKeyPressed(key) + testing mods. + // - Priorities: GlobalHigh > Focused (when owner is active item) > Global > Focused (when focused window) > GlobalLow. + // - Can select only 1 policy among all available. + ImGuiInputFlags_RouteFocused = 1 << 8, // (Default) Register focused route: Accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window. + ImGuiInputFlags_RouteGlobalLow = 1 << 9, // Register route globally (lowest priority: unless a focused window or active item registered the route) -> recommended Global priority. + ImGuiInputFlags_RouteGlobal = 1 << 10, // Register route globally (medium priority: unless an active item registered the route, e.g. CTRL+A registered by InputText). + ImGuiInputFlags_RouteGlobalHigh = 1 << 11, // Register route globally (highest priority: unlikely you need to use that: will interfere with every active items) + ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, // _Always not part of this! + ImGuiInputFlags_RouteAlways = 1 << 12, // Do not register route, poll keys directly. + ImGuiInputFlags_RouteUnlessBgFocused= 1 << 13, // Global routes will not be applied if underlying background/void is focused (== no Dear ImGui windows are focused). Useful for overlay applications. + ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, + + // [Internal] Mask of which function support which flags + ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, + ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, + ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, + ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, +}; + //----------------------------------------------------------------------------- // [SECTION] Clipper support //----------------------------------------------------------------------------- @@ -1229,7 +1430,7 @@ enum ImGuiActivateFlags_ ImGuiActivateFlags_None = 0, ImGuiActivateFlags_PreferInput = 1 << 0, // Favor activation that requires keyboard text input (e.g. for Slider/Drag). Default if keyboard is available. ImGuiActivateFlags_PreferTweak = 1 << 1, // Favor activation for tweaking with arrows or gamepad (e.g. for Slider/Drag). Default if keyboard is not available. - ImGuiActivateFlags_TryToPreserveState = 1 << 2 // Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection) + ImGuiActivateFlags_TryToPreserveState = 1 << 2, // Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection) }; // Early work-in-progress API for ScrollToItem() @@ -1244,7 +1445,7 @@ enum ImGuiScrollFlags_ ImGuiScrollFlags_AlwaysCenterY = 1 << 5, // Always center the result item on Y axis [default for Y axis for appearing window) ImGuiScrollFlags_NoScrollParent = 1 << 6, // Disable forwarding scrolling to parent window if required to keep item/rect visible (only scroll window the function was applied to). ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, - ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY + ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, }; enum ImGuiNavHighlightFlags_ @@ -1253,16 +1454,7 @@ enum ImGuiNavHighlightFlags_ ImGuiNavHighlightFlags_TypeDefault = 1 << 0, ImGuiNavHighlightFlags_TypeThin = 1 << 1, ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) _even_ when using the mouse. - ImGuiNavHighlightFlags_NoRounding = 1 << 3 -}; - -enum ImGuiNavDirSourceFlags_ -{ - ImGuiNavDirSourceFlags_None = 0, - ImGuiNavDirSourceFlags_RawKeyboard = 1 << 0, // Raw keyboard (not pulled from nav), faciliate use of some functions before we can unify nav and keys - ImGuiNavDirSourceFlags_Keyboard = 1 << 1, - ImGuiNavDirSourceFlags_PadDPad = 1 << 2, - ImGuiNavDirSourceFlags_PadLStick = 1 << 3 + ImGuiNavHighlightFlags_NoRounding = 1 << 3, }; enum ImGuiNavMoveFlags_ @@ -1280,13 +1472,13 @@ enum ImGuiNavMoveFlags_ ImGuiNavMoveFlags_FocusApi = 1 << 9, ImGuiNavMoveFlags_Tabbing = 1 << 10, // == Focus + Activate if item is Inputable + DontChangeNavHighlight ImGuiNavMoveFlags_Activate = 1 << 11, - ImGuiNavMoveFlags_DontSetNavHighlight = 1 << 12 // Do not alter the visible state of keyboard vs mouse nav highlight + ImGuiNavMoveFlags_DontSetNavHighlight = 1 << 12, // Do not alter the visible state of keyboard vs mouse nav highlight }; enum ImGuiNavLayer { ImGuiNavLayer_Main = 0, // Main scrolling layer - ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt/ImGuiNavInput_Menu) + ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt) ImGuiNavLayer_COUNT }; @@ -1317,24 +1509,24 @@ enum ImGuiOldColumnFlags_ ImGuiOldColumnFlags_NoResize = 1 << 1, // Disable resizing columns when clicking on the dividers ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, // Disable column width preservation when adjusting columns ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window - ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4 // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. + ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. // Obsolete names (will be removed) #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None, + ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None, ImGuiColumnsFlags_NoBorder = ImGuiOldColumnFlags_NoBorder, ImGuiColumnsFlags_NoResize = ImGuiOldColumnFlags_NoResize, ImGuiColumnsFlags_NoPreserveWidths = ImGuiOldColumnFlags_NoPreserveWidths, ImGuiColumnsFlags_NoForceWithinWindow = ImGuiOldColumnFlags_NoForceWithinWindow, - ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize + ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize, #endif }; struct ImGuiOldColumnData { - float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) + float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) float OffsetNormBeforeResize; - ImGuiOldColumnFlags Flags; // Not exposed + ImGuiOldColumnFlags Flags; // Not exposed ImRect ClipRect; ImGuiOldColumnData() { memset(this, 0, sizeof(*this)); } @@ -1373,6 +1565,9 @@ struct ImGuiOldColumns // [SECTION] Docking support //----------------------------------------------------------------------------- +#define DOCKING_HOST_DRAW_CHANNEL_BG 0 // Dock host: background fill +#define DOCKING_HOST_DRAW_CHANNEL_FG 1 // Dock host: decorations and contents + #ifdef IMGUI_HAS_DOCK // Extend ImGuiDockNodeFlags_ @@ -1405,7 +1600,7 @@ enum ImGuiDataAuthority_ { ImGuiDataAuthority_Auto, ImGuiDataAuthority_DockNode, - ImGuiDataAuthority_Window + ImGuiDataAuthority_Window, }; enum ImGuiDockNodeState @@ -1413,7 +1608,7 @@ enum ImGuiDockNodeState ImGuiDockNodeState_Unknown, ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow, ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing, - ImGuiDockNodeState_HostWindowVisible + ImGuiDockNodeState_HostWindowVisible, }; // sizeof() 156~192 @@ -1526,7 +1721,6 @@ struct ImGuiViewportP : public ImGuiViewport float Alpha; // Window opacity (when dragging dockable windows/viewports we make them transparent) float LastAlpha; short PlatformMonitor; - bool PlatformWindowCreated; ImGuiWindow* Window; // Set when the viewport is owned by a window (and ImGuiViewportFlags_CanHostOtherWindows is NOT set) int DrawListsLastFrame[2]; // Last frame number the background (0) and foreground (1) draw lists were used ImDrawList* DrawLists[2]; // Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor when io.MouseDrawCursor is set and to draw most debug overlays. @@ -1540,7 +1734,7 @@ struct ImGuiViewportP : public ImGuiViewport ImVec2 BuildWorkOffsetMin; // Work Area: Offset being built during current frame. Generally >= 0.0f. ImVec2 BuildWorkOffsetMax; // Work Area: Offset being built during current frame. Generally <= 0.0f. - ImGuiViewportP() { Idx = -1; LastFrameActive = DrawListsLastFrame[0] = DrawListsLastFrame[1] = LastFrontMostStampCount = -1; LastNameHash = 0; Alpha = LastAlpha = 1.0f; PlatformMonitor = -1; PlatformWindowCreated = false; Window = NULL; DrawLists[0] = DrawLists[1] = NULL; LastPlatformPos = LastPlatformSize = LastRendererSize = ImVec2(FLT_MAX, FLT_MAX); } + ImGuiViewportP() { Idx = -1; LastFrameActive = DrawListsLastFrame[0] = DrawListsLastFrame[1] = LastFrontMostStampCount = -1; LastNameHash = 0; Alpha = LastAlpha = 1.0f; PlatformMonitor = -1; Window = NULL; DrawLists[0] = DrawLists[1] = NULL; LastPlatformPos = LastPlatformSize = LastRendererSize = ImVec2(FLT_MAX, FLT_MAX); } ~ImGuiViewportP() { if (DrawLists[0]) IM_DELETE(DrawLists[0]); if (DrawLists[1]) IM_DELETE(DrawLists[1]); } void ClearRequestFlags() { PlatformRequestClose = PlatformRequestMove = PlatformRequestResize = false; } @@ -1594,12 +1788,54 @@ struct ImGuiSettingsHandler ImGuiSettingsHandler() { memset(this, 0, sizeof(*this)); } }; +//----------------------------------------------------------------------------- +// [SECTION] Localization support +//----------------------------------------------------------------------------- + +// This is experimental and not officially supported, it'll probably fall short of features, if/when it does we may backtrack. +enum ImGuiLocKey : int +{ + ImGuiLocKey_TableSizeOne, + ImGuiLocKey_TableSizeAllFit, + ImGuiLocKey_TableSizeAllDefault, + ImGuiLocKey_TableResetOrder, + ImGuiLocKey_WindowingMainMenuBar, + ImGuiLocKey_WindowingPopup, + ImGuiLocKey_WindowingUntitled, + ImGuiLocKey_DockingHideTabBar, + ImGuiLocKey_COUNT +}; + +struct ImGuiLocEntry +{ + ImGuiLocKey Key; + const char* Text; +}; + + //----------------------------------------------------------------------------- // [SECTION] Metrics, Debug Tools //----------------------------------------------------------------------------- +enum ImGuiDebugLogFlags_ +{ + // Event types + ImGuiDebugLogFlags_None = 0, + ImGuiDebugLogFlags_EventActiveId = 1 << 0, + ImGuiDebugLogFlags_EventFocus = 1 << 1, + ImGuiDebugLogFlags_EventPopup = 1 << 2, + ImGuiDebugLogFlags_EventNav = 1 << 3, + ImGuiDebugLogFlags_EventClipper = 1 << 4, + ImGuiDebugLogFlags_EventIO = 1 << 5, + ImGuiDebugLogFlags_EventDocking = 1 << 6, + ImGuiDebugLogFlags_EventViewport = 1 << 7, + ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport, + ImGuiDebugLogFlags_OutputToTTY = 1 << 10, // Also send output to TTY +}; + struct ImGuiMetricsConfig { + bool ShowDebugLog; bool ShowStackTool; bool ShowWindowsRects; bool ShowWindowsBeginOrder; @@ -1612,15 +1848,11 @@ struct ImGuiMetricsConfig ImGuiMetricsConfig() { - ShowStackTool = false; - ShowWindowsRects = false; - ShowWindowsBeginOrder = false; - ShowTablesRects = false; + ShowDebugLog = ShowStackTool = ShowWindowsRects = ShowWindowsBeginOrder = ShowTablesRects = false; ShowDrawCmdMesh = true; ShowDrawCmdBoundingBoxes = true; ShowDockingNodes = false; - ShowWindowsRectsType = -1; - ShowTablesRectsType = -1; + ShowWindowsRectsType = ShowTablesRectsType = -1; } }; @@ -1629,7 +1861,8 @@ struct ImGuiStackLevelInfo ImGuiID ID; ImS8 QueryFrameCount; // >= 1: Query in progress bool QuerySuccess; // Obtained result from DebugHookIdInfo() - char Desc[58]; // Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) + ImGuiDataType DataType : 8; + char Desc[57]; // Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) FIXME: Now that we added CTRL+C this should be fixed. ImGuiStackLevelInfo() { memset(this, 0, sizeof(*this)); } }; @@ -1641,8 +1874,10 @@ struct ImGuiStackTool int StackLevel; // -1: query stack and resize Results, >= 0: individual stack level ImGuiID QueryId; // ID to query details for ImVector Results; + bool CopyToClipboardOnCtrlC; + float CopyToClipboardLastTime; - ImGuiStackTool() { memset(this, 0, sizeof(*this)); } + ImGuiStackTool() { memset(this, 0, sizeof(*this)); CopyToClipboardLastTime = -FLT_MAX; } }; //----------------------------------------------------------------------------- @@ -1664,7 +1899,7 @@ struct ImGuiContextHook }; //----------------------------------------------------------------------------- -// [SECTION] ImGuiContext (main imgui context) +// [SECTION] ImGuiContext (main Dear ImGui context) //----------------------------------------------------------------------------- struct ImGuiContext @@ -1673,6 +1908,8 @@ struct ImGuiContext bool FontAtlasOwnedByContext; // IO.Fonts-> is owned by the ImGuiContext and will be destructed along with it. ImGuiIO IO; ImGuiPlatformIO PlatformIO; + ImVector InputEventsQueue; // Input events which will be tricked/written into IO structure. + ImVector InputEventsTrail; // Past input events processed in NewFrame(). This is to allow domain-specific application to access e.g mouse/pen trail. ImGuiStyle Style; ImGuiConfigFlags ConfigFlagsCurrFrame; // = g.IO.ConfigFlags at the time of NewFrame() ImGuiConfigFlags ConfigFlagsLastFrame; @@ -1703,19 +1940,16 @@ struct ImGuiContext ImGuiWindow* CurrentWindow; // Window being drawn into ImGuiWindow* HoveredWindow; // Window the mouse is hovering. Will typically catch mouse inputs. ImGuiWindow* HoveredWindowUnderMovingWindow; // Hovered window ignoring MovingWindow. Only set if MovingWindow is set. - ImGuiDockNode* HoveredDockNode; // [Debug] Hovered dock node. ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindowDockTree. ImGuiWindow* WheelingWindow; // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. ImVec2 WheelingWindowRefMousePos; - float WheelingWindowTimer; + float WheelingWindowReleaseTimer; // Item/widgets state and tracking information ImGuiID DebugHookIdInfo; // Will call core hooks: DebugHookIdInfo() from GetID functions, used by Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line] ImGuiID HoveredId; // Hovered widget, filled during the frame ImGuiID HoveredIdPreviousFrame; bool HoveredIdAllowOverlap; - bool HoveredIdUsingMouseWheel; // Hovered widget will use mouse wheel. Blocks scrolling the underlying window. - bool HoveredIdPreviousFrameUsingMouseWheel; bool HoveredIdDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0. float HoveredIdTimer; // Measure contiguous hovering time float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active @@ -1728,10 +1962,6 @@ struct ImGuiContext bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch. bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state. bool ActiveIdHasBeenEditedThisFrame; - bool ActiveIdUsingMouseWheel; // Active widget will want to read mouse wheel. Blocks scrolling the underlying window. - ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) - ImU32 ActiveIdUsingNavInputMask; // Active widget will want to read those nav inputs. - ImU64 ActiveIdUsingKeyInputMask; // Active widget will want to read those key inputs. When we grow the ImGuiKey enum we'll need to either to order the enum to make useful keys come first, either redesign this into e.g. a small array. ImVec2 ActiveIdClickOffset; // Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior) ImGuiWindow* ActiveIdWindow; ImGuiInputSource ActiveIdSource; // Activating with mouse or nav (gamepad/keyboard) @@ -1743,8 +1973,22 @@ struct ImGuiContext ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation. float LastActiveIdTimer; // Store the last non-zero ActiveId timer since the beginning of activation, useful for animation. + // [EXPERIMENTAL] Key/Input Ownership + Shortcut Routing system + // - The idea is that instead of "eating" a given key, we can link to an owner. + // - Input query can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Routing is requested ahead of time for a given chord (Key + Mods) and granted in NewFrame(). + ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; + ImGuiKeyRoutingTable KeysRoutingTable; + ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) + bool ActiveIdUsingAllKeyboardKeys; // Active widget will want to read all keyboard keys inputs. (FIXME: This is a shortcut for not taking ownership of 100+ keys but perhaps best to not have the inconsistency) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ImU32 ActiveIdUsingNavInputMask; // If you used this. Since (IMGUI_VERSION_NUM >= 18804) : 'g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel);' becomes 'SetKeyOwner(ImGuiKey_Escape, g.ActiveId) and/or SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId);' +#endif + // Next window/item data - ImGuiItemFlags CurrentItemFlags; // == g.ItemFlagsStack.back() + ImGuiID CurrentFocusScopeId; // == g.FocusScopeStack.back() + ImGuiItemFlags CurrentItemFlags; // == g.ItemFlagsStack.back() + ImGuiID DebugLocateId; // Storage for DebugLocateItemOnHover() feature: this is read by ItemAdd() so we keep it in a hot/cached location ImGuiNextItemData NextItemData; // Storage for SetNextItem** functions ImGuiLastItemData LastItemData; // Storage for last submitted item (setup by ItemAdd) ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions @@ -1753,7 +1997,7 @@ struct ImGuiContext ImVector ColorStack; // Stack for PushStyleColor()/PopStyleColor() - inherited by Begin() ImVector StyleVarStack; // Stack for PushStyleVar()/PopStyleVar() - inherited by Begin() ImVector FontStack; // Stack for PushFont()/PopFont() - inherited by Begin() - ImVector FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - not inherited by Begin(), unless child window + ImVector FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - inherited by BeginChild(), pushed into by Begin() ImVectorItemFlagsStack; // Stack for PushItemFlag()/PopItemFlag() - inherited by Begin() ImVectorGroupStack; // Stack for BeginGroup()/EndGroup() - not inherited by Begin() ImVectorOpenPopupStack; // Which popups are open (persistent) @@ -1771,17 +2015,17 @@ struct ImGuiContext int ViewportFrontMostStampCount; // Every time the front-most window changes, we stamp its viewport with an incrementing counter // Gamepad/keyboard Navigation - ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusWindow' + ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusedWindow' ImGuiID NavId; // Focused item for navigation ImGuiID NavFocusScopeId; // Identify a selection scope (selection code often wants to "clear other items" when landing on an item of the selection set) - ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0, also set when calling ActivateItem() - ImGuiID NavActivateDownId; // ~~ IsNavInputDown(ImGuiNavInput_Activate) ? NavId : 0 - ImGuiID NavActivatePressedId; // ~~ IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0 - ImGuiID NavActivateInputId; // ~~ IsNavInputPressed(ImGuiNavInput_Input) ? NavId : 0; ImGuiActivateFlags_PreferInput will be set and NavActivateId will be 0. + ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && (IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_NavGamepadActivate)) ? NavId : 0, also set when calling ActivateItem() + ImGuiID NavActivateDownId; // ~~ IsKeyDown(ImGuiKey_Space) || IsKeyDown(ImGuiKey_NavGamepadActivate) ? NavId : 0 + ImGuiID NavActivatePressedId; // ~~ IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_NavGamepadActivate) ? NavId : 0 (no repeat) + ImGuiID NavActivateInputId; // ~~ IsKeyPressed(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadInput) ? NavId : 0; ImGuiActivateFlags_PreferInput will be set and NavActivateId will be 0. ImGuiActivateFlags NavActivateFlags; ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest). ImGuiID NavJustMovedToFocusScopeId; // Just navigated to this focus scope id (result of a successfully MoveRequest). - ImGuiKeyModFlags NavJustMovedToKeyMods; + ImGuiKeyChord NavJustMovedToKeyMods; ImGuiID NavNextActivateId; // Set by ActivateItem(), queued until next frame. ImGuiActivateFlags NavNextActivateFlags; ImGuiInputSource NavInputSource; // Keyboard or Gamepad mode? THIS WILL ONLY BE None or NavGamepad or NavKeyboard. @@ -1802,7 +2046,7 @@ struct ImGuiContext bool NavMoveForwardToNextFrame; ImGuiNavMoveFlags NavMoveFlags; ImGuiScrollFlags NavMoveScrollFlags; - ImGuiKeyModFlags NavMoveKeyMods; + ImGuiKeyChord NavMoveKeyMods; ImGuiDir NavMoveDir; // Direction of the move request (left/right/up/down) ImGuiDir NavMoveDirForDebug; ImGuiDir NavMoveClipDir; // FIXME-NAV: Describe the purpose of this better. Might want to rename? @@ -1817,12 +2061,16 @@ struct ImGuiContext ImGuiNavItemData NavTabbingResultFirst; // First tabbing request candidate within NavWindow and flattened hierarchy // Navigation: Windowing (CTRL+TAB for list, or Menu button + keys or directional pads to move/resize) + ImGuiKeyChord ConfigNavWindowingKeyNext; // = ImGuiMod_Ctrl | ImGuiKey_Tab, for reconfiguration (see #4828) + ImGuiKeyChord ConfigNavWindowingKeyPrev; // = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab ImGuiWindow* NavWindowingTarget; // Target window when doing CTRL+Tab (or Pad Menu + FocusPrev/Next), this window is temporarily displayed top-most! ImGuiWindow* NavWindowingTargetAnim; // Record of last valid NavWindowingTarget until DimBgRatio and NavWindowingHighlightAlpha becomes 0.0f, so the fade-out can stay on it. ImGuiWindow* NavWindowingListWindow; // Internal window actually listing the CTRL+Tab contents float NavWindowingTimer; float NavWindowingHighlightAlpha; bool NavWindowingToggleLayer; + ImVec2 NavWindowingAccumDeltaPos; + ImVec2 NavWindowingAccumDeltaSize; // Render float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list) @@ -1851,7 +2099,7 @@ struct ImGuiContext int ClipperTempDataStacked; ImVector ClipperTempData; - // Table + // Tables ImGuiTable* CurrentTable; int TablesTempDataStacked; // Temporary table data size (because we leave previous instances undestructed, we generally don't use TablesTempData.Size) ImVector TablesTempData; // Temporary table data (buffers reused/shared across instances, support nesting) @@ -1865,6 +2113,12 @@ struct ImGuiContext ImVector CurrentTabBarStack; ImVector ShrinkWidthBuffer; + // Hover Delay system + ImGuiID HoverDelayId; + ImGuiID HoverDelayIdPreviousFrame; + float HoverDelayTimer; // Currently used IsItemHovered(), generally inferred from g.HoveredIdTimer but kept uncleared until clear timer elapse. + float HoverDelayClearTimer; // Currently used IsItemHovered(): grace time before g.TooltipHoverTimer gets cleared. + // Widget state ImVec2 MouseLastValidPos; ImGuiInputTextState InputTextState; @@ -1876,6 +2130,7 @@ struct ImGuiContext ImU32 ColorEditLastColor; // RGB value with alpha set to 0. ImVec4 ColorPickerRef; // Initial/reference color at the time of opening the color picker. ImGuiComboPreviewData ComboPreviewData; + float SliderGrabClickOffset; float SliderCurrentAccum; // Accumulated slider delta when using navigation controls. bool SliderCurrentAccumDirty; // Has the accumulated slider delta changed since last time we tried to apply it? bool DragCurrentAccumDirty; @@ -1885,14 +2140,13 @@ struct ImGuiContext float DisabledAlphaBackup; // Backup for style.Alpha for BeginDisabled() short DisabledStackSize; short TooltipOverrideCount; - float TooltipSlowDelay; // Time before slow tooltips appears (FIXME: This is temporary until we merge in tooltip timer+priority work) ImVector ClipboardHandlerData; // If no custom clipboard handler is defined ImVector MenusIdSubmittedThisFrame; // A list of menu IDs that were rendered at least once // Platform support - ImVec2 PlatformImePos; // Cursor position request & last passed to the OS Input Method Editor - ImVec2 PlatformImeLastPos; - ImGuiViewportP* PlatformImePosViewport; + ImGuiPlatformImeData PlatformImeData; // Data updated by current frame + ImGuiPlatformImeData PlatformImeDataPrev; // Previous frame data (when changing we will call io.SetPlatformImeDataFn + ImGuiID PlatformImeViewport; char PlatformLocaleDecimalPoint; // '.' or *localeconv()->decimal_point // Extensions @@ -1909,6 +2163,9 @@ struct ImGuiContext ImVector Hooks; // Hooks for extensions (e.g. test engine) ImGuiID HookIdNext; // Next available HookId + // Localization + const char* LocalizationTable[ImGuiLocKey_COUNT]; + // Capture/Logging bool LogEnabled; // Currently capturing ImGuiLogType LogType; // Capture target @@ -1923,20 +2180,26 @@ struct ImGuiContext int LogDepthToExpandDefault; // Default/stored value for LogDepthMaxExpand if not specified in the LogXXX function call. // Debug Tools + ImGuiDebugLogFlags DebugLogFlags; + ImGuiTextBuffer DebugLogBuf; + ImGuiTextIndex DebugLogIndex; + ImU8 DebugLocateFrames; // For DebugLocateItemOnHover(). This is used together with DebugLocateId which is in a hot/cached spot above. bool DebugItemPickerActive; // Item picker is active (started with DebugStartItemPicker()) + ImU8 DebugItemPickerMouseButton; ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this ID ImGuiMetricsConfig DebugMetricsConfig; ImGuiStackTool DebugStackTool; + ImGuiDockNode* DebugHoveredDockNode; // Hovered dock node. // Misc - float FramerateSecPerFrame[120]; // Calculate estimate of framerate for user over the last 2 seconds. + float FramerateSecPerFrame[60]; // Calculate estimate of framerate for user over the last 60 frames.. int FramerateSecPerFrameIdx; int FramerateSecPerFrameCount; float FramerateSecPerFrameAccum; - int WantCaptureMouseNextFrame; // Explicit capture via CaptureKeyboardFromApp()/CaptureMouseFromApp() sets those flags - int WantCaptureKeyboardNextFrame; + int WantCaptureMouseNextFrame; // Explicit capture override via SetNextFrameWantCaptureMouse()/SetNextFrameWantCaptureKeyboard(). Default to -1. + int WantCaptureKeyboardNextFrame; // " int WantTextInputNextFrame; - char TempBuffer[1024 * 3 + 1]; // Temporary text buffer + ImVector TempBuffer; // Temporary text buffer ImGuiContext(ImFontAtlas* shared_font_atlas) { @@ -1958,15 +2221,13 @@ struct ImGuiContext CurrentWindow = NULL; HoveredWindow = NULL; HoveredWindowUnderMovingWindow = NULL; - HoveredDockNode = NULL; MovingWindow = NULL; WheelingWindow = NULL; - WheelingWindowTimer = 0.0f; + WheelingWindowReleaseTimer = 0.0f; DebugHookIdInfo = 0; HoveredId = HoveredIdPreviousFrame = 0; HoveredIdAllowOverlap = false; - HoveredIdUsingMouseWheel = HoveredIdPreviousFrameUsingMouseWheel = false; HoveredIdDisabled = false; HoveredIdTimer = HoveredIdNotActiveTimer = 0.0f; ActiveId = 0; @@ -1978,10 +2239,6 @@ struct ImGuiContext ActiveIdHasBeenPressedBefore = false; ActiveIdHasBeenEditedBefore = false; ActiveIdHasBeenEditedThisFrame = false; - ActiveIdUsingMouseWheel = false; - ActiveIdUsingNavDirMask = 0x00; - ActiveIdUsingNavInputMask = 0x00; - ActiveIdUsingKeyInputMask = 0x00; ActiveIdClickOffset = ImVec2(-1, -1); ActiveIdWindow = NULL; ActiveIdSource = ImGuiInputSource_None; @@ -1993,6 +2250,13 @@ struct ImGuiContext LastActiveId = 0; LastActiveIdTimer = 0.0f; + ActiveIdUsingNavDirMask = 0x00; + ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ActiveIdUsingNavInputMask = 0x00; +#endif + + CurrentFocusScopeId = 0; CurrentItemFlags = ImGuiItemFlags_None; BeginMenuCount = 0; @@ -2006,7 +2270,7 @@ struct ImGuiContext NavId = NavFocusScopeId = NavActivateId = NavActivateDownId = NavActivatePressedId = NavActivateInputId = 0; NavJustMovedToId = NavJustMovedToFocusScopeId = NavNextActivateId = 0; NavActivateFlags = NavNextActivateFlags = ImGuiActivateFlags_None; - NavJustMovedToKeyMods = ImGuiKeyModFlags_None; + NavJustMovedToKeyMods = ImGuiMod_None; NavInputSource = ImGuiInputSource_None; NavLayer = ImGuiNavLayer_Main; NavIdIsAlive = false; @@ -2022,12 +2286,14 @@ struct ImGuiContext NavMoveForwardToNextFrame = false; NavMoveFlags = ImGuiNavMoveFlags_None; NavMoveScrollFlags = ImGuiScrollFlags_None; - NavMoveKeyMods = ImGuiKeyModFlags_None; + NavMoveKeyMods = ImGuiMod_None; NavMoveDir = NavMoveDirForDebug = NavMoveClipDir = ImGuiDir_None; NavScoringDebugCount = 0; NavTabbingDir = 0; NavTabbingCounter = 0; + ConfigNavWindowingKeyNext = ImGuiMod_Ctrl | ImGuiKey_Tab; + ConfigNavWindowingKeyPrev = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab; NavWindowingTarget = NavWindowingTargetAnim = NavWindowingListWindow = NULL; NavWindowingTimer = NavWindowingHighlightAlpha = 0.0f; NavWindowingToggleLayer = false; @@ -2053,29 +2319,35 @@ struct ImGuiContext TablesTempDataStacked = 0; CurrentTabBar = NULL; + HoverDelayId = HoverDelayIdPreviousFrame = 0; + HoverDelayTimer = HoverDelayClearTimer = 0.0f; + TempInputId = 0; ColorEditOptions = ImGuiColorEditFlags_DefaultOptions_; ColorEditLastHue = ColorEditLastSat = 0.0f; ColorEditLastColor = 0; + SliderGrabClickOffset = 0.0f; SliderCurrentAccum = 0.0f; SliderCurrentAccumDirty = false; DragCurrentAccumDirty = false; DragCurrentAccum = 0.0f; DragSpeedDefaultRatio = 1.0f / 100.0f; + ScrollbarClickDeltaToGrabCenter = 0.0f; DisabledAlphaBackup = 0.0f; DisabledStackSize = 0; - ScrollbarClickDeltaToGrabCenter = 0.0f; TooltipOverrideCount = 0; - TooltipSlowDelay = 0.50f; - PlatformImePos = PlatformImeLastPos = ImVec2(FLT_MAX, FLT_MAX); - PlatformImePosViewport = 0; + PlatformImeData.InputPos = ImVec2(0.0f, 0.0f); + PlatformImeDataPrev.InputPos = ImVec2(-1.0f, -1.0f); // Different to ensure initial submission + PlatformImeViewport = 0; PlatformLocaleDecimalPoint = '.'; SettingsLoaded = false; SettingsDirtyTimer = 0.0f; HookIdNext = 0; + memset(LocalizationTable, 0, sizeof(LocalizationTable)); + LogEnabled = false; LogType = ImGuiLogType_None; LogNextPrefix = LogNextSuffix = NULL; @@ -2085,14 +2357,18 @@ struct ImGuiContext LogDepthRef = 0; LogDepthToExpand = LogDepthToExpandDefault = 2; + DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY; + DebugLocateId = 0; + DebugLocateFrames = 0; DebugItemPickerActive = false; + DebugItemPickerMouseButton = ImGuiMouseButton_Left; DebugItemPickerBreakId = 0; + DebugHoveredDockNode = NULL; memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0; FramerateSecPerFrameAccum = 0.0f; WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; - memset(TempBuffer, 0, sizeof(TempBuffer)); } }; @@ -2115,6 +2391,8 @@ struct IMGUI_API ImGuiWindowTempData ImVec2 PrevLineSize; float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added). float PrevLineTextBaseOffset; + bool IsSameLine; + bool IsSetPos; ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.) ImVec1 ColumnsOffset; // Offset to the current column (if ColumnsCurrent > 0). FIXME: This and the above should be a stack to allow use cases like Tree->Column->Tree. Need revamp columns API. ImVec1 GroupOffset; @@ -2124,7 +2402,6 @@ struct IMGUI_API ImGuiWindowTempData ImGuiNavLayer NavLayerCurrent; // Current layer, 0..31 (we currently only use 0..1) short NavLayersActiveMask; // Which layers have been written to (result from previous frame) short NavLayersActiveMaskNext;// Which layers have been written to (accumulator for current frame) - ImGuiID NavFocusScopeIdCurrent; // Current focus scope ID while appending bool NavHideHighlightOneFrame; bool NavHasScroll; // Set when scrolling can be used (ScrollMax > 0.0f) @@ -2156,7 +2433,7 @@ struct IMGUI_API ImGuiWindow ImGuiID ID; // == ImHashStr(Name) ImGuiWindowFlags Flags, FlagsPreviousFrame; // See enum ImGuiWindowFlags_ ImGuiWindowClass WindowClass; // Advanced users only. Set with SetNextWindowClass() - ImGuiViewportP* Viewport; // Always set in Begin(), only inactive windows may have a NULL value here + ImGuiViewportP* Viewport; // Always set in Begin(). Inactive windows may have a NULL value here if their viewport was discarded. ImGuiID ViewportId; // We backup the viewport id (since the viewport may disappear or never be created if the window is inactive) ImVec2 ViewportPos; // We backup the viewport position (since the viewport may disappear or never be created if the window is inactive) int ViewportAllowPlatformMonitorExtend; // Reset to -1 every frame (index is guaranteed to be valid between NewFrame..EndFrame), only used in the Appearing frame of a tooltip/popup to enforce clamping to a given monitor @@ -2171,6 +2448,7 @@ struct IMGUI_API ImGuiWindow float WindowBorderSize; // Window border size at the time of Begin(). int NameBufLen; // Size of buffer storing Name. May be larger than strlen(Name)! ImGuiID MoveId; // == window->GetID("#MOVE") + ImGuiID TabId; // == window->GetID("#TAB") ImGuiID ChildId; // ID of corresponding item in parent window (for navigation to return from child window to parent window) ImVec2 Scroll; ImVec2 ScrollMax; @@ -2193,6 +2471,7 @@ struct IMGUI_API ImGuiWindow bool HasCloseButton; // Set when the window has a close button (p_open != NULL) signed char ResizeBorderHeld; // Current border being held for resize (-1: none, otherwise 0-3) short BeginCount; // Number of Begin() during the current frame (generally 0 or 1, 1+ if appending via multiple Begin/End pairs) + short BeginCountPreviousFrame; // Number of Begin() during the previous frame short BeginOrderWithinParent; // Begin() order within immediate parent window, if we are a child window. Otherwise 0. short BeginOrderWithinContext; // Begin() order within entire imgui context. This is mostly used for debugging submission order related issues. short FocusOrder; // Order within WindowsFocusOrder[], altered when windows are focused. @@ -2250,6 +2529,7 @@ struct IMGUI_API ImGuiWindow ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.) ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1) ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space + ImGuiID NavRootFocusScopeId; // Focus Scope ID at the time of Begin() int MemoryDrawListIdxCapacity; // Backup of last idx/vtx count, so when waking up the window we can preallocate and avoid iterative alloc/copy int MemoryDrawListVtxCapacity; @@ -2275,12 +2555,9 @@ struct IMGUI_API ImGuiWindow ImGuiID GetID(const char* str, const char* str_end = NULL); ImGuiID GetID(const void* ptr); ImGuiID GetID(int n); - ImGuiID GetIDNoKeepAlive(const char* str, const char* str_end = NULL); - ImGuiID GetIDNoKeepAlive(const void* ptr); - ImGuiID GetIDNoKeepAlive(int n); ImGuiID GetIDFromRectangle(const ImRect& r_abs); - // We don't use g.FontSize because the window may be != g.CurrentWidow. + // We don't use g.FontSize because the window may be != g.CurrentWindow. ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } float CalcFontSize() const { ImGuiContext& g = *GImGui; float scale = g.FontBaseSize * FontWindowScale * FontDpiScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; } float TitleBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; } @@ -2298,7 +2575,7 @@ enum ImGuiTabBarFlagsPrivate_ { ImGuiTabBarFlags_DockNode = 1 << 20, // Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around] ImGuiTabBarFlags_IsFocused = 1 << 21, - ImGuiTabBarFlags_SaveSettings = 1 << 22 // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs + ImGuiTabBarFlags_SaveSettings = 1 << 22, // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs }; // Extend ImGuiTabItemFlags_ @@ -2308,7 +2585,7 @@ enum ImGuiTabItemFlagsPrivate_ ImGuiTabItemFlags_NoCloseButton = 1 << 20, // Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout) ImGuiTabItemFlags_Button = 1 << 21, // Used by TabItemButton, change the tab item behavior to mimic a button ImGuiTabItemFlags_Unsorted = 1 << 22, // [Docking] Trailing tabs with the _Unsorted flag will be sorted based on the DockOrder of their Window. - ImGuiTabItemFlags_Preview = 1 << 23 // [Docking] Display tab shape for docking preview (height is adjusted slightly to compensate for the yet missing tab bar) + ImGuiTabItemFlags_Preview = 1 << 23, // [Docking] Display tab shape for docking preview (height is adjusted slightly to compensate for the yet missing tab bar) }; // Storage for one active tab item (sizeof() 48 bytes) @@ -2322,12 +2599,13 @@ struct ImGuiTabItem float Offset; // Position relative to beginning of tab float Width; // Width currently displayed float ContentWidth; // Width of label, stored during BeginTabItem() call + float RequestedWidth; // Width optionally requested by caller, -1.0f is unused ImS32 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames ImS16 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable ImS16 IndexDuringLayout; // Index only used during TabBarLayout() bool WantClose; // Marked as closed by SetTabItemClosed() - ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; } + ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; RequestedWidth = -1.0f; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; } }; // Storage for a tab bar (sizeof() 152 bytes) @@ -2457,6 +2735,15 @@ struct ImGuiTableCellData ImGuiTableColumnIdx Column; // Column number }; +// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs, does that needs they could be moved to ImGuiTableTempData ?) +struct ImGuiTableInstanceData +{ + float LastOuterHeight; // Outer height from last frame // FIXME: multi-instance issue (#3955) + float LastFirstRowHeight; // Height of first row from last frame // FIXME: possible multi-instance issue? + + ImGuiTableInstanceData() { LastOuterHeight = LastFirstRowHeight = 0.0f; } +}; + // FIXME-TABLE: more transient data could be stored in a per-stacked table structure: DrawSplitter, SortSpecs, incoming RowData struct IMGUI_API ImGuiTable { @@ -2499,11 +2786,10 @@ struct IMGUI_API ImGuiTable float CellPaddingY; float CellSpacingX1; // Spacing between non-bordered cells float CellSpacingX2; - float LastOuterHeight; // Outer height from last frame - float LastFirstRowHeight; // Height of first row from last frame float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details. float ColumnsGivenWidth; // Sum of current column width float ColumnsAutoFitWidth; // Sum of ideal column width in order nothing to be clipped, used for auto-fitting and content width submission in outer window + float ColumnsStretchSumWeights; // Sum of weight of all enabled stretching columns float ResizedColumnNextWidth; float ResizeLockMinContentsX2; // Lock minimum contents width while resizing down in order to not create feedback loops. But we allow growing the table. float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. @@ -2511,7 +2797,7 @@ struct IMGUI_API ImGuiTable ImRect InnerRect; // InnerRect but without decoration. As with OuterRect, for non-scrolling tables, InnerRect.Max.y is ImRect WorkRect; ImRect InnerClipRect; - ImRect BgClipRect; // We use this to cpu-clip cell background color fill + ImRect BgClipRect; // We use this to cpu-clip cell background color fill, evolve during the frame as we cross frozen rows boundaries ImRect Bg0ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG0/1 channel. This tends to be == OuterWindow->ClipRect at BeginTable() because output in BG0/BG1 is cpu-clipped ImRect Bg2ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG2 channel. This tends to be a correct, tight-fit, because output to BG2 are done by widgets relying on regular ClipRect. ImRect HostClipRect; // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window. @@ -2520,6 +2806,8 @@ struct IMGUI_API ImGuiTable ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window) ImGuiTextBuffer ColumnsNames; // Contiguous buffer holding columns names ImDrawListSplitter* DrawSplitter; // Shortcut to TempData->DrawSplitter while in table. Isolate draw commands per columns to avoid switching clip rect constantly + ImGuiTableInstanceData InstanceDataFirst; + ImVector InstanceDataExtra; // FIXME-OPT: Using a small-vector pattern would be good. ImGuiTableColumnSortSpecs SortSpecsSingle; ImVector SortSpecsMulti; // FIXME-OPT: Using a small-vector pattern would be good. ImGuiTableSortSpecs SortSpecs; // Public facing sorts specs, this is what we return in TableGetSortSpecs() @@ -2674,10 +2962,11 @@ namespace ImGui inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window) { return GetForegroundDrawList(window->Viewport); } // Init - IMGUI_API void Initialize(ImGuiContext* context); - IMGUI_API void Shutdown(ImGuiContext* context); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). + IMGUI_API void Initialize(); + IMGUI_API void Shutdown(); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). // NewFrame + IMGUI_API void UpdateInputEvents(bool trickle_fast_inputs); IMGUI_API void UpdateHoveredWindowAndCaptureFlags(); IMGUI_API void StartMouseMovingWindow(ImGuiWindow* window); IMGUI_API void StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock_floating_node); @@ -2693,8 +2982,10 @@ namespace ImGui IMGUI_API void TranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2& old_pos, const ImVec2& new_pos); IMGUI_API void ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale); IMGUI_API void DestroyPlatformWindow(ImGuiViewportP* viewport); + IMGUI_API void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport); IMGUI_API void SetCurrentViewport(ImGuiWindow* window, ImGuiViewportP* viewport); - IMGUI_API const ImGuiPlatformMonitor* GetViewportPlatformMonitor(ImGuiViewport* viewport); + IMGUI_API const ImGuiPlatformMonitor* GetViewportPlatformMonitor(ImGuiViewport* viewport); + IMGUI_API ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos); // Settings IMGUI_API void MarkIniSettingsDirty(); @@ -2703,10 +2994,15 @@ namespace ImGui IMGUI_API ImGuiWindowSettings* CreateNewWindowSettings(const char* name); IMGUI_API ImGuiWindowSettings* FindWindowSettings(ImGuiID id); IMGUI_API ImGuiWindowSettings* FindOrCreateWindowSettings(const char* name); + IMGUI_API void AddSettingsHandler(const ImGuiSettingsHandler* handler); + IMGUI_API void RemoveSettingsHandler(const char* type_name); IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name); + // Localization + IMGUI_API void LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count); + inline const char* LocalizeGetMsg(ImGuiLocKey key) { ImGuiContext& g = *GImGui; const char* msg = g.LocalizationTable[key]; return msg ? msg : "*Missing Text*"; } + // Scrolling - IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // Use -1.0f on one axis to leave as-is IMGUI_API void SetScrollX(ImGuiWindow* window, float scroll_x); IMGUI_API void SetScrollY(ImGuiWindow* window, float scroll_y); IMGUI_API void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio); @@ -2738,7 +3034,7 @@ namespace ImGui // Basic Helpers for widget code IMGUI_API void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f); - IMGUI_API void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f); + inline void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f) { ItemSize(bb.GetSize(), text_baseline_y); } // FIXME: This is a misleading API since we expect CursorPos to be bb.Min. IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL, ImGuiItemFlags extra_flags = 0); IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id); IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id); @@ -2750,21 +3046,10 @@ namespace ImGui IMGUI_API ImVec2 GetContentRegionMaxAbs(); IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); - // Parameter stacks + // Parameter stacks (shared) IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled); IMGUI_API void PopItemFlag(); -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - // Currently refactoring focus/nav/tabbing system - // If you have old/custom copy-and-pasted widgets that used FocusableItemRegister(): - // (Old) IMGUI_VERSION_NUM < 18209: using 'ItemAdd(....)' and 'bool tab_focused = FocusableItemRegister(...)' - // (Old) IMGUI_VERSION_NUM >= 18209: using 'ItemAdd(..., ImGuiItemAddFlags_Focusable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_Focused) != 0' - // (New) IMGUI_VERSION_NUM >= 18413: using 'ItemAdd(..., ImGuiItemFlags_Inputable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_FocusedTabbing) != 0 || g.NavActivateInputId == id' (WIP) - // Widget code are simplified as there's no need to call FocusableItemUnregister() while managing the transition from regular widget to TempInputText() - inline bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id) { IM_ASSERT(0); IM_UNUSED(window); IM_UNUSED(id); return false; } // -> pass ImGuiItemAddFlags_Inputable flag to ItemAdd() - inline void FocusableItemUnregister(ImGuiWindow* window) { IM_ASSERT(0); IM_UNUSED(window); } // -> unnecessary: TempInputText() uses ImGuiInputTextFlags_MergedItem -#endif - // Logging/Capture IMGUI_API void LogBegin(ImGuiLogType type, int auto_open_depth); // -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. IMGUI_API void LogToBuffer(int auto_open_depth = -1); // Start logging/capturing to internal buffer @@ -2806,32 +3091,83 @@ namespace ImGui IMGUI_API void NavMoveRequestCancel(); IMGUI_API void NavMoveRequestApplyResult(); IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); - IMGUI_API float GetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode); - IMGUI_API ImVec2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor = 0.0f, float fast_factor = 0.0f); - IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); IMGUI_API void ActivateItem(ImGuiID id); // Remotely activate a button, checkbox, tree node etc. given its unique ID. activation is queued and processed on the next frame when the item is encountered again. + IMGUI_API void SetNavWindow(ImGuiWindow* window); IMGUI_API void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel); - // Focus Scope (WIP) - // This is generally used to identify a selection set (multiple of which may be in the same window), as selection - // patterns generally need to react (e.g. clear selection) when landing on an item of the set. - IMGUI_API void PushFocusScope(ImGuiID id); - IMGUI_API void PopFocusScope(); - inline ImGuiID GetFocusedFocusScope() { ImGuiContext& g = *GImGui; return g.NavFocusScopeId; } // Focus scope which is actually active - inline ImGuiID GetFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.NavFocusScopeIdCurrent; } // Focus scope we are outputting into, set by PushFocusScope() - // Inputs // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. - IMGUI_API void SetItemUsingMouseWheel(); - IMGUI_API void SetActiveIdUsingNavAndKeys(); - inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } - inline bool IsActiveIdUsingNavInput(ImGuiNavInput input) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavInputMask & (1 << input)) != 0; } - inline bool IsActiveIdUsingKey(ImGuiKey key) { ImGuiContext& g = *GImGui; IM_ASSERT(key < 64); return (g.ActiveIdUsingKeyInputMask & ((ImU64)1 << key)) != 0; } + inline bool IsNamedKey(ImGuiKey key) { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; } + inline bool IsNamedKeyOrModKey(ImGuiKey key) { return (key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END) || key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super; } + inline bool IsLegacyKey(ImGuiKey key) { return key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_LegacyNativeKey_END; } + inline bool IsKeyboardKey(ImGuiKey key) { return key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END; } + inline bool IsGamepadKey(ImGuiKey key) { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; } + inline bool IsMouseKey(ImGuiKey key) { return key >= ImGuiKey_Mouse_BEGIN && key < ImGuiKey_Mouse_END; } + inline bool IsAliasKey(ImGuiKey key) { return key >= ImGuiKey_Aliases_BEGIN && key < ImGuiKey_Aliases_END; } + inline ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key) + { + if (key == ImGuiMod_Ctrl) return ImGuiKey_ReservedForModCtrl; + if (key == ImGuiMod_Shift) return ImGuiKey_ReservedForModShift; + if (key == ImGuiMod_Alt) return ImGuiKey_ReservedForModAlt; + if (key == ImGuiMod_Super) return ImGuiKey_ReservedForModSuper; + return key; + } + + IMGUI_API ImGuiKeyData* GetKeyData(ImGuiKey key); + IMGUI_API void GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size); + inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); } IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f); - inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { ImGuiContext& g = *GImGui; const int key_index = g.IO.KeyMap[key]; return (key_index >= 0) ? IsKeyPressed(key_index, repeat) : false; } - inline bool IsNavInputDown(ImGuiNavInput n) { ImGuiContext& g = *GImGui; return g.IO.NavInputs[n] > 0.0f; } - inline bool IsNavInputTest(ImGuiNavInput n, ImGuiInputReadMode rm) { return (GetNavInputAmount(n, rm) > 0.0f); } - IMGUI_API ImGuiKeyModFlags GetMergedKeyModFlags(); + IMGUI_API ImVec2 GetKeyVector2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down); + IMGUI_API float GetNavTweakPressedAmount(ImGuiAxis axis); + IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); + IMGUI_API void GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate); + IMGUI_API void SetActiveIdUsingAllKeyboardKeys(); + inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } + + // [EXPERIMENTAL] Low-Level: Key/Input Ownership + // - The idea is that instead of "eating" a given input, we can link to an owner id. + // - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). + // - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). + // - Input ownership is automatically released on the frame after a key is released. Therefore: + // - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). + // - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). + // - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. + // - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. + // Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. + IMGUI_API ImGuiID GetKeyOwner(ImGuiKey key); + IMGUI_API void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags = 0); // Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'. + IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id); // Test that key is either not owned, either owned by 'owner_id' + inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiKey key) { if (key & ImGuiMod_Mask_) key = ConvertSingleModFlagToKey(key); IM_ASSERT(IsNamedKey(key)); return &GImGui->KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; } + + // [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership + // - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. + // - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) + // - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. + // Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. + // - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. + IMGUI_API bool IsKeyDown(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); // Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. + IMGUI_API bool IsKeyReleased(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id); + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id); + + // [EXPERIMENTAL] Shortcut Routing + // - ImGuiKeyChord = a ImGuiKey optionally OR-red with ImGuiMod_Alt/ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Super. + // ImGuiKey_C (accepted by functions taking ImGuiKey or ImGuiKeyChord) + // ImGuiKey_C | ImGuiMod_Ctrl (accepted by functions taking ImGuiKeyChord) + // ONLY ImGuiMod_XXX values are legal to 'OR' with an ImGuiKey. You CANNOT 'OR' two ImGuiKey values. + // - When using one of the routing flags (e.g. ImGuiInputFlags_RouteFocused): routes requested ahead of time given a chord (key + modifiers) and a routing policy. + // - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. + // - Route is granted to a single owner. When multiple requests are made we have policies to select the winning route. + // - Multiple read sites may use the same owner id and will all get the granted route. + // - For routing: when owner_id is 0 we use the current Focus Scope ID as a default owner in order to identify our location. + IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id); + IMGUI_API ImGuiKeyRoutingData* GetShortcutRoutingData(ImGuiKeyChord key_chord); // Docking // (some functions are only declared in imgui.cpp, see Docking section) @@ -2846,7 +3182,8 @@ namespace ImGui IMGUI_API void DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer); IMGUI_API void DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window); IMGUI_API void DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); - IMGUI_API bool DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos); + IMGUI_API bool DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos); + IMGUI_API ImGuiDockNode*DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id); IMGUI_API bool DockNodeBeginAmendTabBar(ImGuiDockNode* node); IMGUI_API void DockNodeEndAmendTabBar(); inline ImGuiDockNode* DockNodeGetRootNode(ImGuiDockNode* node) { while (node->ParentNode) node = node->ParentNode; return node; } @@ -2884,10 +3221,24 @@ namespace ImGui IMGUI_API void DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name); IMGUI_API void DockBuilderFinish(ImGuiID node_id); + // [EXPERIMENTAL] Focus Scope + // This is generally used to identify a unique input location (for e.g. a selection set) + // There is one per window (automatically set in Begin), but: + // - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set. + // So in order to identify a set multiple lists in same window may each need a focus scope. + // If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope() + // - Shortcut routing also use focus scope as a default location identifier if an owner is not provided. + // We don't use the ID Stack for this as it is common to want them separate. + IMGUI_API void PushFocusScope(ImGuiID id); + IMGUI_API void PopFocusScope(); + inline ImGuiID GetCurrentFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentFocusScopeId; } // Focus scope we are outputting into, set by PushFocusScope() + // Drag and Drop + IMGUI_API bool IsDragDropActive(); IMGUI_API bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id); IMGUI_API void ClearDragDrop(); IMGUI_API bool IsDragDropPayloadBeingAccepted(); + IMGUI_API void RenderDragDropTargetRect(const ImRect& bb); // Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) IMGUI_API void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect); @@ -2922,7 +3273,9 @@ namespace ImGui IMGUI_API void TableUpdateColumnsWeightFromWidth(ImGuiTable* table); IMGUI_API void TableDrawBorders(ImGuiTable* table); IMGUI_API void TableDrawContextMenu(ImGuiTable* table); + IMGUI_API bool TableBeginContextMenuPopup(ImGuiTable* table); IMGUI_API void TableMergeDrawChannels(ImGuiTable* table); + inline ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instance_no) { if (instance_no == 0) return &table->InstanceDataFirst; return &table->InstanceDataExtra[instance_no - 1]; } IMGUI_API void TableSortSpecsSanitize(ImGuiTable* table); IMGUI_API void TableSortSpecsBuild(ImGuiTable* table); IMGUI_API ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column); @@ -2948,7 +3301,7 @@ namespace ImGui IMGUI_API void TableSaveSettings(ImGuiTable* table); IMGUI_API void TableResetSettings(ImGuiTable* table); IMGUI_API ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table); - IMGUI_API void TableSettingsInstallHandler(ImGuiContext* context); + IMGUI_API void TableSettingsAddSettingsHandler(); IMGUI_API ImGuiTableSettings* TableSettingsCreate(ImGuiID id, int columns_count); IMGUI_API ImGuiTableSettings* TableSettingsFindByID(ImGuiID id); @@ -2963,7 +3316,8 @@ namespace ImGui IMGUI_API void TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, ImVec2 mouse_pos); IMGUI_API bool TabBarProcessReorder(ImGuiTabBar* tab_bar); IMGUI_API bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window); - IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button); + IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker); + IMGUI_API ImVec2 TabItemCalcSize(ImGuiWindow* window); IMGUI_API void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col); IMGUI_API void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped); @@ -2980,24 +3334,18 @@ namespace ImGui IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0); IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault); // Navigation highlight IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text. + IMGUI_API void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); // Render helpers (those functions don't access any ImGui state!) IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f); IMGUI_API void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); IMGUI_API void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); - IMGUI_API void RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); IMGUI_API void RenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col); IMGUI_API void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); - IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding); + IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding); IMGUI_API ImDrawFlags CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold); -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - // [1.71: 2019/06/07: Updating prototypes of some of the internal functions. Leaving those for reference for a short while] - inline void RenderArrow(ImVec2 pos, ImGuiDir dir, float scale=1.0f) { ImGuiWindow* window = GetCurrentWindow(); RenderArrow(window->DrawList, pos, GetColorU32(ImGuiCol_Text), dir, scale); } - inline void RenderBullet(ImVec2 pos) { ImGuiWindow* window = GetCurrentWindow(); RenderBullet(window->DrawList, pos, GetColorU32(ImGuiCol_Text)); } -#endif - // Widgets IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0); IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0); @@ -3006,7 +3354,7 @@ namespace ImGui IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0); IMGUI_API void Scrollbar(ImGuiAxis axis); IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags flags); - IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec2& padding, const ImVec4& bg_col, const ImVec4& tint_col); + IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col); IMGUI_API ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis); IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); IMGUI_API ImGuiID GetWindowResizeCornerID(ImGuiWindow* window, int n); // 0..3: corners @@ -3021,8 +3369,9 @@ namespace ImGui IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f, ImU32 bg_col = 0); IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL); - IMGUI_API bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0); // Consume previous SetNextItemOpen() data, if any. May return true when logging IMGUI_API void TreePushOverrideID(ImGuiID id); + IMGUI_API void TreeNodeSetOpen(ImGuiID id, bool open); + IMGUI_API bool TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags); // Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging. // Template functions are instantiated in imgui_widgets.cpp for a finite number of types. // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036). @@ -3031,14 +3380,14 @@ namespace ImGui template IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); template IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags); template IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); - template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); + template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); template IMGUI_API bool CheckboxFlagsT(const char* label, T* flags, T flags_value); // Data type helpers IMGUI_API const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type); IMGUI_API int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); - IMGUI_API bool DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format); + IMGUI_API bool DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format); IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); @@ -3047,7 +3396,7 @@ namespace ImGui IMGUI_API bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); IMGUI_API bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL); inline bool TempInputIsActive(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.ActiveId == id && g.TempInputId == id); } - inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active + inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (id != 0 && g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active // Color IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); @@ -3066,12 +3415,19 @@ namespace ImGui IMGUI_API void GcCompactTransientWindowBuffers(ImGuiWindow* window); IMGUI_API void GcAwakeTransientWindowBuffers(ImGuiWindow* window); + // Debug Log + IMGUI_API void DebugLog(const char* fmt, ...) IM_FMTARGS(1); + IMGUI_API void DebugLogV(const char* fmt, va_list args) IM_FMTLIST(1); + // Debug Tools IMGUI_API void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); IMGUI_API void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + IMGUI_API void DebugLocateItem(ImGuiID target_id); // Call sparingly: only 1 at the same time! + IMGUI_API void DebugLocateItemOnHover(ImGuiID target_id); // Only call on reaction to a mouse Hover: because only 1 at the same time! + IMGUI_API void DebugLocateItemResolveWithLastItem(); inline void DebugDrawItemRect(ImU32 col = IM_COL32(255,0,0,255)) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; GetForegroundDrawList(window)->AddRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, col); } inline void DebugStartItemPicker() { ImGuiContext& g = *GImGui; g.DebugItemPickerActive = true; } - IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); IMGUI_API void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end); IMGUI_API void DebugNodeColumns(ImGuiOldColumns* columns); @@ -3079,10 +3435,12 @@ namespace ImGui IMGUI_API void DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label); IMGUI_API void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb); IMGUI_API void DebugNodeFont(ImFont* font); + IMGUI_API void DebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph); IMGUI_API void DebugNodeStorage(ImGuiStorage* storage, const char* label); IMGUI_API void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label); IMGUI_API void DebugNodeTable(ImGuiTable* table); IMGUI_API void DebugNodeTableSettings(ImGuiTableSettings* settings); + IMGUI_API void DebugNodeInputTextState(ImGuiInputTextState* state); IMGUI_API void DebugNodeWindow(ImGuiWindow* window, const char* label); IMGUI_API void DebugNodeWindowSettings(ImGuiWindowSettings* settings); IMGUI_API void DebugNodeWindowsList(ImVector* windows, const char* label); @@ -3090,6 +3448,23 @@ namespace ImGui IMGUI_API void DebugNodeViewport(ImGuiViewportP* viewport); IMGUI_API void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb); + // Obsolete functions +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void SetItemUsingMouseWheel() { SetItemKeyOwner(ImGuiKey_MouseWheelY); } // Changed in 1.89 + inline bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0) { return TreeNodeUpdateNextOpen(id, flags); } // Renamed in 1.89 + + // Refactored focus/nav/tabbing system in 1.82 and 1.84. If you have old/custom copy-and-pasted widgets that used FocusableItemRegister(): + // (Old) IMGUI_VERSION_NUM < 18209: using 'ItemAdd(....)' and 'bool tab_focused = FocusableItemRegister(...)' + // (Old) IMGUI_VERSION_NUM >= 18209: using 'ItemAdd(..., ImGuiItemAddFlags_Focusable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_Focused) != 0' + // (New) IMGUI_VERSION_NUM >= 18413: using 'ItemAdd(..., ImGuiItemFlags_Inputable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_FocusedTabbing) != 0 || g.NavActivateInputId == id' (WIP) + // Widget code are simplified as there's no need to call FocusableItemUnregister() while managing the transition from regular widget to TempInputText() + inline bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id) { IM_ASSERT(0); IM_UNUSED(window); IM_UNUSED(id); return false; } // -> pass ImGuiItemAddFlags_Inputable flag to ItemAdd() + inline void FocusableItemUnregister(ImGuiWindow* window) { IM_ASSERT(0); IM_UNUSED(window); } // -> unnecessary: TempInputText() uses ImGuiInputTextFlags_MergedItem +#endif +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { IM_ASSERT(IsNamedKey(key)); return IsKeyPressed(key, repeat); } // Removed in 1.87: Mapping from named key is always identity! +#endif + } // namespace ImGui @@ -3104,7 +3479,9 @@ struct ImFontBuilderIO }; // Helper for font builder +#ifdef IMGUI_ENABLE_STB_TRUETYPE IMGUI_API const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype(); +#endif IMGUI_API void ImFontAtlasBuildInit(ImFontAtlas* atlas); IMGUI_API void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); IMGUI_API void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); @@ -3128,7 +3505,8 @@ extern const char* ImGuiTestEngine_FindItemDebugLabel(ImGuiContext* ctx, ImGuiI #define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register item label and status flags (optional) #define IMGUI_TEST_ENGINE_LOG(_FMT,...) if (g.TestEngineHookItems) ImGuiTestEngineHook_Log(&g, _FMT, __VA_ARGS__) // Custom log entry from user land into test log #else -#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) ((void)0) +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) ((void)0) +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) ((void)g) #endif //----------------------------------------------------------------------------- diff --git a/imgui-sys/third-party/imgui-docking/imgui/imgui_tables.cpp b/imgui-sys/third-party/imgui-docking/imgui/imgui_tables.cpp index 8a3fe93c1..503c098e9 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imgui_tables.cpp +++ b/imgui-sys/third-party/imgui-docking/imgui/imgui_tables.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (tables and columns code) /* @@ -24,7 +24,7 @@ Index of this file: */ // Navigating this file: -// - In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. // - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. //----------------------------------------------------------------------------- @@ -361,6 +361,8 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG table->IsLayoutLocked = false; table->InnerWidth = inner_width; temp_data->UserOuterSize = outer_size; + if (instance_no > 0 && table->InstanceDataExtra.Size < instance_no) + table->InstanceDataExtra.push_back(ImGuiTableInstanceData()); // When not using a child window, WorkRect.Max will grow as we append contents. if (use_child_window) @@ -537,7 +539,7 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG if (table->RefScale != 0.0f && table->RefScale != new_ref_scale_unit) { const float scale_factor = new_ref_scale_unit / table->RefScale; - //IMGUI_DEBUG_LOG("[table] %08X RefScaleUnit %.3f -> %.3f, scaling width by %.3f\n", table->ID, table->RefScaleUnit, new_ref_scale_unit, scale_factor); + //IMGUI_DEBUG_PRINT("[table] %08X RefScaleUnit %.3f -> %.3f, scaling width by %.3f\n", table->ID, table->RefScaleUnit, new_ref_scale_unit, scale_factor); for (int n = 0; n < columns_count; n++) table->Columns[n].WidthRequest = table->Columns[n].WidthRequest * scale_factor; } @@ -886,6 +888,7 @@ void ImGui::TableUpdateLayout(ImGuiTable* table) sum_width_requests += table->CellPaddingX * 2.0f; } table->ColumnsEnabledFixedCount = (ImGuiTableColumnIdx)count_fixed; + table->ColumnsStretchSumWeights = stretch_sum_weights; // [Part 4] Apply final widths based on requested widths const ImRect work_rect = table->WorkRect; @@ -933,10 +936,19 @@ void ImGui::TableUpdateLayout(ImGuiTable* table) width_remaining_for_stretched_columns -= 1.0f; } + // Determine if table is hovered which will be used to flag columns as hovered. + // - In principle we'd like to use the equivalent of IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + // but because our item is partially submitted at this point we use ItemHoverable() and a workaround (temporarily + // clear ActiveId, which is equivalent to the change provided by _AllowWhenBLockedByActiveItem). + // - This allows columns to be marked as hovered when e.g. clicking a button inside the column, or using drag and drop. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); table->HoveredColumnBody = -1; table->HoveredColumnBorder = -1; - const ImRect mouse_hit_rect(table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.Max.x, ImMax(table->OuterRect.Max.y, table->OuterRect.Min.y + table->LastOuterHeight)); + const ImRect mouse_hit_rect(table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.Max.x, ImMax(table->OuterRect.Max.y, table->OuterRect.Min.y + table_instance->LastOuterHeight)); + const ImGuiID backup_active_id = g.ActiveId; + g.ActiveId = 0; const bool is_hovering_table = ItemHoverable(mouse_hit_rect, 0); + g.ActiveId = backup_active_id; // [Part 6] Setup final position, offset, skip/clip states and clipping rectangles, detect hovered column // Process columns in their visible orders as we are comparing the visible order and adjusting host_clip_rect while looping. @@ -1096,23 +1108,15 @@ void ImGui::TableUpdateLayout(ImGuiTable* table) // [Part 10] Hit testing on borders if (table->Flags & ImGuiTableFlags_Resizable) TableUpdateBorders(table); - table->LastFirstRowHeight = 0.0f; + table_instance->LastFirstRowHeight = 0.0f; table->IsLayoutLocked = true; table->IsUsingHeaders = false; // [Part 11] Context menu - if (table->IsContextPopupOpen && table->InstanceCurrent == table->InstanceInteracted) + if (TableBeginContextMenuPopup(table)) { - const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); - if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings)) - { - TableDrawContextMenu(table); - EndPopup(); - } - else - { - table->IsContextPopupOpen = false; - } + TableDrawContextMenu(table); + EndPopup(); } // [Part 13] Sanitize and build sort specs before we have a change to use them for display. @@ -1141,10 +1145,11 @@ void ImGui::TableUpdateBorders(ImGuiTable* table) // use the final height from last frame. Because this is only affecting _interaction_ with columns, it is not // really problematic (whereas the actual visual will be displayed in EndTable() and using the current frame height). // Actual columns highlight/render will be performed in EndTable() and not be affected. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); const float hit_half_width = TABLE_RESIZE_SEPARATOR_HALF_THICKNESS; const float hit_y1 = table->OuterRect.Min.y; - const float hit_y2_body = ImMax(table->OuterRect.Max.y, hit_y1 + table->LastOuterHeight); - const float hit_y2_head = hit_y1 + table->LastFirstRowHeight; + const float hit_y2_body = ImMax(table->OuterRect.Max.y, hit_y1 + table_instance->LastOuterHeight); + const float hit_y2_head = hit_y1 + table_instance->LastFirstRowHeight; for (int order_n = 0; order_n < table->ColumnsCount; order_n++) { @@ -1166,8 +1171,8 @@ void ImGui::TableUpdateBorders(ImGuiTable* table) ImGuiID column_id = TableGetColumnResizeID(table, column_n, table->InstanceCurrent); ImRect hit_rect(column->MaxX - hit_half_width, hit_y1, column->MaxX + hit_half_width, border_y2_hit); + ItemAdd(hit_rect, column_id, NULL, ImGuiItemFlags_NoNav); //GetForegroundDrawList()->AddRect(hit_rect.Min, hit_rect.Max, IM_COL32(255, 0, 0, 100)); - KeepAliveID(column_id); bool hovered = false, held = false; bool pressed = ButtonBehavior(hit_rect, column_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_NoNavFocus); @@ -1223,6 +1228,7 @@ void ImGui::EndTable() TableOpenContextMenu((int)table->HoveredColumnBody); // Finalize table height + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); inner_window->DC.PrevLineSize = temp_data->HostBackupPrevLineSize; inner_window->DC.CurrLineSize = temp_data->HostBackupCurrLineSize; inner_window->DC.CursorMaxPos = temp_data->HostBackupCursorMaxPos; @@ -1233,7 +1239,7 @@ void ImGui::EndTable() else if (!(flags & ImGuiTableFlags_NoHostExtendY)) table->OuterRect.Max.y = table->InnerRect.Max.y = ImMax(table->OuterRect.Max.y, inner_content_max_y); // Patch OuterRect/InnerRect height table->WorkRect.Max.y = ImMax(table->WorkRect.Max.y, table->OuterRect.Max.y); - table->LastOuterHeight = table->OuterRect.GetHeight(); + table_instance->LastOuterHeight = table->OuterRect.GetHeight(); // Setup inner scrolling range // FIXME: This ideally should be done earlier, in BeginTable() SetNextWindowContentSize call, just like writing to inner_window->DC.CursorMaxPos.y, @@ -1279,17 +1285,23 @@ void ImGui::EndTable() splitter->Merge(inner_window->DrawList); // Update ColumnsAutoFitWidth to get us ahead for host using our size to auto-resize without waiting for next BeginTable() - const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); - table->ColumnsAutoFitWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount; + float auto_fit_width_for_fixed = 0.0f; + float auto_fit_width_for_stretched = 0.0f; + float auto_fit_width_for_stretched_min = 0.0f; for (int column_n = 0; column_n < table->ColumnsCount; column_n++) if (table->EnabledMaskByIndex & ((ImU64)1 << column_n)) { ImGuiTableColumn* column = &table->Columns[column_n]; - if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !(column->Flags & ImGuiTableColumnFlags_NoResize)) - table->ColumnsAutoFitWidth += column->WidthRequest; + float column_width_request = ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !(column->Flags & ImGuiTableColumnFlags_NoResize)) ? column->WidthRequest : TableGetColumnWidthAuto(table, column); + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + auto_fit_width_for_fixed += column_width_request; else - table->ColumnsAutoFitWidth += TableGetColumnWidthAuto(table, column); + auto_fit_width_for_stretched += column_width_request; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) && (column->Flags & ImGuiTableColumnFlags_NoResize) != 0) + auto_fit_width_for_stretched_min = ImMax(auto_fit_width_for_stretched_min, column_width_request / (column->StretchWeight / table->ColumnsStretchSumWeights)); } + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + table->ColumnsAutoFitWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount + auto_fit_width_for_fixed + ImMax(auto_fit_width_for_stretched, auto_fit_width_for_stretched_min); // Update scroll if ((table->Flags & ImGuiTableFlags_ScrollX) == 0 && inner_window != outer_window) @@ -1569,18 +1581,21 @@ ImGuiTableColumnFlags ImGui::TableGetColumnFlags(int column_n) // Return the cell rectangle based on currently known height. // - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations. -// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it. +// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it, or in TableEndRow() when we locked that height. // - Important: if ImGuiTableFlags_PadOuterX is set but ImGuiTableFlags_PadInnerX is not set, the outer-most left and right // columns report a small offset so their CellBgRect can extend up to the outer border. +// FIXME: But the rendering code in TableEndRow() nullifies that with clamping required for scrolling. ImRect ImGui::TableGetCellBgRect(const ImGuiTable* table, int column_n) { const ImGuiTableColumn* column = &table->Columns[column_n]; float x1 = column->MinX; float x2 = column->MaxX; - if (column->PrevEnabledColumn == -1) - x1 -= table->CellSpacingX1; - if (column->NextEnabledColumn == -1) - x2 += table->CellSpacingX2; + //if (column->PrevEnabledColumn == -1) + // x1 -= table->OuterPaddingX; + //if (column->NextEnabledColumn == -1) + // x2 += table->OuterPaddingX; + x1 = ImMax(x1, table->WorkRect.Min.x); + x2 = ImMin(x2, table->WorkRect.Max.x); return ImRect(x1, table->RowPosY1, x2, table->RowPosY2); } @@ -1710,6 +1725,8 @@ void ImGui::TableBeginRow(ImGuiTable* table) table->RowTextBaseline = 0.0f; table->RowIndentOffsetX = window->DC.Indent.x - table->HostIndentX; // Lock indent window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + window->DC.IsSameLine = window->DC.IsSetPos = false; window->DC.CursorMaxPos.y = next_y1; // Making the header BG color non-transparent will allow us to overlay it multiple times when handling smooth dragging. @@ -1746,7 +1763,7 @@ void ImGui::TableEndRow(ImGuiTable* table) const bool unfreeze_rows_actual = (table->CurrentRow + 1 == table->FreezeRowsCount); const bool unfreeze_rows_request = (table->CurrentRow + 1 == table->FreezeRowsRequest); if (table->CurrentRow == 0) - table->LastFirstRowHeight = bg_y2 - bg_y1; + TableGetInstanceData(table, table->InstanceCurrent)->LastFirstRowHeight = bg_y2 - bg_y1; const bool is_visible = (bg_y2 >= table->InnerClipRect.Min.y && bg_y1 <= table->InnerClipRect.Max.y); if (is_visible) @@ -1797,10 +1814,12 @@ void ImGui::TableEndRow(ImGuiTable* table) ImGuiTableCellData* cell_data_end = &table->RowCellData[table->RowCellDataCurrent]; for (ImGuiTableCellData* cell_data = &table->RowCellData[0]; cell_data <= cell_data_end; cell_data++) { + // As we render the BG here we need to clip things (for layout we would not) + // FIXME: This cancels the OuterPadding addition done by TableGetCellBgRect(), need to keep it while rendering correctly while scrolling. const ImGuiTableColumn* column = &table->Columns[cell_data->Column]; ImRect cell_bg_rect = TableGetCellBgRect(table, cell_data->Column); cell_bg_rect.ClipWith(table->BgClipRect); - cell_bg_rect.Min.x = ImMax(cell_bg_rect.Min.x, column->ClipRect.Min.x); // So that first column after frozen one gets clipped + cell_bg_rect.Min.x = ImMax(cell_bg_rect.Min.x, column->ClipRect.Min.x); // So that first column after frozen one gets clipped when scrolling cell_bg_rect.Max.x = ImMin(cell_bg_rect.Max.x, column->MaxX); window->DrawList->AddRectFilled(cell_bg_rect.Min, cell_bg_rect.Max, cell_data->BgColor); } @@ -1989,6 +2008,9 @@ void ImGui::TableEndCell(ImGuiTable* table) ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; ImGuiWindow* window = table->InnerWindow; + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + // Report maximum position so we can infer content size per column. float* p_max_pos_x; if (table->RowFlags & ImGuiTableRowFlags_Headers) @@ -2083,7 +2105,7 @@ void ImGui::TableSetColumnWidth(int column_n, float width) if (column_0->WidthGiven == column_0_width || column_0->WidthRequest == column_0_width) return; - //IMGUI_DEBUG_LOG("TableSetColumnWidth(%d, %.1f->%.1f)\n", column_0_idx, column_0->WidthGiven, column_0_width); + //IMGUI_DEBUG_PRINT("TableSetColumnWidth(%d, %.1f->%.1f)\n", column_0_idx, column_0->WidthGiven, column_0_width); ImGuiTableColumn* column_1 = (column_0->NextEnabledColumn != -1) ? &table->Columns[column_0->NextEnabledColumn] : NULL; // In this surprisingly not simple because of how we support mixing Fixed and multiple Stretch columns. @@ -2353,7 +2375,7 @@ void ImGui::TableMergeDrawChannels(ImGuiTable* table) // Don't attempt to merge if there are multiple draw calls within the column ImDrawChannel* src_channel = &splitter->_Channels[channel_no]; - if (src_channel->_CmdBuffer.Size > 0 && src_channel->_CmdBuffer.back().ElemCount == 0) + if (src_channel->_CmdBuffer.Size > 0 && src_channel->_CmdBuffer.back().ElemCount == 0 && src_channel->_CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() src_channel->_CmdBuffer.pop_back(); if (src_channel->_CmdBuffer.Size != 1) continue; @@ -2497,10 +2519,11 @@ void ImGui::TableDrawBorders(ImGuiTable* table) inner_drawlist->PushClipRect(table->Bg0ClipRectForDrawCmd.Min, table->Bg0ClipRectForDrawCmd.Max, false); // Draw inner border and resizing feedback + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); const float border_size = TABLE_BORDER_SIZE; const float draw_y1 = table->InnerRect.Min.y; const float draw_y2_body = table->InnerRect.Max.y; - const float draw_y2_head = table->IsUsingHeaders ? ImMin(table->InnerRect.Max.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table->LastFirstRowHeight) : draw_y1; + const float draw_y2_head = table->IsUsingHeaders ? ImMin(table->InnerRect.Max.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table_instance->LastFirstRowHeight) : draw_y1; if (table->Flags & ImGuiTableFlags_BordersInnerV) { for (int order_n = 0; order_n < table->ColumnsCount; order_n++) @@ -2982,7 +3005,7 @@ void ImGui::TableHeader(const char* label) RenderTextEllipsis(window->DrawList, label_pos, ImVec2(ellipsis_max, label_pos.y + label_height + g.Style.FramePadding.y), ellipsis_max, ellipsis_max, label, label_end, &label_size); const bool text_clipped = label_size.x > (ellipsis_max - label_pos.x); - if (text_clipped && hovered && g.HoveredIdNotActiveTimer > g.TooltipSlowDelay) + if (text_clipped && hovered && g.ActiveId == 0 && IsItemHovered(ImGuiHoveredFlags_DelayNormal)) SetTooltip("%.*s", (int)(label_end - label), label); // We don't use BeginPopupContextItem() because we want the popup to stay up even after the column is hidden @@ -3017,6 +3040,17 @@ void ImGui::TableOpenContextMenu(int column_n) } } +bool ImGui::TableBeginContextMenuPopup(ImGuiTable* table) +{ + if (!table->IsContextPopupOpen || table->InstanceCurrent != table->InstanceInteracted) + return false; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings)) + return true; + table->IsContextPopupOpen = false; + return false; +} + // Output context menu into current window (generally a popup) // FIXME-TABLE: Ideally this should be writable by the user. Full programmatic access to that data? void ImGui::TableDrawContextMenu(ImGuiTable* table) @@ -3036,15 +3070,15 @@ void ImGui::TableDrawContextMenu(ImGuiTable* table) if (column != NULL) { const bool can_resize = !(column->Flags & ImGuiTableColumnFlags_NoResize) && column->IsEnabled; - if (MenuItem("Size column to fit###SizeOne", NULL, false, can_resize)) + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableSizeOne), NULL, false, can_resize)) // "###SizeOne" TableSetColumnWidthAutoSingle(table, column_n); } const char* size_all_desc; if (table->ColumnsEnabledFixedCount == table->ColumnsEnabledCount && (table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame) - size_all_desc = "Size all columns to fit###SizeAll"; // All fixed + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllFit); // "###SizeAll" All fixed else - size_all_desc = "Size all columns to default###SizeAll"; // All stretch or mixed + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllDefault); // "###SizeAll" All stretch or mixed if (MenuItem(size_all_desc, NULL)) TableSetColumnWidthAutoAll(table); want_separator = true; @@ -3053,7 +3087,7 @@ void ImGui::TableDrawContextMenu(ImGuiTable* table) // Ordering if (table->Flags & ImGuiTableFlags_Reorderable) { - if (MenuItem("Reset order", NULL, false, !table->IsDefaultDisplayOrder)) + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableResetOrder), NULL, false, !table->IsDefaultDisplayOrder)) table->IsResetDisplayOrderRequest = true; want_separator = true; } @@ -3422,9 +3456,8 @@ static void TableSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandle } } -void ImGui::TableSettingsInstallHandler(ImGuiContext* context) +void ImGui::TableSettingsAddSettingsHandler() { - ImGuiContext& g = *context; ImGuiSettingsHandler ini_handler; ini_handler.TypeName = "Table"; ini_handler.TypeHash = ImHashStr("Table"); @@ -3433,7 +3466,7 @@ void ImGui::TableSettingsInstallHandler(ImGuiContext* context) ini_handler.ReadLineFn = TableSettingsHandler_ReadLine; ini_handler.ApplyAllFn = TableSettingsHandler_ApplyAll; ini_handler.WriteAllFn = TableSettingsHandler_WriteAll; - g.SettingsHandlers.push_back(ini_handler); + AddSettingsHandler(&ini_handler); } //------------------------------------------------------------------------- @@ -3447,7 +3480,7 @@ void ImGui::TableSettingsInstallHandler(ImGuiContext* context) // Remove Table (currently only used by TestEngine) void ImGui::TableRemove(ImGuiTable* table) { - //IMGUI_DEBUG_LOG("TableRemove() id=0x%08X\n", table->ID); + //IMGUI_DEBUG_PRINT("TableRemove() id=0x%08X\n", table->ID); ImGuiContext& g = *GImGui; int table_idx = g.Tables.GetIndex(table); //memset(table->RawData.Data, 0, table->RawData.size_in_bytes()); @@ -3459,7 +3492,7 @@ void ImGui::TableRemove(ImGuiTable* table) // Free up/compact internal Table buffers for when it gets unused void ImGui::TableGcCompactTransientBuffers(ImGuiTable* table) { - //IMGUI_DEBUG_LOG("TableGcCompactTransientBuffers() id=0x%08X\n", table->ID); + //IMGUI_DEBUG_PRINT("TableGcCompactTransientBuffers() id=0x%08X\n", table->ID); ImGuiContext& g = *GImGui; IM_ASSERT(table->MemoryCompacted == false); table->SortSpecs.Specs = NULL; @@ -3503,7 +3536,7 @@ void ImGui::TableGcCompactSettings() // - DebugNodeTable() [Internal] //------------------------------------------------------------------------- -#ifndef IMGUI_DISABLE_METRICS_WINDOW +#ifndef IMGUI_DISABLE_DEBUG_TOOLS static const char* DebugNodeTableGetSizingPolicyDesc(ImGuiTableFlags sizing_policy) { @@ -3531,6 +3564,8 @@ void ImGui::DebugNodeTable(ImGuiTable* table) GetForegroundDrawList()->AddRect(GetItemRectMin(), GetItemRectMax(), IM_COL32(255, 255, 0, 255)); if (!open) return; + if (table->InstanceCurrent > 0) + ImGui::Text("** %d instances of same table! Some data below will refer to last instance.", table->InstanceCurrent + 1); bool clear_settings = SmallButton("Clear settings"); BulletText("OuterRect: Pos: (%.1f,%.1f) Size: (%.1f,%.1f) Sizing: '%s'", table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.GetWidth(), table->OuterRect.GetHeight(), DebugNodeTableGetSizingPolicyDesc(table->Flags)); BulletText("ColumnsGivenWidth: %.1f, ColumnsAutoFitWidth: %.1f, InnerWidth: %.1f%s", table->ColumnsGivenWidth, table->ColumnsAutoFitWidth, table->InnerWidth, table->InnerWidth == 0.0f ? " (auto)" : ""); @@ -3595,7 +3630,7 @@ void ImGui::DebugNodeTableSettings(ImGuiTableSettings* settings) TreePop(); } -#else // #ifndef IMGUI_DISABLE_METRICS_WINDOW +#else // #ifndef IMGUI_DISABLE_DEBUG_TOOLS void ImGui::DebugNodeTable(ImGuiTable*) {} void ImGui::DebugNodeTableSettings(ImGuiTableSettings*) {} @@ -3935,6 +3970,7 @@ void ImGui::NextColumn() { // New row/line: column 0 honor IndentX. window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.IsSameLine = false; columns->LineMinY = columns->LineMaxY; } window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); @@ -3986,8 +4022,7 @@ void ImGui::EndColumns() const ImGuiID column_id = columns->ID + ImGuiID(n); const float column_hit_hw = COLUMNS_HIT_RECT_HALF_WIDTH; const ImRect column_hit_rect(ImVec2(x - column_hit_hw, y1), ImVec2(x + column_hit_hw, y2)); - KeepAliveID(column_id); - if (IsClippedEx(column_hit_rect, column_id)) // FIXME: Can be removed or replaced with a lower-level test + if (!ItemAdd(column_hit_rect, column_id, NULL, ImGuiItemFlags_NoNav)) continue; bool hovered = false, held = false; diff --git a/imgui-sys/third-party/imgui-docking/imgui/imgui_widgets.cpp b/imgui-sys/third-party/imgui-docking/imgui/imgui_widgets.cpp index 89e3681e4..28f8e894a 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imgui_widgets.cpp +++ b/imgui-sys/third-party/imgui-docking/imgui/imgui_widgets.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (widgets code) /* @@ -41,7 +41,6 @@ Index of this file: #include "imgui_internal.h" // System includes -#include // toupper #if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier #include // intptr_t #else @@ -82,6 +81,7 @@ Index of this file: #pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind #pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked #pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated #endif //------------------------------------------------------------------------- @@ -166,7 +166,21 @@ void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); const float wrap_pos_x = window->DC.TextWrapPos; const bool wrap_enabled = (wrap_pos_x >= 0.0f); - if (text_end - text > 2000 && !wrap_enabled) + if (text_end - text <= 2000 || wrap_enabled) + { + // Common case + const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; + const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + if (!ItemAdd(bb, 0)) + return; + + // Render (we don't hide text after ## in this end-user function) + RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); + } + else { // Long text! // Perform manual coarse clipping to optimize for long multi-line text @@ -239,19 +253,6 @@ void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) ItemSize(text_size, 0.0f); ItemAdd(bb, 0); } - else - { - const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; - const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); - - ImRect bb(text_pos, text_pos + text_size); - ItemSize(text_size, 0.0f); - if (!ItemAdd(bb, 0)) - return; - - // Render (we don't hide text after ## in this end-user function) - RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); - } } void ImGui::TextUnformatted(const char* text, const char* text_end) @@ -274,9 +275,9 @@ void ImGui::TextV(const char* fmt, va_list args) return; // FIXME-OPT: Handle the %s shortcut? - ImGuiContext& g = *GImGui; - const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - TextEx(g.TempBuffer, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); + const char* text, *text_end; + ImFormatStringToTempBufferV(&text, &text_end, fmt, args); + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); } void ImGui::TextColored(const ImVec4& col, const char* fmt, ...) @@ -357,8 +358,8 @@ void ImGui::LabelTextV(const char* label, const char* fmt, va_list args) const ImGuiStyle& style = g.Style; const float w = CalcItemWidth(); - const char* value_text_begin = &g.TempBuffer[0]; - const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); + const char* value_text_begin, *value_text_end; + ImFormatStringToTempBufferV(&value_text_begin, &value_text_end, fmt, args); const ImVec2 value_size = CalcTextSize(value_text_begin, value_text_end, false); const ImVec2 label_size = CalcTextSize(label, NULL, true); @@ -393,8 +394,8 @@ void ImGui::BulletTextV(const char* fmt, va_list args) ImGuiContext& g = *GImGui; const ImGuiStyle& style = g.Style; - const char* text_begin = g.TempBuffer; - const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); + const char* text_begin, *text_end; + ImFormatStringToTempBufferV(&text_begin, &text_end, fmt, args); const ImVec2 label_size = CalcTextSize(text_begin, text_end, false); const ImVec2 total_size = ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x * 2) : 0.0f), label_size.y); // Empty text doesn't add padding ImVec2 pos = window->DC.CursorPos; @@ -540,22 +541,20 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool hovered = false; // Mouse handling + const ImGuiID test_owner_id = (flags & ImGuiButtonFlags_NoTestKeyOwner) ? ImGuiKeyOwner_Any : id; if (hovered) { if (!(flags & ImGuiButtonFlags_NoKeyModifiers) || (!g.IO.KeyCtrl && !g.IO.KeyShift && !g.IO.KeyAlt)) { // Poll buttons int mouse_button_clicked = -1; - int mouse_button_released = -1; - if ((flags & ImGuiButtonFlags_MouseButtonLeft) && g.IO.MouseClicked[0]) { mouse_button_clicked = 0; } - else if ((flags & ImGuiButtonFlags_MouseButtonRight) && g.IO.MouseClicked[1]) { mouse_button_clicked = 1; } - else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && g.IO.MouseClicked[2]) { mouse_button_clicked = 2; } - if ((flags & ImGuiButtonFlags_MouseButtonLeft) && g.IO.MouseReleased[0]) { mouse_button_released = 0; } - else if ((flags & ImGuiButtonFlags_MouseButtonRight) && g.IO.MouseReleased[1]) { mouse_button_released = 1; } - else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && g.IO.MouseReleased[2]) { mouse_button_released = 2; } - + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && IsMouseClicked(0, test_owner_id)) { mouse_button_clicked = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && IsMouseClicked(1, test_owner_id)) { mouse_button_clicked = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && IsMouseClicked(2, test_owner_id)) { mouse_button_clicked = 2; } if (mouse_button_clicked != -1 && g.ActiveId != id) { + if (!(flags & ImGuiButtonFlags_NoSetKeyOwner)) + SetKeyOwner(MouseButtonToKey(mouse_button_clicked), id); if (flags & (ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere)) { SetActiveID(id, window); @@ -577,21 +576,27 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool FocusWindow(window); } } - if ((flags & ImGuiButtonFlags_PressedOnRelease) && mouse_button_released != -1) + if (flags & ImGuiButtonFlags_PressedOnRelease) { - // Repeat mode trumps on release behavior - const bool has_repeated_at_least_once = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; - if (!has_repeated_at_least_once) - pressed = true; - if (!(flags & ImGuiButtonFlags_NoNavFocus)) - SetFocusID(id, window); - ClearActiveID(); + int mouse_button_released = -1; + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && IsMouseReleased(0, test_owner_id)) { mouse_button_released = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && IsMouseReleased(1, test_owner_id)) { mouse_button_released = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && IsMouseReleased(2, test_owner_id)) { mouse_button_released = 2; } + if (mouse_button_released != -1) + { + const bool has_repeated_at_least_once = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; // Repeat mode trumps on release behavior + if (!has_repeated_at_least_once) + pressed = true; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + ClearActiveID(); + } } // 'Repeat' mode acts when held regardless of _PressedOn flags (see table above). // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. if (g.ActiveId == id && (flags & ImGuiButtonFlags_Repeat)) - if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, true)) + if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, test_owner_id, ImGuiInputFlags_Repeat)) pressed = true; } @@ -607,7 +612,15 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool if (g.NavActivateDownId == id) { bool nav_activated_by_code = (g.NavActivateId == id); - bool nav_activated_by_inputs = IsNavInputTest(ImGuiNavInput_Activate, (flags & ImGuiButtonFlags_Repeat) ? ImGuiInputReadMode_Repeat : ImGuiInputReadMode_Pressed); + bool nav_activated_by_inputs = (g.NavActivatePressedId == id); + if (!nav_activated_by_inputs && (flags & ImGuiButtonFlags_Repeat)) + { + // Avoid pressing both keys from triggering double amount of repeat events + const ImGuiKeyData* key1 = GetKeyData(ImGuiKey_Space); + const ImGuiKeyData* key2 = GetKeyData(ImGuiKey_NavGamepadActivate); + const float t1 = ImMax(key1->DownDuration, key2->DownDuration); + nav_activated_by_inputs = CalcTypematicRepeatAmount(t1 - g.IO.DeltaTime, t1, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; + } if (nav_activated_by_code || nav_activated_by_inputs) { // Set active id so it can be queried by user via IsItemActive(), equivalent of holding the mouse button. @@ -629,8 +642,7 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool g.ActiveIdClickOffset = g.IO.MousePos - bb.Min; const int mouse_button = g.ActiveIdMouseButton; - IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); - if (g.IO.MouseDown[mouse_button]) + if (IsMouseDown(mouse_button, test_owner_id)) { held = true; } @@ -643,7 +655,8 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool // Report as pressed when releasing the mouse (this is the most common path) bool is_double_click_release = (flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseReleased[mouse_button] && g.IO.MouseClickedLastCount[mouse_button] == 2; bool is_repeating_already = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button] >= g.IO.KeyRepeatDelay; // Repeat mode trumps - if (!is_double_click_release && !is_repeating_already) + bool is_button_avail_or_owned = TestKeyOwner(MouseButtonToKey(mouse_button), test_owner_id); + if (!is_double_click_release && !is_repeating_already && is_button_avail_or_owned) pressed = true; } ClearActiveID(); @@ -731,6 +744,7 @@ bool ImGui::SmallButton(const char* label) // Then you can keep 'str_id' empty or the same for all your buttons (instead of creating a string based on a non-string id) bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags) { + ImGuiContext& g = *GImGui; ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) return false; @@ -748,16 +762,17 @@ bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiBut bool hovered, held; bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); return pressed; } bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags) { + ImGuiContext& g = *GImGui; ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) return false; - ImGuiContext& g = *GImGui; const ImGuiID id = window->GetID(str_id); const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); const float default_size = GetFrameHeight(); @@ -778,6 +793,7 @@ bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiBu RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding); RenderArrow(window->DrawList, bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.FontSize) * 0.5f)), text_col, dir); + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); return pressed; } @@ -841,9 +857,8 @@ bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_no //bool is_dock_menu = (window->DockNodeAsHost && !window->Collapsed); ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); ImU32 text_col = GetColorU32(ImGuiCol_Text); - ImVec2 center = bb.GetCenter(); if (hovered || held) - window->DrawList->AddCircleFilled(center + ImVec2(0,-0.5f), g.FontSize * 0.5f + 1.0f, bg_col, 12); + window->DrawList->AddCircleFilled(bb.GetCenter() + ImVec2(0,-0.5f), g.FontSize * 0.5f + 1.0f, bg_col, 12); if (dock_node) RenderArrowDockMenu(window->DrawList, bb.Min + g.Style.FramePadding, g.FontSize, text_col); @@ -859,7 +874,7 @@ bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_no ImGuiID ImGui::GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) { - return window->GetIDNoKeepAlive(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); + return window->GetID(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); } // Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is set. @@ -880,9 +895,7 @@ void ImGui::Scrollbar(ImGuiAxis axis) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - const ImGuiID id = GetWindowScrollbarID(window, axis); - KeepAliveID(id); // Calculate scrollbar bounding box ImRect bb = GetWindowScrollbarRect(window, axis); @@ -951,6 +964,7 @@ bool ImGui::ScrollbarEx(const ImRect& bb_frame, ImGuiID id, ImGuiAxis axis, ImS6 // Handle input right away. None of the code of Begin() is relying on scrolling position before calling Scrollbar(). bool held = false; bool hovered = false; + ItemAdd(bb_frame, id, NULL, ImGuiItemFlags_NoNav); ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus); const ImS64 scroll_max = ImMax((ImS64)1, size_contents_v - size_avail_v); @@ -1030,14 +1044,15 @@ void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& // ImageButton() is flawed as 'id' is always derived from 'texture_id' (see #2464 #1390) // We provide this internal helper to write your own variant while we figure out how to redesign the public ImageButton() API. -bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec2& padding, const ImVec4& bg_col, const ImVec4& tint_col) +bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) { ImGuiContext& g = *GImGui; ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) return false; - const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2); + const ImVec2 padding = g.Style.FramePadding; + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2.0f); ItemSize(bb); if (!ItemAdd(bb, id)) return false; @@ -1056,9 +1071,21 @@ bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size return pressed; } -// frame_padding < 0: uses FramePadding from style (default) -// frame_padding = 0: no framing -// frame_padding > 0: set framing size +bool ImGui::ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + return ImageButtonEx(window->GetID(str_id), user_texture_id, size, uv0, uv1, bg_col, tint_col); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy API obsoleted in 1.89. Two differences with new ImageButton() +// - new ImageButton() requires an explicit 'const char* str_id' Old ImageButton() used opaque imTextureId (created issue with: multiple buttons with same image, transient texture id values, opaque computation of ID) +// - new ImageButton() always use style.FramePadding Old ImageButton() had an override argument. +// If you need to change padding with new ImageButton() you can use PushStyleVar(ImGuiStyleVar_FramePadding, value), consistent with other Button functions. bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col) { ImGuiContext& g = *GImGui; @@ -1071,9 +1098,14 @@ bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const I const ImGuiID id = window->GetID("#image"); PopID(); - const ImVec2 padding = (frame_padding >= 0) ? ImVec2((float)frame_padding, (float)frame_padding) : g.Style.FramePadding; - return ImageButtonEx(id, user_texture_id, size, uv0, uv1, padding, bg_col, tint_col); + if (frame_padding >= 0) + PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2((float)frame_padding, (float)frame_padding)); + bool ret = ImageButtonEx(id, user_texture_id, size, uv0, uv1, bg_col, tint_col); + if (frame_padding >= 0) + PopStyleVar(); + return ret; } +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS bool ImGui::Checkbox(const char* label, bool* v) { @@ -1288,7 +1320,7 @@ void ImGui::Bullet() ImGuiContext& g = *GImGui; const ImGuiStyle& style = g.Style; - const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2), g.FontSize); + const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), g.FontSize); const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); ItemSize(bb); if (!ItemAdd(bb, 0)) @@ -1344,6 +1376,7 @@ void ImGui::NewLine() ImGuiContext& g = *GImGui; const ImGuiLayoutType backup_layout_type = window->DC.LayoutType; window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height. ItemSize(ImVec2(0, 0)); else @@ -1451,11 +1484,7 @@ bool ImGui::SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - const ImGuiItemFlags item_flags_backup = g.CurrentItemFlags; - g.CurrentItemFlags |= ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus; - bool item_add = ItemAdd(bb, id); - g.CurrentItemFlags = item_flags_backup; - if (!item_add) + if (!ItemAdd(bb, id, NULL, ImGuiItemFlags_NoNav)) return false; bool hovered, held; @@ -1541,7 +1570,7 @@ void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_exc width_excess -= width_to_remove_per_item * count_same_width; } - // Round width and redistribute remainder left-to-right (could make it an option of the function?) + // Round width and redistribute remainder // Ensure that e.g. the right-most tab of a shrunk tab-bar always reaches exactly at the same distance from the right-most edge of the tab bar separator. width_excess = 0.0f; for (int n = 0; n < count; n++) @@ -1550,10 +1579,13 @@ void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_exc width_excess += items[n].Width - width_rounded; items[n].Width = width_rounded; } - if (width_excess > 0.0f) - for (int n = 0; n < count; n++) - if (items[n].Index < (int)(width_excess + 0.01f)) - items[n].Width += 1.0f; + while (width_excess > 0.0f) + for (int n = 0; n < count && width_excess > 0.0f; n++) + { + float width_to_add = ImMin(items[n].InitialWidth - items[n].Width, 1.0f); + items[n].Width += width_to_add; + width_excess -= width_to_add; + } } //------------------------------------------------------------------------- @@ -1723,7 +1755,7 @@ bool ImGui::BeginComboPreview() ImGuiWindow* window = g.CurrentWindow; ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; - if (window->SkipItems || !window->ClipRect.Overlaps(g.LastItemData.Rect)) // FIXME: Because we don't have a ImGuiItemStatusFlags_Visible flag to test last ItemAdd() result + if (window->SkipItems || !(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible)) return false; IM_ASSERT(g.LastItemData.Rect.Min.x == preview_data->PreviewRect.Min.x && g.LastItemData.Rect.Min.y == preview_data->PreviewRect.Min.y); // Didn't call after BeginCombo/EndCombo block or forgot to pass ImGuiComboFlags_CustomPreview flag? if (!window->ClipRect.Contains(preview_data->PreviewRect)) // Narrower test (optional) @@ -1738,6 +1770,7 @@ bool ImGui::BeginComboPreview() window->DC.CursorPos = preview_data->PreviewRect.Min + g.Style.FramePadding; window->DC.CursorMaxPos = window->DC.CursorPos; window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; PushClipRect(preview_data->PreviewRect.Min, preview_data->PreviewRect.Max, true); return true; @@ -1763,6 +1796,7 @@ void ImGui::EndComboPreview() window->DC.CursorPosPrevLine = preview_data->BackupCursorPosPrevLine; window->DC.PrevLineTextBaseOffset = preview_data->BackupPrevLineTextBaseOffset; window->DC.LayoutType = preview_data->BackupLayout; + window->DC.IsSameLine = false; preview_data->PreviewRect = ImRect(); } @@ -1865,11 +1899,11 @@ bool ImGui::Combo(const char* label, int* current_item, const char* items_separa //------------------------------------------------------------------------- // [SECTION] Data Type and Data Formatting Helpers [Internal] //------------------------------------------------------------------------- -// - PatchFormatStringFloatToInt() // - DataTypeGetInfo() // - DataTypeFormatString() // - DataTypeApplyOp() // - DataTypeApplyOpFromText() +// - DataTypeCompare() // - DataTypeClamp() // - GetMinimumStepAtDecimalPrecision // - RoundScalarWithFormat<>() @@ -1895,30 +1929,6 @@ static const ImGuiDataTypeInfo GDataTypeInfo[] = }; IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT); -// FIXME-LEGACY: Prior to 1.61 our DragInt() function internally used floats and because of this the compile-time default value for format was "%.0f". -// Even though we changed the compile-time default, we expect users to have carried %f around, which would break the display of DragInt() calls. -// To honor backward compatibility we are rewriting the format string, unless IMGUI_DISABLE_OBSOLETE_FUNCTIONS is enabled. What could possibly go wrong?! -static const char* PatchFormatStringFloatToInt(const char* fmt) -{ - if (fmt[0] == '%' && fmt[1] == '.' && fmt[2] == '0' && fmt[3] == 'f' && fmt[4] == 0) // Fast legacy path for "%.0f" which is expected to be the most common case. - return "%d"; - const char* fmt_start = ImParseFormatFindStart(fmt); // Find % (if any, and ignore %%) - const char* fmt_end = ImParseFormatFindEnd(fmt_start); // Find end of format specifier, which itself is an exercise of confidence/recklessness (because snprintf is dependent on libc or user). - if (fmt_end > fmt_start && fmt_end[-1] == 'f') - { -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - if (fmt_start == fmt && fmt_end[0] == 0) - return "%d"; - ImGuiContext& g = *GImGui; - ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%.*s%%d%s", (int)(fmt_start - fmt), fmt, fmt_end); // Honor leading and trailing decorations, but lose alignment/precision. - return g.TempBuffer; -#else - IM_ASSERT(0 && "DragInt(): Invalid format string!"); // Old versions used a default parameter of "%.0f", please replace with e.g. "%d" -#endif - } - return fmt; -} - const ImGuiDataTypeInfo* ImGui::DataTypeGetInfo(ImGuiDataType data_type) { IM_ASSERT(data_type >= 0 && data_type < ImGuiDataType_COUNT); @@ -2000,24 +2010,10 @@ void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const // User can input math operators (e.g. +100) to edit a numerical values. // NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess.. -bool ImGui::DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format) +bool ImGui::DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format) { while (ImCharIsBlankA(*buf)) buf++; - - // We don't support '-' op because it would conflict with inputing negative value. - // Instead you can use +-100 to subtract from an existing value - char op = buf[0]; - if (op == '+' || op == '*' || op == '/') - { - buf++; - while (ImCharIsBlankA(*buf)) - buf++; - } - else - { - op = 0; - } if (!buf[0]) return false; @@ -2026,66 +2022,20 @@ bool ImGui::DataTypeApplyOpFromText(const char* buf, const char* initial_value_b ImGuiDataTypeTempStorage data_backup; memcpy(&data_backup, p_data, type_info->Size); - if (format == NULL) + // Sanitize format + // For float/double we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in, so force them into %f and %lf + char format_sanitized[32]; + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) format = type_info->ScanFmt; - - // FIXME-LEGACY: The aim is to remove those operators and write a proper expression evaluator at some point.. - int arg1i = 0; - if (data_type == ImGuiDataType_S32) - { - int* v = (int*)p_data; - int arg0i = *v; - float arg1f = 0.0f; - if (op && sscanf(initial_value_buf, format, &arg0i) < 1) - return false; - // Store operand in a float so we can use fractional value for multipliers (*1.1), but constant always parsed as integer so we can fit big integers (e.g. 2000000003) past float precision - if (op == '+') { if (sscanf(buf, "%d", &arg1i)) *v = (int)(arg0i + arg1i); } // Add (use "+-" to subtract) - else if (op == '*') { if (sscanf(buf, "%f", &arg1f)) *v = (int)(arg0i * arg1f); } // Multiply - else if (op == '/') { if (sscanf(buf, "%f", &arg1f) && arg1f != 0.0f) *v = (int)(arg0i / arg1f); } // Divide - else { if (sscanf(buf, format, &arg1i) == 1) *v = arg1i; } // Assign constant - } - else if (data_type == ImGuiDataType_Float) - { - // For floats we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in - format = "%f"; - float* v = (float*)p_data; - float arg0f = *v, arg1f = 0.0f; - if (op && sscanf(initial_value_buf, format, &arg0f) < 1) - return false; - if (sscanf(buf, format, &arg1f) < 1) - return false; - if (op == '+') { *v = arg0f + arg1f; } // Add (use "+-" to subtract) - else if (op == '*') { *v = arg0f * arg1f; } // Multiply - else if (op == '/') { if (arg1f != 0.0f) *v = arg0f / arg1f; } // Divide - else { *v = arg1f; } // Assign constant - } - else if (data_type == ImGuiDataType_Double) - { - format = "%lf"; // scanf differentiate float/double unlike printf which forces everything to double because of ellipsis - double* v = (double*)p_data; - double arg0f = *v, arg1f = 0.0; - if (op && sscanf(initial_value_buf, format, &arg0f) < 1) - return false; - if (sscanf(buf, format, &arg1f) < 1) - return false; - if (op == '+') { *v = arg0f + arg1f; } // Add (use "+-" to subtract) - else if (op == '*') { *v = arg0f * arg1f; } // Multiply - else if (op == '/') { if (arg1f != 0.0f) *v = arg0f / arg1f; } // Divide - else { *v = arg1f; } // Assign constant - } - else if (data_type == ImGuiDataType_U32 || data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) - { - // All other types assign constant - // We don't bother handling support for legacy operators since they are a little too crappy. Instead we will later implement a proper expression evaluator in the future. - if (sscanf(buf, format, p_data) < 1) - return false; - } else + format = ImParseFormatSanitizeForScanning(format, format_sanitized, IM_ARRAYSIZE(format_sanitized)); + + // Small types need a 32-bit buffer to receive the result from scanf() + int v32 = 0; + if (sscanf(buf, format, type_info->Size >= 4 ? p_data : &v32) < 1) + return false; + if (type_info->Size < 4) { - // Small types need a 32-bit buffer to receive the result from scanf() - int v32; - if (sscanf(buf, format, &v32) < 1) - return false; if (data_type == ImGuiDataType_S8) *(ImS8*)p_data = (ImS8)ImClamp(v32, (int)IM_S8_MIN, (int)IM_S8_MAX); else if (data_type == ImGuiDataType_U8) @@ -2167,45 +2117,17 @@ static float GetMinimumStepAtDecimalPrecision(int decimal_precision) } template -static const char* ImAtoi(const char* src, TYPE* output) -{ - int negative = 0; - if (*src == '-') { negative = 1; src++; } - if (*src == '+') { src++; } - TYPE v = 0; - while (*src >= '0' && *src <= '9') - v = (v * 10) + (*src++ - '0'); - *output = negative ? -v : v; - return src; -} - -// Sanitize format -// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi -// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi. -static void SanitizeFormatString(const char* fmt, char* fmt_out, size_t fmt_out_size) -{ - IM_UNUSED(fmt_out_size); - const char* fmt_end = ImParseFormatFindEnd(fmt); - IM_ASSERT((size_t)(fmt_end - fmt + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! - while (fmt < fmt_end) - { - char c = *(fmt++); - if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. - *(fmt_out++) = c; - } - *fmt_out = 0; // Zero-terminate -} - -template TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v) { + IM_UNUSED(data_type); + IM_ASSERT(data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double); const char* fmt_start = ImParseFormatFindStart(format); if (fmt_start[0] != '%' || fmt_start[1] == '%') // Don't apply if the value is not visible in the format string return v; // Sanitize format char fmt_sanitized[32]; - SanitizeFormatString(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); + ImParseFormatSanitizeForPrinting(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); fmt_start = fmt_sanitized; // Format value with our rounding, and read back @@ -2214,10 +2136,8 @@ TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, const char* p = v_str; while (*p == ' ') p++; - if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) - v = (TYPE)ImAtof(p); - else - ImAtoi(p, (SIGNEDTYPE*)&v); + v = (TYPE)ImAtof(p); + return v; } @@ -2267,7 +2187,10 @@ bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const else if (g.ActiveIdSource == ImGuiInputSource_Nav) { const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; - adjust_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard | ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_RepeatFast, 1.0f / 10.0f, 10.0f)[axis]; + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const float tweak_factor = tweak_slow ? 1.0f / 1.0f : tweak_fast ? 10.0f : 1.0f; + adjust_delta = GetNavTweakPressedAmount(axis) * tweak_factor; v_speed = ImMax(v_speed, GetMinimumStepAtDecimalPrecision(decimal_precision)); } adjust_delta *= v_speed; @@ -2321,8 +2244,8 @@ bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const } // Round to user desired precision based on format string - if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) - v_cur = RoundScalarWithFormatT(format, data_type, v_cur); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_cur = RoundScalarWithFormatT(format, data_type, v_cur); // Preserve remainder after rounding has been applied. This also allow slow tweaking of values. g.DragCurrentAccumDirty = false; @@ -2365,6 +2288,7 @@ bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v ImGuiContext& g = *GImGui; if (g.ActiveId == id) { + // Those are the things we can do easily outside the DragBehaviorT<> template, saves code generation. if (g.ActiveIdSource == ImGuiInputSource_Mouse && !g.IO.MouseDown[0]) ClearActiveID(); else if (g.ActiveIdSource == ImGuiInputSource_Nav && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) @@ -2418,29 +2342,23 @@ bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, // Default format string when passing NULL if (format == NULL) format = DataTypeGetInfo(data_type)->PrintFmt; - else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) - format = PatchFormatStringFloatToInt(format); - // Tabbing or CTRL-clicking on Drag turns it into an InputText const bool hovered = ItemHoverable(frame_bb, id); bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); if (!temp_input_is_active) { + // Tabbing or CTRL-clicking on Drag turns it into an InputText const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; - const bool clicked = (hovered && g.IO.MouseClicked[0]); - const bool double_clicked = (hovered && g.IO.MouseClickedCount[0] == 2); - if (input_requested_by_tabbing || clicked || double_clicked || g.NavActivateId == id || g.NavActivateInputId == id) - { - SetActiveID(id, window); - SetFocusID(id, window); - FocusWindow(window); - g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); - if (temp_input_allowed) - if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || double_clicked || g.NavActivateInputId == id) - temp_input_is_active = true; - } + const bool clicked = hovered && IsMouseClicked(0, id); + const bool double_clicked = (hovered && g.IO.MouseClickedCount[0] == 2 && TestKeyOwner(ImGuiKey_MouseLeft, id)); + const bool make_active = (input_requested_by_tabbing || clicked || double_clicked || g.NavActivateId == id || g.NavActivateInputId == id); + if (make_active && (clicked || double_clicked)) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || double_clicked || g.NavActivateInputId == id) + temp_input_is_active = true; - // Experimental: simple click (without moving) turns Drag into an InputText + // (Optional) simple click (without moving) turns Drag into an InputText if (g.IO.ConfigDragClickToInputText && temp_input_allowed && !temp_input_is_active) if (g.ActiveId == id && hovered && g.IO.MouseReleased[0] && !IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) { @@ -2448,6 +2366,14 @@ bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, g.NavActivateFlags = ImGuiActivateFlags_PreferInput; temp_input_is_active = true; } + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } } if (temp_input_is_active) @@ -2623,35 +2549,6 @@ bool ImGui::DragIntRange2(const char* label, int* v_current_min, int* v_current_ return value_changed; } -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - -// Obsolete versions with power parameter. See https://github.com/ocornut/imgui/issues/3361 for details. -bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power) -{ - ImGuiSliderFlags drag_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - IM_ASSERT(p_min != NULL && p_max != NULL); // When using a power curve the drag needs to have known bounds - drag_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return DragScalar(label, data_type, p_data, v_speed, p_min, p_max, format, drag_flags); -} - -bool ImGui::DragScalarN(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, float power) -{ - ImGuiSliderFlags drag_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - IM_ASSERT(p_min != NULL && p_max != NULL); // When using a power curve the drag needs to have known bounds - drag_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return DragScalarN(label, data_type, p_data, components, v_speed, p_min, p_max, format, drag_flags); -} - -#endif // IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //------------------------------------------------------------------------- // [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. //------------------------------------------------------------------------- @@ -2702,7 +2599,6 @@ float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, T v_max_fudged = -logarithmic_zero_epsilon; float result; - if (v_clamped <= v_min_fudged) result = 0.0f; // Workaround for values that are in-range but below our fudge else if (v_clamped >= v_max_fudged) @@ -2726,91 +2622,81 @@ float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, T return flipped ? (1.0f - result) : result; } - - // Linear slider - return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); + else + { + // Linear slider + return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); + } } // Convert a parametric position on a slider into a value v in the output space (the logical opposite of ScaleRatioFromValueT) template TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) { - if (v_min == v_max) + // We special-case the extents because otherwise our logarithmic fudging can lead to "mathematically correct" + // but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value. Also generally simpler. + if (t <= 0.0f || v_min == v_max) return v_min; - const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + if (t >= 1.0f) + return v_max; - TYPE result; + TYPE result = (TYPE)0; if (is_logarithmic) { - // We special-case the extents because otherwise our fudging can lead to "mathematically correct" but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value - if (t <= 0.0f) - result = v_min; - else if (t >= 1.0f) - result = v_max; - else - { - bool flipped = v_max < v_min; // Check if range is "backwards" - - // Fudge min/max to avoid getting silly results close to zero - FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; - FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + // Fudge min/max to avoid getting silly results close to zero + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; - if (flipped) - ImSwap(v_min_fudged, v_max_fudged); + const bool flipped = v_max < v_min; // Check if range is "backwards" + if (flipped) + ImSwap(v_min_fudged, v_max_fudged); - // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) - if ((v_max == 0.0f) && (v_min < 0.0f)) - v_max_fudged = -logarithmic_zero_epsilon; + // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; - float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range + float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range - if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts - { - float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space - float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; - float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; - if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) - result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) - else if (t_with_flip < zero_point_center) - result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); - else - result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); - } - else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider - result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); + if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts + { + float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) + result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) + else if (t_with_flip < zero_point_center) + result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); else - result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); + result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); + else + result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); } else { // Linear slider + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); if (is_floating_point) { result = ImLerp(v_min, v_max, t); } - else + else if (t < 1.0) { // - For integer values we want the clicking position to match the grab box so we round above // This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property.. // - Not doing a *1.0 multiply at the end of a range as it tends to be lossy. While absolute aiming at a large s64/u64 // range is going to be imprecise anyway, with this check we at least make the edge values matches expected limits. - if (t < 1.0) - { - FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; - result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); - } - else - { - result = v_max; - } + FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; + result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); } } return result; } -// FIXME: Move more of the code into SliderBehavior() +// FIXME: Try to move more of the code into shared SliderBehavior() template bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) { @@ -2820,13 +2706,14 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + const SIGNEDTYPE v_range = (v_min < v_max ? v_max - v_min : v_min - v_max); - const float grab_padding = 2.0f; + // Calculate bounds + const float grab_padding = 2.0f; // FIXME: Should be part of style. const float slider_sz = (bb.Max[axis] - bb.Min[axis]) - grab_padding * 2.0f; float grab_sz = style.GrabMinSize; - SIGNEDTYPE v_range = (v_min < v_max ? v_max - v_min : v_min - v_max); - if (!is_floating_point && v_range >= 0) // v_range < 0 may happen on integer overflows - grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit + if (!is_floating_point && v_range >= 0) // v_range < 0 may happen on integer overflows + grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit grab_sz = ImMin(grab_sz, slider_sz); const float slider_usable_sz = slider_sz - grab_sz; const float slider_usable_pos_min = bb.Min[axis] + grab_padding + grab_sz * 0.5f; @@ -2857,7 +2744,17 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ else { const float mouse_abs_pos = g.IO.MousePos[axis]; - clicked_t = (slider_usable_sz > 0.0f) ? ImClamp((mouse_abs_pos - slider_usable_pos_min) / slider_usable_sz, 0.0f, 1.0f) : 0.0f; + if (g.ActiveIdIsJustActivated) + { + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + const bool clicked_around_grab = (mouse_abs_pos >= grab_pos - grab_sz * 0.5f - 1.0f) && (mouse_abs_pos <= grab_pos + grab_sz * 0.5f + 1.0f); // No harm being extra generous here. + g.SliderGrabClickOffset = (clicked_around_grab && is_floating_point) ? mouse_abs_pos - grab_pos : 0.0f; + } + if (slider_usable_sz > 0.0f) + clicked_t = ImSaturate((mouse_abs_pos - g.SliderGrabClickOffset - slider_usable_pos_min) / slider_usable_sz); if (axis == ImGuiAxis_Y) clicked_t = 1.0f - clicked_t; set_new_value = true; @@ -2871,25 +2768,26 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ g.SliderCurrentAccumDirty = false; } - const ImVec2 input_delta2 = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard | ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_RepeatFast, 0.0f, 0.0f); - float input_delta = (axis == ImGuiAxis_X) ? input_delta2.x : -input_delta2.y; + float input_delta = (axis == ImGuiAxis_X) ? GetNavTweakPressedAmount(axis) : -GetNavTweakPressedAmount(axis); if (input_delta != 0.0f) { + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; if (decimal_precision > 0) { input_delta /= 100.0f; // Gamepad/keyboard tweak speeds in % of slider bounds - if (IsNavInputDown(ImGuiNavInput_TweakSlow)) + if (tweak_slow) input_delta /= 10.0f; } else { - if ((v_range >= -100.0f && v_range <= 100.0f) || IsNavInputDown(ImGuiNavInput_TweakSlow)) + if ((v_range >= -100.0f && v_range <= 100.0f) || tweak_slow) input_delta = ((input_delta < 0.0f) ? -1.0f : +1.0f) / (float)v_range; // Gamepad/keyboard tweak speeds in integer steps else input_delta /= 100.0f; } - if (IsNavInputDown(ImGuiNavInput_TweakFast)) + if (tweak_fast) input_delta *= 10.0f; g.SliderCurrentAccum += input_delta; @@ -2918,8 +2816,8 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ // Calculate what our "new" clicked_t will be, and thus how far we actually moved the slider, and subtract this from the accumulator TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) - v_new = RoundScalarWithFormatT(format, data_type, v_new); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); float new_clicked_t = ScaleRatioFromValueT(data_type, v_new, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); if (delta > 0) @@ -2937,8 +2835,8 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); // Round to user desired precision based on format string - if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) - v_new = RoundScalarWithFormatT(format, data_type, v_new); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); // Apply result if (*v != v_new) @@ -2977,6 +2875,7 @@ bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flag! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + // Those are the things we can do easily outside the SliderBehaviorT<> template, saves code generation. ImGuiContext& g = *GImGui; if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) return false; @@ -3036,24 +2935,27 @@ bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_dat // Default format string when passing NULL if (format == NULL) format = DataTypeGetInfo(data_type)->PrintFmt; - else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) - format = PatchFormatStringFloatToInt(format); - // Tabbing or CTRL-clicking on Slider turns it into an input box const bool hovered = ItemHoverable(frame_bb, id); bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); if (!temp_input_is_active) { + // Tabbing or CTRL-clicking on Slider turns it into an input box const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; - const bool clicked = (hovered && g.IO.MouseClicked[0]); - if (input_requested_by_tabbing || clicked || g.NavActivateId == id || g.NavActivateInputId == id) + const bool clicked = hovered && IsMouseClicked(0, id); + const bool make_active = (input_requested_by_tabbing || clicked || g.NavActivateId == id || g.NavActivateInputId == id); + if (make_active && clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || g.NavActivateInputId == id) + temp_input_is_active = true; + + if (make_active && !temp_input_is_active) { SetActiveID(id, window); SetFocusID(id, window); FocusWindow(window); g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); - if (temp_input_allowed && (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || g.NavActivateInputId == id)) - temp_input_is_active = true; } } @@ -3200,12 +3102,13 @@ bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType d // Default format string when passing NULL if (format == NULL) format = DataTypeGetInfo(data_type)->PrintFmt; - else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) - format = PatchFormatStringFloatToInt(format); const bool hovered = ItemHoverable(frame_bb, id); - if ((hovered && g.IO.MouseClicked[0]) || g.NavActivateId == id || g.NavActivateInputId == id) + const bool clicked = hovered && IsMouseClicked(0, id); + if (clicked || g.NavActivateId == id || g.NavActivateInputId == id) { + if (clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); SetActiveID(id, window); SetFocusID(id, window); FocusWindow(window); @@ -3248,39 +3151,14 @@ bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, return VSliderScalar(label, size, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); } -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - -// Obsolete versions with power parameter. See https://github.com/ocornut/imgui/issues/3361 for details. -bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power) -{ - ImGuiSliderFlags slider_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - slider_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return SliderScalar(label, data_type, p_data, p_min, p_max, format, slider_flags); -} - -bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, float power) -{ - ImGuiSliderFlags slider_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - slider_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return SliderScalarN(label, data_type, v, components, v_min, v_max, format, slider_flags); -} - -#endif // IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //------------------------------------------------------------------------- // [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. //------------------------------------------------------------------------- // - ImParseFormatFindStart() [Internal] // - ImParseFormatFindEnd() [Internal] // - ImParseFormatTrimDecorations() [Internal] +// - ImParseFormatSanitizeForPrinting() [Internal] +// - ImParseFormatSanitizeForScanning() [Internal] // - ImParseFormatPrecision() [Internal] // - TempInputTextScalar() [Internal] // - InputScalar() @@ -3344,6 +3222,57 @@ const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_ return buf; } +// Sanitize format +// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi +// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi. +void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate +} + +// - For scanning we need to remove all width and precision fields "%3.7f" -> "%f". BUT don't strip types like "%I64d" which includes digits. ! "%07I64d" -> "%I64d" +const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + const char* fmt_out_begin = fmt_out; + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + bool has_type = false; + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (!has_type && ((c >= '0' && c <= '9') || c == '.')) + continue; + has_type |= ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')); // Stop skipping digits + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate + return fmt_out_begin; +} + +template +static const char* ImAtoi(const char* src, TYPE* output) +{ + int negative = 0; + if (*src == '-') { negative = 1; src++; } + if (*src == '+') { src++; } + TYPE v = 0; + while (*src >= '0' && *src <= '9') + v = (v * 10) + (*src++ - '0'); + *output = negative ? -v : v; + return src; +} + // Parse display precision back from the display format string // FIXME: This is still used by some navigation code path to infer a minimum tweak step, but we should aim to rework widgets so it isn't needed. int ImParseFormatPrecision(const char* fmt, int default_precision) @@ -3390,13 +3319,19 @@ bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* return value_changed; } +static inline ImGuiInputTextFlags InputScalar_DefaultCharsFilter(ImGuiDataType data_type, const char* format) +{ + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + return ImGuiInputTextFlags_CharsScientific; + const char format_last_char = format[0] ? format[strlen(format) - 1] : 0; + return (format_last_char == 'x' || format_last_char == 'X') ? ImGuiInputTextFlags_CharsHexadecimal : ImGuiInputTextFlags_CharsDecimal; +} + // Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set! // This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility. // However this may not be ideal for all uses, as some user code may break on out of bound values. bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max) { - ImGuiContext& g = *GImGui; - char fmt_buf[32]; char data_buf[32]; format = ImParseFormatTrimDecorations(format, fmt_buf, IM_ARRAYSIZE(fmt_buf)); @@ -3404,7 +3339,8 @@ bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImG ImStrTrimBlanks(data_buf); ImGuiInputTextFlags flags = ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; - flags |= ((data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) ? ImGuiInputTextFlags_CharsScientific : ImGuiInputTextFlags_CharsDecimal); + flags |= InputScalar_DefaultCharsFilter(data_type, format); + bool value_changed = false; if (TempInputText(bb, id, label, data_buf, IM_ARRAYSIZE(data_buf), flags)) { @@ -3414,7 +3350,7 @@ bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImG memcpy(&data_backup, p_data, data_type_size); // Apply new value (or operations) then clamp - DataTypeApplyOpFromText(data_buf, g.InputTextState.InitialTextA.Data, data_type, p_data, NULL); + DataTypeApplyFromText(data_buf, data_type, p_data, format); if (p_clamp_min || p_clamp_max) { if (p_clamp_min && p_clamp_max && DataTypeCompare(data_type, p_clamp_min, p_clamp_max) > 0) @@ -3447,12 +3383,12 @@ bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data char buf[64]; DataTypeFormatString(buf, IM_ARRAYSIZE(buf), data_type, p_data, format); - bool value_changed = false; - if ((flags & (ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) - flags |= ImGuiInputTextFlags_CharsDecimal; - flags |= ImGuiInputTextFlags_AutoSelectAll; - flags |= ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. + // Testing ActiveId as a minor optimization as filtering is not needed until active + if (g.ActiveId == 0 && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) + flags |= InputScalar_DefaultCharsFilter(data_type, format); + flags |= ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. + bool value_changed = false; if (p_step != NULL) { const float button_size = GetFrameHeight(); @@ -3461,7 +3397,8 @@ bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data PushID(label); SetNextItemWidth(ImMax(1.0f, CalcItemWidth() - (button_size + style.ItemInnerSpacing.x) * 2)); if (InputText("", buf, IM_ARRAYSIZE(buf), flags)) // PushId(label) + "" gives us the expected ID from outside point of view - value_changed = DataTypeApplyOpFromText(buf, g.InputTextState.InitialTextA.Data, data_type, p_data, format); + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags); // Step buttons const ImVec2 backup_frame_padding = style.FramePadding; @@ -3498,7 +3435,7 @@ bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data else { if (InputText(label, buf, IM_ARRAYSIZE(buf), flags)) - value_changed = DataTypeApplyOpFromText(buf, g.InputTextState.InitialTextA.Data, data_type, p_data, format); + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); } if (value_changed) MarkItemEdited(g.LastItemData.ID); @@ -3596,7 +3533,11 @@ bool ImGui::InputDouble(const char* label, double* v, double step, double step_f // - InputText() // - InputTextWithHint() // - InputTextMultiline() +// - InputTextGetCharInfo() [Internal] +// - InputTextReindexLines() [Internal] +// - InputTextReindexLinesRange() [Internal] // - InputTextEx() [Internal] +// - DebugNodeInputTextState() [Internal] //------------------------------------------------------------------------- bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) @@ -3612,7 +3553,7 @@ bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, co bool ImGui::InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) { - IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() or InputTextEx() manually if you need multi-line + hint. return InputTextEx(label, hint, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); } @@ -3703,13 +3644,10 @@ static int is_word_boundary_from_right(ImGuiInputTextState* obj, int idx) static int is_word_boundary_from_left(ImGuiInputTextState* obj, int idx) { if (obj->Flags & ImGuiInputTextFlags_Password) return 0; return idx > 0 ? (!is_separator(obj->TextW[idx - 1]) && is_separator(obj->TextW[idx])) : 1; } static int STB_TEXTEDIT_MOVEWORDLEFT_IMPL(ImGuiInputTextState* obj, int idx) { idx--; while (idx >= 0 && !is_word_boundary_from_right(obj, idx)) idx--; return idx < 0 ? 0 : idx; } static int STB_TEXTEDIT_MOVEWORDRIGHT_MAC(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_left(obj, idx)) idx++; return idx > len ? len : idx; } -#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h -#ifdef __APPLE__ // FIXME: Move setting to IO structure -#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_MAC -#else static int STB_TEXTEDIT_MOVEWORDRIGHT_WIN(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_right(obj, idx)) idx++; return idx > len ? len : idx; } -#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_WIN -#endif +static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(ImGuiInputTextState* obj, int idx) { if (ImGui::GetIO().ConfigMacOSXBehaviors) return STB_TEXTEDIT_MOVEWORDRIGHT_MAC(obj, idx); else return STB_TEXTEDIT_MOVEWORDRIGHT_WIN(obj, idx); } +#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h +#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_IMPL static void STB_TEXTEDIT_DELETECHARS(ImGuiInputTextState* obj, int pos, int n) { @@ -3787,11 +3725,12 @@ static void stb_textedit_replace(ImGuiInputTextState* str, STB_TexteditState* st { stb_text_makeundo_replace(str, state, 0, str->CurLenW, text_len); ImStb::STB_TEXTEDIT_DELETECHARS(str, 0, str->CurLenW); + state->cursor = state->select_start = state->select_end = 0; if (text_len <= 0) return; if (ImStb::STB_TEXTEDIT_INSERTCHARS(str, 0, text, text_len)) { - state->cursor = text_len; + state->cursor = state->select_start = state->select_end = text_len; state->has_preferred_x = 0; return; } @@ -3876,7 +3815,7 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f if (c < 0x20) { bool pass = false; - pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); + pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); // Note that an Enter KEY will emit \r and be ignored (we poll for KEY in InputText() code) pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput)); if (!pass) return false; @@ -3910,6 +3849,13 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f ImGuiContext& g = *GImGui; const unsigned c_decimal_point = (unsigned int)g.PlatformLocaleDecimalPoint; + // Full-width -> half-width conversion for numeric fields (https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block) + // While this is mostly convenient, this has the side-effect for uninformed users accidentally inputting full-width characters that they may + // scratch their head as to why it works in numerical fields vs in generic text fields it would require support in the font. + if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsScientific | ImGuiInputTextFlags_CharsHexadecimal)) + if (c >= 0xFF01 && c <= 0xFF5E) + c = c - 0xFF01 + 0x21; + // Allow 0-9 . - + * / if (flags & ImGuiInputTextFlags_CharsDecimal) if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/')) @@ -3928,11 +3874,13 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f // Turn a-z into A-Z if (flags & ImGuiInputTextFlags_CharsUppercase) if (c >= 'a' && c <= 'z') - *p_char = (c += (unsigned int)('A' - 'a')); + c += (unsigned int)('A' - 'a'); if (flags & ImGuiInputTextFlags_CharsNoBlank) if (ImCharIsBlankW(c)) return false; + + *p_char = c; } // Custom callback filter @@ -3954,6 +3902,41 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f return true; } +// Find the shortest single replacement we can make to get the new text from the old text. +// Important: needs to be run before TextW is rewritten with the new characters because calling STB_TEXTEDIT_GETCHAR() at the end. +// FIXME: Ideally we should transition toward (1) making InsertChars()/DeleteChars() update undo-stack (2) discourage (and keep reconcile) or obsolete (and remove reconcile) accessing buffer directly. +static void InputTextReconcileUndoStateAfterUserCallback(ImGuiInputTextState* state, const char* new_buf_a, int new_length_a) +{ + ImGuiContext& g = *GImGui; + const ImWchar* old_buf = state->TextW.Data; + const int old_length = state->CurLenW; + const int new_length = ImTextCountCharsFromUtf8(new_buf_a, new_buf_a + new_length_a); + g.TempBuffer.reserve_discard((new_length + 1) * sizeof(ImWchar)); + ImWchar* new_buf = (ImWchar*)(void*)g.TempBuffer.Data; + ImTextStrFromUtf8(new_buf, new_length + 1, new_buf_a, new_buf_a + new_length_a); + + const int shorter_length = ImMin(old_length, new_length); + int first_diff; + for (first_diff = 0; first_diff < shorter_length; first_diff++) + if (old_buf[first_diff] != new_buf[first_diff]) + break; + if (first_diff == old_length && first_diff == new_length) + return; + + int old_last_diff = old_length - 1; + int new_last_diff = new_length - 1; + for (; old_last_diff >= first_diff && new_last_diff >= first_diff; old_last_diff--, new_last_diff--) + if (old_buf[old_last_diff] != new_buf[new_last_diff]) + break; + + const int insert_len = new_last_diff - first_diff + 1; + const int delete_len = old_last_diff - first_diff + 1; + if (insert_len > 0 || delete_len > 0) + if (STB_TEXTEDIT_CHARTYPE* p = stb_text_createundo(&state->Stb.undostate, first_diff, delete_len, insert_len)) + for (int i = 0; i < delete_len; i++) + p[i] = ImStb::STB_TEXTEDIT_GETCHAR(state, first_diff + i); +} + // Edit a string of text // - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". // This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match @@ -4074,17 +4057,21 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ state->InitialTextA.resize(buf_len + 1); // UTF-8. we use +1 to make sure that .Data is always pointing to at least an empty string. memcpy(state->InitialTextA.Data, buf, buf_len + 1); + // Preserve cursor position and undo/redo stack if we come back to same widget + // FIXME: Since we reworked this on 2022/06, may want to differenciate recycle_cursor vs recycle_undostate? + bool recycle_state = (state->ID == id && !init_changed_specs); + if (recycle_state && (state->CurLenA != buf_len || (state->TextAIsValid && strncmp(state->TextA.Data, buf, buf_len) != 0))) + recycle_state = false; + // Start edition const char* buf_end = NULL; + state->ID = id; state->TextW.resize(buf_size + 1); // wchar count <= UTF-8 count. we use +1 to make sure that .Data is always pointing to at least an empty string. state->TextA.resize(0); state->TextAIsValid = false; // TextA is not valid yet (we will display buf until then) state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, buf_size, buf, NULL, &buf_end); state->CurLenA = (int)(buf_end - buf); // We can't get the result from ImStrncpy() above because it is not UTF-8 aware. Here we'll cut off malformed UTF-8. - // Preserve cursor position and undo/redo stack if we come back to same widget - // FIXME: For non-readonly widgets we might be able to require that TextAIsValid && TextA == buf ? (untested) and discard undo stack if user buffer has changed. - const bool recycle_state = (state->ID == id && !init_changed_specs); if (recycle_state) { // Recycle existing cursor/selection/undo stack but clamp position @@ -4093,7 +4080,6 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } else { - state->ID = id; state->ScrollX = 0.0f; stb_textedit_initialize_state(&state->Stb, !is_multiline); } @@ -4118,18 +4104,24 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ SetActiveID(id, window); SetFocusID(id, window); FocusWindow(window); - - // Declare our inputs - IM_ASSERT(ImGuiNavInput_COUNT < 32); + } + if (g.ActiveId == id) + { + // Declare some inputs, the other are registered and polled via Shortcut() routing system. + if (user_clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); if (is_multiline || (flags & ImGuiInputTextFlags_CallbackHistory)) g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); - g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); - g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_Home) | ((ImU64)1 << ImGuiKey_End); + SetKeyOwner(ImGuiKey_Home, id); + SetKeyOwner(ImGuiKey_End, id); if (is_multiline) - g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_PageUp) | ((ImU64)1 << ImGuiKey_PageDown); - if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. - g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_Tab); + { + SetKeyOwner(ImGuiKey_PageUp, id); + SetKeyOwner(ImGuiKey_PageDown, id); + } + if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. + SetKeyOwner(ImGuiKey_Tab, id); } // We have an edge case if ActiveId was set through another widget (e.g. widget being swapped), clear id immediately (don't wait until the end of the function) @@ -4141,10 +4133,10 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ clear_active_id = true; // Lock the decision of whether we are going to take the path displaying the cursor or selection - const bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); + bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); bool render_selection = state && (state->HasSelection() || select_all) && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); bool value_changed = false; - bool enter_pressed = false; + bool validated = false; // When read-only we always use the live data passed to the function // FIXME-OPT: Because our selection/cursor code currently needs the wide text we need to convert it when active, which is not ideal :( @@ -4240,10 +4232,12 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } else if (io.MouseClicked[0] && !state->SelectedAllMouseLock) { - // FIXME: unselect on late click could be done release? if (hovered) { - stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + if (io.KeyShift) + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + else + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); state->CursorAnimReset(); } } @@ -4256,16 +4250,15 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ if (state->SelectedAllMouseLock && !io.MouseDown[0]) state->SelectedAllMouseLock = false; - // It is ill-defined whether the backend needs to send a \t character when pressing the TAB keys. - // Win32 and GLFW naturally do it but not SDL. + // We expect backends to emit a Tab key but some also emit a Tab character which we ignore (#2467, #1336) + // (For Tab and Enter: Win32/SFML/Allegro are sending both keys and chars, GLFW and SDL are only sending keys. For Space they all send all threes) const bool ignore_char_inputs = (io.KeyCtrl && !io.KeyAlt) || (is_osx && io.KeySuper); - if ((flags & ImGuiInputTextFlags_AllowTabInput) && IsKeyPressedMap(ImGuiKey_Tab) && !ignore_char_inputs && !io.KeyShift && !is_readonly) - if (!io.InputQueueCharacters.contains('\t')) - { - unsigned int c = '\t'; // Insert TAB - if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) - state->OnKeyPressed((int)c); - } + if ((flags & ImGuiInputTextFlags_AllowTabInput) && IsKeyPressed(ImGuiKey_Tab) && !ignore_char_inputs && !io.KeyShift && !is_readonly) + { + unsigned int c = '\t'; // Insert TAB + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } // Process regular text input (before we check for Return because using some IME will effectively send a Return?) // We ignore CTRL inputs, but need to allow ALT+CTRL as some keyboards (e.g. German) use AltGR (which _is_ Alt+Ctrl) to input certain characters. @@ -4276,7 +4269,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ { // Insert character if they pass filtering unsigned int c = (unsigned int)io.InputQueueCharacters[n]; - if (c == '\t' && io.KeyShift) + if (c == '\t') // Skip Tab, see above. continue; if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) state->OnKeyPressed((int)c); @@ -4288,45 +4281,46 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } // Process other shortcuts/key-presses - bool cancel_edit = false; + bool revert_edit = false; if (g.ActiveId == id && !g.ActiveIdIsJustActivated && !clear_active_id) { IM_ASSERT(state != NULL); - IM_ASSERT(io.KeyMods == GetMergedKeyModFlags() && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); // We rarely do this check, but if anything let's do it here. const int row_count_per_page = ImMax((int)((inner_size.y - style.FramePadding.y) / g.FontSize), 1); state->Stb.row_count_per_page = row_count_per_page; const int k_mask = (io.KeyShift ? STB_TEXTEDIT_K_SHIFT : 0); const bool is_osx = io.ConfigMacOSXBehaviors; - const bool is_osx_shift_shortcut = is_osx && (io.KeyMods == (ImGuiKeyModFlags_Super | ImGuiKeyModFlags_Shift)); const bool is_wordmove_key_down = is_osx ? io.KeyAlt : io.KeyCtrl; // OS X style: Text editing cursor movement using Alt instead of Ctrl const bool is_startend_key_down = is_osx && io.KeySuper && !io.KeyCtrl && !io.KeyAlt; // OS X style: Line/Text Start and End using Cmd+Arrows instead of Home/End - const bool is_ctrl_key_only = (io.KeyMods == ImGuiKeyModFlags_Ctrl); - const bool is_shift_key_only = (io.KeyMods == ImGuiKeyModFlags_Shift); - const bool is_shortcut_key = g.IO.ConfigMacOSXBehaviors ? (io.KeyMods == ImGuiKeyModFlags_Super) : (io.KeyMods == ImGuiKeyModFlags_Ctrl); - const bool is_cut = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_X)) || (is_shift_key_only && IsKeyPressedMap(ImGuiKey_Delete))) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); - const bool is_copy = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_C)) || (is_ctrl_key_only && IsKeyPressedMap(ImGuiKey_Insert))) && !is_password && (!is_multiline || state->HasSelection()); - const bool is_paste = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_V)) || (is_shift_key_only && IsKeyPressedMap(ImGuiKey_Insert))) && !is_readonly; - const bool is_undo = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_Z)) && !is_readonly && is_undoable); - const bool is_redo = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_Y)) || (is_osx_shift_shortcut && IsKeyPressedMap(ImGuiKey_Z))) && !is_readonly && is_undoable; + // Using Shortcut() with ImGuiInputFlags_RouteFocused (default policy) to allow routing operations for other code (e.g. calling window trying to use CTRL+A and CTRL+B: formet would be handled by InputText) + // Otherwise we could simply assume that we own the keys as we are active. + const ImGuiInputFlags f_repeat = ImGuiInputFlags_Repeat; + const bool is_cut = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_X, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Delete, id, f_repeat)) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); + const bool is_copy = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_C, id) || Shortcut(ImGuiMod_Ctrl | ImGuiKey_Insert, id)) && !is_password && (!is_multiline || state->HasSelection()); + const bool is_paste = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_V, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Insert, id, f_repeat)) && !is_readonly; + const bool is_undo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Z, id, f_repeat)) && !is_readonly && is_undoable; + const bool is_redo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Y, id, f_repeat) || (is_osx && Shortcut(ImGuiMod_Shortcut | ImGuiMod_Shift | ImGuiKey_Z, id, f_repeat))) && !is_readonly && is_undoable; + const bool is_select_all = Shortcut(ImGuiMod_Shortcut | ImGuiKey_A, id); // We allow validate/cancel with Nav source (gamepad) to makes it easier to undo an accidental NavInput press with no keyboard wired, but otherwise it isn't very useful. - const bool is_validate_enter = IsKeyPressedMap(ImGuiKey_Enter) || IsKeyPressedMap(ImGuiKey_KeyPadEnter); - const bool is_validate_nav = (IsNavInputTest(ImGuiNavInput_Activate, ImGuiInputReadMode_Pressed) && !IsKeyPressedMap(ImGuiKey_Space)) || IsNavInputTest(ImGuiNavInput_Input, ImGuiInputReadMode_Pressed); - const bool is_cancel = IsKeyPressedMap(ImGuiKey_Escape) || IsNavInputTest(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed); - - if (IsKeyPressedMap(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } - else if (IsKeyPressedMap(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } - else if (IsKeyPressedMap(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_Delete) && !is_readonly && !is_cut) { state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_Backspace) && !is_readonly) + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool is_enter_pressed = IsKeyPressed(ImGuiKey_Enter, true) || IsKeyPressed(ImGuiKey_KeypadEnter, true); + const bool is_gamepad_validate = nav_gamepad_active && (IsKeyPressed(ImGuiKey_NavGamepadActivate, false) || IsKeyPressed(ImGuiKey_NavGamepadInput, false)); + const bool is_cancel = Shortcut(ImGuiKey_Escape, id, f_repeat) || (nav_gamepad_active && Shortcut(ImGuiKey_NavGamepadCancel, id, f_repeat)); + + // FIXME: Should use more Shortcut() and reduce IsKeyPressed()+SetKeyOwner(), but requires modifiers combination to be taken account of. + if (IsKeyPressed(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } + else if (IsKeyPressed(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } + else if (IsKeyPressed(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } + else if (IsKeyPressed(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } + else if (IsKeyPressed(ImGuiKey_Delete) && !is_readonly && !is_cut) { state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); } + else if (IsKeyPressed(ImGuiKey_Backspace) && !is_readonly) { if (!state->HasSelection()) { @@ -4337,12 +4331,17 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE | k_mask); } - else if (is_validate_enter) + else if (is_enter_pressed || is_gamepad_validate) { + // Determine if we turn Enter into a \n character bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0; - if (!is_multiline || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) + if (!is_multiline || is_gamepad_validate || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) { - enter_pressed = clear_active_id = true; + validated = true; + if (io.ConfigInputTextEnterKeepActive && !is_multiline) + state->SelectAll(); // No need to scroll + else + clear_active_id = true; } else if (!is_readonly) { @@ -4351,21 +4350,32 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ state->OnKeyPressed((int)c); } } - else if (is_validate_nav) - { - IM_ASSERT(!is_validate_enter); - enter_pressed = clear_active_id = true; - } else if (is_cancel) { - clear_active_id = cancel_edit = true; + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + if (state->CurLenA > 0) + { + revert_edit = true; + } + else + { + render_cursor = render_selection = false; + clear_active_id = true; + } + } + else + { + clear_active_id = revert_edit = true; + render_cursor = render_selection = false; + } } else if (is_undo || is_redo) { state->OnKeyPressed(is_undo ? STB_TEXTEDIT_K_UNDO : STB_TEXTEDIT_K_REDO); state->ClearSelection(); } - else if (is_shortcut_key && IsKeyPressedMap(ImGuiKey_A)) + else if (is_select_all) { state->SelectAll(); state->CursorFollow = true; @@ -4429,11 +4439,19 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ if (g.ActiveId == id) { IM_ASSERT(state != NULL); - if (cancel_edit) + if (revert_edit && !is_readonly) { - // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. - if (!is_readonly && strcmp(buf, state->InitialTextA.Data) != 0) + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + // Clear input + apply_new_text = ""; + apply_new_text_length = 0; + STB_TEXTEDIT_CHARTYPE empty_string; + stb_textedit_replace(state, &state->Stb, &empty_string, 0); + } + else if (strcmp(buf, state->InitialTextA.Data) != 0) { + // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. // Push records into the undo stack so we can CTRL+Z the revert operation itself apply_new_text = state->InitialTextA.Data; apply_new_text_length = state->InitialTextA.Size - 1; @@ -4447,22 +4465,24 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } } + // Apply ASCII value + if (!is_readonly) + { + state->TextAIsValid = true; + state->TextA.resize(state->TextW.Size * 4 + 1); + ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); + } + // When using 'ImGuiInputTextFlags_EnterReturnsTrue' as a special case we reapply the live buffer back to the input buffer before clearing ActiveId, even though strictly speaking it wasn't modified on this frame. // If we didn't do that, code like InputInt() with ImGuiInputTextFlags_EnterReturnsTrue would fail. // This also allows the user to use InputText() with ImGuiInputTextFlags_EnterReturnsTrue without maintaining any user-side storage (please note that if you use this property along ImGuiInputTextFlags_CallbackResize you can end up with your temporary string object unnecessarily allocating once a frame, either store your string data, either if you don't then don't use ImGuiInputTextFlags_CallbackResize). - bool apply_edit_back_to_user_buffer = !cancel_edit || (enter_pressed && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); + const bool apply_edit_back_to_user_buffer = !revert_edit || (validated && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); if (apply_edit_back_to_user_buffer) { // Apply new value immediately - copy modified buffer back // Note that as soon as the input box is active, the in-widget value gets priority over any underlying modification of the input buffer // FIXME: We actually always render 'buf' when calling DrawList->AddText, making the comment above incorrect. // FIXME-OPT: CPU waste to do this every time the widget is active, should mark dirty state from the stb_textedit callbacks. - if (!is_readonly) - { - state->TextAIsValid = true; - state->TextA.resize(state->TextW.Size * 4 + 1); - ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); - } // User callback if ((flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackEdit | ImGuiInputTextFlags_CallbackAlways)) != 0) @@ -4471,18 +4491,18 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ // The reason we specify the usage semantic (Completion/History) is that Completion needs to disable keyboard TABBING at the moment. ImGuiInputTextFlags event_flag = 0; - ImGuiKey event_key = ImGuiKey_COUNT; - if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && IsKeyPressedMap(ImGuiKey_Tab)) + ImGuiKey event_key = ImGuiKey_None; + if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && IsKeyPressed(ImGuiKey_Tab)) { event_flag = ImGuiInputTextFlags_CallbackCompletion; event_key = ImGuiKey_Tab; } - else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressedMap(ImGuiKey_UpArrow)) + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_UpArrow)) { event_flag = ImGuiInputTextFlags_CallbackHistory; event_key = ImGuiKey_UpArrow; } - else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressedMap(ImGuiKey_DownArrow)) + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_DownArrow)) { event_flag = ImGuiInputTextFlags_CallbackHistory; event_key = ImGuiKey_DownArrow; @@ -4531,9 +4551,11 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ if (callback_data.SelectionEnd != utf8_selection_end || buf_dirty) { state->Stb.select_end = (callback_data.SelectionEnd == callback_data.SelectionStart) ? state->Stb.select_start : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); } if (buf_dirty) { + IM_ASSERT((flags & ImGuiInputTextFlags_ReadOnly) == 0); IM_ASSERT(callback_data.BufTextLen == (int)strlen(callback_data.Buf)); // You need to maintain BufTextLen if you change the text! + InputTextReconcileUndoStateAfterUserCallback(state, callback_data.Buf, callback_data.BufTextLen); // FIXME: Move the rest of this block inside function and rename to InputTextReconcileStateAfterUserCallback() ? if (callback_data.BufTextLen > backup_current_text_length && is_resizable) - state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); + state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); // Worse case scenario resize state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, callback_data.Buf, NULL); state->CurLenA = callback_data.BufTextLen; // Assume correct length and valid UTF-8 from user, saves us an extra strlen() state->CursorAnimReset(); @@ -4548,9 +4570,6 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ apply_new_text_length = state->CurLenA; } } - - // Clear temporary user storage - state->Flags = ImGuiInputTextFlags_None; } // Copy result to user buffer. This can currently only happen when (g.ActiveId == id) @@ -4575,7 +4594,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ apply_new_text_length = ImMin(callback_data.BufTextLen, buf_size - 1); IM_ASSERT(apply_new_text_length <= buf_size); } - //IMGUI_DEBUG_LOG("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); + //IMGUI_DEBUG_PRINT("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); // If the underlying buffer resize was denied or not carried to the next frame, apply_new_text_length+1 may be >= buf_size. ImStrncpy(buf, apply_new_text, ImMin(apply_new_text_length + 1, buf_size)); @@ -4769,8 +4788,10 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ // Notify OS of text input position for advanced IME (-1 x offset so that Windows IME can cover our cursor. Bit of an extra nicety.) if (!is_readonly) { - g.PlatformImePos = ImVec2(cursor_screen_pos.x - 1, cursor_screen_pos.y - g.FontSize); - g.PlatformImePosViewport = window->Viewport; + g.PlatformImeData.WantVisible = true; + g.PlatformImeData.InputPos = ImVec2(cursor_screen_pos.x - 1.0f, cursor_screen_pos.y - g.FontSize); + g.PlatformImeData.InputLineHeight = g.FontSize; + g.PlatformImeViewport = window->Viewport->ID; } } } @@ -4830,11 +4851,46 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); if ((flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0) - return enter_pressed; + return validated; else return value_changed; } +void ImGui::DebugNodeInputTextState(ImGuiInputTextState* state) +{ +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + ImGuiContext& g = *GImGui; + ImStb::STB_TexteditState* stb_state = &state->Stb; + ImStb::StbUndoState* undo_state = &stb_state->undostate; + Text("ID: 0x%08X, ActiveID: 0x%08X", state->ID, g.ActiveId); + DebugLocateItemOnHover(state->ID); + Text("CurLenW: %d, CurLenA: %d, Cursor: %d, Selection: %d..%d", state->CurLenA, state->CurLenW, stb_state->cursor, stb_state->select_start, stb_state->select_end); + Text("undo_point: %d, redo_point: %d, undo_char_point: %d, redo_char_point: %d", undo_state->undo_point, undo_state->redo_point, undo_state->undo_char_point, undo_state->redo_char_point); + if (BeginChild("undopoints", ImVec2(0.0f, GetTextLineHeight() * 15), true)) // Visualize undo state + { + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int n = 0; n < STB_TEXTEDIT_UNDOSTATECOUNT; n++) + { + ImStb::StbUndoRecord* undo_rec = &undo_state->undo_rec[n]; + const char undo_rec_type = (n < undo_state->undo_point) ? 'u' : (n >= undo_state->redo_point) ? 'r' : ' '; + if (undo_rec_type == ' ') + BeginDisabled(); + char buf[64] = ""; + if (undo_rec_type != ' ' && undo_rec->char_storage != -1) + ImTextStrToUtf8(buf, IM_ARRAYSIZE(buf), undo_state->undo_char + undo_rec->char_storage, undo_state->undo_char + undo_rec->char_storage + undo_rec->insert_length); + Text("%c [%02d] where %03d, insert %03d, delete %03d, char_storage %03d \"%s\"", + undo_rec_type, n, undo_rec->where, undo_rec->insert_length, undo_rec->delete_length, undo_rec->char_storage, buf); + if (undo_rec_type == ' ') + EndDisabled(); + } + PopStyleVar(); + } + EndChild(); +#else + IM_UNUSED(state); +#endif +} + //------------------------------------------------------------------------- // [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. //------------------------------------------------------------------------- @@ -4984,7 +5040,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag value_changed |= DragInt(ids[n], &i[n], 1.0f, 0, hdr ? 0 : 255, fmt_table_int[fmt_idx][n]); } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); } } else if ((flags & ImGuiColorEditFlags_DisplayHex) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) @@ -5012,7 +5068,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag IM_UNUSED(r); // Fixes C6031: Return value ignored: 'sscanf'. } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); } ImGuiWindow* picker_active_window = NULL; @@ -5029,32 +5085,37 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag // Store current color and open a picker g.ColorPickerRef = col_v4; OpenPopup("picker"); - SetNextWindowPos(g.LastItemData.Rect.GetBL() + ImVec2(-1, style.ItemSpacing.y)); + SetNextWindowPos(g.LastItemData.Rect.GetBL() + ImVec2(0.0f, style.ItemSpacing.y)); } } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); if (BeginPopup("picker")) { - picker_active_window = g.CurrentWindow; - if (label != label_display_end) + if (g.CurrentWindow->BeginCount == 1) { - TextEx(label, label_display_end); - Spacing(); + picker_active_window = g.CurrentWindow; + if (label != label_display_end) + { + TextEx(label, label_display_end); + Spacing(); + } + ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; + ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; + SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? + value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); } - ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; - ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; - SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? - value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); EndPopup(); } } if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) { - const float text_offset_x = (flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x; - window->DC.CursorPos = ImVec2(pos.x + text_offset_x, pos.y + style.FramePadding.y); + // Position not necessarily next to last submitted button (e.g. if style.ColorButtonPosition == ImGuiDir_Left), + // but we need to use SameLine() to setup baseline correctly. Might want to refactor SameLine() to simplify this. + SameLine(0.0f, style.ItemInnerSpacing.x); + window->DC.CursorPos.x = pos.x + ((flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x); TextEx(label, label_display_end); } @@ -5091,7 +5152,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag bool accepted_drag_drop = false; if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) { - memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 + memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 //-V1086 value_changed = accepted_drag_drop = true; } if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) @@ -5110,7 +5171,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag if (picker_active_window && g.ActiveId != 0 && g.ActiveIdWindow == picker_active_window) g.LastItemData.ID = g.ActiveId; - if (value_changed) + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId MarkItemEdited(g.LastItemData.ID); return value_changed; @@ -5247,7 +5308,7 @@ bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags fl } } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); } else if (flags & ImGuiColorEditFlags_PickerHueBar) { @@ -5264,7 +5325,7 @@ bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags fl value_changed = value_changed_sv = true; } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); // Hue bar logic SetCursorScreenPos(ImVec2(bar0_pos_x, picker_pos.y)); @@ -5498,7 +5559,7 @@ bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags fl if (value_changed && memcmp(backup_initial_col, col, components * sizeof(float)) == 0) value_changed = false; - if (value_changed) + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId MarkItemEdited(g.LastItemData.ID); PopID(); @@ -5510,7 +5571,7 @@ bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags fl // FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip. // 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip. // Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set. -bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, ImVec2 size) +bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, const ImVec2& size_arg) { ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) @@ -5518,11 +5579,8 @@ bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFl ImGuiContext& g = *GImGui; const ImGuiID id = window->GetID(desc_id); - float default_size = GetFrameHeight(); - if (size.x == 0.0f) - size.x = default_size; - if (size.y == 0.0f) - size.y = default_size; + const float default_size = GetFrameHeight(); + const ImVec2 size(size_arg.x == 0.0f ? default_size : size_arg.x, size_arg.y == 0.0f ? default_size : size_arg.y); const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f); if (!ItemAdd(bb, id)) @@ -5820,9 +5878,9 @@ bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char if (window->SkipItems) return false; - ImGuiContext& g = *GImGui; - const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - return TreeNodeBehavior(window->GetID(str_id), flags, g.TempBuffer, label_end); + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(str_id), flags, label, label_end); } bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) @@ -5831,12 +5889,19 @@ bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char if (window->SkipItems) return false; + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(ptr_id), flags, label, label_end); +} + +void ImGui::TreeNodeSetOpen(ImGuiID id, bool open) +{ ImGuiContext& g = *GImGui; - const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - return TreeNodeBehavior(window->GetID(ptr_id), flags, g.TempBuffer, label_end); + ImGuiStorage* storage = g.CurrentWindow->DC.StateStorage; + storage->SetInt(id, open ? 1 : 0); } -bool ImGui::TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags) +bool ImGui::TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags) { if (flags & ImGuiTreeNodeFlags_Leaf) return true; @@ -5852,7 +5917,7 @@ bool ImGui::TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags) if (g.NextItemData.OpenCond & ImGuiCond_Always) { is_open = g.NextItemData.OpenVal; - storage->SetInt(id, is_open); + TreeNodeSetOpen(id, is_open); } else { @@ -5861,7 +5926,7 @@ bool ImGui::TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags) if (stored_value == -1) { is_open = g.NextItemData.OpenVal; - storage->SetInt(id, is_open); + TreeNodeSetOpen(id, is_open); } else { @@ -5927,7 +5992,7 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l // For this purpose we essentially compare if g.NavIdIsAlive went from 0 to 1 between TreeNode() and TreePop(). // This is currently only support 32 level deep and we are fine with (1 << Depth) overflowing into a zero. const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0; - bool is_open = TreeNodeBehaviorIsOpen(id, flags); + bool is_open = TreeNodeUpdateNextOpen(id, flags); if (is_open && !g.NavIdIsAlive && (flags & ImGuiTreeNodeFlags_NavLeftJumpsBackHere) && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) window->DC.TreeJumpToParentOnPopMask |= (1 << window->DC.TreeDepth); @@ -6270,6 +6335,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl // We use NoHoldingActiveID on menus so user can click and _hold_ on a menu then drag to browse child entries ImGuiButtonFlags button_flags = 0; if (flags & ImGuiSelectableFlags_NoHoldingActiveID) { button_flags |= ImGuiButtonFlags_NoHoldingActiveId; } + if (flags & ImGuiSelectableFlags_NoSetKeyOwner) { button_flags |= ImGuiButtonFlags_NoSetKeyOwner; } if (flags & ImGuiSelectableFlags_SelectOnClick) { button_flags |= ImGuiButtonFlags_PressedOnClick; } if (flags & ImGuiSelectableFlags_SelectOnRelease) { button_flags |= ImGuiButtonFlags_PressedOnRelease; } if (flags & ImGuiSelectableFlags_AllowDoubleClick) { button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; } @@ -6286,7 +6352,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl // - (1) it would require focus scope to be set, need exposing PushFocusScope() or equivalent (e.g. BeginSelection() calling PushFocusScope()) // - (2) usage will fail with clipped items // The multi-select API aim to fix those issues, e.g. may be replaced with a BeginSelection() API. - if ((flags & ImGuiSelectableFlags_SelectOnNav) && g.NavJustMovedToId != 0 && g.NavJustMovedToFocusScopeId == window->DC.NavFocusScopeIdCurrent) + if ((flags & ImGuiSelectableFlags_SelectOnNav) && g.NavJustMovedToId != 0 && g.NavJustMovedToFocusScopeId == g.CurrentFocusScopeId) if (g.NavJustMovedToId == id) selected = pressed = true; @@ -6295,7 +6361,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl { if (!g.NavDisableMouseHover && g.NavWindow == window && g.NavLayer == window->DC.NavLayerCurrent) { - SetNavID(id, window->DC.NavLayerCurrent, window->DC.NavFocusScopeIdCurrent, WindowRectAbsToRel(window, bb)); // (bb == NavRect) + SetNavID(id, window->DC.NavLayerCurrent, g.CurrentFocusScopeId, WindowRectAbsToRel(window, bb)); // (bb == NavRect) g.NavDisableHighlight = true; } } @@ -6760,6 +6826,7 @@ bool ImGui::BeginMenuBar() // We overwrite CursorMaxPos because BeginGroup sets it to CursorPos (essentially the .EmitItem hack in EndMenuBar() would need something analogous here, maybe a BeginGroupEx() with flags). window->DC.CursorPos = window->DC.CursorMaxPos = ImVec2(bar_rect.Min.x + window->DC.MenuBarOffset.x, bar_rect.Min.y + window->DC.MenuBarOffset.y); window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; window->DC.MenuBarAppending = true; AlignTextToFramePadding(); @@ -6785,7 +6852,7 @@ void ImGui::EndMenuBar() // To do so we claim focus back, restore NavId and then process the movement request for yet another frame. // This involve a one-frame delay which isn't very problematic in this situation. We could remove it by scoring in advance for multiple window (probably not worth bothering) const ImGuiNavLayer layer = ImGuiNavLayer_Menu; - IM_ASSERT(window->DC.NavLayersActiveMaskNext & (1 << layer)); // Sanity check + IM_ASSERT(window->DC.NavLayersActiveMaskNext & (1 << layer)); // Sanity check (FIXME: Seems unnecessary) FocusWindow(window); SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); g.NavDisableHighlight = true; // Hide highlight for the current frame so we don't see the intermediary selection. @@ -6803,6 +6870,7 @@ void ImGui::EndMenuBar() g.GroupStack.back().EmitItem = false; EndGroup(); // Restore position on layer 0 window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; window->DC.NavLayerCurrent = ImGuiNavLayer_Main; window->DC.MenuBarAppending = false; } @@ -6890,14 +6958,19 @@ static bool IsRootOfOpenMenuSet() if ((g.OpenPopupStack.Size <= g.BeginPopupStack.Size) || (window->Flags & ImGuiWindowFlags_ChildMenu)) return false; - // Initially we used 'OpenParentId' to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) based on parent ID. + // Initially we used 'upper_popup->OpenParentId == window->IDStack.back()' to differentiate multiple menu sets from each others + // (e.g. inside menu bar vs loose menu items) based on parent ID. // This would however prevent the use of e.g. PuhsID() user code submitting menus. // Previously this worked between popup and a first child menu because the first child menu always had the _ChildWindow flag, // making hovering on parent popup possible while first child menu was focused - but this was generally a bug with other side effects. // Instead we don't treat Popup specifically (in order to consistently support menu features in them), maybe the first child menu of a Popup - // doesn't have the _ChildWindow flag, and we rely on this IsRootOfOpenMenuSet() check to allow hovering between root window/popup and first chilld menu. + // doesn't have the _ChildWindow flag, and we rely on this IsRootOfOpenMenuSet() check to allow hovering between root window/popup and first child menu. + // In the end, lack of ID check made it so we could no longer differentiate between separate menu sets. To compensate for that, we at least check parent window nav layer. + // This fixes the most common case of menu opening on hover when moving between window content and menu bar. Multiple different menu sets in same nav layer would still + // open on hover, but that should be a lesser problem, because if such menus are close in proximity in window content then it won't feel weird and if they are far apart + // it likely won't be a problem anyone runs into. const ImGuiPopupData* upper_popup = &g.OpenPopupStack[g.BeginPopupStack.Size]; - return (/*upper_popup->OpenParentId == window->IDStack.back() &&*/ upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu)); + return (window->DC.NavLayerCurrent == upper_popup->ParentNavLayer && upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu)); } bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) @@ -6912,10 +6985,10 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) bool menu_is_open = IsPopupOpen(id, ImGuiPopupFlags_None); // Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu) - // The first menu in a hierarchy isn't so hovering doesn't get accross (otherwise e.g. resizing borders with ImGuiButtonFlags_FlattenChildren would react), but top-most BeginMenu() will bypass that limitation. - ImGuiWindowFlags flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; + // The first menu in a hierarchy isn't so hovering doesn't get across (otherwise e.g. resizing borders with ImGuiButtonFlags_FlattenChildren would react), but top-most BeginMenu() will bypass that limitation. + ImGuiWindowFlags window_flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; if (window->Flags & ImGuiWindowFlags_ChildMenu) - flags |= ImGuiWindowFlags_ChildWindow; + window_flags |= ImGuiWindowFlags_ChildWindow; // If a menu with same the ID was already submitted, we will append to it, matching the behavior of Begin(). // We are relying on a O(N) search - so O(N log N) over the frame - which seems like the most efficient for the expected small amount of BeginMenu() calls per frame. @@ -6923,7 +6996,7 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) if (g.MenusIdSubmittedThisFrame.contains(id)) { if (menu_is_open) - menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) else g.NextWindowData.ClearFlags(); // we behave like Begin() and need to consume those values return menu_is_open; @@ -6935,10 +7008,10 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) ImVec2 label_size = CalcTextSize(label, NULL, true); // Odd hack to allow hovering across menus of a same menu-set (otherwise we wouldn't be able to hover parent without always being a Child window) + // This is only done for items for the menu set and not the full parent window. const bool menuset_is_open = IsRootOfOpenMenuSet(); - ImGuiWindow* backed_nav_window = g.NavWindow; if (menuset_is_open) - g.NavWindow = window; + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); // The reference position stored in popup_pos will be used by Begin() to find a suitable position for the child menu, // However the final position is going to be different! It is chosen by FindBestWindowPosForPopup(). @@ -6949,6 +7022,9 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) BeginDisabled(); const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; bool pressed; + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups; if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) { // Menu inside an horizontal menu bar @@ -6959,7 +7035,7 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); float w = label_size.x; ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); - pressed = Selectable("", menu_is_open, ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups, ImVec2(w, 0.0f)); + pressed = Selectable("", menu_is_open, selectable_flags, ImVec2(w, 0.0f)); RenderText(text_pos, label); PopStyleVar(); window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). @@ -6975,7 +7051,7 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, 0.0f, checkmark_w); // Feedback to next frame float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); - pressed = Selectable("", menu_is_open, ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); + pressed = Selectable("", menu_is_open, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); RenderText(text_pos, label); if (icon_w > 0.0f) RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); @@ -6984,9 +7060,9 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) if (!enabled) EndDisabled(); - const bool hovered = (g.HoveredId == id) && enabled; + const bool hovered = (g.HoveredId == id) && enabled && !g.NavDisableMouseHover; if (menuset_is_open) - g.NavWindow = backed_nav_window; + PopItemFlag(); bool want_open = false; bool want_close = false; @@ -6994,29 +7070,37 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) { // Close menu when not hovering it anymore unless we are moving roughly in the direction of the menu // Implement http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown to avoid using timers, so menus feels more reactive. - bool moving_toward_other_child_menu = false; - ImGuiWindow* child_menu_window = (g.BeginPopupStack.Size < g.OpenPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].SourceWindow == window) ? g.OpenPopupStack[g.BeginPopupStack.Size].Window : NULL; - if (g.HoveredWindow == window && child_menu_window != NULL && !(window->Flags & ImGuiWindowFlags_MenuBar)) + bool moving_toward_child_menu = false; + ImGuiPopupData* child_popup = (g.BeginPopupStack.Size < g.OpenPopupStack.Size) ? &g.OpenPopupStack[g.BeginPopupStack.Size] : NULL; // Popup candidate (testing below) + ImGuiWindow* child_menu_window = (child_popup && child_popup->Window && child_popup->Window->ParentWindow == window) ? child_popup->Window : NULL; + if (g.HoveredWindow == window && child_menu_window != NULL) { float ref_unit = g.FontSize; // FIXME-DPI + float child_dir = (window->Pos.x < child_menu_window->Pos.x) ? 1.0f : -1.0f; ImRect next_window_rect = child_menu_window->Rect(); ImVec2 ta = (g.IO.MousePos - g.IO.MouseDelta); - ImVec2 tb = (window->Pos.x < child_menu_window->Pos.x) ? next_window_rect.GetTL() : next_window_rect.GetTR(); - ImVec2 tc = (window->Pos.x < child_menu_window->Pos.x) ? next_window_rect.GetBL() : next_window_rect.GetBR(); + ImVec2 tb = (child_dir > 0.0f) ? next_window_rect.GetTL() : next_window_rect.GetTR(); + ImVec2 tc = (child_dir > 0.0f) ? next_window_rect.GetBL() : next_window_rect.GetBR(); float extra = ImClamp(ImFabs(ta.x - tb.x) * 0.30f, ref_unit * 0.5f, ref_unit * 2.5f); // add a bit of extra slack. - ta.x += (window->Pos.x < child_menu_window->Pos.x) ? -0.5f : +0.5f; // to avoid numerical issues (FIXME: ??) - tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -ref_unit * 8.0f); // triangle is maximum 200 high to limit the slope and the bias toward large sub-menus // FIXME: Multiply by fb_scale? + ta.x += child_dir * -0.5f; + tb.x += child_dir * ref_unit; + tc.x += child_dir * ref_unit; + tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -ref_unit * 8.0f); // triangle has maximum height to limit the slope and the bias toward large sub-menus tc.y = ta.y + ImMin((tc.y + extra) - ta.y, +ref_unit * 8.0f); - moving_toward_other_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); - //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_toward_other_child_menu ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] + moving_toward_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); + //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_toward_child_menu ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] } - if (menu_is_open && !hovered && g.HoveredWindow == window && g.HoveredIdPreviousFrame != 0 && g.HoveredIdPreviousFrame != id && !moving_toward_other_child_menu) + + // The 'HovereWindow == window' check creates an inconsistency (e.g. moving away from menu slowly tends to hit same window, whereas moving away fast does not) + // But we also need to not close the top-menu menu when moving over void. Perhaps we should extend the triangle check to a larger polygon. + // (Remember to test this on BeginPopup("A")->BeginMenu("B") sequence which behaves slightly differently as B isn't a Child of A and hovering isn't shared.) + if (menu_is_open && !hovered && g.HoveredWindow == window && !moving_toward_child_menu && !g.NavDisableMouseHover) want_close = true; // Open if (!menu_is_open && pressed) // Click/activate to open want_open = true; - else if (!menu_is_open && hovered && !moving_toward_other_child_menu) // Hover to open + else if (!menu_is_open && hovered && !moving_toward_child_menu) // Hover to open want_open = true; if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right) // Nav-Right to open { @@ -7051,23 +7135,32 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Openable | (menu_is_open ? ImGuiItemStatusFlags_Opened : 0)); PopID(); - if (!menu_is_open && want_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) + if (want_open && !menu_is_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) { - // Don't recycle same menu level in the same frame, first close the other menu and yield for a frame. + // Don't reopen/recycle same menu level in the same frame, first close the other menu and yield for a frame. OpenPopup(label); - return false; } - - menu_is_open |= want_open; - if (want_open) + else if (want_open) + { + menu_is_open = true; OpenPopup(label); + } if (menu_is_open) { - SetNextWindowPos(popup_pos, ImGuiCond_Always); // Note: this is super misleading! The value will serve as reference for FindBestWindowPosForPopup(), not actual pos. + ImGuiLastItemData last_item_in_parent = g.LastItemData; + SetNextWindowPos(popup_pos, ImGuiCond_Always); // Note: misleading: the value will serve as reference for FindBestWindowPosForPopup(), not actual pos. PushStyleVar(ImGuiStyleVar_ChildRounding, style.PopupRounding); // First level will use _PopupRounding, subsequent will use _ChildRounding - menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) PopStyleVar(); + if (menu_is_open) + { + // Restore LastItemData so IsItemXXXX functions can work after BeginMenu()/EndMenu() + // (This fixes using IsItemClicked() and IsItemHovered(), but IsItemHovered() also relies on its support for ImGuiItemFlags_NoWindowHoverableCheck) + g.LastItemData = last_item_in_parent; + if (g.HoveredWindow == window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } } else { @@ -7084,17 +7177,18 @@ bool ImGui::BeginMenu(const char* label, bool enabled) void ImGui::EndMenu() { - // Nav: When a left move request _within our child menu_ failed, close ourselves (the _parent_ menu). - // A menu doesn't close itself because EndMenuBar() wants the catch the last Left<>Right inputs. - // However, it means that with the current code, a BeginMenu() from outside another menu or a menu-bar won't be closable with the Left direction. + // Nav: When a left move request our menu failed, close ourselves. ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - if (g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet() && window->DC.LayoutType == ImGuiLayoutType_Vertical) - if (g.NavWindow && (g.NavWindow->RootWindowForNav->Flags & ImGuiWindowFlags_Popup) && g.NavWindow->RootWindowForNav->ParentWindow == window) - { - ClosePopupToLevel(g.BeginPopupStack.Size, true); - NavMoveRequestCancel(); - } + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginMenu()/EndMenu() calls + ImGuiWindow* parent_window = window->ParentWindow; // Should always be != NULL is we passed assert. + if (window->BeginCount == window->BeginCountPreviousFrame) + if (g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet()) + if (g.NavWindow && (g.NavWindow->RootWindowForNav == window) && parent_window->DC.LayoutType == ImGuiLayoutType_Vertical) + { + ClosePopupToLevel(g.BeginPopupStack.Size - 1, true); + NavMoveRequestCancel(); + } EndPopup(); } @@ -7110,10 +7204,10 @@ bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut ImVec2 pos = window->DC.CursorPos; ImVec2 label_size = CalcTextSize(label, NULL, true); + // See BeginMenuEx() for comments about this. const bool menuset_is_open = IsRootOfOpenMenuSet(); - ImGuiWindow* backed_nav_window = g.NavWindow; if (menuset_is_open) - g.NavWindow = window; + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); // We've been using the equivalent of ImGuiSelectableFlags_SetNavIdOnHover on all Selectable() since early Nav system days (commit 43ee5d73), // but I am unsure whether this should be kept at all. For now moved it to be an opt-in feature used by menus only. @@ -7122,7 +7216,8 @@ bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut if (!enabled) BeginDisabled(); - const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_SetNavIdOnHover; + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SetNavIdOnHover; const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) { @@ -7134,7 +7229,8 @@ bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); pressed = Selectable("", selected, selectable_flags, ImVec2(w, 0.0f)); PopStyleVar(); - RenderText(text_pos, label); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + RenderText(text_pos, label); window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). } else @@ -7148,24 +7244,27 @@ bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, shortcut_w, checkmark_w); // Feedback for next frame float stretch_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); pressed = Selectable("", false, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); - RenderText(pos + ImVec2(offsets->OffsetLabel, 0.0f), label); - if (icon_w > 0.0f) - RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); - if (shortcut_w > 0.0f) + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) { - PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); - RenderText(pos + ImVec2(offsets->OffsetShortcut + stretch_w, 0.0f), shortcut, NULL, false); - PopStyleColor(); + RenderText(pos + ImVec2(offsets->OffsetLabel, 0.0f), label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + if (shortcut_w > 0.0f) + { + PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); + RenderText(pos + ImVec2(offsets->OffsetShortcut + stretch_w, 0.0f), shortcut, NULL, false); + PopStyleColor(); + } + if (selected) + RenderCheckMark(window->DrawList, pos + ImVec2(offsets->OffsetMark + stretch_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(ImGuiCol_Text), g.FontSize * 0.866f); } - if (selected) - RenderCheckMark(window->DrawList, pos + ImVec2(offsets->OffsetMark + stretch_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(ImGuiCol_Text), g.FontSize * 0.866f); } IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (selected ? ImGuiItemStatusFlags_Checked : 0)); if (!enabled) EndDisabled(); PopID(); if (menuset_is_open) - g.NavWindow = backed_nav_window; + PopItemFlag(); return pressed; } @@ -7492,8 +7591,8 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) // Additionally, when using TabBarAddTab() to manipulate tab bar order we occasionally insert new tabs that don't have a width yet, // and we cannot wait for the next BeginTabItem() call. We cannot compute this width within TabBarAddTab() because font size depends on the active window. const char* tab_name = tab_bar->GetTabName(tab); - const bool has_close_button = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) == 0; - tab->ContentWidth = TabItemCalcSize(tab_name, has_close_button).x; + const bool has_close_button_or_unsaved_marker = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) == 0 || (tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + tab->ContentWidth = (tab->RequestedWidth >= 0.0f) ? tab->RequestedWidth : TabItemCalcSize(tab_name, has_close_button_or_unsaved_marker).x; int section_n = TabItemGetSectionIdx(tab); ImGuiTabBarSection* section = §ions[section_n]; @@ -7502,12 +7601,10 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) // Store data so we can build an array sorted by width if we need to shrink tabs down IM_MSVC_WARNING_SUPPRESS(6385); - int shrink_buffer_index = shrink_buffer_indexes[section_n]++; - g.ShrinkWidthBuffer[shrink_buffer_index].Index = tab_n; - g.ShrinkWidthBuffer[shrink_buffer_index].Width = tab->ContentWidth; - - IM_ASSERT(tab->ContentWidth > 0.0f); - tab->Width = tab->ContentWidth; + ImGuiShrinkWidthItem* shrink_width_item = &g.ShrinkWidthBuffer[shrink_buffer_indexes[section_n]++]; + shrink_width_item->Index = tab_n; + shrink_width_item->Width = shrink_width_item->InitialWidth = tab->ContentWidth; + tab->Width = ImMax(tab->ContentWidth, 1.0f); } // Compute total ideal width (used for e.g. auto-resizing a window) @@ -7537,7 +7634,7 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) width_excess = (section_0_w + section_2_w) - tab_bar->BarRect.GetWidth(); // Excess used to shrink leading/trailing section // With ImGuiTabBarFlags_FittingPolicyScroll policy, we will only shrink leading/trailing if the central section is not visible anymore - if (width_excess > 0.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) + if (width_excess >= 1.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) { int shrink_data_count = (central_section_is_visible ? sections[1].TabCount : sections[0].TabCount + sections[2].TabCount); int shrink_data_offset = (central_section_is_visible ? sections[0].TabCount + sections[2].TabCount : 0); @@ -7551,6 +7648,7 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) if (shrinked_width < 0.0f) continue; + shrinked_width = ImMax(1.0f, shrinked_width); int section_n = TabItemGetSectionIdx(tab); sections[section_n].Width -= (tab->Width - shrinked_width); tab->Width = shrinked_width; @@ -7594,7 +7692,7 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) // CTRL+TAB can override visible tab temporarily if (g.NavWindowingTarget != NULL && g.NavWindowingTarget->DockNode && g.NavWindowingTarget->DockNode->TabBar == tab_bar) - tab_bar->VisibleTabId = scroll_to_tab_id = g.NavWindowingTarget->ID; + tab_bar->VisibleTabId = scroll_to_tab_id = g.NavWindowingTarget->TabId; // Update scrolling if (scroll_to_tab_id != 0) @@ -7631,7 +7729,7 @@ static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label, I { IM_UNUSED(tab_bar); IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_DockNode); - ImGuiID id = ImHashStr(label); + ImGuiID id = docked_window->TabId; KeepAliveID(id); return id; } @@ -7676,14 +7774,14 @@ ImGuiTabItem* ImGui::TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBa void ImGui::TabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window) { ImGuiContext& g = *GImGui; - IM_ASSERT(TabBarFindTabByID(tab_bar, window->ID) == NULL); + IM_ASSERT(TabBarFindTabByID(tab_bar, window->TabId) == NULL); IM_ASSERT(g.CurrentTabBar != tab_bar); // Can't work while the tab bar is active as our tab doesn't have an X offset yet, in theory we could/should test something like (tab_bar->CurrFrameVisible < g.FrameCount) but we'd need to solve why triggers the commented early-out assert in BeginTabBarEx() (probably dock node going from implicit to explicit in same frame) if (!window->HasCloseButton) tab_flags |= ImGuiTabItemFlags_NoCloseButton; // Set _NoCloseButton immediately because it will be used for first-frame width calculation. ImGuiTabItem new_tab; - new_tab.ID = window->ID; + new_tab.ID = window->TabId; new_tab.Flags = tab_flags; new_tab.LastFrameVisible = tab_bar->CurrFrameVisible; // Required so BeginTabBar() doesn't ditch the tab if (new_tab.LastFrameVisible == -1) @@ -7705,7 +7803,9 @@ void ImGui::TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id) // Called on manual closure attempt void ImGui::TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) { - IM_ASSERT(!(tab->Flags & ImGuiTabItemFlags_Button)); + if (tab->Flags & ImGuiTabItemFlags_Button) + return; // A button appended with TabItemButton(). + if (!(tab->Flags & ImGuiTabItemFlags_UnsavedDocument)) { // This will remove a frame of lag for selecting another tab on closure. @@ -8015,10 +8115,13 @@ bool ImGui::TabItemButton(const char* label, ImGuiTabItemFlags flags) bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window) { // Layout whole tab bar if not already done + ImGuiContext& g = *GImGui; if (tab_bar->WantLayout) + { + ImGuiNextItemData backup_next_item_data = g.NextItemData; TabBarLayout(tab_bar); - - ImGuiContext& g = *GImGui; + g.NextItemData = backup_next_item_data; + } ImGuiWindow* window = g.CurrentWindow; if (window->SkipItems) return false; @@ -8031,7 +8134,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); if (p_open && !*p_open) { - ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus); + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); return false; } @@ -8044,9 +8147,6 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, else if (p_open == NULL) flags |= ImGuiTabItemFlags_NoCloseButton; - // Calculate tab contents size - ImVec2 size = TabItemCalcSize(label, p_open != NULL); - // Acquire tab data ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, id); bool tab_is_new = false; @@ -8055,17 +8155,24 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, tab_bar->Tabs.push_back(ImGuiTabItem()); tab = &tab_bar->Tabs.back(); tab->ID = id; - tab->Width = size.x; - tab_bar->TabsAddedNew = true; - tab_is_new = true; + tab_bar->TabsAddedNew = tab_is_new = true; } tab_bar->LastTabItemIdx = (ImS16)tab_bar->Tabs.index_from_ptr(tab); + + // Calculate tab contents size + ImVec2 size = TabItemCalcSize(label, (p_open != NULL) || (flags & ImGuiTabItemFlags_UnsavedDocument)); + tab->RequestedWidth = -1.0f; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + size.x = tab->RequestedWidth = g.NextItemData.Width; + if (tab_is_new) + tab->Width = ImMax(1.0f, size.x); tab->ContentWidth = size.x; tab->BeginOrder = tab_bar->TabsActiveCount++; const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); const bool tab_bar_focused = (tab_bar->Flags & ImGuiTabBarFlags_IsFocused) != 0; const bool tab_appearing = (tab->LastFrameVisible + 1 < g.FrameCount); + const bool tab_just_unsaved = (flags & ImGuiTabItemFlags_UnsavedDocument) && !(tab->Flags & ImGuiTabItemFlags_UnsavedDocument); const bool is_tab_button = (flags & ImGuiTabItemFlags_Button) != 0; tab->LastFrameVisible = g.FrameCount; tab->Flags = flags; @@ -8086,13 +8193,14 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, } // Update selected tab - if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) - if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) - if (!is_tab_button) + if (!is_tab_button) + { + if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) + if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) tab_bar->NextSelectedTabId = id; // New tabs gets activated - if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // SetSelected can only be passed on explicit tab bar - if (!is_tab_button) + if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // _SetSelected can only be passed on explicit tab bar tab_bar->NextSelectedTabId = id; + } // Lock visibility // (Note: tab_contents_visible != tab_selected... because CTRL+TAB operations may preview some tabs without selecting them!) @@ -8109,7 +8217,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, // and then gets submitted again, the tabs will have 'tab_appearing=true' but 'tab_is_new=false'. if (tab_appearing && (!tab_bar_appearing || tab_is_new)) { - ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus); + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); if (is_tab_button) return false; return tab_contents_visible; @@ -8225,7 +8333,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, SetActiveID(g.MovingWindow->MoveId, g.MovingWindow); g.ActiveIdClickOffset -= g.MovingWindow->Pos - bb.Min; g.ActiveIdNoClearOnFocusLoss = true; - SetActiveIdUsingNavAndKeys(); + SetActiveIdUsingAllKeyboardKeys(); } } } @@ -8256,10 +8364,10 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; // Render tab label, process close button - const ImGuiID close_button_id = p_open ? GetIDWithSeed("#CLOSE", NULL, id) : 0; + const ImGuiID close_button_id = p_open ? GetIDWithSeed("#CLOSE", NULL, docked_window ? docked_window->ID : id) : 0; bool just_closed; bool text_clipped; - TabItemLabelAndCloseButton(display_draw_list, bb, flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible, &just_closed, &text_clipped); + TabItemLabelAndCloseButton(display_draw_list, bb, tab_just_unsaved ? (flags & ~ImGuiTabItemFlags_UnsavedDocument) : flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible, &just_closed, &text_clipped); if (just_closed && p_open != NULL) { *p_open = false; @@ -8281,9 +8389,10 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, // (We test IsItemHovered() to discard e.g. when another item is active or drag and drop over the tab bar, which g.HoveredId ignores) // FIXME: This is a mess. // FIXME: We may want disabled tab to still display the tooltip? - if (text_clipped && g.HoveredId == id && !held && g.HoveredIdNotActiveTimer > g.TooltipSlowDelay && IsItemHovered()) + if (text_clipped && g.HoveredId == id && !held) if (!(tab_bar->Flags & ImGuiTabBarFlags_NoTooltip) && !(tab->Flags & ImGuiTabItemFlags_NoTooltip)) - SetTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); + if (IsItemHovered(ImGuiHoveredFlags_DelayNormal)) + SetTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); IM_ASSERT(!is_tab_button || !(tab_bar->SelectedTabId == tab->ID && is_tab_button)); // TabItemButton should not be selected if (is_tab_button) @@ -8317,18 +8426,23 @@ void ImGui::SetTabItemClosed(const char* label) } } -ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button) +ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker) { ImGuiContext& g = *GImGui; ImVec2 label_size = CalcTextSize(label, NULL, true); ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f); - if (has_close_button) + if (has_close_button_or_unsaved_marker) size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle. else size.x += g.Style.FramePadding.x + 1.0f; return ImVec2(ImMin(size.x, TabBarCalcMaxTabWidth()), size.y); } +ImVec2 ImGui::TabItemCalcSize(ImGuiWindow* window) +{ + return TabItemCalcSize(window->Name, window->HasCloseButton || (window->Flags & ImGuiWindowFlags_UnsavedDocument)); +} + void ImGui::TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col) { // While rendering tabs, we trim 1 pixel off the top of our bounding box so they can fit within a regular frame height while looking "detached" from it. diff --git a/imgui-sys/third-party/imgui-docking/imgui/imstb_rectpack.h b/imgui-sys/third-party/imgui-docking/imgui/imstb_rectpack.h index 395895216..f6917e7a6 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imstb_rectpack.h +++ b/imgui-sys/third-party/imgui-docking/imgui/imstb_rectpack.h @@ -1,15 +1,19 @@ // [DEAR IMGUI] -// This is a slightly modified version of stb_rect_pack.h 1.00. -// Those changes would need to be pushed into nothings/stb: -// - Added STBRP__CDECL +// This is a slightly modified version of stb_rect_pack.h 1.01. // Grep for [DEAR IMGUI] to find the changes. - -// stb_rect_pack.h - v1.00 - public domain - rectangle packing +// +// stb_rect_pack.h - v1.01 - public domain - rectangle packing // Sean Barrett 2014 // // Useful for e.g. packing rectangular textures into an atlas. // Does not do rotation. // +// Before #including, +// +// #define STB_RECT_PACK_IMPLEMENTATION +// +// in the file that you want to have the implementation. +// // Not necessarily the awesomest packing method, but better than // the totally naive one in stb_truetype (which is primarily what // this is meant to replace). @@ -41,6 +45,7 @@ // // Version history: // +// 1.01 (2021-07-11) always use large rect mode, expose STBRP__MAXVAL in public section // 1.00 (2019-02-25) avoid small space waste; gracefully fail too-wide rectangles // 0.99 (2019-02-07) warning fixes // 0.11 (2017-03-03) return packing success/fail result @@ -81,11 +86,10 @@ typedef struct stbrp_context stbrp_context; typedef struct stbrp_node stbrp_node; typedef struct stbrp_rect stbrp_rect; -#ifdef STBRP_LARGE_RECTS typedef int stbrp_coord; -#else -typedef unsigned short stbrp_coord; -#endif + +#define STBRP__MAXVAL 0x7fffffff +// Mostly for internal use, but this is the maximum supported coordinate value. STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); // Assign packed locations to rectangles. The rectangles are of type @@ -213,10 +217,9 @@ struct stbrp_context #define STBRP_ASSERT assert #endif -// [DEAR IMGUI] Added STBRP__CDECL #ifdef _MSC_VER #define STBRP__NOTUSED(v) (void)(v) -#define STBRP__CDECL __cdecl +#define STBRP__CDECL __cdecl #else #define STBRP__NOTUSED(v) (void)sizeof(v) #define STBRP__CDECL @@ -262,9 +265,6 @@ STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_ou STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) { int i; -#ifndef STBRP_LARGE_RECTS - STBRP_ASSERT(width <= 0xffff && height <= 0xffff); -#endif for (i=0; i < num_nodes-1; ++i) nodes[i].next = &nodes[i+1]; @@ -283,11 +283,7 @@ STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, context->extra[0].y = 0; context->extra[0].next = &context->extra[1]; context->extra[1].x = (stbrp_coord) width; -#ifdef STBRP_LARGE_RECTS context->extra[1].y = (1<<30); -#else - context->extra[1].y = 65535; -#endif context->extra[1].next = NULL; } @@ -433,7 +429,7 @@ static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int widt if (y <= best_y) { if (y < best_y || waste < best_waste || (waste==best_waste && xpos < best_x)) { best_x = xpos; - STBRP_ASSERT(y <= best_y); + //STBRP_ASSERT(y <= best_y); [DEAR IMGUI] best_y = y; best_waste = waste; best = prev; @@ -529,7 +525,6 @@ static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, i return res; } -// [DEAR IMGUI] Added STBRP__CDECL static int STBRP__CDECL rect_height_compare(const void *a, const void *b) { const stbrp_rect *p = (const stbrp_rect *) a; @@ -541,7 +536,6 @@ static int STBRP__CDECL rect_height_compare(const void *a, const void *b) return (p->w > q->w) ? -1 : (p->w < q->w); } -// [DEAR IMGUI] Added STBRP__CDECL static int STBRP__CDECL rect_original_order(const void *a, const void *b) { const stbrp_rect *p = (const stbrp_rect *) a; @@ -549,12 +543,6 @@ static int STBRP__CDECL rect_original_order(const void *a, const void *b) return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); } -#ifdef STBRP_LARGE_RECTS -#define STBRP__MAXVAL 0xffffffff -#else -#define STBRP__MAXVAL 0xffff -#endif - STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) { int i, all_rects_packed = 1; diff --git a/imgui-sys/third-party/imgui-docking/imgui/imstb_textedit.h b/imgui-sys/third-party/imgui-docking/imgui/imstb_textedit.h index 2c635b27d..75a159dac 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imstb_textedit.h +++ b/imgui-sys/third-party/imgui-docking/imgui/imstb_textedit.h @@ -1,10 +1,10 @@ // [DEAR IMGUI] -// This is a slightly modified version of stb_textedit.h 1.13. +// This is a slightly modified version of stb_textedit.h 1.14. // Those changes would need to be pushed into nothings/stb: // - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321) // Grep for [DEAR IMGUI] to find the changes. -// stb_textedit.h - v1.13 - public domain - Sean Barrett +// stb_textedit.h - v1.14 - public domain - Sean Barrett // Development of this library was sponsored by RAD Game Tools // // This C header file implements the guts of a multi-line text-editing @@ -35,6 +35,7 @@ // // VERSION HISTORY // +// 1.14 (2021-07-11) page up/down, various fixes // 1.13 (2019-02-07) fix bug in undo size management // 1.12 (2018-01-29) user can change STB_TEXTEDIT_KEYTYPE, fix redo to avoid crash // 1.11 (2017-03-03) fix HOME on last line, dragging off single-line textfield @@ -58,6 +59,7 @@ // Ulf Winklemann: move-by-word in 1.1 // Fabian Giesen: secondary key inputs in 1.5 // Martins Mozeiko: STB_TEXTEDIT_memmove in 1.6 +// Louis Schnellbach: page up/down in 1.14 // // Bugfixes: // Scott Graham @@ -93,8 +95,8 @@ // moderate sizes. The undo system does no memory allocations, so // it grows STB_TexteditState by the worst-case storage which is (in bytes): // -// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATE_COUNT -// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHAR_COUNT +// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATECOUNT +// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHARCOUNT // // // Implementation mode: @@ -716,10 +718,6 @@ static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditSta state->has_preferred_x = 0; return 1; } - // [DEAR IMGUI] - //// remove the undo since we didn't actually insert the characters - //if (state->undostate.undo_point) - // --state->undostate.undo_point; // note: paste failure will leave deleted selection, may be restored with an undo (see https://github.com/nothings/stb/issues/734 for details) return 0; } diff --git a/imgui-sys/third-party/imgui-docking/imgui/imstb_truetype.h b/imgui-sys/third-party/imgui-docking/imgui/imstb_truetype.h index 48c202617..643d37899 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/imstb_truetype.h +++ b/imgui-sys/third-party/imgui-docking/imgui/imstb_truetype.h @@ -1,10 +1,19 @@ // [DEAR IMGUI] -// This is a slightly modified version of stb_truetype.h 1.20. +// This is a slightly modified version of stb_truetype.h 1.26. // Mostly fixing for compiler and static analyzer warnings. // Grep for [DEAR IMGUI] to find the changes. -// stb_truetype.h - v1.20 - public domain -// authored from 2009-2016 by Sean Barrett / RAD Game Tools +// stb_truetype.h - v1.26 - public domain +// authored from 2009-2021 by Sean Barrett / RAD Game Tools +// +// ======================================================================= +// +// NO SECURITY GUARANTEE -- DO NOT USE THIS ON UNTRUSTED FONT FILES +// +// This library does no range checking of the offsets found in the file, +// meaning an attacker can use it to read arbitrary memory. +// +// ======================================================================= // // This library processes TrueType files: // parse files @@ -37,11 +46,11 @@ // Daniel Ribeiro Maciel // // Bug/warning reports/fixes: -// "Zer" on mollyrocket Fabian "ryg" Giesen -// Cass Everitt Martins Mozeiko -// stoiko (Haemimont Games) Cap Petschulat -// Brian Hook Omar Cornut -// Walter van Niftrik github:aloucks +// "Zer" on mollyrocket Fabian "ryg" Giesen github:NiLuJe +// Cass Everitt Martins Mozeiko github:aloucks +// stoiko (Haemimont Games) Cap Petschulat github:oyvindjam +// Brian Hook Omar Cornut github:vassvik +// Walter van Niftrik Ryan Griege // David Gow Peter LaValle // David Given Sergey Popov // Ivan-Assen Ivanov Giumo X. Clanjor @@ -49,11 +58,17 @@ // Johan Duparc Thomas Fields // Hou Qiming Derek Vinyard // Rob Loach Cort Stratton -// Kenney Phillis Jr. github:oyvindjam -// Brian Costabile github:vassvik +// Kenney Phillis Jr. Brian Costabile +// Ken Voskuil (kaesve) // // VERSION HISTORY // +// 1.26 (2021-08-28) fix broken rasterizer +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning // 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() // 1.19 (2018-02-11) GPOS kerning, STBTT_fmod // 1.18 (2018-01-29) add missing function @@ -248,19 +263,6 @@ // recommend it. // // -// SOURCE STATISTICS (based on v0.6c, 2050 LOC) -// -// Documentation & header file 520 LOC \___ 660 LOC documentation -// Sample code 140 LOC / -// Truetype parsing 620 LOC ---- 620 LOC TrueType -// Software rasterization 240 LOC \. -// Curve tessellation 120 LOC \__ 550 LOC Bitmap creation -// Bitmap management 100 LOC / -// Baked bitmap interface 70 LOC / -// Font name matching & access 150 LOC ---- 150 -// C runtime library abstraction 60 LOC ---- 60 -// -// // PERFORMANCE MEASUREMENTS FOR 1.06: // // 32-bit 64-bit @@ -275,8 +277,8 @@ //// SAMPLE PROGRAMS //// // -// Incomplete text-in-3d-api example, which draws quads properly aligned to be lossless -// +// Incomplete text-in-3d-api example, which draws quads properly aligned to be lossless. +// See "tests/truetype_demo_win32.c" for a complete version. #if 0 #define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation #include "stb_truetype.h" @@ -302,6 +304,8 @@ void my_stbtt_initfont(void) void my_stbtt_print(float x, float y, char *text) { // assume orthographic projection with units = screen pixels, origin at top left + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, ftex); glBegin(GL_QUADS); @@ -309,10 +313,10 @@ void my_stbtt_print(float x, float y, char *text) if (*text >= 32 && *text < 128) { stbtt_aligned_quad q; stbtt_GetBakedQuad(cdata, 512,512, *text-32, &x,&y,&q,1);//1=opengl & d3d10+,0=d3d9 - glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y0); - glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y0); - glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y1); - glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y1); + glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y0); + glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y0); + glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y1); + glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y1); } ++text; } @@ -719,7 +723,7 @@ struct stbtt_fontinfo int numGlyphs; // number of glyphs, needed for range checking - int loca,head,glyf,hhea,hmtx,kern,gpos; // table locations as offset from start of .ttf + int loca,head,glyf,hhea,hmtx,kern,gpos,svg; // table locations as offset from start of .ttf int index_map; // a cmap mapping for our chosen character encoding int indexToLocFormat; // format needed to map from glyph index to glyph @@ -802,6 +806,18 @@ STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); // as above, but takes one or more glyph indices for greater efficiency +typedef struct stbtt_kerningentry +{ + int glyph1; // use stbtt_FindGlyphIndex + int glyph2; + int advance; +} stbtt_kerningentry; + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info); +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length); +// Retrieves a complete list of all of the kerning pairs provided by the font +// stbtt_GetKerningTable never writes more than table_length entries and returns how many entries it did write. +// The table will be sorted by (a.glyph1 == b.glyph1)?(a.glyph2 < b.glyph2):(a.glyph1 < b.glyph1) ////////////////////////////////////////////////////////////////////////////// // @@ -846,6 +862,12 @@ STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, s STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices); // frees the data allocated above +STBTT_DEF unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl); +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg); +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg); +// fills svg with the character's SVG data. +// returns data size or 0 if SVG not found. + ////////////////////////////////////////////////////////////////////////////// // // BITMAP RENDERING @@ -1347,6 +1369,22 @@ static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict) return stbtt__cff_get_index(&cff); } +// since most people won't use this, find this table the first time it's needed +static int stbtt__get_svg(stbtt_fontinfo *info) +{ + stbtt_uint32 t; + if (info->svg < 0) { + t = stbtt__find_table(info->data, info->fontstart, "SVG "); + if (t) { + stbtt_uint32 offset = ttULONG(info->data + t + 2); + info->svg = t + offset; + } else { + info->svg = 0; + } + } + return info->svg; +} + static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart) { stbtt_uint32 cmap, t; @@ -1426,6 +1464,8 @@ static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, in else info->numGlyphs = 0xffff; + info->svg = -1; + // find a cmap encoding table we understand *now* to avoid searching // later. (todo: could make this installable) // the same regardless of glyph. @@ -1509,12 +1549,12 @@ STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codep search += 2; { - stbtt_uint16 offset, start; + stbtt_uint16 offset, start, last; stbtt_uint16 item = (stbtt_uint16) ((search - endCount) >> 1); - STBTT_assert(unicode_codepoint <= ttUSHORT(data + endCount + 2*item)); start = ttUSHORT(data + index_map + 14 + segcount*2 + 2 + 2*item); - if (unicode_codepoint < start) + last = ttUSHORT(data + endCount + 2*item); + if (unicode_codepoint < start || unicode_codepoint > last) return 0; offset = ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item); @@ -1774,7 +1814,7 @@ static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, s } } num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); - } else if (numberOfContours == -1) { + } else if (numberOfContours < 0) { // Compound shapes. int more = 1; stbtt_uint8 *comp = data + g + 10; @@ -1841,7 +1881,7 @@ static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, s if (comp_verts) STBTT_free(comp_verts, info->userdata); return 0; } - if (num_vertices > 0) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); //-V595 + if (num_vertices > 0 && vertices) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex)); if (vertices) STBTT_free(vertices, info->userdata); vertices = tmp; @@ -1851,9 +1891,6 @@ static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, s // More components ? more = flags & (1<<5); } - } else if (numberOfContours < 0) { - // @TODO other compound variations? - STBTT_assert(0); } else { // numberOfCounters == 0, do nothing } @@ -2107,7 +2144,7 @@ static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, st subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); has_subrs = 1; } - // fallthrough + // FALLTHROUGH case 0x1D: // callgsubr if (sp < 1) return STBTT__CSERR("call(g|)subr stack"); v = (int) s[--sp]; @@ -2212,7 +2249,7 @@ static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, st } break; default: - if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) //-V560 + if (b0 != 255 && b0 != 28 && b0 < 32) return STBTT__CSERR("reserved operator"); // push immediate @@ -2282,7 +2319,49 @@ STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_inde } } -static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info) +{ + stbtt_uint8 *data = info->data + info->kern; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + return ttUSHORT(data+10); +} + +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length) +{ + stbtt_uint8 *data = info->data + info->kern; + int k, length; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + length = ttUSHORT(data+10); + if (table_length < length) + length = table_length; + + for (k = 0; k < length; k++) + { + table[k].glyph1 = ttUSHORT(data+18+(k*6)); + table[k].glyph2 = ttUSHORT(data+20+(k*6)); + table[k].advance = ttSHORT(data+22+(k*6)); + } + + return length; +} + +static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) { stbtt_uint8 *data = info->data + info->kern; stbtt_uint32 needle, straw; @@ -2312,245 +2391,225 @@ static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph return 0; } -static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) -{ - stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); - switch(coverageFormat) { - case 1: { - stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); - - // Binary search. - stbtt_int32 l=0, r=glyphCount-1, m; - int straw, needle=glyph; - while (l <= r) { - stbtt_uint8 *glyphArray = coverageTable + 4; - stbtt_uint16 glyphID; - m = (l + r) >> 1; - glyphID = ttUSHORT(glyphArray + 2 * m); - straw = glyphID; - if (needle < straw) - r = m - 1; - else if (needle > straw) - l = m + 1; - else { - return m; - } +static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) +{ + stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); + switch (coverageFormat) { + case 1: { + stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); + + // Binary search. + stbtt_int32 l=0, r=glyphCount-1, m; + int straw, needle=glyph; + while (l <= r) { + stbtt_uint8 *glyphArray = coverageTable + 4; + stbtt_uint16 glyphID; + m = (l + r) >> 1; + glyphID = ttUSHORT(glyphArray + 2 * m); + straw = glyphID; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + return m; } - } break; - - case 2: { - stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); - stbtt_uint8 *rangeArray = coverageTable + 4; - - // Binary search. - stbtt_int32 l=0, r=rangeCount-1, m; - int strawStart, strawEnd, needle=glyph; - while (l <= r) { - stbtt_uint8 *rangeRecord; - m = (l + r) >> 1; - rangeRecord = rangeArray + 6 * m; - strawStart = ttUSHORT(rangeRecord); - strawEnd = ttUSHORT(rangeRecord + 2); - if (needle < strawStart) - r = m - 1; - else if (needle > strawEnd) - l = m + 1; - else { - stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); - return startCoverageIndex + glyph - strawStart; - } + } + break; + } + + case 2: { + stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); + stbtt_uint8 *rangeArray = coverageTable + 4; + + // Binary search. + stbtt_int32 l=0, r=rangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *rangeRecord; + m = (l + r) >> 1; + rangeRecord = rangeArray + 6 * m; + strawStart = ttUSHORT(rangeRecord); + strawEnd = ttUSHORT(rangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else { + stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); + return startCoverageIndex + glyph - strawStart; } - } break; + } + break; + } - default: { - // There are no other cases. - STBTT_assert(0); - } break; - } + default: return -1; // unsupported + } - return -1; + return -1; } static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph) { - stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); - switch(classDefFormat) - { - case 1: { - stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); - stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); - stbtt_uint8 *classDef1ValueArray = classDefTable + 6; - - if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) - return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); - - // [DEAR IMGUI] Commented to fix static analyzer warning - //classDefTable = classDef1ValueArray + 2 * glyphCount; - } break; - - case 2: { - stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); - stbtt_uint8 *classRangeRecords = classDefTable + 4; - - // Binary search. - stbtt_int32 l=0, r=classRangeCount-1, m; - int strawStart, strawEnd, needle=glyph; - while (l <= r) { - stbtt_uint8 *classRangeRecord; - m = (l + r) >> 1; - classRangeRecord = classRangeRecords + 6 * m; - strawStart = ttUSHORT(classRangeRecord); - strawEnd = ttUSHORT(classRangeRecord + 2); - if (needle < strawStart) - r = m - 1; - else if (needle > strawEnd) - l = m + 1; - else - return (stbtt_int32)ttUSHORT(classRangeRecord + 4); - } + stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); + switch (classDefFormat) + { + case 1: { + stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); + stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); + stbtt_uint8 *classDef1ValueArray = classDefTable + 6; - // [DEAR IMGUI] Commented to fix static analyzer warning - //classDefTable = classRangeRecords + 6 * classRangeCount; - } break; + if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) + return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); + break; + } - default: { - // There are no other cases. - STBTT_assert(0); - } break; - } + case 2: { + stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); + stbtt_uint8 *classRangeRecords = classDefTable + 4; + + // Binary search. + stbtt_int32 l=0, r=classRangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *classRangeRecord; + m = (l + r) >> 1; + classRangeRecord = classRangeRecords + 6 * m; + strawStart = ttUSHORT(classRangeRecord); + strawEnd = ttUSHORT(classRangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else + return (stbtt_int32)ttUSHORT(classRangeRecord + 4); + } + break; + } - return -1; + default: + return -1; // Unsupported definition type, return an error. + } + + // "All glyphs not assigned to a class fall into class 0". (OpenType spec) + return 0; } // Define to STBTT_assert(x) if you want to break on unimplemented formats. #define STBTT_GPOS_TODO_assert(x) -static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) -{ - stbtt_uint16 lookupListOffset; - stbtt_uint8 *lookupList; - stbtt_uint16 lookupCount; - stbtt_uint8 *data; - stbtt_int32 i; - - if (!info->gpos) return 0; - - data = info->data + info->gpos; - - if (ttUSHORT(data+0) != 1) return 0; // Major version 1 - if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 - - lookupListOffset = ttUSHORT(data+8); - lookupList = data + lookupListOffset; - lookupCount = ttUSHORT(lookupList); - - for (i=0; i> 1; - pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; - secondGlyph = ttUSHORT(pairValue); - straw = secondGlyph; - if (needle < straw) - r = m - 1; - else if (needle > straw) - l = m + 1; - else { - stbtt_int16 xAdvance = ttSHORT(pairValue + 2); - return xAdvance; - } - } - } break; - - case 2: { - stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); - stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); - - stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); - stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); - int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); - int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); - - stbtt_uint16 class1Count = ttUSHORT(table + 12); - stbtt_uint16 class2Count = ttUSHORT(table + 14); - STBTT_assert(glyph1class < class1Count); - STBTT_assert(glyph2class < class2Count); - - // TODO: Support more formats. - STBTT_GPOS_TODO_assert(valueFormat1 == 4); - if (valueFormat1 != 4) return 0; - STBTT_GPOS_TODO_assert(valueFormat2 == 0); - if (valueFormat2 != 0) return 0; - - if (glyph1class >= 0 && glyph1class < class1Count && glyph2class >= 0 && glyph2class < class2Count) { - stbtt_uint8 *class1Records = table + 16; - stbtt_uint8 *class2Records = class1Records + 2 * (glyph1class * class2Count); - stbtt_int16 xAdvance = ttSHORT(class2Records + 2 * glyph2class); - return xAdvance; - } - } break; - - default: { - // There are no other cases. - STBTT_assert(0); - break; - } // [DEAR IMGUI] removed ; - } - } - break; - } // [DEAR IMGUI] removed ; +static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint16 lookupListOffset; + stbtt_uint8 *lookupList; + stbtt_uint16 lookupCount; + stbtt_uint8 *data; + stbtt_int32 i, sti; + + if (!info->gpos) return 0; + + data = info->data + info->gpos; + + if (ttUSHORT(data+0) != 1) return 0; // Major version 1 + if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 + + lookupListOffset = ttUSHORT(data+8); + lookupList = data + lookupListOffset; + lookupCount = ttUSHORT(lookupList); + + for (i=0; i= pairSetCount) return 0; + + needle=glyph2; + r=pairValueCount-1; + l=0; + + // Binary search. + while (l <= r) { + stbtt_uint16 secondGlyph; + stbtt_uint8 *pairValue; + m = (l + r) >> 1; + pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; + secondGlyph = ttUSHORT(pairValue); + straw = secondGlyph; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + stbtt_int16 xAdvance = ttSHORT(pairValue + 2); + return xAdvance; + } + } + } else + return 0; + break; + } + + case 2: { + stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); + stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); + if (valueFormat1 == 4 && valueFormat2 == 0) { // Support more formats? + stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); + stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); + int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); + int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); + + stbtt_uint16 class1Count = ttUSHORT(table + 12); + stbtt_uint16 class2Count = ttUSHORT(table + 14); + stbtt_uint8 *class1Records, *class2Records; + stbtt_int16 xAdvance; + + if (glyph1class < 0 || glyph1class >= class1Count) return 0; // malformed + if (glyph2class < 0 || glyph2class >= class2Count) return 0; // malformed + + class1Records = table + 16; + class2Records = class1Records + 2 * (glyph1class * class2Count); + xAdvance = ttSHORT(class2Records + 2 * glyph2class); + return xAdvance; + } else + return 0; + break; + } default: - // TODO: Implement other stuff. - break; - } - } + return 0; // Unsupported position format + } + } + } - return 0; + return 0; } STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2) @@ -2559,8 +2618,7 @@ STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int if (info->gpos) xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2); - - if (info->kern) + else if (info->kern) xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2); return xAdvance; @@ -2621,6 +2679,45 @@ STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v) STBTT_free(v, info->userdata); } +STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl) +{ + int i; + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc_list = data + stbtt__get_svg((stbtt_fontinfo *) info); + + int numEntries = ttUSHORT(svg_doc_list); + stbtt_uint8 *svg_docs = svg_doc_list + 2; + + for(i=0; i= ttUSHORT(svg_doc)) && (gl <= ttUSHORT(svg_doc + 2))) + return svg_doc; + } + return 0; +} + +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg) +{ + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc; + + if (info->svg == 0) + return 0; + + svg_doc = stbtt_FindSVGDoc(info, gl); + if (svg_doc != NULL) { + *svg = (char *) data + info->svg + ttULONG(svg_doc + 4); + return ttULONG(svg_doc + 8); + } else { + return 0; + } +} + +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg) +{ + return stbtt_GetGlyphSVG(info, stbtt_FindGlyphIndex(info, unicode_codepoint), svg); +} + ////////////////////////////////////////////////////////////////////////////// // // antialiasing software rasterizer @@ -2970,6 +3067,23 @@ static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edg } } +static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width) +{ + STBTT_assert(top_width >= 0); + STBTT_assert(bottom_width >= 0); + return (top_width + bottom_width) / 2.0f * height; +} + +static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1) +{ + return stbtt__sized_trapezoid_area(height, tx1 - tx0, bx1 - bx0); +} + +static float stbtt__sized_triangle_area(float height, float width) +{ + return height * width / 2; +} + static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top) { float y_bottom = y_top+1; @@ -3024,13 +3138,13 @@ static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, float height; // simple case, only spans one pixel int x = (int) x_top; - height = sy1 - sy0; + height = (sy1 - sy0) * e->direction; STBTT_assert(x >= 0 && x < len); - scanline[x] += e->direction * (1-((x_top - x) + (x_bottom-x))/2) * height; - scanline_fill[x] += e->direction * height; // everything right of this pixel is filled + scanline[x] += stbtt__position_trapezoid_area(height, x_top, x+1.0f, x_bottom, x+1.0f); + scanline_fill[x] += height; // everything right of this pixel is filled } else { int x,x1,x2; - float y_crossing, step, sign, area; + float y_crossing, y_final, step, sign, area; // covers 2+ pixels if (x_top > x_bottom) { // flip scanline vertically; signed area is the same @@ -3042,32 +3156,83 @@ static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, dx = -dx; dy = -dy; t = x0, x0 = xb, xb = t; - // [DEAR IMGUI] Fix static analyzer warning - (void)dx; // [ImGui: fix static analyzer warning] } + STBTT_assert(dy >= 0); + STBTT_assert(dx >= 0); x1 = (int) x_top; x2 = (int) x_bottom; // compute intersection with y axis at x1+1 - y_crossing = (x1+1 - x0) * dy + y_top; + y_crossing = y_top + dy * (x1+1 - x0); + + // compute intersection with y axis at x2 + y_final = y_top + dy * (x2 - x0); + + // x1 x_top x2 x_bottom + // y_top +------|-----+------------+------------+--------|---+------------+ + // | | | | | | + // | | | | | | + // sy0 | Txxxxx|............|............|............|............| + // y_crossing | *xxxxx.......|............|............|............| + // | | xxxxx..|............|............|............| + // | | /- xx*xxxx........|............|............| + // | | dy < | xxxxxx..|............|............| + // y_final | | \- | xx*xxx.........|............| + // sy1 | | | | xxxxxB...|............| + // | | | | | | + // | | | | | | + // y_bottom +------------+------------+------------+------------+------------+ + // + // goal is to measure the area covered by '.' in each pixel + + // if x2 is right at the right edge of x1, y_crossing can blow up, github #1057 + // @TODO: maybe test against sy1 rather than y_bottom? + if (y_crossing > y_bottom) + y_crossing = y_bottom; sign = e->direction; - // area of the rectangle covered from y0..y_crossing + + // area of the rectangle covered from sy0..y_crossing area = sign * (y_crossing-sy0); - // area of the triangle (x_top,y0), (x+1,y0), (x+1,y_crossing) - scanline[x1] += area * (1-((x_top - x1)+(x1+1-x1))/2); - step = sign * dy; + // area of the triangle (x_top,sy0), (x1+1,sy0), (x1+1,y_crossing) + scanline[x1] += stbtt__sized_triangle_area(area, x1+1 - x_top); + + // check if final y_crossing is blown up; no test case for this + if (y_final > y_bottom) { + int denom = (x2 - (x1+1)); + y_final = y_bottom; + if (denom != 0) { // [DEAR IMGUI] Avoid div by zero (https://github.com/nothings/stb/issues/1316) + dy = (y_final - y_crossing ) / denom; // if denom=0, y_final = y_crossing, so y_final <= y_bottom + } + } + + // in second pixel, area covered by line segment found in first pixel + // is always a rectangle 1 wide * the height of that line segment; this + // is exactly what the variable 'area' stores. it also gets a contribution + // from the line segment within it. the THIRD pixel will get the first + // pixel's rectangle contribution, the second pixel's rectangle contribution, + // and its own contribution. the 'own contribution' is the same in every pixel except + // the leftmost and rightmost, a trapezoid that slides down in each pixel. + // the second pixel's contribution to the third pixel will be the + // rectangle 1 wide times the height change in the second pixel, which is dy. + + step = sign * dy * 1; // dy is dy/dx, change in y for every 1 change in x, + // which multiplied by 1-pixel-width is how much pixel area changes for each step in x + // so the area advances by 'step' every time + for (x = x1+1; x < x2; ++x) { - scanline[x] += area + step/2; + scanline[x] += area + step/2; // area of trapezoid is 1*step/2 area += step; } - y_crossing += dy * (x2 - (x1+1)); - - STBTT_assert(STBTT_fabs(area) <= 1.01f); + STBTT_assert(STBTT_fabs(area) <= 1.01f); // accumulated error from area += step unless we round step down + STBTT_assert(sy1 > y_final-0.01f); - scanline[x2] += area + sign * (1-((x2-x2)+(x_bottom-x2))/2) * (sy1-y_crossing); + // area covered in the last pixel is the rectangle from all the pixels to the left, + // plus the trapezoid filled by the line segment in this pixel all the way to the right edge + scanline[x2] += area + sign * stbtt__position_trapezoid_area(sy1-y_final, (float) x2, x2+1.0f, x_bottom, x2+1.0f); + // the rest of the line is filled based on the total height of the line segment in this pixel scanline_fill[x2] += sign * (sy1-sy0); } } else { @@ -3075,6 +3240,9 @@ static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, // clipping logic. since this does not match the intended use // of this library, we use a different, very slow brute // force implementation + // note though that this does happen some of the time because + // x_top and x_bottom can be extrapolated at the top & bottom of + // the shape and actually lie outside the bounding box int x; for (x=0; x < len; ++x) { // cases: @@ -3989,6 +4157,7 @@ static float stbtt__oversample_shift(int oversample) STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) { int i,j,k; + int missing_glyph_added = 0; k=0; for (i=0; i < num_ranges; ++i) { @@ -4000,7 +4169,7 @@ STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stb int x0,y0,x1,y1; int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; int glyph = stbtt_FindGlyphIndex(info, codepoint); - if (glyph == 0 && spc->skip_missing) { + if (glyph == 0 && (spc->skip_missing || missing_glyph_added)) { rects[k].w = rects[k].h = 0; } else { stbtt_GetGlyphBitmapBoxSubpixel(info,glyph, @@ -4010,6 +4179,8 @@ STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stb &x0,&y0,&x1,&y1); rects[k].w = (stbrp_coord) (x1-x0 + spc->padding + spc->h_oversample-1); rects[k].h = (stbrp_coord) (y1-y0 + spc->padding + spc->v_oversample-1); + if (glyph == 0) + missing_glyph_added = 1; } ++k; } @@ -4044,7 +4215,7 @@ STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info // rects array must be big enough to accommodate all characters in the given ranges STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) { - int i,j,k, return_value = 1; + int i,j,k, missing_glyph = -1, return_value = 1; // save current values int old_h_over = spc->h_oversample; @@ -4109,6 +4280,13 @@ STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const bc->yoff = (float) y0 * recip_v + sub_y; bc->xoff2 = (x0 + r->w) * recip_h + sub_x; bc->yoff2 = (y0 + r->h) * recip_v + sub_y; + + if (glyph == 0) + missing_glyph = j; + } else if (spc->skip_missing) { + return_value = 0; + } else if (r->was_packed && r->w == 0 && r->h == 0 && missing_glyph >= 0) { + ranges[i].chardata_for_range[j] = ranges[i].chardata_for_range[missing_glyph]; } else { return_value = 0; // if any fail, report failure } @@ -4132,7 +4310,7 @@ STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) { stbtt_fontinfo info; - int i,j,n, return_value; // [DEAR IMGUI] removed = 1 + int i, j, n, return_value; // [DEAR IMGUI] removed = 1; //stbrp_context *context = (stbrp_context *) spc->pack_info; stbrp_rect *rects; @@ -4301,15 +4479,14 @@ static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex float y_frac; int winding = 0; - orig[0] = x; - //orig[1] = y; // [DEAR IMGUI] commented double assignment - // make sure y never passes through a vertex of the shape y_frac = (float) STBTT_fmod(y, 1.0f); if (y_frac < 0.01f) y += 0.01f; else if (y_frac > 0.99f) y -= 0.01f; + + orig[0] = x; orig[1] = y; // test a ray from (-infinity,y) to (x,y) @@ -4371,35 +4548,35 @@ static float stbtt__cuberoot( float x ) return (float) STBTT_pow( x,1.0f/3.0f); } -// x^3 + c*x^2 + b*x + a = 0 +// x^3 + a*x^2 + b*x + c = 0 static int stbtt__solve_cubic(float a, float b, float c, float* r) { - float s = -a / 3; - float p = b - a*a / 3; - float q = a * (2*a*a - 9*b) / 27 + c; + float s = -a / 3; + float p = b - a*a / 3; + float q = a * (2*a*a - 9*b) / 27 + c; float p3 = p*p*p; - float d = q*q + 4*p3 / 27; - if (d >= 0) { - float z = (float) STBTT_sqrt(d); - float u = (-q + z) / 2; - float v = (-q - z) / 2; - u = stbtt__cuberoot(u); - v = stbtt__cuberoot(v); - r[0] = s + u + v; - return 1; - } else { - float u = (float) STBTT_sqrt(-p/3); - float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative - float m = (float) STBTT_cos(v); + float d = q*q + 4*p3 / 27; + if (d >= 0) { + float z = (float) STBTT_sqrt(d); + float u = (-q + z) / 2; + float v = (-q - z) / 2; + u = stbtt__cuberoot(u); + v = stbtt__cuberoot(v); + r[0] = s + u + v; + return 1; + } else { + float u = (float) STBTT_sqrt(-p/3); + float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative + float m = (float) STBTT_cos(v); float n = (float) STBTT_cos(v-3.141592/2)*1.732050808f; - r[0] = s + u * 2 * m; - r[1] = s - u * (m + n); - r[2] = s - u * (m - n); + r[0] = s + u * 2 * m; + r[1] = s - u * (m + n); + r[2] = s - u * (m - n); //STBTT_assert( STBTT_fabs(((r[0]+a)*r[0]+b)*r[0]+c) < 0.05f); // these asserts may not be safe at all scales, though they're in bezier t parameter units so maybe? //STBTT_assert( STBTT_fabs(((r[1]+a)*r[1]+b)*r[1]+c) < 0.05f); //STBTT_assert( STBTT_fabs(((r[2]+a)*r[2]+b)*r[2]+c) < 0.05f); - return 3; + return 3; } } @@ -4410,12 +4587,7 @@ STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float sc int w,h; unsigned char *data; - // if one scale is 0, use same scale for both - if (scale_x == 0) scale_x = scale_y; - if (scale_y == 0) { - if (scale_x == 0) return NULL; // if both scales are 0, return NULL - scale_y = scale_x; - } + if (scale == 0) return NULL; stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale, scale, 0.0f,0.0f, &ix0,&iy0,&ix1,&iy1); @@ -4481,18 +4653,17 @@ STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float sc for (i=0; i < num_verts; ++i) { float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; - // check against every point here rather than inside line/curve primitives -- @TODO: wrong if multiple 'moves' in a row produce a garbage point, and given culling, probably more efficient to do within line/curve - float dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); - if (dist2 < min_dist*min_dist) - min_dist = (float) STBTT_sqrt(dist2); - - if (verts[i].type == STBTT_vline) { + if (verts[i].type == STBTT_vline && precompute[i] != 0.0f) { float x1 = verts[i-1].x*scale_x, y1 = verts[i-1].y*scale_y; + float dist,dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + // coarse culling against bbox //if (sx > STBTT_min(x0,x1)-min_dist && sx < STBTT_max(x0,x1)+min_dist && // sy > STBTT_min(y0,y1)-min_dist && sy < STBTT_max(y0,y1)+min_dist) - float dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; + dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; STBTT_assert(i != 0); if (dist < min_dist) { // check position along line @@ -4519,7 +4690,8 @@ STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float sc float ax = x1-x0, ay = y1-y0; float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; float mx = x0 - sx, my = y0 - sy; - float res[3],px,py,t,it; + float res[3] = {0.f,0.f,0.f}; + float px,py,t,it,dist2; float a_inv = precompute[i]; if (a_inv == 0.0) { // if a_inv is 0, it's 2nd degree so use quadratic formula float a = 3*(ax*bx + ay*by); @@ -4546,6 +4718,10 @@ STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float sc float d = (mx*ax+my*ay) * a_inv; num = stbtt__solve_cubic(b, c, d, res); } + dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + if (num >= 1 && res[0] >= 0.0f && res[0] <= 1.0f) { t = res[0], it = 1.0f - t; px = it*it*x0 + 2*t*it*x1 + t*t*x2; @@ -4805,6 +4981,12 @@ STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const // FULL VERSION HISTORY // +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() // 1.19 (2018-02-11) OpenType GPOS kerning (horizontal only), STBTT_fmod // 1.18 (2018-01-29) add missing function // 1.17 (2017-07-23) make more arguments const; doc fix diff --git a/imgui-sys/third-party/imgui-docking/imgui/misc/freetype/README.md b/imgui-sys/third-party/imgui-docking/imgui/misc/freetype/README.md index f7d7bab71..5fcfc2d79 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/misc/freetype/README.md +++ b/imgui-sys/third-party/imgui-docking/imgui/misc/freetype/README.md @@ -26,12 +26,12 @@ See https://gist.github.com/ocornut/b3a9ecf13502fd818799a452969649ad ### Comparaison -Small, thin anti-aliased fonts are typically benefiting a lots from Freetype's hinting: +Small, thin anti-aliased fonts typically benefit a lot from FreeType's hinting: ![comparing_font_rasterizers](https://user-images.githubusercontent.com/8225057/107550178-fef87f00-6bd0-11eb-8d09-e2edb2f0ccfc.gif) ### Colorful glyphs/emojis -You can use the `ImGuiFreeTypeBuilderFlags_LoadColor` flag to load certain colorful glyphs. See -["Using Colorful Glyphs/Emojis"](https://github.com/ocornut/imgui/edit/master/docs/FONTS.md#using-colorful-glyphsemojis) section of FONTS.md. +You can use the `ImGuiFreeTypeBuilderFlags_LoadColor` flag to load certain colorful glyphs. See the +["Using Colorful Glyphs/Emojis"](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md#using-colorful-glyphsemojis) section of FONTS.md. ![colored glyphs](https://user-images.githubusercontent.com/8225057/106171241-9dc4ba80-6191-11eb-8a69-ca1467b206d1.png) diff --git a/imgui-sys/third-party/imgui-docking/imgui/misc/freetype/imgui_freetype.cpp b/imgui-sys/third-party/imgui-docking/imgui/misc/freetype/imgui_freetype.cpp index a72ec8c83..03255326b 100644 --- a/imgui-sys/third-party/imgui-docking/imgui/misc/freetype/imgui_freetype.cpp +++ b/imgui-sys/third-party/imgui-docking/imgui/misc/freetype/imgui_freetype.cpp @@ -368,7 +368,7 @@ struct ImFontBuildSrcGlyphFT uint32_t Codepoint; unsigned int* BitmapData; // Point within one of the dst_tmp_bitmap_buffers[] array - ImFontBuildSrcGlyphFT() { memset(this, 0, sizeof(*this)); } + ImFontBuildSrcGlyphFT() { memset((void*)this, 0, sizeof(*this)); } }; struct ImFontBuildSrcDataFT @@ -508,7 +508,7 @@ bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, u // Allocate temporary rasterization data buffers. // We could not find a way to retrieve accurate glyph size without rendering them. // (e.g. slot->metrics->width not always matching bitmap->width, especially considering the Oblique transform) - // We allocate in chunks of 256 KB to not waste too much extra memory ahead. Hopefully users of FreeType won't find the temporary allocations. + // We allocate in chunks of 256 KB to not waste too much extra memory ahead. Hopefully users of FreeType won't mind the temporary allocations. const int BITMAP_BUFFERS_CHUNK_SIZE = 256 * 1024; int buf_bitmap_current_used_bytes = 0; ImVector buf_bitmap_buffers; @@ -556,6 +556,7 @@ bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, u buf_bitmap_current_used_bytes = 0; buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); } + IM_ASSERT(buf_bitmap_current_used_bytes + bitmap_size_in_bytes <= BITMAP_BUFFERS_CHUNK_SIZE); // We could probably allocate custom-sized buffer instead. // Blit rasterized pixels to our temporary buffer and keep a pointer to it. src_glyph.BitmapData = (unsigned int*)(buf_bitmap_buffers.back() + buf_bitmap_current_used_bytes); diff --git a/imgui-sys/third-party/imgui-docking/impl_definitions.json b/imgui-sys/third-party/imgui-docking/impl_definitions.json index 0637a088a..b64b6d173 100644 --- a/imgui-sys/third-party/imgui-docking/impl_definitions.json +++ b/imgui-sys/third-party/imgui-docking/impl_definitions.json @@ -1 +1,818 @@ -[] \ No newline at end of file +{ + "ImGui_ImplGlfw_CharCallback": [ + { + "args": "(GLFWwindow* window,unsigned int c)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "c", + "type": "unsigned int" + } + ], + "argsoriginal": "(GLFWwindow* window,unsigned int c)", + "call_args": "(window,c)", + "cimguiname": "ImGui_ImplGlfw_CharCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CharCallback", + "location": "imgui_impl_glfw:46", + "ov_cimguiname": "ImGui_ImplGlfw_CharCallback", + "ret": "void", + "signature": "(GLFWwindow*,unsigned int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_CursorEnterCallback": [ + { + "args": "(GLFWwindow* window,int entered)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "entered", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int entered)", + "call_args": "(window,entered)", + "cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CursorEnterCallback", + "location": "imgui_impl_glfw:41", + "ov_cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", + "ret": "void", + "signature": "(GLFWwindow*,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_CursorPosCallback": [ + { + "args": "(GLFWwindow* window,double x,double y)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "x", + "type": "double" + }, + { + "name": "y", + "type": "double" + } + ], + "argsoriginal": "(GLFWwindow* window,double x,double y)", + "call_args": "(window,x,y)", + "cimguiname": "ImGui_ImplGlfw_CursorPosCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CursorPosCallback", + "location": "imgui_impl_glfw:42", + "ov_cimguiname": "ImGui_ImplGlfw_CursorPosCallback", + "ret": "void", + "signature": "(GLFWwindow*,double,double)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForOpenGL": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForOpenGL", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForOpenGL", + "location": "imgui_impl_glfw:27", + "ov_cimguiname": "ImGui_ImplGlfw_InitForOpenGL", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForOther": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForOther", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForOther", + "location": "imgui_impl_glfw:29", + "ov_cimguiname": "ImGui_ImplGlfw_InitForOther", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForVulkan": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForVulkan", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForVulkan", + "location": "imgui_impl_glfw:28", + "ov_cimguiname": "ImGui_ImplGlfw_InitForVulkan", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InstallCallbacks": [ + { + "args": "(GLFWwindow* window)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + } + ], + "argsoriginal": "(GLFWwindow* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplGlfw_InstallCallbacks", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InstallCallbacks", + "location": "imgui_impl_glfw:36", + "ov_cimguiname": "ImGui_ImplGlfw_InstallCallbacks", + "ret": "void", + "signature": "(GLFWwindow*)", + "stname": "" + } + ], + "ImGui_ImplGlfw_KeyCallback": [ + { + "args": "(GLFWwindow* window,int key,int scancode,int action,int mods)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "key", + "type": "int" + }, + { + "name": "scancode", + "type": "int" + }, + { + "name": "action", + "type": "int" + }, + { + "name": "mods", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int key,int scancode,int action,int mods)", + "call_args": "(window,key,scancode,action,mods)", + "cimguiname": "ImGui_ImplGlfw_KeyCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_KeyCallback", + "location": "imgui_impl_glfw:45", + "ov_cimguiname": "ImGui_ImplGlfw_KeyCallback", + "ret": "void", + "signature": "(GLFWwindow*,int,int,int,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_MonitorCallback": [ + { + "args": "(GLFWmonitor* monitor,int event)", + "argsT": [ + { + "name": "monitor", + "type": "GLFWmonitor*" + }, + { + "name": "event", + "type": "int" + } + ], + "argsoriginal": "(GLFWmonitor* monitor,int event)", + "call_args": "(monitor,event)", + "cimguiname": "ImGui_ImplGlfw_MonitorCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_MonitorCallback", + "location": "imgui_impl_glfw:47", + "ov_cimguiname": "ImGui_ImplGlfw_MonitorCallback", + "ret": "void", + "signature": "(GLFWmonitor*,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_MouseButtonCallback": [ + { + "args": "(GLFWwindow* window,int button,int action,int mods)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "button", + "type": "int" + }, + { + "name": "action", + "type": "int" + }, + { + "name": "mods", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int button,int action,int mods)", + "call_args": "(window,button,action,mods)", + "cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_MouseButtonCallback", + "location": "imgui_impl_glfw:43", + "ov_cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", + "ret": "void", + "signature": "(GLFWwindow*,int,int,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplGlfw_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_NewFrame", + "location": "imgui_impl_glfw:31", + "ov_cimguiname": "ImGui_ImplGlfw_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplGlfw_RestoreCallbacks": [ + { + "args": "(GLFWwindow* window)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + } + ], + "argsoriginal": "(GLFWwindow* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_RestoreCallbacks", + "location": "imgui_impl_glfw:37", + "ov_cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", + "ret": "void", + "signature": "(GLFWwindow*)", + "stname": "" + } + ], + "ImGui_ImplGlfw_ScrollCallback": [ + { + "args": "(GLFWwindow* window,double xoffset,double yoffset)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "xoffset", + "type": "double" + }, + { + "name": "yoffset", + "type": "double" + } + ], + "argsoriginal": "(GLFWwindow* window,double xoffset,double yoffset)", + "call_args": "(window,xoffset,yoffset)", + "cimguiname": "ImGui_ImplGlfw_ScrollCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_ScrollCallback", + "location": "imgui_impl_glfw:44", + "ov_cimguiname": "ImGui_ImplGlfw_ScrollCallback", + "ret": "void", + "signature": "(GLFWwindow*,double,double)", + "stname": "" + } + ], + "ImGui_ImplGlfw_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplGlfw_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_Shutdown", + "location": "imgui_impl_glfw:30", + "ov_cimguiname": "ImGui_ImplGlfw_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplGlfw_WindowFocusCallback": [ + { + "args": "(GLFWwindow* window,int focused)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "focused", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int focused)", + "call_args": "(window,focused)", + "cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_WindowFocusCallback", + "location": "imgui_impl_glfw:40", + "ov_cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", + "ret": "void", + "signature": "(GLFWwindow*,int)", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_CreateDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "location": "imgui_impl_opengl2:32", + "ov_cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_CreateFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "location": "imgui_impl_opengl2:30", + "ov_cimguiname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_DestroyDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "location": "imgui_impl_opengl2:33", + "ov_cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_DestroyFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "location": "imgui_impl_opengl2:31", + "ov_cimguiname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_Init": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_Init", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_Init", + "location": "imgui_impl_opengl2:24", + "ov_cimguiname": "ImGui_ImplOpenGL2_Init", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_NewFrame", + "location": "imgui_impl_opengl2:26", + "ov_cimguiname": "ImGui_ImplOpenGL2_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_RenderDrawData": [ + { + "args": "(ImDrawData* draw_data)", + "argsT": [ + { + "name": "draw_data", + "type": "ImDrawData*" + } + ], + "argsoriginal": "(ImDrawData* draw_data)", + "call_args": "(draw_data)", + "cimguiname": "ImGui_ImplOpenGL2_RenderDrawData", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_RenderDrawData", + "location": "imgui_impl_opengl2:27", + "ov_cimguiname": "ImGui_ImplOpenGL2_RenderDrawData", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_Shutdown", + "location": "imgui_impl_opengl2:25", + "ov_cimguiname": "ImGui_ImplOpenGL2_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_CreateDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "location": "imgui_impl_opengl3:33", + "ov_cimguiname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_CreateFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "location": "imgui_impl_opengl3:31", + "ov_cimguiname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_DestroyDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "location": "imgui_impl_opengl3:34", + "ov_cimguiname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_DestroyFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "location": "imgui_impl_opengl3:32", + "ov_cimguiname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_Init": [ + { + "args": "(const char* glsl_version)", + "argsT": [ + { + "name": "glsl_version", + "type": "const char*" + } + ], + "argsoriginal": "(const char* glsl_version=nullptr)", + "call_args": "(glsl_version)", + "cimguiname": "ImGui_ImplOpenGL3_Init", + "defaults": { + "glsl_version": "nullptr" + }, + "funcname": "ImGui_ImplOpenGL3_Init", + "location": "imgui_impl_opengl3:25", + "ov_cimguiname": "ImGui_ImplOpenGL3_Init", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_NewFrame", + "location": "imgui_impl_opengl3:27", + "ov_cimguiname": "ImGui_ImplOpenGL3_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_RenderDrawData": [ + { + "args": "(ImDrawData* draw_data)", + "argsT": [ + { + "name": "draw_data", + "type": "ImDrawData*" + } + ], + "argsoriginal": "(ImDrawData* draw_data)", + "call_args": "(draw_data)", + "cimguiname": "ImGui_ImplOpenGL3_RenderDrawData", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_RenderDrawData", + "location": "imgui_impl_opengl3:28", + "ov_cimguiname": "ImGui_ImplOpenGL3_RenderDrawData", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_Shutdown", + "location": "imgui_impl_opengl3:26", + "ov_cimguiname": "ImGui_ImplOpenGL3_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForD3D": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForD3D", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForD3D", + "location": "imgui_impl_sdl:29", + "ov_cimguiname": "ImGui_ImplSDL2_InitForD3D", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForMetal": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForMetal", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForMetal", + "location": "imgui_impl_sdl:30", + "ov_cimguiname": "ImGui_ImplSDL2_InitForMetal", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForOpenGL": [ + { + "args": "(SDL_Window* window,void* sdl_gl_context)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + }, + { + "name": "sdl_gl_context", + "type": "void*" + } + ], + "argsoriginal": "(SDL_Window* window,void* sdl_gl_context)", + "call_args": "(window,sdl_gl_context)", + "cimguiname": "ImGui_ImplSDL2_InitForOpenGL", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForOpenGL", + "location": "imgui_impl_sdl:27", + "ov_cimguiname": "ImGui_ImplSDL2_InitForOpenGL", + "ret": "bool", + "signature": "(SDL_Window*,void*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForSDLRenderer": [ + { + "args": "(SDL_Window* window,SDL_Renderer* renderer)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + }, + { + "name": "renderer", + "type": "SDL_Renderer*" + } + ], + "argsoriginal": "(SDL_Window* window,SDL_Renderer* renderer)", + "call_args": "(window,renderer)", + "cimguiname": "ImGui_ImplSDL2_InitForSDLRenderer", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForSDLRenderer", + "location": "imgui_impl_sdl:31", + "ov_cimguiname": "ImGui_ImplSDL2_InitForSDLRenderer", + "ret": "bool", + "signature": "(SDL_Window*,SDL_Renderer*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForVulkan": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForVulkan", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForVulkan", + "location": "imgui_impl_sdl:28", + "ov_cimguiname": "ImGui_ImplSDL2_InitForVulkan", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplSDL2_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_NewFrame", + "location": "imgui_impl_sdl:33", + "ov_cimguiname": "ImGui_ImplSDL2_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplSDL2_ProcessEvent": [ + { + "args": "(const SDL_Event* event)", + "argsT": [ + { + "name": "event", + "type": "const SDL_Event*" + } + ], + "argsoriginal": "(const SDL_Event* event)", + "call_args": "(event)", + "cimguiname": "ImGui_ImplSDL2_ProcessEvent", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_ProcessEvent", + "location": "imgui_impl_sdl:34", + "ov_cimguiname": "ImGui_ImplSDL2_ProcessEvent", + "ret": "bool", + "signature": "(const SDL_Event*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplSDL2_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_Shutdown", + "location": "imgui_impl_sdl:32", + "ov_cimguiname": "ImGui_ImplSDL2_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ] +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking/impl_definitions.lua b/imgui-sys/third-party/imgui-docking/impl_definitions.lua index 45b23e0cb..e5c6fecbd 100644 --- a/imgui-sys/third-party/imgui-docking/impl_definitions.lua +++ b/imgui-sys/third-party/imgui-docking/impl_definitions.lua @@ -1,3 +1,715 @@ local defs = {} +defs["ImGui_ImplGlfw_CharCallback"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["args"] = "(GLFWwindow* window,unsigned int c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["name"] = "c" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["type"] = "unsigned int" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsoriginal"] = "(GLFWwindow* window,unsigned int c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["call_args"] = "(window,c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["funcname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["location"] = "imgui_impl_glfw:46" +defs["ImGui_ImplGlfw_CharCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CharCallback"][1]["signature"] = "(GLFWwindow*,unsigned int)" +defs["ImGui_ImplGlfw_CharCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CharCallback"]["(GLFWwindow*,unsigned int)"] = defs["ImGui_ImplGlfw_CharCallback"][1] +defs["ImGui_ImplGlfw_CursorEnterCallback"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["args"] = "(GLFWwindow* window,int entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2]["name"] = "entered" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["call_args"] = "(window,entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["funcname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["location"] = "imgui_impl_glfw:41" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["signature"] = "(GLFWwindow*,int)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CursorEnterCallback"]["(GLFWwindow*,int)"] = defs["ImGui_ImplGlfw_CursorEnterCallback"][1] +defs["ImGui_ImplGlfw_CursorPosCallback"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["args"] = "(GLFWwindow* window,double x,double y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2]["name"] = "x" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2]["type"] = "double" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3]["name"] = "y" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3]["type"] = "double" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsoriginal"] = "(GLFWwindow* window,double x,double y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["call_args"] = "(window,x,y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["funcname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["location"] = "imgui_impl_glfw:42" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["signature"] = "(GLFWwindow*,double,double)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CursorPosCallback"]["(GLFWwindow*,double,double)"] = defs["ImGui_ImplGlfw_CursorPosCallback"][1] +defs["ImGui_ImplGlfw_InitForOpenGL"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["funcname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["location"] = "imgui_impl_glfw:27" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForOpenGL"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOpenGL"][1] +defs["ImGui_ImplGlfw_InitForOther"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["funcname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["location"] = "imgui_impl_glfw:29" +defs["ImGui_ImplGlfw_InitForOther"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForOther"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForOther"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForOther"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOther"][1] +defs["ImGui_ImplGlfw_InitForVulkan"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["funcname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["location"] = "imgui_impl_glfw:28" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForVulkan"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForVulkan"][1] +defs["ImGui_ImplGlfw_InstallCallbacks"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["args"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsoriginal"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["call_args"] = "(window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["cimguiname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["funcname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["location"] = "imgui_impl_glfw:36" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["signature"] = "(GLFWwindow*)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InstallCallbacks"]["(GLFWwindow*)"] = defs["ImGui_ImplGlfw_InstallCallbacks"][1] +defs["ImGui_ImplGlfw_KeyCallback"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["args"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["name"] = "key" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["name"] = "scancode" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["name"] = "action" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["name"] = "mods" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["call_args"] = "(window,key,scancode,action,mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["funcname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["location"] = "imgui_impl_glfw:45" +defs["ImGui_ImplGlfw_KeyCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_KeyCallback"][1]["signature"] = "(GLFWwindow*,int,int,int,int)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_KeyCallback"]["(GLFWwindow*,int,int,int,int)"] = defs["ImGui_ImplGlfw_KeyCallback"][1] +defs["ImGui_ImplGlfw_MonitorCallback"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["args"] = "(GLFWmonitor* monitor,int event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1]["name"] = "monitor" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1]["type"] = "GLFWmonitor*" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2]["name"] = "event" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsoriginal"] = "(GLFWmonitor* monitor,int event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["call_args"] = "(monitor,event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["funcname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["location"] = "imgui_impl_glfw:47" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["signature"] = "(GLFWmonitor*,int)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_MonitorCallback"]["(GLFWmonitor*,int)"] = defs["ImGui_ImplGlfw_MonitorCallback"][1] +defs["ImGui_ImplGlfw_MouseButtonCallback"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["args"] = "(GLFWwindow* window,int button,int action,int mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["name"] = "button" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["name"] = "action" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["name"] = "mods" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int button,int action,int mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["call_args"] = "(window,button,action,mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["funcname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["location"] = "imgui_impl_glfw:43" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["signature"] = "(GLFWwindow*,int,int,int)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_MouseButtonCallback"]["(GLFWwindow*,int,int,int)"] = defs["ImGui_ImplGlfw_MouseButtonCallback"][1] +defs["ImGui_ImplGlfw_NewFrame"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["cimguiname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["funcname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["location"] = "imgui_impl_glfw:31" +defs["ImGui_ImplGlfw_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplGlfw_NewFrame"]["()"] = defs["ImGui_ImplGlfw_NewFrame"][1] +defs["ImGui_ImplGlfw_RestoreCallbacks"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["args"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsoriginal"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["call_args"] = "(window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["cimguiname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["funcname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["location"] = "imgui_impl_glfw:37" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["signature"] = "(GLFWwindow*)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["stname"] = "" +defs["ImGui_ImplGlfw_RestoreCallbacks"]["(GLFWwindow*)"] = defs["ImGui_ImplGlfw_RestoreCallbacks"][1] +defs["ImGui_ImplGlfw_ScrollCallback"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["args"] = "(GLFWwindow* window,double xoffset,double yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["name"] = "xoffset" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["type"] = "double" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["name"] = "yoffset" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["type"] = "double" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsoriginal"] = "(GLFWwindow* window,double xoffset,double yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["call_args"] = "(window,xoffset,yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["funcname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["location"] = "imgui_impl_glfw:44" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["signature"] = "(GLFWwindow*,double,double)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_ScrollCallback"]["(GLFWwindow*,double,double)"] = defs["ImGui_ImplGlfw_ScrollCallback"][1] +defs["ImGui_ImplGlfw_Shutdown"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["cimguiname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["funcname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["location"] = "imgui_impl_glfw:30" +defs["ImGui_ImplGlfw_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplGlfw_Shutdown"]["()"] = defs["ImGui_ImplGlfw_Shutdown"][1] +defs["ImGui_ImplGlfw_WindowFocusCallback"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["args"] = "(GLFWwindow* window,int focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2]["name"] = "focused" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["call_args"] = "(window,focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["funcname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["location"] = "imgui_impl_glfw:40" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["signature"] = "(GLFWwindow*,int)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_WindowFocusCallback"]["(GLFWwindow*,int)"] = defs["ImGui_ImplGlfw_WindowFocusCallback"][1] +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl2:32" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1] +defs["ImGui_ImplOpenGL2_CreateFontsTexture"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl2:30" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"]["()"] = defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1] +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl2:33" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1] +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl2:31" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"]["()"] = defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1] +defs["ImGui_ImplOpenGL2_Init"] = {} +defs["ImGui_ImplOpenGL2_Init"][1] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["cimguiname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["funcname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["location"] = "imgui_impl_opengl2:24" +defs["ImGui_ImplOpenGL2_Init"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_Init"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_Init"]["()"] = defs["ImGui_ImplOpenGL2_Init"][1] +defs["ImGui_ImplOpenGL2_NewFrame"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["cimguiname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["location"] = "imgui_impl_opengl2:26" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_NewFrame"]["()"] = defs["ImGui_ImplOpenGL2_NewFrame"][1] +defs["ImGui_ImplOpenGL2_RenderDrawData"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["call_args"] = "(draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["cimguiname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["location"] = "imgui_impl_opengl2:27" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["signature"] = "(ImDrawData*)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_RenderDrawData"]["(ImDrawData*)"] = defs["ImGui_ImplOpenGL2_RenderDrawData"][1] +defs["ImGui_ImplOpenGL2_Shutdown"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["cimguiname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["location"] = "imgui_impl_opengl2:25" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_Shutdown"]["()"] = defs["ImGui_ImplOpenGL2_Shutdown"][1] +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl3:33" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1] +defs["ImGui_ImplOpenGL3_CreateFontsTexture"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl3:31" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"]["()"] = defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1] +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl3:34" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1] +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl3:32" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"]["()"] = defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1] +defs["ImGui_ImplOpenGL3_Init"] = {} +defs["ImGui_ImplOpenGL3_Init"][1] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["args"] = "(const char* glsl_version)" +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["name"] = "glsl_version" +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["type"] = "const char*" +defs["ImGui_ImplOpenGL3_Init"][1]["argsoriginal"] = "(const char* glsl_version=nullptr)" +defs["ImGui_ImplOpenGL3_Init"][1]["call_args"] = "(glsl_version)" +defs["ImGui_ImplOpenGL3_Init"][1]["cimguiname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["defaults"]["glsl_version"] = "nullptr" +defs["ImGui_ImplOpenGL3_Init"][1]["funcname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["location"] = "imgui_impl_opengl3:25" +defs["ImGui_ImplOpenGL3_Init"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_Init"][1]["signature"] = "(const char*)" +defs["ImGui_ImplOpenGL3_Init"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_Init"]["(const char*)"] = defs["ImGui_ImplOpenGL3_Init"][1] +defs["ImGui_ImplOpenGL3_NewFrame"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["cimguiname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["location"] = "imgui_impl_opengl3:27" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_NewFrame"]["()"] = defs["ImGui_ImplOpenGL3_NewFrame"][1] +defs["ImGui_ImplOpenGL3_RenderDrawData"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["call_args"] = "(draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["cimguiname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["location"] = "imgui_impl_opengl3:28" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["signature"] = "(ImDrawData*)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_RenderDrawData"]["(ImDrawData*)"] = defs["ImGui_ImplOpenGL3_RenderDrawData"][1] +defs["ImGui_ImplOpenGL3_Shutdown"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["cimguiname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["location"] = "imgui_impl_opengl3:26" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_Shutdown"]["()"] = defs["ImGui_ImplOpenGL3_Shutdown"][1] +defs["ImGui_ImplSDL2_InitForD3D"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["funcname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["location"] = "imgui_impl_sdl:29" +defs["ImGui_ImplSDL2_InitForD3D"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForD3D"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForD3D"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForD3D"][1] +defs["ImGui_ImplSDL2_InitForMetal"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["funcname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["location"] = "imgui_impl_sdl:30" +defs["ImGui_ImplSDL2_InitForMetal"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForMetal"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForMetal"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForMetal"][1] +defs["ImGui_ImplSDL2_InitForOpenGL"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["args"] = "(SDL_Window* window,void* sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["name"] = "sdl_gl_context" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["type"] = "void*" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsoriginal"] = "(SDL_Window* window,void* sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["call_args"] = "(window,sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["funcname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["location"] = "imgui_impl_sdl:27" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["signature"] = "(SDL_Window*,void*)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForOpenGL"]["(SDL_Window*,void*)"] = defs["ImGui_ImplSDL2_InitForOpenGL"][1] +defs["ImGui_ImplSDL2_InitForSDLRenderer"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["args"] = "(SDL_Window* window,SDL_Renderer* renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2]["name"] = "renderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2]["type"] = "SDL_Renderer*" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsoriginal"] = "(SDL_Window* window,SDL_Renderer* renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["call_args"] = "(window,renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["funcname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["location"] = "imgui_impl_sdl:31" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["signature"] = "(SDL_Window*,SDL_Renderer*)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForSDLRenderer"]["(SDL_Window*,SDL_Renderer*)"] = defs["ImGui_ImplSDL2_InitForSDLRenderer"][1] +defs["ImGui_ImplSDL2_InitForVulkan"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["funcname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["location"] = "imgui_impl_sdl:28" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForVulkan"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForVulkan"][1] +defs["ImGui_ImplSDL2_NewFrame"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["cimguiname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["funcname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["location"] = "imgui_impl_sdl:33" +defs["ImGui_ImplSDL2_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplSDL2_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplSDL2_NewFrame"]["()"] = defs["ImGui_ImplSDL2_NewFrame"][1] +defs["ImGui_ImplSDL2_ProcessEvent"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["args"] = "(const SDL_Event* event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["name"] = "event" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["type"] = "const SDL_Event*" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsoriginal"] = "(const SDL_Event* event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["call_args"] = "(event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["cimguiname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["funcname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["location"] = "imgui_impl_sdl:34" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["signature"] = "(const SDL_Event*)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["stname"] = "" +defs["ImGui_ImplSDL2_ProcessEvent"]["(const SDL_Event*)"] = defs["ImGui_ImplSDL2_ProcessEvent"][1] +defs["ImGui_ImplSDL2_Shutdown"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["cimguiname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["funcname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["location"] = "imgui_impl_sdl:32" +defs["ImGui_ImplSDL2_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplSDL2_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplSDL2_Shutdown"]["()"] = defs["ImGui_ImplSDL2_Shutdown"][1] return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking/overloads.txt b/imgui-sys/third-party/imgui-docking/overloads.txt index 6d3e3315e..6b78943a0 100644 --- a/imgui-sys/third-party/imgui-docking/overloads.txt +++ b/imgui-sys/third-party/imgui-docking/overloads.txt @@ -1,258 +1,278 @@ ----------------overloadings--------------------------- ImColor_ImColor 5 -1 nil ImColor_ImColorNil () -2 nil ImColor_ImColorInt (int,int,int,int) -3 nil ImColor_ImColorU32 (ImU32) -4 nil ImColor_ImColorFloat (float,float,float,float) -5 nil ImColor_ImColorVec4 (const ImVec4) +1 nil ImColor_ImColor_Nil () +2 nil ImColor_ImColor_Float (float,float,float,float) +3 nil ImColor_ImColor_Vec4 (const ImVec4) +4 nil ImColor_ImColor_Int (int,int,int,int) +5 nil ImColor_ImColor_U32 (ImU32) ImDrawList_AddText 2 -1 void ImDrawList_AddTextVec2 (const ImVec2,ImU32,const char*,const char*) -2 void ImDrawList_AddTextFontPtr (const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*) +1 void ImDrawList_AddText_Vec2 (const ImVec2,ImU32,const char*,const char*) +2 void ImDrawList_AddText_FontPtr (const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*) ImGuiPtrOrIndex_ImGuiPtrOrIndex 2 -1 nil ImGuiPtrOrIndex_ImGuiPtrOrIndexPtr (void*) -2 nil ImGuiPtrOrIndex_ImGuiPtrOrIndexInt (int) +1 nil ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr (void*) +2 nil ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int (int) ImGuiStoragePair_ImGuiStoragePair 3 -1 nil ImGuiStoragePair_ImGuiStoragePairInt (ImGuiID,int) -2 nil ImGuiStoragePair_ImGuiStoragePairFloat (ImGuiID,float) -3 nil ImGuiStoragePair_ImGuiStoragePairPtr (ImGuiID,void*) +1 nil ImGuiStoragePair_ImGuiStoragePair_Int (ImGuiID,int) +2 nil ImGuiStoragePair_ImGuiStoragePair_Float (ImGuiID,float) +3 nil ImGuiStoragePair_ImGuiStoragePair_Ptr (ImGuiID,void*) ImGuiStyleMod_ImGuiStyleMod 3 -1 nil ImGuiStyleMod_ImGuiStyleModInt (ImGuiStyleVar,int) -2 nil ImGuiStyleMod_ImGuiStyleModFloat (ImGuiStyleVar,float) -3 nil ImGuiStyleMod_ImGuiStyleModVec2 (ImGuiStyleVar,ImVec2) +1 nil ImGuiStyleMod_ImGuiStyleMod_Int (ImGuiStyleVar,int) +2 nil ImGuiStyleMod_ImGuiStyleMod_Float (ImGuiStyleVar,float) +3 nil ImGuiStyleMod_ImGuiStyleMod_Vec2 (ImGuiStyleVar,ImVec2) ImGuiTextRange_ImGuiTextRange 2 -1 nil ImGuiTextRange_ImGuiTextRangeNil () -2 nil ImGuiTextRange_ImGuiTextRangeStr (const char*,const char*) +1 nil ImGuiTextRange_ImGuiTextRange_Nil () +2 nil ImGuiTextRange_ImGuiTextRange_Str (const char*,const char*) ImGuiWindow_GetID 3 -1 ImGuiID ImGuiWindow_GetIDStr (const char*,const char*) -2 ImGuiID ImGuiWindow_GetIDPtr (const void*) -3 ImGuiID ImGuiWindow_GetIDInt (int) -ImGuiWindow_GetIDNoKeepAlive 3 -1 ImGuiID ImGuiWindow_GetIDNoKeepAliveStr (const char*,const char*) -2 ImGuiID ImGuiWindow_GetIDNoKeepAlivePtr (const void*) -3 ImGuiID ImGuiWindow_GetIDNoKeepAliveInt (int) +1 ImGuiID ImGuiWindow_GetID_Str (const char*,const char*) +2 ImGuiID ImGuiWindow_GetID_Ptr (const void*) +3 ImGuiID ImGuiWindow_GetID_Int (int) ImPool_Remove 2 -1 void ImPool_RemoveTPtr (ImGuiID,const T*) -2 void ImPool_RemovePoolIdx (ImGuiID,ImPoolIdx) +1 void ImPool_Remove_TPtr (ImGuiID,const T*) +2 void ImPool_Remove_PoolIdx (ImGuiID,ImPoolIdx) ImRect_Add 2 -1 void ImRect_AddVec2 (const ImVec2) -2 void ImRect_AddRect (const ImRect) +1 void ImRect_Add_Vec2 (const ImVec2) +2 void ImRect_Add_Rect (const ImRect) ImRect_Contains 2 -1 bool ImRect_ContainsVec2 (const ImVec2)const -2 bool ImRect_ContainsRect (const ImRect)const +1 bool ImRect_Contains_Vec2 (const ImVec2)const +2 bool ImRect_Contains_Rect (const ImRect)const ImRect_Expand 2 -1 void ImRect_ExpandFloat (const float) -2 void ImRect_ExpandVec2 (const ImVec2) +1 void ImRect_Expand_Float (const float) +2 void ImRect_Expand_Vec2 (const ImVec2) ImRect_ImRect 4 -1 nil ImRect_ImRectNil () -2 nil ImRect_ImRectVec2 (const ImVec2,const ImVec2) -3 nil ImRect_ImRectVec4 (const ImVec4) -4 nil ImRect_ImRectFloat (float,float,float,float) +1 nil ImRect_ImRect_Nil () +2 nil ImRect_ImRect_Vec2 (const ImVec2,const ImVec2) +3 nil ImRect_ImRect_Vec4 (const ImVec4) +4 nil ImRect_ImRect_Float (float,float,float,float) ImSpan_ImSpan 3 -1 nil ImSpan_ImSpanNil () -2 nil ImSpan_ImSpanTPtrInt (T*,int) -3 nil ImSpan_ImSpanTPtrTPtr (T*,T*) +1 nil ImSpan_ImSpan_Nil () +2 nil ImSpan_ImSpan_TPtrInt (T*,int) +3 nil ImSpan_ImSpan_TPtrTPtr (T*,T*) ImSpan_begin 2 -1 T* ImSpan_beginNil () -2 const T* ImSpan_begin_const ()const +1 T* ImSpan_begin_Nil () +2 const T* ImSpan_begin__const ()const ImSpan_end 2 -1 T* ImSpan_endNil () -2 const T* ImSpan_end_const ()const +1 T* ImSpan_end_Nil () +2 const T* ImSpan_end__const ()const ImSpan_set 2 -1 void ImSpan_setInt (T*,int) -2 void ImSpan_setTPtr (T*,T*) +1 void ImSpan_set_Int (T*,int) +2 void ImSpan_set_TPtr (T*,T*) ImVec1_ImVec1 2 -1 nil ImVec1_ImVec1Nil () -2 nil ImVec1_ImVec1Float (float) +1 nil ImVec1_ImVec1_Nil () +2 nil ImVec1_ImVec1_Float (float) ImVec2_ImVec2 2 -1 nil ImVec2_ImVec2Nil () -2 nil ImVec2_ImVec2Float (float,float) +1 nil ImVec2_ImVec2_Nil () +2 nil ImVec2_ImVec2_Float (float,float) ImVec2ih_ImVec2ih 3 -1 nil ImVec2ih_ImVec2ihNil () -2 nil ImVec2ih_ImVec2ihshort (short,short) -3 nil ImVec2ih_ImVec2ihVec2 (const ImVec2) +1 nil ImVec2ih_ImVec2ih_Nil () +2 nil ImVec2ih_ImVec2ih_short (short,short) +3 nil ImVec2ih_ImVec2ih_Vec2 (const ImVec2) ImVec4_ImVec4 2 -1 nil ImVec4_ImVec4Nil () -2 nil ImVec4_ImVec4Float (float,float,float,float) +1 nil ImVec4_ImVec4_Nil () +2 nil ImVec4_ImVec4_Float (float,float,float,float) ImVector_ImVector 2 -1 nil ImVector_ImVectorNil () -2 nil ImVector_ImVectorVector (const ImVector) +1 nil ImVector_ImVector_Nil () +2 nil ImVector_ImVector_Vector_T_ (const ImVector_T ) ImVector_back 2 -1 T* ImVector_backNil () -2 const T* ImVector_back_const ()const +1 T* ImVector_back_Nil () +2 const T* ImVector_back__const ()const ImVector_begin 2 -1 T* ImVector_beginNil () -2 const T* ImVector_begin_const ()const +1 T* ImVector_begin_Nil () +2 const T* ImVector_begin__const ()const ImVector_end 2 -1 T* ImVector_endNil () -2 const T* ImVector_end_const ()const +1 T* ImVector_end_Nil () +2 const T* ImVector_end__const ()const ImVector_erase 2 -1 T* ImVector_eraseNil (const T*) -2 T* ImVector_eraseTPtr (const T*,const T*) +1 T* ImVector_erase_Nil (const T*) +2 T* ImVector_erase_TPtr (const T*,const T*) ImVector_find 2 -1 T* ImVector_findNil (const T) -2 const T* ImVector_find_const (const T)const +1 T* ImVector_find_Nil (const T) +2 const T* ImVector_find__const (const T)const ImVector_front 2 -1 T* ImVector_frontNil () -2 const T* ImVector_front_const ()const +1 T* ImVector_front_Nil () +2 const T* ImVector_front__const ()const ImVector_resize 2 -1 void ImVector_resizeNil (int) -2 void ImVector_resizeT (int,const T) +1 void ImVector_resize_Nil (int) +2 void ImVector_resize_T (int,const T) igBeginChild 2 -1 bool igBeginChildStr (const char*,const ImVec2,bool,ImGuiWindowFlags) -2 bool igBeginChildID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags) +1 bool igBeginChild_Str (const char*,const ImVec2,bool,ImGuiWindowFlags) +2 bool igBeginChild_ID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags) igCheckboxFlags 4 -1 bool igCheckboxFlagsIntPtr (const char*,int*,int) -2 bool igCheckboxFlagsUintPtr (const char*,unsigned int*,unsigned int) -3 bool igCheckboxFlagsS64Ptr (const char*,ImS64*,ImS64) -4 bool igCheckboxFlagsU64Ptr (const char*,ImU64*,ImU64) +1 bool igCheckboxFlags_IntPtr (const char*,int*,int) +2 bool igCheckboxFlags_UintPtr (const char*,unsigned int*,unsigned int) +3 bool igCheckboxFlags_S64Ptr (const char*,ImS64*,ImS64) +4 bool igCheckboxFlags_U64Ptr (const char*,ImU64*,ImU64) igCollapsingHeader 2 -1 bool igCollapsingHeaderTreeNodeFlags (const char*,ImGuiTreeNodeFlags) -2 bool igCollapsingHeaderBoolPtr (const char*,bool*,ImGuiTreeNodeFlags) +1 bool igCollapsingHeader_TreeNodeFlags (const char*,ImGuiTreeNodeFlags) +2 bool igCollapsingHeader_BoolPtr (const char*,bool*,ImGuiTreeNodeFlags) igCombo 3 -1 bool igComboStr_arr (const char*,int*,const char* const[],int,int) -2 bool igComboStr (const char*,int*,const char*,int) -3 bool igComboFnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) +1 bool igCombo_Str_arr (const char*,int*,const char* const[],int,int) +2 bool igCombo_Str (const char*,int*,const char*,int) +3 bool igCombo_FnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) igGetBackgroundDrawList 2 -1 ImDrawList* igGetBackgroundDrawListNil () -2 ImDrawList* igGetBackgroundDrawListViewportPtr (ImGuiViewport*) +1 ImDrawList* igGetBackgroundDrawList_Nil () +2 ImDrawList* igGetBackgroundDrawList_ViewportPtr (ImGuiViewport*) igGetColorU32 3 -1 ImU32 igGetColorU32Col (ImGuiCol,float) -2 ImU32 igGetColorU32Vec4 (const ImVec4) -3 ImU32 igGetColorU32U32 (ImU32) +1 ImU32 igGetColorU32_Col (ImGuiCol,float) +2 ImU32 igGetColorU32_Vec4 (const ImVec4) +3 ImU32 igGetColorU32_U32 (ImU32) igGetForegroundDrawList 3 -1 ImDrawList* igGetForegroundDrawListNil () -2 ImDrawList* igGetForegroundDrawListViewportPtr (ImGuiViewport*) -3 ImDrawList* igGetForegroundDrawListWindowPtr (ImGuiWindow*) +1 ImDrawList* igGetForegroundDrawList_Nil () +2 ImDrawList* igGetForegroundDrawList_ViewportPtr (ImGuiViewport*) +3 ImDrawList* igGetForegroundDrawList_WindowPtr (ImGuiWindow*) igGetID 3 -1 ImGuiID igGetIDStr (const char*) -2 ImGuiID igGetIDStrStr (const char*,const char*) -3 ImGuiID igGetIDPtr (const void*) +1 ImGuiID igGetID_Str (const char*) +2 ImGuiID igGetID_StrStr (const char*,const char*) +3 ImGuiID igGetID_Ptr (const void*) igImAbs 3 -1 int igImAbsInt (int) -2 float igImAbsFloat (float) -3 double igImAbsdouble (double) +1 int igImAbs_Int (int) +2 float igImAbs_Float (float) +3 double igImAbs_double (double) igImFloor 2 -1 float igImFloorFloat (float) -2 ImVec2 igImFloorVec2 (const ImVec2) +1 float igImFloor_Float (float) +2 ImVec2 igImFloor_Vec2 (const ImVec2) +igImFloorSigned 2 +1 float igImFloorSigned_Float (float) +2 ImVec2 igImFloorSigned_Vec2 (const ImVec2) igImIsPowerOfTwo 2 -1 bool igImIsPowerOfTwoInt (int) -2 bool igImIsPowerOfTwoU64 (ImU64) +1 bool igImIsPowerOfTwo_Int (int) +2 bool igImIsPowerOfTwo_U64 (ImU64) igImLengthSqr 2 -1 float igImLengthSqrVec2 (const ImVec2) -2 float igImLengthSqrVec4 (const ImVec4) +1 float igImLengthSqr_Vec2 (const ImVec2) +2 float igImLengthSqr_Vec4 (const ImVec4) igImLerp 3 -1 ImVec2 igImLerpVec2Float (const ImVec2,const ImVec2,float) -2 ImVec2 igImLerpVec2Vec2 (const ImVec2,const ImVec2,const ImVec2) -3 ImVec4 igImLerpVec4 (const ImVec4,const ImVec4,float) +1 ImVec2 igImLerp_Vec2Float (const ImVec2,const ImVec2,float) +2 ImVec2 igImLerp_Vec2Vec2 (const ImVec2,const ImVec2,const ImVec2) +3 ImVec4 igImLerp_Vec4 (const ImVec4,const ImVec4,float) igImLog 2 -1 float igImLogFloat (float) -2 double igImLogdouble (double) +1 float igImLog_Float (float) +2 double igImLog_double (double) igImPow 2 -1 float igImPowFloat (float,float) -2 double igImPowdouble (double,double) +1 float igImPow_Float (float,float) +2 double igImPow_double (double,double) igImRsqrt 2 -1 float igImRsqrtFloat (float) -2 double igImRsqrtdouble (double) +1 float igImRsqrt_Float (float) +2 double igImRsqrt_double (double) igImSign 2 -1 float igImSignFloat (float) -2 double igImSigndouble (double) +1 float igImSign_Float (float) +2 double igImSign_double (double) +igIsKeyDown 2 +1 bool igIsKeyDown_Nil (ImGuiKey) +2 bool igIsKeyDown_ID (ImGuiKey,ImGuiID) +igIsKeyPressed 2 +1 bool igIsKeyPressed_Bool (ImGuiKey,bool) +2 bool igIsKeyPressed_ID (ImGuiKey,ImGuiID,ImGuiInputFlags) +igIsKeyReleased 2 +1 bool igIsKeyReleased_Nil (ImGuiKey) +2 bool igIsKeyReleased_ID (ImGuiKey,ImGuiID) +igIsMouseClicked 2 +1 bool igIsMouseClicked_Bool (ImGuiMouseButton,bool) +2 bool igIsMouseClicked_ID (ImGuiMouseButton,ImGuiID,ImGuiInputFlags) +igIsMouseDown 2 +1 bool igIsMouseDown_Nil (ImGuiMouseButton) +2 bool igIsMouseDown_ID (ImGuiMouseButton,ImGuiID) +igIsMouseReleased 2 +1 bool igIsMouseReleased_Nil (ImGuiMouseButton) +2 bool igIsMouseReleased_ID (ImGuiMouseButton,ImGuiID) igIsPopupOpen 2 -1 bool igIsPopupOpenStr (const char*,ImGuiPopupFlags) -2 bool igIsPopupOpenID (ImGuiID,ImGuiPopupFlags) +1 bool igIsPopupOpen_Str (const char*,ImGuiPopupFlags) +2 bool igIsPopupOpen_ID (ImGuiID,ImGuiPopupFlags) igIsRectVisible 2 -1 bool igIsRectVisibleNil (const ImVec2) -2 bool igIsRectVisibleVec2 (const ImVec2,const ImVec2) +1 bool igIsRectVisible_Nil (const ImVec2) +2 bool igIsRectVisible_Vec2 (const ImVec2,const ImVec2) igItemSize 2 -1 void igItemSizeVec2 (const ImVec2,float) -2 void igItemSizeRect (const ImRect,float) +1 void igItemSize_Vec2 (const ImVec2,float) +2 void igItemSize_Rect (const ImRect,float) igListBox 2 -1 bool igListBoxStr_arr (const char*,int*,const char* const[],int,int) -2 bool igListBoxFnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) +1 bool igListBox_Str_arr (const char*,int*,const char* const[],int,int) +2 bool igListBox_FnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) igMarkIniSettingsDirty 2 -1 void igMarkIniSettingsDirtyNil () -2 void igMarkIniSettingsDirtyWindowPtr (ImGuiWindow*) +1 void igMarkIniSettingsDirty_Nil () +2 void igMarkIniSettingsDirty_WindowPtr (ImGuiWindow*) igMenuItem 2 -1 bool igMenuItemBool (const char*,const char*,bool,bool) -2 bool igMenuItemBoolPtr (const char*,const char*,bool*,bool) +1 bool igMenuItem_Bool (const char*,const char*,bool,bool) +2 bool igMenuItem_BoolPtr (const char*,const char*,bool*,bool) igOpenPopup 2 -1 void igOpenPopupStr (const char*,ImGuiPopupFlags) -2 void igOpenPopupID (ImGuiID,ImGuiPopupFlags) +1 void igOpenPopup_Str (const char*,ImGuiPopupFlags) +2 void igOpenPopup_ID (ImGuiID,ImGuiPopupFlags) igPlotHistogram 2 -1 void igPlotHistogramFloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) -2 void igPlotHistogramFnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) +1 void igPlotHistogram_FloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) +2 void igPlotHistogram_FnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) igPlotLines 2 -1 void igPlotLinesFloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) -2 void igPlotLinesFnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) +1 void igPlotLines_FloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) +2 void igPlotLines_FnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) igPushID 4 -1 void igPushIDStr (const char*) -2 void igPushIDStrStr (const char*,const char*) -3 void igPushIDPtr (const void*) -4 void igPushIDInt (int) +1 void igPushID_Str (const char*) +2 void igPushID_StrStr (const char*,const char*) +3 void igPushID_Ptr (const void*) +4 void igPushID_Int (int) igPushStyleColor 2 -1 void igPushStyleColorU32 (ImGuiCol,ImU32) -2 void igPushStyleColorVec4 (ImGuiCol,const ImVec4) +1 void igPushStyleColor_U32 (ImGuiCol,ImU32) +2 void igPushStyleColor_Vec4 (ImGuiCol,const ImVec4) igPushStyleVar 2 -1 void igPushStyleVarFloat (ImGuiStyleVar,float) -2 void igPushStyleVarVec2 (ImGuiStyleVar,const ImVec2) +1 void igPushStyleVar_Float (ImGuiStyleVar,float) +2 void igPushStyleVar_Vec2 (ImGuiStyleVar,const ImVec2) igRadioButton 2 -1 bool igRadioButtonBool (const char*,bool) -2 bool igRadioButtonIntPtr (const char*,int*,int) +1 bool igRadioButton_Bool (const char*,bool) +2 bool igRadioButton_IntPtr (const char*,int*,int) igSelectable 2 -1 bool igSelectableBool (const char*,bool,ImGuiSelectableFlags,const ImVec2) -2 bool igSelectableBoolPtr (const char*,bool*,ImGuiSelectableFlags,const ImVec2) +1 bool igSelectable_Bool (const char*,bool,ImGuiSelectableFlags,const ImVec2) +2 bool igSelectable_BoolPtr (const char*,bool*,ImGuiSelectableFlags,const ImVec2) igSetScrollFromPosX 2 -1 void igSetScrollFromPosXFloat (float,float) -2 void igSetScrollFromPosXWindowPtr (ImGuiWindow*,float,float) +1 void igSetScrollFromPosX_Float (float,float) +2 void igSetScrollFromPosX_WindowPtr (ImGuiWindow*,float,float) igSetScrollFromPosY 2 -1 void igSetScrollFromPosYFloat (float,float) -2 void igSetScrollFromPosYWindowPtr (ImGuiWindow*,float,float) +1 void igSetScrollFromPosY_Float (float,float) +2 void igSetScrollFromPosY_WindowPtr (ImGuiWindow*,float,float) igSetScrollX 2 -1 void igSetScrollXFloat (float) -2 void igSetScrollXWindowPtr (ImGuiWindow*,float) +1 void igSetScrollX_Float (float) +2 void igSetScrollX_WindowPtr (ImGuiWindow*,float) igSetScrollY 2 -1 void igSetScrollYFloat (float) -2 void igSetScrollYWindowPtr (ImGuiWindow*,float) +1 void igSetScrollY_Float (float) +2 void igSetScrollY_WindowPtr (ImGuiWindow*,float) igSetWindowCollapsed 3 -1 void igSetWindowCollapsedBool (bool,ImGuiCond) -2 void igSetWindowCollapsedStr (const char*,bool,ImGuiCond) -3 void igSetWindowCollapsedWindowPtr (ImGuiWindow*,bool,ImGuiCond) +1 void igSetWindowCollapsed_Bool (bool,ImGuiCond) +2 void igSetWindowCollapsed_Str (const char*,bool,ImGuiCond) +3 void igSetWindowCollapsed_WindowPtr (ImGuiWindow*,bool,ImGuiCond) igSetWindowFocus 2 -1 void igSetWindowFocusNil () -2 void igSetWindowFocusStr (const char*) +1 void igSetWindowFocus_Nil () +2 void igSetWindowFocus_Str (const char*) igSetWindowPos 3 -1 void igSetWindowPosVec2 (const ImVec2,ImGuiCond) -2 void igSetWindowPosStr (const char*,const ImVec2,ImGuiCond) -3 void igSetWindowPosWindowPtr (ImGuiWindow*,const ImVec2,ImGuiCond) +1 void igSetWindowPos_Vec2 (const ImVec2,ImGuiCond) +2 void igSetWindowPos_Str (const char*,const ImVec2,ImGuiCond) +3 void igSetWindowPos_WindowPtr (ImGuiWindow*,const ImVec2,ImGuiCond) igSetWindowSize 3 -1 void igSetWindowSizeVec2 (const ImVec2,ImGuiCond) -2 void igSetWindowSizeStr (const char*,const ImVec2,ImGuiCond) -3 void igSetWindowSizeWindowPtr (ImGuiWindow*,const ImVec2,ImGuiCond) +1 void igSetWindowSize_Vec2 (const ImVec2,ImGuiCond) +2 void igSetWindowSize_Str (const char*,const ImVec2,ImGuiCond) +3 void igSetWindowSize_WindowPtr (ImGuiWindow*,const ImVec2,ImGuiCond) +igTabItemCalcSize 2 +1 ImVec2 igTabItemCalcSize_Str (const char*,bool) +2 ImVec2 igTabItemCalcSize_WindowPtr (ImGuiWindow*) igTableGcCompactTransientBuffers 2 -1 void igTableGcCompactTransientBuffersTablePtr (ImGuiTable*) -2 void igTableGcCompactTransientBuffersTableTempDataPtr (ImGuiTableTempData*) +1 void igTableGcCompactTransientBuffers_TablePtr (ImGuiTable*) +2 void igTableGcCompactTransientBuffers_TableTempDataPtr (ImGuiTableTempData*) igTableGetColumnName 2 -1 const char* igTableGetColumnNameInt (int) -2 const char* igTableGetColumnNameTablePtr (const ImGuiTable*,int) +1 const char* igTableGetColumnName_Int (int) +2 const char* igTableGetColumnName_TablePtr (const ImGuiTable*,int) igTreeNode 3 -1 bool igTreeNodeStr (const char*) -2 bool igTreeNodeStrStr (const char*,const char*,...) -3 bool igTreeNodePtr (const void*,const char*,...) +1 bool igTreeNode_Str (const char*) +2 bool igTreeNode_StrStr (const char*,const char*,...) +3 bool igTreeNode_Ptr (const void*,const char*,...) igTreeNodeEx 3 -1 bool igTreeNodeExStr (const char*,ImGuiTreeNodeFlags) -2 bool igTreeNodeExStrStr (const char*,ImGuiTreeNodeFlags,const char*,...) -3 bool igTreeNodeExPtr (const void*,ImGuiTreeNodeFlags,const char*,...) +1 bool igTreeNodeEx_Str (const char*,ImGuiTreeNodeFlags) +2 bool igTreeNodeEx_StrStr (const char*,ImGuiTreeNodeFlags,const char*,...) +3 bool igTreeNodeEx_Ptr (const void*,ImGuiTreeNodeFlags,const char*,...) igTreeNodeExV 2 -1 bool igTreeNodeExVStr (const char*,ImGuiTreeNodeFlags,const char*,va_list) -2 bool igTreeNodeExVPtr (const void*,ImGuiTreeNodeFlags,const char*,va_list) +1 bool igTreeNodeExV_Str (const char*,ImGuiTreeNodeFlags,const char*,va_list) +2 bool igTreeNodeExV_Ptr (const void*,ImGuiTreeNodeFlags,const char*,va_list) igTreeNodeV 2 -1 bool igTreeNodeVStr (const char*,const char*,va_list) -2 bool igTreeNodeVPtr (const void*,const char*,va_list) +1 bool igTreeNodeV_Str (const char*,const char*,va_list) +2 bool igTreeNodeV_Ptr (const void*,const char*,va_list) igTreePush 2 -1 void igTreePushStr (const char*) -2 void igTreePushPtr (const void*) +1 void igTreePush_Str (const char*) +2 void igTreePush_Ptr (const void*) igValue 4 -1 void igValueBool (const char*,bool) -2 void igValueInt (const char*,int) -3 void igValueUint (const char*,unsigned int) -4 void igValueFloat (const char*,float,const char*) -180 overloaded \ No newline at end of file +1 void igValue_Bool (const char*,bool) +2 void igValue_Int (const char*,int) +3 void igValue_Uint (const char*,unsigned int) +4 void igValue_Float (const char*,float,const char*) +193 overloaded \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking/structs_and_enums.json b/imgui-sys/third-party/imgui-docking/structs_and_enums.json index aa22506c9..9ec24d574 100644 --- a/imgui-sys/third-party/imgui-docking/structs_and_enums.json +++ b/imgui-sys/third-party/imgui-docking/structs_and_enums.json @@ -278,6 +278,16 @@ "name": "ImGuiButtonFlags_NoHoveredOnFocus", "value": "1 << 19" }, + { + "calc_value": 1048576, + "name": "ImGuiButtonFlags_NoSetKeyOwner", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiButtonFlags_NoTestKeyOwner", + "value": "1 << 21" + }, { "calc_value": 1008, "name": "ImGuiButtonFlags_PressedOnMask_", @@ -1031,6 +1041,63 @@ "value": "10" } ], + "ImGuiDebugLogFlags_": [ + { + "calc_value": 0, + "name": "ImGuiDebugLogFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDebugLogFlags_EventActiveId", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiDebugLogFlags_EventFocus", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiDebugLogFlags_EventPopup", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiDebugLogFlags_EventNav", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiDebugLogFlags_EventClipper", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiDebugLogFlags_EventIO", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiDebugLogFlags_EventDocking", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiDebugLogFlags_EventViewport", + "value": "1 << 7" + }, + { + "calc_value": 255, + "name": "ImGuiDebugLogFlags_EventMask_", + "value": "ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport" + }, + { + "calc_value": 1024, + "name": "ImGuiDebugLogFlags_OutputToTTY", + "value": "1 << 10" + } + ], "ImGuiDir_": [ { "calc_value": -1, @@ -1364,6 +1431,11 @@ "name": "ImGuiHoveredFlags_AllowWhenDisabled", "value": "1 << 9" }, + { + "calc_value": 1024, + "name": "ImGuiHoveredFlags_NoNavOverride", + "value": "1 << 10" + }, { "calc_value": 416, "name": "ImGuiHoveredFlags_RectOnly", @@ -1373,38 +1445,190 @@ "calc_value": 3, "name": "ImGuiHoveredFlags_RootAndChildWindows", "value": "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" + }, + { + "calc_value": 2048, + "name": "ImGuiHoveredFlags_DelayNormal", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiHoveredFlags_DelayShort", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiHoveredFlags_NoSharedDelay", + "value": "1 << 13" } ], - "ImGuiInputReadMode": [ + "ImGuiInputEventType": [ { "calc_value": 0, - "name": "ImGuiInputReadMode_Down", + "name": "ImGuiInputEventType_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiInputReadMode_Pressed", + "name": "ImGuiInputEventType_MousePos", "value": "1" }, { "calc_value": 2, - "name": "ImGuiInputReadMode_Released", + "name": "ImGuiInputEventType_MouseWheel", "value": "2" }, { "calc_value": 3, - "name": "ImGuiInputReadMode_Repeat", + "name": "ImGuiInputEventType_MouseButton", "value": "3" }, { "calc_value": 4, - "name": "ImGuiInputReadMode_RepeatSlow", + "name": "ImGuiInputEventType_MouseViewport", "value": "4" }, { "calc_value": 5, - "name": "ImGuiInputReadMode_RepeatFast", + "name": "ImGuiInputEventType_Key", "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiInputEventType_Text", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiInputEventType_Focus", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiInputEventType_COUNT", + "value": "8" + } + ], + "ImGuiInputFlags_": [ + { + "calc_value": 0, + "name": "ImGuiInputFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiInputFlags_Repeat", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiInputFlags_RepeatRateDefault", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiInputFlags_RepeatRateNavMove", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiInputFlags_RepeatRateNavTweak", + "value": "1 << 3" + }, + { + "calc_value": 14, + "name": "ImGuiInputFlags_RepeatRateMask_", + "value": "ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak" + }, + { + "calc_value": 16, + "name": "ImGuiInputFlags_CondHovered", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiInputFlags_CondActive", + "value": "1 << 5" + }, + { + "calc_value": 48, + "name": "ImGuiInputFlags_CondDefault_", + "value": "ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive" + }, + { + "calc_value": 48, + "name": "ImGuiInputFlags_CondMask_", + "value": "ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive" + }, + { + "calc_value": 64, + "name": "ImGuiInputFlags_LockThisFrame", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiInputFlags_LockUntilRelease", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiInputFlags_RouteFocused", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiInputFlags_RouteGlobalLow", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiInputFlags_RouteGlobal", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiInputFlags_RouteGlobalHigh", + "value": "1 << 11" + }, + { + "calc_value": 3840, + "name": "ImGuiInputFlags_RouteMask_", + "value": "ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh" + }, + { + "calc_value": 4096, + "name": "ImGuiInputFlags_RouteAlways", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiInputFlags_RouteUnlessBgFocused", + "value": "1 << 13" + }, + { + "calc_value": 12288, + "name": "ImGuiInputFlags_RouteExtraMask_", + "value": "ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused" + }, + { + "calc_value": 15, + "name": "ImGuiInputFlags_SupportedByIsKeyPressed", + "value": "ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_" + }, + { + "calc_value": 16143, + "name": "ImGuiInputFlags_SupportedByShortcut", + "value": "ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_" + }, + { + "calc_value": 192, + "name": "ImGuiInputFlags_SupportedBySetKeyOwner", + "value": "ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease" + }, + { + "calc_value": 240, + "name": "ImGuiInputFlags_SupportedBySetItemKeyOwner", + "value": "ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_" } ], "ImGuiInputSource": [ @@ -1430,12 +1654,12 @@ }, { "calc_value": 4, - "name": "ImGuiInputSource_Nav", + "name": "ImGuiInputSource_Clipboard", "value": "4" }, { "calc_value": 5, - "name": "ImGuiInputSource_Clipboard", + "name": "ImGuiInputSource_Nav", "value": "5" }, { @@ -1566,6 +1790,11 @@ "calc_value": 524288, "name": "ImGuiInputTextFlags_CallbackEdit", "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiInputTextFlags_EscapeClearsAll", + "value": "1 << 20" } ], "ImGuiItemFlags_": [ @@ -1616,8 +1845,13 @@ }, { "calc_value": 256, - "name": "ImGuiItemFlags_Inputable", + "name": "ImGuiItemFlags_NoWindowHoverableCheck", "value": "1 << 8" + }, + { + "calc_value": 1024, + "name": "ImGuiItemFlags_Inputable", + "value": "1 << 10" } ], "ImGuiItemStatusFlags_": [ @@ -1670,162 +1904,842 @@ "calc_value": 256, "name": "ImGuiItemStatusFlags_FocusedByTabbing", "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiItemStatusFlags_Visible", + "value": "1 << 9" } ], - "ImGuiKeyModFlags_": [ + "ImGuiKey": [ { "calc_value": 0, - "name": "ImGuiKeyModFlags_None", + "name": "ImGuiKey_None", "value": "0" }, { - "calc_value": 1, - "name": "ImGuiKeyModFlags_Ctrl", - "value": "1 << 0" - }, - { - "calc_value": 2, - "name": "ImGuiKeyModFlags_Shift", - "value": "1 << 1" - }, - { - "calc_value": 4, - "name": "ImGuiKeyModFlags_Alt", - "value": "1 << 2" - }, - { - "calc_value": 8, - "name": "ImGuiKeyModFlags_Super", - "value": "1 << 3" - } - ], - "ImGuiKey_": [ - { - "calc_value": 0, + "calc_value": 512, "name": "ImGuiKey_Tab", - "value": "0" + "value": "512" }, { - "calc_value": 1, + "calc_value": 513, "name": "ImGuiKey_LeftArrow", - "value": "1" + "value": "513" }, { - "calc_value": 2, + "calc_value": 514, "name": "ImGuiKey_RightArrow", - "value": "2" + "value": "514" }, { - "calc_value": 3, + "calc_value": 515, "name": "ImGuiKey_UpArrow", - "value": "3" + "value": "515" }, { - "calc_value": 4, + "calc_value": 516, "name": "ImGuiKey_DownArrow", - "value": "4" + "value": "516" }, { - "calc_value": 5, + "calc_value": 517, "name": "ImGuiKey_PageUp", - "value": "5" + "value": "517" }, { - "calc_value": 6, + "calc_value": 518, "name": "ImGuiKey_PageDown", - "value": "6" + "value": "518" }, { - "calc_value": 7, + "calc_value": 519, "name": "ImGuiKey_Home", - "value": "7" + "value": "519" }, { - "calc_value": 8, + "calc_value": 520, "name": "ImGuiKey_End", - "value": "8" + "value": "520" }, { - "calc_value": 9, + "calc_value": 521, "name": "ImGuiKey_Insert", - "value": "9" + "value": "521" }, { - "calc_value": 10, + "calc_value": 522, "name": "ImGuiKey_Delete", - "value": "10" + "value": "522" }, { - "calc_value": 11, + "calc_value": 523, "name": "ImGuiKey_Backspace", - "value": "11" + "value": "523" }, { - "calc_value": 12, + "calc_value": 524, "name": "ImGuiKey_Space", - "value": "12" + "value": "524" }, { - "calc_value": 13, + "calc_value": 525, "name": "ImGuiKey_Enter", - "value": "13" + "value": "525" }, { - "calc_value": 14, + "calc_value": 526, "name": "ImGuiKey_Escape", - "value": "14" + "value": "526" }, { - "calc_value": 15, - "name": "ImGuiKey_KeyPadEnter", - "value": "15" + "calc_value": 527, + "name": "ImGuiKey_LeftCtrl", + "value": "527" }, { - "calc_value": 16, - "name": "ImGuiKey_A", - "value": "16" + "calc_value": 528, + "name": "ImGuiKey_LeftShift", + "value": "528" }, { - "calc_value": 17, - "name": "ImGuiKey_C", - "value": "17" + "calc_value": 529, + "name": "ImGuiKey_LeftAlt", + "value": "529" }, { - "calc_value": 18, - "name": "ImGuiKey_V", - "value": "18" + "calc_value": 530, + "name": "ImGuiKey_LeftSuper", + "value": "530" }, { - "calc_value": 19, - "name": "ImGuiKey_X", - "value": "19" + "calc_value": 531, + "name": "ImGuiKey_RightCtrl", + "value": "531" + }, + { + "calc_value": 532, + "name": "ImGuiKey_RightShift", + "value": "532" + }, + { + "calc_value": 533, + "name": "ImGuiKey_RightAlt", + "value": "533" + }, + { + "calc_value": 534, + "name": "ImGuiKey_RightSuper", + "value": "534" + }, + { + "calc_value": 535, + "name": "ImGuiKey_Menu", + "value": "535" + }, + { + "calc_value": 536, + "name": "ImGuiKey_0", + "value": "536" + }, + { + "calc_value": 537, + "name": "ImGuiKey_1", + "value": "537" + }, + { + "calc_value": 538, + "name": "ImGuiKey_2", + "value": "538" + }, + { + "calc_value": 539, + "name": "ImGuiKey_3", + "value": "539" + }, + { + "calc_value": 540, + "name": "ImGuiKey_4", + "value": "540" + }, + { + "calc_value": 541, + "name": "ImGuiKey_5", + "value": "541" + }, + { + "calc_value": 542, + "name": "ImGuiKey_6", + "value": "542" + }, + { + "calc_value": 543, + "name": "ImGuiKey_7", + "value": "543" + }, + { + "calc_value": 544, + "name": "ImGuiKey_8", + "value": "544" + }, + { + "calc_value": 545, + "name": "ImGuiKey_9", + "value": "545" + }, + { + "calc_value": 546, + "name": "ImGuiKey_A", + "value": "546" + }, + { + "calc_value": 547, + "name": "ImGuiKey_B", + "value": "547" + }, + { + "calc_value": 548, + "name": "ImGuiKey_C", + "value": "548" + }, + { + "calc_value": 549, + "name": "ImGuiKey_D", + "value": "549" + }, + { + "calc_value": 550, + "name": "ImGuiKey_E", + "value": "550" + }, + { + "calc_value": 551, + "name": "ImGuiKey_F", + "value": "551" + }, + { + "calc_value": 552, + "name": "ImGuiKey_G", + "value": "552" + }, + { + "calc_value": 553, + "name": "ImGuiKey_H", + "value": "553" + }, + { + "calc_value": 554, + "name": "ImGuiKey_I", + "value": "554" + }, + { + "calc_value": 555, + "name": "ImGuiKey_J", + "value": "555" + }, + { + "calc_value": 556, + "name": "ImGuiKey_K", + "value": "556" + }, + { + "calc_value": 557, + "name": "ImGuiKey_L", + "value": "557" + }, + { + "calc_value": 558, + "name": "ImGuiKey_M", + "value": "558" + }, + { + "calc_value": 559, + "name": "ImGuiKey_N", + "value": "559" + }, + { + "calc_value": 560, + "name": "ImGuiKey_O", + "value": "560" + }, + { + "calc_value": 561, + "name": "ImGuiKey_P", + "value": "561" + }, + { + "calc_value": 562, + "name": "ImGuiKey_Q", + "value": "562" + }, + { + "calc_value": 563, + "name": "ImGuiKey_R", + "value": "563" + }, + { + "calc_value": 564, + "name": "ImGuiKey_S", + "value": "564" + }, + { + "calc_value": 565, + "name": "ImGuiKey_T", + "value": "565" + }, + { + "calc_value": 566, + "name": "ImGuiKey_U", + "value": "566" + }, + { + "calc_value": 567, + "name": "ImGuiKey_V", + "value": "567" + }, + { + "calc_value": 568, + "name": "ImGuiKey_W", + "value": "568" + }, + { + "calc_value": 569, + "name": "ImGuiKey_X", + "value": "569" + }, + { + "calc_value": 570, + "name": "ImGuiKey_Y", + "value": "570" + }, + { + "calc_value": 571, + "name": "ImGuiKey_Z", + "value": "571" + }, + { + "calc_value": 572, + "name": "ImGuiKey_F1", + "value": "572" + }, + { + "calc_value": 573, + "name": "ImGuiKey_F2", + "value": "573" + }, + { + "calc_value": 574, + "name": "ImGuiKey_F3", + "value": "574" + }, + { + "calc_value": 575, + "name": "ImGuiKey_F4", + "value": "575" + }, + { + "calc_value": 576, + "name": "ImGuiKey_F5", + "value": "576" + }, + { + "calc_value": 577, + "name": "ImGuiKey_F6", + "value": "577" + }, + { + "calc_value": 578, + "name": "ImGuiKey_F7", + "value": "578" + }, + { + "calc_value": 579, + "name": "ImGuiKey_F8", + "value": "579" + }, + { + "calc_value": 580, + "name": "ImGuiKey_F9", + "value": "580" + }, + { + "calc_value": 581, + "name": "ImGuiKey_F10", + "value": "581" + }, + { + "calc_value": 582, + "name": "ImGuiKey_F11", + "value": "582" + }, + { + "calc_value": 583, + "name": "ImGuiKey_F12", + "value": "583" + }, + { + "calc_value": 584, + "name": "ImGuiKey_Apostrophe", + "value": "584" + }, + { + "calc_value": 585, + "name": "ImGuiKey_Comma", + "value": "585" + }, + { + "calc_value": 586, + "name": "ImGuiKey_Minus", + "value": "586" + }, + { + "calc_value": 587, + "name": "ImGuiKey_Period", + "value": "587" + }, + { + "calc_value": 588, + "name": "ImGuiKey_Slash", + "value": "588" + }, + { + "calc_value": 589, + "name": "ImGuiKey_Semicolon", + "value": "589" + }, + { + "calc_value": 590, + "name": "ImGuiKey_Equal", + "value": "590" + }, + { + "calc_value": 591, + "name": "ImGuiKey_LeftBracket", + "value": "591" + }, + { + "calc_value": 592, + "name": "ImGuiKey_Backslash", + "value": "592" + }, + { + "calc_value": 593, + "name": "ImGuiKey_RightBracket", + "value": "593" + }, + { + "calc_value": 594, + "name": "ImGuiKey_GraveAccent", + "value": "594" + }, + { + "calc_value": 595, + "name": "ImGuiKey_CapsLock", + "value": "595" + }, + { + "calc_value": 596, + "name": "ImGuiKey_ScrollLock", + "value": "596" + }, + { + "calc_value": 597, + "name": "ImGuiKey_NumLock", + "value": "597" + }, + { + "calc_value": 598, + "name": "ImGuiKey_PrintScreen", + "value": "598" + }, + { + "calc_value": 599, + "name": "ImGuiKey_Pause", + "value": "599" + }, + { + "calc_value": 600, + "name": "ImGuiKey_Keypad0", + "value": "600" + }, + { + "calc_value": 601, + "name": "ImGuiKey_Keypad1", + "value": "601" + }, + { + "calc_value": 602, + "name": "ImGuiKey_Keypad2", + "value": "602" + }, + { + "calc_value": 603, + "name": "ImGuiKey_Keypad3", + "value": "603" + }, + { + "calc_value": 604, + "name": "ImGuiKey_Keypad4", + "value": "604" + }, + { + "calc_value": 605, + "name": "ImGuiKey_Keypad5", + "value": "605" + }, + { + "calc_value": 606, + "name": "ImGuiKey_Keypad6", + "value": "606" + }, + { + "calc_value": 607, + "name": "ImGuiKey_Keypad7", + "value": "607" + }, + { + "calc_value": 608, + "name": "ImGuiKey_Keypad8", + "value": "608" + }, + { + "calc_value": 609, + "name": "ImGuiKey_Keypad9", + "value": "609" + }, + { + "calc_value": 610, + "name": "ImGuiKey_KeypadDecimal", + "value": "610" + }, + { + "calc_value": 611, + "name": "ImGuiKey_KeypadDivide", + "value": "611" + }, + { + "calc_value": 612, + "name": "ImGuiKey_KeypadMultiply", + "value": "612" + }, + { + "calc_value": 613, + "name": "ImGuiKey_KeypadSubtract", + "value": "613" + }, + { + "calc_value": 614, + "name": "ImGuiKey_KeypadAdd", + "value": "614" + }, + { + "calc_value": 615, + "name": "ImGuiKey_KeypadEnter", + "value": "615" + }, + { + "calc_value": 616, + "name": "ImGuiKey_KeypadEqual", + "value": "616" + }, + { + "calc_value": 617, + "name": "ImGuiKey_GamepadStart", + "value": "617" + }, + { + "calc_value": 618, + "name": "ImGuiKey_GamepadBack", + "value": "618" + }, + { + "calc_value": 619, + "name": "ImGuiKey_GamepadFaceLeft", + "value": "619" + }, + { + "calc_value": 620, + "name": "ImGuiKey_GamepadFaceRight", + "value": "620" + }, + { + "calc_value": 621, + "name": "ImGuiKey_GamepadFaceUp", + "value": "621" + }, + { + "calc_value": 622, + "name": "ImGuiKey_GamepadFaceDown", + "value": "622" + }, + { + "calc_value": 623, + "name": "ImGuiKey_GamepadDpadLeft", + "value": "623" + }, + { + "calc_value": 624, + "name": "ImGuiKey_GamepadDpadRight", + "value": "624" + }, + { + "calc_value": 625, + "name": "ImGuiKey_GamepadDpadUp", + "value": "625" + }, + { + "calc_value": 626, + "name": "ImGuiKey_GamepadDpadDown", + "value": "626" + }, + { + "calc_value": 627, + "name": "ImGuiKey_GamepadL1", + "value": "627" + }, + { + "calc_value": 628, + "name": "ImGuiKey_GamepadR1", + "value": "628" + }, + { + "calc_value": 629, + "name": "ImGuiKey_GamepadL2", + "value": "629" + }, + { + "calc_value": 630, + "name": "ImGuiKey_GamepadR2", + "value": "630" + }, + { + "calc_value": 631, + "name": "ImGuiKey_GamepadL3", + "value": "631" + }, + { + "calc_value": 632, + "name": "ImGuiKey_GamepadR3", + "value": "632" + }, + { + "calc_value": 633, + "name": "ImGuiKey_GamepadLStickLeft", + "value": "633" + }, + { + "calc_value": 634, + "name": "ImGuiKey_GamepadLStickRight", + "value": "634" + }, + { + "calc_value": 635, + "name": "ImGuiKey_GamepadLStickUp", + "value": "635" + }, + { + "calc_value": 636, + "name": "ImGuiKey_GamepadLStickDown", + "value": "636" + }, + { + "calc_value": 637, + "name": "ImGuiKey_GamepadRStickLeft", + "value": "637" + }, + { + "calc_value": 638, + "name": "ImGuiKey_GamepadRStickRight", + "value": "638" + }, + { + "calc_value": 639, + "name": "ImGuiKey_GamepadRStickUp", + "value": "639" + }, + { + "calc_value": 640, + "name": "ImGuiKey_GamepadRStickDown", + "value": "640" + }, + { + "calc_value": 641, + "name": "ImGuiKey_MouseLeft", + "value": "641" + }, + { + "calc_value": 642, + "name": "ImGuiKey_MouseRight", + "value": "642" + }, + { + "calc_value": 643, + "name": "ImGuiKey_MouseMiddle", + "value": "643" + }, + { + "calc_value": 644, + "name": "ImGuiKey_MouseX1", + "value": "644" + }, + { + "calc_value": 645, + "name": "ImGuiKey_MouseX2", + "value": "645" + }, + { + "calc_value": 646, + "name": "ImGuiKey_MouseWheelX", + "value": "646" + }, + { + "calc_value": 647, + "name": "ImGuiKey_MouseWheelY", + "value": "647" + }, + { + "calc_value": 648, + "name": "ImGuiKey_ReservedForModCtrl", + "value": "648" + }, + { + "calc_value": 649, + "name": "ImGuiKey_ReservedForModShift", + "value": "649" + }, + { + "calc_value": 650, + "name": "ImGuiKey_ReservedForModAlt", + "value": "650" + }, + { + "calc_value": 651, + "name": "ImGuiKey_ReservedForModSuper", + "value": "651" + }, + { + "calc_value": 652, + "name": "ImGuiKey_COUNT", + "value": "652" + }, + { + "calc_value": 0, + "name": "ImGuiMod_None", + "value": "0" + }, + { + "calc_value": 4096, + "name": "ImGuiMod_Ctrl", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiMod_Shift", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiMod_Alt", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiMod_Super", + "value": "1 << 15" + }, + { + "calc_value": 61440, + "name": "ImGuiMod_Mask_", + "value": "0xF000" + }, + { + "calc_value": 4096, + "name": "ImGuiMod_Shortcut", + "value": "ImGuiMod_Ctrl" + }, + { + "calc_value": 512, + "name": "ImGuiKey_NamedKey_BEGIN", + "value": "512" + }, + { + "calc_value": 652, + "name": "ImGuiKey_NamedKey_END", + "value": "ImGuiKey_COUNT" + }, + { + "calc_value": 140, + "name": "ImGuiKey_NamedKey_COUNT", + "value": "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN" + }, + { + "calc_value": 652, + "name": "ImGuiKey_KeysData_SIZE", + "value": "ImGuiKey_COUNT" + }, + { + "calc_value": 0, + "name": "ImGuiKey_KeysData_OFFSET", + "value": "0" + } + ], + "ImGuiLayoutType_": [ + { + "calc_value": 0, + "name": "ImGuiLayoutType_Horizontal", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiLayoutType_Vertical", + "value": "1" + } + ], + "ImGuiLocKey": [ + { + "calc_value": 0, + "name": "ImGuiLocKey_TableSizeOne", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiLocKey_TableSizeAllFit", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiLocKey_TableSizeAllDefault", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiLocKey_TableResetOrder", + "value": "3" }, { - "calc_value": 20, - "name": "ImGuiKey_Y", - "value": "20" + "calc_value": 4, + "name": "ImGuiLocKey_WindowingMainMenuBar", + "value": "4" }, { - "calc_value": 21, - "name": "ImGuiKey_Z", - "value": "21" + "calc_value": 5, + "name": "ImGuiLocKey_WindowingPopup", + "value": "5" }, { - "calc_value": 22, - "name": "ImGuiKey_COUNT", - "value": "22" - } - ], - "ImGuiLayoutType_": [ + "calc_value": 6, + "name": "ImGuiLocKey_WindowingUntitled", + "value": "6" + }, { - "calc_value": 0, - "name": "ImGuiLayoutType_Horizontal", - "value": "0" + "calc_value": 7, + "name": "ImGuiLocKey_DockingHideTabBar", + "value": "7" }, { - "calc_value": 1, - "name": "ImGuiLayoutType_Vertical", - "value": "1" + "calc_value": 8, + "name": "ImGuiLocKey_COUNT", + "value": "8" } ], "ImGuiLogType": [ @@ -1934,33 +2848,6 @@ "value": "9" } ], - "ImGuiNavDirSourceFlags_": [ - { - "calc_value": 0, - "name": "ImGuiNavDirSourceFlags_None", - "value": "0" - }, - { - "calc_value": 1, - "name": "ImGuiNavDirSourceFlags_RawKeyboard", - "value": "1 << 0" - }, - { - "calc_value": 2, - "name": "ImGuiNavDirSourceFlags_Keyboard", - "value": "1 << 1" - }, - { - "calc_value": 4, - "name": "ImGuiNavDirSourceFlags_PadDPad", - "value": "1 << 2" - }, - { - "calc_value": 8, - "name": "ImGuiNavDirSourceFlags_PadLStick", - "value": "1 << 3" - } - ], "ImGuiNavHighlightFlags_": [ { "calc_value": 0, @@ -1988,7 +2875,7 @@ "value": "1 << 3" } ], - "ImGuiNavInput_": [ + "ImGuiNavInput": [ { "calc_value": 0, "name": "ImGuiNavInput_Activate", @@ -2071,33 +2958,8 @@ }, { "calc_value": 16, - "name": "ImGuiNavInput_KeyLeft_", - "value": "16" - }, - { - "calc_value": 17, - "name": "ImGuiNavInput_KeyRight_", - "value": "17" - }, - { - "calc_value": 18, - "name": "ImGuiNavInput_KeyUp_", - "value": "18" - }, - { - "calc_value": 19, - "name": "ImGuiNavInput_KeyDown_", - "value": "19" - }, - { - "calc_value": 20, "name": "ImGuiNavInput_COUNT", - "value": "20" - }, - { - "calc_value": 16, - "name": "ImGuiNavInput_InternalStart_", - "value": "ImGuiNavInput_KeyLeft_" + "value": "16" } ], "ImGuiNavLayer": [ @@ -2478,6 +3340,11 @@ "calc_value": 134217728, "name": "ImGuiSelectableFlags_NoPadWithHalfSpacing", "value": "1 << 27" + }, + { + "calc_value": 268435456, + "name": "ImGuiSelectableFlags_NoSetKeyOwner", + "value": "1 << 28" } ], "ImGuiSelectableFlags_": [ @@ -3613,166 +4480,186 @@ } ] }, - "enumtypes": [], + "enumtypes": { + "ImGuiKey": "int", + "ImGuiLocKey": "int" + }, "locations": { - "ImBitVector": "imgui_internal:570", - "ImColor": "imgui:2347", - "ImDrawChannel": "imgui:2437", - "ImDrawCmd": "imgui:2396", - "ImDrawCmdHeader": "imgui:2429", - "ImDrawData": "imgui:2627", - "ImDrawDataBuilder": "imgui_internal:743", - "ImDrawFlags_": "imgui:2463", - "ImDrawList": "imgui:2501", - "ImDrawListFlags_": "imgui:2483", - "ImDrawListSharedData": "imgui_internal:723", - "ImDrawListSplitter": "imgui:2446", - "ImDrawVert": "imgui:2414", - "ImFont": "imgui:2846", - "ImFontAtlas": "imgui:2744", - "ImFontAtlasCustomRect": "imgui:2706", - "ImFontAtlasFlags_": "imgui:2719", - "ImFontBuilderIO": "imgui_internal:3101", - "ImFontConfig": "imgui:2650", - "ImFontGlyph": "imgui:2679", - "ImFontGlyphRangesBuilder": "imgui:2691", - "ImGuiActivateFlags_": "imgui_internal:1227", - "ImGuiAxis": "imgui_internal:899", - "ImGuiBackendFlags_": "imgui:1512", - "ImGuiButtonFlagsPrivate_": "imgui_internal:806", - "ImGuiButtonFlags_": "imgui:1626", - "ImGuiCol_": "imgui:1527", - "ImGuiColorEditFlags_": "imgui:1639", - "ImGuiColorMod": "imgui_internal:964", - "ImGuiComboFlagsPrivate_": "imgui_internal:829", - "ImGuiComboFlags_": "imgui:1122", - "ImGuiComboPreviewData": "imgui_internal:981", - "ImGuiCond_": "imgui:1731", - "ImGuiConfigFlags_": "imgui:1487", - "ImGuiContext": "imgui_internal:1670", - "ImGuiContextHook": "imgui_internal:1655", - "ImGuiContextHookType": "imgui_internal:1653", - "ImGuiDataAuthority_": "imgui_internal:1404", - "ImGuiDataTypeInfo": "imgui_internal:947", - "ImGuiDataTypePrivate_": "imgui_internal:956", - "ImGuiDataTypeTempStorage": "imgui_internal:941", - "ImGuiDataType_": "imgui:1380", - "ImGuiDir_": "imgui:1396", - "ImGuiDockContext": "imgui_internal:1502", - "ImGuiDockNode": "imgui_internal:1420", - "ImGuiDockNodeFlagsPrivate_": "imgui_internal:1379", - "ImGuiDockNodeFlags_": "imgui:1345", - "ImGuiDockNodeState": "imgui_internal:1411", - "ImGuiDragDropFlags_": "imgui:1358", - "ImGuiFocusedFlags_": "imgui:1311", - "ImGuiGroupData": "imgui_internal:994", - "ImGuiHoveredFlags_": "imgui:1325", - "ImGuiIO": "imgui:1897", - "ImGuiInputReadMode": "imgui_internal:924", - "ImGuiInputSource": "imgui_internal:912", - "ImGuiInputTextCallbackData": "imgui:2054", - "ImGuiInputTextFlagsPrivate_": "imgui_internal:797", - "ImGuiInputTextFlags_": "imgui:1035", - "ImGuiInputTextState": "imgui_internal:1029", - "ImGuiItemFlags_": "imgui_internal:759", - "ImGuiItemStatusFlags_": "imgui_internal:774", - "ImGuiKeyModFlags_": "imgui:1443", - "ImGuiKey_": "imgui:1415", - "ImGuiLastItemData": "imgui_internal:1142", - "ImGuiLayoutType_": "imgui_internal:883", - "ImGuiListClipper": "imgui:2299", - "ImGuiListClipperData": "imgui_internal:1211", - "ImGuiListClipperRange": "imgui_internal:1198", - "ImGuiLogType": "imgui_internal:889", - "ImGuiMenuColumns": "imgui_internal:1010", - "ImGuiMetricsConfig": "imgui_internal:1601", - "ImGuiMouseButton_": "imgui:1703", - "ImGuiMouseCursor_": "imgui:1713", - "ImGuiNavDirSourceFlags_": "imgui_internal:1259", - "ImGuiNavHighlightFlags_": "imgui_internal:1250", - "ImGuiNavInput_": "imgui:1456", - "ImGuiNavItemData": "imgui_internal:1293", - "ImGuiNavLayer": "imgui_internal:1286", - "ImGuiNavMoveFlags_": "imgui_internal:1268", - "ImGuiNextItemData": "imgui_internal:1129", - "ImGuiNextItemDataFlags_": "imgui_internal:1122", - "ImGuiNextWindowData": "imgui_internal:1095", - "ImGuiNextWindowDataFlags_": "imgui_internal:1078", - "ImGuiOldColumnData": "imgui_internal:1333", - "ImGuiOldColumnFlags_": "imgui_internal:1313", - "ImGuiOldColumns": "imgui_internal:1343", - "ImGuiOnceUponAFrame": "imgui:2174", - "ImGuiPayload": "imgui:2115", - "ImGuiPlatformIO": "imgui:3009", - "ImGuiPlatformMonitor": "imgui:3073", - "ImGuiPlotType": "imgui_internal:906", - "ImGuiPopupData": "imgui_internal:1065", - "ImGuiPopupFlags_": "imgui:1095", - "ImGuiPopupPositionPolicy": "imgui_internal:934", - "ImGuiPtrOrIndex": "imgui_internal:1185", - "ImGuiScrollFlags_": "imgui_internal:1236", - "ImGuiSelectableFlagsPrivate_": "imgui_internal:842", - "ImGuiSelectableFlags_": "imgui:1111", - "ImGuiSeparatorFlags_": "imgui_internal:861", - "ImGuiSettingsHandler": "imgui_internal:1582", - "ImGuiShrinkWidthItem": "imgui_internal:1179", - "ImGuiSizeCallbackData": "imgui:2085", - "ImGuiSliderFlagsPrivate_": "imgui_internal:835", - "ImGuiSliderFlags_": "imgui:1686", - "ImGuiSortDirection_": "imgui:1407", - "ImGuiStackLevelInfo": "imgui_internal:1627", - "ImGuiStackSizes": "imgui_internal:1154", - "ImGuiStackTool": "imgui_internal:1638", - "ImGuiStorage": "imgui:2236", - "ImGuiStoragePair": "imgui:2239", - "ImGuiStyle": "imgui:1842", - "ImGuiStyleMod": "imgui_internal:971", - "ImGuiStyleVar_": "imgui:1594", - "ImGuiTabBar": "imgui_internal:2334", - "ImGuiTabBarFlagsPrivate_": "imgui_internal:2297", - "ImGuiTabBarFlags_": "imgui:1136", - "ImGuiTabItem": "imgui_internal:2315", - "ImGuiTabItemFlagsPrivate_": "imgui_internal:2305", - "ImGuiTabItemFlags_": "imgui:1152", - "ImGuiTable": "imgui_internal:2461", - "ImGuiTableBgTarget_": "imgui:1302", - "ImGuiTableCellData": "imgui_internal:2454", - "ImGuiTableColumn": "imgui_internal:2395", - "ImGuiTableColumnFlags_": "imgui:1245", - "ImGuiTableColumnSettings": "imgui_internal:2595", - "ImGuiTableColumnSortSpecs": "imgui:2137", - "ImGuiTableFlags_": "imgui:1188", - "ImGuiTableRowFlags_": "imgui:1287", - "ImGuiTableSettings": "imgui_internal:2619", - "ImGuiTableSortSpecs": "imgui:2151", - "ImGuiTableTempData": "imgui_internal:2574", - "ImGuiTextBuffer": "imgui:2209", - "ImGuiTextFilter": "imgui:2182", - "ImGuiTextFlags_": "imgui_internal:869", - "ImGuiTextRange": "imgui:2192", - "ImGuiTooltipFlags_": "imgui_internal:875", - "ImGuiTreeNodeFlagsPrivate_": "imgui_internal:856", - "ImGuiTreeNodeFlags_": "imgui:1066", - "ImGuiViewport": "imgui:2927", - "ImGuiViewportFlags_": "imgui:2902", - "ImGuiViewportP": "imgui_internal:1519", - "ImGuiWindow": "imgui_internal:2153", - "ImGuiWindowClass": "imgui:2100", - "ImGuiWindowDockStyle": "imgui_internal:1497", - "ImGuiWindowDockStyleCol": "imgui_internal:1486", - "ImGuiWindowFlags_": "imgui:992", - "ImGuiWindowSettings": "imgui_internal:1565", - "ImGuiWindowStackData": "imgui_internal:1172", - "ImGuiWindowTempData": "imgui_internal:2106", - "ImRect": "imgui_internal:499", - "ImVec1": "imgui_internal:481", - "ImVec2": "imgui:266", - "ImVec2ih": "imgui_internal:489", - "ImVec4": "imgui:279", - "STB_TexteditState": "imstb_textedit:317", - "StbTexteditRow": "imstb_textedit:364", - "StbUndoRecord": "imstb_textedit:299", - "StbUndoState": "imstb_textedit:308" + "ImBitVector": "imgui_internal:593", + "ImColor": "imgui:2458", + "ImDrawChannel": "imgui:2548", + "ImDrawCmd": "imgui:2507", + "ImDrawCmdHeader": "imgui:2540", + "ImDrawData": "imgui:2740", + "ImDrawDataBuilder": "imgui_internal:782", + "ImDrawFlags_": "imgui:2574", + "ImDrawList": "imgui:2612", + "ImDrawListFlags_": "imgui:2594", + "ImDrawListSharedData": "imgui_internal:759", + "ImDrawListSplitter": "imgui:2557", + "ImDrawVert": "imgui:2525", + "ImFont": "imgui:2959", + "ImFontAtlas": "imgui:2857", + "ImFontAtlasCustomRect": "imgui:2819", + "ImFontAtlasFlags_": "imgui:2832", + "ImFontBuilderIO": "imgui_internal:3476", + "ImFontConfig": "imgui:2763", + "ImFontGlyph": "imgui:2792", + "ImFontGlyphRangesBuilder": "imgui:2804", + "ImGuiActivateFlags_": "imgui_internal:1428", + "ImGuiAxis": "imgui_internal:949", + "ImGuiBackendFlags_": "imgui:1579", + "ImGuiButtonFlagsPrivate_": "imgui_internal:853", + "ImGuiButtonFlags_": "imgui:1693", + "ImGuiCol_": "imgui:1594", + "ImGuiColorEditFlags_": "imgui:1706", + "ImGuiColorMod": "imgui_internal:992", + "ImGuiComboFlagsPrivate_": "imgui_internal:878", + "ImGuiComboFlags_": "imgui:1124", + "ImGuiComboPreviewData": "imgui_internal:1009", + "ImGuiCond_": "imgui:1797", + "ImGuiConfigFlags_": "imgui:1554", + "ImGuiContext": "imgui_internal:1905", + "ImGuiContextHook": "imgui_internal:1890", + "ImGuiContextHookType": "imgui_internal:1888", + "ImGuiDataAuthority_": "imgui_internal:1599", + "ImGuiDataTypeInfo": "imgui_internal:975", + "ImGuiDataTypePrivate_": "imgui_internal:984", + "ImGuiDataTypeTempStorage": "imgui_internal:969", + "ImGuiDataType_": "imgui:1376", + "ImGuiDebugLogFlags_": "imgui_internal:1820", + "ImGuiDir_": "imgui:1392", + "ImGuiDockContext": "imgui_internal:1697", + "ImGuiDockNode": "imgui_internal:1615", + "ImGuiDockNodeFlagsPrivate_": "imgui_internal:1574", + "ImGuiDockNodeFlags_": "imgui:1341", + "ImGuiDockNodeState": "imgui_internal:1606", + "ImGuiDragDropFlags_": "imgui:1354", + "ImGuiFocusedFlags_": "imgui:1301", + "ImGuiGroupData": "imgui_internal:1022", + "ImGuiHoveredFlags_": "imgui:1315", + "ImGuiIO": "imgui:1974", + "ImGuiInputEvent": "imgui_internal:1286", + "ImGuiInputEventAppFocused": "imgui_internal:1284", + "ImGuiInputEventKey": "imgui_internal:1282", + "ImGuiInputEventMouseButton": "imgui_internal:1280", + "ImGuiInputEventMousePos": "imgui_internal:1278", + "ImGuiInputEventMouseViewport": "imgui_internal:1281", + "ImGuiInputEventMouseWheel": "imgui_internal:1279", + "ImGuiInputEventText": "imgui_internal:1283", + "ImGuiInputEventType": "imgui_internal:1252", + "ImGuiInputFlags_": "imgui_internal:1349", + "ImGuiInputSource": "imgui_internal:1265", + "ImGuiInputTextCallbackData": "imgui:2162", + "ImGuiInputTextFlagsPrivate_": "imgui_internal:844", + "ImGuiInputTextFlags_": "imgui:1036", + "ImGuiInputTextState": "imgui_internal:1057", + "ImGuiItemFlags_": "imgui_internal:801", + "ImGuiItemStatusFlags_": "imgui_internal:821", + "ImGuiKey": "imgui:1413", + "ImGuiKeyData": "imgui:1966", + "ImGuiKeyOwnerData": "imgui_internal:1337", + "ImGuiKeyRoutingData": "imgui_internal:1312", + "ImGuiKeyRoutingTable": "imgui_internal:1325", + "ImGuiLastItemData": "imgui_internal:1171", + "ImGuiLayoutType_": "imgui_internal:933", + "ImGuiListClipper": "imgui:2407", + "ImGuiListClipperData": "imgui_internal:1412", + "ImGuiListClipperRange": "imgui_internal:1399", + "ImGuiLocEntry": "imgui_internal:1809", + "ImGuiLocKey": "imgui_internal:1796", + "ImGuiLogType": "imgui_internal:939", + "ImGuiMenuColumns": "imgui_internal:1038", + "ImGuiMetricsConfig": "imgui_internal:1836", + "ImGuiMouseButton_": "imgui:1769", + "ImGuiMouseCursor_": "imgui:1779", + "ImGuiNavHighlightFlags_": "imgui_internal:1451", + "ImGuiNavInput": "imgui:1545", + "ImGuiNavItemData": "imgui_internal:1485", + "ImGuiNavLayer": "imgui_internal:1478", + "ImGuiNavMoveFlags_": "imgui_internal:1460", + "ImGuiNextItemData": "imgui_internal:1158", + "ImGuiNextItemDataFlags_": "imgui_internal:1151", + "ImGuiNextWindowData": "imgui_internal:1124", + "ImGuiNextWindowDataFlags_": "imgui_internal:1107", + "ImGuiOldColumnData": "imgui_internal:1525", + "ImGuiOldColumnFlags_": "imgui_internal:1505", + "ImGuiOldColumns": "imgui_internal:1535", + "ImGuiOnceUponAFrame": "imgui:2282", + "ImGuiPayload": "imgui:2223", + "ImGuiPlatformIO": "imgui:3124", + "ImGuiPlatformImeData": "imgui:3196", + "ImGuiPlatformMonitor": "imgui:3187", + "ImGuiPlotType": "imgui_internal:956", + "ImGuiPopupData": "imgui_internal:1093", + "ImGuiPopupFlags_": "imgui:1097", + "ImGuiPopupPositionPolicy": "imgui_internal:962", + "ImGuiPtrOrIndex": "imgui_internal:1215", + "ImGuiScrollFlags_": "imgui_internal:1437", + "ImGuiSelectableFlagsPrivate_": "imgui_internal:891", + "ImGuiSelectableFlags_": "imgui:1113", + "ImGuiSeparatorFlags_": "imgui_internal:911", + "ImGuiSettingsHandler": "imgui_internal:1776", + "ImGuiShrinkWidthItem": "imgui_internal:1208", + "ImGuiSizeCallbackData": "imgui:2193", + "ImGuiSliderFlagsPrivate_": "imgui_internal:884", + "ImGuiSliderFlags_": "imgui:1752", + "ImGuiSortDirection_": "imgui:1403", + "ImGuiStackLevelInfo": "imgui_internal:1859", + "ImGuiStackSizes": "imgui_internal:1183", + "ImGuiStackTool": "imgui_internal:1871", + "ImGuiStorage": "imgui:2344", + "ImGuiStoragePair": "imgui:2347", + "ImGuiStyle": "imgui:1909", + "ImGuiStyleMod": "imgui_internal:999", + "ImGuiStyleVar_": "imgui:1661", + "ImGuiTabBar": "imgui_internal:2612", + "ImGuiTabBarFlagsPrivate_": "imgui_internal:2574", + "ImGuiTabBarFlags_": "imgui:1138", + "ImGuiTabItem": "imgui_internal:2592", + "ImGuiTabItemFlagsPrivate_": "imgui_internal:2582", + "ImGuiTabItemFlags_": "imgui:1154", + "ImGuiTable": "imgui_internal:2748", + "ImGuiTableBgTarget_": "imgui:1292", + "ImGuiTableCellData": "imgui_internal:2732", + "ImGuiTableColumn": "imgui_internal:2673", + "ImGuiTableColumnFlags_": "imgui:1240", + "ImGuiTableColumnSettings": "imgui_internal:2883", + "ImGuiTableColumnSortSpecs": "imgui:2245", + "ImGuiTableFlags_": "imgui:1189", + "ImGuiTableInstanceData": "imgui_internal:2739", + "ImGuiTableRowFlags_": "imgui:1277", + "ImGuiTableSettings": "imgui_internal:2907", + "ImGuiTableSortSpecs": "imgui:2259", + "ImGuiTableTempData": "imgui_internal:2862", + "ImGuiTextBuffer": "imgui:2317", + "ImGuiTextFilter": "imgui:2290", + "ImGuiTextFlags_": "imgui_internal:919", + "ImGuiTextIndex": "imgui_internal:716", + "ImGuiTextRange": "imgui:2300", + "ImGuiTooltipFlags_": "imgui_internal:925", + "ImGuiTreeNodeFlagsPrivate_": "imgui_internal:906", + "ImGuiTreeNodeFlags_": "imgui:1068", + "ImGuiViewport": "imgui:3040", + "ImGuiViewportFlags_": "imgui:3015", + "ImGuiViewportP": "imgui_internal:1714", + "ImGuiWindow": "imgui_internal:2430", + "ImGuiWindowClass": "imgui:2208", + "ImGuiWindowDockStyle": "imgui_internal:1692", + "ImGuiWindowDockStyleCol": "imgui_internal:1681", + "ImGuiWindowFlags_": "imgui:995", + "ImGuiWindowSettings": "imgui_internal:1759", + "ImGuiWindowStackData": "imgui_internal:1201", + "ImGuiWindowTempData": "imgui_internal:2382", + "ImRect": "imgui_internal:521", + "ImVec1": "imgui_internal:503", + "ImVec2": "imgui:259", + "ImVec2ih": "imgui_internal:511", + "ImVec4": "imgui:272", + "STB_TexteditState": "imstb_textedit:319", + "StbTexteditRow": "imstb_textedit:366", + "StbUndoRecord": "imstb_textedit:301", + "StbUndoState": "imstb_textedit:310" }, "structs": { "ImBitVector": [ @@ -3916,7 +4803,7 @@ }, { "name": "_Data", - "type": "const ImDrawListSharedData*" + "type": "ImDrawListSharedData*" }, { "name": "_OwnerName", @@ -3987,6 +4874,11 @@ "name": "InitialFlags", "type": "ImDrawListFlags" }, + { + "name": "TempBuffer", + "template_type": "ImVec2", + "type": "ImVector_ImVec2" + }, { "name": "ArcFastVtx[48]", "size": 48, @@ -4435,6 +5327,16 @@ "name": "PlatformIO", "type": "ImGuiPlatformIO" }, + { + "name": "InputEventsQueue", + "template_type": "ImGuiInputEvent", + "type": "ImVector_ImGuiInputEvent" + }, + { + "name": "InputEventsTrail", + "template_type": "ImGuiInputEvent", + "type": "ImVector_ImGuiInputEvent" + }, { "name": "Style", "type": "ImGuiStyle" @@ -4551,10 +5453,6 @@ "name": "HoveredWindowUnderMovingWindow", "type": "ImGuiWindow*" }, - { - "name": "HoveredDockNode", - "type": "ImGuiDockNode*" - }, { "name": "MovingWindow", "type": "ImGuiWindow*" @@ -4568,7 +5466,7 @@ "type": "ImVec2" }, { - "name": "WheelingWindowTimer", + "name": "WheelingWindowReleaseTimer", "type": "float" }, { @@ -4587,14 +5485,6 @@ "name": "HoveredIdAllowOverlap", "type": "bool" }, - { - "name": "HoveredIdUsingMouseWheel", - "type": "bool" - }, - { - "name": "HoveredIdPreviousFrameUsingMouseWheel", - "type": "bool" - }, { "name": "HoveredIdDisabled", "type": "bool" @@ -4643,22 +5533,6 @@ "name": "ActiveIdHasBeenEditedThisFrame", "type": "bool" }, - { - "name": "ActiveIdUsingMouseWheel", - "type": "bool" - }, - { - "name": "ActiveIdUsingNavDirMask", - "type": "ImU32" - }, - { - "name": "ActiveIdUsingNavInputMask", - "type": "ImU32" - }, - { - "name": "ActiveIdUsingKeyInputMask", - "type": "ImU64" - }, { "name": "ActiveIdClickOffset", "type": "ImVec2" @@ -4699,10 +5573,39 @@ "name": "LastActiveIdTimer", "type": "float" }, + { + "name": "KeysOwnerData[ImGuiKey_NamedKey_COUNT]", + "size": 140, + "type": "ImGuiKeyOwnerData" + }, + { + "name": "KeysRoutingTable", + "type": "ImGuiKeyRoutingTable" + }, + { + "name": "ActiveIdUsingNavDirMask", + "type": "ImU32" + }, + { + "name": "ActiveIdUsingAllKeyboardKeys", + "type": "bool" + }, + { + "name": "ActiveIdUsingNavInputMask", + "type": "ImU32" + }, + { + "name": "CurrentFocusScopeId", + "type": "ImGuiID" + }, { "name": "CurrentItemFlags", "type": "ImGuiItemFlags" }, + { + "name": "DebugLocateId", + "type": "ImGuiID" + }, { "name": "NextItemData", "type": "ImGuiNextItemData" @@ -4834,7 +5737,7 @@ }, { "name": "NavJustMovedToKeyMods", - "type": "ImGuiKeyModFlags" + "type": "ImGuiKeyChord" }, { "name": "NavNextActivateId", @@ -4910,7 +5813,7 @@ }, { "name": "NavMoveKeyMods", - "type": "ImGuiKeyModFlags" + "type": "ImGuiKeyChord" }, { "name": "NavMoveDir", @@ -4960,6 +5863,14 @@ "name": "NavTabbingResultFirst", "type": "ImGuiNavItemData" }, + { + "name": "ConfigNavWindowingKeyNext", + "type": "ImGuiKeyChord" + }, + { + "name": "ConfigNavWindowingKeyPrev", + "type": "ImGuiKeyChord" + }, { "name": "NavWindowingTarget", "type": "ImGuiWindow*" @@ -4984,6 +5895,14 @@ "name": "NavWindowingToggleLayer", "type": "bool" }, + { + "name": "NavWindowingAccumDeltaPos", + "type": "ImVec2" + }, + { + "name": "NavWindowingAccumDeltaSize", + "type": "ImVec2" + }, { "name": "DimBgRatio", "type": "float" @@ -5118,6 +6037,22 @@ "template_type": "ImGuiShrinkWidthItem", "type": "ImVector_ImGuiShrinkWidthItem" }, + { + "name": "HoverDelayId", + "type": "ImGuiID" + }, + { + "name": "HoverDelayIdPreviousFrame", + "type": "ImGuiID" + }, + { + "name": "HoverDelayTimer", + "type": "float" + }, + { + "name": "HoverDelayClearTimer", + "type": "float" + }, { "name": "MouseLastValidPos", "type": "ImVec2" @@ -5158,6 +6093,10 @@ "name": "ComboPreviewData", "type": "ImGuiComboPreviewData" }, + { + "name": "SliderGrabClickOffset", + "type": "float" + }, { "name": "SliderCurrentAccum", "type": "float" @@ -5194,10 +6133,6 @@ "name": "TooltipOverrideCount", "type": "short" }, - { - "name": "TooltipSlowDelay", - "type": "float" - }, { "name": "ClipboardHandlerData", "template_type": "char", @@ -5209,16 +6144,16 @@ "type": "ImVector_ImGuiID" }, { - "name": "PlatformImePos", - "type": "ImVec2" + "name": "PlatformImeData", + "type": "ImGuiPlatformImeData" }, { - "name": "PlatformImeLastPos", - "type": "ImVec2" + "name": "PlatformImeDataPrev", + "type": "ImGuiPlatformImeData" }, { - "name": "PlatformImePosViewport", - "type": "ImGuiViewportP*" + "name": "PlatformImeViewport", + "type": "ImGuiID" }, { "name": "PlatformLocaleDecimalPoint", @@ -5264,6 +6199,11 @@ "name": "HookIdNext", "type": "ImGuiID" }, + { + "name": "LocalizationTable[ImGuiLocKey_COUNT]", + "size": 8, + "type": "const char*" + }, { "name": "LogEnabled", "type": "bool" @@ -5308,10 +6248,30 @@ "name": "LogDepthToExpandDefault", "type": "int" }, + { + "name": "DebugLogFlags", + "type": "ImGuiDebugLogFlags" + }, + { + "name": "DebugLogBuf", + "type": "ImGuiTextBuffer" + }, + { + "name": "DebugLogIndex", + "type": "ImGuiTextIndex" + }, + { + "name": "DebugLocateFrames", + "type": "ImU8" + }, { "name": "DebugItemPickerActive", "type": "bool" }, + { + "name": "DebugItemPickerMouseButton", + "type": "ImU8" + }, { "name": "DebugItemPickerBreakId", "type": "ImGuiID" @@ -5325,8 +6285,12 @@ "type": "ImGuiStackTool" }, { - "name": "FramerateSecPerFrame[120]", - "size": 120, + "name": "DebugHoveredDockNode", + "type": "ImGuiDockNode*" + }, + { + "name": "FramerateSecPerFrame[60]", + "size": 60, "type": "float" }, { @@ -5354,9 +6318,9 @@ "type": "int" }, { - "name": "TempBuffer[1024*3+1]", - "size": 3073, - "type": "char" + "name": "TempBuffer", + "template_type": "char", + "type": "ImVector_char" } ], "ImGuiContextHook": [ @@ -5695,11 +6659,6 @@ "name": "MouseDragThreshold", "type": "float" }, - { - "name": "KeyMap[ImGuiKey_COUNT]", - "size": 22, - "type": "int" - }, { "name": "KeyRepeatDelay", "type": "float" @@ -5708,6 +6667,14 @@ "name": "KeyRepeatRate", "type": "float" }, + { + "name": "HoverDelayNormal", + "type": "float" + }, + { + "name": "HoverDelayShort", + "type": "float" + }, { "name": "UserData", "type": "void*" @@ -5772,10 +6739,18 @@ "name": "ConfigMacOSXBehaviors", "type": "bool" }, + { + "name": "ConfigInputTrickleEventQueue", + "type": "bool" + }, { "name": "ConfigInputTextCursorBlink", "type": "bool" }, + { + "name": "ConfigInputTextEnterKeepActive", + "type": "bool" + }, { "name": "ConfigDragClickToInputText", "type": "bool" @@ -5825,119 +6800,133 @@ "type": "void*" }, { - "name": "MousePos", - "type": "ImVec2" - }, - { - "name": "MouseDown[5]", - "size": 5, - "type": "bool" + "name": "SetPlatformImeDataFn", + "type": "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" }, { - "name": "MouseWheel", - "type": "float" + "name": "_UnusedPadding", + "type": "void*" }, { - "name": "MouseWheelH", - "type": "float" + "name": "WantCaptureMouse", + "type": "bool" }, { - "name": "MouseHoveredViewport", - "type": "ImGuiID" + "name": "WantCaptureKeyboard", + "type": "bool" }, { - "name": "KeyCtrl", + "name": "WantTextInput", "type": "bool" }, { - "name": "KeyShift", + "name": "WantSetMousePos", "type": "bool" }, { - "name": "KeyAlt", + "name": "WantSaveIniSettings", "type": "bool" }, { - "name": "KeySuper", + "name": "NavActive", "type": "bool" }, { - "name": "KeysDown[512]", - "size": 512, + "name": "NavVisible", "type": "bool" }, { - "name": "NavInputs[ImGuiNavInput_COUNT]", - "size": 20, + "name": "Framerate", "type": "float" }, { - "name": "WantCaptureMouse", - "type": "bool" + "name": "MetricsRenderVertices", + "type": "int" }, { - "name": "WantCaptureKeyboard", - "type": "bool" + "name": "MetricsRenderIndices", + "type": "int" }, { - "name": "WantTextInput", - "type": "bool" + "name": "MetricsRenderWindows", + "type": "int" }, { - "name": "WantSetMousePos", - "type": "bool" + "name": "MetricsActiveWindows", + "type": "int" }, { - "name": "WantSaveIniSettings", - "type": "bool" + "name": "MetricsActiveAllocations", + "type": "int" }, { - "name": "NavActive", - "type": "bool" + "name": "MouseDelta", + "type": "ImVec2" + }, + { + "name": "KeyMap[ImGuiKey_COUNT]", + "size": 652, + "type": "int" }, { - "name": "NavVisible", + "name": "KeysDown[ImGuiKey_COUNT]", + "size": 652, "type": "bool" }, { - "name": "Framerate", + "name": "NavInputs[ImGuiNavInput_COUNT]", + "size": 16, "type": "float" }, { - "name": "MetricsRenderVertices", - "type": "int" + "name": "MousePos", + "type": "ImVec2" }, { - "name": "MetricsRenderIndices", - "type": "int" + "name": "MouseDown[5]", + "size": 5, + "type": "bool" }, { - "name": "MetricsRenderWindows", - "type": "int" + "name": "MouseWheel", + "type": "float" }, { - "name": "MetricsActiveWindows", - "type": "int" + "name": "MouseWheelH", + "type": "float" }, { - "name": "MetricsActiveAllocations", - "type": "int" + "name": "MouseHoveredViewport", + "type": "ImGuiID" }, { - "name": "MouseDelta", - "type": "ImVec2" + "name": "KeyCtrl", + "type": "bool" }, { - "name": "WantCaptureMouseUnlessPopupClose", + "name": "KeyShift", + "type": "bool" + }, + { + "name": "KeyAlt", + "type": "bool" + }, + { + "name": "KeySuper", "type": "bool" }, { "name": "KeyMods", - "type": "ImGuiKeyModFlags" + "type": "ImGuiKeyChord" + }, + { + "name": "KeysData[ImGuiKey_KeysData_SIZE]", + "size": 652, + "type": "ImGuiKeyData" }, { - "name": "KeyModsPrev", - "type": "ImGuiKeyModFlags" + "name": "WantCaptureMouseUnlessPopupClose", + "type": "bool" }, { "name": "MousePosPrev", @@ -6009,31 +6998,23 @@ "type": "float" }, { - "name": "KeysDownDuration[512]", - "size": 512, - "type": "float" - }, - { - "name": "KeysDownDurationPrev[512]", - "size": 512, + "name": "PenPressure", "type": "float" }, { - "name": "NavInputsDownDuration[ImGuiNavInput_COUNT]", - "size": 20, - "type": "float" + "name": "AppFocusLost", + "type": "bool" }, { - "name": "NavInputsDownDurationPrev[ImGuiNavInput_COUNT]", - "size": 20, - "type": "float" + "name": "AppAcceptingEvents", + "type": "bool" }, { - "name": "PenPressure", - "type": "float" + "name": "BackendUsingLegacyKeyArrays", + "type": "ImS8" }, { - "name": "AppFocusLost", + "name": "BackendUsingLegacyNavInputArray", "type": "bool" }, { @@ -6046,6 +7027,86 @@ "type": "ImVector_ImWchar" } ], + "ImGuiInputEvent": [ + { + "name": "Type", + "type": "ImGuiInputEventType" + }, + { + "name": "Source", + "type": "ImGuiInputSource" + }, + { + "name": "", + "type": "union { ImGuiInputEventMousePos MousePos; ImGuiInputEventMouseWheel MouseWheel; ImGuiInputEventMouseButton MouseButton; ImGuiInputEventMouseViewport MouseViewport; ImGuiInputEventKey Key; ImGuiInputEventText Text; ImGuiInputEventAppFocused AppFocused;}" + }, + { + "name": "AddedByTestEngine", + "type": "bool" + } + ], + "ImGuiInputEventAppFocused": [ + { + "name": "Focused", + "type": "bool" + } + ], + "ImGuiInputEventKey": [ + { + "name": "Key", + "type": "ImGuiKey" + }, + { + "name": "Down", + "type": "bool" + }, + { + "name": "AnalogValue", + "type": "float" + } + ], + "ImGuiInputEventMouseButton": [ + { + "name": "Button", + "type": "int" + }, + { + "name": "Down", + "type": "bool" + } + ], + "ImGuiInputEventMousePos": [ + { + "name": "PosX", + "type": "float" + }, + { + "name": "PosY", + "type": "float" + } + ], + "ImGuiInputEventMouseViewport": [ + { + "name": "HoveredViewportID", + "type": "ImGuiID" + } + ], + "ImGuiInputEventMouseWheel": [ + { + "name": "WheelX", + "type": "float" + }, + { + "name": "WheelY", + "type": "float" + } + ], + "ImGuiInputEventText": [ + { + "name": "Char", + "type": "unsigned int" + } + ], "ImGuiInputTextCallbackData": [ { "name": "EventFlag", @@ -6161,6 +7222,81 @@ "type": "ImGuiInputTextFlags" } ], + "ImGuiKeyData": [ + { + "name": "Down", + "type": "bool" + }, + { + "name": "DownDuration", + "type": "float" + }, + { + "name": "DownDurationPrev", + "type": "float" + }, + { + "name": "AnalogValue", + "type": "float" + } + ], + "ImGuiKeyOwnerData": [ + { + "name": "OwnerCurr", + "type": "ImGuiID" + }, + { + "name": "OwnerNext", + "type": "ImGuiID" + }, + { + "name": "LockThisFrame", + "type": "bool" + }, + { + "name": "LockUntilRelease", + "type": "bool" + } + ], + "ImGuiKeyRoutingData": [ + { + "name": "NextEntryIndex", + "type": "ImGuiKeyRoutingIndex" + }, + { + "name": "Mods", + "type": "ImU16" + }, + { + "name": "RoutingNextScore", + "type": "ImU8" + }, + { + "name": "RoutingCurr", + "type": "ImGuiID" + }, + { + "name": "RoutingNext", + "type": "ImGuiID" + } + ], + "ImGuiKeyRoutingTable": [ + { + "name": "Index[ImGuiKey_NamedKey_COUNT]", + "size": 140, + "type": "ImGuiKeyRoutingIndex" + }, + { + "name": "Entries", + "template_type": "ImGuiKeyRoutingData", + "type": "ImVector_ImGuiKeyRoutingData" + }, + { + "name": "EntriesNext", + "template_type": "ImGuiKeyRoutingData", + "type": "ImVector_ImGuiKeyRoutingData" + } + ], "ImGuiLastItemData": [ { "name": "ID", @@ -6258,6 +7394,16 @@ "type": "ImS8" } ], + "ImGuiLocEntry": [ + { + "name": "Key", + "type": "ImGuiLocKey" + }, + { + "name": "Text", + "type": "const char*" + } + ], "ImGuiMenuColumns": [ { "name": "TotalWidth", @@ -6294,6 +7440,10 @@ } ], "ImGuiMetricsConfig": [ + { + "name": "ShowDebugLog", + "type": "bool" + }, { "name": "ShowStackTool", "type": "bool" @@ -6668,10 +7818,6 @@ "name": "Platform_OnChangedViewport", "type": "void(*)(ImGuiViewport* vp)" }, - { - "name": "Platform_SetImeInputPos", - "type": "void(*)(ImGuiViewport* vp,ImVec2 pos)" - }, { "name": "Platform_CreateVkSurface", "type": "int(*)(ImGuiViewport* vp,ImU64 vk_inst,const void* vk_allocators,ImU64* out_vk_surface)" @@ -6707,6 +7853,20 @@ "type": "ImVector_ImGuiViewportPtr" } ], + "ImGuiPlatformImeData": [ + { + "name": "WantVisible", + "type": "bool" + }, + { + "name": "InputPos", + "type": "ImVec2" + }, + { + "name": "InputLineHeight", + "type": "float" + } + ], "ImGuiPlatformMonitor": [ { "name": "MainPos", @@ -6739,9 +7899,13 @@ "type": "ImGuiWindow*" }, { - "name": "SourceWindow", + "name": "BackupNavWindow", "type": "ImGuiWindow*" }, + { + "name": "ParentNavLayer", + "type": "int" + }, { "name": "OpenFrameCount", "type": "int" @@ -6815,6 +7979,10 @@ { "name": "Width", "type": "float" + }, + { + "name": "InitialWidth", + "type": "float" } ], "ImGuiSizeCallbackData": [ @@ -6849,8 +8017,13 @@ "type": "bool" }, { - "name": "Desc[58]", - "size": 58, + "bitfield": "8", + "name": "DataType", + "type": "ImGuiDataType" + }, + { + "name": "Desc[57]", + "size": 57, "type": "char" } ], @@ -6909,6 +8082,14 @@ "name": "Results", "template_type": "ImGuiStackLevelInfo", "type": "ImVector_ImGuiStackLevelInfo" + }, + { + "name": "CopyToClipboardOnCtrlC", + "type": "bool" + }, + { + "name": "CopyToClipboardLastTime", + "type": "float" } ], "ImGuiStorage": [ @@ -7265,6 +8446,10 @@ "name": "ContentWidth", "type": "float" }, + { + "name": "RequestedWidth", + "type": "float" + }, { "name": "NameOffset", "type": "ImS32" @@ -7445,14 +8630,6 @@ "name": "CellSpacingX2", "type": "float" }, - { - "name": "LastOuterHeight", - "type": "float" - }, - { - "name": "LastFirstRowHeight", - "type": "float" - }, { "name": "InnerWidth", "type": "float" @@ -7465,6 +8642,10 @@ "name": "ColumnsAutoFitWidth", "type": "float" }, + { + "name": "ColumnsStretchSumWeights", + "type": "float" + }, { "name": "ResizedColumnNextWidth", "type": "float" @@ -7529,6 +8710,15 @@ "name": "DrawSplitter", "type": "ImDrawListSplitter*" }, + { + "name": "InstanceDataFirst", + "type": "ImGuiTableInstanceData" + }, + { + "name": "InstanceDataExtra", + "template_type": "ImGuiTableInstanceData", + "type": "ImVector_ImGuiTableInstanceData" + }, { "name": "SortSpecsSingle", "type": "ImGuiTableColumnSortSpecs" @@ -7938,6 +9128,16 @@ "type": "ImGuiSortDirection" } ], + "ImGuiTableInstanceData": [ + { + "name": "LastOuterHeight", + "type": "float" + }, + { + "name": "LastFirstRowHeight", + "type": "float" + } + ], "ImGuiTableSettings": [ { "name": "ID", @@ -8051,6 +9251,17 @@ "type": "int" } ], + "ImGuiTextIndex": [ + { + "name": "LineOffsets", + "template_type": "int", + "type": "ImVector_int" + }, + { + "name": "EndOffset", + "type": "int" + } + ], "ImGuiTextRange": [ { "name": "b", @@ -8114,6 +9325,10 @@ "name": "PlatformHandleRaw", "type": "void*" }, + { + "name": "PlatformWindowCreated", + "type": "bool" + }, { "name": "PlatformRequestMove", "type": "bool" @@ -8164,10 +9379,6 @@ "name": "PlatformMonitor", "type": "short" }, - { - "name": "PlatformWindowCreated", - "type": "bool" - }, { "name": "Window", "type": "ImGuiWindow*" @@ -8300,6 +9511,10 @@ "name": "MoveId", "type": "ImGuiID" }, + { + "name": "TabId", + "type": "ImGuiID" + }, { "name": "ChildId", "type": "ImGuiID" @@ -8392,6 +9607,10 @@ "name": "BeginCount", "type": "short" }, + { + "name": "BeginCountPreviousFrame", + "type": "short" + }, { "name": "BeginOrderWithinParent", "type": "short" @@ -8604,6 +9823,10 @@ "size": 2, "type": "ImRect" }, + { + "name": "NavRootFocusScopeId", + "type": "ImGuiID" + }, { "name": "MemoryDrawListIdxCapacity", "type": "int" @@ -8799,6 +10022,14 @@ "name": "PrevLineTextBaseOffset", "type": "float" }, + { + "name": "IsSameLine", + "type": "bool" + }, + { + "name": "IsSetPos", + "type": "bool" + }, { "name": "Indent", "type": "ImVec1" @@ -8827,10 +10058,6 @@ "name": "NavLayersActiveMaskNext", "type": "short" }, - { - "name": "NavFocusScopeIdCurrent", - "type": "ImGuiID" - }, { "name": "NavHideHighlightOneFrame", "type": "bool" diff --git a/imgui-sys/third-party/imgui-docking/structs_and_enums.lua b/imgui-sys/third-party/imgui-docking/structs_and_enums.lua index afa4e8253..e4c3fb841 100644 --- a/imgui-sys/third-party/imgui-docking/structs_and_enums.lua +++ b/imgui-sys/third-party/imgui-docking/structs_and_enums.lua @@ -220,13 +220,21 @@ defs["enums"]["ImGuiButtonFlagsPrivate_"][15]["calc_value"] = 524288 defs["enums"]["ImGuiButtonFlagsPrivate_"][15]["name"] = "ImGuiButtonFlags_NoHoveredOnFocus" defs["enums"]["ImGuiButtonFlagsPrivate_"][15]["value"] = "1 << 19" defs["enums"]["ImGuiButtonFlagsPrivate_"][16] = {} -defs["enums"]["ImGuiButtonFlagsPrivate_"][16]["calc_value"] = 1008 -defs["enums"]["ImGuiButtonFlagsPrivate_"][16]["name"] = "ImGuiButtonFlags_PressedOnMask_" -defs["enums"]["ImGuiButtonFlagsPrivate_"][16]["value"] = "ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold" +defs["enums"]["ImGuiButtonFlagsPrivate_"][16]["calc_value"] = 1048576 +defs["enums"]["ImGuiButtonFlagsPrivate_"][16]["name"] = "ImGuiButtonFlags_NoSetKeyOwner" +defs["enums"]["ImGuiButtonFlagsPrivate_"][16]["value"] = "1 << 20" defs["enums"]["ImGuiButtonFlagsPrivate_"][17] = {} -defs["enums"]["ImGuiButtonFlagsPrivate_"][17]["calc_value"] = 32 -defs["enums"]["ImGuiButtonFlagsPrivate_"][17]["name"] = "ImGuiButtonFlags_PressedOnDefault_" -defs["enums"]["ImGuiButtonFlagsPrivate_"][17]["value"] = "ImGuiButtonFlags_PressedOnClickRelease" +defs["enums"]["ImGuiButtonFlagsPrivate_"][17]["calc_value"] = 2097152 +defs["enums"]["ImGuiButtonFlagsPrivate_"][17]["name"] = "ImGuiButtonFlags_NoTestKeyOwner" +defs["enums"]["ImGuiButtonFlagsPrivate_"][17]["value"] = "1 << 21" +defs["enums"]["ImGuiButtonFlagsPrivate_"][18] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][18]["calc_value"] = 1008 +defs["enums"]["ImGuiButtonFlagsPrivate_"][18]["name"] = "ImGuiButtonFlags_PressedOnMask_" +defs["enums"]["ImGuiButtonFlagsPrivate_"][18]["value"] = "ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold" +defs["enums"]["ImGuiButtonFlagsPrivate_"][19] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][19]["calc_value"] = 32 +defs["enums"]["ImGuiButtonFlagsPrivate_"][19]["name"] = "ImGuiButtonFlags_PressedOnDefault_" +defs["enums"]["ImGuiButtonFlagsPrivate_"][19]["value"] = "ImGuiButtonFlags_PressedOnClickRelease" defs["enums"]["ImGuiButtonFlags_"] = {} defs["enums"]["ImGuiButtonFlags_"][1] = {} defs["enums"]["ImGuiButtonFlags_"][1]["calc_value"] = 0 @@ -814,6 +822,51 @@ defs["enums"]["ImGuiDataType_"][11] = {} defs["enums"]["ImGuiDataType_"][11]["calc_value"] = 10 defs["enums"]["ImGuiDataType_"][11]["name"] = "ImGuiDataType_COUNT" defs["enums"]["ImGuiDataType_"][11]["value"] = "10" +defs["enums"]["ImGuiDebugLogFlags_"] = {} +defs["enums"]["ImGuiDebugLogFlags_"][1] = {} +defs["enums"]["ImGuiDebugLogFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiDebugLogFlags_"][1]["name"] = "ImGuiDebugLogFlags_None" +defs["enums"]["ImGuiDebugLogFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiDebugLogFlags_"][2] = {} +defs["enums"]["ImGuiDebugLogFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiDebugLogFlags_"][2]["name"] = "ImGuiDebugLogFlags_EventActiveId" +defs["enums"]["ImGuiDebugLogFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiDebugLogFlags_"][3] = {} +defs["enums"]["ImGuiDebugLogFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiDebugLogFlags_"][3]["name"] = "ImGuiDebugLogFlags_EventFocus" +defs["enums"]["ImGuiDebugLogFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiDebugLogFlags_"][4] = {} +defs["enums"]["ImGuiDebugLogFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiDebugLogFlags_"][4]["name"] = "ImGuiDebugLogFlags_EventPopup" +defs["enums"]["ImGuiDebugLogFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiDebugLogFlags_"][5] = {} +defs["enums"]["ImGuiDebugLogFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiDebugLogFlags_"][5]["name"] = "ImGuiDebugLogFlags_EventNav" +defs["enums"]["ImGuiDebugLogFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiDebugLogFlags_"][6] = {} +defs["enums"]["ImGuiDebugLogFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiDebugLogFlags_"][6]["name"] = "ImGuiDebugLogFlags_EventClipper" +defs["enums"]["ImGuiDebugLogFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiDebugLogFlags_"][7] = {} +defs["enums"]["ImGuiDebugLogFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiDebugLogFlags_"][7]["name"] = "ImGuiDebugLogFlags_EventIO" +defs["enums"]["ImGuiDebugLogFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiDebugLogFlags_"][8] = {} +defs["enums"]["ImGuiDebugLogFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiDebugLogFlags_"][8]["name"] = "ImGuiDebugLogFlags_EventDocking" +defs["enums"]["ImGuiDebugLogFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiDebugLogFlags_"][9] = {} +defs["enums"]["ImGuiDebugLogFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiDebugLogFlags_"][9]["name"] = "ImGuiDebugLogFlags_EventViewport" +defs["enums"]["ImGuiDebugLogFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiDebugLogFlags_"][10] = {} +defs["enums"]["ImGuiDebugLogFlags_"][10]["calc_value"] = 255 +defs["enums"]["ImGuiDebugLogFlags_"][10]["name"] = "ImGuiDebugLogFlags_EventMask_" +defs["enums"]["ImGuiDebugLogFlags_"][10]["value"] = "ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport" +defs["enums"]["ImGuiDebugLogFlags_"][11] = {} +defs["enums"]["ImGuiDebugLogFlags_"][11]["calc_value"] = 1024 +defs["enums"]["ImGuiDebugLogFlags_"][11]["name"] = "ImGuiDebugLogFlags_OutputToTTY" +defs["enums"]["ImGuiDebugLogFlags_"][11]["value"] = "1 << 10" defs["enums"]["ImGuiDir_"] = {} defs["enums"]["ImGuiDir_"][1] = {} defs["enums"]["ImGuiDir_"][1]["calc_value"] = -1 @@ -1078,38 +1131,163 @@ defs["enums"]["ImGuiHoveredFlags_"][10]["calc_value"] = 512 defs["enums"]["ImGuiHoveredFlags_"][10]["name"] = "ImGuiHoveredFlags_AllowWhenDisabled" defs["enums"]["ImGuiHoveredFlags_"][10]["value"] = "1 << 9" defs["enums"]["ImGuiHoveredFlags_"][11] = {} -defs["enums"]["ImGuiHoveredFlags_"][11]["calc_value"] = 416 -defs["enums"]["ImGuiHoveredFlags_"][11]["name"] = "ImGuiHoveredFlags_RectOnly" -defs["enums"]["ImGuiHoveredFlags_"][11]["value"] = "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped" +defs["enums"]["ImGuiHoveredFlags_"][11]["calc_value"] = 1024 +defs["enums"]["ImGuiHoveredFlags_"][11]["name"] = "ImGuiHoveredFlags_NoNavOverride" +defs["enums"]["ImGuiHoveredFlags_"][11]["value"] = "1 << 10" defs["enums"]["ImGuiHoveredFlags_"][12] = {} -defs["enums"]["ImGuiHoveredFlags_"][12]["calc_value"] = 3 -defs["enums"]["ImGuiHoveredFlags_"][12]["name"] = "ImGuiHoveredFlags_RootAndChildWindows" -defs["enums"]["ImGuiHoveredFlags_"][12]["value"] = "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" -defs["enums"]["ImGuiInputReadMode"] = {} -defs["enums"]["ImGuiInputReadMode"][1] = {} -defs["enums"]["ImGuiInputReadMode"][1]["calc_value"] = 0 -defs["enums"]["ImGuiInputReadMode"][1]["name"] = "ImGuiInputReadMode_Down" -defs["enums"]["ImGuiInputReadMode"][1]["value"] = "0" -defs["enums"]["ImGuiInputReadMode"][2] = {} -defs["enums"]["ImGuiInputReadMode"][2]["calc_value"] = 1 -defs["enums"]["ImGuiInputReadMode"][2]["name"] = "ImGuiInputReadMode_Pressed" -defs["enums"]["ImGuiInputReadMode"][2]["value"] = "1" -defs["enums"]["ImGuiInputReadMode"][3] = {} -defs["enums"]["ImGuiInputReadMode"][3]["calc_value"] = 2 -defs["enums"]["ImGuiInputReadMode"][3]["name"] = "ImGuiInputReadMode_Released" -defs["enums"]["ImGuiInputReadMode"][3]["value"] = "2" -defs["enums"]["ImGuiInputReadMode"][4] = {} -defs["enums"]["ImGuiInputReadMode"][4]["calc_value"] = 3 -defs["enums"]["ImGuiInputReadMode"][4]["name"] = "ImGuiInputReadMode_Repeat" -defs["enums"]["ImGuiInputReadMode"][4]["value"] = "3" -defs["enums"]["ImGuiInputReadMode"][5] = {} -defs["enums"]["ImGuiInputReadMode"][5]["calc_value"] = 4 -defs["enums"]["ImGuiInputReadMode"][5]["name"] = "ImGuiInputReadMode_RepeatSlow" -defs["enums"]["ImGuiInputReadMode"][5]["value"] = "4" -defs["enums"]["ImGuiInputReadMode"][6] = {} -defs["enums"]["ImGuiInputReadMode"][6]["calc_value"] = 5 -defs["enums"]["ImGuiInputReadMode"][6]["name"] = "ImGuiInputReadMode_RepeatFast" -defs["enums"]["ImGuiInputReadMode"][6]["value"] = "5" +defs["enums"]["ImGuiHoveredFlags_"][12]["calc_value"] = 416 +defs["enums"]["ImGuiHoveredFlags_"][12]["name"] = "ImGuiHoveredFlags_RectOnly" +defs["enums"]["ImGuiHoveredFlags_"][12]["value"] = "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped" +defs["enums"]["ImGuiHoveredFlags_"][13] = {} +defs["enums"]["ImGuiHoveredFlags_"][13]["calc_value"] = 3 +defs["enums"]["ImGuiHoveredFlags_"][13]["name"] = "ImGuiHoveredFlags_RootAndChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][13]["value"] = "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][14] = {} +defs["enums"]["ImGuiHoveredFlags_"][14]["calc_value"] = 2048 +defs["enums"]["ImGuiHoveredFlags_"][14]["name"] = "ImGuiHoveredFlags_DelayNormal" +defs["enums"]["ImGuiHoveredFlags_"][14]["value"] = "1 << 11" +defs["enums"]["ImGuiHoveredFlags_"][15] = {} +defs["enums"]["ImGuiHoveredFlags_"][15]["calc_value"] = 4096 +defs["enums"]["ImGuiHoveredFlags_"][15]["name"] = "ImGuiHoveredFlags_DelayShort" +defs["enums"]["ImGuiHoveredFlags_"][15]["value"] = "1 << 12" +defs["enums"]["ImGuiHoveredFlags_"][16] = {} +defs["enums"]["ImGuiHoveredFlags_"][16]["calc_value"] = 8192 +defs["enums"]["ImGuiHoveredFlags_"][16]["name"] = "ImGuiHoveredFlags_NoSharedDelay" +defs["enums"]["ImGuiHoveredFlags_"][16]["value"] = "1 << 13" +defs["enums"]["ImGuiInputEventType"] = {} +defs["enums"]["ImGuiInputEventType"][1] = {} +defs["enums"]["ImGuiInputEventType"][1]["calc_value"] = 0 +defs["enums"]["ImGuiInputEventType"][1]["name"] = "ImGuiInputEventType_None" +defs["enums"]["ImGuiInputEventType"][1]["value"] = "0" +defs["enums"]["ImGuiInputEventType"][2] = {} +defs["enums"]["ImGuiInputEventType"][2]["calc_value"] = 1 +defs["enums"]["ImGuiInputEventType"][2]["name"] = "ImGuiInputEventType_MousePos" +defs["enums"]["ImGuiInputEventType"][2]["value"] = "1" +defs["enums"]["ImGuiInputEventType"][3] = {} +defs["enums"]["ImGuiInputEventType"][3]["calc_value"] = 2 +defs["enums"]["ImGuiInputEventType"][3]["name"] = "ImGuiInputEventType_MouseWheel" +defs["enums"]["ImGuiInputEventType"][3]["value"] = "2" +defs["enums"]["ImGuiInputEventType"][4] = {} +defs["enums"]["ImGuiInputEventType"][4]["calc_value"] = 3 +defs["enums"]["ImGuiInputEventType"][4]["name"] = "ImGuiInputEventType_MouseButton" +defs["enums"]["ImGuiInputEventType"][4]["value"] = "3" +defs["enums"]["ImGuiInputEventType"][5] = {} +defs["enums"]["ImGuiInputEventType"][5]["calc_value"] = 4 +defs["enums"]["ImGuiInputEventType"][5]["name"] = "ImGuiInputEventType_MouseViewport" +defs["enums"]["ImGuiInputEventType"][5]["value"] = "4" +defs["enums"]["ImGuiInputEventType"][6] = {} +defs["enums"]["ImGuiInputEventType"][6]["calc_value"] = 5 +defs["enums"]["ImGuiInputEventType"][6]["name"] = "ImGuiInputEventType_Key" +defs["enums"]["ImGuiInputEventType"][6]["value"] = "5" +defs["enums"]["ImGuiInputEventType"][7] = {} +defs["enums"]["ImGuiInputEventType"][7]["calc_value"] = 6 +defs["enums"]["ImGuiInputEventType"][7]["name"] = "ImGuiInputEventType_Text" +defs["enums"]["ImGuiInputEventType"][7]["value"] = "6" +defs["enums"]["ImGuiInputEventType"][8] = {} +defs["enums"]["ImGuiInputEventType"][8]["calc_value"] = 7 +defs["enums"]["ImGuiInputEventType"][8]["name"] = "ImGuiInputEventType_Focus" +defs["enums"]["ImGuiInputEventType"][8]["value"] = "7" +defs["enums"]["ImGuiInputEventType"][9] = {} +defs["enums"]["ImGuiInputEventType"][9]["calc_value"] = 8 +defs["enums"]["ImGuiInputEventType"][9]["name"] = "ImGuiInputEventType_COUNT" +defs["enums"]["ImGuiInputEventType"][9]["value"] = "8" +defs["enums"]["ImGuiInputFlags_"] = {} +defs["enums"]["ImGuiInputFlags_"][1] = {} +defs["enums"]["ImGuiInputFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiInputFlags_"][1]["name"] = "ImGuiInputFlags_None" +defs["enums"]["ImGuiInputFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiInputFlags_"][2] = {} +defs["enums"]["ImGuiInputFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiInputFlags_"][2]["name"] = "ImGuiInputFlags_Repeat" +defs["enums"]["ImGuiInputFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiInputFlags_"][3] = {} +defs["enums"]["ImGuiInputFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiInputFlags_"][3]["name"] = "ImGuiInputFlags_RepeatRateDefault" +defs["enums"]["ImGuiInputFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiInputFlags_"][4] = {} +defs["enums"]["ImGuiInputFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiInputFlags_"][4]["name"] = "ImGuiInputFlags_RepeatRateNavMove" +defs["enums"]["ImGuiInputFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiInputFlags_"][5] = {} +defs["enums"]["ImGuiInputFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiInputFlags_"][5]["name"] = "ImGuiInputFlags_RepeatRateNavTweak" +defs["enums"]["ImGuiInputFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiInputFlags_"][6] = {} +defs["enums"]["ImGuiInputFlags_"][6]["calc_value"] = 14 +defs["enums"]["ImGuiInputFlags_"][6]["name"] = "ImGuiInputFlags_RepeatRateMask_" +defs["enums"]["ImGuiInputFlags_"][6]["value"] = "ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak" +defs["enums"]["ImGuiInputFlags_"][7] = {} +defs["enums"]["ImGuiInputFlags_"][7]["calc_value"] = 16 +defs["enums"]["ImGuiInputFlags_"][7]["name"] = "ImGuiInputFlags_CondHovered" +defs["enums"]["ImGuiInputFlags_"][7]["value"] = "1 << 4" +defs["enums"]["ImGuiInputFlags_"][8] = {} +defs["enums"]["ImGuiInputFlags_"][8]["calc_value"] = 32 +defs["enums"]["ImGuiInputFlags_"][8]["name"] = "ImGuiInputFlags_CondActive" +defs["enums"]["ImGuiInputFlags_"][8]["value"] = "1 << 5" +defs["enums"]["ImGuiInputFlags_"][9] = {} +defs["enums"]["ImGuiInputFlags_"][9]["calc_value"] = 48 +defs["enums"]["ImGuiInputFlags_"][9]["name"] = "ImGuiInputFlags_CondDefault_" +defs["enums"]["ImGuiInputFlags_"][9]["value"] = "ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive" +defs["enums"]["ImGuiInputFlags_"][10] = {} +defs["enums"]["ImGuiInputFlags_"][10]["calc_value"] = 48 +defs["enums"]["ImGuiInputFlags_"][10]["name"] = "ImGuiInputFlags_CondMask_" +defs["enums"]["ImGuiInputFlags_"][10]["value"] = "ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive" +defs["enums"]["ImGuiInputFlags_"][11] = {} +defs["enums"]["ImGuiInputFlags_"][11]["calc_value"] = 64 +defs["enums"]["ImGuiInputFlags_"][11]["name"] = "ImGuiInputFlags_LockThisFrame" +defs["enums"]["ImGuiInputFlags_"][11]["value"] = "1 << 6" +defs["enums"]["ImGuiInputFlags_"][12] = {} +defs["enums"]["ImGuiInputFlags_"][12]["calc_value"] = 128 +defs["enums"]["ImGuiInputFlags_"][12]["name"] = "ImGuiInputFlags_LockUntilRelease" +defs["enums"]["ImGuiInputFlags_"][12]["value"] = "1 << 7" +defs["enums"]["ImGuiInputFlags_"][13] = {} +defs["enums"]["ImGuiInputFlags_"][13]["calc_value"] = 256 +defs["enums"]["ImGuiInputFlags_"][13]["name"] = "ImGuiInputFlags_RouteFocused" +defs["enums"]["ImGuiInputFlags_"][13]["value"] = "1 << 8" +defs["enums"]["ImGuiInputFlags_"][14] = {} +defs["enums"]["ImGuiInputFlags_"][14]["calc_value"] = 512 +defs["enums"]["ImGuiInputFlags_"][14]["name"] = "ImGuiInputFlags_RouteGlobalLow" +defs["enums"]["ImGuiInputFlags_"][14]["value"] = "1 << 9" +defs["enums"]["ImGuiInputFlags_"][15] = {} +defs["enums"]["ImGuiInputFlags_"][15]["calc_value"] = 1024 +defs["enums"]["ImGuiInputFlags_"][15]["name"] = "ImGuiInputFlags_RouteGlobal" +defs["enums"]["ImGuiInputFlags_"][15]["value"] = "1 << 10" +defs["enums"]["ImGuiInputFlags_"][16] = {} +defs["enums"]["ImGuiInputFlags_"][16]["calc_value"] = 2048 +defs["enums"]["ImGuiInputFlags_"][16]["name"] = "ImGuiInputFlags_RouteGlobalHigh" +defs["enums"]["ImGuiInputFlags_"][16]["value"] = "1 << 11" +defs["enums"]["ImGuiInputFlags_"][17] = {} +defs["enums"]["ImGuiInputFlags_"][17]["calc_value"] = 3840 +defs["enums"]["ImGuiInputFlags_"][17]["name"] = "ImGuiInputFlags_RouteMask_" +defs["enums"]["ImGuiInputFlags_"][17]["value"] = "ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh" +defs["enums"]["ImGuiInputFlags_"][18] = {} +defs["enums"]["ImGuiInputFlags_"][18]["calc_value"] = 4096 +defs["enums"]["ImGuiInputFlags_"][18]["name"] = "ImGuiInputFlags_RouteAlways" +defs["enums"]["ImGuiInputFlags_"][18]["value"] = "1 << 12" +defs["enums"]["ImGuiInputFlags_"][19] = {} +defs["enums"]["ImGuiInputFlags_"][19]["calc_value"] = 8192 +defs["enums"]["ImGuiInputFlags_"][19]["name"] = "ImGuiInputFlags_RouteUnlessBgFocused" +defs["enums"]["ImGuiInputFlags_"][19]["value"] = "1 << 13" +defs["enums"]["ImGuiInputFlags_"][20] = {} +defs["enums"]["ImGuiInputFlags_"][20]["calc_value"] = 12288 +defs["enums"]["ImGuiInputFlags_"][20]["name"] = "ImGuiInputFlags_RouteExtraMask_" +defs["enums"]["ImGuiInputFlags_"][20]["value"] = "ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused" +defs["enums"]["ImGuiInputFlags_"][21] = {} +defs["enums"]["ImGuiInputFlags_"][21]["calc_value"] = 15 +defs["enums"]["ImGuiInputFlags_"][21]["name"] = "ImGuiInputFlags_SupportedByIsKeyPressed" +defs["enums"]["ImGuiInputFlags_"][21]["value"] = "ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_" +defs["enums"]["ImGuiInputFlags_"][22] = {} +defs["enums"]["ImGuiInputFlags_"][22]["calc_value"] = 16143 +defs["enums"]["ImGuiInputFlags_"][22]["name"] = "ImGuiInputFlags_SupportedByShortcut" +defs["enums"]["ImGuiInputFlags_"][22]["value"] = "ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_" +defs["enums"]["ImGuiInputFlags_"][23] = {} +defs["enums"]["ImGuiInputFlags_"][23]["calc_value"] = 192 +defs["enums"]["ImGuiInputFlags_"][23]["name"] = "ImGuiInputFlags_SupportedBySetKeyOwner" +defs["enums"]["ImGuiInputFlags_"][23]["value"] = "ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease" +defs["enums"]["ImGuiInputFlags_"][24] = {} +defs["enums"]["ImGuiInputFlags_"][24]["calc_value"] = 240 +defs["enums"]["ImGuiInputFlags_"][24]["name"] = "ImGuiInputFlags_SupportedBySetItemKeyOwner" +defs["enums"]["ImGuiInputFlags_"][24]["value"] = "ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_" defs["enums"]["ImGuiInputSource"] = {} defs["enums"]["ImGuiInputSource"][1] = {} defs["enums"]["ImGuiInputSource"][1]["calc_value"] = 0 @@ -1129,11 +1307,11 @@ defs["enums"]["ImGuiInputSource"][4]["name"] = "ImGuiInputSource_Gamepad" defs["enums"]["ImGuiInputSource"][4]["value"] = "3" defs["enums"]["ImGuiInputSource"][5] = {} defs["enums"]["ImGuiInputSource"][5]["calc_value"] = 4 -defs["enums"]["ImGuiInputSource"][5]["name"] = "ImGuiInputSource_Nav" +defs["enums"]["ImGuiInputSource"][5]["name"] = "ImGuiInputSource_Clipboard" defs["enums"]["ImGuiInputSource"][5]["value"] = "4" defs["enums"]["ImGuiInputSource"][6] = {} defs["enums"]["ImGuiInputSource"][6]["calc_value"] = 5 -defs["enums"]["ImGuiInputSource"][6]["name"] = "ImGuiInputSource_Clipboard" +defs["enums"]["ImGuiInputSource"][6]["name"] = "ImGuiInputSource_Nav" defs["enums"]["ImGuiInputSource"][6]["value"] = "5" defs["enums"]["ImGuiInputSource"][7] = {} defs["enums"]["ImGuiInputSource"][7]["calc_value"] = 6 @@ -1237,6 +1415,10 @@ defs["enums"]["ImGuiInputTextFlags_"][21] = {} defs["enums"]["ImGuiInputTextFlags_"][21]["calc_value"] = 524288 defs["enums"]["ImGuiInputTextFlags_"][21]["name"] = "ImGuiInputTextFlags_CallbackEdit" defs["enums"]["ImGuiInputTextFlags_"][21]["value"] = "1 << 19" +defs["enums"]["ImGuiInputTextFlags_"][22] = {} +defs["enums"]["ImGuiInputTextFlags_"][22]["calc_value"] = 1048576 +defs["enums"]["ImGuiInputTextFlags_"][22]["name"] = "ImGuiInputTextFlags_EscapeClearsAll" +defs["enums"]["ImGuiInputTextFlags_"][22]["value"] = "1 << 20" defs["enums"]["ImGuiItemFlags_"] = {} defs["enums"]["ImGuiItemFlags_"][1] = {} defs["enums"]["ImGuiItemFlags_"][1]["calc_value"] = 0 @@ -1276,8 +1458,12 @@ defs["enums"]["ImGuiItemFlags_"][9]["name"] = "ImGuiItemFlags_ReadOnly" defs["enums"]["ImGuiItemFlags_"][9]["value"] = "1 << 7" defs["enums"]["ImGuiItemFlags_"][10] = {} defs["enums"]["ImGuiItemFlags_"][10]["calc_value"] = 256 -defs["enums"]["ImGuiItemFlags_"][10]["name"] = "ImGuiItemFlags_Inputable" +defs["enums"]["ImGuiItemFlags_"][10]["name"] = "ImGuiItemFlags_NoWindowHoverableCheck" defs["enums"]["ImGuiItemFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiItemFlags_"][11] = {} +defs["enums"]["ImGuiItemFlags_"][11]["calc_value"] = 1024 +defs["enums"]["ImGuiItemFlags_"][11]["name"] = "ImGuiItemFlags_Inputable" +defs["enums"]["ImGuiItemFlags_"][11]["value"] = "1 << 10" defs["enums"]["ImGuiItemStatusFlags_"] = {} defs["enums"]["ImGuiItemStatusFlags_"][1] = {} defs["enums"]["ImGuiItemStatusFlags_"][1]["calc_value"] = 0 @@ -1319,120 +1505,627 @@ defs["enums"]["ImGuiItemStatusFlags_"][10] = {} defs["enums"]["ImGuiItemStatusFlags_"][10]["calc_value"] = 256 defs["enums"]["ImGuiItemStatusFlags_"][10]["name"] = "ImGuiItemStatusFlags_FocusedByTabbing" defs["enums"]["ImGuiItemStatusFlags_"][10]["value"] = "1 << 8" -defs["enums"]["ImGuiKeyModFlags_"] = {} -defs["enums"]["ImGuiKeyModFlags_"][1] = {} -defs["enums"]["ImGuiKeyModFlags_"][1]["calc_value"] = 0 -defs["enums"]["ImGuiKeyModFlags_"][1]["name"] = "ImGuiKeyModFlags_None" -defs["enums"]["ImGuiKeyModFlags_"][1]["value"] = "0" -defs["enums"]["ImGuiKeyModFlags_"][2] = {} -defs["enums"]["ImGuiKeyModFlags_"][2]["calc_value"] = 1 -defs["enums"]["ImGuiKeyModFlags_"][2]["name"] = "ImGuiKeyModFlags_Ctrl" -defs["enums"]["ImGuiKeyModFlags_"][2]["value"] = "1 << 0" -defs["enums"]["ImGuiKeyModFlags_"][3] = {} -defs["enums"]["ImGuiKeyModFlags_"][3]["calc_value"] = 2 -defs["enums"]["ImGuiKeyModFlags_"][3]["name"] = "ImGuiKeyModFlags_Shift" -defs["enums"]["ImGuiKeyModFlags_"][3]["value"] = "1 << 1" -defs["enums"]["ImGuiKeyModFlags_"][4] = {} -defs["enums"]["ImGuiKeyModFlags_"][4]["calc_value"] = 4 -defs["enums"]["ImGuiKeyModFlags_"][4]["name"] = "ImGuiKeyModFlags_Alt" -defs["enums"]["ImGuiKeyModFlags_"][4]["value"] = "1 << 2" -defs["enums"]["ImGuiKeyModFlags_"][5] = {} -defs["enums"]["ImGuiKeyModFlags_"][5]["calc_value"] = 8 -defs["enums"]["ImGuiKeyModFlags_"][5]["name"] = "ImGuiKeyModFlags_Super" -defs["enums"]["ImGuiKeyModFlags_"][5]["value"] = "1 << 3" -defs["enums"]["ImGuiKey_"] = {} -defs["enums"]["ImGuiKey_"][1] = {} -defs["enums"]["ImGuiKey_"][1]["calc_value"] = 0 -defs["enums"]["ImGuiKey_"][1]["name"] = "ImGuiKey_Tab" -defs["enums"]["ImGuiKey_"][1]["value"] = "0" -defs["enums"]["ImGuiKey_"][2] = {} -defs["enums"]["ImGuiKey_"][2]["calc_value"] = 1 -defs["enums"]["ImGuiKey_"][2]["name"] = "ImGuiKey_LeftArrow" -defs["enums"]["ImGuiKey_"][2]["value"] = "1" -defs["enums"]["ImGuiKey_"][3] = {} -defs["enums"]["ImGuiKey_"][3]["calc_value"] = 2 -defs["enums"]["ImGuiKey_"][3]["name"] = "ImGuiKey_RightArrow" -defs["enums"]["ImGuiKey_"][3]["value"] = "2" -defs["enums"]["ImGuiKey_"][4] = {} -defs["enums"]["ImGuiKey_"][4]["calc_value"] = 3 -defs["enums"]["ImGuiKey_"][4]["name"] = "ImGuiKey_UpArrow" -defs["enums"]["ImGuiKey_"][4]["value"] = "3" -defs["enums"]["ImGuiKey_"][5] = {} -defs["enums"]["ImGuiKey_"][5]["calc_value"] = 4 -defs["enums"]["ImGuiKey_"][5]["name"] = "ImGuiKey_DownArrow" -defs["enums"]["ImGuiKey_"][5]["value"] = "4" -defs["enums"]["ImGuiKey_"][6] = {} -defs["enums"]["ImGuiKey_"][6]["calc_value"] = 5 -defs["enums"]["ImGuiKey_"][6]["name"] = "ImGuiKey_PageUp" -defs["enums"]["ImGuiKey_"][6]["value"] = "5" -defs["enums"]["ImGuiKey_"][7] = {} -defs["enums"]["ImGuiKey_"][7]["calc_value"] = 6 -defs["enums"]["ImGuiKey_"][7]["name"] = "ImGuiKey_PageDown" -defs["enums"]["ImGuiKey_"][7]["value"] = "6" -defs["enums"]["ImGuiKey_"][8] = {} -defs["enums"]["ImGuiKey_"][8]["calc_value"] = 7 -defs["enums"]["ImGuiKey_"][8]["name"] = "ImGuiKey_Home" -defs["enums"]["ImGuiKey_"][8]["value"] = "7" -defs["enums"]["ImGuiKey_"][9] = {} -defs["enums"]["ImGuiKey_"][9]["calc_value"] = 8 -defs["enums"]["ImGuiKey_"][9]["name"] = "ImGuiKey_End" -defs["enums"]["ImGuiKey_"][9]["value"] = "8" -defs["enums"]["ImGuiKey_"][10] = {} -defs["enums"]["ImGuiKey_"][10]["calc_value"] = 9 -defs["enums"]["ImGuiKey_"][10]["name"] = "ImGuiKey_Insert" -defs["enums"]["ImGuiKey_"][10]["value"] = "9" -defs["enums"]["ImGuiKey_"][11] = {} -defs["enums"]["ImGuiKey_"][11]["calc_value"] = 10 -defs["enums"]["ImGuiKey_"][11]["name"] = "ImGuiKey_Delete" -defs["enums"]["ImGuiKey_"][11]["value"] = "10" -defs["enums"]["ImGuiKey_"][12] = {} -defs["enums"]["ImGuiKey_"][12]["calc_value"] = 11 -defs["enums"]["ImGuiKey_"][12]["name"] = "ImGuiKey_Backspace" -defs["enums"]["ImGuiKey_"][12]["value"] = "11" -defs["enums"]["ImGuiKey_"][13] = {} -defs["enums"]["ImGuiKey_"][13]["calc_value"] = 12 -defs["enums"]["ImGuiKey_"][13]["name"] = "ImGuiKey_Space" -defs["enums"]["ImGuiKey_"][13]["value"] = "12" -defs["enums"]["ImGuiKey_"][14] = {} -defs["enums"]["ImGuiKey_"][14]["calc_value"] = 13 -defs["enums"]["ImGuiKey_"][14]["name"] = "ImGuiKey_Enter" -defs["enums"]["ImGuiKey_"][14]["value"] = "13" -defs["enums"]["ImGuiKey_"][15] = {} -defs["enums"]["ImGuiKey_"][15]["calc_value"] = 14 -defs["enums"]["ImGuiKey_"][15]["name"] = "ImGuiKey_Escape" -defs["enums"]["ImGuiKey_"][15]["value"] = "14" -defs["enums"]["ImGuiKey_"][16] = {} -defs["enums"]["ImGuiKey_"][16]["calc_value"] = 15 -defs["enums"]["ImGuiKey_"][16]["name"] = "ImGuiKey_KeyPadEnter" -defs["enums"]["ImGuiKey_"][16]["value"] = "15" -defs["enums"]["ImGuiKey_"][17] = {} -defs["enums"]["ImGuiKey_"][17]["calc_value"] = 16 -defs["enums"]["ImGuiKey_"][17]["name"] = "ImGuiKey_A" -defs["enums"]["ImGuiKey_"][17]["value"] = "16" -defs["enums"]["ImGuiKey_"][18] = {} -defs["enums"]["ImGuiKey_"][18]["calc_value"] = 17 -defs["enums"]["ImGuiKey_"][18]["name"] = "ImGuiKey_C" -defs["enums"]["ImGuiKey_"][18]["value"] = "17" -defs["enums"]["ImGuiKey_"][19] = {} -defs["enums"]["ImGuiKey_"][19]["calc_value"] = 18 -defs["enums"]["ImGuiKey_"][19]["name"] = "ImGuiKey_V" -defs["enums"]["ImGuiKey_"][19]["value"] = "18" -defs["enums"]["ImGuiKey_"][20] = {} -defs["enums"]["ImGuiKey_"][20]["calc_value"] = 19 -defs["enums"]["ImGuiKey_"][20]["name"] = "ImGuiKey_X" -defs["enums"]["ImGuiKey_"][20]["value"] = "19" -defs["enums"]["ImGuiKey_"][21] = {} -defs["enums"]["ImGuiKey_"][21]["calc_value"] = 20 -defs["enums"]["ImGuiKey_"][21]["name"] = "ImGuiKey_Y" -defs["enums"]["ImGuiKey_"][21]["value"] = "20" -defs["enums"]["ImGuiKey_"][22] = {} -defs["enums"]["ImGuiKey_"][22]["calc_value"] = 21 -defs["enums"]["ImGuiKey_"][22]["name"] = "ImGuiKey_Z" -defs["enums"]["ImGuiKey_"][22]["value"] = "21" -defs["enums"]["ImGuiKey_"][23] = {} -defs["enums"]["ImGuiKey_"][23]["calc_value"] = 22 -defs["enums"]["ImGuiKey_"][23]["name"] = "ImGuiKey_COUNT" -defs["enums"]["ImGuiKey_"][23]["value"] = "22" +defs["enums"]["ImGuiItemStatusFlags_"][11] = {} +defs["enums"]["ImGuiItemStatusFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiItemStatusFlags_"][11]["name"] = "ImGuiItemStatusFlags_Visible" +defs["enums"]["ImGuiItemStatusFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiKey"] = {} +defs["enums"]["ImGuiKey"][1] = {} +defs["enums"]["ImGuiKey"][1]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][1]["name"] = "ImGuiKey_None" +defs["enums"]["ImGuiKey"][1]["value"] = "0" +defs["enums"]["ImGuiKey"][2] = {} +defs["enums"]["ImGuiKey"][2]["calc_value"] = 512 +defs["enums"]["ImGuiKey"][2]["name"] = "ImGuiKey_Tab" +defs["enums"]["ImGuiKey"][2]["value"] = "512" +defs["enums"]["ImGuiKey"][3] = {} +defs["enums"]["ImGuiKey"][3]["calc_value"] = 513 +defs["enums"]["ImGuiKey"][3]["name"] = "ImGuiKey_LeftArrow" +defs["enums"]["ImGuiKey"][3]["value"] = "513" +defs["enums"]["ImGuiKey"][4] = {} +defs["enums"]["ImGuiKey"][4]["calc_value"] = 514 +defs["enums"]["ImGuiKey"][4]["name"] = "ImGuiKey_RightArrow" +defs["enums"]["ImGuiKey"][4]["value"] = "514" +defs["enums"]["ImGuiKey"][5] = {} +defs["enums"]["ImGuiKey"][5]["calc_value"] = 515 +defs["enums"]["ImGuiKey"][5]["name"] = "ImGuiKey_UpArrow" +defs["enums"]["ImGuiKey"][5]["value"] = "515" +defs["enums"]["ImGuiKey"][6] = {} +defs["enums"]["ImGuiKey"][6]["calc_value"] = 516 +defs["enums"]["ImGuiKey"][6]["name"] = "ImGuiKey_DownArrow" +defs["enums"]["ImGuiKey"][6]["value"] = "516" +defs["enums"]["ImGuiKey"][7] = {} +defs["enums"]["ImGuiKey"][7]["calc_value"] = 517 +defs["enums"]["ImGuiKey"][7]["name"] = "ImGuiKey_PageUp" +defs["enums"]["ImGuiKey"][7]["value"] = "517" +defs["enums"]["ImGuiKey"][8] = {} +defs["enums"]["ImGuiKey"][8]["calc_value"] = 518 +defs["enums"]["ImGuiKey"][8]["name"] = "ImGuiKey_PageDown" +defs["enums"]["ImGuiKey"][8]["value"] = "518" +defs["enums"]["ImGuiKey"][9] = {} +defs["enums"]["ImGuiKey"][9]["calc_value"] = 519 +defs["enums"]["ImGuiKey"][9]["name"] = "ImGuiKey_Home" +defs["enums"]["ImGuiKey"][9]["value"] = "519" +defs["enums"]["ImGuiKey"][10] = {} +defs["enums"]["ImGuiKey"][10]["calc_value"] = 520 +defs["enums"]["ImGuiKey"][10]["name"] = "ImGuiKey_End" +defs["enums"]["ImGuiKey"][10]["value"] = "520" +defs["enums"]["ImGuiKey"][11] = {} +defs["enums"]["ImGuiKey"][11]["calc_value"] = 521 +defs["enums"]["ImGuiKey"][11]["name"] = "ImGuiKey_Insert" +defs["enums"]["ImGuiKey"][11]["value"] = "521" +defs["enums"]["ImGuiKey"][12] = {} +defs["enums"]["ImGuiKey"][12]["calc_value"] = 522 +defs["enums"]["ImGuiKey"][12]["name"] = "ImGuiKey_Delete" +defs["enums"]["ImGuiKey"][12]["value"] = "522" +defs["enums"]["ImGuiKey"][13] = {} +defs["enums"]["ImGuiKey"][13]["calc_value"] = 523 +defs["enums"]["ImGuiKey"][13]["name"] = "ImGuiKey_Backspace" +defs["enums"]["ImGuiKey"][13]["value"] = "523" +defs["enums"]["ImGuiKey"][14] = {} +defs["enums"]["ImGuiKey"][14]["calc_value"] = 524 +defs["enums"]["ImGuiKey"][14]["name"] = "ImGuiKey_Space" +defs["enums"]["ImGuiKey"][14]["value"] = "524" +defs["enums"]["ImGuiKey"][15] = {} +defs["enums"]["ImGuiKey"][15]["calc_value"] = 525 +defs["enums"]["ImGuiKey"][15]["name"] = "ImGuiKey_Enter" +defs["enums"]["ImGuiKey"][15]["value"] = "525" +defs["enums"]["ImGuiKey"][16] = {} +defs["enums"]["ImGuiKey"][16]["calc_value"] = 526 +defs["enums"]["ImGuiKey"][16]["name"] = "ImGuiKey_Escape" +defs["enums"]["ImGuiKey"][16]["value"] = "526" +defs["enums"]["ImGuiKey"][17] = {} +defs["enums"]["ImGuiKey"][17]["calc_value"] = 527 +defs["enums"]["ImGuiKey"][17]["name"] = "ImGuiKey_LeftCtrl" +defs["enums"]["ImGuiKey"][17]["value"] = "527" +defs["enums"]["ImGuiKey"][18] = {} +defs["enums"]["ImGuiKey"][18]["calc_value"] = 528 +defs["enums"]["ImGuiKey"][18]["name"] = "ImGuiKey_LeftShift" +defs["enums"]["ImGuiKey"][18]["value"] = "528" +defs["enums"]["ImGuiKey"][19] = {} +defs["enums"]["ImGuiKey"][19]["calc_value"] = 529 +defs["enums"]["ImGuiKey"][19]["name"] = "ImGuiKey_LeftAlt" +defs["enums"]["ImGuiKey"][19]["value"] = "529" +defs["enums"]["ImGuiKey"][20] = {} +defs["enums"]["ImGuiKey"][20]["calc_value"] = 530 +defs["enums"]["ImGuiKey"][20]["name"] = "ImGuiKey_LeftSuper" +defs["enums"]["ImGuiKey"][20]["value"] = "530" +defs["enums"]["ImGuiKey"][21] = {} +defs["enums"]["ImGuiKey"][21]["calc_value"] = 531 +defs["enums"]["ImGuiKey"][21]["name"] = "ImGuiKey_RightCtrl" +defs["enums"]["ImGuiKey"][21]["value"] = "531" +defs["enums"]["ImGuiKey"][22] = {} +defs["enums"]["ImGuiKey"][22]["calc_value"] = 532 +defs["enums"]["ImGuiKey"][22]["name"] = "ImGuiKey_RightShift" +defs["enums"]["ImGuiKey"][22]["value"] = "532" +defs["enums"]["ImGuiKey"][23] = {} +defs["enums"]["ImGuiKey"][23]["calc_value"] = 533 +defs["enums"]["ImGuiKey"][23]["name"] = "ImGuiKey_RightAlt" +defs["enums"]["ImGuiKey"][23]["value"] = "533" +defs["enums"]["ImGuiKey"][24] = {} +defs["enums"]["ImGuiKey"][24]["calc_value"] = 534 +defs["enums"]["ImGuiKey"][24]["name"] = "ImGuiKey_RightSuper" +defs["enums"]["ImGuiKey"][24]["value"] = "534" +defs["enums"]["ImGuiKey"][25] = {} +defs["enums"]["ImGuiKey"][25]["calc_value"] = 535 +defs["enums"]["ImGuiKey"][25]["name"] = "ImGuiKey_Menu" +defs["enums"]["ImGuiKey"][25]["value"] = "535" +defs["enums"]["ImGuiKey"][26] = {} +defs["enums"]["ImGuiKey"][26]["calc_value"] = 536 +defs["enums"]["ImGuiKey"][26]["name"] = "ImGuiKey_0" +defs["enums"]["ImGuiKey"][26]["value"] = "536" +defs["enums"]["ImGuiKey"][27] = {} +defs["enums"]["ImGuiKey"][27]["calc_value"] = 537 +defs["enums"]["ImGuiKey"][27]["name"] = "ImGuiKey_1" +defs["enums"]["ImGuiKey"][27]["value"] = "537" +defs["enums"]["ImGuiKey"][28] = {} +defs["enums"]["ImGuiKey"][28]["calc_value"] = 538 +defs["enums"]["ImGuiKey"][28]["name"] = "ImGuiKey_2" +defs["enums"]["ImGuiKey"][28]["value"] = "538" +defs["enums"]["ImGuiKey"][29] = {} +defs["enums"]["ImGuiKey"][29]["calc_value"] = 539 +defs["enums"]["ImGuiKey"][29]["name"] = "ImGuiKey_3" +defs["enums"]["ImGuiKey"][29]["value"] = "539" +defs["enums"]["ImGuiKey"][30] = {} +defs["enums"]["ImGuiKey"][30]["calc_value"] = 540 +defs["enums"]["ImGuiKey"][30]["name"] = "ImGuiKey_4" +defs["enums"]["ImGuiKey"][30]["value"] = "540" +defs["enums"]["ImGuiKey"][31] = {} +defs["enums"]["ImGuiKey"][31]["calc_value"] = 541 +defs["enums"]["ImGuiKey"][31]["name"] = "ImGuiKey_5" +defs["enums"]["ImGuiKey"][31]["value"] = "541" +defs["enums"]["ImGuiKey"][32] = {} +defs["enums"]["ImGuiKey"][32]["calc_value"] = 542 +defs["enums"]["ImGuiKey"][32]["name"] = "ImGuiKey_6" +defs["enums"]["ImGuiKey"][32]["value"] = "542" +defs["enums"]["ImGuiKey"][33] = {} +defs["enums"]["ImGuiKey"][33]["calc_value"] = 543 +defs["enums"]["ImGuiKey"][33]["name"] = "ImGuiKey_7" +defs["enums"]["ImGuiKey"][33]["value"] = "543" +defs["enums"]["ImGuiKey"][34] = {} +defs["enums"]["ImGuiKey"][34]["calc_value"] = 544 +defs["enums"]["ImGuiKey"][34]["name"] = "ImGuiKey_8" +defs["enums"]["ImGuiKey"][34]["value"] = "544" +defs["enums"]["ImGuiKey"][35] = {} +defs["enums"]["ImGuiKey"][35]["calc_value"] = 545 +defs["enums"]["ImGuiKey"][35]["name"] = "ImGuiKey_9" +defs["enums"]["ImGuiKey"][35]["value"] = "545" +defs["enums"]["ImGuiKey"][36] = {} +defs["enums"]["ImGuiKey"][36]["calc_value"] = 546 +defs["enums"]["ImGuiKey"][36]["name"] = "ImGuiKey_A" +defs["enums"]["ImGuiKey"][36]["value"] = "546" +defs["enums"]["ImGuiKey"][37] = {} +defs["enums"]["ImGuiKey"][37]["calc_value"] = 547 +defs["enums"]["ImGuiKey"][37]["name"] = "ImGuiKey_B" +defs["enums"]["ImGuiKey"][37]["value"] = "547" +defs["enums"]["ImGuiKey"][38] = {} +defs["enums"]["ImGuiKey"][38]["calc_value"] = 548 +defs["enums"]["ImGuiKey"][38]["name"] = "ImGuiKey_C" +defs["enums"]["ImGuiKey"][38]["value"] = "548" +defs["enums"]["ImGuiKey"][39] = {} +defs["enums"]["ImGuiKey"][39]["calc_value"] = 549 +defs["enums"]["ImGuiKey"][39]["name"] = "ImGuiKey_D" +defs["enums"]["ImGuiKey"][39]["value"] = "549" +defs["enums"]["ImGuiKey"][40] = {} +defs["enums"]["ImGuiKey"][40]["calc_value"] = 550 +defs["enums"]["ImGuiKey"][40]["name"] = "ImGuiKey_E" +defs["enums"]["ImGuiKey"][40]["value"] = "550" +defs["enums"]["ImGuiKey"][41] = {} +defs["enums"]["ImGuiKey"][41]["calc_value"] = 551 +defs["enums"]["ImGuiKey"][41]["name"] = "ImGuiKey_F" +defs["enums"]["ImGuiKey"][41]["value"] = "551" +defs["enums"]["ImGuiKey"][42] = {} +defs["enums"]["ImGuiKey"][42]["calc_value"] = 552 +defs["enums"]["ImGuiKey"][42]["name"] = "ImGuiKey_G" +defs["enums"]["ImGuiKey"][42]["value"] = "552" +defs["enums"]["ImGuiKey"][43] = {} +defs["enums"]["ImGuiKey"][43]["calc_value"] = 553 +defs["enums"]["ImGuiKey"][43]["name"] = "ImGuiKey_H" +defs["enums"]["ImGuiKey"][43]["value"] = "553" +defs["enums"]["ImGuiKey"][44] = {} +defs["enums"]["ImGuiKey"][44]["calc_value"] = 554 +defs["enums"]["ImGuiKey"][44]["name"] = "ImGuiKey_I" +defs["enums"]["ImGuiKey"][44]["value"] = "554" +defs["enums"]["ImGuiKey"][45] = {} +defs["enums"]["ImGuiKey"][45]["calc_value"] = 555 +defs["enums"]["ImGuiKey"][45]["name"] = "ImGuiKey_J" +defs["enums"]["ImGuiKey"][45]["value"] = "555" +defs["enums"]["ImGuiKey"][46] = {} +defs["enums"]["ImGuiKey"][46]["calc_value"] = 556 +defs["enums"]["ImGuiKey"][46]["name"] = "ImGuiKey_K" +defs["enums"]["ImGuiKey"][46]["value"] = "556" +defs["enums"]["ImGuiKey"][47] = {} +defs["enums"]["ImGuiKey"][47]["calc_value"] = 557 +defs["enums"]["ImGuiKey"][47]["name"] = "ImGuiKey_L" +defs["enums"]["ImGuiKey"][47]["value"] = "557" +defs["enums"]["ImGuiKey"][48] = {} +defs["enums"]["ImGuiKey"][48]["calc_value"] = 558 +defs["enums"]["ImGuiKey"][48]["name"] = "ImGuiKey_M" +defs["enums"]["ImGuiKey"][48]["value"] = "558" +defs["enums"]["ImGuiKey"][49] = {} +defs["enums"]["ImGuiKey"][49]["calc_value"] = 559 +defs["enums"]["ImGuiKey"][49]["name"] = "ImGuiKey_N" +defs["enums"]["ImGuiKey"][49]["value"] = "559" +defs["enums"]["ImGuiKey"][50] = {} +defs["enums"]["ImGuiKey"][50]["calc_value"] = 560 +defs["enums"]["ImGuiKey"][50]["name"] = "ImGuiKey_O" +defs["enums"]["ImGuiKey"][50]["value"] = "560" +defs["enums"]["ImGuiKey"][51] = {} +defs["enums"]["ImGuiKey"][51]["calc_value"] = 561 +defs["enums"]["ImGuiKey"][51]["name"] = "ImGuiKey_P" +defs["enums"]["ImGuiKey"][51]["value"] = "561" +defs["enums"]["ImGuiKey"][52] = {} +defs["enums"]["ImGuiKey"][52]["calc_value"] = 562 +defs["enums"]["ImGuiKey"][52]["name"] = "ImGuiKey_Q" +defs["enums"]["ImGuiKey"][52]["value"] = "562" +defs["enums"]["ImGuiKey"][53] = {} +defs["enums"]["ImGuiKey"][53]["calc_value"] = 563 +defs["enums"]["ImGuiKey"][53]["name"] = "ImGuiKey_R" +defs["enums"]["ImGuiKey"][53]["value"] = "563" +defs["enums"]["ImGuiKey"][54] = {} +defs["enums"]["ImGuiKey"][54]["calc_value"] = 564 +defs["enums"]["ImGuiKey"][54]["name"] = "ImGuiKey_S" +defs["enums"]["ImGuiKey"][54]["value"] = "564" +defs["enums"]["ImGuiKey"][55] = {} +defs["enums"]["ImGuiKey"][55]["calc_value"] = 565 +defs["enums"]["ImGuiKey"][55]["name"] = "ImGuiKey_T" +defs["enums"]["ImGuiKey"][55]["value"] = "565" +defs["enums"]["ImGuiKey"][56] = {} +defs["enums"]["ImGuiKey"][56]["calc_value"] = 566 +defs["enums"]["ImGuiKey"][56]["name"] = "ImGuiKey_U" +defs["enums"]["ImGuiKey"][56]["value"] = "566" +defs["enums"]["ImGuiKey"][57] = {} +defs["enums"]["ImGuiKey"][57]["calc_value"] = 567 +defs["enums"]["ImGuiKey"][57]["name"] = "ImGuiKey_V" +defs["enums"]["ImGuiKey"][57]["value"] = "567" +defs["enums"]["ImGuiKey"][58] = {} +defs["enums"]["ImGuiKey"][58]["calc_value"] = 568 +defs["enums"]["ImGuiKey"][58]["name"] = "ImGuiKey_W" +defs["enums"]["ImGuiKey"][58]["value"] = "568" +defs["enums"]["ImGuiKey"][59] = {} +defs["enums"]["ImGuiKey"][59]["calc_value"] = 569 +defs["enums"]["ImGuiKey"][59]["name"] = "ImGuiKey_X" +defs["enums"]["ImGuiKey"][59]["value"] = "569" +defs["enums"]["ImGuiKey"][60] = {} +defs["enums"]["ImGuiKey"][60]["calc_value"] = 570 +defs["enums"]["ImGuiKey"][60]["name"] = "ImGuiKey_Y" +defs["enums"]["ImGuiKey"][60]["value"] = "570" +defs["enums"]["ImGuiKey"][61] = {} +defs["enums"]["ImGuiKey"][61]["calc_value"] = 571 +defs["enums"]["ImGuiKey"][61]["name"] = "ImGuiKey_Z" +defs["enums"]["ImGuiKey"][61]["value"] = "571" +defs["enums"]["ImGuiKey"][62] = {} +defs["enums"]["ImGuiKey"][62]["calc_value"] = 572 +defs["enums"]["ImGuiKey"][62]["name"] = "ImGuiKey_F1" +defs["enums"]["ImGuiKey"][62]["value"] = "572" +defs["enums"]["ImGuiKey"][63] = {} +defs["enums"]["ImGuiKey"][63]["calc_value"] = 573 +defs["enums"]["ImGuiKey"][63]["name"] = "ImGuiKey_F2" +defs["enums"]["ImGuiKey"][63]["value"] = "573" +defs["enums"]["ImGuiKey"][64] = {} +defs["enums"]["ImGuiKey"][64]["calc_value"] = 574 +defs["enums"]["ImGuiKey"][64]["name"] = "ImGuiKey_F3" +defs["enums"]["ImGuiKey"][64]["value"] = "574" +defs["enums"]["ImGuiKey"][65] = {} +defs["enums"]["ImGuiKey"][65]["calc_value"] = 575 +defs["enums"]["ImGuiKey"][65]["name"] = "ImGuiKey_F4" +defs["enums"]["ImGuiKey"][65]["value"] = "575" +defs["enums"]["ImGuiKey"][66] = {} +defs["enums"]["ImGuiKey"][66]["calc_value"] = 576 +defs["enums"]["ImGuiKey"][66]["name"] = "ImGuiKey_F5" +defs["enums"]["ImGuiKey"][66]["value"] = "576" +defs["enums"]["ImGuiKey"][67] = {} +defs["enums"]["ImGuiKey"][67]["calc_value"] = 577 +defs["enums"]["ImGuiKey"][67]["name"] = "ImGuiKey_F6" +defs["enums"]["ImGuiKey"][67]["value"] = "577" +defs["enums"]["ImGuiKey"][68] = {} +defs["enums"]["ImGuiKey"][68]["calc_value"] = 578 +defs["enums"]["ImGuiKey"][68]["name"] = "ImGuiKey_F7" +defs["enums"]["ImGuiKey"][68]["value"] = "578" +defs["enums"]["ImGuiKey"][69] = {} +defs["enums"]["ImGuiKey"][69]["calc_value"] = 579 +defs["enums"]["ImGuiKey"][69]["name"] = "ImGuiKey_F8" +defs["enums"]["ImGuiKey"][69]["value"] = "579" +defs["enums"]["ImGuiKey"][70] = {} +defs["enums"]["ImGuiKey"][70]["calc_value"] = 580 +defs["enums"]["ImGuiKey"][70]["name"] = "ImGuiKey_F9" +defs["enums"]["ImGuiKey"][70]["value"] = "580" +defs["enums"]["ImGuiKey"][71] = {} +defs["enums"]["ImGuiKey"][71]["calc_value"] = 581 +defs["enums"]["ImGuiKey"][71]["name"] = "ImGuiKey_F10" +defs["enums"]["ImGuiKey"][71]["value"] = "581" +defs["enums"]["ImGuiKey"][72] = {} +defs["enums"]["ImGuiKey"][72]["calc_value"] = 582 +defs["enums"]["ImGuiKey"][72]["name"] = "ImGuiKey_F11" +defs["enums"]["ImGuiKey"][72]["value"] = "582" +defs["enums"]["ImGuiKey"][73] = {} +defs["enums"]["ImGuiKey"][73]["calc_value"] = 583 +defs["enums"]["ImGuiKey"][73]["name"] = "ImGuiKey_F12" +defs["enums"]["ImGuiKey"][73]["value"] = "583" +defs["enums"]["ImGuiKey"][74] = {} +defs["enums"]["ImGuiKey"][74]["calc_value"] = 584 +defs["enums"]["ImGuiKey"][74]["name"] = "ImGuiKey_Apostrophe" +defs["enums"]["ImGuiKey"][74]["value"] = "584" +defs["enums"]["ImGuiKey"][75] = {} +defs["enums"]["ImGuiKey"][75]["calc_value"] = 585 +defs["enums"]["ImGuiKey"][75]["name"] = "ImGuiKey_Comma" +defs["enums"]["ImGuiKey"][75]["value"] = "585" +defs["enums"]["ImGuiKey"][76] = {} +defs["enums"]["ImGuiKey"][76]["calc_value"] = 586 +defs["enums"]["ImGuiKey"][76]["name"] = "ImGuiKey_Minus" +defs["enums"]["ImGuiKey"][76]["value"] = "586" +defs["enums"]["ImGuiKey"][77] = {} +defs["enums"]["ImGuiKey"][77]["calc_value"] = 587 +defs["enums"]["ImGuiKey"][77]["name"] = "ImGuiKey_Period" +defs["enums"]["ImGuiKey"][77]["value"] = "587" +defs["enums"]["ImGuiKey"][78] = {} +defs["enums"]["ImGuiKey"][78]["calc_value"] = 588 +defs["enums"]["ImGuiKey"][78]["name"] = "ImGuiKey_Slash" +defs["enums"]["ImGuiKey"][78]["value"] = "588" +defs["enums"]["ImGuiKey"][79] = {} +defs["enums"]["ImGuiKey"][79]["calc_value"] = 589 +defs["enums"]["ImGuiKey"][79]["name"] = "ImGuiKey_Semicolon" +defs["enums"]["ImGuiKey"][79]["value"] = "589" +defs["enums"]["ImGuiKey"][80] = {} +defs["enums"]["ImGuiKey"][80]["calc_value"] = 590 +defs["enums"]["ImGuiKey"][80]["name"] = "ImGuiKey_Equal" +defs["enums"]["ImGuiKey"][80]["value"] = "590" +defs["enums"]["ImGuiKey"][81] = {} +defs["enums"]["ImGuiKey"][81]["calc_value"] = 591 +defs["enums"]["ImGuiKey"][81]["name"] = "ImGuiKey_LeftBracket" +defs["enums"]["ImGuiKey"][81]["value"] = "591" +defs["enums"]["ImGuiKey"][82] = {} +defs["enums"]["ImGuiKey"][82]["calc_value"] = 592 +defs["enums"]["ImGuiKey"][82]["name"] = "ImGuiKey_Backslash" +defs["enums"]["ImGuiKey"][82]["value"] = "592" +defs["enums"]["ImGuiKey"][83] = {} +defs["enums"]["ImGuiKey"][83]["calc_value"] = 593 +defs["enums"]["ImGuiKey"][83]["name"] = "ImGuiKey_RightBracket" +defs["enums"]["ImGuiKey"][83]["value"] = "593" +defs["enums"]["ImGuiKey"][84] = {} +defs["enums"]["ImGuiKey"][84]["calc_value"] = 594 +defs["enums"]["ImGuiKey"][84]["name"] = "ImGuiKey_GraveAccent" +defs["enums"]["ImGuiKey"][84]["value"] = "594" +defs["enums"]["ImGuiKey"][85] = {} +defs["enums"]["ImGuiKey"][85]["calc_value"] = 595 +defs["enums"]["ImGuiKey"][85]["name"] = "ImGuiKey_CapsLock" +defs["enums"]["ImGuiKey"][85]["value"] = "595" +defs["enums"]["ImGuiKey"][86] = {} +defs["enums"]["ImGuiKey"][86]["calc_value"] = 596 +defs["enums"]["ImGuiKey"][86]["name"] = "ImGuiKey_ScrollLock" +defs["enums"]["ImGuiKey"][86]["value"] = "596" +defs["enums"]["ImGuiKey"][87] = {} +defs["enums"]["ImGuiKey"][87]["calc_value"] = 597 +defs["enums"]["ImGuiKey"][87]["name"] = "ImGuiKey_NumLock" +defs["enums"]["ImGuiKey"][87]["value"] = "597" +defs["enums"]["ImGuiKey"][88] = {} +defs["enums"]["ImGuiKey"][88]["calc_value"] = 598 +defs["enums"]["ImGuiKey"][88]["name"] = "ImGuiKey_PrintScreen" +defs["enums"]["ImGuiKey"][88]["value"] = "598" +defs["enums"]["ImGuiKey"][89] = {} +defs["enums"]["ImGuiKey"][89]["calc_value"] = 599 +defs["enums"]["ImGuiKey"][89]["name"] = "ImGuiKey_Pause" +defs["enums"]["ImGuiKey"][89]["value"] = "599" +defs["enums"]["ImGuiKey"][90] = {} +defs["enums"]["ImGuiKey"][90]["calc_value"] = 600 +defs["enums"]["ImGuiKey"][90]["name"] = "ImGuiKey_Keypad0" +defs["enums"]["ImGuiKey"][90]["value"] = "600" +defs["enums"]["ImGuiKey"][91] = {} +defs["enums"]["ImGuiKey"][91]["calc_value"] = 601 +defs["enums"]["ImGuiKey"][91]["name"] = "ImGuiKey_Keypad1" +defs["enums"]["ImGuiKey"][91]["value"] = "601" +defs["enums"]["ImGuiKey"][92] = {} +defs["enums"]["ImGuiKey"][92]["calc_value"] = 602 +defs["enums"]["ImGuiKey"][92]["name"] = "ImGuiKey_Keypad2" +defs["enums"]["ImGuiKey"][92]["value"] = "602" +defs["enums"]["ImGuiKey"][93] = {} +defs["enums"]["ImGuiKey"][93]["calc_value"] = 603 +defs["enums"]["ImGuiKey"][93]["name"] = "ImGuiKey_Keypad3" +defs["enums"]["ImGuiKey"][93]["value"] = "603" +defs["enums"]["ImGuiKey"][94] = {} +defs["enums"]["ImGuiKey"][94]["calc_value"] = 604 +defs["enums"]["ImGuiKey"][94]["name"] = "ImGuiKey_Keypad4" +defs["enums"]["ImGuiKey"][94]["value"] = "604" +defs["enums"]["ImGuiKey"][95] = {} +defs["enums"]["ImGuiKey"][95]["calc_value"] = 605 +defs["enums"]["ImGuiKey"][95]["name"] = "ImGuiKey_Keypad5" +defs["enums"]["ImGuiKey"][95]["value"] = "605" +defs["enums"]["ImGuiKey"][96] = {} +defs["enums"]["ImGuiKey"][96]["calc_value"] = 606 +defs["enums"]["ImGuiKey"][96]["name"] = "ImGuiKey_Keypad6" +defs["enums"]["ImGuiKey"][96]["value"] = "606" +defs["enums"]["ImGuiKey"][97] = {} +defs["enums"]["ImGuiKey"][97]["calc_value"] = 607 +defs["enums"]["ImGuiKey"][97]["name"] = "ImGuiKey_Keypad7" +defs["enums"]["ImGuiKey"][97]["value"] = "607" +defs["enums"]["ImGuiKey"][98] = {} +defs["enums"]["ImGuiKey"][98]["calc_value"] = 608 +defs["enums"]["ImGuiKey"][98]["name"] = "ImGuiKey_Keypad8" +defs["enums"]["ImGuiKey"][98]["value"] = "608" +defs["enums"]["ImGuiKey"][99] = {} +defs["enums"]["ImGuiKey"][99]["calc_value"] = 609 +defs["enums"]["ImGuiKey"][99]["name"] = "ImGuiKey_Keypad9" +defs["enums"]["ImGuiKey"][99]["value"] = "609" +defs["enums"]["ImGuiKey"][100] = {} +defs["enums"]["ImGuiKey"][100]["calc_value"] = 610 +defs["enums"]["ImGuiKey"][100]["name"] = "ImGuiKey_KeypadDecimal" +defs["enums"]["ImGuiKey"][100]["value"] = "610" +defs["enums"]["ImGuiKey"][101] = {} +defs["enums"]["ImGuiKey"][101]["calc_value"] = 611 +defs["enums"]["ImGuiKey"][101]["name"] = "ImGuiKey_KeypadDivide" +defs["enums"]["ImGuiKey"][101]["value"] = "611" +defs["enums"]["ImGuiKey"][102] = {} +defs["enums"]["ImGuiKey"][102]["calc_value"] = 612 +defs["enums"]["ImGuiKey"][102]["name"] = "ImGuiKey_KeypadMultiply" +defs["enums"]["ImGuiKey"][102]["value"] = "612" +defs["enums"]["ImGuiKey"][103] = {} +defs["enums"]["ImGuiKey"][103]["calc_value"] = 613 +defs["enums"]["ImGuiKey"][103]["name"] = "ImGuiKey_KeypadSubtract" +defs["enums"]["ImGuiKey"][103]["value"] = "613" +defs["enums"]["ImGuiKey"][104] = {} +defs["enums"]["ImGuiKey"][104]["calc_value"] = 614 +defs["enums"]["ImGuiKey"][104]["name"] = "ImGuiKey_KeypadAdd" +defs["enums"]["ImGuiKey"][104]["value"] = "614" +defs["enums"]["ImGuiKey"][105] = {} +defs["enums"]["ImGuiKey"][105]["calc_value"] = 615 +defs["enums"]["ImGuiKey"][105]["name"] = "ImGuiKey_KeypadEnter" +defs["enums"]["ImGuiKey"][105]["value"] = "615" +defs["enums"]["ImGuiKey"][106] = {} +defs["enums"]["ImGuiKey"][106]["calc_value"] = 616 +defs["enums"]["ImGuiKey"][106]["name"] = "ImGuiKey_KeypadEqual" +defs["enums"]["ImGuiKey"][106]["value"] = "616" +defs["enums"]["ImGuiKey"][107] = {} +defs["enums"]["ImGuiKey"][107]["calc_value"] = 617 +defs["enums"]["ImGuiKey"][107]["name"] = "ImGuiKey_GamepadStart" +defs["enums"]["ImGuiKey"][107]["value"] = "617" +defs["enums"]["ImGuiKey"][108] = {} +defs["enums"]["ImGuiKey"][108]["calc_value"] = 618 +defs["enums"]["ImGuiKey"][108]["name"] = "ImGuiKey_GamepadBack" +defs["enums"]["ImGuiKey"][108]["value"] = "618" +defs["enums"]["ImGuiKey"][109] = {} +defs["enums"]["ImGuiKey"][109]["calc_value"] = 619 +defs["enums"]["ImGuiKey"][109]["name"] = "ImGuiKey_GamepadFaceLeft" +defs["enums"]["ImGuiKey"][109]["value"] = "619" +defs["enums"]["ImGuiKey"][110] = {} +defs["enums"]["ImGuiKey"][110]["calc_value"] = 620 +defs["enums"]["ImGuiKey"][110]["name"] = "ImGuiKey_GamepadFaceRight" +defs["enums"]["ImGuiKey"][110]["value"] = "620" +defs["enums"]["ImGuiKey"][111] = {} +defs["enums"]["ImGuiKey"][111]["calc_value"] = 621 +defs["enums"]["ImGuiKey"][111]["name"] = "ImGuiKey_GamepadFaceUp" +defs["enums"]["ImGuiKey"][111]["value"] = "621" +defs["enums"]["ImGuiKey"][112] = {} +defs["enums"]["ImGuiKey"][112]["calc_value"] = 622 +defs["enums"]["ImGuiKey"][112]["name"] = "ImGuiKey_GamepadFaceDown" +defs["enums"]["ImGuiKey"][112]["value"] = "622" +defs["enums"]["ImGuiKey"][113] = {} +defs["enums"]["ImGuiKey"][113]["calc_value"] = 623 +defs["enums"]["ImGuiKey"][113]["name"] = "ImGuiKey_GamepadDpadLeft" +defs["enums"]["ImGuiKey"][113]["value"] = "623" +defs["enums"]["ImGuiKey"][114] = {} +defs["enums"]["ImGuiKey"][114]["calc_value"] = 624 +defs["enums"]["ImGuiKey"][114]["name"] = "ImGuiKey_GamepadDpadRight" +defs["enums"]["ImGuiKey"][114]["value"] = "624" +defs["enums"]["ImGuiKey"][115] = {} +defs["enums"]["ImGuiKey"][115]["calc_value"] = 625 +defs["enums"]["ImGuiKey"][115]["name"] = "ImGuiKey_GamepadDpadUp" +defs["enums"]["ImGuiKey"][115]["value"] = "625" +defs["enums"]["ImGuiKey"][116] = {} +defs["enums"]["ImGuiKey"][116]["calc_value"] = 626 +defs["enums"]["ImGuiKey"][116]["name"] = "ImGuiKey_GamepadDpadDown" +defs["enums"]["ImGuiKey"][116]["value"] = "626" +defs["enums"]["ImGuiKey"][117] = {} +defs["enums"]["ImGuiKey"][117]["calc_value"] = 627 +defs["enums"]["ImGuiKey"][117]["name"] = "ImGuiKey_GamepadL1" +defs["enums"]["ImGuiKey"][117]["value"] = "627" +defs["enums"]["ImGuiKey"][118] = {} +defs["enums"]["ImGuiKey"][118]["calc_value"] = 628 +defs["enums"]["ImGuiKey"][118]["name"] = "ImGuiKey_GamepadR1" +defs["enums"]["ImGuiKey"][118]["value"] = "628" +defs["enums"]["ImGuiKey"][119] = {} +defs["enums"]["ImGuiKey"][119]["calc_value"] = 629 +defs["enums"]["ImGuiKey"][119]["name"] = "ImGuiKey_GamepadL2" +defs["enums"]["ImGuiKey"][119]["value"] = "629" +defs["enums"]["ImGuiKey"][120] = {} +defs["enums"]["ImGuiKey"][120]["calc_value"] = 630 +defs["enums"]["ImGuiKey"][120]["name"] = "ImGuiKey_GamepadR2" +defs["enums"]["ImGuiKey"][120]["value"] = "630" +defs["enums"]["ImGuiKey"][121] = {} +defs["enums"]["ImGuiKey"][121]["calc_value"] = 631 +defs["enums"]["ImGuiKey"][121]["name"] = "ImGuiKey_GamepadL3" +defs["enums"]["ImGuiKey"][121]["value"] = "631" +defs["enums"]["ImGuiKey"][122] = {} +defs["enums"]["ImGuiKey"][122]["calc_value"] = 632 +defs["enums"]["ImGuiKey"][122]["name"] = "ImGuiKey_GamepadR3" +defs["enums"]["ImGuiKey"][122]["value"] = "632" +defs["enums"]["ImGuiKey"][123] = {} +defs["enums"]["ImGuiKey"][123]["calc_value"] = 633 +defs["enums"]["ImGuiKey"][123]["name"] = "ImGuiKey_GamepadLStickLeft" +defs["enums"]["ImGuiKey"][123]["value"] = "633" +defs["enums"]["ImGuiKey"][124] = {} +defs["enums"]["ImGuiKey"][124]["calc_value"] = 634 +defs["enums"]["ImGuiKey"][124]["name"] = "ImGuiKey_GamepadLStickRight" +defs["enums"]["ImGuiKey"][124]["value"] = "634" +defs["enums"]["ImGuiKey"][125] = {} +defs["enums"]["ImGuiKey"][125]["calc_value"] = 635 +defs["enums"]["ImGuiKey"][125]["name"] = "ImGuiKey_GamepadLStickUp" +defs["enums"]["ImGuiKey"][125]["value"] = "635" +defs["enums"]["ImGuiKey"][126] = {} +defs["enums"]["ImGuiKey"][126]["calc_value"] = 636 +defs["enums"]["ImGuiKey"][126]["name"] = "ImGuiKey_GamepadLStickDown" +defs["enums"]["ImGuiKey"][126]["value"] = "636" +defs["enums"]["ImGuiKey"][127] = {} +defs["enums"]["ImGuiKey"][127]["calc_value"] = 637 +defs["enums"]["ImGuiKey"][127]["name"] = "ImGuiKey_GamepadRStickLeft" +defs["enums"]["ImGuiKey"][127]["value"] = "637" +defs["enums"]["ImGuiKey"][128] = {} +defs["enums"]["ImGuiKey"][128]["calc_value"] = 638 +defs["enums"]["ImGuiKey"][128]["name"] = "ImGuiKey_GamepadRStickRight" +defs["enums"]["ImGuiKey"][128]["value"] = "638" +defs["enums"]["ImGuiKey"][129] = {} +defs["enums"]["ImGuiKey"][129]["calc_value"] = 639 +defs["enums"]["ImGuiKey"][129]["name"] = "ImGuiKey_GamepadRStickUp" +defs["enums"]["ImGuiKey"][129]["value"] = "639" +defs["enums"]["ImGuiKey"][130] = {} +defs["enums"]["ImGuiKey"][130]["calc_value"] = 640 +defs["enums"]["ImGuiKey"][130]["name"] = "ImGuiKey_GamepadRStickDown" +defs["enums"]["ImGuiKey"][130]["value"] = "640" +defs["enums"]["ImGuiKey"][131] = {} +defs["enums"]["ImGuiKey"][131]["calc_value"] = 641 +defs["enums"]["ImGuiKey"][131]["name"] = "ImGuiKey_MouseLeft" +defs["enums"]["ImGuiKey"][131]["value"] = "641" +defs["enums"]["ImGuiKey"][132] = {} +defs["enums"]["ImGuiKey"][132]["calc_value"] = 642 +defs["enums"]["ImGuiKey"][132]["name"] = "ImGuiKey_MouseRight" +defs["enums"]["ImGuiKey"][132]["value"] = "642" +defs["enums"]["ImGuiKey"][133] = {} +defs["enums"]["ImGuiKey"][133]["calc_value"] = 643 +defs["enums"]["ImGuiKey"][133]["name"] = "ImGuiKey_MouseMiddle" +defs["enums"]["ImGuiKey"][133]["value"] = "643" +defs["enums"]["ImGuiKey"][134] = {} +defs["enums"]["ImGuiKey"][134]["calc_value"] = 644 +defs["enums"]["ImGuiKey"][134]["name"] = "ImGuiKey_MouseX1" +defs["enums"]["ImGuiKey"][134]["value"] = "644" +defs["enums"]["ImGuiKey"][135] = {} +defs["enums"]["ImGuiKey"][135]["calc_value"] = 645 +defs["enums"]["ImGuiKey"][135]["name"] = "ImGuiKey_MouseX2" +defs["enums"]["ImGuiKey"][135]["value"] = "645" +defs["enums"]["ImGuiKey"][136] = {} +defs["enums"]["ImGuiKey"][136]["calc_value"] = 646 +defs["enums"]["ImGuiKey"][136]["name"] = "ImGuiKey_MouseWheelX" +defs["enums"]["ImGuiKey"][136]["value"] = "646" +defs["enums"]["ImGuiKey"][137] = {} +defs["enums"]["ImGuiKey"][137]["calc_value"] = 647 +defs["enums"]["ImGuiKey"][137]["name"] = "ImGuiKey_MouseWheelY" +defs["enums"]["ImGuiKey"][137]["value"] = "647" +defs["enums"]["ImGuiKey"][138] = {} +defs["enums"]["ImGuiKey"][138]["calc_value"] = 648 +defs["enums"]["ImGuiKey"][138]["name"] = "ImGuiKey_ReservedForModCtrl" +defs["enums"]["ImGuiKey"][138]["value"] = "648" +defs["enums"]["ImGuiKey"][139] = {} +defs["enums"]["ImGuiKey"][139]["calc_value"] = 649 +defs["enums"]["ImGuiKey"][139]["name"] = "ImGuiKey_ReservedForModShift" +defs["enums"]["ImGuiKey"][139]["value"] = "649" +defs["enums"]["ImGuiKey"][140] = {} +defs["enums"]["ImGuiKey"][140]["calc_value"] = 650 +defs["enums"]["ImGuiKey"][140]["name"] = "ImGuiKey_ReservedForModAlt" +defs["enums"]["ImGuiKey"][140]["value"] = "650" +defs["enums"]["ImGuiKey"][141] = {} +defs["enums"]["ImGuiKey"][141]["calc_value"] = 651 +defs["enums"]["ImGuiKey"][141]["name"] = "ImGuiKey_ReservedForModSuper" +defs["enums"]["ImGuiKey"][141]["value"] = "651" +defs["enums"]["ImGuiKey"][142] = {} +defs["enums"]["ImGuiKey"][142]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][142]["name"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][142]["value"] = "652" +defs["enums"]["ImGuiKey"][143] = {} +defs["enums"]["ImGuiKey"][143]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][143]["name"] = "ImGuiMod_None" +defs["enums"]["ImGuiKey"][143]["value"] = "0" +defs["enums"]["ImGuiKey"][144] = {} +defs["enums"]["ImGuiKey"][144]["calc_value"] = 4096 +defs["enums"]["ImGuiKey"][144]["name"] = "ImGuiMod_Ctrl" +defs["enums"]["ImGuiKey"][144]["value"] = "1 << 12" +defs["enums"]["ImGuiKey"][145] = {} +defs["enums"]["ImGuiKey"][145]["calc_value"] = 8192 +defs["enums"]["ImGuiKey"][145]["name"] = "ImGuiMod_Shift" +defs["enums"]["ImGuiKey"][145]["value"] = "1 << 13" +defs["enums"]["ImGuiKey"][146] = {} +defs["enums"]["ImGuiKey"][146]["calc_value"] = 16384 +defs["enums"]["ImGuiKey"][146]["name"] = "ImGuiMod_Alt" +defs["enums"]["ImGuiKey"][146]["value"] = "1 << 14" +defs["enums"]["ImGuiKey"][147] = {} +defs["enums"]["ImGuiKey"][147]["calc_value"] = 32768 +defs["enums"]["ImGuiKey"][147]["name"] = "ImGuiMod_Super" +defs["enums"]["ImGuiKey"][147]["value"] = "1 << 15" +defs["enums"]["ImGuiKey"][148] = {} +defs["enums"]["ImGuiKey"][148]["calc_value"] = 61440 +defs["enums"]["ImGuiKey"][148]["name"] = "ImGuiMod_Mask_" +defs["enums"]["ImGuiKey"][148]["value"] = "0xF000" +defs["enums"]["ImGuiKey"][149] = {} +defs["enums"]["ImGuiKey"][149]["calc_value"] = 4096 +defs["enums"]["ImGuiKey"][149]["name"] = "ImGuiMod_Shortcut" +defs["enums"]["ImGuiKey"][149]["value"] = "ImGuiMod_Ctrl" +defs["enums"]["ImGuiKey"][150] = {} +defs["enums"]["ImGuiKey"][150]["calc_value"] = 512 +defs["enums"]["ImGuiKey"][150]["name"] = "ImGuiKey_NamedKey_BEGIN" +defs["enums"]["ImGuiKey"][150]["value"] = "512" +defs["enums"]["ImGuiKey"][151] = {} +defs["enums"]["ImGuiKey"][151]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][151]["name"] = "ImGuiKey_NamedKey_END" +defs["enums"]["ImGuiKey"][151]["value"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][152] = {} +defs["enums"]["ImGuiKey"][152]["calc_value"] = 140 +defs["enums"]["ImGuiKey"][152]["name"] = "ImGuiKey_NamedKey_COUNT" +defs["enums"]["ImGuiKey"][152]["value"] = "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN" +defs["enums"]["ImGuiKey"][153] = {} +defs["enums"]["ImGuiKey"][153]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][153]["name"] = "ImGuiKey_KeysData_SIZE" +defs["enums"]["ImGuiKey"][153]["value"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][154] = {} +defs["enums"]["ImGuiKey"][154]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][154]["name"] = "ImGuiKey_KeysData_OFFSET" +defs["enums"]["ImGuiKey"][154]["value"] = "0" defs["enums"]["ImGuiLayoutType_"] = {} defs["enums"]["ImGuiLayoutType_"][1] = {} defs["enums"]["ImGuiLayoutType_"][1]["calc_value"] = 0 @@ -1442,6 +2135,43 @@ defs["enums"]["ImGuiLayoutType_"][2] = {} defs["enums"]["ImGuiLayoutType_"][2]["calc_value"] = 1 defs["enums"]["ImGuiLayoutType_"][2]["name"] = "ImGuiLayoutType_Vertical" defs["enums"]["ImGuiLayoutType_"][2]["value"] = "1" +defs["enums"]["ImGuiLocKey"] = {} +defs["enums"]["ImGuiLocKey"][1] = {} +defs["enums"]["ImGuiLocKey"][1]["calc_value"] = 0 +defs["enums"]["ImGuiLocKey"][1]["name"] = "ImGuiLocKey_TableSizeOne" +defs["enums"]["ImGuiLocKey"][1]["value"] = "0" +defs["enums"]["ImGuiLocKey"][2] = {} +defs["enums"]["ImGuiLocKey"][2]["calc_value"] = 1 +defs["enums"]["ImGuiLocKey"][2]["name"] = "ImGuiLocKey_TableSizeAllFit" +defs["enums"]["ImGuiLocKey"][2]["value"] = "1" +defs["enums"]["ImGuiLocKey"][3] = {} +defs["enums"]["ImGuiLocKey"][3]["calc_value"] = 2 +defs["enums"]["ImGuiLocKey"][3]["name"] = "ImGuiLocKey_TableSizeAllDefault" +defs["enums"]["ImGuiLocKey"][3]["value"] = "2" +defs["enums"]["ImGuiLocKey"][4] = {} +defs["enums"]["ImGuiLocKey"][4]["calc_value"] = 3 +defs["enums"]["ImGuiLocKey"][4]["name"] = "ImGuiLocKey_TableResetOrder" +defs["enums"]["ImGuiLocKey"][4]["value"] = "3" +defs["enums"]["ImGuiLocKey"][5] = {} +defs["enums"]["ImGuiLocKey"][5]["calc_value"] = 4 +defs["enums"]["ImGuiLocKey"][5]["name"] = "ImGuiLocKey_WindowingMainMenuBar" +defs["enums"]["ImGuiLocKey"][5]["value"] = "4" +defs["enums"]["ImGuiLocKey"][6] = {} +defs["enums"]["ImGuiLocKey"][6]["calc_value"] = 5 +defs["enums"]["ImGuiLocKey"][6]["name"] = "ImGuiLocKey_WindowingPopup" +defs["enums"]["ImGuiLocKey"][6]["value"] = "5" +defs["enums"]["ImGuiLocKey"][7] = {} +defs["enums"]["ImGuiLocKey"][7]["calc_value"] = 6 +defs["enums"]["ImGuiLocKey"][7]["name"] = "ImGuiLocKey_WindowingUntitled" +defs["enums"]["ImGuiLocKey"][7]["value"] = "6" +defs["enums"]["ImGuiLocKey"][8] = {} +defs["enums"]["ImGuiLocKey"][8]["calc_value"] = 7 +defs["enums"]["ImGuiLocKey"][8]["name"] = "ImGuiLocKey_DockingHideTabBar" +defs["enums"]["ImGuiLocKey"][8]["value"] = "7" +defs["enums"]["ImGuiLocKey"][9] = {} +defs["enums"]["ImGuiLocKey"][9]["calc_value"] = 8 +defs["enums"]["ImGuiLocKey"][9]["name"] = "ImGuiLocKey_COUNT" +defs["enums"]["ImGuiLocKey"][9]["value"] = "8" defs["enums"]["ImGuiLogType"] = {} defs["enums"]["ImGuiLogType"][1] = {} defs["enums"]["ImGuiLogType"][1]["calc_value"] = 0 @@ -1525,27 +2255,6 @@ defs["enums"]["ImGuiMouseCursor_"][11] = {} defs["enums"]["ImGuiMouseCursor_"][11]["calc_value"] = 9 defs["enums"]["ImGuiMouseCursor_"][11]["name"] = "ImGuiMouseCursor_COUNT" defs["enums"]["ImGuiMouseCursor_"][11]["value"] = "9" -defs["enums"]["ImGuiNavDirSourceFlags_"] = {} -defs["enums"]["ImGuiNavDirSourceFlags_"][1] = {} -defs["enums"]["ImGuiNavDirSourceFlags_"][1]["calc_value"] = 0 -defs["enums"]["ImGuiNavDirSourceFlags_"][1]["name"] = "ImGuiNavDirSourceFlags_None" -defs["enums"]["ImGuiNavDirSourceFlags_"][1]["value"] = "0" -defs["enums"]["ImGuiNavDirSourceFlags_"][2] = {} -defs["enums"]["ImGuiNavDirSourceFlags_"][2]["calc_value"] = 1 -defs["enums"]["ImGuiNavDirSourceFlags_"][2]["name"] = "ImGuiNavDirSourceFlags_RawKeyboard" -defs["enums"]["ImGuiNavDirSourceFlags_"][2]["value"] = "1 << 0" -defs["enums"]["ImGuiNavDirSourceFlags_"][3] = {} -defs["enums"]["ImGuiNavDirSourceFlags_"][3]["calc_value"] = 2 -defs["enums"]["ImGuiNavDirSourceFlags_"][3]["name"] = "ImGuiNavDirSourceFlags_Keyboard" -defs["enums"]["ImGuiNavDirSourceFlags_"][3]["value"] = "1 << 1" -defs["enums"]["ImGuiNavDirSourceFlags_"][4] = {} -defs["enums"]["ImGuiNavDirSourceFlags_"][4]["calc_value"] = 4 -defs["enums"]["ImGuiNavDirSourceFlags_"][4]["name"] = "ImGuiNavDirSourceFlags_PadDPad" -defs["enums"]["ImGuiNavDirSourceFlags_"][4]["value"] = "1 << 2" -defs["enums"]["ImGuiNavDirSourceFlags_"][5] = {} -defs["enums"]["ImGuiNavDirSourceFlags_"][5]["calc_value"] = 8 -defs["enums"]["ImGuiNavDirSourceFlags_"][5]["name"] = "ImGuiNavDirSourceFlags_PadLStick" -defs["enums"]["ImGuiNavDirSourceFlags_"][5]["value"] = "1 << 3" defs["enums"]["ImGuiNavHighlightFlags_"] = {} defs["enums"]["ImGuiNavHighlightFlags_"][1] = {} defs["enums"]["ImGuiNavHighlightFlags_"][1]["calc_value"] = 0 @@ -1567,95 +2276,75 @@ defs["enums"]["ImGuiNavHighlightFlags_"][5] = {} defs["enums"]["ImGuiNavHighlightFlags_"][5]["calc_value"] = 8 defs["enums"]["ImGuiNavHighlightFlags_"][5]["name"] = "ImGuiNavHighlightFlags_NoRounding" defs["enums"]["ImGuiNavHighlightFlags_"][5]["value"] = "1 << 3" -defs["enums"]["ImGuiNavInput_"] = {} -defs["enums"]["ImGuiNavInput_"][1] = {} -defs["enums"]["ImGuiNavInput_"][1]["calc_value"] = 0 -defs["enums"]["ImGuiNavInput_"][1]["name"] = "ImGuiNavInput_Activate" -defs["enums"]["ImGuiNavInput_"][1]["value"] = "0" -defs["enums"]["ImGuiNavInput_"][2] = {} -defs["enums"]["ImGuiNavInput_"][2]["calc_value"] = 1 -defs["enums"]["ImGuiNavInput_"][2]["name"] = "ImGuiNavInput_Cancel" -defs["enums"]["ImGuiNavInput_"][2]["value"] = "1" -defs["enums"]["ImGuiNavInput_"][3] = {} -defs["enums"]["ImGuiNavInput_"][3]["calc_value"] = 2 -defs["enums"]["ImGuiNavInput_"][3]["name"] = "ImGuiNavInput_Input" -defs["enums"]["ImGuiNavInput_"][3]["value"] = "2" -defs["enums"]["ImGuiNavInput_"][4] = {} -defs["enums"]["ImGuiNavInput_"][4]["calc_value"] = 3 -defs["enums"]["ImGuiNavInput_"][4]["name"] = "ImGuiNavInput_Menu" -defs["enums"]["ImGuiNavInput_"][4]["value"] = "3" -defs["enums"]["ImGuiNavInput_"][5] = {} -defs["enums"]["ImGuiNavInput_"][5]["calc_value"] = 4 -defs["enums"]["ImGuiNavInput_"][5]["name"] = "ImGuiNavInput_DpadLeft" -defs["enums"]["ImGuiNavInput_"][5]["value"] = "4" -defs["enums"]["ImGuiNavInput_"][6] = {} -defs["enums"]["ImGuiNavInput_"][6]["calc_value"] = 5 -defs["enums"]["ImGuiNavInput_"][6]["name"] = "ImGuiNavInput_DpadRight" -defs["enums"]["ImGuiNavInput_"][6]["value"] = "5" -defs["enums"]["ImGuiNavInput_"][7] = {} -defs["enums"]["ImGuiNavInput_"][7]["calc_value"] = 6 -defs["enums"]["ImGuiNavInput_"][7]["name"] = "ImGuiNavInput_DpadUp" -defs["enums"]["ImGuiNavInput_"][7]["value"] = "6" -defs["enums"]["ImGuiNavInput_"][8] = {} -defs["enums"]["ImGuiNavInput_"][8]["calc_value"] = 7 -defs["enums"]["ImGuiNavInput_"][8]["name"] = "ImGuiNavInput_DpadDown" -defs["enums"]["ImGuiNavInput_"][8]["value"] = "7" -defs["enums"]["ImGuiNavInput_"][9] = {} -defs["enums"]["ImGuiNavInput_"][9]["calc_value"] = 8 -defs["enums"]["ImGuiNavInput_"][9]["name"] = "ImGuiNavInput_LStickLeft" -defs["enums"]["ImGuiNavInput_"][9]["value"] = "8" -defs["enums"]["ImGuiNavInput_"][10] = {} -defs["enums"]["ImGuiNavInput_"][10]["calc_value"] = 9 -defs["enums"]["ImGuiNavInput_"][10]["name"] = "ImGuiNavInput_LStickRight" -defs["enums"]["ImGuiNavInput_"][10]["value"] = "9" -defs["enums"]["ImGuiNavInput_"][11] = {} -defs["enums"]["ImGuiNavInput_"][11]["calc_value"] = 10 -defs["enums"]["ImGuiNavInput_"][11]["name"] = "ImGuiNavInput_LStickUp" -defs["enums"]["ImGuiNavInput_"][11]["value"] = "10" -defs["enums"]["ImGuiNavInput_"][12] = {} -defs["enums"]["ImGuiNavInput_"][12]["calc_value"] = 11 -defs["enums"]["ImGuiNavInput_"][12]["name"] = "ImGuiNavInput_LStickDown" -defs["enums"]["ImGuiNavInput_"][12]["value"] = "11" -defs["enums"]["ImGuiNavInput_"][13] = {} -defs["enums"]["ImGuiNavInput_"][13]["calc_value"] = 12 -defs["enums"]["ImGuiNavInput_"][13]["name"] = "ImGuiNavInput_FocusPrev" -defs["enums"]["ImGuiNavInput_"][13]["value"] = "12" -defs["enums"]["ImGuiNavInput_"][14] = {} -defs["enums"]["ImGuiNavInput_"][14]["calc_value"] = 13 -defs["enums"]["ImGuiNavInput_"][14]["name"] = "ImGuiNavInput_FocusNext" -defs["enums"]["ImGuiNavInput_"][14]["value"] = "13" -defs["enums"]["ImGuiNavInput_"][15] = {} -defs["enums"]["ImGuiNavInput_"][15]["calc_value"] = 14 -defs["enums"]["ImGuiNavInput_"][15]["name"] = "ImGuiNavInput_TweakSlow" -defs["enums"]["ImGuiNavInput_"][15]["value"] = "14" -defs["enums"]["ImGuiNavInput_"][16] = {} -defs["enums"]["ImGuiNavInput_"][16]["calc_value"] = 15 -defs["enums"]["ImGuiNavInput_"][16]["name"] = "ImGuiNavInput_TweakFast" -defs["enums"]["ImGuiNavInput_"][16]["value"] = "15" -defs["enums"]["ImGuiNavInput_"][17] = {} -defs["enums"]["ImGuiNavInput_"][17]["calc_value"] = 16 -defs["enums"]["ImGuiNavInput_"][17]["name"] = "ImGuiNavInput_KeyLeft_" -defs["enums"]["ImGuiNavInput_"][17]["value"] = "16" -defs["enums"]["ImGuiNavInput_"][18] = {} -defs["enums"]["ImGuiNavInput_"][18]["calc_value"] = 17 -defs["enums"]["ImGuiNavInput_"][18]["name"] = "ImGuiNavInput_KeyRight_" -defs["enums"]["ImGuiNavInput_"][18]["value"] = "17" -defs["enums"]["ImGuiNavInput_"][19] = {} -defs["enums"]["ImGuiNavInput_"][19]["calc_value"] = 18 -defs["enums"]["ImGuiNavInput_"][19]["name"] = "ImGuiNavInput_KeyUp_" -defs["enums"]["ImGuiNavInput_"][19]["value"] = "18" -defs["enums"]["ImGuiNavInput_"][20] = {} -defs["enums"]["ImGuiNavInput_"][20]["calc_value"] = 19 -defs["enums"]["ImGuiNavInput_"][20]["name"] = "ImGuiNavInput_KeyDown_" -defs["enums"]["ImGuiNavInput_"][20]["value"] = "19" -defs["enums"]["ImGuiNavInput_"][21] = {} -defs["enums"]["ImGuiNavInput_"][21]["calc_value"] = 20 -defs["enums"]["ImGuiNavInput_"][21]["name"] = "ImGuiNavInput_COUNT" -defs["enums"]["ImGuiNavInput_"][21]["value"] = "20" -defs["enums"]["ImGuiNavInput_"][22] = {} -defs["enums"]["ImGuiNavInput_"][22]["calc_value"] = 16 -defs["enums"]["ImGuiNavInput_"][22]["name"] = "ImGuiNavInput_InternalStart_" -defs["enums"]["ImGuiNavInput_"][22]["value"] = "ImGuiNavInput_KeyLeft_" +defs["enums"]["ImGuiNavInput"] = {} +defs["enums"]["ImGuiNavInput"][1] = {} +defs["enums"]["ImGuiNavInput"][1]["calc_value"] = 0 +defs["enums"]["ImGuiNavInput"][1]["name"] = "ImGuiNavInput_Activate" +defs["enums"]["ImGuiNavInput"][1]["value"] = "0" +defs["enums"]["ImGuiNavInput"][2] = {} +defs["enums"]["ImGuiNavInput"][2]["calc_value"] = 1 +defs["enums"]["ImGuiNavInput"][2]["name"] = "ImGuiNavInput_Cancel" +defs["enums"]["ImGuiNavInput"][2]["value"] = "1" +defs["enums"]["ImGuiNavInput"][3] = {} +defs["enums"]["ImGuiNavInput"][3]["calc_value"] = 2 +defs["enums"]["ImGuiNavInput"][3]["name"] = "ImGuiNavInput_Input" +defs["enums"]["ImGuiNavInput"][3]["value"] = "2" +defs["enums"]["ImGuiNavInput"][4] = {} +defs["enums"]["ImGuiNavInput"][4]["calc_value"] = 3 +defs["enums"]["ImGuiNavInput"][4]["name"] = "ImGuiNavInput_Menu" +defs["enums"]["ImGuiNavInput"][4]["value"] = "3" +defs["enums"]["ImGuiNavInput"][5] = {} +defs["enums"]["ImGuiNavInput"][5]["calc_value"] = 4 +defs["enums"]["ImGuiNavInput"][5]["name"] = "ImGuiNavInput_DpadLeft" +defs["enums"]["ImGuiNavInput"][5]["value"] = "4" +defs["enums"]["ImGuiNavInput"][6] = {} +defs["enums"]["ImGuiNavInput"][6]["calc_value"] = 5 +defs["enums"]["ImGuiNavInput"][6]["name"] = "ImGuiNavInput_DpadRight" +defs["enums"]["ImGuiNavInput"][6]["value"] = "5" +defs["enums"]["ImGuiNavInput"][7] = {} +defs["enums"]["ImGuiNavInput"][7]["calc_value"] = 6 +defs["enums"]["ImGuiNavInput"][7]["name"] = "ImGuiNavInput_DpadUp" +defs["enums"]["ImGuiNavInput"][7]["value"] = "6" +defs["enums"]["ImGuiNavInput"][8] = {} +defs["enums"]["ImGuiNavInput"][8]["calc_value"] = 7 +defs["enums"]["ImGuiNavInput"][8]["name"] = "ImGuiNavInput_DpadDown" +defs["enums"]["ImGuiNavInput"][8]["value"] = "7" +defs["enums"]["ImGuiNavInput"][9] = {} +defs["enums"]["ImGuiNavInput"][9]["calc_value"] = 8 +defs["enums"]["ImGuiNavInput"][9]["name"] = "ImGuiNavInput_LStickLeft" +defs["enums"]["ImGuiNavInput"][9]["value"] = "8" +defs["enums"]["ImGuiNavInput"][10] = {} +defs["enums"]["ImGuiNavInput"][10]["calc_value"] = 9 +defs["enums"]["ImGuiNavInput"][10]["name"] = "ImGuiNavInput_LStickRight" +defs["enums"]["ImGuiNavInput"][10]["value"] = "9" +defs["enums"]["ImGuiNavInput"][11] = {} +defs["enums"]["ImGuiNavInput"][11]["calc_value"] = 10 +defs["enums"]["ImGuiNavInput"][11]["name"] = "ImGuiNavInput_LStickUp" +defs["enums"]["ImGuiNavInput"][11]["value"] = "10" +defs["enums"]["ImGuiNavInput"][12] = {} +defs["enums"]["ImGuiNavInput"][12]["calc_value"] = 11 +defs["enums"]["ImGuiNavInput"][12]["name"] = "ImGuiNavInput_LStickDown" +defs["enums"]["ImGuiNavInput"][12]["value"] = "11" +defs["enums"]["ImGuiNavInput"][13] = {} +defs["enums"]["ImGuiNavInput"][13]["calc_value"] = 12 +defs["enums"]["ImGuiNavInput"][13]["name"] = "ImGuiNavInput_FocusPrev" +defs["enums"]["ImGuiNavInput"][13]["value"] = "12" +defs["enums"]["ImGuiNavInput"][14] = {} +defs["enums"]["ImGuiNavInput"][14]["calc_value"] = 13 +defs["enums"]["ImGuiNavInput"][14]["name"] = "ImGuiNavInput_FocusNext" +defs["enums"]["ImGuiNavInput"][14]["value"] = "13" +defs["enums"]["ImGuiNavInput"][15] = {} +defs["enums"]["ImGuiNavInput"][15]["calc_value"] = 14 +defs["enums"]["ImGuiNavInput"][15]["name"] = "ImGuiNavInput_TweakSlow" +defs["enums"]["ImGuiNavInput"][15]["value"] = "14" +defs["enums"]["ImGuiNavInput"][16] = {} +defs["enums"]["ImGuiNavInput"][16]["calc_value"] = 15 +defs["enums"]["ImGuiNavInput"][16]["name"] = "ImGuiNavInput_TweakFast" +defs["enums"]["ImGuiNavInput"][16]["value"] = "15" +defs["enums"]["ImGuiNavInput"][17] = {} +defs["enums"]["ImGuiNavInput"][17]["calc_value"] = 16 +defs["enums"]["ImGuiNavInput"][17]["name"] = "ImGuiNavInput_COUNT" +defs["enums"]["ImGuiNavInput"][17]["value"] = "16" defs["enums"]["ImGuiNavLayer"] = {} defs["enums"]["ImGuiNavLayer"][1] = {} defs["enums"]["ImGuiNavLayer"][1]["calc_value"] = 0 @@ -1954,6 +2643,10 @@ defs["enums"]["ImGuiSelectableFlagsPrivate_"][8] = {} defs["enums"]["ImGuiSelectableFlagsPrivate_"][8]["calc_value"] = 134217728 defs["enums"]["ImGuiSelectableFlagsPrivate_"][8]["name"] = "ImGuiSelectableFlags_NoPadWithHalfSpacing" defs["enums"]["ImGuiSelectableFlagsPrivate_"][8]["value"] = "1 << 27" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][9] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][9]["calc_value"] = 268435456 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][9]["name"] = "ImGuiSelectableFlags_NoSetKeyOwner" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][9]["value"] = "1 << 28" defs["enums"]["ImGuiSelectableFlags_"] = {} defs["enums"]["ImGuiSelectableFlags_"][1] = {} defs["enums"]["ImGuiSelectableFlags_"][1]["calc_value"] = 0 @@ -2848,165 +3541,184 @@ defs["enums"]["ImGuiWindowFlags_"][32]["calc_value"] = 536870912 defs["enums"]["ImGuiWindowFlags_"][32]["name"] = "ImGuiWindowFlags_DockNodeHost" defs["enums"]["ImGuiWindowFlags_"][32]["value"] = "1 << 29" defs["enumtypes"] = {} +defs["enumtypes"]["ImGuiKey"] = "int" +defs["enumtypes"]["ImGuiLocKey"] = "int" defs["locations"] = {} -defs["locations"]["ImBitVector"] = "imgui_internal:570" -defs["locations"]["ImColor"] = "imgui:2347" -defs["locations"]["ImDrawChannel"] = "imgui:2437" -defs["locations"]["ImDrawCmd"] = "imgui:2396" -defs["locations"]["ImDrawCmdHeader"] = "imgui:2429" -defs["locations"]["ImDrawData"] = "imgui:2627" -defs["locations"]["ImDrawDataBuilder"] = "imgui_internal:743" -defs["locations"]["ImDrawFlags_"] = "imgui:2463" -defs["locations"]["ImDrawList"] = "imgui:2501" -defs["locations"]["ImDrawListFlags_"] = "imgui:2483" -defs["locations"]["ImDrawListSharedData"] = "imgui_internal:723" -defs["locations"]["ImDrawListSplitter"] = "imgui:2446" -defs["locations"]["ImDrawVert"] = "imgui:2414" -defs["locations"]["ImFont"] = "imgui:2846" -defs["locations"]["ImFontAtlas"] = "imgui:2744" -defs["locations"]["ImFontAtlasCustomRect"] = "imgui:2706" -defs["locations"]["ImFontAtlasFlags_"] = "imgui:2719" -defs["locations"]["ImFontBuilderIO"] = "imgui_internal:3101" -defs["locations"]["ImFontConfig"] = "imgui:2650" -defs["locations"]["ImFontGlyph"] = "imgui:2679" -defs["locations"]["ImFontGlyphRangesBuilder"] = "imgui:2691" -defs["locations"]["ImGuiActivateFlags_"] = "imgui_internal:1227" -defs["locations"]["ImGuiAxis"] = "imgui_internal:899" -defs["locations"]["ImGuiBackendFlags_"] = "imgui:1512" -defs["locations"]["ImGuiButtonFlagsPrivate_"] = "imgui_internal:806" -defs["locations"]["ImGuiButtonFlags_"] = "imgui:1626" -defs["locations"]["ImGuiCol_"] = "imgui:1527" -defs["locations"]["ImGuiColorEditFlags_"] = "imgui:1639" -defs["locations"]["ImGuiColorMod"] = "imgui_internal:964" -defs["locations"]["ImGuiComboFlagsPrivate_"] = "imgui_internal:829" -defs["locations"]["ImGuiComboFlags_"] = "imgui:1122" -defs["locations"]["ImGuiComboPreviewData"] = "imgui_internal:981" -defs["locations"]["ImGuiCond_"] = "imgui:1731" -defs["locations"]["ImGuiConfigFlags_"] = "imgui:1487" -defs["locations"]["ImGuiContext"] = "imgui_internal:1670" -defs["locations"]["ImGuiContextHook"] = "imgui_internal:1655" -defs["locations"]["ImGuiContextHookType"] = "imgui_internal:1653" -defs["locations"]["ImGuiDataAuthority_"] = "imgui_internal:1404" -defs["locations"]["ImGuiDataTypeInfo"] = "imgui_internal:947" -defs["locations"]["ImGuiDataTypePrivate_"] = "imgui_internal:956" -defs["locations"]["ImGuiDataTypeTempStorage"] = "imgui_internal:941" -defs["locations"]["ImGuiDataType_"] = "imgui:1380" -defs["locations"]["ImGuiDir_"] = "imgui:1396" -defs["locations"]["ImGuiDockContext"] = "imgui_internal:1502" -defs["locations"]["ImGuiDockNode"] = "imgui_internal:1420" -defs["locations"]["ImGuiDockNodeFlagsPrivate_"] = "imgui_internal:1379" -defs["locations"]["ImGuiDockNodeFlags_"] = "imgui:1345" -defs["locations"]["ImGuiDockNodeState"] = "imgui_internal:1411" -defs["locations"]["ImGuiDragDropFlags_"] = "imgui:1358" -defs["locations"]["ImGuiFocusedFlags_"] = "imgui:1311" -defs["locations"]["ImGuiGroupData"] = "imgui_internal:994" -defs["locations"]["ImGuiHoveredFlags_"] = "imgui:1325" -defs["locations"]["ImGuiIO"] = "imgui:1897" -defs["locations"]["ImGuiInputReadMode"] = "imgui_internal:924" -defs["locations"]["ImGuiInputSource"] = "imgui_internal:912" -defs["locations"]["ImGuiInputTextCallbackData"] = "imgui:2054" -defs["locations"]["ImGuiInputTextFlagsPrivate_"] = "imgui_internal:797" -defs["locations"]["ImGuiInputTextFlags_"] = "imgui:1035" -defs["locations"]["ImGuiInputTextState"] = "imgui_internal:1029" -defs["locations"]["ImGuiItemFlags_"] = "imgui_internal:759" -defs["locations"]["ImGuiItemStatusFlags_"] = "imgui_internal:774" -defs["locations"]["ImGuiKeyModFlags_"] = "imgui:1443" -defs["locations"]["ImGuiKey_"] = "imgui:1415" -defs["locations"]["ImGuiLastItemData"] = "imgui_internal:1142" -defs["locations"]["ImGuiLayoutType_"] = "imgui_internal:883" -defs["locations"]["ImGuiListClipper"] = "imgui:2299" -defs["locations"]["ImGuiListClipperData"] = "imgui_internal:1211" -defs["locations"]["ImGuiListClipperRange"] = "imgui_internal:1198" -defs["locations"]["ImGuiLogType"] = "imgui_internal:889" -defs["locations"]["ImGuiMenuColumns"] = "imgui_internal:1010" -defs["locations"]["ImGuiMetricsConfig"] = "imgui_internal:1601" -defs["locations"]["ImGuiMouseButton_"] = "imgui:1703" -defs["locations"]["ImGuiMouseCursor_"] = "imgui:1713" -defs["locations"]["ImGuiNavDirSourceFlags_"] = "imgui_internal:1259" -defs["locations"]["ImGuiNavHighlightFlags_"] = "imgui_internal:1250" -defs["locations"]["ImGuiNavInput_"] = "imgui:1456" -defs["locations"]["ImGuiNavItemData"] = "imgui_internal:1293" -defs["locations"]["ImGuiNavLayer"] = "imgui_internal:1286" -defs["locations"]["ImGuiNavMoveFlags_"] = "imgui_internal:1268" -defs["locations"]["ImGuiNextItemData"] = "imgui_internal:1129" -defs["locations"]["ImGuiNextItemDataFlags_"] = "imgui_internal:1122" -defs["locations"]["ImGuiNextWindowData"] = "imgui_internal:1095" -defs["locations"]["ImGuiNextWindowDataFlags_"] = "imgui_internal:1078" -defs["locations"]["ImGuiOldColumnData"] = "imgui_internal:1333" -defs["locations"]["ImGuiOldColumnFlags_"] = "imgui_internal:1313" -defs["locations"]["ImGuiOldColumns"] = "imgui_internal:1343" -defs["locations"]["ImGuiOnceUponAFrame"] = "imgui:2174" -defs["locations"]["ImGuiPayload"] = "imgui:2115" -defs["locations"]["ImGuiPlatformIO"] = "imgui:3009" -defs["locations"]["ImGuiPlatformMonitor"] = "imgui:3073" -defs["locations"]["ImGuiPlotType"] = "imgui_internal:906" -defs["locations"]["ImGuiPopupData"] = "imgui_internal:1065" -defs["locations"]["ImGuiPopupFlags_"] = "imgui:1095" -defs["locations"]["ImGuiPopupPositionPolicy"] = "imgui_internal:934" -defs["locations"]["ImGuiPtrOrIndex"] = "imgui_internal:1185" -defs["locations"]["ImGuiScrollFlags_"] = "imgui_internal:1236" -defs["locations"]["ImGuiSelectableFlagsPrivate_"] = "imgui_internal:842" -defs["locations"]["ImGuiSelectableFlags_"] = "imgui:1111" -defs["locations"]["ImGuiSeparatorFlags_"] = "imgui_internal:861" -defs["locations"]["ImGuiSettingsHandler"] = "imgui_internal:1582" -defs["locations"]["ImGuiShrinkWidthItem"] = "imgui_internal:1179" -defs["locations"]["ImGuiSizeCallbackData"] = "imgui:2085" -defs["locations"]["ImGuiSliderFlagsPrivate_"] = "imgui_internal:835" -defs["locations"]["ImGuiSliderFlags_"] = "imgui:1686" -defs["locations"]["ImGuiSortDirection_"] = "imgui:1407" -defs["locations"]["ImGuiStackLevelInfo"] = "imgui_internal:1627" -defs["locations"]["ImGuiStackSizes"] = "imgui_internal:1154" -defs["locations"]["ImGuiStackTool"] = "imgui_internal:1638" -defs["locations"]["ImGuiStorage"] = "imgui:2236" -defs["locations"]["ImGuiStoragePair"] = "imgui:2239" -defs["locations"]["ImGuiStyle"] = "imgui:1842" -defs["locations"]["ImGuiStyleMod"] = "imgui_internal:971" -defs["locations"]["ImGuiStyleVar_"] = "imgui:1594" -defs["locations"]["ImGuiTabBar"] = "imgui_internal:2334" -defs["locations"]["ImGuiTabBarFlagsPrivate_"] = "imgui_internal:2297" -defs["locations"]["ImGuiTabBarFlags_"] = "imgui:1136" -defs["locations"]["ImGuiTabItem"] = "imgui_internal:2315" -defs["locations"]["ImGuiTabItemFlagsPrivate_"] = "imgui_internal:2305" -defs["locations"]["ImGuiTabItemFlags_"] = "imgui:1152" -defs["locations"]["ImGuiTable"] = "imgui_internal:2461" -defs["locations"]["ImGuiTableBgTarget_"] = "imgui:1302" -defs["locations"]["ImGuiTableCellData"] = "imgui_internal:2454" -defs["locations"]["ImGuiTableColumn"] = "imgui_internal:2395" -defs["locations"]["ImGuiTableColumnFlags_"] = "imgui:1245" -defs["locations"]["ImGuiTableColumnSettings"] = "imgui_internal:2595" -defs["locations"]["ImGuiTableColumnSortSpecs"] = "imgui:2137" -defs["locations"]["ImGuiTableFlags_"] = "imgui:1188" -defs["locations"]["ImGuiTableRowFlags_"] = "imgui:1287" -defs["locations"]["ImGuiTableSettings"] = "imgui_internal:2619" -defs["locations"]["ImGuiTableSortSpecs"] = "imgui:2151" -defs["locations"]["ImGuiTableTempData"] = "imgui_internal:2574" -defs["locations"]["ImGuiTextBuffer"] = "imgui:2209" -defs["locations"]["ImGuiTextFilter"] = "imgui:2182" -defs["locations"]["ImGuiTextFlags_"] = "imgui_internal:869" -defs["locations"]["ImGuiTextRange"] = "imgui:2192" -defs["locations"]["ImGuiTooltipFlags_"] = "imgui_internal:875" -defs["locations"]["ImGuiTreeNodeFlagsPrivate_"] = "imgui_internal:856" -defs["locations"]["ImGuiTreeNodeFlags_"] = "imgui:1066" -defs["locations"]["ImGuiViewport"] = "imgui:2927" -defs["locations"]["ImGuiViewportFlags_"] = "imgui:2902" -defs["locations"]["ImGuiViewportP"] = "imgui_internal:1519" -defs["locations"]["ImGuiWindow"] = "imgui_internal:2153" -defs["locations"]["ImGuiWindowClass"] = "imgui:2100" -defs["locations"]["ImGuiWindowDockStyle"] = "imgui_internal:1497" -defs["locations"]["ImGuiWindowDockStyleCol"] = "imgui_internal:1486" -defs["locations"]["ImGuiWindowFlags_"] = "imgui:992" -defs["locations"]["ImGuiWindowSettings"] = "imgui_internal:1565" -defs["locations"]["ImGuiWindowStackData"] = "imgui_internal:1172" -defs["locations"]["ImGuiWindowTempData"] = "imgui_internal:2106" -defs["locations"]["ImRect"] = "imgui_internal:499" -defs["locations"]["ImVec1"] = "imgui_internal:481" -defs["locations"]["ImVec2"] = "imgui:266" -defs["locations"]["ImVec2ih"] = "imgui_internal:489" -defs["locations"]["ImVec4"] = "imgui:279" -defs["locations"]["STB_TexteditState"] = "imstb_textedit:317" -defs["locations"]["StbTexteditRow"] = "imstb_textedit:364" -defs["locations"]["StbUndoRecord"] = "imstb_textedit:299" -defs["locations"]["StbUndoState"] = "imstb_textedit:308" +defs["locations"]["ImBitVector"] = "imgui_internal:593" +defs["locations"]["ImColor"] = "imgui:2458" +defs["locations"]["ImDrawChannel"] = "imgui:2548" +defs["locations"]["ImDrawCmd"] = "imgui:2507" +defs["locations"]["ImDrawCmdHeader"] = "imgui:2540" +defs["locations"]["ImDrawData"] = "imgui:2740" +defs["locations"]["ImDrawDataBuilder"] = "imgui_internal:782" +defs["locations"]["ImDrawFlags_"] = "imgui:2574" +defs["locations"]["ImDrawList"] = "imgui:2612" +defs["locations"]["ImDrawListFlags_"] = "imgui:2594" +defs["locations"]["ImDrawListSharedData"] = "imgui_internal:759" +defs["locations"]["ImDrawListSplitter"] = "imgui:2557" +defs["locations"]["ImDrawVert"] = "imgui:2525" +defs["locations"]["ImFont"] = "imgui:2959" +defs["locations"]["ImFontAtlas"] = "imgui:2857" +defs["locations"]["ImFontAtlasCustomRect"] = "imgui:2819" +defs["locations"]["ImFontAtlasFlags_"] = "imgui:2832" +defs["locations"]["ImFontBuilderIO"] = "imgui_internal:3476" +defs["locations"]["ImFontConfig"] = "imgui:2763" +defs["locations"]["ImFontGlyph"] = "imgui:2792" +defs["locations"]["ImFontGlyphRangesBuilder"] = "imgui:2804" +defs["locations"]["ImGuiActivateFlags_"] = "imgui_internal:1428" +defs["locations"]["ImGuiAxis"] = "imgui_internal:949" +defs["locations"]["ImGuiBackendFlags_"] = "imgui:1579" +defs["locations"]["ImGuiButtonFlagsPrivate_"] = "imgui_internal:853" +defs["locations"]["ImGuiButtonFlags_"] = "imgui:1693" +defs["locations"]["ImGuiCol_"] = "imgui:1594" +defs["locations"]["ImGuiColorEditFlags_"] = "imgui:1706" +defs["locations"]["ImGuiColorMod"] = "imgui_internal:992" +defs["locations"]["ImGuiComboFlagsPrivate_"] = "imgui_internal:878" +defs["locations"]["ImGuiComboFlags_"] = "imgui:1124" +defs["locations"]["ImGuiComboPreviewData"] = "imgui_internal:1009" +defs["locations"]["ImGuiCond_"] = "imgui:1797" +defs["locations"]["ImGuiConfigFlags_"] = "imgui:1554" +defs["locations"]["ImGuiContext"] = "imgui_internal:1905" +defs["locations"]["ImGuiContextHook"] = "imgui_internal:1890" +defs["locations"]["ImGuiContextHookType"] = "imgui_internal:1888" +defs["locations"]["ImGuiDataAuthority_"] = "imgui_internal:1599" +defs["locations"]["ImGuiDataTypeInfo"] = "imgui_internal:975" +defs["locations"]["ImGuiDataTypePrivate_"] = "imgui_internal:984" +defs["locations"]["ImGuiDataTypeTempStorage"] = "imgui_internal:969" +defs["locations"]["ImGuiDataType_"] = "imgui:1376" +defs["locations"]["ImGuiDebugLogFlags_"] = "imgui_internal:1820" +defs["locations"]["ImGuiDir_"] = "imgui:1392" +defs["locations"]["ImGuiDockContext"] = "imgui_internal:1697" +defs["locations"]["ImGuiDockNode"] = "imgui_internal:1615" +defs["locations"]["ImGuiDockNodeFlagsPrivate_"] = "imgui_internal:1574" +defs["locations"]["ImGuiDockNodeFlags_"] = "imgui:1341" +defs["locations"]["ImGuiDockNodeState"] = "imgui_internal:1606" +defs["locations"]["ImGuiDragDropFlags_"] = "imgui:1354" +defs["locations"]["ImGuiFocusedFlags_"] = "imgui:1301" +defs["locations"]["ImGuiGroupData"] = "imgui_internal:1022" +defs["locations"]["ImGuiHoveredFlags_"] = "imgui:1315" +defs["locations"]["ImGuiIO"] = "imgui:1974" +defs["locations"]["ImGuiInputEvent"] = "imgui_internal:1286" +defs["locations"]["ImGuiInputEventAppFocused"] = "imgui_internal:1284" +defs["locations"]["ImGuiInputEventKey"] = "imgui_internal:1282" +defs["locations"]["ImGuiInputEventMouseButton"] = "imgui_internal:1280" +defs["locations"]["ImGuiInputEventMousePos"] = "imgui_internal:1278" +defs["locations"]["ImGuiInputEventMouseViewport"] = "imgui_internal:1281" +defs["locations"]["ImGuiInputEventMouseWheel"] = "imgui_internal:1279" +defs["locations"]["ImGuiInputEventText"] = "imgui_internal:1283" +defs["locations"]["ImGuiInputEventType"] = "imgui_internal:1252" +defs["locations"]["ImGuiInputFlags_"] = "imgui_internal:1349" +defs["locations"]["ImGuiInputSource"] = "imgui_internal:1265" +defs["locations"]["ImGuiInputTextCallbackData"] = "imgui:2162" +defs["locations"]["ImGuiInputTextFlagsPrivate_"] = "imgui_internal:844" +defs["locations"]["ImGuiInputTextFlags_"] = "imgui:1036" +defs["locations"]["ImGuiInputTextState"] = "imgui_internal:1057" +defs["locations"]["ImGuiItemFlags_"] = "imgui_internal:801" +defs["locations"]["ImGuiItemStatusFlags_"] = "imgui_internal:821" +defs["locations"]["ImGuiKey"] = "imgui:1413" +defs["locations"]["ImGuiKeyData"] = "imgui:1966" +defs["locations"]["ImGuiKeyOwnerData"] = "imgui_internal:1337" +defs["locations"]["ImGuiKeyRoutingData"] = "imgui_internal:1312" +defs["locations"]["ImGuiKeyRoutingTable"] = "imgui_internal:1325" +defs["locations"]["ImGuiLastItemData"] = "imgui_internal:1171" +defs["locations"]["ImGuiLayoutType_"] = "imgui_internal:933" +defs["locations"]["ImGuiListClipper"] = "imgui:2407" +defs["locations"]["ImGuiListClipperData"] = "imgui_internal:1412" +defs["locations"]["ImGuiListClipperRange"] = "imgui_internal:1399" +defs["locations"]["ImGuiLocEntry"] = "imgui_internal:1809" +defs["locations"]["ImGuiLocKey"] = "imgui_internal:1796" +defs["locations"]["ImGuiLogType"] = "imgui_internal:939" +defs["locations"]["ImGuiMenuColumns"] = "imgui_internal:1038" +defs["locations"]["ImGuiMetricsConfig"] = "imgui_internal:1836" +defs["locations"]["ImGuiMouseButton_"] = "imgui:1769" +defs["locations"]["ImGuiMouseCursor_"] = "imgui:1779" +defs["locations"]["ImGuiNavHighlightFlags_"] = "imgui_internal:1451" +defs["locations"]["ImGuiNavInput"] = "imgui:1545" +defs["locations"]["ImGuiNavItemData"] = "imgui_internal:1485" +defs["locations"]["ImGuiNavLayer"] = "imgui_internal:1478" +defs["locations"]["ImGuiNavMoveFlags_"] = "imgui_internal:1460" +defs["locations"]["ImGuiNextItemData"] = "imgui_internal:1158" +defs["locations"]["ImGuiNextItemDataFlags_"] = "imgui_internal:1151" +defs["locations"]["ImGuiNextWindowData"] = "imgui_internal:1124" +defs["locations"]["ImGuiNextWindowDataFlags_"] = "imgui_internal:1107" +defs["locations"]["ImGuiOldColumnData"] = "imgui_internal:1525" +defs["locations"]["ImGuiOldColumnFlags_"] = "imgui_internal:1505" +defs["locations"]["ImGuiOldColumns"] = "imgui_internal:1535" +defs["locations"]["ImGuiOnceUponAFrame"] = "imgui:2282" +defs["locations"]["ImGuiPayload"] = "imgui:2223" +defs["locations"]["ImGuiPlatformIO"] = "imgui:3124" +defs["locations"]["ImGuiPlatformImeData"] = "imgui:3196" +defs["locations"]["ImGuiPlatformMonitor"] = "imgui:3187" +defs["locations"]["ImGuiPlotType"] = "imgui_internal:956" +defs["locations"]["ImGuiPopupData"] = "imgui_internal:1093" +defs["locations"]["ImGuiPopupFlags_"] = "imgui:1097" +defs["locations"]["ImGuiPopupPositionPolicy"] = "imgui_internal:962" +defs["locations"]["ImGuiPtrOrIndex"] = "imgui_internal:1215" +defs["locations"]["ImGuiScrollFlags_"] = "imgui_internal:1437" +defs["locations"]["ImGuiSelectableFlagsPrivate_"] = "imgui_internal:891" +defs["locations"]["ImGuiSelectableFlags_"] = "imgui:1113" +defs["locations"]["ImGuiSeparatorFlags_"] = "imgui_internal:911" +defs["locations"]["ImGuiSettingsHandler"] = "imgui_internal:1776" +defs["locations"]["ImGuiShrinkWidthItem"] = "imgui_internal:1208" +defs["locations"]["ImGuiSizeCallbackData"] = "imgui:2193" +defs["locations"]["ImGuiSliderFlagsPrivate_"] = "imgui_internal:884" +defs["locations"]["ImGuiSliderFlags_"] = "imgui:1752" +defs["locations"]["ImGuiSortDirection_"] = "imgui:1403" +defs["locations"]["ImGuiStackLevelInfo"] = "imgui_internal:1859" +defs["locations"]["ImGuiStackSizes"] = "imgui_internal:1183" +defs["locations"]["ImGuiStackTool"] = "imgui_internal:1871" +defs["locations"]["ImGuiStorage"] = "imgui:2344" +defs["locations"]["ImGuiStoragePair"] = "imgui:2347" +defs["locations"]["ImGuiStyle"] = "imgui:1909" +defs["locations"]["ImGuiStyleMod"] = "imgui_internal:999" +defs["locations"]["ImGuiStyleVar_"] = "imgui:1661" +defs["locations"]["ImGuiTabBar"] = "imgui_internal:2612" +defs["locations"]["ImGuiTabBarFlagsPrivate_"] = "imgui_internal:2574" +defs["locations"]["ImGuiTabBarFlags_"] = "imgui:1138" +defs["locations"]["ImGuiTabItem"] = "imgui_internal:2592" +defs["locations"]["ImGuiTabItemFlagsPrivate_"] = "imgui_internal:2582" +defs["locations"]["ImGuiTabItemFlags_"] = "imgui:1154" +defs["locations"]["ImGuiTable"] = "imgui_internal:2748" +defs["locations"]["ImGuiTableBgTarget_"] = "imgui:1292" +defs["locations"]["ImGuiTableCellData"] = "imgui_internal:2732" +defs["locations"]["ImGuiTableColumn"] = "imgui_internal:2673" +defs["locations"]["ImGuiTableColumnFlags_"] = "imgui:1240" +defs["locations"]["ImGuiTableColumnSettings"] = "imgui_internal:2883" +defs["locations"]["ImGuiTableColumnSortSpecs"] = "imgui:2245" +defs["locations"]["ImGuiTableFlags_"] = "imgui:1189" +defs["locations"]["ImGuiTableInstanceData"] = "imgui_internal:2739" +defs["locations"]["ImGuiTableRowFlags_"] = "imgui:1277" +defs["locations"]["ImGuiTableSettings"] = "imgui_internal:2907" +defs["locations"]["ImGuiTableSortSpecs"] = "imgui:2259" +defs["locations"]["ImGuiTableTempData"] = "imgui_internal:2862" +defs["locations"]["ImGuiTextBuffer"] = "imgui:2317" +defs["locations"]["ImGuiTextFilter"] = "imgui:2290" +defs["locations"]["ImGuiTextFlags_"] = "imgui_internal:919" +defs["locations"]["ImGuiTextIndex"] = "imgui_internal:716" +defs["locations"]["ImGuiTextRange"] = "imgui:2300" +defs["locations"]["ImGuiTooltipFlags_"] = "imgui_internal:925" +defs["locations"]["ImGuiTreeNodeFlagsPrivate_"] = "imgui_internal:906" +defs["locations"]["ImGuiTreeNodeFlags_"] = "imgui:1068" +defs["locations"]["ImGuiViewport"] = "imgui:3040" +defs["locations"]["ImGuiViewportFlags_"] = "imgui:3015" +defs["locations"]["ImGuiViewportP"] = "imgui_internal:1714" +defs["locations"]["ImGuiWindow"] = "imgui_internal:2430" +defs["locations"]["ImGuiWindowClass"] = "imgui:2208" +defs["locations"]["ImGuiWindowDockStyle"] = "imgui_internal:1692" +defs["locations"]["ImGuiWindowDockStyleCol"] = "imgui_internal:1681" +defs["locations"]["ImGuiWindowFlags_"] = "imgui:995" +defs["locations"]["ImGuiWindowSettings"] = "imgui_internal:1759" +defs["locations"]["ImGuiWindowStackData"] = "imgui_internal:1201" +defs["locations"]["ImGuiWindowTempData"] = "imgui_internal:2382" +defs["locations"]["ImRect"] = "imgui_internal:521" +defs["locations"]["ImVec1"] = "imgui_internal:503" +defs["locations"]["ImVec2"] = "imgui:259" +defs["locations"]["ImVec2ih"] = "imgui_internal:511" +defs["locations"]["ImVec4"] = "imgui:272" +defs["locations"]["STB_TexteditState"] = "imstb_textedit:319" +defs["locations"]["StbTexteditRow"] = "imstb_textedit:366" +defs["locations"]["StbUndoRecord"] = "imstb_textedit:301" +defs["locations"]["StbUndoState"] = "imstb_textedit:310" defs["structs"] = {} defs["structs"]["ImBitVector"] = {} defs["structs"]["ImBitVector"][1] = {} @@ -3113,7 +3825,7 @@ defs["structs"]["ImDrawList"][5]["name"] = "_VtxCurrentIdx" defs["structs"]["ImDrawList"][5]["type"] = "unsigned int" defs["structs"]["ImDrawList"][6] = {} defs["structs"]["ImDrawList"][6]["name"] = "_Data" -defs["structs"]["ImDrawList"][6]["type"] = "const ImDrawListSharedData*" +defs["structs"]["ImDrawList"][6]["type"] = "ImDrawListSharedData*" defs["structs"]["ImDrawList"][7] = {} defs["structs"]["ImDrawList"][7]["name"] = "_OwnerName" defs["structs"]["ImDrawList"][7]["type"] = "const char*" @@ -3167,19 +3879,23 @@ defs["structs"]["ImDrawListSharedData"][7] = {} defs["structs"]["ImDrawListSharedData"][7]["name"] = "InitialFlags" defs["structs"]["ImDrawListSharedData"][7]["type"] = "ImDrawListFlags" defs["structs"]["ImDrawListSharedData"][8] = {} -defs["structs"]["ImDrawListSharedData"][8]["name"] = "ArcFastVtx[48]" -defs["structs"]["ImDrawListSharedData"][8]["size"] = 48 -defs["structs"]["ImDrawListSharedData"][8]["type"] = "ImVec2" +defs["structs"]["ImDrawListSharedData"][8]["name"] = "TempBuffer" +defs["structs"]["ImDrawListSharedData"][8]["template_type"] = "ImVec2" +defs["structs"]["ImDrawListSharedData"][8]["type"] = "ImVector_ImVec2" defs["structs"]["ImDrawListSharedData"][9] = {} -defs["structs"]["ImDrawListSharedData"][9]["name"] = "ArcFastRadiusCutoff" -defs["structs"]["ImDrawListSharedData"][9]["type"] = "float" +defs["structs"]["ImDrawListSharedData"][9]["name"] = "ArcFastVtx[48]" +defs["structs"]["ImDrawListSharedData"][9]["size"] = 48 +defs["structs"]["ImDrawListSharedData"][9]["type"] = "ImVec2" defs["structs"]["ImDrawListSharedData"][10] = {} -defs["structs"]["ImDrawListSharedData"][10]["name"] = "CircleSegmentCounts[64]" -defs["structs"]["ImDrawListSharedData"][10]["size"] = 64 -defs["structs"]["ImDrawListSharedData"][10]["type"] = "ImU8" +defs["structs"]["ImDrawListSharedData"][10]["name"] = "ArcFastRadiusCutoff" +defs["structs"]["ImDrawListSharedData"][10]["type"] = "float" defs["structs"]["ImDrawListSharedData"][11] = {} -defs["structs"]["ImDrawListSharedData"][11]["name"] = "TexUvLines" -defs["structs"]["ImDrawListSharedData"][11]["type"] = "const ImVec4*" +defs["structs"]["ImDrawListSharedData"][11]["name"] = "CircleSegmentCounts[64]" +defs["structs"]["ImDrawListSharedData"][11]["size"] = 64 +defs["structs"]["ImDrawListSharedData"][11]["type"] = "ImU8" +defs["structs"]["ImDrawListSharedData"][12] = {} +defs["structs"]["ImDrawListSharedData"][12]["name"] = "TexUvLines" +defs["structs"]["ImDrawListSharedData"][12]["type"] = "const ImVec4*" defs["structs"]["ImDrawListSplitter"] = {} defs["structs"]["ImDrawListSplitter"][1] = {} defs["structs"]["ImDrawListSplitter"][1]["name"] = "_Current" @@ -3501,705 +4217,760 @@ defs["structs"]["ImGuiContext"][4] = {} defs["structs"]["ImGuiContext"][4]["name"] = "PlatformIO" defs["structs"]["ImGuiContext"][4]["type"] = "ImGuiPlatformIO" defs["structs"]["ImGuiContext"][5] = {} -defs["structs"]["ImGuiContext"][5]["name"] = "Style" -defs["structs"]["ImGuiContext"][5]["type"] = "ImGuiStyle" +defs["structs"]["ImGuiContext"][5]["name"] = "InputEventsQueue" +defs["structs"]["ImGuiContext"][5]["template_type"] = "ImGuiInputEvent" +defs["structs"]["ImGuiContext"][5]["type"] = "ImVector_ImGuiInputEvent" defs["structs"]["ImGuiContext"][6] = {} -defs["structs"]["ImGuiContext"][6]["name"] = "ConfigFlagsCurrFrame" -defs["structs"]["ImGuiContext"][6]["type"] = "ImGuiConfigFlags" +defs["structs"]["ImGuiContext"][6]["name"] = "InputEventsTrail" +defs["structs"]["ImGuiContext"][6]["template_type"] = "ImGuiInputEvent" +defs["structs"]["ImGuiContext"][6]["type"] = "ImVector_ImGuiInputEvent" defs["structs"]["ImGuiContext"][7] = {} -defs["structs"]["ImGuiContext"][7]["name"] = "ConfigFlagsLastFrame" -defs["structs"]["ImGuiContext"][7]["type"] = "ImGuiConfigFlags" +defs["structs"]["ImGuiContext"][7]["name"] = "Style" +defs["structs"]["ImGuiContext"][7]["type"] = "ImGuiStyle" defs["structs"]["ImGuiContext"][8] = {} -defs["structs"]["ImGuiContext"][8]["name"] = "Font" -defs["structs"]["ImGuiContext"][8]["type"] = "ImFont*" +defs["structs"]["ImGuiContext"][8]["name"] = "ConfigFlagsCurrFrame" +defs["structs"]["ImGuiContext"][8]["type"] = "ImGuiConfigFlags" defs["structs"]["ImGuiContext"][9] = {} -defs["structs"]["ImGuiContext"][9]["name"] = "FontSize" -defs["structs"]["ImGuiContext"][9]["type"] = "float" +defs["structs"]["ImGuiContext"][9]["name"] = "ConfigFlagsLastFrame" +defs["structs"]["ImGuiContext"][9]["type"] = "ImGuiConfigFlags" defs["structs"]["ImGuiContext"][10] = {} -defs["structs"]["ImGuiContext"][10]["name"] = "FontBaseSize" -defs["structs"]["ImGuiContext"][10]["type"] = "float" +defs["structs"]["ImGuiContext"][10]["name"] = "Font" +defs["structs"]["ImGuiContext"][10]["type"] = "ImFont*" defs["structs"]["ImGuiContext"][11] = {} -defs["structs"]["ImGuiContext"][11]["name"] = "DrawListSharedData" -defs["structs"]["ImGuiContext"][11]["type"] = "ImDrawListSharedData" +defs["structs"]["ImGuiContext"][11]["name"] = "FontSize" +defs["structs"]["ImGuiContext"][11]["type"] = "float" defs["structs"]["ImGuiContext"][12] = {} -defs["structs"]["ImGuiContext"][12]["name"] = "Time" -defs["structs"]["ImGuiContext"][12]["type"] = "double" +defs["structs"]["ImGuiContext"][12]["name"] = "FontBaseSize" +defs["structs"]["ImGuiContext"][12]["type"] = "float" defs["structs"]["ImGuiContext"][13] = {} -defs["structs"]["ImGuiContext"][13]["name"] = "FrameCount" -defs["structs"]["ImGuiContext"][13]["type"] = "int" +defs["structs"]["ImGuiContext"][13]["name"] = "DrawListSharedData" +defs["structs"]["ImGuiContext"][13]["type"] = "ImDrawListSharedData" defs["structs"]["ImGuiContext"][14] = {} -defs["structs"]["ImGuiContext"][14]["name"] = "FrameCountEnded" -defs["structs"]["ImGuiContext"][14]["type"] = "int" +defs["structs"]["ImGuiContext"][14]["name"] = "Time" +defs["structs"]["ImGuiContext"][14]["type"] = "double" defs["structs"]["ImGuiContext"][15] = {} -defs["structs"]["ImGuiContext"][15]["name"] = "FrameCountPlatformEnded" +defs["structs"]["ImGuiContext"][15]["name"] = "FrameCount" defs["structs"]["ImGuiContext"][15]["type"] = "int" defs["structs"]["ImGuiContext"][16] = {} -defs["structs"]["ImGuiContext"][16]["name"] = "FrameCountRendered" +defs["structs"]["ImGuiContext"][16]["name"] = "FrameCountEnded" defs["structs"]["ImGuiContext"][16]["type"] = "int" defs["structs"]["ImGuiContext"][17] = {} -defs["structs"]["ImGuiContext"][17]["name"] = "WithinFrameScope" -defs["structs"]["ImGuiContext"][17]["type"] = "bool" +defs["structs"]["ImGuiContext"][17]["name"] = "FrameCountPlatformEnded" +defs["structs"]["ImGuiContext"][17]["type"] = "int" defs["structs"]["ImGuiContext"][18] = {} -defs["structs"]["ImGuiContext"][18]["name"] = "WithinFrameScopeWithImplicitWindow" -defs["structs"]["ImGuiContext"][18]["type"] = "bool" +defs["structs"]["ImGuiContext"][18]["name"] = "FrameCountRendered" +defs["structs"]["ImGuiContext"][18]["type"] = "int" defs["structs"]["ImGuiContext"][19] = {} -defs["structs"]["ImGuiContext"][19]["name"] = "WithinEndChild" +defs["structs"]["ImGuiContext"][19]["name"] = "WithinFrameScope" defs["structs"]["ImGuiContext"][19]["type"] = "bool" defs["structs"]["ImGuiContext"][20] = {} -defs["structs"]["ImGuiContext"][20]["name"] = "GcCompactAll" +defs["structs"]["ImGuiContext"][20]["name"] = "WithinFrameScopeWithImplicitWindow" defs["structs"]["ImGuiContext"][20]["type"] = "bool" defs["structs"]["ImGuiContext"][21] = {} -defs["structs"]["ImGuiContext"][21]["name"] = "TestEngineHookItems" +defs["structs"]["ImGuiContext"][21]["name"] = "WithinEndChild" defs["structs"]["ImGuiContext"][21]["type"] = "bool" defs["structs"]["ImGuiContext"][22] = {} -defs["structs"]["ImGuiContext"][22]["name"] = "TestEngine" -defs["structs"]["ImGuiContext"][22]["type"] = "void*" +defs["structs"]["ImGuiContext"][22]["name"] = "GcCompactAll" +defs["structs"]["ImGuiContext"][22]["type"] = "bool" defs["structs"]["ImGuiContext"][23] = {} -defs["structs"]["ImGuiContext"][23]["name"] = "Windows" -defs["structs"]["ImGuiContext"][23]["template_type"] = "ImGuiWindow*" -defs["structs"]["ImGuiContext"][23]["type"] = "ImVector_ImGuiWindowPtr" +defs["structs"]["ImGuiContext"][23]["name"] = "TestEngineHookItems" +defs["structs"]["ImGuiContext"][23]["type"] = "bool" defs["structs"]["ImGuiContext"][24] = {} -defs["structs"]["ImGuiContext"][24]["name"] = "WindowsFocusOrder" -defs["structs"]["ImGuiContext"][24]["template_type"] = "ImGuiWindow*" -defs["structs"]["ImGuiContext"][24]["type"] = "ImVector_ImGuiWindowPtr" +defs["structs"]["ImGuiContext"][24]["name"] = "TestEngine" +defs["structs"]["ImGuiContext"][24]["type"] = "void*" defs["structs"]["ImGuiContext"][25] = {} -defs["structs"]["ImGuiContext"][25]["name"] = "WindowsTempSortBuffer" +defs["structs"]["ImGuiContext"][25]["name"] = "Windows" defs["structs"]["ImGuiContext"][25]["template_type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][25]["type"] = "ImVector_ImGuiWindowPtr" defs["structs"]["ImGuiContext"][26] = {} -defs["structs"]["ImGuiContext"][26]["name"] = "CurrentWindowStack" -defs["structs"]["ImGuiContext"][26]["template_type"] = "ImGuiWindowStackData" -defs["structs"]["ImGuiContext"][26]["type"] = "ImVector_ImGuiWindowStackData" +defs["structs"]["ImGuiContext"][26]["name"] = "WindowsFocusOrder" +defs["structs"]["ImGuiContext"][26]["template_type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][26]["type"] = "ImVector_ImGuiWindowPtr" defs["structs"]["ImGuiContext"][27] = {} -defs["structs"]["ImGuiContext"][27]["name"] = "WindowsById" -defs["structs"]["ImGuiContext"][27]["type"] = "ImGuiStorage" +defs["structs"]["ImGuiContext"][27]["name"] = "WindowsTempSortBuffer" +defs["structs"]["ImGuiContext"][27]["template_type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][27]["type"] = "ImVector_ImGuiWindowPtr" defs["structs"]["ImGuiContext"][28] = {} -defs["structs"]["ImGuiContext"][28]["name"] = "WindowsActiveCount" -defs["structs"]["ImGuiContext"][28]["type"] = "int" +defs["structs"]["ImGuiContext"][28]["name"] = "CurrentWindowStack" +defs["structs"]["ImGuiContext"][28]["template_type"] = "ImGuiWindowStackData" +defs["structs"]["ImGuiContext"][28]["type"] = "ImVector_ImGuiWindowStackData" defs["structs"]["ImGuiContext"][29] = {} -defs["structs"]["ImGuiContext"][29]["name"] = "WindowsHoverPadding" -defs["structs"]["ImGuiContext"][29]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][29]["name"] = "WindowsById" +defs["structs"]["ImGuiContext"][29]["type"] = "ImGuiStorage" defs["structs"]["ImGuiContext"][30] = {} -defs["structs"]["ImGuiContext"][30]["name"] = "CurrentWindow" -defs["structs"]["ImGuiContext"][30]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][30]["name"] = "WindowsActiveCount" +defs["structs"]["ImGuiContext"][30]["type"] = "int" defs["structs"]["ImGuiContext"][31] = {} -defs["structs"]["ImGuiContext"][31]["name"] = "HoveredWindow" -defs["structs"]["ImGuiContext"][31]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][31]["name"] = "WindowsHoverPadding" +defs["structs"]["ImGuiContext"][31]["type"] = "ImVec2" defs["structs"]["ImGuiContext"][32] = {} -defs["structs"]["ImGuiContext"][32]["name"] = "HoveredWindowUnderMovingWindow" +defs["structs"]["ImGuiContext"][32]["name"] = "CurrentWindow" defs["structs"]["ImGuiContext"][32]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][33] = {} -defs["structs"]["ImGuiContext"][33]["name"] = "HoveredDockNode" -defs["structs"]["ImGuiContext"][33]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiContext"][33]["name"] = "HoveredWindow" +defs["structs"]["ImGuiContext"][33]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][34] = {} -defs["structs"]["ImGuiContext"][34]["name"] = "MovingWindow" +defs["structs"]["ImGuiContext"][34]["name"] = "HoveredWindowUnderMovingWindow" defs["structs"]["ImGuiContext"][34]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][35] = {} -defs["structs"]["ImGuiContext"][35]["name"] = "WheelingWindow" +defs["structs"]["ImGuiContext"][35]["name"] = "MovingWindow" defs["structs"]["ImGuiContext"][35]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][36] = {} -defs["structs"]["ImGuiContext"][36]["name"] = "WheelingWindowRefMousePos" -defs["structs"]["ImGuiContext"][36]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][36]["name"] = "WheelingWindow" +defs["structs"]["ImGuiContext"][36]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][37] = {} -defs["structs"]["ImGuiContext"][37]["name"] = "WheelingWindowTimer" -defs["structs"]["ImGuiContext"][37]["type"] = "float" +defs["structs"]["ImGuiContext"][37]["name"] = "WheelingWindowRefMousePos" +defs["structs"]["ImGuiContext"][37]["type"] = "ImVec2" defs["structs"]["ImGuiContext"][38] = {} -defs["structs"]["ImGuiContext"][38]["name"] = "DebugHookIdInfo" -defs["structs"]["ImGuiContext"][38]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][38]["name"] = "WheelingWindowReleaseTimer" +defs["structs"]["ImGuiContext"][38]["type"] = "float" defs["structs"]["ImGuiContext"][39] = {} -defs["structs"]["ImGuiContext"][39]["name"] = "HoveredId" +defs["structs"]["ImGuiContext"][39]["name"] = "DebugHookIdInfo" defs["structs"]["ImGuiContext"][39]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][40] = {} -defs["structs"]["ImGuiContext"][40]["name"] = "HoveredIdPreviousFrame" +defs["structs"]["ImGuiContext"][40]["name"] = "HoveredId" defs["structs"]["ImGuiContext"][40]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][41] = {} -defs["structs"]["ImGuiContext"][41]["name"] = "HoveredIdAllowOverlap" -defs["structs"]["ImGuiContext"][41]["type"] = "bool" +defs["structs"]["ImGuiContext"][41]["name"] = "HoveredIdPreviousFrame" +defs["structs"]["ImGuiContext"][41]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][42] = {} -defs["structs"]["ImGuiContext"][42]["name"] = "HoveredIdUsingMouseWheel" +defs["structs"]["ImGuiContext"][42]["name"] = "HoveredIdAllowOverlap" defs["structs"]["ImGuiContext"][42]["type"] = "bool" defs["structs"]["ImGuiContext"][43] = {} -defs["structs"]["ImGuiContext"][43]["name"] = "HoveredIdPreviousFrameUsingMouseWheel" +defs["structs"]["ImGuiContext"][43]["name"] = "HoveredIdDisabled" defs["structs"]["ImGuiContext"][43]["type"] = "bool" defs["structs"]["ImGuiContext"][44] = {} -defs["structs"]["ImGuiContext"][44]["name"] = "HoveredIdDisabled" -defs["structs"]["ImGuiContext"][44]["type"] = "bool" +defs["structs"]["ImGuiContext"][44]["name"] = "HoveredIdTimer" +defs["structs"]["ImGuiContext"][44]["type"] = "float" defs["structs"]["ImGuiContext"][45] = {} -defs["structs"]["ImGuiContext"][45]["name"] = "HoveredIdTimer" +defs["structs"]["ImGuiContext"][45]["name"] = "HoveredIdNotActiveTimer" defs["structs"]["ImGuiContext"][45]["type"] = "float" defs["structs"]["ImGuiContext"][46] = {} -defs["structs"]["ImGuiContext"][46]["name"] = "HoveredIdNotActiveTimer" -defs["structs"]["ImGuiContext"][46]["type"] = "float" +defs["structs"]["ImGuiContext"][46]["name"] = "ActiveId" +defs["structs"]["ImGuiContext"][46]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][47] = {} -defs["structs"]["ImGuiContext"][47]["name"] = "ActiveId" +defs["structs"]["ImGuiContext"][47]["name"] = "ActiveIdIsAlive" defs["structs"]["ImGuiContext"][47]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][48] = {} -defs["structs"]["ImGuiContext"][48]["name"] = "ActiveIdIsAlive" -defs["structs"]["ImGuiContext"][48]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][48]["name"] = "ActiveIdTimer" +defs["structs"]["ImGuiContext"][48]["type"] = "float" defs["structs"]["ImGuiContext"][49] = {} -defs["structs"]["ImGuiContext"][49]["name"] = "ActiveIdTimer" -defs["structs"]["ImGuiContext"][49]["type"] = "float" +defs["structs"]["ImGuiContext"][49]["name"] = "ActiveIdIsJustActivated" +defs["structs"]["ImGuiContext"][49]["type"] = "bool" defs["structs"]["ImGuiContext"][50] = {} -defs["structs"]["ImGuiContext"][50]["name"] = "ActiveIdIsJustActivated" +defs["structs"]["ImGuiContext"][50]["name"] = "ActiveIdAllowOverlap" defs["structs"]["ImGuiContext"][50]["type"] = "bool" defs["structs"]["ImGuiContext"][51] = {} -defs["structs"]["ImGuiContext"][51]["name"] = "ActiveIdAllowOverlap" +defs["structs"]["ImGuiContext"][51]["name"] = "ActiveIdNoClearOnFocusLoss" defs["structs"]["ImGuiContext"][51]["type"] = "bool" defs["structs"]["ImGuiContext"][52] = {} -defs["structs"]["ImGuiContext"][52]["name"] = "ActiveIdNoClearOnFocusLoss" +defs["structs"]["ImGuiContext"][52]["name"] = "ActiveIdHasBeenPressedBefore" defs["structs"]["ImGuiContext"][52]["type"] = "bool" defs["structs"]["ImGuiContext"][53] = {} -defs["structs"]["ImGuiContext"][53]["name"] = "ActiveIdHasBeenPressedBefore" +defs["structs"]["ImGuiContext"][53]["name"] = "ActiveIdHasBeenEditedBefore" defs["structs"]["ImGuiContext"][53]["type"] = "bool" defs["structs"]["ImGuiContext"][54] = {} -defs["structs"]["ImGuiContext"][54]["name"] = "ActiveIdHasBeenEditedBefore" +defs["structs"]["ImGuiContext"][54]["name"] = "ActiveIdHasBeenEditedThisFrame" defs["structs"]["ImGuiContext"][54]["type"] = "bool" defs["structs"]["ImGuiContext"][55] = {} -defs["structs"]["ImGuiContext"][55]["name"] = "ActiveIdHasBeenEditedThisFrame" -defs["structs"]["ImGuiContext"][55]["type"] = "bool" +defs["structs"]["ImGuiContext"][55]["name"] = "ActiveIdClickOffset" +defs["structs"]["ImGuiContext"][55]["type"] = "ImVec2" defs["structs"]["ImGuiContext"][56] = {} -defs["structs"]["ImGuiContext"][56]["name"] = "ActiveIdUsingMouseWheel" -defs["structs"]["ImGuiContext"][56]["type"] = "bool" +defs["structs"]["ImGuiContext"][56]["name"] = "ActiveIdWindow" +defs["structs"]["ImGuiContext"][56]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][57] = {} -defs["structs"]["ImGuiContext"][57]["name"] = "ActiveIdUsingNavDirMask" -defs["structs"]["ImGuiContext"][57]["type"] = "ImU32" +defs["structs"]["ImGuiContext"][57]["name"] = "ActiveIdSource" +defs["structs"]["ImGuiContext"][57]["type"] = "ImGuiInputSource" defs["structs"]["ImGuiContext"][58] = {} -defs["structs"]["ImGuiContext"][58]["name"] = "ActiveIdUsingNavInputMask" -defs["structs"]["ImGuiContext"][58]["type"] = "ImU32" +defs["structs"]["ImGuiContext"][58]["name"] = "ActiveIdMouseButton" +defs["structs"]["ImGuiContext"][58]["type"] = "int" defs["structs"]["ImGuiContext"][59] = {} -defs["structs"]["ImGuiContext"][59]["name"] = "ActiveIdUsingKeyInputMask" -defs["structs"]["ImGuiContext"][59]["type"] = "ImU64" +defs["structs"]["ImGuiContext"][59]["name"] = "ActiveIdPreviousFrame" +defs["structs"]["ImGuiContext"][59]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][60] = {} -defs["structs"]["ImGuiContext"][60]["name"] = "ActiveIdClickOffset" -defs["structs"]["ImGuiContext"][60]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][60]["name"] = "ActiveIdPreviousFrameIsAlive" +defs["structs"]["ImGuiContext"][60]["type"] = "bool" defs["structs"]["ImGuiContext"][61] = {} -defs["structs"]["ImGuiContext"][61]["name"] = "ActiveIdWindow" -defs["structs"]["ImGuiContext"][61]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][61]["name"] = "ActiveIdPreviousFrameHasBeenEditedBefore" +defs["structs"]["ImGuiContext"][61]["type"] = "bool" defs["structs"]["ImGuiContext"][62] = {} -defs["structs"]["ImGuiContext"][62]["name"] = "ActiveIdSource" -defs["structs"]["ImGuiContext"][62]["type"] = "ImGuiInputSource" +defs["structs"]["ImGuiContext"][62]["name"] = "ActiveIdPreviousFrameWindow" +defs["structs"]["ImGuiContext"][62]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][63] = {} -defs["structs"]["ImGuiContext"][63]["name"] = "ActiveIdMouseButton" -defs["structs"]["ImGuiContext"][63]["type"] = "int" +defs["structs"]["ImGuiContext"][63]["name"] = "LastActiveId" +defs["structs"]["ImGuiContext"][63]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][64] = {} -defs["structs"]["ImGuiContext"][64]["name"] = "ActiveIdPreviousFrame" -defs["structs"]["ImGuiContext"][64]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][64]["name"] = "LastActiveIdTimer" +defs["structs"]["ImGuiContext"][64]["type"] = "float" defs["structs"]["ImGuiContext"][65] = {} -defs["structs"]["ImGuiContext"][65]["name"] = "ActiveIdPreviousFrameIsAlive" -defs["structs"]["ImGuiContext"][65]["type"] = "bool" +defs["structs"]["ImGuiContext"][65]["name"] = "KeysOwnerData[ImGuiKey_NamedKey_COUNT]" +defs["structs"]["ImGuiContext"][65]["size"] = 140 +defs["structs"]["ImGuiContext"][65]["type"] = "ImGuiKeyOwnerData" defs["structs"]["ImGuiContext"][66] = {} -defs["structs"]["ImGuiContext"][66]["name"] = "ActiveIdPreviousFrameHasBeenEditedBefore" -defs["structs"]["ImGuiContext"][66]["type"] = "bool" +defs["structs"]["ImGuiContext"][66]["name"] = "KeysRoutingTable" +defs["structs"]["ImGuiContext"][66]["type"] = "ImGuiKeyRoutingTable" defs["structs"]["ImGuiContext"][67] = {} -defs["structs"]["ImGuiContext"][67]["name"] = "ActiveIdPreviousFrameWindow" -defs["structs"]["ImGuiContext"][67]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][67]["name"] = "ActiveIdUsingNavDirMask" +defs["structs"]["ImGuiContext"][67]["type"] = "ImU32" defs["structs"]["ImGuiContext"][68] = {} -defs["structs"]["ImGuiContext"][68]["name"] = "LastActiveId" -defs["structs"]["ImGuiContext"][68]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][68]["name"] = "ActiveIdUsingAllKeyboardKeys" +defs["structs"]["ImGuiContext"][68]["type"] = "bool" defs["structs"]["ImGuiContext"][69] = {} -defs["structs"]["ImGuiContext"][69]["name"] = "LastActiveIdTimer" -defs["structs"]["ImGuiContext"][69]["type"] = "float" +defs["structs"]["ImGuiContext"][69]["name"] = "ActiveIdUsingNavInputMask" +defs["structs"]["ImGuiContext"][69]["type"] = "ImU32" defs["structs"]["ImGuiContext"][70] = {} -defs["structs"]["ImGuiContext"][70]["name"] = "CurrentItemFlags" -defs["structs"]["ImGuiContext"][70]["type"] = "ImGuiItemFlags" +defs["structs"]["ImGuiContext"][70]["name"] = "CurrentFocusScopeId" +defs["structs"]["ImGuiContext"][70]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][71] = {} -defs["structs"]["ImGuiContext"][71]["name"] = "NextItemData" -defs["structs"]["ImGuiContext"][71]["type"] = "ImGuiNextItemData" +defs["structs"]["ImGuiContext"][71]["name"] = "CurrentItemFlags" +defs["structs"]["ImGuiContext"][71]["type"] = "ImGuiItemFlags" defs["structs"]["ImGuiContext"][72] = {} -defs["structs"]["ImGuiContext"][72]["name"] = "LastItemData" -defs["structs"]["ImGuiContext"][72]["type"] = "ImGuiLastItemData" +defs["structs"]["ImGuiContext"][72]["name"] = "DebugLocateId" +defs["structs"]["ImGuiContext"][72]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][73] = {} -defs["structs"]["ImGuiContext"][73]["name"] = "NextWindowData" -defs["structs"]["ImGuiContext"][73]["type"] = "ImGuiNextWindowData" +defs["structs"]["ImGuiContext"][73]["name"] = "NextItemData" +defs["structs"]["ImGuiContext"][73]["type"] = "ImGuiNextItemData" defs["structs"]["ImGuiContext"][74] = {} -defs["structs"]["ImGuiContext"][74]["name"] = "ColorStack" -defs["structs"]["ImGuiContext"][74]["template_type"] = "ImGuiColorMod" -defs["structs"]["ImGuiContext"][74]["type"] = "ImVector_ImGuiColorMod" +defs["structs"]["ImGuiContext"][74]["name"] = "LastItemData" +defs["structs"]["ImGuiContext"][74]["type"] = "ImGuiLastItemData" defs["structs"]["ImGuiContext"][75] = {} -defs["structs"]["ImGuiContext"][75]["name"] = "StyleVarStack" -defs["structs"]["ImGuiContext"][75]["template_type"] = "ImGuiStyleMod" -defs["structs"]["ImGuiContext"][75]["type"] = "ImVector_ImGuiStyleMod" +defs["structs"]["ImGuiContext"][75]["name"] = "NextWindowData" +defs["structs"]["ImGuiContext"][75]["type"] = "ImGuiNextWindowData" defs["structs"]["ImGuiContext"][76] = {} -defs["structs"]["ImGuiContext"][76]["name"] = "FontStack" -defs["structs"]["ImGuiContext"][76]["template_type"] = "ImFont*" -defs["structs"]["ImGuiContext"][76]["type"] = "ImVector_ImFontPtr" +defs["structs"]["ImGuiContext"][76]["name"] = "ColorStack" +defs["structs"]["ImGuiContext"][76]["template_type"] = "ImGuiColorMod" +defs["structs"]["ImGuiContext"][76]["type"] = "ImVector_ImGuiColorMod" defs["structs"]["ImGuiContext"][77] = {} -defs["structs"]["ImGuiContext"][77]["name"] = "FocusScopeStack" -defs["structs"]["ImGuiContext"][77]["template_type"] = "ImGuiID" -defs["structs"]["ImGuiContext"][77]["type"] = "ImVector_ImGuiID" +defs["structs"]["ImGuiContext"][77]["name"] = "StyleVarStack" +defs["structs"]["ImGuiContext"][77]["template_type"] = "ImGuiStyleMod" +defs["structs"]["ImGuiContext"][77]["type"] = "ImVector_ImGuiStyleMod" defs["structs"]["ImGuiContext"][78] = {} -defs["structs"]["ImGuiContext"][78]["name"] = "ItemFlagsStack" -defs["structs"]["ImGuiContext"][78]["template_type"] = "ImGuiItemFlags" -defs["structs"]["ImGuiContext"][78]["type"] = "ImVector_ImGuiItemFlags" +defs["structs"]["ImGuiContext"][78]["name"] = "FontStack" +defs["structs"]["ImGuiContext"][78]["template_type"] = "ImFont*" +defs["structs"]["ImGuiContext"][78]["type"] = "ImVector_ImFontPtr" defs["structs"]["ImGuiContext"][79] = {} -defs["structs"]["ImGuiContext"][79]["name"] = "GroupStack" -defs["structs"]["ImGuiContext"][79]["template_type"] = "ImGuiGroupData" -defs["structs"]["ImGuiContext"][79]["type"] = "ImVector_ImGuiGroupData" +defs["structs"]["ImGuiContext"][79]["name"] = "FocusScopeStack" +defs["structs"]["ImGuiContext"][79]["template_type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][79]["type"] = "ImVector_ImGuiID" defs["structs"]["ImGuiContext"][80] = {} -defs["structs"]["ImGuiContext"][80]["name"] = "OpenPopupStack" -defs["structs"]["ImGuiContext"][80]["template_type"] = "ImGuiPopupData" -defs["structs"]["ImGuiContext"][80]["type"] = "ImVector_ImGuiPopupData" +defs["structs"]["ImGuiContext"][80]["name"] = "ItemFlagsStack" +defs["structs"]["ImGuiContext"][80]["template_type"] = "ImGuiItemFlags" +defs["structs"]["ImGuiContext"][80]["type"] = "ImVector_ImGuiItemFlags" defs["structs"]["ImGuiContext"][81] = {} -defs["structs"]["ImGuiContext"][81]["name"] = "BeginPopupStack" -defs["structs"]["ImGuiContext"][81]["template_type"] = "ImGuiPopupData" -defs["structs"]["ImGuiContext"][81]["type"] = "ImVector_ImGuiPopupData" +defs["structs"]["ImGuiContext"][81]["name"] = "GroupStack" +defs["structs"]["ImGuiContext"][81]["template_type"] = "ImGuiGroupData" +defs["structs"]["ImGuiContext"][81]["type"] = "ImVector_ImGuiGroupData" defs["structs"]["ImGuiContext"][82] = {} -defs["structs"]["ImGuiContext"][82]["name"] = "BeginMenuCount" -defs["structs"]["ImGuiContext"][82]["type"] = "int" +defs["structs"]["ImGuiContext"][82]["name"] = "OpenPopupStack" +defs["structs"]["ImGuiContext"][82]["template_type"] = "ImGuiPopupData" +defs["structs"]["ImGuiContext"][82]["type"] = "ImVector_ImGuiPopupData" defs["structs"]["ImGuiContext"][83] = {} -defs["structs"]["ImGuiContext"][83]["name"] = "Viewports" -defs["structs"]["ImGuiContext"][83]["template_type"] = "ImGuiViewportP*" -defs["structs"]["ImGuiContext"][83]["type"] = "ImVector_ImGuiViewportPPtr" +defs["structs"]["ImGuiContext"][83]["name"] = "BeginPopupStack" +defs["structs"]["ImGuiContext"][83]["template_type"] = "ImGuiPopupData" +defs["structs"]["ImGuiContext"][83]["type"] = "ImVector_ImGuiPopupData" defs["structs"]["ImGuiContext"][84] = {} -defs["structs"]["ImGuiContext"][84]["name"] = "CurrentDpiScale" -defs["structs"]["ImGuiContext"][84]["type"] = "float" +defs["structs"]["ImGuiContext"][84]["name"] = "BeginMenuCount" +defs["structs"]["ImGuiContext"][84]["type"] = "int" defs["structs"]["ImGuiContext"][85] = {} -defs["structs"]["ImGuiContext"][85]["name"] = "CurrentViewport" -defs["structs"]["ImGuiContext"][85]["type"] = "ImGuiViewportP*" +defs["structs"]["ImGuiContext"][85]["name"] = "Viewports" +defs["structs"]["ImGuiContext"][85]["template_type"] = "ImGuiViewportP*" +defs["structs"]["ImGuiContext"][85]["type"] = "ImVector_ImGuiViewportPPtr" defs["structs"]["ImGuiContext"][86] = {} -defs["structs"]["ImGuiContext"][86]["name"] = "MouseViewport" -defs["structs"]["ImGuiContext"][86]["type"] = "ImGuiViewportP*" +defs["structs"]["ImGuiContext"][86]["name"] = "CurrentDpiScale" +defs["structs"]["ImGuiContext"][86]["type"] = "float" defs["structs"]["ImGuiContext"][87] = {} -defs["structs"]["ImGuiContext"][87]["name"] = "MouseLastHoveredViewport" +defs["structs"]["ImGuiContext"][87]["name"] = "CurrentViewport" defs["structs"]["ImGuiContext"][87]["type"] = "ImGuiViewportP*" defs["structs"]["ImGuiContext"][88] = {} -defs["structs"]["ImGuiContext"][88]["name"] = "PlatformLastFocusedViewportId" -defs["structs"]["ImGuiContext"][88]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][88]["name"] = "MouseViewport" +defs["structs"]["ImGuiContext"][88]["type"] = "ImGuiViewportP*" defs["structs"]["ImGuiContext"][89] = {} -defs["structs"]["ImGuiContext"][89]["name"] = "FallbackMonitor" -defs["structs"]["ImGuiContext"][89]["type"] = "ImGuiPlatformMonitor" +defs["structs"]["ImGuiContext"][89]["name"] = "MouseLastHoveredViewport" +defs["structs"]["ImGuiContext"][89]["type"] = "ImGuiViewportP*" defs["structs"]["ImGuiContext"][90] = {} -defs["structs"]["ImGuiContext"][90]["name"] = "ViewportFrontMostStampCount" -defs["structs"]["ImGuiContext"][90]["type"] = "int" +defs["structs"]["ImGuiContext"][90]["name"] = "PlatformLastFocusedViewportId" +defs["structs"]["ImGuiContext"][90]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][91] = {} -defs["structs"]["ImGuiContext"][91]["name"] = "NavWindow" -defs["structs"]["ImGuiContext"][91]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][91]["name"] = "FallbackMonitor" +defs["structs"]["ImGuiContext"][91]["type"] = "ImGuiPlatformMonitor" defs["structs"]["ImGuiContext"][92] = {} -defs["structs"]["ImGuiContext"][92]["name"] = "NavId" -defs["structs"]["ImGuiContext"][92]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][92]["name"] = "ViewportFrontMostStampCount" +defs["structs"]["ImGuiContext"][92]["type"] = "int" defs["structs"]["ImGuiContext"][93] = {} -defs["structs"]["ImGuiContext"][93]["name"] = "NavFocusScopeId" -defs["structs"]["ImGuiContext"][93]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][93]["name"] = "NavWindow" +defs["structs"]["ImGuiContext"][93]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][94] = {} -defs["structs"]["ImGuiContext"][94]["name"] = "NavActivateId" +defs["structs"]["ImGuiContext"][94]["name"] = "NavId" defs["structs"]["ImGuiContext"][94]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][95] = {} -defs["structs"]["ImGuiContext"][95]["name"] = "NavActivateDownId" +defs["structs"]["ImGuiContext"][95]["name"] = "NavFocusScopeId" defs["structs"]["ImGuiContext"][95]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][96] = {} -defs["structs"]["ImGuiContext"][96]["name"] = "NavActivatePressedId" +defs["structs"]["ImGuiContext"][96]["name"] = "NavActivateId" defs["structs"]["ImGuiContext"][96]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][97] = {} -defs["structs"]["ImGuiContext"][97]["name"] = "NavActivateInputId" +defs["structs"]["ImGuiContext"][97]["name"] = "NavActivateDownId" defs["structs"]["ImGuiContext"][97]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][98] = {} -defs["structs"]["ImGuiContext"][98]["name"] = "NavActivateFlags" -defs["structs"]["ImGuiContext"][98]["type"] = "ImGuiActivateFlags" +defs["structs"]["ImGuiContext"][98]["name"] = "NavActivatePressedId" +defs["structs"]["ImGuiContext"][98]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][99] = {} -defs["structs"]["ImGuiContext"][99]["name"] = "NavJustMovedToId" +defs["structs"]["ImGuiContext"][99]["name"] = "NavActivateInputId" defs["structs"]["ImGuiContext"][99]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][100] = {} -defs["structs"]["ImGuiContext"][100]["name"] = "NavJustMovedToFocusScopeId" -defs["structs"]["ImGuiContext"][100]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][100]["name"] = "NavActivateFlags" +defs["structs"]["ImGuiContext"][100]["type"] = "ImGuiActivateFlags" defs["structs"]["ImGuiContext"][101] = {} -defs["structs"]["ImGuiContext"][101]["name"] = "NavJustMovedToKeyMods" -defs["structs"]["ImGuiContext"][101]["type"] = "ImGuiKeyModFlags" +defs["structs"]["ImGuiContext"][101]["name"] = "NavJustMovedToId" +defs["structs"]["ImGuiContext"][101]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][102] = {} -defs["structs"]["ImGuiContext"][102]["name"] = "NavNextActivateId" +defs["structs"]["ImGuiContext"][102]["name"] = "NavJustMovedToFocusScopeId" defs["structs"]["ImGuiContext"][102]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][103] = {} -defs["structs"]["ImGuiContext"][103]["name"] = "NavNextActivateFlags" -defs["structs"]["ImGuiContext"][103]["type"] = "ImGuiActivateFlags" +defs["structs"]["ImGuiContext"][103]["name"] = "NavJustMovedToKeyMods" +defs["structs"]["ImGuiContext"][103]["type"] = "ImGuiKeyChord" defs["structs"]["ImGuiContext"][104] = {} -defs["structs"]["ImGuiContext"][104]["name"] = "NavInputSource" -defs["structs"]["ImGuiContext"][104]["type"] = "ImGuiInputSource" +defs["structs"]["ImGuiContext"][104]["name"] = "NavNextActivateId" +defs["structs"]["ImGuiContext"][104]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][105] = {} -defs["structs"]["ImGuiContext"][105]["name"] = "NavLayer" -defs["structs"]["ImGuiContext"][105]["type"] = "ImGuiNavLayer" +defs["structs"]["ImGuiContext"][105]["name"] = "NavNextActivateFlags" +defs["structs"]["ImGuiContext"][105]["type"] = "ImGuiActivateFlags" defs["structs"]["ImGuiContext"][106] = {} -defs["structs"]["ImGuiContext"][106]["name"] = "NavIdIsAlive" -defs["structs"]["ImGuiContext"][106]["type"] = "bool" +defs["structs"]["ImGuiContext"][106]["name"] = "NavInputSource" +defs["structs"]["ImGuiContext"][106]["type"] = "ImGuiInputSource" defs["structs"]["ImGuiContext"][107] = {} -defs["structs"]["ImGuiContext"][107]["name"] = "NavMousePosDirty" -defs["structs"]["ImGuiContext"][107]["type"] = "bool" +defs["structs"]["ImGuiContext"][107]["name"] = "NavLayer" +defs["structs"]["ImGuiContext"][107]["type"] = "ImGuiNavLayer" defs["structs"]["ImGuiContext"][108] = {} -defs["structs"]["ImGuiContext"][108]["name"] = "NavDisableHighlight" +defs["structs"]["ImGuiContext"][108]["name"] = "NavIdIsAlive" defs["structs"]["ImGuiContext"][108]["type"] = "bool" defs["structs"]["ImGuiContext"][109] = {} -defs["structs"]["ImGuiContext"][109]["name"] = "NavDisableMouseHover" +defs["structs"]["ImGuiContext"][109]["name"] = "NavMousePosDirty" defs["structs"]["ImGuiContext"][109]["type"] = "bool" defs["structs"]["ImGuiContext"][110] = {} -defs["structs"]["ImGuiContext"][110]["name"] = "NavAnyRequest" +defs["structs"]["ImGuiContext"][110]["name"] = "NavDisableHighlight" defs["structs"]["ImGuiContext"][110]["type"] = "bool" defs["structs"]["ImGuiContext"][111] = {} -defs["structs"]["ImGuiContext"][111]["name"] = "NavInitRequest" +defs["structs"]["ImGuiContext"][111]["name"] = "NavDisableMouseHover" defs["structs"]["ImGuiContext"][111]["type"] = "bool" defs["structs"]["ImGuiContext"][112] = {} -defs["structs"]["ImGuiContext"][112]["name"] = "NavInitRequestFromMove" +defs["structs"]["ImGuiContext"][112]["name"] = "NavAnyRequest" defs["structs"]["ImGuiContext"][112]["type"] = "bool" defs["structs"]["ImGuiContext"][113] = {} -defs["structs"]["ImGuiContext"][113]["name"] = "NavInitResultId" -defs["structs"]["ImGuiContext"][113]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][113]["name"] = "NavInitRequest" +defs["structs"]["ImGuiContext"][113]["type"] = "bool" defs["structs"]["ImGuiContext"][114] = {} -defs["structs"]["ImGuiContext"][114]["name"] = "NavInitResultRectRel" -defs["structs"]["ImGuiContext"][114]["type"] = "ImRect" +defs["structs"]["ImGuiContext"][114]["name"] = "NavInitRequestFromMove" +defs["structs"]["ImGuiContext"][114]["type"] = "bool" defs["structs"]["ImGuiContext"][115] = {} -defs["structs"]["ImGuiContext"][115]["name"] = "NavMoveSubmitted" -defs["structs"]["ImGuiContext"][115]["type"] = "bool" +defs["structs"]["ImGuiContext"][115]["name"] = "NavInitResultId" +defs["structs"]["ImGuiContext"][115]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][116] = {} -defs["structs"]["ImGuiContext"][116]["name"] = "NavMoveScoringItems" -defs["structs"]["ImGuiContext"][116]["type"] = "bool" +defs["structs"]["ImGuiContext"][116]["name"] = "NavInitResultRectRel" +defs["structs"]["ImGuiContext"][116]["type"] = "ImRect" defs["structs"]["ImGuiContext"][117] = {} -defs["structs"]["ImGuiContext"][117]["name"] = "NavMoveForwardToNextFrame" +defs["structs"]["ImGuiContext"][117]["name"] = "NavMoveSubmitted" defs["structs"]["ImGuiContext"][117]["type"] = "bool" defs["structs"]["ImGuiContext"][118] = {} -defs["structs"]["ImGuiContext"][118]["name"] = "NavMoveFlags" -defs["structs"]["ImGuiContext"][118]["type"] = "ImGuiNavMoveFlags" +defs["structs"]["ImGuiContext"][118]["name"] = "NavMoveScoringItems" +defs["structs"]["ImGuiContext"][118]["type"] = "bool" defs["structs"]["ImGuiContext"][119] = {} -defs["structs"]["ImGuiContext"][119]["name"] = "NavMoveScrollFlags" -defs["structs"]["ImGuiContext"][119]["type"] = "ImGuiScrollFlags" +defs["structs"]["ImGuiContext"][119]["name"] = "NavMoveForwardToNextFrame" +defs["structs"]["ImGuiContext"][119]["type"] = "bool" defs["structs"]["ImGuiContext"][120] = {} -defs["structs"]["ImGuiContext"][120]["name"] = "NavMoveKeyMods" -defs["structs"]["ImGuiContext"][120]["type"] = "ImGuiKeyModFlags" +defs["structs"]["ImGuiContext"][120]["name"] = "NavMoveFlags" +defs["structs"]["ImGuiContext"][120]["type"] = "ImGuiNavMoveFlags" defs["structs"]["ImGuiContext"][121] = {} -defs["structs"]["ImGuiContext"][121]["name"] = "NavMoveDir" -defs["structs"]["ImGuiContext"][121]["type"] = "ImGuiDir" +defs["structs"]["ImGuiContext"][121]["name"] = "NavMoveScrollFlags" +defs["structs"]["ImGuiContext"][121]["type"] = "ImGuiScrollFlags" defs["structs"]["ImGuiContext"][122] = {} -defs["structs"]["ImGuiContext"][122]["name"] = "NavMoveDirForDebug" -defs["structs"]["ImGuiContext"][122]["type"] = "ImGuiDir" +defs["structs"]["ImGuiContext"][122]["name"] = "NavMoveKeyMods" +defs["structs"]["ImGuiContext"][122]["type"] = "ImGuiKeyChord" defs["structs"]["ImGuiContext"][123] = {} -defs["structs"]["ImGuiContext"][123]["name"] = "NavMoveClipDir" +defs["structs"]["ImGuiContext"][123]["name"] = "NavMoveDir" defs["structs"]["ImGuiContext"][123]["type"] = "ImGuiDir" defs["structs"]["ImGuiContext"][124] = {} -defs["structs"]["ImGuiContext"][124]["name"] = "NavScoringRect" -defs["structs"]["ImGuiContext"][124]["type"] = "ImRect" +defs["structs"]["ImGuiContext"][124]["name"] = "NavMoveDirForDebug" +defs["structs"]["ImGuiContext"][124]["type"] = "ImGuiDir" defs["structs"]["ImGuiContext"][125] = {} -defs["structs"]["ImGuiContext"][125]["name"] = "NavScoringNoClipRect" -defs["structs"]["ImGuiContext"][125]["type"] = "ImRect" +defs["structs"]["ImGuiContext"][125]["name"] = "NavMoveClipDir" +defs["structs"]["ImGuiContext"][125]["type"] = "ImGuiDir" defs["structs"]["ImGuiContext"][126] = {} -defs["structs"]["ImGuiContext"][126]["name"] = "NavScoringDebugCount" -defs["structs"]["ImGuiContext"][126]["type"] = "int" +defs["structs"]["ImGuiContext"][126]["name"] = "NavScoringRect" +defs["structs"]["ImGuiContext"][126]["type"] = "ImRect" defs["structs"]["ImGuiContext"][127] = {} -defs["structs"]["ImGuiContext"][127]["name"] = "NavTabbingDir" -defs["structs"]["ImGuiContext"][127]["type"] = "int" +defs["structs"]["ImGuiContext"][127]["name"] = "NavScoringNoClipRect" +defs["structs"]["ImGuiContext"][127]["type"] = "ImRect" defs["structs"]["ImGuiContext"][128] = {} -defs["structs"]["ImGuiContext"][128]["name"] = "NavTabbingCounter" +defs["structs"]["ImGuiContext"][128]["name"] = "NavScoringDebugCount" defs["structs"]["ImGuiContext"][128]["type"] = "int" defs["structs"]["ImGuiContext"][129] = {} -defs["structs"]["ImGuiContext"][129]["name"] = "NavMoveResultLocal" -defs["structs"]["ImGuiContext"][129]["type"] = "ImGuiNavItemData" +defs["structs"]["ImGuiContext"][129]["name"] = "NavTabbingDir" +defs["structs"]["ImGuiContext"][129]["type"] = "int" defs["structs"]["ImGuiContext"][130] = {} -defs["structs"]["ImGuiContext"][130]["name"] = "NavMoveResultLocalVisible" -defs["structs"]["ImGuiContext"][130]["type"] = "ImGuiNavItemData" +defs["structs"]["ImGuiContext"][130]["name"] = "NavTabbingCounter" +defs["structs"]["ImGuiContext"][130]["type"] = "int" defs["structs"]["ImGuiContext"][131] = {} -defs["structs"]["ImGuiContext"][131]["name"] = "NavMoveResultOther" +defs["structs"]["ImGuiContext"][131]["name"] = "NavMoveResultLocal" defs["structs"]["ImGuiContext"][131]["type"] = "ImGuiNavItemData" defs["structs"]["ImGuiContext"][132] = {} -defs["structs"]["ImGuiContext"][132]["name"] = "NavTabbingResultFirst" +defs["structs"]["ImGuiContext"][132]["name"] = "NavMoveResultLocalVisible" defs["structs"]["ImGuiContext"][132]["type"] = "ImGuiNavItemData" defs["structs"]["ImGuiContext"][133] = {} -defs["structs"]["ImGuiContext"][133]["name"] = "NavWindowingTarget" -defs["structs"]["ImGuiContext"][133]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][133]["name"] = "NavMoveResultOther" +defs["structs"]["ImGuiContext"][133]["type"] = "ImGuiNavItemData" defs["structs"]["ImGuiContext"][134] = {} -defs["structs"]["ImGuiContext"][134]["name"] = "NavWindowingTargetAnim" -defs["structs"]["ImGuiContext"][134]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][134]["name"] = "NavTabbingResultFirst" +defs["structs"]["ImGuiContext"][134]["type"] = "ImGuiNavItemData" defs["structs"]["ImGuiContext"][135] = {} -defs["structs"]["ImGuiContext"][135]["name"] = "NavWindowingListWindow" -defs["structs"]["ImGuiContext"][135]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][135]["name"] = "ConfigNavWindowingKeyNext" +defs["structs"]["ImGuiContext"][135]["type"] = "ImGuiKeyChord" defs["structs"]["ImGuiContext"][136] = {} -defs["structs"]["ImGuiContext"][136]["name"] = "NavWindowingTimer" -defs["structs"]["ImGuiContext"][136]["type"] = "float" +defs["structs"]["ImGuiContext"][136]["name"] = "ConfigNavWindowingKeyPrev" +defs["structs"]["ImGuiContext"][136]["type"] = "ImGuiKeyChord" defs["structs"]["ImGuiContext"][137] = {} -defs["structs"]["ImGuiContext"][137]["name"] = "NavWindowingHighlightAlpha" -defs["structs"]["ImGuiContext"][137]["type"] = "float" +defs["structs"]["ImGuiContext"][137]["name"] = "NavWindowingTarget" +defs["structs"]["ImGuiContext"][137]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][138] = {} -defs["structs"]["ImGuiContext"][138]["name"] = "NavWindowingToggleLayer" -defs["structs"]["ImGuiContext"][138]["type"] = "bool" +defs["structs"]["ImGuiContext"][138]["name"] = "NavWindowingTargetAnim" +defs["structs"]["ImGuiContext"][138]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][139] = {} -defs["structs"]["ImGuiContext"][139]["name"] = "DimBgRatio" -defs["structs"]["ImGuiContext"][139]["type"] = "float" +defs["structs"]["ImGuiContext"][139]["name"] = "NavWindowingListWindow" +defs["structs"]["ImGuiContext"][139]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiContext"][140] = {} -defs["structs"]["ImGuiContext"][140]["name"] = "MouseCursor" -defs["structs"]["ImGuiContext"][140]["type"] = "ImGuiMouseCursor" +defs["structs"]["ImGuiContext"][140]["name"] = "NavWindowingTimer" +defs["structs"]["ImGuiContext"][140]["type"] = "float" defs["structs"]["ImGuiContext"][141] = {} -defs["structs"]["ImGuiContext"][141]["name"] = "DragDropActive" -defs["structs"]["ImGuiContext"][141]["type"] = "bool" +defs["structs"]["ImGuiContext"][141]["name"] = "NavWindowingHighlightAlpha" +defs["structs"]["ImGuiContext"][141]["type"] = "float" defs["structs"]["ImGuiContext"][142] = {} -defs["structs"]["ImGuiContext"][142]["name"] = "DragDropWithinSource" +defs["structs"]["ImGuiContext"][142]["name"] = "NavWindowingToggleLayer" defs["structs"]["ImGuiContext"][142]["type"] = "bool" defs["structs"]["ImGuiContext"][143] = {} -defs["structs"]["ImGuiContext"][143]["name"] = "DragDropWithinTarget" -defs["structs"]["ImGuiContext"][143]["type"] = "bool" +defs["structs"]["ImGuiContext"][143]["name"] = "NavWindowingAccumDeltaPos" +defs["structs"]["ImGuiContext"][143]["type"] = "ImVec2" defs["structs"]["ImGuiContext"][144] = {} -defs["structs"]["ImGuiContext"][144]["name"] = "DragDropSourceFlags" -defs["structs"]["ImGuiContext"][144]["type"] = "ImGuiDragDropFlags" +defs["structs"]["ImGuiContext"][144]["name"] = "NavWindowingAccumDeltaSize" +defs["structs"]["ImGuiContext"][144]["type"] = "ImVec2" defs["structs"]["ImGuiContext"][145] = {} -defs["structs"]["ImGuiContext"][145]["name"] = "DragDropSourceFrameCount" -defs["structs"]["ImGuiContext"][145]["type"] = "int" +defs["structs"]["ImGuiContext"][145]["name"] = "DimBgRatio" +defs["structs"]["ImGuiContext"][145]["type"] = "float" defs["structs"]["ImGuiContext"][146] = {} -defs["structs"]["ImGuiContext"][146]["name"] = "DragDropMouseButton" -defs["structs"]["ImGuiContext"][146]["type"] = "int" +defs["structs"]["ImGuiContext"][146]["name"] = "MouseCursor" +defs["structs"]["ImGuiContext"][146]["type"] = "ImGuiMouseCursor" defs["structs"]["ImGuiContext"][147] = {} -defs["structs"]["ImGuiContext"][147]["name"] = "DragDropPayload" -defs["structs"]["ImGuiContext"][147]["type"] = "ImGuiPayload" +defs["structs"]["ImGuiContext"][147]["name"] = "DragDropActive" +defs["structs"]["ImGuiContext"][147]["type"] = "bool" defs["structs"]["ImGuiContext"][148] = {} -defs["structs"]["ImGuiContext"][148]["name"] = "DragDropTargetRect" -defs["structs"]["ImGuiContext"][148]["type"] = "ImRect" +defs["structs"]["ImGuiContext"][148]["name"] = "DragDropWithinSource" +defs["structs"]["ImGuiContext"][148]["type"] = "bool" defs["structs"]["ImGuiContext"][149] = {} -defs["structs"]["ImGuiContext"][149]["name"] = "DragDropTargetId" -defs["structs"]["ImGuiContext"][149]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][149]["name"] = "DragDropWithinTarget" +defs["structs"]["ImGuiContext"][149]["type"] = "bool" defs["structs"]["ImGuiContext"][150] = {} -defs["structs"]["ImGuiContext"][150]["name"] = "DragDropAcceptFlags" +defs["structs"]["ImGuiContext"][150]["name"] = "DragDropSourceFlags" defs["structs"]["ImGuiContext"][150]["type"] = "ImGuiDragDropFlags" defs["structs"]["ImGuiContext"][151] = {} -defs["structs"]["ImGuiContext"][151]["name"] = "DragDropAcceptIdCurrRectSurface" -defs["structs"]["ImGuiContext"][151]["type"] = "float" +defs["structs"]["ImGuiContext"][151]["name"] = "DragDropSourceFrameCount" +defs["structs"]["ImGuiContext"][151]["type"] = "int" defs["structs"]["ImGuiContext"][152] = {} -defs["structs"]["ImGuiContext"][152]["name"] = "DragDropAcceptIdCurr" -defs["structs"]["ImGuiContext"][152]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][152]["name"] = "DragDropMouseButton" +defs["structs"]["ImGuiContext"][152]["type"] = "int" defs["structs"]["ImGuiContext"][153] = {} -defs["structs"]["ImGuiContext"][153]["name"] = "DragDropAcceptIdPrev" -defs["structs"]["ImGuiContext"][153]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][153]["name"] = "DragDropPayload" +defs["structs"]["ImGuiContext"][153]["type"] = "ImGuiPayload" defs["structs"]["ImGuiContext"][154] = {} -defs["structs"]["ImGuiContext"][154]["name"] = "DragDropAcceptFrameCount" -defs["structs"]["ImGuiContext"][154]["type"] = "int" +defs["structs"]["ImGuiContext"][154]["name"] = "DragDropTargetRect" +defs["structs"]["ImGuiContext"][154]["type"] = "ImRect" defs["structs"]["ImGuiContext"][155] = {} -defs["structs"]["ImGuiContext"][155]["name"] = "DragDropHoldJustPressedId" +defs["structs"]["ImGuiContext"][155]["name"] = "DragDropTargetId" defs["structs"]["ImGuiContext"][155]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][156] = {} -defs["structs"]["ImGuiContext"][156]["name"] = "DragDropPayloadBufHeap" -defs["structs"]["ImGuiContext"][156]["template_type"] = "unsigned char" -defs["structs"]["ImGuiContext"][156]["type"] = "ImVector_unsigned_char" +defs["structs"]["ImGuiContext"][156]["name"] = "DragDropAcceptFlags" +defs["structs"]["ImGuiContext"][156]["type"] = "ImGuiDragDropFlags" defs["structs"]["ImGuiContext"][157] = {} -defs["structs"]["ImGuiContext"][157]["name"] = "DragDropPayloadBufLocal[16]" -defs["structs"]["ImGuiContext"][157]["size"] = 16 -defs["structs"]["ImGuiContext"][157]["type"] = "unsigned char" +defs["structs"]["ImGuiContext"][157]["name"] = "DragDropAcceptIdCurrRectSurface" +defs["structs"]["ImGuiContext"][157]["type"] = "float" defs["structs"]["ImGuiContext"][158] = {} -defs["structs"]["ImGuiContext"][158]["name"] = "ClipperTempDataStacked" -defs["structs"]["ImGuiContext"][158]["type"] = "int" +defs["structs"]["ImGuiContext"][158]["name"] = "DragDropAcceptIdCurr" +defs["structs"]["ImGuiContext"][158]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][159] = {} -defs["structs"]["ImGuiContext"][159]["name"] = "ClipperTempData" -defs["structs"]["ImGuiContext"][159]["template_type"] = "ImGuiListClipperData" -defs["structs"]["ImGuiContext"][159]["type"] = "ImVector_ImGuiListClipperData" +defs["structs"]["ImGuiContext"][159]["name"] = "DragDropAcceptIdPrev" +defs["structs"]["ImGuiContext"][159]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][160] = {} -defs["structs"]["ImGuiContext"][160]["name"] = "CurrentTable" -defs["structs"]["ImGuiContext"][160]["type"] = "ImGuiTable*" +defs["structs"]["ImGuiContext"][160]["name"] = "DragDropAcceptFrameCount" +defs["structs"]["ImGuiContext"][160]["type"] = "int" defs["structs"]["ImGuiContext"][161] = {} -defs["structs"]["ImGuiContext"][161]["name"] = "TablesTempDataStacked" -defs["structs"]["ImGuiContext"][161]["type"] = "int" +defs["structs"]["ImGuiContext"][161]["name"] = "DragDropHoldJustPressedId" +defs["structs"]["ImGuiContext"][161]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][162] = {} -defs["structs"]["ImGuiContext"][162]["name"] = "TablesTempData" -defs["structs"]["ImGuiContext"][162]["template_type"] = "ImGuiTableTempData" -defs["structs"]["ImGuiContext"][162]["type"] = "ImVector_ImGuiTableTempData" +defs["structs"]["ImGuiContext"][162]["name"] = "DragDropPayloadBufHeap" +defs["structs"]["ImGuiContext"][162]["template_type"] = "unsigned char" +defs["structs"]["ImGuiContext"][162]["type"] = "ImVector_unsigned_char" defs["structs"]["ImGuiContext"][163] = {} -defs["structs"]["ImGuiContext"][163]["name"] = "Tables" -defs["structs"]["ImGuiContext"][163]["template_type"] = "ImGuiTable" -defs["structs"]["ImGuiContext"][163]["type"] = "ImPool_ImGuiTable" +defs["structs"]["ImGuiContext"][163]["name"] = "DragDropPayloadBufLocal[16]" +defs["structs"]["ImGuiContext"][163]["size"] = 16 +defs["structs"]["ImGuiContext"][163]["type"] = "unsigned char" defs["structs"]["ImGuiContext"][164] = {} -defs["structs"]["ImGuiContext"][164]["name"] = "TablesLastTimeActive" -defs["structs"]["ImGuiContext"][164]["template_type"] = "float" -defs["structs"]["ImGuiContext"][164]["type"] = "ImVector_float" +defs["structs"]["ImGuiContext"][164]["name"] = "ClipperTempDataStacked" +defs["structs"]["ImGuiContext"][164]["type"] = "int" defs["structs"]["ImGuiContext"][165] = {} -defs["structs"]["ImGuiContext"][165]["name"] = "DrawChannelsTempMergeBuffer" -defs["structs"]["ImGuiContext"][165]["template_type"] = "ImDrawChannel" -defs["structs"]["ImGuiContext"][165]["type"] = "ImVector_ImDrawChannel" +defs["structs"]["ImGuiContext"][165]["name"] = "ClipperTempData" +defs["structs"]["ImGuiContext"][165]["template_type"] = "ImGuiListClipperData" +defs["structs"]["ImGuiContext"][165]["type"] = "ImVector_ImGuiListClipperData" defs["structs"]["ImGuiContext"][166] = {} -defs["structs"]["ImGuiContext"][166]["name"] = "CurrentTabBar" -defs["structs"]["ImGuiContext"][166]["type"] = "ImGuiTabBar*" +defs["structs"]["ImGuiContext"][166]["name"] = "CurrentTable" +defs["structs"]["ImGuiContext"][166]["type"] = "ImGuiTable*" defs["structs"]["ImGuiContext"][167] = {} -defs["structs"]["ImGuiContext"][167]["name"] = "TabBars" -defs["structs"]["ImGuiContext"][167]["template_type"] = "ImGuiTabBar" -defs["structs"]["ImGuiContext"][167]["type"] = "ImPool_ImGuiTabBar" +defs["structs"]["ImGuiContext"][167]["name"] = "TablesTempDataStacked" +defs["structs"]["ImGuiContext"][167]["type"] = "int" defs["structs"]["ImGuiContext"][168] = {} -defs["structs"]["ImGuiContext"][168]["name"] = "CurrentTabBarStack" -defs["structs"]["ImGuiContext"][168]["template_type"] = "ImGuiPtrOrIndex" -defs["structs"]["ImGuiContext"][168]["type"] = "ImVector_ImGuiPtrOrIndex" +defs["structs"]["ImGuiContext"][168]["name"] = "TablesTempData" +defs["structs"]["ImGuiContext"][168]["template_type"] = "ImGuiTableTempData" +defs["structs"]["ImGuiContext"][168]["type"] = "ImVector_ImGuiTableTempData" defs["structs"]["ImGuiContext"][169] = {} -defs["structs"]["ImGuiContext"][169]["name"] = "ShrinkWidthBuffer" -defs["structs"]["ImGuiContext"][169]["template_type"] = "ImGuiShrinkWidthItem" -defs["structs"]["ImGuiContext"][169]["type"] = "ImVector_ImGuiShrinkWidthItem" +defs["structs"]["ImGuiContext"][169]["name"] = "Tables" +defs["structs"]["ImGuiContext"][169]["template_type"] = "ImGuiTable" +defs["structs"]["ImGuiContext"][169]["type"] = "ImPool_ImGuiTable" defs["structs"]["ImGuiContext"][170] = {} -defs["structs"]["ImGuiContext"][170]["name"] = "MouseLastValidPos" -defs["structs"]["ImGuiContext"][170]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][170]["name"] = "TablesLastTimeActive" +defs["structs"]["ImGuiContext"][170]["template_type"] = "float" +defs["structs"]["ImGuiContext"][170]["type"] = "ImVector_float" defs["structs"]["ImGuiContext"][171] = {} -defs["structs"]["ImGuiContext"][171]["name"] = "InputTextState" -defs["structs"]["ImGuiContext"][171]["type"] = "ImGuiInputTextState" +defs["structs"]["ImGuiContext"][171]["name"] = "DrawChannelsTempMergeBuffer" +defs["structs"]["ImGuiContext"][171]["template_type"] = "ImDrawChannel" +defs["structs"]["ImGuiContext"][171]["type"] = "ImVector_ImDrawChannel" defs["structs"]["ImGuiContext"][172] = {} -defs["structs"]["ImGuiContext"][172]["name"] = "InputTextPasswordFont" -defs["structs"]["ImGuiContext"][172]["type"] = "ImFont" +defs["structs"]["ImGuiContext"][172]["name"] = "CurrentTabBar" +defs["structs"]["ImGuiContext"][172]["type"] = "ImGuiTabBar*" defs["structs"]["ImGuiContext"][173] = {} -defs["structs"]["ImGuiContext"][173]["name"] = "TempInputId" -defs["structs"]["ImGuiContext"][173]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][173]["name"] = "TabBars" +defs["structs"]["ImGuiContext"][173]["template_type"] = "ImGuiTabBar" +defs["structs"]["ImGuiContext"][173]["type"] = "ImPool_ImGuiTabBar" defs["structs"]["ImGuiContext"][174] = {} -defs["structs"]["ImGuiContext"][174]["name"] = "ColorEditOptions" -defs["structs"]["ImGuiContext"][174]["type"] = "ImGuiColorEditFlags" +defs["structs"]["ImGuiContext"][174]["name"] = "CurrentTabBarStack" +defs["structs"]["ImGuiContext"][174]["template_type"] = "ImGuiPtrOrIndex" +defs["structs"]["ImGuiContext"][174]["type"] = "ImVector_ImGuiPtrOrIndex" defs["structs"]["ImGuiContext"][175] = {} -defs["structs"]["ImGuiContext"][175]["name"] = "ColorEditLastHue" -defs["structs"]["ImGuiContext"][175]["type"] = "float" +defs["structs"]["ImGuiContext"][175]["name"] = "ShrinkWidthBuffer" +defs["structs"]["ImGuiContext"][175]["template_type"] = "ImGuiShrinkWidthItem" +defs["structs"]["ImGuiContext"][175]["type"] = "ImVector_ImGuiShrinkWidthItem" defs["structs"]["ImGuiContext"][176] = {} -defs["structs"]["ImGuiContext"][176]["name"] = "ColorEditLastSat" -defs["structs"]["ImGuiContext"][176]["type"] = "float" +defs["structs"]["ImGuiContext"][176]["name"] = "HoverDelayId" +defs["structs"]["ImGuiContext"][176]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][177] = {} -defs["structs"]["ImGuiContext"][177]["name"] = "ColorEditLastColor" -defs["structs"]["ImGuiContext"][177]["type"] = "ImU32" +defs["structs"]["ImGuiContext"][177]["name"] = "HoverDelayIdPreviousFrame" +defs["structs"]["ImGuiContext"][177]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][178] = {} -defs["structs"]["ImGuiContext"][178]["name"] = "ColorPickerRef" -defs["structs"]["ImGuiContext"][178]["type"] = "ImVec4" +defs["structs"]["ImGuiContext"][178]["name"] = "HoverDelayTimer" +defs["structs"]["ImGuiContext"][178]["type"] = "float" defs["structs"]["ImGuiContext"][179] = {} -defs["structs"]["ImGuiContext"][179]["name"] = "ComboPreviewData" -defs["structs"]["ImGuiContext"][179]["type"] = "ImGuiComboPreviewData" +defs["structs"]["ImGuiContext"][179]["name"] = "HoverDelayClearTimer" +defs["structs"]["ImGuiContext"][179]["type"] = "float" defs["structs"]["ImGuiContext"][180] = {} -defs["structs"]["ImGuiContext"][180]["name"] = "SliderCurrentAccum" -defs["structs"]["ImGuiContext"][180]["type"] = "float" +defs["structs"]["ImGuiContext"][180]["name"] = "MouseLastValidPos" +defs["structs"]["ImGuiContext"][180]["type"] = "ImVec2" defs["structs"]["ImGuiContext"][181] = {} -defs["structs"]["ImGuiContext"][181]["name"] = "SliderCurrentAccumDirty" -defs["structs"]["ImGuiContext"][181]["type"] = "bool" +defs["structs"]["ImGuiContext"][181]["name"] = "InputTextState" +defs["structs"]["ImGuiContext"][181]["type"] = "ImGuiInputTextState" defs["structs"]["ImGuiContext"][182] = {} -defs["structs"]["ImGuiContext"][182]["name"] = "DragCurrentAccumDirty" -defs["structs"]["ImGuiContext"][182]["type"] = "bool" +defs["structs"]["ImGuiContext"][182]["name"] = "InputTextPasswordFont" +defs["structs"]["ImGuiContext"][182]["type"] = "ImFont" defs["structs"]["ImGuiContext"][183] = {} -defs["structs"]["ImGuiContext"][183]["name"] = "DragCurrentAccum" -defs["structs"]["ImGuiContext"][183]["type"] = "float" +defs["structs"]["ImGuiContext"][183]["name"] = "TempInputId" +defs["structs"]["ImGuiContext"][183]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][184] = {} -defs["structs"]["ImGuiContext"][184]["name"] = "DragSpeedDefaultRatio" -defs["structs"]["ImGuiContext"][184]["type"] = "float" +defs["structs"]["ImGuiContext"][184]["name"] = "ColorEditOptions" +defs["structs"]["ImGuiContext"][184]["type"] = "ImGuiColorEditFlags" defs["structs"]["ImGuiContext"][185] = {} -defs["structs"]["ImGuiContext"][185]["name"] = "ScrollbarClickDeltaToGrabCenter" +defs["structs"]["ImGuiContext"][185]["name"] = "ColorEditLastHue" defs["structs"]["ImGuiContext"][185]["type"] = "float" defs["structs"]["ImGuiContext"][186] = {} -defs["structs"]["ImGuiContext"][186]["name"] = "DisabledAlphaBackup" +defs["structs"]["ImGuiContext"][186]["name"] = "ColorEditLastSat" defs["structs"]["ImGuiContext"][186]["type"] = "float" defs["structs"]["ImGuiContext"][187] = {} -defs["structs"]["ImGuiContext"][187]["name"] = "DisabledStackSize" -defs["structs"]["ImGuiContext"][187]["type"] = "short" +defs["structs"]["ImGuiContext"][187]["name"] = "ColorEditLastColor" +defs["structs"]["ImGuiContext"][187]["type"] = "ImU32" defs["structs"]["ImGuiContext"][188] = {} -defs["structs"]["ImGuiContext"][188]["name"] = "TooltipOverrideCount" -defs["structs"]["ImGuiContext"][188]["type"] = "short" +defs["structs"]["ImGuiContext"][188]["name"] = "ColorPickerRef" +defs["structs"]["ImGuiContext"][188]["type"] = "ImVec4" defs["structs"]["ImGuiContext"][189] = {} -defs["structs"]["ImGuiContext"][189]["name"] = "TooltipSlowDelay" -defs["structs"]["ImGuiContext"][189]["type"] = "float" +defs["structs"]["ImGuiContext"][189]["name"] = "ComboPreviewData" +defs["structs"]["ImGuiContext"][189]["type"] = "ImGuiComboPreviewData" defs["structs"]["ImGuiContext"][190] = {} -defs["structs"]["ImGuiContext"][190]["name"] = "ClipboardHandlerData" -defs["structs"]["ImGuiContext"][190]["template_type"] = "char" -defs["structs"]["ImGuiContext"][190]["type"] = "ImVector_char" +defs["structs"]["ImGuiContext"][190]["name"] = "SliderGrabClickOffset" +defs["structs"]["ImGuiContext"][190]["type"] = "float" defs["structs"]["ImGuiContext"][191] = {} -defs["structs"]["ImGuiContext"][191]["name"] = "MenusIdSubmittedThisFrame" -defs["structs"]["ImGuiContext"][191]["template_type"] = "ImGuiID" -defs["structs"]["ImGuiContext"][191]["type"] = "ImVector_ImGuiID" +defs["structs"]["ImGuiContext"][191]["name"] = "SliderCurrentAccum" +defs["structs"]["ImGuiContext"][191]["type"] = "float" defs["structs"]["ImGuiContext"][192] = {} -defs["structs"]["ImGuiContext"][192]["name"] = "PlatformImePos" -defs["structs"]["ImGuiContext"][192]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][192]["name"] = "SliderCurrentAccumDirty" +defs["structs"]["ImGuiContext"][192]["type"] = "bool" defs["structs"]["ImGuiContext"][193] = {} -defs["structs"]["ImGuiContext"][193]["name"] = "PlatformImeLastPos" -defs["structs"]["ImGuiContext"][193]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][193]["name"] = "DragCurrentAccumDirty" +defs["structs"]["ImGuiContext"][193]["type"] = "bool" defs["structs"]["ImGuiContext"][194] = {} -defs["structs"]["ImGuiContext"][194]["name"] = "PlatformImePosViewport" -defs["structs"]["ImGuiContext"][194]["type"] = "ImGuiViewportP*" +defs["structs"]["ImGuiContext"][194]["name"] = "DragCurrentAccum" +defs["structs"]["ImGuiContext"][194]["type"] = "float" defs["structs"]["ImGuiContext"][195] = {} -defs["structs"]["ImGuiContext"][195]["name"] = "PlatformLocaleDecimalPoint" -defs["structs"]["ImGuiContext"][195]["type"] = "char" +defs["structs"]["ImGuiContext"][195]["name"] = "DragSpeedDefaultRatio" +defs["structs"]["ImGuiContext"][195]["type"] = "float" defs["structs"]["ImGuiContext"][196] = {} -defs["structs"]["ImGuiContext"][196]["name"] = "DockContext" -defs["structs"]["ImGuiContext"][196]["type"] = "ImGuiDockContext" +defs["structs"]["ImGuiContext"][196]["name"] = "ScrollbarClickDeltaToGrabCenter" +defs["structs"]["ImGuiContext"][196]["type"] = "float" defs["structs"]["ImGuiContext"][197] = {} -defs["structs"]["ImGuiContext"][197]["name"] = "SettingsLoaded" -defs["structs"]["ImGuiContext"][197]["type"] = "bool" +defs["structs"]["ImGuiContext"][197]["name"] = "DisabledAlphaBackup" +defs["structs"]["ImGuiContext"][197]["type"] = "float" defs["structs"]["ImGuiContext"][198] = {} -defs["structs"]["ImGuiContext"][198]["name"] = "SettingsDirtyTimer" -defs["structs"]["ImGuiContext"][198]["type"] = "float" +defs["structs"]["ImGuiContext"][198]["name"] = "DisabledStackSize" +defs["structs"]["ImGuiContext"][198]["type"] = "short" defs["structs"]["ImGuiContext"][199] = {} -defs["structs"]["ImGuiContext"][199]["name"] = "SettingsIniData" -defs["structs"]["ImGuiContext"][199]["type"] = "ImGuiTextBuffer" +defs["structs"]["ImGuiContext"][199]["name"] = "TooltipOverrideCount" +defs["structs"]["ImGuiContext"][199]["type"] = "short" defs["structs"]["ImGuiContext"][200] = {} -defs["structs"]["ImGuiContext"][200]["name"] = "SettingsHandlers" -defs["structs"]["ImGuiContext"][200]["template_type"] = "ImGuiSettingsHandler" -defs["structs"]["ImGuiContext"][200]["type"] = "ImVector_ImGuiSettingsHandler" +defs["structs"]["ImGuiContext"][200]["name"] = "ClipboardHandlerData" +defs["structs"]["ImGuiContext"][200]["template_type"] = "char" +defs["structs"]["ImGuiContext"][200]["type"] = "ImVector_char" defs["structs"]["ImGuiContext"][201] = {} -defs["structs"]["ImGuiContext"][201]["name"] = "SettingsWindows" -defs["structs"]["ImGuiContext"][201]["template_type"] = "ImGuiWindowSettings" -defs["structs"]["ImGuiContext"][201]["type"] = "ImChunkStream_ImGuiWindowSettings" +defs["structs"]["ImGuiContext"][201]["name"] = "MenusIdSubmittedThisFrame" +defs["structs"]["ImGuiContext"][201]["template_type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][201]["type"] = "ImVector_ImGuiID" defs["structs"]["ImGuiContext"][202] = {} -defs["structs"]["ImGuiContext"][202]["name"] = "SettingsTables" -defs["structs"]["ImGuiContext"][202]["template_type"] = "ImGuiTableSettings" -defs["structs"]["ImGuiContext"][202]["type"] = "ImChunkStream_ImGuiTableSettings" +defs["structs"]["ImGuiContext"][202]["name"] = "PlatformImeData" +defs["structs"]["ImGuiContext"][202]["type"] = "ImGuiPlatformImeData" defs["structs"]["ImGuiContext"][203] = {} -defs["structs"]["ImGuiContext"][203]["name"] = "Hooks" -defs["structs"]["ImGuiContext"][203]["template_type"] = "ImGuiContextHook" -defs["structs"]["ImGuiContext"][203]["type"] = "ImVector_ImGuiContextHook" +defs["structs"]["ImGuiContext"][203]["name"] = "PlatformImeDataPrev" +defs["structs"]["ImGuiContext"][203]["type"] = "ImGuiPlatformImeData" defs["structs"]["ImGuiContext"][204] = {} -defs["structs"]["ImGuiContext"][204]["name"] = "HookIdNext" +defs["structs"]["ImGuiContext"][204]["name"] = "PlatformImeViewport" defs["structs"]["ImGuiContext"][204]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][205] = {} -defs["structs"]["ImGuiContext"][205]["name"] = "LogEnabled" -defs["structs"]["ImGuiContext"][205]["type"] = "bool" +defs["structs"]["ImGuiContext"][205]["name"] = "PlatformLocaleDecimalPoint" +defs["structs"]["ImGuiContext"][205]["type"] = "char" defs["structs"]["ImGuiContext"][206] = {} -defs["structs"]["ImGuiContext"][206]["name"] = "LogType" -defs["structs"]["ImGuiContext"][206]["type"] = "ImGuiLogType" +defs["structs"]["ImGuiContext"][206]["name"] = "DockContext" +defs["structs"]["ImGuiContext"][206]["type"] = "ImGuiDockContext" defs["structs"]["ImGuiContext"][207] = {} -defs["structs"]["ImGuiContext"][207]["name"] = "LogFile" -defs["structs"]["ImGuiContext"][207]["type"] = "ImFileHandle" +defs["structs"]["ImGuiContext"][207]["name"] = "SettingsLoaded" +defs["structs"]["ImGuiContext"][207]["type"] = "bool" defs["structs"]["ImGuiContext"][208] = {} -defs["structs"]["ImGuiContext"][208]["name"] = "LogBuffer" -defs["structs"]["ImGuiContext"][208]["type"] = "ImGuiTextBuffer" +defs["structs"]["ImGuiContext"][208]["name"] = "SettingsDirtyTimer" +defs["structs"]["ImGuiContext"][208]["type"] = "float" defs["structs"]["ImGuiContext"][209] = {} -defs["structs"]["ImGuiContext"][209]["name"] = "LogNextPrefix" -defs["structs"]["ImGuiContext"][209]["type"] = "const char*" +defs["structs"]["ImGuiContext"][209]["name"] = "SettingsIniData" +defs["structs"]["ImGuiContext"][209]["type"] = "ImGuiTextBuffer" defs["structs"]["ImGuiContext"][210] = {} -defs["structs"]["ImGuiContext"][210]["name"] = "LogNextSuffix" -defs["structs"]["ImGuiContext"][210]["type"] = "const char*" +defs["structs"]["ImGuiContext"][210]["name"] = "SettingsHandlers" +defs["structs"]["ImGuiContext"][210]["template_type"] = "ImGuiSettingsHandler" +defs["structs"]["ImGuiContext"][210]["type"] = "ImVector_ImGuiSettingsHandler" defs["structs"]["ImGuiContext"][211] = {} -defs["structs"]["ImGuiContext"][211]["name"] = "LogLinePosY" -defs["structs"]["ImGuiContext"][211]["type"] = "float" +defs["structs"]["ImGuiContext"][211]["name"] = "SettingsWindows" +defs["structs"]["ImGuiContext"][211]["template_type"] = "ImGuiWindowSettings" +defs["structs"]["ImGuiContext"][211]["type"] = "ImChunkStream_ImGuiWindowSettings" defs["structs"]["ImGuiContext"][212] = {} -defs["structs"]["ImGuiContext"][212]["name"] = "LogLineFirstItem" -defs["structs"]["ImGuiContext"][212]["type"] = "bool" +defs["structs"]["ImGuiContext"][212]["name"] = "SettingsTables" +defs["structs"]["ImGuiContext"][212]["template_type"] = "ImGuiTableSettings" +defs["structs"]["ImGuiContext"][212]["type"] = "ImChunkStream_ImGuiTableSettings" defs["structs"]["ImGuiContext"][213] = {} -defs["structs"]["ImGuiContext"][213]["name"] = "LogDepthRef" -defs["structs"]["ImGuiContext"][213]["type"] = "int" +defs["structs"]["ImGuiContext"][213]["name"] = "Hooks" +defs["structs"]["ImGuiContext"][213]["template_type"] = "ImGuiContextHook" +defs["structs"]["ImGuiContext"][213]["type"] = "ImVector_ImGuiContextHook" defs["structs"]["ImGuiContext"][214] = {} -defs["structs"]["ImGuiContext"][214]["name"] = "LogDepthToExpand" -defs["structs"]["ImGuiContext"][214]["type"] = "int" +defs["structs"]["ImGuiContext"][214]["name"] = "HookIdNext" +defs["structs"]["ImGuiContext"][214]["type"] = "ImGuiID" defs["structs"]["ImGuiContext"][215] = {} -defs["structs"]["ImGuiContext"][215]["name"] = "LogDepthToExpandDefault" -defs["structs"]["ImGuiContext"][215]["type"] = "int" +defs["structs"]["ImGuiContext"][215]["name"] = "LocalizationTable[ImGuiLocKey_COUNT]" +defs["structs"]["ImGuiContext"][215]["size"] = 8 +defs["structs"]["ImGuiContext"][215]["type"] = "const char*" defs["structs"]["ImGuiContext"][216] = {} -defs["structs"]["ImGuiContext"][216]["name"] = "DebugItemPickerActive" +defs["structs"]["ImGuiContext"][216]["name"] = "LogEnabled" defs["structs"]["ImGuiContext"][216]["type"] = "bool" defs["structs"]["ImGuiContext"][217] = {} -defs["structs"]["ImGuiContext"][217]["name"] = "DebugItemPickerBreakId" -defs["structs"]["ImGuiContext"][217]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][217]["name"] = "LogType" +defs["structs"]["ImGuiContext"][217]["type"] = "ImGuiLogType" defs["structs"]["ImGuiContext"][218] = {} -defs["structs"]["ImGuiContext"][218]["name"] = "DebugMetricsConfig" -defs["structs"]["ImGuiContext"][218]["type"] = "ImGuiMetricsConfig" +defs["structs"]["ImGuiContext"][218]["name"] = "LogFile" +defs["structs"]["ImGuiContext"][218]["type"] = "ImFileHandle" defs["structs"]["ImGuiContext"][219] = {} -defs["structs"]["ImGuiContext"][219]["name"] = "DebugStackTool" -defs["structs"]["ImGuiContext"][219]["type"] = "ImGuiStackTool" +defs["structs"]["ImGuiContext"][219]["name"] = "LogBuffer" +defs["structs"]["ImGuiContext"][219]["type"] = "ImGuiTextBuffer" defs["structs"]["ImGuiContext"][220] = {} -defs["structs"]["ImGuiContext"][220]["name"] = "FramerateSecPerFrame[120]" -defs["structs"]["ImGuiContext"][220]["size"] = 120 -defs["structs"]["ImGuiContext"][220]["type"] = "float" +defs["structs"]["ImGuiContext"][220]["name"] = "LogNextPrefix" +defs["structs"]["ImGuiContext"][220]["type"] = "const char*" defs["structs"]["ImGuiContext"][221] = {} -defs["structs"]["ImGuiContext"][221]["name"] = "FramerateSecPerFrameIdx" -defs["structs"]["ImGuiContext"][221]["type"] = "int" +defs["structs"]["ImGuiContext"][221]["name"] = "LogNextSuffix" +defs["structs"]["ImGuiContext"][221]["type"] = "const char*" defs["structs"]["ImGuiContext"][222] = {} -defs["structs"]["ImGuiContext"][222]["name"] = "FramerateSecPerFrameCount" -defs["structs"]["ImGuiContext"][222]["type"] = "int" +defs["structs"]["ImGuiContext"][222]["name"] = "LogLinePosY" +defs["structs"]["ImGuiContext"][222]["type"] = "float" defs["structs"]["ImGuiContext"][223] = {} -defs["structs"]["ImGuiContext"][223]["name"] = "FramerateSecPerFrameAccum" -defs["structs"]["ImGuiContext"][223]["type"] = "float" +defs["structs"]["ImGuiContext"][223]["name"] = "LogLineFirstItem" +defs["structs"]["ImGuiContext"][223]["type"] = "bool" defs["structs"]["ImGuiContext"][224] = {} -defs["structs"]["ImGuiContext"][224]["name"] = "WantCaptureMouseNextFrame" +defs["structs"]["ImGuiContext"][224]["name"] = "LogDepthRef" defs["structs"]["ImGuiContext"][224]["type"] = "int" defs["structs"]["ImGuiContext"][225] = {} -defs["structs"]["ImGuiContext"][225]["name"] = "WantCaptureKeyboardNextFrame" +defs["structs"]["ImGuiContext"][225]["name"] = "LogDepthToExpand" defs["structs"]["ImGuiContext"][225]["type"] = "int" defs["structs"]["ImGuiContext"][226] = {} -defs["structs"]["ImGuiContext"][226]["name"] = "WantTextInputNextFrame" +defs["structs"]["ImGuiContext"][226]["name"] = "LogDepthToExpandDefault" defs["structs"]["ImGuiContext"][226]["type"] = "int" defs["structs"]["ImGuiContext"][227] = {} -defs["structs"]["ImGuiContext"][227]["name"] = "TempBuffer[1024*3+1]" -defs["structs"]["ImGuiContext"][227]["size"] = 3073 -defs["structs"]["ImGuiContext"][227]["type"] = "char" +defs["structs"]["ImGuiContext"][227]["name"] = "DebugLogFlags" +defs["structs"]["ImGuiContext"][227]["type"] = "ImGuiDebugLogFlags" +defs["structs"]["ImGuiContext"][228] = {} +defs["structs"]["ImGuiContext"][228]["name"] = "DebugLogBuf" +defs["structs"]["ImGuiContext"][228]["type"] = "ImGuiTextBuffer" +defs["structs"]["ImGuiContext"][229] = {} +defs["structs"]["ImGuiContext"][229]["name"] = "DebugLogIndex" +defs["structs"]["ImGuiContext"][229]["type"] = "ImGuiTextIndex" +defs["structs"]["ImGuiContext"][230] = {} +defs["structs"]["ImGuiContext"][230]["name"] = "DebugLocateFrames" +defs["structs"]["ImGuiContext"][230]["type"] = "ImU8" +defs["structs"]["ImGuiContext"][231] = {} +defs["structs"]["ImGuiContext"][231]["name"] = "DebugItemPickerActive" +defs["structs"]["ImGuiContext"][231]["type"] = "bool" +defs["structs"]["ImGuiContext"][232] = {} +defs["structs"]["ImGuiContext"][232]["name"] = "DebugItemPickerMouseButton" +defs["structs"]["ImGuiContext"][232]["type"] = "ImU8" +defs["structs"]["ImGuiContext"][233] = {} +defs["structs"]["ImGuiContext"][233]["name"] = "DebugItemPickerBreakId" +defs["structs"]["ImGuiContext"][233]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][234] = {} +defs["structs"]["ImGuiContext"][234]["name"] = "DebugMetricsConfig" +defs["structs"]["ImGuiContext"][234]["type"] = "ImGuiMetricsConfig" +defs["structs"]["ImGuiContext"][235] = {} +defs["structs"]["ImGuiContext"][235]["name"] = "DebugStackTool" +defs["structs"]["ImGuiContext"][235]["type"] = "ImGuiStackTool" +defs["structs"]["ImGuiContext"][236] = {} +defs["structs"]["ImGuiContext"][236]["name"] = "DebugHoveredDockNode" +defs["structs"]["ImGuiContext"][236]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiContext"][237] = {} +defs["structs"]["ImGuiContext"][237]["name"] = "FramerateSecPerFrame[60]" +defs["structs"]["ImGuiContext"][237]["size"] = 60 +defs["structs"]["ImGuiContext"][237]["type"] = "float" +defs["structs"]["ImGuiContext"][238] = {} +defs["structs"]["ImGuiContext"][238]["name"] = "FramerateSecPerFrameIdx" +defs["structs"]["ImGuiContext"][238]["type"] = "int" +defs["structs"]["ImGuiContext"][239] = {} +defs["structs"]["ImGuiContext"][239]["name"] = "FramerateSecPerFrameCount" +defs["structs"]["ImGuiContext"][239]["type"] = "int" +defs["structs"]["ImGuiContext"][240] = {} +defs["structs"]["ImGuiContext"][240]["name"] = "FramerateSecPerFrameAccum" +defs["structs"]["ImGuiContext"][240]["type"] = "float" +defs["structs"]["ImGuiContext"][241] = {} +defs["structs"]["ImGuiContext"][241]["name"] = "WantCaptureMouseNextFrame" +defs["structs"]["ImGuiContext"][241]["type"] = "int" +defs["structs"]["ImGuiContext"][242] = {} +defs["structs"]["ImGuiContext"][242]["name"] = "WantCaptureKeyboardNextFrame" +defs["structs"]["ImGuiContext"][242]["type"] = "int" +defs["structs"]["ImGuiContext"][243] = {} +defs["structs"]["ImGuiContext"][243]["name"] = "WantTextInputNextFrame" +defs["structs"]["ImGuiContext"][243]["type"] = "int" +defs["structs"]["ImGuiContext"][244] = {} +defs["structs"]["ImGuiContext"][244]["name"] = "TempBuffer" +defs["structs"]["ImGuiContext"][244]["template_type"] = "char" +defs["structs"]["ImGuiContext"][244]["type"] = "ImVector_char" defs["structs"]["ImGuiContextHook"] = {} defs["structs"]["ImGuiContextHook"][1] = {} defs["structs"]["ImGuiContextHook"][1]["name"] = "HookId" @@ -4455,273 +5226,341 @@ defs["structs"]["ImGuiIO"][10] = {} defs["structs"]["ImGuiIO"][10]["name"] = "MouseDragThreshold" defs["structs"]["ImGuiIO"][10]["type"] = "float" defs["structs"]["ImGuiIO"][11] = {} -defs["structs"]["ImGuiIO"][11]["name"] = "KeyMap[ImGuiKey_COUNT]" -defs["structs"]["ImGuiIO"][11]["size"] = 22 -defs["structs"]["ImGuiIO"][11]["type"] = "int" +defs["structs"]["ImGuiIO"][11]["name"] = "KeyRepeatDelay" +defs["structs"]["ImGuiIO"][11]["type"] = "float" defs["structs"]["ImGuiIO"][12] = {} -defs["structs"]["ImGuiIO"][12]["name"] = "KeyRepeatDelay" +defs["structs"]["ImGuiIO"][12]["name"] = "KeyRepeatRate" defs["structs"]["ImGuiIO"][12]["type"] = "float" defs["structs"]["ImGuiIO"][13] = {} -defs["structs"]["ImGuiIO"][13]["name"] = "KeyRepeatRate" +defs["structs"]["ImGuiIO"][13]["name"] = "HoverDelayNormal" defs["structs"]["ImGuiIO"][13]["type"] = "float" defs["structs"]["ImGuiIO"][14] = {} -defs["structs"]["ImGuiIO"][14]["name"] = "UserData" -defs["structs"]["ImGuiIO"][14]["type"] = "void*" +defs["structs"]["ImGuiIO"][14]["name"] = "HoverDelayShort" +defs["structs"]["ImGuiIO"][14]["type"] = "float" defs["structs"]["ImGuiIO"][15] = {} -defs["structs"]["ImGuiIO"][15]["name"] = "Fonts" -defs["structs"]["ImGuiIO"][15]["type"] = "ImFontAtlas*" +defs["structs"]["ImGuiIO"][15]["name"] = "UserData" +defs["structs"]["ImGuiIO"][15]["type"] = "void*" defs["structs"]["ImGuiIO"][16] = {} -defs["structs"]["ImGuiIO"][16]["name"] = "FontGlobalScale" -defs["structs"]["ImGuiIO"][16]["type"] = "float" +defs["structs"]["ImGuiIO"][16]["name"] = "Fonts" +defs["structs"]["ImGuiIO"][16]["type"] = "ImFontAtlas*" defs["structs"]["ImGuiIO"][17] = {} -defs["structs"]["ImGuiIO"][17]["name"] = "FontAllowUserScaling" -defs["structs"]["ImGuiIO"][17]["type"] = "bool" +defs["structs"]["ImGuiIO"][17]["name"] = "FontGlobalScale" +defs["structs"]["ImGuiIO"][17]["type"] = "float" defs["structs"]["ImGuiIO"][18] = {} -defs["structs"]["ImGuiIO"][18]["name"] = "FontDefault" -defs["structs"]["ImGuiIO"][18]["type"] = "ImFont*" +defs["structs"]["ImGuiIO"][18]["name"] = "FontAllowUserScaling" +defs["structs"]["ImGuiIO"][18]["type"] = "bool" defs["structs"]["ImGuiIO"][19] = {} -defs["structs"]["ImGuiIO"][19]["name"] = "DisplayFramebufferScale" -defs["structs"]["ImGuiIO"][19]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][19]["name"] = "FontDefault" +defs["structs"]["ImGuiIO"][19]["type"] = "ImFont*" defs["structs"]["ImGuiIO"][20] = {} -defs["structs"]["ImGuiIO"][20]["name"] = "ConfigDockingNoSplit" -defs["structs"]["ImGuiIO"][20]["type"] = "bool" +defs["structs"]["ImGuiIO"][20]["name"] = "DisplayFramebufferScale" +defs["structs"]["ImGuiIO"][20]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][21] = {} -defs["structs"]["ImGuiIO"][21]["name"] = "ConfigDockingWithShift" +defs["structs"]["ImGuiIO"][21]["name"] = "ConfigDockingNoSplit" defs["structs"]["ImGuiIO"][21]["type"] = "bool" defs["structs"]["ImGuiIO"][22] = {} -defs["structs"]["ImGuiIO"][22]["name"] = "ConfigDockingAlwaysTabBar" +defs["structs"]["ImGuiIO"][22]["name"] = "ConfigDockingWithShift" defs["structs"]["ImGuiIO"][22]["type"] = "bool" defs["structs"]["ImGuiIO"][23] = {} -defs["structs"]["ImGuiIO"][23]["name"] = "ConfigDockingTransparentPayload" +defs["structs"]["ImGuiIO"][23]["name"] = "ConfigDockingAlwaysTabBar" defs["structs"]["ImGuiIO"][23]["type"] = "bool" defs["structs"]["ImGuiIO"][24] = {} -defs["structs"]["ImGuiIO"][24]["name"] = "ConfigViewportsNoAutoMerge" +defs["structs"]["ImGuiIO"][24]["name"] = "ConfigDockingTransparentPayload" defs["structs"]["ImGuiIO"][24]["type"] = "bool" defs["structs"]["ImGuiIO"][25] = {} -defs["structs"]["ImGuiIO"][25]["name"] = "ConfigViewportsNoTaskBarIcon" +defs["structs"]["ImGuiIO"][25]["name"] = "ConfigViewportsNoAutoMerge" defs["structs"]["ImGuiIO"][25]["type"] = "bool" defs["structs"]["ImGuiIO"][26] = {} -defs["structs"]["ImGuiIO"][26]["name"] = "ConfigViewportsNoDecoration" +defs["structs"]["ImGuiIO"][26]["name"] = "ConfigViewportsNoTaskBarIcon" defs["structs"]["ImGuiIO"][26]["type"] = "bool" defs["structs"]["ImGuiIO"][27] = {} -defs["structs"]["ImGuiIO"][27]["name"] = "ConfigViewportsNoDefaultParent" +defs["structs"]["ImGuiIO"][27]["name"] = "ConfigViewportsNoDecoration" defs["structs"]["ImGuiIO"][27]["type"] = "bool" defs["structs"]["ImGuiIO"][28] = {} -defs["structs"]["ImGuiIO"][28]["name"] = "MouseDrawCursor" +defs["structs"]["ImGuiIO"][28]["name"] = "ConfigViewportsNoDefaultParent" defs["structs"]["ImGuiIO"][28]["type"] = "bool" defs["structs"]["ImGuiIO"][29] = {} -defs["structs"]["ImGuiIO"][29]["name"] = "ConfigMacOSXBehaviors" +defs["structs"]["ImGuiIO"][29]["name"] = "MouseDrawCursor" defs["structs"]["ImGuiIO"][29]["type"] = "bool" defs["structs"]["ImGuiIO"][30] = {} -defs["structs"]["ImGuiIO"][30]["name"] = "ConfigInputTextCursorBlink" +defs["structs"]["ImGuiIO"][30]["name"] = "ConfigMacOSXBehaviors" defs["structs"]["ImGuiIO"][30]["type"] = "bool" defs["structs"]["ImGuiIO"][31] = {} -defs["structs"]["ImGuiIO"][31]["name"] = "ConfigDragClickToInputText" +defs["structs"]["ImGuiIO"][31]["name"] = "ConfigInputTrickleEventQueue" defs["structs"]["ImGuiIO"][31]["type"] = "bool" defs["structs"]["ImGuiIO"][32] = {} -defs["structs"]["ImGuiIO"][32]["name"] = "ConfigWindowsResizeFromEdges" +defs["structs"]["ImGuiIO"][32]["name"] = "ConfigInputTextCursorBlink" defs["structs"]["ImGuiIO"][32]["type"] = "bool" defs["structs"]["ImGuiIO"][33] = {} -defs["structs"]["ImGuiIO"][33]["name"] = "ConfigWindowsMoveFromTitleBarOnly" +defs["structs"]["ImGuiIO"][33]["name"] = "ConfigInputTextEnterKeepActive" defs["structs"]["ImGuiIO"][33]["type"] = "bool" defs["structs"]["ImGuiIO"][34] = {} -defs["structs"]["ImGuiIO"][34]["name"] = "ConfigMemoryCompactTimer" -defs["structs"]["ImGuiIO"][34]["type"] = "float" +defs["structs"]["ImGuiIO"][34]["name"] = "ConfigDragClickToInputText" +defs["structs"]["ImGuiIO"][34]["type"] = "bool" defs["structs"]["ImGuiIO"][35] = {} -defs["structs"]["ImGuiIO"][35]["name"] = "BackendPlatformName" -defs["structs"]["ImGuiIO"][35]["type"] = "const char*" +defs["structs"]["ImGuiIO"][35]["name"] = "ConfigWindowsResizeFromEdges" +defs["structs"]["ImGuiIO"][35]["type"] = "bool" defs["structs"]["ImGuiIO"][36] = {} -defs["structs"]["ImGuiIO"][36]["name"] = "BackendRendererName" -defs["structs"]["ImGuiIO"][36]["type"] = "const char*" +defs["structs"]["ImGuiIO"][36]["name"] = "ConfigWindowsMoveFromTitleBarOnly" +defs["structs"]["ImGuiIO"][36]["type"] = "bool" defs["structs"]["ImGuiIO"][37] = {} -defs["structs"]["ImGuiIO"][37]["name"] = "BackendPlatformUserData" -defs["structs"]["ImGuiIO"][37]["type"] = "void*" +defs["structs"]["ImGuiIO"][37]["name"] = "ConfigMemoryCompactTimer" +defs["structs"]["ImGuiIO"][37]["type"] = "float" defs["structs"]["ImGuiIO"][38] = {} -defs["structs"]["ImGuiIO"][38]["name"] = "BackendRendererUserData" -defs["structs"]["ImGuiIO"][38]["type"] = "void*" +defs["structs"]["ImGuiIO"][38]["name"] = "BackendPlatformName" +defs["structs"]["ImGuiIO"][38]["type"] = "const char*" defs["structs"]["ImGuiIO"][39] = {} -defs["structs"]["ImGuiIO"][39]["name"] = "BackendLanguageUserData" -defs["structs"]["ImGuiIO"][39]["type"] = "void*" +defs["structs"]["ImGuiIO"][39]["name"] = "BackendRendererName" +defs["structs"]["ImGuiIO"][39]["type"] = "const char*" defs["structs"]["ImGuiIO"][40] = {} -defs["structs"]["ImGuiIO"][40]["name"] = "GetClipboardTextFn" -defs["structs"]["ImGuiIO"][40]["type"] = "const char*(*)(void* user_data)" +defs["structs"]["ImGuiIO"][40]["name"] = "BackendPlatformUserData" +defs["structs"]["ImGuiIO"][40]["type"] = "void*" defs["structs"]["ImGuiIO"][41] = {} -defs["structs"]["ImGuiIO"][41]["name"] = "SetClipboardTextFn" -defs["structs"]["ImGuiIO"][41]["type"] = "void(*)(void* user_data,const char* text)" +defs["structs"]["ImGuiIO"][41]["name"] = "BackendRendererUserData" +defs["structs"]["ImGuiIO"][41]["type"] = "void*" defs["structs"]["ImGuiIO"][42] = {} -defs["structs"]["ImGuiIO"][42]["name"] = "ClipboardUserData" +defs["structs"]["ImGuiIO"][42]["name"] = "BackendLanguageUserData" defs["structs"]["ImGuiIO"][42]["type"] = "void*" defs["structs"]["ImGuiIO"][43] = {} -defs["structs"]["ImGuiIO"][43]["name"] = "MousePos" -defs["structs"]["ImGuiIO"][43]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][43]["name"] = "GetClipboardTextFn" +defs["structs"]["ImGuiIO"][43]["type"] = "const char*(*)(void* user_data)" defs["structs"]["ImGuiIO"][44] = {} -defs["structs"]["ImGuiIO"][44]["name"] = "MouseDown[5]" -defs["structs"]["ImGuiIO"][44]["size"] = 5 -defs["structs"]["ImGuiIO"][44]["type"] = "bool" +defs["structs"]["ImGuiIO"][44]["name"] = "SetClipboardTextFn" +defs["structs"]["ImGuiIO"][44]["type"] = "void(*)(void* user_data,const char* text)" defs["structs"]["ImGuiIO"][45] = {} -defs["structs"]["ImGuiIO"][45]["name"] = "MouseWheel" -defs["structs"]["ImGuiIO"][45]["type"] = "float" +defs["structs"]["ImGuiIO"][45]["name"] = "ClipboardUserData" +defs["structs"]["ImGuiIO"][45]["type"] = "void*" defs["structs"]["ImGuiIO"][46] = {} -defs["structs"]["ImGuiIO"][46]["name"] = "MouseWheelH" -defs["structs"]["ImGuiIO"][46]["type"] = "float" +defs["structs"]["ImGuiIO"][46]["name"] = "SetPlatformImeDataFn" +defs["structs"]["ImGuiIO"][46]["type"] = "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" defs["structs"]["ImGuiIO"][47] = {} -defs["structs"]["ImGuiIO"][47]["name"] = "MouseHoveredViewport" -defs["structs"]["ImGuiIO"][47]["type"] = "ImGuiID" +defs["structs"]["ImGuiIO"][47]["name"] = "_UnusedPadding" +defs["structs"]["ImGuiIO"][47]["type"] = "void*" defs["structs"]["ImGuiIO"][48] = {} -defs["structs"]["ImGuiIO"][48]["name"] = "KeyCtrl" +defs["structs"]["ImGuiIO"][48]["name"] = "WantCaptureMouse" defs["structs"]["ImGuiIO"][48]["type"] = "bool" defs["structs"]["ImGuiIO"][49] = {} -defs["structs"]["ImGuiIO"][49]["name"] = "KeyShift" +defs["structs"]["ImGuiIO"][49]["name"] = "WantCaptureKeyboard" defs["structs"]["ImGuiIO"][49]["type"] = "bool" defs["structs"]["ImGuiIO"][50] = {} -defs["structs"]["ImGuiIO"][50]["name"] = "KeyAlt" +defs["structs"]["ImGuiIO"][50]["name"] = "WantTextInput" defs["structs"]["ImGuiIO"][50]["type"] = "bool" defs["structs"]["ImGuiIO"][51] = {} -defs["structs"]["ImGuiIO"][51]["name"] = "KeySuper" +defs["structs"]["ImGuiIO"][51]["name"] = "WantSetMousePos" defs["structs"]["ImGuiIO"][51]["type"] = "bool" defs["structs"]["ImGuiIO"][52] = {} -defs["structs"]["ImGuiIO"][52]["name"] = "KeysDown[512]" -defs["structs"]["ImGuiIO"][52]["size"] = 512 +defs["structs"]["ImGuiIO"][52]["name"] = "WantSaveIniSettings" defs["structs"]["ImGuiIO"][52]["type"] = "bool" defs["structs"]["ImGuiIO"][53] = {} -defs["structs"]["ImGuiIO"][53]["name"] = "NavInputs[ImGuiNavInput_COUNT]" -defs["structs"]["ImGuiIO"][53]["size"] = 20 -defs["structs"]["ImGuiIO"][53]["type"] = "float" +defs["structs"]["ImGuiIO"][53]["name"] = "NavActive" +defs["structs"]["ImGuiIO"][53]["type"] = "bool" defs["structs"]["ImGuiIO"][54] = {} -defs["structs"]["ImGuiIO"][54]["name"] = "WantCaptureMouse" +defs["structs"]["ImGuiIO"][54]["name"] = "NavVisible" defs["structs"]["ImGuiIO"][54]["type"] = "bool" defs["structs"]["ImGuiIO"][55] = {} -defs["structs"]["ImGuiIO"][55]["name"] = "WantCaptureKeyboard" -defs["structs"]["ImGuiIO"][55]["type"] = "bool" +defs["structs"]["ImGuiIO"][55]["name"] = "Framerate" +defs["structs"]["ImGuiIO"][55]["type"] = "float" defs["structs"]["ImGuiIO"][56] = {} -defs["structs"]["ImGuiIO"][56]["name"] = "WantTextInput" -defs["structs"]["ImGuiIO"][56]["type"] = "bool" +defs["structs"]["ImGuiIO"][56]["name"] = "MetricsRenderVertices" +defs["structs"]["ImGuiIO"][56]["type"] = "int" defs["structs"]["ImGuiIO"][57] = {} -defs["structs"]["ImGuiIO"][57]["name"] = "WantSetMousePos" -defs["structs"]["ImGuiIO"][57]["type"] = "bool" +defs["structs"]["ImGuiIO"][57]["name"] = "MetricsRenderIndices" +defs["structs"]["ImGuiIO"][57]["type"] = "int" defs["structs"]["ImGuiIO"][58] = {} -defs["structs"]["ImGuiIO"][58]["name"] = "WantSaveIniSettings" -defs["structs"]["ImGuiIO"][58]["type"] = "bool" +defs["structs"]["ImGuiIO"][58]["name"] = "MetricsRenderWindows" +defs["structs"]["ImGuiIO"][58]["type"] = "int" defs["structs"]["ImGuiIO"][59] = {} -defs["structs"]["ImGuiIO"][59]["name"] = "NavActive" -defs["structs"]["ImGuiIO"][59]["type"] = "bool" +defs["structs"]["ImGuiIO"][59]["name"] = "MetricsActiveWindows" +defs["structs"]["ImGuiIO"][59]["type"] = "int" defs["structs"]["ImGuiIO"][60] = {} -defs["structs"]["ImGuiIO"][60]["name"] = "NavVisible" -defs["structs"]["ImGuiIO"][60]["type"] = "bool" +defs["structs"]["ImGuiIO"][60]["name"] = "MetricsActiveAllocations" +defs["structs"]["ImGuiIO"][60]["type"] = "int" defs["structs"]["ImGuiIO"][61] = {} -defs["structs"]["ImGuiIO"][61]["name"] = "Framerate" -defs["structs"]["ImGuiIO"][61]["type"] = "float" +defs["structs"]["ImGuiIO"][61]["name"] = "MouseDelta" +defs["structs"]["ImGuiIO"][61]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][62] = {} -defs["structs"]["ImGuiIO"][62]["name"] = "MetricsRenderVertices" +defs["structs"]["ImGuiIO"][62]["name"] = "KeyMap[ImGuiKey_COUNT]" +defs["structs"]["ImGuiIO"][62]["size"] = 652 defs["structs"]["ImGuiIO"][62]["type"] = "int" defs["structs"]["ImGuiIO"][63] = {} -defs["structs"]["ImGuiIO"][63]["name"] = "MetricsRenderIndices" -defs["structs"]["ImGuiIO"][63]["type"] = "int" +defs["structs"]["ImGuiIO"][63]["name"] = "KeysDown[ImGuiKey_COUNT]" +defs["structs"]["ImGuiIO"][63]["size"] = 652 +defs["structs"]["ImGuiIO"][63]["type"] = "bool" defs["structs"]["ImGuiIO"][64] = {} -defs["structs"]["ImGuiIO"][64]["name"] = "MetricsRenderWindows" -defs["structs"]["ImGuiIO"][64]["type"] = "int" +defs["structs"]["ImGuiIO"][64]["name"] = "NavInputs[ImGuiNavInput_COUNT]" +defs["structs"]["ImGuiIO"][64]["size"] = 16 +defs["structs"]["ImGuiIO"][64]["type"] = "float" defs["structs"]["ImGuiIO"][65] = {} -defs["structs"]["ImGuiIO"][65]["name"] = "MetricsActiveWindows" -defs["structs"]["ImGuiIO"][65]["type"] = "int" +defs["structs"]["ImGuiIO"][65]["name"] = "MousePos" +defs["structs"]["ImGuiIO"][65]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][66] = {} -defs["structs"]["ImGuiIO"][66]["name"] = "MetricsActiveAllocations" -defs["structs"]["ImGuiIO"][66]["type"] = "int" +defs["structs"]["ImGuiIO"][66]["name"] = "MouseDown[5]" +defs["structs"]["ImGuiIO"][66]["size"] = 5 +defs["structs"]["ImGuiIO"][66]["type"] = "bool" defs["structs"]["ImGuiIO"][67] = {} -defs["structs"]["ImGuiIO"][67]["name"] = "MouseDelta" -defs["structs"]["ImGuiIO"][67]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][67]["name"] = "MouseWheel" +defs["structs"]["ImGuiIO"][67]["type"] = "float" defs["structs"]["ImGuiIO"][68] = {} -defs["structs"]["ImGuiIO"][68]["name"] = "WantCaptureMouseUnlessPopupClose" -defs["structs"]["ImGuiIO"][68]["type"] = "bool" +defs["structs"]["ImGuiIO"][68]["name"] = "MouseWheelH" +defs["structs"]["ImGuiIO"][68]["type"] = "float" defs["structs"]["ImGuiIO"][69] = {} -defs["structs"]["ImGuiIO"][69]["name"] = "KeyMods" -defs["structs"]["ImGuiIO"][69]["type"] = "ImGuiKeyModFlags" +defs["structs"]["ImGuiIO"][69]["name"] = "MouseHoveredViewport" +defs["structs"]["ImGuiIO"][69]["type"] = "ImGuiID" defs["structs"]["ImGuiIO"][70] = {} -defs["structs"]["ImGuiIO"][70]["name"] = "KeyModsPrev" -defs["structs"]["ImGuiIO"][70]["type"] = "ImGuiKeyModFlags" +defs["structs"]["ImGuiIO"][70]["name"] = "KeyCtrl" +defs["structs"]["ImGuiIO"][70]["type"] = "bool" defs["structs"]["ImGuiIO"][71] = {} -defs["structs"]["ImGuiIO"][71]["name"] = "MousePosPrev" -defs["structs"]["ImGuiIO"][71]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][71]["name"] = "KeyShift" +defs["structs"]["ImGuiIO"][71]["type"] = "bool" defs["structs"]["ImGuiIO"][72] = {} -defs["structs"]["ImGuiIO"][72]["name"] = "MouseClickedPos[5]" -defs["structs"]["ImGuiIO"][72]["size"] = 5 -defs["structs"]["ImGuiIO"][72]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][72]["name"] = "KeyAlt" +defs["structs"]["ImGuiIO"][72]["type"] = "bool" defs["structs"]["ImGuiIO"][73] = {} -defs["structs"]["ImGuiIO"][73]["name"] = "MouseClickedTime[5]" -defs["structs"]["ImGuiIO"][73]["size"] = 5 -defs["structs"]["ImGuiIO"][73]["type"] = "double" +defs["structs"]["ImGuiIO"][73]["name"] = "KeySuper" +defs["structs"]["ImGuiIO"][73]["type"] = "bool" defs["structs"]["ImGuiIO"][74] = {} -defs["structs"]["ImGuiIO"][74]["name"] = "MouseClicked[5]" -defs["structs"]["ImGuiIO"][74]["size"] = 5 -defs["structs"]["ImGuiIO"][74]["type"] = "bool" +defs["structs"]["ImGuiIO"][74]["name"] = "KeyMods" +defs["structs"]["ImGuiIO"][74]["type"] = "ImGuiKeyChord" defs["structs"]["ImGuiIO"][75] = {} -defs["structs"]["ImGuiIO"][75]["name"] = "MouseDoubleClicked[5]" -defs["structs"]["ImGuiIO"][75]["size"] = 5 -defs["structs"]["ImGuiIO"][75]["type"] = "bool" +defs["structs"]["ImGuiIO"][75]["name"] = "KeysData[ImGuiKey_KeysData_SIZE]" +defs["structs"]["ImGuiIO"][75]["size"] = 652 +defs["structs"]["ImGuiIO"][75]["type"] = "ImGuiKeyData" defs["structs"]["ImGuiIO"][76] = {} -defs["structs"]["ImGuiIO"][76]["name"] = "MouseClickedCount[5]" -defs["structs"]["ImGuiIO"][76]["size"] = 5 -defs["structs"]["ImGuiIO"][76]["type"] = "ImU16" +defs["structs"]["ImGuiIO"][76]["name"] = "WantCaptureMouseUnlessPopupClose" +defs["structs"]["ImGuiIO"][76]["type"] = "bool" defs["structs"]["ImGuiIO"][77] = {} -defs["structs"]["ImGuiIO"][77]["name"] = "MouseClickedLastCount[5]" -defs["structs"]["ImGuiIO"][77]["size"] = 5 -defs["structs"]["ImGuiIO"][77]["type"] = "ImU16" +defs["structs"]["ImGuiIO"][77]["name"] = "MousePosPrev" +defs["structs"]["ImGuiIO"][77]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][78] = {} -defs["structs"]["ImGuiIO"][78]["name"] = "MouseReleased[5]" +defs["structs"]["ImGuiIO"][78]["name"] = "MouseClickedPos[5]" defs["structs"]["ImGuiIO"][78]["size"] = 5 -defs["structs"]["ImGuiIO"][78]["type"] = "bool" +defs["structs"]["ImGuiIO"][78]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][79] = {} -defs["structs"]["ImGuiIO"][79]["name"] = "MouseDownOwned[5]" +defs["structs"]["ImGuiIO"][79]["name"] = "MouseClickedTime[5]" defs["structs"]["ImGuiIO"][79]["size"] = 5 -defs["structs"]["ImGuiIO"][79]["type"] = "bool" +defs["structs"]["ImGuiIO"][79]["type"] = "double" defs["structs"]["ImGuiIO"][80] = {} -defs["structs"]["ImGuiIO"][80]["name"] = "MouseDownOwnedUnlessPopupClose[5]" +defs["structs"]["ImGuiIO"][80]["name"] = "MouseClicked[5]" defs["structs"]["ImGuiIO"][80]["size"] = 5 defs["structs"]["ImGuiIO"][80]["type"] = "bool" defs["structs"]["ImGuiIO"][81] = {} -defs["structs"]["ImGuiIO"][81]["name"] = "MouseDownDuration[5]" +defs["structs"]["ImGuiIO"][81]["name"] = "MouseDoubleClicked[5]" defs["structs"]["ImGuiIO"][81]["size"] = 5 -defs["structs"]["ImGuiIO"][81]["type"] = "float" +defs["structs"]["ImGuiIO"][81]["type"] = "bool" defs["structs"]["ImGuiIO"][82] = {} -defs["structs"]["ImGuiIO"][82]["name"] = "MouseDownDurationPrev[5]" +defs["structs"]["ImGuiIO"][82]["name"] = "MouseClickedCount[5]" defs["structs"]["ImGuiIO"][82]["size"] = 5 -defs["structs"]["ImGuiIO"][82]["type"] = "float" +defs["structs"]["ImGuiIO"][82]["type"] = "ImU16" defs["structs"]["ImGuiIO"][83] = {} -defs["structs"]["ImGuiIO"][83]["name"] = "MouseDragMaxDistanceAbs[5]" +defs["structs"]["ImGuiIO"][83]["name"] = "MouseClickedLastCount[5]" defs["structs"]["ImGuiIO"][83]["size"] = 5 -defs["structs"]["ImGuiIO"][83]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][83]["type"] = "ImU16" defs["structs"]["ImGuiIO"][84] = {} -defs["structs"]["ImGuiIO"][84]["name"] = "MouseDragMaxDistanceSqr[5]" +defs["structs"]["ImGuiIO"][84]["name"] = "MouseReleased[5]" defs["structs"]["ImGuiIO"][84]["size"] = 5 -defs["structs"]["ImGuiIO"][84]["type"] = "float" +defs["structs"]["ImGuiIO"][84]["type"] = "bool" defs["structs"]["ImGuiIO"][85] = {} -defs["structs"]["ImGuiIO"][85]["name"] = "KeysDownDuration[512]" -defs["structs"]["ImGuiIO"][85]["size"] = 512 -defs["structs"]["ImGuiIO"][85]["type"] = "float" +defs["structs"]["ImGuiIO"][85]["name"] = "MouseDownOwned[5]" +defs["structs"]["ImGuiIO"][85]["size"] = 5 +defs["structs"]["ImGuiIO"][85]["type"] = "bool" defs["structs"]["ImGuiIO"][86] = {} -defs["structs"]["ImGuiIO"][86]["name"] = "KeysDownDurationPrev[512]" -defs["structs"]["ImGuiIO"][86]["size"] = 512 -defs["structs"]["ImGuiIO"][86]["type"] = "float" +defs["structs"]["ImGuiIO"][86]["name"] = "MouseDownOwnedUnlessPopupClose[5]" +defs["structs"]["ImGuiIO"][86]["size"] = 5 +defs["structs"]["ImGuiIO"][86]["type"] = "bool" defs["structs"]["ImGuiIO"][87] = {} -defs["structs"]["ImGuiIO"][87]["name"] = "NavInputsDownDuration[ImGuiNavInput_COUNT]" -defs["structs"]["ImGuiIO"][87]["size"] = 20 +defs["structs"]["ImGuiIO"][87]["name"] = "MouseDownDuration[5]" +defs["structs"]["ImGuiIO"][87]["size"] = 5 defs["structs"]["ImGuiIO"][87]["type"] = "float" defs["structs"]["ImGuiIO"][88] = {} -defs["structs"]["ImGuiIO"][88]["name"] = "NavInputsDownDurationPrev[ImGuiNavInput_COUNT]" -defs["structs"]["ImGuiIO"][88]["size"] = 20 +defs["structs"]["ImGuiIO"][88]["name"] = "MouseDownDurationPrev[5]" +defs["structs"]["ImGuiIO"][88]["size"] = 5 defs["structs"]["ImGuiIO"][88]["type"] = "float" defs["structs"]["ImGuiIO"][89] = {} -defs["structs"]["ImGuiIO"][89]["name"] = "PenPressure" -defs["structs"]["ImGuiIO"][89]["type"] = "float" +defs["structs"]["ImGuiIO"][89]["name"] = "MouseDragMaxDistanceAbs[5]" +defs["structs"]["ImGuiIO"][89]["size"] = 5 +defs["structs"]["ImGuiIO"][89]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][90] = {} -defs["structs"]["ImGuiIO"][90]["name"] = "AppFocusLost" -defs["structs"]["ImGuiIO"][90]["type"] = "bool" +defs["structs"]["ImGuiIO"][90]["name"] = "MouseDragMaxDistanceSqr[5]" +defs["structs"]["ImGuiIO"][90]["size"] = 5 +defs["structs"]["ImGuiIO"][90]["type"] = "float" defs["structs"]["ImGuiIO"][91] = {} -defs["structs"]["ImGuiIO"][91]["name"] = "InputQueueSurrogate" -defs["structs"]["ImGuiIO"][91]["type"] = "ImWchar16" +defs["structs"]["ImGuiIO"][91]["name"] = "PenPressure" +defs["structs"]["ImGuiIO"][91]["type"] = "float" defs["structs"]["ImGuiIO"][92] = {} -defs["structs"]["ImGuiIO"][92]["name"] = "InputQueueCharacters" -defs["structs"]["ImGuiIO"][92]["template_type"] = "ImWchar" -defs["structs"]["ImGuiIO"][92]["type"] = "ImVector_ImWchar" +defs["structs"]["ImGuiIO"][92]["name"] = "AppFocusLost" +defs["structs"]["ImGuiIO"][92]["type"] = "bool" +defs["structs"]["ImGuiIO"][93] = {} +defs["structs"]["ImGuiIO"][93]["name"] = "AppAcceptingEvents" +defs["structs"]["ImGuiIO"][93]["type"] = "bool" +defs["structs"]["ImGuiIO"][94] = {} +defs["structs"]["ImGuiIO"][94]["name"] = "BackendUsingLegacyKeyArrays" +defs["structs"]["ImGuiIO"][94]["type"] = "ImS8" +defs["structs"]["ImGuiIO"][95] = {} +defs["structs"]["ImGuiIO"][95]["name"] = "BackendUsingLegacyNavInputArray" +defs["structs"]["ImGuiIO"][95]["type"] = "bool" +defs["structs"]["ImGuiIO"][96] = {} +defs["structs"]["ImGuiIO"][96]["name"] = "InputQueueSurrogate" +defs["structs"]["ImGuiIO"][96]["type"] = "ImWchar16" +defs["structs"]["ImGuiIO"][97] = {} +defs["structs"]["ImGuiIO"][97]["name"] = "InputQueueCharacters" +defs["structs"]["ImGuiIO"][97]["template_type"] = "ImWchar" +defs["structs"]["ImGuiIO"][97]["type"] = "ImVector_ImWchar" +defs["structs"]["ImGuiInputEvent"] = {} +defs["structs"]["ImGuiInputEvent"][1] = {} +defs["structs"]["ImGuiInputEvent"][1]["name"] = "Type" +defs["structs"]["ImGuiInputEvent"][1]["type"] = "ImGuiInputEventType" +defs["structs"]["ImGuiInputEvent"][2] = {} +defs["structs"]["ImGuiInputEvent"][2]["name"] = "Source" +defs["structs"]["ImGuiInputEvent"][2]["type"] = "ImGuiInputSource" +defs["structs"]["ImGuiInputEvent"][3] = {} +defs["structs"]["ImGuiInputEvent"][3]["name"] = "" +defs["structs"]["ImGuiInputEvent"][3]["type"] = "union { ImGuiInputEventMousePos MousePos; ImGuiInputEventMouseWheel MouseWheel; ImGuiInputEventMouseButton MouseButton; ImGuiInputEventMouseViewport MouseViewport; ImGuiInputEventKey Key; ImGuiInputEventText Text; ImGuiInputEventAppFocused AppFocused;}" +defs["structs"]["ImGuiInputEvent"][4] = {} +defs["structs"]["ImGuiInputEvent"][4]["name"] = "AddedByTestEngine" +defs["structs"]["ImGuiInputEvent"][4]["type"] = "bool" +defs["structs"]["ImGuiInputEventAppFocused"] = {} +defs["structs"]["ImGuiInputEventAppFocused"][1] = {} +defs["structs"]["ImGuiInputEventAppFocused"][1]["name"] = "Focused" +defs["structs"]["ImGuiInputEventAppFocused"][1]["type"] = "bool" +defs["structs"]["ImGuiInputEventKey"] = {} +defs["structs"]["ImGuiInputEventKey"][1] = {} +defs["structs"]["ImGuiInputEventKey"][1]["name"] = "Key" +defs["structs"]["ImGuiInputEventKey"][1]["type"] = "ImGuiKey" +defs["structs"]["ImGuiInputEventKey"][2] = {} +defs["structs"]["ImGuiInputEventKey"][2]["name"] = "Down" +defs["structs"]["ImGuiInputEventKey"][2]["type"] = "bool" +defs["structs"]["ImGuiInputEventKey"][3] = {} +defs["structs"]["ImGuiInputEventKey"][3]["name"] = "AnalogValue" +defs["structs"]["ImGuiInputEventKey"][3]["type"] = "float" +defs["structs"]["ImGuiInputEventMouseButton"] = {} +defs["structs"]["ImGuiInputEventMouseButton"][1] = {} +defs["structs"]["ImGuiInputEventMouseButton"][1]["name"] = "Button" +defs["structs"]["ImGuiInputEventMouseButton"][1]["type"] = "int" +defs["structs"]["ImGuiInputEventMouseButton"][2] = {} +defs["structs"]["ImGuiInputEventMouseButton"][2]["name"] = "Down" +defs["structs"]["ImGuiInputEventMouseButton"][2]["type"] = "bool" +defs["structs"]["ImGuiInputEventMousePos"] = {} +defs["structs"]["ImGuiInputEventMousePos"][1] = {} +defs["structs"]["ImGuiInputEventMousePos"][1]["name"] = "PosX" +defs["structs"]["ImGuiInputEventMousePos"][1]["type"] = "float" +defs["structs"]["ImGuiInputEventMousePos"][2] = {} +defs["structs"]["ImGuiInputEventMousePos"][2]["name"] = "PosY" +defs["structs"]["ImGuiInputEventMousePos"][2]["type"] = "float" +defs["structs"]["ImGuiInputEventMouseViewport"] = {} +defs["structs"]["ImGuiInputEventMouseViewport"][1] = {} +defs["structs"]["ImGuiInputEventMouseViewport"][1]["name"] = "HoveredViewportID" +defs["structs"]["ImGuiInputEventMouseViewport"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiInputEventMouseWheel"] = {} +defs["structs"]["ImGuiInputEventMouseWheel"][1] = {} +defs["structs"]["ImGuiInputEventMouseWheel"][1]["name"] = "WheelX" +defs["structs"]["ImGuiInputEventMouseWheel"][1]["type"] = "float" +defs["structs"]["ImGuiInputEventMouseWheel"][2] = {} +defs["structs"]["ImGuiInputEventMouseWheel"][2]["name"] = "WheelY" +defs["structs"]["ImGuiInputEventMouseWheel"][2]["type"] = "float" +defs["structs"]["ImGuiInputEventText"] = {} +defs["structs"]["ImGuiInputEventText"][1] = {} +defs["structs"]["ImGuiInputEventText"][1]["name"] = "Char" +defs["structs"]["ImGuiInputEventText"][1]["type"] = "unsigned int" defs["structs"]["ImGuiInputTextCallbackData"] = {} defs["structs"]["ImGuiInputTextCallbackData"][1] = {} defs["structs"]["ImGuiInputTextCallbackData"][1]["name"] = "EventFlag" @@ -4808,6 +5647,61 @@ defs["structs"]["ImGuiInputTextState"][14]["type"] = "bool" defs["structs"]["ImGuiInputTextState"][15] = {} defs["structs"]["ImGuiInputTextState"][15]["name"] = "Flags" defs["structs"]["ImGuiInputTextState"][15]["type"] = "ImGuiInputTextFlags" +defs["structs"]["ImGuiKeyData"] = {} +defs["structs"]["ImGuiKeyData"][1] = {} +defs["structs"]["ImGuiKeyData"][1]["name"] = "Down" +defs["structs"]["ImGuiKeyData"][1]["type"] = "bool" +defs["structs"]["ImGuiKeyData"][2] = {} +defs["structs"]["ImGuiKeyData"][2]["name"] = "DownDuration" +defs["structs"]["ImGuiKeyData"][2]["type"] = "float" +defs["structs"]["ImGuiKeyData"][3] = {} +defs["structs"]["ImGuiKeyData"][3]["name"] = "DownDurationPrev" +defs["structs"]["ImGuiKeyData"][3]["type"] = "float" +defs["structs"]["ImGuiKeyData"][4] = {} +defs["structs"]["ImGuiKeyData"][4]["name"] = "AnalogValue" +defs["structs"]["ImGuiKeyData"][4]["type"] = "float" +defs["structs"]["ImGuiKeyOwnerData"] = {} +defs["structs"]["ImGuiKeyOwnerData"][1] = {} +defs["structs"]["ImGuiKeyOwnerData"][1]["name"] = "OwnerCurr" +defs["structs"]["ImGuiKeyOwnerData"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiKeyOwnerData"][2] = {} +defs["structs"]["ImGuiKeyOwnerData"][2]["name"] = "OwnerNext" +defs["structs"]["ImGuiKeyOwnerData"][2]["type"] = "ImGuiID" +defs["structs"]["ImGuiKeyOwnerData"][3] = {} +defs["structs"]["ImGuiKeyOwnerData"][3]["name"] = "LockThisFrame" +defs["structs"]["ImGuiKeyOwnerData"][3]["type"] = "bool" +defs["structs"]["ImGuiKeyOwnerData"][4] = {} +defs["structs"]["ImGuiKeyOwnerData"][4]["name"] = "LockUntilRelease" +defs["structs"]["ImGuiKeyOwnerData"][4]["type"] = "bool" +defs["structs"]["ImGuiKeyRoutingData"] = {} +defs["structs"]["ImGuiKeyRoutingData"][1] = {} +defs["structs"]["ImGuiKeyRoutingData"][1]["name"] = "NextEntryIndex" +defs["structs"]["ImGuiKeyRoutingData"][1]["type"] = "ImGuiKeyRoutingIndex" +defs["structs"]["ImGuiKeyRoutingData"][2] = {} +defs["structs"]["ImGuiKeyRoutingData"][2]["name"] = "Mods" +defs["structs"]["ImGuiKeyRoutingData"][2]["type"] = "ImU16" +defs["structs"]["ImGuiKeyRoutingData"][3] = {} +defs["structs"]["ImGuiKeyRoutingData"][3]["name"] = "RoutingNextScore" +defs["structs"]["ImGuiKeyRoutingData"][3]["type"] = "ImU8" +defs["structs"]["ImGuiKeyRoutingData"][4] = {} +defs["structs"]["ImGuiKeyRoutingData"][4]["name"] = "RoutingCurr" +defs["structs"]["ImGuiKeyRoutingData"][4]["type"] = "ImGuiID" +defs["structs"]["ImGuiKeyRoutingData"][5] = {} +defs["structs"]["ImGuiKeyRoutingData"][5]["name"] = "RoutingNext" +defs["structs"]["ImGuiKeyRoutingData"][5]["type"] = "ImGuiID" +defs["structs"]["ImGuiKeyRoutingTable"] = {} +defs["structs"]["ImGuiKeyRoutingTable"][1] = {} +defs["structs"]["ImGuiKeyRoutingTable"][1]["name"] = "Index[ImGuiKey_NamedKey_COUNT]" +defs["structs"]["ImGuiKeyRoutingTable"][1]["size"] = 140 +defs["structs"]["ImGuiKeyRoutingTable"][1]["type"] = "ImGuiKeyRoutingIndex" +defs["structs"]["ImGuiKeyRoutingTable"][2] = {} +defs["structs"]["ImGuiKeyRoutingTable"][2]["name"] = "Entries" +defs["structs"]["ImGuiKeyRoutingTable"][2]["template_type"] = "ImGuiKeyRoutingData" +defs["structs"]["ImGuiKeyRoutingTable"][2]["type"] = "ImVector_ImGuiKeyRoutingData" +defs["structs"]["ImGuiKeyRoutingTable"][3] = {} +defs["structs"]["ImGuiKeyRoutingTable"][3]["name"] = "EntriesNext" +defs["structs"]["ImGuiKeyRoutingTable"][3]["template_type"] = "ImGuiKeyRoutingData" +defs["structs"]["ImGuiKeyRoutingTable"][3]["type"] = "ImVector_ImGuiKeyRoutingData" defs["structs"]["ImGuiLastItemData"] = {} defs["structs"]["ImGuiLastItemData"][1] = {} defs["structs"]["ImGuiLastItemData"][1]["name"] = "ID" @@ -4879,6 +5773,13 @@ defs["structs"]["ImGuiListClipperRange"][4]["type"] = "ImS8" defs["structs"]["ImGuiListClipperRange"][5] = {} defs["structs"]["ImGuiListClipperRange"][5]["name"] = "PosToIndexOffsetMax" defs["structs"]["ImGuiListClipperRange"][5]["type"] = "ImS8" +defs["structs"]["ImGuiLocEntry"] = {} +defs["structs"]["ImGuiLocEntry"][1] = {} +defs["structs"]["ImGuiLocEntry"][1]["name"] = "Key" +defs["structs"]["ImGuiLocEntry"][1]["type"] = "ImGuiLocKey" +defs["structs"]["ImGuiLocEntry"][2] = {} +defs["structs"]["ImGuiLocEntry"][2]["name"] = "Text" +defs["structs"]["ImGuiLocEntry"][2]["type"] = "const char*" defs["structs"]["ImGuiMenuColumns"] = {} defs["structs"]["ImGuiMenuColumns"][1] = {} defs["structs"]["ImGuiMenuColumns"][1]["name"] = "TotalWidth" @@ -4907,32 +5808,35 @@ defs["structs"]["ImGuiMenuColumns"][8]["size"] = 4 defs["structs"]["ImGuiMenuColumns"][8]["type"] = "ImU16" defs["structs"]["ImGuiMetricsConfig"] = {} defs["structs"]["ImGuiMetricsConfig"][1] = {} -defs["structs"]["ImGuiMetricsConfig"][1]["name"] = "ShowStackTool" +defs["structs"]["ImGuiMetricsConfig"][1]["name"] = "ShowDebugLog" defs["structs"]["ImGuiMetricsConfig"][1]["type"] = "bool" defs["structs"]["ImGuiMetricsConfig"][2] = {} -defs["structs"]["ImGuiMetricsConfig"][2]["name"] = "ShowWindowsRects" +defs["structs"]["ImGuiMetricsConfig"][2]["name"] = "ShowStackTool" defs["structs"]["ImGuiMetricsConfig"][2]["type"] = "bool" defs["structs"]["ImGuiMetricsConfig"][3] = {} -defs["structs"]["ImGuiMetricsConfig"][3]["name"] = "ShowWindowsBeginOrder" +defs["structs"]["ImGuiMetricsConfig"][3]["name"] = "ShowWindowsRects" defs["structs"]["ImGuiMetricsConfig"][3]["type"] = "bool" defs["structs"]["ImGuiMetricsConfig"][4] = {} -defs["structs"]["ImGuiMetricsConfig"][4]["name"] = "ShowTablesRects" +defs["structs"]["ImGuiMetricsConfig"][4]["name"] = "ShowWindowsBeginOrder" defs["structs"]["ImGuiMetricsConfig"][4]["type"] = "bool" defs["structs"]["ImGuiMetricsConfig"][5] = {} -defs["structs"]["ImGuiMetricsConfig"][5]["name"] = "ShowDrawCmdMesh" +defs["structs"]["ImGuiMetricsConfig"][5]["name"] = "ShowTablesRects" defs["structs"]["ImGuiMetricsConfig"][5]["type"] = "bool" defs["structs"]["ImGuiMetricsConfig"][6] = {} -defs["structs"]["ImGuiMetricsConfig"][6]["name"] = "ShowDrawCmdBoundingBoxes" +defs["structs"]["ImGuiMetricsConfig"][6]["name"] = "ShowDrawCmdMesh" defs["structs"]["ImGuiMetricsConfig"][6]["type"] = "bool" defs["structs"]["ImGuiMetricsConfig"][7] = {} -defs["structs"]["ImGuiMetricsConfig"][7]["name"] = "ShowDockingNodes" +defs["structs"]["ImGuiMetricsConfig"][7]["name"] = "ShowDrawCmdBoundingBoxes" defs["structs"]["ImGuiMetricsConfig"][7]["type"] = "bool" defs["structs"]["ImGuiMetricsConfig"][8] = {} -defs["structs"]["ImGuiMetricsConfig"][8]["name"] = "ShowWindowsRectsType" -defs["structs"]["ImGuiMetricsConfig"][8]["type"] = "int" +defs["structs"]["ImGuiMetricsConfig"][8]["name"] = "ShowDockingNodes" +defs["structs"]["ImGuiMetricsConfig"][8]["type"] = "bool" defs["structs"]["ImGuiMetricsConfig"][9] = {} -defs["structs"]["ImGuiMetricsConfig"][9]["name"] = "ShowTablesRectsType" +defs["structs"]["ImGuiMetricsConfig"][9]["name"] = "ShowWindowsRectsType" defs["structs"]["ImGuiMetricsConfig"][9]["type"] = "int" +defs["structs"]["ImGuiMetricsConfig"][10] = {} +defs["structs"]["ImGuiMetricsConfig"][10]["name"] = "ShowTablesRectsType" +defs["structs"]["ImGuiMetricsConfig"][10]["type"] = "int" defs["structs"]["ImGuiNavItemData"] = {} defs["structs"]["ImGuiNavItemData"][1] = {} defs["structs"]["ImGuiNavItemData"][1]["name"] = "Window" @@ -5184,34 +6088,41 @@ defs["structs"]["ImGuiPlatformIO"][17] = {} defs["structs"]["ImGuiPlatformIO"][17]["name"] = "Platform_OnChangedViewport" defs["structs"]["ImGuiPlatformIO"][17]["type"] = "void(*)(ImGuiViewport* vp)" defs["structs"]["ImGuiPlatformIO"][18] = {} -defs["structs"]["ImGuiPlatformIO"][18]["name"] = "Platform_SetImeInputPos" -defs["structs"]["ImGuiPlatformIO"][18]["type"] = "void(*)(ImGuiViewport* vp,ImVec2 pos)" +defs["structs"]["ImGuiPlatformIO"][18]["name"] = "Platform_CreateVkSurface" +defs["structs"]["ImGuiPlatformIO"][18]["type"] = "int(*)(ImGuiViewport* vp,ImU64 vk_inst,const void* vk_allocators,ImU64* out_vk_surface)" defs["structs"]["ImGuiPlatformIO"][19] = {} -defs["structs"]["ImGuiPlatformIO"][19]["name"] = "Platform_CreateVkSurface" -defs["structs"]["ImGuiPlatformIO"][19]["type"] = "int(*)(ImGuiViewport* vp,ImU64 vk_inst,const void* vk_allocators,ImU64* out_vk_surface)" +defs["structs"]["ImGuiPlatformIO"][19]["name"] = "Renderer_CreateWindow" +defs["structs"]["ImGuiPlatformIO"][19]["type"] = "void(*)(ImGuiViewport* vp)" defs["structs"]["ImGuiPlatformIO"][20] = {} -defs["structs"]["ImGuiPlatformIO"][20]["name"] = "Renderer_CreateWindow" +defs["structs"]["ImGuiPlatformIO"][20]["name"] = "Renderer_DestroyWindow" defs["structs"]["ImGuiPlatformIO"][20]["type"] = "void(*)(ImGuiViewport* vp)" defs["structs"]["ImGuiPlatformIO"][21] = {} -defs["structs"]["ImGuiPlatformIO"][21]["name"] = "Renderer_DestroyWindow" -defs["structs"]["ImGuiPlatformIO"][21]["type"] = "void(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][21]["name"] = "Renderer_SetWindowSize" +defs["structs"]["ImGuiPlatformIO"][21]["type"] = "void(*)(ImGuiViewport* vp,ImVec2 size)" defs["structs"]["ImGuiPlatformIO"][22] = {} -defs["structs"]["ImGuiPlatformIO"][22]["name"] = "Renderer_SetWindowSize" -defs["structs"]["ImGuiPlatformIO"][22]["type"] = "void(*)(ImGuiViewport* vp,ImVec2 size)" +defs["structs"]["ImGuiPlatformIO"][22]["name"] = "Renderer_RenderWindow" +defs["structs"]["ImGuiPlatformIO"][22]["type"] = "void(*)(ImGuiViewport* vp,void* render_arg)" defs["structs"]["ImGuiPlatformIO"][23] = {} -defs["structs"]["ImGuiPlatformIO"][23]["name"] = "Renderer_RenderWindow" +defs["structs"]["ImGuiPlatformIO"][23]["name"] = "Renderer_SwapBuffers" defs["structs"]["ImGuiPlatformIO"][23]["type"] = "void(*)(ImGuiViewport* vp,void* render_arg)" defs["structs"]["ImGuiPlatformIO"][24] = {} -defs["structs"]["ImGuiPlatformIO"][24]["name"] = "Renderer_SwapBuffers" -defs["structs"]["ImGuiPlatformIO"][24]["type"] = "void(*)(ImGuiViewport* vp,void* render_arg)" +defs["structs"]["ImGuiPlatformIO"][24]["name"] = "Monitors" +defs["structs"]["ImGuiPlatformIO"][24]["template_type"] = "ImGuiPlatformMonitor" +defs["structs"]["ImGuiPlatformIO"][24]["type"] = "ImVector_ImGuiPlatformMonitor" defs["structs"]["ImGuiPlatformIO"][25] = {} -defs["structs"]["ImGuiPlatformIO"][25]["name"] = "Monitors" -defs["structs"]["ImGuiPlatformIO"][25]["template_type"] = "ImGuiPlatformMonitor" -defs["structs"]["ImGuiPlatformIO"][25]["type"] = "ImVector_ImGuiPlatformMonitor" -defs["structs"]["ImGuiPlatformIO"][26] = {} -defs["structs"]["ImGuiPlatformIO"][26]["name"] = "Viewports" -defs["structs"]["ImGuiPlatformIO"][26]["template_type"] = "ImGuiViewport*" -defs["structs"]["ImGuiPlatformIO"][26]["type"] = "ImVector_ImGuiViewportPtr" +defs["structs"]["ImGuiPlatformIO"][25]["name"] = "Viewports" +defs["structs"]["ImGuiPlatformIO"][25]["template_type"] = "ImGuiViewport*" +defs["structs"]["ImGuiPlatformIO"][25]["type"] = "ImVector_ImGuiViewportPtr" +defs["structs"]["ImGuiPlatformImeData"] = {} +defs["structs"]["ImGuiPlatformImeData"][1] = {} +defs["structs"]["ImGuiPlatformImeData"][1]["name"] = "WantVisible" +defs["structs"]["ImGuiPlatformImeData"][1]["type"] = "bool" +defs["structs"]["ImGuiPlatformImeData"][2] = {} +defs["structs"]["ImGuiPlatformImeData"][2]["name"] = "InputPos" +defs["structs"]["ImGuiPlatformImeData"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiPlatformImeData"][3] = {} +defs["structs"]["ImGuiPlatformImeData"][3]["name"] = "InputLineHeight" +defs["structs"]["ImGuiPlatformImeData"][3]["type"] = "float" defs["structs"]["ImGuiPlatformMonitor"] = {} defs["structs"]["ImGuiPlatformMonitor"][1] = {} defs["structs"]["ImGuiPlatformMonitor"][1]["name"] = "MainPos" @@ -5236,20 +6147,23 @@ defs["structs"]["ImGuiPopupData"][2] = {} defs["structs"]["ImGuiPopupData"][2]["name"] = "Window" defs["structs"]["ImGuiPopupData"][2]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiPopupData"][3] = {} -defs["structs"]["ImGuiPopupData"][3]["name"] = "SourceWindow" +defs["structs"]["ImGuiPopupData"][3]["name"] = "BackupNavWindow" defs["structs"]["ImGuiPopupData"][3]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiPopupData"][4] = {} -defs["structs"]["ImGuiPopupData"][4]["name"] = "OpenFrameCount" +defs["structs"]["ImGuiPopupData"][4]["name"] = "ParentNavLayer" defs["structs"]["ImGuiPopupData"][4]["type"] = "int" defs["structs"]["ImGuiPopupData"][5] = {} -defs["structs"]["ImGuiPopupData"][5]["name"] = "OpenParentId" -defs["structs"]["ImGuiPopupData"][5]["type"] = "ImGuiID" +defs["structs"]["ImGuiPopupData"][5]["name"] = "OpenFrameCount" +defs["structs"]["ImGuiPopupData"][5]["type"] = "int" defs["structs"]["ImGuiPopupData"][6] = {} -defs["structs"]["ImGuiPopupData"][6]["name"] = "OpenPopupPos" -defs["structs"]["ImGuiPopupData"][6]["type"] = "ImVec2" +defs["structs"]["ImGuiPopupData"][6]["name"] = "OpenParentId" +defs["structs"]["ImGuiPopupData"][6]["type"] = "ImGuiID" defs["structs"]["ImGuiPopupData"][7] = {} -defs["structs"]["ImGuiPopupData"][7]["name"] = "OpenMousePos" +defs["structs"]["ImGuiPopupData"][7]["name"] = "OpenPopupPos" defs["structs"]["ImGuiPopupData"][7]["type"] = "ImVec2" +defs["structs"]["ImGuiPopupData"][8] = {} +defs["structs"]["ImGuiPopupData"][8]["name"] = "OpenMousePos" +defs["structs"]["ImGuiPopupData"][8]["type"] = "ImVec2" defs["structs"]["ImGuiPtrOrIndex"] = {} defs["structs"]["ImGuiPtrOrIndex"][1] = {} defs["structs"]["ImGuiPtrOrIndex"][1]["name"] = "Ptr" @@ -5292,6 +6206,9 @@ defs["structs"]["ImGuiShrinkWidthItem"][1]["type"] = "int" defs["structs"]["ImGuiShrinkWidthItem"][2] = {} defs["structs"]["ImGuiShrinkWidthItem"][2]["name"] = "Width" defs["structs"]["ImGuiShrinkWidthItem"][2]["type"] = "float" +defs["structs"]["ImGuiShrinkWidthItem"][3] = {} +defs["structs"]["ImGuiShrinkWidthItem"][3]["name"] = "InitialWidth" +defs["structs"]["ImGuiShrinkWidthItem"][3]["type"] = "float" defs["structs"]["ImGuiSizeCallbackData"] = {} defs["structs"]["ImGuiSizeCallbackData"][1] = {} defs["structs"]["ImGuiSizeCallbackData"][1]["name"] = "UserData" @@ -5316,9 +6233,13 @@ defs["structs"]["ImGuiStackLevelInfo"][3] = {} defs["structs"]["ImGuiStackLevelInfo"][3]["name"] = "QuerySuccess" defs["structs"]["ImGuiStackLevelInfo"][3]["type"] = "bool" defs["structs"]["ImGuiStackLevelInfo"][4] = {} -defs["structs"]["ImGuiStackLevelInfo"][4]["name"] = "Desc[58]" -defs["structs"]["ImGuiStackLevelInfo"][4]["size"] = 58 -defs["structs"]["ImGuiStackLevelInfo"][4]["type"] = "char" +defs["structs"]["ImGuiStackLevelInfo"][4]["bitfield"] = "8" +defs["structs"]["ImGuiStackLevelInfo"][4]["name"] = "DataType" +defs["structs"]["ImGuiStackLevelInfo"][4]["type"] = "ImGuiDataType" +defs["structs"]["ImGuiStackLevelInfo"][5] = {} +defs["structs"]["ImGuiStackLevelInfo"][5]["name"] = "Desc[57]" +defs["structs"]["ImGuiStackLevelInfo"][5]["size"] = 57 +defs["structs"]["ImGuiStackLevelInfo"][5]["type"] = "char" defs["structs"]["ImGuiStackSizes"] = {} defs["structs"]["ImGuiStackSizes"][1] = {} defs["structs"]["ImGuiStackSizes"][1]["name"] = "SizeOfIDStack" @@ -5361,6 +6282,12 @@ defs["structs"]["ImGuiStackTool"][4] = {} defs["structs"]["ImGuiStackTool"][4]["name"] = "Results" defs["structs"]["ImGuiStackTool"][4]["template_type"] = "ImGuiStackLevelInfo" defs["structs"]["ImGuiStackTool"][4]["type"] = "ImVector_ImGuiStackLevelInfo" +defs["structs"]["ImGuiStackTool"][5] = {} +defs["structs"]["ImGuiStackTool"][5]["name"] = "CopyToClipboardOnCtrlC" +defs["structs"]["ImGuiStackTool"][5]["type"] = "bool" +defs["structs"]["ImGuiStackTool"][6] = {} +defs["structs"]["ImGuiStackTool"][6]["name"] = "CopyToClipboardLastTime" +defs["structs"]["ImGuiStackTool"][6]["type"] = "float" defs["structs"]["ImGuiStorage"] = {} defs["structs"]["ImGuiStorage"][1] = {} defs["structs"]["ImGuiStorage"][1]["name"] = "Data" @@ -5626,17 +6553,20 @@ defs["structs"]["ImGuiTabItem"][8] = {} defs["structs"]["ImGuiTabItem"][8]["name"] = "ContentWidth" defs["structs"]["ImGuiTabItem"][8]["type"] = "float" defs["structs"]["ImGuiTabItem"][9] = {} -defs["structs"]["ImGuiTabItem"][9]["name"] = "NameOffset" -defs["structs"]["ImGuiTabItem"][9]["type"] = "ImS32" +defs["structs"]["ImGuiTabItem"][9]["name"] = "RequestedWidth" +defs["structs"]["ImGuiTabItem"][9]["type"] = "float" defs["structs"]["ImGuiTabItem"][10] = {} -defs["structs"]["ImGuiTabItem"][10]["name"] = "BeginOrder" -defs["structs"]["ImGuiTabItem"][10]["type"] = "ImS16" +defs["structs"]["ImGuiTabItem"][10]["name"] = "NameOffset" +defs["structs"]["ImGuiTabItem"][10]["type"] = "ImS32" defs["structs"]["ImGuiTabItem"][11] = {} -defs["structs"]["ImGuiTabItem"][11]["name"] = "IndexDuringLayout" +defs["structs"]["ImGuiTabItem"][11]["name"] = "BeginOrder" defs["structs"]["ImGuiTabItem"][11]["type"] = "ImS16" defs["structs"]["ImGuiTabItem"][12] = {} -defs["structs"]["ImGuiTabItem"][12]["name"] = "WantClose" -defs["structs"]["ImGuiTabItem"][12]["type"] = "bool" +defs["structs"]["ImGuiTabItem"][12]["name"] = "IndexDuringLayout" +defs["structs"]["ImGuiTabItem"][12]["type"] = "ImS16" +defs["structs"]["ImGuiTabItem"][13] = {} +defs["structs"]["ImGuiTabItem"][13]["name"] = "WantClose" +defs["structs"]["ImGuiTabItem"][13]["type"] = "bool" defs["structs"]["ImGuiTable"] = {} defs["structs"]["ImGuiTable"][1] = {} defs["structs"]["ImGuiTable"][1]["name"] = "ID" @@ -5762,198 +6692,202 @@ defs["structs"]["ImGuiTable"][39] = {} defs["structs"]["ImGuiTable"][39]["name"] = "CellSpacingX2" defs["structs"]["ImGuiTable"][39]["type"] = "float" defs["structs"]["ImGuiTable"][40] = {} -defs["structs"]["ImGuiTable"][40]["name"] = "LastOuterHeight" +defs["structs"]["ImGuiTable"][40]["name"] = "InnerWidth" defs["structs"]["ImGuiTable"][40]["type"] = "float" defs["structs"]["ImGuiTable"][41] = {} -defs["structs"]["ImGuiTable"][41]["name"] = "LastFirstRowHeight" +defs["structs"]["ImGuiTable"][41]["name"] = "ColumnsGivenWidth" defs["structs"]["ImGuiTable"][41]["type"] = "float" defs["structs"]["ImGuiTable"][42] = {} -defs["structs"]["ImGuiTable"][42]["name"] = "InnerWidth" +defs["structs"]["ImGuiTable"][42]["name"] = "ColumnsAutoFitWidth" defs["structs"]["ImGuiTable"][42]["type"] = "float" defs["structs"]["ImGuiTable"][43] = {} -defs["structs"]["ImGuiTable"][43]["name"] = "ColumnsGivenWidth" +defs["structs"]["ImGuiTable"][43]["name"] = "ColumnsStretchSumWeights" defs["structs"]["ImGuiTable"][43]["type"] = "float" defs["structs"]["ImGuiTable"][44] = {} -defs["structs"]["ImGuiTable"][44]["name"] = "ColumnsAutoFitWidth" +defs["structs"]["ImGuiTable"][44]["name"] = "ResizedColumnNextWidth" defs["structs"]["ImGuiTable"][44]["type"] = "float" defs["structs"]["ImGuiTable"][45] = {} -defs["structs"]["ImGuiTable"][45]["name"] = "ResizedColumnNextWidth" +defs["structs"]["ImGuiTable"][45]["name"] = "ResizeLockMinContentsX2" defs["structs"]["ImGuiTable"][45]["type"] = "float" defs["structs"]["ImGuiTable"][46] = {} -defs["structs"]["ImGuiTable"][46]["name"] = "ResizeLockMinContentsX2" +defs["structs"]["ImGuiTable"][46]["name"] = "RefScale" defs["structs"]["ImGuiTable"][46]["type"] = "float" defs["structs"]["ImGuiTable"][47] = {} -defs["structs"]["ImGuiTable"][47]["name"] = "RefScale" -defs["structs"]["ImGuiTable"][47]["type"] = "float" +defs["structs"]["ImGuiTable"][47]["name"] = "OuterRect" +defs["structs"]["ImGuiTable"][47]["type"] = "ImRect" defs["structs"]["ImGuiTable"][48] = {} -defs["structs"]["ImGuiTable"][48]["name"] = "OuterRect" +defs["structs"]["ImGuiTable"][48]["name"] = "InnerRect" defs["structs"]["ImGuiTable"][48]["type"] = "ImRect" defs["structs"]["ImGuiTable"][49] = {} -defs["structs"]["ImGuiTable"][49]["name"] = "InnerRect" +defs["structs"]["ImGuiTable"][49]["name"] = "WorkRect" defs["structs"]["ImGuiTable"][49]["type"] = "ImRect" defs["structs"]["ImGuiTable"][50] = {} -defs["structs"]["ImGuiTable"][50]["name"] = "WorkRect" +defs["structs"]["ImGuiTable"][50]["name"] = "InnerClipRect" defs["structs"]["ImGuiTable"][50]["type"] = "ImRect" defs["structs"]["ImGuiTable"][51] = {} -defs["structs"]["ImGuiTable"][51]["name"] = "InnerClipRect" +defs["structs"]["ImGuiTable"][51]["name"] = "BgClipRect" defs["structs"]["ImGuiTable"][51]["type"] = "ImRect" defs["structs"]["ImGuiTable"][52] = {} -defs["structs"]["ImGuiTable"][52]["name"] = "BgClipRect" +defs["structs"]["ImGuiTable"][52]["name"] = "Bg0ClipRectForDrawCmd" defs["structs"]["ImGuiTable"][52]["type"] = "ImRect" defs["structs"]["ImGuiTable"][53] = {} -defs["structs"]["ImGuiTable"][53]["name"] = "Bg0ClipRectForDrawCmd" +defs["structs"]["ImGuiTable"][53]["name"] = "Bg2ClipRectForDrawCmd" defs["structs"]["ImGuiTable"][53]["type"] = "ImRect" defs["structs"]["ImGuiTable"][54] = {} -defs["structs"]["ImGuiTable"][54]["name"] = "Bg2ClipRectForDrawCmd" +defs["structs"]["ImGuiTable"][54]["name"] = "HostClipRect" defs["structs"]["ImGuiTable"][54]["type"] = "ImRect" defs["structs"]["ImGuiTable"][55] = {} -defs["structs"]["ImGuiTable"][55]["name"] = "HostClipRect" +defs["structs"]["ImGuiTable"][55]["name"] = "HostBackupInnerClipRect" defs["structs"]["ImGuiTable"][55]["type"] = "ImRect" defs["structs"]["ImGuiTable"][56] = {} -defs["structs"]["ImGuiTable"][56]["name"] = "HostBackupInnerClipRect" -defs["structs"]["ImGuiTable"][56]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][56]["name"] = "OuterWindow" +defs["structs"]["ImGuiTable"][56]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiTable"][57] = {} -defs["structs"]["ImGuiTable"][57]["name"] = "OuterWindow" +defs["structs"]["ImGuiTable"][57]["name"] = "InnerWindow" defs["structs"]["ImGuiTable"][57]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiTable"][58] = {} -defs["structs"]["ImGuiTable"][58]["name"] = "InnerWindow" -defs["structs"]["ImGuiTable"][58]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiTable"][58]["name"] = "ColumnsNames" +defs["structs"]["ImGuiTable"][58]["type"] = "ImGuiTextBuffer" defs["structs"]["ImGuiTable"][59] = {} -defs["structs"]["ImGuiTable"][59]["name"] = "ColumnsNames" -defs["structs"]["ImGuiTable"][59]["type"] = "ImGuiTextBuffer" +defs["structs"]["ImGuiTable"][59]["name"] = "DrawSplitter" +defs["structs"]["ImGuiTable"][59]["type"] = "ImDrawListSplitter*" defs["structs"]["ImGuiTable"][60] = {} -defs["structs"]["ImGuiTable"][60]["name"] = "DrawSplitter" -defs["structs"]["ImGuiTable"][60]["type"] = "ImDrawListSplitter*" +defs["structs"]["ImGuiTable"][60]["name"] = "InstanceDataFirst" +defs["structs"]["ImGuiTable"][60]["type"] = "ImGuiTableInstanceData" defs["structs"]["ImGuiTable"][61] = {} -defs["structs"]["ImGuiTable"][61]["name"] = "SortSpecsSingle" -defs["structs"]["ImGuiTable"][61]["type"] = "ImGuiTableColumnSortSpecs" +defs["structs"]["ImGuiTable"][61]["name"] = "InstanceDataExtra" +defs["structs"]["ImGuiTable"][61]["template_type"] = "ImGuiTableInstanceData" +defs["structs"]["ImGuiTable"][61]["type"] = "ImVector_ImGuiTableInstanceData" defs["structs"]["ImGuiTable"][62] = {} -defs["structs"]["ImGuiTable"][62]["name"] = "SortSpecsMulti" -defs["structs"]["ImGuiTable"][62]["template_type"] = "ImGuiTableColumnSortSpecs" -defs["structs"]["ImGuiTable"][62]["type"] = "ImVector_ImGuiTableColumnSortSpecs" +defs["structs"]["ImGuiTable"][62]["name"] = "SortSpecsSingle" +defs["structs"]["ImGuiTable"][62]["type"] = "ImGuiTableColumnSortSpecs" defs["structs"]["ImGuiTable"][63] = {} -defs["structs"]["ImGuiTable"][63]["name"] = "SortSpecs" -defs["structs"]["ImGuiTable"][63]["type"] = "ImGuiTableSortSpecs" +defs["structs"]["ImGuiTable"][63]["name"] = "SortSpecsMulti" +defs["structs"]["ImGuiTable"][63]["template_type"] = "ImGuiTableColumnSortSpecs" +defs["structs"]["ImGuiTable"][63]["type"] = "ImVector_ImGuiTableColumnSortSpecs" defs["structs"]["ImGuiTable"][64] = {} -defs["structs"]["ImGuiTable"][64]["name"] = "SortSpecsCount" -defs["structs"]["ImGuiTable"][64]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][64]["name"] = "SortSpecs" +defs["structs"]["ImGuiTable"][64]["type"] = "ImGuiTableSortSpecs" defs["structs"]["ImGuiTable"][65] = {} -defs["structs"]["ImGuiTable"][65]["name"] = "ColumnsEnabledCount" +defs["structs"]["ImGuiTable"][65]["name"] = "SortSpecsCount" defs["structs"]["ImGuiTable"][65]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][66] = {} -defs["structs"]["ImGuiTable"][66]["name"] = "ColumnsEnabledFixedCount" +defs["structs"]["ImGuiTable"][66]["name"] = "ColumnsEnabledCount" defs["structs"]["ImGuiTable"][66]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][67] = {} -defs["structs"]["ImGuiTable"][67]["name"] = "DeclColumnsCount" +defs["structs"]["ImGuiTable"][67]["name"] = "ColumnsEnabledFixedCount" defs["structs"]["ImGuiTable"][67]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][68] = {} -defs["structs"]["ImGuiTable"][68]["name"] = "HoveredColumnBody" +defs["structs"]["ImGuiTable"][68]["name"] = "DeclColumnsCount" defs["structs"]["ImGuiTable"][68]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][69] = {} -defs["structs"]["ImGuiTable"][69]["name"] = "HoveredColumnBorder" +defs["structs"]["ImGuiTable"][69]["name"] = "HoveredColumnBody" defs["structs"]["ImGuiTable"][69]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][70] = {} -defs["structs"]["ImGuiTable"][70]["name"] = "AutoFitSingleColumn" +defs["structs"]["ImGuiTable"][70]["name"] = "HoveredColumnBorder" defs["structs"]["ImGuiTable"][70]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][71] = {} -defs["structs"]["ImGuiTable"][71]["name"] = "ResizedColumn" +defs["structs"]["ImGuiTable"][71]["name"] = "AutoFitSingleColumn" defs["structs"]["ImGuiTable"][71]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][72] = {} -defs["structs"]["ImGuiTable"][72]["name"] = "LastResizedColumn" +defs["structs"]["ImGuiTable"][72]["name"] = "ResizedColumn" defs["structs"]["ImGuiTable"][72]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][73] = {} -defs["structs"]["ImGuiTable"][73]["name"] = "HeldHeaderColumn" +defs["structs"]["ImGuiTable"][73]["name"] = "LastResizedColumn" defs["structs"]["ImGuiTable"][73]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][74] = {} -defs["structs"]["ImGuiTable"][74]["name"] = "ReorderColumn" +defs["structs"]["ImGuiTable"][74]["name"] = "HeldHeaderColumn" defs["structs"]["ImGuiTable"][74]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][75] = {} -defs["structs"]["ImGuiTable"][75]["name"] = "ReorderColumnDir" +defs["structs"]["ImGuiTable"][75]["name"] = "ReorderColumn" defs["structs"]["ImGuiTable"][75]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][76] = {} -defs["structs"]["ImGuiTable"][76]["name"] = "LeftMostEnabledColumn" +defs["structs"]["ImGuiTable"][76]["name"] = "ReorderColumnDir" defs["structs"]["ImGuiTable"][76]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][77] = {} -defs["structs"]["ImGuiTable"][77]["name"] = "RightMostEnabledColumn" +defs["structs"]["ImGuiTable"][77]["name"] = "LeftMostEnabledColumn" defs["structs"]["ImGuiTable"][77]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][78] = {} -defs["structs"]["ImGuiTable"][78]["name"] = "LeftMostStretchedColumn" +defs["structs"]["ImGuiTable"][78]["name"] = "RightMostEnabledColumn" defs["structs"]["ImGuiTable"][78]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][79] = {} -defs["structs"]["ImGuiTable"][79]["name"] = "RightMostStretchedColumn" +defs["structs"]["ImGuiTable"][79]["name"] = "LeftMostStretchedColumn" defs["structs"]["ImGuiTable"][79]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][80] = {} -defs["structs"]["ImGuiTable"][80]["name"] = "ContextPopupColumn" +defs["structs"]["ImGuiTable"][80]["name"] = "RightMostStretchedColumn" defs["structs"]["ImGuiTable"][80]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][81] = {} -defs["structs"]["ImGuiTable"][81]["name"] = "FreezeRowsRequest" +defs["structs"]["ImGuiTable"][81]["name"] = "ContextPopupColumn" defs["structs"]["ImGuiTable"][81]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][82] = {} -defs["structs"]["ImGuiTable"][82]["name"] = "FreezeRowsCount" +defs["structs"]["ImGuiTable"][82]["name"] = "FreezeRowsRequest" defs["structs"]["ImGuiTable"][82]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][83] = {} -defs["structs"]["ImGuiTable"][83]["name"] = "FreezeColumnsRequest" +defs["structs"]["ImGuiTable"][83]["name"] = "FreezeRowsCount" defs["structs"]["ImGuiTable"][83]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][84] = {} -defs["structs"]["ImGuiTable"][84]["name"] = "FreezeColumnsCount" +defs["structs"]["ImGuiTable"][84]["name"] = "FreezeColumnsRequest" defs["structs"]["ImGuiTable"][84]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][85] = {} -defs["structs"]["ImGuiTable"][85]["name"] = "RowCellDataCurrent" +defs["structs"]["ImGuiTable"][85]["name"] = "FreezeColumnsCount" defs["structs"]["ImGuiTable"][85]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][86] = {} -defs["structs"]["ImGuiTable"][86]["name"] = "DummyDrawChannel" -defs["structs"]["ImGuiTable"][86]["type"] = "ImGuiTableDrawChannelIdx" +defs["structs"]["ImGuiTable"][86]["name"] = "RowCellDataCurrent" +defs["structs"]["ImGuiTable"][86]["type"] = "ImGuiTableColumnIdx" defs["structs"]["ImGuiTable"][87] = {} -defs["structs"]["ImGuiTable"][87]["name"] = "Bg2DrawChannelCurrent" +defs["structs"]["ImGuiTable"][87]["name"] = "DummyDrawChannel" defs["structs"]["ImGuiTable"][87]["type"] = "ImGuiTableDrawChannelIdx" defs["structs"]["ImGuiTable"][88] = {} -defs["structs"]["ImGuiTable"][88]["name"] = "Bg2DrawChannelUnfrozen" +defs["structs"]["ImGuiTable"][88]["name"] = "Bg2DrawChannelCurrent" defs["structs"]["ImGuiTable"][88]["type"] = "ImGuiTableDrawChannelIdx" defs["structs"]["ImGuiTable"][89] = {} -defs["structs"]["ImGuiTable"][89]["name"] = "IsLayoutLocked" -defs["structs"]["ImGuiTable"][89]["type"] = "bool" +defs["structs"]["ImGuiTable"][89]["name"] = "Bg2DrawChannelUnfrozen" +defs["structs"]["ImGuiTable"][89]["type"] = "ImGuiTableDrawChannelIdx" defs["structs"]["ImGuiTable"][90] = {} -defs["structs"]["ImGuiTable"][90]["name"] = "IsInsideRow" +defs["structs"]["ImGuiTable"][90]["name"] = "IsLayoutLocked" defs["structs"]["ImGuiTable"][90]["type"] = "bool" defs["structs"]["ImGuiTable"][91] = {} -defs["structs"]["ImGuiTable"][91]["name"] = "IsInitializing" +defs["structs"]["ImGuiTable"][91]["name"] = "IsInsideRow" defs["structs"]["ImGuiTable"][91]["type"] = "bool" defs["structs"]["ImGuiTable"][92] = {} -defs["structs"]["ImGuiTable"][92]["name"] = "IsSortSpecsDirty" +defs["structs"]["ImGuiTable"][92]["name"] = "IsInitializing" defs["structs"]["ImGuiTable"][92]["type"] = "bool" defs["structs"]["ImGuiTable"][93] = {} -defs["structs"]["ImGuiTable"][93]["name"] = "IsUsingHeaders" +defs["structs"]["ImGuiTable"][93]["name"] = "IsSortSpecsDirty" defs["structs"]["ImGuiTable"][93]["type"] = "bool" defs["structs"]["ImGuiTable"][94] = {} -defs["structs"]["ImGuiTable"][94]["name"] = "IsContextPopupOpen" +defs["structs"]["ImGuiTable"][94]["name"] = "IsUsingHeaders" defs["structs"]["ImGuiTable"][94]["type"] = "bool" defs["structs"]["ImGuiTable"][95] = {} -defs["structs"]["ImGuiTable"][95]["name"] = "IsSettingsRequestLoad" +defs["structs"]["ImGuiTable"][95]["name"] = "IsContextPopupOpen" defs["structs"]["ImGuiTable"][95]["type"] = "bool" defs["structs"]["ImGuiTable"][96] = {} -defs["structs"]["ImGuiTable"][96]["name"] = "IsSettingsDirty" +defs["structs"]["ImGuiTable"][96]["name"] = "IsSettingsRequestLoad" defs["structs"]["ImGuiTable"][96]["type"] = "bool" defs["structs"]["ImGuiTable"][97] = {} -defs["structs"]["ImGuiTable"][97]["name"] = "IsDefaultDisplayOrder" +defs["structs"]["ImGuiTable"][97]["name"] = "IsSettingsDirty" defs["structs"]["ImGuiTable"][97]["type"] = "bool" defs["structs"]["ImGuiTable"][98] = {} -defs["structs"]["ImGuiTable"][98]["name"] = "IsResetAllRequest" +defs["structs"]["ImGuiTable"][98]["name"] = "IsDefaultDisplayOrder" defs["structs"]["ImGuiTable"][98]["type"] = "bool" defs["structs"]["ImGuiTable"][99] = {} -defs["structs"]["ImGuiTable"][99]["name"] = "IsResetDisplayOrderRequest" +defs["structs"]["ImGuiTable"][99]["name"] = "IsResetAllRequest" defs["structs"]["ImGuiTable"][99]["type"] = "bool" defs["structs"]["ImGuiTable"][100] = {} -defs["structs"]["ImGuiTable"][100]["name"] = "IsUnfrozenRows" +defs["structs"]["ImGuiTable"][100]["name"] = "IsResetDisplayOrderRequest" defs["structs"]["ImGuiTable"][100]["type"] = "bool" defs["structs"]["ImGuiTable"][101] = {} -defs["structs"]["ImGuiTable"][101]["name"] = "IsDefaultSizingPolicy" +defs["structs"]["ImGuiTable"][101]["name"] = "IsUnfrozenRows" defs["structs"]["ImGuiTable"][101]["type"] = "bool" defs["structs"]["ImGuiTable"][102] = {} -defs["structs"]["ImGuiTable"][102]["name"] = "MemoryCompacted" +defs["structs"]["ImGuiTable"][102]["name"] = "IsDefaultSizingPolicy" defs["structs"]["ImGuiTable"][102]["type"] = "bool" defs["structs"]["ImGuiTable"][103] = {} -defs["structs"]["ImGuiTable"][103]["name"] = "HostSkipItems" +defs["structs"]["ImGuiTable"][103]["name"] = "MemoryCompacted" defs["structs"]["ImGuiTable"][103]["type"] = "bool" +defs["structs"]["ImGuiTable"][104] = {} +defs["structs"]["ImGuiTable"][104]["name"] = "HostSkipItems" +defs["structs"]["ImGuiTable"][104]["type"] = "bool" defs["structs"]["ImGuiTableCellData"] = {} defs["structs"]["ImGuiTableCellData"][1] = {} defs["structs"]["ImGuiTableCellData"][1]["name"] = "BgColor" @@ -6130,6 +7064,13 @@ defs["structs"]["ImGuiTableColumnSortSpecs"][4] = {} defs["structs"]["ImGuiTableColumnSortSpecs"][4]["bitfield"] = "8" defs["structs"]["ImGuiTableColumnSortSpecs"][4]["name"] = "SortDirection" defs["structs"]["ImGuiTableColumnSortSpecs"][4]["type"] = "ImGuiSortDirection" +defs["structs"]["ImGuiTableInstanceData"] = {} +defs["structs"]["ImGuiTableInstanceData"][1] = {} +defs["structs"]["ImGuiTableInstanceData"][1]["name"] = "LastOuterHeight" +defs["structs"]["ImGuiTableInstanceData"][1]["type"] = "float" +defs["structs"]["ImGuiTableInstanceData"][2] = {} +defs["structs"]["ImGuiTableInstanceData"][2]["name"] = "LastFirstRowHeight" +defs["structs"]["ImGuiTableInstanceData"][2]["type"] = "float" defs["structs"]["ImGuiTableSettings"] = {} defs["structs"]["ImGuiTableSettings"][1] = {} defs["structs"]["ImGuiTableSettings"][1]["name"] = "ID" @@ -6213,6 +7154,14 @@ defs["structs"]["ImGuiTextFilter"][2]["type"] = "ImVector_ImGuiTextRange" defs["structs"]["ImGuiTextFilter"][3] = {} defs["structs"]["ImGuiTextFilter"][3]["name"] = "CountGrep" defs["structs"]["ImGuiTextFilter"][3]["type"] = "int" +defs["structs"]["ImGuiTextIndex"] = {} +defs["structs"]["ImGuiTextIndex"][1] = {} +defs["structs"]["ImGuiTextIndex"][1]["name"] = "LineOffsets" +defs["structs"]["ImGuiTextIndex"][1]["template_type"] = "int" +defs["structs"]["ImGuiTextIndex"][1]["type"] = "ImVector_int" +defs["structs"]["ImGuiTextIndex"][2] = {} +defs["structs"]["ImGuiTextIndex"][2]["name"] = "EndOffset" +defs["structs"]["ImGuiTextIndex"][2]["type"] = "int" defs["structs"]["ImGuiTextRange"] = {} defs["structs"]["ImGuiTextRange"][1] = {} defs["structs"]["ImGuiTextRange"][1]["name"] = "b" @@ -6261,14 +7210,17 @@ defs["structs"]["ImGuiViewport"][13] = {} defs["structs"]["ImGuiViewport"][13]["name"] = "PlatformHandleRaw" defs["structs"]["ImGuiViewport"][13]["type"] = "void*" defs["structs"]["ImGuiViewport"][14] = {} -defs["structs"]["ImGuiViewport"][14]["name"] = "PlatformRequestMove" +defs["structs"]["ImGuiViewport"][14]["name"] = "PlatformWindowCreated" defs["structs"]["ImGuiViewport"][14]["type"] = "bool" defs["structs"]["ImGuiViewport"][15] = {} -defs["structs"]["ImGuiViewport"][15]["name"] = "PlatformRequestResize" +defs["structs"]["ImGuiViewport"][15]["name"] = "PlatformRequestMove" defs["structs"]["ImGuiViewport"][15]["type"] = "bool" defs["structs"]["ImGuiViewport"][16] = {} -defs["structs"]["ImGuiViewport"][16]["name"] = "PlatformRequestClose" +defs["structs"]["ImGuiViewport"][16]["name"] = "PlatformRequestResize" defs["structs"]["ImGuiViewport"][16]["type"] = "bool" +defs["structs"]["ImGuiViewport"][17] = {} +defs["structs"]["ImGuiViewport"][17]["name"] = "PlatformRequestClose" +defs["structs"]["ImGuiViewport"][17]["type"] = "bool" defs["structs"]["ImGuiViewportP"] = {} defs["structs"]["ImGuiViewportP"][1] = {} defs["structs"]["ImGuiViewportP"][1]["name"] = "_ImGuiViewport" @@ -6298,46 +7250,43 @@ defs["structs"]["ImGuiViewportP"][9] = {} defs["structs"]["ImGuiViewportP"][9]["name"] = "PlatformMonitor" defs["structs"]["ImGuiViewportP"][9]["type"] = "short" defs["structs"]["ImGuiViewportP"][10] = {} -defs["structs"]["ImGuiViewportP"][10]["name"] = "PlatformWindowCreated" -defs["structs"]["ImGuiViewportP"][10]["type"] = "bool" +defs["structs"]["ImGuiViewportP"][10]["name"] = "Window" +defs["structs"]["ImGuiViewportP"][10]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiViewportP"][11] = {} -defs["structs"]["ImGuiViewportP"][11]["name"] = "Window" -defs["structs"]["ImGuiViewportP"][11]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiViewportP"][11]["name"] = "DrawListsLastFrame[2]" +defs["structs"]["ImGuiViewportP"][11]["size"] = 2 +defs["structs"]["ImGuiViewportP"][11]["type"] = "int" defs["structs"]["ImGuiViewportP"][12] = {} -defs["structs"]["ImGuiViewportP"][12]["name"] = "DrawListsLastFrame[2]" +defs["structs"]["ImGuiViewportP"][12]["name"] = "DrawLists[2]" defs["structs"]["ImGuiViewportP"][12]["size"] = 2 -defs["structs"]["ImGuiViewportP"][12]["type"] = "int" +defs["structs"]["ImGuiViewportP"][12]["type"] = "ImDrawList*" defs["structs"]["ImGuiViewportP"][13] = {} -defs["structs"]["ImGuiViewportP"][13]["name"] = "DrawLists[2]" -defs["structs"]["ImGuiViewportP"][13]["size"] = 2 -defs["structs"]["ImGuiViewportP"][13]["type"] = "ImDrawList*" +defs["structs"]["ImGuiViewportP"][13]["name"] = "DrawDataP" +defs["structs"]["ImGuiViewportP"][13]["type"] = "ImDrawData" defs["structs"]["ImGuiViewportP"][14] = {} -defs["structs"]["ImGuiViewportP"][14]["name"] = "DrawDataP" -defs["structs"]["ImGuiViewportP"][14]["type"] = "ImDrawData" +defs["structs"]["ImGuiViewportP"][14]["name"] = "DrawDataBuilder" +defs["structs"]["ImGuiViewportP"][14]["type"] = "ImDrawDataBuilder" defs["structs"]["ImGuiViewportP"][15] = {} -defs["structs"]["ImGuiViewportP"][15]["name"] = "DrawDataBuilder" -defs["structs"]["ImGuiViewportP"][15]["type"] = "ImDrawDataBuilder" +defs["structs"]["ImGuiViewportP"][15]["name"] = "LastPlatformPos" +defs["structs"]["ImGuiViewportP"][15]["type"] = "ImVec2" defs["structs"]["ImGuiViewportP"][16] = {} -defs["structs"]["ImGuiViewportP"][16]["name"] = "LastPlatformPos" +defs["structs"]["ImGuiViewportP"][16]["name"] = "LastPlatformSize" defs["structs"]["ImGuiViewportP"][16]["type"] = "ImVec2" defs["structs"]["ImGuiViewportP"][17] = {} -defs["structs"]["ImGuiViewportP"][17]["name"] = "LastPlatformSize" +defs["structs"]["ImGuiViewportP"][17]["name"] = "LastRendererSize" defs["structs"]["ImGuiViewportP"][17]["type"] = "ImVec2" defs["structs"]["ImGuiViewportP"][18] = {} -defs["structs"]["ImGuiViewportP"][18]["name"] = "LastRendererSize" +defs["structs"]["ImGuiViewportP"][18]["name"] = "WorkOffsetMin" defs["structs"]["ImGuiViewportP"][18]["type"] = "ImVec2" defs["structs"]["ImGuiViewportP"][19] = {} -defs["structs"]["ImGuiViewportP"][19]["name"] = "WorkOffsetMin" +defs["structs"]["ImGuiViewportP"][19]["name"] = "WorkOffsetMax" defs["structs"]["ImGuiViewportP"][19]["type"] = "ImVec2" defs["structs"]["ImGuiViewportP"][20] = {} -defs["structs"]["ImGuiViewportP"][20]["name"] = "WorkOffsetMax" +defs["structs"]["ImGuiViewportP"][20]["name"] = "BuildWorkOffsetMin" defs["structs"]["ImGuiViewportP"][20]["type"] = "ImVec2" defs["structs"]["ImGuiViewportP"][21] = {} -defs["structs"]["ImGuiViewportP"][21]["name"] = "BuildWorkOffsetMin" +defs["structs"]["ImGuiViewportP"][21]["name"] = "BuildWorkOffsetMax" defs["structs"]["ImGuiViewportP"][21]["type"] = "ImVec2" -defs["structs"]["ImGuiViewportP"][22] = {} -defs["structs"]["ImGuiViewportP"][22]["name"] = "BuildWorkOffsetMax" -defs["structs"]["ImGuiViewportP"][22]["type"] = "ImVec2" defs["structs"]["ImGuiWindow"] = {} defs["structs"]["ImGuiWindow"][1] = {} defs["structs"]["ImGuiWindow"][1]["name"] = "Name" @@ -6400,281 +7349,290 @@ defs["structs"]["ImGuiWindow"][20] = {} defs["structs"]["ImGuiWindow"][20]["name"] = "MoveId" defs["structs"]["ImGuiWindow"][20]["type"] = "ImGuiID" defs["structs"]["ImGuiWindow"][21] = {} -defs["structs"]["ImGuiWindow"][21]["name"] = "ChildId" +defs["structs"]["ImGuiWindow"][21]["name"] = "TabId" defs["structs"]["ImGuiWindow"][21]["type"] = "ImGuiID" defs["structs"]["ImGuiWindow"][22] = {} -defs["structs"]["ImGuiWindow"][22]["name"] = "Scroll" -defs["structs"]["ImGuiWindow"][22]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][22]["name"] = "ChildId" +defs["structs"]["ImGuiWindow"][22]["type"] = "ImGuiID" defs["structs"]["ImGuiWindow"][23] = {} -defs["structs"]["ImGuiWindow"][23]["name"] = "ScrollMax" +defs["structs"]["ImGuiWindow"][23]["name"] = "Scroll" defs["structs"]["ImGuiWindow"][23]["type"] = "ImVec2" defs["structs"]["ImGuiWindow"][24] = {} -defs["structs"]["ImGuiWindow"][24]["name"] = "ScrollTarget" +defs["structs"]["ImGuiWindow"][24]["name"] = "ScrollMax" defs["structs"]["ImGuiWindow"][24]["type"] = "ImVec2" defs["structs"]["ImGuiWindow"][25] = {} -defs["structs"]["ImGuiWindow"][25]["name"] = "ScrollTargetCenterRatio" +defs["structs"]["ImGuiWindow"][25]["name"] = "ScrollTarget" defs["structs"]["ImGuiWindow"][25]["type"] = "ImVec2" defs["structs"]["ImGuiWindow"][26] = {} -defs["structs"]["ImGuiWindow"][26]["name"] = "ScrollTargetEdgeSnapDist" +defs["structs"]["ImGuiWindow"][26]["name"] = "ScrollTargetCenterRatio" defs["structs"]["ImGuiWindow"][26]["type"] = "ImVec2" defs["structs"]["ImGuiWindow"][27] = {} -defs["structs"]["ImGuiWindow"][27]["name"] = "ScrollbarSizes" +defs["structs"]["ImGuiWindow"][27]["name"] = "ScrollTargetEdgeSnapDist" defs["structs"]["ImGuiWindow"][27]["type"] = "ImVec2" defs["structs"]["ImGuiWindow"][28] = {} -defs["structs"]["ImGuiWindow"][28]["name"] = "ScrollbarX" -defs["structs"]["ImGuiWindow"][28]["type"] = "bool" +defs["structs"]["ImGuiWindow"][28]["name"] = "ScrollbarSizes" +defs["structs"]["ImGuiWindow"][28]["type"] = "ImVec2" defs["structs"]["ImGuiWindow"][29] = {} -defs["structs"]["ImGuiWindow"][29]["name"] = "ScrollbarY" +defs["structs"]["ImGuiWindow"][29]["name"] = "ScrollbarX" defs["structs"]["ImGuiWindow"][29]["type"] = "bool" defs["structs"]["ImGuiWindow"][30] = {} -defs["structs"]["ImGuiWindow"][30]["name"] = "ViewportOwned" +defs["structs"]["ImGuiWindow"][30]["name"] = "ScrollbarY" defs["structs"]["ImGuiWindow"][30]["type"] = "bool" defs["structs"]["ImGuiWindow"][31] = {} -defs["structs"]["ImGuiWindow"][31]["name"] = "Active" +defs["structs"]["ImGuiWindow"][31]["name"] = "ViewportOwned" defs["structs"]["ImGuiWindow"][31]["type"] = "bool" defs["structs"]["ImGuiWindow"][32] = {} -defs["structs"]["ImGuiWindow"][32]["name"] = "WasActive" +defs["structs"]["ImGuiWindow"][32]["name"] = "Active" defs["structs"]["ImGuiWindow"][32]["type"] = "bool" defs["structs"]["ImGuiWindow"][33] = {} -defs["structs"]["ImGuiWindow"][33]["name"] = "WriteAccessed" +defs["structs"]["ImGuiWindow"][33]["name"] = "WasActive" defs["structs"]["ImGuiWindow"][33]["type"] = "bool" defs["structs"]["ImGuiWindow"][34] = {} -defs["structs"]["ImGuiWindow"][34]["name"] = "Collapsed" +defs["structs"]["ImGuiWindow"][34]["name"] = "WriteAccessed" defs["structs"]["ImGuiWindow"][34]["type"] = "bool" defs["structs"]["ImGuiWindow"][35] = {} -defs["structs"]["ImGuiWindow"][35]["name"] = "WantCollapseToggle" +defs["structs"]["ImGuiWindow"][35]["name"] = "Collapsed" defs["structs"]["ImGuiWindow"][35]["type"] = "bool" defs["structs"]["ImGuiWindow"][36] = {} -defs["structs"]["ImGuiWindow"][36]["name"] = "SkipItems" +defs["structs"]["ImGuiWindow"][36]["name"] = "WantCollapseToggle" defs["structs"]["ImGuiWindow"][36]["type"] = "bool" defs["structs"]["ImGuiWindow"][37] = {} -defs["structs"]["ImGuiWindow"][37]["name"] = "Appearing" +defs["structs"]["ImGuiWindow"][37]["name"] = "SkipItems" defs["structs"]["ImGuiWindow"][37]["type"] = "bool" defs["structs"]["ImGuiWindow"][38] = {} -defs["structs"]["ImGuiWindow"][38]["name"] = "Hidden" +defs["structs"]["ImGuiWindow"][38]["name"] = "Appearing" defs["structs"]["ImGuiWindow"][38]["type"] = "bool" defs["structs"]["ImGuiWindow"][39] = {} -defs["structs"]["ImGuiWindow"][39]["name"] = "IsFallbackWindow" +defs["structs"]["ImGuiWindow"][39]["name"] = "Hidden" defs["structs"]["ImGuiWindow"][39]["type"] = "bool" defs["structs"]["ImGuiWindow"][40] = {} -defs["structs"]["ImGuiWindow"][40]["name"] = "IsExplicitChild" +defs["structs"]["ImGuiWindow"][40]["name"] = "IsFallbackWindow" defs["structs"]["ImGuiWindow"][40]["type"] = "bool" defs["structs"]["ImGuiWindow"][41] = {} -defs["structs"]["ImGuiWindow"][41]["name"] = "HasCloseButton" +defs["structs"]["ImGuiWindow"][41]["name"] = "IsExplicitChild" defs["structs"]["ImGuiWindow"][41]["type"] = "bool" defs["structs"]["ImGuiWindow"][42] = {} -defs["structs"]["ImGuiWindow"][42]["name"] = "ResizeBorderHeld" -defs["structs"]["ImGuiWindow"][42]["type"] = "signed char" +defs["structs"]["ImGuiWindow"][42]["name"] = "HasCloseButton" +defs["structs"]["ImGuiWindow"][42]["type"] = "bool" defs["structs"]["ImGuiWindow"][43] = {} -defs["structs"]["ImGuiWindow"][43]["name"] = "BeginCount" -defs["structs"]["ImGuiWindow"][43]["type"] = "short" +defs["structs"]["ImGuiWindow"][43]["name"] = "ResizeBorderHeld" +defs["structs"]["ImGuiWindow"][43]["type"] = "signed char" defs["structs"]["ImGuiWindow"][44] = {} -defs["structs"]["ImGuiWindow"][44]["name"] = "BeginOrderWithinParent" +defs["structs"]["ImGuiWindow"][44]["name"] = "BeginCount" defs["structs"]["ImGuiWindow"][44]["type"] = "short" defs["structs"]["ImGuiWindow"][45] = {} -defs["structs"]["ImGuiWindow"][45]["name"] = "BeginOrderWithinContext" +defs["structs"]["ImGuiWindow"][45]["name"] = "BeginCountPreviousFrame" defs["structs"]["ImGuiWindow"][45]["type"] = "short" defs["structs"]["ImGuiWindow"][46] = {} -defs["structs"]["ImGuiWindow"][46]["name"] = "FocusOrder" +defs["structs"]["ImGuiWindow"][46]["name"] = "BeginOrderWithinParent" defs["structs"]["ImGuiWindow"][46]["type"] = "short" defs["structs"]["ImGuiWindow"][47] = {} -defs["structs"]["ImGuiWindow"][47]["name"] = "PopupId" -defs["structs"]["ImGuiWindow"][47]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][47]["name"] = "BeginOrderWithinContext" +defs["structs"]["ImGuiWindow"][47]["type"] = "short" defs["structs"]["ImGuiWindow"][48] = {} -defs["structs"]["ImGuiWindow"][48]["name"] = "AutoFitFramesX" -defs["structs"]["ImGuiWindow"][48]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][48]["name"] = "FocusOrder" +defs["structs"]["ImGuiWindow"][48]["type"] = "short" defs["structs"]["ImGuiWindow"][49] = {} -defs["structs"]["ImGuiWindow"][49]["name"] = "AutoFitFramesY" -defs["structs"]["ImGuiWindow"][49]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][49]["name"] = "PopupId" +defs["structs"]["ImGuiWindow"][49]["type"] = "ImGuiID" defs["structs"]["ImGuiWindow"][50] = {} -defs["structs"]["ImGuiWindow"][50]["name"] = "AutoFitChildAxises" +defs["structs"]["ImGuiWindow"][50]["name"] = "AutoFitFramesX" defs["structs"]["ImGuiWindow"][50]["type"] = "ImS8" defs["structs"]["ImGuiWindow"][51] = {} -defs["structs"]["ImGuiWindow"][51]["name"] = "AutoFitOnlyGrows" -defs["structs"]["ImGuiWindow"][51]["type"] = "bool" +defs["structs"]["ImGuiWindow"][51]["name"] = "AutoFitFramesY" +defs["structs"]["ImGuiWindow"][51]["type"] = "ImS8" defs["structs"]["ImGuiWindow"][52] = {} -defs["structs"]["ImGuiWindow"][52]["name"] = "AutoPosLastDirection" -defs["structs"]["ImGuiWindow"][52]["type"] = "ImGuiDir" +defs["structs"]["ImGuiWindow"][52]["name"] = "AutoFitChildAxises" +defs["structs"]["ImGuiWindow"][52]["type"] = "ImS8" defs["structs"]["ImGuiWindow"][53] = {} -defs["structs"]["ImGuiWindow"][53]["name"] = "HiddenFramesCanSkipItems" -defs["structs"]["ImGuiWindow"][53]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][53]["name"] = "AutoFitOnlyGrows" +defs["structs"]["ImGuiWindow"][53]["type"] = "bool" defs["structs"]["ImGuiWindow"][54] = {} -defs["structs"]["ImGuiWindow"][54]["name"] = "HiddenFramesCannotSkipItems" -defs["structs"]["ImGuiWindow"][54]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][54]["name"] = "AutoPosLastDirection" +defs["structs"]["ImGuiWindow"][54]["type"] = "ImGuiDir" defs["structs"]["ImGuiWindow"][55] = {} -defs["structs"]["ImGuiWindow"][55]["name"] = "HiddenFramesForRenderOnly" +defs["structs"]["ImGuiWindow"][55]["name"] = "HiddenFramesCanSkipItems" defs["structs"]["ImGuiWindow"][55]["type"] = "ImS8" defs["structs"]["ImGuiWindow"][56] = {} -defs["structs"]["ImGuiWindow"][56]["name"] = "DisableInputsFrames" +defs["structs"]["ImGuiWindow"][56]["name"] = "HiddenFramesCannotSkipItems" defs["structs"]["ImGuiWindow"][56]["type"] = "ImS8" defs["structs"]["ImGuiWindow"][57] = {} -defs["structs"]["ImGuiWindow"][57]["bitfield"] = "8" -defs["structs"]["ImGuiWindow"][57]["name"] = "SetWindowPosAllowFlags" -defs["structs"]["ImGuiWindow"][57]["type"] = "ImGuiCond" +defs["structs"]["ImGuiWindow"][57]["name"] = "HiddenFramesForRenderOnly" +defs["structs"]["ImGuiWindow"][57]["type"] = "ImS8" defs["structs"]["ImGuiWindow"][58] = {} -defs["structs"]["ImGuiWindow"][58]["bitfield"] = "8" -defs["structs"]["ImGuiWindow"][58]["name"] = "SetWindowSizeAllowFlags" -defs["structs"]["ImGuiWindow"][58]["type"] = "ImGuiCond" +defs["structs"]["ImGuiWindow"][58]["name"] = "DisableInputsFrames" +defs["structs"]["ImGuiWindow"][58]["type"] = "ImS8" defs["structs"]["ImGuiWindow"][59] = {} defs["structs"]["ImGuiWindow"][59]["bitfield"] = "8" -defs["structs"]["ImGuiWindow"][59]["name"] = "SetWindowCollapsedAllowFlags" +defs["structs"]["ImGuiWindow"][59]["name"] = "SetWindowPosAllowFlags" defs["structs"]["ImGuiWindow"][59]["type"] = "ImGuiCond" defs["structs"]["ImGuiWindow"][60] = {} defs["structs"]["ImGuiWindow"][60]["bitfield"] = "8" -defs["structs"]["ImGuiWindow"][60]["name"] = "SetWindowDockAllowFlags" +defs["structs"]["ImGuiWindow"][60]["name"] = "SetWindowSizeAllowFlags" defs["structs"]["ImGuiWindow"][60]["type"] = "ImGuiCond" defs["structs"]["ImGuiWindow"][61] = {} -defs["structs"]["ImGuiWindow"][61]["name"] = "SetWindowPosVal" -defs["structs"]["ImGuiWindow"][61]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][61]["bitfield"] = "8" +defs["structs"]["ImGuiWindow"][61]["name"] = "SetWindowCollapsedAllowFlags" +defs["structs"]["ImGuiWindow"][61]["type"] = "ImGuiCond" defs["structs"]["ImGuiWindow"][62] = {} -defs["structs"]["ImGuiWindow"][62]["name"] = "SetWindowPosPivot" -defs["structs"]["ImGuiWindow"][62]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][62]["bitfield"] = "8" +defs["structs"]["ImGuiWindow"][62]["name"] = "SetWindowDockAllowFlags" +defs["structs"]["ImGuiWindow"][62]["type"] = "ImGuiCond" defs["structs"]["ImGuiWindow"][63] = {} -defs["structs"]["ImGuiWindow"][63]["name"] = "IDStack" -defs["structs"]["ImGuiWindow"][63]["template_type"] = "ImGuiID" -defs["structs"]["ImGuiWindow"][63]["type"] = "ImVector_ImGuiID" +defs["structs"]["ImGuiWindow"][63]["name"] = "SetWindowPosVal" +defs["structs"]["ImGuiWindow"][63]["type"] = "ImVec2" defs["structs"]["ImGuiWindow"][64] = {} -defs["structs"]["ImGuiWindow"][64]["name"] = "DC" -defs["structs"]["ImGuiWindow"][64]["type"] = "ImGuiWindowTempData" +defs["structs"]["ImGuiWindow"][64]["name"] = "SetWindowPosPivot" +defs["structs"]["ImGuiWindow"][64]["type"] = "ImVec2" defs["structs"]["ImGuiWindow"][65] = {} -defs["structs"]["ImGuiWindow"][65]["name"] = "OuterRectClipped" -defs["structs"]["ImGuiWindow"][65]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][65]["name"] = "IDStack" +defs["structs"]["ImGuiWindow"][65]["template_type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][65]["type"] = "ImVector_ImGuiID" defs["structs"]["ImGuiWindow"][66] = {} -defs["structs"]["ImGuiWindow"][66]["name"] = "InnerRect" -defs["structs"]["ImGuiWindow"][66]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][66]["name"] = "DC" +defs["structs"]["ImGuiWindow"][66]["type"] = "ImGuiWindowTempData" defs["structs"]["ImGuiWindow"][67] = {} -defs["structs"]["ImGuiWindow"][67]["name"] = "InnerClipRect" +defs["structs"]["ImGuiWindow"][67]["name"] = "OuterRectClipped" defs["structs"]["ImGuiWindow"][67]["type"] = "ImRect" defs["structs"]["ImGuiWindow"][68] = {} -defs["structs"]["ImGuiWindow"][68]["name"] = "WorkRect" +defs["structs"]["ImGuiWindow"][68]["name"] = "InnerRect" defs["structs"]["ImGuiWindow"][68]["type"] = "ImRect" defs["structs"]["ImGuiWindow"][69] = {} -defs["structs"]["ImGuiWindow"][69]["name"] = "ParentWorkRect" +defs["structs"]["ImGuiWindow"][69]["name"] = "InnerClipRect" defs["structs"]["ImGuiWindow"][69]["type"] = "ImRect" defs["structs"]["ImGuiWindow"][70] = {} -defs["structs"]["ImGuiWindow"][70]["name"] = "ClipRect" +defs["structs"]["ImGuiWindow"][70]["name"] = "WorkRect" defs["structs"]["ImGuiWindow"][70]["type"] = "ImRect" defs["structs"]["ImGuiWindow"][71] = {} -defs["structs"]["ImGuiWindow"][71]["name"] = "ContentRegionRect" +defs["structs"]["ImGuiWindow"][71]["name"] = "ParentWorkRect" defs["structs"]["ImGuiWindow"][71]["type"] = "ImRect" defs["structs"]["ImGuiWindow"][72] = {} -defs["structs"]["ImGuiWindow"][72]["name"] = "HitTestHoleSize" -defs["structs"]["ImGuiWindow"][72]["type"] = "ImVec2ih" +defs["structs"]["ImGuiWindow"][72]["name"] = "ClipRect" +defs["structs"]["ImGuiWindow"][72]["type"] = "ImRect" defs["structs"]["ImGuiWindow"][73] = {} -defs["structs"]["ImGuiWindow"][73]["name"] = "HitTestHoleOffset" -defs["structs"]["ImGuiWindow"][73]["type"] = "ImVec2ih" +defs["structs"]["ImGuiWindow"][73]["name"] = "ContentRegionRect" +defs["structs"]["ImGuiWindow"][73]["type"] = "ImRect" defs["structs"]["ImGuiWindow"][74] = {} -defs["structs"]["ImGuiWindow"][74]["name"] = "LastFrameActive" -defs["structs"]["ImGuiWindow"][74]["type"] = "int" +defs["structs"]["ImGuiWindow"][74]["name"] = "HitTestHoleSize" +defs["structs"]["ImGuiWindow"][74]["type"] = "ImVec2ih" defs["structs"]["ImGuiWindow"][75] = {} -defs["structs"]["ImGuiWindow"][75]["name"] = "LastFrameJustFocused" -defs["structs"]["ImGuiWindow"][75]["type"] = "int" +defs["structs"]["ImGuiWindow"][75]["name"] = "HitTestHoleOffset" +defs["structs"]["ImGuiWindow"][75]["type"] = "ImVec2ih" defs["structs"]["ImGuiWindow"][76] = {} -defs["structs"]["ImGuiWindow"][76]["name"] = "LastTimeActive" -defs["structs"]["ImGuiWindow"][76]["type"] = "float" +defs["structs"]["ImGuiWindow"][76]["name"] = "LastFrameActive" +defs["structs"]["ImGuiWindow"][76]["type"] = "int" defs["structs"]["ImGuiWindow"][77] = {} -defs["structs"]["ImGuiWindow"][77]["name"] = "ItemWidthDefault" -defs["structs"]["ImGuiWindow"][77]["type"] = "float" +defs["structs"]["ImGuiWindow"][77]["name"] = "LastFrameJustFocused" +defs["structs"]["ImGuiWindow"][77]["type"] = "int" defs["structs"]["ImGuiWindow"][78] = {} -defs["structs"]["ImGuiWindow"][78]["name"] = "StateStorage" -defs["structs"]["ImGuiWindow"][78]["type"] = "ImGuiStorage" +defs["structs"]["ImGuiWindow"][78]["name"] = "LastTimeActive" +defs["structs"]["ImGuiWindow"][78]["type"] = "float" defs["structs"]["ImGuiWindow"][79] = {} -defs["structs"]["ImGuiWindow"][79]["name"] = "ColumnsStorage" -defs["structs"]["ImGuiWindow"][79]["template_type"] = "ImGuiOldColumns" -defs["structs"]["ImGuiWindow"][79]["type"] = "ImVector_ImGuiOldColumns" +defs["structs"]["ImGuiWindow"][79]["name"] = "ItemWidthDefault" +defs["structs"]["ImGuiWindow"][79]["type"] = "float" defs["structs"]["ImGuiWindow"][80] = {} -defs["structs"]["ImGuiWindow"][80]["name"] = "FontWindowScale" -defs["structs"]["ImGuiWindow"][80]["type"] = "float" +defs["structs"]["ImGuiWindow"][80]["name"] = "StateStorage" +defs["structs"]["ImGuiWindow"][80]["type"] = "ImGuiStorage" defs["structs"]["ImGuiWindow"][81] = {} -defs["structs"]["ImGuiWindow"][81]["name"] = "FontDpiScale" -defs["structs"]["ImGuiWindow"][81]["type"] = "float" +defs["structs"]["ImGuiWindow"][81]["name"] = "ColumnsStorage" +defs["structs"]["ImGuiWindow"][81]["template_type"] = "ImGuiOldColumns" +defs["structs"]["ImGuiWindow"][81]["type"] = "ImVector_ImGuiOldColumns" defs["structs"]["ImGuiWindow"][82] = {} -defs["structs"]["ImGuiWindow"][82]["name"] = "SettingsOffset" -defs["structs"]["ImGuiWindow"][82]["type"] = "int" +defs["structs"]["ImGuiWindow"][82]["name"] = "FontWindowScale" +defs["structs"]["ImGuiWindow"][82]["type"] = "float" defs["structs"]["ImGuiWindow"][83] = {} -defs["structs"]["ImGuiWindow"][83]["name"] = "DrawList" -defs["structs"]["ImGuiWindow"][83]["type"] = "ImDrawList*" +defs["structs"]["ImGuiWindow"][83]["name"] = "FontDpiScale" +defs["structs"]["ImGuiWindow"][83]["type"] = "float" defs["structs"]["ImGuiWindow"][84] = {} -defs["structs"]["ImGuiWindow"][84]["name"] = "DrawListInst" -defs["structs"]["ImGuiWindow"][84]["type"] = "ImDrawList" +defs["structs"]["ImGuiWindow"][84]["name"] = "SettingsOffset" +defs["structs"]["ImGuiWindow"][84]["type"] = "int" defs["structs"]["ImGuiWindow"][85] = {} -defs["structs"]["ImGuiWindow"][85]["name"] = "ParentWindow" -defs["structs"]["ImGuiWindow"][85]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][85]["name"] = "DrawList" +defs["structs"]["ImGuiWindow"][85]["type"] = "ImDrawList*" defs["structs"]["ImGuiWindow"][86] = {} -defs["structs"]["ImGuiWindow"][86]["name"] = "ParentWindowInBeginStack" -defs["structs"]["ImGuiWindow"][86]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][86]["name"] = "DrawListInst" +defs["structs"]["ImGuiWindow"][86]["type"] = "ImDrawList" defs["structs"]["ImGuiWindow"][87] = {} -defs["structs"]["ImGuiWindow"][87]["name"] = "RootWindow" +defs["structs"]["ImGuiWindow"][87]["name"] = "ParentWindow" defs["structs"]["ImGuiWindow"][87]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiWindow"][88] = {} -defs["structs"]["ImGuiWindow"][88]["name"] = "RootWindowPopupTree" +defs["structs"]["ImGuiWindow"][88]["name"] = "ParentWindowInBeginStack" defs["structs"]["ImGuiWindow"][88]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiWindow"][89] = {} -defs["structs"]["ImGuiWindow"][89]["name"] = "RootWindowDockTree" +defs["structs"]["ImGuiWindow"][89]["name"] = "RootWindow" defs["structs"]["ImGuiWindow"][89]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiWindow"][90] = {} -defs["structs"]["ImGuiWindow"][90]["name"] = "RootWindowForTitleBarHighlight" +defs["structs"]["ImGuiWindow"][90]["name"] = "RootWindowPopupTree" defs["structs"]["ImGuiWindow"][90]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiWindow"][91] = {} -defs["structs"]["ImGuiWindow"][91]["name"] = "RootWindowForNav" +defs["structs"]["ImGuiWindow"][91]["name"] = "RootWindowDockTree" defs["structs"]["ImGuiWindow"][91]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiWindow"][92] = {} -defs["structs"]["ImGuiWindow"][92]["name"] = "NavLastChildNavWindow" +defs["structs"]["ImGuiWindow"][92]["name"] = "RootWindowForTitleBarHighlight" defs["structs"]["ImGuiWindow"][92]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiWindow"][93] = {} -defs["structs"]["ImGuiWindow"][93]["name"] = "NavLastIds[ImGuiNavLayer_COUNT]" -defs["structs"]["ImGuiWindow"][93]["size"] = 2 -defs["structs"]["ImGuiWindow"][93]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][93]["name"] = "RootWindowForNav" +defs["structs"]["ImGuiWindow"][93]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiWindow"][94] = {} -defs["structs"]["ImGuiWindow"][94]["name"] = "NavRectRel[ImGuiNavLayer_COUNT]" -defs["structs"]["ImGuiWindow"][94]["size"] = 2 -defs["structs"]["ImGuiWindow"][94]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][94]["name"] = "NavLastChildNavWindow" +defs["structs"]["ImGuiWindow"][94]["type"] = "ImGuiWindow*" defs["structs"]["ImGuiWindow"][95] = {} -defs["structs"]["ImGuiWindow"][95]["name"] = "MemoryDrawListIdxCapacity" -defs["structs"]["ImGuiWindow"][95]["type"] = "int" +defs["structs"]["ImGuiWindow"][95]["name"] = "NavLastIds[ImGuiNavLayer_COUNT]" +defs["structs"]["ImGuiWindow"][95]["size"] = 2 +defs["structs"]["ImGuiWindow"][95]["type"] = "ImGuiID" defs["structs"]["ImGuiWindow"][96] = {} -defs["structs"]["ImGuiWindow"][96]["name"] = "MemoryDrawListVtxCapacity" -defs["structs"]["ImGuiWindow"][96]["type"] = "int" +defs["structs"]["ImGuiWindow"][96]["name"] = "NavRectRel[ImGuiNavLayer_COUNT]" +defs["structs"]["ImGuiWindow"][96]["size"] = 2 +defs["structs"]["ImGuiWindow"][96]["type"] = "ImRect" defs["structs"]["ImGuiWindow"][97] = {} -defs["structs"]["ImGuiWindow"][97]["name"] = "MemoryCompacted" -defs["structs"]["ImGuiWindow"][97]["type"] = "bool" +defs["structs"]["ImGuiWindow"][97]["name"] = "NavRootFocusScopeId" +defs["structs"]["ImGuiWindow"][97]["type"] = "ImGuiID" defs["structs"]["ImGuiWindow"][98] = {} -defs["structs"]["ImGuiWindow"][98]["bitfield"] = "1" -defs["structs"]["ImGuiWindow"][98]["name"] = "DockIsActive" -defs["structs"]["ImGuiWindow"][98]["type"] = "bool" +defs["structs"]["ImGuiWindow"][98]["name"] = "MemoryDrawListIdxCapacity" +defs["structs"]["ImGuiWindow"][98]["type"] = "int" defs["structs"]["ImGuiWindow"][99] = {} -defs["structs"]["ImGuiWindow"][99]["bitfield"] = "1" -defs["structs"]["ImGuiWindow"][99]["name"] = "DockNodeIsVisible" -defs["structs"]["ImGuiWindow"][99]["type"] = "bool" +defs["structs"]["ImGuiWindow"][99]["name"] = "MemoryDrawListVtxCapacity" +defs["structs"]["ImGuiWindow"][99]["type"] = "int" defs["structs"]["ImGuiWindow"][100] = {} -defs["structs"]["ImGuiWindow"][100]["bitfield"] = "1" -defs["structs"]["ImGuiWindow"][100]["name"] = "DockTabIsVisible" +defs["structs"]["ImGuiWindow"][100]["name"] = "MemoryCompacted" defs["structs"]["ImGuiWindow"][100]["type"] = "bool" defs["structs"]["ImGuiWindow"][101] = {} defs["structs"]["ImGuiWindow"][101]["bitfield"] = "1" -defs["structs"]["ImGuiWindow"][101]["name"] = "DockTabWantClose" +defs["structs"]["ImGuiWindow"][101]["name"] = "DockIsActive" defs["structs"]["ImGuiWindow"][101]["type"] = "bool" defs["structs"]["ImGuiWindow"][102] = {} -defs["structs"]["ImGuiWindow"][102]["name"] = "DockOrder" -defs["structs"]["ImGuiWindow"][102]["type"] = "short" +defs["structs"]["ImGuiWindow"][102]["bitfield"] = "1" +defs["structs"]["ImGuiWindow"][102]["name"] = "DockNodeIsVisible" +defs["structs"]["ImGuiWindow"][102]["type"] = "bool" defs["structs"]["ImGuiWindow"][103] = {} -defs["structs"]["ImGuiWindow"][103]["name"] = "DockStyle" -defs["structs"]["ImGuiWindow"][103]["type"] = "ImGuiWindowDockStyle" +defs["structs"]["ImGuiWindow"][103]["bitfield"] = "1" +defs["structs"]["ImGuiWindow"][103]["name"] = "DockTabIsVisible" +defs["structs"]["ImGuiWindow"][103]["type"] = "bool" defs["structs"]["ImGuiWindow"][104] = {} -defs["structs"]["ImGuiWindow"][104]["name"] = "DockNode" -defs["structs"]["ImGuiWindow"][104]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiWindow"][104]["bitfield"] = "1" +defs["structs"]["ImGuiWindow"][104]["name"] = "DockTabWantClose" +defs["structs"]["ImGuiWindow"][104]["type"] = "bool" defs["structs"]["ImGuiWindow"][105] = {} -defs["structs"]["ImGuiWindow"][105]["name"] = "DockNodeAsHost" -defs["structs"]["ImGuiWindow"][105]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiWindow"][105]["name"] = "DockOrder" +defs["structs"]["ImGuiWindow"][105]["type"] = "short" defs["structs"]["ImGuiWindow"][106] = {} -defs["structs"]["ImGuiWindow"][106]["name"] = "DockId" -defs["structs"]["ImGuiWindow"][106]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][106]["name"] = "DockStyle" +defs["structs"]["ImGuiWindow"][106]["type"] = "ImGuiWindowDockStyle" defs["structs"]["ImGuiWindow"][107] = {} -defs["structs"]["ImGuiWindow"][107]["name"] = "DockTabItemStatusFlags" -defs["structs"]["ImGuiWindow"][107]["type"] = "ImGuiItemStatusFlags" +defs["structs"]["ImGuiWindow"][107]["name"] = "DockNode" +defs["structs"]["ImGuiWindow"][107]["type"] = "ImGuiDockNode*" defs["structs"]["ImGuiWindow"][108] = {} -defs["structs"]["ImGuiWindow"][108]["name"] = "DockTabItemRect" -defs["structs"]["ImGuiWindow"][108]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][108]["name"] = "DockNodeAsHost" +defs["structs"]["ImGuiWindow"][108]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiWindow"][109] = {} +defs["structs"]["ImGuiWindow"][109]["name"] = "DockId" +defs["structs"]["ImGuiWindow"][109]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][110] = {} +defs["structs"]["ImGuiWindow"][110]["name"] = "DockTabItemStatusFlags" +defs["structs"]["ImGuiWindow"][110]["type"] = "ImGuiItemStatusFlags" +defs["structs"]["ImGuiWindow"][111] = {} +defs["structs"]["ImGuiWindow"][111]["name"] = "DockTabItemRect" +defs["structs"]["ImGuiWindow"][111]["type"] = "ImRect" defs["structs"]["ImGuiWindowClass"] = {} defs["structs"]["ImGuiWindowClass"][1] = {} defs["structs"]["ImGuiWindowClass"][1]["name"] = "ClassId" @@ -6775,83 +7733,86 @@ defs["structs"]["ImGuiWindowTempData"][9] = {} defs["structs"]["ImGuiWindowTempData"][9]["name"] = "PrevLineTextBaseOffset" defs["structs"]["ImGuiWindowTempData"][9]["type"] = "float" defs["structs"]["ImGuiWindowTempData"][10] = {} -defs["structs"]["ImGuiWindowTempData"][10]["name"] = "Indent" -defs["structs"]["ImGuiWindowTempData"][10]["type"] = "ImVec1" +defs["structs"]["ImGuiWindowTempData"][10]["name"] = "IsSameLine" +defs["structs"]["ImGuiWindowTempData"][10]["type"] = "bool" defs["structs"]["ImGuiWindowTempData"][11] = {} -defs["structs"]["ImGuiWindowTempData"][11]["name"] = "ColumnsOffset" -defs["structs"]["ImGuiWindowTempData"][11]["type"] = "ImVec1" +defs["structs"]["ImGuiWindowTempData"][11]["name"] = "IsSetPos" +defs["structs"]["ImGuiWindowTempData"][11]["type"] = "bool" defs["structs"]["ImGuiWindowTempData"][12] = {} -defs["structs"]["ImGuiWindowTempData"][12]["name"] = "GroupOffset" +defs["structs"]["ImGuiWindowTempData"][12]["name"] = "Indent" defs["structs"]["ImGuiWindowTempData"][12]["type"] = "ImVec1" defs["structs"]["ImGuiWindowTempData"][13] = {} -defs["structs"]["ImGuiWindowTempData"][13]["name"] = "CursorStartPosLossyness" -defs["structs"]["ImGuiWindowTempData"][13]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][13]["name"] = "ColumnsOffset" +defs["structs"]["ImGuiWindowTempData"][13]["type"] = "ImVec1" defs["structs"]["ImGuiWindowTempData"][14] = {} -defs["structs"]["ImGuiWindowTempData"][14]["name"] = "NavLayerCurrent" -defs["structs"]["ImGuiWindowTempData"][14]["type"] = "ImGuiNavLayer" +defs["structs"]["ImGuiWindowTempData"][14]["name"] = "GroupOffset" +defs["structs"]["ImGuiWindowTempData"][14]["type"] = "ImVec1" defs["structs"]["ImGuiWindowTempData"][15] = {} -defs["structs"]["ImGuiWindowTempData"][15]["name"] = "NavLayersActiveMask" -defs["structs"]["ImGuiWindowTempData"][15]["type"] = "short" +defs["structs"]["ImGuiWindowTempData"][15]["name"] = "CursorStartPosLossyness" +defs["structs"]["ImGuiWindowTempData"][15]["type"] = "ImVec2" defs["structs"]["ImGuiWindowTempData"][16] = {} -defs["structs"]["ImGuiWindowTempData"][16]["name"] = "NavLayersActiveMaskNext" -defs["structs"]["ImGuiWindowTempData"][16]["type"] = "short" +defs["structs"]["ImGuiWindowTempData"][16]["name"] = "NavLayerCurrent" +defs["structs"]["ImGuiWindowTempData"][16]["type"] = "ImGuiNavLayer" defs["structs"]["ImGuiWindowTempData"][17] = {} -defs["structs"]["ImGuiWindowTempData"][17]["name"] = "NavFocusScopeIdCurrent" -defs["structs"]["ImGuiWindowTempData"][17]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindowTempData"][17]["name"] = "NavLayersActiveMask" +defs["structs"]["ImGuiWindowTempData"][17]["type"] = "short" defs["structs"]["ImGuiWindowTempData"][18] = {} -defs["structs"]["ImGuiWindowTempData"][18]["name"] = "NavHideHighlightOneFrame" -defs["structs"]["ImGuiWindowTempData"][18]["type"] = "bool" +defs["structs"]["ImGuiWindowTempData"][18]["name"] = "NavLayersActiveMaskNext" +defs["structs"]["ImGuiWindowTempData"][18]["type"] = "short" defs["structs"]["ImGuiWindowTempData"][19] = {} -defs["structs"]["ImGuiWindowTempData"][19]["name"] = "NavHasScroll" +defs["structs"]["ImGuiWindowTempData"][19]["name"] = "NavHideHighlightOneFrame" defs["structs"]["ImGuiWindowTempData"][19]["type"] = "bool" defs["structs"]["ImGuiWindowTempData"][20] = {} -defs["structs"]["ImGuiWindowTempData"][20]["name"] = "MenuBarAppending" +defs["structs"]["ImGuiWindowTempData"][20]["name"] = "NavHasScroll" defs["structs"]["ImGuiWindowTempData"][20]["type"] = "bool" defs["structs"]["ImGuiWindowTempData"][21] = {} -defs["structs"]["ImGuiWindowTempData"][21]["name"] = "MenuBarOffset" -defs["structs"]["ImGuiWindowTempData"][21]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][21]["name"] = "MenuBarAppending" +defs["structs"]["ImGuiWindowTempData"][21]["type"] = "bool" defs["structs"]["ImGuiWindowTempData"][22] = {} -defs["structs"]["ImGuiWindowTempData"][22]["name"] = "MenuColumns" -defs["structs"]["ImGuiWindowTempData"][22]["type"] = "ImGuiMenuColumns" +defs["structs"]["ImGuiWindowTempData"][22]["name"] = "MenuBarOffset" +defs["structs"]["ImGuiWindowTempData"][22]["type"] = "ImVec2" defs["structs"]["ImGuiWindowTempData"][23] = {} -defs["structs"]["ImGuiWindowTempData"][23]["name"] = "TreeDepth" -defs["structs"]["ImGuiWindowTempData"][23]["type"] = "int" +defs["structs"]["ImGuiWindowTempData"][23]["name"] = "MenuColumns" +defs["structs"]["ImGuiWindowTempData"][23]["type"] = "ImGuiMenuColumns" defs["structs"]["ImGuiWindowTempData"][24] = {} -defs["structs"]["ImGuiWindowTempData"][24]["name"] = "TreeJumpToParentOnPopMask" -defs["structs"]["ImGuiWindowTempData"][24]["type"] = "ImU32" +defs["structs"]["ImGuiWindowTempData"][24]["name"] = "TreeDepth" +defs["structs"]["ImGuiWindowTempData"][24]["type"] = "int" defs["structs"]["ImGuiWindowTempData"][25] = {} -defs["structs"]["ImGuiWindowTempData"][25]["name"] = "ChildWindows" -defs["structs"]["ImGuiWindowTempData"][25]["template_type"] = "ImGuiWindow*" -defs["structs"]["ImGuiWindowTempData"][25]["type"] = "ImVector_ImGuiWindowPtr" +defs["structs"]["ImGuiWindowTempData"][25]["name"] = "TreeJumpToParentOnPopMask" +defs["structs"]["ImGuiWindowTempData"][25]["type"] = "ImU32" defs["structs"]["ImGuiWindowTempData"][26] = {} -defs["structs"]["ImGuiWindowTempData"][26]["name"] = "StateStorage" -defs["structs"]["ImGuiWindowTempData"][26]["type"] = "ImGuiStorage*" +defs["structs"]["ImGuiWindowTempData"][26]["name"] = "ChildWindows" +defs["structs"]["ImGuiWindowTempData"][26]["template_type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindowTempData"][26]["type"] = "ImVector_ImGuiWindowPtr" defs["structs"]["ImGuiWindowTempData"][27] = {} -defs["structs"]["ImGuiWindowTempData"][27]["name"] = "CurrentColumns" -defs["structs"]["ImGuiWindowTempData"][27]["type"] = "ImGuiOldColumns*" +defs["structs"]["ImGuiWindowTempData"][27]["name"] = "StateStorage" +defs["structs"]["ImGuiWindowTempData"][27]["type"] = "ImGuiStorage*" defs["structs"]["ImGuiWindowTempData"][28] = {} -defs["structs"]["ImGuiWindowTempData"][28]["name"] = "CurrentTableIdx" -defs["structs"]["ImGuiWindowTempData"][28]["type"] = "int" +defs["structs"]["ImGuiWindowTempData"][28]["name"] = "CurrentColumns" +defs["structs"]["ImGuiWindowTempData"][28]["type"] = "ImGuiOldColumns*" defs["structs"]["ImGuiWindowTempData"][29] = {} -defs["structs"]["ImGuiWindowTempData"][29]["name"] = "LayoutType" -defs["structs"]["ImGuiWindowTempData"][29]["type"] = "ImGuiLayoutType" +defs["structs"]["ImGuiWindowTempData"][29]["name"] = "CurrentTableIdx" +defs["structs"]["ImGuiWindowTempData"][29]["type"] = "int" defs["structs"]["ImGuiWindowTempData"][30] = {} -defs["structs"]["ImGuiWindowTempData"][30]["name"] = "ParentLayoutType" +defs["structs"]["ImGuiWindowTempData"][30]["name"] = "LayoutType" defs["structs"]["ImGuiWindowTempData"][30]["type"] = "ImGuiLayoutType" defs["structs"]["ImGuiWindowTempData"][31] = {} -defs["structs"]["ImGuiWindowTempData"][31]["name"] = "ItemWidth" -defs["structs"]["ImGuiWindowTempData"][31]["type"] = "float" +defs["structs"]["ImGuiWindowTempData"][31]["name"] = "ParentLayoutType" +defs["structs"]["ImGuiWindowTempData"][31]["type"] = "ImGuiLayoutType" defs["structs"]["ImGuiWindowTempData"][32] = {} -defs["structs"]["ImGuiWindowTempData"][32]["name"] = "TextWrapPos" +defs["structs"]["ImGuiWindowTempData"][32]["name"] = "ItemWidth" defs["structs"]["ImGuiWindowTempData"][32]["type"] = "float" defs["structs"]["ImGuiWindowTempData"][33] = {} -defs["structs"]["ImGuiWindowTempData"][33]["name"] = "ItemWidthStack" -defs["structs"]["ImGuiWindowTempData"][33]["template_type"] = "float" -defs["structs"]["ImGuiWindowTempData"][33]["type"] = "ImVector_float" +defs["structs"]["ImGuiWindowTempData"][33]["name"] = "TextWrapPos" +defs["structs"]["ImGuiWindowTempData"][33]["type"] = "float" defs["structs"]["ImGuiWindowTempData"][34] = {} -defs["structs"]["ImGuiWindowTempData"][34]["name"] = "TextWrapPosStack" +defs["structs"]["ImGuiWindowTempData"][34]["name"] = "ItemWidthStack" defs["structs"]["ImGuiWindowTempData"][34]["template_type"] = "float" defs["structs"]["ImGuiWindowTempData"][34]["type"] = "ImVector_float" +defs["structs"]["ImGuiWindowTempData"][35] = {} +defs["structs"]["ImGuiWindowTempData"][35]["name"] = "TextWrapPosStack" +defs["structs"]["ImGuiWindowTempData"][35]["template_type"] = "float" +defs["structs"]["ImGuiWindowTempData"][35]["type"] = "ImVector_float" defs["structs"]["ImRect"] = {} defs["structs"]["ImRect"][1] = {} defs["structs"]["ImRect"][1]["name"] = "Min" @@ -6986,5 +7947,133 @@ defs["structs"]["StbUndoState"][5]["type"] = "int" defs["structs"]["StbUndoState"][6] = {} defs["structs"]["StbUndoState"][6]["name"] = "redo_char_point" defs["structs"]["StbUndoState"][6]["type"] = "int" +defs["templated_structs"] = {} +defs["templated_structs"]["ImBitArray"] = {} +defs["templated_structs"]["ImBitArray"][1] = {} +defs["templated_structs"]["ImBitArray"][1]["name"] = "Storage[(BITCOUNT+31)>>5]" +defs["templated_structs"]["ImBitArray"][1]["type"] = "ImU32" +defs["templated_structs"]["ImChunkStream"] = {} +defs["templated_structs"]["ImChunkStream"][1] = {} +defs["templated_structs"]["ImChunkStream"][1]["name"] = "Buf" +defs["templated_structs"]["ImChunkStream"][1]["template_type"] = "char" +defs["templated_structs"]["ImChunkStream"][1]["type"] = "ImVector_char" +defs["templated_structs"]["ImPool"] = {} +defs["templated_structs"]["ImPool"][1] = {} +defs["templated_structs"]["ImPool"][1]["name"] = "Buf" +defs["templated_structs"]["ImPool"][1]["type"] = "ImVector" +defs["templated_structs"]["ImPool"][2] = {} +defs["templated_structs"]["ImPool"][2]["name"] = "Map" +defs["templated_structs"]["ImPool"][2]["type"] = "ImGuiStorage" +defs["templated_structs"]["ImPool"][3] = {} +defs["templated_structs"]["ImPool"][3]["name"] = "FreeIdx" +defs["templated_structs"]["ImPool"][3]["type"] = "ImPoolIdx" +defs["templated_structs"]["ImPool"][4] = {} +defs["templated_structs"]["ImPool"][4]["name"] = "AliveCount" +defs["templated_structs"]["ImPool"][4]["type"] = "ImPoolIdx" +defs["templated_structs"]["ImSpan"] = {} +defs["templated_structs"]["ImSpan"][1] = {} +defs["templated_structs"]["ImSpan"][1]["name"] = "Data" +defs["templated_structs"]["ImSpan"][1]["type"] = "T*" +defs["templated_structs"]["ImSpan"][2] = {} +defs["templated_structs"]["ImSpan"][2]["name"] = "DataEnd" +defs["templated_structs"]["ImSpan"][2]["type"] = "T*" +defs["templated_structs"]["ImSpanAllocator"] = {} +defs["templated_structs"]["ImSpanAllocator"][1] = {} +defs["templated_structs"]["ImSpanAllocator"][1]["name"] = "BasePtr" +defs["templated_structs"]["ImSpanAllocator"][1]["type"] = "char*" +defs["templated_structs"]["ImSpanAllocator"][2] = {} +defs["templated_structs"]["ImSpanAllocator"][2]["name"] = "CurrOff" +defs["templated_structs"]["ImSpanAllocator"][2]["type"] = "int" +defs["templated_structs"]["ImSpanAllocator"][3] = {} +defs["templated_structs"]["ImSpanAllocator"][3]["name"] = "CurrIdx" +defs["templated_structs"]["ImSpanAllocator"][3]["type"] = "int" +defs["templated_structs"]["ImSpanAllocator"][4] = {} +defs["templated_structs"]["ImSpanAllocator"][4]["name"] = "Offsets[CHUNKS]" +defs["templated_structs"]["ImSpanAllocator"][4]["type"] = "int" +defs["templated_structs"]["ImSpanAllocator"][5] = {} +defs["templated_structs"]["ImSpanAllocator"][5]["name"] = "Sizes[CHUNKS]" +defs["templated_structs"]["ImSpanAllocator"][5]["type"] = "int" +defs["templated_structs"]["ImVector"] = {} +defs["templated_structs"]["ImVector"][1] = {} +defs["templated_structs"]["ImVector"][1]["name"] = "Size" +defs["templated_structs"]["ImVector"][1]["type"] = "int" +defs["templated_structs"]["ImVector"][2] = {} +defs["templated_structs"]["ImVector"][2]["name"] = "Capacity" +defs["templated_structs"]["ImVector"][2]["type"] = "int" +defs["templated_structs"]["ImVector"][3] = {} +defs["templated_structs"]["ImVector"][3]["name"] = "Data" +defs["templated_structs"]["ImVector"][3]["type"] = "T*" +defs["templates_done"] = {} +defs["templates_done"]["ImBitArray"] = {} +defs["templates_done"]["ImBitArray"]["ImGuiKey_NamedKey_COUNT, -ImGuiKey_NamedKey_BEGIN"] = true +defs["templates_done"]["ImChunkStream"] = {} +defs["templates_done"]["ImChunkStream"]["ImGuiTableSettings"] = true +defs["templates_done"]["ImChunkStream"]["ImGuiWindowSettings"] = true +defs["templates_done"]["ImPool"] = {} +defs["templates_done"]["ImPool"]["ImGuiTabBar"] = true +defs["templates_done"]["ImPool"]["ImGuiTable"] = true +defs["templates_done"]["ImSpan"] = {} +defs["templates_done"]["ImSpan"]["ImGuiTableCellData"] = true +defs["templates_done"]["ImSpan"]["ImGuiTableColumn"] = true +defs["templates_done"]["ImSpan"]["ImGuiTableColumnIdx"] = true +defs["templates_done"]["ImVector"] = {} +defs["templates_done"]["ImVector"]["ImDrawChannel"] = true +defs["templates_done"]["ImVector"]["ImDrawCmd"] = true +defs["templates_done"]["ImVector"]["ImDrawIdx"] = true +defs["templates_done"]["ImVector"]["ImDrawList*"] = true +defs["templates_done"]["ImVector"]["ImDrawVert"] = true +defs["templates_done"]["ImVector"]["ImFont*"] = true +defs["templates_done"]["ImVector"]["ImFontAtlasCustomRect"] = true +defs["templates_done"]["ImVector"]["ImFontConfig"] = true +defs["templates_done"]["ImVector"]["ImFontGlyph"] = true +defs["templates_done"]["ImVector"]["ImGuiColorMod"] = true +defs["templates_done"]["ImVector"]["ImGuiContextHook"] = true +defs["templates_done"]["ImVector"]["ImGuiDockNodeSettings"] = true +defs["templates_done"]["ImVector"]["ImGuiDockRequest"] = true +defs["templates_done"]["ImVector"]["ImGuiGroupData"] = true +defs["templates_done"]["ImVector"]["ImGuiID"] = true +defs["templates_done"]["ImVector"]["ImGuiInputEvent"] = true +defs["templates_done"]["ImVector"]["ImGuiItemFlags"] = true +defs["templates_done"]["ImVector"]["ImGuiKeyRoutingData"] = true +defs["templates_done"]["ImVector"]["ImGuiListClipperData"] = true +defs["templates_done"]["ImVector"]["ImGuiListClipperRange"] = true +defs["templates_done"]["ImVector"]["ImGuiOldColumnData"] = true +defs["templates_done"]["ImVector"]["ImGuiOldColumns"] = true +defs["templates_done"]["ImVector"]["ImGuiPlatformMonitor"] = true +defs["templates_done"]["ImVector"]["ImGuiPopupData"] = true +defs["templates_done"]["ImVector"]["ImGuiPtrOrIndex"] = true +defs["templates_done"]["ImVector"]["ImGuiSettingsHandler"] = true +defs["templates_done"]["ImVector"]["ImGuiShrinkWidthItem"] = true +defs["templates_done"]["ImVector"]["ImGuiStackLevelInfo"] = true +defs["templates_done"]["ImVector"]["ImGuiStoragePair"] = true +defs["templates_done"]["ImVector"]["ImGuiStyleMod"] = true +defs["templates_done"]["ImVector"]["ImGuiTabBar"] = true +defs["templates_done"]["ImVector"]["ImGuiTabItem"] = true +defs["templates_done"]["ImVector"]["ImGuiTable"] = true +defs["templates_done"]["ImVector"]["ImGuiTableColumnSortSpecs"] = true +defs["templates_done"]["ImVector"]["ImGuiTableInstanceData"] = true +defs["templates_done"]["ImVector"]["ImGuiTableTempData"] = true +defs["templates_done"]["ImVector"]["ImGuiTextRange"] = true +defs["templates_done"]["ImVector"]["ImGuiViewport*"] = true +defs["templates_done"]["ImVector"]["ImGuiViewportP*"] = true +defs["templates_done"]["ImVector"]["ImGuiWindow*"] = true +defs["templates_done"]["ImVector"]["ImGuiWindowStackData"] = true +defs["templates_done"]["ImVector"]["ImTextureID"] = true +defs["templates_done"]["ImVector"]["ImU32"] = true +defs["templates_done"]["ImVector"]["ImVec2"] = true +defs["templates_done"]["ImVector"]["ImVec4"] = true +defs["templates_done"]["ImVector"]["ImWchar"] = true +defs["templates_done"]["ImVector"]["char"] = true +defs["templates_done"]["ImVector"]["const char*"] = true +defs["templates_done"]["ImVector"]["float"] = true +defs["templates_done"]["ImVector"]["int"] = true +defs["templates_done"]["ImVector"]["unsigned char"] = true +defs["typenames"] = {} +defs["typenames"]["ImBitArray"] = "int BITCOUNT, int OFFSET = 0" +defs["typenames"]["ImChunkStream"] = "T" +defs["typenames"]["ImPool"] = "T" +defs["typenames"]["ImSpan"] = "T" +defs["typenames"]["ImSpanAllocator"] = "int CHUNKS" +defs["typenames"]["ImVector"] = "T" return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking/typedefs_dict.json b/imgui-sys/third-party/imgui-docking/typedefs_dict.json index e5acb3eb1..3cb480f0d 100644 --- a/imgui-sys/third-party/imgui-docking/typedefs_dict.json +++ b/imgui-sys/third-party/imgui-docking/typedefs_dict.json @@ -1,4 +1,5 @@ { + "ImBitArrayForNamedKeys": "ImBitArray", "ImBitVector": "struct ImBitVector", "ImColor": "struct ImColor", "ImDrawCallback": "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);", @@ -40,6 +41,7 @@ "ImGuiDataType": "int", "ImGuiDataTypeInfo": "struct ImGuiDataTypeInfo", "ImGuiDataTypeTempStorage": "struct ImGuiDataTypeTempStorage", + "ImGuiDebugLogFlags": "int", "ImGuiDir": "int", "ImGuiDockContext": "struct ImGuiDockContext", "ImGuiDockNode": "struct ImGuiDockNode", @@ -53,28 +55,40 @@ "ImGuiHoveredFlags": "int", "ImGuiID": "unsigned int", "ImGuiIO": "struct ImGuiIO", + "ImGuiInputEvent": "struct ImGuiInputEvent", + "ImGuiInputEventAppFocused": "struct ImGuiInputEventAppFocused", + "ImGuiInputEventKey": "struct ImGuiInputEventKey", + "ImGuiInputEventMouseButton": "struct ImGuiInputEventMouseButton", + "ImGuiInputEventMousePos": "struct ImGuiInputEventMousePos", + "ImGuiInputEventMouseViewport": "struct ImGuiInputEventMouseViewport", + "ImGuiInputEventMouseWheel": "struct ImGuiInputEventMouseWheel", + "ImGuiInputEventText": "struct ImGuiInputEventText", + "ImGuiInputFlags": "int", "ImGuiInputTextCallback": "int(*)(ImGuiInputTextCallbackData* data);", "ImGuiInputTextCallbackData": "struct ImGuiInputTextCallbackData", "ImGuiInputTextFlags": "int", "ImGuiInputTextState": "struct ImGuiInputTextState", "ImGuiItemFlags": "int", "ImGuiItemStatusFlags": "int", - "ImGuiKey": "int", - "ImGuiKeyModFlags": "int", + "ImGuiKeyChord": "int", + "ImGuiKeyData": "struct ImGuiKeyData", + "ImGuiKeyOwnerData": "struct ImGuiKeyOwnerData", + "ImGuiKeyRoutingData": "struct ImGuiKeyRoutingData", + "ImGuiKeyRoutingIndex": "ImS16", + "ImGuiKeyRoutingTable": "struct ImGuiKeyRoutingTable", "ImGuiLastItemData": "struct ImGuiLastItemData", "ImGuiLayoutType": "int", "ImGuiListClipper": "struct ImGuiListClipper", "ImGuiListClipperData": "struct ImGuiListClipperData", "ImGuiListClipperRange": "struct ImGuiListClipperRange", + "ImGuiLocEntry": "struct ImGuiLocEntry", "ImGuiMemAllocFunc": "void*(*)(size_t sz,void* user_data);", "ImGuiMemFreeFunc": "void(*)(void* ptr,void* user_data);", "ImGuiMenuColumns": "struct ImGuiMenuColumns", "ImGuiMetricsConfig": "struct ImGuiMetricsConfig", "ImGuiMouseButton": "int", "ImGuiMouseCursor": "int", - "ImGuiNavDirSourceFlags": "int", "ImGuiNavHighlightFlags": "int", - "ImGuiNavInput": "int", "ImGuiNavItemData": "struct ImGuiNavItemData", "ImGuiNavMoveFlags": "int", "ImGuiNextItemData": "struct ImGuiNextItemData", @@ -87,6 +101,7 @@ "ImGuiOnceUponAFrame": "struct ImGuiOnceUponAFrame", "ImGuiPayload": "struct ImGuiPayload", "ImGuiPlatformIO": "struct ImGuiPlatformIO", + "ImGuiPlatformImeData": "struct ImGuiPlatformImeData", "ImGuiPlatformMonitor": "struct ImGuiPlatformMonitor", "ImGuiPopupData": "struct ImGuiPopupData", "ImGuiPopupFlags": "int", @@ -123,6 +138,7 @@ "ImGuiTableColumnsSettings": "struct ImGuiTableColumnsSettings", "ImGuiTableDrawChannelIdx": "ImU8", "ImGuiTableFlags": "int", + "ImGuiTableInstanceData": "struct ImGuiTableInstanceData", "ImGuiTableRowFlags": "int", "ImGuiTableSettings": "struct ImGuiTableSettings", "ImGuiTableSortSpecs": "struct ImGuiTableSortSpecs", @@ -130,6 +146,7 @@ "ImGuiTextBuffer": "struct ImGuiTextBuffer", "ImGuiTextFilter": "struct ImGuiTextFilter", "ImGuiTextFlags": "int", + "ImGuiTextIndex": "struct ImGuiTextIndex", "ImGuiTextRange": "struct ImGuiTextRange", "ImGuiTooltipFlags": "int", "ImGuiTreeNodeFlags": "int", @@ -147,12 +164,12 @@ "ImRect": "struct ImRect", "ImS16": "signed short", "ImS32": "signed int", - "ImS64": "int64_t", + "ImS64": "signed long long", "ImS8": "signed char", "ImTextureID": "void*", "ImU16": "unsigned short", "ImU32": "unsigned int", - "ImU64": "uint64_t", + "ImU64": "unsigned long long", "ImU8": "unsigned char", "ImVec1": "struct ImVec1", "ImVec2": "struct ImVec2", diff --git a/imgui-sys/third-party/imgui-docking/typedefs_dict.lua b/imgui-sys/third-party/imgui-docking/typedefs_dict.lua index 4f5a92d2b..eba4c8694 100644 --- a/imgui-sys/third-party/imgui-docking/typedefs_dict.lua +++ b/imgui-sys/third-party/imgui-docking/typedefs_dict.lua @@ -1,4 +1,5 @@ local defs = {} +defs["ImBitArrayForNamedKeys"] = "ImBitArray" defs["ImBitVector"] = "struct ImBitVector" defs["ImColor"] = "struct ImColor" defs["ImDrawCallback"] = "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);" @@ -40,6 +41,7 @@ defs["ImGuiDataAuthority"] = "int" defs["ImGuiDataType"] = "int" defs["ImGuiDataTypeInfo"] = "struct ImGuiDataTypeInfo" defs["ImGuiDataTypeTempStorage"] = "struct ImGuiDataTypeTempStorage" +defs["ImGuiDebugLogFlags"] = "int" defs["ImGuiDir"] = "int" defs["ImGuiDockContext"] = "struct ImGuiDockContext" defs["ImGuiDockNode"] = "struct ImGuiDockNode" @@ -53,28 +55,40 @@ defs["ImGuiGroupData"] = "struct ImGuiGroupData" defs["ImGuiHoveredFlags"] = "int" defs["ImGuiID"] = "unsigned int" defs["ImGuiIO"] = "struct ImGuiIO" +defs["ImGuiInputEvent"] = "struct ImGuiInputEvent" +defs["ImGuiInputEventAppFocused"] = "struct ImGuiInputEventAppFocused" +defs["ImGuiInputEventKey"] = "struct ImGuiInputEventKey" +defs["ImGuiInputEventMouseButton"] = "struct ImGuiInputEventMouseButton" +defs["ImGuiInputEventMousePos"] = "struct ImGuiInputEventMousePos" +defs["ImGuiInputEventMouseViewport"] = "struct ImGuiInputEventMouseViewport" +defs["ImGuiInputEventMouseWheel"] = "struct ImGuiInputEventMouseWheel" +defs["ImGuiInputEventText"] = "struct ImGuiInputEventText" +defs["ImGuiInputFlags"] = "int" defs["ImGuiInputTextCallback"] = "int(*)(ImGuiInputTextCallbackData* data);" defs["ImGuiInputTextCallbackData"] = "struct ImGuiInputTextCallbackData" defs["ImGuiInputTextFlags"] = "int" defs["ImGuiInputTextState"] = "struct ImGuiInputTextState" defs["ImGuiItemFlags"] = "int" defs["ImGuiItemStatusFlags"] = "int" -defs["ImGuiKey"] = "int" -defs["ImGuiKeyModFlags"] = "int" +defs["ImGuiKeyChord"] = "int" +defs["ImGuiKeyData"] = "struct ImGuiKeyData" +defs["ImGuiKeyOwnerData"] = "struct ImGuiKeyOwnerData" +defs["ImGuiKeyRoutingData"] = "struct ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingIndex"] = "ImS16" +defs["ImGuiKeyRoutingTable"] = "struct ImGuiKeyRoutingTable" defs["ImGuiLastItemData"] = "struct ImGuiLastItemData" defs["ImGuiLayoutType"] = "int" defs["ImGuiListClipper"] = "struct ImGuiListClipper" defs["ImGuiListClipperData"] = "struct ImGuiListClipperData" defs["ImGuiListClipperRange"] = "struct ImGuiListClipperRange" +defs["ImGuiLocEntry"] = "struct ImGuiLocEntry" defs["ImGuiMemAllocFunc"] = "void*(*)(size_t sz,void* user_data);" defs["ImGuiMemFreeFunc"] = "void(*)(void* ptr,void* user_data);" defs["ImGuiMenuColumns"] = "struct ImGuiMenuColumns" defs["ImGuiMetricsConfig"] = "struct ImGuiMetricsConfig" defs["ImGuiMouseButton"] = "int" defs["ImGuiMouseCursor"] = "int" -defs["ImGuiNavDirSourceFlags"] = "int" defs["ImGuiNavHighlightFlags"] = "int" -defs["ImGuiNavInput"] = "int" defs["ImGuiNavItemData"] = "struct ImGuiNavItemData" defs["ImGuiNavMoveFlags"] = "int" defs["ImGuiNextItemData"] = "struct ImGuiNextItemData" @@ -87,6 +101,7 @@ defs["ImGuiOldColumns"] = "struct ImGuiOldColumns" defs["ImGuiOnceUponAFrame"] = "struct ImGuiOnceUponAFrame" defs["ImGuiPayload"] = "struct ImGuiPayload" defs["ImGuiPlatformIO"] = "struct ImGuiPlatformIO" +defs["ImGuiPlatformImeData"] = "struct ImGuiPlatformImeData" defs["ImGuiPlatformMonitor"] = "struct ImGuiPlatformMonitor" defs["ImGuiPopupData"] = "struct ImGuiPopupData" defs["ImGuiPopupFlags"] = "int" @@ -123,6 +138,7 @@ defs["ImGuiTableColumnSortSpecs"] = "struct ImGuiTableColumnSortSpecs" defs["ImGuiTableColumnsSettings"] = "struct ImGuiTableColumnsSettings" defs["ImGuiTableDrawChannelIdx"] = "ImU8" defs["ImGuiTableFlags"] = "int" +defs["ImGuiTableInstanceData"] = "struct ImGuiTableInstanceData" defs["ImGuiTableRowFlags"] = "int" defs["ImGuiTableSettings"] = "struct ImGuiTableSettings" defs["ImGuiTableSortSpecs"] = "struct ImGuiTableSortSpecs" @@ -130,6 +146,7 @@ defs["ImGuiTableTempData"] = "struct ImGuiTableTempData" defs["ImGuiTextBuffer"] = "struct ImGuiTextBuffer" defs["ImGuiTextFilter"] = "struct ImGuiTextFilter" defs["ImGuiTextFlags"] = "int" +defs["ImGuiTextIndex"] = "struct ImGuiTextIndex" defs["ImGuiTextRange"] = "struct ImGuiTextRange" defs["ImGuiTooltipFlags"] = "int" defs["ImGuiTreeNodeFlags"] = "int" @@ -147,12 +164,12 @@ defs["ImPoolIdx"] = "int" defs["ImRect"] = "struct ImRect" defs["ImS16"] = "signed short" defs["ImS32"] = "signed int" -defs["ImS64"] = "int64_t" +defs["ImS64"] = "signed long long" defs["ImS8"] = "signed char" defs["ImTextureID"] = "void*" defs["ImU16"] = "unsigned short" defs["ImU32"] = "unsigned int" -defs["ImU64"] = "uint64_t" +defs["ImU64"] = "unsigned long long" defs["ImU8"] = "unsigned char" defs["ImVec1"] = "struct ImVec1" defs["ImVec2"] = "struct ImVec2" diff --git a/imgui-sys/third-party/imgui-master/cimgui.cpp b/imgui-sys/third-party/imgui-master/cimgui.cpp index 2a81cc5b1..af31a4873 100644 --- a/imgui-sys/third-party/imgui-master/cimgui.cpp +++ b/imgui-sys/third-party/imgui-master/cimgui.cpp @@ -1,8 +1,16 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui -//based on imgui.h file version "1.86" from Dear ImGui https://github.com/ocornut/imgui - -#include "./imgui/imgui.h" +//based on imgui.h file version "1.89.1 WIP" 18910 from Dear ImGui https://github.com/ocornut/imgui +#ifdef IMGUI_ENABLE_FREETYPE +#ifndef CIMGUI_FREETYPE +#error "IMGUI_FREETYPE should be defined for Freetype linking" +#endif +#else #ifdef CIMGUI_FREETYPE +#error "IMGUI_FREETYPE should not be defined without freetype generated cimgui" +#endif +#endif +#include "./imgui/imgui.h" +#ifdef IMGUI_ENABLE_FREETYPE #include "./imgui/misc/freetype/imgui_freetype.h" #endif #include "./imgui/imgui_internal.h" @@ -10,7 +18,7 @@ -CIMGUI_API ImVec2* ImVec2_ImVec2Nil(void) +CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void) { return IM_NEW(ImVec2)(); } @@ -18,11 +26,11 @@ CIMGUI_API void ImVec2_destroy(ImVec2* self) { IM_DELETE(self); } -CIMGUI_API ImVec2* ImVec2_ImVec2Float(float _x,float _y) +CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x,float _y) { return IM_NEW(ImVec2)(_x,_y); } -CIMGUI_API ImVec4* ImVec4_ImVec4Nil(void) +CIMGUI_API ImVec4* ImVec4_ImVec4_Nil(void) { return IM_NEW(ImVec4)(); } @@ -30,7 +38,7 @@ CIMGUI_API void ImVec4_destroy(ImVec4* self) { IM_DELETE(self); } -CIMGUI_API ImVec4* ImVec4_ImVec4Float(float _x,float _y,float _z,float _w) +CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x,float _y,float _z,float _w) { return IM_NEW(ImVec4)(_x,_y,_z,_w); } @@ -82,6 +90,10 @@ CIMGUI_API void igShowMetricsWindow(bool* p_open) { return ImGui::ShowMetricsWindow(p_open); } +CIMGUI_API void igShowDebugLogWindow(bool* p_open) +{ + return ImGui::ShowDebugLogWindow(p_open); +} CIMGUI_API void igShowStackToolWindow(bool* p_open) { return ImGui::ShowStackToolWindow(p_open); @@ -130,11 +142,11 @@ CIMGUI_API void igEnd() { return ImGui::End(); } -CIMGUI_API bool igBeginChildStr(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags) +CIMGUI_API bool igBeginChild_Str(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags) { return ImGui::BeginChild(str_id,size,border,flags); } -CIMGUI_API bool igBeginChildID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags) +CIMGUI_API bool igBeginChild_ID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags) { return ImGui::BeginChild(id,size,border,flags); } @@ -202,23 +214,27 @@ CIMGUI_API void igSetNextWindowFocus() { return ImGui::SetNextWindowFocus(); } +CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll) +{ + return ImGui::SetNextWindowScroll(scroll); +} CIMGUI_API void igSetNextWindowBgAlpha(float alpha) { return ImGui::SetNextWindowBgAlpha(alpha); } -CIMGUI_API void igSetWindowPosVec2(const ImVec2 pos,ImGuiCond cond) +CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos,ImGuiCond cond) { return ImGui::SetWindowPos(pos,cond); } -CIMGUI_API void igSetWindowSizeVec2(const ImVec2 size,ImGuiCond cond) +CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size,ImGuiCond cond) { return ImGui::SetWindowSize(size,cond); } -CIMGUI_API void igSetWindowCollapsedBool(bool collapsed,ImGuiCond cond) +CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed,ImGuiCond cond) { return ImGui::SetWindowCollapsed(collapsed,cond); } -CIMGUI_API void igSetWindowFocusNil() +CIMGUI_API void igSetWindowFocus_Nil() { return ImGui::SetWindowFocus(); } @@ -226,19 +242,19 @@ CIMGUI_API void igSetWindowFontScale(float scale) { return ImGui::SetWindowFontScale(scale); } -CIMGUI_API void igSetWindowPosStr(const char* name,const ImVec2 pos,ImGuiCond cond) +CIMGUI_API void igSetWindowPos_Str(const char* name,const ImVec2 pos,ImGuiCond cond) { return ImGui::SetWindowPos(name,pos,cond); } -CIMGUI_API void igSetWindowSizeStr(const char* name,const ImVec2 size,ImGuiCond cond) +CIMGUI_API void igSetWindowSize_Str(const char* name,const ImVec2 size,ImGuiCond cond) { return ImGui::SetWindowSize(name,size,cond); } -CIMGUI_API void igSetWindowCollapsedStr(const char* name,bool collapsed,ImGuiCond cond) +CIMGUI_API void igSetWindowCollapsed_Str(const char* name,bool collapsed,ImGuiCond cond) { return ImGui::SetWindowCollapsed(name,collapsed,cond); } -CIMGUI_API void igSetWindowFocusStr(const char* name) +CIMGUI_API void igSetWindowFocus_Str(const char* name) { return ImGui::SetWindowFocus(name); } @@ -306,11 +322,11 @@ CIMGUI_API void igPopFont() { return ImGui::PopFont(); } -CIMGUI_API void igPushStyleColorU32(ImGuiCol idx,ImU32 col) +CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col) { return ImGui::PushStyleColor(idx,col); } -CIMGUI_API void igPushStyleColorVec4(ImGuiCol idx,const ImVec4 col) +CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx,const ImVec4 col) { return ImGui::PushStyleColor(idx,col); } @@ -318,11 +334,11 @@ CIMGUI_API void igPopStyleColor(int count) { return ImGui::PopStyleColor(count); } -CIMGUI_API void igPushStyleVarFloat(ImGuiStyleVar idx,float val) +CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx,float val) { return ImGui::PushStyleVar(idx,val); } -CIMGUI_API void igPushStyleVarVec2(ImGuiStyleVar idx,const ImVec2 val) +CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx,const ImVec2 val) { return ImGui::PushStyleVar(idx,val); } @@ -382,15 +398,15 @@ CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut) { *pOut = ImGui::GetFontTexUvWhitePixel(); } -CIMGUI_API ImU32 igGetColorU32Col(ImGuiCol idx,float alpha_mul) +CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul) { return ImGui::GetColorU32(idx,alpha_mul); } -CIMGUI_API ImU32 igGetColorU32Vec4(const ImVec4 col) +CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col) { return ImGui::GetColorU32(col); } -CIMGUI_API ImU32 igGetColorU32U32(ImU32 col) +CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col) { return ImGui::GetColorU32(col); } @@ -490,19 +506,19 @@ CIMGUI_API float igGetFrameHeightWithSpacing() { return ImGui::GetFrameHeightWithSpacing(); } -CIMGUI_API void igPushIDStr(const char* str_id) +CIMGUI_API void igPushID_Str(const char* str_id) { return ImGui::PushID(str_id); } -CIMGUI_API void igPushIDStrStr(const char* str_id_begin,const char* str_id_end) +CIMGUI_API void igPushID_StrStr(const char* str_id_begin,const char* str_id_end) { return ImGui::PushID(str_id_begin,str_id_end); } -CIMGUI_API void igPushIDPtr(const void* ptr_id) +CIMGUI_API void igPushID_Ptr(const void* ptr_id) { return ImGui::PushID(ptr_id); } -CIMGUI_API void igPushIDInt(int int_id) +CIMGUI_API void igPushID_Int(int int_id) { return ImGui::PushID(int_id); } @@ -510,15 +526,15 @@ CIMGUI_API void igPopID() { return ImGui::PopID(); } -CIMGUI_API ImGuiID igGetIDStr(const char* str_id) +CIMGUI_API ImGuiID igGetID_Str(const char* str_id) { return ImGui::GetID(str_id); } -CIMGUI_API ImGuiID igGetIDStrStr(const char* str_id_begin,const char* str_id_end) +CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin,const char* str_id_end) { return ImGui::GetID(str_id_begin,str_id_end); } -CIMGUI_API ImGuiID igGetIDPtr(const void* ptr_id) +CIMGUI_API ImGuiID igGetID_Ptr(const void* ptr_id) { return ImGui::GetID(ptr_id); } @@ -608,31 +624,23 @@ CIMGUI_API bool igArrowButton(const char* str_id,ImGuiDir dir) { return ImGui::ArrowButton(str_id,dir); } -CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col) -{ - return ImGui::Image(user_texture_id,size,uv0,uv1,tint_col,border_col); -} -CIMGUI_API bool igImageButton(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,int frame_padding,const ImVec4 bg_col,const ImVec4 tint_col) -{ - return ImGui::ImageButton(user_texture_id,size,uv0,uv1,frame_padding,bg_col,tint_col); -} CIMGUI_API bool igCheckbox(const char* label,bool* v) { return ImGui::Checkbox(label,v); } -CIMGUI_API bool igCheckboxFlagsIntPtr(const char* label,int* flags,int flags_value) +CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label,int* flags,int flags_value) { return ImGui::CheckboxFlags(label,flags,flags_value); } -CIMGUI_API bool igCheckboxFlagsUintPtr(const char* label,unsigned int* flags,unsigned int flags_value) +CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label,unsigned int* flags,unsigned int flags_value) { return ImGui::CheckboxFlags(label,flags,flags_value); } -CIMGUI_API bool igRadioButtonBool(const char* label,bool active) +CIMGUI_API bool igRadioButton_Bool(const char* label,bool active) { return ImGui::RadioButton(label,active); } -CIMGUI_API bool igRadioButtonIntPtr(const char* label,int* v,int v_button) +CIMGUI_API bool igRadioButton_IntPtr(const char* label,int* v,int v_button) { return ImGui::RadioButton(label,v,v_button); } @@ -644,6 +652,14 @@ CIMGUI_API void igBullet() { return ImGui::Bullet(); } +CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col) +{ + return ImGui::Image(user_texture_id,size,uv0,uv1,tint_col,border_col); +} +CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col) +{ + return ImGui::ImageButton(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col); +} CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags) { return ImGui::BeginCombo(label,preview_value,flags); @@ -652,15 +668,15 @@ CIMGUI_API void igEndCombo() { return ImGui::EndCombo(); } -CIMGUI_API bool igComboStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items) +CIMGUI_API bool igCombo_Str_arr(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 igComboStr(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items) +CIMGUI_API bool igCombo_Str(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 igComboFnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items) +CIMGUI_API bool igCombo_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items) { return ImGui::Combo(label,current_item,items_getter,data,items_count,popup_max_height_in_items); } @@ -840,7 +856,7 @@ CIMGUI_API bool igColorPicker4(const char* label,float col[4],ImGuiColorEditFlag { return ImGui::ColorPicker4(label,col,flags,ref_col); } -CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,ImVec2 size) +CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size) { return ImGui::ColorButton(desc_id,col,flags,size); } @@ -848,11 +864,11 @@ CIMGUI_API void igSetColorEditOptions(ImGuiColorEditFlags flags) { return ImGui::SetColorEditOptions(flags); } -CIMGUI_API bool igTreeNodeStr(const char* label) +CIMGUI_API bool igTreeNode_Str(const char* label) { return ImGui::TreeNode(label); } -CIMGUI_API bool igTreeNodeStrStr(const char* str_id,const char* fmt,...) +CIMGUI_API bool igTreeNode_StrStr(const char* str_id,const char* fmt,...) { va_list args; va_start(args, fmt); @@ -860,7 +876,7 @@ CIMGUI_API bool igTreeNodeStrStr(const char* str_id,const char* fmt,...) va_end(args); return ret; } -CIMGUI_API bool igTreeNodePtr(const void* ptr_id,const char* fmt,...) +CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id,const char* fmt,...) { va_list args; va_start(args, fmt); @@ -868,19 +884,19 @@ CIMGUI_API bool igTreeNodePtr(const void* ptr_id,const char* fmt,...) va_end(args); return ret; } -CIMGUI_API bool igTreeNodeVStr(const char* str_id,const char* fmt,va_list args) +CIMGUI_API bool igTreeNodeV_Str(const char* str_id,const char* fmt,va_list args) { return ImGui::TreeNodeV(str_id,fmt,args); } -CIMGUI_API bool igTreeNodeVPtr(const void* ptr_id,const char* fmt,va_list args) +CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id,const char* fmt,va_list args) { return ImGui::TreeNodeV(ptr_id,fmt,args); } -CIMGUI_API bool igTreeNodeExStr(const char* label,ImGuiTreeNodeFlags flags) +CIMGUI_API bool igTreeNodeEx_Str(const char* label,ImGuiTreeNodeFlags flags) { return ImGui::TreeNodeEx(label,flags); } -CIMGUI_API bool igTreeNodeExStrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...) +CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...) { va_list args; va_start(args, fmt); @@ -888,7 +904,7 @@ CIMGUI_API bool igTreeNodeExStrStr(const char* str_id,ImGuiTreeNodeFlags flags,c va_end(args); return ret; } -CIMGUI_API bool igTreeNodeExPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...) +CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...) { va_list args; va_start(args, fmt); @@ -896,19 +912,19 @@ CIMGUI_API bool igTreeNodeExPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,cons va_end(args); return ret; } -CIMGUI_API bool igTreeNodeExVStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) +CIMGUI_API bool igTreeNodeExV_Str(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) { return ImGui::TreeNodeExV(str_id,flags,fmt,args); } -CIMGUI_API bool igTreeNodeExVPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) +CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) { return ImGui::TreeNodeExV(ptr_id,flags,fmt,args); } -CIMGUI_API void igTreePushStr(const char* str_id) +CIMGUI_API void igTreePush_Str(const char* str_id) { return ImGui::TreePush(str_id); } -CIMGUI_API void igTreePushPtr(const void* ptr_id) +CIMGUI_API void igTreePush_Ptr(const void* ptr_id) { return ImGui::TreePush(ptr_id); } @@ -920,11 +936,11 @@ CIMGUI_API float igGetTreeNodeToLabelSpacing() { return ImGui::GetTreeNodeToLabelSpacing(); } -CIMGUI_API bool igCollapsingHeaderTreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags) +CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags) { return ImGui::CollapsingHeader(label,flags); } -CIMGUI_API bool igCollapsingHeaderBoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags) +CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags) { return ImGui::CollapsingHeader(label,p_visible,flags); } @@ -932,11 +948,11 @@ CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond) { return ImGui::SetNextItemOpen(is_open,cond); } -CIMGUI_API bool igSelectableBool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size) +CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size) { return ImGui::Selectable(label,selected,flags,size); } -CIMGUI_API bool igSelectableBoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size) +CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size) { return ImGui::Selectable(label,p_selected,flags,size); } @@ -948,43 +964,43 @@ CIMGUI_API void igEndListBox() { return ImGui::EndListBox(); } -CIMGUI_API bool igListBoxStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items) +CIMGUI_API bool igListBox_Str_arr(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 igListBoxFnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items) +CIMGUI_API bool igListBox_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items) { return ImGui::ListBox(label,current_item,items_getter,data,items_count,height_in_items); } -CIMGUI_API void igPlotLinesFloatPtr(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 igPlotLines_FloatPtr(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) { return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride); } -CIMGUI_API void igPlotLinesFnFloatPtr(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 igPlotLines_FnFloatPtr(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) { return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size); } -CIMGUI_API void igPlotHistogramFloatPtr(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 igPlotHistogram_FloatPtr(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) { return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride); } -CIMGUI_API void igPlotHistogramFnFloatPtr(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 igPlotHistogram_FnFloatPtr(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) { return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size); } -CIMGUI_API void igValueBool(const char* prefix,bool b) +CIMGUI_API void igValue_Bool(const char* prefix,bool b) { return ImGui::Value(prefix,b); } -CIMGUI_API void igValueInt(const char* prefix,int v) +CIMGUI_API void igValue_Int(const char* prefix,int v) { return ImGui::Value(prefix,v); } -CIMGUI_API void igValueUint(const char* prefix,unsigned int v) +CIMGUI_API void igValue_Uint(const char* prefix,unsigned int v) { return ImGui::Value(prefix,v); } -CIMGUI_API void igValueFloat(const char* prefix,float v,const char* float_format) +CIMGUI_API void igValue_Float(const char* prefix,float v,const char* float_format) { return ImGui::Value(prefix,v,float_format); } @@ -1012,11 +1028,11 @@ CIMGUI_API void igEndMenu() { return ImGui::EndMenu(); } -CIMGUI_API bool igMenuItemBool(const char* label,const char* shortcut,bool selected,bool enabled) +CIMGUI_API bool igMenuItem_Bool(const char* label,const char* shortcut,bool selected,bool enabled) { return ImGui::MenuItem(label,shortcut,selected,enabled); } -CIMGUI_API bool igMenuItemBoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled) +CIMGUI_API bool igMenuItem_BoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled) { return ImGui::MenuItem(label,shortcut,p_selected,enabled); } @@ -1051,11 +1067,11 @@ CIMGUI_API void igEndPopup() { return ImGui::EndPopup(); } -CIMGUI_API void igOpenPopupStr(const char* str_id,ImGuiPopupFlags popup_flags) +CIMGUI_API void igOpenPopup_Str(const char* str_id,ImGuiPopupFlags popup_flags) { return ImGui::OpenPopup(str_id,popup_flags); } -CIMGUI_API void igOpenPopupID(ImGuiID id,ImGuiPopupFlags popup_flags) +CIMGUI_API void igOpenPopup_ID(ImGuiID id,ImGuiPopupFlags popup_flags) { return ImGui::OpenPopup(id,popup_flags); } @@ -1355,11 +1371,19 @@ CIMGUI_API ImGuiViewport* igGetMainViewport() { return ImGui::GetMainViewport(); } -CIMGUI_API bool igIsRectVisibleNil(const ImVec2 size) +CIMGUI_API ImDrawList* igGetBackgroundDrawList() +{ + return ImGui::GetBackgroundDrawList(); +} +CIMGUI_API ImDrawList* igGetForegroundDrawList() +{ + return ImGui::GetForegroundDrawList(); +} +CIMGUI_API bool igIsRectVisible_Nil(const ImVec2 size) { return ImGui::IsRectVisible(size); } -CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max) +CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min,const ImVec2 rect_max) { return ImGui::IsRectVisible(rect_min,rect_max); } @@ -1371,14 +1395,6 @@ CIMGUI_API int igGetFrameCount() { return ImGui::GetFrameCount(); } -CIMGUI_API ImDrawList* igGetBackgroundDrawList() -{ - return ImGui::GetBackgroundDrawList(); -} -CIMGUI_API ImDrawList* igGetForegroundDrawList() -{ - return ImGui::GetForegroundDrawList(); -} CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData() { return ImGui::GetDrawListSharedData(); @@ -1423,29 +1439,29 @@ CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,floa { return ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b); } -CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key) +CIMGUI_API bool igIsKeyDown(ImGuiKey key) { - return ImGui::GetKeyIndex(imgui_key); + return ImGui::IsKeyDown(key); } -CIMGUI_API bool igIsKeyDown(int user_key_index) +CIMGUI_API bool igIsKeyPressed(ImGuiKey key,bool repeat) { - return ImGui::IsKeyDown(user_key_index); + return ImGui::IsKeyPressed(key,repeat); } -CIMGUI_API bool igIsKeyPressed(int user_key_index,bool repeat) +CIMGUI_API bool igIsKeyReleased(ImGuiKey key) { - return ImGui::IsKeyPressed(user_key_index,repeat); + return ImGui::IsKeyReleased(key); } -CIMGUI_API bool igIsKeyReleased(int user_key_index) +CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate) { - return ImGui::IsKeyReleased(user_key_index); + return ImGui::GetKeyPressedAmount(key,repeat_delay,rate); } -CIMGUI_API int igGetKeyPressedAmount(int key_index,float repeat_delay,float rate) +CIMGUI_API const char* igGetKeyName(ImGuiKey key) { - return ImGui::GetKeyPressedAmount(key_index,repeat_delay,rate); + return ImGui::GetKeyName(key); } -CIMGUI_API void igCaptureKeyboardFromApp(bool want_capture_keyboard_value) +CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) { - return ImGui::CaptureKeyboardFromApp(want_capture_keyboard_value); + return ImGui::SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button) { @@ -1507,9 +1523,9 @@ CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type) { return ImGui::SetMouseCursor(cursor_type); } -CIMGUI_API void igCaptureMouseFromApp(bool want_capture_mouse_value) +CIMGUI_API void igSetNextFrameWantCaptureMouse(bool want_capture_mouse) { - return ImGui::CaptureMouseFromApp(want_capture_mouse_value); + return ImGui::SetNextFrameWantCaptureMouse(want_capture_mouse); } CIMGUI_API const char* igGetClipboardText() { @@ -1535,6 +1551,10 @@ CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size) { return ImGui::SaveIniSettingsToMemory(out_ini_size); } +CIMGUI_API void igDebugTextEncoding(const char* text) +{ + return ImGui::DebugTextEncoding(text); +} CIMGUI_API bool igDebugCheckVersionAndDataLayout(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); @@ -1567,6 +1587,30 @@ CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor) { return self->ScaleAllSizes(scale_factor); } +CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self,ImGuiKey key,bool down) +{ + return self->AddKeyEvent(key,down); +} +CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self,ImGuiKey key,bool down,float v) +{ + return self->AddKeyAnalogEvent(key,down,v); +} +CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self,float x,float y) +{ + return self->AddMousePosEvent(x,y); +} +CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self,int button,bool down) +{ + return self->AddMouseButtonEvent(button,down); +} +CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self,float wh_x,float wh_y) +{ + return self->AddMouseWheelEvent(wh_x,wh_y); +} +CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused) +{ + return self->AddFocusEvent(focused); +} CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self,unsigned int c) { return self->AddInputCharacter(c); @@ -1579,9 +1623,13 @@ CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* str) { return self->AddInputCharactersUTF8(str); } -CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused) +CIMGUI_API void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index) { - return self->AddFocusEvent(focused); + return self->SetKeyEventNativeData(key,native_keycode,native_scancode,native_legacy_index); +} +CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self,bool accepting_events) +{ + return self->SetAppAcceptingEvents(accepting_events); } CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self) { @@ -1703,7 +1751,7 @@ CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self) { return self->IsActive(); } -CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeNil(void) +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(void) { return IM_NEW(ImGuiTextRange)(); } @@ -1711,7 +1759,7 @@ CIMGUI_API void ImGuiTextRange_destroy(ImGuiTextRange* self) { IM_DELETE(self); } -CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeStr(const char* _b,const char* _e) +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b,const char* _e) { return IM_NEW(ImGuiTextRange)(_b,_e); } @@ -1767,7 +1815,7 @@ CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,v { return self->appendfv(fmt,args); } -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairInt(ImGuiID _key,int _val_i) +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key,int _val_i) { return IM_NEW(ImGuiStoragePair)(_key,_val_i); } @@ -1775,11 +1823,11 @@ CIMGUI_API void ImGuiStoragePair_destroy(ImGuiStoragePair* self) { IM_DELETE(self); } -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairFloat(ImGuiID _key,float _val_f) +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key,float _val_f) { return IM_NEW(ImGuiStoragePair)(_key,_val_f); } -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairPtr(ImGuiID _key,void* _val_p) +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key,void* _val_p) { return IM_NEW(ImGuiStoragePair)(_key,_val_p); } @@ -1867,7 +1915,7 @@ CIMGUI_API void ImGuiListClipper_ForceDisplayRangeByIndices(ImGuiListClipper* se { return self->ForceDisplayRangeByIndices(item_min,item_max); } -CIMGUI_API ImColor* ImColor_ImColorNil(void) +CIMGUI_API ImColor* ImColor_ImColor_Nil(void) { return IM_NEW(ImColor)(); } @@ -1875,21 +1923,21 @@ CIMGUI_API void ImColor_destroy(ImColor* self) { IM_DELETE(self); } -CIMGUI_API ImColor* ImColor_ImColorInt(int r,int g,int b,int a) +CIMGUI_API ImColor* ImColor_ImColor_Float(float r,float g,float b,float a) { return IM_NEW(ImColor)(r,g,b,a); } -CIMGUI_API ImColor* ImColor_ImColorU32(ImU32 rgba) +CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col) { - return IM_NEW(ImColor)(rgba); + return IM_NEW(ImColor)(col); } -CIMGUI_API ImColor* ImColor_ImColorFloat(float r,float g,float b,float a) +CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a) { return IM_NEW(ImColor)(r,g,b,a); } -CIMGUI_API ImColor* ImColor_ImColorVec4(const ImVec4 col) +CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba) { - return IM_NEW(ImColor)(col); + return IM_NEW(ImColor)(rgba); } CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a) { @@ -1939,7 +1987,7 @@ CIMGUI_API void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self,Im { return self->SetCurrentChannel(draw_list,channel_idx); } -CIMGUI_API ImDrawList* ImDrawList_ImDrawList(const ImDrawListSharedData* shared_data) +CIMGUI_API ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data) { return IM_NEW(ImDrawList)(shared_data); } @@ -1947,7 +1995,7 @@ CIMGUI_API void ImDrawList_destroy(ImDrawList* self) { IM_DELETE(self); } -CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect) +CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect) { return self->PushClipRect(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect); } @@ -2023,11 +2071,11 @@ CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,fl { return self->AddNgonFilled(center,radius,col,num_segments); } -CIMGUI_API void ImDrawList_AddTextVec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end) +CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end) { return self->AddText(pos,col,text_begin,text_end); } -CIMGUI_API void ImDrawList_AddTextFontPtr(ImDrawList* self,const ImFont* font,float font_size,const 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_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect) { return self->AddText(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect); } @@ -2343,6 +2391,10 @@ CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self) { return self->GetGlyphRangesDefault(); } +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self) +{ + return self->GetGlyphRangesGreek(); +} CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self) { return self->GetGlyphRangesKorean(); @@ -2427,11 +2479,11 @@ CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,con { return self->CalcWordWrapPositionA(scale,text,text_end,wrap_width); } -CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c) +CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c) { return self->RenderChar(draw_list,size,pos,col,c); } -CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip) +CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip) { return self->RenderText(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip); } @@ -2479,6 +2531,18 @@ CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self) { *pOut = self->GetWorkCenter(); } +CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void) +{ + return IM_NEW(ImGuiPlatformImeData)(); +} +CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key) +{ + return ImGui::GetKeyIndex(key); +} diff --git a/imgui-sys/third-party/imgui-master/cimgui.h b/imgui-sys/third-party/imgui-master/cimgui.h index c65f8c2d2..3aded16cc 100644 --- a/imgui-sys/third-party/imgui-master/cimgui.h +++ b/imgui-sys/third-party/imgui-master/cimgui.h @@ -1,5 +1,5 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui -//based on imgui.h file version "1.86" from Dear ImGui https://github.com/ocornut/imgui +//based on imgui.h file version "1.89.1 WIP" 18910 from Dear ImGui https://github.com/ocornut/imgui #ifndef CIMGUI_INCLUDED #define CIMGUI_INCLUDED #include @@ -10,9 +10,6 @@ #else #define API __declspec(dllexport) #endif - #ifndef __GNUC__ - #define snprintf sprintf_s - #endif #else #ifdef __GNUC__ #define API __attribute__((__visibility__("default"))) @@ -41,41 +38,37 @@ typedef unsigned __int64 ImU64; #ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS -typedef struct ImFontAtlasCustomRect ImFontAtlasCustomRect; -typedef struct ImDrawCmdHeader ImDrawCmdHeader; -typedef struct ImGuiStoragePair ImGuiStoragePair; -typedef struct ImGuiTextRange ImGuiTextRange; -typedef struct ImVec4 ImVec4; -typedef struct ImVec2 ImVec2; -typedef struct ImGuiViewport ImGuiViewport; -typedef struct ImGuiTextFilter ImGuiTextFilter; -typedef struct ImGuiTextBuffer ImGuiTextBuffer; -typedef struct ImGuiTableColumnSortSpecs ImGuiTableColumnSortSpecs; -typedef struct ImGuiTableSortSpecs ImGuiTableSortSpecs; -typedef struct ImGuiStyle ImGuiStyle; -typedef struct ImGuiStorage ImGuiStorage; -typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData; -typedef struct ImGuiPayload ImGuiPayload; -typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame; -typedef struct ImGuiListClipper ImGuiListClipper; -typedef struct ImGuiInputTextCallbackData ImGuiInputTextCallbackData; -typedef struct ImGuiIO ImGuiIO; -typedef struct ImGuiContext ImGuiContext; -typedef struct ImColor ImColor; -typedef struct ImFontGlyphRangesBuilder ImFontGlyphRangesBuilder; -typedef struct ImFontGlyph ImFontGlyph; -typedef struct ImFontConfig ImFontConfig; -typedef struct ImFontBuilderIO ImFontBuilderIO; -typedef struct ImFontAtlas ImFontAtlas; -typedef struct ImFont ImFont; -typedef struct ImDrawVert ImDrawVert; -typedef struct ImDrawListSplitter ImDrawListSplitter; -typedef struct ImDrawListSharedData ImDrawListSharedData; -typedef struct ImDrawList ImDrawList; -typedef struct ImDrawData ImDrawData; -typedef struct ImDrawCmd ImDrawCmd; -typedef struct ImDrawChannel ImDrawChannel; +typedef struct ImDrawChannel ImDrawChannel; +typedef struct ImDrawCmd ImDrawCmd; +typedef struct ImDrawData ImDrawData; +typedef struct ImDrawList ImDrawList; +typedef struct ImDrawListSharedData ImDrawListSharedData; +typedef struct ImDrawListSplitter ImDrawListSplitter; +typedef struct ImDrawVert ImDrawVert; +typedef struct ImFont ImFont; +typedef struct ImFontAtlas ImFontAtlas; +typedef struct ImFontBuilderIO ImFontBuilderIO; +typedef struct ImFontConfig ImFontConfig; +typedef struct ImFontGlyph ImFontGlyph; +typedef struct ImFontGlyphRangesBuilder ImFontGlyphRangesBuilder; +typedef struct ImColor ImColor; +typedef struct ImGuiContext ImGuiContext; +typedef struct ImGuiIO ImGuiIO; +typedef struct ImGuiInputTextCallbackData ImGuiInputTextCallbackData; +typedef struct ImGuiKeyData ImGuiKeyData; +typedef struct ImGuiListClipper ImGuiListClipper; +typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame; +typedef struct ImGuiPayload ImGuiPayload; +typedef struct ImGuiPlatformImeData ImGuiPlatformImeData; +typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData; +typedef struct ImGuiStorage ImGuiStorage; +typedef struct ImGuiStyle ImGuiStyle; +typedef struct ImGuiTableSortSpecs ImGuiTableSortSpecs; +typedef struct ImGuiTableColumnSortSpecs ImGuiTableColumnSortSpecs; +typedef struct ImGuiTextBuffer ImGuiTextBuffer; +typedef struct ImGuiTextFilter ImGuiTextFilter; +typedef struct ImGuiViewport ImGuiViewport; struct ImDrawChannel; struct ImDrawCmd; struct ImDrawData; @@ -93,9 +86,11 @@ struct ImColor; struct ImGuiContext; struct ImGuiIO; struct ImGuiInputTextCallbackData; +struct ImGuiKeyData; struct ImGuiListClipper; struct ImGuiOnceUponAFrame; struct ImGuiPayload; +struct ImGuiPlatformImeData; struct ImGuiSizeCallbackData; struct ImGuiStorage; struct ImGuiStyle; @@ -108,8 +103,6 @@ typedef int ImGuiCol; typedef int ImGuiCond; typedef int ImGuiDataType; typedef int ImGuiDir; -typedef int ImGuiKey; -typedef int ImGuiNavInput; typedef int ImGuiMouseButton; typedef int ImGuiMouseCursor; typedef int ImGuiSortDirection; @@ -127,7 +120,7 @@ typedef int ImGuiDragDropFlags; typedef int ImGuiFocusedFlags; typedef int ImGuiHoveredFlags; typedef int ImGuiInputTextFlags; -typedef int ImGuiKeyModFlags; +typedef int ImGuiKeyChord; typedef int ImGuiPopupFlags; typedef int ImGuiSelectableFlags; typedef int ImGuiSliderFlags; @@ -148,8 +141,8 @@ typedef signed short ImS16; typedef unsigned short ImU16; typedef signed int ImS32; typedef unsigned int ImU32; -typedef int64_t ImS64; -typedef uint64_t ImU64; +typedef signed long long ImS64; +typedef unsigned long long ImU64; typedef unsigned short ImWchar16; typedef unsigned int ImWchar32; typedef ImWchar32 ImWchar; @@ -157,30 +150,12 @@ 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); -typedef struct ImVector{int Size;int Capacity;void* Data;} ImVector; -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_ImDrawVert {int Size;int Capacity;ImDrawVert* Data;} ImVector_ImDrawVert; -typedef struct ImVector_ImFontPtr {int Size;int Capacity;ImFont** Data;} ImVector_ImFontPtr; -typedef struct ImVector_ImFontAtlasCustomRect {int Size;int Capacity;ImFontAtlasCustomRect* Data;} ImVector_ImFontAtlasCustomRect; -typedef struct ImVector_ImFontConfig {int Size;int Capacity;ImFontConfig* Data;} ImVector_ImFontConfig; -typedef struct ImVector_ImFontGlyph {int Size;int Capacity;ImFontGlyph* Data;} ImVector_ImFontGlyph; -typedef struct ImVector_ImGuiStoragePair {int Size;int Capacity;ImGuiStoragePair* Data;} ImVector_ImGuiStoragePair; -typedef struct ImVector_ImGuiTextRange {int Size;int Capacity;ImGuiTextRange* Data;} ImVector_ImGuiTextRange; -typedef struct ImVector_ImTextureID {int Size;int Capacity;ImTextureID* Data;} ImVector_ImTextureID; -typedef struct ImVector_ImU32 {int Size;int Capacity;ImU32* Data;} ImVector_ImU32; -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 ImVec2 ImVec2; struct ImVec2 { float x, y; }; +typedef struct ImVec4 ImVec4; struct ImVec4 { float x, y, z, w; @@ -215,7 +190,7 @@ typedef enum { ImGuiWindowFlags_Tooltip = 1 << 25, ImGuiWindowFlags_Popup = 1 << 26, ImGuiWindowFlags_Modal = 1 << 27, - ImGuiWindowFlags_ChildMenu = 1 << 28 + ImGuiWindowFlags_ChildMenu = 1 << 28, }ImGuiWindowFlags_; typedef enum { ImGuiInputTextFlags_None = 0, @@ -238,7 +213,8 @@ typedef enum { ImGuiInputTextFlags_NoUndoRedo = 1 << 16, ImGuiInputTextFlags_CharsScientific = 1 << 17, ImGuiInputTextFlags_CallbackResize = 1 << 18, - ImGuiInputTextFlags_CallbackEdit = 1 << 19 + ImGuiInputTextFlags_CallbackEdit = 1 << 19, + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, }ImGuiInputTextFlags_; typedef enum { ImGuiTreeNodeFlags_None = 0, @@ -256,7 +232,7 @@ typedef enum { ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, - ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, }ImGuiTreeNodeFlags_; typedef enum { ImGuiPopupFlags_None = 0, @@ -269,7 +245,7 @@ typedef enum { ImGuiPopupFlags_NoOpenOverItems = 1 << 6, ImGuiPopupFlags_AnyPopupId = 1 << 7, ImGuiPopupFlags_AnyPopupLevel = 1 << 8, - ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, }ImGuiPopupFlags_; typedef enum { ImGuiSelectableFlags_None = 0, @@ -277,7 +253,7 @@ typedef enum { ImGuiSelectableFlags_SpanAllColumns = 1 << 1, ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, ImGuiSelectableFlags_Disabled = 1 << 3, - ImGuiSelectableFlags_AllowItemOverlap = 1 << 4 + ImGuiSelectableFlags_AllowItemOverlap = 1 << 4, }ImGuiSelectableFlags_; typedef enum { ImGuiComboFlags_None = 0, @@ -288,7 +264,7 @@ typedef enum { ImGuiComboFlags_HeightLargest = 1 << 4, ImGuiComboFlags_NoArrowButton = 1 << 5, ImGuiComboFlags_NoPreview = 1 << 6, - ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, }ImGuiComboFlags_; typedef enum { ImGuiTabBarFlags_None = 0, @@ -301,7 +277,7 @@ typedef enum { ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, - ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, }ImGuiTabBarFlags_; typedef enum { ImGuiTabItemFlags_None = 0, @@ -312,7 +288,7 @@ typedef enum { ImGuiTabItemFlags_NoTooltip = 1 << 4, ImGuiTabItemFlags_NoReorder = 1 << 5, ImGuiTabItemFlags_Leading = 1 << 6, - ImGuiTabItemFlags_Trailing = 1 << 7 + ImGuiTabItemFlags_Trailing = 1 << 7, }ImGuiTabItemFlags_; typedef enum { ImGuiTableFlags_None = 0, @@ -350,7 +326,7 @@ typedef enum { ImGuiTableFlags_ScrollY = 1 << 25, ImGuiTableFlags_SortMulti = 1 << 26, ImGuiTableFlags_SortTristate = 1 << 27, - ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, }ImGuiTableFlags_; typedef enum { ImGuiTableColumnFlags_None = 0, @@ -379,17 +355,17 @@ typedef enum { ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, - ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30 + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, }ImGuiTableColumnFlags_; typedef enum { ImGuiTableRowFlags_None = 0, - ImGuiTableRowFlags_Headers = 1 << 0 + ImGuiTableRowFlags_Headers = 1 << 0, }ImGuiTableRowFlags_; typedef enum { ImGuiTableBgTarget_None = 0, ImGuiTableBgTarget_RowBg0 = 1, ImGuiTableBgTarget_RowBg1 = 2, - ImGuiTableBgTarget_CellBg = 3 + ImGuiTableBgTarget_CellBg = 3, }ImGuiTableBgTarget_; typedef enum { ImGuiFocusedFlags_None = 0, @@ -397,7 +373,7 @@ typedef enum { ImGuiFocusedFlags_RootWindow = 1 << 1, ImGuiFocusedFlags_AnyWindow = 1 << 2, ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, - ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, }ImGuiFocusedFlags_; typedef enum { ImGuiHoveredFlags_None = 0, @@ -409,8 +385,12 @@ typedef enum { ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 8, ImGuiHoveredFlags_AllowWhenDisabled = 1 << 9, + ImGuiHoveredFlags_NoNavOverride = 1 << 10, ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, - ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + ImGuiHoveredFlags_DelayNormal = 1 << 11, + ImGuiHoveredFlags_DelayShort = 1 << 12, + ImGuiHoveredFlags_NoSharedDelay = 1 << 13, }ImGuiHoveredFlags_; typedef enum { ImGuiDragDropFlags_None = 0, @@ -423,7 +403,7 @@ typedef enum { ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, - ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, }ImGuiDragDropFlags_; typedef enum { ImGuiDataType_S8, @@ -452,61 +432,166 @@ typedef enum { ImGuiSortDirection_Descending = 2 }ImGuiSortDirection_; typedef enum { - ImGuiKey_Tab, - ImGuiKey_LeftArrow, - ImGuiKey_RightArrow, - ImGuiKey_UpArrow, - ImGuiKey_DownArrow, - ImGuiKey_PageUp, - ImGuiKey_PageDown, - ImGuiKey_Home, - ImGuiKey_End, - ImGuiKey_Insert, - ImGuiKey_Delete, - ImGuiKey_Backspace, - ImGuiKey_Space, - ImGuiKey_Enter, - ImGuiKey_Escape, - ImGuiKey_KeyPadEnter, - ImGuiKey_A, - ImGuiKey_C, - ImGuiKey_V, - ImGuiKey_X, - ImGuiKey_Y, - ImGuiKey_Z, - ImGuiKey_COUNT -}ImGuiKey_; -typedef enum { - ImGuiKeyModFlags_None = 0, - ImGuiKeyModFlags_Ctrl = 1 << 0, - ImGuiKeyModFlags_Shift = 1 << 1, - ImGuiKeyModFlags_Alt = 1 << 2, - ImGuiKeyModFlags_Super = 1 << 3 -}ImGuiKeyModFlags_; +ImGuiKey_None=0, +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_Apostrophe=584, +ImGuiKey_Comma=585, +ImGuiKey_Minus=586, +ImGuiKey_Period=587, +ImGuiKey_Slash=588, +ImGuiKey_Semicolon=589, +ImGuiKey_Equal=590, +ImGuiKey_LeftBracket=591, +ImGuiKey_Backslash=592, +ImGuiKey_RightBracket=593, +ImGuiKey_GraveAccent=594, +ImGuiKey_CapsLock=595, +ImGuiKey_ScrollLock=596, +ImGuiKey_NumLock=597, +ImGuiKey_PrintScreen=598, +ImGuiKey_Pause=599, +ImGuiKey_Keypad0=600, +ImGuiKey_Keypad1=601, +ImGuiKey_Keypad2=602, +ImGuiKey_Keypad3=603, +ImGuiKey_Keypad4=604, +ImGuiKey_Keypad5=605, +ImGuiKey_Keypad6=606, +ImGuiKey_Keypad7=607, +ImGuiKey_Keypad8=608, +ImGuiKey_Keypad9=609, +ImGuiKey_KeypadDecimal=610, +ImGuiKey_KeypadDivide=611, +ImGuiKey_KeypadMultiply=612, +ImGuiKey_KeypadSubtract=613, +ImGuiKey_KeypadAdd=614, +ImGuiKey_KeypadEnter=615, +ImGuiKey_KeypadEqual=616, +ImGuiKey_GamepadStart=617, +ImGuiKey_GamepadBack=618, +ImGuiKey_GamepadFaceLeft=619, +ImGuiKey_GamepadFaceRight=620, +ImGuiKey_GamepadFaceUp=621, +ImGuiKey_GamepadFaceDown=622, +ImGuiKey_GamepadDpadLeft=623, +ImGuiKey_GamepadDpadRight=624, +ImGuiKey_GamepadDpadUp=625, +ImGuiKey_GamepadDpadDown=626, +ImGuiKey_GamepadL1=627, +ImGuiKey_GamepadR1=628, +ImGuiKey_GamepadL2=629, +ImGuiKey_GamepadR2=630, +ImGuiKey_GamepadL3=631, +ImGuiKey_GamepadR3=632, +ImGuiKey_GamepadLStickLeft=633, +ImGuiKey_GamepadLStickRight=634, +ImGuiKey_GamepadLStickUp=635, +ImGuiKey_GamepadLStickDown=636, +ImGuiKey_GamepadRStickLeft=637, +ImGuiKey_GamepadRStickRight=638, +ImGuiKey_GamepadRStickUp=639, +ImGuiKey_GamepadRStickDown=640, +ImGuiKey_MouseLeft=641, +ImGuiKey_MouseRight=642, +ImGuiKey_MouseMiddle=643, +ImGuiKey_MouseX1=644, +ImGuiKey_MouseX2=645, +ImGuiKey_MouseWheelX=646, +ImGuiKey_MouseWheelY=647, +ImGuiKey_ReservedForModCtrl=648, +ImGuiKey_ReservedForModShift=649, +ImGuiKey_ReservedForModAlt=650, +ImGuiKey_ReservedForModSuper=651, +ImGuiKey_COUNT=652, +ImGuiMod_None=0, +ImGuiMod_Ctrl=1 << 12, +ImGuiMod_Shift=1 << 13, +ImGuiMod_Alt=1 << 14, +ImGuiMod_Super=1 << 15, +ImGuiMod_Mask_=0xF000, +ImGuiMod_Shortcut=ImGuiMod_Ctrl, +ImGuiKey_NamedKey_BEGIN=512, +ImGuiKey_NamedKey_END=ImGuiKey_COUNT, +ImGuiKey_NamedKey_COUNT=ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +ImGuiKey_KeysData_SIZE=ImGuiKey_COUNT, +ImGuiKey_KeysData_OFFSET=0, +}ImGuiKey; typedef enum { - ImGuiNavInput_Activate, - ImGuiNavInput_Cancel, - ImGuiNavInput_Input, - ImGuiNavInput_Menu, - ImGuiNavInput_DpadLeft, - ImGuiNavInput_DpadRight, - ImGuiNavInput_DpadUp, - ImGuiNavInput_DpadDown, - ImGuiNavInput_LStickLeft, - ImGuiNavInput_LStickRight, - ImGuiNavInput_LStickUp, - ImGuiNavInput_LStickDown, - ImGuiNavInput_FocusPrev, - ImGuiNavInput_FocusNext, - ImGuiNavInput_TweakSlow, - ImGuiNavInput_TweakFast, - ImGuiNavInput_KeyLeft_, - ImGuiNavInput_KeyRight_, - ImGuiNavInput_KeyUp_, - ImGuiNavInput_KeyDown_, + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, ImGuiNavInput_COUNT, - ImGuiNavInput_InternalStart_ = ImGuiNavInput_KeyLeft_ -}ImGuiNavInput_; +}ImGuiNavInput; typedef enum { ImGuiConfigFlags_None = 0, ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, @@ -516,14 +601,14 @@ typedef enum { ImGuiConfigFlags_NoMouse = 1 << 4, ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, ImGuiConfigFlags_IsSRGB = 1 << 20, - ImGuiConfigFlags_IsTouchScreen = 1 << 21 + ImGuiConfigFlags_IsTouchScreen = 1 << 21, }ImGuiConfigFlags_; typedef enum { ImGuiBackendFlags_None = 0, ImGuiBackendFlags_HasGamepad = 1 << 0, ImGuiBackendFlags_HasMouseCursors = 1 << 1, ImGuiBackendFlags_HasSetMousePos = 1 << 2, - ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3 + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, }ImGuiBackendFlags_; typedef enum { ImGuiCol_Text, @@ -615,7 +700,7 @@ typedef enum { ImGuiButtonFlags_MouseButtonRight = 1 << 1, ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, - ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, }ImGuiButtonFlags_; typedef enum { ImGuiColorEditFlags_None = 0, @@ -646,7 +731,7 @@ typedef enum { ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, - ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, }ImGuiColorEditFlags_; typedef enum { ImGuiSliderFlags_None = 0, @@ -654,7 +739,7 @@ typedef enum { ImGuiSliderFlags_Logarithmic = 1 << 5, ImGuiSliderFlags_NoRoundToFormat = 1 << 6, ImGuiSliderFlags_NoInput = 1 << 7, - ImGuiSliderFlags_InvalidMask_ = 0x7000000F + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, }ImGuiSliderFlags_; typedef enum { ImGuiMouseButton_Left = 0, @@ -680,7 +765,7 @@ typedef enum { ImGuiCond_Always = 1 << 0, ImGuiCond_Once = 1 << 1, ImGuiCond_FirstUseEver = 1 << 2, - ImGuiCond_Appearing = 1 << 3 + ImGuiCond_Appearing = 1 << 3, }ImGuiCond_; struct ImGuiStyle { @@ -726,6 +811,15 @@ struct ImGuiStyle float CircleTessellationMaxError; ImVec4 Colors[ImGuiCol_COUNT]; }; +struct ImGuiKeyData +{ + bool Down; + float DownDuration; + float DownDurationPrev; + float AnalogValue; +}; +typedef struct ImVector_ImWchar {int Size;int Capacity;ImWchar* Data;} ImVector_ImWchar; + struct ImGuiIO { ImGuiConfigFlags ConfigFlags; @@ -738,9 +832,10 @@ struct ImGuiIO float MouseDoubleClickTime; float MouseDoubleClickMaxDist; float MouseDragThreshold; - int KeyMap[ImGuiKey_COUNT]; float KeyRepeatDelay; float KeyRepeatRate; + float HoverDelayNormal; + float HoverDelayShort; void* UserData; ImFontAtlas*Fonts; float FontGlobalScale; @@ -749,7 +844,9 @@ struct ImGuiIO ImVec2 DisplayFramebufferScale; bool MouseDrawCursor; bool ConfigMacOSXBehaviors; + bool ConfigInputTrickleEventQueue; bool ConfigInputTextCursorBlink; + bool ConfigInputTextEnterKeepActive; bool ConfigDragClickToInputText; bool ConfigWindowsResizeFromEdges; bool ConfigWindowsMoveFromTitleBarOnly; @@ -762,18 +859,8 @@ struct ImGuiIO const char* (*GetClipboardTextFn)(void* user_data); void (*SetClipboardTextFn)(void* user_data, const char* text); void* ClipboardUserData; - void (*ImeSetInputScreenPosFn)(int x, int y); - void* ImeWindowHandle; - ImVec2 MousePos; - bool MouseDown[5]; - float MouseWheel; - float MouseWheelH; - bool KeyCtrl; - bool KeyShift; - bool KeyAlt; - bool KeySuper; - bool KeysDown[512]; - float NavInputs[ImGuiNavInput_COUNT]; + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + void* _UnusedPadding; bool WantCaptureMouse; bool WantCaptureKeyboard; bool WantTextInput; @@ -788,9 +875,20 @@ struct ImGuiIO int MetricsActiveWindows; int MetricsActiveAllocations; ImVec2 MouseDelta; + int KeyMap[ImGuiKey_COUNT]; + bool KeysDown[ImGuiKey_COUNT]; + float NavInputs[ImGuiNavInput_COUNT]; + ImVec2 MousePos; + bool MouseDown[5]; + float MouseWheel; + float MouseWheelH; + bool KeyCtrl; + bool KeyShift; + bool KeyAlt; + bool KeySuper; + ImGuiKeyChord KeyMods; + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; bool WantCaptureMouseUnlessPopupClose; - ImGuiKeyModFlags KeyMods; - ImGuiKeyModFlags KeyModsPrev; ImVec2 MousePosPrev; ImVec2 MouseClickedPos[5]; double MouseClickedTime[5]; @@ -803,14 +901,12 @@ struct ImGuiIO bool MouseDownOwnedUnlessPopupClose[5]; float MouseDownDuration[5]; float MouseDownDurationPrev[5]; - ImVec2 MouseDragMaxDistanceAbs[5]; float MouseDragMaxDistanceSqr[5]; - float KeysDownDuration[512]; - float KeysDownDurationPrev[512]; - float NavInputsDownDuration[ImGuiNavInput_COUNT]; - float NavInputsDownDurationPrev[ImGuiNavInput_COUNT]; float PenPressure; bool AppFocusLost; + bool AppAcceptingEvents; + ImS8 BackendUsingLegacyKeyArrays; + bool BackendUsingLegacyNavInputArray; ImWchar16 InputQueueSurrogate; ImVector_ImWchar InputQueueCharacters; }; @@ -869,12 +965,19 @@ struct ImGuiTextRange const char* b; const char* e; }; +typedef struct ImGuiTextRange ImGuiTextRange; + +typedef struct ImVector_ImGuiTextRange {int Size;int Capacity;ImGuiTextRange* Data;} ImVector_ImGuiTextRange; + struct ImGuiTextFilter { char InputBuf[256]; ImVector_ImGuiTextRange Filters; int CountGrep; }; +typedef struct ImGuiTextRange ImGuiTextRange; +typedef struct ImVector_char {int Size;int Capacity;char* Data;} ImVector_char; + struct ImGuiTextBuffer { ImVector_char Buf; @@ -884,10 +987,15 @@ struct ImGuiStoragePair ImGuiID key; union { int val_i; float val_f; void* val_p; }; }; +typedef struct ImGuiStoragePair ImGuiStoragePair; + +typedef struct ImVector_ImGuiStoragePair {int Size;int Capacity;ImGuiStoragePair* Data;} ImVector_ImGuiStoragePair; + struct ImGuiStorage { ImVector_ImGuiStoragePair Data; }; +typedef struct ImGuiStoragePair ImGuiStoragePair; struct ImGuiListClipper { int DisplayStart; @@ -901,6 +1009,7 @@ struct ImColor { ImVec4 Value; }; +typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); struct ImDrawCmd { ImVec4 ClipRect; @@ -917,17 +1026,24 @@ struct ImDrawVert ImVec2 uv; ImU32 col; }; +typedef struct ImDrawCmdHeader ImDrawCmdHeader; struct ImDrawCmdHeader { ImVec4 ClipRect; ImTextureID TextureId; unsigned int VtxOffset; }; +typedef struct ImVector_ImDrawCmd {int Size;int Capacity;ImDrawCmd* Data;} ImVector_ImDrawCmd; + +typedef struct ImVector_ImDrawIdx {int Size;int Capacity;ImDrawIdx* Data;} ImVector_ImDrawIdx; + struct ImDrawChannel { ImVector_ImDrawCmd _CmdBuffer; ImVector_ImDrawIdx _IdxBuffer; }; +typedef struct ImVector_ImDrawChannel {int Size;int Capacity;ImDrawChannel* Data;} ImVector_ImDrawChannel; + struct ImDrawListSplitter { int _Current; @@ -948,15 +1064,23 @@ typedef enum { ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, - ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, }ImDrawFlags_; typedef enum { ImDrawListFlags_None = 0, ImDrawListFlags_AntiAliasedLines = 1 << 0, ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, ImDrawListFlags_AntiAliasedFill = 1 << 2, - ImDrawListFlags_AllowVtxOffset = 1 << 3 + ImDrawListFlags_AllowVtxOffset = 1 << 3, }ImDrawListFlags_; +typedef struct ImVector_ImDrawVert {int Size;int Capacity;ImDrawVert* Data;} ImVector_ImDrawVert; + +typedef struct ImVector_ImVec4 {int Size;int Capacity;ImVec4* Data;} ImVector_ImVec4; + +typedef struct ImVector_ImTextureID {int Size;int Capacity;ImTextureID* Data;} ImVector_ImTextureID; + +typedef struct ImVector_ImVec2 {int Size;int Capacity;ImVec2* Data;} ImVector_ImVec2; + struct ImDrawList { ImVector_ImDrawCmd CmdBuffer; @@ -964,7 +1088,7 @@ struct ImDrawList ImVector_ImDrawVert VtxBuffer; ImDrawListFlags Flags; unsigned int _VtxCurrentIdx; - const ImDrawListSharedData* _Data; + ImDrawListSharedData* _Data; const char* _OwnerName; ImDrawVert* _VtxWritePtr; ImDrawIdx* _IdxWritePtr; @@ -1017,10 +1141,13 @@ struct ImFontGlyph float X0, Y0, X1, Y1; float U0, V0, U1, V1; }; +typedef struct ImVector_ImU32 {int Size;int Capacity;ImU32* Data;} ImVector_ImU32; + struct ImFontGlyphRangesBuilder { ImVector_ImU32 UsedChars; }; +typedef struct ImFontAtlasCustomRect ImFontAtlasCustomRect; struct ImFontAtlasCustomRect { unsigned short Width, Height; @@ -1034,8 +1161,14 @@ typedef enum { ImFontAtlasFlags_None = 0, ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, ImFontAtlasFlags_NoMouseCursors = 1 << 1, - ImFontAtlasFlags_NoBakedLines = 1 << 2 + ImFontAtlasFlags_NoBakedLines = 1 << 2, }ImFontAtlasFlags_; +typedef struct ImVector_ImFontPtr {int Size;int Capacity;ImFont** Data;} ImVector_ImFontPtr; + +typedef struct ImVector_ImFontAtlasCustomRect {int Size;int Capacity;ImFontAtlasCustomRect* Data;} ImVector_ImFontAtlasCustomRect; + +typedef struct ImVector_ImFontConfig {int Size;int Capacity;ImFontConfig* Data;} ImVector_ImFontConfig; + struct ImFontAtlas { ImFontAtlasFlags Flags; @@ -1060,6 +1193,10 @@ struct ImFontAtlas int PackIdMouseCursors; int PackIdLines; }; +typedef struct ImVector_float {int Size;int Capacity;float* Data;} ImVector_float; + +typedef struct ImVector_ImFontGlyph {int Size;int Capacity;ImFontGlyph* Data;} ImVector_ImFontGlyph; + struct ImFont { ImVector_float IndexAdvanceX; @@ -1084,7 +1221,7 @@ typedef enum { ImGuiViewportFlags_None = 0, ImGuiViewportFlags_IsPlatformWindow = 1 << 0, ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, - ImGuiViewportFlags_OwnedByApp = 1 << 2 + ImGuiViewportFlags_OwnedByApp = 1 << 2, }ImGuiViewportFlags_; struct ImGuiViewport { @@ -1093,6 +1230,13 @@ struct ImGuiViewport ImVec2 Size; ImVec2 WorkPos; ImVec2 WorkSize; + void* PlatformHandleRaw; +}; +struct ImGuiPlatformImeData +{ + bool WantVisible; + ImVec2 InputPos; + float InputLineHeight; }; #else struct GLFWwindow; @@ -1101,8 +1245,8 @@ typedef union SDL_Event SDL_Event; #endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS #ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS -typedef ImGuiStorage::ImGuiStoragePair ImGuiStoragePair; -typedef ImGuiTextFilter::ImGuiTextRange ImGuiTextRange; +typedef struct ImGuiStorage::ImGuiStoragePair ImGuiStoragePair; +typedef struct ImGuiTextFilter::ImGuiTextRange ImGuiTextRange; typedef ImVector ImVector_ImDrawChannel; typedef ImVector ImVector_ImDrawCmd; typedef ImVector ImVector_ImDrawIdx; @@ -1121,12 +1265,12 @@ typedef ImVector ImVector_ImWchar; typedef ImVector ImVector_char; typedef ImVector ImVector_float; #endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS -CIMGUI_API ImVec2* ImVec2_ImVec2Nil(void); +CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void); CIMGUI_API void ImVec2_destroy(ImVec2* self); -CIMGUI_API ImVec2* ImVec2_ImVec2Float(float _x,float _y); -CIMGUI_API ImVec4* ImVec4_ImVec4Nil(void); +CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x,float _y); +CIMGUI_API ImVec4* ImVec4_ImVec4_Nil(void); CIMGUI_API void ImVec4_destroy(ImVec4* self); -CIMGUI_API ImVec4* ImVec4_ImVec4Float(float _x,float _y,float _z,float _w); +CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x,float _y,float _z,float _w); CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas); CIMGUI_API void igDestroyContext(ImGuiContext* ctx); CIMGUI_API ImGuiContext* igGetCurrentContext(void); @@ -1139,6 +1283,7 @@ CIMGUI_API void igRender(void); CIMGUI_API ImDrawData* igGetDrawData(void); CIMGUI_API void igShowDemoWindow(bool* p_open); CIMGUI_API void igShowMetricsWindow(bool* p_open); +CIMGUI_API void igShowDebugLogWindow(bool* p_open); CIMGUI_API void igShowStackToolWindow(bool* p_open); CIMGUI_API void igShowAboutWindow(bool* p_open); CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref); @@ -1151,8 +1296,8 @@ CIMGUI_API void igStyleColorsLight(ImGuiStyle* dst); CIMGUI_API void igStyleColorsClassic(ImGuiStyle* dst); CIMGUI_API bool igBegin(const char* name,bool* p_open,ImGuiWindowFlags flags); CIMGUI_API void igEnd(void); -CIMGUI_API bool igBeginChildStr(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags); -CIMGUI_API bool igBeginChildID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags); +CIMGUI_API bool igBeginChild_Str(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags); +CIMGUI_API bool igBeginChild_ID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags); CIMGUI_API void igEndChild(void); CIMGUI_API bool igIsWindowAppearing(void); CIMGUI_API bool igIsWindowCollapsed(void); @@ -1169,16 +1314,17 @@ CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min,const ImVec CIMGUI_API void igSetNextWindowContentSize(const ImVec2 size); CIMGUI_API void igSetNextWindowCollapsed(bool collapsed,ImGuiCond cond); CIMGUI_API void igSetNextWindowFocus(void); +CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll); CIMGUI_API void igSetNextWindowBgAlpha(float alpha); -CIMGUI_API void igSetWindowPosVec2(const ImVec2 pos,ImGuiCond cond); -CIMGUI_API void igSetWindowSizeVec2(const ImVec2 size,ImGuiCond cond); -CIMGUI_API void igSetWindowCollapsedBool(bool collapsed,ImGuiCond cond); -CIMGUI_API void igSetWindowFocusNil(void); +CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowFocus_Nil(void); CIMGUI_API void igSetWindowFontScale(float scale); -CIMGUI_API void igSetWindowPosStr(const char* name,const ImVec2 pos,ImGuiCond cond); -CIMGUI_API void igSetWindowSizeStr(const char* name,const ImVec2 size,ImGuiCond cond); -CIMGUI_API void igSetWindowCollapsedStr(const char* name,bool collapsed,ImGuiCond cond); -CIMGUI_API void igSetWindowFocusStr(const char* name); +CIMGUI_API void igSetWindowPos_Str(const char* name,const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Str(const char* name,const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Str(const char* name,bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowFocus_Str(const char* name); CIMGUI_API void igGetContentRegionAvail(ImVec2 *pOut); CIMGUI_API void igGetContentRegionMax(ImVec2 *pOut); CIMGUI_API void igGetWindowContentRegionMin(ImVec2 *pOut); @@ -1195,11 +1341,11 @@ CIMGUI_API void igSetScrollFromPosX(float local_x,float center_x_ratio); CIMGUI_API void igSetScrollFromPosY(float local_y,float center_y_ratio); CIMGUI_API void igPushFont(ImFont* font); CIMGUI_API void igPopFont(void); -CIMGUI_API void igPushStyleColorU32(ImGuiCol idx,ImU32 col); -CIMGUI_API void igPushStyleColorVec4(ImGuiCol idx,const ImVec4 col); +CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col); +CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx,const ImVec4 col); CIMGUI_API void igPopStyleColor(int count); -CIMGUI_API void igPushStyleVarFloat(ImGuiStyleVar idx,float val); -CIMGUI_API void igPushStyleVarVec2(ImGuiStyleVar idx,const ImVec2 val); +CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx,float val); +CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx,const ImVec2 val); CIMGUI_API void igPopStyleVar(int count); CIMGUI_API void igPushAllowKeyboardFocus(bool allow_keyboard_focus); CIMGUI_API void igPopAllowKeyboardFocus(void); @@ -1214,9 +1360,9 @@ CIMGUI_API void igPopTextWrapPos(void); CIMGUI_API ImFont* igGetFont(void); CIMGUI_API float igGetFontSize(void); CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut); -CIMGUI_API ImU32 igGetColorU32Col(ImGuiCol idx,float alpha_mul); -CIMGUI_API ImU32 igGetColorU32Vec4(const ImVec4 col); -CIMGUI_API ImU32 igGetColorU32U32(ImU32 col); +CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul); +CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col); +CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col); CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx); CIMGUI_API void igSeparator(void); CIMGUI_API void igSameLine(float offset_from_start_x,float spacing); @@ -1241,14 +1387,14 @@ CIMGUI_API float igGetTextLineHeight(void); CIMGUI_API float igGetTextLineHeightWithSpacing(void); CIMGUI_API float igGetFrameHeight(void); CIMGUI_API float igGetFrameHeightWithSpacing(void); -CIMGUI_API void igPushIDStr(const char* str_id); -CIMGUI_API void igPushIDStrStr(const char* str_id_begin,const char* str_id_end); -CIMGUI_API void igPushIDPtr(const void* ptr_id); -CIMGUI_API void igPushIDInt(int int_id); +CIMGUI_API void igPushID_Str(const char* str_id); +CIMGUI_API void igPushID_StrStr(const char* str_id_begin,const char* str_id_end); +CIMGUI_API void igPushID_Ptr(const void* ptr_id); +CIMGUI_API void igPushID_Int(int int_id); CIMGUI_API void igPopID(void); -CIMGUI_API ImGuiID igGetIDStr(const char* str_id); -CIMGUI_API ImGuiID igGetIDStrStr(const char* str_id_begin,const char* str_id_end); -CIMGUI_API ImGuiID igGetIDPtr(const void* ptr_id); +CIMGUI_API ImGuiID igGetID_Str(const char* str_id); +CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin,const char* str_id_end); +CIMGUI_API ImGuiID igGetID_Ptr(const void* ptr_id); CIMGUI_API void igTextUnformatted(const char* text,const char* text_end); CIMGUI_API void igText(const char* fmt,...); CIMGUI_API void igTextV(const char* fmt,va_list args); @@ -1266,20 +1412,20 @@ CIMGUI_API bool igButton(const char* label,const ImVec2 size); CIMGUI_API bool igSmallButton(const char* label); CIMGUI_API bool igInvisibleButton(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags); CIMGUI_API bool igArrowButton(const char* str_id,ImGuiDir dir); -CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col); -CIMGUI_API bool igImageButton(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,int frame_padding,const ImVec4 bg_col,const ImVec4 tint_col); CIMGUI_API bool igCheckbox(const char* label,bool* v); -CIMGUI_API bool igCheckboxFlagsIntPtr(const char* label,int* flags,int flags_value); -CIMGUI_API bool igCheckboxFlagsUintPtr(const char* label,unsigned int* flags,unsigned int flags_value); -CIMGUI_API bool igRadioButtonBool(const char* label,bool active); -CIMGUI_API bool igRadioButtonIntPtr(const char* label,int* v,int v_button); +CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label,int* flags,int flags_value); +CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label,unsigned int* flags,unsigned int flags_value); +CIMGUI_API bool igRadioButton_Bool(const char* label,bool active); +CIMGUI_API bool igRadioButton_IntPtr(const char* label,int* v,int v_button); CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay); CIMGUI_API void igBullet(void); +CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col); +CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col); CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags); CIMGUI_API void igEndCombo(void); -CIMGUI_API bool igComboStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items); -CIMGUI_API bool igComboStr(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items); -CIMGUI_API bool igComboFnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items); +CIMGUI_API bool igCombo_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items); +CIMGUI_API bool igCombo_Str(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items); +CIMGUI_API bool igCombo_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items); CIMGUI_API bool igDragFloat(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); CIMGUI_API bool igDragFloat2(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); CIMGUI_API bool igDragFloat3(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); @@ -1324,47 +1470,47 @@ CIMGUI_API bool igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags CIMGUI_API bool igColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags); CIMGUI_API bool igColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags); CIMGUI_API bool igColorPicker4(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col); -CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,ImVec2 size); +CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size); CIMGUI_API void igSetColorEditOptions(ImGuiColorEditFlags flags); -CIMGUI_API bool igTreeNodeStr(const char* label); -CIMGUI_API bool igTreeNodeStrStr(const char* str_id,const char* fmt,...); -CIMGUI_API bool igTreeNodePtr(const void* ptr_id,const char* fmt,...); -CIMGUI_API bool igTreeNodeVStr(const char* str_id,const char* fmt,va_list args); -CIMGUI_API bool igTreeNodeVPtr(const void* ptr_id,const char* fmt,va_list args); -CIMGUI_API bool igTreeNodeExStr(const char* label,ImGuiTreeNodeFlags flags); -CIMGUI_API bool igTreeNodeExStrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...); -CIMGUI_API bool igTreeNodeExPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...); -CIMGUI_API bool igTreeNodeExVStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); -CIMGUI_API bool igTreeNodeExVPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); -CIMGUI_API void igTreePushStr(const char* str_id); -CIMGUI_API void igTreePushPtr(const void* ptr_id); +CIMGUI_API bool igTreeNode_Str(const char* label); +CIMGUI_API bool igTreeNode_StrStr(const char* str_id,const char* fmt,...); +CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id,const char* fmt,...); +CIMGUI_API bool igTreeNodeV_Str(const char* str_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeEx_Str(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeExV_Str(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); +CIMGUI_API void igTreePush_Str(const char* str_id); +CIMGUI_API void igTreePush_Ptr(const void* ptr_id); CIMGUI_API void igTreePop(void); CIMGUI_API float igGetTreeNodeToLabelSpacing(void); -CIMGUI_API bool igCollapsingHeaderTreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags); -CIMGUI_API bool igCollapsingHeaderBoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags); CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond); -CIMGUI_API bool igSelectableBool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size); -CIMGUI_API bool igSelectableBoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size); CIMGUI_API bool igBeginListBox(const char* label,const ImVec2 size); CIMGUI_API void igEndListBox(void); -CIMGUI_API bool igListBoxStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items); -CIMGUI_API bool igListBoxFnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items); -CIMGUI_API void igPlotLinesFloatPtr(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 igPlotLinesFnFloatPtr(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 igPlotHistogramFloatPtr(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 igPlotHistogramFnFloatPtr(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 igValueBool(const char* prefix,bool b); -CIMGUI_API void igValueInt(const char* prefix,int v); -CIMGUI_API void igValueUint(const char* prefix,unsigned int v); -CIMGUI_API void igValueFloat(const char* prefix,float v,const char* float_format); +CIMGUI_API bool igListBox_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items); +CIMGUI_API bool igListBox_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items); +CIMGUI_API void igPlotLines_FloatPtr(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 igPlotLines_FnFloatPtr(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 igPlotHistogram_FloatPtr(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 igPlotHistogram_FnFloatPtr(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 igValue_Bool(const char* prefix,bool b); +CIMGUI_API void igValue_Int(const char* prefix,int v); +CIMGUI_API void igValue_Uint(const char* prefix,unsigned int v); +CIMGUI_API void igValue_Float(const char* prefix,float v,const char* float_format); CIMGUI_API bool igBeginMenuBar(void); CIMGUI_API void igEndMenuBar(void); CIMGUI_API bool igBeginMainMenuBar(void); CIMGUI_API void igEndMainMenuBar(void); CIMGUI_API bool igBeginMenu(const char* label,bool enabled); CIMGUI_API void igEndMenu(void); -CIMGUI_API bool igMenuItemBool(const char* label,const char* shortcut,bool selected,bool enabled); -CIMGUI_API bool igMenuItemBoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled); +CIMGUI_API bool igMenuItem_Bool(const char* label,const char* shortcut,bool selected,bool enabled); +CIMGUI_API bool igMenuItem_BoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled); CIMGUI_API void igBeginTooltip(void); CIMGUI_API void igEndTooltip(void); CIMGUI_API void igSetTooltip(const char* fmt,...); @@ -1372,8 +1518,8 @@ CIMGUI_API void igSetTooltipV(const char* fmt,va_list args); CIMGUI_API bool igBeginPopup(const char* str_id,ImGuiWindowFlags flags); CIMGUI_API bool igBeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags); CIMGUI_API void igEndPopup(void); -CIMGUI_API void igOpenPopupStr(const char* str_id,ImGuiPopupFlags popup_flags); -CIMGUI_API void igOpenPopupID(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopup_Str(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopup_ID(ImGuiID id,ImGuiPopupFlags popup_flags); CIMGUI_API void igOpenPopupOnItemClick(const char* str_id,ImGuiPopupFlags popup_flags); CIMGUI_API void igCloseCurrentPopup(void); CIMGUI_API bool igBeginPopupContextItem(const char* str_id,ImGuiPopupFlags popup_flags); @@ -1448,12 +1594,12 @@ CIMGUI_API void igGetItemRectMax(ImVec2 *pOut); CIMGUI_API void igGetItemRectSize(ImVec2 *pOut); CIMGUI_API void igSetItemAllowOverlap(void); CIMGUI_API ImGuiViewport* igGetMainViewport(void); -CIMGUI_API bool igIsRectVisibleNil(const ImVec2 size); -CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max); -CIMGUI_API double igGetTime(void); -CIMGUI_API int igGetFrameCount(void); CIMGUI_API ImDrawList* igGetBackgroundDrawList(void); CIMGUI_API ImDrawList* igGetForegroundDrawList(void); +CIMGUI_API bool igIsRectVisible_Nil(const ImVec2 size); +CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min,const ImVec2 rect_max); +CIMGUI_API double igGetTime(void); +CIMGUI_API int igGetFrameCount(void); CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData(void); CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx); CIMGUI_API void igSetStateStorage(ImGuiStorage* storage); @@ -1465,12 +1611,12 @@ CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in); CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in); CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v); CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,float* out_g,float* out_b); -CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key); -CIMGUI_API bool igIsKeyDown(int user_key_index); -CIMGUI_API bool igIsKeyPressed(int user_key_index,bool repeat); -CIMGUI_API bool igIsKeyReleased(int user_key_index); -CIMGUI_API int igGetKeyPressedAmount(int key_index,float repeat_delay,float rate); -CIMGUI_API void igCaptureKeyboardFromApp(bool want_capture_keyboard_value); +CIMGUI_API bool igIsKeyDown(ImGuiKey key); +CIMGUI_API bool igIsKeyPressed(ImGuiKey key,bool repeat); +CIMGUI_API bool igIsKeyReleased(ImGuiKey key); +CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate); +CIMGUI_API const char* igGetKeyName(ImGuiKey key); +CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button); CIMGUI_API bool igIsMouseClicked(ImGuiMouseButton button,bool repeat); CIMGUI_API bool igIsMouseReleased(ImGuiMouseButton button); @@ -1486,13 +1632,14 @@ CIMGUI_API void igGetMouseDragDelta(ImVec2 *pOut,ImGuiMouseButton button,float l CIMGUI_API void igResetMouseDragDelta(ImGuiMouseButton button); CIMGUI_API ImGuiMouseCursor igGetMouseCursor(void); CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type); -CIMGUI_API void igCaptureMouseFromApp(bool want_capture_mouse_value); +CIMGUI_API void igSetNextFrameWantCaptureMouse(bool want_capture_mouse); CIMGUI_API const char* igGetClipboardText(void); CIMGUI_API void igSetClipboardText(const char* text); CIMGUI_API void igLoadIniSettingsFromDisk(const char* ini_filename); CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size); CIMGUI_API void igSaveIniSettingsToDisk(const char* ini_filename); CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size); +CIMGUI_API void igDebugTextEncoding(const char* text); CIMGUI_API bool igDebugCheckVersionAndDataLayout(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 igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data); CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data); @@ -1501,10 +1648,17 @@ CIMGUI_API void igMemFree(void* ptr); CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void); CIMGUI_API void ImGuiStyle_destroy(ImGuiStyle* self); CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor); +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 wh_x,float wh_y); +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_AddFocusEvent(ImGuiIO* self,bool focused); +CIMGUI_API void ImGuiIO_SetKeyEventNativeData(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_ClearInputCharacters(ImGuiIO* self); CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self); CIMGUI_API ImGuiIO* ImGuiIO_ImGuiIO(void); @@ -1535,9 +1689,9 @@ CIMGUI_API bool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self,const char* tex CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self); CIMGUI_API void ImGuiTextFilter_Clear(ImGuiTextFilter* self); CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self); -CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeNil(void); +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(void); CIMGUI_API void ImGuiTextRange_destroy(ImGuiTextRange* self); -CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeStr(const char* _b,const char* _e); +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b,const char* _e); CIMGUI_API bool ImGuiTextRange_empty(ImGuiTextRange* self); CIMGUI_API void ImGuiTextRange_split(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out); CIMGUI_API ImGuiTextBuffer* ImGuiTextBuffer_ImGuiTextBuffer(void); @@ -1551,10 +1705,10 @@ CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity); CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self); CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end); CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,va_list args); -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairInt(ImGuiID _key,int _val_i); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key,int _val_i); CIMGUI_API void ImGuiStoragePair_destroy(ImGuiStoragePair* self); -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairFloat(ImGuiID _key,float _val_f); -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairPtr(ImGuiID _key,void* _val_p); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key,float _val_f); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key,void* _val_p); CIMGUI_API void ImGuiStorage_Clear(ImGuiStorage* self); CIMGUI_API int ImGuiStorage_GetInt(ImGuiStorage* self,ImGuiID key,int default_val); CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self,ImGuiID key,int val); @@ -1576,12 +1730,12 @@ CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self,int items_count,fl CIMGUI_API void ImGuiListClipper_End(ImGuiListClipper* self); CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self); CIMGUI_API void ImGuiListClipper_ForceDisplayRangeByIndices(ImGuiListClipper* self,int item_min,int item_max); -CIMGUI_API ImColor* ImColor_ImColorNil(void); +CIMGUI_API ImColor* ImColor_ImColor_Nil(void); CIMGUI_API void ImColor_destroy(ImColor* self); -CIMGUI_API ImColor* ImColor_ImColorInt(int r,int g,int b,int a); -CIMGUI_API ImColor* ImColor_ImColorU32(ImU32 rgba); -CIMGUI_API ImColor* ImColor_ImColorFloat(float r,float g,float b,float a); -CIMGUI_API ImColor* ImColor_ImColorVec4(const ImVec4 col); +CIMGUI_API ImColor* ImColor_ImColor_Float(float r,float g,float b,float a); +CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col); +CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a); +CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba); CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a); CIMGUI_API void ImColor_HSV(ImColor *pOut,float h,float s,float v,float a); CIMGUI_API ImDrawCmd* ImDrawCmd_ImDrawCmd(void); @@ -1594,9 +1748,9 @@ 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); -CIMGUI_API ImDrawList* ImDrawList_ImDrawList(const ImDrawListSharedData* shared_data); +CIMGUI_API ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data); CIMGUI_API void ImDrawList_destroy(ImDrawList* self); -CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect); +CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,const ImVec2 clip_rect_min,const 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_PushTextureID(ImDrawList* self,ImTextureID texture_id); @@ -1615,8 +1769,8 @@ CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self,const ImVec2 center,float CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness); CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); -CIMGUI_API void ImDrawList_AddTextVec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end); -CIMGUI_API void ImDrawList_AddTextFontPtr(ImDrawList* self,const ImFont* font,float font_size,const 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_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end); +CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const 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_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness); CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col); CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments); @@ -1695,6 +1849,7 @@ CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self,unsigned char** CIMGUI_API bool ImFontAtlas_IsBuilt(ImFontAtlas* self); CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self,ImTextureID id); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self); @@ -1716,8 +1871,8 @@ CIMGUI_API bool ImFont_IsLoaded(ImFont* self); CIMGUI_API const char* ImFont_GetDebugName(ImFont* self); CIMGUI_API void ImFont_CalcTextSizeA(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining); CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,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_RenderText(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip); +CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c); +CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip); CIMGUI_API void ImFont_BuildLookupTable(ImFont* self); CIMGUI_API void ImFont_ClearOutputData(ImFont* self); CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size); @@ -1729,6 +1884,9 @@ CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void); CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self); CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self); CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self); +CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void); +CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self); +CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key); /////////////////////////hand written functions @@ -1737,12 +1895,12 @@ CIMGUI_API void igLogText(CONST char *fmt, ...); //no appendfV CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...); //for getting FLT_MAX in bindings -CIMGUI_API float igGET_FLT_MAX(); +CIMGUI_API float igGET_FLT_MAX(void); //for getting FLT_MIN in bindings -CIMGUI_API float igGET_FLT_MIN(); +CIMGUI_API float igGET_FLT_MIN(void); -CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create(); +CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create(void); CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self); CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p); CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p); diff --git a/imgui-sys/third-party/imgui-master/cimgui_impl.h b/imgui-sys/third-party/imgui-master/cimgui_impl.h index e69de29bb..597cca0c7 100644 --- a/imgui-sys/third-party/imgui-master/cimgui_impl.h +++ b/imgui-sys/third-party/imgui-master/cimgui_impl.h @@ -0,0 +1,60 @@ +#ifdef CIMGUI_USE_GLFW + +typedef struct GLFWwindow GLFWwindow; +typedef struct GLFWmonitor GLFWmonitor; +struct GLFWwindow; +struct GLFWmonitor;CIMGUI_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window,bool install_callbacks); +CIMGUI_API void ImGui_ImplGlfw_Shutdown(void); +CIMGUI_API void ImGui_ImplGlfw_NewFrame(void); +CIMGUI_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window,int focused); +CIMGUI_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window,int entered); +CIMGUI_API void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window,double x,double y); +CIMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window,int button,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window,double xoffset,double yoffset); +CIMGUI_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window,int key,int scancode,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window,unsigned int c); +CIMGUI_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor,int event); + +#endif +#ifdef CIMGUI_USE_OPENGL3 +CIMGUI_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version); +CIMGUI_API void ImGui_ImplOpenGL3_Shutdown(void); +CIMGUI_API void ImGui_ImplOpenGL3_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API bool ImGui_ImplOpenGL3_CreateFontsTexture(void); +CIMGUI_API void ImGui_ImplOpenGL3_DestroyFontsTexture(void); +CIMGUI_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(void); +CIMGUI_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(void); + +#endif +#ifdef CIMGUI_USE_OPENGL2 +CIMGUI_API bool ImGui_ImplOpenGL2_Init(void); +CIMGUI_API void ImGui_ImplOpenGL2_Shutdown(void); +CIMGUI_API void ImGui_ImplOpenGL2_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API bool ImGui_ImplOpenGL2_CreateFontsTexture(void); +CIMGUI_API void ImGui_ImplOpenGL2_DestroyFontsTexture(void); +CIMGUI_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(void); +CIMGUI_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(void); + +#endif +#ifdef CIMGUI_USE_SDL + +typedef struct SDL_Window SDL_Window; +typedef struct SDL_Renderer SDL_Renderer; +struct SDL_Window; +struct SDL_Renderer; +typedef union SDL_Event SDL_Event;CIMGUI_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window,void* sdl_gl_context); +CIMGUI_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer); +CIMGUI_API void ImGui_ImplSDL2_Shutdown(void); +CIMGUI_API void ImGui_ImplSDL2_NewFrame(void); +CIMGUI_API bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event); + +#endif diff --git a/imgui-sys/third-party/imgui-master/definitions.json b/imgui-sys/third-party/imgui-master/definitions.json index 7c2e3aa0b..38670f9b0 100644 --- a/imgui-sys/third-party/imgui-master/definitions.json +++ b/imgui-sys/third-party/imgui-master/definitions.json @@ -32,7 +32,7 @@ }, "funcname": "HSV", "is_static_function": true, - "location": "imgui:2255", + "location": "imgui:2360", "nonUDT": 1, "ov_cimguiname": "ImColor_HSV", "ret": "void", @@ -50,113 +50,113 @@ "constructor": true, "defaults": {}, "funcname": "ImColor", - "location": "imgui:2245", - "ov_cimguiname": "ImColor_ImColorNil", + "location": "imgui:2350", + "ov_cimguiname": "ImColor_ImColor_Nil", "signature": "()", "stname": "ImColor" }, { - "args": "(int r,int g,int b,int a)", + "args": "(float r,float g,float b,float a)", "argsT": [ { "name": "r", - "type": "int" + "type": "float" }, { "name": "g", - "type": "int" + "type": "float" }, { "name": "b", - "type": "int" + "type": "float" }, { "name": "a", - "type": "int" + "type": "float" } ], - "argsoriginal": "(int r,int g,int b,int a=255)", + "argsoriginal": "(float r,float g,float b,float a=1.0f)", "call_args": "(r,g,b,a)", "cimguiname": "ImColor_ImColor", "constructor": true, "defaults": { - "a": "255" + "a": "1.0f" }, "funcname": "ImColor", - "location": "imgui:2246", - "ov_cimguiname": "ImColor_ImColorInt", - "signature": "(int,int,int,int)", + "location": "imgui:2351", + "ov_cimguiname": "ImColor_ImColor_Float", + "signature": "(float,float,float,float)", "stname": "ImColor" }, { - "args": "(ImU32 rgba)", + "args": "(const ImVec4 col)", "argsT": [ { - "name": "rgba", - "type": "ImU32" + "name": "col", + "type": "const ImVec4" } ], - "argsoriginal": "(ImU32 rgba)", - "call_args": "(rgba)", + "argsoriginal": "(const ImVec4& col)", + "call_args": "(col)", "cimguiname": "ImColor_ImColor", "constructor": true, "defaults": {}, "funcname": "ImColor", - "location": "imgui:2247", - "ov_cimguiname": "ImColor_ImColorU32", - "signature": "(ImU32)", + "location": "imgui:2352", + "ov_cimguiname": "ImColor_ImColor_Vec4", + "signature": "(const ImVec4)", "stname": "ImColor" }, { - "args": "(float r,float g,float b,float a)", + "args": "(int r,int g,int b,int a)", "argsT": [ { "name": "r", - "type": "float" + "type": "int" }, { "name": "g", - "type": "float" + "type": "int" }, { "name": "b", - "type": "float" + "type": "int" }, { "name": "a", - "type": "float" + "type": "int" } ], - "argsoriginal": "(float r,float g,float b,float a=1.0f)", + "argsoriginal": "(int r,int g,int b,int a=255)", "call_args": "(r,g,b,a)", "cimguiname": "ImColor_ImColor", "constructor": true, "defaults": { - "a": "1.0f" + "a": "255" }, "funcname": "ImColor", - "location": "imgui:2248", - "ov_cimguiname": "ImColor_ImColorFloat", - "signature": "(float,float,float,float)", + "location": "imgui:2353", + "ov_cimguiname": "ImColor_ImColor_Int", + "signature": "(int,int,int,int)", "stname": "ImColor" }, { - "args": "(const ImVec4 col)", + "args": "(ImU32 rgba)", "argsT": [ { - "name": "col", - "type": "const ImVec4" + "name": "rgba", + "type": "ImU32" } ], - "argsoriginal": "(const ImVec4& col)", - "call_args": "(col)", + "argsoriginal": "(ImU32 rgba)", + "call_args": "(rgba)", "cimguiname": "ImColor_ImColor", "constructor": true, "defaults": {}, "funcname": "ImColor", - "location": "imgui:2249", - "ov_cimguiname": "ImColor_ImColorVec4", - "signature": "(const ImVec4)", + "location": "imgui:2354", + "ov_cimguiname": "ImColor_ImColor_U32", + "signature": "(ImU32)", "stname": "ImColor" } ], @@ -192,7 +192,7 @@ "a": "1.0f" }, "funcname": "SetHSV", - "location": "imgui:2254", + "location": "imgui:2359", "ov_cimguiname": "ImColor_SetHSV", "ret": "void", "signature": "(float,float,float,float)", @@ -232,7 +232,7 @@ "cimguiname": "ImDrawCmd_GetTexID", "defaults": {}, "funcname": "GetTexID", - "location": "imgui:2303", + "location": "imgui:2408", "ov_cimguiname": "ImDrawCmd_GetTexID", "ret": "ImTextureID", "signature": "()const", @@ -249,7 +249,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawCmd", - "location": "imgui:2300", + "location": "imgui:2405", "ov_cimguiname": "ImDrawCmd_ImDrawCmd", "signature": "()", "stname": "ImDrawCmd" @@ -288,7 +288,7 @@ "cimguiname": "ImDrawData_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2534", + "location": "imgui:2641", "ov_cimguiname": "ImDrawData_Clear", "ret": "void", "signature": "()", @@ -309,7 +309,7 @@ "cimguiname": "ImDrawData_DeIndexAllBuffers", "defaults": {}, "funcname": "DeIndexAllBuffers", - "location": "imgui:2535", + "location": "imgui:2642", "ov_cimguiname": "ImDrawData_DeIndexAllBuffers", "ret": "void", "signature": "()", @@ -326,7 +326,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawData", - "location": "imgui:2533", + "location": "imgui:2640", "ov_cimguiname": "ImDrawData_ImDrawData", "signature": "()", "stname": "ImDrawData" @@ -350,7 +350,7 @@ "cimguiname": "ImDrawData_ScaleClipRects", "defaults": {}, "funcname": "ScaleClipRects", - "location": "imgui:2536", + "location": "imgui:2643", "ov_cimguiname": "ImDrawData_ScaleClipRects", "ret": "void", "signature": "(const ImVec2)", @@ -390,7 +390,7 @@ "cimguiname": "ImDrawListSplitter_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2348", + "location": "imgui:2453", "ov_cimguiname": "ImDrawListSplitter_Clear", "ret": "void", "signature": "()", @@ -411,7 +411,7 @@ "cimguiname": "ImDrawListSplitter_ClearFreeMemory", "defaults": {}, "funcname": "ClearFreeMemory", - "location": "imgui:2349", + "location": "imgui:2454", "ov_cimguiname": "ImDrawListSplitter_ClearFreeMemory", "ret": "void", "signature": "()", @@ -428,7 +428,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawListSplitter", - "location": "imgui:2346", + "location": "imgui:2451", "ov_cimguiname": "ImDrawListSplitter_ImDrawListSplitter", "signature": "()", "stname": "ImDrawListSplitter" @@ -452,7 +452,7 @@ "cimguiname": "ImDrawListSplitter_Merge", "defaults": {}, "funcname": "Merge", - "location": "imgui:2351", + "location": "imgui:2456", "ov_cimguiname": "ImDrawListSplitter_Merge", "ret": "void", "signature": "(ImDrawList*)", @@ -481,7 +481,7 @@ "cimguiname": "ImDrawListSplitter_SetCurrentChannel", "defaults": {}, "funcname": "SetCurrentChannel", - "location": "imgui:2352", + "location": "imgui:2457", "ov_cimguiname": "ImDrawListSplitter_SetCurrentChannel", "ret": "void", "signature": "(ImDrawList*,int)", @@ -510,7 +510,7 @@ "cimguiname": "ImDrawListSplitter_Split", "defaults": {}, "funcname": "Split", - "location": "imgui:2350", + "location": "imgui:2455", "ov_cimguiname": "ImDrawListSplitter_Split", "ret": "void", "signature": "(ImDrawList*,int)", @@ -530,7 +530,7 @@ "cimguiname": "ImDrawListSplitter_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2347", + "location": "imgui:2452", "ov_cimguiname": "ImDrawListSplitter_destroy", "realdestructor": true, "ret": "void", @@ -582,7 +582,7 @@ "num_segments": "0" }, "funcname": "AddBezierCubic", - "location": "imgui:2450", + "location": "imgui:2556", "ov_cimguiname": "ImDrawList_AddBezierCubic", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", @@ -629,7 +629,7 @@ "num_segments": "0" }, "funcname": "AddBezierQuadratic", - "location": "imgui:2451", + "location": "imgui:2557", "ov_cimguiname": "ImDrawList_AddBezierQuadratic", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", @@ -658,7 +658,7 @@ "cimguiname": "ImDrawList_AddCallback", "defaults": {}, "funcname": "AddCallback", - "location": "imgui:2474", + "location": "imgui:2581", "ov_cimguiname": "ImDrawList_AddCallback", "ret": "void", "signature": "(ImDrawCallback,void*)", @@ -702,7 +702,7 @@ "thickness": "1.0f" }, "funcname": "AddCircle", - "location": "imgui:2442", + "location": "imgui:2548", "ov_cimguiname": "ImDrawList_AddCircle", "ret": "void", "signature": "(const ImVec2,float,ImU32,int,float)", @@ -741,7 +741,7 @@ "num_segments": "0" }, "funcname": "AddCircleFilled", - "location": "imgui:2443", + "location": "imgui:2549", "ov_cimguiname": "ImDrawList_AddCircleFilled", "ret": "void", "signature": "(const ImVec2,float,ImU32,int)", @@ -774,7 +774,7 @@ "cimguiname": "ImDrawList_AddConvexPolyFilled", "defaults": {}, "funcname": "AddConvexPolyFilled", - "location": "imgui:2449", + "location": "imgui:2555", "ov_cimguiname": "ImDrawList_AddConvexPolyFilled", "ret": "void", "signature": "(const ImVec2*,int,ImU32)", @@ -795,7 +795,7 @@ "cimguiname": "ImDrawList_AddDrawCmd", "defaults": {}, "funcname": "AddDrawCmd", - "location": "imgui:2475", + "location": "imgui:2582", "ov_cimguiname": "ImDrawList_AddDrawCmd", "ret": "void", "signature": "()", @@ -844,7 +844,7 @@ "uv_min": "ImVec2(0,0)" }, "funcname": "AddImage", - "location": "imgui:2457", + "location": "imgui:2563", "ov_cimguiname": "ImDrawList_AddImage", "ret": "void", "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -911,7 +911,7 @@ "uv4": "ImVec2(0,1)" }, "funcname": "AddImageQuad", - "location": "imgui:2458", + "location": "imgui:2564", "ov_cimguiname": "ImDrawList_AddImageQuad", "ret": "void", "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -966,7 +966,7 @@ "flags": "0" }, "funcname": "AddImageRounded", - "location": "imgui:2459", + "location": "imgui:2565", "ov_cimguiname": "ImDrawList_AddImageRounded", "ret": "void", "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", @@ -1005,7 +1005,7 @@ "thickness": "1.0f" }, "funcname": "AddLine", - "location": "imgui:2434", + "location": "imgui:2540", "ov_cimguiname": "ImDrawList_AddLine", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,float)", @@ -1048,7 +1048,7 @@ "thickness": "1.0f" }, "funcname": "AddNgon", - "location": "imgui:2444", + "location": "imgui:2550", "ov_cimguiname": "ImDrawList_AddNgon", "ret": "void", "signature": "(const ImVec2,float,ImU32,int,float)", @@ -1085,7 +1085,7 @@ "cimguiname": "ImDrawList_AddNgonFilled", "defaults": {}, "funcname": "AddNgonFilled", - "location": "imgui:2445", + "location": "imgui:2551", "ov_cimguiname": "ImDrawList_AddNgonFilled", "ret": "void", "signature": "(const ImVec2,float,ImU32,int)", @@ -1126,7 +1126,7 @@ "cimguiname": "ImDrawList_AddPolyline", "defaults": {}, "funcname": "AddPolyline", - "location": "imgui:2448", + "location": "imgui:2554", "ov_cimguiname": "ImDrawList_AddPolyline", "ret": "void", "signature": "(const ImVec2*,int,ImU32,ImDrawFlags,float)", @@ -1173,7 +1173,7 @@ "thickness": "1.0f" }, "funcname": "AddQuad", - "location": "imgui:2438", + "location": "imgui:2544", "ov_cimguiname": "ImDrawList_AddQuad", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)", @@ -1214,7 +1214,7 @@ "cimguiname": "ImDrawList_AddQuadFilled", "defaults": {}, "funcname": "AddQuadFilled", - "location": "imgui:2439", + "location": "imgui:2545", "ov_cimguiname": "ImDrawList_AddQuadFilled", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -1263,7 +1263,7 @@ "thickness": "1.0f" }, "funcname": "AddRect", - "location": "imgui:2435", + "location": "imgui:2541", "ov_cimguiname": "ImDrawList_AddRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)", @@ -1307,7 +1307,7 @@ "rounding": "0.0f" }, "funcname": "AddRectFilled", - "location": "imgui:2436", + "location": "imgui:2542", "ov_cimguiname": "ImDrawList_AddRectFilled", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", @@ -1352,7 +1352,7 @@ "cimguiname": "ImDrawList_AddRectFilledMultiColor", "defaults": {}, "funcname": "AddRectFilledMultiColor", - "location": "imgui:2437", + "location": "imgui:2543", "ov_cimguiname": "ImDrawList_AddRectFilledMultiColor", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)", @@ -1391,8 +1391,8 @@ "text_end": "NULL" }, "funcname": "AddText", - "location": "imgui:2446", - "ov_cimguiname": "ImDrawList_AddTextVec2", + "location": "imgui:2552", + "ov_cimguiname": "ImDrawList_AddText_Vec2", "ret": "void", "signature": "(const ImVec2,ImU32,const char*,const char*)", "stname": "ImDrawList" @@ -1446,8 +1446,8 @@ "wrap_width": "0.0f" }, "funcname": "AddText", - "location": "imgui:2447", - "ov_cimguiname": "ImDrawList_AddTextFontPtr", + "location": "imgui:2553", + "ov_cimguiname": "ImDrawList_AddText_FontPtr", "ret": "void", "signature": "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)", "stname": "ImDrawList" @@ -1489,7 +1489,7 @@ "thickness": "1.0f" }, "funcname": "AddTriangle", - "location": "imgui:2440", + "location": "imgui:2546", "ov_cimguiname": "ImDrawList_AddTriangle", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)", @@ -1526,7 +1526,7 @@ "cimguiname": "ImDrawList_AddTriangleFilled", "defaults": {}, "funcname": "AddTriangleFilled", - "location": "imgui:2441", + "location": "imgui:2547", "ov_cimguiname": "ImDrawList_AddTriangleFilled", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -1547,7 +1547,7 @@ "cimguiname": "ImDrawList_ChannelsMerge", "defaults": {}, "funcname": "ChannelsMerge", - "location": "imgui:2485", + "location": "imgui:2592", "ov_cimguiname": "ImDrawList_ChannelsMerge", "ret": "void", "signature": "()", @@ -1572,7 +1572,7 @@ "cimguiname": "ImDrawList_ChannelsSetCurrent", "defaults": {}, "funcname": "ChannelsSetCurrent", - "location": "imgui:2486", + "location": "imgui:2593", "ov_cimguiname": "ImDrawList_ChannelsSetCurrent", "ret": "void", "signature": "(int)", @@ -1597,7 +1597,7 @@ "cimguiname": "ImDrawList_ChannelsSplit", "defaults": {}, "funcname": "ChannelsSplit", - "location": "imgui:2484", + "location": "imgui:2591", "ov_cimguiname": "ImDrawList_ChannelsSplit", "ret": "void", "signature": "(int)", @@ -1618,7 +1618,7 @@ "cimguiname": "ImDrawList_CloneOutput", "defaults": {}, "funcname": "CloneOutput", - "location": "imgui:2476", + "location": "imgui:2583", "ov_cimguiname": "ImDrawList_CloneOutput", "ret": "ImDrawList*", "signature": "()const", @@ -1643,7 +1643,7 @@ "cimguiname": "ImDrawList_GetClipRectMax", "defaults": {}, "funcname": "GetClipRectMax", - "location": "imgui:2426", + "location": "imgui:2531", "nonUDT": 1, "ov_cimguiname": "ImDrawList_GetClipRectMax", "ret": "void", @@ -1669,7 +1669,7 @@ "cimguiname": "ImDrawList_GetClipRectMin", "defaults": {}, "funcname": "GetClipRectMin", - "location": "imgui:2425", + "location": "imgui:2530", "nonUDT": 1, "ov_cimguiname": "ImDrawList_GetClipRectMin", "ret": "void", @@ -1679,22 +1679,22 @@ ], "ImDrawList_ImDrawList": [ { - "args": "(const ImDrawListSharedData* shared_data)", + "args": "(ImDrawListSharedData* shared_data)", "argsT": [ { "name": "shared_data", - "type": "const ImDrawListSharedData*" + "type": "ImDrawListSharedData*" } ], - "argsoriginal": "(const ImDrawListSharedData* shared_data)", + "argsoriginal": "(ImDrawListSharedData* shared_data)", "call_args": "(shared_data)", "cimguiname": "ImDrawList_ImDrawList", "constructor": true, "defaults": {}, "funcname": "ImDrawList", - "location": "imgui:2417", + "location": "imgui:2522", "ov_cimguiname": "ImDrawList_ImDrawList", - "signature": "(const ImDrawListSharedData*)", + "signature": "(ImDrawListSharedData*)", "stname": "ImDrawList" } ], @@ -1734,7 +1734,7 @@ "num_segments": "0" }, "funcname": "PathArcTo", - "location": "imgui:2467", + "location": "imgui:2574", "ov_cimguiname": "ImDrawList_PathArcTo", "ret": "void", "signature": "(const ImVec2,float,float,float,int)", @@ -1771,7 +1771,7 @@ "cimguiname": "ImDrawList_PathArcToFast", "defaults": {}, "funcname": "PathArcToFast", - "location": "imgui:2468", + "location": "imgui:2575", "ov_cimguiname": "ImDrawList_PathArcToFast", "ret": "void", "signature": "(const ImVec2,float,int,int)", @@ -1810,7 +1810,7 @@ "num_segments": "0" }, "funcname": "PathBezierCubicCurveTo", - "location": "imgui:2469", + "location": "imgui:2576", "ov_cimguiname": "ImDrawList_PathBezierCubicCurveTo", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,int)", @@ -1845,7 +1845,7 @@ "num_segments": "0" }, "funcname": "PathBezierQuadraticCurveTo", - "location": "imgui:2470", + "location": "imgui:2577", "ov_cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", "ret": "void", "signature": "(const ImVec2,const ImVec2,int)", @@ -1866,7 +1866,7 @@ "cimguiname": "ImDrawList_PathClear", "defaults": {}, "funcname": "PathClear", - "location": "imgui:2462", + "location": "imgui:2569", "ov_cimguiname": "ImDrawList_PathClear", "ret": "void", "signature": "()", @@ -1891,7 +1891,7 @@ "cimguiname": "ImDrawList_PathFillConvex", "defaults": {}, "funcname": "PathFillConvex", - "location": "imgui:2465", + "location": "imgui:2572", "ov_cimguiname": "ImDrawList_PathFillConvex", "ret": "void", "signature": "(ImU32)", @@ -1916,7 +1916,7 @@ "cimguiname": "ImDrawList_PathLineTo", "defaults": {}, "funcname": "PathLineTo", - "location": "imgui:2463", + "location": "imgui:2570", "ov_cimguiname": "ImDrawList_PathLineTo", "ret": "void", "signature": "(const ImVec2)", @@ -1941,7 +1941,7 @@ "cimguiname": "ImDrawList_PathLineToMergeDuplicate", "defaults": {}, "funcname": "PathLineToMergeDuplicate", - "location": "imgui:2464", + "location": "imgui:2571", "ov_cimguiname": "ImDrawList_PathLineToMergeDuplicate", "ret": "void", "signature": "(const ImVec2)", @@ -1981,7 +1981,7 @@ "rounding": "0.0f" }, "funcname": "PathRect", - "location": "imgui:2471", + "location": "imgui:2578", "ov_cimguiname": "ImDrawList_PathRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,float,ImDrawFlags)", @@ -2017,7 +2017,7 @@ "thickness": "1.0f" }, "funcname": "PathStroke", - "location": "imgui:2466", + "location": "imgui:2573", "ov_cimguiname": "ImDrawList_PathStroke", "ret": "void", "signature": "(ImU32,ImDrawFlags,float)", @@ -2038,7 +2038,7 @@ "cimguiname": "ImDrawList_PopClipRect", "defaults": {}, "funcname": "PopClipRect", - "location": "imgui:2422", + "location": "imgui:2527", "ov_cimguiname": "ImDrawList_PopClipRect", "ret": "void", "signature": "()", @@ -2059,7 +2059,7 @@ "cimguiname": "ImDrawList_PopTextureID", "defaults": {}, "funcname": "PopTextureID", - "location": "imgui:2424", + "location": "imgui:2529", "ov_cimguiname": "ImDrawList_PopTextureID", "ret": "void", "signature": "()", @@ -2116,7 +2116,7 @@ "cimguiname": "ImDrawList_PrimQuadUV", "defaults": {}, "funcname": "PrimQuadUV", - "location": "imgui:2495", + "location": "imgui:2602", "ov_cimguiname": "ImDrawList_PrimQuadUV", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -2149,7 +2149,7 @@ "cimguiname": "ImDrawList_PrimRect", "defaults": {}, "funcname": "PrimRect", - "location": "imgui:2493", + "location": "imgui:2600", "ov_cimguiname": "ImDrawList_PrimRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32)", @@ -2190,7 +2190,7 @@ "cimguiname": "ImDrawList_PrimRectUV", "defaults": {}, "funcname": "PrimRectUV", - "location": "imgui:2494", + "location": "imgui:2601", "ov_cimguiname": "ImDrawList_PrimRectUV", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -2219,7 +2219,7 @@ "cimguiname": "ImDrawList_PrimReserve", "defaults": {}, "funcname": "PrimReserve", - "location": "imgui:2491", + "location": "imgui:2598", "ov_cimguiname": "ImDrawList_PrimReserve", "ret": "void", "signature": "(int,int)", @@ -2248,7 +2248,7 @@ "cimguiname": "ImDrawList_PrimUnreserve", "defaults": {}, "funcname": "PrimUnreserve", - "location": "imgui:2492", + "location": "imgui:2599", "ov_cimguiname": "ImDrawList_PrimUnreserve", "ret": "void", "signature": "(int,int)", @@ -2281,7 +2281,7 @@ "cimguiname": "ImDrawList_PrimVtx", "defaults": {}, "funcname": "PrimVtx", - "location": "imgui:2498", + "location": "imgui:2605", "ov_cimguiname": "ImDrawList_PrimVtx", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32)", @@ -2306,7 +2306,7 @@ "cimguiname": "ImDrawList_PrimWriteIdx", "defaults": {}, "funcname": "PrimWriteIdx", - "location": "imgui:2497", + "location": "imgui:2604", "ov_cimguiname": "ImDrawList_PrimWriteIdx", "ret": "void", "signature": "(ImDrawIdx)", @@ -2339,7 +2339,7 @@ "cimguiname": "ImDrawList_PrimWriteVtx", "defaults": {}, "funcname": "PrimWriteVtx", - "location": "imgui:2496", + "location": "imgui:2603", "ov_cimguiname": "ImDrawList_PrimWriteVtx", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32)", @@ -2348,7 +2348,7 @@ ], "ImDrawList_PushClipRect": [ { - "args": "(ImDrawList* self,ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", + "args": "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", "argsT": [ { "name": "self", @@ -2356,28 +2356,28 @@ }, { "name": "clip_rect_min", - "type": "ImVec2" + "type": "const ImVec2" }, { "name": "clip_rect_max", - "type": "ImVec2" + "type": "const ImVec2" }, { "name": "intersect_with_current_clip_rect", "type": "bool" } ], - "argsoriginal": "(ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect=false)", + "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)", "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", "cimguiname": "ImDrawList_PushClipRect", "defaults": { "intersect_with_current_clip_rect": "false" }, "funcname": "PushClipRect", - "location": "imgui:2420", + "location": "imgui:2525", "ov_cimguiname": "ImDrawList_PushClipRect", "ret": "void", - "signature": "(ImVec2,ImVec2,bool)", + "signature": "(const ImVec2,const ImVec2,bool)", "stname": "ImDrawList" } ], @@ -2395,7 +2395,7 @@ "cimguiname": "ImDrawList_PushClipRectFullScreen", "defaults": {}, "funcname": "PushClipRectFullScreen", - "location": "imgui:2421", + "location": "imgui:2526", "ov_cimguiname": "ImDrawList_PushClipRectFullScreen", "ret": "void", "signature": "()", @@ -2420,7 +2420,7 @@ "cimguiname": "ImDrawList_PushTextureID", "defaults": {}, "funcname": "PushTextureID", - "location": "imgui:2423", + "location": "imgui:2528", "ov_cimguiname": "ImDrawList_PushTextureID", "ret": "void", "signature": "(ImTextureID)", @@ -2445,7 +2445,7 @@ "cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", "defaults": {}, "funcname": "_CalcCircleAutoSegmentCount", - "location": "imgui:2513", + "location": "imgui:2620", "ov_cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", "ret": "int", "signature": "(float)const", @@ -2466,7 +2466,7 @@ "cimguiname": "ImDrawList__ClearFreeMemory", "defaults": {}, "funcname": "_ClearFreeMemory", - "location": "imgui:2507", + "location": "imgui:2614", "ov_cimguiname": "ImDrawList__ClearFreeMemory", "ret": "void", "signature": "()", @@ -2487,7 +2487,7 @@ "cimguiname": "ImDrawList__OnChangedClipRect", "defaults": {}, "funcname": "_OnChangedClipRect", - "location": "imgui:2510", + "location": "imgui:2617", "ov_cimguiname": "ImDrawList__OnChangedClipRect", "ret": "void", "signature": "()", @@ -2508,7 +2508,7 @@ "cimguiname": "ImDrawList__OnChangedTextureID", "defaults": {}, "funcname": "_OnChangedTextureID", - "location": "imgui:2511", + "location": "imgui:2618", "ov_cimguiname": "ImDrawList__OnChangedTextureID", "ret": "void", "signature": "()", @@ -2529,7 +2529,7 @@ "cimguiname": "ImDrawList__OnChangedVtxOffset", "defaults": {}, "funcname": "_OnChangedVtxOffset", - "location": "imgui:2512", + "location": "imgui:2619", "ov_cimguiname": "ImDrawList__OnChangedVtxOffset", "ret": "void", "signature": "()", @@ -2570,7 +2570,7 @@ "cimguiname": "ImDrawList__PathArcToFastEx", "defaults": {}, "funcname": "_PathArcToFastEx", - "location": "imgui:2514", + "location": "imgui:2621", "ov_cimguiname": "ImDrawList__PathArcToFastEx", "ret": "void", "signature": "(const ImVec2,float,int,int,int)", @@ -2611,7 +2611,7 @@ "cimguiname": "ImDrawList__PathArcToN", "defaults": {}, "funcname": "_PathArcToN", - "location": "imgui:2515", + "location": "imgui:2622", "ov_cimguiname": "ImDrawList__PathArcToN", "ret": "void", "signature": "(const ImVec2,float,float,float,int)", @@ -2632,7 +2632,7 @@ "cimguiname": "ImDrawList__PopUnusedDrawCmd", "defaults": {}, "funcname": "_PopUnusedDrawCmd", - "location": "imgui:2508", + "location": "imgui:2615", "ov_cimguiname": "ImDrawList__PopUnusedDrawCmd", "ret": "void", "signature": "()", @@ -2653,7 +2653,7 @@ "cimguiname": "ImDrawList__ResetForNewFrame", "defaults": {}, "funcname": "_ResetForNewFrame", - "location": "imgui:2506", + "location": "imgui:2613", "ov_cimguiname": "ImDrawList__ResetForNewFrame", "ret": "void", "signature": "()", @@ -2674,7 +2674,7 @@ "cimguiname": "ImDrawList__TryMergeDrawCmds", "defaults": {}, "funcname": "_TryMergeDrawCmds", - "location": "imgui:2509", + "location": "imgui:2616", "ov_cimguiname": "ImDrawList__TryMergeDrawCmds", "ret": "void", "signature": "()", @@ -2694,7 +2694,7 @@ "cimguiname": "ImDrawList_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2419", + "location": "imgui:2524", "ov_cimguiname": "ImDrawList_destroy", "realdestructor": true, "ret": "void", @@ -2712,7 +2712,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontAtlasCustomRect", - "location": "imgui:2607", + "location": "imgui:2714", "ov_cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", "signature": "()", "stname": "ImFontAtlasCustomRect" @@ -2732,7 +2732,7 @@ "cimguiname": "ImFontAtlasCustomRect_IsPacked", "defaults": {}, "funcname": "IsPacked", - "location": "imgui:2608", + "location": "imgui:2715", "ov_cimguiname": "ImFontAtlasCustomRect_IsPacked", "ret": "bool", "signature": "()const", @@ -2798,7 +2798,7 @@ "offset": "ImVec2(0,0)" }, "funcname": "AddCustomRectFontGlyph", - "location": "imgui:2691", + "location": "imgui:2799", "ov_cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", "ret": "int", "signature": "(ImFont*,ImWchar,int,int,float,const ImVec2)", @@ -2827,7 +2827,7 @@ "cimguiname": "ImFontAtlas_AddCustomRectRegular", "defaults": {}, "funcname": "AddCustomRectRegular", - "location": "imgui:2690", + "location": "imgui:2798", "ov_cimguiname": "ImFontAtlas_AddCustomRectRegular", "ret": "int", "signature": "(int,int)", @@ -2852,7 +2852,7 @@ "cimguiname": "ImFontAtlas_AddFont", "defaults": {}, "funcname": "AddFont", - "location": "imgui:2641", + "location": "imgui:2748", "ov_cimguiname": "ImFontAtlas_AddFont", "ret": "ImFont*", "signature": "(const ImFontConfig*)", @@ -2879,7 +2879,7 @@ "font_cfg": "NULL" }, "funcname": "AddFontDefault", - "location": "imgui:2642", + "location": "imgui:2749", "ov_cimguiname": "ImFontAtlas_AddFontDefault", "ret": "ImFont*", "signature": "(const ImFontConfig*)", @@ -2919,7 +2919,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromFileTTF", - "location": "imgui:2643", + "location": "imgui:2750", "ov_cimguiname": "ImFontAtlas_AddFontFromFileTTF", "ret": "ImFont*", "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", @@ -2959,7 +2959,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromMemoryCompressedBase85TTF", - "location": "imgui:2646", + "location": "imgui:2753", "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", "ret": "ImFont*", "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", @@ -3003,7 +3003,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromMemoryCompressedTTF", - "location": "imgui:2645", + "location": "imgui:2752", "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", "ret": "ImFont*", "signature": "(const void*,int,float,const ImFontConfig*,const ImWchar*)", @@ -3047,7 +3047,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromMemoryTTF", - "location": "imgui:2644", + "location": "imgui:2751", "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", "ret": "ImFont*", "signature": "(void*,int,float,const ImFontConfig*,const ImWchar*)", @@ -3068,7 +3068,7 @@ "cimguiname": "ImFontAtlas_Build", "defaults": {}, "funcname": "Build", - "location": "imgui:2657", + "location": "imgui:2764", "ov_cimguiname": "ImFontAtlas_Build", "ret": "bool", "signature": "()", @@ -3101,7 +3101,7 @@ "cimguiname": "ImFontAtlas_CalcCustomRectUV", "defaults": {}, "funcname": "CalcCustomRectUV", - "location": "imgui:2695", + "location": "imgui:2803", "ov_cimguiname": "ImFontAtlas_CalcCustomRectUV", "ret": "void", "signature": "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const", @@ -3122,7 +3122,7 @@ "cimguiname": "ImFontAtlas_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2650", + "location": "imgui:2757", "ov_cimguiname": "ImFontAtlas_Clear", "ret": "void", "signature": "()", @@ -3143,7 +3143,7 @@ "cimguiname": "ImFontAtlas_ClearFonts", "defaults": {}, "funcname": "ClearFonts", - "location": "imgui:2649", + "location": "imgui:2756", "ov_cimguiname": "ImFontAtlas_ClearFonts", "ret": "void", "signature": "()", @@ -3164,7 +3164,7 @@ "cimguiname": "ImFontAtlas_ClearInputData", "defaults": {}, "funcname": "ClearInputData", - "location": "imgui:2647", + "location": "imgui:2754", "ov_cimguiname": "ImFontAtlas_ClearInputData", "ret": "void", "signature": "()", @@ -3185,7 +3185,7 @@ "cimguiname": "ImFontAtlas_ClearTexData", "defaults": {}, "funcname": "ClearTexData", - "location": "imgui:2648", + "location": "imgui:2755", "ov_cimguiname": "ImFontAtlas_ClearTexData", "ret": "void", "signature": "()", @@ -3210,7 +3210,7 @@ "cimguiname": "ImFontAtlas_GetCustomRectByIndex", "defaults": {}, "funcname": "GetCustomRectByIndex", - "location": "imgui:2692", + "location": "imgui:2800", "ov_cimguiname": "ImFontAtlas_GetCustomRectByIndex", "ret": "ImFontAtlasCustomRect*", "signature": "(int)", @@ -3231,7 +3231,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", "defaults": {}, "funcname": "GetGlyphRangesChineseFull", - "location": "imgui:2673", + "location": "imgui:2781", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", "ret": "const ImWchar*", "signature": "()", @@ -3252,7 +3252,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", "defaults": {}, "funcname": "GetGlyphRangesChineseSimplifiedCommon", - "location": "imgui:2674", + "location": "imgui:2782", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", "ret": "const ImWchar*", "signature": "()", @@ -3273,7 +3273,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", "defaults": {}, "funcname": "GetGlyphRangesCyrillic", - "location": "imgui:2675", + "location": "imgui:2783", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", "ret": "const ImWchar*", "signature": "()", @@ -3294,13 +3294,34 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesDefault", "defaults": {}, "funcname": "GetGlyphRangesDefault", - "location": "imgui:2670", + "location": "imgui:2777", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesDefault", "ret": "const ImWchar*", "signature": "()", "stname": "ImFontAtlas" } ], + "ImFontAtlas_GetGlyphRangesGreek": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "defaults": {}, + "funcname": "GetGlyphRangesGreek", + "location": "imgui:2778", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], "ImFontAtlas_GetGlyphRangesJapanese": [ { "args": "(ImFontAtlas* self)", @@ -3315,7 +3336,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", "defaults": {}, "funcname": "GetGlyphRangesJapanese", - "location": "imgui:2672", + "location": "imgui:2780", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", "ret": "const ImWchar*", "signature": "()", @@ -3336,7 +3357,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesKorean", "defaults": {}, "funcname": "GetGlyphRangesKorean", - "location": "imgui:2671", + "location": "imgui:2779", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesKorean", "ret": "const ImWchar*", "signature": "()", @@ -3357,7 +3378,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesThai", "defaults": {}, "funcname": "GetGlyphRangesThai", - "location": "imgui:2676", + "location": "imgui:2784", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesThai", "ret": "const ImWchar*", "signature": "()", @@ -3378,7 +3399,7 @@ "cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", "defaults": {}, "funcname": "GetGlyphRangesVietnamese", - "location": "imgui:2677", + "location": "imgui:2785", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", "ret": "const ImWchar*", "signature": "()", @@ -3419,7 +3440,7 @@ "cimguiname": "ImFontAtlas_GetMouseCursorTexData", "defaults": {}, "funcname": "GetMouseCursorTexData", - "location": "imgui:2696", + "location": "imgui:2804", "ov_cimguiname": "ImFontAtlas_GetMouseCursorTexData", "ret": "bool", "signature": "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])", @@ -3458,7 +3479,7 @@ "out_bytes_per_pixel": "NULL" }, "funcname": "GetTexDataAsAlpha8", - "location": "imgui:2658", + "location": "imgui:2765", "ov_cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", "ret": "void", "signature": "(unsigned char**,int*,int*,int*)", @@ -3497,7 +3518,7 @@ "out_bytes_per_pixel": "NULL" }, "funcname": "GetTexDataAsRGBA32", - "location": "imgui:2659", + "location": "imgui:2766", "ov_cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", "ret": "void", "signature": "(unsigned char**,int*,int*,int*)", @@ -3514,7 +3535,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontAtlas", - "location": "imgui:2639", + "location": "imgui:2746", "ov_cimguiname": "ImFontAtlas_ImFontAtlas", "signature": "()", "stname": "ImFontAtlas" @@ -3534,7 +3555,7 @@ "cimguiname": "ImFontAtlas_IsBuilt", "defaults": {}, "funcname": "IsBuilt", - "location": "imgui:2660", + "location": "imgui:2767", "ov_cimguiname": "ImFontAtlas_IsBuilt", "ret": "bool", "signature": "()const", @@ -3559,7 +3580,7 @@ "cimguiname": "ImFontAtlas_SetTexID", "defaults": {}, "funcname": "SetTexID", - "location": "imgui:2661", + "location": "imgui:2768", "ov_cimguiname": "ImFontAtlas_SetTexID", "ret": "void", "signature": "(ImTextureID)", @@ -3579,7 +3600,7 @@ "cimguiname": "ImFontAtlas_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2640", + "location": "imgui:2747", "ov_cimguiname": "ImFontAtlas_destroy", "realdestructor": true, "ret": "void", @@ -3597,7 +3618,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontConfig", - "location": "imgui:2567", + "location": "imgui:2674", "ov_cimguiname": "ImFontConfig_ImFontConfig", "signature": "()", "stname": "ImFontConfig" @@ -3640,7 +3661,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_AddChar", "defaults": {}, "funcname": "AddChar", - "location": "imgui:2592", + "location": "imgui:2699", "ov_cimguiname": "ImFontGlyphRangesBuilder_AddChar", "ret": "void", "signature": "(ImWchar)", @@ -3665,7 +3686,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_AddRanges", "defaults": {}, "funcname": "AddRanges", - "location": "imgui:2594", + "location": "imgui:2701", "ov_cimguiname": "ImFontGlyphRangesBuilder_AddRanges", "ret": "void", "signature": "(const ImWchar*)", @@ -3696,7 +3717,7 @@ "text_end": "NULL" }, "funcname": "AddText", - "location": "imgui:2593", + "location": "imgui:2700", "ov_cimguiname": "ImFontGlyphRangesBuilder_AddText", "ret": "void", "signature": "(const char*,const char*)", @@ -3721,7 +3742,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", "defaults": {}, "funcname": "BuildRanges", - "location": "imgui:2595", + "location": "imgui:2702", "ov_cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", "ret": "void", "signature": "(ImVector_ImWchar*)", @@ -3742,7 +3763,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2589", + "location": "imgui:2696", "ov_cimguiname": "ImFontGlyphRangesBuilder_Clear", "ret": "void", "signature": "()", @@ -3767,7 +3788,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_GetBit", "defaults": {}, "funcname": "GetBit", - "location": "imgui:2590", + "location": "imgui:2697", "ov_cimguiname": "ImFontGlyphRangesBuilder_GetBit", "ret": "bool", "signature": "(size_t)const", @@ -3784,7 +3805,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontGlyphRangesBuilder", - "location": "imgui:2588", + "location": "imgui:2695", "ov_cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", "signature": "()", "stname": "ImFontGlyphRangesBuilder" @@ -3808,7 +3829,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_SetBit", "defaults": {}, "funcname": "SetBit", - "location": "imgui:2591", + "location": "imgui:2698", "ov_cimguiname": "ImFontGlyphRangesBuilder_SetBit", "ret": "void", "signature": "(size_t)", @@ -3892,7 +3913,7 @@ "cimguiname": "ImFont_AddGlyph", "defaults": {}, "funcname": "AddGlyph", - "location": "imgui:2784", + "location": "imgui:2891", "ov_cimguiname": "ImFont_AddGlyph", "ret": "void", "signature": "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)", @@ -3927,7 +3948,7 @@ "overwrite_dst": "true" }, "funcname": "AddRemapChar", - "location": "imgui:2785", + "location": "imgui:2892", "ov_cimguiname": "ImFont_AddRemapChar", "ret": "void", "signature": "(ImWchar,ImWchar,bool)", @@ -3948,7 +3969,7 @@ "cimguiname": "ImFont_BuildLookupTable", "defaults": {}, "funcname": "BuildLookupTable", - "location": "imgui:2781", + "location": "imgui:2888", "ov_cimguiname": "ImFont_BuildLookupTable", "ret": "void", "signature": "()", @@ -4000,7 +4021,7 @@ "text_end": "NULL" }, "funcname": "CalcTextSizeA", - "location": "imgui:2775", + "location": "imgui:2882", "nonUDT": 1, "ov_cimguiname": "ImFont_CalcTextSizeA", "ret": "void", @@ -4038,7 +4059,7 @@ "cimguiname": "ImFont_CalcWordWrapPositionA", "defaults": {}, "funcname": "CalcWordWrapPositionA", - "location": "imgui:2776", + "location": "imgui:2883", "ov_cimguiname": "ImFont_CalcWordWrapPositionA", "ret": "const char*", "signature": "(float,const char*,const char*,float)const", @@ -4059,7 +4080,7 @@ "cimguiname": "ImFont_ClearOutputData", "defaults": {}, "funcname": "ClearOutputData", - "location": "imgui:2782", + "location": "imgui:2889", "ov_cimguiname": "ImFont_ClearOutputData", "ret": "void", "signature": "()", @@ -4084,7 +4105,7 @@ "cimguiname": "ImFont_FindGlyph", "defaults": {}, "funcname": "FindGlyph", - "location": "imgui:2767", + "location": "imgui:2874", "ov_cimguiname": "ImFont_FindGlyph", "ret": "const ImFontGlyph*", "signature": "(ImWchar)const", @@ -4109,7 +4130,7 @@ "cimguiname": "ImFont_FindGlyphNoFallback", "defaults": {}, "funcname": "FindGlyphNoFallback", - "location": "imgui:2768", + "location": "imgui:2875", "ov_cimguiname": "ImFont_FindGlyphNoFallback", "ret": "const ImFontGlyph*", "signature": "(ImWchar)const", @@ -4134,7 +4155,7 @@ "cimguiname": "ImFont_GetCharAdvance", "defaults": {}, "funcname": "GetCharAdvance", - "location": "imgui:2769", + "location": "imgui:2876", "ov_cimguiname": "ImFont_GetCharAdvance", "ret": "float", "signature": "(ImWchar)const", @@ -4155,7 +4176,7 @@ "cimguiname": "ImFont_GetDebugName", "defaults": {}, "funcname": "GetDebugName", - "location": "imgui:2771", + "location": "imgui:2878", "ov_cimguiname": "ImFont_GetDebugName", "ret": "const char*", "signature": "()const", @@ -4180,7 +4201,7 @@ "cimguiname": "ImFont_GrowIndex", "defaults": {}, "funcname": "GrowIndex", - "location": "imgui:2783", + "location": "imgui:2890", "ov_cimguiname": "ImFont_GrowIndex", "ret": "void", "signature": "(int)", @@ -4197,7 +4218,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFont", - "location": "imgui:2765", + "location": "imgui:2872", "ov_cimguiname": "ImFont_ImFont", "signature": "()", "stname": "ImFont" @@ -4225,7 +4246,7 @@ "cimguiname": "ImFont_IsGlyphRangeUnused", "defaults": {}, "funcname": "IsGlyphRangeUnused", - "location": "imgui:2787", + "location": "imgui:2894", "ov_cimguiname": "ImFont_IsGlyphRangeUnused", "ret": "bool", "signature": "(unsigned int,unsigned int)", @@ -4246,7 +4267,7 @@ "cimguiname": "ImFont_IsLoaded", "defaults": {}, "funcname": "IsLoaded", - "location": "imgui:2770", + "location": "imgui:2877", "ov_cimguiname": "ImFont_IsLoaded", "ret": "bool", "signature": "()const", @@ -4255,7 +4276,7 @@ ], "ImFont_RenderChar": [ { - "args": "(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c)", + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)", "argsT": [ { "name": "self", @@ -4271,7 +4292,7 @@ }, { "name": "pos", - "type": "ImVec2" + "type": "const ImVec2" }, { "name": "col", @@ -4282,21 +4303,21 @@ "type": "ImWchar" } ], - "argsoriginal": "(ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c)", + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)", "call_args": "(draw_list,size,pos,col,c)", "cimguiname": "ImFont_RenderChar", "defaults": {}, "funcname": "RenderChar", - "location": "imgui:2777", + "location": "imgui:2884", "ov_cimguiname": "ImFont_RenderChar", "ret": "void", - "signature": "(ImDrawList*,float,ImVec2,ImU32,ImWchar)const", + "signature": "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const", "stname": "ImFont" } ], "ImFont_RenderText": [ { - "args": "(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)", + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)", "argsT": [ { "name": "self", @@ -4312,7 +4333,7 @@ }, { "name": "pos", - "type": "ImVec2" + "type": "const ImVec2" }, { "name": "col", @@ -4339,7 +4360,7 @@ "type": "bool" } ], - "argsoriginal": "(ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)", + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)", "call_args": "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)", "cimguiname": "ImFont_RenderText", "defaults": { @@ -4347,10 +4368,10 @@ "wrap_width": "0.0f" }, "funcname": "RenderText", - "location": "imgui:2778", + "location": "imgui:2885", "ov_cimguiname": "ImFont_RenderText", "ret": "void", - "signature": "(ImDrawList*,float,ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const", + "signature": "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const", "stname": "ImFont" } ], @@ -4376,7 +4397,7 @@ "cimguiname": "ImFont_SetGlyphVisible", "defaults": {}, "funcname": "SetGlyphVisible", - "location": "imgui:2786", + "location": "imgui:2893", "ov_cimguiname": "ImFont_SetGlyphVisible", "ret": "void", "signature": "(ImWchar,bool)", @@ -4396,7 +4417,7 @@ "cimguiname": "ImFont_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2766", + "location": "imgui:2873", "ov_cimguiname": "ImFont_destroy", "realdestructor": true, "ret": "void", @@ -4422,7 +4443,7 @@ "cimguiname": "ImGuiIO_AddFocusEvent", "defaults": {}, "funcname": "AddFocusEvent", - "location": "imgui:1898", + "location": "imgui:1974", "ov_cimguiname": "ImGuiIO_AddFocusEvent", "ret": "void", "signature": "(bool)", @@ -4447,7 +4468,7 @@ "cimguiname": "ImGuiIO_AddInputCharacter", "defaults": {}, "funcname": "AddInputCharacter", - "location": "imgui:1895", + "location": "imgui:1975", "ov_cimguiname": "ImGuiIO_AddInputCharacter", "ret": "void", "signature": "(unsigned int)", @@ -4472,7 +4493,7 @@ "cimguiname": "ImGuiIO_AddInputCharacterUTF16", "defaults": {}, "funcname": "AddInputCharacterUTF16", - "location": "imgui:1896", + "location": "imgui:1976", "ov_cimguiname": "ImGuiIO_AddInputCharacterUTF16", "ret": "void", "signature": "(ImWchar16)", @@ -4497,159 +4518,372 @@ "cimguiname": "ImGuiIO_AddInputCharactersUTF8", "defaults": {}, "funcname": "AddInputCharactersUTF8", - "location": "imgui:1897", + "location": "imgui:1977", "ov_cimguiname": "ImGuiIO_AddInputCharactersUTF8", "ret": "void", "signature": "(const char*)", "stname": "ImGuiIO" } ], - "ImGuiIO_ClearInputCharacters": [ + "ImGuiIO_AddKeyAnalogEvent": [ { - "args": "(ImGuiIO* self)", + "args": "(ImGuiIO* self,ImGuiKey key,bool down,float v)", "argsT": [ { "name": "self", "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "down", + "type": "bool" + }, + { + "name": "v", + "type": "float" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiIO_ClearInputCharacters", + "argsoriginal": "(ImGuiKey key,bool down,float v)", + "call_args": "(key,down,v)", + "cimguiname": "ImGuiIO_AddKeyAnalogEvent", "defaults": {}, - "funcname": "ClearInputCharacters", - "location": "imgui:1899", - "ov_cimguiname": "ImGuiIO_ClearInputCharacters", + "funcname": "AddKeyAnalogEvent", + "location": "imgui:1970", + "ov_cimguiname": "ImGuiIO_AddKeyAnalogEvent", "ret": "void", - "signature": "()", + "signature": "(ImGuiKey,bool,float)", "stname": "ImGuiIO" } ], - "ImGuiIO_ClearInputKeys": [ + "ImGuiIO_AddKeyEvent": [ { - "args": "(ImGuiIO* self)", + "args": "(ImGuiIO* self,ImGuiKey key,bool down)", "argsT": [ { "name": "self", "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "down", + "type": "bool" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiIO_ClearInputKeys", + "argsoriginal": "(ImGuiKey key,bool down)", + "call_args": "(key,down)", + "cimguiname": "ImGuiIO_AddKeyEvent", "defaults": {}, - "funcname": "ClearInputKeys", - "location": "imgui:1900", - "ov_cimguiname": "ImGuiIO_ClearInputKeys", + "funcname": "AddKeyEvent", + "location": "imgui:1969", + "ov_cimguiname": "ImGuiIO_AddKeyEvent", "ret": "void", - "signature": "()", - "stname": "ImGuiIO" - } - ], - "ImGuiIO_ImGuiIO": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiIO_ImGuiIO", - "constructor": true, - "defaults": {}, - "funcname": "ImGuiIO", - "location": "imgui:1953", - "ov_cimguiname": "ImGuiIO_ImGuiIO", - "signature": "()", + "signature": "(ImGuiKey,bool)", "stname": "ImGuiIO" } ], - "ImGuiIO_destroy": [ + "ImGuiIO_AddMouseButtonEvent": [ { - "args": "(ImGuiIO* self)", + "args": "(ImGuiIO* self,int button,bool down)", "argsT": [ { "name": "self", "type": "ImGuiIO*" + }, + { + "name": "button", + "type": "int" + }, + { + "name": "down", + "type": "bool" } ], - "call_args": "(self)", - "cimguiname": "ImGuiIO_destroy", + "argsoriginal": "(int button,bool down)", + "call_args": "(button,down)", + "cimguiname": "ImGuiIO_AddMouseButtonEvent", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImGuiIO_destroy", + "funcname": "AddMouseButtonEvent", + "location": "imgui:1972", + "ov_cimguiname": "ImGuiIO_AddMouseButtonEvent", "ret": "void", - "signature": "(ImGuiIO*)", + "signature": "(int,bool)", "stname": "ImGuiIO" } ], - "ImGuiInputTextCallbackData_ClearSelection": [ + "ImGuiIO_AddMousePosEvent": [ { - "args": "(ImGuiInputTextCallbackData* self)", + "args": "(ImGuiIO* self,float x,float y)", "argsT": [ { "name": "self", - "type": "ImGuiInputTextCallbackData*" + "type": "ImGuiIO*" + }, + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "argsoriginal": "(float x,float y)", + "call_args": "(x,y)", + "cimguiname": "ImGuiIO_AddMousePosEvent", "defaults": {}, - "funcname": "ClearSelection", - "location": "imgui:1994", - "ov_cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "funcname": "AddMousePosEvent", + "location": "imgui:1971", + "ov_cimguiname": "ImGuiIO_AddMousePosEvent", "ret": "void", - "signature": "()", - "stname": "ImGuiInputTextCallbackData" + "signature": "(float,float)", + "stname": "ImGuiIO" } ], - "ImGuiInputTextCallbackData_DeleteChars": [ + "ImGuiIO_AddMouseWheelEvent": [ { - "args": "(ImGuiInputTextCallbackData* self,int pos,int bytes_count)", + "args": "(ImGuiIO* self,float wh_x,float wh_y)", "argsT": [ { "name": "self", - "type": "ImGuiInputTextCallbackData*" + "type": "ImGuiIO*" }, { - "name": "pos", - "type": "int" + "name": "wh_x", + "type": "float" }, { - "name": "bytes_count", - "type": "int" + "name": "wh_y", + "type": "float" } ], - "argsoriginal": "(int pos,int bytes_count)", - "call_args": "(pos,bytes_count)", - "cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "argsoriginal": "(float wh_x,float wh_y)", + "call_args": "(wh_x,wh_y)", + "cimguiname": "ImGuiIO_AddMouseWheelEvent", "defaults": {}, - "funcname": "DeleteChars", - "location": "imgui:1991", - "ov_cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "funcname": "AddMouseWheelEvent", + "location": "imgui:1973", + "ov_cimguiname": "ImGuiIO_AddMouseWheelEvent", "ret": "void", - "signature": "(int,int)", - "stname": "ImGuiInputTextCallbackData" + "signature": "(float,float)", + "stname": "ImGuiIO" } ], - "ImGuiInputTextCallbackData_HasSelection": [ + "ImGuiIO_ClearInputCharacters": [ { - "args": "(ImGuiInputTextCallbackData* self)", + "args": "(ImGuiIO* self)", "argsT": [ { "name": "self", - "type": "ImGuiInputTextCallbackData*" + "type": "ImGuiIO*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "cimguiname": "ImGuiIO_ClearInputCharacters", "defaults": {}, - "funcname": "HasSelection", - "location": "imgui:1995", - "ov_cimguiname": "ImGuiInputTextCallbackData_HasSelection", - "ret": "bool", - "signature": "()const", - "stname": "ImGuiInputTextCallbackData" + "funcname": "ClearInputCharacters", + "location": "imgui:1981", + "ov_cimguiname": "ImGuiIO_ClearInputCharacters", + "ret": "void", + "signature": "()", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_ClearInputKeys": [ + { + "args": "(ImGuiIO* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ClearInputKeys", + "defaults": {}, + "funcname": "ClearInputKeys", + "location": "imgui:1982", + "ov_cimguiname": "ImGuiIO_ClearInputKeys", + "ret": "void", + "signature": "()", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_ImGuiIO": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ImGuiIO", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiIO", + "location": "imgui:2055", + "ov_cimguiname": "ImGuiIO_ImGuiIO", + "signature": "()", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_SetAppAcceptingEvents": [ + { + "args": "(ImGuiIO* self,bool accepting_events)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "accepting_events", + "type": "bool" + } + ], + "argsoriginal": "(bool accepting_events)", + "call_args": "(accepting_events)", + "cimguiname": "ImGuiIO_SetAppAcceptingEvents", + "defaults": {}, + "funcname": "SetAppAcceptingEvents", + "location": "imgui:1980", + "ov_cimguiname": "ImGuiIO_SetAppAcceptingEvents", + "ret": "void", + "signature": "(bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_SetKeyEventNativeData": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "native_keycode", + "type": "int" + }, + { + "name": "native_scancode", + "type": "int" + }, + { + "name": "native_legacy_index", + "type": "int" + } + ], + "argsoriginal": "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)", + "call_args": "(key,native_keycode,native_scancode,native_legacy_index)", + "cimguiname": "ImGuiIO_SetKeyEventNativeData", + "defaults": { + "native_legacy_index": "-1" + }, + "funcname": "SetKeyEventNativeData", + "location": "imgui:1979", + "ov_cimguiname": "ImGuiIO_SetKeyEventNativeData", + "ret": "void", + "signature": "(ImGuiKey,int,int,int)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_destroy": [ + { + "args": "(ImGuiIO* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiIO_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiIO_destroy", + "ret": "void", + "signature": "(ImGuiIO*)", + "stname": "ImGuiIO" + } + ], + "ImGuiInputTextCallbackData_ClearSelection": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "defaults": {}, + "funcname": "ClearSelection", + "location": "imgui:2096", + "ov_cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "ret": "void", + "signature": "()", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_DeleteChars": [ + { + "args": "(ImGuiInputTextCallbackData* self,int pos,int bytes_count)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + }, + { + "name": "pos", + "type": "int" + }, + { + "name": "bytes_count", + "type": "int" + } + ], + "argsoriginal": "(int pos,int bytes_count)", + "call_args": "(pos,bytes_count)", + "cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "defaults": {}, + "funcname": "DeleteChars", + "location": "imgui:2093", + "ov_cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "ret": "void", + "signature": "(int,int)", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_HasSelection": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "defaults": {}, + "funcname": "HasSelection", + "location": "imgui:2097", + "ov_cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiInputTextCallbackData" } ], "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData": [ @@ -4662,7 +4896,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiInputTextCallbackData", - "location": "imgui:1990", + "location": "imgui:2092", "ov_cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", "signature": "()", "stname": "ImGuiInputTextCallbackData" @@ -4696,7 +4930,7 @@ "text_end": "NULL" }, "funcname": "InsertChars", - "location": "imgui:1992", + "location": "imgui:2094", "ov_cimguiname": "ImGuiInputTextCallbackData_InsertChars", "ret": "void", "signature": "(int,const char*,const char*)", @@ -4717,7 +4951,7 @@ "cimguiname": "ImGuiInputTextCallbackData_SelectAll", "defaults": {}, "funcname": "SelectAll", - "location": "imgui:1993", + "location": "imgui:2095", "ov_cimguiname": "ImGuiInputTextCallbackData_SelectAll", "ret": "void", "signature": "()", @@ -4767,7 +5001,7 @@ "items_height": "-1.0f" }, "funcname": "Begin", - "location": "imgui:2206", + "location": "imgui:2308", "ov_cimguiname": "ImGuiListClipper_Begin", "ret": "void", "signature": "(int,float)", @@ -4788,7 +5022,7 @@ "cimguiname": "ImGuiListClipper_End", "defaults": {}, "funcname": "End", - "location": "imgui:2207", + "location": "imgui:2309", "ov_cimguiname": "ImGuiListClipper_End", "ret": "void", "signature": "()", @@ -4817,7 +5051,7 @@ "cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", "defaults": {}, "funcname": "ForceDisplayRangeByIndices", - "location": "imgui:2211", + "location": "imgui:2313", "ov_cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", "ret": "void", "signature": "(int,int)", @@ -4834,7 +5068,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiListClipper", - "location": "imgui:2204", + "location": "imgui:2306", "ov_cimguiname": "ImGuiListClipper_ImGuiListClipper", "signature": "()", "stname": "ImGuiListClipper" @@ -4854,7 +5088,7 @@ "cimguiname": "ImGuiListClipper_Step", "defaults": {}, "funcname": "Step", - "location": "imgui:2208", + "location": "imgui:2310", "ov_cimguiname": "ImGuiListClipper_Step", "ret": "bool", "signature": "()", @@ -4874,7 +5108,7 @@ "cimguiname": "ImGuiListClipper_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2205", + "location": "imgui:2307", "ov_cimguiname": "ImGuiListClipper_destroy", "realdestructor": true, "ret": "void", @@ -4892,7 +5126,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiOnceUponAFrame", - "location": "imgui:2070", + "location": "imgui:2172", "ov_cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", "signature": "()", "stname": "ImGuiOnceUponAFrame" @@ -4931,7 +5165,7 @@ "cimguiname": "ImGuiPayload_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2024", + "location": "imgui:2126", "ov_cimguiname": "ImGuiPayload_Clear", "ret": "void", "signature": "()", @@ -4948,7 +5182,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPayload", - "location": "imgui:2023", + "location": "imgui:2125", "ov_cimguiname": "ImGuiPayload_ImGuiPayload", "signature": "()", "stname": "ImGuiPayload" @@ -4972,7 +5206,7 @@ "cimguiname": "ImGuiPayload_IsDataType", "defaults": {}, "funcname": "IsDataType", - "location": "imgui:2025", + "location": "imgui:2127", "ov_cimguiname": "ImGuiPayload_IsDataType", "ret": "bool", "signature": "(const char*)const", @@ -4993,7 +5227,7 @@ "cimguiname": "ImGuiPayload_IsDelivery", "defaults": {}, "funcname": "IsDelivery", - "location": "imgui:2027", + "location": "imgui:2129", "ov_cimguiname": "ImGuiPayload_IsDelivery", "ret": "bool", "signature": "()const", @@ -5014,7 +5248,7 @@ "cimguiname": "ImGuiPayload_IsPreview", "defaults": {}, "funcname": "IsPreview", - "location": "imgui:2026", + "location": "imgui:2128", "ov_cimguiname": "ImGuiPayload_IsPreview", "ret": "bool", "signature": "()const", @@ -5040,6 +5274,41 @@ "stname": "ImGuiPayload" } ], + "ImGuiPlatformImeData_ImGuiPlatformImeData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPlatformImeData", + "location": "imgui:2946", + "ov_cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "signature": "()", + "stname": "ImGuiPlatformImeData" + } + ], + "ImGuiPlatformImeData_destroy": [ + { + "args": "(ImGuiPlatformImeData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPlatformImeData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiPlatformImeData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPlatformImeData_destroy", + "ret": "void", + "signature": "(ImGuiPlatformImeData*)", + "stname": "ImGuiPlatformImeData" + } + ], "ImGuiStoragePair_ImGuiStoragePair": [ { "args": "(ImGuiID _key,int _val_i)", @@ -5059,8 +5328,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStoragePair", - "location": "imgui:2137", - "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePairInt", + "location": "imgui:2239", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Int", "signature": "(ImGuiID,int)", "stname": "ImGuiStoragePair" }, @@ -5082,8 +5351,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStoragePair", - "location": "imgui:2138", - "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePairFloat", + "location": "imgui:2240", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Float", "signature": "(ImGuiID,float)", "stname": "ImGuiStoragePair" }, @@ -5105,8 +5374,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStoragePair", - "location": "imgui:2139", - "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePairPtr", + "location": "imgui:2241", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Ptr", "signature": "(ImGuiID,void*)", "stname": "ImGuiStoragePair" } @@ -5144,7 +5413,7 @@ "cimguiname": "ImGuiStorage_BuildSortByKey", "defaults": {}, "funcname": "BuildSortByKey", - "location": "imgui:2170", + "location": "imgui:2272", "ov_cimguiname": "ImGuiStorage_BuildSortByKey", "ret": "void", "signature": "()", @@ -5165,7 +5434,7 @@ "cimguiname": "ImGuiStorage_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2147", + "location": "imgui:2249", "ov_cimguiname": "ImGuiStorage_Clear", "ret": "void", "signature": "()", @@ -5196,7 +5465,7 @@ "default_val": "false" }, "funcname": "GetBool", - "location": "imgui:2150", + "location": "imgui:2252", "ov_cimguiname": "ImGuiStorage_GetBool", "ret": "bool", "signature": "(ImGuiID,bool)const", @@ -5227,7 +5496,7 @@ "default_val": "false" }, "funcname": "GetBoolRef", - "location": "imgui:2162", + "location": "imgui:2264", "ov_cimguiname": "ImGuiStorage_GetBoolRef", "ret": "bool*", "signature": "(ImGuiID,bool)", @@ -5258,7 +5527,7 @@ "default_val": "0.0f" }, "funcname": "GetFloat", - "location": "imgui:2152", + "location": "imgui:2254", "ov_cimguiname": "ImGuiStorage_GetFloat", "ret": "float", "signature": "(ImGuiID,float)const", @@ -5289,7 +5558,7 @@ "default_val": "0.0f" }, "funcname": "GetFloatRef", - "location": "imgui:2163", + "location": "imgui:2265", "ov_cimguiname": "ImGuiStorage_GetFloatRef", "ret": "float*", "signature": "(ImGuiID,float)", @@ -5320,7 +5589,7 @@ "default_val": "0" }, "funcname": "GetInt", - "location": "imgui:2148", + "location": "imgui:2250", "ov_cimguiname": "ImGuiStorage_GetInt", "ret": "int", "signature": "(ImGuiID,int)const", @@ -5351,7 +5620,7 @@ "default_val": "0" }, "funcname": "GetIntRef", - "location": "imgui:2161", + "location": "imgui:2263", "ov_cimguiname": "ImGuiStorage_GetIntRef", "ret": "int*", "signature": "(ImGuiID,int)", @@ -5376,7 +5645,7 @@ "cimguiname": "ImGuiStorage_GetVoidPtr", "defaults": {}, "funcname": "GetVoidPtr", - "location": "imgui:2154", + "location": "imgui:2256", "ov_cimguiname": "ImGuiStorage_GetVoidPtr", "ret": "void*", "signature": "(ImGuiID)const", @@ -5407,7 +5676,7 @@ "default_val": "NULL" }, "funcname": "GetVoidPtrRef", - "location": "imgui:2164", + "location": "imgui:2266", "ov_cimguiname": "ImGuiStorage_GetVoidPtrRef", "ret": "void**", "signature": "(ImGuiID,void*)", @@ -5432,7 +5701,7 @@ "cimguiname": "ImGuiStorage_SetAllInt", "defaults": {}, "funcname": "SetAllInt", - "location": "imgui:2167", + "location": "imgui:2269", "ov_cimguiname": "ImGuiStorage_SetAllInt", "ret": "void", "signature": "(int)", @@ -5461,7 +5730,7 @@ "cimguiname": "ImGuiStorage_SetBool", "defaults": {}, "funcname": "SetBool", - "location": "imgui:2151", + "location": "imgui:2253", "ov_cimguiname": "ImGuiStorage_SetBool", "ret": "void", "signature": "(ImGuiID,bool)", @@ -5490,7 +5759,7 @@ "cimguiname": "ImGuiStorage_SetFloat", "defaults": {}, "funcname": "SetFloat", - "location": "imgui:2153", + "location": "imgui:2255", "ov_cimguiname": "ImGuiStorage_SetFloat", "ret": "void", "signature": "(ImGuiID,float)", @@ -5519,7 +5788,7 @@ "cimguiname": "ImGuiStorage_SetInt", "defaults": {}, "funcname": "SetInt", - "location": "imgui:2149", + "location": "imgui:2251", "ov_cimguiname": "ImGuiStorage_SetInt", "ret": "void", "signature": "(ImGuiID,int)", @@ -5548,7 +5817,7 @@ "cimguiname": "ImGuiStorage_SetVoidPtr", "defaults": {}, "funcname": "SetVoidPtr", - "location": "imgui:2155", + "location": "imgui:2257", "ov_cimguiname": "ImGuiStorage_SetVoidPtr", "ret": "void", "signature": "(ImGuiID,void*)", @@ -5565,7 +5834,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStyle", - "location": "imgui:1809", + "location": "imgui:1877", "ov_cimguiname": "ImGuiStyle_ImGuiStyle", "signature": "()", "stname": "ImGuiStyle" @@ -5589,7 +5858,7 @@ "cimguiname": "ImGuiStyle_ScaleAllSizes", "defaults": {}, "funcname": "ScaleAllSizes", - "location": "imgui:1810", + "location": "imgui:1878", "ov_cimguiname": "ImGuiStyle_ScaleAllSizes", "ret": "void", "signature": "(float)", @@ -5625,7 +5894,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableColumnSortSpecs", - "location": "imgui:2038", + "location": "imgui:2140", "ov_cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", "signature": "()", "stname": "ImGuiTableColumnSortSpecs" @@ -5660,7 +5929,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableSortSpecs", - "location": "imgui:2051", + "location": "imgui:2153", "ov_cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", "signature": "()", "stname": "ImGuiTableSortSpecs" @@ -5695,7 +5964,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTextBuffer", - "location": "imgui:2108", + "location": "imgui:2210", "ov_cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", "signature": "()", "stname": "ImGuiTextBuffer" @@ -5725,7 +5994,7 @@ "str_end": "NULL" }, "funcname": "append", - "location": "imgui:2117", + "location": "imgui:2219", "ov_cimguiname": "ImGuiTextBuffer_append", "ret": "void", "signature": "(const char*,const char*)", @@ -5755,7 +6024,7 @@ "defaults": {}, "funcname": "appendf", "isvararg": "...)", - "location": "imgui:2118", + "location": "imgui:2220", "manual": true, "ov_cimguiname": "ImGuiTextBuffer_appendf", "ret": "void", @@ -5785,7 +6054,7 @@ "cimguiname": "ImGuiTextBuffer_appendfv", "defaults": {}, "funcname": "appendfv", - "location": "imgui:2119", + "location": "imgui:2221", "ov_cimguiname": "ImGuiTextBuffer_appendfv", "ret": "void", "signature": "(const char*,va_list)", @@ -5806,7 +6075,7 @@ "cimguiname": "ImGuiTextBuffer_begin", "defaults": {}, "funcname": "begin", - "location": "imgui:2110", + "location": "imgui:2212", "ov_cimguiname": "ImGuiTextBuffer_begin", "ret": "const char*", "signature": "()const", @@ -5827,7 +6096,7 @@ "cimguiname": "ImGuiTextBuffer_c_str", "defaults": {}, "funcname": "c_str", - "location": "imgui:2116", + "location": "imgui:2218", "ov_cimguiname": "ImGuiTextBuffer_c_str", "ret": "const char*", "signature": "()const", @@ -5848,7 +6117,7 @@ "cimguiname": "ImGuiTextBuffer_clear", "defaults": {}, "funcname": "clear", - "location": "imgui:2114", + "location": "imgui:2216", "ov_cimguiname": "ImGuiTextBuffer_clear", "ret": "void", "signature": "()", @@ -5888,7 +6157,7 @@ "cimguiname": "ImGuiTextBuffer_empty", "defaults": {}, "funcname": "empty", - "location": "imgui:2113", + "location": "imgui:2215", "ov_cimguiname": "ImGuiTextBuffer_empty", "ret": "bool", "signature": "()const", @@ -5909,7 +6178,7 @@ "cimguiname": "ImGuiTextBuffer_end", "defaults": {}, "funcname": "end", - "location": "imgui:2111", + "location": "imgui:2213", "ov_cimguiname": "ImGuiTextBuffer_end", "ret": "const char*", "signature": "()const", @@ -5934,7 +6203,7 @@ "cimguiname": "ImGuiTextBuffer_reserve", "defaults": {}, "funcname": "reserve", - "location": "imgui:2115", + "location": "imgui:2217", "ov_cimguiname": "ImGuiTextBuffer_reserve", "ret": "void", "signature": "(int)", @@ -5955,7 +6224,7 @@ "cimguiname": "ImGuiTextBuffer_size", "defaults": {}, "funcname": "size", - "location": "imgui:2112", + "location": "imgui:2214", "ov_cimguiname": "ImGuiTextBuffer_size", "ret": "int", "signature": "()const", @@ -5976,7 +6245,7 @@ "cimguiname": "ImGuiTextFilter_Build", "defaults": {}, "funcname": "Build", - "location": "imgui:2081", + "location": "imgui:2183", "ov_cimguiname": "ImGuiTextFilter_Build", "ret": "void", "signature": "()", @@ -5997,7 +6266,7 @@ "cimguiname": "ImGuiTextFilter_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2082", + "location": "imgui:2184", "ov_cimguiname": "ImGuiTextFilter_Clear", "ret": "void", "signature": "()", @@ -6029,7 +6298,7 @@ "width": "0.0f" }, "funcname": "Draw", - "location": "imgui:2079", + "location": "imgui:2181", "ov_cimguiname": "ImGuiTextFilter_Draw", "ret": "bool", "signature": "(const char*,float)", @@ -6053,7 +6322,7 @@ "default_filter": "\"\"" }, "funcname": "ImGuiTextFilter", - "location": "imgui:2078", + "location": "imgui:2180", "ov_cimguiname": "ImGuiTextFilter_ImGuiTextFilter", "signature": "(const char*)", "stname": "ImGuiTextFilter" @@ -6073,7 +6342,7 @@ "cimguiname": "ImGuiTextFilter_IsActive", "defaults": {}, "funcname": "IsActive", - "location": "imgui:2083", + "location": "imgui:2185", "ov_cimguiname": "ImGuiTextFilter_IsActive", "ret": "bool", "signature": "()const", @@ -6104,7 +6373,7 @@ "text_end": "NULL" }, "funcname": "PassFilter", - "location": "imgui:2080", + "location": "imgui:2182", "ov_cimguiname": "ImGuiTextFilter_PassFilter", "ret": "bool", "signature": "(const char*,const char*)const", @@ -6140,8 +6409,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTextRange", - "location": "imgui:2091", - "ov_cimguiname": "ImGuiTextRange_ImGuiTextRangeNil", + "location": "imgui:2193", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Nil", "signature": "()", "stname": "ImGuiTextRange" }, @@ -6163,8 +6432,8 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTextRange", - "location": "imgui:2092", - "ov_cimguiname": "ImGuiTextRange_ImGuiTextRangeStr", + "location": "imgui:2194", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Str", "signature": "(const char*,const char*)", "stname": "ImGuiTextRange" } @@ -6202,7 +6471,7 @@ "cimguiname": "ImGuiTextRange_empty", "defaults": {}, "funcname": "empty", - "location": "imgui:2093", + "location": "imgui:2195", "ov_cimguiname": "ImGuiTextRange_empty", "ret": "bool", "signature": "()const", @@ -6231,7 +6500,7 @@ "cimguiname": "ImGuiTextRange_split", "defaults": {}, "funcname": "split", - "location": "imgui:2094", + "location": "imgui:2196", "ov_cimguiname": "ImGuiTextRange_split", "ret": "void", "signature": "(char,ImVector_ImGuiTextRange*)const", @@ -6256,7 +6525,7 @@ "cimguiname": "ImGuiViewport_GetCenter", "defaults": {}, "funcname": "GetCenter", - "location": "imgui:2821", + "location": "imgui:2931", "nonUDT": 1, "ov_cimguiname": "ImGuiViewport_GetCenter", "ret": "void", @@ -6282,7 +6551,7 @@ "cimguiname": "ImGuiViewport_GetWorkCenter", "defaults": {}, "funcname": "GetWorkCenter", - "location": "imgui:2822", + "location": "imgui:2932", "nonUDT": 1, "ov_cimguiname": "ImGuiViewport_GetWorkCenter", "ret": "void", @@ -6300,7 +6569,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiViewport", - "location": "imgui:2818", + "location": "imgui:2928", "ov_cimguiname": "ImGuiViewport_ImGuiViewport", "signature": "()", "stname": "ImGuiViewport" @@ -6335,8 +6604,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2", - "location": "imgui:262", - "ov_cimguiname": "ImVec2_ImVec2Nil", + "location": "imgui:256", + "ov_cimguiname": "ImVec2_ImVec2_Nil", "signature": "()", "stname": "ImVec2" }, @@ -6358,8 +6627,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2", - "location": "imgui:263", - "ov_cimguiname": "ImVec2_ImVec2Float", + "location": "imgui:257", + "ov_cimguiname": "ImVec2_ImVec2_Float", "signature": "(float,float)", "stname": "ImVec2" } @@ -6393,8 +6662,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec4", - "location": "imgui:275", - "ov_cimguiname": "ImVec4_ImVec4Nil", + "location": "imgui:269", + "ov_cimguiname": "ImVec4_ImVec4_Nil", "signature": "()", "stname": "ImVec4" }, @@ -6424,8 +6693,8 @@ "constructor": true, "defaults": {}, "funcname": "ImVec4", - "location": "imgui:276", - "ov_cimguiname": "ImVec4_ImVec4Float", + "location": "imgui:270", + "ov_cimguiname": "ImVec4_ImVec4_Float", "signature": "(float,float,float,float)", "stname": "ImVec4" } @@ -6459,18 +6728,18 @@ "constructor": true, "defaults": {}, "funcname": "ImVector", - "location": "imgui:1707", - "ov_cimguiname": "ImVector_ImVectorNil", + "location": "imgui:1774", + "ov_cimguiname": "ImVector_ImVector_Nil", "signature": "()", "stname": "ImVector", "templated": true }, { - "args": "(const ImVector src)", + "args": "(const ImVector_T src)", "argsT": [ { "name": "src", - "type": "const ImVector" + "type": "const ImVector_T " } ], "argsoriginal": "(const ImVector& src)", @@ -6479,9 +6748,9 @@ "constructor": true, "defaults": {}, "funcname": "ImVector", - "location": "imgui:1708", - "ov_cimguiname": "ImVector_ImVectorVector", - "signature": "(const ImVector)", + "location": "imgui:1775", + "ov_cimguiname": "ImVector_ImVector_Vector_T_", + "signature": "(const ImVector_T )", "stname": "ImVector", "templated": true } @@ -6504,7 +6773,7 @@ "cimguiname": "ImVector__grow_capacity", "defaults": {}, "funcname": "_grow_capacity", - "location": "imgui:1734", + "location": "imgui:1801", "ov_cimguiname": "ImVector__grow_capacity", "ret": "int", "signature": "(int)const", @@ -6526,8 +6795,8 @@ "cimguiname": "ImVector_back", "defaults": {}, "funcname": "back", - "location": "imgui:1730", - "ov_cimguiname": "ImVector_backNil", + "location": "imgui:1797", + "ov_cimguiname": "ImVector_back_Nil", "ret": "T*", "retref": "&", "signature": "()", @@ -6547,8 +6816,8 @@ "cimguiname": "ImVector_back", "defaults": {}, "funcname": "back", - "location": "imgui:1731", - "ov_cimguiname": "ImVector_back_const", + "location": "imgui:1798", + "ov_cimguiname": "ImVector_back__const", "ret": "const T*", "retref": "&", "signature": "()const", @@ -6570,8 +6839,8 @@ "cimguiname": "ImVector_begin", "defaults": {}, "funcname": "begin", - "location": "imgui:1724", - "ov_cimguiname": "ImVector_beginNil", + "location": "imgui:1791", + "ov_cimguiname": "ImVector_begin_Nil", "ret": "T*", "signature": "()", "stname": "ImVector", @@ -6590,8 +6859,8 @@ "cimguiname": "ImVector_begin", "defaults": {}, "funcname": "begin", - "location": "imgui:1725", - "ov_cimguiname": "ImVector_begin_const", + "location": "imgui:1792", + "ov_cimguiname": "ImVector_begin__const", "ret": "const T*", "signature": "()const", "stname": "ImVector", @@ -6612,7 +6881,7 @@ "cimguiname": "ImVector_capacity", "defaults": {}, "funcname": "capacity", - "location": "imgui:1720", + "location": "imgui:1787", "ov_cimguiname": "ImVector_capacity", "ret": "int", "signature": "()const", @@ -6634,7 +6903,7 @@ "cimguiname": "ImVector_clear", "defaults": {}, "funcname": "clear", - "location": "imgui:1712", + "location": "imgui:1779", "ov_cimguiname": "ImVector_clear", "ret": "void", "signature": "()", @@ -6656,7 +6925,7 @@ "cimguiname": "ImVector_clear_delete", "defaults": {}, "funcname": "clear_delete", - "location": "imgui:1713", + "location": "imgui:1780", "ov_cimguiname": "ImVector_clear_delete", "ret": "void", "signature": "()", @@ -6678,7 +6947,7 @@ "cimguiname": "ImVector_clear_destruct", "defaults": {}, "funcname": "clear_destruct", - "location": "imgui:1714", + "location": "imgui:1781", "ov_cimguiname": "ImVector_clear_destruct", "ret": "void", "signature": "()", @@ -6704,7 +6973,7 @@ "cimguiname": "ImVector_contains", "defaults": {}, "funcname": "contains", - "location": "imgui:1748", + "location": "imgui:1816", "ov_cimguiname": "ImVector_contains", "ret": "bool", "signature": "(const T)const", @@ -6725,7 +6994,7 @@ "cimguiname": "ImVector_destroy", "defaults": {}, "destructor": true, - "location": "imgui:1710", + "location": "imgui:1777", "ov_cimguiname": "ImVector_destroy", "realdestructor": true, "ret": "void", @@ -6748,7 +7017,7 @@ "cimguiname": "ImVector_empty", "defaults": {}, "funcname": "empty", - "location": "imgui:1716", + "location": "imgui:1783", "ov_cimguiname": "ImVector_empty", "ret": "bool", "signature": "()const", @@ -6770,8 +7039,8 @@ "cimguiname": "ImVector_end", "defaults": {}, "funcname": "end", - "location": "imgui:1726", - "ov_cimguiname": "ImVector_endNil", + "location": "imgui:1793", + "ov_cimguiname": "ImVector_end_Nil", "ret": "T*", "signature": "()", "stname": "ImVector", @@ -6790,8 +7059,8 @@ "cimguiname": "ImVector_end", "defaults": {}, "funcname": "end", - "location": "imgui:1727", - "ov_cimguiname": "ImVector_end_const", + "location": "imgui:1794", + "ov_cimguiname": "ImVector_end__const", "ret": "const T*", "signature": "()const", "stname": "ImVector", @@ -6816,8 +7085,8 @@ "cimguiname": "ImVector_erase", "defaults": {}, "funcname": "erase", - "location": "imgui:1744", - "ov_cimguiname": "ImVector_eraseNil", + "location": "imgui:1812", + "ov_cimguiname": "ImVector_erase_Nil", "ret": "T*", "signature": "(const T*)", "stname": "ImVector", @@ -6844,8 +7113,8 @@ "cimguiname": "ImVector_erase", "defaults": {}, "funcname": "erase", - "location": "imgui:1745", - "ov_cimguiname": "ImVector_eraseTPtr", + "location": "imgui:1813", + "ov_cimguiname": "ImVector_erase_TPtr", "ret": "T*", "signature": "(const T*,const T*)", "stname": "ImVector", @@ -6870,7 +7139,7 @@ "cimguiname": "ImVector_erase_unsorted", "defaults": {}, "funcname": "erase_unsorted", - "location": "imgui:1746", + "location": "imgui:1814", "ov_cimguiname": "ImVector_erase_unsorted", "ret": "T*", "signature": "(const T*)", @@ -6896,8 +7165,8 @@ "cimguiname": "ImVector_find", "defaults": {}, "funcname": "find", - "location": "imgui:1749", - "ov_cimguiname": "ImVector_findNil", + "location": "imgui:1817", + "ov_cimguiname": "ImVector_find_Nil", "ret": "T*", "signature": "(const T)", "stname": "ImVector", @@ -6920,8 +7189,8 @@ "cimguiname": "ImVector_find", "defaults": {}, "funcname": "find", - "location": "imgui:1750", - "ov_cimguiname": "ImVector_find_const", + "location": "imgui:1818", + "ov_cimguiname": "ImVector_find__const", "ret": "const T*", "signature": "(const T)const", "stname": "ImVector", @@ -6946,7 +7215,7 @@ "cimguiname": "ImVector_find_erase", "defaults": {}, "funcname": "find_erase", - "location": "imgui:1751", + "location": "imgui:1819", "ov_cimguiname": "ImVector_find_erase", "ret": "bool", "signature": "(const T)", @@ -6972,7 +7241,7 @@ "cimguiname": "ImVector_find_erase_unsorted", "defaults": {}, "funcname": "find_erase_unsorted", - "location": "imgui:1752", + "location": "imgui:1820", "ov_cimguiname": "ImVector_find_erase_unsorted", "ret": "bool", "signature": "(const T)", @@ -6994,8 +7263,8 @@ "cimguiname": "ImVector_front", "defaults": {}, "funcname": "front", - "location": "imgui:1728", - "ov_cimguiname": "ImVector_frontNil", + "location": "imgui:1795", + "ov_cimguiname": "ImVector_front_Nil", "ret": "T*", "retref": "&", "signature": "()", @@ -7015,8 +7284,8 @@ "cimguiname": "ImVector_front", "defaults": {}, "funcname": "front", - "location": "imgui:1729", - "ov_cimguiname": "ImVector_front_const", + "location": "imgui:1796", + "ov_cimguiname": "ImVector_front__const", "ret": "const T*", "retref": "&", "signature": "()const", @@ -7042,7 +7311,7 @@ "cimguiname": "ImVector_index_from_ptr", "defaults": {}, "funcname": "index_from_ptr", - "location": "imgui:1753", + "location": "imgui:1821", "ov_cimguiname": "ImVector_index_from_ptr", "ret": "int", "signature": "(const T*)const", @@ -7072,7 +7341,7 @@ "cimguiname": "ImVector_insert", "defaults": {}, "funcname": "insert", - "location": "imgui:1747", + "location": "imgui:1815", "ov_cimguiname": "ImVector_insert", "ret": "T*", "signature": "(const T*,const T)", @@ -7094,7 +7363,7 @@ "cimguiname": "ImVector_max_size", "defaults": {}, "funcname": "max_size", - "location": "imgui:1719", + "location": "imgui:1786", "ov_cimguiname": "ImVector_max_size", "ret": "int", "signature": "()const", @@ -7116,7 +7385,7 @@ "cimguiname": "ImVector_pop_back", "defaults": {}, "funcname": "pop_back", - "location": "imgui:1742", + "location": "imgui:1810", "ov_cimguiname": "ImVector_pop_back", "ret": "void", "signature": "()", @@ -7142,7 +7411,7 @@ "cimguiname": "ImVector_push_back", "defaults": {}, "funcname": "push_back", - "location": "imgui:1741", + "location": "imgui:1809", "ov_cimguiname": "ImVector_push_back", "ret": "void", "signature": "(const T)", @@ -7168,7 +7437,7 @@ "cimguiname": "ImVector_push_front", "defaults": {}, "funcname": "push_front", - "location": "imgui:1743", + "location": "imgui:1811", "ov_cimguiname": "ImVector_push_front", "ret": "void", "signature": "(const T)", @@ -7194,7 +7463,7 @@ "cimguiname": "ImVector_reserve", "defaults": {}, "funcname": "reserve", - "location": "imgui:1738", + "location": "imgui:1805", "ov_cimguiname": "ImVector_reserve", "ret": "void", "signature": "(int)", @@ -7202,6 +7471,32 @@ "templated": true } ], + "ImVector_reserve_discard": [ + { + "args": "(ImVector* self,int new_capacity)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_capacity", + "type": "int" + } + ], + "argsoriginal": "(int new_capacity)", + "call_args": "(new_capacity)", + "cimguiname": "ImVector_reserve_discard", + "defaults": {}, + "funcname": "reserve_discard", + "location": "imgui:1806", + "ov_cimguiname": "ImVector_reserve_discard", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], "ImVector_resize": [ { "args": "(ImVector* self,int new_size)", @@ -7220,8 +7515,8 @@ "cimguiname": "ImVector_resize", "defaults": {}, "funcname": "resize", - "location": "imgui:1735", - "ov_cimguiname": "ImVector_resizeNil", + "location": "imgui:1802", + "ov_cimguiname": "ImVector_resize_Nil", "ret": "void", "signature": "(int)", "stname": "ImVector", @@ -7248,8 +7543,8 @@ "cimguiname": "ImVector_resize", "defaults": {}, "funcname": "resize", - "location": "imgui:1736", - "ov_cimguiname": "ImVector_resizeT", + "location": "imgui:1803", + "ov_cimguiname": "ImVector_resize_T", "ret": "void", "signature": "(int,const T)", "stname": "ImVector", @@ -7274,7 +7569,7 @@ "cimguiname": "ImVector_shrink", "defaults": {}, "funcname": "shrink", - "location": "imgui:1737", + "location": "imgui:1804", "ov_cimguiname": "ImVector_shrink", "ret": "void", "signature": "(int)", @@ -7296,7 +7591,7 @@ "cimguiname": "ImVector_size", "defaults": {}, "funcname": "size", - "location": "imgui:1717", + "location": "imgui:1784", "ov_cimguiname": "ImVector_size", "ret": "int", "signature": "()const", @@ -7318,7 +7613,7 @@ "cimguiname": "ImVector_size_in_bytes", "defaults": {}, "funcname": "size_in_bytes", - "location": "imgui:1718", + "location": "imgui:1785", "ov_cimguiname": "ImVector_size_in_bytes", "ret": "int", "signature": "()const", @@ -7328,7 +7623,7 @@ ], "ImVector_swap": [ { - "args": "(ImVector* self,ImVector* rhs)", + "args": "(ImVector* self,ImVector_T * rhs)", "argsT": [ { "name": "self", @@ -7337,7 +7632,7 @@ { "name": "rhs", "reftoptr": true, - "type": "ImVector*" + "type": "ImVector_T *" } ], "argsoriginal": "(ImVector& rhs)", @@ -7345,10 +7640,10 @@ "cimguiname": "ImVector_swap", "defaults": {}, "funcname": "swap", - "location": "imgui:1732", + "location": "imgui:1799", "ov_cimguiname": "ImVector_swap", "ret": "void", - "signature": "(ImVector*)", + "signature": "(ImVector_T *)", "stname": "ImVector", "templated": true } @@ -7373,7 +7668,7 @@ "flags": "0" }, "funcname": "AcceptDragDropPayload", - "location": "imgui:813", + "location": "imgui:811", "namespace": "ImGui", "ov_cimguiname": "igAcceptDragDropPayload", "ret": "const ImGuiPayload*", @@ -7390,7 +7685,7 @@ "cimguiname": "igAlignTextToFramePadding", "defaults": {}, "funcname": "AlignTextToFramePadding", - "location": "imgui:458", + "location": "imgui:456", "namespace": "ImGui", "ov_cimguiname": "igAlignTextToFramePadding", "ret": "void", @@ -7416,7 +7711,7 @@ "cimguiname": "igArrowButton", "defaults": {}, "funcname": "ArrowButton", - "location": "imgui:505", + "location": "imgui:503", "namespace": "ImGui", "ov_cimguiname": "igArrowButton", "ret": "bool", @@ -7449,7 +7744,7 @@ "p_open": "NULL" }, "funcname": "Begin", - "location": "imgui:335", + "location": "imgui:330", "namespace": "ImGui", "ov_cimguiname": "igBegin", "ret": "bool", @@ -7487,9 +7782,9 @@ "size": "ImVec2(0,0)" }, "funcname": "BeginChild", - "location": "imgui:346", + "location": "imgui:341", "namespace": "ImGui", - "ov_cimguiname": "igBeginChildStr", + "ov_cimguiname": "igBeginChild_Str", "ret": "bool", "signature": "(const char*,const ImVec2,bool,ImGuiWindowFlags)", "stname": "" @@ -7523,9 +7818,9 @@ "size": "ImVec2(0,0)" }, "funcname": "BeginChild", - "location": "imgui:347", + "location": "imgui:342", "namespace": "ImGui", - "ov_cimguiname": "igBeginChildID", + "ov_cimguiname": "igBeginChild_ID", "ret": "bool", "signature": "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)", "stname": "" @@ -7587,7 +7882,7 @@ "flags": "0" }, "funcname": "BeginCombo", - "location": "imgui:519", + "location": "imgui:520", "namespace": "ImGui", "ov_cimguiname": "igBeginCombo", "ret": "bool", @@ -7611,7 +7906,7 @@ "disabled": "true" }, "funcname": "BeginDisabled", - "location": "imgui:821", + "location": "imgui:819", "namespace": "ImGui", "ov_cimguiname": "igBeginDisabled", "ret": "void", @@ -7635,7 +7930,7 @@ "flags": "0" }, "funcname": "BeginDragDropSource", - "location": "imgui:809", + "location": "imgui:807", "namespace": "ImGui", "ov_cimguiname": "igBeginDragDropSource", "ret": "bool", @@ -7652,7 +7947,7 @@ "cimguiname": "igBeginDragDropTarget", "defaults": {}, "funcname": "BeginDragDropTarget", - "location": "imgui:812", + "location": "imgui:810", "namespace": "ImGui", "ov_cimguiname": "igBeginDragDropTarget", "ret": "bool", @@ -7669,7 +7964,7 @@ "cimguiname": "igBeginGroup", "defaults": {}, "funcname": "BeginGroup", - "location": "imgui:447", + "location": "imgui:445", "namespace": "ImGui", "ov_cimguiname": "igBeginGroup", "ret": "void", @@ -7697,7 +7992,7 @@ "size": "ImVec2(0,0)" }, "funcname": "BeginListBox", - "location": "imgui:630", + "location": "imgui:632", "namespace": "ImGui", "ov_cimguiname": "igBeginListBox", "ret": "bool", @@ -7714,7 +8009,7 @@ "cimguiname": "igBeginMainMenuBar", "defaults": {}, "funcname": "BeginMainMenuBar", - "location": "imgui:656", + "location": "imgui:658", "namespace": "ImGui", "ov_cimguiname": "igBeginMainMenuBar", "ret": "bool", @@ -7742,7 +8037,7 @@ "enabled": "true" }, "funcname": "BeginMenu", - "location": "imgui:658", + "location": "imgui:660", "namespace": "ImGui", "ov_cimguiname": "igBeginMenu", "ret": "bool", @@ -7759,7 +8054,7 @@ "cimguiname": "igBeginMenuBar", "defaults": {}, "funcname": "BeginMenuBar", - "location": "imgui:654", + "location": "imgui:656", "namespace": "ImGui", "ov_cimguiname": "igBeginMenuBar", "ret": "bool", @@ -7787,7 +8082,7 @@ "flags": "0" }, "funcname": "BeginPopup", - "location": "imgui:682", + "location": "imgui:684", "namespace": "ImGui", "ov_cimguiname": "igBeginPopup", "ret": "bool", @@ -7816,7 +8111,7 @@ "str_id": "NULL" }, "funcname": "BeginPopupContextItem", - "location": "imgui:703", + "location": "imgui:706", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupContextItem", "ret": "bool", @@ -7845,7 +8140,7 @@ "str_id": "NULL" }, "funcname": "BeginPopupContextVoid", - "location": "imgui:705", + "location": "imgui:708", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupContextVoid", "ret": "bool", @@ -7874,7 +8169,7 @@ "str_id": "NULL" }, "funcname": "BeginPopupContextWindow", - "location": "imgui:704", + "location": "imgui:707", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupContextWindow", "ret": "bool", @@ -7907,7 +8202,7 @@ "p_open": "NULL" }, "funcname": "BeginPopupModal", - "location": "imgui:683", + "location": "imgui:685", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupModal", "ret": "bool", @@ -7935,7 +8230,7 @@ "flags": "0" }, "funcname": "BeginTabBar", - "location": "imgui:787", + "location": "imgui:785", "namespace": "ImGui", "ov_cimguiname": "igBeginTabBar", "ret": "bool", @@ -7968,7 +8263,7 @@ "p_open": "NULL" }, "funcname": "BeginTabItem", - "location": "imgui:789", + "location": "imgui:787", "namespace": "ImGui", "ov_cimguiname": "igBeginTabItem", "ret": "bool", @@ -8010,7 +8305,7 @@ "outer_size": "ImVec2(0.0f,0.0f)" }, "funcname": "BeginTable", - "location": "imgui:738", + "location": "imgui:739", "namespace": "ImGui", "ov_cimguiname": "igBeginTable", "ret": "bool", @@ -8027,7 +8322,7 @@ "cimguiname": "igBeginTooltip", "defaults": {}, "funcname": "BeginTooltip", - "location": "imgui:665", + "location": "imgui:667", "namespace": "ImGui", "ov_cimguiname": "igBeginTooltip", "ret": "void", @@ -8044,7 +8339,7 @@ "cimguiname": "igBullet", "defaults": {}, "funcname": "Bullet", - "location": "imgui:514", + "location": "imgui:510", "namespace": "ImGui", "ov_cimguiname": "igBullet", "ret": "void", @@ -8071,7 +8366,7 @@ "defaults": {}, "funcname": "BulletText", "isvararg": "...)", - "location": "imgui:496", + "location": "imgui:494", "namespace": "ImGui", "ov_cimguiname": "igBulletText", "ret": "void", @@ -8097,7 +8392,7 @@ "cimguiname": "igBulletTextV", "defaults": {}, "funcname": "BulletTextV", - "location": "imgui:497", + "location": "imgui:495", "namespace": "ImGui", "ov_cimguiname": "igBulletTextV", "ret": "void", @@ -8125,7 +8420,7 @@ "size": "ImVec2(0,0)" }, "funcname": "Button", - "location": "imgui:502", + "location": "imgui:500", "namespace": "ImGui", "ov_cimguiname": "igButton", "ret": "bool", @@ -8142,7 +8437,7 @@ "cimguiname": "igCalcItemWidth", "defaults": {}, "funcname": "CalcItemWidth", - "location": "imgui:419", + "location": "imgui:417", "namespace": "ImGui", "ov_cimguiname": "igCalcItemWidth", "ret": "float", @@ -8193,54 +8488,6 @@ "stname": "" } ], - "igCaptureKeyboardFromApp": [ - { - "args": "(bool want_capture_keyboard_value)", - "argsT": [ - { - "name": "want_capture_keyboard_value", - "type": "bool" - } - ], - "argsoriginal": "(bool want_capture_keyboard_value=true)", - "call_args": "(want_capture_keyboard_value)", - "cimguiname": "igCaptureKeyboardFromApp", - "defaults": { - "want_capture_keyboard_value": "true" - }, - "funcname": "CaptureKeyboardFromApp", - "location": "imgui:892", - "namespace": "ImGui", - "ov_cimguiname": "igCaptureKeyboardFromApp", - "ret": "void", - "signature": "(bool)", - "stname": "" - } - ], - "igCaptureMouseFromApp": [ - { - "args": "(bool want_capture_mouse_value)", - "argsT": [ - { - "name": "want_capture_mouse_value", - "type": "bool" - } - ], - "argsoriginal": "(bool want_capture_mouse_value=true)", - "call_args": "(want_capture_mouse_value)", - "cimguiname": "igCaptureMouseFromApp", - "defaults": { - "want_capture_mouse_value": "true" - }, - "funcname": "CaptureMouseFromApp", - "location": "imgui:913", - "namespace": "ImGui", - "ov_cimguiname": "igCaptureMouseFromApp", - "ret": "void", - "signature": "(bool)", - "stname": "" - } - ], "igCheckbox": [ { "args": "(const char* label,bool* v)", @@ -8259,7 +8506,7 @@ "cimguiname": "igCheckbox", "defaults": {}, "funcname": "Checkbox", - "location": "imgui:508", + "location": "imgui:504", "namespace": "ImGui", "ov_cimguiname": "igCheckbox", "ret": "bool", @@ -8289,9 +8536,9 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui:509", + "location": "imgui:505", "namespace": "ImGui", - "ov_cimguiname": "igCheckboxFlagsIntPtr", + "ov_cimguiname": "igCheckboxFlags_IntPtr", "ret": "bool", "signature": "(const char*,int*,int)", "stname": "" @@ -8317,9 +8564,9 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui:510", + "location": "imgui:506", "namespace": "ImGui", - "ov_cimguiname": "igCheckboxFlagsUintPtr", + "ov_cimguiname": "igCheckboxFlags_UintPtr", "ret": "bool", "signature": "(const char*,unsigned int*,unsigned int)", "stname": "" @@ -8334,7 +8581,7 @@ "cimguiname": "igCloseCurrentPopup", "defaults": {}, "funcname": "CloseCurrentPopup", - "location": "imgui:696", + "location": "imgui:699", "namespace": "ImGui", "ov_cimguiname": "igCloseCurrentPopup", "ret": "void", @@ -8362,9 +8609,9 @@ "flags": "0" }, "funcname": "CollapsingHeader", - "location": "imgui:614", + "location": "imgui:616", "namespace": "ImGui", - "ov_cimguiname": "igCollapsingHeaderTreeNodeFlags", + "ov_cimguiname": "igCollapsingHeader_TreeNodeFlags", "ret": "bool", "signature": "(const char*,ImGuiTreeNodeFlags)", "stname": "" @@ -8392,9 +8639,9 @@ "flags": "0" }, "funcname": "CollapsingHeader", - "location": "imgui:615", + "location": "imgui:617", "namespace": "ImGui", - "ov_cimguiname": "igCollapsingHeaderBoolPtr", + "ov_cimguiname": "igCollapsingHeader_BoolPtr", "ret": "bool", "signature": "(const char*,bool*,ImGuiTreeNodeFlags)", "stname": "" @@ -8402,7 +8649,7 @@ ], "igColorButton": [ { - "args": "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,ImVec2 size)", + "args": "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)", "argsT": [ { "name": "desc_id", @@ -8418,10 +8665,10 @@ }, { "name": "size", - "type": "ImVec2" + "type": "const ImVec2" } ], - "argsoriginal": "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,ImVec2 size=ImVec2(0,0))", + "argsoriginal": "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))", "call_args": "(desc_id,col,flags,size)", "cimguiname": "igColorButton", "defaults": { @@ -8429,11 +8676,11 @@ "size": "ImVec2(0,0)" }, "funcname": "ColorButton", - "location": "imgui:595", + "location": "imgui:597", "namespace": "ImGui", "ov_cimguiname": "igColorButton", "ret": "bool", - "signature": "(const char*,const ImVec4,ImGuiColorEditFlags,ImVec2)", + "signature": "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)", "stname": "" } ], @@ -8600,7 +8847,7 @@ "flags": "0" }, "funcname": "ColorEdit3", - "location": "imgui:591", + "location": "imgui:593", "namespace": "ImGui", "ov_cimguiname": "igColorEdit3", "ret": "bool", @@ -8632,7 +8879,7 @@ "flags": "0" }, "funcname": "ColorEdit4", - "location": "imgui:592", + "location": "imgui:594", "namespace": "ImGui", "ov_cimguiname": "igColorEdit4", "ret": "bool", @@ -8664,7 +8911,7 @@ "flags": "0" }, "funcname": "ColorPicker3", - "location": "imgui:593", + "location": "imgui:595", "namespace": "ImGui", "ov_cimguiname": "igColorPicker3", "ret": "bool", @@ -8701,7 +8948,7 @@ "ref_col": "NULL" }, "funcname": "ColorPicker4", - "location": "imgui:594", + "location": "imgui:596", "namespace": "ImGui", "ov_cimguiname": "igColorPicker4", "ret": "bool", @@ -8735,7 +8982,7 @@ "id": "NULL" }, "funcname": "Columns", - "location": "imgui:777", + "location": "imgui:775", "namespace": "ImGui", "ov_cimguiname": "igColumns", "ret": "void", @@ -8775,9 +9022,9 @@ "popup_max_height_in_items": "-1" }, "funcname": "Combo", - "location": "imgui:521", + "location": "imgui:522", "namespace": "ImGui", - "ov_cimguiname": "igComboStr_arr", + "ov_cimguiname": "igCombo_Str_arr", "ret": "bool", "signature": "(const char*,int*,const char* const[],int,int)", "stname": "" @@ -8809,9 +9056,9 @@ "popup_max_height_in_items": "-1" }, "funcname": "Combo", - "location": "imgui:522", + "location": "imgui:523", "namespace": "ImGui", - "ov_cimguiname": "igComboStr", + "ov_cimguiname": "igCombo_Str", "ret": "bool", "signature": "(const char*,int*,const char*,int)", "stname": "" @@ -8853,9 +9100,9 @@ "popup_max_height_in_items": "-1" }, "funcname": "Combo", - "location": "imgui:523", + "location": "imgui:524", "namespace": "ImGui", - "ov_cimguiname": "igComboFnBoolPtr", + "ov_cimguiname": "igCombo_FnBoolPtr", "ret": "bool", "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", "stname": "" @@ -8877,7 +9124,7 @@ "shared_font_atlas": "NULL" }, "funcname": "CreateContext", - "location": "imgui:294", + "location": "imgui:288", "namespace": "ImGui", "ov_cimguiname": "igCreateContext", "ret": "ImGuiContext*", @@ -8923,7 +9170,7 @@ "cimguiname": "igDebugCheckVersionAndDataLayout", "defaults": {}, "funcname": "DebugCheckVersionAndDataLayout", - "location": "imgui:931", + "location": "imgui:934", "namespace": "ImGui", "ov_cimguiname": "igDebugCheckVersionAndDataLayout", "ret": "bool", @@ -8931,6 +9178,28 @@ "stname": "" } ], + "igDebugTextEncoding": [ + { + "args": "(const char* text)", + "argsT": [ + { + "name": "text", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text)", + "call_args": "(text)", + "cimguiname": "igDebugTextEncoding", + "defaults": {}, + "funcname": "DebugTextEncoding", + "location": "imgui:933", + "namespace": "ImGui", + "ov_cimguiname": "igDebugTextEncoding", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], "igDestroyContext": [ { "args": "(ImGuiContext* ctx)", @@ -8947,7 +9216,7 @@ "ctx": "NULL" }, "funcname": "DestroyContext", - "location": "imgui:295", + "location": "imgui:289", "namespace": "ImGui", "ov_cimguiname": "igDestroyContext", "ret": "void", @@ -8999,7 +9268,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat", - "location": "imgui:536", + "location": "imgui:538", "namespace": "ImGui", "ov_cimguiname": "igDragFloat", "ret": "bool", @@ -9051,7 +9320,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat2", - "location": "imgui:537", + "location": "imgui:539", "namespace": "ImGui", "ov_cimguiname": "igDragFloat2", "ret": "bool", @@ -9103,7 +9372,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat3", - "location": "imgui:538", + "location": "imgui:540", "namespace": "ImGui", "ov_cimguiname": "igDragFloat3", "ret": "bool", @@ -9155,7 +9424,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat4", - "location": "imgui:539", + "location": "imgui:541", "namespace": "ImGui", "ov_cimguiname": "igDragFloat4", "ret": "bool", @@ -9216,7 +9485,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloatRange2", - "location": "imgui:540", + "location": "imgui:542", "namespace": "ImGui", "ov_cimguiname": "igDragFloatRange2", "ret": "bool", @@ -9268,7 +9537,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt", - "location": "imgui:541", + "location": "imgui:543", "namespace": "ImGui", "ov_cimguiname": "igDragInt", "ret": "bool", @@ -9320,7 +9589,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt2", - "location": "imgui:542", + "location": "imgui:544", "namespace": "ImGui", "ov_cimguiname": "igDragInt2", "ret": "bool", @@ -9372,7 +9641,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt3", - "location": "imgui:543", + "location": "imgui:545", "namespace": "ImGui", "ov_cimguiname": "igDragInt3", "ret": "bool", @@ -9424,7 +9693,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt4", - "location": "imgui:544", + "location": "imgui:546", "namespace": "ImGui", "ov_cimguiname": "igDragInt4", "ret": "bool", @@ -9485,7 +9754,7 @@ "v_speed": "1.0f" }, "funcname": "DragIntRange2", - "location": "imgui:545", + "location": "imgui:547", "namespace": "ImGui", "ov_cimguiname": "igDragIntRange2", "ret": "bool", @@ -9541,7 +9810,7 @@ "v_speed": "1.0f" }, "funcname": "DragScalar", - "location": "imgui:546", + "location": "imgui:548", "namespace": "ImGui", "ov_cimguiname": "igDragScalar", "ret": "bool", @@ -9601,7 +9870,7 @@ "v_speed": "1.0f" }, "funcname": "DragScalarN", - "location": "imgui:547", + "location": "imgui:549", "namespace": "ImGui", "ov_cimguiname": "igDragScalarN", "ret": "bool", @@ -9623,7 +9892,7 @@ "cimguiname": "igDummy", "defaults": {}, "funcname": "Dummy", - "location": "imgui:444", + "location": "imgui:442", "namespace": "ImGui", "ov_cimguiname": "igDummy", "ret": "void", @@ -9640,7 +9909,7 @@ "cimguiname": "igEnd", "defaults": {}, "funcname": "End", - "location": "imgui:336", + "location": "imgui:331", "namespace": "ImGui", "ov_cimguiname": "igEnd", "ret": "void", @@ -9657,7 +9926,7 @@ "cimguiname": "igEndChild", "defaults": {}, "funcname": "EndChild", - "location": "imgui:348", + "location": "imgui:343", "namespace": "ImGui", "ov_cimguiname": "igEndChild", "ret": "void", @@ -9691,7 +9960,7 @@ "cimguiname": "igEndCombo", "defaults": {}, "funcname": "EndCombo", - "location": "imgui:520", + "location": "imgui:521", "namespace": "ImGui", "ov_cimguiname": "igEndCombo", "ret": "void", @@ -9708,7 +9977,7 @@ "cimguiname": "igEndDisabled", "defaults": {}, "funcname": "EndDisabled", - "location": "imgui:822", + "location": "imgui:820", "namespace": "ImGui", "ov_cimguiname": "igEndDisabled", "ret": "void", @@ -9725,7 +9994,7 @@ "cimguiname": "igEndDragDropSource", "defaults": {}, "funcname": "EndDragDropSource", - "location": "imgui:811", + "location": "imgui:809", "namespace": "ImGui", "ov_cimguiname": "igEndDragDropSource", "ret": "void", @@ -9742,7 +10011,7 @@ "cimguiname": "igEndDragDropTarget", "defaults": {}, "funcname": "EndDragDropTarget", - "location": "imgui:814", + "location": "imgui:812", "namespace": "ImGui", "ov_cimguiname": "igEndDragDropTarget", "ret": "void", @@ -9759,7 +10028,7 @@ "cimguiname": "igEndFrame", "defaults": {}, "funcname": "EndFrame", - "location": "imgui:303", + "location": "imgui:297", "namespace": "ImGui", "ov_cimguiname": "igEndFrame", "ret": "void", @@ -9776,7 +10045,7 @@ "cimguiname": "igEndGroup", "defaults": {}, "funcname": "EndGroup", - "location": "imgui:448", + "location": "imgui:446", "namespace": "ImGui", "ov_cimguiname": "igEndGroup", "ret": "void", @@ -9793,7 +10062,7 @@ "cimguiname": "igEndListBox", "defaults": {}, "funcname": "EndListBox", - "location": "imgui:631", + "location": "imgui:633", "namespace": "ImGui", "ov_cimguiname": "igEndListBox", "ret": "void", @@ -9810,7 +10079,7 @@ "cimguiname": "igEndMainMenuBar", "defaults": {}, "funcname": "EndMainMenuBar", - "location": "imgui:657", + "location": "imgui:659", "namespace": "ImGui", "ov_cimguiname": "igEndMainMenuBar", "ret": "void", @@ -9827,7 +10096,7 @@ "cimguiname": "igEndMenu", "defaults": {}, "funcname": "EndMenu", - "location": "imgui:659", + "location": "imgui:661", "namespace": "ImGui", "ov_cimguiname": "igEndMenu", "ret": "void", @@ -9844,7 +10113,7 @@ "cimguiname": "igEndMenuBar", "defaults": {}, "funcname": "EndMenuBar", - "location": "imgui:655", + "location": "imgui:657", "namespace": "ImGui", "ov_cimguiname": "igEndMenuBar", "ret": "void", @@ -9861,7 +10130,7 @@ "cimguiname": "igEndPopup", "defaults": {}, "funcname": "EndPopup", - "location": "imgui:684", + "location": "imgui:686", "namespace": "ImGui", "ov_cimguiname": "igEndPopup", "ret": "void", @@ -9878,7 +10147,7 @@ "cimguiname": "igEndTabBar", "defaults": {}, "funcname": "EndTabBar", - "location": "imgui:788", + "location": "imgui:786", "namespace": "ImGui", "ov_cimguiname": "igEndTabBar", "ret": "void", @@ -9895,7 +10164,7 @@ "cimguiname": "igEndTabItem", "defaults": {}, "funcname": "EndTabItem", - "location": "imgui:790", + "location": "imgui:788", "namespace": "ImGui", "ov_cimguiname": "igEndTabItem", "ret": "void", @@ -9912,7 +10181,7 @@ "cimguiname": "igEndTable", "defaults": {}, "funcname": "EndTable", - "location": "imgui:739", + "location": "imgui:740", "namespace": "ImGui", "ov_cimguiname": "igEndTable", "ret": "void", @@ -9929,7 +10198,7 @@ "cimguiname": "igEndTooltip", "defaults": {}, "funcname": "EndTooltip", - "location": "imgui:666", + "location": "imgui:668", "namespace": "ImGui", "ov_cimguiname": "igEndTooltip", "ret": "void", @@ -9959,7 +10228,7 @@ "cimguiname": "igGetAllocatorFunctions", "defaults": {}, "funcname": "GetAllocatorFunctions", - "location": "imgui:938", + "location": "imgui:941", "namespace": "ImGui", "ov_cimguiname": "igGetAllocatorFunctions", "ret": "void", @@ -9976,7 +10245,7 @@ "cimguiname": "igGetBackgroundDrawList", "defaults": {}, "funcname": "GetBackgroundDrawList", - "location": "imgui:866", + "location": "imgui:860", "namespace": "ImGui", "ov_cimguiname": "igGetBackgroundDrawList", "ret": "ImDrawList*", @@ -9993,7 +10262,7 @@ "cimguiname": "igGetClipboardText", "defaults": {}, "funcname": "GetClipboardText", - "location": "imgui:917", + "location": "imgui:920", "namespace": "ImGui", "ov_cimguiname": "igGetClipboardText", "ret": "const char*", @@ -10021,9 +10290,9 @@ "alpha_mul": "1.0f" }, "funcname": "GetColorU32", - "location": "imgui:428", + "location": "imgui:426", "namespace": "ImGui", - "ov_cimguiname": "igGetColorU32Col", + "ov_cimguiname": "igGetColorU32_Col", "ret": "ImU32", "signature": "(ImGuiCol,float)", "stname": "" @@ -10041,9 +10310,9 @@ "cimguiname": "igGetColorU32", "defaults": {}, "funcname": "GetColorU32", - "location": "imgui:429", + "location": "imgui:427", "namespace": "ImGui", - "ov_cimguiname": "igGetColorU32Vec4", + "ov_cimguiname": "igGetColorU32_Vec4", "ret": "ImU32", "signature": "(const ImVec4)", "stname": "" @@ -10061,9 +10330,9 @@ "cimguiname": "igGetColorU32", "defaults": {}, "funcname": "GetColorU32", - "location": "imgui:430", + "location": "imgui:428", "namespace": "ImGui", - "ov_cimguiname": "igGetColorU32U32", + "ov_cimguiname": "igGetColorU32_U32", "ret": "ImU32", "signature": "(ImU32)", "stname": "" @@ -10078,7 +10347,7 @@ "cimguiname": "igGetColumnIndex", "defaults": {}, "funcname": "GetColumnIndex", - "location": "imgui:779", + "location": "imgui:777", "namespace": "ImGui", "ov_cimguiname": "igGetColumnIndex", "ret": "int", @@ -10102,7 +10371,7 @@ "column_index": "-1" }, "funcname": "GetColumnOffset", - "location": "imgui:782", + "location": "imgui:780", "namespace": "ImGui", "ov_cimguiname": "igGetColumnOffset", "ret": "float", @@ -10126,7 +10395,7 @@ "column_index": "-1" }, "funcname": "GetColumnWidth", - "location": "imgui:780", + "location": "imgui:778", "namespace": "ImGui", "ov_cimguiname": "igGetColumnWidth", "ret": "float", @@ -10143,7 +10412,7 @@ "cimguiname": "igGetColumnsCount", "defaults": {}, "funcname": "GetColumnsCount", - "location": "imgui:784", + "location": "imgui:782", "namespace": "ImGui", "ov_cimguiname": "igGetColumnsCount", "ret": "int", @@ -10165,7 +10434,7 @@ "cimguiname": "igGetContentRegionAvail", "defaults": {}, "funcname": "GetContentRegionAvail", - "location": "imgui:384", + "location": "imgui:380", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetContentRegionAvail", @@ -10188,7 +10457,7 @@ "cimguiname": "igGetContentRegionMax", "defaults": {}, "funcname": "GetContentRegionMax", - "location": "imgui:385", + "location": "imgui:381", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetContentRegionMax", @@ -10206,7 +10475,7 @@ "cimguiname": "igGetCurrentContext", "defaults": {}, "funcname": "GetCurrentContext", - "location": "imgui:296", + "location": "imgui:290", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentContext", "ret": "ImGuiContext*", @@ -10228,7 +10497,7 @@ "cimguiname": "igGetCursorPos", "defaults": {}, "funcname": "GetCursorPos", - "location": "imgui:449", + "location": "imgui:447", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorPos", @@ -10246,7 +10515,7 @@ "cimguiname": "igGetCursorPosX", "defaults": {}, "funcname": "GetCursorPosX", - "location": "imgui:450", + "location": "imgui:448", "namespace": "ImGui", "ov_cimguiname": "igGetCursorPosX", "ret": "float", @@ -10263,7 +10532,7 @@ "cimguiname": "igGetCursorPosY", "defaults": {}, "funcname": "GetCursorPosY", - "location": "imgui:451", + "location": "imgui:449", "namespace": "ImGui", "ov_cimguiname": "igGetCursorPosY", "ret": "float", @@ -10285,7 +10554,7 @@ "cimguiname": "igGetCursorScreenPos", "defaults": {}, "funcname": "GetCursorScreenPos", - "location": "imgui:456", + "location": "imgui:454", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorScreenPos", @@ -10308,7 +10577,7 @@ "cimguiname": "igGetCursorStartPos", "defaults": {}, "funcname": "GetCursorStartPos", - "location": "imgui:455", + "location": "imgui:453", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorStartPos", @@ -10326,7 +10595,7 @@ "cimguiname": "igGetDragDropPayload", "defaults": {}, "funcname": "GetDragDropPayload", - "location": "imgui:815", + "location": "imgui:813", "namespace": "ImGui", "ov_cimguiname": "igGetDragDropPayload", "ret": "const ImGuiPayload*", @@ -10343,7 +10612,7 @@ "cimguiname": "igGetDrawData", "defaults": {}, "funcname": "GetDrawData", - "location": "imgui:305", + "location": "imgui:299", "namespace": "ImGui", "ov_cimguiname": "igGetDrawData", "ret": "ImDrawData*", @@ -10377,7 +10646,7 @@ "cimguiname": "igGetFont", "defaults": {}, "funcname": "GetFont", - "location": "imgui:425", + "location": "imgui:423", "namespace": "ImGui", "ov_cimguiname": "igGetFont", "ret": "ImFont*", @@ -10394,7 +10663,7 @@ "cimguiname": "igGetFontSize", "defaults": {}, "funcname": "GetFontSize", - "location": "imgui:426", + "location": "imgui:424", "namespace": "ImGui", "ov_cimguiname": "igGetFontSize", "ret": "float", @@ -10416,7 +10685,7 @@ "cimguiname": "igGetFontTexUvWhitePixel", "defaults": {}, "funcname": "GetFontTexUvWhitePixel", - "location": "imgui:427", + "location": "imgui:425", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetFontTexUvWhitePixel", @@ -10434,7 +10703,7 @@ "cimguiname": "igGetForegroundDrawList", "defaults": {}, "funcname": "GetForegroundDrawList", - "location": "imgui:867", + "location": "imgui:861", "namespace": "ImGui", "ov_cimguiname": "igGetForegroundDrawList", "ret": "ImDrawList*", @@ -10451,7 +10720,7 @@ "cimguiname": "igGetFrameCount", "defaults": {}, "funcname": "GetFrameCount", - "location": "imgui:865", + "location": "imgui:867", "namespace": "ImGui", "ov_cimguiname": "igGetFrameCount", "ret": "int", @@ -10468,7 +10737,7 @@ "cimguiname": "igGetFrameHeight", "defaults": {}, "funcname": "GetFrameHeight", - "location": "imgui:461", + "location": "imgui:459", "namespace": "ImGui", "ov_cimguiname": "igGetFrameHeight", "ret": "float", @@ -10485,7 +10754,7 @@ "cimguiname": "igGetFrameHeightWithSpacing", "defaults": {}, "funcname": "GetFrameHeightWithSpacing", - "location": "imgui:462", + "location": "imgui:460", "namespace": "ImGui", "ov_cimguiname": "igGetFrameHeightWithSpacing", "ret": "float", @@ -10507,9 +10776,9 @@ "cimguiname": "igGetID", "defaults": {}, "funcname": "GetID", - "location": "imgui:480", + "location": "imgui:478", "namespace": "ImGui", - "ov_cimguiname": "igGetIDStr", + "ov_cimguiname": "igGetID_Str", "ret": "ImGuiID", "signature": "(const char*)", "stname": "" @@ -10531,9 +10800,9 @@ "cimguiname": "igGetID", "defaults": {}, "funcname": "GetID", - "location": "imgui:481", + "location": "imgui:479", "namespace": "ImGui", - "ov_cimguiname": "igGetIDStrStr", + "ov_cimguiname": "igGetID_StrStr", "ret": "ImGuiID", "signature": "(const char*,const char*)", "stname": "" @@ -10551,9 +10820,9 @@ "cimguiname": "igGetID", "defaults": {}, "funcname": "GetID", - "location": "imgui:482", + "location": "imgui:480", "namespace": "ImGui", - "ov_cimguiname": "igGetIDPtr", + "ov_cimguiname": "igGetID_Ptr", "ret": "ImGuiID", "signature": "(const void*)", "stname": "" @@ -10568,7 +10837,7 @@ "cimguiname": "igGetIO", "defaults": {}, "funcname": "GetIO", - "location": "imgui:300", + "location": "imgui:294", "namespace": "ImGui", "ov_cimguiname": "igGetIO", "ret": "ImGuiIO*", @@ -10591,7 +10860,7 @@ "cimguiname": "igGetItemRectMax", "defaults": {}, "funcname": "GetItemRectMax", - "location": "imgui:851", + "location": "imgui:849", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectMax", @@ -10614,7 +10883,7 @@ "cimguiname": "igGetItemRectMin", "defaults": {}, "funcname": "GetItemRectMin", - "location": "imgui:850", + "location": "imgui:848", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectMin", @@ -10637,7 +10906,7 @@ "cimguiname": "igGetItemRectSize", "defaults": {}, "funcname": "GetItemRectSize", - "location": "imgui:852", + "location": "imgui:850", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectSize", @@ -10648,33 +10917,55 @@ ], "igGetKeyIndex": [ { - "args": "(ImGuiKey imgui_key)", + "args": "(ImGuiKey key)", "argsT": [ { - "name": "imgui_key", + "name": "key", "type": "ImGuiKey" } ], - "argsoriginal": "(ImGuiKey imgui_key)", - "call_args": "(imgui_key)", + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", "cimguiname": "igGetKeyIndex", "defaults": {}, "funcname": "GetKeyIndex", - "location": "imgui:887", + "location": "imgui:2958", "namespace": "ImGui", "ov_cimguiname": "igGetKeyIndex", - "ret": "int", + "ret": "ImGuiKey", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyName": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyName", + "defaults": {}, + "funcname": "GetKeyName", + "location": "imgui:894", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyName", + "ret": "const char*", "signature": "(ImGuiKey)", "stname": "" } ], "igGetKeyPressedAmount": [ { - "args": "(int key_index,float repeat_delay,float rate)", + "args": "(ImGuiKey key,float repeat_delay,float rate)", "argsT": [ { - "name": "key_index", - "type": "int" + "name": "key", + "type": "ImGuiKey" }, { "name": "repeat_delay", @@ -10685,16 +10976,16 @@ "type": "float" } ], - "argsoriginal": "(int key_index,float repeat_delay,float rate)", - "call_args": "(key_index,repeat_delay,rate)", + "argsoriginal": "(ImGuiKey key,float repeat_delay,float rate)", + "call_args": "(key,repeat_delay,rate)", "cimguiname": "igGetKeyPressedAmount", "defaults": {}, "funcname": "GetKeyPressedAmount", - "location": "imgui:891", + "location": "imgui:893", "namespace": "ImGui", "ov_cimguiname": "igGetKeyPressedAmount", "ret": "int", - "signature": "(int,float,float)", + "signature": "(ImGuiKey,float,float)", "stname": "" } ], @@ -10707,7 +10998,7 @@ "cimguiname": "igGetMainViewport", "defaults": {}, "funcname": "GetMainViewport", - "location": "imgui:859", + "location": "imgui:857", "namespace": "ImGui", "ov_cimguiname": "igGetMainViewport", "ret": "ImGuiViewport*", @@ -10729,7 +11020,7 @@ "cimguiname": "igGetMouseClickedCount", "defaults": {}, "funcname": "GetMouseClickedCount", - "location": "imgui:902", + "location": "imgui:905", "namespace": "ImGui", "ov_cimguiname": "igGetMouseClickedCount", "ret": "int", @@ -10746,7 +11037,7 @@ "cimguiname": "igGetMouseCursor", "defaults": {}, "funcname": "GetMouseCursor", - "location": "imgui:911", + "location": "imgui:914", "namespace": "ImGui", "ov_cimguiname": "igGetMouseCursor", "ret": "ImGuiMouseCursor", @@ -10779,7 +11070,7 @@ "lock_threshold": "-1.0f" }, "funcname": "GetMouseDragDelta", - "location": "imgui:909", + "location": "imgui:912", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMouseDragDelta", @@ -10802,7 +11093,7 @@ "cimguiname": "igGetMousePos", "defaults": {}, "funcname": "GetMousePos", - "location": "imgui:906", + "location": "imgui:909", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMousePos", @@ -10825,7 +11116,7 @@ "cimguiname": "igGetMousePosOnOpeningCurrentPopup", "defaults": {}, "funcname": "GetMousePosOnOpeningCurrentPopup", - "location": "imgui:907", + "location": "imgui:910", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMousePosOnOpeningCurrentPopup", @@ -10843,7 +11134,7 @@ "cimguiname": "igGetScrollMaxX", "defaults": {}, "funcname": "GetScrollMaxX", - "location": "imgui:394", + "location": "imgui:392", "namespace": "ImGui", "ov_cimguiname": "igGetScrollMaxX", "ret": "float", @@ -10860,7 +11151,7 @@ "cimguiname": "igGetScrollMaxY", "defaults": {}, "funcname": "GetScrollMaxY", - "location": "imgui:395", + "location": "imgui:393", "namespace": "ImGui", "ov_cimguiname": "igGetScrollMaxY", "ret": "float", @@ -10877,7 +11168,7 @@ "cimguiname": "igGetScrollX", "defaults": {}, "funcname": "GetScrollX", - "location": "imgui:390", + "location": "imgui:388", "namespace": "ImGui", "ov_cimguiname": "igGetScrollX", "ret": "float", @@ -10894,7 +11185,7 @@ "cimguiname": "igGetScrollY", "defaults": {}, "funcname": "GetScrollY", - "location": "imgui:391", + "location": "imgui:389", "namespace": "ImGui", "ov_cimguiname": "igGetScrollY", "ret": "float", @@ -10928,7 +11219,7 @@ "cimguiname": "igGetStyle", "defaults": {}, "funcname": "GetStyle", - "location": "imgui:301", + "location": "imgui:295", "namespace": "ImGui", "ov_cimguiname": "igGetStyle", "ret": "ImGuiStyle*", @@ -10973,7 +11264,7 @@ "cimguiname": "igGetStyleColorVec4", "defaults": {}, "funcname": "GetStyleColorVec4", - "location": "imgui:431", + "location": "imgui:429", "namespace": "ImGui", "ov_cimguiname": "igGetStyleColorVec4", "ret": "const ImVec4*", @@ -10991,7 +11282,7 @@ "cimguiname": "igGetTextLineHeight", "defaults": {}, "funcname": "GetTextLineHeight", - "location": "imgui:459", + "location": "imgui:457", "namespace": "ImGui", "ov_cimguiname": "igGetTextLineHeight", "ret": "float", @@ -11008,7 +11299,7 @@ "cimguiname": "igGetTextLineHeightWithSpacing", "defaults": {}, "funcname": "GetTextLineHeightWithSpacing", - "location": "imgui:460", + "location": "imgui:458", "namespace": "ImGui", "ov_cimguiname": "igGetTextLineHeightWithSpacing", "ret": "float", @@ -11025,7 +11316,7 @@ "cimguiname": "igGetTime", "defaults": {}, "funcname": "GetTime", - "location": "imgui:864", + "location": "imgui:866", "namespace": "ImGui", "ov_cimguiname": "igGetTime", "ret": "double", @@ -11042,7 +11333,7 @@ "cimguiname": "igGetTreeNodeToLabelSpacing", "defaults": {}, "funcname": "GetTreeNodeToLabelSpacing", - "location": "imgui:613", + "location": "imgui:615", "namespace": "ImGui", "ov_cimguiname": "igGetTreeNodeToLabelSpacing", "ret": "float", @@ -11059,7 +11350,7 @@ "cimguiname": "igGetVersion", "defaults": {}, "funcname": "GetVersion", - "location": "imgui:316", + "location": "imgui:311", "namespace": "ImGui", "ov_cimguiname": "igGetVersion", "ret": "const char*", @@ -11081,7 +11372,7 @@ "cimguiname": "igGetWindowContentRegionMax", "defaults": {}, "funcname": "GetWindowContentRegionMax", - "location": "imgui:387", + "location": "imgui:383", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowContentRegionMax", @@ -11104,7 +11395,7 @@ "cimguiname": "igGetWindowContentRegionMin", "defaults": {}, "funcname": "GetWindowContentRegionMin", - "location": "imgui:386", + "location": "imgui:382", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowContentRegionMin", @@ -11122,7 +11413,7 @@ "cimguiname": "igGetWindowDrawList", "defaults": {}, "funcname": "GetWindowDrawList", - "location": "imgui:356", + "location": "imgui:351", "namespace": "ImGui", "ov_cimguiname": "igGetWindowDrawList", "ret": "ImDrawList*", @@ -11139,7 +11430,7 @@ "cimguiname": "igGetWindowHeight", "defaults": {}, "funcname": "GetWindowHeight", - "location": "imgui:360", + "location": "imgui:355", "namespace": "ImGui", "ov_cimguiname": "igGetWindowHeight", "ret": "float", @@ -11161,7 +11452,7 @@ "cimguiname": "igGetWindowPos", "defaults": {}, "funcname": "GetWindowPos", - "location": "imgui:357", + "location": "imgui:352", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowPos", @@ -11184,7 +11475,7 @@ "cimguiname": "igGetWindowSize", "defaults": {}, "funcname": "GetWindowSize", - "location": "imgui:358", + "location": "imgui:353", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowSize", @@ -11202,7 +11493,7 @@ "cimguiname": "igGetWindowWidth", "defaults": {}, "funcname": "GetWindowWidth", - "location": "imgui:359", + "location": "imgui:354", "namespace": "ImGui", "ov_cimguiname": "igGetWindowWidth", "ret": "float", @@ -11249,7 +11540,7 @@ "uv1": "ImVec2(1,1)" }, "funcname": "Image", - "location": "imgui:506", + "location": "imgui:514", "namespace": "ImGui", "ov_cimguiname": "igImage", "ret": "void", @@ -11259,8 +11550,12 @@ ], "igImageButton": [ { - "args": "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,int frame_padding,const ImVec4 bg_col,const ImVec4 tint_col)", + "args": "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, { "name": "user_texture_id", "type": "ImTextureID" @@ -11277,10 +11572,6 @@ "name": "uv1", "type": "const ImVec2" }, - { - "name": "frame_padding", - "type": "int" - }, { "name": "bg_col", "type": "const ImVec4" @@ -11290,22 +11581,21 @@ "type": "const ImVec4" } ], - "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),int frame_padding=-1,const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", - "call_args": "(user_texture_id,size,uv0,uv1,frame_padding,bg_col,tint_col)", + "argsoriginal": "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", + "call_args": "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)", "cimguiname": "igImageButton", "defaults": { "bg_col": "ImVec4(0,0,0,0)", - "frame_padding": "-1", "tint_col": "ImVec4(1,1,1,1)", "uv0": "ImVec2(0,0)", "uv1": "ImVec2(1,1)" }, "funcname": "ImageButton", - "location": "imgui:507", + "location": "imgui:515", "namespace": "ImGui", "ov_cimguiname": "igImageButton", "ret": "bool", - "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,int,const ImVec4,const ImVec4)", + "signature": "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", "stname": "" } ], @@ -11325,7 +11615,7 @@ "indent_w": "0.0f" }, "funcname": "Indent", - "location": "imgui:445", + "location": "imgui:443", "namespace": "ImGui", "ov_cimguiname": "igIndent", "ret": "void", @@ -11372,7 +11662,7 @@ "step_fast": "0.0" }, "funcname": "InputDouble", - "location": "imgui:584", + "location": "imgui:586", "namespace": "ImGui", "ov_cimguiname": "igInputDouble", "ret": "bool", @@ -11419,7 +11709,7 @@ "step_fast": "0.0f" }, "funcname": "InputFloat", - "location": "imgui:576", + "location": "imgui:578", "namespace": "ImGui", "ov_cimguiname": "igInputFloat", "ret": "bool", @@ -11456,7 +11746,7 @@ "format": "\"%.3f\"" }, "funcname": "InputFloat2", - "location": "imgui:577", + "location": "imgui:579", "namespace": "ImGui", "ov_cimguiname": "igInputFloat2", "ret": "bool", @@ -11493,7 +11783,7 @@ "format": "\"%.3f\"" }, "funcname": "InputFloat3", - "location": "imgui:578", + "location": "imgui:580", "namespace": "ImGui", "ov_cimguiname": "igInputFloat3", "ret": "bool", @@ -11530,7 +11820,7 @@ "format": "\"%.3f\"" }, "funcname": "InputFloat4", - "location": "imgui:579", + "location": "imgui:581", "namespace": "ImGui", "ov_cimguiname": "igInputFloat4", "ret": "bool", @@ -11572,7 +11862,7 @@ "step_fast": "100" }, "funcname": "InputInt", - "location": "imgui:580", + "location": "imgui:582", "namespace": "ImGui", "ov_cimguiname": "igInputInt", "ret": "bool", @@ -11604,7 +11894,7 @@ "flags": "0" }, "funcname": "InputInt2", - "location": "imgui:581", + "location": "imgui:583", "namespace": "ImGui", "ov_cimguiname": "igInputInt2", "ret": "bool", @@ -11636,7 +11926,7 @@ "flags": "0" }, "funcname": "InputInt3", - "location": "imgui:582", + "location": "imgui:584", "namespace": "ImGui", "ov_cimguiname": "igInputInt3", "ret": "bool", @@ -11668,7 +11958,7 @@ "flags": "0" }, "funcname": "InputInt4", - "location": "imgui:583", + "location": "imgui:585", "namespace": "ImGui", "ov_cimguiname": "igInputInt4", "ret": "bool", @@ -11719,7 +12009,7 @@ "p_step_fast": "NULL" }, "funcname": "InputScalar", - "location": "imgui:585", + "location": "imgui:587", "namespace": "ImGui", "ov_cimguiname": "igInputScalar", "ret": "bool", @@ -11774,7 +12064,7 @@ "p_step_fast": "NULL" }, "funcname": "InputScalarN", - "location": "imgui:586", + "location": "imgui:588", "namespace": "ImGui", "ov_cimguiname": "igInputScalarN", "ret": "bool", @@ -11820,7 +12110,7 @@ "user_data": "NULL" }, "funcname": "InputText", - "location": "imgui:573", + "location": "imgui:575", "namespace": "ImGui", "ov_cimguiname": "igInputText", "ret": "bool", @@ -11871,7 +12161,7 @@ "user_data": "NULL" }, "funcname": "InputTextMultiline", - "location": "imgui:574", + "location": "imgui:576", "namespace": "ImGui", "ov_cimguiname": "igInputTextMultiline", "ret": "bool", @@ -11921,7 +12211,7 @@ "user_data": "NULL" }, "funcname": "InputTextWithHint", - "location": "imgui:575", + "location": "imgui:577", "namespace": "ImGui", "ov_cimguiname": "igInputTextWithHint", "ret": "bool", @@ -11953,7 +12243,7 @@ "flags": "0" }, "funcname": "InvisibleButton", - "location": "imgui:504", + "location": "imgui:502", "namespace": "ImGui", "ov_cimguiname": "igInvisibleButton", "ret": "bool", @@ -11970,7 +12260,7 @@ "cimguiname": "igIsAnyItemActive", "defaults": {}, "funcname": "IsAnyItemActive", - "location": "imgui:848", + "location": "imgui:846", "namespace": "ImGui", "ov_cimguiname": "igIsAnyItemActive", "ret": "bool", @@ -11987,7 +12277,7 @@ "cimguiname": "igIsAnyItemFocused", "defaults": {}, "funcname": "IsAnyItemFocused", - "location": "imgui:849", + "location": "imgui:847", "namespace": "ImGui", "ov_cimguiname": "igIsAnyItemFocused", "ret": "bool", @@ -12004,7 +12294,7 @@ "cimguiname": "igIsAnyItemHovered", "defaults": {}, "funcname": "IsAnyItemHovered", - "location": "imgui:847", + "location": "imgui:845", "namespace": "ImGui", "ov_cimguiname": "igIsAnyItemHovered", "ret": "bool", @@ -12021,7 +12311,7 @@ "cimguiname": "igIsAnyMouseDown", "defaults": {}, "funcname": "IsAnyMouseDown", - "location": "imgui:905", + "location": "imgui:908", "namespace": "ImGui", "ov_cimguiname": "igIsAnyMouseDown", "ret": "bool", @@ -12038,7 +12328,7 @@ "cimguiname": "igIsItemActivated", "defaults": {}, "funcname": "IsItemActivated", - "location": "imgui:843", + "location": "imgui:841", "namespace": "ImGui", "ov_cimguiname": "igIsItemActivated", "ret": "bool", @@ -12055,7 +12345,7 @@ "cimguiname": "igIsItemActive", "defaults": {}, "funcname": "IsItemActive", - "location": "imgui:838", + "location": "imgui:836", "namespace": "ImGui", "ov_cimguiname": "igIsItemActive", "ret": "bool", @@ -12079,7 +12369,7 @@ "mouse_button": "0" }, "funcname": "IsItemClicked", - "location": "imgui:840", + "location": "imgui:838", "namespace": "ImGui", "ov_cimguiname": "igIsItemClicked", "ret": "bool", @@ -12096,7 +12386,7 @@ "cimguiname": "igIsItemDeactivated", "defaults": {}, "funcname": "IsItemDeactivated", - "location": "imgui:844", + "location": "imgui:842", "namespace": "ImGui", "ov_cimguiname": "igIsItemDeactivated", "ret": "bool", @@ -12113,7 +12403,7 @@ "cimguiname": "igIsItemDeactivatedAfterEdit", "defaults": {}, "funcname": "IsItemDeactivatedAfterEdit", - "location": "imgui:845", + "location": "imgui:843", "namespace": "ImGui", "ov_cimguiname": "igIsItemDeactivatedAfterEdit", "ret": "bool", @@ -12130,7 +12420,7 @@ "cimguiname": "igIsItemEdited", "defaults": {}, "funcname": "IsItemEdited", - "location": "imgui:842", + "location": "imgui:840", "namespace": "ImGui", "ov_cimguiname": "igIsItemEdited", "ret": "bool", @@ -12147,7 +12437,7 @@ "cimguiname": "igIsItemFocused", "defaults": {}, "funcname": "IsItemFocused", - "location": "imgui:839", + "location": "imgui:837", "namespace": "ImGui", "ov_cimguiname": "igIsItemFocused", "ret": "bool", @@ -12171,7 +12461,7 @@ "flags": "0" }, "funcname": "IsItemHovered", - "location": "imgui:837", + "location": "imgui:835", "namespace": "ImGui", "ov_cimguiname": "igIsItemHovered", "ret": "bool", @@ -12188,7 +12478,7 @@ "cimguiname": "igIsItemToggledOpen", "defaults": {}, "funcname": "IsItemToggledOpen", - "location": "imgui:846", + "location": "imgui:844", "namespace": "ImGui", "ov_cimguiname": "igIsItemToggledOpen", "ret": "bool", @@ -12205,7 +12495,7 @@ "cimguiname": "igIsItemVisible", "defaults": {}, "funcname": "IsItemVisible", - "location": "imgui:841", + "location": "imgui:839", "namespace": "ImGui", "ov_cimguiname": "igIsItemVisible", "ret": "bool", @@ -12215,73 +12505,73 @@ ], "igIsKeyDown": [ { - "args": "(int user_key_index)", + "args": "(ImGuiKey key)", "argsT": [ { - "name": "user_key_index", - "type": "int" + "name": "key", + "type": "ImGuiKey" } ], - "argsoriginal": "(int user_key_index)", - "call_args": "(user_key_index)", + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", "cimguiname": "igIsKeyDown", "defaults": {}, "funcname": "IsKeyDown", - "location": "imgui:888", + "location": "imgui:890", "namespace": "ImGui", "ov_cimguiname": "igIsKeyDown", "ret": "bool", - "signature": "(int)", + "signature": "(ImGuiKey)", "stname": "" } ], "igIsKeyPressed": [ { - "args": "(int user_key_index,bool repeat)", + "args": "(ImGuiKey key,bool repeat)", "argsT": [ { - "name": "user_key_index", - "type": "int" + "name": "key", + "type": "ImGuiKey" }, { "name": "repeat", "type": "bool" } ], - "argsoriginal": "(int user_key_index,bool repeat=true)", - "call_args": "(user_key_index,repeat)", + "argsoriginal": "(ImGuiKey key,bool repeat=true)", + "call_args": "(key,repeat)", "cimguiname": "igIsKeyPressed", "defaults": { "repeat": "true" }, "funcname": "IsKeyPressed", - "location": "imgui:889", + "location": "imgui:891", "namespace": "ImGui", "ov_cimguiname": "igIsKeyPressed", "ret": "bool", - "signature": "(int,bool)", + "signature": "(ImGuiKey,bool)", "stname": "" } ], "igIsKeyReleased": [ { - "args": "(int user_key_index)", + "args": "(ImGuiKey key)", "argsT": [ { - "name": "user_key_index", - "type": "int" + "name": "key", + "type": "ImGuiKey" } ], - "argsoriginal": "(int user_key_index)", - "call_args": "(user_key_index)", + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", "cimguiname": "igIsKeyReleased", "defaults": {}, "funcname": "IsKeyReleased", - "location": "imgui:890", + "location": "imgui:892", "namespace": "ImGui", "ov_cimguiname": "igIsKeyReleased", "ret": "bool", - "signature": "(int)", + "signature": "(ImGuiKey)", "stname": "" } ], @@ -12305,7 +12595,7 @@ "repeat": "false" }, "funcname": "IsMouseClicked", - "location": "imgui:899", + "location": "imgui:902", "namespace": "ImGui", "ov_cimguiname": "igIsMouseClicked", "ret": "bool", @@ -12327,7 +12617,7 @@ "cimguiname": "igIsMouseDoubleClicked", "defaults": {}, "funcname": "IsMouseDoubleClicked", - "location": "imgui:901", + "location": "imgui:904", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDoubleClicked", "ret": "bool", @@ -12349,7 +12639,7 @@ "cimguiname": "igIsMouseDown", "defaults": {}, "funcname": "IsMouseDown", - "location": "imgui:898", + "location": "imgui:901", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDown", "ret": "bool", @@ -12377,7 +12667,7 @@ "lock_threshold": "-1.0f" }, "funcname": "IsMouseDragging", - "location": "imgui:908", + "location": "imgui:911", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDragging", "ret": "bool", @@ -12409,7 +12699,7 @@ "clip": "true" }, "funcname": "IsMouseHoveringRect", - "location": "imgui:903", + "location": "imgui:906", "namespace": "ImGui", "ov_cimguiname": "igIsMouseHoveringRect", "ret": "bool", @@ -12433,7 +12723,7 @@ "mouse_pos": "NULL" }, "funcname": "IsMousePosValid", - "location": "imgui:904", + "location": "imgui:907", "namespace": "ImGui", "ov_cimguiname": "igIsMousePosValid", "ret": "bool", @@ -12455,7 +12745,7 @@ "cimguiname": "igIsMouseReleased", "defaults": {}, "funcname": "IsMouseReleased", - "location": "imgui:900", + "location": "imgui:903", "namespace": "ImGui", "ov_cimguiname": "igIsMouseReleased", "ret": "bool", @@ -12483,7 +12773,7 @@ "flags": "0" }, "funcname": "IsPopupOpen", - "location": "imgui:711", + "location": "imgui:714", "namespace": "ImGui", "ov_cimguiname": "igIsPopupOpen", "ret": "bool", @@ -12505,9 +12795,9 @@ "cimguiname": "igIsRectVisible", "defaults": {}, "funcname": "IsRectVisible", - "location": "imgui:862", + "location": "imgui:864", "namespace": "ImGui", - "ov_cimguiname": "igIsRectVisibleNil", + "ov_cimguiname": "igIsRectVisible_Nil", "ret": "bool", "signature": "(const ImVec2)", "stname": "" @@ -12529,9 +12819,9 @@ "cimguiname": "igIsRectVisible", "defaults": {}, "funcname": "IsRectVisible", - "location": "imgui:863", + "location": "imgui:865", "namespace": "ImGui", - "ov_cimguiname": "igIsRectVisibleVec2", + "ov_cimguiname": "igIsRectVisible_Vec2", "ret": "bool", "signature": "(const ImVec2,const ImVec2)", "stname": "" @@ -12546,7 +12836,7 @@ "cimguiname": "igIsWindowAppearing", "defaults": {}, "funcname": "IsWindowAppearing", - "location": "imgui:352", + "location": "imgui:347", "namespace": "ImGui", "ov_cimguiname": "igIsWindowAppearing", "ret": "bool", @@ -12563,7 +12853,7 @@ "cimguiname": "igIsWindowCollapsed", "defaults": {}, "funcname": "IsWindowCollapsed", - "location": "imgui:353", + "location": "imgui:348", "namespace": "ImGui", "ov_cimguiname": "igIsWindowCollapsed", "ret": "bool", @@ -12587,7 +12877,7 @@ "flags": "0" }, "funcname": "IsWindowFocused", - "location": "imgui:354", + "location": "imgui:349", "namespace": "ImGui", "ov_cimguiname": "igIsWindowFocused", "ret": "bool", @@ -12611,7 +12901,7 @@ "flags": "0" }, "funcname": "IsWindowHovered", - "location": "imgui:355", + "location": "imgui:350", "namespace": "ImGui", "ov_cimguiname": "igIsWindowHovered", "ret": "bool", @@ -12642,7 +12932,7 @@ "defaults": {}, "funcname": "LabelText", "isvararg": "...)", - "location": "imgui:494", + "location": "imgui:492", "namespace": "ImGui", "ov_cimguiname": "igLabelText", "ret": "void", @@ -12672,7 +12962,7 @@ "cimguiname": "igLabelTextV", "defaults": {}, "funcname": "LabelTextV", - "location": "imgui:495", + "location": "imgui:493", "namespace": "ImGui", "ov_cimguiname": "igLabelTextV", "ret": "void", @@ -12712,9 +13002,9 @@ "height_in_items": "-1" }, "funcname": "ListBox", - "location": "imgui:632", + "location": "imgui:634", "namespace": "ImGui", - "ov_cimguiname": "igListBoxStr_arr", + "ov_cimguiname": "igListBox_Str_arr", "ret": "bool", "signature": "(const char*,int*,const char* const[],int,int)", "stname": "" @@ -12756,9 +13046,9 @@ "height_in_items": "-1" }, "funcname": "ListBox", - "location": "imgui:633", + "location": "imgui:635", "namespace": "ImGui", - "ov_cimguiname": "igListBoxFnBoolPtr", + "ov_cimguiname": "igListBox_FnBoolPtr", "ret": "bool", "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", "stname": "" @@ -12778,7 +13068,7 @@ "cimguiname": "igLoadIniSettingsFromDisk", "defaults": {}, "funcname": "LoadIniSettingsFromDisk", - "location": "imgui:924", + "location": "imgui:927", "namespace": "ImGui", "ov_cimguiname": "igLoadIniSettingsFromDisk", "ret": "void", @@ -12806,7 +13096,7 @@ "ini_size": "0" }, "funcname": "LoadIniSettingsFromMemory", - "location": "imgui:925", + "location": "imgui:928", "namespace": "ImGui", "ov_cimguiname": "igLoadIniSettingsFromMemory", "ret": "void", @@ -12823,7 +13113,7 @@ "cimguiname": "igLogButtons", "defaults": {}, "funcname": "LogButtons", - "location": "imgui:800", + "location": "imgui:798", "namespace": "ImGui", "ov_cimguiname": "igLogButtons", "ret": "void", @@ -12840,7 +13130,7 @@ "cimguiname": "igLogFinish", "defaults": {}, "funcname": "LogFinish", - "location": "imgui:799", + "location": "imgui:797", "namespace": "ImGui", "ov_cimguiname": "igLogFinish", "ret": "void", @@ -12867,7 +13157,7 @@ "defaults": {}, "funcname": "LogText", "isvararg": "...)", - "location": "imgui:801", + "location": "imgui:799", "manual": true, "namespace": "ImGui", "ov_cimguiname": "igLogText", @@ -12894,7 +13184,7 @@ "cimguiname": "igLogTextV", "defaults": {}, "funcname": "LogTextV", - "location": "imgui:802", + "location": "imgui:800", "namespace": "ImGui", "ov_cimguiname": "igLogTextV", "ret": "void", @@ -12918,7 +13208,7 @@ "auto_open_depth": "-1" }, "funcname": "LogToClipboard", - "location": "imgui:798", + "location": "imgui:796", "namespace": "ImGui", "ov_cimguiname": "igLogToClipboard", "ret": "void", @@ -12947,7 +13237,7 @@ "filename": "NULL" }, "funcname": "LogToFile", - "location": "imgui:797", + "location": "imgui:795", "namespace": "ImGui", "ov_cimguiname": "igLogToFile", "ret": "void", @@ -12971,7 +13261,7 @@ "auto_open_depth": "-1" }, "funcname": "LogToTTY", - "location": "imgui:796", + "location": "imgui:794", "namespace": "ImGui", "ov_cimguiname": "igLogToTTY", "ret": "void", @@ -12993,7 +13283,7 @@ "cimguiname": "igMemAlloc", "defaults": {}, "funcname": "MemAlloc", - "location": "imgui:939", + "location": "imgui:942", "namespace": "ImGui", "ov_cimguiname": "igMemAlloc", "ret": "void*", @@ -13015,7 +13305,7 @@ "cimguiname": "igMemFree", "defaults": {}, "funcname": "MemFree", - "location": "imgui:940", + "location": "imgui:943", "namespace": "ImGui", "ov_cimguiname": "igMemFree", "ret": "void", @@ -13053,9 +13343,9 @@ "shortcut": "NULL" }, "funcname": "MenuItem", - "location": "imgui:660", + "location": "imgui:662", "namespace": "ImGui", - "ov_cimguiname": "igMenuItemBool", + "ov_cimguiname": "igMenuItem_Bool", "ret": "bool", "signature": "(const char*,const char*,bool,bool)", "stname": "" @@ -13087,9 +13377,9 @@ "enabled": "true" }, "funcname": "MenuItem", - "location": "imgui:661", + "location": "imgui:663", "namespace": "ImGui", - "ov_cimguiname": "igMenuItemBoolPtr", + "ov_cimguiname": "igMenuItem_BoolPtr", "ret": "bool", "signature": "(const char*,const char*,bool*,bool)", "stname": "" @@ -13104,7 +13394,7 @@ "cimguiname": "igNewFrame", "defaults": {}, "funcname": "NewFrame", - "location": "imgui:302", + "location": "imgui:296", "namespace": "ImGui", "ov_cimguiname": "igNewFrame", "ret": "void", @@ -13121,7 +13411,7 @@ "cimguiname": "igNewLine", "defaults": {}, "funcname": "NewLine", - "location": "imgui:442", + "location": "imgui:440", "namespace": "ImGui", "ov_cimguiname": "igNewLine", "ret": "void", @@ -13138,7 +13428,7 @@ "cimguiname": "igNextColumn", "defaults": {}, "funcname": "NextColumn", - "location": "imgui:778", + "location": "imgui:776", "namespace": "ImGui", "ov_cimguiname": "igNextColumn", "ret": "void", @@ -13166,9 +13456,9 @@ "popup_flags": "0" }, "funcname": "OpenPopup", - "location": "imgui:693", + "location": "imgui:696", "namespace": "ImGui", - "ov_cimguiname": "igOpenPopupStr", + "ov_cimguiname": "igOpenPopup_Str", "ret": "void", "signature": "(const char*,ImGuiPopupFlags)", "stname": "" @@ -13192,9 +13482,9 @@ "popup_flags": "0" }, "funcname": "OpenPopup", - "location": "imgui:694", + "location": "imgui:697", "namespace": "ImGui", - "ov_cimguiname": "igOpenPopupID", + "ov_cimguiname": "igOpenPopup_ID", "ret": "void", "signature": "(ImGuiID,ImGuiPopupFlags)", "stname": "" @@ -13221,7 +13511,7 @@ "str_id": "NULL" }, "funcname": "OpenPopupOnItemClick", - "location": "imgui:695", + "location": "imgui:698", "namespace": "ImGui", "ov_cimguiname": "igOpenPopupOnItemClick", "ret": "void", @@ -13282,9 +13572,9 @@ "values_offset": "0" }, "funcname": "PlotHistogram", - "location": "imgui:639", + "location": "imgui:641", "namespace": "ImGui", - "ov_cimguiname": "igPlotHistogramFloatPtr", + "ov_cimguiname": "igPlotHistogram_FloatPtr", "ret": "void", "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", "stname": "" @@ -13342,9 +13632,9 @@ "values_offset": "0" }, "funcname": "PlotHistogram", - "location": "imgui:640", + "location": "imgui:642", "namespace": "ImGui", - "ov_cimguiname": "igPlotHistogramFnFloatPtr", + "ov_cimguiname": "igPlotHistogram_FnFloatPtr", "ret": "void", "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", "stname": "" @@ -13403,9 +13693,9 @@ "values_offset": "0" }, "funcname": "PlotLines", - "location": "imgui:637", + "location": "imgui:639", "namespace": "ImGui", - "ov_cimguiname": "igPlotLinesFloatPtr", + "ov_cimguiname": "igPlotLines_FloatPtr", "ret": "void", "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", "stname": "" @@ -13463,9 +13753,9 @@ "values_offset": "0" }, "funcname": "PlotLines", - "location": "imgui:638", + "location": "imgui:640", "namespace": "ImGui", - "ov_cimguiname": "igPlotLinesFnFloatPtr", + "ov_cimguiname": "igPlotLines_FnFloatPtr", "ret": "void", "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", "stname": "" @@ -13480,7 +13770,7 @@ "cimguiname": "igPopAllowKeyboardFocus", "defaults": {}, "funcname": "PopAllowKeyboardFocus", - "location": "imgui:411", + "location": "imgui:409", "namespace": "ImGui", "ov_cimguiname": "igPopAllowKeyboardFocus", "ret": "void", @@ -13497,7 +13787,7 @@ "cimguiname": "igPopButtonRepeat", "defaults": {}, "funcname": "PopButtonRepeat", - "location": "imgui:413", + "location": "imgui:411", "namespace": "ImGui", "ov_cimguiname": "igPopButtonRepeat", "ret": "void", @@ -13514,7 +13804,7 @@ "cimguiname": "igPopClipRect", "defaults": {}, "funcname": "PopClipRect", - "location": "imgui:827", + "location": "imgui:825", "namespace": "ImGui", "ov_cimguiname": "igPopClipRect", "ret": "void", @@ -13531,7 +13821,7 @@ "cimguiname": "igPopFont", "defaults": {}, "funcname": "PopFont", - "location": "imgui:403", + "location": "imgui:401", "namespace": "ImGui", "ov_cimguiname": "igPopFont", "ret": "void", @@ -13548,7 +13838,7 @@ "cimguiname": "igPopID", "defaults": {}, "funcname": "PopID", - "location": "imgui:479", + "location": "imgui:477", "namespace": "ImGui", "ov_cimguiname": "igPopID", "ret": "void", @@ -13565,7 +13855,7 @@ "cimguiname": "igPopItemWidth", "defaults": {}, "funcname": "PopItemWidth", - "location": "imgui:417", + "location": "imgui:415", "namespace": "ImGui", "ov_cimguiname": "igPopItemWidth", "ret": "void", @@ -13589,7 +13879,7 @@ "count": "1" }, "funcname": "PopStyleColor", - "location": "imgui:406", + "location": "imgui:404", "namespace": "ImGui", "ov_cimguiname": "igPopStyleColor", "ret": "void", @@ -13613,7 +13903,7 @@ "count": "1" }, "funcname": "PopStyleVar", - "location": "imgui:409", + "location": "imgui:407", "namespace": "ImGui", "ov_cimguiname": "igPopStyleVar", "ret": "void", @@ -13630,7 +13920,7 @@ "cimguiname": "igPopTextWrapPos", "defaults": {}, "funcname": "PopTextWrapPos", - "location": "imgui:421", + "location": "imgui:419", "namespace": "ImGui", "ov_cimguiname": "igPopTextWrapPos", "ret": "void", @@ -13663,7 +13953,7 @@ "size_arg": "ImVec2(-FLT_MIN,0)" }, "funcname": "ProgressBar", - "location": "imgui:513", + "location": "imgui:509", "namespace": "ImGui", "ov_cimguiname": "igProgressBar", "ret": "void", @@ -13685,7 +13975,7 @@ "cimguiname": "igPushAllowKeyboardFocus", "defaults": {}, "funcname": "PushAllowKeyboardFocus", - "location": "imgui:410", + "location": "imgui:408", "namespace": "ImGui", "ov_cimguiname": "igPushAllowKeyboardFocus", "ret": "void", @@ -13707,7 +13997,7 @@ "cimguiname": "igPushButtonRepeat", "defaults": {}, "funcname": "PushButtonRepeat", - "location": "imgui:412", + "location": "imgui:410", "namespace": "ImGui", "ov_cimguiname": "igPushButtonRepeat", "ret": "void", @@ -13737,7 +14027,7 @@ "cimguiname": "igPushClipRect", "defaults": {}, "funcname": "PushClipRect", - "location": "imgui:826", + "location": "imgui:824", "namespace": "ImGui", "ov_cimguiname": "igPushClipRect", "ret": "void", @@ -13759,7 +14049,7 @@ "cimguiname": "igPushFont", "defaults": {}, "funcname": "PushFont", - "location": "imgui:402", + "location": "imgui:400", "namespace": "ImGui", "ov_cimguiname": "igPushFont", "ret": "void", @@ -13781,9 +14071,9 @@ "cimguiname": "igPushID", "defaults": {}, "funcname": "PushID", - "location": "imgui:475", + "location": "imgui:473", "namespace": "ImGui", - "ov_cimguiname": "igPushIDStr", + "ov_cimguiname": "igPushID_Str", "ret": "void", "signature": "(const char*)", "stname": "" @@ -13805,9 +14095,9 @@ "cimguiname": "igPushID", "defaults": {}, "funcname": "PushID", - "location": "imgui:476", + "location": "imgui:474", "namespace": "ImGui", - "ov_cimguiname": "igPushIDStrStr", + "ov_cimguiname": "igPushID_StrStr", "ret": "void", "signature": "(const char*,const char*)", "stname": "" @@ -13825,9 +14115,9 @@ "cimguiname": "igPushID", "defaults": {}, "funcname": "PushID", - "location": "imgui:477", + "location": "imgui:475", "namespace": "ImGui", - "ov_cimguiname": "igPushIDPtr", + "ov_cimguiname": "igPushID_Ptr", "ret": "void", "signature": "(const void*)", "stname": "" @@ -13845,9 +14135,9 @@ "cimguiname": "igPushID", "defaults": {}, "funcname": "PushID", - "location": "imgui:478", + "location": "imgui:476", "namespace": "ImGui", - "ov_cimguiname": "igPushIDInt", + "ov_cimguiname": "igPushID_Int", "ret": "void", "signature": "(int)", "stname": "" @@ -13867,7 +14157,7 @@ "cimguiname": "igPushItemWidth", "defaults": {}, "funcname": "PushItemWidth", - "location": "imgui:416", + "location": "imgui:414", "namespace": "ImGui", "ov_cimguiname": "igPushItemWidth", "ret": "void", @@ -13893,9 +14183,9 @@ "cimguiname": "igPushStyleColor", "defaults": {}, "funcname": "PushStyleColor", - "location": "imgui:404", + "location": "imgui:402", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleColorU32", + "ov_cimguiname": "igPushStyleColor_U32", "ret": "void", "signature": "(ImGuiCol,ImU32)", "stname": "" @@ -13917,9 +14207,9 @@ "cimguiname": "igPushStyleColor", "defaults": {}, "funcname": "PushStyleColor", - "location": "imgui:405", + "location": "imgui:403", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleColorVec4", + "ov_cimguiname": "igPushStyleColor_Vec4", "ret": "void", "signature": "(ImGuiCol,const ImVec4)", "stname": "" @@ -13943,9 +14233,9 @@ "cimguiname": "igPushStyleVar", "defaults": {}, "funcname": "PushStyleVar", - "location": "imgui:407", + "location": "imgui:405", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleVarFloat", + "ov_cimguiname": "igPushStyleVar_Float", "ret": "void", "signature": "(ImGuiStyleVar,float)", "stname": "" @@ -13967,9 +14257,9 @@ "cimguiname": "igPushStyleVar", "defaults": {}, "funcname": "PushStyleVar", - "location": "imgui:408", + "location": "imgui:406", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleVarVec2", + "ov_cimguiname": "igPushStyleVar_Vec2", "ret": "void", "signature": "(ImGuiStyleVar,const ImVec2)", "stname": "" @@ -13991,7 +14281,7 @@ "wrap_local_pos_x": "0.0f" }, "funcname": "PushTextWrapPos", - "location": "imgui:420", + "location": "imgui:418", "namespace": "ImGui", "ov_cimguiname": "igPushTextWrapPos", "ret": "void", @@ -14017,9 +14307,9 @@ "cimguiname": "igRadioButton", "defaults": {}, "funcname": "RadioButton", - "location": "imgui:511", + "location": "imgui:507", "namespace": "ImGui", - "ov_cimguiname": "igRadioButtonBool", + "ov_cimguiname": "igRadioButton_Bool", "ret": "bool", "signature": "(const char*,bool)", "stname": "" @@ -14045,9 +14335,9 @@ "cimguiname": "igRadioButton", "defaults": {}, "funcname": "RadioButton", - "location": "imgui:512", + "location": "imgui:508", "namespace": "ImGui", - "ov_cimguiname": "igRadioButtonIntPtr", + "ov_cimguiname": "igRadioButton_IntPtr", "ret": "bool", "signature": "(const char*,int*,int)", "stname": "" @@ -14062,7 +14352,7 @@ "cimguiname": "igRender", "defaults": {}, "funcname": "Render", - "location": "imgui:304", + "location": "imgui:298", "namespace": "ImGui", "ov_cimguiname": "igRender", "ret": "void", @@ -14086,7 +14376,7 @@ "button": "0" }, "funcname": "ResetMouseDragDelta", - "location": "imgui:910", + "location": "imgui:913", "namespace": "ImGui", "ov_cimguiname": "igResetMouseDragDelta", "ret": "void", @@ -14115,7 +14405,7 @@ "spacing": "-1.0f" }, "funcname": "SameLine", - "location": "imgui:441", + "location": "imgui:439", "namespace": "ImGui", "ov_cimguiname": "igSameLine", "ret": "void", @@ -14137,7 +14427,7 @@ "cimguiname": "igSaveIniSettingsToDisk", "defaults": {}, "funcname": "SaveIniSettingsToDisk", - "location": "imgui:926", + "location": "imgui:929", "namespace": "ImGui", "ov_cimguiname": "igSaveIniSettingsToDisk", "ret": "void", @@ -14161,7 +14451,7 @@ "out_ini_size": "NULL" }, "funcname": "SaveIniSettingsToMemory", - "location": "imgui:927", + "location": "imgui:930", "namespace": "ImGui", "ov_cimguiname": "igSaveIniSettingsToMemory", "ret": "const char*", @@ -14199,9 +14489,9 @@ "size": "ImVec2(0,0)" }, "funcname": "Selectable", - "location": "imgui:621", + "location": "imgui:623", "namespace": "ImGui", - "ov_cimguiname": "igSelectableBool", + "ov_cimguiname": "igSelectable_Bool", "ret": "bool", "signature": "(const char*,bool,ImGuiSelectableFlags,const ImVec2)", "stname": "" @@ -14234,9 +14524,9 @@ "size": "ImVec2(0,0)" }, "funcname": "Selectable", - "location": "imgui:622", + "location": "imgui:624", "namespace": "ImGui", - "ov_cimguiname": "igSelectableBoolPtr", + "ov_cimguiname": "igSelectable_BoolPtr", "ret": "bool", "signature": "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)", "stname": "" @@ -14251,7 +14541,7 @@ "cimguiname": "igSeparator", "defaults": {}, "funcname": "Separator", - "location": "imgui:440", + "location": "imgui:438", "namespace": "ImGui", "ov_cimguiname": "igSeparator", "ret": "void", @@ -14283,7 +14573,7 @@ "user_data": "NULL" }, "funcname": "SetAllocatorFunctions", - "location": "imgui:937", + "location": "imgui:940", "namespace": "ImGui", "ov_cimguiname": "igSetAllocatorFunctions", "ret": "void", @@ -14305,7 +14595,7 @@ "cimguiname": "igSetClipboardText", "defaults": {}, "funcname": "SetClipboardText", - "location": "imgui:918", + "location": "imgui:921", "namespace": "ImGui", "ov_cimguiname": "igSetClipboardText", "ret": "void", @@ -14327,7 +14617,7 @@ "cimguiname": "igSetColorEditOptions", "defaults": {}, "funcname": "SetColorEditOptions", - "location": "imgui:596", + "location": "imgui:598", "namespace": "ImGui", "ov_cimguiname": "igSetColorEditOptions", "ret": "void", @@ -14353,7 +14643,7 @@ "cimguiname": "igSetColumnOffset", "defaults": {}, "funcname": "SetColumnOffset", - "location": "imgui:783", + "location": "imgui:781", "namespace": "ImGui", "ov_cimguiname": "igSetColumnOffset", "ret": "void", @@ -14379,7 +14669,7 @@ "cimguiname": "igSetColumnWidth", "defaults": {}, "funcname": "SetColumnWidth", - "location": "imgui:781", + "location": "imgui:779", "namespace": "ImGui", "ov_cimguiname": "igSetColumnWidth", "ret": "void", @@ -14401,7 +14691,7 @@ "cimguiname": "igSetCurrentContext", "defaults": {}, "funcname": "SetCurrentContext", - "location": "imgui:297", + "location": "imgui:291", "namespace": "ImGui", "ov_cimguiname": "igSetCurrentContext", "ret": "void", @@ -14423,7 +14713,7 @@ "cimguiname": "igSetCursorPos", "defaults": {}, "funcname": "SetCursorPos", - "location": "imgui:452", + "location": "imgui:450", "namespace": "ImGui", "ov_cimguiname": "igSetCursorPos", "ret": "void", @@ -14445,7 +14735,7 @@ "cimguiname": "igSetCursorPosX", "defaults": {}, "funcname": "SetCursorPosX", - "location": "imgui:453", + "location": "imgui:451", "namespace": "ImGui", "ov_cimguiname": "igSetCursorPosX", "ret": "void", @@ -14467,7 +14757,7 @@ "cimguiname": "igSetCursorPosY", "defaults": {}, "funcname": "SetCursorPosY", - "location": "imgui:454", + "location": "imgui:452", "namespace": "ImGui", "ov_cimguiname": "igSetCursorPosY", "ret": "void", @@ -14489,7 +14779,7 @@ "cimguiname": "igSetCursorScreenPos", "defaults": {}, "funcname": "SetCursorScreenPos", - "location": "imgui:457", + "location": "imgui:455", "namespace": "ImGui", "ov_cimguiname": "igSetCursorScreenPos", "ret": "void", @@ -14525,7 +14815,7 @@ "cond": "0" }, "funcname": "SetDragDropPayload", - "location": "imgui:810", + "location": "imgui:808", "namespace": "ImGui", "ov_cimguiname": "igSetDragDropPayload", "ret": "bool", @@ -14542,7 +14832,7 @@ "cimguiname": "igSetItemAllowOverlap", "defaults": {}, "funcname": "SetItemAllowOverlap", - "location": "imgui:853", + "location": "imgui:851", "namespace": "ImGui", "ov_cimguiname": "igSetItemAllowOverlap", "ret": "void", @@ -14559,7 +14849,7 @@ "cimguiname": "igSetItemDefaultFocus", "defaults": {}, "funcname": "SetItemDefaultFocus", - "location": "imgui:831", + "location": "imgui:829", "namespace": "ImGui", "ov_cimguiname": "igSetItemDefaultFocus", "ret": "void", @@ -14583,7 +14873,7 @@ "offset": "0" }, "funcname": "SetKeyboardFocusHere", - "location": "imgui:832", + "location": "imgui:830", "namespace": "ImGui", "ov_cimguiname": "igSetKeyboardFocusHere", "ret": "void", @@ -14605,7 +14895,7 @@ "cimguiname": "igSetMouseCursor", "defaults": {}, "funcname": "SetMouseCursor", - "location": "imgui:912", + "location": "imgui:915", "namespace": "ImGui", "ov_cimguiname": "igSetMouseCursor", "ret": "void", @@ -14613,6 +14903,50 @@ "stname": "" } ], + "igSetNextFrameWantCaptureKeyboard": [ + { + "args": "(bool want_capture_keyboard)", + "argsT": [ + { + "name": "want_capture_keyboard", + "type": "bool" + } + ], + "argsoriginal": "(bool want_capture_keyboard)", + "call_args": "(want_capture_keyboard)", + "cimguiname": "igSetNextFrameWantCaptureKeyboard", + "defaults": {}, + "funcname": "SetNextFrameWantCaptureKeyboard", + "location": "imgui:895", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextFrameWantCaptureKeyboard", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igSetNextFrameWantCaptureMouse": [ + { + "args": "(bool want_capture_mouse)", + "argsT": [ + { + "name": "want_capture_mouse", + "type": "bool" + } + ], + "argsoriginal": "(bool want_capture_mouse)", + "call_args": "(want_capture_mouse)", + "cimguiname": "igSetNextFrameWantCaptureMouse", + "defaults": {}, + "funcname": "SetNextFrameWantCaptureMouse", + "location": "imgui:916", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextFrameWantCaptureMouse", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], "igSetNextItemOpen": [ { "args": "(bool is_open,ImGuiCond cond)", @@ -14633,7 +14967,7 @@ "cond": "0" }, "funcname": "SetNextItemOpen", - "location": "imgui:616", + "location": "imgui:618", "namespace": "ImGui", "ov_cimguiname": "igSetNextItemOpen", "ret": "void", @@ -14655,7 +14989,7 @@ "cimguiname": "igSetNextItemWidth", "defaults": {}, "funcname": "SetNextItemWidth", - "location": "imgui:418", + "location": "imgui:416", "namespace": "ImGui", "ov_cimguiname": "igSetNextItemWidth", "ret": "void", @@ -14677,7 +15011,7 @@ "cimguiname": "igSetNextWindowBgAlpha", "defaults": {}, "funcname": "SetNextWindowBgAlpha", - "location": "imgui:370", + "location": "imgui:366", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowBgAlpha", "ret": "void", @@ -14705,7 +15039,7 @@ "cond": "0" }, "funcname": "SetNextWindowCollapsed", - "location": "imgui:368", + "location": "imgui:363", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowCollapsed", "ret": "void", @@ -14727,7 +15061,7 @@ "cimguiname": "igSetNextWindowContentSize", "defaults": {}, "funcname": "SetNextWindowContentSize", - "location": "imgui:367", + "location": "imgui:362", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowContentSize", "ret": "void", @@ -14744,7 +15078,7 @@ "cimguiname": "igSetNextWindowFocus", "defaults": {}, "funcname": "SetNextWindowFocus", - "location": "imgui:369", + "location": "imgui:364", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowFocus", "ret": "void", @@ -14777,7 +15111,7 @@ "pivot": "ImVec2(0,0)" }, "funcname": "SetNextWindowPos", - "location": "imgui:364", + "location": "imgui:359", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowPos", "ret": "void", @@ -14785,6 +15119,28 @@ "stname": "" } ], + "igSetNextWindowScroll": [ + { + "args": "(const ImVec2 scroll)", + "argsT": [ + { + "name": "scroll", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& scroll)", + "call_args": "(scroll)", + "cimguiname": "igSetNextWindowScroll", + "defaults": {}, + "funcname": "SetNextWindowScroll", + "location": "imgui:365", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowScroll", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], "igSetNextWindowSize": [ { "args": "(const ImVec2 size,ImGuiCond cond)", @@ -14805,7 +15161,7 @@ "cond": "0" }, "funcname": "SetNextWindowSize", - "location": "imgui:365", + "location": "imgui:360", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowSize", "ret": "void", @@ -14842,7 +15198,7 @@ "custom_callback_data": "NULL" }, "funcname": "SetNextWindowSizeConstraints", - "location": "imgui:366", + "location": "imgui:361", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowSizeConstraints", "ret": "void", @@ -14870,7 +15226,7 @@ "center_x_ratio": "0.5f" }, "funcname": "SetScrollFromPosX", - "location": "imgui:398", + "location": "imgui:396", "namespace": "ImGui", "ov_cimguiname": "igSetScrollFromPosX", "ret": "void", @@ -14898,7 +15254,7 @@ "center_y_ratio": "0.5f" }, "funcname": "SetScrollFromPosY", - "location": "imgui:399", + "location": "imgui:397", "namespace": "ImGui", "ov_cimguiname": "igSetScrollFromPosY", "ret": "void", @@ -14922,7 +15278,7 @@ "center_x_ratio": "0.5f" }, "funcname": "SetScrollHereX", - "location": "imgui:396", + "location": "imgui:394", "namespace": "ImGui", "ov_cimguiname": "igSetScrollHereX", "ret": "void", @@ -14946,7 +15302,7 @@ "center_y_ratio": "0.5f" }, "funcname": "SetScrollHereY", - "location": "imgui:397", + "location": "imgui:395", "namespace": "ImGui", "ov_cimguiname": "igSetScrollHereY", "ret": "void", @@ -14968,7 +15324,7 @@ "cimguiname": "igSetScrollX", "defaults": {}, "funcname": "SetScrollX", - "location": "imgui:392", + "location": "imgui:390", "namespace": "ImGui", "ov_cimguiname": "igSetScrollX", "ret": "void", @@ -14990,7 +15346,7 @@ "cimguiname": "igSetScrollY", "defaults": {}, "funcname": "SetScrollY", - "location": "imgui:393", + "location": "imgui:391", "namespace": "ImGui", "ov_cimguiname": "igSetScrollY", "ret": "void", @@ -15034,7 +15390,7 @@ "cimguiname": "igSetTabItemClosed", "defaults": {}, "funcname": "SetTabItemClosed", - "location": "imgui:792", + "location": "imgui:790", "namespace": "ImGui", "ov_cimguiname": "igSetTabItemClosed", "ret": "void", @@ -15061,7 +15417,7 @@ "defaults": {}, "funcname": "SetTooltip", "isvararg": "...)", - "location": "imgui:667", + "location": "imgui:669", "namespace": "ImGui", "ov_cimguiname": "igSetTooltip", "ret": "void", @@ -15087,7 +15443,7 @@ "cimguiname": "igSetTooltipV", "defaults": {}, "funcname": "SetTooltipV", - "location": "imgui:668", + "location": "imgui:670", "namespace": "ImGui", "ov_cimguiname": "igSetTooltipV", "ret": "void", @@ -15115,9 +15471,9 @@ "cond": "0" }, "funcname": "SetWindowCollapsed", - "location": "imgui:373", + "location": "imgui:369", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowCollapsedBool", + "ov_cimguiname": "igSetWindowCollapsed_Bool", "ret": "void", "signature": "(bool,ImGuiCond)", "stname": "" @@ -15145,9 +15501,9 @@ "cond": "0" }, "funcname": "SetWindowCollapsed", - "location": "imgui:378", + "location": "imgui:374", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowCollapsedStr", + "ov_cimguiname": "igSetWindowCollapsed_Str", "ret": "void", "signature": "(const char*,bool,ImGuiCond)", "stname": "" @@ -15162,9 +15518,9 @@ "cimguiname": "igSetWindowFocus", "defaults": {}, "funcname": "SetWindowFocus", - "location": "imgui:374", + "location": "imgui:370", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowFocusNil", + "ov_cimguiname": "igSetWindowFocus_Nil", "ret": "void", "signature": "()", "stname": "" @@ -15182,9 +15538,9 @@ "cimguiname": "igSetWindowFocus", "defaults": {}, "funcname": "SetWindowFocus", - "location": "imgui:379", + "location": "imgui:375", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowFocusStr", + "ov_cimguiname": "igSetWindowFocus_Str", "ret": "void", "signature": "(const char*)", "stname": "" @@ -15204,7 +15560,7 @@ "cimguiname": "igSetWindowFontScale", "defaults": {}, "funcname": "SetWindowFontScale", - "location": "imgui:375", + "location": "imgui:371", "namespace": "ImGui", "ov_cimguiname": "igSetWindowFontScale", "ret": "void", @@ -15232,9 +15588,9 @@ "cond": "0" }, "funcname": "SetWindowPos", - "location": "imgui:371", + "location": "imgui:367", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowPosVec2", + "ov_cimguiname": "igSetWindowPos_Vec2", "ret": "void", "signature": "(const ImVec2,ImGuiCond)", "stname": "" @@ -15262,9 +15618,9 @@ "cond": "0" }, "funcname": "SetWindowPos", - "location": "imgui:376", + "location": "imgui:372", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowPosStr", + "ov_cimguiname": "igSetWindowPos_Str", "ret": "void", "signature": "(const char*,const ImVec2,ImGuiCond)", "stname": "" @@ -15290,9 +15646,9 @@ "cond": "0" }, "funcname": "SetWindowSize", - "location": "imgui:372", + "location": "imgui:368", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowSizeVec2", + "ov_cimguiname": "igSetWindowSize_Vec2", "ret": "void", "signature": "(const ImVec2,ImGuiCond)", "stname": "" @@ -15320,9 +15676,9 @@ "cond": "0" }, "funcname": "SetWindowSize", - "location": "imgui:377", + "location": "imgui:373", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowSizeStr", + "ov_cimguiname": "igSetWindowSize_Str", "ret": "void", "signature": "(const char*,const ImVec2,ImGuiCond)", "stname": "" @@ -15344,7 +15700,7 @@ "p_open": "NULL" }, "funcname": "ShowAboutWindow", - "location": "imgui:311", + "location": "imgui:306", "namespace": "ImGui", "ov_cimguiname": "igShowAboutWindow", "ret": "void", @@ -15352,6 +15708,30 @@ "stname": "" } ], + "igShowDebugLogWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowDebugLogWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowDebugLogWindow", + "location": "imgui:304", + "namespace": "ImGui", + "ov_cimguiname": "igShowDebugLogWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], "igShowDemoWindow": [ { "args": "(bool* p_open)", @@ -15368,7 +15748,7 @@ "p_open": "NULL" }, "funcname": "ShowDemoWindow", - "location": "imgui:308", + "location": "imgui:302", "namespace": "ImGui", "ov_cimguiname": "igShowDemoWindow", "ret": "void", @@ -15390,7 +15770,7 @@ "cimguiname": "igShowFontSelector", "defaults": {}, "funcname": "ShowFontSelector", - "location": "imgui:314", + "location": "imgui:309", "namespace": "ImGui", "ov_cimguiname": "igShowFontSelector", "ret": "void", @@ -15414,7 +15794,7 @@ "p_open": "NULL" }, "funcname": "ShowMetricsWindow", - "location": "imgui:309", + "location": "imgui:303", "namespace": "ImGui", "ov_cimguiname": "igShowMetricsWindow", "ret": "void", @@ -15438,7 +15818,7 @@ "p_open": "NULL" }, "funcname": "ShowStackToolWindow", - "location": "imgui:310", + "location": "imgui:305", "namespace": "ImGui", "ov_cimguiname": "igShowStackToolWindow", "ret": "void", @@ -15462,7 +15842,7 @@ "ref": "NULL" }, "funcname": "ShowStyleEditor", - "location": "imgui:312", + "location": "imgui:307", "namespace": "ImGui", "ov_cimguiname": "igShowStyleEditor", "ret": "void", @@ -15484,7 +15864,7 @@ "cimguiname": "igShowStyleSelector", "defaults": {}, "funcname": "ShowStyleSelector", - "location": "imgui:313", + "location": "imgui:308", "namespace": "ImGui", "ov_cimguiname": "igShowStyleSelector", "ret": "bool", @@ -15501,7 +15881,7 @@ "cimguiname": "igShowUserGuide", "defaults": {}, "funcname": "ShowUserGuide", - "location": "imgui:315", + "location": "imgui:310", "namespace": "ImGui", "ov_cimguiname": "igShowUserGuide", "ret": "void", @@ -15548,7 +15928,7 @@ "v_degrees_min": "-360.0f" }, "funcname": "SliderAngle", - "location": "imgui:559", + "location": "imgui:561", "namespace": "ImGui", "ov_cimguiname": "igSliderAngle", "ret": "bool", @@ -15593,7 +15973,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat", - "location": "imgui:555", + "location": "imgui:557", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat", "ret": "bool", @@ -15638,7 +16018,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat2", - "location": "imgui:556", + "location": "imgui:558", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat2", "ret": "bool", @@ -15683,7 +16063,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat3", - "location": "imgui:557", + "location": "imgui:559", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat3", "ret": "bool", @@ -15728,7 +16108,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat4", - "location": "imgui:558", + "location": "imgui:560", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat4", "ret": "bool", @@ -15773,7 +16153,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt", - "location": "imgui:560", + "location": "imgui:562", "namespace": "ImGui", "ov_cimguiname": "igSliderInt", "ret": "bool", @@ -15818,7 +16198,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt2", - "location": "imgui:561", + "location": "imgui:563", "namespace": "ImGui", "ov_cimguiname": "igSliderInt2", "ret": "bool", @@ -15863,7 +16243,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt3", - "location": "imgui:562", + "location": "imgui:564", "namespace": "ImGui", "ov_cimguiname": "igSliderInt3", "ret": "bool", @@ -15908,7 +16288,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt4", - "location": "imgui:563", + "location": "imgui:565", "namespace": "ImGui", "ov_cimguiname": "igSliderInt4", "ret": "bool", @@ -15957,7 +16337,7 @@ "format": "NULL" }, "funcname": "SliderScalar", - "location": "imgui:564", + "location": "imgui:566", "namespace": "ImGui", "ov_cimguiname": "igSliderScalar", "ret": "bool", @@ -16010,7 +16390,7 @@ "format": "NULL" }, "funcname": "SliderScalarN", - "location": "imgui:565", + "location": "imgui:567", "namespace": "ImGui", "ov_cimguiname": "igSliderScalarN", "ret": "bool", @@ -16032,7 +16412,7 @@ "cimguiname": "igSmallButton", "defaults": {}, "funcname": "SmallButton", - "location": "imgui:503", + "location": "imgui:501", "namespace": "ImGui", "ov_cimguiname": "igSmallButton", "ret": "bool", @@ -16049,7 +16429,7 @@ "cimguiname": "igSpacing", "defaults": {}, "funcname": "Spacing", - "location": "imgui:443", + "location": "imgui:441", "namespace": "ImGui", "ov_cimguiname": "igSpacing", "ret": "void", @@ -16073,7 +16453,7 @@ "dst": "NULL" }, "funcname": "StyleColorsClassic", - "location": "imgui:321", + "location": "imgui:316", "namespace": "ImGui", "ov_cimguiname": "igStyleColorsClassic", "ret": "void", @@ -16097,7 +16477,7 @@ "dst": "NULL" }, "funcname": "StyleColorsDark", - "location": "imgui:319", + "location": "imgui:314", "namespace": "ImGui", "ov_cimguiname": "igStyleColorsDark", "ret": "void", @@ -16121,7 +16501,7 @@ "dst": "NULL" }, "funcname": "StyleColorsLight", - "location": "imgui:320", + "location": "imgui:315", "namespace": "ImGui", "ov_cimguiname": "igStyleColorsLight", "ret": "void", @@ -16149,7 +16529,7 @@ "flags": "0" }, "funcname": "TabItemButton", - "location": "imgui:791", + "location": "imgui:789", "namespace": "ImGui", "ov_cimguiname": "igTabItemButton", "ret": "bool", @@ -16166,7 +16546,7 @@ "cimguiname": "igTableGetColumnCount", "defaults": {}, "funcname": "TableGetColumnCount", - "location": "imgui:767", + "location": "imgui:765", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnCount", "ret": "int", @@ -16190,7 +16570,7 @@ "column_n": "-1" }, "funcname": "TableGetColumnFlags", - "location": "imgui:771", + "location": "imgui:769", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnFlags", "ret": "ImGuiTableColumnFlags", @@ -16207,7 +16587,7 @@ "cimguiname": "igTableGetColumnIndex", "defaults": {}, "funcname": "TableGetColumnIndex", - "location": "imgui:768", + "location": "imgui:766", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnIndex", "ret": "int", @@ -16231,7 +16611,7 @@ "column_n": "-1" }, "funcname": "TableGetColumnName", - "location": "imgui:770", + "location": "imgui:768", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnName", "ret": "const char*", @@ -16248,7 +16628,7 @@ "cimguiname": "igTableGetRowIndex", "defaults": {}, "funcname": "TableGetRowIndex", - "location": "imgui:769", + "location": "imgui:767", "namespace": "ImGui", "ov_cimguiname": "igTableGetRowIndex", "ret": "int", @@ -16265,7 +16645,7 @@ "cimguiname": "igTableGetSortSpecs", "defaults": {}, "funcname": "TableGetSortSpecs", - "location": "imgui:763", + "location": "imgui:764", "namespace": "ImGui", "ov_cimguiname": "igTableGetSortSpecs", "ret": "ImGuiTableSortSpecs*", @@ -16287,7 +16667,7 @@ "cimguiname": "igTableHeader", "defaults": {}, "funcname": "TableHeader", - "location": "imgui:755", + "location": "imgui:756", "namespace": "ImGui", "ov_cimguiname": "igTableHeader", "ret": "void", @@ -16304,7 +16684,7 @@ "cimguiname": "igTableHeadersRow", "defaults": {}, "funcname": "TableHeadersRow", - "location": "imgui:754", + "location": "imgui:755", "namespace": "ImGui", "ov_cimguiname": "igTableHeadersRow", "ret": "void", @@ -16321,7 +16701,7 @@ "cimguiname": "igTableNextColumn", "defaults": {}, "funcname": "TableNextColumn", - "location": "imgui:741", + "location": "imgui:742", "namespace": "ImGui", "ov_cimguiname": "igTableNextColumn", "ret": "bool", @@ -16350,7 +16730,7 @@ "row_flags": "0" }, "funcname": "TableNextRow", - "location": "imgui:740", + "location": "imgui:741", "namespace": "ImGui", "ov_cimguiname": "igTableNextRow", "ret": "void", @@ -16382,7 +16762,7 @@ "column_n": "-1" }, "funcname": "TableSetBgColor", - "location": "imgui:773", + "location": "imgui:771", "namespace": "ImGui", "ov_cimguiname": "igTableSetBgColor", "ret": "void", @@ -16408,7 +16788,7 @@ "cimguiname": "igTableSetColumnEnabled", "defaults": {}, "funcname": "TableSetColumnEnabled", - "location": "imgui:772", + "location": "imgui:770", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnEnabled", "ret": "void", @@ -16430,7 +16810,7 @@ "cimguiname": "igTableSetColumnIndex", "defaults": {}, "funcname": "TableSetColumnIndex", - "location": "imgui:742", + "location": "imgui:743", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnIndex", "ret": "bool", @@ -16468,7 +16848,7 @@ "user_id": "0" }, "funcname": "TableSetupColumn", - "location": "imgui:752", + "location": "imgui:753", "namespace": "ImGui", "ov_cimguiname": "igTableSetupColumn", "ret": "void", @@ -16494,7 +16874,7 @@ "cimguiname": "igTableSetupScrollFreeze", "defaults": {}, "funcname": "TableSetupScrollFreeze", - "location": "imgui:753", + "location": "imgui:754", "namespace": "ImGui", "ov_cimguiname": "igTableSetupScrollFreeze", "ret": "void", @@ -16521,7 +16901,7 @@ "defaults": {}, "funcname": "Text", "isvararg": "...)", - "location": "imgui:486", + "location": "imgui:484", "namespace": "ImGui", "ov_cimguiname": "igText", "ret": "void", @@ -16552,7 +16932,7 @@ "defaults": {}, "funcname": "TextColored", "isvararg": "...)", - "location": "imgui:488", + "location": "imgui:486", "namespace": "ImGui", "ov_cimguiname": "igTextColored", "ret": "void", @@ -16582,7 +16962,7 @@ "cimguiname": "igTextColoredV", "defaults": {}, "funcname": "TextColoredV", - "location": "imgui:489", + "location": "imgui:487", "namespace": "ImGui", "ov_cimguiname": "igTextColoredV", "ret": "void", @@ -16609,7 +16989,7 @@ "defaults": {}, "funcname": "TextDisabled", "isvararg": "...)", - "location": "imgui:490", + "location": "imgui:488", "namespace": "ImGui", "ov_cimguiname": "igTextDisabled", "ret": "void", @@ -16635,7 +17015,7 @@ "cimguiname": "igTextDisabledV", "defaults": {}, "funcname": "TextDisabledV", - "location": "imgui:491", + "location": "imgui:489", "namespace": "ImGui", "ov_cimguiname": "igTextDisabledV", "ret": "void", @@ -16663,7 +17043,7 @@ "text_end": "NULL" }, "funcname": "TextUnformatted", - "location": "imgui:485", + "location": "imgui:483", "namespace": "ImGui", "ov_cimguiname": "igTextUnformatted", "ret": "void", @@ -16689,7 +17069,7 @@ "cimguiname": "igTextV", "defaults": {}, "funcname": "TextV", - "location": "imgui:487", + "location": "imgui:485", "namespace": "ImGui", "ov_cimguiname": "igTextV", "ret": "void", @@ -16716,7 +17096,7 @@ "defaults": {}, "funcname": "TextWrapped", "isvararg": "...)", - "location": "imgui:492", + "location": "imgui:490", "namespace": "ImGui", "ov_cimguiname": "igTextWrapped", "ret": "void", @@ -16742,7 +17122,7 @@ "cimguiname": "igTextWrappedV", "defaults": {}, "funcname": "TextWrappedV", - "location": "imgui:493", + "location": "imgui:491", "namespace": "ImGui", "ov_cimguiname": "igTextWrappedV", "ret": "void", @@ -16764,9 +17144,9 @@ "cimguiname": "igTreeNode", "defaults": {}, "funcname": "TreeNode", - "location": "imgui:600", + "location": "imgui:602", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeStr", + "ov_cimguiname": "igTreeNode_Str", "ret": "bool", "signature": "(const char*)", "stname": "" @@ -16793,9 +17173,9 @@ "defaults": {}, "funcname": "TreeNode", "isvararg": "...)", - "location": "imgui:601", + "location": "imgui:603", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeStrStr", + "ov_cimguiname": "igTreeNode_StrStr", "ret": "bool", "signature": "(const char*,const char*,...)", "stname": "" @@ -16822,9 +17202,9 @@ "defaults": {}, "funcname": "TreeNode", "isvararg": "...)", - "location": "imgui:602", + "location": "imgui:604", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodePtr", + "ov_cimguiname": "igTreeNode_Ptr", "ret": "bool", "signature": "(const void*,const char*,...)", "stname": "" @@ -16850,9 +17230,9 @@ "flags": "0" }, "funcname": "TreeNodeEx", - "location": "imgui:605", + "location": "imgui:607", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExStr", + "ov_cimguiname": "igTreeNodeEx_Str", "ret": "bool", "signature": "(const char*,ImGuiTreeNodeFlags)", "stname": "" @@ -16883,9 +17263,9 @@ "defaults": {}, "funcname": "TreeNodeEx", "isvararg": "...)", - "location": "imgui:606", + "location": "imgui:608", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExStrStr", + "ov_cimguiname": "igTreeNodeEx_StrStr", "ret": "bool", "signature": "(const char*,ImGuiTreeNodeFlags,const char*,...)", "stname": "" @@ -16916,9 +17296,9 @@ "defaults": {}, "funcname": "TreeNodeEx", "isvararg": "...)", - "location": "imgui:607", + "location": "imgui:609", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExPtr", + "ov_cimguiname": "igTreeNodeEx_Ptr", "ret": "bool", "signature": "(const void*,ImGuiTreeNodeFlags,const char*,...)", "stname": "" @@ -16950,9 +17330,9 @@ "cimguiname": "igTreeNodeExV", "defaults": {}, "funcname": "TreeNodeExV", - "location": "imgui:608", + "location": "imgui:610", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExVStr", + "ov_cimguiname": "igTreeNodeExV_Str", "ret": "bool", "signature": "(const char*,ImGuiTreeNodeFlags,const char*,va_list)", "stname": "" @@ -16982,9 +17362,9 @@ "cimguiname": "igTreeNodeExV", "defaults": {}, "funcname": "TreeNodeExV", - "location": "imgui:609", + "location": "imgui:611", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeExVPtr", + "ov_cimguiname": "igTreeNodeExV_Ptr", "ret": "bool", "signature": "(const void*,ImGuiTreeNodeFlags,const char*,va_list)", "stname": "" @@ -17012,9 +17392,9 @@ "cimguiname": "igTreeNodeV", "defaults": {}, "funcname": "TreeNodeV", - "location": "imgui:603", + "location": "imgui:605", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeVStr", + "ov_cimguiname": "igTreeNodeV_Str", "ret": "bool", "signature": "(const char*,const char*,va_list)", "stname": "" @@ -17040,9 +17420,9 @@ "cimguiname": "igTreeNodeV", "defaults": {}, "funcname": "TreeNodeV", - "location": "imgui:604", + "location": "imgui:606", "namespace": "ImGui", - "ov_cimguiname": "igTreeNodeVPtr", + "ov_cimguiname": "igTreeNodeV_Ptr", "ret": "bool", "signature": "(const void*,const char*,va_list)", "stname": "" @@ -17057,7 +17437,7 @@ "cimguiname": "igTreePop", "defaults": {}, "funcname": "TreePop", - "location": "imgui:612", + "location": "imgui:614", "namespace": "ImGui", "ov_cimguiname": "igTreePop", "ret": "void", @@ -17079,9 +17459,9 @@ "cimguiname": "igTreePush", "defaults": {}, "funcname": "TreePush", - "location": "imgui:610", + "location": "imgui:612", "namespace": "ImGui", - "ov_cimguiname": "igTreePushStr", + "ov_cimguiname": "igTreePush_Str", "ret": "void", "signature": "(const char*)", "stname": "" @@ -17094,16 +17474,14 @@ "type": "const void*" } ], - "argsoriginal": "(const void* ptr_id=((void*)0))", + "argsoriginal": "(const void* ptr_id)", "call_args": "(ptr_id)", "cimguiname": "igTreePush", - "defaults": { - "ptr_id": "NULL" - }, + "defaults": {}, "funcname": "TreePush", - "location": "imgui:611", + "location": "imgui:613", "namespace": "ImGui", - "ov_cimguiname": "igTreePushPtr", + "ov_cimguiname": "igTreePush_Ptr", "ret": "void", "signature": "(const void*)", "stname": "" @@ -17125,7 +17503,7 @@ "indent_w": "0.0f" }, "funcname": "Unindent", - "location": "imgui:446", + "location": "imgui:444", "namespace": "ImGui", "ov_cimguiname": "igUnindent", "ret": "void", @@ -17174,7 +17552,7 @@ "format": "\"%.3f\"" }, "funcname": "VSliderFloat", - "location": "imgui:566", + "location": "imgui:568", "namespace": "ImGui", "ov_cimguiname": "igVSliderFloat", "ret": "bool", @@ -17223,7 +17601,7 @@ "format": "\"%d\"" }, "funcname": "VSliderInt", - "location": "imgui:567", + "location": "imgui:569", "namespace": "ImGui", "ov_cimguiname": "igVSliderInt", "ret": "bool", @@ -17276,7 +17654,7 @@ "format": "NULL" }, "funcname": "VSliderScalar", - "location": "imgui:568", + "location": "imgui:570", "namespace": "ImGui", "ov_cimguiname": "igVSliderScalar", "ret": "bool", @@ -17302,9 +17680,9 @@ "cimguiname": "igValue", "defaults": {}, "funcname": "Value", - "location": "imgui:644", + "location": "imgui:646", "namespace": "ImGui", - "ov_cimguiname": "igValueBool", + "ov_cimguiname": "igValue_Bool", "ret": "void", "signature": "(const char*,bool)", "stname": "" @@ -17326,9 +17704,9 @@ "cimguiname": "igValue", "defaults": {}, "funcname": "Value", - "location": "imgui:645", + "location": "imgui:647", "namespace": "ImGui", - "ov_cimguiname": "igValueInt", + "ov_cimguiname": "igValue_Int", "ret": "void", "signature": "(const char*,int)", "stname": "" @@ -17350,9 +17728,9 @@ "cimguiname": "igValue", "defaults": {}, "funcname": "Value", - "location": "imgui:646", + "location": "imgui:648", "namespace": "ImGui", - "ov_cimguiname": "igValueUint", + "ov_cimguiname": "igValue_Uint", "ret": "void", "signature": "(const char*,unsigned int)", "stname": "" @@ -17380,9 +17758,9 @@ "float_format": "NULL" }, "funcname": "Value", - "location": "imgui:647", + "location": "imgui:649", "namespace": "ImGui", - "ov_cimguiname": "igValueFloat", + "ov_cimguiname": "igValue_Float", "ret": "void", "signature": "(const char*,float,const char*)", "stname": "" diff --git a/imgui-sys/third-party/imgui-master/definitions.lua b/imgui-sys/third-party/imgui-master/definitions.lua index 156c9b218..3e4362277 100644 --- a/imgui-sys/third-party/imgui-master/definitions.lua +++ b/imgui-sys/third-party/imgui-master/definitions.lua @@ -25,7 +25,7 @@ defs["ImColor_HSV"][1]["defaults"] = {} defs["ImColor_HSV"][1]["defaults"]["a"] = "1.0f" defs["ImColor_HSV"][1]["funcname"] = "HSV" defs["ImColor_HSV"][1]["is_static_function"] = true -defs["ImColor_HSV"][1]["location"] = "imgui:2255" +defs["ImColor_HSV"][1]["location"] = "imgui:2360" defs["ImColor_HSV"][1]["nonUDT"] = 1 defs["ImColor_HSV"][1]["ov_cimguiname"] = "ImColor_HSV" defs["ImColor_HSV"][1]["ret"] = "void" @@ -42,99 +42,99 @@ defs["ImColor_ImColor"][1]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][1]["constructor"] = true defs["ImColor_ImColor"][1]["defaults"] = {} defs["ImColor_ImColor"][1]["funcname"] = "ImColor" -defs["ImColor_ImColor"][1]["location"] = "imgui:2245" -defs["ImColor_ImColor"][1]["ov_cimguiname"] = "ImColor_ImColorNil" +defs["ImColor_ImColor"][1]["location"] = "imgui:2350" +defs["ImColor_ImColor"][1]["ov_cimguiname"] = "ImColor_ImColor_Nil" defs["ImColor_ImColor"][1]["signature"] = "()" defs["ImColor_ImColor"][1]["stname"] = "ImColor" defs["ImColor_ImColor"][2] = {} -defs["ImColor_ImColor"][2]["args"] = "(int r,int g,int b,int a)" +defs["ImColor_ImColor"][2]["args"] = "(float r,float g,float b,float a)" defs["ImColor_ImColor"][2]["argsT"] = {} defs["ImColor_ImColor"][2]["argsT"][1] = {} defs["ImColor_ImColor"][2]["argsT"][1]["name"] = "r" -defs["ImColor_ImColor"][2]["argsT"][1]["type"] = "int" +defs["ImColor_ImColor"][2]["argsT"][1]["type"] = "float" defs["ImColor_ImColor"][2]["argsT"][2] = {} defs["ImColor_ImColor"][2]["argsT"][2]["name"] = "g" -defs["ImColor_ImColor"][2]["argsT"][2]["type"] = "int" +defs["ImColor_ImColor"][2]["argsT"][2]["type"] = "float" defs["ImColor_ImColor"][2]["argsT"][3] = {} defs["ImColor_ImColor"][2]["argsT"][3]["name"] = "b" -defs["ImColor_ImColor"][2]["argsT"][3]["type"] = "int" +defs["ImColor_ImColor"][2]["argsT"][3]["type"] = "float" defs["ImColor_ImColor"][2]["argsT"][4] = {} defs["ImColor_ImColor"][2]["argsT"][4]["name"] = "a" -defs["ImColor_ImColor"][2]["argsT"][4]["type"] = "int" -defs["ImColor_ImColor"][2]["argsoriginal"] = "(int r,int g,int b,int a=255)" +defs["ImColor_ImColor"][2]["argsT"][4]["type"] = "float" +defs["ImColor_ImColor"][2]["argsoriginal"] = "(float r,float g,float b,float a=1.0f)" defs["ImColor_ImColor"][2]["call_args"] = "(r,g,b,a)" defs["ImColor_ImColor"][2]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][2]["constructor"] = true defs["ImColor_ImColor"][2]["defaults"] = {} -defs["ImColor_ImColor"][2]["defaults"]["a"] = "255" +defs["ImColor_ImColor"][2]["defaults"]["a"] = "1.0f" defs["ImColor_ImColor"][2]["funcname"] = "ImColor" -defs["ImColor_ImColor"][2]["location"] = "imgui:2246" -defs["ImColor_ImColor"][2]["ov_cimguiname"] = "ImColor_ImColorInt" -defs["ImColor_ImColor"][2]["signature"] = "(int,int,int,int)" +defs["ImColor_ImColor"][2]["location"] = "imgui:2351" +defs["ImColor_ImColor"][2]["ov_cimguiname"] = "ImColor_ImColor_Float" +defs["ImColor_ImColor"][2]["signature"] = "(float,float,float,float)" defs["ImColor_ImColor"][2]["stname"] = "ImColor" defs["ImColor_ImColor"][3] = {} -defs["ImColor_ImColor"][3]["args"] = "(ImU32 rgba)" +defs["ImColor_ImColor"][3]["args"] = "(const ImVec4 col)" defs["ImColor_ImColor"][3]["argsT"] = {} defs["ImColor_ImColor"][3]["argsT"][1] = {} -defs["ImColor_ImColor"][3]["argsT"][1]["name"] = "rgba" -defs["ImColor_ImColor"][3]["argsT"][1]["type"] = "ImU32" -defs["ImColor_ImColor"][3]["argsoriginal"] = "(ImU32 rgba)" -defs["ImColor_ImColor"][3]["call_args"] = "(rgba)" +defs["ImColor_ImColor"][3]["argsT"][1]["name"] = "col" +defs["ImColor_ImColor"][3]["argsT"][1]["type"] = "const ImVec4" +defs["ImColor_ImColor"][3]["argsoriginal"] = "(const ImVec4& col)" +defs["ImColor_ImColor"][3]["call_args"] = "(col)" defs["ImColor_ImColor"][3]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][3]["constructor"] = true defs["ImColor_ImColor"][3]["defaults"] = {} defs["ImColor_ImColor"][3]["funcname"] = "ImColor" -defs["ImColor_ImColor"][3]["location"] = "imgui:2247" -defs["ImColor_ImColor"][3]["ov_cimguiname"] = "ImColor_ImColorU32" -defs["ImColor_ImColor"][3]["signature"] = "(ImU32)" +defs["ImColor_ImColor"][3]["location"] = "imgui:2352" +defs["ImColor_ImColor"][3]["ov_cimguiname"] = "ImColor_ImColor_Vec4" +defs["ImColor_ImColor"][3]["signature"] = "(const ImVec4)" defs["ImColor_ImColor"][3]["stname"] = "ImColor" defs["ImColor_ImColor"][4] = {} -defs["ImColor_ImColor"][4]["args"] = "(float r,float g,float b,float a)" +defs["ImColor_ImColor"][4]["args"] = "(int r,int g,int b,int a)" defs["ImColor_ImColor"][4]["argsT"] = {} defs["ImColor_ImColor"][4]["argsT"][1] = {} defs["ImColor_ImColor"][4]["argsT"][1]["name"] = "r" -defs["ImColor_ImColor"][4]["argsT"][1]["type"] = "float" +defs["ImColor_ImColor"][4]["argsT"][1]["type"] = "int" defs["ImColor_ImColor"][4]["argsT"][2] = {} defs["ImColor_ImColor"][4]["argsT"][2]["name"] = "g" -defs["ImColor_ImColor"][4]["argsT"][2]["type"] = "float" +defs["ImColor_ImColor"][4]["argsT"][2]["type"] = "int" defs["ImColor_ImColor"][4]["argsT"][3] = {} defs["ImColor_ImColor"][4]["argsT"][3]["name"] = "b" -defs["ImColor_ImColor"][4]["argsT"][3]["type"] = "float" +defs["ImColor_ImColor"][4]["argsT"][3]["type"] = "int" defs["ImColor_ImColor"][4]["argsT"][4] = {} defs["ImColor_ImColor"][4]["argsT"][4]["name"] = "a" -defs["ImColor_ImColor"][4]["argsT"][4]["type"] = "float" -defs["ImColor_ImColor"][4]["argsoriginal"] = "(float r,float g,float b,float a=1.0f)" +defs["ImColor_ImColor"][4]["argsT"][4]["type"] = "int" +defs["ImColor_ImColor"][4]["argsoriginal"] = "(int r,int g,int b,int a=255)" defs["ImColor_ImColor"][4]["call_args"] = "(r,g,b,a)" defs["ImColor_ImColor"][4]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][4]["constructor"] = true defs["ImColor_ImColor"][4]["defaults"] = {} -defs["ImColor_ImColor"][4]["defaults"]["a"] = "1.0f" +defs["ImColor_ImColor"][4]["defaults"]["a"] = "255" defs["ImColor_ImColor"][4]["funcname"] = "ImColor" -defs["ImColor_ImColor"][4]["location"] = "imgui:2248" -defs["ImColor_ImColor"][4]["ov_cimguiname"] = "ImColor_ImColorFloat" -defs["ImColor_ImColor"][4]["signature"] = "(float,float,float,float)" +defs["ImColor_ImColor"][4]["location"] = "imgui:2353" +defs["ImColor_ImColor"][4]["ov_cimguiname"] = "ImColor_ImColor_Int" +defs["ImColor_ImColor"][4]["signature"] = "(int,int,int,int)" defs["ImColor_ImColor"][4]["stname"] = "ImColor" defs["ImColor_ImColor"][5] = {} -defs["ImColor_ImColor"][5]["args"] = "(const ImVec4 col)" +defs["ImColor_ImColor"][5]["args"] = "(ImU32 rgba)" defs["ImColor_ImColor"][5]["argsT"] = {} defs["ImColor_ImColor"][5]["argsT"][1] = {} -defs["ImColor_ImColor"][5]["argsT"][1]["name"] = "col" -defs["ImColor_ImColor"][5]["argsT"][1]["type"] = "const ImVec4" -defs["ImColor_ImColor"][5]["argsoriginal"] = "(const ImVec4& col)" -defs["ImColor_ImColor"][5]["call_args"] = "(col)" +defs["ImColor_ImColor"][5]["argsT"][1]["name"] = "rgba" +defs["ImColor_ImColor"][5]["argsT"][1]["type"] = "ImU32" +defs["ImColor_ImColor"][5]["argsoriginal"] = "(ImU32 rgba)" +defs["ImColor_ImColor"][5]["call_args"] = "(rgba)" defs["ImColor_ImColor"][5]["cimguiname"] = "ImColor_ImColor" defs["ImColor_ImColor"][5]["constructor"] = true defs["ImColor_ImColor"][5]["defaults"] = {} defs["ImColor_ImColor"][5]["funcname"] = "ImColor" -defs["ImColor_ImColor"][5]["location"] = "imgui:2249" -defs["ImColor_ImColor"][5]["ov_cimguiname"] = "ImColor_ImColorVec4" -defs["ImColor_ImColor"][5]["signature"] = "(const ImVec4)" +defs["ImColor_ImColor"][5]["location"] = "imgui:2354" +defs["ImColor_ImColor"][5]["ov_cimguiname"] = "ImColor_ImColor_U32" +defs["ImColor_ImColor"][5]["signature"] = "(ImU32)" defs["ImColor_ImColor"][5]["stname"] = "ImColor" defs["ImColor_ImColor"]["()"] = defs["ImColor_ImColor"][1] -defs["ImColor_ImColor"]["(ImU32)"] = defs["ImColor_ImColor"][3] -defs["ImColor_ImColor"]["(const ImVec4)"] = defs["ImColor_ImColor"][5] -defs["ImColor_ImColor"]["(float,float,float,float)"] = defs["ImColor_ImColor"][4] -defs["ImColor_ImColor"]["(int,int,int,int)"] = defs["ImColor_ImColor"][2] +defs["ImColor_ImColor"]["(ImU32)"] = defs["ImColor_ImColor"][5] +defs["ImColor_ImColor"]["(const ImVec4)"] = defs["ImColor_ImColor"][3] +defs["ImColor_ImColor"]["(float,float,float,float)"] = defs["ImColor_ImColor"][2] +defs["ImColor_ImColor"]["(int,int,int,int)"] = defs["ImColor_ImColor"][4] defs["ImColor_SetHSV"] = {} defs["ImColor_SetHSV"][1] = {} defs["ImColor_SetHSV"][1]["args"] = "(ImColor* self,float h,float s,float v,float a)" @@ -160,7 +160,7 @@ defs["ImColor_SetHSV"][1]["cimguiname"] = "ImColor_SetHSV" defs["ImColor_SetHSV"][1]["defaults"] = {} defs["ImColor_SetHSV"][1]["defaults"]["a"] = "1.0f" defs["ImColor_SetHSV"][1]["funcname"] = "SetHSV" -defs["ImColor_SetHSV"][1]["location"] = "imgui:2254" +defs["ImColor_SetHSV"][1]["location"] = "imgui:2359" defs["ImColor_SetHSV"][1]["ov_cimguiname"] = "ImColor_SetHSV" defs["ImColor_SetHSV"][1]["ret"] = "void" defs["ImColor_SetHSV"][1]["signature"] = "(float,float,float,float)" @@ -194,7 +194,7 @@ defs["ImDrawCmd_GetTexID"][1]["call_args"] = "()" defs["ImDrawCmd_GetTexID"][1]["cimguiname"] = "ImDrawCmd_GetTexID" defs["ImDrawCmd_GetTexID"][1]["defaults"] = {} defs["ImDrawCmd_GetTexID"][1]["funcname"] = "GetTexID" -defs["ImDrawCmd_GetTexID"][1]["location"] = "imgui:2303" +defs["ImDrawCmd_GetTexID"][1]["location"] = "imgui:2408" defs["ImDrawCmd_GetTexID"][1]["ov_cimguiname"] = "ImDrawCmd_GetTexID" defs["ImDrawCmd_GetTexID"][1]["ret"] = "ImTextureID" defs["ImDrawCmd_GetTexID"][1]["signature"] = "()const" @@ -210,7 +210,7 @@ defs["ImDrawCmd_ImDrawCmd"][1]["cimguiname"] = "ImDrawCmd_ImDrawCmd" defs["ImDrawCmd_ImDrawCmd"][1]["constructor"] = true defs["ImDrawCmd_ImDrawCmd"][1]["defaults"] = {} defs["ImDrawCmd_ImDrawCmd"][1]["funcname"] = "ImDrawCmd" -defs["ImDrawCmd_ImDrawCmd"][1]["location"] = "imgui:2300" +defs["ImDrawCmd_ImDrawCmd"][1]["location"] = "imgui:2405" defs["ImDrawCmd_ImDrawCmd"][1]["ov_cimguiname"] = "ImDrawCmd_ImDrawCmd" defs["ImDrawCmd_ImDrawCmd"][1]["signature"] = "()" defs["ImDrawCmd_ImDrawCmd"][1]["stname"] = "ImDrawCmd" @@ -243,7 +243,7 @@ defs["ImDrawData_Clear"][1]["call_args"] = "()" defs["ImDrawData_Clear"][1]["cimguiname"] = "ImDrawData_Clear" defs["ImDrawData_Clear"][1]["defaults"] = {} defs["ImDrawData_Clear"][1]["funcname"] = "Clear" -defs["ImDrawData_Clear"][1]["location"] = "imgui:2534" +defs["ImDrawData_Clear"][1]["location"] = "imgui:2641" defs["ImDrawData_Clear"][1]["ov_cimguiname"] = "ImDrawData_Clear" defs["ImDrawData_Clear"][1]["ret"] = "void" defs["ImDrawData_Clear"][1]["signature"] = "()" @@ -261,7 +261,7 @@ defs["ImDrawData_DeIndexAllBuffers"][1]["call_args"] = "()" defs["ImDrawData_DeIndexAllBuffers"][1]["cimguiname"] = "ImDrawData_DeIndexAllBuffers" defs["ImDrawData_DeIndexAllBuffers"][1]["defaults"] = {} defs["ImDrawData_DeIndexAllBuffers"][1]["funcname"] = "DeIndexAllBuffers" -defs["ImDrawData_DeIndexAllBuffers"][1]["location"] = "imgui:2535" +defs["ImDrawData_DeIndexAllBuffers"][1]["location"] = "imgui:2642" defs["ImDrawData_DeIndexAllBuffers"][1]["ov_cimguiname"] = "ImDrawData_DeIndexAllBuffers" defs["ImDrawData_DeIndexAllBuffers"][1]["ret"] = "void" defs["ImDrawData_DeIndexAllBuffers"][1]["signature"] = "()" @@ -277,7 +277,7 @@ defs["ImDrawData_ImDrawData"][1]["cimguiname"] = "ImDrawData_ImDrawData" defs["ImDrawData_ImDrawData"][1]["constructor"] = true defs["ImDrawData_ImDrawData"][1]["defaults"] = {} defs["ImDrawData_ImDrawData"][1]["funcname"] = "ImDrawData" -defs["ImDrawData_ImDrawData"][1]["location"] = "imgui:2533" +defs["ImDrawData_ImDrawData"][1]["location"] = "imgui:2640" defs["ImDrawData_ImDrawData"][1]["ov_cimguiname"] = "ImDrawData_ImDrawData" defs["ImDrawData_ImDrawData"][1]["signature"] = "()" defs["ImDrawData_ImDrawData"][1]["stname"] = "ImDrawData" @@ -297,7 +297,7 @@ defs["ImDrawData_ScaleClipRects"][1]["call_args"] = "(fb_scale)" defs["ImDrawData_ScaleClipRects"][1]["cimguiname"] = "ImDrawData_ScaleClipRects" defs["ImDrawData_ScaleClipRects"][1]["defaults"] = {} defs["ImDrawData_ScaleClipRects"][1]["funcname"] = "ScaleClipRects" -defs["ImDrawData_ScaleClipRects"][1]["location"] = "imgui:2536" +defs["ImDrawData_ScaleClipRects"][1]["location"] = "imgui:2643" defs["ImDrawData_ScaleClipRects"][1]["ov_cimguiname"] = "ImDrawData_ScaleClipRects" defs["ImDrawData_ScaleClipRects"][1]["ret"] = "void" defs["ImDrawData_ScaleClipRects"][1]["signature"] = "(const ImVec2)" @@ -331,7 +331,7 @@ defs["ImDrawListSplitter_Clear"][1]["call_args"] = "()" defs["ImDrawListSplitter_Clear"][1]["cimguiname"] = "ImDrawListSplitter_Clear" defs["ImDrawListSplitter_Clear"][1]["defaults"] = {} defs["ImDrawListSplitter_Clear"][1]["funcname"] = "Clear" -defs["ImDrawListSplitter_Clear"][1]["location"] = "imgui:2348" +defs["ImDrawListSplitter_Clear"][1]["location"] = "imgui:2453" defs["ImDrawListSplitter_Clear"][1]["ov_cimguiname"] = "ImDrawListSplitter_Clear" defs["ImDrawListSplitter_Clear"][1]["ret"] = "void" defs["ImDrawListSplitter_Clear"][1]["signature"] = "()" @@ -349,7 +349,7 @@ defs["ImDrawListSplitter_ClearFreeMemory"][1]["call_args"] = "()" defs["ImDrawListSplitter_ClearFreeMemory"][1]["cimguiname"] = "ImDrawListSplitter_ClearFreeMemory" defs["ImDrawListSplitter_ClearFreeMemory"][1]["defaults"] = {} defs["ImDrawListSplitter_ClearFreeMemory"][1]["funcname"] = "ClearFreeMemory" -defs["ImDrawListSplitter_ClearFreeMemory"][1]["location"] = "imgui:2349" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["location"] = "imgui:2454" defs["ImDrawListSplitter_ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawListSplitter_ClearFreeMemory" defs["ImDrawListSplitter_ClearFreeMemory"][1]["ret"] = "void" defs["ImDrawListSplitter_ClearFreeMemory"][1]["signature"] = "()" @@ -365,7 +365,7 @@ defs["ImDrawListSplitter_ImDrawListSplitter"][1]["cimguiname"] = "ImDrawListSpli defs["ImDrawListSplitter_ImDrawListSplitter"][1]["constructor"] = true defs["ImDrawListSplitter_ImDrawListSplitter"][1]["defaults"] = {} defs["ImDrawListSplitter_ImDrawListSplitter"][1]["funcname"] = "ImDrawListSplitter" -defs["ImDrawListSplitter_ImDrawListSplitter"][1]["location"] = "imgui:2346" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["location"] = "imgui:2451" defs["ImDrawListSplitter_ImDrawListSplitter"][1]["ov_cimguiname"] = "ImDrawListSplitter_ImDrawListSplitter" defs["ImDrawListSplitter_ImDrawListSplitter"][1]["signature"] = "()" defs["ImDrawListSplitter_ImDrawListSplitter"][1]["stname"] = "ImDrawListSplitter" @@ -385,7 +385,7 @@ defs["ImDrawListSplitter_Merge"][1]["call_args"] = "(draw_list)" defs["ImDrawListSplitter_Merge"][1]["cimguiname"] = "ImDrawListSplitter_Merge" defs["ImDrawListSplitter_Merge"][1]["defaults"] = {} defs["ImDrawListSplitter_Merge"][1]["funcname"] = "Merge" -defs["ImDrawListSplitter_Merge"][1]["location"] = "imgui:2351" +defs["ImDrawListSplitter_Merge"][1]["location"] = "imgui:2456" defs["ImDrawListSplitter_Merge"][1]["ov_cimguiname"] = "ImDrawListSplitter_Merge" defs["ImDrawListSplitter_Merge"][1]["ret"] = "void" defs["ImDrawListSplitter_Merge"][1]["signature"] = "(ImDrawList*)" @@ -409,7 +409,7 @@ defs["ImDrawListSplitter_SetCurrentChannel"][1]["call_args"] = "(draw_list,chann defs["ImDrawListSplitter_SetCurrentChannel"][1]["cimguiname"] = "ImDrawListSplitter_SetCurrentChannel" defs["ImDrawListSplitter_SetCurrentChannel"][1]["defaults"] = {} defs["ImDrawListSplitter_SetCurrentChannel"][1]["funcname"] = "SetCurrentChannel" -defs["ImDrawListSplitter_SetCurrentChannel"][1]["location"] = "imgui:2352" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["location"] = "imgui:2457" defs["ImDrawListSplitter_SetCurrentChannel"][1]["ov_cimguiname"] = "ImDrawListSplitter_SetCurrentChannel" defs["ImDrawListSplitter_SetCurrentChannel"][1]["ret"] = "void" defs["ImDrawListSplitter_SetCurrentChannel"][1]["signature"] = "(ImDrawList*,int)" @@ -433,7 +433,7 @@ defs["ImDrawListSplitter_Split"][1]["call_args"] = "(draw_list,count)" defs["ImDrawListSplitter_Split"][1]["cimguiname"] = "ImDrawListSplitter_Split" defs["ImDrawListSplitter_Split"][1]["defaults"] = {} defs["ImDrawListSplitter_Split"][1]["funcname"] = "Split" -defs["ImDrawListSplitter_Split"][1]["location"] = "imgui:2350" +defs["ImDrawListSplitter_Split"][1]["location"] = "imgui:2455" defs["ImDrawListSplitter_Split"][1]["ov_cimguiname"] = "ImDrawListSplitter_Split" defs["ImDrawListSplitter_Split"][1]["ret"] = "void" defs["ImDrawListSplitter_Split"][1]["signature"] = "(ImDrawList*,int)" @@ -450,7 +450,7 @@ defs["ImDrawListSplitter_destroy"][1]["call_args"] = "(self)" defs["ImDrawListSplitter_destroy"][1]["cimguiname"] = "ImDrawListSplitter_destroy" defs["ImDrawListSplitter_destroy"][1]["defaults"] = {} defs["ImDrawListSplitter_destroy"][1]["destructor"] = true -defs["ImDrawListSplitter_destroy"][1]["location"] = "imgui:2347" +defs["ImDrawListSplitter_destroy"][1]["location"] = "imgui:2452" defs["ImDrawListSplitter_destroy"][1]["ov_cimguiname"] = "ImDrawListSplitter_destroy" defs["ImDrawListSplitter_destroy"][1]["realdestructor"] = true defs["ImDrawListSplitter_destroy"][1]["ret"] = "void" @@ -491,7 +491,7 @@ defs["ImDrawList_AddBezierCubic"][1]["cimguiname"] = "ImDrawList_AddBezierCubic" defs["ImDrawList_AddBezierCubic"][1]["defaults"] = {} defs["ImDrawList_AddBezierCubic"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_AddBezierCubic"][1]["funcname"] = "AddBezierCubic" -defs["ImDrawList_AddBezierCubic"][1]["location"] = "imgui:2450" +defs["ImDrawList_AddBezierCubic"][1]["location"] = "imgui:2556" defs["ImDrawList_AddBezierCubic"][1]["ov_cimguiname"] = "ImDrawList_AddBezierCubic" defs["ImDrawList_AddBezierCubic"][1]["ret"] = "void" defs["ImDrawList_AddBezierCubic"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)" @@ -528,7 +528,7 @@ defs["ImDrawList_AddBezierQuadratic"][1]["cimguiname"] = "ImDrawList_AddBezierQu defs["ImDrawList_AddBezierQuadratic"][1]["defaults"] = {} defs["ImDrawList_AddBezierQuadratic"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_AddBezierQuadratic"][1]["funcname"] = "AddBezierQuadratic" -defs["ImDrawList_AddBezierQuadratic"][1]["location"] = "imgui:2451" +defs["ImDrawList_AddBezierQuadratic"][1]["location"] = "imgui:2557" defs["ImDrawList_AddBezierQuadratic"][1]["ov_cimguiname"] = "ImDrawList_AddBezierQuadratic" defs["ImDrawList_AddBezierQuadratic"][1]["ret"] = "void" defs["ImDrawList_AddBezierQuadratic"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)" @@ -552,7 +552,7 @@ defs["ImDrawList_AddCallback"][1]["call_args"] = "(callback,callback_data)" defs["ImDrawList_AddCallback"][1]["cimguiname"] = "ImDrawList_AddCallback" defs["ImDrawList_AddCallback"][1]["defaults"] = {} defs["ImDrawList_AddCallback"][1]["funcname"] = "AddCallback" -defs["ImDrawList_AddCallback"][1]["location"] = "imgui:2474" +defs["ImDrawList_AddCallback"][1]["location"] = "imgui:2581" defs["ImDrawList_AddCallback"][1]["ov_cimguiname"] = "ImDrawList_AddCallback" defs["ImDrawList_AddCallback"][1]["ret"] = "void" defs["ImDrawList_AddCallback"][1]["signature"] = "(ImDrawCallback,void*)" @@ -587,7 +587,7 @@ defs["ImDrawList_AddCircle"][1]["defaults"] = {} defs["ImDrawList_AddCircle"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_AddCircle"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddCircle"][1]["funcname"] = "AddCircle" -defs["ImDrawList_AddCircle"][1]["location"] = "imgui:2442" +defs["ImDrawList_AddCircle"][1]["location"] = "imgui:2548" defs["ImDrawList_AddCircle"][1]["ov_cimguiname"] = "ImDrawList_AddCircle" defs["ImDrawList_AddCircle"][1]["ret"] = "void" defs["ImDrawList_AddCircle"][1]["signature"] = "(const ImVec2,float,ImU32,int,float)" @@ -618,7 +618,7 @@ defs["ImDrawList_AddCircleFilled"][1]["cimguiname"] = "ImDrawList_AddCircleFille defs["ImDrawList_AddCircleFilled"][1]["defaults"] = {} defs["ImDrawList_AddCircleFilled"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_AddCircleFilled"][1]["funcname"] = "AddCircleFilled" -defs["ImDrawList_AddCircleFilled"][1]["location"] = "imgui:2443" +defs["ImDrawList_AddCircleFilled"][1]["location"] = "imgui:2549" defs["ImDrawList_AddCircleFilled"][1]["ov_cimguiname"] = "ImDrawList_AddCircleFilled" defs["ImDrawList_AddCircleFilled"][1]["ret"] = "void" defs["ImDrawList_AddCircleFilled"][1]["signature"] = "(const ImVec2,float,ImU32,int)" @@ -645,7 +645,7 @@ defs["ImDrawList_AddConvexPolyFilled"][1]["call_args"] = "(points,num_points,col defs["ImDrawList_AddConvexPolyFilled"][1]["cimguiname"] = "ImDrawList_AddConvexPolyFilled" defs["ImDrawList_AddConvexPolyFilled"][1]["defaults"] = {} defs["ImDrawList_AddConvexPolyFilled"][1]["funcname"] = "AddConvexPolyFilled" -defs["ImDrawList_AddConvexPolyFilled"][1]["location"] = "imgui:2449" +defs["ImDrawList_AddConvexPolyFilled"][1]["location"] = "imgui:2555" defs["ImDrawList_AddConvexPolyFilled"][1]["ov_cimguiname"] = "ImDrawList_AddConvexPolyFilled" defs["ImDrawList_AddConvexPolyFilled"][1]["ret"] = "void" defs["ImDrawList_AddConvexPolyFilled"][1]["signature"] = "(const ImVec2*,int,ImU32)" @@ -663,7 +663,7 @@ defs["ImDrawList_AddDrawCmd"][1]["call_args"] = "()" defs["ImDrawList_AddDrawCmd"][1]["cimguiname"] = "ImDrawList_AddDrawCmd" defs["ImDrawList_AddDrawCmd"][1]["defaults"] = {} defs["ImDrawList_AddDrawCmd"][1]["funcname"] = "AddDrawCmd" -defs["ImDrawList_AddDrawCmd"][1]["location"] = "imgui:2475" +defs["ImDrawList_AddDrawCmd"][1]["location"] = "imgui:2582" defs["ImDrawList_AddDrawCmd"][1]["ov_cimguiname"] = "ImDrawList_AddDrawCmd" defs["ImDrawList_AddDrawCmd"][1]["ret"] = "void" defs["ImDrawList_AddDrawCmd"][1]["signature"] = "()" @@ -702,7 +702,7 @@ defs["ImDrawList_AddImage"][1]["defaults"]["col"] = "4294967295" defs["ImDrawList_AddImage"][1]["defaults"]["uv_max"] = "ImVec2(1,1)" defs["ImDrawList_AddImage"][1]["defaults"]["uv_min"] = "ImVec2(0,0)" defs["ImDrawList_AddImage"][1]["funcname"] = "AddImage" -defs["ImDrawList_AddImage"][1]["location"] = "imgui:2457" +defs["ImDrawList_AddImage"][1]["location"] = "imgui:2563" defs["ImDrawList_AddImage"][1]["ov_cimguiname"] = "ImDrawList_AddImage" defs["ImDrawList_AddImage"][1]["ret"] = "void" defs["ImDrawList_AddImage"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -755,7 +755,7 @@ defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv2"] = "ImVec2(1,0)" defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv3"] = "ImVec2(1,1)" defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv4"] = "ImVec2(0,1)" defs["ImDrawList_AddImageQuad"][1]["funcname"] = "AddImageQuad" -defs["ImDrawList_AddImageQuad"][1]["location"] = "imgui:2458" +defs["ImDrawList_AddImageQuad"][1]["location"] = "imgui:2564" defs["ImDrawList_AddImageQuad"][1]["ov_cimguiname"] = "ImDrawList_AddImageQuad" defs["ImDrawList_AddImageQuad"][1]["ret"] = "void" defs["ImDrawList_AddImageQuad"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -798,7 +798,7 @@ defs["ImDrawList_AddImageRounded"][1]["cimguiname"] = "ImDrawList_AddImageRounde defs["ImDrawList_AddImageRounded"][1]["defaults"] = {} defs["ImDrawList_AddImageRounded"][1]["defaults"]["flags"] = "0" defs["ImDrawList_AddImageRounded"][1]["funcname"] = "AddImageRounded" -defs["ImDrawList_AddImageRounded"][1]["location"] = "imgui:2459" +defs["ImDrawList_AddImageRounded"][1]["location"] = "imgui:2565" defs["ImDrawList_AddImageRounded"][1]["ov_cimguiname"] = "ImDrawList_AddImageRounded" defs["ImDrawList_AddImageRounded"][1]["ret"] = "void" defs["ImDrawList_AddImageRounded"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)" @@ -829,7 +829,7 @@ defs["ImDrawList_AddLine"][1]["cimguiname"] = "ImDrawList_AddLine" defs["ImDrawList_AddLine"][1]["defaults"] = {} defs["ImDrawList_AddLine"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddLine"][1]["funcname"] = "AddLine" -defs["ImDrawList_AddLine"][1]["location"] = "imgui:2434" +defs["ImDrawList_AddLine"][1]["location"] = "imgui:2540" defs["ImDrawList_AddLine"][1]["ov_cimguiname"] = "ImDrawList_AddLine" defs["ImDrawList_AddLine"][1]["ret"] = "void" defs["ImDrawList_AddLine"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float)" @@ -863,7 +863,7 @@ defs["ImDrawList_AddNgon"][1]["cimguiname"] = "ImDrawList_AddNgon" defs["ImDrawList_AddNgon"][1]["defaults"] = {} defs["ImDrawList_AddNgon"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddNgon"][1]["funcname"] = "AddNgon" -defs["ImDrawList_AddNgon"][1]["location"] = "imgui:2444" +defs["ImDrawList_AddNgon"][1]["location"] = "imgui:2550" defs["ImDrawList_AddNgon"][1]["ov_cimguiname"] = "ImDrawList_AddNgon" defs["ImDrawList_AddNgon"][1]["ret"] = "void" defs["ImDrawList_AddNgon"][1]["signature"] = "(const ImVec2,float,ImU32,int,float)" @@ -893,7 +893,7 @@ defs["ImDrawList_AddNgonFilled"][1]["call_args"] = "(center,radius,col,num_segme defs["ImDrawList_AddNgonFilled"][1]["cimguiname"] = "ImDrawList_AddNgonFilled" defs["ImDrawList_AddNgonFilled"][1]["defaults"] = {} defs["ImDrawList_AddNgonFilled"][1]["funcname"] = "AddNgonFilled" -defs["ImDrawList_AddNgonFilled"][1]["location"] = "imgui:2445" +defs["ImDrawList_AddNgonFilled"][1]["location"] = "imgui:2551" defs["ImDrawList_AddNgonFilled"][1]["ov_cimguiname"] = "ImDrawList_AddNgonFilled" defs["ImDrawList_AddNgonFilled"][1]["ret"] = "void" defs["ImDrawList_AddNgonFilled"][1]["signature"] = "(const ImVec2,float,ImU32,int)" @@ -926,7 +926,7 @@ defs["ImDrawList_AddPolyline"][1]["call_args"] = "(points,num_points,col,flags,t defs["ImDrawList_AddPolyline"][1]["cimguiname"] = "ImDrawList_AddPolyline" defs["ImDrawList_AddPolyline"][1]["defaults"] = {} defs["ImDrawList_AddPolyline"][1]["funcname"] = "AddPolyline" -defs["ImDrawList_AddPolyline"][1]["location"] = "imgui:2448" +defs["ImDrawList_AddPolyline"][1]["location"] = "imgui:2554" defs["ImDrawList_AddPolyline"][1]["ov_cimguiname"] = "ImDrawList_AddPolyline" defs["ImDrawList_AddPolyline"][1]["ret"] = "void" defs["ImDrawList_AddPolyline"][1]["signature"] = "(const ImVec2*,int,ImU32,ImDrawFlags,float)" @@ -963,7 +963,7 @@ defs["ImDrawList_AddQuad"][1]["cimguiname"] = "ImDrawList_AddQuad" defs["ImDrawList_AddQuad"][1]["defaults"] = {} defs["ImDrawList_AddQuad"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddQuad"][1]["funcname"] = "AddQuad" -defs["ImDrawList_AddQuad"][1]["location"] = "imgui:2438" +defs["ImDrawList_AddQuad"][1]["location"] = "imgui:2544" defs["ImDrawList_AddQuad"][1]["ov_cimguiname"] = "ImDrawList_AddQuad" defs["ImDrawList_AddQuad"][1]["ret"] = "void" defs["ImDrawList_AddQuad"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)" @@ -996,7 +996,7 @@ defs["ImDrawList_AddQuadFilled"][1]["call_args"] = "(p1,p2,p3,p4,col)" defs["ImDrawList_AddQuadFilled"][1]["cimguiname"] = "ImDrawList_AddQuadFilled" defs["ImDrawList_AddQuadFilled"][1]["defaults"] = {} defs["ImDrawList_AddQuadFilled"][1]["funcname"] = "AddQuadFilled" -defs["ImDrawList_AddQuadFilled"][1]["location"] = "imgui:2439" +defs["ImDrawList_AddQuadFilled"][1]["location"] = "imgui:2545" defs["ImDrawList_AddQuadFilled"][1]["ov_cimguiname"] = "ImDrawList_AddQuadFilled" defs["ImDrawList_AddQuadFilled"][1]["ret"] = "void" defs["ImDrawList_AddQuadFilled"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -1035,7 +1035,7 @@ defs["ImDrawList_AddRect"][1]["defaults"]["flags"] = "0" defs["ImDrawList_AddRect"][1]["defaults"]["rounding"] = "0.0f" defs["ImDrawList_AddRect"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddRect"][1]["funcname"] = "AddRect" -defs["ImDrawList_AddRect"][1]["location"] = "imgui:2435" +defs["ImDrawList_AddRect"][1]["location"] = "imgui:2541" defs["ImDrawList_AddRect"][1]["ov_cimguiname"] = "ImDrawList_AddRect" defs["ImDrawList_AddRect"][1]["ret"] = "void" defs["ImDrawList_AddRect"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)" @@ -1070,7 +1070,7 @@ defs["ImDrawList_AddRectFilled"][1]["defaults"] = {} defs["ImDrawList_AddRectFilled"][1]["defaults"]["flags"] = "0" defs["ImDrawList_AddRectFilled"][1]["defaults"]["rounding"] = "0.0f" defs["ImDrawList_AddRectFilled"][1]["funcname"] = "AddRectFilled" -defs["ImDrawList_AddRectFilled"][1]["location"] = "imgui:2436" +defs["ImDrawList_AddRectFilled"][1]["location"] = "imgui:2542" defs["ImDrawList_AddRectFilled"][1]["ov_cimguiname"] = "ImDrawList_AddRectFilled" defs["ImDrawList_AddRectFilled"][1]["ret"] = "void" defs["ImDrawList_AddRectFilled"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)" @@ -1106,7 +1106,7 @@ defs["ImDrawList_AddRectFilledMultiColor"][1]["call_args"] = "(p_min,p_max,col_u defs["ImDrawList_AddRectFilledMultiColor"][1]["cimguiname"] = "ImDrawList_AddRectFilledMultiColor" defs["ImDrawList_AddRectFilledMultiColor"][1]["defaults"] = {} defs["ImDrawList_AddRectFilledMultiColor"][1]["funcname"] = "AddRectFilledMultiColor" -defs["ImDrawList_AddRectFilledMultiColor"][1]["location"] = "imgui:2437" +defs["ImDrawList_AddRectFilledMultiColor"][1]["location"] = "imgui:2543" defs["ImDrawList_AddRectFilledMultiColor"][1]["ov_cimguiname"] = "ImDrawList_AddRectFilledMultiColor" defs["ImDrawList_AddRectFilledMultiColor"][1]["ret"] = "void" defs["ImDrawList_AddRectFilledMultiColor"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)" @@ -1137,8 +1137,8 @@ defs["ImDrawList_AddText"][1]["cimguiname"] = "ImDrawList_AddText" defs["ImDrawList_AddText"][1]["defaults"] = {} defs["ImDrawList_AddText"][1]["defaults"]["text_end"] = "NULL" defs["ImDrawList_AddText"][1]["funcname"] = "AddText" -defs["ImDrawList_AddText"][1]["location"] = "imgui:2446" -defs["ImDrawList_AddText"][1]["ov_cimguiname"] = "ImDrawList_AddTextVec2" +defs["ImDrawList_AddText"][1]["location"] = "imgui:2552" +defs["ImDrawList_AddText"][1]["ov_cimguiname"] = "ImDrawList_AddText_Vec2" defs["ImDrawList_AddText"][1]["ret"] = "void" defs["ImDrawList_AddText"][1]["signature"] = "(const ImVec2,ImU32,const char*,const char*)" defs["ImDrawList_AddText"][1]["stname"] = "ImDrawList" @@ -1180,8 +1180,8 @@ defs["ImDrawList_AddText"][2]["defaults"]["cpu_fine_clip_rect"] = "NULL" defs["ImDrawList_AddText"][2]["defaults"]["text_end"] = "NULL" defs["ImDrawList_AddText"][2]["defaults"]["wrap_width"] = "0.0f" defs["ImDrawList_AddText"][2]["funcname"] = "AddText" -defs["ImDrawList_AddText"][2]["location"] = "imgui:2447" -defs["ImDrawList_AddText"][2]["ov_cimguiname"] = "ImDrawList_AddTextFontPtr" +defs["ImDrawList_AddText"][2]["location"] = "imgui:2553" +defs["ImDrawList_AddText"][2]["ov_cimguiname"] = "ImDrawList_AddText_FontPtr" defs["ImDrawList_AddText"][2]["ret"] = "void" defs["ImDrawList_AddText"][2]["signature"] = "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)" defs["ImDrawList_AddText"][2]["stname"] = "ImDrawList" @@ -1215,7 +1215,7 @@ defs["ImDrawList_AddTriangle"][1]["cimguiname"] = "ImDrawList_AddTriangle" defs["ImDrawList_AddTriangle"][1]["defaults"] = {} defs["ImDrawList_AddTriangle"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_AddTriangle"][1]["funcname"] = "AddTriangle" -defs["ImDrawList_AddTriangle"][1]["location"] = "imgui:2440" +defs["ImDrawList_AddTriangle"][1]["location"] = "imgui:2546" defs["ImDrawList_AddTriangle"][1]["ov_cimguiname"] = "ImDrawList_AddTriangle" defs["ImDrawList_AddTriangle"][1]["ret"] = "void" defs["ImDrawList_AddTriangle"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)" @@ -1245,7 +1245,7 @@ defs["ImDrawList_AddTriangleFilled"][1]["call_args"] = "(p1,p2,p3,col)" defs["ImDrawList_AddTriangleFilled"][1]["cimguiname"] = "ImDrawList_AddTriangleFilled" defs["ImDrawList_AddTriangleFilled"][1]["defaults"] = {} defs["ImDrawList_AddTriangleFilled"][1]["funcname"] = "AddTriangleFilled" -defs["ImDrawList_AddTriangleFilled"][1]["location"] = "imgui:2441" +defs["ImDrawList_AddTriangleFilled"][1]["location"] = "imgui:2547" defs["ImDrawList_AddTriangleFilled"][1]["ov_cimguiname"] = "ImDrawList_AddTriangleFilled" defs["ImDrawList_AddTriangleFilled"][1]["ret"] = "void" defs["ImDrawList_AddTriangleFilled"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -1263,7 +1263,7 @@ defs["ImDrawList_ChannelsMerge"][1]["call_args"] = "()" defs["ImDrawList_ChannelsMerge"][1]["cimguiname"] = "ImDrawList_ChannelsMerge" defs["ImDrawList_ChannelsMerge"][1]["defaults"] = {} defs["ImDrawList_ChannelsMerge"][1]["funcname"] = "ChannelsMerge" -defs["ImDrawList_ChannelsMerge"][1]["location"] = "imgui:2485" +defs["ImDrawList_ChannelsMerge"][1]["location"] = "imgui:2592" defs["ImDrawList_ChannelsMerge"][1]["ov_cimguiname"] = "ImDrawList_ChannelsMerge" defs["ImDrawList_ChannelsMerge"][1]["ret"] = "void" defs["ImDrawList_ChannelsMerge"][1]["signature"] = "()" @@ -1284,7 +1284,7 @@ defs["ImDrawList_ChannelsSetCurrent"][1]["call_args"] = "(n)" defs["ImDrawList_ChannelsSetCurrent"][1]["cimguiname"] = "ImDrawList_ChannelsSetCurrent" defs["ImDrawList_ChannelsSetCurrent"][1]["defaults"] = {} defs["ImDrawList_ChannelsSetCurrent"][1]["funcname"] = "ChannelsSetCurrent" -defs["ImDrawList_ChannelsSetCurrent"][1]["location"] = "imgui:2486" +defs["ImDrawList_ChannelsSetCurrent"][1]["location"] = "imgui:2593" defs["ImDrawList_ChannelsSetCurrent"][1]["ov_cimguiname"] = "ImDrawList_ChannelsSetCurrent" defs["ImDrawList_ChannelsSetCurrent"][1]["ret"] = "void" defs["ImDrawList_ChannelsSetCurrent"][1]["signature"] = "(int)" @@ -1305,7 +1305,7 @@ defs["ImDrawList_ChannelsSplit"][1]["call_args"] = "(count)" defs["ImDrawList_ChannelsSplit"][1]["cimguiname"] = "ImDrawList_ChannelsSplit" defs["ImDrawList_ChannelsSplit"][1]["defaults"] = {} defs["ImDrawList_ChannelsSplit"][1]["funcname"] = "ChannelsSplit" -defs["ImDrawList_ChannelsSplit"][1]["location"] = "imgui:2484" +defs["ImDrawList_ChannelsSplit"][1]["location"] = "imgui:2591" defs["ImDrawList_ChannelsSplit"][1]["ov_cimguiname"] = "ImDrawList_ChannelsSplit" defs["ImDrawList_ChannelsSplit"][1]["ret"] = "void" defs["ImDrawList_ChannelsSplit"][1]["signature"] = "(int)" @@ -1323,7 +1323,7 @@ defs["ImDrawList_CloneOutput"][1]["call_args"] = "()" defs["ImDrawList_CloneOutput"][1]["cimguiname"] = "ImDrawList_CloneOutput" defs["ImDrawList_CloneOutput"][1]["defaults"] = {} defs["ImDrawList_CloneOutput"][1]["funcname"] = "CloneOutput" -defs["ImDrawList_CloneOutput"][1]["location"] = "imgui:2476" +defs["ImDrawList_CloneOutput"][1]["location"] = "imgui:2583" defs["ImDrawList_CloneOutput"][1]["ov_cimguiname"] = "ImDrawList_CloneOutput" defs["ImDrawList_CloneOutput"][1]["ret"] = "ImDrawList*" defs["ImDrawList_CloneOutput"][1]["signature"] = "()const" @@ -1344,7 +1344,7 @@ defs["ImDrawList_GetClipRectMax"][1]["call_args"] = "()" defs["ImDrawList_GetClipRectMax"][1]["cimguiname"] = "ImDrawList_GetClipRectMax" defs["ImDrawList_GetClipRectMax"][1]["defaults"] = {} defs["ImDrawList_GetClipRectMax"][1]["funcname"] = "GetClipRectMax" -defs["ImDrawList_GetClipRectMax"][1]["location"] = "imgui:2426" +defs["ImDrawList_GetClipRectMax"][1]["location"] = "imgui:2531" defs["ImDrawList_GetClipRectMax"][1]["nonUDT"] = 1 defs["ImDrawList_GetClipRectMax"][1]["ov_cimguiname"] = "ImDrawList_GetClipRectMax" defs["ImDrawList_GetClipRectMax"][1]["ret"] = "void" @@ -1366,7 +1366,7 @@ defs["ImDrawList_GetClipRectMin"][1]["call_args"] = "()" defs["ImDrawList_GetClipRectMin"][1]["cimguiname"] = "ImDrawList_GetClipRectMin" defs["ImDrawList_GetClipRectMin"][1]["defaults"] = {} defs["ImDrawList_GetClipRectMin"][1]["funcname"] = "GetClipRectMin" -defs["ImDrawList_GetClipRectMin"][1]["location"] = "imgui:2425" +defs["ImDrawList_GetClipRectMin"][1]["location"] = "imgui:2530" defs["ImDrawList_GetClipRectMin"][1]["nonUDT"] = 1 defs["ImDrawList_GetClipRectMin"][1]["ov_cimguiname"] = "ImDrawList_GetClipRectMin" defs["ImDrawList_GetClipRectMin"][1]["ret"] = "void" @@ -1375,22 +1375,22 @@ defs["ImDrawList_GetClipRectMin"][1]["stname"] = "ImDrawList" defs["ImDrawList_GetClipRectMin"]["()const"] = defs["ImDrawList_GetClipRectMin"][1] defs["ImDrawList_ImDrawList"] = {} defs["ImDrawList_ImDrawList"][1] = {} -defs["ImDrawList_ImDrawList"][1]["args"] = "(const ImDrawListSharedData* shared_data)" +defs["ImDrawList_ImDrawList"][1]["args"] = "(ImDrawListSharedData* shared_data)" defs["ImDrawList_ImDrawList"][1]["argsT"] = {} defs["ImDrawList_ImDrawList"][1]["argsT"][1] = {} defs["ImDrawList_ImDrawList"][1]["argsT"][1]["name"] = "shared_data" -defs["ImDrawList_ImDrawList"][1]["argsT"][1]["type"] = "const ImDrawListSharedData*" -defs["ImDrawList_ImDrawList"][1]["argsoriginal"] = "(const ImDrawListSharedData* shared_data)" +defs["ImDrawList_ImDrawList"][1]["argsT"][1]["type"] = "ImDrawListSharedData*" +defs["ImDrawList_ImDrawList"][1]["argsoriginal"] = "(ImDrawListSharedData* shared_data)" defs["ImDrawList_ImDrawList"][1]["call_args"] = "(shared_data)" defs["ImDrawList_ImDrawList"][1]["cimguiname"] = "ImDrawList_ImDrawList" defs["ImDrawList_ImDrawList"][1]["constructor"] = true defs["ImDrawList_ImDrawList"][1]["defaults"] = {} defs["ImDrawList_ImDrawList"][1]["funcname"] = "ImDrawList" -defs["ImDrawList_ImDrawList"][1]["location"] = "imgui:2417" +defs["ImDrawList_ImDrawList"][1]["location"] = "imgui:2522" defs["ImDrawList_ImDrawList"][1]["ov_cimguiname"] = "ImDrawList_ImDrawList" -defs["ImDrawList_ImDrawList"][1]["signature"] = "(const ImDrawListSharedData*)" +defs["ImDrawList_ImDrawList"][1]["signature"] = "(ImDrawListSharedData*)" defs["ImDrawList_ImDrawList"][1]["stname"] = "ImDrawList" -defs["ImDrawList_ImDrawList"]["(const ImDrawListSharedData*)"] = defs["ImDrawList_ImDrawList"][1] +defs["ImDrawList_ImDrawList"]["(ImDrawListSharedData*)"] = defs["ImDrawList_ImDrawList"][1] defs["ImDrawList_PathArcTo"] = {} defs["ImDrawList_PathArcTo"][1] = {} defs["ImDrawList_PathArcTo"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)" @@ -1419,7 +1419,7 @@ defs["ImDrawList_PathArcTo"][1]["cimguiname"] = "ImDrawList_PathArcTo" defs["ImDrawList_PathArcTo"][1]["defaults"] = {} defs["ImDrawList_PathArcTo"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_PathArcTo"][1]["funcname"] = "PathArcTo" -defs["ImDrawList_PathArcTo"][1]["location"] = "imgui:2467" +defs["ImDrawList_PathArcTo"][1]["location"] = "imgui:2574" defs["ImDrawList_PathArcTo"][1]["ov_cimguiname"] = "ImDrawList_PathArcTo" defs["ImDrawList_PathArcTo"][1]["ret"] = "void" defs["ImDrawList_PathArcTo"][1]["signature"] = "(const ImVec2,float,float,float,int)" @@ -1449,7 +1449,7 @@ defs["ImDrawList_PathArcToFast"][1]["call_args"] = "(center,radius,a_min_of_12,a defs["ImDrawList_PathArcToFast"][1]["cimguiname"] = "ImDrawList_PathArcToFast" defs["ImDrawList_PathArcToFast"][1]["defaults"] = {} defs["ImDrawList_PathArcToFast"][1]["funcname"] = "PathArcToFast" -defs["ImDrawList_PathArcToFast"][1]["location"] = "imgui:2468" +defs["ImDrawList_PathArcToFast"][1]["location"] = "imgui:2575" defs["ImDrawList_PathArcToFast"][1]["ov_cimguiname"] = "ImDrawList_PathArcToFast" defs["ImDrawList_PathArcToFast"][1]["ret"] = "void" defs["ImDrawList_PathArcToFast"][1]["signature"] = "(const ImVec2,float,int,int)" @@ -1480,7 +1480,7 @@ defs["ImDrawList_PathBezierCubicCurveTo"][1]["cimguiname"] = "ImDrawList_PathBez defs["ImDrawList_PathBezierCubicCurveTo"][1]["defaults"] = {} defs["ImDrawList_PathBezierCubicCurveTo"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_PathBezierCubicCurveTo"][1]["funcname"] = "PathBezierCubicCurveTo" -defs["ImDrawList_PathBezierCubicCurveTo"][1]["location"] = "imgui:2469" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["location"] = "imgui:2576" defs["ImDrawList_PathBezierCubicCurveTo"][1]["ov_cimguiname"] = "ImDrawList_PathBezierCubicCurveTo" defs["ImDrawList_PathBezierCubicCurveTo"][1]["ret"] = "void" defs["ImDrawList_PathBezierCubicCurveTo"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,int)" @@ -1508,7 +1508,7 @@ defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["cimguiname"] = "ImDrawList_Pat defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["defaults"] = {} defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["defaults"]["num_segments"] = "0" defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["funcname"] = "PathBezierQuadraticCurveTo" -defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["location"] = "imgui:2470" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["location"] = "imgui:2577" defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["ov_cimguiname"] = "ImDrawList_PathBezierQuadraticCurveTo" defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["ret"] = "void" defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["signature"] = "(const ImVec2,const ImVec2,int)" @@ -1526,7 +1526,7 @@ defs["ImDrawList_PathClear"][1]["call_args"] = "()" defs["ImDrawList_PathClear"][1]["cimguiname"] = "ImDrawList_PathClear" defs["ImDrawList_PathClear"][1]["defaults"] = {} defs["ImDrawList_PathClear"][1]["funcname"] = "PathClear" -defs["ImDrawList_PathClear"][1]["location"] = "imgui:2462" +defs["ImDrawList_PathClear"][1]["location"] = "imgui:2569" defs["ImDrawList_PathClear"][1]["ov_cimguiname"] = "ImDrawList_PathClear" defs["ImDrawList_PathClear"][1]["ret"] = "void" defs["ImDrawList_PathClear"][1]["signature"] = "()" @@ -1547,7 +1547,7 @@ defs["ImDrawList_PathFillConvex"][1]["call_args"] = "(col)" defs["ImDrawList_PathFillConvex"][1]["cimguiname"] = "ImDrawList_PathFillConvex" defs["ImDrawList_PathFillConvex"][1]["defaults"] = {} defs["ImDrawList_PathFillConvex"][1]["funcname"] = "PathFillConvex" -defs["ImDrawList_PathFillConvex"][1]["location"] = "imgui:2465" +defs["ImDrawList_PathFillConvex"][1]["location"] = "imgui:2572" defs["ImDrawList_PathFillConvex"][1]["ov_cimguiname"] = "ImDrawList_PathFillConvex" defs["ImDrawList_PathFillConvex"][1]["ret"] = "void" defs["ImDrawList_PathFillConvex"][1]["signature"] = "(ImU32)" @@ -1568,7 +1568,7 @@ defs["ImDrawList_PathLineTo"][1]["call_args"] = "(pos)" defs["ImDrawList_PathLineTo"][1]["cimguiname"] = "ImDrawList_PathLineTo" defs["ImDrawList_PathLineTo"][1]["defaults"] = {} defs["ImDrawList_PathLineTo"][1]["funcname"] = "PathLineTo" -defs["ImDrawList_PathLineTo"][1]["location"] = "imgui:2463" +defs["ImDrawList_PathLineTo"][1]["location"] = "imgui:2570" defs["ImDrawList_PathLineTo"][1]["ov_cimguiname"] = "ImDrawList_PathLineTo" defs["ImDrawList_PathLineTo"][1]["ret"] = "void" defs["ImDrawList_PathLineTo"][1]["signature"] = "(const ImVec2)" @@ -1589,7 +1589,7 @@ defs["ImDrawList_PathLineToMergeDuplicate"][1]["call_args"] = "(pos)" defs["ImDrawList_PathLineToMergeDuplicate"][1]["cimguiname"] = "ImDrawList_PathLineToMergeDuplicate" defs["ImDrawList_PathLineToMergeDuplicate"][1]["defaults"] = {} defs["ImDrawList_PathLineToMergeDuplicate"][1]["funcname"] = "PathLineToMergeDuplicate" -defs["ImDrawList_PathLineToMergeDuplicate"][1]["location"] = "imgui:2464" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["location"] = "imgui:2571" defs["ImDrawList_PathLineToMergeDuplicate"][1]["ov_cimguiname"] = "ImDrawList_PathLineToMergeDuplicate" defs["ImDrawList_PathLineToMergeDuplicate"][1]["ret"] = "void" defs["ImDrawList_PathLineToMergeDuplicate"][1]["signature"] = "(const ImVec2)" @@ -1621,7 +1621,7 @@ defs["ImDrawList_PathRect"][1]["defaults"] = {} defs["ImDrawList_PathRect"][1]["defaults"]["flags"] = "0" defs["ImDrawList_PathRect"][1]["defaults"]["rounding"] = "0.0f" defs["ImDrawList_PathRect"][1]["funcname"] = "PathRect" -defs["ImDrawList_PathRect"][1]["location"] = "imgui:2471" +defs["ImDrawList_PathRect"][1]["location"] = "imgui:2578" defs["ImDrawList_PathRect"][1]["ov_cimguiname"] = "ImDrawList_PathRect" defs["ImDrawList_PathRect"][1]["ret"] = "void" defs["ImDrawList_PathRect"][1]["signature"] = "(const ImVec2,const ImVec2,float,ImDrawFlags)" @@ -1650,7 +1650,7 @@ defs["ImDrawList_PathStroke"][1]["defaults"] = {} defs["ImDrawList_PathStroke"][1]["defaults"]["flags"] = "0" defs["ImDrawList_PathStroke"][1]["defaults"]["thickness"] = "1.0f" defs["ImDrawList_PathStroke"][1]["funcname"] = "PathStroke" -defs["ImDrawList_PathStroke"][1]["location"] = "imgui:2466" +defs["ImDrawList_PathStroke"][1]["location"] = "imgui:2573" defs["ImDrawList_PathStroke"][1]["ov_cimguiname"] = "ImDrawList_PathStroke" defs["ImDrawList_PathStroke"][1]["ret"] = "void" defs["ImDrawList_PathStroke"][1]["signature"] = "(ImU32,ImDrawFlags,float)" @@ -1668,7 +1668,7 @@ defs["ImDrawList_PopClipRect"][1]["call_args"] = "()" defs["ImDrawList_PopClipRect"][1]["cimguiname"] = "ImDrawList_PopClipRect" defs["ImDrawList_PopClipRect"][1]["defaults"] = {} defs["ImDrawList_PopClipRect"][1]["funcname"] = "PopClipRect" -defs["ImDrawList_PopClipRect"][1]["location"] = "imgui:2422" +defs["ImDrawList_PopClipRect"][1]["location"] = "imgui:2527" defs["ImDrawList_PopClipRect"][1]["ov_cimguiname"] = "ImDrawList_PopClipRect" defs["ImDrawList_PopClipRect"][1]["ret"] = "void" defs["ImDrawList_PopClipRect"][1]["signature"] = "()" @@ -1686,7 +1686,7 @@ defs["ImDrawList_PopTextureID"][1]["call_args"] = "()" defs["ImDrawList_PopTextureID"][1]["cimguiname"] = "ImDrawList_PopTextureID" defs["ImDrawList_PopTextureID"][1]["defaults"] = {} defs["ImDrawList_PopTextureID"][1]["funcname"] = "PopTextureID" -defs["ImDrawList_PopTextureID"][1]["location"] = "imgui:2424" +defs["ImDrawList_PopTextureID"][1]["location"] = "imgui:2529" defs["ImDrawList_PopTextureID"][1]["ov_cimguiname"] = "ImDrawList_PopTextureID" defs["ImDrawList_PopTextureID"][1]["ret"] = "void" defs["ImDrawList_PopTextureID"][1]["signature"] = "()" @@ -1731,7 +1731,7 @@ defs["ImDrawList_PrimQuadUV"][1]["call_args"] = "(a,b,c,d,uv_a,uv_b,uv_c,uv_d,co defs["ImDrawList_PrimQuadUV"][1]["cimguiname"] = "ImDrawList_PrimQuadUV" defs["ImDrawList_PrimQuadUV"][1]["defaults"] = {} defs["ImDrawList_PrimQuadUV"][1]["funcname"] = "PrimQuadUV" -defs["ImDrawList_PrimQuadUV"][1]["location"] = "imgui:2495" +defs["ImDrawList_PrimQuadUV"][1]["location"] = "imgui:2602" defs["ImDrawList_PrimQuadUV"][1]["ov_cimguiname"] = "ImDrawList_PrimQuadUV" defs["ImDrawList_PrimQuadUV"][1]["ret"] = "void" defs["ImDrawList_PrimQuadUV"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -1758,7 +1758,7 @@ defs["ImDrawList_PrimRect"][1]["call_args"] = "(a,b,col)" defs["ImDrawList_PrimRect"][1]["cimguiname"] = "ImDrawList_PrimRect" defs["ImDrawList_PrimRect"][1]["defaults"] = {} defs["ImDrawList_PrimRect"][1]["funcname"] = "PrimRect" -defs["ImDrawList_PrimRect"][1]["location"] = "imgui:2493" +defs["ImDrawList_PrimRect"][1]["location"] = "imgui:2600" defs["ImDrawList_PrimRect"][1]["ov_cimguiname"] = "ImDrawList_PrimRect" defs["ImDrawList_PrimRect"][1]["ret"] = "void" defs["ImDrawList_PrimRect"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" @@ -1791,7 +1791,7 @@ defs["ImDrawList_PrimRectUV"][1]["call_args"] = "(a,b,uv_a,uv_b,col)" defs["ImDrawList_PrimRectUV"][1]["cimguiname"] = "ImDrawList_PrimRectUV" defs["ImDrawList_PrimRectUV"][1]["defaults"] = {} defs["ImDrawList_PrimRectUV"][1]["funcname"] = "PrimRectUV" -defs["ImDrawList_PrimRectUV"][1]["location"] = "imgui:2494" +defs["ImDrawList_PrimRectUV"][1]["location"] = "imgui:2601" defs["ImDrawList_PrimRectUV"][1]["ov_cimguiname"] = "ImDrawList_PrimRectUV" defs["ImDrawList_PrimRectUV"][1]["ret"] = "void" defs["ImDrawList_PrimRectUV"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" @@ -1815,7 +1815,7 @@ defs["ImDrawList_PrimReserve"][1]["call_args"] = "(idx_count,vtx_count)" defs["ImDrawList_PrimReserve"][1]["cimguiname"] = "ImDrawList_PrimReserve" defs["ImDrawList_PrimReserve"][1]["defaults"] = {} defs["ImDrawList_PrimReserve"][1]["funcname"] = "PrimReserve" -defs["ImDrawList_PrimReserve"][1]["location"] = "imgui:2491" +defs["ImDrawList_PrimReserve"][1]["location"] = "imgui:2598" defs["ImDrawList_PrimReserve"][1]["ov_cimguiname"] = "ImDrawList_PrimReserve" defs["ImDrawList_PrimReserve"][1]["ret"] = "void" defs["ImDrawList_PrimReserve"][1]["signature"] = "(int,int)" @@ -1839,7 +1839,7 @@ defs["ImDrawList_PrimUnreserve"][1]["call_args"] = "(idx_count,vtx_count)" defs["ImDrawList_PrimUnreserve"][1]["cimguiname"] = "ImDrawList_PrimUnreserve" defs["ImDrawList_PrimUnreserve"][1]["defaults"] = {} defs["ImDrawList_PrimUnreserve"][1]["funcname"] = "PrimUnreserve" -defs["ImDrawList_PrimUnreserve"][1]["location"] = "imgui:2492" +defs["ImDrawList_PrimUnreserve"][1]["location"] = "imgui:2599" defs["ImDrawList_PrimUnreserve"][1]["ov_cimguiname"] = "ImDrawList_PrimUnreserve" defs["ImDrawList_PrimUnreserve"][1]["ret"] = "void" defs["ImDrawList_PrimUnreserve"][1]["signature"] = "(int,int)" @@ -1866,7 +1866,7 @@ defs["ImDrawList_PrimVtx"][1]["call_args"] = "(pos,uv,col)" defs["ImDrawList_PrimVtx"][1]["cimguiname"] = "ImDrawList_PrimVtx" defs["ImDrawList_PrimVtx"][1]["defaults"] = {} defs["ImDrawList_PrimVtx"][1]["funcname"] = "PrimVtx" -defs["ImDrawList_PrimVtx"][1]["location"] = "imgui:2498" +defs["ImDrawList_PrimVtx"][1]["location"] = "imgui:2605" defs["ImDrawList_PrimVtx"][1]["ov_cimguiname"] = "ImDrawList_PrimVtx" defs["ImDrawList_PrimVtx"][1]["ret"] = "void" defs["ImDrawList_PrimVtx"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" @@ -1887,7 +1887,7 @@ defs["ImDrawList_PrimWriteIdx"][1]["call_args"] = "(idx)" defs["ImDrawList_PrimWriteIdx"][1]["cimguiname"] = "ImDrawList_PrimWriteIdx" defs["ImDrawList_PrimWriteIdx"][1]["defaults"] = {} defs["ImDrawList_PrimWriteIdx"][1]["funcname"] = "PrimWriteIdx" -defs["ImDrawList_PrimWriteIdx"][1]["location"] = "imgui:2497" +defs["ImDrawList_PrimWriteIdx"][1]["location"] = "imgui:2604" defs["ImDrawList_PrimWriteIdx"][1]["ov_cimguiname"] = "ImDrawList_PrimWriteIdx" defs["ImDrawList_PrimWriteIdx"][1]["ret"] = "void" defs["ImDrawList_PrimWriteIdx"][1]["signature"] = "(ImDrawIdx)" @@ -1914,7 +1914,7 @@ defs["ImDrawList_PrimWriteVtx"][1]["call_args"] = "(pos,uv,col)" defs["ImDrawList_PrimWriteVtx"][1]["cimguiname"] = "ImDrawList_PrimWriteVtx" defs["ImDrawList_PrimWriteVtx"][1]["defaults"] = {} defs["ImDrawList_PrimWriteVtx"][1]["funcname"] = "PrimWriteVtx" -defs["ImDrawList_PrimWriteVtx"][1]["location"] = "imgui:2496" +defs["ImDrawList_PrimWriteVtx"][1]["location"] = "imgui:2603" defs["ImDrawList_PrimWriteVtx"][1]["ov_cimguiname"] = "ImDrawList_PrimWriteVtx" defs["ImDrawList_PrimWriteVtx"][1]["ret"] = "void" defs["ImDrawList_PrimWriteVtx"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" @@ -1922,32 +1922,32 @@ defs["ImDrawList_PrimWriteVtx"][1]["stname"] = "ImDrawList" defs["ImDrawList_PrimWriteVtx"]["(const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimWriteVtx"][1] defs["ImDrawList_PushClipRect"] = {} defs["ImDrawList_PushClipRect"][1] = {} -defs["ImDrawList_PushClipRect"][1]["args"] = "(ImDrawList* self,ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)" +defs["ImDrawList_PushClipRect"][1]["args"] = "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)" defs["ImDrawList_PushClipRect"][1]["argsT"] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][1] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][1]["name"] = "self" defs["ImDrawList_PushClipRect"][1]["argsT"][1]["type"] = "ImDrawList*" defs["ImDrawList_PushClipRect"][1]["argsT"][2] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][2]["name"] = "clip_rect_min" -defs["ImDrawList_PushClipRect"][1]["argsT"][2]["type"] = "ImVec2" +defs["ImDrawList_PushClipRect"][1]["argsT"][2]["type"] = "const ImVec2" defs["ImDrawList_PushClipRect"][1]["argsT"][3] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][3]["name"] = "clip_rect_max" -defs["ImDrawList_PushClipRect"][1]["argsT"][3]["type"] = "ImVec2" +defs["ImDrawList_PushClipRect"][1]["argsT"][3]["type"] = "const ImVec2" defs["ImDrawList_PushClipRect"][1]["argsT"][4] = {} defs["ImDrawList_PushClipRect"][1]["argsT"][4]["name"] = "intersect_with_current_clip_rect" defs["ImDrawList_PushClipRect"][1]["argsT"][4]["type"] = "bool" -defs["ImDrawList_PushClipRect"][1]["argsoriginal"] = "(ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect=false)" +defs["ImDrawList_PushClipRect"][1]["argsoriginal"] = "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)" defs["ImDrawList_PushClipRect"][1]["call_args"] = "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)" defs["ImDrawList_PushClipRect"][1]["cimguiname"] = "ImDrawList_PushClipRect" defs["ImDrawList_PushClipRect"][1]["defaults"] = {} defs["ImDrawList_PushClipRect"][1]["defaults"]["intersect_with_current_clip_rect"] = "false" defs["ImDrawList_PushClipRect"][1]["funcname"] = "PushClipRect" -defs["ImDrawList_PushClipRect"][1]["location"] = "imgui:2420" +defs["ImDrawList_PushClipRect"][1]["location"] = "imgui:2525" defs["ImDrawList_PushClipRect"][1]["ov_cimguiname"] = "ImDrawList_PushClipRect" defs["ImDrawList_PushClipRect"][1]["ret"] = "void" -defs["ImDrawList_PushClipRect"][1]["signature"] = "(ImVec2,ImVec2,bool)" +defs["ImDrawList_PushClipRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" defs["ImDrawList_PushClipRect"][1]["stname"] = "ImDrawList" -defs["ImDrawList_PushClipRect"]["(ImVec2,ImVec2,bool)"] = defs["ImDrawList_PushClipRect"][1] +defs["ImDrawList_PushClipRect"]["(const ImVec2,const ImVec2,bool)"] = defs["ImDrawList_PushClipRect"][1] defs["ImDrawList_PushClipRectFullScreen"] = {} defs["ImDrawList_PushClipRectFullScreen"][1] = {} defs["ImDrawList_PushClipRectFullScreen"][1]["args"] = "(ImDrawList* self)" @@ -1960,7 +1960,7 @@ defs["ImDrawList_PushClipRectFullScreen"][1]["call_args"] = "()" defs["ImDrawList_PushClipRectFullScreen"][1]["cimguiname"] = "ImDrawList_PushClipRectFullScreen" defs["ImDrawList_PushClipRectFullScreen"][1]["defaults"] = {} defs["ImDrawList_PushClipRectFullScreen"][1]["funcname"] = "PushClipRectFullScreen" -defs["ImDrawList_PushClipRectFullScreen"][1]["location"] = "imgui:2421" +defs["ImDrawList_PushClipRectFullScreen"][1]["location"] = "imgui:2526" defs["ImDrawList_PushClipRectFullScreen"][1]["ov_cimguiname"] = "ImDrawList_PushClipRectFullScreen" defs["ImDrawList_PushClipRectFullScreen"][1]["ret"] = "void" defs["ImDrawList_PushClipRectFullScreen"][1]["signature"] = "()" @@ -1981,7 +1981,7 @@ defs["ImDrawList_PushTextureID"][1]["call_args"] = "(texture_id)" defs["ImDrawList_PushTextureID"][1]["cimguiname"] = "ImDrawList_PushTextureID" defs["ImDrawList_PushTextureID"][1]["defaults"] = {} defs["ImDrawList_PushTextureID"][1]["funcname"] = "PushTextureID" -defs["ImDrawList_PushTextureID"][1]["location"] = "imgui:2423" +defs["ImDrawList_PushTextureID"][1]["location"] = "imgui:2528" defs["ImDrawList_PushTextureID"][1]["ov_cimguiname"] = "ImDrawList_PushTextureID" defs["ImDrawList_PushTextureID"][1]["ret"] = "void" defs["ImDrawList_PushTextureID"][1]["signature"] = "(ImTextureID)" @@ -2002,7 +2002,7 @@ defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["call_args"] = "(radius)" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["cimguiname"] = "ImDrawList__CalcCircleAutoSegmentCount" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["defaults"] = {} defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["funcname"] = "_CalcCircleAutoSegmentCount" -defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["location"] = "imgui:2513" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["location"] = "imgui:2620" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["ov_cimguiname"] = "ImDrawList__CalcCircleAutoSegmentCount" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["ret"] = "int" defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["signature"] = "(float)const" @@ -2020,7 +2020,7 @@ defs["ImDrawList__ClearFreeMemory"][1]["call_args"] = "()" defs["ImDrawList__ClearFreeMemory"][1]["cimguiname"] = "ImDrawList__ClearFreeMemory" defs["ImDrawList__ClearFreeMemory"][1]["defaults"] = {} defs["ImDrawList__ClearFreeMemory"][1]["funcname"] = "_ClearFreeMemory" -defs["ImDrawList__ClearFreeMemory"][1]["location"] = "imgui:2507" +defs["ImDrawList__ClearFreeMemory"][1]["location"] = "imgui:2614" defs["ImDrawList__ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawList__ClearFreeMemory" defs["ImDrawList__ClearFreeMemory"][1]["ret"] = "void" defs["ImDrawList__ClearFreeMemory"][1]["signature"] = "()" @@ -2038,7 +2038,7 @@ defs["ImDrawList__OnChangedClipRect"][1]["call_args"] = "()" defs["ImDrawList__OnChangedClipRect"][1]["cimguiname"] = "ImDrawList__OnChangedClipRect" defs["ImDrawList__OnChangedClipRect"][1]["defaults"] = {} defs["ImDrawList__OnChangedClipRect"][1]["funcname"] = "_OnChangedClipRect" -defs["ImDrawList__OnChangedClipRect"][1]["location"] = "imgui:2510" +defs["ImDrawList__OnChangedClipRect"][1]["location"] = "imgui:2617" defs["ImDrawList__OnChangedClipRect"][1]["ov_cimguiname"] = "ImDrawList__OnChangedClipRect" defs["ImDrawList__OnChangedClipRect"][1]["ret"] = "void" defs["ImDrawList__OnChangedClipRect"][1]["signature"] = "()" @@ -2056,7 +2056,7 @@ defs["ImDrawList__OnChangedTextureID"][1]["call_args"] = "()" defs["ImDrawList__OnChangedTextureID"][1]["cimguiname"] = "ImDrawList__OnChangedTextureID" defs["ImDrawList__OnChangedTextureID"][1]["defaults"] = {} defs["ImDrawList__OnChangedTextureID"][1]["funcname"] = "_OnChangedTextureID" -defs["ImDrawList__OnChangedTextureID"][1]["location"] = "imgui:2511" +defs["ImDrawList__OnChangedTextureID"][1]["location"] = "imgui:2618" defs["ImDrawList__OnChangedTextureID"][1]["ov_cimguiname"] = "ImDrawList__OnChangedTextureID" defs["ImDrawList__OnChangedTextureID"][1]["ret"] = "void" defs["ImDrawList__OnChangedTextureID"][1]["signature"] = "()" @@ -2074,7 +2074,7 @@ defs["ImDrawList__OnChangedVtxOffset"][1]["call_args"] = "()" defs["ImDrawList__OnChangedVtxOffset"][1]["cimguiname"] = "ImDrawList__OnChangedVtxOffset" defs["ImDrawList__OnChangedVtxOffset"][1]["defaults"] = {} defs["ImDrawList__OnChangedVtxOffset"][1]["funcname"] = "_OnChangedVtxOffset" -defs["ImDrawList__OnChangedVtxOffset"][1]["location"] = "imgui:2512" +defs["ImDrawList__OnChangedVtxOffset"][1]["location"] = "imgui:2619" defs["ImDrawList__OnChangedVtxOffset"][1]["ov_cimguiname"] = "ImDrawList__OnChangedVtxOffset" defs["ImDrawList__OnChangedVtxOffset"][1]["ret"] = "void" defs["ImDrawList__OnChangedVtxOffset"][1]["signature"] = "()" @@ -2107,7 +2107,7 @@ defs["ImDrawList__PathArcToFastEx"][1]["call_args"] = "(center,radius,a_min_samp defs["ImDrawList__PathArcToFastEx"][1]["cimguiname"] = "ImDrawList__PathArcToFastEx" defs["ImDrawList__PathArcToFastEx"][1]["defaults"] = {} defs["ImDrawList__PathArcToFastEx"][1]["funcname"] = "_PathArcToFastEx" -defs["ImDrawList__PathArcToFastEx"][1]["location"] = "imgui:2514" +defs["ImDrawList__PathArcToFastEx"][1]["location"] = "imgui:2621" defs["ImDrawList__PathArcToFastEx"][1]["ov_cimguiname"] = "ImDrawList__PathArcToFastEx" defs["ImDrawList__PathArcToFastEx"][1]["ret"] = "void" defs["ImDrawList__PathArcToFastEx"][1]["signature"] = "(const ImVec2,float,int,int,int)" @@ -2140,7 +2140,7 @@ defs["ImDrawList__PathArcToN"][1]["call_args"] = "(center,radius,a_min,a_max,num defs["ImDrawList__PathArcToN"][1]["cimguiname"] = "ImDrawList__PathArcToN" defs["ImDrawList__PathArcToN"][1]["defaults"] = {} defs["ImDrawList__PathArcToN"][1]["funcname"] = "_PathArcToN" -defs["ImDrawList__PathArcToN"][1]["location"] = "imgui:2515" +defs["ImDrawList__PathArcToN"][1]["location"] = "imgui:2622" defs["ImDrawList__PathArcToN"][1]["ov_cimguiname"] = "ImDrawList__PathArcToN" defs["ImDrawList__PathArcToN"][1]["ret"] = "void" defs["ImDrawList__PathArcToN"][1]["signature"] = "(const ImVec2,float,float,float,int)" @@ -2158,7 +2158,7 @@ defs["ImDrawList__PopUnusedDrawCmd"][1]["call_args"] = "()" defs["ImDrawList__PopUnusedDrawCmd"][1]["cimguiname"] = "ImDrawList__PopUnusedDrawCmd" defs["ImDrawList__PopUnusedDrawCmd"][1]["defaults"] = {} defs["ImDrawList__PopUnusedDrawCmd"][1]["funcname"] = "_PopUnusedDrawCmd" -defs["ImDrawList__PopUnusedDrawCmd"][1]["location"] = "imgui:2508" +defs["ImDrawList__PopUnusedDrawCmd"][1]["location"] = "imgui:2615" defs["ImDrawList__PopUnusedDrawCmd"][1]["ov_cimguiname"] = "ImDrawList__PopUnusedDrawCmd" defs["ImDrawList__PopUnusedDrawCmd"][1]["ret"] = "void" defs["ImDrawList__PopUnusedDrawCmd"][1]["signature"] = "()" @@ -2176,7 +2176,7 @@ defs["ImDrawList__ResetForNewFrame"][1]["call_args"] = "()" defs["ImDrawList__ResetForNewFrame"][1]["cimguiname"] = "ImDrawList__ResetForNewFrame" defs["ImDrawList__ResetForNewFrame"][1]["defaults"] = {} defs["ImDrawList__ResetForNewFrame"][1]["funcname"] = "_ResetForNewFrame" -defs["ImDrawList__ResetForNewFrame"][1]["location"] = "imgui:2506" +defs["ImDrawList__ResetForNewFrame"][1]["location"] = "imgui:2613" defs["ImDrawList__ResetForNewFrame"][1]["ov_cimguiname"] = "ImDrawList__ResetForNewFrame" defs["ImDrawList__ResetForNewFrame"][1]["ret"] = "void" defs["ImDrawList__ResetForNewFrame"][1]["signature"] = "()" @@ -2194,7 +2194,7 @@ defs["ImDrawList__TryMergeDrawCmds"][1]["call_args"] = "()" defs["ImDrawList__TryMergeDrawCmds"][1]["cimguiname"] = "ImDrawList__TryMergeDrawCmds" defs["ImDrawList__TryMergeDrawCmds"][1]["defaults"] = {} defs["ImDrawList__TryMergeDrawCmds"][1]["funcname"] = "_TryMergeDrawCmds" -defs["ImDrawList__TryMergeDrawCmds"][1]["location"] = "imgui:2509" +defs["ImDrawList__TryMergeDrawCmds"][1]["location"] = "imgui:2616" defs["ImDrawList__TryMergeDrawCmds"][1]["ov_cimguiname"] = "ImDrawList__TryMergeDrawCmds" defs["ImDrawList__TryMergeDrawCmds"][1]["ret"] = "void" defs["ImDrawList__TryMergeDrawCmds"][1]["signature"] = "()" @@ -2211,7 +2211,7 @@ defs["ImDrawList_destroy"][1]["call_args"] = "(self)" defs["ImDrawList_destroy"][1]["cimguiname"] = "ImDrawList_destroy" defs["ImDrawList_destroy"][1]["defaults"] = {} defs["ImDrawList_destroy"][1]["destructor"] = true -defs["ImDrawList_destroy"][1]["location"] = "imgui:2419" +defs["ImDrawList_destroy"][1]["location"] = "imgui:2524" defs["ImDrawList_destroy"][1]["ov_cimguiname"] = "ImDrawList_destroy" defs["ImDrawList_destroy"][1]["realdestructor"] = true defs["ImDrawList_destroy"][1]["ret"] = "void" @@ -2228,7 +2228,7 @@ defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["cimguiname"] = "ImFontAt defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["constructor"] = true defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["defaults"] = {} defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["funcname"] = "ImFontAtlasCustomRect" -defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["location"] = "imgui:2607" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["location"] = "imgui:2714" defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_ImFontAtlasCustomRect" defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["signature"] = "()" defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["stname"] = "ImFontAtlasCustomRect" @@ -2245,7 +2245,7 @@ defs["ImFontAtlasCustomRect_IsPacked"][1]["call_args"] = "()" defs["ImFontAtlasCustomRect_IsPacked"][1]["cimguiname"] = "ImFontAtlasCustomRect_IsPacked" defs["ImFontAtlasCustomRect_IsPacked"][1]["defaults"] = {} defs["ImFontAtlasCustomRect_IsPacked"][1]["funcname"] = "IsPacked" -defs["ImFontAtlasCustomRect_IsPacked"][1]["location"] = "imgui:2608" +defs["ImFontAtlasCustomRect_IsPacked"][1]["location"] = "imgui:2715" defs["ImFontAtlasCustomRect_IsPacked"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_IsPacked" defs["ImFontAtlasCustomRect_IsPacked"][1]["ret"] = "bool" defs["ImFontAtlasCustomRect_IsPacked"][1]["signature"] = "()const" @@ -2298,7 +2298,7 @@ defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["cimguiname"] = "ImFontAtlas_AddCu defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["defaults"] = {} defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["defaults"]["offset"] = "ImVec2(0,0)" defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["funcname"] = "AddCustomRectFontGlyph" -defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["location"] = "imgui:2691" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["location"] = "imgui:2799" defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["ov_cimguiname"] = "ImFontAtlas_AddCustomRectFontGlyph" defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["ret"] = "int" defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["signature"] = "(ImFont*,ImWchar,int,int,float,const ImVec2)" @@ -2322,7 +2322,7 @@ defs["ImFontAtlas_AddCustomRectRegular"][1]["call_args"] = "(width,height)" defs["ImFontAtlas_AddCustomRectRegular"][1]["cimguiname"] = "ImFontAtlas_AddCustomRectRegular" defs["ImFontAtlas_AddCustomRectRegular"][1]["defaults"] = {} defs["ImFontAtlas_AddCustomRectRegular"][1]["funcname"] = "AddCustomRectRegular" -defs["ImFontAtlas_AddCustomRectRegular"][1]["location"] = "imgui:2690" +defs["ImFontAtlas_AddCustomRectRegular"][1]["location"] = "imgui:2798" defs["ImFontAtlas_AddCustomRectRegular"][1]["ov_cimguiname"] = "ImFontAtlas_AddCustomRectRegular" defs["ImFontAtlas_AddCustomRectRegular"][1]["ret"] = "int" defs["ImFontAtlas_AddCustomRectRegular"][1]["signature"] = "(int,int)" @@ -2343,7 +2343,7 @@ defs["ImFontAtlas_AddFont"][1]["call_args"] = "(font_cfg)" defs["ImFontAtlas_AddFont"][1]["cimguiname"] = "ImFontAtlas_AddFont" defs["ImFontAtlas_AddFont"][1]["defaults"] = {} defs["ImFontAtlas_AddFont"][1]["funcname"] = "AddFont" -defs["ImFontAtlas_AddFont"][1]["location"] = "imgui:2641" +defs["ImFontAtlas_AddFont"][1]["location"] = "imgui:2748" defs["ImFontAtlas_AddFont"][1]["ov_cimguiname"] = "ImFontAtlas_AddFont" defs["ImFontAtlas_AddFont"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFont"][1]["signature"] = "(const ImFontConfig*)" @@ -2365,7 +2365,7 @@ defs["ImFontAtlas_AddFontDefault"][1]["cimguiname"] = "ImFontAtlas_AddFontDefaul defs["ImFontAtlas_AddFontDefault"][1]["defaults"] = {} defs["ImFontAtlas_AddFontDefault"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontDefault"][1]["funcname"] = "AddFontDefault" -defs["ImFontAtlas_AddFontDefault"][1]["location"] = "imgui:2642" +defs["ImFontAtlas_AddFontDefault"][1]["location"] = "imgui:2749" defs["ImFontAtlas_AddFontDefault"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontDefault" defs["ImFontAtlas_AddFontDefault"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontDefault"][1]["signature"] = "(const ImFontConfig*)" @@ -2397,7 +2397,7 @@ defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"] = {} defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"]["glyph_ranges"] = "NULL" defs["ImFontAtlas_AddFontFromFileTTF"][1]["funcname"] = "AddFontFromFileTTF" -defs["ImFontAtlas_AddFontFromFileTTF"][1]["location"] = "imgui:2643" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["location"] = "imgui:2750" defs["ImFontAtlas_AddFontFromFileTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromFileTTF" defs["ImFontAtlas_AddFontFromFileTTF"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontFromFileTTF"][1]["signature"] = "(const char*,float,const ImFontConfig*,const ImWchar*)" @@ -2429,7 +2429,7 @@ defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"] = {} defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"]["glyph_ranges"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["funcname"] = "AddFontFromMemoryCompressedBase85TTF" -defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["location"] = "imgui:2646" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["location"] = "imgui:2753" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["signature"] = "(const char*,float,const ImFontConfig*,const ImWchar*)" @@ -2464,7 +2464,7 @@ defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"] = {} defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"]["glyph_ranges"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["funcname"] = "AddFontFromMemoryCompressedTTF" -defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["location"] = "imgui:2645" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["location"] = "imgui:2752" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedTTF" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["signature"] = "(const void*,int,float,const ImFontConfig*,const ImWchar*)" @@ -2499,7 +2499,7 @@ defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"] = {} defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"]["font_cfg"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"]["glyph_ranges"] = "NULL" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["funcname"] = "AddFontFromMemoryTTF" -defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["location"] = "imgui:2644" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["location"] = "imgui:2751" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryTTF" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["ret"] = "ImFont*" defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["signature"] = "(void*,int,float,const ImFontConfig*,const ImWchar*)" @@ -2517,7 +2517,7 @@ defs["ImFontAtlas_Build"][1]["call_args"] = "()" defs["ImFontAtlas_Build"][1]["cimguiname"] = "ImFontAtlas_Build" defs["ImFontAtlas_Build"][1]["defaults"] = {} defs["ImFontAtlas_Build"][1]["funcname"] = "Build" -defs["ImFontAtlas_Build"][1]["location"] = "imgui:2657" +defs["ImFontAtlas_Build"][1]["location"] = "imgui:2764" defs["ImFontAtlas_Build"][1]["ov_cimguiname"] = "ImFontAtlas_Build" defs["ImFontAtlas_Build"][1]["ret"] = "bool" defs["ImFontAtlas_Build"][1]["signature"] = "()" @@ -2544,7 +2544,7 @@ defs["ImFontAtlas_CalcCustomRectUV"][1]["call_args"] = "(rect,out_uv_min,out_uv_ defs["ImFontAtlas_CalcCustomRectUV"][1]["cimguiname"] = "ImFontAtlas_CalcCustomRectUV" defs["ImFontAtlas_CalcCustomRectUV"][1]["defaults"] = {} defs["ImFontAtlas_CalcCustomRectUV"][1]["funcname"] = "CalcCustomRectUV" -defs["ImFontAtlas_CalcCustomRectUV"][1]["location"] = "imgui:2695" +defs["ImFontAtlas_CalcCustomRectUV"][1]["location"] = "imgui:2803" defs["ImFontAtlas_CalcCustomRectUV"][1]["ov_cimguiname"] = "ImFontAtlas_CalcCustomRectUV" defs["ImFontAtlas_CalcCustomRectUV"][1]["ret"] = "void" defs["ImFontAtlas_CalcCustomRectUV"][1]["signature"] = "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const" @@ -2562,7 +2562,7 @@ defs["ImFontAtlas_Clear"][1]["call_args"] = "()" defs["ImFontAtlas_Clear"][1]["cimguiname"] = "ImFontAtlas_Clear" defs["ImFontAtlas_Clear"][1]["defaults"] = {} defs["ImFontAtlas_Clear"][1]["funcname"] = "Clear" -defs["ImFontAtlas_Clear"][1]["location"] = "imgui:2650" +defs["ImFontAtlas_Clear"][1]["location"] = "imgui:2757" defs["ImFontAtlas_Clear"][1]["ov_cimguiname"] = "ImFontAtlas_Clear" defs["ImFontAtlas_Clear"][1]["ret"] = "void" defs["ImFontAtlas_Clear"][1]["signature"] = "()" @@ -2580,7 +2580,7 @@ defs["ImFontAtlas_ClearFonts"][1]["call_args"] = "()" defs["ImFontAtlas_ClearFonts"][1]["cimguiname"] = "ImFontAtlas_ClearFonts" defs["ImFontAtlas_ClearFonts"][1]["defaults"] = {} defs["ImFontAtlas_ClearFonts"][1]["funcname"] = "ClearFonts" -defs["ImFontAtlas_ClearFonts"][1]["location"] = "imgui:2649" +defs["ImFontAtlas_ClearFonts"][1]["location"] = "imgui:2756" defs["ImFontAtlas_ClearFonts"][1]["ov_cimguiname"] = "ImFontAtlas_ClearFonts" defs["ImFontAtlas_ClearFonts"][1]["ret"] = "void" defs["ImFontAtlas_ClearFonts"][1]["signature"] = "()" @@ -2598,7 +2598,7 @@ defs["ImFontAtlas_ClearInputData"][1]["call_args"] = "()" defs["ImFontAtlas_ClearInputData"][1]["cimguiname"] = "ImFontAtlas_ClearInputData" defs["ImFontAtlas_ClearInputData"][1]["defaults"] = {} defs["ImFontAtlas_ClearInputData"][1]["funcname"] = "ClearInputData" -defs["ImFontAtlas_ClearInputData"][1]["location"] = "imgui:2647" +defs["ImFontAtlas_ClearInputData"][1]["location"] = "imgui:2754" defs["ImFontAtlas_ClearInputData"][1]["ov_cimguiname"] = "ImFontAtlas_ClearInputData" defs["ImFontAtlas_ClearInputData"][1]["ret"] = "void" defs["ImFontAtlas_ClearInputData"][1]["signature"] = "()" @@ -2616,7 +2616,7 @@ defs["ImFontAtlas_ClearTexData"][1]["call_args"] = "()" defs["ImFontAtlas_ClearTexData"][1]["cimguiname"] = "ImFontAtlas_ClearTexData" defs["ImFontAtlas_ClearTexData"][1]["defaults"] = {} defs["ImFontAtlas_ClearTexData"][1]["funcname"] = "ClearTexData" -defs["ImFontAtlas_ClearTexData"][1]["location"] = "imgui:2648" +defs["ImFontAtlas_ClearTexData"][1]["location"] = "imgui:2755" defs["ImFontAtlas_ClearTexData"][1]["ov_cimguiname"] = "ImFontAtlas_ClearTexData" defs["ImFontAtlas_ClearTexData"][1]["ret"] = "void" defs["ImFontAtlas_ClearTexData"][1]["signature"] = "()" @@ -2637,7 +2637,7 @@ defs["ImFontAtlas_GetCustomRectByIndex"][1]["call_args"] = "(index)" defs["ImFontAtlas_GetCustomRectByIndex"][1]["cimguiname"] = "ImFontAtlas_GetCustomRectByIndex" defs["ImFontAtlas_GetCustomRectByIndex"][1]["defaults"] = {} defs["ImFontAtlas_GetCustomRectByIndex"][1]["funcname"] = "GetCustomRectByIndex" -defs["ImFontAtlas_GetCustomRectByIndex"][1]["location"] = "imgui:2692" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["location"] = "imgui:2800" defs["ImFontAtlas_GetCustomRectByIndex"][1]["ov_cimguiname"] = "ImFontAtlas_GetCustomRectByIndex" defs["ImFontAtlas_GetCustomRectByIndex"][1]["ret"] = "ImFontAtlasCustomRect*" defs["ImFontAtlas_GetCustomRectByIndex"][1]["signature"] = "(int)" @@ -2655,7 +2655,7 @@ defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseFull" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["funcname"] = "GetGlyphRangesChineseFull" -defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["location"] = "imgui:2673" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["location"] = "imgui:2781" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseFull" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["signature"] = "()" @@ -2673,7 +2673,7 @@ defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["funcname"] = "GetGlyphRangesChineseSimplifiedCommon" -defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["location"] = "imgui:2674" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["location"] = "imgui:2782" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["signature"] = "()" @@ -2691,7 +2691,7 @@ defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesCyrillic" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["funcname"] = "GetGlyphRangesCyrillic" -defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["location"] = "imgui:2675" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["location"] = "imgui:2783" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesCyrillic" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["signature"] = "()" @@ -2709,12 +2709,30 @@ defs["ImFontAtlas_GetGlyphRangesDefault"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesDefault" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesDefault"][1]["funcname"] = "GetGlyphRangesDefault" -defs["ImFontAtlas_GetGlyphRangesDefault"][1]["location"] = "imgui:2670" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["location"] = "imgui:2777" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesDefault" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["signature"] = "()" defs["ImFontAtlas_GetGlyphRangesDefault"][1]["stname"] = "ImFontAtlas" defs["ImFontAtlas_GetGlyphRangesDefault"]["()"] = defs["ImFontAtlas_GetGlyphRangesDefault"][1] +defs["ImFontAtlas_GetGlyphRangesGreek"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["funcname"] = "GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["location"] = "imgui:2778" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesGreek"]["()"] = defs["ImFontAtlas_GetGlyphRangesGreek"][1] defs["ImFontAtlas_GetGlyphRangesJapanese"] = {} defs["ImFontAtlas_GetGlyphRangesJapanese"][1] = {} defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["args"] = "(ImFontAtlas* self)" @@ -2727,7 +2745,7 @@ defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesJapanese" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["funcname"] = "GetGlyphRangesJapanese" -defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["location"] = "imgui:2672" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["location"] = "imgui:2780" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesJapanese" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["signature"] = "()" @@ -2745,7 +2763,7 @@ defs["ImFontAtlas_GetGlyphRangesKorean"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesKorean" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesKorean"][1]["funcname"] = "GetGlyphRangesKorean" -defs["ImFontAtlas_GetGlyphRangesKorean"][1]["location"] = "imgui:2671" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["location"] = "imgui:2779" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesKorean" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesKorean"][1]["signature"] = "()" @@ -2763,7 +2781,7 @@ defs["ImFontAtlas_GetGlyphRangesThai"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesThai"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesThai" defs["ImFontAtlas_GetGlyphRangesThai"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesThai"][1]["funcname"] = "GetGlyphRangesThai" -defs["ImFontAtlas_GetGlyphRangesThai"][1]["location"] = "imgui:2676" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["location"] = "imgui:2784" defs["ImFontAtlas_GetGlyphRangesThai"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesThai" defs["ImFontAtlas_GetGlyphRangesThai"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesThai"][1]["signature"] = "()" @@ -2781,7 +2799,7 @@ defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["call_args"] = "()" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesVietnamese" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["defaults"] = {} defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["funcname"] = "GetGlyphRangesVietnamese" -defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["location"] = "imgui:2677" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["location"] = "imgui:2785" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesVietnamese" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["ret"] = "const ImWchar*" defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["signature"] = "()" @@ -2814,7 +2832,7 @@ defs["ImFontAtlas_GetMouseCursorTexData"][1]["call_args"] = "(cursor,out_offset, defs["ImFontAtlas_GetMouseCursorTexData"][1]["cimguiname"] = "ImFontAtlas_GetMouseCursorTexData" defs["ImFontAtlas_GetMouseCursorTexData"][1]["defaults"] = {} defs["ImFontAtlas_GetMouseCursorTexData"][1]["funcname"] = "GetMouseCursorTexData" -defs["ImFontAtlas_GetMouseCursorTexData"][1]["location"] = "imgui:2696" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["location"] = "imgui:2804" defs["ImFontAtlas_GetMouseCursorTexData"][1]["ov_cimguiname"] = "ImFontAtlas_GetMouseCursorTexData" defs["ImFontAtlas_GetMouseCursorTexData"][1]["ret"] = "bool" defs["ImFontAtlas_GetMouseCursorTexData"][1]["signature"] = "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])" @@ -2845,7 +2863,7 @@ defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["cimguiname"] = "ImFontAtlas_GetTexDat defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["defaults"] = {} defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["defaults"]["out_bytes_per_pixel"] = "NULL" defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["funcname"] = "GetTexDataAsAlpha8" -defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["location"] = "imgui:2658" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["location"] = "imgui:2765" defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["ov_cimguiname"] = "ImFontAtlas_GetTexDataAsAlpha8" defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["ret"] = "void" defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["signature"] = "(unsigned char**,int*,int*,int*)" @@ -2876,7 +2894,7 @@ defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["cimguiname"] = "ImFontAtlas_GetTexDat defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["defaults"] = {} defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["defaults"]["out_bytes_per_pixel"] = "NULL" defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["funcname"] = "GetTexDataAsRGBA32" -defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["location"] = "imgui:2659" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["location"] = "imgui:2766" defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["ov_cimguiname"] = "ImFontAtlas_GetTexDataAsRGBA32" defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["ret"] = "void" defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["signature"] = "(unsigned char**,int*,int*,int*)" @@ -2892,7 +2910,7 @@ defs["ImFontAtlas_ImFontAtlas"][1]["cimguiname"] = "ImFontAtlas_ImFontAtlas" defs["ImFontAtlas_ImFontAtlas"][1]["constructor"] = true defs["ImFontAtlas_ImFontAtlas"][1]["defaults"] = {} defs["ImFontAtlas_ImFontAtlas"][1]["funcname"] = "ImFontAtlas" -defs["ImFontAtlas_ImFontAtlas"][1]["location"] = "imgui:2639" +defs["ImFontAtlas_ImFontAtlas"][1]["location"] = "imgui:2746" defs["ImFontAtlas_ImFontAtlas"][1]["ov_cimguiname"] = "ImFontAtlas_ImFontAtlas" defs["ImFontAtlas_ImFontAtlas"][1]["signature"] = "()" defs["ImFontAtlas_ImFontAtlas"][1]["stname"] = "ImFontAtlas" @@ -2909,7 +2927,7 @@ defs["ImFontAtlas_IsBuilt"][1]["call_args"] = "()" defs["ImFontAtlas_IsBuilt"][1]["cimguiname"] = "ImFontAtlas_IsBuilt" defs["ImFontAtlas_IsBuilt"][1]["defaults"] = {} defs["ImFontAtlas_IsBuilt"][1]["funcname"] = "IsBuilt" -defs["ImFontAtlas_IsBuilt"][1]["location"] = "imgui:2660" +defs["ImFontAtlas_IsBuilt"][1]["location"] = "imgui:2767" defs["ImFontAtlas_IsBuilt"][1]["ov_cimguiname"] = "ImFontAtlas_IsBuilt" defs["ImFontAtlas_IsBuilt"][1]["ret"] = "bool" defs["ImFontAtlas_IsBuilt"][1]["signature"] = "()const" @@ -2930,7 +2948,7 @@ defs["ImFontAtlas_SetTexID"][1]["call_args"] = "(id)" defs["ImFontAtlas_SetTexID"][1]["cimguiname"] = "ImFontAtlas_SetTexID" defs["ImFontAtlas_SetTexID"][1]["defaults"] = {} defs["ImFontAtlas_SetTexID"][1]["funcname"] = "SetTexID" -defs["ImFontAtlas_SetTexID"][1]["location"] = "imgui:2661" +defs["ImFontAtlas_SetTexID"][1]["location"] = "imgui:2768" defs["ImFontAtlas_SetTexID"][1]["ov_cimguiname"] = "ImFontAtlas_SetTexID" defs["ImFontAtlas_SetTexID"][1]["ret"] = "void" defs["ImFontAtlas_SetTexID"][1]["signature"] = "(ImTextureID)" @@ -2947,7 +2965,7 @@ defs["ImFontAtlas_destroy"][1]["call_args"] = "(self)" defs["ImFontAtlas_destroy"][1]["cimguiname"] = "ImFontAtlas_destroy" defs["ImFontAtlas_destroy"][1]["defaults"] = {} defs["ImFontAtlas_destroy"][1]["destructor"] = true -defs["ImFontAtlas_destroy"][1]["location"] = "imgui:2640" +defs["ImFontAtlas_destroy"][1]["location"] = "imgui:2747" defs["ImFontAtlas_destroy"][1]["ov_cimguiname"] = "ImFontAtlas_destroy" defs["ImFontAtlas_destroy"][1]["realdestructor"] = true defs["ImFontAtlas_destroy"][1]["ret"] = "void" @@ -2964,7 +2982,7 @@ defs["ImFontConfig_ImFontConfig"][1]["cimguiname"] = "ImFontConfig_ImFontConfig" defs["ImFontConfig_ImFontConfig"][1]["constructor"] = true defs["ImFontConfig_ImFontConfig"][1]["defaults"] = {} defs["ImFontConfig_ImFontConfig"][1]["funcname"] = "ImFontConfig" -defs["ImFontConfig_ImFontConfig"][1]["location"] = "imgui:2567" +defs["ImFontConfig_ImFontConfig"][1]["location"] = "imgui:2674" defs["ImFontConfig_ImFontConfig"][1]["ov_cimguiname"] = "ImFontConfig_ImFontConfig" defs["ImFontConfig_ImFontConfig"][1]["signature"] = "()" defs["ImFontConfig_ImFontConfig"][1]["stname"] = "ImFontConfig" @@ -3000,7 +3018,7 @@ defs["ImFontGlyphRangesBuilder_AddChar"][1]["call_args"] = "(c)" defs["ImFontGlyphRangesBuilder_AddChar"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddChar" defs["ImFontGlyphRangesBuilder_AddChar"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_AddChar"][1]["funcname"] = "AddChar" -defs["ImFontGlyphRangesBuilder_AddChar"][1]["location"] = "imgui:2592" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["location"] = "imgui:2699" defs["ImFontGlyphRangesBuilder_AddChar"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddChar" defs["ImFontGlyphRangesBuilder_AddChar"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_AddChar"][1]["signature"] = "(ImWchar)" @@ -3021,7 +3039,7 @@ defs["ImFontGlyphRangesBuilder_AddRanges"][1]["call_args"] = "(ranges)" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddRanges" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_AddRanges"][1]["funcname"] = "AddRanges" -defs["ImFontGlyphRangesBuilder_AddRanges"][1]["location"] = "imgui:2594" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["location"] = "imgui:2701" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddRanges" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_AddRanges"][1]["signature"] = "(const ImWchar*)" @@ -3046,7 +3064,7 @@ defs["ImFontGlyphRangesBuilder_AddText"][1]["cimguiname"] = "ImFontGlyphRangesBu defs["ImFontGlyphRangesBuilder_AddText"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_AddText"][1]["defaults"]["text_end"] = "NULL" defs["ImFontGlyphRangesBuilder_AddText"][1]["funcname"] = "AddText" -defs["ImFontGlyphRangesBuilder_AddText"][1]["location"] = "imgui:2593" +defs["ImFontGlyphRangesBuilder_AddText"][1]["location"] = "imgui:2700" defs["ImFontGlyphRangesBuilder_AddText"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddText" defs["ImFontGlyphRangesBuilder_AddText"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_AddText"][1]["signature"] = "(const char*,const char*)" @@ -3067,7 +3085,7 @@ defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["call_args"] = "(out_ranges)" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_BuildRanges" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["funcname"] = "BuildRanges" -defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["location"] = "imgui:2595" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["location"] = "imgui:2702" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_BuildRanges" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["signature"] = "(ImVector_ImWchar*)" @@ -3085,7 +3103,7 @@ defs["ImFontGlyphRangesBuilder_Clear"][1]["call_args"] = "()" defs["ImFontGlyphRangesBuilder_Clear"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_Clear" defs["ImFontGlyphRangesBuilder_Clear"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_Clear"][1]["funcname"] = "Clear" -defs["ImFontGlyphRangesBuilder_Clear"][1]["location"] = "imgui:2589" +defs["ImFontGlyphRangesBuilder_Clear"][1]["location"] = "imgui:2696" defs["ImFontGlyphRangesBuilder_Clear"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_Clear" defs["ImFontGlyphRangesBuilder_Clear"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_Clear"][1]["signature"] = "()" @@ -3106,7 +3124,7 @@ defs["ImFontGlyphRangesBuilder_GetBit"][1]["call_args"] = "(n)" defs["ImFontGlyphRangesBuilder_GetBit"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_GetBit" defs["ImFontGlyphRangesBuilder_GetBit"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_GetBit"][1]["funcname"] = "GetBit" -defs["ImFontGlyphRangesBuilder_GetBit"][1]["location"] = "imgui:2590" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["location"] = "imgui:2697" defs["ImFontGlyphRangesBuilder_GetBit"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_GetBit" defs["ImFontGlyphRangesBuilder_GetBit"][1]["ret"] = "bool" defs["ImFontGlyphRangesBuilder_GetBit"][1]["signature"] = "(size_t)const" @@ -3122,7 +3140,7 @@ defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["cimguiname"] = "Im defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["constructor"] = true defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["funcname"] = "ImFontGlyphRangesBuilder" -defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["location"] = "imgui:2588" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["location"] = "imgui:2695" defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder" defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["signature"] = "()" defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["stname"] = "ImFontGlyphRangesBuilder" @@ -3142,7 +3160,7 @@ defs["ImFontGlyphRangesBuilder_SetBit"][1]["call_args"] = "(n)" defs["ImFontGlyphRangesBuilder_SetBit"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_SetBit" defs["ImFontGlyphRangesBuilder_SetBit"][1]["defaults"] = {} defs["ImFontGlyphRangesBuilder_SetBit"][1]["funcname"] = "SetBit" -defs["ImFontGlyphRangesBuilder_SetBit"][1]["location"] = "imgui:2591" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["location"] = "imgui:2698" defs["ImFontGlyphRangesBuilder_SetBit"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_SetBit" defs["ImFontGlyphRangesBuilder_SetBit"][1]["ret"] = "void" defs["ImFontGlyphRangesBuilder_SetBit"][1]["signature"] = "(size_t)" @@ -3209,7 +3227,7 @@ defs["ImFont_AddGlyph"][1]["call_args"] = "(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,ad defs["ImFont_AddGlyph"][1]["cimguiname"] = "ImFont_AddGlyph" defs["ImFont_AddGlyph"][1]["defaults"] = {} defs["ImFont_AddGlyph"][1]["funcname"] = "AddGlyph" -defs["ImFont_AddGlyph"][1]["location"] = "imgui:2784" +defs["ImFont_AddGlyph"][1]["location"] = "imgui:2891" defs["ImFont_AddGlyph"][1]["ov_cimguiname"] = "ImFont_AddGlyph" defs["ImFont_AddGlyph"][1]["ret"] = "void" defs["ImFont_AddGlyph"][1]["signature"] = "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)" @@ -3237,7 +3255,7 @@ defs["ImFont_AddRemapChar"][1]["cimguiname"] = "ImFont_AddRemapChar" defs["ImFont_AddRemapChar"][1]["defaults"] = {} defs["ImFont_AddRemapChar"][1]["defaults"]["overwrite_dst"] = "true" defs["ImFont_AddRemapChar"][1]["funcname"] = "AddRemapChar" -defs["ImFont_AddRemapChar"][1]["location"] = "imgui:2785" +defs["ImFont_AddRemapChar"][1]["location"] = "imgui:2892" defs["ImFont_AddRemapChar"][1]["ov_cimguiname"] = "ImFont_AddRemapChar" defs["ImFont_AddRemapChar"][1]["ret"] = "void" defs["ImFont_AddRemapChar"][1]["signature"] = "(ImWchar,ImWchar,bool)" @@ -3255,7 +3273,7 @@ defs["ImFont_BuildLookupTable"][1]["call_args"] = "()" defs["ImFont_BuildLookupTable"][1]["cimguiname"] = "ImFont_BuildLookupTable" defs["ImFont_BuildLookupTable"][1]["defaults"] = {} defs["ImFont_BuildLookupTable"][1]["funcname"] = "BuildLookupTable" -defs["ImFont_BuildLookupTable"][1]["location"] = "imgui:2781" +defs["ImFont_BuildLookupTable"][1]["location"] = "imgui:2888" defs["ImFont_BuildLookupTable"][1]["ov_cimguiname"] = "ImFont_BuildLookupTable" defs["ImFont_BuildLookupTable"][1]["ret"] = "void" defs["ImFont_BuildLookupTable"][1]["signature"] = "()" @@ -3296,7 +3314,7 @@ defs["ImFont_CalcTextSizeA"][1]["defaults"] = {} defs["ImFont_CalcTextSizeA"][1]["defaults"]["remaining"] = "NULL" defs["ImFont_CalcTextSizeA"][1]["defaults"]["text_end"] = "NULL" defs["ImFont_CalcTextSizeA"][1]["funcname"] = "CalcTextSizeA" -defs["ImFont_CalcTextSizeA"][1]["location"] = "imgui:2775" +defs["ImFont_CalcTextSizeA"][1]["location"] = "imgui:2882" defs["ImFont_CalcTextSizeA"][1]["nonUDT"] = 1 defs["ImFont_CalcTextSizeA"][1]["ov_cimguiname"] = "ImFont_CalcTextSizeA" defs["ImFont_CalcTextSizeA"][1]["ret"] = "void" @@ -3327,7 +3345,7 @@ defs["ImFont_CalcWordWrapPositionA"][1]["call_args"] = "(scale,text,text_end,wra defs["ImFont_CalcWordWrapPositionA"][1]["cimguiname"] = "ImFont_CalcWordWrapPositionA" defs["ImFont_CalcWordWrapPositionA"][1]["defaults"] = {} defs["ImFont_CalcWordWrapPositionA"][1]["funcname"] = "CalcWordWrapPositionA" -defs["ImFont_CalcWordWrapPositionA"][1]["location"] = "imgui:2776" +defs["ImFont_CalcWordWrapPositionA"][1]["location"] = "imgui:2883" defs["ImFont_CalcWordWrapPositionA"][1]["ov_cimguiname"] = "ImFont_CalcWordWrapPositionA" defs["ImFont_CalcWordWrapPositionA"][1]["ret"] = "const char*" defs["ImFont_CalcWordWrapPositionA"][1]["signature"] = "(float,const char*,const char*,float)const" @@ -3345,7 +3363,7 @@ defs["ImFont_ClearOutputData"][1]["call_args"] = "()" defs["ImFont_ClearOutputData"][1]["cimguiname"] = "ImFont_ClearOutputData" defs["ImFont_ClearOutputData"][1]["defaults"] = {} defs["ImFont_ClearOutputData"][1]["funcname"] = "ClearOutputData" -defs["ImFont_ClearOutputData"][1]["location"] = "imgui:2782" +defs["ImFont_ClearOutputData"][1]["location"] = "imgui:2889" defs["ImFont_ClearOutputData"][1]["ov_cimguiname"] = "ImFont_ClearOutputData" defs["ImFont_ClearOutputData"][1]["ret"] = "void" defs["ImFont_ClearOutputData"][1]["signature"] = "()" @@ -3366,7 +3384,7 @@ defs["ImFont_FindGlyph"][1]["call_args"] = "(c)" defs["ImFont_FindGlyph"][1]["cimguiname"] = "ImFont_FindGlyph" defs["ImFont_FindGlyph"][1]["defaults"] = {} defs["ImFont_FindGlyph"][1]["funcname"] = "FindGlyph" -defs["ImFont_FindGlyph"][1]["location"] = "imgui:2767" +defs["ImFont_FindGlyph"][1]["location"] = "imgui:2874" defs["ImFont_FindGlyph"][1]["ov_cimguiname"] = "ImFont_FindGlyph" defs["ImFont_FindGlyph"][1]["ret"] = "const ImFontGlyph*" defs["ImFont_FindGlyph"][1]["signature"] = "(ImWchar)const" @@ -3387,7 +3405,7 @@ defs["ImFont_FindGlyphNoFallback"][1]["call_args"] = "(c)" defs["ImFont_FindGlyphNoFallback"][1]["cimguiname"] = "ImFont_FindGlyphNoFallback" defs["ImFont_FindGlyphNoFallback"][1]["defaults"] = {} defs["ImFont_FindGlyphNoFallback"][1]["funcname"] = "FindGlyphNoFallback" -defs["ImFont_FindGlyphNoFallback"][1]["location"] = "imgui:2768" +defs["ImFont_FindGlyphNoFallback"][1]["location"] = "imgui:2875" defs["ImFont_FindGlyphNoFallback"][1]["ov_cimguiname"] = "ImFont_FindGlyphNoFallback" defs["ImFont_FindGlyphNoFallback"][1]["ret"] = "const ImFontGlyph*" defs["ImFont_FindGlyphNoFallback"][1]["signature"] = "(ImWchar)const" @@ -3408,7 +3426,7 @@ defs["ImFont_GetCharAdvance"][1]["call_args"] = "(c)" defs["ImFont_GetCharAdvance"][1]["cimguiname"] = "ImFont_GetCharAdvance" defs["ImFont_GetCharAdvance"][1]["defaults"] = {} defs["ImFont_GetCharAdvance"][1]["funcname"] = "GetCharAdvance" -defs["ImFont_GetCharAdvance"][1]["location"] = "imgui:2769" +defs["ImFont_GetCharAdvance"][1]["location"] = "imgui:2876" defs["ImFont_GetCharAdvance"][1]["ov_cimguiname"] = "ImFont_GetCharAdvance" defs["ImFont_GetCharAdvance"][1]["ret"] = "float" defs["ImFont_GetCharAdvance"][1]["signature"] = "(ImWchar)const" @@ -3426,7 +3444,7 @@ defs["ImFont_GetDebugName"][1]["call_args"] = "()" defs["ImFont_GetDebugName"][1]["cimguiname"] = "ImFont_GetDebugName" defs["ImFont_GetDebugName"][1]["defaults"] = {} defs["ImFont_GetDebugName"][1]["funcname"] = "GetDebugName" -defs["ImFont_GetDebugName"][1]["location"] = "imgui:2771" +defs["ImFont_GetDebugName"][1]["location"] = "imgui:2878" defs["ImFont_GetDebugName"][1]["ov_cimguiname"] = "ImFont_GetDebugName" defs["ImFont_GetDebugName"][1]["ret"] = "const char*" defs["ImFont_GetDebugName"][1]["signature"] = "()const" @@ -3447,7 +3465,7 @@ defs["ImFont_GrowIndex"][1]["call_args"] = "(new_size)" defs["ImFont_GrowIndex"][1]["cimguiname"] = "ImFont_GrowIndex" defs["ImFont_GrowIndex"][1]["defaults"] = {} defs["ImFont_GrowIndex"][1]["funcname"] = "GrowIndex" -defs["ImFont_GrowIndex"][1]["location"] = "imgui:2783" +defs["ImFont_GrowIndex"][1]["location"] = "imgui:2890" defs["ImFont_GrowIndex"][1]["ov_cimguiname"] = "ImFont_GrowIndex" defs["ImFont_GrowIndex"][1]["ret"] = "void" defs["ImFont_GrowIndex"][1]["signature"] = "(int)" @@ -3463,7 +3481,7 @@ defs["ImFont_ImFont"][1]["cimguiname"] = "ImFont_ImFont" defs["ImFont_ImFont"][1]["constructor"] = true defs["ImFont_ImFont"][1]["defaults"] = {} defs["ImFont_ImFont"][1]["funcname"] = "ImFont" -defs["ImFont_ImFont"][1]["location"] = "imgui:2765" +defs["ImFont_ImFont"][1]["location"] = "imgui:2872" defs["ImFont_ImFont"][1]["ov_cimguiname"] = "ImFont_ImFont" defs["ImFont_ImFont"][1]["signature"] = "()" defs["ImFont_ImFont"][1]["stname"] = "ImFont" @@ -3486,7 +3504,7 @@ defs["ImFont_IsGlyphRangeUnused"][1]["call_args"] = "(c_begin,c_last)" defs["ImFont_IsGlyphRangeUnused"][1]["cimguiname"] = "ImFont_IsGlyphRangeUnused" defs["ImFont_IsGlyphRangeUnused"][1]["defaults"] = {} defs["ImFont_IsGlyphRangeUnused"][1]["funcname"] = "IsGlyphRangeUnused" -defs["ImFont_IsGlyphRangeUnused"][1]["location"] = "imgui:2787" +defs["ImFont_IsGlyphRangeUnused"][1]["location"] = "imgui:2894" defs["ImFont_IsGlyphRangeUnused"][1]["ov_cimguiname"] = "ImFont_IsGlyphRangeUnused" defs["ImFont_IsGlyphRangeUnused"][1]["ret"] = "bool" defs["ImFont_IsGlyphRangeUnused"][1]["signature"] = "(unsigned int,unsigned int)" @@ -3504,7 +3522,7 @@ defs["ImFont_IsLoaded"][1]["call_args"] = "()" defs["ImFont_IsLoaded"][1]["cimguiname"] = "ImFont_IsLoaded" defs["ImFont_IsLoaded"][1]["defaults"] = {} defs["ImFont_IsLoaded"][1]["funcname"] = "IsLoaded" -defs["ImFont_IsLoaded"][1]["location"] = "imgui:2770" +defs["ImFont_IsLoaded"][1]["location"] = "imgui:2877" defs["ImFont_IsLoaded"][1]["ov_cimguiname"] = "ImFont_IsLoaded" defs["ImFont_IsLoaded"][1]["ret"] = "bool" defs["ImFont_IsLoaded"][1]["signature"] = "()const" @@ -3512,7 +3530,7 @@ defs["ImFont_IsLoaded"][1]["stname"] = "ImFont" defs["ImFont_IsLoaded"]["()const"] = defs["ImFont_IsLoaded"][1] defs["ImFont_RenderChar"] = {} defs["ImFont_RenderChar"][1] = {} -defs["ImFont_RenderChar"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c)" +defs["ImFont_RenderChar"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)" defs["ImFont_RenderChar"][1]["argsT"] = {} defs["ImFont_RenderChar"][1]["argsT"][1] = {} defs["ImFont_RenderChar"][1]["argsT"][1]["name"] = "self" @@ -3525,27 +3543,27 @@ defs["ImFont_RenderChar"][1]["argsT"][3]["name"] = "size" defs["ImFont_RenderChar"][1]["argsT"][3]["type"] = "float" defs["ImFont_RenderChar"][1]["argsT"][4] = {} defs["ImFont_RenderChar"][1]["argsT"][4]["name"] = "pos" -defs["ImFont_RenderChar"][1]["argsT"][4]["type"] = "ImVec2" +defs["ImFont_RenderChar"][1]["argsT"][4]["type"] = "const ImVec2" defs["ImFont_RenderChar"][1]["argsT"][5] = {} defs["ImFont_RenderChar"][1]["argsT"][5]["name"] = "col" defs["ImFont_RenderChar"][1]["argsT"][5]["type"] = "ImU32" defs["ImFont_RenderChar"][1]["argsT"][6] = {} defs["ImFont_RenderChar"][1]["argsT"][6]["name"] = "c" defs["ImFont_RenderChar"][1]["argsT"][6]["type"] = "ImWchar" -defs["ImFont_RenderChar"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c)" +defs["ImFont_RenderChar"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)" defs["ImFont_RenderChar"][1]["call_args"] = "(draw_list,size,pos,col,c)" defs["ImFont_RenderChar"][1]["cimguiname"] = "ImFont_RenderChar" defs["ImFont_RenderChar"][1]["defaults"] = {} defs["ImFont_RenderChar"][1]["funcname"] = "RenderChar" -defs["ImFont_RenderChar"][1]["location"] = "imgui:2777" +defs["ImFont_RenderChar"][1]["location"] = "imgui:2884" defs["ImFont_RenderChar"][1]["ov_cimguiname"] = "ImFont_RenderChar" defs["ImFont_RenderChar"][1]["ret"] = "void" -defs["ImFont_RenderChar"][1]["signature"] = "(ImDrawList*,float,ImVec2,ImU32,ImWchar)const" +defs["ImFont_RenderChar"][1]["signature"] = "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const" defs["ImFont_RenderChar"][1]["stname"] = "ImFont" -defs["ImFont_RenderChar"]["(ImDrawList*,float,ImVec2,ImU32,ImWchar)const"] = defs["ImFont_RenderChar"][1] +defs["ImFont_RenderChar"]["(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const"] = defs["ImFont_RenderChar"][1] defs["ImFont_RenderText"] = {} defs["ImFont_RenderText"][1] = {} -defs["ImFont_RenderText"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)" +defs["ImFont_RenderText"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)" defs["ImFont_RenderText"][1]["argsT"] = {} defs["ImFont_RenderText"][1]["argsT"][1] = {} defs["ImFont_RenderText"][1]["argsT"][1]["name"] = "self" @@ -3558,7 +3576,7 @@ defs["ImFont_RenderText"][1]["argsT"][3]["name"] = "size" defs["ImFont_RenderText"][1]["argsT"][3]["type"] = "float" defs["ImFont_RenderText"][1]["argsT"][4] = {} defs["ImFont_RenderText"][1]["argsT"][4]["name"] = "pos" -defs["ImFont_RenderText"][1]["argsT"][4]["type"] = "ImVec2" +defs["ImFont_RenderText"][1]["argsT"][4]["type"] = "const ImVec2" defs["ImFont_RenderText"][1]["argsT"][5] = {} defs["ImFont_RenderText"][1]["argsT"][5]["name"] = "col" defs["ImFont_RenderText"][1]["argsT"][5]["type"] = "ImU32" @@ -3577,19 +3595,19 @@ defs["ImFont_RenderText"][1]["argsT"][9]["type"] = "float" defs["ImFont_RenderText"][1]["argsT"][10] = {} defs["ImFont_RenderText"][1]["argsT"][10]["name"] = "cpu_fine_clip" defs["ImFont_RenderText"][1]["argsT"][10]["type"] = "bool" -defs["ImFont_RenderText"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)" +defs["ImFont_RenderText"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)" defs["ImFont_RenderText"][1]["call_args"] = "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)" defs["ImFont_RenderText"][1]["cimguiname"] = "ImFont_RenderText" defs["ImFont_RenderText"][1]["defaults"] = {} defs["ImFont_RenderText"][1]["defaults"]["cpu_fine_clip"] = "false" defs["ImFont_RenderText"][1]["defaults"]["wrap_width"] = "0.0f" defs["ImFont_RenderText"][1]["funcname"] = "RenderText" -defs["ImFont_RenderText"][1]["location"] = "imgui:2778" +defs["ImFont_RenderText"][1]["location"] = "imgui:2885" defs["ImFont_RenderText"][1]["ov_cimguiname"] = "ImFont_RenderText" defs["ImFont_RenderText"][1]["ret"] = "void" -defs["ImFont_RenderText"][1]["signature"] = "(ImDrawList*,float,ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const" +defs["ImFont_RenderText"][1]["signature"] = "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const" defs["ImFont_RenderText"][1]["stname"] = "ImFont" -defs["ImFont_RenderText"]["(ImDrawList*,float,ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const"] = defs["ImFont_RenderText"][1] +defs["ImFont_RenderText"]["(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const"] = defs["ImFont_RenderText"][1] defs["ImFont_SetGlyphVisible"] = {} defs["ImFont_SetGlyphVisible"][1] = {} defs["ImFont_SetGlyphVisible"][1]["args"] = "(ImFont* self,ImWchar c,bool visible)" @@ -3608,7 +3626,7 @@ defs["ImFont_SetGlyphVisible"][1]["call_args"] = "(c,visible)" defs["ImFont_SetGlyphVisible"][1]["cimguiname"] = "ImFont_SetGlyphVisible" defs["ImFont_SetGlyphVisible"][1]["defaults"] = {} defs["ImFont_SetGlyphVisible"][1]["funcname"] = "SetGlyphVisible" -defs["ImFont_SetGlyphVisible"][1]["location"] = "imgui:2786" +defs["ImFont_SetGlyphVisible"][1]["location"] = "imgui:2893" defs["ImFont_SetGlyphVisible"][1]["ov_cimguiname"] = "ImFont_SetGlyphVisible" defs["ImFont_SetGlyphVisible"][1]["ret"] = "void" defs["ImFont_SetGlyphVisible"][1]["signature"] = "(ImWchar,bool)" @@ -3625,7 +3643,7 @@ defs["ImFont_destroy"][1]["call_args"] = "(self)" defs["ImFont_destroy"][1]["cimguiname"] = "ImFont_destroy" defs["ImFont_destroy"][1]["defaults"] = {} defs["ImFont_destroy"][1]["destructor"] = true -defs["ImFont_destroy"][1]["location"] = "imgui:2766" +defs["ImFont_destroy"][1]["location"] = "imgui:2873" defs["ImFont_destroy"][1]["ov_cimguiname"] = "ImFont_destroy" defs["ImFont_destroy"][1]["realdestructor"] = true defs["ImFont_destroy"][1]["ret"] = "void" @@ -3647,7 +3665,7 @@ defs["ImGuiIO_AddFocusEvent"][1]["call_args"] = "(focused)" defs["ImGuiIO_AddFocusEvent"][1]["cimguiname"] = "ImGuiIO_AddFocusEvent" defs["ImGuiIO_AddFocusEvent"][1]["defaults"] = {} defs["ImGuiIO_AddFocusEvent"][1]["funcname"] = "AddFocusEvent" -defs["ImGuiIO_AddFocusEvent"][1]["location"] = "imgui:1898" +defs["ImGuiIO_AddFocusEvent"][1]["location"] = "imgui:1974" defs["ImGuiIO_AddFocusEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddFocusEvent" defs["ImGuiIO_AddFocusEvent"][1]["ret"] = "void" defs["ImGuiIO_AddFocusEvent"][1]["signature"] = "(bool)" @@ -3668,7 +3686,7 @@ defs["ImGuiIO_AddInputCharacter"][1]["call_args"] = "(c)" defs["ImGuiIO_AddInputCharacter"][1]["cimguiname"] = "ImGuiIO_AddInputCharacter" defs["ImGuiIO_AddInputCharacter"][1]["defaults"] = {} defs["ImGuiIO_AddInputCharacter"][1]["funcname"] = "AddInputCharacter" -defs["ImGuiIO_AddInputCharacter"][1]["location"] = "imgui:1895" +defs["ImGuiIO_AddInputCharacter"][1]["location"] = "imgui:1975" defs["ImGuiIO_AddInputCharacter"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharacter" defs["ImGuiIO_AddInputCharacter"][1]["ret"] = "void" defs["ImGuiIO_AddInputCharacter"][1]["signature"] = "(unsigned int)" @@ -3689,7 +3707,7 @@ defs["ImGuiIO_AddInputCharacterUTF16"][1]["call_args"] = "(c)" defs["ImGuiIO_AddInputCharacterUTF16"][1]["cimguiname"] = "ImGuiIO_AddInputCharacterUTF16" defs["ImGuiIO_AddInputCharacterUTF16"][1]["defaults"] = {} defs["ImGuiIO_AddInputCharacterUTF16"][1]["funcname"] = "AddInputCharacterUTF16" -defs["ImGuiIO_AddInputCharacterUTF16"][1]["location"] = "imgui:1896" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["location"] = "imgui:1976" defs["ImGuiIO_AddInputCharacterUTF16"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharacterUTF16" defs["ImGuiIO_AddInputCharacterUTF16"][1]["ret"] = "void" defs["ImGuiIO_AddInputCharacterUTF16"][1]["signature"] = "(ImWchar16)" @@ -3710,12 +3728,135 @@ defs["ImGuiIO_AddInputCharactersUTF8"][1]["call_args"] = "(str)" defs["ImGuiIO_AddInputCharactersUTF8"][1]["cimguiname"] = "ImGuiIO_AddInputCharactersUTF8" defs["ImGuiIO_AddInputCharactersUTF8"][1]["defaults"] = {} defs["ImGuiIO_AddInputCharactersUTF8"][1]["funcname"] = "AddInputCharactersUTF8" -defs["ImGuiIO_AddInputCharactersUTF8"][1]["location"] = "imgui:1897" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["location"] = "imgui:1977" defs["ImGuiIO_AddInputCharactersUTF8"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharactersUTF8" defs["ImGuiIO_AddInputCharactersUTF8"][1]["ret"] = "void" defs["ImGuiIO_AddInputCharactersUTF8"][1]["signature"] = "(const char*)" defs["ImGuiIO_AddInputCharactersUTF8"][1]["stname"] = "ImGuiIO" defs["ImGuiIO_AddInputCharactersUTF8"]["(const char*)"] = defs["ImGuiIO_AddInputCharactersUTF8"][1] +defs["ImGuiIO_AddKeyAnalogEvent"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,bool down,float v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4]["name"] = "v" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4]["type"] = "float" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsoriginal"] = "(ImGuiKey key,bool down,float v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["call_args"] = "(key,down,v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["cimguiname"] = "ImGuiIO_AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["funcname"] = "AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["location"] = "imgui:1970" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["signature"] = "(ImGuiKey,bool,float)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddKeyAnalogEvent"]["(ImGuiKey,bool,float)"] = defs["ImGuiIO_AddKeyAnalogEvent"][1] +defs["ImGuiIO_AddKeyEvent"] = {} +defs["ImGuiIO_AddKeyEvent"][1] = {} +defs["ImGuiIO_AddKeyEvent"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,bool down)" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddKeyEvent"][1]["argsoriginal"] = "(ImGuiKey key,bool down)" +defs["ImGuiIO_AddKeyEvent"][1]["call_args"] = "(key,down)" +defs["ImGuiIO_AddKeyEvent"][1]["cimguiname"] = "ImGuiIO_AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddKeyEvent"][1]["funcname"] = "AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["location"] = "imgui:1969" +defs["ImGuiIO_AddKeyEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddKeyEvent"][1]["signature"] = "(ImGuiKey,bool)" +defs["ImGuiIO_AddKeyEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddKeyEvent"]["(ImGuiKey,bool)"] = defs["ImGuiIO_AddKeyEvent"][1] +defs["ImGuiIO_AddMouseButtonEvent"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["args"] = "(ImGuiIO* self,int button,bool down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2]["name"] = "button" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2]["type"] = "int" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsoriginal"] = "(int button,bool down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["call_args"] = "(button,down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["funcname"] = "AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["location"] = "imgui:1972" +defs["ImGuiIO_AddMouseButtonEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseButtonEvent"][1]["signature"] = "(int,bool)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseButtonEvent"]["(int,bool)"] = defs["ImGuiIO_AddMouseButtonEvent"][1] +defs["ImGuiIO_AddMousePosEvent"] = {} +defs["ImGuiIO_AddMousePosEvent"][1] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["args"] = "(ImGuiIO* self,float x,float y)" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2]["name"] = "x" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2]["type"] = "float" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3]["name"] = "y" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3]["type"] = "float" +defs["ImGuiIO_AddMousePosEvent"][1]["argsoriginal"] = "(float x,float y)" +defs["ImGuiIO_AddMousePosEvent"][1]["call_args"] = "(x,y)" +defs["ImGuiIO_AddMousePosEvent"][1]["cimguiname"] = "ImGuiIO_AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["funcname"] = "AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["location"] = "imgui:1971" +defs["ImGuiIO_AddMousePosEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMousePosEvent"][1]["signature"] = "(float,float)" +defs["ImGuiIO_AddMousePosEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMousePosEvent"]["(float,float)"] = defs["ImGuiIO_AddMousePosEvent"][1] +defs["ImGuiIO_AddMouseWheelEvent"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["args"] = "(ImGuiIO* self,float wh_x,float wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2]["name"] = "wh_x" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2]["type"] = "float" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3]["name"] = "wh_y" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3]["type"] = "float" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsoriginal"] = "(float wh_x,float wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["call_args"] = "(wh_x,wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["funcname"] = "AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["location"] = "imgui:1973" +defs["ImGuiIO_AddMouseWheelEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseWheelEvent"][1]["signature"] = "(float,float)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseWheelEvent"]["(float,float)"] = defs["ImGuiIO_AddMouseWheelEvent"][1] defs["ImGuiIO_ClearInputCharacters"] = {} defs["ImGuiIO_ClearInputCharacters"][1] = {} defs["ImGuiIO_ClearInputCharacters"][1]["args"] = "(ImGuiIO* self)" @@ -3728,7 +3869,7 @@ defs["ImGuiIO_ClearInputCharacters"][1]["call_args"] = "()" defs["ImGuiIO_ClearInputCharacters"][1]["cimguiname"] = "ImGuiIO_ClearInputCharacters" defs["ImGuiIO_ClearInputCharacters"][1]["defaults"] = {} defs["ImGuiIO_ClearInputCharacters"][1]["funcname"] = "ClearInputCharacters" -defs["ImGuiIO_ClearInputCharacters"][1]["location"] = "imgui:1899" +defs["ImGuiIO_ClearInputCharacters"][1]["location"] = "imgui:1981" defs["ImGuiIO_ClearInputCharacters"][1]["ov_cimguiname"] = "ImGuiIO_ClearInputCharacters" defs["ImGuiIO_ClearInputCharacters"][1]["ret"] = "void" defs["ImGuiIO_ClearInputCharacters"][1]["signature"] = "()" @@ -3746,7 +3887,7 @@ defs["ImGuiIO_ClearInputKeys"][1]["call_args"] = "()" defs["ImGuiIO_ClearInputKeys"][1]["cimguiname"] = "ImGuiIO_ClearInputKeys" defs["ImGuiIO_ClearInputKeys"][1]["defaults"] = {} defs["ImGuiIO_ClearInputKeys"][1]["funcname"] = "ClearInputKeys" -defs["ImGuiIO_ClearInputKeys"][1]["location"] = "imgui:1900" +defs["ImGuiIO_ClearInputKeys"][1]["location"] = "imgui:1982" defs["ImGuiIO_ClearInputKeys"][1]["ov_cimguiname"] = "ImGuiIO_ClearInputKeys" defs["ImGuiIO_ClearInputKeys"][1]["ret"] = "void" defs["ImGuiIO_ClearInputKeys"][1]["signature"] = "()" @@ -3762,11 +3903,63 @@ defs["ImGuiIO_ImGuiIO"][1]["cimguiname"] = "ImGuiIO_ImGuiIO" defs["ImGuiIO_ImGuiIO"][1]["constructor"] = true defs["ImGuiIO_ImGuiIO"][1]["defaults"] = {} defs["ImGuiIO_ImGuiIO"][1]["funcname"] = "ImGuiIO" -defs["ImGuiIO_ImGuiIO"][1]["location"] = "imgui:1953" +defs["ImGuiIO_ImGuiIO"][1]["location"] = "imgui:2055" defs["ImGuiIO_ImGuiIO"][1]["ov_cimguiname"] = "ImGuiIO_ImGuiIO" defs["ImGuiIO_ImGuiIO"][1]["signature"] = "()" defs["ImGuiIO_ImGuiIO"][1]["stname"] = "ImGuiIO" defs["ImGuiIO_ImGuiIO"]["()"] = defs["ImGuiIO_ImGuiIO"][1] +defs["ImGuiIO_SetAppAcceptingEvents"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["args"] = "(ImGuiIO* self,bool accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2]["name"] = "accepting_events" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2]["type"] = "bool" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsoriginal"] = "(bool accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["call_args"] = "(accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["cimguiname"] = "ImGuiIO_SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["defaults"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["funcname"] = "SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["location"] = "imgui:1980" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["ov_cimguiname"] = "ImGuiIO_SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["ret"] = "void" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["signature"] = "(bool)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_SetAppAcceptingEvents"]["(bool)"] = defs["ImGuiIO_SetAppAcceptingEvents"][1] +defs["ImGuiIO_SetKeyEventNativeData"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3]["name"] = "native_keycode" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4]["name"] = "native_scancode" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5]["name"] = "native_legacy_index" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsoriginal"] = "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["call_args"] = "(key,native_keycode,native_scancode,native_legacy_index)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["cimguiname"] = "ImGuiIO_SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["defaults"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["defaults"]["native_legacy_index"] = "-1" +defs["ImGuiIO_SetKeyEventNativeData"][1]["funcname"] = "SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["location"] = "imgui:1979" +defs["ImGuiIO_SetKeyEventNativeData"][1]["ov_cimguiname"] = "ImGuiIO_SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["ret"] = "void" +defs["ImGuiIO_SetKeyEventNativeData"][1]["signature"] = "(ImGuiKey,int,int,int)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_SetKeyEventNativeData"]["(ImGuiKey,int,int,int)"] = defs["ImGuiIO_SetKeyEventNativeData"][1] defs["ImGuiIO_destroy"] = {} defs["ImGuiIO_destroy"][1] = {} defs["ImGuiIO_destroy"][1]["args"] = "(ImGuiIO* self)" @@ -3795,7 +3988,7 @@ defs["ImGuiInputTextCallbackData_ClearSelection"][1]["call_args"] = "()" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["cimguiname"] = "ImGuiInputTextCallbackData_ClearSelection" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_ClearSelection"][1]["funcname"] = "ClearSelection" -defs["ImGuiInputTextCallbackData_ClearSelection"][1]["location"] = "imgui:1994" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["location"] = "imgui:2096" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_ClearSelection" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["ret"] = "void" defs["ImGuiInputTextCallbackData_ClearSelection"][1]["signature"] = "()" @@ -3819,7 +4012,7 @@ defs["ImGuiInputTextCallbackData_DeleteChars"][1]["call_args"] = "(pos,bytes_cou defs["ImGuiInputTextCallbackData_DeleteChars"][1]["cimguiname"] = "ImGuiInputTextCallbackData_DeleteChars" defs["ImGuiInputTextCallbackData_DeleteChars"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_DeleteChars"][1]["funcname"] = "DeleteChars" -defs["ImGuiInputTextCallbackData_DeleteChars"][1]["location"] = "imgui:1991" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["location"] = "imgui:2093" defs["ImGuiInputTextCallbackData_DeleteChars"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_DeleteChars" defs["ImGuiInputTextCallbackData_DeleteChars"][1]["ret"] = "void" defs["ImGuiInputTextCallbackData_DeleteChars"][1]["signature"] = "(int,int)" @@ -3837,7 +4030,7 @@ defs["ImGuiInputTextCallbackData_HasSelection"][1]["call_args"] = "()" defs["ImGuiInputTextCallbackData_HasSelection"][1]["cimguiname"] = "ImGuiInputTextCallbackData_HasSelection" defs["ImGuiInputTextCallbackData_HasSelection"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_HasSelection"][1]["funcname"] = "HasSelection" -defs["ImGuiInputTextCallbackData_HasSelection"][1]["location"] = "imgui:1995" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["location"] = "imgui:2097" defs["ImGuiInputTextCallbackData_HasSelection"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_HasSelection" defs["ImGuiInputTextCallbackData_HasSelection"][1]["ret"] = "bool" defs["ImGuiInputTextCallbackData_HasSelection"][1]["signature"] = "()const" @@ -3853,7 +4046,7 @@ defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["cimguiname"] = defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["constructor"] = true defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["funcname"] = "ImGuiInputTextCallbackData" -defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["location"] = "imgui:1990" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["location"] = "imgui:2092" defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData" defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["signature"] = "()" defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["stname"] = "ImGuiInputTextCallbackData" @@ -3880,7 +4073,7 @@ defs["ImGuiInputTextCallbackData_InsertChars"][1]["cimguiname"] = "ImGuiInputTex defs["ImGuiInputTextCallbackData_InsertChars"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_InsertChars"][1]["defaults"]["text_end"] = "NULL" defs["ImGuiInputTextCallbackData_InsertChars"][1]["funcname"] = "InsertChars" -defs["ImGuiInputTextCallbackData_InsertChars"][1]["location"] = "imgui:1992" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["location"] = "imgui:2094" defs["ImGuiInputTextCallbackData_InsertChars"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_InsertChars" defs["ImGuiInputTextCallbackData_InsertChars"][1]["ret"] = "void" defs["ImGuiInputTextCallbackData_InsertChars"][1]["signature"] = "(int,const char*,const char*)" @@ -3898,7 +4091,7 @@ defs["ImGuiInputTextCallbackData_SelectAll"][1]["call_args"] = "()" defs["ImGuiInputTextCallbackData_SelectAll"][1]["cimguiname"] = "ImGuiInputTextCallbackData_SelectAll" defs["ImGuiInputTextCallbackData_SelectAll"][1]["defaults"] = {} defs["ImGuiInputTextCallbackData_SelectAll"][1]["funcname"] = "SelectAll" -defs["ImGuiInputTextCallbackData_SelectAll"][1]["location"] = "imgui:1993" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["location"] = "imgui:2095" defs["ImGuiInputTextCallbackData_SelectAll"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_SelectAll" defs["ImGuiInputTextCallbackData_SelectAll"][1]["ret"] = "void" defs["ImGuiInputTextCallbackData_SelectAll"][1]["signature"] = "()" @@ -3939,7 +4132,7 @@ defs["ImGuiListClipper_Begin"][1]["cimguiname"] = "ImGuiListClipper_Begin" defs["ImGuiListClipper_Begin"][1]["defaults"] = {} defs["ImGuiListClipper_Begin"][1]["defaults"]["items_height"] = "-1.0f" defs["ImGuiListClipper_Begin"][1]["funcname"] = "Begin" -defs["ImGuiListClipper_Begin"][1]["location"] = "imgui:2206" +defs["ImGuiListClipper_Begin"][1]["location"] = "imgui:2308" defs["ImGuiListClipper_Begin"][1]["ov_cimguiname"] = "ImGuiListClipper_Begin" defs["ImGuiListClipper_Begin"][1]["ret"] = "void" defs["ImGuiListClipper_Begin"][1]["signature"] = "(int,float)" @@ -3957,7 +4150,7 @@ defs["ImGuiListClipper_End"][1]["call_args"] = "()" defs["ImGuiListClipper_End"][1]["cimguiname"] = "ImGuiListClipper_End" defs["ImGuiListClipper_End"][1]["defaults"] = {} defs["ImGuiListClipper_End"][1]["funcname"] = "End" -defs["ImGuiListClipper_End"][1]["location"] = "imgui:2207" +defs["ImGuiListClipper_End"][1]["location"] = "imgui:2309" defs["ImGuiListClipper_End"][1]["ov_cimguiname"] = "ImGuiListClipper_End" defs["ImGuiListClipper_End"][1]["ret"] = "void" defs["ImGuiListClipper_End"][1]["signature"] = "()" @@ -3981,7 +4174,7 @@ defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["call_args"] = "(item_min defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["cimguiname"] = "ImGuiListClipper_ForceDisplayRangeByIndices" defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["defaults"] = {} defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["funcname"] = "ForceDisplayRangeByIndices" -defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["location"] = "imgui:2211" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["location"] = "imgui:2313" defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["ov_cimguiname"] = "ImGuiListClipper_ForceDisplayRangeByIndices" defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["ret"] = "void" defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["signature"] = "(int,int)" @@ -3997,7 +4190,7 @@ defs["ImGuiListClipper_ImGuiListClipper"][1]["cimguiname"] = "ImGuiListClipper_I defs["ImGuiListClipper_ImGuiListClipper"][1]["constructor"] = true defs["ImGuiListClipper_ImGuiListClipper"][1]["defaults"] = {} defs["ImGuiListClipper_ImGuiListClipper"][1]["funcname"] = "ImGuiListClipper" -defs["ImGuiListClipper_ImGuiListClipper"][1]["location"] = "imgui:2204" +defs["ImGuiListClipper_ImGuiListClipper"][1]["location"] = "imgui:2306" defs["ImGuiListClipper_ImGuiListClipper"][1]["ov_cimguiname"] = "ImGuiListClipper_ImGuiListClipper" defs["ImGuiListClipper_ImGuiListClipper"][1]["signature"] = "()" defs["ImGuiListClipper_ImGuiListClipper"][1]["stname"] = "ImGuiListClipper" @@ -4014,7 +4207,7 @@ defs["ImGuiListClipper_Step"][1]["call_args"] = "()" defs["ImGuiListClipper_Step"][1]["cimguiname"] = "ImGuiListClipper_Step" defs["ImGuiListClipper_Step"][1]["defaults"] = {} defs["ImGuiListClipper_Step"][1]["funcname"] = "Step" -defs["ImGuiListClipper_Step"][1]["location"] = "imgui:2208" +defs["ImGuiListClipper_Step"][1]["location"] = "imgui:2310" defs["ImGuiListClipper_Step"][1]["ov_cimguiname"] = "ImGuiListClipper_Step" defs["ImGuiListClipper_Step"][1]["ret"] = "bool" defs["ImGuiListClipper_Step"][1]["signature"] = "()" @@ -4031,7 +4224,7 @@ defs["ImGuiListClipper_destroy"][1]["call_args"] = "(self)" defs["ImGuiListClipper_destroy"][1]["cimguiname"] = "ImGuiListClipper_destroy" defs["ImGuiListClipper_destroy"][1]["defaults"] = {} defs["ImGuiListClipper_destroy"][1]["destructor"] = true -defs["ImGuiListClipper_destroy"][1]["location"] = "imgui:2205" +defs["ImGuiListClipper_destroy"][1]["location"] = "imgui:2307" defs["ImGuiListClipper_destroy"][1]["ov_cimguiname"] = "ImGuiListClipper_destroy" defs["ImGuiListClipper_destroy"][1]["realdestructor"] = true defs["ImGuiListClipper_destroy"][1]["ret"] = "void" @@ -4048,7 +4241,7 @@ defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["cimguiname"] = "ImGuiOnceUpo defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["constructor"] = true defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["defaults"] = {} defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["funcname"] = "ImGuiOnceUponAFrame" -defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["location"] = "imgui:2070" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["location"] = "imgui:2172" defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["ov_cimguiname"] = "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame" defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["signature"] = "()" defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["stname"] = "ImGuiOnceUponAFrame" @@ -4081,7 +4274,7 @@ defs["ImGuiPayload_Clear"][1]["call_args"] = "()" defs["ImGuiPayload_Clear"][1]["cimguiname"] = "ImGuiPayload_Clear" defs["ImGuiPayload_Clear"][1]["defaults"] = {} defs["ImGuiPayload_Clear"][1]["funcname"] = "Clear" -defs["ImGuiPayload_Clear"][1]["location"] = "imgui:2024" +defs["ImGuiPayload_Clear"][1]["location"] = "imgui:2126" defs["ImGuiPayload_Clear"][1]["ov_cimguiname"] = "ImGuiPayload_Clear" defs["ImGuiPayload_Clear"][1]["ret"] = "void" defs["ImGuiPayload_Clear"][1]["signature"] = "()" @@ -4097,7 +4290,7 @@ defs["ImGuiPayload_ImGuiPayload"][1]["cimguiname"] = "ImGuiPayload_ImGuiPayload" defs["ImGuiPayload_ImGuiPayload"][1]["constructor"] = true defs["ImGuiPayload_ImGuiPayload"][1]["defaults"] = {} defs["ImGuiPayload_ImGuiPayload"][1]["funcname"] = "ImGuiPayload" -defs["ImGuiPayload_ImGuiPayload"][1]["location"] = "imgui:2023" +defs["ImGuiPayload_ImGuiPayload"][1]["location"] = "imgui:2125" defs["ImGuiPayload_ImGuiPayload"][1]["ov_cimguiname"] = "ImGuiPayload_ImGuiPayload" defs["ImGuiPayload_ImGuiPayload"][1]["signature"] = "()" defs["ImGuiPayload_ImGuiPayload"][1]["stname"] = "ImGuiPayload" @@ -4117,7 +4310,7 @@ defs["ImGuiPayload_IsDataType"][1]["call_args"] = "(type)" defs["ImGuiPayload_IsDataType"][1]["cimguiname"] = "ImGuiPayload_IsDataType" defs["ImGuiPayload_IsDataType"][1]["defaults"] = {} defs["ImGuiPayload_IsDataType"][1]["funcname"] = "IsDataType" -defs["ImGuiPayload_IsDataType"][1]["location"] = "imgui:2025" +defs["ImGuiPayload_IsDataType"][1]["location"] = "imgui:2127" defs["ImGuiPayload_IsDataType"][1]["ov_cimguiname"] = "ImGuiPayload_IsDataType" defs["ImGuiPayload_IsDataType"][1]["ret"] = "bool" defs["ImGuiPayload_IsDataType"][1]["signature"] = "(const char*)const" @@ -4135,7 +4328,7 @@ defs["ImGuiPayload_IsDelivery"][1]["call_args"] = "()" defs["ImGuiPayload_IsDelivery"][1]["cimguiname"] = "ImGuiPayload_IsDelivery" defs["ImGuiPayload_IsDelivery"][1]["defaults"] = {} defs["ImGuiPayload_IsDelivery"][1]["funcname"] = "IsDelivery" -defs["ImGuiPayload_IsDelivery"][1]["location"] = "imgui:2027" +defs["ImGuiPayload_IsDelivery"][1]["location"] = "imgui:2129" defs["ImGuiPayload_IsDelivery"][1]["ov_cimguiname"] = "ImGuiPayload_IsDelivery" defs["ImGuiPayload_IsDelivery"][1]["ret"] = "bool" defs["ImGuiPayload_IsDelivery"][1]["signature"] = "()const" @@ -4153,7 +4346,7 @@ defs["ImGuiPayload_IsPreview"][1]["call_args"] = "()" defs["ImGuiPayload_IsPreview"][1]["cimguiname"] = "ImGuiPayload_IsPreview" defs["ImGuiPayload_IsPreview"][1]["defaults"] = {} defs["ImGuiPayload_IsPreview"][1]["funcname"] = "IsPreview" -defs["ImGuiPayload_IsPreview"][1]["location"] = "imgui:2026" +defs["ImGuiPayload_IsPreview"][1]["location"] = "imgui:2128" defs["ImGuiPayload_IsPreview"][1]["ov_cimguiname"] = "ImGuiPayload_IsPreview" defs["ImGuiPayload_IsPreview"][1]["ret"] = "bool" defs["ImGuiPayload_IsPreview"][1]["signature"] = "()const" @@ -4175,6 +4368,37 @@ defs["ImGuiPayload_destroy"][1]["ret"] = "void" defs["ImGuiPayload_destroy"][1]["signature"] = "(ImGuiPayload*)" defs["ImGuiPayload_destroy"][1]["stname"] = "ImGuiPayload" defs["ImGuiPayload_destroy"]["(ImGuiPayload*)"] = defs["ImGuiPayload_destroy"][1] +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["args"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["argsT"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["argsoriginal"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["call_args"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["cimguiname"] = "ImGuiPlatformImeData_ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["constructor"] = true +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["defaults"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["funcname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["location"] = "imgui:2946" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["ov_cimguiname"] = "ImGuiPlatformImeData_ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["signature"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["stname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"]["()"] = defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1] +defs["ImGuiPlatformImeData_destroy"] = {} +defs["ImGuiPlatformImeData_destroy"][1] = {} +defs["ImGuiPlatformImeData_destroy"][1]["args"] = "(ImGuiPlatformImeData* self)" +defs["ImGuiPlatformImeData_destroy"][1]["argsT"] = {} +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1] = {} +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1]["type"] = "ImGuiPlatformImeData*" +defs["ImGuiPlatformImeData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPlatformImeData_destroy"][1]["cimguiname"] = "ImGuiPlatformImeData_destroy" +defs["ImGuiPlatformImeData_destroy"][1]["defaults"] = {} +defs["ImGuiPlatformImeData_destroy"][1]["destructor"] = true +defs["ImGuiPlatformImeData_destroy"][1]["ov_cimguiname"] = "ImGuiPlatformImeData_destroy" +defs["ImGuiPlatformImeData_destroy"][1]["ret"] = "void" +defs["ImGuiPlatformImeData_destroy"][1]["signature"] = "(ImGuiPlatformImeData*)" +defs["ImGuiPlatformImeData_destroy"][1]["stname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_destroy"]["(ImGuiPlatformImeData*)"] = defs["ImGuiPlatformImeData_destroy"][1] defs["ImGuiStoragePair_ImGuiStoragePair"] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][1] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][1]["args"] = "(ImGuiID _key,int _val_i)" @@ -4191,8 +4415,8 @@ defs["ImGuiStoragePair_ImGuiStoragePair"][1]["cimguiname"] = "ImGuiStoragePair_I defs["ImGuiStoragePair_ImGuiStoragePair"][1]["constructor"] = true defs["ImGuiStoragePair_ImGuiStoragePair"][1]["defaults"] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][1]["funcname"] = "ImGuiStoragePair" -defs["ImGuiStoragePair_ImGuiStoragePair"][1]["location"] = "imgui:2137" -defs["ImGuiStoragePair_ImGuiStoragePair"][1]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePairInt" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["location"] = "imgui:2239" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Int" defs["ImGuiStoragePair_ImGuiStoragePair"][1]["signature"] = "(ImGuiID,int)" defs["ImGuiStoragePair_ImGuiStoragePair"][1]["stname"] = "ImGuiStoragePair" defs["ImGuiStoragePair_ImGuiStoragePair"][2] = {} @@ -4210,8 +4434,8 @@ defs["ImGuiStoragePair_ImGuiStoragePair"][2]["cimguiname"] = "ImGuiStoragePair_I defs["ImGuiStoragePair_ImGuiStoragePair"][2]["constructor"] = true defs["ImGuiStoragePair_ImGuiStoragePair"][2]["defaults"] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][2]["funcname"] = "ImGuiStoragePair" -defs["ImGuiStoragePair_ImGuiStoragePair"][2]["location"] = "imgui:2138" -defs["ImGuiStoragePair_ImGuiStoragePair"][2]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePairFloat" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["location"] = "imgui:2240" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Float" defs["ImGuiStoragePair_ImGuiStoragePair"][2]["signature"] = "(ImGuiID,float)" defs["ImGuiStoragePair_ImGuiStoragePair"][2]["stname"] = "ImGuiStoragePair" defs["ImGuiStoragePair_ImGuiStoragePair"][3] = {} @@ -4229,8 +4453,8 @@ defs["ImGuiStoragePair_ImGuiStoragePair"][3]["cimguiname"] = "ImGuiStoragePair_I defs["ImGuiStoragePair_ImGuiStoragePair"][3]["constructor"] = true defs["ImGuiStoragePair_ImGuiStoragePair"][3]["defaults"] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][3]["funcname"] = "ImGuiStoragePair" -defs["ImGuiStoragePair_ImGuiStoragePair"][3]["location"] = "imgui:2139" -defs["ImGuiStoragePair_ImGuiStoragePair"][3]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePairPtr" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["location"] = "imgui:2241" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Ptr" defs["ImGuiStoragePair_ImGuiStoragePair"][3]["signature"] = "(ImGuiID,void*)" defs["ImGuiStoragePair_ImGuiStoragePair"][3]["stname"] = "ImGuiStoragePair" defs["ImGuiStoragePair_ImGuiStoragePair"]["(ImGuiID,float)"] = defs["ImGuiStoragePair_ImGuiStoragePair"][2] @@ -4264,7 +4488,7 @@ defs["ImGuiStorage_BuildSortByKey"][1]["call_args"] = "()" defs["ImGuiStorage_BuildSortByKey"][1]["cimguiname"] = "ImGuiStorage_BuildSortByKey" defs["ImGuiStorage_BuildSortByKey"][1]["defaults"] = {} defs["ImGuiStorage_BuildSortByKey"][1]["funcname"] = "BuildSortByKey" -defs["ImGuiStorage_BuildSortByKey"][1]["location"] = "imgui:2170" +defs["ImGuiStorage_BuildSortByKey"][1]["location"] = "imgui:2272" defs["ImGuiStorage_BuildSortByKey"][1]["ov_cimguiname"] = "ImGuiStorage_BuildSortByKey" defs["ImGuiStorage_BuildSortByKey"][1]["ret"] = "void" defs["ImGuiStorage_BuildSortByKey"][1]["signature"] = "()" @@ -4282,7 +4506,7 @@ defs["ImGuiStorage_Clear"][1]["call_args"] = "()" defs["ImGuiStorage_Clear"][1]["cimguiname"] = "ImGuiStorage_Clear" defs["ImGuiStorage_Clear"][1]["defaults"] = {} defs["ImGuiStorage_Clear"][1]["funcname"] = "Clear" -defs["ImGuiStorage_Clear"][1]["location"] = "imgui:2147" +defs["ImGuiStorage_Clear"][1]["location"] = "imgui:2249" defs["ImGuiStorage_Clear"][1]["ov_cimguiname"] = "ImGuiStorage_Clear" defs["ImGuiStorage_Clear"][1]["ret"] = "void" defs["ImGuiStorage_Clear"][1]["signature"] = "()" @@ -4307,7 +4531,7 @@ defs["ImGuiStorage_GetBool"][1]["cimguiname"] = "ImGuiStorage_GetBool" defs["ImGuiStorage_GetBool"][1]["defaults"] = {} defs["ImGuiStorage_GetBool"][1]["defaults"]["default_val"] = "false" defs["ImGuiStorage_GetBool"][1]["funcname"] = "GetBool" -defs["ImGuiStorage_GetBool"][1]["location"] = "imgui:2150" +defs["ImGuiStorage_GetBool"][1]["location"] = "imgui:2252" defs["ImGuiStorage_GetBool"][1]["ov_cimguiname"] = "ImGuiStorage_GetBool" defs["ImGuiStorage_GetBool"][1]["ret"] = "bool" defs["ImGuiStorage_GetBool"][1]["signature"] = "(ImGuiID,bool)const" @@ -4332,7 +4556,7 @@ defs["ImGuiStorage_GetBoolRef"][1]["cimguiname"] = "ImGuiStorage_GetBoolRef" defs["ImGuiStorage_GetBoolRef"][1]["defaults"] = {} defs["ImGuiStorage_GetBoolRef"][1]["defaults"]["default_val"] = "false" defs["ImGuiStorage_GetBoolRef"][1]["funcname"] = "GetBoolRef" -defs["ImGuiStorage_GetBoolRef"][1]["location"] = "imgui:2162" +defs["ImGuiStorage_GetBoolRef"][1]["location"] = "imgui:2264" defs["ImGuiStorage_GetBoolRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetBoolRef" defs["ImGuiStorage_GetBoolRef"][1]["ret"] = "bool*" defs["ImGuiStorage_GetBoolRef"][1]["signature"] = "(ImGuiID,bool)" @@ -4357,7 +4581,7 @@ defs["ImGuiStorage_GetFloat"][1]["cimguiname"] = "ImGuiStorage_GetFloat" defs["ImGuiStorage_GetFloat"][1]["defaults"] = {} defs["ImGuiStorage_GetFloat"][1]["defaults"]["default_val"] = "0.0f" defs["ImGuiStorage_GetFloat"][1]["funcname"] = "GetFloat" -defs["ImGuiStorage_GetFloat"][1]["location"] = "imgui:2152" +defs["ImGuiStorage_GetFloat"][1]["location"] = "imgui:2254" defs["ImGuiStorage_GetFloat"][1]["ov_cimguiname"] = "ImGuiStorage_GetFloat" defs["ImGuiStorage_GetFloat"][1]["ret"] = "float" defs["ImGuiStorage_GetFloat"][1]["signature"] = "(ImGuiID,float)const" @@ -4382,7 +4606,7 @@ defs["ImGuiStorage_GetFloatRef"][1]["cimguiname"] = "ImGuiStorage_GetFloatRef" defs["ImGuiStorage_GetFloatRef"][1]["defaults"] = {} defs["ImGuiStorage_GetFloatRef"][1]["defaults"]["default_val"] = "0.0f" defs["ImGuiStorage_GetFloatRef"][1]["funcname"] = "GetFloatRef" -defs["ImGuiStorage_GetFloatRef"][1]["location"] = "imgui:2163" +defs["ImGuiStorage_GetFloatRef"][1]["location"] = "imgui:2265" defs["ImGuiStorage_GetFloatRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetFloatRef" defs["ImGuiStorage_GetFloatRef"][1]["ret"] = "float*" defs["ImGuiStorage_GetFloatRef"][1]["signature"] = "(ImGuiID,float)" @@ -4407,7 +4631,7 @@ defs["ImGuiStorage_GetInt"][1]["cimguiname"] = "ImGuiStorage_GetInt" defs["ImGuiStorage_GetInt"][1]["defaults"] = {} defs["ImGuiStorage_GetInt"][1]["defaults"]["default_val"] = "0" defs["ImGuiStorage_GetInt"][1]["funcname"] = "GetInt" -defs["ImGuiStorage_GetInt"][1]["location"] = "imgui:2148" +defs["ImGuiStorage_GetInt"][1]["location"] = "imgui:2250" defs["ImGuiStorage_GetInt"][1]["ov_cimguiname"] = "ImGuiStorage_GetInt" defs["ImGuiStorage_GetInt"][1]["ret"] = "int" defs["ImGuiStorage_GetInt"][1]["signature"] = "(ImGuiID,int)const" @@ -4432,7 +4656,7 @@ defs["ImGuiStorage_GetIntRef"][1]["cimguiname"] = "ImGuiStorage_GetIntRef" defs["ImGuiStorage_GetIntRef"][1]["defaults"] = {} defs["ImGuiStorage_GetIntRef"][1]["defaults"]["default_val"] = "0" defs["ImGuiStorage_GetIntRef"][1]["funcname"] = "GetIntRef" -defs["ImGuiStorage_GetIntRef"][1]["location"] = "imgui:2161" +defs["ImGuiStorage_GetIntRef"][1]["location"] = "imgui:2263" defs["ImGuiStorage_GetIntRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetIntRef" defs["ImGuiStorage_GetIntRef"][1]["ret"] = "int*" defs["ImGuiStorage_GetIntRef"][1]["signature"] = "(ImGuiID,int)" @@ -4453,7 +4677,7 @@ defs["ImGuiStorage_GetVoidPtr"][1]["call_args"] = "(key)" defs["ImGuiStorage_GetVoidPtr"][1]["cimguiname"] = "ImGuiStorage_GetVoidPtr" defs["ImGuiStorage_GetVoidPtr"][1]["defaults"] = {} defs["ImGuiStorage_GetVoidPtr"][1]["funcname"] = "GetVoidPtr" -defs["ImGuiStorage_GetVoidPtr"][1]["location"] = "imgui:2154" +defs["ImGuiStorage_GetVoidPtr"][1]["location"] = "imgui:2256" defs["ImGuiStorage_GetVoidPtr"][1]["ov_cimguiname"] = "ImGuiStorage_GetVoidPtr" defs["ImGuiStorage_GetVoidPtr"][1]["ret"] = "void*" defs["ImGuiStorage_GetVoidPtr"][1]["signature"] = "(ImGuiID)const" @@ -4478,7 +4702,7 @@ defs["ImGuiStorage_GetVoidPtrRef"][1]["cimguiname"] = "ImGuiStorage_GetVoidPtrRe defs["ImGuiStorage_GetVoidPtrRef"][1]["defaults"] = {} defs["ImGuiStorage_GetVoidPtrRef"][1]["defaults"]["default_val"] = "NULL" defs["ImGuiStorage_GetVoidPtrRef"][1]["funcname"] = "GetVoidPtrRef" -defs["ImGuiStorage_GetVoidPtrRef"][1]["location"] = "imgui:2164" +defs["ImGuiStorage_GetVoidPtrRef"][1]["location"] = "imgui:2266" defs["ImGuiStorage_GetVoidPtrRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetVoidPtrRef" defs["ImGuiStorage_GetVoidPtrRef"][1]["ret"] = "void**" defs["ImGuiStorage_GetVoidPtrRef"][1]["signature"] = "(ImGuiID,void*)" @@ -4499,7 +4723,7 @@ defs["ImGuiStorage_SetAllInt"][1]["call_args"] = "(val)" defs["ImGuiStorage_SetAllInt"][1]["cimguiname"] = "ImGuiStorage_SetAllInt" defs["ImGuiStorage_SetAllInt"][1]["defaults"] = {} defs["ImGuiStorage_SetAllInt"][1]["funcname"] = "SetAllInt" -defs["ImGuiStorage_SetAllInt"][1]["location"] = "imgui:2167" +defs["ImGuiStorage_SetAllInt"][1]["location"] = "imgui:2269" defs["ImGuiStorage_SetAllInt"][1]["ov_cimguiname"] = "ImGuiStorage_SetAllInt" defs["ImGuiStorage_SetAllInt"][1]["ret"] = "void" defs["ImGuiStorage_SetAllInt"][1]["signature"] = "(int)" @@ -4523,7 +4747,7 @@ defs["ImGuiStorage_SetBool"][1]["call_args"] = "(key,val)" defs["ImGuiStorage_SetBool"][1]["cimguiname"] = "ImGuiStorage_SetBool" defs["ImGuiStorage_SetBool"][1]["defaults"] = {} defs["ImGuiStorage_SetBool"][1]["funcname"] = "SetBool" -defs["ImGuiStorage_SetBool"][1]["location"] = "imgui:2151" +defs["ImGuiStorage_SetBool"][1]["location"] = "imgui:2253" defs["ImGuiStorage_SetBool"][1]["ov_cimguiname"] = "ImGuiStorage_SetBool" defs["ImGuiStorage_SetBool"][1]["ret"] = "void" defs["ImGuiStorage_SetBool"][1]["signature"] = "(ImGuiID,bool)" @@ -4547,7 +4771,7 @@ defs["ImGuiStorage_SetFloat"][1]["call_args"] = "(key,val)" defs["ImGuiStorage_SetFloat"][1]["cimguiname"] = "ImGuiStorage_SetFloat" defs["ImGuiStorage_SetFloat"][1]["defaults"] = {} defs["ImGuiStorage_SetFloat"][1]["funcname"] = "SetFloat" -defs["ImGuiStorage_SetFloat"][1]["location"] = "imgui:2153" +defs["ImGuiStorage_SetFloat"][1]["location"] = "imgui:2255" defs["ImGuiStorage_SetFloat"][1]["ov_cimguiname"] = "ImGuiStorage_SetFloat" defs["ImGuiStorage_SetFloat"][1]["ret"] = "void" defs["ImGuiStorage_SetFloat"][1]["signature"] = "(ImGuiID,float)" @@ -4571,7 +4795,7 @@ defs["ImGuiStorage_SetInt"][1]["call_args"] = "(key,val)" defs["ImGuiStorage_SetInt"][1]["cimguiname"] = "ImGuiStorage_SetInt" defs["ImGuiStorage_SetInt"][1]["defaults"] = {} defs["ImGuiStorage_SetInt"][1]["funcname"] = "SetInt" -defs["ImGuiStorage_SetInt"][1]["location"] = "imgui:2149" +defs["ImGuiStorage_SetInt"][1]["location"] = "imgui:2251" defs["ImGuiStorage_SetInt"][1]["ov_cimguiname"] = "ImGuiStorage_SetInt" defs["ImGuiStorage_SetInt"][1]["ret"] = "void" defs["ImGuiStorage_SetInt"][1]["signature"] = "(ImGuiID,int)" @@ -4595,7 +4819,7 @@ defs["ImGuiStorage_SetVoidPtr"][1]["call_args"] = "(key,val)" defs["ImGuiStorage_SetVoidPtr"][1]["cimguiname"] = "ImGuiStorage_SetVoidPtr" defs["ImGuiStorage_SetVoidPtr"][1]["defaults"] = {} defs["ImGuiStorage_SetVoidPtr"][1]["funcname"] = "SetVoidPtr" -defs["ImGuiStorage_SetVoidPtr"][1]["location"] = "imgui:2155" +defs["ImGuiStorage_SetVoidPtr"][1]["location"] = "imgui:2257" defs["ImGuiStorage_SetVoidPtr"][1]["ov_cimguiname"] = "ImGuiStorage_SetVoidPtr" defs["ImGuiStorage_SetVoidPtr"][1]["ret"] = "void" defs["ImGuiStorage_SetVoidPtr"][1]["signature"] = "(ImGuiID,void*)" @@ -4611,7 +4835,7 @@ defs["ImGuiStyle_ImGuiStyle"][1]["cimguiname"] = "ImGuiStyle_ImGuiStyle" defs["ImGuiStyle_ImGuiStyle"][1]["constructor"] = true defs["ImGuiStyle_ImGuiStyle"][1]["defaults"] = {} defs["ImGuiStyle_ImGuiStyle"][1]["funcname"] = "ImGuiStyle" -defs["ImGuiStyle_ImGuiStyle"][1]["location"] = "imgui:1809" +defs["ImGuiStyle_ImGuiStyle"][1]["location"] = "imgui:1877" defs["ImGuiStyle_ImGuiStyle"][1]["ov_cimguiname"] = "ImGuiStyle_ImGuiStyle" defs["ImGuiStyle_ImGuiStyle"][1]["signature"] = "()" defs["ImGuiStyle_ImGuiStyle"][1]["stname"] = "ImGuiStyle" @@ -4631,7 +4855,7 @@ defs["ImGuiStyle_ScaleAllSizes"][1]["call_args"] = "(scale_factor)" defs["ImGuiStyle_ScaleAllSizes"][1]["cimguiname"] = "ImGuiStyle_ScaleAllSizes" defs["ImGuiStyle_ScaleAllSizes"][1]["defaults"] = {} defs["ImGuiStyle_ScaleAllSizes"][1]["funcname"] = "ScaleAllSizes" -defs["ImGuiStyle_ScaleAllSizes"][1]["location"] = "imgui:1810" +defs["ImGuiStyle_ScaleAllSizes"][1]["location"] = "imgui:1878" defs["ImGuiStyle_ScaleAllSizes"][1]["ov_cimguiname"] = "ImGuiStyle_ScaleAllSizes" defs["ImGuiStyle_ScaleAllSizes"][1]["ret"] = "void" defs["ImGuiStyle_ScaleAllSizes"][1]["signature"] = "(float)" @@ -4663,7 +4887,7 @@ defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["cimguiname"] = " defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["constructor"] = true defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["defaults"] = {} defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["funcname"] = "ImGuiTableColumnSortSpecs" -defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["location"] = "imgui:2038" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["location"] = "imgui:2140" defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["ov_cimguiname"] = "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs" defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["signature"] = "()" defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["stname"] = "ImGuiTableColumnSortSpecs" @@ -4694,7 +4918,7 @@ defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["cimguiname"] = "ImGuiTableSo defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["constructor"] = true defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["defaults"] = {} defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["funcname"] = "ImGuiTableSortSpecs" -defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["location"] = "imgui:2051" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["location"] = "imgui:2153" defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["ov_cimguiname"] = "ImGuiTableSortSpecs_ImGuiTableSortSpecs" defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["signature"] = "()" defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["stname"] = "ImGuiTableSortSpecs" @@ -4725,7 +4949,7 @@ defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["cimguiname"] = "ImGuiTextBuffer_ImGu defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["constructor"] = true defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["defaults"] = {} defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["funcname"] = "ImGuiTextBuffer" -defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["location"] = "imgui:2108" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["location"] = "imgui:2210" defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["ov_cimguiname"] = "ImGuiTextBuffer_ImGuiTextBuffer" defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["signature"] = "()" defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["stname"] = "ImGuiTextBuffer" @@ -4749,7 +4973,7 @@ defs["ImGuiTextBuffer_append"][1]["cimguiname"] = "ImGuiTextBuffer_append" defs["ImGuiTextBuffer_append"][1]["defaults"] = {} defs["ImGuiTextBuffer_append"][1]["defaults"]["str_end"] = "NULL" defs["ImGuiTextBuffer_append"][1]["funcname"] = "append" -defs["ImGuiTextBuffer_append"][1]["location"] = "imgui:2117" +defs["ImGuiTextBuffer_append"][1]["location"] = "imgui:2219" defs["ImGuiTextBuffer_append"][1]["ov_cimguiname"] = "ImGuiTextBuffer_append" defs["ImGuiTextBuffer_append"][1]["ret"] = "void" defs["ImGuiTextBuffer_append"][1]["signature"] = "(const char*,const char*)" @@ -4774,7 +4998,7 @@ defs["ImGuiTextBuffer_appendf"][1]["cimguiname"] = "ImGuiTextBuffer_appendf" defs["ImGuiTextBuffer_appendf"][1]["defaults"] = {} defs["ImGuiTextBuffer_appendf"][1]["funcname"] = "appendf" defs["ImGuiTextBuffer_appendf"][1]["isvararg"] = "...)" -defs["ImGuiTextBuffer_appendf"][1]["location"] = "imgui:2118" +defs["ImGuiTextBuffer_appendf"][1]["location"] = "imgui:2220" defs["ImGuiTextBuffer_appendf"][1]["manual"] = true defs["ImGuiTextBuffer_appendf"][1]["ov_cimguiname"] = "ImGuiTextBuffer_appendf" defs["ImGuiTextBuffer_appendf"][1]["ret"] = "void" @@ -4799,7 +5023,7 @@ defs["ImGuiTextBuffer_appendfv"][1]["call_args"] = "(fmt,args)" defs["ImGuiTextBuffer_appendfv"][1]["cimguiname"] = "ImGuiTextBuffer_appendfv" defs["ImGuiTextBuffer_appendfv"][1]["defaults"] = {} defs["ImGuiTextBuffer_appendfv"][1]["funcname"] = "appendfv" -defs["ImGuiTextBuffer_appendfv"][1]["location"] = "imgui:2119" +defs["ImGuiTextBuffer_appendfv"][1]["location"] = "imgui:2221" defs["ImGuiTextBuffer_appendfv"][1]["ov_cimguiname"] = "ImGuiTextBuffer_appendfv" defs["ImGuiTextBuffer_appendfv"][1]["ret"] = "void" defs["ImGuiTextBuffer_appendfv"][1]["signature"] = "(const char*,va_list)" @@ -4817,7 +5041,7 @@ defs["ImGuiTextBuffer_begin"][1]["call_args"] = "()" defs["ImGuiTextBuffer_begin"][1]["cimguiname"] = "ImGuiTextBuffer_begin" defs["ImGuiTextBuffer_begin"][1]["defaults"] = {} defs["ImGuiTextBuffer_begin"][1]["funcname"] = "begin" -defs["ImGuiTextBuffer_begin"][1]["location"] = "imgui:2110" +defs["ImGuiTextBuffer_begin"][1]["location"] = "imgui:2212" defs["ImGuiTextBuffer_begin"][1]["ov_cimguiname"] = "ImGuiTextBuffer_begin" defs["ImGuiTextBuffer_begin"][1]["ret"] = "const char*" defs["ImGuiTextBuffer_begin"][1]["signature"] = "()const" @@ -4835,7 +5059,7 @@ defs["ImGuiTextBuffer_c_str"][1]["call_args"] = "()" defs["ImGuiTextBuffer_c_str"][1]["cimguiname"] = "ImGuiTextBuffer_c_str" defs["ImGuiTextBuffer_c_str"][1]["defaults"] = {} defs["ImGuiTextBuffer_c_str"][1]["funcname"] = "c_str" -defs["ImGuiTextBuffer_c_str"][1]["location"] = "imgui:2116" +defs["ImGuiTextBuffer_c_str"][1]["location"] = "imgui:2218" defs["ImGuiTextBuffer_c_str"][1]["ov_cimguiname"] = "ImGuiTextBuffer_c_str" defs["ImGuiTextBuffer_c_str"][1]["ret"] = "const char*" defs["ImGuiTextBuffer_c_str"][1]["signature"] = "()const" @@ -4853,7 +5077,7 @@ defs["ImGuiTextBuffer_clear"][1]["call_args"] = "()" defs["ImGuiTextBuffer_clear"][1]["cimguiname"] = "ImGuiTextBuffer_clear" defs["ImGuiTextBuffer_clear"][1]["defaults"] = {} defs["ImGuiTextBuffer_clear"][1]["funcname"] = "clear" -defs["ImGuiTextBuffer_clear"][1]["location"] = "imgui:2114" +defs["ImGuiTextBuffer_clear"][1]["location"] = "imgui:2216" defs["ImGuiTextBuffer_clear"][1]["ov_cimguiname"] = "ImGuiTextBuffer_clear" defs["ImGuiTextBuffer_clear"][1]["ret"] = "void" defs["ImGuiTextBuffer_clear"][1]["signature"] = "()" @@ -4887,7 +5111,7 @@ defs["ImGuiTextBuffer_empty"][1]["call_args"] = "()" defs["ImGuiTextBuffer_empty"][1]["cimguiname"] = "ImGuiTextBuffer_empty" defs["ImGuiTextBuffer_empty"][1]["defaults"] = {} defs["ImGuiTextBuffer_empty"][1]["funcname"] = "empty" -defs["ImGuiTextBuffer_empty"][1]["location"] = "imgui:2113" +defs["ImGuiTextBuffer_empty"][1]["location"] = "imgui:2215" defs["ImGuiTextBuffer_empty"][1]["ov_cimguiname"] = "ImGuiTextBuffer_empty" defs["ImGuiTextBuffer_empty"][1]["ret"] = "bool" defs["ImGuiTextBuffer_empty"][1]["signature"] = "()const" @@ -4905,7 +5129,7 @@ defs["ImGuiTextBuffer_end"][1]["call_args"] = "()" defs["ImGuiTextBuffer_end"][1]["cimguiname"] = "ImGuiTextBuffer_end" defs["ImGuiTextBuffer_end"][1]["defaults"] = {} defs["ImGuiTextBuffer_end"][1]["funcname"] = "end" -defs["ImGuiTextBuffer_end"][1]["location"] = "imgui:2111" +defs["ImGuiTextBuffer_end"][1]["location"] = "imgui:2213" defs["ImGuiTextBuffer_end"][1]["ov_cimguiname"] = "ImGuiTextBuffer_end" defs["ImGuiTextBuffer_end"][1]["ret"] = "const char*" defs["ImGuiTextBuffer_end"][1]["signature"] = "()const" @@ -4926,7 +5150,7 @@ defs["ImGuiTextBuffer_reserve"][1]["call_args"] = "(capacity)" defs["ImGuiTextBuffer_reserve"][1]["cimguiname"] = "ImGuiTextBuffer_reserve" defs["ImGuiTextBuffer_reserve"][1]["defaults"] = {} defs["ImGuiTextBuffer_reserve"][1]["funcname"] = "reserve" -defs["ImGuiTextBuffer_reserve"][1]["location"] = "imgui:2115" +defs["ImGuiTextBuffer_reserve"][1]["location"] = "imgui:2217" defs["ImGuiTextBuffer_reserve"][1]["ov_cimguiname"] = "ImGuiTextBuffer_reserve" defs["ImGuiTextBuffer_reserve"][1]["ret"] = "void" defs["ImGuiTextBuffer_reserve"][1]["signature"] = "(int)" @@ -4944,7 +5168,7 @@ defs["ImGuiTextBuffer_size"][1]["call_args"] = "()" defs["ImGuiTextBuffer_size"][1]["cimguiname"] = "ImGuiTextBuffer_size" defs["ImGuiTextBuffer_size"][1]["defaults"] = {} defs["ImGuiTextBuffer_size"][1]["funcname"] = "size" -defs["ImGuiTextBuffer_size"][1]["location"] = "imgui:2112" +defs["ImGuiTextBuffer_size"][1]["location"] = "imgui:2214" defs["ImGuiTextBuffer_size"][1]["ov_cimguiname"] = "ImGuiTextBuffer_size" defs["ImGuiTextBuffer_size"][1]["ret"] = "int" defs["ImGuiTextBuffer_size"][1]["signature"] = "()const" @@ -4962,7 +5186,7 @@ defs["ImGuiTextFilter_Build"][1]["call_args"] = "()" defs["ImGuiTextFilter_Build"][1]["cimguiname"] = "ImGuiTextFilter_Build" defs["ImGuiTextFilter_Build"][1]["defaults"] = {} defs["ImGuiTextFilter_Build"][1]["funcname"] = "Build" -defs["ImGuiTextFilter_Build"][1]["location"] = "imgui:2081" +defs["ImGuiTextFilter_Build"][1]["location"] = "imgui:2183" defs["ImGuiTextFilter_Build"][1]["ov_cimguiname"] = "ImGuiTextFilter_Build" defs["ImGuiTextFilter_Build"][1]["ret"] = "void" defs["ImGuiTextFilter_Build"][1]["signature"] = "()" @@ -4980,7 +5204,7 @@ defs["ImGuiTextFilter_Clear"][1]["call_args"] = "()" defs["ImGuiTextFilter_Clear"][1]["cimguiname"] = "ImGuiTextFilter_Clear" defs["ImGuiTextFilter_Clear"][1]["defaults"] = {} defs["ImGuiTextFilter_Clear"][1]["funcname"] = "Clear" -defs["ImGuiTextFilter_Clear"][1]["location"] = "imgui:2082" +defs["ImGuiTextFilter_Clear"][1]["location"] = "imgui:2184" defs["ImGuiTextFilter_Clear"][1]["ov_cimguiname"] = "ImGuiTextFilter_Clear" defs["ImGuiTextFilter_Clear"][1]["ret"] = "void" defs["ImGuiTextFilter_Clear"][1]["signature"] = "()" @@ -5006,7 +5230,7 @@ defs["ImGuiTextFilter_Draw"][1]["defaults"] = {} defs["ImGuiTextFilter_Draw"][1]["defaults"]["label"] = "\"Filter(inc,-exc)\"" defs["ImGuiTextFilter_Draw"][1]["defaults"]["width"] = "0.0f" defs["ImGuiTextFilter_Draw"][1]["funcname"] = "Draw" -defs["ImGuiTextFilter_Draw"][1]["location"] = "imgui:2079" +defs["ImGuiTextFilter_Draw"][1]["location"] = "imgui:2181" defs["ImGuiTextFilter_Draw"][1]["ov_cimguiname"] = "ImGuiTextFilter_Draw" defs["ImGuiTextFilter_Draw"][1]["ret"] = "bool" defs["ImGuiTextFilter_Draw"][1]["signature"] = "(const char*,float)" @@ -5026,7 +5250,7 @@ defs["ImGuiTextFilter_ImGuiTextFilter"][1]["constructor"] = true defs["ImGuiTextFilter_ImGuiTextFilter"][1]["defaults"] = {} defs["ImGuiTextFilter_ImGuiTextFilter"][1]["defaults"]["default_filter"] = "\"\"" defs["ImGuiTextFilter_ImGuiTextFilter"][1]["funcname"] = "ImGuiTextFilter" -defs["ImGuiTextFilter_ImGuiTextFilter"][1]["location"] = "imgui:2078" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["location"] = "imgui:2180" defs["ImGuiTextFilter_ImGuiTextFilter"][1]["ov_cimguiname"] = "ImGuiTextFilter_ImGuiTextFilter" defs["ImGuiTextFilter_ImGuiTextFilter"][1]["signature"] = "(const char*)" defs["ImGuiTextFilter_ImGuiTextFilter"][1]["stname"] = "ImGuiTextFilter" @@ -5043,7 +5267,7 @@ defs["ImGuiTextFilter_IsActive"][1]["call_args"] = "()" defs["ImGuiTextFilter_IsActive"][1]["cimguiname"] = "ImGuiTextFilter_IsActive" defs["ImGuiTextFilter_IsActive"][1]["defaults"] = {} defs["ImGuiTextFilter_IsActive"][1]["funcname"] = "IsActive" -defs["ImGuiTextFilter_IsActive"][1]["location"] = "imgui:2083" +defs["ImGuiTextFilter_IsActive"][1]["location"] = "imgui:2185" defs["ImGuiTextFilter_IsActive"][1]["ov_cimguiname"] = "ImGuiTextFilter_IsActive" defs["ImGuiTextFilter_IsActive"][1]["ret"] = "bool" defs["ImGuiTextFilter_IsActive"][1]["signature"] = "()const" @@ -5068,7 +5292,7 @@ defs["ImGuiTextFilter_PassFilter"][1]["cimguiname"] = "ImGuiTextFilter_PassFilte defs["ImGuiTextFilter_PassFilter"][1]["defaults"] = {} defs["ImGuiTextFilter_PassFilter"][1]["defaults"]["text_end"] = "NULL" defs["ImGuiTextFilter_PassFilter"][1]["funcname"] = "PassFilter" -defs["ImGuiTextFilter_PassFilter"][1]["location"] = "imgui:2080" +defs["ImGuiTextFilter_PassFilter"][1]["location"] = "imgui:2182" defs["ImGuiTextFilter_PassFilter"][1]["ov_cimguiname"] = "ImGuiTextFilter_PassFilter" defs["ImGuiTextFilter_PassFilter"][1]["ret"] = "bool" defs["ImGuiTextFilter_PassFilter"][1]["signature"] = "(const char*,const char*)const" @@ -5100,8 +5324,8 @@ defs["ImGuiTextRange_ImGuiTextRange"][1]["cimguiname"] = "ImGuiTextRange_ImGuiTe defs["ImGuiTextRange_ImGuiTextRange"][1]["constructor"] = true defs["ImGuiTextRange_ImGuiTextRange"][1]["defaults"] = {} defs["ImGuiTextRange_ImGuiTextRange"][1]["funcname"] = "ImGuiTextRange" -defs["ImGuiTextRange_ImGuiTextRange"][1]["location"] = "imgui:2091" -defs["ImGuiTextRange_ImGuiTextRange"][1]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRangeNil" +defs["ImGuiTextRange_ImGuiTextRange"][1]["location"] = "imgui:2193" +defs["ImGuiTextRange_ImGuiTextRange"][1]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRange_Nil" defs["ImGuiTextRange_ImGuiTextRange"][1]["signature"] = "()" defs["ImGuiTextRange_ImGuiTextRange"][1]["stname"] = "ImGuiTextRange" defs["ImGuiTextRange_ImGuiTextRange"][2] = {} @@ -5119,8 +5343,8 @@ defs["ImGuiTextRange_ImGuiTextRange"][2]["cimguiname"] = "ImGuiTextRange_ImGuiTe defs["ImGuiTextRange_ImGuiTextRange"][2]["constructor"] = true defs["ImGuiTextRange_ImGuiTextRange"][2]["defaults"] = {} defs["ImGuiTextRange_ImGuiTextRange"][2]["funcname"] = "ImGuiTextRange" -defs["ImGuiTextRange_ImGuiTextRange"][2]["location"] = "imgui:2092" -defs["ImGuiTextRange_ImGuiTextRange"][2]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRangeStr" +defs["ImGuiTextRange_ImGuiTextRange"][2]["location"] = "imgui:2194" +defs["ImGuiTextRange_ImGuiTextRange"][2]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRange_Str" defs["ImGuiTextRange_ImGuiTextRange"][2]["signature"] = "(const char*,const char*)" defs["ImGuiTextRange_ImGuiTextRange"][2]["stname"] = "ImGuiTextRange" defs["ImGuiTextRange_ImGuiTextRange"]["()"] = defs["ImGuiTextRange_ImGuiTextRange"][1] @@ -5153,7 +5377,7 @@ defs["ImGuiTextRange_empty"][1]["call_args"] = "()" defs["ImGuiTextRange_empty"][1]["cimguiname"] = "ImGuiTextRange_empty" defs["ImGuiTextRange_empty"][1]["defaults"] = {} defs["ImGuiTextRange_empty"][1]["funcname"] = "empty" -defs["ImGuiTextRange_empty"][1]["location"] = "imgui:2093" +defs["ImGuiTextRange_empty"][1]["location"] = "imgui:2195" defs["ImGuiTextRange_empty"][1]["ov_cimguiname"] = "ImGuiTextRange_empty" defs["ImGuiTextRange_empty"][1]["ret"] = "bool" defs["ImGuiTextRange_empty"][1]["signature"] = "()const" @@ -5177,7 +5401,7 @@ defs["ImGuiTextRange_split"][1]["call_args"] = "(separator,out)" defs["ImGuiTextRange_split"][1]["cimguiname"] = "ImGuiTextRange_split" defs["ImGuiTextRange_split"][1]["defaults"] = {} defs["ImGuiTextRange_split"][1]["funcname"] = "split" -defs["ImGuiTextRange_split"][1]["location"] = "imgui:2094" +defs["ImGuiTextRange_split"][1]["location"] = "imgui:2196" defs["ImGuiTextRange_split"][1]["ov_cimguiname"] = "ImGuiTextRange_split" defs["ImGuiTextRange_split"][1]["ret"] = "void" defs["ImGuiTextRange_split"][1]["signature"] = "(char,ImVector_ImGuiTextRange*)const" @@ -5198,7 +5422,7 @@ defs["ImGuiViewport_GetCenter"][1]["call_args"] = "()" defs["ImGuiViewport_GetCenter"][1]["cimguiname"] = "ImGuiViewport_GetCenter" defs["ImGuiViewport_GetCenter"][1]["defaults"] = {} defs["ImGuiViewport_GetCenter"][1]["funcname"] = "GetCenter" -defs["ImGuiViewport_GetCenter"][1]["location"] = "imgui:2821" +defs["ImGuiViewport_GetCenter"][1]["location"] = "imgui:2931" defs["ImGuiViewport_GetCenter"][1]["nonUDT"] = 1 defs["ImGuiViewport_GetCenter"][1]["ov_cimguiname"] = "ImGuiViewport_GetCenter" defs["ImGuiViewport_GetCenter"][1]["ret"] = "void" @@ -5220,7 +5444,7 @@ defs["ImGuiViewport_GetWorkCenter"][1]["call_args"] = "()" defs["ImGuiViewport_GetWorkCenter"][1]["cimguiname"] = "ImGuiViewport_GetWorkCenter" defs["ImGuiViewport_GetWorkCenter"][1]["defaults"] = {} defs["ImGuiViewport_GetWorkCenter"][1]["funcname"] = "GetWorkCenter" -defs["ImGuiViewport_GetWorkCenter"][1]["location"] = "imgui:2822" +defs["ImGuiViewport_GetWorkCenter"][1]["location"] = "imgui:2932" defs["ImGuiViewport_GetWorkCenter"][1]["nonUDT"] = 1 defs["ImGuiViewport_GetWorkCenter"][1]["ov_cimguiname"] = "ImGuiViewport_GetWorkCenter" defs["ImGuiViewport_GetWorkCenter"][1]["ret"] = "void" @@ -5237,7 +5461,7 @@ defs["ImGuiViewport_ImGuiViewport"][1]["cimguiname"] = "ImGuiViewport_ImGuiViewp defs["ImGuiViewport_ImGuiViewport"][1]["constructor"] = true defs["ImGuiViewport_ImGuiViewport"][1]["defaults"] = {} defs["ImGuiViewport_ImGuiViewport"][1]["funcname"] = "ImGuiViewport" -defs["ImGuiViewport_ImGuiViewport"][1]["location"] = "imgui:2818" +defs["ImGuiViewport_ImGuiViewport"][1]["location"] = "imgui:2928" defs["ImGuiViewport_ImGuiViewport"][1]["ov_cimguiname"] = "ImGuiViewport_ImGuiViewport" defs["ImGuiViewport_ImGuiViewport"][1]["signature"] = "()" defs["ImGuiViewport_ImGuiViewport"][1]["stname"] = "ImGuiViewport" @@ -5268,8 +5492,8 @@ defs["ImVec2_ImVec2"][1]["cimguiname"] = "ImVec2_ImVec2" defs["ImVec2_ImVec2"][1]["constructor"] = true defs["ImVec2_ImVec2"][1]["defaults"] = {} defs["ImVec2_ImVec2"][1]["funcname"] = "ImVec2" -defs["ImVec2_ImVec2"][1]["location"] = "imgui:262" -defs["ImVec2_ImVec2"][1]["ov_cimguiname"] = "ImVec2_ImVec2Nil" +defs["ImVec2_ImVec2"][1]["location"] = "imgui:256" +defs["ImVec2_ImVec2"][1]["ov_cimguiname"] = "ImVec2_ImVec2_Nil" defs["ImVec2_ImVec2"][1]["signature"] = "()" defs["ImVec2_ImVec2"][1]["stname"] = "ImVec2" defs["ImVec2_ImVec2"][2] = {} @@ -5287,8 +5511,8 @@ defs["ImVec2_ImVec2"][2]["cimguiname"] = "ImVec2_ImVec2" defs["ImVec2_ImVec2"][2]["constructor"] = true defs["ImVec2_ImVec2"][2]["defaults"] = {} defs["ImVec2_ImVec2"][2]["funcname"] = "ImVec2" -defs["ImVec2_ImVec2"][2]["location"] = "imgui:263" -defs["ImVec2_ImVec2"][2]["ov_cimguiname"] = "ImVec2_ImVec2Float" +defs["ImVec2_ImVec2"][2]["location"] = "imgui:257" +defs["ImVec2_ImVec2"][2]["ov_cimguiname"] = "ImVec2_ImVec2_Float" defs["ImVec2_ImVec2"][2]["signature"] = "(float,float)" defs["ImVec2_ImVec2"][2]["stname"] = "ImVec2" defs["ImVec2_ImVec2"]["()"] = defs["ImVec2_ImVec2"][1] @@ -5319,8 +5543,8 @@ defs["ImVec4_ImVec4"][1]["cimguiname"] = "ImVec4_ImVec4" defs["ImVec4_ImVec4"][1]["constructor"] = true defs["ImVec4_ImVec4"][1]["defaults"] = {} defs["ImVec4_ImVec4"][1]["funcname"] = "ImVec4" -defs["ImVec4_ImVec4"][1]["location"] = "imgui:275" -defs["ImVec4_ImVec4"][1]["ov_cimguiname"] = "ImVec4_ImVec4Nil" +defs["ImVec4_ImVec4"][1]["location"] = "imgui:269" +defs["ImVec4_ImVec4"][1]["ov_cimguiname"] = "ImVec4_ImVec4_Nil" defs["ImVec4_ImVec4"][1]["signature"] = "()" defs["ImVec4_ImVec4"][1]["stname"] = "ImVec4" defs["ImVec4_ImVec4"][2] = {} @@ -5344,8 +5568,8 @@ defs["ImVec4_ImVec4"][2]["cimguiname"] = "ImVec4_ImVec4" defs["ImVec4_ImVec4"][2]["constructor"] = true defs["ImVec4_ImVec4"][2]["defaults"] = {} defs["ImVec4_ImVec4"][2]["funcname"] = "ImVec4" -defs["ImVec4_ImVec4"][2]["location"] = "imgui:276" -defs["ImVec4_ImVec4"][2]["ov_cimguiname"] = "ImVec4_ImVec4Float" +defs["ImVec4_ImVec4"][2]["location"] = "imgui:270" +defs["ImVec4_ImVec4"][2]["ov_cimguiname"] = "ImVec4_ImVec4_Float" defs["ImVec4_ImVec4"][2]["signature"] = "(float,float,float,float)" defs["ImVec4_ImVec4"][2]["stname"] = "ImVec4" defs["ImVec4_ImVec4"]["()"] = defs["ImVec4_ImVec4"][1] @@ -5376,30 +5600,30 @@ defs["ImVector_ImVector"][1]["cimguiname"] = "ImVector_ImVector" defs["ImVector_ImVector"][1]["constructor"] = true defs["ImVector_ImVector"][1]["defaults"] = {} defs["ImVector_ImVector"][1]["funcname"] = "ImVector" -defs["ImVector_ImVector"][1]["location"] = "imgui:1707" -defs["ImVector_ImVector"][1]["ov_cimguiname"] = "ImVector_ImVectorNil" +defs["ImVector_ImVector"][1]["location"] = "imgui:1774" +defs["ImVector_ImVector"][1]["ov_cimguiname"] = "ImVector_ImVector_Nil" defs["ImVector_ImVector"][1]["signature"] = "()" defs["ImVector_ImVector"][1]["stname"] = "ImVector" defs["ImVector_ImVector"][1]["templated"] = true defs["ImVector_ImVector"][2] = {} -defs["ImVector_ImVector"][2]["args"] = "(const ImVector src)" +defs["ImVector_ImVector"][2]["args"] = "(const ImVector_T src)" defs["ImVector_ImVector"][2]["argsT"] = {} defs["ImVector_ImVector"][2]["argsT"][1] = {} defs["ImVector_ImVector"][2]["argsT"][1]["name"] = "src" -defs["ImVector_ImVector"][2]["argsT"][1]["type"] = "const ImVector" +defs["ImVector_ImVector"][2]["argsT"][1]["type"] = "const ImVector_T " defs["ImVector_ImVector"][2]["argsoriginal"] = "(const ImVector& src)" defs["ImVector_ImVector"][2]["call_args"] = "(src)" defs["ImVector_ImVector"][2]["cimguiname"] = "ImVector_ImVector" defs["ImVector_ImVector"][2]["constructor"] = true defs["ImVector_ImVector"][2]["defaults"] = {} defs["ImVector_ImVector"][2]["funcname"] = "ImVector" -defs["ImVector_ImVector"][2]["location"] = "imgui:1708" -defs["ImVector_ImVector"][2]["ov_cimguiname"] = "ImVector_ImVectorVector" -defs["ImVector_ImVector"][2]["signature"] = "(const ImVector)" +defs["ImVector_ImVector"][2]["location"] = "imgui:1775" +defs["ImVector_ImVector"][2]["ov_cimguiname"] = "ImVector_ImVector_Vector_T_" +defs["ImVector_ImVector"][2]["signature"] = "(const ImVector_T )" defs["ImVector_ImVector"][2]["stname"] = "ImVector" defs["ImVector_ImVector"][2]["templated"] = true defs["ImVector_ImVector"]["()"] = defs["ImVector_ImVector"][1] -defs["ImVector_ImVector"]["(const ImVector)"] = defs["ImVector_ImVector"][2] +defs["ImVector_ImVector"]["(const ImVector_T )"] = defs["ImVector_ImVector"][2] defs["ImVector__grow_capacity"] = {} defs["ImVector__grow_capacity"][1] = {} defs["ImVector__grow_capacity"][1]["args"] = "(ImVector* self,int sz)" @@ -5415,7 +5639,7 @@ defs["ImVector__grow_capacity"][1]["call_args"] = "(sz)" defs["ImVector__grow_capacity"][1]["cimguiname"] = "ImVector__grow_capacity" defs["ImVector__grow_capacity"][1]["defaults"] = {} defs["ImVector__grow_capacity"][1]["funcname"] = "_grow_capacity" -defs["ImVector__grow_capacity"][1]["location"] = "imgui:1734" +defs["ImVector__grow_capacity"][1]["location"] = "imgui:1801" defs["ImVector__grow_capacity"][1]["ov_cimguiname"] = "ImVector__grow_capacity" defs["ImVector__grow_capacity"][1]["ret"] = "int" defs["ImVector__grow_capacity"][1]["signature"] = "(int)const" @@ -5434,8 +5658,8 @@ defs["ImVector_back"][1]["call_args"] = "()" defs["ImVector_back"][1]["cimguiname"] = "ImVector_back" defs["ImVector_back"][1]["defaults"] = {} defs["ImVector_back"][1]["funcname"] = "back" -defs["ImVector_back"][1]["location"] = "imgui:1730" -defs["ImVector_back"][1]["ov_cimguiname"] = "ImVector_backNil" +defs["ImVector_back"][1]["location"] = "imgui:1797" +defs["ImVector_back"][1]["ov_cimguiname"] = "ImVector_back_Nil" defs["ImVector_back"][1]["ret"] = "T*" defs["ImVector_back"][1]["retref"] = "&" defs["ImVector_back"][1]["signature"] = "()" @@ -5452,8 +5676,8 @@ defs["ImVector_back"][2]["call_args"] = "()" defs["ImVector_back"][2]["cimguiname"] = "ImVector_back" defs["ImVector_back"][2]["defaults"] = {} defs["ImVector_back"][2]["funcname"] = "back" -defs["ImVector_back"][2]["location"] = "imgui:1731" -defs["ImVector_back"][2]["ov_cimguiname"] = "ImVector_back_const" +defs["ImVector_back"][2]["location"] = "imgui:1798" +defs["ImVector_back"][2]["ov_cimguiname"] = "ImVector_back__const" defs["ImVector_back"][2]["ret"] = "const T*" defs["ImVector_back"][2]["retref"] = "&" defs["ImVector_back"][2]["signature"] = "()const" @@ -5473,8 +5697,8 @@ defs["ImVector_begin"][1]["call_args"] = "()" defs["ImVector_begin"][1]["cimguiname"] = "ImVector_begin" defs["ImVector_begin"][1]["defaults"] = {} defs["ImVector_begin"][1]["funcname"] = "begin" -defs["ImVector_begin"][1]["location"] = "imgui:1724" -defs["ImVector_begin"][1]["ov_cimguiname"] = "ImVector_beginNil" +defs["ImVector_begin"][1]["location"] = "imgui:1791" +defs["ImVector_begin"][1]["ov_cimguiname"] = "ImVector_begin_Nil" defs["ImVector_begin"][1]["ret"] = "T*" defs["ImVector_begin"][1]["signature"] = "()" defs["ImVector_begin"][1]["stname"] = "ImVector" @@ -5490,8 +5714,8 @@ defs["ImVector_begin"][2]["call_args"] = "()" defs["ImVector_begin"][2]["cimguiname"] = "ImVector_begin" defs["ImVector_begin"][2]["defaults"] = {} defs["ImVector_begin"][2]["funcname"] = "begin" -defs["ImVector_begin"][2]["location"] = "imgui:1725" -defs["ImVector_begin"][2]["ov_cimguiname"] = "ImVector_begin_const" +defs["ImVector_begin"][2]["location"] = "imgui:1792" +defs["ImVector_begin"][2]["ov_cimguiname"] = "ImVector_begin__const" defs["ImVector_begin"][2]["ret"] = "const T*" defs["ImVector_begin"][2]["signature"] = "()const" defs["ImVector_begin"][2]["stname"] = "ImVector" @@ -5510,7 +5734,7 @@ defs["ImVector_capacity"][1]["call_args"] = "()" defs["ImVector_capacity"][1]["cimguiname"] = "ImVector_capacity" defs["ImVector_capacity"][1]["defaults"] = {} defs["ImVector_capacity"][1]["funcname"] = "capacity" -defs["ImVector_capacity"][1]["location"] = "imgui:1720" +defs["ImVector_capacity"][1]["location"] = "imgui:1787" defs["ImVector_capacity"][1]["ov_cimguiname"] = "ImVector_capacity" defs["ImVector_capacity"][1]["ret"] = "int" defs["ImVector_capacity"][1]["signature"] = "()const" @@ -5529,7 +5753,7 @@ defs["ImVector_clear"][1]["call_args"] = "()" defs["ImVector_clear"][1]["cimguiname"] = "ImVector_clear" defs["ImVector_clear"][1]["defaults"] = {} defs["ImVector_clear"][1]["funcname"] = "clear" -defs["ImVector_clear"][1]["location"] = "imgui:1712" +defs["ImVector_clear"][1]["location"] = "imgui:1779" defs["ImVector_clear"][1]["ov_cimguiname"] = "ImVector_clear" defs["ImVector_clear"][1]["ret"] = "void" defs["ImVector_clear"][1]["signature"] = "()" @@ -5548,7 +5772,7 @@ defs["ImVector_clear_delete"][1]["call_args"] = "()" defs["ImVector_clear_delete"][1]["cimguiname"] = "ImVector_clear_delete" defs["ImVector_clear_delete"][1]["defaults"] = {} defs["ImVector_clear_delete"][1]["funcname"] = "clear_delete" -defs["ImVector_clear_delete"][1]["location"] = "imgui:1713" +defs["ImVector_clear_delete"][1]["location"] = "imgui:1780" defs["ImVector_clear_delete"][1]["ov_cimguiname"] = "ImVector_clear_delete" defs["ImVector_clear_delete"][1]["ret"] = "void" defs["ImVector_clear_delete"][1]["signature"] = "()" @@ -5567,7 +5791,7 @@ defs["ImVector_clear_destruct"][1]["call_args"] = "()" defs["ImVector_clear_destruct"][1]["cimguiname"] = "ImVector_clear_destruct" defs["ImVector_clear_destruct"][1]["defaults"] = {} defs["ImVector_clear_destruct"][1]["funcname"] = "clear_destruct" -defs["ImVector_clear_destruct"][1]["location"] = "imgui:1714" +defs["ImVector_clear_destruct"][1]["location"] = "imgui:1781" defs["ImVector_clear_destruct"][1]["ov_cimguiname"] = "ImVector_clear_destruct" defs["ImVector_clear_destruct"][1]["ret"] = "void" defs["ImVector_clear_destruct"][1]["signature"] = "()" @@ -5589,7 +5813,7 @@ defs["ImVector_contains"][1]["call_args"] = "(v)" defs["ImVector_contains"][1]["cimguiname"] = "ImVector_contains" defs["ImVector_contains"][1]["defaults"] = {} defs["ImVector_contains"][1]["funcname"] = "contains" -defs["ImVector_contains"][1]["location"] = "imgui:1748" +defs["ImVector_contains"][1]["location"] = "imgui:1816" defs["ImVector_contains"][1]["ov_cimguiname"] = "ImVector_contains" defs["ImVector_contains"][1]["ret"] = "bool" defs["ImVector_contains"][1]["signature"] = "(const T)const" @@ -5607,7 +5831,7 @@ defs["ImVector_destroy"][1]["call_args"] = "(self)" defs["ImVector_destroy"][1]["cimguiname"] = "ImVector_destroy" defs["ImVector_destroy"][1]["defaults"] = {} defs["ImVector_destroy"][1]["destructor"] = true -defs["ImVector_destroy"][1]["location"] = "imgui:1710" +defs["ImVector_destroy"][1]["location"] = "imgui:1777" defs["ImVector_destroy"][1]["ov_cimguiname"] = "ImVector_destroy" defs["ImVector_destroy"][1]["realdestructor"] = true defs["ImVector_destroy"][1]["ret"] = "void" @@ -5627,7 +5851,7 @@ defs["ImVector_empty"][1]["call_args"] = "()" defs["ImVector_empty"][1]["cimguiname"] = "ImVector_empty" defs["ImVector_empty"][1]["defaults"] = {} defs["ImVector_empty"][1]["funcname"] = "empty" -defs["ImVector_empty"][1]["location"] = "imgui:1716" +defs["ImVector_empty"][1]["location"] = "imgui:1783" defs["ImVector_empty"][1]["ov_cimguiname"] = "ImVector_empty" defs["ImVector_empty"][1]["ret"] = "bool" defs["ImVector_empty"][1]["signature"] = "()const" @@ -5646,8 +5870,8 @@ defs["ImVector_end"][1]["call_args"] = "()" defs["ImVector_end"][1]["cimguiname"] = "ImVector_end" defs["ImVector_end"][1]["defaults"] = {} defs["ImVector_end"][1]["funcname"] = "end" -defs["ImVector_end"][1]["location"] = "imgui:1726" -defs["ImVector_end"][1]["ov_cimguiname"] = "ImVector_endNil" +defs["ImVector_end"][1]["location"] = "imgui:1793" +defs["ImVector_end"][1]["ov_cimguiname"] = "ImVector_end_Nil" defs["ImVector_end"][1]["ret"] = "T*" defs["ImVector_end"][1]["signature"] = "()" defs["ImVector_end"][1]["stname"] = "ImVector" @@ -5663,8 +5887,8 @@ defs["ImVector_end"][2]["call_args"] = "()" defs["ImVector_end"][2]["cimguiname"] = "ImVector_end" defs["ImVector_end"][2]["defaults"] = {} defs["ImVector_end"][2]["funcname"] = "end" -defs["ImVector_end"][2]["location"] = "imgui:1727" -defs["ImVector_end"][2]["ov_cimguiname"] = "ImVector_end_const" +defs["ImVector_end"][2]["location"] = "imgui:1794" +defs["ImVector_end"][2]["ov_cimguiname"] = "ImVector_end__const" defs["ImVector_end"][2]["ret"] = "const T*" defs["ImVector_end"][2]["signature"] = "()const" defs["ImVector_end"][2]["stname"] = "ImVector" @@ -5686,8 +5910,8 @@ defs["ImVector_erase"][1]["call_args"] = "(it)" defs["ImVector_erase"][1]["cimguiname"] = "ImVector_erase" defs["ImVector_erase"][1]["defaults"] = {} defs["ImVector_erase"][1]["funcname"] = "erase" -defs["ImVector_erase"][1]["location"] = "imgui:1744" -defs["ImVector_erase"][1]["ov_cimguiname"] = "ImVector_eraseNil" +defs["ImVector_erase"][1]["location"] = "imgui:1812" +defs["ImVector_erase"][1]["ov_cimguiname"] = "ImVector_erase_Nil" defs["ImVector_erase"][1]["ret"] = "T*" defs["ImVector_erase"][1]["signature"] = "(const T*)" defs["ImVector_erase"][1]["stname"] = "ImVector" @@ -5709,8 +5933,8 @@ defs["ImVector_erase"][2]["call_args"] = "(it,it_last)" defs["ImVector_erase"][2]["cimguiname"] = "ImVector_erase" defs["ImVector_erase"][2]["defaults"] = {} defs["ImVector_erase"][2]["funcname"] = "erase" -defs["ImVector_erase"][2]["location"] = "imgui:1745" -defs["ImVector_erase"][2]["ov_cimguiname"] = "ImVector_eraseTPtr" +defs["ImVector_erase"][2]["location"] = "imgui:1813" +defs["ImVector_erase"][2]["ov_cimguiname"] = "ImVector_erase_TPtr" defs["ImVector_erase"][2]["ret"] = "T*" defs["ImVector_erase"][2]["signature"] = "(const T*,const T*)" defs["ImVector_erase"][2]["stname"] = "ImVector" @@ -5732,7 +5956,7 @@ defs["ImVector_erase_unsorted"][1]["call_args"] = "(it)" defs["ImVector_erase_unsorted"][1]["cimguiname"] = "ImVector_erase_unsorted" defs["ImVector_erase_unsorted"][1]["defaults"] = {} defs["ImVector_erase_unsorted"][1]["funcname"] = "erase_unsorted" -defs["ImVector_erase_unsorted"][1]["location"] = "imgui:1746" +defs["ImVector_erase_unsorted"][1]["location"] = "imgui:1814" defs["ImVector_erase_unsorted"][1]["ov_cimguiname"] = "ImVector_erase_unsorted" defs["ImVector_erase_unsorted"][1]["ret"] = "T*" defs["ImVector_erase_unsorted"][1]["signature"] = "(const T*)" @@ -5754,8 +5978,8 @@ defs["ImVector_find"][1]["call_args"] = "(v)" defs["ImVector_find"][1]["cimguiname"] = "ImVector_find" defs["ImVector_find"][1]["defaults"] = {} defs["ImVector_find"][1]["funcname"] = "find" -defs["ImVector_find"][1]["location"] = "imgui:1749" -defs["ImVector_find"][1]["ov_cimguiname"] = "ImVector_findNil" +defs["ImVector_find"][1]["location"] = "imgui:1817" +defs["ImVector_find"][1]["ov_cimguiname"] = "ImVector_find_Nil" defs["ImVector_find"][1]["ret"] = "T*" defs["ImVector_find"][1]["signature"] = "(const T)" defs["ImVector_find"][1]["stname"] = "ImVector" @@ -5774,8 +5998,8 @@ defs["ImVector_find"][2]["call_args"] = "(v)" defs["ImVector_find"][2]["cimguiname"] = "ImVector_find" defs["ImVector_find"][2]["defaults"] = {} defs["ImVector_find"][2]["funcname"] = "find" -defs["ImVector_find"][2]["location"] = "imgui:1750" -defs["ImVector_find"][2]["ov_cimguiname"] = "ImVector_find_const" +defs["ImVector_find"][2]["location"] = "imgui:1818" +defs["ImVector_find"][2]["ov_cimguiname"] = "ImVector_find__const" defs["ImVector_find"][2]["ret"] = "const T*" defs["ImVector_find"][2]["signature"] = "(const T)const" defs["ImVector_find"][2]["stname"] = "ImVector" @@ -5797,7 +6021,7 @@ defs["ImVector_find_erase"][1]["call_args"] = "(v)" defs["ImVector_find_erase"][1]["cimguiname"] = "ImVector_find_erase" defs["ImVector_find_erase"][1]["defaults"] = {} defs["ImVector_find_erase"][1]["funcname"] = "find_erase" -defs["ImVector_find_erase"][1]["location"] = "imgui:1751" +defs["ImVector_find_erase"][1]["location"] = "imgui:1819" defs["ImVector_find_erase"][1]["ov_cimguiname"] = "ImVector_find_erase" defs["ImVector_find_erase"][1]["ret"] = "bool" defs["ImVector_find_erase"][1]["signature"] = "(const T)" @@ -5819,7 +6043,7 @@ defs["ImVector_find_erase_unsorted"][1]["call_args"] = "(v)" defs["ImVector_find_erase_unsorted"][1]["cimguiname"] = "ImVector_find_erase_unsorted" defs["ImVector_find_erase_unsorted"][1]["defaults"] = {} defs["ImVector_find_erase_unsorted"][1]["funcname"] = "find_erase_unsorted" -defs["ImVector_find_erase_unsorted"][1]["location"] = "imgui:1752" +defs["ImVector_find_erase_unsorted"][1]["location"] = "imgui:1820" defs["ImVector_find_erase_unsorted"][1]["ov_cimguiname"] = "ImVector_find_erase_unsorted" defs["ImVector_find_erase_unsorted"][1]["ret"] = "bool" defs["ImVector_find_erase_unsorted"][1]["signature"] = "(const T)" @@ -5838,8 +6062,8 @@ defs["ImVector_front"][1]["call_args"] = "()" defs["ImVector_front"][1]["cimguiname"] = "ImVector_front" defs["ImVector_front"][1]["defaults"] = {} defs["ImVector_front"][1]["funcname"] = "front" -defs["ImVector_front"][1]["location"] = "imgui:1728" -defs["ImVector_front"][1]["ov_cimguiname"] = "ImVector_frontNil" +defs["ImVector_front"][1]["location"] = "imgui:1795" +defs["ImVector_front"][1]["ov_cimguiname"] = "ImVector_front_Nil" defs["ImVector_front"][1]["ret"] = "T*" defs["ImVector_front"][1]["retref"] = "&" defs["ImVector_front"][1]["signature"] = "()" @@ -5856,8 +6080,8 @@ defs["ImVector_front"][2]["call_args"] = "()" defs["ImVector_front"][2]["cimguiname"] = "ImVector_front" defs["ImVector_front"][2]["defaults"] = {} defs["ImVector_front"][2]["funcname"] = "front" -defs["ImVector_front"][2]["location"] = "imgui:1729" -defs["ImVector_front"][2]["ov_cimguiname"] = "ImVector_front_const" +defs["ImVector_front"][2]["location"] = "imgui:1796" +defs["ImVector_front"][2]["ov_cimguiname"] = "ImVector_front__const" defs["ImVector_front"][2]["ret"] = "const T*" defs["ImVector_front"][2]["retref"] = "&" defs["ImVector_front"][2]["signature"] = "()const" @@ -5880,7 +6104,7 @@ defs["ImVector_index_from_ptr"][1]["call_args"] = "(it)" defs["ImVector_index_from_ptr"][1]["cimguiname"] = "ImVector_index_from_ptr" defs["ImVector_index_from_ptr"][1]["defaults"] = {} defs["ImVector_index_from_ptr"][1]["funcname"] = "index_from_ptr" -defs["ImVector_index_from_ptr"][1]["location"] = "imgui:1753" +defs["ImVector_index_from_ptr"][1]["location"] = "imgui:1821" defs["ImVector_index_from_ptr"][1]["ov_cimguiname"] = "ImVector_index_from_ptr" defs["ImVector_index_from_ptr"][1]["ret"] = "int" defs["ImVector_index_from_ptr"][1]["signature"] = "(const T*)const" @@ -5905,7 +6129,7 @@ defs["ImVector_insert"][1]["call_args"] = "(it,v)" defs["ImVector_insert"][1]["cimguiname"] = "ImVector_insert" defs["ImVector_insert"][1]["defaults"] = {} defs["ImVector_insert"][1]["funcname"] = "insert" -defs["ImVector_insert"][1]["location"] = "imgui:1747" +defs["ImVector_insert"][1]["location"] = "imgui:1815" defs["ImVector_insert"][1]["ov_cimguiname"] = "ImVector_insert" defs["ImVector_insert"][1]["ret"] = "T*" defs["ImVector_insert"][1]["signature"] = "(const T*,const T)" @@ -5924,7 +6148,7 @@ defs["ImVector_max_size"][1]["call_args"] = "()" defs["ImVector_max_size"][1]["cimguiname"] = "ImVector_max_size" defs["ImVector_max_size"][1]["defaults"] = {} defs["ImVector_max_size"][1]["funcname"] = "max_size" -defs["ImVector_max_size"][1]["location"] = "imgui:1719" +defs["ImVector_max_size"][1]["location"] = "imgui:1786" defs["ImVector_max_size"][1]["ov_cimguiname"] = "ImVector_max_size" defs["ImVector_max_size"][1]["ret"] = "int" defs["ImVector_max_size"][1]["signature"] = "()const" @@ -5943,7 +6167,7 @@ defs["ImVector_pop_back"][1]["call_args"] = "()" defs["ImVector_pop_back"][1]["cimguiname"] = "ImVector_pop_back" defs["ImVector_pop_back"][1]["defaults"] = {} defs["ImVector_pop_back"][1]["funcname"] = "pop_back" -defs["ImVector_pop_back"][1]["location"] = "imgui:1742" +defs["ImVector_pop_back"][1]["location"] = "imgui:1810" defs["ImVector_pop_back"][1]["ov_cimguiname"] = "ImVector_pop_back" defs["ImVector_pop_back"][1]["ret"] = "void" defs["ImVector_pop_back"][1]["signature"] = "()" @@ -5965,7 +6189,7 @@ defs["ImVector_push_back"][1]["call_args"] = "(v)" defs["ImVector_push_back"][1]["cimguiname"] = "ImVector_push_back" defs["ImVector_push_back"][1]["defaults"] = {} defs["ImVector_push_back"][1]["funcname"] = "push_back" -defs["ImVector_push_back"][1]["location"] = "imgui:1741" +defs["ImVector_push_back"][1]["location"] = "imgui:1809" defs["ImVector_push_back"][1]["ov_cimguiname"] = "ImVector_push_back" defs["ImVector_push_back"][1]["ret"] = "void" defs["ImVector_push_back"][1]["signature"] = "(const T)" @@ -5987,7 +6211,7 @@ defs["ImVector_push_front"][1]["call_args"] = "(v)" defs["ImVector_push_front"][1]["cimguiname"] = "ImVector_push_front" defs["ImVector_push_front"][1]["defaults"] = {} defs["ImVector_push_front"][1]["funcname"] = "push_front" -defs["ImVector_push_front"][1]["location"] = "imgui:1743" +defs["ImVector_push_front"][1]["location"] = "imgui:1811" defs["ImVector_push_front"][1]["ov_cimguiname"] = "ImVector_push_front" defs["ImVector_push_front"][1]["ret"] = "void" defs["ImVector_push_front"][1]["signature"] = "(const T)" @@ -6009,13 +6233,35 @@ defs["ImVector_reserve"][1]["call_args"] = "(new_capacity)" defs["ImVector_reserve"][1]["cimguiname"] = "ImVector_reserve" defs["ImVector_reserve"][1]["defaults"] = {} defs["ImVector_reserve"][1]["funcname"] = "reserve" -defs["ImVector_reserve"][1]["location"] = "imgui:1738" +defs["ImVector_reserve"][1]["location"] = "imgui:1805" defs["ImVector_reserve"][1]["ov_cimguiname"] = "ImVector_reserve" defs["ImVector_reserve"][1]["ret"] = "void" defs["ImVector_reserve"][1]["signature"] = "(int)" defs["ImVector_reserve"][1]["stname"] = "ImVector" defs["ImVector_reserve"][1]["templated"] = true defs["ImVector_reserve"]["(int)"] = defs["ImVector_reserve"][1] +defs["ImVector_reserve_discard"] = {} +defs["ImVector_reserve_discard"][1] = {} +defs["ImVector_reserve_discard"][1]["args"] = "(ImVector* self,int new_capacity)" +defs["ImVector_reserve_discard"][1]["argsT"] = {} +defs["ImVector_reserve_discard"][1]["argsT"][1] = {} +defs["ImVector_reserve_discard"][1]["argsT"][1]["name"] = "self" +defs["ImVector_reserve_discard"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_reserve_discard"][1]["argsT"][2] = {} +defs["ImVector_reserve_discard"][1]["argsT"][2]["name"] = "new_capacity" +defs["ImVector_reserve_discard"][1]["argsT"][2]["type"] = "int" +defs["ImVector_reserve_discard"][1]["argsoriginal"] = "(int new_capacity)" +defs["ImVector_reserve_discard"][1]["call_args"] = "(new_capacity)" +defs["ImVector_reserve_discard"][1]["cimguiname"] = "ImVector_reserve_discard" +defs["ImVector_reserve_discard"][1]["defaults"] = {} +defs["ImVector_reserve_discard"][1]["funcname"] = "reserve_discard" +defs["ImVector_reserve_discard"][1]["location"] = "imgui:1806" +defs["ImVector_reserve_discard"][1]["ov_cimguiname"] = "ImVector_reserve_discard" +defs["ImVector_reserve_discard"][1]["ret"] = "void" +defs["ImVector_reserve_discard"][1]["signature"] = "(int)" +defs["ImVector_reserve_discard"][1]["stname"] = "ImVector" +defs["ImVector_reserve_discard"][1]["templated"] = true +defs["ImVector_reserve_discard"]["(int)"] = defs["ImVector_reserve_discard"][1] defs["ImVector_resize"] = {} defs["ImVector_resize"][1] = {} defs["ImVector_resize"][1]["args"] = "(ImVector* self,int new_size)" @@ -6031,8 +6277,8 @@ defs["ImVector_resize"][1]["call_args"] = "(new_size)" defs["ImVector_resize"][1]["cimguiname"] = "ImVector_resize" defs["ImVector_resize"][1]["defaults"] = {} defs["ImVector_resize"][1]["funcname"] = "resize" -defs["ImVector_resize"][1]["location"] = "imgui:1735" -defs["ImVector_resize"][1]["ov_cimguiname"] = "ImVector_resizeNil" +defs["ImVector_resize"][1]["location"] = "imgui:1802" +defs["ImVector_resize"][1]["ov_cimguiname"] = "ImVector_resize_Nil" defs["ImVector_resize"][1]["ret"] = "void" defs["ImVector_resize"][1]["signature"] = "(int)" defs["ImVector_resize"][1]["stname"] = "ImVector" @@ -6054,8 +6300,8 @@ defs["ImVector_resize"][2]["call_args"] = "(new_size,v)" defs["ImVector_resize"][2]["cimguiname"] = "ImVector_resize" defs["ImVector_resize"][2]["defaults"] = {} defs["ImVector_resize"][2]["funcname"] = "resize" -defs["ImVector_resize"][2]["location"] = "imgui:1736" -defs["ImVector_resize"][2]["ov_cimguiname"] = "ImVector_resizeT" +defs["ImVector_resize"][2]["location"] = "imgui:1803" +defs["ImVector_resize"][2]["ov_cimguiname"] = "ImVector_resize_T" defs["ImVector_resize"][2]["ret"] = "void" defs["ImVector_resize"][2]["signature"] = "(int,const T)" defs["ImVector_resize"][2]["stname"] = "ImVector" @@ -6077,7 +6323,7 @@ defs["ImVector_shrink"][1]["call_args"] = "(new_size)" defs["ImVector_shrink"][1]["cimguiname"] = "ImVector_shrink" defs["ImVector_shrink"][1]["defaults"] = {} defs["ImVector_shrink"][1]["funcname"] = "shrink" -defs["ImVector_shrink"][1]["location"] = "imgui:1737" +defs["ImVector_shrink"][1]["location"] = "imgui:1804" defs["ImVector_shrink"][1]["ov_cimguiname"] = "ImVector_shrink" defs["ImVector_shrink"][1]["ret"] = "void" defs["ImVector_shrink"][1]["signature"] = "(int)" @@ -6096,7 +6342,7 @@ defs["ImVector_size"][1]["call_args"] = "()" defs["ImVector_size"][1]["cimguiname"] = "ImVector_size" defs["ImVector_size"][1]["defaults"] = {} defs["ImVector_size"][1]["funcname"] = "size" -defs["ImVector_size"][1]["location"] = "imgui:1717" +defs["ImVector_size"][1]["location"] = "imgui:1784" defs["ImVector_size"][1]["ov_cimguiname"] = "ImVector_size" defs["ImVector_size"][1]["ret"] = "int" defs["ImVector_size"][1]["signature"] = "()const" @@ -6115,7 +6361,7 @@ defs["ImVector_size_in_bytes"][1]["call_args"] = "()" defs["ImVector_size_in_bytes"][1]["cimguiname"] = "ImVector_size_in_bytes" defs["ImVector_size_in_bytes"][1]["defaults"] = {} defs["ImVector_size_in_bytes"][1]["funcname"] = "size_in_bytes" -defs["ImVector_size_in_bytes"][1]["location"] = "imgui:1718" +defs["ImVector_size_in_bytes"][1]["location"] = "imgui:1785" defs["ImVector_size_in_bytes"][1]["ov_cimguiname"] = "ImVector_size_in_bytes" defs["ImVector_size_in_bytes"][1]["ret"] = "int" defs["ImVector_size_in_bytes"][1]["signature"] = "()const" @@ -6124,7 +6370,7 @@ defs["ImVector_size_in_bytes"][1]["templated"] = true defs["ImVector_size_in_bytes"]["()const"] = defs["ImVector_size_in_bytes"][1] defs["ImVector_swap"] = {} defs["ImVector_swap"][1] = {} -defs["ImVector_swap"][1]["args"] = "(ImVector* self,ImVector* rhs)" +defs["ImVector_swap"][1]["args"] = "(ImVector* self,ImVector_T * rhs)" defs["ImVector_swap"][1]["argsT"] = {} defs["ImVector_swap"][1]["argsT"][1] = {} defs["ImVector_swap"][1]["argsT"][1]["name"] = "self" @@ -6132,19 +6378,19 @@ defs["ImVector_swap"][1]["argsT"][1]["type"] = "ImVector*" defs["ImVector_swap"][1]["argsT"][2] = {} defs["ImVector_swap"][1]["argsT"][2]["name"] = "rhs" defs["ImVector_swap"][1]["argsT"][2]["reftoptr"] = true -defs["ImVector_swap"][1]["argsT"][2]["type"] = "ImVector*" +defs["ImVector_swap"][1]["argsT"][2]["type"] = "ImVector_T *" defs["ImVector_swap"][1]["argsoriginal"] = "(ImVector& rhs)" defs["ImVector_swap"][1]["call_args"] = "(*rhs)" defs["ImVector_swap"][1]["cimguiname"] = "ImVector_swap" defs["ImVector_swap"][1]["defaults"] = {} defs["ImVector_swap"][1]["funcname"] = "swap" -defs["ImVector_swap"][1]["location"] = "imgui:1732" +defs["ImVector_swap"][1]["location"] = "imgui:1799" defs["ImVector_swap"][1]["ov_cimguiname"] = "ImVector_swap" defs["ImVector_swap"][1]["ret"] = "void" -defs["ImVector_swap"][1]["signature"] = "(ImVector*)" +defs["ImVector_swap"][1]["signature"] = "(ImVector_T *)" defs["ImVector_swap"][1]["stname"] = "ImVector" defs["ImVector_swap"][1]["templated"] = true -defs["ImVector_swap"]["(ImVector*)"] = defs["ImVector_swap"][1] +defs["ImVector_swap"]["(ImVector_T *)"] = defs["ImVector_swap"][1] defs["igAcceptDragDropPayload"] = {} defs["igAcceptDragDropPayload"][1] = {} defs["igAcceptDragDropPayload"][1]["args"] = "(const char* type,ImGuiDragDropFlags flags)" @@ -6161,7 +6407,7 @@ defs["igAcceptDragDropPayload"][1]["cimguiname"] = "igAcceptDragDropPayload" defs["igAcceptDragDropPayload"][1]["defaults"] = {} defs["igAcceptDragDropPayload"][1]["defaults"]["flags"] = "0" defs["igAcceptDragDropPayload"][1]["funcname"] = "AcceptDragDropPayload" -defs["igAcceptDragDropPayload"][1]["location"] = "imgui:813" +defs["igAcceptDragDropPayload"][1]["location"] = "imgui:811" defs["igAcceptDragDropPayload"][1]["namespace"] = "ImGui" defs["igAcceptDragDropPayload"][1]["ov_cimguiname"] = "igAcceptDragDropPayload" defs["igAcceptDragDropPayload"][1]["ret"] = "const ImGuiPayload*" @@ -6177,7 +6423,7 @@ defs["igAlignTextToFramePadding"][1]["call_args"] = "()" defs["igAlignTextToFramePadding"][1]["cimguiname"] = "igAlignTextToFramePadding" defs["igAlignTextToFramePadding"][1]["defaults"] = {} defs["igAlignTextToFramePadding"][1]["funcname"] = "AlignTextToFramePadding" -defs["igAlignTextToFramePadding"][1]["location"] = "imgui:458" +defs["igAlignTextToFramePadding"][1]["location"] = "imgui:456" defs["igAlignTextToFramePadding"][1]["namespace"] = "ImGui" defs["igAlignTextToFramePadding"][1]["ov_cimguiname"] = "igAlignTextToFramePadding" defs["igAlignTextToFramePadding"][1]["ret"] = "void" @@ -6199,7 +6445,7 @@ defs["igArrowButton"][1]["call_args"] = "(str_id,dir)" defs["igArrowButton"][1]["cimguiname"] = "igArrowButton" defs["igArrowButton"][1]["defaults"] = {} defs["igArrowButton"][1]["funcname"] = "ArrowButton" -defs["igArrowButton"][1]["location"] = "imgui:505" +defs["igArrowButton"][1]["location"] = "imgui:503" defs["igArrowButton"][1]["namespace"] = "ImGui" defs["igArrowButton"][1]["ov_cimguiname"] = "igArrowButton" defs["igArrowButton"][1]["ret"] = "bool" @@ -6226,7 +6472,7 @@ defs["igBegin"][1]["defaults"] = {} defs["igBegin"][1]["defaults"]["flags"] = "0" defs["igBegin"][1]["defaults"]["p_open"] = "NULL" defs["igBegin"][1]["funcname"] = "Begin" -defs["igBegin"][1]["location"] = "imgui:335" +defs["igBegin"][1]["location"] = "imgui:330" defs["igBegin"][1]["namespace"] = "ImGui" defs["igBegin"][1]["ov_cimguiname"] = "igBegin" defs["igBegin"][1]["ret"] = "bool" @@ -6257,9 +6503,9 @@ defs["igBeginChild"][1]["defaults"]["border"] = "false" defs["igBeginChild"][1]["defaults"]["flags"] = "0" defs["igBeginChild"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igBeginChild"][1]["funcname"] = "BeginChild" -defs["igBeginChild"][1]["location"] = "imgui:346" +defs["igBeginChild"][1]["location"] = "imgui:341" defs["igBeginChild"][1]["namespace"] = "ImGui" -defs["igBeginChild"][1]["ov_cimguiname"] = "igBeginChildStr" +defs["igBeginChild"][1]["ov_cimguiname"] = "igBeginChild_Str" defs["igBeginChild"][1]["ret"] = "bool" defs["igBeginChild"][1]["signature"] = "(const char*,const ImVec2,bool,ImGuiWindowFlags)" defs["igBeginChild"][1]["stname"] = "" @@ -6286,9 +6532,9 @@ defs["igBeginChild"][2]["defaults"]["border"] = "false" defs["igBeginChild"][2]["defaults"]["flags"] = "0" defs["igBeginChild"][2]["defaults"]["size"] = "ImVec2(0,0)" defs["igBeginChild"][2]["funcname"] = "BeginChild" -defs["igBeginChild"][2]["location"] = "imgui:347" +defs["igBeginChild"][2]["location"] = "imgui:342" defs["igBeginChild"][2]["namespace"] = "ImGui" -defs["igBeginChild"][2]["ov_cimguiname"] = "igBeginChildID" +defs["igBeginChild"][2]["ov_cimguiname"] = "igBeginChild_ID" defs["igBeginChild"][2]["ret"] = "bool" defs["igBeginChild"][2]["signature"] = "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)" defs["igBeginChild"][2]["stname"] = "" @@ -6339,7 +6585,7 @@ defs["igBeginCombo"][1]["cimguiname"] = "igBeginCombo" defs["igBeginCombo"][1]["defaults"] = {} defs["igBeginCombo"][1]["defaults"]["flags"] = "0" defs["igBeginCombo"][1]["funcname"] = "BeginCombo" -defs["igBeginCombo"][1]["location"] = "imgui:519" +defs["igBeginCombo"][1]["location"] = "imgui:520" defs["igBeginCombo"][1]["namespace"] = "ImGui" defs["igBeginCombo"][1]["ov_cimguiname"] = "igBeginCombo" defs["igBeginCombo"][1]["ret"] = "bool" @@ -6359,7 +6605,7 @@ defs["igBeginDisabled"][1]["cimguiname"] = "igBeginDisabled" defs["igBeginDisabled"][1]["defaults"] = {} defs["igBeginDisabled"][1]["defaults"]["disabled"] = "true" defs["igBeginDisabled"][1]["funcname"] = "BeginDisabled" -defs["igBeginDisabled"][1]["location"] = "imgui:821" +defs["igBeginDisabled"][1]["location"] = "imgui:819" defs["igBeginDisabled"][1]["namespace"] = "ImGui" defs["igBeginDisabled"][1]["ov_cimguiname"] = "igBeginDisabled" defs["igBeginDisabled"][1]["ret"] = "void" @@ -6379,7 +6625,7 @@ defs["igBeginDragDropSource"][1]["cimguiname"] = "igBeginDragDropSource" defs["igBeginDragDropSource"][1]["defaults"] = {} defs["igBeginDragDropSource"][1]["defaults"]["flags"] = "0" defs["igBeginDragDropSource"][1]["funcname"] = "BeginDragDropSource" -defs["igBeginDragDropSource"][1]["location"] = "imgui:809" +defs["igBeginDragDropSource"][1]["location"] = "imgui:807" defs["igBeginDragDropSource"][1]["namespace"] = "ImGui" defs["igBeginDragDropSource"][1]["ov_cimguiname"] = "igBeginDragDropSource" defs["igBeginDragDropSource"][1]["ret"] = "bool" @@ -6395,7 +6641,7 @@ defs["igBeginDragDropTarget"][1]["call_args"] = "()" defs["igBeginDragDropTarget"][1]["cimguiname"] = "igBeginDragDropTarget" defs["igBeginDragDropTarget"][1]["defaults"] = {} defs["igBeginDragDropTarget"][1]["funcname"] = "BeginDragDropTarget" -defs["igBeginDragDropTarget"][1]["location"] = "imgui:812" +defs["igBeginDragDropTarget"][1]["location"] = "imgui:810" defs["igBeginDragDropTarget"][1]["namespace"] = "ImGui" defs["igBeginDragDropTarget"][1]["ov_cimguiname"] = "igBeginDragDropTarget" defs["igBeginDragDropTarget"][1]["ret"] = "bool" @@ -6411,7 +6657,7 @@ defs["igBeginGroup"][1]["call_args"] = "()" defs["igBeginGroup"][1]["cimguiname"] = "igBeginGroup" defs["igBeginGroup"][1]["defaults"] = {} defs["igBeginGroup"][1]["funcname"] = "BeginGroup" -defs["igBeginGroup"][1]["location"] = "imgui:447" +defs["igBeginGroup"][1]["location"] = "imgui:445" defs["igBeginGroup"][1]["namespace"] = "ImGui" defs["igBeginGroup"][1]["ov_cimguiname"] = "igBeginGroup" defs["igBeginGroup"][1]["ret"] = "void" @@ -6434,7 +6680,7 @@ defs["igBeginListBox"][1]["cimguiname"] = "igBeginListBox" defs["igBeginListBox"][1]["defaults"] = {} defs["igBeginListBox"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igBeginListBox"][1]["funcname"] = "BeginListBox" -defs["igBeginListBox"][1]["location"] = "imgui:630" +defs["igBeginListBox"][1]["location"] = "imgui:632" defs["igBeginListBox"][1]["namespace"] = "ImGui" defs["igBeginListBox"][1]["ov_cimguiname"] = "igBeginListBox" defs["igBeginListBox"][1]["ret"] = "bool" @@ -6450,7 +6696,7 @@ defs["igBeginMainMenuBar"][1]["call_args"] = "()" defs["igBeginMainMenuBar"][1]["cimguiname"] = "igBeginMainMenuBar" defs["igBeginMainMenuBar"][1]["defaults"] = {} defs["igBeginMainMenuBar"][1]["funcname"] = "BeginMainMenuBar" -defs["igBeginMainMenuBar"][1]["location"] = "imgui:656" +defs["igBeginMainMenuBar"][1]["location"] = "imgui:658" defs["igBeginMainMenuBar"][1]["namespace"] = "ImGui" defs["igBeginMainMenuBar"][1]["ov_cimguiname"] = "igBeginMainMenuBar" defs["igBeginMainMenuBar"][1]["ret"] = "bool" @@ -6473,7 +6719,7 @@ defs["igBeginMenu"][1]["cimguiname"] = "igBeginMenu" defs["igBeginMenu"][1]["defaults"] = {} defs["igBeginMenu"][1]["defaults"]["enabled"] = "true" defs["igBeginMenu"][1]["funcname"] = "BeginMenu" -defs["igBeginMenu"][1]["location"] = "imgui:658" +defs["igBeginMenu"][1]["location"] = "imgui:660" defs["igBeginMenu"][1]["namespace"] = "ImGui" defs["igBeginMenu"][1]["ov_cimguiname"] = "igBeginMenu" defs["igBeginMenu"][1]["ret"] = "bool" @@ -6489,7 +6735,7 @@ defs["igBeginMenuBar"][1]["call_args"] = "()" defs["igBeginMenuBar"][1]["cimguiname"] = "igBeginMenuBar" defs["igBeginMenuBar"][1]["defaults"] = {} defs["igBeginMenuBar"][1]["funcname"] = "BeginMenuBar" -defs["igBeginMenuBar"][1]["location"] = "imgui:654" +defs["igBeginMenuBar"][1]["location"] = "imgui:656" defs["igBeginMenuBar"][1]["namespace"] = "ImGui" defs["igBeginMenuBar"][1]["ov_cimguiname"] = "igBeginMenuBar" defs["igBeginMenuBar"][1]["ret"] = "bool" @@ -6512,7 +6758,7 @@ defs["igBeginPopup"][1]["cimguiname"] = "igBeginPopup" defs["igBeginPopup"][1]["defaults"] = {} defs["igBeginPopup"][1]["defaults"]["flags"] = "0" defs["igBeginPopup"][1]["funcname"] = "BeginPopup" -defs["igBeginPopup"][1]["location"] = "imgui:682" +defs["igBeginPopup"][1]["location"] = "imgui:684" defs["igBeginPopup"][1]["namespace"] = "ImGui" defs["igBeginPopup"][1]["ov_cimguiname"] = "igBeginPopup" defs["igBeginPopup"][1]["ret"] = "bool" @@ -6536,7 +6782,7 @@ defs["igBeginPopupContextItem"][1]["defaults"] = {} defs["igBeginPopupContextItem"][1]["defaults"]["popup_flags"] = "1" defs["igBeginPopupContextItem"][1]["defaults"]["str_id"] = "NULL" defs["igBeginPopupContextItem"][1]["funcname"] = "BeginPopupContextItem" -defs["igBeginPopupContextItem"][1]["location"] = "imgui:703" +defs["igBeginPopupContextItem"][1]["location"] = "imgui:706" defs["igBeginPopupContextItem"][1]["namespace"] = "ImGui" defs["igBeginPopupContextItem"][1]["ov_cimguiname"] = "igBeginPopupContextItem" defs["igBeginPopupContextItem"][1]["ret"] = "bool" @@ -6560,7 +6806,7 @@ defs["igBeginPopupContextVoid"][1]["defaults"] = {} defs["igBeginPopupContextVoid"][1]["defaults"]["popup_flags"] = "1" defs["igBeginPopupContextVoid"][1]["defaults"]["str_id"] = "NULL" defs["igBeginPopupContextVoid"][1]["funcname"] = "BeginPopupContextVoid" -defs["igBeginPopupContextVoid"][1]["location"] = "imgui:705" +defs["igBeginPopupContextVoid"][1]["location"] = "imgui:708" defs["igBeginPopupContextVoid"][1]["namespace"] = "ImGui" defs["igBeginPopupContextVoid"][1]["ov_cimguiname"] = "igBeginPopupContextVoid" defs["igBeginPopupContextVoid"][1]["ret"] = "bool" @@ -6584,7 +6830,7 @@ defs["igBeginPopupContextWindow"][1]["defaults"] = {} defs["igBeginPopupContextWindow"][1]["defaults"]["popup_flags"] = "1" defs["igBeginPopupContextWindow"][1]["defaults"]["str_id"] = "NULL" defs["igBeginPopupContextWindow"][1]["funcname"] = "BeginPopupContextWindow" -defs["igBeginPopupContextWindow"][1]["location"] = "imgui:704" +defs["igBeginPopupContextWindow"][1]["location"] = "imgui:707" defs["igBeginPopupContextWindow"][1]["namespace"] = "ImGui" defs["igBeginPopupContextWindow"][1]["ov_cimguiname"] = "igBeginPopupContextWindow" defs["igBeginPopupContextWindow"][1]["ret"] = "bool" @@ -6611,7 +6857,7 @@ defs["igBeginPopupModal"][1]["defaults"] = {} defs["igBeginPopupModal"][1]["defaults"]["flags"] = "0" defs["igBeginPopupModal"][1]["defaults"]["p_open"] = "NULL" defs["igBeginPopupModal"][1]["funcname"] = "BeginPopupModal" -defs["igBeginPopupModal"][1]["location"] = "imgui:683" +defs["igBeginPopupModal"][1]["location"] = "imgui:685" defs["igBeginPopupModal"][1]["namespace"] = "ImGui" defs["igBeginPopupModal"][1]["ov_cimguiname"] = "igBeginPopupModal" defs["igBeginPopupModal"][1]["ret"] = "bool" @@ -6634,7 +6880,7 @@ defs["igBeginTabBar"][1]["cimguiname"] = "igBeginTabBar" defs["igBeginTabBar"][1]["defaults"] = {} defs["igBeginTabBar"][1]["defaults"]["flags"] = "0" defs["igBeginTabBar"][1]["funcname"] = "BeginTabBar" -defs["igBeginTabBar"][1]["location"] = "imgui:787" +defs["igBeginTabBar"][1]["location"] = "imgui:785" defs["igBeginTabBar"][1]["namespace"] = "ImGui" defs["igBeginTabBar"][1]["ov_cimguiname"] = "igBeginTabBar" defs["igBeginTabBar"][1]["ret"] = "bool" @@ -6661,7 +6907,7 @@ defs["igBeginTabItem"][1]["defaults"] = {} defs["igBeginTabItem"][1]["defaults"]["flags"] = "0" defs["igBeginTabItem"][1]["defaults"]["p_open"] = "NULL" defs["igBeginTabItem"][1]["funcname"] = "BeginTabItem" -defs["igBeginTabItem"][1]["location"] = "imgui:789" +defs["igBeginTabItem"][1]["location"] = "imgui:787" defs["igBeginTabItem"][1]["namespace"] = "ImGui" defs["igBeginTabItem"][1]["ov_cimguiname"] = "igBeginTabItem" defs["igBeginTabItem"][1]["ret"] = "bool" @@ -6695,7 +6941,7 @@ defs["igBeginTable"][1]["defaults"]["flags"] = "0" defs["igBeginTable"][1]["defaults"]["inner_width"] = "0.0f" defs["igBeginTable"][1]["defaults"]["outer_size"] = "ImVec2(0.0f,0.0f)" defs["igBeginTable"][1]["funcname"] = "BeginTable" -defs["igBeginTable"][1]["location"] = "imgui:738" +defs["igBeginTable"][1]["location"] = "imgui:739" defs["igBeginTable"][1]["namespace"] = "ImGui" defs["igBeginTable"][1]["ov_cimguiname"] = "igBeginTable" defs["igBeginTable"][1]["ret"] = "bool" @@ -6711,7 +6957,7 @@ defs["igBeginTooltip"][1]["call_args"] = "()" defs["igBeginTooltip"][1]["cimguiname"] = "igBeginTooltip" defs["igBeginTooltip"][1]["defaults"] = {} defs["igBeginTooltip"][1]["funcname"] = "BeginTooltip" -defs["igBeginTooltip"][1]["location"] = "imgui:665" +defs["igBeginTooltip"][1]["location"] = "imgui:667" defs["igBeginTooltip"][1]["namespace"] = "ImGui" defs["igBeginTooltip"][1]["ov_cimguiname"] = "igBeginTooltip" defs["igBeginTooltip"][1]["ret"] = "void" @@ -6727,7 +6973,7 @@ defs["igBullet"][1]["call_args"] = "()" defs["igBullet"][1]["cimguiname"] = "igBullet" defs["igBullet"][1]["defaults"] = {} defs["igBullet"][1]["funcname"] = "Bullet" -defs["igBullet"][1]["location"] = "imgui:514" +defs["igBullet"][1]["location"] = "imgui:510" defs["igBullet"][1]["namespace"] = "ImGui" defs["igBullet"][1]["ov_cimguiname"] = "igBullet" defs["igBullet"][1]["ret"] = "void" @@ -6750,7 +6996,7 @@ defs["igBulletText"][1]["cimguiname"] = "igBulletText" defs["igBulletText"][1]["defaults"] = {} defs["igBulletText"][1]["funcname"] = "BulletText" defs["igBulletText"][1]["isvararg"] = "...)" -defs["igBulletText"][1]["location"] = "imgui:496" +defs["igBulletText"][1]["location"] = "imgui:494" defs["igBulletText"][1]["namespace"] = "ImGui" defs["igBulletText"][1]["ov_cimguiname"] = "igBulletText" defs["igBulletText"][1]["ret"] = "void" @@ -6772,7 +7018,7 @@ defs["igBulletTextV"][1]["call_args"] = "(fmt,args)" defs["igBulletTextV"][1]["cimguiname"] = "igBulletTextV" defs["igBulletTextV"][1]["defaults"] = {} defs["igBulletTextV"][1]["funcname"] = "BulletTextV" -defs["igBulletTextV"][1]["location"] = "imgui:497" +defs["igBulletTextV"][1]["location"] = "imgui:495" defs["igBulletTextV"][1]["namespace"] = "ImGui" defs["igBulletTextV"][1]["ov_cimguiname"] = "igBulletTextV" defs["igBulletTextV"][1]["ret"] = "void" @@ -6795,7 +7041,7 @@ defs["igButton"][1]["cimguiname"] = "igButton" defs["igButton"][1]["defaults"] = {} defs["igButton"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igButton"][1]["funcname"] = "Button" -defs["igButton"][1]["location"] = "imgui:502" +defs["igButton"][1]["location"] = "imgui:500" defs["igButton"][1]["namespace"] = "ImGui" defs["igButton"][1]["ov_cimguiname"] = "igButton" defs["igButton"][1]["ret"] = "bool" @@ -6811,7 +7057,7 @@ defs["igCalcItemWidth"][1]["call_args"] = "()" defs["igCalcItemWidth"][1]["cimguiname"] = "igCalcItemWidth" defs["igCalcItemWidth"][1]["defaults"] = {} defs["igCalcItemWidth"][1]["funcname"] = "CalcItemWidth" -defs["igCalcItemWidth"][1]["location"] = "imgui:419" +defs["igCalcItemWidth"][1]["location"] = "imgui:417" defs["igCalcItemWidth"][1]["namespace"] = "ImGui" defs["igCalcItemWidth"][1]["ov_cimguiname"] = "igCalcItemWidth" defs["igCalcItemWidth"][1]["ret"] = "float" @@ -6853,46 +7099,6 @@ defs["igCalcTextSize"][1]["ret"] = "void" defs["igCalcTextSize"][1]["signature"] = "(const char*,const char*,bool,float)" defs["igCalcTextSize"][1]["stname"] = "" defs["igCalcTextSize"]["(const char*,const char*,bool,float)"] = defs["igCalcTextSize"][1] -defs["igCaptureKeyboardFromApp"] = {} -defs["igCaptureKeyboardFromApp"][1] = {} -defs["igCaptureKeyboardFromApp"][1]["args"] = "(bool want_capture_keyboard_value)" -defs["igCaptureKeyboardFromApp"][1]["argsT"] = {} -defs["igCaptureKeyboardFromApp"][1]["argsT"][1] = {} -defs["igCaptureKeyboardFromApp"][1]["argsT"][1]["name"] = "want_capture_keyboard_value" -defs["igCaptureKeyboardFromApp"][1]["argsT"][1]["type"] = "bool" -defs["igCaptureKeyboardFromApp"][1]["argsoriginal"] = "(bool want_capture_keyboard_value=true)" -defs["igCaptureKeyboardFromApp"][1]["call_args"] = "(want_capture_keyboard_value)" -defs["igCaptureKeyboardFromApp"][1]["cimguiname"] = "igCaptureKeyboardFromApp" -defs["igCaptureKeyboardFromApp"][1]["defaults"] = {} -defs["igCaptureKeyboardFromApp"][1]["defaults"]["want_capture_keyboard_value"] = "true" -defs["igCaptureKeyboardFromApp"][1]["funcname"] = "CaptureKeyboardFromApp" -defs["igCaptureKeyboardFromApp"][1]["location"] = "imgui:892" -defs["igCaptureKeyboardFromApp"][1]["namespace"] = "ImGui" -defs["igCaptureKeyboardFromApp"][1]["ov_cimguiname"] = "igCaptureKeyboardFromApp" -defs["igCaptureKeyboardFromApp"][1]["ret"] = "void" -defs["igCaptureKeyboardFromApp"][1]["signature"] = "(bool)" -defs["igCaptureKeyboardFromApp"][1]["stname"] = "" -defs["igCaptureKeyboardFromApp"]["(bool)"] = defs["igCaptureKeyboardFromApp"][1] -defs["igCaptureMouseFromApp"] = {} -defs["igCaptureMouseFromApp"][1] = {} -defs["igCaptureMouseFromApp"][1]["args"] = "(bool want_capture_mouse_value)" -defs["igCaptureMouseFromApp"][1]["argsT"] = {} -defs["igCaptureMouseFromApp"][1]["argsT"][1] = {} -defs["igCaptureMouseFromApp"][1]["argsT"][1]["name"] = "want_capture_mouse_value" -defs["igCaptureMouseFromApp"][1]["argsT"][1]["type"] = "bool" -defs["igCaptureMouseFromApp"][1]["argsoriginal"] = "(bool want_capture_mouse_value=true)" -defs["igCaptureMouseFromApp"][1]["call_args"] = "(want_capture_mouse_value)" -defs["igCaptureMouseFromApp"][1]["cimguiname"] = "igCaptureMouseFromApp" -defs["igCaptureMouseFromApp"][1]["defaults"] = {} -defs["igCaptureMouseFromApp"][1]["defaults"]["want_capture_mouse_value"] = "true" -defs["igCaptureMouseFromApp"][1]["funcname"] = "CaptureMouseFromApp" -defs["igCaptureMouseFromApp"][1]["location"] = "imgui:913" -defs["igCaptureMouseFromApp"][1]["namespace"] = "ImGui" -defs["igCaptureMouseFromApp"][1]["ov_cimguiname"] = "igCaptureMouseFromApp" -defs["igCaptureMouseFromApp"][1]["ret"] = "void" -defs["igCaptureMouseFromApp"][1]["signature"] = "(bool)" -defs["igCaptureMouseFromApp"][1]["stname"] = "" -defs["igCaptureMouseFromApp"]["(bool)"] = defs["igCaptureMouseFromApp"][1] defs["igCheckbox"] = {} defs["igCheckbox"][1] = {} defs["igCheckbox"][1]["args"] = "(const char* label,bool* v)" @@ -6908,7 +7114,7 @@ defs["igCheckbox"][1]["call_args"] = "(label,v)" defs["igCheckbox"][1]["cimguiname"] = "igCheckbox" defs["igCheckbox"][1]["defaults"] = {} defs["igCheckbox"][1]["funcname"] = "Checkbox" -defs["igCheckbox"][1]["location"] = "imgui:508" +defs["igCheckbox"][1]["location"] = "imgui:504" defs["igCheckbox"][1]["namespace"] = "ImGui" defs["igCheckbox"][1]["ov_cimguiname"] = "igCheckbox" defs["igCheckbox"][1]["ret"] = "bool" @@ -6933,9 +7139,9 @@ defs["igCheckboxFlags"][1]["call_args"] = "(label,flags,flags_value)" defs["igCheckboxFlags"][1]["cimguiname"] = "igCheckboxFlags" defs["igCheckboxFlags"][1]["defaults"] = {} defs["igCheckboxFlags"][1]["funcname"] = "CheckboxFlags" -defs["igCheckboxFlags"][1]["location"] = "imgui:509" +defs["igCheckboxFlags"][1]["location"] = "imgui:505" defs["igCheckboxFlags"][1]["namespace"] = "ImGui" -defs["igCheckboxFlags"][1]["ov_cimguiname"] = "igCheckboxFlagsIntPtr" +defs["igCheckboxFlags"][1]["ov_cimguiname"] = "igCheckboxFlags_IntPtr" defs["igCheckboxFlags"][1]["ret"] = "bool" defs["igCheckboxFlags"][1]["signature"] = "(const char*,int*,int)" defs["igCheckboxFlags"][1]["stname"] = "" @@ -6956,9 +7162,9 @@ defs["igCheckboxFlags"][2]["call_args"] = "(label,flags,flags_value)" defs["igCheckboxFlags"][2]["cimguiname"] = "igCheckboxFlags" defs["igCheckboxFlags"][2]["defaults"] = {} defs["igCheckboxFlags"][2]["funcname"] = "CheckboxFlags" -defs["igCheckboxFlags"][2]["location"] = "imgui:510" +defs["igCheckboxFlags"][2]["location"] = "imgui:506" defs["igCheckboxFlags"][2]["namespace"] = "ImGui" -defs["igCheckboxFlags"][2]["ov_cimguiname"] = "igCheckboxFlagsUintPtr" +defs["igCheckboxFlags"][2]["ov_cimguiname"] = "igCheckboxFlags_UintPtr" defs["igCheckboxFlags"][2]["ret"] = "bool" defs["igCheckboxFlags"][2]["signature"] = "(const char*,unsigned int*,unsigned int)" defs["igCheckboxFlags"][2]["stname"] = "" @@ -6973,7 +7179,7 @@ defs["igCloseCurrentPopup"][1]["call_args"] = "()" defs["igCloseCurrentPopup"][1]["cimguiname"] = "igCloseCurrentPopup" defs["igCloseCurrentPopup"][1]["defaults"] = {} defs["igCloseCurrentPopup"][1]["funcname"] = "CloseCurrentPopup" -defs["igCloseCurrentPopup"][1]["location"] = "imgui:696" +defs["igCloseCurrentPopup"][1]["location"] = "imgui:699" defs["igCloseCurrentPopup"][1]["namespace"] = "ImGui" defs["igCloseCurrentPopup"][1]["ov_cimguiname"] = "igCloseCurrentPopup" defs["igCloseCurrentPopup"][1]["ret"] = "void" @@ -6996,9 +7202,9 @@ defs["igCollapsingHeader"][1]["cimguiname"] = "igCollapsingHeader" defs["igCollapsingHeader"][1]["defaults"] = {} defs["igCollapsingHeader"][1]["defaults"]["flags"] = "0" defs["igCollapsingHeader"][1]["funcname"] = "CollapsingHeader" -defs["igCollapsingHeader"][1]["location"] = "imgui:614" +defs["igCollapsingHeader"][1]["location"] = "imgui:616" defs["igCollapsingHeader"][1]["namespace"] = "ImGui" -defs["igCollapsingHeader"][1]["ov_cimguiname"] = "igCollapsingHeaderTreeNodeFlags" +defs["igCollapsingHeader"][1]["ov_cimguiname"] = "igCollapsingHeader_TreeNodeFlags" defs["igCollapsingHeader"][1]["ret"] = "bool" defs["igCollapsingHeader"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags)" defs["igCollapsingHeader"][1]["stname"] = "" @@ -7020,9 +7226,9 @@ defs["igCollapsingHeader"][2]["cimguiname"] = "igCollapsingHeader" defs["igCollapsingHeader"][2]["defaults"] = {} defs["igCollapsingHeader"][2]["defaults"]["flags"] = "0" defs["igCollapsingHeader"][2]["funcname"] = "CollapsingHeader" -defs["igCollapsingHeader"][2]["location"] = "imgui:615" +defs["igCollapsingHeader"][2]["location"] = "imgui:617" defs["igCollapsingHeader"][2]["namespace"] = "ImGui" -defs["igCollapsingHeader"][2]["ov_cimguiname"] = "igCollapsingHeaderBoolPtr" +defs["igCollapsingHeader"][2]["ov_cimguiname"] = "igCollapsingHeader_BoolPtr" defs["igCollapsingHeader"][2]["ret"] = "bool" defs["igCollapsingHeader"][2]["signature"] = "(const char*,bool*,ImGuiTreeNodeFlags)" defs["igCollapsingHeader"][2]["stname"] = "" @@ -7030,7 +7236,7 @@ defs["igCollapsingHeader"]["(const char*,ImGuiTreeNodeFlags)"] = defs["igCollaps defs["igCollapsingHeader"]["(const char*,bool*,ImGuiTreeNodeFlags)"] = defs["igCollapsingHeader"][2] defs["igColorButton"] = {} defs["igColorButton"][1] = {} -defs["igColorButton"][1]["args"] = "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,ImVec2 size)" +defs["igColorButton"][1]["args"] = "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)" defs["igColorButton"][1]["argsT"] = {} defs["igColorButton"][1]["argsT"][1] = {} defs["igColorButton"][1]["argsT"][1]["name"] = "desc_id" @@ -7043,21 +7249,21 @@ defs["igColorButton"][1]["argsT"][3]["name"] = "flags" defs["igColorButton"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" defs["igColorButton"][1]["argsT"][4] = {} defs["igColorButton"][1]["argsT"][4]["name"] = "size" -defs["igColorButton"][1]["argsT"][4]["type"] = "ImVec2" -defs["igColorButton"][1]["argsoriginal"] = "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,ImVec2 size=ImVec2(0,0))" +defs["igColorButton"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igColorButton"][1]["argsoriginal"] = "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))" defs["igColorButton"][1]["call_args"] = "(desc_id,col,flags,size)" defs["igColorButton"][1]["cimguiname"] = "igColorButton" defs["igColorButton"][1]["defaults"] = {} defs["igColorButton"][1]["defaults"]["flags"] = "0" defs["igColorButton"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igColorButton"][1]["funcname"] = "ColorButton" -defs["igColorButton"][1]["location"] = "imgui:595" +defs["igColorButton"][1]["location"] = "imgui:597" defs["igColorButton"][1]["namespace"] = "ImGui" defs["igColorButton"][1]["ov_cimguiname"] = "igColorButton" defs["igColorButton"][1]["ret"] = "bool" -defs["igColorButton"][1]["signature"] = "(const char*,const ImVec4,ImGuiColorEditFlags,ImVec2)" +defs["igColorButton"][1]["signature"] = "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)" defs["igColorButton"][1]["stname"] = "" -defs["igColorButton"]["(const char*,const ImVec4,ImGuiColorEditFlags,ImVec2)"] = defs["igColorButton"][1] +defs["igColorButton"]["(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)"] = defs["igColorButton"][1] defs["igColorConvertFloat4ToU32"] = {} defs["igColorConvertFloat4ToU32"][1] = {} defs["igColorConvertFloat4ToU32"][1]["args"] = "(const ImVec4 in)" @@ -7193,7 +7399,7 @@ defs["igColorEdit3"][1]["cimguiname"] = "igColorEdit3" defs["igColorEdit3"][1]["defaults"] = {} defs["igColorEdit3"][1]["defaults"]["flags"] = "0" defs["igColorEdit3"][1]["funcname"] = "ColorEdit3" -defs["igColorEdit3"][1]["location"] = "imgui:591" +defs["igColorEdit3"][1]["location"] = "imgui:593" defs["igColorEdit3"][1]["namespace"] = "ImGui" defs["igColorEdit3"][1]["ov_cimguiname"] = "igColorEdit3" defs["igColorEdit3"][1]["ret"] = "bool" @@ -7219,7 +7425,7 @@ defs["igColorEdit4"][1]["cimguiname"] = "igColorEdit4" defs["igColorEdit4"][1]["defaults"] = {} defs["igColorEdit4"][1]["defaults"]["flags"] = "0" defs["igColorEdit4"][1]["funcname"] = "ColorEdit4" -defs["igColorEdit4"][1]["location"] = "imgui:592" +defs["igColorEdit4"][1]["location"] = "imgui:594" defs["igColorEdit4"][1]["namespace"] = "ImGui" defs["igColorEdit4"][1]["ov_cimguiname"] = "igColorEdit4" defs["igColorEdit4"][1]["ret"] = "bool" @@ -7245,7 +7451,7 @@ defs["igColorPicker3"][1]["cimguiname"] = "igColorPicker3" defs["igColorPicker3"][1]["defaults"] = {} defs["igColorPicker3"][1]["defaults"]["flags"] = "0" defs["igColorPicker3"][1]["funcname"] = "ColorPicker3" -defs["igColorPicker3"][1]["location"] = "imgui:593" +defs["igColorPicker3"][1]["location"] = "imgui:595" defs["igColorPicker3"][1]["namespace"] = "ImGui" defs["igColorPicker3"][1]["ov_cimguiname"] = "igColorPicker3" defs["igColorPicker3"][1]["ret"] = "bool" @@ -7275,7 +7481,7 @@ defs["igColorPicker4"][1]["defaults"] = {} defs["igColorPicker4"][1]["defaults"]["flags"] = "0" defs["igColorPicker4"][1]["defaults"]["ref_col"] = "NULL" defs["igColorPicker4"][1]["funcname"] = "ColorPicker4" -defs["igColorPicker4"][1]["location"] = "imgui:594" +defs["igColorPicker4"][1]["location"] = "imgui:596" defs["igColorPicker4"][1]["namespace"] = "ImGui" defs["igColorPicker4"][1]["ov_cimguiname"] = "igColorPicker4" defs["igColorPicker4"][1]["ret"] = "bool" @@ -7303,7 +7509,7 @@ defs["igColumns"][1]["defaults"]["border"] = "true" defs["igColumns"][1]["defaults"]["count"] = "1" defs["igColumns"][1]["defaults"]["id"] = "NULL" defs["igColumns"][1]["funcname"] = "Columns" -defs["igColumns"][1]["location"] = "imgui:777" +defs["igColumns"][1]["location"] = "imgui:775" defs["igColumns"][1]["namespace"] = "ImGui" defs["igColumns"][1]["ov_cimguiname"] = "igColumns" defs["igColumns"][1]["ret"] = "void" @@ -7335,9 +7541,9 @@ defs["igCombo"][1]["cimguiname"] = "igCombo" defs["igCombo"][1]["defaults"] = {} defs["igCombo"][1]["defaults"]["popup_max_height_in_items"] = "-1" defs["igCombo"][1]["funcname"] = "Combo" -defs["igCombo"][1]["location"] = "imgui:521" +defs["igCombo"][1]["location"] = "imgui:522" defs["igCombo"][1]["namespace"] = "ImGui" -defs["igCombo"][1]["ov_cimguiname"] = "igComboStr_arr" +defs["igCombo"][1]["ov_cimguiname"] = "igCombo_Str_arr" defs["igCombo"][1]["ret"] = "bool" defs["igCombo"][1]["signature"] = "(const char*,int*,const char* const[],int,int)" defs["igCombo"][1]["stname"] = "" @@ -7362,9 +7568,9 @@ defs["igCombo"][2]["cimguiname"] = "igCombo" defs["igCombo"][2]["defaults"] = {} defs["igCombo"][2]["defaults"]["popup_max_height_in_items"] = "-1" defs["igCombo"][2]["funcname"] = "Combo" -defs["igCombo"][2]["location"] = "imgui:522" +defs["igCombo"][2]["location"] = "imgui:523" defs["igCombo"][2]["namespace"] = "ImGui" -defs["igCombo"][2]["ov_cimguiname"] = "igComboStr" +defs["igCombo"][2]["ov_cimguiname"] = "igCombo_Str" defs["igCombo"][2]["ret"] = "bool" defs["igCombo"][2]["signature"] = "(const char*,int*,const char*,int)" defs["igCombo"][2]["stname"] = "" @@ -7397,9 +7603,9 @@ defs["igCombo"][3]["cimguiname"] = "igCombo" defs["igCombo"][3]["defaults"] = {} defs["igCombo"][3]["defaults"]["popup_max_height_in_items"] = "-1" defs["igCombo"][3]["funcname"] = "Combo" -defs["igCombo"][3]["location"] = "imgui:523" +defs["igCombo"][3]["location"] = "imgui:524" defs["igCombo"][3]["namespace"] = "ImGui" -defs["igCombo"][3]["ov_cimguiname"] = "igComboFnBoolPtr" +defs["igCombo"][3]["ov_cimguiname"] = "igCombo_FnBoolPtr" defs["igCombo"][3]["ret"] = "bool" defs["igCombo"][3]["signature"] = "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)" defs["igCombo"][3]["stname"] = "" @@ -7419,7 +7625,7 @@ defs["igCreateContext"][1]["cimguiname"] = "igCreateContext" defs["igCreateContext"][1]["defaults"] = {} defs["igCreateContext"][1]["defaults"]["shared_font_atlas"] = "NULL" defs["igCreateContext"][1]["funcname"] = "CreateContext" -defs["igCreateContext"][1]["location"] = "imgui:294" +defs["igCreateContext"][1]["location"] = "imgui:288" defs["igCreateContext"][1]["namespace"] = "ImGui" defs["igCreateContext"][1]["ov_cimguiname"] = "igCreateContext" defs["igCreateContext"][1]["ret"] = "ImGuiContext*" @@ -7456,13 +7662,32 @@ defs["igDebugCheckVersionAndDataLayout"][1]["call_args"] = "(version_str,sz_io,s defs["igDebugCheckVersionAndDataLayout"][1]["cimguiname"] = "igDebugCheckVersionAndDataLayout" defs["igDebugCheckVersionAndDataLayout"][1]["defaults"] = {} defs["igDebugCheckVersionAndDataLayout"][1]["funcname"] = "DebugCheckVersionAndDataLayout" -defs["igDebugCheckVersionAndDataLayout"][1]["location"] = "imgui:931" +defs["igDebugCheckVersionAndDataLayout"][1]["location"] = "imgui:934" defs["igDebugCheckVersionAndDataLayout"][1]["namespace"] = "ImGui" defs["igDebugCheckVersionAndDataLayout"][1]["ov_cimguiname"] = "igDebugCheckVersionAndDataLayout" defs["igDebugCheckVersionAndDataLayout"][1]["ret"] = "bool" defs["igDebugCheckVersionAndDataLayout"][1]["signature"] = "(const char*,size_t,size_t,size_t,size_t,size_t,size_t)" defs["igDebugCheckVersionAndDataLayout"][1]["stname"] = "" defs["igDebugCheckVersionAndDataLayout"]["(const char*,size_t,size_t,size_t,size_t,size_t,size_t)"] = defs["igDebugCheckVersionAndDataLayout"][1] +defs["igDebugTextEncoding"] = {} +defs["igDebugTextEncoding"][1] = {} +defs["igDebugTextEncoding"][1]["args"] = "(const char* text)" +defs["igDebugTextEncoding"][1]["argsT"] = {} +defs["igDebugTextEncoding"][1]["argsT"][1] = {} +defs["igDebugTextEncoding"][1]["argsT"][1]["name"] = "text" +defs["igDebugTextEncoding"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugTextEncoding"][1]["argsoriginal"] = "(const char* text)" +defs["igDebugTextEncoding"][1]["call_args"] = "(text)" +defs["igDebugTextEncoding"][1]["cimguiname"] = "igDebugTextEncoding" +defs["igDebugTextEncoding"][1]["defaults"] = {} +defs["igDebugTextEncoding"][1]["funcname"] = "DebugTextEncoding" +defs["igDebugTextEncoding"][1]["location"] = "imgui:933" +defs["igDebugTextEncoding"][1]["namespace"] = "ImGui" +defs["igDebugTextEncoding"][1]["ov_cimguiname"] = "igDebugTextEncoding" +defs["igDebugTextEncoding"][1]["ret"] = "void" +defs["igDebugTextEncoding"][1]["signature"] = "(const char*)" +defs["igDebugTextEncoding"][1]["stname"] = "" +defs["igDebugTextEncoding"]["(const char*)"] = defs["igDebugTextEncoding"][1] defs["igDestroyContext"] = {} defs["igDestroyContext"][1] = {} defs["igDestroyContext"][1]["args"] = "(ImGuiContext* ctx)" @@ -7476,7 +7701,7 @@ defs["igDestroyContext"][1]["cimguiname"] = "igDestroyContext" defs["igDestroyContext"][1]["defaults"] = {} defs["igDestroyContext"][1]["defaults"]["ctx"] = "NULL" defs["igDestroyContext"][1]["funcname"] = "DestroyContext" -defs["igDestroyContext"][1]["location"] = "imgui:295" +defs["igDestroyContext"][1]["location"] = "imgui:289" defs["igDestroyContext"][1]["namespace"] = "ImGui" defs["igDestroyContext"][1]["ov_cimguiname"] = "igDestroyContext" defs["igDestroyContext"][1]["ret"] = "void" @@ -7518,7 +7743,7 @@ defs["igDragFloat"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloat"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloat"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloat"][1]["funcname"] = "DragFloat" -defs["igDragFloat"][1]["location"] = "imgui:536" +defs["igDragFloat"][1]["location"] = "imgui:538" defs["igDragFloat"][1]["namespace"] = "ImGui" defs["igDragFloat"][1]["ov_cimguiname"] = "igDragFloat" defs["igDragFloat"][1]["ret"] = "bool" @@ -7560,7 +7785,7 @@ defs["igDragFloat2"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloat2"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloat2"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloat2"][1]["funcname"] = "DragFloat2" -defs["igDragFloat2"][1]["location"] = "imgui:537" +defs["igDragFloat2"][1]["location"] = "imgui:539" defs["igDragFloat2"][1]["namespace"] = "ImGui" defs["igDragFloat2"][1]["ov_cimguiname"] = "igDragFloat2" defs["igDragFloat2"][1]["ret"] = "bool" @@ -7602,7 +7827,7 @@ defs["igDragFloat3"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloat3"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloat3"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloat3"][1]["funcname"] = "DragFloat3" -defs["igDragFloat3"][1]["location"] = "imgui:538" +defs["igDragFloat3"][1]["location"] = "imgui:540" defs["igDragFloat3"][1]["namespace"] = "ImGui" defs["igDragFloat3"][1]["ov_cimguiname"] = "igDragFloat3" defs["igDragFloat3"][1]["ret"] = "bool" @@ -7644,7 +7869,7 @@ defs["igDragFloat4"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloat4"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloat4"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloat4"][1]["funcname"] = "DragFloat4" -defs["igDragFloat4"][1]["location"] = "imgui:539" +defs["igDragFloat4"][1]["location"] = "imgui:541" defs["igDragFloat4"][1]["namespace"] = "ImGui" defs["igDragFloat4"][1]["ov_cimguiname"] = "igDragFloat4" defs["igDragFloat4"][1]["ret"] = "bool" @@ -7693,7 +7918,7 @@ defs["igDragFloatRange2"][1]["defaults"]["v_max"] = "0.0f" defs["igDragFloatRange2"][1]["defaults"]["v_min"] = "0.0f" defs["igDragFloatRange2"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragFloatRange2"][1]["funcname"] = "DragFloatRange2" -defs["igDragFloatRange2"][1]["location"] = "imgui:540" +defs["igDragFloatRange2"][1]["location"] = "imgui:542" defs["igDragFloatRange2"][1]["namespace"] = "ImGui" defs["igDragFloatRange2"][1]["ov_cimguiname"] = "igDragFloatRange2" defs["igDragFloatRange2"][1]["ret"] = "bool" @@ -7735,7 +7960,7 @@ defs["igDragInt"][1]["defaults"]["v_max"] = "0" defs["igDragInt"][1]["defaults"]["v_min"] = "0" defs["igDragInt"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragInt"][1]["funcname"] = "DragInt" -defs["igDragInt"][1]["location"] = "imgui:541" +defs["igDragInt"][1]["location"] = "imgui:543" defs["igDragInt"][1]["namespace"] = "ImGui" defs["igDragInt"][1]["ov_cimguiname"] = "igDragInt" defs["igDragInt"][1]["ret"] = "bool" @@ -7777,7 +8002,7 @@ defs["igDragInt2"][1]["defaults"]["v_max"] = "0" defs["igDragInt2"][1]["defaults"]["v_min"] = "0" defs["igDragInt2"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragInt2"][1]["funcname"] = "DragInt2" -defs["igDragInt2"][1]["location"] = "imgui:542" +defs["igDragInt2"][1]["location"] = "imgui:544" defs["igDragInt2"][1]["namespace"] = "ImGui" defs["igDragInt2"][1]["ov_cimguiname"] = "igDragInt2" defs["igDragInt2"][1]["ret"] = "bool" @@ -7819,7 +8044,7 @@ defs["igDragInt3"][1]["defaults"]["v_max"] = "0" defs["igDragInt3"][1]["defaults"]["v_min"] = "0" defs["igDragInt3"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragInt3"][1]["funcname"] = "DragInt3" -defs["igDragInt3"][1]["location"] = "imgui:543" +defs["igDragInt3"][1]["location"] = "imgui:545" defs["igDragInt3"][1]["namespace"] = "ImGui" defs["igDragInt3"][1]["ov_cimguiname"] = "igDragInt3" defs["igDragInt3"][1]["ret"] = "bool" @@ -7861,7 +8086,7 @@ defs["igDragInt4"][1]["defaults"]["v_max"] = "0" defs["igDragInt4"][1]["defaults"]["v_min"] = "0" defs["igDragInt4"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragInt4"][1]["funcname"] = "DragInt4" -defs["igDragInt4"][1]["location"] = "imgui:544" +defs["igDragInt4"][1]["location"] = "imgui:546" defs["igDragInt4"][1]["namespace"] = "ImGui" defs["igDragInt4"][1]["ov_cimguiname"] = "igDragInt4" defs["igDragInt4"][1]["ret"] = "bool" @@ -7910,7 +8135,7 @@ defs["igDragIntRange2"][1]["defaults"]["v_max"] = "0" defs["igDragIntRange2"][1]["defaults"]["v_min"] = "0" defs["igDragIntRange2"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragIntRange2"][1]["funcname"] = "DragIntRange2" -defs["igDragIntRange2"][1]["location"] = "imgui:545" +defs["igDragIntRange2"][1]["location"] = "imgui:547" defs["igDragIntRange2"][1]["namespace"] = "ImGui" defs["igDragIntRange2"][1]["ov_cimguiname"] = "igDragIntRange2" defs["igDragIntRange2"][1]["ret"] = "bool" @@ -7955,7 +8180,7 @@ defs["igDragScalar"][1]["defaults"]["p_max"] = "NULL" defs["igDragScalar"][1]["defaults"]["p_min"] = "NULL" defs["igDragScalar"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragScalar"][1]["funcname"] = "DragScalar" -defs["igDragScalar"][1]["location"] = "imgui:546" +defs["igDragScalar"][1]["location"] = "imgui:548" defs["igDragScalar"][1]["namespace"] = "ImGui" defs["igDragScalar"][1]["ov_cimguiname"] = "igDragScalar" defs["igDragScalar"][1]["ret"] = "bool" @@ -8003,7 +8228,7 @@ defs["igDragScalarN"][1]["defaults"]["p_max"] = "NULL" defs["igDragScalarN"][1]["defaults"]["p_min"] = "NULL" defs["igDragScalarN"][1]["defaults"]["v_speed"] = "1.0f" defs["igDragScalarN"][1]["funcname"] = "DragScalarN" -defs["igDragScalarN"][1]["location"] = "imgui:547" +defs["igDragScalarN"][1]["location"] = "imgui:549" defs["igDragScalarN"][1]["namespace"] = "ImGui" defs["igDragScalarN"][1]["ov_cimguiname"] = "igDragScalarN" defs["igDragScalarN"][1]["ret"] = "bool" @@ -8022,7 +8247,7 @@ defs["igDummy"][1]["call_args"] = "(size)" defs["igDummy"][1]["cimguiname"] = "igDummy" defs["igDummy"][1]["defaults"] = {} defs["igDummy"][1]["funcname"] = "Dummy" -defs["igDummy"][1]["location"] = "imgui:444" +defs["igDummy"][1]["location"] = "imgui:442" defs["igDummy"][1]["namespace"] = "ImGui" defs["igDummy"][1]["ov_cimguiname"] = "igDummy" defs["igDummy"][1]["ret"] = "void" @@ -8038,7 +8263,7 @@ defs["igEnd"][1]["call_args"] = "()" defs["igEnd"][1]["cimguiname"] = "igEnd" defs["igEnd"][1]["defaults"] = {} defs["igEnd"][1]["funcname"] = "End" -defs["igEnd"][1]["location"] = "imgui:336" +defs["igEnd"][1]["location"] = "imgui:331" defs["igEnd"][1]["namespace"] = "ImGui" defs["igEnd"][1]["ov_cimguiname"] = "igEnd" defs["igEnd"][1]["ret"] = "void" @@ -8054,7 +8279,7 @@ defs["igEndChild"][1]["call_args"] = "()" defs["igEndChild"][1]["cimguiname"] = "igEndChild" defs["igEndChild"][1]["defaults"] = {} defs["igEndChild"][1]["funcname"] = "EndChild" -defs["igEndChild"][1]["location"] = "imgui:348" +defs["igEndChild"][1]["location"] = "imgui:343" defs["igEndChild"][1]["namespace"] = "ImGui" defs["igEndChild"][1]["ov_cimguiname"] = "igEndChild" defs["igEndChild"][1]["ret"] = "void" @@ -8086,7 +8311,7 @@ defs["igEndCombo"][1]["call_args"] = "()" defs["igEndCombo"][1]["cimguiname"] = "igEndCombo" defs["igEndCombo"][1]["defaults"] = {} defs["igEndCombo"][1]["funcname"] = "EndCombo" -defs["igEndCombo"][1]["location"] = "imgui:520" +defs["igEndCombo"][1]["location"] = "imgui:521" defs["igEndCombo"][1]["namespace"] = "ImGui" defs["igEndCombo"][1]["ov_cimguiname"] = "igEndCombo" defs["igEndCombo"][1]["ret"] = "void" @@ -8102,7 +8327,7 @@ defs["igEndDisabled"][1]["call_args"] = "()" defs["igEndDisabled"][1]["cimguiname"] = "igEndDisabled" defs["igEndDisabled"][1]["defaults"] = {} defs["igEndDisabled"][1]["funcname"] = "EndDisabled" -defs["igEndDisabled"][1]["location"] = "imgui:822" +defs["igEndDisabled"][1]["location"] = "imgui:820" defs["igEndDisabled"][1]["namespace"] = "ImGui" defs["igEndDisabled"][1]["ov_cimguiname"] = "igEndDisabled" defs["igEndDisabled"][1]["ret"] = "void" @@ -8118,7 +8343,7 @@ defs["igEndDragDropSource"][1]["call_args"] = "()" defs["igEndDragDropSource"][1]["cimguiname"] = "igEndDragDropSource" defs["igEndDragDropSource"][1]["defaults"] = {} defs["igEndDragDropSource"][1]["funcname"] = "EndDragDropSource" -defs["igEndDragDropSource"][1]["location"] = "imgui:811" +defs["igEndDragDropSource"][1]["location"] = "imgui:809" defs["igEndDragDropSource"][1]["namespace"] = "ImGui" defs["igEndDragDropSource"][1]["ov_cimguiname"] = "igEndDragDropSource" defs["igEndDragDropSource"][1]["ret"] = "void" @@ -8134,7 +8359,7 @@ defs["igEndDragDropTarget"][1]["call_args"] = "()" defs["igEndDragDropTarget"][1]["cimguiname"] = "igEndDragDropTarget" defs["igEndDragDropTarget"][1]["defaults"] = {} defs["igEndDragDropTarget"][1]["funcname"] = "EndDragDropTarget" -defs["igEndDragDropTarget"][1]["location"] = "imgui:814" +defs["igEndDragDropTarget"][1]["location"] = "imgui:812" defs["igEndDragDropTarget"][1]["namespace"] = "ImGui" defs["igEndDragDropTarget"][1]["ov_cimguiname"] = "igEndDragDropTarget" defs["igEndDragDropTarget"][1]["ret"] = "void" @@ -8150,7 +8375,7 @@ defs["igEndFrame"][1]["call_args"] = "()" defs["igEndFrame"][1]["cimguiname"] = "igEndFrame" defs["igEndFrame"][1]["defaults"] = {} defs["igEndFrame"][1]["funcname"] = "EndFrame" -defs["igEndFrame"][1]["location"] = "imgui:303" +defs["igEndFrame"][1]["location"] = "imgui:297" defs["igEndFrame"][1]["namespace"] = "ImGui" defs["igEndFrame"][1]["ov_cimguiname"] = "igEndFrame" defs["igEndFrame"][1]["ret"] = "void" @@ -8166,7 +8391,7 @@ defs["igEndGroup"][1]["call_args"] = "()" defs["igEndGroup"][1]["cimguiname"] = "igEndGroup" defs["igEndGroup"][1]["defaults"] = {} defs["igEndGroup"][1]["funcname"] = "EndGroup" -defs["igEndGroup"][1]["location"] = "imgui:448" +defs["igEndGroup"][1]["location"] = "imgui:446" defs["igEndGroup"][1]["namespace"] = "ImGui" defs["igEndGroup"][1]["ov_cimguiname"] = "igEndGroup" defs["igEndGroup"][1]["ret"] = "void" @@ -8182,7 +8407,7 @@ defs["igEndListBox"][1]["call_args"] = "()" defs["igEndListBox"][1]["cimguiname"] = "igEndListBox" defs["igEndListBox"][1]["defaults"] = {} defs["igEndListBox"][1]["funcname"] = "EndListBox" -defs["igEndListBox"][1]["location"] = "imgui:631" +defs["igEndListBox"][1]["location"] = "imgui:633" defs["igEndListBox"][1]["namespace"] = "ImGui" defs["igEndListBox"][1]["ov_cimguiname"] = "igEndListBox" defs["igEndListBox"][1]["ret"] = "void" @@ -8198,7 +8423,7 @@ defs["igEndMainMenuBar"][1]["call_args"] = "()" defs["igEndMainMenuBar"][1]["cimguiname"] = "igEndMainMenuBar" defs["igEndMainMenuBar"][1]["defaults"] = {} defs["igEndMainMenuBar"][1]["funcname"] = "EndMainMenuBar" -defs["igEndMainMenuBar"][1]["location"] = "imgui:657" +defs["igEndMainMenuBar"][1]["location"] = "imgui:659" defs["igEndMainMenuBar"][1]["namespace"] = "ImGui" defs["igEndMainMenuBar"][1]["ov_cimguiname"] = "igEndMainMenuBar" defs["igEndMainMenuBar"][1]["ret"] = "void" @@ -8214,7 +8439,7 @@ defs["igEndMenu"][1]["call_args"] = "()" defs["igEndMenu"][1]["cimguiname"] = "igEndMenu" defs["igEndMenu"][1]["defaults"] = {} defs["igEndMenu"][1]["funcname"] = "EndMenu" -defs["igEndMenu"][1]["location"] = "imgui:659" +defs["igEndMenu"][1]["location"] = "imgui:661" defs["igEndMenu"][1]["namespace"] = "ImGui" defs["igEndMenu"][1]["ov_cimguiname"] = "igEndMenu" defs["igEndMenu"][1]["ret"] = "void" @@ -8230,7 +8455,7 @@ defs["igEndMenuBar"][1]["call_args"] = "()" defs["igEndMenuBar"][1]["cimguiname"] = "igEndMenuBar" defs["igEndMenuBar"][1]["defaults"] = {} defs["igEndMenuBar"][1]["funcname"] = "EndMenuBar" -defs["igEndMenuBar"][1]["location"] = "imgui:655" +defs["igEndMenuBar"][1]["location"] = "imgui:657" defs["igEndMenuBar"][1]["namespace"] = "ImGui" defs["igEndMenuBar"][1]["ov_cimguiname"] = "igEndMenuBar" defs["igEndMenuBar"][1]["ret"] = "void" @@ -8246,7 +8471,7 @@ defs["igEndPopup"][1]["call_args"] = "()" defs["igEndPopup"][1]["cimguiname"] = "igEndPopup" defs["igEndPopup"][1]["defaults"] = {} defs["igEndPopup"][1]["funcname"] = "EndPopup" -defs["igEndPopup"][1]["location"] = "imgui:684" +defs["igEndPopup"][1]["location"] = "imgui:686" defs["igEndPopup"][1]["namespace"] = "ImGui" defs["igEndPopup"][1]["ov_cimguiname"] = "igEndPopup" defs["igEndPopup"][1]["ret"] = "void" @@ -8262,7 +8487,7 @@ defs["igEndTabBar"][1]["call_args"] = "()" defs["igEndTabBar"][1]["cimguiname"] = "igEndTabBar" defs["igEndTabBar"][1]["defaults"] = {} defs["igEndTabBar"][1]["funcname"] = "EndTabBar" -defs["igEndTabBar"][1]["location"] = "imgui:788" +defs["igEndTabBar"][1]["location"] = "imgui:786" defs["igEndTabBar"][1]["namespace"] = "ImGui" defs["igEndTabBar"][1]["ov_cimguiname"] = "igEndTabBar" defs["igEndTabBar"][1]["ret"] = "void" @@ -8278,7 +8503,7 @@ defs["igEndTabItem"][1]["call_args"] = "()" defs["igEndTabItem"][1]["cimguiname"] = "igEndTabItem" defs["igEndTabItem"][1]["defaults"] = {} defs["igEndTabItem"][1]["funcname"] = "EndTabItem" -defs["igEndTabItem"][1]["location"] = "imgui:790" +defs["igEndTabItem"][1]["location"] = "imgui:788" defs["igEndTabItem"][1]["namespace"] = "ImGui" defs["igEndTabItem"][1]["ov_cimguiname"] = "igEndTabItem" defs["igEndTabItem"][1]["ret"] = "void" @@ -8294,7 +8519,7 @@ defs["igEndTable"][1]["call_args"] = "()" defs["igEndTable"][1]["cimguiname"] = "igEndTable" defs["igEndTable"][1]["defaults"] = {} defs["igEndTable"][1]["funcname"] = "EndTable" -defs["igEndTable"][1]["location"] = "imgui:739" +defs["igEndTable"][1]["location"] = "imgui:740" defs["igEndTable"][1]["namespace"] = "ImGui" defs["igEndTable"][1]["ov_cimguiname"] = "igEndTable" defs["igEndTable"][1]["ret"] = "void" @@ -8310,7 +8535,7 @@ defs["igEndTooltip"][1]["call_args"] = "()" defs["igEndTooltip"][1]["cimguiname"] = "igEndTooltip" defs["igEndTooltip"][1]["defaults"] = {} defs["igEndTooltip"][1]["funcname"] = "EndTooltip" -defs["igEndTooltip"][1]["location"] = "imgui:666" +defs["igEndTooltip"][1]["location"] = "imgui:668" defs["igEndTooltip"][1]["namespace"] = "ImGui" defs["igEndTooltip"][1]["ov_cimguiname"] = "igEndTooltip" defs["igEndTooltip"][1]["ret"] = "void" @@ -8335,7 +8560,7 @@ defs["igGetAllocatorFunctions"][1]["call_args"] = "(p_alloc_func,p_free_func,p_u defs["igGetAllocatorFunctions"][1]["cimguiname"] = "igGetAllocatorFunctions" defs["igGetAllocatorFunctions"][1]["defaults"] = {} defs["igGetAllocatorFunctions"][1]["funcname"] = "GetAllocatorFunctions" -defs["igGetAllocatorFunctions"][1]["location"] = "imgui:938" +defs["igGetAllocatorFunctions"][1]["location"] = "imgui:941" defs["igGetAllocatorFunctions"][1]["namespace"] = "ImGui" defs["igGetAllocatorFunctions"][1]["ov_cimguiname"] = "igGetAllocatorFunctions" defs["igGetAllocatorFunctions"][1]["ret"] = "void" @@ -8351,7 +8576,7 @@ defs["igGetBackgroundDrawList"][1]["call_args"] = "()" defs["igGetBackgroundDrawList"][1]["cimguiname"] = "igGetBackgroundDrawList" defs["igGetBackgroundDrawList"][1]["defaults"] = {} defs["igGetBackgroundDrawList"][1]["funcname"] = "GetBackgroundDrawList" -defs["igGetBackgroundDrawList"][1]["location"] = "imgui:866" +defs["igGetBackgroundDrawList"][1]["location"] = "imgui:860" defs["igGetBackgroundDrawList"][1]["namespace"] = "ImGui" defs["igGetBackgroundDrawList"][1]["ov_cimguiname"] = "igGetBackgroundDrawList" defs["igGetBackgroundDrawList"][1]["ret"] = "ImDrawList*" @@ -8367,7 +8592,7 @@ defs["igGetClipboardText"][1]["call_args"] = "()" defs["igGetClipboardText"][1]["cimguiname"] = "igGetClipboardText" defs["igGetClipboardText"][1]["defaults"] = {} defs["igGetClipboardText"][1]["funcname"] = "GetClipboardText" -defs["igGetClipboardText"][1]["location"] = "imgui:917" +defs["igGetClipboardText"][1]["location"] = "imgui:920" defs["igGetClipboardText"][1]["namespace"] = "ImGui" defs["igGetClipboardText"][1]["ov_cimguiname"] = "igGetClipboardText" defs["igGetClipboardText"][1]["ret"] = "const char*" @@ -8390,9 +8615,9 @@ defs["igGetColorU32"][1]["cimguiname"] = "igGetColorU32" defs["igGetColorU32"][1]["defaults"] = {} defs["igGetColorU32"][1]["defaults"]["alpha_mul"] = "1.0f" defs["igGetColorU32"][1]["funcname"] = "GetColorU32" -defs["igGetColorU32"][1]["location"] = "imgui:428" +defs["igGetColorU32"][1]["location"] = "imgui:426" defs["igGetColorU32"][1]["namespace"] = "ImGui" -defs["igGetColorU32"][1]["ov_cimguiname"] = "igGetColorU32Col" +defs["igGetColorU32"][1]["ov_cimguiname"] = "igGetColorU32_Col" defs["igGetColorU32"][1]["ret"] = "ImU32" defs["igGetColorU32"][1]["signature"] = "(ImGuiCol,float)" defs["igGetColorU32"][1]["stname"] = "" @@ -8407,9 +8632,9 @@ defs["igGetColorU32"][2]["call_args"] = "(col)" defs["igGetColorU32"][2]["cimguiname"] = "igGetColorU32" defs["igGetColorU32"][2]["defaults"] = {} defs["igGetColorU32"][2]["funcname"] = "GetColorU32" -defs["igGetColorU32"][2]["location"] = "imgui:429" +defs["igGetColorU32"][2]["location"] = "imgui:427" defs["igGetColorU32"][2]["namespace"] = "ImGui" -defs["igGetColorU32"][2]["ov_cimguiname"] = "igGetColorU32Vec4" +defs["igGetColorU32"][2]["ov_cimguiname"] = "igGetColorU32_Vec4" defs["igGetColorU32"][2]["ret"] = "ImU32" defs["igGetColorU32"][2]["signature"] = "(const ImVec4)" defs["igGetColorU32"][2]["stname"] = "" @@ -8424,9 +8649,9 @@ defs["igGetColorU32"][3]["call_args"] = "(col)" defs["igGetColorU32"][3]["cimguiname"] = "igGetColorU32" defs["igGetColorU32"][3]["defaults"] = {} defs["igGetColorU32"][3]["funcname"] = "GetColorU32" -defs["igGetColorU32"][3]["location"] = "imgui:430" +defs["igGetColorU32"][3]["location"] = "imgui:428" defs["igGetColorU32"][3]["namespace"] = "ImGui" -defs["igGetColorU32"][3]["ov_cimguiname"] = "igGetColorU32U32" +defs["igGetColorU32"][3]["ov_cimguiname"] = "igGetColorU32_U32" defs["igGetColorU32"][3]["ret"] = "ImU32" defs["igGetColorU32"][3]["signature"] = "(ImU32)" defs["igGetColorU32"][3]["stname"] = "" @@ -8442,7 +8667,7 @@ defs["igGetColumnIndex"][1]["call_args"] = "()" defs["igGetColumnIndex"][1]["cimguiname"] = "igGetColumnIndex" defs["igGetColumnIndex"][1]["defaults"] = {} defs["igGetColumnIndex"][1]["funcname"] = "GetColumnIndex" -defs["igGetColumnIndex"][1]["location"] = "imgui:779" +defs["igGetColumnIndex"][1]["location"] = "imgui:777" defs["igGetColumnIndex"][1]["namespace"] = "ImGui" defs["igGetColumnIndex"][1]["ov_cimguiname"] = "igGetColumnIndex" defs["igGetColumnIndex"][1]["ret"] = "int" @@ -8462,7 +8687,7 @@ defs["igGetColumnOffset"][1]["cimguiname"] = "igGetColumnOffset" defs["igGetColumnOffset"][1]["defaults"] = {} defs["igGetColumnOffset"][1]["defaults"]["column_index"] = "-1" defs["igGetColumnOffset"][1]["funcname"] = "GetColumnOffset" -defs["igGetColumnOffset"][1]["location"] = "imgui:782" +defs["igGetColumnOffset"][1]["location"] = "imgui:780" defs["igGetColumnOffset"][1]["namespace"] = "ImGui" defs["igGetColumnOffset"][1]["ov_cimguiname"] = "igGetColumnOffset" defs["igGetColumnOffset"][1]["ret"] = "float" @@ -8482,7 +8707,7 @@ defs["igGetColumnWidth"][1]["cimguiname"] = "igGetColumnWidth" defs["igGetColumnWidth"][1]["defaults"] = {} defs["igGetColumnWidth"][1]["defaults"]["column_index"] = "-1" defs["igGetColumnWidth"][1]["funcname"] = "GetColumnWidth" -defs["igGetColumnWidth"][1]["location"] = "imgui:780" +defs["igGetColumnWidth"][1]["location"] = "imgui:778" defs["igGetColumnWidth"][1]["namespace"] = "ImGui" defs["igGetColumnWidth"][1]["ov_cimguiname"] = "igGetColumnWidth" defs["igGetColumnWidth"][1]["ret"] = "float" @@ -8498,7 +8723,7 @@ defs["igGetColumnsCount"][1]["call_args"] = "()" defs["igGetColumnsCount"][1]["cimguiname"] = "igGetColumnsCount" defs["igGetColumnsCount"][1]["defaults"] = {} defs["igGetColumnsCount"][1]["funcname"] = "GetColumnsCount" -defs["igGetColumnsCount"][1]["location"] = "imgui:784" +defs["igGetColumnsCount"][1]["location"] = "imgui:782" defs["igGetColumnsCount"][1]["namespace"] = "ImGui" defs["igGetColumnsCount"][1]["ov_cimguiname"] = "igGetColumnsCount" defs["igGetColumnsCount"][1]["ret"] = "int" @@ -8517,7 +8742,7 @@ defs["igGetContentRegionAvail"][1]["call_args"] = "()" defs["igGetContentRegionAvail"][1]["cimguiname"] = "igGetContentRegionAvail" defs["igGetContentRegionAvail"][1]["defaults"] = {} defs["igGetContentRegionAvail"][1]["funcname"] = "GetContentRegionAvail" -defs["igGetContentRegionAvail"][1]["location"] = "imgui:384" +defs["igGetContentRegionAvail"][1]["location"] = "imgui:380" defs["igGetContentRegionAvail"][1]["namespace"] = "ImGui" defs["igGetContentRegionAvail"][1]["nonUDT"] = 1 defs["igGetContentRegionAvail"][1]["ov_cimguiname"] = "igGetContentRegionAvail" @@ -8537,7 +8762,7 @@ defs["igGetContentRegionMax"][1]["call_args"] = "()" defs["igGetContentRegionMax"][1]["cimguiname"] = "igGetContentRegionMax" defs["igGetContentRegionMax"][1]["defaults"] = {} defs["igGetContentRegionMax"][1]["funcname"] = "GetContentRegionMax" -defs["igGetContentRegionMax"][1]["location"] = "imgui:385" +defs["igGetContentRegionMax"][1]["location"] = "imgui:381" defs["igGetContentRegionMax"][1]["namespace"] = "ImGui" defs["igGetContentRegionMax"][1]["nonUDT"] = 1 defs["igGetContentRegionMax"][1]["ov_cimguiname"] = "igGetContentRegionMax" @@ -8554,7 +8779,7 @@ defs["igGetCurrentContext"][1]["call_args"] = "()" defs["igGetCurrentContext"][1]["cimguiname"] = "igGetCurrentContext" defs["igGetCurrentContext"][1]["defaults"] = {} defs["igGetCurrentContext"][1]["funcname"] = "GetCurrentContext" -defs["igGetCurrentContext"][1]["location"] = "imgui:296" +defs["igGetCurrentContext"][1]["location"] = "imgui:290" defs["igGetCurrentContext"][1]["namespace"] = "ImGui" defs["igGetCurrentContext"][1]["ov_cimguiname"] = "igGetCurrentContext" defs["igGetCurrentContext"][1]["ret"] = "ImGuiContext*" @@ -8573,7 +8798,7 @@ defs["igGetCursorPos"][1]["call_args"] = "()" defs["igGetCursorPos"][1]["cimguiname"] = "igGetCursorPos" defs["igGetCursorPos"][1]["defaults"] = {} defs["igGetCursorPos"][1]["funcname"] = "GetCursorPos" -defs["igGetCursorPos"][1]["location"] = "imgui:449" +defs["igGetCursorPos"][1]["location"] = "imgui:447" defs["igGetCursorPos"][1]["namespace"] = "ImGui" defs["igGetCursorPos"][1]["nonUDT"] = 1 defs["igGetCursorPos"][1]["ov_cimguiname"] = "igGetCursorPos" @@ -8590,7 +8815,7 @@ defs["igGetCursorPosX"][1]["call_args"] = "()" defs["igGetCursorPosX"][1]["cimguiname"] = "igGetCursorPosX" defs["igGetCursorPosX"][1]["defaults"] = {} defs["igGetCursorPosX"][1]["funcname"] = "GetCursorPosX" -defs["igGetCursorPosX"][1]["location"] = "imgui:450" +defs["igGetCursorPosX"][1]["location"] = "imgui:448" defs["igGetCursorPosX"][1]["namespace"] = "ImGui" defs["igGetCursorPosX"][1]["ov_cimguiname"] = "igGetCursorPosX" defs["igGetCursorPosX"][1]["ret"] = "float" @@ -8606,7 +8831,7 @@ defs["igGetCursorPosY"][1]["call_args"] = "()" defs["igGetCursorPosY"][1]["cimguiname"] = "igGetCursorPosY" defs["igGetCursorPosY"][1]["defaults"] = {} defs["igGetCursorPosY"][1]["funcname"] = "GetCursorPosY" -defs["igGetCursorPosY"][1]["location"] = "imgui:451" +defs["igGetCursorPosY"][1]["location"] = "imgui:449" defs["igGetCursorPosY"][1]["namespace"] = "ImGui" defs["igGetCursorPosY"][1]["ov_cimguiname"] = "igGetCursorPosY" defs["igGetCursorPosY"][1]["ret"] = "float" @@ -8625,7 +8850,7 @@ defs["igGetCursorScreenPos"][1]["call_args"] = "()" defs["igGetCursorScreenPos"][1]["cimguiname"] = "igGetCursorScreenPos" defs["igGetCursorScreenPos"][1]["defaults"] = {} defs["igGetCursorScreenPos"][1]["funcname"] = "GetCursorScreenPos" -defs["igGetCursorScreenPos"][1]["location"] = "imgui:456" +defs["igGetCursorScreenPos"][1]["location"] = "imgui:454" defs["igGetCursorScreenPos"][1]["namespace"] = "ImGui" defs["igGetCursorScreenPos"][1]["nonUDT"] = 1 defs["igGetCursorScreenPos"][1]["ov_cimguiname"] = "igGetCursorScreenPos" @@ -8645,7 +8870,7 @@ defs["igGetCursorStartPos"][1]["call_args"] = "()" defs["igGetCursorStartPos"][1]["cimguiname"] = "igGetCursorStartPos" defs["igGetCursorStartPos"][1]["defaults"] = {} defs["igGetCursorStartPos"][1]["funcname"] = "GetCursorStartPos" -defs["igGetCursorStartPos"][1]["location"] = "imgui:455" +defs["igGetCursorStartPos"][1]["location"] = "imgui:453" defs["igGetCursorStartPos"][1]["namespace"] = "ImGui" defs["igGetCursorStartPos"][1]["nonUDT"] = 1 defs["igGetCursorStartPos"][1]["ov_cimguiname"] = "igGetCursorStartPos" @@ -8662,7 +8887,7 @@ defs["igGetDragDropPayload"][1]["call_args"] = "()" defs["igGetDragDropPayload"][1]["cimguiname"] = "igGetDragDropPayload" defs["igGetDragDropPayload"][1]["defaults"] = {} defs["igGetDragDropPayload"][1]["funcname"] = "GetDragDropPayload" -defs["igGetDragDropPayload"][1]["location"] = "imgui:815" +defs["igGetDragDropPayload"][1]["location"] = "imgui:813" defs["igGetDragDropPayload"][1]["namespace"] = "ImGui" defs["igGetDragDropPayload"][1]["ov_cimguiname"] = "igGetDragDropPayload" defs["igGetDragDropPayload"][1]["ret"] = "const ImGuiPayload*" @@ -8678,7 +8903,7 @@ defs["igGetDrawData"][1]["call_args"] = "()" defs["igGetDrawData"][1]["cimguiname"] = "igGetDrawData" defs["igGetDrawData"][1]["defaults"] = {} defs["igGetDrawData"][1]["funcname"] = "GetDrawData" -defs["igGetDrawData"][1]["location"] = "imgui:305" +defs["igGetDrawData"][1]["location"] = "imgui:299" defs["igGetDrawData"][1]["namespace"] = "ImGui" defs["igGetDrawData"][1]["ov_cimguiname"] = "igGetDrawData" defs["igGetDrawData"][1]["ret"] = "ImDrawData*" @@ -8710,7 +8935,7 @@ defs["igGetFont"][1]["call_args"] = "()" defs["igGetFont"][1]["cimguiname"] = "igGetFont" defs["igGetFont"][1]["defaults"] = {} defs["igGetFont"][1]["funcname"] = "GetFont" -defs["igGetFont"][1]["location"] = "imgui:425" +defs["igGetFont"][1]["location"] = "imgui:423" defs["igGetFont"][1]["namespace"] = "ImGui" defs["igGetFont"][1]["ov_cimguiname"] = "igGetFont" defs["igGetFont"][1]["ret"] = "ImFont*" @@ -8726,7 +8951,7 @@ defs["igGetFontSize"][1]["call_args"] = "()" defs["igGetFontSize"][1]["cimguiname"] = "igGetFontSize" defs["igGetFontSize"][1]["defaults"] = {} defs["igGetFontSize"][1]["funcname"] = "GetFontSize" -defs["igGetFontSize"][1]["location"] = "imgui:426" +defs["igGetFontSize"][1]["location"] = "imgui:424" defs["igGetFontSize"][1]["namespace"] = "ImGui" defs["igGetFontSize"][1]["ov_cimguiname"] = "igGetFontSize" defs["igGetFontSize"][1]["ret"] = "float" @@ -8745,7 +8970,7 @@ defs["igGetFontTexUvWhitePixel"][1]["call_args"] = "()" defs["igGetFontTexUvWhitePixel"][1]["cimguiname"] = "igGetFontTexUvWhitePixel" defs["igGetFontTexUvWhitePixel"][1]["defaults"] = {} defs["igGetFontTexUvWhitePixel"][1]["funcname"] = "GetFontTexUvWhitePixel" -defs["igGetFontTexUvWhitePixel"][1]["location"] = "imgui:427" +defs["igGetFontTexUvWhitePixel"][1]["location"] = "imgui:425" defs["igGetFontTexUvWhitePixel"][1]["namespace"] = "ImGui" defs["igGetFontTexUvWhitePixel"][1]["nonUDT"] = 1 defs["igGetFontTexUvWhitePixel"][1]["ov_cimguiname"] = "igGetFontTexUvWhitePixel" @@ -8762,7 +8987,7 @@ defs["igGetForegroundDrawList"][1]["call_args"] = "()" defs["igGetForegroundDrawList"][1]["cimguiname"] = "igGetForegroundDrawList" defs["igGetForegroundDrawList"][1]["defaults"] = {} defs["igGetForegroundDrawList"][1]["funcname"] = "GetForegroundDrawList" -defs["igGetForegroundDrawList"][1]["location"] = "imgui:867" +defs["igGetForegroundDrawList"][1]["location"] = "imgui:861" defs["igGetForegroundDrawList"][1]["namespace"] = "ImGui" defs["igGetForegroundDrawList"][1]["ov_cimguiname"] = "igGetForegroundDrawList" defs["igGetForegroundDrawList"][1]["ret"] = "ImDrawList*" @@ -8778,7 +9003,7 @@ defs["igGetFrameCount"][1]["call_args"] = "()" defs["igGetFrameCount"][1]["cimguiname"] = "igGetFrameCount" defs["igGetFrameCount"][1]["defaults"] = {} defs["igGetFrameCount"][1]["funcname"] = "GetFrameCount" -defs["igGetFrameCount"][1]["location"] = "imgui:865" +defs["igGetFrameCount"][1]["location"] = "imgui:867" defs["igGetFrameCount"][1]["namespace"] = "ImGui" defs["igGetFrameCount"][1]["ov_cimguiname"] = "igGetFrameCount" defs["igGetFrameCount"][1]["ret"] = "int" @@ -8794,7 +9019,7 @@ defs["igGetFrameHeight"][1]["call_args"] = "()" defs["igGetFrameHeight"][1]["cimguiname"] = "igGetFrameHeight" defs["igGetFrameHeight"][1]["defaults"] = {} defs["igGetFrameHeight"][1]["funcname"] = "GetFrameHeight" -defs["igGetFrameHeight"][1]["location"] = "imgui:461" +defs["igGetFrameHeight"][1]["location"] = "imgui:459" defs["igGetFrameHeight"][1]["namespace"] = "ImGui" defs["igGetFrameHeight"][1]["ov_cimguiname"] = "igGetFrameHeight" defs["igGetFrameHeight"][1]["ret"] = "float" @@ -8810,7 +9035,7 @@ defs["igGetFrameHeightWithSpacing"][1]["call_args"] = "()" defs["igGetFrameHeightWithSpacing"][1]["cimguiname"] = "igGetFrameHeightWithSpacing" defs["igGetFrameHeightWithSpacing"][1]["defaults"] = {} defs["igGetFrameHeightWithSpacing"][1]["funcname"] = "GetFrameHeightWithSpacing" -defs["igGetFrameHeightWithSpacing"][1]["location"] = "imgui:462" +defs["igGetFrameHeightWithSpacing"][1]["location"] = "imgui:460" defs["igGetFrameHeightWithSpacing"][1]["namespace"] = "ImGui" defs["igGetFrameHeightWithSpacing"][1]["ov_cimguiname"] = "igGetFrameHeightWithSpacing" defs["igGetFrameHeightWithSpacing"][1]["ret"] = "float" @@ -8829,9 +9054,9 @@ defs["igGetID"][1]["call_args"] = "(str_id)" defs["igGetID"][1]["cimguiname"] = "igGetID" defs["igGetID"][1]["defaults"] = {} defs["igGetID"][1]["funcname"] = "GetID" -defs["igGetID"][1]["location"] = "imgui:480" +defs["igGetID"][1]["location"] = "imgui:478" defs["igGetID"][1]["namespace"] = "ImGui" -defs["igGetID"][1]["ov_cimguiname"] = "igGetIDStr" +defs["igGetID"][1]["ov_cimguiname"] = "igGetID_Str" defs["igGetID"][1]["ret"] = "ImGuiID" defs["igGetID"][1]["signature"] = "(const char*)" defs["igGetID"][1]["stname"] = "" @@ -8849,9 +9074,9 @@ defs["igGetID"][2]["call_args"] = "(str_id_begin,str_id_end)" defs["igGetID"][2]["cimguiname"] = "igGetID" defs["igGetID"][2]["defaults"] = {} defs["igGetID"][2]["funcname"] = "GetID" -defs["igGetID"][2]["location"] = "imgui:481" +defs["igGetID"][2]["location"] = "imgui:479" defs["igGetID"][2]["namespace"] = "ImGui" -defs["igGetID"][2]["ov_cimguiname"] = "igGetIDStrStr" +defs["igGetID"][2]["ov_cimguiname"] = "igGetID_StrStr" defs["igGetID"][2]["ret"] = "ImGuiID" defs["igGetID"][2]["signature"] = "(const char*,const char*)" defs["igGetID"][2]["stname"] = "" @@ -8866,9 +9091,9 @@ defs["igGetID"][3]["call_args"] = "(ptr_id)" defs["igGetID"][3]["cimguiname"] = "igGetID" defs["igGetID"][3]["defaults"] = {} defs["igGetID"][3]["funcname"] = "GetID" -defs["igGetID"][3]["location"] = "imgui:482" +defs["igGetID"][3]["location"] = "imgui:480" defs["igGetID"][3]["namespace"] = "ImGui" -defs["igGetID"][3]["ov_cimguiname"] = "igGetIDPtr" +defs["igGetID"][3]["ov_cimguiname"] = "igGetID_Ptr" defs["igGetID"][3]["ret"] = "ImGuiID" defs["igGetID"][3]["signature"] = "(const void*)" defs["igGetID"][3]["stname"] = "" @@ -8884,7 +9109,7 @@ defs["igGetIO"][1]["call_args"] = "()" defs["igGetIO"][1]["cimguiname"] = "igGetIO" defs["igGetIO"][1]["defaults"] = {} defs["igGetIO"][1]["funcname"] = "GetIO" -defs["igGetIO"][1]["location"] = "imgui:300" +defs["igGetIO"][1]["location"] = "imgui:294" defs["igGetIO"][1]["namespace"] = "ImGui" defs["igGetIO"][1]["ov_cimguiname"] = "igGetIO" defs["igGetIO"][1]["ret"] = "ImGuiIO*" @@ -8904,7 +9129,7 @@ defs["igGetItemRectMax"][1]["call_args"] = "()" defs["igGetItemRectMax"][1]["cimguiname"] = "igGetItemRectMax" defs["igGetItemRectMax"][1]["defaults"] = {} defs["igGetItemRectMax"][1]["funcname"] = "GetItemRectMax" -defs["igGetItemRectMax"][1]["location"] = "imgui:851" +defs["igGetItemRectMax"][1]["location"] = "imgui:849" defs["igGetItemRectMax"][1]["namespace"] = "ImGui" defs["igGetItemRectMax"][1]["nonUDT"] = 1 defs["igGetItemRectMax"][1]["ov_cimguiname"] = "igGetItemRectMax" @@ -8924,7 +9149,7 @@ defs["igGetItemRectMin"][1]["call_args"] = "()" defs["igGetItemRectMin"][1]["cimguiname"] = "igGetItemRectMin" defs["igGetItemRectMin"][1]["defaults"] = {} defs["igGetItemRectMin"][1]["funcname"] = "GetItemRectMin" -defs["igGetItemRectMin"][1]["location"] = "imgui:850" +defs["igGetItemRectMin"][1]["location"] = "imgui:848" defs["igGetItemRectMin"][1]["namespace"] = "ImGui" defs["igGetItemRectMin"][1]["nonUDT"] = 1 defs["igGetItemRectMin"][1]["ov_cimguiname"] = "igGetItemRectMin" @@ -8944,7 +9169,7 @@ defs["igGetItemRectSize"][1]["call_args"] = "()" defs["igGetItemRectSize"][1]["cimguiname"] = "igGetItemRectSize" defs["igGetItemRectSize"][1]["defaults"] = {} defs["igGetItemRectSize"][1]["funcname"] = "GetItemRectSize" -defs["igGetItemRectSize"][1]["location"] = "imgui:852" +defs["igGetItemRectSize"][1]["location"] = "imgui:850" defs["igGetItemRectSize"][1]["namespace"] = "ImGui" defs["igGetItemRectSize"][1]["nonUDT"] = 1 defs["igGetItemRectSize"][1]["ov_cimguiname"] = "igGetItemRectSize" @@ -8954,48 +9179,67 @@ defs["igGetItemRectSize"][1]["stname"] = "" defs["igGetItemRectSize"]["()"] = defs["igGetItemRectSize"][1] defs["igGetKeyIndex"] = {} defs["igGetKeyIndex"][1] = {} -defs["igGetKeyIndex"][1]["args"] = "(ImGuiKey imgui_key)" +defs["igGetKeyIndex"][1]["args"] = "(ImGuiKey key)" defs["igGetKeyIndex"][1]["argsT"] = {} defs["igGetKeyIndex"][1]["argsT"][1] = {} -defs["igGetKeyIndex"][1]["argsT"][1]["name"] = "imgui_key" +defs["igGetKeyIndex"][1]["argsT"][1]["name"] = "key" defs["igGetKeyIndex"][1]["argsT"][1]["type"] = "ImGuiKey" -defs["igGetKeyIndex"][1]["argsoriginal"] = "(ImGuiKey imgui_key)" -defs["igGetKeyIndex"][1]["call_args"] = "(imgui_key)" +defs["igGetKeyIndex"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyIndex"][1]["call_args"] = "(key)" defs["igGetKeyIndex"][1]["cimguiname"] = "igGetKeyIndex" defs["igGetKeyIndex"][1]["defaults"] = {} defs["igGetKeyIndex"][1]["funcname"] = "GetKeyIndex" -defs["igGetKeyIndex"][1]["location"] = "imgui:887" +defs["igGetKeyIndex"][1]["location"] = "imgui:2958" defs["igGetKeyIndex"][1]["namespace"] = "ImGui" defs["igGetKeyIndex"][1]["ov_cimguiname"] = "igGetKeyIndex" -defs["igGetKeyIndex"][1]["ret"] = "int" +defs["igGetKeyIndex"][1]["ret"] = "ImGuiKey" defs["igGetKeyIndex"][1]["signature"] = "(ImGuiKey)" defs["igGetKeyIndex"][1]["stname"] = "" defs["igGetKeyIndex"]["(ImGuiKey)"] = defs["igGetKeyIndex"][1] +defs["igGetKeyName"] = {} +defs["igGetKeyName"][1] = {} +defs["igGetKeyName"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyName"][1]["argsT"] = {} +defs["igGetKeyName"][1]["argsT"][1] = {} +defs["igGetKeyName"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyName"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyName"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyName"][1]["call_args"] = "(key)" +defs["igGetKeyName"][1]["cimguiname"] = "igGetKeyName" +defs["igGetKeyName"][1]["defaults"] = {} +defs["igGetKeyName"][1]["funcname"] = "GetKeyName" +defs["igGetKeyName"][1]["location"] = "imgui:894" +defs["igGetKeyName"][1]["namespace"] = "ImGui" +defs["igGetKeyName"][1]["ov_cimguiname"] = "igGetKeyName" +defs["igGetKeyName"][1]["ret"] = "const char*" +defs["igGetKeyName"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyName"][1]["stname"] = "" +defs["igGetKeyName"]["(ImGuiKey)"] = defs["igGetKeyName"][1] defs["igGetKeyPressedAmount"] = {} defs["igGetKeyPressedAmount"][1] = {} -defs["igGetKeyPressedAmount"][1]["args"] = "(int key_index,float repeat_delay,float rate)" +defs["igGetKeyPressedAmount"][1]["args"] = "(ImGuiKey key,float repeat_delay,float rate)" defs["igGetKeyPressedAmount"][1]["argsT"] = {} defs["igGetKeyPressedAmount"][1]["argsT"][1] = {} -defs["igGetKeyPressedAmount"][1]["argsT"][1]["name"] = "key_index" -defs["igGetKeyPressedAmount"][1]["argsT"][1]["type"] = "int" +defs["igGetKeyPressedAmount"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyPressedAmount"][1]["argsT"][1]["type"] = "ImGuiKey" defs["igGetKeyPressedAmount"][1]["argsT"][2] = {} defs["igGetKeyPressedAmount"][1]["argsT"][2]["name"] = "repeat_delay" defs["igGetKeyPressedAmount"][1]["argsT"][2]["type"] = "float" defs["igGetKeyPressedAmount"][1]["argsT"][3] = {} defs["igGetKeyPressedAmount"][1]["argsT"][3]["name"] = "rate" defs["igGetKeyPressedAmount"][1]["argsT"][3]["type"] = "float" -defs["igGetKeyPressedAmount"][1]["argsoriginal"] = "(int key_index,float repeat_delay,float rate)" -defs["igGetKeyPressedAmount"][1]["call_args"] = "(key_index,repeat_delay,rate)" +defs["igGetKeyPressedAmount"][1]["argsoriginal"] = "(ImGuiKey key,float repeat_delay,float rate)" +defs["igGetKeyPressedAmount"][1]["call_args"] = "(key,repeat_delay,rate)" defs["igGetKeyPressedAmount"][1]["cimguiname"] = "igGetKeyPressedAmount" defs["igGetKeyPressedAmount"][1]["defaults"] = {} defs["igGetKeyPressedAmount"][1]["funcname"] = "GetKeyPressedAmount" -defs["igGetKeyPressedAmount"][1]["location"] = "imgui:891" +defs["igGetKeyPressedAmount"][1]["location"] = "imgui:893" defs["igGetKeyPressedAmount"][1]["namespace"] = "ImGui" defs["igGetKeyPressedAmount"][1]["ov_cimguiname"] = "igGetKeyPressedAmount" defs["igGetKeyPressedAmount"][1]["ret"] = "int" -defs["igGetKeyPressedAmount"][1]["signature"] = "(int,float,float)" +defs["igGetKeyPressedAmount"][1]["signature"] = "(ImGuiKey,float,float)" defs["igGetKeyPressedAmount"][1]["stname"] = "" -defs["igGetKeyPressedAmount"]["(int,float,float)"] = defs["igGetKeyPressedAmount"][1] +defs["igGetKeyPressedAmount"]["(ImGuiKey,float,float)"] = defs["igGetKeyPressedAmount"][1] defs["igGetMainViewport"] = {} defs["igGetMainViewport"][1] = {} defs["igGetMainViewport"][1]["args"] = "()" @@ -9005,7 +9249,7 @@ defs["igGetMainViewport"][1]["call_args"] = "()" defs["igGetMainViewport"][1]["cimguiname"] = "igGetMainViewport" defs["igGetMainViewport"][1]["defaults"] = {} defs["igGetMainViewport"][1]["funcname"] = "GetMainViewport" -defs["igGetMainViewport"][1]["location"] = "imgui:859" +defs["igGetMainViewport"][1]["location"] = "imgui:857" defs["igGetMainViewport"][1]["namespace"] = "ImGui" defs["igGetMainViewport"][1]["ov_cimguiname"] = "igGetMainViewport" defs["igGetMainViewport"][1]["ret"] = "ImGuiViewport*" @@ -9024,7 +9268,7 @@ defs["igGetMouseClickedCount"][1]["call_args"] = "(button)" defs["igGetMouseClickedCount"][1]["cimguiname"] = "igGetMouseClickedCount" defs["igGetMouseClickedCount"][1]["defaults"] = {} defs["igGetMouseClickedCount"][1]["funcname"] = "GetMouseClickedCount" -defs["igGetMouseClickedCount"][1]["location"] = "imgui:902" +defs["igGetMouseClickedCount"][1]["location"] = "imgui:905" defs["igGetMouseClickedCount"][1]["namespace"] = "ImGui" defs["igGetMouseClickedCount"][1]["ov_cimguiname"] = "igGetMouseClickedCount" defs["igGetMouseClickedCount"][1]["ret"] = "int" @@ -9040,7 +9284,7 @@ defs["igGetMouseCursor"][1]["call_args"] = "()" defs["igGetMouseCursor"][1]["cimguiname"] = "igGetMouseCursor" defs["igGetMouseCursor"][1]["defaults"] = {} defs["igGetMouseCursor"][1]["funcname"] = "GetMouseCursor" -defs["igGetMouseCursor"][1]["location"] = "imgui:911" +defs["igGetMouseCursor"][1]["location"] = "imgui:914" defs["igGetMouseCursor"][1]["namespace"] = "ImGui" defs["igGetMouseCursor"][1]["ov_cimguiname"] = "igGetMouseCursor" defs["igGetMouseCursor"][1]["ret"] = "ImGuiMouseCursor" @@ -9067,7 +9311,7 @@ defs["igGetMouseDragDelta"][1]["defaults"] = {} defs["igGetMouseDragDelta"][1]["defaults"]["button"] = "0" defs["igGetMouseDragDelta"][1]["defaults"]["lock_threshold"] = "-1.0f" defs["igGetMouseDragDelta"][1]["funcname"] = "GetMouseDragDelta" -defs["igGetMouseDragDelta"][1]["location"] = "imgui:909" +defs["igGetMouseDragDelta"][1]["location"] = "imgui:912" defs["igGetMouseDragDelta"][1]["namespace"] = "ImGui" defs["igGetMouseDragDelta"][1]["nonUDT"] = 1 defs["igGetMouseDragDelta"][1]["ov_cimguiname"] = "igGetMouseDragDelta" @@ -9087,7 +9331,7 @@ defs["igGetMousePos"][1]["call_args"] = "()" defs["igGetMousePos"][1]["cimguiname"] = "igGetMousePos" defs["igGetMousePos"][1]["defaults"] = {} defs["igGetMousePos"][1]["funcname"] = "GetMousePos" -defs["igGetMousePos"][1]["location"] = "imgui:906" +defs["igGetMousePos"][1]["location"] = "imgui:909" defs["igGetMousePos"][1]["namespace"] = "ImGui" defs["igGetMousePos"][1]["nonUDT"] = 1 defs["igGetMousePos"][1]["ov_cimguiname"] = "igGetMousePos" @@ -9107,7 +9351,7 @@ defs["igGetMousePosOnOpeningCurrentPopup"][1]["call_args"] = "()" defs["igGetMousePosOnOpeningCurrentPopup"][1]["cimguiname"] = "igGetMousePosOnOpeningCurrentPopup" defs["igGetMousePosOnOpeningCurrentPopup"][1]["defaults"] = {} defs["igGetMousePosOnOpeningCurrentPopup"][1]["funcname"] = "GetMousePosOnOpeningCurrentPopup" -defs["igGetMousePosOnOpeningCurrentPopup"][1]["location"] = "imgui:907" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["location"] = "imgui:910" defs["igGetMousePosOnOpeningCurrentPopup"][1]["namespace"] = "ImGui" defs["igGetMousePosOnOpeningCurrentPopup"][1]["nonUDT"] = 1 defs["igGetMousePosOnOpeningCurrentPopup"][1]["ov_cimguiname"] = "igGetMousePosOnOpeningCurrentPopup" @@ -9124,7 +9368,7 @@ defs["igGetScrollMaxX"][1]["call_args"] = "()" defs["igGetScrollMaxX"][1]["cimguiname"] = "igGetScrollMaxX" defs["igGetScrollMaxX"][1]["defaults"] = {} defs["igGetScrollMaxX"][1]["funcname"] = "GetScrollMaxX" -defs["igGetScrollMaxX"][1]["location"] = "imgui:394" +defs["igGetScrollMaxX"][1]["location"] = "imgui:392" defs["igGetScrollMaxX"][1]["namespace"] = "ImGui" defs["igGetScrollMaxX"][1]["ov_cimguiname"] = "igGetScrollMaxX" defs["igGetScrollMaxX"][1]["ret"] = "float" @@ -9140,7 +9384,7 @@ defs["igGetScrollMaxY"][1]["call_args"] = "()" defs["igGetScrollMaxY"][1]["cimguiname"] = "igGetScrollMaxY" defs["igGetScrollMaxY"][1]["defaults"] = {} defs["igGetScrollMaxY"][1]["funcname"] = "GetScrollMaxY" -defs["igGetScrollMaxY"][1]["location"] = "imgui:395" +defs["igGetScrollMaxY"][1]["location"] = "imgui:393" defs["igGetScrollMaxY"][1]["namespace"] = "ImGui" defs["igGetScrollMaxY"][1]["ov_cimguiname"] = "igGetScrollMaxY" defs["igGetScrollMaxY"][1]["ret"] = "float" @@ -9156,7 +9400,7 @@ defs["igGetScrollX"][1]["call_args"] = "()" defs["igGetScrollX"][1]["cimguiname"] = "igGetScrollX" defs["igGetScrollX"][1]["defaults"] = {} defs["igGetScrollX"][1]["funcname"] = "GetScrollX" -defs["igGetScrollX"][1]["location"] = "imgui:390" +defs["igGetScrollX"][1]["location"] = "imgui:388" defs["igGetScrollX"][1]["namespace"] = "ImGui" defs["igGetScrollX"][1]["ov_cimguiname"] = "igGetScrollX" defs["igGetScrollX"][1]["ret"] = "float" @@ -9172,7 +9416,7 @@ defs["igGetScrollY"][1]["call_args"] = "()" defs["igGetScrollY"][1]["cimguiname"] = "igGetScrollY" defs["igGetScrollY"][1]["defaults"] = {} defs["igGetScrollY"][1]["funcname"] = "GetScrollY" -defs["igGetScrollY"][1]["location"] = "imgui:391" +defs["igGetScrollY"][1]["location"] = "imgui:389" defs["igGetScrollY"][1]["namespace"] = "ImGui" defs["igGetScrollY"][1]["ov_cimguiname"] = "igGetScrollY" defs["igGetScrollY"][1]["ret"] = "float" @@ -9204,7 +9448,7 @@ defs["igGetStyle"][1]["call_args"] = "()" defs["igGetStyle"][1]["cimguiname"] = "igGetStyle" defs["igGetStyle"][1]["defaults"] = {} defs["igGetStyle"][1]["funcname"] = "GetStyle" -defs["igGetStyle"][1]["location"] = "imgui:301" +defs["igGetStyle"][1]["location"] = "imgui:295" defs["igGetStyle"][1]["namespace"] = "ImGui" defs["igGetStyle"][1]["ov_cimguiname"] = "igGetStyle" defs["igGetStyle"][1]["ret"] = "ImGuiStyle*" @@ -9243,7 +9487,7 @@ defs["igGetStyleColorVec4"][1]["call_args"] = "(idx)" defs["igGetStyleColorVec4"][1]["cimguiname"] = "igGetStyleColorVec4" defs["igGetStyleColorVec4"][1]["defaults"] = {} defs["igGetStyleColorVec4"][1]["funcname"] = "GetStyleColorVec4" -defs["igGetStyleColorVec4"][1]["location"] = "imgui:431" +defs["igGetStyleColorVec4"][1]["location"] = "imgui:429" defs["igGetStyleColorVec4"][1]["namespace"] = "ImGui" defs["igGetStyleColorVec4"][1]["ov_cimguiname"] = "igGetStyleColorVec4" defs["igGetStyleColorVec4"][1]["ret"] = "const ImVec4*" @@ -9260,7 +9504,7 @@ defs["igGetTextLineHeight"][1]["call_args"] = "()" defs["igGetTextLineHeight"][1]["cimguiname"] = "igGetTextLineHeight" defs["igGetTextLineHeight"][1]["defaults"] = {} defs["igGetTextLineHeight"][1]["funcname"] = "GetTextLineHeight" -defs["igGetTextLineHeight"][1]["location"] = "imgui:459" +defs["igGetTextLineHeight"][1]["location"] = "imgui:457" defs["igGetTextLineHeight"][1]["namespace"] = "ImGui" defs["igGetTextLineHeight"][1]["ov_cimguiname"] = "igGetTextLineHeight" defs["igGetTextLineHeight"][1]["ret"] = "float" @@ -9276,7 +9520,7 @@ defs["igGetTextLineHeightWithSpacing"][1]["call_args"] = "()" defs["igGetTextLineHeightWithSpacing"][1]["cimguiname"] = "igGetTextLineHeightWithSpacing" defs["igGetTextLineHeightWithSpacing"][1]["defaults"] = {} defs["igGetTextLineHeightWithSpacing"][1]["funcname"] = "GetTextLineHeightWithSpacing" -defs["igGetTextLineHeightWithSpacing"][1]["location"] = "imgui:460" +defs["igGetTextLineHeightWithSpacing"][1]["location"] = "imgui:458" defs["igGetTextLineHeightWithSpacing"][1]["namespace"] = "ImGui" defs["igGetTextLineHeightWithSpacing"][1]["ov_cimguiname"] = "igGetTextLineHeightWithSpacing" defs["igGetTextLineHeightWithSpacing"][1]["ret"] = "float" @@ -9292,7 +9536,7 @@ defs["igGetTime"][1]["call_args"] = "()" defs["igGetTime"][1]["cimguiname"] = "igGetTime" defs["igGetTime"][1]["defaults"] = {} defs["igGetTime"][1]["funcname"] = "GetTime" -defs["igGetTime"][1]["location"] = "imgui:864" +defs["igGetTime"][1]["location"] = "imgui:866" defs["igGetTime"][1]["namespace"] = "ImGui" defs["igGetTime"][1]["ov_cimguiname"] = "igGetTime" defs["igGetTime"][1]["ret"] = "double" @@ -9308,7 +9552,7 @@ defs["igGetTreeNodeToLabelSpacing"][1]["call_args"] = "()" defs["igGetTreeNodeToLabelSpacing"][1]["cimguiname"] = "igGetTreeNodeToLabelSpacing" defs["igGetTreeNodeToLabelSpacing"][1]["defaults"] = {} defs["igGetTreeNodeToLabelSpacing"][1]["funcname"] = "GetTreeNodeToLabelSpacing" -defs["igGetTreeNodeToLabelSpacing"][1]["location"] = "imgui:613" +defs["igGetTreeNodeToLabelSpacing"][1]["location"] = "imgui:615" defs["igGetTreeNodeToLabelSpacing"][1]["namespace"] = "ImGui" defs["igGetTreeNodeToLabelSpacing"][1]["ov_cimguiname"] = "igGetTreeNodeToLabelSpacing" defs["igGetTreeNodeToLabelSpacing"][1]["ret"] = "float" @@ -9324,7 +9568,7 @@ defs["igGetVersion"][1]["call_args"] = "()" defs["igGetVersion"][1]["cimguiname"] = "igGetVersion" defs["igGetVersion"][1]["defaults"] = {} defs["igGetVersion"][1]["funcname"] = "GetVersion" -defs["igGetVersion"][1]["location"] = "imgui:316" +defs["igGetVersion"][1]["location"] = "imgui:311" defs["igGetVersion"][1]["namespace"] = "ImGui" defs["igGetVersion"][1]["ov_cimguiname"] = "igGetVersion" defs["igGetVersion"][1]["ret"] = "const char*" @@ -9343,7 +9587,7 @@ defs["igGetWindowContentRegionMax"][1]["call_args"] = "()" defs["igGetWindowContentRegionMax"][1]["cimguiname"] = "igGetWindowContentRegionMax" defs["igGetWindowContentRegionMax"][1]["defaults"] = {} defs["igGetWindowContentRegionMax"][1]["funcname"] = "GetWindowContentRegionMax" -defs["igGetWindowContentRegionMax"][1]["location"] = "imgui:387" +defs["igGetWindowContentRegionMax"][1]["location"] = "imgui:383" defs["igGetWindowContentRegionMax"][1]["namespace"] = "ImGui" defs["igGetWindowContentRegionMax"][1]["nonUDT"] = 1 defs["igGetWindowContentRegionMax"][1]["ov_cimguiname"] = "igGetWindowContentRegionMax" @@ -9363,7 +9607,7 @@ defs["igGetWindowContentRegionMin"][1]["call_args"] = "()" defs["igGetWindowContentRegionMin"][1]["cimguiname"] = "igGetWindowContentRegionMin" defs["igGetWindowContentRegionMin"][1]["defaults"] = {} defs["igGetWindowContentRegionMin"][1]["funcname"] = "GetWindowContentRegionMin" -defs["igGetWindowContentRegionMin"][1]["location"] = "imgui:386" +defs["igGetWindowContentRegionMin"][1]["location"] = "imgui:382" defs["igGetWindowContentRegionMin"][1]["namespace"] = "ImGui" defs["igGetWindowContentRegionMin"][1]["nonUDT"] = 1 defs["igGetWindowContentRegionMin"][1]["ov_cimguiname"] = "igGetWindowContentRegionMin" @@ -9380,7 +9624,7 @@ defs["igGetWindowDrawList"][1]["call_args"] = "()" defs["igGetWindowDrawList"][1]["cimguiname"] = "igGetWindowDrawList" defs["igGetWindowDrawList"][1]["defaults"] = {} defs["igGetWindowDrawList"][1]["funcname"] = "GetWindowDrawList" -defs["igGetWindowDrawList"][1]["location"] = "imgui:356" +defs["igGetWindowDrawList"][1]["location"] = "imgui:351" defs["igGetWindowDrawList"][1]["namespace"] = "ImGui" defs["igGetWindowDrawList"][1]["ov_cimguiname"] = "igGetWindowDrawList" defs["igGetWindowDrawList"][1]["ret"] = "ImDrawList*" @@ -9396,7 +9640,7 @@ defs["igGetWindowHeight"][1]["call_args"] = "()" defs["igGetWindowHeight"][1]["cimguiname"] = "igGetWindowHeight" defs["igGetWindowHeight"][1]["defaults"] = {} defs["igGetWindowHeight"][1]["funcname"] = "GetWindowHeight" -defs["igGetWindowHeight"][1]["location"] = "imgui:360" +defs["igGetWindowHeight"][1]["location"] = "imgui:355" defs["igGetWindowHeight"][1]["namespace"] = "ImGui" defs["igGetWindowHeight"][1]["ov_cimguiname"] = "igGetWindowHeight" defs["igGetWindowHeight"][1]["ret"] = "float" @@ -9415,7 +9659,7 @@ defs["igGetWindowPos"][1]["call_args"] = "()" defs["igGetWindowPos"][1]["cimguiname"] = "igGetWindowPos" defs["igGetWindowPos"][1]["defaults"] = {} defs["igGetWindowPos"][1]["funcname"] = "GetWindowPos" -defs["igGetWindowPos"][1]["location"] = "imgui:357" +defs["igGetWindowPos"][1]["location"] = "imgui:352" defs["igGetWindowPos"][1]["namespace"] = "ImGui" defs["igGetWindowPos"][1]["nonUDT"] = 1 defs["igGetWindowPos"][1]["ov_cimguiname"] = "igGetWindowPos" @@ -9435,7 +9679,7 @@ defs["igGetWindowSize"][1]["call_args"] = "()" defs["igGetWindowSize"][1]["cimguiname"] = "igGetWindowSize" defs["igGetWindowSize"][1]["defaults"] = {} defs["igGetWindowSize"][1]["funcname"] = "GetWindowSize" -defs["igGetWindowSize"][1]["location"] = "imgui:358" +defs["igGetWindowSize"][1]["location"] = "imgui:353" defs["igGetWindowSize"][1]["namespace"] = "ImGui" defs["igGetWindowSize"][1]["nonUDT"] = 1 defs["igGetWindowSize"][1]["ov_cimguiname"] = "igGetWindowSize" @@ -9452,7 +9696,7 @@ defs["igGetWindowWidth"][1]["call_args"] = "()" defs["igGetWindowWidth"][1]["cimguiname"] = "igGetWindowWidth" defs["igGetWindowWidth"][1]["defaults"] = {} defs["igGetWindowWidth"][1]["funcname"] = "GetWindowWidth" -defs["igGetWindowWidth"][1]["location"] = "imgui:359" +defs["igGetWindowWidth"][1]["location"] = "imgui:354" defs["igGetWindowWidth"][1]["namespace"] = "ImGui" defs["igGetWindowWidth"][1]["ov_cimguiname"] = "igGetWindowWidth" defs["igGetWindowWidth"][1]["ret"] = "float" @@ -9490,7 +9734,7 @@ defs["igImage"][1]["defaults"]["tint_col"] = "ImVec4(1,1,1,1)" defs["igImage"][1]["defaults"]["uv0"] = "ImVec2(0,0)" defs["igImage"][1]["defaults"]["uv1"] = "ImVec2(1,1)" defs["igImage"][1]["funcname"] = "Image" -defs["igImage"][1]["location"] = "imgui:506" +defs["igImage"][1]["location"] = "imgui:514" defs["igImage"][1]["namespace"] = "ImGui" defs["igImage"][1]["ov_cimguiname"] = "igImage" defs["igImage"][1]["ret"] = "void" @@ -9499,46 +9743,45 @@ defs["igImage"][1]["stname"] = "" defs["igImage"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImage"][1] defs["igImageButton"] = {} defs["igImageButton"][1] = {} -defs["igImageButton"][1]["args"] = "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,int frame_padding,const ImVec4 bg_col,const ImVec4 tint_col)" +defs["igImageButton"][1]["args"] = "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)" defs["igImageButton"][1]["argsT"] = {} defs["igImageButton"][1]["argsT"][1] = {} -defs["igImageButton"][1]["argsT"][1]["name"] = "user_texture_id" -defs["igImageButton"][1]["argsT"][1]["type"] = "ImTextureID" +defs["igImageButton"][1]["argsT"][1]["name"] = "str_id" +defs["igImageButton"][1]["argsT"][1]["type"] = "const char*" defs["igImageButton"][1]["argsT"][2] = {} -defs["igImageButton"][1]["argsT"][2]["name"] = "size" -defs["igImageButton"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImageButton"][1]["argsT"][2]["name"] = "user_texture_id" +defs["igImageButton"][1]["argsT"][2]["type"] = "ImTextureID" defs["igImageButton"][1]["argsT"][3] = {} -defs["igImageButton"][1]["argsT"][3]["name"] = "uv0" +defs["igImageButton"][1]["argsT"][3]["name"] = "size" defs["igImageButton"][1]["argsT"][3]["type"] = "const ImVec2" defs["igImageButton"][1]["argsT"][4] = {} -defs["igImageButton"][1]["argsT"][4]["name"] = "uv1" +defs["igImageButton"][1]["argsT"][4]["name"] = "uv0" defs["igImageButton"][1]["argsT"][4]["type"] = "const ImVec2" defs["igImageButton"][1]["argsT"][5] = {} -defs["igImageButton"][1]["argsT"][5]["name"] = "frame_padding" -defs["igImageButton"][1]["argsT"][5]["type"] = "int" +defs["igImageButton"][1]["argsT"][5]["name"] = "uv1" +defs["igImageButton"][1]["argsT"][5]["type"] = "const ImVec2" defs["igImageButton"][1]["argsT"][6] = {} defs["igImageButton"][1]["argsT"][6]["name"] = "bg_col" defs["igImageButton"][1]["argsT"][6]["type"] = "const ImVec4" defs["igImageButton"][1]["argsT"][7] = {} defs["igImageButton"][1]["argsT"][7]["name"] = "tint_col" defs["igImageButton"][1]["argsT"][7]["type"] = "const ImVec4" -defs["igImageButton"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),int frame_padding=-1,const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))" -defs["igImageButton"][1]["call_args"] = "(user_texture_id,size,uv0,uv1,frame_padding,bg_col,tint_col)" +defs["igImageButton"][1]["argsoriginal"] = "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))" +defs["igImageButton"][1]["call_args"] = "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)" defs["igImageButton"][1]["cimguiname"] = "igImageButton" defs["igImageButton"][1]["defaults"] = {} defs["igImageButton"][1]["defaults"]["bg_col"] = "ImVec4(0,0,0,0)" -defs["igImageButton"][1]["defaults"]["frame_padding"] = "-1" defs["igImageButton"][1]["defaults"]["tint_col"] = "ImVec4(1,1,1,1)" defs["igImageButton"][1]["defaults"]["uv0"] = "ImVec2(0,0)" defs["igImageButton"][1]["defaults"]["uv1"] = "ImVec2(1,1)" defs["igImageButton"][1]["funcname"] = "ImageButton" -defs["igImageButton"][1]["location"] = "imgui:507" +defs["igImageButton"][1]["location"] = "imgui:515" defs["igImageButton"][1]["namespace"] = "ImGui" defs["igImageButton"][1]["ov_cimguiname"] = "igImageButton" defs["igImageButton"][1]["ret"] = "bool" -defs["igImageButton"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,int,const ImVec4,const ImVec4)" +defs["igImageButton"][1]["signature"] = "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" defs["igImageButton"][1]["stname"] = "" -defs["igImageButton"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,int,const ImVec4,const ImVec4)"] = defs["igImageButton"][1] +defs["igImageButton"]["(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImageButton"][1] defs["igIndent"] = {} defs["igIndent"][1] = {} defs["igIndent"][1]["args"] = "(float indent_w)" @@ -9552,7 +9795,7 @@ defs["igIndent"][1]["cimguiname"] = "igIndent" defs["igIndent"][1]["defaults"] = {} defs["igIndent"][1]["defaults"]["indent_w"] = "0.0f" defs["igIndent"][1]["funcname"] = "Indent" -defs["igIndent"][1]["location"] = "imgui:445" +defs["igIndent"][1]["location"] = "imgui:443" defs["igIndent"][1]["namespace"] = "ImGui" defs["igIndent"][1]["ov_cimguiname"] = "igIndent" defs["igIndent"][1]["ret"] = "void" @@ -9590,7 +9833,7 @@ defs["igInputDouble"][1]["defaults"]["format"] = "\"%.6f\"" defs["igInputDouble"][1]["defaults"]["step"] = "0.0" defs["igInputDouble"][1]["defaults"]["step_fast"] = "0.0" defs["igInputDouble"][1]["funcname"] = "InputDouble" -defs["igInputDouble"][1]["location"] = "imgui:584" +defs["igInputDouble"][1]["location"] = "imgui:586" defs["igInputDouble"][1]["namespace"] = "ImGui" defs["igInputDouble"][1]["ov_cimguiname"] = "igInputDouble" defs["igInputDouble"][1]["ret"] = "bool" @@ -9628,7 +9871,7 @@ defs["igInputFloat"][1]["defaults"]["format"] = "\"%.3f\"" defs["igInputFloat"][1]["defaults"]["step"] = "0.0f" defs["igInputFloat"][1]["defaults"]["step_fast"] = "0.0f" defs["igInputFloat"][1]["funcname"] = "InputFloat" -defs["igInputFloat"][1]["location"] = "imgui:576" +defs["igInputFloat"][1]["location"] = "imgui:578" defs["igInputFloat"][1]["namespace"] = "ImGui" defs["igInputFloat"][1]["ov_cimguiname"] = "igInputFloat" defs["igInputFloat"][1]["ret"] = "bool" @@ -9658,7 +9901,7 @@ defs["igInputFloat2"][1]["defaults"] = {} defs["igInputFloat2"][1]["defaults"]["flags"] = "0" defs["igInputFloat2"][1]["defaults"]["format"] = "\"%.3f\"" defs["igInputFloat2"][1]["funcname"] = "InputFloat2" -defs["igInputFloat2"][1]["location"] = "imgui:577" +defs["igInputFloat2"][1]["location"] = "imgui:579" defs["igInputFloat2"][1]["namespace"] = "ImGui" defs["igInputFloat2"][1]["ov_cimguiname"] = "igInputFloat2" defs["igInputFloat2"][1]["ret"] = "bool" @@ -9688,7 +9931,7 @@ defs["igInputFloat3"][1]["defaults"] = {} defs["igInputFloat3"][1]["defaults"]["flags"] = "0" defs["igInputFloat3"][1]["defaults"]["format"] = "\"%.3f\"" defs["igInputFloat3"][1]["funcname"] = "InputFloat3" -defs["igInputFloat3"][1]["location"] = "imgui:578" +defs["igInputFloat3"][1]["location"] = "imgui:580" defs["igInputFloat3"][1]["namespace"] = "ImGui" defs["igInputFloat3"][1]["ov_cimguiname"] = "igInputFloat3" defs["igInputFloat3"][1]["ret"] = "bool" @@ -9718,7 +9961,7 @@ defs["igInputFloat4"][1]["defaults"] = {} defs["igInputFloat4"][1]["defaults"]["flags"] = "0" defs["igInputFloat4"][1]["defaults"]["format"] = "\"%.3f\"" defs["igInputFloat4"][1]["funcname"] = "InputFloat4" -defs["igInputFloat4"][1]["location"] = "imgui:579" +defs["igInputFloat4"][1]["location"] = "imgui:581" defs["igInputFloat4"][1]["namespace"] = "ImGui" defs["igInputFloat4"][1]["ov_cimguiname"] = "igInputFloat4" defs["igInputFloat4"][1]["ret"] = "bool" @@ -9752,7 +9995,7 @@ defs["igInputInt"][1]["defaults"]["flags"] = "0" defs["igInputInt"][1]["defaults"]["step"] = "1" defs["igInputInt"][1]["defaults"]["step_fast"] = "100" defs["igInputInt"][1]["funcname"] = "InputInt" -defs["igInputInt"][1]["location"] = "imgui:580" +defs["igInputInt"][1]["location"] = "imgui:582" defs["igInputInt"][1]["namespace"] = "ImGui" defs["igInputInt"][1]["ov_cimguiname"] = "igInputInt" defs["igInputInt"][1]["ret"] = "bool" @@ -9778,7 +10021,7 @@ defs["igInputInt2"][1]["cimguiname"] = "igInputInt2" defs["igInputInt2"][1]["defaults"] = {} defs["igInputInt2"][1]["defaults"]["flags"] = "0" defs["igInputInt2"][1]["funcname"] = "InputInt2" -defs["igInputInt2"][1]["location"] = "imgui:581" +defs["igInputInt2"][1]["location"] = "imgui:583" defs["igInputInt2"][1]["namespace"] = "ImGui" defs["igInputInt2"][1]["ov_cimguiname"] = "igInputInt2" defs["igInputInt2"][1]["ret"] = "bool" @@ -9804,7 +10047,7 @@ defs["igInputInt3"][1]["cimguiname"] = "igInputInt3" defs["igInputInt3"][1]["defaults"] = {} defs["igInputInt3"][1]["defaults"]["flags"] = "0" defs["igInputInt3"][1]["funcname"] = "InputInt3" -defs["igInputInt3"][1]["location"] = "imgui:582" +defs["igInputInt3"][1]["location"] = "imgui:584" defs["igInputInt3"][1]["namespace"] = "ImGui" defs["igInputInt3"][1]["ov_cimguiname"] = "igInputInt3" defs["igInputInt3"][1]["ret"] = "bool" @@ -9830,7 +10073,7 @@ defs["igInputInt4"][1]["cimguiname"] = "igInputInt4" defs["igInputInt4"][1]["defaults"] = {} defs["igInputInt4"][1]["defaults"]["flags"] = "0" defs["igInputInt4"][1]["funcname"] = "InputInt4" -defs["igInputInt4"][1]["location"] = "imgui:583" +defs["igInputInt4"][1]["location"] = "imgui:585" defs["igInputInt4"][1]["namespace"] = "ImGui" defs["igInputInt4"][1]["ov_cimguiname"] = "igInputInt4" defs["igInputInt4"][1]["ret"] = "bool" @@ -9871,7 +10114,7 @@ defs["igInputScalar"][1]["defaults"]["format"] = "NULL" defs["igInputScalar"][1]["defaults"]["p_step"] = "NULL" defs["igInputScalar"][1]["defaults"]["p_step_fast"] = "NULL" defs["igInputScalar"][1]["funcname"] = "InputScalar" -defs["igInputScalar"][1]["location"] = "imgui:585" +defs["igInputScalar"][1]["location"] = "imgui:587" defs["igInputScalar"][1]["namespace"] = "ImGui" defs["igInputScalar"][1]["ov_cimguiname"] = "igInputScalar" defs["igInputScalar"][1]["ret"] = "bool" @@ -9915,7 +10158,7 @@ defs["igInputScalarN"][1]["defaults"]["format"] = "NULL" defs["igInputScalarN"][1]["defaults"]["p_step"] = "NULL" defs["igInputScalarN"][1]["defaults"]["p_step_fast"] = "NULL" defs["igInputScalarN"][1]["funcname"] = "InputScalarN" -defs["igInputScalarN"][1]["location"] = "imgui:586" +defs["igInputScalarN"][1]["location"] = "imgui:588" defs["igInputScalarN"][1]["namespace"] = "ImGui" defs["igInputScalarN"][1]["ov_cimguiname"] = "igInputScalarN" defs["igInputScalarN"][1]["ret"] = "bool" @@ -9952,7 +10195,7 @@ defs["igInputText"][1]["defaults"]["callback"] = "NULL" defs["igInputText"][1]["defaults"]["flags"] = "0" defs["igInputText"][1]["defaults"]["user_data"] = "NULL" defs["igInputText"][1]["funcname"] = "InputText" -defs["igInputText"][1]["location"] = "imgui:573" +defs["igInputText"][1]["location"] = "imgui:575" defs["igInputText"][1]["namespace"] = "ImGui" defs["igInputText"][1]["ov_cimguiname"] = "igInputText" defs["igInputText"][1]["ret"] = "bool" @@ -9993,7 +10236,7 @@ defs["igInputTextMultiline"][1]["defaults"]["flags"] = "0" defs["igInputTextMultiline"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igInputTextMultiline"][1]["defaults"]["user_data"] = "NULL" defs["igInputTextMultiline"][1]["funcname"] = "InputTextMultiline" -defs["igInputTextMultiline"][1]["location"] = "imgui:574" +defs["igInputTextMultiline"][1]["location"] = "imgui:576" defs["igInputTextMultiline"][1]["namespace"] = "ImGui" defs["igInputTextMultiline"][1]["ov_cimguiname"] = "igInputTextMultiline" defs["igInputTextMultiline"][1]["ret"] = "bool" @@ -10033,7 +10276,7 @@ defs["igInputTextWithHint"][1]["defaults"]["callback"] = "NULL" defs["igInputTextWithHint"][1]["defaults"]["flags"] = "0" defs["igInputTextWithHint"][1]["defaults"]["user_data"] = "NULL" defs["igInputTextWithHint"][1]["funcname"] = "InputTextWithHint" -defs["igInputTextWithHint"][1]["location"] = "imgui:575" +defs["igInputTextWithHint"][1]["location"] = "imgui:577" defs["igInputTextWithHint"][1]["namespace"] = "ImGui" defs["igInputTextWithHint"][1]["ov_cimguiname"] = "igInputTextWithHint" defs["igInputTextWithHint"][1]["ret"] = "bool" @@ -10059,7 +10302,7 @@ defs["igInvisibleButton"][1]["cimguiname"] = "igInvisibleButton" defs["igInvisibleButton"][1]["defaults"] = {} defs["igInvisibleButton"][1]["defaults"]["flags"] = "0" defs["igInvisibleButton"][1]["funcname"] = "InvisibleButton" -defs["igInvisibleButton"][1]["location"] = "imgui:504" +defs["igInvisibleButton"][1]["location"] = "imgui:502" defs["igInvisibleButton"][1]["namespace"] = "ImGui" defs["igInvisibleButton"][1]["ov_cimguiname"] = "igInvisibleButton" defs["igInvisibleButton"][1]["ret"] = "bool" @@ -10075,7 +10318,7 @@ defs["igIsAnyItemActive"][1]["call_args"] = "()" defs["igIsAnyItemActive"][1]["cimguiname"] = "igIsAnyItemActive" defs["igIsAnyItemActive"][1]["defaults"] = {} defs["igIsAnyItemActive"][1]["funcname"] = "IsAnyItemActive" -defs["igIsAnyItemActive"][1]["location"] = "imgui:848" +defs["igIsAnyItemActive"][1]["location"] = "imgui:846" defs["igIsAnyItemActive"][1]["namespace"] = "ImGui" defs["igIsAnyItemActive"][1]["ov_cimguiname"] = "igIsAnyItemActive" defs["igIsAnyItemActive"][1]["ret"] = "bool" @@ -10091,7 +10334,7 @@ defs["igIsAnyItemFocused"][1]["call_args"] = "()" defs["igIsAnyItemFocused"][1]["cimguiname"] = "igIsAnyItemFocused" defs["igIsAnyItemFocused"][1]["defaults"] = {} defs["igIsAnyItemFocused"][1]["funcname"] = "IsAnyItemFocused" -defs["igIsAnyItemFocused"][1]["location"] = "imgui:849" +defs["igIsAnyItemFocused"][1]["location"] = "imgui:847" defs["igIsAnyItemFocused"][1]["namespace"] = "ImGui" defs["igIsAnyItemFocused"][1]["ov_cimguiname"] = "igIsAnyItemFocused" defs["igIsAnyItemFocused"][1]["ret"] = "bool" @@ -10107,7 +10350,7 @@ defs["igIsAnyItemHovered"][1]["call_args"] = "()" defs["igIsAnyItemHovered"][1]["cimguiname"] = "igIsAnyItemHovered" defs["igIsAnyItemHovered"][1]["defaults"] = {} defs["igIsAnyItemHovered"][1]["funcname"] = "IsAnyItemHovered" -defs["igIsAnyItemHovered"][1]["location"] = "imgui:847" +defs["igIsAnyItemHovered"][1]["location"] = "imgui:845" defs["igIsAnyItemHovered"][1]["namespace"] = "ImGui" defs["igIsAnyItemHovered"][1]["ov_cimguiname"] = "igIsAnyItemHovered" defs["igIsAnyItemHovered"][1]["ret"] = "bool" @@ -10123,7 +10366,7 @@ defs["igIsAnyMouseDown"][1]["call_args"] = "()" defs["igIsAnyMouseDown"][1]["cimguiname"] = "igIsAnyMouseDown" defs["igIsAnyMouseDown"][1]["defaults"] = {} defs["igIsAnyMouseDown"][1]["funcname"] = "IsAnyMouseDown" -defs["igIsAnyMouseDown"][1]["location"] = "imgui:905" +defs["igIsAnyMouseDown"][1]["location"] = "imgui:908" defs["igIsAnyMouseDown"][1]["namespace"] = "ImGui" defs["igIsAnyMouseDown"][1]["ov_cimguiname"] = "igIsAnyMouseDown" defs["igIsAnyMouseDown"][1]["ret"] = "bool" @@ -10139,7 +10382,7 @@ defs["igIsItemActivated"][1]["call_args"] = "()" defs["igIsItemActivated"][1]["cimguiname"] = "igIsItemActivated" defs["igIsItemActivated"][1]["defaults"] = {} defs["igIsItemActivated"][1]["funcname"] = "IsItemActivated" -defs["igIsItemActivated"][1]["location"] = "imgui:843" +defs["igIsItemActivated"][1]["location"] = "imgui:841" defs["igIsItemActivated"][1]["namespace"] = "ImGui" defs["igIsItemActivated"][1]["ov_cimguiname"] = "igIsItemActivated" defs["igIsItemActivated"][1]["ret"] = "bool" @@ -10155,7 +10398,7 @@ defs["igIsItemActive"][1]["call_args"] = "()" defs["igIsItemActive"][1]["cimguiname"] = "igIsItemActive" defs["igIsItemActive"][1]["defaults"] = {} defs["igIsItemActive"][1]["funcname"] = "IsItemActive" -defs["igIsItemActive"][1]["location"] = "imgui:838" +defs["igIsItemActive"][1]["location"] = "imgui:836" defs["igIsItemActive"][1]["namespace"] = "ImGui" defs["igIsItemActive"][1]["ov_cimguiname"] = "igIsItemActive" defs["igIsItemActive"][1]["ret"] = "bool" @@ -10175,7 +10418,7 @@ defs["igIsItemClicked"][1]["cimguiname"] = "igIsItemClicked" defs["igIsItemClicked"][1]["defaults"] = {} defs["igIsItemClicked"][1]["defaults"]["mouse_button"] = "0" defs["igIsItemClicked"][1]["funcname"] = "IsItemClicked" -defs["igIsItemClicked"][1]["location"] = "imgui:840" +defs["igIsItemClicked"][1]["location"] = "imgui:838" defs["igIsItemClicked"][1]["namespace"] = "ImGui" defs["igIsItemClicked"][1]["ov_cimguiname"] = "igIsItemClicked" defs["igIsItemClicked"][1]["ret"] = "bool" @@ -10191,7 +10434,7 @@ defs["igIsItemDeactivated"][1]["call_args"] = "()" defs["igIsItemDeactivated"][1]["cimguiname"] = "igIsItemDeactivated" defs["igIsItemDeactivated"][1]["defaults"] = {} defs["igIsItemDeactivated"][1]["funcname"] = "IsItemDeactivated" -defs["igIsItemDeactivated"][1]["location"] = "imgui:844" +defs["igIsItemDeactivated"][1]["location"] = "imgui:842" defs["igIsItemDeactivated"][1]["namespace"] = "ImGui" defs["igIsItemDeactivated"][1]["ov_cimguiname"] = "igIsItemDeactivated" defs["igIsItemDeactivated"][1]["ret"] = "bool" @@ -10207,7 +10450,7 @@ defs["igIsItemDeactivatedAfterEdit"][1]["call_args"] = "()" defs["igIsItemDeactivatedAfterEdit"][1]["cimguiname"] = "igIsItemDeactivatedAfterEdit" defs["igIsItemDeactivatedAfterEdit"][1]["defaults"] = {} defs["igIsItemDeactivatedAfterEdit"][1]["funcname"] = "IsItemDeactivatedAfterEdit" -defs["igIsItemDeactivatedAfterEdit"][1]["location"] = "imgui:845" +defs["igIsItemDeactivatedAfterEdit"][1]["location"] = "imgui:843" defs["igIsItemDeactivatedAfterEdit"][1]["namespace"] = "ImGui" defs["igIsItemDeactivatedAfterEdit"][1]["ov_cimguiname"] = "igIsItemDeactivatedAfterEdit" defs["igIsItemDeactivatedAfterEdit"][1]["ret"] = "bool" @@ -10223,7 +10466,7 @@ defs["igIsItemEdited"][1]["call_args"] = "()" defs["igIsItemEdited"][1]["cimguiname"] = "igIsItemEdited" defs["igIsItemEdited"][1]["defaults"] = {} defs["igIsItemEdited"][1]["funcname"] = "IsItemEdited" -defs["igIsItemEdited"][1]["location"] = "imgui:842" +defs["igIsItemEdited"][1]["location"] = "imgui:840" defs["igIsItemEdited"][1]["namespace"] = "ImGui" defs["igIsItemEdited"][1]["ov_cimguiname"] = "igIsItemEdited" defs["igIsItemEdited"][1]["ret"] = "bool" @@ -10239,7 +10482,7 @@ defs["igIsItemFocused"][1]["call_args"] = "()" defs["igIsItemFocused"][1]["cimguiname"] = "igIsItemFocused" defs["igIsItemFocused"][1]["defaults"] = {} defs["igIsItemFocused"][1]["funcname"] = "IsItemFocused" -defs["igIsItemFocused"][1]["location"] = "imgui:839" +defs["igIsItemFocused"][1]["location"] = "imgui:837" defs["igIsItemFocused"][1]["namespace"] = "ImGui" defs["igIsItemFocused"][1]["ov_cimguiname"] = "igIsItemFocused" defs["igIsItemFocused"][1]["ret"] = "bool" @@ -10259,7 +10502,7 @@ defs["igIsItemHovered"][1]["cimguiname"] = "igIsItemHovered" defs["igIsItemHovered"][1]["defaults"] = {} defs["igIsItemHovered"][1]["defaults"]["flags"] = "0" defs["igIsItemHovered"][1]["funcname"] = "IsItemHovered" -defs["igIsItemHovered"][1]["location"] = "imgui:837" +defs["igIsItemHovered"][1]["location"] = "imgui:835" defs["igIsItemHovered"][1]["namespace"] = "ImGui" defs["igIsItemHovered"][1]["ov_cimguiname"] = "igIsItemHovered" defs["igIsItemHovered"][1]["ret"] = "bool" @@ -10275,7 +10518,7 @@ defs["igIsItemToggledOpen"][1]["call_args"] = "()" defs["igIsItemToggledOpen"][1]["cimguiname"] = "igIsItemToggledOpen" defs["igIsItemToggledOpen"][1]["defaults"] = {} defs["igIsItemToggledOpen"][1]["funcname"] = "IsItemToggledOpen" -defs["igIsItemToggledOpen"][1]["location"] = "imgui:846" +defs["igIsItemToggledOpen"][1]["location"] = "imgui:844" defs["igIsItemToggledOpen"][1]["namespace"] = "ImGui" defs["igIsItemToggledOpen"][1]["ov_cimguiname"] = "igIsItemToggledOpen" defs["igIsItemToggledOpen"][1]["ret"] = "bool" @@ -10291,7 +10534,7 @@ defs["igIsItemVisible"][1]["call_args"] = "()" defs["igIsItemVisible"][1]["cimguiname"] = "igIsItemVisible" defs["igIsItemVisible"][1]["defaults"] = {} defs["igIsItemVisible"][1]["funcname"] = "IsItemVisible" -defs["igIsItemVisible"][1]["location"] = "imgui:841" +defs["igIsItemVisible"][1]["location"] = "imgui:839" defs["igIsItemVisible"][1]["namespace"] = "ImGui" defs["igIsItemVisible"][1]["ov_cimguiname"] = "igIsItemVisible" defs["igIsItemVisible"][1]["ret"] = "bool" @@ -10300,65 +10543,65 @@ defs["igIsItemVisible"][1]["stname"] = "" defs["igIsItemVisible"]["()"] = defs["igIsItemVisible"][1] defs["igIsKeyDown"] = {} defs["igIsKeyDown"][1] = {} -defs["igIsKeyDown"][1]["args"] = "(int user_key_index)" +defs["igIsKeyDown"][1]["args"] = "(ImGuiKey key)" defs["igIsKeyDown"][1]["argsT"] = {} defs["igIsKeyDown"][1]["argsT"][1] = {} -defs["igIsKeyDown"][1]["argsT"][1]["name"] = "user_key_index" -defs["igIsKeyDown"][1]["argsT"][1]["type"] = "int" -defs["igIsKeyDown"][1]["argsoriginal"] = "(int user_key_index)" -defs["igIsKeyDown"][1]["call_args"] = "(user_key_index)" +defs["igIsKeyDown"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyDown"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyDown"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyDown"][1]["call_args"] = "(key)" defs["igIsKeyDown"][1]["cimguiname"] = "igIsKeyDown" defs["igIsKeyDown"][1]["defaults"] = {} defs["igIsKeyDown"][1]["funcname"] = "IsKeyDown" -defs["igIsKeyDown"][1]["location"] = "imgui:888" +defs["igIsKeyDown"][1]["location"] = "imgui:890" defs["igIsKeyDown"][1]["namespace"] = "ImGui" defs["igIsKeyDown"][1]["ov_cimguiname"] = "igIsKeyDown" defs["igIsKeyDown"][1]["ret"] = "bool" -defs["igIsKeyDown"][1]["signature"] = "(int)" +defs["igIsKeyDown"][1]["signature"] = "(ImGuiKey)" defs["igIsKeyDown"][1]["stname"] = "" -defs["igIsKeyDown"]["(int)"] = defs["igIsKeyDown"][1] +defs["igIsKeyDown"]["(ImGuiKey)"] = defs["igIsKeyDown"][1] defs["igIsKeyPressed"] = {} defs["igIsKeyPressed"][1] = {} -defs["igIsKeyPressed"][1]["args"] = "(int user_key_index,bool repeat)" +defs["igIsKeyPressed"][1]["args"] = "(ImGuiKey key,bool repeat)" defs["igIsKeyPressed"][1]["argsT"] = {} defs["igIsKeyPressed"][1]["argsT"][1] = {} -defs["igIsKeyPressed"][1]["argsT"][1]["name"] = "user_key_index" -defs["igIsKeyPressed"][1]["argsT"][1]["type"] = "int" +defs["igIsKeyPressed"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyPressed"][1]["argsT"][1]["type"] = "ImGuiKey" defs["igIsKeyPressed"][1]["argsT"][2] = {} defs["igIsKeyPressed"][1]["argsT"][2]["name"] = "repeat" defs["igIsKeyPressed"][1]["argsT"][2]["type"] = "bool" -defs["igIsKeyPressed"][1]["argsoriginal"] = "(int user_key_index,bool repeat=true)" -defs["igIsKeyPressed"][1]["call_args"] = "(user_key_index,repeat)" +defs["igIsKeyPressed"][1]["argsoriginal"] = "(ImGuiKey key,bool repeat=true)" +defs["igIsKeyPressed"][1]["call_args"] = "(key,repeat)" defs["igIsKeyPressed"][1]["cimguiname"] = "igIsKeyPressed" defs["igIsKeyPressed"][1]["defaults"] = {} defs["igIsKeyPressed"][1]["defaults"]["repeat"] = "true" defs["igIsKeyPressed"][1]["funcname"] = "IsKeyPressed" -defs["igIsKeyPressed"][1]["location"] = "imgui:889" +defs["igIsKeyPressed"][1]["location"] = "imgui:891" defs["igIsKeyPressed"][1]["namespace"] = "ImGui" defs["igIsKeyPressed"][1]["ov_cimguiname"] = "igIsKeyPressed" defs["igIsKeyPressed"][1]["ret"] = "bool" -defs["igIsKeyPressed"][1]["signature"] = "(int,bool)" +defs["igIsKeyPressed"][1]["signature"] = "(ImGuiKey,bool)" defs["igIsKeyPressed"][1]["stname"] = "" -defs["igIsKeyPressed"]["(int,bool)"] = defs["igIsKeyPressed"][1] +defs["igIsKeyPressed"]["(ImGuiKey,bool)"] = defs["igIsKeyPressed"][1] defs["igIsKeyReleased"] = {} defs["igIsKeyReleased"][1] = {} -defs["igIsKeyReleased"][1]["args"] = "(int user_key_index)" +defs["igIsKeyReleased"][1]["args"] = "(ImGuiKey key)" defs["igIsKeyReleased"][1]["argsT"] = {} defs["igIsKeyReleased"][1]["argsT"][1] = {} -defs["igIsKeyReleased"][1]["argsT"][1]["name"] = "user_key_index" -defs["igIsKeyReleased"][1]["argsT"][1]["type"] = "int" -defs["igIsKeyReleased"][1]["argsoriginal"] = "(int user_key_index)" -defs["igIsKeyReleased"][1]["call_args"] = "(user_key_index)" +defs["igIsKeyReleased"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyReleased"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyReleased"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyReleased"][1]["call_args"] = "(key)" defs["igIsKeyReleased"][1]["cimguiname"] = "igIsKeyReleased" defs["igIsKeyReleased"][1]["defaults"] = {} defs["igIsKeyReleased"][1]["funcname"] = "IsKeyReleased" -defs["igIsKeyReleased"][1]["location"] = "imgui:890" +defs["igIsKeyReleased"][1]["location"] = "imgui:892" defs["igIsKeyReleased"][1]["namespace"] = "ImGui" defs["igIsKeyReleased"][1]["ov_cimguiname"] = "igIsKeyReleased" defs["igIsKeyReleased"][1]["ret"] = "bool" -defs["igIsKeyReleased"][1]["signature"] = "(int)" +defs["igIsKeyReleased"][1]["signature"] = "(ImGuiKey)" defs["igIsKeyReleased"][1]["stname"] = "" -defs["igIsKeyReleased"]["(int)"] = defs["igIsKeyReleased"][1] +defs["igIsKeyReleased"]["(ImGuiKey)"] = defs["igIsKeyReleased"][1] defs["igIsMouseClicked"] = {} defs["igIsMouseClicked"][1] = {} defs["igIsMouseClicked"][1]["args"] = "(ImGuiMouseButton button,bool repeat)" @@ -10375,7 +10618,7 @@ defs["igIsMouseClicked"][1]["cimguiname"] = "igIsMouseClicked" defs["igIsMouseClicked"][1]["defaults"] = {} defs["igIsMouseClicked"][1]["defaults"]["repeat"] = "false" defs["igIsMouseClicked"][1]["funcname"] = "IsMouseClicked" -defs["igIsMouseClicked"][1]["location"] = "imgui:899" +defs["igIsMouseClicked"][1]["location"] = "imgui:902" defs["igIsMouseClicked"][1]["namespace"] = "ImGui" defs["igIsMouseClicked"][1]["ov_cimguiname"] = "igIsMouseClicked" defs["igIsMouseClicked"][1]["ret"] = "bool" @@ -10394,7 +10637,7 @@ defs["igIsMouseDoubleClicked"][1]["call_args"] = "(button)" defs["igIsMouseDoubleClicked"][1]["cimguiname"] = "igIsMouseDoubleClicked" defs["igIsMouseDoubleClicked"][1]["defaults"] = {} defs["igIsMouseDoubleClicked"][1]["funcname"] = "IsMouseDoubleClicked" -defs["igIsMouseDoubleClicked"][1]["location"] = "imgui:901" +defs["igIsMouseDoubleClicked"][1]["location"] = "imgui:904" defs["igIsMouseDoubleClicked"][1]["namespace"] = "ImGui" defs["igIsMouseDoubleClicked"][1]["ov_cimguiname"] = "igIsMouseDoubleClicked" defs["igIsMouseDoubleClicked"][1]["ret"] = "bool" @@ -10413,7 +10656,7 @@ defs["igIsMouseDown"][1]["call_args"] = "(button)" defs["igIsMouseDown"][1]["cimguiname"] = "igIsMouseDown" defs["igIsMouseDown"][1]["defaults"] = {} defs["igIsMouseDown"][1]["funcname"] = "IsMouseDown" -defs["igIsMouseDown"][1]["location"] = "imgui:898" +defs["igIsMouseDown"][1]["location"] = "imgui:901" defs["igIsMouseDown"][1]["namespace"] = "ImGui" defs["igIsMouseDown"][1]["ov_cimguiname"] = "igIsMouseDown" defs["igIsMouseDown"][1]["ret"] = "bool" @@ -10436,7 +10679,7 @@ defs["igIsMouseDragging"][1]["cimguiname"] = "igIsMouseDragging" defs["igIsMouseDragging"][1]["defaults"] = {} defs["igIsMouseDragging"][1]["defaults"]["lock_threshold"] = "-1.0f" defs["igIsMouseDragging"][1]["funcname"] = "IsMouseDragging" -defs["igIsMouseDragging"][1]["location"] = "imgui:908" +defs["igIsMouseDragging"][1]["location"] = "imgui:911" defs["igIsMouseDragging"][1]["namespace"] = "ImGui" defs["igIsMouseDragging"][1]["ov_cimguiname"] = "igIsMouseDragging" defs["igIsMouseDragging"][1]["ret"] = "bool" @@ -10462,7 +10705,7 @@ defs["igIsMouseHoveringRect"][1]["cimguiname"] = "igIsMouseHoveringRect" defs["igIsMouseHoveringRect"][1]["defaults"] = {} defs["igIsMouseHoveringRect"][1]["defaults"]["clip"] = "true" defs["igIsMouseHoveringRect"][1]["funcname"] = "IsMouseHoveringRect" -defs["igIsMouseHoveringRect"][1]["location"] = "imgui:903" +defs["igIsMouseHoveringRect"][1]["location"] = "imgui:906" defs["igIsMouseHoveringRect"][1]["namespace"] = "ImGui" defs["igIsMouseHoveringRect"][1]["ov_cimguiname"] = "igIsMouseHoveringRect" defs["igIsMouseHoveringRect"][1]["ret"] = "bool" @@ -10482,7 +10725,7 @@ defs["igIsMousePosValid"][1]["cimguiname"] = "igIsMousePosValid" defs["igIsMousePosValid"][1]["defaults"] = {} defs["igIsMousePosValid"][1]["defaults"]["mouse_pos"] = "NULL" defs["igIsMousePosValid"][1]["funcname"] = "IsMousePosValid" -defs["igIsMousePosValid"][1]["location"] = "imgui:904" +defs["igIsMousePosValid"][1]["location"] = "imgui:907" defs["igIsMousePosValid"][1]["namespace"] = "ImGui" defs["igIsMousePosValid"][1]["ov_cimguiname"] = "igIsMousePosValid" defs["igIsMousePosValid"][1]["ret"] = "bool" @@ -10501,7 +10744,7 @@ defs["igIsMouseReleased"][1]["call_args"] = "(button)" defs["igIsMouseReleased"][1]["cimguiname"] = "igIsMouseReleased" defs["igIsMouseReleased"][1]["defaults"] = {} defs["igIsMouseReleased"][1]["funcname"] = "IsMouseReleased" -defs["igIsMouseReleased"][1]["location"] = "imgui:900" +defs["igIsMouseReleased"][1]["location"] = "imgui:903" defs["igIsMouseReleased"][1]["namespace"] = "ImGui" defs["igIsMouseReleased"][1]["ov_cimguiname"] = "igIsMouseReleased" defs["igIsMouseReleased"][1]["ret"] = "bool" @@ -10524,7 +10767,7 @@ defs["igIsPopupOpen"][1]["cimguiname"] = "igIsPopupOpen" defs["igIsPopupOpen"][1]["defaults"] = {} defs["igIsPopupOpen"][1]["defaults"]["flags"] = "0" defs["igIsPopupOpen"][1]["funcname"] = "IsPopupOpen" -defs["igIsPopupOpen"][1]["location"] = "imgui:711" +defs["igIsPopupOpen"][1]["location"] = "imgui:714" defs["igIsPopupOpen"][1]["namespace"] = "ImGui" defs["igIsPopupOpen"][1]["ov_cimguiname"] = "igIsPopupOpen" defs["igIsPopupOpen"][1]["ret"] = "bool" @@ -10543,9 +10786,9 @@ defs["igIsRectVisible"][1]["call_args"] = "(size)" defs["igIsRectVisible"][1]["cimguiname"] = "igIsRectVisible" defs["igIsRectVisible"][1]["defaults"] = {} defs["igIsRectVisible"][1]["funcname"] = "IsRectVisible" -defs["igIsRectVisible"][1]["location"] = "imgui:862" +defs["igIsRectVisible"][1]["location"] = "imgui:864" defs["igIsRectVisible"][1]["namespace"] = "ImGui" -defs["igIsRectVisible"][1]["ov_cimguiname"] = "igIsRectVisibleNil" +defs["igIsRectVisible"][1]["ov_cimguiname"] = "igIsRectVisible_Nil" defs["igIsRectVisible"][1]["ret"] = "bool" defs["igIsRectVisible"][1]["signature"] = "(const ImVec2)" defs["igIsRectVisible"][1]["stname"] = "" @@ -10563,9 +10806,9 @@ defs["igIsRectVisible"][2]["call_args"] = "(rect_min,rect_max)" defs["igIsRectVisible"][2]["cimguiname"] = "igIsRectVisible" defs["igIsRectVisible"][2]["defaults"] = {} defs["igIsRectVisible"][2]["funcname"] = "IsRectVisible" -defs["igIsRectVisible"][2]["location"] = "imgui:863" +defs["igIsRectVisible"][2]["location"] = "imgui:865" defs["igIsRectVisible"][2]["namespace"] = "ImGui" -defs["igIsRectVisible"][2]["ov_cimguiname"] = "igIsRectVisibleVec2" +defs["igIsRectVisible"][2]["ov_cimguiname"] = "igIsRectVisible_Vec2" defs["igIsRectVisible"][2]["ret"] = "bool" defs["igIsRectVisible"][2]["signature"] = "(const ImVec2,const ImVec2)" defs["igIsRectVisible"][2]["stname"] = "" @@ -10580,7 +10823,7 @@ defs["igIsWindowAppearing"][1]["call_args"] = "()" defs["igIsWindowAppearing"][1]["cimguiname"] = "igIsWindowAppearing" defs["igIsWindowAppearing"][1]["defaults"] = {} defs["igIsWindowAppearing"][1]["funcname"] = "IsWindowAppearing" -defs["igIsWindowAppearing"][1]["location"] = "imgui:352" +defs["igIsWindowAppearing"][1]["location"] = "imgui:347" defs["igIsWindowAppearing"][1]["namespace"] = "ImGui" defs["igIsWindowAppearing"][1]["ov_cimguiname"] = "igIsWindowAppearing" defs["igIsWindowAppearing"][1]["ret"] = "bool" @@ -10596,7 +10839,7 @@ defs["igIsWindowCollapsed"][1]["call_args"] = "()" defs["igIsWindowCollapsed"][1]["cimguiname"] = "igIsWindowCollapsed" defs["igIsWindowCollapsed"][1]["defaults"] = {} defs["igIsWindowCollapsed"][1]["funcname"] = "IsWindowCollapsed" -defs["igIsWindowCollapsed"][1]["location"] = "imgui:353" +defs["igIsWindowCollapsed"][1]["location"] = "imgui:348" defs["igIsWindowCollapsed"][1]["namespace"] = "ImGui" defs["igIsWindowCollapsed"][1]["ov_cimguiname"] = "igIsWindowCollapsed" defs["igIsWindowCollapsed"][1]["ret"] = "bool" @@ -10616,7 +10859,7 @@ defs["igIsWindowFocused"][1]["cimguiname"] = "igIsWindowFocused" defs["igIsWindowFocused"][1]["defaults"] = {} defs["igIsWindowFocused"][1]["defaults"]["flags"] = "0" defs["igIsWindowFocused"][1]["funcname"] = "IsWindowFocused" -defs["igIsWindowFocused"][1]["location"] = "imgui:354" +defs["igIsWindowFocused"][1]["location"] = "imgui:349" defs["igIsWindowFocused"][1]["namespace"] = "ImGui" defs["igIsWindowFocused"][1]["ov_cimguiname"] = "igIsWindowFocused" defs["igIsWindowFocused"][1]["ret"] = "bool" @@ -10636,7 +10879,7 @@ defs["igIsWindowHovered"][1]["cimguiname"] = "igIsWindowHovered" defs["igIsWindowHovered"][1]["defaults"] = {} defs["igIsWindowHovered"][1]["defaults"]["flags"] = "0" defs["igIsWindowHovered"][1]["funcname"] = "IsWindowHovered" -defs["igIsWindowHovered"][1]["location"] = "imgui:355" +defs["igIsWindowHovered"][1]["location"] = "imgui:350" defs["igIsWindowHovered"][1]["namespace"] = "ImGui" defs["igIsWindowHovered"][1]["ov_cimguiname"] = "igIsWindowHovered" defs["igIsWindowHovered"][1]["ret"] = "bool" @@ -10662,7 +10905,7 @@ defs["igLabelText"][1]["cimguiname"] = "igLabelText" defs["igLabelText"][1]["defaults"] = {} defs["igLabelText"][1]["funcname"] = "LabelText" defs["igLabelText"][1]["isvararg"] = "...)" -defs["igLabelText"][1]["location"] = "imgui:494" +defs["igLabelText"][1]["location"] = "imgui:492" defs["igLabelText"][1]["namespace"] = "ImGui" defs["igLabelText"][1]["ov_cimguiname"] = "igLabelText" defs["igLabelText"][1]["ret"] = "void" @@ -10687,7 +10930,7 @@ defs["igLabelTextV"][1]["call_args"] = "(label,fmt,args)" defs["igLabelTextV"][1]["cimguiname"] = "igLabelTextV" defs["igLabelTextV"][1]["defaults"] = {} defs["igLabelTextV"][1]["funcname"] = "LabelTextV" -defs["igLabelTextV"][1]["location"] = "imgui:495" +defs["igLabelTextV"][1]["location"] = "imgui:493" defs["igLabelTextV"][1]["namespace"] = "ImGui" defs["igLabelTextV"][1]["ov_cimguiname"] = "igLabelTextV" defs["igLabelTextV"][1]["ret"] = "void" @@ -10719,9 +10962,9 @@ defs["igListBox"][1]["cimguiname"] = "igListBox" defs["igListBox"][1]["defaults"] = {} defs["igListBox"][1]["defaults"]["height_in_items"] = "-1" defs["igListBox"][1]["funcname"] = "ListBox" -defs["igListBox"][1]["location"] = "imgui:632" +defs["igListBox"][1]["location"] = "imgui:634" defs["igListBox"][1]["namespace"] = "ImGui" -defs["igListBox"][1]["ov_cimguiname"] = "igListBoxStr_arr" +defs["igListBox"][1]["ov_cimguiname"] = "igListBox_Str_arr" defs["igListBox"][1]["ret"] = "bool" defs["igListBox"][1]["signature"] = "(const char*,int*,const char* const[],int,int)" defs["igListBox"][1]["stname"] = "" @@ -10754,9 +10997,9 @@ defs["igListBox"][2]["cimguiname"] = "igListBox" defs["igListBox"][2]["defaults"] = {} defs["igListBox"][2]["defaults"]["height_in_items"] = "-1" defs["igListBox"][2]["funcname"] = "ListBox" -defs["igListBox"][2]["location"] = "imgui:633" +defs["igListBox"][2]["location"] = "imgui:635" defs["igListBox"][2]["namespace"] = "ImGui" -defs["igListBox"][2]["ov_cimguiname"] = "igListBoxFnBoolPtr" +defs["igListBox"][2]["ov_cimguiname"] = "igListBox_FnBoolPtr" defs["igListBox"][2]["ret"] = "bool" defs["igListBox"][2]["signature"] = "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)" defs["igListBox"][2]["stname"] = "" @@ -10774,7 +11017,7 @@ defs["igLoadIniSettingsFromDisk"][1]["call_args"] = "(ini_filename)" defs["igLoadIniSettingsFromDisk"][1]["cimguiname"] = "igLoadIniSettingsFromDisk" defs["igLoadIniSettingsFromDisk"][1]["defaults"] = {} defs["igLoadIniSettingsFromDisk"][1]["funcname"] = "LoadIniSettingsFromDisk" -defs["igLoadIniSettingsFromDisk"][1]["location"] = "imgui:924" +defs["igLoadIniSettingsFromDisk"][1]["location"] = "imgui:927" defs["igLoadIniSettingsFromDisk"][1]["namespace"] = "ImGui" defs["igLoadIniSettingsFromDisk"][1]["ov_cimguiname"] = "igLoadIniSettingsFromDisk" defs["igLoadIniSettingsFromDisk"][1]["ret"] = "void" @@ -10797,7 +11040,7 @@ defs["igLoadIniSettingsFromMemory"][1]["cimguiname"] = "igLoadIniSettingsFromMem defs["igLoadIniSettingsFromMemory"][1]["defaults"] = {} defs["igLoadIniSettingsFromMemory"][1]["defaults"]["ini_size"] = "0" defs["igLoadIniSettingsFromMemory"][1]["funcname"] = "LoadIniSettingsFromMemory" -defs["igLoadIniSettingsFromMemory"][1]["location"] = "imgui:925" +defs["igLoadIniSettingsFromMemory"][1]["location"] = "imgui:928" defs["igLoadIniSettingsFromMemory"][1]["namespace"] = "ImGui" defs["igLoadIniSettingsFromMemory"][1]["ov_cimguiname"] = "igLoadIniSettingsFromMemory" defs["igLoadIniSettingsFromMemory"][1]["ret"] = "void" @@ -10813,7 +11056,7 @@ defs["igLogButtons"][1]["call_args"] = "()" defs["igLogButtons"][1]["cimguiname"] = "igLogButtons" defs["igLogButtons"][1]["defaults"] = {} defs["igLogButtons"][1]["funcname"] = "LogButtons" -defs["igLogButtons"][1]["location"] = "imgui:800" +defs["igLogButtons"][1]["location"] = "imgui:798" defs["igLogButtons"][1]["namespace"] = "ImGui" defs["igLogButtons"][1]["ov_cimguiname"] = "igLogButtons" defs["igLogButtons"][1]["ret"] = "void" @@ -10829,7 +11072,7 @@ defs["igLogFinish"][1]["call_args"] = "()" defs["igLogFinish"][1]["cimguiname"] = "igLogFinish" defs["igLogFinish"][1]["defaults"] = {} defs["igLogFinish"][1]["funcname"] = "LogFinish" -defs["igLogFinish"][1]["location"] = "imgui:799" +defs["igLogFinish"][1]["location"] = "imgui:797" defs["igLogFinish"][1]["namespace"] = "ImGui" defs["igLogFinish"][1]["ov_cimguiname"] = "igLogFinish" defs["igLogFinish"][1]["ret"] = "void" @@ -10852,7 +11095,7 @@ defs["igLogText"][1]["cimguiname"] = "igLogText" defs["igLogText"][1]["defaults"] = {} defs["igLogText"][1]["funcname"] = "LogText" defs["igLogText"][1]["isvararg"] = "...)" -defs["igLogText"][1]["location"] = "imgui:801" +defs["igLogText"][1]["location"] = "imgui:799" defs["igLogText"][1]["manual"] = true defs["igLogText"][1]["namespace"] = "ImGui" defs["igLogText"][1]["ov_cimguiname"] = "igLogText" @@ -10875,7 +11118,7 @@ defs["igLogTextV"][1]["call_args"] = "(fmt,args)" defs["igLogTextV"][1]["cimguiname"] = "igLogTextV" defs["igLogTextV"][1]["defaults"] = {} defs["igLogTextV"][1]["funcname"] = "LogTextV" -defs["igLogTextV"][1]["location"] = "imgui:802" +defs["igLogTextV"][1]["location"] = "imgui:800" defs["igLogTextV"][1]["namespace"] = "ImGui" defs["igLogTextV"][1]["ov_cimguiname"] = "igLogTextV" defs["igLogTextV"][1]["ret"] = "void" @@ -10895,7 +11138,7 @@ defs["igLogToClipboard"][1]["cimguiname"] = "igLogToClipboard" defs["igLogToClipboard"][1]["defaults"] = {} defs["igLogToClipboard"][1]["defaults"]["auto_open_depth"] = "-1" defs["igLogToClipboard"][1]["funcname"] = "LogToClipboard" -defs["igLogToClipboard"][1]["location"] = "imgui:798" +defs["igLogToClipboard"][1]["location"] = "imgui:796" defs["igLogToClipboard"][1]["namespace"] = "ImGui" defs["igLogToClipboard"][1]["ov_cimguiname"] = "igLogToClipboard" defs["igLogToClipboard"][1]["ret"] = "void" @@ -10919,7 +11162,7 @@ defs["igLogToFile"][1]["defaults"] = {} defs["igLogToFile"][1]["defaults"]["auto_open_depth"] = "-1" defs["igLogToFile"][1]["defaults"]["filename"] = "NULL" defs["igLogToFile"][1]["funcname"] = "LogToFile" -defs["igLogToFile"][1]["location"] = "imgui:797" +defs["igLogToFile"][1]["location"] = "imgui:795" defs["igLogToFile"][1]["namespace"] = "ImGui" defs["igLogToFile"][1]["ov_cimguiname"] = "igLogToFile" defs["igLogToFile"][1]["ret"] = "void" @@ -10939,7 +11182,7 @@ defs["igLogToTTY"][1]["cimguiname"] = "igLogToTTY" defs["igLogToTTY"][1]["defaults"] = {} defs["igLogToTTY"][1]["defaults"]["auto_open_depth"] = "-1" defs["igLogToTTY"][1]["funcname"] = "LogToTTY" -defs["igLogToTTY"][1]["location"] = "imgui:796" +defs["igLogToTTY"][1]["location"] = "imgui:794" defs["igLogToTTY"][1]["namespace"] = "ImGui" defs["igLogToTTY"][1]["ov_cimguiname"] = "igLogToTTY" defs["igLogToTTY"][1]["ret"] = "void" @@ -10958,7 +11201,7 @@ defs["igMemAlloc"][1]["call_args"] = "(size)" defs["igMemAlloc"][1]["cimguiname"] = "igMemAlloc" defs["igMemAlloc"][1]["defaults"] = {} defs["igMemAlloc"][1]["funcname"] = "MemAlloc" -defs["igMemAlloc"][1]["location"] = "imgui:939" +defs["igMemAlloc"][1]["location"] = "imgui:942" defs["igMemAlloc"][1]["namespace"] = "ImGui" defs["igMemAlloc"][1]["ov_cimguiname"] = "igMemAlloc" defs["igMemAlloc"][1]["ret"] = "void*" @@ -10977,7 +11220,7 @@ defs["igMemFree"][1]["call_args"] = "(ptr)" defs["igMemFree"][1]["cimguiname"] = "igMemFree" defs["igMemFree"][1]["defaults"] = {} defs["igMemFree"][1]["funcname"] = "MemFree" -defs["igMemFree"][1]["location"] = "imgui:940" +defs["igMemFree"][1]["location"] = "imgui:943" defs["igMemFree"][1]["namespace"] = "ImGui" defs["igMemFree"][1]["ov_cimguiname"] = "igMemFree" defs["igMemFree"][1]["ret"] = "void" @@ -11008,9 +11251,9 @@ defs["igMenuItem"][1]["defaults"]["enabled"] = "true" defs["igMenuItem"][1]["defaults"]["selected"] = "false" defs["igMenuItem"][1]["defaults"]["shortcut"] = "NULL" defs["igMenuItem"][1]["funcname"] = "MenuItem" -defs["igMenuItem"][1]["location"] = "imgui:660" +defs["igMenuItem"][1]["location"] = "imgui:662" defs["igMenuItem"][1]["namespace"] = "ImGui" -defs["igMenuItem"][1]["ov_cimguiname"] = "igMenuItemBool" +defs["igMenuItem"][1]["ov_cimguiname"] = "igMenuItem_Bool" defs["igMenuItem"][1]["ret"] = "bool" defs["igMenuItem"][1]["signature"] = "(const char*,const char*,bool,bool)" defs["igMenuItem"][1]["stname"] = "" @@ -11035,9 +11278,9 @@ defs["igMenuItem"][2]["cimguiname"] = "igMenuItem" defs["igMenuItem"][2]["defaults"] = {} defs["igMenuItem"][2]["defaults"]["enabled"] = "true" defs["igMenuItem"][2]["funcname"] = "MenuItem" -defs["igMenuItem"][2]["location"] = "imgui:661" +defs["igMenuItem"][2]["location"] = "imgui:663" defs["igMenuItem"][2]["namespace"] = "ImGui" -defs["igMenuItem"][2]["ov_cimguiname"] = "igMenuItemBoolPtr" +defs["igMenuItem"][2]["ov_cimguiname"] = "igMenuItem_BoolPtr" defs["igMenuItem"][2]["ret"] = "bool" defs["igMenuItem"][2]["signature"] = "(const char*,const char*,bool*,bool)" defs["igMenuItem"][2]["stname"] = "" @@ -11052,7 +11295,7 @@ defs["igNewFrame"][1]["call_args"] = "()" defs["igNewFrame"][1]["cimguiname"] = "igNewFrame" defs["igNewFrame"][1]["defaults"] = {} defs["igNewFrame"][1]["funcname"] = "NewFrame" -defs["igNewFrame"][1]["location"] = "imgui:302" +defs["igNewFrame"][1]["location"] = "imgui:296" defs["igNewFrame"][1]["namespace"] = "ImGui" defs["igNewFrame"][1]["ov_cimguiname"] = "igNewFrame" defs["igNewFrame"][1]["ret"] = "void" @@ -11068,7 +11311,7 @@ defs["igNewLine"][1]["call_args"] = "()" defs["igNewLine"][1]["cimguiname"] = "igNewLine" defs["igNewLine"][1]["defaults"] = {} defs["igNewLine"][1]["funcname"] = "NewLine" -defs["igNewLine"][1]["location"] = "imgui:442" +defs["igNewLine"][1]["location"] = "imgui:440" defs["igNewLine"][1]["namespace"] = "ImGui" defs["igNewLine"][1]["ov_cimguiname"] = "igNewLine" defs["igNewLine"][1]["ret"] = "void" @@ -11084,7 +11327,7 @@ defs["igNextColumn"][1]["call_args"] = "()" defs["igNextColumn"][1]["cimguiname"] = "igNextColumn" defs["igNextColumn"][1]["defaults"] = {} defs["igNextColumn"][1]["funcname"] = "NextColumn" -defs["igNextColumn"][1]["location"] = "imgui:778" +defs["igNextColumn"][1]["location"] = "imgui:776" defs["igNextColumn"][1]["namespace"] = "ImGui" defs["igNextColumn"][1]["ov_cimguiname"] = "igNextColumn" defs["igNextColumn"][1]["ret"] = "void" @@ -11107,9 +11350,9 @@ defs["igOpenPopup"][1]["cimguiname"] = "igOpenPopup" defs["igOpenPopup"][1]["defaults"] = {} defs["igOpenPopup"][1]["defaults"]["popup_flags"] = "0" defs["igOpenPopup"][1]["funcname"] = "OpenPopup" -defs["igOpenPopup"][1]["location"] = "imgui:693" +defs["igOpenPopup"][1]["location"] = "imgui:696" defs["igOpenPopup"][1]["namespace"] = "ImGui" -defs["igOpenPopup"][1]["ov_cimguiname"] = "igOpenPopupStr" +defs["igOpenPopup"][1]["ov_cimguiname"] = "igOpenPopup_Str" defs["igOpenPopup"][1]["ret"] = "void" defs["igOpenPopup"][1]["signature"] = "(const char*,ImGuiPopupFlags)" defs["igOpenPopup"][1]["stname"] = "" @@ -11128,9 +11371,9 @@ defs["igOpenPopup"][2]["cimguiname"] = "igOpenPopup" defs["igOpenPopup"][2]["defaults"] = {} defs["igOpenPopup"][2]["defaults"]["popup_flags"] = "0" defs["igOpenPopup"][2]["funcname"] = "OpenPopup" -defs["igOpenPopup"][2]["location"] = "imgui:694" +defs["igOpenPopup"][2]["location"] = "imgui:697" defs["igOpenPopup"][2]["namespace"] = "ImGui" -defs["igOpenPopup"][2]["ov_cimguiname"] = "igOpenPopupID" +defs["igOpenPopup"][2]["ov_cimguiname"] = "igOpenPopup_ID" defs["igOpenPopup"][2]["ret"] = "void" defs["igOpenPopup"][2]["signature"] = "(ImGuiID,ImGuiPopupFlags)" defs["igOpenPopup"][2]["stname"] = "" @@ -11153,7 +11396,7 @@ defs["igOpenPopupOnItemClick"][1]["defaults"] = {} defs["igOpenPopupOnItemClick"][1]["defaults"]["popup_flags"] = "1" defs["igOpenPopupOnItemClick"][1]["defaults"]["str_id"] = "NULL" defs["igOpenPopupOnItemClick"][1]["funcname"] = "OpenPopupOnItemClick" -defs["igOpenPopupOnItemClick"][1]["location"] = "imgui:695" +defs["igOpenPopupOnItemClick"][1]["location"] = "imgui:698" defs["igOpenPopupOnItemClick"][1]["namespace"] = "ImGui" defs["igOpenPopupOnItemClick"][1]["ov_cimguiname"] = "igOpenPopupOnItemClick" defs["igOpenPopupOnItemClick"][1]["ret"] = "void" @@ -11202,9 +11445,9 @@ defs["igPlotHistogram"][1]["defaults"]["scale_min"] = "FLT_MAX" defs["igPlotHistogram"][1]["defaults"]["stride"] = "sizeof(float)" defs["igPlotHistogram"][1]["defaults"]["values_offset"] = "0" defs["igPlotHistogram"][1]["funcname"] = "PlotHistogram" -defs["igPlotHistogram"][1]["location"] = "imgui:639" +defs["igPlotHistogram"][1]["location"] = "imgui:641" defs["igPlotHistogram"][1]["namespace"] = "ImGui" -defs["igPlotHistogram"][1]["ov_cimguiname"] = "igPlotHistogramFloatPtr" +defs["igPlotHistogram"][1]["ov_cimguiname"] = "igPlotHistogram_FloatPtr" defs["igPlotHistogram"][1]["ret"] = "void" defs["igPlotHistogram"][1]["signature"] = "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)" defs["igPlotHistogram"][1]["stname"] = "" @@ -11250,9 +11493,9 @@ defs["igPlotHistogram"][2]["defaults"]["scale_max"] = "FLT_MAX" defs["igPlotHistogram"][2]["defaults"]["scale_min"] = "FLT_MAX" defs["igPlotHistogram"][2]["defaults"]["values_offset"] = "0" defs["igPlotHistogram"][2]["funcname"] = "PlotHistogram" -defs["igPlotHistogram"][2]["location"] = "imgui:640" +defs["igPlotHistogram"][2]["location"] = "imgui:642" defs["igPlotHistogram"][2]["namespace"] = "ImGui" -defs["igPlotHistogram"][2]["ov_cimguiname"] = "igPlotHistogramFnFloatPtr" +defs["igPlotHistogram"][2]["ov_cimguiname"] = "igPlotHistogram_FnFloatPtr" defs["igPlotHistogram"][2]["ret"] = "void" defs["igPlotHistogram"][2]["signature"] = "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)" defs["igPlotHistogram"][2]["stname"] = "" @@ -11300,9 +11543,9 @@ defs["igPlotLines"][1]["defaults"]["scale_min"] = "FLT_MAX" defs["igPlotLines"][1]["defaults"]["stride"] = "sizeof(float)" defs["igPlotLines"][1]["defaults"]["values_offset"] = "0" defs["igPlotLines"][1]["funcname"] = "PlotLines" -defs["igPlotLines"][1]["location"] = "imgui:637" +defs["igPlotLines"][1]["location"] = "imgui:639" defs["igPlotLines"][1]["namespace"] = "ImGui" -defs["igPlotLines"][1]["ov_cimguiname"] = "igPlotLinesFloatPtr" +defs["igPlotLines"][1]["ov_cimguiname"] = "igPlotLines_FloatPtr" defs["igPlotLines"][1]["ret"] = "void" defs["igPlotLines"][1]["signature"] = "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)" defs["igPlotLines"][1]["stname"] = "" @@ -11348,9 +11591,9 @@ defs["igPlotLines"][2]["defaults"]["scale_max"] = "FLT_MAX" defs["igPlotLines"][2]["defaults"]["scale_min"] = "FLT_MAX" defs["igPlotLines"][2]["defaults"]["values_offset"] = "0" defs["igPlotLines"][2]["funcname"] = "PlotLines" -defs["igPlotLines"][2]["location"] = "imgui:638" +defs["igPlotLines"][2]["location"] = "imgui:640" defs["igPlotLines"][2]["namespace"] = "ImGui" -defs["igPlotLines"][2]["ov_cimguiname"] = "igPlotLinesFnFloatPtr" +defs["igPlotLines"][2]["ov_cimguiname"] = "igPlotLines_FnFloatPtr" defs["igPlotLines"][2]["ret"] = "void" defs["igPlotLines"][2]["signature"] = "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)" defs["igPlotLines"][2]["stname"] = "" @@ -11365,7 +11608,7 @@ defs["igPopAllowKeyboardFocus"][1]["call_args"] = "()" defs["igPopAllowKeyboardFocus"][1]["cimguiname"] = "igPopAllowKeyboardFocus" defs["igPopAllowKeyboardFocus"][1]["defaults"] = {} defs["igPopAllowKeyboardFocus"][1]["funcname"] = "PopAllowKeyboardFocus" -defs["igPopAllowKeyboardFocus"][1]["location"] = "imgui:411" +defs["igPopAllowKeyboardFocus"][1]["location"] = "imgui:409" defs["igPopAllowKeyboardFocus"][1]["namespace"] = "ImGui" defs["igPopAllowKeyboardFocus"][1]["ov_cimguiname"] = "igPopAllowKeyboardFocus" defs["igPopAllowKeyboardFocus"][1]["ret"] = "void" @@ -11381,7 +11624,7 @@ defs["igPopButtonRepeat"][1]["call_args"] = "()" defs["igPopButtonRepeat"][1]["cimguiname"] = "igPopButtonRepeat" defs["igPopButtonRepeat"][1]["defaults"] = {} defs["igPopButtonRepeat"][1]["funcname"] = "PopButtonRepeat" -defs["igPopButtonRepeat"][1]["location"] = "imgui:413" +defs["igPopButtonRepeat"][1]["location"] = "imgui:411" defs["igPopButtonRepeat"][1]["namespace"] = "ImGui" defs["igPopButtonRepeat"][1]["ov_cimguiname"] = "igPopButtonRepeat" defs["igPopButtonRepeat"][1]["ret"] = "void" @@ -11397,7 +11640,7 @@ defs["igPopClipRect"][1]["call_args"] = "()" defs["igPopClipRect"][1]["cimguiname"] = "igPopClipRect" defs["igPopClipRect"][1]["defaults"] = {} defs["igPopClipRect"][1]["funcname"] = "PopClipRect" -defs["igPopClipRect"][1]["location"] = "imgui:827" +defs["igPopClipRect"][1]["location"] = "imgui:825" defs["igPopClipRect"][1]["namespace"] = "ImGui" defs["igPopClipRect"][1]["ov_cimguiname"] = "igPopClipRect" defs["igPopClipRect"][1]["ret"] = "void" @@ -11413,7 +11656,7 @@ defs["igPopFont"][1]["call_args"] = "()" defs["igPopFont"][1]["cimguiname"] = "igPopFont" defs["igPopFont"][1]["defaults"] = {} defs["igPopFont"][1]["funcname"] = "PopFont" -defs["igPopFont"][1]["location"] = "imgui:403" +defs["igPopFont"][1]["location"] = "imgui:401" defs["igPopFont"][1]["namespace"] = "ImGui" defs["igPopFont"][1]["ov_cimguiname"] = "igPopFont" defs["igPopFont"][1]["ret"] = "void" @@ -11429,7 +11672,7 @@ defs["igPopID"][1]["call_args"] = "()" defs["igPopID"][1]["cimguiname"] = "igPopID" defs["igPopID"][1]["defaults"] = {} defs["igPopID"][1]["funcname"] = "PopID" -defs["igPopID"][1]["location"] = "imgui:479" +defs["igPopID"][1]["location"] = "imgui:477" defs["igPopID"][1]["namespace"] = "ImGui" defs["igPopID"][1]["ov_cimguiname"] = "igPopID" defs["igPopID"][1]["ret"] = "void" @@ -11445,7 +11688,7 @@ defs["igPopItemWidth"][1]["call_args"] = "()" defs["igPopItemWidth"][1]["cimguiname"] = "igPopItemWidth" defs["igPopItemWidth"][1]["defaults"] = {} defs["igPopItemWidth"][1]["funcname"] = "PopItemWidth" -defs["igPopItemWidth"][1]["location"] = "imgui:417" +defs["igPopItemWidth"][1]["location"] = "imgui:415" defs["igPopItemWidth"][1]["namespace"] = "ImGui" defs["igPopItemWidth"][1]["ov_cimguiname"] = "igPopItemWidth" defs["igPopItemWidth"][1]["ret"] = "void" @@ -11465,7 +11708,7 @@ defs["igPopStyleColor"][1]["cimguiname"] = "igPopStyleColor" defs["igPopStyleColor"][1]["defaults"] = {} defs["igPopStyleColor"][1]["defaults"]["count"] = "1" defs["igPopStyleColor"][1]["funcname"] = "PopStyleColor" -defs["igPopStyleColor"][1]["location"] = "imgui:406" +defs["igPopStyleColor"][1]["location"] = "imgui:404" defs["igPopStyleColor"][1]["namespace"] = "ImGui" defs["igPopStyleColor"][1]["ov_cimguiname"] = "igPopStyleColor" defs["igPopStyleColor"][1]["ret"] = "void" @@ -11485,7 +11728,7 @@ defs["igPopStyleVar"][1]["cimguiname"] = "igPopStyleVar" defs["igPopStyleVar"][1]["defaults"] = {} defs["igPopStyleVar"][1]["defaults"]["count"] = "1" defs["igPopStyleVar"][1]["funcname"] = "PopStyleVar" -defs["igPopStyleVar"][1]["location"] = "imgui:409" +defs["igPopStyleVar"][1]["location"] = "imgui:407" defs["igPopStyleVar"][1]["namespace"] = "ImGui" defs["igPopStyleVar"][1]["ov_cimguiname"] = "igPopStyleVar" defs["igPopStyleVar"][1]["ret"] = "void" @@ -11501,7 +11744,7 @@ defs["igPopTextWrapPos"][1]["call_args"] = "()" defs["igPopTextWrapPos"][1]["cimguiname"] = "igPopTextWrapPos" defs["igPopTextWrapPos"][1]["defaults"] = {} defs["igPopTextWrapPos"][1]["funcname"] = "PopTextWrapPos" -defs["igPopTextWrapPos"][1]["location"] = "imgui:421" +defs["igPopTextWrapPos"][1]["location"] = "imgui:419" defs["igPopTextWrapPos"][1]["namespace"] = "ImGui" defs["igPopTextWrapPos"][1]["ov_cimguiname"] = "igPopTextWrapPos" defs["igPopTextWrapPos"][1]["ret"] = "void" @@ -11528,7 +11771,7 @@ defs["igProgressBar"][1]["defaults"] = {} defs["igProgressBar"][1]["defaults"]["overlay"] = "NULL" defs["igProgressBar"][1]["defaults"]["size_arg"] = "ImVec2(-FLT_MIN,0)" defs["igProgressBar"][1]["funcname"] = "ProgressBar" -defs["igProgressBar"][1]["location"] = "imgui:513" +defs["igProgressBar"][1]["location"] = "imgui:509" defs["igProgressBar"][1]["namespace"] = "ImGui" defs["igProgressBar"][1]["ov_cimguiname"] = "igProgressBar" defs["igProgressBar"][1]["ret"] = "void" @@ -11547,7 +11790,7 @@ defs["igPushAllowKeyboardFocus"][1]["call_args"] = "(allow_keyboard_focus)" defs["igPushAllowKeyboardFocus"][1]["cimguiname"] = "igPushAllowKeyboardFocus" defs["igPushAllowKeyboardFocus"][1]["defaults"] = {} defs["igPushAllowKeyboardFocus"][1]["funcname"] = "PushAllowKeyboardFocus" -defs["igPushAllowKeyboardFocus"][1]["location"] = "imgui:410" +defs["igPushAllowKeyboardFocus"][1]["location"] = "imgui:408" defs["igPushAllowKeyboardFocus"][1]["namespace"] = "ImGui" defs["igPushAllowKeyboardFocus"][1]["ov_cimguiname"] = "igPushAllowKeyboardFocus" defs["igPushAllowKeyboardFocus"][1]["ret"] = "void" @@ -11566,7 +11809,7 @@ defs["igPushButtonRepeat"][1]["call_args"] = "(repeat)" defs["igPushButtonRepeat"][1]["cimguiname"] = "igPushButtonRepeat" defs["igPushButtonRepeat"][1]["defaults"] = {} defs["igPushButtonRepeat"][1]["funcname"] = "PushButtonRepeat" -defs["igPushButtonRepeat"][1]["location"] = "imgui:412" +defs["igPushButtonRepeat"][1]["location"] = "imgui:410" defs["igPushButtonRepeat"][1]["namespace"] = "ImGui" defs["igPushButtonRepeat"][1]["ov_cimguiname"] = "igPushButtonRepeat" defs["igPushButtonRepeat"][1]["ret"] = "void" @@ -11591,7 +11834,7 @@ defs["igPushClipRect"][1]["call_args"] = "(clip_rect_min,clip_rect_max,intersect defs["igPushClipRect"][1]["cimguiname"] = "igPushClipRect" defs["igPushClipRect"][1]["defaults"] = {} defs["igPushClipRect"][1]["funcname"] = "PushClipRect" -defs["igPushClipRect"][1]["location"] = "imgui:826" +defs["igPushClipRect"][1]["location"] = "imgui:824" defs["igPushClipRect"][1]["namespace"] = "ImGui" defs["igPushClipRect"][1]["ov_cimguiname"] = "igPushClipRect" defs["igPushClipRect"][1]["ret"] = "void" @@ -11610,7 +11853,7 @@ defs["igPushFont"][1]["call_args"] = "(font)" defs["igPushFont"][1]["cimguiname"] = "igPushFont" defs["igPushFont"][1]["defaults"] = {} defs["igPushFont"][1]["funcname"] = "PushFont" -defs["igPushFont"][1]["location"] = "imgui:402" +defs["igPushFont"][1]["location"] = "imgui:400" defs["igPushFont"][1]["namespace"] = "ImGui" defs["igPushFont"][1]["ov_cimguiname"] = "igPushFont" defs["igPushFont"][1]["ret"] = "void" @@ -11629,9 +11872,9 @@ defs["igPushID"][1]["call_args"] = "(str_id)" defs["igPushID"][1]["cimguiname"] = "igPushID" defs["igPushID"][1]["defaults"] = {} defs["igPushID"][1]["funcname"] = "PushID" -defs["igPushID"][1]["location"] = "imgui:475" +defs["igPushID"][1]["location"] = "imgui:473" defs["igPushID"][1]["namespace"] = "ImGui" -defs["igPushID"][1]["ov_cimguiname"] = "igPushIDStr" +defs["igPushID"][1]["ov_cimguiname"] = "igPushID_Str" defs["igPushID"][1]["ret"] = "void" defs["igPushID"][1]["signature"] = "(const char*)" defs["igPushID"][1]["stname"] = "" @@ -11649,9 +11892,9 @@ defs["igPushID"][2]["call_args"] = "(str_id_begin,str_id_end)" defs["igPushID"][2]["cimguiname"] = "igPushID" defs["igPushID"][2]["defaults"] = {} defs["igPushID"][2]["funcname"] = "PushID" -defs["igPushID"][2]["location"] = "imgui:476" +defs["igPushID"][2]["location"] = "imgui:474" defs["igPushID"][2]["namespace"] = "ImGui" -defs["igPushID"][2]["ov_cimguiname"] = "igPushIDStrStr" +defs["igPushID"][2]["ov_cimguiname"] = "igPushID_StrStr" defs["igPushID"][2]["ret"] = "void" defs["igPushID"][2]["signature"] = "(const char*,const char*)" defs["igPushID"][2]["stname"] = "" @@ -11666,9 +11909,9 @@ defs["igPushID"][3]["call_args"] = "(ptr_id)" defs["igPushID"][3]["cimguiname"] = "igPushID" defs["igPushID"][3]["defaults"] = {} defs["igPushID"][3]["funcname"] = "PushID" -defs["igPushID"][3]["location"] = "imgui:477" +defs["igPushID"][3]["location"] = "imgui:475" defs["igPushID"][3]["namespace"] = "ImGui" -defs["igPushID"][3]["ov_cimguiname"] = "igPushIDPtr" +defs["igPushID"][3]["ov_cimguiname"] = "igPushID_Ptr" defs["igPushID"][3]["ret"] = "void" defs["igPushID"][3]["signature"] = "(const void*)" defs["igPushID"][3]["stname"] = "" @@ -11683,9 +11926,9 @@ defs["igPushID"][4]["call_args"] = "(int_id)" defs["igPushID"][4]["cimguiname"] = "igPushID" defs["igPushID"][4]["defaults"] = {} defs["igPushID"][4]["funcname"] = "PushID" -defs["igPushID"][4]["location"] = "imgui:478" +defs["igPushID"][4]["location"] = "imgui:476" defs["igPushID"][4]["namespace"] = "ImGui" -defs["igPushID"][4]["ov_cimguiname"] = "igPushIDInt" +defs["igPushID"][4]["ov_cimguiname"] = "igPushID_Int" defs["igPushID"][4]["ret"] = "void" defs["igPushID"][4]["signature"] = "(int)" defs["igPushID"][4]["stname"] = "" @@ -11705,7 +11948,7 @@ defs["igPushItemWidth"][1]["call_args"] = "(item_width)" defs["igPushItemWidth"][1]["cimguiname"] = "igPushItemWidth" defs["igPushItemWidth"][1]["defaults"] = {} defs["igPushItemWidth"][1]["funcname"] = "PushItemWidth" -defs["igPushItemWidth"][1]["location"] = "imgui:416" +defs["igPushItemWidth"][1]["location"] = "imgui:414" defs["igPushItemWidth"][1]["namespace"] = "ImGui" defs["igPushItemWidth"][1]["ov_cimguiname"] = "igPushItemWidth" defs["igPushItemWidth"][1]["ret"] = "void" @@ -11727,9 +11970,9 @@ defs["igPushStyleColor"][1]["call_args"] = "(idx,col)" defs["igPushStyleColor"][1]["cimguiname"] = "igPushStyleColor" defs["igPushStyleColor"][1]["defaults"] = {} defs["igPushStyleColor"][1]["funcname"] = "PushStyleColor" -defs["igPushStyleColor"][1]["location"] = "imgui:404" +defs["igPushStyleColor"][1]["location"] = "imgui:402" defs["igPushStyleColor"][1]["namespace"] = "ImGui" -defs["igPushStyleColor"][1]["ov_cimguiname"] = "igPushStyleColorU32" +defs["igPushStyleColor"][1]["ov_cimguiname"] = "igPushStyleColor_U32" defs["igPushStyleColor"][1]["ret"] = "void" defs["igPushStyleColor"][1]["signature"] = "(ImGuiCol,ImU32)" defs["igPushStyleColor"][1]["stname"] = "" @@ -11747,9 +11990,9 @@ defs["igPushStyleColor"][2]["call_args"] = "(idx,col)" defs["igPushStyleColor"][2]["cimguiname"] = "igPushStyleColor" defs["igPushStyleColor"][2]["defaults"] = {} defs["igPushStyleColor"][2]["funcname"] = "PushStyleColor" -defs["igPushStyleColor"][2]["location"] = "imgui:405" +defs["igPushStyleColor"][2]["location"] = "imgui:403" defs["igPushStyleColor"][2]["namespace"] = "ImGui" -defs["igPushStyleColor"][2]["ov_cimguiname"] = "igPushStyleColorVec4" +defs["igPushStyleColor"][2]["ov_cimguiname"] = "igPushStyleColor_Vec4" defs["igPushStyleColor"][2]["ret"] = "void" defs["igPushStyleColor"][2]["signature"] = "(ImGuiCol,const ImVec4)" defs["igPushStyleColor"][2]["stname"] = "" @@ -11770,9 +12013,9 @@ defs["igPushStyleVar"][1]["call_args"] = "(idx,val)" defs["igPushStyleVar"][1]["cimguiname"] = "igPushStyleVar" defs["igPushStyleVar"][1]["defaults"] = {} defs["igPushStyleVar"][1]["funcname"] = "PushStyleVar" -defs["igPushStyleVar"][1]["location"] = "imgui:407" +defs["igPushStyleVar"][1]["location"] = "imgui:405" defs["igPushStyleVar"][1]["namespace"] = "ImGui" -defs["igPushStyleVar"][1]["ov_cimguiname"] = "igPushStyleVarFloat" +defs["igPushStyleVar"][1]["ov_cimguiname"] = "igPushStyleVar_Float" defs["igPushStyleVar"][1]["ret"] = "void" defs["igPushStyleVar"][1]["signature"] = "(ImGuiStyleVar,float)" defs["igPushStyleVar"][1]["stname"] = "" @@ -11790,9 +12033,9 @@ defs["igPushStyleVar"][2]["call_args"] = "(idx,val)" defs["igPushStyleVar"][2]["cimguiname"] = "igPushStyleVar" defs["igPushStyleVar"][2]["defaults"] = {} defs["igPushStyleVar"][2]["funcname"] = "PushStyleVar" -defs["igPushStyleVar"][2]["location"] = "imgui:408" +defs["igPushStyleVar"][2]["location"] = "imgui:406" defs["igPushStyleVar"][2]["namespace"] = "ImGui" -defs["igPushStyleVar"][2]["ov_cimguiname"] = "igPushStyleVarVec2" +defs["igPushStyleVar"][2]["ov_cimguiname"] = "igPushStyleVar_Vec2" defs["igPushStyleVar"][2]["ret"] = "void" defs["igPushStyleVar"][2]["signature"] = "(ImGuiStyleVar,const ImVec2)" defs["igPushStyleVar"][2]["stname"] = "" @@ -11811,7 +12054,7 @@ defs["igPushTextWrapPos"][1]["cimguiname"] = "igPushTextWrapPos" defs["igPushTextWrapPos"][1]["defaults"] = {} defs["igPushTextWrapPos"][1]["defaults"]["wrap_local_pos_x"] = "0.0f" defs["igPushTextWrapPos"][1]["funcname"] = "PushTextWrapPos" -defs["igPushTextWrapPos"][1]["location"] = "imgui:420" +defs["igPushTextWrapPos"][1]["location"] = "imgui:418" defs["igPushTextWrapPos"][1]["namespace"] = "ImGui" defs["igPushTextWrapPos"][1]["ov_cimguiname"] = "igPushTextWrapPos" defs["igPushTextWrapPos"][1]["ret"] = "void" @@ -11833,9 +12076,9 @@ defs["igRadioButton"][1]["call_args"] = "(label,active)" defs["igRadioButton"][1]["cimguiname"] = "igRadioButton" defs["igRadioButton"][1]["defaults"] = {} defs["igRadioButton"][1]["funcname"] = "RadioButton" -defs["igRadioButton"][1]["location"] = "imgui:511" +defs["igRadioButton"][1]["location"] = "imgui:507" defs["igRadioButton"][1]["namespace"] = "ImGui" -defs["igRadioButton"][1]["ov_cimguiname"] = "igRadioButtonBool" +defs["igRadioButton"][1]["ov_cimguiname"] = "igRadioButton_Bool" defs["igRadioButton"][1]["ret"] = "bool" defs["igRadioButton"][1]["signature"] = "(const char*,bool)" defs["igRadioButton"][1]["stname"] = "" @@ -11856,9 +12099,9 @@ defs["igRadioButton"][2]["call_args"] = "(label,v,v_button)" defs["igRadioButton"][2]["cimguiname"] = "igRadioButton" defs["igRadioButton"][2]["defaults"] = {} defs["igRadioButton"][2]["funcname"] = "RadioButton" -defs["igRadioButton"][2]["location"] = "imgui:512" +defs["igRadioButton"][2]["location"] = "imgui:508" defs["igRadioButton"][2]["namespace"] = "ImGui" -defs["igRadioButton"][2]["ov_cimguiname"] = "igRadioButtonIntPtr" +defs["igRadioButton"][2]["ov_cimguiname"] = "igRadioButton_IntPtr" defs["igRadioButton"][2]["ret"] = "bool" defs["igRadioButton"][2]["signature"] = "(const char*,int*,int)" defs["igRadioButton"][2]["stname"] = "" @@ -11873,7 +12116,7 @@ defs["igRender"][1]["call_args"] = "()" defs["igRender"][1]["cimguiname"] = "igRender" defs["igRender"][1]["defaults"] = {} defs["igRender"][1]["funcname"] = "Render" -defs["igRender"][1]["location"] = "imgui:304" +defs["igRender"][1]["location"] = "imgui:298" defs["igRender"][1]["namespace"] = "ImGui" defs["igRender"][1]["ov_cimguiname"] = "igRender" defs["igRender"][1]["ret"] = "void" @@ -11893,7 +12136,7 @@ defs["igResetMouseDragDelta"][1]["cimguiname"] = "igResetMouseDragDelta" defs["igResetMouseDragDelta"][1]["defaults"] = {} defs["igResetMouseDragDelta"][1]["defaults"]["button"] = "0" defs["igResetMouseDragDelta"][1]["funcname"] = "ResetMouseDragDelta" -defs["igResetMouseDragDelta"][1]["location"] = "imgui:910" +defs["igResetMouseDragDelta"][1]["location"] = "imgui:913" defs["igResetMouseDragDelta"][1]["namespace"] = "ImGui" defs["igResetMouseDragDelta"][1]["ov_cimguiname"] = "igResetMouseDragDelta" defs["igResetMouseDragDelta"][1]["ret"] = "void" @@ -11917,7 +12160,7 @@ defs["igSameLine"][1]["defaults"] = {} defs["igSameLine"][1]["defaults"]["offset_from_start_x"] = "0.0f" defs["igSameLine"][1]["defaults"]["spacing"] = "-1.0f" defs["igSameLine"][1]["funcname"] = "SameLine" -defs["igSameLine"][1]["location"] = "imgui:441" +defs["igSameLine"][1]["location"] = "imgui:439" defs["igSameLine"][1]["namespace"] = "ImGui" defs["igSameLine"][1]["ov_cimguiname"] = "igSameLine" defs["igSameLine"][1]["ret"] = "void" @@ -11936,7 +12179,7 @@ defs["igSaveIniSettingsToDisk"][1]["call_args"] = "(ini_filename)" defs["igSaveIniSettingsToDisk"][1]["cimguiname"] = "igSaveIniSettingsToDisk" defs["igSaveIniSettingsToDisk"][1]["defaults"] = {} defs["igSaveIniSettingsToDisk"][1]["funcname"] = "SaveIniSettingsToDisk" -defs["igSaveIniSettingsToDisk"][1]["location"] = "imgui:926" +defs["igSaveIniSettingsToDisk"][1]["location"] = "imgui:929" defs["igSaveIniSettingsToDisk"][1]["namespace"] = "ImGui" defs["igSaveIniSettingsToDisk"][1]["ov_cimguiname"] = "igSaveIniSettingsToDisk" defs["igSaveIniSettingsToDisk"][1]["ret"] = "void" @@ -11956,7 +12199,7 @@ defs["igSaveIniSettingsToMemory"][1]["cimguiname"] = "igSaveIniSettingsToMemory" defs["igSaveIniSettingsToMemory"][1]["defaults"] = {} defs["igSaveIniSettingsToMemory"][1]["defaults"]["out_ini_size"] = "NULL" defs["igSaveIniSettingsToMemory"][1]["funcname"] = "SaveIniSettingsToMemory" -defs["igSaveIniSettingsToMemory"][1]["location"] = "imgui:927" +defs["igSaveIniSettingsToMemory"][1]["location"] = "imgui:930" defs["igSaveIniSettingsToMemory"][1]["namespace"] = "ImGui" defs["igSaveIniSettingsToMemory"][1]["ov_cimguiname"] = "igSaveIniSettingsToMemory" defs["igSaveIniSettingsToMemory"][1]["ret"] = "const char*" @@ -11987,9 +12230,9 @@ defs["igSelectable"][1]["defaults"]["flags"] = "0" defs["igSelectable"][1]["defaults"]["selected"] = "false" defs["igSelectable"][1]["defaults"]["size"] = "ImVec2(0,0)" defs["igSelectable"][1]["funcname"] = "Selectable" -defs["igSelectable"][1]["location"] = "imgui:621" +defs["igSelectable"][1]["location"] = "imgui:623" defs["igSelectable"][1]["namespace"] = "ImGui" -defs["igSelectable"][1]["ov_cimguiname"] = "igSelectableBool" +defs["igSelectable"][1]["ov_cimguiname"] = "igSelectable_Bool" defs["igSelectable"][1]["ret"] = "bool" defs["igSelectable"][1]["signature"] = "(const char*,bool,ImGuiSelectableFlags,const ImVec2)" defs["igSelectable"][1]["stname"] = "" @@ -12015,9 +12258,9 @@ defs["igSelectable"][2]["defaults"] = {} defs["igSelectable"][2]["defaults"]["flags"] = "0" defs["igSelectable"][2]["defaults"]["size"] = "ImVec2(0,0)" defs["igSelectable"][2]["funcname"] = "Selectable" -defs["igSelectable"][2]["location"] = "imgui:622" +defs["igSelectable"][2]["location"] = "imgui:624" defs["igSelectable"][2]["namespace"] = "ImGui" -defs["igSelectable"][2]["ov_cimguiname"] = "igSelectableBoolPtr" +defs["igSelectable"][2]["ov_cimguiname"] = "igSelectable_BoolPtr" defs["igSelectable"][2]["ret"] = "bool" defs["igSelectable"][2]["signature"] = "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)" defs["igSelectable"][2]["stname"] = "" @@ -12032,7 +12275,7 @@ defs["igSeparator"][1]["call_args"] = "()" defs["igSeparator"][1]["cimguiname"] = "igSeparator" defs["igSeparator"][1]["defaults"] = {} defs["igSeparator"][1]["funcname"] = "Separator" -defs["igSeparator"][1]["location"] = "imgui:440" +defs["igSeparator"][1]["location"] = "imgui:438" defs["igSeparator"][1]["namespace"] = "ImGui" defs["igSeparator"][1]["ov_cimguiname"] = "igSeparator" defs["igSeparator"][1]["ret"] = "void" @@ -12058,7 +12301,7 @@ defs["igSetAllocatorFunctions"][1]["cimguiname"] = "igSetAllocatorFunctions" defs["igSetAllocatorFunctions"][1]["defaults"] = {} defs["igSetAllocatorFunctions"][1]["defaults"]["user_data"] = "NULL" defs["igSetAllocatorFunctions"][1]["funcname"] = "SetAllocatorFunctions" -defs["igSetAllocatorFunctions"][1]["location"] = "imgui:937" +defs["igSetAllocatorFunctions"][1]["location"] = "imgui:940" defs["igSetAllocatorFunctions"][1]["namespace"] = "ImGui" defs["igSetAllocatorFunctions"][1]["ov_cimguiname"] = "igSetAllocatorFunctions" defs["igSetAllocatorFunctions"][1]["ret"] = "void" @@ -12077,7 +12320,7 @@ defs["igSetClipboardText"][1]["call_args"] = "(text)" defs["igSetClipboardText"][1]["cimguiname"] = "igSetClipboardText" defs["igSetClipboardText"][1]["defaults"] = {} defs["igSetClipboardText"][1]["funcname"] = "SetClipboardText" -defs["igSetClipboardText"][1]["location"] = "imgui:918" +defs["igSetClipboardText"][1]["location"] = "imgui:921" defs["igSetClipboardText"][1]["namespace"] = "ImGui" defs["igSetClipboardText"][1]["ov_cimguiname"] = "igSetClipboardText" defs["igSetClipboardText"][1]["ret"] = "void" @@ -12096,7 +12339,7 @@ defs["igSetColorEditOptions"][1]["call_args"] = "(flags)" defs["igSetColorEditOptions"][1]["cimguiname"] = "igSetColorEditOptions" defs["igSetColorEditOptions"][1]["defaults"] = {} defs["igSetColorEditOptions"][1]["funcname"] = "SetColorEditOptions" -defs["igSetColorEditOptions"][1]["location"] = "imgui:596" +defs["igSetColorEditOptions"][1]["location"] = "imgui:598" defs["igSetColorEditOptions"][1]["namespace"] = "ImGui" defs["igSetColorEditOptions"][1]["ov_cimguiname"] = "igSetColorEditOptions" defs["igSetColorEditOptions"][1]["ret"] = "void" @@ -12118,7 +12361,7 @@ defs["igSetColumnOffset"][1]["call_args"] = "(column_index,offset_x)" defs["igSetColumnOffset"][1]["cimguiname"] = "igSetColumnOffset" defs["igSetColumnOffset"][1]["defaults"] = {} defs["igSetColumnOffset"][1]["funcname"] = "SetColumnOffset" -defs["igSetColumnOffset"][1]["location"] = "imgui:783" +defs["igSetColumnOffset"][1]["location"] = "imgui:781" defs["igSetColumnOffset"][1]["namespace"] = "ImGui" defs["igSetColumnOffset"][1]["ov_cimguiname"] = "igSetColumnOffset" defs["igSetColumnOffset"][1]["ret"] = "void" @@ -12140,7 +12383,7 @@ defs["igSetColumnWidth"][1]["call_args"] = "(column_index,width)" defs["igSetColumnWidth"][1]["cimguiname"] = "igSetColumnWidth" defs["igSetColumnWidth"][1]["defaults"] = {} defs["igSetColumnWidth"][1]["funcname"] = "SetColumnWidth" -defs["igSetColumnWidth"][1]["location"] = "imgui:781" +defs["igSetColumnWidth"][1]["location"] = "imgui:779" defs["igSetColumnWidth"][1]["namespace"] = "ImGui" defs["igSetColumnWidth"][1]["ov_cimguiname"] = "igSetColumnWidth" defs["igSetColumnWidth"][1]["ret"] = "void" @@ -12159,7 +12402,7 @@ defs["igSetCurrentContext"][1]["call_args"] = "(ctx)" defs["igSetCurrentContext"][1]["cimguiname"] = "igSetCurrentContext" defs["igSetCurrentContext"][1]["defaults"] = {} defs["igSetCurrentContext"][1]["funcname"] = "SetCurrentContext" -defs["igSetCurrentContext"][1]["location"] = "imgui:297" +defs["igSetCurrentContext"][1]["location"] = "imgui:291" defs["igSetCurrentContext"][1]["namespace"] = "ImGui" defs["igSetCurrentContext"][1]["ov_cimguiname"] = "igSetCurrentContext" defs["igSetCurrentContext"][1]["ret"] = "void" @@ -12178,7 +12421,7 @@ defs["igSetCursorPos"][1]["call_args"] = "(local_pos)" defs["igSetCursorPos"][1]["cimguiname"] = "igSetCursorPos" defs["igSetCursorPos"][1]["defaults"] = {} defs["igSetCursorPos"][1]["funcname"] = "SetCursorPos" -defs["igSetCursorPos"][1]["location"] = "imgui:452" +defs["igSetCursorPos"][1]["location"] = "imgui:450" defs["igSetCursorPos"][1]["namespace"] = "ImGui" defs["igSetCursorPos"][1]["ov_cimguiname"] = "igSetCursorPos" defs["igSetCursorPos"][1]["ret"] = "void" @@ -12197,7 +12440,7 @@ defs["igSetCursorPosX"][1]["call_args"] = "(local_x)" defs["igSetCursorPosX"][1]["cimguiname"] = "igSetCursorPosX" defs["igSetCursorPosX"][1]["defaults"] = {} defs["igSetCursorPosX"][1]["funcname"] = "SetCursorPosX" -defs["igSetCursorPosX"][1]["location"] = "imgui:453" +defs["igSetCursorPosX"][1]["location"] = "imgui:451" defs["igSetCursorPosX"][1]["namespace"] = "ImGui" defs["igSetCursorPosX"][1]["ov_cimguiname"] = "igSetCursorPosX" defs["igSetCursorPosX"][1]["ret"] = "void" @@ -12216,7 +12459,7 @@ defs["igSetCursorPosY"][1]["call_args"] = "(local_y)" defs["igSetCursorPosY"][1]["cimguiname"] = "igSetCursorPosY" defs["igSetCursorPosY"][1]["defaults"] = {} defs["igSetCursorPosY"][1]["funcname"] = "SetCursorPosY" -defs["igSetCursorPosY"][1]["location"] = "imgui:454" +defs["igSetCursorPosY"][1]["location"] = "imgui:452" defs["igSetCursorPosY"][1]["namespace"] = "ImGui" defs["igSetCursorPosY"][1]["ov_cimguiname"] = "igSetCursorPosY" defs["igSetCursorPosY"][1]["ret"] = "void" @@ -12235,7 +12478,7 @@ defs["igSetCursorScreenPos"][1]["call_args"] = "(pos)" defs["igSetCursorScreenPos"][1]["cimguiname"] = "igSetCursorScreenPos" defs["igSetCursorScreenPos"][1]["defaults"] = {} defs["igSetCursorScreenPos"][1]["funcname"] = "SetCursorScreenPos" -defs["igSetCursorScreenPos"][1]["location"] = "imgui:457" +defs["igSetCursorScreenPos"][1]["location"] = "imgui:455" defs["igSetCursorScreenPos"][1]["namespace"] = "ImGui" defs["igSetCursorScreenPos"][1]["ov_cimguiname"] = "igSetCursorScreenPos" defs["igSetCursorScreenPos"][1]["ret"] = "void" @@ -12264,7 +12507,7 @@ defs["igSetDragDropPayload"][1]["cimguiname"] = "igSetDragDropPayload" defs["igSetDragDropPayload"][1]["defaults"] = {} defs["igSetDragDropPayload"][1]["defaults"]["cond"] = "0" defs["igSetDragDropPayload"][1]["funcname"] = "SetDragDropPayload" -defs["igSetDragDropPayload"][1]["location"] = "imgui:810" +defs["igSetDragDropPayload"][1]["location"] = "imgui:808" defs["igSetDragDropPayload"][1]["namespace"] = "ImGui" defs["igSetDragDropPayload"][1]["ov_cimguiname"] = "igSetDragDropPayload" defs["igSetDragDropPayload"][1]["ret"] = "bool" @@ -12280,7 +12523,7 @@ defs["igSetItemAllowOverlap"][1]["call_args"] = "()" defs["igSetItemAllowOverlap"][1]["cimguiname"] = "igSetItemAllowOverlap" defs["igSetItemAllowOverlap"][1]["defaults"] = {} defs["igSetItemAllowOverlap"][1]["funcname"] = "SetItemAllowOverlap" -defs["igSetItemAllowOverlap"][1]["location"] = "imgui:853" +defs["igSetItemAllowOverlap"][1]["location"] = "imgui:851" defs["igSetItemAllowOverlap"][1]["namespace"] = "ImGui" defs["igSetItemAllowOverlap"][1]["ov_cimguiname"] = "igSetItemAllowOverlap" defs["igSetItemAllowOverlap"][1]["ret"] = "void" @@ -12296,7 +12539,7 @@ defs["igSetItemDefaultFocus"][1]["call_args"] = "()" defs["igSetItemDefaultFocus"][1]["cimguiname"] = "igSetItemDefaultFocus" defs["igSetItemDefaultFocus"][1]["defaults"] = {} defs["igSetItemDefaultFocus"][1]["funcname"] = "SetItemDefaultFocus" -defs["igSetItemDefaultFocus"][1]["location"] = "imgui:831" +defs["igSetItemDefaultFocus"][1]["location"] = "imgui:829" defs["igSetItemDefaultFocus"][1]["namespace"] = "ImGui" defs["igSetItemDefaultFocus"][1]["ov_cimguiname"] = "igSetItemDefaultFocus" defs["igSetItemDefaultFocus"][1]["ret"] = "void" @@ -12316,7 +12559,7 @@ defs["igSetKeyboardFocusHere"][1]["cimguiname"] = "igSetKeyboardFocusHere" defs["igSetKeyboardFocusHere"][1]["defaults"] = {} defs["igSetKeyboardFocusHere"][1]["defaults"]["offset"] = "0" defs["igSetKeyboardFocusHere"][1]["funcname"] = "SetKeyboardFocusHere" -defs["igSetKeyboardFocusHere"][1]["location"] = "imgui:832" +defs["igSetKeyboardFocusHere"][1]["location"] = "imgui:830" defs["igSetKeyboardFocusHere"][1]["namespace"] = "ImGui" defs["igSetKeyboardFocusHere"][1]["ov_cimguiname"] = "igSetKeyboardFocusHere" defs["igSetKeyboardFocusHere"][1]["ret"] = "void" @@ -12335,13 +12578,51 @@ defs["igSetMouseCursor"][1]["call_args"] = "(cursor_type)" defs["igSetMouseCursor"][1]["cimguiname"] = "igSetMouseCursor" defs["igSetMouseCursor"][1]["defaults"] = {} defs["igSetMouseCursor"][1]["funcname"] = "SetMouseCursor" -defs["igSetMouseCursor"][1]["location"] = "imgui:912" +defs["igSetMouseCursor"][1]["location"] = "imgui:915" defs["igSetMouseCursor"][1]["namespace"] = "ImGui" defs["igSetMouseCursor"][1]["ov_cimguiname"] = "igSetMouseCursor" defs["igSetMouseCursor"][1]["ret"] = "void" defs["igSetMouseCursor"][1]["signature"] = "(ImGuiMouseCursor)" defs["igSetMouseCursor"][1]["stname"] = "" defs["igSetMouseCursor"]["(ImGuiMouseCursor)"] = defs["igSetMouseCursor"][1] +defs["igSetNextFrameWantCaptureKeyboard"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["args"] = "(bool want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1]["name"] = "want_capture_keyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsoriginal"] = "(bool want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["call_args"] = "(want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["cimguiname"] = "igSetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["defaults"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["funcname"] = "SetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["location"] = "imgui:895" +defs["igSetNextFrameWantCaptureKeyboard"][1]["namespace"] = "ImGui" +defs["igSetNextFrameWantCaptureKeyboard"][1]["ov_cimguiname"] = "igSetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["ret"] = "void" +defs["igSetNextFrameWantCaptureKeyboard"][1]["signature"] = "(bool)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["stname"] = "" +defs["igSetNextFrameWantCaptureKeyboard"]["(bool)"] = defs["igSetNextFrameWantCaptureKeyboard"][1] +defs["igSetNextFrameWantCaptureMouse"] = {} +defs["igSetNextFrameWantCaptureMouse"][1] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["args"] = "(bool want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1]["name"] = "want_capture_mouse" +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextFrameWantCaptureMouse"][1]["argsoriginal"] = "(bool want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["call_args"] = "(want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["cimguiname"] = "igSetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["defaults"] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["funcname"] = "SetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["location"] = "imgui:916" +defs["igSetNextFrameWantCaptureMouse"][1]["namespace"] = "ImGui" +defs["igSetNextFrameWantCaptureMouse"][1]["ov_cimguiname"] = "igSetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["ret"] = "void" +defs["igSetNextFrameWantCaptureMouse"][1]["signature"] = "(bool)" +defs["igSetNextFrameWantCaptureMouse"][1]["stname"] = "" +defs["igSetNextFrameWantCaptureMouse"]["(bool)"] = defs["igSetNextFrameWantCaptureMouse"][1] defs["igSetNextItemOpen"] = {} defs["igSetNextItemOpen"][1] = {} defs["igSetNextItemOpen"][1]["args"] = "(bool is_open,ImGuiCond cond)" @@ -12358,7 +12639,7 @@ defs["igSetNextItemOpen"][1]["cimguiname"] = "igSetNextItemOpen" defs["igSetNextItemOpen"][1]["defaults"] = {} defs["igSetNextItemOpen"][1]["defaults"]["cond"] = "0" defs["igSetNextItemOpen"][1]["funcname"] = "SetNextItemOpen" -defs["igSetNextItemOpen"][1]["location"] = "imgui:616" +defs["igSetNextItemOpen"][1]["location"] = "imgui:618" defs["igSetNextItemOpen"][1]["namespace"] = "ImGui" defs["igSetNextItemOpen"][1]["ov_cimguiname"] = "igSetNextItemOpen" defs["igSetNextItemOpen"][1]["ret"] = "void" @@ -12377,7 +12658,7 @@ defs["igSetNextItemWidth"][1]["call_args"] = "(item_width)" defs["igSetNextItemWidth"][1]["cimguiname"] = "igSetNextItemWidth" defs["igSetNextItemWidth"][1]["defaults"] = {} defs["igSetNextItemWidth"][1]["funcname"] = "SetNextItemWidth" -defs["igSetNextItemWidth"][1]["location"] = "imgui:418" +defs["igSetNextItemWidth"][1]["location"] = "imgui:416" defs["igSetNextItemWidth"][1]["namespace"] = "ImGui" defs["igSetNextItemWidth"][1]["ov_cimguiname"] = "igSetNextItemWidth" defs["igSetNextItemWidth"][1]["ret"] = "void" @@ -12396,7 +12677,7 @@ defs["igSetNextWindowBgAlpha"][1]["call_args"] = "(alpha)" defs["igSetNextWindowBgAlpha"][1]["cimguiname"] = "igSetNextWindowBgAlpha" defs["igSetNextWindowBgAlpha"][1]["defaults"] = {} defs["igSetNextWindowBgAlpha"][1]["funcname"] = "SetNextWindowBgAlpha" -defs["igSetNextWindowBgAlpha"][1]["location"] = "imgui:370" +defs["igSetNextWindowBgAlpha"][1]["location"] = "imgui:366" defs["igSetNextWindowBgAlpha"][1]["namespace"] = "ImGui" defs["igSetNextWindowBgAlpha"][1]["ov_cimguiname"] = "igSetNextWindowBgAlpha" defs["igSetNextWindowBgAlpha"][1]["ret"] = "void" @@ -12419,7 +12700,7 @@ defs["igSetNextWindowCollapsed"][1]["cimguiname"] = "igSetNextWindowCollapsed" defs["igSetNextWindowCollapsed"][1]["defaults"] = {} defs["igSetNextWindowCollapsed"][1]["defaults"]["cond"] = "0" defs["igSetNextWindowCollapsed"][1]["funcname"] = "SetNextWindowCollapsed" -defs["igSetNextWindowCollapsed"][1]["location"] = "imgui:368" +defs["igSetNextWindowCollapsed"][1]["location"] = "imgui:363" defs["igSetNextWindowCollapsed"][1]["namespace"] = "ImGui" defs["igSetNextWindowCollapsed"][1]["ov_cimguiname"] = "igSetNextWindowCollapsed" defs["igSetNextWindowCollapsed"][1]["ret"] = "void" @@ -12438,7 +12719,7 @@ defs["igSetNextWindowContentSize"][1]["call_args"] = "(size)" defs["igSetNextWindowContentSize"][1]["cimguiname"] = "igSetNextWindowContentSize" defs["igSetNextWindowContentSize"][1]["defaults"] = {} defs["igSetNextWindowContentSize"][1]["funcname"] = "SetNextWindowContentSize" -defs["igSetNextWindowContentSize"][1]["location"] = "imgui:367" +defs["igSetNextWindowContentSize"][1]["location"] = "imgui:362" defs["igSetNextWindowContentSize"][1]["namespace"] = "ImGui" defs["igSetNextWindowContentSize"][1]["ov_cimguiname"] = "igSetNextWindowContentSize" defs["igSetNextWindowContentSize"][1]["ret"] = "void" @@ -12454,7 +12735,7 @@ defs["igSetNextWindowFocus"][1]["call_args"] = "()" defs["igSetNextWindowFocus"][1]["cimguiname"] = "igSetNextWindowFocus" defs["igSetNextWindowFocus"][1]["defaults"] = {} defs["igSetNextWindowFocus"][1]["funcname"] = "SetNextWindowFocus" -defs["igSetNextWindowFocus"][1]["location"] = "imgui:369" +defs["igSetNextWindowFocus"][1]["location"] = "imgui:364" defs["igSetNextWindowFocus"][1]["namespace"] = "ImGui" defs["igSetNextWindowFocus"][1]["ov_cimguiname"] = "igSetNextWindowFocus" defs["igSetNextWindowFocus"][1]["ret"] = "void" @@ -12481,13 +12762,32 @@ defs["igSetNextWindowPos"][1]["defaults"] = {} defs["igSetNextWindowPos"][1]["defaults"]["cond"] = "0" defs["igSetNextWindowPos"][1]["defaults"]["pivot"] = "ImVec2(0,0)" defs["igSetNextWindowPos"][1]["funcname"] = "SetNextWindowPos" -defs["igSetNextWindowPos"][1]["location"] = "imgui:364" +defs["igSetNextWindowPos"][1]["location"] = "imgui:359" defs["igSetNextWindowPos"][1]["namespace"] = "ImGui" defs["igSetNextWindowPos"][1]["ov_cimguiname"] = "igSetNextWindowPos" defs["igSetNextWindowPos"][1]["ret"] = "void" defs["igSetNextWindowPos"][1]["signature"] = "(const ImVec2,ImGuiCond,const ImVec2)" defs["igSetNextWindowPos"][1]["stname"] = "" defs["igSetNextWindowPos"]["(const ImVec2,ImGuiCond,const ImVec2)"] = defs["igSetNextWindowPos"][1] +defs["igSetNextWindowScroll"] = {} +defs["igSetNextWindowScroll"][1] = {} +defs["igSetNextWindowScroll"][1]["args"] = "(const ImVec2 scroll)" +defs["igSetNextWindowScroll"][1]["argsT"] = {} +defs["igSetNextWindowScroll"][1]["argsT"][1] = {} +defs["igSetNextWindowScroll"][1]["argsT"][1]["name"] = "scroll" +defs["igSetNextWindowScroll"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowScroll"][1]["argsoriginal"] = "(const ImVec2& scroll)" +defs["igSetNextWindowScroll"][1]["call_args"] = "(scroll)" +defs["igSetNextWindowScroll"][1]["cimguiname"] = "igSetNextWindowScroll" +defs["igSetNextWindowScroll"][1]["defaults"] = {} +defs["igSetNextWindowScroll"][1]["funcname"] = "SetNextWindowScroll" +defs["igSetNextWindowScroll"][1]["location"] = "imgui:365" +defs["igSetNextWindowScroll"][1]["namespace"] = "ImGui" +defs["igSetNextWindowScroll"][1]["ov_cimguiname"] = "igSetNextWindowScroll" +defs["igSetNextWindowScroll"][1]["ret"] = "void" +defs["igSetNextWindowScroll"][1]["signature"] = "(const ImVec2)" +defs["igSetNextWindowScroll"][1]["stname"] = "" +defs["igSetNextWindowScroll"]["(const ImVec2)"] = defs["igSetNextWindowScroll"][1] defs["igSetNextWindowSize"] = {} defs["igSetNextWindowSize"][1] = {} defs["igSetNextWindowSize"][1]["args"] = "(const ImVec2 size,ImGuiCond cond)" @@ -12504,7 +12804,7 @@ defs["igSetNextWindowSize"][1]["cimguiname"] = "igSetNextWindowSize" defs["igSetNextWindowSize"][1]["defaults"] = {} defs["igSetNextWindowSize"][1]["defaults"]["cond"] = "0" defs["igSetNextWindowSize"][1]["funcname"] = "SetNextWindowSize" -defs["igSetNextWindowSize"][1]["location"] = "imgui:365" +defs["igSetNextWindowSize"][1]["location"] = "imgui:360" defs["igSetNextWindowSize"][1]["namespace"] = "ImGui" defs["igSetNextWindowSize"][1]["ov_cimguiname"] = "igSetNextWindowSize" defs["igSetNextWindowSize"][1]["ret"] = "void" @@ -12534,7 +12834,7 @@ defs["igSetNextWindowSizeConstraints"][1]["defaults"] = {} defs["igSetNextWindowSizeConstraints"][1]["defaults"]["custom_callback"] = "NULL" defs["igSetNextWindowSizeConstraints"][1]["defaults"]["custom_callback_data"] = "NULL" defs["igSetNextWindowSizeConstraints"][1]["funcname"] = "SetNextWindowSizeConstraints" -defs["igSetNextWindowSizeConstraints"][1]["location"] = "imgui:366" +defs["igSetNextWindowSizeConstraints"][1]["location"] = "imgui:361" defs["igSetNextWindowSizeConstraints"][1]["namespace"] = "ImGui" defs["igSetNextWindowSizeConstraints"][1]["ov_cimguiname"] = "igSetNextWindowSizeConstraints" defs["igSetNextWindowSizeConstraints"][1]["ret"] = "void" @@ -12557,7 +12857,7 @@ defs["igSetScrollFromPosX"][1]["cimguiname"] = "igSetScrollFromPosX" defs["igSetScrollFromPosX"][1]["defaults"] = {} defs["igSetScrollFromPosX"][1]["defaults"]["center_x_ratio"] = "0.5f" defs["igSetScrollFromPosX"][1]["funcname"] = "SetScrollFromPosX" -defs["igSetScrollFromPosX"][1]["location"] = "imgui:398" +defs["igSetScrollFromPosX"][1]["location"] = "imgui:396" defs["igSetScrollFromPosX"][1]["namespace"] = "ImGui" defs["igSetScrollFromPosX"][1]["ov_cimguiname"] = "igSetScrollFromPosX" defs["igSetScrollFromPosX"][1]["ret"] = "void" @@ -12580,7 +12880,7 @@ defs["igSetScrollFromPosY"][1]["cimguiname"] = "igSetScrollFromPosY" defs["igSetScrollFromPosY"][1]["defaults"] = {} defs["igSetScrollFromPosY"][1]["defaults"]["center_y_ratio"] = "0.5f" defs["igSetScrollFromPosY"][1]["funcname"] = "SetScrollFromPosY" -defs["igSetScrollFromPosY"][1]["location"] = "imgui:399" +defs["igSetScrollFromPosY"][1]["location"] = "imgui:397" defs["igSetScrollFromPosY"][1]["namespace"] = "ImGui" defs["igSetScrollFromPosY"][1]["ov_cimguiname"] = "igSetScrollFromPosY" defs["igSetScrollFromPosY"][1]["ret"] = "void" @@ -12600,7 +12900,7 @@ defs["igSetScrollHereX"][1]["cimguiname"] = "igSetScrollHereX" defs["igSetScrollHereX"][1]["defaults"] = {} defs["igSetScrollHereX"][1]["defaults"]["center_x_ratio"] = "0.5f" defs["igSetScrollHereX"][1]["funcname"] = "SetScrollHereX" -defs["igSetScrollHereX"][1]["location"] = "imgui:396" +defs["igSetScrollHereX"][1]["location"] = "imgui:394" defs["igSetScrollHereX"][1]["namespace"] = "ImGui" defs["igSetScrollHereX"][1]["ov_cimguiname"] = "igSetScrollHereX" defs["igSetScrollHereX"][1]["ret"] = "void" @@ -12620,7 +12920,7 @@ defs["igSetScrollHereY"][1]["cimguiname"] = "igSetScrollHereY" defs["igSetScrollHereY"][1]["defaults"] = {} defs["igSetScrollHereY"][1]["defaults"]["center_y_ratio"] = "0.5f" defs["igSetScrollHereY"][1]["funcname"] = "SetScrollHereY" -defs["igSetScrollHereY"][1]["location"] = "imgui:397" +defs["igSetScrollHereY"][1]["location"] = "imgui:395" defs["igSetScrollHereY"][1]["namespace"] = "ImGui" defs["igSetScrollHereY"][1]["ov_cimguiname"] = "igSetScrollHereY" defs["igSetScrollHereY"][1]["ret"] = "void" @@ -12639,7 +12939,7 @@ defs["igSetScrollX"][1]["call_args"] = "(scroll_x)" defs["igSetScrollX"][1]["cimguiname"] = "igSetScrollX" defs["igSetScrollX"][1]["defaults"] = {} defs["igSetScrollX"][1]["funcname"] = "SetScrollX" -defs["igSetScrollX"][1]["location"] = "imgui:392" +defs["igSetScrollX"][1]["location"] = "imgui:390" defs["igSetScrollX"][1]["namespace"] = "ImGui" defs["igSetScrollX"][1]["ov_cimguiname"] = "igSetScrollX" defs["igSetScrollX"][1]["ret"] = "void" @@ -12658,7 +12958,7 @@ defs["igSetScrollY"][1]["call_args"] = "(scroll_y)" defs["igSetScrollY"][1]["cimguiname"] = "igSetScrollY" defs["igSetScrollY"][1]["defaults"] = {} defs["igSetScrollY"][1]["funcname"] = "SetScrollY" -defs["igSetScrollY"][1]["location"] = "imgui:393" +defs["igSetScrollY"][1]["location"] = "imgui:391" defs["igSetScrollY"][1]["namespace"] = "ImGui" defs["igSetScrollY"][1]["ov_cimguiname"] = "igSetScrollY" defs["igSetScrollY"][1]["ret"] = "void" @@ -12696,7 +12996,7 @@ defs["igSetTabItemClosed"][1]["call_args"] = "(tab_or_docked_window_label)" defs["igSetTabItemClosed"][1]["cimguiname"] = "igSetTabItemClosed" defs["igSetTabItemClosed"][1]["defaults"] = {} defs["igSetTabItemClosed"][1]["funcname"] = "SetTabItemClosed" -defs["igSetTabItemClosed"][1]["location"] = "imgui:792" +defs["igSetTabItemClosed"][1]["location"] = "imgui:790" defs["igSetTabItemClosed"][1]["namespace"] = "ImGui" defs["igSetTabItemClosed"][1]["ov_cimguiname"] = "igSetTabItemClosed" defs["igSetTabItemClosed"][1]["ret"] = "void" @@ -12719,7 +13019,7 @@ defs["igSetTooltip"][1]["cimguiname"] = "igSetTooltip" defs["igSetTooltip"][1]["defaults"] = {} defs["igSetTooltip"][1]["funcname"] = "SetTooltip" defs["igSetTooltip"][1]["isvararg"] = "...)" -defs["igSetTooltip"][1]["location"] = "imgui:667" +defs["igSetTooltip"][1]["location"] = "imgui:669" defs["igSetTooltip"][1]["namespace"] = "ImGui" defs["igSetTooltip"][1]["ov_cimguiname"] = "igSetTooltip" defs["igSetTooltip"][1]["ret"] = "void" @@ -12741,7 +13041,7 @@ defs["igSetTooltipV"][1]["call_args"] = "(fmt,args)" defs["igSetTooltipV"][1]["cimguiname"] = "igSetTooltipV" defs["igSetTooltipV"][1]["defaults"] = {} defs["igSetTooltipV"][1]["funcname"] = "SetTooltipV" -defs["igSetTooltipV"][1]["location"] = "imgui:668" +defs["igSetTooltipV"][1]["location"] = "imgui:670" defs["igSetTooltipV"][1]["namespace"] = "ImGui" defs["igSetTooltipV"][1]["ov_cimguiname"] = "igSetTooltipV" defs["igSetTooltipV"][1]["ret"] = "void" @@ -12764,9 +13064,9 @@ defs["igSetWindowCollapsed"][1]["cimguiname"] = "igSetWindowCollapsed" defs["igSetWindowCollapsed"][1]["defaults"] = {} defs["igSetWindowCollapsed"][1]["defaults"]["cond"] = "0" defs["igSetWindowCollapsed"][1]["funcname"] = "SetWindowCollapsed" -defs["igSetWindowCollapsed"][1]["location"] = "imgui:373" +defs["igSetWindowCollapsed"][1]["location"] = "imgui:369" defs["igSetWindowCollapsed"][1]["namespace"] = "ImGui" -defs["igSetWindowCollapsed"][1]["ov_cimguiname"] = "igSetWindowCollapsedBool" +defs["igSetWindowCollapsed"][1]["ov_cimguiname"] = "igSetWindowCollapsed_Bool" defs["igSetWindowCollapsed"][1]["ret"] = "void" defs["igSetWindowCollapsed"][1]["signature"] = "(bool,ImGuiCond)" defs["igSetWindowCollapsed"][1]["stname"] = "" @@ -12788,9 +13088,9 @@ defs["igSetWindowCollapsed"][2]["cimguiname"] = "igSetWindowCollapsed" defs["igSetWindowCollapsed"][2]["defaults"] = {} defs["igSetWindowCollapsed"][2]["defaults"]["cond"] = "0" defs["igSetWindowCollapsed"][2]["funcname"] = "SetWindowCollapsed" -defs["igSetWindowCollapsed"][2]["location"] = "imgui:378" +defs["igSetWindowCollapsed"][2]["location"] = "imgui:374" defs["igSetWindowCollapsed"][2]["namespace"] = "ImGui" -defs["igSetWindowCollapsed"][2]["ov_cimguiname"] = "igSetWindowCollapsedStr" +defs["igSetWindowCollapsed"][2]["ov_cimguiname"] = "igSetWindowCollapsed_Str" defs["igSetWindowCollapsed"][2]["ret"] = "void" defs["igSetWindowCollapsed"][2]["signature"] = "(const char*,bool,ImGuiCond)" defs["igSetWindowCollapsed"][2]["stname"] = "" @@ -12805,9 +13105,9 @@ defs["igSetWindowFocus"][1]["call_args"] = "()" defs["igSetWindowFocus"][1]["cimguiname"] = "igSetWindowFocus" defs["igSetWindowFocus"][1]["defaults"] = {} defs["igSetWindowFocus"][1]["funcname"] = "SetWindowFocus" -defs["igSetWindowFocus"][1]["location"] = "imgui:374" +defs["igSetWindowFocus"][1]["location"] = "imgui:370" defs["igSetWindowFocus"][1]["namespace"] = "ImGui" -defs["igSetWindowFocus"][1]["ov_cimguiname"] = "igSetWindowFocusNil" +defs["igSetWindowFocus"][1]["ov_cimguiname"] = "igSetWindowFocus_Nil" defs["igSetWindowFocus"][1]["ret"] = "void" defs["igSetWindowFocus"][1]["signature"] = "()" defs["igSetWindowFocus"][1]["stname"] = "" @@ -12822,9 +13122,9 @@ defs["igSetWindowFocus"][2]["call_args"] = "(name)" defs["igSetWindowFocus"][2]["cimguiname"] = "igSetWindowFocus" defs["igSetWindowFocus"][2]["defaults"] = {} defs["igSetWindowFocus"][2]["funcname"] = "SetWindowFocus" -defs["igSetWindowFocus"][2]["location"] = "imgui:379" +defs["igSetWindowFocus"][2]["location"] = "imgui:375" defs["igSetWindowFocus"][2]["namespace"] = "ImGui" -defs["igSetWindowFocus"][2]["ov_cimguiname"] = "igSetWindowFocusStr" +defs["igSetWindowFocus"][2]["ov_cimguiname"] = "igSetWindowFocus_Str" defs["igSetWindowFocus"][2]["ret"] = "void" defs["igSetWindowFocus"][2]["signature"] = "(const char*)" defs["igSetWindowFocus"][2]["stname"] = "" @@ -12842,7 +13142,7 @@ defs["igSetWindowFontScale"][1]["call_args"] = "(scale)" defs["igSetWindowFontScale"][1]["cimguiname"] = "igSetWindowFontScale" defs["igSetWindowFontScale"][1]["defaults"] = {} defs["igSetWindowFontScale"][1]["funcname"] = "SetWindowFontScale" -defs["igSetWindowFontScale"][1]["location"] = "imgui:375" +defs["igSetWindowFontScale"][1]["location"] = "imgui:371" defs["igSetWindowFontScale"][1]["namespace"] = "ImGui" defs["igSetWindowFontScale"][1]["ov_cimguiname"] = "igSetWindowFontScale" defs["igSetWindowFontScale"][1]["ret"] = "void" @@ -12865,9 +13165,9 @@ defs["igSetWindowPos"][1]["cimguiname"] = "igSetWindowPos" defs["igSetWindowPos"][1]["defaults"] = {} defs["igSetWindowPos"][1]["defaults"]["cond"] = "0" defs["igSetWindowPos"][1]["funcname"] = "SetWindowPos" -defs["igSetWindowPos"][1]["location"] = "imgui:371" +defs["igSetWindowPos"][1]["location"] = "imgui:367" defs["igSetWindowPos"][1]["namespace"] = "ImGui" -defs["igSetWindowPos"][1]["ov_cimguiname"] = "igSetWindowPosVec2" +defs["igSetWindowPos"][1]["ov_cimguiname"] = "igSetWindowPos_Vec2" defs["igSetWindowPos"][1]["ret"] = "void" defs["igSetWindowPos"][1]["signature"] = "(const ImVec2,ImGuiCond)" defs["igSetWindowPos"][1]["stname"] = "" @@ -12889,9 +13189,9 @@ defs["igSetWindowPos"][2]["cimguiname"] = "igSetWindowPos" defs["igSetWindowPos"][2]["defaults"] = {} defs["igSetWindowPos"][2]["defaults"]["cond"] = "0" defs["igSetWindowPos"][2]["funcname"] = "SetWindowPos" -defs["igSetWindowPos"][2]["location"] = "imgui:376" +defs["igSetWindowPos"][2]["location"] = "imgui:372" defs["igSetWindowPos"][2]["namespace"] = "ImGui" -defs["igSetWindowPos"][2]["ov_cimguiname"] = "igSetWindowPosStr" +defs["igSetWindowPos"][2]["ov_cimguiname"] = "igSetWindowPos_Str" defs["igSetWindowPos"][2]["ret"] = "void" defs["igSetWindowPos"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" defs["igSetWindowPos"][2]["stname"] = "" @@ -12913,9 +13213,9 @@ defs["igSetWindowSize"][1]["cimguiname"] = "igSetWindowSize" defs["igSetWindowSize"][1]["defaults"] = {} defs["igSetWindowSize"][1]["defaults"]["cond"] = "0" defs["igSetWindowSize"][1]["funcname"] = "SetWindowSize" -defs["igSetWindowSize"][1]["location"] = "imgui:372" +defs["igSetWindowSize"][1]["location"] = "imgui:368" defs["igSetWindowSize"][1]["namespace"] = "ImGui" -defs["igSetWindowSize"][1]["ov_cimguiname"] = "igSetWindowSizeVec2" +defs["igSetWindowSize"][1]["ov_cimguiname"] = "igSetWindowSize_Vec2" defs["igSetWindowSize"][1]["ret"] = "void" defs["igSetWindowSize"][1]["signature"] = "(const ImVec2,ImGuiCond)" defs["igSetWindowSize"][1]["stname"] = "" @@ -12937,9 +13237,9 @@ defs["igSetWindowSize"][2]["cimguiname"] = "igSetWindowSize" defs["igSetWindowSize"][2]["defaults"] = {} defs["igSetWindowSize"][2]["defaults"]["cond"] = "0" defs["igSetWindowSize"][2]["funcname"] = "SetWindowSize" -defs["igSetWindowSize"][2]["location"] = "imgui:377" +defs["igSetWindowSize"][2]["location"] = "imgui:373" defs["igSetWindowSize"][2]["namespace"] = "ImGui" -defs["igSetWindowSize"][2]["ov_cimguiname"] = "igSetWindowSizeStr" +defs["igSetWindowSize"][2]["ov_cimguiname"] = "igSetWindowSize_Str" defs["igSetWindowSize"][2]["ret"] = "void" defs["igSetWindowSize"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" defs["igSetWindowSize"][2]["stname"] = "" @@ -12958,13 +13258,33 @@ defs["igShowAboutWindow"][1]["cimguiname"] = "igShowAboutWindow" defs["igShowAboutWindow"][1]["defaults"] = {} defs["igShowAboutWindow"][1]["defaults"]["p_open"] = "NULL" defs["igShowAboutWindow"][1]["funcname"] = "ShowAboutWindow" -defs["igShowAboutWindow"][1]["location"] = "imgui:311" +defs["igShowAboutWindow"][1]["location"] = "imgui:306" defs["igShowAboutWindow"][1]["namespace"] = "ImGui" defs["igShowAboutWindow"][1]["ov_cimguiname"] = "igShowAboutWindow" defs["igShowAboutWindow"][1]["ret"] = "void" defs["igShowAboutWindow"][1]["signature"] = "(bool*)" defs["igShowAboutWindow"][1]["stname"] = "" defs["igShowAboutWindow"]["(bool*)"] = defs["igShowAboutWindow"][1] +defs["igShowDebugLogWindow"] = {} +defs["igShowDebugLogWindow"][1] = {} +defs["igShowDebugLogWindow"][1]["args"] = "(bool* p_open)" +defs["igShowDebugLogWindow"][1]["argsT"] = {} +defs["igShowDebugLogWindow"][1]["argsT"][1] = {} +defs["igShowDebugLogWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowDebugLogWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowDebugLogWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowDebugLogWindow"][1]["call_args"] = "(p_open)" +defs["igShowDebugLogWindow"][1]["cimguiname"] = "igShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["defaults"] = {} +defs["igShowDebugLogWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowDebugLogWindow"][1]["funcname"] = "ShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["location"] = "imgui:304" +defs["igShowDebugLogWindow"][1]["namespace"] = "ImGui" +defs["igShowDebugLogWindow"][1]["ov_cimguiname"] = "igShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["ret"] = "void" +defs["igShowDebugLogWindow"][1]["signature"] = "(bool*)" +defs["igShowDebugLogWindow"][1]["stname"] = "" +defs["igShowDebugLogWindow"]["(bool*)"] = defs["igShowDebugLogWindow"][1] defs["igShowDemoWindow"] = {} defs["igShowDemoWindow"][1] = {} defs["igShowDemoWindow"][1]["args"] = "(bool* p_open)" @@ -12978,7 +13298,7 @@ defs["igShowDemoWindow"][1]["cimguiname"] = "igShowDemoWindow" defs["igShowDemoWindow"][1]["defaults"] = {} defs["igShowDemoWindow"][1]["defaults"]["p_open"] = "NULL" defs["igShowDemoWindow"][1]["funcname"] = "ShowDemoWindow" -defs["igShowDemoWindow"][1]["location"] = "imgui:308" +defs["igShowDemoWindow"][1]["location"] = "imgui:302" defs["igShowDemoWindow"][1]["namespace"] = "ImGui" defs["igShowDemoWindow"][1]["ov_cimguiname"] = "igShowDemoWindow" defs["igShowDemoWindow"][1]["ret"] = "void" @@ -12997,7 +13317,7 @@ defs["igShowFontSelector"][1]["call_args"] = "(label)" defs["igShowFontSelector"][1]["cimguiname"] = "igShowFontSelector" defs["igShowFontSelector"][1]["defaults"] = {} defs["igShowFontSelector"][1]["funcname"] = "ShowFontSelector" -defs["igShowFontSelector"][1]["location"] = "imgui:314" +defs["igShowFontSelector"][1]["location"] = "imgui:309" defs["igShowFontSelector"][1]["namespace"] = "ImGui" defs["igShowFontSelector"][1]["ov_cimguiname"] = "igShowFontSelector" defs["igShowFontSelector"][1]["ret"] = "void" @@ -13017,7 +13337,7 @@ defs["igShowMetricsWindow"][1]["cimguiname"] = "igShowMetricsWindow" defs["igShowMetricsWindow"][1]["defaults"] = {} defs["igShowMetricsWindow"][1]["defaults"]["p_open"] = "NULL" defs["igShowMetricsWindow"][1]["funcname"] = "ShowMetricsWindow" -defs["igShowMetricsWindow"][1]["location"] = "imgui:309" +defs["igShowMetricsWindow"][1]["location"] = "imgui:303" defs["igShowMetricsWindow"][1]["namespace"] = "ImGui" defs["igShowMetricsWindow"][1]["ov_cimguiname"] = "igShowMetricsWindow" defs["igShowMetricsWindow"][1]["ret"] = "void" @@ -13037,7 +13357,7 @@ defs["igShowStackToolWindow"][1]["cimguiname"] = "igShowStackToolWindow" defs["igShowStackToolWindow"][1]["defaults"] = {} defs["igShowStackToolWindow"][1]["defaults"]["p_open"] = "NULL" defs["igShowStackToolWindow"][1]["funcname"] = "ShowStackToolWindow" -defs["igShowStackToolWindow"][1]["location"] = "imgui:310" +defs["igShowStackToolWindow"][1]["location"] = "imgui:305" defs["igShowStackToolWindow"][1]["namespace"] = "ImGui" defs["igShowStackToolWindow"][1]["ov_cimguiname"] = "igShowStackToolWindow" defs["igShowStackToolWindow"][1]["ret"] = "void" @@ -13057,7 +13377,7 @@ defs["igShowStyleEditor"][1]["cimguiname"] = "igShowStyleEditor" defs["igShowStyleEditor"][1]["defaults"] = {} defs["igShowStyleEditor"][1]["defaults"]["ref"] = "NULL" defs["igShowStyleEditor"][1]["funcname"] = "ShowStyleEditor" -defs["igShowStyleEditor"][1]["location"] = "imgui:312" +defs["igShowStyleEditor"][1]["location"] = "imgui:307" defs["igShowStyleEditor"][1]["namespace"] = "ImGui" defs["igShowStyleEditor"][1]["ov_cimguiname"] = "igShowStyleEditor" defs["igShowStyleEditor"][1]["ret"] = "void" @@ -13076,7 +13396,7 @@ defs["igShowStyleSelector"][1]["call_args"] = "(label)" defs["igShowStyleSelector"][1]["cimguiname"] = "igShowStyleSelector" defs["igShowStyleSelector"][1]["defaults"] = {} defs["igShowStyleSelector"][1]["funcname"] = "ShowStyleSelector" -defs["igShowStyleSelector"][1]["location"] = "imgui:313" +defs["igShowStyleSelector"][1]["location"] = "imgui:308" defs["igShowStyleSelector"][1]["namespace"] = "ImGui" defs["igShowStyleSelector"][1]["ov_cimguiname"] = "igShowStyleSelector" defs["igShowStyleSelector"][1]["ret"] = "bool" @@ -13092,7 +13412,7 @@ defs["igShowUserGuide"][1]["call_args"] = "()" defs["igShowUserGuide"][1]["cimguiname"] = "igShowUserGuide" defs["igShowUserGuide"][1]["defaults"] = {} defs["igShowUserGuide"][1]["funcname"] = "ShowUserGuide" -defs["igShowUserGuide"][1]["location"] = "imgui:315" +defs["igShowUserGuide"][1]["location"] = "imgui:310" defs["igShowUserGuide"][1]["namespace"] = "ImGui" defs["igShowUserGuide"][1]["ov_cimguiname"] = "igShowUserGuide" defs["igShowUserGuide"][1]["ret"] = "void" @@ -13130,7 +13450,7 @@ defs["igSliderAngle"][1]["defaults"]["format"] = "\"%.0f deg\"" defs["igSliderAngle"][1]["defaults"]["v_degrees_max"] = "+360.0f" defs["igSliderAngle"][1]["defaults"]["v_degrees_min"] = "-360.0f" defs["igSliderAngle"][1]["funcname"] = "SliderAngle" -defs["igSliderAngle"][1]["location"] = "imgui:559" +defs["igSliderAngle"][1]["location"] = "imgui:561" defs["igSliderAngle"][1]["namespace"] = "ImGui" defs["igSliderAngle"][1]["ov_cimguiname"] = "igSliderAngle" defs["igSliderAngle"][1]["ret"] = "bool" @@ -13166,7 +13486,7 @@ defs["igSliderFloat"][1]["defaults"] = {} defs["igSliderFloat"][1]["defaults"]["flags"] = "0" defs["igSliderFloat"][1]["defaults"]["format"] = "\"%.3f\"" defs["igSliderFloat"][1]["funcname"] = "SliderFloat" -defs["igSliderFloat"][1]["location"] = "imgui:555" +defs["igSliderFloat"][1]["location"] = "imgui:557" defs["igSliderFloat"][1]["namespace"] = "ImGui" defs["igSliderFloat"][1]["ov_cimguiname"] = "igSliderFloat" defs["igSliderFloat"][1]["ret"] = "bool" @@ -13202,7 +13522,7 @@ defs["igSliderFloat2"][1]["defaults"] = {} defs["igSliderFloat2"][1]["defaults"]["flags"] = "0" defs["igSliderFloat2"][1]["defaults"]["format"] = "\"%.3f\"" defs["igSliderFloat2"][1]["funcname"] = "SliderFloat2" -defs["igSliderFloat2"][1]["location"] = "imgui:556" +defs["igSliderFloat2"][1]["location"] = "imgui:558" defs["igSliderFloat2"][1]["namespace"] = "ImGui" defs["igSliderFloat2"][1]["ov_cimguiname"] = "igSliderFloat2" defs["igSliderFloat2"][1]["ret"] = "bool" @@ -13238,7 +13558,7 @@ defs["igSliderFloat3"][1]["defaults"] = {} defs["igSliderFloat3"][1]["defaults"]["flags"] = "0" defs["igSliderFloat3"][1]["defaults"]["format"] = "\"%.3f\"" defs["igSliderFloat3"][1]["funcname"] = "SliderFloat3" -defs["igSliderFloat3"][1]["location"] = "imgui:557" +defs["igSliderFloat3"][1]["location"] = "imgui:559" defs["igSliderFloat3"][1]["namespace"] = "ImGui" defs["igSliderFloat3"][1]["ov_cimguiname"] = "igSliderFloat3" defs["igSliderFloat3"][1]["ret"] = "bool" @@ -13274,7 +13594,7 @@ defs["igSliderFloat4"][1]["defaults"] = {} defs["igSliderFloat4"][1]["defaults"]["flags"] = "0" defs["igSliderFloat4"][1]["defaults"]["format"] = "\"%.3f\"" defs["igSliderFloat4"][1]["funcname"] = "SliderFloat4" -defs["igSliderFloat4"][1]["location"] = "imgui:558" +defs["igSliderFloat4"][1]["location"] = "imgui:560" defs["igSliderFloat4"][1]["namespace"] = "ImGui" defs["igSliderFloat4"][1]["ov_cimguiname"] = "igSliderFloat4" defs["igSliderFloat4"][1]["ret"] = "bool" @@ -13310,7 +13630,7 @@ defs["igSliderInt"][1]["defaults"] = {} defs["igSliderInt"][1]["defaults"]["flags"] = "0" defs["igSliderInt"][1]["defaults"]["format"] = "\"%d\"" defs["igSliderInt"][1]["funcname"] = "SliderInt" -defs["igSliderInt"][1]["location"] = "imgui:560" +defs["igSliderInt"][1]["location"] = "imgui:562" defs["igSliderInt"][1]["namespace"] = "ImGui" defs["igSliderInt"][1]["ov_cimguiname"] = "igSliderInt" defs["igSliderInt"][1]["ret"] = "bool" @@ -13346,7 +13666,7 @@ defs["igSliderInt2"][1]["defaults"] = {} defs["igSliderInt2"][1]["defaults"]["flags"] = "0" defs["igSliderInt2"][1]["defaults"]["format"] = "\"%d\"" defs["igSliderInt2"][1]["funcname"] = "SliderInt2" -defs["igSliderInt2"][1]["location"] = "imgui:561" +defs["igSliderInt2"][1]["location"] = "imgui:563" defs["igSliderInt2"][1]["namespace"] = "ImGui" defs["igSliderInt2"][1]["ov_cimguiname"] = "igSliderInt2" defs["igSliderInt2"][1]["ret"] = "bool" @@ -13382,7 +13702,7 @@ defs["igSliderInt3"][1]["defaults"] = {} defs["igSliderInt3"][1]["defaults"]["flags"] = "0" defs["igSliderInt3"][1]["defaults"]["format"] = "\"%d\"" defs["igSliderInt3"][1]["funcname"] = "SliderInt3" -defs["igSliderInt3"][1]["location"] = "imgui:562" +defs["igSliderInt3"][1]["location"] = "imgui:564" defs["igSliderInt3"][1]["namespace"] = "ImGui" defs["igSliderInt3"][1]["ov_cimguiname"] = "igSliderInt3" defs["igSliderInt3"][1]["ret"] = "bool" @@ -13418,7 +13738,7 @@ defs["igSliderInt4"][1]["defaults"] = {} defs["igSliderInt4"][1]["defaults"]["flags"] = "0" defs["igSliderInt4"][1]["defaults"]["format"] = "\"%d\"" defs["igSliderInt4"][1]["funcname"] = "SliderInt4" -defs["igSliderInt4"][1]["location"] = "imgui:563" +defs["igSliderInt4"][1]["location"] = "imgui:565" defs["igSliderInt4"][1]["namespace"] = "ImGui" defs["igSliderInt4"][1]["ov_cimguiname"] = "igSliderInt4" defs["igSliderInt4"][1]["ret"] = "bool" @@ -13457,7 +13777,7 @@ defs["igSliderScalar"][1]["defaults"] = {} defs["igSliderScalar"][1]["defaults"]["flags"] = "0" defs["igSliderScalar"][1]["defaults"]["format"] = "NULL" defs["igSliderScalar"][1]["funcname"] = "SliderScalar" -defs["igSliderScalar"][1]["location"] = "imgui:564" +defs["igSliderScalar"][1]["location"] = "imgui:566" defs["igSliderScalar"][1]["namespace"] = "ImGui" defs["igSliderScalar"][1]["ov_cimguiname"] = "igSliderScalar" defs["igSliderScalar"][1]["ret"] = "bool" @@ -13499,7 +13819,7 @@ defs["igSliderScalarN"][1]["defaults"] = {} defs["igSliderScalarN"][1]["defaults"]["flags"] = "0" defs["igSliderScalarN"][1]["defaults"]["format"] = "NULL" defs["igSliderScalarN"][1]["funcname"] = "SliderScalarN" -defs["igSliderScalarN"][1]["location"] = "imgui:565" +defs["igSliderScalarN"][1]["location"] = "imgui:567" defs["igSliderScalarN"][1]["namespace"] = "ImGui" defs["igSliderScalarN"][1]["ov_cimguiname"] = "igSliderScalarN" defs["igSliderScalarN"][1]["ret"] = "bool" @@ -13518,7 +13838,7 @@ defs["igSmallButton"][1]["call_args"] = "(label)" defs["igSmallButton"][1]["cimguiname"] = "igSmallButton" defs["igSmallButton"][1]["defaults"] = {} defs["igSmallButton"][1]["funcname"] = "SmallButton" -defs["igSmallButton"][1]["location"] = "imgui:503" +defs["igSmallButton"][1]["location"] = "imgui:501" defs["igSmallButton"][1]["namespace"] = "ImGui" defs["igSmallButton"][1]["ov_cimguiname"] = "igSmallButton" defs["igSmallButton"][1]["ret"] = "bool" @@ -13534,7 +13854,7 @@ defs["igSpacing"][1]["call_args"] = "()" defs["igSpacing"][1]["cimguiname"] = "igSpacing" defs["igSpacing"][1]["defaults"] = {} defs["igSpacing"][1]["funcname"] = "Spacing" -defs["igSpacing"][1]["location"] = "imgui:443" +defs["igSpacing"][1]["location"] = "imgui:441" defs["igSpacing"][1]["namespace"] = "ImGui" defs["igSpacing"][1]["ov_cimguiname"] = "igSpacing" defs["igSpacing"][1]["ret"] = "void" @@ -13554,7 +13874,7 @@ defs["igStyleColorsClassic"][1]["cimguiname"] = "igStyleColorsClassic" defs["igStyleColorsClassic"][1]["defaults"] = {} defs["igStyleColorsClassic"][1]["defaults"]["dst"] = "NULL" defs["igStyleColorsClassic"][1]["funcname"] = "StyleColorsClassic" -defs["igStyleColorsClassic"][1]["location"] = "imgui:321" +defs["igStyleColorsClassic"][1]["location"] = "imgui:316" defs["igStyleColorsClassic"][1]["namespace"] = "ImGui" defs["igStyleColorsClassic"][1]["ov_cimguiname"] = "igStyleColorsClassic" defs["igStyleColorsClassic"][1]["ret"] = "void" @@ -13574,7 +13894,7 @@ defs["igStyleColorsDark"][1]["cimguiname"] = "igStyleColorsDark" defs["igStyleColorsDark"][1]["defaults"] = {} defs["igStyleColorsDark"][1]["defaults"]["dst"] = "NULL" defs["igStyleColorsDark"][1]["funcname"] = "StyleColorsDark" -defs["igStyleColorsDark"][1]["location"] = "imgui:319" +defs["igStyleColorsDark"][1]["location"] = "imgui:314" defs["igStyleColorsDark"][1]["namespace"] = "ImGui" defs["igStyleColorsDark"][1]["ov_cimguiname"] = "igStyleColorsDark" defs["igStyleColorsDark"][1]["ret"] = "void" @@ -13594,7 +13914,7 @@ defs["igStyleColorsLight"][1]["cimguiname"] = "igStyleColorsLight" defs["igStyleColorsLight"][1]["defaults"] = {} defs["igStyleColorsLight"][1]["defaults"]["dst"] = "NULL" defs["igStyleColorsLight"][1]["funcname"] = "StyleColorsLight" -defs["igStyleColorsLight"][1]["location"] = "imgui:320" +defs["igStyleColorsLight"][1]["location"] = "imgui:315" defs["igStyleColorsLight"][1]["namespace"] = "ImGui" defs["igStyleColorsLight"][1]["ov_cimguiname"] = "igStyleColorsLight" defs["igStyleColorsLight"][1]["ret"] = "void" @@ -13617,7 +13937,7 @@ defs["igTabItemButton"][1]["cimguiname"] = "igTabItemButton" defs["igTabItemButton"][1]["defaults"] = {} defs["igTabItemButton"][1]["defaults"]["flags"] = "0" defs["igTabItemButton"][1]["funcname"] = "TabItemButton" -defs["igTabItemButton"][1]["location"] = "imgui:791" +defs["igTabItemButton"][1]["location"] = "imgui:789" defs["igTabItemButton"][1]["namespace"] = "ImGui" defs["igTabItemButton"][1]["ov_cimguiname"] = "igTabItemButton" defs["igTabItemButton"][1]["ret"] = "bool" @@ -13633,7 +13953,7 @@ defs["igTableGetColumnCount"][1]["call_args"] = "()" defs["igTableGetColumnCount"][1]["cimguiname"] = "igTableGetColumnCount" defs["igTableGetColumnCount"][1]["defaults"] = {} defs["igTableGetColumnCount"][1]["funcname"] = "TableGetColumnCount" -defs["igTableGetColumnCount"][1]["location"] = "imgui:767" +defs["igTableGetColumnCount"][1]["location"] = "imgui:765" defs["igTableGetColumnCount"][1]["namespace"] = "ImGui" defs["igTableGetColumnCount"][1]["ov_cimguiname"] = "igTableGetColumnCount" defs["igTableGetColumnCount"][1]["ret"] = "int" @@ -13653,7 +13973,7 @@ defs["igTableGetColumnFlags"][1]["cimguiname"] = "igTableGetColumnFlags" defs["igTableGetColumnFlags"][1]["defaults"] = {} defs["igTableGetColumnFlags"][1]["defaults"]["column_n"] = "-1" defs["igTableGetColumnFlags"][1]["funcname"] = "TableGetColumnFlags" -defs["igTableGetColumnFlags"][1]["location"] = "imgui:771" +defs["igTableGetColumnFlags"][1]["location"] = "imgui:769" defs["igTableGetColumnFlags"][1]["namespace"] = "ImGui" defs["igTableGetColumnFlags"][1]["ov_cimguiname"] = "igTableGetColumnFlags" defs["igTableGetColumnFlags"][1]["ret"] = "ImGuiTableColumnFlags" @@ -13669,7 +13989,7 @@ defs["igTableGetColumnIndex"][1]["call_args"] = "()" defs["igTableGetColumnIndex"][1]["cimguiname"] = "igTableGetColumnIndex" defs["igTableGetColumnIndex"][1]["defaults"] = {} defs["igTableGetColumnIndex"][1]["funcname"] = "TableGetColumnIndex" -defs["igTableGetColumnIndex"][1]["location"] = "imgui:768" +defs["igTableGetColumnIndex"][1]["location"] = "imgui:766" defs["igTableGetColumnIndex"][1]["namespace"] = "ImGui" defs["igTableGetColumnIndex"][1]["ov_cimguiname"] = "igTableGetColumnIndex" defs["igTableGetColumnIndex"][1]["ret"] = "int" @@ -13689,7 +14009,7 @@ defs["igTableGetColumnName"][1]["cimguiname"] = "igTableGetColumnName" defs["igTableGetColumnName"][1]["defaults"] = {} defs["igTableGetColumnName"][1]["defaults"]["column_n"] = "-1" defs["igTableGetColumnName"][1]["funcname"] = "TableGetColumnName" -defs["igTableGetColumnName"][1]["location"] = "imgui:770" +defs["igTableGetColumnName"][1]["location"] = "imgui:768" defs["igTableGetColumnName"][1]["namespace"] = "ImGui" defs["igTableGetColumnName"][1]["ov_cimguiname"] = "igTableGetColumnName" defs["igTableGetColumnName"][1]["ret"] = "const char*" @@ -13705,7 +14025,7 @@ defs["igTableGetRowIndex"][1]["call_args"] = "()" defs["igTableGetRowIndex"][1]["cimguiname"] = "igTableGetRowIndex" defs["igTableGetRowIndex"][1]["defaults"] = {} defs["igTableGetRowIndex"][1]["funcname"] = "TableGetRowIndex" -defs["igTableGetRowIndex"][1]["location"] = "imgui:769" +defs["igTableGetRowIndex"][1]["location"] = "imgui:767" defs["igTableGetRowIndex"][1]["namespace"] = "ImGui" defs["igTableGetRowIndex"][1]["ov_cimguiname"] = "igTableGetRowIndex" defs["igTableGetRowIndex"][1]["ret"] = "int" @@ -13721,7 +14041,7 @@ defs["igTableGetSortSpecs"][1]["call_args"] = "()" defs["igTableGetSortSpecs"][1]["cimguiname"] = "igTableGetSortSpecs" defs["igTableGetSortSpecs"][1]["defaults"] = {} defs["igTableGetSortSpecs"][1]["funcname"] = "TableGetSortSpecs" -defs["igTableGetSortSpecs"][1]["location"] = "imgui:763" +defs["igTableGetSortSpecs"][1]["location"] = "imgui:764" defs["igTableGetSortSpecs"][1]["namespace"] = "ImGui" defs["igTableGetSortSpecs"][1]["ov_cimguiname"] = "igTableGetSortSpecs" defs["igTableGetSortSpecs"][1]["ret"] = "ImGuiTableSortSpecs*" @@ -13740,7 +14060,7 @@ defs["igTableHeader"][1]["call_args"] = "(label)" defs["igTableHeader"][1]["cimguiname"] = "igTableHeader" defs["igTableHeader"][1]["defaults"] = {} defs["igTableHeader"][1]["funcname"] = "TableHeader" -defs["igTableHeader"][1]["location"] = "imgui:755" +defs["igTableHeader"][1]["location"] = "imgui:756" defs["igTableHeader"][1]["namespace"] = "ImGui" defs["igTableHeader"][1]["ov_cimguiname"] = "igTableHeader" defs["igTableHeader"][1]["ret"] = "void" @@ -13756,7 +14076,7 @@ defs["igTableHeadersRow"][1]["call_args"] = "()" defs["igTableHeadersRow"][1]["cimguiname"] = "igTableHeadersRow" defs["igTableHeadersRow"][1]["defaults"] = {} defs["igTableHeadersRow"][1]["funcname"] = "TableHeadersRow" -defs["igTableHeadersRow"][1]["location"] = "imgui:754" +defs["igTableHeadersRow"][1]["location"] = "imgui:755" defs["igTableHeadersRow"][1]["namespace"] = "ImGui" defs["igTableHeadersRow"][1]["ov_cimguiname"] = "igTableHeadersRow" defs["igTableHeadersRow"][1]["ret"] = "void" @@ -13772,7 +14092,7 @@ defs["igTableNextColumn"][1]["call_args"] = "()" defs["igTableNextColumn"][1]["cimguiname"] = "igTableNextColumn" defs["igTableNextColumn"][1]["defaults"] = {} defs["igTableNextColumn"][1]["funcname"] = "TableNextColumn" -defs["igTableNextColumn"][1]["location"] = "imgui:741" +defs["igTableNextColumn"][1]["location"] = "imgui:742" defs["igTableNextColumn"][1]["namespace"] = "ImGui" defs["igTableNextColumn"][1]["ov_cimguiname"] = "igTableNextColumn" defs["igTableNextColumn"][1]["ret"] = "bool" @@ -13796,7 +14116,7 @@ defs["igTableNextRow"][1]["defaults"] = {} defs["igTableNextRow"][1]["defaults"]["min_row_height"] = "0.0f" defs["igTableNextRow"][1]["defaults"]["row_flags"] = "0" defs["igTableNextRow"][1]["funcname"] = "TableNextRow" -defs["igTableNextRow"][1]["location"] = "imgui:740" +defs["igTableNextRow"][1]["location"] = "imgui:741" defs["igTableNextRow"][1]["namespace"] = "ImGui" defs["igTableNextRow"][1]["ov_cimguiname"] = "igTableNextRow" defs["igTableNextRow"][1]["ret"] = "void" @@ -13822,7 +14142,7 @@ defs["igTableSetBgColor"][1]["cimguiname"] = "igTableSetBgColor" defs["igTableSetBgColor"][1]["defaults"] = {} defs["igTableSetBgColor"][1]["defaults"]["column_n"] = "-1" defs["igTableSetBgColor"][1]["funcname"] = "TableSetBgColor" -defs["igTableSetBgColor"][1]["location"] = "imgui:773" +defs["igTableSetBgColor"][1]["location"] = "imgui:771" defs["igTableSetBgColor"][1]["namespace"] = "ImGui" defs["igTableSetBgColor"][1]["ov_cimguiname"] = "igTableSetBgColor" defs["igTableSetBgColor"][1]["ret"] = "void" @@ -13844,7 +14164,7 @@ defs["igTableSetColumnEnabled"][1]["call_args"] = "(column_n,v)" defs["igTableSetColumnEnabled"][1]["cimguiname"] = "igTableSetColumnEnabled" defs["igTableSetColumnEnabled"][1]["defaults"] = {} defs["igTableSetColumnEnabled"][1]["funcname"] = "TableSetColumnEnabled" -defs["igTableSetColumnEnabled"][1]["location"] = "imgui:772" +defs["igTableSetColumnEnabled"][1]["location"] = "imgui:770" defs["igTableSetColumnEnabled"][1]["namespace"] = "ImGui" defs["igTableSetColumnEnabled"][1]["ov_cimguiname"] = "igTableSetColumnEnabled" defs["igTableSetColumnEnabled"][1]["ret"] = "void" @@ -13863,7 +14183,7 @@ defs["igTableSetColumnIndex"][1]["call_args"] = "(column_n)" defs["igTableSetColumnIndex"][1]["cimguiname"] = "igTableSetColumnIndex" defs["igTableSetColumnIndex"][1]["defaults"] = {} defs["igTableSetColumnIndex"][1]["funcname"] = "TableSetColumnIndex" -defs["igTableSetColumnIndex"][1]["location"] = "imgui:742" +defs["igTableSetColumnIndex"][1]["location"] = "imgui:743" defs["igTableSetColumnIndex"][1]["namespace"] = "ImGui" defs["igTableSetColumnIndex"][1]["ov_cimguiname"] = "igTableSetColumnIndex" defs["igTableSetColumnIndex"][1]["ret"] = "bool" @@ -13894,7 +14214,7 @@ defs["igTableSetupColumn"][1]["defaults"]["flags"] = "0" defs["igTableSetupColumn"][1]["defaults"]["init_width_or_weight"] = "0.0f" defs["igTableSetupColumn"][1]["defaults"]["user_id"] = "0" defs["igTableSetupColumn"][1]["funcname"] = "TableSetupColumn" -defs["igTableSetupColumn"][1]["location"] = "imgui:752" +defs["igTableSetupColumn"][1]["location"] = "imgui:753" defs["igTableSetupColumn"][1]["namespace"] = "ImGui" defs["igTableSetupColumn"][1]["ov_cimguiname"] = "igTableSetupColumn" defs["igTableSetupColumn"][1]["ret"] = "void" @@ -13916,7 +14236,7 @@ defs["igTableSetupScrollFreeze"][1]["call_args"] = "(cols,rows)" defs["igTableSetupScrollFreeze"][1]["cimguiname"] = "igTableSetupScrollFreeze" defs["igTableSetupScrollFreeze"][1]["defaults"] = {} defs["igTableSetupScrollFreeze"][1]["funcname"] = "TableSetupScrollFreeze" -defs["igTableSetupScrollFreeze"][1]["location"] = "imgui:753" +defs["igTableSetupScrollFreeze"][1]["location"] = "imgui:754" defs["igTableSetupScrollFreeze"][1]["namespace"] = "ImGui" defs["igTableSetupScrollFreeze"][1]["ov_cimguiname"] = "igTableSetupScrollFreeze" defs["igTableSetupScrollFreeze"][1]["ret"] = "void" @@ -13939,7 +14259,7 @@ defs["igText"][1]["cimguiname"] = "igText" defs["igText"][1]["defaults"] = {} defs["igText"][1]["funcname"] = "Text" defs["igText"][1]["isvararg"] = "...)" -defs["igText"][1]["location"] = "imgui:486" +defs["igText"][1]["location"] = "imgui:484" defs["igText"][1]["namespace"] = "ImGui" defs["igText"][1]["ov_cimguiname"] = "igText" defs["igText"][1]["ret"] = "void" @@ -13965,7 +14285,7 @@ defs["igTextColored"][1]["cimguiname"] = "igTextColored" defs["igTextColored"][1]["defaults"] = {} defs["igTextColored"][1]["funcname"] = "TextColored" defs["igTextColored"][1]["isvararg"] = "...)" -defs["igTextColored"][1]["location"] = "imgui:488" +defs["igTextColored"][1]["location"] = "imgui:486" defs["igTextColored"][1]["namespace"] = "ImGui" defs["igTextColored"][1]["ov_cimguiname"] = "igTextColored" defs["igTextColored"][1]["ret"] = "void" @@ -13990,7 +14310,7 @@ defs["igTextColoredV"][1]["call_args"] = "(col,fmt,args)" defs["igTextColoredV"][1]["cimguiname"] = "igTextColoredV" defs["igTextColoredV"][1]["defaults"] = {} defs["igTextColoredV"][1]["funcname"] = "TextColoredV" -defs["igTextColoredV"][1]["location"] = "imgui:489" +defs["igTextColoredV"][1]["location"] = "imgui:487" defs["igTextColoredV"][1]["namespace"] = "ImGui" defs["igTextColoredV"][1]["ov_cimguiname"] = "igTextColoredV" defs["igTextColoredV"][1]["ret"] = "void" @@ -14013,7 +14333,7 @@ defs["igTextDisabled"][1]["cimguiname"] = "igTextDisabled" defs["igTextDisabled"][1]["defaults"] = {} defs["igTextDisabled"][1]["funcname"] = "TextDisabled" defs["igTextDisabled"][1]["isvararg"] = "...)" -defs["igTextDisabled"][1]["location"] = "imgui:490" +defs["igTextDisabled"][1]["location"] = "imgui:488" defs["igTextDisabled"][1]["namespace"] = "ImGui" defs["igTextDisabled"][1]["ov_cimguiname"] = "igTextDisabled" defs["igTextDisabled"][1]["ret"] = "void" @@ -14035,7 +14355,7 @@ defs["igTextDisabledV"][1]["call_args"] = "(fmt,args)" defs["igTextDisabledV"][1]["cimguiname"] = "igTextDisabledV" defs["igTextDisabledV"][1]["defaults"] = {} defs["igTextDisabledV"][1]["funcname"] = "TextDisabledV" -defs["igTextDisabledV"][1]["location"] = "imgui:491" +defs["igTextDisabledV"][1]["location"] = "imgui:489" defs["igTextDisabledV"][1]["namespace"] = "ImGui" defs["igTextDisabledV"][1]["ov_cimguiname"] = "igTextDisabledV" defs["igTextDisabledV"][1]["ret"] = "void" @@ -14058,7 +14378,7 @@ defs["igTextUnformatted"][1]["cimguiname"] = "igTextUnformatted" defs["igTextUnformatted"][1]["defaults"] = {} defs["igTextUnformatted"][1]["defaults"]["text_end"] = "NULL" defs["igTextUnformatted"][1]["funcname"] = "TextUnformatted" -defs["igTextUnformatted"][1]["location"] = "imgui:485" +defs["igTextUnformatted"][1]["location"] = "imgui:483" defs["igTextUnformatted"][1]["namespace"] = "ImGui" defs["igTextUnformatted"][1]["ov_cimguiname"] = "igTextUnformatted" defs["igTextUnformatted"][1]["ret"] = "void" @@ -14080,7 +14400,7 @@ defs["igTextV"][1]["call_args"] = "(fmt,args)" defs["igTextV"][1]["cimguiname"] = "igTextV" defs["igTextV"][1]["defaults"] = {} defs["igTextV"][1]["funcname"] = "TextV" -defs["igTextV"][1]["location"] = "imgui:487" +defs["igTextV"][1]["location"] = "imgui:485" defs["igTextV"][1]["namespace"] = "ImGui" defs["igTextV"][1]["ov_cimguiname"] = "igTextV" defs["igTextV"][1]["ret"] = "void" @@ -14103,7 +14423,7 @@ defs["igTextWrapped"][1]["cimguiname"] = "igTextWrapped" defs["igTextWrapped"][1]["defaults"] = {} defs["igTextWrapped"][1]["funcname"] = "TextWrapped" defs["igTextWrapped"][1]["isvararg"] = "...)" -defs["igTextWrapped"][1]["location"] = "imgui:492" +defs["igTextWrapped"][1]["location"] = "imgui:490" defs["igTextWrapped"][1]["namespace"] = "ImGui" defs["igTextWrapped"][1]["ov_cimguiname"] = "igTextWrapped" defs["igTextWrapped"][1]["ret"] = "void" @@ -14125,7 +14445,7 @@ defs["igTextWrappedV"][1]["call_args"] = "(fmt,args)" defs["igTextWrappedV"][1]["cimguiname"] = "igTextWrappedV" defs["igTextWrappedV"][1]["defaults"] = {} defs["igTextWrappedV"][1]["funcname"] = "TextWrappedV" -defs["igTextWrappedV"][1]["location"] = "imgui:493" +defs["igTextWrappedV"][1]["location"] = "imgui:491" defs["igTextWrappedV"][1]["namespace"] = "ImGui" defs["igTextWrappedV"][1]["ov_cimguiname"] = "igTextWrappedV" defs["igTextWrappedV"][1]["ret"] = "void" @@ -14144,9 +14464,9 @@ defs["igTreeNode"][1]["call_args"] = "(label)" defs["igTreeNode"][1]["cimguiname"] = "igTreeNode" defs["igTreeNode"][1]["defaults"] = {} defs["igTreeNode"][1]["funcname"] = "TreeNode" -defs["igTreeNode"][1]["location"] = "imgui:600" +defs["igTreeNode"][1]["location"] = "imgui:602" defs["igTreeNode"][1]["namespace"] = "ImGui" -defs["igTreeNode"][1]["ov_cimguiname"] = "igTreeNodeStr" +defs["igTreeNode"][1]["ov_cimguiname"] = "igTreeNode_Str" defs["igTreeNode"][1]["ret"] = "bool" defs["igTreeNode"][1]["signature"] = "(const char*)" defs["igTreeNode"][1]["stname"] = "" @@ -14168,9 +14488,9 @@ defs["igTreeNode"][2]["cimguiname"] = "igTreeNode" defs["igTreeNode"][2]["defaults"] = {} defs["igTreeNode"][2]["funcname"] = "TreeNode" defs["igTreeNode"][2]["isvararg"] = "...)" -defs["igTreeNode"][2]["location"] = "imgui:601" +defs["igTreeNode"][2]["location"] = "imgui:603" defs["igTreeNode"][2]["namespace"] = "ImGui" -defs["igTreeNode"][2]["ov_cimguiname"] = "igTreeNodeStrStr" +defs["igTreeNode"][2]["ov_cimguiname"] = "igTreeNode_StrStr" defs["igTreeNode"][2]["ret"] = "bool" defs["igTreeNode"][2]["signature"] = "(const char*,const char*,...)" defs["igTreeNode"][2]["stname"] = "" @@ -14192,9 +14512,9 @@ defs["igTreeNode"][3]["cimguiname"] = "igTreeNode" defs["igTreeNode"][3]["defaults"] = {} defs["igTreeNode"][3]["funcname"] = "TreeNode" defs["igTreeNode"][3]["isvararg"] = "...)" -defs["igTreeNode"][3]["location"] = "imgui:602" +defs["igTreeNode"][3]["location"] = "imgui:604" defs["igTreeNode"][3]["namespace"] = "ImGui" -defs["igTreeNode"][3]["ov_cimguiname"] = "igTreeNodePtr" +defs["igTreeNode"][3]["ov_cimguiname"] = "igTreeNode_Ptr" defs["igTreeNode"][3]["ret"] = "bool" defs["igTreeNode"][3]["signature"] = "(const void*,const char*,...)" defs["igTreeNode"][3]["stname"] = "" @@ -14217,9 +14537,9 @@ defs["igTreeNodeEx"][1]["cimguiname"] = "igTreeNodeEx" defs["igTreeNodeEx"][1]["defaults"] = {} defs["igTreeNodeEx"][1]["defaults"]["flags"] = "0" defs["igTreeNodeEx"][1]["funcname"] = "TreeNodeEx" -defs["igTreeNodeEx"][1]["location"] = "imgui:605" +defs["igTreeNodeEx"][1]["location"] = "imgui:607" defs["igTreeNodeEx"][1]["namespace"] = "ImGui" -defs["igTreeNodeEx"][1]["ov_cimguiname"] = "igTreeNodeExStr" +defs["igTreeNodeEx"][1]["ov_cimguiname"] = "igTreeNodeEx_Str" defs["igTreeNodeEx"][1]["ret"] = "bool" defs["igTreeNodeEx"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags)" defs["igTreeNodeEx"][1]["stname"] = "" @@ -14244,9 +14564,9 @@ defs["igTreeNodeEx"][2]["cimguiname"] = "igTreeNodeEx" defs["igTreeNodeEx"][2]["defaults"] = {} defs["igTreeNodeEx"][2]["funcname"] = "TreeNodeEx" defs["igTreeNodeEx"][2]["isvararg"] = "...)" -defs["igTreeNodeEx"][2]["location"] = "imgui:606" +defs["igTreeNodeEx"][2]["location"] = "imgui:608" defs["igTreeNodeEx"][2]["namespace"] = "ImGui" -defs["igTreeNodeEx"][2]["ov_cimguiname"] = "igTreeNodeExStrStr" +defs["igTreeNodeEx"][2]["ov_cimguiname"] = "igTreeNodeEx_StrStr" defs["igTreeNodeEx"][2]["ret"] = "bool" defs["igTreeNodeEx"][2]["signature"] = "(const char*,ImGuiTreeNodeFlags,const char*,...)" defs["igTreeNodeEx"][2]["stname"] = "" @@ -14271,9 +14591,9 @@ defs["igTreeNodeEx"][3]["cimguiname"] = "igTreeNodeEx" defs["igTreeNodeEx"][3]["defaults"] = {} defs["igTreeNodeEx"][3]["funcname"] = "TreeNodeEx" defs["igTreeNodeEx"][3]["isvararg"] = "...)" -defs["igTreeNodeEx"][3]["location"] = "imgui:607" +defs["igTreeNodeEx"][3]["location"] = "imgui:609" defs["igTreeNodeEx"][3]["namespace"] = "ImGui" -defs["igTreeNodeEx"][3]["ov_cimguiname"] = "igTreeNodeExPtr" +defs["igTreeNodeEx"][3]["ov_cimguiname"] = "igTreeNodeEx_Ptr" defs["igTreeNodeEx"][3]["ret"] = "bool" defs["igTreeNodeEx"][3]["signature"] = "(const void*,ImGuiTreeNodeFlags,const char*,...)" defs["igTreeNodeEx"][3]["stname"] = "" @@ -14301,9 +14621,9 @@ defs["igTreeNodeExV"][1]["call_args"] = "(str_id,flags,fmt,args)" defs["igTreeNodeExV"][1]["cimguiname"] = "igTreeNodeExV" defs["igTreeNodeExV"][1]["defaults"] = {} defs["igTreeNodeExV"][1]["funcname"] = "TreeNodeExV" -defs["igTreeNodeExV"][1]["location"] = "imgui:608" +defs["igTreeNodeExV"][1]["location"] = "imgui:610" defs["igTreeNodeExV"][1]["namespace"] = "ImGui" -defs["igTreeNodeExV"][1]["ov_cimguiname"] = "igTreeNodeExVStr" +defs["igTreeNodeExV"][1]["ov_cimguiname"] = "igTreeNodeExV_Str" defs["igTreeNodeExV"][1]["ret"] = "bool" defs["igTreeNodeExV"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags,const char*,va_list)" defs["igTreeNodeExV"][1]["stname"] = "" @@ -14327,9 +14647,9 @@ defs["igTreeNodeExV"][2]["call_args"] = "(ptr_id,flags,fmt,args)" defs["igTreeNodeExV"][2]["cimguiname"] = "igTreeNodeExV" defs["igTreeNodeExV"][2]["defaults"] = {} defs["igTreeNodeExV"][2]["funcname"] = "TreeNodeExV" -defs["igTreeNodeExV"][2]["location"] = "imgui:609" +defs["igTreeNodeExV"][2]["location"] = "imgui:611" defs["igTreeNodeExV"][2]["namespace"] = "ImGui" -defs["igTreeNodeExV"][2]["ov_cimguiname"] = "igTreeNodeExVPtr" +defs["igTreeNodeExV"][2]["ov_cimguiname"] = "igTreeNodeExV_Ptr" defs["igTreeNodeExV"][2]["ret"] = "bool" defs["igTreeNodeExV"][2]["signature"] = "(const void*,ImGuiTreeNodeFlags,const char*,va_list)" defs["igTreeNodeExV"][2]["stname"] = "" @@ -14353,9 +14673,9 @@ defs["igTreeNodeV"][1]["call_args"] = "(str_id,fmt,args)" defs["igTreeNodeV"][1]["cimguiname"] = "igTreeNodeV" defs["igTreeNodeV"][1]["defaults"] = {} defs["igTreeNodeV"][1]["funcname"] = "TreeNodeV" -defs["igTreeNodeV"][1]["location"] = "imgui:603" +defs["igTreeNodeV"][1]["location"] = "imgui:605" defs["igTreeNodeV"][1]["namespace"] = "ImGui" -defs["igTreeNodeV"][1]["ov_cimguiname"] = "igTreeNodeVStr" +defs["igTreeNodeV"][1]["ov_cimguiname"] = "igTreeNodeV_Str" defs["igTreeNodeV"][1]["ret"] = "bool" defs["igTreeNodeV"][1]["signature"] = "(const char*,const char*,va_list)" defs["igTreeNodeV"][1]["stname"] = "" @@ -14376,9 +14696,9 @@ defs["igTreeNodeV"][2]["call_args"] = "(ptr_id,fmt,args)" defs["igTreeNodeV"][2]["cimguiname"] = "igTreeNodeV" defs["igTreeNodeV"][2]["defaults"] = {} defs["igTreeNodeV"][2]["funcname"] = "TreeNodeV" -defs["igTreeNodeV"][2]["location"] = "imgui:604" +defs["igTreeNodeV"][2]["location"] = "imgui:606" defs["igTreeNodeV"][2]["namespace"] = "ImGui" -defs["igTreeNodeV"][2]["ov_cimguiname"] = "igTreeNodeVPtr" +defs["igTreeNodeV"][2]["ov_cimguiname"] = "igTreeNodeV_Ptr" defs["igTreeNodeV"][2]["ret"] = "bool" defs["igTreeNodeV"][2]["signature"] = "(const void*,const char*,va_list)" defs["igTreeNodeV"][2]["stname"] = "" @@ -14393,7 +14713,7 @@ defs["igTreePop"][1]["call_args"] = "()" defs["igTreePop"][1]["cimguiname"] = "igTreePop" defs["igTreePop"][1]["defaults"] = {} defs["igTreePop"][1]["funcname"] = "TreePop" -defs["igTreePop"][1]["location"] = "imgui:612" +defs["igTreePop"][1]["location"] = "imgui:614" defs["igTreePop"][1]["namespace"] = "ImGui" defs["igTreePop"][1]["ov_cimguiname"] = "igTreePop" defs["igTreePop"][1]["ret"] = "void" @@ -14412,9 +14732,9 @@ defs["igTreePush"][1]["call_args"] = "(str_id)" defs["igTreePush"][1]["cimguiname"] = "igTreePush" defs["igTreePush"][1]["defaults"] = {} defs["igTreePush"][1]["funcname"] = "TreePush" -defs["igTreePush"][1]["location"] = "imgui:610" +defs["igTreePush"][1]["location"] = "imgui:612" defs["igTreePush"][1]["namespace"] = "ImGui" -defs["igTreePush"][1]["ov_cimguiname"] = "igTreePushStr" +defs["igTreePush"][1]["ov_cimguiname"] = "igTreePush_Str" defs["igTreePush"][1]["ret"] = "void" defs["igTreePush"][1]["signature"] = "(const char*)" defs["igTreePush"][1]["stname"] = "" @@ -14424,15 +14744,14 @@ defs["igTreePush"][2]["argsT"] = {} defs["igTreePush"][2]["argsT"][1] = {} defs["igTreePush"][2]["argsT"][1]["name"] = "ptr_id" defs["igTreePush"][2]["argsT"][1]["type"] = "const void*" -defs["igTreePush"][2]["argsoriginal"] = "(const void* ptr_id=((void*)0))" +defs["igTreePush"][2]["argsoriginal"] = "(const void* ptr_id)" defs["igTreePush"][2]["call_args"] = "(ptr_id)" defs["igTreePush"][2]["cimguiname"] = "igTreePush" defs["igTreePush"][2]["defaults"] = {} -defs["igTreePush"][2]["defaults"]["ptr_id"] = "NULL" defs["igTreePush"][2]["funcname"] = "TreePush" -defs["igTreePush"][2]["location"] = "imgui:611" +defs["igTreePush"][2]["location"] = "imgui:613" defs["igTreePush"][2]["namespace"] = "ImGui" -defs["igTreePush"][2]["ov_cimguiname"] = "igTreePushPtr" +defs["igTreePush"][2]["ov_cimguiname"] = "igTreePush_Ptr" defs["igTreePush"][2]["ret"] = "void" defs["igTreePush"][2]["signature"] = "(const void*)" defs["igTreePush"][2]["stname"] = "" @@ -14451,7 +14770,7 @@ defs["igUnindent"][1]["cimguiname"] = "igUnindent" defs["igUnindent"][1]["defaults"] = {} defs["igUnindent"][1]["defaults"]["indent_w"] = "0.0f" defs["igUnindent"][1]["funcname"] = "Unindent" -defs["igUnindent"][1]["location"] = "imgui:446" +defs["igUnindent"][1]["location"] = "imgui:444" defs["igUnindent"][1]["namespace"] = "ImGui" defs["igUnindent"][1]["ov_cimguiname"] = "igUnindent" defs["igUnindent"][1]["ret"] = "void" @@ -14490,7 +14809,7 @@ defs["igVSliderFloat"][1]["defaults"] = {} defs["igVSliderFloat"][1]["defaults"]["flags"] = "0" defs["igVSliderFloat"][1]["defaults"]["format"] = "\"%.3f\"" defs["igVSliderFloat"][1]["funcname"] = "VSliderFloat" -defs["igVSliderFloat"][1]["location"] = "imgui:566" +defs["igVSliderFloat"][1]["location"] = "imgui:568" defs["igVSliderFloat"][1]["namespace"] = "ImGui" defs["igVSliderFloat"][1]["ov_cimguiname"] = "igVSliderFloat" defs["igVSliderFloat"][1]["ret"] = "bool" @@ -14529,7 +14848,7 @@ defs["igVSliderInt"][1]["defaults"] = {} defs["igVSliderInt"][1]["defaults"]["flags"] = "0" defs["igVSliderInt"][1]["defaults"]["format"] = "\"%d\"" defs["igVSliderInt"][1]["funcname"] = "VSliderInt" -defs["igVSliderInt"][1]["location"] = "imgui:567" +defs["igVSliderInt"][1]["location"] = "imgui:569" defs["igVSliderInt"][1]["namespace"] = "ImGui" defs["igVSliderInt"][1]["ov_cimguiname"] = "igVSliderInt" defs["igVSliderInt"][1]["ret"] = "bool" @@ -14571,7 +14890,7 @@ defs["igVSliderScalar"][1]["defaults"] = {} defs["igVSliderScalar"][1]["defaults"]["flags"] = "0" defs["igVSliderScalar"][1]["defaults"]["format"] = "NULL" defs["igVSliderScalar"][1]["funcname"] = "VSliderScalar" -defs["igVSliderScalar"][1]["location"] = "imgui:568" +defs["igVSliderScalar"][1]["location"] = "imgui:570" defs["igVSliderScalar"][1]["namespace"] = "ImGui" defs["igVSliderScalar"][1]["ov_cimguiname"] = "igVSliderScalar" defs["igVSliderScalar"][1]["ret"] = "bool" @@ -14593,9 +14912,9 @@ defs["igValue"][1]["call_args"] = "(prefix,b)" defs["igValue"][1]["cimguiname"] = "igValue" defs["igValue"][1]["defaults"] = {} defs["igValue"][1]["funcname"] = "Value" -defs["igValue"][1]["location"] = "imgui:644" +defs["igValue"][1]["location"] = "imgui:646" defs["igValue"][1]["namespace"] = "ImGui" -defs["igValue"][1]["ov_cimguiname"] = "igValueBool" +defs["igValue"][1]["ov_cimguiname"] = "igValue_Bool" defs["igValue"][1]["ret"] = "void" defs["igValue"][1]["signature"] = "(const char*,bool)" defs["igValue"][1]["stname"] = "" @@ -14613,9 +14932,9 @@ defs["igValue"][2]["call_args"] = "(prefix,v)" defs["igValue"][2]["cimguiname"] = "igValue" defs["igValue"][2]["defaults"] = {} defs["igValue"][2]["funcname"] = "Value" -defs["igValue"][2]["location"] = "imgui:645" +defs["igValue"][2]["location"] = "imgui:647" defs["igValue"][2]["namespace"] = "ImGui" -defs["igValue"][2]["ov_cimguiname"] = "igValueInt" +defs["igValue"][2]["ov_cimguiname"] = "igValue_Int" defs["igValue"][2]["ret"] = "void" defs["igValue"][2]["signature"] = "(const char*,int)" defs["igValue"][2]["stname"] = "" @@ -14633,9 +14952,9 @@ defs["igValue"][3]["call_args"] = "(prefix,v)" defs["igValue"][3]["cimguiname"] = "igValue" defs["igValue"][3]["defaults"] = {} defs["igValue"][3]["funcname"] = "Value" -defs["igValue"][3]["location"] = "imgui:646" +defs["igValue"][3]["location"] = "imgui:648" defs["igValue"][3]["namespace"] = "ImGui" -defs["igValue"][3]["ov_cimguiname"] = "igValueUint" +defs["igValue"][3]["ov_cimguiname"] = "igValue_Uint" defs["igValue"][3]["ret"] = "void" defs["igValue"][3]["signature"] = "(const char*,unsigned int)" defs["igValue"][3]["stname"] = "" @@ -14657,9 +14976,9 @@ defs["igValue"][4]["cimguiname"] = "igValue" defs["igValue"][4]["defaults"] = {} defs["igValue"][4]["defaults"]["float_format"] = "NULL" defs["igValue"][4]["funcname"] = "Value" -defs["igValue"][4]["location"] = "imgui:647" +defs["igValue"][4]["location"] = "imgui:649" defs["igValue"][4]["namespace"] = "ImGui" -defs["igValue"][4]["ov_cimguiname"] = "igValueFloat" +defs["igValue"][4]["ov_cimguiname"] = "igValue_Float" defs["igValue"][4]["ret"] = "void" defs["igValue"][4]["signature"] = "(const char*,float,const char*)" defs["igValue"][4]["stname"] = "" diff --git a/imgui-sys/third-party/imgui-master/imgui/LICENSE.txt b/imgui-sys/third-party/imgui-master/imgui/LICENSE.txt index 780533dcb..4023e0caa 100644 --- a/imgui-sys/third-party/imgui-master/imgui/LICENSE.txt +++ b/imgui-sys/third-party/imgui-master/imgui/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2021 Omar Cornut +Copyright (c) 2014-2022 Omar Cornut Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/imgui-sys/third-party/imgui-master/imgui/imconfig.h b/imgui-sys/third-party/imgui-master/imgui/imconfig.h index 7082c5507..ed265082d 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imconfig.h +++ b/imgui-sys/third-party/imgui-master/imgui/imconfig.h @@ -28,12 +28,13 @@ //---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to avoid using soon-to-be obsolete function/names. //#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS +//#define IMGUI_DISABLE_OBSOLETE_KEYIO // 1.87: disable legacy io.KeyMap[]+io.KeysDown[] in favor io.AddKeyEvent(). This will be folded into IMGUI_DISABLE_OBSOLETE_FUNCTIONS in a few versions. -//---- Disable all of Dear ImGui or don't implement standard windows. -// It is very strongly recommended to NOT disable the demo windows during development. Please read comments in imgui_demo.cpp. +//---- Disable all of Dear ImGui or don't implement standard windows/tools. +// It is very strongly recommended to NOT disable the demo windows and debug tool during development. They are extremely useful in day to day work. Please read comments in imgui_demo.cpp. //#define IMGUI_DISABLE // Disable everything: all headers and source files will be empty. -//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. Not recommended. -//#define IMGUI_DISABLE_METRICS_WINDOW // Disable metrics/debugger and other debug tools: ShowMetricsWindow() and ShowStackToolWindow() will be empty. +//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. +//#define IMGUI_DISABLE_DEBUG_TOOLS // Disable metrics/debugger and other debug tools: ShowMetricsWindow(), ShowDebugLogWindow() and ShowStackToolWindow() will be empty (this was called IMGUI_DISABLE_METRICS_WINDOW before 1.88). //---- Don't implement some functions to reduce linkage requirements. //#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. (user32.lib/.a, kernel32.lib/.a) @@ -61,12 +62,13 @@ // By default the embedded implementations are declared static and not available outside of Dear ImGui sources files. //#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" //#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_STB_SPRINTF_FILENAME "my_folder/stb_sprintf.h" // only used if enabled //#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION //#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION -//---- Use stb_printf's faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined) -// Requires 'stb_sprintf.h' to be available in the include path. Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by STB sprintf. -// #define IMGUI_USE_STB_SPRINTF +//---- Use stb_sprintf.h for a faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined) +// Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by stb_sprintf.h. +//#define IMGUI_USE_STB_SPRINTF //---- Use FreeType to build and rasterize the font atlas (instead of stb_truetype which is embedded by default in Dear ImGui) // Requires FreeType headers to be available in the include path. Requires program to be compiled with 'misc/freetype/imgui_freetype.cpp' (in this repository) + the FreeType library (not provided). @@ -80,12 +82,12 @@ //---- Define constructor and implicit cast operators to convert back<>forth between your math types and ImVec2/ImVec4. // This will be inlined as part of ImVec2 and ImVec4 class declarations. /* -#define IM_VEC2_CLASS_EXTRA \ - ImVec2(const MyVec2& f) { x = f.x; y = f.y; } \ +#define IM_VEC2_CLASS_EXTRA \ + constexpr ImVec2(const MyVec2& f) : x(f.x), y(f.y) {} \ operator MyVec2() const { return MyVec2(x,y); } -#define IM_VEC4_CLASS_EXTRA \ - ImVec4(const MyVec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \ +#define IM_VEC4_CLASS_EXTRA \ + constexpr ImVec4(const MyVec4& f) : x(f.x), y(f.y), z(f.z), w(f.w) {} \ operator MyVec4() const { return MyVec4(x,y,z,w); } */ @@ -106,11 +108,6 @@ //#define IM_DEBUG_BREAK IM_ASSERT(0) //#define IM_DEBUG_BREAK __debugbreak() -//---- Debug Tools: Have the Item Picker break in the ItemAdd() function instead of ItemHoverable(), -// (which comes earlier in the code, will catch a few extra items, allow picking items other than Hovered one.) -// This adds a small runtime cost which is why it is not enabled by default. -//#define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX - //---- Debug Tools: Enable slower asserts //#define IMGUI_DEBUG_PARANOID diff --git a/imgui-sys/third-party/imgui-master/imgui/imgui.cpp b/imgui-sys/third-party/imgui-master/imgui/imgui.cpp index d7653d41f..d17903903 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imgui.cpp +++ b/imgui-sys/third-party/imgui-master/imgui/imgui.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (main code and documentation) // Help: @@ -11,7 +11,7 @@ // - FAQ http://dearimgui.org/faq // - Homepage & latest https://github.com/ocornut/imgui // - Releases & changelog https://github.com/ocornut/imgui/releases -// - Gallery https://github.com/ocornut/imgui/issues/4451 (please post your screenshots/video there!) +// - Gallery https://github.com/ocornut/imgui/issues/5243 (please post your screenshots/video there!) // - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) // - Glossary https://github.com/ocornut/imgui/wiki/Glossary // - Issues & support https://github.com/ocornut/imgui/issues @@ -65,11 +65,12 @@ CODE // [SECTION] MISC HELPERS/UTILITIES (Color functions) // [SECTION] ImGuiStorage // [SECTION] ImGuiTextFilter -// [SECTION] ImGuiTextBuffer +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex // [SECTION] ImGuiListClipper // [SECTION] STYLING // [SECTION] RENDER HELPERS // [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +// [SECTION] INPUTS // [SECTION] ERROR CHECKING // [SECTION] LAYOUT // [SECTION] SCROLLING @@ -79,9 +80,11 @@ CODE // [SECTION] DRAG AND DROP // [SECTION] LOGGING/CAPTURING // [SECTION] SETTINGS -// [SECTION] VIEWPORTS +// [SECTION] LOCALIZATION +// [SECTION] VIEWPORTS, PLATFORM WINDOWS // [SECTION] PLATFORM DEPENDENT HELPERS // [SECTION] METRICS/DEBUGGER WINDOW +// [SECTION] DEBUG LOG WINDOW // [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) */ @@ -100,6 +103,7 @@ CODE - Easy to hack and improve. - Minimize setup and maintenance. - Minimize state storage on user side. + - Minimize state synchronization. - Portable, minimize dependencies, run on target (consoles, phones, etc.). - Efficient runtime and memory consumption. @@ -123,14 +127,13 @@ CODE - Hold SHIFT or use mouse to select text. - CTRL+Left/Right to word jump. - CTRL+Shift+Left/Right to select words. - - CTRL+A our Double-Click to select all. + - CTRL+A or Double-Click to select all. - CTRL+X,CTRL+C,CTRL+V to use OS clipboard/ - CTRL+Z,CTRL+Y to undo/redo. - ESCAPE to revert text to its original value. - - You can apply arithmetic operators +,*,/ on numerical values. Use +- to subtract (because - would set a negative value!) - Controls are automatically adjusted for OSX to match standard OSX text editing operations. - General Keyboard controls: enable with ImGuiConfigFlags_NavEnableKeyboard. - - General Gamepad controls: enable with ImGuiConfigFlags_NavEnableGamepad. See suggested mappings in imgui.h ImGuiNavInput_ + download PNG/PSD at http://dearimgui.org/controls_sheets + - General Gamepad controls: enable with ImGuiConfigFlags_NavEnableGamepad. Download controller mapping PNG/PSD at http://dearimgui.org/controls_sheets PROGRAMMER GUIDE @@ -254,9 +257,9 @@ CODE io.DeltaTime = 1.0f/60.0f; // set the time elapsed since the previous frame (in seconds) io.DisplaySize.x = 1920.0f; // set the current display width io.DisplaySize.y = 1280.0f; // set the current display height here - io.MousePos = my_mouse_pos; // set the mouse position - io.MouseDown[0] = my_mouse_buttons[0]; // set the mouse button states - io.MouseDown[1] = my_mouse_buttons[1]; + io.AddMousePosEvent(mouse_x, mouse_y); // update mouse position + io.AddMouseButtonEvent(0, mouse_b[0]); // update mouse button states + io.AddMouseButtonEvent(1, mouse_b[1]); // update mouse button states // Call NewFrame(), after this point you can use ImGui::* functions anytime // (So you want to try calling NewFrame() as early as you can in your main loop to be able to use Dear ImGui everywhere) @@ -288,12 +291,14 @@ CODE --------------------------------------------- The backends in impl_impl_XXX.cpp files contain many working implementations of a rendering function. - void void MyImGuiRenderFunction(ImDrawData* draw_data) + void MyImGuiRenderFunction(ImDrawData* draw_data) { // TODO: Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled + // TODO: Setup texture sampling state: sample with bilinear filtering (NOT point/nearest filtering). Use 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines;' to allow point/nearest filtering. // TODO: Setup viewport covering draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize // TODO: Setup orthographic projection matrix cover draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize // TODO: Setup shader: vertex { float2 pos, float2 uv, u32 color }, fragment shader sample color from 1 texture, multiply by vertex color. + ImVec2 clip_off = draw_data->DisplayPos; for (int n = 0; n < draw_data->CmdListsCount; n++) { const ImDrawList* cmd_list = draw_data->CmdLists[n]; @@ -308,9 +313,11 @@ CODE } else { - // The texture for the draw call is specified by pcmd->GetTexID(). - // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. - MyEngineBindTexture((MyTexture*)pcmd->GetTexID()); + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; // We are using scissoring to clip some objects. All low-level graphics API should support it. // - If your engine doesn't support scissoring yet, you may ignore this at first. You will get some small glitches @@ -321,14 +328,16 @@ CODE // - In the interest of supporting multi-viewport applications (see 'docking' branch on github), // always subtract draw_data->DisplayPos from clipping bounds to convert them to your viewport space. // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) - ImVec2 pos = draw_data->DisplayPos; - MyEngineScissor((int)(pcmd->ClipRect.x - pos.x), (int)(pcmd->ClipRect.y - pos.y), (int)(pcmd->ClipRect.z - pos.x), (int)(pcmd->ClipRect.w - pos.y)); + MyEngineSetScissor(clip_min.x, clip_min.y, clip_max.x, clip_max.y); + + // The texture for the draw call is specified by pcmd->GetTexID(). + // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. + MyEngineBindTexture((MyTexture*)pcmd->GetTexID()); // Render 'pcmd->ElemCount/3' indexed triangles. // By default the indices ImDrawIdx are 16-bit, you can change them to 32-bit in imconfig.h if your engine doesn't support 16-bit indices. - MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer, vtx_buffer); + MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer + pcmd->IdxOffset, vtx_buffer, pcmd->VtxOffset); } - idx_buffer += pcmd->ElemCount; } } } @@ -337,31 +346,27 @@ CODE USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS ------------------------------------------ - The gamepad/keyboard navigation is fairly functional and keeps being improved. - - Gamepad support is particularly useful to use Dear ImGui on a console system (e.g. PS4, Switch, XB1) without a mouse! - - You can ask questions and report issues at https://github.com/ocornut/imgui/issues/787 + - Gamepad support is particularly useful to use Dear ImGui on a console system (e.g. PlayStation, Switch, Xbox) without a mouse! - The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. - Keyboard: - - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. - NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. - - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), the io.WantCaptureKeyboard flag - will be set. For more advanced uses, you may want to read from: + - Application: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. + - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), + the io.WantCaptureKeyboard flag will be set. For more advanced uses, you may want to read from: - io.NavActive: true when a window is focused and it doesn't have the ImGuiWindowFlags_NoNavInputs flag set. - io.NavVisible: true when the navigation cursor is visible (and usually goes false when mouse is used). - or query focus information with e.g. IsWindowFocused(ImGuiFocusedFlags_AnyWindow), IsItemFocused() etc. functions. Please reach out if you think the game vs navigation input sharing could be improved. - Gamepad: - - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. - - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + fill the io.NavInputs[] fields before calling NewFrame(). - Note that io.NavInputs[] is cleared by EndFrame(). - - See 'enum ImGuiNavInput_' in imgui.h for a description of inputs. For each entry of io.NavInputs[], set the following values: - 0.0f= not held. 1.0f= fully held. Pass intermediate 0.0f..1.0f values for analog triggers/sticks. - - We use a simple >0.0f test for activation testing, and won't attempt to test for a dead-zone. - Your code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). + - Application: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. + - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + call io.AddKeyEvent/AddKeyAnalogEvent() with ImGuiKey_Gamepad_XXX keys. + For analog values (0.0f to 1.0f), backend is responsible to handling a dead-zone and rescaling inputs accordingly. + Backend code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). + - BEFORE 1.87, BACKENDS USED TO WRITE TO io.NavInputs[]. This is now obsolete. Please call io functions instead! - You can download PNG/PSD files depicting the gamepad controls for common controllers at: http://dearimgui.org/controls_sheets - - If you need to share inputs between your game and the imgui parts, the easiest approach is to go all-or-nothing, with a buttons combo - to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. + - If you need to share inputs between your game and the Dear ImGui interface, the easiest approach is to go all-or-nothing, + with a buttons combo to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. - Mouse: - - PS4 users: Consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. + - PS4/PS5 users: Consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. - Consoles/Tablet/Phone users: Consider using a Synergy 1.x server (on your PC) + uSynergy.c (on your console/tablet/phone app) to share your PC mouse/keyboard. - On a TV/console system where readability may be lower or mouse inputs may be awkward, you may want to set the ImGuiConfigFlags_NavEnableSetMousePos flag. Enabling ImGuiConfigFlags_NavEnableSetMousePos + ImGuiBackendFlags_HasSetMousePos instructs dear imgui to move your mouse cursor along with navigation movements. @@ -380,6 +385,74 @@ CODE When you are not sure about an old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files. You can read releases logs https://github.com/ocornut/imgui/releases for more details. + - 2022/10/26 (1.89) - commented out redirecting OpenPopupContextItem() which was briefly the name of OpenPopupOnItemClick() from 1.77 to 1.79. + - 2022/10/12 (1.89) - removed runtime patching of invalid "%f"/"%0.f" format strings for DragInt()/SliderInt(). This was obsoleted in 1.61 (May 2018). See 1.61 changelog for details. + - 2022/09/26 (1.89) - renamed and merged keyboard modifiers key enums and flags into a same set. Kept inline redirection enums (will obsolete). + - ImGuiKey_ModCtrl and ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl + - ImGuiKey_ModShift and ImGuiModFlags_Shift -> ImGuiMod_Shift + - ImGuiKey_ModAlt and ImGuiModFlags_Alt -> ImGuiMod_Alt + - ImGuiKey_ModSuper and ImGuiModFlags_Super -> ImGuiMod_Super + the ImGuiKey_ModXXX were introduced in 1.87 and mostly used by backends. + the ImGuiModFlags_XXX have been exposed in imgui.h but not really used by any public api only by third-party extensions. + exceptionally commenting out the older ImGuiKeyModFlags_XXX names ahead of obsolescence schedule to reduce confusion and because they were not meant to be used anyway. + - 2022/09/12 (1.89) - removed the bizarre legacy default argument for 'TreePush(const void* ptr = NULL)', always pass a pointer value explicitly. NULL/nullptr is ok but require cast, e.g. TreePush((void*)nullptr); + - 2022/09/05 (1.89) - commented out redirecting functions/enums names that were marked obsolete in 1.77 and 1.78 (June 2020): + - DragScalar(), DragScalarN(), DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - SliderScalar(), SliderScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - BeginPopupContextWindow(const char*, ImGuiMouseButton, bool) -> use BeginPopupContextWindow(const char*, ImGuiPopupFlags) + - 2022/09/02 (1.89) - obsoleted using SetCursorPos()/SetCursorScreenPos() to extend parent window/cell boundaries. + this relates to when moving the cursor position beyond current boundaries WITHOUT submitting an item. + - previously this would make the window content size ~200x200: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); + - instead, please submit an item: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); + - alternative: + Begin(...) + Dummy(ImVec2(200,200)) + End(); + - content size is now only extended when submitting an item! + - with '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will now be detected and assert. + - without '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will silently be fixed until we obsolete it. + - 2022/08/03 (1.89) - changed signature of ImageButton() function. Kept redirection function (will obsolete). + - added 'const char* str_id' parameter + removed 'int frame_padding = -1' parameter. + - old signature: bool ImageButton(ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), int frame_padding = -1, ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values. + - had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer. + - new signature: bool ImageButton(const char* str_id, ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - requires an explicit identifier. You may still use e.g. PushID() calls and then pass an empty identifier. + - always uses style.FramePadding for padding, to be consistent with other buttons. You may use PushStyleVar() to alter this. + - 2022/07/08 (1.89) - inputs: removed io.NavInputs[] and ImGuiNavInput enum (following 1.87 changes). + - Official backends from 1.87+ -> no issue. + - Official backends from 1.60 to 1.86 -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need updating! + - Custom backends not writing to io.NavInputs[] -> no issue. + - Custom backends writing to io.NavInputs[] -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need fixing! + - TL;DR: Backends should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values instead of filling io.NavInput[]. + - 2022/06/15 (1.88) - renamed IMGUI_DISABLE_METRICS_WINDOW to IMGUI_DISABLE_DEBUG_TOOLS for correctness. kept support for old define (will obsolete). + - 2022/05/03 (1.88) - backends: osx: removed ImGui_ImplOSX_HandleEvent() from backend API in favor of backend automatically handling event capture. All ImGui_ImplOSX_HandleEvent() calls should be removed as they are now unnecessary. + - 2022/04/05 (1.88) - inputs: renamed ImGuiKeyModFlags to ImGuiModFlags. Kept inline redirection enums (will obsolete). This was never used in public API functions but technically present in imgui.h and ImGuiIO. + - 2022/01/20 (1.87) - inputs: reworded gamepad IO. + - Backend writing to io.NavInputs[] -> backend should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values. + - 2022/01/19 (1.87) - sliders, drags: removed support for legacy arithmetic operators (+,+-,*,/) when inputing text. This doesn't break any api/code but a feature that used to be accessible by end-users (which seemingly no one used). + - 2022/01/17 (1.87) - inputs: reworked mouse IO. + - Backend writing to io.MousePos -> backend should call io.AddMousePosEvent() + - Backend writing to io.MouseDown[] -> backend should call io.AddMouseButtonEvent() + - Backend writing to io.MouseWheel -> backend should call io.AddMouseWheelEvent() + - Backend writing to io.MouseHoveredViewport -> backend should call io.AddMouseViewportEvent() [Docking branch w/ multi-viewports only] + note: for all calls to IO new functions, the Dear ImGui context should be bound/current. + read https://github.com/ocornut/imgui/issues/4921 for details. + - 2022/01/10 (1.87) - inputs: reworked keyboard IO. Removed io.KeyMap[], io.KeysDown[] in favor of calling io.AddKeyEvent(). Removed GetKeyIndex(), now unecessary. All IsKeyXXX() functions now take ImGuiKey values. All features are still functional until IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Read Changelog and Release Notes for details. + - IsKeyPressed(MY_NATIVE_KEY_XXX) -> use IsKeyPressed(ImGuiKey_XXX) + - IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) -> use IsKeyPressed(ImGuiKey_XXX) + - Backend writing to io.KeyMap[],io.KeysDown[] -> backend should call io.AddKeyEvent() (+ call io.SetKeyEventNativeData() if you want legacy user code to stil function with legacy key codes). + - Backend writing to io.KeyCtrl, io.KeyShift.. -> backend should call io.AddKeyEvent() with ImGuiMod_XXX values. *IF YOU PULLED CODE BETWEEN 2021/01/10 and 2021/01/27: We used to have a io.AddKeyModsEvent() function which was now replaced by io.AddKeyEvent() with ImGuiMod_XXX values.* + - one case won't work with backward compatibility: if your custom backend used ImGuiKey as mock native indices (e.g. "io.KeyMap[ImGuiKey_A] = ImGuiKey_A") because those values are now larger than the legacy KeyDown[] array. Will assert. + - inputs: added ImGuiKey_ModCtrl/ImGuiKey_ModShift/ImGuiKey_ModAlt/ImGuiKey_ModSuper values to submit keyboard modifiers using io.AddKeyEvent(), instead of writing directly to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper. + - 2022/01/05 (1.87) - inputs: renamed ImGuiKey_KeyPadEnter to ImGuiKey_KeypadEnter to align with new symbols. Kept redirection enum. + - 2022/01/05 (1.87) - removed io.ImeSetInputScreenPosFn() in favor of more flexible io.SetPlatformImeDataFn(). Removed 'void* io.ImeWindowHandle' in favor of writing to 'void* ImGuiViewport::PlatformHandleRaw'. + - 2022/01/01 (1.87) - commented out redirecting functions/enums names that were marked obsolete in 1.69, 1.70, 1.71, 1.72 (March-July 2019) + - ImGui::SetNextTreeNodeOpen() -> use ImGui::SetNextItemOpen() + - ImGui::GetContentRegionAvailWidth() -> use ImGui::GetContentRegionAvail().x + - ImGui::TreeAdvanceToLabelPos() -> use ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetTreeNodeToLabelSpacing()); + - ImFontAtlas::CustomRect -> use ImFontAtlasCustomRect + - ImGuiColorEditFlags_RGB/HSV/HEX -> use ImGuiColorEditFlags_DisplayRGB/HSV/Hex - 2021/12/20 (1.86) - backends: removed obsolete Marmalade backend (imgui_impl_marmalade.cpp) + example. Find last supported version at https://github.com/ocornut/imgui/wiki/Bindings - 2021/11/04 (1.86) - removed CalcListClipping() function. Prefer using ImGuiListClipper which can return non-contiguous ranges. Please open an issue if you think you really need this function. - 2021/08/23 (1.85) - removed GetWindowContentRegionWidth() function. keep inline redirection helper. can use 'GetWindowContentRegionMax().x - GetWindowContentRegionMin().x' instead for generally 'GetContentRegionAvail().x' is more useful. @@ -730,7 +803,7 @@ CODE - How can I have widgets with an empty label? - How can I have multiple widgets with the same label? - How can I have multiple windows with the same label? - Q: How can I display an image? What is ImTextureID, how does it works? + Q: How can I display an image? What is ImTextureID, how does it work? Q: How can I use my own math types instead of ImVec2/ImVec4? Q: How can I interact with standard C++ types (such as std::string and std::vector)? Q: How can I display custom shapes? (using low-level ImDrawList API) @@ -789,7 +862,6 @@ CODE #include "imgui_internal.h" // System includes -#include // toupper #include // vsnprintf, sscanf, printf #if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier #include // intptr_t @@ -836,7 +908,7 @@ CODE #if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later #pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types #endif -#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). #pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). #pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). #endif @@ -859,7 +931,7 @@ CODE #pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. #pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision #elif defined(__GNUC__) -// We disable -Wpragmas because GCC doesn't provide an has_warning equivalent and some forks/patches may not following the warning/version association. +// We disable -Wpragmas because GCC doesn't provide a has_warning equivalent and some forks/patches may not follow the warning/version association. #pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind #pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used #pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size @@ -883,7 +955,7 @@ static const float NAV_WINDOWING_LIST_APPEAR_DELAY = 0.15f; // Time // Window resizing from edges (when io.ConfigWindowsResizeFromEdges = true and ImGuiBackendFlags_HasMouseCursors is set in io.BackendFlags by backend) static const float WINDOWS_HOVER_PADDING = 4.0f; // Extend outside window for hovering/resizing (maxxed with TouchPadding) and inside windows for borders. Affect FindHoveredWindow(). static const float WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER = 0.04f; // Reduce visual noise by only highlighting the border after a certain time. -static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 2.00f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. +static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 0.70f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. //------------------------------------------------------------------------- // [SECTION] FORWARD DECLARATIONS @@ -907,7 +979,7 @@ static void WindowSettingsHandler_WriteAll(ImGuiContext*, ImGuiSetti // Platform Dependents default implementation for IO functions static const char* GetClipboardTextFn_DefaultImpl(void* user_data); static void SetClipboardTextFn_DefaultImpl(void* user_data, const char* text); -static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y); +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data); namespace ImGui { @@ -941,6 +1013,7 @@ static void UpdateDebugToolStackQueries(); // Misc static void UpdateSettings(); +static void UpdateKeyboardInputs(); static void UpdateMouseInputs(); static void UpdateMouseWheel(); static bool UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect); @@ -1027,12 +1100,12 @@ ImGuiStyle::ImGuiStyle() ColumnsMinSpacing = 6.0f; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). ScrollbarSize = 14.0f; // Width of the vertical scrollbar, Height of the horizontal scrollbar ScrollbarRounding = 9.0f; // Radius of grab corners rounding for scrollbar - GrabMinSize = 10.0f; // Minimum width/height of a grab box for slider/scrollbar + GrabMinSize = 12.0f; // Minimum width/height of a grab box for slider/scrollbar GrabRounding = 0.0f; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. LogSliderDeadzone = 4.0f; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. TabRounding = 4.0f; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. TabBorderSize = 0.0f; // Thickness of border around tabs. - TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appears on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. ColorButtonPosition = ImGuiDir_Right; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text. SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. @@ -1040,7 +1113,7 @@ ImGuiStyle::ImGuiStyle() DisplaySafeAreaPadding = ImVec2(3,3); // If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows. MouseCursorScale = 1.0f; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. AntiAliasedLines = true; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. - AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering. + AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). AntiAliasedFill = true; // Enable anti-aliased filled shapes (rounded rectangles, circles, etc.). CurveTessellationTol = 1.25f; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. CircleTessellationMaxError = 0.30f; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. @@ -1082,7 +1155,7 @@ ImGuiIO::ImGuiIO() { // Most fields are initialized with zero memset(this, 0, sizeof(*this)); - IM_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); // Our pre-C++11 IM_STATIC_ASSERT() macros triggers warning on modern compilers so we don't use it here. + IM_STATIC_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); // Settings ConfigFlags = ImGuiConfigFlags_None; @@ -1094,10 +1167,14 @@ ImGuiIO::ImGuiIO() LogFilename = "imgui_log.txt"; MouseDoubleClickTime = 0.30f; MouseDoubleClickMaxDist = 6.0f; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO for (int i = 0; i < ImGuiKey_COUNT; i++) KeyMap[i] = -1; +#endif KeyRepeatDelay = 0.275f; KeyRepeatRate = 0.050f; + HoverDelayNormal = 0.30f; + HoverDelayShort = 0.10f; UserData = NULL; Fonts = NULL; @@ -1113,7 +1190,10 @@ ImGuiIO::ImGuiIO() #else ConfigMacOSXBehaviors = false; #endif + ConfigInputTrickleEventQueue = true; ConfigInputTextCursorBlink = true; + ConfigInputTextEnterKeepActive = false; + ConfigDragClickToInputText = false; ConfigWindowsResizeFromEdges = true; ConfigWindowsMoveFromTitleBarOnly = false; ConfigMemoryCompactTimer = 60.0f; @@ -1124,38 +1204,48 @@ ImGuiIO::ImGuiIO() GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations SetClipboardTextFn = SetClipboardTextFn_DefaultImpl; ClipboardUserData = NULL; - ImeSetInputScreenPosFn = ImeSetInputScreenPosFn_DefaultImpl; - ImeWindowHandle = NULL; + SetPlatformImeDataFn = SetPlatformImeDataFn_DefaultImpl; // Input (NB: we already have memset zero the entire structure!) MousePos = ImVec2(-FLT_MAX, -FLT_MAX); MousePosPrev = ImVec2(-FLT_MAX, -FLT_MAX); MouseDragThreshold = 6.0f; for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDurationPrev[i] = -1.0f; - for (int i = 0; i < IM_ARRAYSIZE(KeysDownDuration); i++) KeysDownDuration[i] = KeysDownDurationPrev[i] = -1.0f; - for (int i = 0; i < IM_ARRAYSIZE(NavInputsDownDuration); i++) NavInputsDownDuration[i] = -1.0f; + for (int i = 0; i < IM_ARRAYSIZE(KeysData); i++) { KeysData[i].DownDuration = KeysData[i].DownDurationPrev = -1.0f; } + AppAcceptingEvents = true; + BackendUsingLegacyKeyArrays = (ImS8)-1; + BackendUsingLegacyNavInputArray = true; // assume using legacy array until proven wrong } // Pass in translated ASCII characters for text input. // - with glfw you can get those from the callback set in glfwSetCharCallback() // - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message +// FIXME: Should in theory be called "AddCharacterEvent()" to be consistent with new API void ImGuiIO::AddInputCharacter(unsigned int c) { - if (c != 0) - InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + if (c == 0 || !AppAcceptingEvents) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Text; + e.Source = ImGuiInputSource_Keyboard; + e.Text.Char = c; + g.InputEventsQueue.push_back(e); } // UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so // we should save the high surrogate. void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) { - if (c == 0 && InputQueueSurrogate == 0) + if ((c == 0 && InputQueueSurrogate == 0) || !AppAcceptingEvents) return; if ((c & 0xFC00) == 0xD800) // High surrogate, must save { if (InputQueueSurrogate != 0) - InputQueueCharacters.push_back(IM_UNICODE_CODEPOINT_INVALID); + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); InputQueueSurrogate = c; return; } @@ -1165,7 +1255,7 @@ void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) { if ((c & 0xFC00) != 0xDC00) // Invalid low surrogate { - InputQueueCharacters.push_back(IM_UNICODE_CODEPOINT_INVALID); + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); } else { @@ -1178,41 +1268,229 @@ void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) InputQueueSurrogate = 0; } - InputQueueCharacters.push_back(cp); + AddInputCharacter((unsigned)cp); } void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) { + if (!AppAcceptingEvents) + return; while (*utf8_chars != 0) { unsigned int c = 0; utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL); if (c != 0) - InputQueueCharacters.push_back((ImWchar)c); + AddInputCharacter(c); } } +// FIXME: Perhaps we could clear queued events as well? void ImGuiIO::ClearInputCharacters() { InputQueueCharacters.resize(0); } +// FIXME: Perhaps we could clear queued events as well? void ImGuiIO::ClearInputKeys() { +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO memset(KeysDown, 0, sizeof(KeysDown)); - for (int n = 0; n < IM_ARRAYSIZE(KeysDownDuration); n++) - KeysDownDuration[n] = KeysDownDurationPrev[n] = -1.0f; +#endif + for (int n = 0; n < IM_ARRAYSIZE(KeysData); n++) + { + KeysData[n].Down = false; + KeysData[n].DownDuration = -1.0f; + KeysData[n].DownDurationPrev = -1.0f; + } KeyCtrl = KeyShift = KeyAlt = KeySuper = false; - KeyMods = KeyModsPrev = ImGuiKeyModFlags_None; - for (int n = 0; n < IM_ARRAYSIZE(NavInputsDownDuration); n++) - NavInputsDownDuration[n] = NavInputsDownDurationPrev[n] = -1.0f; + KeyMods = ImGuiMod_None; + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + for (int n = 0; n < IM_ARRAYSIZE(MouseDown); n++) + { + MouseDown[n] = false; + MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f; + } + MouseWheel = MouseWheelH = 0.0f; +} + +static ImGuiInputEvent* FindLatestInputEvent(ImGuiInputEventType type, int arg = -1) +{ + ImGuiContext& g = *GImGui; + for (int n = g.InputEventsQueue.Size - 1; n >= 0; n--) + { + ImGuiInputEvent* e = &g.InputEventsQueue[n]; + if (e->Type != type) + continue; + if (type == ImGuiInputEventType_Key && e->Key.Key != arg) + continue; + if (type == ImGuiInputEventType_MouseButton && e->MouseButton.Button != arg) + continue; + return e; + } + return NULL; +} + +// Queue a new key down/up event. +// - ImGuiKey key: Translated key (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) +// - bool down: Is the key down? use false to signify a key release. +// - float analog_value: 0.0f..1.0f +void ImGuiIO::AddKeyAnalogEvent(ImGuiKey key, bool down, float analog_value) +{ + //if (e->Down) { IMGUI_DEBUG_LOG_IO("AddKeyEvent() Key='%s' %d, NativeKeycode = %d, NativeScancode = %d\n", ImGui::GetKeyName(e->Key), e->Down, e->NativeKeycode, e->NativeScancode); } + if (key == ImGuiKey_None || !AppAcceptingEvents) + return; + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(ImGui::IsNamedKeyOrModKey(key)); // Backend needs to pass a valid ImGuiKey_ constant. 0..511 values are legacy native key codes which are not accepted by this API. + IM_ASSERT(!ImGui::IsAliasKey(key)); // Backend cannot submit ImGuiKey_MouseXXX values they are automatically inferred from AddMouseXXX() events. + + // Verify that backend isn't mixing up using new io.AddKeyEvent() api and old io.KeysDown[] + io.KeyMap[] data. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((BackendUsingLegacyKeyArrays == -1 || BackendUsingLegacyKeyArrays == 0) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + if (BackendUsingLegacyKeyArrays == -1) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + IM_ASSERT(KeyMap[n] == -1 && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + BackendUsingLegacyKeyArrays = 0; +#endif + if (ImGui::IsGamepadKey(key)) + BackendUsingLegacyNavInputArray = false; + + // Filter duplicate (in particular: key mods and gamepad analog values are commonly spammed) + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_Key, (int)key); + const ImGuiKeyData* key_data = ImGui::GetKeyData(key); + const bool latest_key_down = latest_event ? latest_event->Key.Down : key_data->Down; + const float latest_key_analog = latest_event ? latest_event->Key.AnalogValue : key_data->AnalogValue; + if (latest_key_down == down && latest_key_analog == analog_value) + return; + + // Add event + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Key; + e.Source = ImGui::IsGamepadKey(key) ? ImGuiInputSource_Gamepad : ImGuiInputSource_Keyboard; + e.Key.Key = key; + e.Key.Down = down; + e.Key.AnalogValue = analog_value; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) +{ + if (!AppAcceptingEvents) + return; + AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); +} + +// [Optional] Call after AddKeyEvent(). +// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. +// If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this. +void ImGuiIO::SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index) +{ + if (key == ImGuiKey_None) + return; + IM_ASSERT(ImGui::IsNamedKey(key)); // >= 512 + IM_ASSERT(native_legacy_index == -1 || ImGui::IsLegacyKey((ImGuiKey)native_legacy_index)); // >= 0 && <= 511 + IM_UNUSED(native_keycode); // Yet unused + IM_UNUSED(native_scancode); // Yet unused + + // Build native->imgui map so old user code can still call key functions with native 0..511 values. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const int legacy_key = (native_legacy_index != -1) ? native_legacy_index : native_keycode; + if (!ImGui::IsLegacyKey((ImGuiKey)legacy_key)) + return; + KeyMap[legacy_key] = key; + KeyMap[key] = legacy_key; +#else + IM_UNUSED(key); + IM_UNUSED(native_legacy_index); +#endif +} + +// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. +void ImGuiIO::SetAppAcceptingEvents(bool accepting_events) +{ + AppAcceptingEvents = accepting_events; +} + +// Queue a mouse move event +void ImGuiIO::AddMousePosEvent(float x, float y) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + if (!AppAcceptingEvents) + return; + + // Apply same flooring as UpdateMouseInputs() + ImVec2 pos((x > -FLT_MAX) ? ImFloorSigned(x) : x, (y > -FLT_MAX) ? ImFloorSigned(y) : y); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MousePos); + const ImVec2 latest_pos = latest_event ? ImVec2(latest_event->MousePos.PosX, latest_event->MousePos.PosY) : g.IO.MousePos; + if (latest_pos.x == pos.x && latest_pos.y == pos.y) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MousePos; + e.Source = ImGuiInputSource_Mouse; + e.MousePos.PosX = pos.x; + e.MousePos.PosY = pos.y; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddMouseButtonEvent(int mouse_button, bool down) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MouseButton, (int)mouse_button); + const bool latest_button_down = latest_event ? latest_event->MouseButton.Down : g.IO.MouseDown[mouse_button]; + if (latest_button_down == down) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseButton; + e.Source = ImGuiInputSource_Mouse; + e.MouseButton.Button = mouse_button; + e.MouseButton.Down = down; + g.InputEventsQueue.push_back(e); +} + +// Queue a mouse wheel event (most mouse/API will only have a Y component) +void ImGuiIO::AddMouseWheelEvent(float wheel_x, float wheel_y) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + + // Filter duplicate (unlike most events, wheel values are relative and easy to filter) + if (!AppAcceptingEvents || (wheel_x == 0.0f && wheel_y == 0.0f)) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseWheel; + e.Source = ImGuiInputSource_Mouse; + e.MouseWheel.WheelX = wheel_x; + e.MouseWheel.WheelY = wheel_y; + g.InputEventsQueue.push_back(e); } void ImGuiIO::AddFocusEvent(bool focused) { - // We intentionally overwrite this and process in NewFrame(), in order to give a chance - // to multi-viewports backends to queue AddFocusEvent(false),AddFocusEvent(true) in same frame. - AppFocusLost = !focused; + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_Focus); + const bool latest_focused = latest_event ? latest_event->AppFocused.Focused : !g.IO.AppFocusLost; + if (latest_focused == focused) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Focus; + e.AppFocused.Focused = focused; + g.InputEventsQueue.push_back(e); } //----------------------------------------------------------------------------- @@ -1343,14 +1621,14 @@ ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, int ImStricmp(const char* str1, const char* str2) { int d; - while ((d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; } + while ((d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; } return d; } int ImStrnicmp(const char* str1, const char* str2, size_t count) { int d = 0; - while (count > 0 && (d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; count--; } + while (count > 0 && (d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; count--; } return d; } @@ -1417,14 +1695,14 @@ const char* ImStristr(const char* haystack, const char* haystack_end, const char if (!needle_end) needle_end = needle + strlen(needle); - const char un0 = (char)toupper(*needle); + const char un0 = (char)ImToUpper(*needle); while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end)) { - if (toupper(*haystack) == un0) + if (ImToUpper(*haystack) == un0) { const char* b = needle + 1; for (const char* a = haystack + 1; b < needle_end; a++, b++) - if (toupper(*a) != toupper(*b)) + if (ImToUpper(*a) != ImToUpper(*b)) break; if (b == needle_end) return haystack; @@ -1468,8 +1746,12 @@ const char* ImStrSkipBlank(const char* str) // designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.) #ifdef IMGUI_USE_STB_SPRINTF #define STB_SPRINTF_IMPLEMENTATION +#ifdef IMGUI_STB_SPRINTF_FILENAME +#include IMGUI_STB_SPRINTF_FILENAME +#else #include "stb_sprintf.h" #endif +#endif #if defined(_MSC_VER) && !defined(vsnprintf) #define vsnprintf _vsnprintf @@ -1509,6 +1791,25 @@ int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) } #endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + va_list args; + va_start(args, fmt); + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } + va_end(args); +} + +void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } +} + // CRC32 needs a 1KB lookup table (not cache friendly) // Although the code to generate the table is simple and shorter than the table itself, using a const table allows us to easily: // - avoid an unnecessary branch/memory tap, - keep the ImHashXXX functions usable by static constructors, - make it thread-safe. @@ -2070,18 +2371,15 @@ void ImGuiStorage::SetAllInt(int v) //----------------------------------------------------------------------------- // Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" -ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) +ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) //-V1077 { + InputBuf[0] = 0; + CountGrep = 0; if (default_filter) { ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); Build(); } - else - { - InputBuf[0] = 0; - CountGrep = 0; - } } bool ImGuiTextFilter::Draw(const char* label, float width) @@ -2168,7 +2466,7 @@ bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const } //----------------------------------------------------------------------------- -// [SECTION] ImGuiTextBuffer +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex //----------------------------------------------------------------------------- // On some platform vsnprintf() takes va_list by reference and modifies it. @@ -2236,6 +2534,20 @@ void ImGuiTextBuffer::appendfv(const char* fmt, va_list args) va_end(args_copy); } +void ImGuiTextIndex::append(const char* base, int old_size, int new_size) +{ + IM_ASSERT(old_size >= 0 && new_size >= old_size && new_size >= EndOffset); + if (old_size == new_size) + return; + if (EndOffset == 0 || base[EndOffset - 1] == '\n') + LineOffsets.push_back(EndOffset); + const char* base_end = base + new_size; + for (const char* p = base + old_size; (p = (const char*)memchr(p, '\n', base_end - p)) != 0; ) + if (++p < base_end) // Don't push a trailing offset on last \n + LineOffsets.push_back((int)(intptr_t)(p - base)); + EndOffset = ImMax(EndOffset, new_size); +} + //----------------------------------------------------------------------------- // [SECTION] ImGuiListClipper // This is currently not as flexible/powerful as it should be and really confusing/spaghetti, mostly because we changed @@ -2252,7 +2564,7 @@ static bool GetSkipItemForListClipping() #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS // Legacy helper to calculate coarse clipping of large list of evenly sized items. -// This legacy API is not ideal because it assume we will return a single contiguous rectangle. +// This legacy API is not ideal because it assumes we will return a single contiguous rectangle. // Prefer using ImGuiListClipper which can returns non-contiguous ranges. void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) { @@ -2367,13 +2679,11 @@ ImGuiListClipper::~ImGuiListClipper() End(); } -// Use case A: Begin() called from constructor with items_height<0, then called again from Step() in StepNo 1 -// Use case B: Begin() called from constructor with items_height>0 -// FIXME-LEGACY: Ideally we should remove the Begin/End functions but they are part of the legacy API we still support. This is why some of the code in Step() calling Begin() and reassign some fields, spaghetti style. void ImGuiListClipper::Begin(int items_count, float items_height) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Begin(%d,%.2f) in '%s'\n", items_count, items_height, window->Name); if (ImGuiTable* table = g.CurrentTable) if (table->IsInsideRow) @@ -2396,15 +2706,15 @@ void ImGuiListClipper::Begin(int items_count, float items_height) void ImGuiListClipper::End() { - // In theory here we should assert that we are already at the right position, but it seems saner to just seek at the end and not assert/crash the user. ImGuiContext& g = *GImGui; - if (ItemsCount >= 0 && ItemsCount < INT_MAX && DisplayStart >= 0) - ImGuiListClipper_SeekCursorForItem(this, ItemsCount); - ItemsCount = -1; - - // Restore temporary buffer and fix back pointers which may be invalidated when nesting if (ImGuiListClipperData* data = (ImGuiListClipperData*)TempData) { + // In theory here we should assert that we are already at the right position, but it seems saner to just seek at the end and not assert/crash the user. + IMGUI_DEBUG_LOG_CLIPPER("Clipper: End() in '%s'\n", g.CurrentWindow->Name); + if (ItemsCount >= 0 && ItemsCount < INT_MAX && DisplayStart >= 0) + ImGuiListClipper_SeekCursorForItem(this, ItemsCount); + + // Restore temporary buffer and fix back pointers which may be invalidated when nesting IM_ASSERT(data->ListClipper == this); data->StepNo = data->Ranges.Size; if (--g.ClipperTempDataStacked > 0) @@ -2414,6 +2724,7 @@ void ImGuiListClipper::End() } TempData = NULL; } + ItemsCount = -1; } void ImGuiListClipper::ForceDisplayRangeByIndices(int item_min, int item_max) @@ -2425,29 +2736,29 @@ void ImGuiListClipper::ForceDisplayRangeByIndices(int item_min, int item_max) data->Ranges.push_back(ImGuiListClipperRange::FromIndices(item_min, item_max)); } -bool ImGuiListClipper::Step() +static bool ImGuiListClipper_StepInternal(ImGuiListClipper* clipper) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - ImGuiListClipperData* data = (ImGuiListClipperData*)TempData; + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + IM_ASSERT(data != NULL && "Called ImGuiListClipper::Step() too many times, or before ImGuiListClipper::Begin() ?"); ImGuiTable* table = g.CurrentTable; if (table && table->IsInsideRow) ImGui::TableEndRow(table); // No items - if (ItemsCount == 0 || GetSkipItemForListClipping()) - return (void)End(), false; + if (clipper->ItemsCount == 0 || GetSkipItemForListClipping()) + return false; // While we are in frozen row state, keep displaying items one by one, unclipped // FIXME: Could be stored as a table-agnostic state. if (data->StepNo == 0 && table != NULL && !table->IsUnfrozenRows) { - DisplayStart = data->ItemsFrozen; - DisplayEnd = data->ItemsFrozen + 1; - if (DisplayStart >= ItemsCount) - return (void)End(), false; - data->ItemsFrozen++; + clipper->DisplayStart = data->ItemsFrozen; + clipper->DisplayEnd = ImMin(data->ItemsFrozen + 1, clipper->ItemsCount); + if (clipper->DisplayStart < clipper->DisplayEnd) + data->ItemsFrozen++; return true; } @@ -2455,15 +2766,13 @@ bool ImGuiListClipper::Step() bool calc_clipping = false; if (data->StepNo == 0) { - StartPosY = window->DC.CursorPos.y; - if (ItemsHeight <= 0.0f) + clipper->StartPosY = window->DC.CursorPos.y; + if (clipper->ItemsHeight <= 0.0f) { // Submit the first item (or range) so we can measure its height (generally the first range is 0..1) data->Ranges.push_front(ImGuiListClipperRange::FromIndices(data->ItemsFrozen, data->ItemsFrozen + 1)); - DisplayStart = ImMax(data->Ranges[0].Min, data->ItemsFrozen); - DisplayEnd = ImMin(data->Ranges[0].Max, ItemsCount); - if (DisplayStart == DisplayEnd) - return (void)End(), false; + clipper->DisplayStart = ImMax(data->Ranges[0].Min, data->ItemsFrozen); + clipper->DisplayEnd = ImMin(data->Ranges[0].Max, clipper->ItemsCount); data->StepNo = 1; return true; } @@ -2471,29 +2780,29 @@ bool ImGuiListClipper::Step() } // Step 1: Let the clipper infer height from first range - if (ItemsHeight <= 0.0f) + if (clipper->ItemsHeight <= 0.0f) { IM_ASSERT(data->StepNo == 1); if (table) - IM_ASSERT(table->RowPosY1 == StartPosY && table->RowPosY2 == window->DC.CursorPos.y); + IM_ASSERT(table->RowPosY1 == clipper->StartPosY && table->RowPosY2 == window->DC.CursorPos.y); - ItemsHeight = (window->DC.CursorPos.y - StartPosY) / (float)(DisplayEnd - DisplayStart); - bool affected_by_floating_point_precision = ImIsFloatAboveGuaranteedIntegerPrecision(StartPosY) || ImIsFloatAboveGuaranteedIntegerPrecision(window->DC.CursorPos.y); + clipper->ItemsHeight = (window->DC.CursorPos.y - clipper->StartPosY) / (float)(clipper->DisplayEnd - clipper->DisplayStart); + bool affected_by_floating_point_precision = ImIsFloatAboveGuaranteedIntegerPrecision(clipper->StartPosY) || ImIsFloatAboveGuaranteedIntegerPrecision(window->DC.CursorPos.y); if (affected_by_floating_point_precision) - ItemsHeight = window->DC.PrevLineSize.y + g.Style.ItemSpacing.y; // FIXME: Technically wouldn't allow multi-line entries. + clipper->ItemsHeight = window->DC.PrevLineSize.y + g.Style.ItemSpacing.y; // FIXME: Technically wouldn't allow multi-line entries. - IM_ASSERT(ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); + IM_ASSERT(clipper->ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); calc_clipping = true; // If item height had to be calculated, calculate clipping afterwards. } // Step 0 or 1: Calculate the actual ranges of visible elements. - const int already_submitted = DisplayEnd; + const int already_submitted = clipper->DisplayEnd; if (calc_clipping) { if (g.LogEnabled) { // If logging is active, do not perform any clipping - data->Ranges.push_back(ImGuiListClipperRange::FromIndices(0, ItemsCount)); + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(0, clipper->ItemsCount)); } else { @@ -2502,7 +2811,7 @@ bool ImGuiListClipper::Step() if (is_nav_request) data->Ranges.push_back(ImGuiListClipperRange::FromPositions(g.NavScoringNoClipRect.Min.y, g.NavScoringNoClipRect.Max.y, 0, 0)); if (is_nav_request && (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) && g.NavTabbingDir == -1) - data->Ranges.push_back(ImGuiListClipperRange::FromIndices(ItemsCount - 1, ItemsCount)); + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(clipper->ItemsCount - 1, clipper->ItemsCount)); // Add focused/active item ImRect nav_rect_abs = ImGui::WindowRectRelToAbs(window, window->NavRectRel[0]); @@ -2522,10 +2831,10 @@ bool ImGuiListClipper::Step() for (int i = 0; i < data->Ranges.Size; i++) if (data->Ranges[i].PosToIndexConvert) { - int m1 = (int)(((double)data->Ranges[i].Min - window->DC.CursorPos.y - data->LossynessOffset) / ItemsHeight); - int m2 = (int)((((double)data->Ranges[i].Max - window->DC.CursorPos.y - data->LossynessOffset) / ItemsHeight) + 0.999999f); - data->Ranges[i].Min = ImClamp(already_submitted + m1 + data->Ranges[i].PosToIndexOffsetMin, already_submitted, ItemsCount - 1); - data->Ranges[i].Max = ImClamp(already_submitted + m2 + data->Ranges[i].PosToIndexOffsetMax, data->Ranges[i].Min + 1, ItemsCount); + int m1 = (int)(((double)data->Ranges[i].Min - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight); + int m2 = (int)((((double)data->Ranges[i].Max - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight) + 0.999999f); + data->Ranges[i].Min = ImClamp(already_submitted + m1 + data->Ranges[i].PosToIndexOffsetMin, already_submitted, clipper->ItemsCount - 1); + data->Ranges[i].Max = ImClamp(already_submitted + m2 + data->Ranges[i].PosToIndexOffsetMax, data->Ranges[i].Min + 1, clipper->ItemsCount); data->Ranges[i].PosToIndexConvert = false; } ImGuiListClipper_SortAndFuseRanges(data->Ranges, data->StepNo); @@ -2534,23 +2843,42 @@ bool ImGuiListClipper::Step() // Step 0+ (if item height is given in advance) or 1+: Display the next range in line. if (data->StepNo < data->Ranges.Size) { - DisplayStart = ImMax(data->Ranges[data->StepNo].Min, already_submitted); - DisplayEnd = ImMin(data->Ranges[data->StepNo].Max, ItemsCount); - if (DisplayStart > already_submitted) //-V1051 - ImGuiListClipper_SeekCursorForItem(this, DisplayStart); + clipper->DisplayStart = ImMax(data->Ranges[data->StepNo].Min, already_submitted); + clipper->DisplayEnd = ImMin(data->Ranges[data->StepNo].Max, clipper->ItemsCount); + if (clipper->DisplayStart > already_submitted) //-V1051 + ImGuiListClipper_SeekCursorForItem(clipper, clipper->DisplayStart); data->StepNo++; return true; } // After the last step: Let the clipper validate that we have reached the expected Y position (corresponding to element DisplayEnd), // Advance the cursor to the end of the list and then returns 'false' to end the loop. - if (ItemsCount < INT_MAX) - ImGuiListClipper_SeekCursorForItem(this, ItemsCount); - ItemsCount = -1; + if (clipper->ItemsCount < INT_MAX) + ImGuiListClipper_SeekCursorForItem(clipper, clipper->ItemsCount); return false; } +bool ImGuiListClipper::Step() +{ + ImGuiContext& g = *GImGui; + bool need_items_height = (ItemsHeight <= 0.0f); + bool ret = ImGuiListClipper_StepInternal(this); + if (ret && (DisplayStart == DisplayEnd)) + ret = false; + if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); + if (need_items_height && ItemsHeight > 0.0f) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); + if (ret) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); + else + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); + if (!ret) + End(); + return ret; +} + //----------------------------------------------------------------------------- // [SECTION] STYLING //----------------------------------------------------------------------------- @@ -2617,6 +2945,11 @@ void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col) void ImGui::PopStyleColor(int count) { ImGuiContext& g = *GImGui; + if (g.ColorStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.ColorStack.Size > count, "Calling PopStyleColor() too many times: stack underflow."); + count = g.ColorStack.Size; + } while (count > 0) { ImGuiColorMod& backup = g.ColorStack.back(); @@ -2701,6 +3034,11 @@ void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val) void ImGui::PopStyleVar(int count) { ImGuiContext& g = *GImGui; + if (g.StyleVarStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.StyleVarStack.Size > count, "Calling PopStyleVar() too many times: stack underflow."); + count = g.StyleVarStack.Size; + } while (count > 0) { // We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it. @@ -3024,6 +3362,32 @@ void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFl } } +void ImGui::RenderMouseCursor(ImVec2 base_pos, float base_scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + ImDrawList* draw_list = GetForegroundDrawList(viewport); + ImFontAtlas* font_atlas = draw_list->_Data->Font->ContainerAtlas; + ImVec2 offset, size, uv[4]; + if (font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2])) + { + const ImVec2 pos = base_pos - offset; + const float scale = base_scale; + ImTextureID tex_id = font_atlas->TexID; + draw_list->PushTextureID(tex_id); + draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill); + draw_list->PopTextureID(); + } + } +} + + //----------------------------------------------------------------------------- // [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) //----------------------------------------------------------------------------- @@ -3063,7 +3427,6 @@ ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) { ImGuiID seed = IDStack.back(); ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); - ImGui::KeepAliveID(id); ImGuiContext& g = *GImGui; if (g.DebugHookIdInfo == id) ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); @@ -3074,7 +3437,6 @@ ImGuiID ImGuiWindow::GetID(const void* ptr) { ImGuiID seed = IDStack.back(); ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); - ImGui::KeepAliveID(id); ImGuiContext& g = *GImGui; if (g.DebugHookIdInfo == id) ImGui::DebugHookIdInfo(id, ImGuiDataType_Pointer, ptr, NULL); @@ -3082,37 +3444,6 @@ ImGuiID ImGuiWindow::GetID(const void* ptr) } ImGuiID ImGuiWindow::GetID(int n) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashData(&n, sizeof(n), seed); - ImGui::KeepAliveID(id); - ImGuiContext& g = *GImGui; - if (g.DebugHookIdInfo == id) - ImGui::DebugHookIdInfo(id, ImGuiDataType_S32, (void*)(intptr_t)n, NULL); - return id; -} - -ImGuiID ImGuiWindow::GetIDNoKeepAlive(const char* str, const char* str_end) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); - ImGuiContext& g = *GImGui; - if (g.DebugHookIdInfo == id) - ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); - return id; -} - -ImGuiID ImGuiWindow::GetIDNoKeepAlive(const void* ptr) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); - ImGuiContext& g = *GImGui; - if (g.DebugHookIdInfo == id) - ImGui::DebugHookIdInfo(id, ImGuiDataType_Pointer, ptr, NULL); - return id; -} - -ImGuiID ImGuiWindow::GetIDNoKeepAlive(int n) { ImGuiID seed = IDStack.back(); ImGuiID id = ImHashData(&n, sizeof(n), seed); @@ -3128,7 +3459,6 @@ ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs) ImGuiID seed = IDStack.back(); ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs); ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed); - ImGui::KeepAliveID(id); return id; } @@ -3178,9 +3508,21 @@ void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window) void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) { ImGuiContext& g = *GImGui; + + // While most behaved code would make an effort to not steal active id during window move/drag operations, + // we at least need to be resilient to it. Cancelling the move is rather aggressive and users of 'master' branch + // may prefer the weird ill-defined half working situation ('docking' did assert), so may need to rework that. + if (g.MovingWindow != NULL && g.ActiveId == g.MovingWindow->MoveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() cancel MovingWindow\n"); + g.MovingWindow = NULL; + } + + // Set active id g.ActiveIdIsJustActivated = (g.ActiveId != id); if (g.ActiveIdIsJustActivated) { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() old:0x%08X (window \"%s\") -> new:0x%08X (window \"%s\")\n", g.ActiveId, g.ActiveIdWindow ? g.ActiveIdWindow->Name : "", id, window ? window->Name : ""); g.ActiveIdTimer = 0.0f; g.ActiveIdHasBeenPressedBefore = false; g.ActiveIdHasBeenEditedBefore = false; @@ -3199,15 +3541,16 @@ void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) if (id) { g.ActiveIdIsAlive = id; - g.ActiveIdSource = (g.NavActivateId == id || g.NavActivateInputId == id || g.NavJustMovedToId == id) ? ImGuiInputSource_Nav : ImGuiInputSource_Mouse; + g.ActiveIdSource = (g.NavActivateId == id || g.NavActivateInputId == id || g.NavJustMovedToId == id) ? (ImGuiInputSource)ImGuiInputSource_Nav : ImGuiInputSource_Mouse; } // Clear declaration of inputs claimed by the widget // (Please note that this is WIP and not all keys/inputs are thoroughly declared by all widgets yet) - g.ActiveIdUsingMouseWheel = false; g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO g.ActiveIdUsingNavInputMask = 0x00; - g.ActiveIdUsingKeyInputMask = 0x00; +#endif } void ImGui::ClearActiveID() @@ -3220,7 +3563,6 @@ void ImGui::SetHoveredID(ImGuiID id) ImGuiContext& g = *GImGui; g.HoveredId = id; g.HoveredIdAllowOverlap = false; - g.HoveredIdUsingMouseWheel = false; if (id != 0 && g.HoveredIdPreviousFrame != id) g.HoveredIdTimer = g.HoveredIdNotActiveTimer = 0.0f; } @@ -3231,6 +3573,8 @@ ImGuiID ImGui::GetHoveredID() return g.HoveredId ? g.HoveredId : g.HoveredIdPreviousFrame; } +// This is called by ItemAdd(). +// Code not using ItemAdd() may need to call this manually otherwise ActiveId will be cleared. In IMGUI_VERSION_NUM < 18717 this was called by GetID(). void ImGui::KeepAliveID(ImGuiID id) { ImGuiContext& g = *GImGui; @@ -3243,7 +3587,7 @@ void ImGui::KeepAliveID(ImGuiID id) void ImGui::MarkItemEdited(ImGuiID id) { // This marking is solely to be able to provide info for IsItemDeactivatedAfterEdit(). - // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need need to fill the data. + // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need to fill the data. ImGuiContext& g = *GImGui; IM_ASSERT(g.ActiveId == id || g.ActiveId == 0 || g.DragDropActive); IM_UNUSED(id); // Avoid unused variable warnings when asserts are compiled out. @@ -3263,11 +3607,17 @@ static inline bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFla if (focused_root_window->WasActive && focused_root_window != window->RootWindow) { // For the purpose of those flags we differentiate "standard popup" from "modal popup" - // NB: The order of those two tests is important because Modal windows are also Popups. + // NB: The 'else' is important because Modal windows are also Popups. + bool want_inhibit = false; if (focused_root_window->Flags & ImGuiWindowFlags_Modal) - return false; - if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) - return false; + want_inhibit = true; + else if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + want_inhibit = true; + + // Inhibit hover unless the window is within the stack of our modal/popup + if (want_inhibit) + if (!ImGui::IsWindowWithinBeginStackOf(window->RootWindow, focused_root_window)) + return false; } return true; } @@ -3279,7 +3629,7 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - if (g.NavDisableMouseHover && !g.NavDisableHighlight) + if (g.NavDisableMouseHover && !g.NavDisableHighlight && !(flags & ImGuiHoveredFlags_NoNavOverride)) { if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) return false; @@ -3294,6 +3644,7 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) return false; IM_ASSERT((flags & (ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_NoPopupHierarchy)) == 0); // Flags not supported by this function + // Done with rectangle culling so we can perform heavier checks now // Test if we are hovering the right window (our window could be behind another window) // [2021/03/02] Reworked / reverted the revert, finally. Note we want e.g. BeginGroup/ItemAdd/EndGroup to work as well. (#3851) // [2017/10/16] Reverted commit 344d48be3 and testing RootWindow instead. I believe it is correct to NOT test for RootWindow but this leaves us unable @@ -3310,7 +3661,7 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) // Test if interactions on this window are blocked by an active popup or modal. // The ImGuiHoveredFlags_AllowWhenBlockedByPopup flag will be tested here. - if (!IsWindowContentHoverable(window, flags)) + if (!IsWindowContentHoverable(window, flags) && !(g.LastItemData.InFlags & ImGuiItemFlags_NoWindowHoverableCheck)) return false; // Test if the item is disabled @@ -3323,6 +3674,24 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) return false; } + // Handle hover delay + // (some ideas: https://www.nngroup.com/articles/timing-exposing-content) + float delay; + if (flags & ImGuiHoveredFlags_DelayNormal) + delay = g.IO.HoverDelayNormal; + else if (flags & ImGuiHoveredFlags_DelayShort) + delay = g.IO.HoverDelayShort; + else + delay = 0.0f; + if (delay > 0.0f) + { + ImGuiID hover_delay_id = (g.LastItemData.ID != 0) ? g.LastItemData.ID : window->GetIDFromRectangle(g.LastItemData.Rect); + if ((flags & ImGuiHoveredFlags_NoSharedDelay) && (g.HoverDelayIdPreviousFrame != hover_delay_id)) + g.HoverDelayTimer = 0.0f; + g.HoverDelayId = hover_delay_id; + return g.HoverDelayTimer >= delay; + } + return true; } @@ -3340,9 +3709,10 @@ bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) return false; if (!IsMouseHoveringRect(bb.Min, bb.Max)) return false; - if (g.NavDisableMouseHover) - return false; - if (!IsWindowContentHoverable(window, ImGuiHoveredFlags_None)) + + // Done with rectangle culling so we can perform heavier checks now. + ImGuiItemFlags item_flags = (g.LastItemData.ID == id ? g.LastItemData.InFlags : g.CurrentItemFlags); + if (!(item_flags & ImGuiItemFlags_NoWindowHoverableCheck) && !IsWindowContentHoverable(window, ImGuiHoveredFlags_None)) { g.HoveredIdDisabled = true; return false; @@ -3354,7 +3724,6 @@ bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) SetHoveredID(id); // When disabled we'll return false but still set HoveredId - ImGuiItemFlags item_flags = (g.LastItemData.ID == id ? g.LastItemData.InFlags : g.CurrentItemFlags); if (item_flags & ImGuiItemFlags_Disabled) { // Release active id if turning disabled @@ -3369,17 +3738,20 @@ bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) // [DEBUG] Item Picker tool! // We perform the check here because SetHoveredID() is not frequently called (1~ time a frame), making // the cost of this tool near-zero. We can get slightly better call-stack and support picking non-hovered - // items if we perform the test in ItemAdd(), but that would incur a small runtime cost. - // #define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX in imconfig.h if you want this check to also be performed in ItemAdd(). + // items if we performed the test in ItemAdd(), but that would incur a small runtime cost. if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id) GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255)); if (g.DebugItemPickerBreakId == id) IM_DEBUG_BREAK(); } + if (g.NavDisableMouseHover) + return false; + return true; } +// FIXME: This is inlined/duplicated in ItemAdd() bool ImGui::IsClippedEx(const ImRect& bb, ImGuiID id) { ImGuiContext& g = *GImGui; @@ -3494,20 +3866,23 @@ void ImGui::GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeF ImGuiContext* ImGui::CreateContext(ImFontAtlas* shared_font_atlas) { + ImGuiContext* prev_ctx = GetCurrentContext(); ImGuiContext* ctx = IM_NEW(ImGuiContext)(shared_font_atlas); - if (GImGui == NULL) - SetCurrentContext(ctx); - Initialize(ctx); + SetCurrentContext(ctx); + Initialize(); + if (prev_ctx != NULL) + SetCurrentContext(prev_ctx); // Restore previous context if any, else keep new one. return ctx; } void ImGui::DestroyContext(ImGuiContext* ctx) { - if (ctx == NULL) - ctx = GImGui; - Shutdown(ctx); - if (GImGui == ctx) - SetCurrentContext(NULL); + ImGuiContext* prev_ctx = GetCurrentContext(); + if (ctx == NULL) //-V1051 + ctx = prev_ctx; + SetCurrentContext(ctx); + Shutdown(); + SetCurrentContext((prev_ctx != ctx) ? prev_ctx : NULL); IM_DELETE(ctx); } @@ -3627,7 +4002,7 @@ void ImGui::StartMouseMovingWindow(ImGuiWindow* window) g.NavDisableHighlight = true; g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - window->RootWindow->Pos; g.ActiveIdNoClearOnFocusLoss = true; - SetActiveIdUsingNavAndKeys(); + SetActiveIdUsingAllKeyboardKeys(); bool can_move_window = true; if ((window->Flags & ImGuiWindowFlags_NoMove) || (window->RootWindow->Flags & ImGuiWindowFlags_NoMove)) @@ -3654,11 +4029,7 @@ void ImGui::UpdateMouseMovingWindowNewFrame() if (g.IO.MouseDown[0] && IsMousePosValid(&g.IO.MousePos)) { ImVec2 pos = g.IO.MousePos - g.ActiveIdClickOffset; - if (moving_window->Pos.x != pos.x || moving_window->Pos.y != pos.y) - { - MarkIniSettingsDirty(moving_window); - SetWindowPos(moving_window, pos, ImGuiCond_Always); - } + SetWindowPos(moving_window, pos, ImGuiCond_Always); FocusWindow(g.MovingWindow); } else @@ -3738,77 +4109,248 @@ static bool IsWindowActiveAndVisible(ImGuiWindow* window) return (window->Active) && (!window->Hidden); } +static void UpdateAliasKey(ImGuiKey key, bool v, float analog_value) +{ + IM_ASSERT(ImGui::IsAliasKey(key)); + ImGuiKeyData* key_data = ImGui::GetKeyData(key); + key_data->Down = v; + key_data->AnalogValue = analog_value; +} + +// Rewrite routing data buffers to strip old entries + sort by key to make queries not touch scattered data. +// Entries D,A,B,B,A,C,B --> A,A,B,B,B,C,D +// Index A:1 B:2 C:5 D:0 --> A:0 B:2 C:5 D:6 +// See 'Metrics->Key Owners & Shortcut Routing' to visualize the result of that operation. +static void UpdateKeyRoutingTable(ImGuiKeyRoutingTable* rt) +{ + ImGuiContext& g = *GImGui; + rt->EntriesNext.resize(0); + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + const int new_routing_start_idx = rt->EntriesNext.Size; + ImGuiKeyRoutingData* routing_entry; + for (int old_routing_idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; old_routing_idx != -1; old_routing_idx = routing_entry->NextEntryIndex) + { + routing_entry = &rt->Entries[old_routing_idx]; + routing_entry->RoutingCurr = routing_entry->RoutingNext; // Update entry + routing_entry->RoutingNext = ImGuiKeyOwner_None; + routing_entry->RoutingNextScore = 255; + if (routing_entry->RoutingCurr == ImGuiKeyOwner_None) + continue; + rt->EntriesNext.push_back(*routing_entry); // Write alive ones into new buffer + + // Apply routing to owner if there's no owner already (RoutingCurr == None at this point) + if (routing_entry->Mods == g.IO.KeyMods) + { + ImGuiKeyOwnerData* owner_data = ImGui::GetKeyOwnerData(key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + owner_data->OwnerCurr = routing_entry->RoutingCurr; + } + } + + // Rewrite linked-list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = (ImGuiKeyRoutingIndex)(new_routing_start_idx < rt->EntriesNext.Size ? new_routing_start_idx : -1); + for (int n = new_routing_start_idx; n < rt->EntriesNext.Size; n++) + rt->EntriesNext[n].NextEntryIndex = (ImGuiKeyRoutingIndex)((n + 1 < rt->EntriesNext.Size) ? n + 1 : -1); + } + rt->Entries.swap(rt->EntriesNext); // Swap new and old indexes +} + +// [Internal] Do not use directly (should read io.KeyMods instead) +static ImGuiKeyChord GetMergedModsFromBools() +{ + ImGuiContext& g = *GImGui; + ImGuiKeyChord key_chord = 0; + if (g.IO.KeyCtrl) { key_chord |= ImGuiMod_Ctrl; } + if (g.IO.KeyShift) { key_chord |= ImGuiMod_Shift; } + if (g.IO.KeyAlt) { key_chord |= ImGuiMod_Alt; } + if (g.IO.KeySuper) { key_chord |= ImGuiMod_Super; } + return key_chord; +} + +static void ImGui::UpdateKeyboardInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Import legacy keys or verify they are not used +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (io.BackendUsingLegacyKeyArrays == 0) + { + // Backend used new io.AddKeyEvent() API: Good! Verify that old arrays are never written to externally. + for (int n = 0; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT((io.KeysDown[n] == false || IsKeyDown((ImGuiKey)n)) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + } + else + { + if (g.FrameCount == 0) + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT(g.IO.KeyMap[n] == -1 && "Backend is not allowed to write to io.KeyMap[0..511]!"); + + // Build reverse KeyMap (Named -> Legacy) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + if (io.KeyMap[n] != -1) + { + IM_ASSERT(IsLegacyKey((ImGuiKey)io.KeyMap[n])); + io.KeyMap[io.KeyMap[n]] = n; + } + + // Import legacy keys into new ones + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + if (io.KeysDown[n] || io.BackendUsingLegacyKeyArrays == 1) + { + const ImGuiKey key = (ImGuiKey)(io.KeyMap[n] != -1 ? io.KeyMap[n] : n); + IM_ASSERT(io.KeyMap[n] == -1 || IsNamedKey(key)); + io.KeysData[key].Down = io.KeysDown[n]; + if (key != n) + io.KeysDown[key] = io.KeysDown[n]; // Allow legacy code using io.KeysDown[GetKeyIndex()] with old backends + io.BackendUsingLegacyKeyArrays = 1; + } + if (io.BackendUsingLegacyKeyArrays == 1) + { + GetKeyData(ImGuiMod_Ctrl)->Down = io.KeyCtrl; + GetKeyData(ImGuiMod_Shift)->Down = io.KeyShift; + GetKeyData(ImGuiMod_Alt)->Down = io.KeyAlt; + GetKeyData(ImGuiMod_Super)->Down = io.KeySuper; + } + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + if (io.BackendUsingLegacyNavInputArray && nav_gamepad_active) + { + #define MAP_LEGACY_NAV_INPUT_TO_KEY1(_KEY, _NAV1) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f); io.KeysData[_KEY].AnalogValue = io.NavInputs[_NAV1]; } while (0) + #define MAP_LEGACY_NAV_INPUT_TO_KEY2(_KEY, _NAV1, _NAV2) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f) || (io.NavInputs[_NAV2] > 0.0f); io.KeysData[_KEY].AnalogValue = ImMax(io.NavInputs[_NAV1], io.NavInputs[_NAV2]); } while (0) + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceDown, ImGuiNavInput_Activate); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceRight, ImGuiNavInput_Cancel); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceLeft, ImGuiNavInput_Menu); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceUp, ImGuiNavInput_Input); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadLeft, ImGuiNavInput_DpadLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadRight, ImGuiNavInput_DpadRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadUp, ImGuiNavInput_DpadUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadDown, ImGuiNavInput_DpadDown); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadL1, ImGuiNavInput_FocusPrev, ImGuiNavInput_TweakSlow); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadR1, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakFast); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickLeft, ImGuiNavInput_LStickLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickRight, ImGuiNavInput_LStickRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickUp, ImGuiNavInput_LStickUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickDown, ImGuiNavInput_LStickDown); + #undef NAV_MAP_KEY + } +#endif + +#endif + + // Synchronize io.KeyMods with individual modifiers io.KeyXXX bools, update aliases + io.KeyMods = GetMergedModsFromBools(); + for (int n = 0; n < ImGuiMouseButton_COUNT; n++) + UpdateAliasKey(MouseButtonToKey(n), io.MouseDown[n], io.MouseDown[n] ? 1.0f : 0.0f); + UpdateAliasKey(ImGuiKey_MouseWheelX, io.MouseWheelH != 0.0f, io.MouseWheelH); + UpdateAliasKey(ImGuiKey_MouseWheelY, io.MouseWheel != 0.0f, io.MouseWheel); + + // Clear gamepad data if disabled + if ((io.BackendFlags & ImGuiBackendFlags_HasGamepad) == 0) + for (int i = ImGuiKey_Gamepad_BEGIN; i < ImGuiKey_Gamepad_END; i++) + { + io.KeysData[i - ImGuiKey_KeysData_OFFSET].Down = false; + io.KeysData[i - ImGuiKey_KeysData_OFFSET].AnalogValue = 0.0f; + } + + // Update keys + for (int i = 0; i < ImGuiKey_KeysData_SIZE; i++) + { + ImGuiKeyData* key_data = &io.KeysData[i]; + key_data->DownDurationPrev = key_data->DownDuration; + key_data->DownDuration = key_data->Down ? (key_data->DownDuration < 0.0f ? 0.0f : key_data->DownDuration + io.DeltaTime) : -1.0f; + } + + // Update keys/input owner (named keys only): one entry per key + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyData* key_data = &io.KeysData[key - ImGuiKey_KeysData_OFFSET]; + ImGuiKeyOwnerData* owner_data = &g.KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; + owner_data->OwnerCurr = owner_data->OwnerNext; + if (!key_data->Down) // Important: ownership is released on the frame after a release. Ensure a 'MouseDown -> CloseWindow -> MouseUp' chain doesn't lead to someone else seeing the MouseUp. + owner_data->OwnerNext = ImGuiKeyOwner_None; + owner_data->LockThisFrame = owner_data->LockUntilRelease = owner_data->LockUntilRelease && key_data->Down; // Clear LockUntilRelease when key is not Down anymore + } + + UpdateKeyRoutingTable(&g.KeysRoutingTable); +} + static void ImGui::UpdateMouseInputs() { ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; // Round mouse position to avoid spreading non-rounded position (e.g. UpdateManualResize doesn't support them well) - if (IsMousePosValid(&g.IO.MousePos)) - g.IO.MousePos = g.MouseLastValidPos = ImFloor(g.IO.MousePos); + if (IsMousePosValid(&io.MousePos)) + io.MousePos = g.MouseLastValidPos = ImFloorSigned(io.MousePos); // If mouse just appeared or disappeared (usually denoted by -FLT_MAX components) we cancel out movement in MouseDelta - if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MousePosPrev)) - g.IO.MouseDelta = g.IO.MousePos - g.IO.MousePosPrev; + if (IsMousePosValid(&io.MousePos) && IsMousePosValid(&io.MousePosPrev)) + io.MouseDelta = io.MousePos - io.MousePosPrev; else - g.IO.MouseDelta = ImVec2(0.0f, 0.0f); + io.MouseDelta = ImVec2(0.0f, 0.0f); // If mouse moved we re-enable mouse hovering in case it was disabled by gamepad/keyboard. In theory should use a >0.0f threshold but would need to reset in everywhere we set this to true. - if (g.IO.MouseDelta.x != 0.0f || g.IO.MouseDelta.y != 0.0f) + if (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f) g.NavDisableMouseHover = false; - g.IO.MousePosPrev = g.IO.MousePos; - for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) + io.MousePosPrev = io.MousePos; + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) { - g.IO.MouseClicked[i] = g.IO.MouseDown[i] && g.IO.MouseDownDuration[i] < 0.0f; - g.IO.MouseClickedCount[i] = 0; // Will be filled below - g.IO.MouseReleased[i] = !g.IO.MouseDown[i] && g.IO.MouseDownDuration[i] >= 0.0f; - g.IO.MouseDownDurationPrev[i] = g.IO.MouseDownDuration[i]; - g.IO.MouseDownDuration[i] = g.IO.MouseDown[i] ? (g.IO.MouseDownDuration[i] < 0.0f ? 0.0f : g.IO.MouseDownDuration[i] + g.IO.DeltaTime) : -1.0f; - if (g.IO.MouseClicked[i]) + io.MouseClicked[i] = io.MouseDown[i] && io.MouseDownDuration[i] < 0.0f; + io.MouseClickedCount[i] = 0; // Will be filled below + io.MouseReleased[i] = !io.MouseDown[i] && io.MouseDownDuration[i] >= 0.0f; + io.MouseDownDurationPrev[i] = io.MouseDownDuration[i]; + io.MouseDownDuration[i] = io.MouseDown[i] ? (io.MouseDownDuration[i] < 0.0f ? 0.0f : io.MouseDownDuration[i] + io.DeltaTime) : -1.0f; + if (io.MouseClicked[i]) { bool is_repeated_click = false; - if ((float)(g.Time - g.IO.MouseClickedTime[i]) < g.IO.MouseDoubleClickTime) + if ((float)(g.Time - io.MouseClickedTime[i]) < io.MouseDoubleClickTime) { - ImVec2 delta_from_click_pos = IsMousePosValid(&g.IO.MousePos) ? (g.IO.MousePos - g.IO.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); - if (ImLengthSqr(delta_from_click_pos) < g.IO.MouseDoubleClickMaxDist * g.IO.MouseDoubleClickMaxDist) + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + if (ImLengthSqr(delta_from_click_pos) < io.MouseDoubleClickMaxDist * io.MouseDoubleClickMaxDist) is_repeated_click = true; } if (is_repeated_click) - g.IO.MouseClickedLastCount[i]++; + io.MouseClickedLastCount[i]++; else - g.IO.MouseClickedLastCount[i] = 1; - g.IO.MouseClickedTime[i] = g.Time; - g.IO.MouseClickedPos[i] = g.IO.MousePos; - g.IO.MouseClickedCount[i] = g.IO.MouseClickedLastCount[i]; - g.IO.MouseDragMaxDistanceAbs[i] = ImVec2(0.0f, 0.0f); - g.IO.MouseDragMaxDistanceSqr[i] = 0.0f; + io.MouseClickedLastCount[i] = 1; + io.MouseClickedTime[i] = g.Time; + io.MouseClickedPos[i] = io.MousePos; + io.MouseClickedCount[i] = io.MouseClickedLastCount[i]; + io.MouseDragMaxDistanceSqr[i] = 0.0f; } - else if (g.IO.MouseDown[i]) + else if (io.MouseDown[i]) { // Maintain the maximum distance we reaching from the initial click position, which is used with dragging threshold - ImVec2 delta_from_click_pos = IsMousePosValid(&g.IO.MousePos) ? (g.IO.MousePos - g.IO.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); - g.IO.MouseDragMaxDistanceSqr[i] = ImMax(g.IO.MouseDragMaxDistanceSqr[i], ImLengthSqr(delta_from_click_pos)); - g.IO.MouseDragMaxDistanceAbs[i].x = ImMax(g.IO.MouseDragMaxDistanceAbs[i].x, delta_from_click_pos.x < 0.0f ? -delta_from_click_pos.x : delta_from_click_pos.x); - g.IO.MouseDragMaxDistanceAbs[i].y = ImMax(g.IO.MouseDragMaxDistanceAbs[i].y, delta_from_click_pos.y < 0.0f ? -delta_from_click_pos.y : delta_from_click_pos.y); + float delta_sqr_click_pos = IsMousePosValid(&io.MousePos) ? ImLengthSqr(io.MousePos - io.MouseClickedPos[i]) : 0.0f; + io.MouseDragMaxDistanceSqr[i] = ImMax(io.MouseDragMaxDistanceSqr[i], delta_sqr_click_pos); } // We provide io.MouseDoubleClicked[] as a legacy service - g.IO.MouseDoubleClicked[i] = (g.IO.MouseClickedCount[i] == 2); + io.MouseDoubleClicked[i] = (io.MouseClickedCount[i] == 2); // Clicking any mouse button reactivate mouse hovering which may have been deactivated by gamepad/keyboard navigation - if (g.IO.MouseClicked[i]) + if (io.MouseClicked[i]) g.NavDisableMouseHover = false; } } -static void StartLockWheelingWindow(ImGuiWindow* window) +static void LockWheelingWindow(ImGuiWindow* window, float wheel_amount) { ImGuiContext& g = *GImGui; + if (window) + g.WheelingWindowReleaseTimer = ImMin(g.WheelingWindowReleaseTimer + ImAbs(wheel_amount) * WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER, WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER); + else + g.WheelingWindowReleaseTimer = 0.0f; if (g.WheelingWindow == window) return; + IMGUI_DEBUG_LOG_IO("LockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL"); g.WheelingWindow = window; g.WheelingWindowRefMousePos = g.IO.MousePos; - g.WheelingWindowTimer = WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER; } void ImGui::UpdateMouseWheel() @@ -3818,31 +4360,30 @@ void ImGui::UpdateMouseWheel() // Reset the locked window if we move the mouse or after the timer elapses if (g.WheelingWindow != NULL) { - g.WheelingWindowTimer -= g.IO.DeltaTime; + g.WheelingWindowReleaseTimer -= g.IO.DeltaTime; if (IsMousePosValid() && ImLengthSqr(g.IO.MousePos - g.WheelingWindowRefMousePos) > g.IO.MouseDragThreshold * g.IO.MouseDragThreshold) - g.WheelingWindowTimer = 0.0f; - if (g.WheelingWindowTimer <= 0.0f) - { - g.WheelingWindow = NULL; - g.WheelingWindowTimer = 0.0f; - } + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindowReleaseTimer <= 0.0f) + LockWheelingWindow(NULL, 0.0f); } - if (g.IO.MouseWheel == 0.0f && g.IO.MouseWheelH == 0.0f) - return; - - if ((g.ActiveId != 0 && g.ActiveIdUsingMouseWheel) || (g.HoveredIdPreviousFrame != 0 && g.HoveredIdPreviousFrameUsingMouseWheel)) + ImVec2 wheel; + wheel.x = TestKeyOwner(ImGuiKey_MouseWheelX, ImGuiKeyOwner_None) ? g.IO.MouseWheelH : 0.0f; + wheel.y = TestKeyOwner(ImGuiKey_MouseWheelY, ImGuiKeyOwner_None) ? g.IO.MouseWheel : 0.0f; + if (wheel.x == 0.0f && wheel.y == 0.0f) return; - ImGuiWindow* window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; - if (!window || window->Collapsed) + //IMGUI_DEBUG_LOG("MouseWheel X:%.3f Y:%.3f\n", wheel_x, wheel_y); + ImGuiWindow* mouse_window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; + if (!mouse_window || mouse_window->Collapsed) return; // Zoom / Scale window // FIXME-OBSOLETE: This is an old feature, it still works but pretty much nobody is using it and may be best redesigned. - if (g.IO.MouseWheel != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) + if (wheel.y != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) { - StartLockWheelingWindow(window); + LockWheelingWindow(mouse_window, wheel.y); + ImGuiWindow* window = mouse_window; const float new_font_scale = ImClamp(window->FontWindowScale + g.IO.MouseWheel * 0.10f, 0.50f, 2.50f); const float scale = new_font_scale / window->FontWindowScale; window->FontWindowScale = new_font_scale; @@ -3855,43 +4396,50 @@ void ImGui::UpdateMouseWheel() } return; } - - // Mouse wheel scrolling - // If a child window has the ImGuiWindowFlags_NoScrollWithMouse flag, we give a chance to scroll its parent if (g.IO.KeyCtrl) return; + // Mouse wheel scrolling // As a standard behavior holding SHIFT while using Vertical Mouse Wheel triggers Horizontal scroll instead // (we avoid doing it on OSX as it the OS input layer handles this already) const bool swap_axis = g.IO.KeyShift && !g.IO.ConfigMacOSXBehaviors; - const float wheel_y = swap_axis ? 0.0f : g.IO.MouseWheel; - const float wheel_x = swap_axis ? g.IO.MouseWheel : g.IO.MouseWheelH; + if (swap_axis) + { + wheel.x = wheel.y; + wheel.y = 0.0f; + } // Vertical Mouse Wheel scrolling - if (wheel_y != 0.0f) + // Bubble up into parent window if: + // - a child window doesn't allow any scrolling. + // - a child window doesn't need scrolling because it is already at the edge for the direction we are going in. + // - a child window has the ImGuiWindowFlags_NoScrollWithMouse flag. + if (wheel.y != 0.0f) { - StartLockWheelingWindow(window); + ImGuiWindow* window = mouse_window; while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.y == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) window = window->ParentWindow; if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) { + LockWheelingWindow(mouse_window, wheel.y); float max_step = window->InnerRect.GetHeight() * 0.67f; float scroll_step = ImFloor(ImMin(5 * window->CalcFontSize(), max_step)); - SetScrollY(window, window->Scroll.y - wheel_y * scroll_step); + SetScrollY(window, window->Scroll.y - wheel.y * scroll_step); } } // Horizontal Mouse Wheel scrolling, or Vertical Mouse Wheel w/ Shift held - if (wheel_x != 0.0f) + if (wheel.x != 0.0f) { - StartLockWheelingWindow(window); + ImGuiWindow* window = mouse_window; while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.x == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) window = window->ParentWindow; if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) { + LockWheelingWindow(mouse_window, wheel.x); float max_step = window->InnerRect.GetWidth() * 0.67f; float scroll_step = ImFloor(ImMin(2 * window->CalcFontSize(), max_step)); - SetScrollX(window, window->Scroll.x - wheel_x * scroll_step); + SetScrollX(window, window->Scroll.x - wheel.x * scroll_step); } } } @@ -3973,17 +4521,6 @@ void ImGui::UpdateHoveredWindowAndCaptureFlags() io.WantTextInput = (g.WantTextInputNextFrame != -1) ? (g.WantTextInputNextFrame != 0) : false; } -ImGuiKeyModFlags ImGui::GetMergedKeyModFlags() -{ - ImGuiContext& g = *GImGui; - ImGuiKeyModFlags key_mod_flags = ImGuiKeyModFlags_None; - if (g.IO.KeyCtrl) { key_mod_flags |= ImGuiKeyModFlags_Ctrl; } - if (g.IO.KeyShift) { key_mod_flags |= ImGuiKeyModFlags_Shift; } - if (g.IO.KeyAlt) { key_mod_flags |= ImGuiKeyModFlags_Alt; } - if (g.IO.KeySuper) { key_mod_flags |= ImGuiKeyModFlags_Super; } - return key_mod_flags; -} - void ImGui::NewFrame() { IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); @@ -4060,15 +4597,20 @@ void ImGui::NewFrame() if (g.HoveredId && g.ActiveId != g.HoveredId) g.HoveredIdNotActiveTimer += g.IO.DeltaTime; g.HoveredIdPreviousFrame = g.HoveredId; - g.HoveredIdPreviousFrameUsingMouseWheel = g.HoveredIdUsingMouseWheel; g.HoveredId = 0; g.HoveredIdAllowOverlap = false; - g.HoveredIdUsingMouseWheel = false; g.HoveredIdDisabled = false; - // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) - if (g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId && g.ActiveId != 0) + // Clear ActiveID if the item is not alive anymore. + // In 1.87, the common most call to KeepAliveID() was moved from GetID() to ItemAdd(). + // As a result, custom widget using ButtonBehavior() _without_ ItemAdd() need to call KeepAliveID() themselves. + if (g.ActiveId != 0 && g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("NewFrame(): ClearActiveID() because it isn't marked alive anymore!\n"); ClearActiveID(); + } + + // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) if (g.ActiveId) g.ActiveIdTimer += g.IO.DeltaTime; g.LastActiveIdTimer += g.IO.DeltaTime; @@ -4084,8 +4626,41 @@ void ImGui::NewFrame() if (g.ActiveId == 0) { g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO g.ActiveIdUsingNavInputMask = 0x00; - g.ActiveIdUsingKeyInputMask = 0x00; +#endif + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (g.ActiveId == 0) + g.ActiveIdUsingNavInputMask = 0; + else if (g.ActiveIdUsingNavInputMask != 0) + { + // If your custom widget code used: { g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); } + // Since IMGUI_VERSION_NUM >= 18804 it should be: { SetKeyOwner(ImGuiKey_Escape, g.ActiveId); SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId); } + if (g.ActiveIdUsingNavInputMask & (1 << ImGuiNavInput_Cancel)) + SetKeyOwner(ImGuiKey_Escape, g.ActiveId); + if (g.ActiveIdUsingNavInputMask & ~(1 << ImGuiNavInput_Cancel)) + IM_ASSERT(0); // Other values unsupported + } +#endif + + // Update hover delay for IsItemHovered() with delays and tooltips + g.HoverDelayIdPreviousFrame = g.HoverDelayId; + if (g.HoverDelayId != 0) + { + //if (g.IO.MouseDelta.x == 0.0f && g.IO.MouseDelta.y == 0.0f) // Need design/flags + g.HoverDelayTimer += g.IO.DeltaTime; + g.HoverDelayClearTimer = 0.0f; + g.HoverDelayId = 0; + } + else if (g.HoverDelayTimer > 0.0f) + { + // This gives a little bit of leeway before clearing the hover timer, allowing mouse to cross gaps + g.HoverDelayClearTimer += g.IO.DeltaTime; + if (g.HoverDelayClearTimer >= ImMax(0.20f, g.IO.DeltaTime * 2.0f)) // ~6 frames at 30 Hz + allow for low framerate + g.HoverDelayTimer = g.HoverDelayClearTimer = 0.0f; // May want a decaying timer, in which case need to clamp at max first, based on max of caller last requested timer. } // Drag and drop @@ -4100,20 +4675,17 @@ void ImGui::NewFrame() //if (g.IO.AppFocusLost) // ClosePopupsExceptModals(); - // Clear buttons state when focus is lost - // (this is useful so e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger the Alt menu toggle) - if (g.IO.AppFocusLost) - { - g.IO.ClearInputKeys(); - g.IO.AppFocusLost = false; - } + // Process input queue (trickle as many events as possible) + g.InputEventsTrail.resize(0); + UpdateInputEvents(g.IO.ConfigInputTrickleEventQueue); // Update keyboard input state - // Synchronize io.KeyMods with individual modifiers io.KeyXXX bools - g.IO.KeyMods = GetMergedKeyModFlags(); - memcpy(g.IO.KeysDownDurationPrev, g.IO.KeysDownDuration, sizeof(g.IO.KeysDownDuration)); - for (int i = 0; i < IM_ARRAYSIZE(g.IO.KeysDown); i++) - g.IO.KeysDownDuration[i] = g.IO.KeysDown[i] ? (g.IO.KeysDownDuration[i] < 0.0f ? 0.0f : g.IO.KeysDownDuration[i] + g.IO.DeltaTime) : -1.0f; + UpdateKeyboardInputs(); + + //IM_ASSERT(g.IO.KeyCtrl == IsKeyDown(ImGuiKey_LeftCtrl) || IsKeyDown(ImGuiKey_RightCtrl)); + //IM_ASSERT(g.IO.KeyShift == IsKeyDown(ImGuiKey_LeftShift) || IsKeyDown(ImGuiKey_RightShift)); + //IM_ASSERT(g.IO.KeyAlt == IsKeyDown(ImGuiKey_LeftAlt) || IsKeyDown(ImGuiKey_RightAlt)); + //IM_ASSERT(g.IO.KeySuper == IsKeyDown(ImGuiKey_LeftSuper) || IsKeyDown(ImGuiKey_RightSuper)); // Update gamepad/keyboard navigation NavUpdate(); @@ -4136,7 +4708,10 @@ void ImGui::NewFrame() g.MouseCursor = ImGuiMouseCursor_Arrow; g.WantCaptureMouseNextFrame = g.WantCaptureKeyboardNextFrame = g.WantTextInputNextFrame = -1; - g.PlatformImePos = ImVec2(1.0f, 1.0f); // OS Input Method Editor showing on top-left of our window by default + + // Platform IME data: reset for the frame + g.PlatformImeDataPrev = g.PlatformImeData; + g.PlatformImeData.WantVisible = false; // Mouse wheel scrolling, scale UpdateMouseWheel(); @@ -4148,9 +4723,10 @@ void ImGui::NewFrame() { ImGuiWindow* window = g.Windows[i]; window->WasActive = window->Active; - window->BeginCount = 0; window->Active = false; window->WriteAccessed = false; + window->BeginCountPreviousFrame = window->BeginCount; + window->BeginCount = 0; // Garbage collect transient buffers of recently unused windows if (!window->WasActive && !window->MemoryCompacted && window->LastTimeActive < memory_compact_start_time) @@ -4183,10 +4759,12 @@ void ImGui::NewFrame() // [DEBUG] Update debug features UpdateDebugToolItemPicker(); UpdateDebugToolStackQueries(); + if (g.DebugLocateFrames > 0 && --g.DebugLocateFrames == 0) + g.DebugLocateId = 0; // Create implicit/fallback window - which we will only render it if the user has added something to it. // We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags. - // This fallback is particularly important as it avoid ImGui:: calls from crashing. + // This fallback is particularly important as it prevents ImGui:: calls from crashing. g.WithinFrameScopeWithImplicitWindow = true; SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); Begin("Debug##Default"); @@ -4195,12 +4773,24 @@ void ImGui::NewFrame() CallContextHooks(&g, ImGuiContextHookType_NewFramePost); } -void ImGui::Initialize(ImGuiContext* context) +// IMPORTANT: ###xxx suffixes must be same in ALL languages +static const ImGuiLocEntry GLocalizationEntriesEnUS[] = +{ + { ImGuiLocKey_TableSizeOne, "Size column to fit###SizeOne" }, + { ImGuiLocKey_TableSizeAllFit, "Size all columns to fit###SizeAll" }, + { ImGuiLocKey_TableSizeAllDefault, "Size all columns to default###SizeAll" }, + { ImGuiLocKey_TableResetOrder, "Reset order###ResetOrder" }, + { ImGuiLocKey_WindowingMainMenuBar, "(Main menu bar)" }, + { ImGuiLocKey_WindowingPopup, "(Popup)" }, + { ImGuiLocKey_WindowingUntitled, "(Untitled)" }, +}; + +void ImGui::Initialize() { - ImGuiContext& g = *context; + ImGuiContext& g = *GImGui; IM_ASSERT(!g.Initialized && !g.SettingsLoaded); - // Add .ini handle for ImGuiWindow type + // Add .ini handle for ImGuiWindow and ImGuiTable types { ImGuiSettingsHandler ini_handler; ini_handler.TypeName = "Window"; @@ -4210,15 +4800,17 @@ void ImGui::Initialize(ImGuiContext* context) ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine; ini_handler.ApplyAllFn = WindowSettingsHandler_ApplyAll; ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll; - g.SettingsHandlers.push_back(ini_handler); + AddSettingsHandler(&ini_handler); } + TableSettingsAddSettingsHandler(); - // Add .ini handle for ImGuiTable type - TableSettingsInstallHandler(context); + // Setup default localization table + LocalizeRegisterEntries(GLocalizationEntriesEnUS, IM_ARRAYSIZE(GLocalizationEntriesEnUS)); // Create default viewport ImGuiViewportP* viewport = IM_NEW(ImGuiViewportP)(); g.Viewports.push_back(viewport); + g.TempBuffer.resize(1024 * 3 + 1, 0); #ifdef IMGUI_HAS_DOCK #endif @@ -4227,16 +4819,17 @@ void ImGui::Initialize(ImGuiContext* context) } // This function is merely here to free heap allocations. -void ImGui::Shutdown(ImGuiContext* context) +void ImGui::Shutdown() { // The fonts atlas can be used prior to calling NewFrame(), so we clear it even if g.Initialized is FALSE (which would happen if we never called NewFrame) - ImGuiContext& g = *context; + ImGuiContext& g = *GImGui; if (g.IO.Fonts && g.FontAtlasOwnedByContext) { g.IO.Fonts->Locked = false; IM_DELETE(g.IO.Fonts); } g.IO.Fonts = NULL; + g.DrawListSharedData.TempBuffer.clear(); // Cleanup of other data are conditional on actually having initialized Dear ImGui. if (!g.Initialized) @@ -4244,12 +4837,7 @@ void ImGui::Shutdown(ImGuiContext* context) // Save settings (unless we haven't attempted to load them: CreateContext/DestroyContext without a call to NewFrame shouldn't save an empty file) if (g.SettingsLoaded && g.IO.IniFilename != NULL) - { - ImGuiContext* backup_context = GImGui; - SetCurrentContext(&g); SaveIniSettingsToDisk(g.IO.IniFilename); - SetCurrentContext(backup_context); - } CallContextHooks(&g, ImGuiContextHookType_Shutdown); @@ -4264,6 +4852,9 @@ void ImGui::Shutdown(ImGuiContext* context) g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; g.ActiveIdWindow = g.ActiveIdPreviousFrameWindow = NULL; g.MovingWindow = NULL; + + g.KeysRoutingTable.Clear(); + g.ColorStack.clear(); g.StyleVarStack.clear(); g.FontStack.clear(); @@ -4298,6 +4889,8 @@ void ImGui::Shutdown(ImGuiContext* context) g.LogFile = NULL; } g.LogBuffer.clear(); + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); g.Initialized = false; } @@ -4332,11 +4925,10 @@ static void AddWindowToSortBuffer(ImVector* out_sorted_windows, Im static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list) { - // Remove trailing command if unused. - // Technically we could return directly instead of popping, but this make things looks neat in Metrics/Debugger window as well. - draw_list->_PopUnusedDrawCmd(); if (draw_list->CmdBuffer.Size == 0) return; + if (draw_list->CmdBuffer.Size == 1 && draw_list->CmdBuffer[0].ElemCount == 0 && draw_list->CmdBuffer[0].UserCallback == NULL) + return; // Draw list sanity check. Detect mismatch between PrimReserve() calls and incrementing _VtxCurrentIdx, _VtxWritePtr etc. // May trigger for you if you are using PrimXXX functions incorrectly. @@ -4422,8 +5014,10 @@ static void SetupViewportDrawData(ImGuiViewportP* viewport, ImVectorFramebufferScale = io.DisplayFramebufferScale; for (int n = 0; n < draw_lists->Size; n++) { - draw_data->TotalVtxCount += draw_lists->Data[n]->VtxBuffer.Size; - draw_data->TotalIdxCount += draw_lists->Data[n]->IdxBuffer.Size; + ImDrawList* draw_list = draw_lists->Data[n]; + draw_list->_PopUnusedDrawCmd(); + draw_data->TotalVtxCount += draw_list->VtxBuffer.Size; + draw_data->TotalIdxCount += draw_list->IdxBuffer.Size; } } @@ -4459,6 +5053,7 @@ static void ImGui::RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 { // We've already called AddWindowToDrawData() which called DrawList->ChannelsMerge() on DockNodeHost windows, // and draw list have been trimmed already, hence the explicit recreation of a draw command if missing. + // FIXME: This is creating complication, might be simpler if we could inject a drawlist in drawdata at a given position and not attempt to manipulate ImDrawCmd order. ImDrawList* draw_list = window->RootWindow->DrawList; if (draw_list->CmdBuffer.Size == 0) draw_list->AddDrawCmd(); @@ -4469,6 +5064,7 @@ static void ImGui::RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 draw_list->CmdBuffer.pop_back(); draw_list->CmdBuffer.push_front(cmd); draw_list->PopClipRect(); + draw_list->AddDrawCmd(); // We need to create a command as CmdBuffer.back().IdxOffset won't be correct if we append to same command. } } @@ -4493,6 +5089,8 @@ static void ImGui::RenderDimmedBackgrounds() { ImGuiContext& g = *GImGui; ImGuiWindow* modal_window = GetTopMostAndVisiblePopupModal(); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + return; const bool dim_bg_for_modal = (modal_window != NULL); const bool dim_bg_for_window_list = (g.NavWindowingTargetAnim != NULL && g.NavWindowingTargetAnim->Active); if (!dim_bg_for_modal && !dim_bg_for_window_list) @@ -4540,12 +5138,9 @@ void ImGui::EndFrame() ErrorCheckEndFrameSanityChecks(); - // Notify OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) - if (g.IO.ImeSetInputScreenPosFn && (g.PlatformImeLastPos.x == FLT_MAX || ImLengthSqr(g.PlatformImeLastPos - g.PlatformImePos) > 0.0001f)) - { - g.IO.ImeSetInputScreenPosFn((int)g.PlatformImePos.x, (int)g.PlatformImePos.y); - g.PlatformImeLastPos = g.PlatformImePos; - } + // Notify Platform/OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) + if (g.IO.SetPlatformImeDataFn && memcmp(&g.PlatformImeData, &g.PlatformImeDataPrev, sizeof(ImGuiPlatformImeData)) != 0) + g.IO.SetPlatformImeDataFn(GetMainViewport(), &g.PlatformImeData); // Hide implicit/fallback "Debug" window if it hasn't been used g.WithinFrameScopeWithImplicitWindow = false; @@ -4601,10 +5196,9 @@ void ImGui::EndFrame() g.IO.Fonts->Locked = false; // Clear Input data for next frame + g.IO.AppFocusLost = false; g.IO.MouseWheel = g.IO.MouseWheelH = 0.0f; g.IO.InputQueueCharacters.resize(0); - g.IO.KeyModsPrev = g.IO.KeyMods; // doing it here is better than in NewFrame() as we'll tolerate backend writing to KeyMods. If we want to firmly disallow it we should detect it. - memset(g.IO.NavInputs, 0, sizeof(g.IO.NavInputs)); CallContextHooks(&g, ImGuiContextHookType_EndFramePost); } @@ -4653,6 +5247,10 @@ void ImGui::Render() if (windows_to_render_top_most[n] && IsWindowActiveAndVisible(windows_to_render_top_most[n])) // NavWindowingTarget is always temporarily displayed as the top-most window AddRootWindowToDrawData(windows_to_render_top_most[n]); + // Draw software mouse cursor if requested by io.MouseDrawCursor flag + if (g.IO.MouseDrawCursor && first_render_of_frame && g.MouseCursor != ImGuiMouseCursor_None) + RenderMouseCursor(g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); + // Setup ImDrawData structures for end-user g.IO.MetricsRenderVertices = g.IO.MetricsRenderIndices = 0; for (int n = 0; n < g.Viewports.Size; n++) @@ -4660,10 +5258,6 @@ void ImGui::Render() ImGuiViewportP* viewport = g.Viewports[n]; viewport->DrawDataBuilder.FlattenIntoSingleLayer(); - // Draw software mouse cursor if requested by io.MouseDrawCursor flag - if (g.IO.MouseDrawCursor && first_render_of_frame) - RenderMouseCursor(GetForegroundDrawList(viewport), g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); - // Add foreground ImDrawList (for each active viewport) if (viewport->DrawLists[1] != NULL) AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[0], GetForegroundDrawList(viewport)); @@ -4761,238 +5355,6 @@ static void FindHoveredWindow() g.HoveredWindowUnderMovingWindow = hovered_window_ignoring_moving_window; } -// Test if mouse cursor is hovering given rectangle -// NB- Rectangle is clipped by our current clip setting -// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) -bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) -{ - ImGuiContext& g = *GImGui; - - // Clip - ImRect rect_clipped(r_min, r_max); - if (clip) - rect_clipped.ClipWith(g.CurrentWindow->ClipRect); - - // Expand for touch input - const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding); - if (!rect_for_touch.Contains(g.IO.MousePos)) - return false; - return true; -} - -int ImGui::GetKeyIndex(ImGuiKey imgui_key) -{ - IM_ASSERT(imgui_key >= 0 && imgui_key < ImGuiKey_COUNT); - ImGuiContext& g = *GImGui; - return g.IO.KeyMap[imgui_key]; -} - -// Note that dear imgui doesn't know the semantic of each entry of io.KeysDown[]! -// Use your own indices/enums according to how your backend/engine stored them into io.KeysDown[]! -bool ImGui::IsKeyDown(int user_key_index) -{ - if (user_key_index < 0) - return false; - ImGuiContext& g = *GImGui; - IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - return g.IO.KeysDown[user_key_index]; -} - -// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) -// t1 = current time (e.g.: g.Time) -// An event is triggered at: -// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N -int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) -{ - if (t1 == 0.0f) - return 1; - if (t0 >= t1) - return 0; - if (repeat_rate <= 0.0f) - return (t0 < repeat_delay) && (t1 >= repeat_delay); - const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); - const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); - const int count = count_t1 - count_t0; - return count; -} - -int ImGui::GetKeyPressedAmount(int key_index, float repeat_delay, float repeat_rate) -{ - ImGuiContext& g = *GImGui; - if (key_index < 0) - return 0; - IM_ASSERT(key_index >= 0 && key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - const float t = g.IO.KeysDownDuration[key_index]; - return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); -} - -bool ImGui::IsKeyPressed(int user_key_index, bool repeat) -{ - ImGuiContext& g = *GImGui; - if (user_key_index < 0) - return false; - IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - const float t = g.IO.KeysDownDuration[user_key_index]; - if (t == 0.0f) - return true; - if (repeat && t > g.IO.KeyRepeatDelay) - return GetKeyPressedAmount(user_key_index, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; - return false; -} - -bool ImGui::IsKeyReleased(int user_key_index) -{ - ImGuiContext& g = *GImGui; - if (user_key_index < 0) return false; - IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - return g.IO.KeysDownDurationPrev[user_key_index] >= 0.0f && !g.IO.KeysDown[user_key_index]; -} - -bool ImGui::IsMouseDown(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseDown[button]; -} - -bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - const float t = g.IO.MouseDownDuration[button]; - if (t == 0.0f) - return true; - - if (repeat && t > g.IO.KeyRepeatDelay) - { - // FIXME: 2019/05/03: Our old repeat code was wrong here and led to doubling the repeat rate, which made it an ok rate for repeat on mouse hold. - int amount = CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate * 0.50f); - if (amount > 0) - return true; - } - return false; -} - -bool ImGui::IsMouseReleased(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseReleased[button]; -} - -bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseClickedCount[button] == 2; -} - -int ImGui::GetMouseClickedCount(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseClickedCount[button]; -} - -// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. -// [Internal] This doesn't test if the button is pressed -bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - if (lock_threshold < 0.0f) - lock_threshold = g.IO.MouseDragThreshold; - return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; -} - -bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - if (!g.IO.MouseDown[button]) - return false; - return IsMouseDragPastThreshold(button, lock_threshold); -} - -ImVec2 ImGui::GetMousePos() -{ - ImGuiContext& g = *GImGui; - return g.IO.MousePos; -} - -// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! -ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() -{ - ImGuiContext& g = *GImGui; - if (g.BeginPopupStack.Size > 0) - return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; - return g.IO.MousePos; -} - -// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. -bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) -{ - // The assert is only to silence a false-positive in XCode Static Analysis. - // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). - IM_ASSERT(GImGui != NULL); - const float MOUSE_INVALID = -256000.0f; - ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; - return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; -} - -bool ImGui::IsAnyMouseDown() -{ - ImGuiContext& g = *GImGui; - for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) - if (g.IO.MouseDown[n]) - return true; - return false; -} - -// Return the delta from the initial clicking position while the mouse button is clicked or was just released. -// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. -// NB: This is only valid if IsMousePosValid(). backends in theory should always keep mouse position valid when dragging even outside the client window. -ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - if (lock_threshold < 0.0f) - lock_threshold = g.IO.MouseDragThreshold; - if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) - if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) - if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) - return g.IO.MousePos - g.IO.MouseClickedPos[button]; - return ImVec2(0.0f, 0.0f); -} - -void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr - g.IO.MouseClickedPos[button] = g.IO.MousePos; -} - -ImGuiMouseCursor ImGui::GetMouseCursor() -{ - return GImGui->MouseCursor; -} - -void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) -{ - GImGui->MouseCursor = cursor_type; -} - -void ImGui::CaptureKeyboardFromApp(bool capture) -{ - GImGui->WantCaptureKeyboardNextFrame = capture ? 1 : 0; -} - -void ImGui::CaptureMouseFromApp(bool capture) -{ - GImGui->WantCaptureMouseNextFrame = capture ? 1 : 0; -} - bool ImGui::IsItemActive() { ImGuiContext& g = *GImGui; @@ -5073,7 +5435,7 @@ bool ImGui::IsAnyItemFocused() bool ImGui::IsItemVisible() { ImGuiContext& g = *GImGui; - return g.CurrentWindow->ClipRect.Overlaps(g.LastItemData.Rect); + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) != 0; } bool ImGui::IsItemEdited() @@ -5094,23 +5456,13 @@ void ImGui::SetItemAllowOverlap() g.ActiveIdAllowOverlap = true; } -void ImGui::SetItemUsingMouseWheel() -{ - ImGuiContext& g = *GImGui; - ImGuiID id = g.LastItemData.ID; - if (g.HoveredId == id) - g.HoveredIdUsingMouseWheel = true; - if (g.ActiveId == id) - g.ActiveIdUsingMouseWheel = true; -} - -void ImGui::SetActiveIdUsingNavAndKeys() +// FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version for the two users of this function. +void ImGui::SetActiveIdUsingAllKeyboardKeys() { ImGuiContext& g = *GImGui; IM_ASSERT(g.ActiveId != 0); - g.ActiveIdUsingNavDirMask = ~(ImU32)0; - g.ActiveIdUsingNavInputMask = ~(ImU32)0; - g.ActiveIdUsingKeyInputMask = ~(ImU64)0; + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_COUNT) - 1; + g.ActiveIdUsingAllKeyboardKeys = true; NavMoveRequestCancel(); } @@ -5145,21 +5497,22 @@ bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, b ImVec2 size = ImFloor(size_arg); const int auto_fit_axises = ((size.x == 0.0f) ? (1 << ImGuiAxis_X) : 0x00) | ((size.y == 0.0f) ? (1 << ImGuiAxis_Y) : 0x00); if (size.x <= 0.0f) - size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too much issues) + size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too many issues) if (size.y <= 0.0f) size.y = ImMax(content_avail.y + size.y, 4.0f); SetNextWindowSize(size); // Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value. + const char* temp_window_name; if (name) - ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%s/%s_%08X", parent_window->Name, name, id); + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%s_%08X", parent_window->Name, name, id); else - ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%s/%08X", parent_window->Name, id); + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%08X", parent_window->Name, id); const float backup_border_size = g.Style.ChildBorderSize; if (!border) g.Style.ChildBorderSize = 0.0f; - bool ret = Begin(g.TempBuffer, NULL, flags); + bool ret = Begin(temp_window_name, NULL, flags); g.Style.ChildBorderSize = backup_border_size; ImGuiWindow* child_window = g.CurrentWindow; @@ -5291,7 +5644,7 @@ static void UpdateWindowInFocusOrderList(ImGuiWindow* window, bool just_created, { ImGuiContext& g = *GImGui; - const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0; + const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0 && ((new_flags & ImGuiWindowFlags_Popup) == 0 || (new_flags & ImGuiWindowFlags_ChildMenu) != 0); const bool child_flag_changed = new_is_explicit_child != window->IsExplicitChild; if ((just_created || child_flag_changed) && !new_is_explicit_child) { @@ -5333,7 +5686,7 @@ static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); ApplyWindowSettings(window, settings); } - window->DC.CursorStartPos = window->DC.CursorMaxPos = window->Pos; // So first call to CalcContentSize() doesn't return crazy values + window->DC.CursorStartPos = window->DC.CursorMaxPos = window->DC.IdealMaxPos = window->Pos; // So first call to CalcWindowContentSizes() doesn't return crazy values if ((flags & ImGuiWindowFlags_AlwaysAutoResize) != 0) { @@ -5353,7 +5706,6 @@ static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) g.Windows.push_front(window); // Quite slow but rare and only once else g.Windows.push_back(window); - UpdateWindowInFocusOrderList(window, true, window->Flags); return window; } @@ -5434,8 +5786,7 @@ static ImVec2 CalcWindowAutoFitSize(ImGuiWindow* window, const ImVec2& size_cont if (is_popup || is_menu) // Popups and menus bypass style.WindowMinSize by default, but we give then a non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups) size_min = ImMin(size_min, ImVec2(4.0f, 4.0f)); - // FIXME-VIEWPORT-WORKAREA: May want to use GetWorkSize() instead of Size depending on the type of windows? - ImVec2 avail_size = ImGui::GetMainViewport()->Size; + ImVec2 avail_size = ImGui::GetMainViewport()->WorkSize; ImVec2 size_auto_fit = ImClamp(size_desired, size_min, ImMax(size_min, avail_size - style.DisplaySafeAreaPadding * 2.0f)); // When the window cannot fit all contents (either because of constraints, either because screen is too small), @@ -5549,7 +5900,7 @@ ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) } // Handle resize for: Resize Grips, Borders, Gamepad -// Return true when using auto-fit (double click on resize grip) +// Return true when using auto-fit (double-click on resize grip) static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect) { ImGuiContext& g = *GImGui; @@ -5557,7 +5908,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) return false; - if (window->WasActive == false) // Early out to avoid running this code for e.g. an hidden implicit/fallback Debug window. + if (window->WasActive == false) // Early out to avoid running this code for e.g. a hidden implicit/fallback Debug window. return false; bool ret_auto_fit = false; @@ -5585,6 +5936,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s if (resize_rect.Min.x > resize_rect.Max.x) ImSwap(resize_rect.Min.x, resize_rect.Max.x); if (resize_rect.Min.y > resize_rect.Max.y) ImSwap(resize_rect.Min.y, resize_rect.Max.y); ImGuiID resize_grip_id = window->GetID(resize_grip_n); // == GetWindowResizeCornerID() + ItemAdd(resize_rect, resize_grip_id, NULL, ImGuiItemFlags_NoNav); ButtonBehavior(resize_rect, resize_grip_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); //GetForegroundDrawList(window)->AddRect(resize_rect.Min, resize_rect.Max, IM_COL32(255, 255, 0, 255)); if (hovered || held) @@ -5620,6 +5972,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s bool hovered, held; ImRect border_rect = GetResizeBorderRect(window, border_n, grip_hover_inner_size, WINDOWS_HOVER_PADDING); ImGuiID border_id = window->GetID(border_n + 4); // == GetWindowResizeBorderID() + ItemAdd(border_rect, border_id, NULL, ImGuiItemFlags_NoNav); ButtonBehavior(border_rect, border_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); //GetForegroundDrawLists(window)->AddRect(border_rect.Min, border_rect.Max, IM_COL32(255, 255, 0, 255)); if ((hovered && g.HoveredIdTimer > WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER) || held) @@ -5644,23 +5997,31 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s window->DC.NavLayerCurrent = ImGuiNavLayer_Main; // Navigation resize (keyboard/gamepad) + // FIXME: This cannot be moved to NavUpdateWindowing() because CalcWindowSizeAfterConstraint() need to callback into user. + // Not even sure the callback works here. if (g.NavWindowingTarget && g.NavWindowingTarget->RootWindow == window) { - ImVec2 nav_resize_delta; + ImVec2 nav_resize_dir; if (g.NavInputSource == ImGuiInputSource_Keyboard && g.IO.KeyShift) - nav_resize_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_RawKeyboard, ImGuiInputReadMode_Down); + nav_resize_dir = GetKeyVector2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); if (g.NavInputSource == ImGuiInputSource_Gamepad) - nav_resize_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_Down); - if (nav_resize_delta.x != 0.0f || nav_resize_delta.y != 0.0f) + nav_resize_dir = GetKeyVector2d(ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown); + if (nav_resize_dir.x != 0.0f || nav_resize_dir.y != 0.0f) { const float NAV_RESIZE_SPEED = 600.0f; - nav_resize_delta *= ImFloor(NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y)); - nav_resize_delta = ImMax(nav_resize_delta, visibility_rect.Min - window->Pos - window->Size); + const float resize_step = NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaSize += nav_resize_dir * resize_step; + g.NavWindowingAccumDeltaSize = ImMax(g.NavWindowingAccumDeltaSize, visibility_rect.Min - window->Pos - window->Size); // We need Pos+Size >= visibility_rect.Min, so Size >= visibility_rect.Min - Pos, so size_delta >= visibility_rect.Min - window->Pos - window->Size g.NavWindowingToggleLayer = false; g.NavDisableMouseHover = true; resize_grip_col[0] = GetColorU32(ImGuiCol_ResizeGripActive); - // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. - size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + nav_resize_delta); + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaSize); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. + size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + accum_floored); + g.NavWindowingAccumDeltaSize -= accum_floored; + } } } @@ -5680,7 +6041,7 @@ static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& s return ret_auto_fit; } -static inline void ClampWindowRect(ImGuiWindow* window, const ImRect& visibility_rect) +static inline void ClampWindowPos(ImGuiWindow* window, const ImRect& visibility_rect) { ImGuiContext& g = *GImGui; ImVec2 size_for_clamping = window->Size; @@ -5726,7 +6087,7 @@ void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar window->SkipItems = false; // Draw window + handle manual resize - // As we highlight the title bar when want_focus is set, multiple reappearing windows will have have their title bar highlighted on their reappearing frame. + // As we highlight the title bar when want_focus is set, multiple reappearing windows will have their title bar highlighted on their reappearing frame. const float window_rounding = window->WindowRounding; const float window_border_size = window->WindowBorderSize; if (window->Collapsed) @@ -5923,7 +6284,9 @@ static ImGuiWindow* ImGui::FindBlockingModal(ImGuiWindow* window) for (int i = g.OpenPopupStack.Size - 1; i >= 0; i--) { ImGuiWindow* popup_window = g.OpenPopupStack.Data[i].Window; - if (popup_window == NULL || !popup_window->WasActive || !(popup_window->Flags & ImGuiWindowFlags_Modal)) // Check WasActive, because this code may run before popup renders on current frame. + if (popup_window == NULL || !(popup_window->Flags & ImGuiWindowFlags_Modal)) + continue; + if (!popup_window->Active && !popup_window->WasActive) // Check WasActive, because this code may run before popup renders on current frame, also check Active to handle newly created windows. continue; if (IsWindowWithinBeginStackOf(window, popup_window)) // Window is rendered over last modal, no render order change needed. break; @@ -5954,8 +6317,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) const bool window_just_created = (window == NULL); if (window_just_created) window = CreateNewWindow(name, flags); - else - UpdateWindowInFocusOrderList(window, window_just_created, flags); // Automatically disable manual moving/resizing when NoInputs is set if ((flags & ImGuiWindowFlags_NoInputs) == ImGuiWindowFlags_NoInputs) @@ -5983,6 +6344,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // Update Flags, LastFrameActive, BeginOrderXXX fields if (first_begin_of_the_frame) { + UpdateWindowInFocusOrderList(window, window_just_created, flags); window->Flags = (ImGuiWindowFlags)flags; window->LastFrameActive = current_frame; window->LastTimeActive = (float)g.Time; @@ -6011,25 +6373,31 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) window_stack_data.ParentLastItemDataBackup = g.LastItemData; window_stack_data.StackSizesOnBegin.SetToCurrentState(); g.CurrentWindowStack.push_back(window_stack_data); - g.CurrentWindow = NULL; if (flags & ImGuiWindowFlags_ChildMenu) g.BeginMenuCount++; + // Update ->RootWindow and others pointers (before any possible call to FocusWindow) + if (first_begin_of_the_frame) + { + UpdateWindowParentAndRootLinks(window, flags, parent_window); + window->ParentWindowInBeginStack = parent_window_in_stack; + } + + // Add to focus scope stack + PushFocusScope(window->ID); + window->NavRootFocusScopeId = g.CurrentFocusScopeId; + g.CurrentWindow = NULL; + + // Add to popup stack if (flags & ImGuiWindowFlags_Popup) { ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; popup_ref.Window = window; + popup_ref.ParentNavLayer = parent_window_in_stack->DC.NavLayerCurrent; g.BeginPopupStack.push_back(popup_ref); window->PopupId = popup_ref.PopupId; } - // Update ->RootWindow and others pointers (before any possible call to FocusWindow) - if (first_begin_of_the_frame) - { - UpdateWindowParentAndRootLinks(window, flags, parent_window); - window->ParentWindowInBeginStack = parent_window_in_stack; - } - // Process SetNextWindow***() calls // (FIXME: Consider splitting the HasXXX flags into X/Y components bool window_pos_set_by_api = false; @@ -6085,6 +6453,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) { // Initialize const bool window_is_child_tooltip = (flags & ImGuiWindowFlags_ChildWindow) && (flags & ImGuiWindowFlags_Tooltip); // FIXME-WIP: Undocumented behavior of Child+Tooltip for pinned tooltip (#1345) + const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); window->Active = true; window->HasCloseButton = (p_open != NULL); window->ClipRect = ImVec4(-FLT_MAX, -FLT_MAX, +FLT_MAX, +FLT_MAX); @@ -6111,7 +6480,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // UPDATE CONTENTS SIZE, UPDATE HIDDEN STATUS // Update contents size from last frame for auto-fitting (or use explicit size) - const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); CalcWindowContentSizes(window, &window->ContentSize, &window->ContentSizeIdeal); if (window->HiddenFramesCanSkipItems > 0) window->HiddenFramesCanSkipItems--; @@ -6141,6 +6509,9 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // SELECT VIEWPORT // FIXME-VIEWPORT: In the docking/viewport branch, this is the point where we select the current viewport (which may affect the style) + + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)GetMainViewport(); + SetWindowViewport(window, viewport); SetCurrentWindow(window); // LOCK BORDER SIZE AND PADDING FOR THE FRAME (so that altering them doesn't cause inconsistencies) @@ -6157,6 +6528,9 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) window->DC.MenuBarOffset.x = ImMax(ImMax(window->WindowPadding.x, style.ItemSpacing.x), g.NextWindowData.MenuBarOffsetMinVal.x); window->DC.MenuBarOffset.y = g.NextWindowData.MenuBarOffsetMinVal.y; + bool use_current_size_for_scrollbar_x = window_just_created; + bool use_current_size_for_scrollbar_y = window_just_created; + // Collapse window by double-clicking on title bar // At this point we don't have a clipping rectangle setup yet, so we can use the title bar area for hit detection and drawing if (!(flags & ImGuiWindowFlags_NoTitleBar) && !(flags & ImGuiWindowFlags_NoCollapse)) @@ -6168,6 +6542,8 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) if (window->WantCollapseToggle) { window->Collapsed = !window->Collapsed; + if (!window->Collapsed) + use_current_size_for_scrollbar_y = true; MarkIniSettingsDirty(window); } } @@ -6181,8 +6557,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // Calculate auto-fit size, handle automatic resize const ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, window->ContentSizeIdeal); - bool use_current_size_for_scrollbar_x = window_just_created; - bool use_current_size_for_scrollbar_y = window_just_created; if ((flags & ImGuiWindowFlags_AlwaysAutoResize) && !window->Collapsed) { // Using SetNextWindowSize() overrides ImGuiWindowFlags_AlwaysAutoResize, so it can be used on tooltips/popups, etc. @@ -6254,7 +6628,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // Calculate the range of allowed position for that window (to be movable and visible past safe area padding) // When clamping to stay visible, we will enforce that window->Pos stays inside of visibility_rect. - ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)GetMainViewport(); ImRect viewport_rect(viewport->GetMainRect()); ImRect viewport_work_rect(viewport->GetWorkRect()); ImVec2 visibility_padding = ImMax(style.DisplayWindowPadding, style.DisplaySafeAreaPadding); @@ -6262,9 +6635,9 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // Clamp position/size so window stays visible within its viewport or monitor // Ignore zero-sized display explicitly to avoid losing positions if a window manager reports zero-sized window when initializing or minimizing. - if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) + if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow)) if (viewport_rect.GetWidth() > 0.0f && viewport_rect.GetHeight() > 0.0f) - ClampWindowRect(window, visibility_rect); + ClampWindowPos(window, visibility_rect); window->Pos = ImFloor(window->Pos); // Lock window rounding for the frame (so that altering them doesn't cause inconsistencies) @@ -6301,6 +6674,18 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) } } + // [Test Engine] Register whole window in the item system +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (g.TestEngineHookItems) + { + IM_ASSERT(window->IDStack.Size == 1); + window->IDStack.Size = 0; // As window->IDStack[0] == window->ID here, make sure TestEngine doesn't erroneously see window as parent of itself. + IMGUI_TEST_ENGINE_ITEM_ADD(window->Rect(), window->ID); + IMGUI_TEST_ENGINE_ITEM_INFO(window->ID, window->Name, (g.HoveredWindow == window) ? ImGuiItemStatusFlags_HoveredRect : 0); + window->IDStack.Size = 1; + } +#endif + // Handle manual resize: Resize Grips, Borders, Gamepad int border_held = -1; ImU32 resize_grip_col[4] = {}; @@ -6332,7 +6717,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) } // UPDATE RECTANGLES (1- THOSE NOT AFFECTED BY SCROLLING) - // Update various regions. Variables they depends on should be set above in this function. + // Update various regions. Variables they depend on should be set above in this function. // We set this up after processing the resize grip so that our rectangles doesn't lag by a frame. // Outer rectangle @@ -6467,6 +6852,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) window->DC.IdealMaxPos = window->DC.CursorStartPos; window->DC.CurrLineSize = window->DC.PrevLineSize = ImVec2(0.0f, 0.0f); window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; window->DC.NavLayerCurrent = ImGuiNavLayer_Main; window->DC.NavLayersActiveMask = window->DC.NavLayersActiveMaskNext; @@ -6514,7 +6900,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) /* //if (g.NavWindow == window && g.ActiveId == 0) if (g.ActiveId == window->MoveId) - if (g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_C)) + if (g.IO.KeyCtrl && IsKeyPressed(ImGuiKey_C)) LogToClipboard(); */ @@ -6522,6 +6908,13 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // This is useful to allow creating context menus on title bar only, etc. SetLastItemData(window->MoveId, g.CurrentItemFlags, IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max, false) ? ImGuiItemStatusFlags_HoveredRect : 0, title_bar_rect); + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (g.DebugLocateId != 0 && (window->ID == g.DebugLocateId || window->MoveId == g.DebugLocateId)) + DebugLocateItemResolveWithLastItem(); +#endif + + // [Test Engine] Register title bar / tab #ifdef IMGUI_ENABLE_TEST_ENGINE if (!(window->Flags & ImGuiWindowFlags_NoTitleBar)) IMGUI_TEST_ENGINE_ITEM_ADD(g.LastItemData.Rect, g.LastItemData.ID); @@ -6533,9 +6926,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) SetCurrentWindow(window); } - // Pull/inherit current state - window->DC.NavFocusScopeIdCurrent = (flags & ImGuiWindowFlags_ChildWindow) ? parent_window->DC.NavFocusScopeIdCurrent : window->GetID("#FOCUSSCOPE"); // Inherit from parent only // -V595 - PushClipRect(window->InnerClipRect.Min, window->InnerClipRect.Max, true); // Clear 'accessed' flag last thing (After PushClipRect which will set the flag. We want the flag to stay false when the default "Debug" window is unused) @@ -6613,11 +7003,15 @@ void ImGui::End() if (window->DC.CurrentColumns) EndColumns(); PopClipRect(); // Inner window clip rectangle + PopFocusScope(); // Stop logging if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) // FIXME: add more options for scope of logging LogFinish(); + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + // Pop from window stack g.LastItemData = g.CurrentWindowStack.back().ParentLastItemDataBackup; if (window->Flags & ImGuiWindowFlags_ChildMenu) @@ -6714,20 +7108,17 @@ void ImGui::FocusWindow(ImGuiWindow* window) if (g.NavWindow != window) { - g.NavWindow = window; + SetNavWindow(window); if (window && g.NavDisableMouseHover) g.NavMousePosDirty = true; g.NavId = window ? window->NavLastIds[0] : 0; // Restore NavId - g.NavFocusScopeId = 0; - g.NavIdIsAlive = false; g.NavLayer = ImGuiNavLayer_Main; - g.NavInitRequest = g.NavMoveSubmitted = g.NavMoveScoringItems = false; - NavUpdateAnyRequestFlag(); - //IMGUI_DEBUG_LOG("FocusWindow(\"%s\")\n", window ? window->Name : NULL); - } + g.NavFocusScopeId = window ? window->NavRootFocusScopeId : 0; + g.NavIdIsAlive = false; - // Close popups if any - ClosePopupsOverWindow(window, false); + // Close popups if any + ClosePopupsOverWindow(window, false); + } // Move the root window to the top of the pile IM_ASSERT(window == NULL || window->RootWindow != NULL); @@ -7065,6 +7456,9 @@ void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond) const ImVec2 old_pos = window->Pos; window->Pos = ImFloor(pos); ImVec2 offset = window->Pos - old_pos; + if (offset.x == 0.0f && offset.y == 0.0f) + return; + MarkIniSettingsDirty(window); window->DC.CursorPos += offset; // As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor window->DC.CursorMaxPos += offset; // And more importantly we need to offset CursorMaxPos/CursorStartPos this so ContentSize calculation doesn't get affected. window->DC.IdealMaxPos += offset; @@ -7099,26 +7493,19 @@ void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond con window->SetWindowSizeAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); // Set - if (size.x > 0.0f) - { - window->AutoFitFramesX = 0; - window->SizeFull.x = IM_FLOOR(size.x); - } - else - { - window->AutoFitFramesX = 2; + ImVec2 old_size = window->SizeFull; + window->AutoFitFramesX = (size.x <= 0.0f) ? 2 : 0; + window->AutoFitFramesY = (size.y <= 0.0f) ? 2 : 0; + if (size.x <= 0.0f) window->AutoFitOnlyGrows = false; - } - if (size.y > 0.0f) - { - window->AutoFitFramesY = 0; - window->SizeFull.y = IM_FLOOR(size.y); - } else - { - window->AutoFitFramesY = 2; + window->SizeFull.x = IM_FLOOR(size.x); + if (size.y <= 0.0f) window->AutoFitOnlyGrows = false; - } + else + window->SizeFull.y = IM_FLOOR(size.y); + if (old_size.x != window->SizeFull.x || old_size.y != window->SizeFull.y) + MarkIniSettingsDirty(window); } void ImGui::SetWindowSize(const ImVec2& size, ImGuiCond cond) @@ -7297,26 +7684,38 @@ void ImGui::ActivateItem(ImGuiID id) void ImGui::PushFocusScope(ImGuiID id) { ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - g.FocusScopeStack.push_back(window->DC.NavFocusScopeIdCurrent); - window->DC.NavFocusScopeIdCurrent = id; + g.FocusScopeStack.push_back(id); + g.CurrentFocusScopeId = id; } void ImGui::PopFocusScope() { ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; IM_ASSERT(g.FocusScopeStack.Size > 0); // Too many PopFocusScope() ? - window->DC.NavFocusScopeIdCurrent = g.FocusScopeStack.back(); g.FocusScopeStack.pop_back(); + g.CurrentFocusScopeId = g.FocusScopeStack.Size ? g.FocusScopeStack.back() : 0; } +// Note: this will likely be called ActivateItem() once we rework our Focus/Activation system! void ImGui::SetKeyboardFocusHere(int offset) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; IM_ASSERT(offset >= -1); // -1 is allowed but not below - g.NavWindow = window; + IMGUI_DEBUG_LOG_ACTIVEID("SetKeyboardFocusHere(%d) in window \"%s\"\n", offset, window->Name); + + // It makes sense in the vast majority of cases to never interrupt a drag and drop. + // When we refactor this function into ActivateItem() we may want to make this an option. + // MovingWindow is protected from most user inputs using SetActiveIdUsingNavAndKeys(), but + // is also automatically dropped in the event g.ActiveId is stolen. + if (g.DragDropActive || g.MovingWindow != NULL) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetKeyboardFocusHere() ignored while DragDropActive!\n"); + return; + } + + SetNavWindow(window); + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; NavMoveRequestSubmit(ImGuiDir_None, offset < 0 ? ImGuiDir_Up : ImGuiDir_Down, ImGuiNavMoveFlags_Tabbing | ImGuiNavMoveFlags_FocusApi, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. if (offset == -1) @@ -7344,7 +7743,7 @@ void ImGui::SetItemDefaultFocus() g.NavInitResultRectRel = WindowRectAbsToRel(window, g.LastItemData.Rect); NavUpdateAnyRequestFlag(); - // Scroll could be done in NavInitRequestApplyResult() via a opt-in flag (we however don't want regular init requests to scroll) + // Scroll could be done in NavInitRequestApplyResult() via an opt-in flag (we however don't want regular init requests to scroll) if (!IsItemVisible()) ScrollToRectEx(window, g.LastItemData.Rect, ImGuiScrollFlags_None); } @@ -7365,7 +7764,7 @@ void ImGui::PushID(const char* str_id) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(str_id); + ImGuiID id = window->GetID(str_id); window->IDStack.push_back(id); } @@ -7373,7 +7772,7 @@ void ImGui::PushID(const char* str_id_begin, const char* str_id_end) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(str_id_begin, str_id_end); + ImGuiID id = window->GetID(str_id_begin, str_id_end); window->IDStack.push_back(id); } @@ -7381,7 +7780,7 @@ void ImGui::PushID(const void* ptr_id) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(ptr_id); + ImGuiID id = window->GetID(ptr_id); window->IDStack.push_back(id); } @@ -7389,7 +7788,7 @@ void ImGui::PushID(int int_id) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(int_id); + ImGuiID id = window->GetID(int_id); window->IDStack.push_back(id); } @@ -7409,7 +7808,6 @@ void ImGui::PushOverrideID(ImGuiID id) ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed) { ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); - KeepAliveID(id); ImGuiContext& g = *GImGui; if (g.DebugHookIdInfo == id) DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); @@ -7454,15 +7852,825 @@ bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) } +//----------------------------------------------------------------------------- +// [SECTION] INPUTS +//----------------------------------------------------------------------------- + +// Test if mouse cursor is hovering given rectangle +// NB- Rectangle is clipped by our current clip setting +// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) +bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) +{ + ImGuiContext& g = *GImGui; + + // Clip + ImRect rect_clipped(r_min, r_max); + if (clip) + rect_clipped.ClipWith(g.CurrentWindow->ClipRect); + + // Expand for touch input + const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding); + if (!rect_for_touch.Contains(g.IO.MousePos)) + return false; + return true; +} + +ImGuiKeyData* ImGui::GetKeyData(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + + // Special storage location for mods + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(key); + + int index; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT(key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_NamedKey_END); + if (IsLegacyKey(key)) + index = (g.IO.KeyMap[key] != -1) ? g.IO.KeyMap[key] : key; // Remap native->imgui or imgui->native + else + index = key; +#else + IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code."); + index = key - ImGuiKey_NamedKey_BEGIN; +#endif + return &g.IO.KeysData[index]; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +ImGuiKey ImGui::GetKeyIndex(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(IsNamedKey(key)); + const ImGuiKeyData* key_data = GetKeyData(key); + return (ImGuiKey)(key_data - g.IO.KeysData); +} +#endif + +// Those names a provided for debugging purpose and are not meant to be saved persistently not compared. +static const char* const GKeyNames[] = +{ + "Tab", "LeftArrow", "RightArrow", "UpArrow", "DownArrow", "PageUp", "PageDown", + "Home", "End", "Insert", "Delete", "Backspace", "Space", "Enter", "Escape", + "LeftCtrl", "LeftShift", "LeftAlt", "LeftSuper", "RightCtrl", "RightShift", "RightAlt", "RightSuper", "Menu", + "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", + "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", + "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", + "Apostrophe", "Comma", "Minus", "Period", "Slash", "Semicolon", "Equal", "LeftBracket", + "Backslash", "RightBracket", "GraveAccent", "CapsLock", "ScrollLock", "NumLock", "PrintScreen", + "Pause", "Keypad0", "Keypad1", "Keypad2", "Keypad3", "Keypad4", "Keypad5", "Keypad6", + "Keypad7", "Keypad8", "Keypad9", "KeypadDecimal", "KeypadDivide", "KeypadMultiply", + "KeypadSubtract", "KeypadAdd", "KeypadEnter", "KeypadEqual", + "GamepadStart", "GamepadBack", + "GamepadFaceLeft", "GamepadFaceRight", "GamepadFaceUp", "GamepadFaceDown", + "GamepadDpadLeft", "GamepadDpadRight", "GamepadDpadUp", "GamepadDpadDown", + "GamepadL1", "GamepadR1", "GamepadL2", "GamepadR2", "GamepadL3", "GamepadR3", + "GamepadLStickLeft", "GamepadLStickRight", "GamepadLStickUp", "GamepadLStickDown", + "GamepadRStickLeft", "GamepadRStickRight", "GamepadRStickUp", "GamepadRStickDown", + "MouseLeft", "MouseRight", "MouseMiddle", "MouseX1", "MouseX2", "MouseWheelX", "MouseWheelY", + "ModCtrl", "ModShift", "ModAlt", "ModSuper", // ReservedForModXXX are showing the ModXXX names. +}; +IM_STATIC_ASSERT(ImGuiKey_NamedKey_COUNT == IM_ARRAYSIZE(GKeyNames)); + +const char* ImGui::GetKeyName(ImGuiKey key) +{ +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((IsNamedKey(key) || key == ImGuiKey_None) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend and user code."); +#else + if (IsLegacyKey(key)) + { + ImGuiIO& io = GetIO(); + if (io.KeyMap[key] == -1) + return "N/A"; + IM_ASSERT(IsNamedKey((ImGuiKey)io.KeyMap[key])); + key = (ImGuiKey)io.KeyMap[key]; + } +#endif + if (key == ImGuiKey_None) + return "None"; + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(key); + if (!IsNamedKey(key)) + return "Unknown"; + + return GKeyNames[key - ImGuiKey_NamedKey_BEGIN]; +} + +void ImGui::GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size) +{ + ImGuiContext& g = *GImGui; + ImFormatString(out_buf, (size_t)out_buf_size, "%s%s%s%s%s", + (key_chord & ImGuiMod_Ctrl) ? "Ctrl+" : "", + (key_chord & ImGuiMod_Shift) ? "Shift+" : "", + (key_chord & ImGuiMod_Alt) ? "Alt+" : "", + (key_chord & ImGuiMod_Super) ? (g.IO.ConfigMacOSXBehaviors ? "Cmd+" : "Super+") : "", + GetKeyName((ImGuiKey)(key_chord & ~ImGuiMod_Mask_))); +} + +// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) +// t1 = current time (e.g.: g.Time) +// An event is triggered at: +// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N +int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) +{ + if (t1 == 0.0f) + return 1; + if (t0 >= t1) + return 0; + if (repeat_rate <= 0.0f) + return (t0 < repeat_delay) && (t1 >= repeat_delay); + const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); + const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); + const int count = count_t1 - count_t0; + return count; +} + +void ImGui::GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate) +{ + ImGuiContext& g = *GImGui; + switch (flags & ImGuiInputFlags_RepeatRateMask_) + { + case ImGuiInputFlags_RepeatRateNavMove: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.80f; return; + case ImGuiInputFlags_RepeatRateNavTweak: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.30f; return; + case ImGuiInputFlags_RepeatRateDefault: default: *repeat_delay = g.IO.KeyRepeatDelay * 1.00f; *repeat_rate = g.IO.KeyRepeatRate * 1.00f; return; + } +} + +// Return value representing the number of presses in the last time period, for the given repeat rate +// (most often returns 0 or 1. The result is generally only >1 when RepeatRate is smaller than DeltaTime, aka large DeltaTime or fast RepeatRate) +int ImGui::GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float repeat_rate) +{ + ImGuiContext& g = *GImGui; + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return 0; + const float t = key_data->DownDuration; + return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); +} + +// Return 2D vector representing the combination of four cardinal direction, with analog value support (for e.g. ImGuiKey_GamepadLStick* values). +ImVec2 ImGui::GetKeyVector2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down) +{ + return ImVec2( + GetKeyData(key_right)->AnalogValue - GetKeyData(key_left)->AnalogValue, + GetKeyData(key_down)->AnalogValue - GetKeyData(key_up)->AnalogValue); +} + +// owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope(). +static inline ImGuiID GetRoutingIdFromOwnerId(ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + return (owner_id != ImGuiKeyOwner_None && owner_id != ImGuiKeyOwner_Any) ? owner_id : g.CurrentFocusScopeId; +} + +ImGuiKeyRoutingData* ImGui::GetShortcutRoutingData(ImGuiKeyChord key_chord) +{ + // Majority of shortcuts will be Key + any number of Mods + // We accept _Single_ mod with ImGuiKey_None. + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl | ImGuiMod_Shift); // Legal + // - Shortcut(ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiMod_Ctrl | ImGuiMod_Shift); // Not legal + ImGuiContext& g = *GImGui; + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + ImGuiKeyRoutingData* routing_data; + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(mods); + IM_ASSERT(IsNamedKey(key)); + + // Get (in the majority of case, the linked list will have one element so this should be 2 reads. + // Subsequent elements will be contiguous in memory as list is sorted/rebuilt in NewFrame). + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; idx = routing_data->NextEntryIndex) + { + routing_data = &rt->Entries[idx]; + if (routing_data->Mods == mods) + return routing_data; + } + + // Add to linked-list + ImGuiKeyRoutingIndex routing_data_idx = (ImGuiKeyRoutingIndex)rt->Entries.Size; + rt->Entries.push_back(ImGuiKeyRoutingData()); + routing_data = &rt->Entries[routing_data_idx]; + routing_data->Mods = (ImU16)mods; + routing_data->NextEntryIndex = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; // Setup linked list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = routing_data_idx; + return routing_data; +} + +// Current score encoding (lower is highest priority): +// - 0: ImGuiInputFlags_RouteGlobalHigh +// - 1: ImGuiInputFlags_RouteFocused (if item active) +// - 2: ImGuiInputFlags_RouteGlobal +// - 3+: ImGuiInputFlags_RouteFocused (if window in focus-stack) +// - 254: ImGuiInputFlags_RouteGlobalLow +// - 255: never route +// 'flags' should include an explicit routing policy +static int CalcRoutingScore(ImGuiWindow* location, ImGuiID owner_id, ImGuiInputFlags flags) +{ + if (flags & ImGuiInputFlags_RouteFocused) + { + ImGuiContext& g = *GImGui; + ImGuiWindow* focused = g.NavWindow; + + // ActiveID gets top priority + // (we don't check g.ActiveIdUsingAllKeys here. Routing is applied but if input ownership is tested later it may discard it) + if (owner_id != 0 && g.ActiveId == owner_id) + return 1; + + // Score based on distance to focused window (lower is better) + // Assuming both windows are submitting a routing request, + // - When Window....... is focused -> Window scores 3 (best), Window/ChildB scores 255 (no match) + // - When Window/ChildB is focused -> Window scores 4, Window/ChildB scores 3 (best) + // Assuming only WindowA is submitting a routing request, + // - When Window/ChildB is focused -> Window scores 4 (best), Window/ChildB doesn't have a score. + if (focused != NULL && focused->RootWindow == location->RootWindow) + for (int next_score = 3; focused != NULL; next_score++) + { + if (focused == location) + { + IM_ASSERT(next_score < 255); + return next_score; + } + focused = (focused->RootWindow != focused) ? focused->ParentWindow : NULL; // FIXME: This could be later abstracted as a focus path + } + return 255; + } + + // ImGuiInputFlags_RouteGlobalHigh is default, so calls without flags are not conditional + if (flags & ImGuiInputFlags_RouteGlobal) + return 2; + if (flags & ImGuiInputFlags_RouteGlobalLow) + return 254; + return 0; +} + +// Request a desired route for an input chord (key + mods). +// Return true if the route is available this frame. +// - Routes and key ownership are attributed at the beginning of next frame based on best score and mod state. +// (Conceptually this does a "Submit for next frame" + "Test for current frame". +// As such, it could be called TrySetXXX or SubmitXXX, or the Submit and Test operations should be separate.) +// - Using 'owner_id == ImGuiKeyOwner_Any/0': auto-assign an owner based on current focus scope (each window has its focus scope by default) +// - Using 'owner_id == ImGuiKeyOwner_None': allows disabling/locking a shortcut. +bool ImGui::SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteGlobalHigh; // IMPORTANT: This is the default for SetShortcutRouting() but NOT Shortcut() + else + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiInputFlags_RouteMask_)); // Check that only 1 routing flag is used + + if (flags & ImGuiInputFlags_RouteUnlessBgFocused) + if (g.NavWindow == NULL) + return false; + if (flags & ImGuiInputFlags_RouteAlways) + return true; + + const int score = CalcRoutingScore(g.CurrentWindow, owner_id, flags); + if (score == 255) + return false; + + // Submit routing for NEXT frame (assuming score is sufficient) + // FIXME: Could expose a way to use a "serve last" policy for same score resolution (using <= instead of <). + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + //const bool set_route = (flags & ImGuiInputFlags_ServeLast) ? (score <= routing_data->RoutingNextScore) : (score < routing_data->RoutingNextScore); + if (score < routing_data->RoutingNextScore) + { + routing_data->RoutingNext = routing_id; + routing_data->RoutingNextScore = (ImU8)score; + } + + // Return routing state for CURRENT frame + return routing_data->RoutingCurr == routing_id; +} + +// Currently unused by core (but used by tests) +// Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading. +bool ImGui::TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id) +{ + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + return routing_data->RoutingCurr == routing_id; +} + +// Note that Dear ImGui doesn't know the meaning/semantic of ImGuiKey from 0..511: they are legacy native keycodes. +// Consider transitioning from 'IsKeyDown(MY_ENGINE_KEY_A)' (<1.87) to IsKeyDown(ImGuiKey_A) (>= 1.87) +bool ImGui::IsKeyDown(ImGuiKey key) +{ + return IsKeyDown(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyDown(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyPressed(ImGuiKey key, bool repeat) +{ + return IsKeyPressed(key, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +// Important: unless legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this requires EXPLICIT repeat. +bool ImGui::IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = key_data->DownDuration; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + bool pressed = (t == 0.0f); + if (!pressed && ((flags & ImGuiInputFlags_Repeat) != 0)) + { + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(flags, &repeat_delay, &repeat_rate); + pressed = (t > repeat_delay) && GetKeyPressedAmount(key, repeat_delay, repeat_rate) > 0; + } + if (!pressed) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyReleased(ImGuiKey key) +{ + return IsKeyReleased(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyReleased(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (key_data->DownDurationPrev < 0.0f || key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // should be same as IsKeyDown(MouseButtonToKey(button), ImGuiKeyOwner_Any), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyDown(MouseButtonToKey(button), owner_id), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) +{ + return IsMouseClicked(button, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = g.IO.MouseDownDuration[button]; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + const bool repeat = (flags & ImGuiInputFlags_Repeat) != 0; + const bool pressed = (t == 0.0f) || (repeat && t > g.IO.KeyRepeatDelay && CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0); + if (!pressed) + return false; + + if (!TestKeyOwner(MouseButtonToKey(button), owner_id)) + return false; + + return true; +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // Should be same as IsKeyReleased(MouseButtonToKey(button), ImGuiKeyOwner_Any) +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyReleased(MouseButtonToKey(button), owner_id) +} + +bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); +} + +int ImGui::GetMouseClickedCount(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button]; +} + +// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. +// [Internal] This doesn't test if the button is pressed +bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; +} + +bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) + return false; + return IsMouseDragPastThreshold(button, lock_threshold); +} + +ImVec2 ImGui::GetMousePos() +{ + ImGuiContext& g = *GImGui; + return g.IO.MousePos; +} + +// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! +ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() +{ + ImGuiContext& g = *GImGui; + if (g.BeginPopupStack.Size > 0) + return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; + return g.IO.MousePos; +} + +// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. +bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) +{ + // The assert is only to silence a false-positive in XCode Static Analysis. + // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). + IM_ASSERT(GImGui != NULL); + const float MOUSE_INVALID = -256000.0f; + ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; + return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; +} + +// [WILL OBSOLETE] This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. +bool ImGui::IsAnyMouseDown() +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) + if (g.IO.MouseDown[n]) + return true; + return false; +} + +// Return the delta from the initial clicking position while the mouse button is clicked or was just released. +// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. +// NB: This is only valid if IsMousePosValid(). backends in theory should always keep mouse position valid when dragging even outside the client window. +ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) + if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) + if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) + return g.IO.MousePos - g.IO.MouseClickedPos[button]; + return ImVec2(0.0f, 0.0f); +} + +void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr + g.IO.MouseClickedPos[button] = g.IO.MousePos; +} + +// Get desired mouse cursor shape. +// Important: this is meant to be used by a platform backend, it is reset in ImGui::NewFrame(), +// updated during the frame, and locked in EndFrame()/Render(). +// If you use software rendering by setting io.MouseDrawCursor then Dear ImGui will render those for you +ImGuiMouseCursor ImGui::GetMouseCursor() +{ + ImGuiContext& g = *GImGui; + return g.MouseCursor; +} + +void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) +{ + ImGuiContext& g = *GImGui; + g.MouseCursor = cursor_type; +} + +void ImGui::SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureKeyboardNextFrame = want_capture_keyboard ? 1 : 0; +} + +void ImGui::SetNextFrameWantCaptureMouse(bool want_capture_mouse) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureMouseNextFrame = want_capture_mouse ? 1 : 0; +} + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS +static const char* GetInputSourceName(ImGuiInputSource source) +{ + const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad", "Nav", "Clipboard" }; + IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT && source >= 0 && source < ImGuiInputSource_COUNT); + return input_source_names[source]; +} +static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e) +{ + ImGuiContext& g = *GImGui; + if (e->Type == ImGuiInputEventType_MousePos) { if (e->MousePos.PosX == -FLT_MAX && e->MousePos.PosY == -FLT_MAX) IMGUI_DEBUG_LOG_IO("%s: MousePos (-FLT_MAX, -FLT_MAX)\n", prefix); else IMGUI_DEBUG_LOG_IO("%s: MousePos (%.1f, %.1f)\n", prefix, e->MousePos.PosX, e->MousePos.PosY); return; } + if (e->Type == ImGuiInputEventType_MouseButton) { IMGUI_DEBUG_LOG_IO("%s: MouseButton %d %s\n", prefix, e->MouseButton.Button, e->MouseButton.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_MouseWheel) { IMGUI_DEBUG_LOG_IO("%s: MouseWheel (%.1f, %.1f)\n", prefix, e->MouseWheel.WheelX, e->MouseWheel.WheelY); return; } + if (e->Type == ImGuiInputEventType_Key) { IMGUI_DEBUG_LOG_IO("%s: Key \"%s\" %s\n", prefix, ImGui::GetKeyName(e->Key.Key), e->Key.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_Text) { IMGUI_DEBUG_LOG_IO("%s: Text: %c (U+%08X)\n", prefix, e->Text.Char, e->Text.Char); return; } + if (e->Type == ImGuiInputEventType_Focus) { IMGUI_DEBUG_LOG_IO("%s: AppFocused %d\n", prefix, e->AppFocused.Focused); return; } +} +#endif + +// Process input queue +// We always call this with the value of 'bool g.IO.ConfigInputTrickleEventQueue'. +// - trickle_fast_inputs = false : process all events, turn into flattened input state (e.g. successive down/up/down/up will be lost) +// - trickle_fast_inputs = true : process as many events as possible (successive down/up/down/up will be trickled over several frames so nothing is lost) (new feature in 1.87) +void ImGui::UpdateInputEvents(bool trickle_fast_inputs) +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Only trickle chars<>key when working with InputText() + // FIXME: InputText() could parse event trail? + // FIXME: Could specialize chars<>keys trickling rules for control keys (those not typically associated to characters) + const bool trickle_interleaved_keys_and_text = (trickle_fast_inputs && g.WantTextInputNextFrame == 1); + + bool mouse_moved = false, mouse_wheeled = false, key_changed = false, text_inputted = false; + int mouse_button_changed = 0x00; + ImBitArray key_changed_mask; + + int event_n = 0; + for (; event_n < g.InputEventsQueue.Size; event_n++) + { + ImGuiInputEvent* e = &g.InputEventsQueue[event_n]; + if (e->Type == ImGuiInputEventType_MousePos) + { + // Trickling Rule: Stop processing queued events if we already handled a mouse button change + ImVec2 event_pos(e->MousePos.PosX, e->MousePos.PosY); + if (trickle_fast_inputs && (mouse_button_changed != 0 || mouse_wheeled || key_changed || text_inputted)) + break; + io.MousePos = event_pos; + mouse_moved = true; + } + else if (e->Type == ImGuiInputEventType_MouseButton) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + const ImGuiMouseButton button = e->MouseButton.Button; + IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); + if (trickle_fast_inputs && ((mouse_button_changed & (1 << button)) || mouse_wheeled)) + break; + io.MouseDown[button] = e->MouseButton.Down; + mouse_button_changed |= (1 << button); + } + else if (e->Type == ImGuiInputEventType_MouseWheel) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the event + if (trickle_fast_inputs && (mouse_moved || mouse_button_changed != 0)) + break; + io.MouseWheelH += e->MouseWheel.WheelX; + io.MouseWheel += e->MouseWheel.WheelY; + mouse_wheeled = true; + } + else if (e->Type == ImGuiInputEventType_Key) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + ImGuiKey key = e->Key.Key; + IM_ASSERT(key != ImGuiKey_None); + ImGuiKeyData* key_data = GetKeyData(key); + const int key_data_index = (int)(key_data - g.IO.KeysData); + if (trickle_fast_inputs && key_data->Down != e->Key.Down && (key_changed_mask.TestBit(key_data_index) || text_inputted || mouse_button_changed != 0)) + break; + key_data->Down = e->Key.Down; + key_data->AnalogValue = e->Key.AnalogValue; + key_changed = true; + key_changed_mask.SetBit(key_data_index); + + if (key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super) + { + if (key == ImGuiMod_Ctrl) { io.KeyCtrl = key_data->Down; } + if (key == ImGuiMod_Shift) { io.KeyShift = key_data->Down; } + if (key == ImGuiMod_Alt) { io.KeyAlt = key_data->Down; } + if (key == ImGuiMod_Super) { io.KeySuper = key_data->Down; } + io.KeyMods = GetMergedModsFromBools(); + } + + // Allow legacy code using io.KeysDown[GetKeyIndex()] with new backends +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + io.KeysDown[key_data_index] = key_data->Down; + if (io.KeyMap[key_data_index] != -1) + io.KeysDown[io.KeyMap[key_data_index]] = key_data->Down; +#endif + } + else if (e->Type == ImGuiInputEventType_Text) + { + // Trickling Rule: Stop processing queued events if keys/mouse have been interacted with + if (trickle_fast_inputs && ((key_changed && trickle_interleaved_keys_and_text) || mouse_button_changed != 0 || mouse_moved || mouse_wheeled)) + break; + unsigned int c = e->Text.Char; + io.InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); + if (trickle_interleaved_keys_and_text) + text_inputted = true; + } + else if (e->Type == ImGuiInputEventType_Focus) + { + // We intentionally overwrite this and process in NewFrame(), in order to give a chance + // to multi-viewports backends to queue AddFocusEvent(false) + AddFocusEvent(true) in same frame. + const bool focus_lost = !e->AppFocused.Focused; + io.AppFocusLost = focus_lost; + } + else + { + IM_ASSERT(0 && "Unknown event!"); + } + } + + // Record trail (for domain-specific applications wanting to access a precise trail) + //if (event_n != 0) IMGUI_DEBUG_LOG_IO("Processed: %d / Remaining: %d\n", event_n, g.InputEventsQueue.Size - event_n); + for (int n = 0; n < event_n; n++) + g.InputEventsTrail.push_back(g.InputEventsQueue[n]); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (event_n != 0 && (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO)) + for (int n = 0; n < g.InputEventsQueue.Size; n++) + DebugPrintInputEvent(n < event_n ? "Processed" : "Remaining", &g.InputEventsQueue[n]); +#endif + + // Remaining events will be processed on the next frame + if (event_n == g.InputEventsQueue.Size) + g.InputEventsQueue.resize(0); + else + g.InputEventsQueue.erase(g.InputEventsQueue.Data, g.InputEventsQueue.Data + event_n); + + // Clear buttons state when focus is lost + // - this is useful so e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger the Alt menu toggle. + // - we clear in EndFrame() and not now in order allow application/user code polling this flag + // (e.g. custom backend may want to clear additional data, custom widgets may want to react with a "canceling" event). + if (g.IO.AppFocusLost) + g.IO.ClearInputKeys(); +} + +ImGuiID ImGui::GetKeyOwner(ImGuiKey key) +{ + if (!IsNamedKeyOrModKey(key)) + return ImGuiKeyOwner_None; + + ImGuiContext& g = *GImGui; + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + ImGuiID owner_id = owner_data->OwnerCurr; + + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return ImGuiKeyOwner_None; + + return owner_id; +} + +// TestKeyOwner(..., ID) : (owner == None || owner == ID) +// TestKeyOwner(..., None) : (owner == None) +// TestKeyOwner(..., Any) : no owner test +// All paths are also testing for key not being locked, for the rare cases that key have been locked with using ImGuiInputFlags_LockXXX flags. +bool ImGui::TestKeyOwner(ImGuiKey key, ImGuiID owner_id) +{ + if (!IsNamedKeyOrModKey(key)) + return true; + + ImGuiContext& g = *GImGui; + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return false; + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + if (owner_id == ImGuiKeyOwner_Any) + return (owner_data->LockThisFrame == false); + + // Note: SetKeyOwner() sets OwnerCurr. It is not strictly required for most mouse routing overlap (because of ActiveId/HoveredId + // are acting as filter before this has a chance to filter), but sane as soon as user tries to look into things. + // Setting OwnerCurr in SetKeyOwner() is more consistent than testing OwnerNext here: would be inconsistent with getter and other functions. + if (owner_data->OwnerCurr != owner_id) + { + if (owner_data->LockThisFrame) + return false; + if (owner_data->OwnerCurr != ImGuiKeyOwner_None) + return false; + } + + return true; +} + +// _LockXXX flags are useful to lock keys away from code which is not input-owner aware. +// When using _LockXXX flags, you can use ImGuiKeyOwner_Any to lock keys from everyone. +// - SetKeyOwner(..., None) : clears owner +// - SetKeyOwner(..., Any, !Lock) : illegal (assert) +// - SetKeyOwner(..., Any or None, Lock) : set lock +void ImGui::SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + IM_ASSERT(IsNamedKeyOrModKey(key) && (owner_id != ImGuiKeyOwner_Any || (flags & (ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease)))); // Can only use _Any with _LockXXX flags (to eat a key away without an ID to retrieve it) + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetKeyOwner) == 0); // Passing flags not supported by this function! + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + owner_data->OwnerCurr = owner_data->OwnerNext = owner_id; + + // We cannot lock by default as it would likely break lots of legacy code. + // In the case of using LockUntilRelease while key is not down we still lock during the frame (no key_data->Down test) + owner_data->LockUntilRelease = (flags & ImGuiInputFlags_LockUntilRelease) != 0; + owner_data->LockThisFrame = (flags & ImGuiInputFlags_LockThisFrame) != 0 || (owner_data->LockUntilRelease); +} + +// This is more or less equivalent to: +// if (IsItemHovered() || IsItemActive()) +// SetKeyOwner(key, GetItemID()); +// Extensive uses of that (e.g. many calls for a single item) may want to manually perform the tests once and then call SetKeyOwner() multiple times. +// More advanced usage scenarios may want to call SetKeyOwner() manually based on different condition. +// Worth noting is that only one item can be hovered and only one item can be active, therefore this usage pattern doesn't need to bother with routing and priority. +void ImGui::SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (id == 0 || (g.HoveredId != id && g.ActiveId != id)) + return; + if ((flags & ImGuiInputFlags_CondMask_) == 0) + flags |= ImGuiInputFlags_CondDefault_; + if ((g.HoveredId == id && (flags & ImGuiInputFlags_CondHovered)) || (g.ActiveId == id && (flags & ImGuiInputFlags_CondActive))) + { + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetItemKeyOwner) == 0); // Passing flags not supported by this function! + SetKeyOwner(key, id, flags & ~ImGuiInputFlags_CondMask_); + } +} + +// - Need to decide how to handle shortcut translations for Non-Mac <> Mac +// - Ideas: https://github.com/ocornut/imgui/issues/456#issuecomment-264390864 +bool ImGui::Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + + // When using (owner_id == 0/Any): SetShortcutRouting() will use CurrentFocusScopeId and filter with this, so IsKeyPressed() is fine with he 0/Any. + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteFocused; + if (!SetShortcutRouting(key_chord, owner_id, flags)) + return false; + + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (g.IO.KeyMods != mods) + return false; + + // Special storage location for mods + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(mods); + + if (!IsKeyPressed(key, owner_id, (flags & (ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_)))) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByShortcut) == 0); // Passing flags not supported by this function! + + return true; +} + + //----------------------------------------------------------------------------- // [SECTION] ERROR CHECKING //----------------------------------------------------------------------------- // Helper function to verify ABI compatibility between caller code and compiled version of Dear ImGui. // Verify that the type sizes are matching between the calling file's compilation unit and imgui.cpp's compilation unit -// If the user has inconsistent compilation settings, imgui configuration #define, packing pragma, etc. your user code -// may see different structures than what imgui.cpp sees, which is problematic. -// We usually require settings to be in imconfig.h to make sure that they are accessible to all compilation units involved with Dear ImGui. +// If this triggers you have an issue: +// - Most commonly: mismatched headers and compiled code version. +// - Or: mismatched configuration #define, compilation settings, packing pragma etc. +// The configuration settings mentioned in imconfig.h must be set for all compilation units involved with Dear ImGui, +// which is way it is required you put them in your imconfig file (and not just before including imgui.h). +// Otherwise it is possible that different compilation units would see different structure layout bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_vert, size_t sz_idx) { bool error = false; @@ -7476,6 +8684,38 @@ bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, si return !error; } +// Until 1.89 (IMGUI_VERSION_NUM < 18814) it was legal to use SetCursorPos() to extend the boundary of a parent (e.g. window or table cell) +// This is causing issues and ambiguity and we need to retire that. +// See https://github.com/ocornut/imgui/issues/5548 for more details. +// [Scenario 1] +// Previously this would make the window content size ~200x200: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); // NOT OK +// Instead, please submit an item: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); // OK +// Alternative: +// Begin(...) + Dummy(ImVec2(200,200)) + End(); // OK +// [Scenario 2] +// For reference this is one of the issue what we aim to fix with this change: +// BeginGroup() + SomeItem("foobar") + SetCursorScreenPos(GetCursorScreenPos()) + EndGroup() +// The previous logic made SetCursorScreenPos(GetCursorScreenPos()) have a side-effect! It would erroneously incorporate ItemSpacing.y after the item into content size, making the group taller! +// While this code is a little twisted, no-one would expect SetXXX(GetXXX()) to have a side-effect. Using vertical alignment patterns could trigger this issue. +void ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->DC.IsSetPos); + window->DC.IsSetPos = false; +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (window->DC.CursorPos.x <= window->DC.CursorMaxPos.x && window->DC.CursorPos.y <= window->DC.CursorMaxPos.y) + return; + if (window->SkipItems) + return; + IM_ASSERT(0 && "Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries. Please submit an item e.g. Dummy() to validate extent."); +#else + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); +#endif +} + static void ImGui::ErrorCheckNewFrameSanityChecks() { ImGuiContext& g = *GImGui; @@ -7496,16 +8736,19 @@ static void ImGui::ErrorCheckNewFrameSanityChecks() IM_ASSERT(g.IO.DisplaySize.x >= 0.0f && g.IO.DisplaySize.y >= 0.0f && "Invalid DisplaySize value!"); IM_ASSERT(g.IO.Fonts->IsBuilt() && "Font Atlas not built! Make sure you called ImGui_ImplXXXX_NewFrame() function for renderer backend, which should call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8()"); IM_ASSERT(g.Style.CurveTessellationTol > 0.0f && "Invalid style setting!"); - IM_ASSERT(g.Style.CircleTessellationMaxError > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.CircleTessellationMaxError > 0.0f && "Invalid style setting!"); IM_ASSERT(g.Style.Alpha >= 0.0f && g.Style.Alpha <= 1.0f && "Invalid style setting!"); // Allows us to avoid a few clamps in color computations IM_ASSERT(g.Style.WindowMinSize.x >= 1.0f && g.Style.WindowMinSize.y >= 1.0f && "Invalid style setting."); IM_ASSERT(g.Style.WindowMenuButtonPosition == ImGuiDir_None || g.Style.WindowMenuButtonPosition == ImGuiDir_Left || g.Style.WindowMenuButtonPosition == ImGuiDir_Right); - for (int n = 0; n < ImGuiKey_COUNT; n++) - IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < IM_ARRAYSIZE(g.IO.KeysDown) && "io.KeyMap[] contains an out of bound value (need to be 0..512, or -1 for unmapped key)"); + IM_ASSERT(g.Style.ColorButtonPosition == ImGuiDir_Left || g.Style.ColorButtonPosition == ImGuiDir_Right); +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_COUNT; n++) + IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < ImGuiKey_LegacyNativeKey_END && "io.KeyMap[] contains an out of bound value (need to be 0..511, or -1 for unmapped key)"); // Check: required key mapping (we intentionally do NOT check all keys to not pressure user into setting up everything, but Space is required and was only added in 1.60 WIP) - if (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) + if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && g.IO.BackendUsingLegacyKeyArrays == 1) IM_ASSERT(g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation."); +#endif // Check: the io.ConfigWindowsResizeFromEdges option requires backend to honor mouse cursor changes and set the ImGuiBackendFlags_HasMouseCursors flag accordingly. if (g.IO.ConfigWindowsResizeFromEdges && !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseCursors)) @@ -7522,11 +8765,11 @@ static void ImGui::ErrorCheckEndFrameSanityChecks() // send key release events mid-frame. This would normally trigger this assertion and lead to sheared inputs. // We silently accommodate for this case by ignoring/ the case where all io.KeyXXX modifiers were released (aka key_mod_flags == 0), // while still correctly asserting on mid-frame key press events. - const ImGuiKeyModFlags key_mod_flags = GetMergedKeyModFlags(); - IM_ASSERT((key_mod_flags == 0 || g.IO.KeyMods == key_mod_flags) && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); - IM_UNUSED(key_mod_flags); + const ImGuiKeyChord key_mods = GetMergedModsFromBools(); + IM_ASSERT((key_mods == 0 || g.IO.KeyMods == key_mods) && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); + IM_UNUSED(key_mods); - // Recover from errors + // [EXPERIMENTAL] Recover from errors: You may call this yourself before EndFrame(). //ErrorCheckEndFrameRecover(); // Report when there is a mismatch of Begin/BeginChild vs End/EndChild calls. Important: Remember that the Begin/BeginChild API requires you @@ -7566,7 +8809,6 @@ void ImGui::ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, voi IM_ASSERT(window->IsFallbackWindow); break; } - IM_ASSERT(window == g.CurrentWindow); if (window->Flags & ImGuiWindowFlags_ChildWindow) { if (log_callback) log_callback(user_data, "Recovered from missing EndChild() for '%s'", window->Name); @@ -7633,7 +8875,7 @@ void ImGui::ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, vo if (log_callback) log_callback(user_data, "Recovered from missing PopStyleVar() in '%s'", window->Name); PopStyleVar(); } - while (g.FocusScopeStack.Size > stack_sizes->SizeOfFocusScopeStack) //-V1044 + while (g.FocusScopeStack.Size > stack_sizes->SizeOfFocusScopeStack + 1) //-V1044 { if (log_callback) log_callback(user_data, "Recovered from missing PopFocusScope() in '%s'", window->Name); PopFocusScope(); @@ -7709,7 +8951,7 @@ void ImGuiStackSizes::CompareWithCurrentState() // - GetWindowContentRegionMin(), GetWindowContentRegionMax() // - BeginGroup() // - EndGroup() -// Also see in imgui_widgets: tab bars, columns. +// Also see in imgui_widgets: tab bars, and in imgui_tables: tables, columns. //----------------------------------------------------------------------------- // Advance cursor given item size for layout. @@ -7726,14 +8968,16 @@ void ImGui::ItemSize(const ImVec2& size, float text_baseline_y) // In theory we should be offsetting the starting position (window->DC.CursorPos), that will be the topic of a larger refactor, // but since ItemSize() is not yet an API that moves the cursor (to handle e.g. wrapping) enlarging the height has the same effect. const float offset_to_match_baseline_y = (text_baseline_y >= 0) ? ImMax(0.0f, window->DC.CurrLineTextBaseOffset - text_baseline_y) : 0.0f; - const float line_height = ImMax(window->DC.CurrLineSize.y, size.y + offset_to_match_baseline_y); + + const float line_y1 = window->DC.IsSameLine ? window->DC.CursorPosPrevLine.y : window->DC.CursorPos.y; + const float line_height = ImMax(window->DC.CurrLineSize.y, /*ImMax(*/window->DC.CursorPos.y - line_y1/*, 0.0f)*/ + size.y + offset_to_match_baseline_y); // Always align ourselves on pixel boundaries //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x + size.x; - window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y; + window->DC.CursorPosPrevLine.y = line_y1; window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); // Next line - window->DC.CursorPos.y = IM_FLOOR(window->DC.CursorPos.y + line_height + g.Style.ItemSpacing.y); // Next line + window->DC.CursorPos.y = IM_FLOOR(line_y1 + line_height + g.Style.ItemSpacing.y); // Next line window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPosPrevLine.x); window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y - g.Style.ItemSpacing.y); //if (g.IO.KeyAlt) window->DrawList->AddCircle(window->DC.CursorMaxPos, 3.0f, IM_COL32(255,0,0,255), 4); // [DEBUG] @@ -7742,17 +8986,13 @@ void ImGui::ItemSize(const ImVec2& size, float text_baseline_y) window->DC.CurrLineSize.y = 0.0f; window->DC.PrevLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, text_baseline_y); window->DC.CurrLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; // Horizontal layout mode if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) SameLine(); } -void ImGui::ItemSize(const ImRect& bb, float text_baseline_y) -{ - ItemSize(bb.GetSize(), text_baseline_y); -} - // Declare item bounding box for clipping and interaction. // Note that the size can be different than the one provided to ItemSize(). Typically, widgets that spread over available surface // declare their minimum size requirement to ItemSize() and provide a larger region to ItemAdd() which is used drawing/interaction. @@ -7772,6 +9012,8 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu // Directional navigation processing if (id != 0) { + KeepAliveID(id); + // Runs prior to clipping early-out // (a) So that NavInitRequest can be honored, for newly opened windows to select a default widget // (b) So that we can scroll up/down past clipped items. This adds a small O(N) cost to regular navigation requests @@ -7781,25 +9023,19 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu // to reach unclipped widgets. This would work if user had explicit scrolling control (e.g. mapped on a stick). // We intentionally don't check if g.NavWindow != NULL because g.NavAnyRequest should only be set when it is non null. // If we crash on a NULL g.NavWindow we need to fix the bug elsewhere. - window->DC.NavLayersActiveMaskNext |= (1 << window->DC.NavLayerCurrent); - if (g.NavId == id || g.NavAnyRequest) - if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) - if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) - NavProcessItem(); + if (!(g.LastItemData.InFlags & ImGuiItemFlags_NoNav)) + { + window->DC.NavLayersActiveMaskNext |= (1 << window->DC.NavLayerCurrent); + if (g.NavId == id || g.NavAnyRequest) + if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) + if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) + NavProcessItem(); + } // [DEBUG] People keep stumbling on this problem and using "" as identifier in the root of a window instead of "##something". // Empty identifier are valid and useful in a small amount of cases, but 99.9% of the time you want to use "##something". // READ THE FAQ: https://dearimgui.org/faq IM_ASSERT(id != window->ID && "Cannot have an empty ID at the root of a window. If you need an empty label, use ## and read the FAQ about how the ID Stack works!"); - - // [DEBUG] Item Picker tool, when enabling the "extended" version we perform the check in ItemAdd() -#ifdef IMGUI_DEBUG_TOOL_ITEM_PICKER_EX - if (id == g.DebugItemPickerBreakId) - { - IM_DEBUG_BREAK(); - g.DebugItemPickerBreakId = 0; - } -#endif } g.NextItemData.Flags = ImGuiNextItemDataFlags_None; @@ -7809,12 +9045,26 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu #endif // Clipping test - const bool is_clipped = IsClippedEx(bb, id); - if (is_clipped) - return false; + // (FIXME: This is a modified copy of IsClippedEx() so we can reuse the is_rect_visible value) + //const bool is_clipped = IsClippedEx(bb, id); + //if (is_clipped) + // return false; + const bool is_rect_visible = bb.Overlaps(window->ClipRect); + if (!is_rect_visible) + if (id == 0 || (id != g.ActiveId && id != g.NavId)) + if (!g.LogEnabled) + return false; + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (id != 0 && id == g.DebugLocateId) + DebugLocateItemResolveWithLastItem(); +#endif //if (g.IO.KeyAlt) window->DrawList->AddRect(bb.Min, bb.Max, IM_COL32(255,255,0,120)); // [DEBUG] // We need to calculate this now to take account of the current clipping rectangle (as items like Selectable may change them) + if (is_rect_visible) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Visible; if (IsMouseHoveringRect(bb.Min, bb.Max)) g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; return true; @@ -7827,25 +9077,28 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu // spacing_w >= 0 : enforce spacing amount void ImGui::SameLine(float offset_from_start_x, float spacing_w) { - ImGuiWindow* window = GetCurrentWindow(); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; if (window->SkipItems) return; - ImGuiContext& g = *GImGui; if (offset_from_start_x != 0.0f) { - if (spacing_w < 0.0f) spacing_w = 0.0f; + if (spacing_w < 0.0f) + spacing_w = 0.0f; window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + offset_from_start_x + spacing_w + window->DC.GroupOffset.x + window->DC.ColumnsOffset.x; window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; } else { - if (spacing_w < 0.0f) spacing_w = g.Style.ItemSpacing.x; + if (spacing_w < 0.0f) + spacing_w = g.Style.ItemSpacing.x; window->DC.CursorPos.x = window->DC.CursorPosPrevLine.x + spacing_w; window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; } window->DC.CurrLineSize = window->DC.PrevLineSize; window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + window->DC.IsSameLine = true; } ImVec2 ImGui::GetCursorScreenPos() @@ -7854,11 +9107,15 @@ ImVec2 ImGui::GetCursorScreenPos() return window->DC.CursorPos; } +// 2022/08/05: Setting cursor position also extend boundaries (via modifying CursorMaxPos) used to compute window size, group size etc. +// I believe this was is a judicious choice but it's probably being relied upon (it has been the case since 1.31 and 1.50) +// It would be sane if we requested user to use SetCursorPos() + Dummy(ImVec2(0,0)) to extend CursorMaxPos... void ImGui::SetCursorScreenPos(const ImVec2& pos) { ImGuiWindow* window = GetCurrentWindow(); window->DC.CursorPos = pos; - window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; } // User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. @@ -7885,21 +9142,24 @@ void ImGui::SetCursorPos(const ImVec2& local_pos) { ImGuiWindow* window = GetCurrentWindow(); window->DC.CursorPos = window->Pos - window->Scroll + local_pos; - window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; } void ImGui::SetCursorPosX(float x) { ImGuiWindow* window = GetCurrentWindow(); window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + x; - window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); + //window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); + window->DC.IsSetPos = true; } void ImGui::SetCursorPosY(float y) { ImGuiWindow* window = GetCurrentWindow(); window->DC.CursorPos.y = window->Pos.y - window->Scroll.y + y; - window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); + //window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); + window->DC.IsSetPos = true; } ImVec2 ImGui::GetCursorStartPos() @@ -7990,7 +9250,8 @@ float ImGui::CalcItemWidth() // The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable) ImVec2 ImGui::CalcItemSize(ImVec2 size, float default_w, float default_h) { - ImGuiWindow* window = GImGui->CurrentWindow; + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; ImVec2 region_max; if (size.x < 0.0f || size.y < 0.0f) @@ -8115,6 +9376,9 @@ void ImGui::EndGroup() ImGuiGroupData& group_data = g.GroupStack.back(); IM_ASSERT(group_data.WindowID == window->ID); // EndGroup() in wrong window? + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + ImRect group_bb(group_data.BackupCursorPos, ImMax(window->DC.CursorMaxPos, group_data.BackupCursorPos)); window->DC.CursorPos = group_data.BackupCursorPos; @@ -8137,7 +9401,7 @@ void ImGui::EndGroup() ItemAdd(group_bb, 0, NULL, ImGuiItemFlags_NoTabStop); // If the current ActiveId was declared within the boundary of our group, we copy it to LastItemId so IsItemActive(), IsItemDeactivated() etc. will be functional on the entire group. - // It would be be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. + // It would be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. // Also if you grep for LastItemId you'll notice it is only used in that context. // (The two tests not the same because ActiveIdIsAlive is an ID itself, in order to be able to handle ActiveId being overwritten during the frame.) const bool group_contains_curr_active_id = (group_data.BackupActiveIdIsAlive != g.ActiveId) && (g.ActiveIdIsAlive == g.ActiveId) && g.ActiveId; @@ -8255,8 +9519,8 @@ ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGui const bool fully_visible_x = item_rect.Min.x >= window_rect.Min.x && item_rect.Max.x <= window_rect.Max.x; const bool fully_visible_y = item_rect.Min.y >= window_rect.Min.y && item_rect.Max.y <= window_rect.Max.y; - const bool can_be_fully_visible_x = (item_rect.GetWidth() + g.Style.ItemSpacing.x * 2.0f) <= window_rect.GetWidth(); - const bool can_be_fully_visible_y = (item_rect.GetHeight() + g.Style.ItemSpacing.y * 2.0f) <= window_rect.GetHeight(); + const bool can_be_fully_visible_x = (item_rect.GetWidth() + g.Style.ItemSpacing.x * 2.0f) <= window_rect.GetWidth() || (window->AutoFitFramesX > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + const bool can_be_fully_visible_y = (item_rect.GetHeight() + g.Style.ItemSpacing.y * 2.0f) <= window_rect.GetHeight() || (window->AutoFitFramesY > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; if ((flags & ImGuiScrollFlags_KeepVisibleEdgeX) && !fully_visible_x) { @@ -8267,8 +9531,10 @@ ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGui } else if (((flags & ImGuiScrollFlags_KeepVisibleCenterX) && !fully_visible_x) || (flags & ImGuiScrollFlags_AlwaysCenterX)) { - float target_x = can_be_fully_visible_x ? ImFloor((item_rect.Min.x + item_rect.Max.x - window->InnerRect.GetWidth()) * 0.5f) : item_rect.Min.x; - SetScrollFromPosX(window, target_x - window->Pos.x, 0.0f); + if (can_be_fully_visible_x) + SetScrollFromPosX(window, ImFloor((item_rect.Min.x + item_rect.Max.y) * 0.5f) - window->Pos.x, 0.5f); + else + SetScrollFromPosX(window, item_rect.Min.x - window->Pos.x, 0.0f); } if ((flags & ImGuiScrollFlags_KeepVisibleEdgeY) && !fully_visible_y) @@ -8280,8 +9546,10 @@ ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGui } else if (((flags & ImGuiScrollFlags_KeepVisibleCenterY) && !fully_visible_y) || (flags & ImGuiScrollFlags_AlwaysCenterY)) { - float target_y = can_be_fully_visible_y ? ImFloor((item_rect.Min.y + item_rect.Max.y - window->InnerRect.GetHeight()) * 0.5f) : item_rect.Min.y; - SetScrollFromPosY(window, target_y - window->Pos.y, 0.0f); + if (can_be_fully_visible_y) + SetScrollFromPosY(window, ImFloor((item_rect.Min.y + item_rect.Max.y) * 0.5f) - window->Pos.y, 0.5f); + else + SetScrollFromPosY(window, item_rect.Min.y - window->Pos.y, 0.0f); } ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); @@ -8356,7 +9624,7 @@ void ImGui::SetScrollY(float scroll_y) // - local_pos = (absolution_pos - window->Pos) // - So local_x/local_y are 0.0f for a position at the upper-left corner of a window, // and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area. -// - They mostly exists because of legacy API. +// - They mostly exist because of legacy API. // Following the rules above, when trying to work with scrolling code, consider that: // - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect! // - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense @@ -8547,7 +9815,9 @@ ImGuiWindow* ImGui::GetTopMostAndVisiblePopupModal() void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) { ImGuiContext& g = *GImGui; - OpenPopupEx(g.CurrentWindow->GetID(str_id), popup_flags); + ImGuiID id = g.CurrentWindow->GetID(str_id); + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopup(\"%s\" -> 0x%08X\n", str_id, id); + OpenPopupEx(id, popup_flags); } void ImGui::OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags) @@ -8572,13 +9842,13 @@ void ImGui::OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags) ImGuiPopupData popup_ref; // Tagged as new ref as Window will be set back to NULL if we write this into OpenPopupStack. popup_ref.PopupId = id; popup_ref.Window = NULL; - popup_ref.SourceWindow = g.NavWindow; + popup_ref.BackupNavWindow = g.NavWindow; // When popup closes focus may be restored to NavWindow (depend on window type). popup_ref.OpenFrameCount = g.FrameCount; popup_ref.OpenParentId = parent_window->IDStack.back(); popup_ref.OpenPopupPos = NavCalcPreferredRefPos(); popup_ref.OpenMousePos = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : popup_ref.OpenPopupPos; - IMGUI_DEBUG_LOG_POPUP("OpenPopupEx(0x%08X)\n", id); + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopupEx(0x%08X)\n", id); if (g.OpenPopupStack.Size < current_stack_size + 1) { g.OpenPopupStack.push_back(popup_ref); @@ -8647,7 +9917,7 @@ void ImGui::ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to } if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below { - IMGUI_DEBUG_LOG_POPUP("ClosePopupsOverWindow(\"%s\") -> ClosePopupToLevel(%d)\n", ref_window->Name, popup_count_to_keep); + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupsOverWindow(\"%s\")\n", ref_window ? ref_window->Name : ""); ClosePopupToLevel(popup_count_to_keep, restore_focus_to_window_under_popup); } } @@ -8670,16 +9940,17 @@ void ImGui::ClosePopupsExceptModals() void ImGui::ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup) { ImGuiContext& g = *GImGui; - IMGUI_DEBUG_LOG_POPUP("ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); IM_ASSERT(remaining >= 0 && remaining < g.OpenPopupStack.Size); // Trim open popup stack - ImGuiWindow* focus_window = g.OpenPopupStack[remaining].SourceWindow; ImGuiWindow* popup_window = g.OpenPopupStack[remaining].Window; + ImGuiWindow* popup_backup_nav_window = g.OpenPopupStack[remaining].BackupNavWindow; g.OpenPopupStack.resize(remaining); if (restore_focus_to_window_under_popup) { + ImGuiWindow* focus_window = (popup_window && popup_window->Flags & ImGuiWindowFlags_ChildMenu) ? popup_window->ParentWindow : popup_backup_nav_window; if (focus_window && !focus_window->WasActive && popup_window) { // Fallback @@ -8715,7 +9986,7 @@ void ImGui::CloseCurrentPopup() break; popup_idx--; } - IMGUI_DEBUG_LOG_POPUP("CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); + IMGUI_DEBUG_LOG_POPUP("[popup] CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); ClosePopupToLevel(popup_idx, true); // A common pattern is to close a popup when selecting a menu item/selectable that will open another window. @@ -8758,7 +10029,8 @@ bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags flags) return false; } flags |= ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings; - return BeginPopupEx(g.CurrentWindow->GetID(str_id), flags); + ImGuiID id = g.CurrentWindow->GetID(str_id); + return BeginPopupEx(id, flags); } // If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup. @@ -8837,7 +10109,7 @@ void ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags // - You may want to handle the whole on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters). // This is essentially the same as: // id = str_id ? GetID(str_id) : GetItemID(); -// OpenPopupOnItemClick(str_id); +// OpenPopupOnItemClick(str_id, ImGuiPopupFlags_MouseButtonRight); // return BeginPopup(id); // Which is essentially the same as: // id = str_id ? GetID(str_id) : GetItemID(); @@ -8933,7 +10205,7 @@ ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& s const float avail_w = (dir == ImGuiDir_Left ? r_avoid.Min.x : r_outer.Max.x) - (dir == ImGuiDir_Right ? r_avoid.Max.x : r_outer.Min.x); const float avail_h = (dir == ImGuiDir_Up ? r_avoid.Min.y : r_outer.Max.y) - (dir == ImGuiDir_Down ? r_avoid.Max.y : r_outer.Min.y); - // If there not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) + // If there's not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) if (avail_w < size.x && (dir == ImGuiDir_Left || dir == ImGuiDir_Right)) continue; if (avail_h < size.y && (dir == ImGuiDir_Up || dir == ImGuiDir_Down)) @@ -8998,8 +10270,7 @@ ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) } if (window->Flags & ImGuiWindowFlags_Popup) { - ImRect r_avoid = ImRect(window->Pos.x - 1, window->Pos.y - 1, window->Pos.x + 1, window->Pos.y + 1); - return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, ImRect(window->Pos, window->Pos), ImGuiPopupPositionPolicy_Default); // Ideally we'd disable r_avoid here } if (window->Flags & ImGuiWindowFlags_Tooltip) { @@ -9021,8 +10292,22 @@ ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) // [SECTION] KEYBOARD/GAMEPAD NAVIGATION //----------------------------------------------------------------------------- -// FIXME-NAV: The existence of SetNavID vs SetFocusID properly needs to be clarified/reworked. -// In our terminology those should be interchangeable. Those two functions are merely a legacy artifact, so at minimum naming should be clarified. +// FIXME-NAV: The existence of SetNavID vs SetFocusID vs FocusWindow() needs to be clarified/reworked. +// In our terminology those should be interchangeable, yet right now this is super confusing. +// Those two functions are merely a legacy artifact, so at minimum naming should be clarified. + +void ImGui::SetNavWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.NavWindow != window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] SetNavWindow(\"%s\")\n", window ? window->Name : ""); + g.NavWindow = window; + } + g.NavInitRequest = g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + void ImGui::SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel) { ImGuiContext& g = *GImGui; @@ -9040,15 +10325,15 @@ void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window) ImGuiContext& g = *GImGui; IM_ASSERT(id != 0); - // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and window->DC.NavFocusScopeIdCurrent are valid. + if (g.NavWindow != window) + SetNavWindow(window); + + // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and g.CurrentFocusScopeId are valid. // Note that window may be != g.CurrentWindow (e.g. SetFocusID call in InputTextEx for multi-line text) const ImGuiNavLayer nav_layer = window->DC.NavLayerCurrent; - if (g.NavWindow != window) - g.NavInitRequest = false; - g.NavWindow = window; g.NavId = id; g.NavLayer = nav_layer; - g.NavFocusScopeId = window->DC.NavFocusScopeIdCurrent; + g.NavFocusScopeId = g.CurrentFocusScopeId; window->NavLastIds[nav_layer] = id; if (g.LastItemData.ID == id) window->NavRectRel[nav_layer] = WindowRectAbsToRel(window, g.LastItemData.NavRect); @@ -9112,7 +10397,7 @@ static bool ImGui::NavScoreItem(ImGuiNavItemData* result) } // We perform scoring on items bounding box clipped by the current clipping rectangle on the other axis (clipping on our movement axis would give us equal scores for all clipped items) - // For example, this ensure that items in one column are not reached when moving vertically from items in another column. + // For example, this ensures that items in one column are not reached when moving vertically from items in another column. NavClampRectToVisibleAreaForMoveDir(g.NavMoveClipDir, cand, window->ClipRect); // Compute distance between boxes @@ -9176,7 +10461,7 @@ static bool ImGui::NavScoreItem(ImGuiNavItemData* result) } #endif - // Is it in the quadrant we're interesting in moving to? + // Is it in the quadrant we're interested in moving to? bool new_best = false; const ImGuiDir move_dir = g.NavMoveDir; if (quadrant == move_dir) @@ -9229,7 +10514,7 @@ static void ImGui::NavApplyItemToResult(ImGuiNavItemData* result) ImGuiWindow* window = g.CurrentWindow; result->Window = window; result->ID = g.LastItemData.ID; - result->FocusScopeId = window->DC.NavFocusScopeIdCurrent; + result->FocusScopeId = g.CurrentFocusScopeId; result->InFlags = g.LastItemData.InFlags; result->RectRel = WindowRectAbsToRel(window, g.LastItemData.NavRect); } @@ -9245,10 +10530,10 @@ static void ImGui::NavProcessItem() const ImGuiItemFlags item_flags = g.LastItemData.InFlags; // Process Init Request - if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent) + if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent && (item_flags & ImGuiItemFlags_Disabled) == 0) { // Even if 'ImGuiItemFlags_NoNavDefaultFocus' is on (typically collapse/close button) we record the first ResultId so they can be used as a fallback - const bool candidate_for_nav_default_focus = (item_flags & (ImGuiItemFlags_NoNavDefaultFocus | ImGuiItemFlags_Disabled)) == 0; + const bool candidate_for_nav_default_focus = (item_flags & ImGuiItemFlags_NoNavDefaultFocus) == 0; if (candidate_for_nav_default_focus || g.NavInitResultId == 0) { g.NavInitResultId = id; @@ -9272,7 +10557,7 @@ static void ImGui::NavProcessItem() if (is_tab_stop || (g.NavMoveFlags & ImGuiNavMoveFlags_FocusApi)) NavProcessItemForTabbingRequest(id); } - else if ((g.NavId != id || (g.NavMoveFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) && !(item_flags & (ImGuiItemFlags_Disabled | ImGuiItemFlags_NoNav))) + else if ((g.NavId != id || (g.NavMoveFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) && !(item_flags & ImGuiItemFlags_Disabled)) { ImGuiNavItemData* result = (window == g.NavWindow) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; if (!is_tabbing) @@ -9293,9 +10578,10 @@ static void ImGui::NavProcessItem() // Update window-relative bounding box of navigated item if (g.NavId == id) { - g.NavWindow = window; // Always refresh g.NavWindow, because some operations such as FocusItem() don't have a window. + if (g.NavWindow != window) + SetNavWindow(window); // Always refresh g.NavWindow, because some operations such as FocusItem() may not have a window. g.NavLayer = window->DC.NavLayerCurrent; - g.NavFocusScopeId = window->DC.NavFocusScopeIdCurrent; + g.NavFocusScopeId = g.CurrentFocusScopeId; g.NavIdIsAlive = true; window->NavRectRel[window->DC.NavLayerCurrent] = WindowRectAbsToRel(window, nav_bb); // Store item bounding box (relative to window position) } @@ -9371,10 +10657,11 @@ void ImGui::NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavM g.NavMoveScrollFlags = scroll_flags; g.NavMoveForwardToNextFrame = false; g.NavMoveKeyMods = g.IO.KeyMods; - g.NavTabbingCounter = 0; g.NavMoveResultLocal.Clear(); g.NavMoveResultLocalVisible.Clear(); g.NavMoveResultOther.Clear(); + g.NavTabbingCounter = 0; + g.NavTabbingResultFirst.Clear(); NavUpdateAnyRequestFlag(); } @@ -9441,7 +10728,12 @@ void ImGui::NavRestoreLayer(ImGuiNavLayer layer) { ImGuiContext& g = *GImGui; if (layer == ImGuiNavLayer_Main) - g.NavWindow = NavRestoreLastChildNavWindow(g.NavWindow); + { + ImGuiWindow* prev_nav_window = g.NavWindow; + g.NavWindow = NavRestoreLastChildNavWindow(g.NavWindow); // FIXME-NAV: Should clear ongoing nav requests? + if (prev_nav_window) + IMGUI_DEBUG_LOG_FOCUS("[focus] NavRestoreLayer: from \"%s\" to SetNavWindow(\"%s\")\n", prev_nav_window->Name, g.NavWindow->Name); + } ImGuiWindow* window = g.NavWindow; if (window->NavLastIds[layer] != 0) { @@ -9477,7 +10769,8 @@ void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) if (window->Flags & ImGuiWindowFlags_NoNavInputs) { - g.NavId = g.NavFocusScopeId = 0; + g.NavId = 0; + g.NavFocusScopeId = window->NavRootFocusScopeId; return; } @@ -9487,7 +10780,7 @@ void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from NavInitWindow(), init_for_nav=%d, window=\"%s\", layer=%d\n", init_for_nav, window->Name, g.NavLayer); if (init_for_nav) { - SetNavID(0, g.NavLayer, 0, ImRect()); + SetNavID(0, g.NavLayer, window->NavRootFocusScopeId, ImRect()); g.NavInitRequest = true; g.NavInitRequestFromMove = false; g.NavInitResultId = 0; @@ -9497,7 +10790,7 @@ void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) else { g.NavId = window->NavLastIds[0]; - g.NavFocusScopeId = 0; + g.NavFocusScopeId = window->NavRootFocusScopeId; } } @@ -9508,9 +10801,10 @@ static ImVec2 ImGui::NavCalcPreferredRefPos() if (g.NavDisableHighlight || !g.NavDisableMouseHover || !window) { // Mouse (we need a fallback in case the mouse becomes invalid after being used) - if (IsMousePosValid(&g.IO.MousePos)) - return g.IO.MousePos; - return g.MouseLastValidPos; + // The +1.0f offset when stored by OpenPopupEx() allows reopening this or another popup (same or another mouse button) while not moving the mouse, it is pretty standard. + // In theory we could move that +1.0f offset in OpenPopupEx() + ImVec2 p = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : g.MouseLastValidPos; + return ImVec2(p.x + 1.0f, p.y); } else { @@ -9528,44 +10822,27 @@ static ImVec2 ImGui::NavCalcPreferredRefPos() } } -float ImGui::GetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode) +float ImGui::GetNavTweakPressedAmount(ImGuiAxis axis) { ImGuiContext& g = *GImGui; - if (mode == ImGuiInputReadMode_Down) - return g.IO.NavInputs[n]; // Instant, read analog input (0.0f..1.0f, as provided by user) - - const float t = g.IO.NavInputsDownDuration[n]; - if (t < 0.0f && mode == ImGuiInputReadMode_Released) // Return 1.0f when just released, no repeat, ignore analog input. - return (g.IO.NavInputsDownDurationPrev[n] >= 0.0f ? 1.0f : 0.0f); - if (t < 0.0f) - return 0.0f; - if (mode == ImGuiInputReadMode_Pressed) // Return 1.0f when just pressed, no repeat, ignore analog input. - return (t == 0.0f) ? 1.0f : 0.0f; - if (mode == ImGuiInputReadMode_Repeat) - return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 0.72f, g.IO.KeyRepeatRate * 0.80f); - if (mode == ImGuiInputReadMode_RepeatSlow) - return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 1.25f, g.IO.KeyRepeatRate * 2.00f); - if (mode == ImGuiInputReadMode_RepeatFast) - return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 0.72f, g.IO.KeyRepeatRate * 0.30f); - return 0.0f; -} + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(ImGuiInputFlags_RepeatRateNavTweak, &repeat_delay, &repeat_rate); -ImVec2 ImGui::GetNavInputAmount2d(ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor, float fast_factor) -{ - ImVec2 delta(0.0f, 0.0f); - if (dir_sources & ImGuiNavDirSourceFlags_RawKeyboard) - delta += ImVec2((float)IsKeyDown(GetKeyIndex(ImGuiKey_RightArrow)) - (float)IsKeyDown(GetKeyIndex(ImGuiKey_LeftArrow)), (float)IsKeyDown(GetKeyIndex(ImGuiKey_DownArrow)) - (float)IsKeyDown(GetKeyIndex(ImGuiKey_UpArrow))); - if (dir_sources & ImGuiNavDirSourceFlags_Keyboard) - delta += ImVec2(GetNavInputAmount(ImGuiNavInput_KeyRight_, mode) - GetNavInputAmount(ImGuiNavInput_KeyLeft_, mode), GetNavInputAmount(ImGuiNavInput_KeyDown_, mode) - GetNavInputAmount(ImGuiNavInput_KeyUp_, mode)); - if (dir_sources & ImGuiNavDirSourceFlags_PadDPad) - delta += ImVec2(GetNavInputAmount(ImGuiNavInput_DpadRight, mode) - GetNavInputAmount(ImGuiNavInput_DpadLeft, mode), GetNavInputAmount(ImGuiNavInput_DpadDown, mode) - GetNavInputAmount(ImGuiNavInput_DpadUp, mode)); - if (dir_sources & ImGuiNavDirSourceFlags_PadLStick) - delta += ImVec2(GetNavInputAmount(ImGuiNavInput_LStickRight, mode) - GetNavInputAmount(ImGuiNavInput_LStickLeft, mode), GetNavInputAmount(ImGuiNavInput_LStickDown, mode) - GetNavInputAmount(ImGuiNavInput_LStickUp, mode)); - if (slow_factor != 0.0f && IsNavInputDown(ImGuiNavInput_TweakSlow)) - delta *= slow_factor; - if (fast_factor != 0.0f && IsNavInputDown(ImGuiNavInput_TweakFast)) - delta *= fast_factor; - return delta; + ImGuiKey key_less, key_more; + if (g.NavInputSource == ImGuiInputSource_Gamepad) + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadLeft : ImGuiKey_GamepadDpadUp; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadRight : ImGuiKey_GamepadDpadDown; + } + else + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_LeftArrow : ImGuiKey_UpArrow; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_RightArrow : ImGuiKey_DownArrow; + } + float amount = (float)GetKeyPressedAmount(key_more, repeat_delay, repeat_rate) - (float)GetKeyPressedAmount(key_less, repeat_delay, repeat_rate); + if (amount != 0.0f && IsKeyDown(key_less) && IsKeyDown(key_more)) // Cancel when opposite directions are held, regardless of repeat phase + amount = 0.0f; + return amount; } static void ImGui::NavUpdate() @@ -9574,39 +10851,22 @@ static void ImGui::NavUpdate() ImGuiIO& io = g.IO; io.WantSetMousePos = false; - //if (g.NavScoringDebugCount > 0) IMGUI_DEBUG_LOG("NavScoringDebugCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.NavScoringDebugCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); + //if (g.NavScoringDebugCount > 0) IMGUI_DEBUG_LOG_NAV("[nav] NavScoringDebugCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.NavScoringDebugCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); - // Set input source as Gamepad when buttons are pressed (as some features differs when used with Gamepad vs Keyboard) - // (do it before we map Keyboard input!) - const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + // Set input source based on which keys are last pressed (as some features differs when used with Gamepad vs Keyboard) + // FIXME-NAV: Now that keys are separated maybe we can get rid of NavInputSource? const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; - if (nav_gamepad_active && g.NavInputSource != ImGuiInputSource_Gamepad) - { - if (io.NavInputs[ImGuiNavInput_Activate] > 0.0f || io.NavInputs[ImGuiNavInput_Input] > 0.0f || io.NavInputs[ImGuiNavInput_Cancel] > 0.0f || io.NavInputs[ImGuiNavInput_Menu] > 0.0f - || io.NavInputs[ImGuiNavInput_DpadLeft] > 0.0f || io.NavInputs[ImGuiNavInput_DpadRight] > 0.0f || io.NavInputs[ImGuiNavInput_DpadUp] > 0.0f || io.NavInputs[ImGuiNavInput_DpadDown] > 0.0f) - g.NavInputSource = ImGuiInputSource_Gamepad; - } - - // Update Keyboard->Nav inputs mapping + const ImGuiKey nav_gamepad_keys_to_change_source[] = { ImGuiKey_GamepadFaceRight, ImGuiKey_GamepadFaceLeft, ImGuiKey_GamepadFaceUp, ImGuiKey_GamepadFaceDown, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown }; + if (nav_gamepad_active) + for (ImGuiKey key : nav_gamepad_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Gamepad; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const ImGuiKey nav_keyboard_keys_to_change_source[] = { ImGuiKey_Space, ImGuiKey_Enter, ImGuiKey_Escape, ImGuiKey_RightArrow, ImGuiKey_LeftArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow }; if (nav_keyboard_active) - { - #define NAV_MAP_KEY(_KEY, _NAV_INPUT) do { if (IsKeyDown(io.KeyMap[_KEY])) { io.NavInputs[_NAV_INPUT] = 1.0f; g.NavInputSource = ImGuiInputSource_Keyboard; } } while (0) - NAV_MAP_KEY(ImGuiKey_Space, ImGuiNavInput_Activate ); - NAV_MAP_KEY(ImGuiKey_Enter, ImGuiNavInput_Input ); - NAV_MAP_KEY(ImGuiKey_Escape, ImGuiNavInput_Cancel ); - NAV_MAP_KEY(ImGuiKey_LeftArrow, ImGuiNavInput_KeyLeft_ ); - NAV_MAP_KEY(ImGuiKey_RightArrow,ImGuiNavInput_KeyRight_); - NAV_MAP_KEY(ImGuiKey_UpArrow, ImGuiNavInput_KeyUp_ ); - NAV_MAP_KEY(ImGuiKey_DownArrow, ImGuiNavInput_KeyDown_ ); - if (io.KeyCtrl) - io.NavInputs[ImGuiNavInput_TweakSlow] = 1.0f; - if (io.KeyShift) - io.NavInputs[ImGuiNavInput_TweakFast] = 1.0f; - #undef NAV_MAP_KEY - } - memcpy(io.NavInputsDownDurationPrev, io.NavInputsDownDuration, sizeof(io.NavInputsDownDuration)); - for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) - io.NavInputsDownDuration[i] = (io.NavInputs[i] > 0.0f) ? (io.NavInputsDownDuration[i] < 0.0f ? 0.0f : io.NavInputsDownDuration[i] + io.DeltaTime) : -1.0f; + for (ImGuiKey key : nav_keyboard_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Keyboard; // Process navigation init request (select first/default focus) if (g.NavInitResultId != 0) @@ -9651,10 +10911,10 @@ static void ImGui::NavUpdate() g.NavActivateFlags = ImGuiActivateFlags_None; if (g.NavId != 0 && !g.NavDisableHighlight && !g.NavWindowingTarget && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) { - bool activate_down = IsNavInputDown(ImGuiNavInput_Activate); - bool input_down = IsNavInputDown(ImGuiNavInput_Input); - bool activate_pressed = activate_down && IsNavInputTest(ImGuiNavInput_Activate, ImGuiInputReadMode_Pressed); - bool input_pressed = input_down && IsNavInputTest(ImGuiNavInput_Input, ImGuiInputReadMode_Pressed); + const bool activate_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Space)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadActivate)); + const bool activate_pressed = activate_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Space, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadActivate, false))); + const bool input_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Enter)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadInput)); + const bool input_pressed = input_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Enter, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadInput, false))); if (g.ActiveId == 0 && activate_pressed) { g.NavActivateId = g.NavId; @@ -9709,13 +10969,17 @@ static void ImGui::NavUpdate() SetScrollY(window, ImFloor(window->Scroll.y + ((move_dir == ImGuiDir_Up) ? -1.0f : +1.0f) * scroll_speed)); } - // *Normal* Manual scroll with NavScrollXXX keys + // *Normal* Manual scroll with LStick // Next movement request will clamp the NavId reference rectangle to the visible area, so navigation will resume within those bounds. - ImVec2 scroll_dir = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadLStick, ImGuiInputReadMode_Down, 1.0f / 10.0f, 10.0f); - if (scroll_dir.x != 0.0f && window->ScrollbarX) - SetScrollX(window, ImFloor(window->Scroll.x + scroll_dir.x * scroll_speed)); - if (scroll_dir.y != 0.0f) - SetScrollY(window, ImFloor(window->Scroll.y + scroll_dir.y * scroll_speed)); + if (nav_gamepad_active) + { + const ImVec2 scroll_dir = GetKeyVector2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + const float tweak_factor = IsKeyDown(ImGuiKey_NavGamepadTweakSlow) ? 1.0f / 10.0f : IsKeyDown(ImGuiKey_NavGamepadTweakFast) ? 10.0f : 1.0f; + if (scroll_dir.x != 0.0f && window->ScrollbarX) + SetScrollX(window, ImFloor(window->Scroll.x + scroll_dir.x * scroll_speed * tweak_factor)); + if (scroll_dir.y != 0.0f) + SetScrollY(window, ImFloor(window->Scroll.y + scroll_dir.y * scroll_speed * tweak_factor)); + } } // Always prioritize mouse highlight if navigation is disabled @@ -9731,7 +10995,7 @@ static void ImGui::NavUpdate() { io.MousePos = io.MousePosPrev = NavCalcPreferredRefPos(); io.WantSetMousePos = true; - //IMGUI_DEBUG_LOG("SetMousePos: (%.1f,%.1f)\n", io.MousePos.x, io.MousePos.y); + //IMGUI_DEBUG_LOG_IO("SetMousePos: (%.1f,%.1f)\n", io.MousePos.x, io.MousePos.y); } // [DEBUG] @@ -9755,7 +11019,7 @@ void ImGui::NavInitRequestApplyResult() // Apply result from previous navigation init request (will typically select the first item, unless SetItemDefaultFocus() has been called) // FIXME-NAV: On _NavFlattened windows, g.NavWindow will only be updated during subsequent frame. Not a problem currently. - IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", g.NavInitResultId, g.NavLayer, g.NavWindow->Name); + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: ApplyResult: NavID 0x%08X in Layer %d Window \"%s\"\n", g.NavInitResultId, g.NavLayer, g.NavWindow->Name); SetNavID(g.NavInitResultId, g.NavLayer, 0, g.NavInitResultRectRel); g.NavIdIsAlive = true; // Mark as alive from previous frame as we got a result if (g.NavInitRequestFromMove) @@ -9767,6 +11031,8 @@ void ImGui::NavUpdateCreateMoveRequest() ImGuiContext& g = *GImGui; ImGuiIO& io = g.IO; ImGuiWindow* window = g.NavWindow; + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; if (g.NavMoveForwardToNextFrame && window != NULL) { @@ -9784,11 +11050,11 @@ void ImGui::NavUpdateCreateMoveRequest() g.NavMoveScrollFlags = ImGuiScrollFlags_None; if (window && !g.NavWindowingTarget && !(window->Flags & ImGuiWindowFlags_NoNavInputs)) { - const ImGuiInputReadMode read_mode = ImGuiInputReadMode_Repeat; - if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && (IsNavInputTest(ImGuiNavInput_DpadLeft, read_mode) || IsNavInputTest(ImGuiNavInput_KeyLeft_, read_mode))) { g.NavMoveDir = ImGuiDir_Left; } - if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && (IsNavInputTest(ImGuiNavInput_DpadRight, read_mode) || IsNavInputTest(ImGuiNavInput_KeyRight_, read_mode))) { g.NavMoveDir = ImGuiDir_Right; } - if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && (IsNavInputTest(ImGuiNavInput_DpadUp, read_mode) || IsNavInputTest(ImGuiNavInput_KeyUp_, read_mode))) { g.NavMoveDir = ImGuiDir_Up; } - if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && (IsNavInputTest(ImGuiNavInput_DpadDown, read_mode) || IsNavInputTest(ImGuiNavInput_KeyDown_, read_mode))) { g.NavMoveDir = ImGuiDir_Down; } + const ImGuiInputFlags repeat_mode = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateNavMove; + if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadLeft, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_LeftArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Left; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadRight, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_RightArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Right; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadUp, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_UpArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Up; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadDown, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_DownArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Down; } } g.NavMoveClipDir = g.NavMoveDir; g.NavScoringNoClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); @@ -9796,7 +11062,6 @@ void ImGui::NavUpdateCreateMoveRequest() // Update PageUp/PageDown/Home/End scroll // FIXME-NAV: Consider enabling those keys even without the master ImGuiConfigFlags_NavEnableKeyboard flag? - const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; float scoring_rect_offset_y = 0.0f; if (window && g.NavMoveDir == ImGuiDir_None && nav_keyboard_active) scoring_rect_offset_y = NavUpdatePageUpPageDown(); @@ -9808,7 +11073,7 @@ void ImGui::NavUpdateCreateMoveRequest() // [DEBUG] Always send a request #if IMGUI_DEBUG_NAV_SCORING - if (io.KeyCtrl && IsKeyPressedMap(ImGuiKey_C)) + if (io.KeyCtrl && IsKeyPressed(ImGuiKey_C)) g.NavMoveDirForDebug = (ImGuiDir)((g.NavMoveDirForDebug + 1) & 3); if (io.KeyCtrl && g.NavMoveDir == ImGuiDir_None) { @@ -9822,28 +11087,34 @@ void ImGui::NavUpdateCreateMoveRequest() if (g.NavMoveDir != ImGuiDir_None) NavMoveRequestSubmit(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); - // Moving with no reference triggers a init request (will be used as a fallback if the direction fails to find a match) + // Moving with no reference triggers an init request (will be used as a fallback if the direction fails to find a match) if (g.NavMoveSubmitted && g.NavId == 0) { - IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", g.NavWindow->Name, g.NavLayer); + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", window ? window->Name : "", g.NavLayer); g.NavInitRequest = g.NavInitRequestFromMove = true; g.NavInitResultId = 0; g.NavDisableHighlight = false; } // When using gamepad, we project the reference nav bounding box into window visible area. - // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, since with gamepad every movements are relative + // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, since with gamepad all movements are relative // (can't focus a visible object like we can with the mouse). - if (g.NavMoveSubmitted && g.NavInputSource == ImGuiInputSource_Gamepad && g.NavLayer == ImGuiNavLayer_Main && window != NULL) + if (g.NavMoveSubmitted && g.NavInputSource == ImGuiInputSource_Gamepad && g.NavLayer == ImGuiNavLayer_Main && window != NULL)// && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded)) { - ImRect window_rect_rel = WindowRectAbsToRel(window, ImRect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1))); - if (!window_rect_rel.Contains(window->NavRectRel[g.NavLayer])) + bool clamp_x = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_WrapX)) == 0; + bool clamp_y = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapY)) == 0; + ImRect inner_rect_rel = WindowRectAbsToRel(window, ImRect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1))); + if ((clamp_x || clamp_y) && !inner_rect_rel.Contains(window->NavRectRel[g.NavLayer])) { - IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel\n"); - float pad = window->CalcFontSize() * 0.5f; - window_rect_rel.Expand(ImVec2(-ImMin(window_rect_rel.GetWidth(), pad), -ImMin(window_rect_rel.GetHeight(), pad))); // Terrible approximation for the intent of starting navigation from first fully visible item - window->NavRectRel[g.NavLayer].ClipWithFull(window_rect_rel); - g.NavId = g.NavFocusScopeId = 0; + //IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel for gamepad move\n"); + float pad_x = ImMin(inner_rect_rel.GetWidth(), window->CalcFontSize() * 0.5f); + float pad_y = ImMin(inner_rect_rel.GetHeight(), window->CalcFontSize() * 0.5f); // Terrible approximation for the intent of starting navigation from first fully visible item + inner_rect_rel.Min.x = clamp_x ? (inner_rect_rel.Min.x + pad_x) : -FLT_MAX; + inner_rect_rel.Max.x = clamp_x ? (inner_rect_rel.Max.x - pad_x) : +FLT_MAX; + inner_rect_rel.Min.y = clamp_y ? (inner_rect_rel.Min.y + pad_y) : -FLT_MAX; + inner_rect_rel.Max.y = clamp_y ? (inner_rect_rel.Max.y - pad_y) : +FLT_MAX; + window->NavRectRel[g.NavLayer].ClipWithFull(inner_rect_rel); + g.NavId = 0; } } @@ -9856,7 +11127,7 @@ void ImGui::NavUpdateCreateMoveRequest() scoring_rect.TranslateY(scoring_rect_offset_y); scoring_rect.Min.x = ImMin(scoring_rect.Min.x + 1.0f, scoring_rect.Max.x); scoring_rect.Max.x = scoring_rect.Min.x; - IM_ASSERT(!scoring_rect.IsInverted()); // Ensure if we have a finite, non-inverted bounding box here will allows us to remove extraneous ImFabs() calls in NavScoreItem(). + IM_ASSERT(!scoring_rect.IsInverted()); // Ensure if we have a finite, non-inverted bounding box here will allow us to remove extraneous ImFabs() calls in NavScoreItem(). //GetForegroundDrawList()->AddRect(scoring_rect.Min, scoring_rect.Max, IM_COL32(255,200,0,255)); // [DEBUG] //if (!g.NavScoringNoClipRect.IsInverted()) { GetForegroundDrawList()->AddRect(g.NavScoringNoClipRect.Min, g.NavScoringNoClipRect.Max, IM_COL32(255, 200, 0, 255)); } // [DEBUG] } @@ -9872,7 +11143,7 @@ void ImGui::NavUpdateCreateTabbingRequest() if (window == NULL || g.NavWindowingTarget != NULL || (window->Flags & ImGuiWindowFlags_NoNavInputs)) return; - const bool tab_pressed = IsKeyPressedMap(ImGuiKey_Tab, true) && !IsActiveIdUsingKey(ImGuiKey_Tab) && !g.IO.KeyCtrl && !g.IO.KeyAlt; + const bool tab_pressed = IsKeyPressed(ImGuiKey_Tab, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat) && !g.IO.KeyCtrl && !g.IO.KeyAlt; if (!tab_pressed) return; @@ -9885,7 +11156,6 @@ void ImGui::NavUpdateCreateTabbingRequest() ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; ImGuiDir clip_dir = (g.NavTabbingDir < 0) ? ImGuiDir_Up : ImGuiDir_Down; NavMoveRequestSubmit(ImGuiDir_None, clip_dir, ImGuiNavMoveFlags_Tabbing, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. - g.NavTabbingResultFirst.Clear(); g.NavTabbingCounter = -1; } @@ -9906,7 +11176,7 @@ void ImGui::NavMoveRequestApplyResult() if ((g.NavTabbingCounter == 1 || g.NavTabbingDir == 0) && g.NavTabbingResultFirst.ID) result = &g.NavTabbingResultFirst; - // In a situation when there is no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) + // In a situation when there are no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) if (result == NULL) { if (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) @@ -9943,7 +11213,11 @@ void ImGui::NavMoveRequestApplyResult() } } - g.NavWindow = result->Window; + if (g.NavWindow != result->Window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] NavMoveRequest: SetNavWindow(\"%s\")\n", result->Window->Name); + g.NavWindow = result->Window; + } if (g.ActiveId != result->ID) ClearActiveID(); if (g.NavId != result->ID) @@ -9985,14 +11259,15 @@ void ImGui::NavMoveRequestApplyResult() static void ImGui::NavUpdateCancelRequest() { ImGuiContext& g = *GImGui; - if (!IsNavInputTest(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed)) + const bool nav_gamepad_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (g.IO.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + if (!(nav_keyboard_active && IsKeyPressed(ImGuiKey_Escape, ImGuiKeyOwner_None)) && !(nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadCancel, ImGuiKeyOwner_None))) return; - IMGUI_DEBUG_LOG_NAV("[nav] ImGuiNavInput_Cancel\n"); + IMGUI_DEBUG_LOG_NAV("[nav] NavUpdateCancelRequest()\n"); if (g.ActiveId != 0) { - if (!IsActiveIdUsingNavInput(ImGuiNavInput_Cancel)) - ClearActiveID(); + ClearActiveID(); } else if (g.NavLayer != ImGuiNavLayer_Main) { @@ -10011,18 +11286,17 @@ static void ImGui::NavUpdateCancelRequest() SetNavID(child_window->ChildId, ImGuiNavLayer_Main, 0, WindowRectAbsToRel(parent_window, child_rect)); NavRestoreHighlightAfterMove(); } - else if (g.OpenPopupStack.Size > 0) + else if (g.OpenPopupStack.Size > 0 && g.OpenPopupStack.back().Window != NULL && !(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) { // Close open popup/menu - if (!(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) - ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); + ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); } else { // Clear NavLastId for popups but keep it for regular child window so we can leave one and come back where we were if (g.NavWindow && ((g.NavWindow->Flags & ImGuiWindowFlags_Popup) || !(g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow))) g.NavWindow->NavLastIds[0] = 0; - g.NavId = g.NavFocusScopeId = 0; + g.NavId = 0; } } @@ -10033,16 +11307,14 @@ static void ImGui::NavUpdateCancelRequest() static float ImGui::NavUpdatePageUpPageDown() { ImGuiContext& g = *GImGui; - ImGuiIO& io = g.IO; - ImGuiWindow* window = g.NavWindow; if ((window->Flags & ImGuiWindowFlags_NoNavInputs) || g.NavWindowingTarget != NULL) return 0.0f; - const bool page_up_held = IsKeyDown(io.KeyMap[ImGuiKey_PageUp]) && !IsActiveIdUsingKey(ImGuiKey_PageUp); - const bool page_down_held = IsKeyDown(io.KeyMap[ImGuiKey_PageDown]) && !IsActiveIdUsingKey(ImGuiKey_PageDown); - const bool home_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_Home]) && !IsActiveIdUsingKey(ImGuiKey_Home); - const bool end_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_End]) && !IsActiveIdUsingKey(ImGuiKey_End); + const bool page_up_held = IsKeyDown(ImGuiKey_PageUp, ImGuiKeyOwner_None); + const bool page_down_held = IsKeyDown(ImGuiKey_PageDown, ImGuiKeyOwner_None); + const bool home_pressed = IsKeyPressed(ImGuiKey_Home, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + const bool end_pressed = IsKeyPressed(ImGuiKey_End, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); if (page_up_held == page_down_held && home_pressed == end_pressed) // Proceed if either (not both) are pressed, otherwise early out return 0.0f; @@ -10052,9 +11324,9 @@ static float ImGui::NavUpdatePageUpPageDown() if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavHasScroll) { // Fallback manual-scroll when window has no navigable item - if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) + if (IsKeyPressed(ImGuiKey_PageUp, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) SetScrollY(window, window->Scroll.y - window->InnerRect.GetHeight()); - else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) + else if (IsKeyPressed(ImGuiKey_PageDown, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) SetScrollY(window, window->Scroll.y + window->InnerRect.GetHeight()); else if (home_pressed) SetScrollY(window, 0.0f); @@ -10066,14 +11338,14 @@ static float ImGui::NavUpdatePageUpPageDown() ImRect& nav_rect_rel = window->NavRectRel[g.NavLayer]; const float page_offset_y = ImMax(0.0f, window->InnerRect.GetHeight() - window->CalcFontSize() * 1.0f + nav_rect_rel.GetHeight()); float nav_scoring_rect_offset_y = 0.0f; - if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) + if (IsKeyPressed(ImGuiKey_PageUp, true)) { nav_scoring_rect_offset_y = -page_offset_y; g.NavMoveDir = ImGuiDir_Down; // Because our scoring rect is offset up, we request the down direction (so we can always land on the last item) g.NavMoveClipDir = ImGuiDir_Up; g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; } - else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) + else if (IsKeyPressed(ImGuiKey_PageDown, true)) { nav_scoring_rect_offset_y = +page_offset_y; g.NavMoveDir = ImGuiDir_Up; // Because our scoring rect is offset down, we request the up direction (so we can always land on the last item) @@ -10208,7 +11480,10 @@ static void NavUpdateWindowingHighlightWindow(int focus_change_dir) if (!window_target) window_target = FindWindowNavFocusable((focus_change_dir < 0) ? (g.WindowsFocusOrder.Size - 1) : 0, i_current, focus_change_dir); if (window_target) // Don't reset windowing target if there's a single window in the list + { g.NavWindowingTarget = g.NavWindowingTargetAnim = window_target; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + } g.NavWindowingToggleLayer = false; } @@ -10237,13 +11512,18 @@ static void ImGui::NavUpdateWindowing() } // Start CTRL+Tab or Square+L/R window selection - const bool start_windowing_with_gamepad = allow_windowing && !g.NavWindowingTarget && IsNavInputTest(ImGuiNavInput_Menu, ImGuiInputReadMode_Pressed); - const bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && io.KeyCtrl && IsKeyPressedMap(ImGuiKey_Tab); + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const bool keyboard_next_window = allow_windowing && g.ConfigNavWindowingKeyNext && Shortcut(g.ConfigNavWindowingKeyNext, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool keyboard_prev_window = allow_windowing && g.ConfigNavWindowingKeyPrev && Shortcut(g.ConfigNavWindowingKeyPrev, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool start_windowing_with_gamepad = allow_windowing && nav_gamepad_active && !g.NavWindowingTarget && IsKeyPressed(ImGuiKey_NavGamepadMenu, 0, ImGuiInputFlags_None); + const bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && (keyboard_next_window || keyboard_prev_window); // Note: enabled even without NavEnableKeyboard! if (start_windowing_with_gamepad || start_windowing_with_keyboard) if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1)) { g.NavWindowingTarget = g.NavWindowingTargetAnim = window->RootWindow; g.NavWindowingTimer = g.NavWindowingHighlightAlpha = 0.0f; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); g.NavWindowingToggleLayer = start_windowing_with_gamepad ? true : false; // Gamepad starts toggling layer g.NavInputSource = start_windowing_with_keyboard ? ImGuiInputSource_Keyboard : ImGuiInputSource_Gamepad; } @@ -10256,7 +11536,7 @@ static void ImGui::NavUpdateWindowing() g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // Select window to focus - const int focus_change_dir = (int)IsNavInputTest(ImGuiNavInput_FocusPrev, ImGuiInputReadMode_RepeatSlow) - (int)IsNavInputTest(ImGuiNavInput_FocusNext, ImGuiInputReadMode_RepeatSlow); + const int focus_change_dir = (int)IsKeyPressed(ImGuiKey_GamepadL1) - (int)IsKeyPressed(ImGuiKey_GamepadR1); if (focus_change_dir != 0) { NavUpdateWindowingHighlightWindow(focus_change_dir); @@ -10264,7 +11544,7 @@ static void ImGui::NavUpdateWindowing() } // Single press toggles NavLayer, long press with L/R apply actual focus on release (until then the window was merely rendered top-most) - if (!IsNavInputDown(ImGuiNavInput_Menu)) + if (!IsKeyDown(ImGuiKey_NavGamepadMenu)) { g.NavWindowingToggleLayer &= (g.NavWindowingHighlightAlpha < 1.0f); // Once button was held long enough we don't consider it a tap-to-toggle-layer press anymore. if (g.NavWindowingToggleLayer && g.NavWindow) @@ -10279,18 +11559,19 @@ static void ImGui::NavUpdateWindowing() if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Keyboard) { // Visuals only appears after a brief time after pressing TAB the first time, so that a fast CTRL+TAB doesn't add visual noise + ImGuiKeyChord shared_mods = ((g.ConfigNavWindowingKeyNext ? g.ConfigNavWindowingKeyNext : ImGuiMod_Mask_) & (g.ConfigNavWindowingKeyPrev ? g.ConfigNavWindowingKeyPrev : ImGuiMod_Mask_)) & ImGuiMod_Mask_; + IM_ASSERT(shared_mods != 0); // Next/Prev shortcut currently needs a shared modifier to "hold", otherwise Prev actions would keep cycling between two windows. g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // 1.0f - if (IsKeyPressedMap(ImGuiKey_Tab, true)) - NavUpdateWindowingHighlightWindow(io.KeyShift ? +1 : -1); - if (!io.KeyCtrl) + if (keyboard_next_window || keyboard_prev_window) + NavUpdateWindowingHighlightWindow(keyboard_next_window ? -1 : +1); + else if ((io.KeyMods & shared_mods) != shared_mods) apply_focus_window = g.NavWindowingTarget; } // Keyboard: Press and Release ALT to toggle menu layer // - Testing that only Alt is tested prevents Alt+Shift or AltGR from toggling menu layer. // - AltGR is normally Alt+Ctrl but we can't reliably detect it (not all backends/systems/layout emit it as Alt+Ctrl). But even on keyboards without AltGR we don't want Alt+Ctrl to open menu anyway. - const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; - if (nav_keyboard_active && io.KeyMods == ImGuiKeyModFlags_Alt && (io.KeyModsPrev & ImGuiKeyModFlags_Alt) == 0) + if (nav_keyboard_active && IsKeyPressed(ImGuiMod_Alt, ImGuiKeyOwner_None)) { g.NavWindowingToggleLayer = true; g.NavInputSource = ImGuiInputSource_Keyboard; @@ -10299,36 +11580,41 @@ static void ImGui::NavUpdateWindowing() { // We cancel toggling nav layer when any text has been typed (generally while holding Alt). (See #370) // We cancel toggling nav layer when other modifiers are pressed. (See #4439) - if (io.InputQueueCharacters.Size > 0 || io.KeyCtrl || io.KeyShift || io.KeySuper) + // We cancel toggling nav layer if an owner has claimed the key. + if (io.InputQueueCharacters.Size > 0 || io.KeyCtrl || io.KeyShift || io.KeySuper || TestKeyOwner(ImGuiMod_Alt, ImGuiKeyOwner_None) == false) g.NavWindowingToggleLayer = false; // Apply layer toggle on release - // Important: we don't assume that Alt was previously held in order to handle loss of focus when backend calls io.AddFocusEvent(false) // Important: as before version <18314 we lacked an explicit IO event for focus gain/loss, we also compare mouse validity to detect old backends clearing mouse pos on focus loss. - if (!(io.KeyMods & ImGuiKeyModFlags_Alt) && (io.KeyModsPrev & ImGuiKeyModFlags_Alt) && g.NavWindowingToggleLayer) + if (IsKeyReleased(ImGuiMod_Alt) && g.NavWindowingToggleLayer) if (g.ActiveId == 0 || g.ActiveIdAllowOverlap) if (IsMousePosValid(&io.MousePos) == IsMousePosValid(&io.MousePosPrev)) apply_toggle_layer = true; - if (!io.KeyAlt) + if (!IsKeyDown(ImGuiMod_Alt)) g.NavWindowingToggleLayer = false; } // Move window if (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoMove)) { - ImVec2 move_delta; + ImVec2 nav_move_dir; if (g.NavInputSource == ImGuiInputSource_Keyboard && !io.KeyShift) - move_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_RawKeyboard, ImGuiInputReadMode_Down); + nav_move_dir = GetKeyVector2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); if (g.NavInputSource == ImGuiInputSource_Gamepad) - move_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadLStick, ImGuiInputReadMode_Down); - if (move_delta.x != 0.0f || move_delta.y != 0.0f) + nav_move_dir = GetKeyVector2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + if (nav_move_dir.x != 0.0f || nav_move_dir.y != 0.0f) { const float NAV_MOVE_SPEED = 800.0f; - const float move_speed = ImFloor(NAV_MOVE_SPEED * io.DeltaTime * ImMin(io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y)); // FIXME: Doesn't handle variable framerate very well - ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindow; - SetWindowPos(moving_window, moving_window->Pos + move_delta * move_speed, ImGuiCond_Always); - MarkIniSettingsDirty(moving_window); + const float move_step = NAV_MOVE_SPEED * io.DeltaTime * ImMin(io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaPos += nav_move_dir * move_step; g.NavDisableMouseHover = true; + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaPos); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindow; + SetWindowPos(moving_window, moving_window->Pos + accum_floored, ImGuiCond_Always); + g.NavWindowingAccumDeltaPos -= accum_floored; + } } } @@ -10392,10 +11678,10 @@ static void ImGui::NavUpdateWindowing() static const char* GetFallbackWindowNameForWindowingList(ImGuiWindow* window) { if (window->Flags & ImGuiWindowFlags_Popup) - return "(Popup)"; + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingPopup); if ((window->Flags & ImGuiWindowFlags_MenuBar) && strcmp(window->Name, "##MainMenuBar") == 0) - return "(Main menu bar)"; - return "(Untitled)"; + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingMainMenuBar); + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingUntitled); } // Overlay displayed when using CTRL+TAB. Called by EndFrame(). @@ -10434,6 +11720,12 @@ void ImGui::NavUpdateWindowingOverlay() // [SECTION] DRAG AND DROP //----------------------------------------------------------------------------- +bool ImGui::IsDragDropActive() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive; +} + void ImGui::ClearDragDrop() { ImGuiContext& g = *GImGui; @@ -10503,6 +11795,7 @@ bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) // We don't need to maintain/call ClearActiveID() as releasing the button will early out this function and trigger !ActiveIdIsAlive. // Rely on keeping other window->LastItemXXX fields intact. source_id = g.LastItemData.ID = window->GetIDFromRectangle(g.LastItemData.Rect); + KeepAliveID(source_id); bool is_hovered = ItemHoverable(g.LastItemData.Rect, source_id); if (is_hovered && g.IO.MouseClicked[mouse_button]) { @@ -10518,7 +11811,7 @@ bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) source_drag_active = IsMouseDragging(mouse_button); // Disable navigation and key inputs while dragging + cancel existing request if any - SetActiveIdUsingNavAndKeys(); + SetActiveIdUsingAllKeyboardKeys(); } else { @@ -10622,6 +11915,7 @@ bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_s } payload.DataFrameCount = g.FrameCount; + // Return whether the payload has been accepted return (g.DragDropAcceptFrameCount == g.FrameCount) || (g.DragDropAcceptFrameCount == g.FrameCount - 1); } @@ -10649,7 +11943,7 @@ bool ImGui::BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id) } // We don't use BeginDragDropTargetCustom() and duplicate its code because: -// 1) we use LastItemRectHoveredRect which handles items that pushes a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. +// 1) we use LastItemRectHoveredRect which handles items that push a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. // 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can. // Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case) bool ImGui::BeginDragDropTarget() @@ -10668,7 +11962,10 @@ bool ImGui::BeginDragDropTarget() const ImRect& display_rect = (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDisplayRect) ? g.LastItemData.DisplayRect : g.LastItemData.Rect; ImGuiID id = g.LastItemData.ID; if (id == 0) + { id = window->GetIDFromRectangle(display_rect); + KeepAliveID(id); + } if (g.DragDropPayload.SourceId == id) return false; @@ -10708,9 +12005,8 @@ const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDrop } // Render default drop visuals - // FIXME-DRAGDROP: Settle on a proper default visuals for drop target. payload.Preview = was_accepted_previously; - flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that lives for 1 frame) + flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that live for 1 frame) if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) window->DrawList->AddRect(r.Min - ImVec2(3.5f,3.5f), r.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); @@ -10722,10 +12018,16 @@ const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDrop return &payload; } +// FIXME-DRAGDROP: Settle on a proper default visuals for drop target. +void ImGui::RenderDragDropTargetRect(const ImRect& bb) +{ + GetWindowDrawList()->AddRect(bb.Min - ImVec2(3.5f, 3.5f), bb.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); +} + const ImGuiPayload* ImGui::GetDragDropPayload() { ImGuiContext& g = *GImGui; - return g.DragDropActive ? &g.DragDropPayload : NULL; + return (g.DragDropActive && g.DragDropPayload.DataFrameCount != -1) ? &g.DragDropPayload : NULL; } // We don't really use/need this now, but added it for the sake of consistency and because we might need it later. @@ -11082,6 +12384,20 @@ ImGuiWindowSettings* ImGui::FindOrCreateWindowSettings(const char* name) return CreateNewWindowSettings(name); } +void ImGui::AddSettingsHandler(const ImGuiSettingsHandler* handler) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(FindSettingsHandler(handler->TypeName) == NULL); + g.SettingsHandlers.push_back(*handler); +} + +void ImGui::RemoveSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + if (ImGuiSettingsHandler* handler = FindSettingsHandler(type_name)) + g.SettingsHandlers.erase(handler); +} + ImGuiSettingsHandler* ImGui::FindSettingsHandler(const char* type_name) { ImGuiContext& g = *GImGui; @@ -11107,7 +12423,8 @@ void ImGui::LoadIniSettingsFromDisk(const char* ini_filename) char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size); if (!file_data) return; - LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); + if (file_data_size > 0) + LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); IM_FREE(file_data); } @@ -11294,10 +12611,23 @@ static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandl } +//----------------------------------------------------------------------------- +// [SECTION] LOCALIZATION +//----------------------------------------------------------------------------- + +void ImGui::LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count) +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < count; n++) + g.LocalizationTable[entries[n].Key] = entries[n].Text; +} + + //----------------------------------------------------------------------------- // [SECTION] VIEWPORTS, PLATFORM WINDOWS //----------------------------------------------------------------------------- // - GetMainViewport() +// - SetWindowViewport() [Internal] // - UpdateViewportsNewFrame() [Internal] // (this section is more complete in the 'docking' branch) //----------------------------------------------------------------------------- @@ -11308,6 +12638,11 @@ ImGuiViewport* ImGui::GetMainViewport() return g.Viewports[0]; } +void ImGui::SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) +{ + window->Viewport = viewport; +} + // Update viewports and monitor infos static void ImGui::UpdateViewportsNewFrame() { @@ -11478,25 +12813,37 @@ static void SetClipboardTextFn_DefaultImpl(void*, const char* text) #pragma comment(lib, "imm32") #endif -static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y) +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data) { // Notify OS Input Method Editor of text input position - ImGuiIO& io = ImGui::GetIO(); - if (HWND hwnd = (HWND)io.ImeWindowHandle) - if (HIMC himc = ::ImmGetContext(hwnd)) - { - COMPOSITIONFORM cf; - cf.ptCurrentPos.x = x; - cf.ptCurrentPos.y = y; - cf.dwStyle = CFS_FORCE_POSITION; - ::ImmSetCompositionWindow(himc, &cf); - ::ImmReleaseContext(hwnd, himc); - } + HWND hwnd = (HWND)viewport->PlatformHandleRaw; +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (hwnd == 0) + hwnd = (HWND)ImGui::GetIO().ImeWindowHandle; +#endif + if (hwnd == 0) + return; + + //::ImmAssociateContextEx(hwnd, NULL, data->WantVisible ? IACE_DEFAULT : 0); + if (HIMC himc = ::ImmGetContext(hwnd)) + { + COMPOSITIONFORM composition_form = {}; + composition_form.ptCurrentPos.x = (LONG)data->InputPos.x; + composition_form.ptCurrentPos.y = (LONG)data->InputPos.y; + composition_form.dwStyle = CFS_FORCE_POSITION; + ::ImmSetCompositionWindow(himc, &composition_form); + CANDIDATEFORM candidate_form = {}; + candidate_form.dwStyle = CFS_CANDIDATEPOS; + candidate_form.ptCurrentPos.x = (LONG)data->InputPos.x; + candidate_form.ptCurrentPos.y = (LONG)data->InputPos.y; + ::ImmSetCandidateWindow(himc, &candidate_form); + ::ImmReleaseContext(hwnd, himc); + } } #else -static void ImeSetInputScreenPosFn_DefaultImpl(int, int) {} +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport*, ImGuiPlatformImeData*) {} #endif @@ -11505,11 +12852,15 @@ static void ImeSetInputScreenPosFn_DefaultImpl(int, int) {} //----------------------------------------------------------------------------- // - RenderViewportThumbnail() [Internal] // - RenderViewportsThumbnails() [Internal] +// - DebugTextEncoding() // - MetricsHelpMarker() [Internal] +// - ShowFontAtlas() [Internal] // - ShowMetricsWindow() // - DebugNodeColumns() [Internal] // - DebugNodeDrawList() [Internal] // - DebugNodeDrawCmdShowMeshAndBoundingBox() [Internal] +// - DebugNodeFont() [Internal] +// - DebugNodeFontGlyph() [Internal] // - DebugNodeStorage() [Internal] // - DebugNodeTabBar() [Internal] // - DebugNodeViewport() [Internal] @@ -11519,7 +12870,7 @@ static void ImeSetInputScreenPosFn_DefaultImpl(int, int) {} // - DebugNodeWindowsListByBeginStackParent() [Internal] //----------------------------------------------------------------------------- -#ifndef IMGUI_DISABLE_METRICS_WINDOW +#ifndef IMGUI_DISABLE_DEBUG_TOOLS void ImGui::DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb) { @@ -11572,11 +12923,47 @@ static void RenderViewportsThumbnails() ImGui::Dummy(bb_full.GetSize() * SCALE); } +// Helper tool to diagnose between text encoding issues and font loading issues. Pass your UTF-8 string and verify that there are correct. +void ImGui::DebugTextEncoding(const char* str) +{ + Text("Text: \"%s\"", str); + if (!BeginTable("list", 4, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit)) + return; + TableSetupColumn("Offset"); + TableSetupColumn("UTF-8"); + TableSetupColumn("Glyph"); + TableSetupColumn("Codepoint"); + TableHeadersRow(); + for (const char* p = str; *p != 0; ) + { + unsigned int c; + const int c_utf8_len = ImTextCharFromUtf8(&c, p, NULL); + TableNextColumn(); + Text("%d", (int)(p - str)); + TableNextColumn(); + for (int byte_index = 0; byte_index < c_utf8_len; byte_index++) + { + if (byte_index > 0) + SameLine(); + Text("0x%02X", (int)(unsigned char)p[byte_index]); + } + TableNextColumn(); + if (GetFont()->FindGlyphNoFallback((ImWchar)c)) + TextUnformatted(p, p + c_utf8_len); + else + TextUnformatted((c == IM_UNICODE_CODEPOINT_INVALID) ? "[invalid]" : "[missing]"); + TableNextColumn(); + Text("U+%04X", (int)c); + p += c_utf8_len; + } + EndTable(); +} + // Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds. static void MetricsHelpMarker(const char* desc) { ImGui::TextDisabled("(?)"); - if (ImGui::IsItemHovered()) + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) { ImGui::BeginTooltip(); ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); @@ -11586,15 +12973,32 @@ static void MetricsHelpMarker(const char* desc) } } -#ifndef IMGUI_DISABLE_DEMO_WINDOWS -namespace ImGui { void ShowFontAtlas(ImFontAtlas* atlas); } -#endif +// [DEBUG] List fonts in a font atlas and display its texture +void ImGui::ShowFontAtlas(ImFontAtlas* atlas) +{ + for (int i = 0; i < atlas->Fonts.Size; i++) + { + ImFont* font = atlas->Fonts[i]; + PushID(font); + DebugNodeFont(font); + PopID(); + } + if (TreeNode("Atlas texture", "Atlas texture (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) + { + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); + ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); + Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), tint_col, border_col); + TreePop(); + } +} void ImGui::ShowMetricsWindow(bool* p_open) { ImGuiContext& g = *GImGui; ImGuiIO& io = g.IO; ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + if (cfg->ShowDebugLog) + ShowDebugLogWindow(&cfg->ShowDebugLog); if (cfg->ShowStackTool) ShowStackToolWindow(&cfg->ShowStackTool); @@ -11627,19 +13031,20 @@ void ImGui::ShowMetricsWindow(bool* p_open) { static ImRect GetTableRect(ImGuiTable* table, int rect_type, int n) { + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); // Always using last submitted instance if (rect_type == TRT_OuterRect) { return table->OuterRect; } else if (rect_type == TRT_InnerRect) { return table->InnerRect; } else if (rect_type == TRT_WorkRect) { return table->WorkRect; } else if (rect_type == TRT_HostClipRect) { return table->HostClipRect; } else if (rect_type == TRT_InnerClipRect) { return table->InnerClipRect; } else if (rect_type == TRT_BackgroundClipRect) { return table->BgClipRect; } - else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table->LastOuterHeight); } + else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table_instance->LastOuterHeight); } else if (rect_type == TRT_ColumnsWorkRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->WorkRect.Min.y, c->WorkMaxX, table->WorkRect.Max.y); } else if (rect_type == TRT_ColumnsClipRect) { ImGuiTableColumn* c = &table->Columns[n]; return c->ClipRect; } - else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table->LastFirstRowHeight); } // Note: y1/y2 not always accurate - else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table->LastFirstRowHeight); } - else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table->LastFirstRowHeight); } - else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table->LastFirstRowHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } + else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } // Note: y1/y2 not always accurate + else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } + else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } + else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } IM_ASSERT(0); return ImRect(); } @@ -11662,8 +13067,32 @@ void ImGui::ShowMetricsWindow(bool* p_open) // Tools if (TreeNode("Tools")) { + bool show_encoding_viewer = TreeNode("UTF-8 Encoding viewer"); + SameLine(); + MetricsHelpMarker("You can also call ImGui::DebugTextEncoding() from your code with a given string to test that your UTF-8 encoding settings are correct."); + if (show_encoding_viewer) + { + static char buf[100] = ""; + SetNextItemWidth(-FLT_MIN); + InputText("##Text", buf, IM_ARRAYSIZE(buf)); + if (buf[0] != 0) + DebugTextEncoding(buf); + TreePop(); + } + + // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. + if (Checkbox("Show Item Picker", &g.DebugItemPickerActive) && g.DebugItemPickerActive) + DebugStartItemPicker(); + SameLine(); + MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); + + // Stack Tool is your best friend! + Checkbox("Show Debug Log", &cfg->ShowDebugLog); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowDebugLogWindow() from your code."); + // Stack Tool is your best friend! - Checkbox("Show stack tool", &cfg->ShowStackTool); + Checkbox("Show Stack Tool", &cfg->ShowStackTool); SameLine(); MetricsHelpMarker("You can also call ImGui::ShowStackToolWindow() from your code."); @@ -11729,12 +13158,6 @@ void ImGui::ShowMetricsWindow(bool* p_open) } } - // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. - if (Button("Item Picker..")) - DebugStartItemPicker(); - SameLine(); - MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); - TreePop(); } @@ -11795,8 +13218,12 @@ void ImGui::ShowMetricsWindow(bool* p_open) { for (int i = 0; i < g.OpenPopupStack.Size; i++) { - ImGuiWindow* window = g.OpenPopupStack[i].Window; - BulletText("PopupID: %08x, Window: '%s'%s%s", g.OpenPopupStack[i].PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? " ChildWindow" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? " ChildMenu" : ""); + // As it's difficult to interact with tree nodes while popups are open, we display everything inline. + const ImGuiPopupData* popup_data = &g.OpenPopupStack[i]; + ImGuiWindow* window = popup_data->Window; + BulletText("PopupID: %08x, Window: '%s' (%s%s), BackupNavWindow '%s', ParentWindow '%s'", + popup_data->PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? "Child;" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? "Menu;" : "", + popup_data->BackupNavWindow ? popup_data->BackupNavWindow->Name : "NULL", window && window->ParentWindow ? window->ParentWindow->Name : "NULL"); } TreePop(); } @@ -11824,14 +13251,19 @@ void ImGui::ShowMetricsWindow(bool* p_open) } // Details for Fonts -#ifndef IMGUI_DISABLE_DEMO_WINDOWS ImFontAtlas* atlas = g.IO.Fonts; if (TreeNode("Fonts", "Fonts (%d)", atlas->Fonts.Size)) { ShowFontAtlas(atlas); TreePop(); } -#endif + + // Details for InputText + if (TreeNode("InputText")) + { + DebugNodeInputTextState(&g.InputTextState); + TreePop(); + } // Details for Docking #ifdef IMGUI_HAS_DOCK @@ -11889,11 +13321,46 @@ void ImGui::ShowMetricsWindow(bool* p_open) TreePop(); } - // Misc Details - if (TreeNode("Internal state")) + if (TreeNode("Key Owners & Shortcut Routing")) { - const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad", "Nav", "Clipboard" }; IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT); + TextUnformatted("Key Owners:"); + if (BeginListBox("##owners", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 8))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + continue; + Text("%s: 0x%08X%s", GetKeyName(key), owner_data->OwnerCurr, + owner_data->LockUntilRelease ? " LockUntilRelease" : owner_data->LockThisFrame ? " LockThisFrame" : ""); + DebugLocateItemOnHover(owner_data->OwnerCurr); + } + EndListBox(); + } + TextUnformatted("Shortcut Routing:"); + if (BeginListBox("##routes", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 8))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; ) + { + char key_chord_name[64]; + ImGuiKeyRoutingData* routing_data = &rt->Entries[idx]; + GetKeyChordName(key | routing_data->Mods, key_chord_name, IM_ARRAYSIZE(key_chord_name)); + Text("%s: 0x%08X", key_chord_name, routing_data->RoutingCurr); + DebugLocateItemOnHover(routing_data->RoutingCurr); + idx = routing_data->NextEntryIndex; + } + } + EndListBox(); + } + Text("(ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: 0x%X)", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + TreePop(); + } + if (TreeNode("Internal state")) + { Text("WINDOWING"); Indent(); Text("HoveredWindow: '%s'", g.HoveredWindow ? g.HoveredWindow->Name : "NULL"); @@ -11904,18 +13371,22 @@ void ImGui::ShowMetricsWindow(bool* p_open) Text("ITEMS"); Indent(); - Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, input_source_names[g.ActiveIdSource]); + Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, GetInputSourceName(g.ActiveIdSource)); + DebugLocateItemOnHover(g.ActiveId); Text("ActiveIdWindow: '%s'", g.ActiveIdWindow ? g.ActiveIdWindow->Name : "NULL"); - Text("ActiveIdUsing: Wheel: %d, NavDirMask: %X, NavInputMask: %X, KeyInputMask: %llX", g.ActiveIdUsingMouseWheel, g.ActiveIdUsingNavDirMask, g.ActiveIdUsingNavInputMask, g.ActiveIdUsingKeyInputMask); + Text("ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: %X", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); Text("HoveredId: 0x%08X (%.2f sec), AllowOverlap: %d", g.HoveredIdPreviousFrame, g.HoveredIdTimer, g.HoveredIdAllowOverlap); // Not displaying g.HoveredId as it is update mid-frame + Text("HoverDelayId: 0x%08X, Timer: %.2f, ClearTimer: %.2f", g.HoverDelayId, g.HoverDelayTimer, g.HoverDelayClearTimer); Text("DragDrop: %d, SourceId = 0x%08X, Payload \"%s\" (%d bytes)", g.DragDropActive, g.DragDropPayload.SourceId, g.DragDropPayload.DataType, g.DragDropPayload.DataSize); + DebugLocateItemOnHover(g.DragDropPayload.SourceId); Unindent(); Text("NAV,FOCUS"); Indent(); Text("NavWindow: '%s'", g.NavWindow ? g.NavWindow->Name : "NULL"); Text("NavId: 0x%08X, NavLayer: %d", g.NavId, g.NavLayer); - Text("NavInputSource: %s", input_source_names[g.NavInputSource]); + DebugLocateItemOnHover(g.NavId); + Text("NavInputSource: %s", GetInputSourceName(g.NavInputSource)); Text("NavActive: %d, NavVisible: %d", g.IO.NavActive, g.IO.NavVisible); Text("NavActivateId/DownId/PressedId/InputId: %08X/%08X/%08X/%08X", g.NavActivateId, g.NavActivateDownId, g.NavActivatePressedId, g.NavActivateInputId); Text("NavActivateFlags: %04X", g.NavActivateFlags); @@ -11989,25 +13460,6 @@ void ImGui::ShowMetricsWindow(bool* p_open) End(); } -// [DEBUG] List fonts in a font atlas and display its texture -void ImGui::ShowFontAtlas(ImFontAtlas* atlas) -{ - for (int i = 0; i < atlas->Fonts.Size; i++) - { - ImFont* font = atlas->Fonts[i]; - PushID(font); - DebugNodeFont(font); - PopID(); - } - if (TreeNode("Atlas texture", "Atlas texture (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) - { - ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); - ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); - Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), tint_col, border_col); - TreePop(); - } -} - // [DEBUG] Display contents of Columns void ImGui::DebugNodeColumns(ImGuiOldColumns* columns) { @@ -12217,17 +13669,13 @@ void ImGui::DebugNodeFont(ImFont* font) ImVec2 cell_p2(cell_p1.x + cell_size, cell_p1.y + cell_size); const ImFontGlyph* glyph = font->FindGlyphNoFallback((ImWchar)(base + n)); draw_list->AddRect(cell_p1, cell_p2, glyph ? IM_COL32(255, 255, 255, 100) : IM_COL32(255, 255, 255, 50)); - if (glyph) - font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); - if (glyph && IsMouseHoveringRect(cell_p1, cell_p2)) + if (!glyph) + continue; + font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); + if (IsMouseHoveringRect(cell_p1, cell_p2)) { BeginTooltip(); - Text("Codepoint: U+%04X", base + n); - Separator(); - Text("Visible: %d", glyph->Visible); - Text("AdvanceX: %.1f", glyph->AdvanceX); - Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); - Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); + DebugNodeFontGlyph(font, glyph); EndTooltip(); } } @@ -12239,6 +13687,16 @@ void ImGui::DebugNodeFont(ImFont* font) TreePop(); } +void ImGui::DebugNodeFontGlyph(ImFont*, const ImFontGlyph* glyph) +{ + Text("Codepoint: U+%04X", glyph->Codepoint); + Separator(); + Text("Visible: %d", glyph->Visible); + Text("AdvanceX: %.1f", glyph->AdvanceX); + Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); + Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); +} + // [DEBUG] Display contents of ImGuiStorage void ImGui::DebugNodeStorage(ImGuiStorage* storage, const char* label) { @@ -12287,7 +13745,7 @@ void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label) PushID(tab); if (SmallButton("<")) { TabBarQueueReorder(tab_bar, tab, -1); } SameLine(0, 2); if (SmallButton(">")) { TabBarQueueReorder(tab_bar, tab, +1); } SameLine(); - Text("%02d%c Tab 0x%08X '%s' Offset: %.1f, Width: %.1f/%.1f", + Text("%02d%c Tab 0x%08X '%s' Offset: %.2f, Width: %.2f/%.2f", tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID, (tab->NameOffset != -1) ? tab_bar->GetTabName(tab) : "???", tab->Offset, tab->Width, tab->ContentWidth); PopID(); } @@ -12351,13 +13809,10 @@ void ImGui::DebugNodeWindow(ImGuiWindow* window, const char* label) { ImRect r = window->NavRectRel[layer]; if (r.Min.x >= r.Max.y && r.Min.y >= r.Max.y) - { BulletText("NavLastIds[%d]: 0x%08X", layer, window->NavLastIds[layer]); - continue; - } - BulletText("NavLastIds[%d]: 0x%08X at +(%.1f,%.1f)(%.1f,%.1f)", layer, window->NavLastIds[layer], r.Min.x, r.Min.y, r.Max.x, r.Max.y); - if (IsItemHovered()) - GetForegroundDrawList(window)->AddRect(r.Min + window->Pos, r.Max + window->Pos, IM_COL32(255, 255, 0, 255)); + else + BulletText("NavLastIds[%d]: 0x%08X at +(%.1f,%.1f)(%.1f,%.1f)", layer, window->NavLastIds[layer], r.Min.x, r.Min.y, r.Max.x, r.Max.y); + DebugLocateItemOnHover(window->NavLastIds[layer]); } BulletText("NavLayersActiveMask: %X, NavLastChildNavWindow: %s", window->DC.NavLayersActiveMask, window->NavLastChildNavWindow ? window->NavLastChildNavWindow->Name : "NULL"); if (window->RootWindow != window) { DebugNodeWindow(window->RootWindow, "RootWindow"); } @@ -12410,10 +13865,126 @@ void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int wi } } +//----------------------------------------------------------------------------- +// [SECTION] DEBUG LOG WINDOW +//----------------------------------------------------------------------------- + +void ImGui::DebugLog(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + DebugLogV(fmt, args); + va_end(args); +} + +void ImGui::DebugLogV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + const int old_size = g.DebugLogBuf.size(); + g.DebugLogBuf.appendf("[%05d] ", g.FrameCount); + g.DebugLogBuf.appendfv(fmt, args); + if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTTY) + IMGUI_DEBUG_PRINTF("%s", g.DebugLogBuf.begin() + old_size); + g.DebugLogIndex.append(g.DebugLogBuf.c_str(), old_size, g.DebugLogBuf.size()); +} + +void ImGui::ShowDebugLogWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 12.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui Debug Log", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + AlignTextToFramePadding(); + Text("Log events:"); + SameLine(); CheckboxFlags("All", &g.DebugLogFlags, ImGuiDebugLogFlags_EventMask_); + SameLine(); CheckboxFlags("ActiveId", &g.DebugLogFlags, ImGuiDebugLogFlags_EventActiveId); + SameLine(); CheckboxFlags("Focus", &g.DebugLogFlags, ImGuiDebugLogFlags_EventFocus); + SameLine(); CheckboxFlags("Popup", &g.DebugLogFlags, ImGuiDebugLogFlags_EventPopup); + SameLine(); CheckboxFlags("Nav", &g.DebugLogFlags, ImGuiDebugLogFlags_EventNav); + SameLine(); CheckboxFlags("Clipper", &g.DebugLogFlags, ImGuiDebugLogFlags_EventClipper); + SameLine(); CheckboxFlags("IO", &g.DebugLogFlags, ImGuiDebugLogFlags_EventIO); + + if (SmallButton("Clear")) + { + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + } + SameLine(); + if (SmallButton("Copy")) + SetClipboardText(g.DebugLogBuf.c_str()); + BeginChild("##log", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar); + + ImGuiListClipper clipper; + clipper.Begin(g.DebugLogIndex.size()); + while (clipper.Step()) + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_begin = g.DebugLogIndex.get_line_begin(g.DebugLogBuf.c_str(), line_no); + const char* line_end = g.DebugLogIndex.get_line_end(g.DebugLogBuf.c_str(), line_no); + TextUnformatted(line_begin, line_end); + ImRect text_rect = g.LastItemData.Rect; + if (IsItemHovered()) + for (const char* p = line_begin; p < line_end - 10; p++) + { + ImGuiID id = 0; + if (p[0] != '0' || (p[1] != 'x' && p[1] != 'X') || sscanf(p + 2, "%X", &id) != 1) + continue; + ImVec2 p0 = CalcTextSize(line_begin, p); + ImVec2 p1 = CalcTextSize(p, p + 10); + g.LastItemData.Rect = ImRect(text_rect.Min + ImVec2(p0.x, 0.0f), text_rect.Min + ImVec2(p0.x + p1.x, p1.y)); + if (IsMouseHoveringRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, true)) + DebugLocateItemOnHover(id); + p += 10; + } + } + if (GetScrollY() >= GetScrollMaxY()) + SetScrollHereY(1.0f); + EndChild(); + + End(); +} + //----------------------------------------------------------------------------- // [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) //----------------------------------------------------------------------------- +static const ImU32 DEBUG_LOCATE_ITEM_COLOR = IM_COL32(0, 255, 0, 255); // Green + +void ImGui::DebugLocateItem(ImGuiID target_id) +{ + ImGuiContext& g = *GImGui; + g.DebugLocateId = target_id; + g.DebugLocateFrames = 2; +} + +void ImGui::DebugLocateItemOnHover(ImGuiID target_id) +{ + if (target_id == 0 || !IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + return; + ImGuiContext& g = *GImGui; + DebugLocateItem(target_id); + GetForegroundDrawList(g.CurrentWindow)->AddRect(g.LastItemData.Rect.Min - ImVec2(3.0f, 3.0f), g.LastItemData.Rect.Max + ImVec2(3.0f, 3.0f), DEBUG_LOCATE_ITEM_COLOR); +} + +void ImGui::DebugLocateItemResolveWithLastItem() +{ + ImGuiContext& g = *GImGui; + ImGuiLastItemData item_data = g.LastItemData; + g.DebugLocateId = 0; + ImDrawList* draw_list = GetForegroundDrawList(g.CurrentWindow); + ImRect r = item_data.Rect; + r.Expand(3.0f); + ImVec2 p1 = g.IO.MousePos; + ImVec2 p2 = ImVec2((p1.x < r.Min.x) ? r.Min.x : (p1.x > r.Max.x) ? r.Max.x : p1.x, (p1.y < r.Min.y) ? r.Min.y : (p1.y > r.Max.y) ? r.Max.y : p1.y); + draw_list->AddRect(r.Min, r.Max, DEBUG_LOCATE_ITEM_COLOR); + draw_list->AddLine(p1, p2, DEBUG_LOCATE_ITEM_COLOR); +} + // [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. void ImGui::UpdateDebugToolItemPicker() { @@ -12424,18 +13995,26 @@ void ImGui::UpdateDebugToolItemPicker() const ImGuiID hovered_id = g.HoveredIdPreviousFrame; SetMouseCursor(ImGuiMouseCursor_Hand); - if (IsKeyPressedMap(ImGuiKey_Escape)) + if (IsKeyPressed(ImGuiKey_Escape)) g.DebugItemPickerActive = false; - if (IsMouseClicked(0) && hovered_id) + const bool change_mapping = g.IO.KeyMods == (ImGuiMod_Ctrl | ImGuiMod_Shift); + if (!change_mapping && IsMouseClicked(g.DebugItemPickerMouseButton) && hovered_id) { g.DebugItemPickerBreakId = hovered_id; g.DebugItemPickerActive = false; } - SetNextWindowBgAlpha(0.60f); + for (int mouse_button = 0; mouse_button < 3; mouse_button++) + if (change_mapping && IsMouseClicked(mouse_button)) + g.DebugItemPickerMouseButton = (ImU8)mouse_button; + SetNextWindowBgAlpha(0.70f); BeginTooltip(); Text("HoveredId: 0x%08X", hovered_id); Text("Press ESC to abort picking."); - TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click to break in debugger!"); + const char* mouse_button_names[] = { "Left", "Right", "Middle" }; + if (change_mapping) + Text("Remap w/ Ctrl+Shift: click anywhere to select new mouse button."); + else + TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click %s Button to break in debugger! (remap w/ Ctrl+Shift)", mouse_button_names[g.DebugItemPickerMouseButton]); EndTooltip(); } @@ -12487,7 +14066,7 @@ void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* dat ImGuiStackTool* tool = &g.DebugStackTool; // Step 0: stack query - // This assume that the ID was computed with the current ID stack, which tends to be the case for our widget. + // This assumes that the ID was computed with the current ID stack, which tends to be the case for our widget. if (tool->StackLevel == -1) { tool->StackLevel++; @@ -12504,27 +14083,44 @@ void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* dat ImGuiStackLevelInfo* info = &tool->Results[tool->StackLevel]; IM_ASSERT(info->ID == id && info->QueryFrameCount > 0); - int data_len; switch (data_type) { case ImGuiDataType_S32: ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%d", (int)(intptr_t)data_id); break; case ImGuiDataType_String: - data_len = data_id_end ? (int)((const char*)data_id_end - (const char*)data_id) : (int)strlen((const char*)data_id); - ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "\"%.*s\"", data_len, (const char*)data_id); + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%.*s", data_id_end ? (int)((const char*)data_id_end - (const char*)data_id) : (int)strlen((const char*)data_id), (const char*)data_id); break; case ImGuiDataType_Pointer: ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "(void*)0x%p", data_id); break; case ImGuiDataType_ID: - if (info->Desc[0] == 0) // PushOverrideID() is often used to avoid hashing twice, which would lead to 2 calls to DebugHookIdInfo(). We prioritize the first one. - ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "0x%08X [override]", id); + if (info->Desc[0] != 0) // PushOverrideID() is often used to avoid hashing twice, which would lead to 2 calls to DebugHookIdInfo(). We prioritize the first one. + return; + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "0x%08X [override]", id); break; default: IM_ASSERT(0); } info->QuerySuccess = true; + info->DataType = data_type; +} + +static int StackToolFormatLevelInfo(ImGuiStackTool* tool, int n, bool format_for_ui, char* buf, size_t buf_size) +{ + ImGuiStackLevelInfo* info = &tool->Results[n]; + ImGuiWindow* window = (info->Desc[0] == 0 && n == 0) ? ImGui::FindWindowByID(info->ID) : NULL; + if (window) // Source: window name (because the root ID don't call GetID() and so doesn't get hooked) + return ImFormatString(buf, buf_size, format_for_ui ? "\"%s\" [window]" : "%s", window->Name); + if (info->QuerySuccess) // Source: GetID() hooks (prioritize over ItemInfo() because we frequently use patterns like: PushID(str), Button("") where they both have same id) + return ImFormatString(buf, buf_size, (format_for_ui && info->DataType == ImGuiDataType_String) ? "\"%s\"" : "%s", info->Desc); + if (tool->StackLevel < tool->Results.Size) // Only start using fallback below when all queries are done, so during queries we don't flickering ??? markers. + return (*buf = 0); +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (const char* label = ImGuiTestEngine_FindItemDebugLabel(GImGui, info->ID)) // Source: ImGuiTestEngine's ItemInfo() + return ImFormatString(buf, buf_size, format_for_ui ? "??? \"%s\"" : "%s", label); +#endif + return ImFormatString(buf, buf_size, "???"); } // Stack Tool: Display UI @@ -12540,6 +14136,7 @@ void ImGui::ShowStackToolWindow(bool* p_open) } // Display hovered/active status + ImGuiStackTool* tool = &g.DebugStackTool; const ImGuiID hovered_id = g.HoveredIdPreviousFrame; const ImGuiID active_id = g.ActiveId; #ifdef IMGUI_ENABLE_TEST_ENGINE @@ -12550,8 +14147,33 @@ void ImGui::ShowStackToolWindow(bool* p_open) SameLine(); MetricsHelpMarker("Hover an item with the mouse to display elements of the ID Stack leading to the item's final ID.\nEach level of the stack correspond to a PushID() call.\nAll levels of the stack are hashed together to make the final ID of a widget (ID displayed at the bottom level of the stack).\nRead FAQ entry about the ID stack for details."); + // CTRL+C to copy path + const float time_since_copy = (float)g.Time - tool->CopyToClipboardLastTime; + Checkbox("Ctrl+C: copy path to clipboard", &tool->CopyToClipboardOnCtrlC); + SameLine(); + TextColored((time_since_copy >= 0.0f && time_since_copy < 0.75f && ImFmod(time_since_copy, 0.25f) < 0.25f * 0.5f) ? ImVec4(1.f, 1.f, 0.3f, 1.f) : ImVec4(), "*COPIED*"); + if (tool->CopyToClipboardOnCtrlC && IsKeyDown(ImGuiMod_Ctrl) && IsKeyPressed(ImGuiKey_C)) + { + tool->CopyToClipboardLastTime = (float)g.Time; + char* p = g.TempBuffer.Data; + char* p_end = p + g.TempBuffer.Size; + for (int stack_n = 0; stack_n < tool->Results.Size && p + 3 < p_end; stack_n++) + { + *p++ = '/'; + char level_desc[256]; + StackToolFormatLevelInfo(tool, stack_n, false, level_desc, IM_ARRAYSIZE(level_desc)); + for (int n = 0; level_desc[n] && p + 2 < p_end; n++) + { + if (level_desc[n] == '/') + *p++ = '\\'; + *p++ = level_desc[n]; + } + } + *p = '\0'; + SetClipboardText(g.TempBuffer.Data); + } + // Display decorated stack - ImGuiStackTool* tool = &g.DebugStackTool; tool->LastActiveFrame = g.FrameCount; if (tool->Results.Size > 0 && BeginTable("##table", 3, ImGuiTableFlags_Borders)) { @@ -12565,23 +14187,9 @@ void ImGui::ShowStackToolWindow(bool* p_open) ImGuiStackLevelInfo* info = &tool->Results[n]; TableNextColumn(); Text("0x%08X", (n > 0) ? tool->Results[n - 1].ID : 0); - TableNextColumn(); - ImGuiWindow* window = (info->Desc[0] == 0 && n == 0) ? FindWindowByID(info->ID) : NULL; - if (window) // Source: window name (because the root ID don't call GetID() and so doesn't get hooked) - Text("\"%s\" [window]", window->Name); - else if (info->QuerySuccess) // Source: GetID() hooks (prioritize over ItemInfo() because we frequently use patterns like: PushID(str), Button("") where they both have same id) - TextUnformatted(info->Desc); - else if (tool->StackLevel >= tool->Results.Size) // Only start using fallback below when all queries are done, so during queries we don't flickering ??? markers. - { -#ifdef IMGUI_ENABLE_TEST_ENGINE - if (const char* label = ImGuiTestEngine_FindItemDebugLabel(&g, info->ID)) // Source: ImGuiTestEngine's ItemInfo() - Text("??? \"%s\"", label); - else -#endif - TextUnformatted("???"); - } - + StackToolFormatLevelInfo(tool, n, true, g.TempBuffer.Data, g.TempBuffer.Size); + TextUnformatted(g.TempBuffer.Data); TableNextColumn(); Text("0x%08X", info->ID); if (n == tool->Results.Size - 1) @@ -12607,12 +14215,15 @@ void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings*) {} void ImGui::DebugNodeWindowsList(ImVector*, const char*) {} void ImGui::DebugNodeViewport(ImGuiViewportP*) {} +void ImGui::DebugLog(const char*, ...) {} +void ImGui::DebugLogV(const char*, va_list) {} +void ImGui::ShowDebugLogWindow(bool*) {} void ImGui::ShowStackToolWindow(bool*) {} void ImGui::DebugHookIdInfo(ImGuiID, ImGuiDataType, const void*, const void*) {} void ImGui::UpdateDebugToolItemPicker() {} void ImGui::UpdateDebugToolStackQueries() {} -#endif // #ifndef IMGUI_DISABLE_METRICS_WINDOW +#endif // #ifndef IMGUI_DISABLE_DEBUG_TOOLS //----------------------------------------------------------------------------- diff --git a/imgui-sys/third-party/imgui-master/imgui/imgui.h b/imgui-sys/third-party/imgui-master/imgui/imgui.h index e986e6c0f..03eb0ca9f 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imgui.h +++ b/imgui-sys/third-party/imgui-master/imgui/imgui.h @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (headers) // Help: @@ -11,7 +11,7 @@ // - FAQ http://dearimgui.org/faq // - Homepage & latest https://github.com/ocornut/imgui // - Releases & changelog https://github.com/ocornut/imgui/releases -// - Gallery https://github.com/ocornut/imgui/issues/4451 (please post your screenshots/video there!) +// - Gallery https://github.com/ocornut/imgui/issues/5243 (please post your screenshots/video there!) // - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) // - Glossary https://github.com/ocornut/imgui/wiki/Glossary // - Issues & support https://github.com/ocornut/imgui/issues @@ -20,6 +20,12 @@ // - For first-time users having issues compiling/linking/running or issues loading fonts: // please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. +// Library Version +// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM > 12345') +#define IMGUI_VERSION "1.89.1 WIP" +#define IMGUI_VERSION_NUM 18910 +#define IMGUI_HAS_TABLE + /* Index of this file: @@ -35,19 +41,19 @@ Index of this file: // [SECTION] Drawing API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawFlags, ImDrawListFlags, ImDrawList, ImDrawData) // [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) // [SECTION] Viewports (ImGuiViewportFlags, ImGuiViewport) +// [SECTION] Platform Dependent Interfaces (ImGuiPlatformImeData) // [SECTION] Obsolete functions and types */ #pragma once -// Configuration file with compile-time options (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system') +// Configuration file with compile-time options +// (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system') #ifdef IMGUI_USER_CONFIG #include IMGUI_USER_CONFIG #endif -#if !defined(IMGUI_DISABLE_INCLUDE_IMCONFIG_H) || defined(IMGUI_INCLUDE_IMCONFIG_H) #include "imconfig.h" -#endif #ifndef IMGUI_DISABLE @@ -61,13 +67,6 @@ Index of this file: #include // ptrdiff_t, NULL #include // memset, memmove, memcpy, strlen, strchr, strcpy, strcmp -// Version -// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens) -#define IMGUI_VERSION "1.86" -#define IMGUI_VERSION_NUM 18600 -#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) -#define IMGUI_HAS_TABLE - // Define attributes of all API symbols declarations (e.g. for DLL under Windows) // IMGUI_API is used for core imgui functions, IMGUI_IMPL_API is used for the default backends files (imgui_impl_xxx.h) // Using dear imgui via a shared library is not recommended, because we don't guarantee backward nor forward ABI compatibility (also function call overhead, as dear imgui is a call-heavy API) @@ -85,11 +84,8 @@ Index of this file: #endif #define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) // Size of a static C-style array. Don't use on pointers! #define IM_UNUSED(_VAR) ((void)(_VAR)) // Used to silence "unused variable warnings". Often useful as asserts may be stripped out from final builds. -#if (__cplusplus >= 201100) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201100) #define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // Offset of _MEMBER within _TYPE. Standardized as offsetof() in C++11 -#else -#define IM_OFFSETOF(_TYPE,_MEMBER) ((size_t)&(((_TYPE*)0)->_MEMBER)) // Offset of _MEMBER within _TYPE. Old style macro. -#endif +#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) // Helper Macros - IM_FMTARGS, IM_FMTLIST: Apply printf-style warnings to our formatting functions. #if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__) @@ -104,7 +100,7 @@ Index of this file: #endif // Disable some of MSVC most aggressive Debug runtime checks in function header/footer (used in some simple/low-level functions) -#if defined(_MSC_VER) && !defined(__clang__) && !defined(IMGUI_DEBUG_PARANOID) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID) #define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off)) #define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop)) #else @@ -151,9 +147,11 @@ struct ImColor; // Helper functions to create a color that c struct ImGuiContext; // Dear ImGui context (opaque structure, unless including imgui_internal.h) struct ImGuiIO; // Main configuration and I/O between your application and ImGui struct ImGuiInputTextCallbackData; // Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use) +struct ImGuiKeyData; // Storage for ImGuiIO and IsKeyDown(), IsKeyPressed() etc functions. struct ImGuiListClipper; // Helper to manually clip large list of items struct ImGuiOnceUponAFrame; // Helper for running a block of code not more than once a frame struct ImGuiPayload; // User data payload for drag and drop operations +struct ImGuiPlatformImeData; // Platform IME data for io.SetPlatformImeDataFn() function. struct ImGuiSizeCallbackData; // Callback data when using SetNextWindowSizeConstraints() (rare/advanced use) struct ImGuiStorage; // Helper for key->value storage struct ImGuiStyle; // Runtime data for styling/colors @@ -163,21 +161,26 @@ struct ImGuiTextBuffer; // Helper to hold and append into a text buf struct ImGuiTextFilter; // Helper to parse and apply text filters (e.g. "aaaaa[,bbbbb][,ccccc]") struct ImGuiViewport; // A Platform Window (always only one in 'master' branch), in the future may represent Platform Monitor -// Enums/Flags (declared as int for compatibility with old C++, to allow using as flags without overhead, and to not pollute the top of this file) +// Enumerations +// - We don't use strongly typed enums much because they add constraints (can't extend in private code, can't store typed in bit fields, extra casting on iteration) // - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! -// In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. // With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +enum ImGuiKey : int; // -> enum ImGuiKey // Enum: A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) typedef int ImGuiCol; // -> enum ImGuiCol_ // Enum: A color identifier for styling typedef int ImGuiCond; // -> enum ImGuiCond_ // Enum: A condition for many Set*() functions typedef int ImGuiDataType; // -> enum ImGuiDataType_ // Enum: A primary data type typedef int ImGuiDir; // -> enum ImGuiDir_ // Enum: A cardinal direction -typedef int ImGuiKey; // -> enum ImGuiKey_ // Enum: A key identifier (ImGui-side enum) -typedef int ImGuiNavInput; // -> enum ImGuiNavInput_ // Enum: An input identifier for navigation typedef int ImGuiMouseButton; // -> enum ImGuiMouseButton_ // Enum: A mouse button identifier (0=left, 1=right, 2=middle) -typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor identifier +typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor shape typedef int ImGuiSortDirection; // -> enum ImGuiSortDirection_ // Enum: A sorting direction (ascending or descending) typedef int ImGuiStyleVar; // -> enum ImGuiStyleVar_ // Enum: A variable identifier for styling typedef int ImGuiTableBgTarget; // -> enum ImGuiTableBgTarget_ // Enum: A color target for TableSetBgColor() + +// Flags (declared as int for compatibility with old C++, to allow using as flags without overhead, and to not pollute the top of this file) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. typedef int ImDrawFlags; // -> enum ImDrawFlags_ // Flags: for ImDrawList functions typedef int ImDrawListFlags; // -> enum ImDrawListFlags_ // Flags: for ImDrawList instance typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build @@ -190,7 +193,7 @@ typedef int ImGuiDragDropFlags; // -> enum ImGuiDragDropFlags_ // Flags: f typedef int ImGuiFocusedFlags; // -> enum ImGuiFocusedFlags_ // Flags: for IsWindowFocused() typedef int ImGuiHoveredFlags; // -> enum ImGuiHoveredFlags_ // Flags: for IsItemHovered(), IsWindowHovered() etc. typedef int ImGuiInputTextFlags; // -> enum ImGuiInputTextFlags_ // Flags: for InputText(), InputTextMultiline() -typedef int ImGuiKeyModFlags; // -> enum ImGuiKeyModFlags_ // Flags: for io.KeyMods (Ctrl/Shift/Alt/Super) +typedef int ImGuiKeyChord; // -> ImGuiKey | ImGuiMod_XXX // Flags: for storage only for now: an ImGuiKey optionally OR-ed with one or more ImGuiMod_XXX values. typedef int ImGuiPopupFlags; // -> enum ImGuiPopupFlags_ // Flags: for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() typedef int ImGuiSelectableFlags; // -> enum ImGuiSelectableFlags_ // Flags: for Selectable() typedef int ImGuiSliderFlags; // -> enum ImGuiSliderFlags_ // Flags: for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. @@ -225,17 +228,8 @@ typedef signed short ImS16; // 16-bit signed integer typedef unsigned short ImU16; // 16-bit unsigned integer typedef signed int ImS32; // 32-bit signed integer == int typedef unsigned int ImU32; // 32-bit unsigned integer (often used to store packed colors) -#if defined(_MSC_VER) && !defined(__clang__) -typedef signed __int64 ImS64; // 64-bit signed integer (pre and post C++11 with Visual Studio) -typedef unsigned __int64 ImU64; // 64-bit unsigned integer (pre and post C++11 with Visual Studio) -#elif (defined(__clang__) || defined(__GNUC__)) && (__cplusplus < 201100) -#include -typedef int64_t ImS64; // 64-bit signed integer (pre C++11) -typedef uint64_t ImU64; // 64-bit unsigned integer (pre C++11) -#else -typedef signed long long ImS64; // 64-bit signed integer (post C++11) -typedef unsigned long long ImU64; // 64-bit unsigned integer (post C++11) -#endif +typedef signed long long ImS64; // 64-bit signed integer +typedef unsigned long long ImU64; // 64-bit unsigned integer // Character types // (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) @@ -259,8 +253,8 @@ IM_MSVC_RUNTIME_CHECKS_OFF struct ImVec2 { float x, y; - ImVec2() { x = y = 0.0f; } - ImVec2(float _x, float _y) { x = _x; y = _y; } + constexpr ImVec2() : x(0.0f), y(0.0f) { } + constexpr ImVec2(float _x, float _y) : x(_x), y(_y) { } float operator[] (size_t idx) const { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. float& operator[] (size_t idx) { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. #ifdef IM_VEC2_CLASS_EXTRA @@ -271,9 +265,9 @@ struct ImVec2 // ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type] struct ImVec4 { - float x, y, z, w; - ImVec4() { x = y = z = w = 0.0f; } - ImVec4(float _x, float _y, float _z, float _w) { x = _x; y = _y; z = _z; w = _w; } + float x, y, z, w; + constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { } + constexpr ImVec4(float _x, float _y, float _z, float _w) : x(_x), y(_y), z(_z), w(_w) { } #ifdef IM_VEC4_CLASS_EXTRA IM_VEC4_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec4. #endif @@ -307,12 +301,13 @@ namespace ImGui // Demo, Debug, Information IMGUI_API void ShowDemoWindow(bool* p_open = NULL); // create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. + IMGUI_API void ShowDebugLogWindow(bool* p_open = NULL); // create Debug Log window. display a simplified log of important dear imgui events. IMGUI_API void ShowStackToolWindow(bool* p_open = NULL); // create Stack Tool window. hover items with mouse to query information about the source of their unique ID. IMGUI_API void ShowAboutWindow(bool* p_open = NULL); // create About window. display Dear ImGui version, credits and build/system information. IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) IMGUI_API bool ShowStyleSelector(const char* label); // add style selector block (not a window), essentially a combo listing the default styles. IMGUI_API void ShowFontSelector(const char* label); // add font selector block (not a window), essentially a combo listing the loaded fonts. - IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as a end-user (mouse/keyboard controls). + IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls). IMGUI_API const char* GetVersion(); // get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp) // Styles @@ -367,6 +362,7 @@ namespace ImGui IMGUI_API void SetNextWindowContentSize(const ImVec2& size); // set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // set next window collapsed state. call before Begin() IMGUI_API void SetNextWindowFocus(); // set next window to be focused / top-most. call before Begin() + IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // set next window scrolling value (use < 0.0f to not affect a given axis). IMGUI_API void SetNextWindowBgAlpha(float alpha); // set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground. IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); // (not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. IMGUI_API void SetWindowSize(const ImVec2& size, ImGuiCond cond = 0); // (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. @@ -384,9 +380,11 @@ namespace ImGui IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - GetCursorPos() IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates IMGUI_API ImVec2 GetWindowContentRegionMin(); // content boundaries min for the full window (roughly (0,0)-Scroll), in window coordinates - IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be override with SetNextWindowContentSize(), in window coordinates + IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be overridden with SetNextWindowContentSize(), in window coordinates // Windows Scrolling + // - Any change of Scroll will be applied at the beginning of next frame in the first call to Begin(). + // - You may instead use SetNextWindowScroll() prior to calling Begin() to avoid this delay, as an alternative to using SetScrollX()/SetScrollY(). IMGUI_API float GetScrollX(); // get scrolling amount [0 .. GetScrollMaxX()] IMGUI_API float GetScrollY(); // get scrolling amount [0 .. GetScrollMaxY()] IMGUI_API void SetScrollX(float scroll_x); // set scrolling amount [0 .. GetScrollMaxX()] @@ -439,7 +437,7 @@ namespace ImGui // Absolute coordinate: GetCursorScreenPos(), SetCursorScreenPos(), all ImDrawList:: functions. IMGUI_API void Separator(); // separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f); // call between widgets or groups to layout them horizontally. X position given in window coordinates. - IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in an horizontal-layout context. + IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in a horizontal-layout context. IMGUI_API void Spacing(); // add vertical spacing. IMGUI_API void Dummy(const ImVec2& size); // add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. IMGUI_API void Indent(float indent_w = 0.0f); // move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 @@ -503,8 +501,6 @@ namespace ImGui IMGUI_API bool SmallButton(const char* label); // button with FramePadding=(0,0) to easily embed within text IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0); // flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); // square button with an arrow shape - IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1,1), const ImVec4& tint_col = ImVec4(1,1,1,1), const ImVec4& border_col = ImVec4(0,0,0,0)); - IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1,1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0,0,0,0), const ImVec4& tint_col = ImVec4(1,1,1,1)); // <0 frame_padding uses default frame padding settings. 0 for no padding IMGUI_API bool Checkbox(const char* label, bool* v); IMGUI_API bool CheckboxFlags(const char* label, int* flags, int flags_value); IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value); @@ -513,7 +509,12 @@ namespace ImGui IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-FLT_MIN, 0), const char* overlay = NULL); IMGUI_API void Bullet(); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses - // Widgets: Combo Box + // Widgets: Images + // - Read about ImTextureID here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& tint_col = ImVec4(1, 1, 1, 1), const ImVec4& border_col = ImVec4(0, 0, 0, 0)); + IMGUI_API bool ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); + + // Widgets: Combo Box (Dropdown) // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created. IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0); @@ -524,14 +525,15 @@ namespace ImGui // Widgets: Drag Sliders // - CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. - // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every functions, note that a 'float v[X]' function argument is the same as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x + // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every function, note that a 'float v[X]' function argument is the same as 'float* v', + // the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. // - Format string may also be set to NULL or use the default format ("%f" or "%d"). // - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits if ImGuiSliderFlags_AlwaysClamp is not used. // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. // - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. - // - Legacy: Pre-1.78 there are DragXXX() function signatures that takes a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // - Legacy: Pre-1.78 there are DragXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); @@ -550,7 +552,7 @@ namespace ImGui // - CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. // - Format string may also be set to NULL or use the default format ("%f" or "%d"). - // - Legacy: Pre-1.78 there are SliderXXX() function signatures that takes a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // - Legacy: Pre-1.78 there are SliderXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); @@ -592,7 +594,7 @@ namespace ImGui IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0); IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = 0, const float* ref_col = NULL); - IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0, 0)); // display a color square/button, hover for details, return true when pressed. + IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // display a color square/button, hover for details, return true when pressed. IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); // initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. // Widgets: Trees @@ -608,7 +610,7 @@ namespace ImGui IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); IMGUI_API void TreePush(const char* str_id); // ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. - IMGUI_API void TreePush(const void* ptr_id = NULL); // " + IMGUI_API void TreePush(const void* ptr_id); // " IMGUI_API void TreePop(); // ~ Unindent()+PopId() IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); // if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). @@ -678,7 +680,7 @@ namespace ImGui // Popups: begin/end functions // - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards. ImGuiWindowFlags are forwarded to the window. - // - BeginPopupModal(): block every interactions behind the window, cannot be closed by user, add a dimming background, has a title bar. + // - BeginPopupModal(): block every interaction behind the window, cannot be closed by user, add a dimming background, has a title bar. IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); // return true if the popup is open, and you can start outputting to it. IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); // return true if the modal is open, and you can start outputting to it. IMGUI_API void EndPopup(); // only call EndPopup() if BeginPopupXXX() returns true! @@ -690,6 +692,7 @@ namespace ImGui // - CloseCurrentPopup() is called by default by Selectable()/MenuItem() when activated (FIXME: need some options). // - Use ImGuiPopupFlags_NoOpenOverExistingPopup to avoid opening a popup if there's already one at the same level. This is equivalent to e.g. testing for !IsAnyPopupOpen() prior to OpenPopup(). // - Use IsWindowAppearing() after BeginPopup() to tell if a window just opened. + // - IMPORTANT: Notice that for OpenPopupOnItemClick() we exceptionally default flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter IMGUI_API void OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); // call to mark popup as open (don't call every frame!). IMGUI_API void OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags = 0); // id overload to facilitate calling from nested stacks IMGUI_API void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) @@ -699,7 +702,7 @@ namespace ImGui // - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking. // - They are convenient to easily create context menus, hence the name. // - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future. - // - IMPORTANT: we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. + // - IMPORTANT: Notice that we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);// open+begin popup when clicked on current window. IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked in void (where there are no windows). @@ -711,19 +714,17 @@ namespace ImGui IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); // return true if the popup is open. // Tables - // [BETA API] API may evolve slightly! If you use this, please update to the next version when it comes out! // - Full-featured replacement for old Columns API. - // - See Demo->Tables for demo code. - // - See top of imgui_tables.cpp for general commentary. + // - See Demo->Tables for demo code. See top of imgui_tables.cpp for general commentary. // - See ImGuiTableFlags_ and ImGuiTableColumnFlags_ enums for a description of available flags. // The typical call flow is: - // - 1. Call BeginTable(). + // - 1. Call BeginTable(), early out if returning false. // - 2. Optionally call TableSetupColumn() to submit column name/flags/defaults. // - 3. Optionally call TableSetupScrollFreeze() to request scroll freezing of columns/rows. // - 4. Optionally call TableHeadersRow() to submit a header row. Names are pulled from TableSetupColumn() data. // - 5. Populate contents: // - In most situations you can use TableNextRow() + TableSetColumnIndex(N) to start appending into a column. - // - If you are using tables as a sort of grid, where every columns is holding the same type of contents, + // - If you are using tables as a sort of grid, where every column is holding the same type of contents, // you may prefer using TableNextColumn() instead of TableNextRow() + TableSetColumnIndex(). // TableNextColumn() will automatically wrap-around into the next row if needed. // - IMPORTANT: Comparatively to the old Columns() API, we need to call TableNextColumn() for the first column! @@ -736,10 +737,10 @@ namespace ImGui // -------------------------------------------------------------------------------------------------------- // - 5. Call EndTable() IMGUI_API bool BeginTable(const char* str_id, int column, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0.0f, 0.0f), float inner_width = 0.0f); - IMGUI_API void EndTable(); // only call EndTable() if BeginTable() returns true! + IMGUI_API void EndTable(); // only call EndTable() if BeginTable() returns true! IMGUI_API void TableNextRow(ImGuiTableRowFlags row_flags = 0, float min_row_height = 0.0f); // append into the first cell of a new row. - IMGUI_API bool TableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible. - IMGUI_API bool TableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible. + IMGUI_API bool TableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible. + IMGUI_API bool TableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible. // Tables: Headers & Columns declaration // - Use TableSetupColumn() to specify label, resizing policy, default width/weight, id, various other flags etc. @@ -750,20 +751,17 @@ namespace ImGui // some advanced use cases (e.g. adding custom widgets in header row). // - Use TableSetupScrollFreeze() to lock columns/rows so they stay visible when scrolled. IMGUI_API void TableSetupColumn(const char* label, ImGuiTableColumnFlags flags = 0, float init_width_or_weight = 0.0f, ImGuiID user_id = 0); - IMGUI_API void TableSetupScrollFreeze(int cols, int rows); // lock columns/rows so they stay visible when scrolled. - IMGUI_API void TableHeadersRow(); // submit all headers cells based on data provided to TableSetupColumn() + submit context menu - IMGUI_API void TableHeader(const char* label); // submit one header cell manually (rarely used) - - // Tables: Sorting - // - Call TableGetSortSpecs() to retrieve latest sort specs for the table. NULL when not sorting. - // - When 'SpecsDirty == true' you should sort your data. It will be true when sorting specs have changed - // since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, else you may - // wastefully sort your data every frame! - // - Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). - IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting). - - // Tables: Miscellaneous functions + IMGUI_API void TableSetupScrollFreeze(int cols, int rows); // lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableHeadersRow(); // submit all headers cells based on data provided to TableSetupColumn() + submit context menu + IMGUI_API void TableHeader(const char* label); // submit one header cell manually (rarely used) + + // Tables: Sorting & Miscellaneous functions + // - Sorting: call TableGetSortSpecs() to retrieve latest sort specs for the table. NULL when not sorting. + // When 'sort_specs->SpecsDirty == true' you should sort your data. It will be true when sorting specs have + // changed since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, + // else you may wastefully sort your data every frame! // - Functions args 'int column_n' treat the default value of -1 as the same as passing the current column index. + IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). IMGUI_API int TableGetColumnCount(); // return number of columns (value passed to BeginTable) IMGUI_API int TableGetColumnIndex(); // return current column index. IMGUI_API int TableGetRowIndex(); // return current row index. @@ -807,7 +805,7 @@ namespace ImGui // - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725) // - An item can be both drag source and drop target. IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); // call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource() - IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. + IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. IMGUI_API void EndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true! IMGUI_API bool BeginDragDropTarget(); // call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0); // accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. @@ -837,12 +835,12 @@ namespace ImGui IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); // is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. IMGUI_API bool IsItemActive(); // is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false) IMGUI_API bool IsItemFocused(); // is the last item focused for keyboard/gamepad navigation? - IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this it NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. + IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. IMGUI_API bool IsItemVisible(); // is the last item visible? (items may be out of sight because of clipping/scrolling) IMGUI_API bool IsItemEdited(); // did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. IMGUI_API bool IsItemActivated(); // was the last item just made active (item was previously inactive). - IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that requires continuous editing. - IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that requires continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). + IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing. + IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). IMGUI_API bool IsItemToggledOpen(); // was the last item open state toggled? set by TreeNode(). IMGUI_API bool IsAnyItemHovered(); // is any item hovered? IMGUI_API bool IsAnyItemActive(); // is any item active? @@ -858,13 +856,15 @@ namespace ImGui // - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. IMGUI_API ImGuiViewport* GetMainViewport(); // return primary/default viewport. This can never be NULL. + // Background/Foreground Draw Lists + IMGUI_API ImDrawList* GetBackgroundDrawList(); // this draw list will be the first rendered one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(); // this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + // Miscellaneous Utilities IMGUI_API bool IsRectVisible(const ImVec2& size); // test if rectangle (of given size, starting from cursor position) is visible / not clipped. IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. IMGUI_API double GetTime(); // get global imgui time. incremented by io.DeltaTime every frame. IMGUI_API int GetFrameCount(); // get global imgui frame count. incremented by 1 every frame. - IMGUI_API ImDrawList* GetBackgroundDrawList(); // this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. - IMGUI_API ImDrawList* GetForegroundDrawList(); // this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); // you may use this when creating your own ImDrawList instances. IMGUI_API const char* GetStyleColorName(ImGuiCol idx); // get a string corresponding to the enum value (for display, saving, etc.). IMGUI_API void SetStateStorage(ImGuiStorage* storage); // replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) @@ -882,14 +882,17 @@ namespace ImGui IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); // Inputs Utilities: Keyboard - // - For 'int user_key_index' you can use your own indices/enums according to how your backend/engine stored them in io.KeysDown[]. - // - We don't know the meaning of those value. You can use GetKeyIndex() to map a ImGuiKey_ value into the user index. - IMGUI_API int GetKeyIndex(ImGuiKey imgui_key); // map ImGuiKey_* values into user's key index. == io.KeyMap[key] - IMGUI_API bool IsKeyDown(int user_key_index); // is key being held. == io.KeysDown[user_key_index]. - IMGUI_API bool IsKeyPressed(int user_key_index, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate - IMGUI_API bool IsKeyReleased(int user_key_index); // was key released (went from Down to !Down)? - IMGUI_API int GetKeyPressedAmount(int key_index, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate - IMGUI_API void CaptureKeyboardFromApp(bool want_capture_keyboard_value = true); // attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard_value"; after the next NewFrame() call. + // Without IMGUI_DISABLE_OBSOLETE_KEYIO: (legacy support) + // - For 'ImGuiKey key' you can still use your legacy native/user indices according to how your backend/engine stored them in io.KeysDown[]. + // With IMGUI_DISABLE_OBSOLETE_KEYIO: (this is the way forward) + // - Any use of 'ImGuiKey' will assert when key < 512 will be passed, previously reserved as native/user keys indices + // - GetKeyIndex() is pass-through and therefore deprecated (gone if IMGUI_DISABLE_OBSOLETE_KEYIO is defined) + IMGUI_API bool IsKeyDown(ImGuiKey key); // is key being held. + IMGUI_API bool IsKeyPressed(ImGuiKey key, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate + IMGUI_API bool IsKeyReleased(ImGuiKey key); // was key released (went from Down to !Down)? + IMGUI_API int GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate + IMGUI_API const char* GetKeyName(ImGuiKey key); // [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared. + IMGUI_API void SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); // Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call. // Inputs Utilities: Mouse // - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right. @@ -902,15 +905,15 @@ namespace ImGui IMGUI_API int GetMouseClickedCount(ImGuiMouseButton button); // return the number of successive mouse-clicks at the time where a click happen (otherwise 0). IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = true);// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); // by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available - IMGUI_API bool IsAnyMouseDown(); // is any mouse button held? + IMGUI_API bool IsAnyMouseDown(); // [WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. IMGUI_API ImVec2 GetMousePos(); // shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); // retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) IMGUI_API bool IsMouseDragging(ImGuiMouseButton button, float lock_threshold = -1.0f); // is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) IMGUI_API ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0, float lock_threshold = -1.0f); // return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) IMGUI_API void ResetMouseDragDelta(ImGuiMouseButton button = 0); // - IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired cursor type, reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you - IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired cursor type - IMGUI_API void CaptureMouseFromApp(bool want_capture_mouse_value = true); // attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse_value;" after the next NewFrame() call. + IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you + IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired mouse cursor shape + IMGUI_API void SetNextFrameWantCaptureMouse(bool want_capture_mouse); // Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call. // Clipboard Utilities // - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard. @@ -927,7 +930,7 @@ namespace ImGui IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. // Debug Utilities - // - This is used by the IMGUI_CHECKVERSION() macro. + IMGUI_API void DebugTextEncoding(const char* text); IMGUI_API bool 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); // This is called by IMGUI_CHECKVERSION() macro. // Memory Allocators @@ -946,6 +949,7 @@ namespace ImGui //----------------------------------------------------------------------------- // Flags for ImGui::Begin() +// (Those are per-window flags. There are shared flags in ImGuiIO: io.ConfigWindowsResizeFromEdges and io.ConfigWindowsMoveFromTitleBarOnly) enum ImGuiWindowFlags_ { ImGuiWindowFlags_None = 0, @@ -979,13 +983,11 @@ enum ImGuiWindowFlags_ ImGuiWindowFlags_Tooltip = 1 << 25, // Don't use! For internal use by BeginTooltip() ImGuiWindowFlags_Popup = 1 << 26, // Don't use! For internal use by BeginPopup() ImGuiWindowFlags_Modal = 1 << 27, // Don't use! For internal use by BeginPopupModal() - ImGuiWindowFlags_ChildMenu = 1 << 28 // Don't use! For internal use by BeginMenu() - - // [Obsolete] - //ImGuiWindowFlags_ResizeFromAnySide = 1 << 17, // --> Set io.ConfigWindowsResizeFromEdges=true and make sure mouse cursors are supported by backend (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) + ImGuiWindowFlags_ChildMenu = 1 << 28, // Don't use! For internal use by BeginMenu() }; // Flags for ImGui::InputText() +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigInputTextCursorBlink and io.ConfigInputTextEnterKeepActive) enum ImGuiInputTextFlags_ { ImGuiInputTextFlags_None = 0, @@ -1008,11 +1010,12 @@ enum ImGuiInputTextFlags_ ImGuiInputTextFlags_NoUndoRedo = 1 << 16, // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID(). ImGuiInputTextFlags_CharsScientific = 1 << 17, // Allow 0123456789.+-*/eE (Scientific notation input) ImGuiInputTextFlags_CallbackResize = 1 << 18, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) - ImGuiInputTextFlags_CallbackEdit = 1 << 19 // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + ImGuiInputTextFlags_CallbackEdit = 1 << 19, // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, // Escape key clears content if not empty, and deactivate otherwise (constrast to default behavior of Escape to revert) // Obsolete names (will be removed soon) #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite // [renamed in 1.82] name was not matching behavior + ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite // [renamed in 1.82] name was not matching behavior #endif }; @@ -1035,7 +1038,7 @@ enum ImGuiTreeNodeFlags_ ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, // Extend hit box to the left-most and right-most edges (bypass the indented area). ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, // (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop) //ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 14, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible - ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, }; // Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions. @@ -1044,7 +1047,7 @@ enum ImGuiTreeNodeFlags_ // It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags. // - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0. // IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter -// and want to another another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag. +// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly. // - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later). enum ImGuiPopupFlags_ { @@ -1058,18 +1061,18 @@ enum ImGuiPopupFlags_ ImGuiPopupFlags_NoOpenOverItems = 1 << 6, // For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space ImGuiPopupFlags_AnyPopupId = 1 << 7, // For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup. ImGuiPopupFlags_AnyPopupLevel = 1 << 8, // For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level) - ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, }; // Flags for ImGui::Selectable() enum ImGuiSelectableFlags_ { ImGuiSelectableFlags_None = 0, - ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this don't close parent popup window + ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this doesn't close parent popup window ImGuiSelectableFlags_SpanAllColumns = 1 << 1, // Selectable frame can span all columns (text will still fit in current column) ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, // Generate press events on double clicks too ImGuiSelectableFlags_Disabled = 1 << 3, // Cannot be selected, display grayed out text - ImGuiSelectableFlags_AllowItemOverlap = 1 << 4 // (WIP) Hit testing to allow subsequent widgets to overlap this one + ImGuiSelectableFlags_AllowItemOverlap = 1 << 4, // (WIP) Hit testing to allow subsequent widgets to overlap this one }; // Flags for ImGui::BeginCombo() @@ -1083,7 +1086,7 @@ enum ImGuiComboFlags_ ImGuiComboFlags_HeightLargest = 1 << 4, // As many fitting items as possible ImGuiComboFlags_NoArrowButton = 1 << 5, // Display on the preview box without the square arrow button ImGuiComboFlags_NoPreview = 1 << 6, // Display only a square arrow button - ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, }; // Flags for ImGui::BeginTabBar() @@ -1099,7 +1102,7 @@ enum ImGuiTabBarFlags_ ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, // Resize tabs when they don't fit ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, // Add scroll buttons when tabs don't fit ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, - ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, }; // Flags for ImGui::BeginTabItem() @@ -1113,12 +1116,11 @@ enum ImGuiTabItemFlags_ ImGuiTabItemFlags_NoTooltip = 1 << 4, // Disable tooltip for the given tab ImGuiTabItemFlags_NoReorder = 1 << 5, // Disable reordering this tab or having another tab cross over this tab ImGuiTabItemFlags_Leading = 1 << 6, // Enforce the tab position to the left of the tab bar (after the tab list popup button) - ImGuiTabItemFlags_Trailing = 1 << 7 // Enforce the tab position to the right of the tab bar (before the scrolling buttons) + ImGuiTabItemFlags_Trailing = 1 << 7, // Enforce the tab position to the right of the tab bar (before the scrolling buttons) }; // Flags for ImGui::BeginTable() -// [BETA API] API may evolve slightly! If you use this, please update to the next version when it comes out! -// - Important! Sizing policies have complex and subtle side effects, more so than you would expect. +// - Important! Sizing policies have complex and subtle side effects, much more so than you would expect. // Read comments/demos carefully + experiment with live demos to get acquainted with them. // - The DEFAULT sizing policies are: // - Default to ImGuiTableFlags_SizingFixedFit if ScrollX is on, or if host window has ImGuiWindowFlags_AlwaysAutoResize. @@ -1126,15 +1128,15 @@ enum ImGuiTabItemFlags_ // - When ScrollX is off: // - Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretch with same weight. // - Columns sizing policy allowed: Stretch (default), Fixed/Auto. -// - Fixed Columns will generally obtain their requested width (unless the table cannot fit them all). -// - Stretch Columns will share the remaining width. +// - Fixed Columns (if any) will generally obtain their requested width (unless the table cannot fit them all). +// - Stretch Columns will share the remaining width according to their respective weight. // - Mixed Fixed/Stretch columns is possible but has various side-effects on resizing behaviors. // The typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. // (this is because the visible order of columns have subtle but necessary effects on how they react to manual resizing). // - When ScrollX is on: // - Table defaults to ImGuiTableFlags_SizingFixedFit -> all Columns defaults to ImGuiTableColumnFlags_WidthFixed // - Columns sizing policy allowed: Fixed/Auto mostly. -// - Fixed Columns can be enlarged as needed. Table will show an horizontal scrollbar if needed. +// - Fixed Columns can be enlarged as needed. Table will show a horizontal scrollbar if needed. // - When using auto-resizing (non-resizable) fixed columns, querying the content width to use item right-alignment e.g. SetNextItemWidth(-FLT_MIN) doesn't make sense, would create a feedback loop. // - Using Stretch columns OFTEN DOES NOT MAKE SENSE if ScrollX is on, UNLESS you have specified a value for 'inner_width' in BeginTable(). // If you specify a value for 'inner_width' then effectively the scrolling space is known and Stretch or mixed Fixed/Stretch columns become meaningful again. @@ -1160,8 +1162,8 @@ enum ImGuiTableFlags_ ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, // Draw inner borders. ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, // Draw outer borders. ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, // Draw all borders. - ImGuiTableFlags_NoBordersInBody = 1 << 11, // [ALPHA] Disable vertical borders in columns Body (borders will always appears in Headers). -> May move to style - ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, // [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers). -> May move to style + ImGuiTableFlags_NoBordersInBody = 1 << 11, // [ALPHA] Disable vertical borders in columns Body (borders will always appear in Headers). -> May move to style + ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, // [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers). -> May move to style // Sizing Policy (read above for defaults) ImGuiTableFlags_SizingFixedFit = 1 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width. ImGuiTableFlags_SizingFixedSame = 2 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible. @@ -1175,24 +1177,18 @@ enum ImGuiTableFlags_ // Clipping ImGuiTableFlags_NoClip = 1 << 20, // Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze(). // Padding - ImGuiTableFlags_PadOuterX = 1 << 21, // Default if BordersOuterV is on. Enable outer-most padding. Generally desirable if you have headers. - ImGuiTableFlags_NoPadOuterX = 1 << 22, // Default if BordersOuterV is off. Disable outer-most padding. + ImGuiTableFlags_PadOuterX = 1 << 21, // Default if BordersOuterV is on. Enable outermost padding. Generally desirable if you have headers. + ImGuiTableFlags_NoPadOuterX = 1 << 22, // Default if BordersOuterV is off. Disable outermost padding. ImGuiTableFlags_NoPadInnerX = 1 << 23, // Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off). // Scrolling - ImGuiTableFlags_ScrollX = 1 << 24, // Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this create a child window, ScrollY is currently generally recommended when using ScrollX. + ImGuiTableFlags_ScrollX = 1 << 24, // Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this creates a child window, ScrollY is currently generally recommended when using ScrollX. ImGuiTableFlags_ScrollY = 1 << 25, // Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. // Sorting ImGuiTableFlags_SortMulti = 1 << 26, // Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1). ImGuiTableFlags_SortTristate = 1 << 27, // Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0). // [Internal] Combinations and masks - ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame - - // Obsolete names (will be removed soon) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //, ImGuiTableFlags_ColumnsWidthFixed = ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_ColumnsWidthStretch = ImGuiTableFlags_SizingStretchSame // WIP Tables 2020/12 - //, ImGuiTableFlags_SizingPolicyFixed = ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_SizingPolicyStretch = ImGuiTableFlags_SizingStretchSame // WIP Tables 2021/01 -#endif + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, }; // Flags for ImGui::TableSetupColumn() @@ -1229,19 +1225,14 @@ enum ImGuiTableColumnFlags_ ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, - ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30 // [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge) - - // Obsolete names (will be removed soon) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //ImGuiTableColumnFlags_WidthAuto = ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoResize, // Column will not stretch and keep resizing based on submitted contents. -#endif + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, // [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge) }; // Flags for ImGui::TableNextRow() enum ImGuiTableRowFlags_ { - ImGuiTableRowFlags_None = 0, - ImGuiTableRowFlags_Headers = 1 << 0 // Identify header row (set default background color + width of its contents accounted different for auto column width) + ImGuiTableRowFlags_None = 0, + ImGuiTableRowFlags_Headers = 1 << 0, // Identify header row (set default background color + width of its contents accounted differently for auto column width) }; // Enum for ImGui::TableSetBgColor() @@ -1249,16 +1240,16 @@ enum ImGuiTableRowFlags_ // - Layer 0: draw with RowBg0 color if set, otherwise draw with ColumnBg0 if set. // - Layer 1: draw with RowBg1 color if set, otherwise draw with ColumnBg1 if set. // - Layer 2: draw with CellBg color if set. -// The purpose of the two row/columns layers is to let you decide if a background color changes should override or blend with the existing color. +// The purpose of the two row/columns layers is to let you decide if a background color change should override or blend with the existing color. // When using ImGuiTableFlags_RowBg on the table, each row has the RowBg0 color automatically set for odd/even rows. // If you set the color of RowBg0 target, your color will override the existing RowBg0 color. // If you set the color of RowBg1 or ColumnBg1 target, your color will blend over the RowBg0 color. enum ImGuiTableBgTarget_ { - ImGuiTableBgTarget_None = 0, - ImGuiTableBgTarget_RowBg0 = 1, // Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used) - ImGuiTableBgTarget_RowBg1 = 2, // Set row background color 1 (generally used for selection marking) - ImGuiTableBgTarget_CellBg = 3 // Set cell background color (top-most color) + ImGuiTableBgTarget_None = 0, + ImGuiTableBgTarget_RowBg0 = 1, // Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used) + ImGuiTableBgTarget_RowBg1 = 2, // Set row background color 1 (generally used for selection marking) + ImGuiTableBgTarget_CellBg = 3, // Set cell background color (top-most color) }; // Flags for ImGui::IsWindowFocused() @@ -1270,7 +1261,7 @@ enum ImGuiFocusedFlags_ ImGuiFocusedFlags_AnyWindow = 1 << 2, // Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ! ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, // Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) //ImGuiFocusedFlags_DockHierarchy = 1 << 4, // Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) - ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, }; // Flags for ImGui::IsItemHovered(), ImGui::IsWindowHovered() @@ -1289,8 +1280,14 @@ enum ImGuiHoveredFlags_ ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, // Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns. ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 8, // IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window ImGuiHoveredFlags_AllowWhenDisabled = 1 << 9, // IsItemHovered() only: Return true even if the item is disabled + ImGuiHoveredFlags_NoNavOverride = 1 << 10, // Disable using gamepad/keyboard navigation state when active, always query mouse. ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, - ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + + // Hovering delays (for tooltips) + ImGuiHoveredFlags_DelayNormal = 1 << 11, // Return true after io.HoverDelayNormal elapsed (~0.30 sec) + ImGuiHoveredFlags_DelayShort = 1 << 12, // Return true after io.HoverDelayShort elapsed (~0.10 sec) + ImGuiHoveredFlags_NoSharedDelay = 1 << 13, // Disable shared delay system where moving from one item to the next keeps the previous timer for a short time (standard for tooltips with long delays) }; // Flags for ImGui::BeginDragDropSource(), ImGui::AcceptDragDropPayload() @@ -1298,8 +1295,8 @@ enum ImGuiDragDropFlags_ { ImGuiDragDropFlags_None = 0, // BeginDragDropSource() flags - ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disable this behavior. - ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disable this behavior so you can still call IsItemHovered() on the source item. + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior. + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item. ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, // Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item. ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, // Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit. ImGuiDragDropFlags_SourceExtern = 1 << 4, // External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously. @@ -1308,7 +1305,7 @@ enum ImGuiDragDropFlags_ ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, // AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered. ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, // Do not draw the default highlight rectangle when hovering over target. ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, // Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site. - ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect // For peeking ahead and inspecting the payload before delivery. + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, // For peeking ahead and inspecting the payload before delivery. }; // Standard Drag and Drop payload types. You can define you own payload types using short strings. Types starting with '_' are defined by Dear ImGui. @@ -1350,10 +1347,14 @@ enum ImGuiSortDirection_ ImGuiSortDirection_Descending = 2 // Descending = 9->0, Z->A etc. }; -// User fill ImGuiIO.KeyMap[] array with indices into the ImGuiIO.KeysDown[512] array -enum ImGuiKey_ +// A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) +// All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87) +// Since >= 1.89 we increased typing (went from int to enum), some legacy code may need a cast to ImGuiKey. +enum ImGuiKey : int { - ImGuiKey_Tab, + // Keyboard + ImGuiKey_None = 0, + ImGuiKey_Tab = 512, // == ImGuiKey_NamedKey_BEGIN ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, @@ -1368,74 +1369,141 @@ enum ImGuiKey_ ImGuiKey_Space, ImGuiKey_Enter, ImGuiKey_Escape, - ImGuiKey_KeyPadEnter, - ImGuiKey_A, // for text edit CTRL+A: select all - ImGuiKey_C, // for text edit CTRL+C: copy - ImGuiKey_V, // for text edit CTRL+V: paste - ImGuiKey_X, // for text edit CTRL+X: cut - ImGuiKey_Y, // for text edit CTRL+Y: redo - ImGuiKey_Z, // for text edit CTRL+Z: undo - ImGuiKey_COUNT -}; - -// To test io.KeyMods (which is a combination of individual fields io.KeyCtrl, io.KeyShift, io.KeyAlt set by user/backend) -enum ImGuiKeyModFlags_ -{ - ImGuiKeyModFlags_None = 0, - ImGuiKeyModFlags_Ctrl = 1 << 0, - ImGuiKeyModFlags_Shift = 1 << 1, - ImGuiKeyModFlags_Alt = 1 << 2, - ImGuiKeyModFlags_Super = 1 << 3 -}; - -// Gamepad/Keyboard navigation -// Keyboard: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. -// Gamepad: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. Backend: set ImGuiBackendFlags_HasGamepad and fill the io.NavInputs[] fields before calling NewFrame(). Note that io.NavInputs[] is cleared by EndFrame(). -// Read instructions in imgui.cpp for more details. Download PNG/PSD at http://dearimgui.org/controls_sheets. -enum ImGuiNavInput_ -{ - // Gamepad Mapping - ImGuiNavInput_Activate, // activate / open / toggle / tweak value // e.g. Cross (PS4), A (Xbox), A (Switch), Space (Keyboard) - ImGuiNavInput_Cancel, // cancel / close / exit // e.g. Circle (PS4), B (Xbox), B (Switch), Escape (Keyboard) - ImGuiNavInput_Input, // text input / on-screen keyboard // e.g. Triang.(PS4), Y (Xbox), X (Switch), Return (Keyboard) - ImGuiNavInput_Menu, // tap: toggle menu / hold: focus, move, resize // e.g. Square (PS4), X (Xbox), Y (Switch), Alt (Keyboard) - ImGuiNavInput_DpadLeft, // move / tweak / resize window (w/ PadMenu) // e.g. D-pad Left/Right/Up/Down (Gamepads), Arrow keys (Keyboard) - ImGuiNavInput_DpadRight, // - ImGuiNavInput_DpadUp, // - ImGuiNavInput_DpadDown, // - ImGuiNavInput_LStickLeft, // scroll / move window (w/ PadMenu) // e.g. Left Analog Stick Left/Right/Up/Down - ImGuiNavInput_LStickRight, // - ImGuiNavInput_LStickUp, // - ImGuiNavInput_LStickDown, // - ImGuiNavInput_FocusPrev, // next window (w/ PadMenu) // e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch) - ImGuiNavInput_FocusNext, // prev window (w/ PadMenu) // e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch) - ImGuiNavInput_TweakSlow, // slower tweaks // e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch) - ImGuiNavInput_TweakFast, // faster tweaks // e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch) - - // [Internal] Don't use directly! This is used internally to differentiate keyboard from gamepad inputs for behaviors that require to differentiate them. - // Keyboard behavior that have no corresponding gamepad mapping (e.g. CTRL+TAB) will be directly reading from io.KeysDown[] instead of io.NavInputs[]. - ImGuiNavInput_KeyLeft_, // move left // = Arrow keys - ImGuiNavInput_KeyRight_, // move right - ImGuiNavInput_KeyUp_, // move up - ImGuiNavInput_KeyDown_, // move down + ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper, + ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper, + ImGuiKey_Menu, + ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9, + ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J, + ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T, + ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z, + ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6, + ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12, + ImGuiKey_Apostrophe, // ' + ImGuiKey_Comma, // , + ImGuiKey_Minus, // - + ImGuiKey_Period, // . + ImGuiKey_Slash, // / + ImGuiKey_Semicolon, // ; + ImGuiKey_Equal, // = + ImGuiKey_LeftBracket, // [ + ImGuiKey_Backslash, // \ (this text inhibit multiline comment caused by backslash) + ImGuiKey_RightBracket, // ] + ImGuiKey_GraveAccent, // ` + ImGuiKey_CapsLock, + ImGuiKey_ScrollLock, + ImGuiKey_NumLock, + ImGuiKey_PrintScreen, + ImGuiKey_Pause, + ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4, + ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9, + ImGuiKey_KeypadDecimal, + ImGuiKey_KeypadDivide, + ImGuiKey_KeypadMultiply, + ImGuiKey_KeypadSubtract, + ImGuiKey_KeypadAdd, + ImGuiKey_KeypadEnter, + ImGuiKey_KeypadEqual, + + // Gamepad (some of those are analog values, 0.0f to 1.0f) // GAME NAVIGATION ACTION + // (download controller mapping PNG/PSD at http://dearimgui.org/controls_sheets) + ImGuiKey_GamepadStart, // Menu (Xbox) + (Switch) Start/Options (PS) + ImGuiKey_GamepadBack, // View (Xbox) - (Switch) Share (PS) + ImGuiKey_GamepadFaceLeft, // X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows) + ImGuiKey_GamepadFaceRight, // B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit + ImGuiKey_GamepadFaceUp, // Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard + ImGuiKey_GamepadFaceDown, // A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak + ImGuiKey_GamepadDpadLeft, // D-pad Left // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadRight, // D-pad Right // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadUp, // D-pad Up // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadDown, // D-pad Down // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadL1, // L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode) + ImGuiKey_GamepadR1, // R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode) + ImGuiKey_GamepadL2, // L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog] + ImGuiKey_GamepadR2, // R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog] + ImGuiKey_GamepadL3, // L Stick (Xbox) L3 (Switch) L3 (PS) + ImGuiKey_GamepadR3, // R Stick (Xbox) R3 (Switch) R3 (PS) + ImGuiKey_GamepadLStickLeft, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickRight, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickUp, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickDown, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadRStickLeft, // [Analog] + ImGuiKey_GamepadRStickRight, // [Analog] + ImGuiKey_GamepadRStickUp, // [Analog] + ImGuiKey_GamepadRStickDown, // [Analog] + + // Mouse Buttons (auto-submitted from AddMouseButtonEvent() calls) + // - This is mirroring the data also written to io.MouseDown[], io.MouseWheel, in a format allowing them to be accessed via standard key API. + ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY, + + // [Internal] Reserved for mod storage + ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper, + ImGuiKey_COUNT, + + // Keyboard Modifiers (explicitly submitted by backend via AddKeyEvent() calls) + // - This is mirroring the data also written to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper, in a format allowing + // them to be accessed via standard key API, allowing calls such as IsKeyPressed(), IsKeyReleased(), querying duration etc. + // - Code polling every key (e.g. an interface to detect a key press for input mapping) might want to ignore those + // and prefer using the real keys (e.g. ImGuiKey_LeftCtrl, ImGuiKey_RightCtrl instead of ImGuiMod_Ctrl). + // - In theory the value of keyboard modifiers should be roughly equivalent to a logical or of the equivalent left/right keys. + // In practice: it's complicated; mods are often provided from different sources. Keyboard layout, IME, sticky keys and + // backends tend to interfere and break that equivalence. The safer decision is to relay that ambiguity down to the end-user... + ImGuiMod_None = 0, + ImGuiMod_Ctrl = 1 << 12, + ImGuiMod_Shift = 1 << 13, + ImGuiMod_Alt = 1 << 14, // Option/Menu + ImGuiMod_Super = 1 << 15, // Cmd/Super/Windows + ImGuiMod_Mask_ = 0xF000, +#if defined(__APPLE__) + ImGuiMod_Shortcut = ImGuiMod_Super, +#else + ImGuiMod_Shortcut = ImGuiMod_Ctrl, +#endif + + // [Internal] Prior to 1.87 we required user to fill io.KeysDown[512] using their own native index + the io.KeyMap[] array. + // We are ditching this method but keeping a legacy path for user code doing e.g. IsKeyPressed(MY_NATIVE_KEY_CODE) + ImGuiKey_NamedKey_BEGIN = 512, + ImGuiKey_NamedKey_END = ImGuiKey_COUNT, + ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT, // Size of KeysData[]: only hold named keys + ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN, // First key stored in io.KeysData[0]. Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET). +#else + ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT, // Size of KeysData[]: hold legacy 0..512 keycodes + named keys + ImGuiKey_KeysData_OFFSET = 0, // First key stored in io.KeysData[0]. Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET). +#endif + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super, // Renamed in 1.89 + ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter, // Renamed in 1.87 +#endif +}; + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +// OBSOLETED in 1.88 (from July 2022): ImGuiNavInput and io.NavInputs[]. +// Official backends between 1.60 and 1.86: will keep working and feed gamepad inputs as long as IMGUI_DISABLE_OBSOLETE_KEYIO is not set. +// Custom backends: feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +enum ImGuiNavInput +{ + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, ImGuiNavInput_COUNT, - ImGuiNavInput_InternalStart_ = ImGuiNavInput_KeyLeft_ }; +#endif // Configuration flags stored in io.ConfigFlags. Set by user/application. enum ImGuiConfigFlags_ { ImGuiConfigFlags_None = 0, - ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. NewFrame() will automatically fill io.NavInputs[] based on io.KeysDown[]. - ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. This is mostly to instruct your imgui backend to fill io.NavInputs[]. Backend also needs to set ImGuiBackendFlags_HasGamepad. + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad. ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth. ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, // Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set. ImGuiConfigFlags_NoMouse = 1 << 4, // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the backend. ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, // Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead. - // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are not used by core Dear ImGui) + // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are NOT used by core Dear ImGui) ImGuiConfigFlags_IsSRGB = 1 << 20, // Application is SRGB-aware. - ImGuiConfigFlags_IsTouchScreen = 1 << 21 // Application is using a touch screen instead of a mouse. + ImGuiConfigFlags_IsTouchScreen = 1 << 21, // Application is using a touch screen instead of a mouse. }; // Backend capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom backend. @@ -1445,7 +1513,7 @@ enum ImGuiBackendFlags_ ImGuiBackendFlags_HasGamepad = 1 << 0, // Backend Platform supports gamepad and currently has one connected. ImGuiBackendFlags_HasMouseCursors = 1 << 1, // Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape. ImGuiBackendFlags_HasSetMousePos = 1 << 2, // Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set). - ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3 // Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices. + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, // Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices. }; // Enumeration for PushStyleColor() / PopStyleColor() @@ -1481,10 +1549,10 @@ enum ImGuiCol_ ImGuiCol_Separator, ImGuiCol_SeparatorHovered, ImGuiCol_SeparatorActive, - ImGuiCol_ResizeGrip, + ImGuiCol_ResizeGrip, // Resize grip in lower-right and lower-left corners of windows. ImGuiCol_ResizeGripHovered, ImGuiCol_ResizeGripActive, - ImGuiCol_Tab, + ImGuiCol_Tab, // TabItem in a TabBar ImGuiCol_TabHovered, ImGuiCol_TabActive, ImGuiCol_TabUnfocused, @@ -1499,7 +1567,7 @@ enum ImGuiCol_ ImGuiCol_TableRowBg, // Table row background (even rows) ImGuiCol_TableRowBgAlt, // Table row background (odd rows) ImGuiCol_TextSelectedBg, - ImGuiCol_DragDropTarget, + ImGuiCol_DragDropTarget, // Rectangle highlighting a drop target ImGuiCol_NavHighlight, // Gamepad/keyboard: current highlighted item ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active @@ -1511,7 +1579,7 @@ enum ImGuiCol_ // - The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code. // During initialization or between frames, feel free to just poke into ImGuiStyle directly. // - Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description. -// In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. // With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. // - When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type. enum ImGuiStyleVar_ @@ -1555,7 +1623,7 @@ enum ImGuiButtonFlags_ // [Internal] ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, - ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, }; // Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() @@ -1596,16 +1664,15 @@ enum ImGuiColorEditFlags_ ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, - ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, // Obsolete names (will be removed) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] -#endif + // ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] }; // Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. // We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText) enum ImGuiSliderFlags_ { ImGuiSliderFlags_None = 0, @@ -1613,11 +1680,11 @@ enum ImGuiSliderFlags_ ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits) ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget - ImGuiSliderFlags_InvalidMask_ = 0x7000000F // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. // Obsolete names (will be removed) #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp // [renamed in 1.79] + ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp, // [renamed in 1.79] #endif }; @@ -1639,7 +1706,7 @@ enum ImGuiMouseCursor_ ImGuiMouseCursor_Arrow = 0, ImGuiMouseCursor_TextInput, // When hovering over InputText, etc. ImGuiMouseCursor_ResizeAll, // (Unused by Dear ImGui functions) - ImGuiMouseCursor_ResizeNS, // When hovering over an horizontal border + ImGuiMouseCursor_ResizeNS, // When hovering over a horizontal border ImGuiMouseCursor_ResizeEW, // When hovering over a vertical border or a column ImGuiMouseCursor_ResizeNESW, // When hovering over the bottom-left corner of a window ImGuiMouseCursor_ResizeNWSE, // When hovering over the bottom-right corner of a window @@ -1654,10 +1721,10 @@ enum ImGuiMouseCursor_ enum ImGuiCond_ { ImGuiCond_None = 0, // No condition (always set the variable), same as _Always - ImGuiCond_Always = 1 << 0, // No condition (always set the variable) + ImGuiCond_Always = 1 << 0, // No condition (always set the variable), same as _None ImGuiCond_Once = 1 << 1, // Set the variable once per runtime session (only the first call will succeed) ImGuiCond_FirstUseEver = 1 << 2, // Set the variable if the object/window has no persistently saved data (no entry in .ini file) - ImGuiCond_Appearing = 1 << 3 // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) + ImGuiCond_Appearing = 1 << 3, // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) }; //----------------------------------------------------------------------------- @@ -1706,7 +1773,7 @@ struct ImVector // Constructors, destructor inline ImVector() { Size = Capacity = 0; Data = NULL; } inline ImVector(const ImVector& src) { Size = Capacity = 0; Data = NULL; operator=(src); } - inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } + inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); if (src.Data) memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } inline ~ImVector() { if (Data) IM_FREE(Data); } // Important: does not destruct anything inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } // Important: does not destruct anything @@ -1736,13 +1803,14 @@ struct ImVector inline void resize(int new_size, const T& v) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); if (new_size > Size) for (int n = Size; n < new_size; n++) memcpy(&Data[n], &v, sizeof(v)); Size = new_size; } inline void shrink(int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; } // Resize a vector to a smaller size, guaranteed not to cause a reallocation inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); IM_FREE(Data); } Data = new_data; Capacity = new_capacity; } + inline void reserve_discard(int new_capacity) { if (new_capacity <= Capacity) return; if (Data) IM_FREE(Data); Data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); Capacity = new_capacity; } // NB: It is illegal to call push_back/push_front/insert with a reference pointing inside the ImVector data itself! e.g. v.push_back(v[10]) is forbidden. inline void push_back(const T& v) { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } inline void pop_back() { IM_ASSERT(Size > 0); Size--; } inline void push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } inline T* erase(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((size_t)Size - (size_t)off - 1) * sizeof(T)); Size--; return Data + off; } - inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last > it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - (size_t)count) * sizeof(T)); Size -= (int)count; return Data + off; } + inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last >= it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - (size_t)count) * sizeof(T)); Size -= (int)count; return Data + off; } inline T* erase_unsorted(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; if (it < Data + Size - 1) memcpy(Data + off, Data + Size - 1, sizeof(T)); Size--; return Data + off; } inline T* insert(const T* it, const T& v) { IM_ASSERT(it >= Data && it <= Data + Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(T)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; } inline bool contains(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; } @@ -1769,7 +1837,7 @@ struct ImGuiStyle ImVec2 WindowPadding; // Padding within a window. float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constraint individual windows, use SetNextWindowSizeConstraints(). + ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints(). ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. @@ -1792,7 +1860,7 @@ struct ImGuiStyle float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. float TabBorderSize; // Thickness of border around tabs. - float TabMinWidthForCloseButton; // Minimum width for close button to appears on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + float TabMinWidthForCloseButton; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. @@ -1800,7 +1868,7 @@ struct ImGuiStyle ImVec2 DisplaySafeAreaPadding; // If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly! float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). - bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering. Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList). bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. float CircleTessellationMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. @@ -1817,25 +1885,36 @@ struct ImGuiStyle // Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage. //----------------------------------------------------------------------------- +// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions. +// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration. +struct ImGuiKeyData +{ + bool Down; // True for if key is down + float DownDuration; // Duration the key has been down (<0.0f: not pressed, 0.0f: just pressed, >0.0f: time held) + float DownDurationPrev; // Last frame duration the key has been down + float AnalogValue; // 0.0f..1.0f for gamepad values +}; + struct ImGuiIO { //------------------------------------------------------------------ - // Configuration (fill once) // Default value + // Configuration // Default value //------------------------------------------------------------------ ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc. ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend) to communicate features supported by the backend. - ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size) - float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. + ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size). May change every frame. + float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame. float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. const char* IniFilename; // = "imgui.ini" // Path to .ini file (important: default "imgui.ini" is relative to current working dir!). Set NULL to disable automatic .ini loading/saving or if you want to manually call LoadIniSettingsXXX() / SaveIniSettingsXXX() functions. const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. - int KeyMap[ImGuiKey_COUNT]; // // Map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. - float KeyRepeatDelay; // = 0.250f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). + float KeyRepeatDelay; // = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. + float HoverDelayNormal; // = 0.30 sec // Delay on hovering before IsItemHovered(ImGuiHoveredFlags_DelayNormal) returns true. + float HoverDelayShort; // = 0.10 sec // Delay on hovering before IsItemHovered(ImGuiHoveredFlags_DelayShort) returns true. void* UserData; // = NULL // Store your own data for retrieval by callbacks. ImFontAtlas*Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. @@ -1847,7 +1926,9 @@ struct ImGuiIO // Miscellaneous options bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations. bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // OS X style: Text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl. + bool ConfigInputTrickleEventQueue; // = true // Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates. bool ConfigInputTextCursorBlink; // = true // Enable blinking cursor (optional as some users consider it to be distracting). + bool ConfigInputTextEnterKeepActive; // = false // [BETA] Pressing Enter will keep item active and select contents (single-line only). bool ConfigDragClickToInputText; // = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). Not desirable on devices without a keyboard. bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) bool ConfigWindowsMoveFromTitleBarOnly; // = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar. @@ -1873,31 +1954,32 @@ struct ImGuiIO // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) // (default to use native imm32 api on Windows) - void (*ImeSetInputScreenPosFn)(int x, int y); - void* ImeWindowHandle; // = NULL // (Windows) Set this to your HWND to get automatic IME cursor positioning. + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + void* ImeWindowHandle; // = NULL // [Obsolete] Set ImGuiViewport::PlatformHandleRaw instead. Set this to your HWND to get automatic IME cursor positioning. +#else + void* _UnusedPadding; // Unused field to keep data structure the same size. +#endif //------------------------------------------------------------------ - // Input - Fill before calling NewFrame() + // Input - Call before calling NewFrame() //------------------------------------------------------------------ - ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) - bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Others buttons allows us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. - float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. - float MouseWheelH; // Mouse wheel Horizontal. Most users don't have a mouse with an horizontal wheel, may not be filled by all backends. - bool KeyCtrl; // Keyboard modifier pressed: Control - bool KeyShift; // Keyboard modifier pressed: Shift - bool KeyAlt; // Keyboard modifier pressed: Alt - bool KeySuper; // Keyboard modifier pressed: Cmd/Super/Windows - bool KeysDown[512]; // Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). - float NavInputs[ImGuiNavInput_COUNT]; // Gamepad inputs. Cleared back to zero by EndFrame(). Keyboard keys will be auto-mapped and be written here by NewFrame(). - - // Functions - IMGUI_API void AddInputCharacter(unsigned int c); // Queue new character input - IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue new character input from an UTF-16 character, it can be a surrogate - IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue new characters input from an UTF-8 string - IMGUI_API void AddFocusEvent(bool focused); // Notifies Dear ImGui when hosting platform windows lose or gain input focus - IMGUI_API void ClearInputCharacters(); // [Internal] Clear the text input buffer manually - IMGUI_API void ClearInputKeys(); // [Internal] Release all keys + // Input Functions + IMGUI_API void AddKeyEvent(ImGuiKey key, bool down); // Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) + IMGUI_API void AddKeyAnalogEvent(ImGuiKey key, bool down, float v); // Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. + IMGUI_API void AddMousePosEvent(float x, float y); // Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered) + IMGUI_API void AddMouseButtonEvent(int button, bool down); // Queue a mouse button change + IMGUI_API void AddMouseWheelEvent(float wh_x, float wh_y); // Queue a mouse wheel update + IMGUI_API void AddFocusEvent(bool focused); // Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window) + IMGUI_API void AddInputCharacter(unsigned int c); // Queue a new character input + IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue a new character input from a UTF-16 character, it can be a surrogate + IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue a new characters input from a UTF-8 string + + IMGUI_API void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index = -1); // [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. + IMGUI_API void SetAppAcceptingEvents(bool accepting_events); // Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. + IMGUI_API void ClearInputCharacters(); // [Internal] Clear the text input buffer manually + IMGUI_API void ClearInputKeys(); // [Internal] Release all keys //------------------------------------------------------------------ // Output - Updated by NewFrame() or EndFrame()/Render() @@ -1905,50 +1987,70 @@ struct ImGuiIO // generally easier and more correct to use their state BEFORE calling NewFrame(). See FAQ for details!) //------------------------------------------------------------------ - bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). - bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). - bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). - bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. - bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! - bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. - bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). - float Framerate; // Rough estimate of application framerate, in frame per second. Solely for convenience. Rolling average estimation based on io.DeltaTime over 120 frames. - int MetricsRenderVertices; // Vertices output during last call to Render() - int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 - int MetricsRenderWindows; // Number of visible windows - int MetricsActiveWindows; // Number of active windows - int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. - ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). + bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). + bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). + bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. + bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! + bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. + bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). + float Framerate; // Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally. + int MetricsRenderVertices; // Vertices output during last call to Render() + int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 + int MetricsRenderWindows; // Number of visible windows + int MetricsActiveWindows; // Number of active windows + int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. + ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + + // Legacy: before 1.87, we required backend to fill io.KeyMap[] (imgui->native map) during initialization and io.KeysDown[] (native indices) every frame. + // This is still temporarily supported as a legacy feature. However the new preferred scheme is for backend to call io.AddKeyEvent(). + // Old (<1.87): ImGui::IsKeyPressed(ImGui::GetIO().KeyMap[ImGuiKey_Space]) --> New (1.87+) ImGui::IsKeyPressed(ImGuiKey_Space) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + int KeyMap[ImGuiKey_COUNT]; // [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512. + bool KeysDown[ImGuiKey_COUNT]; // [LEGACY] Input: Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow. + float NavInputs[ImGuiNavInput_COUNT]; // [LEGACY] Since 1.88, NavInputs[] was removed. Backends from 1.60 to 1.86 won't build. Feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +#endif //------------------------------------------------------------------ // [Internal] Dear ImGui will maintain those fields. Forward compatibility not guaranteed! //------------------------------------------------------------------ - bool WantCaptureMouseUnlessPopupClose;// Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. - ImGuiKeyModFlags KeyMods; // Key mods flags (same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags), updated by NewFrame() - ImGuiKeyModFlags KeyModsPrev; // Previous key mods - ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) - ImVec2 MouseClickedPos[5]; // Position at time of clicking - double MouseClickedTime[5]; // Time of last click (used to figure out double-click) - bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) - bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) - ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down - ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. - bool MouseReleased[5]; // Mouse button went from Down to !Down - bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. - bool MouseDownOwnedUnlessPopupClose[5];//Track if button was clicked inside a dear imgui window. - float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) - float MouseDownDurationPrev[5]; // Previous time the mouse button has been down - ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point - float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point - float KeysDownDuration[512]; // Duration the keyboard key has been down (0.0f == just pressed) - float KeysDownDurationPrev[512]; // Previous duration the key has been down - float NavInputsDownDuration[ImGuiNavInput_COUNT]; - float NavInputsDownDurationPrev[ImGuiNavInput_COUNT]; - float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. - bool AppFocusLost; - ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16 - ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. + // Main Input State + // (this block used to be written by backend, since 1.87 it is best to NOT write to those directly, call the AddXXX functions above instead) + // (reading from those variables is fair game, as they are extremely unlikely to be moving anywhere) + ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) + bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. + float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. + float MouseWheelH; // Mouse wheel Horizontal. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends. + bool KeyCtrl; // Keyboard modifier down: Control + bool KeyShift; // Keyboard modifier down: Shift + bool KeyAlt; // Keyboard modifier down: Alt + bool KeySuper; // Keyboard modifier down: Cmd/Super/Windows + + // Other state maintained from data above + IO function calls + ImGuiKeyChord KeyMods; // Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags). Read-only, updated by NewFrame() + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; // Key state for all known keys. Use IsKeyXXX() functions to access this. + bool WantCaptureMouseUnlessPopupClose; // Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. + ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) + ImVec2 MouseClickedPos[5]; // Position at time of clicking + double MouseClickedTime[5]; // Time of last click (used to figure out double-click) + bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) + bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) + ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down + ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. + bool MouseReleased[5]; // Mouse button went from Down to !Down + bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. + bool MouseDownOwnedUnlessPopupClose[5]; // Track if button was clicked inside a dear imgui window. + float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) + float MouseDownDurationPrev[5]; // Previous time the mouse button has been down + float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds) + float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. + bool AppFocusLost; // Only modify via AddFocusEvent() + bool AppAcceptingEvents; // Only modify via SetAppAcceptingEvents() + ImS8 BackendUsingLegacyKeyArrays; // -1: unknown, 0: using AddKeyEvent(), 1: using legacy io.KeysDown[] + bool BackendUsingLegacyNavInputArray; // 0: using AddKeyAnalogEvent(), 1: writing to legacy io.NavInputs[] directly + ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16() + ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. IMGUI_API ImGuiIO(); }; @@ -1999,7 +2101,7 @@ struct ImGuiInputTextCallbackData // NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough. struct ImGuiSizeCallbackData { - void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints() + void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in here (need reinterpret_cast<>). ImVec2 Pos; // Read-only. Window position, for reference. ImVec2 CurrentSize; // Read-only. Current window size. ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing. @@ -2063,7 +2165,7 @@ struct ImGuiTableSortSpecs #define IM_UNICODE_CODEPOINT_MAX 0xFFFF // Maximum Unicode code point supported by this build. #endif -// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create an UI within deep-nested code that runs multiple times every frame. +// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create a UI within deep-nested code that runs multiple times every frame. // Usage: static ImGuiOnceUponAFrame oaf; if (oaf) ImGui::Text("This will be called only once per frame"); struct ImGuiOnceUponAFrame { @@ -2171,7 +2273,7 @@ struct ImGuiStorage }; // Helper: Manually clip large list of items. -// If you have lots evenly spaced items and you have a random access to the list, you can perform coarse +// If you have lots evenly spaced items and you have random access to the list, you can perform coarse // clipping based on visibility to only submit items that are in view. // The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped. // (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally @@ -2216,6 +2318,8 @@ struct ImGuiListClipper }; // Helpers macros to generate 32-bit encoded colors +// User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file. +#ifndef IM_COL32_R_SHIFT #ifdef IMGUI_USE_BGRA_PACKED_COLOR #define IM_COL32_R_SHIFT 16 #define IM_COL32_G_SHIFT 8 @@ -2229,6 +2333,7 @@ struct ImGuiListClipper #define IM_COL32_A_SHIFT 24 #define IM_COL32_A_MASK 0xFF000000 #endif +#endif #define IM_COL32(R,G,B,A) (((ImU32)(A)<> IM_COL32_R_SHIFT) & 0xFF) * sc; Value.y = (float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * sc; Value.z = (float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * sc; Value.w = (float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * sc; } - ImColor(float r, float g, float b, float a = 1.0f) { Value.x = r; Value.y = g; Value.z = b; Value.w = a; } - ImColor(const ImVec4& col) { Value = col; } inline operator ImU32() const { return ImGui::ColorConvertFloat4ToU32(Value); } inline operator ImVec4() const { return Value; } @@ -2283,16 +2388,16 @@ typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* c #define ImDrawCallback_ResetRenderState (ImDrawCallback)(-1) // Typically, 1 command = 1 GPU draw call (unless command is a callback) -// - VtxOffset/IdxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, -// those fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. -// Pre-1.71 backends will typically ignore the VtxOffset/IdxOffset fields. +// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, +// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. +// Backends made for <1.71. will typically ignore the VtxOffset fields. // - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). struct ImDrawCmd { ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates ImTextureID TextureId; // 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas. unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. - unsigned int IdxOffset; // 4 // Start offset in index buffer. Always equal to sum of ElemCount drawn so far. + unsigned int IdxOffset; // 4 // Start offset in index buffer. unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. void* UserCallbackData; // 4-8 // The draw callback code can access this. @@ -2314,7 +2419,7 @@ struct ImDrawVert #else // You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h // The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine. -// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared a the time you'd want to set your type up. +// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared at the time you'd want to set your type up. // NOTE: IMGUI DOESN'T CLEAR THE STRUCTURE AND DOESN'T CALL A CONSTRUCTOR SO ANY CUSTOM FIELD WILL BE UNINITIALIZED. IF YOU ADD EXTRA FIELDS (SUCH AS A 'Z' COORDINATES) YOU WILL NEED TO CLEAR THEM DURING RENDER OR TO IGNORE THEM. IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT; #endif @@ -2369,7 +2474,7 @@ enum ImDrawFlags_ ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, // Default to ALL corners if none of the _RoundCornersXX flags are specified. - ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, }; // Flags for ImDrawList instance. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly. @@ -2378,9 +2483,9 @@ enum ImDrawListFlags_ { ImDrawListFlags_None = 0, ImDrawListFlags_AntiAliasedLines = 1 << 0, // Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles) - ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering. + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). ImDrawListFlags_AntiAliasedFill = 1 << 2, // Enable anti-aliased edge around filled shapes (rounded rectangles, circles). - ImDrawListFlags_AllowVtxOffset = 1 << 3 // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. + ImDrawListFlags_AllowVtxOffset = 1 << 3, // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. }; // Draw command list @@ -2402,7 +2507,7 @@ struct ImDrawList // [Internal, used while building lists] unsigned int _VtxCurrentIdx; // [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. - const ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) + ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) const char* _OwnerName; // Pointer to owner window's name for debugging ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) @@ -2414,10 +2519,10 @@ struct ImDrawList float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content // If you want to create ImDrawList instances, pass them ImGui::GetDrawListSharedData() or create and use your own ImDrawListSharedData (so you can use ImDrawList without ImGui) - ImDrawList(const ImDrawListSharedData* shared_data) { memset(this, 0, sizeof(*this)); _Data = shared_data; } + ImDrawList(ImDrawListSharedData* shared_data) { memset(this, 0, sizeof(*this)); _Data = shared_data; } ~ImDrawList() { _ClearFreeMemory(); } - IMGUI_API void PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) IMGUI_API void PushClipRectFullScreen(); IMGUI_API void PopClipRect(); IMGUI_API void PushTextureID(ImTextureID texture_id); @@ -2426,11 +2531,12 @@ struct ImDrawList inline ImVec2 GetClipRectMax() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.z, cr.w); } // Primitives + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners. // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred). // In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12. // In future versions we will use textures to provide cheaper and higher-quality circles. - // Use AddNgon() and AddNgonFilled() functions if you need to guaranteed a specific number of sides. + // Use AddNgon() and AddNgonFilled() functions if you need to guarantee a specific number of sides. IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f); IMGUI_API void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0, float thickness = 1.0f); // a: upper-left, b: lower-right (== upper-left + size) IMGUI_API void AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0); // a: upper-left, b: lower-right (== upper-left + size) @@ -2446,7 +2552,7 @@ struct ImDrawList IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL); IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); IMGUI_API void AddPolyline(const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness); - IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); // Note: Anti-aliased filling requires points to be in clockwise order. + IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); IMGUI_API void AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0); // Cubic Bezier (4 control points) IMGUI_API void AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments = 0); // Quadratic Bezier (3 control points) @@ -2459,10 +2565,11 @@ struct ImDrawList IMGUI_API void AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags = 0); // Stateful path API, add points then finish with PathFillConvex() or PathStroke() + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. inline void PathClear() { _Path.Size = 0; } inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); } - inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } // Note: Anti-aliased filling requires points to be in clockwise order. + inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } inline void PathStroke(ImU32 col, ImDrawFlags flags = 0, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; } IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 0); IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle @@ -2498,8 +2605,8 @@ struct ImDrawList inline void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); } // Write vertex with unique index #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } - inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } + inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) + inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) #endif // [Internal helpers] @@ -2614,7 +2721,7 @@ enum ImFontAtlasFlags_ ImFontAtlasFlags_None = 0, ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two ImFontAtlasFlags_NoMouseCursors = 1 << 1, // Don't build software mouse cursors into the atlas (save a little texture memory) - ImFontAtlasFlags_NoBakedLines = 1 << 2 // Don't build thick line textures into the atlas (save a little texture memory). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). + ImFontAtlasFlags_NoBakedLines = 1 << 2, // Don't build thick line textures into the atlas (save a little texture memory, allow support for point/nearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). }; // Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding: @@ -2633,7 +2740,7 @@ enum ImFontAtlasFlags_ // - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction. // You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed, // - Even though many functions are suffixed with "TTF", OTF data is supported just as well. -// - This is an old API and it is currently awkward for those and and various other reasons! We will address them in the future! +// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future! struct ImFontAtlas { IMGUI_API ImFontAtlas(); @@ -2657,7 +2764,7 @@ struct ImFontAtlas IMGUI_API bool Build(); // Build pixels data. This is called automatically for you by the GetTexData*** functions. IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 1 byte per-pixel IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 4 bytes-per-pixel - bool IsBuilt() const { return Fonts.Size > 0 && TexReady; } // Bit ambiguous: used to detect when user didn't built texture but effectively we should check TexID != 0 except that would be backend dependent... + bool IsBuilt() const { return Fonts.Size > 0 && TexReady; } // Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... void SetTexID(ImTextureID id) { TexID = id; } //------------------------------------------- @@ -2668,6 +2775,7 @@ struct ImFontAtlas // NB: Make sure that your string are UTF-8 and NOT in your local code page. In C++11, you can create UTF-8 string literal using the u8"Hello world" syntax. See FAQ for details. // NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data. IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin + IMGUI_API const ImWchar* GetGlyphRangesGreek(); // Default + Greek and Coptic IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters IMGUI_API const ImWchar* GetGlyphRangesJapanese(); // Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs @@ -2702,7 +2810,7 @@ struct ImFontAtlas ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure. int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height. - int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0. + int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false). bool Locked; // Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert. // [Internal] @@ -2728,10 +2836,9 @@ struct ImFontAtlas int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors int PackIdLines; // Custom texture rectangle ID for baked anti-aliased lines -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ + // [Obsolete] + //typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ //typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ -#endif }; // Font runtime data and rendering @@ -2774,8 +2881,8 @@ struct ImFont // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; - IMGUI_API void RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const; - IMGUI_API void RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; + IMGUI_API void RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const; + IMGUI_API void RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; // [Internal] Don't use! IMGUI_API void BuildLookupTable(); @@ -2797,7 +2904,7 @@ enum ImGuiViewportFlags_ ImGuiViewportFlags_None = 0, ImGuiViewportFlags_IsPlatformWindow = 1 << 0, // Represent a Platform Window ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, // Represent a Platform Monitor (unused yet) - ImGuiViewportFlags_OwnedByApp = 1 << 2 // Platform Window: is created/managed by the application (rather than a dear imgui backend) + ImGuiViewportFlags_OwnedByApp = 1 << 2, // Platform Window: is created/managed by the application (rather than a dear imgui backend) }; // - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. @@ -2815,6 +2922,9 @@ struct ImGuiViewport ImVec2 WorkPos; // Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos) ImVec2 WorkSize; // Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size) + // Platform/Backend Dependent Data + void* PlatformHandleRaw; // void* to hold lower-level, platform-native window handle (under Win32 this is expected to be a HWND, unused for other platforms) + ImGuiViewport() { memset(this, 0, sizeof(*this)); } // Helpers @@ -2822,60 +2932,97 @@ struct ImGuiViewport ImVec2 GetWorkCenter() const { return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); } }; +//----------------------------------------------------------------------------- +// [SECTION] Platform Dependent Interfaces +//----------------------------------------------------------------------------- + +// (Optional) Support for IME (Input Method Editor) via the io.SetPlatformImeDataFn() function. +struct ImGuiPlatformImeData +{ + bool WantVisible; // A widget wants the IME to be visible + ImVec2 InputPos; // Position of the input cursor + float InputLineHeight; // Line height + + ImGuiPlatformImeData() { memset(this, 0, sizeof(*this)); } +}; + //----------------------------------------------------------------------------- // [SECTION] Obsolete functions and types // (Will be removed! Read 'API BREAKING CHANGES' section in imgui.cpp for details) // Please keep your copy of dear imgui up to date! Occasionally set '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in imconfig.h to stay ahead. //----------------------------------------------------------------------------- +namespace ImGui +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key); // map ImGuiKey_* values into legacy native key index. == io.KeyMap[key] +#else + static inline ImGuiKey GetKeyIndex(ImGuiKey key) { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END && "ImGuiKey and native_index was merged together and native_index is disabled by IMGUI_DISABLE_OBSOLETE_KEYIO. Please switch to ImGuiKey."); return key; } +#endif +} + #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS namespace ImGui { + // OBSOLETED in 1.89 (from August 2022) + IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); // Use new ImageButton() signature (explicit item id, regular FramePadding) + // OBSOLETED in 1.88 (from May 2022) + static inline void CaptureKeyboardFromApp(bool want_capture_keyboard = true) { SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } // Renamed as name was misleading + removed default value. + static inline void CaptureMouseFromApp(bool want_capture_mouse = true) { SetNextFrameWantCaptureMouse(want_capture_mouse); } // Renamed as name was misleading + removed default value. // OBSOLETED in 1.86 (from November 2021) IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // Calculate coarse clipping for large list of evenly sized items. Prefer using ImGuiListClipper. // OBSOLETED in 1.85 (from August 2021) - static inline float GetWindowContentRegionWidth() { return GetWindowContentRegionMax().x - GetWindowContentRegionMin().x; } + static inline float GetWindowContentRegionWidth() { return GetWindowContentRegionMax().x - GetWindowContentRegionMin().x; } // OBSOLETED in 1.81 (from February 2021) IMGUI_API bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1); // Helper to calculate size from items_count and height_in_items static inline bool ListBoxHeader(const char* label, const ImVec2& size = ImVec2(0, 0)) { return BeginListBox(label, size); } - static inline void ListBoxFooter() { EndListBox(); } - // OBSOLETED in 1.79 (from August 2020) - static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! - // OBSOLETED in 1.78 (from June 2020) - // Old drag/sliders functions that took a 'float power = 1.0' argument instead of flags. - // For shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. - IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power); - IMGUI_API bool DragScalarN(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, float power); - static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } - static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } - static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } - static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } - IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power); - IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power); - static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } - static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } - static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } - static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } - // OBSOLETED in 1.77 (from June 2020) - static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } - // OBSOLETED in 1.72 (from April 2019) - static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } - // OBSOLETED in 1.71 (from June 2019) - static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } - // OBSOLETED in 1.70 (from May 2019) - static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } + static inline void ListBoxFooter() { EndListBox(); } // Some of the older obsolete names along with their replacement (commented out so they are not reported in IDE) - //static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } // OBSOLETED in 1.69 (from Mar 2019) - //static inline void SetScrollHere(float ratio = 0.5f) { SetScrollHereY(ratio); } // OBSOLETED in 1.66 (from Nov 2018) - //static inline bool IsItemDeactivatedAfterChange() { return IsItemDeactivatedAfterEdit(); } // OBSOLETED in 1.63 (from Aug 2018) - //static inline bool IsAnyWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_AnyWindow); } // OBSOLETED in 1.60 (from Apr 2018) - //static inline bool IsAnyWindowHovered() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.60 (between Dec 2017 and Apr 2018) - //static inline void ShowTestWindow() { return ShowDemoWindow(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) - //static inline bool IsRootWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootWindow); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) - //static inline bool IsRootWindowOrAnyChildFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) - //static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) - //static inline float GetItemsLineHeightWithSpacing() { return GetFrameHeightWithSpacing(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //-- OBSOLETED in 1.79 (from August 2020) + //static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! + //-- OBSOLETED in 1.78 (from June 2020): Old drag/sliders functions that took a 'float power > 1.0f' argument instead of ImGuiSliderFlags_Logarithmic. See github.com/ocornut/imgui/issues/3361 for details. + //IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power = 1.0f) // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool DragScalarN(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, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //-- OBSOLETED in 1.77 and before + //static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } // OBSOLETED in 1.77 (from June 2020) + //static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } // OBSOLETED in 1.72 (from July 2019) + //static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } // OBSOLETED in 1.71 (from June 2019) + //static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } // OBSOLETED in 1.70 (from May 2019) + //static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } // OBSOLETED in 1.69 (from Mar 2019) + //static inline void SetScrollHere(float ratio = 0.5f) { SetScrollHereY(ratio); } // OBSOLETED in 1.66 (from Nov 2018) + //static inline bool IsItemDeactivatedAfterChange() { return IsItemDeactivatedAfterEdit(); } // OBSOLETED in 1.63 (from Aug 2018) + //-- OBSOLETED in 1.60 and before + //static inline bool IsAnyWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_AnyWindow); } // OBSOLETED in 1.60 (from Apr 2018) + //static inline bool IsAnyWindowHovered() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.60 (between Dec 2017 and Apr 2018) + //static inline void ShowTestWindow() { return ShowDemoWindow(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootWindow); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowOrAnyChildFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline float GetItemsLineHeightWithSpacing() { return GetFrameHeightWithSpacing(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //IMGUI_API bool Begin(char* name, bool* p_open, ImVec2 size_first_use, float bg_alpha = -1.0f, ImGuiWindowFlags flags=0); // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017): Equivalent of using SetNextWindowSize(size, ImGuiCond_FirstUseEver) and SetNextWindowBgAlpha(). + //static inline bool IsRootWindowOrAnyChildHovered() { return IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void AlignFirstTextHeightToWidgets() { AlignTextToFramePadding(); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void SetNextWindowPosCenter(ImGuiCond c=0) { SetNextWindowPos(GetMainViewport()->GetCenter(), c, ImVec2(0.5f,0.5f)); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline bool IsItemHoveredRect() { return IsItemHovered(ImGuiHoveredFlags_RectOnly); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsPosHoveringAnyWindow(const ImVec2&) { IM_ASSERT(0); return false; } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017): This was misleading and partly broken. You probably want to use the io.WantCaptureMouse flag instead. + //static inline bool IsMouseHoveringAnyWindow() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsMouseHoveringWindow() { return IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //-- OBSOLETED in 1.50 and before + //static inline bool CollapsingHeader(char* label, const char* str_id, bool framed = true, bool default_open = false) { return CollapsingHeader(label, (default_open ? (1 << 5) : 0)); } // OBSOLETED in 1.49 + //static inline ImFont*GetWindowFont() { return GetFont(); } // OBSOLETED in 1.48 + //static inline float GetWindowFontSize() { return GetFontSize(); } // OBSOLETED in 1.48 + //static inline void SetScrollPosHere() { SetScrollHere(); } // OBSOLETED in 1.42 } // OBSOLETED in 1.82 (from Mars 2021): flags for AddRect(), AddRectFilled(), AddImageRounded(), PathRect() @@ -2891,11 +3038,26 @@ enum ImDrawCornerFlags_ ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight, ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight, ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, - ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight + ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight, }; +// RENAMED and MERGED both ImGuiKey_ModXXX and ImGuiModFlags_XXX into ImGuiMod_XXX (from September 2022) +// RENAMED ImGuiKeyModFlags -> ImGuiModFlags in 1.88 (from April 2022). Exceptionally commented out ahead of obscolescence schedule to reduce confusion and because they were not meant to be used in the first place. +typedef ImGuiKeyChord ImGuiModFlags; // == int. We generally use ImGuiKeyChord to mean "a ImGuiKey or-ed with any number of ImGuiMod_XXX value", but you may store only mods in there. +enum ImGuiModFlags_ { ImGuiModFlags_None = 0, ImGuiModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiModFlags_Shift = ImGuiMod_Shift, ImGuiModFlags_Alt = ImGuiMod_Alt, ImGuiModFlags_Super = ImGuiMod_Super }; +//typedef ImGuiKeyChord ImGuiKeyModFlags; // == int +//enum ImGuiKeyModFlags_ { ImGuiKeyModFlags_None = 0, ImGuiKeyModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiKeyModFlags_Shift = ImGuiMod_Shift, ImGuiKeyModFlags_Alt = ImGuiMod_Alt, ImGuiKeyModFlags_Super = ImGuiMod_Super }; + #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// RENAMED IMGUI_DISABLE_METRICS_WINDOW > IMGUI_DISABLE_DEBUG_TOOLS in 1.88 (from June 2022) +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && !defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_DEBUG_TOOLS) +#define IMGUI_DISABLE_DEBUG_TOOLS +#endif +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) +#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name. +#endif + //----------------------------------------------------------------------------- #if defined(__clang__) diff --git a/imgui-sys/third-party/imgui-master/imgui/imgui_demo.cpp b/imgui-sys/third-party/imgui-master/imgui/imgui_demo.cpp index 9cbc503a3..636c7b879 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imgui_demo.cpp +++ b/imgui-sys/third-party/imgui-master/imgui/imgui_demo.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (demo code) // Help: @@ -8,11 +8,15 @@ // Read imgui.cpp for more details, documentation and comments. // Get the latest version at https://github.com/ocornut/imgui +// ------------------------------------------------- +// PLEASE DO NOT REMOVE THIS FILE FROM YOUR PROJECT! +// ------------------------------------------------- // Message to the person tempted to delete this file when integrating Dear ImGui into their codebase: -// Do NOT remove this file from your project! Think again! It is the most useful reference code that you and other -// coders will want to refer to and call. Have the ImGui::ShowDemoWindow() function wired in an always-available -// debug menu of your game/app! Removing this file from your project is hindering access to documentation for everyone -// in your team, likely leading you to poorer usage of the library. +// Think again! It is the most useful reference code that you and other coders will want to refer to and call. +// Have the ImGui::ShowDemoWindow() function wired in an always-available debug menu of your game/app! +// Also include Metrics! ItemPicker! DebugLog! and other debug features. +// Removing this file from your project is hindering access to documentation for everyone in your team, +// likely leading you to poorer usage of the library. // Everything in this file will be stripped out by the linker if you don't call ImGui::ShowDemoWindow(). // If you want to link core Dear ImGui in your shipped builds but want a thorough guarantee that the demo will not be // linked, you can setup your imconfig.h with #define IMGUI_DISABLE_DEMO_WINDOWS and those functions will be empty. @@ -39,22 +43,25 @@ // Because we can't assume anything about your support of maths operators, we cannot use them in imgui_demo.cpp. // Navigating this file: -// - In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. // - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. /* Index of this file: -// [SECTION] Forward Declarations, Helpers +// [SECTION] Forward Declarations +// [SECTION] Helpers // [SECTION] Demo Window / ShowDemoWindow() +// - ShowDemoWindow() // - sub section: ShowDemoWindowWidgets() // - sub section: ShowDemoWindowLayout() // - sub section: ShowDemoWindowPopups() // - sub section: ShowDemoWindowTables() -// - sub section: ShowDemoWindowMisc() +// - sub section: ShowDemoWindowInputs() // [SECTION] About Window / ShowAboutWindow() // [SECTION] Style Editor / ShowStyleEditor() +// [SECTION] User Guide / ShowUserGuide() // [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() // [SECTION] Example App: Debug Console / ShowExampleAppConsole() // [SECTION] Example App: Debug Log / ShowExampleAppLog() @@ -92,8 +99,9 @@ Index of this file: // Visual Studio warnings #ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). #endif // Clang/GCC warnings with -Weverything @@ -185,12 +193,25 @@ static void ShowExampleAppWindowTitles(bool* p_open); static void ShowExampleAppCustomRendering(bool* p_open); static void ShowExampleMenuFile(); +// We split the contents of the big ShowDemoWindow() function into smaller functions +// (because the link time of very large functions grow non-linearly) +static void ShowDemoWindowWidgets(); +static void ShowDemoWindowLayout(); +static void ShowDemoWindowPopups(); +static void ShowDemoWindowTables(); +static void ShowDemoWindowColumns(); +static void ShowDemoWindowInputs(); + +//----------------------------------------------------------------------------- +// [SECTION] Helpers +//----------------------------------------------------------------------------- + // Helper to display a little (?) mark which shows a tooltip when hovered. // In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md) static void HelpMarker(const char* desc) { ImGui::TextDisabled("(?)"); - if (ImGui::IsItemHovered()) + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) { ImGui::BeginTooltip(); ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); @@ -200,79 +221,38 @@ static void HelpMarker(const char* desc) } } -// Helper to wire demo markers located in code to a interactive browser +// Helper to wire demo markers located in code to an interactive browser typedef void (*ImGuiDemoMarkerCallback)(const char* file, int line, const char* section, void* user_data); -extern ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback; -extern void* GImGuiDemoMarkerCallbackUserData; -ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback = NULL; -void* GImGuiDemoMarkerCallbackUserData = NULL; +extern ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback; +extern void* GImGuiDemoMarkerCallbackUserData; +ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback = NULL; +void* GImGuiDemoMarkerCallbackUserData = NULL; #define IMGUI_DEMO_MARKER(section) do { if (GImGuiDemoMarkerCallback != NULL) GImGuiDemoMarkerCallback(__FILE__, __LINE__, section, GImGuiDemoMarkerCallbackUserData); } while (0) -// Helper to display basic user controls. -void ImGui::ShowUserGuide() -{ - ImGuiIO& io = ImGui::GetIO(); - ImGui::BulletText("Double-click on title bar to collapse window."); - ImGui::BulletText( - "Click and drag on lower corner to resize window\n" - "(double-click to auto fit window to its contents)."); - ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text."); - ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields."); - ImGui::BulletText("CTRL+Tab to select a window."); - if (io.FontAllowUserScaling) - ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents."); - ImGui::BulletText("While inputing text:\n"); - ImGui::Indent(); - ImGui::BulletText("CTRL+Left/Right to word jump."); - ImGui::BulletText("CTRL+A or double-click to select all."); - ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste."); - ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo."); - ImGui::BulletText("ESCAPE to revert."); - ImGui::BulletText("You can apply arithmetic operators +,*,/ on numerical values.\nUse +- to subtract."); - ImGui::Unindent(); - ImGui::BulletText("With keyboard navigation enabled:"); - ImGui::Indent(); - ImGui::BulletText("Arrow keys to navigate."); - ImGui::BulletText("Space to activate a widget."); - ImGui::BulletText("Return to input text into a widget."); - ImGui::BulletText("Escape to deactivate a widget, close popup, exit child window."); - ImGui::BulletText("Alt to jump to the menu layer of a window."); - ImGui::Unindent(); -} - //----------------------------------------------------------------------------- // [SECTION] Demo Window / ShowDemoWindow() //----------------------------------------------------------------------------- +// - ShowDemoWindow() // - ShowDemoWindowWidgets() // - ShowDemoWindowLayout() // - ShowDemoWindowPopups() // - ShowDemoWindowTables() // - ShowDemoWindowColumns() -// - ShowDemoWindowMisc() +// - ShowDemoWindowInputs() //----------------------------------------------------------------------------- -// We split the contents of the big ShowDemoWindow() function into smaller functions -// (because the link time of very large functions grow non-linearly) -static void ShowDemoWindowWidgets(); -static void ShowDemoWindowLayout(); -static void ShowDemoWindowPopups(); -static void ShowDemoWindowTables(); -static void ShowDemoWindowColumns(); -static void ShowDemoWindowMisc(); - // Demonstrate most Dear ImGui features (this is big function!) // You may execute this function to experiment with the UI and understand what it does. // You may then search for keywords in the code when you are interested by a specific feature. void ImGui::ShowDemoWindow(bool* p_open) { // Exceptionally add an extra assert here for people confused about initial Dear ImGui setup - // Most ImGui functions would normally just crash if the context is missing. + // Most functions would normally just crash if the context is missing. IM_ASSERT(ImGui::GetCurrentContext() != NULL && "Missing dear imgui context. Refer to examples app!"); // Examples Apps (accessible from the "Examples" menu) static bool show_app_main_menu_bar = false; static bool show_app_documents = false; - static bool show_app_console = false; static bool show_app_log = false; static bool show_app_layout = false; @@ -287,7 +267,6 @@ void ImGui::ShowDemoWindow(bool* p_open) if (show_app_main_menu_bar) ShowExampleAppMainMenuBar(); if (show_app_documents) ShowExampleAppDocuments(&show_app_documents); - if (show_app_console) ShowExampleAppConsole(&show_app_console); if (show_app_log) ShowExampleAppLog(&show_app_log); if (show_app_layout) ShowExampleAppLayout(&show_app_layout); @@ -300,15 +279,21 @@ void ImGui::ShowDemoWindow(bool* p_open) if (show_app_window_titles) ShowExampleAppWindowTitles(&show_app_window_titles); if (show_app_custom_rendering) ShowExampleAppCustomRendering(&show_app_custom_rendering); - // Dear ImGui Apps (accessible from the "Tools" menu) + // Dear ImGui Tools/Apps (accessible from the "Tools" menu) static bool show_app_metrics = false; + static bool show_app_debug_log = false; static bool show_app_stack_tool = false; - static bool show_app_style_editor = false; static bool show_app_about = false; + static bool show_app_style_editor = false; - if (show_app_metrics) { ImGui::ShowMetricsWindow(&show_app_metrics); } - if (show_app_stack_tool) { ImGui::ShowStackToolWindow(&show_app_stack_tool); } - if (show_app_about) { ImGui::ShowAboutWindow(&show_app_about); } + if (show_app_metrics) + ImGui::ShowMetricsWindow(&show_app_metrics); + if (show_app_debug_log) + ImGui::ShowDebugLogWindow(&show_app_debug_log); + if (show_app_stack_tool) + ImGui::ShowStackToolWindow(&show_app_stack_tool); + if (show_app_about) + ImGui::ShowAboutWindow(&show_app_about); if (show_app_style_editor) { ImGui::Begin("Dear ImGui Style Editor", &show_app_style_editor); @@ -357,10 +342,8 @@ void ImGui::ShowDemoWindow(bool* p_open) } // Most "big" widgets share a common width settings by default. See 'Demo->Layout->Widgets Width' for details. - // e.g. Use 2/3 of the space for widgets and 1/3 for labels (right align) //ImGui::PushItemWidth(-ImGui::GetWindowWidth() * 0.35f); - // e.g. Leave a fixed amount of width for labels (by passing a negative value), the rest goes to widgets. ImGui::PushItemWidth(ImGui::GetFontSize() * -12); @@ -395,10 +378,14 @@ void ImGui::ShowDemoWindow(bool* p_open) if (ImGui::BeginMenu("Tools")) { IMGUI_DEMO_MARKER("Menu/Tools"); -#ifndef IMGUI_DISABLE_METRICS_WINDOW - ImGui::MenuItem("Metrics/Debugger", NULL, &show_app_metrics); - ImGui::MenuItem("Stack Tool", NULL, &show_app_stack_tool); +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + const bool has_debug_tools = true; +#else + const bool has_debug_tools = false; #endif + ImGui::MenuItem("Metrics/Debugger", NULL, &show_app_metrics, has_debug_tools); + ImGui::MenuItem("Debug Log", NULL, &show_app_debug_log, has_debug_tools); + ImGui::MenuItem("Stack Tool", NULL, &show_app_stack_tool, has_debug_tools); ImGui::MenuItem("Style Editor", NULL, &show_app_style_editor); ImGui::MenuItem("About Dear ImGui", NULL, &show_app_about); ImGui::EndMenu(); @@ -406,7 +393,7 @@ void ImGui::ShowDemoWindow(bool* p_open) ImGui::EndMenuBar(); } - ImGui::Text("dear imgui says hello. (%s)", IMGUI_VERSION); + ImGui::Text("dear imgui says hello! (%s) (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); ImGui::Spacing(); IMGUI_DEMO_MARKER("Help"); @@ -454,13 +441,17 @@ void ImGui::ShowDemoWindow(bool* p_open) ImGui::SameLine(); ImGui::Text("<>"); } - if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Space))) + if (ImGui::IsKeyPressed(ImGuiKey_Space)) io.ConfigFlags &= ~ImGuiConfigFlags_NoMouse; } ImGui::CheckboxFlags("io.ConfigFlags: NoMouseCursorChange", &io.ConfigFlags, ImGuiConfigFlags_NoMouseCursorChange); ImGui::SameLine(); HelpMarker("Instruct backend to not alter mouse cursor shape and visibility."); + ImGui::Checkbox("io.ConfigInputTrickleEventQueue", &io.ConfigInputTrickleEventQueue); + ImGui::SameLine(); HelpMarker("Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates."); ImGui::Checkbox("io.ConfigInputTextCursorBlink", &io.ConfigInputTextCursorBlink); - ImGui::SameLine(); HelpMarker("Enable blinking cursor (optional as some users consider it to be distracting)"); + ImGui::SameLine(); HelpMarker("Enable blinking cursor (optional as some users consider it to be distracting)."); + ImGui::Checkbox("io.ConfigInputTextEnterKeepActive", &io.ConfigInputTextEnterKeepActive); + ImGui::SameLine(); HelpMarker("Pressing Enter will keep item active and select contents (single-line only)."); ImGui::Checkbox("io.ConfigDragClickToInputText", &io.ConfigDragClickToInputText); ImGui::SameLine(); HelpMarker("Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving)."); ImGui::Checkbox("io.ConfigWindowsResizeFromEdges", &io.ConfigWindowsResizeFromEdges); @@ -481,6 +472,7 @@ void ImGui::ShowDemoWindow(bool* p_open) "Here we expose them as read-only fields to avoid breaking interactions with your backend."); // Make a local copy to avoid modifying actual backend flags. + // FIXME: We don't use BeginDisabled() to keep label bright, maybe we need a BeginReadonly() equivalent.. ImGuiBackendFlags backend_flags = io.BackendFlags; ImGui::CheckboxFlags("io.BackendFlags: HasGamepad", &backend_flags, ImGuiBackendFlags_HasGamepad); ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &backend_flags, ImGuiBackendFlags_HasMouseCursors); @@ -544,7 +536,7 @@ void ImGui::ShowDemoWindow(bool* p_open) ShowDemoWindowLayout(); ShowDemoWindowPopups(); ShowDemoWindowTables(); - ShowDemoWindowMisc(); + ShowDemoWindowInputs(); // End of ShowDemoWindow() ImGui::PopItemWidth(); @@ -618,22 +610,6 @@ static void ShowDemoWindowWidgets() ImGui::SameLine(); ImGui::Text("%d", counter); - IMGUI_DEMO_MARKER("Widgets/Basic/Tooltips"); - ImGui::Text("Hover over me"); - if (ImGui::IsItemHovered()) - ImGui::SetTooltip("I am a tooltip"); - - ImGui::SameLine(); - ImGui::Text("- or me"); - if (ImGui::IsItemHovered()) - { - ImGui::BeginTooltip(); - ImGui::Text("I am a fancy tooltip"); - static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; - ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); - ImGui::EndTooltip(); - } - ImGui::Separator(); ImGui::LabelText("label", "Value"); @@ -658,7 +634,7 @@ static void ShowDemoWindowWidgets() "USER:\n" "Hold SHIFT or use mouse to select text.\n" "CTRL+Left/Right to word jump.\n" - "CTRL+A or double-click to select all.\n" + "CTRL+A or Double-Click to select all.\n" "CTRL+X,CTRL+C,CTRL+V clipboard.\n" "CTRL+Z,CTRL+Y undo/redo.\n" "ESCAPE to revert.\n\n" @@ -673,10 +649,6 @@ static void ShowDemoWindowWidgets() IMGUI_DEMO_MARKER("Widgets/Basic/InputInt, InputFloat"); static int i0 = 123; ImGui::InputInt("input int", &i0); - ImGui::SameLine(); HelpMarker( - "You can apply arithmetic operators +,*,/ on numerical values.\n" - " e.g. [ 100 ], input \'*2\', result becomes [ 200 ]\n" - "Use +- to subtract."); static float f0 = 0.001f; ImGui::InputFloat("input float", &f0, 0.01f, 1.0f, "%.3f"); @@ -761,6 +733,40 @@ static void ShowDemoWindowWidgets() "Using the simplified one-liner ListBox API here.\nRefer to the \"List boxes\" section below for an explanation of how to use the more flexible and general BeginListBox/EndListBox API."); } + { + // Tooltips + IMGUI_DEMO_MARKER("Widgets/Basic/Tooltips"); + ImGui::AlignTextToFramePadding(); + ImGui::Text("Tooltips:"); + + ImGui::SameLine(); + ImGui::Button("Button"); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("I am a tooltip"); + + ImGui::SameLine(); + ImGui::Button("Fancy"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::Text("I am a fancy tooltip"); + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); + ImGui::Text("Sin(time) = %f", sinf((float)ImGui::GetTime())); + ImGui::EndTooltip(); + } + + ImGui::SameLine(); + ImGui::Button("Delayed"); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal)) // Delay best used on items that highlight on hover, so this not a great example! + ImGui::SetTooltip("I am a tooltip with a delay."); + + ImGui::SameLine(); + HelpMarker( + "Tooltip are created by using the IsItemHovered() function over any kind of item."); + + } + ImGui::TreePop(); } @@ -979,7 +985,7 @@ static void ShowDemoWindowWidgets() // Note that characters values are preserved even by InputText() if the font cannot be displayed, // so you can safely copy & paste garbled characters into another application. ImGui::TextWrapped( - "CJK text will only appears if the font was loaded with the appropriate CJK character ranges. " + "CJK text will only appear if the font was loaded with the appropriate CJK character ranges. " "Call io.Fonts->AddFontFromFileTTF() manually to load extra character ranges. " "Read docs/FONTS.md for details."); ImGui::Text("Hiragana: \xe3\x81\x8b\xe3\x81\x8d\xe3\x81\x8f\xe3\x81\x91\xe3\x81\x93 (kakikukeko)"); // Normally we would use u8"blah blah" with the proper characters directly in the string. @@ -1052,15 +1058,21 @@ static void ShowDemoWindowWidgets() static int pressed_count = 0; for (int i = 0; i < 8; i++) { + // UV coordinates are often (0.0f, 0.0f) and (1.0f, 1.0f) to display an entire textures. + // Here are trying to display only a 32x32 pixels area of the texture, hence the UV computation. + // Read about UV coordinates here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples ImGui::PushID(i); - int frame_padding = -1 + i; // -1 == uses default padding (style.FramePadding) - ImVec2 size = ImVec2(32.0f, 32.0f); // Size of the image we want to make visible - ImVec2 uv0 = ImVec2(0.0f, 0.0f); // UV coordinates for lower-left - ImVec2 uv1 = ImVec2(32.0f / my_tex_w, 32.0f / my_tex_h);// UV coordinates for (32,32) in our texture - ImVec4 bg_col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); // Black background - ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint - if (ImGui::ImageButton(my_tex_id, size, uv0, uv1, frame_padding, bg_col, tint_col)) + if (i > 0) + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(i - 1.0f, i - 1.0f)); + ImVec2 size = ImVec2(32.0f, 32.0f); // Size of the image we want to make visible + ImVec2 uv0 = ImVec2(0.0f, 0.0f); // UV coordinates for lower-left + ImVec2 uv1 = ImVec2(32.0f / my_tex_w, 32.0f / my_tex_h); // UV coordinates for (32,32) in our texture + ImVec4 bg_col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); // Black background + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + if (ImGui::ImageButton("", my_tex_id, size, uv0, uv1, bg_col, tint_col)) pressed_count += 1; + if (i > 0) + ImGui::PopStyleVar(); ImGui::PopID(); ImGui::SameLine(); } @@ -1072,6 +1084,7 @@ static void ShowDemoWindowWidgets() IMGUI_DEMO_MARKER("Widgets/Combo"); if (ImGui::TreeNode("Combo")) { + // Combo Boxes are also called "Dropdown" in other systems // Expose flags as checkbox for the demo static ImGuiComboFlags flags = 0; ImGui::CheckboxFlags("ImGuiComboFlags_PopupAlignLeft", &flags, ImGuiComboFlags_PopupAlignLeft); @@ -1436,7 +1449,7 @@ static void ShowDemoWindowWidgets() static char buf3[64]; static int edit_count = 0; ImGui::InputText("Edit", buf3, 64, ImGuiInputTextFlags_CallbackEdit, Funcs::MyCallback, (void*)&edit_count); - ImGui::SameLine(); HelpMarker("Here we toggle the casing of the first character on every edits + count edits."); + ImGui::SameLine(); HelpMarker("Here we toggle the casing of the first character on every edit + count edits."); ImGui::SameLine(); ImGui::Text("(%d)", edit_count); ImGui::TreePop(); @@ -1856,10 +1869,9 @@ static void ShowDemoWindowWidgets() ImGui::Combo("Display Mode", &display_mode, "Auto/Current\0None\0RGB Only\0HSV Only\0Hex Only\0"); ImGui::SameLine(); HelpMarker( "ColorEdit defaults to displaying RGB inputs if you don't specify a display mode, " - "but the user can change it with a right-click.\n\nColorPicker defaults to displaying RGB+HSV+Hex " + "but the user can change it with a right-click on those inputs.\n\nColorPicker defaults to displaying RGB+HSV+Hex " "if you don't specify a display mode.\n\nYou can change the defaults using SetColorEditOptions()."); - ImGui::Combo("Picker Mode", &picker_mode, "Auto/Current\0Hue bar + SV rect\0Hue wheel + SV triangle\0"); - ImGui::SameLine(); HelpMarker("User can right-click the picker to change mode."); + ImGui::SameLine(); HelpMarker("When not specified explicitly (Auto/Current mode), user can right-click the picker to change mode."); ImGuiColorEditFlags flags = misc_flags; if (!alpha) flags |= ImGuiColorEditFlags_NoAlpha; // This is by default if you call ColorPicker3() instead of ColorPicker4() if (alpha_bar) flags |= ImGuiColorEditFlags_AlphaBar; @@ -1883,6 +1895,15 @@ static void ShowDemoWindowWidgets() if (ImGui::Button("Default: Float + HDR + Hue Wheel")) ImGui::SetColorEditOptions(ImGuiColorEditFlags_Float | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_PickerHueWheel); + // Always both a small version of both types of pickers (to make it more visible in the demo to people who are skimming quickly through it) + ImGui::Text("Both types:"); + float w = (ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.y) * 0.40f; + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##5", (float*)&color, ImGuiColorEditFlags_PickerHueBar | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + ImGui::SameLine(); + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##6", (float*)&color, ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + // HSV encoded support (to avoid RGB<>HSV round trips and singularities when S==0 or V==0) static ImVec4 color_hsv(0.23f, 1.0f, 1.0f, 1.0f); // Stored as HSV! ImGui::Spacing(); @@ -1953,7 +1974,7 @@ static void ShowDemoWindowWidgets() // - integer/float/double // To avoid polluting the public API with all possible combinations, we use the ImGuiDataType enum // to pass the type, and passing all arguments by pointer. - // This is the reason the test code below creates local variables to hold "zero" "one" etc. for each types. + // This is the reason the test code below creates local variables to hold "zero" "one" etc. for each type. // In practice, if you frequently use a given type that is not covered by the normal API entry points, // you can wrap it yourself inside a 1 line function which can take typed argument as value instead of void*, // and then pass their address to the generic function. For example: @@ -1998,13 +2019,14 @@ static void ShowDemoWindowWidgets() ImGui::Text("Drags:"); ImGui::Checkbox("Clamp integers to 0..50", &drag_clamp); ImGui::SameLine(); HelpMarker( - "As with every widgets in dear imgui, we never modify values unless there is a user interaction.\n" + "As with every widget in dear imgui, we never modify values unless there is a user interaction.\n" "You can override the clamping limits by using CTRL+Click to input a value."); ImGui::DragScalar("drag s8", ImGuiDataType_S8, &s8_v, drag_speed, drag_clamp ? &s8_zero : NULL, drag_clamp ? &s8_fifty : NULL); ImGui::DragScalar("drag u8", ImGuiDataType_U8, &u8_v, drag_speed, drag_clamp ? &u8_zero : NULL, drag_clamp ? &u8_fifty : NULL, "%u ms"); ImGui::DragScalar("drag s16", ImGuiDataType_S16, &s16_v, drag_speed, drag_clamp ? &s16_zero : NULL, drag_clamp ? &s16_fifty : NULL); ImGui::DragScalar("drag u16", ImGuiDataType_U16, &u16_v, drag_speed, drag_clamp ? &u16_zero : NULL, drag_clamp ? &u16_fifty : NULL, "%u ms"); ImGui::DragScalar("drag s32", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL); + ImGui::DragScalar("drag s32 hex", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL, "0x%08X"); ImGui::DragScalar("drag u32", ImGuiDataType_U32, &u32_v, drag_speed, drag_clamp ? &u32_zero : NULL, drag_clamp ? &u32_fifty : NULL, "%u ms"); ImGui::DragScalar("drag s64", ImGuiDataType_S64, &s64_v, drag_speed, drag_clamp ? &s64_zero : NULL, drag_clamp ? &s64_fifty : NULL); ImGui::DragScalar("drag u64", ImGuiDataType_U64, &u64_v, drag_speed, drag_clamp ? &u64_zero : NULL, drag_clamp ? &u64_fifty : NULL); @@ -2022,6 +2044,7 @@ static void ShowDemoWindowWidgets() ImGui::SliderScalar("slider s32 low", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty,"%d"); ImGui::SliderScalar("slider s32 high", ImGuiDataType_S32, &s32_v, &s32_hi_a, &s32_hi_b, "%d"); ImGui::SliderScalar("slider s32 full", ImGuiDataType_S32, &s32_v, &s32_min, &s32_max, "%d"); + ImGui::SliderScalar("slider s32 hex", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty, "0x%04X"); ImGui::SliderScalar("slider u32 low", ImGuiDataType_U32, &u32_v, &u32_zero, &u32_fifty,"%u"); ImGui::SliderScalar("slider u32 high", ImGuiDataType_U32, &u32_v, &u32_hi_a, &u32_hi_b, "%u"); ImGui::SliderScalar("slider u32 full", ImGuiDataType_U32, &u32_v, &u32_min, &u32_max, "%u"); @@ -2055,9 +2078,9 @@ static void ShowDemoWindowWidgets() ImGui::InputScalar("input s16", ImGuiDataType_S16, &s16_v, inputs_step ? &s16_one : NULL, NULL, "%d"); ImGui::InputScalar("input u16", ImGuiDataType_U16, &u16_v, inputs_step ? &u16_one : NULL, NULL, "%u"); ImGui::InputScalar("input s32", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%d"); - ImGui::InputScalar("input s32 hex", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%08X", ImGuiInputTextFlags_CharsHexadecimal); + ImGui::InputScalar("input s32 hex", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%04X"); ImGui::InputScalar("input u32", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%u"); - ImGui::InputScalar("input u32 hex", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%08X", ImGuiInputTextFlags_CharsHexadecimal); + ImGui::InputScalar("input u32 hex", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%08X"); ImGui::InputScalar("input s64", ImGuiDataType_S64, &s64_v, inputs_step ? &s64_one : NULL); ImGui::InputScalar("input u64", ImGuiDataType_U64, &u64_v, inputs_step ? &u64_one : NULL); ImGui::InputScalar("input float", ImGuiDataType_Float, &f32_v, inputs_step ? &f32_one : NULL); @@ -2295,7 +2318,7 @@ static void ShowDemoWindowWidgets() HelpMarker("Testing how various types of items are interacting with the IsItemXXX functions. Note that the bool return value of most ImGui function is generally equivalent to calling ImGui::IsItemHovered()."); ImGui::Checkbox("Item Disabled", &item_disabled); - // Submit selected item item so we can query their status in the code following it. + // Submit selected items so we can query their status in the code following it. bool ret = false; static bool b = false; static float col4f[4] = { 1.0f, 0.5, 0.0f, 1.0f }; @@ -2319,6 +2342,10 @@ static void ShowDemoWindowWidgets() if (item_type == 14){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::Combo("ITEM: Combo", ¤t, items, IM_ARRAYSIZE(items)); } if (item_type == 15){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::ListBox("ITEM: ListBox", ¤t, items, IM_ARRAYSIZE(items), IM_ARRAYSIZE(items)); } + bool hovered_delay_none = ImGui::IsItemHovered(); + bool hovered_delay_short = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort); + bool hovered_delay_normal = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal); + // Display the values of IsItemHovered() and other common item state functions. // Note that the ImGuiHoveredFlags_XXX flags can be combined. // Because BulletText is an item itself and that would affect the output of IsItemXXX functions, @@ -2363,6 +2390,8 @@ static void ShowDemoWindowWidgets() ImGui::GetItemRectMax().x, ImGui::GetItemRectMax().y, ImGui::GetItemRectSize().x, ImGui::GetItemRectSize().y ); + ImGui::BulletText( + "w/ Hovering Delay: None = %d, Fast %d, Normal = %d", hovered_delay_none, hovered_delay_short, hovered_delay_normal); if (item_disabled) ImGui::EndDisabled(); @@ -2467,6 +2496,26 @@ static void ShowDemoWindowWidgets() ImGui::SameLine(); HelpMarker("Demonstrate using BeginDisabled()/EndDisabled() across this section."); ImGui::TreePop(); } + + IMGUI_DEMO_MARKER("Widgets/Text Filter"); + if (ImGui::TreeNode("Text Filter")) + { + // Helper class to easy setup a text filter. + // You may want to implement a more feature-full filtering scheme in your own application. + HelpMarker("Not a widget per-se, but ImGuiTextFilter is a helper to perform simple filtering on text strings."); + static ImGuiTextFilter filter; + ImGui::Text("Filter usage:\n" + " \"\" display all lines\n" + " \"xxx\" display lines containing \"xxx\"\n" + " \"xxx,yyy\" display lines containing \"xxx\" or \"yyy\"\n" + " \"-xxx\" hide lines containing \"xxx\""); + filter.Draw(); + const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" }; + for (int i = 0; i < IM_ARRAYSIZE(lines); i++) + if (filter.PassFilter(lines[i])) + ImGui::BulletText("%s", lines[i]); + ImGui::TreePop(); + } } static void ShowDemoWindowLayout() @@ -3193,59 +3242,58 @@ static void ShowDemoWindowLayout() ImGui::DragFloat2("size", (float*)&size, 0.5f, 1.0f, 200.0f, "%.0f"); ImGui::TextWrapped("(Click and drag to scroll)"); + HelpMarker( + "(Left) Using ImGui::PushClipRect():\n" + "Will alter ImGui hit-testing logic + ImDrawList rendering.\n" + "(use this if you want your clipping rectangle to affect interactions)\n\n" + "(Center) Using ImDrawList::PushClipRect():\n" + "Will alter ImDrawList rendering only.\n" + "(use this as a shortcut if you are only using ImDrawList calls)\n\n" + "(Right) Using ImDrawList::AddText() with a fine ClipRect:\n" + "Will alter only this specific ImDrawList::AddText() rendering.\n" + "This is often used internally to avoid altering the clipping rectangle and minimize draw calls."); + for (int n = 0; n < 3; n++) { if (n > 0) ImGui::SameLine(); - ImGui::PushID(n); - ImGui::BeginGroup(); // Lock X position - ImGui::InvisibleButton("##empty", size); + ImGui::PushID(n); + ImGui::InvisibleButton("##canvas", size); if (ImGui::IsItemActive() && ImGui::IsMouseDragging(ImGuiMouseButton_Left)) { offset.x += ImGui::GetIO().MouseDelta.x; offset.y += ImGui::GetIO().MouseDelta.y; } + ImGui::PopID(); + if (!ImGui::IsItemVisible()) // Skip rendering as ImDrawList elements are not clipped. + continue; + const ImVec2 p0 = ImGui::GetItemRectMin(); const ImVec2 p1 = ImGui::GetItemRectMax(); const char* text_str = "Line 1 hello\nLine 2 clip me!"; const ImVec2 text_pos = ImVec2(p0.x + offset.x, p0.y + offset.y); ImDrawList* draw_list = ImGui::GetWindowDrawList(); - switch (n) { case 0: - HelpMarker( - "Using ImGui::PushClipRect():\n" - "Will alter ImGui hit-testing logic + ImDrawList rendering.\n" - "(use this if you want your clipping rectangle to affect interactions)"); ImGui::PushClipRect(p0, p1, true); draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); ImGui::PopClipRect(); break; case 1: - HelpMarker( - "Using ImDrawList::PushClipRect():\n" - "Will alter ImDrawList rendering only.\n" - "(use this as a shortcut if you are only using ImDrawList calls)"); draw_list->PushClipRect(p0, p1, true); draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); draw_list->PopClipRect(); break; case 2: - HelpMarker( - "Using ImDrawList::AddText() with a fine ClipRect:\n" - "Will alter only this specific ImDrawList::AddText() rendering.\n" - "(this is often used internally to avoid altering the clipping rectangle and minimize draw calls)"); ImVec4 clip_rect(p0.x, p0.y, p1.x, p1.y); // AddText() takes a ImVec4* here so let's convert. draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); draw_list->AddText(ImGui::GetFont(), ImGui::GetFontSize(), text_pos, IM_COL32_WHITE, text_str, NULL, 0.0f, &clip_rect); break; } - ImGui::EndGroup(); - ImGui::PopID(); } ImGui::TreePop(); @@ -3382,7 +3430,7 @@ static void ShowDemoWindowPopups() // if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) // OpenPopup(id); // return BeginPopup(id); - // For advanced advanced uses you may want to replicate and customize this code. + // For advanced uses you may want to replicate and customize this code. // See more details in BeginPopupContextItem(). // Example 1 @@ -3411,7 +3459,7 @@ static void ShowDemoWindowPopups() { HelpMarker("Text() elements don't have stable identifiers so we need to provide one."); static float value = 0.5f; - ImGui::Text("Value = %.3f <-- (1) right-click this value", value); + ImGui::Text("Value = %.3f <-- (1) right-click this text", value); if (ImGui::BeginPopupContextItem("my popup")) { if (ImGui::Selectable("Set to zero")) value = 0.0f; @@ -3538,26 +3586,19 @@ static void ShowDemoWindowPopups() ImGui::TextWrapped("Below we are testing adding menu items to a regular window. It's rather unusual but should work!"); ImGui::Separator(); - // Note: As a quirk in this very specific example, we want to differentiate the parent of this menu from the - // parent of the various popup menus above. To do so we are encloding the items in a PushID()/PopID() block - // to make them two different menusets. If we don't, opening any popup above and hovering our menu here would - // open it. This is because once a menu is active, we allow to switch to a sibling menu by just hovering on it, - // which is the desired behavior for regular menus. - ImGui::PushID("foo"); ImGui::MenuItem("Menu item", "CTRL+M"); if (ImGui::BeginMenu("Menu inside a regular window")) { ShowExampleMenuFile(); ImGui::EndMenu(); } - ImGui::PopID(); ImGui::Separator(); ImGui::TreePop(); } } // Dummy data structure that we use for the Table demo. -// (pre-C++11 doesn't allow us to instantiate ImVector template if this structure if defined inside the demo function) +// (pre-C++11 doesn't allow us to instantiate ImVector template if this structure is defined inside the demo function) namespace { // We are passing our own identifier to TableSetupColumn() to facilitate identifying columns in the sorting code. @@ -3776,7 +3817,7 @@ static void ShowDemoWindowTables() } // [Method 2] Using TableNextColumn() called multiple times, instead of using a for loop + TableSetColumnIndex(). - // This is generally more convenient when you have code manually submitting the contents of each columns. + // This is generally more convenient when you have code manually submitting the contents of each column. HelpMarker("Using TableNextRow() + calling TableNextColumn() _before_ each cell, manually."); if (ImGui::BeginTable("table2", 3)) { @@ -3794,10 +3835,10 @@ static void ShowDemoWindowTables() } // [Method 3] We call TableNextColumn() _before_ each cell. We never call TableNextRow(), - // as TableNextColumn() will automatically wrap around and create new roes as needed. + // as TableNextColumn() will automatically wrap around and create new rows as needed. // This is generally more convenient when your cells all contains the same type of data. HelpMarker( - "Only using TableNextColumn(), which tends to be convenient for tables where every cells contains the same type of contents.\n" + "Only using TableNextColumn(), which tends to be convenient for tables where every cell contains the same type of contents.\n" "This is also more similar to the old NextColumn() function of the Columns API, and provided to facilitate the Columns->Tables API transition."); if (ImGui::BeginTable("table3", 3)) { @@ -3849,7 +3890,7 @@ static void ShowDemoWindowTables() ImGui::SameLine(); ImGui::RadioButton("Text", &contents_type, CT_Text); ImGui::SameLine(); ImGui::RadioButton("FillButton", &contents_type, CT_FillButton); ImGui::Checkbox("Display headers", &display_headers); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appears in Headers"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); PopStyleCompact(); if (ImGui::BeginTable("table1", 3, flags)) @@ -3874,7 +3915,7 @@ static void ShowDemoWindowTables() sprintf(buf, "Hello %d,%d", column, row); if (contents_type == CT_Text) ImGui::TextUnformatted(buf); - else if (contents_type) + else if (contents_type == CT_FillButton) ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); } } @@ -3888,8 +3929,8 @@ static void ShowDemoWindowTables() IMGUI_DEMO_MARKER("Tables/Resizable, stretch"); if (ImGui::TreeNode("Resizable, stretch")) { - // By default, if we don't enable ScrollX the sizing policy for each columns is "Stretch" - // Each columns maintain a sizing weight, and they will occupy all available width. + // By default, if we don't enable ScrollX the sizing policy for each column is "Stretch" + // All columns maintain a sizing weight, and they will occupy all available width. static ImGuiTableFlags flags = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; PushStyleCompact(); ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); @@ -4011,7 +4052,7 @@ static void ShowDemoWindowTables() ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); PopStyleCompact(); if (ImGui::BeginTable("table1", 3, flags)) @@ -4069,7 +4110,7 @@ static void ShowDemoWindowTables() "- any form of row selection\n" "Because of this, activating BorderOuterV sets the default to PadOuterX. Using PadOuterX or NoPadOuterX you can override the default.\n\n" "Actual padding values are using style.CellPadding.\n\n" - "In this demo we don't show horizontal borders to emphasis how they don't affect default horizontal padding."); + "In this demo we don't show horizontal borders to emphasize how they don't affect default horizontal padding."); static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV; PushStyleCompact(); @@ -4418,14 +4459,16 @@ static void ShowDemoWindowTables() { ImGui::TableNextColumn(); ImGui::PushID(column); - ImGui::AlignTextToFramePadding(); // FIXME-TABLE: Workaround for wrong text baseline propagation + ImGui::AlignTextToFramePadding(); // FIXME-TABLE: Workaround for wrong text baseline propagation across columns ImGui::Text("'%s'", column_names[column]); ImGui::Spacing(); ImGui::Text("Input flags:"); EditTableColumnsFlags(&column_flags[column]); ImGui::Spacing(); ImGui::Text("Output flags:"); + ImGui::BeginDisabled(); ShowTableColumnsStatusFlags(column_flags_out[column]); + ImGui::EndDisabled(); ImGui::PopID(); } PopStyleCompact(); @@ -4536,7 +4579,7 @@ static void ShowDemoWindowTables() IMGUI_DEMO_MARKER("Tables/Nested tables"); if (ImGui::TreeNode("Nested tables")) { - HelpMarker("This demonstrate embedding a table into another table cell."); + HelpMarker("This demonstrates embedding a table into another table cell."); if (ImGui::BeginTable("table_nested1", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) { @@ -4581,7 +4624,7 @@ static void ShowDemoWindowTables() IMGUI_DEMO_MARKER("Tables/Row height"); if (ImGui::TreeNode("Row height")) { - HelpMarker("You can pass a 'min_row_height' to TableNextRow().\n\nRows are padded with 'style.CellPadding.y' on top and bottom, so effectively the minimum row height will always be >= 'style.CellPadding.y * 2.0f'.\n\nWe cannot honor a _maximum_ row height as that would requires a unique clipping rectangle per row."); + HelpMarker("You can pass a 'min_row_height' to TableNextRow().\n\nRows are padded with 'style.CellPadding.y' on top and bottom, so effectively the minimum row height will always be >= 'style.CellPadding.y * 2.0f'.\n\nWe cannot honor a _maximum_ row height as that would require a unique clipping rectangle per row."); if (ImGui::BeginTable("table_row_height", 1, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersInnerV)) { for (int row = 0; row < 10; row++) @@ -4830,7 +4873,7 @@ static void ShowDemoWindowTables() ImGui::TableSetColumnIndex(1); ImGui::SliderFloat("float1", &dummy_f, 0.0f, 1.0f); ImGui::TableSetColumnIndex(2); - ImGui::SliderFloat("float2", &dummy_f, 0.0f, 1.0f); + ImGui::SliderFloat("##float2", &dummy_f, 0.0f, 1.0f); // No visible label since right-aligned ImGui::PopID(); } ImGui::EndTable(); @@ -5143,7 +5186,7 @@ static void ShowDemoWindowTables() static bool show_headers = true; static bool show_wrapped_text = false; //static ImGuiTextFilter filter; - //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // FIXME-TABLE: Enabling this results in initial clipped first pass on table which tend to affects column sizing + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // FIXME-TABLE: Enabling this results in initial clipped first pass on table which tend to affect column sizing if (ImGui::TreeNode("Options")) { // Make the UI compact because there are so many fields @@ -5170,8 +5213,8 @@ static void ShowDemoWindowTables() ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appears in Headers"); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); ImGui::TreePop(); } @@ -5234,7 +5277,7 @@ static void ShowDemoWindowTables() HelpMarker("If scrolling is disabled (ScrollX and ScrollY not set):\n" "- The table is output directly in the parent window.\n" "- OuterSize.x < 0.0f will right-align the table.\n" - "- OuterSize.x = 0.0f will narrow fit the table unless there are any Stretch column.\n" + "- OuterSize.x = 0.0f will narrow fit the table unless there are any Stretch columns.\n" "- OuterSize.y then becomes the minimum size for the table, which will extend vertically if there are more rows (unless NoHostExtendY is set)."); // From a user point of view we will tend to use 'inner_width' differently depending on whether our table is embedding scrolling. @@ -5639,38 +5682,28 @@ static void ShowDemoWindowColumns() ImGui::TreePop(); } -static void ShowDemoWindowMisc() -{ - IMGUI_DEMO_MARKER("Filtering"); - if (ImGui::CollapsingHeader("Filtering")) - { - // Helper class to easy setup a text filter. - // You may want to implement a more feature-full filtering scheme in your own application. - static ImGuiTextFilter filter; - ImGui::Text("Filter usage:\n" - " \"\" display all lines\n" - " \"xxx\" display lines containing \"xxx\"\n" - " \"xxx,yyy\" display lines containing \"xxx\" or \"yyy\"\n" - " \"-xxx\" hide lines containing \"xxx\""); - filter.Draw(); - const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" }; - for (int i = 0; i < IM_ARRAYSIZE(lines); i++) - if (filter.PassFilter(lines[i])) - ImGui::BulletText("%s", lines[i]); - } +namespace ImGui { extern ImGuiKeyData* GetKeyData(ImGuiKey key); } +static void ShowDemoWindowInputs() +{ IMGUI_DEMO_MARKER("Inputs, Navigation & Focus"); if (ImGui::CollapsingHeader("Inputs, Navigation & Focus")) { ImGuiIO& io = ImGui::GetIO(); // Display ImGuiIO output flags - ImGui::Text("WantCaptureMouse: %d", io.WantCaptureMouse); - ImGui::Text("WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); - ImGui::Text("WantCaptureKeyboard: %d", io.WantCaptureKeyboard); - ImGui::Text("WantTextInput: %d", io.WantTextInput); - ImGui::Text("WantSetMousePos: %d", io.WantSetMousePos); - ImGui::Text("NavActive: %d, NavVisible: %d", io.NavActive, io.NavVisible); + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Output"); + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + if (ImGui::TreeNode("Output")) + { + ImGui::Text("io.WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("io.WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); + ImGui::Text("io.WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + ImGui::Text("io.WantTextInput: %d", io.WantTextInput); + ImGui::Text("io.WantSetMousePos: %d", io.WantSetMousePos); + ImGui::Text("io.NavActive: %d, io.NavVisible: %d", io.NavActive, io.NavVisible); + ImGui::TreePop(); + } // Display Mouse state IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse State"); @@ -5691,26 +5724,138 @@ static void ShowDemoWindowMisc() ImGui::TreePop(); } - // Display Keyboard/Mouse state - IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Keyboard & Navigation State"); - if (ImGui::TreeNode("Keyboard & Navigation State")) + // Display mouse cursors + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse Cursors"); + if (ImGui::TreeNode("Mouse Cursors")) { - ImGui::Text("Keys down:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyDown(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X) (%.02f secs)", i, i, io.KeysDownDuration[i]); } - ImGui::Text("Keys pressed:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyPressed(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X)", i, i); } - ImGui::Text("Keys release:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyReleased(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X)", i, i); } + const char* mouse_cursors_names[] = { "Arrow", "TextInput", "ResizeAll", "ResizeNS", "ResizeEW", "ResizeNESW", "ResizeNWSE", "Hand", "NotAllowed" }; + IM_ASSERT(IM_ARRAYSIZE(mouse_cursors_names) == ImGuiMouseCursor_COUNT); + + ImGuiMouseCursor current = ImGui::GetMouseCursor(); + ImGui::Text("Current mouse cursor = %d: %s", current, mouse_cursors_names[current]); + ImGui::BeginDisabled(true); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &io.BackendFlags, ImGuiBackendFlags_HasMouseCursors); + ImGui::EndDisabled(); + + ImGui::Text("Hover to see mouse cursors:"); + ImGui::SameLine(); HelpMarker( + "Your application can render a different mouse cursor based on what ImGui::GetMouseCursor() returns. " + "If software cursor rendering (io.MouseDrawCursor) is set ImGui will draw the right cursor for you, " + "otherwise your backend needs to handle it."); + for (int i = 0; i < ImGuiMouseCursor_COUNT; i++) + { + char label[32]; + sprintf(label, "Mouse cursor %d: %s", i, mouse_cursors_names[i]); + ImGui::Bullet(); ImGui::Selectable(label, false); + if (ImGui::IsItemHovered()) + ImGui::SetMouseCursor(i); + } + ImGui::TreePop(); + } + + // Display Keyboard/Mouse state + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Keyboard, Gamepad & Navigation State"); + if (ImGui::TreeNode("Keyboard, Gamepad & Navigation State")) + { + // We iterate both legacy native range and named ImGuiKey ranges, which is a little odd but this allows displaying the data for old/new backends. + // User code should never have to go through such hoops: old code may use native keycodes, new code may use ImGuiKey codes. +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey) { return false; } }; + const ImGuiKey key_first = (ImGuiKey)ImGuiKey_NamedKey_BEGIN; +#else + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey key) { return key < 512 && ImGui::GetIO().KeyMap[key] != -1; } }; // Hide Native<>ImGuiKey duplicates when both exists in the array + const ImGuiKey key_first = (ImGuiKey)0; + //ImGui::Text("Legacy raw:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key++) { if (io.KeysDown[key]) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } +#endif + ImGui::Text("Keys down:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyDown(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d (%.02f)", ImGui::GetKeyName(key), key, ImGui::GetKeyData(key)->DownDuration); } } + ImGui::Text("Keys pressed:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyPressed(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } + ImGui::Text("Keys released:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyReleased(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } ImGui::Text("Keys mods: %s%s%s%s", io.KeyCtrl ? "CTRL " : "", io.KeyShift ? "SHIFT " : "", io.KeyAlt ? "ALT " : "", io.KeySuper ? "SUPER " : ""); ImGui::Text("Chars queue:"); for (int i = 0; i < io.InputQueueCharacters.Size; i++) { ImWchar c = io.InputQueueCharacters[i]; ImGui::SameLine(); ImGui::Text("\'%c\' (0x%04X)", (c > ' ' && c <= 255) ? (char)c : '?', c); } // FIXME: We should convert 'c' to UTF-8 here but the functions are not public. - ImGui::Text("NavInputs down:"); for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) if (io.NavInputs[i] > 0.0f) { ImGui::SameLine(); ImGui::Text("[%d] %.2f (%.02f secs)", i, io.NavInputs[i], io.NavInputsDownDuration[i]); } - ImGui::Text("NavInputs pressed:"); for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) if (io.NavInputsDownDuration[i] == 0.0f) { ImGui::SameLine(); ImGui::Text("[%d]", i); } + // Draw an arbitrary US keyboard layout to visualize translated keys + { + const ImVec2 key_size = ImVec2(35.0f, 35.0f); + const float key_rounding = 3.0f; + const ImVec2 key_face_size = ImVec2(25.0f, 25.0f); + const ImVec2 key_face_pos = ImVec2(5.0f, 3.0f); + const float key_face_rounding = 2.0f; + const ImVec2 key_label_pos = ImVec2(7.0f, 4.0f); + const ImVec2 key_step = ImVec2(key_size.x - 1.0f, key_size.y - 1.0f); + const float key_row_offset = 9.0f; + + ImVec2 board_min = ImGui::GetCursorScreenPos(); + ImVec2 board_max = ImVec2(board_min.x + 3 * key_step.x + 2 * key_row_offset + 10.0f, board_min.y + 3 * key_step.y + 10.0f); + ImVec2 start_pos = ImVec2(board_min.x + 5.0f - key_step.x, board_min.y); + + struct KeyLayoutData { int Row, Col; const char* Label; ImGuiKey Key; }; + const KeyLayoutData keys_to_display[] = + { + { 0, 0, "", ImGuiKey_Tab }, { 0, 1, "Q", ImGuiKey_Q }, { 0, 2, "W", ImGuiKey_W }, { 0, 3, "E", ImGuiKey_E }, { 0, 4, "R", ImGuiKey_R }, + { 1, 0, "", ImGuiKey_CapsLock }, { 1, 1, "A", ImGuiKey_A }, { 1, 2, "S", ImGuiKey_S }, { 1, 3, "D", ImGuiKey_D }, { 1, 4, "F", ImGuiKey_F }, + { 2, 0, "", ImGuiKey_LeftShift },{ 2, 1, "Z", ImGuiKey_Z }, { 2, 2, "X", ImGuiKey_X }, { 2, 3, "C", ImGuiKey_C }, { 2, 4, "V", ImGuiKey_V } + }; + + // Elements rendered manually via ImDrawList API are not clipped automatically. + // While not strictly necessary, here IsItemVisible() is used to avoid rendering these shapes when they are out of view. + ImGui::Dummy(ImVec2(board_max.x - board_min.x, board_max.y - board_min.y)); + if (ImGui::IsItemVisible()) + { + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + draw_list->PushClipRect(board_min, board_max, true); + for (int n = 0; n < IM_ARRAYSIZE(keys_to_display); n++) + { + const KeyLayoutData* key_data = &keys_to_display[n]; + ImVec2 key_min = ImVec2(start_pos.x + key_data->Col * key_step.x + key_data->Row * key_row_offset, start_pos.y + key_data->Row * key_step.y); + ImVec2 key_max = ImVec2(key_min.x + key_size.x, key_min.y + key_size.y); + draw_list->AddRectFilled(key_min, key_max, IM_COL32(204, 204, 204, 255), key_rounding); + draw_list->AddRect(key_min, key_max, IM_COL32(24, 24, 24, 255), key_rounding); + ImVec2 face_min = ImVec2(key_min.x + key_face_pos.x, key_min.y + key_face_pos.y); + ImVec2 face_max = ImVec2(face_min.x + key_face_size.x, face_min.y + key_face_size.y); + draw_list->AddRect(face_min, face_max, IM_COL32(193, 193, 193, 255), key_face_rounding, ImDrawFlags_None, 2.0f); + draw_list->AddRectFilled(face_min, face_max, IM_COL32(252, 252, 252, 255), key_face_rounding); + ImVec2 label_min = ImVec2(key_min.x + key_label_pos.x, key_min.y + key_label_pos.y); + draw_list->AddText(label_min, IM_COL32(64, 64, 64, 255), key_data->Label); + if (ImGui::IsKeyDown(key_data->Key)) + draw_list->AddRectFilled(key_min, key_max, IM_COL32(255, 0, 0, 128), key_rounding); + } + draw_list->PopClipRect(); + } + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Capture override")) + { + HelpMarker( + "The value of io.WantCaptureMouse and io.WantCaptureKeyboard are normally set by Dear ImGui " + "to instruct your application of how to route inputs. Typically, when a value is true, it means " + "Dear ImGui wants the corresponding inputs and we expect the underlying application to ignore them.\n\n" + "The most typical case is: when hovering a window, Dear ImGui set io.WantCaptureMouse to true, " + "and underlying application should ignore mouse inputs (in practice there are many and more subtle " + "rules leading to how those flags are set)."); + + ImGui::Text("io.WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("io.WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); + ImGui::Text("io.WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + + HelpMarker( + "Hovering the colored canvas will override io.WantCaptureXXX fields.\n" + "Notice how normally (when set to none), the value of io.WantCaptureKeyboard would be false when hovering and true when clicking."); + static int capture_override_mouse = -1; + static int capture_override_keyboard = -1; + const char* capture_override_desc[] = { "None", "Set to false", "Set to true" }; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureMouse()", &capture_override_mouse, -1, +1, capture_override_desc[capture_override_mouse + 1], ImGuiSliderFlags_AlwaysClamp); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureKeyboard()", &capture_override_keyboard, -1, +1, capture_override_desc[capture_override_keyboard + 1], ImGuiSliderFlags_AlwaysClamp); + + ImGui::ColorButton("##panel", ImVec4(0.7f, 0.1f, 0.7f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, ImVec2(256.0f, 192.0f)); // Dummy item + if (ImGui::IsItemHovered() && capture_override_mouse != -1) + ImGui::SetNextFrameWantCaptureMouse(capture_override_mouse == 1); + if (ImGui::IsItemHovered() && capture_override_keyboard != -1) + ImGui::SetNextFrameWantCaptureKeyboard(capture_override_keyboard == 1); - ImGui::Button("Hovering me sets the\nkeyboard capture flag"); - if (ImGui::IsItemHovered()) - ImGui::CaptureKeyboardFromApp(true); - ImGui::SameLine(); - ImGui::Button("Holding me clears the\nthe keyboard capture flag"); - if (ImGui::IsItemActive()) - ImGui::CaptureKeyboardFromApp(false); ImGui::TreePop(); } @@ -5800,30 +5945,6 @@ static void ShowDemoWindowMisc() ImGui::Text("io.MouseDelta: (%.1f, %.1f)", mouse_delta.x, mouse_delta.y); ImGui::TreePop(); } - - IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse cursors"); - if (ImGui::TreeNode("Mouse cursors")) - { - const char* mouse_cursors_names[] = { "Arrow", "TextInput", "ResizeAll", "ResizeNS", "ResizeEW", "ResizeNESW", "ResizeNWSE", "Hand", "NotAllowed" }; - IM_ASSERT(IM_ARRAYSIZE(mouse_cursors_names) == ImGuiMouseCursor_COUNT); - - ImGuiMouseCursor current = ImGui::GetMouseCursor(); - ImGui::Text("Current mouse cursor = %d: %s", current, mouse_cursors_names[current]); - ImGui::Text("Hover to see mouse cursors:"); - ImGui::SameLine(); HelpMarker( - "Your application can render a different mouse cursor based on what ImGui::GetMouseCursor() returns. " - "If software cursor rendering (io.MouseDrawCursor) is set ImGui will draw the right cursor for you, " - "otherwise your backend needs to handle it."); - for (int i = 0; i < ImGuiMouseCursor_COUNT; i++) - { - char label[32]; - sprintf(label, "Mouse cursor %d: %s", i, mouse_cursors_names[i]); - ImGui::Bullet(); ImGui::Selectable(label, false); - if (ImGui::IsItemHovered()) - ImGui::SetMouseCursor(i); - } - ImGui::TreePop(); - } } } @@ -5868,6 +5989,9 @@ void ImGui::ShowAboutWindow(bool* p_open) #ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_FUNCTIONS"); #endif +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_KEYIO"); +#endif #ifdef IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS"); #endif @@ -5981,7 +6105,7 @@ void ImGui::ShowAboutWindow(bool* p_open) namespace ImGui { IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); } // Demo helper function to select among loaded fonts. -// Here we use the regular BeginCombo()/EndCombo() api which is more the more flexible one. +// Here we use the regular BeginCombo()/EndCombo() api which is the more flexible one. void ImGui::ShowFontSelector(const char* label) { ImGuiIO& io = ImGui::GetIO(); @@ -6273,6 +6397,40 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref) ImGui::PopItemWidth(); } +//----------------------------------------------------------------------------- +// [SECTION] User Guide / ShowUserGuide() +//----------------------------------------------------------------------------- + +void ImGui::ShowUserGuide() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui::BulletText("Double-click on title bar to collapse window."); + ImGui::BulletText( + "Click and drag on lower corner to resize window\n" + "(double-click to auto fit window to its contents)."); + ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text."); + ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields."); + ImGui::BulletText("CTRL+Tab to select a window."); + if (io.FontAllowUserScaling) + ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents."); + ImGui::BulletText("While inputing text:\n"); + ImGui::Indent(); + ImGui::BulletText("CTRL+Left/Right to word jump."); + ImGui::BulletText("CTRL+A or double-click to select all."); + ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste."); + ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo."); + ImGui::BulletText("ESCAPE to revert."); + ImGui::Unindent(); + ImGui::BulletText("With keyboard navigation enabled:"); + ImGui::Indent(); + ImGui::BulletText("Arrow keys to navigate."); + ImGui::BulletText("Space to activate a widget."); + ImGui::BulletText("Return to input text into a widget."); + ImGui::BulletText("Escape to deactivate a widget, close popup, exit child window."); + ImGui::BulletText("Alt to jump to the menu layer of a window."); + ImGui::Unindent(); +} + //----------------------------------------------------------------------------- // [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() //----------------------------------------------------------------------------- @@ -6507,72 +6665,76 @@ struct ExampleAppConsole // Reserve enough left-over height for 1 separator + 1 input text const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing(); - ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar); - if (ImGui::BeginPopupContextWindow()) + if (ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar)) { - if (ImGui::Selectable("Clear")) ClearLog(); - ImGui::EndPopup(); - } + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::Selectable("Clear")) ClearLog(); + ImGui::EndPopup(); + } - // Display every line as a separate entry so we can change their color or add custom widgets. - // If you only want raw text you can use ImGui::TextUnformatted(log.begin(), log.end()); - // NB- if you have thousands of entries this approach may be too inefficient and may require user-side clipping - // to only process visible items. The clipper will automatically measure the height of your first item and then - // "seek" to display only items in the visible area. - // To use the clipper we can replace your standard loop: - // for (int i = 0; i < Items.Size; i++) - // With: - // ImGuiListClipper clipper; - // clipper.Begin(Items.Size); - // while (clipper.Step()) - // for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) - // - That your items are evenly spaced (same height) - // - That you have cheap random access to your elements (you can access them given their index, - // without processing all the ones before) - // You cannot this code as-is if a filter is active because it breaks the 'cheap random-access' property. - // We would need random-access on the post-filtered list. - // A typical application wanting coarse clipping and filtering may want to pre-compute an array of indices - // or offsets of items that passed the filtering test, recomputing this array when user changes the filter, - // and appending newly elements as they are inserted. This is left as a task to the user until we can manage - // to improve this example code! - // If your items are of variable height: - // - Split them into same height items would be simpler and facilitate random-seeking into your list. - // - Consider using manual call to IsRectVisible() and skipping extraneous decoration from your items. - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing - if (copy_to_clipboard) - ImGui::LogToClipboard(); - for (int i = 0; i < Items.Size; i++) - { - const char* item = Items[i]; - if (!Filter.PassFilter(item)) - continue; + // Display every line as a separate entry so we can change their color or add custom widgets. + // If you only want raw text you can use ImGui::TextUnformatted(log.begin(), log.end()); + // NB- if you have thousands of entries this approach may be too inefficient and may require user-side clipping + // to only process visible items. The clipper will automatically measure the height of your first item and then + // "seek" to display only items in the visible area. + // To use the clipper we can replace your standard loop: + // for (int i = 0; i < Items.Size; i++) + // With: + // ImGuiListClipper clipper; + // clipper.Begin(Items.Size); + // while (clipper.Step()) + // for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + // - That your items are evenly spaced (same height) + // - That you have cheap random access to your elements (you can access them given their index, + // without processing all the ones before) + // You cannot this code as-is if a filter is active because it breaks the 'cheap random-access' property. + // We would need random-access on the post-filtered list. + // A typical application wanting coarse clipping and filtering may want to pre-compute an array of indices + // or offsets of items that passed the filtering test, recomputing this array when user changes the filter, + // and appending newly elements as they are inserted. This is left as a task to the user until we can manage + // to improve this example code! + // If your items are of variable height: + // - Split them into same height items would be simpler and facilitate random-seeking into your list. + // - Consider using manual call to IsRectVisible() and skipping extraneous decoration from your items. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing + if (copy_to_clipboard) + ImGui::LogToClipboard(); + for (int i = 0; i < Items.Size; i++) + { + const char* item = Items[i]; + if (!Filter.PassFilter(item)) + continue; - // Normally you would store more information in your item than just a string. - // (e.g. make Items[] an array of structure, store color/type etc.) - ImVec4 color; - bool has_color = false; - if (strstr(item, "[error]")) { color = ImVec4(1.0f, 0.4f, 0.4f, 1.0f); has_color = true; } - else if (strncmp(item, "# ", 2) == 0) { color = ImVec4(1.0f, 0.8f, 0.6f, 1.0f); has_color = true; } - if (has_color) - ImGui::PushStyleColor(ImGuiCol_Text, color); - ImGui::TextUnformatted(item); - if (has_color) - ImGui::PopStyleColor(); - } - if (copy_to_clipboard) - ImGui::LogFinish(); + // Normally you would store more information in your item than just a string. + // (e.g. make Items[] an array of structure, store color/type etc.) + ImVec4 color; + bool has_color = false; + if (strstr(item, "[error]")) { color = ImVec4(1.0f, 0.4f, 0.4f, 1.0f); has_color = true; } + else if (strncmp(item, "# ", 2) == 0) { color = ImVec4(1.0f, 0.8f, 0.6f, 1.0f); has_color = true; } + if (has_color) + ImGui::PushStyleColor(ImGuiCol_Text, color); + ImGui::TextUnformatted(item); + if (has_color) + ImGui::PopStyleColor(); + } + if (copy_to_clipboard) + ImGui::LogFinish(); - if (ScrollToBottom || (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())) - ImGui::SetScrollHereY(1.0f); - ScrollToBottom = false; + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (ScrollToBottom || (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())) + ImGui::SetScrollHereY(1.0f); + ScrollToBottom = false; - ImGui::PopStyleVar(); + ImGui::PopStyleVar(); + } ImGui::EndChild(); ImGui::Separator(); // Command-line bool reclaim_focus = false; - ImGuiInputTextFlags input_text_flags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory; + ImGuiInputTextFlags input_text_flags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_EscapeClearsAll | ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory; if (ImGui::InputText("Input", InputBuf, IM_ARRAYSIZE(InputBuf), input_text_flags, &TextEditCallbackStub, (void*)this)) { char* s = InputBuf; @@ -6814,63 +6976,66 @@ struct ExampleAppLog Filter.Draw("Filter", -100.0f); ImGui::Separator(); - ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar); - - if (clear) - Clear(); - if (copy) - ImGui::LogToClipboard(); - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); - const char* buf = Buf.begin(); - const char* buf_end = Buf.end(); - if (Filter.IsActive()) + if (ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar)) { - // In this example we don't use the clipper when Filter is enabled. - // This is because we don't have a random access on the result on our filter. - // A real application processing logs with ten of thousands of entries may want to store the result of - // search/filter.. especially if the filtering function is not trivial (e.g. reg-exp). - for (int line_no = 0; line_no < LineOffsets.Size; line_no++) - { - const char* line_start = buf + LineOffsets[line_no]; - const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; - if (Filter.PassFilter(line_start, line_end)) - ImGui::TextUnformatted(line_start, line_end); - } - } - else - { - // The simplest and easy way to display the entire buffer: - // ImGui::TextUnformatted(buf_begin, buf_end); - // And it'll just work. TextUnformatted() has specialization for large blob of text and will fast-forward - // to skip non-visible lines. Here we instead demonstrate using the clipper to only process lines that are - // within the visible area. - // If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them - // on your side is recommended. Using ImGuiListClipper requires - // - A) random access into your data - // - B) items all being the same height, - // both of which we can handle since we an array pointing to the beginning of each line of text. - // When using the filter (in the block of code above) we don't have random access into the data to display - // anymore, which is why we don't use the clipper. Storing or skimming through the search result would make - // it possible (and would be recommended if you want to search through tens of thousands of entries). - ImGuiListClipper clipper; - clipper.Begin(LineOffsets.Size); - while (clipper.Step()) - { - for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + if (clear) + Clear(); + if (copy) + ImGui::LogToClipboard(); + + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + const char* buf = Buf.begin(); + const char* buf_end = Buf.end(); + if (Filter.IsActive()) + { + // In this example we don't use the clipper when Filter is enabled. + // This is because we don't have random access to the result of our filter. + // A real application processing logs with ten of thousands of entries may want to store the result of + // search/filter.. especially if the filtering function is not trivial (e.g. reg-exp). + for (int line_no = 0; line_no < LineOffsets.Size; line_no++) { const char* line_start = buf + LineOffsets[line_no]; const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; - ImGui::TextUnformatted(line_start, line_end); + if (Filter.PassFilter(line_start, line_end)) + ImGui::TextUnformatted(line_start, line_end); } } - clipper.End(); - } - ImGui::PopStyleVar(); - - if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) - ImGui::SetScrollHereY(1.0f); + else + { + // The simplest and easy way to display the entire buffer: + // ImGui::TextUnformatted(buf_begin, buf_end); + // And it'll just work. TextUnformatted() has specialization for large blob of text and will fast-forward + // to skip non-visible lines. Here we instead demonstrate using the clipper to only process lines that are + // within the visible area. + // If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them + // on your side is recommended. Using ImGuiListClipper requires + // - A) random access into your data + // - B) items all being the same height, + // both of which we can handle since we have an array pointing to the beginning of each line of text. + // When using the filter (in the block of code above) we don't have random access into the data to display + // anymore, which is why we don't use the clipper. Storing or skimming through the search result would make + // it possible (and would be recommended if you want to search through tens of thousands of entries). + ImGuiListClipper clipper; + clipper.Begin(LineOffsets.Size); + while (clipper.Step()) + { + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + ImGui::TextUnformatted(line_start, line_end); + } + } + clipper.End(); + } + ImGui::PopStyleVar(); + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) + ImGui::SetScrollHereY(1.0f); + } ImGui::EndChild(); ImGui::End(); } @@ -7150,51 +7315,82 @@ static void ShowExampleAppAutoResize(bool* p_open) //----------------------------------------------------------------------------- // Demonstrate creating a window with custom resize constraints. +// Note that size constraints currently don't work on a docked window (when in 'docking' branch) static void ShowExampleAppConstrainedResize(bool* p_open) { struct CustomConstraints { // Helper functions to demonstrate programmatic constraints - static void Square(ImGuiSizeCallbackData* data) { data->DesiredSize.x = data->DesiredSize.y = IM_MAX(data->DesiredSize.x, data->DesiredSize.y); } - static void Step(ImGuiSizeCallbackData* data) { float step = (float)(int)(intptr_t)data->UserData; data->DesiredSize = ImVec2((int)(data->DesiredSize.x / step + 0.5f) * step, (int)(data->DesiredSize.y / step + 0.5f) * step); } + // FIXME: This doesn't take account of decoration size (e.g. title bar), library should make this easier. + static void AspectRatio(ImGuiSizeCallbackData* data) { float aspect_ratio = *(float*)data->UserData; data->DesiredSize.x = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); data->DesiredSize.y = (float)(int)(data->DesiredSize.x / aspect_ratio); } + static void Square(ImGuiSizeCallbackData* data) { data->DesiredSize.x = data->DesiredSize.y = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); } + static void Step(ImGuiSizeCallbackData* data) { float step = *(float*)data->UserData; data->DesiredSize = ImVec2((int)(data->CurrentSize.x / step + 0.5f) * step, (int)(data->CurrentSize.y / step + 0.5f) * step); } }; const char* test_desc[] = { + "Between 100x100 and 500x500", + "At least 100x100", "Resize vertical only", "Resize horizontal only", - "Width > 100, Height > 100", - "Width 400-500", - "Height 400-500", + "Width Between 400 and 500", + "Custom: Aspect Ratio 16:9", "Custom: Always Square", "Custom: Fixed Steps (100)", }; + // Options static bool auto_resize = false; - static int type = 0; + static bool window_padding = true; + static int type = 5; // Aspect Ratio static int display_lines = 10; - if (type == 0) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 0), ImVec2(-1, FLT_MAX)); // Vertical only - if (type == 1) ImGui::SetNextWindowSizeConstraints(ImVec2(0, -1), ImVec2(FLT_MAX, -1)); // Horizontal only - if (type == 2) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(FLT_MAX, FLT_MAX)); // Width > 100, Height > 100 - if (type == 3) ImGui::SetNextWindowSizeConstraints(ImVec2(400, -1), ImVec2(500, -1)); // Width 400-500 - if (type == 4) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 400), ImVec2(-1, 500)); // Height 400-500 - if (type == 5) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Square); // Always Square - if (type == 6) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Step, (void*)(intptr_t)100); // Fixed Step - ImGuiWindowFlags flags = auto_resize ? ImGuiWindowFlags_AlwaysAutoResize : 0; - if (ImGui::Begin("Example: Constrained Resize", p_open, flags)) + // Submit constraint + float aspect_ratio = 16.0f / 9.0f; + float fixed_step = 100.0f; + if (type == 0) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(500, 500)); // Between 100x100 and 500x500 + if (type == 1) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(FLT_MAX, FLT_MAX)); // Width > 100, Height > 100 + if (type == 2) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 0), ImVec2(-1, FLT_MAX)); // Vertical only + if (type == 3) ImGui::SetNextWindowSizeConstraints(ImVec2(0, -1), ImVec2(FLT_MAX, -1)); // Horizontal only + if (type == 4) ImGui::SetNextWindowSizeConstraints(ImVec2(400, -1), ImVec2(500, -1)); // Width Between and 400 and 500 + if (type == 5) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::AspectRatio, (void*)&aspect_ratio); // Aspect ratio + if (type == 6) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Square); // Always Square + if (type == 7) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Step, (void*)&fixed_step); // Fixed Step + + // Submit window + if (!window_padding) + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + const ImGuiWindowFlags window_flags = auto_resize ? ImGuiWindowFlags_AlwaysAutoResize : 0; + const bool window_open = ImGui::Begin("Example: Constrained Resize", p_open, window_flags); + if (!window_padding) + ImGui::PopStyleVar(); + if (window_open) { IMGUI_DEMO_MARKER("Examples/Constrained Resizing window"); - if (ImGui::Button("200x200")) { ImGui::SetWindowSize(ImVec2(200, 200)); } ImGui::SameLine(); - if (ImGui::Button("500x500")) { ImGui::SetWindowSize(ImVec2(500, 500)); } ImGui::SameLine(); - if (ImGui::Button("800x200")) { ImGui::SetWindowSize(ImVec2(800, 200)); } - ImGui::SetNextItemWidth(200); - ImGui::Combo("Constraint", &type, test_desc, IM_ARRAYSIZE(test_desc)); - ImGui::SetNextItemWidth(200); - ImGui::DragInt("Lines", &display_lines, 0.2f, 1, 100); - ImGui::Checkbox("Auto-resize", &auto_resize); - for (int i = 0; i < display_lines; i++) - ImGui::Text("%*sHello, sailor! Making this line long enough for the example.", i * 4, ""); + if (ImGui::GetIO().KeyShift) + { + // Display a dummy viewport (in your real app you would likely use ImageButton() to display a texture. + ImVec2 avail_size = ImGui::GetContentRegionAvail(); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImGui::ColorButton("viewport", ImVec4(0.5f, 0.2f, 0.5f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, avail_size); + ImGui::SetCursorScreenPos(ImVec2(pos.x + 10, pos.y + 10)); + ImGui::Text("%.2f x %.2f", avail_size.x, avail_size.y); + } + else + { + ImGui::Text("(Hold SHIFT to display a dummy viewport)"); + if (ImGui::Button("Set 200x200")) { ImGui::SetWindowSize(ImVec2(200, 200)); } ImGui::SameLine(); + if (ImGui::Button("Set 500x500")) { ImGui::SetWindowSize(ImVec2(500, 500)); } ImGui::SameLine(); + if (ImGui::Button("Set 800x200")) { ImGui::SetWindowSize(ImVec2(800, 200)); } + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::Combo("Constraint", &type, test_desc, IM_ARRAYSIZE(test_desc)); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::DragInt("Lines", &display_lines, 0.2f, 1, 100); + ImGui::Checkbox("Auto-resize", &auto_resize); + ImGui::Checkbox("Window padding", &window_padding); + for (int i = 0; i < display_lines; i++) + ImGui::Text("%*sHello, sailor! Making this line long enough for the example.", i * 4, ""); + } } ImGui::End(); } @@ -7207,28 +7403,34 @@ static void ShowExampleAppConstrainedResize(bool* p_open) // + a context-menu to choose which corner of the screen to use. static void ShowExampleAppSimpleOverlay(bool* p_open) { - static int corner = 0; + static int location = 0; ImGuiIO& io = ImGui::GetIO(); ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav; - if (corner != -1) + if (location >= 0) { const float PAD = 10.0f; const ImGuiViewport* viewport = ImGui::GetMainViewport(); ImVec2 work_pos = viewport->WorkPos; // Use work area to avoid menu-bar/task-bar, if any! ImVec2 work_size = viewport->WorkSize; ImVec2 window_pos, window_pos_pivot; - window_pos.x = (corner & 1) ? (work_pos.x + work_size.x - PAD) : (work_pos.x + PAD); - window_pos.y = (corner & 2) ? (work_pos.y + work_size.y - PAD) : (work_pos.y + PAD); - window_pos_pivot.x = (corner & 1) ? 1.0f : 0.0f; - window_pos_pivot.y = (corner & 2) ? 1.0f : 0.0f; + window_pos.x = (location & 1) ? (work_pos.x + work_size.x - PAD) : (work_pos.x + PAD); + window_pos.y = (location & 2) ? (work_pos.y + work_size.y - PAD) : (work_pos.y + PAD); + window_pos_pivot.x = (location & 1) ? 1.0f : 0.0f; + window_pos_pivot.y = (location & 2) ? 1.0f : 0.0f; ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always, window_pos_pivot); window_flags |= ImGuiWindowFlags_NoMove; } + else if (location == -2) + { + // Center window + ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + window_flags |= ImGuiWindowFlags_NoMove; + } ImGui::SetNextWindowBgAlpha(0.35f); // Transparent background if (ImGui::Begin("Example: Simple overlay", p_open, window_flags)) { IMGUI_DEMO_MARKER("Examples/Simple Overlay"); - ImGui::Text("Simple overlay\n" "in the corner of the screen.\n" "(right-click to change position)"); + ImGui::Text("Simple overlay\n" "(right-click to change position)"); ImGui::Separator(); if (ImGui::IsMousePosValid()) ImGui::Text("Mouse Position: (%.1f,%.1f)", io.MousePos.x, io.MousePos.y); @@ -7236,11 +7438,12 @@ static void ShowExampleAppSimpleOverlay(bool* p_open) ImGui::Text("Mouse Position: "); if (ImGui::BeginPopupContextWindow()) { - if (ImGui::MenuItem("Custom", NULL, corner == -1)) corner = -1; - if (ImGui::MenuItem("Top-left", NULL, corner == 0)) corner = 0; - if (ImGui::MenuItem("Top-right", NULL, corner == 1)) corner = 1; - if (ImGui::MenuItem("Bottom-left", NULL, corner == 2)) corner = 2; - if (ImGui::MenuItem("Bottom-right", NULL, corner == 3)) corner = 3; + if (ImGui::MenuItem("Custom", NULL, location == -1)) location = -1; + if (ImGui::MenuItem("Center", NULL, location == -2)) location = -2; + if (ImGui::MenuItem("Top-left", NULL, location == 0)) location = 0; + if (ImGui::MenuItem("Top-right", NULL, location == 1)) location = 1; + if (ImGui::MenuItem("Bottom-left", NULL, location == 2)) location = 2; + if (ImGui::MenuItem("Bottom-right", NULL, location == 3)) location = 3; if (p_open && ImGui::MenuItem("Close")) *p_open = false; ImGui::EndPopup(); } @@ -7256,7 +7459,7 @@ static void ShowExampleAppSimpleOverlay(bool* p_open) static void ShowExampleAppFullscreen(bool* p_open) { static bool use_work_area = true; - static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings; + static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings; // We demonstrate using the full viewport area or the work area (without menu-bars, task-bars etc.) // Based on your use case you may want one of the other. @@ -7288,8 +7491,8 @@ static void ShowExampleAppFullscreen(bool* p_open) // [SECTION] Example App: Manipulating Window Titles / ShowExampleAppWindowTitles() //----------------------------------------------------------------------------- -// Demonstrate using "##" and "###" in identifiers to manipulate ID generation. -// This apply to all regular items as well. +// Demonstrate the use of "##" and "###" in identifiers to manipulate ID generation. +// This applies to all regular items as well. // Read FAQ section "How can I have multiple widgets with the same label?" for details. static void ShowExampleAppWindowTitles(bool*) { @@ -7509,8 +7712,8 @@ static void ShowExampleAppCustomRendering(bool* p_open) // Context menu (under default mouse threshold) ImVec2 drag_delta = ImGui::GetMouseDragDelta(ImGuiMouseButton_Right); - if (opt_enable_context_menu && ImGui::IsMouseReleased(ImGuiMouseButton_Right) && drag_delta.x == 0.0f && drag_delta.y == 0.0f) - ImGui::OpenPopupOnItemClick("context"); + if (opt_enable_context_menu && drag_delta.x == 0.0f && drag_delta.y == 0.0f) + ImGui::OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); if (ImGui::BeginPopup("context")) { if (adding_line) @@ -7694,7 +7897,8 @@ void ShowExampleAppDocuments(bool* p_open) if (ImGui::MenuItem("Close All Documents", NULL, false, open_count > 0)) for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) app.Documents[doc_n].DoQueueClose(); - if (ImGui::MenuItem("Exit", "Alt+F4")) {} + if (ImGui::MenuItem("Exit", "Ctrl+F4") && p_open) + *p_open = false; ImGui::EndMenu(); } ImGui::EndMenuBar(); diff --git a/imgui-sys/third-party/imgui-master/imgui/imgui_draw.cpp b/imgui-sys/third-party/imgui-master/imgui/imgui_draw.cpp index bf1da15b9..1203af8e3 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imgui_draw.cpp +++ b/imgui-sys/third-party/imgui-master/imgui/imgui_draw.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (drawing and font code) /* @@ -39,25 +39,12 @@ Index of this file: #endif #include // vsnprintf, sscanf, printf -#if !defined(alloca) -#if defined(__GLIBC__) || defined(__sun) || defined(__APPLE__) || defined(__NEWLIB__) -#include // alloca (glibc uses . Note that Cygwin may have _WIN32 defined, so the order matters here) -#elif defined(_WIN32) -#include // alloca -#if !defined(alloca) -#define alloca _alloca // for clang with MS Codegen -#endif -#else -#include // alloca -#endif -#endif // Visual Studio warnings #ifdef _MSC_VER #pragma warning (disable: 4127) // condition expression is constant #pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#pragma warning (disable: 6255) // [Static Analyzer] _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. #pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). #pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) #endif @@ -67,9 +54,6 @@ Index of this file: #if __has_warning("-Wunknown-warning-option") #pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! #endif -#if __has_warning("-Walloca") -#pragma clang diagnostic ignored "-Walloca" // warning: use of function '__builtin_alloca' is discouraged -#endif #pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' #pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. #pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok. @@ -90,7 +74,7 @@ Index of this file: #endif //------------------------------------------------------------------------- -// [SECTION] STB libraries implementation +// [SECTION] STB libraries implementation (for stb_truetype and stb_rect_pack) //------------------------------------------------------------------------- // Compile time options: @@ -393,7 +377,7 @@ void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error) for (int i = 0; i < IM_ARRAYSIZE(CircleSegmentCounts); i++) { const float radius = (float)i; - CircleSegmentCounts[i] = (ImU8)((i > 0) ? IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError) : 0); + CircleSegmentCounts[i] = (ImU8)((i > 0) ? IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError) : IM_DRAWLIST_ARCFAST_SAMPLE_MAX); } ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); } @@ -402,10 +386,9 @@ void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error) void ImDrawList::_ResetForNewFrame() { // Verify that the ImDrawCmd fields we want to memcmp() are contiguous in memory. - // (those should be IM_STATIC_ASSERT() in theory but with our pre C++11 setup the whole check doesn't compile with GCC) - IM_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); - IM_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); - IM_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); CmdBuffer.resize(0); IdxBuffer.resize(0); @@ -488,9 +471,10 @@ void ImDrawList::AddCallback(ImDrawCallback callback, void* callback_data) } // Compare ClipRect, TextureId and VtxOffset with a single memcmp() -#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) -#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset -#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset +#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) +#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset +#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset +#define ImDrawCmd_AreSequentialIdxOffset(CMD_0, CMD_1) (CMD_0->IdxOffset + CMD_0->ElemCount == CMD_1->IdxOffset) // Try to merge two last draw commands void ImDrawList::_TryMergeDrawCmds() @@ -498,7 +482,7 @@ void ImDrawList::_TryMergeDrawCmds() IM_ASSERT_PARANOID(CmdBuffer.Size > 0); ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; ImDrawCmd* prev_cmd = curr_cmd - 1; - if (ImDrawCmd_HeaderCompare(curr_cmd, prev_cmd) == 0 && curr_cmd->UserCallback == NULL && prev_cmd->UserCallback == NULL) + if (ImDrawCmd_HeaderCompare(curr_cmd, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && curr_cmd->UserCallback == NULL && prev_cmd->UserCallback == NULL) { prev_cmd->ElemCount += curr_cmd->ElemCount; CmdBuffer.pop_back(); @@ -521,7 +505,7 @@ void ImDrawList::_OnChangedClipRect() // Try to merge with previous command if it matches, else use current command ImDrawCmd* prev_cmd = curr_cmd - 1; - if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && prev_cmd->UserCallback == NULL) + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) { CmdBuffer.pop_back(); return; @@ -544,7 +528,7 @@ void ImDrawList::_OnChangedTextureID() // Try to merge with previous command if it matches, else use current command ImDrawCmd* prev_cmd = curr_cmd - 1; - if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && prev_cmd->UserCallback == NULL) + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) { CmdBuffer.pop_back(); return; @@ -580,7 +564,7 @@ int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const } // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) -void ImDrawList::PushClipRect(ImVec2 cr_min, ImVec2 cr_max, bool intersect_with_current_clip_rect) +void ImDrawList::PushClipRect(const ImVec2& cr_min, const ImVec2& cr_max, bool intersect_with_current_clip_rect) { ImVec4 cr(cr_min.x, cr_min.y, cr_max.x, cr_max.y); if (intersect_with_current_clip_rect) @@ -753,7 +737,8 @@ void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 // Temporary buffer // The first items are normals at each line point, then after that there are either 2 or 4 temp points for each line point - ImVec2* temp_normals = (ImVec2*)alloca(points_count * ((use_texture || !thick_line) ? 3 : 5) * sizeof(ImVec2)); //-V630 + _Data->TempBuffer.reserve_discard(points_count * ((use_texture || !thick_line) ? 3 : 5)); + ImVec2* temp_normals = _Data->TempBuffer.Data; ImVec2* temp_points = temp_normals + points_count; // Calculate normals (tangents) for each line segment @@ -973,7 +958,8 @@ void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 } } -// We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. +// - We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. +// - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) { if (points_count < 3) @@ -1000,7 +986,8 @@ void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_coun } // Compute normals - ImVec2* temp_normals = (ImVec2*)alloca(points_count * sizeof(ImVec2)); //-V630 + _Data->TempBuffer.reserve_discard(points_count); + ImVec2* temp_normals = _Data->TempBuffer.Data; for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) { const ImVec2& p0 = points[i0]; @@ -1057,7 +1044,7 @@ void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_coun void ImDrawList::_PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step) { - if (radius <= 0.0f) + if (radius < 0.5f) { _Path.push_back(center); return; @@ -1149,7 +1136,7 @@ void ImDrawList::_PathArcToFastEx(const ImVec2& center, float radius, int a_min_ void ImDrawList::_PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) { - if (radius <= 0.0f) + if (radius < 0.5f) { _Path.push_back(center); return; @@ -1168,7 +1155,7 @@ void ImDrawList::_PathArcToN(const ImVec2& center, float radius, float a_min, fl // 0: East, 3: South, 6: West, 9: North, 12: East void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12) { - if (radius <= 0.0f) + if (radius < 0.5f) { _Path.push_back(center); return; @@ -1178,7 +1165,7 @@ void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_ void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) { - if (radius <= 0.0f) + if (radius < 0.5f) { _Path.push_back(center); return; @@ -1206,8 +1193,8 @@ void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, floa const float a_min_segment_angle = a_min_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; const float a_max_segment_angle = a_max_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; - const bool a_emit_start = (a_min_segment_angle - a_min) != 0.0f; - const bool a_emit_end = (a_max - a_max_segment_angle) != 0.0f; + const bool a_emit_start = ImAbs(a_min_segment_angle - a_min) >= 1e-5f; + const bool a_emit_end = ImAbs(a_max - a_max_segment_angle) >= 1e-5f; _Path.reserve(_Path.Size + (a_mid_samples + 1 + (a_emit_start ? 1 : 0) + (a_emit_end ? 1 : 0))); if (a_emit_start) @@ -1294,6 +1281,7 @@ void ImDrawList::PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, cons ImVec2 p1 = _Path.back(); if (num_segments == 0) { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); PathBezierCubicCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, _Data->CurveTessellationTol, 0); // Auto-tessellated } else @@ -1309,6 +1297,7 @@ void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, ImVec2 p1 = _Path.back(); if (num_segments == 0) { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); PathBezierQuadraticCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, _Data->CurveTessellationTol, 0);// Auto-tessellated } else @@ -1323,6 +1312,7 @@ IM_STATIC_ASSERT(ImDrawFlags_RoundCornersTopLeft == (1 << 4)); static inline ImDrawFlags FixRectCornerFlags(ImDrawFlags flags) { #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // Obsoleted in 1.82 (from February 2021) // Legacy Support for hard coded ~0 (used to be a suggested equivalent to ImDrawCornerFlags_All) // ~0 --> ImDrawFlags_RoundCornersAll or 0 if (flags == ~0) @@ -1359,7 +1349,7 @@ void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDr rounding = ImMin(rounding, ImFabs(b.x - a.x) * ( ((flags & ImDrawFlags_RoundCornersTop) == ImDrawFlags_RoundCornersTop) || ((flags & ImDrawFlags_RoundCornersBottom) == ImDrawFlags_RoundCornersBottom) ? 0.5f : 1.0f ) - 1.0f); rounding = ImMin(rounding, ImFabs(b.y - a.y) * ( ((flags & ImDrawFlags_RoundCornersLeft) == ImDrawFlags_RoundCornersLeft) || ((flags & ImDrawFlags_RoundCornersRight) == ImDrawFlags_RoundCornersRight) ? 0.5f : 1.0f ) - 1.0f); - if (rounding <= 0.0f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) { PathLineTo(a); PathLineTo(ImVec2(b.x, a.y)); @@ -1405,7 +1395,7 @@ void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 c { if ((col & IM_COL32_A_MASK) == 0) return; - if (rounding <= 0.0f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) { PrimReserve(6, 4); PrimRect(p_min, p_max, col); @@ -1481,7 +1471,7 @@ void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImV void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) { - if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) return; if (num_segments <= 0) @@ -1505,7 +1495,7 @@ void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int nu void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) { - if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) return; if (num_segments <= 0) @@ -1645,7 +1635,7 @@ void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_mi return; flags = FixRectCornerFlags(flags); - if (rounding <= 0.0f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) { AddImage(user_texture_id, p_min, p_max, uv_min, uv_max, col); return; @@ -1733,13 +1723,13 @@ void ImDrawListSplitter::Merge(ImDrawList* draw_list) for (int i = 1; i < _Count; i++) { ImDrawChannel& ch = _Channels[i]; - - // Equivalent of PopUnusedDrawCmd() for this channel's cmdbuffer and except we don't need to test for UserCallback. - if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0) + if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0 && ch._CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() ch._CmdBuffer.pop_back(); if (ch._CmdBuffer.Size > 0 && last_cmd != NULL) { + // Do not include ImDrawCmd_AreSequentialIdxOffset() in the compare as we rebuild IdxOffset values ourselves. + // Manipulating IdxOffset (e.g. by reordering draw commands like done by RenderDimmedBackgroundBehindWindow()) is not supported within a splitter. ImDrawCmd* next_cmd = &ch._CmdBuffer[0]; if (ImDrawCmd_HeaderCompare(last_cmd, next_cmd) == 0 && last_cmd->UserCallback == NULL && next_cmd->UserCallback == NULL) { @@ -2297,10 +2287,11 @@ void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], fl void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride) { + IM_ASSERT_PARANOID(w <= stride); unsigned char* data = pixels + x + y * stride; - for (int j = h; j > 0; j--, data += stride) - for (int i = 0; i < w; i++) - data[i] = table[data[i]]; + for (int j = h; j > 0; j--, data += stride - w) + for (int i = w; i > 0; i--, data++) + *data = table[*data]; } #ifdef IMGUI_ENABLE_STB_TRUETYPE @@ -2317,7 +2308,7 @@ struct ImFontBuildSrcData int GlyphsHighest; // Highest requested codepoint int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) - ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsMap) + ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsSet) }; // Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) @@ -2637,8 +2628,8 @@ void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opa for (int i = 0; i < pack_rects.Size; i++) if (pack_rects[i].was_packed) { - user_rects[i].X = pack_rects[i].x; - user_rects[i].Y = pack_rects[i].y; + user_rects[i].X = (unsigned short)pack_rects[i].x; + user_rects[i].Y = (unsigned short)pack_rects[i].y; IM_ASSERT(pack_rects[i].w == user_rects[i].Width && pack_rects[i].h == user_rects[i].Height); atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); } @@ -2738,13 +2729,13 @@ static void ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) { unsigned int* write_ptr = &atlas->TexPixelsRGBA32[r->X + ((r->Y + y) * atlas->TexWidth)]; for (unsigned int i = 0; i < pad_left; i++) - *(write_ptr + i) = IM_COL32_BLACK_TRANS; + *(write_ptr + i) = IM_COL32(255, 255, 255, 0); for (unsigned int i = 0; i < line_width; i++) *(write_ptr + pad_left + i) = IM_COL32_WHITE; for (unsigned int i = 0; i < pad_right; i++) - *(write_ptr + pad_left + line_width + i) = IM_COL32_BLACK_TRANS; + *(write_ptr + pad_left + line_width + i) = IM_COL32(255, 255, 255, 0); } // Calculate UVs for this line @@ -2817,6 +2808,17 @@ const ImWchar* ImFontAtlas::GetGlyphRangesDefault() return &ranges[0]; } +const ImWchar* ImFontAtlas::GetGlyphRangesGreek() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0370, 0x03FF, // Greek and Coptic + 0, + }; + return &ranges[0]; +} + const ImWchar* ImFontAtlas::GetGlyphRangesKorean() { static const ImWchar ranges[] = @@ -3329,11 +3331,21 @@ const ImFontGlyph* ImFont::FindGlyphNoFallback(ImWchar c) const return &Glyphs.Data[i]; } -const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const +// Wrapping skips upcoming blanks +static inline const char* CalcWordWrapNextLineStartA(const char* text, const char* text_end) { - // Simple word-wrapping for English, not full-featured. Please submit failing cases! - // FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) + while (text < text_end && ImCharIsBlankA(*text)) + text++; + if (*text == '\n') + text++; + return text; +} +// Simple word-wrapping for English, not full-featured. Please submit failing cases! +// This will return the next location to wrap from. If no wrapping if necessary, this will fast-forward to e.g. text_end. +// FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) +const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const +{ // For references, possible wrap point marked with ^ // "aaa bbb, ccc,ddd. eee fff. ggg!" // ^ ^ ^ ^ ^__ ^ ^ @@ -3345,7 +3357,6 @@ const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const c // Cut words that cannot possibly fit within one line. // e.g.: "The tropical fish" with ~5 characters worth of width --> "The tr" "opical" "fish" - float line_width = 0.0f; float word_width = 0.0f; float blank_width = 0.0f; @@ -3425,6 +3436,10 @@ const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const c s = next_s; } + // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. + // +1 may not be a character start point in UTF-8 but it's ok because caller loops use (text >= word_wrap_eol). + if (s == text && text < text_end) + return s + 1; return s; } @@ -3449,11 +3464,7 @@ ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, cons { // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. if (!word_wrap_eol) - { word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); - if (word_wrap_eol == s) // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. - word_wrap_eol++; // +1 may not be a character start point in UTF-8 but it's ok because we use s >= word_wrap_eol below - } if (s >= word_wrap_eol) { @@ -3462,13 +3473,7 @@ ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, cons text_size.y += line_height; line_width = 0.0f; word_wrap_eol = NULL; - - // Wrapping skips upcoming blanks - while (s < text_end) - { - const char c = *s; - if (ImCharIsBlankA(c)) { s++; } else if (c == '\n') { s++; break; } else { break; } - } + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks continue; } } @@ -3523,7 +3528,7 @@ ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, cons } // Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. -void ImFont::RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const +void ImFont::RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const { const ImFontGlyph* glyph = FindGlyph(c); if (!glyph || !glyph->Visible) @@ -3531,38 +3536,47 @@ void ImFont::RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col if (glyph->Colored) col |= ~IM_COL32_A_MASK; float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f; - pos.x = IM_FLOOR(pos.x); - pos.y = IM_FLOOR(pos.y); + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); draw_list->PrimReserve(6, 4); - draw_list->PrimRectUV(ImVec2(pos.x + glyph->X0 * scale, pos.y + glyph->Y0 * scale), ImVec2(pos.x + glyph->X1 * scale, pos.y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); + draw_list->PrimRectUV(ImVec2(x + glyph->X0 * scale, y + glyph->Y0 * scale), ImVec2(x + glyph->X1 * scale, y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); } // Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. -void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const +void ImFont::RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const { if (!text_end) text_end = text_begin + strlen(text_begin); // ImGui:: functions generally already provides a valid text_end, so this is merely to handle direct calls. // Align to be pixel perfect - pos.x = IM_FLOOR(pos.x); - pos.y = IM_FLOOR(pos.y); - float x = pos.x; - float y = pos.y; + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); if (y > clip_rect.w) return; + const float start_x = x; const float scale = size / FontSize; const float line_height = FontSize * scale; const bool word_wrap_enabled = (wrap_width > 0.0f); - const char* word_wrap_eol = NULL; // Fast-forward to first visible line const char* s = text_begin; - if (y + line_height < clip_rect.y && !word_wrap_enabled) + if (y + line_height < clip_rect.y) while (y + line_height < clip_rect.y && s < text_end) { - s = (const char*)memchr(s, '\n', text_end - s); - s = s ? s + 1 : text_end; + const char* line_end = (const char*)memchr(s, '\n', text_end - s); + if (word_wrap_enabled) + { + // FIXME-OPT: This is not optimal as do first do a search for \n before calling CalcWordWrapPositionA(). + // If the specs for CalcWordWrapPositionA() were reworked to optionally return on \n we could combine both. + // However it is still better than nothing performing the fast-forward! + s = CalcWordWrapPositionA(scale, s, line_end, wrap_width); + s = CalcWordWrapNextLineStartA(s, text_end); + } + else + { + s = line_end ? line_end + 1 : text_end; + } y += line_height; } @@ -3594,6 +3608,7 @@ void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col unsigned int vtx_current_idx = draw_list->_VtxCurrentIdx; const ImU32 col_untinted = col | ~IM_COL32_A_MASK; + const char* word_wrap_eol = NULL; while (s < text_end) { @@ -3601,24 +3616,14 @@ void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col { // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. if (!word_wrap_eol) - { - word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - pos.x)); - if (word_wrap_eol == s) // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. - word_wrap_eol++; // +1 may not be a character start point in UTF-8 but it's ok because we use s >= word_wrap_eol below - } + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - start_x)); if (s >= word_wrap_eol) { - x = pos.x; + x = start_x; y += line_height; word_wrap_eol = NULL; - - // Wrapping skips upcoming blanks - while (s < text_end) - { - const char c = *s; - if (ImCharIsBlankA(c)) { s++; } else if (c == '\n') { s++; break; } else { break; } - } + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks continue; } } @@ -3640,7 +3645,7 @@ void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col { if (c == '\n') { - x = pos.x; + x = start_x; y += line_height; if (y > clip_rect.w) break; // break out of main loop @@ -3736,7 +3741,6 @@ void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col // - RenderArrow() // - RenderBullet() // - RenderCheckMark() -// - RenderMouseCursor() // - RenderArrowPointingAt() // - RenderRectFilledRangeH() // - RenderRectFilledWithHole() @@ -3797,27 +3801,6 @@ void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float draw_list->PathStroke(col, 0, thickness); } -void ImGui::RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) -{ - if (mouse_cursor == ImGuiMouseCursor_None) - return; - IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); - - ImFontAtlas* font_atlas = draw_list->_Data->Font->ContainerAtlas; - ImVec2 offset, size, uv[4]; - if (font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2])) - { - pos -= offset; - ImTextureID tex_id = font_atlas->TexID; - draw_list->PushTextureID(tex_id); - draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow); - draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow); - draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border); - draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill); - draw_list->PopTextureID(); - } -} - // Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side. void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) { @@ -3900,7 +3883,7 @@ void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, Im draw_list->PathFillConvex(col); } -void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding) +void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding) { const bool fill_L = (inner.Min.x > outer.Min.x); const bool fill_R = (inner.Max.x < outer.Max.x); diff --git a/imgui-sys/third-party/imgui-master/imgui/imgui_internal.h b/imgui-sys/third-party/imgui-master/imgui/imgui_internal.h index 73d58f6b8..816141e40 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imgui_internal.h +++ b/imgui-sys/third-party/imgui-master/imgui/imgui_internal.h @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (internal structures/api) // You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility! @@ -18,6 +18,7 @@ Index of this file: // [SECTION] Generic helpers // [SECTION] ImDrawList support // [SECTION] Widgets support: flags, enums, data structures +// [SECTION] Inputs support // [SECTION] Clipper support // [SECTION] Navigation support // [SECTION] Columns support @@ -25,6 +26,7 @@ Index of this file: // [SECTION] Docking support // [SECTION] Viewport support // [SECTION] Settings support +// [SECTION] Localization support // [SECTION] Metrics, Debug tools // [SECTION] Generic context hooks // [SECTION] ImGuiContext (main imgui context) @@ -120,6 +122,7 @@ struct ImGuiDataTypeInfo; // Type information associated to a ImGuiDat struct ImGuiGroupData; // Stacked storage data for BeginGroup()/EndGroup() struct ImGuiInputTextState; // Internal state of the currently focused/edited text input box struct ImGuiLastItemData; // Status storage for last submitted items +struct ImGuiLocEntry; // A localization entry. struct ImGuiMenuColumns; // Simple column measurement, currently used for MenuItem() only struct ImGuiNavItemData; // Result of a gamepad/keyboard directional navigation move query result struct ImGuiMetricsConfig; // Storage for ShowMetricsWindow() and DebugNodeXXX() functions @@ -135,6 +138,7 @@ struct ImGuiTabBar; // Storage for a tab bar struct ImGuiTabItem; // Storage for a tab item (within a tab bar) struct ImGuiTable; // Storage for a table struct ImGuiTableColumn; // Storage for one column of a table +struct ImGuiTableInstanceData; // Storage for one instance of a same table struct ImGuiTableTempData; // Temporary storage for one table (one per table in the stack), shared between tables. struct ImGuiTableSettings; // Storage for a table .ini settings struct ImGuiTableColumnsSettings; // Storage for a column .ini settings @@ -142,14 +146,19 @@ struct ImGuiWindow; // Storage for one window struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame, in practice we currently keep it for each window) struct ImGuiWindowSettings; // Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during this session) +// Enumerations // Use your programming IDE "Go to definition" facility on the names of the center columns to find the actual flags/enum lists. +enum ImGuiLocKey : int; // -> enum ImGuiLocKey // Enum: a localization entry for translation. typedef int ImGuiLayoutType; // -> enum ImGuiLayoutType_ // Enum: Horizontal or vertical + +// Flags typedef int ImGuiActivateFlags; // -> enum ImGuiActivateFlags_ // Flags: for navigation/focus function (will be for ActivateItem() later) -typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag() -typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for DC.LastItemStatusFlags +typedef int ImGuiDebugLogFlags; // -> enum ImGuiDebugLogFlags_ // Flags: for ShowDebugLogWindow(), g.DebugLogFlags +typedef int ImGuiInputFlags; // -> enum ImGuiInputFlags_ // Flags: for IsKeyPressed(), IsMouseClicked(), SetKeyOwner(), SetItemKeyOwner() etc. +typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag(), g.LastItemData.InFlags +typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for g.LastItemData.StatusFlags typedef int ImGuiOldColumnFlags; // -> enum ImGuiOldColumnFlags_ // Flags: for BeginColumns() typedef int ImGuiNavHighlightFlags; // -> enum ImGuiNavHighlightFlags_ // Flags: for RenderNavHighlight() -typedef int ImGuiNavDirSourceFlags; // -> enum ImGuiNavDirSourceFlags_ // Flags: for GetNavInputAmount2d() typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions @@ -191,23 +200,27 @@ namespace ImStb // [SECTION] Macros //----------------------------------------------------------------------------- -// Debug Logging -#ifndef IMGUI_DEBUG_LOG -#define IMGUI_DEBUG_LOG(_FMT,...) printf("[%05d] " _FMT, GImGui->FrameCount, __VA_ARGS__) +// Debug Printing Into TTY +// (since IMGUI_VERSION_NUM >= 18729: IMGUI_DEBUG_LOG was reworked into IMGUI_DEBUG_PRINTF (and removed framecount from it). If you were using a #define IMGUI_DEBUG_LOG please rename) +#ifndef IMGUI_DEBUG_PRINTF +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#define IMGUI_DEBUG_PRINTF(_FMT,...) printf(_FMT, __VA_ARGS__) +#else +#define IMGUI_DEBUG_PRINTF(_FMT,...) +#endif #endif -// Debug Logging for selected systems. Remove the '((void)0) //' to enable. -//#define IMGUI_DEBUG_LOG_POPUP IMGUI_DEBUG_LOG // Enable log -//#define IMGUI_DEBUG_LOG_NAV IMGUI_DEBUG_LOG // Enable log -#define IMGUI_DEBUG_LOG_POPUP(...) ((void)0) // Disable log -#define IMGUI_DEBUG_LOG_NAV(...) ((void)0) // Disable log +// Debug Logging for ShowDebugLogWindow(). This is designed for relatively rare events so please don't spam. +#define IMGUI_DEBUG_LOG(...) ImGui::DebugLog(__VA_ARGS__) +#define IMGUI_DEBUG_LOG_ACTIVEID(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventActiveId) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_FOCUS(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventFocus) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_POPUP(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventPopup) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_NAV(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventNav) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_CLIPPER(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventClipper) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_IO(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) // Static Asserts -#if (__cplusplus >= 201100) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201100) #define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") -#else -#define IM_STATIC_ASSERT(_COND) typedef char static_assertion_##__line__[(_COND)?1:-1] -#endif // "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much. // We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code. @@ -231,8 +244,10 @@ namespace ImStb #else #define IM_NEWLINE "\n" #endif +#ifndef IM_TABSIZE // Until we move this to runtime and/or add proper tab support, at least allow users to compile-time override #define IM_TABSIZE (4) -#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + (_ALIGN - 1)) & ~(_ALIGN - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8 +#endif +#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + ((_ALIGN) - 1)) & ~((_ALIGN) - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8 #define IM_F32_TO_INT8_UNBOUND(_VAL) ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f))) // Unsaturated, for display purpose #define IM_F32_TO_INT8_SAT(_VAL) ((int)(ImSaturate(_VAL) * 255.0f + 0.5f)) // Saturated, always output 0..255 #define IM_FLOOR(_VAL) ((float)(int)(_VAL)) // ImFloor() is not inlined in MSVC debug builds @@ -279,7 +294,8 @@ namespace ImStb // - Helpers: Hashing // - Helpers: Sorting // - Helpers: Bit manipulation -// - Helpers: String, Formatting +// - Helpers: String +// - Helpers: Formatting // - Helpers: UTF-8 <> wchar conversions // - Helpers: ImVec2/ImVec4 operators // - Helpers: Maths @@ -292,14 +308,12 @@ namespace ImStb // - Helper: ImSpan<>, ImSpanAllocator<> // - Helper: ImPool<> // - Helper: ImChunkStream<> +// - Helper: ImGuiTextIndex //----------------------------------------------------------------------------- // Helpers: Hashing IMGUI_API ImGuiID ImHashData(const void* data, size_t data_size, ImU32 seed = 0); IMGUI_API ImGuiID ImHashStr(const char* data, size_t data_size = 0, ImU32 seed = 0); -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS -static inline ImGuiID ImHash(const void* data, int size, ImU32 seed = 0) { return size ? ImHashData(data, (size_t)size, seed) : ImHashStr((const char*)data, 0, seed); } // [moved to ImHashStr/ImHashData in 1.68] -#endif // Helpers: Sorting #ifndef ImQsort @@ -314,7 +328,7 @@ static inline bool ImIsPowerOfTwo(int v) { return v != 0 && (v & static inline bool ImIsPowerOfTwo(ImU64 v) { return v != 0 && (v & (v - 1)) == 0; } static inline int ImUpperPowerOfTwo(int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; } -// Helpers: String, Formatting +// Helpers: String IMGUI_API int ImStricmp(const char* str1, const char* str2); IMGUI_API int ImStrnicmp(const char* str1, const char* str2, size_t count); IMGUI_API void ImStrncpy(char* dst, const char* src, size_t count); @@ -327,14 +341,23 @@ IMGUI_API const ImWchar*ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* bu IMGUI_API const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); IMGUI_API void ImStrTrimBlanks(char* str); IMGUI_API const char* ImStrSkipBlank(const char* str); +IM_MSVC_RUNTIME_CHECKS_OFF +static inline char ImToUpper(char c) { return (c >= 'a' && c <= 'z') ? c &= ~32 : c; } +static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } +static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Formatting IMGUI_API int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) IM_FMTARGS(3); IMGUI_API int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) IM_FMTLIST(3); IMGUI_API const char* ImParseFormatFindStart(const char* format); IMGUI_API const char* ImParseFormatFindEnd(const char* format); IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); +IMGUI_API void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size); IMGUI_API int ImParseFormatPrecision(const char* format, int default_value); -static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } -static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } // Helpers: UTF-8 <> wchar conversions IMGUI_API const char* ImTextCharToUtf8(char out_buf[5], unsigned int c); // return out_buf @@ -441,8 +464,9 @@ static inline float ImLengthSqr(const ImVec2& lhs) static inline float ImLengthSqr(const ImVec4& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y) + (lhs.z * lhs.z) + (lhs.w * lhs.w); } static inline float ImInvLength(const ImVec2& lhs, float fail_value) { float d = (lhs.x * lhs.x) + (lhs.y * lhs.y); if (d > 0.0f) return ImRsqrt(d); return fail_value; } static inline float ImFloor(float f) { return (float)(int)(f); } -static inline float ImFloorSigned(float f) { return (float)((f >= 0 || (int)f == f) ? (int)f : (int)f - 1); } // Decent replacement for floorf() +static inline float ImFloorSigned(float f) { return (float)((f >= 0 || (float)(int)f == f) ? (int)f : (int)f - 1); } // Decent replacement for floorf() static inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2((float)(int)(v.x), (float)(int)(v.y)); } +static inline ImVec2 ImFloorSigned(const ImVec2& v) { return ImVec2(ImFloorSigned(v.x), ImFloorSigned(v.y)); } static inline int ImModPositive(int a, int b) { return (a + b) % b; } static inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; } static inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); } @@ -469,17 +493,17 @@ IM_MSVC_RUNTIME_CHECKS_OFF struct ImVec1 { float x; - ImVec1() { x = 0.0f; } - ImVec1(float _x) { x = _x; } + constexpr ImVec1() : x(0.0f) { } + constexpr ImVec1(float _x) : x(_x) { } }; // Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage) struct ImVec2ih { short x, y; - ImVec2ih() { x = y = 0; } - ImVec2ih(short _x, short _y) { x = _x; y = _y; } - explicit ImVec2ih(const ImVec2& rhs) { x = (short)rhs.x; y = (short)rhs.y; } + constexpr ImVec2ih() : x(0), y(0) {} + constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {} + constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {} }; // Helper: ImRect (2D axis aligned bounding-box) @@ -489,10 +513,10 @@ struct IMGUI_API ImRect ImVec2 Min; // Upper-left ImVec2 Max; // Lower-right - ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} - ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} - ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} - ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} + constexpr ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} + constexpr ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} + constexpr ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} + constexpr ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + Max.y) * 0.5f); } ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); } @@ -540,17 +564,18 @@ inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on ran // Helper: ImBitArray class (wrapper over ImBitArray functions) // Store 1-bit per value. -template -struct IMGUI_API ImBitArray +template +struct ImBitArray { ImU32 Storage[(BITCOUNT + 31) >> 5]; ImBitArray() { ClearAllBits(); } void ClearAllBits() { memset(Storage, 0, sizeof(Storage)); } void SetAllBits() { memset(Storage, 255, sizeof(Storage)); } - bool TestBit(int n) const { IM_ASSERT(n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } - void SetBit(int n) { IM_ASSERT(n < BITCOUNT); ImBitArraySetBit(Storage, n); } - void ClearBit(int n) { IM_ASSERT(n < BITCOUNT); ImBitArrayClearBit(Storage, n); } - void SetBitRange(int n, int n2) { ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2) + bool TestBit(int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } + void SetBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArraySetBit(Storage, n); } + void ClearBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArrayClearBit(Storage, n); } + void SetBitRange(int n, int n2) { n += OFFSET; n2 += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT && n2 > n && n2 <= BITCOUNT); ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2) + bool operator[](int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } }; // Helper: ImBitVector @@ -621,7 +646,7 @@ struct ImSpanAllocator // Honor constructor/destructor. Add/remove invalidate all pointers. Indexes have the same lifetime as the associated object. typedef int ImPoolIdx; template -struct IMGUI_API ImPool +struct ImPool { ImVector Buf; // Contiguous data ImGuiStorage Map; // ID->Index @@ -658,7 +683,7 @@ struct IMGUI_API ImPool // We store the chunk size first, and align the final size on 4 bytes boundaries. // The tedious/zealous amount of casting is to avoid -Wcast-align warnings. template -struct IMGUI_API ImChunkStream +struct ImChunkStream { ImVector Buf; @@ -676,6 +701,20 @@ struct IMGUI_API ImChunkStream }; +// Helper: ImGuiTextIndex<> +// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. +struct ImGuiTextIndex +{ + ImVector LineOffsets; + int EndOffset = 0; // Because we don't own text buffer we need to maintain EndOffset (may bake in LineOffsets?) + + void clear() { LineOffsets.clear(); EndOffset = 0; } + int size() { return LineOffsets.Size; } + const char* get_line_begin(const char* base, int n) { return base + LineOffsets[n]; } + const char* get_line_end(const char* base, int n) { return base + (n + 1 < LineOffsets.Size ? (LineOffsets[n + 1] - 1) : EndOffset); } + void append(const char* base, int old_size, int new_size); +}; + //----------------------------------------------------------------------------- // [SECTION] ImDrawList support //----------------------------------------------------------------------------- @@ -690,7 +729,6 @@ struct IMGUI_API ImChunkStream // // Rendering circles with an odd number of segments, while mathematically correct will produce // asymmetrical results on the raster grid. Therefore we're rounding N to next even number (7->8, 8->8, 9->10 etc.) -// #define IM_ROUNDUP_TO_EVEN(_V) ((((_V) + 1) / 2) * 2) #define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN 4 #define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX 512 @@ -718,6 +756,9 @@ struct IMGUI_API ImDrawListSharedData ImVec4 ClipRectFullscreen; // Value for PushClipRectFullscreen() ImDrawListFlags InitialFlags; // Initial flags at the beginning of the frame (it is possible to alter flags on a per-drawlist basis afterwards) + // [Internal] Temp write buffer + ImVector TempBuffer; + // [Internal] Lookup tables ImVec2 ArcFastVtx[IM_DRAWLIST_ARCFAST_TABLE_SIZE]; // Sample points on the quarter of the circle. float ArcFastRadiusCutoff; // Cutoff radius after which arc drawing will fallback to slower PathArcTo() @@ -742,10 +783,14 @@ struct ImDrawDataBuilder // [SECTION] Widgets support: flags, enums, data structures //----------------------------------------------------------------------------- -// Transient per-window flags, reset at the beginning of the frame. For child window, inherited from parent on first Begin(). +// Flags used by upcoming items +// - input: PushItemFlag() manipulates g.CurrentItemFlags, ItemAdd() calls may add extra flags. +// - output: stored in g.LastItemData.InFlags +// Current window shared by all windows. // This is going to be exposed in imgui.h when stabilized enough. enum ImGuiItemFlags_ { + // Controlled by user ImGuiItemFlags_None = 0, ImGuiItemFlags_NoTabStop = 1 << 0, // false // Disable keyboard tabbing (FIXME: should merge with _NoNav) ImGuiItemFlags_ButtonRepeat = 1 << 1, // false // Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings. @@ -755,10 +800,14 @@ enum ImGuiItemFlags_ ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, // false // Disable MenuItem/Selectable() automatically closing their popup window ImGuiItemFlags_MixedValue = 1 << 6, // false // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets) ImGuiItemFlags_ReadOnly = 1 << 7, // false // [ALPHA] Allow hovering interactions but underlying value is not changed. - ImGuiItemFlags_Inputable = 1 << 8 // false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature. + ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, // false // Disable hoverable check in ItemHoverable() + + // Controlled by widget code + ImGuiItemFlags_Inputable = 1 << 10, // false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature. }; -// Storage for LastItem data +// Status flags for an already submitted item +// - output: stored in g.LastItemData.StatusFlags enum ImGuiItemStatusFlags_ { ImGuiItemStatusFlags_None = 0, @@ -770,14 +819,14 @@ enum ImGuiItemStatusFlags_ ImGuiItemStatusFlags_HasDeactivated = 1 << 5, // Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag. ImGuiItemStatusFlags_Deactivated = 1 << 6, // Only valid if ImGuiItemStatusFlags_HasDeactivated is set. ImGuiItemStatusFlags_HoveredWindow = 1 << 7, // Override the HoveredWindow test to allow cross-window hover testing. - ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8 // Set when the Focusable item just got focused by Tabbing (FIXME: to be removed soon) + ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, // Set when the Focusable item just got focused by Tabbing (FIXME: to be removed soon) + ImGuiItemStatusFlags_Visible = 1 << 9, // [WIP] Set when item is overlapping the current clipping rectangle (Used internally. Please don't use yet: API/system will change as we refactor Itemadd()). #ifdef IMGUI_ENABLE_TEST_ENGINE - , // [imgui_tests only] - ImGuiItemStatusFlags_Openable = 1 << 20, // + ImGuiItemStatusFlags_Openable = 1 << 20, // Item is an openable (e.g. TreeNode) ImGuiItemStatusFlags_Opened = 1 << 21, // - ImGuiItemStatusFlags_Checkable = 1 << 22, // - ImGuiItemStatusFlags_Checked = 1 << 23 // + ImGuiItemStatusFlags_Checkable = 1 << 22, // Item is a checkable (e.g. CheckBox, MenuItem) + ImGuiItemStatusFlags_Checked = 1 << 23, // #endif }; @@ -787,7 +836,7 @@ enum ImGuiInputTextFlagsPrivate_ // [Internal] ImGuiInputTextFlags_Multiline = 1 << 26, // For internal use by InputTextMultiline() ImGuiInputTextFlags_NoMarkEdited = 1 << 27, // For internal use by functions using InputText() before reformatting data - ImGuiInputTextFlags_MergedItem = 1 << 28 // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match. + ImGuiInputTextFlags_MergedItem = 1 << 28, // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match. }; // Extend ImGuiButtonFlags_ @@ -807,23 +856,25 @@ enum ImGuiButtonFlagsPrivate_ ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine ImGuiButtonFlags_NoKeyModifiers = 1 << 16, // disable mouse interaction if a key modifier is held ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only) - ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated + ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated (FIXME: this is essentially used everytime an item uses ImGuiItemFlags_NoNav, but because legacy specs don't requires LastItemData to be set ButtonBehavior(), we can't poll g.LastItemData.InFlags) ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, // don't report as hovered when nav focus is on this item + ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, // don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, // don't test key/input owner when polling the key (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, - ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, }; // Extend ImGuiComboFlags_ enum ImGuiComboFlagsPrivate_ { - ImGuiComboFlags_CustomPreview = 1 << 20 // enable BeginComboPreview() + ImGuiComboFlags_CustomPreview = 1 << 20, // enable BeginComboPreview() }; // Extend ImGuiSliderFlags_ enum ImGuiSliderFlagsPrivate_ { ImGuiSliderFlags_Vertical = 1 << 20, // Should this slider be orientated vertically? - ImGuiSliderFlags_ReadOnly = 1 << 21 + ImGuiSliderFlags_ReadOnly = 1 << 21, }; // Extend ImGuiSelectableFlags_ @@ -837,33 +888,34 @@ enum ImGuiSelectableFlagsPrivate_ ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, // Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus) ImGuiSelectableFlags_DrawHoveredWhenHeld = 1 << 25, // Always show active when held, even is not hovered. This concept could probably be renamed/formalized somehow. ImGuiSelectableFlags_SetNavIdOnHover = 1 << 26, // Set Nav/Focus ID on mouse hover (used by MenuItem) - ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 27 // Disable padding each side with ItemSpacing * 0.5f + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 27, // Disable padding each side with ItemSpacing * 0.5f + ImGuiSelectableFlags_NoSetKeyOwner = 1 << 28, // Don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) }; // Extend ImGuiTreeNodeFlags_ enum ImGuiTreeNodeFlagsPrivate_ { - ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20 + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, }; enum ImGuiSeparatorFlags_ { - ImGuiSeparatorFlags_None = 0, - ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar - ImGuiSeparatorFlags_Vertical = 1 << 1, - ImGuiSeparatorFlags_SpanAllColumns = 1 << 2 + ImGuiSeparatorFlags_None = 0, + ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar + ImGuiSeparatorFlags_Vertical = 1 << 1, + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, }; enum ImGuiTextFlags_ { - ImGuiTextFlags_None = 0, - ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0 + ImGuiTextFlags_None = 0, + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, }; enum ImGuiTooltipFlags_ { - ImGuiTooltipFlags_None = 0, - ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0 // Override will clear/ignore previously submitted tooltip (defaults to append) + ImGuiTooltipFlags_None = 0, + ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0, // Override will clear/ignore previously submitted tooltip (defaults to append) }; // FIXME: this is in development, not exposed/functional as a generic feature yet. @@ -880,7 +932,7 @@ enum ImGuiLogType ImGuiLogType_TTY, ImGuiLogType_File, ImGuiLogType_Buffer, - ImGuiLogType_Clipboard + ImGuiLogType_Clipboard, }; // X/Y enums are fixed to 0/1 so they may be used to index ImVec2 @@ -894,36 +946,14 @@ enum ImGuiAxis enum ImGuiPlotType { ImGuiPlotType_Lines, - ImGuiPlotType_Histogram -}; - -enum ImGuiInputSource -{ - ImGuiInputSource_None = 0, - ImGuiInputSource_Mouse, - ImGuiInputSource_Keyboard, - ImGuiInputSource_Gamepad, - ImGuiInputSource_Nav, // Stored in g.ActiveIdSource only - ImGuiInputSource_Clipboard, // Currently only used by InputText() - ImGuiInputSource_COUNT -}; - -// FIXME-NAV: Clarify/expose various repeat delay/rate -enum ImGuiInputReadMode -{ - ImGuiInputReadMode_Down, - ImGuiInputReadMode_Pressed, - ImGuiInputReadMode_Released, - ImGuiInputReadMode_Repeat, - ImGuiInputReadMode_RepeatSlow, - ImGuiInputReadMode_RepeatFast + ImGuiPlotType_Histogram, }; enum ImGuiPopupPositionPolicy { ImGuiPopupPositionPolicy_Default, ImGuiPopupPositionPolicy_ComboBox, - ImGuiPopupPositionPolicy_Tooltip + ImGuiPopupPositionPolicy_Tooltip, }; struct ImGuiDataTypeTempStorage @@ -945,14 +975,14 @@ enum ImGuiDataTypePrivate_ { ImGuiDataType_String = ImGuiDataType_COUNT + 1, ImGuiDataType_Pointer, - ImGuiDataType_ID + ImGuiDataType_ID, }; // Stacked color modifier, backup of modified data so we can restore it struct ImGuiColorMod { - ImGuiCol Col; - ImVec4 BackupValue; + ImGuiCol Col; + ImVec4 BackupValue; }; // Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable. @@ -1029,7 +1059,7 @@ struct IMGUI_API ImGuiInputTextState bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!) bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection bool Edited; // edited this frame - ImGuiInputTextFlags Flags; // copy of InputText() flags + ImGuiInputTextFlags Flags; // copy of InputText() flags. may be used to check if e.g. ImGuiInputTextFlags_Password is set. ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } void ClearText() { CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); } @@ -1054,13 +1084,14 @@ struct ImGuiPopupData { ImGuiID PopupId; // Set on OpenPopup() ImGuiWindow* Window; // Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup() - ImGuiWindow* SourceWindow; // Set on OpenPopup() copy of NavWindow at the time of opening the popup + ImGuiWindow* BackupNavWindow;// Set on OpenPopup(), a NavWindow that will be restored on popup close + int ParentNavLayer; // Resolved on BeginPopup(). Actually a ImGuiNavLayer type (declared down below), initialized to -1 which is not part of an enum, but serves well-enough as "not any of layers" value int OpenFrameCount; // Set on OpenPopup() ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) ImVec2 OpenPopupPos; // Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse) ImVec2 OpenMousePos; // Set on OpenPopup(), copy of mouse position at the time of opening popup - ImGuiPopupData() { memset(this, 0, sizeof(*this)); OpenFrameCount = -1; } + ImGuiPopupData() { memset(this, 0, sizeof(*this)); ParentNavLayer = OpenFrameCount = -1; } }; enum ImGuiNextWindowDataFlags_ @@ -1073,7 +1104,7 @@ enum ImGuiNextWindowDataFlags_ ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, ImGuiNextWindowDataFlags_HasFocus = 1 << 5, ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, - ImGuiNextWindowDataFlags_HasScroll = 1 << 7 + ImGuiNextWindowDataFlags_HasScroll = 1 << 7, }; // Storage for SetNexWindow** functions @@ -1103,7 +1134,7 @@ enum ImGuiNextItemDataFlags_ { ImGuiNextItemDataFlags_None = 0, ImGuiNextItemDataFlags_HasWidth = 1 << 0, - ImGuiNextItemDataFlags_HasOpen = 1 << 1 + ImGuiNextItemDataFlags_HasOpen = 1 << 1, }; struct ImGuiNextItemData @@ -1160,6 +1191,7 @@ struct ImGuiShrinkWidthItem { int Index; float Width; + float InitialWidth; }; struct ImGuiPtrOrIndex @@ -1171,6 +1203,174 @@ struct ImGuiPtrOrIndex ImGuiPtrOrIndex(int index) { Ptr = NULL; Index = index; } }; +//----------------------------------------------------------------------------- +// [SECTION] Inputs support +//----------------------------------------------------------------------------- + +typedef ImBitArray ImBitArrayForNamedKeys; + +// [Internal] Key ranges +#define ImGuiKey_LegacyNativeKey_BEGIN 0 +#define ImGuiKey_LegacyNativeKey_END 512 +#define ImGuiKey_Keyboard_BEGIN (ImGuiKey_NamedKey_BEGIN) +#define ImGuiKey_Keyboard_END (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_BEGIN (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_END (ImGuiKey_GamepadRStickDown + 1) +#define ImGuiKey_Mouse_BEGIN (ImGuiKey_MouseLeft) +#define ImGuiKey_Mouse_END (ImGuiKey_MouseWheelY + 1) +#define ImGuiKey_Aliases_BEGIN (ImGuiKey_Mouse_BEGIN) +#define ImGuiKey_Aliases_END (ImGuiKey_Mouse_END) + +// [Internal] Named shortcuts for Navigation +#define ImGuiKey_NavKeyboardTweakSlow ImGuiMod_Ctrl +#define ImGuiKey_NavKeyboardTweakFast ImGuiMod_Shift +#define ImGuiKey_NavGamepadTweakSlow ImGuiKey_GamepadL1 +#define ImGuiKey_NavGamepadTweakFast ImGuiKey_GamepadR1 +#define ImGuiKey_NavGamepadActivate ImGuiKey_GamepadFaceDown +#define ImGuiKey_NavGamepadCancel ImGuiKey_GamepadFaceRight +#define ImGuiKey_NavGamepadMenu ImGuiKey_GamepadFaceLeft +#define ImGuiKey_NavGamepadInput ImGuiKey_GamepadFaceUp + +enum ImGuiInputEventType +{ + ImGuiInputEventType_None = 0, + ImGuiInputEventType_MousePos, + ImGuiInputEventType_MouseWheel, + ImGuiInputEventType_MouseButton, + ImGuiInputEventType_Key, + ImGuiInputEventType_Text, + ImGuiInputEventType_Focus, + ImGuiInputEventType_COUNT +}; + +enum ImGuiInputSource +{ + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, + ImGuiInputSource_Keyboard, + ImGuiInputSource_Gamepad, + ImGuiInputSource_Clipboard, // Currently only used by InputText() + ImGuiInputSource_Nav, // Stored in g.ActiveIdSource only + ImGuiInputSource_COUNT +}; + +// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension? +// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor' +struct ImGuiInputEventMousePos { float PosX, PosY; }; +struct ImGuiInputEventMouseWheel { float WheelX, WheelY; }; +struct ImGuiInputEventMouseButton { int Button; bool Down; }; +struct ImGuiInputEventKey { ImGuiKey Key; bool Down; float AnalogValue; }; +struct ImGuiInputEventText { unsigned int Char; }; +struct ImGuiInputEventAppFocused { bool Focused; }; + +struct ImGuiInputEvent +{ + ImGuiInputEventType Type; + ImGuiInputSource Source; + union + { + ImGuiInputEventMousePos MousePos; // if Type == ImGuiInputEventType_MousePos + ImGuiInputEventMouseWheel MouseWheel; // if Type == ImGuiInputEventType_MouseWheel + ImGuiInputEventMouseButton MouseButton; // if Type == ImGuiInputEventType_MouseButton + ImGuiInputEventKey Key; // if Type == ImGuiInputEventType_Key + ImGuiInputEventText Text; // if Type == ImGuiInputEventType_Text + ImGuiInputEventAppFocused AppFocused; // if Type == ImGuiInputEventType_Focus + }; + bool AddedByTestEngine; + + ImGuiInputEvent() { memset(this, 0, sizeof(*this)); } +}; + +// Input function taking an 'ImGuiID owner_id' argument defaults to (ImGuiKeyOwner_Any == 0) aka don't test ownership, which matches legacy behavior. +#define ImGuiKeyOwner_Any ((ImGuiID)0) // Accept key that have an owner, UNLESS a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. +#define ImGuiKeyOwner_None ((ImGuiID)-1) // Require key to have no owner. + +typedef ImS16 ImGuiKeyRoutingIndex; + +// Routing table entry (sizeof() == 16 bytes) +struct ImGuiKeyRoutingData +{ + ImGuiKeyRoutingIndex NextEntryIndex; + ImU16 Mods; // Technically we'd only need 4 bits but for simplify we store ImGuiMod_ values which need 16 bits. + ImU8 RoutingNextScore; // Lower is better (0: perfect score) + ImGuiID RoutingCurr; + ImGuiID RoutingNext; + + ImGuiKeyRoutingData() { NextEntryIndex = -1; Mods = 0; RoutingNextScore = 255; RoutingCurr = RoutingNext = ImGuiKeyOwner_None; } +}; + +// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching. +// Stored in main context (1 instance) +struct ImGuiKeyRoutingTable +{ + ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; // Index of first entry in Entries[] + ImVector Entries; + ImVector EntriesNext; // Double-buffer to avoid reallocation (could use a shared buffer) + + ImGuiKeyRoutingTable() { Clear(); } + void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Index); n++) Index[n] = -1; Entries.clear(); EntriesNext.clear(); } +}; + +// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features) +// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData. +struct ImGuiKeyOwnerData +{ + ImGuiID OwnerCurr; + ImGuiID OwnerNext; + bool LockThisFrame; // Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame. + bool LockUntilRelease; // Reading this key requires explicit owner id (until key is released). Set by ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well. + + ImGuiKeyOwnerData() { OwnerCurr = OwnerNext = ImGuiKeyOwner_None; LockThisFrame = LockUntilRelease = false; } +}; + +// Flags for extended versions of IsKeyPressed(), IsMouseClicked(), Shortcut(), SetKeyOwner(), SetItemKeyOwner() +// Don't mistake with ImGuiInputTextFlags! (for ImGui::InputText() function) +enum ImGuiInputFlags_ +{ + // Flags for IsKeyPressed(), IsMouseClicked(), Shortcut() + ImGuiInputFlags_None = 0, + ImGuiInputFlags_Repeat = 1 << 0, // Return true on successive repeats. Default for legacy IsKeyPressed(). NOT Default for legacy IsMouseClicked(). MUST BE == 1. + ImGuiInputFlags_RepeatRateDefault = 1 << 1, // Repeat rate: Regular (default) + ImGuiInputFlags_RepeatRateNavMove = 1 << 2, // Repeat rate: Fast + ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, // Repeat rate: Faster + ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, + + // Flags for SetItemKeyOwner() + ImGuiInputFlags_CondHovered = 1 << 4, // Only set if item is hovered (default to both) + ImGuiInputFlags_CondActive = 1 << 5, // Only set if item is active (default to both) + ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + + // Flags for SetKeyOwner(), SetItemKeyOwner() + ImGuiInputFlags_LockThisFrame = 1 << 6, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared at end of frame. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + ImGuiInputFlags_LockUntilRelease = 1 << 7, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared when the key is released or at end of each frame if key is released. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + + // Routing policies for Shortcut() + low-level SetShortcutRouting() + // - The general idea is that several callers register interest in a shortcut, and only one owner gets it. + // - When a policy (other than _RouteAlways) is set, Shortcut() will register itself with SetShortcutRouting(), + // allowing the system to decide where to route the input among other route-aware calls. + // - Shortcut() uses ImGuiInputFlags_RouteFocused by default: meaning that a simple Shortcut() poll + // will register a route and only succeed when parent window is in the focus stack and if no-one + // with a higher priority is claiming the shortcut. + // - Using ImGuiInputFlags_RouteAlways is roughly equivalent to doing e.g. IsKeyPressed(key) + testing mods. + // - Priorities: GlobalHigh > Focused (when owner is active item) > Global > Focused (when focused window) > GlobalLow. + // - Can select only 1 policy among all available. + ImGuiInputFlags_RouteFocused = 1 << 8, // (Default) Register focused route: Accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window. + ImGuiInputFlags_RouteGlobalLow = 1 << 9, // Register route globally (lowest priority: unless a focused window or active item registered the route) -> recommended Global priority. + ImGuiInputFlags_RouteGlobal = 1 << 10, // Register route globally (medium priority: unless an active item registered the route, e.g. CTRL+A registered by InputText). + ImGuiInputFlags_RouteGlobalHigh = 1 << 11, // Register route globally (highest priority: unlikely you need to use that: will interfere with every active items) + ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, // _Always not part of this! + ImGuiInputFlags_RouteAlways = 1 << 12, // Do not register route, poll keys directly. + ImGuiInputFlags_RouteUnlessBgFocused= 1 << 13, // Global routes will not be applied if underlying background/void is focused (== no Dear ImGui windows are focused). Useful for overlay applications. + ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, + + // [Internal] Mask of which function support which flags + ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, + ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, + ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, + ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, +}; + //----------------------------------------------------------------------------- // [SECTION] Clipper support //----------------------------------------------------------------------------- @@ -1209,7 +1409,7 @@ enum ImGuiActivateFlags_ ImGuiActivateFlags_None = 0, ImGuiActivateFlags_PreferInput = 1 << 0, // Favor activation that requires keyboard text input (e.g. for Slider/Drag). Default if keyboard is available. ImGuiActivateFlags_PreferTweak = 1 << 1, // Favor activation for tweaking with arrows or gamepad (e.g. for Slider/Drag). Default if keyboard is not available. - ImGuiActivateFlags_TryToPreserveState = 1 << 2 // Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection) + ImGuiActivateFlags_TryToPreserveState = 1 << 2, // Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection) }; // Early work-in-progress API for ScrollToItem() @@ -1224,7 +1424,7 @@ enum ImGuiScrollFlags_ ImGuiScrollFlags_AlwaysCenterY = 1 << 5, // Always center the result item on Y axis [default for Y axis for appearing window) ImGuiScrollFlags_NoScrollParent = 1 << 6, // Disable forwarding scrolling to parent window if required to keep item/rect visible (only scroll window the function was applied to). ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, - ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY + ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, }; enum ImGuiNavHighlightFlags_ @@ -1233,16 +1433,7 @@ enum ImGuiNavHighlightFlags_ ImGuiNavHighlightFlags_TypeDefault = 1 << 0, ImGuiNavHighlightFlags_TypeThin = 1 << 1, ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) _even_ when using the mouse. - ImGuiNavHighlightFlags_NoRounding = 1 << 3 -}; - -enum ImGuiNavDirSourceFlags_ -{ - ImGuiNavDirSourceFlags_None = 0, - ImGuiNavDirSourceFlags_RawKeyboard = 1 << 0, // Raw keyboard (not pulled from nav), faciliate use of some functions before we can unify nav and keys - ImGuiNavDirSourceFlags_Keyboard = 1 << 1, - ImGuiNavDirSourceFlags_PadDPad = 1 << 2, - ImGuiNavDirSourceFlags_PadLStick = 1 << 3 + ImGuiNavHighlightFlags_NoRounding = 1 << 3, }; enum ImGuiNavMoveFlags_ @@ -1260,13 +1451,13 @@ enum ImGuiNavMoveFlags_ ImGuiNavMoveFlags_FocusApi = 1 << 9, ImGuiNavMoveFlags_Tabbing = 1 << 10, // == Focus + Activate if item is Inputable + DontChangeNavHighlight ImGuiNavMoveFlags_Activate = 1 << 11, - ImGuiNavMoveFlags_DontSetNavHighlight = 1 << 12 // Do not alter the visible state of keyboard vs mouse nav highlight + ImGuiNavMoveFlags_DontSetNavHighlight = 1 << 12, // Do not alter the visible state of keyboard vs mouse nav highlight }; enum ImGuiNavLayer { ImGuiNavLayer_Main = 0, // Main scrolling layer - ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt/ImGuiNavInput_Menu) + ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt) ImGuiNavLayer_COUNT }; @@ -1297,24 +1488,24 @@ enum ImGuiOldColumnFlags_ ImGuiOldColumnFlags_NoResize = 1 << 1, // Disable resizing columns when clicking on the dividers ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, // Disable column width preservation when adjusting columns ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window - ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4 // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. + ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. // Obsolete names (will be removed) #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None, + ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None, ImGuiColumnsFlags_NoBorder = ImGuiOldColumnFlags_NoBorder, ImGuiColumnsFlags_NoResize = ImGuiOldColumnFlags_NoResize, ImGuiColumnsFlags_NoPreserveWidths = ImGuiOldColumnFlags_NoPreserveWidths, ImGuiColumnsFlags_NoForceWithinWindow = ImGuiOldColumnFlags_NoForceWithinWindow, - ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize + ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize, #endif }; struct ImGuiOldColumnData { - float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) + float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) float OffsetNormBeforeResize; - ImGuiOldColumnFlags Flags; // Not exposed + ImGuiOldColumnFlags Flags; // Not exposed ImRect ClipRect; ImGuiOldColumnData() { memset(this, 0, sizeof(*this)); } @@ -1423,12 +1614,51 @@ struct ImGuiSettingsHandler ImGuiSettingsHandler() { memset(this, 0, sizeof(*this)); } }; +//----------------------------------------------------------------------------- +// [SECTION] Localization support +//----------------------------------------------------------------------------- + +// This is experimental and not officially supported, it'll probably fall short of features, if/when it does we may backtrack. +enum ImGuiLocKey : int +{ + ImGuiLocKey_TableSizeOne, + ImGuiLocKey_TableSizeAllFit, + ImGuiLocKey_TableSizeAllDefault, + ImGuiLocKey_TableResetOrder, + ImGuiLocKey_WindowingMainMenuBar, + ImGuiLocKey_WindowingPopup, + ImGuiLocKey_WindowingUntitled, + ImGuiLocKey_COUNT +}; + +struct ImGuiLocEntry +{ + ImGuiLocKey Key; + const char* Text; +}; + + //----------------------------------------------------------------------------- // [SECTION] Metrics, Debug Tools //----------------------------------------------------------------------------- +enum ImGuiDebugLogFlags_ +{ + // Event types + ImGuiDebugLogFlags_None = 0, + ImGuiDebugLogFlags_EventActiveId = 1 << 0, + ImGuiDebugLogFlags_EventFocus = 1 << 1, + ImGuiDebugLogFlags_EventPopup = 1 << 2, + ImGuiDebugLogFlags_EventNav = 1 << 3, + ImGuiDebugLogFlags_EventClipper = 1 << 4, + ImGuiDebugLogFlags_EventIO = 1 << 5, + ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO, + ImGuiDebugLogFlags_OutputToTTY = 1 << 10, // Also send output to TTY +}; + struct ImGuiMetricsConfig { + bool ShowDebugLog; bool ShowStackTool; bool ShowWindowsRects; bool ShowWindowsBeginOrder; @@ -1440,14 +1670,10 @@ struct ImGuiMetricsConfig ImGuiMetricsConfig() { - ShowStackTool = false; - ShowWindowsRects = false; - ShowWindowsBeginOrder = false; - ShowTablesRects = false; + ShowDebugLog = ShowStackTool = ShowWindowsRects = ShowWindowsBeginOrder = ShowTablesRects = false; ShowDrawCmdMesh = true; ShowDrawCmdBoundingBoxes = true; - ShowWindowsRectsType = -1; - ShowTablesRectsType = -1; + ShowWindowsRectsType = ShowTablesRectsType = -1; } }; @@ -1456,7 +1682,8 @@ struct ImGuiStackLevelInfo ImGuiID ID; ImS8 QueryFrameCount; // >= 1: Query in progress bool QuerySuccess; // Obtained result from DebugHookIdInfo() - char Desc[58]; // Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) + ImGuiDataType DataType : 8; + char Desc[57]; // Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) FIXME: Now that we added CTRL+C this should be fixed. ImGuiStackLevelInfo() { memset(this, 0, sizeof(*this)); } }; @@ -1468,8 +1695,10 @@ struct ImGuiStackTool int StackLevel; // -1: query stack and resize Results, >= 0: individual stack level ImGuiID QueryId; // ID to query details for ImVector Results; + bool CopyToClipboardOnCtrlC; + float CopyToClipboardLastTime; - ImGuiStackTool() { memset(this, 0, sizeof(*this)); } + ImGuiStackTool() { memset(this, 0, sizeof(*this)); CopyToClipboardLastTime = -FLT_MAX; } }; //----------------------------------------------------------------------------- @@ -1491,7 +1720,7 @@ struct ImGuiContextHook }; //----------------------------------------------------------------------------- -// [SECTION] ImGuiContext (main imgui context) +// [SECTION] ImGuiContext (main Dear ImGui context) //----------------------------------------------------------------------------- struct ImGuiContext @@ -1499,6 +1728,8 @@ struct ImGuiContext bool Initialized; bool FontAtlasOwnedByContext; // IO.Fonts-> is owned by the ImGuiContext and will be destructed along with it. ImGuiIO IO; + ImVector InputEventsQueue; // Input events which will be tricked/written into IO structure. + ImVector InputEventsTrail; // Past input events processed in NewFrame(). This is to allow domain-specific application to access e.g mouse/pen trail. ImGuiStyle Style; ImFont* Font; // (Shortcut) == FontStack.empty() ? IO.Font : FontStack.back() float FontSize; // (Shortcut) == FontBaseSize * g.CurrentWindow->FontWindowScale == window->FontSize(). Text height for current window. @@ -1529,15 +1760,13 @@ struct ImGuiContext ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindow. ImGuiWindow* WheelingWindow; // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. ImVec2 WheelingWindowRefMousePos; - float WheelingWindowTimer; + float WheelingWindowReleaseTimer; // Item/widgets state and tracking information ImGuiID DebugHookIdInfo; // Will call core hooks: DebugHookIdInfo() from GetID functions, used by Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line] ImGuiID HoveredId; // Hovered widget, filled during the frame ImGuiID HoveredIdPreviousFrame; bool HoveredIdAllowOverlap; - bool HoveredIdUsingMouseWheel; // Hovered widget will use mouse wheel. Blocks scrolling the underlying window. - bool HoveredIdPreviousFrameUsingMouseWheel; bool HoveredIdDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0. float HoveredIdTimer; // Measure contiguous hovering time float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active @@ -1550,10 +1779,6 @@ struct ImGuiContext bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch. bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state. bool ActiveIdHasBeenEditedThisFrame; - bool ActiveIdUsingMouseWheel; // Active widget will want to read mouse wheel. Blocks scrolling the underlying window. - ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) - ImU32 ActiveIdUsingNavInputMask; // Active widget will want to read those nav inputs. - ImU64 ActiveIdUsingKeyInputMask; // Active widget will want to read those key inputs. When we grow the ImGuiKey enum we'll need to either to order the enum to make useful keys come first, either redesign this into e.g. a small array. ImVec2 ActiveIdClickOffset; // Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior) ImGuiWindow* ActiveIdWindow; ImGuiInputSource ActiveIdSource; // Activating with mouse or nav (gamepad/keyboard) @@ -1565,8 +1790,22 @@ struct ImGuiContext ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation. float LastActiveIdTimer; // Store the last non-zero ActiveId timer since the beginning of activation, useful for animation. + // [EXPERIMENTAL] Key/Input Ownership + Shortcut Routing system + // - The idea is that instead of "eating" a given key, we can link to an owner. + // - Input query can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Routing is requested ahead of time for a given chord (Key + Mods) and granted in NewFrame(). + ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; + ImGuiKeyRoutingTable KeysRoutingTable; + ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) + bool ActiveIdUsingAllKeyboardKeys; // Active widget will want to read all keyboard keys inputs. (FIXME: This is a shortcut for not taking ownership of 100+ keys but perhaps best to not have the inconsistency) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ImU32 ActiveIdUsingNavInputMask; // If you used this. Since (IMGUI_VERSION_NUM >= 18804) : 'g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel);' becomes 'SetKeyOwner(ImGuiKey_Escape, g.ActiveId) and/or SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId);' +#endif + // Next window/item data - ImGuiItemFlags CurrentItemFlags; // == g.ItemFlagsStack.back() + ImGuiID CurrentFocusScopeId; // == g.FocusScopeStack.back() + ImGuiItemFlags CurrentItemFlags; // == g.ItemFlagsStack.back() + ImGuiID DebugLocateId; // Storage for DebugLocateItemOnHover() feature: this is read by ItemAdd() so we keep it in a hot/cached location ImGuiNextItemData NextItemData; // Storage for SetNextItem** functions ImGuiLastItemData LastItemData; // Storage for last submitted item (setup by ItemAdd) ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions @@ -1575,7 +1814,7 @@ struct ImGuiContext ImVector ColorStack; // Stack for PushStyleColor()/PopStyleColor() - inherited by Begin() ImVector StyleVarStack; // Stack for PushStyleVar()/PopStyleVar() - inherited by Begin() ImVector FontStack; // Stack for PushFont()/PopFont() - inherited by Begin() - ImVector FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - not inherited by Begin(), unless child window + ImVector FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - inherited by BeginChild(), pushed into by Begin() ImVectorItemFlagsStack; // Stack for PushItemFlag()/PopItemFlag() - inherited by Begin() ImVectorGroupStack; // Stack for BeginGroup()/EndGroup() - not inherited by Begin() ImVectorOpenPopupStack; // Which popups are open (persistent) @@ -1586,17 +1825,17 @@ struct ImGuiContext ImVector Viewports; // Active viewports (Size==1 in 'master' branch). Each viewports hold their copy of ImDrawData. // Gamepad/keyboard Navigation - ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusWindow' + ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusedWindow' ImGuiID NavId; // Focused item for navigation ImGuiID NavFocusScopeId; // Identify a selection scope (selection code often wants to "clear other items" when landing on an item of the selection set) - ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0, also set when calling ActivateItem() - ImGuiID NavActivateDownId; // ~~ IsNavInputDown(ImGuiNavInput_Activate) ? NavId : 0 - ImGuiID NavActivatePressedId; // ~~ IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0 - ImGuiID NavActivateInputId; // ~~ IsNavInputPressed(ImGuiNavInput_Input) ? NavId : 0; ImGuiActivateFlags_PreferInput will be set and NavActivateId will be 0. + ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && (IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_NavGamepadActivate)) ? NavId : 0, also set when calling ActivateItem() + ImGuiID NavActivateDownId; // ~~ IsKeyDown(ImGuiKey_Space) || IsKeyDown(ImGuiKey_NavGamepadActivate) ? NavId : 0 + ImGuiID NavActivatePressedId; // ~~ IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_NavGamepadActivate) ? NavId : 0 (no repeat) + ImGuiID NavActivateInputId; // ~~ IsKeyPressed(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadInput) ? NavId : 0; ImGuiActivateFlags_PreferInput will be set and NavActivateId will be 0. ImGuiActivateFlags NavActivateFlags; ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest). ImGuiID NavJustMovedToFocusScopeId; // Just navigated to this focus scope id (result of a successfully MoveRequest). - ImGuiKeyModFlags NavJustMovedToKeyMods; + ImGuiKeyChord NavJustMovedToKeyMods; ImGuiID NavNextActivateId; // Set by ActivateItem(), queued until next frame. ImGuiActivateFlags NavNextActivateFlags; ImGuiInputSource NavInputSource; // Keyboard or Gamepad mode? THIS WILL ONLY BE None or NavGamepad or NavKeyboard. @@ -1617,7 +1856,7 @@ struct ImGuiContext bool NavMoveForwardToNextFrame; ImGuiNavMoveFlags NavMoveFlags; ImGuiScrollFlags NavMoveScrollFlags; - ImGuiKeyModFlags NavMoveKeyMods; + ImGuiKeyChord NavMoveKeyMods; ImGuiDir NavMoveDir; // Direction of the move request (left/right/up/down) ImGuiDir NavMoveDirForDebug; ImGuiDir NavMoveClipDir; // FIXME-NAV: Describe the purpose of this better. Might want to rename? @@ -1632,12 +1871,16 @@ struct ImGuiContext ImGuiNavItemData NavTabbingResultFirst; // First tabbing request candidate within NavWindow and flattened hierarchy // Navigation: Windowing (CTRL+TAB for list, or Menu button + keys or directional pads to move/resize) + ImGuiKeyChord ConfigNavWindowingKeyNext; // = ImGuiMod_Ctrl | ImGuiKey_Tab, for reconfiguration (see #4828) + ImGuiKeyChord ConfigNavWindowingKeyPrev; // = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab ImGuiWindow* NavWindowingTarget; // Target window when doing CTRL+Tab (or Pad Menu + FocusPrev/Next), this window is temporarily displayed top-most! ImGuiWindow* NavWindowingTargetAnim; // Record of last valid NavWindowingTarget until DimBgRatio and NavWindowingHighlightAlpha becomes 0.0f, so the fade-out can stay on it. ImGuiWindow* NavWindowingListWindow; // Internal window actually listing the CTRL+Tab contents float NavWindowingTimer; float NavWindowingHighlightAlpha; bool NavWindowingToggleLayer; + ImVec2 NavWindowingAccumDeltaPos; + ImVec2 NavWindowingAccumDeltaSize; // Render float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list) @@ -1666,7 +1909,7 @@ struct ImGuiContext int ClipperTempDataStacked; ImVector ClipperTempData; - // Table + // Tables ImGuiTable* CurrentTable; int TablesTempDataStacked; // Temporary table data size (because we leave previous instances undestructed, we generally don't use TablesTempData.Size) ImVector TablesTempData; // Temporary table data (buffers reused/shared across instances, support nesting) @@ -1680,6 +1923,12 @@ struct ImGuiContext ImVector CurrentTabBarStack; ImVector ShrinkWidthBuffer; + // Hover Delay system + ImGuiID HoverDelayId; + ImGuiID HoverDelayIdPreviousFrame; + float HoverDelayTimer; // Currently used IsItemHovered(), generally inferred from g.HoveredIdTimer but kept uncleared until clear timer elapse. + float HoverDelayClearTimer; // Currently used IsItemHovered(): grace time before g.TooltipHoverTimer gets cleared. + // Widget state ImVec2 MouseLastValidPos; ImGuiInputTextState InputTextState; @@ -1691,6 +1940,7 @@ struct ImGuiContext ImU32 ColorEditLastColor; // RGB value with alpha set to 0. ImVec4 ColorPickerRef; // Initial/reference color at the time of opening the color picker. ImGuiComboPreviewData ComboPreviewData; + float SliderGrabClickOffset; float SliderCurrentAccum; // Accumulated slider delta when using navigation controls. bool SliderCurrentAccumDirty; // Has the accumulated slider delta changed since last time we tried to apply it? bool DragCurrentAccumDirty; @@ -1700,13 +1950,12 @@ struct ImGuiContext float DisabledAlphaBackup; // Backup for style.Alpha for BeginDisabled() short DisabledStackSize; short TooltipOverrideCount; - float TooltipSlowDelay; // Time before slow tooltips appears (FIXME: This is temporary until we merge in tooltip timer+priority work) ImVector ClipboardHandlerData; // If no custom clipboard handler is defined ImVector MenusIdSubmittedThisFrame; // A list of menu IDs that were rendered at least once // Platform support - ImVec2 PlatformImePos; // Cursor position request & last passed to the OS Input Method Editor - ImVec2 PlatformImeLastPos; + ImGuiPlatformImeData PlatformImeData; // Data updated by current frame + ImGuiPlatformImeData PlatformImeDataPrev; // Previous frame data (when changing we will call io.SetPlatformImeDataFn char PlatformLocaleDecimalPoint; // '.' or *localeconv()->decimal_point // Settings @@ -1719,6 +1968,9 @@ struct ImGuiContext ImVector Hooks; // Hooks for extensions (e.g. test engine) ImGuiID HookIdNext; // Next available HookId + // Localization + const char* LocalizationTable[ImGuiLocKey_COUNT]; + // Capture/Logging bool LogEnabled; // Currently capturing ImGuiLogType LogType; // Capture target @@ -1733,20 +1985,25 @@ struct ImGuiContext int LogDepthToExpandDefault; // Default/stored value for LogDepthMaxExpand if not specified in the LogXXX function call. // Debug Tools + ImGuiDebugLogFlags DebugLogFlags; + ImGuiTextBuffer DebugLogBuf; + ImGuiTextIndex DebugLogIndex; + ImU8 DebugLocateFrames; // For DebugLocateItemOnHover(). This is used together with DebugLocateId which is in a hot/cached spot above. bool DebugItemPickerActive; // Item picker is active (started with DebugStartItemPicker()) + ImU8 DebugItemPickerMouseButton; ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this ID ImGuiMetricsConfig DebugMetricsConfig; ImGuiStackTool DebugStackTool; // Misc - float FramerateSecPerFrame[120]; // Calculate estimate of framerate for user over the last 2 seconds. + float FramerateSecPerFrame[60]; // Calculate estimate of framerate for user over the last 60 frames.. int FramerateSecPerFrameIdx; int FramerateSecPerFrameCount; float FramerateSecPerFrameAccum; - int WantCaptureMouseNextFrame; // Explicit capture via CaptureKeyboardFromApp()/CaptureMouseFromApp() sets those flags - int WantCaptureKeyboardNextFrame; + int WantCaptureMouseNextFrame; // Explicit capture override via SetNextFrameWantCaptureMouse()/SetNextFrameWantCaptureKeyboard(). Default to -1. + int WantCaptureKeyboardNextFrame; // " int WantTextInputNextFrame; - char TempBuffer[1024 * 3 + 1]; // Temporary text buffer + ImVector TempBuffer; // Temporary text buffer ImGuiContext(ImFontAtlas* shared_font_atlas) { @@ -1769,12 +2026,11 @@ struct ImGuiContext HoveredWindowUnderMovingWindow = NULL; MovingWindow = NULL; WheelingWindow = NULL; - WheelingWindowTimer = 0.0f; + WheelingWindowReleaseTimer = 0.0f; DebugHookIdInfo = 0; HoveredId = HoveredIdPreviousFrame = 0; HoveredIdAllowOverlap = false; - HoveredIdUsingMouseWheel = HoveredIdPreviousFrameUsingMouseWheel = false; HoveredIdDisabled = false; HoveredIdTimer = HoveredIdNotActiveTimer = 0.0f; ActiveId = 0; @@ -1786,10 +2042,6 @@ struct ImGuiContext ActiveIdHasBeenPressedBefore = false; ActiveIdHasBeenEditedBefore = false; ActiveIdHasBeenEditedThisFrame = false; - ActiveIdUsingMouseWheel = false; - ActiveIdUsingNavDirMask = 0x00; - ActiveIdUsingNavInputMask = 0x00; - ActiveIdUsingKeyInputMask = 0x00; ActiveIdClickOffset = ImVec2(-1, -1); ActiveIdWindow = NULL; ActiveIdSource = ImGuiInputSource_None; @@ -1801,6 +2053,13 @@ struct ImGuiContext LastActiveId = 0; LastActiveIdTimer = 0.0f; + ActiveIdUsingNavDirMask = 0x00; + ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ActiveIdUsingNavInputMask = 0x00; +#endif + + CurrentFocusScopeId = 0; CurrentItemFlags = ImGuiItemFlags_None; BeginMenuCount = 0; @@ -1808,7 +2067,7 @@ struct ImGuiContext NavId = NavFocusScopeId = NavActivateId = NavActivateDownId = NavActivatePressedId = NavActivateInputId = 0; NavJustMovedToId = NavJustMovedToFocusScopeId = NavNextActivateId = 0; NavActivateFlags = NavNextActivateFlags = ImGuiActivateFlags_None; - NavJustMovedToKeyMods = ImGuiKeyModFlags_None; + NavJustMovedToKeyMods = ImGuiMod_None; NavInputSource = ImGuiInputSource_None; NavLayer = ImGuiNavLayer_Main; NavIdIsAlive = false; @@ -1824,12 +2083,14 @@ struct ImGuiContext NavMoveForwardToNextFrame = false; NavMoveFlags = ImGuiNavMoveFlags_None; NavMoveScrollFlags = ImGuiScrollFlags_None; - NavMoveKeyMods = ImGuiKeyModFlags_None; + NavMoveKeyMods = ImGuiMod_None; NavMoveDir = NavMoveDirForDebug = NavMoveClipDir = ImGuiDir_None; NavScoringDebugCount = 0; NavTabbingDir = 0; NavTabbingCounter = 0; + ConfigNavWindowingKeyNext = ImGuiMod_Ctrl | ImGuiKey_Tab; + ConfigNavWindowingKeyPrev = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab; NavWindowingTarget = NavWindowingTargetAnim = NavWindowingListWindow = NULL; NavWindowingTimer = NavWindowingHighlightAlpha = 0.0f; NavWindowingToggleLayer = false; @@ -1855,28 +2116,34 @@ struct ImGuiContext TablesTempDataStacked = 0; CurrentTabBar = NULL; + HoverDelayId = HoverDelayIdPreviousFrame = 0; + HoverDelayTimer = HoverDelayClearTimer = 0.0f; + TempInputId = 0; ColorEditOptions = ImGuiColorEditFlags_DefaultOptions_; ColorEditLastHue = ColorEditLastSat = 0.0f; ColorEditLastColor = 0; + SliderGrabClickOffset = 0.0f; SliderCurrentAccum = 0.0f; SliderCurrentAccumDirty = false; DragCurrentAccumDirty = false; DragCurrentAccum = 0.0f; DragSpeedDefaultRatio = 1.0f / 100.0f; + ScrollbarClickDeltaToGrabCenter = 0.0f; DisabledAlphaBackup = 0.0f; DisabledStackSize = 0; - ScrollbarClickDeltaToGrabCenter = 0.0f; TooltipOverrideCount = 0; - TooltipSlowDelay = 0.50f; - PlatformImePos = PlatformImeLastPos = ImVec2(FLT_MAX, FLT_MAX); + PlatformImeData.InputPos = ImVec2(0.0f, 0.0f); + PlatformImeDataPrev.InputPos = ImVec2(-1.0f, -1.0f); // Different to ensure initial submission PlatformLocaleDecimalPoint = '.'; SettingsLoaded = false; SettingsDirtyTimer = 0.0f; HookIdNext = 0; + memset(LocalizationTable, 0, sizeof(LocalizationTable)); + LogEnabled = false; LogType = ImGuiLogType_None; LogNextPrefix = LogNextSuffix = NULL; @@ -1886,14 +2153,17 @@ struct ImGuiContext LogDepthRef = 0; LogDepthToExpand = LogDepthToExpandDefault = 2; + DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY; + DebugLocateId = 0; + DebugLocateFrames = 0; DebugItemPickerActive = false; + DebugItemPickerMouseButton = ImGuiMouseButton_Left; DebugItemPickerBreakId = 0; memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0; FramerateSecPerFrameAccum = 0.0f; WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; - memset(TempBuffer, 0, sizeof(TempBuffer)); } }; @@ -1916,6 +2186,8 @@ struct IMGUI_API ImGuiWindowTempData ImVec2 PrevLineSize; float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added). float PrevLineTextBaseOffset; + bool IsSameLine; + bool IsSetPos; ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.) ImVec1 ColumnsOffset; // Offset to the current column (if ColumnsCurrent > 0). FIXME: This and the above should be a stack to allow use cases like Tree->Column->Tree. Need revamp columns API. ImVec1 GroupOffset; @@ -1925,7 +2197,6 @@ struct IMGUI_API ImGuiWindowTempData ImGuiNavLayer NavLayerCurrent; // Current layer, 0..31 (we currently only use 0..1) short NavLayersActiveMask; // Which layers have been written to (result from previous frame) short NavLayersActiveMaskNext;// Which layers have been written to (accumulator for current frame) - ImGuiID NavFocusScopeIdCurrent; // Current focus scope ID while appending bool NavHideHighlightOneFrame; bool NavHasScroll; // Set when scrolling can be used (ScrollMax > 0.0f) @@ -1956,6 +2227,7 @@ struct IMGUI_API ImGuiWindow char* Name; // Window name, owned by the window. ImGuiID ID; // == ImHashStr(Name) ImGuiWindowFlags Flags; // See enum ImGuiWindowFlags_ + ImGuiViewportP* Viewport; // Always set in Begin(). Inactive windows may have a NULL value here if their viewport was discarded. ImVec2 Pos; // Position (always rounded-up to nearest pixel) ImVec2 Size; // Current size (==SizeFull or collapsed title bar size) ImVec2 SizeFull; // Size when non collapsed @@ -1988,6 +2260,7 @@ struct IMGUI_API ImGuiWindow bool HasCloseButton; // Set when the window has a close button (p_open != NULL) signed char ResizeBorderHeld; // Current border being held for resize (-1: none, otherwise 0-3) short BeginCount; // Number of Begin() during the current frame (generally 0 or 1, 1+ if appending via multiple Begin/End pairs) + short BeginCountPreviousFrame; // Number of Begin() during the previous frame short BeginOrderWithinParent; // Begin() order within immediate parent window, if we are a child window. Otherwise 0. short BeginOrderWithinContext; // Begin() order within entire imgui context. This is mostly used for debugging submission order related issues. short FocusOrder; // Order within WindowsFocusOrder[], altered when windows are focused. @@ -2041,6 +2314,7 @@ struct IMGUI_API ImGuiWindow ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.) ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1) ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space + ImGuiID NavRootFocusScopeId; // Focus Scope ID at the time of Begin() int MemoryDrawListIdxCapacity; // Backup of last idx/vtx count, so when waking up the window we can preallocate and avoid iterative alloc/copy int MemoryDrawListVtxCapacity; @@ -2053,12 +2327,9 @@ struct IMGUI_API ImGuiWindow ImGuiID GetID(const char* str, const char* str_end = NULL); ImGuiID GetID(const void* ptr); ImGuiID GetID(int n); - ImGuiID GetIDNoKeepAlive(const char* str, const char* str_end = NULL); - ImGuiID GetIDNoKeepAlive(const void* ptr); - ImGuiID GetIDNoKeepAlive(int n); ImGuiID GetIDFromRectangle(const ImRect& r_abs); - // We don't use g.FontSize because the window may be != g.CurrentWidow. + // We don't use g.FontSize because the window may be != g.CurrentWindow. ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } float CalcFontSize() const { ImGuiContext& g = *GImGui; float scale = g.FontBaseSize * FontWindowScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; } float TitleBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; } @@ -2076,7 +2347,7 @@ enum ImGuiTabBarFlagsPrivate_ { ImGuiTabBarFlags_DockNode = 1 << 20, // Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around] ImGuiTabBarFlags_IsFocused = 1 << 21, - ImGuiTabBarFlags_SaveSettings = 1 << 22 // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs + ImGuiTabBarFlags_SaveSettings = 1 << 22, // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs }; // Extend ImGuiTabItemFlags_ @@ -2084,7 +2355,7 @@ enum ImGuiTabItemFlagsPrivate_ { ImGuiTabItemFlags_SectionMask_ = ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing, ImGuiTabItemFlags_NoCloseButton = 1 << 20, // Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout) - ImGuiTabItemFlags_Button = 1 << 21 // Used by TabItemButton, change the tab item behavior to mimic a button + ImGuiTabItemFlags_Button = 1 << 21, // Used by TabItemButton, change the tab item behavior to mimic a button }; // Storage for one active tab item (sizeof() 40 bytes) @@ -2097,12 +2368,13 @@ struct ImGuiTabItem float Offset; // Position relative to beginning of tab float Width; // Width currently displayed float ContentWidth; // Width of label, stored during BeginTabItem() call + float RequestedWidth; // Width optionally requested by caller, -1.0f is unused ImS32 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames ImS16 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable ImS16 IndexDuringLayout; // Index only used during TabBarLayout() bool WantClose; // Marked as closed by SetTabItemClosed() - ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; } + ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; RequestedWidth = -1.0f; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; } }; // Storage for a tab bar (sizeof() 152 bytes) @@ -2230,6 +2502,15 @@ struct ImGuiTableCellData ImGuiTableColumnIdx Column; // Column number }; +// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs, does that needs they could be moved to ImGuiTableTempData ?) +struct ImGuiTableInstanceData +{ + float LastOuterHeight; // Outer height from last frame // FIXME: multi-instance issue (#3955) + float LastFirstRowHeight; // Height of first row from last frame // FIXME: possible multi-instance issue? + + ImGuiTableInstanceData() { LastOuterHeight = LastFirstRowHeight = 0.0f; } +}; + // FIXME-TABLE: more transient data could be stored in a per-stacked table structure: DrawSplitter, SortSpecs, incoming RowData struct IMGUI_API ImGuiTable { @@ -2272,11 +2553,10 @@ struct IMGUI_API ImGuiTable float CellPaddingY; float CellSpacingX1; // Spacing between non-bordered cells float CellSpacingX2; - float LastOuterHeight; // Outer height from last frame - float LastFirstRowHeight; // Height of first row from last frame float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details. float ColumnsGivenWidth; // Sum of current column width float ColumnsAutoFitWidth; // Sum of ideal column width in order nothing to be clipped, used for auto-fitting and content width submission in outer window + float ColumnsStretchSumWeights; // Sum of weight of all enabled stretching columns float ResizedColumnNextWidth; float ResizeLockMinContentsX2; // Lock minimum contents width while resizing down in order to not create feedback loops. But we allow growing the table. float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. @@ -2284,7 +2564,7 @@ struct IMGUI_API ImGuiTable ImRect InnerRect; // InnerRect but without decoration. As with OuterRect, for non-scrolling tables, InnerRect.Max.y is ImRect WorkRect; ImRect InnerClipRect; - ImRect BgClipRect; // We use this to cpu-clip cell background color fill + ImRect BgClipRect; // We use this to cpu-clip cell background color fill, evolve during the frame as we cross frozen rows boundaries ImRect Bg0ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG0/1 channel. This tends to be == OuterWindow->ClipRect at BeginTable() because output in BG0/BG1 is cpu-clipped ImRect Bg2ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG2 channel. This tends to be a correct, tight-fit, because output to BG2 are done by widgets relying on regular ClipRect. ImRect HostClipRect; // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window. @@ -2293,6 +2573,8 @@ struct IMGUI_API ImGuiTable ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window) ImGuiTextBuffer ColumnsNames; // Contiguous buffer holding columns names ImDrawListSplitter* DrawSplitter; // Shortcut to TempData->DrawSplitter while in table. Isolate draw commands per columns to avoid switching clip rect constantly + ImGuiTableInstanceData InstanceDataFirst; + ImVector InstanceDataExtra; // FIXME-OPT: Using a small-vector pattern would be good. ImGuiTableColumnSortSpecs SortSpecsSingle; ImVector SortSpecsMulti; // FIXME-OPT: Using a small-vector pattern would be good. ImGuiTableSortSpecs SortSpecs; // Public facing sorts specs, this is what we return in TableGetSortSpecs() @@ -2449,10 +2731,11 @@ namespace ImGui IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport); // get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. // Init - IMGUI_API void Initialize(ImGuiContext* context); - IMGUI_API void Shutdown(ImGuiContext* context); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). + IMGUI_API void Initialize(); + IMGUI_API void Shutdown(); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). // NewFrame + IMGUI_API void UpdateInputEvents(bool trickle_fast_inputs); IMGUI_API void UpdateHoveredWindowAndCaptureFlags(); IMGUI_API void StartMouseMovingWindow(ImGuiWindow* window); IMGUI_API void UpdateMouseMovingWindowNewFrame(); @@ -2463,6 +2746,9 @@ namespace ImGui IMGUI_API void RemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove); IMGUI_API void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type); + // Viewports + IMGUI_API void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport); + // Settings IMGUI_API void MarkIniSettingsDirty(); IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window); @@ -2470,10 +2756,15 @@ namespace ImGui IMGUI_API ImGuiWindowSettings* CreateNewWindowSettings(const char* name); IMGUI_API ImGuiWindowSettings* FindWindowSettings(ImGuiID id); IMGUI_API ImGuiWindowSettings* FindOrCreateWindowSettings(const char* name); + IMGUI_API void AddSettingsHandler(const ImGuiSettingsHandler* handler); + IMGUI_API void RemoveSettingsHandler(const char* type_name); IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name); + // Localization + IMGUI_API void LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count); + inline const char* LocalizeGetMsg(ImGuiLocKey key) { ImGuiContext& g = *GImGui; const char* msg = g.LocalizationTable[key]; return msg ? msg : "*Missing Text*"; } + // Scrolling - IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // Use -1.0f on one axis to leave as-is IMGUI_API void SetScrollX(ImGuiWindow* window, float scroll_x); IMGUI_API void SetScrollY(ImGuiWindow* window, float scroll_y); IMGUI_API void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio); @@ -2505,7 +2796,7 @@ namespace ImGui // Basic Helpers for widget code IMGUI_API void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f); - IMGUI_API void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f); + inline void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f) { ItemSize(bb.GetSize(), text_baseline_y); } // FIXME: This is a misleading API since we expect CursorPos to be bb.Min. IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL, ImGuiItemFlags extra_flags = 0); IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id); IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id); @@ -2517,21 +2808,10 @@ namespace ImGui IMGUI_API ImVec2 GetContentRegionMaxAbs(); IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); - // Parameter stacks + // Parameter stacks (shared) IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled); IMGUI_API void PopItemFlag(); -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - // Currently refactoring focus/nav/tabbing system - // If you have old/custom copy-and-pasted widgets that used FocusableItemRegister(): - // (Old) IMGUI_VERSION_NUM < 18209: using 'ItemAdd(....)' and 'bool tab_focused = FocusableItemRegister(...)' - // (Old) IMGUI_VERSION_NUM >= 18209: using 'ItemAdd(..., ImGuiItemAddFlags_Focusable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_Focused) != 0' - // (New) IMGUI_VERSION_NUM >= 18413: using 'ItemAdd(..., ImGuiItemFlags_Inputable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_FocusedTabbing) != 0 || g.NavActivateInputId == id' (WIP) - // Widget code are simplified as there's no need to call FocusableItemUnregister() while managing the transition from regular widget to TempInputText() - inline bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id) { IM_ASSERT(0); IM_UNUSED(window); IM_UNUSED(id); return false; } // -> pass ImGuiItemAddFlags_Inputable flag to ItemAdd() - inline void FocusableItemUnregister(ImGuiWindow* window) { IM_ASSERT(0); IM_UNUSED(window); } // -> unnecessary: TempInputText() uses ImGuiInputTextFlags_MergedItem -#endif - // Logging/Capture IMGUI_API void LogBegin(ImGuiLogType type, int auto_open_depth); // -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. IMGUI_API void LogToBuffer(int auto_open_depth = -1); // Start logging/capturing to internal buffer @@ -2573,37 +2853,102 @@ namespace ImGui IMGUI_API void NavMoveRequestCancel(); IMGUI_API void NavMoveRequestApplyResult(); IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); - IMGUI_API float GetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode); - IMGUI_API ImVec2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor = 0.0f, float fast_factor = 0.0f); - IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); IMGUI_API void ActivateItem(ImGuiID id); // Remotely activate a button, checkbox, tree node etc. given its unique ID. activation is queued and processed on the next frame when the item is encountered again. + IMGUI_API void SetNavWindow(ImGuiWindow* window); IMGUI_API void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel); - // Focus Scope (WIP) - // This is generally used to identify a selection set (multiple of which may be in the same window), as selection - // patterns generally need to react (e.g. clear selection) when landing on an item of the set. - IMGUI_API void PushFocusScope(ImGuiID id); - IMGUI_API void PopFocusScope(); - inline ImGuiID GetFocusedFocusScope() { ImGuiContext& g = *GImGui; return g.NavFocusScopeId; } // Focus scope which is actually active - inline ImGuiID GetFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.NavFocusScopeIdCurrent; } // Focus scope we are outputting into, set by PushFocusScope() - // Inputs // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. - IMGUI_API void SetItemUsingMouseWheel(); - IMGUI_API void SetActiveIdUsingNavAndKeys(); - inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } - inline bool IsActiveIdUsingNavInput(ImGuiNavInput input) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavInputMask & (1 << input)) != 0; } - inline bool IsActiveIdUsingKey(ImGuiKey key) { ImGuiContext& g = *GImGui; IM_ASSERT(key < 64); return (g.ActiveIdUsingKeyInputMask & ((ImU64)1 << key)) != 0; } + inline bool IsNamedKey(ImGuiKey key) { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; } + inline bool IsNamedKeyOrModKey(ImGuiKey key) { return (key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END) || key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super; } + inline bool IsLegacyKey(ImGuiKey key) { return key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_LegacyNativeKey_END; } + inline bool IsKeyboardKey(ImGuiKey key) { return key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END; } + inline bool IsGamepadKey(ImGuiKey key) { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; } + inline bool IsMouseKey(ImGuiKey key) { return key >= ImGuiKey_Mouse_BEGIN && key < ImGuiKey_Mouse_END; } + inline bool IsAliasKey(ImGuiKey key) { return key >= ImGuiKey_Aliases_BEGIN && key < ImGuiKey_Aliases_END; } + inline ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key) + { + if (key == ImGuiMod_Ctrl) return ImGuiKey_ReservedForModCtrl; + if (key == ImGuiMod_Shift) return ImGuiKey_ReservedForModShift; + if (key == ImGuiMod_Alt) return ImGuiKey_ReservedForModAlt; + if (key == ImGuiMod_Super) return ImGuiKey_ReservedForModSuper; + return key; + } + + IMGUI_API ImGuiKeyData* GetKeyData(ImGuiKey key); + IMGUI_API void GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size); + inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); } IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f); - inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { ImGuiContext& g = *GImGui; const int key_index = g.IO.KeyMap[key]; return (key_index >= 0) ? IsKeyPressed(key_index, repeat) : false; } - inline bool IsNavInputDown(ImGuiNavInput n) { ImGuiContext& g = *GImGui; return g.IO.NavInputs[n] > 0.0f; } - inline bool IsNavInputTest(ImGuiNavInput n, ImGuiInputReadMode rm) { return (GetNavInputAmount(n, rm) > 0.0f); } - IMGUI_API ImGuiKeyModFlags GetMergedKeyModFlags(); + IMGUI_API ImVec2 GetKeyVector2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down); + IMGUI_API float GetNavTweakPressedAmount(ImGuiAxis axis); + IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); + IMGUI_API void GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate); + IMGUI_API void SetActiveIdUsingAllKeyboardKeys(); + inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } + + // [EXPERIMENTAL] Low-Level: Key/Input Ownership + // - The idea is that instead of "eating" a given input, we can link to an owner id. + // - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). + // - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). + // - Input ownership is automatically released on the frame after a key is released. Therefore: + // - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). + // - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). + // - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. + // - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. + // Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. + IMGUI_API ImGuiID GetKeyOwner(ImGuiKey key); + IMGUI_API void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags = 0); // Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'. + IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id); // Test that key is either not owned, either owned by 'owner_id' + inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiKey key) { if (key & ImGuiMod_Mask_) key = ConvertSingleModFlagToKey(key); IM_ASSERT(IsNamedKey(key)); return &GImGui->KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; } + + // [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership + // - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. + // - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) + // - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. + // Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. + // - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. + IMGUI_API bool IsKeyDown(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); // Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. + IMGUI_API bool IsKeyReleased(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id); + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id); + + // [EXPERIMENTAL] Shortcut Routing + // - ImGuiKeyChord = a ImGuiKey optionally OR-red with ImGuiMod_Alt/ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Super. + // ImGuiKey_C (accepted by functions taking ImGuiKey or ImGuiKeyChord) + // ImGuiKey_C | ImGuiMod_Ctrl (accepted by functions taking ImGuiKeyChord) + // ONLY ImGuiMod_XXX values are legal to 'OR' with an ImGuiKey. You CANNOT 'OR' two ImGuiKey values. + // - When using one of the routing flags (e.g. ImGuiInputFlags_RouteFocused): routes requested ahead of time given a chord (key + modifiers) and a routing policy. + // - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. + // - Route is granted to a single owner. When multiple requests are made we have policies to select the winning route. + // - Multiple read sites may use the same owner id and will all get the granted route. + // - For routing: when owner_id is 0 we use the current Focus Scope ID as a default owner in order to identify our location. + IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id); + IMGUI_API ImGuiKeyRoutingData* GetShortcutRoutingData(ImGuiKeyChord key_chord); + + // [EXPERIMENTAL] Focus Scope + // This is generally used to identify a unique input location (for e.g. a selection set) + // There is one per window (automatically set in Begin), but: + // - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set. + // So in order to identify a set multiple lists in same window may each need a focus scope. + // If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope() + // - Shortcut routing also use focus scope as a default location identifier if an owner is not provided. + // We don't use the ID Stack for this as it is common to want them separate. + IMGUI_API void PushFocusScope(ImGuiID id); + IMGUI_API void PopFocusScope(); + inline ImGuiID GetCurrentFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentFocusScopeId; } // Focus scope we are outputting into, set by PushFocusScope() // Drag and Drop + IMGUI_API bool IsDragDropActive(); IMGUI_API bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id); IMGUI_API void ClearDragDrop(); IMGUI_API bool IsDragDropPayloadBeingAccepted(); + IMGUI_API void RenderDragDropTargetRect(const ImRect& bb); // Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) IMGUI_API void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect); @@ -2638,7 +2983,9 @@ namespace ImGui IMGUI_API void TableUpdateColumnsWeightFromWidth(ImGuiTable* table); IMGUI_API void TableDrawBorders(ImGuiTable* table); IMGUI_API void TableDrawContextMenu(ImGuiTable* table); + IMGUI_API bool TableBeginContextMenuPopup(ImGuiTable* table); IMGUI_API void TableMergeDrawChannels(ImGuiTable* table); + inline ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instance_no) { if (instance_no == 0) return &table->InstanceDataFirst; return &table->InstanceDataExtra[instance_no - 1]; } IMGUI_API void TableSortSpecsSanitize(ImGuiTable* table); IMGUI_API void TableSortSpecsBuild(ImGuiTable* table); IMGUI_API ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column); @@ -2664,7 +3011,7 @@ namespace ImGui IMGUI_API void TableSaveSettings(ImGuiTable* table); IMGUI_API void TableResetSettings(ImGuiTable* table); IMGUI_API ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table); - IMGUI_API void TableSettingsInstallHandler(ImGuiContext* context); + IMGUI_API void TableSettingsAddSettingsHandler(); IMGUI_API ImGuiTableSettings* TableSettingsCreate(ImGuiID id, int columns_count); IMGUI_API ImGuiTableSettings* TableSettingsFindByID(ImGuiID id); @@ -2677,7 +3024,7 @@ namespace ImGui IMGUI_API void TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, ImVec2 mouse_pos); IMGUI_API bool TabBarProcessReorder(ImGuiTabBar* tab_bar); IMGUI_API bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags); - IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button); + IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker); IMGUI_API void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col); IMGUI_API void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped); @@ -2694,21 +3041,15 @@ namespace ImGui IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0); IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault); // Navigation highlight IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text. + IMGUI_API void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); // Render helpers (those functions don't access any ImGui state!) IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f); IMGUI_API void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); IMGUI_API void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); - IMGUI_API void RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); IMGUI_API void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); - IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding); - -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - // [1.71: 2019/06/07: Updating prototypes of some of the internal functions. Leaving those for reference for a short while] - inline void RenderArrow(ImVec2 pos, ImGuiDir dir, float scale=1.0f) { ImGuiWindow* window = GetCurrentWindow(); RenderArrow(window->DrawList, pos, GetColorU32(ImGuiCol_Text), dir, scale); } - inline void RenderBullet(ImVec2 pos) { ImGuiWindow* window = GetCurrentWindow(); RenderBullet(window->DrawList, pos, GetColorU32(ImGuiCol_Text)); } -#endif + IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding); // Widgets IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0); @@ -2718,7 +3059,7 @@ namespace ImGui IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0); IMGUI_API void Scrollbar(ImGuiAxis axis); IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags flags); - IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec2& padding, const ImVec4& bg_col, const ImVec4& tint_col); + IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col); IMGUI_API ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis); IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); IMGUI_API ImGuiID GetWindowResizeCornerID(ImGuiWindow* window, int n); // 0..3: corners @@ -2733,8 +3074,9 @@ namespace ImGui IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f); IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL); - IMGUI_API bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0); // Consume previous SetNextItemOpen() data, if any. May return true when logging IMGUI_API void TreePushOverrideID(ImGuiID id); + IMGUI_API void TreeNodeSetOpen(ImGuiID id, bool open); + IMGUI_API bool TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags); // Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging. // Template functions are instantiated in imgui_widgets.cpp for a finite number of types. // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036). @@ -2743,14 +3085,14 @@ namespace ImGui template IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); template IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags); template IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); - template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); + template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); template IMGUI_API bool CheckboxFlagsT(const char* label, T* flags, T flags_value); // Data type helpers IMGUI_API const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type); IMGUI_API int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); - IMGUI_API bool DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format); + IMGUI_API bool DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format); IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); @@ -2759,7 +3101,7 @@ namespace ImGui IMGUI_API bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); IMGUI_API bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL); inline bool TempInputIsActive(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.ActiveId == id && g.TempInputId == id); } - inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active + inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (id != 0 && g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active // Color IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); @@ -2778,22 +3120,31 @@ namespace ImGui IMGUI_API void GcCompactTransientWindowBuffers(ImGuiWindow* window); IMGUI_API void GcAwakeTransientWindowBuffers(ImGuiWindow* window); + // Debug Log + IMGUI_API void DebugLog(const char* fmt, ...) IM_FMTARGS(1); + IMGUI_API void DebugLogV(const char* fmt, va_list args) IM_FMTLIST(1); + // Debug Tools IMGUI_API void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); IMGUI_API void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + IMGUI_API void DebugLocateItem(ImGuiID target_id); // Call sparingly: only 1 at the same time! + IMGUI_API void DebugLocateItemOnHover(ImGuiID target_id); // Only call on reaction to a mouse Hover: because only 1 at the same time! + IMGUI_API void DebugLocateItemResolveWithLastItem(); inline void DebugDrawItemRect(ImU32 col = IM_COL32(255,0,0,255)) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; GetForegroundDrawList(window)->AddRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, col); } inline void DebugStartItemPicker() { ImGuiContext& g = *GImGui; g.DebugItemPickerActive = true; } - IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); IMGUI_API void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end); IMGUI_API void DebugNodeColumns(ImGuiOldColumns* columns); IMGUI_API void DebugNodeDrawList(ImGuiWindow* window, const ImDrawList* draw_list, const char* label); IMGUI_API void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb); IMGUI_API void DebugNodeFont(ImFont* font); + IMGUI_API void DebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph); IMGUI_API void DebugNodeStorage(ImGuiStorage* storage, const char* label); IMGUI_API void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label); IMGUI_API void DebugNodeTable(ImGuiTable* table); IMGUI_API void DebugNodeTableSettings(ImGuiTableSettings* settings); + IMGUI_API void DebugNodeInputTextState(ImGuiInputTextState* state); IMGUI_API void DebugNodeWindow(ImGuiWindow* window, const char* label); IMGUI_API void DebugNodeWindowSettings(ImGuiWindowSettings* settings); IMGUI_API void DebugNodeWindowsList(ImVector* windows, const char* label); @@ -2801,6 +3152,23 @@ namespace ImGui IMGUI_API void DebugNodeViewport(ImGuiViewportP* viewport); IMGUI_API void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb); + // Obsolete functions +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void SetItemUsingMouseWheel() { SetItemKeyOwner(ImGuiKey_MouseWheelY); } // Changed in 1.89 + inline bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0) { return TreeNodeUpdateNextOpen(id, flags); } // Renamed in 1.89 + + // Refactored focus/nav/tabbing system in 1.82 and 1.84. If you have old/custom copy-and-pasted widgets that used FocusableItemRegister(): + // (Old) IMGUI_VERSION_NUM < 18209: using 'ItemAdd(....)' and 'bool tab_focused = FocusableItemRegister(...)' + // (Old) IMGUI_VERSION_NUM >= 18209: using 'ItemAdd(..., ImGuiItemAddFlags_Focusable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_Focused) != 0' + // (New) IMGUI_VERSION_NUM >= 18413: using 'ItemAdd(..., ImGuiItemFlags_Inputable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_FocusedTabbing) != 0 || g.NavActivateInputId == id' (WIP) + // Widget code are simplified as there's no need to call FocusableItemUnregister() while managing the transition from regular widget to TempInputText() + inline bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id) { IM_ASSERT(0); IM_UNUSED(window); IM_UNUSED(id); return false; } // -> pass ImGuiItemAddFlags_Inputable flag to ItemAdd() + inline void FocusableItemUnregister(ImGuiWindow* window) { IM_ASSERT(0); IM_UNUSED(window); } // -> unnecessary: TempInputText() uses ImGuiInputTextFlags_MergedItem +#endif +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { IM_ASSERT(IsNamedKey(key)); return IsKeyPressed(key, repeat); } // Removed in 1.87: Mapping from named key is always identity! +#endif + } // namespace ImGui @@ -2815,7 +3183,9 @@ struct ImFontBuilderIO }; // Helper for font builder +#ifdef IMGUI_ENABLE_STB_TRUETYPE IMGUI_API const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype(); +#endif IMGUI_API void ImFontAtlasBuildInit(ImFontAtlas* atlas); IMGUI_API void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); IMGUI_API void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); @@ -2839,7 +3209,8 @@ extern const char* ImGuiTestEngine_FindItemDebugLabel(ImGuiContext* ctx, ImGuiI #define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register item label and status flags (optional) #define IMGUI_TEST_ENGINE_LOG(_FMT,...) if (g.TestEngineHookItems) ImGuiTestEngineHook_Log(&g, _FMT, __VA_ARGS__) // Custom log entry from user land into test log #else -#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) ((void)0) +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) ((void)0) +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) ((void)g) #endif //----------------------------------------------------------------------------- diff --git a/imgui-sys/third-party/imgui-master/imgui/imgui_tables.cpp b/imgui-sys/third-party/imgui-master/imgui/imgui_tables.cpp index 8a3fe93c1..503c098e9 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imgui_tables.cpp +++ b/imgui-sys/third-party/imgui-master/imgui/imgui_tables.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (tables and columns code) /* @@ -24,7 +24,7 @@ Index of this file: */ // Navigating this file: -// - In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. // - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. //----------------------------------------------------------------------------- @@ -361,6 +361,8 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG table->IsLayoutLocked = false; table->InnerWidth = inner_width; temp_data->UserOuterSize = outer_size; + if (instance_no > 0 && table->InstanceDataExtra.Size < instance_no) + table->InstanceDataExtra.push_back(ImGuiTableInstanceData()); // When not using a child window, WorkRect.Max will grow as we append contents. if (use_child_window) @@ -537,7 +539,7 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG if (table->RefScale != 0.0f && table->RefScale != new_ref_scale_unit) { const float scale_factor = new_ref_scale_unit / table->RefScale; - //IMGUI_DEBUG_LOG("[table] %08X RefScaleUnit %.3f -> %.3f, scaling width by %.3f\n", table->ID, table->RefScaleUnit, new_ref_scale_unit, scale_factor); + //IMGUI_DEBUG_PRINT("[table] %08X RefScaleUnit %.3f -> %.3f, scaling width by %.3f\n", table->ID, table->RefScaleUnit, new_ref_scale_unit, scale_factor); for (int n = 0; n < columns_count; n++) table->Columns[n].WidthRequest = table->Columns[n].WidthRequest * scale_factor; } @@ -886,6 +888,7 @@ void ImGui::TableUpdateLayout(ImGuiTable* table) sum_width_requests += table->CellPaddingX * 2.0f; } table->ColumnsEnabledFixedCount = (ImGuiTableColumnIdx)count_fixed; + table->ColumnsStretchSumWeights = stretch_sum_weights; // [Part 4] Apply final widths based on requested widths const ImRect work_rect = table->WorkRect; @@ -933,10 +936,19 @@ void ImGui::TableUpdateLayout(ImGuiTable* table) width_remaining_for_stretched_columns -= 1.0f; } + // Determine if table is hovered which will be used to flag columns as hovered. + // - In principle we'd like to use the equivalent of IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + // but because our item is partially submitted at this point we use ItemHoverable() and a workaround (temporarily + // clear ActiveId, which is equivalent to the change provided by _AllowWhenBLockedByActiveItem). + // - This allows columns to be marked as hovered when e.g. clicking a button inside the column, or using drag and drop. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); table->HoveredColumnBody = -1; table->HoveredColumnBorder = -1; - const ImRect mouse_hit_rect(table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.Max.x, ImMax(table->OuterRect.Max.y, table->OuterRect.Min.y + table->LastOuterHeight)); + const ImRect mouse_hit_rect(table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.Max.x, ImMax(table->OuterRect.Max.y, table->OuterRect.Min.y + table_instance->LastOuterHeight)); + const ImGuiID backup_active_id = g.ActiveId; + g.ActiveId = 0; const bool is_hovering_table = ItemHoverable(mouse_hit_rect, 0); + g.ActiveId = backup_active_id; // [Part 6] Setup final position, offset, skip/clip states and clipping rectangles, detect hovered column // Process columns in their visible orders as we are comparing the visible order and adjusting host_clip_rect while looping. @@ -1096,23 +1108,15 @@ void ImGui::TableUpdateLayout(ImGuiTable* table) // [Part 10] Hit testing on borders if (table->Flags & ImGuiTableFlags_Resizable) TableUpdateBorders(table); - table->LastFirstRowHeight = 0.0f; + table_instance->LastFirstRowHeight = 0.0f; table->IsLayoutLocked = true; table->IsUsingHeaders = false; // [Part 11] Context menu - if (table->IsContextPopupOpen && table->InstanceCurrent == table->InstanceInteracted) + if (TableBeginContextMenuPopup(table)) { - const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); - if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings)) - { - TableDrawContextMenu(table); - EndPopup(); - } - else - { - table->IsContextPopupOpen = false; - } + TableDrawContextMenu(table); + EndPopup(); } // [Part 13] Sanitize and build sort specs before we have a change to use them for display. @@ -1141,10 +1145,11 @@ void ImGui::TableUpdateBorders(ImGuiTable* table) // use the final height from last frame. Because this is only affecting _interaction_ with columns, it is not // really problematic (whereas the actual visual will be displayed in EndTable() and using the current frame height). // Actual columns highlight/render will be performed in EndTable() and not be affected. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); const float hit_half_width = TABLE_RESIZE_SEPARATOR_HALF_THICKNESS; const float hit_y1 = table->OuterRect.Min.y; - const float hit_y2_body = ImMax(table->OuterRect.Max.y, hit_y1 + table->LastOuterHeight); - const float hit_y2_head = hit_y1 + table->LastFirstRowHeight; + const float hit_y2_body = ImMax(table->OuterRect.Max.y, hit_y1 + table_instance->LastOuterHeight); + const float hit_y2_head = hit_y1 + table_instance->LastFirstRowHeight; for (int order_n = 0; order_n < table->ColumnsCount; order_n++) { @@ -1166,8 +1171,8 @@ void ImGui::TableUpdateBorders(ImGuiTable* table) ImGuiID column_id = TableGetColumnResizeID(table, column_n, table->InstanceCurrent); ImRect hit_rect(column->MaxX - hit_half_width, hit_y1, column->MaxX + hit_half_width, border_y2_hit); + ItemAdd(hit_rect, column_id, NULL, ImGuiItemFlags_NoNav); //GetForegroundDrawList()->AddRect(hit_rect.Min, hit_rect.Max, IM_COL32(255, 0, 0, 100)); - KeepAliveID(column_id); bool hovered = false, held = false; bool pressed = ButtonBehavior(hit_rect, column_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_NoNavFocus); @@ -1223,6 +1228,7 @@ void ImGui::EndTable() TableOpenContextMenu((int)table->HoveredColumnBody); // Finalize table height + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); inner_window->DC.PrevLineSize = temp_data->HostBackupPrevLineSize; inner_window->DC.CurrLineSize = temp_data->HostBackupCurrLineSize; inner_window->DC.CursorMaxPos = temp_data->HostBackupCursorMaxPos; @@ -1233,7 +1239,7 @@ void ImGui::EndTable() else if (!(flags & ImGuiTableFlags_NoHostExtendY)) table->OuterRect.Max.y = table->InnerRect.Max.y = ImMax(table->OuterRect.Max.y, inner_content_max_y); // Patch OuterRect/InnerRect height table->WorkRect.Max.y = ImMax(table->WorkRect.Max.y, table->OuterRect.Max.y); - table->LastOuterHeight = table->OuterRect.GetHeight(); + table_instance->LastOuterHeight = table->OuterRect.GetHeight(); // Setup inner scrolling range // FIXME: This ideally should be done earlier, in BeginTable() SetNextWindowContentSize call, just like writing to inner_window->DC.CursorMaxPos.y, @@ -1279,17 +1285,23 @@ void ImGui::EndTable() splitter->Merge(inner_window->DrawList); // Update ColumnsAutoFitWidth to get us ahead for host using our size to auto-resize without waiting for next BeginTable() - const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); - table->ColumnsAutoFitWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount; + float auto_fit_width_for_fixed = 0.0f; + float auto_fit_width_for_stretched = 0.0f; + float auto_fit_width_for_stretched_min = 0.0f; for (int column_n = 0; column_n < table->ColumnsCount; column_n++) if (table->EnabledMaskByIndex & ((ImU64)1 << column_n)) { ImGuiTableColumn* column = &table->Columns[column_n]; - if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !(column->Flags & ImGuiTableColumnFlags_NoResize)) - table->ColumnsAutoFitWidth += column->WidthRequest; + float column_width_request = ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !(column->Flags & ImGuiTableColumnFlags_NoResize)) ? column->WidthRequest : TableGetColumnWidthAuto(table, column); + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + auto_fit_width_for_fixed += column_width_request; else - table->ColumnsAutoFitWidth += TableGetColumnWidthAuto(table, column); + auto_fit_width_for_stretched += column_width_request; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) && (column->Flags & ImGuiTableColumnFlags_NoResize) != 0) + auto_fit_width_for_stretched_min = ImMax(auto_fit_width_for_stretched_min, column_width_request / (column->StretchWeight / table->ColumnsStretchSumWeights)); } + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + table->ColumnsAutoFitWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount + auto_fit_width_for_fixed + ImMax(auto_fit_width_for_stretched, auto_fit_width_for_stretched_min); // Update scroll if ((table->Flags & ImGuiTableFlags_ScrollX) == 0 && inner_window != outer_window) @@ -1569,18 +1581,21 @@ ImGuiTableColumnFlags ImGui::TableGetColumnFlags(int column_n) // Return the cell rectangle based on currently known height. // - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations. -// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it. +// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it, or in TableEndRow() when we locked that height. // - Important: if ImGuiTableFlags_PadOuterX is set but ImGuiTableFlags_PadInnerX is not set, the outer-most left and right // columns report a small offset so their CellBgRect can extend up to the outer border. +// FIXME: But the rendering code in TableEndRow() nullifies that with clamping required for scrolling. ImRect ImGui::TableGetCellBgRect(const ImGuiTable* table, int column_n) { const ImGuiTableColumn* column = &table->Columns[column_n]; float x1 = column->MinX; float x2 = column->MaxX; - if (column->PrevEnabledColumn == -1) - x1 -= table->CellSpacingX1; - if (column->NextEnabledColumn == -1) - x2 += table->CellSpacingX2; + //if (column->PrevEnabledColumn == -1) + // x1 -= table->OuterPaddingX; + //if (column->NextEnabledColumn == -1) + // x2 += table->OuterPaddingX; + x1 = ImMax(x1, table->WorkRect.Min.x); + x2 = ImMin(x2, table->WorkRect.Max.x); return ImRect(x1, table->RowPosY1, x2, table->RowPosY2); } @@ -1710,6 +1725,8 @@ void ImGui::TableBeginRow(ImGuiTable* table) table->RowTextBaseline = 0.0f; table->RowIndentOffsetX = window->DC.Indent.x - table->HostIndentX; // Lock indent window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + window->DC.IsSameLine = window->DC.IsSetPos = false; window->DC.CursorMaxPos.y = next_y1; // Making the header BG color non-transparent will allow us to overlay it multiple times when handling smooth dragging. @@ -1746,7 +1763,7 @@ void ImGui::TableEndRow(ImGuiTable* table) const bool unfreeze_rows_actual = (table->CurrentRow + 1 == table->FreezeRowsCount); const bool unfreeze_rows_request = (table->CurrentRow + 1 == table->FreezeRowsRequest); if (table->CurrentRow == 0) - table->LastFirstRowHeight = bg_y2 - bg_y1; + TableGetInstanceData(table, table->InstanceCurrent)->LastFirstRowHeight = bg_y2 - bg_y1; const bool is_visible = (bg_y2 >= table->InnerClipRect.Min.y && bg_y1 <= table->InnerClipRect.Max.y); if (is_visible) @@ -1797,10 +1814,12 @@ void ImGui::TableEndRow(ImGuiTable* table) ImGuiTableCellData* cell_data_end = &table->RowCellData[table->RowCellDataCurrent]; for (ImGuiTableCellData* cell_data = &table->RowCellData[0]; cell_data <= cell_data_end; cell_data++) { + // As we render the BG here we need to clip things (for layout we would not) + // FIXME: This cancels the OuterPadding addition done by TableGetCellBgRect(), need to keep it while rendering correctly while scrolling. const ImGuiTableColumn* column = &table->Columns[cell_data->Column]; ImRect cell_bg_rect = TableGetCellBgRect(table, cell_data->Column); cell_bg_rect.ClipWith(table->BgClipRect); - cell_bg_rect.Min.x = ImMax(cell_bg_rect.Min.x, column->ClipRect.Min.x); // So that first column after frozen one gets clipped + cell_bg_rect.Min.x = ImMax(cell_bg_rect.Min.x, column->ClipRect.Min.x); // So that first column after frozen one gets clipped when scrolling cell_bg_rect.Max.x = ImMin(cell_bg_rect.Max.x, column->MaxX); window->DrawList->AddRectFilled(cell_bg_rect.Min, cell_bg_rect.Max, cell_data->BgColor); } @@ -1989,6 +2008,9 @@ void ImGui::TableEndCell(ImGuiTable* table) ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; ImGuiWindow* window = table->InnerWindow; + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + // Report maximum position so we can infer content size per column. float* p_max_pos_x; if (table->RowFlags & ImGuiTableRowFlags_Headers) @@ -2083,7 +2105,7 @@ void ImGui::TableSetColumnWidth(int column_n, float width) if (column_0->WidthGiven == column_0_width || column_0->WidthRequest == column_0_width) return; - //IMGUI_DEBUG_LOG("TableSetColumnWidth(%d, %.1f->%.1f)\n", column_0_idx, column_0->WidthGiven, column_0_width); + //IMGUI_DEBUG_PRINT("TableSetColumnWidth(%d, %.1f->%.1f)\n", column_0_idx, column_0->WidthGiven, column_0_width); ImGuiTableColumn* column_1 = (column_0->NextEnabledColumn != -1) ? &table->Columns[column_0->NextEnabledColumn] : NULL; // In this surprisingly not simple because of how we support mixing Fixed and multiple Stretch columns. @@ -2353,7 +2375,7 @@ void ImGui::TableMergeDrawChannels(ImGuiTable* table) // Don't attempt to merge if there are multiple draw calls within the column ImDrawChannel* src_channel = &splitter->_Channels[channel_no]; - if (src_channel->_CmdBuffer.Size > 0 && src_channel->_CmdBuffer.back().ElemCount == 0) + if (src_channel->_CmdBuffer.Size > 0 && src_channel->_CmdBuffer.back().ElemCount == 0 && src_channel->_CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() src_channel->_CmdBuffer.pop_back(); if (src_channel->_CmdBuffer.Size != 1) continue; @@ -2497,10 +2519,11 @@ void ImGui::TableDrawBorders(ImGuiTable* table) inner_drawlist->PushClipRect(table->Bg0ClipRectForDrawCmd.Min, table->Bg0ClipRectForDrawCmd.Max, false); // Draw inner border and resizing feedback + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); const float border_size = TABLE_BORDER_SIZE; const float draw_y1 = table->InnerRect.Min.y; const float draw_y2_body = table->InnerRect.Max.y; - const float draw_y2_head = table->IsUsingHeaders ? ImMin(table->InnerRect.Max.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table->LastFirstRowHeight) : draw_y1; + const float draw_y2_head = table->IsUsingHeaders ? ImMin(table->InnerRect.Max.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table_instance->LastFirstRowHeight) : draw_y1; if (table->Flags & ImGuiTableFlags_BordersInnerV) { for (int order_n = 0; order_n < table->ColumnsCount; order_n++) @@ -2982,7 +3005,7 @@ void ImGui::TableHeader(const char* label) RenderTextEllipsis(window->DrawList, label_pos, ImVec2(ellipsis_max, label_pos.y + label_height + g.Style.FramePadding.y), ellipsis_max, ellipsis_max, label, label_end, &label_size); const bool text_clipped = label_size.x > (ellipsis_max - label_pos.x); - if (text_clipped && hovered && g.HoveredIdNotActiveTimer > g.TooltipSlowDelay) + if (text_clipped && hovered && g.ActiveId == 0 && IsItemHovered(ImGuiHoveredFlags_DelayNormal)) SetTooltip("%.*s", (int)(label_end - label), label); // We don't use BeginPopupContextItem() because we want the popup to stay up even after the column is hidden @@ -3017,6 +3040,17 @@ void ImGui::TableOpenContextMenu(int column_n) } } +bool ImGui::TableBeginContextMenuPopup(ImGuiTable* table) +{ + if (!table->IsContextPopupOpen || table->InstanceCurrent != table->InstanceInteracted) + return false; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings)) + return true; + table->IsContextPopupOpen = false; + return false; +} + // Output context menu into current window (generally a popup) // FIXME-TABLE: Ideally this should be writable by the user. Full programmatic access to that data? void ImGui::TableDrawContextMenu(ImGuiTable* table) @@ -3036,15 +3070,15 @@ void ImGui::TableDrawContextMenu(ImGuiTable* table) if (column != NULL) { const bool can_resize = !(column->Flags & ImGuiTableColumnFlags_NoResize) && column->IsEnabled; - if (MenuItem("Size column to fit###SizeOne", NULL, false, can_resize)) + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableSizeOne), NULL, false, can_resize)) // "###SizeOne" TableSetColumnWidthAutoSingle(table, column_n); } const char* size_all_desc; if (table->ColumnsEnabledFixedCount == table->ColumnsEnabledCount && (table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame) - size_all_desc = "Size all columns to fit###SizeAll"; // All fixed + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllFit); // "###SizeAll" All fixed else - size_all_desc = "Size all columns to default###SizeAll"; // All stretch or mixed + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllDefault); // "###SizeAll" All stretch or mixed if (MenuItem(size_all_desc, NULL)) TableSetColumnWidthAutoAll(table); want_separator = true; @@ -3053,7 +3087,7 @@ void ImGui::TableDrawContextMenu(ImGuiTable* table) // Ordering if (table->Flags & ImGuiTableFlags_Reorderable) { - if (MenuItem("Reset order", NULL, false, !table->IsDefaultDisplayOrder)) + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableResetOrder), NULL, false, !table->IsDefaultDisplayOrder)) table->IsResetDisplayOrderRequest = true; want_separator = true; } @@ -3422,9 +3456,8 @@ static void TableSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandle } } -void ImGui::TableSettingsInstallHandler(ImGuiContext* context) +void ImGui::TableSettingsAddSettingsHandler() { - ImGuiContext& g = *context; ImGuiSettingsHandler ini_handler; ini_handler.TypeName = "Table"; ini_handler.TypeHash = ImHashStr("Table"); @@ -3433,7 +3466,7 @@ void ImGui::TableSettingsInstallHandler(ImGuiContext* context) ini_handler.ReadLineFn = TableSettingsHandler_ReadLine; ini_handler.ApplyAllFn = TableSettingsHandler_ApplyAll; ini_handler.WriteAllFn = TableSettingsHandler_WriteAll; - g.SettingsHandlers.push_back(ini_handler); + AddSettingsHandler(&ini_handler); } //------------------------------------------------------------------------- @@ -3447,7 +3480,7 @@ void ImGui::TableSettingsInstallHandler(ImGuiContext* context) // Remove Table (currently only used by TestEngine) void ImGui::TableRemove(ImGuiTable* table) { - //IMGUI_DEBUG_LOG("TableRemove() id=0x%08X\n", table->ID); + //IMGUI_DEBUG_PRINT("TableRemove() id=0x%08X\n", table->ID); ImGuiContext& g = *GImGui; int table_idx = g.Tables.GetIndex(table); //memset(table->RawData.Data, 0, table->RawData.size_in_bytes()); @@ -3459,7 +3492,7 @@ void ImGui::TableRemove(ImGuiTable* table) // Free up/compact internal Table buffers for when it gets unused void ImGui::TableGcCompactTransientBuffers(ImGuiTable* table) { - //IMGUI_DEBUG_LOG("TableGcCompactTransientBuffers() id=0x%08X\n", table->ID); + //IMGUI_DEBUG_PRINT("TableGcCompactTransientBuffers() id=0x%08X\n", table->ID); ImGuiContext& g = *GImGui; IM_ASSERT(table->MemoryCompacted == false); table->SortSpecs.Specs = NULL; @@ -3503,7 +3536,7 @@ void ImGui::TableGcCompactSettings() // - DebugNodeTable() [Internal] //------------------------------------------------------------------------- -#ifndef IMGUI_DISABLE_METRICS_WINDOW +#ifndef IMGUI_DISABLE_DEBUG_TOOLS static const char* DebugNodeTableGetSizingPolicyDesc(ImGuiTableFlags sizing_policy) { @@ -3531,6 +3564,8 @@ void ImGui::DebugNodeTable(ImGuiTable* table) GetForegroundDrawList()->AddRect(GetItemRectMin(), GetItemRectMax(), IM_COL32(255, 255, 0, 255)); if (!open) return; + if (table->InstanceCurrent > 0) + ImGui::Text("** %d instances of same table! Some data below will refer to last instance.", table->InstanceCurrent + 1); bool clear_settings = SmallButton("Clear settings"); BulletText("OuterRect: Pos: (%.1f,%.1f) Size: (%.1f,%.1f) Sizing: '%s'", table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.GetWidth(), table->OuterRect.GetHeight(), DebugNodeTableGetSizingPolicyDesc(table->Flags)); BulletText("ColumnsGivenWidth: %.1f, ColumnsAutoFitWidth: %.1f, InnerWidth: %.1f%s", table->ColumnsGivenWidth, table->ColumnsAutoFitWidth, table->InnerWidth, table->InnerWidth == 0.0f ? " (auto)" : ""); @@ -3595,7 +3630,7 @@ void ImGui::DebugNodeTableSettings(ImGuiTableSettings* settings) TreePop(); } -#else // #ifndef IMGUI_DISABLE_METRICS_WINDOW +#else // #ifndef IMGUI_DISABLE_DEBUG_TOOLS void ImGui::DebugNodeTable(ImGuiTable*) {} void ImGui::DebugNodeTableSettings(ImGuiTableSettings*) {} @@ -3935,6 +3970,7 @@ void ImGui::NextColumn() { // New row/line: column 0 honor IndentX. window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.IsSameLine = false; columns->LineMinY = columns->LineMaxY; } window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); @@ -3986,8 +4022,7 @@ void ImGui::EndColumns() const ImGuiID column_id = columns->ID + ImGuiID(n); const float column_hit_hw = COLUMNS_HIT_RECT_HALF_WIDTH; const ImRect column_hit_rect(ImVec2(x - column_hit_hw, y1), ImVec2(x + column_hit_hw, y2)); - KeepAliveID(column_id); - if (IsClippedEx(column_hit_rect, column_id)) // FIXME: Can be removed or replaced with a lower-level test + if (!ItemAdd(column_hit_rect, column_id, NULL, ImGuiItemFlags_NoNav)) continue; bool hovered = false, held = false; diff --git a/imgui-sys/third-party/imgui-master/imgui/imgui_widgets.cpp b/imgui-sys/third-party/imgui-master/imgui/imgui_widgets.cpp index f199ad40a..5ecb182ef 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imgui_widgets.cpp +++ b/imgui-sys/third-party/imgui-master/imgui/imgui_widgets.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.86 +// dear imgui, v1.89.1 // (widgets code) /* @@ -41,7 +41,6 @@ Index of this file: #include "imgui_internal.h" // System includes -#include // toupper #if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier #include // intptr_t #else @@ -82,6 +81,7 @@ Index of this file: #pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind #pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked #pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated #endif //------------------------------------------------------------------------- @@ -166,7 +166,21 @@ void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); const float wrap_pos_x = window->DC.TextWrapPos; const bool wrap_enabled = (wrap_pos_x >= 0.0f); - if (text_end - text > 2000 && !wrap_enabled) + if (text_end - text <= 2000 || wrap_enabled) + { + // Common case + const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; + const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + if (!ItemAdd(bb, 0)) + return; + + // Render (we don't hide text after ## in this end-user function) + RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); + } + else { // Long text! // Perform manual coarse clipping to optimize for long multi-line text @@ -239,19 +253,6 @@ void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) ItemSize(text_size, 0.0f); ItemAdd(bb, 0); } - else - { - const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; - const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); - - ImRect bb(text_pos, text_pos + text_size); - ItemSize(text_size, 0.0f); - if (!ItemAdd(bb, 0)) - return; - - // Render (we don't hide text after ## in this end-user function) - RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); - } } void ImGui::TextUnformatted(const char* text, const char* text_end) @@ -274,9 +275,9 @@ void ImGui::TextV(const char* fmt, va_list args) return; // FIXME-OPT: Handle the %s shortcut? - ImGuiContext& g = *GImGui; - const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - TextEx(g.TempBuffer, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); + const char* text, *text_end; + ImFormatStringToTempBufferV(&text, &text_end, fmt, args); + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); } void ImGui::TextColored(const ImVec4& col, const char* fmt, ...) @@ -357,8 +358,8 @@ void ImGui::LabelTextV(const char* label, const char* fmt, va_list args) const ImGuiStyle& style = g.Style; const float w = CalcItemWidth(); - const char* value_text_begin = &g.TempBuffer[0]; - const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); + const char* value_text_begin, *value_text_end; + ImFormatStringToTempBufferV(&value_text_begin, &value_text_end, fmt, args); const ImVec2 value_size = CalcTextSize(value_text_begin, value_text_end, false); const ImVec2 label_size = CalcTextSize(label, NULL, true); @@ -393,8 +394,8 @@ void ImGui::BulletTextV(const char* fmt, va_list args) ImGuiContext& g = *GImGui; const ImGuiStyle& style = g.Style; - const char* text_begin = g.TempBuffer; - const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); + const char* text_begin, *text_end; + ImFormatStringToTempBufferV(&text_begin, &text_end, fmt, args); const ImVec2 label_size = CalcTextSize(text_begin, text_end, false); const ImVec2 total_size = ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x * 2) : 0.0f), label_size.y); // Empty text doesn't add padding ImVec2 pos = window->DC.CursorPos; @@ -540,22 +541,20 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool hovered = false; // Mouse handling + const ImGuiID test_owner_id = (flags & ImGuiButtonFlags_NoTestKeyOwner) ? ImGuiKeyOwner_Any : id; if (hovered) { if (!(flags & ImGuiButtonFlags_NoKeyModifiers) || (!g.IO.KeyCtrl && !g.IO.KeyShift && !g.IO.KeyAlt)) { // Poll buttons int mouse_button_clicked = -1; - int mouse_button_released = -1; - if ((flags & ImGuiButtonFlags_MouseButtonLeft) && g.IO.MouseClicked[0]) { mouse_button_clicked = 0; } - else if ((flags & ImGuiButtonFlags_MouseButtonRight) && g.IO.MouseClicked[1]) { mouse_button_clicked = 1; } - else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && g.IO.MouseClicked[2]) { mouse_button_clicked = 2; } - if ((flags & ImGuiButtonFlags_MouseButtonLeft) && g.IO.MouseReleased[0]) { mouse_button_released = 0; } - else if ((flags & ImGuiButtonFlags_MouseButtonRight) && g.IO.MouseReleased[1]) { mouse_button_released = 1; } - else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && g.IO.MouseReleased[2]) { mouse_button_released = 2; } - + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && IsMouseClicked(0, test_owner_id)) { mouse_button_clicked = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && IsMouseClicked(1, test_owner_id)) { mouse_button_clicked = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && IsMouseClicked(2, test_owner_id)) { mouse_button_clicked = 2; } if (mouse_button_clicked != -1 && g.ActiveId != id) { + if (!(flags & ImGuiButtonFlags_NoSetKeyOwner)) + SetKeyOwner(MouseButtonToKey(mouse_button_clicked), id); if (flags & (ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere)) { SetActiveID(id, window); @@ -577,21 +576,27 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool FocusWindow(window); } } - if ((flags & ImGuiButtonFlags_PressedOnRelease) && mouse_button_released != -1) + if (flags & ImGuiButtonFlags_PressedOnRelease) { - // Repeat mode trumps on release behavior - const bool has_repeated_at_least_once = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; - if (!has_repeated_at_least_once) - pressed = true; - if (!(flags & ImGuiButtonFlags_NoNavFocus)) - SetFocusID(id, window); - ClearActiveID(); + int mouse_button_released = -1; + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && IsMouseReleased(0, test_owner_id)) { mouse_button_released = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && IsMouseReleased(1, test_owner_id)) { mouse_button_released = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && IsMouseReleased(2, test_owner_id)) { mouse_button_released = 2; } + if (mouse_button_released != -1) + { + const bool has_repeated_at_least_once = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; // Repeat mode trumps on release behavior + if (!has_repeated_at_least_once) + pressed = true; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + ClearActiveID(); + } } // 'Repeat' mode acts when held regardless of _PressedOn flags (see table above). // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. if (g.ActiveId == id && (flags & ImGuiButtonFlags_Repeat)) - if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, true)) + if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, test_owner_id, ImGuiInputFlags_Repeat)) pressed = true; } @@ -607,7 +612,15 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool if (g.NavActivateDownId == id) { bool nav_activated_by_code = (g.NavActivateId == id); - bool nav_activated_by_inputs = IsNavInputTest(ImGuiNavInput_Activate, (flags & ImGuiButtonFlags_Repeat) ? ImGuiInputReadMode_Repeat : ImGuiInputReadMode_Pressed); + bool nav_activated_by_inputs = (g.NavActivatePressedId == id); + if (!nav_activated_by_inputs && (flags & ImGuiButtonFlags_Repeat)) + { + // Avoid pressing both keys from triggering double amount of repeat events + const ImGuiKeyData* key1 = GetKeyData(ImGuiKey_Space); + const ImGuiKeyData* key2 = GetKeyData(ImGuiKey_NavGamepadActivate); + const float t1 = ImMax(key1->DownDuration, key2->DownDuration); + nav_activated_by_inputs = CalcTypematicRepeatAmount(t1 - g.IO.DeltaTime, t1, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; + } if (nav_activated_by_code || nav_activated_by_inputs) { // Set active id so it can be queried by user via IsItemActive(), equivalent of holding the mouse button. @@ -629,8 +642,7 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool g.ActiveIdClickOffset = g.IO.MousePos - bb.Min; const int mouse_button = g.ActiveIdMouseButton; - IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); - if (g.IO.MouseDown[mouse_button]) + if (IsMouseDown(mouse_button, test_owner_id)) { held = true; } @@ -643,7 +655,8 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool // Report as pressed when releasing the mouse (this is the most common path) bool is_double_click_release = (flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseReleased[mouse_button] && g.IO.MouseClickedLastCount[mouse_button] == 2; bool is_repeating_already = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button] >= g.IO.KeyRepeatDelay; // Repeat mode trumps - if (!is_double_click_release && !is_repeating_already) + bool is_button_avail_or_owned = TestKeyOwner(MouseButtonToKey(mouse_button), test_owner_id); + if (!is_double_click_release && !is_repeating_already && is_button_avail_or_owned) pressed = true; } ClearActiveID(); @@ -731,6 +744,7 @@ bool ImGui::SmallButton(const char* label) // Then you can keep 'str_id' empty or the same for all your buttons (instead of creating a string based on a non-string id) bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags) { + ImGuiContext& g = *GImGui; ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) return false; @@ -748,16 +762,17 @@ bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiBut bool hovered, held; bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); return pressed; } bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags) { + ImGuiContext& g = *GImGui; ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) return false; - ImGuiContext& g = *GImGui; const ImGuiID id = window->GetID(str_id); const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); const float default_size = GetFrameHeight(); @@ -778,6 +793,7 @@ bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiBu RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding); RenderArrow(window->DrawList, bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.FontSize) * 0.5f)), text_col, dir); + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); return pressed; } @@ -839,9 +855,8 @@ bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos) // Render ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); ImU32 text_col = GetColorU32(ImGuiCol_Text); - ImVec2 center = bb.GetCenter(); if (hovered || held) - window->DrawList->AddCircleFilled(center/*+ ImVec2(0.0f, -0.5f)*/, g.FontSize * 0.5f + 1.0f, bg_col, 12); + window->DrawList->AddCircleFilled(bb.GetCenter()/*+ ImVec2(0.0f, -0.5f)*/, g.FontSize * 0.5f + 1.0f, bg_col, 12); RenderArrow(window->DrawList, bb.Min + g.Style.FramePadding, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f); // Switch to moving the window after mouse is moved beyond the initial drag threshold @@ -853,7 +868,7 @@ bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos) ImGuiID ImGui::GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) { - return window->GetIDNoKeepAlive(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); + return window->GetID(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); } // Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is set. @@ -874,9 +889,7 @@ void ImGui::Scrollbar(ImGuiAxis axis) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - const ImGuiID id = GetWindowScrollbarID(window, axis); - KeepAliveID(id); // Calculate scrollbar bounding box ImRect bb = GetWindowScrollbarRect(window, axis); @@ -945,6 +958,7 @@ bool ImGui::ScrollbarEx(const ImRect& bb_frame, ImGuiID id, ImGuiAxis axis, ImS6 // Handle input right away. None of the code of Begin() is relying on scrolling position before calling Scrollbar(). bool held = false; bool hovered = false; + ItemAdd(bb_frame, id, NULL, ImGuiItemFlags_NoNav); ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus); const ImS64 scroll_max = ImMax((ImS64)1, size_contents_v - size_avail_v); @@ -1024,14 +1038,15 @@ void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& // ImageButton() is flawed as 'id' is always derived from 'texture_id' (see #2464 #1390) // We provide this internal helper to write your own variant while we figure out how to redesign the public ImageButton() API. -bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec2& padding, const ImVec4& bg_col, const ImVec4& tint_col) +bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) { ImGuiContext& g = *GImGui; ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) return false; - const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2); + const ImVec2 padding = g.Style.FramePadding; + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2.0f); ItemSize(bb); if (!ItemAdd(bb, id)) return false; @@ -1050,9 +1065,21 @@ bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size return pressed; } -// frame_padding < 0: uses FramePadding from style (default) -// frame_padding = 0: no framing -// frame_padding > 0: set framing size +bool ImGui::ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + return ImageButtonEx(window->GetID(str_id), user_texture_id, size, uv0, uv1, bg_col, tint_col); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy API obsoleted in 1.89. Two differences with new ImageButton() +// - new ImageButton() requires an explicit 'const char* str_id' Old ImageButton() used opaque imTextureId (created issue with: multiple buttons with same image, transient texture id values, opaque computation of ID) +// - new ImageButton() always use style.FramePadding Old ImageButton() had an override argument. +// If you need to change padding with new ImageButton() you can use PushStyleVar(ImGuiStyleVar_FramePadding, value), consistent with other Button functions. bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col) { ImGuiContext& g = *GImGui; @@ -1065,9 +1092,14 @@ bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const I const ImGuiID id = window->GetID("#image"); PopID(); - const ImVec2 padding = (frame_padding >= 0) ? ImVec2((float)frame_padding, (float)frame_padding) : g.Style.FramePadding; - return ImageButtonEx(id, user_texture_id, size, uv0, uv1, padding, bg_col, tint_col); + if (frame_padding >= 0) + PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2((float)frame_padding, (float)frame_padding)); + bool ret = ImageButtonEx(id, user_texture_id, size, uv0, uv1, bg_col, tint_col); + if (frame_padding >= 0) + PopStyleVar(); + return ret; } +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS bool ImGui::Checkbox(const char* label, bool* v) { @@ -1282,7 +1314,7 @@ void ImGui::Bullet() ImGuiContext& g = *GImGui; const ImGuiStyle& style = g.Style; - const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2), g.FontSize); + const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), g.FontSize); const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); ItemSize(bb); if (!ItemAdd(bb, 0)) @@ -1338,6 +1370,7 @@ void ImGui::NewLine() ImGuiContext& g = *GImGui; const ImGuiLayoutType backup_layout_type = window->DC.LayoutType; window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height. ItemSize(ImVec2(0, 0)); else @@ -1445,11 +1478,7 @@ bool ImGui::SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - const ImGuiItemFlags item_flags_backup = g.CurrentItemFlags; - g.CurrentItemFlags |= ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus; - bool item_add = ItemAdd(bb, id); - g.CurrentItemFlags = item_flags_backup; - if (!item_add) + if (!ItemAdd(bb, id, NULL, ImGuiItemFlags_NoNav)) return false; bool hovered, held; @@ -1533,7 +1562,7 @@ void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_exc width_excess -= width_to_remove_per_item * count_same_width; } - // Round width and redistribute remainder left-to-right (could make it an option of the function?) + // Round width and redistribute remainder // Ensure that e.g. the right-most tab of a shrunk tab-bar always reaches exactly at the same distance from the right-most edge of the tab bar separator. width_excess = 0.0f; for (int n = 0; n < count; n++) @@ -1542,10 +1571,13 @@ void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_exc width_excess += items[n].Width - width_rounded; items[n].Width = width_rounded; } - if (width_excess > 0.0f) - for (int n = 0; n < count; n++) - if (items[n].Index < (int)(width_excess + 0.01f)) - items[n].Width += 1.0f; + while (width_excess > 0.0f) + for (int n = 0; n < count && width_excess > 0.0f; n++) + { + float width_to_add = ImMin(items[n].InitialWidth - items[n].Width, 1.0f); + items[n].Width += width_to_add; + width_excess -= width_to_add; + } } //------------------------------------------------------------------------- @@ -1715,7 +1747,7 @@ bool ImGui::BeginComboPreview() ImGuiWindow* window = g.CurrentWindow; ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; - if (window->SkipItems || !window->ClipRect.Overlaps(g.LastItemData.Rect)) // FIXME: Because we don't have a ImGuiItemStatusFlags_Visible flag to test last ItemAdd() result + if (window->SkipItems || !(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible)) return false; IM_ASSERT(g.LastItemData.Rect.Min.x == preview_data->PreviewRect.Min.x && g.LastItemData.Rect.Min.y == preview_data->PreviewRect.Min.y); // Didn't call after BeginCombo/EndCombo block or forgot to pass ImGuiComboFlags_CustomPreview flag? if (!window->ClipRect.Contains(preview_data->PreviewRect)) // Narrower test (optional) @@ -1730,6 +1762,7 @@ bool ImGui::BeginComboPreview() window->DC.CursorPos = preview_data->PreviewRect.Min + g.Style.FramePadding; window->DC.CursorMaxPos = window->DC.CursorPos; window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; PushClipRect(preview_data->PreviewRect.Min, preview_data->PreviewRect.Max, true); return true; @@ -1755,6 +1788,7 @@ void ImGui::EndComboPreview() window->DC.CursorPosPrevLine = preview_data->BackupCursorPosPrevLine; window->DC.PrevLineTextBaseOffset = preview_data->BackupPrevLineTextBaseOffset; window->DC.LayoutType = preview_data->BackupLayout; + window->DC.IsSameLine = false; preview_data->PreviewRect = ImRect(); } @@ -1857,11 +1891,11 @@ bool ImGui::Combo(const char* label, int* current_item, const char* items_separa //------------------------------------------------------------------------- // [SECTION] Data Type and Data Formatting Helpers [Internal] //------------------------------------------------------------------------- -// - PatchFormatStringFloatToInt() // - DataTypeGetInfo() // - DataTypeFormatString() // - DataTypeApplyOp() // - DataTypeApplyOpFromText() +// - DataTypeCompare() // - DataTypeClamp() // - GetMinimumStepAtDecimalPrecision // - RoundScalarWithFormat<>() @@ -1887,30 +1921,6 @@ static const ImGuiDataTypeInfo GDataTypeInfo[] = }; IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT); -// FIXME-LEGACY: Prior to 1.61 our DragInt() function internally used floats and because of this the compile-time default value for format was "%.0f". -// Even though we changed the compile-time default, we expect users to have carried %f around, which would break the display of DragInt() calls. -// To honor backward compatibility we are rewriting the format string, unless IMGUI_DISABLE_OBSOLETE_FUNCTIONS is enabled. What could possibly go wrong?! -static const char* PatchFormatStringFloatToInt(const char* fmt) -{ - if (fmt[0] == '%' && fmt[1] == '.' && fmt[2] == '0' && fmt[3] == 'f' && fmt[4] == 0) // Fast legacy path for "%.0f" which is expected to be the most common case. - return "%d"; - const char* fmt_start = ImParseFormatFindStart(fmt); // Find % (if any, and ignore %%) - const char* fmt_end = ImParseFormatFindEnd(fmt_start); // Find end of format specifier, which itself is an exercise of confidence/recklessness (because snprintf is dependent on libc or user). - if (fmt_end > fmt_start && fmt_end[-1] == 'f') - { -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - if (fmt_start == fmt && fmt_end[0] == 0) - return "%d"; - ImGuiContext& g = *GImGui; - ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%.*s%%d%s", (int)(fmt_start - fmt), fmt, fmt_end); // Honor leading and trailing decorations, but lose alignment/precision. - return g.TempBuffer; -#else - IM_ASSERT(0 && "DragInt(): Invalid format string!"); // Old versions used a default parameter of "%.0f", please replace with e.g. "%d" -#endif - } - return fmt; -} - const ImGuiDataTypeInfo* ImGui::DataTypeGetInfo(ImGuiDataType data_type) { IM_ASSERT(data_type >= 0 && data_type < ImGuiDataType_COUNT); @@ -1992,24 +2002,10 @@ void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const // User can input math operators (e.g. +100) to edit a numerical values. // NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess.. -bool ImGui::DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format) +bool ImGui::DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format) { while (ImCharIsBlankA(*buf)) buf++; - - // We don't support '-' op because it would conflict with inputing negative value. - // Instead you can use +-100 to subtract from an existing value - char op = buf[0]; - if (op == '+' || op == '*' || op == '/') - { - buf++; - while (ImCharIsBlankA(*buf)) - buf++; - } - else - { - op = 0; - } if (!buf[0]) return false; @@ -2018,66 +2014,20 @@ bool ImGui::DataTypeApplyOpFromText(const char* buf, const char* initial_value_b ImGuiDataTypeTempStorage data_backup; memcpy(&data_backup, p_data, type_info->Size); - if (format == NULL) + // Sanitize format + // For float/double we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in, so force them into %f and %lf + char format_sanitized[32]; + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) format = type_info->ScanFmt; - - // FIXME-LEGACY: The aim is to remove those operators and write a proper expression evaluator at some point.. - int arg1i = 0; - if (data_type == ImGuiDataType_S32) - { - int* v = (int*)p_data; - int arg0i = *v; - float arg1f = 0.0f; - if (op && sscanf(initial_value_buf, format, &arg0i) < 1) - return false; - // Store operand in a float so we can use fractional value for multipliers (*1.1), but constant always parsed as integer so we can fit big integers (e.g. 2000000003) past float precision - if (op == '+') { if (sscanf(buf, "%d", &arg1i)) *v = (int)(arg0i + arg1i); } // Add (use "+-" to subtract) - else if (op == '*') { if (sscanf(buf, "%f", &arg1f)) *v = (int)(arg0i * arg1f); } // Multiply - else if (op == '/') { if (sscanf(buf, "%f", &arg1f) && arg1f != 0.0f) *v = (int)(arg0i / arg1f); } // Divide - else { if (sscanf(buf, format, &arg1i) == 1) *v = arg1i; } // Assign constant - } - else if (data_type == ImGuiDataType_Float) - { - // For floats we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in - format = "%f"; - float* v = (float*)p_data; - float arg0f = *v, arg1f = 0.0f; - if (op && sscanf(initial_value_buf, format, &arg0f) < 1) - return false; - if (sscanf(buf, format, &arg1f) < 1) - return false; - if (op == '+') { *v = arg0f + arg1f; } // Add (use "+-" to subtract) - else if (op == '*') { *v = arg0f * arg1f; } // Multiply - else if (op == '/') { if (arg1f != 0.0f) *v = arg0f / arg1f; } // Divide - else { *v = arg1f; } // Assign constant - } - else if (data_type == ImGuiDataType_Double) - { - format = "%lf"; // scanf differentiate float/double unlike printf which forces everything to double because of ellipsis - double* v = (double*)p_data; - double arg0f = *v, arg1f = 0.0; - if (op && sscanf(initial_value_buf, format, &arg0f) < 1) - return false; - if (sscanf(buf, format, &arg1f) < 1) - return false; - if (op == '+') { *v = arg0f + arg1f; } // Add (use "+-" to subtract) - else if (op == '*') { *v = arg0f * arg1f; } // Multiply - else if (op == '/') { if (arg1f != 0.0f) *v = arg0f / arg1f; } // Divide - else { *v = arg1f; } // Assign constant - } - else if (data_type == ImGuiDataType_U32 || data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) - { - // All other types assign constant - // We don't bother handling support for legacy operators since they are a little too crappy. Instead we will later implement a proper expression evaluator in the future. - if (sscanf(buf, format, p_data) < 1) - return false; - } else + format = ImParseFormatSanitizeForScanning(format, format_sanitized, IM_ARRAYSIZE(format_sanitized)); + + // Small types need a 32-bit buffer to receive the result from scanf() + int v32 = 0; + if (sscanf(buf, format, type_info->Size >= 4 ? p_data : &v32) < 1) + return false; + if (type_info->Size < 4) { - // Small types need a 32-bit buffer to receive the result from scanf() - int v32; - if (sscanf(buf, format, &v32) < 1) - return false; if (data_type == ImGuiDataType_S8) *(ImS8*)p_data = (ImS8)ImClamp(v32, (int)IM_S8_MIN, (int)IM_S8_MAX); else if (data_type == ImGuiDataType_U8) @@ -2159,45 +2109,17 @@ static float GetMinimumStepAtDecimalPrecision(int decimal_precision) } template -static const char* ImAtoi(const char* src, TYPE* output) -{ - int negative = 0; - if (*src == '-') { negative = 1; src++; } - if (*src == '+') { src++; } - TYPE v = 0; - while (*src >= '0' && *src <= '9') - v = (v * 10) + (*src++ - '0'); - *output = negative ? -v : v; - return src; -} - -// Sanitize format -// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi -// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi. -static void SanitizeFormatString(const char* fmt, char* fmt_out, size_t fmt_out_size) -{ - IM_UNUSED(fmt_out_size); - const char* fmt_end = ImParseFormatFindEnd(fmt); - IM_ASSERT((size_t)(fmt_end - fmt + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! - while (fmt < fmt_end) - { - char c = *(fmt++); - if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. - *(fmt_out++) = c; - } - *fmt_out = 0; // Zero-terminate -} - -template TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v) { + IM_UNUSED(data_type); + IM_ASSERT(data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double); const char* fmt_start = ImParseFormatFindStart(format); if (fmt_start[0] != '%' || fmt_start[1] == '%') // Don't apply if the value is not visible in the format string return v; // Sanitize format char fmt_sanitized[32]; - SanitizeFormatString(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); + ImParseFormatSanitizeForPrinting(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); fmt_start = fmt_sanitized; // Format value with our rounding, and read back @@ -2206,10 +2128,8 @@ TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, const char* p = v_str; while (*p == ' ') p++; - if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) - v = (TYPE)ImAtof(p); - else - ImAtoi(p, (SIGNEDTYPE*)&v); + v = (TYPE)ImAtof(p); + return v; } @@ -2259,7 +2179,10 @@ bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const else if (g.ActiveIdSource == ImGuiInputSource_Nav) { const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; - adjust_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard | ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_RepeatFast, 1.0f / 10.0f, 10.0f)[axis]; + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const float tweak_factor = tweak_slow ? 1.0f / 1.0f : tweak_fast ? 10.0f : 1.0f; + adjust_delta = GetNavTweakPressedAmount(axis) * tweak_factor; v_speed = ImMax(v_speed, GetMinimumStepAtDecimalPrecision(decimal_precision)); } adjust_delta *= v_speed; @@ -2313,8 +2236,8 @@ bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const } // Round to user desired precision based on format string - if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) - v_cur = RoundScalarWithFormatT(format, data_type, v_cur); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_cur = RoundScalarWithFormatT(format, data_type, v_cur); // Preserve remainder after rounding has been applied. This also allow slow tweaking of values. g.DragCurrentAccumDirty = false; @@ -2357,6 +2280,7 @@ bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v ImGuiContext& g = *GImGui; if (g.ActiveId == id) { + // Those are the things we can do easily outside the DragBehaviorT<> template, saves code generation. if (g.ActiveIdSource == ImGuiInputSource_Mouse && !g.IO.MouseDown[0]) ClearActiveID(); else if (g.ActiveIdSource == ImGuiInputSource_Nav && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) @@ -2410,29 +2334,23 @@ bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, // Default format string when passing NULL if (format == NULL) format = DataTypeGetInfo(data_type)->PrintFmt; - else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) - format = PatchFormatStringFloatToInt(format); - // Tabbing or CTRL-clicking on Drag turns it into an InputText const bool hovered = ItemHoverable(frame_bb, id); bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); if (!temp_input_is_active) { + // Tabbing or CTRL-clicking on Drag turns it into an InputText const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; - const bool clicked = (hovered && g.IO.MouseClicked[0]); - const bool double_clicked = (hovered && g.IO.MouseClickedCount[0] == 2); - if (input_requested_by_tabbing || clicked || double_clicked || g.NavActivateId == id || g.NavActivateInputId == id) - { - SetActiveID(id, window); - SetFocusID(id, window); - FocusWindow(window); - g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); - if (temp_input_allowed) - if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || double_clicked || g.NavActivateInputId == id) - temp_input_is_active = true; - } + const bool clicked = hovered && IsMouseClicked(0, id); + const bool double_clicked = (hovered && g.IO.MouseClickedCount[0] == 2 && TestKeyOwner(ImGuiKey_MouseLeft, id)); + const bool make_active = (input_requested_by_tabbing || clicked || double_clicked || g.NavActivateId == id || g.NavActivateInputId == id); + if (make_active && (clicked || double_clicked)) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || double_clicked || g.NavActivateInputId == id) + temp_input_is_active = true; - // Experimental: simple click (without moving) turns Drag into an InputText + // (Optional) simple click (without moving) turns Drag into an InputText if (g.IO.ConfigDragClickToInputText && temp_input_allowed && !temp_input_is_active) if (g.ActiveId == id && hovered && g.IO.MouseReleased[0] && !IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) { @@ -2440,6 +2358,14 @@ bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, g.NavActivateFlags = ImGuiActivateFlags_PreferInput; temp_input_is_active = true; } + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } } if (temp_input_is_active) @@ -2615,35 +2541,6 @@ bool ImGui::DragIntRange2(const char* label, int* v_current_min, int* v_current_ return value_changed; } -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - -// Obsolete versions with power parameter. See https://github.com/ocornut/imgui/issues/3361 for details. -bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power) -{ - ImGuiSliderFlags drag_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - IM_ASSERT(p_min != NULL && p_max != NULL); // When using a power curve the drag needs to have known bounds - drag_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return DragScalar(label, data_type, p_data, v_speed, p_min, p_max, format, drag_flags); -} - -bool ImGui::DragScalarN(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, float power) -{ - ImGuiSliderFlags drag_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - IM_ASSERT(p_min != NULL && p_max != NULL); // When using a power curve the drag needs to have known bounds - drag_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return DragScalarN(label, data_type, p_data, components, v_speed, p_min, p_max, format, drag_flags); -} - -#endif // IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //------------------------------------------------------------------------- // [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. //------------------------------------------------------------------------- @@ -2694,7 +2591,6 @@ float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, T v_max_fudged = -logarithmic_zero_epsilon; float result; - if (v_clamped <= v_min_fudged) result = 0.0f; // Workaround for values that are in-range but below our fudge else if (v_clamped >= v_max_fudged) @@ -2718,91 +2614,81 @@ float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, T return flipped ? (1.0f - result) : result; } - - // Linear slider - return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); + else + { + // Linear slider + return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); + } } // Convert a parametric position on a slider into a value v in the output space (the logical opposite of ScaleRatioFromValueT) template TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) { - if (v_min == v_max) + // We special-case the extents because otherwise our logarithmic fudging can lead to "mathematically correct" + // but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value. Also generally simpler. + if (t <= 0.0f || v_min == v_max) return v_min; - const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + if (t >= 1.0f) + return v_max; - TYPE result; + TYPE result = (TYPE)0; if (is_logarithmic) { - // We special-case the extents because otherwise our fudging can lead to "mathematically correct" but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value - if (t <= 0.0f) - result = v_min; - else if (t >= 1.0f) - result = v_max; - else - { - bool flipped = v_max < v_min; // Check if range is "backwards" - - // Fudge min/max to avoid getting silly results close to zero - FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; - FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + // Fudge min/max to avoid getting silly results close to zero + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; - if (flipped) - ImSwap(v_min_fudged, v_max_fudged); + const bool flipped = v_max < v_min; // Check if range is "backwards" + if (flipped) + ImSwap(v_min_fudged, v_max_fudged); - // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) - if ((v_max == 0.0f) && (v_min < 0.0f)) - v_max_fudged = -logarithmic_zero_epsilon; + // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; - float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range + float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range - if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts - { - float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space - float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; - float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; - if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) - result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) - else if (t_with_flip < zero_point_center) - result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); - else - result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); - } - else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider - result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); + if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts + { + float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) + result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) + else if (t_with_flip < zero_point_center) + result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); else - result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); + result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); + else + result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); } else { // Linear slider + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); if (is_floating_point) { result = ImLerp(v_min, v_max, t); } - else + else if (t < 1.0) { // - For integer values we want the clicking position to match the grab box so we round above // This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property.. // - Not doing a *1.0 multiply at the end of a range as it tends to be lossy. While absolute aiming at a large s64/u64 // range is going to be imprecise anyway, with this check we at least make the edge values matches expected limits. - if (t < 1.0) - { - FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; - result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); - } - else - { - result = v_max; - } + FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; + result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); } } return result; } -// FIXME: Move more of the code into SliderBehavior() +// FIXME: Try to move more of the code into shared SliderBehavior() template bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) { @@ -2812,13 +2698,14 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + const SIGNEDTYPE v_range = (v_min < v_max ? v_max - v_min : v_min - v_max); - const float grab_padding = 2.0f; + // Calculate bounds + const float grab_padding = 2.0f; // FIXME: Should be part of style. const float slider_sz = (bb.Max[axis] - bb.Min[axis]) - grab_padding * 2.0f; float grab_sz = style.GrabMinSize; - SIGNEDTYPE v_range = (v_min < v_max ? v_max - v_min : v_min - v_max); - if (!is_floating_point && v_range >= 0) // v_range < 0 may happen on integer overflows - grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit + if (!is_floating_point && v_range >= 0) // v_range < 0 may happen on integer overflows + grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit grab_sz = ImMin(grab_sz, slider_sz); const float slider_usable_sz = slider_sz - grab_sz; const float slider_usable_pos_min = bb.Min[axis] + grab_padding + grab_sz * 0.5f; @@ -2849,7 +2736,17 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ else { const float mouse_abs_pos = g.IO.MousePos[axis]; - clicked_t = (slider_usable_sz > 0.0f) ? ImClamp((mouse_abs_pos - slider_usable_pos_min) / slider_usable_sz, 0.0f, 1.0f) : 0.0f; + if (g.ActiveIdIsJustActivated) + { + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + const bool clicked_around_grab = (mouse_abs_pos >= grab_pos - grab_sz * 0.5f - 1.0f) && (mouse_abs_pos <= grab_pos + grab_sz * 0.5f + 1.0f); // No harm being extra generous here. + g.SliderGrabClickOffset = (clicked_around_grab && is_floating_point) ? mouse_abs_pos - grab_pos : 0.0f; + } + if (slider_usable_sz > 0.0f) + clicked_t = ImSaturate((mouse_abs_pos - g.SliderGrabClickOffset - slider_usable_pos_min) / slider_usable_sz); if (axis == ImGuiAxis_Y) clicked_t = 1.0f - clicked_t; set_new_value = true; @@ -2863,25 +2760,26 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ g.SliderCurrentAccumDirty = false; } - const ImVec2 input_delta2 = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard | ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_RepeatFast, 0.0f, 0.0f); - float input_delta = (axis == ImGuiAxis_X) ? input_delta2.x : -input_delta2.y; + float input_delta = (axis == ImGuiAxis_X) ? GetNavTweakPressedAmount(axis) : -GetNavTweakPressedAmount(axis); if (input_delta != 0.0f) { + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; if (decimal_precision > 0) { input_delta /= 100.0f; // Gamepad/keyboard tweak speeds in % of slider bounds - if (IsNavInputDown(ImGuiNavInput_TweakSlow)) + if (tweak_slow) input_delta /= 10.0f; } else { - if ((v_range >= -100.0f && v_range <= 100.0f) || IsNavInputDown(ImGuiNavInput_TweakSlow)) + if ((v_range >= -100.0f && v_range <= 100.0f) || tweak_slow) input_delta = ((input_delta < 0.0f) ? -1.0f : +1.0f) / (float)v_range; // Gamepad/keyboard tweak speeds in integer steps else input_delta /= 100.0f; } - if (IsNavInputDown(ImGuiNavInput_TweakFast)) + if (tweak_fast) input_delta *= 10.0f; g.SliderCurrentAccum += input_delta; @@ -2910,8 +2808,8 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ // Calculate what our "new" clicked_t will be, and thus how far we actually moved the slider, and subtract this from the accumulator TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) - v_new = RoundScalarWithFormatT(format, data_type, v_new); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); float new_clicked_t = ScaleRatioFromValueT(data_type, v_new, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); if (delta > 0) @@ -2929,8 +2827,8 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); // Round to user desired precision based on format string - if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) - v_new = RoundScalarWithFormatT(format, data_type, v_new); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); // Apply result if (*v != v_new) @@ -2969,6 +2867,7 @@ bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flag! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + // Those are the things we can do easily outside the SliderBehaviorT<> template, saves code generation. ImGuiContext& g = *GImGui; if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) return false; @@ -3028,24 +2927,27 @@ bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_dat // Default format string when passing NULL if (format == NULL) format = DataTypeGetInfo(data_type)->PrintFmt; - else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) - format = PatchFormatStringFloatToInt(format); - // Tabbing or CTRL-clicking on Slider turns it into an input box const bool hovered = ItemHoverable(frame_bb, id); bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); if (!temp_input_is_active) { + // Tabbing or CTRL-clicking on Slider turns it into an input box const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; - const bool clicked = (hovered && g.IO.MouseClicked[0]); - if (input_requested_by_tabbing || clicked || g.NavActivateId == id || g.NavActivateInputId == id) + const bool clicked = hovered && IsMouseClicked(0, id); + const bool make_active = (input_requested_by_tabbing || clicked || g.NavActivateId == id || g.NavActivateInputId == id); + if (make_active && clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || g.NavActivateInputId == id) + temp_input_is_active = true; + + if (make_active && !temp_input_is_active) { SetActiveID(id, window); SetFocusID(id, window); FocusWindow(window); g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); - if (temp_input_allowed && (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || g.NavActivateInputId == id)) - temp_input_is_active = true; } } @@ -3192,12 +3094,13 @@ bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType d // Default format string when passing NULL if (format == NULL) format = DataTypeGetInfo(data_type)->PrintFmt; - else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) - format = PatchFormatStringFloatToInt(format); const bool hovered = ItemHoverable(frame_bb, id); - if ((hovered && g.IO.MouseClicked[0]) || g.NavActivateId == id || g.NavActivateInputId == id) + const bool clicked = hovered && IsMouseClicked(0, id); + if (clicked || g.NavActivateId == id || g.NavActivateInputId == id) { + if (clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); SetActiveID(id, window); SetFocusID(id, window); FocusWindow(window); @@ -3240,39 +3143,14 @@ bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, return VSliderScalar(label, size, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); } -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - -// Obsolete versions with power parameter. See https://github.com/ocornut/imgui/issues/3361 for details. -bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power) -{ - ImGuiSliderFlags slider_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - slider_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return SliderScalar(label, data_type, p_data, p_min, p_max, format, slider_flags); -} - -bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, float power) -{ - ImGuiSliderFlags slider_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - slider_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return SliderScalarN(label, data_type, v, components, v_min, v_max, format, slider_flags); -} - -#endif // IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //------------------------------------------------------------------------- // [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. //------------------------------------------------------------------------- // - ImParseFormatFindStart() [Internal] // - ImParseFormatFindEnd() [Internal] // - ImParseFormatTrimDecorations() [Internal] +// - ImParseFormatSanitizeForPrinting() [Internal] +// - ImParseFormatSanitizeForScanning() [Internal] // - ImParseFormatPrecision() [Internal] // - TempInputTextScalar() [Internal] // - InputScalar() @@ -3336,6 +3214,57 @@ const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_ return buf; } +// Sanitize format +// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi +// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi. +void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate +} + +// - For scanning we need to remove all width and precision fields "%3.7f" -> "%f". BUT don't strip types like "%I64d" which includes digits. ! "%07I64d" -> "%I64d" +const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + const char* fmt_out_begin = fmt_out; + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + bool has_type = false; + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (!has_type && ((c >= '0' && c <= '9') || c == '.')) + continue; + has_type |= ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')); // Stop skipping digits + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate + return fmt_out_begin; +} + +template +static const char* ImAtoi(const char* src, TYPE* output) +{ + int negative = 0; + if (*src == '-') { negative = 1; src++; } + if (*src == '+') { src++; } + TYPE v = 0; + while (*src >= '0' && *src <= '9') + v = (v * 10) + (*src++ - '0'); + *output = negative ? -v : v; + return src; +} + // Parse display precision back from the display format string // FIXME: This is still used by some navigation code path to infer a minimum tweak step, but we should aim to rework widgets so it isn't needed. int ImParseFormatPrecision(const char* fmt, int default_precision) @@ -3382,13 +3311,19 @@ bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* return value_changed; } +static inline ImGuiInputTextFlags InputScalar_DefaultCharsFilter(ImGuiDataType data_type, const char* format) +{ + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + return ImGuiInputTextFlags_CharsScientific; + const char format_last_char = format[0] ? format[strlen(format) - 1] : 0; + return (format_last_char == 'x' || format_last_char == 'X') ? ImGuiInputTextFlags_CharsHexadecimal : ImGuiInputTextFlags_CharsDecimal; +} + // Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set! // This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility. // However this may not be ideal for all uses, as some user code may break on out of bound values. bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max) { - ImGuiContext& g = *GImGui; - char fmt_buf[32]; char data_buf[32]; format = ImParseFormatTrimDecorations(format, fmt_buf, IM_ARRAYSIZE(fmt_buf)); @@ -3396,7 +3331,8 @@ bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImG ImStrTrimBlanks(data_buf); ImGuiInputTextFlags flags = ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; - flags |= ((data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) ? ImGuiInputTextFlags_CharsScientific : ImGuiInputTextFlags_CharsDecimal); + flags |= InputScalar_DefaultCharsFilter(data_type, format); + bool value_changed = false; if (TempInputText(bb, id, label, data_buf, IM_ARRAYSIZE(data_buf), flags)) { @@ -3406,7 +3342,7 @@ bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImG memcpy(&data_backup, p_data, data_type_size); // Apply new value (or operations) then clamp - DataTypeApplyOpFromText(data_buf, g.InputTextState.InitialTextA.Data, data_type, p_data, NULL); + DataTypeApplyFromText(data_buf, data_type, p_data, format); if (p_clamp_min || p_clamp_max) { if (p_clamp_min && p_clamp_max && DataTypeCompare(data_type, p_clamp_min, p_clamp_max) > 0) @@ -3439,12 +3375,12 @@ bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data char buf[64]; DataTypeFormatString(buf, IM_ARRAYSIZE(buf), data_type, p_data, format); - bool value_changed = false; - if ((flags & (ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) - flags |= ImGuiInputTextFlags_CharsDecimal; - flags |= ImGuiInputTextFlags_AutoSelectAll; - flags |= ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. + // Testing ActiveId as a minor optimization as filtering is not needed until active + if (g.ActiveId == 0 && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) + flags |= InputScalar_DefaultCharsFilter(data_type, format); + flags |= ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. + bool value_changed = false; if (p_step != NULL) { const float button_size = GetFrameHeight(); @@ -3453,7 +3389,8 @@ bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data PushID(label); SetNextItemWidth(ImMax(1.0f, CalcItemWidth() - (button_size + style.ItemInnerSpacing.x) * 2)); if (InputText("", buf, IM_ARRAYSIZE(buf), flags)) // PushId(label) + "" gives us the expected ID from outside point of view - value_changed = DataTypeApplyOpFromText(buf, g.InputTextState.InitialTextA.Data, data_type, p_data, format); + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags); // Step buttons const ImVec2 backup_frame_padding = style.FramePadding; @@ -3490,7 +3427,7 @@ bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data else { if (InputText(label, buf, IM_ARRAYSIZE(buf), flags)) - value_changed = DataTypeApplyOpFromText(buf, g.InputTextState.InitialTextA.Data, data_type, p_data, format); + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); } if (value_changed) MarkItemEdited(g.LastItemData.ID); @@ -3588,7 +3525,11 @@ bool ImGui::InputDouble(const char* label, double* v, double step, double step_f // - InputText() // - InputTextWithHint() // - InputTextMultiline() +// - InputTextGetCharInfo() [Internal] +// - InputTextReindexLines() [Internal] +// - InputTextReindexLinesRange() [Internal] // - InputTextEx() [Internal] +// - DebugNodeInputTextState() [Internal] //------------------------------------------------------------------------- bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) @@ -3604,7 +3545,7 @@ bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, co bool ImGui::InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) { - IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() or InputTextEx() manually if you need multi-line + hint. return InputTextEx(label, hint, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); } @@ -3695,13 +3636,10 @@ static int is_word_boundary_from_right(ImGuiInputTextState* obj, int idx) static int is_word_boundary_from_left(ImGuiInputTextState* obj, int idx) { if (obj->Flags & ImGuiInputTextFlags_Password) return 0; return idx > 0 ? (!is_separator(obj->TextW[idx - 1]) && is_separator(obj->TextW[idx])) : 1; } static int STB_TEXTEDIT_MOVEWORDLEFT_IMPL(ImGuiInputTextState* obj, int idx) { idx--; while (idx >= 0 && !is_word_boundary_from_right(obj, idx)) idx--; return idx < 0 ? 0 : idx; } static int STB_TEXTEDIT_MOVEWORDRIGHT_MAC(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_left(obj, idx)) idx++; return idx > len ? len : idx; } -#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h -#ifdef __APPLE__ // FIXME: Move setting to IO structure -#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_MAC -#else static int STB_TEXTEDIT_MOVEWORDRIGHT_WIN(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_right(obj, idx)) idx++; return idx > len ? len : idx; } -#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_WIN -#endif +static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(ImGuiInputTextState* obj, int idx) { if (ImGui::GetIO().ConfigMacOSXBehaviors) return STB_TEXTEDIT_MOVEWORDRIGHT_MAC(obj, idx); else return STB_TEXTEDIT_MOVEWORDRIGHT_WIN(obj, idx); } +#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h +#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_IMPL static void STB_TEXTEDIT_DELETECHARS(ImGuiInputTextState* obj, int pos, int n) { @@ -3779,11 +3717,12 @@ static void stb_textedit_replace(ImGuiInputTextState* str, STB_TexteditState* st { stb_text_makeundo_replace(str, state, 0, str->CurLenW, text_len); ImStb::STB_TEXTEDIT_DELETECHARS(str, 0, str->CurLenW); + state->cursor = state->select_start = state->select_end = 0; if (text_len <= 0) return; if (ImStb::STB_TEXTEDIT_INSERTCHARS(str, 0, text, text_len)) { - state->cursor = text_len; + state->cursor = state->select_start = state->select_end = text_len; state->has_preferred_x = 0; return; } @@ -3868,7 +3807,7 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f if (c < 0x20) { bool pass = false; - pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); + pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); // Note that an Enter KEY will emit \r and be ignored (we poll for KEY in InputText() code) pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput)); if (!pass) return false; @@ -3902,6 +3841,13 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f ImGuiContext& g = *GImGui; const unsigned c_decimal_point = (unsigned int)g.PlatformLocaleDecimalPoint; + // Full-width -> half-width conversion for numeric fields (https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block) + // While this is mostly convenient, this has the side-effect for uninformed users accidentally inputting full-width characters that they may + // scratch their head as to why it works in numerical fields vs in generic text fields it would require support in the font. + if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsScientific | ImGuiInputTextFlags_CharsHexadecimal)) + if (c >= 0xFF01 && c <= 0xFF5E) + c = c - 0xFF01 + 0x21; + // Allow 0-9 . - + * / if (flags & ImGuiInputTextFlags_CharsDecimal) if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/')) @@ -3920,11 +3866,13 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f // Turn a-z into A-Z if (flags & ImGuiInputTextFlags_CharsUppercase) if (c >= 'a' && c <= 'z') - *p_char = (c += (unsigned int)('A' - 'a')); + c += (unsigned int)('A' - 'a'); if (flags & ImGuiInputTextFlags_CharsNoBlank) if (ImCharIsBlankW(c)) return false; + + *p_char = c; } // Custom callback filter @@ -3946,6 +3894,41 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f return true; } +// Find the shortest single replacement we can make to get the new text from the old text. +// Important: needs to be run before TextW is rewritten with the new characters because calling STB_TEXTEDIT_GETCHAR() at the end. +// FIXME: Ideally we should transition toward (1) making InsertChars()/DeleteChars() update undo-stack (2) discourage (and keep reconcile) or obsolete (and remove reconcile) accessing buffer directly. +static void InputTextReconcileUndoStateAfterUserCallback(ImGuiInputTextState* state, const char* new_buf_a, int new_length_a) +{ + ImGuiContext& g = *GImGui; + const ImWchar* old_buf = state->TextW.Data; + const int old_length = state->CurLenW; + const int new_length = ImTextCountCharsFromUtf8(new_buf_a, new_buf_a + new_length_a); + g.TempBuffer.reserve_discard((new_length + 1) * sizeof(ImWchar)); + ImWchar* new_buf = (ImWchar*)(void*)g.TempBuffer.Data; + ImTextStrFromUtf8(new_buf, new_length + 1, new_buf_a, new_buf_a + new_length_a); + + const int shorter_length = ImMin(old_length, new_length); + int first_diff; + for (first_diff = 0; first_diff < shorter_length; first_diff++) + if (old_buf[first_diff] != new_buf[first_diff]) + break; + if (first_diff == old_length && first_diff == new_length) + return; + + int old_last_diff = old_length - 1; + int new_last_diff = new_length - 1; + for (; old_last_diff >= first_diff && new_last_diff >= first_diff; old_last_diff--, new_last_diff--) + if (old_buf[old_last_diff] != new_buf[new_last_diff]) + break; + + const int insert_len = new_last_diff - first_diff + 1; + const int delete_len = old_last_diff - first_diff + 1; + if (insert_len > 0 || delete_len > 0) + if (STB_TEXTEDIT_CHARTYPE* p = stb_text_createundo(&state->Stb.undostate, first_diff, delete_len, insert_len)) + for (int i = 0; i < delete_len; i++) + p[i] = ImStb::STB_TEXTEDIT_GETCHAR(state, first_diff + i); +} + // Edit a string of text // - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". // This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match @@ -4066,17 +4049,21 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ state->InitialTextA.resize(buf_len + 1); // UTF-8. we use +1 to make sure that .Data is always pointing to at least an empty string. memcpy(state->InitialTextA.Data, buf, buf_len + 1); + // Preserve cursor position and undo/redo stack if we come back to same widget + // FIXME: Since we reworked this on 2022/06, may want to differenciate recycle_cursor vs recycle_undostate? + bool recycle_state = (state->ID == id && !init_changed_specs); + if (recycle_state && (state->CurLenA != buf_len || (state->TextAIsValid && strncmp(state->TextA.Data, buf, buf_len) != 0))) + recycle_state = false; + // Start edition const char* buf_end = NULL; + state->ID = id; state->TextW.resize(buf_size + 1); // wchar count <= UTF-8 count. we use +1 to make sure that .Data is always pointing to at least an empty string. state->TextA.resize(0); state->TextAIsValid = false; // TextA is not valid yet (we will display buf until then) state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, buf_size, buf, NULL, &buf_end); state->CurLenA = (int)(buf_end - buf); // We can't get the result from ImStrncpy() above because it is not UTF-8 aware. Here we'll cut off malformed UTF-8. - // Preserve cursor position and undo/redo stack if we come back to same widget - // FIXME: For non-readonly widgets we might be able to require that TextAIsValid && TextA == buf ? (untested) and discard undo stack if user buffer has changed. - const bool recycle_state = (state->ID == id && !init_changed_specs); if (recycle_state) { // Recycle existing cursor/selection/undo stack but clamp position @@ -4085,7 +4072,6 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } else { - state->ID = id; state->ScrollX = 0.0f; stb_textedit_initialize_state(&state->Stb, !is_multiline); } @@ -4110,18 +4096,24 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ SetActiveID(id, window); SetFocusID(id, window); FocusWindow(window); - - // Declare our inputs - IM_ASSERT(ImGuiNavInput_COUNT < 32); + } + if (g.ActiveId == id) + { + // Declare some inputs, the other are registered and polled via Shortcut() routing system. + if (user_clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); if (is_multiline || (flags & ImGuiInputTextFlags_CallbackHistory)) g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); - g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); - g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_Home) | ((ImU64)1 << ImGuiKey_End); + SetKeyOwner(ImGuiKey_Home, id); + SetKeyOwner(ImGuiKey_End, id); if (is_multiline) - g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_PageUp) | ((ImU64)1 << ImGuiKey_PageDown); - if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. - g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_Tab); + { + SetKeyOwner(ImGuiKey_PageUp, id); + SetKeyOwner(ImGuiKey_PageDown, id); + } + if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. + SetKeyOwner(ImGuiKey_Tab, id); } // We have an edge case if ActiveId was set through another widget (e.g. widget being swapped), clear id immediately (don't wait until the end of the function) @@ -4133,10 +4125,10 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ clear_active_id = true; // Lock the decision of whether we are going to take the path displaying the cursor or selection - const bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); + bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); bool render_selection = state && (state->HasSelection() || select_all) && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); bool value_changed = false; - bool enter_pressed = false; + bool validated = false; // When read-only we always use the live data passed to the function // FIXME-OPT: Because our selection/cursor code currently needs the wide text we need to convert it when active, which is not ideal :( @@ -4232,10 +4224,12 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } else if (io.MouseClicked[0] && !state->SelectedAllMouseLock) { - // FIXME: unselect on late click could be done release? if (hovered) { - stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + if (io.KeyShift) + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + else + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); state->CursorAnimReset(); } } @@ -4248,16 +4242,15 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ if (state->SelectedAllMouseLock && !io.MouseDown[0]) state->SelectedAllMouseLock = false; - // It is ill-defined whether the backend needs to send a \t character when pressing the TAB keys. - // Win32 and GLFW naturally do it but not SDL. + // We expect backends to emit a Tab key but some also emit a Tab character which we ignore (#2467, #1336) + // (For Tab and Enter: Win32/SFML/Allegro are sending both keys and chars, GLFW and SDL are only sending keys. For Space they all send all threes) const bool ignore_char_inputs = (io.KeyCtrl && !io.KeyAlt) || (is_osx && io.KeySuper); - if ((flags & ImGuiInputTextFlags_AllowTabInput) && IsKeyPressedMap(ImGuiKey_Tab) && !ignore_char_inputs && !io.KeyShift && !is_readonly) - if (!io.InputQueueCharacters.contains('\t')) - { - unsigned int c = '\t'; // Insert TAB - if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) - state->OnKeyPressed((int)c); - } + if ((flags & ImGuiInputTextFlags_AllowTabInput) && IsKeyPressed(ImGuiKey_Tab) && !ignore_char_inputs && !io.KeyShift && !is_readonly) + { + unsigned int c = '\t'; // Insert TAB + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } // Process regular text input (before we check for Return because using some IME will effectively send a Return?) // We ignore CTRL inputs, but need to allow ALT+CTRL as some keyboards (e.g. German) use AltGR (which _is_ Alt+Ctrl) to input certain characters. @@ -4268,7 +4261,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ { // Insert character if they pass filtering unsigned int c = (unsigned int)io.InputQueueCharacters[n]; - if (c == '\t' && io.KeyShift) + if (c == '\t') // Skip Tab, see above. continue; if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) state->OnKeyPressed((int)c); @@ -4280,45 +4273,46 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } // Process other shortcuts/key-presses - bool cancel_edit = false; + bool revert_edit = false; if (g.ActiveId == id && !g.ActiveIdIsJustActivated && !clear_active_id) { IM_ASSERT(state != NULL); - IM_ASSERT(io.KeyMods == GetMergedKeyModFlags() && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); // We rarely do this check, but if anything let's do it here. const int row_count_per_page = ImMax((int)((inner_size.y - style.FramePadding.y) / g.FontSize), 1); state->Stb.row_count_per_page = row_count_per_page; const int k_mask = (io.KeyShift ? STB_TEXTEDIT_K_SHIFT : 0); const bool is_osx = io.ConfigMacOSXBehaviors; - const bool is_osx_shift_shortcut = is_osx && (io.KeyMods == (ImGuiKeyModFlags_Super | ImGuiKeyModFlags_Shift)); const bool is_wordmove_key_down = is_osx ? io.KeyAlt : io.KeyCtrl; // OS X style: Text editing cursor movement using Alt instead of Ctrl const bool is_startend_key_down = is_osx && io.KeySuper && !io.KeyCtrl && !io.KeyAlt; // OS X style: Line/Text Start and End using Cmd+Arrows instead of Home/End - const bool is_ctrl_key_only = (io.KeyMods == ImGuiKeyModFlags_Ctrl); - const bool is_shift_key_only = (io.KeyMods == ImGuiKeyModFlags_Shift); - const bool is_shortcut_key = g.IO.ConfigMacOSXBehaviors ? (io.KeyMods == ImGuiKeyModFlags_Super) : (io.KeyMods == ImGuiKeyModFlags_Ctrl); - const bool is_cut = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_X)) || (is_shift_key_only && IsKeyPressedMap(ImGuiKey_Delete))) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); - const bool is_copy = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_C)) || (is_ctrl_key_only && IsKeyPressedMap(ImGuiKey_Insert))) && !is_password && (!is_multiline || state->HasSelection()); - const bool is_paste = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_V)) || (is_shift_key_only && IsKeyPressedMap(ImGuiKey_Insert))) && !is_readonly; - const bool is_undo = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_Z)) && !is_readonly && is_undoable); - const bool is_redo = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_Y)) || (is_osx_shift_shortcut && IsKeyPressedMap(ImGuiKey_Z))) && !is_readonly && is_undoable; + // Using Shortcut() with ImGuiInputFlags_RouteFocused (default policy) to allow routing operations for other code (e.g. calling window trying to use CTRL+A and CTRL+B: formet would be handled by InputText) + // Otherwise we could simply assume that we own the keys as we are active. + const ImGuiInputFlags f_repeat = ImGuiInputFlags_Repeat; + const bool is_cut = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_X, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Delete, id, f_repeat)) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); + const bool is_copy = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_C, id) || Shortcut(ImGuiMod_Ctrl | ImGuiKey_Insert, id)) && !is_password && (!is_multiline || state->HasSelection()); + const bool is_paste = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_V, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Insert, id, f_repeat)) && !is_readonly; + const bool is_undo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Z, id, f_repeat)) && !is_readonly && is_undoable; + const bool is_redo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Y, id, f_repeat) || (is_osx && Shortcut(ImGuiMod_Shortcut | ImGuiMod_Shift | ImGuiKey_Z, id, f_repeat))) && !is_readonly && is_undoable; + const bool is_select_all = Shortcut(ImGuiMod_Shortcut | ImGuiKey_A, id); // We allow validate/cancel with Nav source (gamepad) to makes it easier to undo an accidental NavInput press with no keyboard wired, but otherwise it isn't very useful. - const bool is_validate_enter = IsKeyPressedMap(ImGuiKey_Enter) || IsKeyPressedMap(ImGuiKey_KeyPadEnter); - const bool is_validate_nav = (IsNavInputTest(ImGuiNavInput_Activate, ImGuiInputReadMode_Pressed) && !IsKeyPressedMap(ImGuiKey_Space)) || IsNavInputTest(ImGuiNavInput_Input, ImGuiInputReadMode_Pressed); - const bool is_cancel = IsKeyPressedMap(ImGuiKey_Escape) || IsNavInputTest(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed); - - if (IsKeyPressedMap(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } - else if (IsKeyPressedMap(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } - else if (IsKeyPressedMap(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_Delete) && !is_readonly && !is_cut) { state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_Backspace) && !is_readonly) + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool is_enter_pressed = IsKeyPressed(ImGuiKey_Enter, true) || IsKeyPressed(ImGuiKey_KeypadEnter, true); + const bool is_gamepad_validate = nav_gamepad_active && (IsKeyPressed(ImGuiKey_NavGamepadActivate, false) || IsKeyPressed(ImGuiKey_NavGamepadInput, false)); + const bool is_cancel = Shortcut(ImGuiKey_Escape, id, f_repeat) || (nav_gamepad_active && Shortcut(ImGuiKey_NavGamepadCancel, id, f_repeat)); + + // FIXME: Should use more Shortcut() and reduce IsKeyPressed()+SetKeyOwner(), but requires modifiers combination to be taken account of. + if (IsKeyPressed(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } + else if (IsKeyPressed(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } + else if (IsKeyPressed(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } + else if (IsKeyPressed(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } + else if (IsKeyPressed(ImGuiKey_Delete) && !is_readonly && !is_cut) { state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); } + else if (IsKeyPressed(ImGuiKey_Backspace) && !is_readonly) { if (!state->HasSelection()) { @@ -4329,12 +4323,17 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE | k_mask); } - else if (is_validate_enter) + else if (is_enter_pressed || is_gamepad_validate) { + // Determine if we turn Enter into a \n character bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0; - if (!is_multiline || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) + if (!is_multiline || is_gamepad_validate || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) { - enter_pressed = clear_active_id = true; + validated = true; + if (io.ConfigInputTextEnterKeepActive && !is_multiline) + state->SelectAll(); // No need to scroll + else + clear_active_id = true; } else if (!is_readonly) { @@ -4343,21 +4342,32 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ state->OnKeyPressed((int)c); } } - else if (is_validate_nav) - { - IM_ASSERT(!is_validate_enter); - enter_pressed = clear_active_id = true; - } else if (is_cancel) { - clear_active_id = cancel_edit = true; + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + if (state->CurLenA > 0) + { + revert_edit = true; + } + else + { + render_cursor = render_selection = false; + clear_active_id = true; + } + } + else + { + clear_active_id = revert_edit = true; + render_cursor = render_selection = false; + } } else if (is_undo || is_redo) { state->OnKeyPressed(is_undo ? STB_TEXTEDIT_K_UNDO : STB_TEXTEDIT_K_REDO); state->ClearSelection(); } - else if (is_shortcut_key && IsKeyPressedMap(ImGuiKey_A)) + else if (is_select_all) { state->SelectAll(); state->CursorFollow = true; @@ -4421,11 +4431,19 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ if (g.ActiveId == id) { IM_ASSERT(state != NULL); - if (cancel_edit) + if (revert_edit && !is_readonly) { - // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. - if (!is_readonly && strcmp(buf, state->InitialTextA.Data) != 0) + if (flags & ImGuiInputTextFlags_EscapeClearsAll) { + // Clear input + apply_new_text = ""; + apply_new_text_length = 0; + STB_TEXTEDIT_CHARTYPE empty_string; + stb_textedit_replace(state, &state->Stb, &empty_string, 0); + } + else if (strcmp(buf, state->InitialTextA.Data) != 0) + { + // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. // Push records into the undo stack so we can CTRL+Z the revert operation itself apply_new_text = state->InitialTextA.Data; apply_new_text_length = state->InitialTextA.Size - 1; @@ -4439,22 +4457,24 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } } + // Apply ASCII value + if (!is_readonly) + { + state->TextAIsValid = true; + state->TextA.resize(state->TextW.Size * 4 + 1); + ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); + } + // When using 'ImGuiInputTextFlags_EnterReturnsTrue' as a special case we reapply the live buffer back to the input buffer before clearing ActiveId, even though strictly speaking it wasn't modified on this frame. // If we didn't do that, code like InputInt() with ImGuiInputTextFlags_EnterReturnsTrue would fail. // This also allows the user to use InputText() with ImGuiInputTextFlags_EnterReturnsTrue without maintaining any user-side storage (please note that if you use this property along ImGuiInputTextFlags_CallbackResize you can end up with your temporary string object unnecessarily allocating once a frame, either store your string data, either if you don't then don't use ImGuiInputTextFlags_CallbackResize). - bool apply_edit_back_to_user_buffer = !cancel_edit || (enter_pressed && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); + const bool apply_edit_back_to_user_buffer = !revert_edit || (validated && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); if (apply_edit_back_to_user_buffer) { // Apply new value immediately - copy modified buffer back // Note that as soon as the input box is active, the in-widget value gets priority over any underlying modification of the input buffer // FIXME: We actually always render 'buf' when calling DrawList->AddText, making the comment above incorrect. // FIXME-OPT: CPU waste to do this every time the widget is active, should mark dirty state from the stb_textedit callbacks. - if (!is_readonly) - { - state->TextAIsValid = true; - state->TextA.resize(state->TextW.Size * 4 + 1); - ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); - } // User callback if ((flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackEdit | ImGuiInputTextFlags_CallbackAlways)) != 0) @@ -4463,18 +4483,18 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ // The reason we specify the usage semantic (Completion/History) is that Completion needs to disable keyboard TABBING at the moment. ImGuiInputTextFlags event_flag = 0; - ImGuiKey event_key = ImGuiKey_COUNT; - if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && IsKeyPressedMap(ImGuiKey_Tab)) + ImGuiKey event_key = ImGuiKey_None; + if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && IsKeyPressed(ImGuiKey_Tab)) { event_flag = ImGuiInputTextFlags_CallbackCompletion; event_key = ImGuiKey_Tab; } - else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressedMap(ImGuiKey_UpArrow)) + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_UpArrow)) { event_flag = ImGuiInputTextFlags_CallbackHistory; event_key = ImGuiKey_UpArrow; } - else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressedMap(ImGuiKey_DownArrow)) + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_DownArrow)) { event_flag = ImGuiInputTextFlags_CallbackHistory; event_key = ImGuiKey_DownArrow; @@ -4523,9 +4543,11 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ if (callback_data.SelectionEnd != utf8_selection_end || buf_dirty) { state->Stb.select_end = (callback_data.SelectionEnd == callback_data.SelectionStart) ? state->Stb.select_start : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); } if (buf_dirty) { + IM_ASSERT((flags & ImGuiInputTextFlags_ReadOnly) == 0); IM_ASSERT(callback_data.BufTextLen == (int)strlen(callback_data.Buf)); // You need to maintain BufTextLen if you change the text! + InputTextReconcileUndoStateAfterUserCallback(state, callback_data.Buf, callback_data.BufTextLen); // FIXME: Move the rest of this block inside function and rename to InputTextReconcileStateAfterUserCallback() ? if (callback_data.BufTextLen > backup_current_text_length && is_resizable) - state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); + state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); // Worse case scenario resize state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, callback_data.Buf, NULL); state->CurLenA = callback_data.BufTextLen; // Assume correct length and valid UTF-8 from user, saves us an extra strlen() state->CursorAnimReset(); @@ -4540,9 +4562,6 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ apply_new_text_length = state->CurLenA; } } - - // Clear temporary user storage - state->Flags = ImGuiInputTextFlags_None; } // Copy result to user buffer. This can currently only happen when (g.ActiveId == id) @@ -4567,7 +4586,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ apply_new_text_length = ImMin(callback_data.BufTextLen, buf_size - 1); IM_ASSERT(apply_new_text_length <= buf_size); } - //IMGUI_DEBUG_LOG("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); + //IMGUI_DEBUG_PRINT("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); // If the underlying buffer resize was denied or not carried to the next frame, apply_new_text_length+1 may be >= buf_size. ImStrncpy(buf, apply_new_text, ImMin(apply_new_text_length + 1, buf_size)); @@ -4760,7 +4779,11 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ // Notify OS of text input position for advanced IME (-1 x offset so that Windows IME can cover our cursor. Bit of an extra nicety.) if (!is_readonly) - g.PlatformImePos = ImVec2(cursor_screen_pos.x - 1.0f, cursor_screen_pos.y - g.FontSize); + { + g.PlatformImeData.WantVisible = true; + g.PlatformImeData.InputPos = ImVec2(cursor_screen_pos.x - 1.0f, cursor_screen_pos.y - g.FontSize); + g.PlatformImeData.InputLineHeight = g.FontSize; + } } } else @@ -4819,11 +4842,46 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); if ((flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0) - return enter_pressed; + return validated; else return value_changed; } +void ImGui::DebugNodeInputTextState(ImGuiInputTextState* state) +{ +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + ImGuiContext& g = *GImGui; + ImStb::STB_TexteditState* stb_state = &state->Stb; + ImStb::StbUndoState* undo_state = &stb_state->undostate; + Text("ID: 0x%08X, ActiveID: 0x%08X", state->ID, g.ActiveId); + DebugLocateItemOnHover(state->ID); + Text("CurLenW: %d, CurLenA: %d, Cursor: %d, Selection: %d..%d", state->CurLenA, state->CurLenW, stb_state->cursor, stb_state->select_start, stb_state->select_end); + Text("undo_point: %d, redo_point: %d, undo_char_point: %d, redo_char_point: %d", undo_state->undo_point, undo_state->redo_point, undo_state->undo_char_point, undo_state->redo_char_point); + if (BeginChild("undopoints", ImVec2(0.0f, GetTextLineHeight() * 15), true)) // Visualize undo state + { + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int n = 0; n < STB_TEXTEDIT_UNDOSTATECOUNT; n++) + { + ImStb::StbUndoRecord* undo_rec = &undo_state->undo_rec[n]; + const char undo_rec_type = (n < undo_state->undo_point) ? 'u' : (n >= undo_state->redo_point) ? 'r' : ' '; + if (undo_rec_type == ' ') + BeginDisabled(); + char buf[64] = ""; + if (undo_rec_type != ' ' && undo_rec->char_storage != -1) + ImTextStrToUtf8(buf, IM_ARRAYSIZE(buf), undo_state->undo_char + undo_rec->char_storage, undo_state->undo_char + undo_rec->char_storage + undo_rec->insert_length); + Text("%c [%02d] where %03d, insert %03d, delete %03d, char_storage %03d \"%s\"", + undo_rec_type, n, undo_rec->where, undo_rec->insert_length, undo_rec->delete_length, undo_rec->char_storage, buf); + if (undo_rec_type == ' ') + EndDisabled(); + } + PopStyleVar(); + } + EndChild(); +#else + IM_UNUSED(state); +#endif +} + //------------------------------------------------------------------------- // [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. //------------------------------------------------------------------------- @@ -4973,7 +5031,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag value_changed |= DragInt(ids[n], &i[n], 1.0f, 0, hdr ? 0 : 255, fmt_table_int[fmt_idx][n]); } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); } } else if ((flags & ImGuiColorEditFlags_DisplayHex) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) @@ -5001,7 +5059,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag IM_UNUSED(r); // Fixes C6031: Return value ignored: 'sscanf'. } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); } ImGuiWindow* picker_active_window = NULL; @@ -5018,32 +5076,37 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag // Store current color and open a picker g.ColorPickerRef = col_v4; OpenPopup("picker"); - SetNextWindowPos(g.LastItemData.Rect.GetBL() + ImVec2(-1, style.ItemSpacing.y)); + SetNextWindowPos(g.LastItemData.Rect.GetBL() + ImVec2(0.0f, style.ItemSpacing.y)); } } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); if (BeginPopup("picker")) { - picker_active_window = g.CurrentWindow; - if (label != label_display_end) + if (g.CurrentWindow->BeginCount == 1) { - TextEx(label, label_display_end); - Spacing(); + picker_active_window = g.CurrentWindow; + if (label != label_display_end) + { + TextEx(label, label_display_end); + Spacing(); + } + ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; + ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; + SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? + value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); } - ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; - ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; - SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? - value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); EndPopup(); } } if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) { - const float text_offset_x = (flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x; - window->DC.CursorPos = ImVec2(pos.x + text_offset_x, pos.y + style.FramePadding.y); + // Position not necessarily next to last submitted button (e.g. if style.ColorButtonPosition == ImGuiDir_Left), + // but we need to use SameLine() to setup baseline correctly. Might want to refactor SameLine() to simplify this. + SameLine(0.0f, style.ItemInnerSpacing.x); + window->DC.CursorPos.x = pos.x + ((flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x); TextEx(label, label_display_end); } @@ -5080,7 +5143,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag bool accepted_drag_drop = false; if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) { - memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 + memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 //-V1086 value_changed = accepted_drag_drop = true; } if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) @@ -5099,7 +5162,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag if (picker_active_window && g.ActiveId != 0 && g.ActiveIdWindow == picker_active_window) g.LastItemData.ID = g.ActiveId; - if (value_changed) + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId MarkItemEdited(g.LastItemData.ID); return value_changed; @@ -5236,7 +5299,7 @@ bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags fl } } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); } else if (flags & ImGuiColorEditFlags_PickerHueBar) { @@ -5253,7 +5316,7 @@ bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags fl value_changed = value_changed_sv = true; } if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); // Hue bar logic SetCursorScreenPos(ImVec2(bar0_pos_x, picker_pos.y)); @@ -5487,7 +5550,7 @@ bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags fl if (value_changed && memcmp(backup_initial_col, col, components * sizeof(float)) == 0) value_changed = false; - if (value_changed) + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId MarkItemEdited(g.LastItemData.ID); PopID(); @@ -5499,7 +5562,7 @@ bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags fl // FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip. // 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip. // Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set. -bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, ImVec2 size) +bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, const ImVec2& size_arg) { ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) @@ -5507,11 +5570,8 @@ bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFl ImGuiContext& g = *GImGui; const ImGuiID id = window->GetID(desc_id); - float default_size = GetFrameHeight(); - if (size.x == 0.0f) - size.x = default_size; - if (size.y == 0.0f) - size.y = default_size; + const float default_size = GetFrameHeight(); + const ImVec2 size(size_arg.x == 0.0f ? default_size : size_arg.x, size_arg.y == 0.0f ? default_size : size_arg.y); const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f); if (!ItemAdd(bb, id)) @@ -5809,9 +5869,9 @@ bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char if (window->SkipItems) return false; - ImGuiContext& g = *GImGui; - const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - return TreeNodeBehavior(window->GetID(str_id), flags, g.TempBuffer, label_end); + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(str_id), flags, label, label_end); } bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) @@ -5820,12 +5880,19 @@ bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char if (window->SkipItems) return false; + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(ptr_id), flags, label, label_end); +} + +void ImGui::TreeNodeSetOpen(ImGuiID id, bool open) +{ ImGuiContext& g = *GImGui; - const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - return TreeNodeBehavior(window->GetID(ptr_id), flags, g.TempBuffer, label_end); + ImGuiStorage* storage = g.CurrentWindow->DC.StateStorage; + storage->SetInt(id, open ? 1 : 0); } -bool ImGui::TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags) +bool ImGui::TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags) { if (flags & ImGuiTreeNodeFlags_Leaf) return true; @@ -5841,7 +5908,7 @@ bool ImGui::TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags) if (g.NextItemData.OpenCond & ImGuiCond_Always) { is_open = g.NextItemData.OpenVal; - storage->SetInt(id, is_open); + TreeNodeSetOpen(id, is_open); } else { @@ -5850,7 +5917,7 @@ bool ImGui::TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags) if (stored_value == -1) { is_open = g.NextItemData.OpenVal; - storage->SetInt(id, is_open); + TreeNodeSetOpen(id, is_open); } else { @@ -5916,7 +5983,7 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l // For this purpose we essentially compare if g.NavIdIsAlive went from 0 to 1 between TreeNode() and TreePop(). // This is currently only support 32 level deep and we are fine with (1 << Depth) overflowing into a zero. const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0; - bool is_open = TreeNodeBehaviorIsOpen(id, flags); + bool is_open = TreeNodeUpdateNextOpen(id, flags); if (is_open && !g.NavIdIsAlive && (flags & ImGuiTreeNodeFlags_NavLeftJumpsBackHere) && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) window->DC.TreeJumpToParentOnPopMask |= (1 << window->DC.TreeDepth); @@ -6259,6 +6326,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl // We use NoHoldingActiveID on menus so user can click and _hold_ on a menu then drag to browse child entries ImGuiButtonFlags button_flags = 0; if (flags & ImGuiSelectableFlags_NoHoldingActiveID) { button_flags |= ImGuiButtonFlags_NoHoldingActiveId; } + if (flags & ImGuiSelectableFlags_NoSetKeyOwner) { button_flags |= ImGuiButtonFlags_NoSetKeyOwner; } if (flags & ImGuiSelectableFlags_SelectOnClick) { button_flags |= ImGuiButtonFlags_PressedOnClick; } if (flags & ImGuiSelectableFlags_SelectOnRelease) { button_flags |= ImGuiButtonFlags_PressedOnRelease; } if (flags & ImGuiSelectableFlags_AllowDoubleClick) { button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; } @@ -6275,7 +6343,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl // - (1) it would require focus scope to be set, need exposing PushFocusScope() or equivalent (e.g. BeginSelection() calling PushFocusScope()) // - (2) usage will fail with clipped items // The multi-select API aim to fix those issues, e.g. may be replaced with a BeginSelection() API. - if ((flags & ImGuiSelectableFlags_SelectOnNav) && g.NavJustMovedToId != 0 && g.NavJustMovedToFocusScopeId == window->DC.NavFocusScopeIdCurrent) + if ((flags & ImGuiSelectableFlags_SelectOnNav) && g.NavJustMovedToId != 0 && g.NavJustMovedToFocusScopeId == g.CurrentFocusScopeId) if (g.NavJustMovedToId == id) selected = pressed = true; @@ -6284,7 +6352,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl { if (!g.NavDisableMouseHover && g.NavWindow == window && g.NavLayer == window->DC.NavLayerCurrent) { - SetNavID(id, window->DC.NavLayerCurrent, window->DC.NavFocusScopeIdCurrent, WindowRectAbsToRel(window, bb)); // (bb == NavRect) + SetNavID(id, window->DC.NavLayerCurrent, g.CurrentFocusScopeId, WindowRectAbsToRel(window, bb)); // (bb == NavRect) g.NavDisableHighlight = true; } } @@ -6749,6 +6817,7 @@ bool ImGui::BeginMenuBar() // We overwrite CursorMaxPos because BeginGroup sets it to CursorPos (essentially the .EmitItem hack in EndMenuBar() would need something analogous here, maybe a BeginGroupEx() with flags). window->DC.CursorPos = window->DC.CursorMaxPos = ImVec2(bar_rect.Min.x + window->DC.MenuBarOffset.x, bar_rect.Min.y + window->DC.MenuBarOffset.y); window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; window->DC.MenuBarAppending = true; AlignTextToFramePadding(); @@ -6774,7 +6843,7 @@ void ImGui::EndMenuBar() // To do so we claim focus back, restore NavId and then process the movement request for yet another frame. // This involve a one-frame delay which isn't very problematic in this situation. We could remove it by scoring in advance for multiple window (probably not worth bothering) const ImGuiNavLayer layer = ImGuiNavLayer_Menu; - IM_ASSERT(window->DC.NavLayersActiveMaskNext & (1 << layer)); // Sanity check + IM_ASSERT(window->DC.NavLayersActiveMaskNext & (1 << layer)); // Sanity check (FIXME: Seems unnecessary) FocusWindow(window); SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); g.NavDisableHighlight = true; // Hide highlight for the current frame so we don't see the intermediary selection. @@ -6792,6 +6861,7 @@ void ImGui::EndMenuBar() g.GroupStack.back().EmitItem = false; EndGroup(); // Restore position on layer 0 window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; window->DC.NavLayerCurrent = ImGuiNavLayer_Main; window->DC.MenuBarAppending = false; } @@ -6875,14 +6945,19 @@ static bool IsRootOfOpenMenuSet() if ((g.OpenPopupStack.Size <= g.BeginPopupStack.Size) || (window->Flags & ImGuiWindowFlags_ChildMenu)) return false; - // Initially we used 'OpenParentId' to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) based on parent ID. + // Initially we used 'upper_popup->OpenParentId == window->IDStack.back()' to differentiate multiple menu sets from each others + // (e.g. inside menu bar vs loose menu items) based on parent ID. // This would however prevent the use of e.g. PuhsID() user code submitting menus. // Previously this worked between popup and a first child menu because the first child menu always had the _ChildWindow flag, // making hovering on parent popup possible while first child menu was focused - but this was generally a bug with other side effects. // Instead we don't treat Popup specifically (in order to consistently support menu features in them), maybe the first child menu of a Popup - // doesn't have the _ChildWindow flag, and we rely on this IsRootOfOpenMenuSet() check to allow hovering between root window/popup and first chilld menu. + // doesn't have the _ChildWindow flag, and we rely on this IsRootOfOpenMenuSet() check to allow hovering between root window/popup and first child menu. + // In the end, lack of ID check made it so we could no longer differentiate between separate menu sets. To compensate for that, we at least check parent window nav layer. + // This fixes the most common case of menu opening on hover when moving between window content and menu bar. Multiple different menu sets in same nav layer would still + // open on hover, but that should be a lesser problem, because if such menus are close in proximity in window content then it won't feel weird and if they are far apart + // it likely won't be a problem anyone runs into. const ImGuiPopupData* upper_popup = &g.OpenPopupStack[g.BeginPopupStack.Size]; - return (/*upper_popup->OpenParentId == window->IDStack.back() &&*/ upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu)); + return (window->DC.NavLayerCurrent == upper_popup->ParentNavLayer && upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu)); } bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) @@ -6897,10 +6972,10 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) bool menu_is_open = IsPopupOpen(id, ImGuiPopupFlags_None); // Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu) - // The first menu in a hierarchy isn't so hovering doesn't get accross (otherwise e.g. resizing borders with ImGuiButtonFlags_FlattenChildren would react), but top-most BeginMenu() will bypass that limitation. - ImGuiWindowFlags flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; + // The first menu in a hierarchy isn't so hovering doesn't get across (otherwise e.g. resizing borders with ImGuiButtonFlags_FlattenChildren would react), but top-most BeginMenu() will bypass that limitation. + ImGuiWindowFlags window_flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; if (window->Flags & ImGuiWindowFlags_ChildMenu) - flags |= ImGuiWindowFlags_ChildWindow; + window_flags |= ImGuiWindowFlags_ChildWindow; // If a menu with same the ID was already submitted, we will append to it, matching the behavior of Begin(). // We are relying on a O(N) search - so O(N log N) over the frame - which seems like the most efficient for the expected small amount of BeginMenu() calls per frame. @@ -6908,7 +6983,7 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) if (g.MenusIdSubmittedThisFrame.contains(id)) { if (menu_is_open) - menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) else g.NextWindowData.ClearFlags(); // we behave like Begin() and need to consume those values return menu_is_open; @@ -6920,10 +6995,10 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) ImVec2 label_size = CalcTextSize(label, NULL, true); // Odd hack to allow hovering across menus of a same menu-set (otherwise we wouldn't be able to hover parent without always being a Child window) + // This is only done for items for the menu set and not the full parent window. const bool menuset_is_open = IsRootOfOpenMenuSet(); - ImGuiWindow* backed_nav_window = g.NavWindow; if (menuset_is_open) - g.NavWindow = window; + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); // The reference position stored in popup_pos will be used by Begin() to find a suitable position for the child menu, // However the final position is going to be different! It is chosen by FindBestWindowPosForPopup(). @@ -6934,6 +7009,9 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) BeginDisabled(); const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; bool pressed; + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups; if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) { // Menu inside an horizontal menu bar @@ -6944,7 +7022,7 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); float w = label_size.x; ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); - pressed = Selectable("", menu_is_open, ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups, ImVec2(w, 0.0f)); + pressed = Selectable("", menu_is_open, selectable_flags, ImVec2(w, 0.0f)); RenderText(text_pos, label); PopStyleVar(); window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). @@ -6960,7 +7038,7 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, 0.0f, checkmark_w); // Feedback to next frame float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); - pressed = Selectable("", menu_is_open, ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); + pressed = Selectable("", menu_is_open, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); RenderText(text_pos, label); if (icon_w > 0.0f) RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); @@ -6969,9 +7047,9 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) if (!enabled) EndDisabled(); - const bool hovered = (g.HoveredId == id) && enabled; + const bool hovered = (g.HoveredId == id) && enabled && !g.NavDisableMouseHover; if (menuset_is_open) - g.NavWindow = backed_nav_window; + PopItemFlag(); bool want_open = false; bool want_close = false; @@ -6979,29 +7057,37 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) { // Close menu when not hovering it anymore unless we are moving roughly in the direction of the menu // Implement http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown to avoid using timers, so menus feels more reactive. - bool moving_toward_other_child_menu = false; - ImGuiWindow* child_menu_window = (g.BeginPopupStack.Size < g.OpenPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].SourceWindow == window) ? g.OpenPopupStack[g.BeginPopupStack.Size].Window : NULL; - if (g.HoveredWindow == window && child_menu_window != NULL && !(window->Flags & ImGuiWindowFlags_MenuBar)) + bool moving_toward_child_menu = false; + ImGuiPopupData* child_popup = (g.BeginPopupStack.Size < g.OpenPopupStack.Size) ? &g.OpenPopupStack[g.BeginPopupStack.Size] : NULL; // Popup candidate (testing below) + ImGuiWindow* child_menu_window = (child_popup && child_popup->Window && child_popup->Window->ParentWindow == window) ? child_popup->Window : NULL; + if (g.HoveredWindow == window && child_menu_window != NULL) { float ref_unit = g.FontSize; // FIXME-DPI + float child_dir = (window->Pos.x < child_menu_window->Pos.x) ? 1.0f : -1.0f; ImRect next_window_rect = child_menu_window->Rect(); ImVec2 ta = (g.IO.MousePos - g.IO.MouseDelta); - ImVec2 tb = (window->Pos.x < child_menu_window->Pos.x) ? next_window_rect.GetTL() : next_window_rect.GetTR(); - ImVec2 tc = (window->Pos.x < child_menu_window->Pos.x) ? next_window_rect.GetBL() : next_window_rect.GetBR(); + ImVec2 tb = (child_dir > 0.0f) ? next_window_rect.GetTL() : next_window_rect.GetTR(); + ImVec2 tc = (child_dir > 0.0f) ? next_window_rect.GetBL() : next_window_rect.GetBR(); float extra = ImClamp(ImFabs(ta.x - tb.x) * 0.30f, ref_unit * 0.5f, ref_unit * 2.5f); // add a bit of extra slack. - ta.x += (window->Pos.x < child_menu_window->Pos.x) ? -0.5f : +0.5f; // to avoid numerical issues (FIXME: ??) - tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -ref_unit * 8.0f); // triangle is maximum 200 high to limit the slope and the bias toward large sub-menus // FIXME: Multiply by fb_scale? + ta.x += child_dir * -0.5f; + tb.x += child_dir * ref_unit; + tc.x += child_dir * ref_unit; + tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -ref_unit * 8.0f); // triangle has maximum height to limit the slope and the bias toward large sub-menus tc.y = ta.y + ImMin((tc.y + extra) - ta.y, +ref_unit * 8.0f); - moving_toward_other_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); - //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_toward_other_child_menu ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] + moving_toward_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); + //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_toward_child_menu ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] } - if (menu_is_open && !hovered && g.HoveredWindow == window && g.HoveredIdPreviousFrame != 0 && g.HoveredIdPreviousFrame != id && !moving_toward_other_child_menu) + + // The 'HovereWindow == window' check creates an inconsistency (e.g. moving away from menu slowly tends to hit same window, whereas moving away fast does not) + // But we also need to not close the top-menu menu when moving over void. Perhaps we should extend the triangle check to a larger polygon. + // (Remember to test this on BeginPopup("A")->BeginMenu("B") sequence which behaves slightly differently as B isn't a Child of A and hovering isn't shared.) + if (menu_is_open && !hovered && g.HoveredWindow == window && !moving_toward_child_menu && !g.NavDisableMouseHover) want_close = true; // Open if (!menu_is_open && pressed) // Click/activate to open want_open = true; - else if (!menu_is_open && hovered && !moving_toward_other_child_menu) // Hover to open + else if (!menu_is_open && hovered && !moving_toward_child_menu) // Hover to open want_open = true; if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right) // Nav-Right to open { @@ -7036,23 +7122,32 @@ bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Openable | (menu_is_open ? ImGuiItemStatusFlags_Opened : 0)); PopID(); - if (!menu_is_open && want_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) + if (want_open && !menu_is_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) { - // Don't recycle same menu level in the same frame, first close the other menu and yield for a frame. + // Don't reopen/recycle same menu level in the same frame, first close the other menu and yield for a frame. OpenPopup(label); - return false; } - - menu_is_open |= want_open; - if (want_open) + else if (want_open) + { + menu_is_open = true; OpenPopup(label); + } if (menu_is_open) { - SetNextWindowPos(popup_pos, ImGuiCond_Always); // Note: this is super misleading! The value will serve as reference for FindBestWindowPosForPopup(), not actual pos. + ImGuiLastItemData last_item_in_parent = g.LastItemData; + SetNextWindowPos(popup_pos, ImGuiCond_Always); // Note: misleading: the value will serve as reference for FindBestWindowPosForPopup(), not actual pos. PushStyleVar(ImGuiStyleVar_ChildRounding, style.PopupRounding); // First level will use _PopupRounding, subsequent will use _ChildRounding - menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) PopStyleVar(); + if (menu_is_open) + { + // Restore LastItemData so IsItemXXXX functions can work after BeginMenu()/EndMenu() + // (This fixes using IsItemClicked() and IsItemHovered(), but IsItemHovered() also relies on its support for ImGuiItemFlags_NoWindowHoverableCheck) + g.LastItemData = last_item_in_parent; + if (g.HoveredWindow == window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } } else { @@ -7069,17 +7164,18 @@ bool ImGui::BeginMenu(const char* label, bool enabled) void ImGui::EndMenu() { - // Nav: When a left move request _within our child menu_ failed, close ourselves (the _parent_ menu). - // A menu doesn't close itself because EndMenuBar() wants the catch the last Left<>Right inputs. - // However, it means that with the current code, a BeginMenu() from outside another menu or a menu-bar won't be closable with the Left direction. + // Nav: When a left move request our menu failed, close ourselves. ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; - if (g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet() && window->DC.LayoutType == ImGuiLayoutType_Vertical) - if (g.NavWindow && (g.NavWindow->RootWindowForNav->Flags & ImGuiWindowFlags_Popup) && g.NavWindow->RootWindowForNav->ParentWindow == window) - { - ClosePopupToLevel(g.BeginPopupStack.Size, true); - NavMoveRequestCancel(); - } + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginMenu()/EndMenu() calls + ImGuiWindow* parent_window = window->ParentWindow; // Should always be != NULL is we passed assert. + if (window->BeginCount == window->BeginCountPreviousFrame) + if (g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet()) + if (g.NavWindow && (g.NavWindow->RootWindowForNav == window) && parent_window->DC.LayoutType == ImGuiLayoutType_Vertical) + { + ClosePopupToLevel(g.BeginPopupStack.Size - 1, true); + NavMoveRequestCancel(); + } EndPopup(); } @@ -7095,10 +7191,10 @@ bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut ImVec2 pos = window->DC.CursorPos; ImVec2 label_size = CalcTextSize(label, NULL, true); + // See BeginMenuEx() for comments about this. const bool menuset_is_open = IsRootOfOpenMenuSet(); - ImGuiWindow* backed_nav_window = g.NavWindow; if (menuset_is_open) - g.NavWindow = window; + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); // We've been using the equivalent of ImGuiSelectableFlags_SetNavIdOnHover on all Selectable() since early Nav system days (commit 43ee5d73), // but I am unsure whether this should be kept at all. For now moved it to be an opt-in feature used by menus only. @@ -7107,7 +7203,8 @@ bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut if (!enabled) BeginDisabled(); - const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_SetNavIdOnHover; + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SetNavIdOnHover; const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) { @@ -7119,7 +7216,8 @@ bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); pressed = Selectable("", selected, selectable_flags, ImVec2(w, 0.0f)); PopStyleVar(); - RenderText(text_pos, label); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + RenderText(text_pos, label); window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). } else @@ -7133,24 +7231,27 @@ bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, shortcut_w, checkmark_w); // Feedback for next frame float stretch_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); pressed = Selectable("", false, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); - RenderText(pos + ImVec2(offsets->OffsetLabel, 0.0f), label); - if (icon_w > 0.0f) - RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); - if (shortcut_w > 0.0f) + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) { - PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); - RenderText(pos + ImVec2(offsets->OffsetShortcut + stretch_w, 0.0f), shortcut, NULL, false); - PopStyleColor(); + RenderText(pos + ImVec2(offsets->OffsetLabel, 0.0f), label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + if (shortcut_w > 0.0f) + { + PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); + RenderText(pos + ImVec2(offsets->OffsetShortcut + stretch_w, 0.0f), shortcut, NULL, false); + PopStyleColor(); + } + if (selected) + RenderCheckMark(window->DrawList, pos + ImVec2(offsets->OffsetMark + stretch_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(ImGuiCol_Text), g.FontSize * 0.866f); } - if (selected) - RenderCheckMark(window->DrawList, pos + ImVec2(offsets->OffsetMark + stretch_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(ImGuiCol_Text), g.FontSize * 0.866f); } IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (selected ? ImGuiItemStatusFlags_Checked : 0)); if (!enabled) EndDisabled(); PopID(); if (menuset_is_open) - g.NavWindow = backed_nav_window; + PopItemFlag(); return pressed; } @@ -7468,8 +7569,8 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) // Additionally, when using TabBarAddTab() to manipulate tab bar order we occasionally insert new tabs that don't have a width yet, // and we cannot wait for the next BeginTabItem() call. We cannot compute this width within TabBarAddTab() because font size depends on the active window. const char* tab_name = tab_bar->GetTabName(tab); - const bool has_close_button = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) ? false : true; - tab->ContentWidth = TabItemCalcSize(tab_name, has_close_button).x; + const bool has_close_button_or_unsaved_marker = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) == 0 || (tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + tab->ContentWidth = (tab->RequestedWidth >= 0.0f) ? tab->RequestedWidth : TabItemCalcSize(tab_name, has_close_button_or_unsaved_marker).x; int section_n = TabItemGetSectionIdx(tab); ImGuiTabBarSection* section = §ions[section_n]; @@ -7478,12 +7579,10 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) // Store data so we can build an array sorted by width if we need to shrink tabs down IM_MSVC_WARNING_SUPPRESS(6385); - int shrink_buffer_index = shrink_buffer_indexes[section_n]++; - g.ShrinkWidthBuffer[shrink_buffer_index].Index = tab_n; - g.ShrinkWidthBuffer[shrink_buffer_index].Width = tab->ContentWidth; - - IM_ASSERT(tab->ContentWidth > 0.0f); - tab->Width = tab->ContentWidth; + ImGuiShrinkWidthItem* shrink_width_item = &g.ShrinkWidthBuffer[shrink_buffer_indexes[section_n]++]; + shrink_width_item->Index = tab_n; + shrink_width_item->Width = shrink_width_item->InitialWidth = tab->ContentWidth; + tab->Width = ImMax(tab->ContentWidth, 1.0f); } // Compute total ideal width (used for e.g. auto-resizing a window) @@ -7513,7 +7612,7 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) width_excess = (section_0_w + section_2_w) - tab_bar->BarRect.GetWidth(); // Excess used to shrink leading/trailing section // With ImGuiTabBarFlags_FittingPolicyScroll policy, we will only shrink leading/trailing if the central section is not visible anymore - if (width_excess > 0.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) + if (width_excess >= 1.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) { int shrink_data_count = (central_section_is_visible ? sections[1].TabCount : sections[0].TabCount + sections[2].TabCount); int shrink_data_offset = (central_section_is_visible ? sections[0].TabCount + sections[2].TabCount : 0); @@ -7527,6 +7626,7 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) if (shrinked_width < 0.0f) continue; + shrinked_width = ImMax(1.0f, shrinked_width); int section_n = TabItemGetSectionIdx(tab); sections[section_n].Width -= (tab->Width - shrinked_width); tab->Width = shrinked_width; @@ -7640,7 +7740,9 @@ void ImGui::TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id) // Called on manual closure attempt void ImGui::TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) { - IM_ASSERT(!(tab->Flags & ImGuiTabItemFlags_Button)); + if (tab->Flags & ImGuiTabItemFlags_Button) + return; // A button appended with TabItemButton(). + if (!(tab->Flags & ImGuiTabItemFlags_UnsavedDocument)) { // This will remove a frame of lag for selecting another tab on closure. @@ -7950,10 +8052,13 @@ bool ImGui::TabItemButton(const char* label, ImGuiTabItemFlags flags) bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags) { // Layout whole tab bar if not already done + ImGuiContext& g = *GImGui; if (tab_bar->WantLayout) + { + ImGuiNextItemData backup_next_item_data = g.NextItemData; TabBarLayout(tab_bar); - - ImGuiContext& g = *GImGui; + g.NextItemData = backup_next_item_data; + } ImGuiWindow* window = g.CurrentWindow; if (window->SkipItems) return false; @@ -7966,7 +8071,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); if (p_open && !*p_open) { - ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus); + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); return false; } @@ -7979,9 +8084,6 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, else if (p_open == NULL) flags |= ImGuiTabItemFlags_NoCloseButton; - // Calculate tab contents size - ImVec2 size = TabItemCalcSize(label, p_open != NULL); - // Acquire tab data ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, id); bool tab_is_new = false; @@ -7990,17 +8092,24 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, tab_bar->Tabs.push_back(ImGuiTabItem()); tab = &tab_bar->Tabs.back(); tab->ID = id; - tab->Width = size.x; - tab_bar->TabsAddedNew = true; - tab_is_new = true; + tab_bar->TabsAddedNew = tab_is_new = true; } tab_bar->LastTabItemIdx = (ImS16)tab_bar->Tabs.index_from_ptr(tab); + + // Calculate tab contents size + ImVec2 size = TabItemCalcSize(label, (p_open != NULL) || (flags & ImGuiTabItemFlags_UnsavedDocument)); + tab->RequestedWidth = -1.0f; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + size.x = tab->RequestedWidth = g.NextItemData.Width; + if (tab_is_new) + tab->Width = ImMax(1.0f, size.x); tab->ContentWidth = size.x; tab->BeginOrder = tab_bar->TabsActiveCount++; const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); const bool tab_bar_focused = (tab_bar->Flags & ImGuiTabBarFlags_IsFocused) != 0; const bool tab_appearing = (tab->LastFrameVisible + 1 < g.FrameCount); + const bool tab_just_unsaved = (flags & ImGuiTabItemFlags_UnsavedDocument) && !(tab->Flags & ImGuiTabItemFlags_UnsavedDocument); const bool is_tab_button = (flags & ImGuiTabItemFlags_Button) != 0; tab->LastFrameVisible = g.FrameCount; tab->Flags = flags; @@ -8010,13 +8119,14 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, tab_bar->TabsNames.append(label, label + strlen(label) + 1); // Update selected tab - if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) - if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) - if (!is_tab_button) + if (!is_tab_button) + { + if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) + if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) tab_bar->NextSelectedTabId = id; // New tabs gets activated - if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // SetSelected can only be passed on explicit tab bar - if (!is_tab_button) + if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // _SetSelected can only be passed on explicit tab bar tab_bar->NextSelectedTabId = id; + } // Lock visibility // (Note: tab_contents_visible != tab_selected... because CTRL+TAB operations may preview some tabs without selecting them!) @@ -8033,7 +8143,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, // and then gets submitted again, the tabs will have 'tab_appearing=true' but 'tab_is_new=false'. if (tab_appearing && (!tab_bar_appearing || tab_is_new)) { - ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus); + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); if (is_tab_button) return false; return tab_contents_visible; @@ -8131,7 +8241,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, const ImGuiID close_button_id = p_open ? GetIDWithSeed("#CLOSE", NULL, id) : 0; bool just_closed; bool text_clipped; - TabItemLabelAndCloseButton(display_draw_list, bb, flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible, &just_closed, &text_clipped); + TabItemLabelAndCloseButton(display_draw_list, bb, tab_just_unsaved ? (flags & ~ImGuiTabItemFlags_UnsavedDocument) : flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible, &just_closed, &text_clipped); if (just_closed && p_open != NULL) { *p_open = false; @@ -8148,9 +8258,10 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, // (We test IsItemHovered() to discard e.g. when another item is active or drag and drop over the tab bar, which g.HoveredId ignores) // FIXME: This is a mess. // FIXME: We may want disabled tab to still display the tooltip? - if (text_clipped && g.HoveredId == id && !held && g.HoveredIdNotActiveTimer > g.TooltipSlowDelay && IsItemHovered()) + if (text_clipped && g.HoveredId == id && !held) if (!(tab_bar->Flags & ImGuiTabBarFlags_NoTooltip) && !(tab->Flags & ImGuiTabItemFlags_NoTooltip)) - SetTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); + if (IsItemHovered(ImGuiHoveredFlags_DelayNormal)) + SetTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); IM_ASSERT(!is_tab_button || !(tab_bar->SelectedTabId == tab->ID && is_tab_button)); // TabItemButton should not be selected if (is_tab_button) @@ -8174,12 +8285,12 @@ void ImGui::SetTabItemClosed(const char* label) } } -ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button) +ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker) { ImGuiContext& g = *GImGui; ImVec2 label_size = CalcTextSize(label, NULL, true); ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f); - if (has_close_button) + if (has_close_button_or_unsaved_marker) size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle. else size.x += g.Style.FramePadding.x + 1.0f; diff --git a/imgui-sys/third-party/imgui-master/imgui/imstb_rectpack.h b/imgui-sys/third-party/imgui-master/imgui/imstb_rectpack.h index 395895216..f6917e7a6 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imstb_rectpack.h +++ b/imgui-sys/third-party/imgui-master/imgui/imstb_rectpack.h @@ -1,15 +1,19 @@ // [DEAR IMGUI] -// This is a slightly modified version of stb_rect_pack.h 1.00. -// Those changes would need to be pushed into nothings/stb: -// - Added STBRP__CDECL +// This is a slightly modified version of stb_rect_pack.h 1.01. // Grep for [DEAR IMGUI] to find the changes. - -// stb_rect_pack.h - v1.00 - public domain - rectangle packing +// +// stb_rect_pack.h - v1.01 - public domain - rectangle packing // Sean Barrett 2014 // // Useful for e.g. packing rectangular textures into an atlas. // Does not do rotation. // +// Before #including, +// +// #define STB_RECT_PACK_IMPLEMENTATION +// +// in the file that you want to have the implementation. +// // Not necessarily the awesomest packing method, but better than // the totally naive one in stb_truetype (which is primarily what // this is meant to replace). @@ -41,6 +45,7 @@ // // Version history: // +// 1.01 (2021-07-11) always use large rect mode, expose STBRP__MAXVAL in public section // 1.00 (2019-02-25) avoid small space waste; gracefully fail too-wide rectangles // 0.99 (2019-02-07) warning fixes // 0.11 (2017-03-03) return packing success/fail result @@ -81,11 +86,10 @@ typedef struct stbrp_context stbrp_context; typedef struct stbrp_node stbrp_node; typedef struct stbrp_rect stbrp_rect; -#ifdef STBRP_LARGE_RECTS typedef int stbrp_coord; -#else -typedef unsigned short stbrp_coord; -#endif + +#define STBRP__MAXVAL 0x7fffffff +// Mostly for internal use, but this is the maximum supported coordinate value. STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); // Assign packed locations to rectangles. The rectangles are of type @@ -213,10 +217,9 @@ struct stbrp_context #define STBRP_ASSERT assert #endif -// [DEAR IMGUI] Added STBRP__CDECL #ifdef _MSC_VER #define STBRP__NOTUSED(v) (void)(v) -#define STBRP__CDECL __cdecl +#define STBRP__CDECL __cdecl #else #define STBRP__NOTUSED(v) (void)sizeof(v) #define STBRP__CDECL @@ -262,9 +265,6 @@ STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_ou STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) { int i; -#ifndef STBRP_LARGE_RECTS - STBRP_ASSERT(width <= 0xffff && height <= 0xffff); -#endif for (i=0; i < num_nodes-1; ++i) nodes[i].next = &nodes[i+1]; @@ -283,11 +283,7 @@ STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, context->extra[0].y = 0; context->extra[0].next = &context->extra[1]; context->extra[1].x = (stbrp_coord) width; -#ifdef STBRP_LARGE_RECTS context->extra[1].y = (1<<30); -#else - context->extra[1].y = 65535; -#endif context->extra[1].next = NULL; } @@ -433,7 +429,7 @@ static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int widt if (y <= best_y) { if (y < best_y || waste < best_waste || (waste==best_waste && xpos < best_x)) { best_x = xpos; - STBRP_ASSERT(y <= best_y); + //STBRP_ASSERT(y <= best_y); [DEAR IMGUI] best_y = y; best_waste = waste; best = prev; @@ -529,7 +525,6 @@ static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, i return res; } -// [DEAR IMGUI] Added STBRP__CDECL static int STBRP__CDECL rect_height_compare(const void *a, const void *b) { const stbrp_rect *p = (const stbrp_rect *) a; @@ -541,7 +536,6 @@ static int STBRP__CDECL rect_height_compare(const void *a, const void *b) return (p->w > q->w) ? -1 : (p->w < q->w); } -// [DEAR IMGUI] Added STBRP__CDECL static int STBRP__CDECL rect_original_order(const void *a, const void *b) { const stbrp_rect *p = (const stbrp_rect *) a; @@ -549,12 +543,6 @@ static int STBRP__CDECL rect_original_order(const void *a, const void *b) return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); } -#ifdef STBRP_LARGE_RECTS -#define STBRP__MAXVAL 0xffffffff -#else -#define STBRP__MAXVAL 0xffff -#endif - STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) { int i, all_rects_packed = 1; diff --git a/imgui-sys/third-party/imgui-master/imgui/imstb_textedit.h b/imgui-sys/third-party/imgui-master/imgui/imstb_textedit.h index 2c635b27d..75a159dac 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imstb_textedit.h +++ b/imgui-sys/third-party/imgui-master/imgui/imstb_textedit.h @@ -1,10 +1,10 @@ // [DEAR IMGUI] -// This is a slightly modified version of stb_textedit.h 1.13. +// This is a slightly modified version of stb_textedit.h 1.14. // Those changes would need to be pushed into nothings/stb: // - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321) // Grep for [DEAR IMGUI] to find the changes. -// stb_textedit.h - v1.13 - public domain - Sean Barrett +// stb_textedit.h - v1.14 - public domain - Sean Barrett // Development of this library was sponsored by RAD Game Tools // // This C header file implements the guts of a multi-line text-editing @@ -35,6 +35,7 @@ // // VERSION HISTORY // +// 1.14 (2021-07-11) page up/down, various fixes // 1.13 (2019-02-07) fix bug in undo size management // 1.12 (2018-01-29) user can change STB_TEXTEDIT_KEYTYPE, fix redo to avoid crash // 1.11 (2017-03-03) fix HOME on last line, dragging off single-line textfield @@ -58,6 +59,7 @@ // Ulf Winklemann: move-by-word in 1.1 // Fabian Giesen: secondary key inputs in 1.5 // Martins Mozeiko: STB_TEXTEDIT_memmove in 1.6 +// Louis Schnellbach: page up/down in 1.14 // // Bugfixes: // Scott Graham @@ -93,8 +95,8 @@ // moderate sizes. The undo system does no memory allocations, so // it grows STB_TexteditState by the worst-case storage which is (in bytes): // -// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATE_COUNT -// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHAR_COUNT +// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATECOUNT +// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHARCOUNT // // // Implementation mode: @@ -716,10 +718,6 @@ static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditSta state->has_preferred_x = 0; return 1; } - // [DEAR IMGUI] - //// remove the undo since we didn't actually insert the characters - //if (state->undostate.undo_point) - // --state->undostate.undo_point; // note: paste failure will leave deleted selection, may be restored with an undo (see https://github.com/nothings/stb/issues/734 for details) return 0; } diff --git a/imgui-sys/third-party/imgui-master/imgui/imstb_truetype.h b/imgui-sys/third-party/imgui-master/imgui/imstb_truetype.h index 48c202617..643d37899 100644 --- a/imgui-sys/third-party/imgui-master/imgui/imstb_truetype.h +++ b/imgui-sys/third-party/imgui-master/imgui/imstb_truetype.h @@ -1,10 +1,19 @@ // [DEAR IMGUI] -// This is a slightly modified version of stb_truetype.h 1.20. +// This is a slightly modified version of stb_truetype.h 1.26. // Mostly fixing for compiler and static analyzer warnings. // Grep for [DEAR IMGUI] to find the changes. -// stb_truetype.h - v1.20 - public domain -// authored from 2009-2016 by Sean Barrett / RAD Game Tools +// stb_truetype.h - v1.26 - public domain +// authored from 2009-2021 by Sean Barrett / RAD Game Tools +// +// ======================================================================= +// +// NO SECURITY GUARANTEE -- DO NOT USE THIS ON UNTRUSTED FONT FILES +// +// This library does no range checking of the offsets found in the file, +// meaning an attacker can use it to read arbitrary memory. +// +// ======================================================================= // // This library processes TrueType files: // parse files @@ -37,11 +46,11 @@ // Daniel Ribeiro Maciel // // Bug/warning reports/fixes: -// "Zer" on mollyrocket Fabian "ryg" Giesen -// Cass Everitt Martins Mozeiko -// stoiko (Haemimont Games) Cap Petschulat -// Brian Hook Omar Cornut -// Walter van Niftrik github:aloucks +// "Zer" on mollyrocket Fabian "ryg" Giesen github:NiLuJe +// Cass Everitt Martins Mozeiko github:aloucks +// stoiko (Haemimont Games) Cap Petschulat github:oyvindjam +// Brian Hook Omar Cornut github:vassvik +// Walter van Niftrik Ryan Griege // David Gow Peter LaValle // David Given Sergey Popov // Ivan-Assen Ivanov Giumo X. Clanjor @@ -49,11 +58,17 @@ // Johan Duparc Thomas Fields // Hou Qiming Derek Vinyard // Rob Loach Cort Stratton -// Kenney Phillis Jr. github:oyvindjam -// Brian Costabile github:vassvik +// Kenney Phillis Jr. Brian Costabile +// Ken Voskuil (kaesve) // // VERSION HISTORY // +// 1.26 (2021-08-28) fix broken rasterizer +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning // 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() // 1.19 (2018-02-11) GPOS kerning, STBTT_fmod // 1.18 (2018-01-29) add missing function @@ -248,19 +263,6 @@ // recommend it. // // -// SOURCE STATISTICS (based on v0.6c, 2050 LOC) -// -// Documentation & header file 520 LOC \___ 660 LOC documentation -// Sample code 140 LOC / -// Truetype parsing 620 LOC ---- 620 LOC TrueType -// Software rasterization 240 LOC \. -// Curve tessellation 120 LOC \__ 550 LOC Bitmap creation -// Bitmap management 100 LOC / -// Baked bitmap interface 70 LOC / -// Font name matching & access 150 LOC ---- 150 -// C runtime library abstraction 60 LOC ---- 60 -// -// // PERFORMANCE MEASUREMENTS FOR 1.06: // // 32-bit 64-bit @@ -275,8 +277,8 @@ //// SAMPLE PROGRAMS //// // -// Incomplete text-in-3d-api example, which draws quads properly aligned to be lossless -// +// Incomplete text-in-3d-api example, which draws quads properly aligned to be lossless. +// See "tests/truetype_demo_win32.c" for a complete version. #if 0 #define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation #include "stb_truetype.h" @@ -302,6 +304,8 @@ void my_stbtt_initfont(void) void my_stbtt_print(float x, float y, char *text) { // assume orthographic projection with units = screen pixels, origin at top left + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, ftex); glBegin(GL_QUADS); @@ -309,10 +313,10 @@ void my_stbtt_print(float x, float y, char *text) if (*text >= 32 && *text < 128) { stbtt_aligned_quad q; stbtt_GetBakedQuad(cdata, 512,512, *text-32, &x,&y,&q,1);//1=opengl & d3d10+,0=d3d9 - glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y0); - glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y0); - glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y1); - glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y1); + glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y0); + glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y0); + glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y1); + glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y1); } ++text; } @@ -719,7 +723,7 @@ struct stbtt_fontinfo int numGlyphs; // number of glyphs, needed for range checking - int loca,head,glyf,hhea,hmtx,kern,gpos; // table locations as offset from start of .ttf + int loca,head,glyf,hhea,hmtx,kern,gpos,svg; // table locations as offset from start of .ttf int index_map; // a cmap mapping for our chosen character encoding int indexToLocFormat; // format needed to map from glyph index to glyph @@ -802,6 +806,18 @@ STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); // as above, but takes one or more glyph indices for greater efficiency +typedef struct stbtt_kerningentry +{ + int glyph1; // use stbtt_FindGlyphIndex + int glyph2; + int advance; +} stbtt_kerningentry; + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info); +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length); +// Retrieves a complete list of all of the kerning pairs provided by the font +// stbtt_GetKerningTable never writes more than table_length entries and returns how many entries it did write. +// The table will be sorted by (a.glyph1 == b.glyph1)?(a.glyph2 < b.glyph2):(a.glyph1 < b.glyph1) ////////////////////////////////////////////////////////////////////////////// // @@ -846,6 +862,12 @@ STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, s STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices); // frees the data allocated above +STBTT_DEF unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl); +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg); +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg); +// fills svg with the character's SVG data. +// returns data size or 0 if SVG not found. + ////////////////////////////////////////////////////////////////////////////// // // BITMAP RENDERING @@ -1347,6 +1369,22 @@ static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict) return stbtt__cff_get_index(&cff); } +// since most people won't use this, find this table the first time it's needed +static int stbtt__get_svg(stbtt_fontinfo *info) +{ + stbtt_uint32 t; + if (info->svg < 0) { + t = stbtt__find_table(info->data, info->fontstart, "SVG "); + if (t) { + stbtt_uint32 offset = ttULONG(info->data + t + 2); + info->svg = t + offset; + } else { + info->svg = 0; + } + } + return info->svg; +} + static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart) { stbtt_uint32 cmap, t; @@ -1426,6 +1464,8 @@ static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, in else info->numGlyphs = 0xffff; + info->svg = -1; + // find a cmap encoding table we understand *now* to avoid searching // later. (todo: could make this installable) // the same regardless of glyph. @@ -1509,12 +1549,12 @@ STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codep search += 2; { - stbtt_uint16 offset, start; + stbtt_uint16 offset, start, last; stbtt_uint16 item = (stbtt_uint16) ((search - endCount) >> 1); - STBTT_assert(unicode_codepoint <= ttUSHORT(data + endCount + 2*item)); start = ttUSHORT(data + index_map + 14 + segcount*2 + 2 + 2*item); - if (unicode_codepoint < start) + last = ttUSHORT(data + endCount + 2*item); + if (unicode_codepoint < start || unicode_codepoint > last) return 0; offset = ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item); @@ -1774,7 +1814,7 @@ static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, s } } num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); - } else if (numberOfContours == -1) { + } else if (numberOfContours < 0) { // Compound shapes. int more = 1; stbtt_uint8 *comp = data + g + 10; @@ -1841,7 +1881,7 @@ static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, s if (comp_verts) STBTT_free(comp_verts, info->userdata); return 0; } - if (num_vertices > 0) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); //-V595 + if (num_vertices > 0 && vertices) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex)); if (vertices) STBTT_free(vertices, info->userdata); vertices = tmp; @@ -1851,9 +1891,6 @@ static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, s // More components ? more = flags & (1<<5); } - } else if (numberOfContours < 0) { - // @TODO other compound variations? - STBTT_assert(0); } else { // numberOfCounters == 0, do nothing } @@ -2107,7 +2144,7 @@ static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, st subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); has_subrs = 1; } - // fallthrough + // FALLTHROUGH case 0x1D: // callgsubr if (sp < 1) return STBTT__CSERR("call(g|)subr stack"); v = (int) s[--sp]; @@ -2212,7 +2249,7 @@ static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, st } break; default: - if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) //-V560 + if (b0 != 255 && b0 != 28 && b0 < 32) return STBTT__CSERR("reserved operator"); // push immediate @@ -2282,7 +2319,49 @@ STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_inde } } -static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info) +{ + stbtt_uint8 *data = info->data + info->kern; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + return ttUSHORT(data+10); +} + +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length) +{ + stbtt_uint8 *data = info->data + info->kern; + int k, length; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + length = ttUSHORT(data+10); + if (table_length < length) + length = table_length; + + for (k = 0; k < length; k++) + { + table[k].glyph1 = ttUSHORT(data+18+(k*6)); + table[k].glyph2 = ttUSHORT(data+20+(k*6)); + table[k].advance = ttSHORT(data+22+(k*6)); + } + + return length; +} + +static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) { stbtt_uint8 *data = info->data + info->kern; stbtt_uint32 needle, straw; @@ -2312,245 +2391,225 @@ static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph return 0; } -static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) -{ - stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); - switch(coverageFormat) { - case 1: { - stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); - - // Binary search. - stbtt_int32 l=0, r=glyphCount-1, m; - int straw, needle=glyph; - while (l <= r) { - stbtt_uint8 *glyphArray = coverageTable + 4; - stbtt_uint16 glyphID; - m = (l + r) >> 1; - glyphID = ttUSHORT(glyphArray + 2 * m); - straw = glyphID; - if (needle < straw) - r = m - 1; - else if (needle > straw) - l = m + 1; - else { - return m; - } +static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) +{ + stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); + switch (coverageFormat) { + case 1: { + stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); + + // Binary search. + stbtt_int32 l=0, r=glyphCount-1, m; + int straw, needle=glyph; + while (l <= r) { + stbtt_uint8 *glyphArray = coverageTable + 4; + stbtt_uint16 glyphID; + m = (l + r) >> 1; + glyphID = ttUSHORT(glyphArray + 2 * m); + straw = glyphID; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + return m; } - } break; - - case 2: { - stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); - stbtt_uint8 *rangeArray = coverageTable + 4; - - // Binary search. - stbtt_int32 l=0, r=rangeCount-1, m; - int strawStart, strawEnd, needle=glyph; - while (l <= r) { - stbtt_uint8 *rangeRecord; - m = (l + r) >> 1; - rangeRecord = rangeArray + 6 * m; - strawStart = ttUSHORT(rangeRecord); - strawEnd = ttUSHORT(rangeRecord + 2); - if (needle < strawStart) - r = m - 1; - else if (needle > strawEnd) - l = m + 1; - else { - stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); - return startCoverageIndex + glyph - strawStart; - } + } + break; + } + + case 2: { + stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); + stbtt_uint8 *rangeArray = coverageTable + 4; + + // Binary search. + stbtt_int32 l=0, r=rangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *rangeRecord; + m = (l + r) >> 1; + rangeRecord = rangeArray + 6 * m; + strawStart = ttUSHORT(rangeRecord); + strawEnd = ttUSHORT(rangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else { + stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); + return startCoverageIndex + glyph - strawStart; } - } break; + } + break; + } - default: { - // There are no other cases. - STBTT_assert(0); - } break; - } + default: return -1; // unsupported + } - return -1; + return -1; } static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph) { - stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); - switch(classDefFormat) - { - case 1: { - stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); - stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); - stbtt_uint8 *classDef1ValueArray = classDefTable + 6; - - if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) - return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); - - // [DEAR IMGUI] Commented to fix static analyzer warning - //classDefTable = classDef1ValueArray + 2 * glyphCount; - } break; - - case 2: { - stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); - stbtt_uint8 *classRangeRecords = classDefTable + 4; - - // Binary search. - stbtt_int32 l=0, r=classRangeCount-1, m; - int strawStart, strawEnd, needle=glyph; - while (l <= r) { - stbtt_uint8 *classRangeRecord; - m = (l + r) >> 1; - classRangeRecord = classRangeRecords + 6 * m; - strawStart = ttUSHORT(classRangeRecord); - strawEnd = ttUSHORT(classRangeRecord + 2); - if (needle < strawStart) - r = m - 1; - else if (needle > strawEnd) - l = m + 1; - else - return (stbtt_int32)ttUSHORT(classRangeRecord + 4); - } + stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); + switch (classDefFormat) + { + case 1: { + stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); + stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); + stbtt_uint8 *classDef1ValueArray = classDefTable + 6; - // [DEAR IMGUI] Commented to fix static analyzer warning - //classDefTable = classRangeRecords + 6 * classRangeCount; - } break; + if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) + return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); + break; + } - default: { - // There are no other cases. - STBTT_assert(0); - } break; - } + case 2: { + stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); + stbtt_uint8 *classRangeRecords = classDefTable + 4; + + // Binary search. + stbtt_int32 l=0, r=classRangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *classRangeRecord; + m = (l + r) >> 1; + classRangeRecord = classRangeRecords + 6 * m; + strawStart = ttUSHORT(classRangeRecord); + strawEnd = ttUSHORT(classRangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else + return (stbtt_int32)ttUSHORT(classRangeRecord + 4); + } + break; + } - return -1; + default: + return -1; // Unsupported definition type, return an error. + } + + // "All glyphs not assigned to a class fall into class 0". (OpenType spec) + return 0; } // Define to STBTT_assert(x) if you want to break on unimplemented formats. #define STBTT_GPOS_TODO_assert(x) -static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) -{ - stbtt_uint16 lookupListOffset; - stbtt_uint8 *lookupList; - stbtt_uint16 lookupCount; - stbtt_uint8 *data; - stbtt_int32 i; - - if (!info->gpos) return 0; - - data = info->data + info->gpos; - - if (ttUSHORT(data+0) != 1) return 0; // Major version 1 - if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 - - lookupListOffset = ttUSHORT(data+8); - lookupList = data + lookupListOffset; - lookupCount = ttUSHORT(lookupList); - - for (i=0; i> 1; - pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; - secondGlyph = ttUSHORT(pairValue); - straw = secondGlyph; - if (needle < straw) - r = m - 1; - else if (needle > straw) - l = m + 1; - else { - stbtt_int16 xAdvance = ttSHORT(pairValue + 2); - return xAdvance; - } - } - } break; - - case 2: { - stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); - stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); - - stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); - stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); - int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); - int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); - - stbtt_uint16 class1Count = ttUSHORT(table + 12); - stbtt_uint16 class2Count = ttUSHORT(table + 14); - STBTT_assert(glyph1class < class1Count); - STBTT_assert(glyph2class < class2Count); - - // TODO: Support more formats. - STBTT_GPOS_TODO_assert(valueFormat1 == 4); - if (valueFormat1 != 4) return 0; - STBTT_GPOS_TODO_assert(valueFormat2 == 0); - if (valueFormat2 != 0) return 0; - - if (glyph1class >= 0 && glyph1class < class1Count && glyph2class >= 0 && glyph2class < class2Count) { - stbtt_uint8 *class1Records = table + 16; - stbtt_uint8 *class2Records = class1Records + 2 * (glyph1class * class2Count); - stbtt_int16 xAdvance = ttSHORT(class2Records + 2 * glyph2class); - return xAdvance; - } - } break; - - default: { - // There are no other cases. - STBTT_assert(0); - break; - } // [DEAR IMGUI] removed ; - } - } - break; - } // [DEAR IMGUI] removed ; +static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint16 lookupListOffset; + stbtt_uint8 *lookupList; + stbtt_uint16 lookupCount; + stbtt_uint8 *data; + stbtt_int32 i, sti; + + if (!info->gpos) return 0; + + data = info->data + info->gpos; + + if (ttUSHORT(data+0) != 1) return 0; // Major version 1 + if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 + + lookupListOffset = ttUSHORT(data+8); + lookupList = data + lookupListOffset; + lookupCount = ttUSHORT(lookupList); + + for (i=0; i= pairSetCount) return 0; + + needle=glyph2; + r=pairValueCount-1; + l=0; + + // Binary search. + while (l <= r) { + stbtt_uint16 secondGlyph; + stbtt_uint8 *pairValue; + m = (l + r) >> 1; + pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; + secondGlyph = ttUSHORT(pairValue); + straw = secondGlyph; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + stbtt_int16 xAdvance = ttSHORT(pairValue + 2); + return xAdvance; + } + } + } else + return 0; + break; + } + + case 2: { + stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); + stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); + if (valueFormat1 == 4 && valueFormat2 == 0) { // Support more formats? + stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); + stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); + int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); + int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); + + stbtt_uint16 class1Count = ttUSHORT(table + 12); + stbtt_uint16 class2Count = ttUSHORT(table + 14); + stbtt_uint8 *class1Records, *class2Records; + stbtt_int16 xAdvance; + + if (glyph1class < 0 || glyph1class >= class1Count) return 0; // malformed + if (glyph2class < 0 || glyph2class >= class2Count) return 0; // malformed + + class1Records = table + 16; + class2Records = class1Records + 2 * (glyph1class * class2Count); + xAdvance = ttSHORT(class2Records + 2 * glyph2class); + return xAdvance; + } else + return 0; + break; + } default: - // TODO: Implement other stuff. - break; - } - } + return 0; // Unsupported position format + } + } + } - return 0; + return 0; } STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2) @@ -2559,8 +2618,7 @@ STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int if (info->gpos) xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2); - - if (info->kern) + else if (info->kern) xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2); return xAdvance; @@ -2621,6 +2679,45 @@ STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v) STBTT_free(v, info->userdata); } +STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl) +{ + int i; + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc_list = data + stbtt__get_svg((stbtt_fontinfo *) info); + + int numEntries = ttUSHORT(svg_doc_list); + stbtt_uint8 *svg_docs = svg_doc_list + 2; + + for(i=0; i= ttUSHORT(svg_doc)) && (gl <= ttUSHORT(svg_doc + 2))) + return svg_doc; + } + return 0; +} + +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg) +{ + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc; + + if (info->svg == 0) + return 0; + + svg_doc = stbtt_FindSVGDoc(info, gl); + if (svg_doc != NULL) { + *svg = (char *) data + info->svg + ttULONG(svg_doc + 4); + return ttULONG(svg_doc + 8); + } else { + return 0; + } +} + +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg) +{ + return stbtt_GetGlyphSVG(info, stbtt_FindGlyphIndex(info, unicode_codepoint), svg); +} + ////////////////////////////////////////////////////////////////////////////// // // antialiasing software rasterizer @@ -2970,6 +3067,23 @@ static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edg } } +static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width) +{ + STBTT_assert(top_width >= 0); + STBTT_assert(bottom_width >= 0); + return (top_width + bottom_width) / 2.0f * height; +} + +static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1) +{ + return stbtt__sized_trapezoid_area(height, tx1 - tx0, bx1 - bx0); +} + +static float stbtt__sized_triangle_area(float height, float width) +{ + return height * width / 2; +} + static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top) { float y_bottom = y_top+1; @@ -3024,13 +3138,13 @@ static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, float height; // simple case, only spans one pixel int x = (int) x_top; - height = sy1 - sy0; + height = (sy1 - sy0) * e->direction; STBTT_assert(x >= 0 && x < len); - scanline[x] += e->direction * (1-((x_top - x) + (x_bottom-x))/2) * height; - scanline_fill[x] += e->direction * height; // everything right of this pixel is filled + scanline[x] += stbtt__position_trapezoid_area(height, x_top, x+1.0f, x_bottom, x+1.0f); + scanline_fill[x] += height; // everything right of this pixel is filled } else { int x,x1,x2; - float y_crossing, step, sign, area; + float y_crossing, y_final, step, sign, area; // covers 2+ pixels if (x_top > x_bottom) { // flip scanline vertically; signed area is the same @@ -3042,32 +3156,83 @@ static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, dx = -dx; dy = -dy; t = x0, x0 = xb, xb = t; - // [DEAR IMGUI] Fix static analyzer warning - (void)dx; // [ImGui: fix static analyzer warning] } + STBTT_assert(dy >= 0); + STBTT_assert(dx >= 0); x1 = (int) x_top; x2 = (int) x_bottom; // compute intersection with y axis at x1+1 - y_crossing = (x1+1 - x0) * dy + y_top; + y_crossing = y_top + dy * (x1+1 - x0); + + // compute intersection with y axis at x2 + y_final = y_top + dy * (x2 - x0); + + // x1 x_top x2 x_bottom + // y_top +------|-----+------------+------------+--------|---+------------+ + // | | | | | | + // | | | | | | + // sy0 | Txxxxx|............|............|............|............| + // y_crossing | *xxxxx.......|............|............|............| + // | | xxxxx..|............|............|............| + // | | /- xx*xxxx........|............|............| + // | | dy < | xxxxxx..|............|............| + // y_final | | \- | xx*xxx.........|............| + // sy1 | | | | xxxxxB...|............| + // | | | | | | + // | | | | | | + // y_bottom +------------+------------+------------+------------+------------+ + // + // goal is to measure the area covered by '.' in each pixel + + // if x2 is right at the right edge of x1, y_crossing can blow up, github #1057 + // @TODO: maybe test against sy1 rather than y_bottom? + if (y_crossing > y_bottom) + y_crossing = y_bottom; sign = e->direction; - // area of the rectangle covered from y0..y_crossing + + // area of the rectangle covered from sy0..y_crossing area = sign * (y_crossing-sy0); - // area of the triangle (x_top,y0), (x+1,y0), (x+1,y_crossing) - scanline[x1] += area * (1-((x_top - x1)+(x1+1-x1))/2); - step = sign * dy; + // area of the triangle (x_top,sy0), (x1+1,sy0), (x1+1,y_crossing) + scanline[x1] += stbtt__sized_triangle_area(area, x1+1 - x_top); + + // check if final y_crossing is blown up; no test case for this + if (y_final > y_bottom) { + int denom = (x2 - (x1+1)); + y_final = y_bottom; + if (denom != 0) { // [DEAR IMGUI] Avoid div by zero (https://github.com/nothings/stb/issues/1316) + dy = (y_final - y_crossing ) / denom; // if denom=0, y_final = y_crossing, so y_final <= y_bottom + } + } + + // in second pixel, area covered by line segment found in first pixel + // is always a rectangle 1 wide * the height of that line segment; this + // is exactly what the variable 'area' stores. it also gets a contribution + // from the line segment within it. the THIRD pixel will get the first + // pixel's rectangle contribution, the second pixel's rectangle contribution, + // and its own contribution. the 'own contribution' is the same in every pixel except + // the leftmost and rightmost, a trapezoid that slides down in each pixel. + // the second pixel's contribution to the third pixel will be the + // rectangle 1 wide times the height change in the second pixel, which is dy. + + step = sign * dy * 1; // dy is dy/dx, change in y for every 1 change in x, + // which multiplied by 1-pixel-width is how much pixel area changes for each step in x + // so the area advances by 'step' every time + for (x = x1+1; x < x2; ++x) { - scanline[x] += area + step/2; + scanline[x] += area + step/2; // area of trapezoid is 1*step/2 area += step; } - y_crossing += dy * (x2 - (x1+1)); - - STBTT_assert(STBTT_fabs(area) <= 1.01f); + STBTT_assert(STBTT_fabs(area) <= 1.01f); // accumulated error from area += step unless we round step down + STBTT_assert(sy1 > y_final-0.01f); - scanline[x2] += area + sign * (1-((x2-x2)+(x_bottom-x2))/2) * (sy1-y_crossing); + // area covered in the last pixel is the rectangle from all the pixels to the left, + // plus the trapezoid filled by the line segment in this pixel all the way to the right edge + scanline[x2] += area + sign * stbtt__position_trapezoid_area(sy1-y_final, (float) x2, x2+1.0f, x_bottom, x2+1.0f); + // the rest of the line is filled based on the total height of the line segment in this pixel scanline_fill[x2] += sign * (sy1-sy0); } } else { @@ -3075,6 +3240,9 @@ static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, // clipping logic. since this does not match the intended use // of this library, we use a different, very slow brute // force implementation + // note though that this does happen some of the time because + // x_top and x_bottom can be extrapolated at the top & bottom of + // the shape and actually lie outside the bounding box int x; for (x=0; x < len; ++x) { // cases: @@ -3989,6 +4157,7 @@ static float stbtt__oversample_shift(int oversample) STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) { int i,j,k; + int missing_glyph_added = 0; k=0; for (i=0; i < num_ranges; ++i) { @@ -4000,7 +4169,7 @@ STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stb int x0,y0,x1,y1; int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; int glyph = stbtt_FindGlyphIndex(info, codepoint); - if (glyph == 0 && spc->skip_missing) { + if (glyph == 0 && (spc->skip_missing || missing_glyph_added)) { rects[k].w = rects[k].h = 0; } else { stbtt_GetGlyphBitmapBoxSubpixel(info,glyph, @@ -4010,6 +4179,8 @@ STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stb &x0,&y0,&x1,&y1); rects[k].w = (stbrp_coord) (x1-x0 + spc->padding + spc->h_oversample-1); rects[k].h = (stbrp_coord) (y1-y0 + spc->padding + spc->v_oversample-1); + if (glyph == 0) + missing_glyph_added = 1; } ++k; } @@ -4044,7 +4215,7 @@ STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info // rects array must be big enough to accommodate all characters in the given ranges STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) { - int i,j,k, return_value = 1; + int i,j,k, missing_glyph = -1, return_value = 1; // save current values int old_h_over = spc->h_oversample; @@ -4109,6 +4280,13 @@ STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const bc->yoff = (float) y0 * recip_v + sub_y; bc->xoff2 = (x0 + r->w) * recip_h + sub_x; bc->yoff2 = (y0 + r->h) * recip_v + sub_y; + + if (glyph == 0) + missing_glyph = j; + } else if (spc->skip_missing) { + return_value = 0; + } else if (r->was_packed && r->w == 0 && r->h == 0 && missing_glyph >= 0) { + ranges[i].chardata_for_range[j] = ranges[i].chardata_for_range[missing_glyph]; } else { return_value = 0; // if any fail, report failure } @@ -4132,7 +4310,7 @@ STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) { stbtt_fontinfo info; - int i,j,n, return_value; // [DEAR IMGUI] removed = 1 + int i, j, n, return_value; // [DEAR IMGUI] removed = 1; //stbrp_context *context = (stbrp_context *) spc->pack_info; stbrp_rect *rects; @@ -4301,15 +4479,14 @@ static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex float y_frac; int winding = 0; - orig[0] = x; - //orig[1] = y; // [DEAR IMGUI] commented double assignment - // make sure y never passes through a vertex of the shape y_frac = (float) STBTT_fmod(y, 1.0f); if (y_frac < 0.01f) y += 0.01f; else if (y_frac > 0.99f) y -= 0.01f; + + orig[0] = x; orig[1] = y; // test a ray from (-infinity,y) to (x,y) @@ -4371,35 +4548,35 @@ static float stbtt__cuberoot( float x ) return (float) STBTT_pow( x,1.0f/3.0f); } -// x^3 + c*x^2 + b*x + a = 0 +// x^3 + a*x^2 + b*x + c = 0 static int stbtt__solve_cubic(float a, float b, float c, float* r) { - float s = -a / 3; - float p = b - a*a / 3; - float q = a * (2*a*a - 9*b) / 27 + c; + float s = -a / 3; + float p = b - a*a / 3; + float q = a * (2*a*a - 9*b) / 27 + c; float p3 = p*p*p; - float d = q*q + 4*p3 / 27; - if (d >= 0) { - float z = (float) STBTT_sqrt(d); - float u = (-q + z) / 2; - float v = (-q - z) / 2; - u = stbtt__cuberoot(u); - v = stbtt__cuberoot(v); - r[0] = s + u + v; - return 1; - } else { - float u = (float) STBTT_sqrt(-p/3); - float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative - float m = (float) STBTT_cos(v); + float d = q*q + 4*p3 / 27; + if (d >= 0) { + float z = (float) STBTT_sqrt(d); + float u = (-q + z) / 2; + float v = (-q - z) / 2; + u = stbtt__cuberoot(u); + v = stbtt__cuberoot(v); + r[0] = s + u + v; + return 1; + } else { + float u = (float) STBTT_sqrt(-p/3); + float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative + float m = (float) STBTT_cos(v); float n = (float) STBTT_cos(v-3.141592/2)*1.732050808f; - r[0] = s + u * 2 * m; - r[1] = s - u * (m + n); - r[2] = s - u * (m - n); + r[0] = s + u * 2 * m; + r[1] = s - u * (m + n); + r[2] = s - u * (m - n); //STBTT_assert( STBTT_fabs(((r[0]+a)*r[0]+b)*r[0]+c) < 0.05f); // these asserts may not be safe at all scales, though they're in bezier t parameter units so maybe? //STBTT_assert( STBTT_fabs(((r[1]+a)*r[1]+b)*r[1]+c) < 0.05f); //STBTT_assert( STBTT_fabs(((r[2]+a)*r[2]+b)*r[2]+c) < 0.05f); - return 3; + return 3; } } @@ -4410,12 +4587,7 @@ STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float sc int w,h; unsigned char *data; - // if one scale is 0, use same scale for both - if (scale_x == 0) scale_x = scale_y; - if (scale_y == 0) { - if (scale_x == 0) return NULL; // if both scales are 0, return NULL - scale_y = scale_x; - } + if (scale == 0) return NULL; stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale, scale, 0.0f,0.0f, &ix0,&iy0,&ix1,&iy1); @@ -4481,18 +4653,17 @@ STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float sc for (i=0; i < num_verts; ++i) { float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; - // check against every point here rather than inside line/curve primitives -- @TODO: wrong if multiple 'moves' in a row produce a garbage point, and given culling, probably more efficient to do within line/curve - float dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); - if (dist2 < min_dist*min_dist) - min_dist = (float) STBTT_sqrt(dist2); - - if (verts[i].type == STBTT_vline) { + if (verts[i].type == STBTT_vline && precompute[i] != 0.0f) { float x1 = verts[i-1].x*scale_x, y1 = verts[i-1].y*scale_y; + float dist,dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + // coarse culling against bbox //if (sx > STBTT_min(x0,x1)-min_dist && sx < STBTT_max(x0,x1)+min_dist && // sy > STBTT_min(y0,y1)-min_dist && sy < STBTT_max(y0,y1)+min_dist) - float dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; + dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; STBTT_assert(i != 0); if (dist < min_dist) { // check position along line @@ -4519,7 +4690,8 @@ STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float sc float ax = x1-x0, ay = y1-y0; float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; float mx = x0 - sx, my = y0 - sy; - float res[3],px,py,t,it; + float res[3] = {0.f,0.f,0.f}; + float px,py,t,it,dist2; float a_inv = precompute[i]; if (a_inv == 0.0) { // if a_inv is 0, it's 2nd degree so use quadratic formula float a = 3*(ax*bx + ay*by); @@ -4546,6 +4718,10 @@ STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float sc float d = (mx*ax+my*ay) * a_inv; num = stbtt__solve_cubic(b, c, d, res); } + dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + if (num >= 1 && res[0] >= 0.0f && res[0] <= 1.0f) { t = res[0], it = 1.0f - t; px = it*it*x0 + 2*t*it*x1 + t*t*x2; @@ -4805,6 +4981,12 @@ STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const // FULL VERSION HISTORY // +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() // 1.19 (2018-02-11) OpenType GPOS kerning (horizontal only), STBTT_fmod // 1.18 (2018-01-29) add missing function // 1.17 (2017-07-23) make more arguments const; doc fix diff --git a/imgui-sys/third-party/imgui-master/imgui/misc/freetype/README.md b/imgui-sys/third-party/imgui-master/imgui/misc/freetype/README.md index f7d7bab71..5fcfc2d79 100644 --- a/imgui-sys/third-party/imgui-master/imgui/misc/freetype/README.md +++ b/imgui-sys/third-party/imgui-master/imgui/misc/freetype/README.md @@ -26,12 +26,12 @@ See https://gist.github.com/ocornut/b3a9ecf13502fd818799a452969649ad ### Comparaison -Small, thin anti-aliased fonts are typically benefiting a lots from Freetype's hinting: +Small, thin anti-aliased fonts typically benefit a lot from FreeType's hinting: ![comparing_font_rasterizers](https://user-images.githubusercontent.com/8225057/107550178-fef87f00-6bd0-11eb-8d09-e2edb2f0ccfc.gif) ### Colorful glyphs/emojis -You can use the `ImGuiFreeTypeBuilderFlags_LoadColor` flag to load certain colorful glyphs. See -["Using Colorful Glyphs/Emojis"](https://github.com/ocornut/imgui/edit/master/docs/FONTS.md#using-colorful-glyphsemojis) section of FONTS.md. +You can use the `ImGuiFreeTypeBuilderFlags_LoadColor` flag to load certain colorful glyphs. See the +["Using Colorful Glyphs/Emojis"](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md#using-colorful-glyphsemojis) section of FONTS.md. ![colored glyphs](https://user-images.githubusercontent.com/8225057/106171241-9dc4ba80-6191-11eb-8a69-ca1467b206d1.png) diff --git a/imgui-sys/third-party/imgui-master/imgui/misc/freetype/imgui_freetype.cpp b/imgui-sys/third-party/imgui-master/imgui/misc/freetype/imgui_freetype.cpp index a72ec8c83..03255326b 100644 --- a/imgui-sys/third-party/imgui-master/imgui/misc/freetype/imgui_freetype.cpp +++ b/imgui-sys/third-party/imgui-master/imgui/misc/freetype/imgui_freetype.cpp @@ -368,7 +368,7 @@ struct ImFontBuildSrcGlyphFT uint32_t Codepoint; unsigned int* BitmapData; // Point within one of the dst_tmp_bitmap_buffers[] array - ImFontBuildSrcGlyphFT() { memset(this, 0, sizeof(*this)); } + ImFontBuildSrcGlyphFT() { memset((void*)this, 0, sizeof(*this)); } }; struct ImFontBuildSrcDataFT @@ -508,7 +508,7 @@ bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, u // Allocate temporary rasterization data buffers. // We could not find a way to retrieve accurate glyph size without rendering them. // (e.g. slot->metrics->width not always matching bitmap->width, especially considering the Oblique transform) - // We allocate in chunks of 256 KB to not waste too much extra memory ahead. Hopefully users of FreeType won't find the temporary allocations. + // We allocate in chunks of 256 KB to not waste too much extra memory ahead. Hopefully users of FreeType won't mind the temporary allocations. const int BITMAP_BUFFERS_CHUNK_SIZE = 256 * 1024; int buf_bitmap_current_used_bytes = 0; ImVector buf_bitmap_buffers; @@ -556,6 +556,7 @@ bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, u buf_bitmap_current_used_bytes = 0; buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); } + IM_ASSERT(buf_bitmap_current_used_bytes + bitmap_size_in_bytes <= BITMAP_BUFFERS_CHUNK_SIZE); // We could probably allocate custom-sized buffer instead. // Blit rasterized pixels to our temporary buffer and keep a pointer to it. src_glyph.BitmapData = (unsigned int*)(buf_bitmap_buffers.back() + buf_bitmap_current_used_bytes); diff --git a/imgui-sys/third-party/imgui-master/impl_definitions.json b/imgui-sys/third-party/imgui-master/impl_definitions.json index 0637a088a..b64b6d173 100644 --- a/imgui-sys/third-party/imgui-master/impl_definitions.json +++ b/imgui-sys/third-party/imgui-master/impl_definitions.json @@ -1 +1,818 @@ -[] \ No newline at end of file +{ + "ImGui_ImplGlfw_CharCallback": [ + { + "args": "(GLFWwindow* window,unsigned int c)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "c", + "type": "unsigned int" + } + ], + "argsoriginal": "(GLFWwindow* window,unsigned int c)", + "call_args": "(window,c)", + "cimguiname": "ImGui_ImplGlfw_CharCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CharCallback", + "location": "imgui_impl_glfw:46", + "ov_cimguiname": "ImGui_ImplGlfw_CharCallback", + "ret": "void", + "signature": "(GLFWwindow*,unsigned int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_CursorEnterCallback": [ + { + "args": "(GLFWwindow* window,int entered)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "entered", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int entered)", + "call_args": "(window,entered)", + "cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CursorEnterCallback", + "location": "imgui_impl_glfw:41", + "ov_cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", + "ret": "void", + "signature": "(GLFWwindow*,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_CursorPosCallback": [ + { + "args": "(GLFWwindow* window,double x,double y)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "x", + "type": "double" + }, + { + "name": "y", + "type": "double" + } + ], + "argsoriginal": "(GLFWwindow* window,double x,double y)", + "call_args": "(window,x,y)", + "cimguiname": "ImGui_ImplGlfw_CursorPosCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CursorPosCallback", + "location": "imgui_impl_glfw:42", + "ov_cimguiname": "ImGui_ImplGlfw_CursorPosCallback", + "ret": "void", + "signature": "(GLFWwindow*,double,double)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForOpenGL": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForOpenGL", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForOpenGL", + "location": "imgui_impl_glfw:27", + "ov_cimguiname": "ImGui_ImplGlfw_InitForOpenGL", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForOther": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForOther", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForOther", + "location": "imgui_impl_glfw:29", + "ov_cimguiname": "ImGui_ImplGlfw_InitForOther", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForVulkan": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForVulkan", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForVulkan", + "location": "imgui_impl_glfw:28", + "ov_cimguiname": "ImGui_ImplGlfw_InitForVulkan", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InstallCallbacks": [ + { + "args": "(GLFWwindow* window)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + } + ], + "argsoriginal": "(GLFWwindow* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplGlfw_InstallCallbacks", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InstallCallbacks", + "location": "imgui_impl_glfw:36", + "ov_cimguiname": "ImGui_ImplGlfw_InstallCallbacks", + "ret": "void", + "signature": "(GLFWwindow*)", + "stname": "" + } + ], + "ImGui_ImplGlfw_KeyCallback": [ + { + "args": "(GLFWwindow* window,int key,int scancode,int action,int mods)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "key", + "type": "int" + }, + { + "name": "scancode", + "type": "int" + }, + { + "name": "action", + "type": "int" + }, + { + "name": "mods", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int key,int scancode,int action,int mods)", + "call_args": "(window,key,scancode,action,mods)", + "cimguiname": "ImGui_ImplGlfw_KeyCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_KeyCallback", + "location": "imgui_impl_glfw:45", + "ov_cimguiname": "ImGui_ImplGlfw_KeyCallback", + "ret": "void", + "signature": "(GLFWwindow*,int,int,int,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_MonitorCallback": [ + { + "args": "(GLFWmonitor* monitor,int event)", + "argsT": [ + { + "name": "monitor", + "type": "GLFWmonitor*" + }, + { + "name": "event", + "type": "int" + } + ], + "argsoriginal": "(GLFWmonitor* monitor,int event)", + "call_args": "(monitor,event)", + "cimguiname": "ImGui_ImplGlfw_MonitorCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_MonitorCallback", + "location": "imgui_impl_glfw:47", + "ov_cimguiname": "ImGui_ImplGlfw_MonitorCallback", + "ret": "void", + "signature": "(GLFWmonitor*,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_MouseButtonCallback": [ + { + "args": "(GLFWwindow* window,int button,int action,int mods)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "button", + "type": "int" + }, + { + "name": "action", + "type": "int" + }, + { + "name": "mods", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int button,int action,int mods)", + "call_args": "(window,button,action,mods)", + "cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_MouseButtonCallback", + "location": "imgui_impl_glfw:43", + "ov_cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", + "ret": "void", + "signature": "(GLFWwindow*,int,int,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplGlfw_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_NewFrame", + "location": "imgui_impl_glfw:31", + "ov_cimguiname": "ImGui_ImplGlfw_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplGlfw_RestoreCallbacks": [ + { + "args": "(GLFWwindow* window)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + } + ], + "argsoriginal": "(GLFWwindow* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_RestoreCallbacks", + "location": "imgui_impl_glfw:37", + "ov_cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", + "ret": "void", + "signature": "(GLFWwindow*)", + "stname": "" + } + ], + "ImGui_ImplGlfw_ScrollCallback": [ + { + "args": "(GLFWwindow* window,double xoffset,double yoffset)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "xoffset", + "type": "double" + }, + { + "name": "yoffset", + "type": "double" + } + ], + "argsoriginal": "(GLFWwindow* window,double xoffset,double yoffset)", + "call_args": "(window,xoffset,yoffset)", + "cimguiname": "ImGui_ImplGlfw_ScrollCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_ScrollCallback", + "location": "imgui_impl_glfw:44", + "ov_cimguiname": "ImGui_ImplGlfw_ScrollCallback", + "ret": "void", + "signature": "(GLFWwindow*,double,double)", + "stname": "" + } + ], + "ImGui_ImplGlfw_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplGlfw_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_Shutdown", + "location": "imgui_impl_glfw:30", + "ov_cimguiname": "ImGui_ImplGlfw_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplGlfw_WindowFocusCallback": [ + { + "args": "(GLFWwindow* window,int focused)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "focused", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int focused)", + "call_args": "(window,focused)", + "cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_WindowFocusCallback", + "location": "imgui_impl_glfw:40", + "ov_cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", + "ret": "void", + "signature": "(GLFWwindow*,int)", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_CreateDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "location": "imgui_impl_opengl2:32", + "ov_cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_CreateFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "location": "imgui_impl_opengl2:30", + "ov_cimguiname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_DestroyDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "location": "imgui_impl_opengl2:33", + "ov_cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_DestroyFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "location": "imgui_impl_opengl2:31", + "ov_cimguiname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_Init": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_Init", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_Init", + "location": "imgui_impl_opengl2:24", + "ov_cimguiname": "ImGui_ImplOpenGL2_Init", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_NewFrame", + "location": "imgui_impl_opengl2:26", + "ov_cimguiname": "ImGui_ImplOpenGL2_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_RenderDrawData": [ + { + "args": "(ImDrawData* draw_data)", + "argsT": [ + { + "name": "draw_data", + "type": "ImDrawData*" + } + ], + "argsoriginal": "(ImDrawData* draw_data)", + "call_args": "(draw_data)", + "cimguiname": "ImGui_ImplOpenGL2_RenderDrawData", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_RenderDrawData", + "location": "imgui_impl_opengl2:27", + "ov_cimguiname": "ImGui_ImplOpenGL2_RenderDrawData", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_Shutdown", + "location": "imgui_impl_opengl2:25", + "ov_cimguiname": "ImGui_ImplOpenGL2_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_CreateDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "location": "imgui_impl_opengl3:33", + "ov_cimguiname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_CreateFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "location": "imgui_impl_opengl3:31", + "ov_cimguiname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_DestroyDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "location": "imgui_impl_opengl3:34", + "ov_cimguiname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_DestroyFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "location": "imgui_impl_opengl3:32", + "ov_cimguiname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_Init": [ + { + "args": "(const char* glsl_version)", + "argsT": [ + { + "name": "glsl_version", + "type": "const char*" + } + ], + "argsoriginal": "(const char* glsl_version=nullptr)", + "call_args": "(glsl_version)", + "cimguiname": "ImGui_ImplOpenGL3_Init", + "defaults": { + "glsl_version": "nullptr" + }, + "funcname": "ImGui_ImplOpenGL3_Init", + "location": "imgui_impl_opengl3:25", + "ov_cimguiname": "ImGui_ImplOpenGL3_Init", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_NewFrame", + "location": "imgui_impl_opengl3:27", + "ov_cimguiname": "ImGui_ImplOpenGL3_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_RenderDrawData": [ + { + "args": "(ImDrawData* draw_data)", + "argsT": [ + { + "name": "draw_data", + "type": "ImDrawData*" + } + ], + "argsoriginal": "(ImDrawData* draw_data)", + "call_args": "(draw_data)", + "cimguiname": "ImGui_ImplOpenGL3_RenderDrawData", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_RenderDrawData", + "location": "imgui_impl_opengl3:28", + "ov_cimguiname": "ImGui_ImplOpenGL3_RenderDrawData", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_Shutdown", + "location": "imgui_impl_opengl3:26", + "ov_cimguiname": "ImGui_ImplOpenGL3_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForD3D": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForD3D", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForD3D", + "location": "imgui_impl_sdl:29", + "ov_cimguiname": "ImGui_ImplSDL2_InitForD3D", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForMetal": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForMetal", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForMetal", + "location": "imgui_impl_sdl:30", + "ov_cimguiname": "ImGui_ImplSDL2_InitForMetal", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForOpenGL": [ + { + "args": "(SDL_Window* window,void* sdl_gl_context)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + }, + { + "name": "sdl_gl_context", + "type": "void*" + } + ], + "argsoriginal": "(SDL_Window* window,void* sdl_gl_context)", + "call_args": "(window,sdl_gl_context)", + "cimguiname": "ImGui_ImplSDL2_InitForOpenGL", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForOpenGL", + "location": "imgui_impl_sdl:27", + "ov_cimguiname": "ImGui_ImplSDL2_InitForOpenGL", + "ret": "bool", + "signature": "(SDL_Window*,void*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForSDLRenderer": [ + { + "args": "(SDL_Window* window,SDL_Renderer* renderer)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + }, + { + "name": "renderer", + "type": "SDL_Renderer*" + } + ], + "argsoriginal": "(SDL_Window* window,SDL_Renderer* renderer)", + "call_args": "(window,renderer)", + "cimguiname": "ImGui_ImplSDL2_InitForSDLRenderer", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForSDLRenderer", + "location": "imgui_impl_sdl:31", + "ov_cimguiname": "ImGui_ImplSDL2_InitForSDLRenderer", + "ret": "bool", + "signature": "(SDL_Window*,SDL_Renderer*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForVulkan": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForVulkan", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForVulkan", + "location": "imgui_impl_sdl:28", + "ov_cimguiname": "ImGui_ImplSDL2_InitForVulkan", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplSDL2_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_NewFrame", + "location": "imgui_impl_sdl:33", + "ov_cimguiname": "ImGui_ImplSDL2_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplSDL2_ProcessEvent": [ + { + "args": "(const SDL_Event* event)", + "argsT": [ + { + "name": "event", + "type": "const SDL_Event*" + } + ], + "argsoriginal": "(const SDL_Event* event)", + "call_args": "(event)", + "cimguiname": "ImGui_ImplSDL2_ProcessEvent", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_ProcessEvent", + "location": "imgui_impl_sdl:34", + "ov_cimguiname": "ImGui_ImplSDL2_ProcessEvent", + "ret": "bool", + "signature": "(const SDL_Event*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplSDL2_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_Shutdown", + "location": "imgui_impl_sdl:32", + "ov_cimguiname": "ImGui_ImplSDL2_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ] +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master/impl_definitions.lua b/imgui-sys/third-party/imgui-master/impl_definitions.lua index 45b23e0cb..e5c6fecbd 100644 --- a/imgui-sys/third-party/imgui-master/impl_definitions.lua +++ b/imgui-sys/third-party/imgui-master/impl_definitions.lua @@ -1,3 +1,715 @@ local defs = {} +defs["ImGui_ImplGlfw_CharCallback"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["args"] = "(GLFWwindow* window,unsigned int c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["name"] = "c" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["type"] = "unsigned int" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsoriginal"] = "(GLFWwindow* window,unsigned int c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["call_args"] = "(window,c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["funcname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["location"] = "imgui_impl_glfw:46" +defs["ImGui_ImplGlfw_CharCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CharCallback"][1]["signature"] = "(GLFWwindow*,unsigned int)" +defs["ImGui_ImplGlfw_CharCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CharCallback"]["(GLFWwindow*,unsigned int)"] = defs["ImGui_ImplGlfw_CharCallback"][1] +defs["ImGui_ImplGlfw_CursorEnterCallback"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["args"] = "(GLFWwindow* window,int entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2]["name"] = "entered" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["call_args"] = "(window,entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["funcname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["location"] = "imgui_impl_glfw:41" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["signature"] = "(GLFWwindow*,int)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CursorEnterCallback"]["(GLFWwindow*,int)"] = defs["ImGui_ImplGlfw_CursorEnterCallback"][1] +defs["ImGui_ImplGlfw_CursorPosCallback"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["args"] = "(GLFWwindow* window,double x,double y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2]["name"] = "x" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2]["type"] = "double" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3]["name"] = "y" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3]["type"] = "double" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsoriginal"] = "(GLFWwindow* window,double x,double y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["call_args"] = "(window,x,y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["funcname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["location"] = "imgui_impl_glfw:42" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["signature"] = "(GLFWwindow*,double,double)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CursorPosCallback"]["(GLFWwindow*,double,double)"] = defs["ImGui_ImplGlfw_CursorPosCallback"][1] +defs["ImGui_ImplGlfw_InitForOpenGL"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["funcname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["location"] = "imgui_impl_glfw:27" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForOpenGL"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOpenGL"][1] +defs["ImGui_ImplGlfw_InitForOther"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["funcname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["location"] = "imgui_impl_glfw:29" +defs["ImGui_ImplGlfw_InitForOther"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForOther"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForOther"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForOther"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOther"][1] +defs["ImGui_ImplGlfw_InitForVulkan"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["funcname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["location"] = "imgui_impl_glfw:28" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForVulkan"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForVulkan"][1] +defs["ImGui_ImplGlfw_InstallCallbacks"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["args"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsoriginal"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["call_args"] = "(window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["cimguiname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["funcname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["location"] = "imgui_impl_glfw:36" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["signature"] = "(GLFWwindow*)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InstallCallbacks"]["(GLFWwindow*)"] = defs["ImGui_ImplGlfw_InstallCallbacks"][1] +defs["ImGui_ImplGlfw_KeyCallback"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["args"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["name"] = "key" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["name"] = "scancode" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["name"] = "action" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["name"] = "mods" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["call_args"] = "(window,key,scancode,action,mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["funcname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["location"] = "imgui_impl_glfw:45" +defs["ImGui_ImplGlfw_KeyCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_KeyCallback"][1]["signature"] = "(GLFWwindow*,int,int,int,int)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_KeyCallback"]["(GLFWwindow*,int,int,int,int)"] = defs["ImGui_ImplGlfw_KeyCallback"][1] +defs["ImGui_ImplGlfw_MonitorCallback"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["args"] = "(GLFWmonitor* monitor,int event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1]["name"] = "monitor" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1]["type"] = "GLFWmonitor*" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2]["name"] = "event" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsoriginal"] = "(GLFWmonitor* monitor,int event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["call_args"] = "(monitor,event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["funcname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["location"] = "imgui_impl_glfw:47" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["signature"] = "(GLFWmonitor*,int)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_MonitorCallback"]["(GLFWmonitor*,int)"] = defs["ImGui_ImplGlfw_MonitorCallback"][1] +defs["ImGui_ImplGlfw_MouseButtonCallback"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["args"] = "(GLFWwindow* window,int button,int action,int mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["name"] = "button" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["name"] = "action" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["name"] = "mods" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int button,int action,int mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["call_args"] = "(window,button,action,mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["funcname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["location"] = "imgui_impl_glfw:43" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["signature"] = "(GLFWwindow*,int,int,int)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_MouseButtonCallback"]["(GLFWwindow*,int,int,int)"] = defs["ImGui_ImplGlfw_MouseButtonCallback"][1] +defs["ImGui_ImplGlfw_NewFrame"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["cimguiname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["funcname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["location"] = "imgui_impl_glfw:31" +defs["ImGui_ImplGlfw_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplGlfw_NewFrame"]["()"] = defs["ImGui_ImplGlfw_NewFrame"][1] +defs["ImGui_ImplGlfw_RestoreCallbacks"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["args"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsoriginal"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["call_args"] = "(window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["cimguiname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["funcname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["location"] = "imgui_impl_glfw:37" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["signature"] = "(GLFWwindow*)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["stname"] = "" +defs["ImGui_ImplGlfw_RestoreCallbacks"]["(GLFWwindow*)"] = defs["ImGui_ImplGlfw_RestoreCallbacks"][1] +defs["ImGui_ImplGlfw_ScrollCallback"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["args"] = "(GLFWwindow* window,double xoffset,double yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["name"] = "xoffset" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["type"] = "double" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["name"] = "yoffset" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["type"] = "double" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsoriginal"] = "(GLFWwindow* window,double xoffset,double yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["call_args"] = "(window,xoffset,yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["funcname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["location"] = "imgui_impl_glfw:44" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["signature"] = "(GLFWwindow*,double,double)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_ScrollCallback"]["(GLFWwindow*,double,double)"] = defs["ImGui_ImplGlfw_ScrollCallback"][1] +defs["ImGui_ImplGlfw_Shutdown"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["cimguiname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["funcname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["location"] = "imgui_impl_glfw:30" +defs["ImGui_ImplGlfw_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplGlfw_Shutdown"]["()"] = defs["ImGui_ImplGlfw_Shutdown"][1] +defs["ImGui_ImplGlfw_WindowFocusCallback"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["args"] = "(GLFWwindow* window,int focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2]["name"] = "focused" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["call_args"] = "(window,focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["funcname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["location"] = "imgui_impl_glfw:40" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["signature"] = "(GLFWwindow*,int)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_WindowFocusCallback"]["(GLFWwindow*,int)"] = defs["ImGui_ImplGlfw_WindowFocusCallback"][1] +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl2:32" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1] +defs["ImGui_ImplOpenGL2_CreateFontsTexture"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl2:30" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"]["()"] = defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1] +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl2:33" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1] +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl2:31" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"]["()"] = defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1] +defs["ImGui_ImplOpenGL2_Init"] = {} +defs["ImGui_ImplOpenGL2_Init"][1] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["cimguiname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["funcname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["location"] = "imgui_impl_opengl2:24" +defs["ImGui_ImplOpenGL2_Init"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_Init"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_Init"]["()"] = defs["ImGui_ImplOpenGL2_Init"][1] +defs["ImGui_ImplOpenGL2_NewFrame"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["cimguiname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["location"] = "imgui_impl_opengl2:26" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_NewFrame"]["()"] = defs["ImGui_ImplOpenGL2_NewFrame"][1] +defs["ImGui_ImplOpenGL2_RenderDrawData"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["call_args"] = "(draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["cimguiname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["location"] = "imgui_impl_opengl2:27" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["signature"] = "(ImDrawData*)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_RenderDrawData"]["(ImDrawData*)"] = defs["ImGui_ImplOpenGL2_RenderDrawData"][1] +defs["ImGui_ImplOpenGL2_Shutdown"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["cimguiname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["location"] = "imgui_impl_opengl2:25" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_Shutdown"]["()"] = defs["ImGui_ImplOpenGL2_Shutdown"][1] +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl3:33" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1] +defs["ImGui_ImplOpenGL3_CreateFontsTexture"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl3:31" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"]["()"] = defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1] +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl3:34" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1] +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl3:32" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"]["()"] = defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1] +defs["ImGui_ImplOpenGL3_Init"] = {} +defs["ImGui_ImplOpenGL3_Init"][1] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["args"] = "(const char* glsl_version)" +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["name"] = "glsl_version" +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["type"] = "const char*" +defs["ImGui_ImplOpenGL3_Init"][1]["argsoriginal"] = "(const char* glsl_version=nullptr)" +defs["ImGui_ImplOpenGL3_Init"][1]["call_args"] = "(glsl_version)" +defs["ImGui_ImplOpenGL3_Init"][1]["cimguiname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["defaults"]["glsl_version"] = "nullptr" +defs["ImGui_ImplOpenGL3_Init"][1]["funcname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["location"] = "imgui_impl_opengl3:25" +defs["ImGui_ImplOpenGL3_Init"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_Init"][1]["signature"] = "(const char*)" +defs["ImGui_ImplOpenGL3_Init"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_Init"]["(const char*)"] = defs["ImGui_ImplOpenGL3_Init"][1] +defs["ImGui_ImplOpenGL3_NewFrame"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["cimguiname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["location"] = "imgui_impl_opengl3:27" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_NewFrame"]["()"] = defs["ImGui_ImplOpenGL3_NewFrame"][1] +defs["ImGui_ImplOpenGL3_RenderDrawData"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["call_args"] = "(draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["cimguiname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["location"] = "imgui_impl_opengl3:28" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["signature"] = "(ImDrawData*)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_RenderDrawData"]["(ImDrawData*)"] = defs["ImGui_ImplOpenGL3_RenderDrawData"][1] +defs["ImGui_ImplOpenGL3_Shutdown"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["cimguiname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["location"] = "imgui_impl_opengl3:26" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_Shutdown"]["()"] = defs["ImGui_ImplOpenGL3_Shutdown"][1] +defs["ImGui_ImplSDL2_InitForD3D"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["funcname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["location"] = "imgui_impl_sdl:29" +defs["ImGui_ImplSDL2_InitForD3D"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForD3D"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForD3D"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForD3D"][1] +defs["ImGui_ImplSDL2_InitForMetal"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["funcname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["location"] = "imgui_impl_sdl:30" +defs["ImGui_ImplSDL2_InitForMetal"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForMetal"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForMetal"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForMetal"][1] +defs["ImGui_ImplSDL2_InitForOpenGL"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["args"] = "(SDL_Window* window,void* sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["name"] = "sdl_gl_context" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["type"] = "void*" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsoriginal"] = "(SDL_Window* window,void* sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["call_args"] = "(window,sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["funcname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["location"] = "imgui_impl_sdl:27" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["signature"] = "(SDL_Window*,void*)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForOpenGL"]["(SDL_Window*,void*)"] = defs["ImGui_ImplSDL2_InitForOpenGL"][1] +defs["ImGui_ImplSDL2_InitForSDLRenderer"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["args"] = "(SDL_Window* window,SDL_Renderer* renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2]["name"] = "renderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2]["type"] = "SDL_Renderer*" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsoriginal"] = "(SDL_Window* window,SDL_Renderer* renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["call_args"] = "(window,renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["funcname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["location"] = "imgui_impl_sdl:31" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["signature"] = "(SDL_Window*,SDL_Renderer*)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForSDLRenderer"]["(SDL_Window*,SDL_Renderer*)"] = defs["ImGui_ImplSDL2_InitForSDLRenderer"][1] +defs["ImGui_ImplSDL2_InitForVulkan"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["funcname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["location"] = "imgui_impl_sdl:28" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForVulkan"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForVulkan"][1] +defs["ImGui_ImplSDL2_NewFrame"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["cimguiname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["funcname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["location"] = "imgui_impl_sdl:33" +defs["ImGui_ImplSDL2_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplSDL2_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplSDL2_NewFrame"]["()"] = defs["ImGui_ImplSDL2_NewFrame"][1] +defs["ImGui_ImplSDL2_ProcessEvent"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["args"] = "(const SDL_Event* event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["name"] = "event" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["type"] = "const SDL_Event*" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsoriginal"] = "(const SDL_Event* event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["call_args"] = "(event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["cimguiname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["funcname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["location"] = "imgui_impl_sdl:34" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["signature"] = "(const SDL_Event*)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["stname"] = "" +defs["ImGui_ImplSDL2_ProcessEvent"]["(const SDL_Event*)"] = defs["ImGui_ImplSDL2_ProcessEvent"][1] +defs["ImGui_ImplSDL2_Shutdown"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["cimguiname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["funcname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["location"] = "imgui_impl_sdl:32" +defs["ImGui_ImplSDL2_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplSDL2_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplSDL2_Shutdown"]["()"] = defs["ImGui_ImplSDL2_Shutdown"][1] return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master/overloads.txt b/imgui-sys/third-party/imgui-master/overloads.txt index 39f35fcf6..0f2d997c2 100644 --- a/imgui-sys/third-party/imgui-master/overloads.txt +++ b/imgui-sys/third-party/imgui-master/overloads.txt @@ -1,138 +1,138 @@ ----------------overloadings--------------------------- ImColor_ImColor 5 -1 nil ImColor_ImColorNil () -2 nil ImColor_ImColorInt (int,int,int,int) -3 nil ImColor_ImColorU32 (ImU32) -4 nil ImColor_ImColorFloat (float,float,float,float) -5 nil ImColor_ImColorVec4 (const ImVec4) +1 nil ImColor_ImColor_Nil () +2 nil ImColor_ImColor_Float (float,float,float,float) +3 nil ImColor_ImColor_Vec4 (const ImVec4) +4 nil ImColor_ImColor_Int (int,int,int,int) +5 nil ImColor_ImColor_U32 (ImU32) ImDrawList_AddText 2 -1 void ImDrawList_AddTextVec2 (const ImVec2,ImU32,const char*,const char*) -2 void ImDrawList_AddTextFontPtr (const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*) +1 void ImDrawList_AddText_Vec2 (const ImVec2,ImU32,const char*,const char*) +2 void ImDrawList_AddText_FontPtr (const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*) ImGuiStoragePair_ImGuiStoragePair 3 -1 nil ImGuiStoragePair_ImGuiStoragePairInt (ImGuiID,int) -2 nil ImGuiStoragePair_ImGuiStoragePairFloat (ImGuiID,float) -3 nil ImGuiStoragePair_ImGuiStoragePairPtr (ImGuiID,void*) +1 nil ImGuiStoragePair_ImGuiStoragePair_Int (ImGuiID,int) +2 nil ImGuiStoragePair_ImGuiStoragePair_Float (ImGuiID,float) +3 nil ImGuiStoragePair_ImGuiStoragePair_Ptr (ImGuiID,void*) ImGuiTextRange_ImGuiTextRange 2 -1 nil ImGuiTextRange_ImGuiTextRangeNil () -2 nil ImGuiTextRange_ImGuiTextRangeStr (const char*,const char*) +1 nil ImGuiTextRange_ImGuiTextRange_Nil () +2 nil ImGuiTextRange_ImGuiTextRange_Str (const char*,const char*) ImVec2_ImVec2 2 -1 nil ImVec2_ImVec2Nil () -2 nil ImVec2_ImVec2Float (float,float) +1 nil ImVec2_ImVec2_Nil () +2 nil ImVec2_ImVec2_Float (float,float) ImVec4_ImVec4 2 -1 nil ImVec4_ImVec4Nil () -2 nil ImVec4_ImVec4Float (float,float,float,float) +1 nil ImVec4_ImVec4_Nil () +2 nil ImVec4_ImVec4_Float (float,float,float,float) ImVector_ImVector 2 -1 nil ImVector_ImVectorNil () -2 nil ImVector_ImVectorVector (const ImVector) +1 nil ImVector_ImVector_Nil () +2 nil ImVector_ImVector_Vector_T_ (const ImVector_T ) ImVector_back 2 -1 T* ImVector_backNil () -2 const T* ImVector_back_const ()const +1 T* ImVector_back_Nil () +2 const T* ImVector_back__const ()const ImVector_begin 2 -1 T* ImVector_beginNil () -2 const T* ImVector_begin_const ()const +1 T* ImVector_begin_Nil () +2 const T* ImVector_begin__const ()const ImVector_end 2 -1 T* ImVector_endNil () -2 const T* ImVector_end_const ()const +1 T* ImVector_end_Nil () +2 const T* ImVector_end__const ()const ImVector_erase 2 -1 T* ImVector_eraseNil (const T*) -2 T* ImVector_eraseTPtr (const T*,const T*) +1 T* ImVector_erase_Nil (const T*) +2 T* ImVector_erase_TPtr (const T*,const T*) ImVector_find 2 -1 T* ImVector_findNil (const T) -2 const T* ImVector_find_const (const T)const +1 T* ImVector_find_Nil (const T) +2 const T* ImVector_find__const (const T)const ImVector_front 2 -1 T* ImVector_frontNil () -2 const T* ImVector_front_const ()const +1 T* ImVector_front_Nil () +2 const T* ImVector_front__const ()const ImVector_resize 2 -1 void ImVector_resizeNil (int) -2 void ImVector_resizeT (int,const T) +1 void ImVector_resize_Nil (int) +2 void ImVector_resize_T (int,const T) igBeginChild 2 -1 bool igBeginChildStr (const char*,const ImVec2,bool,ImGuiWindowFlags) -2 bool igBeginChildID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags) +1 bool igBeginChild_Str (const char*,const ImVec2,bool,ImGuiWindowFlags) +2 bool igBeginChild_ID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags) igCheckboxFlags 2 -1 bool igCheckboxFlagsIntPtr (const char*,int*,int) -2 bool igCheckboxFlagsUintPtr (const char*,unsigned int*,unsigned int) +1 bool igCheckboxFlags_IntPtr (const char*,int*,int) +2 bool igCheckboxFlags_UintPtr (const char*,unsigned int*,unsigned int) igCollapsingHeader 2 -1 bool igCollapsingHeaderTreeNodeFlags (const char*,ImGuiTreeNodeFlags) -2 bool igCollapsingHeaderBoolPtr (const char*,bool*,ImGuiTreeNodeFlags) +1 bool igCollapsingHeader_TreeNodeFlags (const char*,ImGuiTreeNodeFlags) +2 bool igCollapsingHeader_BoolPtr (const char*,bool*,ImGuiTreeNodeFlags) igCombo 3 -1 bool igComboStr_arr (const char*,int*,const char* const[],int,int) -2 bool igComboStr (const char*,int*,const char*,int) -3 bool igComboFnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) +1 bool igCombo_Str_arr (const char*,int*,const char* const[],int,int) +2 bool igCombo_Str (const char*,int*,const char*,int) +3 bool igCombo_FnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) igGetColorU32 3 -1 ImU32 igGetColorU32Col (ImGuiCol,float) -2 ImU32 igGetColorU32Vec4 (const ImVec4) -3 ImU32 igGetColorU32U32 (ImU32) +1 ImU32 igGetColorU32_Col (ImGuiCol,float) +2 ImU32 igGetColorU32_Vec4 (const ImVec4) +3 ImU32 igGetColorU32_U32 (ImU32) igGetID 3 -1 ImGuiID igGetIDStr (const char*) -2 ImGuiID igGetIDStrStr (const char*,const char*) -3 ImGuiID igGetIDPtr (const void*) +1 ImGuiID igGetID_Str (const char*) +2 ImGuiID igGetID_StrStr (const char*,const char*) +3 ImGuiID igGetID_Ptr (const void*) igIsRectVisible 2 -1 bool igIsRectVisibleNil (const ImVec2) -2 bool igIsRectVisibleVec2 (const ImVec2,const ImVec2) +1 bool igIsRectVisible_Nil (const ImVec2) +2 bool igIsRectVisible_Vec2 (const ImVec2,const ImVec2) igListBox 2 -1 bool igListBoxStr_arr (const char*,int*,const char* const[],int,int) -2 bool igListBoxFnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) +1 bool igListBox_Str_arr (const char*,int*,const char* const[],int,int) +2 bool igListBox_FnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) igMenuItem 2 -1 bool igMenuItemBool (const char*,const char*,bool,bool) -2 bool igMenuItemBoolPtr (const char*,const char*,bool*,bool) +1 bool igMenuItem_Bool (const char*,const char*,bool,bool) +2 bool igMenuItem_BoolPtr (const char*,const char*,bool*,bool) igOpenPopup 2 -1 void igOpenPopupStr (const char*,ImGuiPopupFlags) -2 void igOpenPopupID (ImGuiID,ImGuiPopupFlags) +1 void igOpenPopup_Str (const char*,ImGuiPopupFlags) +2 void igOpenPopup_ID (ImGuiID,ImGuiPopupFlags) igPlotHistogram 2 -1 void igPlotHistogramFloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) -2 void igPlotHistogramFnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) +1 void igPlotHistogram_FloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) +2 void igPlotHistogram_FnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) igPlotLines 2 -1 void igPlotLinesFloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) -2 void igPlotLinesFnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) +1 void igPlotLines_FloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) +2 void igPlotLines_FnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) igPushID 4 -1 void igPushIDStr (const char*) -2 void igPushIDStrStr (const char*,const char*) -3 void igPushIDPtr (const void*) -4 void igPushIDInt (int) +1 void igPushID_Str (const char*) +2 void igPushID_StrStr (const char*,const char*) +3 void igPushID_Ptr (const void*) +4 void igPushID_Int (int) igPushStyleColor 2 -1 void igPushStyleColorU32 (ImGuiCol,ImU32) -2 void igPushStyleColorVec4 (ImGuiCol,const ImVec4) +1 void igPushStyleColor_U32 (ImGuiCol,ImU32) +2 void igPushStyleColor_Vec4 (ImGuiCol,const ImVec4) igPushStyleVar 2 -1 void igPushStyleVarFloat (ImGuiStyleVar,float) -2 void igPushStyleVarVec2 (ImGuiStyleVar,const ImVec2) +1 void igPushStyleVar_Float (ImGuiStyleVar,float) +2 void igPushStyleVar_Vec2 (ImGuiStyleVar,const ImVec2) igRadioButton 2 -1 bool igRadioButtonBool (const char*,bool) -2 bool igRadioButtonIntPtr (const char*,int*,int) +1 bool igRadioButton_Bool (const char*,bool) +2 bool igRadioButton_IntPtr (const char*,int*,int) igSelectable 2 -1 bool igSelectableBool (const char*,bool,ImGuiSelectableFlags,const ImVec2) -2 bool igSelectableBoolPtr (const char*,bool*,ImGuiSelectableFlags,const ImVec2) +1 bool igSelectable_Bool (const char*,bool,ImGuiSelectableFlags,const ImVec2) +2 bool igSelectable_BoolPtr (const char*,bool*,ImGuiSelectableFlags,const ImVec2) igSetWindowCollapsed 2 -1 void igSetWindowCollapsedBool (bool,ImGuiCond) -2 void igSetWindowCollapsedStr (const char*,bool,ImGuiCond) +1 void igSetWindowCollapsed_Bool (bool,ImGuiCond) +2 void igSetWindowCollapsed_Str (const char*,bool,ImGuiCond) igSetWindowFocus 2 -1 void igSetWindowFocusNil () -2 void igSetWindowFocusStr (const char*) +1 void igSetWindowFocus_Nil () +2 void igSetWindowFocus_Str (const char*) igSetWindowPos 2 -1 void igSetWindowPosVec2 (const ImVec2,ImGuiCond) -2 void igSetWindowPosStr (const char*,const ImVec2,ImGuiCond) +1 void igSetWindowPos_Vec2 (const ImVec2,ImGuiCond) +2 void igSetWindowPos_Str (const char*,const ImVec2,ImGuiCond) igSetWindowSize 2 -1 void igSetWindowSizeVec2 (const ImVec2,ImGuiCond) -2 void igSetWindowSizeStr (const char*,const ImVec2,ImGuiCond) +1 void igSetWindowSize_Vec2 (const ImVec2,ImGuiCond) +2 void igSetWindowSize_Str (const char*,const ImVec2,ImGuiCond) igTreeNode 3 -1 bool igTreeNodeStr (const char*) -2 bool igTreeNodeStrStr (const char*,const char*,...) -3 bool igTreeNodePtr (const void*,const char*,...) +1 bool igTreeNode_Str (const char*) +2 bool igTreeNode_StrStr (const char*,const char*,...) +3 bool igTreeNode_Ptr (const void*,const char*,...) igTreeNodeEx 3 -1 bool igTreeNodeExStr (const char*,ImGuiTreeNodeFlags) -2 bool igTreeNodeExStrStr (const char*,ImGuiTreeNodeFlags,const char*,...) -3 bool igTreeNodeExPtr (const void*,ImGuiTreeNodeFlags,const char*,...) +1 bool igTreeNodeEx_Str (const char*,ImGuiTreeNodeFlags) +2 bool igTreeNodeEx_StrStr (const char*,ImGuiTreeNodeFlags,const char*,...) +3 bool igTreeNodeEx_Ptr (const void*,ImGuiTreeNodeFlags,const char*,...) igTreeNodeExV 2 -1 bool igTreeNodeExVStr (const char*,ImGuiTreeNodeFlags,const char*,va_list) -2 bool igTreeNodeExVPtr (const void*,ImGuiTreeNodeFlags,const char*,va_list) +1 bool igTreeNodeExV_Str (const char*,ImGuiTreeNodeFlags,const char*,va_list) +2 bool igTreeNodeExV_Ptr (const void*,ImGuiTreeNodeFlags,const char*,va_list) igTreeNodeV 2 -1 bool igTreeNodeVStr (const char*,const char*,va_list) -2 bool igTreeNodeVPtr (const void*,const char*,va_list) +1 bool igTreeNodeV_Str (const char*,const char*,va_list) +2 bool igTreeNodeV_Ptr (const void*,const char*,va_list) igTreePush 2 -1 void igTreePushStr (const char*) -2 void igTreePushPtr (const void*) +1 void igTreePush_Str (const char*) +2 void igTreePush_Ptr (const void*) igValue 4 -1 void igValueBool (const char*,bool) -2 void igValueInt (const char*,int) -3 void igValueUint (const char*,unsigned int) -4 void igValueFloat (const char*,float,const char*) +1 void igValue_Bool (const char*,bool) +2 void igValue_Int (const char*,int) +3 void igValue_Uint (const char*,unsigned int) +4 void igValue_Float (const char*,float,const char*) 95 overloaded \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master/structs_and_enums.json b/imgui-sys/third-party/imgui-master/structs_and_enums.json index 79ff009a5..41dc5472c 100644 --- a/imgui-sys/third-party/imgui-master/structs_and_enums.json +++ b/imgui-sys/third-party/imgui-master/structs_and_enums.json @@ -944,6 +944,11 @@ "name": "ImGuiHoveredFlags_AllowWhenDisabled", "value": "1 << 9" }, + { + "calc_value": 1024, + "name": "ImGuiHoveredFlags_NoNavOverride", + "value": "1 << 10" + }, { "calc_value": 416, "name": "ImGuiHoveredFlags_RectOnly", @@ -953,6 +958,21 @@ "calc_value": 3, "name": "ImGuiHoveredFlags_RootAndChildWindows", "value": "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" + }, + { + "calc_value": 2048, + "name": "ImGuiHoveredFlags_DelayNormal", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiHoveredFlags_DelayShort", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiHoveredFlags_NoSharedDelay", + "value": "1 << 13" } ], "ImGuiInputTextFlags_": [ @@ -1060,150 +1080,783 @@ "calc_value": 524288, "name": "ImGuiInputTextFlags_CallbackEdit", "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiInputTextFlags_EscapeClearsAll", + "value": "1 << 20" } ], - "ImGuiKeyModFlags_": [ + "ImGuiKey": [ { "calc_value": 0, - "name": "ImGuiKeyModFlags_None", + "name": "ImGuiKey_None", "value": "0" }, { - "calc_value": 1, - "name": "ImGuiKeyModFlags_Ctrl", - "value": "1 << 0" + "calc_value": 512, + "name": "ImGuiKey_Tab", + "value": "512" }, { - "calc_value": 2, - "name": "ImGuiKeyModFlags_Shift", - "value": "1 << 1" + "calc_value": 513, + "name": "ImGuiKey_LeftArrow", + "value": "513" + }, + { + "calc_value": 514, + "name": "ImGuiKey_RightArrow", + "value": "514" + }, + { + "calc_value": 515, + "name": "ImGuiKey_UpArrow", + "value": "515" + }, + { + "calc_value": 516, + "name": "ImGuiKey_DownArrow", + "value": "516" + }, + { + "calc_value": 517, + "name": "ImGuiKey_PageUp", + "value": "517" + }, + { + "calc_value": 518, + "name": "ImGuiKey_PageDown", + "value": "518" + }, + { + "calc_value": 519, + "name": "ImGuiKey_Home", + "value": "519" + }, + { + "calc_value": 520, + "name": "ImGuiKey_End", + "value": "520" + }, + { + "calc_value": 521, + "name": "ImGuiKey_Insert", + "value": "521" + }, + { + "calc_value": 522, + "name": "ImGuiKey_Delete", + "value": "522" + }, + { + "calc_value": 523, + "name": "ImGuiKey_Backspace", + "value": "523" + }, + { + "calc_value": 524, + "name": "ImGuiKey_Space", + "value": "524" + }, + { + "calc_value": 525, + "name": "ImGuiKey_Enter", + "value": "525" + }, + { + "calc_value": 526, + "name": "ImGuiKey_Escape", + "value": "526" + }, + { + "calc_value": 527, + "name": "ImGuiKey_LeftCtrl", + "value": "527" + }, + { + "calc_value": 528, + "name": "ImGuiKey_LeftShift", + "value": "528" + }, + { + "calc_value": 529, + "name": "ImGuiKey_LeftAlt", + "value": "529" + }, + { + "calc_value": 530, + "name": "ImGuiKey_LeftSuper", + "value": "530" + }, + { + "calc_value": 531, + "name": "ImGuiKey_RightCtrl", + "value": "531" + }, + { + "calc_value": 532, + "name": "ImGuiKey_RightShift", + "value": "532" + }, + { + "calc_value": 533, + "name": "ImGuiKey_RightAlt", + "value": "533" + }, + { + "calc_value": 534, + "name": "ImGuiKey_RightSuper", + "value": "534" + }, + { + "calc_value": 535, + "name": "ImGuiKey_Menu", + "value": "535" + }, + { + "calc_value": 536, + "name": "ImGuiKey_0", + "value": "536" + }, + { + "calc_value": 537, + "name": "ImGuiKey_1", + "value": "537" + }, + { + "calc_value": 538, + "name": "ImGuiKey_2", + "value": "538" + }, + { + "calc_value": 539, + "name": "ImGuiKey_3", + "value": "539" + }, + { + "calc_value": 540, + "name": "ImGuiKey_4", + "value": "540" + }, + { + "calc_value": 541, + "name": "ImGuiKey_5", + "value": "541" + }, + { + "calc_value": 542, + "name": "ImGuiKey_6", + "value": "542" + }, + { + "calc_value": 543, + "name": "ImGuiKey_7", + "value": "543" + }, + { + "calc_value": 544, + "name": "ImGuiKey_8", + "value": "544" + }, + { + "calc_value": 545, + "name": "ImGuiKey_9", + "value": "545" + }, + { + "calc_value": 546, + "name": "ImGuiKey_A", + "value": "546" + }, + { + "calc_value": 547, + "name": "ImGuiKey_B", + "value": "547" + }, + { + "calc_value": 548, + "name": "ImGuiKey_C", + "value": "548" + }, + { + "calc_value": 549, + "name": "ImGuiKey_D", + "value": "549" + }, + { + "calc_value": 550, + "name": "ImGuiKey_E", + "value": "550" + }, + { + "calc_value": 551, + "name": "ImGuiKey_F", + "value": "551" + }, + { + "calc_value": 552, + "name": "ImGuiKey_G", + "value": "552" + }, + { + "calc_value": 553, + "name": "ImGuiKey_H", + "value": "553" + }, + { + "calc_value": 554, + "name": "ImGuiKey_I", + "value": "554" + }, + { + "calc_value": 555, + "name": "ImGuiKey_J", + "value": "555" + }, + { + "calc_value": 556, + "name": "ImGuiKey_K", + "value": "556" + }, + { + "calc_value": 557, + "name": "ImGuiKey_L", + "value": "557" + }, + { + "calc_value": 558, + "name": "ImGuiKey_M", + "value": "558" + }, + { + "calc_value": 559, + "name": "ImGuiKey_N", + "value": "559" + }, + { + "calc_value": 560, + "name": "ImGuiKey_O", + "value": "560" + }, + { + "calc_value": 561, + "name": "ImGuiKey_P", + "value": "561" + }, + { + "calc_value": 562, + "name": "ImGuiKey_Q", + "value": "562" + }, + { + "calc_value": 563, + "name": "ImGuiKey_R", + "value": "563" + }, + { + "calc_value": 564, + "name": "ImGuiKey_S", + "value": "564" + }, + { + "calc_value": 565, + "name": "ImGuiKey_T", + "value": "565" + }, + { + "calc_value": 566, + "name": "ImGuiKey_U", + "value": "566" + }, + { + "calc_value": 567, + "name": "ImGuiKey_V", + "value": "567" + }, + { + "calc_value": 568, + "name": "ImGuiKey_W", + "value": "568" + }, + { + "calc_value": 569, + "name": "ImGuiKey_X", + "value": "569" + }, + { + "calc_value": 570, + "name": "ImGuiKey_Y", + "value": "570" + }, + { + "calc_value": 571, + "name": "ImGuiKey_Z", + "value": "571" + }, + { + "calc_value": 572, + "name": "ImGuiKey_F1", + "value": "572" + }, + { + "calc_value": 573, + "name": "ImGuiKey_F2", + "value": "573" + }, + { + "calc_value": 574, + "name": "ImGuiKey_F3", + "value": "574" + }, + { + "calc_value": 575, + "name": "ImGuiKey_F4", + "value": "575" + }, + { + "calc_value": 576, + "name": "ImGuiKey_F5", + "value": "576" + }, + { + "calc_value": 577, + "name": "ImGuiKey_F6", + "value": "577" + }, + { + "calc_value": 578, + "name": "ImGuiKey_F7", + "value": "578" + }, + { + "calc_value": 579, + "name": "ImGuiKey_F8", + "value": "579" + }, + { + "calc_value": 580, + "name": "ImGuiKey_F9", + "value": "580" + }, + { + "calc_value": 581, + "name": "ImGuiKey_F10", + "value": "581" + }, + { + "calc_value": 582, + "name": "ImGuiKey_F11", + "value": "582" + }, + { + "calc_value": 583, + "name": "ImGuiKey_F12", + "value": "583" + }, + { + "calc_value": 584, + "name": "ImGuiKey_Apostrophe", + "value": "584" + }, + { + "calc_value": 585, + "name": "ImGuiKey_Comma", + "value": "585" + }, + { + "calc_value": 586, + "name": "ImGuiKey_Minus", + "value": "586" + }, + { + "calc_value": 587, + "name": "ImGuiKey_Period", + "value": "587" + }, + { + "calc_value": 588, + "name": "ImGuiKey_Slash", + "value": "588" + }, + { + "calc_value": 589, + "name": "ImGuiKey_Semicolon", + "value": "589" + }, + { + "calc_value": 590, + "name": "ImGuiKey_Equal", + "value": "590" + }, + { + "calc_value": 591, + "name": "ImGuiKey_LeftBracket", + "value": "591" + }, + { + "calc_value": 592, + "name": "ImGuiKey_Backslash", + "value": "592" + }, + { + "calc_value": 593, + "name": "ImGuiKey_RightBracket", + "value": "593" + }, + { + "calc_value": 594, + "name": "ImGuiKey_GraveAccent", + "value": "594" + }, + { + "calc_value": 595, + "name": "ImGuiKey_CapsLock", + "value": "595" + }, + { + "calc_value": 596, + "name": "ImGuiKey_ScrollLock", + "value": "596" + }, + { + "calc_value": 597, + "name": "ImGuiKey_NumLock", + "value": "597" + }, + { + "calc_value": 598, + "name": "ImGuiKey_PrintScreen", + "value": "598" + }, + { + "calc_value": 599, + "name": "ImGuiKey_Pause", + "value": "599" + }, + { + "calc_value": 600, + "name": "ImGuiKey_Keypad0", + "value": "600" + }, + { + "calc_value": 601, + "name": "ImGuiKey_Keypad1", + "value": "601" + }, + { + "calc_value": 602, + "name": "ImGuiKey_Keypad2", + "value": "602" + }, + { + "calc_value": 603, + "name": "ImGuiKey_Keypad3", + "value": "603" + }, + { + "calc_value": 604, + "name": "ImGuiKey_Keypad4", + "value": "604" + }, + { + "calc_value": 605, + "name": "ImGuiKey_Keypad5", + "value": "605" + }, + { + "calc_value": 606, + "name": "ImGuiKey_Keypad6", + "value": "606" + }, + { + "calc_value": 607, + "name": "ImGuiKey_Keypad7", + "value": "607" + }, + { + "calc_value": 608, + "name": "ImGuiKey_Keypad8", + "value": "608" + }, + { + "calc_value": 609, + "name": "ImGuiKey_Keypad9", + "value": "609" + }, + { + "calc_value": 610, + "name": "ImGuiKey_KeypadDecimal", + "value": "610" + }, + { + "calc_value": 611, + "name": "ImGuiKey_KeypadDivide", + "value": "611" + }, + { + "calc_value": 612, + "name": "ImGuiKey_KeypadMultiply", + "value": "612" + }, + { + "calc_value": 613, + "name": "ImGuiKey_KeypadSubtract", + "value": "613" + }, + { + "calc_value": 614, + "name": "ImGuiKey_KeypadAdd", + "value": "614" + }, + { + "calc_value": 615, + "name": "ImGuiKey_KeypadEnter", + "value": "615" + }, + { + "calc_value": 616, + "name": "ImGuiKey_KeypadEqual", + "value": "616" + }, + { + "calc_value": 617, + "name": "ImGuiKey_GamepadStart", + "value": "617" + }, + { + "calc_value": 618, + "name": "ImGuiKey_GamepadBack", + "value": "618" + }, + { + "calc_value": 619, + "name": "ImGuiKey_GamepadFaceLeft", + "value": "619" + }, + { + "calc_value": 620, + "name": "ImGuiKey_GamepadFaceRight", + "value": "620" + }, + { + "calc_value": 621, + "name": "ImGuiKey_GamepadFaceUp", + "value": "621" + }, + { + "calc_value": 622, + "name": "ImGuiKey_GamepadFaceDown", + "value": "622" + }, + { + "calc_value": 623, + "name": "ImGuiKey_GamepadDpadLeft", + "value": "623" + }, + { + "calc_value": 624, + "name": "ImGuiKey_GamepadDpadRight", + "value": "624" + }, + { + "calc_value": 625, + "name": "ImGuiKey_GamepadDpadUp", + "value": "625" + }, + { + "calc_value": 626, + "name": "ImGuiKey_GamepadDpadDown", + "value": "626" + }, + { + "calc_value": 627, + "name": "ImGuiKey_GamepadL1", + "value": "627" + }, + { + "calc_value": 628, + "name": "ImGuiKey_GamepadR1", + "value": "628" + }, + { + "calc_value": 629, + "name": "ImGuiKey_GamepadL2", + "value": "629" + }, + { + "calc_value": 630, + "name": "ImGuiKey_GamepadR2", + "value": "630" + }, + { + "calc_value": 631, + "name": "ImGuiKey_GamepadL3", + "value": "631" + }, + { + "calc_value": 632, + "name": "ImGuiKey_GamepadR3", + "value": "632" + }, + { + "calc_value": 633, + "name": "ImGuiKey_GamepadLStickLeft", + "value": "633" + }, + { + "calc_value": 634, + "name": "ImGuiKey_GamepadLStickRight", + "value": "634" + }, + { + "calc_value": 635, + "name": "ImGuiKey_GamepadLStickUp", + "value": "635" + }, + { + "calc_value": 636, + "name": "ImGuiKey_GamepadLStickDown", + "value": "636" + }, + { + "calc_value": 637, + "name": "ImGuiKey_GamepadRStickLeft", + "value": "637" + }, + { + "calc_value": 638, + "name": "ImGuiKey_GamepadRStickRight", + "value": "638" + }, + { + "calc_value": 639, + "name": "ImGuiKey_GamepadRStickUp", + "value": "639" + }, + { + "calc_value": 640, + "name": "ImGuiKey_GamepadRStickDown", + "value": "640" }, { - "calc_value": 4, - "name": "ImGuiKeyModFlags_Alt", - "value": "1 << 2" + "calc_value": 641, + "name": "ImGuiKey_MouseLeft", + "value": "641" }, { - "calc_value": 8, - "name": "ImGuiKeyModFlags_Super", - "value": "1 << 3" - } - ], - "ImGuiKey_": [ - { - "calc_value": 0, - "name": "ImGuiKey_Tab", - "value": "0" + "calc_value": 642, + "name": "ImGuiKey_MouseRight", + "value": "642" }, { - "calc_value": 1, - "name": "ImGuiKey_LeftArrow", - "value": "1" + "calc_value": 643, + "name": "ImGuiKey_MouseMiddle", + "value": "643" }, { - "calc_value": 2, - "name": "ImGuiKey_RightArrow", - "value": "2" + "calc_value": 644, + "name": "ImGuiKey_MouseX1", + "value": "644" }, { - "calc_value": 3, - "name": "ImGuiKey_UpArrow", - "value": "3" + "calc_value": 645, + "name": "ImGuiKey_MouseX2", + "value": "645" }, { - "calc_value": 4, - "name": "ImGuiKey_DownArrow", - "value": "4" + "calc_value": 646, + "name": "ImGuiKey_MouseWheelX", + "value": "646" }, { - "calc_value": 5, - "name": "ImGuiKey_PageUp", - "value": "5" + "calc_value": 647, + "name": "ImGuiKey_MouseWheelY", + "value": "647" }, { - "calc_value": 6, - "name": "ImGuiKey_PageDown", - "value": "6" + "calc_value": 648, + "name": "ImGuiKey_ReservedForModCtrl", + "value": "648" }, { - "calc_value": 7, - "name": "ImGuiKey_Home", - "value": "7" + "calc_value": 649, + "name": "ImGuiKey_ReservedForModShift", + "value": "649" }, { - "calc_value": 8, - "name": "ImGuiKey_End", - "value": "8" + "calc_value": 650, + "name": "ImGuiKey_ReservedForModAlt", + "value": "650" }, { - "calc_value": 9, - "name": "ImGuiKey_Insert", - "value": "9" + "calc_value": 651, + "name": "ImGuiKey_ReservedForModSuper", + "value": "651" }, { - "calc_value": 10, - "name": "ImGuiKey_Delete", - "value": "10" + "calc_value": 652, + "name": "ImGuiKey_COUNT", + "value": "652" }, { - "calc_value": 11, - "name": "ImGuiKey_Backspace", - "value": "11" + "calc_value": 0, + "name": "ImGuiMod_None", + "value": "0" }, { - "calc_value": 12, - "name": "ImGuiKey_Space", - "value": "12" + "calc_value": 4096, + "name": "ImGuiMod_Ctrl", + "value": "1 << 12" }, { - "calc_value": 13, - "name": "ImGuiKey_Enter", - "value": "13" + "calc_value": 8192, + "name": "ImGuiMod_Shift", + "value": "1 << 13" }, { - "calc_value": 14, - "name": "ImGuiKey_Escape", - "value": "14" + "calc_value": 16384, + "name": "ImGuiMod_Alt", + "value": "1 << 14" }, { - "calc_value": 15, - "name": "ImGuiKey_KeyPadEnter", - "value": "15" + "calc_value": 32768, + "name": "ImGuiMod_Super", + "value": "1 << 15" }, { - "calc_value": 16, - "name": "ImGuiKey_A", - "value": "16" + "calc_value": 61440, + "name": "ImGuiMod_Mask_", + "value": "0xF000" }, { - "calc_value": 17, - "name": "ImGuiKey_C", - "value": "17" + "calc_value": 4096, + "name": "ImGuiMod_Shortcut", + "value": "ImGuiMod_Ctrl" }, { - "calc_value": 18, - "name": "ImGuiKey_V", - "value": "18" + "calc_value": 512, + "name": "ImGuiKey_NamedKey_BEGIN", + "value": "512" }, { - "calc_value": 19, - "name": "ImGuiKey_X", - "value": "19" + "calc_value": 652, + "name": "ImGuiKey_NamedKey_END", + "value": "ImGuiKey_COUNT" }, { - "calc_value": 20, - "name": "ImGuiKey_Y", - "value": "20" + "calc_value": 140, + "name": "ImGuiKey_NamedKey_COUNT", + "value": "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN" }, { - "calc_value": 21, - "name": "ImGuiKey_Z", - "value": "21" + "calc_value": 652, + "name": "ImGuiKey_KeysData_SIZE", + "value": "ImGuiKey_COUNT" }, { - "calc_value": 22, - "name": "ImGuiKey_COUNT", - "value": "22" + "calc_value": 0, + "name": "ImGuiKey_KeysData_OFFSET", + "value": "0" } ], "ImGuiMouseButton_": [ @@ -1285,7 +1938,7 @@ "value": "9" } ], - "ImGuiNavInput_": [ + "ImGuiNavInput": [ { "calc_value": 0, "name": "ImGuiNavInput_Activate", @@ -1368,33 +2021,8 @@ }, { "calc_value": 16, - "name": "ImGuiNavInput_KeyLeft_", - "value": "16" - }, - { - "calc_value": 17, - "name": "ImGuiNavInput_KeyRight_", - "value": "17" - }, - { - "calc_value": 18, - "name": "ImGuiNavInput_KeyUp_", - "value": "18" - }, - { - "calc_value": 19, - "name": "ImGuiNavInput_KeyDown_", - "value": "19" - }, - { - "calc_value": 20, "name": "ImGuiNavInput_COUNT", - "value": "20" - }, - { - "calc_value": 16, - "name": "ImGuiNavInput_InternalStart_", - "value": "ImGuiNavInput_KeyLeft_" + "value": "16" } ], "ImGuiPopupFlags_": [ @@ -2381,74 +3009,77 @@ } ] }, - "enumtypes": [], + "enumtypes": { + "ImGuiKey": "int" + }, "locations": { - "ImColor": "imgui:2241", - "ImDrawChannel": "imgui:2331", - "ImDrawCmd": "imgui:2290", - "ImDrawCmdHeader": "imgui:2323", - "ImDrawData": "imgui:2521", - "ImDrawFlags_": "imgui:2357", - "ImDrawList": "imgui:2395", - "ImDrawListFlags_": "imgui:2377", - "ImDrawListSplitter": "imgui:2340", - "ImDrawVert": "imgui:2308", - "ImFont": "imgui:2739", - "ImFontAtlas": "imgui:2637", - "ImFontAtlasCustomRect": "imgui:2599", - "ImFontAtlasFlags_": "imgui:2612", - "ImFontConfig": "imgui:2543", - "ImFontGlyph": "imgui:2572", - "ImFontGlyphRangesBuilder": "imgui:2584", - "ImGuiBackendFlags_": "imgui:1442", - "ImGuiButtonFlags_": "imgui:1549", - "ImGuiCol_": "imgui:1452", - "ImGuiColorEditFlags_": "imgui:1562", - "ImGuiComboFlags_": "imgui:1076", - "ImGuiCond_": "imgui:1654", - "ImGuiConfigFlags_": "imgui:1426", - "ImGuiDataType_": "imgui:1319", - "ImGuiDir_": "imgui:1335", - "ImGuiDragDropFlags_": "imgui:1297", - "ImGuiFocusedFlags_": "imgui:1265", - "ImGuiHoveredFlags_": "imgui:1279", - "ImGuiIO": "imgui:1820", - "ImGuiInputTextCallbackData": "imgui:1969", - "ImGuiInputTextFlags_": "imgui:989", - "ImGuiKeyModFlags_": "imgui:1382", - "ImGuiKey_": "imgui:1354", - "ImGuiListClipper": "imgui:2193", - "ImGuiMouseButton_": "imgui:1626", - "ImGuiMouseCursor_": "imgui:1636", - "ImGuiNavInput_": "imgui:1395", - "ImGuiOnceUponAFrame": "imgui:2068", - "ImGuiPayload": "imgui:2009", - "ImGuiPopupFlags_": "imgui:1049", - "ImGuiSelectableFlags_": "imgui:1065", - "ImGuiSizeCallbackData": "imgui:2000", - "ImGuiSliderFlags_": "imgui:1609", - "ImGuiSortDirection_": "imgui:1346", - "ImGuiStorage": "imgui:2130", - "ImGuiStoragePair": "imgui:2133", - "ImGuiStyle": "imgui:1765", - "ImGuiStyleVar_": "imgui:1517", - "ImGuiTabBarFlags_": "imgui:1090", - "ImGuiTabItemFlags_": "imgui:1106", - "ImGuiTableBgTarget_": "imgui:1256", - "ImGuiTableColumnFlags_": "imgui:1199", - "ImGuiTableColumnSortSpecs": "imgui:2031", - "ImGuiTableFlags_": "imgui:1142", - "ImGuiTableRowFlags_": "imgui:1241", - "ImGuiTableSortSpecs": "imgui:2045", - "ImGuiTextBuffer": "imgui:2103", - "ImGuiTextFilter": "imgui:2076", - "ImGuiTextRange": "imgui:2086", - "ImGuiTreeNodeFlags_": "imgui:1020", - "ImGuiViewport": "imgui:2810", - "ImGuiViewportFlags_": "imgui:2795", - "ImGuiWindowFlags_": "imgui:949", - "ImVec2": "imgui:259", - "ImVec4": "imgui:272" + "ImColor": "imgui:2346", + "ImDrawChannel": "imgui:2436", + "ImDrawCmd": "imgui:2395", + "ImDrawCmdHeader": "imgui:2428", + "ImDrawData": "imgui:2628", + "ImDrawFlags_": "imgui:2462", + "ImDrawList": "imgui:2500", + "ImDrawListFlags_": "imgui:2482", + "ImDrawListSplitter": "imgui:2445", + "ImDrawVert": "imgui:2413", + "ImFont": "imgui:2846", + "ImFontAtlas": "imgui:2744", + "ImFontAtlasCustomRect": "imgui:2706", + "ImFontAtlasFlags_": "imgui:2719", + "ImFontConfig": "imgui:2650", + "ImFontGlyph": "imgui:2679", + "ImFontGlyphRangesBuilder": "imgui:2691", + "ImGuiBackendFlags_": "imgui:1510", + "ImGuiButtonFlags_": "imgui:1617", + "ImGuiCol_": "imgui:1520", + "ImGuiColorEditFlags_": "imgui:1630", + "ImGuiComboFlags_": "imgui:1079", + "ImGuiCond_": "imgui:1721", + "ImGuiConfigFlags_": "imgui:1494", + "ImGuiDataType_": "imgui:1316", + "ImGuiDir_": "imgui:1332", + "ImGuiDragDropFlags_": "imgui:1294", + "ImGuiFocusedFlags_": "imgui:1256", + "ImGuiHoveredFlags_": "imgui:1270", + "ImGuiIO": "imgui:1898", + "ImGuiInputTextCallbackData": "imgui:2071", + "ImGuiInputTextFlags_": "imgui:991", + "ImGuiKey": "imgui:1353", + "ImGuiKeyData": "imgui:1890", + "ImGuiListClipper": "imgui:2295", + "ImGuiMouseButton_": "imgui:1693", + "ImGuiMouseCursor_": "imgui:1703", + "ImGuiNavInput": "imgui:1485", + "ImGuiOnceUponAFrame": "imgui:2170", + "ImGuiPayload": "imgui:2111", + "ImGuiPlatformImeData": "imgui:2940", + "ImGuiPopupFlags_": "imgui:1052", + "ImGuiSelectableFlags_": "imgui:1068", + "ImGuiSizeCallbackData": "imgui:2102", + "ImGuiSliderFlags_": "imgui:1676", + "ImGuiSortDirection_": "imgui:1343", + "ImGuiStorage": "imgui:2232", + "ImGuiStoragePair": "imgui:2235", + "ImGuiStyle": "imgui:1833", + "ImGuiStyleVar_": "imgui:1585", + "ImGuiTabBarFlags_": "imgui:1093", + "ImGuiTabItemFlags_": "imgui:1109", + "ImGuiTableBgTarget_": "imgui:1247", + "ImGuiTableColumnFlags_": "imgui:1195", + "ImGuiTableColumnSortSpecs": "imgui:2133", + "ImGuiTableFlags_": "imgui:1144", + "ImGuiTableRowFlags_": "imgui:1232", + "ImGuiTableSortSpecs": "imgui:2147", + "ImGuiTextBuffer": "imgui:2205", + "ImGuiTextFilter": "imgui:2178", + "ImGuiTextRange": "imgui:2188", + "ImGuiTreeNodeFlags_": "imgui:1023", + "ImGuiViewport": "imgui:2917", + "ImGuiViewportFlags_": "imgui:2902", + "ImGuiWindowFlags_": "imgui:953", + "ImVec2": "imgui:253", + "ImVec4": "imgui:266" }, "structs": { "ImColor": [ @@ -2573,7 +3204,7 @@ }, { "name": "_Data", - "type": "const ImDrawListSharedData*" + "type": "ImDrawListSharedData*" }, { "name": "_OwnerName", @@ -3026,11 +3657,6 @@ "name": "MouseDragThreshold", "type": "float" }, - { - "name": "KeyMap[ImGuiKey_COUNT]", - "size": 22, - "type": "int" - }, { "name": "KeyRepeatDelay", "type": "float" @@ -3039,6 +3665,14 @@ "name": "KeyRepeatRate", "type": "float" }, + { + "name": "HoverDelayNormal", + "type": "float" + }, + { + "name": "HoverDelayShort", + "type": "float" + }, { "name": "UserData", "type": "void*" @@ -3071,10 +3705,18 @@ "name": "ConfigMacOSXBehaviors", "type": "bool" }, + { + "name": "ConfigInputTrickleEventQueue", + "type": "bool" + }, { "name": "ConfigInputTextCursorBlink", "type": "bool" }, + { + "name": "ConfigInputTextEnterKeepActive", + "type": "bool" + }, { "name": "ConfigDragClickToInputText", "type": "bool" @@ -3124,56 +3766,13 @@ "type": "void*" }, { - "name": "ImeSetInputScreenPosFn", - "type": "void(*)(int x,int y)" + "name": "SetPlatformImeDataFn", + "type": "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" }, { - "name": "ImeWindowHandle", + "name": "_UnusedPadding", "type": "void*" }, - { - "name": "MousePos", - "type": "ImVec2" - }, - { - "name": "MouseDown[5]", - "size": 5, - "type": "bool" - }, - { - "name": "MouseWheel", - "type": "float" - }, - { - "name": "MouseWheelH", - "type": "float" - }, - { - "name": "KeyCtrl", - "type": "bool" - }, - { - "name": "KeyShift", - "type": "bool" - }, - { - "name": "KeyAlt", - "type": "bool" - }, - { - "name": "KeySuper", - "type": "bool" - }, - { - "name": "KeysDown[512]", - "size": 512, - "type": "bool" - }, - { - "name": "NavInputs[ImGuiNavInput_COUNT]", - "size": 20, - "type": "float" - }, { "name": "WantCaptureMouse", "type": "bool" @@ -3231,16 +3830,65 @@ "type": "ImVec2" }, { - "name": "WantCaptureMouseUnlessPopupClose", + "name": "KeyMap[ImGuiKey_COUNT]", + "size": 652, + "type": "int" + }, + { + "name": "KeysDown[ImGuiKey_COUNT]", + "size": 652, + "type": "bool" + }, + { + "name": "NavInputs[ImGuiNavInput_COUNT]", + "size": 16, + "type": "float" + }, + { + "name": "MousePos", + "type": "ImVec2" + }, + { + "name": "MouseDown[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseWheel", + "type": "float" + }, + { + "name": "MouseWheelH", + "type": "float" + }, + { + "name": "KeyCtrl", + "type": "bool" + }, + { + "name": "KeyShift", + "type": "bool" + }, + { + "name": "KeyAlt", + "type": "bool" + }, + { + "name": "KeySuper", "type": "bool" }, { "name": "KeyMods", - "type": "ImGuiKeyModFlags" + "type": "ImGuiKeyChord" + }, + { + "name": "KeysData[ImGuiKey_KeysData_SIZE]", + "size": 652, + "type": "ImGuiKeyData" }, { - "name": "KeyModsPrev", - "type": "ImGuiKeyModFlags" + "name": "WantCaptureMouseUnlessPopupClose", + "type": "bool" }, { "name": "MousePosPrev", @@ -3301,42 +3949,29 @@ "size": 5, "type": "float" }, - { - "name": "MouseDragMaxDistanceAbs[5]", - "size": 5, - "type": "ImVec2" - }, { "name": "MouseDragMaxDistanceSqr[5]", "size": 5, "type": "float" }, { - "name": "KeysDownDuration[512]", - "size": 512, - "type": "float" - }, - { - "name": "KeysDownDurationPrev[512]", - "size": 512, + "name": "PenPressure", "type": "float" }, { - "name": "NavInputsDownDuration[ImGuiNavInput_COUNT]", - "size": 20, - "type": "float" + "name": "AppFocusLost", + "type": "bool" }, { - "name": "NavInputsDownDurationPrev[ImGuiNavInput_COUNT]", - "size": 20, - "type": "float" + "name": "AppAcceptingEvents", + "type": "bool" }, { - "name": "PenPressure", - "type": "float" + "name": "BackendUsingLegacyKeyArrays", + "type": "ImS8" }, { - "name": "AppFocusLost", + "name": "BackendUsingLegacyNavInputArray", "type": "bool" }, { @@ -3399,6 +4034,24 @@ "type": "int" } ], + "ImGuiKeyData": [ + { + "name": "Down", + "type": "bool" + }, + { + "name": "DownDuration", + "type": "float" + }, + { + "name": "DownDurationPrev", + "type": "float" + }, + { + "name": "AnalogValue", + "type": "float" + } + ], "ImGuiListClipper": [ { "name": "DisplayStart", @@ -3466,6 +4119,20 @@ "type": "bool" } ], + "ImGuiPlatformImeData": [ + { + "name": "WantVisible", + "type": "bool" + }, + { + "name": "InputPos", + "type": "ImVec2" + }, + { + "name": "InputLineHeight", + "type": "float" + } + ], "ImGuiSizeCallbackData": [ { "name": "UserData", @@ -3754,6 +4421,10 @@ { "name": "WorkSize", "type": "ImVec2" + }, + { + "name": "PlatformHandleRaw", + "type": "void*" } ], "ImVec2": [ diff --git a/imgui-sys/third-party/imgui-master/structs_and_enums.lua b/imgui-sys/third-party/imgui-master/structs_and_enums.lua index ffe103e56..27a78aff9 100644 --- a/imgui-sys/third-party/imgui-master/structs_and_enums.lua +++ b/imgui-sys/third-party/imgui-master/structs_and_enums.lua @@ -748,13 +748,29 @@ defs["enums"]["ImGuiHoveredFlags_"][9]["calc_value"] = 512 defs["enums"]["ImGuiHoveredFlags_"][9]["name"] = "ImGuiHoveredFlags_AllowWhenDisabled" defs["enums"]["ImGuiHoveredFlags_"][9]["value"] = "1 << 9" defs["enums"]["ImGuiHoveredFlags_"][10] = {} -defs["enums"]["ImGuiHoveredFlags_"][10]["calc_value"] = 416 -defs["enums"]["ImGuiHoveredFlags_"][10]["name"] = "ImGuiHoveredFlags_RectOnly" -defs["enums"]["ImGuiHoveredFlags_"][10]["value"] = "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped" +defs["enums"]["ImGuiHoveredFlags_"][10]["calc_value"] = 1024 +defs["enums"]["ImGuiHoveredFlags_"][10]["name"] = "ImGuiHoveredFlags_NoNavOverride" +defs["enums"]["ImGuiHoveredFlags_"][10]["value"] = "1 << 10" defs["enums"]["ImGuiHoveredFlags_"][11] = {} -defs["enums"]["ImGuiHoveredFlags_"][11]["calc_value"] = 3 -defs["enums"]["ImGuiHoveredFlags_"][11]["name"] = "ImGuiHoveredFlags_RootAndChildWindows" -defs["enums"]["ImGuiHoveredFlags_"][11]["value"] = "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][11]["calc_value"] = 416 +defs["enums"]["ImGuiHoveredFlags_"][11]["name"] = "ImGuiHoveredFlags_RectOnly" +defs["enums"]["ImGuiHoveredFlags_"][11]["value"] = "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped" +defs["enums"]["ImGuiHoveredFlags_"][12] = {} +defs["enums"]["ImGuiHoveredFlags_"][12]["calc_value"] = 3 +defs["enums"]["ImGuiHoveredFlags_"][12]["name"] = "ImGuiHoveredFlags_RootAndChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][12]["value"] = "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][13] = {} +defs["enums"]["ImGuiHoveredFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiHoveredFlags_"][13]["name"] = "ImGuiHoveredFlags_DelayNormal" +defs["enums"]["ImGuiHoveredFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiHoveredFlags_"][14] = {} +defs["enums"]["ImGuiHoveredFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiHoveredFlags_"][14]["name"] = "ImGuiHoveredFlags_DelayShort" +defs["enums"]["ImGuiHoveredFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiHoveredFlags_"][15] = {} +defs["enums"]["ImGuiHoveredFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiHoveredFlags_"][15]["name"] = "ImGuiHoveredFlags_NoSharedDelay" +defs["enums"]["ImGuiHoveredFlags_"][15]["value"] = "1 << 13" defs["enums"]["ImGuiInputTextFlags_"] = {} defs["enums"]["ImGuiInputTextFlags_"][1] = {} defs["enums"]["ImGuiInputTextFlags_"][1]["calc_value"] = 0 @@ -840,120 +856,627 @@ defs["enums"]["ImGuiInputTextFlags_"][21] = {} defs["enums"]["ImGuiInputTextFlags_"][21]["calc_value"] = 524288 defs["enums"]["ImGuiInputTextFlags_"][21]["name"] = "ImGuiInputTextFlags_CallbackEdit" defs["enums"]["ImGuiInputTextFlags_"][21]["value"] = "1 << 19" -defs["enums"]["ImGuiKeyModFlags_"] = {} -defs["enums"]["ImGuiKeyModFlags_"][1] = {} -defs["enums"]["ImGuiKeyModFlags_"][1]["calc_value"] = 0 -defs["enums"]["ImGuiKeyModFlags_"][1]["name"] = "ImGuiKeyModFlags_None" -defs["enums"]["ImGuiKeyModFlags_"][1]["value"] = "0" -defs["enums"]["ImGuiKeyModFlags_"][2] = {} -defs["enums"]["ImGuiKeyModFlags_"][2]["calc_value"] = 1 -defs["enums"]["ImGuiKeyModFlags_"][2]["name"] = "ImGuiKeyModFlags_Ctrl" -defs["enums"]["ImGuiKeyModFlags_"][2]["value"] = "1 << 0" -defs["enums"]["ImGuiKeyModFlags_"][3] = {} -defs["enums"]["ImGuiKeyModFlags_"][3]["calc_value"] = 2 -defs["enums"]["ImGuiKeyModFlags_"][3]["name"] = "ImGuiKeyModFlags_Shift" -defs["enums"]["ImGuiKeyModFlags_"][3]["value"] = "1 << 1" -defs["enums"]["ImGuiKeyModFlags_"][4] = {} -defs["enums"]["ImGuiKeyModFlags_"][4]["calc_value"] = 4 -defs["enums"]["ImGuiKeyModFlags_"][4]["name"] = "ImGuiKeyModFlags_Alt" -defs["enums"]["ImGuiKeyModFlags_"][4]["value"] = "1 << 2" -defs["enums"]["ImGuiKeyModFlags_"][5] = {} -defs["enums"]["ImGuiKeyModFlags_"][5]["calc_value"] = 8 -defs["enums"]["ImGuiKeyModFlags_"][5]["name"] = "ImGuiKeyModFlags_Super" -defs["enums"]["ImGuiKeyModFlags_"][5]["value"] = "1 << 3" -defs["enums"]["ImGuiKey_"] = {} -defs["enums"]["ImGuiKey_"][1] = {} -defs["enums"]["ImGuiKey_"][1]["calc_value"] = 0 -defs["enums"]["ImGuiKey_"][1]["name"] = "ImGuiKey_Tab" -defs["enums"]["ImGuiKey_"][1]["value"] = "0" -defs["enums"]["ImGuiKey_"][2] = {} -defs["enums"]["ImGuiKey_"][2]["calc_value"] = 1 -defs["enums"]["ImGuiKey_"][2]["name"] = "ImGuiKey_LeftArrow" -defs["enums"]["ImGuiKey_"][2]["value"] = "1" -defs["enums"]["ImGuiKey_"][3] = {} -defs["enums"]["ImGuiKey_"][3]["calc_value"] = 2 -defs["enums"]["ImGuiKey_"][3]["name"] = "ImGuiKey_RightArrow" -defs["enums"]["ImGuiKey_"][3]["value"] = "2" -defs["enums"]["ImGuiKey_"][4] = {} -defs["enums"]["ImGuiKey_"][4]["calc_value"] = 3 -defs["enums"]["ImGuiKey_"][4]["name"] = "ImGuiKey_UpArrow" -defs["enums"]["ImGuiKey_"][4]["value"] = "3" -defs["enums"]["ImGuiKey_"][5] = {} -defs["enums"]["ImGuiKey_"][5]["calc_value"] = 4 -defs["enums"]["ImGuiKey_"][5]["name"] = "ImGuiKey_DownArrow" -defs["enums"]["ImGuiKey_"][5]["value"] = "4" -defs["enums"]["ImGuiKey_"][6] = {} -defs["enums"]["ImGuiKey_"][6]["calc_value"] = 5 -defs["enums"]["ImGuiKey_"][6]["name"] = "ImGuiKey_PageUp" -defs["enums"]["ImGuiKey_"][6]["value"] = "5" -defs["enums"]["ImGuiKey_"][7] = {} -defs["enums"]["ImGuiKey_"][7]["calc_value"] = 6 -defs["enums"]["ImGuiKey_"][7]["name"] = "ImGuiKey_PageDown" -defs["enums"]["ImGuiKey_"][7]["value"] = "6" -defs["enums"]["ImGuiKey_"][8] = {} -defs["enums"]["ImGuiKey_"][8]["calc_value"] = 7 -defs["enums"]["ImGuiKey_"][8]["name"] = "ImGuiKey_Home" -defs["enums"]["ImGuiKey_"][8]["value"] = "7" -defs["enums"]["ImGuiKey_"][9] = {} -defs["enums"]["ImGuiKey_"][9]["calc_value"] = 8 -defs["enums"]["ImGuiKey_"][9]["name"] = "ImGuiKey_End" -defs["enums"]["ImGuiKey_"][9]["value"] = "8" -defs["enums"]["ImGuiKey_"][10] = {} -defs["enums"]["ImGuiKey_"][10]["calc_value"] = 9 -defs["enums"]["ImGuiKey_"][10]["name"] = "ImGuiKey_Insert" -defs["enums"]["ImGuiKey_"][10]["value"] = "9" -defs["enums"]["ImGuiKey_"][11] = {} -defs["enums"]["ImGuiKey_"][11]["calc_value"] = 10 -defs["enums"]["ImGuiKey_"][11]["name"] = "ImGuiKey_Delete" -defs["enums"]["ImGuiKey_"][11]["value"] = "10" -defs["enums"]["ImGuiKey_"][12] = {} -defs["enums"]["ImGuiKey_"][12]["calc_value"] = 11 -defs["enums"]["ImGuiKey_"][12]["name"] = "ImGuiKey_Backspace" -defs["enums"]["ImGuiKey_"][12]["value"] = "11" -defs["enums"]["ImGuiKey_"][13] = {} -defs["enums"]["ImGuiKey_"][13]["calc_value"] = 12 -defs["enums"]["ImGuiKey_"][13]["name"] = "ImGuiKey_Space" -defs["enums"]["ImGuiKey_"][13]["value"] = "12" -defs["enums"]["ImGuiKey_"][14] = {} -defs["enums"]["ImGuiKey_"][14]["calc_value"] = 13 -defs["enums"]["ImGuiKey_"][14]["name"] = "ImGuiKey_Enter" -defs["enums"]["ImGuiKey_"][14]["value"] = "13" -defs["enums"]["ImGuiKey_"][15] = {} -defs["enums"]["ImGuiKey_"][15]["calc_value"] = 14 -defs["enums"]["ImGuiKey_"][15]["name"] = "ImGuiKey_Escape" -defs["enums"]["ImGuiKey_"][15]["value"] = "14" -defs["enums"]["ImGuiKey_"][16] = {} -defs["enums"]["ImGuiKey_"][16]["calc_value"] = 15 -defs["enums"]["ImGuiKey_"][16]["name"] = "ImGuiKey_KeyPadEnter" -defs["enums"]["ImGuiKey_"][16]["value"] = "15" -defs["enums"]["ImGuiKey_"][17] = {} -defs["enums"]["ImGuiKey_"][17]["calc_value"] = 16 -defs["enums"]["ImGuiKey_"][17]["name"] = "ImGuiKey_A" -defs["enums"]["ImGuiKey_"][17]["value"] = "16" -defs["enums"]["ImGuiKey_"][18] = {} -defs["enums"]["ImGuiKey_"][18]["calc_value"] = 17 -defs["enums"]["ImGuiKey_"][18]["name"] = "ImGuiKey_C" -defs["enums"]["ImGuiKey_"][18]["value"] = "17" -defs["enums"]["ImGuiKey_"][19] = {} -defs["enums"]["ImGuiKey_"][19]["calc_value"] = 18 -defs["enums"]["ImGuiKey_"][19]["name"] = "ImGuiKey_V" -defs["enums"]["ImGuiKey_"][19]["value"] = "18" -defs["enums"]["ImGuiKey_"][20] = {} -defs["enums"]["ImGuiKey_"][20]["calc_value"] = 19 -defs["enums"]["ImGuiKey_"][20]["name"] = "ImGuiKey_X" -defs["enums"]["ImGuiKey_"][20]["value"] = "19" -defs["enums"]["ImGuiKey_"][21] = {} -defs["enums"]["ImGuiKey_"][21]["calc_value"] = 20 -defs["enums"]["ImGuiKey_"][21]["name"] = "ImGuiKey_Y" -defs["enums"]["ImGuiKey_"][21]["value"] = "20" -defs["enums"]["ImGuiKey_"][22] = {} -defs["enums"]["ImGuiKey_"][22]["calc_value"] = 21 -defs["enums"]["ImGuiKey_"][22]["name"] = "ImGuiKey_Z" -defs["enums"]["ImGuiKey_"][22]["value"] = "21" -defs["enums"]["ImGuiKey_"][23] = {} -defs["enums"]["ImGuiKey_"][23]["calc_value"] = 22 -defs["enums"]["ImGuiKey_"][23]["name"] = "ImGuiKey_COUNT" -defs["enums"]["ImGuiKey_"][23]["value"] = "22" +defs["enums"]["ImGuiInputTextFlags_"][22] = {} +defs["enums"]["ImGuiInputTextFlags_"][22]["calc_value"] = 1048576 +defs["enums"]["ImGuiInputTextFlags_"][22]["name"] = "ImGuiInputTextFlags_EscapeClearsAll" +defs["enums"]["ImGuiInputTextFlags_"][22]["value"] = "1 << 20" +defs["enums"]["ImGuiKey"] = {} +defs["enums"]["ImGuiKey"][1] = {} +defs["enums"]["ImGuiKey"][1]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][1]["name"] = "ImGuiKey_None" +defs["enums"]["ImGuiKey"][1]["value"] = "0" +defs["enums"]["ImGuiKey"][2] = {} +defs["enums"]["ImGuiKey"][2]["calc_value"] = 512 +defs["enums"]["ImGuiKey"][2]["name"] = "ImGuiKey_Tab" +defs["enums"]["ImGuiKey"][2]["value"] = "512" +defs["enums"]["ImGuiKey"][3] = {} +defs["enums"]["ImGuiKey"][3]["calc_value"] = 513 +defs["enums"]["ImGuiKey"][3]["name"] = "ImGuiKey_LeftArrow" +defs["enums"]["ImGuiKey"][3]["value"] = "513" +defs["enums"]["ImGuiKey"][4] = {} +defs["enums"]["ImGuiKey"][4]["calc_value"] = 514 +defs["enums"]["ImGuiKey"][4]["name"] = "ImGuiKey_RightArrow" +defs["enums"]["ImGuiKey"][4]["value"] = "514" +defs["enums"]["ImGuiKey"][5] = {} +defs["enums"]["ImGuiKey"][5]["calc_value"] = 515 +defs["enums"]["ImGuiKey"][5]["name"] = "ImGuiKey_UpArrow" +defs["enums"]["ImGuiKey"][5]["value"] = "515" +defs["enums"]["ImGuiKey"][6] = {} +defs["enums"]["ImGuiKey"][6]["calc_value"] = 516 +defs["enums"]["ImGuiKey"][6]["name"] = "ImGuiKey_DownArrow" +defs["enums"]["ImGuiKey"][6]["value"] = "516" +defs["enums"]["ImGuiKey"][7] = {} +defs["enums"]["ImGuiKey"][7]["calc_value"] = 517 +defs["enums"]["ImGuiKey"][7]["name"] = "ImGuiKey_PageUp" +defs["enums"]["ImGuiKey"][7]["value"] = "517" +defs["enums"]["ImGuiKey"][8] = {} +defs["enums"]["ImGuiKey"][8]["calc_value"] = 518 +defs["enums"]["ImGuiKey"][8]["name"] = "ImGuiKey_PageDown" +defs["enums"]["ImGuiKey"][8]["value"] = "518" +defs["enums"]["ImGuiKey"][9] = {} +defs["enums"]["ImGuiKey"][9]["calc_value"] = 519 +defs["enums"]["ImGuiKey"][9]["name"] = "ImGuiKey_Home" +defs["enums"]["ImGuiKey"][9]["value"] = "519" +defs["enums"]["ImGuiKey"][10] = {} +defs["enums"]["ImGuiKey"][10]["calc_value"] = 520 +defs["enums"]["ImGuiKey"][10]["name"] = "ImGuiKey_End" +defs["enums"]["ImGuiKey"][10]["value"] = "520" +defs["enums"]["ImGuiKey"][11] = {} +defs["enums"]["ImGuiKey"][11]["calc_value"] = 521 +defs["enums"]["ImGuiKey"][11]["name"] = "ImGuiKey_Insert" +defs["enums"]["ImGuiKey"][11]["value"] = "521" +defs["enums"]["ImGuiKey"][12] = {} +defs["enums"]["ImGuiKey"][12]["calc_value"] = 522 +defs["enums"]["ImGuiKey"][12]["name"] = "ImGuiKey_Delete" +defs["enums"]["ImGuiKey"][12]["value"] = "522" +defs["enums"]["ImGuiKey"][13] = {} +defs["enums"]["ImGuiKey"][13]["calc_value"] = 523 +defs["enums"]["ImGuiKey"][13]["name"] = "ImGuiKey_Backspace" +defs["enums"]["ImGuiKey"][13]["value"] = "523" +defs["enums"]["ImGuiKey"][14] = {} +defs["enums"]["ImGuiKey"][14]["calc_value"] = 524 +defs["enums"]["ImGuiKey"][14]["name"] = "ImGuiKey_Space" +defs["enums"]["ImGuiKey"][14]["value"] = "524" +defs["enums"]["ImGuiKey"][15] = {} +defs["enums"]["ImGuiKey"][15]["calc_value"] = 525 +defs["enums"]["ImGuiKey"][15]["name"] = "ImGuiKey_Enter" +defs["enums"]["ImGuiKey"][15]["value"] = "525" +defs["enums"]["ImGuiKey"][16] = {} +defs["enums"]["ImGuiKey"][16]["calc_value"] = 526 +defs["enums"]["ImGuiKey"][16]["name"] = "ImGuiKey_Escape" +defs["enums"]["ImGuiKey"][16]["value"] = "526" +defs["enums"]["ImGuiKey"][17] = {} +defs["enums"]["ImGuiKey"][17]["calc_value"] = 527 +defs["enums"]["ImGuiKey"][17]["name"] = "ImGuiKey_LeftCtrl" +defs["enums"]["ImGuiKey"][17]["value"] = "527" +defs["enums"]["ImGuiKey"][18] = {} +defs["enums"]["ImGuiKey"][18]["calc_value"] = 528 +defs["enums"]["ImGuiKey"][18]["name"] = "ImGuiKey_LeftShift" +defs["enums"]["ImGuiKey"][18]["value"] = "528" +defs["enums"]["ImGuiKey"][19] = {} +defs["enums"]["ImGuiKey"][19]["calc_value"] = 529 +defs["enums"]["ImGuiKey"][19]["name"] = "ImGuiKey_LeftAlt" +defs["enums"]["ImGuiKey"][19]["value"] = "529" +defs["enums"]["ImGuiKey"][20] = {} +defs["enums"]["ImGuiKey"][20]["calc_value"] = 530 +defs["enums"]["ImGuiKey"][20]["name"] = "ImGuiKey_LeftSuper" +defs["enums"]["ImGuiKey"][20]["value"] = "530" +defs["enums"]["ImGuiKey"][21] = {} +defs["enums"]["ImGuiKey"][21]["calc_value"] = 531 +defs["enums"]["ImGuiKey"][21]["name"] = "ImGuiKey_RightCtrl" +defs["enums"]["ImGuiKey"][21]["value"] = "531" +defs["enums"]["ImGuiKey"][22] = {} +defs["enums"]["ImGuiKey"][22]["calc_value"] = 532 +defs["enums"]["ImGuiKey"][22]["name"] = "ImGuiKey_RightShift" +defs["enums"]["ImGuiKey"][22]["value"] = "532" +defs["enums"]["ImGuiKey"][23] = {} +defs["enums"]["ImGuiKey"][23]["calc_value"] = 533 +defs["enums"]["ImGuiKey"][23]["name"] = "ImGuiKey_RightAlt" +defs["enums"]["ImGuiKey"][23]["value"] = "533" +defs["enums"]["ImGuiKey"][24] = {} +defs["enums"]["ImGuiKey"][24]["calc_value"] = 534 +defs["enums"]["ImGuiKey"][24]["name"] = "ImGuiKey_RightSuper" +defs["enums"]["ImGuiKey"][24]["value"] = "534" +defs["enums"]["ImGuiKey"][25] = {} +defs["enums"]["ImGuiKey"][25]["calc_value"] = 535 +defs["enums"]["ImGuiKey"][25]["name"] = "ImGuiKey_Menu" +defs["enums"]["ImGuiKey"][25]["value"] = "535" +defs["enums"]["ImGuiKey"][26] = {} +defs["enums"]["ImGuiKey"][26]["calc_value"] = 536 +defs["enums"]["ImGuiKey"][26]["name"] = "ImGuiKey_0" +defs["enums"]["ImGuiKey"][26]["value"] = "536" +defs["enums"]["ImGuiKey"][27] = {} +defs["enums"]["ImGuiKey"][27]["calc_value"] = 537 +defs["enums"]["ImGuiKey"][27]["name"] = "ImGuiKey_1" +defs["enums"]["ImGuiKey"][27]["value"] = "537" +defs["enums"]["ImGuiKey"][28] = {} +defs["enums"]["ImGuiKey"][28]["calc_value"] = 538 +defs["enums"]["ImGuiKey"][28]["name"] = "ImGuiKey_2" +defs["enums"]["ImGuiKey"][28]["value"] = "538" +defs["enums"]["ImGuiKey"][29] = {} +defs["enums"]["ImGuiKey"][29]["calc_value"] = 539 +defs["enums"]["ImGuiKey"][29]["name"] = "ImGuiKey_3" +defs["enums"]["ImGuiKey"][29]["value"] = "539" +defs["enums"]["ImGuiKey"][30] = {} +defs["enums"]["ImGuiKey"][30]["calc_value"] = 540 +defs["enums"]["ImGuiKey"][30]["name"] = "ImGuiKey_4" +defs["enums"]["ImGuiKey"][30]["value"] = "540" +defs["enums"]["ImGuiKey"][31] = {} +defs["enums"]["ImGuiKey"][31]["calc_value"] = 541 +defs["enums"]["ImGuiKey"][31]["name"] = "ImGuiKey_5" +defs["enums"]["ImGuiKey"][31]["value"] = "541" +defs["enums"]["ImGuiKey"][32] = {} +defs["enums"]["ImGuiKey"][32]["calc_value"] = 542 +defs["enums"]["ImGuiKey"][32]["name"] = "ImGuiKey_6" +defs["enums"]["ImGuiKey"][32]["value"] = "542" +defs["enums"]["ImGuiKey"][33] = {} +defs["enums"]["ImGuiKey"][33]["calc_value"] = 543 +defs["enums"]["ImGuiKey"][33]["name"] = "ImGuiKey_7" +defs["enums"]["ImGuiKey"][33]["value"] = "543" +defs["enums"]["ImGuiKey"][34] = {} +defs["enums"]["ImGuiKey"][34]["calc_value"] = 544 +defs["enums"]["ImGuiKey"][34]["name"] = "ImGuiKey_8" +defs["enums"]["ImGuiKey"][34]["value"] = "544" +defs["enums"]["ImGuiKey"][35] = {} +defs["enums"]["ImGuiKey"][35]["calc_value"] = 545 +defs["enums"]["ImGuiKey"][35]["name"] = "ImGuiKey_9" +defs["enums"]["ImGuiKey"][35]["value"] = "545" +defs["enums"]["ImGuiKey"][36] = {} +defs["enums"]["ImGuiKey"][36]["calc_value"] = 546 +defs["enums"]["ImGuiKey"][36]["name"] = "ImGuiKey_A" +defs["enums"]["ImGuiKey"][36]["value"] = "546" +defs["enums"]["ImGuiKey"][37] = {} +defs["enums"]["ImGuiKey"][37]["calc_value"] = 547 +defs["enums"]["ImGuiKey"][37]["name"] = "ImGuiKey_B" +defs["enums"]["ImGuiKey"][37]["value"] = "547" +defs["enums"]["ImGuiKey"][38] = {} +defs["enums"]["ImGuiKey"][38]["calc_value"] = 548 +defs["enums"]["ImGuiKey"][38]["name"] = "ImGuiKey_C" +defs["enums"]["ImGuiKey"][38]["value"] = "548" +defs["enums"]["ImGuiKey"][39] = {} +defs["enums"]["ImGuiKey"][39]["calc_value"] = 549 +defs["enums"]["ImGuiKey"][39]["name"] = "ImGuiKey_D" +defs["enums"]["ImGuiKey"][39]["value"] = "549" +defs["enums"]["ImGuiKey"][40] = {} +defs["enums"]["ImGuiKey"][40]["calc_value"] = 550 +defs["enums"]["ImGuiKey"][40]["name"] = "ImGuiKey_E" +defs["enums"]["ImGuiKey"][40]["value"] = "550" +defs["enums"]["ImGuiKey"][41] = {} +defs["enums"]["ImGuiKey"][41]["calc_value"] = 551 +defs["enums"]["ImGuiKey"][41]["name"] = "ImGuiKey_F" +defs["enums"]["ImGuiKey"][41]["value"] = "551" +defs["enums"]["ImGuiKey"][42] = {} +defs["enums"]["ImGuiKey"][42]["calc_value"] = 552 +defs["enums"]["ImGuiKey"][42]["name"] = "ImGuiKey_G" +defs["enums"]["ImGuiKey"][42]["value"] = "552" +defs["enums"]["ImGuiKey"][43] = {} +defs["enums"]["ImGuiKey"][43]["calc_value"] = 553 +defs["enums"]["ImGuiKey"][43]["name"] = "ImGuiKey_H" +defs["enums"]["ImGuiKey"][43]["value"] = "553" +defs["enums"]["ImGuiKey"][44] = {} +defs["enums"]["ImGuiKey"][44]["calc_value"] = 554 +defs["enums"]["ImGuiKey"][44]["name"] = "ImGuiKey_I" +defs["enums"]["ImGuiKey"][44]["value"] = "554" +defs["enums"]["ImGuiKey"][45] = {} +defs["enums"]["ImGuiKey"][45]["calc_value"] = 555 +defs["enums"]["ImGuiKey"][45]["name"] = "ImGuiKey_J" +defs["enums"]["ImGuiKey"][45]["value"] = "555" +defs["enums"]["ImGuiKey"][46] = {} +defs["enums"]["ImGuiKey"][46]["calc_value"] = 556 +defs["enums"]["ImGuiKey"][46]["name"] = "ImGuiKey_K" +defs["enums"]["ImGuiKey"][46]["value"] = "556" +defs["enums"]["ImGuiKey"][47] = {} +defs["enums"]["ImGuiKey"][47]["calc_value"] = 557 +defs["enums"]["ImGuiKey"][47]["name"] = "ImGuiKey_L" +defs["enums"]["ImGuiKey"][47]["value"] = "557" +defs["enums"]["ImGuiKey"][48] = {} +defs["enums"]["ImGuiKey"][48]["calc_value"] = 558 +defs["enums"]["ImGuiKey"][48]["name"] = "ImGuiKey_M" +defs["enums"]["ImGuiKey"][48]["value"] = "558" +defs["enums"]["ImGuiKey"][49] = {} +defs["enums"]["ImGuiKey"][49]["calc_value"] = 559 +defs["enums"]["ImGuiKey"][49]["name"] = "ImGuiKey_N" +defs["enums"]["ImGuiKey"][49]["value"] = "559" +defs["enums"]["ImGuiKey"][50] = {} +defs["enums"]["ImGuiKey"][50]["calc_value"] = 560 +defs["enums"]["ImGuiKey"][50]["name"] = "ImGuiKey_O" +defs["enums"]["ImGuiKey"][50]["value"] = "560" +defs["enums"]["ImGuiKey"][51] = {} +defs["enums"]["ImGuiKey"][51]["calc_value"] = 561 +defs["enums"]["ImGuiKey"][51]["name"] = "ImGuiKey_P" +defs["enums"]["ImGuiKey"][51]["value"] = "561" +defs["enums"]["ImGuiKey"][52] = {} +defs["enums"]["ImGuiKey"][52]["calc_value"] = 562 +defs["enums"]["ImGuiKey"][52]["name"] = "ImGuiKey_Q" +defs["enums"]["ImGuiKey"][52]["value"] = "562" +defs["enums"]["ImGuiKey"][53] = {} +defs["enums"]["ImGuiKey"][53]["calc_value"] = 563 +defs["enums"]["ImGuiKey"][53]["name"] = "ImGuiKey_R" +defs["enums"]["ImGuiKey"][53]["value"] = "563" +defs["enums"]["ImGuiKey"][54] = {} +defs["enums"]["ImGuiKey"][54]["calc_value"] = 564 +defs["enums"]["ImGuiKey"][54]["name"] = "ImGuiKey_S" +defs["enums"]["ImGuiKey"][54]["value"] = "564" +defs["enums"]["ImGuiKey"][55] = {} +defs["enums"]["ImGuiKey"][55]["calc_value"] = 565 +defs["enums"]["ImGuiKey"][55]["name"] = "ImGuiKey_T" +defs["enums"]["ImGuiKey"][55]["value"] = "565" +defs["enums"]["ImGuiKey"][56] = {} +defs["enums"]["ImGuiKey"][56]["calc_value"] = 566 +defs["enums"]["ImGuiKey"][56]["name"] = "ImGuiKey_U" +defs["enums"]["ImGuiKey"][56]["value"] = "566" +defs["enums"]["ImGuiKey"][57] = {} +defs["enums"]["ImGuiKey"][57]["calc_value"] = 567 +defs["enums"]["ImGuiKey"][57]["name"] = "ImGuiKey_V" +defs["enums"]["ImGuiKey"][57]["value"] = "567" +defs["enums"]["ImGuiKey"][58] = {} +defs["enums"]["ImGuiKey"][58]["calc_value"] = 568 +defs["enums"]["ImGuiKey"][58]["name"] = "ImGuiKey_W" +defs["enums"]["ImGuiKey"][58]["value"] = "568" +defs["enums"]["ImGuiKey"][59] = {} +defs["enums"]["ImGuiKey"][59]["calc_value"] = 569 +defs["enums"]["ImGuiKey"][59]["name"] = "ImGuiKey_X" +defs["enums"]["ImGuiKey"][59]["value"] = "569" +defs["enums"]["ImGuiKey"][60] = {} +defs["enums"]["ImGuiKey"][60]["calc_value"] = 570 +defs["enums"]["ImGuiKey"][60]["name"] = "ImGuiKey_Y" +defs["enums"]["ImGuiKey"][60]["value"] = "570" +defs["enums"]["ImGuiKey"][61] = {} +defs["enums"]["ImGuiKey"][61]["calc_value"] = 571 +defs["enums"]["ImGuiKey"][61]["name"] = "ImGuiKey_Z" +defs["enums"]["ImGuiKey"][61]["value"] = "571" +defs["enums"]["ImGuiKey"][62] = {} +defs["enums"]["ImGuiKey"][62]["calc_value"] = 572 +defs["enums"]["ImGuiKey"][62]["name"] = "ImGuiKey_F1" +defs["enums"]["ImGuiKey"][62]["value"] = "572" +defs["enums"]["ImGuiKey"][63] = {} +defs["enums"]["ImGuiKey"][63]["calc_value"] = 573 +defs["enums"]["ImGuiKey"][63]["name"] = "ImGuiKey_F2" +defs["enums"]["ImGuiKey"][63]["value"] = "573" +defs["enums"]["ImGuiKey"][64] = {} +defs["enums"]["ImGuiKey"][64]["calc_value"] = 574 +defs["enums"]["ImGuiKey"][64]["name"] = "ImGuiKey_F3" +defs["enums"]["ImGuiKey"][64]["value"] = "574" +defs["enums"]["ImGuiKey"][65] = {} +defs["enums"]["ImGuiKey"][65]["calc_value"] = 575 +defs["enums"]["ImGuiKey"][65]["name"] = "ImGuiKey_F4" +defs["enums"]["ImGuiKey"][65]["value"] = "575" +defs["enums"]["ImGuiKey"][66] = {} +defs["enums"]["ImGuiKey"][66]["calc_value"] = 576 +defs["enums"]["ImGuiKey"][66]["name"] = "ImGuiKey_F5" +defs["enums"]["ImGuiKey"][66]["value"] = "576" +defs["enums"]["ImGuiKey"][67] = {} +defs["enums"]["ImGuiKey"][67]["calc_value"] = 577 +defs["enums"]["ImGuiKey"][67]["name"] = "ImGuiKey_F6" +defs["enums"]["ImGuiKey"][67]["value"] = "577" +defs["enums"]["ImGuiKey"][68] = {} +defs["enums"]["ImGuiKey"][68]["calc_value"] = 578 +defs["enums"]["ImGuiKey"][68]["name"] = "ImGuiKey_F7" +defs["enums"]["ImGuiKey"][68]["value"] = "578" +defs["enums"]["ImGuiKey"][69] = {} +defs["enums"]["ImGuiKey"][69]["calc_value"] = 579 +defs["enums"]["ImGuiKey"][69]["name"] = "ImGuiKey_F8" +defs["enums"]["ImGuiKey"][69]["value"] = "579" +defs["enums"]["ImGuiKey"][70] = {} +defs["enums"]["ImGuiKey"][70]["calc_value"] = 580 +defs["enums"]["ImGuiKey"][70]["name"] = "ImGuiKey_F9" +defs["enums"]["ImGuiKey"][70]["value"] = "580" +defs["enums"]["ImGuiKey"][71] = {} +defs["enums"]["ImGuiKey"][71]["calc_value"] = 581 +defs["enums"]["ImGuiKey"][71]["name"] = "ImGuiKey_F10" +defs["enums"]["ImGuiKey"][71]["value"] = "581" +defs["enums"]["ImGuiKey"][72] = {} +defs["enums"]["ImGuiKey"][72]["calc_value"] = 582 +defs["enums"]["ImGuiKey"][72]["name"] = "ImGuiKey_F11" +defs["enums"]["ImGuiKey"][72]["value"] = "582" +defs["enums"]["ImGuiKey"][73] = {} +defs["enums"]["ImGuiKey"][73]["calc_value"] = 583 +defs["enums"]["ImGuiKey"][73]["name"] = "ImGuiKey_F12" +defs["enums"]["ImGuiKey"][73]["value"] = "583" +defs["enums"]["ImGuiKey"][74] = {} +defs["enums"]["ImGuiKey"][74]["calc_value"] = 584 +defs["enums"]["ImGuiKey"][74]["name"] = "ImGuiKey_Apostrophe" +defs["enums"]["ImGuiKey"][74]["value"] = "584" +defs["enums"]["ImGuiKey"][75] = {} +defs["enums"]["ImGuiKey"][75]["calc_value"] = 585 +defs["enums"]["ImGuiKey"][75]["name"] = "ImGuiKey_Comma" +defs["enums"]["ImGuiKey"][75]["value"] = "585" +defs["enums"]["ImGuiKey"][76] = {} +defs["enums"]["ImGuiKey"][76]["calc_value"] = 586 +defs["enums"]["ImGuiKey"][76]["name"] = "ImGuiKey_Minus" +defs["enums"]["ImGuiKey"][76]["value"] = "586" +defs["enums"]["ImGuiKey"][77] = {} +defs["enums"]["ImGuiKey"][77]["calc_value"] = 587 +defs["enums"]["ImGuiKey"][77]["name"] = "ImGuiKey_Period" +defs["enums"]["ImGuiKey"][77]["value"] = "587" +defs["enums"]["ImGuiKey"][78] = {} +defs["enums"]["ImGuiKey"][78]["calc_value"] = 588 +defs["enums"]["ImGuiKey"][78]["name"] = "ImGuiKey_Slash" +defs["enums"]["ImGuiKey"][78]["value"] = "588" +defs["enums"]["ImGuiKey"][79] = {} +defs["enums"]["ImGuiKey"][79]["calc_value"] = 589 +defs["enums"]["ImGuiKey"][79]["name"] = "ImGuiKey_Semicolon" +defs["enums"]["ImGuiKey"][79]["value"] = "589" +defs["enums"]["ImGuiKey"][80] = {} +defs["enums"]["ImGuiKey"][80]["calc_value"] = 590 +defs["enums"]["ImGuiKey"][80]["name"] = "ImGuiKey_Equal" +defs["enums"]["ImGuiKey"][80]["value"] = "590" +defs["enums"]["ImGuiKey"][81] = {} +defs["enums"]["ImGuiKey"][81]["calc_value"] = 591 +defs["enums"]["ImGuiKey"][81]["name"] = "ImGuiKey_LeftBracket" +defs["enums"]["ImGuiKey"][81]["value"] = "591" +defs["enums"]["ImGuiKey"][82] = {} +defs["enums"]["ImGuiKey"][82]["calc_value"] = 592 +defs["enums"]["ImGuiKey"][82]["name"] = "ImGuiKey_Backslash" +defs["enums"]["ImGuiKey"][82]["value"] = "592" +defs["enums"]["ImGuiKey"][83] = {} +defs["enums"]["ImGuiKey"][83]["calc_value"] = 593 +defs["enums"]["ImGuiKey"][83]["name"] = "ImGuiKey_RightBracket" +defs["enums"]["ImGuiKey"][83]["value"] = "593" +defs["enums"]["ImGuiKey"][84] = {} +defs["enums"]["ImGuiKey"][84]["calc_value"] = 594 +defs["enums"]["ImGuiKey"][84]["name"] = "ImGuiKey_GraveAccent" +defs["enums"]["ImGuiKey"][84]["value"] = "594" +defs["enums"]["ImGuiKey"][85] = {} +defs["enums"]["ImGuiKey"][85]["calc_value"] = 595 +defs["enums"]["ImGuiKey"][85]["name"] = "ImGuiKey_CapsLock" +defs["enums"]["ImGuiKey"][85]["value"] = "595" +defs["enums"]["ImGuiKey"][86] = {} +defs["enums"]["ImGuiKey"][86]["calc_value"] = 596 +defs["enums"]["ImGuiKey"][86]["name"] = "ImGuiKey_ScrollLock" +defs["enums"]["ImGuiKey"][86]["value"] = "596" +defs["enums"]["ImGuiKey"][87] = {} +defs["enums"]["ImGuiKey"][87]["calc_value"] = 597 +defs["enums"]["ImGuiKey"][87]["name"] = "ImGuiKey_NumLock" +defs["enums"]["ImGuiKey"][87]["value"] = "597" +defs["enums"]["ImGuiKey"][88] = {} +defs["enums"]["ImGuiKey"][88]["calc_value"] = 598 +defs["enums"]["ImGuiKey"][88]["name"] = "ImGuiKey_PrintScreen" +defs["enums"]["ImGuiKey"][88]["value"] = "598" +defs["enums"]["ImGuiKey"][89] = {} +defs["enums"]["ImGuiKey"][89]["calc_value"] = 599 +defs["enums"]["ImGuiKey"][89]["name"] = "ImGuiKey_Pause" +defs["enums"]["ImGuiKey"][89]["value"] = "599" +defs["enums"]["ImGuiKey"][90] = {} +defs["enums"]["ImGuiKey"][90]["calc_value"] = 600 +defs["enums"]["ImGuiKey"][90]["name"] = "ImGuiKey_Keypad0" +defs["enums"]["ImGuiKey"][90]["value"] = "600" +defs["enums"]["ImGuiKey"][91] = {} +defs["enums"]["ImGuiKey"][91]["calc_value"] = 601 +defs["enums"]["ImGuiKey"][91]["name"] = "ImGuiKey_Keypad1" +defs["enums"]["ImGuiKey"][91]["value"] = "601" +defs["enums"]["ImGuiKey"][92] = {} +defs["enums"]["ImGuiKey"][92]["calc_value"] = 602 +defs["enums"]["ImGuiKey"][92]["name"] = "ImGuiKey_Keypad2" +defs["enums"]["ImGuiKey"][92]["value"] = "602" +defs["enums"]["ImGuiKey"][93] = {} +defs["enums"]["ImGuiKey"][93]["calc_value"] = 603 +defs["enums"]["ImGuiKey"][93]["name"] = "ImGuiKey_Keypad3" +defs["enums"]["ImGuiKey"][93]["value"] = "603" +defs["enums"]["ImGuiKey"][94] = {} +defs["enums"]["ImGuiKey"][94]["calc_value"] = 604 +defs["enums"]["ImGuiKey"][94]["name"] = "ImGuiKey_Keypad4" +defs["enums"]["ImGuiKey"][94]["value"] = "604" +defs["enums"]["ImGuiKey"][95] = {} +defs["enums"]["ImGuiKey"][95]["calc_value"] = 605 +defs["enums"]["ImGuiKey"][95]["name"] = "ImGuiKey_Keypad5" +defs["enums"]["ImGuiKey"][95]["value"] = "605" +defs["enums"]["ImGuiKey"][96] = {} +defs["enums"]["ImGuiKey"][96]["calc_value"] = 606 +defs["enums"]["ImGuiKey"][96]["name"] = "ImGuiKey_Keypad6" +defs["enums"]["ImGuiKey"][96]["value"] = "606" +defs["enums"]["ImGuiKey"][97] = {} +defs["enums"]["ImGuiKey"][97]["calc_value"] = 607 +defs["enums"]["ImGuiKey"][97]["name"] = "ImGuiKey_Keypad7" +defs["enums"]["ImGuiKey"][97]["value"] = "607" +defs["enums"]["ImGuiKey"][98] = {} +defs["enums"]["ImGuiKey"][98]["calc_value"] = 608 +defs["enums"]["ImGuiKey"][98]["name"] = "ImGuiKey_Keypad8" +defs["enums"]["ImGuiKey"][98]["value"] = "608" +defs["enums"]["ImGuiKey"][99] = {} +defs["enums"]["ImGuiKey"][99]["calc_value"] = 609 +defs["enums"]["ImGuiKey"][99]["name"] = "ImGuiKey_Keypad9" +defs["enums"]["ImGuiKey"][99]["value"] = "609" +defs["enums"]["ImGuiKey"][100] = {} +defs["enums"]["ImGuiKey"][100]["calc_value"] = 610 +defs["enums"]["ImGuiKey"][100]["name"] = "ImGuiKey_KeypadDecimal" +defs["enums"]["ImGuiKey"][100]["value"] = "610" +defs["enums"]["ImGuiKey"][101] = {} +defs["enums"]["ImGuiKey"][101]["calc_value"] = 611 +defs["enums"]["ImGuiKey"][101]["name"] = "ImGuiKey_KeypadDivide" +defs["enums"]["ImGuiKey"][101]["value"] = "611" +defs["enums"]["ImGuiKey"][102] = {} +defs["enums"]["ImGuiKey"][102]["calc_value"] = 612 +defs["enums"]["ImGuiKey"][102]["name"] = "ImGuiKey_KeypadMultiply" +defs["enums"]["ImGuiKey"][102]["value"] = "612" +defs["enums"]["ImGuiKey"][103] = {} +defs["enums"]["ImGuiKey"][103]["calc_value"] = 613 +defs["enums"]["ImGuiKey"][103]["name"] = "ImGuiKey_KeypadSubtract" +defs["enums"]["ImGuiKey"][103]["value"] = "613" +defs["enums"]["ImGuiKey"][104] = {} +defs["enums"]["ImGuiKey"][104]["calc_value"] = 614 +defs["enums"]["ImGuiKey"][104]["name"] = "ImGuiKey_KeypadAdd" +defs["enums"]["ImGuiKey"][104]["value"] = "614" +defs["enums"]["ImGuiKey"][105] = {} +defs["enums"]["ImGuiKey"][105]["calc_value"] = 615 +defs["enums"]["ImGuiKey"][105]["name"] = "ImGuiKey_KeypadEnter" +defs["enums"]["ImGuiKey"][105]["value"] = "615" +defs["enums"]["ImGuiKey"][106] = {} +defs["enums"]["ImGuiKey"][106]["calc_value"] = 616 +defs["enums"]["ImGuiKey"][106]["name"] = "ImGuiKey_KeypadEqual" +defs["enums"]["ImGuiKey"][106]["value"] = "616" +defs["enums"]["ImGuiKey"][107] = {} +defs["enums"]["ImGuiKey"][107]["calc_value"] = 617 +defs["enums"]["ImGuiKey"][107]["name"] = "ImGuiKey_GamepadStart" +defs["enums"]["ImGuiKey"][107]["value"] = "617" +defs["enums"]["ImGuiKey"][108] = {} +defs["enums"]["ImGuiKey"][108]["calc_value"] = 618 +defs["enums"]["ImGuiKey"][108]["name"] = "ImGuiKey_GamepadBack" +defs["enums"]["ImGuiKey"][108]["value"] = "618" +defs["enums"]["ImGuiKey"][109] = {} +defs["enums"]["ImGuiKey"][109]["calc_value"] = 619 +defs["enums"]["ImGuiKey"][109]["name"] = "ImGuiKey_GamepadFaceLeft" +defs["enums"]["ImGuiKey"][109]["value"] = "619" +defs["enums"]["ImGuiKey"][110] = {} +defs["enums"]["ImGuiKey"][110]["calc_value"] = 620 +defs["enums"]["ImGuiKey"][110]["name"] = "ImGuiKey_GamepadFaceRight" +defs["enums"]["ImGuiKey"][110]["value"] = "620" +defs["enums"]["ImGuiKey"][111] = {} +defs["enums"]["ImGuiKey"][111]["calc_value"] = 621 +defs["enums"]["ImGuiKey"][111]["name"] = "ImGuiKey_GamepadFaceUp" +defs["enums"]["ImGuiKey"][111]["value"] = "621" +defs["enums"]["ImGuiKey"][112] = {} +defs["enums"]["ImGuiKey"][112]["calc_value"] = 622 +defs["enums"]["ImGuiKey"][112]["name"] = "ImGuiKey_GamepadFaceDown" +defs["enums"]["ImGuiKey"][112]["value"] = "622" +defs["enums"]["ImGuiKey"][113] = {} +defs["enums"]["ImGuiKey"][113]["calc_value"] = 623 +defs["enums"]["ImGuiKey"][113]["name"] = "ImGuiKey_GamepadDpadLeft" +defs["enums"]["ImGuiKey"][113]["value"] = "623" +defs["enums"]["ImGuiKey"][114] = {} +defs["enums"]["ImGuiKey"][114]["calc_value"] = 624 +defs["enums"]["ImGuiKey"][114]["name"] = "ImGuiKey_GamepadDpadRight" +defs["enums"]["ImGuiKey"][114]["value"] = "624" +defs["enums"]["ImGuiKey"][115] = {} +defs["enums"]["ImGuiKey"][115]["calc_value"] = 625 +defs["enums"]["ImGuiKey"][115]["name"] = "ImGuiKey_GamepadDpadUp" +defs["enums"]["ImGuiKey"][115]["value"] = "625" +defs["enums"]["ImGuiKey"][116] = {} +defs["enums"]["ImGuiKey"][116]["calc_value"] = 626 +defs["enums"]["ImGuiKey"][116]["name"] = "ImGuiKey_GamepadDpadDown" +defs["enums"]["ImGuiKey"][116]["value"] = "626" +defs["enums"]["ImGuiKey"][117] = {} +defs["enums"]["ImGuiKey"][117]["calc_value"] = 627 +defs["enums"]["ImGuiKey"][117]["name"] = "ImGuiKey_GamepadL1" +defs["enums"]["ImGuiKey"][117]["value"] = "627" +defs["enums"]["ImGuiKey"][118] = {} +defs["enums"]["ImGuiKey"][118]["calc_value"] = 628 +defs["enums"]["ImGuiKey"][118]["name"] = "ImGuiKey_GamepadR1" +defs["enums"]["ImGuiKey"][118]["value"] = "628" +defs["enums"]["ImGuiKey"][119] = {} +defs["enums"]["ImGuiKey"][119]["calc_value"] = 629 +defs["enums"]["ImGuiKey"][119]["name"] = "ImGuiKey_GamepadL2" +defs["enums"]["ImGuiKey"][119]["value"] = "629" +defs["enums"]["ImGuiKey"][120] = {} +defs["enums"]["ImGuiKey"][120]["calc_value"] = 630 +defs["enums"]["ImGuiKey"][120]["name"] = "ImGuiKey_GamepadR2" +defs["enums"]["ImGuiKey"][120]["value"] = "630" +defs["enums"]["ImGuiKey"][121] = {} +defs["enums"]["ImGuiKey"][121]["calc_value"] = 631 +defs["enums"]["ImGuiKey"][121]["name"] = "ImGuiKey_GamepadL3" +defs["enums"]["ImGuiKey"][121]["value"] = "631" +defs["enums"]["ImGuiKey"][122] = {} +defs["enums"]["ImGuiKey"][122]["calc_value"] = 632 +defs["enums"]["ImGuiKey"][122]["name"] = "ImGuiKey_GamepadR3" +defs["enums"]["ImGuiKey"][122]["value"] = "632" +defs["enums"]["ImGuiKey"][123] = {} +defs["enums"]["ImGuiKey"][123]["calc_value"] = 633 +defs["enums"]["ImGuiKey"][123]["name"] = "ImGuiKey_GamepadLStickLeft" +defs["enums"]["ImGuiKey"][123]["value"] = "633" +defs["enums"]["ImGuiKey"][124] = {} +defs["enums"]["ImGuiKey"][124]["calc_value"] = 634 +defs["enums"]["ImGuiKey"][124]["name"] = "ImGuiKey_GamepadLStickRight" +defs["enums"]["ImGuiKey"][124]["value"] = "634" +defs["enums"]["ImGuiKey"][125] = {} +defs["enums"]["ImGuiKey"][125]["calc_value"] = 635 +defs["enums"]["ImGuiKey"][125]["name"] = "ImGuiKey_GamepadLStickUp" +defs["enums"]["ImGuiKey"][125]["value"] = "635" +defs["enums"]["ImGuiKey"][126] = {} +defs["enums"]["ImGuiKey"][126]["calc_value"] = 636 +defs["enums"]["ImGuiKey"][126]["name"] = "ImGuiKey_GamepadLStickDown" +defs["enums"]["ImGuiKey"][126]["value"] = "636" +defs["enums"]["ImGuiKey"][127] = {} +defs["enums"]["ImGuiKey"][127]["calc_value"] = 637 +defs["enums"]["ImGuiKey"][127]["name"] = "ImGuiKey_GamepadRStickLeft" +defs["enums"]["ImGuiKey"][127]["value"] = "637" +defs["enums"]["ImGuiKey"][128] = {} +defs["enums"]["ImGuiKey"][128]["calc_value"] = 638 +defs["enums"]["ImGuiKey"][128]["name"] = "ImGuiKey_GamepadRStickRight" +defs["enums"]["ImGuiKey"][128]["value"] = "638" +defs["enums"]["ImGuiKey"][129] = {} +defs["enums"]["ImGuiKey"][129]["calc_value"] = 639 +defs["enums"]["ImGuiKey"][129]["name"] = "ImGuiKey_GamepadRStickUp" +defs["enums"]["ImGuiKey"][129]["value"] = "639" +defs["enums"]["ImGuiKey"][130] = {} +defs["enums"]["ImGuiKey"][130]["calc_value"] = 640 +defs["enums"]["ImGuiKey"][130]["name"] = "ImGuiKey_GamepadRStickDown" +defs["enums"]["ImGuiKey"][130]["value"] = "640" +defs["enums"]["ImGuiKey"][131] = {} +defs["enums"]["ImGuiKey"][131]["calc_value"] = 641 +defs["enums"]["ImGuiKey"][131]["name"] = "ImGuiKey_MouseLeft" +defs["enums"]["ImGuiKey"][131]["value"] = "641" +defs["enums"]["ImGuiKey"][132] = {} +defs["enums"]["ImGuiKey"][132]["calc_value"] = 642 +defs["enums"]["ImGuiKey"][132]["name"] = "ImGuiKey_MouseRight" +defs["enums"]["ImGuiKey"][132]["value"] = "642" +defs["enums"]["ImGuiKey"][133] = {} +defs["enums"]["ImGuiKey"][133]["calc_value"] = 643 +defs["enums"]["ImGuiKey"][133]["name"] = "ImGuiKey_MouseMiddle" +defs["enums"]["ImGuiKey"][133]["value"] = "643" +defs["enums"]["ImGuiKey"][134] = {} +defs["enums"]["ImGuiKey"][134]["calc_value"] = 644 +defs["enums"]["ImGuiKey"][134]["name"] = "ImGuiKey_MouseX1" +defs["enums"]["ImGuiKey"][134]["value"] = "644" +defs["enums"]["ImGuiKey"][135] = {} +defs["enums"]["ImGuiKey"][135]["calc_value"] = 645 +defs["enums"]["ImGuiKey"][135]["name"] = "ImGuiKey_MouseX2" +defs["enums"]["ImGuiKey"][135]["value"] = "645" +defs["enums"]["ImGuiKey"][136] = {} +defs["enums"]["ImGuiKey"][136]["calc_value"] = 646 +defs["enums"]["ImGuiKey"][136]["name"] = "ImGuiKey_MouseWheelX" +defs["enums"]["ImGuiKey"][136]["value"] = "646" +defs["enums"]["ImGuiKey"][137] = {} +defs["enums"]["ImGuiKey"][137]["calc_value"] = 647 +defs["enums"]["ImGuiKey"][137]["name"] = "ImGuiKey_MouseWheelY" +defs["enums"]["ImGuiKey"][137]["value"] = "647" +defs["enums"]["ImGuiKey"][138] = {} +defs["enums"]["ImGuiKey"][138]["calc_value"] = 648 +defs["enums"]["ImGuiKey"][138]["name"] = "ImGuiKey_ReservedForModCtrl" +defs["enums"]["ImGuiKey"][138]["value"] = "648" +defs["enums"]["ImGuiKey"][139] = {} +defs["enums"]["ImGuiKey"][139]["calc_value"] = 649 +defs["enums"]["ImGuiKey"][139]["name"] = "ImGuiKey_ReservedForModShift" +defs["enums"]["ImGuiKey"][139]["value"] = "649" +defs["enums"]["ImGuiKey"][140] = {} +defs["enums"]["ImGuiKey"][140]["calc_value"] = 650 +defs["enums"]["ImGuiKey"][140]["name"] = "ImGuiKey_ReservedForModAlt" +defs["enums"]["ImGuiKey"][140]["value"] = "650" +defs["enums"]["ImGuiKey"][141] = {} +defs["enums"]["ImGuiKey"][141]["calc_value"] = 651 +defs["enums"]["ImGuiKey"][141]["name"] = "ImGuiKey_ReservedForModSuper" +defs["enums"]["ImGuiKey"][141]["value"] = "651" +defs["enums"]["ImGuiKey"][142] = {} +defs["enums"]["ImGuiKey"][142]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][142]["name"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][142]["value"] = "652" +defs["enums"]["ImGuiKey"][143] = {} +defs["enums"]["ImGuiKey"][143]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][143]["name"] = "ImGuiMod_None" +defs["enums"]["ImGuiKey"][143]["value"] = "0" +defs["enums"]["ImGuiKey"][144] = {} +defs["enums"]["ImGuiKey"][144]["calc_value"] = 4096 +defs["enums"]["ImGuiKey"][144]["name"] = "ImGuiMod_Ctrl" +defs["enums"]["ImGuiKey"][144]["value"] = "1 << 12" +defs["enums"]["ImGuiKey"][145] = {} +defs["enums"]["ImGuiKey"][145]["calc_value"] = 8192 +defs["enums"]["ImGuiKey"][145]["name"] = "ImGuiMod_Shift" +defs["enums"]["ImGuiKey"][145]["value"] = "1 << 13" +defs["enums"]["ImGuiKey"][146] = {} +defs["enums"]["ImGuiKey"][146]["calc_value"] = 16384 +defs["enums"]["ImGuiKey"][146]["name"] = "ImGuiMod_Alt" +defs["enums"]["ImGuiKey"][146]["value"] = "1 << 14" +defs["enums"]["ImGuiKey"][147] = {} +defs["enums"]["ImGuiKey"][147]["calc_value"] = 32768 +defs["enums"]["ImGuiKey"][147]["name"] = "ImGuiMod_Super" +defs["enums"]["ImGuiKey"][147]["value"] = "1 << 15" +defs["enums"]["ImGuiKey"][148] = {} +defs["enums"]["ImGuiKey"][148]["calc_value"] = 61440 +defs["enums"]["ImGuiKey"][148]["name"] = "ImGuiMod_Mask_" +defs["enums"]["ImGuiKey"][148]["value"] = "0xF000" +defs["enums"]["ImGuiKey"][149] = {} +defs["enums"]["ImGuiKey"][149]["calc_value"] = 4096 +defs["enums"]["ImGuiKey"][149]["name"] = "ImGuiMod_Shortcut" +defs["enums"]["ImGuiKey"][149]["value"] = "ImGuiMod_Ctrl" +defs["enums"]["ImGuiKey"][150] = {} +defs["enums"]["ImGuiKey"][150]["calc_value"] = 512 +defs["enums"]["ImGuiKey"][150]["name"] = "ImGuiKey_NamedKey_BEGIN" +defs["enums"]["ImGuiKey"][150]["value"] = "512" +defs["enums"]["ImGuiKey"][151] = {} +defs["enums"]["ImGuiKey"][151]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][151]["name"] = "ImGuiKey_NamedKey_END" +defs["enums"]["ImGuiKey"][151]["value"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][152] = {} +defs["enums"]["ImGuiKey"][152]["calc_value"] = 140 +defs["enums"]["ImGuiKey"][152]["name"] = "ImGuiKey_NamedKey_COUNT" +defs["enums"]["ImGuiKey"][152]["value"] = "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN" +defs["enums"]["ImGuiKey"][153] = {} +defs["enums"]["ImGuiKey"][153]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][153]["name"] = "ImGuiKey_KeysData_SIZE" +defs["enums"]["ImGuiKey"][153]["value"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][154] = {} +defs["enums"]["ImGuiKey"][154]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][154]["name"] = "ImGuiKey_KeysData_OFFSET" +defs["enums"]["ImGuiKey"][154]["value"] = "0" defs["enums"]["ImGuiMouseButton_"] = {} defs["enums"]["ImGuiMouseButton_"][1] = {} defs["enums"]["ImGuiMouseButton_"][1]["calc_value"] = 0 @@ -1016,95 +1539,75 @@ defs["enums"]["ImGuiMouseCursor_"][11] = {} defs["enums"]["ImGuiMouseCursor_"][11]["calc_value"] = 9 defs["enums"]["ImGuiMouseCursor_"][11]["name"] = "ImGuiMouseCursor_COUNT" defs["enums"]["ImGuiMouseCursor_"][11]["value"] = "9" -defs["enums"]["ImGuiNavInput_"] = {} -defs["enums"]["ImGuiNavInput_"][1] = {} -defs["enums"]["ImGuiNavInput_"][1]["calc_value"] = 0 -defs["enums"]["ImGuiNavInput_"][1]["name"] = "ImGuiNavInput_Activate" -defs["enums"]["ImGuiNavInput_"][1]["value"] = "0" -defs["enums"]["ImGuiNavInput_"][2] = {} -defs["enums"]["ImGuiNavInput_"][2]["calc_value"] = 1 -defs["enums"]["ImGuiNavInput_"][2]["name"] = "ImGuiNavInput_Cancel" -defs["enums"]["ImGuiNavInput_"][2]["value"] = "1" -defs["enums"]["ImGuiNavInput_"][3] = {} -defs["enums"]["ImGuiNavInput_"][3]["calc_value"] = 2 -defs["enums"]["ImGuiNavInput_"][3]["name"] = "ImGuiNavInput_Input" -defs["enums"]["ImGuiNavInput_"][3]["value"] = "2" -defs["enums"]["ImGuiNavInput_"][4] = {} -defs["enums"]["ImGuiNavInput_"][4]["calc_value"] = 3 -defs["enums"]["ImGuiNavInput_"][4]["name"] = "ImGuiNavInput_Menu" -defs["enums"]["ImGuiNavInput_"][4]["value"] = "3" -defs["enums"]["ImGuiNavInput_"][5] = {} -defs["enums"]["ImGuiNavInput_"][5]["calc_value"] = 4 -defs["enums"]["ImGuiNavInput_"][5]["name"] = "ImGuiNavInput_DpadLeft" -defs["enums"]["ImGuiNavInput_"][5]["value"] = "4" -defs["enums"]["ImGuiNavInput_"][6] = {} -defs["enums"]["ImGuiNavInput_"][6]["calc_value"] = 5 -defs["enums"]["ImGuiNavInput_"][6]["name"] = "ImGuiNavInput_DpadRight" -defs["enums"]["ImGuiNavInput_"][6]["value"] = "5" -defs["enums"]["ImGuiNavInput_"][7] = {} -defs["enums"]["ImGuiNavInput_"][7]["calc_value"] = 6 -defs["enums"]["ImGuiNavInput_"][7]["name"] = "ImGuiNavInput_DpadUp" -defs["enums"]["ImGuiNavInput_"][7]["value"] = "6" -defs["enums"]["ImGuiNavInput_"][8] = {} -defs["enums"]["ImGuiNavInput_"][8]["calc_value"] = 7 -defs["enums"]["ImGuiNavInput_"][8]["name"] = "ImGuiNavInput_DpadDown" -defs["enums"]["ImGuiNavInput_"][8]["value"] = "7" -defs["enums"]["ImGuiNavInput_"][9] = {} -defs["enums"]["ImGuiNavInput_"][9]["calc_value"] = 8 -defs["enums"]["ImGuiNavInput_"][9]["name"] = "ImGuiNavInput_LStickLeft" -defs["enums"]["ImGuiNavInput_"][9]["value"] = "8" -defs["enums"]["ImGuiNavInput_"][10] = {} -defs["enums"]["ImGuiNavInput_"][10]["calc_value"] = 9 -defs["enums"]["ImGuiNavInput_"][10]["name"] = "ImGuiNavInput_LStickRight" -defs["enums"]["ImGuiNavInput_"][10]["value"] = "9" -defs["enums"]["ImGuiNavInput_"][11] = {} -defs["enums"]["ImGuiNavInput_"][11]["calc_value"] = 10 -defs["enums"]["ImGuiNavInput_"][11]["name"] = "ImGuiNavInput_LStickUp" -defs["enums"]["ImGuiNavInput_"][11]["value"] = "10" -defs["enums"]["ImGuiNavInput_"][12] = {} -defs["enums"]["ImGuiNavInput_"][12]["calc_value"] = 11 -defs["enums"]["ImGuiNavInput_"][12]["name"] = "ImGuiNavInput_LStickDown" -defs["enums"]["ImGuiNavInput_"][12]["value"] = "11" -defs["enums"]["ImGuiNavInput_"][13] = {} -defs["enums"]["ImGuiNavInput_"][13]["calc_value"] = 12 -defs["enums"]["ImGuiNavInput_"][13]["name"] = "ImGuiNavInput_FocusPrev" -defs["enums"]["ImGuiNavInput_"][13]["value"] = "12" -defs["enums"]["ImGuiNavInput_"][14] = {} -defs["enums"]["ImGuiNavInput_"][14]["calc_value"] = 13 -defs["enums"]["ImGuiNavInput_"][14]["name"] = "ImGuiNavInput_FocusNext" -defs["enums"]["ImGuiNavInput_"][14]["value"] = "13" -defs["enums"]["ImGuiNavInput_"][15] = {} -defs["enums"]["ImGuiNavInput_"][15]["calc_value"] = 14 -defs["enums"]["ImGuiNavInput_"][15]["name"] = "ImGuiNavInput_TweakSlow" -defs["enums"]["ImGuiNavInput_"][15]["value"] = "14" -defs["enums"]["ImGuiNavInput_"][16] = {} -defs["enums"]["ImGuiNavInput_"][16]["calc_value"] = 15 -defs["enums"]["ImGuiNavInput_"][16]["name"] = "ImGuiNavInput_TweakFast" -defs["enums"]["ImGuiNavInput_"][16]["value"] = "15" -defs["enums"]["ImGuiNavInput_"][17] = {} -defs["enums"]["ImGuiNavInput_"][17]["calc_value"] = 16 -defs["enums"]["ImGuiNavInput_"][17]["name"] = "ImGuiNavInput_KeyLeft_" -defs["enums"]["ImGuiNavInput_"][17]["value"] = "16" -defs["enums"]["ImGuiNavInput_"][18] = {} -defs["enums"]["ImGuiNavInput_"][18]["calc_value"] = 17 -defs["enums"]["ImGuiNavInput_"][18]["name"] = "ImGuiNavInput_KeyRight_" -defs["enums"]["ImGuiNavInput_"][18]["value"] = "17" -defs["enums"]["ImGuiNavInput_"][19] = {} -defs["enums"]["ImGuiNavInput_"][19]["calc_value"] = 18 -defs["enums"]["ImGuiNavInput_"][19]["name"] = "ImGuiNavInput_KeyUp_" -defs["enums"]["ImGuiNavInput_"][19]["value"] = "18" -defs["enums"]["ImGuiNavInput_"][20] = {} -defs["enums"]["ImGuiNavInput_"][20]["calc_value"] = 19 -defs["enums"]["ImGuiNavInput_"][20]["name"] = "ImGuiNavInput_KeyDown_" -defs["enums"]["ImGuiNavInput_"][20]["value"] = "19" -defs["enums"]["ImGuiNavInput_"][21] = {} -defs["enums"]["ImGuiNavInput_"][21]["calc_value"] = 20 -defs["enums"]["ImGuiNavInput_"][21]["name"] = "ImGuiNavInput_COUNT" -defs["enums"]["ImGuiNavInput_"][21]["value"] = "20" -defs["enums"]["ImGuiNavInput_"][22] = {} -defs["enums"]["ImGuiNavInput_"][22]["calc_value"] = 16 -defs["enums"]["ImGuiNavInput_"][22]["name"] = "ImGuiNavInput_InternalStart_" -defs["enums"]["ImGuiNavInput_"][22]["value"] = "ImGuiNavInput_KeyLeft_" +defs["enums"]["ImGuiNavInput"] = {} +defs["enums"]["ImGuiNavInput"][1] = {} +defs["enums"]["ImGuiNavInput"][1]["calc_value"] = 0 +defs["enums"]["ImGuiNavInput"][1]["name"] = "ImGuiNavInput_Activate" +defs["enums"]["ImGuiNavInput"][1]["value"] = "0" +defs["enums"]["ImGuiNavInput"][2] = {} +defs["enums"]["ImGuiNavInput"][2]["calc_value"] = 1 +defs["enums"]["ImGuiNavInput"][2]["name"] = "ImGuiNavInput_Cancel" +defs["enums"]["ImGuiNavInput"][2]["value"] = "1" +defs["enums"]["ImGuiNavInput"][3] = {} +defs["enums"]["ImGuiNavInput"][3]["calc_value"] = 2 +defs["enums"]["ImGuiNavInput"][3]["name"] = "ImGuiNavInput_Input" +defs["enums"]["ImGuiNavInput"][3]["value"] = "2" +defs["enums"]["ImGuiNavInput"][4] = {} +defs["enums"]["ImGuiNavInput"][4]["calc_value"] = 3 +defs["enums"]["ImGuiNavInput"][4]["name"] = "ImGuiNavInput_Menu" +defs["enums"]["ImGuiNavInput"][4]["value"] = "3" +defs["enums"]["ImGuiNavInput"][5] = {} +defs["enums"]["ImGuiNavInput"][5]["calc_value"] = 4 +defs["enums"]["ImGuiNavInput"][5]["name"] = "ImGuiNavInput_DpadLeft" +defs["enums"]["ImGuiNavInput"][5]["value"] = "4" +defs["enums"]["ImGuiNavInput"][6] = {} +defs["enums"]["ImGuiNavInput"][6]["calc_value"] = 5 +defs["enums"]["ImGuiNavInput"][6]["name"] = "ImGuiNavInput_DpadRight" +defs["enums"]["ImGuiNavInput"][6]["value"] = "5" +defs["enums"]["ImGuiNavInput"][7] = {} +defs["enums"]["ImGuiNavInput"][7]["calc_value"] = 6 +defs["enums"]["ImGuiNavInput"][7]["name"] = "ImGuiNavInput_DpadUp" +defs["enums"]["ImGuiNavInput"][7]["value"] = "6" +defs["enums"]["ImGuiNavInput"][8] = {} +defs["enums"]["ImGuiNavInput"][8]["calc_value"] = 7 +defs["enums"]["ImGuiNavInput"][8]["name"] = "ImGuiNavInput_DpadDown" +defs["enums"]["ImGuiNavInput"][8]["value"] = "7" +defs["enums"]["ImGuiNavInput"][9] = {} +defs["enums"]["ImGuiNavInput"][9]["calc_value"] = 8 +defs["enums"]["ImGuiNavInput"][9]["name"] = "ImGuiNavInput_LStickLeft" +defs["enums"]["ImGuiNavInput"][9]["value"] = "8" +defs["enums"]["ImGuiNavInput"][10] = {} +defs["enums"]["ImGuiNavInput"][10]["calc_value"] = 9 +defs["enums"]["ImGuiNavInput"][10]["name"] = "ImGuiNavInput_LStickRight" +defs["enums"]["ImGuiNavInput"][10]["value"] = "9" +defs["enums"]["ImGuiNavInput"][11] = {} +defs["enums"]["ImGuiNavInput"][11]["calc_value"] = 10 +defs["enums"]["ImGuiNavInput"][11]["name"] = "ImGuiNavInput_LStickUp" +defs["enums"]["ImGuiNavInput"][11]["value"] = "10" +defs["enums"]["ImGuiNavInput"][12] = {} +defs["enums"]["ImGuiNavInput"][12]["calc_value"] = 11 +defs["enums"]["ImGuiNavInput"][12]["name"] = "ImGuiNavInput_LStickDown" +defs["enums"]["ImGuiNavInput"][12]["value"] = "11" +defs["enums"]["ImGuiNavInput"][13] = {} +defs["enums"]["ImGuiNavInput"][13]["calc_value"] = 12 +defs["enums"]["ImGuiNavInput"][13]["name"] = "ImGuiNavInput_FocusPrev" +defs["enums"]["ImGuiNavInput"][13]["value"] = "12" +defs["enums"]["ImGuiNavInput"][14] = {} +defs["enums"]["ImGuiNavInput"][14]["calc_value"] = 13 +defs["enums"]["ImGuiNavInput"][14]["name"] = "ImGuiNavInput_FocusNext" +defs["enums"]["ImGuiNavInput"][14]["value"] = "13" +defs["enums"]["ImGuiNavInput"][15] = {} +defs["enums"]["ImGuiNavInput"][15]["calc_value"] = 14 +defs["enums"]["ImGuiNavInput"][15]["name"] = "ImGuiNavInput_TweakSlow" +defs["enums"]["ImGuiNavInput"][15]["value"] = "14" +defs["enums"]["ImGuiNavInput"][16] = {} +defs["enums"]["ImGuiNavInput"][16]["calc_value"] = 15 +defs["enums"]["ImGuiNavInput"][16]["name"] = "ImGuiNavInput_TweakFast" +defs["enums"]["ImGuiNavInput"][16]["value"] = "15" +defs["enums"]["ImGuiNavInput"][17] = {} +defs["enums"]["ImGuiNavInput"][17]["calc_value"] = 16 +defs["enums"]["ImGuiNavInput"][17]["name"] = "ImGuiNavInput_COUNT" +defs["enums"]["ImGuiNavInput"][17]["value"] = "16" defs["enums"]["ImGuiPopupFlags_"] = {} defs["enums"]["ImGuiPopupFlags_"][1] = {} defs["enums"]["ImGuiPopupFlags_"][1]["calc_value"] = 0 @@ -1884,73 +2387,75 @@ defs["enums"]["ImGuiWindowFlags_"][30]["calc_value"] = 268435456 defs["enums"]["ImGuiWindowFlags_"][30]["name"] = "ImGuiWindowFlags_ChildMenu" defs["enums"]["ImGuiWindowFlags_"][30]["value"] = "1 << 28" defs["enumtypes"] = {} +defs["enumtypes"]["ImGuiKey"] = "int" defs["locations"] = {} -defs["locations"]["ImColor"] = "imgui:2241" -defs["locations"]["ImDrawChannel"] = "imgui:2331" -defs["locations"]["ImDrawCmd"] = "imgui:2290" -defs["locations"]["ImDrawCmdHeader"] = "imgui:2323" -defs["locations"]["ImDrawData"] = "imgui:2521" -defs["locations"]["ImDrawFlags_"] = "imgui:2357" -defs["locations"]["ImDrawList"] = "imgui:2395" -defs["locations"]["ImDrawListFlags_"] = "imgui:2377" -defs["locations"]["ImDrawListSplitter"] = "imgui:2340" -defs["locations"]["ImDrawVert"] = "imgui:2308" -defs["locations"]["ImFont"] = "imgui:2739" -defs["locations"]["ImFontAtlas"] = "imgui:2637" -defs["locations"]["ImFontAtlasCustomRect"] = "imgui:2599" -defs["locations"]["ImFontAtlasFlags_"] = "imgui:2612" -defs["locations"]["ImFontConfig"] = "imgui:2543" -defs["locations"]["ImFontGlyph"] = "imgui:2572" -defs["locations"]["ImFontGlyphRangesBuilder"] = "imgui:2584" -defs["locations"]["ImGuiBackendFlags_"] = "imgui:1442" -defs["locations"]["ImGuiButtonFlags_"] = "imgui:1549" -defs["locations"]["ImGuiCol_"] = "imgui:1452" -defs["locations"]["ImGuiColorEditFlags_"] = "imgui:1562" -defs["locations"]["ImGuiComboFlags_"] = "imgui:1076" -defs["locations"]["ImGuiCond_"] = "imgui:1654" -defs["locations"]["ImGuiConfigFlags_"] = "imgui:1426" -defs["locations"]["ImGuiDataType_"] = "imgui:1319" -defs["locations"]["ImGuiDir_"] = "imgui:1335" -defs["locations"]["ImGuiDragDropFlags_"] = "imgui:1297" -defs["locations"]["ImGuiFocusedFlags_"] = "imgui:1265" -defs["locations"]["ImGuiHoveredFlags_"] = "imgui:1279" -defs["locations"]["ImGuiIO"] = "imgui:1820" -defs["locations"]["ImGuiInputTextCallbackData"] = "imgui:1969" -defs["locations"]["ImGuiInputTextFlags_"] = "imgui:989" -defs["locations"]["ImGuiKeyModFlags_"] = "imgui:1382" -defs["locations"]["ImGuiKey_"] = "imgui:1354" -defs["locations"]["ImGuiListClipper"] = "imgui:2193" -defs["locations"]["ImGuiMouseButton_"] = "imgui:1626" -defs["locations"]["ImGuiMouseCursor_"] = "imgui:1636" -defs["locations"]["ImGuiNavInput_"] = "imgui:1395" -defs["locations"]["ImGuiOnceUponAFrame"] = "imgui:2068" -defs["locations"]["ImGuiPayload"] = "imgui:2009" -defs["locations"]["ImGuiPopupFlags_"] = "imgui:1049" -defs["locations"]["ImGuiSelectableFlags_"] = "imgui:1065" -defs["locations"]["ImGuiSizeCallbackData"] = "imgui:2000" -defs["locations"]["ImGuiSliderFlags_"] = "imgui:1609" -defs["locations"]["ImGuiSortDirection_"] = "imgui:1346" -defs["locations"]["ImGuiStorage"] = "imgui:2130" -defs["locations"]["ImGuiStoragePair"] = "imgui:2133" -defs["locations"]["ImGuiStyle"] = "imgui:1765" -defs["locations"]["ImGuiStyleVar_"] = "imgui:1517" -defs["locations"]["ImGuiTabBarFlags_"] = "imgui:1090" -defs["locations"]["ImGuiTabItemFlags_"] = "imgui:1106" -defs["locations"]["ImGuiTableBgTarget_"] = "imgui:1256" -defs["locations"]["ImGuiTableColumnFlags_"] = "imgui:1199" -defs["locations"]["ImGuiTableColumnSortSpecs"] = "imgui:2031" -defs["locations"]["ImGuiTableFlags_"] = "imgui:1142" -defs["locations"]["ImGuiTableRowFlags_"] = "imgui:1241" -defs["locations"]["ImGuiTableSortSpecs"] = "imgui:2045" -defs["locations"]["ImGuiTextBuffer"] = "imgui:2103" -defs["locations"]["ImGuiTextFilter"] = "imgui:2076" -defs["locations"]["ImGuiTextRange"] = "imgui:2086" -defs["locations"]["ImGuiTreeNodeFlags_"] = "imgui:1020" -defs["locations"]["ImGuiViewport"] = "imgui:2810" -defs["locations"]["ImGuiViewportFlags_"] = "imgui:2795" -defs["locations"]["ImGuiWindowFlags_"] = "imgui:949" -defs["locations"]["ImVec2"] = "imgui:259" -defs["locations"]["ImVec4"] = "imgui:272" +defs["locations"]["ImColor"] = "imgui:2346" +defs["locations"]["ImDrawChannel"] = "imgui:2436" +defs["locations"]["ImDrawCmd"] = "imgui:2395" +defs["locations"]["ImDrawCmdHeader"] = "imgui:2428" +defs["locations"]["ImDrawData"] = "imgui:2628" +defs["locations"]["ImDrawFlags_"] = "imgui:2462" +defs["locations"]["ImDrawList"] = "imgui:2500" +defs["locations"]["ImDrawListFlags_"] = "imgui:2482" +defs["locations"]["ImDrawListSplitter"] = "imgui:2445" +defs["locations"]["ImDrawVert"] = "imgui:2413" +defs["locations"]["ImFont"] = "imgui:2846" +defs["locations"]["ImFontAtlas"] = "imgui:2744" +defs["locations"]["ImFontAtlasCustomRect"] = "imgui:2706" +defs["locations"]["ImFontAtlasFlags_"] = "imgui:2719" +defs["locations"]["ImFontConfig"] = "imgui:2650" +defs["locations"]["ImFontGlyph"] = "imgui:2679" +defs["locations"]["ImFontGlyphRangesBuilder"] = "imgui:2691" +defs["locations"]["ImGuiBackendFlags_"] = "imgui:1510" +defs["locations"]["ImGuiButtonFlags_"] = "imgui:1617" +defs["locations"]["ImGuiCol_"] = "imgui:1520" +defs["locations"]["ImGuiColorEditFlags_"] = "imgui:1630" +defs["locations"]["ImGuiComboFlags_"] = "imgui:1079" +defs["locations"]["ImGuiCond_"] = "imgui:1721" +defs["locations"]["ImGuiConfigFlags_"] = "imgui:1494" +defs["locations"]["ImGuiDataType_"] = "imgui:1316" +defs["locations"]["ImGuiDir_"] = "imgui:1332" +defs["locations"]["ImGuiDragDropFlags_"] = "imgui:1294" +defs["locations"]["ImGuiFocusedFlags_"] = "imgui:1256" +defs["locations"]["ImGuiHoveredFlags_"] = "imgui:1270" +defs["locations"]["ImGuiIO"] = "imgui:1898" +defs["locations"]["ImGuiInputTextCallbackData"] = "imgui:2071" +defs["locations"]["ImGuiInputTextFlags_"] = "imgui:991" +defs["locations"]["ImGuiKey"] = "imgui:1353" +defs["locations"]["ImGuiKeyData"] = "imgui:1890" +defs["locations"]["ImGuiListClipper"] = "imgui:2295" +defs["locations"]["ImGuiMouseButton_"] = "imgui:1693" +defs["locations"]["ImGuiMouseCursor_"] = "imgui:1703" +defs["locations"]["ImGuiNavInput"] = "imgui:1485" +defs["locations"]["ImGuiOnceUponAFrame"] = "imgui:2170" +defs["locations"]["ImGuiPayload"] = "imgui:2111" +defs["locations"]["ImGuiPlatformImeData"] = "imgui:2940" +defs["locations"]["ImGuiPopupFlags_"] = "imgui:1052" +defs["locations"]["ImGuiSelectableFlags_"] = "imgui:1068" +defs["locations"]["ImGuiSizeCallbackData"] = "imgui:2102" +defs["locations"]["ImGuiSliderFlags_"] = "imgui:1676" +defs["locations"]["ImGuiSortDirection_"] = "imgui:1343" +defs["locations"]["ImGuiStorage"] = "imgui:2232" +defs["locations"]["ImGuiStoragePair"] = "imgui:2235" +defs["locations"]["ImGuiStyle"] = "imgui:1833" +defs["locations"]["ImGuiStyleVar_"] = "imgui:1585" +defs["locations"]["ImGuiTabBarFlags_"] = "imgui:1093" +defs["locations"]["ImGuiTabItemFlags_"] = "imgui:1109" +defs["locations"]["ImGuiTableBgTarget_"] = "imgui:1247" +defs["locations"]["ImGuiTableColumnFlags_"] = "imgui:1195" +defs["locations"]["ImGuiTableColumnSortSpecs"] = "imgui:2133" +defs["locations"]["ImGuiTableFlags_"] = "imgui:1144" +defs["locations"]["ImGuiTableRowFlags_"] = "imgui:1232" +defs["locations"]["ImGuiTableSortSpecs"] = "imgui:2147" +defs["locations"]["ImGuiTextBuffer"] = "imgui:2205" +defs["locations"]["ImGuiTextFilter"] = "imgui:2178" +defs["locations"]["ImGuiTextRange"] = "imgui:2188" +defs["locations"]["ImGuiTreeNodeFlags_"] = "imgui:1023" +defs["locations"]["ImGuiViewport"] = "imgui:2917" +defs["locations"]["ImGuiViewportFlags_"] = "imgui:2902" +defs["locations"]["ImGuiWindowFlags_"] = "imgui:953" +defs["locations"]["ImVec2"] = "imgui:253" +defs["locations"]["ImVec4"] = "imgui:266" defs["structs"] = {} defs["structs"]["ImColor"] = {} defs["structs"]["ImColor"][1] = {} @@ -2043,7 +2548,7 @@ defs["structs"]["ImDrawList"][5]["name"] = "_VtxCurrentIdx" defs["structs"]["ImDrawList"][5]["type"] = "unsigned int" defs["structs"]["ImDrawList"][6] = {} defs["structs"]["ImDrawList"][6]["name"] = "_Data" -defs["structs"]["ImDrawList"][6]["type"] = "const ImDrawListSharedData*" +defs["structs"]["ImDrawList"][6]["type"] = "ImDrawListSharedData*" defs["structs"]["ImDrawList"][7] = {} defs["structs"]["ImDrawList"][7]["name"] = "_OwnerName" defs["structs"]["ImDrawList"][7]["type"] = "const char*" @@ -2383,252 +2888,254 @@ defs["structs"]["ImGuiIO"][10] = {} defs["structs"]["ImGuiIO"][10]["name"] = "MouseDragThreshold" defs["structs"]["ImGuiIO"][10]["type"] = "float" defs["structs"]["ImGuiIO"][11] = {} -defs["structs"]["ImGuiIO"][11]["name"] = "KeyMap[ImGuiKey_COUNT]" -defs["structs"]["ImGuiIO"][11]["size"] = 22 -defs["structs"]["ImGuiIO"][11]["type"] = "int" +defs["structs"]["ImGuiIO"][11]["name"] = "KeyRepeatDelay" +defs["structs"]["ImGuiIO"][11]["type"] = "float" defs["structs"]["ImGuiIO"][12] = {} -defs["structs"]["ImGuiIO"][12]["name"] = "KeyRepeatDelay" +defs["structs"]["ImGuiIO"][12]["name"] = "KeyRepeatRate" defs["structs"]["ImGuiIO"][12]["type"] = "float" defs["structs"]["ImGuiIO"][13] = {} -defs["structs"]["ImGuiIO"][13]["name"] = "KeyRepeatRate" +defs["structs"]["ImGuiIO"][13]["name"] = "HoverDelayNormal" defs["structs"]["ImGuiIO"][13]["type"] = "float" defs["structs"]["ImGuiIO"][14] = {} -defs["structs"]["ImGuiIO"][14]["name"] = "UserData" -defs["structs"]["ImGuiIO"][14]["type"] = "void*" +defs["structs"]["ImGuiIO"][14]["name"] = "HoverDelayShort" +defs["structs"]["ImGuiIO"][14]["type"] = "float" defs["structs"]["ImGuiIO"][15] = {} -defs["structs"]["ImGuiIO"][15]["name"] = "Fonts" -defs["structs"]["ImGuiIO"][15]["type"] = "ImFontAtlas*" +defs["structs"]["ImGuiIO"][15]["name"] = "UserData" +defs["structs"]["ImGuiIO"][15]["type"] = "void*" defs["structs"]["ImGuiIO"][16] = {} -defs["structs"]["ImGuiIO"][16]["name"] = "FontGlobalScale" -defs["structs"]["ImGuiIO"][16]["type"] = "float" +defs["structs"]["ImGuiIO"][16]["name"] = "Fonts" +defs["structs"]["ImGuiIO"][16]["type"] = "ImFontAtlas*" defs["structs"]["ImGuiIO"][17] = {} -defs["structs"]["ImGuiIO"][17]["name"] = "FontAllowUserScaling" -defs["structs"]["ImGuiIO"][17]["type"] = "bool" +defs["structs"]["ImGuiIO"][17]["name"] = "FontGlobalScale" +defs["structs"]["ImGuiIO"][17]["type"] = "float" defs["structs"]["ImGuiIO"][18] = {} -defs["structs"]["ImGuiIO"][18]["name"] = "FontDefault" -defs["structs"]["ImGuiIO"][18]["type"] = "ImFont*" +defs["structs"]["ImGuiIO"][18]["name"] = "FontAllowUserScaling" +defs["structs"]["ImGuiIO"][18]["type"] = "bool" defs["structs"]["ImGuiIO"][19] = {} -defs["structs"]["ImGuiIO"][19]["name"] = "DisplayFramebufferScale" -defs["structs"]["ImGuiIO"][19]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][19]["name"] = "FontDefault" +defs["structs"]["ImGuiIO"][19]["type"] = "ImFont*" defs["structs"]["ImGuiIO"][20] = {} -defs["structs"]["ImGuiIO"][20]["name"] = "MouseDrawCursor" -defs["structs"]["ImGuiIO"][20]["type"] = "bool" +defs["structs"]["ImGuiIO"][20]["name"] = "DisplayFramebufferScale" +defs["structs"]["ImGuiIO"][20]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][21] = {} -defs["structs"]["ImGuiIO"][21]["name"] = "ConfigMacOSXBehaviors" +defs["structs"]["ImGuiIO"][21]["name"] = "MouseDrawCursor" defs["structs"]["ImGuiIO"][21]["type"] = "bool" defs["structs"]["ImGuiIO"][22] = {} -defs["structs"]["ImGuiIO"][22]["name"] = "ConfigInputTextCursorBlink" +defs["structs"]["ImGuiIO"][22]["name"] = "ConfigMacOSXBehaviors" defs["structs"]["ImGuiIO"][22]["type"] = "bool" defs["structs"]["ImGuiIO"][23] = {} -defs["structs"]["ImGuiIO"][23]["name"] = "ConfigDragClickToInputText" +defs["structs"]["ImGuiIO"][23]["name"] = "ConfigInputTrickleEventQueue" defs["structs"]["ImGuiIO"][23]["type"] = "bool" defs["structs"]["ImGuiIO"][24] = {} -defs["structs"]["ImGuiIO"][24]["name"] = "ConfigWindowsResizeFromEdges" +defs["structs"]["ImGuiIO"][24]["name"] = "ConfigInputTextCursorBlink" defs["structs"]["ImGuiIO"][24]["type"] = "bool" defs["structs"]["ImGuiIO"][25] = {} -defs["structs"]["ImGuiIO"][25]["name"] = "ConfigWindowsMoveFromTitleBarOnly" +defs["structs"]["ImGuiIO"][25]["name"] = "ConfigInputTextEnterKeepActive" defs["structs"]["ImGuiIO"][25]["type"] = "bool" defs["structs"]["ImGuiIO"][26] = {} -defs["structs"]["ImGuiIO"][26]["name"] = "ConfigMemoryCompactTimer" -defs["structs"]["ImGuiIO"][26]["type"] = "float" +defs["structs"]["ImGuiIO"][26]["name"] = "ConfigDragClickToInputText" +defs["structs"]["ImGuiIO"][26]["type"] = "bool" defs["structs"]["ImGuiIO"][27] = {} -defs["structs"]["ImGuiIO"][27]["name"] = "BackendPlatformName" -defs["structs"]["ImGuiIO"][27]["type"] = "const char*" +defs["structs"]["ImGuiIO"][27]["name"] = "ConfigWindowsResizeFromEdges" +defs["structs"]["ImGuiIO"][27]["type"] = "bool" defs["structs"]["ImGuiIO"][28] = {} -defs["structs"]["ImGuiIO"][28]["name"] = "BackendRendererName" -defs["structs"]["ImGuiIO"][28]["type"] = "const char*" +defs["structs"]["ImGuiIO"][28]["name"] = "ConfigWindowsMoveFromTitleBarOnly" +defs["structs"]["ImGuiIO"][28]["type"] = "bool" defs["structs"]["ImGuiIO"][29] = {} -defs["structs"]["ImGuiIO"][29]["name"] = "BackendPlatformUserData" -defs["structs"]["ImGuiIO"][29]["type"] = "void*" +defs["structs"]["ImGuiIO"][29]["name"] = "ConfigMemoryCompactTimer" +defs["structs"]["ImGuiIO"][29]["type"] = "float" defs["structs"]["ImGuiIO"][30] = {} -defs["structs"]["ImGuiIO"][30]["name"] = "BackendRendererUserData" -defs["structs"]["ImGuiIO"][30]["type"] = "void*" +defs["structs"]["ImGuiIO"][30]["name"] = "BackendPlatformName" +defs["structs"]["ImGuiIO"][30]["type"] = "const char*" defs["structs"]["ImGuiIO"][31] = {} -defs["structs"]["ImGuiIO"][31]["name"] = "BackendLanguageUserData" -defs["structs"]["ImGuiIO"][31]["type"] = "void*" +defs["structs"]["ImGuiIO"][31]["name"] = "BackendRendererName" +defs["structs"]["ImGuiIO"][31]["type"] = "const char*" defs["structs"]["ImGuiIO"][32] = {} -defs["structs"]["ImGuiIO"][32]["name"] = "GetClipboardTextFn" -defs["structs"]["ImGuiIO"][32]["type"] = "const char*(*)(void* user_data)" +defs["structs"]["ImGuiIO"][32]["name"] = "BackendPlatformUserData" +defs["structs"]["ImGuiIO"][32]["type"] = "void*" defs["structs"]["ImGuiIO"][33] = {} -defs["structs"]["ImGuiIO"][33]["name"] = "SetClipboardTextFn" -defs["structs"]["ImGuiIO"][33]["type"] = "void(*)(void* user_data,const char* text)" +defs["structs"]["ImGuiIO"][33]["name"] = "BackendRendererUserData" +defs["structs"]["ImGuiIO"][33]["type"] = "void*" defs["structs"]["ImGuiIO"][34] = {} -defs["structs"]["ImGuiIO"][34]["name"] = "ClipboardUserData" +defs["structs"]["ImGuiIO"][34]["name"] = "BackendLanguageUserData" defs["structs"]["ImGuiIO"][34]["type"] = "void*" defs["structs"]["ImGuiIO"][35] = {} -defs["structs"]["ImGuiIO"][35]["name"] = "ImeSetInputScreenPosFn" -defs["structs"]["ImGuiIO"][35]["type"] = "void(*)(int x,int y)" +defs["structs"]["ImGuiIO"][35]["name"] = "GetClipboardTextFn" +defs["structs"]["ImGuiIO"][35]["type"] = "const char*(*)(void* user_data)" defs["structs"]["ImGuiIO"][36] = {} -defs["structs"]["ImGuiIO"][36]["name"] = "ImeWindowHandle" -defs["structs"]["ImGuiIO"][36]["type"] = "void*" +defs["structs"]["ImGuiIO"][36]["name"] = "SetClipboardTextFn" +defs["structs"]["ImGuiIO"][36]["type"] = "void(*)(void* user_data,const char* text)" defs["structs"]["ImGuiIO"][37] = {} -defs["structs"]["ImGuiIO"][37]["name"] = "MousePos" -defs["structs"]["ImGuiIO"][37]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][37]["name"] = "ClipboardUserData" +defs["structs"]["ImGuiIO"][37]["type"] = "void*" defs["structs"]["ImGuiIO"][38] = {} -defs["structs"]["ImGuiIO"][38]["name"] = "MouseDown[5]" -defs["structs"]["ImGuiIO"][38]["size"] = 5 -defs["structs"]["ImGuiIO"][38]["type"] = "bool" +defs["structs"]["ImGuiIO"][38]["name"] = "SetPlatformImeDataFn" +defs["structs"]["ImGuiIO"][38]["type"] = "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" defs["structs"]["ImGuiIO"][39] = {} -defs["structs"]["ImGuiIO"][39]["name"] = "MouseWheel" -defs["structs"]["ImGuiIO"][39]["type"] = "float" +defs["structs"]["ImGuiIO"][39]["name"] = "_UnusedPadding" +defs["structs"]["ImGuiIO"][39]["type"] = "void*" defs["structs"]["ImGuiIO"][40] = {} -defs["structs"]["ImGuiIO"][40]["name"] = "MouseWheelH" -defs["structs"]["ImGuiIO"][40]["type"] = "float" +defs["structs"]["ImGuiIO"][40]["name"] = "WantCaptureMouse" +defs["structs"]["ImGuiIO"][40]["type"] = "bool" defs["structs"]["ImGuiIO"][41] = {} -defs["structs"]["ImGuiIO"][41]["name"] = "KeyCtrl" +defs["structs"]["ImGuiIO"][41]["name"] = "WantCaptureKeyboard" defs["structs"]["ImGuiIO"][41]["type"] = "bool" defs["structs"]["ImGuiIO"][42] = {} -defs["structs"]["ImGuiIO"][42]["name"] = "KeyShift" +defs["structs"]["ImGuiIO"][42]["name"] = "WantTextInput" defs["structs"]["ImGuiIO"][42]["type"] = "bool" defs["structs"]["ImGuiIO"][43] = {} -defs["structs"]["ImGuiIO"][43]["name"] = "KeyAlt" +defs["structs"]["ImGuiIO"][43]["name"] = "WantSetMousePos" defs["structs"]["ImGuiIO"][43]["type"] = "bool" defs["structs"]["ImGuiIO"][44] = {} -defs["structs"]["ImGuiIO"][44]["name"] = "KeySuper" +defs["structs"]["ImGuiIO"][44]["name"] = "WantSaveIniSettings" defs["structs"]["ImGuiIO"][44]["type"] = "bool" defs["structs"]["ImGuiIO"][45] = {} -defs["structs"]["ImGuiIO"][45]["name"] = "KeysDown[512]" -defs["structs"]["ImGuiIO"][45]["size"] = 512 +defs["structs"]["ImGuiIO"][45]["name"] = "NavActive" defs["structs"]["ImGuiIO"][45]["type"] = "bool" defs["structs"]["ImGuiIO"][46] = {} -defs["structs"]["ImGuiIO"][46]["name"] = "NavInputs[ImGuiNavInput_COUNT]" -defs["structs"]["ImGuiIO"][46]["size"] = 20 -defs["structs"]["ImGuiIO"][46]["type"] = "float" +defs["structs"]["ImGuiIO"][46]["name"] = "NavVisible" +defs["structs"]["ImGuiIO"][46]["type"] = "bool" defs["structs"]["ImGuiIO"][47] = {} -defs["structs"]["ImGuiIO"][47]["name"] = "WantCaptureMouse" -defs["structs"]["ImGuiIO"][47]["type"] = "bool" +defs["structs"]["ImGuiIO"][47]["name"] = "Framerate" +defs["structs"]["ImGuiIO"][47]["type"] = "float" defs["structs"]["ImGuiIO"][48] = {} -defs["structs"]["ImGuiIO"][48]["name"] = "WantCaptureKeyboard" -defs["structs"]["ImGuiIO"][48]["type"] = "bool" +defs["structs"]["ImGuiIO"][48]["name"] = "MetricsRenderVertices" +defs["structs"]["ImGuiIO"][48]["type"] = "int" defs["structs"]["ImGuiIO"][49] = {} -defs["structs"]["ImGuiIO"][49]["name"] = "WantTextInput" -defs["structs"]["ImGuiIO"][49]["type"] = "bool" +defs["structs"]["ImGuiIO"][49]["name"] = "MetricsRenderIndices" +defs["structs"]["ImGuiIO"][49]["type"] = "int" defs["structs"]["ImGuiIO"][50] = {} -defs["structs"]["ImGuiIO"][50]["name"] = "WantSetMousePos" -defs["structs"]["ImGuiIO"][50]["type"] = "bool" +defs["structs"]["ImGuiIO"][50]["name"] = "MetricsRenderWindows" +defs["structs"]["ImGuiIO"][50]["type"] = "int" defs["structs"]["ImGuiIO"][51] = {} -defs["structs"]["ImGuiIO"][51]["name"] = "WantSaveIniSettings" -defs["structs"]["ImGuiIO"][51]["type"] = "bool" +defs["structs"]["ImGuiIO"][51]["name"] = "MetricsActiveWindows" +defs["structs"]["ImGuiIO"][51]["type"] = "int" defs["structs"]["ImGuiIO"][52] = {} -defs["structs"]["ImGuiIO"][52]["name"] = "NavActive" -defs["structs"]["ImGuiIO"][52]["type"] = "bool" +defs["structs"]["ImGuiIO"][52]["name"] = "MetricsActiveAllocations" +defs["structs"]["ImGuiIO"][52]["type"] = "int" defs["structs"]["ImGuiIO"][53] = {} -defs["structs"]["ImGuiIO"][53]["name"] = "NavVisible" -defs["structs"]["ImGuiIO"][53]["type"] = "bool" +defs["structs"]["ImGuiIO"][53]["name"] = "MouseDelta" +defs["structs"]["ImGuiIO"][53]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][54] = {} -defs["structs"]["ImGuiIO"][54]["name"] = "Framerate" -defs["structs"]["ImGuiIO"][54]["type"] = "float" +defs["structs"]["ImGuiIO"][54]["name"] = "KeyMap[ImGuiKey_COUNT]" +defs["structs"]["ImGuiIO"][54]["size"] = 652 +defs["structs"]["ImGuiIO"][54]["type"] = "int" defs["structs"]["ImGuiIO"][55] = {} -defs["structs"]["ImGuiIO"][55]["name"] = "MetricsRenderVertices" -defs["structs"]["ImGuiIO"][55]["type"] = "int" +defs["structs"]["ImGuiIO"][55]["name"] = "KeysDown[ImGuiKey_COUNT]" +defs["structs"]["ImGuiIO"][55]["size"] = 652 +defs["structs"]["ImGuiIO"][55]["type"] = "bool" defs["structs"]["ImGuiIO"][56] = {} -defs["structs"]["ImGuiIO"][56]["name"] = "MetricsRenderIndices" -defs["structs"]["ImGuiIO"][56]["type"] = "int" +defs["structs"]["ImGuiIO"][56]["name"] = "NavInputs[ImGuiNavInput_COUNT]" +defs["structs"]["ImGuiIO"][56]["size"] = 16 +defs["structs"]["ImGuiIO"][56]["type"] = "float" defs["structs"]["ImGuiIO"][57] = {} -defs["structs"]["ImGuiIO"][57]["name"] = "MetricsRenderWindows" -defs["structs"]["ImGuiIO"][57]["type"] = "int" +defs["structs"]["ImGuiIO"][57]["name"] = "MousePos" +defs["structs"]["ImGuiIO"][57]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][58] = {} -defs["structs"]["ImGuiIO"][58]["name"] = "MetricsActiveWindows" -defs["structs"]["ImGuiIO"][58]["type"] = "int" +defs["structs"]["ImGuiIO"][58]["name"] = "MouseDown[5]" +defs["structs"]["ImGuiIO"][58]["size"] = 5 +defs["structs"]["ImGuiIO"][58]["type"] = "bool" defs["structs"]["ImGuiIO"][59] = {} -defs["structs"]["ImGuiIO"][59]["name"] = "MetricsActiveAllocations" -defs["structs"]["ImGuiIO"][59]["type"] = "int" +defs["structs"]["ImGuiIO"][59]["name"] = "MouseWheel" +defs["structs"]["ImGuiIO"][59]["type"] = "float" defs["structs"]["ImGuiIO"][60] = {} -defs["structs"]["ImGuiIO"][60]["name"] = "MouseDelta" -defs["structs"]["ImGuiIO"][60]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][60]["name"] = "MouseWheelH" +defs["structs"]["ImGuiIO"][60]["type"] = "float" defs["structs"]["ImGuiIO"][61] = {} -defs["structs"]["ImGuiIO"][61]["name"] = "WantCaptureMouseUnlessPopupClose" +defs["structs"]["ImGuiIO"][61]["name"] = "KeyCtrl" defs["structs"]["ImGuiIO"][61]["type"] = "bool" defs["structs"]["ImGuiIO"][62] = {} -defs["structs"]["ImGuiIO"][62]["name"] = "KeyMods" -defs["structs"]["ImGuiIO"][62]["type"] = "ImGuiKeyModFlags" +defs["structs"]["ImGuiIO"][62]["name"] = "KeyShift" +defs["structs"]["ImGuiIO"][62]["type"] = "bool" defs["structs"]["ImGuiIO"][63] = {} -defs["structs"]["ImGuiIO"][63]["name"] = "KeyModsPrev" -defs["structs"]["ImGuiIO"][63]["type"] = "ImGuiKeyModFlags" +defs["structs"]["ImGuiIO"][63]["name"] = "KeyAlt" +defs["structs"]["ImGuiIO"][63]["type"] = "bool" defs["structs"]["ImGuiIO"][64] = {} -defs["structs"]["ImGuiIO"][64]["name"] = "MousePosPrev" -defs["structs"]["ImGuiIO"][64]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][64]["name"] = "KeySuper" +defs["structs"]["ImGuiIO"][64]["type"] = "bool" defs["structs"]["ImGuiIO"][65] = {} -defs["structs"]["ImGuiIO"][65]["name"] = "MouseClickedPos[5]" -defs["structs"]["ImGuiIO"][65]["size"] = 5 -defs["structs"]["ImGuiIO"][65]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][65]["name"] = "KeyMods" +defs["structs"]["ImGuiIO"][65]["type"] = "ImGuiKeyChord" defs["structs"]["ImGuiIO"][66] = {} -defs["structs"]["ImGuiIO"][66]["name"] = "MouseClickedTime[5]" -defs["structs"]["ImGuiIO"][66]["size"] = 5 -defs["structs"]["ImGuiIO"][66]["type"] = "double" +defs["structs"]["ImGuiIO"][66]["name"] = "KeysData[ImGuiKey_KeysData_SIZE]" +defs["structs"]["ImGuiIO"][66]["size"] = 652 +defs["structs"]["ImGuiIO"][66]["type"] = "ImGuiKeyData" defs["structs"]["ImGuiIO"][67] = {} -defs["structs"]["ImGuiIO"][67]["name"] = "MouseClicked[5]" -defs["structs"]["ImGuiIO"][67]["size"] = 5 +defs["structs"]["ImGuiIO"][67]["name"] = "WantCaptureMouseUnlessPopupClose" defs["structs"]["ImGuiIO"][67]["type"] = "bool" defs["structs"]["ImGuiIO"][68] = {} -defs["structs"]["ImGuiIO"][68]["name"] = "MouseDoubleClicked[5]" -defs["structs"]["ImGuiIO"][68]["size"] = 5 -defs["structs"]["ImGuiIO"][68]["type"] = "bool" +defs["structs"]["ImGuiIO"][68]["name"] = "MousePosPrev" +defs["structs"]["ImGuiIO"][68]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][69] = {} -defs["structs"]["ImGuiIO"][69]["name"] = "MouseClickedCount[5]" +defs["structs"]["ImGuiIO"][69]["name"] = "MouseClickedPos[5]" defs["structs"]["ImGuiIO"][69]["size"] = 5 -defs["structs"]["ImGuiIO"][69]["type"] = "ImU16" +defs["structs"]["ImGuiIO"][69]["type"] = "ImVec2" defs["structs"]["ImGuiIO"][70] = {} -defs["structs"]["ImGuiIO"][70]["name"] = "MouseClickedLastCount[5]" +defs["structs"]["ImGuiIO"][70]["name"] = "MouseClickedTime[5]" defs["structs"]["ImGuiIO"][70]["size"] = 5 -defs["structs"]["ImGuiIO"][70]["type"] = "ImU16" +defs["structs"]["ImGuiIO"][70]["type"] = "double" defs["structs"]["ImGuiIO"][71] = {} -defs["structs"]["ImGuiIO"][71]["name"] = "MouseReleased[5]" +defs["structs"]["ImGuiIO"][71]["name"] = "MouseClicked[5]" defs["structs"]["ImGuiIO"][71]["size"] = 5 defs["structs"]["ImGuiIO"][71]["type"] = "bool" defs["structs"]["ImGuiIO"][72] = {} -defs["structs"]["ImGuiIO"][72]["name"] = "MouseDownOwned[5]" +defs["structs"]["ImGuiIO"][72]["name"] = "MouseDoubleClicked[5]" defs["structs"]["ImGuiIO"][72]["size"] = 5 defs["structs"]["ImGuiIO"][72]["type"] = "bool" defs["structs"]["ImGuiIO"][73] = {} -defs["structs"]["ImGuiIO"][73]["name"] = "MouseDownOwnedUnlessPopupClose[5]" +defs["structs"]["ImGuiIO"][73]["name"] = "MouseClickedCount[5]" defs["structs"]["ImGuiIO"][73]["size"] = 5 -defs["structs"]["ImGuiIO"][73]["type"] = "bool" +defs["structs"]["ImGuiIO"][73]["type"] = "ImU16" defs["structs"]["ImGuiIO"][74] = {} -defs["structs"]["ImGuiIO"][74]["name"] = "MouseDownDuration[5]" +defs["structs"]["ImGuiIO"][74]["name"] = "MouseClickedLastCount[5]" defs["structs"]["ImGuiIO"][74]["size"] = 5 -defs["structs"]["ImGuiIO"][74]["type"] = "float" +defs["structs"]["ImGuiIO"][74]["type"] = "ImU16" defs["structs"]["ImGuiIO"][75] = {} -defs["structs"]["ImGuiIO"][75]["name"] = "MouseDownDurationPrev[5]" +defs["structs"]["ImGuiIO"][75]["name"] = "MouseReleased[5]" defs["structs"]["ImGuiIO"][75]["size"] = 5 -defs["structs"]["ImGuiIO"][75]["type"] = "float" +defs["structs"]["ImGuiIO"][75]["type"] = "bool" defs["structs"]["ImGuiIO"][76] = {} -defs["structs"]["ImGuiIO"][76]["name"] = "MouseDragMaxDistanceAbs[5]" +defs["structs"]["ImGuiIO"][76]["name"] = "MouseDownOwned[5]" defs["structs"]["ImGuiIO"][76]["size"] = 5 -defs["structs"]["ImGuiIO"][76]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][76]["type"] = "bool" defs["structs"]["ImGuiIO"][77] = {} -defs["structs"]["ImGuiIO"][77]["name"] = "MouseDragMaxDistanceSqr[5]" +defs["structs"]["ImGuiIO"][77]["name"] = "MouseDownOwnedUnlessPopupClose[5]" defs["structs"]["ImGuiIO"][77]["size"] = 5 -defs["structs"]["ImGuiIO"][77]["type"] = "float" +defs["structs"]["ImGuiIO"][77]["type"] = "bool" defs["structs"]["ImGuiIO"][78] = {} -defs["structs"]["ImGuiIO"][78]["name"] = "KeysDownDuration[512]" -defs["structs"]["ImGuiIO"][78]["size"] = 512 +defs["structs"]["ImGuiIO"][78]["name"] = "MouseDownDuration[5]" +defs["structs"]["ImGuiIO"][78]["size"] = 5 defs["structs"]["ImGuiIO"][78]["type"] = "float" defs["structs"]["ImGuiIO"][79] = {} -defs["structs"]["ImGuiIO"][79]["name"] = "KeysDownDurationPrev[512]" -defs["structs"]["ImGuiIO"][79]["size"] = 512 +defs["structs"]["ImGuiIO"][79]["name"] = "MouseDownDurationPrev[5]" +defs["structs"]["ImGuiIO"][79]["size"] = 5 defs["structs"]["ImGuiIO"][79]["type"] = "float" defs["structs"]["ImGuiIO"][80] = {} -defs["structs"]["ImGuiIO"][80]["name"] = "NavInputsDownDuration[ImGuiNavInput_COUNT]" -defs["structs"]["ImGuiIO"][80]["size"] = 20 +defs["structs"]["ImGuiIO"][80]["name"] = "MouseDragMaxDistanceSqr[5]" +defs["structs"]["ImGuiIO"][80]["size"] = 5 defs["structs"]["ImGuiIO"][80]["type"] = "float" defs["structs"]["ImGuiIO"][81] = {} -defs["structs"]["ImGuiIO"][81]["name"] = "NavInputsDownDurationPrev[ImGuiNavInput_COUNT]" -defs["structs"]["ImGuiIO"][81]["size"] = 20 +defs["structs"]["ImGuiIO"][81]["name"] = "PenPressure" defs["structs"]["ImGuiIO"][81]["type"] = "float" defs["structs"]["ImGuiIO"][82] = {} -defs["structs"]["ImGuiIO"][82]["name"] = "PenPressure" -defs["structs"]["ImGuiIO"][82]["type"] = "float" +defs["structs"]["ImGuiIO"][82]["name"] = "AppFocusLost" +defs["structs"]["ImGuiIO"][82]["type"] = "bool" defs["structs"]["ImGuiIO"][83] = {} -defs["structs"]["ImGuiIO"][83]["name"] = "AppFocusLost" +defs["structs"]["ImGuiIO"][83]["name"] = "AppAcceptingEvents" defs["structs"]["ImGuiIO"][83]["type"] = "bool" defs["structs"]["ImGuiIO"][84] = {} -defs["structs"]["ImGuiIO"][84]["name"] = "InputQueueSurrogate" -defs["structs"]["ImGuiIO"][84]["type"] = "ImWchar16" +defs["structs"]["ImGuiIO"][84]["name"] = "BackendUsingLegacyKeyArrays" +defs["structs"]["ImGuiIO"][84]["type"] = "ImS8" defs["structs"]["ImGuiIO"][85] = {} -defs["structs"]["ImGuiIO"][85]["name"] = "InputQueueCharacters" -defs["structs"]["ImGuiIO"][85]["template_type"] = "ImWchar" -defs["structs"]["ImGuiIO"][85]["type"] = "ImVector_ImWchar" +defs["structs"]["ImGuiIO"][85]["name"] = "BackendUsingLegacyNavInputArray" +defs["structs"]["ImGuiIO"][85]["type"] = "bool" +defs["structs"]["ImGuiIO"][86] = {} +defs["structs"]["ImGuiIO"][86]["name"] = "InputQueueSurrogate" +defs["structs"]["ImGuiIO"][86]["type"] = "ImWchar16" +defs["structs"]["ImGuiIO"][87] = {} +defs["structs"]["ImGuiIO"][87]["name"] = "InputQueueCharacters" +defs["structs"]["ImGuiIO"][87]["template_type"] = "ImWchar" +defs["structs"]["ImGuiIO"][87]["type"] = "ImVector_ImWchar" defs["structs"]["ImGuiInputTextCallbackData"] = {} defs["structs"]["ImGuiInputTextCallbackData"][1] = {} defs["structs"]["ImGuiInputTextCallbackData"][1]["name"] = "EventFlag" @@ -2666,6 +3173,19 @@ defs["structs"]["ImGuiInputTextCallbackData"][11]["type"] = "int" defs["structs"]["ImGuiInputTextCallbackData"][12] = {} defs["structs"]["ImGuiInputTextCallbackData"][12]["name"] = "SelectionEnd" defs["structs"]["ImGuiInputTextCallbackData"][12]["type"] = "int" +defs["structs"]["ImGuiKeyData"] = {} +defs["structs"]["ImGuiKeyData"][1] = {} +defs["structs"]["ImGuiKeyData"][1]["name"] = "Down" +defs["structs"]["ImGuiKeyData"][1]["type"] = "bool" +defs["structs"]["ImGuiKeyData"][2] = {} +defs["structs"]["ImGuiKeyData"][2]["name"] = "DownDuration" +defs["structs"]["ImGuiKeyData"][2]["type"] = "float" +defs["structs"]["ImGuiKeyData"][3] = {} +defs["structs"]["ImGuiKeyData"][3]["name"] = "DownDurationPrev" +defs["structs"]["ImGuiKeyData"][3]["type"] = "float" +defs["structs"]["ImGuiKeyData"][4] = {} +defs["structs"]["ImGuiKeyData"][4]["name"] = "AnalogValue" +defs["structs"]["ImGuiKeyData"][4]["type"] = "float" defs["structs"]["ImGuiListClipper"] = {} defs["structs"]["ImGuiListClipper"][1] = {} defs["structs"]["ImGuiListClipper"][1]["name"] = "DisplayStart" @@ -2715,6 +3235,16 @@ defs["structs"]["ImGuiPayload"][7]["type"] = "bool" defs["structs"]["ImGuiPayload"][8] = {} defs["structs"]["ImGuiPayload"][8]["name"] = "Delivery" defs["structs"]["ImGuiPayload"][8]["type"] = "bool" +defs["structs"]["ImGuiPlatformImeData"] = {} +defs["structs"]["ImGuiPlatformImeData"][1] = {} +defs["structs"]["ImGuiPlatformImeData"][1]["name"] = "WantVisible" +defs["structs"]["ImGuiPlatformImeData"][1]["type"] = "bool" +defs["structs"]["ImGuiPlatformImeData"][2] = {} +defs["structs"]["ImGuiPlatformImeData"][2]["name"] = "InputPos" +defs["structs"]["ImGuiPlatformImeData"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiPlatformImeData"][3] = {} +defs["structs"]["ImGuiPlatformImeData"][3]["name"] = "InputLineHeight" +defs["structs"]["ImGuiPlatformImeData"][3]["type"] = "float" defs["structs"]["ImGuiSizeCallbackData"] = {} defs["structs"]["ImGuiSizeCallbackData"][1] = {} defs["structs"]["ImGuiSizeCallbackData"][1]["name"] = "UserData" @@ -2929,6 +3459,9 @@ defs["structs"]["ImGuiViewport"][4]["type"] = "ImVec2" defs["structs"]["ImGuiViewport"][5] = {} defs["structs"]["ImGuiViewport"][5]["name"] = "WorkSize" defs["structs"]["ImGuiViewport"][5]["type"] = "ImVec2" +defs["structs"]["ImGuiViewport"][6] = {} +defs["structs"]["ImGuiViewport"][6]["name"] = "PlatformHandleRaw" +defs["structs"]["ImGuiViewport"][6]["type"] = "void*" defs["structs"]["ImVec2"] = {} defs["structs"]["ImVec2"][1] = {} defs["structs"]["ImVec2"][1]["name"] = "x" @@ -2949,5 +3482,37 @@ defs["structs"]["ImVec4"][3]["type"] = "float" defs["structs"]["ImVec4"][4] = {} defs["structs"]["ImVec4"][4]["name"] = "w" defs["structs"]["ImVec4"][4]["type"] = "float" +defs["templated_structs"] = {} +defs["templated_structs"]["ImVector"] = {} +defs["templated_structs"]["ImVector"][1] = {} +defs["templated_structs"]["ImVector"][1]["name"] = "Size" +defs["templated_structs"]["ImVector"][1]["type"] = "int" +defs["templated_structs"]["ImVector"][2] = {} +defs["templated_structs"]["ImVector"][2]["name"] = "Capacity" +defs["templated_structs"]["ImVector"][2]["type"] = "int" +defs["templated_structs"]["ImVector"][3] = {} +defs["templated_structs"]["ImVector"][3]["name"] = "Data" +defs["templated_structs"]["ImVector"][3]["type"] = "T*" +defs["templates_done"] = {} +defs["templates_done"]["ImVector"] = {} +defs["templates_done"]["ImVector"]["ImDrawChannel"] = true +defs["templates_done"]["ImVector"]["ImDrawCmd"] = true +defs["templates_done"]["ImVector"]["ImDrawIdx"] = true +defs["templates_done"]["ImVector"]["ImDrawVert"] = true +defs["templates_done"]["ImVector"]["ImFont*"] = true +defs["templates_done"]["ImVector"]["ImFontAtlasCustomRect"] = true +defs["templates_done"]["ImVector"]["ImFontConfig"] = true +defs["templates_done"]["ImVector"]["ImFontGlyph"] = true +defs["templates_done"]["ImVector"]["ImGuiStoragePair"] = true +defs["templates_done"]["ImVector"]["ImGuiTextRange"] = true +defs["templates_done"]["ImVector"]["ImTextureID"] = true +defs["templates_done"]["ImVector"]["ImU32"] = true +defs["templates_done"]["ImVector"]["ImVec2"] = true +defs["templates_done"]["ImVector"]["ImVec4"] = true +defs["templates_done"]["ImVector"]["ImWchar"] = true +defs["templates_done"]["ImVector"]["char"] = true +defs["templates_done"]["ImVector"]["float"] = true +defs["typenames"] = {} +defs["typenames"]["ImVector"] = "T" return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master/typedefs_dict.json b/imgui-sys/third-party/imgui-master/typedefs_dict.json index e5de76f8c..9ae0cc212 100644 --- a/imgui-sys/third-party/imgui-master/typedefs_dict.json +++ b/imgui-sys/third-party/imgui-master/typedefs_dict.json @@ -38,16 +38,16 @@ "ImGuiInputTextCallback": "int(*)(ImGuiInputTextCallbackData* data);", "ImGuiInputTextCallbackData": "struct ImGuiInputTextCallbackData", "ImGuiInputTextFlags": "int", - "ImGuiKey": "int", - "ImGuiKeyModFlags": "int", + "ImGuiKeyChord": "int", + "ImGuiKeyData": "struct ImGuiKeyData", "ImGuiListClipper": "struct ImGuiListClipper", "ImGuiMemAllocFunc": "void*(*)(size_t sz,void* user_data);", "ImGuiMemFreeFunc": "void(*)(void* ptr,void* user_data);", "ImGuiMouseButton": "int", "ImGuiMouseCursor": "int", - "ImGuiNavInput": "int", "ImGuiOnceUponAFrame": "struct ImGuiOnceUponAFrame", "ImGuiPayload": "struct ImGuiPayload", + "ImGuiPlatformImeData": "struct ImGuiPlatformImeData", "ImGuiPopupFlags": "int", "ImGuiSelectableFlags": "int", "ImGuiSizeCallback": "void(*)(ImGuiSizeCallbackData* data);", @@ -75,12 +75,12 @@ "ImGuiWindowFlags": "int", "ImS16": "signed short", "ImS32": "signed int", - "ImS64": "int64_t", + "ImS64": "signed long long", "ImS8": "signed char", "ImTextureID": "void*", "ImU16": "unsigned short", "ImU32": "unsigned int", - "ImU64": "uint64_t", + "ImU64": "unsigned long long", "ImU8": "unsigned char", "ImVec2": "struct ImVec2", "ImVec4": "struct ImVec4", diff --git a/imgui-sys/third-party/imgui-master/typedefs_dict.lua b/imgui-sys/third-party/imgui-master/typedefs_dict.lua index 9876c5317..5deb10754 100644 --- a/imgui-sys/third-party/imgui-master/typedefs_dict.lua +++ b/imgui-sys/third-party/imgui-master/typedefs_dict.lua @@ -38,16 +38,16 @@ defs["ImGuiIO"] = "struct ImGuiIO" defs["ImGuiInputTextCallback"] = "int(*)(ImGuiInputTextCallbackData* data);" defs["ImGuiInputTextCallbackData"] = "struct ImGuiInputTextCallbackData" defs["ImGuiInputTextFlags"] = "int" -defs["ImGuiKey"] = "int" -defs["ImGuiKeyModFlags"] = "int" +defs["ImGuiKeyChord"] = "int" +defs["ImGuiKeyData"] = "struct ImGuiKeyData" defs["ImGuiListClipper"] = "struct ImGuiListClipper" defs["ImGuiMemAllocFunc"] = "void*(*)(size_t sz,void* user_data);" defs["ImGuiMemFreeFunc"] = "void(*)(void* ptr,void* user_data);" defs["ImGuiMouseButton"] = "int" defs["ImGuiMouseCursor"] = "int" -defs["ImGuiNavInput"] = "int" defs["ImGuiOnceUponAFrame"] = "struct ImGuiOnceUponAFrame" defs["ImGuiPayload"] = "struct ImGuiPayload" +defs["ImGuiPlatformImeData"] = "struct ImGuiPlatformImeData" defs["ImGuiPopupFlags"] = "int" defs["ImGuiSelectableFlags"] = "int" defs["ImGuiSizeCallback"] = "void(*)(ImGuiSizeCallbackData* data);" @@ -75,12 +75,12 @@ defs["ImGuiViewportFlags"] = "int" defs["ImGuiWindowFlags"] = "int" defs["ImS16"] = "signed short" defs["ImS32"] = "signed int" -defs["ImS64"] = "int64_t" +defs["ImS64"] = "signed long long" defs["ImS8"] = "signed char" defs["ImTextureID"] = "void*" defs["ImU16"] = "unsigned short" defs["ImU32"] = "unsigned int" -defs["ImU64"] = "uint64_t" +defs["ImU64"] = "unsigned long long" defs["ImU8"] = "unsigned char" defs["ImVec2"] = "struct ImVec2" defs["ImVec4"] = "struct ImVec4" diff --git a/imgui-sys/third-party/update-imgui.sh b/imgui-sys/third-party/update-imgui.sh index ec757a479..c867b9e85 100755 --- a/imgui-sys/third-party/update-imgui.sh +++ b/imgui-sys/third-party/update-imgui.sh @@ -4,5 +4,5 @@ set -euo pipefail SCRIPT_DIR=$(dirname ${0} | python3 -c 'import os, sys; print(os.path.abspath(sys.stdin.read().strip()))' ) cd ${SCRIPT_DIR} -./_update-imgui.sh ~/code/vendor/imgui v1.86 ./imgui-master/imgui -./_update-imgui.sh ~/code/vendor/imgui 15b4a064f9244c430e65214f7249b615fb394321 ./imgui-docking/imgui +./_update-imgui.sh ~/code/vendor/imgui v1.89.1 ./imgui-master/imgui +./_update-imgui.sh ~/code/vendor/imgui 540909bddf2f2b094a650b4bf5d01757fbd69418 ./imgui-docking/imgui diff --git a/imgui-winit-support/src/lib.rs b/imgui-winit-support/src/lib.rs index a907fb9d9..09d167a87 100644 --- a/imgui-winit-support/src/lib.rs +++ b/imgui-winit-support/src/lib.rs @@ -203,6 +203,42 @@ impl HiDpiMode { } } +fn to_imgui_key(keycode: VirtualKeyCode) -> Option { + match keycode { + VirtualKeyCode::Tab => Some(Key::Tab), + VirtualKeyCode::Left => Some(Key::LeftArrow), + VirtualKeyCode::Right => Some(Key::RightArrow), + VirtualKeyCode::Up => Some(Key::UpArrow), + VirtualKeyCode::Down => Some(Key::DownArrow), + VirtualKeyCode::PageUp => Some(Key::PageUp), + VirtualKeyCode::PageDown => Some(Key::PageDown), + VirtualKeyCode::Home => Some(Key::Home), + VirtualKeyCode::End => Some(Key::End), + VirtualKeyCode::Insert => Some(Key::Insert), + VirtualKeyCode::Delete => Some(Key::Delete), + VirtualKeyCode::Back => Some(Key::Backspace), + VirtualKeyCode::Space => Some(Key::Space), + VirtualKeyCode::Return => Some(Key::Enter), + VirtualKeyCode::Escape => Some(Key::Escape), + VirtualKeyCode::NumpadEnter => Some(Key::KeypadEnter), + VirtualKeyCode::A => Some(Key::A), + VirtualKeyCode::C => Some(Key::C), + VirtualKeyCode::V => Some(Key::V), + VirtualKeyCode::X => Some(Key::X), + VirtualKeyCode::Y => Some(Key::Y), + VirtualKeyCode::Z => Some(Key::Z), + VirtualKeyCode::LControl => Some(Key::LeftCtrl), + VirtualKeyCode::RControl => Some(Key::RightCtrl), + VirtualKeyCode::LShift => Some(Key::LeftShift), + VirtualKeyCode::RShift => Some(Key::RightShift), + VirtualKeyCode::LAlt => Some(Key::LeftAlt), + VirtualKeyCode::RAlt => Some(Key::RightAlt), + VirtualKeyCode::LWin => Some(Key::LeftSuper), + VirtualKeyCode::RWin => Some(Key::RightSuper), + _ => None, + } +} + impl WinitPlatform { /// Initializes a winit platform instance and configures imgui. /// @@ -215,28 +251,6 @@ impl WinitPlatform { let io = imgui.io_mut(); io.backend_flags.insert(BackendFlags::HAS_MOUSE_CURSORS); io.backend_flags.insert(BackendFlags::HAS_SET_MOUSE_POS); - io[Key::Tab] = VirtualKeyCode::Tab as _; - io[Key::LeftArrow] = VirtualKeyCode::Left as _; - io[Key::RightArrow] = VirtualKeyCode::Right as _; - io[Key::UpArrow] = VirtualKeyCode::Up as _; - io[Key::DownArrow] = VirtualKeyCode::Down as _; - io[Key::PageUp] = VirtualKeyCode::PageUp as _; - io[Key::PageDown] = VirtualKeyCode::PageDown as _; - io[Key::Home] = VirtualKeyCode::Home as _; - io[Key::End] = VirtualKeyCode::End as _; - io[Key::Insert] = VirtualKeyCode::Insert as _; - io[Key::Delete] = VirtualKeyCode::Delete as _; - io[Key::Backspace] = VirtualKeyCode::Back as _; - io[Key::Space] = VirtualKeyCode::Space as _; - io[Key::Enter] = VirtualKeyCode::Return as _; - io[Key::Escape] = VirtualKeyCode::Escape as _; - io[Key::KeyPadEnter] = VirtualKeyCode::NumpadEnter as _; - io[Key::A] = VirtualKeyCode::A as _; - io[Key::C] = VirtualKeyCode::C as _; - io[Key::V] = VirtualKeyCode::V as _; - io[Key::X] = VirtualKeyCode::X as _; - io[Key::Y] = VirtualKeyCode::Y as _; - io[Key::Z] = VirtualKeyCode::Z as _; imgui.set_platform_name(Some(format!( "imgui-winit-support {}", env!("CARGO_PKG_VERSION") @@ -353,7 +367,9 @@ impl WinitPlatform { }), .. } => { - io.keys_down[key as usize] = false; + if let Some(key) = to_imgui_key(key) { + io.add_key_event(key, false); + } } _ => (), } @@ -395,19 +411,9 @@ impl WinitPlatform { }, .. } => { - let pressed = state == ElementState::Pressed; - io.keys_down[key as usize] = pressed; - - // This is a bit redundant here, but we'll leave it in. The OS occasionally - // fails to send modifiers keys, but it doesn't seem to send false-positives, - // so double checking isn't terrible in case some system *doesn't* send - // device events sometimes. - match key { - VirtualKeyCode::LShift | VirtualKeyCode::RShift => io.key_shift = pressed, - VirtualKeyCode::LControl | VirtualKeyCode::RControl => io.key_ctrl = pressed, - VirtualKeyCode::LAlt | VirtualKeyCode::RAlt => io.key_alt = pressed, - VirtualKeyCode::LWin | VirtualKeyCode::RWin => io.key_super = pressed, - _ => (), + if let Some(key) = to_imgui_key(key) { + let pressed = state == ElementState::Pressed; + io.add_key_event(key, pressed); } } WindowEvent::ReceivedCharacter(ch) => { @@ -420,7 +426,8 @@ impl WinitPlatform { WindowEvent::CursorMoved { position, .. } => { let position = position.to_logical(window.scale_factor()); let position = self.scale_pos_from_winit(window, position); - io.mouse_pos = [position.x as f32, position.y as f32]; + //io.mouse_pos = [position.x as f32, position.y as f32]; + io.add_mouse_pos_event([position.x as f32, position.y as f32]); } WindowEvent::MouseWheel { delta, diff --git a/imgui/src/draw_list.rs b/imgui/src/draw_list.rs index 01800617a..c30938c53 100644 --- a/imgui/src/draw_list.rs +++ b/imgui/src/draw_list.rs @@ -348,7 +348,7 @@ impl<'ui> DrawListMut<'ui> { unsafe { let start = text.as_ptr() as *const c_char; let end = (start as usize + text.len()) as *const c_char; - sys::ImDrawList_AddTextVec2( + sys::ImDrawList_AddText_Vec2( self.draw_list, pos.into().into(), col.into().into(), diff --git a/imgui/src/input/keyboard.rs b/imgui/src/input/keyboard.rs index 6158745ec..a0e302bcf 100644 --- a/imgui/src/input/keyboard.rs +++ b/imgui/src/input/keyboard.rs @@ -21,13 +21,131 @@ pub enum Key { Space = sys::ImGuiKey_Space, Enter = sys::ImGuiKey_Enter, Escape = sys::ImGuiKey_Escape, - KeyPadEnter = sys::ImGuiKey_KeyPadEnter, + LeftCtrl = sys::ImGuiKey_LeftCtrl, + LeftShift = sys::ImGuiKey_LeftShift, + LeftAlt = sys::ImGuiKey_LeftAlt, + LeftSuper = sys::ImGuiKey_LeftSuper, + RightCtrl = sys::ImGuiKey_RightCtrl, + RightShift = sys::ImGuiKey_RightShift, + RightAlt = sys::ImGuiKey_RightAlt, + RightSuper = sys::ImGuiKey_RightSuper, + Menu = sys::ImGuiKey_Menu, + Alpha0 = sys::ImGuiKey_0, + Alpha1 = sys::ImGuiKey_1, + Alpha2 = sys::ImGuiKey_2, + Alpha3 = sys::ImGuiKey_3, + Alpha4 = sys::ImGuiKey_4, + Alpha5 = sys::ImGuiKey_5, + Alpha6 = sys::ImGuiKey_6, + Alpha7 = sys::ImGuiKey_7, + Alpha8 = sys::ImGuiKey_8, + Alpha9 = sys::ImGuiKey_9, A = sys::ImGuiKey_A, + B = sys::ImGuiKey_B, C = sys::ImGuiKey_C, + D = sys::ImGuiKey_D, + E = sys::ImGuiKey_E, + F = sys::ImGuiKey_F, + G = sys::ImGuiKey_G, + H = sys::ImGuiKey_H, + I = sys::ImGuiKey_I, + J = sys::ImGuiKey_J, + K = sys::ImGuiKey_K, + L = sys::ImGuiKey_L, + M = sys::ImGuiKey_M, + N = sys::ImGuiKey_N, + O = sys::ImGuiKey_O, + P = sys::ImGuiKey_P, + Q = sys::ImGuiKey_Q, + R = sys::ImGuiKey_R, + S = sys::ImGuiKey_S, + T = sys::ImGuiKey_T, + U = sys::ImGuiKey_U, V = sys::ImGuiKey_V, + W = sys::ImGuiKey_W, X = sys::ImGuiKey_X, Y = sys::ImGuiKey_Y, Z = sys::ImGuiKey_Z, + F1 = sys::ImGuiKey_F1, + F2 = sys::ImGuiKey_F2, + F3 = sys::ImGuiKey_F3, + F4 = sys::ImGuiKey_F4, + F5 = sys::ImGuiKey_F5, + F6 = sys::ImGuiKey_F6, + F7 = sys::ImGuiKey_F7, + F8 = sys::ImGuiKey_F8, + F9 = sys::ImGuiKey_F9, + F10 = sys::ImGuiKey_F10, + F11 = sys::ImGuiKey_F11, + F12 = sys::ImGuiKey_F12, + Apostrophe = sys::ImGuiKey_Apostrophe, + Comma = sys::ImGuiKey_Comma, + Minus = sys::ImGuiKey_Minus, + Period = sys::ImGuiKey_Period, + Slash = sys::ImGuiKey_Slash, + Semicolon = sys::ImGuiKey_Semicolon, + Equal = sys::ImGuiKey_Equal, + LeftBracket = sys::ImGuiKey_LeftBracket, + Backslash = sys::ImGuiKey_Backslash, + RightBracket = sys::ImGuiKey_RightBracket, + GraveAccent = sys::ImGuiKey_GraveAccent, + CapsLock = sys::ImGuiKey_CapsLock, + ScrollLock = sys::ImGuiKey_ScrollLock, + NumLock = sys::ImGuiKey_NumLock, + PrintScreen = sys::ImGuiKey_PrintScreen, + Pause = sys::ImGuiKey_Pause, + Keypad0 = sys::ImGuiKey_Keypad0, + Keypad1 = sys::ImGuiKey_Keypad1, + Keypad2 = sys::ImGuiKey_Keypad2, + Keypad3 = sys::ImGuiKey_Keypad3, + Keypad4 = sys::ImGuiKey_Keypad4, + Keypad5 = sys::ImGuiKey_Keypad5, + Keypad6 = sys::ImGuiKey_Keypad6, + Keypad7 = sys::ImGuiKey_Keypad7, + Keypad8 = sys::ImGuiKey_Keypad8, + Keypad9 = sys::ImGuiKey_Keypad9, + KeypadDecimal = sys::ImGuiKey_KeypadDecimal, + KeypadDivide = sys::ImGuiKey_KeypadDivide, + KeypadMultiply = sys::ImGuiKey_KeypadMultiply, + KeypadSubtract = sys::ImGuiKey_KeypadSubtract, + KeypadAdd = sys::ImGuiKey_KeypadAdd, + KeypadEnter = sys::ImGuiKey_KeypadEnter, + KeypadEqual = sys::ImGuiKey_KeypadEqual, + GamepadStart = sys::ImGuiKey_GamepadStart, + GamepadBack = sys::ImGuiKey_GamepadBack, + GamepadFaceLeft = sys::ImGuiKey_GamepadFaceLeft, + GamepadFaceRight = sys::ImGuiKey_GamepadFaceRight, + GamepadFaceUp = sys::ImGuiKey_GamepadFaceUp, + GamepadFaceDown = sys::ImGuiKey_GamepadFaceDown, + GamepadDpadLeft = sys::ImGuiKey_GamepadDpadLeft, + GamepadDpadRight = sys::ImGuiKey_GamepadDpadRight, + GamepadDpadUp = sys::ImGuiKey_GamepadDpadUp, + GamepadDpadDown = sys::ImGuiKey_GamepadDpadDown, + GamepadL1 = sys::ImGuiKey_GamepadL1, + GamepadR1 = sys::ImGuiKey_GamepadR1, + GamepadL2 = sys::ImGuiKey_GamepadL2, + GamepadR2 = sys::ImGuiKey_GamepadR2, + GamepadL3 = sys::ImGuiKey_GamepadL3, + GamepadR3 = sys::ImGuiKey_GamepadR3, + GamepadLStickLeft = sys::ImGuiKey_GamepadLStickLeft, + GamepadLStickRight = sys::ImGuiKey_GamepadLStickRight, + GamepadLStickUp = sys::ImGuiKey_GamepadLStickUp, + GamepadLStickDown = sys::ImGuiKey_GamepadLStickDown, + GamepadRStickLeft = sys::ImGuiKey_GamepadRStickLeft, + GamepadRStickRight = sys::ImGuiKey_GamepadRStickRight, + GamepadRStickUp = sys::ImGuiKey_GamepadRStickUp, + GamepadRStickDown = sys::ImGuiKey_GamepadRStickDown, + MouseLeft = sys::ImGuiKey_MouseLeft, + MouseRight = sys::ImGuiKey_MouseRight, + MouseMiddle = sys::ImGuiKey_MouseMiddle, + MouseX1 = sys::ImGuiKey_MouseX1, + MouseX2 = sys::ImGuiKey_MouseX2, + MouseWheelX = sys::ImGuiKey_MouseWheelX, + MouseWheelY = sys::ImGuiKey_MouseWheelY, + ReservedForModCtrl = sys::ImGuiKey_ReservedForModCtrl, + ReservedForModShift = sys::ImGuiKey_ReservedForModShift, + ReservedForModAlt = sys::ImGuiKey_ReservedForModAlt, + ReservedForModSuper = sys::ImGuiKey_ReservedForModSuper, } impl Key { @@ -48,23 +166,134 @@ impl Key { Key::Space, Key::Enter, Key::Escape, - Key::KeyPadEnter, + Key::LeftCtrl, + Key::LeftShift, + Key::LeftAlt, + Key::LeftSuper, + Key::RightCtrl, + Key::RightShift, + Key::RightAlt, + Key::RightSuper, + Key::Menu, + Key::Alpha0, + Key::Alpha1, + Key::Alpha2, + Key::Alpha3, + Key::Alpha4, + Key::Alpha5, + Key::Alpha6, + Key::Alpha7, + Key::Alpha8, + Key::Alpha9, Key::A, + Key::B, Key::C, + Key::D, + Key::E, + Key::F, + Key::G, + Key::H, + Key::I, + Key::J, + Key::K, + Key::L, + Key::M, + Key::N, + Key::O, + Key::P, + Key::Q, + Key::R, + Key::S, + Key::T, + Key::U, Key::V, + Key::W, Key::X, Key::Y, Key::Z, + Key::F1, + Key::F2, + Key::F3, + Key::F4, + Key::F5, + Key::F6, + Key::F7, + Key::F8, + Key::F9, + Key::F10, + Key::F11, + Key::F12, + Key::Apostrophe, + Key::Comma, + Key::Minus, + Key::Period, + Key::Slash, + Key::Semicolon, + Key::Equal, + Key::LeftBracket, + Key::Backslash, + Key::RightBracket, + Key::GraveAccent, + Key::CapsLock, + Key::ScrollLock, + Key::NumLock, + Key::PrintScreen, + Key::Pause, + Key::Keypad0, + Key::Keypad1, + Key::Keypad2, + Key::Keypad3, + Key::Keypad4, + Key::Keypad5, + Key::Keypad6, + Key::Keypad7, + Key::Keypad8, + Key::Keypad9, + Key::KeypadDecimal, + Key::KeypadDivide, + Key::KeypadMultiply, + Key::KeypadSubtract, + Key::KeypadAdd, + Key::KeypadEnter, + Key::KeypadEqual, + Key::GamepadStart, + Key::GamepadBack, + Key::GamepadFaceLeft, + Key::GamepadFaceRight, + Key::GamepadFaceUp, + Key::GamepadFaceDown, + Key::GamepadDpadLeft, + Key::GamepadDpadRight, + Key::GamepadDpadUp, + Key::GamepadDpadDown, + Key::GamepadL1, + Key::GamepadR1, + Key::GamepadL2, + Key::GamepadR2, + Key::GamepadL3, + Key::GamepadR3, + Key::GamepadLStickLeft, + Key::GamepadLStickRight, + Key::GamepadLStickUp, + Key::GamepadLStickDown, + Key::GamepadRStickLeft, + Key::GamepadRStickRight, + Key::GamepadRStickUp, + Key::GamepadRStickDown, + Key::MouseLeft, + Key::MouseRight, + Key::MouseMiddle, + Key::MouseX1, + Key::MouseX2, + Key::MouseWheelX, + Key::MouseWheelY, + Key::ReservedForModCtrl, + Key::ReservedForModShift, + Key::ReservedForModAlt, + Key::ReservedForModSuper, ]; /// Total count of `Key` variants - pub const COUNT: usize = sys::ImGuiKey_COUNT as usize; -} - -#[test] -fn test_key_variants() { - for (idx, &value) in Key::VARIANTS.iter().enumerate() { - assert_eq!(idx, value as usize); - } + pub const COUNT: usize = sys::ImGuiKey_NamedKey_COUNT as usize; } /// Target widget selection for keyboard focus @@ -98,8 +327,8 @@ impl Ui { /// Equivalent to indexing the Io struct `key_map` field: `ui.io().key_map[key]` #[inline] #[doc(alias = "GetKeyIndex")] - fn key_index(&self, key: Key) -> i32 { - unsafe { sys::igGetKeyIndex(key as i32) } + fn key_index(&self, key: Key) -> u32 { + unsafe { sys::igGetKeyIndex(key as u32) } } /// Returns true if the key is being held. /// @@ -115,7 +344,7 @@ impl Ui { /// index is defined by your backend implementation. #[inline] #[doc(alias = "IsKeyDown")] - pub fn is_key_index_down(&self, key_index: i32) -> bool { + pub fn is_key_index_down(&self, key_index: u32) -> bool { unsafe { sys::igIsKeyDown(key_index) } } @@ -135,7 +364,7 @@ impl Ui { /// implementation. #[inline] #[doc(alias = "IsKeyPressed")] - pub fn is_key_index_pressed(&self, key_index: i32) -> bool { + pub fn is_key_index_pressed(&self, key_index: u32) -> bool { unsafe { sys::igIsKeyPressed(key_index, true) } } @@ -156,7 +385,7 @@ impl Ui { /// implementation. #[inline] #[doc(alias = "IsKeyPressed")] - pub fn is_key_index_pressed_no_repeat(&self, key_index: i32) -> bool { + pub fn is_key_index_pressed_no_repeat(&self, key_index: u32) -> bool { unsafe { sys::igIsKeyPressed(key_index, false) } } @@ -174,7 +403,7 @@ impl Ui { /// implementation. #[inline] #[doc(alias = "IsKeyReleased")] - pub fn is_key_index_released(&self, key_index: i32) -> bool { + pub fn is_key_index_released(&self, key_index: u32) -> bool { unsafe { sys::igIsKeyReleased(key_index) } } @@ -192,7 +421,7 @@ impl Ui { /// Same as [`crate::Ui::key_pressed_amount`] but takes a key index. #[inline] #[doc(alias = "GetKeyPressedAmount")] - pub fn key_index_pressed_amount(&self, key_index: i32, repeat_delay: f32, rate: f32) -> u32 { + pub fn key_index_pressed_amount(&self, key_index: u32, repeat_delay: f32, rate: f32) -> u32 { unsafe { sys::igGetKeyPressedAmount(key_index, repeat_delay, rate) as u32 } } diff --git a/imgui/src/io.rs b/imgui/src/io.rs index 50f89758b..6157fce00 100644 --- a/imgui/src/io.rs +++ b/imgui/src/io.rs @@ -120,7 +120,7 @@ impl NavInput { NavInput::TweakFast, ]; /// Amount of internal/hidden variants (not exposed by imgui-rs) - const INTERNAL_COUNT: usize = 4; + const INTERNAL_COUNT: usize = 0; /// Total count of `NavInput` variants pub const COUNT: usize = sys::ImGuiNavInput_COUNT as usize - NavInput::INTERNAL_COUNT; } @@ -155,14 +155,14 @@ pub struct Io { pub mouse_double_click_max_dist: f32, /// Distance threshold before considering we are dragging pub mouse_drag_threshold: f32, - /// Map of indices into the `keys_down` entries array, which represent your "native" keyboard - /// state - pub key_map: [u32; sys::ImGuiKey_COUNT as usize], /// When holding a key/button, time before it starts repeating, in seconds pub key_repeat_delay: f32, /// When holding a key/button, rate at which it repeats, in seconds pub key_repeat_rate: f32, + pub hover_delay_normal: f32, + pub hover_delay_short: f32, + user_data: *mut c_void, pub(crate) fonts: *mut FontAtlas, @@ -206,8 +206,10 @@ pub struct Io { /// * Double-click selects by word instead of selecting the whole text /// * Multi-selection in lists uses Cmd/Super instead of Ctrl pub config_mac_os_behaviors: bool, + pub config_input_trickle_event_queue: bool, /// Set to false to disable blinking cursor pub config_input_text_cursor_blink: bool, + pub config_input_text_enter_keep_active: bool, /// Enable turning DragXXX widgets into text input with a simple mouse /// click-release (without moving). Not desirable on devices without a /// keyboard. @@ -235,43 +237,13 @@ pub struct Io { pub(crate) set_clipboard_text_fn: Option, pub(crate) clipboard_user_data: *mut c_void, - #[cfg(not(feature = "docking"))] - ime_set_input_screen_pos_fn: - Option, - #[cfg(not(feature = "docking"))] - ime_window_handle: *mut c_void, - /// Mouse position, in pixels. - /// - /// Set to [f32::MAX, f32::MAX] if mouse is unavailable (on another screen, etc.). - pub mouse_pos: [f32; 2], - /// Mouse buttons: 0=left, 1=right, 2=middle + extras - pub mouse_down: [bool; 5], - /// Mouse wheel (vertical). - /// - /// 1 unit scrolls about 5 lines of text. - pub mouse_wheel: f32, - /// Mouse wheel (horizontal). - /// - /// Most users don't have a mouse with a horizontal wheel, and may not be filled by all - /// backends. - pub mouse_wheel_h: f32, - #[cfg(feature = "docking")] - pub mouse_hovered_viewport: sys::ImGuiID, - /// Keyboard modifier pressed: Control - pub key_ctrl: bool, - /// Keyboard modifier pressed: Shift - pub key_shift: bool, - /// Keyboard modifier pressed: Alt - pub key_alt: bool, - /// Keyboard modifier pressed: Cmd/Super/Windows - pub key_super: bool, - /// Keyboard keys that are pressed (indexing defined by the user/application) - pub keys_down: [bool; 512], - /// Gamepad inputs. - /// - /// Cleared back to zero after each frame. Keyboard keys will be auto-mapped and written - /// here by `frame()`. - pub nav_inputs: [f32; NavInput::COUNT + NavInput::INTERNAL_COUNT], + pub set_platform_ime_data_fn: Option< + unsafe extern "C" fn( + viewport: *mut sys::ImGuiViewport, + data: *mut sys::ImGuiPlatformImeData, + ), + >, + unused_padding: *mut c_void, /// When true, imgui-rs will use the mouse inputs, so do not dispatch them to your main /// game/application pub want_capture_mouse: bool, @@ -315,11 +287,44 @@ pub struct Io { /// Note that this is zero if either current or previous position is invalid ([f32::MAX, /// f32::MAX]), so a disappearing/reappearing mouse won't have a huge delta. pub mouse_delta: [f32; 2], + /// Map of indices into the `keys_down` entries array, which represent your "native" keyboard + /// state + pub key_map: [u32; sys::ImGuiKey_COUNT as usize], + /// Keyboard keys that are pressed (indexing defined by the user/application) + pub keys_down: [bool; sys::ImGuiKey_COUNT as usize], + /// Gamepad inputs. + /// + /// Cleared back to zero after each frame. Keyboard keys will be auto-mapped and written + /// here by `frame()`. + pub nav_inputs: [f32; NavInput::COUNT + NavInput::INTERNAL_COUNT], + /// Mouse position, in pixels. + /// + /// Set to [f32::MAX, f32::MAX] if mouse is unavailable (on another screen, etc.). + pub mouse_pos: [f32; 2], + /// Mouse buttons: 0=left, 1=right, 2=middle + extras + pub mouse_down: [bool; 5], + /// Mouse wheel (vertical). + /// + /// 1 unit scrolls about 5 lines of text. + pub mouse_wheel: f32, + /// Mouse wheel (horizontal). + /// + /// Most users don't have a mouse with a horizontal wheel, and may not be filled by all + /// backends. + pub mouse_wheel_h: f32, + /// Keyboard modifier pressed: Control + pub key_ctrl: bool, + /// Keyboard modifier pressed: Shift + pub key_shift: bool, + /// Keyboard modifier pressed: Alt + pub key_alt: bool, + /// Keyboard modifier pressed: Cmd/Super/Windows + pub key_super: bool, + key_mods: sys::ImGuiKeyChord, + keys_data: [sys::ImGuiKeyData; sys::ImGuiKey_COUNT as usize], pub want_capture_mouse_unless_popup_close: bool, - key_mods: sys::ImGuiKeyModFlags, - key_mods_prev: sys::ImGuiKeyModFlags, mouse_pos_prev: [f32; 2], mouse_clicked_pos: [[f32; 2]; 5], mouse_clicked_time: [f64; 5], @@ -332,18 +337,18 @@ pub struct Io { mouse_down_owned_unless_popup_close: [bool; 5], mouse_down_duration: [f32; 5], mouse_down_duration_prev: [f32; 5], - mouse_drag_max_distance_abs: [[f32; 2]; 5], mouse_drag_max_distance_sqr: [f32; 5], - keys_down_duration: [f32; 512], - keys_down_duration_prev: [f32; 512], - nav_inputs_down_duration: [f32; NavInput::COUNT + NavInput::INTERNAL_COUNT], - nav_inputs_down_duration_prev: [f32; NavInput::COUNT + NavInput::INTERNAL_COUNT], pen_pressure: f32, /// Clear buttons state when focus is lost (this is useful so /// e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger /// the Alt menu toggle) pub app_focus_lost: bool, + + app_accepting_events: bool, + backend_using_legacy_key_arrays: sys::ImS8, + backend_using_legacy_nav_input_array: bool, + input_queue_surrogate: sys::ImWchar16, input_queue_characters: ImVector, } @@ -391,6 +396,30 @@ impl Io { pub fn update_delta_time(&mut self, delta: Duration) { self.delta_time = delta.as_secs_f32().max(f32::MIN_POSITIVE); } + + pub fn add_mouse_pos_event(&mut self, pos: [f32; 2]) { + unsafe { + sys::ImGuiIO_AddMousePosEvent(self.raw_mut(), pos[0], pos[1]); + } + } + + pub fn add_mouse_button_event(&mut self, button: MouseButton, down: bool) { + unsafe { + sys::ImGuiIO_AddMouseButtonEvent(self.raw_mut(), button as i32, down); + } + } + + pub fn add_mouse_wheel_event(&mut self, wheel: [f32; 2]) { + unsafe { + sys::ImGuiIO_AddMouseWheelEvent(self.raw_mut(), wheel[0], wheel[1]); + } + } + + pub fn add_key_event(&mut self, key: Key, down: bool) { + unsafe { + sys::ImGuiIO_AddKeyEvent(self.raw_mut(), key as u32, down); + } + } } impl Index for Io { @@ -457,9 +486,10 @@ fn test_io_memory_layout() { assert_field_offset!(mouse_double_click_time, MouseDoubleClickTime); assert_field_offset!(mouse_double_click_max_dist, MouseDoubleClickMaxDist); assert_field_offset!(mouse_drag_threshold, MouseDragThreshold); - assert_field_offset!(key_map, KeyMap); assert_field_offset!(key_repeat_delay, KeyRepeatDelay); assert_field_offset!(key_repeat_rate, KeyRepeatRate); + assert_field_offset!(hover_delay_normal, HoverDelayNormal); + assert_field_offset!(hover_delay_short, HoverDelayShort); assert_field_offset!(user_data, UserData); assert_field_offset!(fonts, Fonts); assert_field_offset!(font_global_scale, FontGlobalScale); @@ -468,7 +498,15 @@ fn test_io_memory_layout() { assert_field_offset!(display_framebuffer_scale, DisplayFramebufferScale); assert_field_offset!(mouse_draw_cursor, MouseDrawCursor); assert_field_offset!(config_mac_os_behaviors, ConfigMacOSXBehaviors); + assert_field_offset!( + config_input_trickle_event_queue, + ConfigInputTrickleEventQueue + ); assert_field_offset!(config_input_text_cursor_blink, ConfigInputTextCursorBlink); + assert_field_offset!( + config_input_text_enter_keep_active, + ConfigInputTextEnterKeepActive + ); assert_field_offset!( config_windows_resize_from_edges, ConfigWindowsResizeFromEdges @@ -485,20 +523,8 @@ fn test_io_memory_layout() { assert_field_offset!(get_clipboard_text_fn, GetClipboardTextFn); assert_field_offset!(set_clipboard_text_fn, SetClipboardTextFn); assert_field_offset!(clipboard_user_data, ClipboardUserData); - #[cfg(not(feature = "docking"))] - assert_field_offset!(ime_set_input_screen_pos_fn, ImeSetInputScreenPosFn); - #[cfg(not(feature = "docking"))] - assert_field_offset!(ime_window_handle, ImeWindowHandle); - assert_field_offset!(mouse_pos, MousePos); - assert_field_offset!(mouse_down, MouseDown); - assert_field_offset!(mouse_wheel, MouseWheel); - assert_field_offset!(mouse_wheel_h, MouseWheelH); - assert_field_offset!(key_ctrl, KeyCtrl); - assert_field_offset!(key_shift, KeyShift); - assert_field_offset!(key_alt, KeyAlt); - assert_field_offset!(key_super, KeySuper); - assert_field_offset!(keys_down, KeysDown); - assert_field_offset!(nav_inputs, NavInputs); + assert_field_offset!(set_platform_ime_data_fn, SetPlatformImeDataFn); + assert_field_offset!(unused_padding, _UnusedPadding); assert_field_offset!(want_capture_mouse, WantCaptureMouse); assert_field_offset!(want_capture_keyboard, WantCaptureKeyboard); assert_field_offset!(want_text_input, WantTextInput); @@ -513,8 +539,23 @@ fn test_io_memory_layout() { assert_field_offset!(metrics_active_windows, MetricsActiveWindows); assert_field_offset!(metrics_active_allocations, MetricsActiveAllocations); assert_field_offset!(mouse_delta, MouseDelta); + assert_field_offset!(key_map, KeyMap); + assert_field_offset!(keys_down, KeysDown); + assert_field_offset!(nav_inputs, NavInputs); + assert_field_offset!(mouse_pos, MousePos); + assert_field_offset!(mouse_down, MouseDown); + assert_field_offset!(mouse_wheel, MouseWheel); + assert_field_offset!(mouse_wheel_h, MouseWheelH); + assert_field_offset!(key_ctrl, KeyCtrl); + assert_field_offset!(key_shift, KeyShift); + assert_field_offset!(key_alt, KeyAlt); + assert_field_offset!(key_super, KeySuper); assert_field_offset!(key_mods, KeyMods); - assert_field_offset!(key_mods_prev, KeyModsPrev); + assert_field_offset!(keys_data, KeysData); + assert_field_offset!( + want_capture_mouse_unless_popup_close, + WantCaptureMouseUnlessPopupClose + ); assert_field_offset!(mouse_pos_prev, MousePosPrev); assert_field_offset!(mouse_clicked_pos, MouseClickedPos); assert_field_offset!(mouse_clicked_time, MouseClickedTime); @@ -526,13 +567,15 @@ fn test_io_memory_layout() { assert_field_offset!(mouse_down_owned, MouseDownOwned); assert_field_offset!(mouse_down_duration, MouseDownDuration); assert_field_offset!(mouse_down_duration_prev, MouseDownDurationPrev); - assert_field_offset!(mouse_drag_max_distance_abs, MouseDragMaxDistanceAbs); assert_field_offset!(mouse_drag_max_distance_sqr, MouseDragMaxDistanceSqr); - assert_field_offset!(keys_down_duration, KeysDownDuration); - assert_field_offset!(keys_down_duration_prev, KeysDownDurationPrev); - assert_field_offset!(nav_inputs_down_duration, NavInputsDownDuration); - assert_field_offset!(nav_inputs_down_duration_prev, NavInputsDownDurationPrev); assert_field_offset!(pen_pressure, PenPressure); + assert_field_offset!(app_focus_lost, AppFocusLost); + assert_field_offset!(app_accepting_events, AppAcceptingEvents); + assert_field_offset!(backend_using_legacy_key_arrays, BackendUsingLegacyKeyArrays); + assert_field_offset!( + backend_using_legacy_nav_input_array, + BackendUsingLegacyNavInputArray + ); assert_field_offset!(input_queue_surrogate, InputQueueSurrogate); assert_field_offset!(input_queue_characters, InputQueueCharacters); } diff --git a/imgui/src/lib.rs b/imgui/src/lib.rs index 02b858d10..e59cec50b 100644 --- a/imgui/src/lib.rs +++ b/imgui/src/lib.rs @@ -306,20 +306,20 @@ impl Id { impl Ui { pub fn new_id(&self, input: usize) -> Id { let p = input as *const std::os::raw::c_void; - let value = unsafe { sys::igGetIDPtr(p) }; + let value = unsafe { sys::igGetID_Ptr(p) }; Id(value) } pub fn new_id_int(&self, input: i32) -> Id { let p = input as *const std::os::raw::c_void; - let value = unsafe { sys::igGetIDPtr(p) }; + let value = unsafe { sys::igGetID_Ptr(p) }; Id(value) } pub fn new_id_ptr(&self, input: &T) -> Id { let p = input as *const T as *const sys::cty::c_void; - let value = unsafe { sys::igGetIDPtr(p) }; + let value = unsafe { sys::igGetID_Ptr(p) }; Id(value) } @@ -329,7 +329,7 @@ impl Ui { let s1 = s.as_ptr() as *const std::os::raw::c_char; let value = unsafe { let s2 = s1.add(s.len()); - sys::igGetIDStrStr(s1, s2) + sys::igGetID_StrStr(s1, s2) }; Id(value) } @@ -751,7 +751,7 @@ impl Ui { }; unsafe { - sys::igListBoxStr_arr( + sys::igListBox_Str_arr( label_ptr, current_item, items_inner.as_ptr() as *mut *const c_char, diff --git a/imgui/src/plothistogram.rs b/imgui/src/plothistogram.rs index 1ab80a767..8613ee2de 100644 --- a/imgui/src/plothistogram.rs +++ b/imgui/src/plothistogram.rs @@ -71,7 +71,7 @@ impl<'ui, 'p, Label: AsRef, Overlay: AsRef> PlotHistogram<'ui, 'p, Lab unsafe { let (label, overlay_text) = self.ui.scratch_txt_with_opt(self.label, self.overlay_text); - sys::igPlotHistogramFloatPtr( + sys::igPlotHistogram_FloatPtr( label, self.values.as_ptr() as *const c_float, self.values.len() as i32, diff --git a/imgui/src/plotlines.rs b/imgui/src/plotlines.rs index 930f64f2b..ec9441bd3 100644 --- a/imgui/src/plotlines.rs +++ b/imgui/src/plotlines.rs @@ -71,7 +71,7 @@ impl<'ui, 'p, Label: AsRef, Overlay: AsRef> PlotLines<'ui, 'p, Label, unsafe { let (label, overlay) = self.ui.scratch_txt_with_opt(self.label, self.overlay_text); - sys::igPlotLinesFloatPtr( + sys::igPlotLines_FloatPtr( label, self.values.as_ptr() as *const c_float, self.values.len() as i32, diff --git a/imgui/src/popups.rs b/imgui/src/popups.rs index 401bfbce0..b22cd7a28 100644 --- a/imgui/src/popups.rs +++ b/imgui/src/popups.rs @@ -164,7 +164,7 @@ impl Ui { /// The confusing aspect to popups is that ImGui holds control over the popup itself. #[doc(alias = "OpenPopup")] pub fn open_popup(&self, str_id: impl AsRef) { - unsafe { sys::igOpenPopupStr(self.scratch_txt(str_id), 0) }; + unsafe { sys::igOpenPopup_Str(self.scratch_txt(str_id), 0) }; } /// Construct a popup that can have any kind of content. diff --git a/imgui/src/stacks.rs b/imgui/src/stacks.rs index 81a0bb1a2..1529b59b9 100644 --- a/imgui/src/stacks.rs +++ b/imgui/src/stacks.rs @@ -61,7 +61,7 @@ impl Ui { style_color: StyleColor, color: impl Into, ) -> ColorStackToken<'_> { - unsafe { sys::igPushStyleColorVec4(style_color as i32, color.into().into()) }; + unsafe { sys::igPushStyleColor_Vec4(style_color as i32, color.into().into()) }; ColorStackToken::new(self) } @@ -138,40 +138,42 @@ impl StyleStackToken<'_> { #[inline] unsafe fn push_style_var(style_var: StyleVar) { use crate::style::StyleVar::*; - use crate::sys::{igPushStyleVarFloat, igPushStyleVarVec2}; + use crate::sys::{igPushStyleVar_Float, igPushStyleVar_Vec2}; match style_var { - Alpha(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_Alpha as i32, v), - WindowPadding(v) => igPushStyleVarVec2(sys::ImGuiStyleVar_WindowPadding as i32, v.into()), - WindowRounding(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_WindowRounding as i32, v), - WindowBorderSize(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_WindowBorderSize as i32, v), - WindowMinSize(v) => igPushStyleVarVec2(sys::ImGuiStyleVar_WindowMinSize as i32, v.into()), + Alpha(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_Alpha as i32, v), + WindowPadding(v) => igPushStyleVar_Vec2(sys::ImGuiStyleVar_WindowPadding as i32, v.into()), + WindowRounding(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_WindowRounding as i32, v), + WindowBorderSize(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_WindowBorderSize as i32, v), + WindowMinSize(v) => igPushStyleVar_Vec2(sys::ImGuiStyleVar_WindowMinSize as i32, v.into()), WindowTitleAlign(v) => { - igPushStyleVarVec2(sys::ImGuiStyleVar_WindowTitleAlign as i32, v.into()) + igPushStyleVar_Vec2(sys::ImGuiStyleVar_WindowTitleAlign as i32, v.into()) } - ChildRounding(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_ChildRounding as i32, v), - ChildBorderSize(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_ChildBorderSize as i32, v), - PopupRounding(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_PopupRounding as i32, v), - PopupBorderSize(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_PopupBorderSize as i32, v), - FramePadding(v) => igPushStyleVarVec2(sys::ImGuiStyleVar_FramePadding as i32, v.into()), - FrameRounding(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_FrameRounding as i32, v), - FrameBorderSize(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_FrameBorderSize as i32, v), - ItemSpacing(v) => igPushStyleVarVec2(sys::ImGuiStyleVar_ItemSpacing as i32, v.into()), + ChildRounding(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_ChildRounding as i32, v), + ChildBorderSize(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_ChildBorderSize as i32, v), + PopupRounding(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_PopupRounding as i32, v), + PopupBorderSize(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_PopupBorderSize as i32, v), + FramePadding(v) => igPushStyleVar_Vec2(sys::ImGuiStyleVar_FramePadding as i32, v.into()), + FrameRounding(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_FrameRounding as i32, v), + FrameBorderSize(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_FrameBorderSize as i32, v), + ItemSpacing(v) => igPushStyleVar_Vec2(sys::ImGuiStyleVar_ItemSpacing as i32, v.into()), ItemInnerSpacing(v) => { - igPushStyleVarVec2(sys::ImGuiStyleVar_ItemInnerSpacing as i32, v.into()) + igPushStyleVar_Vec2(sys::ImGuiStyleVar_ItemInnerSpacing as i32, v.into()) } - IndentSpacing(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_IndentSpacing as i32, v), - ScrollbarSize(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_ScrollbarSize as i32, v), - ScrollbarRounding(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_ScrollbarRounding as i32, v), - GrabMinSize(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_GrabMinSize as i32, v), - GrabRounding(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_GrabRounding as i32, v), - TabRounding(v) => igPushStyleVarFloat(sys::ImGuiStyleVar_TabRounding as i32, v), + IndentSpacing(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_IndentSpacing as i32, v), + ScrollbarSize(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_ScrollbarSize as i32, v), + ScrollbarRounding(v) => { + igPushStyleVar_Float(sys::ImGuiStyleVar_ScrollbarRounding as i32, v) + } + GrabMinSize(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_GrabMinSize as i32, v), + GrabRounding(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_GrabRounding as i32, v), + TabRounding(v) => igPushStyleVar_Float(sys::ImGuiStyleVar_TabRounding as i32, v), ButtonTextAlign(v) => { - igPushStyleVarVec2(sys::ImGuiStyleVar_ButtonTextAlign as i32, v.into()) + igPushStyleVar_Vec2(sys::ImGuiStyleVar_ButtonTextAlign as i32, v.into()) } SelectableTextAlign(v) => { - igPushStyleVarVec2(sys::ImGuiStyleVar_SelectableTextAlign as i32, v.into()) + igPushStyleVar_Vec2(sys::ImGuiStyleVar_SelectableTextAlign as i32, v.into()) } - CellPadding(v) => igPushStyleVarVec2(sys::ImGuiStyleVar_CellPadding as i32, v.into()), + CellPadding(v) => igPushStyleVar_Vec2(sys::ImGuiStyleVar_CellPadding as i32, v.into()), } } @@ -460,7 +462,7 @@ impl<'ui> Ui { let s = s.as_ref(); let start = s.as_ptr() as *const c_char; let end = start.add(s.len()); - sys::igPushIDStrStr(start, end) + sys::igPushID_StrStr(start, end) } IdStackToken::new(self) } @@ -475,7 +477,7 @@ impl<'ui> Ui { /// [push_id]: Self::push_id #[doc(alias = "PushId")] pub fn push_id_usize(&self, id: usize) -> IdStackToken<'_> { - unsafe { sys::igPushIDPtr(id as *const _) } + unsafe { sys::igPushID_Ptr(id as *const _) } IdStackToken::new(self) } @@ -489,7 +491,7 @@ impl<'ui> Ui { /// [push_id]: Self::push_id #[doc(alias = "PushId")] pub fn push_id_int(&self, id: i32) -> IdStackToken<'_> { - unsafe { sys::igPushIDInt(id) } + unsafe { sys::igPushID_Int(id) } IdStackToken::new(self) } @@ -503,7 +505,7 @@ impl<'ui> Ui { /// [push_id]: Self::push_id #[doc(alias = "PushId")] pub fn push_id_ptr(&self, value: &T) -> IdStackToken<'_> { - unsafe { sys::igPushIDPtr(value as *const T as *const _) } + unsafe { sys::igPushID_Ptr(value as *const T as *const _) } IdStackToken::new(self) } } diff --git a/imgui/src/utils.rs b/imgui/src/utils.rs index 06928cba5..2f94fb452 100644 --- a/imgui/src/utils.rs +++ b/imgui/src/utils.rs @@ -146,7 +146,7 @@ impl Ui { /// Returns `true` if the rectangle (of given size, starting from cursor position) is visible #[doc(alias = "IsRectVisibleNil")] pub fn is_cursor_rect_visible(&self, size: impl Into) -> bool { - unsafe { sys::igIsRectVisibleNil(size.into().into()) } + unsafe { sys::igIsRectVisible_Nil(size.into().into()) } } /// Returns `true` if the rectangle (in screen coordinates) is visible #[doc(alias = "IsRectVisibleNilVec2")] @@ -155,7 +155,7 @@ impl Ui { rect_min: impl Into, rect_max: impl Into, ) -> bool { - unsafe { sys::igIsRectVisibleVec2(rect_min.into().into(), rect_max.into().into()) } + unsafe { sys::igIsRectVisible_Vec2(rect_min.into().into(), rect_max.into().into()) } } /// Returns the global imgui-rs time. /// diff --git a/imgui/src/widget/image.rs b/imgui/src/widget/image.rs index d5aa4b3ca..ea4cbb9f2 100644 --- a/imgui/src/widget/image.rs +++ b/imgui/src/widget/image.rs @@ -75,28 +75,35 @@ impl Image { /// Builder for an image button widget #[derive(Copy, Clone, Debug)] #[must_use] -pub struct ImageButton { +pub struct ImageButton<'ui, StrId> { + str_id: StrId, texture_id: TextureId, size: [f32; 2], uv0: [f32; 2], uv1: [f32; 2], - frame_padding: i32, bg_col: [f32; 4], tint_col: [f32; 4], + ui: &'ui Ui, } -impl ImageButton { +impl<'ui, StrId: AsRef> ImageButton<'ui, StrId> { /// Creates a new image button builder with the given texture and size - #[doc(alias = "ImageButton")] - pub fn new(texture_id: TextureId, size: impl Into) -> ImageButton { - ImageButton { + #[deprecated(since = "0.10.0", note = "Use `ui.image_button_config(...)` instead")] + pub fn new( + ui: &'ui Ui, + str_id: StrId, + texture_id: TextureId, + size: impl Into, + ) -> Self { + Self { + str_id, texture_id, size: size.into().into(), uv0: [0.0, 0.0], uv1: [1.0, 1.0], - frame_padding: -1, bg_col: [0.0, 0.0, 0.0, 0.0], tint_col: [1.0, 1.0, 1.0, 1.0], + ui, } } @@ -116,15 +123,6 @@ impl ImageButton { self.uv1 = uv1.into().into(); self } - /// Sets the frame padding (default: uses frame padding from style). - /// - /// - `< 0`: uses frame padding from style (default) - /// - `= 0`: no framing - /// - `> 0`: set framing size - pub fn frame_padding(mut self, frame_padding: i32) -> Self { - self.frame_padding = frame_padding; - self - } /// Sets the background color (default: no background color) pub fn background_col(mut self, bg_col: impl Into) -> Self { self.bg_col = bg_col.into().into(); @@ -136,17 +134,56 @@ impl ImageButton { self } /// Builds the image button - pub fn build(self, _: &Ui) -> bool { + pub fn build(self) -> bool { unsafe { sys::igImageButton( + self.ui.scratch_txt(self.str_id), self.texture_id.id() as *mut c_void, self.size.into(), self.uv0.into(), self.uv1.into(), - self.frame_padding, self.bg_col.into(), self.tint_col.into(), ) } } } + +impl Ui { + pub fn image_button( + &self, + str_id: impl AsRef, + texture_id: TextureId, + size: impl Into, + ) -> bool { + ImageButton { + str_id, + texture_id, + size: size.into().into(), + uv0: [0.0, 0.0], + uv1: [1.0, 1.0], + bg_col: [0.0, 0.0, 0.0, 0.0], + tint_col: [1.0, 1.0, 1.0, 1.0], + ui: self, + } + .build() + } + + pub fn image_button_config>( + &self, + str_id: IdStr, + texture_id: TextureId, + size: impl Into, + ) -> ImageButton<'_, IdStr> { + ImageButton { + str_id, + texture_id, + size: size.into().into(), + uv0: [0.0, 0.0], + uv1: [1.0, 1.0], + bg_col: [0.0, 0.0, 0.0, 0.0], + tint_col: [1.0, 1.0, 1.0, 1.0], + ui: self, + } + } +} diff --git a/imgui/src/widget/menu.rs b/imgui/src/widget/menu.rs index b273c865f..66c55f48c 100644 --- a/imgui/src/widget/menu.rs +++ b/imgui/src/widget/menu.rs @@ -204,7 +204,7 @@ impl<'ui, Label: AsRef, Shortcut: AsRef> MenuItem<'ui, Label, Shortcut pub fn build(self) -> bool { unsafe { let (label, shortcut) = self.ui.scratch_txt_with_opt(self.label, self.shortcut); - sys::igMenuItemBool(label, shortcut, self.selected, self.enabled) + sys::igMenuItem_Bool(label, shortcut, self.selected, self.enabled) } } diff --git a/imgui/src/widget/misc.rs b/imgui/src/widget/misc.rs index df41128d8..288c3419d 100644 --- a/imgui/src/widget/misc.rs +++ b/imgui/src/widget/misc.rs @@ -111,7 +111,7 @@ impl Ui { /// Returns true if this radio button was clicked. #[doc(alias = "RadioButtonBool")] pub fn radio_button_bool(&self, label: impl AsRef, active: bool) -> bool { - unsafe { sys::igRadioButtonBool(self.scratch_txt(label), active) } + unsafe { sys::igRadioButton_Bool(self.scratch_txt(label), active) } } /// Renders a radio button suitable for choosing an arbitrary value. /// diff --git a/imgui/src/widget/selectable.rs b/imgui/src/widget/selectable.rs index 062dd9f97..63805b8e0 100644 --- a/imgui/src/widget/selectable.rs +++ b/imgui/src/widget/selectable.rs @@ -133,7 +133,7 @@ impl<'ui, T: AsRef> Selectable<'ui, T> { /// Returns true if the selectable was clicked. pub fn build(self) -> bool { unsafe { - sys::igSelectableBool( + sys::igSelectable_Bool( self.ui.scratch_txt(self.label), self.selected, self.flags.bits() as i32, diff --git a/imgui/src/widget/tree.rs b/imgui/src/widget/tree.rs index 118c93fda..bb9278631 100644 --- a/imgui/src/widget/tree.rs +++ b/imgui/src/widget/tree.rs @@ -290,14 +290,14 @@ impl<'a, T: AsRef, L: AsRef> TreeNode<'a, T, L> { TreeNodeId::Str(id) => match self.label { Some(label) => { let (id, label) = self.ui.scratch_txt_two(id, label); - sys::igTreeNodeExStrStr(id, self.flags.bits() as i32, fmt_ptr(), label) + sys::igTreeNodeEx_StrStr(id, self.flags.bits() as i32, fmt_ptr(), label) } None => { let id = self.ui.scratch_txt(id); - sys::igTreeNodeExStr(id, self.flags.bits() as i32) + sys::igTreeNodeEx_Str(id, self.flags.bits() as i32) } }, - TreeNodeId::Ptr(id) => sys::igTreeNodeExPtr( + TreeNodeId::Ptr(id) => sys::igTreeNodeEx_Ptr( id, self.flags.bits() as i32, fmt_ptr(), @@ -470,7 +470,7 @@ impl> CollapsingHeader { #[inline] pub fn build(self, ui: &Ui) -> bool { unsafe { - sys::igCollapsingHeaderTreeNodeFlags( + sys::igCollapsingHeader_TreeNodeFlags( ui.scratch_txt(self.label), self.flags.bits() as i32, ) @@ -484,7 +484,7 @@ impl> CollapsingHeader { #[inline] pub fn build_with_close_button(self, ui: &Ui, opened: &mut bool) -> bool { unsafe { - sys::igCollapsingHeaderBoolPtr( + sys::igCollapsingHeader_BoolPtr( ui.scratch_txt(self.label), opened as *mut bool, self.flags.bits() as i32, diff --git a/imgui/src/window/child_window.rs b/imgui/src/window/child_window.rs index 61384cbc6..fe9cd4556 100644 --- a/imgui/src/window/child_window.rs +++ b/imgui/src/window/child_window.rs @@ -267,7 +267,7 @@ impl<'ui> ChildWindow<'ui> { unsafe { sys::igSetNextWindowBgAlpha(self.bg_alpha) }; } let should_render = unsafe { - sys::igBeginChildID( + sys::igBeginChild_ID( self.id, self.size.into(), self.border, diff --git a/xtask/src/bindgen.rs b/xtask/src/bindgen.rs index 1272f250f..142d70c84 100644 --- a/xtask/src/bindgen.rs +++ b/xtask/src/bindgen.rs @@ -121,7 +121,7 @@ fn generate_binding_file( "--use-core", ]; cmd.args(a); - cmd.args(&["--blacklist-type", "__darwin_size_t"]); + cmd.args(&["--blocklist-type", "__darwin_size_t"]); cmd.args(&["--raw-line", "#![allow(nonstandard_style, clippy::all)]"]); cmd.arg("--output").arg(output); cmd.args(&["--ctypes-prefix", "cty"]); @@ -130,10 +130,10 @@ fn generate_binding_file( cmd.args(&["--wasm-import-module-name", name]); } for t in types { - cmd.args(&["--whitelist-type", t]); + cmd.args(&["--allowlist-type", t]); } for f in funcs { - cmd.args(&["--whitelist-function", f]); + cmd.args(&["--allowlist-function", f]); } cmd.arg(header); cmd.args(&["--", "-DCIMGUI_DEFINE_ENUMS_AND_STRUCTS=1"]); From 2d9efba59b2a9586ea7346bc6b3802430172e7d3 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 21 Dec 2022 20:18:16 +0100 Subject: [PATCH 02/18] Added full keymap to winit backend, fixed keyboard example --- imgui-examples/examples/keyboard.rs | 5 +- imgui-winit-support/src/lib.rs | 93 ++++++++++++++++++++++++++--- 2 files changed, 86 insertions(+), 12 deletions(-) diff --git a/imgui-examples/examples/keyboard.rs b/imgui-examples/examples/keyboard.rs index a6aaa05c2..291a717e0 100644 --- a/imgui-examples/examples/keyboard.rs +++ b/imgui-examples/examples/keyboard.rs @@ -116,8 +116,7 @@ fn main() { // `winit::VirtualKeyCode`. So we can query if a key // is down based on it's virtual key code, - let home_key_idx = 65; // Hardcoded for imgui-examples only, instead use `winit::event::VirtualKeyCode::Home` - if ui.io().keys_down[home_key_idx as usize] { + if ui.is_key_down(Key::Home) { home_counter += 1; } ui.text(format!("Home has been pressed for {} frames", home_counter)); @@ -134,7 +133,7 @@ fn main() { // with arbitrary key indexes. For example, to check // if the F1 key is been pressed - if ui.is_key_index_released(37) { + if ui.is_key_released(Key::F1) { // Index is hardcoded for imgui-examples only, instead do this: //if ui.is_key_index_released(winit::event::VirtualKeyCode::F1 as i32) { f1_release_count += 1; diff --git a/imgui-winit-support/src/lib.rs b/imgui-winit-support/src/lib.rs index 09d167a87..9e5120ae3 100644 --- a/imgui-winit-support/src/lib.rs +++ b/imgui-winit-support/src/lib.rs @@ -220,21 +220,96 @@ fn to_imgui_key(keycode: VirtualKeyCode) -> Option { VirtualKeyCode::Space => Some(Key::Space), VirtualKeyCode::Return => Some(Key::Enter), VirtualKeyCode::Escape => Some(Key::Escape), - VirtualKeyCode::NumpadEnter => Some(Key::KeypadEnter), + VirtualKeyCode::LControl => Some(Key::LeftCtrl), + VirtualKeyCode::LShift => Some(Key::LeftShift), + VirtualKeyCode::LAlt => Some(Key::LeftAlt), + VirtualKeyCode::LWin => Some(Key::LeftSuper), + VirtualKeyCode::RControl => Some(Key::RightCtrl), + VirtualKeyCode::RShift => Some(Key::RightShift), + VirtualKeyCode::RAlt => Some(Key::RightAlt), + VirtualKeyCode::RWin => Some(Key::RightSuper), + //VirtualKeyCode::Menu => Some(Key::Menu), // TODO: find out if there is a Menu key in winit + VirtualKeyCode::Key0 => Some(Key::Alpha0), + VirtualKeyCode::Key1 => Some(Key::Alpha1), + VirtualKeyCode::Key2 => Some(Key::Alpha2), + VirtualKeyCode::Key3 => Some(Key::Alpha3), + VirtualKeyCode::Key4 => Some(Key::Alpha4), + VirtualKeyCode::Key5 => Some(Key::Alpha5), + VirtualKeyCode::Key6 => Some(Key::Alpha6), + VirtualKeyCode::Key7 => Some(Key::Alpha7), + VirtualKeyCode::Key8 => Some(Key::Alpha8), + VirtualKeyCode::Key9 => Some(Key::Alpha9), VirtualKeyCode::A => Some(Key::A), + VirtualKeyCode::B => Some(Key::B), VirtualKeyCode::C => Some(Key::C), + VirtualKeyCode::D => Some(Key::D), + VirtualKeyCode::E => Some(Key::E), + VirtualKeyCode::F => Some(Key::F), + VirtualKeyCode::G => Some(Key::G), + VirtualKeyCode::H => Some(Key::H), + VirtualKeyCode::I => Some(Key::I), + VirtualKeyCode::J => Some(Key::J), + VirtualKeyCode::K => Some(Key::K), + VirtualKeyCode::L => Some(Key::L), + VirtualKeyCode::M => Some(Key::M), + VirtualKeyCode::N => Some(Key::N), + VirtualKeyCode::O => Some(Key::O), + VirtualKeyCode::P => Some(Key::P), + VirtualKeyCode::Q => Some(Key::Q), + VirtualKeyCode::R => Some(Key::R), + VirtualKeyCode::S => Some(Key::S), + VirtualKeyCode::T => Some(Key::T), + VirtualKeyCode::U => Some(Key::U), VirtualKeyCode::V => Some(Key::V), + VirtualKeyCode::W => Some(Key::W), VirtualKeyCode::X => Some(Key::X), VirtualKeyCode::Y => Some(Key::Y), VirtualKeyCode::Z => Some(Key::Z), - VirtualKeyCode::LControl => Some(Key::LeftCtrl), - VirtualKeyCode::RControl => Some(Key::RightCtrl), - VirtualKeyCode::LShift => Some(Key::LeftShift), - VirtualKeyCode::RShift => Some(Key::RightShift), - VirtualKeyCode::LAlt => Some(Key::LeftAlt), - VirtualKeyCode::RAlt => Some(Key::RightAlt), - VirtualKeyCode::LWin => Some(Key::LeftSuper), - VirtualKeyCode::RWin => Some(Key::RightSuper), + VirtualKeyCode::F1 => Some(Key::F1), + VirtualKeyCode::F2 => Some(Key::F2), + VirtualKeyCode::F3 => Some(Key::F3), + VirtualKeyCode::F4 => Some(Key::F4), + VirtualKeyCode::F5 => Some(Key::F5), + VirtualKeyCode::F6 => Some(Key::F6), + VirtualKeyCode::F7 => Some(Key::F7), + VirtualKeyCode::F8 => Some(Key::F8), + VirtualKeyCode::F9 => Some(Key::F9), + VirtualKeyCode::F10 => Some(Key::F10), + VirtualKeyCode::F11 => Some(Key::F11), + VirtualKeyCode::F12 => Some(Key::F12), + VirtualKeyCode::Apostrophe => Some(Key::Apostrophe), + VirtualKeyCode::Comma => Some(Key::Comma), + VirtualKeyCode::Minus => Some(Key::Minus), + VirtualKeyCode::Period => Some(Key::Period), + VirtualKeyCode::Slash => Some(Key::Slash), + VirtualKeyCode::Semicolon => Some(Key::Semicolon), + VirtualKeyCode::Equals => Some(Key::Equal), + VirtualKeyCode::LBracket => Some(Key::LeftBracket), + VirtualKeyCode::Backslash => Some(Key::Backslash), + VirtualKeyCode::RBracket => Some(Key::RightBracket), + VirtualKeyCode::Grave => Some(Key::GraveAccent), + VirtualKeyCode::Capital => Some(Key::CapsLock), + VirtualKeyCode::Scroll => Some(Key::ScrollLock), + VirtualKeyCode::Numlock => Some(Key::NumLock), + VirtualKeyCode::Snapshot => Some(Key::PrintScreen), + VirtualKeyCode::Pause => Some(Key::Pause), + VirtualKeyCode::Numpad0 => Some(Key::Keypad0), + VirtualKeyCode::Numpad1 => Some(Key::Keypad1), + VirtualKeyCode::Numpad2 => Some(Key::Keypad2), + VirtualKeyCode::Numpad3 => Some(Key::Keypad3), + VirtualKeyCode::Numpad4 => Some(Key::Keypad4), + VirtualKeyCode::Numpad5 => Some(Key::Keypad5), + VirtualKeyCode::Numpad6 => Some(Key::Keypad6), + VirtualKeyCode::Numpad7 => Some(Key::Keypad7), + VirtualKeyCode::Numpad8 => Some(Key::Keypad8), + VirtualKeyCode::Numpad9 => Some(Key::Keypad9), + VirtualKeyCode::NumpadDecimal => Some(Key::KeypadDecimal), + VirtualKeyCode::NumpadDivide => Some(Key::KeypadDivide), + VirtualKeyCode::NumpadMultiply => Some(Key::KeypadMultiply), + VirtualKeyCode::NumpadSubtract => Some(Key::KeypadSubtract), + VirtualKeyCode::NumpadAdd => Some(Key::KeypadAdd), + VirtualKeyCode::NumpadEnter => Some(Key::KeypadEnter), + VirtualKeyCode::NumpadEquals => Some(Key::KeypadEqual), _ => None, } } From 0cb64e8b59f1cb5eab49a2fc88954381da734b30 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 21 Dec 2022 21:21:57 +0100 Subject: [PATCH 03/18] Fixed build errors with docking feature --- imgui/src/draw_list.rs | 4 ++-- imgui/src/input/keyboard.rs | 32 ++++++++++++++++++++++++++++---- imgui/src/input/mouse.rs | 24 +++++++++++++++++++++--- imgui/src/io.rs | 6 +++++- imgui/src/tables.rs | 4 ++-- imgui/src/window/scroll.rs | 8 ++++---- 6 files changed, 62 insertions(+), 16 deletions(-) diff --git a/imgui/src/draw_list.rs b/imgui/src/draw_list.rs index c30938c53..2f7a097d5 100644 --- a/imgui/src/draw_list.rs +++ b/imgui/src/draw_list.rs @@ -142,7 +142,7 @@ impl<'ui> DrawListMut<'ui> { cfg_if::cfg_if! { if #[cfg(feature = "docking")] { // Has extra overload in docking branch - sys::igGetBackgroundDrawListNil() + sys::igGetBackgroundDrawList_Nil() } else { sys::igGetBackgroundDrawList() } @@ -161,7 +161,7 @@ impl<'ui> DrawListMut<'ui> { cfg_if::cfg_if! { if #[cfg(feature = "docking")] { // Has extra overload in docking branch - sys::igGetForegroundDrawListNil() + sys::igGetForegroundDrawList_Nil() } else { sys::igGetForegroundDrawList() } diff --git a/imgui/src/input/keyboard.rs b/imgui/src/input/keyboard.rs index a0e302bcf..6f4218923 100644 --- a/imgui/src/input/keyboard.rs +++ b/imgui/src/input/keyboard.rs @@ -345,7 +345,13 @@ impl Ui { #[inline] #[doc(alias = "IsKeyDown")] pub fn is_key_index_down(&self, key_index: u32) -> bool { - unsafe { sys::igIsKeyDown(key_index) } + cfg_if::cfg_if!{ + if #[cfg(feature = "docking")] { + unsafe { sys::igIsKeyDown_Nil(key_index) } + } else { + unsafe { sys::igIsKeyDown(key_index) } + } + } } /// Returns true if the key was pressed (went from !down to down). @@ -365,7 +371,13 @@ impl Ui { #[inline] #[doc(alias = "IsKeyPressed")] pub fn is_key_index_pressed(&self, key_index: u32) -> bool { - unsafe { sys::igIsKeyPressed(key_index, true) } + cfg_if::cfg_if!{ + if #[cfg(feature = "docking")] { + unsafe { sys::igIsKeyPressed_Bool(key_index, true) } + } else { + unsafe { sys::igIsKeyPressed(key_index, true) } + } + } } /// Returns true if the key was pressed (went from !down to down). @@ -386,7 +398,13 @@ impl Ui { #[inline] #[doc(alias = "IsKeyPressed")] pub fn is_key_index_pressed_no_repeat(&self, key_index: u32) -> bool { - unsafe { sys::igIsKeyPressed(key_index, false) } + cfg_if::cfg_if!{ + if #[cfg(feature = "docking")] { + unsafe { sys::igIsKeyPressed_Bool(key_index, false) } + } else { + unsafe { sys::igIsKeyPressed(key_index, false) } + } + } } /// Returns true if the key was released (went from down to !down) @@ -404,7 +422,13 @@ impl Ui { #[inline] #[doc(alias = "IsKeyReleased")] pub fn is_key_index_released(&self, key_index: u32) -> bool { - unsafe { sys::igIsKeyReleased(key_index) } + cfg_if::cfg_if!{ + if #[cfg(feature = "docking")] { + unsafe { sys::igIsKeyReleased_Nil(key_index) } + } else { + unsafe { sys::igIsKeyReleased(key_index) } + } + } } /// Returns a count of key presses using the given repeat rate/delay settings. diff --git a/imgui/src/input/mouse.rs b/imgui/src/input/mouse.rs index 766445520..084941b94 100644 --- a/imgui/src/input/mouse.rs +++ b/imgui/src/input/mouse.rs @@ -95,7 +95,13 @@ impl Ui { /// Equivalent to indexing the Io struct with the button, e.g. `ui.io()[button]`. #[doc(alias = "IsMouseDown")] pub fn is_mouse_down(&self, button: MouseButton) -> bool { - unsafe { sys::igIsMouseDown(button as i32) } + cfg_if::cfg_if!{ + if #[cfg(feature = "docking")] { + unsafe { sys::igIsMouseDown_Nil(button as i32) } + } else { + unsafe { sys::igIsMouseDown(button as i32) } + } + } } /// Returns true if any mouse button is held down #[doc(alias = "IsAnyMouseDown")] @@ -105,7 +111,13 @@ impl Ui { /// Returns true if the given mouse button was clicked (went from !down to down) #[doc(alias = "IsMouseClicked")] pub fn is_mouse_clicked(&self, button: MouseButton) -> bool { - unsafe { sys::igIsMouseClicked(button as i32, false) } + cfg_if::cfg_if!{ + if #[cfg(feature = "docking")] { + unsafe { sys::igIsMouseClicked_Bool(button as i32, false) } + } else { + unsafe { sys::igIsMouseClicked(button as i32, false) } + } + } } /// Returns true if the given mouse button was double-clicked #[doc(alias = "IsMouseDoubleClicked")] @@ -115,7 +127,13 @@ impl Ui { /// Returns true if the given mouse button was released (went from down to !down) #[doc(alias = "IsMouseReleased")] pub fn is_mouse_released(&self, button: MouseButton) -> bool { - unsafe { sys::igIsMouseReleased(button as i32) } + cfg_if::cfg_if!{ + if #[cfg(feature = "docking")] { + unsafe { sys::igIsMouseReleased_Nil(button as i32) } + } else { + unsafe { sys::igIsMouseReleased(button as i32) } + } + } } /// Returns true if the mouse is currently dragging with the given mouse button held down #[doc(alias = "IsMouseDragging")] diff --git a/imgui/src/io.rs b/imgui/src/io.rs index 6157fce00..1530d5666 100644 --- a/imgui/src/io.rs +++ b/imgui/src/io.rs @@ -188,7 +188,7 @@ pub struct Io { #[cfg(feature = "docking")] pub config_viewports_no_auto_merge: bool, #[cfg(feature = "docking")] - pub config_viewports_notask_bar_icon: bool, + pub config_viewports_no_task_bar_icon: bool, #[cfg(feature = "docking")] pub config_viewports_no_decoration: bool, #[cfg(feature = "docking")] @@ -312,6 +312,8 @@ pub struct Io { /// Most users don't have a mouse with a horizontal wheel, and may not be filled by all /// backends. pub mouse_wheel_h: f32, + #[cfg(feature = "docking")] + mouse_hovered_viewport: sys::ImGuiID, /// Keyboard modifier pressed: Control pub key_ctrl: bool, /// Keyboard modifier pressed: Shift @@ -337,6 +339,8 @@ pub struct Io { mouse_down_owned_unless_popup_close: [bool; 5], mouse_down_duration: [f32; 5], mouse_down_duration_prev: [f32; 5], + #[cfg(feature = "docking")] + mouse_drag_max_distance_abs: [sys::ImVec2; 5], mouse_drag_max_distance_sqr: [f32; 5], pen_pressure: f32, diff --git a/imgui/src/tables.rs b/imgui/src/tables.rs index 5d9b49070..5209fa5af 100644 --- a/imgui/src/tables.rs +++ b/imgui/src/tables.rs @@ -629,7 +629,7 @@ impl Ui { // imgui uses utf8...though that is a continuous process there. cfg_if::cfg_if! { if #[cfg(feature = "docking")] { - CStr::from_ptr(sys::igTableGetColumnNameInt(-1)) + CStr::from_ptr(sys::igTableGetColumnName_Int(-1)) .to_str() .unwrap() } else { @@ -650,7 +650,7 @@ impl Ui { // imgui uses utf8...though that is a continuous process there. cfg_if::cfg_if! { if #[cfg(feature="docking")] { - CStr::from_ptr(sys::igTableGetColumnNameInt(column as i32)) + CStr::from_ptr(sys::igTableGetColumnName_Int(column as i32)) .to_str() .unwrap() } else { diff --git a/imgui/src/window/scroll.rs b/imgui/src/window/scroll.rs index 288a594d3..4ab324dfc 100644 --- a/imgui/src/window/scroll.rs +++ b/imgui/src/window/scroll.rs @@ -37,7 +37,7 @@ impl<'ui> Ui { unsafe { cfg_if::cfg_if! { if #[cfg(feature = "docking")] { - sys::igSetScrollXFloat(scroll_x); + sys::igSetScrollX_Float(scroll_x); } else { sys::igSetScrollX(scroll_x); } @@ -50,7 +50,7 @@ impl<'ui> Ui { unsafe { cfg_if::cfg_if! { if #[cfg(feature = "docking")] { - sys::igSetScrollYFloat(scroll_y); + sys::igSetScrollY_Float(scroll_y); } else { sys::igSetScrollY(scroll_y); } @@ -113,7 +113,7 @@ impl<'ui> Ui { unsafe { cfg_if::cfg_if! { if #[cfg(feature = "docking")] { - sys::igSetScrollFromPosXFloat(local_x, center_x_ratio) + sys::igSetScrollFromPosX_Float(local_x, center_x_ratio) } else { sys::igSetScrollFromPosX(local_x, center_x_ratio) } @@ -140,7 +140,7 @@ impl<'ui> Ui { unsafe { cfg_if::cfg_if! { if #[cfg(feature = "docking")] { - sys::igSetScrollFromPosYFloat(local_y, center_y_ratio); + sys::igSetScrollFromPosY_Float(local_y, center_y_ratio); } else { sys::igSetScrollFromPosY(local_y, center_y_ratio); } From bd3d59ce629dbe70c3f2e427e9654e71f2e64580 Mon Sep 17 00:00:00 2001 From: Robin Quint Date: Thu, 22 Dec 2022 15:04:58 +0100 Subject: [PATCH 04/18] winit-support now uses event-io for everything --- imgui-winit-support/src/lib.rs | 103 +++++++++++---------------------- 1 file changed, 33 insertions(+), 70 deletions(-) diff --git a/imgui-winit-support/src/lib.rs b/imgui-winit-support/src/lib.rs index 9e5120ae3..8b3dbeed2 100644 --- a/imgui-winit-support/src/lib.rs +++ b/imgui-winit-support/src/lib.rs @@ -74,7 +74,6 @@ //! ``` use imgui::{self, BackendFlags, ConfigFlags, Context, Io, Key, Ui}; -use std::cell::Cell; use std::cmp::Ordering; // Re-export winit to make it easier for users to use the correct version. @@ -90,45 +89,12 @@ use winit::{ window::{CursorIcon as MouseCursor, Window}, }; -/// State of a single mouse button. Used so that we can detect cases where mouse -/// press and release occur on the same frame (seems surprisingly frequent on -/// macOS now...) -#[derive(Debug, Clone, Default)] -struct Button { - pressed_this_frame: Cell, - state: Cell, -} - -impl Button { - // we can use this in an array initializer, unlike `Default::default()` or a - // `const fn new()`. - #[allow(clippy::declare_interior_mutable_const)] - const INIT: Button = Self { - pressed_this_frame: Cell::new(false), - state: Cell::new(false), - }; - fn set(&self, pressed: bool) { - self.state.set(pressed); - if pressed { - self.pressed_this_frame.set(true); - } - } - fn get(&self) -> bool { - // If we got a press this frame, record it even if we got a release - // too — this way we don't drop mouse clicks where the release comes - // in on the same frame as the press. (This mirrors what Dear ImGUI - // seems to do in the `imgui_impl_*`) - self.pressed_this_frame.replace(false) || self.state.get() - } -} - /// winit backend platform state #[derive(Debug)] pub struct WinitPlatform { hidpi_mode: ActiveHiDpiMode, hidpi_factor: f64, cursor_cache: Option, - mouse_buttons: [Button; 5], } #[derive(Debug, Copy, Clone, Eq, PartialEq)] @@ -203,6 +169,17 @@ impl HiDpiMode { } } +fn to_imgui_mouse_button(button: MouseButton) -> Option { + match button { + MouseButton::Left | MouseButton::Other(0) => Some(imgui::MouseButton::Left), + MouseButton::Right | MouseButton::Other(1) => Some(imgui::MouseButton::Right), + MouseButton::Middle | MouseButton::Other(2) => Some(imgui::MouseButton::Middle), + MouseButton::Other(3) => Some(imgui::MouseButton::Extra1), + MouseButton::Other(4) => Some(imgui::MouseButton::Extra2), + _ => None, + } +} + fn to_imgui_key(keycode: VirtualKeyCode) -> Option { match keycode { VirtualKeyCode::Tab => Some(Key::Tab), @@ -334,7 +311,6 @@ impl WinitPlatform { hidpi_mode: ActiveHiDpiMode::Default, hidpi_factor: 1.0, cursor_cache: None, - mouse_buttons: [Button::INIT; 5], } } /// Attaches the platform instance to a winit window. @@ -501,42 +477,36 @@ impl WinitPlatform { WindowEvent::CursorMoved { position, .. } => { let position = position.to_logical(window.scale_factor()); let position = self.scale_pos_from_winit(window, position); - //io.mouse_pos = [position.x as f32, position.y as f32]; io.add_mouse_pos_event([position.x as f32, position.y as f32]); } WindowEvent::MouseWheel { delta, phase: TouchPhase::Moved, .. - } => match delta { - MouseScrollDelta::LineDelta(h, v) => { - io.mouse_wheel_h = h; - io.mouse_wheel = v; - } - MouseScrollDelta::PixelDelta(pos) => { - let pos = pos.to_logical::(self.hidpi_factor); - match pos.x.partial_cmp(&0.0) { - Some(Ordering::Greater) => io.mouse_wheel_h += 1.0, - Some(Ordering::Less) => io.mouse_wheel_h -= 1.0, - _ => (), - } - match pos.y.partial_cmp(&0.0) { - Some(Ordering::Greater) => io.mouse_wheel += 1.0, - Some(Ordering::Less) => io.mouse_wheel -= 1.0, - _ => (), + } => { + let (h, v) = match delta { + MouseScrollDelta::LineDelta(h, v) => (h, v), + MouseScrollDelta::PixelDelta(pos) => { + let pos = pos.to_logical::(self.hidpi_factor); + let h = match pos.x.partial_cmp(&0.0) { + Some(Ordering::Greater) => 1.0, + Some(Ordering::Less) => -1.0, + _ => 0.0, + }; + let v = match pos.y.partial_cmp(&0.0) { + Some(Ordering::Greater) => 1.0, + Some(Ordering::Less) => -1.0, + _ => 0.0, + }; + (h, v) } - } - }, + }; + io.add_mouse_wheel_event([h, v]); + } WindowEvent::MouseInput { state, button, .. } => { - let pressed = state == ElementState::Pressed; - match button { - MouseButton::Left => self.mouse_buttons[0].set(pressed), - MouseButton::Right => self.mouse_buttons[1].set(pressed), - MouseButton::Middle => self.mouse_buttons[2].set(pressed), - MouseButton::Other(idx @ 0..=4) => { - self.mouse_buttons[idx as usize].set(pressed) - } - _ => (), + if let Some(mb) = to_imgui_mouse_button(button) { + let pressed = state == ElementState::Pressed; + io.add_mouse_button_event(mb, pressed); } } WindowEvent::Focused(newly_focused) => { @@ -556,7 +526,6 @@ impl WinitPlatform { /// /// * mouse cursor is repositioned (if requested by imgui-rs) pub fn prepare_frame(&self, io: &mut Io, window: &Window) -> Result<(), ExternalError> { - self.copy_mouse_to_io(&mut io.mouse_down); if io.want_set_mouse_pos { let logical_pos = self.scale_pos_for_winit( window, @@ -568,12 +537,6 @@ impl WinitPlatform { } } - fn copy_mouse_to_io(&self, io_mouse_down: &mut [bool]) { - for (io_down, button) in io_mouse_down.iter_mut().zip(&self.mouse_buttons) { - *io_down = button.get(); - } - } - /// Render preparation callback. /// /// Call this before calling the imgui-rs UI `render_with`/`render` function. From 70b865a001ba812efdeea536253a44bcd2815091 Mon Sep 17 00:00:00 2001 From: Robin Quint Date: Thu, 22 Dec 2022 15:09:23 +0100 Subject: [PATCH 05/18] Added workaround for io tests --- imgui/src/io.rs | 207 ++++++++++++++++++++++++------------------------ 1 file changed, 105 insertions(+), 102 deletions(-) diff --git a/imgui/src/io.rs b/imgui/src/io.rs index 1530d5666..af3575e60 100644 --- a/imgui/src/io.rs +++ b/imgui/src/io.rs @@ -480,106 +480,109 @@ fn test_io_memory_layout() { ); }; } - assert_field_offset!(config_flags, ConfigFlags); - assert_field_offset!(backend_flags, BackendFlags); - assert_field_offset!(display_size, DisplaySize); - assert_field_offset!(delta_time, DeltaTime); - assert_field_offset!(ini_saving_rate, IniSavingRate); - assert_field_offset!(ini_filename, IniFilename); - assert_field_offset!(log_filename, LogFilename); - assert_field_offset!(mouse_double_click_time, MouseDoubleClickTime); - assert_field_offset!(mouse_double_click_max_dist, MouseDoubleClickMaxDist); - assert_field_offset!(mouse_drag_threshold, MouseDragThreshold); - assert_field_offset!(key_repeat_delay, KeyRepeatDelay); - assert_field_offset!(key_repeat_rate, KeyRepeatRate); - assert_field_offset!(hover_delay_normal, HoverDelayNormal); - assert_field_offset!(hover_delay_short, HoverDelayShort); - assert_field_offset!(user_data, UserData); - assert_field_offset!(fonts, Fonts); - assert_field_offset!(font_global_scale, FontGlobalScale); - assert_field_offset!(font_allow_user_scaling, FontAllowUserScaling); - assert_field_offset!(font_default, FontDefault); - assert_field_offset!(display_framebuffer_scale, DisplayFramebufferScale); - assert_field_offset!(mouse_draw_cursor, MouseDrawCursor); - assert_field_offset!(config_mac_os_behaviors, ConfigMacOSXBehaviors); - assert_field_offset!( - config_input_trickle_event_queue, - ConfigInputTrickleEventQueue - ); - assert_field_offset!(config_input_text_cursor_blink, ConfigInputTextCursorBlink); - assert_field_offset!( - config_input_text_enter_keep_active, - ConfigInputTextEnterKeepActive - ); - assert_field_offset!( - config_windows_resize_from_edges, - ConfigWindowsResizeFromEdges - ); - assert_field_offset!( - config_windows_move_from_title_bar_only, - ConfigWindowsMoveFromTitleBarOnly - ); - assert_field_offset!(backend_platform_name, BackendPlatformName); - assert_field_offset!(backend_renderer_name, BackendRendererName); - assert_field_offset!(backend_platform_user_data, BackendPlatformUserData); - assert_field_offset!(backend_renderer_user_data, BackendRendererUserData); - assert_field_offset!(backend_language_user_data, BackendLanguageUserData); - assert_field_offset!(get_clipboard_text_fn, GetClipboardTextFn); - assert_field_offset!(set_clipboard_text_fn, SetClipboardTextFn); - assert_field_offset!(clipboard_user_data, ClipboardUserData); - assert_field_offset!(set_platform_ime_data_fn, SetPlatformImeDataFn); - assert_field_offset!(unused_padding, _UnusedPadding); - assert_field_offset!(want_capture_mouse, WantCaptureMouse); - assert_field_offset!(want_capture_keyboard, WantCaptureKeyboard); - assert_field_offset!(want_text_input, WantTextInput); - assert_field_offset!(want_set_mouse_pos, WantSetMousePos); - assert_field_offset!(want_save_ini_settings, WantSaveIniSettings); - assert_field_offset!(nav_active, NavActive); - assert_field_offset!(nav_visible, NavVisible); - assert_field_offset!(framerate, Framerate); - assert_field_offset!(metrics_render_vertices, MetricsRenderVertices); - assert_field_offset!(metrics_render_indices, MetricsRenderIndices); - assert_field_offset!(metrics_render_windows, MetricsRenderWindows); - assert_field_offset!(metrics_active_windows, MetricsActiveWindows); - assert_field_offset!(metrics_active_allocations, MetricsActiveAllocations); - assert_field_offset!(mouse_delta, MouseDelta); - assert_field_offset!(key_map, KeyMap); - assert_field_offset!(keys_down, KeysDown); - assert_field_offset!(nav_inputs, NavInputs); - assert_field_offset!(mouse_pos, MousePos); - assert_field_offset!(mouse_down, MouseDown); - assert_field_offset!(mouse_wheel, MouseWheel); - assert_field_offset!(mouse_wheel_h, MouseWheelH); - assert_field_offset!(key_ctrl, KeyCtrl); - assert_field_offset!(key_shift, KeyShift); - assert_field_offset!(key_alt, KeyAlt); - assert_field_offset!(key_super, KeySuper); - assert_field_offset!(key_mods, KeyMods); - assert_field_offset!(keys_data, KeysData); - assert_field_offset!( - want_capture_mouse_unless_popup_close, - WantCaptureMouseUnlessPopupClose - ); - assert_field_offset!(mouse_pos_prev, MousePosPrev); - assert_field_offset!(mouse_clicked_pos, MouseClickedPos); - assert_field_offset!(mouse_clicked_time, MouseClickedTime); - assert_field_offset!(mouse_clicked, MouseClicked); - assert_field_offset!(mouse_double_clicked, MouseDoubleClicked); - assert_field_offset!(mouse_clicked_count, MouseClickedCount); - assert_field_offset!(mouse_clicked_last_count, MouseClickedLastCount); - assert_field_offset!(mouse_released, MouseReleased); - assert_field_offset!(mouse_down_owned, MouseDownOwned); - assert_field_offset!(mouse_down_duration, MouseDownDuration); - assert_field_offset!(mouse_down_duration_prev, MouseDownDurationPrev); - assert_field_offset!(mouse_drag_max_distance_sqr, MouseDragMaxDistanceSqr); - assert_field_offset!(pen_pressure, PenPressure); - assert_field_offset!(app_focus_lost, AppFocusLost); - assert_field_offset!(app_accepting_events, AppAcceptingEvents); - assert_field_offset!(backend_using_legacy_key_arrays, BackendUsingLegacyKeyArrays); - assert_field_offset!( - backend_using_legacy_nav_input_array, - BackendUsingLegacyNavInputArray - ); - assert_field_offset!(input_queue_surrogate, InputQueueSurrogate); - assert_field_offset!(input_queue_characters, InputQueueCharacters); + + std::thread::Builder::new().stack_size(4 * 1024 * 1024).spawn(|| { + assert_field_offset!(config_flags, ConfigFlags); + assert_field_offset!(backend_flags, BackendFlags); + assert_field_offset!(display_size, DisplaySize); + assert_field_offset!(delta_time, DeltaTime); + assert_field_offset!(ini_saving_rate, IniSavingRate); + assert_field_offset!(ini_filename, IniFilename); + assert_field_offset!(log_filename, LogFilename); + assert_field_offset!(mouse_double_click_time, MouseDoubleClickTime); + assert_field_offset!(mouse_double_click_max_dist, MouseDoubleClickMaxDist); + assert_field_offset!(mouse_drag_threshold, MouseDragThreshold); + assert_field_offset!(key_repeat_delay, KeyRepeatDelay); + assert_field_offset!(key_repeat_rate, KeyRepeatRate); + assert_field_offset!(hover_delay_normal, HoverDelayNormal); + assert_field_offset!(hover_delay_short, HoverDelayShort); + assert_field_offset!(user_data, UserData); + assert_field_offset!(fonts, Fonts); + assert_field_offset!(font_global_scale, FontGlobalScale); + assert_field_offset!(font_allow_user_scaling, FontAllowUserScaling); + assert_field_offset!(font_default, FontDefault); + assert_field_offset!(display_framebuffer_scale, DisplayFramebufferScale); + assert_field_offset!(mouse_draw_cursor, MouseDrawCursor); + assert_field_offset!(config_mac_os_behaviors, ConfigMacOSXBehaviors); + assert_field_offset!( + config_input_trickle_event_queue, + ConfigInputTrickleEventQueue + ); + assert_field_offset!(config_input_text_cursor_blink, ConfigInputTextCursorBlink); + assert_field_offset!( + config_input_text_enter_keep_active, + ConfigInputTextEnterKeepActive + ); + assert_field_offset!( + config_windows_resize_from_edges, + ConfigWindowsResizeFromEdges + ); + assert_field_offset!( + config_windows_move_from_title_bar_only, + ConfigWindowsMoveFromTitleBarOnly + ); + assert_field_offset!(backend_platform_name, BackendPlatformName); + assert_field_offset!(backend_renderer_name, BackendRendererName); + assert_field_offset!(backend_platform_user_data, BackendPlatformUserData); + assert_field_offset!(backend_renderer_user_data, BackendRendererUserData); + assert_field_offset!(backend_language_user_data, BackendLanguageUserData); + assert_field_offset!(get_clipboard_text_fn, GetClipboardTextFn); + assert_field_offset!(set_clipboard_text_fn, SetClipboardTextFn); + assert_field_offset!(clipboard_user_data, ClipboardUserData); + assert_field_offset!(set_platform_ime_data_fn, SetPlatformImeDataFn); + assert_field_offset!(unused_padding, _UnusedPadding); + assert_field_offset!(want_capture_mouse, WantCaptureMouse); + assert_field_offset!(want_capture_keyboard, WantCaptureKeyboard); + assert_field_offset!(want_text_input, WantTextInput); + assert_field_offset!(want_set_mouse_pos, WantSetMousePos); + assert_field_offset!(want_save_ini_settings, WantSaveIniSettings); + assert_field_offset!(nav_active, NavActive); + assert_field_offset!(nav_visible, NavVisible); + assert_field_offset!(framerate, Framerate); + assert_field_offset!(metrics_render_vertices, MetricsRenderVertices); + assert_field_offset!(metrics_render_indices, MetricsRenderIndices); + assert_field_offset!(metrics_render_windows, MetricsRenderWindows); + assert_field_offset!(metrics_active_windows, MetricsActiveWindows); + assert_field_offset!(metrics_active_allocations, MetricsActiveAllocations); + assert_field_offset!(mouse_delta, MouseDelta); + assert_field_offset!(key_map, KeyMap); + assert_field_offset!(keys_down, KeysDown); + assert_field_offset!(nav_inputs, NavInputs); + assert_field_offset!(mouse_pos, MousePos); + assert_field_offset!(mouse_down, MouseDown); + assert_field_offset!(mouse_wheel, MouseWheel); + assert_field_offset!(mouse_wheel_h, MouseWheelH); + assert_field_offset!(key_ctrl, KeyCtrl); + assert_field_offset!(key_shift, KeyShift); + assert_field_offset!(key_alt, KeyAlt); + assert_field_offset!(key_super, KeySuper); + assert_field_offset!(key_mods, KeyMods); + assert_field_offset!(keys_data, KeysData); + assert_field_offset!( + want_capture_mouse_unless_popup_close, + WantCaptureMouseUnlessPopupClose + ); + assert_field_offset!(mouse_pos_prev, MousePosPrev); + assert_field_offset!(mouse_clicked_pos, MouseClickedPos); + assert_field_offset!(mouse_clicked_time, MouseClickedTime); + assert_field_offset!(mouse_clicked, MouseClicked); + assert_field_offset!(mouse_double_clicked, MouseDoubleClicked); + assert_field_offset!(mouse_clicked_count, MouseClickedCount); + assert_field_offset!(mouse_clicked_last_count, MouseClickedLastCount); + assert_field_offset!(mouse_released, MouseReleased); + assert_field_offset!(mouse_down_owned, MouseDownOwned); + assert_field_offset!(mouse_down_duration, MouseDownDuration); + assert_field_offset!(mouse_down_duration_prev, MouseDownDurationPrev); + assert_field_offset!(mouse_drag_max_distance_sqr, MouseDragMaxDistanceSqr); + assert_field_offset!(pen_pressure, PenPressure); + assert_field_offset!(app_focus_lost, AppFocusLost); + assert_field_offset!(app_accepting_events, AppAcceptingEvents); + assert_field_offset!(backend_using_legacy_key_arrays, BackendUsingLegacyKeyArrays); + assert_field_offset!( + backend_using_legacy_nav_input_array, + BackendUsingLegacyNavInputArray + ); + assert_field_offset!(input_queue_surrogate, InputQueueSurrogate); + assert_field_offset!(input_queue_characters, InputQueueCharacters); + }).unwrap().join().unwrap(); } From 1a1ea098c180f9673d21894cd10eae525f93f5e2 Mon Sep 17 00:00:00 2001 From: Robin Quint Date: Thu, 22 Dec 2022 15:10:09 +0100 Subject: [PATCH 06/18] cargo fmt --- imgui/src/input/keyboard.rs | 8 +- imgui/src/input/mouse.rs | 6 +- imgui/src/io.rs | 213 ++++++++++++++++++------------------ 3 files changed, 116 insertions(+), 111 deletions(-) diff --git a/imgui/src/input/keyboard.rs b/imgui/src/input/keyboard.rs index 6f4218923..91f20bd70 100644 --- a/imgui/src/input/keyboard.rs +++ b/imgui/src/input/keyboard.rs @@ -345,7 +345,7 @@ impl Ui { #[inline] #[doc(alias = "IsKeyDown")] pub fn is_key_index_down(&self, key_index: u32) -> bool { - cfg_if::cfg_if!{ + cfg_if::cfg_if! { if #[cfg(feature = "docking")] { unsafe { sys::igIsKeyDown_Nil(key_index) } } else { @@ -371,7 +371,7 @@ impl Ui { #[inline] #[doc(alias = "IsKeyPressed")] pub fn is_key_index_pressed(&self, key_index: u32) -> bool { - cfg_if::cfg_if!{ + cfg_if::cfg_if! { if #[cfg(feature = "docking")] { unsafe { sys::igIsKeyPressed_Bool(key_index, true) } } else { @@ -398,7 +398,7 @@ impl Ui { #[inline] #[doc(alias = "IsKeyPressed")] pub fn is_key_index_pressed_no_repeat(&self, key_index: u32) -> bool { - cfg_if::cfg_if!{ + cfg_if::cfg_if! { if #[cfg(feature = "docking")] { unsafe { sys::igIsKeyPressed_Bool(key_index, false) } } else { @@ -422,7 +422,7 @@ impl Ui { #[inline] #[doc(alias = "IsKeyReleased")] pub fn is_key_index_released(&self, key_index: u32) -> bool { - cfg_if::cfg_if!{ + cfg_if::cfg_if! { if #[cfg(feature = "docking")] { unsafe { sys::igIsKeyReleased_Nil(key_index) } } else { diff --git a/imgui/src/input/mouse.rs b/imgui/src/input/mouse.rs index 084941b94..2656b1e87 100644 --- a/imgui/src/input/mouse.rs +++ b/imgui/src/input/mouse.rs @@ -95,7 +95,7 @@ impl Ui { /// Equivalent to indexing the Io struct with the button, e.g. `ui.io()[button]`. #[doc(alias = "IsMouseDown")] pub fn is_mouse_down(&self, button: MouseButton) -> bool { - cfg_if::cfg_if!{ + cfg_if::cfg_if! { if #[cfg(feature = "docking")] { unsafe { sys::igIsMouseDown_Nil(button as i32) } } else { @@ -111,7 +111,7 @@ impl Ui { /// Returns true if the given mouse button was clicked (went from !down to down) #[doc(alias = "IsMouseClicked")] pub fn is_mouse_clicked(&self, button: MouseButton) -> bool { - cfg_if::cfg_if!{ + cfg_if::cfg_if! { if #[cfg(feature = "docking")] { unsafe { sys::igIsMouseClicked_Bool(button as i32, false) } } else { @@ -127,7 +127,7 @@ impl Ui { /// Returns true if the given mouse button was released (went from down to !down) #[doc(alias = "IsMouseReleased")] pub fn is_mouse_released(&self, button: MouseButton) -> bool { - cfg_if::cfg_if!{ + cfg_if::cfg_if! { if #[cfg(feature = "docking")] { unsafe { sys::igIsMouseReleased_Nil(button as i32) } } else { diff --git a/imgui/src/io.rs b/imgui/src/io.rs index af3575e60..27e109e02 100644 --- a/imgui/src/io.rs +++ b/imgui/src/io.rs @@ -481,108 +481,113 @@ fn test_io_memory_layout() { }; } - std::thread::Builder::new().stack_size(4 * 1024 * 1024).spawn(|| { - assert_field_offset!(config_flags, ConfigFlags); - assert_field_offset!(backend_flags, BackendFlags); - assert_field_offset!(display_size, DisplaySize); - assert_field_offset!(delta_time, DeltaTime); - assert_field_offset!(ini_saving_rate, IniSavingRate); - assert_field_offset!(ini_filename, IniFilename); - assert_field_offset!(log_filename, LogFilename); - assert_field_offset!(mouse_double_click_time, MouseDoubleClickTime); - assert_field_offset!(mouse_double_click_max_dist, MouseDoubleClickMaxDist); - assert_field_offset!(mouse_drag_threshold, MouseDragThreshold); - assert_field_offset!(key_repeat_delay, KeyRepeatDelay); - assert_field_offset!(key_repeat_rate, KeyRepeatRate); - assert_field_offset!(hover_delay_normal, HoverDelayNormal); - assert_field_offset!(hover_delay_short, HoverDelayShort); - assert_field_offset!(user_data, UserData); - assert_field_offset!(fonts, Fonts); - assert_field_offset!(font_global_scale, FontGlobalScale); - assert_field_offset!(font_allow_user_scaling, FontAllowUserScaling); - assert_field_offset!(font_default, FontDefault); - assert_field_offset!(display_framebuffer_scale, DisplayFramebufferScale); - assert_field_offset!(mouse_draw_cursor, MouseDrawCursor); - assert_field_offset!(config_mac_os_behaviors, ConfigMacOSXBehaviors); - assert_field_offset!( - config_input_trickle_event_queue, - ConfigInputTrickleEventQueue - ); - assert_field_offset!(config_input_text_cursor_blink, ConfigInputTextCursorBlink); - assert_field_offset!( - config_input_text_enter_keep_active, - ConfigInputTextEnterKeepActive - ); - assert_field_offset!( - config_windows_resize_from_edges, - ConfigWindowsResizeFromEdges - ); - assert_field_offset!( - config_windows_move_from_title_bar_only, - ConfigWindowsMoveFromTitleBarOnly - ); - assert_field_offset!(backend_platform_name, BackendPlatformName); - assert_field_offset!(backend_renderer_name, BackendRendererName); - assert_field_offset!(backend_platform_user_data, BackendPlatformUserData); - assert_field_offset!(backend_renderer_user_data, BackendRendererUserData); - assert_field_offset!(backend_language_user_data, BackendLanguageUserData); - assert_field_offset!(get_clipboard_text_fn, GetClipboardTextFn); - assert_field_offset!(set_clipboard_text_fn, SetClipboardTextFn); - assert_field_offset!(clipboard_user_data, ClipboardUserData); - assert_field_offset!(set_platform_ime_data_fn, SetPlatformImeDataFn); - assert_field_offset!(unused_padding, _UnusedPadding); - assert_field_offset!(want_capture_mouse, WantCaptureMouse); - assert_field_offset!(want_capture_keyboard, WantCaptureKeyboard); - assert_field_offset!(want_text_input, WantTextInput); - assert_field_offset!(want_set_mouse_pos, WantSetMousePos); - assert_field_offset!(want_save_ini_settings, WantSaveIniSettings); - assert_field_offset!(nav_active, NavActive); - assert_field_offset!(nav_visible, NavVisible); - assert_field_offset!(framerate, Framerate); - assert_field_offset!(metrics_render_vertices, MetricsRenderVertices); - assert_field_offset!(metrics_render_indices, MetricsRenderIndices); - assert_field_offset!(metrics_render_windows, MetricsRenderWindows); - assert_field_offset!(metrics_active_windows, MetricsActiveWindows); - assert_field_offset!(metrics_active_allocations, MetricsActiveAllocations); - assert_field_offset!(mouse_delta, MouseDelta); - assert_field_offset!(key_map, KeyMap); - assert_field_offset!(keys_down, KeysDown); - assert_field_offset!(nav_inputs, NavInputs); - assert_field_offset!(mouse_pos, MousePos); - assert_field_offset!(mouse_down, MouseDown); - assert_field_offset!(mouse_wheel, MouseWheel); - assert_field_offset!(mouse_wheel_h, MouseWheelH); - assert_field_offset!(key_ctrl, KeyCtrl); - assert_field_offset!(key_shift, KeyShift); - assert_field_offset!(key_alt, KeyAlt); - assert_field_offset!(key_super, KeySuper); - assert_field_offset!(key_mods, KeyMods); - assert_field_offset!(keys_data, KeysData); - assert_field_offset!( - want_capture_mouse_unless_popup_close, - WantCaptureMouseUnlessPopupClose - ); - assert_field_offset!(mouse_pos_prev, MousePosPrev); - assert_field_offset!(mouse_clicked_pos, MouseClickedPos); - assert_field_offset!(mouse_clicked_time, MouseClickedTime); - assert_field_offset!(mouse_clicked, MouseClicked); - assert_field_offset!(mouse_double_clicked, MouseDoubleClicked); - assert_field_offset!(mouse_clicked_count, MouseClickedCount); - assert_field_offset!(mouse_clicked_last_count, MouseClickedLastCount); - assert_field_offset!(mouse_released, MouseReleased); - assert_field_offset!(mouse_down_owned, MouseDownOwned); - assert_field_offset!(mouse_down_duration, MouseDownDuration); - assert_field_offset!(mouse_down_duration_prev, MouseDownDurationPrev); - assert_field_offset!(mouse_drag_max_distance_sqr, MouseDragMaxDistanceSqr); - assert_field_offset!(pen_pressure, PenPressure); - assert_field_offset!(app_focus_lost, AppFocusLost); - assert_field_offset!(app_accepting_events, AppAcceptingEvents); - assert_field_offset!(backend_using_legacy_key_arrays, BackendUsingLegacyKeyArrays); - assert_field_offset!( - backend_using_legacy_nav_input_array, - BackendUsingLegacyNavInputArray - ); - assert_field_offset!(input_queue_surrogate, InputQueueSurrogate); - assert_field_offset!(input_queue_characters, InputQueueCharacters); - }).unwrap().join().unwrap(); + std::thread::Builder::new() + .stack_size(4 * 1024 * 1024) + .spawn(|| { + assert_field_offset!(config_flags, ConfigFlags); + assert_field_offset!(backend_flags, BackendFlags); + assert_field_offset!(display_size, DisplaySize); + assert_field_offset!(delta_time, DeltaTime); + assert_field_offset!(ini_saving_rate, IniSavingRate); + assert_field_offset!(ini_filename, IniFilename); + assert_field_offset!(log_filename, LogFilename); + assert_field_offset!(mouse_double_click_time, MouseDoubleClickTime); + assert_field_offset!(mouse_double_click_max_dist, MouseDoubleClickMaxDist); + assert_field_offset!(mouse_drag_threshold, MouseDragThreshold); + assert_field_offset!(key_repeat_delay, KeyRepeatDelay); + assert_field_offset!(key_repeat_rate, KeyRepeatRate); + assert_field_offset!(hover_delay_normal, HoverDelayNormal); + assert_field_offset!(hover_delay_short, HoverDelayShort); + assert_field_offset!(user_data, UserData); + assert_field_offset!(fonts, Fonts); + assert_field_offset!(font_global_scale, FontGlobalScale); + assert_field_offset!(font_allow_user_scaling, FontAllowUserScaling); + assert_field_offset!(font_default, FontDefault); + assert_field_offset!(display_framebuffer_scale, DisplayFramebufferScale); + assert_field_offset!(mouse_draw_cursor, MouseDrawCursor); + assert_field_offset!(config_mac_os_behaviors, ConfigMacOSXBehaviors); + assert_field_offset!( + config_input_trickle_event_queue, + ConfigInputTrickleEventQueue + ); + assert_field_offset!(config_input_text_cursor_blink, ConfigInputTextCursorBlink); + assert_field_offset!( + config_input_text_enter_keep_active, + ConfigInputTextEnterKeepActive + ); + assert_field_offset!( + config_windows_resize_from_edges, + ConfigWindowsResizeFromEdges + ); + assert_field_offset!( + config_windows_move_from_title_bar_only, + ConfigWindowsMoveFromTitleBarOnly + ); + assert_field_offset!(backend_platform_name, BackendPlatformName); + assert_field_offset!(backend_renderer_name, BackendRendererName); + assert_field_offset!(backend_platform_user_data, BackendPlatformUserData); + assert_field_offset!(backend_renderer_user_data, BackendRendererUserData); + assert_field_offset!(backend_language_user_data, BackendLanguageUserData); + assert_field_offset!(get_clipboard_text_fn, GetClipboardTextFn); + assert_field_offset!(set_clipboard_text_fn, SetClipboardTextFn); + assert_field_offset!(clipboard_user_data, ClipboardUserData); + assert_field_offset!(set_platform_ime_data_fn, SetPlatformImeDataFn); + assert_field_offset!(unused_padding, _UnusedPadding); + assert_field_offset!(want_capture_mouse, WantCaptureMouse); + assert_field_offset!(want_capture_keyboard, WantCaptureKeyboard); + assert_field_offset!(want_text_input, WantTextInput); + assert_field_offset!(want_set_mouse_pos, WantSetMousePos); + assert_field_offset!(want_save_ini_settings, WantSaveIniSettings); + assert_field_offset!(nav_active, NavActive); + assert_field_offset!(nav_visible, NavVisible); + assert_field_offset!(framerate, Framerate); + assert_field_offset!(metrics_render_vertices, MetricsRenderVertices); + assert_field_offset!(metrics_render_indices, MetricsRenderIndices); + assert_field_offset!(metrics_render_windows, MetricsRenderWindows); + assert_field_offset!(metrics_active_windows, MetricsActiveWindows); + assert_field_offset!(metrics_active_allocations, MetricsActiveAllocations); + assert_field_offset!(mouse_delta, MouseDelta); + assert_field_offset!(key_map, KeyMap); + assert_field_offset!(keys_down, KeysDown); + assert_field_offset!(nav_inputs, NavInputs); + assert_field_offset!(mouse_pos, MousePos); + assert_field_offset!(mouse_down, MouseDown); + assert_field_offset!(mouse_wheel, MouseWheel); + assert_field_offset!(mouse_wheel_h, MouseWheelH); + assert_field_offset!(key_ctrl, KeyCtrl); + assert_field_offset!(key_shift, KeyShift); + assert_field_offset!(key_alt, KeyAlt); + assert_field_offset!(key_super, KeySuper); + assert_field_offset!(key_mods, KeyMods); + assert_field_offset!(keys_data, KeysData); + assert_field_offset!( + want_capture_mouse_unless_popup_close, + WantCaptureMouseUnlessPopupClose + ); + assert_field_offset!(mouse_pos_prev, MousePosPrev); + assert_field_offset!(mouse_clicked_pos, MouseClickedPos); + assert_field_offset!(mouse_clicked_time, MouseClickedTime); + assert_field_offset!(mouse_clicked, MouseClicked); + assert_field_offset!(mouse_double_clicked, MouseDoubleClicked); + assert_field_offset!(mouse_clicked_count, MouseClickedCount); + assert_field_offset!(mouse_clicked_last_count, MouseClickedLastCount); + assert_field_offset!(mouse_released, MouseReleased); + assert_field_offset!(mouse_down_owned, MouseDownOwned); + assert_field_offset!(mouse_down_duration, MouseDownDuration); + assert_field_offset!(mouse_down_duration_prev, MouseDownDurationPrev); + assert_field_offset!(mouse_drag_max_distance_sqr, MouseDragMaxDistanceSqr); + assert_field_offset!(pen_pressure, PenPressure); + assert_field_offset!(app_focus_lost, AppFocusLost); + assert_field_offset!(app_accepting_events, AppAcceptingEvents); + assert_field_offset!(backend_using_legacy_key_arrays, BackendUsingLegacyKeyArrays); + assert_field_offset!( + backend_using_legacy_nav_input_array, + BackendUsingLegacyNavInputArray + ); + assert_field_offset!(input_queue_surrogate, InputQueueSurrogate); + assert_field_offset!(input_queue_characters, InputQueueCharacters); + }) + .unwrap() + .join() + .unwrap(); } From a8e2fb4fb4da4ece3b5dfde9465b58209f733816 Mon Sep 17 00:00:00 2001 From: Robin Quint Date: Thu, 22 Dec 2022 15:41:27 +0100 Subject: [PATCH 07/18] Added new flags to ItemHoveredFlags, added documentation to new pub members of io --- imgui/src/io.rs | 5 +++++ imgui/src/utils.rs | 2 ++ 2 files changed, 7 insertions(+) diff --git a/imgui/src/io.rs b/imgui/src/io.rs index 27e109e02..2f52152d9 100644 --- a/imgui/src/io.rs +++ b/imgui/src/io.rs @@ -160,7 +160,9 @@ pub struct Io { /// When holding a key/button, rate at which it repeats, in seconds pub key_repeat_rate: f32, + /// Delay on hover before [`ui.is_item_hovered_with_flags(ItemHoveredFlags::DELAY_NORMAL)`](crate::Ui::is_item_hovered_with_flags) returns true pub hover_delay_normal: f32, + /// Delay on hover before [`ui.is_item_hovered_with_flags(ItemHoveredFlags::DELAY_SHORT)`](crate::Ui::is_item_hovered_with_flags) returns true pub hover_delay_short: f32, user_data: *mut c_void, @@ -206,9 +208,12 @@ pub struct Io { /// * Double-click selects by word instead of selecting the whole text /// * Multi-selection in lists uses Cmd/Super instead of Ctrl pub config_mac_os_behaviors: bool, + /// Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) + /// will be spread over multiple frames, improving interactions with low framerates. pub config_input_trickle_event_queue: bool, /// Set to false to disable blinking cursor pub config_input_text_cursor_blink: bool, + /// Pressing Enter will keep item active and select contents (single-line only). pub config_input_text_enter_keep_active: bool, /// Enable turning DragXXX widgets into text input with a simple mouse /// click-release (without moving). Not desirable on devices without a diff --git a/imgui/src/utils.rs b/imgui/src/utils.rs index 2f94fb452..3dbd2476a 100644 --- a/imgui/src/utils.rs +++ b/imgui/src/utils.rs @@ -21,6 +21,8 @@ bitflags! { /// Return true even if the item is disabled const ALLOW_WHEN_DISABLED = sys::ImGuiHoveredFlags_AllowWhenDisabled; const RECT_ONLY = sys::ImGuiHoveredFlags_RectOnly; + const DELAY_NORMAL = sys::ImGuiHoveredFlags_DelayNormal; + const DELAY_SHORT = sys::ImGuiHoveredFlags_DelayShort; } } From 37a800c33ceb2b3be084e7551f5457f5ebce058a Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 28 Dec 2022 12:31:31 +0100 Subject: [PATCH 08/18] Added documentation to io test, added fallback implementation for ImageButton --- imgui/src/io.rs | 3 ++ imgui/src/widget/image.rs | 99 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 101 insertions(+), 1 deletion(-) diff --git a/imgui/src/io.rs b/imgui/src/io.rs index 2f52152d9..e753df5d4 100644 --- a/imgui/src/io.rs +++ b/imgui/src/io.rs @@ -486,6 +486,9 @@ fn test_io_memory_layout() { }; } + // We move this test into a Thread with a larger stack + // since the stack size of the default thread is not large enough in + // debug mode. std::thread::Builder::new() .stack_size(4 * 1024 * 1024) .spawn(|| { diff --git a/imgui/src/widget/image.rs b/imgui/src/widget/image.rs index ea4cbb9f2..04bc620ea 100644 --- a/imgui/src/widget/image.rs +++ b/imgui/src/widget/image.rs @@ -86,10 +86,38 @@ pub struct ImageButton<'ui, StrId> { ui: &'ui Ui, } +#[derive(Copy, Clone, Debug)] +#[must_use] +pub struct ImageButtonDeprecated { + texture_id: TextureId, + size: [f32; 2], + uv0: [f32; 2], + uv1: [f32; 2], + frame_padding: i32, + bg_col: [f32; 4], + tint_col: [f32; 4], +} + +impl ImageButton<'static, ()> { + /// Creates a new image button builder with the given texture and size + #[deprecated(since = "0.10.0", note = "Use `ui.image_button_config(...)` instead")] + pub fn new(texture_id: TextureId, size: impl Into) -> ImageButtonDeprecated { + ImageButtonDeprecated { + texture_id, + size: size.into().into(), + uv0: [0.0, 0.0], + uv1: [1.0, 1.0], + frame_padding: -1, + bg_col: [0.0, 0.0, 0.0, 0.0], + tint_col: [1.0, 1.0, 1.0, 1.0], + } + } +} + impl<'ui, StrId: AsRef> ImageButton<'ui, StrId> { /// Creates a new image button builder with the given texture and size #[deprecated(since = "0.10.0", note = "Use `ui.image_button_config(...)` instead")] - pub fn new( + pub fn new_with_id( ui: &'ui Ui, str_id: StrId, texture_id: TextureId, @@ -149,6 +177,75 @@ impl<'ui, StrId: AsRef> ImageButton<'ui, StrId> { } } +impl ImageButtonDeprecated { + /// Sets the image button size + #[deprecated(note = "just set the size in the `new` constructor.")] + pub fn size(mut self, size: impl Into) -> Self { + self.size = size.into().into(); + self + } + /// Sets uv0 (default `[0.0, 0.0]`) + pub fn uv0(mut self, uv0: impl Into) -> Self { + self.uv0 = uv0.into().into(); + self + } + /// Sets uv1 (default `[1.0, 1.0]`) + pub fn uv1(mut self, uv1: impl Into) -> Self { + self.uv1 = uv1.into().into(); + self + } + /// Sets the background color (default: no background color) + pub fn background_col(mut self, bg_col: impl Into) -> Self { + self.bg_col = bg_col.into().into(); + self + } + /// Sets the tint color (default: no tint color) + pub fn tint_col(mut self, tint_col: impl Into) -> Self { + self.tint_col = tint_col.into().into(); + self + } + /// Sets the frame padding (default: uses frame padding from style). + /// + /// - `< 0`: uses frame padding from style (default) + /// - `= 0`: no framing + /// - `> 0`: set framing size + pub fn frame_padding(mut self, frame_padding: i32) -> Self { + self.frame_padding = frame_padding; + self + } + /// Builds the image button + pub fn build(self, _: &Ui) -> bool { + unsafe { + sys::igPushID_Ptr(self.texture_id.id() as *const _); + + if self.frame_padding >= 0 { + sys::igPushStyleVar_Vec2( + sys::ImGuiStyleVar_FramePadding as i32, + [self.frame_padding as f32, self.frame_padding as f32].into(), + ); + } + + let res = sys::igImageButton( + b"#image".as_ptr().cast(), + self.texture_id.id() as *mut c_void, + self.size.into(), + self.uv0.into(), + self.uv1.into(), + self.bg_col.into(), + self.tint_col.into(), + ); + + if self.frame_padding >= 0 { + sys::igPopStyleVar(1); + } + + sys::igPopID(); + + res + } + } +} + impl Ui { pub fn image_button( &self, From b70981531e741ec45e7bc3c6d051bde255cc178b Mon Sep 17 00:00:00 2001 From: dbr Date: Sun, 1 Jan 2023 17:32:18 +1030 Subject: [PATCH 09/18] fmt --- imgui/src/io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui/src/io.rs b/imgui/src/io.rs index e753df5d4..13611bff1 100644 --- a/imgui/src/io.rs +++ b/imgui/src/io.rs @@ -208,7 +208,7 @@ pub struct Io { /// * Double-click selects by word instead of selecting the whole text /// * Multi-selection in lists uses Cmd/Super instead of Ctrl pub config_mac_os_behaviors: bool, - /// Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) + /// Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) /// will be spread over multiple frames, improving interactions with low framerates. pub config_input_trickle_event_queue: bool, /// Set to false to disable blinking cursor From 2980dc01b5d2388f8d40abf038575695622c1f08 Mon Sep 17 00:00:00 2001 From: dbr Date: Sun, 1 Jan 2023 17:33:42 +1030 Subject: [PATCH 10/18] Set CIMGUI_FREETYPE define --- imgui-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui-sys/build.rs b/imgui-sys/build.rs index 9b37c04c4..8e7561d90 100644 --- a/imgui-sys/build.rs +++ b/imgui-sys/build.rs @@ -55,6 +55,7 @@ fn main() -> std::io::Result<()> { } // Set flag for dear imgui build.define("IMGUI_ENABLE_FREETYPE", None); + build.define("CIMGUI_FREETYPE", None); println!("cargo:DEFINE_IMGUI_ENABLE_FREETYPE="); // imgui_freetype.cpp needs access to `#include "imgui.h"`. From 71a2dbd066e39e6a8d26bc97aa39e9e4a3183c9a Mon Sep 17 00:00:00 2001 From: dbr Date: Sun, 1 Jan 2023 17:52:24 +1030 Subject: [PATCH 11/18] Ignore clippy warning In this case we are intentionally returning different struct for backwards-compat --- imgui/src/widget/image.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui/src/widget/image.rs b/imgui/src/widget/image.rs index 04bc620ea..19a8cf4bb 100644 --- a/imgui/src/widget/image.rs +++ b/imgui/src/widget/image.rs @@ -101,6 +101,7 @@ pub struct ImageButtonDeprecated { impl ImageButton<'static, ()> { /// Creates a new image button builder with the given texture and size #[deprecated(since = "0.10.0", note = "Use `ui.image_button_config(...)` instead")] + #[allow(clippy::new_ret_no_self)] pub fn new(texture_id: TextureId, size: impl Into) -> ImageButtonDeprecated { ImageButtonDeprecated { texture_id, From e5d3490ce53bafeeb0e0c720469490a111b9fbc7 Mon Sep 17 00:00:00 2001 From: dbr Date: Mon, 2 Jan 2023 11:49:57 +1030 Subject: [PATCH 12/18] Explicitly link c++11 stdlib May help with macOS builds --- imgui-sys/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imgui-sys/build.rs b/imgui-sys/build.rs index 8e7561d90..dba7a439e 100644 --- a/imgui-sys/build.rs +++ b/imgui-sys/build.rs @@ -40,6 +40,9 @@ fn main() -> std::io::Result<()> { let mut build = cc::Build::new(); build.cpp(true); + // imgui uses C++11 stuff from v1.87 onwards + build.cpp_link_stdlib("c++11"); + // Set defines for compiler for (key, value) in DEFINES.iter() { build.define(key, *value); @@ -80,7 +83,6 @@ fn main() -> std::io::Result<()> { } // Build imgui lib, suppressing warnings. - // TODO: disable linking C++ stdlib? Not sure if it's allowed. build.warnings(false).file(imgui_cpp).compile("libcimgui.a"); } Ok(()) From f3e7958eb8a29477aa2e2d286d5b75a0345f83d6 Mon Sep 17 00:00:00 2001 From: dbr Date: Mon, 2 Jan 2023 12:07:28 +1030 Subject: [PATCH 13/18] Use flag_if_supported instead of cpp_link_stdlib --- imgui-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui-sys/build.rs b/imgui-sys/build.rs index dba7a439e..ffcbdfab4 100644 --- a/imgui-sys/build.rs +++ b/imgui-sys/build.rs @@ -41,7 +41,7 @@ fn main() -> std::io::Result<()> { build.cpp(true); // imgui uses C++11 stuff from v1.87 onwards - build.cpp_link_stdlib("c++11"); + build.flag_if_supported("-std=c++11"); // Set defines for compiler for (key, value) in DEFINES.iter() { From 7ad609090fec3d8f806c944f94c43f16ffd46278 Mon Sep 17 00:00:00 2001 From: dbr Date: Wed, 4 Jan 2023 15:35:07 +1030 Subject: [PATCH 14/18] Mess to add freetype-specific bindgen There are now a few freetype-specific functions in the API so we need seperate bindgen output for it Duplicates the imgui code somewhat unnecessarily, but shouldn't impact repo size much due to git's compression --- imgui-sys/build.rs | 23 +- imgui-sys/include_imgui_docking.cpp | 6 - imgui-sys/include_imgui_docking_freetype.cpp | 12 + imgui-sys/include_imgui_master.cpp | 6 - imgui-sys/include_imgui_master_freetype.cpp | 12 + imgui-sys/src/docking_freetype_bindings.rs | 4983 ++++ imgui-sys/src/freetype_bindings.rs | 4723 ++++ imgui-sys/src/lib.rs | 44 +- .../src/wasm_docking_freetype_bindings.rs | 5620 +++++ imgui-sys/src/wasm_freetype_bindings.rs | 5336 +++++ .../imgui-docking-freetype/cimgui.cpp | 2764 +++ .../imgui-docking-freetype/cimgui.h | 2069 ++ .../imgui-docking-freetype/cimgui_impl.h | 60 + .../imgui-docking-freetype/definitions.json | 18331 ++++++++++++++ .../imgui-docking-freetype/definitions.lua | 15483 ++++++++++++ .../imgui-docking-freetype/imgui/LICENSE.txt | 21 + .../imgui-docking-freetype/imgui/imconfig.h | 120 + .../imgui-docking-freetype/imgui/imgui.cpp | 19926 ++++++++++++++++ .../imgui-docking-freetype/imgui/imgui.h | 3334 +++ .../imgui/imgui_demo.cpp | 8354 +++++++ .../imgui/imgui_draw.cpp | 4195 ++++ .../imgui/imgui_internal.h | 3524 +++ .../imgui/imgui_tables.cpp | 4084 ++++ .../imgui/imgui_widgets.cpp | 8562 +++++++ .../imgui/imstb_rectpack.h | 627 + .../imgui/imstb_textedit.h | 1447 ++ .../imgui/imstb_truetype.h | 5085 ++++ .../imgui/misc/freetype/README.md | 37 + .../imgui/misc/freetype/imgui_freetype.cpp | 780 + .../imgui/misc/freetype/imgui_freetype.h | 50 + .../impl_definitions.json | 818 + .../impl_definitions.lua | 715 + .../imgui-docking-freetype/overloads.txt | 144 + .../structs_and_enums.json | 4917 ++++ .../structs_and_enums.lua | 3873 +++ .../imgui-docking-freetype/typedefs_dict.json | 97 + .../imgui-docking-freetype/typedefs_dict.lua | 98 + .../update-cimgui-output.sh | 35 + .../imgui-master-freetype/cimgui.cpp | 2667 +++ .../imgui-master-freetype/cimgui.h | 1930 ++ .../imgui-master-freetype/cimgui_impl.h | 60 + .../imgui-master-freetype/definitions.json | 17822 ++++++++++++++ .../imgui-master-freetype/definitions.lua | 15036 ++++++++++++ .../imgui-master-freetype/imgui/LICENSE.txt | 21 + .../imgui-master-freetype/imgui/imconfig.h | 120 + .../imgui-master-freetype/imgui/imgui.cpp | 14238 +++++++++++ .../imgui-master-freetype/imgui/imgui.h | 3078 +++ .../imgui/imgui_demo.cpp | 8064 +++++++ .../imgui/imgui_draw.cpp | 4167 ++++ .../imgui/imgui_internal.h | 3228 +++ .../imgui/imgui_tables.cpp | 4084 ++++ .../imgui/imgui_widgets.cpp | 8416 +++++++ .../imgui/imstb_rectpack.h | 627 + .../imgui/imstb_textedit.h | 1447 ++ .../imgui/imstb_truetype.h | 5085 ++++ .../imgui/misc/freetype/README.md | 37 + .../imgui/misc/freetype/imgui_freetype.cpp | 780 + .../imgui/misc/freetype/imgui_freetype.h | 50 + .../impl_definitions.json | 818 + .../impl_definitions.lua | 715 + .../imgui-master-freetype/overloads.txt | 138 + .../structs_and_enums.json | 4512 ++++ .../structs_and_enums.lua | 3560 +++ .../imgui-master-freetype/typedefs_dict.json | 93 + .../imgui-master-freetype/typedefs_dict.lua | 94 + .../update-cimgui-output.sh | 35 + imgui-sys/third-party/update-imgui.sh | 3 + xtask/src/bindgen.rs | 41 +- 68 files changed, 231234 insertions(+), 47 deletions(-) create mode 100644 imgui-sys/include_imgui_docking_freetype.cpp create mode 100644 imgui-sys/include_imgui_master_freetype.cpp create mode 100644 imgui-sys/src/docking_freetype_bindings.rs create mode 100644 imgui-sys/src/freetype_bindings.rs create mode 100644 imgui-sys/src/wasm_docking_freetype_bindings.rs create mode 100644 imgui-sys/src/wasm_freetype_bindings.rs create mode 100644 imgui-sys/third-party/imgui-docking-freetype/cimgui.cpp create mode 100644 imgui-sys/third-party/imgui-docking-freetype/cimgui.h create mode 100644 imgui-sys/third-party/imgui-docking-freetype/cimgui_impl.h create mode 100644 imgui-sys/third-party/imgui-docking-freetype/definitions.json create mode 100644 imgui-sys/third-party/imgui-docking-freetype/definitions.lua create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/LICENSE.txt create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imconfig.h create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imgui.cpp create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imgui.h create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_demo.cpp create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_draw.cpp create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_internal.h create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_tables.cpp create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_widgets.cpp create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_rectpack.h create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_textedit.h create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_truetype.h create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/README.md create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/imgui_freetype.cpp create mode 100644 imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/imgui_freetype.h create mode 100644 imgui-sys/third-party/imgui-docking-freetype/impl_definitions.json create mode 100644 imgui-sys/third-party/imgui-docking-freetype/impl_definitions.lua create mode 100644 imgui-sys/third-party/imgui-docking-freetype/overloads.txt create mode 100644 imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.json create mode 100644 imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.lua create mode 100644 imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.json create mode 100644 imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.lua create mode 100755 imgui-sys/third-party/imgui-docking-freetype/update-cimgui-output.sh create mode 100644 imgui-sys/third-party/imgui-master-freetype/cimgui.cpp create mode 100644 imgui-sys/third-party/imgui-master-freetype/cimgui.h create mode 100644 imgui-sys/third-party/imgui-master-freetype/cimgui_impl.h create mode 100644 imgui-sys/third-party/imgui-master-freetype/definitions.json create mode 100644 imgui-sys/third-party/imgui-master-freetype/definitions.lua create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/LICENSE.txt create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imconfig.h create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imgui.cpp create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imgui.h create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imgui_demo.cpp create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imgui_draw.cpp create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imgui_internal.h create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imgui_tables.cpp create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imgui_widgets.cpp create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imstb_rectpack.h create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imstb_textedit.h create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/imstb_truetype.h create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/README.md create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/imgui_freetype.cpp create mode 100644 imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/imgui_freetype.h create mode 100644 imgui-sys/third-party/imgui-master-freetype/impl_definitions.json create mode 100644 imgui-sys/third-party/imgui-master-freetype/impl_definitions.lua create mode 100644 imgui-sys/third-party/imgui-master-freetype/overloads.txt create mode 100644 imgui-sys/third-party/imgui-master-freetype/structs_and_enums.json create mode 100644 imgui-sys/third-party/imgui-master-freetype/structs_and_enums.lua create mode 100644 imgui-sys/third-party/imgui-master-freetype/typedefs_dict.json create mode 100644 imgui-sys/third-party/imgui-master-freetype/typedefs_dict.lua create mode 100755 imgui-sys/third-party/imgui-master-freetype/update-cimgui-output.sh diff --git a/imgui-sys/build.rs b/imgui-sys/build.rs index ffcbdfab4..04ea9d1b7 100644 --- a/imgui-sys/build.rs +++ b/imgui-sys/build.rs @@ -21,13 +21,15 @@ fn main() -> std::io::Result<()> { // Feature flags - no extra dependencies, so these are queried as // env-vars to avoid recompilation of build.rs let docking_enabled = std::env::var_os("CARGO_FEATURE_DOCKING").is_some(); + let freetype_enabled = std::env::var_os("CARGO_FEATURE_FREETYPE").is_some(); let wasm_enabled = std::env::var_os("CARGO_FEATURE_WASM").is_some(); - let cimgui_dir = if docking_enabled { - manifest_dir.join("third-party/imgui-docking") - } else { - manifest_dir.join("third-party/imgui-master") - }; + let cimgui_dir = manifest_dir.join(match (docking_enabled, freetype_enabled) { + (false, false) => "third-party/imgui-master", + (true, false) => "third-party/imgui-docking", + (false, true) => "third-party/imgui-master-freetype", + (true, true) => "third-party/imgui-docking-freetype", + }); // For projects like implot-rs we expose the path to our cimgui // files, via `DEP_IMGUI_THIRD_PARTY` env-var, so they can build @@ -63,14 +65,15 @@ fn main() -> std::io::Result<()> { // imgui_freetype.cpp needs access to `#include "imgui.h"`. // So we include something like '[...]/third-party/imgui-master/imgui/' - build.include(cimgui_dir.join("imgui")); + build.include(dbg!(cimgui_dir.join("imgui"))); } // Which "all imgui" file to use - let imgui_cpp = if docking_enabled { - "include_imgui_docking.cpp" - } else { - "include_imgui_master.cpp" + let imgui_cpp = match (docking_enabled, freetype_enabled) { + (false, false) => "include_imgui_master.cpp", + (true, false) => "include_imgui_docking.cpp", + (false, true) => "include_imgui_master_freetype.cpp", + (true, true) => "include_imgui_docking_freetype.cpp", }; // Set up compiler diff --git a/imgui-sys/include_imgui_docking.cpp b/imgui-sys/include_imgui_docking.cpp index 81d66a6ae..c167468da 100644 --- a/imgui-sys/include_imgui_docking.cpp +++ b/imgui-sys/include_imgui_docking.cpp @@ -8,9 +8,3 @@ #include "./third-party/imgui-docking/imgui/imgui_widgets.cpp" #include "./third-party/imgui-docking/imgui/imgui_tables.cpp" #include "./third-party/imgui-docking/cimgui.cpp" - -#ifdef IMGUI_ENABLE_FREETYPE -#include "./third-party/imgui-docking/imgui/misc/freetype/imgui_freetype.cpp" -#endif - - diff --git a/imgui-sys/include_imgui_docking_freetype.cpp b/imgui-sys/include_imgui_docking_freetype.cpp new file mode 100644 index 000000000..d645364e9 --- /dev/null +++ b/imgui-sys/include_imgui_docking_freetype.cpp @@ -0,0 +1,12 @@ +// This improves build speed by only compiling a single file, and performance by +// allowing the optimizer to inline across separate object files (note that even +// when rust is built with LTO, unless the steps are taken to allow cross-lang +// LTO (tricky), the C/C++ code won't be LTOed). +#include "./third-party/imgui-docking-freetype/imgui/imgui.cpp" +#include "./third-party/imgui-docking-freetype/imgui/imgui_demo.cpp" +#include "./third-party/imgui-docking-freetype/imgui/imgui_draw.cpp" +#include "./third-party/imgui-docking-freetype/imgui/imgui_widgets.cpp" +#include "./third-party/imgui-docking-freetype/imgui/imgui_tables.cpp" +#include "./third-party/imgui-docking-freetype/cimgui.cpp" + +#include "./third-party/imgui-docking-freetype/imgui/misc/freetype/imgui_freetype.cpp" diff --git a/imgui-sys/include_imgui_master.cpp b/imgui-sys/include_imgui_master.cpp index aa326528a..98adc1ef5 100644 --- a/imgui-sys/include_imgui_master.cpp +++ b/imgui-sys/include_imgui_master.cpp @@ -8,9 +8,3 @@ #include "./third-party/imgui-master/imgui/imgui_widgets.cpp" #include "./third-party/imgui-master/imgui/imgui_tables.cpp" #include "./third-party/imgui-master/cimgui.cpp" - -#ifdef IMGUI_ENABLE_FREETYPE -#include "./third-party/imgui-master/imgui/misc/freetype/imgui_freetype.cpp" -#endif - - diff --git a/imgui-sys/include_imgui_master_freetype.cpp b/imgui-sys/include_imgui_master_freetype.cpp new file mode 100644 index 000000000..6e41f9126 --- /dev/null +++ b/imgui-sys/include_imgui_master_freetype.cpp @@ -0,0 +1,12 @@ +// This improves build speed by only compiling a single file, and performance by +// allowing the optimizer to inline across separate object files (note that even +// when rust is built with LTO, unless the steps are taken to allow cross-lang +// LTO (tricky), the C/C++ code won't be LTOed). +#include "./third-party/imgui-master-freetype/imgui/imgui.cpp" +#include "./third-party/imgui-master-freetype/imgui/imgui_demo.cpp" +#include "./third-party/imgui-master-freetype/imgui/imgui_draw.cpp" +#include "./third-party/imgui-master-freetype/imgui/imgui_widgets.cpp" +#include "./third-party/imgui-master-freetype/imgui/imgui_tables.cpp" +#include "./third-party/imgui-master-freetype/cimgui.cpp" + +#include "./third-party/imgui-master-freetype/imgui/misc/freetype/imgui_freetype.cpp" diff --git a/imgui-sys/src/docking_freetype_bindings.rs b/imgui-sys/src/docking_freetype_bindings.rs new file mode 100644 index 000000000..2e88b6245 --- /dev/null +++ b/imgui-sys/src/docking_freetype_bindings.rs @@ -0,0 +1,4983 @@ +/* automatically generated by rust-bindgen 0.63.0 */ + +#![allow(nonstandard_style, clippy::all)] + +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { + storage: Storage, +} +impl __BindgenBitfieldUnit { + #[inline] + pub const fn new(storage: Storage) -> Self { + Self { storage } + } +} +impl __BindgenBitfieldUnit +where + Storage: AsRef<[u8]> + AsMut<[u8]>, +{ + #[inline] + pub fn get_bit(&self, index: usize) -> bool { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = self.storage.as_ref()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + byte & mask == mask + } + #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + if val { + *byte |= mask; + } else { + *byte &= !mask; + } + } + #[inline] + pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if self.get_bit(i + bit_offset) { + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + val |= 1 << index; + } + } + val + } + #[inline] + pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + self.set_bit(index + bit_offset, val_bit_is_set); + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImDrawListSharedData { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImFontBuilderIO { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImGuiContext { + _unused: [u8; 0], +} +pub type ImGuiCol = cty::c_int; +pub type ImGuiCond = cty::c_int; +pub type ImGuiDataType = cty::c_int; +pub type ImGuiDir = cty::c_int; +pub type ImGuiMouseButton = cty::c_int; +pub type ImGuiMouseCursor = cty::c_int; +pub type ImGuiSortDirection = cty::c_int; +pub type ImGuiStyleVar = cty::c_int; +pub type ImGuiTableBgTarget = cty::c_int; +pub type ImDrawFlags = cty::c_int; +pub type ImDrawListFlags = cty::c_int; +pub type ImFontAtlasFlags = cty::c_int; +pub type ImGuiBackendFlags = cty::c_int; +pub type ImGuiButtonFlags = cty::c_int; +pub type ImGuiColorEditFlags = cty::c_int; +pub type ImGuiConfigFlags = cty::c_int; +pub type ImGuiComboFlags = cty::c_int; +pub type ImGuiDockNodeFlags = cty::c_int; +pub type ImGuiDragDropFlags = cty::c_int; +pub type ImGuiFocusedFlags = cty::c_int; +pub type ImGuiHoveredFlags = cty::c_int; +pub type ImGuiInputTextFlags = cty::c_int; +pub type ImGuiKeyChord = cty::c_int; +pub type ImGuiPopupFlags = cty::c_int; +pub type ImGuiSelectableFlags = cty::c_int; +pub type ImGuiSliderFlags = cty::c_int; +pub type ImGuiTabBarFlags = cty::c_int; +pub type ImGuiTabItemFlags = cty::c_int; +pub type ImGuiTableFlags = cty::c_int; +pub type ImGuiTableColumnFlags = cty::c_int; +pub type ImGuiTableRowFlags = cty::c_int; +pub type ImGuiTreeNodeFlags = cty::c_int; +pub type ImGuiViewportFlags = cty::c_int; +pub type ImGuiWindowFlags = cty::c_int; +pub type ImTextureID = *mut cty::c_void; +pub type ImDrawIdx = cty::c_ushort; +pub type ImGuiID = cty::c_uint; +pub type ImS8 = cty::c_schar; +pub type ImU8 = cty::c_uchar; +pub type ImS16 = cty::c_short; +pub type ImU16 = cty::c_ushort; +pub type ImU32 = cty::c_uint; +pub type ImU64 = cty::c_ulonglong; +pub type ImWchar16 = cty::c_ushort; +pub type ImWchar32 = cty::c_uint; +pub type ImWchar = ImWchar32; +pub type ImGuiInputTextCallback = ::core::option::Option< + unsafe extern "C" fn(data: *mut ImGuiInputTextCallbackData) -> cty::c_int, +>; +pub type ImGuiSizeCallback = + ::core::option::Option; +pub type ImGuiMemAllocFunc = ::core::option::Option< + unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void, +>; +pub type ImGuiMemFreeFunc = ::core::option::Option< + unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec2 { + pub x: f32, + pub y: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec4 { + pub x: f32, + pub y: f32, + pub z: f32, + pub w: f32, +} +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_AlwaysUseWindowPadding: ImGuiWindowFlags_ = 65536; +pub const ImGuiWindowFlags_NoNavInputs: ImGuiWindowFlags_ = 262144; +pub const ImGuiWindowFlags_NoNavFocus: ImGuiWindowFlags_ = 524288; +pub const ImGuiWindowFlags_UnsavedDocument: ImGuiWindowFlags_ = 1048576; +pub const ImGuiWindowFlags_NoDocking: ImGuiWindowFlags_ = 2097152; +pub const ImGuiWindowFlags_NoNav: ImGuiWindowFlags_ = 786432; +pub const ImGuiWindowFlags_NoDecoration: ImGuiWindowFlags_ = 43; +pub const ImGuiWindowFlags_NoInputs: ImGuiWindowFlags_ = 786944; +pub const ImGuiWindowFlags_NavFlattened: ImGuiWindowFlags_ = 8388608; +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 ImGuiWindowFlags_DockNodeHost: ImGuiWindowFlags_ = 536870912; +pub type ImGuiWindowFlags_ = cty::c_uint; +pub const ImGuiInputTextFlags_None: ImGuiInputTextFlags_ = 0; +pub const ImGuiInputTextFlags_CharsDecimal: ImGuiInputTextFlags_ = 1; +pub const ImGuiInputTextFlags_CharsHexadecimal: ImGuiInputTextFlags_ = 2; +pub const ImGuiInputTextFlags_CharsUppercase: ImGuiInputTextFlags_ = 4; +pub const ImGuiInputTextFlags_CharsNoBlank: ImGuiInputTextFlags_ = 8; +pub const ImGuiInputTextFlags_AutoSelectAll: ImGuiInputTextFlags_ = 16; +pub const ImGuiInputTextFlags_EnterReturnsTrue: ImGuiInputTextFlags_ = 32; +pub const ImGuiInputTextFlags_CallbackCompletion: ImGuiInputTextFlags_ = 64; +pub const ImGuiInputTextFlags_CallbackHistory: ImGuiInputTextFlags_ = 128; +pub const ImGuiInputTextFlags_CallbackAlways: ImGuiInputTextFlags_ = 256; +pub const ImGuiInputTextFlags_CallbackCharFilter: ImGuiInputTextFlags_ = 512; +pub const ImGuiInputTextFlags_AllowTabInput: ImGuiInputTextFlags_ = 1024; +pub const ImGuiInputTextFlags_CtrlEnterForNewLine: ImGuiInputTextFlags_ = 2048; +pub const ImGuiInputTextFlags_NoHorizontalScroll: ImGuiInputTextFlags_ = 4096; +pub const ImGuiInputTextFlags_AlwaysOverwrite: ImGuiInputTextFlags_ = 8192; +pub const ImGuiInputTextFlags_ReadOnly: ImGuiInputTextFlags_ = 16384; +pub const ImGuiInputTextFlags_Password: ImGuiInputTextFlags_ = 32768; +pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536; +pub const ImGuiInputTextFlags_CharsScientific: ImGuiInputTextFlags_ = 131072; +pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags_ = 262144; +pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags_ = 524288; +pub const ImGuiInputTextFlags_EscapeClearsAll: ImGuiInputTextFlags_ = 1048576; +pub type ImGuiInputTextFlags_ = cty::c_uint; +pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags_ = 0; +pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags_ = 1; +pub const ImGuiTreeNodeFlags_Framed: ImGuiTreeNodeFlags_ = 2; +pub const ImGuiTreeNodeFlags_AllowItemOverlap: 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_NavLeftJumpsBackHere: ImGuiTreeNodeFlags_ = 8192; +pub const ImGuiTreeNodeFlags_CollapsingHeader: ImGuiTreeNodeFlags_ = 26; +pub type ImGuiTreeNodeFlags_ = cty::c_uint; +pub const ImGuiPopupFlags_None: ImGuiPopupFlags_ = 0; +pub const ImGuiPopupFlags_MouseButtonLeft: ImGuiPopupFlags_ = 0; +pub const ImGuiPopupFlags_MouseButtonRight: ImGuiPopupFlags_ = 1; +pub const ImGuiPopupFlags_MouseButtonMiddle: ImGuiPopupFlags_ = 2; +pub const ImGuiPopupFlags_MouseButtonMask_: ImGuiPopupFlags_ = 31; +pub const ImGuiPopupFlags_MouseButtonDefault_: ImGuiPopupFlags_ = 1; +pub const ImGuiPopupFlags_NoOpenOverExistingPopup: ImGuiPopupFlags_ = 32; +pub const ImGuiPopupFlags_NoOpenOverItems: ImGuiPopupFlags_ = 64; +pub const ImGuiPopupFlags_AnyPopupId: ImGuiPopupFlags_ = 128; +pub const ImGuiPopupFlags_AnyPopupLevel: ImGuiPopupFlags_ = 256; +pub const ImGuiPopupFlags_AnyPopup: ImGuiPopupFlags_ = 384; +pub type ImGuiPopupFlags_ = cty::c_uint; +pub const ImGuiSelectableFlags_None: ImGuiSelectableFlags_ = 0; +pub const ImGuiSelectableFlags_DontClosePopups: ImGuiSelectableFlags_ = 1; +pub const ImGuiSelectableFlags_SpanAllColumns: ImGuiSelectableFlags_ = 2; +pub const ImGuiSelectableFlags_AllowDoubleClick: ImGuiSelectableFlags_ = 4; +pub const ImGuiSelectableFlags_Disabled: ImGuiSelectableFlags_ = 8; +pub const ImGuiSelectableFlags_AllowItemOverlap: ImGuiSelectableFlags_ = 16; +pub type ImGuiSelectableFlags_ = cty::c_uint; +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_HeightMask_: ImGuiComboFlags_ = 30; +pub type ImGuiComboFlags_ = cty::c_uint; +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_FittingPolicyResizeDown: ImGuiTabBarFlags_ = 64; +pub const ImGuiTabBarFlags_FittingPolicyScroll: ImGuiTabBarFlags_ = 128; +pub const ImGuiTabBarFlags_FittingPolicyMask_: ImGuiTabBarFlags_ = 192; +pub const ImGuiTabBarFlags_FittingPolicyDefault_: ImGuiTabBarFlags_ = 64; +pub type ImGuiTabBarFlags_ = cty::c_uint; +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 type ImGuiTabItemFlags_ = cty::c_uint; +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_SizingMask_: ImGuiTableFlags_ = 57344; +pub type ImGuiTableFlags_ = cty::c_uint; +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_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 type ImGuiTableColumnFlags_ = cty::c_uint; +pub const ImGuiTableRowFlags_None: ImGuiTableRowFlags_ = 0; +pub const ImGuiTableRowFlags_Headers: ImGuiTableRowFlags_ = 1; +pub type ImGuiTableRowFlags_ = cty::c_uint; +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 type ImGuiTableBgTarget_ = cty::c_uint; +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_DockHierarchy: ImGuiFocusedFlags_ = 16; +pub const ImGuiFocusedFlags_RootAndChildWindows: ImGuiFocusedFlags_ = 3; +pub type ImGuiFocusedFlags_ = cty::c_uint; +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_DockHierarchy: ImGuiHoveredFlags_ = 16; +pub const ImGuiHoveredFlags_AllowWhenBlockedByPopup: ImGuiHoveredFlags_ = 32; +pub const ImGuiHoveredFlags_AllowWhenBlockedByActiveItem: ImGuiHoveredFlags_ = 128; +pub const ImGuiHoveredFlags_AllowWhenOverlapped: ImGuiHoveredFlags_ = 256; +pub const ImGuiHoveredFlags_AllowWhenDisabled: ImGuiHoveredFlags_ = 512; +pub const ImGuiHoveredFlags_NoNavOverride: ImGuiHoveredFlags_ = 1024; +pub const ImGuiHoveredFlags_RectOnly: ImGuiHoveredFlags_ = 416; +pub const ImGuiHoveredFlags_RootAndChildWindows: ImGuiHoveredFlags_ = 3; +pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags_ = 2048; +pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags_ = 4096; +pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags_ = 8192; +pub type ImGuiHoveredFlags_ = cty::c_uint; +pub const ImGuiDockNodeFlags_None: ImGuiDockNodeFlags_ = 0; +pub const ImGuiDockNodeFlags_KeepAliveOnly: ImGuiDockNodeFlags_ = 1; +pub const ImGuiDockNodeFlags_NoDockingInCentralNode: ImGuiDockNodeFlags_ = 4; +pub const ImGuiDockNodeFlags_PassthruCentralNode: ImGuiDockNodeFlags_ = 8; +pub const ImGuiDockNodeFlags_NoSplit: ImGuiDockNodeFlags_ = 16; +pub const ImGuiDockNodeFlags_NoResize: ImGuiDockNodeFlags_ = 32; +pub const ImGuiDockNodeFlags_AutoHideTabBar: ImGuiDockNodeFlags_ = 64; +pub type ImGuiDockNodeFlags_ = cty::c_uint; +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_SourceAutoExpirePayload: ImGuiDragDropFlags_ = 32; +pub const ImGuiDragDropFlags_AcceptBeforeDelivery: ImGuiDragDropFlags_ = 1024; +pub const ImGuiDragDropFlags_AcceptNoDrawDefaultRect: ImGuiDragDropFlags_ = 2048; +pub const ImGuiDragDropFlags_AcceptNoPreviewTooltip: ImGuiDragDropFlags_ = 4096; +pub const ImGuiDragDropFlags_AcceptPeekOnly: ImGuiDragDropFlags_ = 3072; +pub type ImGuiDragDropFlags_ = cty::c_uint; +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_COUNT: ImGuiDataType_ = 10; +pub type ImGuiDataType_ = cty::c_uint; +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 type ImGuiDir_ = cty::c_int; +pub const ImGuiSortDirection_None: ImGuiSortDirection_ = 0; +pub const ImGuiSortDirection_Ascending: ImGuiSortDirection_ = 1; +pub const ImGuiSortDirection_Descending: ImGuiSortDirection_ = 2; +pub type ImGuiSortDirection_ = cty::c_uint; +pub const ImGuiKey_None: ImGuiKey = 0; +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_Apostrophe: ImGuiKey = 584; +pub const ImGuiKey_Comma: ImGuiKey = 585; +pub const ImGuiKey_Minus: ImGuiKey = 586; +pub const ImGuiKey_Period: ImGuiKey = 587; +pub const ImGuiKey_Slash: ImGuiKey = 588; +pub const ImGuiKey_Semicolon: ImGuiKey = 589; +pub const ImGuiKey_Equal: ImGuiKey = 590; +pub const ImGuiKey_LeftBracket: ImGuiKey = 591; +pub const ImGuiKey_Backslash: ImGuiKey = 592; +pub const ImGuiKey_RightBracket: ImGuiKey = 593; +pub const ImGuiKey_GraveAccent: ImGuiKey = 594; +pub const ImGuiKey_CapsLock: ImGuiKey = 595; +pub const ImGuiKey_ScrollLock: ImGuiKey = 596; +pub const ImGuiKey_NumLock: ImGuiKey = 597; +pub const ImGuiKey_PrintScreen: ImGuiKey = 598; +pub const ImGuiKey_Pause: ImGuiKey = 599; +pub const ImGuiKey_Keypad0: ImGuiKey = 600; +pub const ImGuiKey_Keypad1: ImGuiKey = 601; +pub const ImGuiKey_Keypad2: ImGuiKey = 602; +pub const ImGuiKey_Keypad3: ImGuiKey = 603; +pub const ImGuiKey_Keypad4: ImGuiKey = 604; +pub const ImGuiKey_Keypad5: ImGuiKey = 605; +pub const ImGuiKey_Keypad6: ImGuiKey = 606; +pub const ImGuiKey_Keypad7: ImGuiKey = 607; +pub const ImGuiKey_Keypad8: ImGuiKey = 608; +pub const ImGuiKey_Keypad9: ImGuiKey = 609; +pub const ImGuiKey_KeypadDecimal: ImGuiKey = 610; +pub const ImGuiKey_KeypadDivide: ImGuiKey = 611; +pub const ImGuiKey_KeypadMultiply: ImGuiKey = 612; +pub const ImGuiKey_KeypadSubtract: ImGuiKey = 613; +pub const ImGuiKey_KeypadAdd: ImGuiKey = 614; +pub const ImGuiKey_KeypadEnter: ImGuiKey = 615; +pub const ImGuiKey_KeypadEqual: ImGuiKey = 616; +pub const ImGuiKey_GamepadStart: ImGuiKey = 617; +pub const ImGuiKey_GamepadBack: ImGuiKey = 618; +pub const ImGuiKey_GamepadFaceLeft: ImGuiKey = 619; +pub const ImGuiKey_GamepadFaceRight: ImGuiKey = 620; +pub const ImGuiKey_GamepadFaceUp: ImGuiKey = 621; +pub const ImGuiKey_GamepadFaceDown: ImGuiKey = 622; +pub const ImGuiKey_GamepadDpadLeft: ImGuiKey = 623; +pub const ImGuiKey_GamepadDpadRight: ImGuiKey = 624; +pub const ImGuiKey_GamepadDpadUp: ImGuiKey = 625; +pub const ImGuiKey_GamepadDpadDown: ImGuiKey = 626; +pub const ImGuiKey_GamepadL1: ImGuiKey = 627; +pub const ImGuiKey_GamepadR1: ImGuiKey = 628; +pub const ImGuiKey_GamepadL2: ImGuiKey = 629; +pub const ImGuiKey_GamepadR2: ImGuiKey = 630; +pub const ImGuiKey_GamepadL3: ImGuiKey = 631; +pub const ImGuiKey_GamepadR3: ImGuiKey = 632; +pub const ImGuiKey_GamepadLStickLeft: ImGuiKey = 633; +pub const ImGuiKey_GamepadLStickRight: ImGuiKey = 634; +pub const ImGuiKey_GamepadLStickUp: ImGuiKey = 635; +pub const ImGuiKey_GamepadLStickDown: ImGuiKey = 636; +pub const ImGuiKey_GamepadRStickLeft: ImGuiKey = 637; +pub const ImGuiKey_GamepadRStickRight: ImGuiKey = 638; +pub const ImGuiKey_GamepadRStickUp: ImGuiKey = 639; +pub const ImGuiKey_GamepadRStickDown: ImGuiKey = 640; +pub const ImGuiKey_MouseLeft: ImGuiKey = 641; +pub const ImGuiKey_MouseRight: ImGuiKey = 642; +pub const ImGuiKey_MouseMiddle: ImGuiKey = 643; +pub const ImGuiKey_MouseX1: ImGuiKey = 644; +pub const ImGuiKey_MouseX2: ImGuiKey = 645; +pub const ImGuiKey_MouseWheelX: ImGuiKey = 646; +pub const ImGuiKey_MouseWheelY: ImGuiKey = 647; +pub const ImGuiKey_ReservedForModCtrl: ImGuiKey = 648; +pub const ImGuiKey_ReservedForModShift: ImGuiKey = 649; +pub const ImGuiKey_ReservedForModAlt: ImGuiKey = 650; +pub const ImGuiKey_ReservedForModSuper: ImGuiKey = 651; +pub const ImGuiKey_COUNT: ImGuiKey = 652; +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 ImGuiMod_Shortcut: ImGuiKey = 4096; +pub const ImGuiKey_NamedKey_BEGIN: ImGuiKey = 512; +pub const ImGuiKey_NamedKey_END: ImGuiKey = 652; +pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 140; +pub const ImGuiKey_KeysData_SIZE: ImGuiKey = 652; +pub const ImGuiKey_KeysData_OFFSET: ImGuiKey = 0; +pub type ImGuiKey = cty::c_uint; +pub const ImGuiNavInput_Activate: ImGuiNavInput = 0; +pub const ImGuiNavInput_Cancel: ImGuiNavInput = 1; +pub const ImGuiNavInput_Input: ImGuiNavInput = 2; +pub const ImGuiNavInput_Menu: ImGuiNavInput = 3; +pub const ImGuiNavInput_DpadLeft: ImGuiNavInput = 4; +pub const ImGuiNavInput_DpadRight: ImGuiNavInput = 5; +pub const ImGuiNavInput_DpadUp: ImGuiNavInput = 6; +pub const ImGuiNavInput_DpadDown: ImGuiNavInput = 7; +pub const ImGuiNavInput_LStickLeft: ImGuiNavInput = 8; +pub const ImGuiNavInput_LStickRight: ImGuiNavInput = 9; +pub const ImGuiNavInput_LStickUp: ImGuiNavInput = 10; +pub const ImGuiNavInput_LStickDown: ImGuiNavInput = 11; +pub const ImGuiNavInput_FocusPrev: ImGuiNavInput = 12; +pub const ImGuiNavInput_FocusNext: ImGuiNavInput = 13; +pub const ImGuiNavInput_TweakSlow: ImGuiNavInput = 14; +pub const ImGuiNavInput_TweakFast: ImGuiNavInput = 15; +pub const ImGuiNavInput_COUNT: ImGuiNavInput = 16; +pub type ImGuiNavInput = cty::c_uint; +pub const ImGuiConfigFlags_None: ImGuiConfigFlags_ = 0; +pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags_ = 1; +pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags_ = 2; +pub const ImGuiConfigFlags_NavEnableSetMousePos: ImGuiConfigFlags_ = 4; +pub const ImGuiConfigFlags_NavNoCaptureKeyboard: ImGuiConfigFlags_ = 8; +pub const ImGuiConfigFlags_NoMouse: ImGuiConfigFlags_ = 16; +pub const ImGuiConfigFlags_NoMouseCursorChange: ImGuiConfigFlags_ = 32; +pub const ImGuiConfigFlags_DockingEnable: ImGuiConfigFlags_ = 64; +pub const ImGuiConfigFlags_ViewportsEnable: ImGuiConfigFlags_ = 1024; +pub const ImGuiConfigFlags_DpiEnableScaleViewports: ImGuiConfigFlags_ = 16384; +pub const ImGuiConfigFlags_DpiEnableScaleFonts: ImGuiConfigFlags_ = 32768; +pub const ImGuiConfigFlags_IsSRGB: ImGuiConfigFlags_ = 1048576; +pub const ImGuiConfigFlags_IsTouchScreen: ImGuiConfigFlags_ = 2097152; +pub type ImGuiConfigFlags_ = cty::c_uint; +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_PlatformHasViewports: ImGuiBackendFlags_ = 1024; +pub const ImGuiBackendFlags_HasMouseHoveredViewport: ImGuiBackendFlags_ = 2048; +pub const ImGuiBackendFlags_RendererHasViewports: ImGuiBackendFlags_ = 4096; +pub type ImGuiBackendFlags_ = cty::c_uint; +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_SliderGrab: ImGuiCol_ = 19; +pub const ImGuiCol_SliderGrabActive: ImGuiCol_ = 20; +pub const ImGuiCol_Button: ImGuiCol_ = 21; +pub const ImGuiCol_ButtonHovered: ImGuiCol_ = 22; +pub const ImGuiCol_ButtonActive: ImGuiCol_ = 23; +pub const ImGuiCol_Header: ImGuiCol_ = 24; +pub const ImGuiCol_HeaderHovered: ImGuiCol_ = 25; +pub const ImGuiCol_HeaderActive: ImGuiCol_ = 26; +pub const ImGuiCol_Separator: ImGuiCol_ = 27; +pub const ImGuiCol_SeparatorHovered: ImGuiCol_ = 28; +pub const ImGuiCol_SeparatorActive: ImGuiCol_ = 29; +pub const ImGuiCol_ResizeGrip: ImGuiCol_ = 30; +pub const ImGuiCol_ResizeGripHovered: ImGuiCol_ = 31; +pub const ImGuiCol_ResizeGripActive: ImGuiCol_ = 32; +pub const ImGuiCol_Tab: ImGuiCol_ = 33; +pub const ImGuiCol_TabHovered: ImGuiCol_ = 34; +pub const ImGuiCol_TabActive: ImGuiCol_ = 35; +pub const ImGuiCol_TabUnfocused: ImGuiCol_ = 36; +pub const ImGuiCol_TabUnfocusedActive: ImGuiCol_ = 37; +pub const ImGuiCol_DockingPreview: ImGuiCol_ = 38; +pub const ImGuiCol_DockingEmptyBg: ImGuiCol_ = 39; +pub const ImGuiCol_PlotLines: ImGuiCol_ = 40; +pub const ImGuiCol_PlotLinesHovered: ImGuiCol_ = 41; +pub const ImGuiCol_PlotHistogram: ImGuiCol_ = 42; +pub const ImGuiCol_PlotHistogramHovered: ImGuiCol_ = 43; +pub const ImGuiCol_TableHeaderBg: ImGuiCol_ = 44; +pub const ImGuiCol_TableBorderStrong: ImGuiCol_ = 45; +pub const ImGuiCol_TableBorderLight: ImGuiCol_ = 46; +pub const ImGuiCol_TableRowBg: ImGuiCol_ = 47; +pub const ImGuiCol_TableRowBgAlt: ImGuiCol_ = 48; +pub const ImGuiCol_TextSelectedBg: ImGuiCol_ = 49; +pub const ImGuiCol_DragDropTarget: ImGuiCol_ = 50; +pub const ImGuiCol_NavHighlight: ImGuiCol_ = 51; +pub const ImGuiCol_NavWindowingHighlight: ImGuiCol_ = 52; +pub const ImGuiCol_NavWindowingDimBg: ImGuiCol_ = 53; +pub const ImGuiCol_ModalWindowDimBg: ImGuiCol_ = 54; +pub const ImGuiCol_COUNT: ImGuiCol_ = 55; +pub type ImGuiCol_ = cty::c_uint; +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_GrabMinSize: ImGuiStyleVar_ = 20; +pub const ImGuiStyleVar_GrabRounding: ImGuiStyleVar_ = 21; +pub const ImGuiStyleVar_TabRounding: ImGuiStyleVar_ = 22; +pub const ImGuiStyleVar_ButtonTextAlign: ImGuiStyleVar_ = 23; +pub const ImGuiStyleVar_SelectableTextAlign: ImGuiStyleVar_ = 24; +pub const ImGuiStyleVar_COUNT: ImGuiStyleVar_ = 25; +pub type ImGuiStyleVar_ = cty::c_uint; +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_MouseButtonDefault_: ImGuiButtonFlags_ = 1; +pub type ImGuiButtonFlags_ = cty::c_uint; +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_AlphaBar: ImGuiColorEditFlags_ = 65536; +pub const ImGuiColorEditFlags_AlphaPreview: ImGuiColorEditFlags_ = 131072; +pub const ImGuiColorEditFlags_AlphaPreviewHalf: 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_InputRGB: ImGuiColorEditFlags_ = 134217728; +pub const ImGuiColorEditFlags_InputHSV: ImGuiColorEditFlags_ = 268435456; +pub const ImGuiColorEditFlags_DefaultOptions_: ImGuiColorEditFlags_ = 177209344; +pub const ImGuiColorEditFlags_DisplayMask_: ImGuiColorEditFlags_ = 7340032; +pub const ImGuiColorEditFlags_DataTypeMask_: ImGuiColorEditFlags_ = 25165824; +pub const ImGuiColorEditFlags_PickerMask_: ImGuiColorEditFlags_ = 100663296; +pub const ImGuiColorEditFlags_InputMask_: ImGuiColorEditFlags_ = 402653184; +pub type ImGuiColorEditFlags_ = cty::c_uint; +pub const ImGuiSliderFlags_None: ImGuiSliderFlags_ = 0; +pub const ImGuiSliderFlags_AlwaysClamp: ImGuiSliderFlags_ = 16; +pub const ImGuiSliderFlags_Logarithmic: ImGuiSliderFlags_ = 32; +pub const ImGuiSliderFlags_NoRoundToFormat: ImGuiSliderFlags_ = 64; +pub const ImGuiSliderFlags_NoInput: ImGuiSliderFlags_ = 128; +pub const ImGuiSliderFlags_InvalidMask_: ImGuiSliderFlags_ = 1879048207; +pub type ImGuiSliderFlags_ = cty::c_uint; +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 type ImGuiMouseButton_ = cty::c_uint; +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_NotAllowed: ImGuiMouseCursor_ = 8; +pub const ImGuiMouseCursor_COUNT: ImGuiMouseCursor_ = 9; +pub type ImGuiMouseCursor_ = cty::c_int; +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 type ImGuiCond_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiStyle { + pub Alpha: f32, + pub DisabledAlpha: f32, + pub WindowPadding: ImVec2, + pub WindowRounding: f32, + pub WindowBorderSize: 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 GrabMinSize: f32, + pub GrabRounding: f32, + pub LogSliderDeadzone: f32, + pub TabRounding: f32, + pub TabBorderSize: f32, + pub TabMinWidthForCloseButton: f32, + pub ColorButtonPosition: ImGuiDir, + pub ButtonTextAlign: ImVec2, + pub SelectableTextAlign: ImVec2, + pub DisplayWindowPadding: ImVec2, + pub DisplaySafeAreaPadding: ImVec2, + pub MouseCursorScale: f32, + pub AntiAliasedLines: bool, + pub AntiAliasedLinesUseTex: bool, + pub AntiAliasedFill: bool, + pub CurveTessellationTol: f32, + pub CircleTessellationMaxError: f32, + pub Colors: [ImVec4; 55usize], +} +impl Default for ImGuiStyle { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiKeyData { + pub Down: bool, + pub DownDuration: f32, + pub DownDurationPrev: f32, + pub AnalogValue: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImWchar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImWchar, +} +impl Default for ImVector_ImWchar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiIO { + pub ConfigFlags: ImGuiConfigFlags, + pub BackendFlags: ImGuiBackendFlags, + pub DisplaySize: ImVec2, + pub DeltaTime: f32, + pub IniSavingRate: f32, + pub IniFilename: *const cty::c_char, + pub LogFilename: *const cty::c_char, + pub MouseDoubleClickTime: f32, + pub MouseDoubleClickMaxDist: f32, + pub MouseDragThreshold: f32, + pub KeyRepeatDelay: f32, + pub KeyRepeatRate: f32, + pub HoverDelayNormal: f32, + pub HoverDelayShort: f32, + pub UserData: *mut cty::c_void, + pub Fonts: *mut ImFontAtlas, + pub FontGlobalScale: f32, + pub FontAllowUserScaling: bool, + pub FontDefault: *mut ImFont, + pub DisplayFramebufferScale: ImVec2, + pub ConfigDockingNoSplit: bool, + pub ConfigDockingWithShift: bool, + pub ConfigDockingAlwaysTabBar: bool, + pub ConfigDockingTransparentPayload: bool, + pub ConfigViewportsNoAutoMerge: bool, + pub ConfigViewportsNoTaskBarIcon: bool, + pub ConfigViewportsNoDecoration: bool, + pub ConfigViewportsNoDefaultParent: bool, + pub MouseDrawCursor: bool, + pub ConfigMacOSXBehaviors: bool, + pub ConfigInputTrickleEventQueue: bool, + pub ConfigInputTextCursorBlink: bool, + pub ConfigInputTextEnterKeepActive: bool, + pub ConfigDragClickToInputText: bool, + pub ConfigWindowsResizeFromEdges: bool, + pub ConfigWindowsMoveFromTitleBarOnly: bool, + pub ConfigMemoryCompactTimer: f32, + pub BackendPlatformName: *const cty::c_char, + pub BackendRendererName: *const cty::c_char, + pub BackendPlatformUserData: *mut cty::c_void, + pub BackendRendererUserData: *mut cty::c_void, + pub BackendLanguageUserData: *mut cty::c_void, + pub GetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void) -> *const cty::c_char, + >, + pub SetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), + >, + pub ClipboardUserData: *mut cty::c_void, + pub SetPlatformImeDataFn: ::core::option::Option< + unsafe extern "C" fn(viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData), + >, + pub _UnusedPadding: *mut cty::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: cty::c_int, + pub MetricsRenderIndices: cty::c_int, + pub MetricsRenderWindows: cty::c_int, + pub MetricsActiveWindows: cty::c_int, + pub MetricsActiveAllocations: cty::c_int, + pub MouseDelta: ImVec2, + pub KeyMap: [cty::c_int; 652usize], + pub KeysDown: [bool; 652usize], + pub NavInputs: [f32; 16usize], + pub MousePos: ImVec2, + pub MouseDown: [bool; 5usize], + pub MouseWheel: f32, + pub MouseWheelH: f32, + pub MouseHoveredViewport: ImGuiID, + pub KeyCtrl: bool, + pub KeyShift: bool, + pub KeyAlt: bool, + pub KeySuper: bool, + pub KeyMods: ImGuiKeyChord, + pub KeysData: [ImGuiKeyData; 652usize], + pub WantCaptureMouseUnlessPopupClose: bool, + pub MousePosPrev: ImVec2, + pub MouseClickedPos: [ImVec2; 5usize], + pub MouseClickedTime: [f64; 5usize], + pub MouseClicked: [bool; 5usize], + pub MouseDoubleClicked: [bool; 5usize], + pub MouseClickedCount: [ImU16; 5usize], + pub MouseClickedLastCount: [ImU16; 5usize], + pub MouseReleased: [bool; 5usize], + pub MouseDownOwned: [bool; 5usize], + pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], + pub MouseDownDuration: [f32; 5usize], + pub MouseDownDurationPrev: [f32; 5usize], + pub MouseDragMaxDistanceAbs: [ImVec2; 5usize], + pub MouseDragMaxDistanceSqr: [f32; 5usize], + pub PenPressure: f32, + pub AppFocusLost: bool, + pub AppAcceptingEvents: bool, + pub BackendUsingLegacyKeyArrays: ImS8, + pub BackendUsingLegacyNavInputArray: bool, + pub InputQueueSurrogate: ImWchar16, + pub InputQueueCharacters: ImVector_ImWchar, +} +impl Default for ImGuiIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputTextCallbackData { + pub EventFlag: ImGuiInputTextFlags, + pub Flags: ImGuiInputTextFlags, + pub UserData: *mut cty::c_void, + pub EventChar: ImWchar, + pub EventKey: ImGuiKey, + pub Buf: *mut cty::c_char, + pub BufTextLen: cty::c_int, + pub BufSize: cty::c_int, + pub BufDirty: bool, + pub CursorPos: cty::c_int, + pub SelectionStart: cty::c_int, + pub SelectionEnd: cty::c_int, +} +impl Default for ImGuiInputTextCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiSizeCallbackData { + pub UserData: *mut cty::c_void, + pub Pos: ImVec2, + pub CurrentSize: ImVec2, + pub DesiredSize: ImVec2, +} +impl Default for ImGuiSizeCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowClass { + pub ClassId: ImGuiID, + pub ParentViewportId: ImGuiID, + pub ViewportFlagsOverrideSet: ImGuiViewportFlags, + pub ViewportFlagsOverrideClear: ImGuiViewportFlags, + pub TabItemFlagsOverrideSet: ImGuiTabItemFlags, + pub DockNodeFlagsOverrideSet: ImGuiDockNodeFlags, + pub DockingAlwaysTabBar: bool, + pub DockingAllowUnclassed: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPayload { + pub Data: *mut cty::c_void, + pub DataSize: cty::c_int, + pub SourceId: ImGuiID, + pub SourceParentId: ImGuiID, + pub DataFrameCount: cty::c_int, + pub DataType: [cty::c_char; 33usize], + pub Preview: bool, + pub Delivery: bool, +} +impl Default for ImGuiPayload { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableColumnSortSpecs { + pub ColumnUserID: ImGuiID, + pub ColumnIndex: ImS16, + pub SortOrder: ImS16, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl ImGuiTableColumnSortSpecs { + #[inline] + pub fn SortDirection(&self) -> ImGuiSortDirection { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImGuiSortDirection) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImGuiSortDirection, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableSortSpecs { + pub Specs: *const ImGuiTableColumnSortSpecs, + pub SpecsCount: cty::c_int, + pub SpecsDirty: bool, +} +impl Default for ImGuiTableSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiOnceUponAFrame { + pub RefFrame: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextRange { + pub b: *const cty::c_char, + pub e: *const cty::c_char, +} +impl Default for ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTextRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTextRange, +} +impl Default for ImVector_ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextFilter { + pub InputBuf: [cty::c_char; 256usize], + pub Filters: ImVector_ImGuiTextRange, + pub CountGrep: cty::c_int, +} +impl Default for ImGuiTextFilter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_char, +} +impl Default for ImVector_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextBuffer { + pub Buf: ImVector_char, +} +impl Default for ImGuiTextBuffer { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiStoragePair { + pub key: ImGuiID, + pub __bindgen_anon_1: ImGuiStoragePair__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiStoragePair__bindgen_ty_1 { + pub val_i: cty::c_int, + pub val_f: f32, + pub val_p: *mut cty::c_void, +} +impl Default for ImGuiStoragePair__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiStoragePair__bindgen_ty_1 {{ union }}") + } +} +impl Default for ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!( + f, + "ImGuiStoragePair {{ key: {:?}, __bindgen_anon_1: {:?} }}", + self.key, self.__bindgen_anon_1 + ) + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStoragePair { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStoragePair, +} +impl Default for ImVector_ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStorage { + pub Data: ImVector_ImGuiStoragePair, +} +impl Default for ImGuiStorage { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiListClipper { + pub DisplayStart: cty::c_int, + pub DisplayEnd: cty::c_int, + pub ItemsCount: cty::c_int, + pub ItemsHeight: f32, + pub StartPosY: f32, + pub TempData: *mut cty::c_void, +} +impl Default for ImGuiListClipper { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImColor { + pub Value: ImVec4, +} +pub type ImDrawCallback = ::core::option::Option< + unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmd { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, + pub IdxOffset: cty::c_uint, + pub ElemCount: cty::c_uint, + pub UserCallback: ImDrawCallback, + pub UserCallbackData: *mut cty::c_void, +} +impl Default for ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImDrawVert { + pub pos: ImVec2, + pub uv: ImVec2, + pub col: ImU32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmdHeader { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, +} +impl Default for ImDrawCmdHeader { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawCmd { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawCmd, +} +impl Default for ImVector_ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawIdx { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawIdx, +} +impl Default for ImVector_ImDrawIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawChannel { + pub _CmdBuffer: ImVector_ImDrawCmd, + pub _IdxBuffer: ImVector_ImDrawIdx, +} +impl Default for ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawChannel { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawChannel, +} +impl Default for ImVector_ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawListSplitter { + pub _Current: cty::c_int, + pub _Count: cty::c_int, + pub _Channels: ImVector_ImDrawChannel, +} +impl Default for ImDrawListSplitter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImDrawFlags_None: ImDrawFlags_ = 0; +pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; +pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; +pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; +pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; +pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; +pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; +pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; +pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; +pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; +pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; +pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; +pub type ImDrawFlags_ = cty::c_uint; +pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; +pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; +pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; +pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; +pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; +pub type ImDrawListFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawVert { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawVert, +} +impl Default for ImVector_ImDrawVert { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec4 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec4, +} +impl Default for ImVector_ImVec4 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImTextureID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImTextureID, +} +impl Default for ImVector_ImTextureID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec2 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec2, +} +impl Default for ImVector_ImVec2 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawList { + pub CmdBuffer: ImVector_ImDrawCmd, + pub IdxBuffer: ImVector_ImDrawIdx, + pub VtxBuffer: ImVector_ImDrawVert, + pub Flags: ImDrawListFlags, + pub _VtxCurrentIdx: cty::c_uint, + pub _Data: *mut ImDrawListSharedData, + pub _OwnerName: *const cty::c_char, + pub _VtxWritePtr: *mut ImDrawVert, + pub _IdxWritePtr: *mut ImDrawIdx, + pub _ClipRectStack: ImVector_ImVec4, + pub _TextureIdStack: ImVector_ImTextureID, + pub _Path: ImVector_ImVec2, + pub _CmdHeader: ImDrawCmdHeader, + pub _Splitter: ImDrawListSplitter, + pub _FringeScale: f32, +} +impl Default for ImDrawList { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawData { + pub Valid: bool, + pub CmdListsCount: cty::c_int, + pub TotalIdxCount: cty::c_int, + pub TotalVtxCount: cty::c_int, + pub CmdLists: *mut *mut ImDrawList, + pub DisplayPos: ImVec2, + pub DisplaySize: ImVec2, + pub FramebufferScale: ImVec2, + pub OwnerViewport: *mut ImGuiViewport, +} +impl Default for ImDrawData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontConfig { + pub FontData: *mut cty::c_void, + pub FontDataSize: cty::c_int, + pub FontDataOwnedByAtlas: bool, + pub FontNo: cty::c_int, + pub SizePixels: f32, + pub OversampleH: cty::c_int, + pub OversampleV: cty::c_int, + pub PixelSnapH: bool, + pub GlyphExtraSpacing: ImVec2, + pub GlyphOffset: ImVec2, + pub GlyphRanges: *const ImWchar, + pub GlyphMinAdvanceX: f32, + pub GlyphMaxAdvanceX: f32, + pub MergeMode: bool, + pub FontBuilderFlags: cty::c_uint, + pub RasterizerMultiply: f32, + pub EllipsisChar: ImWchar, + pub Name: [cty::c_char; 40usize], + pub DstFont: *mut ImFont, +} +impl Default for ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImFontGlyph { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + 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, +} +impl ImFontGlyph { + #[inline] + pub fn Colored(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Colored(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Visible(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_Visible(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Codepoint(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Codepoint(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Colored: cty::c_uint, + Visible: cty::c_uint, + Codepoint: cty::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Colored: u32 = unsafe { ::core::mem::transmute(Colored) }; + Colored as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Visible: u32 = unsafe { ::core::mem::transmute(Visible) }; + Visible as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Codepoint: u32 = unsafe { ::core::mem::transmute(Codepoint) }; + Codepoint as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImU32 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImU32, +} +impl Default for ImVector_ImU32 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImFontGlyphRangesBuilder { + pub UsedChars: ImVector_ImU32, +} +impl Default for ImFontGlyphRangesBuilder { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlasCustomRect { + pub Width: cty::c_ushort, + pub Height: cty::c_ushort, + pub X: cty::c_ushort, + pub Y: cty::c_ushort, + pub GlyphID: cty::c_uint, + pub GlyphAdvanceX: f32, + pub GlyphOffset: ImVec2, + pub Font: *mut ImFont, +} +impl Default for ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 type ImFontAtlasFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImFont, +} +impl Default for ImVector_ImFontPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontAtlasCustomRect { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontAtlasCustomRect, +} +impl Default for ImVector_ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontConfig { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontConfig, +} +impl Default for ImVector_ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlas { + pub Flags: ImFontAtlasFlags, + pub TexID: ImTextureID, + pub TexDesiredWidth: cty::c_int, + pub TexGlyphPadding: cty::c_int, + pub Locked: bool, + pub TexReady: bool, + pub TexPixelsUseColors: bool, + pub TexPixelsAlpha8: *mut cty::c_uchar, + pub TexPixelsRGBA32: *mut cty::c_uint, + pub TexWidth: cty::c_int, + pub TexHeight: cty::c_int, + pub TexUvScale: ImVec2, + pub TexUvWhitePixel: ImVec2, + pub Fonts: ImVector_ImFontPtr, + pub CustomRects: ImVector_ImFontAtlasCustomRect, + pub ConfigData: ImVector_ImFontConfig, + pub TexUvLines: [ImVec4; 64usize], + pub FontBuilderIO: *const ImFontBuilderIO, + pub FontBuilderFlags: cty::c_uint, + pub PackIdMouseCursors: cty::c_int, + pub PackIdLines: cty::c_int, +} +impl Default for ImFontAtlas { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_float { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut f32, +} +impl Default for ImVector_float { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontGlyph { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontGlyph, +} +impl Default for ImVector_ImFontGlyph { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFont { + pub IndexAdvanceX: ImVector_float, + pub FallbackAdvanceX: f32, + pub FontSize: f32, + pub IndexLookup: ImVector_ImWchar, + pub Glyphs: ImVector_ImFontGlyph, + pub FallbackGlyph: *const ImFontGlyph, + pub ContainerAtlas: *mut ImFontAtlas, + pub ConfigData: *const ImFontConfig, + pub ConfigDataCount: cty::c_short, + pub FallbackChar: ImWchar, + pub EllipsisChar: ImWchar, + pub DotChar: ImWchar, + pub DirtyLookupTables: bool, + pub Scale: f32, + pub Ascent: f32, + pub Descent: f32, + pub MetricsTotalSurface: cty::c_int, + pub Used4kPagesMap: [ImU8; 34usize], +} +impl Default for ImFont { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 ImGuiViewportFlags_NoDecoration: ImGuiViewportFlags_ = 8; +pub const ImGuiViewportFlags_NoTaskBarIcon: ImGuiViewportFlags_ = 16; +pub const ImGuiViewportFlags_NoFocusOnAppearing: ImGuiViewportFlags_ = 32; +pub const ImGuiViewportFlags_NoFocusOnClick: ImGuiViewportFlags_ = 64; +pub const ImGuiViewportFlags_NoInputs: ImGuiViewportFlags_ = 128; +pub const ImGuiViewportFlags_NoRendererClear: ImGuiViewportFlags_ = 256; +pub const ImGuiViewportFlags_TopMost: ImGuiViewportFlags_ = 512; +pub const ImGuiViewportFlags_Minimized: ImGuiViewportFlags_ = 1024; +pub const ImGuiViewportFlags_NoAutoMerge: ImGuiViewportFlags_ = 2048; +pub const ImGuiViewportFlags_CanHostOtherWindows: ImGuiViewportFlags_ = 4096; +pub type ImGuiViewportFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiViewport { + pub ID: ImGuiID, + pub Flags: ImGuiViewportFlags, + pub Pos: ImVec2, + pub Size: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub DpiScale: f32, + pub ParentViewportId: ImGuiID, + pub DrawData: *mut ImDrawData, + pub RendererUserData: *mut cty::c_void, + pub PlatformUserData: *mut cty::c_void, + pub PlatformHandle: *mut cty::c_void, + pub PlatformHandleRaw: *mut cty::c_void, + pub PlatformWindowCreated: bool, + pub PlatformRequestMove: bool, + pub PlatformRequestResize: bool, + pub PlatformRequestClose: bool, +} +impl Default for ImGuiViewport { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiPlatformMonitor { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPlatformMonitor, +} +impl Default for ImVector_ImGuiPlatformMonitor { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiViewportPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiViewport, +} +impl Default for ImVector_ImGuiViewportPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPlatformIO { + pub Platform_CreateWindow: ::core::option::Option, + pub Platform_DestroyWindow: + ::core::option::Option, + pub Platform_ShowWindow: ::core::option::Option, + pub Platform_SetWindowPos: + ::core::option::Option, + pub Platform_GetWindowPos: + ::core::option::Option ImVec2>, + pub Platform_SetWindowSize: + ::core::option::Option, + pub Platform_GetWindowSize: + ::core::option::Option ImVec2>, + pub Platform_SetWindowFocus: + ::core::option::Option, + pub Platform_GetWindowFocus: + ::core::option::Option bool>, + pub Platform_GetWindowMinimized: + ::core::option::Option bool>, + pub Platform_SetWindowTitle: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, str_: *const cty::c_char), + >, + pub Platform_SetWindowAlpha: + ::core::option::Option, + pub Platform_UpdateWindow: ::core::option::Option, + pub Platform_RenderWindow: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Platform_SwapBuffers: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Platform_GetWindowDpiScale: + ::core::option::Option f32>, + pub Platform_OnChangedViewport: + ::core::option::Option, + pub Platform_CreateVkSurface: ::core::option::Option< + unsafe extern "C" fn( + vp: *mut ImGuiViewport, + vk_inst: ImU64, + vk_allocators: *const cty::c_void, + out_vk_surface: *mut ImU64, + ) -> cty::c_int, + >, + pub Renderer_CreateWindow: ::core::option::Option, + pub Renderer_DestroyWindow: + ::core::option::Option, + pub Renderer_SetWindowSize: + ::core::option::Option, + pub Renderer_RenderWindow: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Renderer_SwapBuffers: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Monitors: ImVector_ImGuiPlatformMonitor, + pub Viewports: ImVector_ImGuiViewportPtr, +} +impl Default for ImGuiPlatformIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformMonitor { + pub MainPos: ImVec2, + pub MainSize: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub DpiScale: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformImeData { + pub WantVisible: bool, + pub InputPos: ImVec2, + pub InputLineHeight: f32, +} +pub const ImGuiFreeTypeBuilderFlags_NoHinting: ImGuiFreeTypeBuilderFlags = 1; +pub const ImGuiFreeTypeBuilderFlags_NoAutoHint: ImGuiFreeTypeBuilderFlags = 2; +pub const ImGuiFreeTypeBuilderFlags_ForceAutoHint: ImGuiFreeTypeBuilderFlags = 4; +pub const ImGuiFreeTypeBuilderFlags_LightHinting: ImGuiFreeTypeBuilderFlags = 8; +pub const ImGuiFreeTypeBuilderFlags_MonoHinting: ImGuiFreeTypeBuilderFlags = 16; +pub const ImGuiFreeTypeBuilderFlags_Bold: ImGuiFreeTypeBuilderFlags = 32; +pub const ImGuiFreeTypeBuilderFlags_Oblique: ImGuiFreeTypeBuilderFlags = 64; +pub const ImGuiFreeTypeBuilderFlags_Monochrome: ImGuiFreeTypeBuilderFlags = 128; +pub const ImGuiFreeTypeBuilderFlags_LoadColor: ImGuiFreeTypeBuilderFlags = 256; +pub const ImGuiFreeTypeBuilderFlags_Bitmap: ImGuiFreeTypeBuilderFlags = 512; +pub type ImGuiFreeTypeBuilderFlags = cty::c_uint; +extern "C" { + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; +} +extern "C" { + pub fn ImVec2_destroy(self_: *mut ImVec2); +} +extern "C" { + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; +} +extern "C" { + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; +} +extern "C" { + pub fn ImVec4_destroy(self_: *mut ImVec4); +} +extern "C" { + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; +} +extern "C" { + pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; +} +extern "C" { + pub fn igDestroyContext(ctx: *mut ImGuiContext); +} +extern "C" { + pub fn igGetCurrentContext() -> *mut ImGuiContext; +} +extern "C" { + pub fn igSetCurrentContext(ctx: *mut ImGuiContext); +} +extern "C" { + pub fn igGetIO() -> *mut ImGuiIO; +} +extern "C" { + pub fn igGetStyle() -> *mut ImGuiStyle; +} +extern "C" { + pub fn igNewFrame(); +} +extern "C" { + pub fn igEndFrame(); +} +extern "C" { + pub fn igRender(); +} +extern "C" { + pub fn igGetDrawData() -> *mut ImDrawData; +} +extern "C" { + pub fn igShowDemoWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowMetricsWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowStackToolWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowAboutWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowStyleEditor(ref_: *mut ImGuiStyle); +} +extern "C" { + pub fn igShowStyleSelector(label: *const cty::c_char) -> bool; +} +extern "C" { + pub fn igShowFontSelector(label: *const cty::c_char); +} +extern "C" { + pub fn igShowUserGuide(); +} +extern "C" { + pub fn igGetVersion() -> *const cty::c_char; +} +extern "C" { + pub fn igStyleColorsDark(dst: *mut ImGuiStyle); +} +extern "C" { + pub fn igStyleColorsLight(dst: *mut ImGuiStyle); +} +extern "C" { + pub fn igStyleColorsClassic(dst: *mut ImGuiStyle); +} +extern "C" { + pub fn igBegin(name: *const cty::c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool; +} +extern "C" { + pub fn igEnd(); +} +extern "C" { + pub fn igBeginChild_Str( + str_id: *const cty::c_char, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +extern "C" { + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +extern "C" { + pub fn igEndChild(); +} +extern "C" { + pub fn igIsWindowAppearing() -> bool; +} +extern "C" { + pub fn igIsWindowCollapsed() -> bool; +} +extern "C" { + pub fn igIsWindowFocused(flags: ImGuiFocusedFlags) -> bool; +} +extern "C" { + pub fn igIsWindowHovered(flags: ImGuiHoveredFlags) -> bool; +} +extern "C" { + pub fn igGetWindowDrawList() -> *mut ImDrawList; +} +extern "C" { + pub fn igGetWindowDpiScale() -> f32; +} +extern "C" { + pub fn igGetWindowPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowSize(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowWidth() -> f32; +} +extern "C" { + pub fn igGetWindowHeight() -> f32; +} +extern "C" { + pub fn igGetWindowViewport() -> *mut ImGuiViewport; +} +extern "C" { + pub fn igSetNextWindowPos(pos: ImVec2, cond: ImGuiCond, pivot: ImVec2); +} +extern "C" { + pub fn igSetNextWindowSize(size: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetNextWindowSizeConstraints( + size_min: ImVec2, + size_max: ImVec2, + custom_callback: ImGuiSizeCallback, + custom_callback_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn igSetNextWindowContentSize(size: ImVec2); +} +extern "C" { + pub fn igSetNextWindowCollapsed(collapsed: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSetNextWindowFocus(); +} +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} +extern "C" { + pub fn igSetNextWindowBgAlpha(alpha: f32); +} +extern "C" { + pub fn igSetNextWindowViewport(viewport_id: ImGuiID); +} +extern "C" { + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowFocus_Nil(); +} +extern "C" { + pub fn igSetWindowFontScale(scale: f32); +} +extern "C" { + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowFocus_Str(name: *const cty::c_char); +} +extern "C" { + pub fn igGetContentRegionAvail(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetContentRegionMax(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowContentRegionMin(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowContentRegionMax(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetScrollX() -> f32; +} +extern "C" { + pub fn igGetScrollY() -> f32; +} +extern "C" { + pub fn igSetScrollX(scroll_x: f32); +} +extern "C" { + pub fn igSetScrollY(scroll_y: f32); +} +extern "C" { + pub fn igGetScrollMaxX() -> f32; +} +extern "C" { + pub fn igGetScrollMaxY() -> f32; +} +extern "C" { + pub fn igSetScrollHereX(center_x_ratio: f32); +} +extern "C" { + pub fn igSetScrollHereY(center_y_ratio: f32); +} +extern "C" { + pub fn igSetScrollFromPosX(local_x: f32, center_x_ratio: f32); +} +extern "C" { + pub fn igSetScrollFromPosY(local_y: f32, center_y_ratio: f32); +} +extern "C" { + pub fn igPushFont(font: *mut ImFont); +} +extern "C" { + pub fn igPopFont(); +} +extern "C" { + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); +} +extern "C" { + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); +} +extern "C" { + pub fn igPopStyleColor(count: cty::c_int); +} +extern "C" { + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); +} +extern "C" { + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); +} +extern "C" { + pub fn igPopStyleVar(count: cty::c_int); +} +extern "C" { + pub fn igPushAllowKeyboardFocus(allow_keyboard_focus: bool); +} +extern "C" { + pub fn igPopAllowKeyboardFocus(); +} +extern "C" { + pub fn igPushButtonRepeat(repeat: bool); +} +extern "C" { + pub fn igPopButtonRepeat(); +} +extern "C" { + pub fn igPushItemWidth(item_width: f32); +} +extern "C" { + pub fn igPopItemWidth(); +} +extern "C" { + pub fn igSetNextItemWidth(item_width: f32); +} +extern "C" { + pub fn igCalcItemWidth() -> f32; +} +extern "C" { + pub fn igPushTextWrapPos(wrap_local_pos_x: f32); +} +extern "C" { + pub fn igPopTextWrapPos(); +} +extern "C" { + pub fn igGetFont() -> *mut ImFont; +} +extern "C" { + pub fn igGetFontSize() -> f32; +} +extern "C" { + pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; +} +extern "C" { + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; +} +extern "C" { + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; +} +extern "C" { + pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; +} +extern "C" { + pub fn igSeparator(); +} +extern "C" { + pub fn igSameLine(offset_from_start_x: f32, spacing: f32); +} +extern "C" { + pub fn igNewLine(); +} +extern "C" { + pub fn igSpacing(); +} +extern "C" { + pub fn igDummy(size: ImVec2); +} +extern "C" { + pub fn igIndent(indent_w: f32); +} +extern "C" { + pub fn igUnindent(indent_w: f32); +} +extern "C" { + pub fn igBeginGroup(); +} +extern "C" { + pub fn igEndGroup(); +} +extern "C" { + pub fn igGetCursorPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetCursorPosX() -> f32; +} +extern "C" { + pub fn igGetCursorPosY() -> f32; +} +extern "C" { + pub fn igSetCursorPos(local_pos: ImVec2); +} +extern "C" { + pub fn igSetCursorPosX(local_x: f32); +} +extern "C" { + pub fn igSetCursorPosY(local_y: f32); +} +extern "C" { + pub fn igGetCursorStartPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetCursorScreenPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igSetCursorScreenPos(pos: ImVec2); +} +extern "C" { + pub fn igAlignTextToFramePadding(); +} +extern "C" { + pub fn igGetTextLineHeight() -> f32; +} +extern "C" { + pub fn igGetTextLineHeightWithSpacing() -> f32; +} +extern "C" { + pub fn igGetFrameHeight() -> f32; +} +extern "C" { + pub fn igGetFrameHeightWithSpacing() -> f32; +} +extern "C" { + pub fn igPushID_Str(str_id: *const cty::c_char); +} +extern "C" { + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); +} +extern "C" { + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); +} +extern "C" { + pub fn igPushID_Int(int_id: cty::c_int); +} +extern "C" { + pub fn igPopID(); +} +extern "C" { + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; +} +extern "C" { + pub fn igGetID_StrStr( + str_id_begin: *const cty::c_char, + str_id_end: *const cty::c_char, + ) -> ImGuiID; +} +extern "C" { + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; +} +extern "C" { + pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); +} +extern "C" { + pub fn igText(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igTextColored(col: ImVec4, fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igTextDisabled(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igTextWrapped(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igLabelText(label: *const cty::c_char, fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igBulletText(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igButton(label: *const cty::c_char, size: ImVec2) -> bool; +} +extern "C" { + pub fn igSmallButton(label: *const cty::c_char) -> bool; +} +extern "C" { + pub fn igInvisibleButton( + str_id: *const cty::c_char, + size: ImVec2, + flags: ImGuiButtonFlags, + ) -> bool; +} +extern "C" { + pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; +} +extern "C" { + pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; +} +extern "C" { + pub fn igCheckboxFlags_IntPtr( + label: *const cty::c_char, + flags: *mut cty::c_int, + flags_value: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igCheckboxFlags_UintPtr( + label: *const cty::c_char, + flags: *mut cty::c_uint, + flags_value: cty::c_uint, + ) -> bool; +} +extern "C" { + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; +} +extern "C" { + pub fn igRadioButton_IntPtr( + label: *const cty::c_char, + v: *mut cty::c_int, + v_button: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const cty::c_char); +} +extern "C" { + pub fn igBullet(); +} +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} +extern "C" { + pub fn igBeginCombo( + label: *const cty::c_char, + preview_value: *const cty::c_char, + flags: ImGuiComboFlags, + ) -> bool; +} +extern "C" { + pub fn igEndCombo(); +} +extern "C" { + pub fn igCombo_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igCombo_Str( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_separated_by_zeros: *const cty::c_char, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igCombo_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igDragFloat( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloat2( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloat3( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloat4( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloatRange2( + label: *const cty::c_char, + v_current_min: *mut f32, + v_current_max: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragIntRange2( + label: *const cty::c_char, + v_current_min: *mut cty::c_int, + v_current_max: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat2( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat3( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat4( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderAngle( + label: *const cty::c_char, + v_rad: *mut f32, + v_degrees_min: f32, + v_degrees_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igVSliderFloat( + label: *const cty::c_char, + size: ImVec2, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igVSliderInt( + label: *const cty::c_char, + size: ImVec2, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igVSliderScalar( + label: *const cty::c_char, + size: ImVec2, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igInputText( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +extern "C" { + pub fn igInputTextMultiline( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + size: ImVec2, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +extern "C" { + pub fn igInputTextWithHint( + label: *const cty::c_char, + hint: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +extern "C" { + pub fn igInputFloat( + label: *const cty::c_char, + v: *mut f32, + step: f32, + step_fast: f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputFloat2( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputFloat3( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputFloat4( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt( + label: *const cty::c_char, + v: *mut cty::c_int, + step: cty::c_int, + step_fast: cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputDouble( + label: *const cty::c_char, + v: *mut f64, + step: f64, + step_fast: f64, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igColorEdit3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +extern "C" { + pub fn igColorEdit4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +extern "C" { + pub fn igColorPicker3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +extern "C" { + pub fn igColorPicker4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ref_col: *const f32, + ) -> bool; +} +extern "C" { + pub fn igColorButton( + desc_id: *const cty::c_char, + col: ImVec4, + flags: ImGuiColorEditFlags, + size: ImVec2, + ) -> bool; +} +extern "C" { + pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); +} +extern "C" { + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; +} +extern "C" { + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; +} +extern "C" { + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; +} +extern "C" { + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; +} +extern "C" { + pub fn igTreeNodeEx_StrStr( + str_id: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +extern "C" { + pub fn igTreeNodeEx_Ptr( + ptr_id: *const cty::c_void, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +extern "C" { + pub fn igTreePush_Str(str_id: *const cty::c_char); +} +extern "C" { + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); +} +extern "C" { + pub fn igTreePop(); +} +extern "C" { + pub fn igGetTreeNodeToLabelSpacing() -> f32; +} +extern "C" { + pub fn igCollapsingHeader_TreeNodeFlags( + label: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +extern "C" { + pub fn igCollapsingHeader_BoolPtr( + label: *const cty::c_char, + p_visible: *mut bool, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +extern "C" { + pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSelectable_Bool( + label: *const cty::c_char, + selected: bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +extern "C" { + pub fn igSelectable_BoolPtr( + label: *const cty::c_char, + p_selected: *mut bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +extern "C" { + pub fn igBeginListBox(label: *const cty::c_char, size: ImVec2) -> bool; +} +extern "C" { + pub fn igEndListBox(); +} +extern "C" { + pub fn igListBox_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igListBox_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igPlotLines_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +extern "C" { + pub fn igPlotLines_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +extern "C" { + pub fn igPlotHistogram_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +extern "C" { + pub fn igPlotHistogram_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +extern "C" { + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); +} +extern "C" { + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); +} +extern "C" { + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); +} +extern "C" { + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); +} +extern "C" { + pub fn igBeginMenuBar() -> bool; +} +extern "C" { + pub fn igEndMenuBar(); +} +extern "C" { + pub fn igBeginMainMenuBar() -> bool; +} +extern "C" { + pub fn igEndMainMenuBar(); +} +extern "C" { + pub fn igBeginMenu(label: *const cty::c_char, enabled: bool) -> bool; +} +extern "C" { + pub fn igEndMenu(); +} +extern "C" { + pub fn igMenuItem_Bool( + label: *const cty::c_char, + shortcut: *const cty::c_char, + selected: bool, + enabled: bool, + ) -> bool; +} +extern "C" { + pub fn igMenuItem_BoolPtr( + label: *const cty::c_char, + shortcut: *const cty::c_char, + p_selected: *mut bool, + enabled: bool, + ) -> bool; +} +extern "C" { + pub fn igBeginTooltip(); +} +extern "C" { + pub fn igEndTooltip(); +} +extern "C" { + pub fn igSetTooltip(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igBeginPopup(str_id: *const cty::c_char, flags: ImGuiWindowFlags) -> bool; +} +extern "C" { + pub fn igBeginPopupModal( + name: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +extern "C" { + pub fn igEndPopup(); +} +extern "C" { + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +extern "C" { + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); +} +extern "C" { + pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +extern "C" { + pub fn igCloseCurrentPopup(); +} +extern "C" { + pub fn igBeginPopupContextItem( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +extern "C" { + pub fn igBeginPopupContextWindow( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +extern "C" { + pub fn igBeginPopupContextVoid( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +extern "C" { + pub fn igIsPopupOpen(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; +} +extern "C" { + pub fn igBeginTable( + str_id: *const cty::c_char, + column: cty::c_int, + flags: ImGuiTableFlags, + outer_size: ImVec2, + inner_width: f32, + ) -> bool; +} +extern "C" { + pub fn igEndTable(); +} +extern "C" { + pub fn igTableNextRow(row_flags: ImGuiTableRowFlags, min_row_height: f32); +} +extern "C" { + pub fn igTableNextColumn() -> bool; +} +extern "C" { + pub fn igTableSetColumnIndex(column_n: cty::c_int) -> bool; +} +extern "C" { + pub fn igTableSetupColumn( + label: *const cty::c_char, + flags: ImGuiTableColumnFlags, + init_width_or_weight: f32, + user_id: ImGuiID, + ); +} +extern "C" { + pub fn igTableSetupScrollFreeze(cols: cty::c_int, rows: cty::c_int); +} +extern "C" { + pub fn igTableHeadersRow(); +} +extern "C" { + pub fn igTableHeader(label: *const cty::c_char); +} +extern "C" { + pub fn igTableGetSortSpecs() -> *mut ImGuiTableSortSpecs; +} +extern "C" { + pub fn igTableGetColumnCount() -> cty::c_int; +} +extern "C" { + pub fn igTableGetColumnIndex() -> cty::c_int; +} +extern "C" { + pub fn igTableGetRowIndex() -> cty::c_int; +} +extern "C" { + pub fn igTableGetColumnName(column_n: cty::c_int) -> *const cty::c_char; +} +extern "C" { + pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; +} +extern "C" { + pub fn igTableSetColumnEnabled(column_n: cty::c_int, v: bool); +} +extern "C" { + pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: cty::c_int); +} +extern "C" { + pub fn igColumns(count: cty::c_int, id: *const cty::c_char, border: bool); +} +extern "C" { + pub fn igNextColumn(); +} +extern "C" { + pub fn igGetColumnIndex() -> cty::c_int; +} +extern "C" { + pub fn igGetColumnWidth(column_index: cty::c_int) -> f32; +} +extern "C" { + pub fn igSetColumnWidth(column_index: cty::c_int, width: f32); +} +extern "C" { + pub fn igGetColumnOffset(column_index: cty::c_int) -> f32; +} +extern "C" { + pub fn igSetColumnOffset(column_index: cty::c_int, offset_x: f32); +} +extern "C" { + pub fn igGetColumnsCount() -> cty::c_int; +} +extern "C" { + pub fn igBeginTabBar(str_id: *const cty::c_char, flags: ImGuiTabBarFlags) -> bool; +} +extern "C" { + pub fn igEndTabBar(); +} +extern "C" { + pub fn igBeginTabItem( + label: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiTabItemFlags, + ) -> bool; +} +extern "C" { + pub fn igEndTabItem(); +} +extern "C" { + pub fn igTabItemButton(label: *const cty::c_char, flags: ImGuiTabItemFlags) -> bool; +} +extern "C" { + pub fn igSetTabItemClosed(tab_or_docked_window_label: *const cty::c_char); +} +extern "C" { + pub fn igDockSpace( + id: ImGuiID, + size: ImVec2, + flags: ImGuiDockNodeFlags, + window_class: *const ImGuiWindowClass, + ) -> ImGuiID; +} +extern "C" { + pub fn igDockSpaceOverViewport( + viewport: *const ImGuiViewport, + flags: ImGuiDockNodeFlags, + window_class: *const ImGuiWindowClass, + ) -> ImGuiID; +} +extern "C" { + pub fn igSetNextWindowDockID(dock_id: ImGuiID, cond: ImGuiCond); +} +extern "C" { + pub fn igSetNextWindowClass(window_class: *const ImGuiWindowClass); +} +extern "C" { + pub fn igGetWindowDockID() -> ImGuiID; +} +extern "C" { + pub fn igIsWindowDocked() -> bool; +} +extern "C" { + pub fn igLogToTTY(auto_open_depth: cty::c_int); +} +extern "C" { + pub fn igLogToFile(auto_open_depth: cty::c_int, filename: *const cty::c_char); +} +extern "C" { + pub fn igLogToClipboard(auto_open_depth: cty::c_int); +} +extern "C" { + pub fn igLogFinish(); +} +extern "C" { + pub fn igLogButtons(); +} +extern "C" { + pub fn igBeginDragDropSource(flags: ImGuiDragDropFlags) -> bool; +} +extern "C" { + pub fn igSetDragDropPayload( + type_: *const cty::c_char, + data: *const cty::c_void, + sz: usize, + cond: ImGuiCond, + ) -> bool; +} +extern "C" { + pub fn igEndDragDropSource(); +} +extern "C" { + pub fn igBeginDragDropTarget() -> bool; +} +extern "C" { + pub fn igAcceptDragDropPayload( + type_: *const cty::c_char, + flags: ImGuiDragDropFlags, + ) -> *const ImGuiPayload; +} +extern "C" { + pub fn igEndDragDropTarget(); +} +extern "C" { + pub fn igGetDragDropPayload() -> *const ImGuiPayload; +} +extern "C" { + pub fn igBeginDisabled(disabled: bool); +} +extern "C" { + pub fn igEndDisabled(); +} +extern "C" { + pub fn igPushClipRect( + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +extern "C" { + pub fn igPopClipRect(); +} +extern "C" { + pub fn igSetItemDefaultFocus(); +} +extern "C" { + pub fn igSetKeyboardFocusHere(offset: cty::c_int); +} +extern "C" { + pub fn igIsItemHovered(flags: ImGuiHoveredFlags) -> bool; +} +extern "C" { + pub fn igIsItemActive() -> bool; +} +extern "C" { + pub fn igIsItemFocused() -> bool; +} +extern "C" { + pub fn igIsItemClicked(mouse_button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igIsItemVisible() -> bool; +} +extern "C" { + pub fn igIsItemEdited() -> bool; +} +extern "C" { + pub fn igIsItemActivated() -> bool; +} +extern "C" { + pub fn igIsItemDeactivated() -> bool; +} +extern "C" { + pub fn igIsItemDeactivatedAfterEdit() -> bool; +} +extern "C" { + pub fn igIsItemToggledOpen() -> bool; +} +extern "C" { + pub fn igIsAnyItemHovered() -> bool; +} +extern "C" { + pub fn igIsAnyItemActive() -> bool; +} +extern "C" { + pub fn igIsAnyItemFocused() -> bool; +} +extern "C" { + pub fn igGetItemRectMin(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetItemRectMax(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetItemRectSize(pOut: *mut ImVec2); +} +extern "C" { + pub fn igSetItemAllowOverlap(); +} +extern "C" { + pub fn igGetMainViewport() -> *mut ImGuiViewport; +} +extern "C" { + pub fn igGetBackgroundDrawList_Nil() -> *mut ImDrawList; +} +extern "C" { + pub fn igGetForegroundDrawList_Nil() -> *mut ImDrawList; +} +extern "C" { + pub fn igGetBackgroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; +} +extern "C" { + pub fn igGetForegroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; +} +extern "C" { + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; +} +extern "C" { + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; +} +extern "C" { + pub fn igGetTime() -> f64; +} +extern "C" { + pub fn igGetFrameCount() -> cty::c_int; +} +extern "C" { + pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; +} +extern "C" { + pub fn igGetStyleColorName(idx: ImGuiCol) -> *const cty::c_char; +} +extern "C" { + pub fn igSetStateStorage(storage: *mut ImGuiStorage); +} +extern "C" { + pub fn igGetStateStorage() -> *mut ImGuiStorage; +} +extern "C" { + pub fn igBeginChildFrame(id: ImGuiID, size: ImVec2, flags: ImGuiWindowFlags) -> bool; +} +extern "C" { + pub fn igEndChildFrame(); +} +extern "C" { + pub fn igCalcTextSize( + pOut: *mut ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + hide_text_after_double_hash: bool, + wrap_width: f32, + ); +} +extern "C" { + pub fn igColorConvertU32ToFloat4(pOut: *mut ImVec4, in_: ImU32); +} +extern "C" { + pub fn igColorConvertFloat4ToU32(in_: ImVec4) -> ImU32; +} +extern "C" { + pub fn igColorConvertRGBtoHSV( + r: f32, + g: f32, + b: f32, + out_h: *mut f32, + out_s: *mut f32, + out_v: *mut f32, + ); +} +extern "C" { + pub fn igColorConvertHSVtoRGB( + h: f32, + s: f32, + v: f32, + out_r: *mut f32, + out_g: *mut f32, + out_b: *mut f32, + ); +} +extern "C" { + pub fn igIsKeyDown(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igIsKeyPressed(key: ImGuiKey, repeat: bool) -> bool; +} +extern "C" { + pub fn igIsKeyReleased(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; +} +extern "C" { + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; +} +extern "C" { + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); +} +extern "C" { + pub fn igIsMouseDown(button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igIsMouseClicked(button: ImGuiMouseButton, repeat: bool) -> bool; +} +extern "C" { + pub fn igIsMouseReleased(button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> cty::c_int; +} +extern "C" { + pub fn igIsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool; +} +extern "C" { + pub fn igIsMousePosValid(mouse_pos: *const ImVec2) -> bool; +} +extern "C" { + pub fn igIsAnyMouseDown() -> bool; +} +extern "C" { + pub fn igGetMousePos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetMousePosOnOpeningCurrentPopup(pOut: *mut ImVec2); +} +extern "C" { + pub fn igIsMouseDragging(button: ImGuiMouseButton, lock_threshold: f32) -> bool; +} +extern "C" { + pub fn igGetMouseDragDelta(pOut: *mut ImVec2, button: ImGuiMouseButton, lock_threshold: f32); +} +extern "C" { + pub fn igResetMouseDragDelta(button: ImGuiMouseButton); +} +extern "C" { + pub fn igGetMouseCursor() -> ImGuiMouseCursor; +} +extern "C" { + pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); +} +extern "C" { + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); +} +extern "C" { + pub fn igGetClipboardText() -> *const cty::c_char; +} +extern "C" { + pub fn igSetClipboardText(text: *const cty::c_char); +} +extern "C" { + pub fn igLoadIniSettingsFromDisk(ini_filename: *const cty::c_char); +} +extern "C" { + pub fn igLoadIniSettingsFromMemory(ini_data: *const cty::c_char, ini_size: usize); +} +extern "C" { + pub fn igSaveIniSettingsToDisk(ini_filename: *const cty::c_char); +} +extern "C" { + pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; +} +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} +extern "C" { + pub fn igDebugCheckVersionAndDataLayout( + version_str: *const cty::c_char, + sz_io: usize, + sz_style: usize, + sz_vec2: usize, + sz_vec4: usize, + sz_drawvert: usize, + sz_drawidx: usize, + ) -> bool; +} +extern "C" { + pub fn igSetAllocatorFunctions( + alloc_func: ImGuiMemAllocFunc, + free_func: ImGuiMemFreeFunc, + user_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn igGetAllocatorFunctions( + p_alloc_func: *mut ImGuiMemAllocFunc, + p_free_func: *mut ImGuiMemFreeFunc, + p_user_data: *mut *mut cty::c_void, + ); +} +extern "C" { + pub fn igMemAlloc(size: usize) -> *mut cty::c_void; +} +extern "C" { + pub fn igMemFree(ptr: *mut cty::c_void); +} +extern "C" { + pub fn igGetPlatformIO() -> *mut ImGuiPlatformIO; +} +extern "C" { + pub fn igUpdatePlatformWindows(); +} +extern "C" { + pub fn igRenderPlatformWindowsDefault( + platform_render_arg: *mut cty::c_void, + renderer_render_arg: *mut cty::c_void, + ); +} +extern "C" { + pub fn igDestroyPlatformWindows(); +} +extern "C" { + pub fn igFindViewportByID(id: ImGuiID) -> *mut ImGuiViewport; +} +extern "C" { + pub fn igFindViewportByPlatformHandle(platform_handle: *mut cty::c_void) -> *mut ImGuiViewport; +} +extern "C" { + pub fn ImGuiStyle_ImGuiStyle() -> *mut ImGuiStyle; +} +extern "C" { + pub fn ImGuiStyle_destroy(self_: *mut ImGuiStyle); +} +extern "C" { + pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); +} +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +extern "C" { + pub fn ImGuiIO_AddMouseViewportEvent(self_: *mut ImGuiIO, id: ImGuiID); +} +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} +extern "C" { + pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); +} +extern "C" { + pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16); +} +extern "C" { + pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); +} +extern "C" { + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); +} +extern "C" { + pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); +} +extern "C" { + pub fn ImGuiIO_ClearInputKeys(self_: *mut ImGuiIO); +} +extern "C" { + pub fn ImGuiIO_ImGuiIO() -> *mut ImGuiIO; +} +extern "C" { + pub fn ImGuiIO_destroy(self_: *mut ImGuiIO); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_ImGuiInputTextCallbackData() -> *mut ImGuiInputTextCallbackData; +} +extern "C" { + pub fn ImGuiInputTextCallbackData_destroy(self_: *mut ImGuiInputTextCallbackData); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_DeleteChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + bytes_count: cty::c_int, + ); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_InsertChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_SelectAll(self_: *mut ImGuiInputTextCallbackData); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_ClearSelection(self_: *mut ImGuiInputTextCallbackData); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_HasSelection(self_: *mut ImGuiInputTextCallbackData) -> bool; +} +extern "C" { + pub fn ImGuiWindowClass_ImGuiWindowClass() -> *mut ImGuiWindowClass; +} +extern "C" { + pub fn ImGuiWindowClass_destroy(self_: *mut ImGuiWindowClass); +} +extern "C" { + pub fn ImGuiPayload_ImGuiPayload() -> *mut ImGuiPayload; +} +extern "C" { + pub fn ImGuiPayload_destroy(self_: *mut ImGuiPayload); +} +extern "C" { + pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload); +} +extern "C" { + pub fn ImGuiPayload_IsDataType(self_: *mut ImGuiPayload, type_: *const cty::c_char) -> bool; +} +extern "C" { + pub fn ImGuiPayload_IsPreview(self_: *mut ImGuiPayload) -> bool; +} +extern "C" { + pub fn ImGuiPayload_IsDelivery(self_: *mut ImGuiPayload) -> bool; +} +extern "C" { + pub fn ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs() -> *mut ImGuiTableColumnSortSpecs; +} +extern "C" { + pub fn ImGuiTableColumnSortSpecs_destroy(self_: *mut ImGuiTableColumnSortSpecs); +} +extern "C" { + pub fn ImGuiTableSortSpecs_ImGuiTableSortSpecs() -> *mut ImGuiTableSortSpecs; +} +extern "C" { + pub fn ImGuiTableSortSpecs_destroy(self_: *mut ImGuiTableSortSpecs); +} +extern "C" { + pub fn ImGuiOnceUponAFrame_ImGuiOnceUponAFrame() -> *mut ImGuiOnceUponAFrame; +} +extern "C" { + pub fn ImGuiOnceUponAFrame_destroy(self_: *mut ImGuiOnceUponAFrame); +} +extern "C" { + pub fn ImGuiTextFilter_ImGuiTextFilter( + default_filter: *const cty::c_char, + ) -> *mut ImGuiTextFilter; +} +extern "C" { + pub fn ImGuiTextFilter_destroy(self_: *mut ImGuiTextFilter); +} +extern "C" { + pub fn ImGuiTextFilter_Draw( + self_: *mut ImGuiTextFilter, + label: *const cty::c_char, + width: f32, + ) -> bool; +} +extern "C" { + pub fn ImGuiTextFilter_PassFilter( + self_: *mut ImGuiTextFilter, + text: *const cty::c_char, + text_end: *const cty::c_char, + ) -> bool; +} +extern "C" { + pub fn ImGuiTextFilter_Build(self_: *mut ImGuiTextFilter); +} +extern "C" { + pub fn ImGuiTextFilter_Clear(self_: *mut ImGuiTextFilter); +} +extern "C" { + pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; +} +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; +} +extern "C" { + pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); +} +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Str( + _b: *const cty::c_char, + _e: *const cty::c_char, + ) -> *mut ImGuiTextRange; +} +extern "C" { + pub fn ImGuiTextRange_empty(self_: *mut ImGuiTextRange) -> bool; +} +extern "C" { + pub fn ImGuiTextRange_split( + self_: *mut ImGuiTextRange, + separator: cty::c_char, + out: *mut ImVector_ImGuiTextRange, + ); +} +extern "C" { + pub fn ImGuiTextBuffer_ImGuiTextBuffer() -> *mut ImGuiTextBuffer; +} +extern "C" { + pub fn ImGuiTextBuffer_destroy(self_: *mut ImGuiTextBuffer); +} +extern "C" { + pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> cty::c_int; +} +extern "C" { + pub fn ImGuiTextBuffer_empty(self_: *mut ImGuiTextBuffer) -> bool; +} +extern "C" { + pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer); +} +extern "C" { + pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: cty::c_int); +} +extern "C" { + pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextBuffer_append( + self_: *mut ImGuiTextBuffer, + str_: *const cty::c_char, + str_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( + _key: ImGuiID, + _val_i: cty::c_int, + ) -> *mut ImGuiStoragePair; +} +extern "C" { + pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); +} +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( + _key: ImGuiID, + _val_f: f32, + ) -> *mut ImGuiStoragePair; +} +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( + _key: ImGuiID, + _val_p: *mut cty::c_void, + ) -> *mut ImGuiStoragePair; +} +extern "C" { + pub fn ImGuiStorage_Clear(self_: *mut ImGuiStorage); +} +extern "C" { + pub fn ImGuiStorage_GetInt( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> cty::c_int; +} +extern "C" { + pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: cty::c_int); +} +extern "C" { + pub fn ImGuiStorage_GetBool(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> bool; +} +extern "C" { + pub fn ImGuiStorage_SetBool(self_: *mut ImGuiStorage, key: ImGuiID, val: bool); +} +extern "C" { + pub fn ImGuiStorage_GetFloat(self_: *mut ImGuiStorage, key: ImGuiID, default_val: f32) -> f32; +} +extern "C" { + pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32); +} +extern "C" { + pub fn ImGuiStorage_GetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut cty::c_void; +} +extern "C" { + pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut cty::c_void); +} +extern "C" { + pub fn ImGuiStorage_GetIntRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> *mut cty::c_int; +} +extern "C" { + pub fn ImGuiStorage_GetBoolRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: bool, + ) -> *mut bool; +} +extern "C" { + pub fn ImGuiStorage_GetFloatRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: f32, + ) -> *mut f32; +} +extern "C" { + pub fn ImGuiStorage_GetVoidPtrRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: *mut cty::c_void, + ) -> *mut *mut cty::c_void; +} +extern "C" { + pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: cty::c_int); +} +extern "C" { + pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage); +} +extern "C" { + pub fn ImGuiListClipper_ImGuiListClipper() -> *mut ImGuiListClipper; +} +extern "C" { + pub fn ImGuiListClipper_destroy(self_: *mut ImGuiListClipper); +} +extern "C" { + pub fn ImGuiListClipper_Begin( + self_: *mut ImGuiListClipper, + items_count: cty::c_int, + items_height: f32, + ); +} +extern "C" { + pub fn ImGuiListClipper_End(self_: *mut ImGuiListClipper); +} +extern "C" { + pub fn ImGuiListClipper_Step(self_: *mut ImGuiListClipper) -> bool; +} +extern "C" { + pub fn ImGuiListClipper_ForceDisplayRangeByIndices( + self_: *mut ImGuiListClipper, + item_min: cty::c_int, + item_max: cty::c_int, + ); +} +extern "C" { + pub fn ImColor_ImColor_Nil() -> *mut ImColor; +} +extern "C" { + pub fn ImColor_destroy(self_: *mut ImColor); +} +extern "C" { + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Int( + r: cty::c_int, + g: cty::c_int, + b: cty::c_int, + a: cty::c_int, + ) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +extern "C" { + pub fn ImColor_HSV(pOut: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +extern "C" { + pub fn ImDrawCmd_ImDrawCmd() -> *mut ImDrawCmd; +} +extern "C" { + pub fn ImDrawCmd_destroy(self_: *mut ImDrawCmd); +} +extern "C" { + pub fn ImDrawCmd_GetTexID(self_: *mut ImDrawCmd) -> ImTextureID; +} +extern "C" { + pub fn ImDrawListSplitter_ImDrawListSplitter() -> *mut ImDrawListSplitter; +} +extern "C" { + pub fn ImDrawListSplitter_destroy(self_: *mut ImDrawListSplitter); +} +extern "C" { + pub fn ImDrawListSplitter_Clear(self_: *mut ImDrawListSplitter); +} +extern "C" { + pub fn ImDrawListSplitter_ClearFreeMemory(self_: *mut ImDrawListSplitter); +} +extern "C" { + pub fn ImDrawListSplitter_Split( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + count: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawListSplitter_Merge(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawListSplitter_SetCurrentChannel( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + channel_idx: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; +} +extern "C" { + pub fn ImDrawList_destroy(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PushClipRect( + self_: *mut ImDrawList, + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +extern "C" { + pub fn ImDrawList_PushClipRectFullScreen(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PopClipRect(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PushTextureID(self_: *mut ImDrawList, texture_id: ImTextureID); +} +extern "C" { + pub fn ImDrawList_PopTextureID(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_GetClipRectMin(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_GetClipRectMax(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_AddLine( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + col: ImU32, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddRect( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddRectFilled( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +extern "C" { + 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, + ); +} +extern "C" { + pub fn ImDrawList_AddQuad( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddQuadFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddTriangle( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddTriangleFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddCircle( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddCircleFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddNgon( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddNgonFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddText_Vec2( + self_: *mut ImDrawList, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImDrawList_AddText_FontPtr( + self_: *mut ImDrawList, + font: *const ImFont, + font_size: f32, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip_rect: *const ImVec4, + ); +} +extern "C" { + pub fn ImDrawList_AddPolyline( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddConvexPolyFilled( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddBezierCubic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddBezierQuadratic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddImage( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddImageQuad( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + uv1: ImVec2, + uv2: ImVec2, + uv3: ImVec2, + uv4: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddImageRounded( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +extern "C" { + pub fn ImDrawList_PathClear(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PathLineTo(self_: *mut ImDrawList, pos: ImVec2); +} +extern "C" { + pub fn ImDrawList_PathLineToMergeDuplicate(self_: *mut ImDrawList, pos: ImVec2); +} +extern "C" { + pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32); +} +extern "C" { + pub fn ImDrawList_PathStroke( + self_: *mut ImDrawList, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_PathArcTo( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathArcToFast( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_of_12: cty::c_int, + a_max_of_12: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathBezierCubicCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathBezierQuadraticCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathRect( + self_: *mut ImDrawList, + rect_min: ImVec2, + rect_max: ImVec2, + rounding: f32, + flags: ImDrawFlags, + ); +} +extern "C" { + pub fn ImDrawList_AddCallback( + self_: *mut ImDrawList, + callback: ImDrawCallback, + callback_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn ImDrawList_AddDrawCmd(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_CloneOutput(self_: *mut ImDrawList) -> *mut ImDrawList; +} +extern "C" { + pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: cty::c_int); +} +extern "C" { + pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: cty::c_int); +} +extern "C" { + pub fn ImDrawList_PrimReserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PrimUnreserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PrimRect(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, col: ImU32); +} +extern "C" { + pub fn ImDrawList_PrimRectUV( + self_: *mut ImDrawList, + a: ImVec2, + b: ImVec2, + uv_a: ImVec2, + uv_b: ImVec2, + col: ImU32, + ); +} +extern "C" { + 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, + ); +} +extern "C" { + pub fn ImDrawList_PrimWriteVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +extern "C" { + pub fn ImDrawList_PrimWriteIdx(self_: *mut ImDrawList, idx: ImDrawIdx); +} +extern "C" { + pub fn ImDrawList_PrimVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +extern "C" { + pub fn ImDrawList__ResetForNewFrame(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__ClearFreeMemory(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__PopUnusedDrawCmd(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__TryMergeDrawCmds(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__OnChangedClipRect(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__OnChangedTextureID(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__CalcCircleAutoSegmentCount( + self_: *mut ImDrawList, + radius: f32, + ) -> cty::c_int; +} +extern "C" { + pub fn ImDrawList__PathArcToFastEx( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_sample: cty::c_int, + a_max_sample: cty::c_int, + a_step: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList__PathArcToN( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawData_ImDrawData() -> *mut ImDrawData; +} +extern "C" { + pub fn ImDrawData_destroy(self_: *mut ImDrawData); +} +extern "C" { + pub fn ImDrawData_Clear(self_: *mut ImDrawData); +} +extern "C" { + pub fn ImDrawData_DeIndexAllBuffers(self_: *mut ImDrawData); +} +extern "C" { + pub fn ImDrawData_ScaleClipRects(self_: *mut ImDrawData, fb_scale: ImVec2); +} +extern "C" { + pub fn ImFontConfig_ImFontConfig() -> *mut ImFontConfig; +} +extern "C" { + pub fn ImFontConfig_destroy(self_: *mut ImFontConfig); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder() -> *mut ImFontGlyphRangesBuilder; +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_destroy(self_: *mut ImFontGlyphRangesBuilder); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_Clear(self_: *mut ImFontGlyphRangesBuilder); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_GetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize) -> bool; +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_SetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddChar(self_: *mut ImFontGlyphRangesBuilder, c: ImWchar); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddText( + self_: *mut ImFontGlyphRangesBuilder, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddRanges( + self_: *mut ImFontGlyphRangesBuilder, + ranges: *const ImWchar, + ); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_BuildRanges( + self_: *mut ImFontGlyphRangesBuilder, + out_ranges: *mut ImVector_ImWchar, + ); +} +extern "C" { + pub fn ImFontAtlasCustomRect_ImFontAtlasCustomRect() -> *mut ImFontAtlasCustomRect; +} +extern "C" { + pub fn ImFontAtlasCustomRect_destroy(self_: *mut ImFontAtlasCustomRect); +} +extern "C" { + pub fn ImFontAtlasCustomRect_IsPacked(self_: *mut ImFontAtlasCustomRect) -> bool; +} +extern "C" { + pub fn ImFontAtlas_ImFontAtlas() -> *mut ImFontAtlas; +} +extern "C" { + pub fn ImFontAtlas_destroy(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_AddFont( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontDefault( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromFileTTF( + self_: *mut ImFontAtlas, + filename: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryTTF( + self_: *mut ImFontAtlas, + font_data: *mut cty::c_void, + font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF( + self_: *mut ImFontAtlas, + compressed_font_data: *const cty::c_void, + compressed_font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF( + self_: *mut ImFontAtlas, + compressed_font_data_base85: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_ClearInputData(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_ClearTexData(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_ClearFonts(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_Clear(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_Build(self_: *mut ImFontAtlas) -> bool; +} +extern "C" { + pub fn ImFontAtlas_GetTexDataAsAlpha8( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +extern "C" { + pub fn ImFontAtlas_GetTexDataAsRGBA32( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +extern "C" { + pub fn ImFontAtlas_IsBuilt(self_: *mut ImFontAtlas) -> bool; +} +extern "C" { + pub fn ImFontAtlas_SetTexID(self_: *mut ImFontAtlas, id: ImTextureID); +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesJapanese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseFull(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon( + self_: *mut ImFontAtlas, + ) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesCyrillic(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesThai(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesVietnamese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_AddCustomRectRegular( + self_: *mut ImFontAtlas, + width: cty::c_int, + height: cty::c_int, + ) -> cty::c_int; +} +extern "C" { + pub fn ImFontAtlas_AddCustomRectFontGlyph( + self_: *mut ImFontAtlas, + font: *mut ImFont, + id: ImWchar, + width: cty::c_int, + height: cty::c_int, + advance_x: f32, + offset: ImVec2, + ) -> cty::c_int; +} +extern "C" { + pub fn ImFontAtlas_GetCustomRectByIndex( + self_: *mut ImFontAtlas, + index: cty::c_int, + ) -> *mut ImFontAtlasCustomRect; +} +extern "C" { + pub fn ImFontAtlas_CalcCustomRectUV( + self_: *mut ImFontAtlas, + rect: *const ImFontAtlasCustomRect, + out_uv_min: *mut ImVec2, + out_uv_max: *mut ImVec2, + ); +} +extern "C" { + pub fn ImFontAtlas_GetMouseCursorTexData( + self_: *mut ImFontAtlas, + cursor: ImGuiMouseCursor, + out_offset: *mut ImVec2, + out_size: *mut ImVec2, + out_uv_border: *mut ImVec2, + out_uv_fill: *mut ImVec2, + ) -> bool; +} +extern "C" { + pub fn ImFont_ImFont() -> *mut ImFont; +} +extern "C" { + pub fn ImFont_destroy(self_: *mut ImFont); +} +extern "C" { + pub fn ImFont_FindGlyph(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +extern "C" { + pub fn ImFont_FindGlyphNoFallback(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +extern "C" { + pub fn ImFont_GetCharAdvance(self_: *mut ImFont, c: ImWchar) -> f32; +} +extern "C" { + pub fn ImFont_IsLoaded(self_: *mut ImFont) -> bool; +} +extern "C" { + pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const cty::c_char; +} +extern "C" { + pub fn ImFont_CalcTextSizeA( + pOut: *mut ImVec2, + self_: *mut ImFont, + size: f32, + max_width: f32, + wrap_width: f32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + remaining: *mut *const cty::c_char, + ); +} +extern "C" { + pub fn ImFont_CalcWordWrapPositionA( + self_: *mut ImFont, + scale: f32, + text: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + ) -> *const cty::c_char; +} +extern "C" { + pub fn ImFont_RenderChar( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + c: ImWchar, + ); +} +extern "C" { + pub fn ImFont_RenderText( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + clip_rect: ImVec4, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip: bool, + ); +} +extern "C" { + pub fn ImFont_BuildLookupTable(self_: *mut ImFont); +} +extern "C" { + pub fn ImFont_ClearOutputData(self_: *mut ImFont); +} +extern "C" { + pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: cty::c_int); +} +extern "C" { + pub fn ImFont_AddGlyph( + self_: *mut ImFont, + src_cfg: *const ImFontConfig, + c: ImWchar, + x0: f32, + y0: f32, + x1: f32, + y1: f32, + u0: f32, + v0: f32, + u1: f32, + v1: f32, + advance_x: f32, + ); +} +extern "C" { + pub fn ImFont_AddRemapChar(self_: *mut ImFont, dst: ImWchar, src: ImWchar, overwrite_dst: bool); +} +extern "C" { + pub fn ImFont_SetGlyphVisible(self_: *mut ImFont, c: ImWchar, visible: bool); +} +extern "C" { + pub fn ImFont_IsGlyphRangeUnused( + self_: *mut ImFont, + c_begin: cty::c_uint, + c_last: cty::c_uint, + ) -> bool; +} +extern "C" { + pub fn ImGuiViewport_ImGuiViewport() -> *mut ImGuiViewport; +} +extern "C" { + pub fn ImGuiViewport_destroy(self_: *mut ImGuiViewport); +} +extern "C" { + pub fn ImGuiViewport_GetCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +extern "C" { + pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +extern "C" { + pub fn ImGuiPlatformIO_ImGuiPlatformIO() -> *mut ImGuiPlatformIO; +} +extern "C" { + pub fn ImGuiPlatformIO_destroy(self_: *mut ImGuiPlatformIO); +} +extern "C" { + pub fn ImGuiPlatformMonitor_ImGuiPlatformMonitor() -> *mut ImGuiPlatformMonitor; +} +extern "C" { + pub fn ImGuiPlatformMonitor_destroy(self_: *mut ImGuiPlatformMonitor); +} +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); +} +extern "C" { + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; +} +extern "C" { + pub fn ImGuiFreeType_GetBuilderForFreeType() -> *const ImFontBuilderIO; +} +extern "C" { + pub fn ImGuiFreeType_SetAllocatorFunctions( + alloc_func: ::core::option::Option< + unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void, + >, + free_func: ::core::option::Option< + unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), + >, + user_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn igLogText(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn ImGuiTextBuffer_appendf(buffer: *mut ImGuiTextBuffer, fmt: *const cty::c_char, ...); +} diff --git a/imgui-sys/src/freetype_bindings.rs b/imgui-sys/src/freetype_bindings.rs new file mode 100644 index 000000000..64bc897ee --- /dev/null +++ b/imgui-sys/src/freetype_bindings.rs @@ -0,0 +1,4723 @@ +/* automatically generated by rust-bindgen 0.63.0 */ + +#![allow(nonstandard_style, clippy::all)] + +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { + storage: Storage, +} +impl __BindgenBitfieldUnit { + #[inline] + pub const fn new(storage: Storage) -> Self { + Self { storage } + } +} +impl __BindgenBitfieldUnit +where + Storage: AsRef<[u8]> + AsMut<[u8]>, +{ + #[inline] + pub fn get_bit(&self, index: usize) -> bool { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = self.storage.as_ref()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + byte & mask == mask + } + #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + if val { + *byte |= mask; + } else { + *byte &= !mask; + } + } + #[inline] + pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if self.get_bit(i + bit_offset) { + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + val |= 1 << index; + } + } + val + } + #[inline] + pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + self.set_bit(index + bit_offset, val_bit_is_set); + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImDrawListSharedData { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImFontBuilderIO { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImGuiContext { + _unused: [u8; 0], +} +pub type ImGuiCol = cty::c_int; +pub type ImGuiCond = cty::c_int; +pub type ImGuiDataType = cty::c_int; +pub type ImGuiDir = cty::c_int; +pub type ImGuiMouseButton = cty::c_int; +pub type ImGuiMouseCursor = cty::c_int; +pub type ImGuiSortDirection = cty::c_int; +pub type ImGuiStyleVar = cty::c_int; +pub type ImGuiTableBgTarget = cty::c_int; +pub type ImDrawFlags = cty::c_int; +pub type ImDrawListFlags = cty::c_int; +pub type ImFontAtlasFlags = cty::c_int; +pub type ImGuiBackendFlags = cty::c_int; +pub type ImGuiButtonFlags = cty::c_int; +pub type ImGuiColorEditFlags = cty::c_int; +pub type ImGuiConfigFlags = cty::c_int; +pub type ImGuiComboFlags = cty::c_int; +pub type ImGuiDragDropFlags = cty::c_int; +pub type ImGuiFocusedFlags = cty::c_int; +pub type ImGuiHoveredFlags = cty::c_int; +pub type ImGuiInputTextFlags = cty::c_int; +pub type ImGuiKeyChord = cty::c_int; +pub type ImGuiPopupFlags = cty::c_int; +pub type ImGuiSelectableFlags = cty::c_int; +pub type ImGuiSliderFlags = cty::c_int; +pub type ImGuiTabBarFlags = cty::c_int; +pub type ImGuiTabItemFlags = cty::c_int; +pub type ImGuiTableFlags = cty::c_int; +pub type ImGuiTableColumnFlags = cty::c_int; +pub type ImGuiTableRowFlags = cty::c_int; +pub type ImGuiTreeNodeFlags = cty::c_int; +pub type ImGuiViewportFlags = cty::c_int; +pub type ImGuiWindowFlags = cty::c_int; +pub type ImTextureID = *mut cty::c_void; +pub type ImDrawIdx = cty::c_ushort; +pub type ImGuiID = cty::c_uint; +pub type ImS8 = cty::c_schar; +pub type ImU8 = cty::c_uchar; +pub type ImS16 = cty::c_short; +pub type ImU16 = cty::c_ushort; +pub type ImU32 = cty::c_uint; +pub type ImWchar16 = cty::c_ushort; +pub type ImWchar32 = cty::c_uint; +pub type ImWchar = ImWchar32; +pub type ImGuiInputTextCallback = ::core::option::Option< + unsafe extern "C" fn(data: *mut ImGuiInputTextCallbackData) -> cty::c_int, +>; +pub type ImGuiSizeCallback = + ::core::option::Option; +pub type ImGuiMemAllocFunc = ::core::option::Option< + unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void, +>; +pub type ImGuiMemFreeFunc = ::core::option::Option< + unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec2 { + pub x: f32, + pub y: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec4 { + pub x: f32, + pub y: f32, + pub z: f32, + pub w: f32, +} +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_AlwaysUseWindowPadding: ImGuiWindowFlags_ = 65536; +pub const ImGuiWindowFlags_NoNavInputs: ImGuiWindowFlags_ = 262144; +pub const ImGuiWindowFlags_NoNavFocus: ImGuiWindowFlags_ = 524288; +pub const ImGuiWindowFlags_UnsavedDocument: ImGuiWindowFlags_ = 1048576; +pub const ImGuiWindowFlags_NoNav: ImGuiWindowFlags_ = 786432; +pub const ImGuiWindowFlags_NoDecoration: ImGuiWindowFlags_ = 43; +pub const ImGuiWindowFlags_NoInputs: ImGuiWindowFlags_ = 786944; +pub const ImGuiWindowFlags_NavFlattened: ImGuiWindowFlags_ = 8388608; +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 type ImGuiWindowFlags_ = cty::c_uint; +pub const ImGuiInputTextFlags_None: ImGuiInputTextFlags_ = 0; +pub const ImGuiInputTextFlags_CharsDecimal: ImGuiInputTextFlags_ = 1; +pub const ImGuiInputTextFlags_CharsHexadecimal: ImGuiInputTextFlags_ = 2; +pub const ImGuiInputTextFlags_CharsUppercase: ImGuiInputTextFlags_ = 4; +pub const ImGuiInputTextFlags_CharsNoBlank: ImGuiInputTextFlags_ = 8; +pub const ImGuiInputTextFlags_AutoSelectAll: ImGuiInputTextFlags_ = 16; +pub const ImGuiInputTextFlags_EnterReturnsTrue: ImGuiInputTextFlags_ = 32; +pub const ImGuiInputTextFlags_CallbackCompletion: ImGuiInputTextFlags_ = 64; +pub const ImGuiInputTextFlags_CallbackHistory: ImGuiInputTextFlags_ = 128; +pub const ImGuiInputTextFlags_CallbackAlways: ImGuiInputTextFlags_ = 256; +pub const ImGuiInputTextFlags_CallbackCharFilter: ImGuiInputTextFlags_ = 512; +pub const ImGuiInputTextFlags_AllowTabInput: ImGuiInputTextFlags_ = 1024; +pub const ImGuiInputTextFlags_CtrlEnterForNewLine: ImGuiInputTextFlags_ = 2048; +pub const ImGuiInputTextFlags_NoHorizontalScroll: ImGuiInputTextFlags_ = 4096; +pub const ImGuiInputTextFlags_AlwaysOverwrite: ImGuiInputTextFlags_ = 8192; +pub const ImGuiInputTextFlags_ReadOnly: ImGuiInputTextFlags_ = 16384; +pub const ImGuiInputTextFlags_Password: ImGuiInputTextFlags_ = 32768; +pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536; +pub const ImGuiInputTextFlags_CharsScientific: ImGuiInputTextFlags_ = 131072; +pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags_ = 262144; +pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags_ = 524288; +pub const ImGuiInputTextFlags_EscapeClearsAll: ImGuiInputTextFlags_ = 1048576; +pub type ImGuiInputTextFlags_ = cty::c_uint; +pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags_ = 0; +pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags_ = 1; +pub const ImGuiTreeNodeFlags_Framed: ImGuiTreeNodeFlags_ = 2; +pub const ImGuiTreeNodeFlags_AllowItemOverlap: 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_NavLeftJumpsBackHere: ImGuiTreeNodeFlags_ = 8192; +pub const ImGuiTreeNodeFlags_CollapsingHeader: ImGuiTreeNodeFlags_ = 26; +pub type ImGuiTreeNodeFlags_ = cty::c_uint; +pub const ImGuiPopupFlags_None: ImGuiPopupFlags_ = 0; +pub const ImGuiPopupFlags_MouseButtonLeft: ImGuiPopupFlags_ = 0; +pub const ImGuiPopupFlags_MouseButtonRight: ImGuiPopupFlags_ = 1; +pub const ImGuiPopupFlags_MouseButtonMiddle: ImGuiPopupFlags_ = 2; +pub const ImGuiPopupFlags_MouseButtonMask_: ImGuiPopupFlags_ = 31; +pub const ImGuiPopupFlags_MouseButtonDefault_: ImGuiPopupFlags_ = 1; +pub const ImGuiPopupFlags_NoOpenOverExistingPopup: ImGuiPopupFlags_ = 32; +pub const ImGuiPopupFlags_NoOpenOverItems: ImGuiPopupFlags_ = 64; +pub const ImGuiPopupFlags_AnyPopupId: ImGuiPopupFlags_ = 128; +pub const ImGuiPopupFlags_AnyPopupLevel: ImGuiPopupFlags_ = 256; +pub const ImGuiPopupFlags_AnyPopup: ImGuiPopupFlags_ = 384; +pub type ImGuiPopupFlags_ = cty::c_uint; +pub const ImGuiSelectableFlags_None: ImGuiSelectableFlags_ = 0; +pub const ImGuiSelectableFlags_DontClosePopups: ImGuiSelectableFlags_ = 1; +pub const ImGuiSelectableFlags_SpanAllColumns: ImGuiSelectableFlags_ = 2; +pub const ImGuiSelectableFlags_AllowDoubleClick: ImGuiSelectableFlags_ = 4; +pub const ImGuiSelectableFlags_Disabled: ImGuiSelectableFlags_ = 8; +pub const ImGuiSelectableFlags_AllowItemOverlap: ImGuiSelectableFlags_ = 16; +pub type ImGuiSelectableFlags_ = cty::c_uint; +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_HeightMask_: ImGuiComboFlags_ = 30; +pub type ImGuiComboFlags_ = cty::c_uint; +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_FittingPolicyResizeDown: ImGuiTabBarFlags_ = 64; +pub const ImGuiTabBarFlags_FittingPolicyScroll: ImGuiTabBarFlags_ = 128; +pub const ImGuiTabBarFlags_FittingPolicyMask_: ImGuiTabBarFlags_ = 192; +pub const ImGuiTabBarFlags_FittingPolicyDefault_: ImGuiTabBarFlags_ = 64; +pub type ImGuiTabBarFlags_ = cty::c_uint; +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 type ImGuiTabItemFlags_ = cty::c_uint; +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_SizingMask_: ImGuiTableFlags_ = 57344; +pub type ImGuiTableFlags_ = cty::c_uint; +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_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 type ImGuiTableColumnFlags_ = cty::c_uint; +pub const ImGuiTableRowFlags_None: ImGuiTableRowFlags_ = 0; +pub const ImGuiTableRowFlags_Headers: ImGuiTableRowFlags_ = 1; +pub type ImGuiTableRowFlags_ = cty::c_uint; +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 type ImGuiTableBgTarget_ = cty::c_uint; +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 type ImGuiFocusedFlags_ = cty::c_uint; +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_AllowWhenOverlapped: ImGuiHoveredFlags_ = 256; +pub const ImGuiHoveredFlags_AllowWhenDisabled: ImGuiHoveredFlags_ = 512; +pub const ImGuiHoveredFlags_NoNavOverride: ImGuiHoveredFlags_ = 1024; +pub const ImGuiHoveredFlags_RectOnly: ImGuiHoveredFlags_ = 416; +pub const ImGuiHoveredFlags_RootAndChildWindows: ImGuiHoveredFlags_ = 3; +pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags_ = 2048; +pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags_ = 4096; +pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags_ = 8192; +pub type ImGuiHoveredFlags_ = cty::c_uint; +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_SourceAutoExpirePayload: ImGuiDragDropFlags_ = 32; +pub const ImGuiDragDropFlags_AcceptBeforeDelivery: ImGuiDragDropFlags_ = 1024; +pub const ImGuiDragDropFlags_AcceptNoDrawDefaultRect: ImGuiDragDropFlags_ = 2048; +pub const ImGuiDragDropFlags_AcceptNoPreviewTooltip: ImGuiDragDropFlags_ = 4096; +pub const ImGuiDragDropFlags_AcceptPeekOnly: ImGuiDragDropFlags_ = 3072; +pub type ImGuiDragDropFlags_ = cty::c_uint; +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_COUNT: ImGuiDataType_ = 10; +pub type ImGuiDataType_ = cty::c_uint; +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 type ImGuiDir_ = cty::c_int; +pub const ImGuiSortDirection_None: ImGuiSortDirection_ = 0; +pub const ImGuiSortDirection_Ascending: ImGuiSortDirection_ = 1; +pub const ImGuiSortDirection_Descending: ImGuiSortDirection_ = 2; +pub type ImGuiSortDirection_ = cty::c_uint; +pub const ImGuiKey_None: ImGuiKey = 0; +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_Apostrophe: ImGuiKey = 584; +pub const ImGuiKey_Comma: ImGuiKey = 585; +pub const ImGuiKey_Minus: ImGuiKey = 586; +pub const ImGuiKey_Period: ImGuiKey = 587; +pub const ImGuiKey_Slash: ImGuiKey = 588; +pub const ImGuiKey_Semicolon: ImGuiKey = 589; +pub const ImGuiKey_Equal: ImGuiKey = 590; +pub const ImGuiKey_LeftBracket: ImGuiKey = 591; +pub const ImGuiKey_Backslash: ImGuiKey = 592; +pub const ImGuiKey_RightBracket: ImGuiKey = 593; +pub const ImGuiKey_GraveAccent: ImGuiKey = 594; +pub const ImGuiKey_CapsLock: ImGuiKey = 595; +pub const ImGuiKey_ScrollLock: ImGuiKey = 596; +pub const ImGuiKey_NumLock: ImGuiKey = 597; +pub const ImGuiKey_PrintScreen: ImGuiKey = 598; +pub const ImGuiKey_Pause: ImGuiKey = 599; +pub const ImGuiKey_Keypad0: ImGuiKey = 600; +pub const ImGuiKey_Keypad1: ImGuiKey = 601; +pub const ImGuiKey_Keypad2: ImGuiKey = 602; +pub const ImGuiKey_Keypad3: ImGuiKey = 603; +pub const ImGuiKey_Keypad4: ImGuiKey = 604; +pub const ImGuiKey_Keypad5: ImGuiKey = 605; +pub const ImGuiKey_Keypad6: ImGuiKey = 606; +pub const ImGuiKey_Keypad7: ImGuiKey = 607; +pub const ImGuiKey_Keypad8: ImGuiKey = 608; +pub const ImGuiKey_Keypad9: ImGuiKey = 609; +pub const ImGuiKey_KeypadDecimal: ImGuiKey = 610; +pub const ImGuiKey_KeypadDivide: ImGuiKey = 611; +pub const ImGuiKey_KeypadMultiply: ImGuiKey = 612; +pub const ImGuiKey_KeypadSubtract: ImGuiKey = 613; +pub const ImGuiKey_KeypadAdd: ImGuiKey = 614; +pub const ImGuiKey_KeypadEnter: ImGuiKey = 615; +pub const ImGuiKey_KeypadEqual: ImGuiKey = 616; +pub const ImGuiKey_GamepadStart: ImGuiKey = 617; +pub const ImGuiKey_GamepadBack: ImGuiKey = 618; +pub const ImGuiKey_GamepadFaceLeft: ImGuiKey = 619; +pub const ImGuiKey_GamepadFaceRight: ImGuiKey = 620; +pub const ImGuiKey_GamepadFaceUp: ImGuiKey = 621; +pub const ImGuiKey_GamepadFaceDown: ImGuiKey = 622; +pub const ImGuiKey_GamepadDpadLeft: ImGuiKey = 623; +pub const ImGuiKey_GamepadDpadRight: ImGuiKey = 624; +pub const ImGuiKey_GamepadDpadUp: ImGuiKey = 625; +pub const ImGuiKey_GamepadDpadDown: ImGuiKey = 626; +pub const ImGuiKey_GamepadL1: ImGuiKey = 627; +pub const ImGuiKey_GamepadR1: ImGuiKey = 628; +pub const ImGuiKey_GamepadL2: ImGuiKey = 629; +pub const ImGuiKey_GamepadR2: ImGuiKey = 630; +pub const ImGuiKey_GamepadL3: ImGuiKey = 631; +pub const ImGuiKey_GamepadR3: ImGuiKey = 632; +pub const ImGuiKey_GamepadLStickLeft: ImGuiKey = 633; +pub const ImGuiKey_GamepadLStickRight: ImGuiKey = 634; +pub const ImGuiKey_GamepadLStickUp: ImGuiKey = 635; +pub const ImGuiKey_GamepadLStickDown: ImGuiKey = 636; +pub const ImGuiKey_GamepadRStickLeft: ImGuiKey = 637; +pub const ImGuiKey_GamepadRStickRight: ImGuiKey = 638; +pub const ImGuiKey_GamepadRStickUp: ImGuiKey = 639; +pub const ImGuiKey_GamepadRStickDown: ImGuiKey = 640; +pub const ImGuiKey_MouseLeft: ImGuiKey = 641; +pub const ImGuiKey_MouseRight: ImGuiKey = 642; +pub const ImGuiKey_MouseMiddle: ImGuiKey = 643; +pub const ImGuiKey_MouseX1: ImGuiKey = 644; +pub const ImGuiKey_MouseX2: ImGuiKey = 645; +pub const ImGuiKey_MouseWheelX: ImGuiKey = 646; +pub const ImGuiKey_MouseWheelY: ImGuiKey = 647; +pub const ImGuiKey_ReservedForModCtrl: ImGuiKey = 648; +pub const ImGuiKey_ReservedForModShift: ImGuiKey = 649; +pub const ImGuiKey_ReservedForModAlt: ImGuiKey = 650; +pub const ImGuiKey_ReservedForModSuper: ImGuiKey = 651; +pub const ImGuiKey_COUNT: ImGuiKey = 652; +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 ImGuiMod_Shortcut: ImGuiKey = 4096; +pub const ImGuiKey_NamedKey_BEGIN: ImGuiKey = 512; +pub const ImGuiKey_NamedKey_END: ImGuiKey = 652; +pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 140; +pub const ImGuiKey_KeysData_SIZE: ImGuiKey = 652; +pub const ImGuiKey_KeysData_OFFSET: ImGuiKey = 0; +pub type ImGuiKey = cty::c_uint; +pub const ImGuiNavInput_Activate: ImGuiNavInput = 0; +pub const ImGuiNavInput_Cancel: ImGuiNavInput = 1; +pub const ImGuiNavInput_Input: ImGuiNavInput = 2; +pub const ImGuiNavInput_Menu: ImGuiNavInput = 3; +pub const ImGuiNavInput_DpadLeft: ImGuiNavInput = 4; +pub const ImGuiNavInput_DpadRight: ImGuiNavInput = 5; +pub const ImGuiNavInput_DpadUp: ImGuiNavInput = 6; +pub const ImGuiNavInput_DpadDown: ImGuiNavInput = 7; +pub const ImGuiNavInput_LStickLeft: ImGuiNavInput = 8; +pub const ImGuiNavInput_LStickRight: ImGuiNavInput = 9; +pub const ImGuiNavInput_LStickUp: ImGuiNavInput = 10; +pub const ImGuiNavInput_LStickDown: ImGuiNavInput = 11; +pub const ImGuiNavInput_FocusPrev: ImGuiNavInput = 12; +pub const ImGuiNavInput_FocusNext: ImGuiNavInput = 13; +pub const ImGuiNavInput_TweakSlow: ImGuiNavInput = 14; +pub const ImGuiNavInput_TweakFast: ImGuiNavInput = 15; +pub const ImGuiNavInput_COUNT: ImGuiNavInput = 16; +pub type ImGuiNavInput = cty::c_uint; +pub const ImGuiConfigFlags_None: ImGuiConfigFlags_ = 0; +pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags_ = 1; +pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags_ = 2; +pub const ImGuiConfigFlags_NavEnableSetMousePos: ImGuiConfigFlags_ = 4; +pub const ImGuiConfigFlags_NavNoCaptureKeyboard: ImGuiConfigFlags_ = 8; +pub const ImGuiConfigFlags_NoMouse: ImGuiConfigFlags_ = 16; +pub const ImGuiConfigFlags_NoMouseCursorChange: ImGuiConfigFlags_ = 32; +pub const ImGuiConfigFlags_IsSRGB: ImGuiConfigFlags_ = 1048576; +pub const ImGuiConfigFlags_IsTouchScreen: ImGuiConfigFlags_ = 2097152; +pub type ImGuiConfigFlags_ = cty::c_uint; +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 type ImGuiBackendFlags_ = cty::c_uint; +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_SliderGrab: ImGuiCol_ = 19; +pub const ImGuiCol_SliderGrabActive: ImGuiCol_ = 20; +pub const ImGuiCol_Button: ImGuiCol_ = 21; +pub const ImGuiCol_ButtonHovered: ImGuiCol_ = 22; +pub const ImGuiCol_ButtonActive: ImGuiCol_ = 23; +pub const ImGuiCol_Header: ImGuiCol_ = 24; +pub const ImGuiCol_HeaderHovered: ImGuiCol_ = 25; +pub const ImGuiCol_HeaderActive: ImGuiCol_ = 26; +pub const ImGuiCol_Separator: ImGuiCol_ = 27; +pub const ImGuiCol_SeparatorHovered: ImGuiCol_ = 28; +pub const ImGuiCol_SeparatorActive: ImGuiCol_ = 29; +pub const ImGuiCol_ResizeGrip: ImGuiCol_ = 30; +pub const ImGuiCol_ResizeGripHovered: ImGuiCol_ = 31; +pub const ImGuiCol_ResizeGripActive: ImGuiCol_ = 32; +pub const ImGuiCol_Tab: ImGuiCol_ = 33; +pub const ImGuiCol_TabHovered: ImGuiCol_ = 34; +pub const ImGuiCol_TabActive: ImGuiCol_ = 35; +pub const ImGuiCol_TabUnfocused: ImGuiCol_ = 36; +pub const ImGuiCol_TabUnfocusedActive: ImGuiCol_ = 37; +pub const ImGuiCol_PlotLines: ImGuiCol_ = 38; +pub const ImGuiCol_PlotLinesHovered: ImGuiCol_ = 39; +pub const ImGuiCol_PlotHistogram: ImGuiCol_ = 40; +pub const ImGuiCol_PlotHistogramHovered: ImGuiCol_ = 41; +pub const ImGuiCol_TableHeaderBg: ImGuiCol_ = 42; +pub const ImGuiCol_TableBorderStrong: ImGuiCol_ = 43; +pub const ImGuiCol_TableBorderLight: ImGuiCol_ = 44; +pub const ImGuiCol_TableRowBg: ImGuiCol_ = 45; +pub const ImGuiCol_TableRowBgAlt: ImGuiCol_ = 46; +pub const ImGuiCol_TextSelectedBg: ImGuiCol_ = 47; +pub const ImGuiCol_DragDropTarget: ImGuiCol_ = 48; +pub const ImGuiCol_NavHighlight: ImGuiCol_ = 49; +pub const ImGuiCol_NavWindowingHighlight: ImGuiCol_ = 50; +pub const ImGuiCol_NavWindowingDimBg: ImGuiCol_ = 51; +pub const ImGuiCol_ModalWindowDimBg: ImGuiCol_ = 52; +pub const ImGuiCol_COUNT: ImGuiCol_ = 53; +pub type ImGuiCol_ = cty::c_uint; +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_GrabMinSize: ImGuiStyleVar_ = 20; +pub const ImGuiStyleVar_GrabRounding: ImGuiStyleVar_ = 21; +pub const ImGuiStyleVar_TabRounding: ImGuiStyleVar_ = 22; +pub const ImGuiStyleVar_ButtonTextAlign: ImGuiStyleVar_ = 23; +pub const ImGuiStyleVar_SelectableTextAlign: ImGuiStyleVar_ = 24; +pub const ImGuiStyleVar_COUNT: ImGuiStyleVar_ = 25; +pub type ImGuiStyleVar_ = cty::c_uint; +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_MouseButtonDefault_: ImGuiButtonFlags_ = 1; +pub type ImGuiButtonFlags_ = cty::c_uint; +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_AlphaBar: ImGuiColorEditFlags_ = 65536; +pub const ImGuiColorEditFlags_AlphaPreview: ImGuiColorEditFlags_ = 131072; +pub const ImGuiColorEditFlags_AlphaPreviewHalf: 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_InputRGB: ImGuiColorEditFlags_ = 134217728; +pub const ImGuiColorEditFlags_InputHSV: ImGuiColorEditFlags_ = 268435456; +pub const ImGuiColorEditFlags_DefaultOptions_: ImGuiColorEditFlags_ = 177209344; +pub const ImGuiColorEditFlags_DisplayMask_: ImGuiColorEditFlags_ = 7340032; +pub const ImGuiColorEditFlags_DataTypeMask_: ImGuiColorEditFlags_ = 25165824; +pub const ImGuiColorEditFlags_PickerMask_: ImGuiColorEditFlags_ = 100663296; +pub const ImGuiColorEditFlags_InputMask_: ImGuiColorEditFlags_ = 402653184; +pub type ImGuiColorEditFlags_ = cty::c_uint; +pub const ImGuiSliderFlags_None: ImGuiSliderFlags_ = 0; +pub const ImGuiSliderFlags_AlwaysClamp: ImGuiSliderFlags_ = 16; +pub const ImGuiSliderFlags_Logarithmic: ImGuiSliderFlags_ = 32; +pub const ImGuiSliderFlags_NoRoundToFormat: ImGuiSliderFlags_ = 64; +pub const ImGuiSliderFlags_NoInput: ImGuiSliderFlags_ = 128; +pub const ImGuiSliderFlags_InvalidMask_: ImGuiSliderFlags_ = 1879048207; +pub type ImGuiSliderFlags_ = cty::c_uint; +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 type ImGuiMouseButton_ = cty::c_uint; +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_NotAllowed: ImGuiMouseCursor_ = 8; +pub const ImGuiMouseCursor_COUNT: ImGuiMouseCursor_ = 9; +pub type ImGuiMouseCursor_ = cty::c_int; +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 type ImGuiCond_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiStyle { + pub Alpha: f32, + pub DisabledAlpha: f32, + pub WindowPadding: ImVec2, + pub WindowRounding: f32, + pub WindowBorderSize: 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 GrabMinSize: f32, + pub GrabRounding: f32, + pub LogSliderDeadzone: f32, + pub TabRounding: f32, + pub TabBorderSize: f32, + pub TabMinWidthForCloseButton: f32, + pub ColorButtonPosition: ImGuiDir, + pub ButtonTextAlign: ImVec2, + pub SelectableTextAlign: ImVec2, + pub DisplayWindowPadding: ImVec2, + pub DisplaySafeAreaPadding: ImVec2, + pub MouseCursorScale: f32, + pub AntiAliasedLines: bool, + pub AntiAliasedLinesUseTex: bool, + pub AntiAliasedFill: bool, + pub CurveTessellationTol: f32, + pub CircleTessellationMaxError: f32, + pub Colors: [ImVec4; 53usize], +} +impl Default for ImGuiStyle { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiKeyData { + pub Down: bool, + pub DownDuration: f32, + pub DownDurationPrev: f32, + pub AnalogValue: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImWchar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImWchar, +} +impl Default for ImVector_ImWchar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiIO { + pub ConfigFlags: ImGuiConfigFlags, + pub BackendFlags: ImGuiBackendFlags, + pub DisplaySize: ImVec2, + pub DeltaTime: f32, + pub IniSavingRate: f32, + pub IniFilename: *const cty::c_char, + pub LogFilename: *const cty::c_char, + pub MouseDoubleClickTime: f32, + pub MouseDoubleClickMaxDist: f32, + pub MouseDragThreshold: f32, + pub KeyRepeatDelay: f32, + pub KeyRepeatRate: f32, + pub HoverDelayNormal: f32, + pub HoverDelayShort: f32, + pub UserData: *mut cty::c_void, + pub Fonts: *mut ImFontAtlas, + pub FontGlobalScale: f32, + pub FontAllowUserScaling: bool, + pub FontDefault: *mut ImFont, + pub DisplayFramebufferScale: ImVec2, + pub MouseDrawCursor: bool, + pub ConfigMacOSXBehaviors: bool, + pub ConfigInputTrickleEventQueue: bool, + pub ConfigInputTextCursorBlink: bool, + pub ConfigInputTextEnterKeepActive: bool, + pub ConfigDragClickToInputText: bool, + pub ConfigWindowsResizeFromEdges: bool, + pub ConfigWindowsMoveFromTitleBarOnly: bool, + pub ConfigMemoryCompactTimer: f32, + pub BackendPlatformName: *const cty::c_char, + pub BackendRendererName: *const cty::c_char, + pub BackendPlatformUserData: *mut cty::c_void, + pub BackendRendererUserData: *mut cty::c_void, + pub BackendLanguageUserData: *mut cty::c_void, + pub GetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void) -> *const cty::c_char, + >, + pub SetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), + >, + pub ClipboardUserData: *mut cty::c_void, + pub SetPlatformImeDataFn: ::core::option::Option< + unsafe extern "C" fn(viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData), + >, + pub _UnusedPadding: *mut cty::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: cty::c_int, + pub MetricsRenderIndices: cty::c_int, + pub MetricsRenderWindows: cty::c_int, + pub MetricsActiveWindows: cty::c_int, + pub MetricsActiveAllocations: cty::c_int, + pub MouseDelta: ImVec2, + pub KeyMap: [cty::c_int; 652usize], + pub KeysDown: [bool; 652usize], + pub NavInputs: [f32; 16usize], + pub MousePos: ImVec2, + pub MouseDown: [bool; 5usize], + pub MouseWheel: f32, + pub MouseWheelH: f32, + pub KeyCtrl: bool, + pub KeyShift: bool, + pub KeyAlt: bool, + pub KeySuper: bool, + pub KeyMods: ImGuiKeyChord, + pub KeysData: [ImGuiKeyData; 652usize], + pub WantCaptureMouseUnlessPopupClose: bool, + pub MousePosPrev: ImVec2, + pub MouseClickedPos: [ImVec2; 5usize], + pub MouseClickedTime: [f64; 5usize], + pub MouseClicked: [bool; 5usize], + pub MouseDoubleClicked: [bool; 5usize], + pub MouseClickedCount: [ImU16; 5usize], + pub MouseClickedLastCount: [ImU16; 5usize], + pub MouseReleased: [bool; 5usize], + pub MouseDownOwned: [bool; 5usize], + pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], + pub MouseDownDuration: [f32; 5usize], + pub MouseDownDurationPrev: [f32; 5usize], + pub MouseDragMaxDistanceSqr: [f32; 5usize], + pub PenPressure: f32, + pub AppFocusLost: bool, + pub AppAcceptingEvents: bool, + pub BackendUsingLegacyKeyArrays: ImS8, + pub BackendUsingLegacyNavInputArray: bool, + pub InputQueueSurrogate: ImWchar16, + pub InputQueueCharacters: ImVector_ImWchar, +} +impl Default for ImGuiIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputTextCallbackData { + pub EventFlag: ImGuiInputTextFlags, + pub Flags: ImGuiInputTextFlags, + pub UserData: *mut cty::c_void, + pub EventChar: ImWchar, + pub EventKey: ImGuiKey, + pub Buf: *mut cty::c_char, + pub BufTextLen: cty::c_int, + pub BufSize: cty::c_int, + pub BufDirty: bool, + pub CursorPos: cty::c_int, + pub SelectionStart: cty::c_int, + pub SelectionEnd: cty::c_int, +} +impl Default for ImGuiInputTextCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiSizeCallbackData { + pub UserData: *mut cty::c_void, + pub Pos: ImVec2, + pub CurrentSize: ImVec2, + pub DesiredSize: ImVec2, +} +impl Default for ImGuiSizeCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPayload { + pub Data: *mut cty::c_void, + pub DataSize: cty::c_int, + pub SourceId: ImGuiID, + pub SourceParentId: ImGuiID, + pub DataFrameCount: cty::c_int, + pub DataType: [cty::c_char; 33usize], + pub Preview: bool, + pub Delivery: bool, +} +impl Default for ImGuiPayload { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableColumnSortSpecs { + pub ColumnUserID: ImGuiID, + pub ColumnIndex: ImS16, + pub SortOrder: ImS16, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl ImGuiTableColumnSortSpecs { + #[inline] + pub fn SortDirection(&self) -> ImGuiSortDirection { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImGuiSortDirection) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImGuiSortDirection, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableSortSpecs { + pub Specs: *const ImGuiTableColumnSortSpecs, + pub SpecsCount: cty::c_int, + pub SpecsDirty: bool, +} +impl Default for ImGuiTableSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiOnceUponAFrame { + pub RefFrame: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextRange { + pub b: *const cty::c_char, + pub e: *const cty::c_char, +} +impl Default for ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTextRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTextRange, +} +impl Default for ImVector_ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextFilter { + pub InputBuf: [cty::c_char; 256usize], + pub Filters: ImVector_ImGuiTextRange, + pub CountGrep: cty::c_int, +} +impl Default for ImGuiTextFilter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_char, +} +impl Default for ImVector_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextBuffer { + pub Buf: ImVector_char, +} +impl Default for ImGuiTextBuffer { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiStoragePair { + pub key: ImGuiID, + pub __bindgen_anon_1: ImGuiStoragePair__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiStoragePair__bindgen_ty_1 { + pub val_i: cty::c_int, + pub val_f: f32, + pub val_p: *mut cty::c_void, +} +impl Default for ImGuiStoragePair__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiStoragePair__bindgen_ty_1 {{ union }}") + } +} +impl Default for ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!( + f, + "ImGuiStoragePair {{ key: {:?}, __bindgen_anon_1: {:?} }}", + self.key, self.__bindgen_anon_1 + ) + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStoragePair { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStoragePair, +} +impl Default for ImVector_ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStorage { + pub Data: ImVector_ImGuiStoragePair, +} +impl Default for ImGuiStorage { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiListClipper { + pub DisplayStart: cty::c_int, + pub DisplayEnd: cty::c_int, + pub ItemsCount: cty::c_int, + pub ItemsHeight: f32, + pub StartPosY: f32, + pub TempData: *mut cty::c_void, +} +impl Default for ImGuiListClipper { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImColor { + pub Value: ImVec4, +} +pub type ImDrawCallback = ::core::option::Option< + unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmd { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, + pub IdxOffset: cty::c_uint, + pub ElemCount: cty::c_uint, + pub UserCallback: ImDrawCallback, + pub UserCallbackData: *mut cty::c_void, +} +impl Default for ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImDrawVert { + pub pos: ImVec2, + pub uv: ImVec2, + pub col: ImU32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmdHeader { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, +} +impl Default for ImDrawCmdHeader { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawCmd { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawCmd, +} +impl Default for ImVector_ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawIdx { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawIdx, +} +impl Default for ImVector_ImDrawIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawChannel { + pub _CmdBuffer: ImVector_ImDrawCmd, + pub _IdxBuffer: ImVector_ImDrawIdx, +} +impl Default for ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawChannel { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawChannel, +} +impl Default for ImVector_ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawListSplitter { + pub _Current: cty::c_int, + pub _Count: cty::c_int, + pub _Channels: ImVector_ImDrawChannel, +} +impl Default for ImDrawListSplitter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImDrawFlags_None: ImDrawFlags_ = 0; +pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; +pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; +pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; +pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; +pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; +pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; +pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; +pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; +pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; +pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; +pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; +pub type ImDrawFlags_ = cty::c_uint; +pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; +pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; +pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; +pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; +pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; +pub type ImDrawListFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawVert { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawVert, +} +impl Default for ImVector_ImDrawVert { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec4 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec4, +} +impl Default for ImVector_ImVec4 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImTextureID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImTextureID, +} +impl Default for ImVector_ImTextureID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec2 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec2, +} +impl Default for ImVector_ImVec2 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawList { + pub CmdBuffer: ImVector_ImDrawCmd, + pub IdxBuffer: ImVector_ImDrawIdx, + pub VtxBuffer: ImVector_ImDrawVert, + pub Flags: ImDrawListFlags, + pub _VtxCurrentIdx: cty::c_uint, + pub _Data: *mut ImDrawListSharedData, + pub _OwnerName: *const cty::c_char, + pub _VtxWritePtr: *mut ImDrawVert, + pub _IdxWritePtr: *mut ImDrawIdx, + pub _ClipRectStack: ImVector_ImVec4, + pub _TextureIdStack: ImVector_ImTextureID, + pub _Path: ImVector_ImVec2, + pub _CmdHeader: ImDrawCmdHeader, + pub _Splitter: ImDrawListSplitter, + pub _FringeScale: f32, +} +impl Default for ImDrawList { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawData { + pub Valid: bool, + pub CmdListsCount: cty::c_int, + pub TotalIdxCount: cty::c_int, + pub TotalVtxCount: cty::c_int, + pub CmdLists: *mut *mut ImDrawList, + pub DisplayPos: ImVec2, + pub DisplaySize: ImVec2, + pub FramebufferScale: ImVec2, +} +impl Default for ImDrawData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontConfig { + pub FontData: *mut cty::c_void, + pub FontDataSize: cty::c_int, + pub FontDataOwnedByAtlas: bool, + pub FontNo: cty::c_int, + pub SizePixels: f32, + pub OversampleH: cty::c_int, + pub OversampleV: cty::c_int, + pub PixelSnapH: bool, + pub GlyphExtraSpacing: ImVec2, + pub GlyphOffset: ImVec2, + pub GlyphRanges: *const ImWchar, + pub GlyphMinAdvanceX: f32, + pub GlyphMaxAdvanceX: f32, + pub MergeMode: bool, + pub FontBuilderFlags: cty::c_uint, + pub RasterizerMultiply: f32, + pub EllipsisChar: ImWchar, + pub Name: [cty::c_char; 40usize], + pub DstFont: *mut ImFont, +} +impl Default for ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImFontGlyph { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + 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, +} +impl ImFontGlyph { + #[inline] + pub fn Colored(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Colored(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Visible(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_Visible(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Codepoint(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Codepoint(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Colored: cty::c_uint, + Visible: cty::c_uint, + Codepoint: cty::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Colored: u32 = unsafe { ::core::mem::transmute(Colored) }; + Colored as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Visible: u32 = unsafe { ::core::mem::transmute(Visible) }; + Visible as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Codepoint: u32 = unsafe { ::core::mem::transmute(Codepoint) }; + Codepoint as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImU32 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImU32, +} +impl Default for ImVector_ImU32 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImFontGlyphRangesBuilder { + pub UsedChars: ImVector_ImU32, +} +impl Default for ImFontGlyphRangesBuilder { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlasCustomRect { + pub Width: cty::c_ushort, + pub Height: cty::c_ushort, + pub X: cty::c_ushort, + pub Y: cty::c_ushort, + pub GlyphID: cty::c_uint, + pub GlyphAdvanceX: f32, + pub GlyphOffset: ImVec2, + pub Font: *mut ImFont, +} +impl Default for ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 type ImFontAtlasFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImFont, +} +impl Default for ImVector_ImFontPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontAtlasCustomRect { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontAtlasCustomRect, +} +impl Default for ImVector_ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontConfig { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontConfig, +} +impl Default for ImVector_ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlas { + pub Flags: ImFontAtlasFlags, + pub TexID: ImTextureID, + pub TexDesiredWidth: cty::c_int, + pub TexGlyphPadding: cty::c_int, + pub Locked: bool, + pub TexReady: bool, + pub TexPixelsUseColors: bool, + pub TexPixelsAlpha8: *mut cty::c_uchar, + pub TexPixelsRGBA32: *mut cty::c_uint, + pub TexWidth: cty::c_int, + pub TexHeight: cty::c_int, + pub TexUvScale: ImVec2, + pub TexUvWhitePixel: ImVec2, + pub Fonts: ImVector_ImFontPtr, + pub CustomRects: ImVector_ImFontAtlasCustomRect, + pub ConfigData: ImVector_ImFontConfig, + pub TexUvLines: [ImVec4; 64usize], + pub FontBuilderIO: *const ImFontBuilderIO, + pub FontBuilderFlags: cty::c_uint, + pub PackIdMouseCursors: cty::c_int, + pub PackIdLines: cty::c_int, +} +impl Default for ImFontAtlas { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_float { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut f32, +} +impl Default for ImVector_float { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontGlyph { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontGlyph, +} +impl Default for ImVector_ImFontGlyph { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFont { + pub IndexAdvanceX: ImVector_float, + pub FallbackAdvanceX: f32, + pub FontSize: f32, + pub IndexLookup: ImVector_ImWchar, + pub Glyphs: ImVector_ImFontGlyph, + pub FallbackGlyph: *const ImFontGlyph, + pub ContainerAtlas: *mut ImFontAtlas, + pub ConfigData: *const ImFontConfig, + pub ConfigDataCount: cty::c_short, + pub FallbackChar: ImWchar, + pub EllipsisChar: ImWchar, + pub DotChar: ImWchar, + pub DirtyLookupTables: bool, + pub Scale: f32, + pub Ascent: f32, + pub Descent: f32, + pub MetricsTotalSurface: cty::c_int, + pub Used4kPagesMap: [ImU8; 34usize], +} +impl Default for ImFont { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 type ImGuiViewportFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiViewport { + pub Flags: ImGuiViewportFlags, + pub Pos: ImVec2, + pub Size: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub PlatformHandleRaw: *mut cty::c_void, +} +impl Default for ImGuiViewport { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformImeData { + pub WantVisible: bool, + pub InputPos: ImVec2, + pub InputLineHeight: f32, +} +pub const ImGuiFreeTypeBuilderFlags_NoHinting: ImGuiFreeTypeBuilderFlags = 1; +pub const ImGuiFreeTypeBuilderFlags_NoAutoHint: ImGuiFreeTypeBuilderFlags = 2; +pub const ImGuiFreeTypeBuilderFlags_ForceAutoHint: ImGuiFreeTypeBuilderFlags = 4; +pub const ImGuiFreeTypeBuilderFlags_LightHinting: ImGuiFreeTypeBuilderFlags = 8; +pub const ImGuiFreeTypeBuilderFlags_MonoHinting: ImGuiFreeTypeBuilderFlags = 16; +pub const ImGuiFreeTypeBuilderFlags_Bold: ImGuiFreeTypeBuilderFlags = 32; +pub const ImGuiFreeTypeBuilderFlags_Oblique: ImGuiFreeTypeBuilderFlags = 64; +pub const ImGuiFreeTypeBuilderFlags_Monochrome: ImGuiFreeTypeBuilderFlags = 128; +pub const ImGuiFreeTypeBuilderFlags_LoadColor: ImGuiFreeTypeBuilderFlags = 256; +pub const ImGuiFreeTypeBuilderFlags_Bitmap: ImGuiFreeTypeBuilderFlags = 512; +pub type ImGuiFreeTypeBuilderFlags = cty::c_uint; +extern "C" { + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; +} +extern "C" { + pub fn ImVec2_destroy(self_: *mut ImVec2); +} +extern "C" { + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; +} +extern "C" { + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; +} +extern "C" { + pub fn ImVec4_destroy(self_: *mut ImVec4); +} +extern "C" { + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; +} +extern "C" { + pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; +} +extern "C" { + pub fn igDestroyContext(ctx: *mut ImGuiContext); +} +extern "C" { + pub fn igGetCurrentContext() -> *mut ImGuiContext; +} +extern "C" { + pub fn igSetCurrentContext(ctx: *mut ImGuiContext); +} +extern "C" { + pub fn igGetIO() -> *mut ImGuiIO; +} +extern "C" { + pub fn igGetStyle() -> *mut ImGuiStyle; +} +extern "C" { + pub fn igNewFrame(); +} +extern "C" { + pub fn igEndFrame(); +} +extern "C" { + pub fn igRender(); +} +extern "C" { + pub fn igGetDrawData() -> *mut ImDrawData; +} +extern "C" { + pub fn igShowDemoWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowMetricsWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowStackToolWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowAboutWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowStyleEditor(ref_: *mut ImGuiStyle); +} +extern "C" { + pub fn igShowStyleSelector(label: *const cty::c_char) -> bool; +} +extern "C" { + pub fn igShowFontSelector(label: *const cty::c_char); +} +extern "C" { + pub fn igShowUserGuide(); +} +extern "C" { + pub fn igGetVersion() -> *const cty::c_char; +} +extern "C" { + pub fn igStyleColorsDark(dst: *mut ImGuiStyle); +} +extern "C" { + pub fn igStyleColorsLight(dst: *mut ImGuiStyle); +} +extern "C" { + pub fn igStyleColorsClassic(dst: *mut ImGuiStyle); +} +extern "C" { + pub fn igBegin(name: *const cty::c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool; +} +extern "C" { + pub fn igEnd(); +} +extern "C" { + pub fn igBeginChild_Str( + str_id: *const cty::c_char, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +extern "C" { + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +extern "C" { + pub fn igEndChild(); +} +extern "C" { + pub fn igIsWindowAppearing() -> bool; +} +extern "C" { + pub fn igIsWindowCollapsed() -> bool; +} +extern "C" { + pub fn igIsWindowFocused(flags: ImGuiFocusedFlags) -> bool; +} +extern "C" { + pub fn igIsWindowHovered(flags: ImGuiHoveredFlags) -> bool; +} +extern "C" { + pub fn igGetWindowDrawList() -> *mut ImDrawList; +} +extern "C" { + pub fn igGetWindowPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowSize(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowWidth() -> f32; +} +extern "C" { + pub fn igGetWindowHeight() -> f32; +} +extern "C" { + pub fn igSetNextWindowPos(pos: ImVec2, cond: ImGuiCond, pivot: ImVec2); +} +extern "C" { + pub fn igSetNextWindowSize(size: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetNextWindowSizeConstraints( + size_min: ImVec2, + size_max: ImVec2, + custom_callback: ImGuiSizeCallback, + custom_callback_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn igSetNextWindowContentSize(size: ImVec2); +} +extern "C" { + pub fn igSetNextWindowCollapsed(collapsed: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSetNextWindowFocus(); +} +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} +extern "C" { + pub fn igSetNextWindowBgAlpha(alpha: f32); +} +extern "C" { + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowFocus_Nil(); +} +extern "C" { + pub fn igSetWindowFontScale(scale: f32); +} +extern "C" { + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowFocus_Str(name: *const cty::c_char); +} +extern "C" { + pub fn igGetContentRegionAvail(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetContentRegionMax(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowContentRegionMin(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowContentRegionMax(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetScrollX() -> f32; +} +extern "C" { + pub fn igGetScrollY() -> f32; +} +extern "C" { + pub fn igSetScrollX(scroll_x: f32); +} +extern "C" { + pub fn igSetScrollY(scroll_y: f32); +} +extern "C" { + pub fn igGetScrollMaxX() -> f32; +} +extern "C" { + pub fn igGetScrollMaxY() -> f32; +} +extern "C" { + pub fn igSetScrollHereX(center_x_ratio: f32); +} +extern "C" { + pub fn igSetScrollHereY(center_y_ratio: f32); +} +extern "C" { + pub fn igSetScrollFromPosX(local_x: f32, center_x_ratio: f32); +} +extern "C" { + pub fn igSetScrollFromPosY(local_y: f32, center_y_ratio: f32); +} +extern "C" { + pub fn igPushFont(font: *mut ImFont); +} +extern "C" { + pub fn igPopFont(); +} +extern "C" { + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); +} +extern "C" { + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); +} +extern "C" { + pub fn igPopStyleColor(count: cty::c_int); +} +extern "C" { + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); +} +extern "C" { + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); +} +extern "C" { + pub fn igPopStyleVar(count: cty::c_int); +} +extern "C" { + pub fn igPushAllowKeyboardFocus(allow_keyboard_focus: bool); +} +extern "C" { + pub fn igPopAllowKeyboardFocus(); +} +extern "C" { + pub fn igPushButtonRepeat(repeat: bool); +} +extern "C" { + pub fn igPopButtonRepeat(); +} +extern "C" { + pub fn igPushItemWidth(item_width: f32); +} +extern "C" { + pub fn igPopItemWidth(); +} +extern "C" { + pub fn igSetNextItemWidth(item_width: f32); +} +extern "C" { + pub fn igCalcItemWidth() -> f32; +} +extern "C" { + pub fn igPushTextWrapPos(wrap_local_pos_x: f32); +} +extern "C" { + pub fn igPopTextWrapPos(); +} +extern "C" { + pub fn igGetFont() -> *mut ImFont; +} +extern "C" { + pub fn igGetFontSize() -> f32; +} +extern "C" { + pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; +} +extern "C" { + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; +} +extern "C" { + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; +} +extern "C" { + pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; +} +extern "C" { + pub fn igSeparator(); +} +extern "C" { + pub fn igSameLine(offset_from_start_x: f32, spacing: f32); +} +extern "C" { + pub fn igNewLine(); +} +extern "C" { + pub fn igSpacing(); +} +extern "C" { + pub fn igDummy(size: ImVec2); +} +extern "C" { + pub fn igIndent(indent_w: f32); +} +extern "C" { + pub fn igUnindent(indent_w: f32); +} +extern "C" { + pub fn igBeginGroup(); +} +extern "C" { + pub fn igEndGroup(); +} +extern "C" { + pub fn igGetCursorPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetCursorPosX() -> f32; +} +extern "C" { + pub fn igGetCursorPosY() -> f32; +} +extern "C" { + pub fn igSetCursorPos(local_pos: ImVec2); +} +extern "C" { + pub fn igSetCursorPosX(local_x: f32); +} +extern "C" { + pub fn igSetCursorPosY(local_y: f32); +} +extern "C" { + pub fn igGetCursorStartPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetCursorScreenPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igSetCursorScreenPos(pos: ImVec2); +} +extern "C" { + pub fn igAlignTextToFramePadding(); +} +extern "C" { + pub fn igGetTextLineHeight() -> f32; +} +extern "C" { + pub fn igGetTextLineHeightWithSpacing() -> f32; +} +extern "C" { + pub fn igGetFrameHeight() -> f32; +} +extern "C" { + pub fn igGetFrameHeightWithSpacing() -> f32; +} +extern "C" { + pub fn igPushID_Str(str_id: *const cty::c_char); +} +extern "C" { + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); +} +extern "C" { + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); +} +extern "C" { + pub fn igPushID_Int(int_id: cty::c_int); +} +extern "C" { + pub fn igPopID(); +} +extern "C" { + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; +} +extern "C" { + pub fn igGetID_StrStr( + str_id_begin: *const cty::c_char, + str_id_end: *const cty::c_char, + ) -> ImGuiID; +} +extern "C" { + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; +} +extern "C" { + pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); +} +extern "C" { + pub fn igText(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igTextColored(col: ImVec4, fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igTextDisabled(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igTextWrapped(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igLabelText(label: *const cty::c_char, fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igBulletText(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igButton(label: *const cty::c_char, size: ImVec2) -> bool; +} +extern "C" { + pub fn igSmallButton(label: *const cty::c_char) -> bool; +} +extern "C" { + pub fn igInvisibleButton( + str_id: *const cty::c_char, + size: ImVec2, + flags: ImGuiButtonFlags, + ) -> bool; +} +extern "C" { + pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; +} +extern "C" { + pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; +} +extern "C" { + pub fn igCheckboxFlags_IntPtr( + label: *const cty::c_char, + flags: *mut cty::c_int, + flags_value: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igCheckboxFlags_UintPtr( + label: *const cty::c_char, + flags: *mut cty::c_uint, + flags_value: cty::c_uint, + ) -> bool; +} +extern "C" { + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; +} +extern "C" { + pub fn igRadioButton_IntPtr( + label: *const cty::c_char, + v: *mut cty::c_int, + v_button: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const cty::c_char); +} +extern "C" { + pub fn igBullet(); +} +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} +extern "C" { + pub fn igBeginCombo( + label: *const cty::c_char, + preview_value: *const cty::c_char, + flags: ImGuiComboFlags, + ) -> bool; +} +extern "C" { + pub fn igEndCombo(); +} +extern "C" { + pub fn igCombo_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igCombo_Str( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_separated_by_zeros: *const cty::c_char, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igCombo_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igDragFloat( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloat2( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloat3( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloat4( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloatRange2( + label: *const cty::c_char, + v_current_min: *mut f32, + v_current_max: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragIntRange2( + label: *const cty::c_char, + v_current_min: *mut cty::c_int, + v_current_max: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat2( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat3( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat4( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderAngle( + label: *const cty::c_char, + v_rad: *mut f32, + v_degrees_min: f32, + v_degrees_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igVSliderFloat( + label: *const cty::c_char, + size: ImVec2, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igVSliderInt( + label: *const cty::c_char, + size: ImVec2, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igVSliderScalar( + label: *const cty::c_char, + size: ImVec2, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igInputText( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +extern "C" { + pub fn igInputTextMultiline( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + size: ImVec2, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +extern "C" { + pub fn igInputTextWithHint( + label: *const cty::c_char, + hint: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +extern "C" { + pub fn igInputFloat( + label: *const cty::c_char, + v: *mut f32, + step: f32, + step_fast: f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputFloat2( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputFloat3( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputFloat4( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt( + label: *const cty::c_char, + v: *mut cty::c_int, + step: cty::c_int, + step_fast: cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputDouble( + label: *const cty::c_char, + v: *mut f64, + step: f64, + step_fast: f64, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igColorEdit3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +extern "C" { + pub fn igColorEdit4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +extern "C" { + pub fn igColorPicker3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +extern "C" { + pub fn igColorPicker4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ref_col: *const f32, + ) -> bool; +} +extern "C" { + pub fn igColorButton( + desc_id: *const cty::c_char, + col: ImVec4, + flags: ImGuiColorEditFlags, + size: ImVec2, + ) -> bool; +} +extern "C" { + pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); +} +extern "C" { + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; +} +extern "C" { + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; +} +extern "C" { + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; +} +extern "C" { + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; +} +extern "C" { + pub fn igTreeNodeEx_StrStr( + str_id: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +extern "C" { + pub fn igTreeNodeEx_Ptr( + ptr_id: *const cty::c_void, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +extern "C" { + pub fn igTreePush_Str(str_id: *const cty::c_char); +} +extern "C" { + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); +} +extern "C" { + pub fn igTreePop(); +} +extern "C" { + pub fn igGetTreeNodeToLabelSpacing() -> f32; +} +extern "C" { + pub fn igCollapsingHeader_TreeNodeFlags( + label: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +extern "C" { + pub fn igCollapsingHeader_BoolPtr( + label: *const cty::c_char, + p_visible: *mut bool, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +extern "C" { + pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSelectable_Bool( + label: *const cty::c_char, + selected: bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +extern "C" { + pub fn igSelectable_BoolPtr( + label: *const cty::c_char, + p_selected: *mut bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +extern "C" { + pub fn igBeginListBox(label: *const cty::c_char, size: ImVec2) -> bool; +} +extern "C" { + pub fn igEndListBox(); +} +extern "C" { + pub fn igListBox_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igListBox_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igPlotLines_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +extern "C" { + pub fn igPlotLines_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +extern "C" { + pub fn igPlotHistogram_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +extern "C" { + pub fn igPlotHistogram_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +extern "C" { + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); +} +extern "C" { + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); +} +extern "C" { + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); +} +extern "C" { + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); +} +extern "C" { + pub fn igBeginMenuBar() -> bool; +} +extern "C" { + pub fn igEndMenuBar(); +} +extern "C" { + pub fn igBeginMainMenuBar() -> bool; +} +extern "C" { + pub fn igEndMainMenuBar(); +} +extern "C" { + pub fn igBeginMenu(label: *const cty::c_char, enabled: bool) -> bool; +} +extern "C" { + pub fn igEndMenu(); +} +extern "C" { + pub fn igMenuItem_Bool( + label: *const cty::c_char, + shortcut: *const cty::c_char, + selected: bool, + enabled: bool, + ) -> bool; +} +extern "C" { + pub fn igMenuItem_BoolPtr( + label: *const cty::c_char, + shortcut: *const cty::c_char, + p_selected: *mut bool, + enabled: bool, + ) -> bool; +} +extern "C" { + pub fn igBeginTooltip(); +} +extern "C" { + pub fn igEndTooltip(); +} +extern "C" { + pub fn igSetTooltip(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igBeginPopup(str_id: *const cty::c_char, flags: ImGuiWindowFlags) -> bool; +} +extern "C" { + pub fn igBeginPopupModal( + name: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +extern "C" { + pub fn igEndPopup(); +} +extern "C" { + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +extern "C" { + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); +} +extern "C" { + pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +extern "C" { + pub fn igCloseCurrentPopup(); +} +extern "C" { + pub fn igBeginPopupContextItem( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +extern "C" { + pub fn igBeginPopupContextWindow( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +extern "C" { + pub fn igBeginPopupContextVoid( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +extern "C" { + pub fn igIsPopupOpen(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; +} +extern "C" { + pub fn igBeginTable( + str_id: *const cty::c_char, + column: cty::c_int, + flags: ImGuiTableFlags, + outer_size: ImVec2, + inner_width: f32, + ) -> bool; +} +extern "C" { + pub fn igEndTable(); +} +extern "C" { + pub fn igTableNextRow(row_flags: ImGuiTableRowFlags, min_row_height: f32); +} +extern "C" { + pub fn igTableNextColumn() -> bool; +} +extern "C" { + pub fn igTableSetColumnIndex(column_n: cty::c_int) -> bool; +} +extern "C" { + pub fn igTableSetupColumn( + label: *const cty::c_char, + flags: ImGuiTableColumnFlags, + init_width_or_weight: f32, + user_id: ImGuiID, + ); +} +extern "C" { + pub fn igTableSetupScrollFreeze(cols: cty::c_int, rows: cty::c_int); +} +extern "C" { + pub fn igTableHeadersRow(); +} +extern "C" { + pub fn igTableHeader(label: *const cty::c_char); +} +extern "C" { + pub fn igTableGetSortSpecs() -> *mut ImGuiTableSortSpecs; +} +extern "C" { + pub fn igTableGetColumnCount() -> cty::c_int; +} +extern "C" { + pub fn igTableGetColumnIndex() -> cty::c_int; +} +extern "C" { + pub fn igTableGetRowIndex() -> cty::c_int; +} +extern "C" { + pub fn igTableGetColumnName(column_n: cty::c_int) -> *const cty::c_char; +} +extern "C" { + pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; +} +extern "C" { + pub fn igTableSetColumnEnabled(column_n: cty::c_int, v: bool); +} +extern "C" { + pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: cty::c_int); +} +extern "C" { + pub fn igColumns(count: cty::c_int, id: *const cty::c_char, border: bool); +} +extern "C" { + pub fn igNextColumn(); +} +extern "C" { + pub fn igGetColumnIndex() -> cty::c_int; +} +extern "C" { + pub fn igGetColumnWidth(column_index: cty::c_int) -> f32; +} +extern "C" { + pub fn igSetColumnWidth(column_index: cty::c_int, width: f32); +} +extern "C" { + pub fn igGetColumnOffset(column_index: cty::c_int) -> f32; +} +extern "C" { + pub fn igSetColumnOffset(column_index: cty::c_int, offset_x: f32); +} +extern "C" { + pub fn igGetColumnsCount() -> cty::c_int; +} +extern "C" { + pub fn igBeginTabBar(str_id: *const cty::c_char, flags: ImGuiTabBarFlags) -> bool; +} +extern "C" { + pub fn igEndTabBar(); +} +extern "C" { + pub fn igBeginTabItem( + label: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiTabItemFlags, + ) -> bool; +} +extern "C" { + pub fn igEndTabItem(); +} +extern "C" { + pub fn igTabItemButton(label: *const cty::c_char, flags: ImGuiTabItemFlags) -> bool; +} +extern "C" { + pub fn igSetTabItemClosed(tab_or_docked_window_label: *const cty::c_char); +} +extern "C" { + pub fn igLogToTTY(auto_open_depth: cty::c_int); +} +extern "C" { + pub fn igLogToFile(auto_open_depth: cty::c_int, filename: *const cty::c_char); +} +extern "C" { + pub fn igLogToClipboard(auto_open_depth: cty::c_int); +} +extern "C" { + pub fn igLogFinish(); +} +extern "C" { + pub fn igLogButtons(); +} +extern "C" { + pub fn igBeginDragDropSource(flags: ImGuiDragDropFlags) -> bool; +} +extern "C" { + pub fn igSetDragDropPayload( + type_: *const cty::c_char, + data: *const cty::c_void, + sz: usize, + cond: ImGuiCond, + ) -> bool; +} +extern "C" { + pub fn igEndDragDropSource(); +} +extern "C" { + pub fn igBeginDragDropTarget() -> bool; +} +extern "C" { + pub fn igAcceptDragDropPayload( + type_: *const cty::c_char, + flags: ImGuiDragDropFlags, + ) -> *const ImGuiPayload; +} +extern "C" { + pub fn igEndDragDropTarget(); +} +extern "C" { + pub fn igGetDragDropPayload() -> *const ImGuiPayload; +} +extern "C" { + pub fn igBeginDisabled(disabled: bool); +} +extern "C" { + pub fn igEndDisabled(); +} +extern "C" { + pub fn igPushClipRect( + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +extern "C" { + pub fn igPopClipRect(); +} +extern "C" { + pub fn igSetItemDefaultFocus(); +} +extern "C" { + pub fn igSetKeyboardFocusHere(offset: cty::c_int); +} +extern "C" { + pub fn igIsItemHovered(flags: ImGuiHoveredFlags) -> bool; +} +extern "C" { + pub fn igIsItemActive() -> bool; +} +extern "C" { + pub fn igIsItemFocused() -> bool; +} +extern "C" { + pub fn igIsItemClicked(mouse_button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igIsItemVisible() -> bool; +} +extern "C" { + pub fn igIsItemEdited() -> bool; +} +extern "C" { + pub fn igIsItemActivated() -> bool; +} +extern "C" { + pub fn igIsItemDeactivated() -> bool; +} +extern "C" { + pub fn igIsItemDeactivatedAfterEdit() -> bool; +} +extern "C" { + pub fn igIsItemToggledOpen() -> bool; +} +extern "C" { + pub fn igIsAnyItemHovered() -> bool; +} +extern "C" { + pub fn igIsAnyItemActive() -> bool; +} +extern "C" { + pub fn igIsAnyItemFocused() -> bool; +} +extern "C" { + pub fn igGetItemRectMin(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetItemRectMax(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetItemRectSize(pOut: *mut ImVec2); +} +extern "C" { + pub fn igSetItemAllowOverlap(); +} +extern "C" { + pub fn igGetMainViewport() -> *mut ImGuiViewport; +} +extern "C" { + pub fn igGetBackgroundDrawList() -> *mut ImDrawList; +} +extern "C" { + pub fn igGetForegroundDrawList() -> *mut ImDrawList; +} +extern "C" { + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; +} +extern "C" { + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; +} +extern "C" { + pub fn igGetTime() -> f64; +} +extern "C" { + pub fn igGetFrameCount() -> cty::c_int; +} +extern "C" { + pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; +} +extern "C" { + pub fn igGetStyleColorName(idx: ImGuiCol) -> *const cty::c_char; +} +extern "C" { + pub fn igSetStateStorage(storage: *mut ImGuiStorage); +} +extern "C" { + pub fn igGetStateStorage() -> *mut ImGuiStorage; +} +extern "C" { + pub fn igBeginChildFrame(id: ImGuiID, size: ImVec2, flags: ImGuiWindowFlags) -> bool; +} +extern "C" { + pub fn igEndChildFrame(); +} +extern "C" { + pub fn igCalcTextSize( + pOut: *mut ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + hide_text_after_double_hash: bool, + wrap_width: f32, + ); +} +extern "C" { + pub fn igColorConvertU32ToFloat4(pOut: *mut ImVec4, in_: ImU32); +} +extern "C" { + pub fn igColorConvertFloat4ToU32(in_: ImVec4) -> ImU32; +} +extern "C" { + pub fn igColorConvertRGBtoHSV( + r: f32, + g: f32, + b: f32, + out_h: *mut f32, + out_s: *mut f32, + out_v: *mut f32, + ); +} +extern "C" { + pub fn igColorConvertHSVtoRGB( + h: f32, + s: f32, + v: f32, + out_r: *mut f32, + out_g: *mut f32, + out_b: *mut f32, + ); +} +extern "C" { + pub fn igIsKeyDown(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igIsKeyPressed(key: ImGuiKey, repeat: bool) -> bool; +} +extern "C" { + pub fn igIsKeyReleased(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; +} +extern "C" { + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; +} +extern "C" { + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); +} +extern "C" { + pub fn igIsMouseDown(button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igIsMouseClicked(button: ImGuiMouseButton, repeat: bool) -> bool; +} +extern "C" { + pub fn igIsMouseReleased(button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> cty::c_int; +} +extern "C" { + pub fn igIsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool; +} +extern "C" { + pub fn igIsMousePosValid(mouse_pos: *const ImVec2) -> bool; +} +extern "C" { + pub fn igIsAnyMouseDown() -> bool; +} +extern "C" { + pub fn igGetMousePos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetMousePosOnOpeningCurrentPopup(pOut: *mut ImVec2); +} +extern "C" { + pub fn igIsMouseDragging(button: ImGuiMouseButton, lock_threshold: f32) -> bool; +} +extern "C" { + pub fn igGetMouseDragDelta(pOut: *mut ImVec2, button: ImGuiMouseButton, lock_threshold: f32); +} +extern "C" { + pub fn igResetMouseDragDelta(button: ImGuiMouseButton); +} +extern "C" { + pub fn igGetMouseCursor() -> ImGuiMouseCursor; +} +extern "C" { + pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); +} +extern "C" { + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); +} +extern "C" { + pub fn igGetClipboardText() -> *const cty::c_char; +} +extern "C" { + pub fn igSetClipboardText(text: *const cty::c_char); +} +extern "C" { + pub fn igLoadIniSettingsFromDisk(ini_filename: *const cty::c_char); +} +extern "C" { + pub fn igLoadIniSettingsFromMemory(ini_data: *const cty::c_char, ini_size: usize); +} +extern "C" { + pub fn igSaveIniSettingsToDisk(ini_filename: *const cty::c_char); +} +extern "C" { + pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; +} +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} +extern "C" { + pub fn igDebugCheckVersionAndDataLayout( + version_str: *const cty::c_char, + sz_io: usize, + sz_style: usize, + sz_vec2: usize, + sz_vec4: usize, + sz_drawvert: usize, + sz_drawidx: usize, + ) -> bool; +} +extern "C" { + pub fn igSetAllocatorFunctions( + alloc_func: ImGuiMemAllocFunc, + free_func: ImGuiMemFreeFunc, + user_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn igGetAllocatorFunctions( + p_alloc_func: *mut ImGuiMemAllocFunc, + p_free_func: *mut ImGuiMemFreeFunc, + p_user_data: *mut *mut cty::c_void, + ); +} +extern "C" { + pub fn igMemAlloc(size: usize) -> *mut cty::c_void; +} +extern "C" { + pub fn igMemFree(ptr: *mut cty::c_void); +} +extern "C" { + pub fn ImGuiStyle_ImGuiStyle() -> *mut ImGuiStyle; +} +extern "C" { + pub fn ImGuiStyle_destroy(self_: *mut ImGuiStyle); +} +extern "C" { + pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); +} +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} +extern "C" { + pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); +} +extern "C" { + pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16); +} +extern "C" { + pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); +} +extern "C" { + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); +} +extern "C" { + pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); +} +extern "C" { + pub fn ImGuiIO_ClearInputKeys(self_: *mut ImGuiIO); +} +extern "C" { + pub fn ImGuiIO_ImGuiIO() -> *mut ImGuiIO; +} +extern "C" { + pub fn ImGuiIO_destroy(self_: *mut ImGuiIO); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_ImGuiInputTextCallbackData() -> *mut ImGuiInputTextCallbackData; +} +extern "C" { + pub fn ImGuiInputTextCallbackData_destroy(self_: *mut ImGuiInputTextCallbackData); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_DeleteChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + bytes_count: cty::c_int, + ); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_InsertChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_SelectAll(self_: *mut ImGuiInputTextCallbackData); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_ClearSelection(self_: *mut ImGuiInputTextCallbackData); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_HasSelection(self_: *mut ImGuiInputTextCallbackData) -> bool; +} +extern "C" { + pub fn ImGuiPayload_ImGuiPayload() -> *mut ImGuiPayload; +} +extern "C" { + pub fn ImGuiPayload_destroy(self_: *mut ImGuiPayload); +} +extern "C" { + pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload); +} +extern "C" { + pub fn ImGuiPayload_IsDataType(self_: *mut ImGuiPayload, type_: *const cty::c_char) -> bool; +} +extern "C" { + pub fn ImGuiPayload_IsPreview(self_: *mut ImGuiPayload) -> bool; +} +extern "C" { + pub fn ImGuiPayload_IsDelivery(self_: *mut ImGuiPayload) -> bool; +} +extern "C" { + pub fn ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs() -> *mut ImGuiTableColumnSortSpecs; +} +extern "C" { + pub fn ImGuiTableColumnSortSpecs_destroy(self_: *mut ImGuiTableColumnSortSpecs); +} +extern "C" { + pub fn ImGuiTableSortSpecs_ImGuiTableSortSpecs() -> *mut ImGuiTableSortSpecs; +} +extern "C" { + pub fn ImGuiTableSortSpecs_destroy(self_: *mut ImGuiTableSortSpecs); +} +extern "C" { + pub fn ImGuiOnceUponAFrame_ImGuiOnceUponAFrame() -> *mut ImGuiOnceUponAFrame; +} +extern "C" { + pub fn ImGuiOnceUponAFrame_destroy(self_: *mut ImGuiOnceUponAFrame); +} +extern "C" { + pub fn ImGuiTextFilter_ImGuiTextFilter( + default_filter: *const cty::c_char, + ) -> *mut ImGuiTextFilter; +} +extern "C" { + pub fn ImGuiTextFilter_destroy(self_: *mut ImGuiTextFilter); +} +extern "C" { + pub fn ImGuiTextFilter_Draw( + self_: *mut ImGuiTextFilter, + label: *const cty::c_char, + width: f32, + ) -> bool; +} +extern "C" { + pub fn ImGuiTextFilter_PassFilter( + self_: *mut ImGuiTextFilter, + text: *const cty::c_char, + text_end: *const cty::c_char, + ) -> bool; +} +extern "C" { + pub fn ImGuiTextFilter_Build(self_: *mut ImGuiTextFilter); +} +extern "C" { + pub fn ImGuiTextFilter_Clear(self_: *mut ImGuiTextFilter); +} +extern "C" { + pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; +} +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; +} +extern "C" { + pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); +} +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Str( + _b: *const cty::c_char, + _e: *const cty::c_char, + ) -> *mut ImGuiTextRange; +} +extern "C" { + pub fn ImGuiTextRange_empty(self_: *mut ImGuiTextRange) -> bool; +} +extern "C" { + pub fn ImGuiTextRange_split( + self_: *mut ImGuiTextRange, + separator: cty::c_char, + out: *mut ImVector_ImGuiTextRange, + ); +} +extern "C" { + pub fn ImGuiTextBuffer_ImGuiTextBuffer() -> *mut ImGuiTextBuffer; +} +extern "C" { + pub fn ImGuiTextBuffer_destroy(self_: *mut ImGuiTextBuffer); +} +extern "C" { + pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> cty::c_int; +} +extern "C" { + pub fn ImGuiTextBuffer_empty(self_: *mut ImGuiTextBuffer) -> bool; +} +extern "C" { + pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer); +} +extern "C" { + pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: cty::c_int); +} +extern "C" { + pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextBuffer_append( + self_: *mut ImGuiTextBuffer, + str_: *const cty::c_char, + str_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( + _key: ImGuiID, + _val_i: cty::c_int, + ) -> *mut ImGuiStoragePair; +} +extern "C" { + pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); +} +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( + _key: ImGuiID, + _val_f: f32, + ) -> *mut ImGuiStoragePair; +} +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( + _key: ImGuiID, + _val_p: *mut cty::c_void, + ) -> *mut ImGuiStoragePair; +} +extern "C" { + pub fn ImGuiStorage_Clear(self_: *mut ImGuiStorage); +} +extern "C" { + pub fn ImGuiStorage_GetInt( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> cty::c_int; +} +extern "C" { + pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: cty::c_int); +} +extern "C" { + pub fn ImGuiStorage_GetBool(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> bool; +} +extern "C" { + pub fn ImGuiStorage_SetBool(self_: *mut ImGuiStorage, key: ImGuiID, val: bool); +} +extern "C" { + pub fn ImGuiStorage_GetFloat(self_: *mut ImGuiStorage, key: ImGuiID, default_val: f32) -> f32; +} +extern "C" { + pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32); +} +extern "C" { + pub fn ImGuiStorage_GetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut cty::c_void; +} +extern "C" { + pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut cty::c_void); +} +extern "C" { + pub fn ImGuiStorage_GetIntRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> *mut cty::c_int; +} +extern "C" { + pub fn ImGuiStorage_GetBoolRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: bool, + ) -> *mut bool; +} +extern "C" { + pub fn ImGuiStorage_GetFloatRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: f32, + ) -> *mut f32; +} +extern "C" { + pub fn ImGuiStorage_GetVoidPtrRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: *mut cty::c_void, + ) -> *mut *mut cty::c_void; +} +extern "C" { + pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: cty::c_int); +} +extern "C" { + pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage); +} +extern "C" { + pub fn ImGuiListClipper_ImGuiListClipper() -> *mut ImGuiListClipper; +} +extern "C" { + pub fn ImGuiListClipper_destroy(self_: *mut ImGuiListClipper); +} +extern "C" { + pub fn ImGuiListClipper_Begin( + self_: *mut ImGuiListClipper, + items_count: cty::c_int, + items_height: f32, + ); +} +extern "C" { + pub fn ImGuiListClipper_End(self_: *mut ImGuiListClipper); +} +extern "C" { + pub fn ImGuiListClipper_Step(self_: *mut ImGuiListClipper) -> bool; +} +extern "C" { + pub fn ImGuiListClipper_ForceDisplayRangeByIndices( + self_: *mut ImGuiListClipper, + item_min: cty::c_int, + item_max: cty::c_int, + ); +} +extern "C" { + pub fn ImColor_ImColor_Nil() -> *mut ImColor; +} +extern "C" { + pub fn ImColor_destroy(self_: *mut ImColor); +} +extern "C" { + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Int( + r: cty::c_int, + g: cty::c_int, + b: cty::c_int, + a: cty::c_int, + ) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +extern "C" { + pub fn ImColor_HSV(pOut: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +extern "C" { + pub fn ImDrawCmd_ImDrawCmd() -> *mut ImDrawCmd; +} +extern "C" { + pub fn ImDrawCmd_destroy(self_: *mut ImDrawCmd); +} +extern "C" { + pub fn ImDrawCmd_GetTexID(self_: *mut ImDrawCmd) -> ImTextureID; +} +extern "C" { + pub fn ImDrawListSplitter_ImDrawListSplitter() -> *mut ImDrawListSplitter; +} +extern "C" { + pub fn ImDrawListSplitter_destroy(self_: *mut ImDrawListSplitter); +} +extern "C" { + pub fn ImDrawListSplitter_Clear(self_: *mut ImDrawListSplitter); +} +extern "C" { + pub fn ImDrawListSplitter_ClearFreeMemory(self_: *mut ImDrawListSplitter); +} +extern "C" { + pub fn ImDrawListSplitter_Split( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + count: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawListSplitter_Merge(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawListSplitter_SetCurrentChannel( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + channel_idx: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; +} +extern "C" { + pub fn ImDrawList_destroy(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PushClipRect( + self_: *mut ImDrawList, + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +extern "C" { + pub fn ImDrawList_PushClipRectFullScreen(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PopClipRect(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PushTextureID(self_: *mut ImDrawList, texture_id: ImTextureID); +} +extern "C" { + pub fn ImDrawList_PopTextureID(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_GetClipRectMin(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_GetClipRectMax(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_AddLine( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + col: ImU32, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddRect( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddRectFilled( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +extern "C" { + 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, + ); +} +extern "C" { + pub fn ImDrawList_AddQuad( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddQuadFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddTriangle( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddTriangleFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddCircle( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddCircleFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddNgon( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddNgonFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddText_Vec2( + self_: *mut ImDrawList, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImDrawList_AddText_FontPtr( + self_: *mut ImDrawList, + font: *const ImFont, + font_size: f32, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip_rect: *const ImVec4, + ); +} +extern "C" { + pub fn ImDrawList_AddPolyline( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddConvexPolyFilled( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddBezierCubic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddBezierQuadratic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddImage( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddImageQuad( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + uv1: ImVec2, + uv2: ImVec2, + uv3: ImVec2, + uv4: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddImageRounded( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +extern "C" { + pub fn ImDrawList_PathClear(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PathLineTo(self_: *mut ImDrawList, pos: ImVec2); +} +extern "C" { + pub fn ImDrawList_PathLineToMergeDuplicate(self_: *mut ImDrawList, pos: ImVec2); +} +extern "C" { + pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32); +} +extern "C" { + pub fn ImDrawList_PathStroke( + self_: *mut ImDrawList, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_PathArcTo( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathArcToFast( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_of_12: cty::c_int, + a_max_of_12: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathBezierCubicCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathBezierQuadraticCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathRect( + self_: *mut ImDrawList, + rect_min: ImVec2, + rect_max: ImVec2, + rounding: f32, + flags: ImDrawFlags, + ); +} +extern "C" { + pub fn ImDrawList_AddCallback( + self_: *mut ImDrawList, + callback: ImDrawCallback, + callback_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn ImDrawList_AddDrawCmd(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_CloneOutput(self_: *mut ImDrawList) -> *mut ImDrawList; +} +extern "C" { + pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: cty::c_int); +} +extern "C" { + pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: cty::c_int); +} +extern "C" { + pub fn ImDrawList_PrimReserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PrimUnreserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PrimRect(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, col: ImU32); +} +extern "C" { + pub fn ImDrawList_PrimRectUV( + self_: *mut ImDrawList, + a: ImVec2, + b: ImVec2, + uv_a: ImVec2, + uv_b: ImVec2, + col: ImU32, + ); +} +extern "C" { + 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, + ); +} +extern "C" { + pub fn ImDrawList_PrimWriteVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +extern "C" { + pub fn ImDrawList_PrimWriteIdx(self_: *mut ImDrawList, idx: ImDrawIdx); +} +extern "C" { + pub fn ImDrawList_PrimVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +extern "C" { + pub fn ImDrawList__ResetForNewFrame(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__ClearFreeMemory(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__PopUnusedDrawCmd(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__TryMergeDrawCmds(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__OnChangedClipRect(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__OnChangedTextureID(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__CalcCircleAutoSegmentCount( + self_: *mut ImDrawList, + radius: f32, + ) -> cty::c_int; +} +extern "C" { + pub fn ImDrawList__PathArcToFastEx( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_sample: cty::c_int, + a_max_sample: cty::c_int, + a_step: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList__PathArcToN( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawData_ImDrawData() -> *mut ImDrawData; +} +extern "C" { + pub fn ImDrawData_destroy(self_: *mut ImDrawData); +} +extern "C" { + pub fn ImDrawData_Clear(self_: *mut ImDrawData); +} +extern "C" { + pub fn ImDrawData_DeIndexAllBuffers(self_: *mut ImDrawData); +} +extern "C" { + pub fn ImDrawData_ScaleClipRects(self_: *mut ImDrawData, fb_scale: ImVec2); +} +extern "C" { + pub fn ImFontConfig_ImFontConfig() -> *mut ImFontConfig; +} +extern "C" { + pub fn ImFontConfig_destroy(self_: *mut ImFontConfig); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder() -> *mut ImFontGlyphRangesBuilder; +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_destroy(self_: *mut ImFontGlyphRangesBuilder); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_Clear(self_: *mut ImFontGlyphRangesBuilder); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_GetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize) -> bool; +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_SetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddChar(self_: *mut ImFontGlyphRangesBuilder, c: ImWchar); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddText( + self_: *mut ImFontGlyphRangesBuilder, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddRanges( + self_: *mut ImFontGlyphRangesBuilder, + ranges: *const ImWchar, + ); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_BuildRanges( + self_: *mut ImFontGlyphRangesBuilder, + out_ranges: *mut ImVector_ImWchar, + ); +} +extern "C" { + pub fn ImFontAtlasCustomRect_ImFontAtlasCustomRect() -> *mut ImFontAtlasCustomRect; +} +extern "C" { + pub fn ImFontAtlasCustomRect_destroy(self_: *mut ImFontAtlasCustomRect); +} +extern "C" { + pub fn ImFontAtlasCustomRect_IsPacked(self_: *mut ImFontAtlasCustomRect) -> bool; +} +extern "C" { + pub fn ImFontAtlas_ImFontAtlas() -> *mut ImFontAtlas; +} +extern "C" { + pub fn ImFontAtlas_destroy(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_AddFont( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontDefault( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromFileTTF( + self_: *mut ImFontAtlas, + filename: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryTTF( + self_: *mut ImFontAtlas, + font_data: *mut cty::c_void, + font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF( + self_: *mut ImFontAtlas, + compressed_font_data: *const cty::c_void, + compressed_font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF( + self_: *mut ImFontAtlas, + compressed_font_data_base85: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_ClearInputData(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_ClearTexData(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_ClearFonts(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_Clear(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_Build(self_: *mut ImFontAtlas) -> bool; +} +extern "C" { + pub fn ImFontAtlas_GetTexDataAsAlpha8( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +extern "C" { + pub fn ImFontAtlas_GetTexDataAsRGBA32( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +extern "C" { + pub fn ImFontAtlas_IsBuilt(self_: *mut ImFontAtlas) -> bool; +} +extern "C" { + pub fn ImFontAtlas_SetTexID(self_: *mut ImFontAtlas, id: ImTextureID); +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesJapanese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseFull(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon( + self_: *mut ImFontAtlas, + ) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesCyrillic(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesThai(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesVietnamese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_AddCustomRectRegular( + self_: *mut ImFontAtlas, + width: cty::c_int, + height: cty::c_int, + ) -> cty::c_int; +} +extern "C" { + pub fn ImFontAtlas_AddCustomRectFontGlyph( + self_: *mut ImFontAtlas, + font: *mut ImFont, + id: ImWchar, + width: cty::c_int, + height: cty::c_int, + advance_x: f32, + offset: ImVec2, + ) -> cty::c_int; +} +extern "C" { + pub fn ImFontAtlas_GetCustomRectByIndex( + self_: *mut ImFontAtlas, + index: cty::c_int, + ) -> *mut ImFontAtlasCustomRect; +} +extern "C" { + pub fn ImFontAtlas_CalcCustomRectUV( + self_: *mut ImFontAtlas, + rect: *const ImFontAtlasCustomRect, + out_uv_min: *mut ImVec2, + out_uv_max: *mut ImVec2, + ); +} +extern "C" { + pub fn ImFontAtlas_GetMouseCursorTexData( + self_: *mut ImFontAtlas, + cursor: ImGuiMouseCursor, + out_offset: *mut ImVec2, + out_size: *mut ImVec2, + out_uv_border: *mut ImVec2, + out_uv_fill: *mut ImVec2, + ) -> bool; +} +extern "C" { + pub fn ImFont_ImFont() -> *mut ImFont; +} +extern "C" { + pub fn ImFont_destroy(self_: *mut ImFont); +} +extern "C" { + pub fn ImFont_FindGlyph(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +extern "C" { + pub fn ImFont_FindGlyphNoFallback(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +extern "C" { + pub fn ImFont_GetCharAdvance(self_: *mut ImFont, c: ImWchar) -> f32; +} +extern "C" { + pub fn ImFont_IsLoaded(self_: *mut ImFont) -> bool; +} +extern "C" { + pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const cty::c_char; +} +extern "C" { + pub fn ImFont_CalcTextSizeA( + pOut: *mut ImVec2, + self_: *mut ImFont, + size: f32, + max_width: f32, + wrap_width: f32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + remaining: *mut *const cty::c_char, + ); +} +extern "C" { + pub fn ImFont_CalcWordWrapPositionA( + self_: *mut ImFont, + scale: f32, + text: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + ) -> *const cty::c_char; +} +extern "C" { + pub fn ImFont_RenderChar( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + c: ImWchar, + ); +} +extern "C" { + pub fn ImFont_RenderText( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + clip_rect: ImVec4, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip: bool, + ); +} +extern "C" { + pub fn ImFont_BuildLookupTable(self_: *mut ImFont); +} +extern "C" { + pub fn ImFont_ClearOutputData(self_: *mut ImFont); +} +extern "C" { + pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: cty::c_int); +} +extern "C" { + pub fn ImFont_AddGlyph( + self_: *mut ImFont, + src_cfg: *const ImFontConfig, + c: ImWchar, + x0: f32, + y0: f32, + x1: f32, + y1: f32, + u0: f32, + v0: f32, + u1: f32, + v1: f32, + advance_x: f32, + ); +} +extern "C" { + pub fn ImFont_AddRemapChar(self_: *mut ImFont, dst: ImWchar, src: ImWchar, overwrite_dst: bool); +} +extern "C" { + pub fn ImFont_SetGlyphVisible(self_: *mut ImFont, c: ImWchar, visible: bool); +} +extern "C" { + pub fn ImFont_IsGlyphRangeUnused( + self_: *mut ImFont, + c_begin: cty::c_uint, + c_last: cty::c_uint, + ) -> bool; +} +extern "C" { + pub fn ImGuiViewport_ImGuiViewport() -> *mut ImGuiViewport; +} +extern "C" { + pub fn ImGuiViewport_destroy(self_: *mut ImGuiViewport); +} +extern "C" { + pub fn ImGuiViewport_GetCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +extern "C" { + pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); +} +extern "C" { + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; +} +extern "C" { + pub fn ImGuiFreeType_GetBuilderForFreeType() -> *const ImFontBuilderIO; +} +extern "C" { + pub fn ImGuiFreeType_SetAllocatorFunctions( + alloc_func: ::core::option::Option< + unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void, + >, + free_func: ::core::option::Option< + unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), + >, + user_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn igLogText(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn ImGuiTextBuffer_appendf(buffer: *mut ImGuiTextBuffer, fmt: *const cty::c_char, ...); +} diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index 100e6d068..149253765 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -24,21 +24,49 @@ cfg_if::cfg_if! { if #[cfg(feature = "wasm")] { cfg_if::cfg_if! { if #[cfg(feature = "docking")] { - mod wasm_docking_bindings; - pub use crate::wasm_docking_bindings::*; + cfg_if::cfg_if! { + if #[cfg(feature = "freetype")] { + mod wasm_docking_freetype_bindings; + pub use crate::wasm_docking_freetype_bindings::*; + } else { + mod wasm_docking_bindings; + pub use crate::wasm_docking_bindings::*; + } + } } else { - mod wasm_bindings; - pub use crate::wasm_bindings::*; + cfg_if::cfg_if! { + if #[cfg(feature = "freetype")] { + mod wasm_freetype_bindings; + pub use crate::wasm_freetype_bindings::*; + } else { + mod wasm_bindings; + pub use crate::wasm_bindings::*; + } + } } } } else { cfg_if::cfg_if! { if #[cfg(feature = "docking")] { - mod docking_bindings; - pub use crate::docking_bindings::*; + cfg_if::cfg_if! { + if #[cfg(feature = "freetype")] { + mod docking_freetype_bindings; + pub use crate::docking_freetype_bindings::*; + } else { + mod docking_bindings; + pub use crate::docking_bindings::*; + } + } } else { - mod bindings; - pub use crate::bindings::*; + cfg_if::cfg_if! { + if #[cfg(feature = "freetype")] { + mod freetype_bindings; + pub use crate::freetype_bindings::*; + } else { + mod bindings; + pub use crate::bindings::*; + } + } } } } diff --git a/imgui-sys/src/wasm_docking_freetype_bindings.rs b/imgui-sys/src/wasm_docking_freetype_bindings.rs new file mode 100644 index 000000000..893f4cf99 --- /dev/null +++ b/imgui-sys/src/wasm_docking_freetype_bindings.rs @@ -0,0 +1,5620 @@ +/* automatically generated by rust-bindgen 0.63.0 */ + +#![allow(nonstandard_style, clippy::all)] + +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { + storage: Storage, +} +impl __BindgenBitfieldUnit { + #[inline] + pub const fn new(storage: Storage) -> Self { + Self { storage } + } +} +impl __BindgenBitfieldUnit +where + Storage: AsRef<[u8]> + AsMut<[u8]>, +{ + #[inline] + pub fn get_bit(&self, index: usize) -> bool { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = self.storage.as_ref()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + byte & mask == mask + } + #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + if val { + *byte |= mask; + } else { + *byte &= !mask; + } + } + #[inline] + pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if self.get_bit(i + bit_offset) { + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + val |= 1 << index; + } + } + val + } + #[inline] + pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + self.set_bit(index + bit_offset, val_bit_is_set); + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImDrawListSharedData { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImFontBuilderIO { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImGuiContext { + _unused: [u8; 0], +} +pub type ImGuiCol = cty::c_int; +pub type ImGuiCond = cty::c_int; +pub type ImGuiDataType = cty::c_int; +pub type ImGuiDir = cty::c_int; +pub type ImGuiMouseButton = cty::c_int; +pub type ImGuiMouseCursor = cty::c_int; +pub type ImGuiSortDirection = cty::c_int; +pub type ImGuiStyleVar = cty::c_int; +pub type ImGuiTableBgTarget = cty::c_int; +pub type ImDrawFlags = cty::c_int; +pub type ImDrawListFlags = cty::c_int; +pub type ImFontAtlasFlags = cty::c_int; +pub type ImGuiBackendFlags = cty::c_int; +pub type ImGuiButtonFlags = cty::c_int; +pub type ImGuiColorEditFlags = cty::c_int; +pub type ImGuiConfigFlags = cty::c_int; +pub type ImGuiComboFlags = cty::c_int; +pub type ImGuiDockNodeFlags = cty::c_int; +pub type ImGuiDragDropFlags = cty::c_int; +pub type ImGuiFocusedFlags = cty::c_int; +pub type ImGuiHoveredFlags = cty::c_int; +pub type ImGuiInputTextFlags = cty::c_int; +pub type ImGuiKeyChord = cty::c_int; +pub type ImGuiPopupFlags = cty::c_int; +pub type ImGuiSelectableFlags = cty::c_int; +pub type ImGuiSliderFlags = cty::c_int; +pub type ImGuiTabBarFlags = cty::c_int; +pub type ImGuiTabItemFlags = cty::c_int; +pub type ImGuiTableFlags = cty::c_int; +pub type ImGuiTableColumnFlags = cty::c_int; +pub type ImGuiTableRowFlags = cty::c_int; +pub type ImGuiTreeNodeFlags = cty::c_int; +pub type ImGuiViewportFlags = cty::c_int; +pub type ImGuiWindowFlags = cty::c_int; +pub type ImTextureID = *mut cty::c_void; +pub type ImDrawIdx = cty::c_ushort; +pub type ImGuiID = cty::c_uint; +pub type ImS8 = cty::c_schar; +pub type ImU8 = cty::c_uchar; +pub type ImS16 = cty::c_short; +pub type ImU16 = cty::c_ushort; +pub type ImU32 = cty::c_uint; +pub type ImU64 = cty::c_ulonglong; +pub type ImWchar16 = cty::c_ushort; +pub type ImWchar32 = cty::c_uint; +pub type ImWchar = ImWchar32; +pub type ImGuiInputTextCallback = ::core::option::Option< + unsafe extern "C" fn(data: *mut ImGuiInputTextCallbackData) -> cty::c_int, +>; +pub type ImGuiSizeCallback = + ::core::option::Option; +pub type ImGuiMemAllocFunc = ::core::option::Option< + unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void, +>; +pub type ImGuiMemFreeFunc = ::core::option::Option< + unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec2 { + pub x: f32, + pub y: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec4 { + pub x: f32, + pub y: f32, + pub z: f32, + pub w: f32, +} +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_AlwaysUseWindowPadding: ImGuiWindowFlags_ = 65536; +pub const ImGuiWindowFlags_NoNavInputs: ImGuiWindowFlags_ = 262144; +pub const ImGuiWindowFlags_NoNavFocus: ImGuiWindowFlags_ = 524288; +pub const ImGuiWindowFlags_UnsavedDocument: ImGuiWindowFlags_ = 1048576; +pub const ImGuiWindowFlags_NoDocking: ImGuiWindowFlags_ = 2097152; +pub const ImGuiWindowFlags_NoNav: ImGuiWindowFlags_ = 786432; +pub const ImGuiWindowFlags_NoDecoration: ImGuiWindowFlags_ = 43; +pub const ImGuiWindowFlags_NoInputs: ImGuiWindowFlags_ = 786944; +pub const ImGuiWindowFlags_NavFlattened: ImGuiWindowFlags_ = 8388608; +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 ImGuiWindowFlags_DockNodeHost: ImGuiWindowFlags_ = 536870912; +pub type ImGuiWindowFlags_ = cty::c_uint; +pub const ImGuiInputTextFlags_None: ImGuiInputTextFlags_ = 0; +pub const ImGuiInputTextFlags_CharsDecimal: ImGuiInputTextFlags_ = 1; +pub const ImGuiInputTextFlags_CharsHexadecimal: ImGuiInputTextFlags_ = 2; +pub const ImGuiInputTextFlags_CharsUppercase: ImGuiInputTextFlags_ = 4; +pub const ImGuiInputTextFlags_CharsNoBlank: ImGuiInputTextFlags_ = 8; +pub const ImGuiInputTextFlags_AutoSelectAll: ImGuiInputTextFlags_ = 16; +pub const ImGuiInputTextFlags_EnterReturnsTrue: ImGuiInputTextFlags_ = 32; +pub const ImGuiInputTextFlags_CallbackCompletion: ImGuiInputTextFlags_ = 64; +pub const ImGuiInputTextFlags_CallbackHistory: ImGuiInputTextFlags_ = 128; +pub const ImGuiInputTextFlags_CallbackAlways: ImGuiInputTextFlags_ = 256; +pub const ImGuiInputTextFlags_CallbackCharFilter: ImGuiInputTextFlags_ = 512; +pub const ImGuiInputTextFlags_AllowTabInput: ImGuiInputTextFlags_ = 1024; +pub const ImGuiInputTextFlags_CtrlEnterForNewLine: ImGuiInputTextFlags_ = 2048; +pub const ImGuiInputTextFlags_NoHorizontalScroll: ImGuiInputTextFlags_ = 4096; +pub const ImGuiInputTextFlags_AlwaysOverwrite: ImGuiInputTextFlags_ = 8192; +pub const ImGuiInputTextFlags_ReadOnly: ImGuiInputTextFlags_ = 16384; +pub const ImGuiInputTextFlags_Password: ImGuiInputTextFlags_ = 32768; +pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536; +pub const ImGuiInputTextFlags_CharsScientific: ImGuiInputTextFlags_ = 131072; +pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags_ = 262144; +pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags_ = 524288; +pub const ImGuiInputTextFlags_EscapeClearsAll: ImGuiInputTextFlags_ = 1048576; +pub type ImGuiInputTextFlags_ = cty::c_uint; +pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags_ = 0; +pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags_ = 1; +pub const ImGuiTreeNodeFlags_Framed: ImGuiTreeNodeFlags_ = 2; +pub const ImGuiTreeNodeFlags_AllowItemOverlap: 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_NavLeftJumpsBackHere: ImGuiTreeNodeFlags_ = 8192; +pub const ImGuiTreeNodeFlags_CollapsingHeader: ImGuiTreeNodeFlags_ = 26; +pub type ImGuiTreeNodeFlags_ = cty::c_uint; +pub const ImGuiPopupFlags_None: ImGuiPopupFlags_ = 0; +pub const ImGuiPopupFlags_MouseButtonLeft: ImGuiPopupFlags_ = 0; +pub const ImGuiPopupFlags_MouseButtonRight: ImGuiPopupFlags_ = 1; +pub const ImGuiPopupFlags_MouseButtonMiddle: ImGuiPopupFlags_ = 2; +pub const ImGuiPopupFlags_MouseButtonMask_: ImGuiPopupFlags_ = 31; +pub const ImGuiPopupFlags_MouseButtonDefault_: ImGuiPopupFlags_ = 1; +pub const ImGuiPopupFlags_NoOpenOverExistingPopup: ImGuiPopupFlags_ = 32; +pub const ImGuiPopupFlags_NoOpenOverItems: ImGuiPopupFlags_ = 64; +pub const ImGuiPopupFlags_AnyPopupId: ImGuiPopupFlags_ = 128; +pub const ImGuiPopupFlags_AnyPopupLevel: ImGuiPopupFlags_ = 256; +pub const ImGuiPopupFlags_AnyPopup: ImGuiPopupFlags_ = 384; +pub type ImGuiPopupFlags_ = cty::c_uint; +pub const ImGuiSelectableFlags_None: ImGuiSelectableFlags_ = 0; +pub const ImGuiSelectableFlags_DontClosePopups: ImGuiSelectableFlags_ = 1; +pub const ImGuiSelectableFlags_SpanAllColumns: ImGuiSelectableFlags_ = 2; +pub const ImGuiSelectableFlags_AllowDoubleClick: ImGuiSelectableFlags_ = 4; +pub const ImGuiSelectableFlags_Disabled: ImGuiSelectableFlags_ = 8; +pub const ImGuiSelectableFlags_AllowItemOverlap: ImGuiSelectableFlags_ = 16; +pub type ImGuiSelectableFlags_ = cty::c_uint; +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_HeightMask_: ImGuiComboFlags_ = 30; +pub type ImGuiComboFlags_ = cty::c_uint; +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_FittingPolicyResizeDown: ImGuiTabBarFlags_ = 64; +pub const ImGuiTabBarFlags_FittingPolicyScroll: ImGuiTabBarFlags_ = 128; +pub const ImGuiTabBarFlags_FittingPolicyMask_: ImGuiTabBarFlags_ = 192; +pub const ImGuiTabBarFlags_FittingPolicyDefault_: ImGuiTabBarFlags_ = 64; +pub type ImGuiTabBarFlags_ = cty::c_uint; +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 type ImGuiTabItemFlags_ = cty::c_uint; +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_SizingMask_: ImGuiTableFlags_ = 57344; +pub type ImGuiTableFlags_ = cty::c_uint; +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_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 type ImGuiTableColumnFlags_ = cty::c_uint; +pub const ImGuiTableRowFlags_None: ImGuiTableRowFlags_ = 0; +pub const ImGuiTableRowFlags_Headers: ImGuiTableRowFlags_ = 1; +pub type ImGuiTableRowFlags_ = cty::c_uint; +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 type ImGuiTableBgTarget_ = cty::c_uint; +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_DockHierarchy: ImGuiFocusedFlags_ = 16; +pub const ImGuiFocusedFlags_RootAndChildWindows: ImGuiFocusedFlags_ = 3; +pub type ImGuiFocusedFlags_ = cty::c_uint; +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_DockHierarchy: ImGuiHoveredFlags_ = 16; +pub const ImGuiHoveredFlags_AllowWhenBlockedByPopup: ImGuiHoveredFlags_ = 32; +pub const ImGuiHoveredFlags_AllowWhenBlockedByActiveItem: ImGuiHoveredFlags_ = 128; +pub const ImGuiHoveredFlags_AllowWhenOverlapped: ImGuiHoveredFlags_ = 256; +pub const ImGuiHoveredFlags_AllowWhenDisabled: ImGuiHoveredFlags_ = 512; +pub const ImGuiHoveredFlags_NoNavOverride: ImGuiHoveredFlags_ = 1024; +pub const ImGuiHoveredFlags_RectOnly: ImGuiHoveredFlags_ = 416; +pub const ImGuiHoveredFlags_RootAndChildWindows: ImGuiHoveredFlags_ = 3; +pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags_ = 2048; +pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags_ = 4096; +pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags_ = 8192; +pub type ImGuiHoveredFlags_ = cty::c_uint; +pub const ImGuiDockNodeFlags_None: ImGuiDockNodeFlags_ = 0; +pub const ImGuiDockNodeFlags_KeepAliveOnly: ImGuiDockNodeFlags_ = 1; +pub const ImGuiDockNodeFlags_NoDockingInCentralNode: ImGuiDockNodeFlags_ = 4; +pub const ImGuiDockNodeFlags_PassthruCentralNode: ImGuiDockNodeFlags_ = 8; +pub const ImGuiDockNodeFlags_NoSplit: ImGuiDockNodeFlags_ = 16; +pub const ImGuiDockNodeFlags_NoResize: ImGuiDockNodeFlags_ = 32; +pub const ImGuiDockNodeFlags_AutoHideTabBar: ImGuiDockNodeFlags_ = 64; +pub type ImGuiDockNodeFlags_ = cty::c_uint; +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_SourceAutoExpirePayload: ImGuiDragDropFlags_ = 32; +pub const ImGuiDragDropFlags_AcceptBeforeDelivery: ImGuiDragDropFlags_ = 1024; +pub const ImGuiDragDropFlags_AcceptNoDrawDefaultRect: ImGuiDragDropFlags_ = 2048; +pub const ImGuiDragDropFlags_AcceptNoPreviewTooltip: ImGuiDragDropFlags_ = 4096; +pub const ImGuiDragDropFlags_AcceptPeekOnly: ImGuiDragDropFlags_ = 3072; +pub type ImGuiDragDropFlags_ = cty::c_uint; +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_COUNT: ImGuiDataType_ = 10; +pub type ImGuiDataType_ = cty::c_uint; +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 type ImGuiDir_ = cty::c_int; +pub const ImGuiSortDirection_None: ImGuiSortDirection_ = 0; +pub const ImGuiSortDirection_Ascending: ImGuiSortDirection_ = 1; +pub const ImGuiSortDirection_Descending: ImGuiSortDirection_ = 2; +pub type ImGuiSortDirection_ = cty::c_uint; +pub const ImGuiKey_None: ImGuiKey = 0; +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_Apostrophe: ImGuiKey = 584; +pub const ImGuiKey_Comma: ImGuiKey = 585; +pub const ImGuiKey_Minus: ImGuiKey = 586; +pub const ImGuiKey_Period: ImGuiKey = 587; +pub const ImGuiKey_Slash: ImGuiKey = 588; +pub const ImGuiKey_Semicolon: ImGuiKey = 589; +pub const ImGuiKey_Equal: ImGuiKey = 590; +pub const ImGuiKey_LeftBracket: ImGuiKey = 591; +pub const ImGuiKey_Backslash: ImGuiKey = 592; +pub const ImGuiKey_RightBracket: ImGuiKey = 593; +pub const ImGuiKey_GraveAccent: ImGuiKey = 594; +pub const ImGuiKey_CapsLock: ImGuiKey = 595; +pub const ImGuiKey_ScrollLock: ImGuiKey = 596; +pub const ImGuiKey_NumLock: ImGuiKey = 597; +pub const ImGuiKey_PrintScreen: ImGuiKey = 598; +pub const ImGuiKey_Pause: ImGuiKey = 599; +pub const ImGuiKey_Keypad0: ImGuiKey = 600; +pub const ImGuiKey_Keypad1: ImGuiKey = 601; +pub const ImGuiKey_Keypad2: ImGuiKey = 602; +pub const ImGuiKey_Keypad3: ImGuiKey = 603; +pub const ImGuiKey_Keypad4: ImGuiKey = 604; +pub const ImGuiKey_Keypad5: ImGuiKey = 605; +pub const ImGuiKey_Keypad6: ImGuiKey = 606; +pub const ImGuiKey_Keypad7: ImGuiKey = 607; +pub const ImGuiKey_Keypad8: ImGuiKey = 608; +pub const ImGuiKey_Keypad9: ImGuiKey = 609; +pub const ImGuiKey_KeypadDecimal: ImGuiKey = 610; +pub const ImGuiKey_KeypadDivide: ImGuiKey = 611; +pub const ImGuiKey_KeypadMultiply: ImGuiKey = 612; +pub const ImGuiKey_KeypadSubtract: ImGuiKey = 613; +pub const ImGuiKey_KeypadAdd: ImGuiKey = 614; +pub const ImGuiKey_KeypadEnter: ImGuiKey = 615; +pub const ImGuiKey_KeypadEqual: ImGuiKey = 616; +pub const ImGuiKey_GamepadStart: ImGuiKey = 617; +pub const ImGuiKey_GamepadBack: ImGuiKey = 618; +pub const ImGuiKey_GamepadFaceLeft: ImGuiKey = 619; +pub const ImGuiKey_GamepadFaceRight: ImGuiKey = 620; +pub const ImGuiKey_GamepadFaceUp: ImGuiKey = 621; +pub const ImGuiKey_GamepadFaceDown: ImGuiKey = 622; +pub const ImGuiKey_GamepadDpadLeft: ImGuiKey = 623; +pub const ImGuiKey_GamepadDpadRight: ImGuiKey = 624; +pub const ImGuiKey_GamepadDpadUp: ImGuiKey = 625; +pub const ImGuiKey_GamepadDpadDown: ImGuiKey = 626; +pub const ImGuiKey_GamepadL1: ImGuiKey = 627; +pub const ImGuiKey_GamepadR1: ImGuiKey = 628; +pub const ImGuiKey_GamepadL2: ImGuiKey = 629; +pub const ImGuiKey_GamepadR2: ImGuiKey = 630; +pub const ImGuiKey_GamepadL3: ImGuiKey = 631; +pub const ImGuiKey_GamepadR3: ImGuiKey = 632; +pub const ImGuiKey_GamepadLStickLeft: ImGuiKey = 633; +pub const ImGuiKey_GamepadLStickRight: ImGuiKey = 634; +pub const ImGuiKey_GamepadLStickUp: ImGuiKey = 635; +pub const ImGuiKey_GamepadLStickDown: ImGuiKey = 636; +pub const ImGuiKey_GamepadRStickLeft: ImGuiKey = 637; +pub const ImGuiKey_GamepadRStickRight: ImGuiKey = 638; +pub const ImGuiKey_GamepadRStickUp: ImGuiKey = 639; +pub const ImGuiKey_GamepadRStickDown: ImGuiKey = 640; +pub const ImGuiKey_MouseLeft: ImGuiKey = 641; +pub const ImGuiKey_MouseRight: ImGuiKey = 642; +pub const ImGuiKey_MouseMiddle: ImGuiKey = 643; +pub const ImGuiKey_MouseX1: ImGuiKey = 644; +pub const ImGuiKey_MouseX2: ImGuiKey = 645; +pub const ImGuiKey_MouseWheelX: ImGuiKey = 646; +pub const ImGuiKey_MouseWheelY: ImGuiKey = 647; +pub const ImGuiKey_ReservedForModCtrl: ImGuiKey = 648; +pub const ImGuiKey_ReservedForModShift: ImGuiKey = 649; +pub const ImGuiKey_ReservedForModAlt: ImGuiKey = 650; +pub const ImGuiKey_ReservedForModSuper: ImGuiKey = 651; +pub const ImGuiKey_COUNT: ImGuiKey = 652; +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 ImGuiMod_Shortcut: ImGuiKey = 4096; +pub const ImGuiKey_NamedKey_BEGIN: ImGuiKey = 512; +pub const ImGuiKey_NamedKey_END: ImGuiKey = 652; +pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 140; +pub const ImGuiKey_KeysData_SIZE: ImGuiKey = 652; +pub const ImGuiKey_KeysData_OFFSET: ImGuiKey = 0; +pub type ImGuiKey = cty::c_uint; +pub const ImGuiNavInput_Activate: ImGuiNavInput = 0; +pub const ImGuiNavInput_Cancel: ImGuiNavInput = 1; +pub const ImGuiNavInput_Input: ImGuiNavInput = 2; +pub const ImGuiNavInput_Menu: ImGuiNavInput = 3; +pub const ImGuiNavInput_DpadLeft: ImGuiNavInput = 4; +pub const ImGuiNavInput_DpadRight: ImGuiNavInput = 5; +pub const ImGuiNavInput_DpadUp: ImGuiNavInput = 6; +pub const ImGuiNavInput_DpadDown: ImGuiNavInput = 7; +pub const ImGuiNavInput_LStickLeft: ImGuiNavInput = 8; +pub const ImGuiNavInput_LStickRight: ImGuiNavInput = 9; +pub const ImGuiNavInput_LStickUp: ImGuiNavInput = 10; +pub const ImGuiNavInput_LStickDown: ImGuiNavInput = 11; +pub const ImGuiNavInput_FocusPrev: ImGuiNavInput = 12; +pub const ImGuiNavInput_FocusNext: ImGuiNavInput = 13; +pub const ImGuiNavInput_TweakSlow: ImGuiNavInput = 14; +pub const ImGuiNavInput_TweakFast: ImGuiNavInput = 15; +pub const ImGuiNavInput_COUNT: ImGuiNavInput = 16; +pub type ImGuiNavInput = cty::c_uint; +pub const ImGuiConfigFlags_None: ImGuiConfigFlags_ = 0; +pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags_ = 1; +pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags_ = 2; +pub const ImGuiConfigFlags_NavEnableSetMousePos: ImGuiConfigFlags_ = 4; +pub const ImGuiConfigFlags_NavNoCaptureKeyboard: ImGuiConfigFlags_ = 8; +pub const ImGuiConfigFlags_NoMouse: ImGuiConfigFlags_ = 16; +pub const ImGuiConfigFlags_NoMouseCursorChange: ImGuiConfigFlags_ = 32; +pub const ImGuiConfigFlags_DockingEnable: ImGuiConfigFlags_ = 64; +pub const ImGuiConfigFlags_ViewportsEnable: ImGuiConfigFlags_ = 1024; +pub const ImGuiConfigFlags_DpiEnableScaleViewports: ImGuiConfigFlags_ = 16384; +pub const ImGuiConfigFlags_DpiEnableScaleFonts: ImGuiConfigFlags_ = 32768; +pub const ImGuiConfigFlags_IsSRGB: ImGuiConfigFlags_ = 1048576; +pub const ImGuiConfigFlags_IsTouchScreen: ImGuiConfigFlags_ = 2097152; +pub type ImGuiConfigFlags_ = cty::c_uint; +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_PlatformHasViewports: ImGuiBackendFlags_ = 1024; +pub const ImGuiBackendFlags_HasMouseHoveredViewport: ImGuiBackendFlags_ = 2048; +pub const ImGuiBackendFlags_RendererHasViewports: ImGuiBackendFlags_ = 4096; +pub type ImGuiBackendFlags_ = cty::c_uint; +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_SliderGrab: ImGuiCol_ = 19; +pub const ImGuiCol_SliderGrabActive: ImGuiCol_ = 20; +pub const ImGuiCol_Button: ImGuiCol_ = 21; +pub const ImGuiCol_ButtonHovered: ImGuiCol_ = 22; +pub const ImGuiCol_ButtonActive: ImGuiCol_ = 23; +pub const ImGuiCol_Header: ImGuiCol_ = 24; +pub const ImGuiCol_HeaderHovered: ImGuiCol_ = 25; +pub const ImGuiCol_HeaderActive: ImGuiCol_ = 26; +pub const ImGuiCol_Separator: ImGuiCol_ = 27; +pub const ImGuiCol_SeparatorHovered: ImGuiCol_ = 28; +pub const ImGuiCol_SeparatorActive: ImGuiCol_ = 29; +pub const ImGuiCol_ResizeGrip: ImGuiCol_ = 30; +pub const ImGuiCol_ResizeGripHovered: ImGuiCol_ = 31; +pub const ImGuiCol_ResizeGripActive: ImGuiCol_ = 32; +pub const ImGuiCol_Tab: ImGuiCol_ = 33; +pub const ImGuiCol_TabHovered: ImGuiCol_ = 34; +pub const ImGuiCol_TabActive: ImGuiCol_ = 35; +pub const ImGuiCol_TabUnfocused: ImGuiCol_ = 36; +pub const ImGuiCol_TabUnfocusedActive: ImGuiCol_ = 37; +pub const ImGuiCol_DockingPreview: ImGuiCol_ = 38; +pub const ImGuiCol_DockingEmptyBg: ImGuiCol_ = 39; +pub const ImGuiCol_PlotLines: ImGuiCol_ = 40; +pub const ImGuiCol_PlotLinesHovered: ImGuiCol_ = 41; +pub const ImGuiCol_PlotHistogram: ImGuiCol_ = 42; +pub const ImGuiCol_PlotHistogramHovered: ImGuiCol_ = 43; +pub const ImGuiCol_TableHeaderBg: ImGuiCol_ = 44; +pub const ImGuiCol_TableBorderStrong: ImGuiCol_ = 45; +pub const ImGuiCol_TableBorderLight: ImGuiCol_ = 46; +pub const ImGuiCol_TableRowBg: ImGuiCol_ = 47; +pub const ImGuiCol_TableRowBgAlt: ImGuiCol_ = 48; +pub const ImGuiCol_TextSelectedBg: ImGuiCol_ = 49; +pub const ImGuiCol_DragDropTarget: ImGuiCol_ = 50; +pub const ImGuiCol_NavHighlight: ImGuiCol_ = 51; +pub const ImGuiCol_NavWindowingHighlight: ImGuiCol_ = 52; +pub const ImGuiCol_NavWindowingDimBg: ImGuiCol_ = 53; +pub const ImGuiCol_ModalWindowDimBg: ImGuiCol_ = 54; +pub const ImGuiCol_COUNT: ImGuiCol_ = 55; +pub type ImGuiCol_ = cty::c_uint; +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_GrabMinSize: ImGuiStyleVar_ = 20; +pub const ImGuiStyleVar_GrabRounding: ImGuiStyleVar_ = 21; +pub const ImGuiStyleVar_TabRounding: ImGuiStyleVar_ = 22; +pub const ImGuiStyleVar_ButtonTextAlign: ImGuiStyleVar_ = 23; +pub const ImGuiStyleVar_SelectableTextAlign: ImGuiStyleVar_ = 24; +pub const ImGuiStyleVar_COUNT: ImGuiStyleVar_ = 25; +pub type ImGuiStyleVar_ = cty::c_uint; +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_MouseButtonDefault_: ImGuiButtonFlags_ = 1; +pub type ImGuiButtonFlags_ = cty::c_uint; +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_AlphaBar: ImGuiColorEditFlags_ = 65536; +pub const ImGuiColorEditFlags_AlphaPreview: ImGuiColorEditFlags_ = 131072; +pub const ImGuiColorEditFlags_AlphaPreviewHalf: 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_InputRGB: ImGuiColorEditFlags_ = 134217728; +pub const ImGuiColorEditFlags_InputHSV: ImGuiColorEditFlags_ = 268435456; +pub const ImGuiColorEditFlags_DefaultOptions_: ImGuiColorEditFlags_ = 177209344; +pub const ImGuiColorEditFlags_DisplayMask_: ImGuiColorEditFlags_ = 7340032; +pub const ImGuiColorEditFlags_DataTypeMask_: ImGuiColorEditFlags_ = 25165824; +pub const ImGuiColorEditFlags_PickerMask_: ImGuiColorEditFlags_ = 100663296; +pub const ImGuiColorEditFlags_InputMask_: ImGuiColorEditFlags_ = 402653184; +pub type ImGuiColorEditFlags_ = cty::c_uint; +pub const ImGuiSliderFlags_None: ImGuiSliderFlags_ = 0; +pub const ImGuiSliderFlags_AlwaysClamp: ImGuiSliderFlags_ = 16; +pub const ImGuiSliderFlags_Logarithmic: ImGuiSliderFlags_ = 32; +pub const ImGuiSliderFlags_NoRoundToFormat: ImGuiSliderFlags_ = 64; +pub const ImGuiSliderFlags_NoInput: ImGuiSliderFlags_ = 128; +pub const ImGuiSliderFlags_InvalidMask_: ImGuiSliderFlags_ = 1879048207; +pub type ImGuiSliderFlags_ = cty::c_uint; +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 type ImGuiMouseButton_ = cty::c_uint; +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_NotAllowed: ImGuiMouseCursor_ = 8; +pub const ImGuiMouseCursor_COUNT: ImGuiMouseCursor_ = 9; +pub type ImGuiMouseCursor_ = cty::c_int; +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 type ImGuiCond_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiStyle { + pub Alpha: f32, + pub DisabledAlpha: f32, + pub WindowPadding: ImVec2, + pub WindowRounding: f32, + pub WindowBorderSize: 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 GrabMinSize: f32, + pub GrabRounding: f32, + pub LogSliderDeadzone: f32, + pub TabRounding: f32, + pub TabBorderSize: f32, + pub TabMinWidthForCloseButton: f32, + pub ColorButtonPosition: ImGuiDir, + pub ButtonTextAlign: ImVec2, + pub SelectableTextAlign: ImVec2, + pub DisplayWindowPadding: ImVec2, + pub DisplaySafeAreaPadding: ImVec2, + pub MouseCursorScale: f32, + pub AntiAliasedLines: bool, + pub AntiAliasedLinesUseTex: bool, + pub AntiAliasedFill: bool, + pub CurveTessellationTol: f32, + pub CircleTessellationMaxError: f32, + pub Colors: [ImVec4; 55usize], +} +impl Default for ImGuiStyle { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiKeyData { + pub Down: bool, + pub DownDuration: f32, + pub DownDurationPrev: f32, + pub AnalogValue: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImWchar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImWchar, +} +impl Default for ImVector_ImWchar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiIO { + pub ConfigFlags: ImGuiConfigFlags, + pub BackendFlags: ImGuiBackendFlags, + pub DisplaySize: ImVec2, + pub DeltaTime: f32, + pub IniSavingRate: f32, + pub IniFilename: *const cty::c_char, + pub LogFilename: *const cty::c_char, + pub MouseDoubleClickTime: f32, + pub MouseDoubleClickMaxDist: f32, + pub MouseDragThreshold: f32, + pub KeyRepeatDelay: f32, + pub KeyRepeatRate: f32, + pub HoverDelayNormal: f32, + pub HoverDelayShort: f32, + pub UserData: *mut cty::c_void, + pub Fonts: *mut ImFontAtlas, + pub FontGlobalScale: f32, + pub FontAllowUserScaling: bool, + pub FontDefault: *mut ImFont, + pub DisplayFramebufferScale: ImVec2, + pub ConfigDockingNoSplit: bool, + pub ConfigDockingWithShift: bool, + pub ConfigDockingAlwaysTabBar: bool, + pub ConfigDockingTransparentPayload: bool, + pub ConfigViewportsNoAutoMerge: bool, + pub ConfigViewportsNoTaskBarIcon: bool, + pub ConfigViewportsNoDecoration: bool, + pub ConfigViewportsNoDefaultParent: bool, + pub MouseDrawCursor: bool, + pub ConfigMacOSXBehaviors: bool, + pub ConfigInputTrickleEventQueue: bool, + pub ConfigInputTextCursorBlink: bool, + pub ConfigInputTextEnterKeepActive: bool, + pub ConfigDragClickToInputText: bool, + pub ConfigWindowsResizeFromEdges: bool, + pub ConfigWindowsMoveFromTitleBarOnly: bool, + pub ConfigMemoryCompactTimer: f32, + pub BackendPlatformName: *const cty::c_char, + pub BackendRendererName: *const cty::c_char, + pub BackendPlatformUserData: *mut cty::c_void, + pub BackendRendererUserData: *mut cty::c_void, + pub BackendLanguageUserData: *mut cty::c_void, + pub GetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void) -> *const cty::c_char, + >, + pub SetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), + >, + pub ClipboardUserData: *mut cty::c_void, + pub SetPlatformImeDataFn: ::core::option::Option< + unsafe extern "C" fn(viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData), + >, + pub _UnusedPadding: *mut cty::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: cty::c_int, + pub MetricsRenderIndices: cty::c_int, + pub MetricsRenderWindows: cty::c_int, + pub MetricsActiveWindows: cty::c_int, + pub MetricsActiveAllocations: cty::c_int, + pub MouseDelta: ImVec2, + pub KeyMap: [cty::c_int; 652usize], + pub KeysDown: [bool; 652usize], + pub NavInputs: [f32; 16usize], + pub MousePos: ImVec2, + pub MouseDown: [bool; 5usize], + pub MouseWheel: f32, + pub MouseWheelH: f32, + pub MouseHoveredViewport: ImGuiID, + pub KeyCtrl: bool, + pub KeyShift: bool, + pub KeyAlt: bool, + pub KeySuper: bool, + pub KeyMods: ImGuiKeyChord, + pub KeysData: [ImGuiKeyData; 652usize], + pub WantCaptureMouseUnlessPopupClose: bool, + pub MousePosPrev: ImVec2, + pub MouseClickedPos: [ImVec2; 5usize], + pub MouseClickedTime: [f64; 5usize], + pub MouseClicked: [bool; 5usize], + pub MouseDoubleClicked: [bool; 5usize], + pub MouseClickedCount: [ImU16; 5usize], + pub MouseClickedLastCount: [ImU16; 5usize], + pub MouseReleased: [bool; 5usize], + pub MouseDownOwned: [bool; 5usize], + pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], + pub MouseDownDuration: [f32; 5usize], + pub MouseDownDurationPrev: [f32; 5usize], + pub MouseDragMaxDistanceAbs: [ImVec2; 5usize], + pub MouseDragMaxDistanceSqr: [f32; 5usize], + pub PenPressure: f32, + pub AppFocusLost: bool, + pub AppAcceptingEvents: bool, + pub BackendUsingLegacyKeyArrays: ImS8, + pub BackendUsingLegacyNavInputArray: bool, + pub InputQueueSurrogate: ImWchar16, + pub InputQueueCharacters: ImVector_ImWchar, +} +impl Default for ImGuiIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputTextCallbackData { + pub EventFlag: ImGuiInputTextFlags, + pub Flags: ImGuiInputTextFlags, + pub UserData: *mut cty::c_void, + pub EventChar: ImWchar, + pub EventKey: ImGuiKey, + pub Buf: *mut cty::c_char, + pub BufTextLen: cty::c_int, + pub BufSize: cty::c_int, + pub BufDirty: bool, + pub CursorPos: cty::c_int, + pub SelectionStart: cty::c_int, + pub SelectionEnd: cty::c_int, +} +impl Default for ImGuiInputTextCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiSizeCallbackData { + pub UserData: *mut cty::c_void, + pub Pos: ImVec2, + pub CurrentSize: ImVec2, + pub DesiredSize: ImVec2, +} +impl Default for ImGuiSizeCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowClass { + pub ClassId: ImGuiID, + pub ParentViewportId: ImGuiID, + pub ViewportFlagsOverrideSet: ImGuiViewportFlags, + pub ViewportFlagsOverrideClear: ImGuiViewportFlags, + pub TabItemFlagsOverrideSet: ImGuiTabItemFlags, + pub DockNodeFlagsOverrideSet: ImGuiDockNodeFlags, + pub DockingAlwaysTabBar: bool, + pub DockingAllowUnclassed: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPayload { + pub Data: *mut cty::c_void, + pub DataSize: cty::c_int, + pub SourceId: ImGuiID, + pub SourceParentId: ImGuiID, + pub DataFrameCount: cty::c_int, + pub DataType: [cty::c_char; 33usize], + pub Preview: bool, + pub Delivery: bool, +} +impl Default for ImGuiPayload { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableColumnSortSpecs { + pub ColumnUserID: ImGuiID, + pub ColumnIndex: ImS16, + pub SortOrder: ImS16, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl ImGuiTableColumnSortSpecs { + #[inline] + pub fn SortDirection(&self) -> ImGuiSortDirection { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImGuiSortDirection) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImGuiSortDirection, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableSortSpecs { + pub Specs: *const ImGuiTableColumnSortSpecs, + pub SpecsCount: cty::c_int, + pub SpecsDirty: bool, +} +impl Default for ImGuiTableSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiOnceUponAFrame { + pub RefFrame: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextRange { + pub b: *const cty::c_char, + pub e: *const cty::c_char, +} +impl Default for ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTextRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTextRange, +} +impl Default for ImVector_ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextFilter { + pub InputBuf: [cty::c_char; 256usize], + pub Filters: ImVector_ImGuiTextRange, + pub CountGrep: cty::c_int, +} +impl Default for ImGuiTextFilter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_char, +} +impl Default for ImVector_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextBuffer { + pub Buf: ImVector_char, +} +impl Default for ImGuiTextBuffer { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiStoragePair { + pub key: ImGuiID, + pub __bindgen_anon_1: ImGuiStoragePair__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiStoragePair__bindgen_ty_1 { + pub val_i: cty::c_int, + pub val_f: f32, + pub val_p: *mut cty::c_void, +} +impl Default for ImGuiStoragePair__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiStoragePair__bindgen_ty_1 {{ union }}") + } +} +impl Default for ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!( + f, + "ImGuiStoragePair {{ key: {:?}, __bindgen_anon_1: {:?} }}", + self.key, self.__bindgen_anon_1 + ) + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStoragePair { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStoragePair, +} +impl Default for ImVector_ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStorage { + pub Data: ImVector_ImGuiStoragePair, +} +impl Default for ImGuiStorage { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiListClipper { + pub DisplayStart: cty::c_int, + pub DisplayEnd: cty::c_int, + pub ItemsCount: cty::c_int, + pub ItemsHeight: f32, + pub StartPosY: f32, + pub TempData: *mut cty::c_void, +} +impl Default for ImGuiListClipper { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImColor { + pub Value: ImVec4, +} +pub type ImDrawCallback = ::core::option::Option< + unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmd { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, + pub IdxOffset: cty::c_uint, + pub ElemCount: cty::c_uint, + pub UserCallback: ImDrawCallback, + pub UserCallbackData: *mut cty::c_void, +} +impl Default for ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImDrawVert { + pub pos: ImVec2, + pub uv: ImVec2, + pub col: ImU32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmdHeader { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, +} +impl Default for ImDrawCmdHeader { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawCmd { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawCmd, +} +impl Default for ImVector_ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawIdx { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawIdx, +} +impl Default for ImVector_ImDrawIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawChannel { + pub _CmdBuffer: ImVector_ImDrawCmd, + pub _IdxBuffer: ImVector_ImDrawIdx, +} +impl Default for ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawChannel { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawChannel, +} +impl Default for ImVector_ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawListSplitter { + pub _Current: cty::c_int, + pub _Count: cty::c_int, + pub _Channels: ImVector_ImDrawChannel, +} +impl Default for ImDrawListSplitter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImDrawFlags_None: ImDrawFlags_ = 0; +pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; +pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; +pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; +pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; +pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; +pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; +pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; +pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; +pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; +pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; +pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; +pub type ImDrawFlags_ = cty::c_uint; +pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; +pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; +pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; +pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; +pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; +pub type ImDrawListFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawVert { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawVert, +} +impl Default for ImVector_ImDrawVert { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec4 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec4, +} +impl Default for ImVector_ImVec4 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImTextureID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImTextureID, +} +impl Default for ImVector_ImTextureID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec2 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec2, +} +impl Default for ImVector_ImVec2 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawList { + pub CmdBuffer: ImVector_ImDrawCmd, + pub IdxBuffer: ImVector_ImDrawIdx, + pub VtxBuffer: ImVector_ImDrawVert, + pub Flags: ImDrawListFlags, + pub _VtxCurrentIdx: cty::c_uint, + pub _Data: *mut ImDrawListSharedData, + pub _OwnerName: *const cty::c_char, + pub _VtxWritePtr: *mut ImDrawVert, + pub _IdxWritePtr: *mut ImDrawIdx, + pub _ClipRectStack: ImVector_ImVec4, + pub _TextureIdStack: ImVector_ImTextureID, + pub _Path: ImVector_ImVec2, + pub _CmdHeader: ImDrawCmdHeader, + pub _Splitter: ImDrawListSplitter, + pub _FringeScale: f32, +} +impl Default for ImDrawList { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawData { + pub Valid: bool, + pub CmdListsCount: cty::c_int, + pub TotalIdxCount: cty::c_int, + pub TotalVtxCount: cty::c_int, + pub CmdLists: *mut *mut ImDrawList, + pub DisplayPos: ImVec2, + pub DisplaySize: ImVec2, + pub FramebufferScale: ImVec2, + pub OwnerViewport: *mut ImGuiViewport, +} +impl Default for ImDrawData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontConfig { + pub FontData: *mut cty::c_void, + pub FontDataSize: cty::c_int, + pub FontDataOwnedByAtlas: bool, + pub FontNo: cty::c_int, + pub SizePixels: f32, + pub OversampleH: cty::c_int, + pub OversampleV: cty::c_int, + pub PixelSnapH: bool, + pub GlyphExtraSpacing: ImVec2, + pub GlyphOffset: ImVec2, + pub GlyphRanges: *const ImWchar, + pub GlyphMinAdvanceX: f32, + pub GlyphMaxAdvanceX: f32, + pub MergeMode: bool, + pub FontBuilderFlags: cty::c_uint, + pub RasterizerMultiply: f32, + pub EllipsisChar: ImWchar, + pub Name: [cty::c_char; 40usize], + pub DstFont: *mut ImFont, +} +impl Default for ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImFontGlyph { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + 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, +} +impl ImFontGlyph { + #[inline] + pub fn Colored(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Colored(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Visible(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_Visible(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Codepoint(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Codepoint(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Colored: cty::c_uint, + Visible: cty::c_uint, + Codepoint: cty::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Colored: u32 = unsafe { ::core::mem::transmute(Colored) }; + Colored as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Visible: u32 = unsafe { ::core::mem::transmute(Visible) }; + Visible as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Codepoint: u32 = unsafe { ::core::mem::transmute(Codepoint) }; + Codepoint as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImU32 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImU32, +} +impl Default for ImVector_ImU32 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImFontGlyphRangesBuilder { + pub UsedChars: ImVector_ImU32, +} +impl Default for ImFontGlyphRangesBuilder { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlasCustomRect { + pub Width: cty::c_ushort, + pub Height: cty::c_ushort, + pub X: cty::c_ushort, + pub Y: cty::c_ushort, + pub GlyphID: cty::c_uint, + pub GlyphAdvanceX: f32, + pub GlyphOffset: ImVec2, + pub Font: *mut ImFont, +} +impl Default for ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 type ImFontAtlasFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImFont, +} +impl Default for ImVector_ImFontPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontAtlasCustomRect { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontAtlasCustomRect, +} +impl Default for ImVector_ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontConfig { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontConfig, +} +impl Default for ImVector_ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlas { + pub Flags: ImFontAtlasFlags, + pub TexID: ImTextureID, + pub TexDesiredWidth: cty::c_int, + pub TexGlyphPadding: cty::c_int, + pub Locked: bool, + pub TexReady: bool, + pub TexPixelsUseColors: bool, + pub TexPixelsAlpha8: *mut cty::c_uchar, + pub TexPixelsRGBA32: *mut cty::c_uint, + pub TexWidth: cty::c_int, + pub TexHeight: cty::c_int, + pub TexUvScale: ImVec2, + pub TexUvWhitePixel: ImVec2, + pub Fonts: ImVector_ImFontPtr, + pub CustomRects: ImVector_ImFontAtlasCustomRect, + pub ConfigData: ImVector_ImFontConfig, + pub TexUvLines: [ImVec4; 64usize], + pub FontBuilderIO: *const ImFontBuilderIO, + pub FontBuilderFlags: cty::c_uint, + pub PackIdMouseCursors: cty::c_int, + pub PackIdLines: cty::c_int, +} +impl Default for ImFontAtlas { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_float { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut f32, +} +impl Default for ImVector_float { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontGlyph { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontGlyph, +} +impl Default for ImVector_ImFontGlyph { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFont { + pub IndexAdvanceX: ImVector_float, + pub FallbackAdvanceX: f32, + pub FontSize: f32, + pub IndexLookup: ImVector_ImWchar, + pub Glyphs: ImVector_ImFontGlyph, + pub FallbackGlyph: *const ImFontGlyph, + pub ContainerAtlas: *mut ImFontAtlas, + pub ConfigData: *const ImFontConfig, + pub ConfigDataCount: cty::c_short, + pub FallbackChar: ImWchar, + pub EllipsisChar: ImWchar, + pub DotChar: ImWchar, + pub DirtyLookupTables: bool, + pub Scale: f32, + pub Ascent: f32, + pub Descent: f32, + pub MetricsTotalSurface: cty::c_int, + pub Used4kPagesMap: [ImU8; 34usize], +} +impl Default for ImFont { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 ImGuiViewportFlags_NoDecoration: ImGuiViewportFlags_ = 8; +pub const ImGuiViewportFlags_NoTaskBarIcon: ImGuiViewportFlags_ = 16; +pub const ImGuiViewportFlags_NoFocusOnAppearing: ImGuiViewportFlags_ = 32; +pub const ImGuiViewportFlags_NoFocusOnClick: ImGuiViewportFlags_ = 64; +pub const ImGuiViewportFlags_NoInputs: ImGuiViewportFlags_ = 128; +pub const ImGuiViewportFlags_NoRendererClear: ImGuiViewportFlags_ = 256; +pub const ImGuiViewportFlags_TopMost: ImGuiViewportFlags_ = 512; +pub const ImGuiViewportFlags_Minimized: ImGuiViewportFlags_ = 1024; +pub const ImGuiViewportFlags_NoAutoMerge: ImGuiViewportFlags_ = 2048; +pub const ImGuiViewportFlags_CanHostOtherWindows: ImGuiViewportFlags_ = 4096; +pub type ImGuiViewportFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiViewport { + pub ID: ImGuiID, + pub Flags: ImGuiViewportFlags, + pub Pos: ImVec2, + pub Size: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub DpiScale: f32, + pub ParentViewportId: ImGuiID, + pub DrawData: *mut ImDrawData, + pub RendererUserData: *mut cty::c_void, + pub PlatformUserData: *mut cty::c_void, + pub PlatformHandle: *mut cty::c_void, + pub PlatformHandleRaw: *mut cty::c_void, + pub PlatformWindowCreated: bool, + pub PlatformRequestMove: bool, + pub PlatformRequestResize: bool, + pub PlatformRequestClose: bool, +} +impl Default for ImGuiViewport { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiPlatformMonitor { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPlatformMonitor, +} +impl Default for ImVector_ImGuiPlatformMonitor { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiViewportPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiViewport, +} +impl Default for ImVector_ImGuiViewportPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPlatformIO { + pub Platform_CreateWindow: ::core::option::Option, + pub Platform_DestroyWindow: + ::core::option::Option, + pub Platform_ShowWindow: ::core::option::Option, + pub Platform_SetWindowPos: + ::core::option::Option, + pub Platform_GetWindowPos: + ::core::option::Option ImVec2>, + pub Platform_SetWindowSize: + ::core::option::Option, + pub Platform_GetWindowSize: + ::core::option::Option ImVec2>, + pub Platform_SetWindowFocus: + ::core::option::Option, + pub Platform_GetWindowFocus: + ::core::option::Option bool>, + pub Platform_GetWindowMinimized: + ::core::option::Option bool>, + pub Platform_SetWindowTitle: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, str_: *const cty::c_char), + >, + pub Platform_SetWindowAlpha: + ::core::option::Option, + pub Platform_UpdateWindow: ::core::option::Option, + pub Platform_RenderWindow: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Platform_SwapBuffers: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Platform_GetWindowDpiScale: + ::core::option::Option f32>, + pub Platform_OnChangedViewport: + ::core::option::Option, + pub Platform_CreateVkSurface: ::core::option::Option< + unsafe extern "C" fn( + vp: *mut ImGuiViewport, + vk_inst: ImU64, + vk_allocators: *const cty::c_void, + out_vk_surface: *mut ImU64, + ) -> cty::c_int, + >, + pub Renderer_CreateWindow: ::core::option::Option, + pub Renderer_DestroyWindow: + ::core::option::Option, + pub Renderer_SetWindowSize: + ::core::option::Option, + pub Renderer_RenderWindow: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Renderer_SwapBuffers: ::core::option::Option< + unsafe extern "C" fn(vp: *mut ImGuiViewport, render_arg: *mut cty::c_void), + >, + pub Monitors: ImVector_ImGuiPlatformMonitor, + pub Viewports: ImVector_ImGuiViewportPtr, +} +impl Default for ImGuiPlatformIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformMonitor { + pub MainPos: ImVec2, + pub MainSize: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub DpiScale: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformImeData { + pub WantVisible: bool, + pub InputPos: ImVec2, + pub InputLineHeight: f32, +} +pub const ImGuiFreeTypeBuilderFlags_NoHinting: ImGuiFreeTypeBuilderFlags = 1; +pub const ImGuiFreeTypeBuilderFlags_NoAutoHint: ImGuiFreeTypeBuilderFlags = 2; +pub const ImGuiFreeTypeBuilderFlags_ForceAutoHint: ImGuiFreeTypeBuilderFlags = 4; +pub const ImGuiFreeTypeBuilderFlags_LightHinting: ImGuiFreeTypeBuilderFlags = 8; +pub const ImGuiFreeTypeBuilderFlags_MonoHinting: ImGuiFreeTypeBuilderFlags = 16; +pub const ImGuiFreeTypeBuilderFlags_Bold: ImGuiFreeTypeBuilderFlags = 32; +pub const ImGuiFreeTypeBuilderFlags_Oblique: ImGuiFreeTypeBuilderFlags = 64; +pub const ImGuiFreeTypeBuilderFlags_Monochrome: ImGuiFreeTypeBuilderFlags = 128; +pub const ImGuiFreeTypeBuilderFlags_LoadColor: ImGuiFreeTypeBuilderFlags = 256; +pub const ImGuiFreeTypeBuilderFlags_Bitmap: ImGuiFreeTypeBuilderFlags = 512; +pub type ImGuiFreeTypeBuilderFlags = cty::c_uint; +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec2_destroy(self_: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec4_destroy(self_: *mut ImVec4); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDestroyContext(ctx: *mut ImGuiContext); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCurrentContext() -> *mut ImGuiContext; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCurrentContext(ctx: *mut ImGuiContext); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetIO() -> *mut ImGuiIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStyle() -> *mut ImGuiStyle; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igNewFrame(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndFrame(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRender(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetDrawData() -> *mut ImDrawData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowDemoWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowMetricsWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowStackToolWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowAboutWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowStyleEditor(ref_: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowStyleSelector(label: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowFontSelector(label: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowUserGuide(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetVersion() -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igStyleColorsDark(dst: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igStyleColorsLight(dst: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igStyleColorsClassic(dst: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBegin(name: *const cty::c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEnd(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginChild_Str( + str_id: *const cty::c_char, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndChild(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowAppearing() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowCollapsed() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowFocused(flags: ImGuiFocusedFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowHovered(flags: ImGuiHoveredFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowDrawList() -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowDpiScale() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowSize(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowWidth() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowHeight() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowViewport() -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowPos(pos: ImVec2, cond: ImGuiCond, pivot: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowSize(size: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowSizeConstraints( + size_min: ImVec2, + size_max: ImVec2, + custom_callback: ImGuiSizeCallback, + custom_callback_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowContentSize(size: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowCollapsed(collapsed: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowFocus(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowBgAlpha(alpha: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowViewport(viewport_id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowFocus_Nil(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowFontScale(scale: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowFocus_Str(name: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetContentRegionAvail(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetContentRegionMax(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowContentRegionMin(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowContentRegionMax(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollX() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollY() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollX(scroll_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollY(scroll_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollMaxX() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollMaxY() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollHereX(center_x_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollHereY(center_y_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollFromPosX(local_x: f32, center_x_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollFromPosY(local_y: f32, center_y_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushFont(font: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopFont(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopStyleColor(count: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopStyleVar(count: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushAllowKeyboardFocus(allow_keyboard_focus: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopAllowKeyboardFocus(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushButtonRepeat(repeat: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopButtonRepeat(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushItemWidth(item_width: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopItemWidth(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextItemWidth(item_width: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCalcItemWidth() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushTextWrapPos(wrap_local_pos_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopTextWrapPos(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFont() -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFontSize() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSeparator(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSameLine(offset_from_start_x: f32, spacing: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igNewLine(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSpacing(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDummy(size: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIndent(indent_w: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igUnindent(indent_w: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginGroup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndGroup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorPosX() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorPosY() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorPos(local_pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorPosX(local_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorPosY(local_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorStartPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorScreenPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorScreenPos(pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igAlignTextToFramePadding(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTextLineHeight() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTextLineHeightWithSpacing() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFrameHeight() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFrameHeightWithSpacing() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_Str(str_id: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_Int(int_id: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopID(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetID_StrStr( + str_id_begin: *const cty::c_char, + str_id_end: *const cty::c_char, + ) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igText(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextColored(col: ImVec4, fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextDisabled(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextWrapped(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLabelText(label: *const cty::c_char, fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBulletText(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igButton(label: *const cty::c_char, size: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSmallButton(label: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInvisibleButton( + str_id: *const cty::c_char, + size: ImVec2, + flags: ImGuiButtonFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCheckboxFlags_IntPtr( + label: *const cty::c_char, + flags: *mut cty::c_int, + flags_value: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCheckboxFlags_UintPtr( + label: *const cty::c_char, + flags: *mut cty::c_uint, + flags_value: cty::c_uint, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRadioButton_IntPtr( + label: *const cty::c_char, + v: *mut cty::c_int, + v_button: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBullet(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginCombo( + label: *const cty::c_char, + preview_value: *const cty::c_char, + flags: ImGuiComboFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndCombo(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCombo_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCombo_Str( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_separated_by_zeros: *const cty::c_char, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCombo_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat2( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat3( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat4( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloatRange2( + label: *const cty::c_char, + v_current_min: *mut f32, + v_current_max: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragIntRange2( + label: *const cty::c_char, + v_current_min: *mut cty::c_int, + v_current_max: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat2( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat3( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat4( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderAngle( + label: *const cty::c_char, + v_rad: *mut f32, + v_degrees_min: f32, + v_degrees_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igVSliderFloat( + label: *const cty::c_char, + size: ImVec2, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igVSliderInt( + label: *const cty::c_char, + size: ImVec2, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igVSliderScalar( + label: *const cty::c_char, + size: ImVec2, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputText( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputTextMultiline( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + size: ImVec2, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputTextWithHint( + label: *const cty::c_char, + hint: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat( + label: *const cty::c_char, + v: *mut f32, + step: f32, + step_fast: f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat2( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat3( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat4( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt( + label: *const cty::c_char, + v: *mut cty::c_int, + step: cty::c_int, + step_fast: cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputDouble( + label: *const cty::c_char, + v: *mut f64, + step: f64, + step_fast: f64, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorEdit3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorEdit4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorPicker3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorPicker4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ref_col: *const f32, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorButton( + desc_id: *const cty::c_char, + col: ImVec4, + flags: ImGuiColorEditFlags, + size: ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeEx_StrStr( + str_id: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeEx_Ptr( + ptr_id: *const cty::c_void, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePush_Str(str_id: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePop(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTreeNodeToLabelSpacing() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCollapsingHeader_TreeNodeFlags( + label: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCollapsingHeader_BoolPtr( + label: *const cty::c_char, + p_visible: *mut bool, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSelectable_Bool( + label: *const cty::c_char, + selected: bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSelectable_BoolPtr( + label: *const cty::c_char, + p_selected: *mut bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginListBox(label: *const cty::c_char, size: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndListBox(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igListBox_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igListBox_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotLines_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotLines_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotHistogram_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotHistogram_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginMenuBar() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndMenuBar(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginMainMenuBar() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndMainMenuBar(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginMenu(label: *const cty::c_char, enabled: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndMenu(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMenuItem_Bool( + label: *const cty::c_char, + shortcut: *const cty::c_char, + selected: bool, + enabled: bool, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMenuItem_BoolPtr( + label: *const cty::c_char, + shortcut: *const cty::c_char, + p_selected: *mut bool, + enabled: bool, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTooltip(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTooltip(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetTooltip(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopup(str_id: *const cty::c_char, flags: ImGuiWindowFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupModal( + name: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndPopup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCloseCurrentPopup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupContextItem( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupContextWindow( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupContextVoid( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsPopupOpen(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTable( + str_id: *const cty::c_char, + column: cty::c_int, + flags: ImGuiTableFlags, + outer_size: ImVec2, + inner_width: f32, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTable(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableNextRow(row_flags: ImGuiTableRowFlags, min_row_height: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableNextColumn() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetColumnIndex(column_n: cty::c_int) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetupColumn( + label: *const cty::c_char, + flags: ImGuiTableColumnFlags, + init_width_or_weight: f32, + user_id: ImGuiID, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetupScrollFreeze(cols: cty::c_int, rows: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableHeadersRow(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableHeader(label: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetSortSpecs() -> *mut ImGuiTableSortSpecs; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnCount() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnIndex() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetRowIndex() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnName(column_n: cty::c_int) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetColumnEnabled(column_n: cty::c_int, v: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColumns(count: cty::c_int, id: *const cty::c_char, border: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igNextColumn(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnIndex() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnWidth(column_index: cty::c_int) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetColumnWidth(column_index: cty::c_int, width: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnOffset(column_index: cty::c_int) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetColumnOffset(column_index: cty::c_int, offset_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnsCount() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTabBar(str_id: *const cty::c_char, flags: ImGuiTabBarFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTabBar(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTabItem( + label: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiTabItemFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTabItem(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTabItemButton(label: *const cty::c_char, flags: ImGuiTabItemFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetTabItemClosed(tab_or_docked_window_label: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDockSpace( + id: ImGuiID, + size: ImVec2, + flags: ImGuiDockNodeFlags, + window_class: *const ImGuiWindowClass, + ) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDockSpaceOverViewport( + viewport: *const ImGuiViewport, + flags: ImGuiDockNodeFlags, + window_class: *const ImGuiWindowClass, + ) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowDockID(dock_id: ImGuiID, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowClass(window_class: *const ImGuiWindowClass); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowDockID() -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowDocked() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogToTTY(auto_open_depth: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogToFile(auto_open_depth: cty::c_int, filename: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogToClipboard(auto_open_depth: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogFinish(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogButtons(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginDragDropSource(flags: ImGuiDragDropFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetDragDropPayload( + type_: *const cty::c_char, + data: *const cty::c_void, + sz: usize, + cond: ImGuiCond, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndDragDropSource(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginDragDropTarget() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igAcceptDragDropPayload( + type_: *const cty::c_char, + flags: ImGuiDragDropFlags, + ) -> *const ImGuiPayload; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndDragDropTarget(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetDragDropPayload() -> *const ImGuiPayload; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginDisabled(disabled: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndDisabled(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushClipRect( + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopClipRect(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetItemDefaultFocus(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetKeyboardFocusHere(offset: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemHovered(flags: ImGuiHoveredFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemActive() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemFocused() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemClicked(mouse_button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemVisible() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemEdited() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemActivated() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemDeactivated() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemDeactivatedAfterEdit() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemToggledOpen() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyItemHovered() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyItemActive() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyItemFocused() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetItemRectMin(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetItemRectMax(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetItemRectSize(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetItemAllowOverlap(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMainViewport() -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetBackgroundDrawList_Nil() -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetForegroundDrawList_Nil() -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetBackgroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetForegroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTime() -> f64; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFrameCount() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStyleColorName(idx: ImGuiCol) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetStateStorage(storage: *mut ImGuiStorage); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStateStorage() -> *mut ImGuiStorage; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginChildFrame(id: ImGuiID, size: ImVec2, flags: ImGuiWindowFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndChildFrame(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCalcTextSize( + pOut: *mut ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + hide_text_after_double_hash: bool, + wrap_width: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertU32ToFloat4(pOut: *mut ImVec4, in_: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertFloat4ToU32(in_: ImVec4) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertRGBtoHSV( + r: f32, + g: f32, + b: f32, + out_h: *mut f32, + out_s: *mut f32, + out_v: *mut f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertHSVtoRGB( + h: f32, + s: f32, + v: f32, + out_r: *mut f32, + out_g: *mut f32, + out_b: *mut f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyDown(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyPressed(key: ImGuiKey, repeat: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyReleased(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDown(button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseClicked(button: ImGuiMouseButton, repeat: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseReleased(button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMousePosValid(mouse_pos: *const ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyMouseDown() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMousePos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMousePosOnOpeningCurrentPopup(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDragging(button: ImGuiMouseButton, lock_threshold: f32) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMouseDragDelta(pOut: *mut ImVec2, button: ImGuiMouseButton, lock_threshold: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igResetMouseDragDelta(button: ImGuiMouseButton); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMouseCursor() -> ImGuiMouseCursor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetClipboardText() -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetClipboardText(text: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLoadIniSettingsFromDisk(ini_filename: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLoadIniSettingsFromMemory(ini_data: *const cty::c_char, ini_size: usize); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSaveIniSettingsToDisk(ini_filename: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugCheckVersionAndDataLayout( + version_str: *const cty::c_char, + sz_io: usize, + sz_style: usize, + sz_vec2: usize, + sz_vec4: usize, + sz_drawvert: usize, + sz_drawidx: usize, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetAllocatorFunctions( + alloc_func: ImGuiMemAllocFunc, + free_func: ImGuiMemFreeFunc, + user_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetAllocatorFunctions( + p_alloc_func: *mut ImGuiMemAllocFunc, + p_free_func: *mut ImGuiMemFreeFunc, + p_user_data: *mut *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMemAlloc(size: usize) -> *mut cty::c_void; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMemFree(ptr: *mut cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetPlatformIO() -> *mut ImGuiPlatformIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igUpdatePlatformWindows(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRenderPlatformWindowsDefault( + platform_render_arg: *mut cty::c_void, + renderer_render_arg: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDestroyPlatformWindows(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igFindViewportByID(id: ImGuiID) -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igFindViewportByPlatformHandle(platform_handle: *mut cty::c_void) -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyle_ImGuiStyle() -> *mut ImGuiStyle; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyle_destroy(self_: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseViewportEvent(self_: *mut ImGuiIO, id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_ClearInputKeys(self_: *mut ImGuiIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_ImGuiIO() -> *mut ImGuiIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_destroy(self_: *mut ImGuiIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_ImGuiInputTextCallbackData() -> *mut ImGuiInputTextCallbackData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_destroy(self_: *mut ImGuiInputTextCallbackData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_DeleteChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + bytes_count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_InsertChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_SelectAll(self_: *mut ImGuiInputTextCallbackData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_ClearSelection(self_: *mut ImGuiInputTextCallbackData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_HasSelection(self_: *mut ImGuiInputTextCallbackData) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiWindowClass_ImGuiWindowClass() -> *mut ImGuiWindowClass; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiWindowClass_destroy(self_: *mut ImGuiWindowClass); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_ImGuiPayload() -> *mut ImGuiPayload; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_destroy(self_: *mut ImGuiPayload); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_IsDataType(self_: *mut ImGuiPayload, type_: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_IsPreview(self_: *mut ImGuiPayload) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_IsDelivery(self_: *mut ImGuiPayload) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs() -> *mut ImGuiTableColumnSortSpecs; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableColumnSortSpecs_destroy(self_: *mut ImGuiTableColumnSortSpecs); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableSortSpecs_ImGuiTableSortSpecs() -> *mut ImGuiTableSortSpecs; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableSortSpecs_destroy(self_: *mut ImGuiTableSortSpecs); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiOnceUponAFrame_ImGuiOnceUponAFrame() -> *mut ImGuiOnceUponAFrame; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiOnceUponAFrame_destroy(self_: *mut ImGuiOnceUponAFrame); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_ImGuiTextFilter( + default_filter: *const cty::c_char, + ) -> *mut ImGuiTextFilter; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_destroy(self_: *mut ImGuiTextFilter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_Draw( + self_: *mut ImGuiTextFilter, + label: *const cty::c_char, + width: f32, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_PassFilter( + self_: *mut ImGuiTextFilter, + text: *const cty::c_char, + text_end: *const cty::c_char, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_Build(self_: *mut ImGuiTextFilter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_Clear(self_: *mut ImGuiTextFilter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Str( + _b: *const cty::c_char, + _e: *const cty::c_char, + ) -> *mut ImGuiTextRange; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_empty(self_: *mut ImGuiTextRange) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_split( + self_: *mut ImGuiTextRange, + separator: cty::c_char, + out: *mut ImVector_ImGuiTextRange, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_ImGuiTextBuffer() -> *mut ImGuiTextBuffer; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_destroy(self_: *mut ImGuiTextBuffer); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_empty(self_: *mut ImGuiTextBuffer) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_append( + self_: *mut ImGuiTextBuffer, + str_: *const cty::c_char, + str_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( + _key: ImGuiID, + _val_i: cty::c_int, + ) -> *mut ImGuiStoragePair; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( + _key: ImGuiID, + _val_f: f32, + ) -> *mut ImGuiStoragePair; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( + _key: ImGuiID, + _val_p: *mut cty::c_void, + ) -> *mut ImGuiStoragePair; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_Clear(self_: *mut ImGuiStorage); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetInt( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetBool(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetBool(self_: *mut ImGuiStorage, key: ImGuiID, val: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetFloat(self_: *mut ImGuiStorage, key: ImGuiID, default_val: f32) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut cty::c_void; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetIntRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> *mut cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetBoolRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: bool, + ) -> *mut bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetFloatRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: f32, + ) -> *mut f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetVoidPtrRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: *mut cty::c_void, + ) -> *mut *mut cty::c_void; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_ImGuiListClipper() -> *mut ImGuiListClipper; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_destroy(self_: *mut ImGuiListClipper); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_Begin( + self_: *mut ImGuiListClipper, + items_count: cty::c_int, + items_height: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_End(self_: *mut ImGuiListClipper); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_Step(self_: *mut ImGuiListClipper) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_ForceDisplayRangeByIndices( + self_: *mut ImGuiListClipper, + item_min: cty::c_int, + item_max: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Nil() -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_destroy(self_: *mut ImColor); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Int( + r: cty::c_int, + g: cty::c_int, + b: cty::c_int, + a: cty::c_int, + ) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_HSV(pOut: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawCmd_ImDrawCmd() -> *mut ImDrawCmd; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawCmd_destroy(self_: *mut ImDrawCmd); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawCmd_GetTexID(self_: *mut ImDrawCmd) -> ImTextureID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_ImDrawListSplitter() -> *mut ImDrawListSplitter; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_destroy(self_: *mut ImDrawListSplitter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_Clear(self_: *mut ImDrawListSplitter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_ClearFreeMemory(self_: *mut ImDrawListSplitter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_Split( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_Merge(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_SetCurrentChannel( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + channel_idx: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_destroy(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PushClipRect( + self_: *mut ImDrawList, + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PushClipRectFullScreen(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PopClipRect(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PushTextureID(self_: *mut ImDrawList, texture_id: ImTextureID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PopTextureID(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_GetClipRectMin(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_GetClipRectMax(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddLine( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + col: ImU32, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddRect( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddRectFilled( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + 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, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddQuad( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddQuadFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddTriangle( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddTriangleFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddCircle( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddCircleFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddNgon( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddNgonFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddText_Vec2( + self_: *mut ImDrawList, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddText_FontPtr( + self_: *mut ImDrawList, + font: *const ImFont, + font_size: f32, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip_rect: *const ImVec4, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddPolyline( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddConvexPolyFilled( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddBezierCubic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddBezierQuadratic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddImage( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddImageQuad( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + uv1: ImVec2, + uv2: ImVec2, + uv3: ImVec2, + uv4: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddImageRounded( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathClear(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathLineTo(self_: *mut ImDrawList, pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathLineToMergeDuplicate(self_: *mut ImDrawList, pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathStroke( + self_: *mut ImDrawList, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathArcTo( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathArcToFast( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_of_12: cty::c_int, + a_max_of_12: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathBezierCubicCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathBezierQuadraticCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathRect( + self_: *mut ImDrawList, + rect_min: ImVec2, + rect_max: ImVec2, + rounding: f32, + flags: ImDrawFlags, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddCallback( + self_: *mut ImDrawList, + callback: ImDrawCallback, + callback_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddDrawCmd(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_CloneOutput(self_: *mut ImDrawList) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimReserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimUnreserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimRect(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimRectUV( + self_: *mut ImDrawList, + a: ImVec2, + b: ImVec2, + uv_a: ImVec2, + uv_b: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + 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, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimWriteVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimWriteIdx(self_: *mut ImDrawList, idx: ImDrawIdx); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__ResetForNewFrame(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__ClearFreeMemory(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__PopUnusedDrawCmd(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__TryMergeDrawCmds(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__OnChangedClipRect(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__OnChangedTextureID(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__CalcCircleAutoSegmentCount( + self_: *mut ImDrawList, + radius: f32, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__PathArcToFastEx( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_sample: cty::c_int, + a_max_sample: cty::c_int, + a_step: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__PathArcToN( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_ImDrawData() -> *mut ImDrawData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_destroy(self_: *mut ImDrawData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_Clear(self_: *mut ImDrawData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_DeIndexAllBuffers(self_: *mut ImDrawData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_ScaleClipRects(self_: *mut ImDrawData, fb_scale: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontConfig_ImFontConfig() -> *mut ImFontConfig; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontConfig_destroy(self_: *mut ImFontConfig); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder() -> *mut ImFontGlyphRangesBuilder; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_destroy(self_: *mut ImFontGlyphRangesBuilder); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_Clear(self_: *mut ImFontGlyphRangesBuilder); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_GetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_SetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddChar(self_: *mut ImFontGlyphRangesBuilder, c: ImWchar); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddText( + self_: *mut ImFontGlyphRangesBuilder, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddRanges( + self_: *mut ImFontGlyphRangesBuilder, + ranges: *const ImWchar, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_BuildRanges( + self_: *mut ImFontGlyphRangesBuilder, + out_ranges: *mut ImVector_ImWchar, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlasCustomRect_ImFontAtlasCustomRect() -> *mut ImFontAtlasCustomRect; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlasCustomRect_destroy(self_: *mut ImFontAtlasCustomRect); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlasCustomRect_IsPacked(self_: *mut ImFontAtlasCustomRect) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ImFontAtlas() -> *mut ImFontAtlas; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_destroy(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFont( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontDefault( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromFileTTF( + self_: *mut ImFontAtlas, + filename: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryTTF( + self_: *mut ImFontAtlas, + font_data: *mut cty::c_void, + font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF( + self_: *mut ImFontAtlas, + compressed_font_data: *const cty::c_void, + compressed_font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF( + self_: *mut ImFontAtlas, + compressed_font_data_base85: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ClearInputData(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ClearTexData(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ClearFonts(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_Clear(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_Build(self_: *mut ImFontAtlas) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetTexDataAsAlpha8( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetTexDataAsRGBA32( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_IsBuilt(self_: *mut ImFontAtlas) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_SetTexID(self_: *mut ImFontAtlas, id: ImTextureID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesJapanese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseFull(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon( + self_: *mut ImFontAtlas, + ) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesCyrillic(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesThai(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesVietnamese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddCustomRectRegular( + self_: *mut ImFontAtlas, + width: cty::c_int, + height: cty::c_int, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddCustomRectFontGlyph( + self_: *mut ImFontAtlas, + font: *mut ImFont, + id: ImWchar, + width: cty::c_int, + height: cty::c_int, + advance_x: f32, + offset: ImVec2, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetCustomRectByIndex( + self_: *mut ImFontAtlas, + index: cty::c_int, + ) -> *mut ImFontAtlasCustomRect; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_CalcCustomRectUV( + self_: *mut ImFontAtlas, + rect: *const ImFontAtlasCustomRect, + out_uv_min: *mut ImVec2, + out_uv_max: *mut ImVec2, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetMouseCursorTexData( + self_: *mut ImFontAtlas, + cursor: ImGuiMouseCursor, + out_offset: *mut ImVec2, + out_size: *mut ImVec2, + out_uv_border: *mut ImVec2, + out_uv_fill: *mut ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_ImFont() -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_destroy(self_: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_FindGlyph(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_FindGlyphNoFallback(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_GetCharAdvance(self_: *mut ImFont, c: ImWchar) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_IsLoaded(self_: *mut ImFont) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_CalcTextSizeA( + pOut: *mut ImVec2, + self_: *mut ImFont, + size: f32, + max_width: f32, + wrap_width: f32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + remaining: *mut *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_CalcWordWrapPositionA( + self_: *mut ImFont, + scale: f32, + text: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + ) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_RenderChar( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + c: ImWchar, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_RenderText( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + clip_rect: ImVec4, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_BuildLookupTable(self_: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_ClearOutputData(self_: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_AddGlyph( + self_: *mut ImFont, + src_cfg: *const ImFontConfig, + c: ImWchar, + x0: f32, + y0: f32, + x1: f32, + y1: f32, + u0: f32, + v0: f32, + u1: f32, + v1: f32, + advance_x: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_AddRemapChar(self_: *mut ImFont, dst: ImWchar, src: ImWchar, overwrite_dst: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_SetGlyphVisible(self_: *mut ImFont, c: ImWchar, visible: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_IsGlyphRangeUnused( + self_: *mut ImFont, + c_begin: cty::c_uint, + c_last: cty::c_uint, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_ImGuiViewport() -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_destroy(self_: *mut ImGuiViewport); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_GetCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformIO_ImGuiPlatformIO() -> *mut ImGuiPlatformIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformIO_destroy(self_: *mut ImGuiPlatformIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformMonitor_ImGuiPlatformMonitor() -> *mut ImGuiPlatformMonitor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformMonitor_destroy(self_: *mut ImGuiPlatformMonitor); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiFreeType_GetBuilderForFreeType() -> *const ImFontBuilderIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiFreeType_SetAllocatorFunctions( + alloc_func: ::core::option::Option< + unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void, + >, + free_func: ::core::option::Option< + unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), + >, + user_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogText(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_appendf(buffer: *mut ImGuiTextBuffer, fmt: *const cty::c_char, ...); +} diff --git a/imgui-sys/src/wasm_freetype_bindings.rs b/imgui-sys/src/wasm_freetype_bindings.rs new file mode 100644 index 000000000..c7b186af5 --- /dev/null +++ b/imgui-sys/src/wasm_freetype_bindings.rs @@ -0,0 +1,5336 @@ +/* automatically generated by rust-bindgen 0.63.0 */ + +#![allow(nonstandard_style, clippy::all)] + +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { + storage: Storage, +} +impl __BindgenBitfieldUnit { + #[inline] + pub const fn new(storage: Storage) -> Self { + Self { storage } + } +} +impl __BindgenBitfieldUnit +where + Storage: AsRef<[u8]> + AsMut<[u8]>, +{ + #[inline] + pub fn get_bit(&self, index: usize) -> bool { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = self.storage.as_ref()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + byte & mask == mask + } + #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + if val { + *byte |= mask; + } else { + *byte &= !mask; + } + } + #[inline] + pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if self.get_bit(i + bit_offset) { + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + val |= 1 << index; + } + } + val + } + #[inline] + pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + self.set_bit(index + bit_offset, val_bit_is_set); + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImDrawListSharedData { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImFontBuilderIO { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImGuiContext { + _unused: [u8; 0], +} +pub type ImGuiCol = cty::c_int; +pub type ImGuiCond = cty::c_int; +pub type ImGuiDataType = cty::c_int; +pub type ImGuiDir = cty::c_int; +pub type ImGuiMouseButton = cty::c_int; +pub type ImGuiMouseCursor = cty::c_int; +pub type ImGuiSortDirection = cty::c_int; +pub type ImGuiStyleVar = cty::c_int; +pub type ImGuiTableBgTarget = cty::c_int; +pub type ImDrawFlags = cty::c_int; +pub type ImDrawListFlags = cty::c_int; +pub type ImFontAtlasFlags = cty::c_int; +pub type ImGuiBackendFlags = cty::c_int; +pub type ImGuiButtonFlags = cty::c_int; +pub type ImGuiColorEditFlags = cty::c_int; +pub type ImGuiConfigFlags = cty::c_int; +pub type ImGuiComboFlags = cty::c_int; +pub type ImGuiDragDropFlags = cty::c_int; +pub type ImGuiFocusedFlags = cty::c_int; +pub type ImGuiHoveredFlags = cty::c_int; +pub type ImGuiInputTextFlags = cty::c_int; +pub type ImGuiKeyChord = cty::c_int; +pub type ImGuiPopupFlags = cty::c_int; +pub type ImGuiSelectableFlags = cty::c_int; +pub type ImGuiSliderFlags = cty::c_int; +pub type ImGuiTabBarFlags = cty::c_int; +pub type ImGuiTabItemFlags = cty::c_int; +pub type ImGuiTableFlags = cty::c_int; +pub type ImGuiTableColumnFlags = cty::c_int; +pub type ImGuiTableRowFlags = cty::c_int; +pub type ImGuiTreeNodeFlags = cty::c_int; +pub type ImGuiViewportFlags = cty::c_int; +pub type ImGuiWindowFlags = cty::c_int; +pub type ImTextureID = *mut cty::c_void; +pub type ImDrawIdx = cty::c_ushort; +pub type ImGuiID = cty::c_uint; +pub type ImS8 = cty::c_schar; +pub type ImU8 = cty::c_uchar; +pub type ImS16 = cty::c_short; +pub type ImU16 = cty::c_ushort; +pub type ImU32 = cty::c_uint; +pub type ImWchar16 = cty::c_ushort; +pub type ImWchar32 = cty::c_uint; +pub type ImWchar = ImWchar32; +pub type ImGuiInputTextCallback = ::core::option::Option< + unsafe extern "C" fn(data: *mut ImGuiInputTextCallbackData) -> cty::c_int, +>; +pub type ImGuiSizeCallback = + ::core::option::Option; +pub type ImGuiMemAllocFunc = ::core::option::Option< + unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void, +>; +pub type ImGuiMemFreeFunc = ::core::option::Option< + unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec2 { + pub x: f32, + pub y: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec4 { + pub x: f32, + pub y: f32, + pub z: f32, + pub w: f32, +} +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_AlwaysUseWindowPadding: ImGuiWindowFlags_ = 65536; +pub const ImGuiWindowFlags_NoNavInputs: ImGuiWindowFlags_ = 262144; +pub const ImGuiWindowFlags_NoNavFocus: ImGuiWindowFlags_ = 524288; +pub const ImGuiWindowFlags_UnsavedDocument: ImGuiWindowFlags_ = 1048576; +pub const ImGuiWindowFlags_NoNav: ImGuiWindowFlags_ = 786432; +pub const ImGuiWindowFlags_NoDecoration: ImGuiWindowFlags_ = 43; +pub const ImGuiWindowFlags_NoInputs: ImGuiWindowFlags_ = 786944; +pub const ImGuiWindowFlags_NavFlattened: ImGuiWindowFlags_ = 8388608; +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 type ImGuiWindowFlags_ = cty::c_uint; +pub const ImGuiInputTextFlags_None: ImGuiInputTextFlags_ = 0; +pub const ImGuiInputTextFlags_CharsDecimal: ImGuiInputTextFlags_ = 1; +pub const ImGuiInputTextFlags_CharsHexadecimal: ImGuiInputTextFlags_ = 2; +pub const ImGuiInputTextFlags_CharsUppercase: ImGuiInputTextFlags_ = 4; +pub const ImGuiInputTextFlags_CharsNoBlank: ImGuiInputTextFlags_ = 8; +pub const ImGuiInputTextFlags_AutoSelectAll: ImGuiInputTextFlags_ = 16; +pub const ImGuiInputTextFlags_EnterReturnsTrue: ImGuiInputTextFlags_ = 32; +pub const ImGuiInputTextFlags_CallbackCompletion: ImGuiInputTextFlags_ = 64; +pub const ImGuiInputTextFlags_CallbackHistory: ImGuiInputTextFlags_ = 128; +pub const ImGuiInputTextFlags_CallbackAlways: ImGuiInputTextFlags_ = 256; +pub const ImGuiInputTextFlags_CallbackCharFilter: ImGuiInputTextFlags_ = 512; +pub const ImGuiInputTextFlags_AllowTabInput: ImGuiInputTextFlags_ = 1024; +pub const ImGuiInputTextFlags_CtrlEnterForNewLine: ImGuiInputTextFlags_ = 2048; +pub const ImGuiInputTextFlags_NoHorizontalScroll: ImGuiInputTextFlags_ = 4096; +pub const ImGuiInputTextFlags_AlwaysOverwrite: ImGuiInputTextFlags_ = 8192; +pub const ImGuiInputTextFlags_ReadOnly: ImGuiInputTextFlags_ = 16384; +pub const ImGuiInputTextFlags_Password: ImGuiInputTextFlags_ = 32768; +pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536; +pub const ImGuiInputTextFlags_CharsScientific: ImGuiInputTextFlags_ = 131072; +pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags_ = 262144; +pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags_ = 524288; +pub const ImGuiInputTextFlags_EscapeClearsAll: ImGuiInputTextFlags_ = 1048576; +pub type ImGuiInputTextFlags_ = cty::c_uint; +pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags_ = 0; +pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags_ = 1; +pub const ImGuiTreeNodeFlags_Framed: ImGuiTreeNodeFlags_ = 2; +pub const ImGuiTreeNodeFlags_AllowItemOverlap: 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_NavLeftJumpsBackHere: ImGuiTreeNodeFlags_ = 8192; +pub const ImGuiTreeNodeFlags_CollapsingHeader: ImGuiTreeNodeFlags_ = 26; +pub type ImGuiTreeNodeFlags_ = cty::c_uint; +pub const ImGuiPopupFlags_None: ImGuiPopupFlags_ = 0; +pub const ImGuiPopupFlags_MouseButtonLeft: ImGuiPopupFlags_ = 0; +pub const ImGuiPopupFlags_MouseButtonRight: ImGuiPopupFlags_ = 1; +pub const ImGuiPopupFlags_MouseButtonMiddle: ImGuiPopupFlags_ = 2; +pub const ImGuiPopupFlags_MouseButtonMask_: ImGuiPopupFlags_ = 31; +pub const ImGuiPopupFlags_MouseButtonDefault_: ImGuiPopupFlags_ = 1; +pub const ImGuiPopupFlags_NoOpenOverExistingPopup: ImGuiPopupFlags_ = 32; +pub const ImGuiPopupFlags_NoOpenOverItems: ImGuiPopupFlags_ = 64; +pub const ImGuiPopupFlags_AnyPopupId: ImGuiPopupFlags_ = 128; +pub const ImGuiPopupFlags_AnyPopupLevel: ImGuiPopupFlags_ = 256; +pub const ImGuiPopupFlags_AnyPopup: ImGuiPopupFlags_ = 384; +pub type ImGuiPopupFlags_ = cty::c_uint; +pub const ImGuiSelectableFlags_None: ImGuiSelectableFlags_ = 0; +pub const ImGuiSelectableFlags_DontClosePopups: ImGuiSelectableFlags_ = 1; +pub const ImGuiSelectableFlags_SpanAllColumns: ImGuiSelectableFlags_ = 2; +pub const ImGuiSelectableFlags_AllowDoubleClick: ImGuiSelectableFlags_ = 4; +pub const ImGuiSelectableFlags_Disabled: ImGuiSelectableFlags_ = 8; +pub const ImGuiSelectableFlags_AllowItemOverlap: ImGuiSelectableFlags_ = 16; +pub type ImGuiSelectableFlags_ = cty::c_uint; +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_HeightMask_: ImGuiComboFlags_ = 30; +pub type ImGuiComboFlags_ = cty::c_uint; +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_FittingPolicyResizeDown: ImGuiTabBarFlags_ = 64; +pub const ImGuiTabBarFlags_FittingPolicyScroll: ImGuiTabBarFlags_ = 128; +pub const ImGuiTabBarFlags_FittingPolicyMask_: ImGuiTabBarFlags_ = 192; +pub const ImGuiTabBarFlags_FittingPolicyDefault_: ImGuiTabBarFlags_ = 64; +pub type ImGuiTabBarFlags_ = cty::c_uint; +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 type ImGuiTabItemFlags_ = cty::c_uint; +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_SizingMask_: ImGuiTableFlags_ = 57344; +pub type ImGuiTableFlags_ = cty::c_uint; +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_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 type ImGuiTableColumnFlags_ = cty::c_uint; +pub const ImGuiTableRowFlags_None: ImGuiTableRowFlags_ = 0; +pub const ImGuiTableRowFlags_Headers: ImGuiTableRowFlags_ = 1; +pub type ImGuiTableRowFlags_ = cty::c_uint; +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 type ImGuiTableBgTarget_ = cty::c_uint; +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 type ImGuiFocusedFlags_ = cty::c_uint; +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_AllowWhenOverlapped: ImGuiHoveredFlags_ = 256; +pub const ImGuiHoveredFlags_AllowWhenDisabled: ImGuiHoveredFlags_ = 512; +pub const ImGuiHoveredFlags_NoNavOverride: ImGuiHoveredFlags_ = 1024; +pub const ImGuiHoveredFlags_RectOnly: ImGuiHoveredFlags_ = 416; +pub const ImGuiHoveredFlags_RootAndChildWindows: ImGuiHoveredFlags_ = 3; +pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags_ = 2048; +pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags_ = 4096; +pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags_ = 8192; +pub type ImGuiHoveredFlags_ = cty::c_uint; +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_SourceAutoExpirePayload: ImGuiDragDropFlags_ = 32; +pub const ImGuiDragDropFlags_AcceptBeforeDelivery: ImGuiDragDropFlags_ = 1024; +pub const ImGuiDragDropFlags_AcceptNoDrawDefaultRect: ImGuiDragDropFlags_ = 2048; +pub const ImGuiDragDropFlags_AcceptNoPreviewTooltip: ImGuiDragDropFlags_ = 4096; +pub const ImGuiDragDropFlags_AcceptPeekOnly: ImGuiDragDropFlags_ = 3072; +pub type ImGuiDragDropFlags_ = cty::c_uint; +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_COUNT: ImGuiDataType_ = 10; +pub type ImGuiDataType_ = cty::c_uint; +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 type ImGuiDir_ = cty::c_int; +pub const ImGuiSortDirection_None: ImGuiSortDirection_ = 0; +pub const ImGuiSortDirection_Ascending: ImGuiSortDirection_ = 1; +pub const ImGuiSortDirection_Descending: ImGuiSortDirection_ = 2; +pub type ImGuiSortDirection_ = cty::c_uint; +pub const ImGuiKey_None: ImGuiKey = 0; +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_Apostrophe: ImGuiKey = 584; +pub const ImGuiKey_Comma: ImGuiKey = 585; +pub const ImGuiKey_Minus: ImGuiKey = 586; +pub const ImGuiKey_Period: ImGuiKey = 587; +pub const ImGuiKey_Slash: ImGuiKey = 588; +pub const ImGuiKey_Semicolon: ImGuiKey = 589; +pub const ImGuiKey_Equal: ImGuiKey = 590; +pub const ImGuiKey_LeftBracket: ImGuiKey = 591; +pub const ImGuiKey_Backslash: ImGuiKey = 592; +pub const ImGuiKey_RightBracket: ImGuiKey = 593; +pub const ImGuiKey_GraveAccent: ImGuiKey = 594; +pub const ImGuiKey_CapsLock: ImGuiKey = 595; +pub const ImGuiKey_ScrollLock: ImGuiKey = 596; +pub const ImGuiKey_NumLock: ImGuiKey = 597; +pub const ImGuiKey_PrintScreen: ImGuiKey = 598; +pub const ImGuiKey_Pause: ImGuiKey = 599; +pub const ImGuiKey_Keypad0: ImGuiKey = 600; +pub const ImGuiKey_Keypad1: ImGuiKey = 601; +pub const ImGuiKey_Keypad2: ImGuiKey = 602; +pub const ImGuiKey_Keypad3: ImGuiKey = 603; +pub const ImGuiKey_Keypad4: ImGuiKey = 604; +pub const ImGuiKey_Keypad5: ImGuiKey = 605; +pub const ImGuiKey_Keypad6: ImGuiKey = 606; +pub const ImGuiKey_Keypad7: ImGuiKey = 607; +pub const ImGuiKey_Keypad8: ImGuiKey = 608; +pub const ImGuiKey_Keypad9: ImGuiKey = 609; +pub const ImGuiKey_KeypadDecimal: ImGuiKey = 610; +pub const ImGuiKey_KeypadDivide: ImGuiKey = 611; +pub const ImGuiKey_KeypadMultiply: ImGuiKey = 612; +pub const ImGuiKey_KeypadSubtract: ImGuiKey = 613; +pub const ImGuiKey_KeypadAdd: ImGuiKey = 614; +pub const ImGuiKey_KeypadEnter: ImGuiKey = 615; +pub const ImGuiKey_KeypadEqual: ImGuiKey = 616; +pub const ImGuiKey_GamepadStart: ImGuiKey = 617; +pub const ImGuiKey_GamepadBack: ImGuiKey = 618; +pub const ImGuiKey_GamepadFaceLeft: ImGuiKey = 619; +pub const ImGuiKey_GamepadFaceRight: ImGuiKey = 620; +pub const ImGuiKey_GamepadFaceUp: ImGuiKey = 621; +pub const ImGuiKey_GamepadFaceDown: ImGuiKey = 622; +pub const ImGuiKey_GamepadDpadLeft: ImGuiKey = 623; +pub const ImGuiKey_GamepadDpadRight: ImGuiKey = 624; +pub const ImGuiKey_GamepadDpadUp: ImGuiKey = 625; +pub const ImGuiKey_GamepadDpadDown: ImGuiKey = 626; +pub const ImGuiKey_GamepadL1: ImGuiKey = 627; +pub const ImGuiKey_GamepadR1: ImGuiKey = 628; +pub const ImGuiKey_GamepadL2: ImGuiKey = 629; +pub const ImGuiKey_GamepadR2: ImGuiKey = 630; +pub const ImGuiKey_GamepadL3: ImGuiKey = 631; +pub const ImGuiKey_GamepadR3: ImGuiKey = 632; +pub const ImGuiKey_GamepadLStickLeft: ImGuiKey = 633; +pub const ImGuiKey_GamepadLStickRight: ImGuiKey = 634; +pub const ImGuiKey_GamepadLStickUp: ImGuiKey = 635; +pub const ImGuiKey_GamepadLStickDown: ImGuiKey = 636; +pub const ImGuiKey_GamepadRStickLeft: ImGuiKey = 637; +pub const ImGuiKey_GamepadRStickRight: ImGuiKey = 638; +pub const ImGuiKey_GamepadRStickUp: ImGuiKey = 639; +pub const ImGuiKey_GamepadRStickDown: ImGuiKey = 640; +pub const ImGuiKey_MouseLeft: ImGuiKey = 641; +pub const ImGuiKey_MouseRight: ImGuiKey = 642; +pub const ImGuiKey_MouseMiddle: ImGuiKey = 643; +pub const ImGuiKey_MouseX1: ImGuiKey = 644; +pub const ImGuiKey_MouseX2: ImGuiKey = 645; +pub const ImGuiKey_MouseWheelX: ImGuiKey = 646; +pub const ImGuiKey_MouseWheelY: ImGuiKey = 647; +pub const ImGuiKey_ReservedForModCtrl: ImGuiKey = 648; +pub const ImGuiKey_ReservedForModShift: ImGuiKey = 649; +pub const ImGuiKey_ReservedForModAlt: ImGuiKey = 650; +pub const ImGuiKey_ReservedForModSuper: ImGuiKey = 651; +pub const ImGuiKey_COUNT: ImGuiKey = 652; +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 ImGuiMod_Shortcut: ImGuiKey = 4096; +pub const ImGuiKey_NamedKey_BEGIN: ImGuiKey = 512; +pub const ImGuiKey_NamedKey_END: ImGuiKey = 652; +pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 140; +pub const ImGuiKey_KeysData_SIZE: ImGuiKey = 652; +pub const ImGuiKey_KeysData_OFFSET: ImGuiKey = 0; +pub type ImGuiKey = cty::c_uint; +pub const ImGuiNavInput_Activate: ImGuiNavInput = 0; +pub const ImGuiNavInput_Cancel: ImGuiNavInput = 1; +pub const ImGuiNavInput_Input: ImGuiNavInput = 2; +pub const ImGuiNavInput_Menu: ImGuiNavInput = 3; +pub const ImGuiNavInput_DpadLeft: ImGuiNavInput = 4; +pub const ImGuiNavInput_DpadRight: ImGuiNavInput = 5; +pub const ImGuiNavInput_DpadUp: ImGuiNavInput = 6; +pub const ImGuiNavInput_DpadDown: ImGuiNavInput = 7; +pub const ImGuiNavInput_LStickLeft: ImGuiNavInput = 8; +pub const ImGuiNavInput_LStickRight: ImGuiNavInput = 9; +pub const ImGuiNavInput_LStickUp: ImGuiNavInput = 10; +pub const ImGuiNavInput_LStickDown: ImGuiNavInput = 11; +pub const ImGuiNavInput_FocusPrev: ImGuiNavInput = 12; +pub const ImGuiNavInput_FocusNext: ImGuiNavInput = 13; +pub const ImGuiNavInput_TweakSlow: ImGuiNavInput = 14; +pub const ImGuiNavInput_TweakFast: ImGuiNavInput = 15; +pub const ImGuiNavInput_COUNT: ImGuiNavInput = 16; +pub type ImGuiNavInput = cty::c_uint; +pub const ImGuiConfigFlags_None: ImGuiConfigFlags_ = 0; +pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags_ = 1; +pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags_ = 2; +pub const ImGuiConfigFlags_NavEnableSetMousePos: ImGuiConfigFlags_ = 4; +pub const ImGuiConfigFlags_NavNoCaptureKeyboard: ImGuiConfigFlags_ = 8; +pub const ImGuiConfigFlags_NoMouse: ImGuiConfigFlags_ = 16; +pub const ImGuiConfigFlags_NoMouseCursorChange: ImGuiConfigFlags_ = 32; +pub const ImGuiConfigFlags_IsSRGB: ImGuiConfigFlags_ = 1048576; +pub const ImGuiConfigFlags_IsTouchScreen: ImGuiConfigFlags_ = 2097152; +pub type ImGuiConfigFlags_ = cty::c_uint; +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 type ImGuiBackendFlags_ = cty::c_uint; +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_SliderGrab: ImGuiCol_ = 19; +pub const ImGuiCol_SliderGrabActive: ImGuiCol_ = 20; +pub const ImGuiCol_Button: ImGuiCol_ = 21; +pub const ImGuiCol_ButtonHovered: ImGuiCol_ = 22; +pub const ImGuiCol_ButtonActive: ImGuiCol_ = 23; +pub const ImGuiCol_Header: ImGuiCol_ = 24; +pub const ImGuiCol_HeaderHovered: ImGuiCol_ = 25; +pub const ImGuiCol_HeaderActive: ImGuiCol_ = 26; +pub const ImGuiCol_Separator: ImGuiCol_ = 27; +pub const ImGuiCol_SeparatorHovered: ImGuiCol_ = 28; +pub const ImGuiCol_SeparatorActive: ImGuiCol_ = 29; +pub const ImGuiCol_ResizeGrip: ImGuiCol_ = 30; +pub const ImGuiCol_ResizeGripHovered: ImGuiCol_ = 31; +pub const ImGuiCol_ResizeGripActive: ImGuiCol_ = 32; +pub const ImGuiCol_Tab: ImGuiCol_ = 33; +pub const ImGuiCol_TabHovered: ImGuiCol_ = 34; +pub const ImGuiCol_TabActive: ImGuiCol_ = 35; +pub const ImGuiCol_TabUnfocused: ImGuiCol_ = 36; +pub const ImGuiCol_TabUnfocusedActive: ImGuiCol_ = 37; +pub const ImGuiCol_PlotLines: ImGuiCol_ = 38; +pub const ImGuiCol_PlotLinesHovered: ImGuiCol_ = 39; +pub const ImGuiCol_PlotHistogram: ImGuiCol_ = 40; +pub const ImGuiCol_PlotHistogramHovered: ImGuiCol_ = 41; +pub const ImGuiCol_TableHeaderBg: ImGuiCol_ = 42; +pub const ImGuiCol_TableBorderStrong: ImGuiCol_ = 43; +pub const ImGuiCol_TableBorderLight: ImGuiCol_ = 44; +pub const ImGuiCol_TableRowBg: ImGuiCol_ = 45; +pub const ImGuiCol_TableRowBgAlt: ImGuiCol_ = 46; +pub const ImGuiCol_TextSelectedBg: ImGuiCol_ = 47; +pub const ImGuiCol_DragDropTarget: ImGuiCol_ = 48; +pub const ImGuiCol_NavHighlight: ImGuiCol_ = 49; +pub const ImGuiCol_NavWindowingHighlight: ImGuiCol_ = 50; +pub const ImGuiCol_NavWindowingDimBg: ImGuiCol_ = 51; +pub const ImGuiCol_ModalWindowDimBg: ImGuiCol_ = 52; +pub const ImGuiCol_COUNT: ImGuiCol_ = 53; +pub type ImGuiCol_ = cty::c_uint; +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_GrabMinSize: ImGuiStyleVar_ = 20; +pub const ImGuiStyleVar_GrabRounding: ImGuiStyleVar_ = 21; +pub const ImGuiStyleVar_TabRounding: ImGuiStyleVar_ = 22; +pub const ImGuiStyleVar_ButtonTextAlign: ImGuiStyleVar_ = 23; +pub const ImGuiStyleVar_SelectableTextAlign: ImGuiStyleVar_ = 24; +pub const ImGuiStyleVar_COUNT: ImGuiStyleVar_ = 25; +pub type ImGuiStyleVar_ = cty::c_uint; +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_MouseButtonDefault_: ImGuiButtonFlags_ = 1; +pub type ImGuiButtonFlags_ = cty::c_uint; +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_AlphaBar: ImGuiColorEditFlags_ = 65536; +pub const ImGuiColorEditFlags_AlphaPreview: ImGuiColorEditFlags_ = 131072; +pub const ImGuiColorEditFlags_AlphaPreviewHalf: 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_InputRGB: ImGuiColorEditFlags_ = 134217728; +pub const ImGuiColorEditFlags_InputHSV: ImGuiColorEditFlags_ = 268435456; +pub const ImGuiColorEditFlags_DefaultOptions_: ImGuiColorEditFlags_ = 177209344; +pub const ImGuiColorEditFlags_DisplayMask_: ImGuiColorEditFlags_ = 7340032; +pub const ImGuiColorEditFlags_DataTypeMask_: ImGuiColorEditFlags_ = 25165824; +pub const ImGuiColorEditFlags_PickerMask_: ImGuiColorEditFlags_ = 100663296; +pub const ImGuiColorEditFlags_InputMask_: ImGuiColorEditFlags_ = 402653184; +pub type ImGuiColorEditFlags_ = cty::c_uint; +pub const ImGuiSliderFlags_None: ImGuiSliderFlags_ = 0; +pub const ImGuiSliderFlags_AlwaysClamp: ImGuiSliderFlags_ = 16; +pub const ImGuiSliderFlags_Logarithmic: ImGuiSliderFlags_ = 32; +pub const ImGuiSliderFlags_NoRoundToFormat: ImGuiSliderFlags_ = 64; +pub const ImGuiSliderFlags_NoInput: ImGuiSliderFlags_ = 128; +pub const ImGuiSliderFlags_InvalidMask_: ImGuiSliderFlags_ = 1879048207; +pub type ImGuiSliderFlags_ = cty::c_uint; +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 type ImGuiMouseButton_ = cty::c_uint; +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_NotAllowed: ImGuiMouseCursor_ = 8; +pub const ImGuiMouseCursor_COUNT: ImGuiMouseCursor_ = 9; +pub type ImGuiMouseCursor_ = cty::c_int; +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 type ImGuiCond_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiStyle { + pub Alpha: f32, + pub DisabledAlpha: f32, + pub WindowPadding: ImVec2, + pub WindowRounding: f32, + pub WindowBorderSize: 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 GrabMinSize: f32, + pub GrabRounding: f32, + pub LogSliderDeadzone: f32, + pub TabRounding: f32, + pub TabBorderSize: f32, + pub TabMinWidthForCloseButton: f32, + pub ColorButtonPosition: ImGuiDir, + pub ButtonTextAlign: ImVec2, + pub SelectableTextAlign: ImVec2, + pub DisplayWindowPadding: ImVec2, + pub DisplaySafeAreaPadding: ImVec2, + pub MouseCursorScale: f32, + pub AntiAliasedLines: bool, + pub AntiAliasedLinesUseTex: bool, + pub AntiAliasedFill: bool, + pub CurveTessellationTol: f32, + pub CircleTessellationMaxError: f32, + pub Colors: [ImVec4; 53usize], +} +impl Default for ImGuiStyle { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiKeyData { + pub Down: bool, + pub DownDuration: f32, + pub DownDurationPrev: f32, + pub AnalogValue: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImWchar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImWchar, +} +impl Default for ImVector_ImWchar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiIO { + pub ConfigFlags: ImGuiConfigFlags, + pub BackendFlags: ImGuiBackendFlags, + pub DisplaySize: ImVec2, + pub DeltaTime: f32, + pub IniSavingRate: f32, + pub IniFilename: *const cty::c_char, + pub LogFilename: *const cty::c_char, + pub MouseDoubleClickTime: f32, + pub MouseDoubleClickMaxDist: f32, + pub MouseDragThreshold: f32, + pub KeyRepeatDelay: f32, + pub KeyRepeatRate: f32, + pub HoverDelayNormal: f32, + pub HoverDelayShort: f32, + pub UserData: *mut cty::c_void, + pub Fonts: *mut ImFontAtlas, + pub FontGlobalScale: f32, + pub FontAllowUserScaling: bool, + pub FontDefault: *mut ImFont, + pub DisplayFramebufferScale: ImVec2, + pub MouseDrawCursor: bool, + pub ConfigMacOSXBehaviors: bool, + pub ConfigInputTrickleEventQueue: bool, + pub ConfigInputTextCursorBlink: bool, + pub ConfigInputTextEnterKeepActive: bool, + pub ConfigDragClickToInputText: bool, + pub ConfigWindowsResizeFromEdges: bool, + pub ConfigWindowsMoveFromTitleBarOnly: bool, + pub ConfigMemoryCompactTimer: f32, + pub BackendPlatformName: *const cty::c_char, + pub BackendRendererName: *const cty::c_char, + pub BackendPlatformUserData: *mut cty::c_void, + pub BackendRendererUserData: *mut cty::c_void, + pub BackendLanguageUserData: *mut cty::c_void, + pub GetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void) -> *const cty::c_char, + >, + pub SetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, text: *const cty::c_char), + >, + pub ClipboardUserData: *mut cty::c_void, + pub SetPlatformImeDataFn: ::core::option::Option< + unsafe extern "C" fn(viewport: *mut ImGuiViewport, data: *mut ImGuiPlatformImeData), + >, + pub _UnusedPadding: *mut cty::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: cty::c_int, + pub MetricsRenderIndices: cty::c_int, + pub MetricsRenderWindows: cty::c_int, + pub MetricsActiveWindows: cty::c_int, + pub MetricsActiveAllocations: cty::c_int, + pub MouseDelta: ImVec2, + pub KeyMap: [cty::c_int; 652usize], + pub KeysDown: [bool; 652usize], + pub NavInputs: [f32; 16usize], + pub MousePos: ImVec2, + pub MouseDown: [bool; 5usize], + pub MouseWheel: f32, + pub MouseWheelH: f32, + pub KeyCtrl: bool, + pub KeyShift: bool, + pub KeyAlt: bool, + pub KeySuper: bool, + pub KeyMods: ImGuiKeyChord, + pub KeysData: [ImGuiKeyData; 652usize], + pub WantCaptureMouseUnlessPopupClose: bool, + pub MousePosPrev: ImVec2, + pub MouseClickedPos: [ImVec2; 5usize], + pub MouseClickedTime: [f64; 5usize], + pub MouseClicked: [bool; 5usize], + pub MouseDoubleClicked: [bool; 5usize], + pub MouseClickedCount: [ImU16; 5usize], + pub MouseClickedLastCount: [ImU16; 5usize], + pub MouseReleased: [bool; 5usize], + pub MouseDownOwned: [bool; 5usize], + pub MouseDownOwnedUnlessPopupClose: [bool; 5usize], + pub MouseDownDuration: [f32; 5usize], + pub MouseDownDurationPrev: [f32; 5usize], + pub MouseDragMaxDistanceSqr: [f32; 5usize], + pub PenPressure: f32, + pub AppFocusLost: bool, + pub AppAcceptingEvents: bool, + pub BackendUsingLegacyKeyArrays: ImS8, + pub BackendUsingLegacyNavInputArray: bool, + pub InputQueueSurrogate: ImWchar16, + pub InputQueueCharacters: ImVector_ImWchar, +} +impl Default for ImGuiIO { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputTextCallbackData { + pub EventFlag: ImGuiInputTextFlags, + pub Flags: ImGuiInputTextFlags, + pub UserData: *mut cty::c_void, + pub EventChar: ImWchar, + pub EventKey: ImGuiKey, + pub Buf: *mut cty::c_char, + pub BufTextLen: cty::c_int, + pub BufSize: cty::c_int, + pub BufDirty: bool, + pub CursorPos: cty::c_int, + pub SelectionStart: cty::c_int, + pub SelectionEnd: cty::c_int, +} +impl Default for ImGuiInputTextCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiSizeCallbackData { + pub UserData: *mut cty::c_void, + pub Pos: ImVec2, + pub CurrentSize: ImVec2, + pub DesiredSize: ImVec2, +} +impl Default for ImGuiSizeCallbackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPayload { + pub Data: *mut cty::c_void, + pub DataSize: cty::c_int, + pub SourceId: ImGuiID, + pub SourceParentId: ImGuiID, + pub DataFrameCount: cty::c_int, + pub DataType: [cty::c_char; 33usize], + pub Preview: bool, + pub Delivery: bool, +} +impl Default for ImGuiPayload { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableColumnSortSpecs { + pub ColumnUserID: ImGuiID, + pub ColumnIndex: ImS16, + pub SortOrder: ImS16, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl ImGuiTableColumnSortSpecs { + #[inline] + pub fn SortDirection(&self) -> ImGuiSortDirection { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImGuiSortDirection) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImGuiSortDirection, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableSortSpecs { + pub Specs: *const ImGuiTableColumnSortSpecs, + pub SpecsCount: cty::c_int, + pub SpecsDirty: bool, +} +impl Default for ImGuiTableSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiOnceUponAFrame { + pub RefFrame: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextRange { + pub b: *const cty::c_char, + pub e: *const cty::c_char, +} +impl Default for ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTextRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTextRange, +} +impl Default for ImVector_ImGuiTextRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextFilter { + pub InputBuf: [cty::c_char; 256usize], + pub Filters: ImVector_ImGuiTextRange, + pub CountGrep: cty::c_int, +} +impl Default for ImGuiTextFilter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_char, +} +impl Default for ImVector_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextBuffer { + pub Buf: ImVector_char, +} +impl Default for ImGuiTextBuffer { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiStoragePair { + pub key: ImGuiID, + pub __bindgen_anon_1: ImGuiStoragePair__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiStoragePair__bindgen_ty_1 { + pub val_i: cty::c_int, + pub val_f: f32, + pub val_p: *mut cty::c_void, +} +impl Default for ImGuiStoragePair__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiStoragePair__bindgen_ty_1 {{ union }}") + } +} +impl Default for ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiStoragePair { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!( + f, + "ImGuiStoragePair {{ key: {:?}, __bindgen_anon_1: {:?} }}", + self.key, self.__bindgen_anon_1 + ) + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStoragePair { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStoragePair, +} +impl Default for ImVector_ImGuiStoragePair { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStorage { + pub Data: ImVector_ImGuiStoragePair, +} +impl Default for ImGuiStorage { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiListClipper { + pub DisplayStart: cty::c_int, + pub DisplayEnd: cty::c_int, + pub ItemsCount: cty::c_int, + pub ItemsHeight: f32, + pub StartPosY: f32, + pub TempData: *mut cty::c_void, +} +impl Default for ImGuiListClipper { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImColor { + pub Value: ImVec4, +} +pub type ImDrawCallback = ::core::option::Option< + unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmd { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, + pub IdxOffset: cty::c_uint, + pub ElemCount: cty::c_uint, + pub UserCallback: ImDrawCallback, + pub UserCallbackData: *mut cty::c_void, +} +impl Default for ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImDrawVert { + pub pos: ImVec2, + pub uv: ImVec2, + pub col: ImU32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawCmdHeader { + pub ClipRect: ImVec4, + pub TextureId: ImTextureID, + pub VtxOffset: cty::c_uint, +} +impl Default for ImDrawCmdHeader { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawCmd { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawCmd, +} +impl Default for ImVector_ImDrawCmd { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawIdx { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawIdx, +} +impl Default for ImVector_ImDrawIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawChannel { + pub _CmdBuffer: ImVector_ImDrawCmd, + pub _IdxBuffer: ImVector_ImDrawIdx, +} +impl Default for ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawChannel { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawChannel, +} +impl Default for ImVector_ImDrawChannel { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawListSplitter { + pub _Current: cty::c_int, + pub _Count: cty::c_int, + pub _Channels: ImVector_ImDrawChannel, +} +impl Default for ImDrawListSplitter { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImDrawFlags_None: ImDrawFlags_ = 0; +pub const ImDrawFlags_Closed: ImDrawFlags_ = 1; +pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16; +pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32; +pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64; +pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128; +pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256; +pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48; +pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192; +pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80; +pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; +pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; +pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; +pub type ImDrawFlags_ = cty::c_uint; +pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; +pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; +pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; +pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; +pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; +pub type ImDrawListFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawVert { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImDrawVert, +} +impl Default for ImVector_ImDrawVert { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec4 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec4, +} +impl Default for ImVector_ImVec4 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImTextureID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImTextureID, +} +impl Default for ImVector_ImTextureID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImVec2 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImVec2, +} +impl Default for ImVector_ImVec2 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawList { + pub CmdBuffer: ImVector_ImDrawCmd, + pub IdxBuffer: ImVector_ImDrawIdx, + pub VtxBuffer: ImVector_ImDrawVert, + pub Flags: ImDrawListFlags, + pub _VtxCurrentIdx: cty::c_uint, + pub _Data: *mut ImDrawListSharedData, + pub _OwnerName: *const cty::c_char, + pub _VtxWritePtr: *mut ImDrawVert, + pub _IdxWritePtr: *mut ImDrawIdx, + pub _ClipRectStack: ImVector_ImVec4, + pub _TextureIdStack: ImVector_ImTextureID, + pub _Path: ImVector_ImVec2, + pub _CmdHeader: ImDrawCmdHeader, + pub _Splitter: ImDrawListSplitter, + pub _FringeScale: f32, +} +impl Default for ImDrawList { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawData { + pub Valid: bool, + pub CmdListsCount: cty::c_int, + pub TotalIdxCount: cty::c_int, + pub TotalVtxCount: cty::c_int, + pub CmdLists: *mut *mut ImDrawList, + pub DisplayPos: ImVec2, + pub DisplaySize: ImVec2, + pub FramebufferScale: ImVec2, +} +impl Default for ImDrawData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontConfig { + pub FontData: *mut cty::c_void, + pub FontDataSize: cty::c_int, + pub FontDataOwnedByAtlas: bool, + pub FontNo: cty::c_int, + pub SizePixels: f32, + pub OversampleH: cty::c_int, + pub OversampleV: cty::c_int, + pub PixelSnapH: bool, + pub GlyphExtraSpacing: ImVec2, + pub GlyphOffset: ImVec2, + pub GlyphRanges: *const ImWchar, + pub GlyphMinAdvanceX: f32, + pub GlyphMaxAdvanceX: f32, + pub MergeMode: bool, + pub FontBuilderFlags: cty::c_uint, + pub RasterizerMultiply: f32, + pub EllipsisChar: ImWchar, + pub Name: [cty::c_char; 40usize], + pub DstFont: *mut ImFont, +} +impl Default for ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImFontGlyph { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + 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, +} +impl ImFontGlyph { + #[inline] + pub fn Colored(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Colored(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Visible(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_Visible(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Codepoint(&self) -> cty::c_uint { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Codepoint(&mut self, val: cty::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Colored: cty::c_uint, + Visible: cty::c_uint, + Codepoint: cty::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Colored: u32 = unsafe { ::core::mem::transmute(Colored) }; + Colored as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Visible: u32 = unsafe { ::core::mem::transmute(Visible) }; + Visible as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Codepoint: u32 = unsafe { ::core::mem::transmute(Codepoint) }; + Codepoint as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImU32 { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImU32, +} +impl Default for ImVector_ImU32 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImFontGlyphRangesBuilder { + pub UsedChars: ImVector_ImU32, +} +impl Default for ImFontGlyphRangesBuilder { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlasCustomRect { + pub Width: cty::c_ushort, + pub Height: cty::c_ushort, + pub X: cty::c_ushort, + pub Y: cty::c_ushort, + pub GlyphID: cty::c_uint, + pub GlyphAdvanceX: f32, + pub GlyphOffset: ImVec2, + pub Font: *mut ImFont, +} +impl Default for ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 type ImFontAtlasFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImFont, +} +impl Default for ImVector_ImFontPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontAtlasCustomRect { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontAtlasCustomRect, +} +impl Default for ImVector_ImFontAtlasCustomRect { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontConfig { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontConfig, +} +impl Default for ImVector_ImFontConfig { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFontAtlas { + pub Flags: ImFontAtlasFlags, + pub TexID: ImTextureID, + pub TexDesiredWidth: cty::c_int, + pub TexGlyphPadding: cty::c_int, + pub Locked: bool, + pub TexReady: bool, + pub TexPixelsUseColors: bool, + pub TexPixelsAlpha8: *mut cty::c_uchar, + pub TexPixelsRGBA32: *mut cty::c_uint, + pub TexWidth: cty::c_int, + pub TexHeight: cty::c_int, + pub TexUvScale: ImVec2, + pub TexUvWhitePixel: ImVec2, + pub Fonts: ImVector_ImFontPtr, + pub CustomRects: ImVector_ImFontAtlasCustomRect, + pub ConfigData: ImVector_ImFontConfig, + pub TexUvLines: [ImVec4; 64usize], + pub FontBuilderIO: *const ImFontBuilderIO, + pub FontBuilderFlags: cty::c_uint, + pub PackIdMouseCursors: cty::c_int, + pub PackIdLines: cty::c_int, +} +impl Default for ImFontAtlas { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_float { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut f32, +} +impl Default for ImVector_float { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImFontGlyph { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImFontGlyph, +} +impl Default for ImVector_ImFontGlyph { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImFont { + pub IndexAdvanceX: ImVector_float, + pub FallbackAdvanceX: f32, + pub FontSize: f32, + pub IndexLookup: ImVector_ImWchar, + pub Glyphs: ImVector_ImFontGlyph, + pub FallbackGlyph: *const ImFontGlyph, + pub ContainerAtlas: *mut ImFontAtlas, + pub ConfigData: *const ImFontConfig, + pub ConfigDataCount: cty::c_short, + pub FallbackChar: ImWchar, + pub EllipsisChar: ImWchar, + pub DotChar: ImWchar, + pub DirtyLookupTables: bool, + pub Scale: f32, + pub Ascent: f32, + pub Descent: f32, + pub MetricsTotalSurface: cty::c_int, + pub Used4kPagesMap: [ImU8; 34usize], +} +impl Default for ImFont { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +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 type ImGuiViewportFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiViewport { + pub Flags: ImGuiViewportFlags, + pub Pos: ImVec2, + pub Size: ImVec2, + pub WorkPos: ImVec2, + pub WorkSize: ImVec2, + pub PlatformHandleRaw: *mut cty::c_void, +} +impl Default for ImGuiViewport { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiPlatformImeData { + pub WantVisible: bool, + pub InputPos: ImVec2, + pub InputLineHeight: f32, +} +pub const ImGuiFreeTypeBuilderFlags_NoHinting: ImGuiFreeTypeBuilderFlags = 1; +pub const ImGuiFreeTypeBuilderFlags_NoAutoHint: ImGuiFreeTypeBuilderFlags = 2; +pub const ImGuiFreeTypeBuilderFlags_ForceAutoHint: ImGuiFreeTypeBuilderFlags = 4; +pub const ImGuiFreeTypeBuilderFlags_LightHinting: ImGuiFreeTypeBuilderFlags = 8; +pub const ImGuiFreeTypeBuilderFlags_MonoHinting: ImGuiFreeTypeBuilderFlags = 16; +pub const ImGuiFreeTypeBuilderFlags_Bold: ImGuiFreeTypeBuilderFlags = 32; +pub const ImGuiFreeTypeBuilderFlags_Oblique: ImGuiFreeTypeBuilderFlags = 64; +pub const ImGuiFreeTypeBuilderFlags_Monochrome: ImGuiFreeTypeBuilderFlags = 128; +pub const ImGuiFreeTypeBuilderFlags_LoadColor: ImGuiFreeTypeBuilderFlags = 256; +pub const ImGuiFreeTypeBuilderFlags_Bitmap: ImGuiFreeTypeBuilderFlags = 512; +pub type ImGuiFreeTypeBuilderFlags = cty::c_uint; +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec2_destroy(self_: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec4_destroy(self_: *mut ImVec4); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDestroyContext(ctx: *mut ImGuiContext); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCurrentContext() -> *mut ImGuiContext; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCurrentContext(ctx: *mut ImGuiContext); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetIO() -> *mut ImGuiIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStyle() -> *mut ImGuiStyle; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igNewFrame(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndFrame(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRender(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetDrawData() -> *mut ImDrawData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowDemoWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowMetricsWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowStackToolWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowAboutWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowStyleEditor(ref_: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowStyleSelector(label: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowFontSelector(label: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowUserGuide(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetVersion() -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igStyleColorsDark(dst: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igStyleColorsLight(dst: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igStyleColorsClassic(dst: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBegin(name: *const cty::c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEnd(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginChild_Str( + str_id: *const cty::c_char, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndChild(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowAppearing() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowCollapsed() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowFocused(flags: ImGuiFocusedFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowHovered(flags: ImGuiHoveredFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowDrawList() -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowSize(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowWidth() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowHeight() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowPos(pos: ImVec2, cond: ImGuiCond, pivot: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowSize(size: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowSizeConstraints( + size_min: ImVec2, + size_max: ImVec2, + custom_callback: ImGuiSizeCallback, + custom_callback_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowContentSize(size: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowCollapsed(collapsed: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowFocus(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowBgAlpha(alpha: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowFocus_Nil(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowFontScale(scale: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowFocus_Str(name: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetContentRegionAvail(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetContentRegionMax(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowContentRegionMin(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowContentRegionMax(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollX() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollY() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollX(scroll_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollY(scroll_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollMaxX() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollMaxY() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollHereX(center_x_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollHereY(center_y_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollFromPosX(local_x: f32, center_x_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollFromPosY(local_y: f32, center_y_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushFont(font: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopFont(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopStyleColor(count: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopStyleVar(count: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushAllowKeyboardFocus(allow_keyboard_focus: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopAllowKeyboardFocus(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushButtonRepeat(repeat: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopButtonRepeat(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushItemWidth(item_width: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopItemWidth(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextItemWidth(item_width: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCalcItemWidth() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushTextWrapPos(wrap_local_pos_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopTextWrapPos(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFont() -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFontSize() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSeparator(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSameLine(offset_from_start_x: f32, spacing: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igNewLine(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSpacing(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDummy(size: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIndent(indent_w: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igUnindent(indent_w: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginGroup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndGroup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorPosX() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorPosY() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorPos(local_pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorPosX(local_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorPosY(local_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorStartPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorScreenPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorScreenPos(pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igAlignTextToFramePadding(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTextLineHeight() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTextLineHeightWithSpacing() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFrameHeight() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFrameHeightWithSpacing() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_Str(str_id: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_Int(int_id: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopID(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetID_StrStr( + str_id_begin: *const cty::c_char, + str_id_end: *const cty::c_char, + ) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igText(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextColored(col: ImVec4, fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextDisabled(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextWrapped(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLabelText(label: *const cty::c_char, fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBulletText(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igButton(label: *const cty::c_char, size: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSmallButton(label: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInvisibleButton( + str_id: *const cty::c_char, + size: ImVec2, + flags: ImGuiButtonFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCheckboxFlags_IntPtr( + label: *const cty::c_char, + flags: *mut cty::c_int, + flags_value: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCheckboxFlags_UintPtr( + label: *const cty::c_char, + flags: *mut cty::c_uint, + flags_value: cty::c_uint, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRadioButton_IntPtr( + label: *const cty::c_char, + v: *mut cty::c_int, + v_button: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBullet(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginCombo( + label: *const cty::c_char, + preview_value: *const cty::c_char, + flags: ImGuiComboFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndCombo(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCombo_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCombo_Str( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_separated_by_zeros: *const cty::c_char, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCombo_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat2( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat3( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat4( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloatRange2( + label: *const cty::c_char, + v_current_min: *mut f32, + v_current_max: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragIntRange2( + label: *const cty::c_char, + v_current_min: *mut cty::c_int, + v_current_max: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat2( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat3( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat4( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderAngle( + label: *const cty::c_char, + v_rad: *mut f32, + v_degrees_min: f32, + v_degrees_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igVSliderFloat( + label: *const cty::c_char, + size: ImVec2, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igVSliderInt( + label: *const cty::c_char, + size: ImVec2, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igVSliderScalar( + label: *const cty::c_char, + size: ImVec2, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputText( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputTextMultiline( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + size: ImVec2, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputTextWithHint( + label: *const cty::c_char, + hint: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat( + label: *const cty::c_char, + v: *mut f32, + step: f32, + step_fast: f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat2( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat3( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat4( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt( + label: *const cty::c_char, + v: *mut cty::c_int, + step: cty::c_int, + step_fast: cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputDouble( + label: *const cty::c_char, + v: *mut f64, + step: f64, + step_fast: f64, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorEdit3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorEdit4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorPicker3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorPicker4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ref_col: *const f32, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorButton( + desc_id: *const cty::c_char, + col: ImVec4, + flags: ImGuiColorEditFlags, + size: ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeEx_StrStr( + str_id: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeEx_Ptr( + ptr_id: *const cty::c_void, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePush_Str(str_id: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePop(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTreeNodeToLabelSpacing() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCollapsingHeader_TreeNodeFlags( + label: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCollapsingHeader_BoolPtr( + label: *const cty::c_char, + p_visible: *mut bool, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSelectable_Bool( + label: *const cty::c_char, + selected: bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSelectable_BoolPtr( + label: *const cty::c_char, + p_selected: *mut bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginListBox(label: *const cty::c_char, size: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndListBox(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igListBox_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igListBox_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotLines_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotLines_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotHistogram_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotHistogram_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginMenuBar() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndMenuBar(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginMainMenuBar() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndMainMenuBar(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginMenu(label: *const cty::c_char, enabled: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndMenu(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMenuItem_Bool( + label: *const cty::c_char, + shortcut: *const cty::c_char, + selected: bool, + enabled: bool, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMenuItem_BoolPtr( + label: *const cty::c_char, + shortcut: *const cty::c_char, + p_selected: *mut bool, + enabled: bool, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTooltip(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTooltip(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetTooltip(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopup(str_id: *const cty::c_char, flags: ImGuiWindowFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupModal( + name: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndPopup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCloseCurrentPopup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupContextItem( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupContextWindow( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupContextVoid( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsPopupOpen(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTable( + str_id: *const cty::c_char, + column: cty::c_int, + flags: ImGuiTableFlags, + outer_size: ImVec2, + inner_width: f32, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTable(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableNextRow(row_flags: ImGuiTableRowFlags, min_row_height: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableNextColumn() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetColumnIndex(column_n: cty::c_int) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetupColumn( + label: *const cty::c_char, + flags: ImGuiTableColumnFlags, + init_width_or_weight: f32, + user_id: ImGuiID, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetupScrollFreeze(cols: cty::c_int, rows: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableHeadersRow(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableHeader(label: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetSortSpecs() -> *mut ImGuiTableSortSpecs; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnCount() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnIndex() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetRowIndex() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnName(column_n: cty::c_int) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetColumnEnabled(column_n: cty::c_int, v: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColumns(count: cty::c_int, id: *const cty::c_char, border: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igNextColumn(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnIndex() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnWidth(column_index: cty::c_int) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetColumnWidth(column_index: cty::c_int, width: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnOffset(column_index: cty::c_int) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetColumnOffset(column_index: cty::c_int, offset_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnsCount() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTabBar(str_id: *const cty::c_char, flags: ImGuiTabBarFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTabBar(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTabItem( + label: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiTabItemFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTabItem(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTabItemButton(label: *const cty::c_char, flags: ImGuiTabItemFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetTabItemClosed(tab_or_docked_window_label: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogToTTY(auto_open_depth: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogToFile(auto_open_depth: cty::c_int, filename: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogToClipboard(auto_open_depth: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogFinish(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogButtons(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginDragDropSource(flags: ImGuiDragDropFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetDragDropPayload( + type_: *const cty::c_char, + data: *const cty::c_void, + sz: usize, + cond: ImGuiCond, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndDragDropSource(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginDragDropTarget() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igAcceptDragDropPayload( + type_: *const cty::c_char, + flags: ImGuiDragDropFlags, + ) -> *const ImGuiPayload; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndDragDropTarget(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetDragDropPayload() -> *const ImGuiPayload; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginDisabled(disabled: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndDisabled(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushClipRect( + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopClipRect(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetItemDefaultFocus(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetKeyboardFocusHere(offset: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemHovered(flags: ImGuiHoveredFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemActive() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemFocused() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemClicked(mouse_button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemVisible() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemEdited() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemActivated() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemDeactivated() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemDeactivatedAfterEdit() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemToggledOpen() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyItemHovered() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyItemActive() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyItemFocused() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetItemRectMin(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetItemRectMax(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetItemRectSize(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetItemAllowOverlap(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMainViewport() -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetBackgroundDrawList() -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetForegroundDrawList() -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTime() -> f64; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFrameCount() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStyleColorName(idx: ImGuiCol) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetStateStorage(storage: *mut ImGuiStorage); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStateStorage() -> *mut ImGuiStorage; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginChildFrame(id: ImGuiID, size: ImVec2, flags: ImGuiWindowFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndChildFrame(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCalcTextSize( + pOut: *mut ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + hide_text_after_double_hash: bool, + wrap_width: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertU32ToFloat4(pOut: *mut ImVec4, in_: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertFloat4ToU32(in_: ImVec4) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertRGBtoHSV( + r: f32, + g: f32, + b: f32, + out_h: *mut f32, + out_s: *mut f32, + out_v: *mut f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertHSVtoRGB( + h: f32, + s: f32, + v: f32, + out_r: *mut f32, + out_g: *mut f32, + out_b: *mut f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyDown(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyPressed(key: ImGuiKey, repeat: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyReleased(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDown(button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseClicked(button: ImGuiMouseButton, repeat: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseReleased(button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMousePosValid(mouse_pos: *const ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyMouseDown() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMousePos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMousePosOnOpeningCurrentPopup(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDragging(button: ImGuiMouseButton, lock_threshold: f32) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMouseDragDelta(pOut: *mut ImVec2, button: ImGuiMouseButton, lock_threshold: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igResetMouseDragDelta(button: ImGuiMouseButton); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMouseCursor() -> ImGuiMouseCursor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetClipboardText() -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetClipboardText(text: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLoadIniSettingsFromDisk(ini_filename: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLoadIniSettingsFromMemory(ini_data: *const cty::c_char, ini_size: usize); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSaveIniSettingsToDisk(ini_filename: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugCheckVersionAndDataLayout( + version_str: *const cty::c_char, + sz_io: usize, + sz_style: usize, + sz_vec2: usize, + sz_vec4: usize, + sz_drawvert: usize, + sz_drawidx: usize, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetAllocatorFunctions( + alloc_func: ImGuiMemAllocFunc, + free_func: ImGuiMemFreeFunc, + user_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetAllocatorFunctions( + p_alloc_func: *mut ImGuiMemAllocFunc, + p_free_func: *mut ImGuiMemFreeFunc, + p_user_data: *mut *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMemAlloc(size: usize) -> *mut cty::c_void; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMemFree(ptr: *mut cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyle_ImGuiStyle() -> *mut ImGuiStyle; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyle_destroy(self_: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_ClearInputKeys(self_: *mut ImGuiIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_ImGuiIO() -> *mut ImGuiIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_destroy(self_: *mut ImGuiIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_ImGuiInputTextCallbackData() -> *mut ImGuiInputTextCallbackData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_destroy(self_: *mut ImGuiInputTextCallbackData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_DeleteChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + bytes_count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_InsertChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_SelectAll(self_: *mut ImGuiInputTextCallbackData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_ClearSelection(self_: *mut ImGuiInputTextCallbackData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_HasSelection(self_: *mut ImGuiInputTextCallbackData) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_ImGuiPayload() -> *mut ImGuiPayload; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_destroy(self_: *mut ImGuiPayload); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_IsDataType(self_: *mut ImGuiPayload, type_: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_IsPreview(self_: *mut ImGuiPayload) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_IsDelivery(self_: *mut ImGuiPayload) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs() -> *mut ImGuiTableColumnSortSpecs; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableColumnSortSpecs_destroy(self_: *mut ImGuiTableColumnSortSpecs); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableSortSpecs_ImGuiTableSortSpecs() -> *mut ImGuiTableSortSpecs; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableSortSpecs_destroy(self_: *mut ImGuiTableSortSpecs); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiOnceUponAFrame_ImGuiOnceUponAFrame() -> *mut ImGuiOnceUponAFrame; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiOnceUponAFrame_destroy(self_: *mut ImGuiOnceUponAFrame); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_ImGuiTextFilter( + default_filter: *const cty::c_char, + ) -> *mut ImGuiTextFilter; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_destroy(self_: *mut ImGuiTextFilter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_Draw( + self_: *mut ImGuiTextFilter, + label: *const cty::c_char, + width: f32, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_PassFilter( + self_: *mut ImGuiTextFilter, + text: *const cty::c_char, + text_end: *const cty::c_char, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_Build(self_: *mut ImGuiTextFilter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_Clear(self_: *mut ImGuiTextFilter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Str( + _b: *const cty::c_char, + _e: *const cty::c_char, + ) -> *mut ImGuiTextRange; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_empty(self_: *mut ImGuiTextRange) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_split( + self_: *mut ImGuiTextRange, + separator: cty::c_char, + out: *mut ImVector_ImGuiTextRange, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_ImGuiTextBuffer() -> *mut ImGuiTextBuffer; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_destroy(self_: *mut ImGuiTextBuffer); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_empty(self_: *mut ImGuiTextBuffer) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_append( + self_: *mut ImGuiTextBuffer, + str_: *const cty::c_char, + str_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( + _key: ImGuiID, + _val_i: cty::c_int, + ) -> *mut ImGuiStoragePair; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( + _key: ImGuiID, + _val_f: f32, + ) -> *mut ImGuiStoragePair; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( + _key: ImGuiID, + _val_p: *mut cty::c_void, + ) -> *mut ImGuiStoragePair; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_Clear(self_: *mut ImGuiStorage); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetInt( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetBool(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetBool(self_: *mut ImGuiStorage, key: ImGuiID, val: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetFloat(self_: *mut ImGuiStorage, key: ImGuiID, default_val: f32) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut cty::c_void; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetIntRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> *mut cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetBoolRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: bool, + ) -> *mut bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetFloatRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: f32, + ) -> *mut f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetVoidPtrRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: *mut cty::c_void, + ) -> *mut *mut cty::c_void; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_ImGuiListClipper() -> *mut ImGuiListClipper; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_destroy(self_: *mut ImGuiListClipper); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_Begin( + self_: *mut ImGuiListClipper, + items_count: cty::c_int, + items_height: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_End(self_: *mut ImGuiListClipper); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_Step(self_: *mut ImGuiListClipper) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_ForceDisplayRangeByIndices( + self_: *mut ImGuiListClipper, + item_min: cty::c_int, + item_max: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Nil() -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_destroy(self_: *mut ImColor); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Int( + r: cty::c_int, + g: cty::c_int, + b: cty::c_int, + a: cty::c_int, + ) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_HSV(pOut: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawCmd_ImDrawCmd() -> *mut ImDrawCmd; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawCmd_destroy(self_: *mut ImDrawCmd); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawCmd_GetTexID(self_: *mut ImDrawCmd) -> ImTextureID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_ImDrawListSplitter() -> *mut ImDrawListSplitter; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_destroy(self_: *mut ImDrawListSplitter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_Clear(self_: *mut ImDrawListSplitter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_ClearFreeMemory(self_: *mut ImDrawListSplitter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_Split( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_Merge(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_SetCurrentChannel( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + channel_idx: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_destroy(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PushClipRect( + self_: *mut ImDrawList, + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PushClipRectFullScreen(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PopClipRect(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PushTextureID(self_: *mut ImDrawList, texture_id: ImTextureID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PopTextureID(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_GetClipRectMin(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_GetClipRectMax(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddLine( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + col: ImU32, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddRect( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddRectFilled( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + 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, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddQuad( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddQuadFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddTriangle( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddTriangleFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddCircle( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddCircleFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddNgon( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddNgonFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddText_Vec2( + self_: *mut ImDrawList, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddText_FontPtr( + self_: *mut ImDrawList, + font: *const ImFont, + font_size: f32, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip_rect: *const ImVec4, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddPolyline( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddConvexPolyFilled( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddBezierCubic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddBezierQuadratic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddImage( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddImageQuad( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + uv1: ImVec2, + uv2: ImVec2, + uv3: ImVec2, + uv4: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddImageRounded( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathClear(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathLineTo(self_: *mut ImDrawList, pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathLineToMergeDuplicate(self_: *mut ImDrawList, pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathStroke( + self_: *mut ImDrawList, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathArcTo( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathArcToFast( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_of_12: cty::c_int, + a_max_of_12: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathBezierCubicCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathBezierQuadraticCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathRect( + self_: *mut ImDrawList, + rect_min: ImVec2, + rect_max: ImVec2, + rounding: f32, + flags: ImDrawFlags, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddCallback( + self_: *mut ImDrawList, + callback: ImDrawCallback, + callback_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddDrawCmd(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_CloneOutput(self_: *mut ImDrawList) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimReserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimUnreserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimRect(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimRectUV( + self_: *mut ImDrawList, + a: ImVec2, + b: ImVec2, + uv_a: ImVec2, + uv_b: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + 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, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimWriteVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimWriteIdx(self_: *mut ImDrawList, idx: ImDrawIdx); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__ResetForNewFrame(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__ClearFreeMemory(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__PopUnusedDrawCmd(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__TryMergeDrawCmds(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__OnChangedClipRect(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__OnChangedTextureID(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__CalcCircleAutoSegmentCount( + self_: *mut ImDrawList, + radius: f32, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__PathArcToFastEx( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_sample: cty::c_int, + a_max_sample: cty::c_int, + a_step: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__PathArcToN( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_ImDrawData() -> *mut ImDrawData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_destroy(self_: *mut ImDrawData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_Clear(self_: *mut ImDrawData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_DeIndexAllBuffers(self_: *mut ImDrawData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_ScaleClipRects(self_: *mut ImDrawData, fb_scale: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontConfig_ImFontConfig() -> *mut ImFontConfig; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontConfig_destroy(self_: *mut ImFontConfig); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder() -> *mut ImFontGlyphRangesBuilder; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_destroy(self_: *mut ImFontGlyphRangesBuilder); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_Clear(self_: *mut ImFontGlyphRangesBuilder); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_GetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_SetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddChar(self_: *mut ImFontGlyphRangesBuilder, c: ImWchar); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddText( + self_: *mut ImFontGlyphRangesBuilder, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddRanges( + self_: *mut ImFontGlyphRangesBuilder, + ranges: *const ImWchar, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_BuildRanges( + self_: *mut ImFontGlyphRangesBuilder, + out_ranges: *mut ImVector_ImWchar, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlasCustomRect_ImFontAtlasCustomRect() -> *mut ImFontAtlasCustomRect; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlasCustomRect_destroy(self_: *mut ImFontAtlasCustomRect); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlasCustomRect_IsPacked(self_: *mut ImFontAtlasCustomRect) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ImFontAtlas() -> *mut ImFontAtlas; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_destroy(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFont( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontDefault( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromFileTTF( + self_: *mut ImFontAtlas, + filename: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryTTF( + self_: *mut ImFontAtlas, + font_data: *mut cty::c_void, + font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF( + self_: *mut ImFontAtlas, + compressed_font_data: *const cty::c_void, + compressed_font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF( + self_: *mut ImFontAtlas, + compressed_font_data_base85: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ClearInputData(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ClearTexData(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ClearFonts(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_Clear(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_Build(self_: *mut ImFontAtlas) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetTexDataAsAlpha8( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetTexDataAsRGBA32( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_IsBuilt(self_: *mut ImFontAtlas) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_SetTexID(self_: *mut ImFontAtlas, id: ImTextureID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesJapanese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseFull(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon( + self_: *mut ImFontAtlas, + ) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesCyrillic(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesThai(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesVietnamese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddCustomRectRegular( + self_: *mut ImFontAtlas, + width: cty::c_int, + height: cty::c_int, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddCustomRectFontGlyph( + self_: *mut ImFontAtlas, + font: *mut ImFont, + id: ImWchar, + width: cty::c_int, + height: cty::c_int, + advance_x: f32, + offset: ImVec2, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetCustomRectByIndex( + self_: *mut ImFontAtlas, + index: cty::c_int, + ) -> *mut ImFontAtlasCustomRect; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_CalcCustomRectUV( + self_: *mut ImFontAtlas, + rect: *const ImFontAtlasCustomRect, + out_uv_min: *mut ImVec2, + out_uv_max: *mut ImVec2, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetMouseCursorTexData( + self_: *mut ImFontAtlas, + cursor: ImGuiMouseCursor, + out_offset: *mut ImVec2, + out_size: *mut ImVec2, + out_uv_border: *mut ImVec2, + out_uv_fill: *mut ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_ImFont() -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_destroy(self_: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_FindGlyph(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_FindGlyphNoFallback(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_GetCharAdvance(self_: *mut ImFont, c: ImWchar) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_IsLoaded(self_: *mut ImFont) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_CalcTextSizeA( + pOut: *mut ImVec2, + self_: *mut ImFont, + size: f32, + max_width: f32, + wrap_width: f32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + remaining: *mut *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_CalcWordWrapPositionA( + self_: *mut ImFont, + scale: f32, + text: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + ) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_RenderChar( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + c: ImWchar, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_RenderText( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + clip_rect: ImVec4, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_BuildLookupTable(self_: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_ClearOutputData(self_: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_AddGlyph( + self_: *mut ImFont, + src_cfg: *const ImFontConfig, + c: ImWchar, + x0: f32, + y0: f32, + x1: f32, + y1: f32, + u0: f32, + v0: f32, + u1: f32, + v1: f32, + advance_x: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_AddRemapChar(self_: *mut ImFont, dst: ImWchar, src: ImWchar, overwrite_dst: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_SetGlyphVisible(self_: *mut ImFont, c: ImWchar, visible: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_IsGlyphRangeUnused( + self_: *mut ImFont, + c_begin: cty::c_uint, + c_last: cty::c_uint, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_ImGuiViewport() -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_destroy(self_: *mut ImGuiViewport); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_GetCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiFreeType_GetBuilderForFreeType() -> *const ImFontBuilderIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiFreeType_SetAllocatorFunctions( + alloc_func: ::core::option::Option< + unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void, + >, + free_func: ::core::option::Option< + unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), + >, + user_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogText(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_appendf(buffer: *mut ImGuiTextBuffer, fmt: *const cty::c_char, ...); +} diff --git a/imgui-sys/third-party/imgui-docking-freetype/cimgui.cpp b/imgui-sys/third-party/imgui-docking-freetype/cimgui.cpp new file mode 100644 index 000000000..8ee2fae69 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/cimgui.cpp @@ -0,0 +1,2764 @@ +//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui +//based on imgui.h file version "1.89.1" 18910 from Dear ImGui https://github.com/ocornut/imgui +//with imgui_freetype.h api +//docking branch +#define IMGUI_ENABLE_FREETYPE +#ifdef IMGUI_ENABLE_FREETYPE +#ifndef CIMGUI_FREETYPE +#error "IMGUI_FREETYPE should be defined for Freetype linking" +#endif +#else +#ifdef CIMGUI_FREETYPE +#error "IMGUI_FREETYPE should not be defined without freetype generated cimgui" +#endif +#endif +#include "./imgui/imgui.h" +#ifdef IMGUI_ENABLE_FREETYPE +#include "./imgui/misc/freetype/imgui_freetype.h" +#endif +#include "./imgui/imgui_internal.h" +#include "cimgui.h" + + + +CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void) +{ + return IM_NEW(ImVec2)(); +} +CIMGUI_API void ImVec2_destroy(ImVec2* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x,float _y) +{ + return IM_NEW(ImVec2)(_x,_y); +} +CIMGUI_API ImVec4* ImVec4_ImVec4_Nil(void) +{ + return IM_NEW(ImVec4)(); +} +CIMGUI_API void ImVec4_destroy(ImVec4* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x,float _y,float _z,float _w) +{ + return IM_NEW(ImVec4)(_x,_y,_z,_w); +} +CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas) +{ + return ImGui::CreateContext(shared_font_atlas); +} +CIMGUI_API void igDestroyContext(ImGuiContext* ctx) +{ + return ImGui::DestroyContext(ctx); +} +CIMGUI_API ImGuiContext* igGetCurrentContext() +{ + return ImGui::GetCurrentContext(); +} +CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx) +{ + return ImGui::SetCurrentContext(ctx); +} +CIMGUI_API ImGuiIO* igGetIO() +{ + return &ImGui::GetIO(); +} +CIMGUI_API ImGuiStyle* igGetStyle() +{ + return &ImGui::GetStyle(); +} +CIMGUI_API void igNewFrame() +{ + return ImGui::NewFrame(); +} +CIMGUI_API void igEndFrame() +{ + return ImGui::EndFrame(); +} +CIMGUI_API void igRender() +{ + return ImGui::Render(); +} +CIMGUI_API ImDrawData* igGetDrawData() +{ + return ImGui::GetDrawData(); +} +CIMGUI_API void igShowDemoWindow(bool* p_open) +{ + return ImGui::ShowDemoWindow(p_open); +} +CIMGUI_API void igShowMetricsWindow(bool* p_open) +{ + return ImGui::ShowMetricsWindow(p_open); +} +CIMGUI_API void igShowDebugLogWindow(bool* p_open) +{ + return ImGui::ShowDebugLogWindow(p_open); +} +CIMGUI_API void igShowStackToolWindow(bool* p_open) +{ + return ImGui::ShowStackToolWindow(p_open); +} +CIMGUI_API void igShowAboutWindow(bool* p_open) +{ + return ImGui::ShowAboutWindow(p_open); +} +CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref) +{ + return ImGui::ShowStyleEditor(ref); +} +CIMGUI_API bool igShowStyleSelector(const char* label) +{ + return ImGui::ShowStyleSelector(label); +} +CIMGUI_API void igShowFontSelector(const char* label) +{ + return ImGui::ShowFontSelector(label); +} +CIMGUI_API void igShowUserGuide() +{ + return ImGui::ShowUserGuide(); +} +CIMGUI_API const char* igGetVersion() +{ + return ImGui::GetVersion(); +} +CIMGUI_API void igStyleColorsDark(ImGuiStyle* dst) +{ + return ImGui::StyleColorsDark(dst); +} +CIMGUI_API void igStyleColorsLight(ImGuiStyle* dst) +{ + return ImGui::StyleColorsLight(dst); +} +CIMGUI_API void igStyleColorsClassic(ImGuiStyle* dst) +{ + return ImGui::StyleColorsClassic(dst); +} +CIMGUI_API bool igBegin(const char* name,bool* p_open,ImGuiWindowFlags flags) +{ + return ImGui::Begin(name,p_open,flags); +} +CIMGUI_API void igEnd() +{ + return ImGui::End(); +} +CIMGUI_API bool igBeginChild_Str(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags) +{ + return ImGui::BeginChild(str_id,size,border,flags); +} +CIMGUI_API bool igBeginChild_ID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags) +{ + return ImGui::BeginChild(id,size,border,flags); +} +CIMGUI_API void igEndChild() +{ + return ImGui::EndChild(); +} +CIMGUI_API bool igIsWindowAppearing() +{ + return ImGui::IsWindowAppearing(); +} +CIMGUI_API bool igIsWindowCollapsed() +{ + return ImGui::IsWindowCollapsed(); +} +CIMGUI_API bool igIsWindowFocused(ImGuiFocusedFlags flags) +{ + return ImGui::IsWindowFocused(flags); +} +CIMGUI_API bool igIsWindowHovered(ImGuiHoveredFlags flags) +{ + return ImGui::IsWindowHovered(flags); +} +CIMGUI_API ImDrawList* igGetWindowDrawList() +{ + return ImGui::GetWindowDrawList(); +} +CIMGUI_API float igGetWindowDpiScale() +{ + return ImGui::GetWindowDpiScale(); +} +CIMGUI_API void igGetWindowPos(ImVec2 *pOut) +{ + *pOut = ImGui::GetWindowPos(); +} +CIMGUI_API void igGetWindowSize(ImVec2 *pOut) +{ + *pOut = ImGui::GetWindowSize(); +} +CIMGUI_API float igGetWindowWidth() +{ + return ImGui::GetWindowWidth(); +} +CIMGUI_API float igGetWindowHeight() +{ + return ImGui::GetWindowHeight(); +} +CIMGUI_API ImGuiViewport* igGetWindowViewport() +{ + return ImGui::GetWindowViewport(); +} +CIMGUI_API void igSetNextWindowPos(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot) +{ + return ImGui::SetNextWindowPos(pos,cond,pivot); +} +CIMGUI_API void igSetNextWindowSize(const ImVec2 size,ImGuiCond cond) +{ + return ImGui::SetNextWindowSize(size,cond); +} +CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data) +{ + return ImGui::SetNextWindowSizeConstraints(size_min,size_max,custom_callback,custom_callback_data); +} +CIMGUI_API void igSetNextWindowContentSize(const ImVec2 size) +{ + return ImGui::SetNextWindowContentSize(size); +} +CIMGUI_API void igSetNextWindowCollapsed(bool collapsed,ImGuiCond cond) +{ + return ImGui::SetNextWindowCollapsed(collapsed,cond); +} +CIMGUI_API void igSetNextWindowFocus() +{ + return ImGui::SetNextWindowFocus(); +} +CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll) +{ + return ImGui::SetNextWindowScroll(scroll); +} +CIMGUI_API void igSetNextWindowBgAlpha(float alpha) +{ + return ImGui::SetNextWindowBgAlpha(alpha); +} +CIMGUI_API void igSetNextWindowViewport(ImGuiID viewport_id) +{ + return ImGui::SetNextWindowViewport(viewport_id); +} +CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos,ImGuiCond cond) +{ + return ImGui::SetWindowPos(pos,cond); +} +CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size,ImGuiCond cond) +{ + return ImGui::SetWindowSize(size,cond); +} +CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed,ImGuiCond cond) +{ + return ImGui::SetWindowCollapsed(collapsed,cond); +} +CIMGUI_API void igSetWindowFocus_Nil() +{ + return ImGui::SetWindowFocus(); +} +CIMGUI_API void igSetWindowFontScale(float scale) +{ + return ImGui::SetWindowFontScale(scale); +} +CIMGUI_API void igSetWindowPos_Str(const char* name,const ImVec2 pos,ImGuiCond cond) +{ + return ImGui::SetWindowPos(name,pos,cond); +} +CIMGUI_API void igSetWindowSize_Str(const char* name,const ImVec2 size,ImGuiCond cond) +{ + return ImGui::SetWindowSize(name,size,cond); +} +CIMGUI_API void igSetWindowCollapsed_Str(const char* name,bool collapsed,ImGuiCond cond) +{ + return ImGui::SetWindowCollapsed(name,collapsed,cond); +} +CIMGUI_API void igSetWindowFocus_Str(const char* name) +{ + return ImGui::SetWindowFocus(name); +} +CIMGUI_API void igGetContentRegionAvail(ImVec2 *pOut) +{ + *pOut = ImGui::GetContentRegionAvail(); +} +CIMGUI_API void igGetContentRegionMax(ImVec2 *pOut) +{ + *pOut = ImGui::GetContentRegionMax(); +} +CIMGUI_API void igGetWindowContentRegionMin(ImVec2 *pOut) +{ + *pOut = ImGui::GetWindowContentRegionMin(); +} +CIMGUI_API void igGetWindowContentRegionMax(ImVec2 *pOut) +{ + *pOut = ImGui::GetWindowContentRegionMax(); +} +CIMGUI_API float igGetScrollX() +{ + return ImGui::GetScrollX(); +} +CIMGUI_API float igGetScrollY() +{ + return ImGui::GetScrollY(); +} +CIMGUI_API void igSetScrollX(float scroll_x) +{ + return ImGui::SetScrollX(scroll_x); +} +CIMGUI_API void igSetScrollY(float scroll_y) +{ + return ImGui::SetScrollY(scroll_y); +} +CIMGUI_API float igGetScrollMaxX() +{ + return ImGui::GetScrollMaxX(); +} +CIMGUI_API float igGetScrollMaxY() +{ + return ImGui::GetScrollMaxY(); +} +CIMGUI_API void igSetScrollHereX(float center_x_ratio) +{ + return ImGui::SetScrollHereX(center_x_ratio); +} +CIMGUI_API void igSetScrollHereY(float center_y_ratio) +{ + return ImGui::SetScrollHereY(center_y_ratio); +} +CIMGUI_API void igSetScrollFromPosX(float local_x,float center_x_ratio) +{ + return ImGui::SetScrollFromPosX(local_x,center_x_ratio); +} +CIMGUI_API void igSetScrollFromPosY(float local_y,float center_y_ratio) +{ + return ImGui::SetScrollFromPosY(local_y,center_y_ratio); +} +CIMGUI_API void igPushFont(ImFont* font) +{ + return ImGui::PushFont(font); +} +CIMGUI_API void igPopFont() +{ + return ImGui::PopFont(); +} +CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col) +{ + return ImGui::PushStyleColor(idx,col); +} +CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx,const ImVec4 col) +{ + return ImGui::PushStyleColor(idx,col); +} +CIMGUI_API void igPopStyleColor(int count) +{ + return ImGui::PopStyleColor(count); +} +CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx,float val) +{ + return ImGui::PushStyleVar(idx,val); +} +CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx,const ImVec2 val) +{ + return ImGui::PushStyleVar(idx,val); +} +CIMGUI_API void igPopStyleVar(int count) +{ + return ImGui::PopStyleVar(count); +} +CIMGUI_API void igPushAllowKeyboardFocus(bool allow_keyboard_focus) +{ + return ImGui::PushAllowKeyboardFocus(allow_keyboard_focus); +} +CIMGUI_API void igPopAllowKeyboardFocus() +{ + return ImGui::PopAllowKeyboardFocus(); +} +CIMGUI_API void igPushButtonRepeat(bool repeat) +{ + return ImGui::PushButtonRepeat(repeat); +} +CIMGUI_API void igPopButtonRepeat() +{ + return ImGui::PopButtonRepeat(); +} +CIMGUI_API void igPushItemWidth(float item_width) +{ + return ImGui::PushItemWidth(item_width); +} +CIMGUI_API void igPopItemWidth() +{ + return ImGui::PopItemWidth(); +} +CIMGUI_API void igSetNextItemWidth(float item_width) +{ + return ImGui::SetNextItemWidth(item_width); +} +CIMGUI_API float igCalcItemWidth() +{ + return ImGui::CalcItemWidth(); +} +CIMGUI_API void igPushTextWrapPos(float wrap_local_pos_x) +{ + return ImGui::PushTextWrapPos(wrap_local_pos_x); +} +CIMGUI_API void igPopTextWrapPos() +{ + return ImGui::PopTextWrapPos(); +} +CIMGUI_API ImFont* igGetFont() +{ + return ImGui::GetFont(); +} +CIMGUI_API float igGetFontSize() +{ + return ImGui::GetFontSize(); +} +CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut) +{ + *pOut = ImGui::GetFontTexUvWhitePixel(); +} +CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul) +{ + return ImGui::GetColorU32(idx,alpha_mul); +} +CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col) +{ + return ImGui::GetColorU32(col); +} +CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col) +{ + return ImGui::GetColorU32(col); +} +CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx) +{ + return &ImGui::GetStyleColorVec4(idx); +} +CIMGUI_API void igSeparator() +{ + return ImGui::Separator(); +} +CIMGUI_API void igSameLine(float offset_from_start_x,float spacing) +{ + return ImGui::SameLine(offset_from_start_x,spacing); +} +CIMGUI_API void igNewLine() +{ + return ImGui::NewLine(); +} +CIMGUI_API void igSpacing() +{ + return ImGui::Spacing(); +} +CIMGUI_API void igDummy(const ImVec2 size) +{ + return ImGui::Dummy(size); +} +CIMGUI_API void igIndent(float indent_w) +{ + return ImGui::Indent(indent_w); +} +CIMGUI_API void igUnindent(float indent_w) +{ + return ImGui::Unindent(indent_w); +} +CIMGUI_API void igBeginGroup() +{ + return ImGui::BeginGroup(); +} +CIMGUI_API void igEndGroup() +{ + return ImGui::EndGroup(); +} +CIMGUI_API void igGetCursorPos(ImVec2 *pOut) +{ + *pOut = ImGui::GetCursorPos(); +} +CIMGUI_API float igGetCursorPosX() +{ + return ImGui::GetCursorPosX(); +} +CIMGUI_API float igGetCursorPosY() +{ + return ImGui::GetCursorPosY(); +} +CIMGUI_API void igSetCursorPos(const ImVec2 local_pos) +{ + return ImGui::SetCursorPos(local_pos); +} +CIMGUI_API void igSetCursorPosX(float local_x) +{ + return ImGui::SetCursorPosX(local_x); +} +CIMGUI_API void igSetCursorPosY(float local_y) +{ + return ImGui::SetCursorPosY(local_y); +} +CIMGUI_API void igGetCursorStartPos(ImVec2 *pOut) +{ + *pOut = ImGui::GetCursorStartPos(); +} +CIMGUI_API void igGetCursorScreenPos(ImVec2 *pOut) +{ + *pOut = ImGui::GetCursorScreenPos(); +} +CIMGUI_API void igSetCursorScreenPos(const ImVec2 pos) +{ + return ImGui::SetCursorScreenPos(pos); +} +CIMGUI_API void igAlignTextToFramePadding() +{ + return ImGui::AlignTextToFramePadding(); +} +CIMGUI_API float igGetTextLineHeight() +{ + return ImGui::GetTextLineHeight(); +} +CIMGUI_API float igGetTextLineHeightWithSpacing() +{ + return ImGui::GetTextLineHeightWithSpacing(); +} +CIMGUI_API float igGetFrameHeight() +{ + return ImGui::GetFrameHeight(); +} +CIMGUI_API float igGetFrameHeightWithSpacing() +{ + return ImGui::GetFrameHeightWithSpacing(); +} +CIMGUI_API void igPushID_Str(const char* str_id) +{ + return ImGui::PushID(str_id); +} +CIMGUI_API void igPushID_StrStr(const char* str_id_begin,const char* str_id_end) +{ + return ImGui::PushID(str_id_begin,str_id_end); +} +CIMGUI_API void igPushID_Ptr(const void* ptr_id) +{ + return ImGui::PushID(ptr_id); +} +CIMGUI_API void igPushID_Int(int int_id) +{ + return ImGui::PushID(int_id); +} +CIMGUI_API void igPopID() +{ + return ImGui::PopID(); +} +CIMGUI_API ImGuiID igGetID_Str(const char* str_id) +{ + return ImGui::GetID(str_id); +} +CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin,const char* str_id_end) +{ + return ImGui::GetID(str_id_begin,str_id_end); +} +CIMGUI_API ImGuiID igGetID_Ptr(const void* ptr_id) +{ + return ImGui::GetID(ptr_id); +} +CIMGUI_API void igTextUnformatted(const char* text,const char* text_end) +{ + return ImGui::TextUnformatted(text,text_end); +} +CIMGUI_API void igText(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::TextV(fmt,args); + va_end(args); +} +CIMGUI_API void igTextV(const char* fmt,va_list args) +{ + return ImGui::TextV(fmt,args); +} +CIMGUI_API void igTextColored(const ImVec4 col,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::TextColoredV(col,fmt,args); + va_end(args); +} +CIMGUI_API void igTextColoredV(const ImVec4 col,const char* fmt,va_list args) +{ + return ImGui::TextColoredV(col,fmt,args); +} +CIMGUI_API void igTextDisabled(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::TextDisabledV(fmt,args); + va_end(args); +} +CIMGUI_API void igTextDisabledV(const char* fmt,va_list args) +{ + return ImGui::TextDisabledV(fmt,args); +} +CIMGUI_API void igTextWrapped(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::TextWrappedV(fmt,args); + va_end(args); +} +CIMGUI_API void igTextWrappedV(const char* fmt,va_list args) +{ + return ImGui::TextWrappedV(fmt,args); +} +CIMGUI_API void igLabelText(const char* label,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::LabelTextV(label,fmt,args); + va_end(args); +} +CIMGUI_API void igLabelTextV(const char* label,const char* fmt,va_list args) +{ + return ImGui::LabelTextV(label,fmt,args); +} +CIMGUI_API void igBulletText(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::BulletTextV(fmt,args); + va_end(args); +} +CIMGUI_API void igBulletTextV(const char* fmt,va_list args) +{ + return ImGui::BulletTextV(fmt,args); +} +CIMGUI_API bool igButton(const char* label,const ImVec2 size) +{ + return ImGui::Button(label,size); +} +CIMGUI_API bool igSmallButton(const char* label) +{ + return ImGui::SmallButton(label); +} +CIMGUI_API bool igInvisibleButton(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags) +{ + return ImGui::InvisibleButton(str_id,size,flags); +} +CIMGUI_API bool igArrowButton(const char* str_id,ImGuiDir dir) +{ + return ImGui::ArrowButton(str_id,dir); +} +CIMGUI_API bool igCheckbox(const char* label,bool* v) +{ + return ImGui::Checkbox(label,v); +} +CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label,int* flags,int flags_value) +{ + return ImGui::CheckboxFlags(label,flags,flags_value); +} +CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label,unsigned int* flags,unsigned int flags_value) +{ + return ImGui::CheckboxFlags(label,flags,flags_value); +} +CIMGUI_API bool igRadioButton_Bool(const char* label,bool active) +{ + return ImGui::RadioButton(label,active); +} +CIMGUI_API bool igRadioButton_IntPtr(const char* label,int* v,int v_button) +{ + return ImGui::RadioButton(label,v,v_button); +} +CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay) +{ + return ImGui::ProgressBar(fraction,size_arg,overlay); +} +CIMGUI_API void igBullet() +{ + return ImGui::Bullet(); +} +CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col) +{ + return ImGui::Image(user_texture_id,size,uv0,uv1,tint_col,border_col); +} +CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col) +{ + return ImGui::ImageButton(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col); +} +CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags) +{ + return ImGui::BeginCombo(label,preview_value,flags); +} +CIMGUI_API void igEndCombo() +{ + return ImGui::EndCombo(); +} +CIMGUI_API bool igCombo_Str_arr(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 igCombo_Str(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 igCombo_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items) +{ + return ImGui::Combo(label,current_item,items_getter,data,items_count,popup_max_height_in_items); +} +CIMGUI_API bool igDragFloat(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 igDragFloat2(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 igDragFloat3(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 igDragFloat4(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 igDragFloatRange2(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 igDragInt(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 igDragInt2(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 igDragInt3(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 igDragInt4(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 igDragIntRange2(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 igDragScalar(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 igDragScalarN(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 igSliderFloat(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 igSliderFloat2(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 igSliderFloat3(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 igSliderFloat4(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 igSliderAngle(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 igSliderInt(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 igSliderInt2(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 igSliderInt3(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 igSliderInt4(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 igSliderScalar(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 igSliderScalarN(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 igVSliderFloat(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags) +{ + return ImGui::VSliderFloat(label,size,v,v_min,v_max,format,flags); +} +CIMGUI_API bool igVSliderInt(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags) +{ + return ImGui::VSliderInt(label,size,v,v_min,v_max,format,flags); +} +CIMGUI_API bool igVSliderScalar(const char* label,const 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,size,data_type,p_data,p_min,p_max,format,flags); +} +CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data) +{ + return ImGui::InputText(label,buf,buf_size,flags,callback,user_data); +} +CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data) +{ + return ImGui::InputTextMultiline(label,buf,buf_size,size,flags,callback,user_data); +} +CIMGUI_API bool igInputTextWithHint(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,callback,user_data); +} +CIMGUI_API bool igInputFloat(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 igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags) +{ + return ImGui::InputFloat2(label,v,format,flags); +} +CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags) +{ + return ImGui::InputFloat3(label,v,format,flags); +} +CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags) +{ + return ImGui::InputFloat4(label,v,format,flags); +} +CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags) +{ + return ImGui::InputInt(label,v,step,step_fast,flags); +} +CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags flags) +{ + return ImGui::InputInt2(label,v,flags); +} +CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags flags) +{ + return ImGui::InputInt3(label,v,flags); +} +CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags flags) +{ + return ImGui::InputInt4(label,v,flags); +} +CIMGUI_API bool igInputDouble(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 igInputScalar(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 igInputScalarN(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 igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags) +{ + return ImGui::ColorEdit3(label,col,flags); +} +CIMGUI_API bool igColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags) +{ + return ImGui::ColorEdit4(label,col,flags); +} +CIMGUI_API bool igColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags) +{ + return ImGui::ColorPicker3(label,col,flags); +} +CIMGUI_API bool igColorPicker4(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col) +{ + return ImGui::ColorPicker4(label,col,flags,ref_col); +} +CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size) +{ + return ImGui::ColorButton(desc_id,col,flags,size); +} +CIMGUI_API void igSetColorEditOptions(ImGuiColorEditFlags flags) +{ + return ImGui::SetColorEditOptions(flags); +} +CIMGUI_API bool igTreeNode_Str(const char* label) +{ + return ImGui::TreeNode(label); +} +CIMGUI_API bool igTreeNode_StrStr(const char* str_id,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + bool ret = ImGui::TreeNodeV(str_id,fmt,args); + va_end(args); + return ret; +} +CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + bool ret = ImGui::TreeNodeV(ptr_id,fmt,args); + va_end(args); + return ret; +} +CIMGUI_API bool igTreeNodeV_Str(const char* str_id,const char* fmt,va_list args) +{ + return ImGui::TreeNodeV(str_id,fmt,args); +} +CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id,const char* fmt,va_list args) +{ + return ImGui::TreeNodeV(ptr_id,fmt,args); +} +CIMGUI_API bool igTreeNodeEx_Str(const char* label,ImGuiTreeNodeFlags flags) +{ + return ImGui::TreeNodeEx(label,flags); +} +CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + bool ret = ImGui::TreeNodeExV(str_id,flags,fmt,args); + va_end(args); + return ret; +} +CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + bool ret = ImGui::TreeNodeExV(ptr_id,flags,fmt,args); + va_end(args); + return ret; +} +CIMGUI_API bool igTreeNodeExV_Str(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) +{ + return ImGui::TreeNodeExV(str_id,flags,fmt,args); +} +CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) +{ + return ImGui::TreeNodeExV(ptr_id,flags,fmt,args); +} +CIMGUI_API void igTreePush_Str(const char* str_id) +{ + return ImGui::TreePush(str_id); +} +CIMGUI_API void igTreePush_Ptr(const void* ptr_id) +{ + return ImGui::TreePush(ptr_id); +} +CIMGUI_API void igTreePop() +{ + return ImGui::TreePop(); +} +CIMGUI_API float igGetTreeNodeToLabelSpacing() +{ + return ImGui::GetTreeNodeToLabelSpacing(); +} +CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags) +{ + return ImGui::CollapsingHeader(label,flags); +} +CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags) +{ + return ImGui::CollapsingHeader(label,p_visible,flags); +} +CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond) +{ + return ImGui::SetNextItemOpen(is_open,cond); +} +CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size) +{ + return ImGui::Selectable(label,selected,flags,size); +} +CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size) +{ + return ImGui::Selectable(label,p_selected,flags,size); +} +CIMGUI_API bool igBeginListBox(const char* label,const ImVec2 size) +{ + return ImGui::BeginListBox(label,size); +} +CIMGUI_API void igEndListBox() +{ + return ImGui::EndListBox(); +} +CIMGUI_API bool igListBox_Str_arr(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 igListBox_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items) +{ + return ImGui::ListBox(label,current_item,items_getter,data,items_count,height_in_items); +} +CIMGUI_API void igPlotLines_FloatPtr(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) +{ + return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride); +} +CIMGUI_API void igPlotLines_FnFloatPtr(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) +{ + return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size); +} +CIMGUI_API void igPlotHistogram_FloatPtr(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) +{ + return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride); +} +CIMGUI_API void igPlotHistogram_FnFloatPtr(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) +{ + return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size); +} +CIMGUI_API void igValue_Bool(const char* prefix,bool b) +{ + return ImGui::Value(prefix,b); +} +CIMGUI_API void igValue_Int(const char* prefix,int v) +{ + return ImGui::Value(prefix,v); +} +CIMGUI_API void igValue_Uint(const char* prefix,unsigned int v) +{ + return ImGui::Value(prefix,v); +} +CIMGUI_API void igValue_Float(const char* prefix,float v,const char* float_format) +{ + return ImGui::Value(prefix,v,float_format); +} +CIMGUI_API bool igBeginMenuBar() +{ + return ImGui::BeginMenuBar(); +} +CIMGUI_API void igEndMenuBar() +{ + return ImGui::EndMenuBar(); +} +CIMGUI_API bool igBeginMainMenuBar() +{ + return ImGui::BeginMainMenuBar(); +} +CIMGUI_API void igEndMainMenuBar() +{ + return ImGui::EndMainMenuBar(); +} +CIMGUI_API bool igBeginMenu(const char* label,bool enabled) +{ + return ImGui::BeginMenu(label,enabled); +} +CIMGUI_API void igEndMenu() +{ + return ImGui::EndMenu(); +} +CIMGUI_API bool igMenuItem_Bool(const char* label,const char* shortcut,bool selected,bool enabled) +{ + return ImGui::MenuItem(label,shortcut,selected,enabled); +} +CIMGUI_API bool igMenuItem_BoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled) +{ + return ImGui::MenuItem(label,shortcut,p_selected,enabled); +} +CIMGUI_API void igBeginTooltip() +{ + return ImGui::BeginTooltip(); +} +CIMGUI_API void igEndTooltip() +{ + return ImGui::EndTooltip(); +} +CIMGUI_API void igSetTooltip(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::SetTooltipV(fmt,args); + va_end(args); +} +CIMGUI_API void igSetTooltipV(const char* fmt,va_list args) +{ + return ImGui::SetTooltipV(fmt,args); +} +CIMGUI_API bool igBeginPopup(const char* str_id,ImGuiWindowFlags flags) +{ + return ImGui::BeginPopup(str_id,flags); +} +CIMGUI_API bool igBeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags) +{ + return ImGui::BeginPopupModal(name,p_open,flags); +} +CIMGUI_API void igEndPopup() +{ + return ImGui::EndPopup(); +} +CIMGUI_API void igOpenPopup_Str(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::OpenPopup(str_id,popup_flags); +} +CIMGUI_API void igOpenPopup_ID(ImGuiID id,ImGuiPopupFlags popup_flags) +{ + return ImGui::OpenPopup(id,popup_flags); +} +CIMGUI_API void igOpenPopupOnItemClick(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::OpenPopupOnItemClick(str_id,popup_flags); +} +CIMGUI_API void igCloseCurrentPopup() +{ + return ImGui::CloseCurrentPopup(); +} +CIMGUI_API bool igBeginPopupContextItem(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::BeginPopupContextItem(str_id,popup_flags); +} +CIMGUI_API bool igBeginPopupContextWindow(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::BeginPopupContextWindow(str_id,popup_flags); +} +CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::BeginPopupContextVoid(str_id,popup_flags); +} +CIMGUI_API bool igIsPopupOpen(const char* str_id,ImGuiPopupFlags flags) +{ + return ImGui::IsPopupOpen(str_id,flags); +} +CIMGUI_API bool igBeginTable(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width) +{ + return ImGui::BeginTable(str_id,column,flags,outer_size,inner_width); +} +CIMGUI_API void igEndTable() +{ + return ImGui::EndTable(); +} +CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags,float min_row_height) +{ + return ImGui::TableNextRow(row_flags,min_row_height); +} +CIMGUI_API bool igTableNextColumn() +{ + return ImGui::TableNextColumn(); +} +CIMGUI_API bool igTableSetColumnIndex(int column_n) +{ + return ImGui::TableSetColumnIndex(column_n); +} +CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id) +{ + return ImGui::TableSetupColumn(label,flags,init_width_or_weight,user_id); +} +CIMGUI_API void igTableSetupScrollFreeze(int cols,int rows) +{ + return ImGui::TableSetupScrollFreeze(cols,rows); +} +CIMGUI_API void igTableHeadersRow() +{ + return ImGui::TableHeadersRow(); +} +CIMGUI_API void igTableHeader(const char* label) +{ + return ImGui::TableHeader(label); +} +CIMGUI_API ImGuiTableSortSpecs* igTableGetSortSpecs() +{ + return ImGui::TableGetSortSpecs(); +} +CIMGUI_API int igTableGetColumnCount() +{ + return ImGui::TableGetColumnCount(); +} +CIMGUI_API int igTableGetColumnIndex() +{ + return ImGui::TableGetColumnIndex(); +} +CIMGUI_API int igTableGetRowIndex() +{ + return ImGui::TableGetRowIndex(); +} +CIMGUI_API const char* igTableGetColumnName(int column_n) +{ + return ImGui::TableGetColumnName(column_n); +} +CIMGUI_API ImGuiTableColumnFlags igTableGetColumnFlags(int column_n) +{ + return ImGui::TableGetColumnFlags(column_n); +} +CIMGUI_API void igTableSetColumnEnabled(int column_n,bool v) +{ + return ImGui::TableSetColumnEnabled(column_n,v); +} +CIMGUI_API void igTableSetBgColor(ImGuiTableBgTarget target,ImU32 color,int column_n) +{ + return ImGui::TableSetBgColor(target,color,column_n); +} +CIMGUI_API void igColumns(int count,const char* id,bool border) +{ + return ImGui::Columns(count,id,border); +} +CIMGUI_API void igNextColumn() +{ + return ImGui::NextColumn(); +} +CIMGUI_API int igGetColumnIndex() +{ + return ImGui::GetColumnIndex(); +} +CIMGUI_API float igGetColumnWidth(int column_index) +{ + return ImGui::GetColumnWidth(column_index); +} +CIMGUI_API void igSetColumnWidth(int column_index,float width) +{ + return ImGui::SetColumnWidth(column_index,width); +} +CIMGUI_API float igGetColumnOffset(int column_index) +{ + return ImGui::GetColumnOffset(column_index); +} +CIMGUI_API void igSetColumnOffset(int column_index,float offset_x) +{ + return ImGui::SetColumnOffset(column_index,offset_x); +} +CIMGUI_API int igGetColumnsCount() +{ + return ImGui::GetColumnsCount(); +} +CIMGUI_API bool igBeginTabBar(const char* str_id,ImGuiTabBarFlags flags) +{ + return ImGui::BeginTabBar(str_id,flags); +} +CIMGUI_API void igEndTabBar() +{ + return ImGui::EndTabBar(); +} +CIMGUI_API bool igBeginTabItem(const char* label,bool* p_open,ImGuiTabItemFlags flags) +{ + return ImGui::BeginTabItem(label,p_open,flags); +} +CIMGUI_API void igEndTabItem() +{ + return ImGui::EndTabItem(); +} +CIMGUI_API bool igTabItemButton(const char* label,ImGuiTabItemFlags flags) +{ + return ImGui::TabItemButton(label,flags); +} +CIMGUI_API void igSetTabItemClosed(const char* tab_or_docked_window_label) +{ + return ImGui::SetTabItemClosed(tab_or_docked_window_label); +} +CIMGUI_API ImGuiID igDockSpace(ImGuiID id,const ImVec2 size,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class) +{ + return ImGui::DockSpace(id,size,flags,window_class); +} +CIMGUI_API ImGuiID igDockSpaceOverViewport(const ImGuiViewport* viewport,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class) +{ + return ImGui::DockSpaceOverViewport(viewport,flags,window_class); +} +CIMGUI_API void igSetNextWindowDockID(ImGuiID dock_id,ImGuiCond cond) +{ + return ImGui::SetNextWindowDockID(dock_id,cond); +} +CIMGUI_API void igSetNextWindowClass(const ImGuiWindowClass* window_class) +{ + return ImGui::SetNextWindowClass(window_class); +} +CIMGUI_API ImGuiID igGetWindowDockID() +{ + return ImGui::GetWindowDockID(); +} +CIMGUI_API bool igIsWindowDocked() +{ + return ImGui::IsWindowDocked(); +} +CIMGUI_API void igLogToTTY(int auto_open_depth) +{ + return ImGui::LogToTTY(auto_open_depth); +} +CIMGUI_API void igLogToFile(int auto_open_depth,const char* filename) +{ + return ImGui::LogToFile(auto_open_depth,filename); +} +CIMGUI_API void igLogToClipboard(int auto_open_depth) +{ + return ImGui::LogToClipboard(auto_open_depth); +} +CIMGUI_API void igLogFinish() +{ + return ImGui::LogFinish(); +} +CIMGUI_API void igLogButtons() +{ + return ImGui::LogButtons(); +} +CIMGUI_API void igLogTextV(const char* fmt,va_list args) +{ + return ImGui::LogTextV(fmt,args); +} +CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags) +{ + return ImGui::BeginDragDropSource(flags); +} +CIMGUI_API bool igSetDragDropPayload(const char* type,const void* data,size_t sz,ImGuiCond cond) +{ + return ImGui::SetDragDropPayload(type,data,sz,cond); +} +CIMGUI_API void igEndDragDropSource() +{ + return ImGui::EndDragDropSource(); +} +CIMGUI_API bool igBeginDragDropTarget() +{ + return ImGui::BeginDragDropTarget(); +} +CIMGUI_API const ImGuiPayload* igAcceptDragDropPayload(const char* type,ImGuiDragDropFlags flags) +{ + return ImGui::AcceptDragDropPayload(type,flags); +} +CIMGUI_API void igEndDragDropTarget() +{ + return ImGui::EndDragDropTarget(); +} +CIMGUI_API const ImGuiPayload* igGetDragDropPayload() +{ + return ImGui::GetDragDropPayload(); +} +CIMGUI_API void igBeginDisabled(bool disabled) +{ + return ImGui::BeginDisabled(disabled); +} +CIMGUI_API void igEndDisabled() +{ + return ImGui::EndDisabled(); +} +CIMGUI_API void igPushClipRect(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect) +{ + return ImGui::PushClipRect(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect); +} +CIMGUI_API void igPopClipRect() +{ + return ImGui::PopClipRect(); +} +CIMGUI_API void igSetItemDefaultFocus() +{ + return ImGui::SetItemDefaultFocus(); +} +CIMGUI_API void igSetKeyboardFocusHere(int offset) +{ + return ImGui::SetKeyboardFocusHere(offset); +} +CIMGUI_API bool igIsItemHovered(ImGuiHoveredFlags flags) +{ + return ImGui::IsItemHovered(flags); +} +CIMGUI_API bool igIsItemActive() +{ + return ImGui::IsItemActive(); +} +CIMGUI_API bool igIsItemFocused() +{ + return ImGui::IsItemFocused(); +} +CIMGUI_API bool igIsItemClicked(ImGuiMouseButton mouse_button) +{ + return ImGui::IsItemClicked(mouse_button); +} +CIMGUI_API bool igIsItemVisible() +{ + return ImGui::IsItemVisible(); +} +CIMGUI_API bool igIsItemEdited() +{ + return ImGui::IsItemEdited(); +} +CIMGUI_API bool igIsItemActivated() +{ + return ImGui::IsItemActivated(); +} +CIMGUI_API bool igIsItemDeactivated() +{ + return ImGui::IsItemDeactivated(); +} +CIMGUI_API bool igIsItemDeactivatedAfterEdit() +{ + return ImGui::IsItemDeactivatedAfterEdit(); +} +CIMGUI_API bool igIsItemToggledOpen() +{ + return ImGui::IsItemToggledOpen(); +} +CIMGUI_API bool igIsAnyItemHovered() +{ + return ImGui::IsAnyItemHovered(); +} +CIMGUI_API bool igIsAnyItemActive() +{ + return ImGui::IsAnyItemActive(); +} +CIMGUI_API bool igIsAnyItemFocused() +{ + return ImGui::IsAnyItemFocused(); +} +CIMGUI_API void igGetItemRectMin(ImVec2 *pOut) +{ + *pOut = ImGui::GetItemRectMin(); +} +CIMGUI_API void igGetItemRectMax(ImVec2 *pOut) +{ + *pOut = ImGui::GetItemRectMax(); +} +CIMGUI_API void igGetItemRectSize(ImVec2 *pOut) +{ + *pOut = ImGui::GetItemRectSize(); +} +CIMGUI_API void igSetItemAllowOverlap() +{ + return ImGui::SetItemAllowOverlap(); +} +CIMGUI_API ImGuiViewport* igGetMainViewport() +{ + return ImGui::GetMainViewport(); +} +CIMGUI_API ImDrawList* igGetBackgroundDrawList_Nil() +{ + return ImGui::GetBackgroundDrawList(); +} +CIMGUI_API ImDrawList* igGetForegroundDrawList_Nil() +{ + return ImGui::GetForegroundDrawList(); +} +CIMGUI_API ImDrawList* igGetBackgroundDrawList_ViewportPtr(ImGuiViewport* viewport) +{ + return ImGui::GetBackgroundDrawList(viewport); +} +CIMGUI_API ImDrawList* igGetForegroundDrawList_ViewportPtr(ImGuiViewport* viewport) +{ + return ImGui::GetForegroundDrawList(viewport); +} +CIMGUI_API bool igIsRectVisible_Nil(const ImVec2 size) +{ + return ImGui::IsRectVisible(size); +} +CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min,const ImVec2 rect_max) +{ + return ImGui::IsRectVisible(rect_min,rect_max); +} +CIMGUI_API double igGetTime() +{ + return ImGui::GetTime(); +} +CIMGUI_API int igGetFrameCount() +{ + return ImGui::GetFrameCount(); +} +CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData() +{ + return ImGui::GetDrawListSharedData(); +} +CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx) +{ + return ImGui::GetStyleColorName(idx); +} +CIMGUI_API void igSetStateStorage(ImGuiStorage* storage) +{ + return ImGui::SetStateStorage(storage); +} +CIMGUI_API ImGuiStorage* igGetStateStorage() +{ + return ImGui::GetStateStorage(); +} +CIMGUI_API bool igBeginChildFrame(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags) +{ + return ImGui::BeginChildFrame(id,size,flags); +} +CIMGUI_API void igEndChildFrame() +{ + return ImGui::EndChildFrame(); +} +CIMGUI_API void igCalcTextSize(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width) +{ + *pOut = ImGui::CalcTextSize(text,text_end,hide_text_after_double_hash,wrap_width); +} +CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in) +{ + *pOut = ImGui::ColorConvertU32ToFloat4(in); +} +CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in) +{ + return ImGui::ColorConvertFloat4ToU32(in); +} +CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v) +{ + return ImGui::ColorConvertRGBtoHSV(r,g,b,*out_h,*out_s,*out_v); +} +CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,float* out_g,float* out_b) +{ + return ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b); +} +CIMGUI_API bool igIsKeyDown(ImGuiKey key) +{ + return ImGui::IsKeyDown(key); +} +CIMGUI_API bool igIsKeyPressed(ImGuiKey key,bool repeat) +{ + return ImGui::IsKeyPressed(key,repeat); +} +CIMGUI_API bool igIsKeyReleased(ImGuiKey key) +{ + return ImGui::IsKeyReleased(key); +} +CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate) +{ + return ImGui::GetKeyPressedAmount(key,repeat_delay,rate); +} +CIMGUI_API const char* igGetKeyName(ImGuiKey key) +{ + return ImGui::GetKeyName(key); +} +CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) +{ + return ImGui::SetNextFrameWantCaptureKeyboard(want_capture_keyboard); +} +CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button) +{ + return ImGui::IsMouseDown(button); +} +CIMGUI_API bool igIsMouseClicked(ImGuiMouseButton button,bool repeat) +{ + return ImGui::IsMouseClicked(button,repeat); +} +CIMGUI_API bool igIsMouseReleased(ImGuiMouseButton button) +{ + return ImGui::IsMouseReleased(button); +} +CIMGUI_API bool igIsMouseDoubleClicked(ImGuiMouseButton button) +{ + return ImGui::IsMouseDoubleClicked(button); +} +CIMGUI_API int igGetMouseClickedCount(ImGuiMouseButton button) +{ + return ImGui::GetMouseClickedCount(button); +} +CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip) +{ + return ImGui::IsMouseHoveringRect(r_min,r_max,clip); +} +CIMGUI_API bool igIsMousePosValid(const ImVec2* mouse_pos) +{ + return ImGui::IsMousePosValid(mouse_pos); +} +CIMGUI_API bool igIsAnyMouseDown() +{ + return ImGui::IsAnyMouseDown(); +} +CIMGUI_API void igGetMousePos(ImVec2 *pOut) +{ + *pOut = ImGui::GetMousePos(); +} +CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(ImVec2 *pOut) +{ + *pOut = ImGui::GetMousePosOnOpeningCurrentPopup(); +} +CIMGUI_API bool igIsMouseDragging(ImGuiMouseButton button,float lock_threshold) +{ + return ImGui::IsMouseDragging(button,lock_threshold); +} +CIMGUI_API void igGetMouseDragDelta(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold) +{ + *pOut = ImGui::GetMouseDragDelta(button,lock_threshold); +} +CIMGUI_API void igResetMouseDragDelta(ImGuiMouseButton button) +{ + return ImGui::ResetMouseDragDelta(button); +} +CIMGUI_API ImGuiMouseCursor igGetMouseCursor() +{ + return ImGui::GetMouseCursor(); +} +CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type) +{ + return ImGui::SetMouseCursor(cursor_type); +} +CIMGUI_API void igSetNextFrameWantCaptureMouse(bool want_capture_mouse) +{ + return ImGui::SetNextFrameWantCaptureMouse(want_capture_mouse); +} +CIMGUI_API const char* igGetClipboardText() +{ + return ImGui::GetClipboardText(); +} +CIMGUI_API void igSetClipboardText(const char* text) +{ + return ImGui::SetClipboardText(text); +} +CIMGUI_API void igLoadIniSettingsFromDisk(const char* ini_filename) +{ + return ImGui::LoadIniSettingsFromDisk(ini_filename); +} +CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size) +{ + return ImGui::LoadIniSettingsFromMemory(ini_data,ini_size); +} +CIMGUI_API void igSaveIniSettingsToDisk(const char* ini_filename) +{ + return ImGui::SaveIniSettingsToDisk(ini_filename); +} +CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size) +{ + return ImGui::SaveIniSettingsToMemory(out_ini_size); +} +CIMGUI_API void igDebugTextEncoding(const char* text) +{ + return ImGui::DebugTextEncoding(text); +} +CIMGUI_API bool igDebugCheckVersionAndDataLayout(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 igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data) +{ + return ImGui::SetAllocatorFunctions(alloc_func,free_func,user_data); +} +CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data) +{ + return ImGui::GetAllocatorFunctions(p_alloc_func,p_free_func,p_user_data); +} +CIMGUI_API void* igMemAlloc(size_t size) +{ + return ImGui::MemAlloc(size); +} +CIMGUI_API void igMemFree(void* ptr) +{ + return ImGui::MemFree(ptr); +} +CIMGUI_API ImGuiPlatformIO* igGetPlatformIO() +{ + return &ImGui::GetPlatformIO(); +} +CIMGUI_API void igUpdatePlatformWindows() +{ + return ImGui::UpdatePlatformWindows(); +} +CIMGUI_API void igRenderPlatformWindowsDefault(void* platform_render_arg,void* renderer_render_arg) +{ + return ImGui::RenderPlatformWindowsDefault(platform_render_arg,renderer_render_arg); +} +CIMGUI_API void igDestroyPlatformWindows() +{ + return ImGui::DestroyPlatformWindows(); +} +CIMGUI_API ImGuiViewport* igFindViewportByID(ImGuiID id) +{ + return ImGui::FindViewportByID(id); +} +CIMGUI_API ImGuiViewport* igFindViewportByPlatformHandle(void* platform_handle) +{ + return ImGui::FindViewportByPlatformHandle(platform_handle); +} +CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void) +{ + return IM_NEW(ImGuiStyle)(); +} +CIMGUI_API void ImGuiStyle_destroy(ImGuiStyle* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor) +{ + return self->ScaleAllSizes(scale_factor); +} +CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self,ImGuiKey key,bool down) +{ + return self->AddKeyEvent(key,down); +} +CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self,ImGuiKey key,bool down,float v) +{ + return self->AddKeyAnalogEvent(key,down,v); +} +CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self,float x,float y) +{ + return self->AddMousePosEvent(x,y); +} +CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self,int button,bool down) +{ + return self->AddMouseButtonEvent(button,down); +} +CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self,float wh_x,float wh_y) +{ + return self->AddMouseWheelEvent(wh_x,wh_y); +} +CIMGUI_API void ImGuiIO_AddMouseViewportEvent(ImGuiIO* self,ImGuiID id) +{ + return self->AddMouseViewportEvent(id); +} +CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused) +{ + return self->AddFocusEvent(focused); +} +CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self,unsigned int c) +{ + return self->AddInputCharacter(c); +} +CIMGUI_API void ImGuiIO_AddInputCharacterUTF16(ImGuiIO* self,ImWchar16 c) +{ + return self->AddInputCharacterUTF16(c); +} +CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* str) +{ + return self->AddInputCharactersUTF8(str); +} +CIMGUI_API void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index) +{ + return self->SetKeyEventNativeData(key,native_keycode,native_scancode,native_legacy_index); +} +CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self,bool accepting_events) +{ + return self->SetAppAcceptingEvents(accepting_events); +} +CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self) +{ + return self->ClearInputCharacters(); +} +CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self) +{ + return self->ClearInputKeys(); +} +CIMGUI_API ImGuiIO* ImGuiIO_ImGuiIO(void) +{ + return IM_NEW(ImGuiIO)(); +} +CIMGUI_API void ImGuiIO_destroy(ImGuiIO* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiInputTextCallbackData* ImGuiInputTextCallbackData_ImGuiInputTextCallbackData(void) +{ + return IM_NEW(ImGuiInputTextCallbackData)(); +} +CIMGUI_API void ImGuiInputTextCallbackData_destroy(ImGuiInputTextCallbackData* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count) +{ + return self->DeleteChars(pos,bytes_count); +} +CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end) +{ + return self->InsertChars(pos,text,text_end); +} +CIMGUI_API void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self) +{ + return self->SelectAll(); +} +CIMGUI_API void ImGuiInputTextCallbackData_ClearSelection(ImGuiInputTextCallbackData* self) +{ + return self->ClearSelection(); +} +CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self) +{ + return self->HasSelection(); +} +CIMGUI_API ImGuiWindowClass* ImGuiWindowClass_ImGuiWindowClass(void) +{ + return IM_NEW(ImGuiWindowClass)(); +} +CIMGUI_API void ImGuiWindowClass_destroy(ImGuiWindowClass* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiPayload* ImGuiPayload_ImGuiPayload(void) +{ + return IM_NEW(ImGuiPayload)(); +} +CIMGUI_API void ImGuiPayload_destroy(ImGuiPayload* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self) +{ + return self->Clear(); +} +CIMGUI_API bool ImGuiPayload_IsDataType(ImGuiPayload* self,const char* type) +{ + return self->IsDataType(type); +} +CIMGUI_API bool ImGuiPayload_IsPreview(ImGuiPayload* self) +{ + return self->IsPreview(); +} +CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self) +{ + return self->IsDelivery(); +} +CIMGUI_API ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs(void) +{ + return IM_NEW(ImGuiTableColumnSortSpecs)(); +} +CIMGUI_API void ImGuiTableColumnSortSpecs_destroy(ImGuiTableColumnSortSpecs* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTableSortSpecs* ImGuiTableSortSpecs_ImGuiTableSortSpecs(void) +{ + return IM_NEW(ImGuiTableSortSpecs)(); +} +CIMGUI_API void ImGuiTableSortSpecs_destroy(ImGuiTableSortSpecs* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiOnceUponAFrame* ImGuiOnceUponAFrame_ImGuiOnceUponAFrame(void) +{ + return IM_NEW(ImGuiOnceUponAFrame)(); +} +CIMGUI_API void ImGuiOnceUponAFrame_destroy(ImGuiOnceUponAFrame* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_ImGuiTextFilter(const char* default_filter) +{ + return IM_NEW(ImGuiTextFilter)(default_filter); +} +CIMGUI_API void ImGuiTextFilter_destroy(ImGuiTextFilter* self) +{ + IM_DELETE(self); +} +CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width) +{ + return self->Draw(label,width); +} +CIMGUI_API bool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self,const char* text,const char* text_end) +{ + return self->PassFilter(text,text_end); +} +CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self) +{ + return self->Build(); +} +CIMGUI_API void ImGuiTextFilter_Clear(ImGuiTextFilter* self) +{ + return self->Clear(); +} +CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self) +{ + return self->IsActive(); +} +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(void) +{ + return IM_NEW(ImGuiTextRange)(); +} +CIMGUI_API void ImGuiTextRange_destroy(ImGuiTextRange* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b,const char* _e) +{ + return IM_NEW(ImGuiTextRange)(_b,_e); +} +CIMGUI_API bool ImGuiTextRange_empty(ImGuiTextRange* self) +{ + return self->empty(); +} +CIMGUI_API void ImGuiTextRange_split(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out) +{ + return self->split(separator,out); +} +CIMGUI_API ImGuiTextBuffer* ImGuiTextBuffer_ImGuiTextBuffer(void) +{ + return IM_NEW(ImGuiTextBuffer)(); +} +CIMGUI_API void ImGuiTextBuffer_destroy(ImGuiTextBuffer* self) +{ + IM_DELETE(self); +} +CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self) +{ + return self->begin(); +} +CIMGUI_API const char* ImGuiTextBuffer_end(ImGuiTextBuffer* self) +{ + return self->end(); +} +CIMGUI_API int ImGuiTextBuffer_size(ImGuiTextBuffer* self) +{ + return self->size(); +} +CIMGUI_API bool ImGuiTextBuffer_empty(ImGuiTextBuffer* self) +{ + return self->empty(); +} +CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self) +{ + return self->clear(); +} +CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity) +{ + return self->reserve(capacity); +} +CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self) +{ + return self->c_str(); +} +CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end) +{ + return self->append(str,str_end); +} +CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,va_list args) +{ + return self->appendfv(fmt,args); +} +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key,int _val_i) +{ + return IM_NEW(ImGuiStoragePair)(_key,_val_i); +} +CIMGUI_API void ImGuiStoragePair_destroy(ImGuiStoragePair* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key,float _val_f) +{ + return IM_NEW(ImGuiStoragePair)(_key,_val_f); +} +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key,void* _val_p) +{ + return IM_NEW(ImGuiStoragePair)(_key,_val_p); +} +CIMGUI_API void ImGuiStorage_Clear(ImGuiStorage* self) +{ + return self->Clear(); +} +CIMGUI_API int ImGuiStorage_GetInt(ImGuiStorage* self,ImGuiID key,int default_val) +{ + return self->GetInt(key,default_val); +} +CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self,ImGuiID key,int val) +{ + return self->SetInt(key,val); +} +CIMGUI_API bool ImGuiStorage_GetBool(ImGuiStorage* self,ImGuiID key,bool default_val) +{ + return self->GetBool(key,default_val); +} +CIMGUI_API void ImGuiStorage_SetBool(ImGuiStorage* self,ImGuiID key,bool val) +{ + return self->SetBool(key,val); +} +CIMGUI_API float ImGuiStorage_GetFloat(ImGuiStorage* self,ImGuiID key,float default_val) +{ + return self->GetFloat(key,default_val); +} +CIMGUI_API void ImGuiStorage_SetFloat(ImGuiStorage* self,ImGuiID key,float val) +{ + return self->SetFloat(key,val); +} +CIMGUI_API void* ImGuiStorage_GetVoidPtr(ImGuiStorage* self,ImGuiID key) +{ + return self->GetVoidPtr(key); +} +CIMGUI_API void ImGuiStorage_SetVoidPtr(ImGuiStorage* self,ImGuiID key,void* val) +{ + return self->SetVoidPtr(key,val); +} +CIMGUI_API int* ImGuiStorage_GetIntRef(ImGuiStorage* self,ImGuiID key,int default_val) +{ + return self->GetIntRef(key,default_val); +} +CIMGUI_API bool* ImGuiStorage_GetBoolRef(ImGuiStorage* self,ImGuiID key,bool default_val) +{ + return self->GetBoolRef(key,default_val); +} +CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self,ImGuiID key,float default_val) +{ + return self->GetFloatRef(key,default_val); +} +CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self,ImGuiID key,void* default_val) +{ + return self->GetVoidPtrRef(key,default_val); +} +CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self,int val) +{ + return self->SetAllInt(val); +} +CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self) +{ + return self->BuildSortByKey(); +} +CIMGUI_API ImGuiListClipper* ImGuiListClipper_ImGuiListClipper(void) +{ + return IM_NEW(ImGuiListClipper)(); +} +CIMGUI_API void ImGuiListClipper_destroy(ImGuiListClipper* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self,int items_count,float items_height) +{ + return self->Begin(items_count,items_height); +} +CIMGUI_API void ImGuiListClipper_End(ImGuiListClipper* self) +{ + return self->End(); +} +CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self) +{ + return self->Step(); +} +CIMGUI_API void ImGuiListClipper_ForceDisplayRangeByIndices(ImGuiListClipper* self,int item_min,int item_max) +{ + return self->ForceDisplayRangeByIndices(item_min,item_max); +} +CIMGUI_API ImColor* ImColor_ImColor_Nil(void) +{ + return IM_NEW(ImColor)(); +} +CIMGUI_API void ImColor_destroy(ImColor* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImColor* ImColor_ImColor_Float(float r,float g,float b,float a) +{ + return IM_NEW(ImColor)(r,g,b,a); +} +CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col) +{ + return IM_NEW(ImColor)(col); +} +CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a) +{ + return IM_NEW(ImColor)(r,g,b,a); +} +CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba) +{ + return IM_NEW(ImColor)(rgba); +} +CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a) +{ + return self->SetHSV(h,s,v,a); +} +CIMGUI_API void ImColor_HSV(ImColor *pOut,float h,float s,float v,float a) +{ + *pOut = ImColor::HSV(h,s,v,a); +} +CIMGUI_API ImDrawCmd* ImDrawCmd_ImDrawCmd(void) +{ + return IM_NEW(ImDrawCmd)(); +} +CIMGUI_API void ImDrawCmd_destroy(ImDrawCmd* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImTextureID ImDrawCmd_GetTexID(ImDrawCmd* self) +{ + return self->GetTexID(); +} +CIMGUI_API ImDrawListSplitter* ImDrawListSplitter_ImDrawListSplitter(void) +{ + return IM_NEW(ImDrawListSplitter)(); +} +CIMGUI_API void ImDrawListSplitter_destroy(ImDrawListSplitter* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImDrawListSplitter_Clear(ImDrawListSplitter* self) +{ + return self->Clear(); +} +CIMGUI_API void ImDrawListSplitter_ClearFreeMemory(ImDrawListSplitter* self) +{ + return self->ClearFreeMemory(); +} +CIMGUI_API void ImDrawListSplitter_Split(ImDrawListSplitter* self,ImDrawList* draw_list,int count) +{ + return self->Split(draw_list,count); +} +CIMGUI_API void ImDrawListSplitter_Merge(ImDrawListSplitter* self,ImDrawList* draw_list) +{ + return self->Merge(draw_list); +} +CIMGUI_API void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self,ImDrawList* draw_list,int channel_idx) +{ + return self->SetCurrentChannel(draw_list,channel_idx); +} +CIMGUI_API ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data) +{ + return IM_NEW(ImDrawList)(shared_data); +} +CIMGUI_API void ImDrawList_destroy(ImDrawList* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect) +{ + return self->PushClipRect(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect); +} +CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* self) +{ + return self->PushClipRectFullScreen(); +} +CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* self) +{ + return self->PopClipRect(); +} +CIMGUI_API void ImDrawList_PushTextureID(ImDrawList* self,ImTextureID texture_id) +{ + return self->PushTextureID(texture_id); +} +CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self) +{ + return self->PopTextureID(); +} +CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2 *pOut,ImDrawList* self) +{ + *pOut = self->GetClipRectMin(); +} +CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2 *pOut,ImDrawList* self) +{ + *pOut = self->GetClipRectMax(); +} +CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness) +{ + return self->AddLine(p1,p2,col,thickness); +} +CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness) +{ + return self->AddRect(p_min,p_max,col,rounding,flags,thickness); +} +CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags) +{ + return self->AddRectFilled(p_min,p_max,col,rounding,flags); +} +CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left) +{ + return self->AddRectFilledMultiColor(p_min,p_max,col_upr_left,col_upr_right,col_bot_right,col_bot_left); +} +CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness) +{ + return self->AddQuad(p1,p2,p3,p4,col,thickness); +} +CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col) +{ + return self->AddQuadFilled(p1,p2,p3,p4,col); +} +CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness) +{ + return self->AddTriangle(p1,p2,p3,col,thickness); +} +CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col) +{ + return self->AddTriangleFilled(p1,p2,p3,col); +} +CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness) +{ + return self->AddCircle(center,radius,col,num_segments,thickness); +} +CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments) +{ + return self->AddCircleFilled(center,radius,col,num_segments); +} +CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness) +{ + return self->AddNgon(center,radius,col,num_segments,thickness); +} +CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments) +{ + return self->AddNgonFilled(center,radius,col,num_segments); +} +CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end) +{ + return self->AddText(pos,col,text_begin,text_end); +} +CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect) +{ + return self->AddText(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect); +} +CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness) +{ + return self->AddPolyline(points,num_points,col,flags,thickness); +} +CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col) +{ + return self->AddConvexPolyFilled(points,num_points,col); +} +CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments) +{ + return self->AddBezierCubic(p1,p2,p3,p4,col,thickness,num_segments); +} +CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments) +{ + return self->AddBezierQuadratic(p1,p2,p3,col,thickness,num_segments); +} +CIMGUI_API void ImDrawList_AddImage(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col) +{ + return self->AddImage(user_texture_id,p_min,p_max,uv_min,uv_max,col); +} +CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col) +{ + return self->AddImageQuad(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col); +} +CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags) +{ + return self->AddImageRounded(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags); +} +CIMGUI_API void ImDrawList_PathClear(ImDrawList* self) +{ + return self->PathClear(); +} +CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos) +{ + return self->PathLineTo(pos); +} +CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos) +{ + return self->PathLineToMergeDuplicate(pos); +} +CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col) +{ + return self->PathFillConvex(col); +} +CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness) +{ + return self->PathStroke(col,flags,thickness); +} +CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments) +{ + return self->PathArcTo(center,radius,a_min,a_max,num_segments); +} +CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12) +{ + return self->PathArcToFast(center,radius,a_min_of_12,a_max_of_12); +} +CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments) +{ + return self->PathBezierCubicCurveTo(p2,p3,p4,num_segments); +} +CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments) +{ + return self->PathBezierQuadraticCurveTo(p2,p3,num_segments); +} +CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags) +{ + return self->PathRect(rect_min,rect_max,rounding,flags); +} +CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self,ImDrawCallback callback,void* callback_data) +{ + return self->AddCallback(callback,callback_data); +} +CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self) +{ + return self->AddDrawCmd(); +} +CIMGUI_API ImDrawList* ImDrawList_CloneOutput(ImDrawList* self) +{ + return self->CloneOutput(); +} +CIMGUI_API void ImDrawList_ChannelsSplit(ImDrawList* self,int count) +{ + return self->ChannelsSplit(count); +} +CIMGUI_API void ImDrawList_ChannelsMerge(ImDrawList* self) +{ + return self->ChannelsMerge(); +} +CIMGUI_API void ImDrawList_ChannelsSetCurrent(ImDrawList* self,int n) +{ + return self->ChannelsSetCurrent(n); +} +CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* self,int idx_count,int vtx_count) +{ + return self->PrimReserve(idx_count,vtx_count); +} +CIMGUI_API void ImDrawList_PrimUnreserve(ImDrawList* self,int idx_count,int vtx_count) +{ + return self->PrimUnreserve(idx_count,vtx_count); +} +CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col) +{ + return self->PrimRect(a,b,col); +} +CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col) +{ + return self->PrimRectUV(a,b,uv_a,uv_b,col); +} +CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col) +{ + return self->PrimQuadUV(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col); +} +CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col) +{ + return self->PrimWriteVtx(pos,uv,col); +} +CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx) +{ + return self->PrimWriteIdx(idx); +} +CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col) +{ + return self->PrimVtx(pos,uv,col); +} +CIMGUI_API void ImDrawList__ResetForNewFrame(ImDrawList* self) +{ + return self->_ResetForNewFrame(); +} +CIMGUI_API void ImDrawList__ClearFreeMemory(ImDrawList* self) +{ + return self->_ClearFreeMemory(); +} +CIMGUI_API void ImDrawList__PopUnusedDrawCmd(ImDrawList* self) +{ + return self->_PopUnusedDrawCmd(); +} +CIMGUI_API void ImDrawList__TryMergeDrawCmds(ImDrawList* self) +{ + return self->_TryMergeDrawCmds(); +} +CIMGUI_API void ImDrawList__OnChangedClipRect(ImDrawList* self) +{ + return self->_OnChangedClipRect(); +} +CIMGUI_API void ImDrawList__OnChangedTextureID(ImDrawList* self) +{ + return self->_OnChangedTextureID(); +} +CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self) +{ + return self->_OnChangedVtxOffset(); +} +CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self,float radius) +{ + return self->_CalcCircleAutoSegmentCount(radius); +} +CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step) +{ + return self->_PathArcToFastEx(center,radius,a_min_sample,a_max_sample,a_step); +} +CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments) +{ + return self->_PathArcToN(center,radius,a_min,a_max,num_segments); +} +CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void) +{ + return IM_NEW(ImDrawData)(); +} +CIMGUI_API void ImDrawData_destroy(ImDrawData* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImDrawData_Clear(ImDrawData* self) +{ + return self->Clear(); +} +CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* self) +{ + return self->DeIndexAllBuffers(); +} +CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self,const ImVec2 fb_scale) +{ + return self->ScaleClipRects(fb_scale); +} +CIMGUI_API ImFontConfig* ImFontConfig_ImFontConfig(void) +{ + return IM_NEW(ImFontConfig)(); +} +CIMGUI_API void ImFontConfig_destroy(ImFontConfig* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder(void) +{ + return IM_NEW(ImFontGlyphRangesBuilder)(); +} +CIMGUI_API void ImFontGlyphRangesBuilder_destroy(ImFontGlyphRangesBuilder* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self) +{ + return self->Clear(); +} +CIMGUI_API bool ImFontGlyphRangesBuilder_GetBit(ImFontGlyphRangesBuilder* self,size_t n) +{ + return self->GetBit(n); +} +CIMGUI_API void ImFontGlyphRangesBuilder_SetBit(ImFontGlyphRangesBuilder* self,size_t n) +{ + return self->SetBit(n); +} +CIMGUI_API void ImFontGlyphRangesBuilder_AddChar(ImFontGlyphRangesBuilder* self,ImWchar c) +{ + return self->AddChar(c); +} +CIMGUI_API void ImFontGlyphRangesBuilder_AddText(ImFontGlyphRangesBuilder* self,const char* text,const char* text_end) +{ + return self->AddText(text,text_end); +} +CIMGUI_API void ImFontGlyphRangesBuilder_AddRanges(ImFontGlyphRangesBuilder* self,const ImWchar* ranges) +{ + return self->AddRanges(ranges); +} +CIMGUI_API void ImFontGlyphRangesBuilder_BuildRanges(ImFontGlyphRangesBuilder* self,ImVector_ImWchar* out_ranges) +{ + return self->BuildRanges(out_ranges); +} +CIMGUI_API ImFontAtlasCustomRect* ImFontAtlasCustomRect_ImFontAtlasCustomRect(void) +{ + return IM_NEW(ImFontAtlasCustomRect)(); +} +CIMGUI_API void ImFontAtlasCustomRect_destroy(ImFontAtlasCustomRect* self) +{ + IM_DELETE(self); +} +CIMGUI_API bool ImFontAtlasCustomRect_IsPacked(ImFontAtlasCustomRect* self) +{ + return self->IsPacked(); +} +CIMGUI_API ImFontAtlas* ImFontAtlas_ImFontAtlas(void) +{ + return IM_NEW(ImFontAtlas)(); +} +CIMGUI_API void ImFontAtlas_destroy(ImFontAtlas* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self,const ImFontConfig* font_cfg) +{ + return self->AddFont(font_cfg); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self,const ImFontConfig* font_cfg) +{ + return self->AddFontDefault(font_cfg); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self,const char* filename,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges) +{ + return self->AddFontFromFileTTF(filename,size_pixels,font_cfg,glyph_ranges); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self,void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges) +{ + return self->AddFontFromMemoryTTF(font_data,font_size,size_pixels,font_cfg,glyph_ranges); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges) +{ + return self->AddFontFromMemoryCompressedTTF(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges) +{ + return self->AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges); +} +CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self) +{ + return self->ClearInputData(); +} +CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self) +{ + return self->ClearTexData(); +} +CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self) +{ + return self->ClearFonts(); +} +CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self) +{ + return self->Clear(); +} +CIMGUI_API bool ImFontAtlas_Build(ImFontAtlas* self) +{ + return self->Build(); +} +CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel) +{ + return self->GetTexDataAsAlpha8(out_pixels,out_width,out_height,out_bytes_per_pixel); +} +CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel) +{ + return self->GetTexDataAsRGBA32(out_pixels,out_width,out_height,out_bytes_per_pixel); +} +CIMGUI_API bool ImFontAtlas_IsBuilt(ImFontAtlas* self) +{ + return self->IsBuilt(); +} +CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self,ImTextureID id) +{ + return self->SetTexID(id); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self) +{ + return self->GetGlyphRangesDefault(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self) +{ + return self->GetGlyphRangesGreek(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self) +{ + return self->GetGlyphRangesKorean(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self) +{ + return self->GetGlyphRangesJapanese(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self) +{ + return self->GetGlyphRangesChineseFull(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self) +{ + return self->GetGlyphRangesChineseSimplifiedCommon(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(ImFontAtlas* self) +{ + return self->GetGlyphRangesCyrillic(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesThai(ImFontAtlas* self) +{ + return self->GetGlyphRangesThai(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesVietnamese(ImFontAtlas* self) +{ + return self->GetGlyphRangesVietnamese(); +} +CIMGUI_API int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self,int width,int height) +{ + return self->AddCustomRectRegular(width,height); +} +CIMGUI_API int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset) +{ + return self->AddCustomRectFontGlyph(font,id,width,height,advance_x,offset); +} +CIMGUI_API ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self,int index) +{ + return self->GetCustomRectByIndex(index); +} +CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max) +{ + return self->CalcCustomRectUV(rect,out_uv_min,out_uv_max); +} +CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2]) +{ + return self->GetMouseCursorTexData(cursor,out_offset,out_size,out_uv_border,out_uv_fill); +} +CIMGUI_API ImFont* ImFont_ImFont(void) +{ + return IM_NEW(ImFont)(); +} +CIMGUI_API void ImFont_destroy(ImFont* self) +{ + IM_DELETE(self); +} +CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c) +{ + return self->FindGlyph(c); +} +CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c) +{ + return self->FindGlyphNoFallback(c); +} +CIMGUI_API float ImFont_GetCharAdvance(ImFont* self,ImWchar c) +{ + return self->GetCharAdvance(c); +} +CIMGUI_API bool ImFont_IsLoaded(ImFont* self) +{ + return self->IsLoaded(); +} +CIMGUI_API const char* ImFont_GetDebugName(ImFont* self) +{ + return self->GetDebugName(); +} +CIMGUI_API void ImFont_CalcTextSizeA(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining) +{ + *pOut = self->CalcTextSizeA(size,max_width,wrap_width,text_begin,text_end,remaining); +} +CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width) +{ + return self->CalcWordWrapPositionA(scale,text,text_end,wrap_width); +} +CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c) +{ + return self->RenderChar(draw_list,size,pos,col,c); +} +CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip) +{ + return self->RenderText(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip); +} +CIMGUI_API void ImFont_BuildLookupTable(ImFont* self) +{ + return self->BuildLookupTable(); +} +CIMGUI_API void ImFont_ClearOutputData(ImFont* self) +{ + return self->ClearOutputData(); +} +CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size) +{ + return self->GrowIndex(new_size); +} +CIMGUI_API void ImFont_AddGlyph(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x) +{ + return self->AddGlyph(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,advance_x); +} +CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst) +{ + return self->AddRemapChar(dst,src,overwrite_dst); +} +CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self,ImWchar c,bool visible) +{ + return self->SetGlyphVisible(c,visible); +} +CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last) +{ + return self->IsGlyphRangeUnused(c_begin,c_last); +} +CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void) +{ + return IM_NEW(ImGuiViewport)(); +} +CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self) +{ + *pOut = self->GetCenter(); +} +CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self) +{ + *pOut = self->GetWorkCenter(); +} +CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_ImGuiPlatformIO(void) +{ + return IM_NEW(ImGuiPlatformIO)(); +} +CIMGUI_API void ImGuiPlatformIO_destroy(ImGuiPlatformIO* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiPlatformMonitor* ImGuiPlatformMonitor_ImGuiPlatformMonitor(void) +{ + return IM_NEW(ImGuiPlatformMonitor)(); +} +CIMGUI_API void ImGuiPlatformMonitor_destroy(ImGuiPlatformMonitor* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void) +{ + return IM_NEW(ImGuiPlatformImeData)(); +} +CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key) +{ + return ImGui::GetKeyIndex(key); +} +CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType() +{ + return ImGuiFreeType::GetBuilderForFreeType(); +} +CIMGUI_API void ImGuiFreeType_SetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data) +{ + return ImGuiFreeType::SetAllocatorFunctions(alloc_func,free_func,user_data); +} + + + +/////////////////////////////manual written functions +CIMGUI_API void igLogText(CONST char *fmt, ...) +{ + char buffer[256]; + va_list args; + va_start(args, fmt); + vsnprintf(buffer, 256, fmt, args); + va_end(args); + + ImGui::LogText("%s", buffer); +} +CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + buffer->appendfv(fmt, args); + va_end(args); +} + +CIMGUI_API float igGET_FLT_MAX() +{ + return FLT_MAX; +} + +CIMGUI_API float igGET_FLT_MIN() +{ + return FLT_MIN; +} + + +CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create() +{ + return IM_NEW(ImVector) (); +} + +CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self) +{ + IM_DELETE(self); +} + +CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p) +{ + IM_PLACEMENT_NEW(p) ImVector(); +} +CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p) +{ + p->~ImVector(); +} + + +#ifdef IMGUI_HAS_DOCK + +// NOTE: Some function pointers in the ImGuiPlatformIO structure are not C-compatible because of their +// use of a complex return type. To work around this, we store a custom CimguiStorage object inside +// ImGuiIO::BackendLanguageUserData, which contains C-compatible function pointer variants for these +// functions. When a user function pointer is provided, we hook up the underlying ImGuiPlatformIO +// function pointer to a thunk which accesses the user function pointer through CimguiStorage. + +struct CimguiStorage +{ + void(*Platform_GetWindowPos)(ImGuiViewport* vp, ImVec2* out_pos); + void(*Platform_GetWindowSize)(ImGuiViewport* vp, ImVec2* out_pos); +}; + +// Gets a reference to the CimguiStorage object stored in the current ImGui context's BackendLanguageUserData. +CimguiStorage& GetCimguiStorage() +{ + ImGuiIO& io = ImGui::GetIO(); + if (io.BackendLanguageUserData == NULL) + { + io.BackendLanguageUserData = new CimguiStorage(); + } + + return *(CimguiStorage*)io.BackendLanguageUserData; +} + +// Thunk satisfying the signature of ImGuiPlatformIO::Platform_GetWindowPos. +ImVec2 Platform_GetWindowPos_hook(ImGuiViewport* vp) +{ + ImVec2 pos; + GetCimguiStorage().Platform_GetWindowPos(vp, &pos); + return pos; +}; + +// Fully C-compatible function pointer setter for ImGuiPlatformIO::Platform_GetWindowPos. +CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowPos(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_pos)) +{ + CimguiStorage& storage = GetCimguiStorage(); + storage.Platform_GetWindowPos = user_callback; + platform_io->Platform_GetWindowPos = &Platform_GetWindowPos_hook; +} + +// Thunk satisfying the signature of ImGuiPlatformIO::Platform_GetWindowSize. +ImVec2 Platform_GetWindowSize_hook(ImGuiViewport* vp) +{ + ImVec2 size; + GetCimguiStorage().Platform_GetWindowSize(vp, &size); + return size; +}; + +// Fully C-compatible function pointer setter for ImGuiPlatformIO::Platform_GetWindowSize. +CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowSize(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_size)) +{ + CimguiStorage& storage = GetCimguiStorage(); + storage.Platform_GetWindowSize = user_callback; + platform_io->Platform_GetWindowSize = &Platform_GetWindowSize_hook; +} + +#endif diff --git a/imgui-sys/third-party/imgui-docking-freetype/cimgui.h b/imgui-sys/third-party/imgui-docking-freetype/cimgui.h new file mode 100644 index 000000000..72dabd6fc --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/cimgui.h @@ -0,0 +1,2069 @@ +//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui +//based on imgui.h file version "1.89.1" 18910 from Dear ImGui https://github.com/ocornut/imgui +//with imgui_freetype.h api +//docking branch +#ifndef CIMGUI_INCLUDED +#define CIMGUI_INCLUDED +#include +#include +#if defined _WIN32 || defined __CYGWIN__ + #ifdef CIMGUI_NO_EXPORT + #define API + #else + #define API __declspec(dllexport) + #endif +#else + #ifdef __GNUC__ + #define API __attribute__((__visibility__("default"))) + #else + #define API + #endif +#endif + +#if defined __cplusplus + #define EXTERN extern "C" +#else + #include + #include + #define EXTERN extern +#endif + +#define CIMGUI_API EXTERN API +#define CONST const + + +#ifdef _MSC_VER +typedef unsigned __int64 ImU64; +#else +//typedef unsigned long long ImU64; +#endif + + +#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS + +typedef struct ImDrawChannel ImDrawChannel; +typedef struct ImDrawCmd ImDrawCmd; +typedef struct ImDrawData ImDrawData; +typedef struct ImDrawList ImDrawList; +typedef struct ImDrawListSharedData ImDrawListSharedData; +typedef struct ImDrawListSplitter ImDrawListSplitter; +typedef struct ImDrawVert ImDrawVert; +typedef struct ImFont ImFont; +typedef struct ImFontAtlas ImFontAtlas; +typedef struct ImFontBuilderIO ImFontBuilderIO; +typedef struct ImFontConfig ImFontConfig; +typedef struct ImFontGlyph ImFontGlyph; +typedef struct ImFontGlyphRangesBuilder ImFontGlyphRangesBuilder; +typedef struct ImColor ImColor; +typedef struct ImGuiContext ImGuiContext; +typedef struct ImGuiIO ImGuiIO; +typedef struct ImGuiInputTextCallbackData ImGuiInputTextCallbackData; +typedef struct ImGuiKeyData ImGuiKeyData; +typedef struct ImGuiListClipper ImGuiListClipper; +typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame; +typedef struct ImGuiPayload ImGuiPayload; +typedef struct ImGuiPlatformIO ImGuiPlatformIO; +typedef struct ImGuiPlatformMonitor ImGuiPlatformMonitor; +typedef struct ImGuiPlatformImeData ImGuiPlatformImeData; +typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData; +typedef struct ImGuiStorage ImGuiStorage; +typedef struct ImGuiStyle ImGuiStyle; +typedef struct ImGuiTableSortSpecs ImGuiTableSortSpecs; +typedef struct ImGuiTableColumnSortSpecs ImGuiTableColumnSortSpecs; +typedef struct ImGuiTextBuffer ImGuiTextBuffer; +typedef struct ImGuiTextFilter ImGuiTextFilter; +typedef struct ImGuiViewport ImGuiViewport; +typedef struct ImGuiWindowClass ImGuiWindowClass; +struct ImDrawChannel; +struct ImDrawCmd; +struct ImDrawData; +struct ImDrawList; +struct ImDrawListSharedData; +struct ImDrawListSplitter; +struct ImDrawVert; +struct ImFont; +struct ImFontAtlas; +struct ImFontBuilderIO; +struct ImFontConfig; +struct ImFontGlyph; +struct ImFontGlyphRangesBuilder; +struct ImColor; +struct ImGuiContext; +struct ImGuiIO; +struct ImGuiInputTextCallbackData; +struct ImGuiKeyData; +struct ImGuiListClipper; +struct ImGuiOnceUponAFrame; +struct ImGuiPayload; +struct ImGuiPlatformIO; +struct ImGuiPlatformMonitor; +struct ImGuiPlatformImeData; +struct ImGuiSizeCallbackData; +struct ImGuiStorage; +struct ImGuiStyle; +struct ImGuiTableSortSpecs; +struct ImGuiTableColumnSortSpecs; +struct ImGuiTextBuffer; +struct ImGuiTextFilter; +struct ImGuiViewport; +struct ImGuiWindowClass; +typedef int ImGuiCol; +typedef int ImGuiCond; +typedef int ImGuiDataType; +typedef int ImGuiDir; +typedef int ImGuiMouseButton; +typedef int ImGuiMouseCursor; +typedef int ImGuiSortDirection; +typedef int ImGuiStyleVar; +typedef int ImGuiTableBgTarget; +typedef int ImDrawFlags; +typedef int ImDrawListFlags; +typedef int ImFontAtlasFlags; +typedef int ImGuiBackendFlags; +typedef int ImGuiButtonFlags; +typedef int ImGuiColorEditFlags; +typedef int ImGuiConfigFlags; +typedef int ImGuiComboFlags; +typedef int ImGuiDockNodeFlags; +typedef int ImGuiDragDropFlags; +typedef int ImGuiFocusedFlags; +typedef int ImGuiHoveredFlags; +typedef int ImGuiInputTextFlags; +typedef int ImGuiKeyChord; +typedef int ImGuiPopupFlags; +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 void* ImTextureID; +typedef unsigned short ImDrawIdx; +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 unsigned short ImWchar16; +typedef unsigned int ImWchar32; +typedef ImWchar32 ImWchar; +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 struct ImVec2 ImVec2; +struct ImVec2 +{ + float x, y; +}; +typedef struct ImVec4 ImVec4; +struct ImVec4 +{ + float x, y, z, w; +}; +typedef enum { + ImGuiWindowFlags_None = 0, + ImGuiWindowFlags_NoTitleBar = 1 << 0, + ImGuiWindowFlags_NoResize = 1 << 1, + ImGuiWindowFlags_NoMove = 1 << 2, + ImGuiWindowFlags_NoScrollbar = 1 << 3, + ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, + ImGuiWindowFlags_NoCollapse = 1 << 5, + ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, + ImGuiWindowFlags_NoBackground = 1 << 7, + ImGuiWindowFlags_NoSavedSettings = 1 << 8, + ImGuiWindowFlags_NoMouseInputs = 1 << 9, + ImGuiWindowFlags_MenuBar = 1 << 10, + ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, + ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, + ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, + ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, + ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, + ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, + ImGuiWindowFlags_NoNavInputs = 1 << 18, + ImGuiWindowFlags_NoNavFocus = 1 << 19, + ImGuiWindowFlags_UnsavedDocument = 1 << 20, + ImGuiWindowFlags_NoDocking = 1 << 21, + ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, + ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NavFlattened = 1 << 23, + ImGuiWindowFlags_ChildWindow = 1 << 24, + ImGuiWindowFlags_Tooltip = 1 << 25, + ImGuiWindowFlags_Popup = 1 << 26, + ImGuiWindowFlags_Modal = 1 << 27, + ImGuiWindowFlags_ChildMenu = 1 << 28, + ImGuiWindowFlags_DockNodeHost = 1 << 29, +}ImGuiWindowFlags_; +typedef enum { + ImGuiInputTextFlags_None = 0, + ImGuiInputTextFlags_CharsDecimal = 1 << 0, + ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, + ImGuiInputTextFlags_CharsUppercase = 1 << 2, + ImGuiInputTextFlags_CharsNoBlank = 1 << 3, + ImGuiInputTextFlags_AutoSelectAll = 1 << 4, + ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, + ImGuiInputTextFlags_CallbackCompletion = 1 << 6, + ImGuiInputTextFlags_CallbackHistory = 1 << 7, + ImGuiInputTextFlags_CallbackAlways = 1 << 8, + ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, + ImGuiInputTextFlags_AllowTabInput = 1 << 10, + ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, + ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, + ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13, + ImGuiInputTextFlags_ReadOnly = 1 << 14, + ImGuiInputTextFlags_Password = 1 << 15, + ImGuiInputTextFlags_NoUndoRedo = 1 << 16, + ImGuiInputTextFlags_CharsScientific = 1 << 17, + ImGuiInputTextFlags_CallbackResize = 1 << 18, + ImGuiInputTextFlags_CallbackEdit = 1 << 19, + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, +}ImGuiInputTextFlags_; +typedef enum { + ImGuiTreeNodeFlags_None = 0, + ImGuiTreeNodeFlags_Selected = 1 << 0, + ImGuiTreeNodeFlags_Framed = 1 << 1, + ImGuiTreeNodeFlags_AllowItemOverlap = 1 << 2, + ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, + ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, + ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, + ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, + ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, + ImGuiTreeNodeFlags_Leaf = 1 << 8, + ImGuiTreeNodeFlags_Bullet = 1 << 9, + ImGuiTreeNodeFlags_FramePadding = 1 << 10, + ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, + ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, + ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, +}ImGuiTreeNodeFlags_; +typedef enum { + ImGuiPopupFlags_None = 0, + ImGuiPopupFlags_MouseButtonLeft = 0, + ImGuiPopupFlags_MouseButtonRight = 1, + ImGuiPopupFlags_MouseButtonMiddle = 2, + ImGuiPopupFlags_MouseButtonMask_ = 0x1F, + ImGuiPopupFlags_MouseButtonDefault_ = 1, + ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, + ImGuiPopupFlags_NoOpenOverItems = 1 << 6, + ImGuiPopupFlags_AnyPopupId = 1 << 7, + ImGuiPopupFlags_AnyPopupLevel = 1 << 8, + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, +}ImGuiPopupFlags_; +typedef enum { + ImGuiSelectableFlags_None = 0, + ImGuiSelectableFlags_DontClosePopups = 1 << 0, + ImGuiSelectableFlags_SpanAllColumns = 1 << 1, + ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, + ImGuiSelectableFlags_Disabled = 1 << 3, + ImGuiSelectableFlags_AllowItemOverlap = 1 << 4, +}ImGuiSelectableFlags_; +typedef enum { + ImGuiComboFlags_None = 0, + ImGuiComboFlags_PopupAlignLeft = 1 << 0, + ImGuiComboFlags_HeightSmall = 1 << 1, + ImGuiComboFlags_HeightRegular = 1 << 2, + ImGuiComboFlags_HeightLarge = 1 << 3, + ImGuiComboFlags_HeightLargest = 1 << 4, + ImGuiComboFlags_NoArrowButton = 1 << 5, + ImGuiComboFlags_NoPreview = 1 << 6, + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, +}ImGuiComboFlags_; +typedef enum { + ImGuiTabBarFlags_None = 0, + ImGuiTabBarFlags_Reorderable = 1 << 0, + ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, + ImGuiTabBarFlags_TabListPopupButton = 1 << 2, + ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, + ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, + ImGuiTabBarFlags_NoTooltip = 1 << 5, + ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, + ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, + ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, +}ImGuiTabBarFlags_; +typedef enum { + ImGuiTabItemFlags_None = 0, + ImGuiTabItemFlags_UnsavedDocument = 1 << 0, + ImGuiTabItemFlags_SetSelected = 1 << 1, + ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, + ImGuiTabItemFlags_NoPushId = 1 << 3, + ImGuiTabItemFlags_NoTooltip = 1 << 4, + ImGuiTabItemFlags_NoReorder = 1 << 5, + ImGuiTabItemFlags_Leading = 1 << 6, + ImGuiTabItemFlags_Trailing = 1 << 7, +}ImGuiTabItemFlags_; +typedef enum { + ImGuiTableFlags_None = 0, + ImGuiTableFlags_Resizable = 1 << 0, + ImGuiTableFlags_Reorderable = 1 << 1, + ImGuiTableFlags_Hideable = 1 << 2, + ImGuiTableFlags_Sortable = 1 << 3, + ImGuiTableFlags_NoSavedSettings = 1 << 4, + ImGuiTableFlags_ContextMenuInBody = 1 << 5, + ImGuiTableFlags_RowBg = 1 << 6, + ImGuiTableFlags_BordersInnerH = 1 << 7, + ImGuiTableFlags_BordersOuterH = 1 << 8, + ImGuiTableFlags_BordersInnerV = 1 << 9, + ImGuiTableFlags_BordersOuterV = 1 << 10, + ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, + ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, + ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, + ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, + ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, + ImGuiTableFlags_NoBordersInBody = 1 << 11, + ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, + ImGuiTableFlags_SizingFixedFit = 1 << 13, + ImGuiTableFlags_SizingFixedSame = 2 << 13, + ImGuiTableFlags_SizingStretchProp = 3 << 13, + ImGuiTableFlags_SizingStretchSame = 4 << 13, + ImGuiTableFlags_NoHostExtendX = 1 << 16, + ImGuiTableFlags_NoHostExtendY = 1 << 17, + ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, + ImGuiTableFlags_PreciseWidths = 1 << 19, + ImGuiTableFlags_NoClip = 1 << 20, + ImGuiTableFlags_PadOuterX = 1 << 21, + ImGuiTableFlags_NoPadOuterX = 1 << 22, + ImGuiTableFlags_NoPadInnerX = 1 << 23, + ImGuiTableFlags_ScrollX = 1 << 24, + ImGuiTableFlags_ScrollY = 1 << 25, + ImGuiTableFlags_SortMulti = 1 << 26, + ImGuiTableFlags_SortTristate = 1 << 27, + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, +}ImGuiTableFlags_; +typedef enum { + ImGuiTableColumnFlags_None = 0, + ImGuiTableColumnFlags_Disabled = 1 << 0, + ImGuiTableColumnFlags_DefaultHide = 1 << 1, + ImGuiTableColumnFlags_DefaultSort = 1 << 2, + ImGuiTableColumnFlags_WidthStretch = 1 << 3, + ImGuiTableColumnFlags_WidthFixed = 1 << 4, + ImGuiTableColumnFlags_NoResize = 1 << 5, + ImGuiTableColumnFlags_NoReorder = 1 << 6, + ImGuiTableColumnFlags_NoHide = 1 << 7, + ImGuiTableColumnFlags_NoClip = 1 << 8, + ImGuiTableColumnFlags_NoSort = 1 << 9, + ImGuiTableColumnFlags_NoSortAscending = 1 << 10, + ImGuiTableColumnFlags_NoSortDescending = 1 << 11, + ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, + ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, + ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, + ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, + ImGuiTableColumnFlags_IndentEnable = 1 << 16, + ImGuiTableColumnFlags_IndentDisable = 1 << 17, + ImGuiTableColumnFlags_IsEnabled = 1 << 24, + ImGuiTableColumnFlags_IsVisible = 1 << 25, + ImGuiTableColumnFlags_IsSorted = 1 << 26, + ImGuiTableColumnFlags_IsHovered = 1 << 27, + ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, + ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, + ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, +}ImGuiTableColumnFlags_; +typedef enum { + ImGuiTableRowFlags_None = 0, + ImGuiTableRowFlags_Headers = 1 << 0, +}ImGuiTableRowFlags_; +typedef enum { + ImGuiTableBgTarget_None = 0, + ImGuiTableBgTarget_RowBg0 = 1, + ImGuiTableBgTarget_RowBg1 = 2, + ImGuiTableBgTarget_CellBg = 3, +}ImGuiTableBgTarget_; +typedef enum { + ImGuiFocusedFlags_None = 0, + ImGuiFocusedFlags_ChildWindows = 1 << 0, + ImGuiFocusedFlags_RootWindow = 1 << 1, + ImGuiFocusedFlags_AnyWindow = 1 << 2, + ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, + ImGuiFocusedFlags_DockHierarchy = 1 << 4, + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, +}ImGuiFocusedFlags_; +typedef enum { + ImGuiHoveredFlags_None = 0, + ImGuiHoveredFlags_ChildWindows = 1 << 0, + ImGuiHoveredFlags_RootWindow = 1 << 1, + ImGuiHoveredFlags_AnyWindow = 1 << 2, + ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3, + ImGuiHoveredFlags_DockHierarchy = 1 << 4, + ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5, + ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, + ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 8, + ImGuiHoveredFlags_AllowWhenDisabled = 1 << 9, + ImGuiHoveredFlags_NoNavOverride = 1 << 10, + ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + ImGuiHoveredFlags_DelayNormal = 1 << 11, + ImGuiHoveredFlags_DelayShort = 1 << 12, + ImGuiHoveredFlags_NoSharedDelay = 1 << 13, +}ImGuiHoveredFlags_; +typedef enum { + ImGuiDockNodeFlags_None = 0, + ImGuiDockNodeFlags_KeepAliveOnly = 1 << 0, + ImGuiDockNodeFlags_NoDockingInCentralNode = 1 << 2, + ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3, + ImGuiDockNodeFlags_NoSplit = 1 << 4, + ImGuiDockNodeFlags_NoResize = 1 << 5, + ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6, +}ImGuiDockNodeFlags_; +typedef enum { + ImGuiDragDropFlags_None = 0, + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, + ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, + ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, + ImGuiDragDropFlags_SourceExtern = 1 << 4, + ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, + ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, + ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, + ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, +}ImGuiDragDropFlags_; +typedef enum { + ImGuiDataType_S8, + ImGuiDataType_U8, + ImGuiDataType_S16, + ImGuiDataType_U16, + ImGuiDataType_S32, + ImGuiDataType_U32, + ImGuiDataType_S64, + ImGuiDataType_U64, + ImGuiDataType_Float, + ImGuiDataType_Double, + ImGuiDataType_COUNT +}ImGuiDataType_; +typedef enum { + ImGuiDir_None = -1, + ImGuiDir_Left = 0, + ImGuiDir_Right = 1, + ImGuiDir_Up = 2, + ImGuiDir_Down = 3, + ImGuiDir_COUNT +}ImGuiDir_; +typedef enum { + ImGuiSortDirection_None = 0, + ImGuiSortDirection_Ascending = 1, + ImGuiSortDirection_Descending = 2 +}ImGuiSortDirection_; +typedef enum { +ImGuiKey_None=0, +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_Apostrophe=584, +ImGuiKey_Comma=585, +ImGuiKey_Minus=586, +ImGuiKey_Period=587, +ImGuiKey_Slash=588, +ImGuiKey_Semicolon=589, +ImGuiKey_Equal=590, +ImGuiKey_LeftBracket=591, +ImGuiKey_Backslash=592, +ImGuiKey_RightBracket=593, +ImGuiKey_GraveAccent=594, +ImGuiKey_CapsLock=595, +ImGuiKey_ScrollLock=596, +ImGuiKey_NumLock=597, +ImGuiKey_PrintScreen=598, +ImGuiKey_Pause=599, +ImGuiKey_Keypad0=600, +ImGuiKey_Keypad1=601, +ImGuiKey_Keypad2=602, +ImGuiKey_Keypad3=603, +ImGuiKey_Keypad4=604, +ImGuiKey_Keypad5=605, +ImGuiKey_Keypad6=606, +ImGuiKey_Keypad7=607, +ImGuiKey_Keypad8=608, +ImGuiKey_Keypad9=609, +ImGuiKey_KeypadDecimal=610, +ImGuiKey_KeypadDivide=611, +ImGuiKey_KeypadMultiply=612, +ImGuiKey_KeypadSubtract=613, +ImGuiKey_KeypadAdd=614, +ImGuiKey_KeypadEnter=615, +ImGuiKey_KeypadEqual=616, +ImGuiKey_GamepadStart=617, +ImGuiKey_GamepadBack=618, +ImGuiKey_GamepadFaceLeft=619, +ImGuiKey_GamepadFaceRight=620, +ImGuiKey_GamepadFaceUp=621, +ImGuiKey_GamepadFaceDown=622, +ImGuiKey_GamepadDpadLeft=623, +ImGuiKey_GamepadDpadRight=624, +ImGuiKey_GamepadDpadUp=625, +ImGuiKey_GamepadDpadDown=626, +ImGuiKey_GamepadL1=627, +ImGuiKey_GamepadR1=628, +ImGuiKey_GamepadL2=629, +ImGuiKey_GamepadR2=630, +ImGuiKey_GamepadL3=631, +ImGuiKey_GamepadR3=632, +ImGuiKey_GamepadLStickLeft=633, +ImGuiKey_GamepadLStickRight=634, +ImGuiKey_GamepadLStickUp=635, +ImGuiKey_GamepadLStickDown=636, +ImGuiKey_GamepadRStickLeft=637, +ImGuiKey_GamepadRStickRight=638, +ImGuiKey_GamepadRStickUp=639, +ImGuiKey_GamepadRStickDown=640, +ImGuiKey_MouseLeft=641, +ImGuiKey_MouseRight=642, +ImGuiKey_MouseMiddle=643, +ImGuiKey_MouseX1=644, +ImGuiKey_MouseX2=645, +ImGuiKey_MouseWheelX=646, +ImGuiKey_MouseWheelY=647, +ImGuiKey_ReservedForModCtrl=648, +ImGuiKey_ReservedForModShift=649, +ImGuiKey_ReservedForModAlt=650, +ImGuiKey_ReservedForModSuper=651, +ImGuiKey_COUNT=652, +ImGuiMod_None=0, +ImGuiMod_Ctrl=1 << 12, +ImGuiMod_Shift=1 << 13, +ImGuiMod_Alt=1 << 14, +ImGuiMod_Super=1 << 15, +ImGuiMod_Mask_=0xF000, +ImGuiMod_Shortcut=ImGuiMod_Ctrl, +ImGuiKey_NamedKey_BEGIN=512, +ImGuiKey_NamedKey_END=ImGuiKey_COUNT, +ImGuiKey_NamedKey_COUNT=ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +ImGuiKey_KeysData_SIZE=ImGuiKey_COUNT, +ImGuiKey_KeysData_OFFSET=0, +}ImGuiKey; +typedef enum { + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, + ImGuiNavInput_COUNT, +}ImGuiNavInput; +typedef enum { + ImGuiConfigFlags_None = 0, + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, + ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, + ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, + ImGuiConfigFlags_NoMouse = 1 << 4, + ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, + ImGuiConfigFlags_DockingEnable = 1 << 6, + ImGuiConfigFlags_ViewportsEnable = 1 << 10, + ImGuiConfigFlags_DpiEnableScaleViewports= 1 << 14, + ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 15, + ImGuiConfigFlags_IsSRGB = 1 << 20, + ImGuiConfigFlags_IsTouchScreen = 1 << 21, +}ImGuiConfigFlags_; +typedef enum { + ImGuiBackendFlags_None = 0, + ImGuiBackendFlags_HasGamepad = 1 << 0, + ImGuiBackendFlags_HasMouseCursors = 1 << 1, + ImGuiBackendFlags_HasSetMousePos = 1 << 2, + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, + ImGuiBackendFlags_PlatformHasViewports = 1 << 10, + ImGuiBackendFlags_HasMouseHoveredViewport=1 << 11, + ImGuiBackendFlags_RendererHasViewports = 1 << 12, +}ImGuiBackendFlags_; +typedef enum { + ImGuiCol_Text, + ImGuiCol_TextDisabled, + ImGuiCol_WindowBg, + ImGuiCol_ChildBg, + ImGuiCol_PopupBg, + ImGuiCol_Border, + ImGuiCol_BorderShadow, + ImGuiCol_FrameBg, + ImGuiCol_FrameBgHovered, + ImGuiCol_FrameBgActive, + ImGuiCol_TitleBg, + ImGuiCol_TitleBgActive, + ImGuiCol_TitleBgCollapsed, + ImGuiCol_MenuBarBg, + ImGuiCol_ScrollbarBg, + ImGuiCol_ScrollbarGrab, + ImGuiCol_ScrollbarGrabHovered, + ImGuiCol_ScrollbarGrabActive, + ImGuiCol_CheckMark, + ImGuiCol_SliderGrab, + ImGuiCol_SliderGrabActive, + ImGuiCol_Button, + ImGuiCol_ButtonHovered, + ImGuiCol_ButtonActive, + ImGuiCol_Header, + ImGuiCol_HeaderHovered, + ImGuiCol_HeaderActive, + ImGuiCol_Separator, + ImGuiCol_SeparatorHovered, + ImGuiCol_SeparatorActive, + ImGuiCol_ResizeGrip, + ImGuiCol_ResizeGripHovered, + ImGuiCol_ResizeGripActive, + ImGuiCol_Tab, + ImGuiCol_TabHovered, + ImGuiCol_TabActive, + ImGuiCol_TabUnfocused, + ImGuiCol_TabUnfocusedActive, + ImGuiCol_DockingPreview, + ImGuiCol_DockingEmptyBg, + ImGuiCol_PlotLines, + ImGuiCol_PlotLinesHovered, + ImGuiCol_PlotHistogram, + ImGuiCol_PlotHistogramHovered, + ImGuiCol_TableHeaderBg, + ImGuiCol_TableBorderStrong, + ImGuiCol_TableBorderLight, + ImGuiCol_TableRowBg, + ImGuiCol_TableRowBgAlt, + ImGuiCol_TextSelectedBg, + ImGuiCol_DragDropTarget, + ImGuiCol_NavHighlight, + ImGuiCol_NavWindowingHighlight, + ImGuiCol_NavWindowingDimBg, + ImGuiCol_ModalWindowDimBg, + ImGuiCol_COUNT +}ImGuiCol_; +typedef enum { + ImGuiStyleVar_Alpha, + ImGuiStyleVar_DisabledAlpha, + ImGuiStyleVar_WindowPadding, + ImGuiStyleVar_WindowRounding, + ImGuiStyleVar_WindowBorderSize, + ImGuiStyleVar_WindowMinSize, + ImGuiStyleVar_WindowTitleAlign, + ImGuiStyleVar_ChildRounding, + ImGuiStyleVar_ChildBorderSize, + ImGuiStyleVar_PopupRounding, + ImGuiStyleVar_PopupBorderSize, + ImGuiStyleVar_FramePadding, + ImGuiStyleVar_FrameRounding, + ImGuiStyleVar_FrameBorderSize, + ImGuiStyleVar_ItemSpacing, + ImGuiStyleVar_ItemInnerSpacing, + ImGuiStyleVar_IndentSpacing, + ImGuiStyleVar_CellPadding, + ImGuiStyleVar_ScrollbarSize, + ImGuiStyleVar_ScrollbarRounding, + ImGuiStyleVar_GrabMinSize, + ImGuiStyleVar_GrabRounding, + ImGuiStyleVar_TabRounding, + ImGuiStyleVar_ButtonTextAlign, + ImGuiStyleVar_SelectableTextAlign, + ImGuiStyleVar_COUNT +}ImGuiStyleVar_; +typedef enum { + ImGuiButtonFlags_None = 0, + ImGuiButtonFlags_MouseButtonLeft = 1 << 0, + ImGuiButtonFlags_MouseButtonRight = 1 << 1, + ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, + ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, +}ImGuiButtonFlags_; +typedef enum { + ImGuiColorEditFlags_None = 0, + ImGuiColorEditFlags_NoAlpha = 1 << 1, + ImGuiColorEditFlags_NoPicker = 1 << 2, + ImGuiColorEditFlags_NoOptions = 1 << 3, + ImGuiColorEditFlags_NoSmallPreview = 1 << 4, + ImGuiColorEditFlags_NoInputs = 1 << 5, + ImGuiColorEditFlags_NoTooltip = 1 << 6, + ImGuiColorEditFlags_NoLabel = 1 << 7, + ImGuiColorEditFlags_NoSidePreview = 1 << 8, + ImGuiColorEditFlags_NoDragDrop = 1 << 9, + ImGuiColorEditFlags_NoBorder = 1 << 10, + ImGuiColorEditFlags_AlphaBar = 1 << 16, + ImGuiColorEditFlags_AlphaPreview = 1 << 17, + ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18, + ImGuiColorEditFlags_HDR = 1 << 19, + ImGuiColorEditFlags_DisplayRGB = 1 << 20, + ImGuiColorEditFlags_DisplayHSV = 1 << 21, + ImGuiColorEditFlags_DisplayHex = 1 << 22, + ImGuiColorEditFlags_Uint8 = 1 << 23, + ImGuiColorEditFlags_Float = 1 << 24, + ImGuiColorEditFlags_PickerHueBar = 1 << 25, + ImGuiColorEditFlags_PickerHueWheel = 1 << 26, + ImGuiColorEditFlags_InputRGB = 1 << 27, + ImGuiColorEditFlags_InputHSV = 1 << 28, + ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, + ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, + ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, +}ImGuiColorEditFlags_; +typedef enum { + ImGuiSliderFlags_None = 0, + ImGuiSliderFlags_AlwaysClamp = 1 << 4, + ImGuiSliderFlags_Logarithmic = 1 << 5, + ImGuiSliderFlags_NoRoundToFormat = 1 << 6, + ImGuiSliderFlags_NoInput = 1 << 7, + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, +}ImGuiSliderFlags_; +typedef enum { + ImGuiMouseButton_Left = 0, + ImGuiMouseButton_Right = 1, + ImGuiMouseButton_Middle = 2, + ImGuiMouseButton_COUNT = 5 +}ImGuiMouseButton_; +typedef enum { + ImGuiMouseCursor_None = -1, + ImGuiMouseCursor_Arrow = 0, + ImGuiMouseCursor_TextInput, + ImGuiMouseCursor_ResizeAll, + ImGuiMouseCursor_ResizeNS, + ImGuiMouseCursor_ResizeEW, + ImGuiMouseCursor_ResizeNESW, + ImGuiMouseCursor_ResizeNWSE, + ImGuiMouseCursor_Hand, + ImGuiMouseCursor_NotAllowed, + ImGuiMouseCursor_COUNT +}ImGuiMouseCursor_; +typedef enum { + ImGuiCond_None = 0, + ImGuiCond_Always = 1 << 0, + ImGuiCond_Once = 1 << 1, + ImGuiCond_FirstUseEver = 1 << 2, + ImGuiCond_Appearing = 1 << 3, +}ImGuiCond_; +struct ImGuiStyle +{ + float Alpha; + float DisabledAlpha; + ImVec2 WindowPadding; + float WindowRounding; + float WindowBorderSize; + 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 GrabMinSize; + float GrabRounding; + float LogSliderDeadzone; + float TabRounding; + float TabBorderSize; + float TabMinWidthForCloseButton; + ImGuiDir ColorButtonPosition; + ImVec2 ButtonTextAlign; + ImVec2 SelectableTextAlign; + ImVec2 DisplayWindowPadding; + ImVec2 DisplaySafeAreaPadding; + float MouseCursorScale; + bool AntiAliasedLines; + bool AntiAliasedLinesUseTex; + bool AntiAliasedFill; + float CurveTessellationTol; + float CircleTessellationMaxError; + ImVec4 Colors[ImGuiCol_COUNT]; +}; +struct ImGuiKeyData +{ + bool Down; + float DownDuration; + float DownDurationPrev; + float AnalogValue; +}; +typedef struct ImVector_ImWchar {int Size;int Capacity;ImWchar* Data;} ImVector_ImWchar; + +struct ImGuiIO +{ + ImGuiConfigFlags ConfigFlags; + ImGuiBackendFlags BackendFlags; + ImVec2 DisplaySize; + float DeltaTime; + float IniSavingRate; + const char* IniFilename; + const char* LogFilename; + float MouseDoubleClickTime; + float MouseDoubleClickMaxDist; + float MouseDragThreshold; + float KeyRepeatDelay; + float KeyRepeatRate; + float HoverDelayNormal; + float HoverDelayShort; + void* UserData; + ImFontAtlas*Fonts; + float FontGlobalScale; + bool FontAllowUserScaling; + ImFont* FontDefault; + ImVec2 DisplayFramebufferScale; + bool ConfigDockingNoSplit; + bool ConfigDockingWithShift; + bool ConfigDockingAlwaysTabBar; + bool ConfigDockingTransparentPayload; + bool ConfigViewportsNoAutoMerge; + bool ConfigViewportsNoTaskBarIcon; + bool ConfigViewportsNoDecoration; + bool ConfigViewportsNoDefaultParent; + bool MouseDrawCursor; + bool ConfigMacOSXBehaviors; + bool ConfigInputTrickleEventQueue; + bool ConfigInputTextCursorBlink; + bool ConfigInputTextEnterKeepActive; + bool ConfigDragClickToInputText; + bool ConfigWindowsResizeFromEdges; + bool ConfigWindowsMoveFromTitleBarOnly; + float ConfigMemoryCompactTimer; + const char* BackendPlatformName; + const char* BackendRendererName; + void* BackendPlatformUserData; + void* BackendRendererUserData; + void* BackendLanguageUserData; + const char* (*GetClipboardTextFn)(void* user_data); + void (*SetClipboardTextFn)(void* user_data, const char* text); + void* ClipboardUserData; + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + void* _UnusedPadding; + bool WantCaptureMouse; + bool WantCaptureKeyboard; + bool WantTextInput; + bool WantSetMousePos; + bool WantSaveIniSettings; + bool NavActive; + bool NavVisible; + float Framerate; + int MetricsRenderVertices; + int MetricsRenderIndices; + int MetricsRenderWindows; + int MetricsActiveWindows; + int MetricsActiveAllocations; + ImVec2 MouseDelta; + int KeyMap[ImGuiKey_COUNT]; + bool KeysDown[ImGuiKey_COUNT]; + float NavInputs[ImGuiNavInput_COUNT]; + ImVec2 MousePos; + bool MouseDown[5]; + float MouseWheel; + float MouseWheelH; + ImGuiID MouseHoveredViewport; + bool KeyCtrl; + bool KeyShift; + bool KeyAlt; + bool KeySuper; + ImGuiKeyChord KeyMods; + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; + 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]; + bool MouseDownOwned[5]; + bool MouseDownOwnedUnlessPopupClose[5]; + float MouseDownDuration[5]; + float MouseDownDurationPrev[5]; + ImVec2 MouseDragMaxDistanceAbs[5]; + float MouseDragMaxDistanceSqr[5]; + float PenPressure; + bool AppFocusLost; + bool AppAcceptingEvents; + ImS8 BackendUsingLegacyKeyArrays; + bool BackendUsingLegacyNavInputArray; + ImWchar16 InputQueueSurrogate; + ImVector_ImWchar InputQueueCharacters; +}; +struct ImGuiInputTextCallbackData +{ + ImGuiInputTextFlags EventFlag; + ImGuiInputTextFlags Flags; + void* UserData; + ImWchar EventChar; + ImGuiKey EventKey; + char* Buf; + int BufTextLen; + int BufSize; + bool BufDirty; + int CursorPos; + int SelectionStart; + int SelectionEnd; +}; +struct ImGuiSizeCallbackData +{ + void* UserData; + ImVec2 Pos; + ImVec2 CurrentSize; + ImVec2 DesiredSize; +}; +struct ImGuiWindowClass +{ + ImGuiID ClassId; + ImGuiID ParentViewportId; + ImGuiViewportFlags ViewportFlagsOverrideSet; + ImGuiViewportFlags ViewportFlagsOverrideClear; + ImGuiTabItemFlags TabItemFlagsOverrideSet; + ImGuiDockNodeFlags DockNodeFlagsOverrideSet; + bool DockingAlwaysTabBar; + bool DockingAllowUnclassed; +}; +struct ImGuiPayload +{ + void* Data; + int DataSize; + ImGuiID SourceId; + ImGuiID SourceParentId; + int DataFrameCount; + char DataType[32 + 1]; + bool Preview; + bool Delivery; +}; +struct ImGuiTableColumnSortSpecs +{ + ImGuiID ColumnUserID; + ImS16 ColumnIndex; + ImS16 SortOrder; + ImGuiSortDirection SortDirection : 8; +}; +struct ImGuiTableSortSpecs +{ + const ImGuiTableColumnSortSpecs* Specs; + int SpecsCount; + bool SpecsDirty; +}; +struct ImGuiOnceUponAFrame +{ + int RefFrame; +}; +struct ImGuiTextRange +{ + const char* b; + const char* e; +}; +typedef struct ImGuiTextRange ImGuiTextRange; + +typedef struct ImVector_ImGuiTextRange {int Size;int Capacity;ImGuiTextRange* Data;} ImVector_ImGuiTextRange; + +struct ImGuiTextFilter +{ + char InputBuf[256]; + ImVector_ImGuiTextRange Filters; + int CountGrep; +}; +typedef struct ImGuiTextRange ImGuiTextRange; +typedef struct ImVector_char {int Size;int Capacity;char* Data;} ImVector_char; + +struct ImGuiTextBuffer +{ + ImVector_char Buf; +}; +struct ImGuiStoragePair +{ + ImGuiID key; + union { int val_i; float val_f; void* val_p; }; +}; +typedef struct ImGuiStoragePair ImGuiStoragePair; + +typedef struct ImVector_ImGuiStoragePair {int Size;int Capacity;ImGuiStoragePair* Data;} ImVector_ImGuiStoragePair; + +struct ImGuiStorage +{ + ImVector_ImGuiStoragePair Data; +}; +typedef struct ImGuiStoragePair ImGuiStoragePair; +struct ImGuiListClipper +{ + int DisplayStart; + int DisplayEnd; + int ItemsCount; + float ItemsHeight; + float StartPosY; + void* TempData; +}; +struct ImColor +{ + ImVec4 Value; +}; +typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); +struct ImDrawCmd +{ + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; + unsigned int IdxOffset; + unsigned int ElemCount; + ImDrawCallback UserCallback; + void* UserCallbackData; +}; +struct ImDrawVert +{ + ImVec2 pos; + ImVec2 uv; + ImU32 col; +}; +typedef struct ImDrawCmdHeader ImDrawCmdHeader; +struct ImDrawCmdHeader +{ + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; +}; +typedef struct ImVector_ImDrawCmd {int Size;int Capacity;ImDrawCmd* Data;} ImVector_ImDrawCmd; + +typedef struct ImVector_ImDrawIdx {int Size;int Capacity;ImDrawIdx* Data;} ImVector_ImDrawIdx; + +struct ImDrawChannel +{ + ImVector_ImDrawCmd _CmdBuffer; + ImVector_ImDrawIdx _IdxBuffer; +}; +typedef struct ImVector_ImDrawChannel {int Size;int Capacity;ImDrawChannel* Data;} ImVector_ImDrawChannel; + +struct ImDrawListSplitter +{ + int _Current; + int _Count; + ImVector_ImDrawChannel _Channels; +}; +typedef enum { + ImDrawFlags_None = 0, + ImDrawFlags_Closed = 1 << 0, + ImDrawFlags_RoundCornersTopLeft = 1 << 4, + ImDrawFlags_RoundCornersTopRight = 1 << 5, + ImDrawFlags_RoundCornersBottomLeft = 1 << 6, + ImDrawFlags_RoundCornersBottomRight = 1 << 7, + ImDrawFlags_RoundCornersNone = 1 << 8, + ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft, + ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, +}ImDrawFlags_; +typedef enum { + ImDrawListFlags_None = 0, + ImDrawListFlags_AntiAliasedLines = 1 << 0, + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, + ImDrawListFlags_AntiAliasedFill = 1 << 2, + ImDrawListFlags_AllowVtxOffset = 1 << 3, +}ImDrawListFlags_; +typedef struct ImVector_ImDrawVert {int Size;int Capacity;ImDrawVert* Data;} ImVector_ImDrawVert; + +typedef struct ImVector_ImVec4 {int Size;int Capacity;ImVec4* Data;} ImVector_ImVec4; + +typedef struct ImVector_ImTextureID {int Size;int Capacity;ImTextureID* Data;} ImVector_ImTextureID; + +typedef struct ImVector_ImVec2 {int Size;int Capacity;ImVec2* Data;} ImVector_ImVec2; + +struct ImDrawList +{ + ImVector_ImDrawCmd CmdBuffer; + ImVector_ImDrawIdx IdxBuffer; + ImVector_ImDrawVert VtxBuffer; + ImDrawListFlags Flags; + unsigned int _VtxCurrentIdx; + ImDrawListSharedData* _Data; + const char* _OwnerName; + ImDrawVert* _VtxWritePtr; + ImDrawIdx* _IdxWritePtr; + ImVector_ImVec4 _ClipRectStack; + ImVector_ImTextureID _TextureIdStack; + ImVector_ImVec2 _Path; + ImDrawCmdHeader _CmdHeader; + ImDrawListSplitter _Splitter; + float _FringeScale; +}; +struct ImDrawData +{ + bool Valid; + int CmdListsCount; + int TotalIdxCount; + int TotalVtxCount; + ImDrawList** CmdLists; + ImVec2 DisplayPos; + ImVec2 DisplaySize; + ImVec2 FramebufferScale; + ImGuiViewport* OwnerViewport; +}; +struct ImFontConfig +{ + void* FontData; + int FontDataSize; + bool FontDataOwnedByAtlas; + int FontNo; + float SizePixels; + int OversampleH; + int OversampleV; + bool PixelSnapH; + ImVec2 GlyphExtraSpacing; + ImVec2 GlyphOffset; + const ImWchar* GlyphRanges; + float GlyphMinAdvanceX; + float GlyphMaxAdvanceX; + bool MergeMode; + unsigned int FontBuilderFlags; + float RasterizerMultiply; + ImWchar EllipsisChar; + char Name[40]; + ImFont* DstFont; +}; +struct ImFontGlyph +{ + unsigned int Colored : 1; + unsigned int Visible : 1; + unsigned int Codepoint : 30; + float AdvanceX; + float X0, Y0, X1, Y1; + float U0, V0, U1, V1; +}; +typedef struct ImVector_ImU32 {int Size;int Capacity;ImU32* Data;} ImVector_ImU32; + +struct ImFontGlyphRangesBuilder +{ + ImVector_ImU32 UsedChars; +}; +typedef struct ImFontAtlasCustomRect ImFontAtlasCustomRect; +struct ImFontAtlasCustomRect +{ + unsigned short Width, Height; + unsigned short X, Y; + unsigned int GlyphID; + float GlyphAdvanceX; + ImVec2 GlyphOffset; + ImFont* Font; +}; +typedef enum { + ImFontAtlasFlags_None = 0, + ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, + ImFontAtlasFlags_NoMouseCursors = 1 << 1, + ImFontAtlasFlags_NoBakedLines = 1 << 2, +}ImFontAtlasFlags_; +typedef struct ImVector_ImFontPtr {int Size;int Capacity;ImFont** Data;} ImVector_ImFontPtr; + +typedef struct ImVector_ImFontAtlasCustomRect {int Size;int Capacity;ImFontAtlasCustomRect* Data;} ImVector_ImFontAtlasCustomRect; + +typedef struct ImVector_ImFontConfig {int Size;int Capacity;ImFontConfig* Data;} ImVector_ImFontConfig; + +struct ImFontAtlas +{ + ImFontAtlasFlags Flags; + ImTextureID TexID; + int TexDesiredWidth; + int TexGlyphPadding; + bool Locked; + bool TexReady; + bool TexPixelsUseColors; + unsigned char* TexPixelsAlpha8; + unsigned int* TexPixelsRGBA32; + int TexWidth; + int TexHeight; + ImVec2 TexUvScale; + ImVec2 TexUvWhitePixel; + ImVector_ImFontPtr Fonts; + ImVector_ImFontAtlasCustomRect CustomRects; + ImVector_ImFontConfig ConfigData; + ImVec4 TexUvLines[(63) + 1]; + const ImFontBuilderIO* FontBuilderIO; + unsigned int FontBuilderFlags; + int PackIdMouseCursors; + int PackIdLines; +}; +typedef struct ImVector_float {int Size;int Capacity;float* Data;} ImVector_float; + +typedef struct ImVector_ImFontGlyph {int Size;int Capacity;ImFontGlyph* Data;} ImVector_ImFontGlyph; + +struct ImFont +{ + ImVector_float IndexAdvanceX; + float FallbackAdvanceX; + float FontSize; + ImVector_ImWchar IndexLookup; + ImVector_ImFontGlyph Glyphs; + const ImFontGlyph* FallbackGlyph; + ImFontAtlas* ContainerAtlas; + const ImFontConfig* ConfigData; + short ConfigDataCount; + ImWchar FallbackChar; + ImWchar EllipsisChar; + ImWchar DotChar; + bool DirtyLookupTables; + float Scale; + float Ascent, Descent; + int MetricsTotalSurface; + ImU8 Used4kPagesMap[(0x10FFFF +1)/4096/8]; +}; +typedef enum { + ImGuiViewportFlags_None = 0, + ImGuiViewportFlags_IsPlatformWindow = 1 << 0, + ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, + ImGuiViewportFlags_OwnedByApp = 1 << 2, + ImGuiViewportFlags_NoDecoration = 1 << 3, + ImGuiViewportFlags_NoTaskBarIcon = 1 << 4, + ImGuiViewportFlags_NoFocusOnAppearing = 1 << 5, + ImGuiViewportFlags_NoFocusOnClick = 1 << 6, + ImGuiViewportFlags_NoInputs = 1 << 7, + ImGuiViewportFlags_NoRendererClear = 1 << 8, + ImGuiViewportFlags_TopMost = 1 << 9, + ImGuiViewportFlags_Minimized = 1 << 10, + ImGuiViewportFlags_NoAutoMerge = 1 << 11, + ImGuiViewportFlags_CanHostOtherWindows = 1 << 12, +}ImGuiViewportFlags_; +struct ImGuiViewport +{ + ImGuiID ID; + ImGuiViewportFlags Flags; + ImVec2 Pos; + ImVec2 Size; + ImVec2 WorkPos; + ImVec2 WorkSize; + float DpiScale; + ImGuiID ParentViewportId; + ImDrawData* DrawData; + void* RendererUserData; + void* PlatformUserData; + void* PlatformHandle; + void* PlatformHandleRaw; + bool PlatformWindowCreated; + bool PlatformRequestMove; + bool PlatformRequestResize; + bool PlatformRequestClose; +}; +typedef struct ImVector_ImGuiPlatformMonitor {int Size;int Capacity;ImGuiPlatformMonitor* Data;} ImVector_ImGuiPlatformMonitor; + +typedef struct ImVector_ImGuiViewportPtr {int Size;int Capacity;ImGuiViewport** Data;} ImVector_ImGuiViewportPtr; + +struct ImGuiPlatformIO +{ + void (*Platform_CreateWindow)(ImGuiViewport* vp); + void (*Platform_DestroyWindow)(ImGuiViewport* vp); + void (*Platform_ShowWindow)(ImGuiViewport* vp); + void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos); + ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp); + void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); + ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp); + void (*Platform_SetWindowFocus)(ImGuiViewport* vp); + bool (*Platform_GetWindowFocus)(ImGuiViewport* vp); + bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp); + void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str); + void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha); + void (*Platform_UpdateWindow)(ImGuiViewport* vp); + void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg); + void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); + float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); + void (*Platform_OnChangedViewport)(ImGuiViewport* vp); + int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); + void (*Renderer_CreateWindow)(ImGuiViewport* vp); + void (*Renderer_DestroyWindow)(ImGuiViewport* vp); + void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); + void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg); + void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg); + ImVector_ImGuiPlatformMonitor Monitors; + ImVector_ImGuiViewportPtr Viewports; +}; +struct ImGuiPlatformMonitor +{ + ImVec2 MainPos, MainSize; + ImVec2 WorkPos, WorkSize; + float DpiScale; +}; +struct ImGuiPlatformImeData +{ + bool WantVisible; + ImVec2 InputPos; + float InputLineHeight; +}; +struct ImFontAtlas; +struct ImFontBuilderIO; +typedef enum { + ImGuiFreeTypeBuilderFlags_NoHinting = 1 << 0, + ImGuiFreeTypeBuilderFlags_NoAutoHint = 1 << 1, + ImGuiFreeTypeBuilderFlags_ForceAutoHint = 1 << 2, + ImGuiFreeTypeBuilderFlags_LightHinting = 1 << 3, + ImGuiFreeTypeBuilderFlags_MonoHinting = 1 << 4, + ImGuiFreeTypeBuilderFlags_Bold = 1 << 5, + ImGuiFreeTypeBuilderFlags_Oblique = 1 << 6, + ImGuiFreeTypeBuilderFlags_Monochrome = 1 << 7, + ImGuiFreeTypeBuilderFlags_LoadColor = 1 << 8, + ImGuiFreeTypeBuilderFlags_Bitmap = 1 << 9 +}ImGuiFreeTypeBuilderFlags; +#define IMGUI_HAS_DOCK 1 + +#else +struct GLFWwindow; +struct SDL_Window; +typedef union SDL_Event SDL_Event; +#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS + +#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS +typedef struct ImGuiStorage::ImGuiStoragePair ImGuiStoragePair; +typedef struct ImGuiTextFilter::ImGuiTextRange ImGuiTextRange; +typedef ImVector ImVector_ImDrawChannel; +typedef ImVector ImVector_ImDrawCmd; +typedef ImVector ImVector_ImDrawIdx; +typedef ImVector ImVector_ImDrawVert; +typedef ImVector ImVector_ImFontPtr; +typedef ImVector ImVector_ImFontAtlasCustomRect; +typedef ImVector ImVector_ImFontConfig; +typedef ImVector ImVector_ImFontGlyph; +typedef ImVector ImVector_ImGuiPlatformMonitor; +typedef ImVector ImVector_ImGuiStoragePair; +typedef ImVector ImVector_ImGuiTextRange; +typedef ImVector ImVector_ImGuiViewportPtr; +typedef ImVector ImVector_ImTextureID; +typedef ImVector ImVector_ImU32; +typedef ImVector ImVector_ImVec2; +typedef ImVector ImVector_ImVec4; +typedef ImVector ImVector_ImWchar; +typedef ImVector ImVector_char; +typedef ImVector ImVector_float; +#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS +CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void); +CIMGUI_API void ImVec2_destroy(ImVec2* self); +CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x,float _y); +CIMGUI_API ImVec4* ImVec4_ImVec4_Nil(void); +CIMGUI_API void ImVec4_destroy(ImVec4* self); +CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x,float _y,float _z,float _w); +CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas); +CIMGUI_API void igDestroyContext(ImGuiContext* ctx); +CIMGUI_API ImGuiContext* igGetCurrentContext(void); +CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx); +CIMGUI_API ImGuiIO* igGetIO(void); +CIMGUI_API ImGuiStyle* igGetStyle(void); +CIMGUI_API void igNewFrame(void); +CIMGUI_API void igEndFrame(void); +CIMGUI_API void igRender(void); +CIMGUI_API ImDrawData* igGetDrawData(void); +CIMGUI_API void igShowDemoWindow(bool* p_open); +CIMGUI_API void igShowMetricsWindow(bool* p_open); +CIMGUI_API void igShowDebugLogWindow(bool* p_open); +CIMGUI_API void igShowStackToolWindow(bool* p_open); +CIMGUI_API void igShowAboutWindow(bool* p_open); +CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref); +CIMGUI_API bool igShowStyleSelector(const char* label); +CIMGUI_API void igShowFontSelector(const char* label); +CIMGUI_API void igShowUserGuide(void); +CIMGUI_API const char* igGetVersion(void); +CIMGUI_API void igStyleColorsDark(ImGuiStyle* dst); +CIMGUI_API void igStyleColorsLight(ImGuiStyle* dst); +CIMGUI_API void igStyleColorsClassic(ImGuiStyle* dst); +CIMGUI_API bool igBegin(const char* name,bool* p_open,ImGuiWindowFlags flags); +CIMGUI_API void igEnd(void); +CIMGUI_API bool igBeginChild_Str(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags); +CIMGUI_API bool igBeginChild_ID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags); +CIMGUI_API void igEndChild(void); +CIMGUI_API bool igIsWindowAppearing(void); +CIMGUI_API bool igIsWindowCollapsed(void); +CIMGUI_API bool igIsWindowFocused(ImGuiFocusedFlags flags); +CIMGUI_API bool igIsWindowHovered(ImGuiHoveredFlags flags); +CIMGUI_API ImDrawList* igGetWindowDrawList(void); +CIMGUI_API float igGetWindowDpiScale(void); +CIMGUI_API void igGetWindowPos(ImVec2 *pOut); +CIMGUI_API void igGetWindowSize(ImVec2 *pOut); +CIMGUI_API float igGetWindowWidth(void); +CIMGUI_API float igGetWindowHeight(void); +CIMGUI_API ImGuiViewport* igGetWindowViewport(void); +CIMGUI_API void igSetNextWindowPos(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot); +CIMGUI_API void igSetNextWindowSize(const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data); +CIMGUI_API void igSetNextWindowContentSize(const ImVec2 size); +CIMGUI_API void igSetNextWindowCollapsed(bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetNextWindowFocus(void); +CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll); +CIMGUI_API void igSetNextWindowBgAlpha(float alpha); +CIMGUI_API void igSetNextWindowViewport(ImGuiID viewport_id); +CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowFocus_Nil(void); +CIMGUI_API void igSetWindowFontScale(float scale); +CIMGUI_API void igSetWindowPos_Str(const char* name,const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Str(const char* name,const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Str(const char* name,bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowFocus_Str(const char* name); +CIMGUI_API void igGetContentRegionAvail(ImVec2 *pOut); +CIMGUI_API void igGetContentRegionMax(ImVec2 *pOut); +CIMGUI_API void igGetWindowContentRegionMin(ImVec2 *pOut); +CIMGUI_API void igGetWindowContentRegionMax(ImVec2 *pOut); +CIMGUI_API float igGetScrollX(void); +CIMGUI_API float igGetScrollY(void); +CIMGUI_API void igSetScrollX(float scroll_x); +CIMGUI_API void igSetScrollY(float scroll_y); +CIMGUI_API float igGetScrollMaxX(void); +CIMGUI_API float igGetScrollMaxY(void); +CIMGUI_API void igSetScrollHereX(float center_x_ratio); +CIMGUI_API void igSetScrollHereY(float center_y_ratio); +CIMGUI_API void igSetScrollFromPosX(float local_x,float center_x_ratio); +CIMGUI_API void igSetScrollFromPosY(float local_y,float center_y_ratio); +CIMGUI_API void igPushFont(ImFont* font); +CIMGUI_API void igPopFont(void); +CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col); +CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx,const ImVec4 col); +CIMGUI_API void igPopStyleColor(int count); +CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx,float val); +CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx,const ImVec2 val); +CIMGUI_API void igPopStyleVar(int count); +CIMGUI_API void igPushAllowKeyboardFocus(bool allow_keyboard_focus); +CIMGUI_API void igPopAllowKeyboardFocus(void); +CIMGUI_API void igPushButtonRepeat(bool repeat); +CIMGUI_API void igPopButtonRepeat(void); +CIMGUI_API void igPushItemWidth(float item_width); +CIMGUI_API void igPopItemWidth(void); +CIMGUI_API void igSetNextItemWidth(float item_width); +CIMGUI_API float igCalcItemWidth(void); +CIMGUI_API void igPushTextWrapPos(float wrap_local_pos_x); +CIMGUI_API void igPopTextWrapPos(void); +CIMGUI_API ImFont* igGetFont(void); +CIMGUI_API float igGetFontSize(void); +CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut); +CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul); +CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col); +CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col); +CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx); +CIMGUI_API void igSeparator(void); +CIMGUI_API void igSameLine(float offset_from_start_x,float spacing); +CIMGUI_API void igNewLine(void); +CIMGUI_API void igSpacing(void); +CIMGUI_API void igDummy(const ImVec2 size); +CIMGUI_API void igIndent(float indent_w); +CIMGUI_API void igUnindent(float indent_w); +CIMGUI_API void igBeginGroup(void); +CIMGUI_API void igEndGroup(void); +CIMGUI_API void igGetCursorPos(ImVec2 *pOut); +CIMGUI_API float igGetCursorPosX(void); +CIMGUI_API float igGetCursorPosY(void); +CIMGUI_API void igSetCursorPos(const ImVec2 local_pos); +CIMGUI_API void igSetCursorPosX(float local_x); +CIMGUI_API void igSetCursorPosY(float local_y); +CIMGUI_API void igGetCursorStartPos(ImVec2 *pOut); +CIMGUI_API void igGetCursorScreenPos(ImVec2 *pOut); +CIMGUI_API void igSetCursorScreenPos(const ImVec2 pos); +CIMGUI_API void igAlignTextToFramePadding(void); +CIMGUI_API float igGetTextLineHeight(void); +CIMGUI_API float igGetTextLineHeightWithSpacing(void); +CIMGUI_API float igGetFrameHeight(void); +CIMGUI_API float igGetFrameHeightWithSpacing(void); +CIMGUI_API void igPushID_Str(const char* str_id); +CIMGUI_API void igPushID_StrStr(const char* str_id_begin,const char* str_id_end); +CIMGUI_API void igPushID_Ptr(const void* ptr_id); +CIMGUI_API void igPushID_Int(int int_id); +CIMGUI_API void igPopID(void); +CIMGUI_API ImGuiID igGetID_Str(const char* str_id); +CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin,const char* str_id_end); +CIMGUI_API ImGuiID igGetID_Ptr(const void* ptr_id); +CIMGUI_API void igTextUnformatted(const char* text,const char* text_end); +CIMGUI_API void igText(const char* fmt,...); +CIMGUI_API void igTextV(const char* fmt,va_list args); +CIMGUI_API void igTextColored(const ImVec4 col,const char* fmt,...); +CIMGUI_API void igTextColoredV(const ImVec4 col,const char* fmt,va_list args); +CIMGUI_API void igTextDisabled(const char* fmt,...); +CIMGUI_API void igTextDisabledV(const char* fmt,va_list args); +CIMGUI_API void igTextWrapped(const char* fmt,...); +CIMGUI_API void igTextWrappedV(const char* fmt,va_list args); +CIMGUI_API void igLabelText(const char* label,const char* fmt,...); +CIMGUI_API void igLabelTextV(const char* label,const char* fmt,va_list args); +CIMGUI_API void igBulletText(const char* fmt,...); +CIMGUI_API void igBulletTextV(const char* fmt,va_list args); +CIMGUI_API bool igButton(const char* label,const ImVec2 size); +CIMGUI_API bool igSmallButton(const char* label); +CIMGUI_API bool igInvisibleButton(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags); +CIMGUI_API bool igArrowButton(const char* str_id,ImGuiDir dir); +CIMGUI_API bool igCheckbox(const char* label,bool* v); +CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label,int* flags,int flags_value); +CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label,unsigned int* flags,unsigned int flags_value); +CIMGUI_API bool igRadioButton_Bool(const char* label,bool active); +CIMGUI_API bool igRadioButton_IntPtr(const char* label,int* v,int v_button); +CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay); +CIMGUI_API void igBullet(void); +CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col); +CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col); +CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags); +CIMGUI_API void igEndCombo(void); +CIMGUI_API bool igCombo_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items); +CIMGUI_API bool igCombo_Str(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items); +CIMGUI_API bool igCombo_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items); +CIMGUI_API bool igDragFloat(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloat2(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloat3(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloat4(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloatRange2(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 igDragInt(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt2(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt3(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt4(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragIntRange2(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 igDragScalar(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 igDragScalarN(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 igSliderFloat(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat2(const char* label,float v[2],float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat3(const char* label,float v[3],float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat4(const char* label,float v[4],float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderAngle(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt(const char* label,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt2(const char* label,int v[2],int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt3(const char* label,int v[3],int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt4(const char* label,int v[4],int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderScalar(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 igSliderScalarN(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 igVSliderFloat(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igVSliderInt(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igVSliderScalar(const char* label,const ImVec2 size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igInputTextWithHint(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags flags); +CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputScalar(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 igInputScalarN(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 igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags); +CIMGUI_API bool igColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags); +CIMGUI_API bool igColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags); +CIMGUI_API bool igColorPicker4(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col); +CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size); +CIMGUI_API void igSetColorEditOptions(ImGuiColorEditFlags flags); +CIMGUI_API bool igTreeNode_Str(const char* label); +CIMGUI_API bool igTreeNode_StrStr(const char* str_id,const char* fmt,...); +CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id,const char* fmt,...); +CIMGUI_API bool igTreeNodeV_Str(const char* str_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeEx_Str(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeExV_Str(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); +CIMGUI_API void igTreePush_Str(const char* str_id); +CIMGUI_API void igTreePush_Ptr(const void* ptr_id); +CIMGUI_API void igTreePop(void); +CIMGUI_API float igGetTreeNodeToLabelSpacing(void); +CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags); +CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond); +CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igBeginListBox(const char* label,const ImVec2 size); +CIMGUI_API void igEndListBox(void); +CIMGUI_API bool igListBox_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items); +CIMGUI_API bool igListBox_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items); +CIMGUI_API void igPlotLines_FloatPtr(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 igPlotLines_FnFloatPtr(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 igPlotHistogram_FloatPtr(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 igPlotHistogram_FnFloatPtr(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 igValue_Bool(const char* prefix,bool b); +CIMGUI_API void igValue_Int(const char* prefix,int v); +CIMGUI_API void igValue_Uint(const char* prefix,unsigned int v); +CIMGUI_API void igValue_Float(const char* prefix,float v,const char* float_format); +CIMGUI_API bool igBeginMenuBar(void); +CIMGUI_API void igEndMenuBar(void); +CIMGUI_API bool igBeginMainMenuBar(void); +CIMGUI_API void igEndMainMenuBar(void); +CIMGUI_API bool igBeginMenu(const char* label,bool enabled); +CIMGUI_API void igEndMenu(void); +CIMGUI_API bool igMenuItem_Bool(const char* label,const char* shortcut,bool selected,bool enabled); +CIMGUI_API bool igMenuItem_BoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled); +CIMGUI_API void igBeginTooltip(void); +CIMGUI_API void igEndTooltip(void); +CIMGUI_API void igSetTooltip(const char* fmt,...); +CIMGUI_API void igSetTooltipV(const char* fmt,va_list args); +CIMGUI_API bool igBeginPopup(const char* str_id,ImGuiWindowFlags flags); +CIMGUI_API bool igBeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags); +CIMGUI_API void igEndPopup(void); +CIMGUI_API void igOpenPopup_Str(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopup_ID(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopupOnItemClick(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igCloseCurrentPopup(void); +CIMGUI_API bool igBeginPopupContextItem(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igBeginPopupContextWindow(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igIsPopupOpen(const char* str_id,ImGuiPopupFlags flags); +CIMGUI_API bool igBeginTable(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width); +CIMGUI_API void igEndTable(void); +CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags,float min_row_height); +CIMGUI_API bool igTableNextColumn(void); +CIMGUI_API bool igTableSetColumnIndex(int column_n); +CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id); +CIMGUI_API void igTableSetupScrollFreeze(int cols,int rows); +CIMGUI_API void igTableHeadersRow(void); +CIMGUI_API void igTableHeader(const char* label); +CIMGUI_API ImGuiTableSortSpecs* igTableGetSortSpecs(void); +CIMGUI_API int igTableGetColumnCount(void); +CIMGUI_API int igTableGetColumnIndex(void); +CIMGUI_API int igTableGetRowIndex(void); +CIMGUI_API const char* igTableGetColumnName(int column_n); +CIMGUI_API ImGuiTableColumnFlags igTableGetColumnFlags(int column_n); +CIMGUI_API void igTableSetColumnEnabled(int column_n,bool v); +CIMGUI_API void igTableSetBgColor(ImGuiTableBgTarget target,ImU32 color,int column_n); +CIMGUI_API void igColumns(int count,const char* id,bool border); +CIMGUI_API void igNextColumn(void); +CIMGUI_API int igGetColumnIndex(void); +CIMGUI_API float igGetColumnWidth(int column_index); +CIMGUI_API void igSetColumnWidth(int column_index,float width); +CIMGUI_API float igGetColumnOffset(int column_index); +CIMGUI_API void igSetColumnOffset(int column_index,float offset_x); +CIMGUI_API int igGetColumnsCount(void); +CIMGUI_API bool igBeginTabBar(const char* str_id,ImGuiTabBarFlags flags); +CIMGUI_API void igEndTabBar(void); +CIMGUI_API bool igBeginTabItem(const char* label,bool* p_open,ImGuiTabItemFlags flags); +CIMGUI_API void igEndTabItem(void); +CIMGUI_API bool igTabItemButton(const char* label,ImGuiTabItemFlags flags); +CIMGUI_API void igSetTabItemClosed(const char* tab_or_docked_window_label); +CIMGUI_API ImGuiID igDockSpace(ImGuiID id,const ImVec2 size,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class); +CIMGUI_API ImGuiID igDockSpaceOverViewport(const ImGuiViewport* viewport,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class); +CIMGUI_API void igSetNextWindowDockID(ImGuiID dock_id,ImGuiCond cond); +CIMGUI_API void igSetNextWindowClass(const ImGuiWindowClass* window_class); +CIMGUI_API ImGuiID igGetWindowDockID(void); +CIMGUI_API bool igIsWindowDocked(void); +CIMGUI_API void igLogToTTY(int auto_open_depth); +CIMGUI_API void igLogToFile(int auto_open_depth,const char* filename); +CIMGUI_API void igLogToClipboard(int auto_open_depth); +CIMGUI_API void igLogFinish(void); +CIMGUI_API void igLogButtons(void); +CIMGUI_API void igLogTextV(const char* fmt,va_list args); +CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags); +CIMGUI_API bool igSetDragDropPayload(const char* type,const void* data,size_t sz,ImGuiCond cond); +CIMGUI_API void igEndDragDropSource(void); +CIMGUI_API bool igBeginDragDropTarget(void); +CIMGUI_API const ImGuiPayload* igAcceptDragDropPayload(const char* type,ImGuiDragDropFlags flags); +CIMGUI_API void igEndDragDropTarget(void); +CIMGUI_API const ImGuiPayload* igGetDragDropPayload(void); +CIMGUI_API void igBeginDisabled(bool disabled); +CIMGUI_API void igEndDisabled(void); +CIMGUI_API void igPushClipRect(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect); +CIMGUI_API void igPopClipRect(void); +CIMGUI_API void igSetItemDefaultFocus(void); +CIMGUI_API void igSetKeyboardFocusHere(int offset); +CIMGUI_API bool igIsItemHovered(ImGuiHoveredFlags flags); +CIMGUI_API bool igIsItemActive(void); +CIMGUI_API bool igIsItemFocused(void); +CIMGUI_API bool igIsItemClicked(ImGuiMouseButton mouse_button); +CIMGUI_API bool igIsItemVisible(void); +CIMGUI_API bool igIsItemEdited(void); +CIMGUI_API bool igIsItemActivated(void); +CIMGUI_API bool igIsItemDeactivated(void); +CIMGUI_API bool igIsItemDeactivatedAfterEdit(void); +CIMGUI_API bool igIsItemToggledOpen(void); +CIMGUI_API bool igIsAnyItemHovered(void); +CIMGUI_API bool igIsAnyItemActive(void); +CIMGUI_API bool igIsAnyItemFocused(void); +CIMGUI_API void igGetItemRectMin(ImVec2 *pOut); +CIMGUI_API void igGetItemRectMax(ImVec2 *pOut); +CIMGUI_API void igGetItemRectSize(ImVec2 *pOut); +CIMGUI_API void igSetItemAllowOverlap(void); +CIMGUI_API ImGuiViewport* igGetMainViewport(void); +CIMGUI_API ImDrawList* igGetBackgroundDrawList_Nil(void); +CIMGUI_API ImDrawList* igGetForegroundDrawList_Nil(void); +CIMGUI_API ImDrawList* igGetBackgroundDrawList_ViewportPtr(ImGuiViewport* viewport); +CIMGUI_API ImDrawList* igGetForegroundDrawList_ViewportPtr(ImGuiViewport* viewport); +CIMGUI_API bool igIsRectVisible_Nil(const ImVec2 size); +CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min,const ImVec2 rect_max); +CIMGUI_API double igGetTime(void); +CIMGUI_API int igGetFrameCount(void); +CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData(void); +CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx); +CIMGUI_API void igSetStateStorage(ImGuiStorage* storage); +CIMGUI_API ImGuiStorage* igGetStateStorage(void); +CIMGUI_API bool igBeginChildFrame(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags); +CIMGUI_API void igEndChildFrame(void); +CIMGUI_API void igCalcTextSize(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width); +CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in); +CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in); +CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v); +CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,float* out_g,float* out_b); +CIMGUI_API bool igIsKeyDown(ImGuiKey key); +CIMGUI_API bool igIsKeyPressed(ImGuiKey key,bool repeat); +CIMGUI_API bool igIsKeyReleased(ImGuiKey key); +CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate); +CIMGUI_API const char* igGetKeyName(ImGuiKey key); +CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); +CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseClicked(ImGuiMouseButton button,bool repeat); +CIMGUI_API bool igIsMouseReleased(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseDoubleClicked(ImGuiMouseButton button); +CIMGUI_API int igGetMouseClickedCount(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip); +CIMGUI_API bool igIsMousePosValid(const ImVec2* mouse_pos); +CIMGUI_API bool igIsAnyMouseDown(void); +CIMGUI_API void igGetMousePos(ImVec2 *pOut); +CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(ImVec2 *pOut); +CIMGUI_API bool igIsMouseDragging(ImGuiMouseButton button,float lock_threshold); +CIMGUI_API void igGetMouseDragDelta(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold); +CIMGUI_API void igResetMouseDragDelta(ImGuiMouseButton button); +CIMGUI_API ImGuiMouseCursor igGetMouseCursor(void); +CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type); +CIMGUI_API void igSetNextFrameWantCaptureMouse(bool want_capture_mouse); +CIMGUI_API const char* igGetClipboardText(void); +CIMGUI_API void igSetClipboardText(const char* text); +CIMGUI_API void igLoadIniSettingsFromDisk(const char* ini_filename); +CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size); +CIMGUI_API void igSaveIniSettingsToDisk(const char* ini_filename); +CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size); +CIMGUI_API void igDebugTextEncoding(const char* text); +CIMGUI_API bool igDebugCheckVersionAndDataLayout(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 igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data); +CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data); +CIMGUI_API void* igMemAlloc(size_t size); +CIMGUI_API void igMemFree(void* ptr); +CIMGUI_API ImGuiPlatformIO* igGetPlatformIO(void); +CIMGUI_API void igUpdatePlatformWindows(void); +CIMGUI_API void igRenderPlatformWindowsDefault(void* platform_render_arg,void* renderer_render_arg); +CIMGUI_API void igDestroyPlatformWindows(void); +CIMGUI_API ImGuiViewport* igFindViewportByID(ImGuiID id); +CIMGUI_API ImGuiViewport* igFindViewportByPlatformHandle(void* platform_handle); +CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void); +CIMGUI_API void ImGuiStyle_destroy(ImGuiStyle* self); +CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor); +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 wh_x,float wh_y); +CIMGUI_API void ImGuiIO_AddMouseViewportEvent(ImGuiIO* self,ImGuiID id); +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,int native_legacy_index); +CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self,bool accepting_events); +CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self); +CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self); +CIMGUI_API ImGuiIO* ImGuiIO_ImGuiIO(void); +CIMGUI_API void ImGuiIO_destroy(ImGuiIO* self); +CIMGUI_API ImGuiInputTextCallbackData* ImGuiInputTextCallbackData_ImGuiInputTextCallbackData(void); +CIMGUI_API void ImGuiInputTextCallbackData_destroy(ImGuiInputTextCallbackData* self); +CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count); +CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end); +CIMGUI_API void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self); +CIMGUI_API void ImGuiInputTextCallbackData_ClearSelection(ImGuiInputTextCallbackData* self); +CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self); +CIMGUI_API ImGuiWindowClass* ImGuiWindowClass_ImGuiWindowClass(void); +CIMGUI_API void ImGuiWindowClass_destroy(ImGuiWindowClass* self); +CIMGUI_API ImGuiPayload* ImGuiPayload_ImGuiPayload(void); +CIMGUI_API void ImGuiPayload_destroy(ImGuiPayload* self); +CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self); +CIMGUI_API bool ImGuiPayload_IsDataType(ImGuiPayload* self,const char* type); +CIMGUI_API bool ImGuiPayload_IsPreview(ImGuiPayload* self); +CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self); +CIMGUI_API ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs(void); +CIMGUI_API void ImGuiTableColumnSortSpecs_destroy(ImGuiTableColumnSortSpecs* self); +CIMGUI_API ImGuiTableSortSpecs* ImGuiTableSortSpecs_ImGuiTableSortSpecs(void); +CIMGUI_API void ImGuiTableSortSpecs_destroy(ImGuiTableSortSpecs* self); +CIMGUI_API ImGuiOnceUponAFrame* ImGuiOnceUponAFrame_ImGuiOnceUponAFrame(void); +CIMGUI_API void ImGuiOnceUponAFrame_destroy(ImGuiOnceUponAFrame* self); +CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_ImGuiTextFilter(const char* default_filter); +CIMGUI_API void ImGuiTextFilter_destroy(ImGuiTextFilter* self); +CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width); +CIMGUI_API bool ImGuiTextFilter_PassFilter(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(ImGuiTextFilter* self); +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(void); +CIMGUI_API void ImGuiTextRange_destroy(ImGuiTextRange* self); +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b,const char* _e); +CIMGUI_API bool ImGuiTextRange_empty(ImGuiTextRange* self); +CIMGUI_API void ImGuiTextRange_split(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out); +CIMGUI_API ImGuiTextBuffer* ImGuiTextBuffer_ImGuiTextBuffer(void); +CIMGUI_API void ImGuiTextBuffer_destroy(ImGuiTextBuffer* self); +CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self); +CIMGUI_API const char* ImGuiTextBuffer_end(ImGuiTextBuffer* self); +CIMGUI_API int ImGuiTextBuffer_size(ImGuiTextBuffer* self); +CIMGUI_API bool ImGuiTextBuffer_empty(ImGuiTextBuffer* self); +CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self); +CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity); +CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self); +CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end); +CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,va_list args); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key,int _val_i); +CIMGUI_API void ImGuiStoragePair_destroy(ImGuiStoragePair* self); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key,float _val_f); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key,void* _val_p); +CIMGUI_API void ImGuiStorage_Clear(ImGuiStorage* self); +CIMGUI_API int ImGuiStorage_GetInt(ImGuiStorage* self,ImGuiID key,int default_val); +CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self,ImGuiID key,int val); +CIMGUI_API bool ImGuiStorage_GetBool(ImGuiStorage* self,ImGuiID key,bool default_val); +CIMGUI_API void ImGuiStorage_SetBool(ImGuiStorage* self,ImGuiID key,bool val); +CIMGUI_API float ImGuiStorage_GetFloat(ImGuiStorage* self,ImGuiID key,float default_val); +CIMGUI_API void ImGuiStorage_SetFloat(ImGuiStorage* self,ImGuiID key,float val); +CIMGUI_API void* ImGuiStorage_GetVoidPtr(ImGuiStorage* self,ImGuiID key); +CIMGUI_API void ImGuiStorage_SetVoidPtr(ImGuiStorage* self,ImGuiID key,void* val); +CIMGUI_API int* ImGuiStorage_GetIntRef(ImGuiStorage* self,ImGuiID key,int default_val); +CIMGUI_API bool* ImGuiStorage_GetBoolRef(ImGuiStorage* self,ImGuiID key,bool default_val); +CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self,ImGuiID key,float default_val); +CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self,ImGuiID key,void* default_val); +CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self,int val); +CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self); +CIMGUI_API ImGuiListClipper* ImGuiListClipper_ImGuiListClipper(void); +CIMGUI_API void ImGuiListClipper_destroy(ImGuiListClipper* self); +CIMGUI_API void ImGuiListClipper_Begin(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_ForceDisplayRangeByIndices(ImGuiListClipper* self,int item_min,int item_max); +CIMGUI_API ImColor* ImColor_ImColor_Nil(void); +CIMGUI_API void ImColor_destroy(ImColor* self); +CIMGUI_API ImColor* ImColor_ImColor_Float(float r,float g,float b,float a); +CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col); +CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a); +CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba); +CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a); +CIMGUI_API void ImColor_HSV(ImColor *pOut,float h,float s,float v,float a); +CIMGUI_API ImDrawCmd* ImDrawCmd_ImDrawCmd(void); +CIMGUI_API void ImDrawCmd_destroy(ImDrawCmd* self); +CIMGUI_API ImTextureID ImDrawCmd_GetTexID(ImDrawCmd* self); +CIMGUI_API ImDrawListSplitter* ImDrawListSplitter_ImDrawListSplitter(void); +CIMGUI_API void ImDrawListSplitter_destroy(ImDrawListSplitter* self); +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); +CIMGUI_API ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data); +CIMGUI_API void ImDrawList_destroy(ImDrawList* self); +CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,const ImVec2 clip_rect_min,const 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_PushTextureID(ImDrawList* self,ImTextureID texture_id); +CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self); +CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2 *pOut,ImDrawList* self); +CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2 *pOut,ImDrawList* self); +CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness); +CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness); +CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags); +CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2 p_min,const 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,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness); +CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col); +CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness); +CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col); +CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness); +CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); +CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness); +CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); +CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end); +CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const 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_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness); +CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col); +CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments); +CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments); +CIMGUI_API void ImDrawList_AddImage(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col); +CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col); +CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags); +CIMGUI_API void ImDrawList_PathClear(ImDrawList* self); +CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos); +CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos); +CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col); +CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness); +CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments); +CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12); +CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments); +CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments); +CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags); +CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self,ImDrawCallback callback,void* callback_data); +CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self); +CIMGUI_API ImDrawList* ImDrawList_CloneOutput(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,const ImVec2 a,const ImVec2 b,ImU32 col); +CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col); +CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col); +CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col); +CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx); +CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col); +CIMGUI_API void ImDrawList__ResetForNewFrame(ImDrawList* self); +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__OnChangedTextureID(ImDrawList* self); +CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self); +CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self,float radius); +CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step); +CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments); +CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void); +CIMGUI_API void ImDrawData_destroy(ImDrawData* self); +CIMGUI_API void ImDrawData_Clear(ImDrawData* self); +CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* self); +CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self,const ImVec2 fb_scale); +CIMGUI_API ImFontConfig* ImFontConfig_ImFontConfig(void); +CIMGUI_API void ImFontConfig_destroy(ImFontConfig* self); +CIMGUI_API ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder(void); +CIMGUI_API void ImFontGlyphRangesBuilder_destroy(ImFontGlyphRangesBuilder* self); +CIMGUI_API void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self); +CIMGUI_API bool ImFontGlyphRangesBuilder_GetBit(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,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); +CIMGUI_API ImFontAtlasCustomRect* ImFontAtlasCustomRect_ImFontAtlasCustomRect(void); +CIMGUI_API void ImFontAtlasCustomRect_destroy(ImFontAtlasCustomRect* self); +CIMGUI_API bool ImFontAtlasCustomRect_IsPacked(ImFontAtlasCustomRect* self); +CIMGUI_API ImFontAtlas* ImFontAtlas_ImFontAtlas(void); +CIMGUI_API void ImFontAtlas_destroy(ImFontAtlas* self); +CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self,const ImFontConfig* font_cfg); +CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self,const ImFontConfig* font_cfg); +CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(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_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_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,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges); +CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self); +CIMGUI_API bool ImFontAtlas_Build(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel); +CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel); +CIMGUI_API bool ImFontAtlas_IsBuilt(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self,ImTextureID id); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesThai(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesVietnamese(ImFontAtlas* self); +CIMGUI_API int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self,int width,int height); +CIMGUI_API int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset); +CIMGUI_API ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self,int index); +CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max); +CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2]); +CIMGUI_API ImFont* ImFont_ImFont(void); +CIMGUI_API void ImFont_destroy(ImFont* self); +CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c); +CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c); +CIMGUI_API float ImFont_GetCharAdvance(ImFont* self,ImWchar c); +CIMGUI_API bool ImFont_IsLoaded(ImFont* self); +CIMGUI_API const char* ImFont_GetDebugName(ImFont* self); +CIMGUI_API void ImFont_CalcTextSizeA(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining); +CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width); +CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c); +CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip); +CIMGUI_API void ImFont_BuildLookupTable(ImFont* self); +CIMGUI_API void ImFont_ClearOutputData(ImFont* self); +CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size); +CIMGUI_API void ImFont_AddGlyph(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x); +CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst); +CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self,ImWchar c,bool visible); +CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last); +CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void); +CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self); +CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self); +CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self); +CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_ImGuiPlatformIO(void); +CIMGUI_API void ImGuiPlatformIO_destroy(ImGuiPlatformIO* self); +CIMGUI_API ImGuiPlatformMonitor* ImGuiPlatformMonitor_ImGuiPlatformMonitor(void); +CIMGUI_API void ImGuiPlatformMonitor_destroy(ImGuiPlatformMonitor* self); +CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void); +CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self); +CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key); +CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType(void); +CIMGUI_API void ImGuiFreeType_SetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data); + + +/////////////////////////hand written functions +//no LogTextV +CIMGUI_API void igLogText(CONST char *fmt, ...); +//no appendfV +CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...); +//for getting FLT_MAX in bindings +CIMGUI_API float igGET_FLT_MAX(void); +//for getting FLT_MIN in bindings +CIMGUI_API float igGET_FLT_MIN(void); + + +CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create(void); +CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self); +CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p); +CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p); + + +#endif //CIMGUI_INCLUDED + + + + diff --git a/imgui-sys/third-party/imgui-docking-freetype/cimgui_impl.h b/imgui-sys/third-party/imgui-docking-freetype/cimgui_impl.h new file mode 100644 index 000000000..597cca0c7 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/cimgui_impl.h @@ -0,0 +1,60 @@ +#ifdef CIMGUI_USE_GLFW + +typedef struct GLFWwindow GLFWwindow; +typedef struct GLFWmonitor GLFWmonitor; +struct GLFWwindow; +struct GLFWmonitor;CIMGUI_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window,bool install_callbacks); +CIMGUI_API void ImGui_ImplGlfw_Shutdown(void); +CIMGUI_API void ImGui_ImplGlfw_NewFrame(void); +CIMGUI_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window,int focused); +CIMGUI_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window,int entered); +CIMGUI_API void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window,double x,double y); +CIMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window,int button,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window,double xoffset,double yoffset); +CIMGUI_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window,int key,int scancode,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window,unsigned int c); +CIMGUI_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor,int event); + +#endif +#ifdef CIMGUI_USE_OPENGL3 +CIMGUI_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version); +CIMGUI_API void ImGui_ImplOpenGL3_Shutdown(void); +CIMGUI_API void ImGui_ImplOpenGL3_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API bool ImGui_ImplOpenGL3_CreateFontsTexture(void); +CIMGUI_API void ImGui_ImplOpenGL3_DestroyFontsTexture(void); +CIMGUI_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(void); +CIMGUI_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(void); + +#endif +#ifdef CIMGUI_USE_OPENGL2 +CIMGUI_API bool ImGui_ImplOpenGL2_Init(void); +CIMGUI_API void ImGui_ImplOpenGL2_Shutdown(void); +CIMGUI_API void ImGui_ImplOpenGL2_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API bool ImGui_ImplOpenGL2_CreateFontsTexture(void); +CIMGUI_API void ImGui_ImplOpenGL2_DestroyFontsTexture(void); +CIMGUI_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(void); +CIMGUI_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(void); + +#endif +#ifdef CIMGUI_USE_SDL + +typedef struct SDL_Window SDL_Window; +typedef struct SDL_Renderer SDL_Renderer; +struct SDL_Window; +struct SDL_Renderer; +typedef union SDL_Event SDL_Event;CIMGUI_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window,void* sdl_gl_context); +CIMGUI_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer); +CIMGUI_API void ImGui_ImplSDL2_Shutdown(void); +CIMGUI_API void ImGui_ImplSDL2_NewFrame(void); +CIMGUI_API bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event); + +#endif diff --git a/imgui-sys/third-party/imgui-docking-freetype/definitions.json b/imgui-sys/third-party/imgui-docking-freetype/definitions.json new file mode 100644 index 000000000..34acf241a --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/definitions.json @@ -0,0 +1,18331 @@ +{ + "ImColor_HSV": [ + { + "args": "(ImColor *pOut,float h,float s,float v,float a)", + "argsT": [ + { + "name": "pOut", + "type": "ImColor*" + }, + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "a", + "type": "float" + } + ], + "argsoriginal": "(float h,float s,float v,float a=1.0f)", + "call_args": "(h,s,v,a)", + "cimguiname": "ImColor_HSV", + "defaults": { + "a": "1.0f" + }, + "funcname": "HSV", + "is_static_function": true, + "location": "imgui:2472", + "nonUDT": 1, + "ov_cimguiname": "ImColor_HSV", + "ret": "void", + "signature": "(float,float,float,float)", + "stname": "ImColor" + } + ], + "ImColor_ImColor": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": {}, + "funcname": "ImColor", + "location": "imgui:2462", + "ov_cimguiname": "ImColor_ImColor_Nil", + "signature": "()", + "stname": "ImColor" + }, + { + "args": "(float r,float g,float b,float a)", + "argsT": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "a", + "type": "float" + } + ], + "argsoriginal": "(float r,float g,float b,float a=1.0f)", + "call_args": "(r,g,b,a)", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": { + "a": "1.0f" + }, + "funcname": "ImColor", + "location": "imgui:2463", + "ov_cimguiname": "ImColor_ImColor_Float", + "signature": "(float,float,float,float)", + "stname": "ImColor" + }, + { + "args": "(const ImVec4 col)", + "argsT": [ + { + "name": "col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& col)", + "call_args": "(col)", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": {}, + "funcname": "ImColor", + "location": "imgui:2464", + "ov_cimguiname": "ImColor_ImColor_Vec4", + "signature": "(const ImVec4)", + "stname": "ImColor" + }, + { + "args": "(int r,int g,int b,int a)", + "argsT": [ + { + "name": "r", + "type": "int" + }, + { + "name": "g", + "type": "int" + }, + { + "name": "b", + "type": "int" + }, + { + "name": "a", + "type": "int" + } + ], + "argsoriginal": "(int r,int g,int b,int a=255)", + "call_args": "(r,g,b,a)", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": { + "a": "255" + }, + "funcname": "ImColor", + "location": "imgui:2465", + "ov_cimguiname": "ImColor_ImColor_Int", + "signature": "(int,int,int,int)", + "stname": "ImColor" + }, + { + "args": "(ImU32 rgba)", + "argsT": [ + { + "name": "rgba", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 rgba)", + "call_args": "(rgba)", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": {}, + "funcname": "ImColor", + "location": "imgui:2466", + "ov_cimguiname": "ImColor_ImColor_U32", + "signature": "(ImU32)", + "stname": "ImColor" + } + ], + "ImColor_SetHSV": [ + { + "args": "(ImColor* self,float h,float s,float v,float a)", + "argsT": [ + { + "name": "self", + "type": "ImColor*" + }, + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "a", + "type": "float" + } + ], + "argsoriginal": "(float h,float s,float v,float a=1.0f)", + "call_args": "(h,s,v,a)", + "cimguiname": "ImColor_SetHSV", + "defaults": { + "a": "1.0f" + }, + "funcname": "SetHSV", + "location": "imgui:2471", + "ov_cimguiname": "ImColor_SetHSV", + "ret": "void", + "signature": "(float,float,float,float)", + "stname": "ImColor" + } + ], + "ImColor_destroy": [ + { + "args": "(ImColor* self)", + "argsT": [ + { + "name": "self", + "type": "ImColor*" + } + ], + "call_args": "(self)", + "cimguiname": "ImColor_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImColor_destroy", + "ret": "void", + "signature": "(ImColor*)", + "stname": "ImColor" + } + ], + "ImDrawCmd_GetTexID": [ + { + "args": "(ImDrawCmd* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawCmd*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawCmd_GetTexID", + "defaults": {}, + "funcname": "GetTexID", + "location": "imgui:2520", + "ov_cimguiname": "ImDrawCmd_GetTexID", + "ret": "ImTextureID", + "signature": "()const", + "stname": "ImDrawCmd" + } + ], + "ImDrawCmd_ImDrawCmd": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawCmd_ImDrawCmd", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawCmd", + "location": "imgui:2517", + "ov_cimguiname": "ImDrawCmd_ImDrawCmd", + "signature": "()", + "stname": "ImDrawCmd" + } + ], + "ImDrawCmd_destroy": [ + { + "args": "(ImDrawCmd* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawCmd*" + } + ], + "call_args": "(self)", + "cimguiname": "ImDrawCmd_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImDrawCmd_destroy", + "ret": "void", + "signature": "(ImDrawCmd*)", + "stname": "ImDrawCmd" + } + ], + "ImDrawData_Clear": [ + { + "args": "(ImDrawData* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawData_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2754", + "ov_cimguiname": "ImDrawData_Clear", + "ret": "void", + "signature": "()", + "stname": "ImDrawData" + } + ], + "ImDrawData_DeIndexAllBuffers": [ + { + "args": "(ImDrawData* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawData_DeIndexAllBuffers", + "defaults": {}, + "funcname": "DeIndexAllBuffers", + "location": "imgui:2755", + "ov_cimguiname": "ImDrawData_DeIndexAllBuffers", + "ret": "void", + "signature": "()", + "stname": "ImDrawData" + } + ], + "ImDrawData_ImDrawData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawData_ImDrawData", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawData", + "location": "imgui:2753", + "ov_cimguiname": "ImDrawData_ImDrawData", + "signature": "()", + "stname": "ImDrawData" + } + ], + "ImDrawData_ScaleClipRects": [ + { + "args": "(ImDrawData* self,const ImVec2 fb_scale)", + "argsT": [ + { + "name": "self", + "type": "ImDrawData*" + }, + { + "name": "fb_scale", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& fb_scale)", + "call_args": "(fb_scale)", + "cimguiname": "ImDrawData_ScaleClipRects", + "defaults": {}, + "funcname": "ScaleClipRects", + "location": "imgui:2756", + "ov_cimguiname": "ImDrawData_ScaleClipRects", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImDrawData" + } + ], + "ImDrawData_destroy": [ + { + "args": "(ImDrawData* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImDrawData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImDrawData_destroy", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "ImDrawData" + } + ], + "ImDrawListSplitter_Clear": [ + { + "args": "(ImDrawListSplitter* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSplitter_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2565", + "ov_cimguiname": "ImDrawListSplitter_Clear", + "ret": "void", + "signature": "()", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_ClearFreeMemory": [ + { + "args": "(ImDrawListSplitter* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSplitter_ClearFreeMemory", + "defaults": {}, + "funcname": "ClearFreeMemory", + "location": "imgui:2566", + "ov_cimguiname": "ImDrawListSplitter_ClearFreeMemory", + "ret": "void", + "signature": "()", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_ImDrawListSplitter": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSplitter_ImDrawListSplitter", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawListSplitter", + "location": "imgui:2563", + "ov_cimguiname": "ImDrawListSplitter_ImDrawListSplitter", + "signature": "()", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_Merge": [ + { + "args": "(ImDrawListSplitter* self,ImDrawList* draw_list)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + } + ], + "argsoriginal": "(ImDrawList* draw_list)", + "call_args": "(draw_list)", + "cimguiname": "ImDrawListSplitter_Merge", + "defaults": {}, + "funcname": "Merge", + "location": "imgui:2568", + "ov_cimguiname": "ImDrawListSplitter_Merge", + "ret": "void", + "signature": "(ImDrawList*)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_SetCurrentChannel": [ + { + "args": "(ImDrawListSplitter* self,ImDrawList* draw_list,int channel_idx)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "channel_idx", + "type": "int" + } + ], + "argsoriginal": "(ImDrawList* draw_list,int channel_idx)", + "call_args": "(draw_list,channel_idx)", + "cimguiname": "ImDrawListSplitter_SetCurrentChannel", + "defaults": {}, + "funcname": "SetCurrentChannel", + "location": "imgui:2569", + "ov_cimguiname": "ImDrawListSplitter_SetCurrentChannel", + "ret": "void", + "signature": "(ImDrawList*,int)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_Split": [ + { + "args": "(ImDrawListSplitter* self,ImDrawList* draw_list,int count)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(ImDrawList* draw_list,int count)", + "call_args": "(draw_list,count)", + "cimguiname": "ImDrawListSplitter_Split", + "defaults": {}, + "funcname": "Split", + "location": "imgui:2567", + "ov_cimguiname": "ImDrawListSplitter_Split", + "ret": "void", + "signature": "(ImDrawList*,int)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_destroy": [ + { + "args": "(ImDrawListSplitter* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + } + ], + "call_args": "(self)", + "cimguiname": "ImDrawListSplitter_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2564", + "ov_cimguiname": "ImDrawListSplitter_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImDrawListSplitter*)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawList_AddBezierCubic": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness,int num_segments=0)", + "call_args": "(p1,p2,p3,p4,col,thickness,num_segments)", + "cimguiname": "ImDrawList_AddBezierCubic", + "defaults": { + "num_segments": "0" + }, + "funcname": "AddBezierCubic", + "location": "imgui:2668", + "ov_cimguiname": "ImDrawList_AddBezierCubic", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddBezierQuadratic": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness,int num_segments=0)", + "call_args": "(p1,p2,p3,col,thickness,num_segments)", + "cimguiname": "ImDrawList_AddBezierQuadratic", + "defaults": { + "num_segments": "0" + }, + "funcname": "AddBezierQuadratic", + "location": "imgui:2669", + "ov_cimguiname": "ImDrawList_AddBezierQuadratic", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddCallback": [ + { + "args": "(ImDrawList* self,ImDrawCallback callback,void* callback_data)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "callback", + "type": "ImDrawCallback" + }, + { + "name": "callback_data", + "type": "void*" + } + ], + "argsoriginal": "(ImDrawCallback callback,void* callback_data)", + "call_args": "(callback,callback_data)", + "cimguiname": "ImDrawList_AddCallback", + "defaults": {}, + "funcname": "AddCallback", + "location": "imgui:2693", + "ov_cimguiname": "ImDrawList_AddCallback", + "ret": "void", + "signature": "(ImDrawCallback,void*)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddCircle": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "num_segments", + "type": "int" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments=0,float thickness=1.0f)", + "call_args": "(center,radius,col,num_segments,thickness)", + "cimguiname": "ImDrawList_AddCircle", + "defaults": { + "num_segments": "0", + "thickness": "1.0f" + }, + "funcname": "AddCircle", + "location": "imgui:2660", + "ov_cimguiname": "ImDrawList_AddCircle", + "ret": "void", + "signature": "(const ImVec2,float,ImU32,int,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddCircleFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments=0)", + "call_args": "(center,radius,col,num_segments)", + "cimguiname": "ImDrawList_AddCircleFilled", + "defaults": { + "num_segments": "0" + }, + "funcname": "AddCircleFilled", + "location": "imgui:2661", + "ov_cimguiname": "ImDrawList_AddCircleFilled", + "ret": "void", + "signature": "(const ImVec2,float,ImU32,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddConvexPolyFilled": [ + { + "args": "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "points", + "type": "const ImVec2*" + }, + { + "name": "num_points", + "type": "int" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2* points,int num_points,ImU32 col)", + "call_args": "(points,num_points,col)", + "cimguiname": "ImDrawList_AddConvexPolyFilled", + "defaults": {}, + "funcname": "AddConvexPolyFilled", + "location": "imgui:2667", + "ov_cimguiname": "ImDrawList_AddConvexPolyFilled", + "ret": "void", + "signature": "(const ImVec2*,int,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddDrawCmd": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_AddDrawCmd", + "defaults": {}, + "funcname": "AddDrawCmd", + "location": "imgui:2694", + "ov_cimguiname": "ImDrawList_AddDrawCmd", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddImage": [ + { + "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "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" + } + ], + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min=ImVec2(0,0),const ImVec2& uv_max=ImVec2(1,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))", + "call_args": "(user_texture_id,p_min,p_max,uv_min,uv_max,col)", + "cimguiname": "ImDrawList_AddImage", + "defaults": { + "col": "4294967295", + "uv_max": "ImVec2(1,1)", + "uv_min": "ImVec2(0,0)" + }, + "funcname": "AddImage", + "location": "imgui:2675", + "ov_cimguiname": "ImDrawList_AddImage", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddImageQuad": [ + { + "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "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" + }, + { + "name": "uv2", + "type": "const ImVec2" + }, + { + "name": "uv3", + "type": "const ImVec2" + }, + { + "name": "uv4", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& uv1=ImVec2(0,0),const ImVec2& uv2=ImVec2(1,0),const ImVec2& uv3=ImVec2(1,1),const ImVec2& uv4=ImVec2(0,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))", + "call_args": "(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col)", + "cimguiname": "ImDrawList_AddImageQuad", + "defaults": { + "col": "4294967295", + "uv1": "ImVec2(0,0)", + "uv2": "ImVec2(1,0)", + "uv3": "ImVec2(1,1)", + "uv4": "ImVec2(0,1)" + }, + "funcname": "AddImageQuad", + "location": "imgui:2676", + "ov_cimguiname": "ImDrawList_AddImageQuad", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddImageRounded": [ + { + "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "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" + } + ], + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min,const ImVec2& uv_max,ImU32 col,float rounding,ImDrawFlags flags=0)", + "call_args": "(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags)", + "cimguiname": "ImDrawList_AddImageRounded", + "defaults": { + "flags": "0" + }, + "funcname": "AddImageRounded", + "location": "imgui:2677", + "ov_cimguiname": "ImDrawList_AddImageRounded", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddLine": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,ImU32 col,float thickness=1.0f)", + "call_args": "(p1,p2,col,thickness)", + "cimguiname": "ImDrawList_AddLine", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddLine", + "location": "imgui:2652", + "ov_cimguiname": "ImDrawList_AddLine", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddNgon": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "num_segments", + "type": "int" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments,float thickness=1.0f)", + "call_args": "(center,radius,col,num_segments,thickness)", + "cimguiname": "ImDrawList_AddNgon", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddNgon", + "location": "imgui:2662", + "ov_cimguiname": "ImDrawList_AddNgon", + "ret": "void", + "signature": "(const ImVec2,float,ImU32,int,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddNgonFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments)", + "call_args": "(center,radius,col,num_segments)", + "cimguiname": "ImDrawList_AddNgonFilled", + "defaults": {}, + "funcname": "AddNgonFilled", + "location": "imgui:2663", + "ov_cimguiname": "ImDrawList_AddNgonFilled", + "ret": "void", + "signature": "(const ImVec2,float,ImU32,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddPolyline": [ + { + "args": "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "points", + "type": "const ImVec2*" + }, + { + "name": "num_points", + "type": "int" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "flags", + "type": "ImDrawFlags" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)", + "call_args": "(points,num_points,col,flags,thickness)", + "cimguiname": "ImDrawList_AddPolyline", + "defaults": {}, + "funcname": "AddPolyline", + "location": "imgui:2666", + "ov_cimguiname": "ImDrawList_AddPolyline", + "ret": "void", + "signature": "(const ImVec2*,int,ImU32,ImDrawFlags,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddQuad": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness=1.0f)", + "call_args": "(p1,p2,p3,p4,col,thickness)", + "cimguiname": "ImDrawList_AddQuad", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddQuad", + "location": "imgui:2656", + "ov_cimguiname": "ImDrawList_AddQuad", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddQuadFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col)", + "call_args": "(p1,p2,p3,p4,col)", + "cimguiname": "ImDrawList_AddQuadFilled", + "defaults": {}, + "funcname": "AddQuadFilled", + "location": "imgui:2657", + "ov_cimguiname": "ImDrawList_AddQuadFilled", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddRect": [ + { + "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0,float thickness=1.0f)", + "call_args": "(p_min,p_max,col,rounding,flags,thickness)", + "cimguiname": "ImDrawList_AddRect", + "defaults": { + "flags": "0", + "rounding": "0.0f", + "thickness": "1.0f" + }, + "funcname": "AddRect", + "location": "imgui:2653", + "ov_cimguiname": "ImDrawList_AddRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddRectFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p_min", + "type": "const ImVec2" + }, + { + "name": "p_max", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "rounding", + "type": "float" + }, + { + "name": "flags", + "type": "ImDrawFlags" + } + ], + "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0)", + "call_args": "(p_min,p_max,col,rounding,flags)", + "cimguiname": "ImDrawList_AddRectFilled", + "defaults": { + "flags": "0", + "rounding": "0.0f" + }, + "funcname": "AddRectFilled", + "location": "imgui:2654", + "ov_cimguiname": "ImDrawList_AddRectFilled", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddRectFilledMultiColor": [ + { + "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)", + "call_args": "(p_min,p_max,col_upr_left,col_upr_right,col_bot_right,col_bot_left)", + "cimguiname": "ImDrawList_AddRectFilledMultiColor", + "defaults": {}, + "funcname": "AddRectFilledMultiColor", + "location": "imgui:2655", + "ov_cimguiname": "ImDrawList_AddRectFilledMultiColor", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddText": [ + { + "args": "(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "text_begin", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0))", + "call_args": "(pos,col,text_begin,text_end)", + "cimguiname": "ImDrawList_AddText", + "defaults": { + "text_end": "NULL" + }, + "funcname": "AddText", + "location": "imgui:2664", + "ov_cimguiname": "ImDrawList_AddText_Vec2", + "ret": "void", + "signature": "(const ImVec2,ImU32,const char*,const char*)", + "stname": "ImDrawList" + }, + { + "args": "(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "font", + "type": "const 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*" + }, + { + "name": "wrap_width", + "type": "float" + }, + { + "name": "cpu_fine_clip_rect", + "type": "const ImVec4*" + } + ], + "argsoriginal": "(const ImFont* font,float font_size,const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0),float wrap_width=0.0f,const ImVec4* cpu_fine_clip_rect=((void*)0))", + "call_args": "(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect)", + "cimguiname": "ImDrawList_AddText", + "defaults": { + "cpu_fine_clip_rect": "NULL", + "text_end": "NULL", + "wrap_width": "0.0f" + }, + "funcname": "AddText", + "location": "imgui:2665", + "ov_cimguiname": "ImDrawList_AddText_FontPtr", + "ret": "void", + "signature": "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddTriangle": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness=1.0f)", + "call_args": "(p1,p2,p3,col,thickness)", + "cimguiname": "ImDrawList_AddTriangle", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddTriangle", + "location": "imgui:2658", + "ov_cimguiname": "ImDrawList_AddTriangle", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddTriangleFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col)", + "call_args": "(p1,p2,p3,col)", + "cimguiname": "ImDrawList_AddTriangleFilled", + "defaults": {}, + "funcname": "AddTriangleFilled", + "location": "imgui:2659", + "ov_cimguiname": "ImDrawList_AddTriangleFilled", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_ChannelsMerge": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_ChannelsMerge", + "defaults": {}, + "funcname": "ChannelsMerge", + "location": "imgui:2704", + "ov_cimguiname": "ImDrawList_ChannelsMerge", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_ChannelsSetCurrent": [ + { + "args": "(ImDrawList* self,int n)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImDrawList_ChannelsSetCurrent", + "defaults": {}, + "funcname": "ChannelsSetCurrent", + "location": "imgui:2705", + "ov_cimguiname": "ImDrawList_ChannelsSetCurrent", + "ret": "void", + "signature": "(int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_ChannelsSplit": [ + { + "args": "(ImDrawList* self,int count)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(int count)", + "call_args": "(count)", + "cimguiname": "ImDrawList_ChannelsSplit", + "defaults": {}, + "funcname": "ChannelsSplit", + "location": "imgui:2703", + "ov_cimguiname": "ImDrawList_ChannelsSplit", + "ret": "void", + "signature": "(int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_CloneOutput": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_CloneOutput", + "defaults": {}, + "funcname": "CloneOutput", + "location": "imgui:2695", + "ov_cimguiname": "ImDrawList_CloneOutput", + "ret": "ImDrawList*", + "signature": "()const", + "stname": "ImDrawList" + } + ], + "ImDrawList_GetClipRectMax": [ + { + "args": "(ImVec2 *pOut,ImDrawList* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_GetClipRectMax", + "defaults": {}, + "funcname": "GetClipRectMax", + "location": "imgui:2643", + "nonUDT": 1, + "ov_cimguiname": "ImDrawList_GetClipRectMax", + "ret": "void", + "signature": "()const", + "stname": "ImDrawList" + } + ], + "ImDrawList_GetClipRectMin": [ + { + "args": "(ImVec2 *pOut,ImDrawList* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_GetClipRectMin", + "defaults": {}, + "funcname": "GetClipRectMin", + "location": "imgui:2642", + "nonUDT": 1, + "ov_cimguiname": "ImDrawList_GetClipRectMin", + "ret": "void", + "signature": "()const", + "stname": "ImDrawList" + } + ], + "ImDrawList_ImDrawList": [ + { + "args": "(ImDrawListSharedData* shared_data)", + "argsT": [ + { + "name": "shared_data", + "type": "ImDrawListSharedData*" + } + ], + "argsoriginal": "(ImDrawListSharedData* shared_data)", + "call_args": "(shared_data)", + "cimguiname": "ImDrawList_ImDrawList", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawList", + "location": "imgui:2634", + "ov_cimguiname": "ImDrawList_ImDrawList", + "signature": "(ImDrawListSharedData*)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathArcTo": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "a_min", + "type": "float" + }, + { + "name": "a_max", + "type": "float" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments=0)", + "call_args": "(center,radius,a_min,a_max,num_segments)", + "cimguiname": "ImDrawList_PathArcTo", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathArcTo", + "location": "imgui:2686", + "ov_cimguiname": "ImDrawList_PathArcTo", + "ret": "void", + "signature": "(const ImVec2,float,float,float,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathArcToFast": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "a_min_of_12", + "type": "int" + }, + { + "name": "a_max_of_12", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,int a_min_of_12,int a_max_of_12)", + "call_args": "(center,radius,a_min_of_12,a_max_of_12)", + "cimguiname": "ImDrawList_PathArcToFast", + "defaults": {}, + "funcname": "PathArcToFast", + "location": "imgui:2687", + "ov_cimguiname": "ImDrawList_PathArcToFast", + "ret": "void", + "signature": "(const ImVec2,float,int,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathBezierCubicCurveTo": [ + { + "args": "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", + "type": "const ImVec2" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,int num_segments=0)", + "call_args": "(p2,p3,p4,num_segments)", + "cimguiname": "ImDrawList_PathBezierCubicCurveTo", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathBezierCubicCurveTo", + "location": "imgui:2688", + "ov_cimguiname": "ImDrawList_PathBezierCubicCurveTo", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathBezierQuadraticCurveTo": [ + { + "args": "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& p2,const ImVec2& p3,int num_segments=0)", + "call_args": "(p2,p3,num_segments)", + "cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathBezierQuadraticCurveTo", + "location": "imgui:2689", + "ov_cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathClear": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_PathClear", + "defaults": {}, + "funcname": "PathClear", + "location": "imgui:2681", + "ov_cimguiname": "ImDrawList_PathClear", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathFillConvex": [ + { + "args": "(ImDrawList* self,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 col)", + "call_args": "(col)", + "cimguiname": "ImDrawList_PathFillConvex", + "defaults": {}, + "funcname": "PathFillConvex", + "location": "imgui:2684", + "ov_cimguiname": "ImDrawList_PathFillConvex", + "ret": "void", + "signature": "(ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathLineTo": [ + { + "args": "(ImDrawList* self,const ImVec2 pos)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "ImDrawList_PathLineTo", + "defaults": {}, + "funcname": "PathLineTo", + "location": "imgui:2682", + "ov_cimguiname": "ImDrawList_PathLineTo", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathLineToMergeDuplicate": [ + { + "args": "(ImDrawList* self,const ImVec2 pos)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "ImDrawList_PathLineToMergeDuplicate", + "defaults": {}, + "funcname": "PathLineToMergeDuplicate", + "location": "imgui:2683", + "ov_cimguiname": "ImDrawList_PathLineToMergeDuplicate", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathRect": [ + { + "args": "(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "rect_min", + "type": "const ImVec2" + }, + { + "name": "rect_max", + "type": "const ImVec2" + }, + { + "name": "rounding", + "type": "float" + }, + { + "name": "flags", + "type": "ImDrawFlags" + } + ], + "argsoriginal": "(const ImVec2& rect_min,const ImVec2& rect_max,float rounding=0.0f,ImDrawFlags flags=0)", + "call_args": "(rect_min,rect_max,rounding,flags)", + "cimguiname": "ImDrawList_PathRect", + "defaults": { + "flags": "0", + "rounding": "0.0f" + }, + "funcname": "PathRect", + "location": "imgui:2690", + "ov_cimguiname": "ImDrawList_PathRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,float,ImDrawFlags)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathStroke": [ + { + "args": "(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "flags", + "type": "ImDrawFlags" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(ImU32 col,ImDrawFlags flags=0,float thickness=1.0f)", + "call_args": "(col,flags,thickness)", + "cimguiname": "ImDrawList_PathStroke", + "defaults": { + "flags": "0", + "thickness": "1.0f" + }, + "funcname": "PathStroke", + "location": "imgui:2685", + "ov_cimguiname": "ImDrawList_PathStroke", + "ret": "void", + "signature": "(ImU32,ImDrawFlags,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PopClipRect": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_PopClipRect", + "defaults": {}, + "funcname": "PopClipRect", + "location": "imgui:2639", + "ov_cimguiname": "ImDrawList_PopClipRect", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_PopTextureID": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_PopTextureID", + "defaults": {}, + "funcname": "PopTextureID", + "location": "imgui:2641", + "ov_cimguiname": "ImDrawList_PopTextureID", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimQuadUV": [ + { + "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,const ImVec2& uv_a,const ImVec2& uv_b,const ImVec2& uv_c,const ImVec2& uv_d,ImU32 col)", + "call_args": "(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col)", + "cimguiname": "ImDrawList_PrimQuadUV", + "defaults": {}, + "funcname": "PrimQuadUV", + "location": "imgui:2714", + "ov_cimguiname": "ImDrawList_PrimQuadUV", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimRect": [ + { + "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,ImU32 col)", + "call_args": "(a,b,col)", + "cimguiname": "ImDrawList_PrimRect", + "defaults": {}, + "funcname": "PrimRect", + "location": "imgui:2712", + "ov_cimguiname": "ImDrawList_PrimRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimRectUV": [ + { + "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,ImU32 col)", + "call_args": "(a,b,uv_a,uv_b,col)", + "cimguiname": "ImDrawList_PrimRectUV", + "defaults": {}, + "funcname": "PrimRectUV", + "location": "imgui:2713", + "ov_cimguiname": "ImDrawList_PrimRectUV", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimReserve": [ + { + "args": "(ImDrawList* self,int idx_count,int vtx_count)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "idx_count", + "type": "int" + }, + { + "name": "vtx_count", + "type": "int" + } + ], + "argsoriginal": "(int idx_count,int vtx_count)", + "call_args": "(idx_count,vtx_count)", + "cimguiname": "ImDrawList_PrimReserve", + "defaults": {}, + "funcname": "PrimReserve", + "location": "imgui:2710", + "ov_cimguiname": "ImDrawList_PrimReserve", + "ret": "void", + "signature": "(int,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimUnreserve": [ + { + "args": "(ImDrawList* self,int idx_count,int vtx_count)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "idx_count", + "type": "int" + }, + { + "name": "vtx_count", + "type": "int" + } + ], + "argsoriginal": "(int idx_count,int vtx_count)", + "call_args": "(idx_count,vtx_count)", + "cimguiname": "ImDrawList_PrimUnreserve", + "defaults": {}, + "funcname": "PrimUnreserve", + "location": "imgui:2711", + "ov_cimguiname": "ImDrawList_PrimUnreserve", + "ret": "void", + "signature": "(int,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimVtx": [ + { + "args": "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "uv", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& pos,const ImVec2& uv,ImU32 col)", + "call_args": "(pos,uv,col)", + "cimguiname": "ImDrawList_PrimVtx", + "defaults": {}, + "funcname": "PrimVtx", + "location": "imgui:2717", + "ov_cimguiname": "ImDrawList_PrimVtx", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimWriteIdx": [ + { + "args": "(ImDrawList* self,ImDrawIdx idx)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "idx", + "type": "ImDrawIdx" + } + ], + "argsoriginal": "(ImDrawIdx idx)", + "call_args": "(idx)", + "cimguiname": "ImDrawList_PrimWriteIdx", + "defaults": {}, + "funcname": "PrimWriteIdx", + "location": "imgui:2716", + "ov_cimguiname": "ImDrawList_PrimWriteIdx", + "ret": "void", + "signature": "(ImDrawIdx)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimWriteVtx": [ + { + "args": "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "uv", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& pos,const ImVec2& uv,ImU32 col)", + "call_args": "(pos,uv,col)", + "cimguiname": "ImDrawList_PrimWriteVtx", + "defaults": {}, + "funcname": "PrimWriteVtx", + "location": "imgui:2715", + "ov_cimguiname": "ImDrawList_PrimWriteVtx", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PushClipRect": [ + { + "args": "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "clip_rect_min", + "type": "const ImVec2" + }, + { + "name": "clip_rect_max", + "type": "const ImVec2" + }, + { + "name": "intersect_with_current_clip_rect", + "type": "bool" + } + ], + "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)", + "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", + "cimguiname": "ImDrawList_PushClipRect", + "defaults": { + "intersect_with_current_clip_rect": "false" + }, + "funcname": "PushClipRect", + "location": "imgui:2637", + "ov_cimguiname": "ImDrawList_PushClipRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,bool)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PushClipRectFullScreen": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_PushClipRectFullScreen", + "defaults": {}, + "funcname": "PushClipRectFullScreen", + "location": "imgui:2638", + "ov_cimguiname": "ImDrawList_PushClipRectFullScreen", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_PushTextureID": [ + { + "args": "(ImDrawList* self,ImTextureID texture_id)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "texture_id", + "type": "ImTextureID" + } + ], + "argsoriginal": "(ImTextureID texture_id)", + "call_args": "(texture_id)", + "cimguiname": "ImDrawList_PushTextureID", + "defaults": {}, + "funcname": "PushTextureID", + "location": "imgui:2640", + "ov_cimguiname": "ImDrawList_PushTextureID", + "ret": "void", + "signature": "(ImTextureID)", + "stname": "ImDrawList" + } + ], + "ImDrawList__CalcCircleAutoSegmentCount": [ + { + "args": "(ImDrawList* self,float radius)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "radius", + "type": "float" + } + ], + "argsoriginal": "(float radius)", + "call_args": "(radius)", + "cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", + "defaults": {}, + "funcname": "_CalcCircleAutoSegmentCount", + "location": "imgui:2732", + "ov_cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", + "ret": "int", + "signature": "(float)const", + "stname": "ImDrawList" + } + ], + "ImDrawList__ClearFreeMemory": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__ClearFreeMemory", + "defaults": {}, + "funcname": "_ClearFreeMemory", + "location": "imgui:2726", + "ov_cimguiname": "ImDrawList__ClearFreeMemory", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__OnChangedClipRect": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__OnChangedClipRect", + "defaults": {}, + "funcname": "_OnChangedClipRect", + "location": "imgui:2729", + "ov_cimguiname": "ImDrawList__OnChangedClipRect", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__OnChangedTextureID": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__OnChangedTextureID", + "defaults": {}, + "funcname": "_OnChangedTextureID", + "location": "imgui:2730", + "ov_cimguiname": "ImDrawList__OnChangedTextureID", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__OnChangedVtxOffset": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__OnChangedVtxOffset", + "defaults": {}, + "funcname": "_OnChangedVtxOffset", + "location": "imgui:2731", + "ov_cimguiname": "ImDrawList__OnChangedVtxOffset", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__PathArcToFastEx": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,int a_min_sample,int a_max_sample,int a_step)", + "call_args": "(center,radius,a_min_sample,a_max_sample,a_step)", + "cimguiname": "ImDrawList__PathArcToFastEx", + "defaults": {}, + "funcname": "_PathArcToFastEx", + "location": "imgui:2733", + "ov_cimguiname": "ImDrawList__PathArcToFastEx", + "ret": "void", + "signature": "(const ImVec2,float,int,int,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList__PathArcToN": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "a_min", + "type": "float" + }, + { + "name": "a_max", + "type": "float" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments)", + "call_args": "(center,radius,a_min,a_max,num_segments)", + "cimguiname": "ImDrawList__PathArcToN", + "defaults": {}, + "funcname": "_PathArcToN", + "location": "imgui:2734", + "ov_cimguiname": "ImDrawList__PathArcToN", + "ret": "void", + "signature": "(const ImVec2,float,float,float,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList__PopUnusedDrawCmd": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__PopUnusedDrawCmd", + "defaults": {}, + "funcname": "_PopUnusedDrawCmd", + "location": "imgui:2727", + "ov_cimguiname": "ImDrawList__PopUnusedDrawCmd", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__ResetForNewFrame": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__ResetForNewFrame", + "defaults": {}, + "funcname": "_ResetForNewFrame", + "location": "imgui:2725", + "ov_cimguiname": "ImDrawList__ResetForNewFrame", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__TryMergeDrawCmds": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__TryMergeDrawCmds", + "defaults": {}, + "funcname": "_TryMergeDrawCmds", + "location": "imgui:2728", + "ov_cimguiname": "ImDrawList__TryMergeDrawCmds", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_destroy": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "call_args": "(self)", + "cimguiname": "ImDrawList_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2636", + "ov_cimguiname": "ImDrawList_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImDrawList*)", + "stname": "ImDrawList" + } + ], + "ImFontAtlasCustomRect_ImFontAtlasCustomRect": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", + "constructor": true, + "defaults": {}, + "funcname": "ImFontAtlasCustomRect", + "location": "imgui:2827", + "ov_cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", + "signature": "()", + "stname": "ImFontAtlasCustomRect" + } + ], + "ImFontAtlasCustomRect_IsPacked": [ + { + "args": "(ImFontAtlasCustomRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlasCustomRect*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlasCustomRect_IsPacked", + "defaults": {}, + "funcname": "IsPacked", + "location": "imgui:2828", + "ov_cimguiname": "ImFontAtlasCustomRect_IsPacked", + "ret": "bool", + "signature": "()const", + "stname": "ImFontAtlasCustomRect" + } + ], + "ImFontAtlasCustomRect_destroy": [ + { + "args": "(ImFontAtlasCustomRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlasCustomRect*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFontAtlasCustomRect_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImFontAtlasCustomRect_destroy", + "ret": "void", + "signature": "(ImFontAtlasCustomRect*)", + "stname": "ImFontAtlasCustomRect" + } + ], + "ImFontAtlas_AddCustomRectFontGlyph": [ + { + "args": "(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "font", + "type": "ImFont*" + }, + { + "name": "id", + "type": "ImWchar" + }, + { + "name": "width", + "type": "int" + }, + { + "name": "height", + "type": "int" + }, + { + "name": "advance_x", + "type": "float" + }, + { + "name": "offset", + "type": "const ImVec2" + } + ], + "argsoriginal": "(ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2& offset=ImVec2(0,0))", + "call_args": "(font,id,width,height,advance_x,offset)", + "cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", + "defaults": { + "offset": "ImVec2(0,0)" + }, + "funcname": "AddCustomRectFontGlyph", + "location": "imgui:2912", + "ov_cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", + "ret": "int", + "signature": "(ImFont*,ImWchar,int,int,float,const ImVec2)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddCustomRectRegular": [ + { + "args": "(ImFontAtlas* self,int width,int height)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "width", + "type": "int" + }, + { + "name": "height", + "type": "int" + } + ], + "argsoriginal": "(int width,int height)", + "call_args": "(width,height)", + "cimguiname": "ImFontAtlas_AddCustomRectRegular", + "defaults": {}, + "funcname": "AddCustomRectRegular", + "location": "imgui:2911", + "ov_cimguiname": "ImFontAtlas_AddCustomRectRegular", + "ret": "int", + "signature": "(int,int)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFont": [ + { + "args": "(ImFontAtlas* self,const ImFontConfig* font_cfg)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + } + ], + "argsoriginal": "(const ImFontConfig* font_cfg)", + "call_args": "(font_cfg)", + "cimguiname": "ImFontAtlas_AddFont", + "defaults": {}, + "funcname": "AddFont", + "location": "imgui:2861", + "ov_cimguiname": "ImFontAtlas_AddFont", + "ret": "ImFont*", + "signature": "(const ImFontConfig*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontDefault": [ + { + "args": "(ImFontAtlas* self,const ImFontConfig* font_cfg)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + } + ], + "argsoriginal": "(const ImFontConfig* font_cfg=((void*)0))", + "call_args": "(font_cfg)", + "cimguiname": "ImFontAtlas_AddFontDefault", + "defaults": { + "font_cfg": "NULL" + }, + "funcname": "AddFontDefault", + "location": "imgui:2862", + "ov_cimguiname": "ImFontAtlas_AddFontDefault", + "ret": "ImFont*", + "signature": "(const ImFontConfig*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontFromFileTTF": [ + { + "args": "(ImFontAtlas* self,const char* filename,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "filename", + "type": "const char*" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const char* filename,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(filename,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromFileTTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromFileTTF", + "location": "imgui:2863", + "ov_cimguiname": "ImFontAtlas_AddFontFromFileTTF", + "ret": "ImFont*", + "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF": [ + { + "args": "(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "compressed_font_data_base85", + "type": "const char*" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromMemoryCompressedBase85TTF", + "location": "imgui:2866", + "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", + "ret": "ImFont*", + "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontFromMemoryCompressedTTF": [ + { + "args": "(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "compressed_font_data", + "type": "const void*" + }, + { + "name": "compressed_font_size", + "type": "int" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromMemoryCompressedTTF", + "location": "imgui:2865", + "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", + "ret": "ImFont*", + "signature": "(const void*,int,float,const ImFontConfig*,const ImWchar*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontFromMemoryTTF": [ + { + "args": "(ImFontAtlas* self,void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "font_data", + "type": "void*" + }, + { + "name": "font_size", + "type": "int" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(font_data,font_size,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromMemoryTTF", + "location": "imgui:2864", + "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", + "ret": "ImFont*", + "signature": "(void*,int,float,const ImFontConfig*,const ImWchar*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_Build": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_Build", + "defaults": {}, + "funcname": "Build", + "location": "imgui:2877", + "ov_cimguiname": "ImFontAtlas_Build", + "ret": "bool", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_CalcCustomRectUV": [ + { + "args": "(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "rect", + "type": "const ImFontAtlasCustomRect*" + }, + { + "name": "out_uv_min", + "type": "ImVec2*" + }, + { + "name": "out_uv_max", + "type": "ImVec2*" + } + ], + "argsoriginal": "(const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)", + "call_args": "(rect,out_uv_min,out_uv_max)", + "cimguiname": "ImFontAtlas_CalcCustomRectUV", + "defaults": {}, + "funcname": "CalcCustomRectUV", + "location": "imgui:2916", + "ov_cimguiname": "ImFontAtlas_CalcCustomRectUV", + "ret": "void", + "signature": "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_Clear": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2870", + "ov_cimguiname": "ImFontAtlas_Clear", + "ret": "void", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_ClearFonts": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ClearFonts", + "defaults": {}, + "funcname": "ClearFonts", + "location": "imgui:2869", + "ov_cimguiname": "ImFontAtlas_ClearFonts", + "ret": "void", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_ClearInputData": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ClearInputData", + "defaults": {}, + "funcname": "ClearInputData", + "location": "imgui:2867", + "ov_cimguiname": "ImFontAtlas_ClearInputData", + "ret": "void", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_ClearTexData": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ClearTexData", + "defaults": {}, + "funcname": "ClearTexData", + "location": "imgui:2868", + "ov_cimguiname": "ImFontAtlas_ClearTexData", + "ret": "void", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetCustomRectByIndex": [ + { + "args": "(ImFontAtlas* self,int index)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "index", + "type": "int" + } + ], + "argsoriginal": "(int index)", + "call_args": "(index)", + "cimguiname": "ImFontAtlas_GetCustomRectByIndex", + "defaults": {}, + "funcname": "GetCustomRectByIndex", + "location": "imgui:2913", + "ov_cimguiname": "ImFontAtlas_GetCustomRectByIndex", + "ret": "ImFontAtlasCustomRect*", + "signature": "(int)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesChineseFull": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", + "defaults": {}, + "funcname": "GetGlyphRangesChineseFull", + "location": "imgui:2894", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", + "defaults": {}, + "funcname": "GetGlyphRangesChineseSimplifiedCommon", + "location": "imgui:2895", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesCyrillic": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", + "defaults": {}, + "funcname": "GetGlyphRangesCyrillic", + "location": "imgui:2896", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesDefault": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesDefault", + "defaults": {}, + "funcname": "GetGlyphRangesDefault", + "location": "imgui:2890", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesDefault", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesGreek": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "defaults": {}, + "funcname": "GetGlyphRangesGreek", + "location": "imgui:2891", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesJapanese": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", + "defaults": {}, + "funcname": "GetGlyphRangesJapanese", + "location": "imgui:2893", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesKorean": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesKorean", + "defaults": {}, + "funcname": "GetGlyphRangesKorean", + "location": "imgui:2892", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesKorean", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesThai": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesThai", + "defaults": {}, + "funcname": "GetGlyphRangesThai", + "location": "imgui:2897", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesThai", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesVietnamese": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", + "defaults": {}, + "funcname": "GetGlyphRangesVietnamese", + "location": "imgui:2898", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetMouseCursorTexData": [ + { + "args": "(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "cursor", + "type": "ImGuiMouseCursor" + }, + { + "name": "out_offset", + "type": "ImVec2*" + }, + { + "name": "out_size", + "type": "ImVec2*" + }, + { + "name": "out_uv_border", + "type": "ImVec2[2]" + }, + { + "name": "out_uv_fill", + "type": "ImVec2[2]" + } + ], + "argsoriginal": "(ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])", + "call_args": "(cursor,out_offset,out_size,out_uv_border,out_uv_fill)", + "cimguiname": "ImFontAtlas_GetMouseCursorTexData", + "defaults": {}, + "funcname": "GetMouseCursorTexData", + "location": "imgui:2917", + "ov_cimguiname": "ImFontAtlas_GetMouseCursorTexData", + "ret": "bool", + "signature": "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetTexDataAsAlpha8": [ + { + "args": "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "out_pixels", + "type": "unsigned char**" + }, + { + "name": "out_width", + "type": "int*" + }, + { + "name": "out_height", + "type": "int*" + }, + { + "name": "out_bytes_per_pixel", + "type": "int*" + } + ], + "argsoriginal": "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))", + "call_args": "(out_pixels,out_width,out_height,out_bytes_per_pixel)", + "cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", + "defaults": { + "out_bytes_per_pixel": "NULL" + }, + "funcname": "GetTexDataAsAlpha8", + "location": "imgui:2878", + "ov_cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", + "ret": "void", + "signature": "(unsigned char**,int*,int*,int*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetTexDataAsRGBA32": [ + { + "args": "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "out_pixels", + "type": "unsigned char**" + }, + { + "name": "out_width", + "type": "int*" + }, + { + "name": "out_height", + "type": "int*" + }, + { + "name": "out_bytes_per_pixel", + "type": "int*" + } + ], + "argsoriginal": "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))", + "call_args": "(out_pixels,out_width,out_height,out_bytes_per_pixel)", + "cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", + "defaults": { + "out_bytes_per_pixel": "NULL" + }, + "funcname": "GetTexDataAsRGBA32", + "location": "imgui:2879", + "ov_cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", + "ret": "void", + "signature": "(unsigned char**,int*,int*,int*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_ImFontAtlas": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ImFontAtlas", + "constructor": true, + "defaults": {}, + "funcname": "ImFontAtlas", + "location": "imgui:2859", + "ov_cimguiname": "ImFontAtlas_ImFontAtlas", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_IsBuilt": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_IsBuilt", + "defaults": {}, + "funcname": "IsBuilt", + "location": "imgui:2880", + "ov_cimguiname": "ImFontAtlas_IsBuilt", + "ret": "bool", + "signature": "()const", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_SetTexID": [ + { + "args": "(ImFontAtlas* self,ImTextureID id)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "id", + "type": "ImTextureID" + } + ], + "argsoriginal": "(ImTextureID id)", + "call_args": "(id)", + "cimguiname": "ImFontAtlas_SetTexID", + "defaults": {}, + "funcname": "SetTexID", + "location": "imgui:2881", + "ov_cimguiname": "ImFontAtlas_SetTexID", + "ret": "void", + "signature": "(ImTextureID)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_destroy": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFontAtlas_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2860", + "ov_cimguiname": "ImFontAtlas_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImFontAtlas*)", + "stname": "ImFontAtlas" + } + ], + "ImFontConfig_ImFontConfig": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontConfig_ImFontConfig", + "constructor": true, + "defaults": {}, + "funcname": "ImFontConfig", + "location": "imgui:2787", + "ov_cimguiname": "ImFontConfig_ImFontConfig", + "signature": "()", + "stname": "ImFontConfig" + } + ], + "ImFontConfig_destroy": [ + { + "args": "(ImFontConfig* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontConfig*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFontConfig_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImFontConfig_destroy", + "ret": "void", + "signature": "(ImFontConfig*)", + "stname": "ImFontConfig" + } + ], + "ImFontGlyphRangesBuilder_AddChar": [ + { + "args": "(ImFontGlyphRangesBuilder* self,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFontGlyphRangesBuilder_AddChar", + "defaults": {}, + "funcname": "AddChar", + "location": "imgui:2812", + "ov_cimguiname": "ImFontGlyphRangesBuilder_AddChar", + "ret": "void", + "signature": "(ImWchar)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_AddRanges": [ + { + "args": "(ImFontGlyphRangesBuilder* self,const ImWchar* ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const ImWchar* ranges)", + "call_args": "(ranges)", + "cimguiname": "ImFontGlyphRangesBuilder_AddRanges", + "defaults": {}, + "funcname": "AddRanges", + "location": "imgui:2814", + "ov_cimguiname": "ImFontGlyphRangesBuilder_AddRanges", + "ret": "void", + "signature": "(const ImWchar*)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_AddText": [ + { + "args": "(ImFontGlyphRangesBuilder* self,const char* text,const char* text_end)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0))", + "call_args": "(text,text_end)", + "cimguiname": "ImFontGlyphRangesBuilder_AddText", + "defaults": { + "text_end": "NULL" + }, + "funcname": "AddText", + "location": "imgui:2813", + "ov_cimguiname": "ImFontGlyphRangesBuilder_AddText", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_BuildRanges": [ + { + "args": "(ImFontGlyphRangesBuilder* self,ImVector_ImWchar* out_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "out_ranges", + "type": "ImVector_ImWchar*" + } + ], + "argsoriginal": "(ImVector* out_ranges)", + "call_args": "(out_ranges)", + "cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", + "defaults": {}, + "funcname": "BuildRanges", + "location": "imgui:2815", + "ov_cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", + "ret": "void", + "signature": "(ImVector_ImWchar*)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_Clear": [ + { + "args": "(ImFontGlyphRangesBuilder* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontGlyphRangesBuilder_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2809", + "ov_cimguiname": "ImFontGlyphRangesBuilder_Clear", + "ret": "void", + "signature": "()", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_GetBit": [ + { + "args": "(ImFontGlyphRangesBuilder* self,size_t n)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "n", + "type": "size_t" + } + ], + "argsoriginal": "(size_t n)", + "call_args": "(n)", + "cimguiname": "ImFontGlyphRangesBuilder_GetBit", + "defaults": {}, + "funcname": "GetBit", + "location": "imgui:2810", + "ov_cimguiname": "ImFontGlyphRangesBuilder_GetBit", + "ret": "bool", + "signature": "(size_t)const", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", + "constructor": true, + "defaults": {}, + "funcname": "ImFontGlyphRangesBuilder", + "location": "imgui:2808", + "ov_cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", + "signature": "()", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_SetBit": [ + { + "args": "(ImFontGlyphRangesBuilder* self,size_t n)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "n", + "type": "size_t" + } + ], + "argsoriginal": "(size_t n)", + "call_args": "(n)", + "cimguiname": "ImFontGlyphRangesBuilder_SetBit", + "defaults": {}, + "funcname": "SetBit", + "location": "imgui:2811", + "ov_cimguiname": "ImFontGlyphRangesBuilder_SetBit", + "ret": "void", + "signature": "(size_t)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_destroy": [ + { + "args": "(ImFontGlyphRangesBuilder* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFontGlyphRangesBuilder_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImFontGlyphRangesBuilder_destroy", + "ret": "void", + "signature": "(ImFontGlyphRangesBuilder*)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFont_AddGlyph": [ + { + "args": "(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "src_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "c", + "type": "ImWchar" + }, + { + "name": "x0", + "type": "float" + }, + { + "name": "y0", + "type": "float" + }, + { + "name": "x1", + "type": "float" + }, + { + "name": "y1", + "type": "float" + }, + { + "name": "u0", + "type": "float" + }, + { + "name": "v0", + "type": "float" + }, + { + "name": "u1", + "type": "float" + }, + { + "name": "v1", + "type": "float" + }, + { + "name": "advance_x", + "type": "float" + } + ], + "argsoriginal": "(const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)", + "call_args": "(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,advance_x)", + "cimguiname": "ImFont_AddGlyph", + "defaults": {}, + "funcname": "AddGlyph", + "location": "imgui:3004", + "ov_cimguiname": "ImFont_AddGlyph", + "ret": "void", + "signature": "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)", + "stname": "ImFont" + } + ], + "ImFont_AddRemapChar": [ + { + "args": "(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "dst", + "type": "ImWchar" + }, + { + "name": "src", + "type": "ImWchar" + }, + { + "name": "overwrite_dst", + "type": "bool" + } + ], + "argsoriginal": "(ImWchar dst,ImWchar src,bool overwrite_dst=true)", + "call_args": "(dst,src,overwrite_dst)", + "cimguiname": "ImFont_AddRemapChar", + "defaults": { + "overwrite_dst": "true" + }, + "funcname": "AddRemapChar", + "location": "imgui:3005", + "ov_cimguiname": "ImFont_AddRemapChar", + "ret": "void", + "signature": "(ImWchar,ImWchar,bool)", + "stname": "ImFont" + } + ], + "ImFont_BuildLookupTable": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_BuildLookupTable", + "defaults": {}, + "funcname": "BuildLookupTable", + "location": "imgui:3001", + "ov_cimguiname": "ImFont_BuildLookupTable", + "ret": "void", + "signature": "()", + "stname": "ImFont" + } + ], + "ImFont_CalcTextSizeA": [ + { + "args": "(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImFont*" + }, + { + "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*" + }, + { + "name": "remaining", + "type": "const char**" + } + ], + "argsoriginal": "(float size,float max_width,float wrap_width,const char* text_begin,const char* text_end=((void*)0),const char** remaining=((void*)0))", + "call_args": "(size,max_width,wrap_width,text_begin,text_end,remaining)", + "cimguiname": "ImFont_CalcTextSizeA", + "defaults": { + "remaining": "NULL", + "text_end": "NULL" + }, + "funcname": "CalcTextSizeA", + "location": "imgui:2995", + "nonUDT": 1, + "ov_cimguiname": "ImFont_CalcTextSizeA", + "ret": "void", + "signature": "(float,float,float,const char*,const char*,const char**)const", + "stname": "ImFont" + } + ], + "ImFont_CalcWordWrapPositionA": [ + { + "args": "(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "scale", + "type": "float" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + }, + { + "name": "wrap_width", + "type": "float" + } + ], + "argsoriginal": "(float scale,const char* text,const char* text_end,float wrap_width)", + "call_args": "(scale,text,text_end,wrap_width)", + "cimguiname": "ImFont_CalcWordWrapPositionA", + "defaults": {}, + "funcname": "CalcWordWrapPositionA", + "location": "imgui:2996", + "ov_cimguiname": "ImFont_CalcWordWrapPositionA", + "ret": "const char*", + "signature": "(float,const char*,const char*,float)const", + "stname": "ImFont" + } + ], + "ImFont_ClearOutputData": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_ClearOutputData", + "defaults": {}, + "funcname": "ClearOutputData", + "location": "imgui:3002", + "ov_cimguiname": "ImFont_ClearOutputData", + "ret": "void", + "signature": "()", + "stname": "ImFont" + } + ], + "ImFont_FindGlyph": [ + { + "args": "(ImFont* self,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFont_FindGlyph", + "defaults": {}, + "funcname": "FindGlyph", + "location": "imgui:2987", + "ov_cimguiname": "ImFont_FindGlyph", + "ret": "const ImFontGlyph*", + "signature": "(ImWchar)const", + "stname": "ImFont" + } + ], + "ImFont_FindGlyphNoFallback": [ + { + "args": "(ImFont* self,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFont_FindGlyphNoFallback", + "defaults": {}, + "funcname": "FindGlyphNoFallback", + "location": "imgui:2988", + "ov_cimguiname": "ImFont_FindGlyphNoFallback", + "ret": "const ImFontGlyph*", + "signature": "(ImWchar)const", + "stname": "ImFont" + } + ], + "ImFont_GetCharAdvance": [ + { + "args": "(ImFont* self,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFont_GetCharAdvance", + "defaults": {}, + "funcname": "GetCharAdvance", + "location": "imgui:2989", + "ov_cimguiname": "ImFont_GetCharAdvance", + "ret": "float", + "signature": "(ImWchar)const", + "stname": "ImFont" + } + ], + "ImFont_GetDebugName": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_GetDebugName", + "defaults": {}, + "funcname": "GetDebugName", + "location": "imgui:2991", + "ov_cimguiname": "ImFont_GetDebugName", + "ret": "const char*", + "signature": "()const", + "stname": "ImFont" + } + ], + "ImFont_GrowIndex": [ + { + "args": "(ImFont* self,int new_size)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "new_size", + "type": "int" + } + ], + "argsoriginal": "(int new_size)", + "call_args": "(new_size)", + "cimguiname": "ImFont_GrowIndex", + "defaults": {}, + "funcname": "GrowIndex", + "location": "imgui:3003", + "ov_cimguiname": "ImFont_GrowIndex", + "ret": "void", + "signature": "(int)", + "stname": "ImFont" + } + ], + "ImFont_ImFont": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_ImFont", + "constructor": true, + "defaults": {}, + "funcname": "ImFont", + "location": "imgui:2985", + "ov_cimguiname": "ImFont_ImFont", + "signature": "()", + "stname": "ImFont" + } + ], + "ImFont_IsGlyphRangeUnused": [ + { + "args": "(ImFont* self,unsigned int c_begin,unsigned int c_last)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c_begin", + "type": "unsigned int" + }, + { + "name": "c_last", + "type": "unsigned int" + } + ], + "argsoriginal": "(unsigned int c_begin,unsigned int c_last)", + "call_args": "(c_begin,c_last)", + "cimguiname": "ImFont_IsGlyphRangeUnused", + "defaults": {}, + "funcname": "IsGlyphRangeUnused", + "location": "imgui:3007", + "ov_cimguiname": "ImFont_IsGlyphRangeUnused", + "ret": "bool", + "signature": "(unsigned int,unsigned int)", + "stname": "ImFont" + } + ], + "ImFont_IsLoaded": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_IsLoaded", + "defaults": {}, + "funcname": "IsLoaded", + "location": "imgui:2990", + "ov_cimguiname": "ImFont_IsLoaded", + "ret": "bool", + "signature": "()const", + "stname": "ImFont" + } + ], + "ImFont_RenderChar": [ + { + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "size", + "type": "float" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)", + "call_args": "(draw_list,size,pos,col,c)", + "cimguiname": "ImFont_RenderChar", + "defaults": {}, + "funcname": "RenderChar", + "location": "imgui:2997", + "ov_cimguiname": "ImFont_RenderChar", + "ret": "void", + "signature": "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const", + "stname": "ImFont" + } + ], + "ImFont_RenderText": [ + { + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "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" + }, + { + "name": "cpu_fine_clip", + "type": "bool" + } + ], + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)", + "call_args": "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)", + "cimguiname": "ImFont_RenderText", + "defaults": { + "cpu_fine_clip": "false", + "wrap_width": "0.0f" + }, + "funcname": "RenderText", + "location": "imgui:2998", + "ov_cimguiname": "ImFont_RenderText", + "ret": "void", + "signature": "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const", + "stname": "ImFont" + } + ], + "ImFont_SetGlyphVisible": [ + { + "args": "(ImFont* self,ImWchar c,bool visible)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" + }, + { + "name": "visible", + "type": "bool" + } + ], + "argsoriginal": "(ImWchar c,bool visible)", + "call_args": "(c,visible)", + "cimguiname": "ImFont_SetGlyphVisible", + "defaults": {}, + "funcname": "SetGlyphVisible", + "location": "imgui:3006", + "ov_cimguiname": "ImFont_SetGlyphVisible", + "ret": "void", + "signature": "(ImWchar,bool)", + "stname": "ImFont" + } + ], + "ImFont_destroy": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFont_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2986", + "ov_cimguiname": "ImFont_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImFont*)", + "stname": "ImFont" + } + ], + "ImGuiFreeType_GetBuilderForFreeType": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiFreeType_GetBuilderForFreeType", + "defaults": {}, + "funcname": "GetBuilderForFreeType", + "location": "imgui_freetype:39", + "namespace": "ImGuiFreeType", + "ov_cimguiname": "ImGuiFreeType_GetBuilderForFreeType", + "ret": "const ImFontBuilderIO*", + "signature": "()", + "stname": "" + } + ], + "ImGuiFreeType_SetAllocatorFunctions": [ + { + "args": "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data)", + "argsT": [ + { + "name": "alloc_func", + "ret": "void*", + "signature": "(size_t sz,void* user_data)", + "type": "void*(*)(size_t sz,void* user_data)" + }, + { + "name": "free_func", + "ret": "void", + "signature": "(void* ptr,void* user_data)", + "type": "void(*)(void* ptr,void* user_data)" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data=((void*)0))", + "call_args": "(alloc_func,free_func,user_data)", + "cimguiname": "ImGuiFreeType_SetAllocatorFunctions", + "defaults": { + "user_data": "NULL" + }, + "funcname": "SetAllocatorFunctions", + "location": "imgui_freetype:43", + "namespace": "ImGuiFreeType", + "ov_cimguiname": "ImGuiFreeType_SetAllocatorFunctions", + "ret": "void", + "signature": "(void*(*)(size_t,void*),void(*)(void*,void*),void*)", + "stname": "" + } + ], + "ImGuiIO_AddFocusEvent": [ + { + "args": "(ImGuiIO* self,bool focused)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "focused", + "type": "bool" + } + ], + "argsoriginal": "(bool focused)", + "call_args": "(focused)", + "cimguiname": "ImGuiIO_AddFocusEvent", + "defaults": {}, + "funcname": "AddFocusEvent", + "location": "imgui:2063", + "ov_cimguiname": "ImGuiIO_AddFocusEvent", + "ret": "void", + "signature": "(bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddInputCharacter": [ + { + "args": "(ImGuiIO* self,unsigned int c)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "c", + "type": "unsigned int" + } + ], + "argsoriginal": "(unsigned int c)", + "call_args": "(c)", + "cimguiname": "ImGuiIO_AddInputCharacter", + "defaults": {}, + "funcname": "AddInputCharacter", + "location": "imgui:2064", + "ov_cimguiname": "ImGuiIO_AddInputCharacter", + "ret": "void", + "signature": "(unsigned int)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddInputCharacterUTF16": [ + { + "args": "(ImGuiIO* self,ImWchar16 c)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "c", + "type": "ImWchar16" + } + ], + "argsoriginal": "(ImWchar16 c)", + "call_args": "(c)", + "cimguiname": "ImGuiIO_AddInputCharacterUTF16", + "defaults": {}, + "funcname": "AddInputCharacterUTF16", + "location": "imgui:2065", + "ov_cimguiname": "ImGuiIO_AddInputCharacterUTF16", + "ret": "void", + "signature": "(ImWchar16)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddInputCharactersUTF8": [ + { + "args": "(ImGuiIO* self,const char* str)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "str", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str)", + "call_args": "(str)", + "cimguiname": "ImGuiIO_AddInputCharactersUTF8", + "defaults": {}, + "funcname": "AddInputCharactersUTF8", + "location": "imgui:2066", + "ov_cimguiname": "ImGuiIO_AddInputCharactersUTF8", + "ret": "void", + "signature": "(const char*)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddKeyAnalogEvent": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,bool down,float v)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "down", + "type": "bool" + }, + { + "name": "v", + "type": "float" + } + ], + "argsoriginal": "(ImGuiKey key,bool down,float v)", + "call_args": "(key,down,v)", + "cimguiname": "ImGuiIO_AddKeyAnalogEvent", + "defaults": {}, + "funcname": "AddKeyAnalogEvent", + "location": "imgui:2058", + "ov_cimguiname": "ImGuiIO_AddKeyAnalogEvent", + "ret": "void", + "signature": "(ImGuiKey,bool,float)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddKeyEvent": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,bool down)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "down", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiKey key,bool down)", + "call_args": "(key,down)", + "cimguiname": "ImGuiIO_AddKeyEvent", + "defaults": {}, + "funcname": "AddKeyEvent", + "location": "imgui:2057", + "ov_cimguiname": "ImGuiIO_AddKeyEvent", + "ret": "void", + "signature": "(ImGuiKey,bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMouseButtonEvent": [ + { + "args": "(ImGuiIO* self,int button,bool down)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "button", + "type": "int" + }, + { + "name": "down", + "type": "bool" + } + ], + "argsoriginal": "(int button,bool down)", + "call_args": "(button,down)", + "cimguiname": "ImGuiIO_AddMouseButtonEvent", + "defaults": {}, + "funcname": "AddMouseButtonEvent", + "location": "imgui:2060", + "ov_cimguiname": "ImGuiIO_AddMouseButtonEvent", + "ret": "void", + "signature": "(int,bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMousePosEvent": [ + { + "args": "(ImGuiIO* self,float x,float y)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ], + "argsoriginal": "(float x,float y)", + "call_args": "(x,y)", + "cimguiname": "ImGuiIO_AddMousePosEvent", + "defaults": {}, + "funcname": "AddMousePosEvent", + "location": "imgui:2059", + "ov_cimguiname": "ImGuiIO_AddMousePosEvent", + "ret": "void", + "signature": "(float,float)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMouseViewportEvent": [ + { + "args": "(ImGuiIO* self,ImGuiID id)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "ImGuiIO_AddMouseViewportEvent", + "defaults": {}, + "funcname": "AddMouseViewportEvent", + "location": "imgui:2062", + "ov_cimguiname": "ImGuiIO_AddMouseViewportEvent", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMouseWheelEvent": [ + { + "args": "(ImGuiIO* self,float wh_x,float wh_y)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "wh_x", + "type": "float" + }, + { + "name": "wh_y", + "type": "float" + } + ], + "argsoriginal": "(float wh_x,float wh_y)", + "call_args": "(wh_x,wh_y)", + "cimguiname": "ImGuiIO_AddMouseWheelEvent", + "defaults": {}, + "funcname": "AddMouseWheelEvent", + "location": "imgui:2061", + "ov_cimguiname": "ImGuiIO_AddMouseWheelEvent", + "ret": "void", + "signature": "(float,float)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_ClearInputCharacters": [ + { + "args": "(ImGuiIO* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ClearInputCharacters", + "defaults": {}, + "funcname": "ClearInputCharacters", + "location": "imgui:2070", + "ov_cimguiname": "ImGuiIO_ClearInputCharacters", + "ret": "void", + "signature": "()", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_ClearInputKeys": [ + { + "args": "(ImGuiIO* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ClearInputKeys", + "defaults": {}, + "funcname": "ClearInputKeys", + "location": "imgui:2071", + "ov_cimguiname": "ImGuiIO_ClearInputKeys", + "ret": "void", + "signature": "()", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_ImGuiIO": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ImGuiIO", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiIO", + "location": "imgui:2146", + "ov_cimguiname": "ImGuiIO_ImGuiIO", + "signature": "()", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_SetAppAcceptingEvents": [ + { + "args": "(ImGuiIO* self,bool accepting_events)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "accepting_events", + "type": "bool" + } + ], + "argsoriginal": "(bool accepting_events)", + "call_args": "(accepting_events)", + "cimguiname": "ImGuiIO_SetAppAcceptingEvents", + "defaults": {}, + "funcname": "SetAppAcceptingEvents", + "location": "imgui:2069", + "ov_cimguiname": "ImGuiIO_SetAppAcceptingEvents", + "ret": "void", + "signature": "(bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_SetKeyEventNativeData": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "native_keycode", + "type": "int" + }, + { + "name": "native_scancode", + "type": "int" + }, + { + "name": "native_legacy_index", + "type": "int" + } + ], + "argsoriginal": "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)", + "call_args": "(key,native_keycode,native_scancode,native_legacy_index)", + "cimguiname": "ImGuiIO_SetKeyEventNativeData", + "defaults": { + "native_legacy_index": "-1" + }, + "funcname": "SetKeyEventNativeData", + "location": "imgui:2068", + "ov_cimguiname": "ImGuiIO_SetKeyEventNativeData", + "ret": "void", + "signature": "(ImGuiKey,int,int,int)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_destroy": [ + { + "args": "(ImGuiIO* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiIO_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiIO_destroy", + "ret": "void", + "signature": "(ImGuiIO*)", + "stname": "ImGuiIO" + } + ], + "ImGuiInputTextCallbackData_ClearSelection": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "defaults": {}, + "funcname": "ClearSelection", + "location": "imgui:2187", + "ov_cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "ret": "void", + "signature": "()", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_DeleteChars": [ + { + "args": "(ImGuiInputTextCallbackData* self,int pos,int bytes_count)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + }, + { + "name": "pos", + "type": "int" + }, + { + "name": "bytes_count", + "type": "int" + } + ], + "argsoriginal": "(int pos,int bytes_count)", + "call_args": "(pos,bytes_count)", + "cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "defaults": {}, + "funcname": "DeleteChars", + "location": "imgui:2184", + "ov_cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "ret": "void", + "signature": "(int,int)", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_HasSelection": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "defaults": {}, + "funcname": "HasSelection", + "location": "imgui:2188", + "ov_cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiInputTextCallbackData", + "location": "imgui:2183", + "ov_cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", + "signature": "()", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_InsertChars": [ + { + "args": "(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + }, + { + "name": "pos", + "type": "int" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(int pos,const char* text,const char* text_end=((void*)0))", + "call_args": "(pos,text,text_end)", + "cimguiname": "ImGuiInputTextCallbackData_InsertChars", + "defaults": { + "text_end": "NULL" + }, + "funcname": "InsertChars", + "location": "imgui:2185", + "ov_cimguiname": "ImGuiInputTextCallbackData_InsertChars", + "ret": "void", + "signature": "(int,const char*,const char*)", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_SelectAll": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_SelectAll", + "defaults": {}, + "funcname": "SelectAll", + "location": "imgui:2186", + "ov_cimguiname": "ImGuiInputTextCallbackData_SelectAll", + "ret": "void", + "signature": "()", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_destroy": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiInputTextCallbackData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiInputTextCallbackData_destroy", + "ret": "void", + "signature": "(ImGuiInputTextCallbackData*)", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiListClipper_Begin": [ + { + "args": "(ImGuiListClipper* self,int items_count,float items_height)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "items_height", + "type": "float" + } + ], + "argsoriginal": "(int items_count,float items_height=-1.0f)", + "call_args": "(items_count,items_height)", + "cimguiname": "ImGuiListClipper_Begin", + "defaults": { + "items_height": "-1.0f" + }, + "funcname": "Begin", + "location": "imgui:2420", + "ov_cimguiname": "ImGuiListClipper_Begin", + "ret": "void", + "signature": "(int,float)", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_End": [ + { + "args": "(ImGuiListClipper* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiListClipper_End", + "defaults": {}, + "funcname": "End", + "location": "imgui:2421", + "ov_cimguiname": "ImGuiListClipper_End", + "ret": "void", + "signature": "()", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_ForceDisplayRangeByIndices": [ + { + "args": "(ImGuiListClipper* self,int item_min,int item_max)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + }, + { + "name": "item_min", + "type": "int" + }, + { + "name": "item_max", + "type": "int" + } + ], + "argsoriginal": "(int item_min,int item_max)", + "call_args": "(item_min,item_max)", + "cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", + "defaults": {}, + "funcname": "ForceDisplayRangeByIndices", + "location": "imgui:2425", + "ov_cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", + "ret": "void", + "signature": "(int,int)", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_ImGuiListClipper": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiListClipper_ImGuiListClipper", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiListClipper", + "location": "imgui:2418", + "ov_cimguiname": "ImGuiListClipper_ImGuiListClipper", + "signature": "()", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_Step": [ + { + "args": "(ImGuiListClipper* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiListClipper_Step", + "defaults": {}, + "funcname": "Step", + "location": "imgui:2422", + "ov_cimguiname": "ImGuiListClipper_Step", + "ret": "bool", + "signature": "()", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_destroy": [ + { + "args": "(ImGuiListClipper* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiListClipper_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2419", + "ov_cimguiname": "ImGuiListClipper_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImGuiListClipper*)", + "stname": "ImGuiListClipper" + } + ], + "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiOnceUponAFrame", + "location": "imgui:2284", + "ov_cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", + "signature": "()", + "stname": "ImGuiOnceUponAFrame" + } + ], + "ImGuiOnceUponAFrame_destroy": [ + { + "args": "(ImGuiOnceUponAFrame* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiOnceUponAFrame*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiOnceUponAFrame_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiOnceUponAFrame_destroy", + "ret": "void", + "signature": "(ImGuiOnceUponAFrame*)", + "stname": "ImGuiOnceUponAFrame" + } + ], + "ImGuiPayload_Clear": [ + { + "args": "(ImGuiPayload* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2238", + "ov_cimguiname": "ImGuiPayload_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_ImGuiPayload": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_ImGuiPayload", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPayload", + "location": "imgui:2237", + "ov_cimguiname": "ImGuiPayload_ImGuiPayload", + "signature": "()", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_IsDataType": [ + { + "args": "(ImGuiPayload* self,const char* type)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + }, + { + "name": "type", + "type": "const char*" + } + ], + "argsoriginal": "(const char* type)", + "call_args": "(type)", + "cimguiname": "ImGuiPayload_IsDataType", + "defaults": {}, + "funcname": "IsDataType", + "location": "imgui:2239", + "ov_cimguiname": "ImGuiPayload_IsDataType", + "ret": "bool", + "signature": "(const char*)const", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_IsDelivery": [ + { + "args": "(ImGuiPayload* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_IsDelivery", + "defaults": {}, + "funcname": "IsDelivery", + "location": "imgui:2241", + "ov_cimguiname": "ImGuiPayload_IsDelivery", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_IsPreview": [ + { + "args": "(ImGuiPayload* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_IsPreview", + "defaults": {}, + "funcname": "IsPreview", + "location": "imgui:2240", + "ov_cimguiname": "ImGuiPayload_IsPreview", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_destroy": [ + { + "args": "(ImGuiPayload* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiPayload_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPayload_destroy", + "ret": "void", + "signature": "(ImGuiPayload*)", + "stname": "ImGuiPayload" + } + ], + "ImGuiPlatformIO_ImGuiPlatformIO": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPlatformIO_ImGuiPlatformIO", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPlatformIO", + "location": "imgui:3182", + "ov_cimguiname": "ImGuiPlatformIO_ImGuiPlatformIO", + "signature": "()", + "stname": "ImGuiPlatformIO" + } + ], + "ImGuiPlatformIO_destroy": [ + { + "args": "(ImGuiPlatformIO* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPlatformIO*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiPlatformIO_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPlatformIO_destroy", + "ret": "void", + "signature": "(ImGuiPlatformIO*)", + "stname": "ImGuiPlatformIO" + } + ], + "ImGuiPlatformImeData_ImGuiPlatformImeData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPlatformImeData", + "location": "imgui:3202", + "ov_cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "signature": "()", + "stname": "ImGuiPlatformImeData" + } + ], + "ImGuiPlatformImeData_destroy": [ + { + "args": "(ImGuiPlatformImeData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPlatformImeData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiPlatformImeData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPlatformImeData_destroy", + "ret": "void", + "signature": "(ImGuiPlatformImeData*)", + "stname": "ImGuiPlatformImeData" + } + ], + "ImGuiPlatformMonitor_ImGuiPlatformMonitor": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPlatformMonitor_ImGuiPlatformMonitor", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPlatformMonitor", + "location": "imgui:3192", + "ov_cimguiname": "ImGuiPlatformMonitor_ImGuiPlatformMonitor", + "signature": "()", + "stname": "ImGuiPlatformMonitor" + } + ], + "ImGuiPlatformMonitor_destroy": [ + { + "args": "(ImGuiPlatformMonitor* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPlatformMonitor*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiPlatformMonitor_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPlatformMonitor_destroy", + "ret": "void", + "signature": "(ImGuiPlatformMonitor*)", + "stname": "ImGuiPlatformMonitor" + } + ], + "ImGuiStoragePair_ImGuiStoragePair": [ + { + "args": "(ImGuiID _key,int _val_i)", + "argsT": [ + { + "name": "_key", + "type": "ImGuiID" + }, + { + "name": "_val_i", + "type": "int" + } + ], + "argsoriginal": "(ImGuiID _key,int _val_i)", + "call_args": "(_key,_val_i)", + "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStoragePair", + "location": "imgui:2351", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Int", + "signature": "(ImGuiID,int)", + "stname": "ImGuiStoragePair" + }, + { + "args": "(ImGuiID _key,float _val_f)", + "argsT": [ + { + "name": "_key", + "type": "ImGuiID" + }, + { + "name": "_val_f", + "type": "float" + } + ], + "argsoriginal": "(ImGuiID _key,float _val_f)", + "call_args": "(_key,_val_f)", + "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStoragePair", + "location": "imgui:2352", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Float", + "signature": "(ImGuiID,float)", + "stname": "ImGuiStoragePair" + }, + { + "args": "(ImGuiID _key,void* _val_p)", + "argsT": [ + { + "name": "_key", + "type": "ImGuiID" + }, + { + "name": "_val_p", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiID _key,void* _val_p)", + "call_args": "(_key,_val_p)", + "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStoragePair", + "location": "imgui:2353", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Ptr", + "signature": "(ImGuiID,void*)", + "stname": "ImGuiStoragePair" + } + ], + "ImGuiStoragePair_destroy": [ + { + "args": "(ImGuiStoragePair* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStoragePair*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiStoragePair_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiStoragePair_destroy", + "ret": "void", + "signature": "(ImGuiStoragePair*)", + "stname": "ImGuiStoragePair" + } + ], + "ImGuiStorage_BuildSortByKey": [ + { + "args": "(ImGuiStorage* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStorage_BuildSortByKey", + "defaults": {}, + "funcname": "BuildSortByKey", + "location": "imgui:2384", + "ov_cimguiname": "ImGuiStorage_BuildSortByKey", + "ret": "void", + "signature": "()", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_Clear": [ + { + "args": "(ImGuiStorage* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStorage_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2361", + "ov_cimguiname": "ImGuiStorage_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetBool": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,bool default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiID key,bool default_val=false)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetBool", + "defaults": { + "default_val": "false" + }, + "funcname": "GetBool", + "location": "imgui:2364", + "ov_cimguiname": "ImGuiStorage_GetBool", + "ret": "bool", + "signature": "(ImGuiID,bool)const", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetBoolRef": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,bool default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiID key,bool default_val=false)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetBoolRef", + "defaults": { + "default_val": "false" + }, + "funcname": "GetBoolRef", + "location": "imgui:2376", + "ov_cimguiname": "ImGuiStorage_GetBoolRef", + "ret": "bool*", + "signature": "(ImGuiID,bool)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetFloat": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,float default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "float" + } + ], + "argsoriginal": "(ImGuiID key,float default_val=0.0f)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetFloat", + "defaults": { + "default_val": "0.0f" + }, + "funcname": "GetFloat", + "location": "imgui:2366", + "ov_cimguiname": "ImGuiStorage_GetFloat", + "ret": "float", + "signature": "(ImGuiID,float)const", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetFloatRef": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,float default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "float" + } + ], + "argsoriginal": "(ImGuiID key,float default_val=0.0f)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetFloatRef", + "defaults": { + "default_val": "0.0f" + }, + "funcname": "GetFloatRef", + "location": "imgui:2377", + "ov_cimguiname": "ImGuiStorage_GetFloatRef", + "ret": "float*", + "signature": "(ImGuiID,float)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetInt": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,int default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "int" + } + ], + "argsoriginal": "(ImGuiID key,int default_val=0)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetInt", + "defaults": { + "default_val": "0" + }, + "funcname": "GetInt", + "location": "imgui:2362", + "ov_cimguiname": "ImGuiStorage_GetInt", + "ret": "int", + "signature": "(ImGuiID,int)const", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetIntRef": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,int default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "int" + } + ], + "argsoriginal": "(ImGuiID key,int default_val=0)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetIntRef", + "defaults": { + "default_val": "0" + }, + "funcname": "GetIntRef", + "location": "imgui:2375", + "ov_cimguiname": "ImGuiStorage_GetIntRef", + "ret": "int*", + "signature": "(ImGuiID,int)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetVoidPtr": [ + { + "args": "(ImGuiStorage* self,ImGuiID key)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID key)", + "call_args": "(key)", + "cimguiname": "ImGuiStorage_GetVoidPtr", + "defaults": {}, + "funcname": "GetVoidPtr", + "location": "imgui:2368", + "ov_cimguiname": "ImGuiStorage_GetVoidPtr", + "ret": "void*", + "signature": "(ImGuiID)const", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetVoidPtrRef": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,void* default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiID key,void* default_val=((void*)0))", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetVoidPtrRef", + "defaults": { + "default_val": "NULL" + }, + "funcname": "GetVoidPtrRef", + "location": "imgui:2378", + "ov_cimguiname": "ImGuiStorage_GetVoidPtrRef", + "ret": "void**", + "signature": "(ImGuiID,void*)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetAllInt": [ + { + "args": "(ImGuiStorage* self,int val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "val", + "type": "int" + } + ], + "argsoriginal": "(int val)", + "call_args": "(val)", + "cimguiname": "ImGuiStorage_SetAllInt", + "defaults": {}, + "funcname": "SetAllInt", + "location": "imgui:2381", + "ov_cimguiname": "ImGuiStorage_SetAllInt", + "ret": "void", + "signature": "(int)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetBool": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,bool val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiID key,bool val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetBool", + "defaults": {}, + "funcname": "SetBool", + "location": "imgui:2365", + "ov_cimguiname": "ImGuiStorage_SetBool", + "ret": "void", + "signature": "(ImGuiID,bool)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetFloat": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,float val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "float" + } + ], + "argsoriginal": "(ImGuiID key,float val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetFloat", + "defaults": {}, + "funcname": "SetFloat", + "location": "imgui:2367", + "ov_cimguiname": "ImGuiStorage_SetFloat", + "ret": "void", + "signature": "(ImGuiID,float)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetInt": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,int val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "int" + } + ], + "argsoriginal": "(ImGuiID key,int val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetInt", + "defaults": {}, + "funcname": "SetInt", + "location": "imgui:2363", + "ov_cimguiname": "ImGuiStorage_SetInt", + "ret": "void", + "signature": "(ImGuiID,int)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetVoidPtr": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,void* val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiID key,void* val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetVoidPtr", + "defaults": {}, + "funcname": "SetVoidPtr", + "location": "imgui:2369", + "ov_cimguiname": "ImGuiStorage_SetVoidPtr", + "ret": "void", + "signature": "(ImGuiID,void*)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStyle_ImGuiStyle": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStyle_ImGuiStyle", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStyle", + "location": "imgui:1953", + "ov_cimguiname": "ImGuiStyle_ImGuiStyle", + "signature": "()", + "stname": "ImGuiStyle" + } + ], + "ImGuiStyle_ScaleAllSizes": [ + { + "args": "(ImGuiStyle* self,float scale_factor)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStyle*" + }, + { + "name": "scale_factor", + "type": "float" + } + ], + "argsoriginal": "(float scale_factor)", + "call_args": "(scale_factor)", + "cimguiname": "ImGuiStyle_ScaleAllSizes", + "defaults": {}, + "funcname": "ScaleAllSizes", + "location": "imgui:1954", + "ov_cimguiname": "ImGuiStyle_ScaleAllSizes", + "ret": "void", + "signature": "(float)", + "stname": "ImGuiStyle" + } + ], + "ImGuiStyle_destroy": [ + { + "args": "(ImGuiStyle* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStyle*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiStyle_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiStyle_destroy", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "ImGuiStyle" + } + ], + "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTableColumnSortSpecs", + "location": "imgui:2252", + "ov_cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", + "signature": "()", + "stname": "ImGuiTableColumnSortSpecs" + } + ], + "ImGuiTableColumnSortSpecs_destroy": [ + { + "args": "(ImGuiTableColumnSortSpecs* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTableColumnSortSpecs*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTableColumnSortSpecs_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableColumnSortSpecs_destroy", + "ret": "void", + "signature": "(ImGuiTableColumnSortSpecs*)", + "stname": "ImGuiTableColumnSortSpecs" + } + ], + "ImGuiTableSortSpecs_ImGuiTableSortSpecs": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTableSortSpecs", + "location": "imgui:2265", + "ov_cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", + "signature": "()", + "stname": "ImGuiTableSortSpecs" + } + ], + "ImGuiTableSortSpecs_destroy": [ + { + "args": "(ImGuiTableSortSpecs* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTableSortSpecs*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTableSortSpecs_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableSortSpecs_destroy", + "ret": "void", + "signature": "(ImGuiTableSortSpecs*)", + "stname": "ImGuiTableSortSpecs" + } + ], + "ImGuiTextBuffer_ImGuiTextBuffer": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTextBuffer", + "location": "imgui:2322", + "ov_cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", + "signature": "()", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_append": [ + { + "args": "(ImGuiTextBuffer* self,const char* str,const char* str_end)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + }, + { + "name": "str", + "type": "const char*" + }, + { + "name": "str_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str,const char* str_end=((void*)0))", + "call_args": "(str,str_end)", + "cimguiname": "ImGuiTextBuffer_append", + "defaults": { + "str_end": "NULL" + }, + "funcname": "append", + "location": "imgui:2331", + "ov_cimguiname": "ImGuiTextBuffer_append", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_appendf": [ + { + "args": "(ImGuiTextBuffer* self,const char* fmt,...)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "ImGuiTextBuffer_appendf", + "defaults": {}, + "funcname": "appendf", + "isvararg": "...)", + "location": "imgui:2332", + "manual": true, + "ov_cimguiname": "ImGuiTextBuffer_appendf", + "ret": "void", + "signature": "(const char*,...)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_appendfv": [ + { + "args": "(ImGuiTextBuffer* self,const char* fmt,va_list args)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "ImGuiTextBuffer_appendfv", + "defaults": {}, + "funcname": "appendfv", + "location": "imgui:2333", + "ov_cimguiname": "ImGuiTextBuffer_appendfv", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_begin": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui:2324", + "ov_cimguiname": "ImGuiTextBuffer_begin", + "ret": "const char*", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_c_str": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_c_str", + "defaults": {}, + "funcname": "c_str", + "location": "imgui:2330", + "ov_cimguiname": "ImGuiTextBuffer_c_str", + "ret": "const char*", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_clear": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_clear", + "defaults": {}, + "funcname": "clear", + "location": "imgui:2328", + "ov_cimguiname": "ImGuiTextBuffer_clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_destroy": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTextBuffer_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTextBuffer_destroy", + "ret": "void", + "signature": "(ImGuiTextBuffer*)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_empty": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_empty", + "defaults": {}, + "funcname": "empty", + "location": "imgui:2327", + "ov_cimguiname": "ImGuiTextBuffer_empty", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_end": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_end", + "defaults": {}, + "funcname": "end", + "location": "imgui:2325", + "ov_cimguiname": "ImGuiTextBuffer_end", + "ret": "const char*", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_reserve": [ + { + "args": "(ImGuiTextBuffer* self,int capacity)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + }, + { + "name": "capacity", + "type": "int" + } + ], + "argsoriginal": "(int capacity)", + "call_args": "(capacity)", + "cimguiname": "ImGuiTextBuffer_reserve", + "defaults": {}, + "funcname": "reserve", + "location": "imgui:2329", + "ov_cimguiname": "ImGuiTextBuffer_reserve", + "ret": "void", + "signature": "(int)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_size": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_size", + "defaults": {}, + "funcname": "size", + "location": "imgui:2326", + "ov_cimguiname": "ImGuiTextBuffer_size", + "ret": "int", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextFilter_Build": [ + { + "args": "(ImGuiTextFilter* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextFilter_Build", + "defaults": {}, + "funcname": "Build", + "location": "imgui:2295", + "ov_cimguiname": "ImGuiTextFilter_Build", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_Clear": [ + { + "args": "(ImGuiTextFilter* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextFilter_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2296", + "ov_cimguiname": "ImGuiTextFilter_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_Draw": [ + { + "args": "(ImGuiTextFilter* self,const char* label,float width)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + }, + { + "name": "label", + "type": "const char*" + }, + { + "name": "width", + "type": "float" + } + ], + "argsoriginal": "(const char* label=\"Filter(inc,-exc)\",float width=0.0f)", + "call_args": "(label,width)", + "cimguiname": "ImGuiTextFilter_Draw", + "defaults": { + "label": "\"Filter(inc,-exc)\"", + "width": "0.0f" + }, + "funcname": "Draw", + "location": "imgui:2293", + "ov_cimguiname": "ImGuiTextFilter_Draw", + "ret": "bool", + "signature": "(const char*,float)", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_ImGuiTextFilter": [ + { + "args": "(const char* default_filter)", + "argsT": [ + { + "name": "default_filter", + "type": "const char*" + } + ], + "argsoriginal": "(const char* default_filter=\"\")", + "call_args": "(default_filter)", + "cimguiname": "ImGuiTextFilter_ImGuiTextFilter", + "constructor": true, + "defaults": { + "default_filter": "\"\"" + }, + "funcname": "ImGuiTextFilter", + "location": "imgui:2292", + "ov_cimguiname": "ImGuiTextFilter_ImGuiTextFilter", + "signature": "(const char*)", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_IsActive": [ + { + "args": "(ImGuiTextFilter* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextFilter_IsActive", + "defaults": {}, + "funcname": "IsActive", + "location": "imgui:2297", + "ov_cimguiname": "ImGuiTextFilter_IsActive", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_PassFilter": [ + { + "args": "(ImGuiTextFilter* self,const char* text,const char* text_end)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0))", + "call_args": "(text,text_end)", + "cimguiname": "ImGuiTextFilter_PassFilter", + "defaults": { + "text_end": "NULL" + }, + "funcname": "PassFilter", + "location": "imgui:2294", + "ov_cimguiname": "ImGuiTextFilter_PassFilter", + "ret": "bool", + "signature": "(const char*,const char*)const", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_destroy": [ + { + "args": "(ImGuiTextFilter* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTextFilter_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTextFilter_destroy", + "ret": "void", + "signature": "(ImGuiTextFilter*)", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextRange_ImGuiTextRange": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextRange_ImGuiTextRange", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTextRange", + "location": "imgui:2305", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Nil", + "signature": "()", + "stname": "ImGuiTextRange" + }, + { + "args": "(const char* _b,const char* _e)", + "argsT": [ + { + "name": "_b", + "type": "const char*" + }, + { + "name": "_e", + "type": "const char*" + } + ], + "argsoriginal": "(const char* _b,const char* _e)", + "call_args": "(_b,_e)", + "cimguiname": "ImGuiTextRange_ImGuiTextRange", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTextRange", + "location": "imgui:2306", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Str", + "signature": "(const char*,const char*)", + "stname": "ImGuiTextRange" + } + ], + "ImGuiTextRange_destroy": [ + { + "args": "(ImGuiTextRange* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextRange*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTextRange_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTextRange_destroy", + "ret": "void", + "signature": "(ImGuiTextRange*)", + "stname": "ImGuiTextRange" + } + ], + "ImGuiTextRange_empty": [ + { + "args": "(ImGuiTextRange* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextRange*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextRange_empty", + "defaults": {}, + "funcname": "empty", + "location": "imgui:2307", + "ov_cimguiname": "ImGuiTextRange_empty", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiTextRange" + } + ], + "ImGuiTextRange_split": [ + { + "args": "(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextRange*" + }, + { + "name": "separator", + "type": "char" + }, + { + "name": "out", + "type": "ImVector_ImGuiTextRange*" + } + ], + "argsoriginal": "(char separator,ImVector* out)", + "call_args": "(separator,out)", + "cimguiname": "ImGuiTextRange_split", + "defaults": {}, + "funcname": "split", + "location": "imgui:2308", + "ov_cimguiname": "ImGuiTextRange_split", + "ret": "void", + "signature": "(char,ImVector_ImGuiTextRange*)const", + "stname": "ImGuiTextRange" + } + ], + "ImGuiViewport_GetCenter": [ + { + "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImGuiViewport*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewport_GetCenter", + "defaults": {}, + "funcname": "GetCenter", + "location": "imgui:3070", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewport_GetCenter", + "ret": "void", + "signature": "()const", + "stname": "ImGuiViewport" + } + ], + "ImGuiViewport_GetWorkCenter": [ + { + "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImGuiViewport*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewport_GetWorkCenter", + "defaults": {}, + "funcname": "GetWorkCenter", + "location": "imgui:3071", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewport_GetWorkCenter", + "ret": "void", + "signature": "()const", + "stname": "ImGuiViewport" + } + ], + "ImGuiViewport_ImGuiViewport": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewport_ImGuiViewport", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiViewport", + "location": "imgui:3066", + "ov_cimguiname": "ImGuiViewport_ImGuiViewport", + "signature": "()", + "stname": "ImGuiViewport" + } + ], + "ImGuiViewport_destroy": [ + { + "args": "(ImGuiViewport* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiViewport*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiViewport_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:3067", + "ov_cimguiname": "ImGuiViewport_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImGuiViewport*)", + "stname": "ImGuiViewport" + } + ], + "ImGuiWindowClass_ImGuiWindowClass": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiWindowClass_ImGuiWindowClass", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiWindowClass", + "location": "imgui:2219", + "ov_cimguiname": "ImGuiWindowClass_ImGuiWindowClass", + "signature": "()", + "stname": "ImGuiWindowClass" + } + ], + "ImGuiWindowClass_destroy": [ + { + "args": "(ImGuiWindowClass* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindowClass*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiWindowClass_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiWindowClass_destroy", + "ret": "void", + "signature": "(ImGuiWindowClass*)", + "stname": "ImGuiWindowClass" + } + ], + "ImVec2_ImVec2": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVec2_ImVec2", + "constructor": true, + "defaults": {}, + "funcname": "ImVec2", + "location": "imgui:262", + "ov_cimguiname": "ImVec2_ImVec2_Nil", + "signature": "()", + "stname": "ImVec2" + }, + { + "args": "(float _x,float _y)", + "argsT": [ + { + "name": "_x", + "type": "float" + }, + { + "name": "_y", + "type": "float" + } + ], + "argsoriginal": "(float _x,float _y)", + "call_args": "(_x,_y)", + "cimguiname": "ImVec2_ImVec2", + "constructor": true, + "defaults": {}, + "funcname": "ImVec2", + "location": "imgui:263", + "ov_cimguiname": "ImVec2_ImVec2_Float", + "signature": "(float,float)", + "stname": "ImVec2" + } + ], + "ImVec2_destroy": [ + { + "args": "(ImVec2* self)", + "argsT": [ + { + "name": "self", + "type": "ImVec2*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVec2_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImVec2_destroy", + "ret": "void", + "signature": "(ImVec2*)", + "stname": "ImVec2" + } + ], + "ImVec4_ImVec4": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVec4_ImVec4", + "constructor": true, + "defaults": {}, + "funcname": "ImVec4", + "location": "imgui:275", + "ov_cimguiname": "ImVec4_ImVec4_Nil", + "signature": "()", + "stname": "ImVec4" + }, + { + "args": "(float _x,float _y,float _z,float _w)", + "argsT": [ + { + "name": "_x", + "type": "float" + }, + { + "name": "_y", + "type": "float" + }, + { + "name": "_z", + "type": "float" + }, + { + "name": "_w", + "type": "float" + } + ], + "argsoriginal": "(float _x,float _y,float _z,float _w)", + "call_args": "(_x,_y,_z,_w)", + "cimguiname": "ImVec4_ImVec4", + "constructor": true, + "defaults": {}, + "funcname": "ImVec4", + "location": "imgui:276", + "ov_cimguiname": "ImVec4_ImVec4_Float", + "signature": "(float,float,float,float)", + "stname": "ImVec4" + } + ], + "ImVec4_destroy": [ + { + "args": "(ImVec4* self)", + "argsT": [ + { + "name": "self", + "type": "ImVec4*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVec4_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImVec4_destroy", + "ret": "void", + "signature": "(ImVec4*)", + "stname": "ImVec4" + } + ], + "ImVector_ImVector": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_ImVector", + "constructor": true, + "defaults": {}, + "funcname": "ImVector", + "location": "imgui:1850", + "ov_cimguiname": "ImVector_ImVector_Nil", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(const ImVector_T src)", + "argsT": [ + { + "name": "src", + "type": "const ImVector_T " + } + ], + "argsoriginal": "(const ImVector& src)", + "call_args": "(src)", + "cimguiname": "ImVector_ImVector", + "constructor": true, + "defaults": {}, + "funcname": "ImVector", + "location": "imgui:1851", + "ov_cimguiname": "ImVector_ImVector_Vector_T_", + "signature": "(const ImVector_T )", + "stname": "ImVector", + "templated": true + } + ], + "ImVector__grow_capacity": [ + { + "args": "(ImVector* self,int sz)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "sz", + "type": "int" + } + ], + "argsoriginal": "(int sz)", + "call_args": "(sz)", + "cimguiname": "ImVector__grow_capacity", + "defaults": {}, + "funcname": "_grow_capacity", + "location": "imgui:1877", + "ov_cimguiname": "ImVector__grow_capacity", + "ret": "int", + "signature": "(int)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_back": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_back", + "defaults": {}, + "funcname": "back", + "location": "imgui:1873", + "ov_cimguiname": "ImVector_back_Nil", + "ret": "T*", + "retref": "&", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_back", + "defaults": {}, + "funcname": "back", + "location": "imgui:1874", + "ov_cimguiname": "ImVector_back__const", + "ret": "const T*", + "retref": "&", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_begin": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui:1867", + "ov_cimguiname": "ImVector_begin_Nil", + "ret": "T*", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui:1868", + "ov_cimguiname": "ImVector_begin__const", + "ret": "const T*", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_capacity": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_capacity", + "defaults": {}, + "funcname": "capacity", + "location": "imgui:1863", + "ov_cimguiname": "ImVector_capacity", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_clear": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_clear", + "defaults": {}, + "funcname": "clear", + "location": "imgui:1855", + "ov_cimguiname": "ImVector_clear", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_clear_delete": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_clear_delete", + "defaults": {}, + "funcname": "clear_delete", + "location": "imgui:1856", + "ov_cimguiname": "ImVector_clear_delete", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_clear_destruct": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_clear_destruct", + "defaults": {}, + "funcname": "clear_destruct", + "location": "imgui:1857", + "ov_cimguiname": "ImVector_clear_destruct", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_contains": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_contains", + "defaults": {}, + "funcname": "contains", + "location": "imgui:1892", + "ov_cimguiname": "ImVector_contains", + "ret": "bool", + "signature": "(const T)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_destroy": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVector_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:1853", + "ov_cimguiname": "ImVector_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImVector*)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_empty": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_empty", + "defaults": {}, + "funcname": "empty", + "location": "imgui:1859", + "ov_cimguiname": "ImVector_empty", + "ret": "bool", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_end": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_end", + "defaults": {}, + "funcname": "end", + "location": "imgui:1869", + "ov_cimguiname": "ImVector_end_Nil", + "ret": "T*", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_end", + "defaults": {}, + "funcname": "end", + "location": "imgui:1870", + "ov_cimguiname": "ImVector_end__const", + "ret": "const T*", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_erase": [ + { + "args": "(ImVector* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImVector_erase", + "defaults": {}, + "funcname": "erase", + "location": "imgui:1888", + "ov_cimguiname": "ImVector_erase_Nil", + "ret": "T*", + "signature": "(const T*)", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self,const T* it,const T* it_last)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + }, + { + "name": "it_last", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it,const T* it_last)", + "call_args": "(it,it_last)", + "cimguiname": "ImVector_erase", + "defaults": {}, + "funcname": "erase", + "location": "imgui:1889", + "ov_cimguiname": "ImVector_erase_TPtr", + "ret": "T*", + "signature": "(const T*,const T*)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_erase_unsorted": [ + { + "args": "(ImVector* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImVector_erase_unsorted", + "defaults": {}, + "funcname": "erase_unsorted", + "location": "imgui:1890", + "ov_cimguiname": "ImVector_erase_unsorted", + "ret": "T*", + "signature": "(const T*)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_find": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find", + "defaults": {}, + "funcname": "find", + "location": "imgui:1893", + "ov_cimguiname": "ImVector_find_Nil", + "ret": "T*", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find", + "defaults": {}, + "funcname": "find", + "location": "imgui:1894", + "ov_cimguiname": "ImVector_find__const", + "ret": "const T*", + "signature": "(const T)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_find_erase": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find_erase", + "defaults": {}, + "funcname": "find_erase", + "location": "imgui:1895", + "ov_cimguiname": "ImVector_find_erase", + "ret": "bool", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_find_erase_unsorted": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find_erase_unsorted", + "defaults": {}, + "funcname": "find_erase_unsorted", + "location": "imgui:1896", + "ov_cimguiname": "ImVector_find_erase_unsorted", + "ret": "bool", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_front": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_front", + "defaults": {}, + "funcname": "front", + "location": "imgui:1871", + "ov_cimguiname": "ImVector_front_Nil", + "ret": "T*", + "retref": "&", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_front", + "defaults": {}, + "funcname": "front", + "location": "imgui:1872", + "ov_cimguiname": "ImVector_front__const", + "ret": "const T*", + "retref": "&", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_index_from_ptr": [ + { + "args": "(ImVector* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImVector_index_from_ptr", + "defaults": {}, + "funcname": "index_from_ptr", + "location": "imgui:1897", + "ov_cimguiname": "ImVector_index_from_ptr", + "ret": "int", + "signature": "(const T*)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_insert": [ + { + "args": "(ImVector* self,const T* it,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T* it,const T& v)", + "call_args": "(it,v)", + "cimguiname": "ImVector_insert", + "defaults": {}, + "funcname": "insert", + "location": "imgui:1891", + "ov_cimguiname": "ImVector_insert", + "ret": "T*", + "signature": "(const T*,const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_max_size": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_max_size", + "defaults": {}, + "funcname": "max_size", + "location": "imgui:1862", + "ov_cimguiname": "ImVector_max_size", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_pop_back": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_pop_back", + "defaults": {}, + "funcname": "pop_back", + "location": "imgui:1886", + "ov_cimguiname": "ImVector_pop_back", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_push_back": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_push_back", + "defaults": {}, + "funcname": "push_back", + "location": "imgui:1885", + "ov_cimguiname": "ImVector_push_back", + "ret": "void", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_push_front": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_push_front", + "defaults": {}, + "funcname": "push_front", + "location": "imgui:1887", + "ov_cimguiname": "ImVector_push_front", + "ret": "void", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_reserve": [ + { + "args": "(ImVector* self,int new_capacity)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_capacity", + "type": "int" + } + ], + "argsoriginal": "(int new_capacity)", + "call_args": "(new_capacity)", + "cimguiname": "ImVector_reserve", + "defaults": {}, + "funcname": "reserve", + "location": "imgui:1881", + "ov_cimguiname": "ImVector_reserve", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_reserve_discard": [ + { + "args": "(ImVector* self,int new_capacity)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_capacity", + "type": "int" + } + ], + "argsoriginal": "(int new_capacity)", + "call_args": "(new_capacity)", + "cimguiname": "ImVector_reserve_discard", + "defaults": {}, + "funcname": "reserve_discard", + "location": "imgui:1882", + "ov_cimguiname": "ImVector_reserve_discard", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_resize": [ + { + "args": "(ImVector* self,int new_size)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_size", + "type": "int" + } + ], + "argsoriginal": "(int new_size)", + "call_args": "(new_size)", + "cimguiname": "ImVector_resize", + "defaults": {}, + "funcname": "resize", + "location": "imgui:1878", + "ov_cimguiname": "ImVector_resize_Nil", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self,int new_size,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_size", + "type": "int" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(int new_size,const T& v)", + "call_args": "(new_size,v)", + "cimguiname": "ImVector_resize", + "defaults": {}, + "funcname": "resize", + "location": "imgui:1879", + "ov_cimguiname": "ImVector_resize_T", + "ret": "void", + "signature": "(int,const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_shrink": [ + { + "args": "(ImVector* self,int new_size)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_size", + "type": "int" + } + ], + "argsoriginal": "(int new_size)", + "call_args": "(new_size)", + "cimguiname": "ImVector_shrink", + "defaults": {}, + "funcname": "shrink", + "location": "imgui:1880", + "ov_cimguiname": "ImVector_shrink", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_size": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_size", + "defaults": {}, + "funcname": "size", + "location": "imgui:1860", + "ov_cimguiname": "ImVector_size", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_size_in_bytes": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_size_in_bytes", + "defaults": {}, + "funcname": "size_in_bytes", + "location": "imgui:1861", + "ov_cimguiname": "ImVector_size_in_bytes", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_swap": [ + { + "args": "(ImVector* self,ImVector_T * rhs)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "rhs", + "reftoptr": true, + "type": "ImVector_T *" + } + ], + "argsoriginal": "(ImVector& rhs)", + "call_args": "(*rhs)", + "cimguiname": "ImVector_swap", + "defaults": {}, + "funcname": "swap", + "location": "imgui:1875", + "ov_cimguiname": "ImVector_swap", + "ret": "void", + "signature": "(ImVector_T *)", + "stname": "ImVector", + "templated": true + } + ], + "igAcceptDragDropPayload": [ + { + "args": "(const char* type,ImGuiDragDropFlags flags)", + "argsT": [ + { + "name": "type", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiDragDropFlags" + } + ], + "argsoriginal": "(const char* type,ImGuiDragDropFlags flags=0)", + "call_args": "(type,flags)", + "cimguiname": "igAcceptDragDropPayload", + "defaults": { + "flags": "0" + }, + "funcname": "AcceptDragDropPayload", + "location": "imgui:841", + "namespace": "ImGui", + "ov_cimguiname": "igAcceptDragDropPayload", + "ret": "const ImGuiPayload*", + "signature": "(const char*,ImGuiDragDropFlags)", + "stname": "" + } + ], + "igAlignTextToFramePadding": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igAlignTextToFramePadding", + "defaults": {}, + "funcname": "AlignTextToFramePadding", + "location": "imgui:465", + "namespace": "ImGui", + "ov_cimguiname": "igAlignTextToFramePadding", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igArrowButton": [ + { + "args": "(const char* str_id,ImGuiDir dir)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "dir", + "type": "ImGuiDir" + } + ], + "argsoriginal": "(const char* str_id,ImGuiDir dir)", + "call_args": "(str_id,dir)", + "cimguiname": "igArrowButton", + "defaults": {}, + "funcname": "ArrowButton", + "location": "imgui:512", + "namespace": "ImGui", + "ov_cimguiname": "igArrowButton", + "ret": "bool", + "signature": "(const char*,ImGuiDir)", + "stname": "" + } + ], + "igBegin": [ + { + "args": "(const char* name,bool* p_open,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)", + "call_args": "(name,p_open,flags)", + "cimguiname": "igBegin", + "defaults": { + "flags": "0", + "p_open": "NULL" + }, + "funcname": "Begin", + "location": "imgui:336", + "namespace": "ImGui", + "ov_cimguiname": "igBegin", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginChild": [ + { + "args": "(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "border", + "type": "bool" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* str_id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", + "call_args": "(str_id,size,border,flags)", + "cimguiname": "igBeginChild", + "defaults": { + "border": "false", + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "BeginChild", + "location": "imgui:347", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChild_Str", + "ret": "bool", + "signature": "(const char*,const ImVec2,bool,ImGuiWindowFlags)", + "stname": "" + }, + { + "args": "(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "border", + "type": "bool" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", + "call_args": "(id,size,border,flags)", + "cimguiname": "igBeginChild", + "defaults": { + "border": "false", + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "BeginChild", + "location": "imgui:348", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChild_ID", + "ret": "bool", + "signature": "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginChildFrame": [ + { + "args": "(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& size,ImGuiWindowFlags flags=0)", + "call_args": "(id,size,flags)", + "cimguiname": "igBeginChildFrame", + "defaults": { + "flags": "0" + }, + "funcname": "BeginChildFrame", + "location": "imgui:904", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChildFrame", + "ret": "bool", + "signature": "(ImGuiID,const ImVec2,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginCombo": [ + { + "args": "(const char* label,const char* preview_value,ImGuiComboFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "preview_value", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiComboFlags" + } + ], + "argsoriginal": "(const char* label,const char* preview_value,ImGuiComboFlags flags=0)", + "call_args": "(label,preview_value,flags)", + "cimguiname": "igBeginCombo", + "defaults": { + "flags": "0" + }, + "funcname": "BeginCombo", + "location": "imgui:529", + "namespace": "ImGui", + "ov_cimguiname": "igBeginCombo", + "ret": "bool", + "signature": "(const char*,const char*,ImGuiComboFlags)", + "stname": "" + } + ], + "igBeginDisabled": [ + { + "args": "(bool disabled)", + "argsT": [ + { + "name": "disabled", + "type": "bool" + } + ], + "argsoriginal": "(bool disabled=true)", + "call_args": "(disabled)", + "cimguiname": "igBeginDisabled", + "defaults": { + "disabled": "true" + }, + "funcname": "BeginDisabled", + "location": "imgui:849", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDisabled", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igBeginDragDropSource": [ + { + "args": "(ImGuiDragDropFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiDragDropFlags" + } + ], + "argsoriginal": "(ImGuiDragDropFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igBeginDragDropSource", + "defaults": { + "flags": "0" + }, + "funcname": "BeginDragDropSource", + "location": "imgui:837", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDragDropSource", + "ret": "bool", + "signature": "(ImGuiDragDropFlags)", + "stname": "" + } + ], + "igBeginDragDropTarget": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginDragDropTarget", + "defaults": {}, + "funcname": "BeginDragDropTarget", + "location": "imgui:840", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDragDropTarget", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginGroup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginGroup", + "defaults": {}, + "funcname": "BeginGroup", + "location": "imgui:454", + "namespace": "ImGui", + "ov_cimguiname": "igBeginGroup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igBeginListBox": [ + { + "args": "(const char* label,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,size)", + "cimguiname": "igBeginListBox", + "defaults": { + "size": "ImVec2(0,0)" + }, + "funcname": "BeginListBox", + "location": "imgui:641", + "namespace": "ImGui", + "ov_cimguiname": "igBeginListBox", + "ret": "bool", + "signature": "(const char*,const ImVec2)", + "stname": "" + } + ], + "igBeginMainMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginMainMenuBar", + "defaults": {}, + "funcname": "BeginMainMenuBar", + "location": "imgui:667", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMainMenuBar", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginMenu": [ + { + "args": "(const char* label,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,bool enabled=true)", + "call_args": "(label,enabled)", + "cimguiname": "igBeginMenu", + "defaults": { + "enabled": "true" + }, + "funcname": "BeginMenu", + "location": "imgui:669", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMenu", + "ret": "bool", + "signature": "(const char*,bool)", + "stname": "" + } + ], + "igBeginMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginMenuBar", + "defaults": {}, + "funcname": "BeginMenuBar", + "location": "imgui:665", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMenuBar", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginPopup": [ + { + "args": "(const char* str_id,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiWindowFlags flags=0)", + "call_args": "(str_id,flags)", + "cimguiname": "igBeginPopup", + "defaults": { + "flags": "0" + }, + "funcname": "BeginPopup", + "location": "imgui:693", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopup", + "ret": "bool", + "signature": "(const char*,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginPopupContextItem": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igBeginPopupContextItem", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "BeginPopupContextItem", + "location": "imgui:715", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupContextItem", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igBeginPopupContextVoid": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igBeginPopupContextVoid", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "BeginPopupContextVoid", + "location": "imgui:717", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupContextVoid", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igBeginPopupContextWindow": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igBeginPopupContextWindow", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "BeginPopupContextWindow", + "location": "imgui:716", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupContextWindow", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igBeginPopupModal": [ + { + "args": "(const char* name,bool* p_open,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)", + "call_args": "(name,p_open,flags)", + "cimguiname": "igBeginPopupModal", + "defaults": { + "flags": "0", + "p_open": "NULL" + }, + "funcname": "BeginPopupModal", + "location": "imgui:694", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupModal", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginTabBar": [ + { + "args": "(const char* str_id,ImGuiTabBarFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTabBarFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiTabBarFlags flags=0)", + "call_args": "(str_id,flags)", + "cimguiname": "igBeginTabBar", + "defaults": { + "flags": "0" + }, + "funcname": "BeginTabBar", + "location": "imgui:795", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTabBar", + "ret": "bool", + "signature": "(const char*,ImGuiTabBarFlags)", + "stname": "" + } + ], + "igBeginTabItem": [ + { + "args": "(const char* label,bool* p_open,ImGuiTabItemFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiTabItemFlags" + } + ], + "argsoriginal": "(const char* label,bool* p_open=((void*)0),ImGuiTabItemFlags flags=0)", + "call_args": "(label,p_open,flags)", + "cimguiname": "igBeginTabItem", + "defaults": { + "flags": "0", + "p_open": "NULL" + }, + "funcname": "BeginTabItem", + "location": "imgui:797", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTabItem", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiTabItemFlags)", + "stname": "" + } + ], + "igBeginTable": [ + { + "args": "(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "column", + "type": "int" + }, + { + "name": "flags", + "type": "ImGuiTableFlags" + }, + { + "name": "outer_size", + "type": "const ImVec2" + }, + { + "name": "inner_width", + "type": "float" + } + ], + "argsoriginal": "(const char* str_id,int column,ImGuiTableFlags flags=0,const ImVec2& outer_size=ImVec2(0.0f,0.0f),float inner_width=0.0f)", + "call_args": "(str_id,column,flags,outer_size,inner_width)", + "cimguiname": "igBeginTable", + "defaults": { + "flags": "0", + "inner_width": "0.0f", + "outer_size": "ImVec2(0.0f,0.0f)" + }, + "funcname": "BeginTable", + "location": "imgui:748", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTable", + "ret": "bool", + "signature": "(const char*,int,ImGuiTableFlags,const ImVec2,float)", + "stname": "" + } + ], + "igBeginTooltip": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginTooltip", + "defaults": {}, + "funcname": "BeginTooltip", + "location": "imgui:676", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTooltip", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igBullet": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBullet", + "defaults": {}, + "funcname": "Bullet", + "location": "imgui:519", + "namespace": "ImGui", + "ov_cimguiname": "igBullet", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igBulletText": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igBulletText", + "defaults": {}, + "funcname": "BulletText", + "isvararg": "...)", + "location": "imgui:503", + "namespace": "ImGui", + "ov_cimguiname": "igBulletText", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igBulletTextV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igBulletTextV", + "defaults": {}, + "funcname": "BulletTextV", + "location": "imgui:504", + "namespace": "ImGui", + "ov_cimguiname": "igBulletTextV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igButton": [ + { + "args": "(const char* label,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,size)", + "cimguiname": "igButton", + "defaults": { + "size": "ImVec2(0,0)" + }, + "funcname": "Button", + "location": "imgui:509", + "namespace": "ImGui", + "ov_cimguiname": "igButton", + "ret": "bool", + "signature": "(const char*,const ImVec2)", + "stname": "" + } + ], + "igCalcItemWidth": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igCalcItemWidth", + "defaults": {}, + "funcname": "CalcItemWidth", + "location": "imgui:426", + "namespace": "ImGui", + "ov_cimguiname": "igCalcItemWidth", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igCalcTextSize": [ + { + "args": "(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + }, + { + "name": "hide_text_after_double_hash", + "type": "bool" + }, + { + "name": "wrap_width", + "type": "float" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0),bool hide_text_after_double_hash=false,float wrap_width=-1.0f)", + "call_args": "(text,text_end,hide_text_after_double_hash,wrap_width)", + "cimguiname": "igCalcTextSize", + "defaults": { + "hide_text_after_double_hash": "false", + "text_end": "NULL", + "wrap_width": "-1.0f" + }, + "funcname": "CalcTextSize", + "location": "imgui:908", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igCalcTextSize", + "ret": "void", + "signature": "(const char*,const char*,bool,float)", + "stname": "" + } + ], + "igCheckbox": [ + { + "args": "(const char* label,bool* v)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "bool*" + } + ], + "argsoriginal": "(const char* label,bool* v)", + "call_args": "(label,v)", + "cimguiname": "igCheckbox", + "defaults": {}, + "funcname": "Checkbox", + "location": "imgui:513", + "namespace": "ImGui", + "ov_cimguiname": "igCheckbox", + "ret": "bool", + "signature": "(const char*,bool*)", + "stname": "" + } + ], + "igCheckboxFlags": [ + { + "args": "(const char* label,int* flags,int flags_value)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "int*" + }, + { + "name": "flags_value", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* flags,int flags_value)", + "call_args": "(label,flags,flags_value)", + "cimguiname": "igCheckboxFlags", + "defaults": {}, + "funcname": "CheckboxFlags", + "location": "imgui:514", + "namespace": "ImGui", + "ov_cimguiname": "igCheckboxFlags_IntPtr", + "ret": "bool", + "signature": "(const char*,int*,int)", + "stname": "" + }, + { + "args": "(const char* label,unsigned int* flags,unsigned int flags_value)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "unsigned int*" + }, + { + "name": "flags_value", + "type": "unsigned int" + } + ], + "argsoriginal": "(const char* label,unsigned int* flags,unsigned int flags_value)", + "call_args": "(label,flags,flags_value)", + "cimguiname": "igCheckboxFlags", + "defaults": {}, + "funcname": "CheckboxFlags", + "location": "imgui:515", + "namespace": "ImGui", + "ov_cimguiname": "igCheckboxFlags_UintPtr", + "ret": "bool", + "signature": "(const char*,unsigned int*,unsigned int)", + "stname": "" + } + ], + "igCloseCurrentPopup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igCloseCurrentPopup", + "defaults": {}, + "funcname": "CloseCurrentPopup", + "location": "imgui:708", + "namespace": "ImGui", + "ov_cimguiname": "igCloseCurrentPopup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igCollapsingHeader": [ + { + "args": "(const char* label,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiTreeNodeFlags flags=0)", + "call_args": "(label,flags)", + "cimguiname": "igCollapsingHeader", + "defaults": { + "flags": "0" + }, + "funcname": "CollapsingHeader", + "location": "imgui:625", + "namespace": "ImGui", + "ov_cimguiname": "igCollapsingHeader_TreeNodeFlags", + "ret": "bool", + "signature": "(const char*,ImGuiTreeNodeFlags)", + "stname": "" + }, + { + "args": "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_visible", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags=0)", + "call_args": "(label,p_visible,flags)", + "cimguiname": "igCollapsingHeader", + "defaults": { + "flags": "0" + }, + "funcname": "CollapsingHeader", + "location": "imgui:626", + "namespace": "ImGui", + "ov_cimguiname": "igCollapsingHeader_BoolPtr", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiTreeNodeFlags)", + "stname": "" + } + ], + "igColorButton": [ + { + "args": "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)", + "argsT": [ + { + "name": "desc_id", + "type": "const char*" + }, + { + "name": "col", + "type": "const ImVec4" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))", + "call_args": "(desc_id,col,flags,size)", + "cimguiname": "igColorButton", + "defaults": { + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "ColorButton", + "location": "imgui:606", + "namespace": "ImGui", + "ov_cimguiname": "igColorButton", + "ret": "bool", + "signature": "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)", + "stname": "" + } + ], + "igColorConvertFloat4ToU32": [ + { + "args": "(const ImVec4 in)", + "argsT": [ + { + "name": "in", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& in)", + "call_args": "(in)", + "cimguiname": "igColorConvertFloat4ToU32", + "defaults": {}, + "funcname": "ColorConvertFloat4ToU32", + "location": "imgui:912", + "namespace": "ImGui", + "ov_cimguiname": "igColorConvertFloat4ToU32", + "ret": "ImU32", + "signature": "(const ImVec4)", + "stname": "" + } + ], + "igColorConvertHSVtoRGB": [ + { + "args": "(float h,float s,float v,float* out_r,float* out_g,float* out_b)", + "argsT": [ + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "out_r", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_g", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_b", + "reftoptr": true, + "type": "float*" + } + ], + "argsoriginal": "(float h,float s,float v,float& out_r,float& out_g,float& out_b)", + "call_args": "(h,s,v,*out_r,*out_g,*out_b)", + "cimguiname": "igColorConvertHSVtoRGB", + "defaults": {}, + "funcname": "ColorConvertHSVtoRGB", + "location": "imgui:914", + "namespace": "ImGui", + "ov_cimguiname": "igColorConvertHSVtoRGB", + "ret": "void", + "signature": "(float,float,float,float*,float*,float*)", + "stname": "" + } + ], + "igColorConvertRGBtoHSV": [ + { + "args": "(float r,float g,float b,float* out_h,float* out_s,float* out_v)", + "argsT": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "out_h", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_s", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_v", + "reftoptr": true, + "type": "float*" + } + ], + "argsoriginal": "(float r,float g,float b,float& out_h,float& out_s,float& out_v)", + "call_args": "(r,g,b,*out_h,*out_s,*out_v)", + "cimguiname": "igColorConvertRGBtoHSV", + "defaults": {}, + "funcname": "ColorConvertRGBtoHSV", + "location": "imgui:913", + "namespace": "ImGui", + "ov_cimguiname": "igColorConvertRGBtoHSV", + "ret": "void", + "signature": "(float,float,float,float*,float*,float*)", + "stname": "" + } + ], + "igColorConvertU32ToFloat4": [ + { + "args": "(ImVec4 *pOut,ImU32 in)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec4*" + }, + { + "name": "in", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 in)", + "call_args": "(in)", + "cimguiname": "igColorConvertU32ToFloat4", + "defaults": {}, + "funcname": "ColorConvertU32ToFloat4", + "location": "imgui:911", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igColorConvertU32ToFloat4", + "ret": "void", + "signature": "(ImU32)", + "stname": "" + } + ], + "igColorEdit3": [ + { + "args": "(const char* label,float col[3],ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[3]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* label,float col[3],ImGuiColorEditFlags flags=0)", + "call_args": "(label,col,flags)", + "cimguiname": "igColorEdit3", + "defaults": { + "flags": "0" + }, + "funcname": "ColorEdit3", + "location": "imgui:602", + "namespace": "ImGui", + "ov_cimguiname": "igColorEdit3", + "ret": "bool", + "signature": "(const char*,float[3],ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorEdit4": [ + { + "args": "(const char* label,float col[4],ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[4]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* label,float col[4],ImGuiColorEditFlags flags=0)", + "call_args": "(label,col,flags)", + "cimguiname": "igColorEdit4", + "defaults": { + "flags": "0" + }, + "funcname": "ColorEdit4", + "location": "imgui:603", + "namespace": "ImGui", + "ov_cimguiname": "igColorEdit4", + "ret": "bool", + "signature": "(const char*,float[4],ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorPicker3": [ + { + "args": "(const char* label,float col[3],ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[3]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* label,float col[3],ImGuiColorEditFlags flags=0)", + "call_args": "(label,col,flags)", + "cimguiname": "igColorPicker3", + "defaults": { + "flags": "0" + }, + "funcname": "ColorPicker3", + "location": "imgui:604", + "namespace": "ImGui", + "ov_cimguiname": "igColorPicker3", + "ret": "bool", + "signature": "(const char*,float[3],ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorPicker4": [ + { + "args": "(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[4]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + }, + { + "name": "ref_col", + "type": "const float*" + } + ], + "argsoriginal": "(const char* label,float col[4],ImGuiColorEditFlags flags=0,const float* ref_col=((void*)0))", + "call_args": "(label,col,flags,ref_col)", + "cimguiname": "igColorPicker4", + "defaults": { + "flags": "0", + "ref_col": "NULL" + }, + "funcname": "ColorPicker4", + "location": "imgui:605", + "namespace": "ImGui", + "ov_cimguiname": "igColorPicker4", + "ret": "bool", + "signature": "(const char*,float[4],ImGuiColorEditFlags,const float*)", + "stname": "" + } + ], + "igColumns": [ + { + "args": "(int count,const char* id,bool border)", + "argsT": [ + { + "name": "count", + "type": "int" + }, + { + "name": "id", + "type": "const char*" + }, + { + "name": "border", + "type": "bool" + } + ], + "argsoriginal": "(int count=1,const char* id=((void*)0),bool border=true)", + "call_args": "(count,id,border)", + "cimguiname": "igColumns", + "defaults": { + "border": "true", + "count": "1", + "id": "NULL" + }, + "funcname": "Columns", + "location": "imgui:784", + "namespace": "ImGui", + "ov_cimguiname": "igColumns", + "ret": "void", + "signature": "(int,const char*,bool)", + "stname": "" + } + ], + "igCombo": [ + { + "args": "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items", + "type": "const char* const[]" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "popup_max_height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,items,items_count,popup_max_height_in_items)", + "cimguiname": "igCombo", + "defaults": { + "popup_max_height_in_items": "-1" + }, + "funcname": "Combo", + "location": "imgui:531", + "namespace": "ImGui", + "ov_cimguiname": "igCombo_Str_arr", + "ret": "bool", + "signature": "(const char*,int*,const char* const[],int,int)", + "stname": "" + }, + { + "args": "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items)", + "argsT": [ + { + "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" + } + ], + "argsoriginal": "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,items_separated_by_zeros,popup_max_height_in_items)", + "cimguiname": "igCombo", + "defaults": { + "popup_max_height_in_items": "-1" + }, + "funcname": "Combo", + "location": "imgui:532", + "namespace": "ImGui", + "ov_cimguiname": "igCombo_Str", + "ret": "bool", + "signature": "(const char*,int*,const char*,int)", + "stname": "" + }, + { + "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items_getter", + "ret": "bool", + "signature": "(void* data,int idx,const char** out_text)", + "type": "bool(*)(void* data,int idx,const char** out_text)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "popup_max_height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,items_getter,data,items_count,popup_max_height_in_items)", + "cimguiname": "igCombo", + "defaults": { + "popup_max_height_in_items": "-1" + }, + "funcname": "Combo", + "location": "imgui:533", + "namespace": "ImGui", + "ov_cimguiname": "igCombo_FnBoolPtr", + "ret": "bool", + "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", + "stname": "" + } + ], + "igCreateContext": [ + { + "args": "(ImFontAtlas* shared_font_atlas)", + "argsT": [ + { + "name": "shared_font_atlas", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "(ImFontAtlas* shared_font_atlas=((void*)0))", + "call_args": "(shared_font_atlas)", + "cimguiname": "igCreateContext", + "defaults": { + "shared_font_atlas": "NULL" + }, + "funcname": "CreateContext", + "location": "imgui:294", + "namespace": "ImGui", + "ov_cimguiname": "igCreateContext", + "ret": "ImGuiContext*", + "signature": "(ImFontAtlas*)", + "stname": "" + } + ], + "igDebugCheckVersionAndDataLayout": [ + { + "args": "(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)", + "argsT": [ + { + "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" + } + ], + "argsoriginal": "(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)", + "call_args": "(version_str,sz_io,sz_style,sz_vec2,sz_vec4,sz_drawvert,sz_drawidx)", + "cimguiname": "igDebugCheckVersionAndDataLayout", + "defaults": {}, + "funcname": "DebugCheckVersionAndDataLayout", + "location": "imgui:966", + "namespace": "ImGui", + "ov_cimguiname": "igDebugCheckVersionAndDataLayout", + "ret": "bool", + "signature": "(const char*,size_t,size_t,size_t,size_t,size_t,size_t)", + "stname": "" + } + ], + "igDebugTextEncoding": [ + { + "args": "(const char* text)", + "argsT": [ + { + "name": "text", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text)", + "call_args": "(text)", + "cimguiname": "igDebugTextEncoding", + "defaults": {}, + "funcname": "DebugTextEncoding", + "location": "imgui:965", + "namespace": "ImGui", + "ov_cimguiname": "igDebugTextEncoding", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igDestroyContext": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx=((void*)0))", + "call_args": "(ctx)", + "cimguiname": "igDestroyContext", + "defaults": { + "ctx": "NULL" + }, + "funcname": "DestroyContext", + "location": "imgui:295", + "namespace": "ImGui", + "ov_cimguiname": "igDestroyContext", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDestroyPlatformWindows": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igDestroyPlatformWindows", + "defaults": {}, + "funcname": "DestroyPlatformWindows", + "location": "imgui:983", + "namespace": "ImGui", + "ov_cimguiname": "igDestroyPlatformWindows", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igDockSpace": [ + { + "args": "(ImGuiID id,const ImVec2 size,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiDockNodeFlags" + }, + { + "name": "window_class", + "type": "const ImGuiWindowClass*" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& size=ImVec2(0,0),ImGuiDockNodeFlags flags=0,const ImGuiWindowClass* window_class=((void*)0))", + "call_args": "(id,size,flags,window_class)", + "cimguiname": "igDockSpace", + "defaults": { + "flags": "0", + "size": "ImVec2(0,0)", + "window_class": "NULL" + }, + "funcname": "DockSpace", + "location": "imgui:815", + "namespace": "ImGui", + "ov_cimguiname": "igDockSpace", + "ret": "ImGuiID", + "signature": "(ImGuiID,const ImVec2,ImGuiDockNodeFlags,const ImGuiWindowClass*)", + "stname": "" + } + ], + "igDockSpaceOverViewport": [ + { + "args": "(const ImGuiViewport* viewport,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class)", + "argsT": [ + { + "name": "viewport", + "type": "const ImGuiViewport*" + }, + { + "name": "flags", + "type": "ImGuiDockNodeFlags" + }, + { + "name": "window_class", + "type": "const ImGuiWindowClass*" + } + ], + "argsoriginal": "(const ImGuiViewport* viewport=((void*)0),ImGuiDockNodeFlags flags=0,const ImGuiWindowClass* window_class=((void*)0))", + "call_args": "(viewport,flags,window_class)", + "cimguiname": "igDockSpaceOverViewport", + "defaults": { + "flags": "0", + "viewport": "NULL", + "window_class": "NULL" + }, + "funcname": "DockSpaceOverViewport", + "location": "imgui:816", + "namespace": "ImGui", + "ov_cimguiname": "igDockSpaceOverViewport", + "ret": "ImGuiID", + "signature": "(const ImGuiViewport*,ImGuiDockNodeFlags,const ImGuiWindowClass*)", + "stname": "" + } + ], + "igDragFloat": [ + { + "args": "(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat", + "location": "imgui:547", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat", + "ret": "bool", + "signature": "(const char*,float*,float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat2": [ + { + "args": "(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[2]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[2],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat2", + "location": "imgui:548", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat2", + "ret": "bool", + "signature": "(const char*,float[2],float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat3": [ + { + "args": "(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[3]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[3],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat3", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat3", + "location": "imgui:549", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat3", + "ret": "bool", + "signature": "(const char*,float[3],float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat4": [ + { + "args": "(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[4]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[4],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat4", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat4", + "location": "imgui:550", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat4", + "ret": "bool", + "signature": "(const char*,float[4],float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloatRange2": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v_current_min", + "type": "float*" + }, + { + "name": "v_current_max", + "type": "float*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "format_max", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v_current_min,float* v_current_max,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)", + "cimguiname": "igDragFloatRange2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "format_max": "NULL", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloatRange2", + "location": "imgui:551", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloatRange2", + "ret": "bool", + "signature": "(const char*,float*,float*,float,float,float,const char*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt": [ + { + "args": "(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int* v,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt", + "location": "imgui:552", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt", + "ret": "bool", + "signature": "(const char*,int*,float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt2": [ + { + "args": "(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[2]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[2],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt2", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt2", + "location": "imgui:553", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt2", + "ret": "bool", + "signature": "(const char*,int[2],float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt3": [ + { + "args": "(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[3]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[3],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt3", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt3", + "location": "imgui:554", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt3", + "ret": "bool", + "signature": "(const char*,int[3],float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt4": [ + { + "args": "(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[4]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[4],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt4", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt4", + "location": "imgui:555", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt4", + "ret": "bool", + "signature": "(const char*,int[4],float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragIntRange2": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v_current_min", + "type": "int*" + }, + { + "name": "v_current_max", + "type": "int*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "format_max", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int* v_current_min,int* v_current_max,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)", + "cimguiname": "igDragIntRange2", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "format_max": "NULL", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragIntRange2", + "location": "imgui:556", + "namespace": "ImGui", + "ov_cimguiname": "igDragIntRange2", + "ret": "bool", + "signature": "(const char*,int*,int*,float,int,int,const char*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragScalar": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "p_min", + "type": "const void*" + }, + { + "name": "p_max", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,v_speed,p_min,p_max,format,flags)", + "cimguiname": "igDragScalar", + "defaults": { + "flags": "0", + "format": "NULL", + "p_max": "NULL", + "p_min": "NULL", + "v_speed": "1.0f" + }, + "funcname": "DragScalar", + "location": "imgui:557", + "namespace": "ImGui", + "ov_cimguiname": "igDragScalar", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragScalarN": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "components", + "type": "int" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "p_min", + "type": "const void*" + }, + { + "name": "p_max", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,components,v_speed,p_min,p_max,format,flags)", + "cimguiname": "igDragScalarN", + "defaults": { + "flags": "0", + "format": "NULL", + "p_max": "NULL", + "p_min": "NULL", + "v_speed": "1.0f" + }, + "funcname": "DragScalarN", + "location": "imgui:558", + "namespace": "ImGui", + "ov_cimguiname": "igDragScalarN", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,int,float,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDummy": [ + { + "args": "(const ImVec2 size)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& size)", + "call_args": "(size)", + "cimguiname": "igDummy", + "defaults": {}, + "funcname": "Dummy", + "location": "imgui:451", + "namespace": "ImGui", + "ov_cimguiname": "igDummy", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igEnd": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEnd", + "defaults": {}, + "funcname": "End", + "location": "imgui:337", + "namespace": "ImGui", + "ov_cimguiname": "igEnd", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndChild": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndChild", + "defaults": {}, + "funcname": "EndChild", + "location": "imgui:349", + "namespace": "ImGui", + "ov_cimguiname": "igEndChild", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndChildFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndChildFrame", + "defaults": {}, + "funcname": "EndChildFrame", + "location": "imgui:905", + "namespace": "ImGui", + "ov_cimguiname": "igEndChildFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndCombo": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndCombo", + "defaults": {}, + "funcname": "EndCombo", + "location": "imgui:530", + "namespace": "ImGui", + "ov_cimguiname": "igEndCombo", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndDisabled": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndDisabled", + "defaults": {}, + "funcname": "EndDisabled", + "location": "imgui:850", + "namespace": "ImGui", + "ov_cimguiname": "igEndDisabled", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndDragDropSource": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndDragDropSource", + "defaults": {}, + "funcname": "EndDragDropSource", + "location": "imgui:839", + "namespace": "ImGui", + "ov_cimguiname": "igEndDragDropSource", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndDragDropTarget": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndDragDropTarget", + "defaults": {}, + "funcname": "EndDragDropTarget", + "location": "imgui:842", + "namespace": "ImGui", + "ov_cimguiname": "igEndDragDropTarget", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndFrame", + "defaults": {}, + "funcname": "EndFrame", + "location": "imgui:303", + "namespace": "ImGui", + "ov_cimguiname": "igEndFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndGroup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndGroup", + "defaults": {}, + "funcname": "EndGroup", + "location": "imgui:455", + "namespace": "ImGui", + "ov_cimguiname": "igEndGroup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndListBox": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndListBox", + "defaults": {}, + "funcname": "EndListBox", + "location": "imgui:642", + "namespace": "ImGui", + "ov_cimguiname": "igEndListBox", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndMainMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndMainMenuBar", + "defaults": {}, + "funcname": "EndMainMenuBar", + "location": "imgui:668", + "namespace": "ImGui", + "ov_cimguiname": "igEndMainMenuBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndMenu": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndMenu", + "defaults": {}, + "funcname": "EndMenu", + "location": "imgui:670", + "namespace": "ImGui", + "ov_cimguiname": "igEndMenu", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndMenuBar", + "defaults": {}, + "funcname": "EndMenuBar", + "location": "imgui:666", + "namespace": "ImGui", + "ov_cimguiname": "igEndMenuBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndPopup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndPopup", + "defaults": {}, + "funcname": "EndPopup", + "location": "imgui:695", + "namespace": "ImGui", + "ov_cimguiname": "igEndPopup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTabBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTabBar", + "defaults": {}, + "funcname": "EndTabBar", + "location": "imgui:796", + "namespace": "ImGui", + "ov_cimguiname": "igEndTabBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTabItem": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTabItem", + "defaults": {}, + "funcname": "EndTabItem", + "location": "imgui:798", + "namespace": "ImGui", + "ov_cimguiname": "igEndTabItem", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTable": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTable", + "defaults": {}, + "funcname": "EndTable", + "location": "imgui:749", + "namespace": "ImGui", + "ov_cimguiname": "igEndTable", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTooltip": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTooltip", + "defaults": {}, + "funcname": "EndTooltip", + "location": "imgui:677", + "namespace": "ImGui", + "ov_cimguiname": "igEndTooltip", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igFindViewportByID": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igFindViewportByID", + "defaults": {}, + "funcname": "FindViewportByID", + "location": "imgui:984", + "namespace": "ImGui", + "ov_cimguiname": "igFindViewportByID", + "ret": "ImGuiViewport*", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igFindViewportByPlatformHandle": [ + { + "args": "(void* platform_handle)", + "argsT": [ + { + "name": "platform_handle", + "type": "void*" + } + ], + "argsoriginal": "(void* platform_handle)", + "call_args": "(platform_handle)", + "cimguiname": "igFindViewportByPlatformHandle", + "defaults": {}, + "funcname": "FindViewportByPlatformHandle", + "location": "imgui:985", + "namespace": "ImGui", + "ov_cimguiname": "igFindViewportByPlatformHandle", + "ret": "ImGuiViewport*", + "signature": "(void*)", + "stname": "" + } + ], + "igGetAllocatorFunctions": [ + { + "args": "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)", + "argsT": [ + { + "name": "p_alloc_func", + "type": "ImGuiMemAllocFunc*" + }, + { + "name": "p_free_func", + "type": "ImGuiMemFreeFunc*" + }, + { + "name": "p_user_data", + "type": "void**" + } + ], + "argsoriginal": "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)", + "call_args": "(p_alloc_func,p_free_func,p_user_data)", + "cimguiname": "igGetAllocatorFunctions", + "defaults": {}, + "funcname": "GetAllocatorFunctions", + "location": "imgui:973", + "namespace": "ImGui", + "ov_cimguiname": "igGetAllocatorFunctions", + "ret": "void", + "signature": "(ImGuiMemAllocFunc*,ImGuiMemFreeFunc*,void**)", + "stname": "" + } + ], + "igGetBackgroundDrawList": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetBackgroundDrawList", + "defaults": {}, + "funcname": "GetBackgroundDrawList", + "location": "imgui:890", + "namespace": "ImGui", + "ov_cimguiname": "igGetBackgroundDrawList_Nil", + "ret": "ImDrawList*", + "signature": "()", + "stname": "" + }, + { + "args": "(ImGuiViewport* viewport)", + "argsT": [ + { + "name": "viewport", + "type": "ImGuiViewport*" + } + ], + "argsoriginal": "(ImGuiViewport* viewport)", + "call_args": "(viewport)", + "cimguiname": "igGetBackgroundDrawList", + "defaults": {}, + "funcname": "GetBackgroundDrawList", + "location": "imgui:892", + "namespace": "ImGui", + "ov_cimguiname": "igGetBackgroundDrawList_ViewportPtr", + "ret": "ImDrawList*", + "signature": "(ImGuiViewport*)", + "stname": "" + } + ], + "igGetClipboardText": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetClipboardText", + "defaults": {}, + "funcname": "GetClipboardText", + "location": "imgui:952", + "namespace": "ImGui", + "ov_cimguiname": "igGetClipboardText", + "ret": "const char*", + "signature": "()", + "stname": "" + } + ], + "igGetColorU32": [ + { + "args": "(ImGuiCol idx,float alpha_mul)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + }, + { + "name": "alpha_mul", + "type": "float" + } + ], + "argsoriginal": "(ImGuiCol idx,float alpha_mul=1.0f)", + "call_args": "(idx,alpha_mul)", + "cimguiname": "igGetColorU32", + "defaults": { + "alpha_mul": "1.0f" + }, + "funcname": "GetColorU32", + "location": "imgui:435", + "namespace": "ImGui", + "ov_cimguiname": "igGetColorU32_Col", + "ret": "ImU32", + "signature": "(ImGuiCol,float)", + "stname": "" + }, + { + "args": "(const ImVec4 col)", + "argsT": [ + { + "name": "col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& col)", + "call_args": "(col)", + "cimguiname": "igGetColorU32", + "defaults": {}, + "funcname": "GetColorU32", + "location": "imgui:436", + "namespace": "ImGui", + "ov_cimguiname": "igGetColorU32_Vec4", + "ret": "ImU32", + "signature": "(const ImVec4)", + "stname": "" + }, + { + "args": "(ImU32 col)", + "argsT": [ + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 col)", + "call_args": "(col)", + "cimguiname": "igGetColorU32", + "defaults": {}, + "funcname": "GetColorU32", + "location": "imgui:437", + "namespace": "ImGui", + "ov_cimguiname": "igGetColorU32_U32", + "ret": "ImU32", + "signature": "(ImU32)", + "stname": "" + } + ], + "igGetColumnIndex": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetColumnIndex", + "defaults": {}, + "funcname": "GetColumnIndex", + "location": "imgui:786", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnIndex", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igGetColumnOffset": [ + { + "args": "(int column_index)", + "argsT": [ + { + "name": "column_index", + "type": "int" + } + ], + "argsoriginal": "(int column_index=-1)", + "call_args": "(column_index)", + "cimguiname": "igGetColumnOffset", + "defaults": { + "column_index": "-1" + }, + "funcname": "GetColumnOffset", + "location": "imgui:789", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnOffset", + "ret": "float", + "signature": "(int)", + "stname": "" + } + ], + "igGetColumnWidth": [ + { + "args": "(int column_index)", + "argsT": [ + { + "name": "column_index", + "type": "int" + } + ], + "argsoriginal": "(int column_index=-1)", + "call_args": "(column_index)", + "cimguiname": "igGetColumnWidth", + "defaults": { + "column_index": "-1" + }, + "funcname": "GetColumnWidth", + "location": "imgui:787", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnWidth", + "ret": "float", + "signature": "(int)", + "stname": "" + } + ], + "igGetColumnsCount": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetColumnsCount", + "defaults": {}, + "funcname": "GetColumnsCount", + "location": "imgui:791", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnsCount", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igGetContentRegionAvail": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetContentRegionAvail", + "defaults": {}, + "funcname": "GetContentRegionAvail", + "location": "imgui:389", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetContentRegionAvail", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetContentRegionMax": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetContentRegionMax", + "defaults": {}, + "funcname": "GetContentRegionMax", + "location": "imgui:390", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetContentRegionMax", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetCurrentContext": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCurrentContext", + "defaults": {}, + "funcname": "GetCurrentContext", + "location": "imgui:296", + "namespace": "ImGui", + "ov_cimguiname": "igGetCurrentContext", + "ret": "ImGuiContext*", + "signature": "()", + "stname": "" + } + ], + "igGetCursorPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorPos", + "defaults": {}, + "funcname": "GetCursorPos", + "location": "imgui:456", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetCursorPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetCursorPosX": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorPosX", + "defaults": {}, + "funcname": "GetCursorPosX", + "location": "imgui:457", + "namespace": "ImGui", + "ov_cimguiname": "igGetCursorPosX", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetCursorPosY": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorPosY", + "defaults": {}, + "funcname": "GetCursorPosY", + "location": "imgui:458", + "namespace": "ImGui", + "ov_cimguiname": "igGetCursorPosY", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetCursorScreenPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorScreenPos", + "defaults": {}, + "funcname": "GetCursorScreenPos", + "location": "imgui:463", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetCursorScreenPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetCursorStartPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorStartPos", + "defaults": {}, + "funcname": "GetCursorStartPos", + "location": "imgui:462", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetCursorStartPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetDragDropPayload": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDragDropPayload", + "defaults": {}, + "funcname": "GetDragDropPayload", + "location": "imgui:843", + "namespace": "ImGui", + "ov_cimguiname": "igGetDragDropPayload", + "ret": "const ImGuiPayload*", + "signature": "()", + "stname": "" + } + ], + "igGetDrawData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDrawData", + "defaults": {}, + "funcname": "GetDrawData", + "location": "imgui:305", + "namespace": "ImGui", + "ov_cimguiname": "igGetDrawData", + "ret": "ImDrawData*", + "signature": "()", + "stname": "" + } + ], + "igGetDrawListSharedData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDrawListSharedData", + "defaults": {}, + "funcname": "GetDrawListSharedData", + "location": "imgui:900", + "namespace": "ImGui", + "ov_cimguiname": "igGetDrawListSharedData", + "ret": "ImDrawListSharedData*", + "signature": "()", + "stname": "" + } + ], + "igGetFont": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFont", + "defaults": {}, + "funcname": "GetFont", + "location": "imgui:432", + "namespace": "ImGui", + "ov_cimguiname": "igGetFont", + "ret": "ImFont*", + "signature": "()", + "stname": "" + } + ], + "igGetFontSize": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFontSize", + "defaults": {}, + "funcname": "GetFontSize", + "location": "imgui:433", + "namespace": "ImGui", + "ov_cimguiname": "igGetFontSize", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetFontTexUvWhitePixel": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFontTexUvWhitePixel", + "defaults": {}, + "funcname": "GetFontTexUvWhitePixel", + "location": "imgui:434", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetFontTexUvWhitePixel", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetForegroundDrawList": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetForegroundDrawList", + "defaults": {}, + "funcname": "GetForegroundDrawList", + "location": "imgui:891", + "namespace": "ImGui", + "ov_cimguiname": "igGetForegroundDrawList_Nil", + "ret": "ImDrawList*", + "signature": "()", + "stname": "" + }, + { + "args": "(ImGuiViewport* viewport)", + "argsT": [ + { + "name": "viewport", + "type": "ImGuiViewport*" + } + ], + "argsoriginal": "(ImGuiViewport* viewport)", + "call_args": "(viewport)", + "cimguiname": "igGetForegroundDrawList", + "defaults": {}, + "funcname": "GetForegroundDrawList", + "location": "imgui:893", + "namespace": "ImGui", + "ov_cimguiname": "igGetForegroundDrawList_ViewportPtr", + "ret": "ImDrawList*", + "signature": "(ImGuiViewport*)", + "stname": "" + } + ], + "igGetFrameCount": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFrameCount", + "defaults": {}, + "funcname": "GetFrameCount", + "location": "imgui:899", + "namespace": "ImGui", + "ov_cimguiname": "igGetFrameCount", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igGetFrameHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFrameHeight", + "defaults": {}, + "funcname": "GetFrameHeight", + "location": "imgui:468", + "namespace": "ImGui", + "ov_cimguiname": "igGetFrameHeight", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetFrameHeightWithSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFrameHeightWithSpacing", + "defaults": {}, + "funcname": "GetFrameHeightWithSpacing", + "location": "imgui:469", + "namespace": "ImGui", + "ov_cimguiname": "igGetFrameHeightWithSpacing", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetID": [ + { + "args": "(const char* str_id)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id)", + "call_args": "(str_id)", + "cimguiname": "igGetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui:487", + "namespace": "ImGui", + "ov_cimguiname": "igGetID_Str", + "ret": "ImGuiID", + "signature": "(const char*)", + "stname": "" + }, + { + "args": "(const char* str_id_begin,const char* str_id_end)", + "argsT": [ + { + "name": "str_id_begin", + "type": "const char*" + }, + { + "name": "str_id_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id_begin,const char* str_id_end)", + "call_args": "(str_id_begin,str_id_end)", + "cimguiname": "igGetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui:488", + "namespace": "ImGui", + "ov_cimguiname": "igGetID_StrStr", + "ret": "ImGuiID", + "signature": "(const char*,const char*)", + "stname": "" + }, + { + "args": "(const void* ptr_id)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + } + ], + "argsoriginal": "(const void* ptr_id)", + "call_args": "(ptr_id)", + "cimguiname": "igGetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui:489", + "namespace": "ImGui", + "ov_cimguiname": "igGetID_Ptr", + "ret": "ImGuiID", + "signature": "(const void*)", + "stname": "" + } + ], + "igGetIO": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetIO", + "defaults": {}, + "funcname": "GetIO", + "location": "imgui:300", + "namespace": "ImGui", + "ov_cimguiname": "igGetIO", + "ret": "ImGuiIO*", + "retref": "&", + "signature": "()", + "stname": "" + } + ], + "igGetItemRectMax": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemRectMax", + "defaults": {}, + "funcname": "GetItemRectMax", + "location": "imgui:879", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetItemRectMax", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetItemRectMin": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemRectMin", + "defaults": {}, + "funcname": "GetItemRectMin", + "location": "imgui:878", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetItemRectMin", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetItemRectSize": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemRectSize", + "defaults": {}, + "funcname": "GetItemRectSize", + "location": "imgui:880", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetItemRectSize", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetKeyIndex": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyIndex", + "defaults": {}, + "funcname": "GetKeyIndex", + "location": "imgui:3214", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyIndex", + "ret": "ImGuiKey", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyName": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyName", + "defaults": {}, + "funcname": "GetKeyName", + "location": "imgui:926", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyName", + "ret": "const char*", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyPressedAmount": [ + { + "args": "(ImGuiKey key,float repeat_delay,float rate)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "repeat_delay", + "type": "float" + }, + { + "name": "rate", + "type": "float" + } + ], + "argsoriginal": "(ImGuiKey key,float repeat_delay,float rate)", + "call_args": "(key,repeat_delay,rate)", + "cimguiname": "igGetKeyPressedAmount", + "defaults": {}, + "funcname": "GetKeyPressedAmount", + "location": "imgui:925", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyPressedAmount", + "ret": "int", + "signature": "(ImGuiKey,float,float)", + "stname": "" + } + ], + "igGetMainViewport": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMainViewport", + "defaults": {}, + "funcname": "GetMainViewport", + "location": "imgui:887", + "namespace": "ImGui", + "ov_cimguiname": "igGetMainViewport", + "ret": "ImGuiViewport*", + "signature": "()", + "stname": "" + } + ], + "igGetMouseClickedCount": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igGetMouseClickedCount", + "defaults": {}, + "funcname": "GetMouseClickedCount", + "location": "imgui:937", + "namespace": "ImGui", + "ov_cimguiname": "igGetMouseClickedCount", + "ret": "int", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igGetMouseCursor": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMouseCursor", + "defaults": {}, + "funcname": "GetMouseCursor", + "location": "imgui:946", + "namespace": "ImGui", + "ov_cimguiname": "igGetMouseCursor", + "ret": "ImGuiMouseCursor", + "signature": "()", + "stname": "" + } + ], + "igGetMouseDragDelta": [ + { + "args": "(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "lock_threshold", + "type": "float" + } + ], + "argsoriginal": "(ImGuiMouseButton button=0,float lock_threshold=-1.0f)", + "call_args": "(button,lock_threshold)", + "cimguiname": "igGetMouseDragDelta", + "defaults": { + "button": "0", + "lock_threshold": "-1.0f" + }, + "funcname": "GetMouseDragDelta", + "location": "imgui:944", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetMouseDragDelta", + "ret": "void", + "signature": "(ImGuiMouseButton,float)", + "stname": "" + } + ], + "igGetMousePos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMousePos", + "defaults": {}, + "funcname": "GetMousePos", + "location": "imgui:941", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetMousePos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetMousePosOnOpeningCurrentPopup": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMousePosOnOpeningCurrentPopup", + "defaults": {}, + "funcname": "GetMousePosOnOpeningCurrentPopup", + "location": "imgui:942", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetMousePosOnOpeningCurrentPopup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetPlatformIO": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetPlatformIO", + "defaults": {}, + "funcname": "GetPlatformIO", + "location": "imgui:980", + "namespace": "ImGui", + "ov_cimguiname": "igGetPlatformIO", + "ret": "ImGuiPlatformIO*", + "retref": "&", + "signature": "()", + "stname": "" + } + ], + "igGetScrollMaxX": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollMaxX", + "defaults": {}, + "funcname": "GetScrollMaxX", + "location": "imgui:401", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollMaxX", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetScrollMaxY": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollMaxY", + "defaults": {}, + "funcname": "GetScrollMaxY", + "location": "imgui:402", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollMaxY", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetScrollX": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollX", + "defaults": {}, + "funcname": "GetScrollX", + "location": "imgui:397", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollX", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetScrollY": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollY", + "defaults": {}, + "funcname": "GetScrollY", + "location": "imgui:398", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollY", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetStateStorage": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetStateStorage", + "defaults": {}, + "funcname": "GetStateStorage", + "location": "imgui:903", + "namespace": "ImGui", + "ov_cimguiname": "igGetStateStorage", + "ret": "ImGuiStorage*", + "signature": "()", + "stname": "" + } + ], + "igGetStyle": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetStyle", + "defaults": {}, + "funcname": "GetStyle", + "location": "imgui:301", + "namespace": "ImGui", + "ov_cimguiname": "igGetStyle", + "ret": "ImGuiStyle*", + "retref": "&", + "signature": "()", + "stname": "" + } + ], + "igGetStyleColorName": [ + { + "args": "(ImGuiCol idx)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + } + ], + "argsoriginal": "(ImGuiCol idx)", + "call_args": "(idx)", + "cimguiname": "igGetStyleColorName", + "defaults": {}, + "funcname": "GetStyleColorName", + "location": "imgui:901", + "namespace": "ImGui", + "ov_cimguiname": "igGetStyleColorName", + "ret": "const char*", + "signature": "(ImGuiCol)", + "stname": "" + } + ], + "igGetStyleColorVec4": [ + { + "args": "(ImGuiCol idx)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + } + ], + "argsoriginal": "(ImGuiCol idx)", + "call_args": "(idx)", + "cimguiname": "igGetStyleColorVec4", + "defaults": {}, + "funcname": "GetStyleColorVec4", + "location": "imgui:438", + "namespace": "ImGui", + "ov_cimguiname": "igGetStyleColorVec4", + "ret": "const ImVec4*", + "retref": "&", + "signature": "(ImGuiCol)", + "stname": "" + } + ], + "igGetTextLineHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTextLineHeight", + "defaults": {}, + "funcname": "GetTextLineHeight", + "location": "imgui:466", + "namespace": "ImGui", + "ov_cimguiname": "igGetTextLineHeight", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetTextLineHeightWithSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTextLineHeightWithSpacing", + "defaults": {}, + "funcname": "GetTextLineHeightWithSpacing", + "location": "imgui:467", + "namespace": "ImGui", + "ov_cimguiname": "igGetTextLineHeightWithSpacing", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetTime": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTime", + "defaults": {}, + "funcname": "GetTime", + "location": "imgui:898", + "namespace": "ImGui", + "ov_cimguiname": "igGetTime", + "ret": "double", + "signature": "()", + "stname": "" + } + ], + "igGetTreeNodeToLabelSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTreeNodeToLabelSpacing", + "defaults": {}, + "funcname": "GetTreeNodeToLabelSpacing", + "location": "imgui:624", + "namespace": "ImGui", + "ov_cimguiname": "igGetTreeNodeToLabelSpacing", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetVersion": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetVersion", + "defaults": {}, + "funcname": "GetVersion", + "location": "imgui:317", + "namespace": "ImGui", + "ov_cimguiname": "igGetVersion", + "ret": "const char*", + "signature": "()", + "stname": "" + } + ], + "igGetWindowContentRegionMax": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowContentRegionMax", + "defaults": {}, + "funcname": "GetWindowContentRegionMax", + "location": "imgui:392", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowContentRegionMax", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowContentRegionMin": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowContentRegionMin", + "defaults": {}, + "funcname": "GetWindowContentRegionMin", + "location": "imgui:391", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowContentRegionMin", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowDockID": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowDockID", + "defaults": {}, + "funcname": "GetWindowDockID", + "location": "imgui:819", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowDockID", + "ret": "ImGuiID", + "signature": "()", + "stname": "" + } + ], + "igGetWindowDpiScale": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowDpiScale", + "defaults": {}, + "funcname": "GetWindowDpiScale", + "location": "imgui:358", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowDpiScale", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetWindowDrawList": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowDrawList", + "defaults": {}, + "funcname": "GetWindowDrawList", + "location": "imgui:357", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowDrawList", + "ret": "ImDrawList*", + "signature": "()", + "stname": "" + } + ], + "igGetWindowHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowHeight", + "defaults": {}, + "funcname": "GetWindowHeight", + "location": "imgui:362", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowHeight", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetWindowPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowPos", + "defaults": {}, + "funcname": "GetWindowPos", + "location": "imgui:359", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowSize": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowSize", + "defaults": {}, + "funcname": "GetWindowSize", + "location": "imgui:360", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowSize", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowViewport": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowViewport", + "defaults": {}, + "funcname": "GetWindowViewport", + "location": "imgui:363", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowViewport", + "ret": "ImGuiViewport*", + "signature": "()", + "stname": "" + } + ], + "igGetWindowWidth": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowWidth", + "defaults": {}, + "funcname": "GetWindowWidth", + "location": "imgui:361", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowWidth", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igImage": [ + { + "args": "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col)", + "argsT": [ + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "name": "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" + } + ], + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& tint_col=ImVec4(1,1,1,1),const ImVec4& border_col=ImVec4(0,0,0,0))", + "call_args": "(user_texture_id,size,uv0,uv1,tint_col,border_col)", + "cimguiname": "igImage", + "defaults": { + "border_col": "ImVec4(0,0,0,0)", + "tint_col": "ImVec4(1,1,1,1)", + "uv0": "ImVec2(0,0)", + "uv1": "ImVec2(1,1)" + }, + "funcname": "Image", + "location": "imgui:523", + "namespace": "ImGui", + "ov_cimguiname": "igImage", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "stname": "" + } + ], + "igImageButton": [ + { + "args": "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "uv0", + "type": "const ImVec2" + }, + { + "name": "uv1", + "type": "const ImVec2" + }, + { + "name": "bg_col", + "type": "const ImVec4" + }, + { + "name": "tint_col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", + "call_args": "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)", + "cimguiname": "igImageButton", + "defaults": { + "bg_col": "ImVec4(0,0,0,0)", + "tint_col": "ImVec4(1,1,1,1)", + "uv0": "ImVec2(0,0)", + "uv1": "ImVec2(1,1)" + }, + "funcname": "ImageButton", + "location": "imgui:524", + "namespace": "ImGui", + "ov_cimguiname": "igImageButton", + "ret": "bool", + "signature": "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "stname": "" + } + ], + "igIndent": [ + { + "args": "(float indent_w)", + "argsT": [ + { + "name": "indent_w", + "type": "float" + } + ], + "argsoriginal": "(float indent_w=0.0f)", + "call_args": "(indent_w)", + "cimguiname": "igIndent", + "defaults": { + "indent_w": "0.0f" + }, + "funcname": "Indent", + "location": "imgui:452", + "namespace": "ImGui", + "ov_cimguiname": "igIndent", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igInputDouble": [ + { + "args": "(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "double*" + }, + { + "name": "step", + "type": "double" + }, + { + "name": "step_fast", + "type": "double" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,double* v,double step=0.0,double step_fast=0.0,const char* format=\"%.6f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,step,step_fast,format,flags)", + "cimguiname": "igInputDouble", + "defaults": { + "flags": "0", + "format": "\"%.6f\"", + "step": "0.0", + "step_fast": "0.0" + }, + "funcname": "InputDouble", + "location": "imgui:595", + "namespace": "ImGui", + "ov_cimguiname": "igInputDouble", + "ret": "bool", + "signature": "(const char*,double*,double,double,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat": [ + { + "args": "(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float*" + }, + { + "name": "step", + "type": "float" + }, + { + "name": "step_fast", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float* v,float step=0.0f,float step_fast=0.0f,const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,step,step_fast,format,flags)", + "cimguiname": "igInputFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "step": "0.0f", + "step_fast": "0.0f" + }, + "funcname": "InputFloat", + "location": "imgui:587", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat", + "ret": "bool", + "signature": "(const char*,float*,float,float,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat2": [ + { + "args": "(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[2]" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float v[2],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,format,flags)", + "cimguiname": "igInputFloat2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "InputFloat2", + "location": "imgui:588", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat2", + "ret": "bool", + "signature": "(const char*,float[2],const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat3": [ + { + "args": "(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[3]" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float v[3],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,format,flags)", + "cimguiname": "igInputFloat3", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "InputFloat3", + "location": "imgui:589", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat3", + "ret": "bool", + "signature": "(const char*,float[3],const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat4": [ + { + "args": "(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[4]" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float v[4],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,format,flags)", + "cimguiname": "igInputFloat4", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "InputFloat4", + "location": "imgui:590", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat4", + "ret": "bool", + "signature": "(const char*,float[4],const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt": [ + { + "args": "(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "step", + "type": "int" + }, + { + "name": "step_fast", + "type": "int" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int* v,int step=1,int step_fast=100,ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,step,step_fast,flags)", + "cimguiname": "igInputInt", + "defaults": { + "flags": "0", + "step": "1", + "step_fast": "100" + }, + "funcname": "InputInt", + "location": "imgui:591", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt", + "ret": "bool", + "signature": "(const char*,int*,int,int,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt2": [ + { + "args": "(const char* label,int v[2],ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[2]" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int v[2],ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,flags)", + "cimguiname": "igInputInt2", + "defaults": { + "flags": "0" + }, + "funcname": "InputInt2", + "location": "imgui:592", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt2", + "ret": "bool", + "signature": "(const char*,int[2],ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt3": [ + { + "args": "(const char* label,int v[3],ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[3]" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int v[3],ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,flags)", + "cimguiname": "igInputInt3", + "defaults": { + "flags": "0" + }, + "funcname": "InputInt3", + "location": "imgui:593", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt3", + "ret": "bool", + "signature": "(const char*,int[3],ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt4": [ + { + "args": "(const char* label,int v[4],ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[4]" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int v[4],ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,flags)", + "cimguiname": "igInputInt4", + "defaults": { + "flags": "0" + }, + "funcname": "InputInt4", + "location": "imgui:594", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt4", + "ret": "bool", + "signature": "(const char*,int[4],ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputScalar": [ + { + "args": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step,const void* p_step_fast,const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "p_step", + "type": "const void*" + }, + { + "name": "p_step_fast", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)", + "call_args": "(label,data_type,p_data,p_step,p_step_fast,format,flags)", + "cimguiname": "igInputScalar", + "defaults": { + "flags": "0", + "format": "NULL", + "p_step": "NULL", + "p_step_fast": "NULL" + }, + "funcname": "InputScalar", + "location": "imgui:596", + "namespace": "ImGui", + "ov_cimguiname": "igInputScalar", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputScalarN": [ + { + "args": "(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)", + "argsT": [ + { + "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*" + }, + { + "name": "p_step_fast", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)", + "call_args": "(label,data_type,p_data,components,p_step,p_step_fast,format,flags)", + "cimguiname": "igInputScalarN", + "defaults": { + "flags": "0", + "format": "NULL", + "p_step": "NULL", + "p_step_fast": "NULL" + }, + "funcname": "InputScalarN", + "location": "imgui:597", + "namespace": "ImGui", + "ov_cimguiname": "igInputScalarN", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputText": [ + { + "args": "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,buf,buf_size,flags,callback,user_data)", + "cimguiname": "igInputText", + "defaults": { + "callback": "NULL", + "flags": "0", + "user_data": "NULL" + }, + "funcname": "InputText", + "location": "imgui:584", + "namespace": "ImGui", + "ov_cimguiname": "igInputText", + "ret": "bool", + "signature": "(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInputTextMultiline": [ + { + "args": "(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,char* buf,size_t buf_size,const ImVec2& size=ImVec2(0,0),ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,buf,buf_size,size,flags,callback,user_data)", + "cimguiname": "igInputTextMultiline", + "defaults": { + "callback": "NULL", + "flags": "0", + "size": "ImVec2(0,0)", + "user_data": "NULL" + }, + "funcname": "InputTextMultiline", + "location": "imgui:585", + "namespace": "ImGui", + "ov_cimguiname": "igInputTextMultiline", + "ret": "bool", + "signature": "(const char*,char*,size_t,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInputTextWithHint": [ + { + "args": "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "hint", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,hint,buf,buf_size,flags,callback,user_data)", + "cimguiname": "igInputTextWithHint", + "defaults": { + "callback": "NULL", + "flags": "0", + "user_data": "NULL" + }, + "funcname": "InputTextWithHint", + "location": "imgui:586", + "namespace": "ImGui", + "ov_cimguiname": "igInputTextWithHint", + "ret": "bool", + "signature": "(const char*,const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInvisibleButton": [ + { + "args": "(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiButtonFlags" + } + ], + "argsoriginal": "(const char* str_id,const ImVec2& size,ImGuiButtonFlags flags=0)", + "call_args": "(str_id,size,flags)", + "cimguiname": "igInvisibleButton", + "defaults": { + "flags": "0" + }, + "funcname": "InvisibleButton", + "location": "imgui:511", + "namespace": "ImGui", + "ov_cimguiname": "igInvisibleButton", + "ret": "bool", + "signature": "(const char*,const ImVec2,ImGuiButtonFlags)", + "stname": "" + } + ], + "igIsAnyItemActive": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyItemActive", + "defaults": {}, + "funcname": "IsAnyItemActive", + "location": "imgui:876", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyItemActive", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsAnyItemFocused": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyItemFocused", + "defaults": {}, + "funcname": "IsAnyItemFocused", + "location": "imgui:877", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyItemFocused", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsAnyItemHovered": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyItemHovered", + "defaults": {}, + "funcname": "IsAnyItemHovered", + "location": "imgui:875", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyItemHovered", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsAnyMouseDown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyMouseDown", + "defaults": {}, + "funcname": "IsAnyMouseDown", + "location": "imgui:940", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyMouseDown", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemActivated": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemActivated", + "defaults": {}, + "funcname": "IsItemActivated", + "location": "imgui:871", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemActivated", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemActive": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemActive", + "defaults": {}, + "funcname": "IsItemActive", + "location": "imgui:866", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemActive", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemClicked": [ + { + "args": "(ImGuiMouseButton mouse_button)", + "argsT": [ + { + "name": "mouse_button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton mouse_button=0)", + "call_args": "(mouse_button)", + "cimguiname": "igIsItemClicked", + "defaults": { + "mouse_button": "0" + }, + "funcname": "IsItemClicked", + "location": "imgui:868", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemClicked", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsItemDeactivated": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemDeactivated", + "defaults": {}, + "funcname": "IsItemDeactivated", + "location": "imgui:872", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemDeactivated", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemDeactivatedAfterEdit": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemDeactivatedAfterEdit", + "defaults": {}, + "funcname": "IsItemDeactivatedAfterEdit", + "location": "imgui:873", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemDeactivatedAfterEdit", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemEdited": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemEdited", + "defaults": {}, + "funcname": "IsItemEdited", + "location": "imgui:870", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemEdited", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemFocused": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemFocused", + "defaults": {}, + "funcname": "IsItemFocused", + "location": "imgui:867", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemFocused", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemHovered": [ + { + "args": "(ImGuiHoveredFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiHoveredFlags" + } + ], + "argsoriginal": "(ImGuiHoveredFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igIsItemHovered", + "defaults": { + "flags": "0" + }, + "funcname": "IsItemHovered", + "location": "imgui:865", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemHovered", + "ret": "bool", + "signature": "(ImGuiHoveredFlags)", + "stname": "" + } + ], + "igIsItemToggledOpen": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemToggledOpen", + "defaults": {}, + "funcname": "IsItemToggledOpen", + "location": "imgui:874", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemToggledOpen", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemVisible": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemVisible", + "defaults": {}, + "funcname": "IsItemVisible", + "location": "imgui:869", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemVisible", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsKeyDown": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsKeyDown", + "defaults": {}, + "funcname": "IsKeyDown", + "location": "imgui:922", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyDown", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsKeyPressed": [ + { + "args": "(ImGuiKey key,bool repeat)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiKey key,bool repeat=true)", + "call_args": "(key,repeat)", + "cimguiname": "igIsKeyPressed", + "defaults": { + "repeat": "true" + }, + "funcname": "IsKeyPressed", + "location": "imgui:923", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyPressed", + "ret": "bool", + "signature": "(ImGuiKey,bool)", + "stname": "" + } + ], + "igIsKeyReleased": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsKeyReleased", + "defaults": {}, + "funcname": "IsKeyReleased", + "location": "imgui:924", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyReleased", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsMouseClicked": [ + { + "args": "(ImGuiMouseButton button,bool repeat)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiMouseButton button,bool repeat=false)", + "call_args": "(button,repeat)", + "cimguiname": "igIsMouseClicked", + "defaults": { + "repeat": "false" + }, + "funcname": "IsMouseClicked", + "location": "imgui:934", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseClicked", + "ret": "bool", + "signature": "(ImGuiMouseButton,bool)", + "stname": "" + } + ], + "igIsMouseDoubleClicked": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igIsMouseDoubleClicked", + "defaults": {}, + "funcname": "IsMouseDoubleClicked", + "location": "imgui:936", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDoubleClicked", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsMouseDown": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igIsMouseDown", + "defaults": {}, + "funcname": "IsMouseDown", + "location": "imgui:933", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDown", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsMouseDragging": [ + { + "args": "(ImGuiMouseButton button,float lock_threshold)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "lock_threshold", + "type": "float" + } + ], + "argsoriginal": "(ImGuiMouseButton button,float lock_threshold=-1.0f)", + "call_args": "(button,lock_threshold)", + "cimguiname": "igIsMouseDragging", + "defaults": { + "lock_threshold": "-1.0f" + }, + "funcname": "IsMouseDragging", + "location": "imgui:943", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDragging", + "ret": "bool", + "signature": "(ImGuiMouseButton,float)", + "stname": "" + } + ], + "igIsMouseHoveringRect": [ + { + "args": "(const ImVec2 r_min,const ImVec2 r_max,bool clip)", + "argsT": [ + { + "name": "r_min", + "type": "const ImVec2" + }, + { + "name": "r_max", + "type": "const ImVec2" + }, + { + "name": "clip", + "type": "bool" + } + ], + "argsoriginal": "(const ImVec2& r_min,const ImVec2& r_max,bool clip=true)", + "call_args": "(r_min,r_max,clip)", + "cimguiname": "igIsMouseHoveringRect", + "defaults": { + "clip": "true" + }, + "funcname": "IsMouseHoveringRect", + "location": "imgui:938", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseHoveringRect", + "ret": "bool", + "signature": "(const ImVec2,const ImVec2,bool)", + "stname": "" + } + ], + "igIsMousePosValid": [ + { + "args": "(const ImVec2* mouse_pos)", + "argsT": [ + { + "name": "mouse_pos", + "type": "const ImVec2*" + } + ], + "argsoriginal": "(const ImVec2* mouse_pos=((void*)0))", + "call_args": "(mouse_pos)", + "cimguiname": "igIsMousePosValid", + "defaults": { + "mouse_pos": "NULL" + }, + "funcname": "IsMousePosValid", + "location": "imgui:939", + "namespace": "ImGui", + "ov_cimguiname": "igIsMousePosValid", + "ret": "bool", + "signature": "(const ImVec2*)", + "stname": "" + } + ], + "igIsMouseReleased": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igIsMouseReleased", + "defaults": {}, + "funcname": "IsMouseReleased", + "location": "imgui:935", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseReleased", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsPopupOpen": [ + { + "args": "(const char* str_id,ImGuiPopupFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiPopupFlags flags=0)", + "call_args": "(str_id,flags)", + "cimguiname": "igIsPopupOpen", + "defaults": { + "flags": "0" + }, + "funcname": "IsPopupOpen", + "location": "imgui:723", + "namespace": "ImGui", + "ov_cimguiname": "igIsPopupOpen", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igIsRectVisible": [ + { + "args": "(const ImVec2 size)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& size)", + "call_args": "(size)", + "cimguiname": "igIsRectVisible", + "defaults": {}, + "funcname": "IsRectVisible", + "location": "imgui:896", + "namespace": "ImGui", + "ov_cimguiname": "igIsRectVisible_Nil", + "ret": "bool", + "signature": "(const ImVec2)", + "stname": "" + }, + { + "args": "(const ImVec2 rect_min,const ImVec2 rect_max)", + "argsT": [ + { + "name": "rect_min", + "type": "const ImVec2" + }, + { + "name": "rect_max", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& rect_min,const ImVec2& rect_max)", + "call_args": "(rect_min,rect_max)", + "cimguiname": "igIsRectVisible", + "defaults": {}, + "funcname": "IsRectVisible", + "location": "imgui:897", + "namespace": "ImGui", + "ov_cimguiname": "igIsRectVisible_Vec2", + "ret": "bool", + "signature": "(const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igIsWindowAppearing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsWindowAppearing", + "defaults": {}, + "funcname": "IsWindowAppearing", + "location": "imgui:353", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowAppearing", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsWindowCollapsed": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsWindowCollapsed", + "defaults": {}, + "funcname": "IsWindowCollapsed", + "location": "imgui:354", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowCollapsed", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsWindowDocked": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsWindowDocked", + "defaults": {}, + "funcname": "IsWindowDocked", + "location": "imgui:820", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowDocked", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsWindowFocused": [ + { + "args": "(ImGuiFocusedFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiFocusedFlags" + } + ], + "argsoriginal": "(ImGuiFocusedFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igIsWindowFocused", + "defaults": { + "flags": "0" + }, + "funcname": "IsWindowFocused", + "location": "imgui:355", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowFocused", + "ret": "bool", + "signature": "(ImGuiFocusedFlags)", + "stname": "" + } + ], + "igIsWindowHovered": [ + { + "args": "(ImGuiHoveredFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiHoveredFlags" + } + ], + "argsoriginal": "(ImGuiHoveredFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igIsWindowHovered", + "defaults": { + "flags": "0" + }, + "funcname": "IsWindowHovered", + "location": "imgui:356", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowHovered", + "ret": "bool", + "signature": "(ImGuiHoveredFlags)", + "stname": "" + } + ], + "igLabelText": [ + { + "args": "(const char* label,const char* fmt,...)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* label,const char* fmt,...)", + "call_args": "(label,fmt,...)", + "cimguiname": "igLabelText", + "defaults": {}, + "funcname": "LabelText", + "isvararg": "...)", + "location": "imgui:501", + "namespace": "ImGui", + "ov_cimguiname": "igLabelText", + "ret": "void", + "signature": "(const char*,const char*,...)", + "stname": "" + } + ], + "igLabelTextV": [ + { + "args": "(const char* label,const char* fmt,va_list args)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* label,const char* fmt,va_list args)", + "call_args": "(label,fmt,args)", + "cimguiname": "igLabelTextV", + "defaults": {}, + "funcname": "LabelTextV", + "location": "imgui:502", + "namespace": "ImGui", + "ov_cimguiname": "igLabelTextV", + "ret": "void", + "signature": "(const char*,const char*,va_list)", + "stname": "" + } + ], + "igListBox": [ + { + "args": "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items", + "type": "const char* const[]" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items=-1)", + "call_args": "(label,current_item,items,items_count,height_in_items)", + "cimguiname": "igListBox", + "defaults": { + "height_in_items": "-1" + }, + "funcname": "ListBox", + "location": "imgui:643", + "namespace": "ImGui", + "ov_cimguiname": "igListBox_Str_arr", + "ret": "bool", + "signature": "(const char*,int*,const char* const[],int,int)", + "stname": "" + }, + { + "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items_getter", + "ret": "bool", + "signature": "(void* data,int idx,const char** out_text)", + "type": "bool(*)(void* data,int idx,const char** out_text)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items=-1)", + "call_args": "(label,current_item,items_getter,data,items_count,height_in_items)", + "cimguiname": "igListBox", + "defaults": { + "height_in_items": "-1" + }, + "funcname": "ListBox", + "location": "imgui:644", + "namespace": "ImGui", + "ov_cimguiname": "igListBox_FnBoolPtr", + "ret": "bool", + "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", + "stname": "" + } + ], + "igLoadIniSettingsFromDisk": [ + { + "args": "(const char* ini_filename)", + "argsT": [ + { + "name": "ini_filename", + "type": "const char*" + } + ], + "argsoriginal": "(const char* ini_filename)", + "call_args": "(ini_filename)", + "cimguiname": "igLoadIniSettingsFromDisk", + "defaults": {}, + "funcname": "LoadIniSettingsFromDisk", + "location": "imgui:959", + "namespace": "ImGui", + "ov_cimguiname": "igLoadIniSettingsFromDisk", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igLoadIniSettingsFromMemory": [ + { + "args": "(const char* ini_data,size_t ini_size)", + "argsT": [ + { + "name": "ini_data", + "type": "const char*" + }, + { + "name": "ini_size", + "type": "size_t" + } + ], + "argsoriginal": "(const char* ini_data,size_t ini_size=0)", + "call_args": "(ini_data,ini_size)", + "cimguiname": "igLoadIniSettingsFromMemory", + "defaults": { + "ini_size": "0" + }, + "funcname": "LoadIniSettingsFromMemory", + "location": "imgui:960", + "namespace": "ImGui", + "ov_cimguiname": "igLoadIniSettingsFromMemory", + "ret": "void", + "signature": "(const char*,size_t)", + "stname": "" + } + ], + "igLogButtons": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igLogButtons", + "defaults": {}, + "funcname": "LogButtons", + "location": "imgui:828", + "namespace": "ImGui", + "ov_cimguiname": "igLogButtons", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igLogFinish": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igLogFinish", + "defaults": {}, + "funcname": "LogFinish", + "location": "imgui:827", + "namespace": "ImGui", + "ov_cimguiname": "igLogFinish", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igLogText": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igLogText", + "defaults": {}, + "funcname": "LogText", + "isvararg": "...)", + "location": "imgui:829", + "manual": true, + "namespace": "ImGui", + "ov_cimguiname": "igLogText", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igLogTextV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igLogTextV", + "defaults": {}, + "funcname": "LogTextV", + "location": "imgui:830", + "namespace": "ImGui", + "ov_cimguiname": "igLogTextV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igLogToClipboard": [ + { + "args": "(int auto_open_depth)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + } + ], + "argsoriginal": "(int auto_open_depth=-1)", + "call_args": "(auto_open_depth)", + "cimguiname": "igLogToClipboard", + "defaults": { + "auto_open_depth": "-1" + }, + "funcname": "LogToClipboard", + "location": "imgui:826", + "namespace": "ImGui", + "ov_cimguiname": "igLogToClipboard", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igLogToFile": [ + { + "args": "(int auto_open_depth,const char* filename)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + }, + { + "name": "filename", + "type": "const char*" + } + ], + "argsoriginal": "(int auto_open_depth=-1,const char* filename=((void*)0))", + "call_args": "(auto_open_depth,filename)", + "cimguiname": "igLogToFile", + "defaults": { + "auto_open_depth": "-1", + "filename": "NULL" + }, + "funcname": "LogToFile", + "location": "imgui:825", + "namespace": "ImGui", + "ov_cimguiname": "igLogToFile", + "ret": "void", + "signature": "(int,const char*)", + "stname": "" + } + ], + "igLogToTTY": [ + { + "args": "(int auto_open_depth)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + } + ], + "argsoriginal": "(int auto_open_depth=-1)", + "call_args": "(auto_open_depth)", + "cimguiname": "igLogToTTY", + "defaults": { + "auto_open_depth": "-1" + }, + "funcname": "LogToTTY", + "location": "imgui:824", + "namespace": "ImGui", + "ov_cimguiname": "igLogToTTY", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igMemAlloc": [ + { + "args": "(size_t size)", + "argsT": [ + { + "name": "size", + "type": "size_t" + } + ], + "argsoriginal": "(size_t size)", + "call_args": "(size)", + "cimguiname": "igMemAlloc", + "defaults": {}, + "funcname": "MemAlloc", + "location": "imgui:974", + "namespace": "ImGui", + "ov_cimguiname": "igMemAlloc", + "ret": "void*", + "signature": "(size_t)", + "stname": "" + } + ], + "igMemFree": [ + { + "args": "(void* ptr)", + "argsT": [ + { + "name": "ptr", + "type": "void*" + } + ], + "argsoriginal": "(void* ptr)", + "call_args": "(ptr)", + "cimguiname": "igMemFree", + "defaults": {}, + "funcname": "MemFree", + "location": "imgui:975", + "namespace": "ImGui", + "ov_cimguiname": "igMemFree", + "ret": "void", + "signature": "(void*)", + "stname": "" + } + ], + "igMenuItem": [ + { + "args": "(const char* label,const char* shortcut,bool selected,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "shortcut", + "type": "const char*" + }, + { + "name": "selected", + "type": "bool" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,const char* shortcut=((void*)0),bool selected=false,bool enabled=true)", + "call_args": "(label,shortcut,selected,enabled)", + "cimguiname": "igMenuItem", + "defaults": { + "enabled": "true", + "selected": "false", + "shortcut": "NULL" + }, + "funcname": "MenuItem", + "location": "imgui:671", + "namespace": "ImGui", + "ov_cimguiname": "igMenuItem_Bool", + "ret": "bool", + "signature": "(const char*,const char*,bool,bool)", + "stname": "" + }, + { + "args": "(const char* label,const char* shortcut,bool* p_selected,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "shortcut", + "type": "const char*" + }, + { + "name": "p_selected", + "type": "bool*" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,const char* shortcut,bool* p_selected,bool enabled=true)", + "call_args": "(label,shortcut,p_selected,enabled)", + "cimguiname": "igMenuItem", + "defaults": { + "enabled": "true" + }, + "funcname": "MenuItem", + "location": "imgui:672", + "namespace": "ImGui", + "ov_cimguiname": "igMenuItem_BoolPtr", + "ret": "bool", + "signature": "(const char*,const char*,bool*,bool)", + "stname": "" + } + ], + "igNewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNewFrame", + "defaults": {}, + "funcname": "NewFrame", + "location": "imgui:302", + "namespace": "ImGui", + "ov_cimguiname": "igNewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igNewLine": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNewLine", + "defaults": {}, + "funcname": "NewLine", + "location": "imgui:449", + "namespace": "ImGui", + "ov_cimguiname": "igNewLine", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igNextColumn": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNextColumn", + "defaults": {}, + "funcname": "NextColumn", + "location": "imgui:785", + "namespace": "ImGui", + "ov_cimguiname": "igNextColumn", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igOpenPopup": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiPopupFlags popup_flags=0)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igOpenPopup", + "defaults": { + "popup_flags": "0" + }, + "funcname": "OpenPopup", + "location": "imgui:705", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopup_Str", + "ret": "void", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + }, + { + "args": "(ImGuiID id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiPopupFlags popup_flags=0)", + "call_args": "(id,popup_flags)", + "cimguiname": "igOpenPopup", + "defaults": { + "popup_flags": "0" + }, + "funcname": "OpenPopup", + "location": "imgui:706", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopup_ID", + "ret": "void", + "signature": "(ImGuiID,ImGuiPopupFlags)", + "stname": "" + } + ], + "igOpenPopupOnItemClick": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igOpenPopupOnItemClick", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "OpenPopupOnItemClick", + "location": "imgui:707", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopupOnItemClick", + "ret": "void", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igPlotHistogram": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values", + "type": "const float*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + }, + { + "name": "stride", + "type": "int" + } + ], + "argsoriginal": "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))", + "call_args": "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)", + "cimguiname": "igPlotHistogram", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "stride": "sizeof(float)", + "values_offset": "0" + }, + "funcname": "PlotHistogram", + "location": "imgui:650", + "namespace": "ImGui", + "ov_cimguiname": "igPlotHistogram_FloatPtr", + "ret": "void", + "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", + "stname": "" + }, + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values_getter", + "ret": "float", + "signature": "(void* data,int idx)", + "type": "float(*)(void* data,int idx)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + } + ], + "argsoriginal": "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))", + "call_args": "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)", + "cimguiname": "igPlotHistogram", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "values_offset": "0" + }, + "funcname": "PlotHistogram", + "location": "imgui:651", + "namespace": "ImGui", + "ov_cimguiname": "igPlotHistogram_FnFloatPtr", + "ret": "void", + "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", + "stname": "" + } + ], + "igPlotLines": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values", + "type": "const float*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + }, + { + "name": "stride", + "type": "int" + } + ], + "argsoriginal": "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))", + "call_args": "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)", + "cimguiname": "igPlotLines", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "stride": "sizeof(float)", + "values_offset": "0" + }, + "funcname": "PlotLines", + "location": "imgui:648", + "namespace": "ImGui", + "ov_cimguiname": "igPlotLines_FloatPtr", + "ret": "void", + "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", + "stname": "" + }, + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values_getter", + "ret": "float", + "signature": "(void* data,int idx)", + "type": "float(*)(void* data,int idx)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + } + ], + "argsoriginal": "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))", + "call_args": "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)", + "cimguiname": "igPlotLines", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "values_offset": "0" + }, + "funcname": "PlotLines", + "location": "imgui:649", + "namespace": "ImGui", + "ov_cimguiname": "igPlotLines_FnFloatPtr", + "ret": "void", + "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", + "stname": "" + } + ], + "igPopAllowKeyboardFocus": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopAllowKeyboardFocus", + "defaults": {}, + "funcname": "PopAllowKeyboardFocus", + "location": "imgui:418", + "namespace": "ImGui", + "ov_cimguiname": "igPopAllowKeyboardFocus", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopButtonRepeat": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopButtonRepeat", + "defaults": {}, + "funcname": "PopButtonRepeat", + "location": "imgui:420", + "namespace": "ImGui", + "ov_cimguiname": "igPopButtonRepeat", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopClipRect": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopClipRect", + "defaults": {}, + "funcname": "PopClipRect", + "location": "imgui:855", + "namespace": "ImGui", + "ov_cimguiname": "igPopClipRect", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopFont": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopFont", + "defaults": {}, + "funcname": "PopFont", + "location": "imgui:410", + "namespace": "ImGui", + "ov_cimguiname": "igPopFont", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopID": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopID", + "defaults": {}, + "funcname": "PopID", + "location": "imgui:486", + "namespace": "ImGui", + "ov_cimguiname": "igPopID", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopItemWidth": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopItemWidth", + "defaults": {}, + "funcname": "PopItemWidth", + "location": "imgui:424", + "namespace": "ImGui", + "ov_cimguiname": "igPopItemWidth", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopStyleColor": [ + { + "args": "(int count)", + "argsT": [ + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(int count=1)", + "call_args": "(count)", + "cimguiname": "igPopStyleColor", + "defaults": { + "count": "1" + }, + "funcname": "PopStyleColor", + "location": "imgui:413", + "namespace": "ImGui", + "ov_cimguiname": "igPopStyleColor", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igPopStyleVar": [ + { + "args": "(int count)", + "argsT": [ + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(int count=1)", + "call_args": "(count)", + "cimguiname": "igPopStyleVar", + "defaults": { + "count": "1" + }, + "funcname": "PopStyleVar", + "location": "imgui:416", + "namespace": "ImGui", + "ov_cimguiname": "igPopStyleVar", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igPopTextWrapPos": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopTextWrapPos", + "defaults": {}, + "funcname": "PopTextWrapPos", + "location": "imgui:428", + "namespace": "ImGui", + "ov_cimguiname": "igPopTextWrapPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igProgressBar": [ + { + "args": "(float fraction,const ImVec2 size_arg,const char* overlay)", + "argsT": [ + { + "name": "fraction", + "type": "float" + }, + { + "name": "size_arg", + "type": "const ImVec2" + }, + { + "name": "overlay", + "type": "const char*" + } + ], + "argsoriginal": "(float fraction,const ImVec2& size_arg=ImVec2(-1.17549435082228750796873653722224568e-38F,0),const char* overlay=((void*)0))", + "call_args": "(fraction,size_arg,overlay)", + "cimguiname": "igProgressBar", + "defaults": { + "overlay": "NULL", + "size_arg": "ImVec2(-FLT_MIN,0)" + }, + "funcname": "ProgressBar", + "location": "imgui:518", + "namespace": "ImGui", + "ov_cimguiname": "igProgressBar", + "ret": "void", + "signature": "(float,const ImVec2,const char*)", + "stname": "" + } + ], + "igPushAllowKeyboardFocus": [ + { + "args": "(bool allow_keyboard_focus)", + "argsT": [ + { + "name": "allow_keyboard_focus", + "type": "bool" + } + ], + "argsoriginal": "(bool allow_keyboard_focus)", + "call_args": "(allow_keyboard_focus)", + "cimguiname": "igPushAllowKeyboardFocus", + "defaults": {}, + "funcname": "PushAllowKeyboardFocus", + "location": "imgui:417", + "namespace": "ImGui", + "ov_cimguiname": "igPushAllowKeyboardFocus", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igPushButtonRepeat": [ + { + "args": "(bool repeat)", + "argsT": [ + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(bool repeat)", + "call_args": "(repeat)", + "cimguiname": "igPushButtonRepeat", + "defaults": {}, + "funcname": "PushButtonRepeat", + "location": "imgui:419", + "namespace": "ImGui", + "ov_cimguiname": "igPushButtonRepeat", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igPushClipRect": [ + { + "args": "(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", + "argsT": [ + { + "name": "clip_rect_min", + "type": "const ImVec2" + }, + { + "name": "clip_rect_max", + "type": "const ImVec2" + }, + { + "name": "intersect_with_current_clip_rect", + "type": "bool" + } + ], + "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect)", + "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", + "cimguiname": "igPushClipRect", + "defaults": {}, + "funcname": "PushClipRect", + "location": "imgui:854", + "namespace": "ImGui", + "ov_cimguiname": "igPushClipRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,bool)", + "stname": "" + } + ], + "igPushFont": [ + { + "args": "(ImFont* font)", + "argsT": [ + { + "name": "font", + "type": "ImFont*" + } + ], + "argsoriginal": "(ImFont* font)", + "call_args": "(font)", + "cimguiname": "igPushFont", + "defaults": {}, + "funcname": "PushFont", + "location": "imgui:409", + "namespace": "ImGui", + "ov_cimguiname": "igPushFont", + "ret": "void", + "signature": "(ImFont*)", + "stname": "" + } + ], + "igPushID": [ + { + "args": "(const char* str_id)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id)", + "call_args": "(str_id)", + "cimguiname": "igPushID", + "defaults": {}, + "funcname": "PushID", + "location": "imgui:482", + "namespace": "ImGui", + "ov_cimguiname": "igPushID_Str", + "ret": "void", + "signature": "(const char*)", + "stname": "" + }, + { + "args": "(const char* str_id_begin,const char* str_id_end)", + "argsT": [ + { + "name": "str_id_begin", + "type": "const char*" + }, + { + "name": "str_id_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id_begin,const char* str_id_end)", + "call_args": "(str_id_begin,str_id_end)", + "cimguiname": "igPushID", + "defaults": {}, + "funcname": "PushID", + "location": "imgui:483", + "namespace": "ImGui", + "ov_cimguiname": "igPushID_StrStr", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "" + }, + { + "args": "(const void* ptr_id)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + } + ], + "argsoriginal": "(const void* ptr_id)", + "call_args": "(ptr_id)", + "cimguiname": "igPushID", + "defaults": {}, + "funcname": "PushID", + "location": "imgui:484", + "namespace": "ImGui", + "ov_cimguiname": "igPushID_Ptr", + "ret": "void", + "signature": "(const void*)", + "stname": "" + }, + { + "args": "(int int_id)", + "argsT": [ + { + "name": "int_id", + "type": "int" + } + ], + "argsoriginal": "(int int_id)", + "call_args": "(int_id)", + "cimguiname": "igPushID", + "defaults": {}, + "funcname": "PushID", + "location": "imgui:485", + "namespace": "ImGui", + "ov_cimguiname": "igPushID_Int", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igPushItemWidth": [ + { + "args": "(float item_width)", + "argsT": [ + { + "name": "item_width", + "type": "float" + } + ], + "argsoriginal": "(float item_width)", + "call_args": "(item_width)", + "cimguiname": "igPushItemWidth", + "defaults": {}, + "funcname": "PushItemWidth", + "location": "imgui:423", + "namespace": "ImGui", + "ov_cimguiname": "igPushItemWidth", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igPushStyleColor": [ + { + "args": "(ImGuiCol idx,ImU32 col)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImGuiCol idx,ImU32 col)", + "call_args": "(idx,col)", + "cimguiname": "igPushStyleColor", + "defaults": {}, + "funcname": "PushStyleColor", + "location": "imgui:411", + "namespace": "ImGui", + "ov_cimguiname": "igPushStyleColor_U32", + "ret": "void", + "signature": "(ImGuiCol,ImU32)", + "stname": "" + }, + { + "args": "(ImGuiCol idx,const ImVec4 col)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + }, + { + "name": "col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(ImGuiCol idx,const ImVec4& col)", + "call_args": "(idx,col)", + "cimguiname": "igPushStyleColor", + "defaults": {}, + "funcname": "PushStyleColor", + "location": "imgui:412", + "namespace": "ImGui", + "ov_cimguiname": "igPushStyleColor_Vec4", + "ret": "void", + "signature": "(ImGuiCol,const ImVec4)", + "stname": "" + } + ], + "igPushStyleVar": [ + { + "args": "(ImGuiStyleVar idx,float val)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiStyleVar" + }, + { + "name": "val", + "type": "float" + } + ], + "argsoriginal": "(ImGuiStyleVar idx,float val)", + "call_args": "(idx,val)", + "cimguiname": "igPushStyleVar", + "defaults": {}, + "funcname": "PushStyleVar", + "location": "imgui:414", + "namespace": "ImGui", + "ov_cimguiname": "igPushStyleVar_Float", + "ret": "void", + "signature": "(ImGuiStyleVar,float)", + "stname": "" + }, + { + "args": "(ImGuiStyleVar idx,const ImVec2 val)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiStyleVar" + }, + { + "name": "val", + "type": "const ImVec2" + } + ], + "argsoriginal": "(ImGuiStyleVar idx,const ImVec2& val)", + "call_args": "(idx,val)", + "cimguiname": "igPushStyleVar", + "defaults": {}, + "funcname": "PushStyleVar", + "location": "imgui:415", + "namespace": "ImGui", + "ov_cimguiname": "igPushStyleVar_Vec2", + "ret": "void", + "signature": "(ImGuiStyleVar,const ImVec2)", + "stname": "" + } + ], + "igPushTextWrapPos": [ + { + "args": "(float wrap_local_pos_x)", + "argsT": [ + { + "name": "wrap_local_pos_x", + "type": "float" + } + ], + "argsoriginal": "(float wrap_local_pos_x=0.0f)", + "call_args": "(wrap_local_pos_x)", + "cimguiname": "igPushTextWrapPos", + "defaults": { + "wrap_local_pos_x": "0.0f" + }, + "funcname": "PushTextWrapPos", + "location": "imgui:427", + "namespace": "ImGui", + "ov_cimguiname": "igPushTextWrapPos", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igRadioButton": [ + { + "args": "(const char* label,bool active)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "active", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,bool active)", + "call_args": "(label,active)", + "cimguiname": "igRadioButton", + "defaults": {}, + "funcname": "RadioButton", + "location": "imgui:516", + "namespace": "ImGui", + "ov_cimguiname": "igRadioButton_Bool", + "ret": "bool", + "signature": "(const char*,bool)", + "stname": "" + }, + { + "args": "(const char* label,int* v,int v_button)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "v_button", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* v,int v_button)", + "call_args": "(label,v,v_button)", + "cimguiname": "igRadioButton", + "defaults": {}, + "funcname": "RadioButton", + "location": "imgui:517", + "namespace": "ImGui", + "ov_cimguiname": "igRadioButton_IntPtr", + "ret": "bool", + "signature": "(const char*,int*,int)", + "stname": "" + } + ], + "igRender": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igRender", + "defaults": {}, + "funcname": "Render", + "location": "imgui:304", + "namespace": "ImGui", + "ov_cimguiname": "igRender", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igRenderPlatformWindowsDefault": [ + { + "args": "(void* platform_render_arg,void* renderer_render_arg)", + "argsT": [ + { + "name": "platform_render_arg", + "type": "void*" + }, + { + "name": "renderer_render_arg", + "type": "void*" + } + ], + "argsoriginal": "(void* platform_render_arg=((void*)0),void* renderer_render_arg=((void*)0))", + "call_args": "(platform_render_arg,renderer_render_arg)", + "cimguiname": "igRenderPlatformWindowsDefault", + "defaults": { + "platform_render_arg": "NULL", + "renderer_render_arg": "NULL" + }, + "funcname": "RenderPlatformWindowsDefault", + "location": "imgui:982", + "namespace": "ImGui", + "ov_cimguiname": "igRenderPlatformWindowsDefault", + "ret": "void", + "signature": "(void*,void*)", + "stname": "" + } + ], + "igResetMouseDragDelta": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button=0)", + "call_args": "(button)", + "cimguiname": "igResetMouseDragDelta", + "defaults": { + "button": "0" + }, + "funcname": "ResetMouseDragDelta", + "location": "imgui:945", + "namespace": "ImGui", + "ov_cimguiname": "igResetMouseDragDelta", + "ret": "void", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igSameLine": [ + { + "args": "(float offset_from_start_x,float spacing)", + "argsT": [ + { + "name": "offset_from_start_x", + "type": "float" + }, + { + "name": "spacing", + "type": "float" + } + ], + "argsoriginal": "(float offset_from_start_x=0.0f,float spacing=-1.0f)", + "call_args": "(offset_from_start_x,spacing)", + "cimguiname": "igSameLine", + "defaults": { + "offset_from_start_x": "0.0f", + "spacing": "-1.0f" + }, + "funcname": "SameLine", + "location": "imgui:448", + "namespace": "ImGui", + "ov_cimguiname": "igSameLine", + "ret": "void", + "signature": "(float,float)", + "stname": "" + } + ], + "igSaveIniSettingsToDisk": [ + { + "args": "(const char* ini_filename)", + "argsT": [ + { + "name": "ini_filename", + "type": "const char*" + } + ], + "argsoriginal": "(const char* ini_filename)", + "call_args": "(ini_filename)", + "cimguiname": "igSaveIniSettingsToDisk", + "defaults": {}, + "funcname": "SaveIniSettingsToDisk", + "location": "imgui:961", + "namespace": "ImGui", + "ov_cimguiname": "igSaveIniSettingsToDisk", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igSaveIniSettingsToMemory": [ + { + "args": "(size_t* out_ini_size)", + "argsT": [ + { + "name": "out_ini_size", + "type": "size_t*" + } + ], + "argsoriginal": "(size_t* out_ini_size=((void*)0))", + "call_args": "(out_ini_size)", + "cimguiname": "igSaveIniSettingsToMemory", + "defaults": { + "out_ini_size": "NULL" + }, + "funcname": "SaveIniSettingsToMemory", + "location": "imgui:962", + "namespace": "ImGui", + "ov_cimguiname": "igSaveIniSettingsToMemory", + "ret": "const char*", + "signature": "(size_t*)", + "stname": "" + } + ], + "igSelectable": [ + { + "args": "(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "selected", + "type": "bool" + }, + { + "name": "flags", + "type": "ImGuiSelectableFlags" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,bool selected=false,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,selected,flags,size)", + "cimguiname": "igSelectable", + "defaults": { + "flags": "0", + "selected": "false", + "size": "ImVec2(0,0)" + }, + "funcname": "Selectable", + "location": "imgui:632", + "namespace": "ImGui", + "ov_cimguiname": "igSelectable_Bool", + "ret": "bool", + "signature": "(const char*,bool,ImGuiSelectableFlags,const ImVec2)", + "stname": "" + }, + { + "args": "(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_selected", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiSelectableFlags" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,bool* p_selected,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,p_selected,flags,size)", + "cimguiname": "igSelectable", + "defaults": { + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "Selectable", + "location": "imgui:633", + "namespace": "ImGui", + "ov_cimguiname": "igSelectable_BoolPtr", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)", + "stname": "" + } + ], + "igSeparator": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSeparator", + "defaults": {}, + "funcname": "Separator", + "location": "imgui:447", + "namespace": "ImGui", + "ov_cimguiname": "igSeparator", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetAllocatorFunctions": [ + { + "args": "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)", + "argsT": [ + { + "name": "alloc_func", + "type": "ImGuiMemAllocFunc" + }, + { + "name": "free_func", + "type": "ImGuiMemFreeFunc" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data=((void*)0))", + "call_args": "(alloc_func,free_func,user_data)", + "cimguiname": "igSetAllocatorFunctions", + "defaults": { + "user_data": "NULL" + }, + "funcname": "SetAllocatorFunctions", + "location": "imgui:972", + "namespace": "ImGui", + "ov_cimguiname": "igSetAllocatorFunctions", + "ret": "void", + "signature": "(ImGuiMemAllocFunc,ImGuiMemFreeFunc,void*)", + "stname": "" + } + ], + "igSetClipboardText": [ + { + "args": "(const char* text)", + "argsT": [ + { + "name": "text", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text)", + "call_args": "(text)", + "cimguiname": "igSetClipboardText", + "defaults": {}, + "funcname": "SetClipboardText", + "location": "imgui:953", + "namespace": "ImGui", + "ov_cimguiname": "igSetClipboardText", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igSetColorEditOptions": [ + { + "args": "(ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(ImGuiColorEditFlags flags)", + "call_args": "(flags)", + "cimguiname": "igSetColorEditOptions", + "defaults": {}, + "funcname": "SetColorEditOptions", + "location": "imgui:607", + "namespace": "ImGui", + "ov_cimguiname": "igSetColorEditOptions", + "ret": "void", + "signature": "(ImGuiColorEditFlags)", + "stname": "" + } + ], + "igSetColumnOffset": [ + { + "args": "(int column_index,float offset_x)", + "argsT": [ + { + "name": "column_index", + "type": "int" + }, + { + "name": "offset_x", + "type": "float" + } + ], + "argsoriginal": "(int column_index,float offset_x)", + "call_args": "(column_index,offset_x)", + "cimguiname": "igSetColumnOffset", + "defaults": {}, + "funcname": "SetColumnOffset", + "location": "imgui:790", + "namespace": "ImGui", + "ov_cimguiname": "igSetColumnOffset", + "ret": "void", + "signature": "(int,float)", + "stname": "" + } + ], + "igSetColumnWidth": [ + { + "args": "(int column_index,float width)", + "argsT": [ + { + "name": "column_index", + "type": "int" + }, + { + "name": "width", + "type": "float" + } + ], + "argsoriginal": "(int column_index,float width)", + "call_args": "(column_index,width)", + "cimguiname": "igSetColumnWidth", + "defaults": {}, + "funcname": "SetColumnWidth", + "location": "imgui:788", + "namespace": "ImGui", + "ov_cimguiname": "igSetColumnWidth", + "ret": "void", + "signature": "(int,float)", + "stname": "" + } + ], + "igSetCurrentContext": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igSetCurrentContext", + "defaults": {}, + "funcname": "SetCurrentContext", + "location": "imgui:297", + "namespace": "ImGui", + "ov_cimguiname": "igSetCurrentContext", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igSetCursorPos": [ + { + "args": "(const ImVec2 local_pos)", + "argsT": [ + { + "name": "local_pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& local_pos)", + "call_args": "(local_pos)", + "cimguiname": "igSetCursorPos", + "defaults": {}, + "funcname": "SetCursorPos", + "location": "imgui:459", + "namespace": "ImGui", + "ov_cimguiname": "igSetCursorPos", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igSetCursorPosX": [ + { + "args": "(float local_x)", + "argsT": [ + { + "name": "local_x", + "type": "float" + } + ], + "argsoriginal": "(float local_x)", + "call_args": "(local_x)", + "cimguiname": "igSetCursorPosX", + "defaults": {}, + "funcname": "SetCursorPosX", + "location": "imgui:460", + "namespace": "ImGui", + "ov_cimguiname": "igSetCursorPosX", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetCursorPosY": [ + { + "args": "(float local_y)", + "argsT": [ + { + "name": "local_y", + "type": "float" + } + ], + "argsoriginal": "(float local_y)", + "call_args": "(local_y)", + "cimguiname": "igSetCursorPosY", + "defaults": {}, + "funcname": "SetCursorPosY", + "location": "imgui:461", + "namespace": "ImGui", + "ov_cimguiname": "igSetCursorPosY", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetCursorScreenPos": [ + { + "args": "(const ImVec2 pos)", + "argsT": [ + { + "name": "pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "igSetCursorScreenPos", + "defaults": {}, + "funcname": "SetCursorScreenPos", + "location": "imgui:464", + "namespace": "ImGui", + "ov_cimguiname": "igSetCursorScreenPos", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igSetDragDropPayload": [ + { + "args": "(const char* type,const void* data,size_t sz,ImGuiCond cond)", + "argsT": [ + { + "name": "type", + "type": "const char*" + }, + { + "name": "data", + "type": "const void*" + }, + { + "name": "sz", + "type": "size_t" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const char* type,const void* data,size_t sz,ImGuiCond cond=0)", + "call_args": "(type,data,sz,cond)", + "cimguiname": "igSetDragDropPayload", + "defaults": { + "cond": "0" + }, + "funcname": "SetDragDropPayload", + "location": "imgui:838", + "namespace": "ImGui", + "ov_cimguiname": "igSetDragDropPayload", + "ret": "bool", + "signature": "(const char*,const void*,size_t,ImGuiCond)", + "stname": "" + } + ], + "igSetItemAllowOverlap": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetItemAllowOverlap", + "defaults": {}, + "funcname": "SetItemAllowOverlap", + "location": "imgui:881", + "namespace": "ImGui", + "ov_cimguiname": "igSetItemAllowOverlap", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetItemDefaultFocus": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetItemDefaultFocus", + "defaults": {}, + "funcname": "SetItemDefaultFocus", + "location": "imgui:859", + "namespace": "ImGui", + "ov_cimguiname": "igSetItemDefaultFocus", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetKeyboardFocusHere": [ + { + "args": "(int offset)", + "argsT": [ + { + "name": "offset", + "type": "int" + } + ], + "argsoriginal": "(int offset=0)", + "call_args": "(offset)", + "cimguiname": "igSetKeyboardFocusHere", + "defaults": { + "offset": "0" + }, + "funcname": "SetKeyboardFocusHere", + "location": "imgui:860", + "namespace": "ImGui", + "ov_cimguiname": "igSetKeyboardFocusHere", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igSetMouseCursor": [ + { + "args": "(ImGuiMouseCursor cursor_type)", + "argsT": [ + { + "name": "cursor_type", + "type": "ImGuiMouseCursor" + } + ], + "argsoriginal": "(ImGuiMouseCursor cursor_type)", + "call_args": "(cursor_type)", + "cimguiname": "igSetMouseCursor", + "defaults": {}, + "funcname": "SetMouseCursor", + "location": "imgui:947", + "namespace": "ImGui", + "ov_cimguiname": "igSetMouseCursor", + "ret": "void", + "signature": "(ImGuiMouseCursor)", + "stname": "" + } + ], + "igSetNextFrameWantCaptureKeyboard": [ + { + "args": "(bool want_capture_keyboard)", + "argsT": [ + { + "name": "want_capture_keyboard", + "type": "bool" + } + ], + "argsoriginal": "(bool want_capture_keyboard)", + "call_args": "(want_capture_keyboard)", + "cimguiname": "igSetNextFrameWantCaptureKeyboard", + "defaults": {}, + "funcname": "SetNextFrameWantCaptureKeyboard", + "location": "imgui:927", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextFrameWantCaptureKeyboard", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igSetNextFrameWantCaptureMouse": [ + { + "args": "(bool want_capture_mouse)", + "argsT": [ + { + "name": "want_capture_mouse", + "type": "bool" + } + ], + "argsoriginal": "(bool want_capture_mouse)", + "call_args": "(want_capture_mouse)", + "cimguiname": "igSetNextFrameWantCaptureMouse", + "defaults": {}, + "funcname": "SetNextFrameWantCaptureMouse", + "location": "imgui:948", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextFrameWantCaptureMouse", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igSetNextItemOpen": [ + { + "args": "(bool is_open,ImGuiCond cond)", + "argsT": [ + { + "name": "is_open", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(bool is_open,ImGuiCond cond=0)", + "call_args": "(is_open,cond)", + "cimguiname": "igSetNextItemOpen", + "defaults": { + "cond": "0" + }, + "funcname": "SetNextItemOpen", + "location": "imgui:627", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextItemOpen", + "ret": "void", + "signature": "(bool,ImGuiCond)", + "stname": "" + } + ], + "igSetNextItemWidth": [ + { + "args": "(float item_width)", + "argsT": [ + { + "name": "item_width", + "type": "float" + } + ], + "argsoriginal": "(float item_width)", + "call_args": "(item_width)", + "cimguiname": "igSetNextItemWidth", + "defaults": {}, + "funcname": "SetNextItemWidth", + "location": "imgui:425", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextItemWidth", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetNextWindowBgAlpha": [ + { + "args": "(float alpha)", + "argsT": [ + { + "name": "alpha", + "type": "float" + } + ], + "argsoriginal": "(float alpha)", + "call_args": "(alpha)", + "cimguiname": "igSetNextWindowBgAlpha", + "defaults": {}, + "funcname": "SetNextWindowBgAlpha", + "location": "imgui:374", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowBgAlpha", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetNextWindowClass": [ + { + "args": "(const ImGuiWindowClass* window_class)", + "argsT": [ + { + "name": "window_class", + "type": "const ImGuiWindowClass*" + } + ], + "argsoriginal": "(const ImGuiWindowClass* window_class)", + "call_args": "(window_class)", + "cimguiname": "igSetNextWindowClass", + "defaults": {}, + "funcname": "SetNextWindowClass", + "location": "imgui:818", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowClass", + "ret": "void", + "signature": "(const ImGuiWindowClass*)", + "stname": "" + } + ], + "igSetNextWindowCollapsed": [ + { + "args": "(bool collapsed,ImGuiCond cond)", + "argsT": [ + { + "name": "collapsed", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(bool collapsed,ImGuiCond cond=0)", + "call_args": "(collapsed,cond)", + "cimguiname": "igSetNextWindowCollapsed", + "defaults": { + "cond": "0" + }, + "funcname": "SetNextWindowCollapsed", + "location": "imgui:371", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowCollapsed", + "ret": "void", + "signature": "(bool,ImGuiCond)", + "stname": "" + } + ], + "igSetNextWindowContentSize": [ + { + "args": "(const ImVec2 size)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& size)", + "call_args": "(size)", + "cimguiname": "igSetNextWindowContentSize", + "defaults": {}, + "funcname": "SetNextWindowContentSize", + "location": "imgui:370", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowContentSize", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igSetNextWindowDockID": [ + { + "args": "(ImGuiID dock_id,ImGuiCond cond)", + "argsT": [ + { + "name": "dock_id", + "type": "ImGuiID" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(ImGuiID dock_id,ImGuiCond cond=0)", + "call_args": "(dock_id,cond)", + "cimguiname": "igSetNextWindowDockID", + "defaults": { + "cond": "0" + }, + "funcname": "SetNextWindowDockID", + "location": "imgui:817", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowDockID", + "ret": "void", + "signature": "(ImGuiID,ImGuiCond)", + "stname": "" + } + ], + "igSetNextWindowFocus": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetNextWindowFocus", + "defaults": {}, + "funcname": "SetNextWindowFocus", + "location": "imgui:372", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowFocus", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetNextWindowPos": [ + { + "args": "(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot)", + "argsT": [ + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + }, + { + "name": "pivot", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos,ImGuiCond cond=0,const ImVec2& pivot=ImVec2(0,0))", + "call_args": "(pos,cond,pivot)", + "cimguiname": "igSetNextWindowPos", + "defaults": { + "cond": "0", + "pivot": "ImVec2(0,0)" + }, + "funcname": "SetNextWindowPos", + "location": "imgui:367", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowPos", + "ret": "void", + "signature": "(const ImVec2,ImGuiCond,const ImVec2)", + "stname": "" + } + ], + "igSetNextWindowScroll": [ + { + "args": "(const ImVec2 scroll)", + "argsT": [ + { + "name": "scroll", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& scroll)", + "call_args": "(scroll)", + "cimguiname": "igSetNextWindowScroll", + "defaults": {}, + "funcname": "SetNextWindowScroll", + "location": "imgui:373", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowScroll", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igSetNextWindowSize": [ + { + "args": "(const ImVec2 size,ImGuiCond cond)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(size,cond)", + "cimguiname": "igSetNextWindowSize", + "defaults": { + "cond": "0" + }, + "funcname": "SetNextWindowSize", + "location": "imgui:368", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowSize", + "ret": "void", + "signature": "(const ImVec2,ImGuiCond)", + "stname": "" + } + ], + "igSetNextWindowSizeConstraints": [ + { + "args": "(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data)", + "argsT": [ + { + "name": "size_min", + "type": "const ImVec2" + }, + { + "name": "size_max", + "type": "const ImVec2" + }, + { + "name": "custom_callback", + "type": "ImGuiSizeCallback" + }, + { + "name": "custom_callback_data", + "type": "void*" + } + ], + "argsoriginal": "(const ImVec2& size_min,const ImVec2& size_max,ImGuiSizeCallback custom_callback=((void*)0),void* custom_callback_data=((void*)0))", + "call_args": "(size_min,size_max,custom_callback,custom_callback_data)", + "cimguiname": "igSetNextWindowSizeConstraints", + "defaults": { + "custom_callback": "NULL", + "custom_callback_data": "NULL" + }, + "funcname": "SetNextWindowSizeConstraints", + "location": "imgui:369", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowSizeConstraints", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImGuiSizeCallback,void*)", + "stname": "" + } + ], + "igSetNextWindowViewport": [ + { + "args": "(ImGuiID viewport_id)", + "argsT": [ + { + "name": "viewport_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID viewport_id)", + "call_args": "(viewport_id)", + "cimguiname": "igSetNextWindowViewport", + "defaults": {}, + "funcname": "SetNextWindowViewport", + "location": "imgui:375", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowViewport", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igSetScrollFromPosX": [ + { + "args": "(float local_x,float center_x_ratio)", + "argsT": [ + { + "name": "local_x", + "type": "float" + }, + { + "name": "center_x_ratio", + "type": "float" + } + ], + "argsoriginal": "(float local_x,float center_x_ratio=0.5f)", + "call_args": "(local_x,center_x_ratio)", + "cimguiname": "igSetScrollFromPosX", + "defaults": { + "center_x_ratio": "0.5f" + }, + "funcname": "SetScrollFromPosX", + "location": "imgui:405", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollFromPosX", + "ret": "void", + "signature": "(float,float)", + "stname": "" + } + ], + "igSetScrollFromPosY": [ + { + "args": "(float local_y,float center_y_ratio)", + "argsT": [ + { + "name": "local_y", + "type": "float" + }, + { + "name": "center_y_ratio", + "type": "float" + } + ], + "argsoriginal": "(float local_y,float center_y_ratio=0.5f)", + "call_args": "(local_y,center_y_ratio)", + "cimguiname": "igSetScrollFromPosY", + "defaults": { + "center_y_ratio": "0.5f" + }, + "funcname": "SetScrollFromPosY", + "location": "imgui:406", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollFromPosY", + "ret": "void", + "signature": "(float,float)", + "stname": "" + } + ], + "igSetScrollHereX": [ + { + "args": "(float center_x_ratio)", + "argsT": [ + { + "name": "center_x_ratio", + "type": "float" + } + ], + "argsoriginal": "(float center_x_ratio=0.5f)", + "call_args": "(center_x_ratio)", + "cimguiname": "igSetScrollHereX", + "defaults": { + "center_x_ratio": "0.5f" + }, + "funcname": "SetScrollHereX", + "location": "imgui:403", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollHereX", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetScrollHereY": [ + { + "args": "(float center_y_ratio)", + "argsT": [ + { + "name": "center_y_ratio", + "type": "float" + } + ], + "argsoriginal": "(float center_y_ratio=0.5f)", + "call_args": "(center_y_ratio)", + "cimguiname": "igSetScrollHereY", + "defaults": { + "center_y_ratio": "0.5f" + }, + "funcname": "SetScrollHereY", + "location": "imgui:404", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollHereY", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetScrollX": [ + { + "args": "(float scroll_x)", + "argsT": [ + { + "name": "scroll_x", + "type": "float" + } + ], + "argsoriginal": "(float scroll_x)", + "call_args": "(scroll_x)", + "cimguiname": "igSetScrollX", + "defaults": {}, + "funcname": "SetScrollX", + "location": "imgui:399", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollX", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetScrollY": [ + { + "args": "(float scroll_y)", + "argsT": [ + { + "name": "scroll_y", + "type": "float" + } + ], + "argsoriginal": "(float scroll_y)", + "call_args": "(scroll_y)", + "cimguiname": "igSetScrollY", + "defaults": {}, + "funcname": "SetScrollY", + "location": "imgui:400", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollY", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetStateStorage": [ + { + "args": "(ImGuiStorage* storage)", + "argsT": [ + { + "name": "storage", + "type": "ImGuiStorage*" + } + ], + "argsoriginal": "(ImGuiStorage* storage)", + "call_args": "(storage)", + "cimguiname": "igSetStateStorage", + "defaults": {}, + "funcname": "SetStateStorage", + "location": "imgui:902", + "namespace": "ImGui", + "ov_cimguiname": "igSetStateStorage", + "ret": "void", + "signature": "(ImGuiStorage*)", + "stname": "" + } + ], + "igSetTabItemClosed": [ + { + "args": "(const char* tab_or_docked_window_label)", + "argsT": [ + { + "name": "tab_or_docked_window_label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* tab_or_docked_window_label)", + "call_args": "(tab_or_docked_window_label)", + "cimguiname": "igSetTabItemClosed", + "defaults": {}, + "funcname": "SetTabItemClosed", + "location": "imgui:800", + "namespace": "ImGui", + "ov_cimguiname": "igSetTabItemClosed", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igSetTooltip": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igSetTooltip", + "defaults": {}, + "funcname": "SetTooltip", + "isvararg": "...)", + "location": "imgui:678", + "namespace": "ImGui", + "ov_cimguiname": "igSetTooltip", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igSetTooltipV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igSetTooltipV", + "defaults": {}, + "funcname": "SetTooltipV", + "location": "imgui:679", + "namespace": "ImGui", + "ov_cimguiname": "igSetTooltipV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igSetWindowCollapsed": [ + { + "args": "(bool collapsed,ImGuiCond cond)", + "argsT": [ + { + "name": "collapsed", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(bool collapsed,ImGuiCond cond=0)", + "call_args": "(collapsed,cond)", + "cimguiname": "igSetWindowCollapsed", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowCollapsed", + "location": "imgui:378", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowCollapsed_Bool", + "ret": "void", + "signature": "(bool,ImGuiCond)", + "stname": "" + }, + { + "args": "(const char* name,bool collapsed,ImGuiCond cond)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "collapsed", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const char* name,bool collapsed,ImGuiCond cond=0)", + "call_args": "(name,collapsed,cond)", + "cimguiname": "igSetWindowCollapsed", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowCollapsed", + "location": "imgui:383", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowCollapsed_Str", + "ret": "void", + "signature": "(const char*,bool,ImGuiCond)", + "stname": "" + } + ], + "igSetWindowFocus": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetWindowFocus", + "defaults": {}, + "funcname": "SetWindowFocus", + "location": "imgui:379", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowFocus_Nil", + "ret": "void", + "signature": "()", + "stname": "" + }, + { + "args": "(const char* name)", + "argsT": [ + { + "name": "name", + "type": "const char*" + } + ], + "argsoriginal": "(const char* name)", + "call_args": "(name)", + "cimguiname": "igSetWindowFocus", + "defaults": {}, + "funcname": "SetWindowFocus", + "location": "imgui:384", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowFocus_Str", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igSetWindowFontScale": [ + { + "args": "(float scale)", + "argsT": [ + { + "name": "scale", + "type": "float" + } + ], + "argsoriginal": "(float scale)", + "call_args": "(scale)", + "cimguiname": "igSetWindowFontScale", + "defaults": {}, + "funcname": "SetWindowFontScale", + "location": "imgui:380", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowFontScale", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetWindowPos": [ + { + "args": "(const ImVec2 pos,ImGuiCond cond)", + "argsT": [ + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const ImVec2& pos,ImGuiCond cond=0)", + "call_args": "(pos,cond)", + "cimguiname": "igSetWindowPos", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowPos", + "location": "imgui:376", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowPos_Vec2", + "ret": "void", + "signature": "(const ImVec2,ImGuiCond)", + "stname": "" + }, + { + "args": "(const char* name,const ImVec2 pos,ImGuiCond cond)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const char* name,const ImVec2& pos,ImGuiCond cond=0)", + "call_args": "(name,pos,cond)", + "cimguiname": "igSetWindowPos", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowPos", + "location": "imgui:381", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowPos_Str", + "ret": "void", + "signature": "(const char*,const ImVec2,ImGuiCond)", + "stname": "" + } + ], + "igSetWindowSize": [ + { + "args": "(const ImVec2 size,ImGuiCond cond)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(size,cond)", + "cimguiname": "igSetWindowSize", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowSize", + "location": "imgui:377", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowSize_Vec2", + "ret": "void", + "signature": "(const ImVec2,ImGuiCond)", + "stname": "" + }, + { + "args": "(const char* name,const ImVec2 size,ImGuiCond cond)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const char* name,const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(name,size,cond)", + "cimguiname": "igSetWindowSize", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowSize", + "location": "imgui:382", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowSize_Str", + "ret": "void", + "signature": "(const char*,const ImVec2,ImGuiCond)", + "stname": "" + } + ], + "igShowAboutWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowAboutWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowAboutWindow", + "location": "imgui:312", + "namespace": "ImGui", + "ov_cimguiname": "igShowAboutWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowDebugLogWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowDebugLogWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowDebugLogWindow", + "location": "imgui:310", + "namespace": "ImGui", + "ov_cimguiname": "igShowDebugLogWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowDemoWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowDemoWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowDemoWindow", + "location": "imgui:308", + "namespace": "ImGui", + "ov_cimguiname": "igShowDemoWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowFontSelector": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igShowFontSelector", + "defaults": {}, + "funcname": "ShowFontSelector", + "location": "imgui:315", + "namespace": "ImGui", + "ov_cimguiname": "igShowFontSelector", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igShowMetricsWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowMetricsWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowMetricsWindow", + "location": "imgui:309", + "namespace": "ImGui", + "ov_cimguiname": "igShowMetricsWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowStackToolWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowStackToolWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowStackToolWindow", + "location": "imgui:311", + "namespace": "ImGui", + "ov_cimguiname": "igShowStackToolWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowStyleEditor": [ + { + "args": "(ImGuiStyle* ref)", + "argsT": [ + { + "name": "ref", + "type": "ImGuiStyle*" + } + ], + "argsoriginal": "(ImGuiStyle* ref=((void*)0))", + "call_args": "(ref)", + "cimguiname": "igShowStyleEditor", + "defaults": { + "ref": "NULL" + }, + "funcname": "ShowStyleEditor", + "location": "imgui:313", + "namespace": "ImGui", + "ov_cimguiname": "igShowStyleEditor", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "" + } + ], + "igShowStyleSelector": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igShowStyleSelector", + "defaults": {}, + "funcname": "ShowStyleSelector", + "location": "imgui:314", + "namespace": "ImGui", + "ov_cimguiname": "igShowStyleSelector", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + } + ], + "igShowUserGuide": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igShowUserGuide", + "defaults": {}, + "funcname": "ShowUserGuide", + "location": "imgui:316", + "namespace": "ImGui", + "ov_cimguiname": "igShowUserGuide", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSliderAngle": [ + { + "args": "(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v_rad", + "type": "float*" + }, + { + "name": "v_degrees_min", + "type": "float" + }, + { + "name": "v_degrees_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v_rad,float v_degrees_min=-360.0f,float v_degrees_max=+360.0f,const char* format=\"%.0f deg\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v_rad,v_degrees_min,v_degrees_max,format,flags)", + "cimguiname": "igSliderAngle", + "defaults": { + "flags": "0", + "format": "\"%.0f deg\"", + "v_degrees_max": "+360.0f", + "v_degrees_min": "-360.0f" + }, + "funcname": "SliderAngle", + "location": "imgui:570", + "namespace": "ImGui", + "ov_cimguiname": "igSliderAngle", + "ret": "bool", + "signature": "(const char*,float*,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderFloat": [ + { + "args": "(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float*" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat", + "location": "imgui:566", + "namespace": "ImGui", + "ov_cimguiname": "igSliderFloat", + "ret": "bool", + "signature": "(const char*,float*,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderFloat2": [ + { + "args": "(const char* label,float v[2],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[2]" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[2],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat2", + "location": "imgui:567", + "namespace": "ImGui", + "ov_cimguiname": "igSliderFloat2", + "ret": "bool", + "signature": "(const char*,float[2],float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderFloat3": [ + { + "args": "(const char* label,float v[3],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[3]" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[3],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat3", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat3", + "location": "imgui:568", + "namespace": "ImGui", + "ov_cimguiname": "igSliderFloat3", + "ret": "bool", + "signature": "(const char*,float[3],float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderFloat4": [ + { + "args": "(const char* label,float v[4],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[4]" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[4],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat4", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat4", + "location": "imgui:569", + "namespace": "ImGui", + "ov_cimguiname": "igSliderFloat4", + "ret": "bool", + "signature": "(const char*,float[4],float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderInt": [ + { + "args": "(const char* label,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt", + "location": "imgui:571", + "namespace": "ImGui", + "ov_cimguiname": "igSliderInt", + "ret": "bool", + "signature": "(const char*,int*,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderInt2": [ + { + "args": "(const char* label,int v[2],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[2]" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[2],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt2", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt2", + "location": "imgui:572", + "namespace": "ImGui", + "ov_cimguiname": "igSliderInt2", + "ret": "bool", + "signature": "(const char*,int[2],int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderInt3": [ + { + "args": "(const char* label,int v[3],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[3]" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[3],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt3", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt3", + "location": "imgui:573", + "namespace": "ImGui", + "ov_cimguiname": "igSliderInt3", + "ret": "bool", + "signature": "(const char*,int[3],int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderInt4": [ + { + "args": "(const char* label,int v[4],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[4]" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[4],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt4", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt4", + "location": "imgui:574", + "namespace": "ImGui", + "ov_cimguiname": "igSliderInt4", + "ret": "bool", + "signature": "(const char*,int[4],int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderScalar": [ + { + "args": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,p_min,p_max,format,flags)", + "cimguiname": "igSliderScalar", + "defaults": { + "flags": "0", + "format": "NULL" + }, + "funcname": "SliderScalar", + "location": "imgui:575", + "namespace": "ImGui", + "ov_cimguiname": "igSliderScalar", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderScalarN": [ + { + "args": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,components,p_min,p_max,format,flags)", + "cimguiname": "igSliderScalarN", + "defaults": { + "flags": "0", + "format": "NULL" + }, + "funcname": "SliderScalarN", + "location": "imgui:576", + "namespace": "ImGui", + "ov_cimguiname": "igSliderScalarN", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSmallButton": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igSmallButton", + "defaults": {}, + "funcname": "SmallButton", + "location": "imgui:510", + "namespace": "ImGui", + "ov_cimguiname": "igSmallButton", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + } + ], + "igSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSpacing", + "defaults": {}, + "funcname": "Spacing", + "location": "imgui:450", + "namespace": "ImGui", + "ov_cimguiname": "igSpacing", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igStyleColorsClassic": [ + { + "args": "(ImGuiStyle* dst)", + "argsT": [ + { + "name": "dst", + "type": "ImGuiStyle*" + } + ], + "argsoriginal": "(ImGuiStyle* dst=((void*)0))", + "call_args": "(dst)", + "cimguiname": "igStyleColorsClassic", + "defaults": { + "dst": "NULL" + }, + "funcname": "StyleColorsClassic", + "location": "imgui:322", + "namespace": "ImGui", + "ov_cimguiname": "igStyleColorsClassic", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "" + } + ], + "igStyleColorsDark": [ + { + "args": "(ImGuiStyle* dst)", + "argsT": [ + { + "name": "dst", + "type": "ImGuiStyle*" + } + ], + "argsoriginal": "(ImGuiStyle* dst=((void*)0))", + "call_args": "(dst)", + "cimguiname": "igStyleColorsDark", + "defaults": { + "dst": "NULL" + }, + "funcname": "StyleColorsDark", + "location": "imgui:320", + "namespace": "ImGui", + "ov_cimguiname": "igStyleColorsDark", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "" + } + ], + "igStyleColorsLight": [ + { + "args": "(ImGuiStyle* dst)", + "argsT": [ + { + "name": "dst", + "type": "ImGuiStyle*" + } + ], + "argsoriginal": "(ImGuiStyle* dst=((void*)0))", + "call_args": "(dst)", + "cimguiname": "igStyleColorsLight", + "defaults": { + "dst": "NULL" + }, + "funcname": "StyleColorsLight", + "location": "imgui:321", + "namespace": "ImGui", + "ov_cimguiname": "igStyleColorsLight", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "" + } + ], + "igTabItemButton": [ + { + "args": "(const char* label,ImGuiTabItemFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTabItemFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiTabItemFlags flags=0)", + "call_args": "(label,flags)", + "cimguiname": "igTabItemButton", + "defaults": { + "flags": "0" + }, + "funcname": "TabItemButton", + "location": "imgui:799", + "namespace": "ImGui", + "ov_cimguiname": "igTabItemButton", + "ret": "bool", + "signature": "(const char*,ImGuiTabItemFlags)", + "stname": "" + } + ], + "igTableGetColumnCount": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetColumnCount", + "defaults": {}, + "funcname": "TableGetColumnCount", + "location": "imgui:774", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnCount", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igTableGetColumnFlags": [ + { + "args": "(int column_n)", + "argsT": [ + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(int column_n=-1)", + "call_args": "(column_n)", + "cimguiname": "igTableGetColumnFlags", + "defaults": { + "column_n": "-1" + }, + "funcname": "TableGetColumnFlags", + "location": "imgui:778", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnFlags", + "ret": "ImGuiTableColumnFlags", + "signature": "(int)", + "stname": "" + } + ], + "igTableGetColumnIndex": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetColumnIndex", + "defaults": {}, + "funcname": "TableGetColumnIndex", + "location": "imgui:775", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnIndex", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igTableGetColumnName": [ + { + "args": "(int column_n)", + "argsT": [ + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(int column_n=-1)", + "call_args": "(column_n)", + "cimguiname": "igTableGetColumnName", + "defaults": { + "column_n": "-1" + }, + "funcname": "TableGetColumnName", + "location": "imgui:777", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnName", + "ret": "const char*", + "signature": "(int)", + "stname": "" + } + ], + "igTableGetRowIndex": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetRowIndex", + "defaults": {}, + "funcname": "TableGetRowIndex", + "location": "imgui:776", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetRowIndex", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igTableGetSortSpecs": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetSortSpecs", + "defaults": {}, + "funcname": "TableGetSortSpecs", + "location": "imgui:773", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetSortSpecs", + "ret": "ImGuiTableSortSpecs*", + "signature": "()", + "stname": "" + } + ], + "igTableHeader": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igTableHeader", + "defaults": {}, + "funcname": "TableHeader", + "location": "imgui:765", + "namespace": "ImGui", + "ov_cimguiname": "igTableHeader", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igTableHeadersRow": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableHeadersRow", + "defaults": {}, + "funcname": "TableHeadersRow", + "location": "imgui:764", + "namespace": "ImGui", + "ov_cimguiname": "igTableHeadersRow", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igTableNextColumn": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableNextColumn", + "defaults": {}, + "funcname": "TableNextColumn", + "location": "imgui:751", + "namespace": "ImGui", + "ov_cimguiname": "igTableNextColumn", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igTableNextRow": [ + { + "args": "(ImGuiTableRowFlags row_flags,float min_row_height)", + "argsT": [ + { + "name": "row_flags", + "type": "ImGuiTableRowFlags" + }, + { + "name": "min_row_height", + "type": "float" + } + ], + "argsoriginal": "(ImGuiTableRowFlags row_flags=0,float min_row_height=0.0f)", + "call_args": "(row_flags,min_row_height)", + "cimguiname": "igTableNextRow", + "defaults": { + "min_row_height": "0.0f", + "row_flags": "0" + }, + "funcname": "TableNextRow", + "location": "imgui:750", + "namespace": "ImGui", + "ov_cimguiname": "igTableNextRow", + "ret": "void", + "signature": "(ImGuiTableRowFlags,float)", + "stname": "" + } + ], + "igTableSetBgColor": [ + { + "args": "(ImGuiTableBgTarget target,ImU32 color,int column_n)", + "argsT": [ + { + "name": "target", + "type": "ImGuiTableBgTarget" + }, + { + "name": "color", + "type": "ImU32" + }, + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(ImGuiTableBgTarget target,ImU32 color,int column_n=-1)", + "call_args": "(target,color,column_n)", + "cimguiname": "igTableSetBgColor", + "defaults": { + "column_n": "-1" + }, + "funcname": "TableSetBgColor", + "location": "imgui:780", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetBgColor", + "ret": "void", + "signature": "(ImGuiTableBgTarget,ImU32,int)", + "stname": "" + } + ], + "igTableSetColumnEnabled": [ + { + "args": "(int column_n,bool v)", + "argsT": [ + { + "name": "column_n", + "type": "int" + }, + { + "name": "v", + "type": "bool" + } + ], + "argsoriginal": "(int column_n,bool v)", + "call_args": "(column_n,v)", + "cimguiname": "igTableSetColumnEnabled", + "defaults": {}, + "funcname": "TableSetColumnEnabled", + "location": "imgui:779", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetColumnEnabled", + "ret": "void", + "signature": "(int,bool)", + "stname": "" + } + ], + "igTableSetColumnIndex": [ + { + "args": "(int column_n)", + "argsT": [ + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(int column_n)", + "call_args": "(column_n)", + "cimguiname": "igTableSetColumnIndex", + "defaults": {}, + "funcname": "TableSetColumnIndex", + "location": "imgui:752", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetColumnIndex", + "ret": "bool", + "signature": "(int)", + "stname": "" + } + ], + "igTableSetupColumn": [ + { + "args": "(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTableColumnFlags" + }, + { + "name": "init_width_or_weight", + "type": "float" + }, + { + "name": "user_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(const char* label,ImGuiTableColumnFlags flags=0,float init_width_or_weight=0.0f,ImGuiID user_id=0)", + "call_args": "(label,flags,init_width_or_weight,user_id)", + "cimguiname": "igTableSetupColumn", + "defaults": { + "flags": "0", + "init_width_or_weight": "0.0f", + "user_id": "0" + }, + "funcname": "TableSetupColumn", + "location": "imgui:762", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetupColumn", + "ret": "void", + "signature": "(const char*,ImGuiTableColumnFlags,float,ImGuiID)", + "stname": "" + } + ], + "igTableSetupScrollFreeze": [ + { + "args": "(int cols,int rows)", + "argsT": [ + { + "name": "cols", + "type": "int" + }, + { + "name": "rows", + "type": "int" + } + ], + "argsoriginal": "(int cols,int rows)", + "call_args": "(cols,rows)", + "cimguiname": "igTableSetupScrollFreeze", + "defaults": {}, + "funcname": "TableSetupScrollFreeze", + "location": "imgui:763", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetupScrollFreeze", + "ret": "void", + "signature": "(int,int)", + "stname": "" + } + ], + "igText": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igText", + "defaults": {}, + "funcname": "Text", + "isvararg": "...)", + "location": "imgui:493", + "namespace": "ImGui", + "ov_cimguiname": "igText", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igTextColored": [ + { + "args": "(const ImVec4 col,const char* fmt,...)", + "argsT": [ + { + "name": "col", + "type": "const ImVec4" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const ImVec4& col,const char* fmt,...)", + "call_args": "(col,fmt,...)", + "cimguiname": "igTextColored", + "defaults": {}, + "funcname": "TextColored", + "isvararg": "...)", + "location": "imgui:495", + "namespace": "ImGui", + "ov_cimguiname": "igTextColored", + "ret": "void", + "signature": "(const ImVec4,const char*,...)", + "stname": "" + } + ], + "igTextColoredV": [ + { + "args": "(const ImVec4 col,const char* fmt,va_list args)", + "argsT": [ + { + "name": "col", + "type": "const ImVec4" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const ImVec4& col,const char* fmt,va_list args)", + "call_args": "(col,fmt,args)", + "cimguiname": "igTextColoredV", + "defaults": {}, + "funcname": "TextColoredV", + "location": "imgui:496", + "namespace": "ImGui", + "ov_cimguiname": "igTextColoredV", + "ret": "void", + "signature": "(const ImVec4,const char*,va_list)", + "stname": "" + } + ], + "igTextDisabled": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igTextDisabled", + "defaults": {}, + "funcname": "TextDisabled", + "isvararg": "...)", + "location": "imgui:497", + "namespace": "ImGui", + "ov_cimguiname": "igTextDisabled", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igTextDisabledV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igTextDisabledV", + "defaults": {}, + "funcname": "TextDisabledV", + "location": "imgui:498", + "namespace": "ImGui", + "ov_cimguiname": "igTextDisabledV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igTextUnformatted": [ + { + "args": "(const char* text,const char* text_end)", + "argsT": [ + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0))", + "call_args": "(text,text_end)", + "cimguiname": "igTextUnformatted", + "defaults": { + "text_end": "NULL" + }, + "funcname": "TextUnformatted", + "location": "imgui:492", + "namespace": "ImGui", + "ov_cimguiname": "igTextUnformatted", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igTextV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igTextV", + "defaults": {}, + "funcname": "TextV", + "location": "imgui:494", + "namespace": "ImGui", + "ov_cimguiname": "igTextV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igTextWrapped": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igTextWrapped", + "defaults": {}, + "funcname": "TextWrapped", + "isvararg": "...)", + "location": "imgui:499", + "namespace": "ImGui", + "ov_cimguiname": "igTextWrapped", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igTextWrappedV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igTextWrappedV", + "defaults": {}, + "funcname": "TextWrappedV", + "location": "imgui:500", + "namespace": "ImGui", + "ov_cimguiname": "igTextWrappedV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igTreeNode": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igTreeNode", + "defaults": {}, + "funcname": "TreeNode", + "location": "imgui:611", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNode_Str", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + }, + { + "args": "(const char* str_id,const char* fmt,...)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* str_id,const char* fmt,...)", + "call_args": "(str_id,fmt,...)", + "cimguiname": "igTreeNode", + "defaults": {}, + "funcname": "TreeNode", + "isvararg": "...)", + "location": "imgui:612", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNode_StrStr", + "ret": "bool", + "signature": "(const char*,const char*,...)", + "stname": "" + }, + { + "args": "(const void* ptr_id,const char* fmt,...)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const void* ptr_id,const char* fmt,...)", + "call_args": "(ptr_id,fmt,...)", + "cimguiname": "igTreeNode", + "defaults": {}, + "funcname": "TreeNode", + "isvararg": "...)", + "location": "imgui:613", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNode_Ptr", + "ret": "bool", + "signature": "(const void*,const char*,...)", + "stname": "" + } + ], + "igTreeNodeEx": [ + { + "args": "(const char* label,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiTreeNodeFlags flags=0)", + "call_args": "(label,flags)", + "cimguiname": "igTreeNodeEx", + "defaults": { + "flags": "0" + }, + "funcname": "TreeNodeEx", + "location": "imgui:616", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeEx_Str", + "ret": "bool", + "signature": "(const char*,ImGuiTreeNodeFlags)", + "stname": "" + }, + { + "args": "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...)", + "call_args": "(str_id,flags,fmt,...)", + "cimguiname": "igTreeNodeEx", + "defaults": {}, + "funcname": "TreeNodeEx", + "isvararg": "...)", + "location": "imgui:617", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeEx_StrStr", + "ret": "bool", + "signature": "(const char*,ImGuiTreeNodeFlags,const char*,...)", + "stname": "" + }, + { + "args": "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)", + "call_args": "(ptr_id,flags,fmt,...)", + "cimguiname": "igTreeNodeEx", + "defaults": {}, + "funcname": "TreeNodeEx", + "isvararg": "...)", + "location": "imgui:618", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeEx_Ptr", + "ret": "bool", + "signature": "(const void*,ImGuiTreeNodeFlags,const char*,...)", + "stname": "" + } + ], + "igTreeNodeExV": [ + { + "args": "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)", + "call_args": "(str_id,flags,fmt,args)", + "cimguiname": "igTreeNodeExV", + "defaults": {}, + "funcname": "TreeNodeExV", + "location": "imgui:619", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeExV_Str", + "ret": "bool", + "signature": "(const char*,ImGuiTreeNodeFlags,const char*,va_list)", + "stname": "" + }, + { + "args": "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)", + "call_args": "(ptr_id,flags,fmt,args)", + "cimguiname": "igTreeNodeExV", + "defaults": {}, + "funcname": "TreeNodeExV", + "location": "imgui:620", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeExV_Ptr", + "ret": "bool", + "signature": "(const void*,ImGuiTreeNodeFlags,const char*,va_list)", + "stname": "" + } + ], + "igTreeNodeV": [ + { + "args": "(const char* str_id,const char* fmt,va_list args)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* str_id,const char* fmt,va_list args)", + "call_args": "(str_id,fmt,args)", + "cimguiname": "igTreeNodeV", + "defaults": {}, + "funcname": "TreeNodeV", + "location": "imgui:614", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeV_Str", + "ret": "bool", + "signature": "(const char*,const char*,va_list)", + "stname": "" + }, + { + "args": "(const void* ptr_id,const char* fmt,va_list args)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const void* ptr_id,const char* fmt,va_list args)", + "call_args": "(ptr_id,fmt,args)", + "cimguiname": "igTreeNodeV", + "defaults": {}, + "funcname": "TreeNodeV", + "location": "imgui:615", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeV_Ptr", + "ret": "bool", + "signature": "(const void*,const char*,va_list)", + "stname": "" + } + ], + "igTreePop": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTreePop", + "defaults": {}, + "funcname": "TreePop", + "location": "imgui:623", + "namespace": "ImGui", + "ov_cimguiname": "igTreePop", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igTreePush": [ + { + "args": "(const char* str_id)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id)", + "call_args": "(str_id)", + "cimguiname": "igTreePush", + "defaults": {}, + "funcname": "TreePush", + "location": "imgui:621", + "namespace": "ImGui", + "ov_cimguiname": "igTreePush_Str", + "ret": "void", + "signature": "(const char*)", + "stname": "" + }, + { + "args": "(const void* ptr_id)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + } + ], + "argsoriginal": "(const void* ptr_id)", + "call_args": "(ptr_id)", + "cimguiname": "igTreePush", + "defaults": {}, + "funcname": "TreePush", + "location": "imgui:622", + "namespace": "ImGui", + "ov_cimguiname": "igTreePush_Ptr", + "ret": "void", + "signature": "(const void*)", + "stname": "" + } + ], + "igUnindent": [ + { + "args": "(float indent_w)", + "argsT": [ + { + "name": "indent_w", + "type": "float" + } + ], + "argsoriginal": "(float indent_w=0.0f)", + "call_args": "(indent_w)", + "cimguiname": "igUnindent", + "defaults": { + "indent_w": "0.0f" + }, + "funcname": "Unindent", + "location": "imgui:453", + "namespace": "ImGui", + "ov_cimguiname": "igUnindent", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igUpdatePlatformWindows": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igUpdatePlatformWindows", + "defaults": {}, + "funcname": "UpdatePlatformWindows", + "location": "imgui:981", + "namespace": "ImGui", + "ov_cimguiname": "igUpdatePlatformWindows", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igVSliderFloat": [ + { + "args": "(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,size,v,v_min,v_max,format,flags)", + "cimguiname": "igVSliderFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "VSliderFloat", + "location": "imgui:577", + "namespace": "ImGui", + "ov_cimguiname": "igVSliderFloat", + "ret": "bool", + "signature": "(const char*,const ImVec2,float*,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igVSliderInt": [ + { + "args": "(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,size,v,v_min,v_max,format,flags)", + "cimguiname": "igVSliderInt", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "VSliderInt", + "location": "imgui:578", + "namespace": "ImGui", + "ov_cimguiname": "igVSliderInt", + "ret": "bool", + "signature": "(const char*,const ImVec2,int*,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igVSliderScalar": [ + { + "args": "(const char* label,const ImVec2 size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,size,data_type,p_data,p_min,p_max,format,flags)", + "cimguiname": "igVSliderScalar", + "defaults": { + "flags": "0", + "format": "NULL" + }, + "funcname": "VSliderScalar", + "location": "imgui:579", + "namespace": "ImGui", + "ov_cimguiname": "igVSliderScalar", + "ret": "bool", + "signature": "(const char*,const ImVec2,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igValue": [ + { + "args": "(const char* prefix,bool b)", + "argsT": [ + { + "name": "prefix", + "type": "const char*" + }, + { + "name": "b", + "type": "bool" + } + ], + "argsoriginal": "(const char* prefix,bool b)", + "call_args": "(prefix,b)", + "cimguiname": "igValue", + "defaults": {}, + "funcname": "Value", + "location": "imgui:655", + "namespace": "ImGui", + "ov_cimguiname": "igValue_Bool", + "ret": "void", + "signature": "(const char*,bool)", + "stname": "" + }, + { + "args": "(const char* prefix,int v)", + "argsT": [ + { + "name": "prefix", + "type": "const char*" + }, + { + "name": "v", + "type": "int" + } + ], + "argsoriginal": "(const char* prefix,int v)", + "call_args": "(prefix,v)", + "cimguiname": "igValue", + "defaults": {}, + "funcname": "Value", + "location": "imgui:656", + "namespace": "ImGui", + "ov_cimguiname": "igValue_Int", + "ret": "void", + "signature": "(const char*,int)", + "stname": "" + }, + { + "args": "(const char* prefix,unsigned int v)", + "argsT": [ + { + "name": "prefix", + "type": "const char*" + }, + { + "name": "v", + "type": "unsigned int" + } + ], + "argsoriginal": "(const char* prefix,unsigned int v)", + "call_args": "(prefix,v)", + "cimguiname": "igValue", + "defaults": {}, + "funcname": "Value", + "location": "imgui:657", + "namespace": "ImGui", + "ov_cimguiname": "igValue_Uint", + "ret": "void", + "signature": "(const char*,unsigned int)", + "stname": "" + }, + { + "args": "(const char* prefix,float v,const char* float_format)", + "argsT": [ + { + "name": "prefix", + "type": "const char*" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "float_format", + "type": "const char*" + } + ], + "argsoriginal": "(const char* prefix,float v,const char* float_format=((void*)0))", + "call_args": "(prefix,v,float_format)", + "cimguiname": "igValue", + "defaults": { + "float_format": "NULL" + }, + "funcname": "Value", + "location": "imgui:658", + "namespace": "ImGui", + "ov_cimguiname": "igValue_Float", + "ret": "void", + "signature": "(const char*,float,const char*)", + "stname": "" + } + ] +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/definitions.lua b/imgui-sys/third-party/imgui-docking-freetype/definitions.lua new file mode 100644 index 000000000..eec924fc5 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/definitions.lua @@ -0,0 +1,15483 @@ +local defs = {} +defs["ImColor_HSV"] = {} +defs["ImColor_HSV"][1] = {} +defs["ImColor_HSV"][1]["args"] = "(ImColor *pOut,float h,float s,float v,float a)" +defs["ImColor_HSV"][1]["argsT"] = {} +defs["ImColor_HSV"][1]["argsT"][1] = {} +defs["ImColor_HSV"][1]["argsT"][1]["name"] = "pOut" +defs["ImColor_HSV"][1]["argsT"][1]["type"] = "ImColor*" +defs["ImColor_HSV"][1]["argsT"][2] = {} +defs["ImColor_HSV"][1]["argsT"][2]["name"] = "h" +defs["ImColor_HSV"][1]["argsT"][2]["type"] = "float" +defs["ImColor_HSV"][1]["argsT"][3] = {} +defs["ImColor_HSV"][1]["argsT"][3]["name"] = "s" +defs["ImColor_HSV"][1]["argsT"][3]["type"] = "float" +defs["ImColor_HSV"][1]["argsT"][4] = {} +defs["ImColor_HSV"][1]["argsT"][4]["name"] = "v" +defs["ImColor_HSV"][1]["argsT"][4]["type"] = "float" +defs["ImColor_HSV"][1]["argsT"][5] = {} +defs["ImColor_HSV"][1]["argsT"][5]["name"] = "a" +defs["ImColor_HSV"][1]["argsT"][5]["type"] = "float" +defs["ImColor_HSV"][1]["argsoriginal"] = "(float h,float s,float v,float a=1.0f)" +defs["ImColor_HSV"][1]["call_args"] = "(h,s,v,a)" +defs["ImColor_HSV"][1]["cimguiname"] = "ImColor_HSV" +defs["ImColor_HSV"][1]["defaults"] = {} +defs["ImColor_HSV"][1]["defaults"]["a"] = "1.0f" +defs["ImColor_HSV"][1]["funcname"] = "HSV" +defs["ImColor_HSV"][1]["is_static_function"] = true +defs["ImColor_HSV"][1]["location"] = "imgui:2472" +defs["ImColor_HSV"][1]["nonUDT"] = 1 +defs["ImColor_HSV"][1]["ov_cimguiname"] = "ImColor_HSV" +defs["ImColor_HSV"][1]["ret"] = "void" +defs["ImColor_HSV"][1]["signature"] = "(float,float,float,float)" +defs["ImColor_HSV"][1]["stname"] = "ImColor" +defs["ImColor_HSV"]["(float,float,float,float)"] = defs["ImColor_HSV"][1] +defs["ImColor_ImColor"] = {} +defs["ImColor_ImColor"][1] = {} +defs["ImColor_ImColor"][1]["args"] = "()" +defs["ImColor_ImColor"][1]["argsT"] = {} +defs["ImColor_ImColor"][1]["argsoriginal"] = "()" +defs["ImColor_ImColor"][1]["call_args"] = "()" +defs["ImColor_ImColor"][1]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][1]["constructor"] = true +defs["ImColor_ImColor"][1]["defaults"] = {} +defs["ImColor_ImColor"][1]["funcname"] = "ImColor" +defs["ImColor_ImColor"][1]["location"] = "imgui:2462" +defs["ImColor_ImColor"][1]["ov_cimguiname"] = "ImColor_ImColor_Nil" +defs["ImColor_ImColor"][1]["signature"] = "()" +defs["ImColor_ImColor"][1]["stname"] = "ImColor" +defs["ImColor_ImColor"][2] = {} +defs["ImColor_ImColor"][2]["args"] = "(float r,float g,float b,float a)" +defs["ImColor_ImColor"][2]["argsT"] = {} +defs["ImColor_ImColor"][2]["argsT"][1] = {} +defs["ImColor_ImColor"][2]["argsT"][1]["name"] = "r" +defs["ImColor_ImColor"][2]["argsT"][1]["type"] = "float" +defs["ImColor_ImColor"][2]["argsT"][2] = {} +defs["ImColor_ImColor"][2]["argsT"][2]["name"] = "g" +defs["ImColor_ImColor"][2]["argsT"][2]["type"] = "float" +defs["ImColor_ImColor"][2]["argsT"][3] = {} +defs["ImColor_ImColor"][2]["argsT"][3]["name"] = "b" +defs["ImColor_ImColor"][2]["argsT"][3]["type"] = "float" +defs["ImColor_ImColor"][2]["argsT"][4] = {} +defs["ImColor_ImColor"][2]["argsT"][4]["name"] = "a" +defs["ImColor_ImColor"][2]["argsT"][4]["type"] = "float" +defs["ImColor_ImColor"][2]["argsoriginal"] = "(float r,float g,float b,float a=1.0f)" +defs["ImColor_ImColor"][2]["call_args"] = "(r,g,b,a)" +defs["ImColor_ImColor"][2]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][2]["constructor"] = true +defs["ImColor_ImColor"][2]["defaults"] = {} +defs["ImColor_ImColor"][2]["defaults"]["a"] = "1.0f" +defs["ImColor_ImColor"][2]["funcname"] = "ImColor" +defs["ImColor_ImColor"][2]["location"] = "imgui:2463" +defs["ImColor_ImColor"][2]["ov_cimguiname"] = "ImColor_ImColor_Float" +defs["ImColor_ImColor"][2]["signature"] = "(float,float,float,float)" +defs["ImColor_ImColor"][2]["stname"] = "ImColor" +defs["ImColor_ImColor"][3] = {} +defs["ImColor_ImColor"][3]["args"] = "(const ImVec4 col)" +defs["ImColor_ImColor"][3]["argsT"] = {} +defs["ImColor_ImColor"][3]["argsT"][1] = {} +defs["ImColor_ImColor"][3]["argsT"][1]["name"] = "col" +defs["ImColor_ImColor"][3]["argsT"][1]["type"] = "const ImVec4" +defs["ImColor_ImColor"][3]["argsoriginal"] = "(const ImVec4& col)" +defs["ImColor_ImColor"][3]["call_args"] = "(col)" +defs["ImColor_ImColor"][3]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][3]["constructor"] = true +defs["ImColor_ImColor"][3]["defaults"] = {} +defs["ImColor_ImColor"][3]["funcname"] = "ImColor" +defs["ImColor_ImColor"][3]["location"] = "imgui:2464" +defs["ImColor_ImColor"][3]["ov_cimguiname"] = "ImColor_ImColor_Vec4" +defs["ImColor_ImColor"][3]["signature"] = "(const ImVec4)" +defs["ImColor_ImColor"][3]["stname"] = "ImColor" +defs["ImColor_ImColor"][4] = {} +defs["ImColor_ImColor"][4]["args"] = "(int r,int g,int b,int a)" +defs["ImColor_ImColor"][4]["argsT"] = {} +defs["ImColor_ImColor"][4]["argsT"][1] = {} +defs["ImColor_ImColor"][4]["argsT"][1]["name"] = "r" +defs["ImColor_ImColor"][4]["argsT"][1]["type"] = "int" +defs["ImColor_ImColor"][4]["argsT"][2] = {} +defs["ImColor_ImColor"][4]["argsT"][2]["name"] = "g" +defs["ImColor_ImColor"][4]["argsT"][2]["type"] = "int" +defs["ImColor_ImColor"][4]["argsT"][3] = {} +defs["ImColor_ImColor"][4]["argsT"][3]["name"] = "b" +defs["ImColor_ImColor"][4]["argsT"][3]["type"] = "int" +defs["ImColor_ImColor"][4]["argsT"][4] = {} +defs["ImColor_ImColor"][4]["argsT"][4]["name"] = "a" +defs["ImColor_ImColor"][4]["argsT"][4]["type"] = "int" +defs["ImColor_ImColor"][4]["argsoriginal"] = "(int r,int g,int b,int a=255)" +defs["ImColor_ImColor"][4]["call_args"] = "(r,g,b,a)" +defs["ImColor_ImColor"][4]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][4]["constructor"] = true +defs["ImColor_ImColor"][4]["defaults"] = {} +defs["ImColor_ImColor"][4]["defaults"]["a"] = "255" +defs["ImColor_ImColor"][4]["funcname"] = "ImColor" +defs["ImColor_ImColor"][4]["location"] = "imgui:2465" +defs["ImColor_ImColor"][4]["ov_cimguiname"] = "ImColor_ImColor_Int" +defs["ImColor_ImColor"][4]["signature"] = "(int,int,int,int)" +defs["ImColor_ImColor"][4]["stname"] = "ImColor" +defs["ImColor_ImColor"][5] = {} +defs["ImColor_ImColor"][5]["args"] = "(ImU32 rgba)" +defs["ImColor_ImColor"][5]["argsT"] = {} +defs["ImColor_ImColor"][5]["argsT"][1] = {} +defs["ImColor_ImColor"][5]["argsT"][1]["name"] = "rgba" +defs["ImColor_ImColor"][5]["argsT"][1]["type"] = "ImU32" +defs["ImColor_ImColor"][5]["argsoriginal"] = "(ImU32 rgba)" +defs["ImColor_ImColor"][5]["call_args"] = "(rgba)" +defs["ImColor_ImColor"][5]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][5]["constructor"] = true +defs["ImColor_ImColor"][5]["defaults"] = {} +defs["ImColor_ImColor"][5]["funcname"] = "ImColor" +defs["ImColor_ImColor"][5]["location"] = "imgui:2466" +defs["ImColor_ImColor"][5]["ov_cimguiname"] = "ImColor_ImColor_U32" +defs["ImColor_ImColor"][5]["signature"] = "(ImU32)" +defs["ImColor_ImColor"][5]["stname"] = "ImColor" +defs["ImColor_ImColor"]["()"] = defs["ImColor_ImColor"][1] +defs["ImColor_ImColor"]["(ImU32)"] = defs["ImColor_ImColor"][5] +defs["ImColor_ImColor"]["(const ImVec4)"] = defs["ImColor_ImColor"][3] +defs["ImColor_ImColor"]["(float,float,float,float)"] = defs["ImColor_ImColor"][2] +defs["ImColor_ImColor"]["(int,int,int,int)"] = defs["ImColor_ImColor"][4] +defs["ImColor_SetHSV"] = {} +defs["ImColor_SetHSV"][1] = {} +defs["ImColor_SetHSV"][1]["args"] = "(ImColor* self,float h,float s,float v,float a)" +defs["ImColor_SetHSV"][1]["argsT"] = {} +defs["ImColor_SetHSV"][1]["argsT"][1] = {} +defs["ImColor_SetHSV"][1]["argsT"][1]["name"] = "self" +defs["ImColor_SetHSV"][1]["argsT"][1]["type"] = "ImColor*" +defs["ImColor_SetHSV"][1]["argsT"][2] = {} +defs["ImColor_SetHSV"][1]["argsT"][2]["name"] = "h" +defs["ImColor_SetHSV"][1]["argsT"][2]["type"] = "float" +defs["ImColor_SetHSV"][1]["argsT"][3] = {} +defs["ImColor_SetHSV"][1]["argsT"][3]["name"] = "s" +defs["ImColor_SetHSV"][1]["argsT"][3]["type"] = "float" +defs["ImColor_SetHSV"][1]["argsT"][4] = {} +defs["ImColor_SetHSV"][1]["argsT"][4]["name"] = "v" +defs["ImColor_SetHSV"][1]["argsT"][4]["type"] = "float" +defs["ImColor_SetHSV"][1]["argsT"][5] = {} +defs["ImColor_SetHSV"][1]["argsT"][5]["name"] = "a" +defs["ImColor_SetHSV"][1]["argsT"][5]["type"] = "float" +defs["ImColor_SetHSV"][1]["argsoriginal"] = "(float h,float s,float v,float a=1.0f)" +defs["ImColor_SetHSV"][1]["call_args"] = "(h,s,v,a)" +defs["ImColor_SetHSV"][1]["cimguiname"] = "ImColor_SetHSV" +defs["ImColor_SetHSV"][1]["defaults"] = {} +defs["ImColor_SetHSV"][1]["defaults"]["a"] = "1.0f" +defs["ImColor_SetHSV"][1]["funcname"] = "SetHSV" +defs["ImColor_SetHSV"][1]["location"] = "imgui:2471" +defs["ImColor_SetHSV"][1]["ov_cimguiname"] = "ImColor_SetHSV" +defs["ImColor_SetHSV"][1]["ret"] = "void" +defs["ImColor_SetHSV"][1]["signature"] = "(float,float,float,float)" +defs["ImColor_SetHSV"][1]["stname"] = "ImColor" +defs["ImColor_SetHSV"]["(float,float,float,float)"] = defs["ImColor_SetHSV"][1] +defs["ImColor_destroy"] = {} +defs["ImColor_destroy"][1] = {} +defs["ImColor_destroy"][1]["args"] = "(ImColor* self)" +defs["ImColor_destroy"][1]["argsT"] = {} +defs["ImColor_destroy"][1]["argsT"][1] = {} +defs["ImColor_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImColor_destroy"][1]["argsT"][1]["type"] = "ImColor*" +defs["ImColor_destroy"][1]["call_args"] = "(self)" +defs["ImColor_destroy"][1]["cimguiname"] = "ImColor_destroy" +defs["ImColor_destroy"][1]["defaults"] = {} +defs["ImColor_destroy"][1]["destructor"] = true +defs["ImColor_destroy"][1]["ov_cimguiname"] = "ImColor_destroy" +defs["ImColor_destroy"][1]["ret"] = "void" +defs["ImColor_destroy"][1]["signature"] = "(ImColor*)" +defs["ImColor_destroy"][1]["stname"] = "ImColor" +defs["ImColor_destroy"]["(ImColor*)"] = defs["ImColor_destroy"][1] +defs["ImDrawCmd_GetTexID"] = {} +defs["ImDrawCmd_GetTexID"][1] = {} +defs["ImDrawCmd_GetTexID"][1]["args"] = "(ImDrawCmd* self)" +defs["ImDrawCmd_GetTexID"][1]["argsT"] = {} +defs["ImDrawCmd_GetTexID"][1]["argsT"][1] = {} +defs["ImDrawCmd_GetTexID"][1]["argsT"][1]["name"] = "self" +defs["ImDrawCmd_GetTexID"][1]["argsT"][1]["type"] = "ImDrawCmd*" +defs["ImDrawCmd_GetTexID"][1]["argsoriginal"] = "()" +defs["ImDrawCmd_GetTexID"][1]["call_args"] = "()" +defs["ImDrawCmd_GetTexID"][1]["cimguiname"] = "ImDrawCmd_GetTexID" +defs["ImDrawCmd_GetTexID"][1]["defaults"] = {} +defs["ImDrawCmd_GetTexID"][1]["funcname"] = "GetTexID" +defs["ImDrawCmd_GetTexID"][1]["location"] = "imgui:2520" +defs["ImDrawCmd_GetTexID"][1]["ov_cimguiname"] = "ImDrawCmd_GetTexID" +defs["ImDrawCmd_GetTexID"][1]["ret"] = "ImTextureID" +defs["ImDrawCmd_GetTexID"][1]["signature"] = "()const" +defs["ImDrawCmd_GetTexID"][1]["stname"] = "ImDrawCmd" +defs["ImDrawCmd_GetTexID"]["()const"] = defs["ImDrawCmd_GetTexID"][1] +defs["ImDrawCmd_ImDrawCmd"] = {} +defs["ImDrawCmd_ImDrawCmd"][1] = {} +defs["ImDrawCmd_ImDrawCmd"][1]["args"] = "()" +defs["ImDrawCmd_ImDrawCmd"][1]["argsT"] = {} +defs["ImDrawCmd_ImDrawCmd"][1]["argsoriginal"] = "()" +defs["ImDrawCmd_ImDrawCmd"][1]["call_args"] = "()" +defs["ImDrawCmd_ImDrawCmd"][1]["cimguiname"] = "ImDrawCmd_ImDrawCmd" +defs["ImDrawCmd_ImDrawCmd"][1]["constructor"] = true +defs["ImDrawCmd_ImDrawCmd"][1]["defaults"] = {} +defs["ImDrawCmd_ImDrawCmd"][1]["funcname"] = "ImDrawCmd" +defs["ImDrawCmd_ImDrawCmd"][1]["location"] = "imgui:2517" +defs["ImDrawCmd_ImDrawCmd"][1]["ov_cimguiname"] = "ImDrawCmd_ImDrawCmd" +defs["ImDrawCmd_ImDrawCmd"][1]["signature"] = "()" +defs["ImDrawCmd_ImDrawCmd"][1]["stname"] = "ImDrawCmd" +defs["ImDrawCmd_ImDrawCmd"]["()"] = defs["ImDrawCmd_ImDrawCmd"][1] +defs["ImDrawCmd_destroy"] = {} +defs["ImDrawCmd_destroy"][1] = {} +defs["ImDrawCmd_destroy"][1]["args"] = "(ImDrawCmd* self)" +defs["ImDrawCmd_destroy"][1]["argsT"] = {} +defs["ImDrawCmd_destroy"][1]["argsT"][1] = {} +defs["ImDrawCmd_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImDrawCmd_destroy"][1]["argsT"][1]["type"] = "ImDrawCmd*" +defs["ImDrawCmd_destroy"][1]["call_args"] = "(self)" +defs["ImDrawCmd_destroy"][1]["cimguiname"] = "ImDrawCmd_destroy" +defs["ImDrawCmd_destroy"][1]["defaults"] = {} +defs["ImDrawCmd_destroy"][1]["destructor"] = true +defs["ImDrawCmd_destroy"][1]["ov_cimguiname"] = "ImDrawCmd_destroy" +defs["ImDrawCmd_destroy"][1]["ret"] = "void" +defs["ImDrawCmd_destroy"][1]["signature"] = "(ImDrawCmd*)" +defs["ImDrawCmd_destroy"][1]["stname"] = "ImDrawCmd" +defs["ImDrawCmd_destroy"]["(ImDrawCmd*)"] = defs["ImDrawCmd_destroy"][1] +defs["ImDrawData_Clear"] = {} +defs["ImDrawData_Clear"][1] = {} +defs["ImDrawData_Clear"][1]["args"] = "(ImDrawData* self)" +defs["ImDrawData_Clear"][1]["argsT"] = {} +defs["ImDrawData_Clear"][1]["argsT"][1] = {} +defs["ImDrawData_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImDrawData_Clear"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImDrawData_Clear"][1]["argsoriginal"] = "()" +defs["ImDrawData_Clear"][1]["call_args"] = "()" +defs["ImDrawData_Clear"][1]["cimguiname"] = "ImDrawData_Clear" +defs["ImDrawData_Clear"][1]["defaults"] = {} +defs["ImDrawData_Clear"][1]["funcname"] = "Clear" +defs["ImDrawData_Clear"][1]["location"] = "imgui:2754" +defs["ImDrawData_Clear"][1]["ov_cimguiname"] = "ImDrawData_Clear" +defs["ImDrawData_Clear"][1]["ret"] = "void" +defs["ImDrawData_Clear"][1]["signature"] = "()" +defs["ImDrawData_Clear"][1]["stname"] = "ImDrawData" +defs["ImDrawData_Clear"]["()"] = defs["ImDrawData_Clear"][1] +defs["ImDrawData_DeIndexAllBuffers"] = {} +defs["ImDrawData_DeIndexAllBuffers"][1] = {} +defs["ImDrawData_DeIndexAllBuffers"][1]["args"] = "(ImDrawData* self)" +defs["ImDrawData_DeIndexAllBuffers"][1]["argsT"] = {} +defs["ImDrawData_DeIndexAllBuffers"][1]["argsT"][1] = {} +defs["ImDrawData_DeIndexAllBuffers"][1]["argsT"][1]["name"] = "self" +defs["ImDrawData_DeIndexAllBuffers"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImDrawData_DeIndexAllBuffers"][1]["argsoriginal"] = "()" +defs["ImDrawData_DeIndexAllBuffers"][1]["call_args"] = "()" +defs["ImDrawData_DeIndexAllBuffers"][1]["cimguiname"] = "ImDrawData_DeIndexAllBuffers" +defs["ImDrawData_DeIndexAllBuffers"][1]["defaults"] = {} +defs["ImDrawData_DeIndexAllBuffers"][1]["funcname"] = "DeIndexAllBuffers" +defs["ImDrawData_DeIndexAllBuffers"][1]["location"] = "imgui:2755" +defs["ImDrawData_DeIndexAllBuffers"][1]["ov_cimguiname"] = "ImDrawData_DeIndexAllBuffers" +defs["ImDrawData_DeIndexAllBuffers"][1]["ret"] = "void" +defs["ImDrawData_DeIndexAllBuffers"][1]["signature"] = "()" +defs["ImDrawData_DeIndexAllBuffers"][1]["stname"] = "ImDrawData" +defs["ImDrawData_DeIndexAllBuffers"]["()"] = defs["ImDrawData_DeIndexAllBuffers"][1] +defs["ImDrawData_ImDrawData"] = {} +defs["ImDrawData_ImDrawData"][1] = {} +defs["ImDrawData_ImDrawData"][1]["args"] = "()" +defs["ImDrawData_ImDrawData"][1]["argsT"] = {} +defs["ImDrawData_ImDrawData"][1]["argsoriginal"] = "()" +defs["ImDrawData_ImDrawData"][1]["call_args"] = "()" +defs["ImDrawData_ImDrawData"][1]["cimguiname"] = "ImDrawData_ImDrawData" +defs["ImDrawData_ImDrawData"][1]["constructor"] = true +defs["ImDrawData_ImDrawData"][1]["defaults"] = {} +defs["ImDrawData_ImDrawData"][1]["funcname"] = "ImDrawData" +defs["ImDrawData_ImDrawData"][1]["location"] = "imgui:2753" +defs["ImDrawData_ImDrawData"][1]["ov_cimguiname"] = "ImDrawData_ImDrawData" +defs["ImDrawData_ImDrawData"][1]["signature"] = "()" +defs["ImDrawData_ImDrawData"][1]["stname"] = "ImDrawData" +defs["ImDrawData_ImDrawData"]["()"] = defs["ImDrawData_ImDrawData"][1] +defs["ImDrawData_ScaleClipRects"] = {} +defs["ImDrawData_ScaleClipRects"][1] = {} +defs["ImDrawData_ScaleClipRects"][1]["args"] = "(ImDrawData* self,const ImVec2 fb_scale)" +defs["ImDrawData_ScaleClipRects"][1]["argsT"] = {} +defs["ImDrawData_ScaleClipRects"][1]["argsT"][1] = {} +defs["ImDrawData_ScaleClipRects"][1]["argsT"][1]["name"] = "self" +defs["ImDrawData_ScaleClipRects"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImDrawData_ScaleClipRects"][1]["argsT"][2] = {} +defs["ImDrawData_ScaleClipRects"][1]["argsT"][2]["name"] = "fb_scale" +defs["ImDrawData_ScaleClipRects"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawData_ScaleClipRects"][1]["argsoriginal"] = "(const ImVec2& fb_scale)" +defs["ImDrawData_ScaleClipRects"][1]["call_args"] = "(fb_scale)" +defs["ImDrawData_ScaleClipRects"][1]["cimguiname"] = "ImDrawData_ScaleClipRects" +defs["ImDrawData_ScaleClipRects"][1]["defaults"] = {} +defs["ImDrawData_ScaleClipRects"][1]["funcname"] = "ScaleClipRects" +defs["ImDrawData_ScaleClipRects"][1]["location"] = "imgui:2756" +defs["ImDrawData_ScaleClipRects"][1]["ov_cimguiname"] = "ImDrawData_ScaleClipRects" +defs["ImDrawData_ScaleClipRects"][1]["ret"] = "void" +defs["ImDrawData_ScaleClipRects"][1]["signature"] = "(const ImVec2)" +defs["ImDrawData_ScaleClipRects"][1]["stname"] = "ImDrawData" +defs["ImDrawData_ScaleClipRects"]["(const ImVec2)"] = defs["ImDrawData_ScaleClipRects"][1] +defs["ImDrawData_destroy"] = {} +defs["ImDrawData_destroy"][1] = {} +defs["ImDrawData_destroy"][1]["args"] = "(ImDrawData* self)" +defs["ImDrawData_destroy"][1]["argsT"] = {} +defs["ImDrawData_destroy"][1]["argsT"][1] = {} +defs["ImDrawData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImDrawData_destroy"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImDrawData_destroy"][1]["call_args"] = "(self)" +defs["ImDrawData_destroy"][1]["cimguiname"] = "ImDrawData_destroy" +defs["ImDrawData_destroy"][1]["defaults"] = {} +defs["ImDrawData_destroy"][1]["destructor"] = true +defs["ImDrawData_destroy"][1]["ov_cimguiname"] = "ImDrawData_destroy" +defs["ImDrawData_destroy"][1]["ret"] = "void" +defs["ImDrawData_destroy"][1]["signature"] = "(ImDrawData*)" +defs["ImDrawData_destroy"][1]["stname"] = "ImDrawData" +defs["ImDrawData_destroy"]["(ImDrawData*)"] = defs["ImDrawData_destroy"][1] +defs["ImDrawListSplitter_Clear"] = {} +defs["ImDrawListSplitter_Clear"][1] = {} +defs["ImDrawListSplitter_Clear"][1]["args"] = "(ImDrawListSplitter* self)" +defs["ImDrawListSplitter_Clear"][1]["argsT"] = {} +defs["ImDrawListSplitter_Clear"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_Clear"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_Clear"][1]["argsoriginal"] = "()" +defs["ImDrawListSplitter_Clear"][1]["call_args"] = "()" +defs["ImDrawListSplitter_Clear"][1]["cimguiname"] = "ImDrawListSplitter_Clear" +defs["ImDrawListSplitter_Clear"][1]["defaults"] = {} +defs["ImDrawListSplitter_Clear"][1]["funcname"] = "Clear" +defs["ImDrawListSplitter_Clear"][1]["location"] = "imgui:2565" +defs["ImDrawListSplitter_Clear"][1]["ov_cimguiname"] = "ImDrawListSplitter_Clear" +defs["ImDrawListSplitter_Clear"][1]["ret"] = "void" +defs["ImDrawListSplitter_Clear"][1]["signature"] = "()" +defs["ImDrawListSplitter_Clear"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_Clear"]["()"] = defs["ImDrawListSplitter_Clear"][1] +defs["ImDrawListSplitter_ClearFreeMemory"] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1]["args"] = "(ImDrawListSplitter* self)" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsT"] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsoriginal"] = "()" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["call_args"] = "()" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["cimguiname"] = "ImDrawListSplitter_ClearFreeMemory" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["defaults"] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1]["funcname"] = "ClearFreeMemory" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["location"] = "imgui:2566" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawListSplitter_ClearFreeMemory" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["ret"] = "void" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["signature"] = "()" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_ClearFreeMemory"]["()"] = defs["ImDrawListSplitter_ClearFreeMemory"][1] +defs["ImDrawListSplitter_ImDrawListSplitter"] = {} +defs["ImDrawListSplitter_ImDrawListSplitter"][1] = {} +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["args"] = "()" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["argsT"] = {} +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["argsoriginal"] = "()" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["call_args"] = "()" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["cimguiname"] = "ImDrawListSplitter_ImDrawListSplitter" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["constructor"] = true +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["defaults"] = {} +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["funcname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["location"] = "imgui:2563" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["ov_cimguiname"] = "ImDrawListSplitter_ImDrawListSplitter" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["signature"] = "()" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_ImDrawListSplitter"]["()"] = defs["ImDrawListSplitter_ImDrawListSplitter"][1] +defs["ImDrawListSplitter_Merge"] = {} +defs["ImDrawListSplitter_Merge"][1] = {} +defs["ImDrawListSplitter_Merge"][1]["args"] = "(ImDrawListSplitter* self,ImDrawList* draw_list)" +defs["ImDrawListSplitter_Merge"][1]["argsT"] = {} +defs["ImDrawListSplitter_Merge"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_Merge"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_Merge"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_Merge"][1]["argsT"][2] = {} +defs["ImDrawListSplitter_Merge"][1]["argsT"][2]["name"] = "draw_list" +defs["ImDrawListSplitter_Merge"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawListSplitter_Merge"][1]["argsoriginal"] = "(ImDrawList* draw_list)" +defs["ImDrawListSplitter_Merge"][1]["call_args"] = "(draw_list)" +defs["ImDrawListSplitter_Merge"][1]["cimguiname"] = "ImDrawListSplitter_Merge" +defs["ImDrawListSplitter_Merge"][1]["defaults"] = {} +defs["ImDrawListSplitter_Merge"][1]["funcname"] = "Merge" +defs["ImDrawListSplitter_Merge"][1]["location"] = "imgui:2568" +defs["ImDrawListSplitter_Merge"][1]["ov_cimguiname"] = "ImDrawListSplitter_Merge" +defs["ImDrawListSplitter_Merge"][1]["ret"] = "void" +defs["ImDrawListSplitter_Merge"][1]["signature"] = "(ImDrawList*)" +defs["ImDrawListSplitter_Merge"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_Merge"]["(ImDrawList*)"] = defs["ImDrawListSplitter_Merge"][1] +defs["ImDrawListSplitter_SetCurrentChannel"] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["args"] = "(ImDrawListSplitter* self,ImDrawList* draw_list,int channel_idx)" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][2] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][2]["name"] = "draw_list" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][3] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][3]["name"] = "channel_idx" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][3]["type"] = "int" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsoriginal"] = "(ImDrawList* draw_list,int channel_idx)" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["call_args"] = "(draw_list,channel_idx)" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["cimguiname"] = "ImDrawListSplitter_SetCurrentChannel" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["defaults"] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["funcname"] = "SetCurrentChannel" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["location"] = "imgui:2569" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["ov_cimguiname"] = "ImDrawListSplitter_SetCurrentChannel" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["ret"] = "void" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["signature"] = "(ImDrawList*,int)" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_SetCurrentChannel"]["(ImDrawList*,int)"] = defs["ImDrawListSplitter_SetCurrentChannel"][1] +defs["ImDrawListSplitter_Split"] = {} +defs["ImDrawListSplitter_Split"][1] = {} +defs["ImDrawListSplitter_Split"][1]["args"] = "(ImDrawListSplitter* self,ImDrawList* draw_list,int count)" +defs["ImDrawListSplitter_Split"][1]["argsT"] = {} +defs["ImDrawListSplitter_Split"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_Split"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_Split"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_Split"][1]["argsT"][2] = {} +defs["ImDrawListSplitter_Split"][1]["argsT"][2]["name"] = "draw_list" +defs["ImDrawListSplitter_Split"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawListSplitter_Split"][1]["argsT"][3] = {} +defs["ImDrawListSplitter_Split"][1]["argsT"][3]["name"] = "count" +defs["ImDrawListSplitter_Split"][1]["argsT"][3]["type"] = "int" +defs["ImDrawListSplitter_Split"][1]["argsoriginal"] = "(ImDrawList* draw_list,int count)" +defs["ImDrawListSplitter_Split"][1]["call_args"] = "(draw_list,count)" +defs["ImDrawListSplitter_Split"][1]["cimguiname"] = "ImDrawListSplitter_Split" +defs["ImDrawListSplitter_Split"][1]["defaults"] = {} +defs["ImDrawListSplitter_Split"][1]["funcname"] = "Split" +defs["ImDrawListSplitter_Split"][1]["location"] = "imgui:2567" +defs["ImDrawListSplitter_Split"][1]["ov_cimguiname"] = "ImDrawListSplitter_Split" +defs["ImDrawListSplitter_Split"][1]["ret"] = "void" +defs["ImDrawListSplitter_Split"][1]["signature"] = "(ImDrawList*,int)" +defs["ImDrawListSplitter_Split"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_Split"]["(ImDrawList*,int)"] = defs["ImDrawListSplitter_Split"][1] +defs["ImDrawListSplitter_destroy"] = {} +defs["ImDrawListSplitter_destroy"][1] = {} +defs["ImDrawListSplitter_destroy"][1]["args"] = "(ImDrawListSplitter* self)" +defs["ImDrawListSplitter_destroy"][1]["argsT"] = {} +defs["ImDrawListSplitter_destroy"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_destroy"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_destroy"][1]["call_args"] = "(self)" +defs["ImDrawListSplitter_destroy"][1]["cimguiname"] = "ImDrawListSplitter_destroy" +defs["ImDrawListSplitter_destroy"][1]["defaults"] = {} +defs["ImDrawListSplitter_destroy"][1]["destructor"] = true +defs["ImDrawListSplitter_destroy"][1]["location"] = "imgui:2564" +defs["ImDrawListSplitter_destroy"][1]["ov_cimguiname"] = "ImDrawListSplitter_destroy" +defs["ImDrawListSplitter_destroy"][1]["realdestructor"] = true +defs["ImDrawListSplitter_destroy"][1]["ret"] = "void" +defs["ImDrawListSplitter_destroy"][1]["signature"] = "(ImDrawListSplitter*)" +defs["ImDrawListSplitter_destroy"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_destroy"]["(ImDrawListSplitter*)"] = defs["ImDrawListSplitter_destroy"][1] +defs["ImDrawList_AddBezierCubic"] = {} +defs["ImDrawList_AddBezierCubic"][1] = {} +defs["ImDrawList_AddBezierCubic"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments)" +defs["ImDrawList_AddBezierCubic"][1]["argsT"] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][1] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][2] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][3] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][4] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][5] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][5]["name"] = "p4" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][6] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][6]["name"] = "col" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][7] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][7]["name"] = "thickness" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][7]["type"] = "float" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][8] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][8]["name"] = "num_segments" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][8]["type"] = "int" +defs["ImDrawList_AddBezierCubic"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness,int num_segments=0)" +defs["ImDrawList_AddBezierCubic"][1]["call_args"] = "(p1,p2,p3,p4,col,thickness,num_segments)" +defs["ImDrawList_AddBezierCubic"][1]["cimguiname"] = "ImDrawList_AddBezierCubic" +defs["ImDrawList_AddBezierCubic"][1]["defaults"] = {} +defs["ImDrawList_AddBezierCubic"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_AddBezierCubic"][1]["funcname"] = "AddBezierCubic" +defs["ImDrawList_AddBezierCubic"][1]["location"] = "imgui:2668" +defs["ImDrawList_AddBezierCubic"][1]["ov_cimguiname"] = "ImDrawList_AddBezierCubic" +defs["ImDrawList_AddBezierCubic"][1]["ret"] = "void" +defs["ImDrawList_AddBezierCubic"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)" +defs["ImDrawList_AddBezierCubic"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddBezierCubic"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)"] = defs["ImDrawList_AddBezierCubic"][1] +defs["ImDrawList_AddBezierQuadratic"] = {} +defs["ImDrawList_AddBezierQuadratic"][1] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments)" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][1] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][2] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][3] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][4] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][5] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][5]["name"] = "col" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][6] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][7] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][7]["name"] = "num_segments" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][7]["type"] = "int" +defs["ImDrawList_AddBezierQuadratic"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness,int num_segments=0)" +defs["ImDrawList_AddBezierQuadratic"][1]["call_args"] = "(p1,p2,p3,col,thickness,num_segments)" +defs["ImDrawList_AddBezierQuadratic"][1]["cimguiname"] = "ImDrawList_AddBezierQuadratic" +defs["ImDrawList_AddBezierQuadratic"][1]["defaults"] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_AddBezierQuadratic"][1]["funcname"] = "AddBezierQuadratic" +defs["ImDrawList_AddBezierQuadratic"][1]["location"] = "imgui:2669" +defs["ImDrawList_AddBezierQuadratic"][1]["ov_cimguiname"] = "ImDrawList_AddBezierQuadratic" +defs["ImDrawList_AddBezierQuadratic"][1]["ret"] = "void" +defs["ImDrawList_AddBezierQuadratic"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)" +defs["ImDrawList_AddBezierQuadratic"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddBezierQuadratic"]["(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)"] = defs["ImDrawList_AddBezierQuadratic"][1] +defs["ImDrawList_AddCallback"] = {} +defs["ImDrawList_AddCallback"][1] = {} +defs["ImDrawList_AddCallback"][1]["args"] = "(ImDrawList* self,ImDrawCallback callback,void* callback_data)" +defs["ImDrawList_AddCallback"][1]["argsT"] = {} +defs["ImDrawList_AddCallback"][1]["argsT"][1] = {} +defs["ImDrawList_AddCallback"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddCallback"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddCallback"][1]["argsT"][2] = {} +defs["ImDrawList_AddCallback"][1]["argsT"][2]["name"] = "callback" +defs["ImDrawList_AddCallback"][1]["argsT"][2]["type"] = "ImDrawCallback" +defs["ImDrawList_AddCallback"][1]["argsT"][3] = {} +defs["ImDrawList_AddCallback"][1]["argsT"][3]["name"] = "callback_data" +defs["ImDrawList_AddCallback"][1]["argsT"][3]["type"] = "void*" +defs["ImDrawList_AddCallback"][1]["argsoriginal"] = "(ImDrawCallback callback,void* callback_data)" +defs["ImDrawList_AddCallback"][1]["call_args"] = "(callback,callback_data)" +defs["ImDrawList_AddCallback"][1]["cimguiname"] = "ImDrawList_AddCallback" +defs["ImDrawList_AddCallback"][1]["defaults"] = {} +defs["ImDrawList_AddCallback"][1]["funcname"] = "AddCallback" +defs["ImDrawList_AddCallback"][1]["location"] = "imgui:2693" +defs["ImDrawList_AddCallback"][1]["ov_cimguiname"] = "ImDrawList_AddCallback" +defs["ImDrawList_AddCallback"][1]["ret"] = "void" +defs["ImDrawList_AddCallback"][1]["signature"] = "(ImDrawCallback,void*)" +defs["ImDrawList_AddCallback"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddCallback"]["(ImDrawCallback,void*)"] = defs["ImDrawList_AddCallback"][1] +defs["ImDrawList_AddCircle"] = {} +defs["ImDrawList_AddCircle"][1] = {} +defs["ImDrawList_AddCircle"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)" +defs["ImDrawList_AddCircle"][1]["argsT"] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][1] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddCircle"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddCircle"][1]["argsT"][2] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_AddCircle"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddCircle"][1]["argsT"][3] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_AddCircle"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddCircle"][1]["argsT"][4] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddCircle"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddCircle"][1]["argsT"][5] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_AddCircle"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_AddCircle"][1]["argsT"][6] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddCircle"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddCircle"][1]["argsoriginal"] = "(const ImVec2& center,float radius,ImU32 col,int num_segments=0,float thickness=1.0f)" +defs["ImDrawList_AddCircle"][1]["call_args"] = "(center,radius,col,num_segments,thickness)" +defs["ImDrawList_AddCircle"][1]["cimguiname"] = "ImDrawList_AddCircle" +defs["ImDrawList_AddCircle"][1]["defaults"] = {} +defs["ImDrawList_AddCircle"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_AddCircle"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddCircle"][1]["funcname"] = "AddCircle" +defs["ImDrawList_AddCircle"][1]["location"] = "imgui:2660" +defs["ImDrawList_AddCircle"][1]["ov_cimguiname"] = "ImDrawList_AddCircle" +defs["ImDrawList_AddCircle"][1]["ret"] = "void" +defs["ImDrawList_AddCircle"][1]["signature"] = "(const ImVec2,float,ImU32,int,float)" +defs["ImDrawList_AddCircle"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddCircle"]["(const ImVec2,float,ImU32,int,float)"] = defs["ImDrawList_AddCircle"][1] +defs["ImDrawList_AddCircleFilled"] = {} +defs["ImDrawList_AddCircleFilled"][1] = {} +defs["ImDrawList_AddCircleFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)" +defs["ImDrawList_AddCircleFilled"][1]["argsT"] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_AddCircleFilled"][1]["argsoriginal"] = "(const ImVec2& center,float radius,ImU32 col,int num_segments=0)" +defs["ImDrawList_AddCircleFilled"][1]["call_args"] = "(center,radius,col,num_segments)" +defs["ImDrawList_AddCircleFilled"][1]["cimguiname"] = "ImDrawList_AddCircleFilled" +defs["ImDrawList_AddCircleFilled"][1]["defaults"] = {} +defs["ImDrawList_AddCircleFilled"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_AddCircleFilled"][1]["funcname"] = "AddCircleFilled" +defs["ImDrawList_AddCircleFilled"][1]["location"] = "imgui:2661" +defs["ImDrawList_AddCircleFilled"][1]["ov_cimguiname"] = "ImDrawList_AddCircleFilled" +defs["ImDrawList_AddCircleFilled"][1]["ret"] = "void" +defs["ImDrawList_AddCircleFilled"][1]["signature"] = "(const ImVec2,float,ImU32,int)" +defs["ImDrawList_AddCircleFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddCircleFilled"]["(const ImVec2,float,ImU32,int)"] = defs["ImDrawList_AddCircleFilled"][1] +defs["ImDrawList_AddConvexPolyFilled"] = {} +defs["ImDrawList_AddConvexPolyFilled"][1] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["args"] = "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col)" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][2]["name"] = "points" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][2]["type"] = "const ImVec2*" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][3]["name"] = "num_points" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][3]["type"] = "int" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsoriginal"] = "(const ImVec2* points,int num_points,ImU32 col)" +defs["ImDrawList_AddConvexPolyFilled"][1]["call_args"] = "(points,num_points,col)" +defs["ImDrawList_AddConvexPolyFilled"][1]["cimguiname"] = "ImDrawList_AddConvexPolyFilled" +defs["ImDrawList_AddConvexPolyFilled"][1]["defaults"] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["funcname"] = "AddConvexPolyFilled" +defs["ImDrawList_AddConvexPolyFilled"][1]["location"] = "imgui:2667" +defs["ImDrawList_AddConvexPolyFilled"][1]["ov_cimguiname"] = "ImDrawList_AddConvexPolyFilled" +defs["ImDrawList_AddConvexPolyFilled"][1]["ret"] = "void" +defs["ImDrawList_AddConvexPolyFilled"][1]["signature"] = "(const ImVec2*,int,ImU32)" +defs["ImDrawList_AddConvexPolyFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddConvexPolyFilled"]["(const ImVec2*,int,ImU32)"] = defs["ImDrawList_AddConvexPolyFilled"][1] +defs["ImDrawList_AddDrawCmd"] = {} +defs["ImDrawList_AddDrawCmd"][1] = {} +defs["ImDrawList_AddDrawCmd"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_AddDrawCmd"][1]["argsT"] = {} +defs["ImDrawList_AddDrawCmd"][1]["argsT"][1] = {} +defs["ImDrawList_AddDrawCmd"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddDrawCmd"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddDrawCmd"][1]["argsoriginal"] = "()" +defs["ImDrawList_AddDrawCmd"][1]["call_args"] = "()" +defs["ImDrawList_AddDrawCmd"][1]["cimguiname"] = "ImDrawList_AddDrawCmd" +defs["ImDrawList_AddDrawCmd"][1]["defaults"] = {} +defs["ImDrawList_AddDrawCmd"][1]["funcname"] = "AddDrawCmd" +defs["ImDrawList_AddDrawCmd"][1]["location"] = "imgui:2694" +defs["ImDrawList_AddDrawCmd"][1]["ov_cimguiname"] = "ImDrawList_AddDrawCmd" +defs["ImDrawList_AddDrawCmd"][1]["ret"] = "void" +defs["ImDrawList_AddDrawCmd"][1]["signature"] = "()" +defs["ImDrawList_AddDrawCmd"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddDrawCmd"]["()"] = defs["ImDrawList_AddDrawCmd"][1] +defs["ImDrawList_AddImage"] = {} +defs["ImDrawList_AddImage"][1] = {} +defs["ImDrawList_AddImage"][1]["args"] = "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col)" +defs["ImDrawList_AddImage"][1]["argsT"] = {} +defs["ImDrawList_AddImage"][1]["argsT"][1] = {} +defs["ImDrawList_AddImage"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddImage"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddImage"][1]["argsT"][2] = {} +defs["ImDrawList_AddImage"][1]["argsT"][2]["name"] = "user_texture_id" +defs["ImDrawList_AddImage"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImDrawList_AddImage"][1]["argsT"][3] = {} +defs["ImDrawList_AddImage"][1]["argsT"][3]["name"] = "p_min" +defs["ImDrawList_AddImage"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddImage"][1]["argsT"][4] = {} +defs["ImDrawList_AddImage"][1]["argsT"][4]["name"] = "p_max" +defs["ImDrawList_AddImage"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddImage"][1]["argsT"][5] = {} +defs["ImDrawList_AddImage"][1]["argsT"][5]["name"] = "uv_min" +defs["ImDrawList_AddImage"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddImage"][1]["argsT"][6] = {} +defs["ImDrawList_AddImage"][1]["argsT"][6]["name"] = "uv_max" +defs["ImDrawList_AddImage"][1]["argsT"][6]["type"] = "const ImVec2" +defs["ImDrawList_AddImage"][1]["argsT"][7] = {} +defs["ImDrawList_AddImage"][1]["argsT"][7]["name"] = "col" +defs["ImDrawList_AddImage"][1]["argsT"][7]["type"] = "ImU32" +defs["ImDrawList_AddImage"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min=ImVec2(0,0),const ImVec2& uv_max=ImVec2(1,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))" +defs["ImDrawList_AddImage"][1]["call_args"] = "(user_texture_id,p_min,p_max,uv_min,uv_max,col)" +defs["ImDrawList_AddImage"][1]["cimguiname"] = "ImDrawList_AddImage" +defs["ImDrawList_AddImage"][1]["defaults"] = {} +defs["ImDrawList_AddImage"][1]["defaults"]["col"] = "4294967295" +defs["ImDrawList_AddImage"][1]["defaults"]["uv_max"] = "ImVec2(1,1)" +defs["ImDrawList_AddImage"][1]["defaults"]["uv_min"] = "ImVec2(0,0)" +defs["ImDrawList_AddImage"][1]["funcname"] = "AddImage" +defs["ImDrawList_AddImage"][1]["location"] = "imgui:2675" +defs["ImDrawList_AddImage"][1]["ov_cimguiname"] = "ImDrawList_AddImage" +defs["ImDrawList_AddImage"][1]["ret"] = "void" +defs["ImDrawList_AddImage"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_AddImage"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddImage"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_AddImage"][1] +defs["ImDrawList_AddImageQuad"] = {} +defs["ImDrawList_AddImageQuad"][1] = {} +defs["ImDrawList_AddImageQuad"][1]["args"] = "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col)" +defs["ImDrawList_AddImageQuad"][1]["argsT"] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][1] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddImageQuad"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddImageQuad"][1]["argsT"][2] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][2]["name"] = "user_texture_id" +defs["ImDrawList_AddImageQuad"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImDrawList_AddImageQuad"][1]["argsT"][3] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][3]["name"] = "p1" +defs["ImDrawList_AddImageQuad"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][4] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][4]["name"] = "p2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][5] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][5]["name"] = "p3" +defs["ImDrawList_AddImageQuad"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][6] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][6]["name"] = "p4" +defs["ImDrawList_AddImageQuad"][1]["argsT"][6]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][7] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][7]["name"] = "uv1" +defs["ImDrawList_AddImageQuad"][1]["argsT"][7]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][8] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][8]["name"] = "uv2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][8]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][9] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][9]["name"] = "uv3" +defs["ImDrawList_AddImageQuad"][1]["argsT"][9]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][10] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][10]["name"] = "uv4" +defs["ImDrawList_AddImageQuad"][1]["argsT"][10]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][11] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][11]["name"] = "col" +defs["ImDrawList_AddImageQuad"][1]["argsT"][11]["type"] = "ImU32" +defs["ImDrawList_AddImageQuad"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& uv1=ImVec2(0,0),const ImVec2& uv2=ImVec2(1,0),const ImVec2& uv3=ImVec2(1,1),const ImVec2& uv4=ImVec2(0,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))" +defs["ImDrawList_AddImageQuad"][1]["call_args"] = "(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col)" +defs["ImDrawList_AddImageQuad"][1]["cimguiname"] = "ImDrawList_AddImageQuad" +defs["ImDrawList_AddImageQuad"][1]["defaults"] = {} +defs["ImDrawList_AddImageQuad"][1]["defaults"]["col"] = "4294967295" +defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv1"] = "ImVec2(0,0)" +defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv2"] = "ImVec2(1,0)" +defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv3"] = "ImVec2(1,1)" +defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv4"] = "ImVec2(0,1)" +defs["ImDrawList_AddImageQuad"][1]["funcname"] = "AddImageQuad" +defs["ImDrawList_AddImageQuad"][1]["location"] = "imgui:2676" +defs["ImDrawList_AddImageQuad"][1]["ov_cimguiname"] = "ImDrawList_AddImageQuad" +defs["ImDrawList_AddImageQuad"][1]["ret"] = "void" +defs["ImDrawList_AddImageQuad"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_AddImageQuad"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddImageQuad"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_AddImageQuad"][1] +defs["ImDrawList_AddImageRounded"] = {} +defs["ImDrawList_AddImageRounded"][1] = {} +defs["ImDrawList_AddImageRounded"][1]["args"] = "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags)" +defs["ImDrawList_AddImageRounded"][1]["argsT"] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][1] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddImageRounded"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddImageRounded"][1]["argsT"][2] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][2]["name"] = "user_texture_id" +defs["ImDrawList_AddImageRounded"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImDrawList_AddImageRounded"][1]["argsT"][3] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][3]["name"] = "p_min" +defs["ImDrawList_AddImageRounded"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddImageRounded"][1]["argsT"][4] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][4]["name"] = "p_max" +defs["ImDrawList_AddImageRounded"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddImageRounded"][1]["argsT"][5] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][5]["name"] = "uv_min" +defs["ImDrawList_AddImageRounded"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddImageRounded"][1]["argsT"][6] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][6]["name"] = "uv_max" +defs["ImDrawList_AddImageRounded"][1]["argsT"][6]["type"] = "const ImVec2" +defs["ImDrawList_AddImageRounded"][1]["argsT"][7] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][7]["name"] = "col" +defs["ImDrawList_AddImageRounded"][1]["argsT"][7]["type"] = "ImU32" +defs["ImDrawList_AddImageRounded"][1]["argsT"][8] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][8]["name"] = "rounding" +defs["ImDrawList_AddImageRounded"][1]["argsT"][8]["type"] = "float" +defs["ImDrawList_AddImageRounded"][1]["argsT"][9] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][9]["name"] = "flags" +defs["ImDrawList_AddImageRounded"][1]["argsT"][9]["type"] = "ImDrawFlags" +defs["ImDrawList_AddImageRounded"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min,const ImVec2& uv_max,ImU32 col,float rounding,ImDrawFlags flags=0)" +defs["ImDrawList_AddImageRounded"][1]["call_args"] = "(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags)" +defs["ImDrawList_AddImageRounded"][1]["cimguiname"] = "ImDrawList_AddImageRounded" +defs["ImDrawList_AddImageRounded"][1]["defaults"] = {} +defs["ImDrawList_AddImageRounded"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_AddImageRounded"][1]["funcname"] = "AddImageRounded" +defs["ImDrawList_AddImageRounded"][1]["location"] = "imgui:2677" +defs["ImDrawList_AddImageRounded"][1]["ov_cimguiname"] = "ImDrawList_AddImageRounded" +defs["ImDrawList_AddImageRounded"][1]["ret"] = "void" +defs["ImDrawList_AddImageRounded"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)" +defs["ImDrawList_AddImageRounded"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddImageRounded"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)"] = defs["ImDrawList_AddImageRounded"][1] +defs["ImDrawList_AddLine"] = {} +defs["ImDrawList_AddLine"][1] = {} +defs["ImDrawList_AddLine"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness)" +defs["ImDrawList_AddLine"][1]["argsT"] = {} +defs["ImDrawList_AddLine"][1]["argsT"][1] = {} +defs["ImDrawList_AddLine"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddLine"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddLine"][1]["argsT"][2] = {} +defs["ImDrawList_AddLine"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddLine"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddLine"][1]["argsT"][3] = {} +defs["ImDrawList_AddLine"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddLine"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddLine"][1]["argsT"][4] = {} +defs["ImDrawList_AddLine"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddLine"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddLine"][1]["argsT"][5] = {} +defs["ImDrawList_AddLine"][1]["argsT"][5]["name"] = "thickness" +defs["ImDrawList_AddLine"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList_AddLine"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,ImU32 col,float thickness=1.0f)" +defs["ImDrawList_AddLine"][1]["call_args"] = "(p1,p2,col,thickness)" +defs["ImDrawList_AddLine"][1]["cimguiname"] = "ImDrawList_AddLine" +defs["ImDrawList_AddLine"][1]["defaults"] = {} +defs["ImDrawList_AddLine"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddLine"][1]["funcname"] = "AddLine" +defs["ImDrawList_AddLine"][1]["location"] = "imgui:2652" +defs["ImDrawList_AddLine"][1]["ov_cimguiname"] = "ImDrawList_AddLine" +defs["ImDrawList_AddLine"][1]["ret"] = "void" +defs["ImDrawList_AddLine"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float)" +defs["ImDrawList_AddLine"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddLine"]["(const ImVec2,const ImVec2,ImU32,float)"] = defs["ImDrawList_AddLine"][1] +defs["ImDrawList_AddNgon"] = {} +defs["ImDrawList_AddNgon"][1] = {} +defs["ImDrawList_AddNgon"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)" +defs["ImDrawList_AddNgon"][1]["argsT"] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][1] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddNgon"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddNgon"][1]["argsT"][2] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_AddNgon"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddNgon"][1]["argsT"][3] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_AddNgon"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddNgon"][1]["argsT"][4] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddNgon"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddNgon"][1]["argsT"][5] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_AddNgon"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_AddNgon"][1]["argsT"][6] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddNgon"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddNgon"][1]["argsoriginal"] = "(const ImVec2& center,float radius,ImU32 col,int num_segments,float thickness=1.0f)" +defs["ImDrawList_AddNgon"][1]["call_args"] = "(center,radius,col,num_segments,thickness)" +defs["ImDrawList_AddNgon"][1]["cimguiname"] = "ImDrawList_AddNgon" +defs["ImDrawList_AddNgon"][1]["defaults"] = {} +defs["ImDrawList_AddNgon"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddNgon"][1]["funcname"] = "AddNgon" +defs["ImDrawList_AddNgon"][1]["location"] = "imgui:2662" +defs["ImDrawList_AddNgon"][1]["ov_cimguiname"] = "ImDrawList_AddNgon" +defs["ImDrawList_AddNgon"][1]["ret"] = "void" +defs["ImDrawList_AddNgon"][1]["signature"] = "(const ImVec2,float,ImU32,int,float)" +defs["ImDrawList_AddNgon"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddNgon"]["(const ImVec2,float,ImU32,int,float)"] = defs["ImDrawList_AddNgon"][1] +defs["ImDrawList_AddNgonFilled"] = {} +defs["ImDrawList_AddNgonFilled"][1] = {} +defs["ImDrawList_AddNgonFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)" +defs["ImDrawList_AddNgonFilled"][1]["argsT"] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_AddNgonFilled"][1]["argsoriginal"] = "(const ImVec2& center,float radius,ImU32 col,int num_segments)" +defs["ImDrawList_AddNgonFilled"][1]["call_args"] = "(center,radius,col,num_segments)" +defs["ImDrawList_AddNgonFilled"][1]["cimguiname"] = "ImDrawList_AddNgonFilled" +defs["ImDrawList_AddNgonFilled"][1]["defaults"] = {} +defs["ImDrawList_AddNgonFilled"][1]["funcname"] = "AddNgonFilled" +defs["ImDrawList_AddNgonFilled"][1]["location"] = "imgui:2663" +defs["ImDrawList_AddNgonFilled"][1]["ov_cimguiname"] = "ImDrawList_AddNgonFilled" +defs["ImDrawList_AddNgonFilled"][1]["ret"] = "void" +defs["ImDrawList_AddNgonFilled"][1]["signature"] = "(const ImVec2,float,ImU32,int)" +defs["ImDrawList_AddNgonFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddNgonFilled"]["(const ImVec2,float,ImU32,int)"] = defs["ImDrawList_AddNgonFilled"][1] +defs["ImDrawList_AddPolyline"] = {} +defs["ImDrawList_AddPolyline"][1] = {} +defs["ImDrawList_AddPolyline"][1]["args"] = "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)" +defs["ImDrawList_AddPolyline"][1]["argsT"] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][1] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddPolyline"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddPolyline"][1]["argsT"][2] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][2]["name"] = "points" +defs["ImDrawList_AddPolyline"][1]["argsT"][2]["type"] = "const ImVec2*" +defs["ImDrawList_AddPolyline"][1]["argsT"][3] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][3]["name"] = "num_points" +defs["ImDrawList_AddPolyline"][1]["argsT"][3]["type"] = "int" +defs["ImDrawList_AddPolyline"][1]["argsT"][4] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddPolyline"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddPolyline"][1]["argsT"][5] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][5]["name"] = "flags" +defs["ImDrawList_AddPolyline"][1]["argsT"][5]["type"] = "ImDrawFlags" +defs["ImDrawList_AddPolyline"][1]["argsT"][6] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddPolyline"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddPolyline"][1]["argsoriginal"] = "(const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)" +defs["ImDrawList_AddPolyline"][1]["call_args"] = "(points,num_points,col,flags,thickness)" +defs["ImDrawList_AddPolyline"][1]["cimguiname"] = "ImDrawList_AddPolyline" +defs["ImDrawList_AddPolyline"][1]["defaults"] = {} +defs["ImDrawList_AddPolyline"][1]["funcname"] = "AddPolyline" +defs["ImDrawList_AddPolyline"][1]["location"] = "imgui:2666" +defs["ImDrawList_AddPolyline"][1]["ov_cimguiname"] = "ImDrawList_AddPolyline" +defs["ImDrawList_AddPolyline"][1]["ret"] = "void" +defs["ImDrawList_AddPolyline"][1]["signature"] = "(const ImVec2*,int,ImU32,ImDrawFlags,float)" +defs["ImDrawList_AddPolyline"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddPolyline"]["(const ImVec2*,int,ImU32,ImDrawFlags,float)"] = defs["ImDrawList_AddPolyline"][1] +defs["ImDrawList_AddQuad"] = {} +defs["ImDrawList_AddQuad"][1] = {} +defs["ImDrawList_AddQuad"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness)" +defs["ImDrawList_AddQuad"][1]["argsT"] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][1] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddQuad"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddQuad"][1]["argsT"][2] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddQuad"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddQuad"][1]["argsT"][3] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddQuad"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddQuad"][1]["argsT"][4] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddQuad"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddQuad"][1]["argsT"][5] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][5]["name"] = "p4" +defs["ImDrawList_AddQuad"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddQuad"][1]["argsT"][6] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][6]["name"] = "col" +defs["ImDrawList_AddQuad"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_AddQuad"][1]["argsT"][7] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][7]["name"] = "thickness" +defs["ImDrawList_AddQuad"][1]["argsT"][7]["type"] = "float" +defs["ImDrawList_AddQuad"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness=1.0f)" +defs["ImDrawList_AddQuad"][1]["call_args"] = "(p1,p2,p3,p4,col,thickness)" +defs["ImDrawList_AddQuad"][1]["cimguiname"] = "ImDrawList_AddQuad" +defs["ImDrawList_AddQuad"][1]["defaults"] = {} +defs["ImDrawList_AddQuad"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddQuad"][1]["funcname"] = "AddQuad" +defs["ImDrawList_AddQuad"][1]["location"] = "imgui:2656" +defs["ImDrawList_AddQuad"][1]["ov_cimguiname"] = "ImDrawList_AddQuad" +defs["ImDrawList_AddQuad"][1]["ret"] = "void" +defs["ImDrawList_AddQuad"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)" +defs["ImDrawList_AddQuad"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddQuad"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)"] = defs["ImDrawList_AddQuad"][1] +defs["ImDrawList_AddQuadFilled"] = {} +defs["ImDrawList_AddQuadFilled"][1] = {} +defs["ImDrawList_AddQuadFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col)" +defs["ImDrawList_AddQuadFilled"][1]["argsT"] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][5]["name"] = "p4" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][6] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][6]["name"] = "col" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_AddQuadFilled"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col)" +defs["ImDrawList_AddQuadFilled"][1]["call_args"] = "(p1,p2,p3,p4,col)" +defs["ImDrawList_AddQuadFilled"][1]["cimguiname"] = "ImDrawList_AddQuadFilled" +defs["ImDrawList_AddQuadFilled"][1]["defaults"] = {} +defs["ImDrawList_AddQuadFilled"][1]["funcname"] = "AddQuadFilled" +defs["ImDrawList_AddQuadFilled"][1]["location"] = "imgui:2657" +defs["ImDrawList_AddQuadFilled"][1]["ov_cimguiname"] = "ImDrawList_AddQuadFilled" +defs["ImDrawList_AddQuadFilled"][1]["ret"] = "void" +defs["ImDrawList_AddQuadFilled"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_AddQuadFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddQuadFilled"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_AddQuadFilled"][1] +defs["ImDrawList_AddRect"] = {} +defs["ImDrawList_AddRect"][1] = {} +defs["ImDrawList_AddRect"][1]["args"] = "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness)" +defs["ImDrawList_AddRect"][1]["argsT"] = {} +defs["ImDrawList_AddRect"][1]["argsT"][1] = {} +defs["ImDrawList_AddRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddRect"][1]["argsT"][2] = {} +defs["ImDrawList_AddRect"][1]["argsT"][2]["name"] = "p_min" +defs["ImDrawList_AddRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddRect"][1]["argsT"][3] = {} +defs["ImDrawList_AddRect"][1]["argsT"][3]["name"] = "p_max" +defs["ImDrawList_AddRect"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddRect"][1]["argsT"][4] = {} +defs["ImDrawList_AddRect"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddRect"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddRect"][1]["argsT"][5] = {} +defs["ImDrawList_AddRect"][1]["argsT"][5]["name"] = "rounding" +defs["ImDrawList_AddRect"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList_AddRect"][1]["argsT"][6] = {} +defs["ImDrawList_AddRect"][1]["argsT"][6]["name"] = "flags" +defs["ImDrawList_AddRect"][1]["argsT"][6]["type"] = "ImDrawFlags" +defs["ImDrawList_AddRect"][1]["argsT"][7] = {} +defs["ImDrawList_AddRect"][1]["argsT"][7]["name"] = "thickness" +defs["ImDrawList_AddRect"][1]["argsT"][7]["type"] = "float" +defs["ImDrawList_AddRect"][1]["argsoriginal"] = "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0,float thickness=1.0f)" +defs["ImDrawList_AddRect"][1]["call_args"] = "(p_min,p_max,col,rounding,flags,thickness)" +defs["ImDrawList_AddRect"][1]["cimguiname"] = "ImDrawList_AddRect" +defs["ImDrawList_AddRect"][1]["defaults"] = {} +defs["ImDrawList_AddRect"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_AddRect"][1]["defaults"]["rounding"] = "0.0f" +defs["ImDrawList_AddRect"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddRect"][1]["funcname"] = "AddRect" +defs["ImDrawList_AddRect"][1]["location"] = "imgui:2653" +defs["ImDrawList_AddRect"][1]["ov_cimguiname"] = "ImDrawList_AddRect" +defs["ImDrawList_AddRect"][1]["ret"] = "void" +defs["ImDrawList_AddRect"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)" +defs["ImDrawList_AddRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddRect"]["(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)"] = defs["ImDrawList_AddRect"][1] +defs["ImDrawList_AddRectFilled"] = {} +defs["ImDrawList_AddRectFilled"][1] = {} +defs["ImDrawList_AddRectFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags)" +defs["ImDrawList_AddRectFilled"][1]["argsT"] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddRectFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddRectFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][2]["name"] = "p_min" +defs["ImDrawList_AddRectFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddRectFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][3]["name"] = "p_max" +defs["ImDrawList_AddRectFilled"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddRectFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddRectFilled"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddRectFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][5]["name"] = "rounding" +defs["ImDrawList_AddRectFilled"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList_AddRectFilled"][1]["argsT"][6] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][6]["name"] = "flags" +defs["ImDrawList_AddRectFilled"][1]["argsT"][6]["type"] = "ImDrawFlags" +defs["ImDrawList_AddRectFilled"][1]["argsoriginal"] = "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0)" +defs["ImDrawList_AddRectFilled"][1]["call_args"] = "(p_min,p_max,col,rounding,flags)" +defs["ImDrawList_AddRectFilled"][1]["cimguiname"] = "ImDrawList_AddRectFilled" +defs["ImDrawList_AddRectFilled"][1]["defaults"] = {} +defs["ImDrawList_AddRectFilled"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_AddRectFilled"][1]["defaults"]["rounding"] = "0.0f" +defs["ImDrawList_AddRectFilled"][1]["funcname"] = "AddRectFilled" +defs["ImDrawList_AddRectFilled"][1]["location"] = "imgui:2654" +defs["ImDrawList_AddRectFilled"][1]["ov_cimguiname"] = "ImDrawList_AddRectFilled" +defs["ImDrawList_AddRectFilled"][1]["ret"] = "void" +defs["ImDrawList_AddRectFilled"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)" +defs["ImDrawList_AddRectFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddRectFilled"]["(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)"] = defs["ImDrawList_AddRectFilled"][1] +defs["ImDrawList_AddRectFilledMultiColor"] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["args"] = "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][1] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][2] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][2]["name"] = "p_min" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][3] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][3]["name"] = "p_max" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][4] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][4]["name"] = "col_upr_left" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][5] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][5]["name"] = "col_upr_right" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][6] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][6]["name"] = "col_bot_right" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][7] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][7]["name"] = "col_bot_left" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][7]["type"] = "ImU32" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsoriginal"] = "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)" +defs["ImDrawList_AddRectFilledMultiColor"][1]["call_args"] = "(p_min,p_max,col_upr_left,col_upr_right,col_bot_right,col_bot_left)" +defs["ImDrawList_AddRectFilledMultiColor"][1]["cimguiname"] = "ImDrawList_AddRectFilledMultiColor" +defs["ImDrawList_AddRectFilledMultiColor"][1]["defaults"] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["funcname"] = "AddRectFilledMultiColor" +defs["ImDrawList_AddRectFilledMultiColor"][1]["location"] = "imgui:2655" +defs["ImDrawList_AddRectFilledMultiColor"][1]["ov_cimguiname"] = "ImDrawList_AddRectFilledMultiColor" +defs["ImDrawList_AddRectFilledMultiColor"][1]["ret"] = "void" +defs["ImDrawList_AddRectFilledMultiColor"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)" +defs["ImDrawList_AddRectFilledMultiColor"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddRectFilledMultiColor"]["(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)"] = defs["ImDrawList_AddRectFilledMultiColor"][1] +defs["ImDrawList_AddText"] = {} +defs["ImDrawList_AddText"][1] = {} +defs["ImDrawList_AddText"][1]["args"] = "(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end)" +defs["ImDrawList_AddText"][1]["argsT"] = {} +defs["ImDrawList_AddText"][1]["argsT"][1] = {} +defs["ImDrawList_AddText"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddText"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddText"][1]["argsT"][2] = {} +defs["ImDrawList_AddText"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_AddText"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddText"][1]["argsT"][3] = {} +defs["ImDrawList_AddText"][1]["argsT"][3]["name"] = "col" +defs["ImDrawList_AddText"][1]["argsT"][3]["type"] = "ImU32" +defs["ImDrawList_AddText"][1]["argsT"][4] = {} +defs["ImDrawList_AddText"][1]["argsT"][4]["name"] = "text_begin" +defs["ImDrawList_AddText"][1]["argsT"][4]["type"] = "const char*" +defs["ImDrawList_AddText"][1]["argsT"][5] = {} +defs["ImDrawList_AddText"][1]["argsT"][5]["name"] = "text_end" +defs["ImDrawList_AddText"][1]["argsT"][5]["type"] = "const char*" +defs["ImDrawList_AddText"][1]["argsoriginal"] = "(const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0))" +defs["ImDrawList_AddText"][1]["call_args"] = "(pos,col,text_begin,text_end)" +defs["ImDrawList_AddText"][1]["cimguiname"] = "ImDrawList_AddText" +defs["ImDrawList_AddText"][1]["defaults"] = {} +defs["ImDrawList_AddText"][1]["defaults"]["text_end"] = "NULL" +defs["ImDrawList_AddText"][1]["funcname"] = "AddText" +defs["ImDrawList_AddText"][1]["location"] = "imgui:2664" +defs["ImDrawList_AddText"][1]["ov_cimguiname"] = "ImDrawList_AddText_Vec2" +defs["ImDrawList_AddText"][1]["ret"] = "void" +defs["ImDrawList_AddText"][1]["signature"] = "(const ImVec2,ImU32,const char*,const char*)" +defs["ImDrawList_AddText"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddText"][2] = {} +defs["ImDrawList_AddText"][2]["args"] = "(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect)" +defs["ImDrawList_AddText"][2]["argsT"] = {} +defs["ImDrawList_AddText"][2]["argsT"][1] = {} +defs["ImDrawList_AddText"][2]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddText"][2]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddText"][2]["argsT"][2] = {} +defs["ImDrawList_AddText"][2]["argsT"][2]["name"] = "font" +defs["ImDrawList_AddText"][2]["argsT"][2]["type"] = "const ImFont*" +defs["ImDrawList_AddText"][2]["argsT"][3] = {} +defs["ImDrawList_AddText"][2]["argsT"][3]["name"] = "font_size" +defs["ImDrawList_AddText"][2]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddText"][2]["argsT"][4] = {} +defs["ImDrawList_AddText"][2]["argsT"][4]["name"] = "pos" +defs["ImDrawList_AddText"][2]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddText"][2]["argsT"][5] = {} +defs["ImDrawList_AddText"][2]["argsT"][5]["name"] = "col" +defs["ImDrawList_AddText"][2]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddText"][2]["argsT"][6] = {} +defs["ImDrawList_AddText"][2]["argsT"][6]["name"] = "text_begin" +defs["ImDrawList_AddText"][2]["argsT"][6]["type"] = "const char*" +defs["ImDrawList_AddText"][2]["argsT"][7] = {} +defs["ImDrawList_AddText"][2]["argsT"][7]["name"] = "text_end" +defs["ImDrawList_AddText"][2]["argsT"][7]["type"] = "const char*" +defs["ImDrawList_AddText"][2]["argsT"][8] = {} +defs["ImDrawList_AddText"][2]["argsT"][8]["name"] = "wrap_width" +defs["ImDrawList_AddText"][2]["argsT"][8]["type"] = "float" +defs["ImDrawList_AddText"][2]["argsT"][9] = {} +defs["ImDrawList_AddText"][2]["argsT"][9]["name"] = "cpu_fine_clip_rect" +defs["ImDrawList_AddText"][2]["argsT"][9]["type"] = "const ImVec4*" +defs["ImDrawList_AddText"][2]["argsoriginal"] = "(const ImFont* font,float font_size,const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0),float wrap_width=0.0f,const ImVec4* cpu_fine_clip_rect=((void*)0))" +defs["ImDrawList_AddText"][2]["call_args"] = "(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect)" +defs["ImDrawList_AddText"][2]["cimguiname"] = "ImDrawList_AddText" +defs["ImDrawList_AddText"][2]["defaults"] = {} +defs["ImDrawList_AddText"][2]["defaults"]["cpu_fine_clip_rect"] = "NULL" +defs["ImDrawList_AddText"][2]["defaults"]["text_end"] = "NULL" +defs["ImDrawList_AddText"][2]["defaults"]["wrap_width"] = "0.0f" +defs["ImDrawList_AddText"][2]["funcname"] = "AddText" +defs["ImDrawList_AddText"][2]["location"] = "imgui:2665" +defs["ImDrawList_AddText"][2]["ov_cimguiname"] = "ImDrawList_AddText_FontPtr" +defs["ImDrawList_AddText"][2]["ret"] = "void" +defs["ImDrawList_AddText"][2]["signature"] = "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)" +defs["ImDrawList_AddText"][2]["stname"] = "ImDrawList" +defs["ImDrawList_AddText"]["(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)"] = defs["ImDrawList_AddText"][2] +defs["ImDrawList_AddText"]["(const ImVec2,ImU32,const char*,const char*)"] = defs["ImDrawList_AddText"][1] +defs["ImDrawList_AddTriangle"] = {} +defs["ImDrawList_AddTriangle"][1] = {} +defs["ImDrawList_AddTriangle"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness)" +defs["ImDrawList_AddTriangle"][1]["argsT"] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][1] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddTriangle"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddTriangle"][1]["argsT"][2] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddTriangle"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangle"][1]["argsT"][3] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddTriangle"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangle"][1]["argsT"][4] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddTriangle"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangle"][1]["argsT"][5] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][5]["name"] = "col" +defs["ImDrawList_AddTriangle"][1]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddTriangle"][1]["argsT"][6] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddTriangle"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddTriangle"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness=1.0f)" +defs["ImDrawList_AddTriangle"][1]["call_args"] = "(p1,p2,p3,col,thickness)" +defs["ImDrawList_AddTriangle"][1]["cimguiname"] = "ImDrawList_AddTriangle" +defs["ImDrawList_AddTriangle"][1]["defaults"] = {} +defs["ImDrawList_AddTriangle"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddTriangle"][1]["funcname"] = "AddTriangle" +defs["ImDrawList_AddTriangle"][1]["location"] = "imgui:2658" +defs["ImDrawList_AddTriangle"][1]["ov_cimguiname"] = "ImDrawList_AddTriangle" +defs["ImDrawList_AddTriangle"][1]["ret"] = "void" +defs["ImDrawList_AddTriangle"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)" +defs["ImDrawList_AddTriangle"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddTriangle"]["(const ImVec2,const ImVec2,const ImVec2,ImU32,float)"] = defs["ImDrawList_AddTriangle"][1] +defs["ImDrawList_AddTriangleFilled"] = {} +defs["ImDrawList_AddTriangleFilled"][1] = {} +defs["ImDrawList_AddTriangleFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col)" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][5]["name"] = "col" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddTriangleFilled"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col)" +defs["ImDrawList_AddTriangleFilled"][1]["call_args"] = "(p1,p2,p3,col)" +defs["ImDrawList_AddTriangleFilled"][1]["cimguiname"] = "ImDrawList_AddTriangleFilled" +defs["ImDrawList_AddTriangleFilled"][1]["defaults"] = {} +defs["ImDrawList_AddTriangleFilled"][1]["funcname"] = "AddTriangleFilled" +defs["ImDrawList_AddTriangleFilled"][1]["location"] = "imgui:2659" +defs["ImDrawList_AddTriangleFilled"][1]["ov_cimguiname"] = "ImDrawList_AddTriangleFilled" +defs["ImDrawList_AddTriangleFilled"][1]["ret"] = "void" +defs["ImDrawList_AddTriangleFilled"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_AddTriangleFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddTriangleFilled"]["(const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_AddTriangleFilled"][1] +defs["ImDrawList_ChannelsMerge"] = {} +defs["ImDrawList_ChannelsMerge"][1] = {} +defs["ImDrawList_ChannelsMerge"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_ChannelsMerge"][1]["argsT"] = {} +defs["ImDrawList_ChannelsMerge"][1]["argsT"][1] = {} +defs["ImDrawList_ChannelsMerge"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_ChannelsMerge"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_ChannelsMerge"][1]["argsoriginal"] = "()" +defs["ImDrawList_ChannelsMerge"][1]["call_args"] = "()" +defs["ImDrawList_ChannelsMerge"][1]["cimguiname"] = "ImDrawList_ChannelsMerge" +defs["ImDrawList_ChannelsMerge"][1]["defaults"] = {} +defs["ImDrawList_ChannelsMerge"][1]["funcname"] = "ChannelsMerge" +defs["ImDrawList_ChannelsMerge"][1]["location"] = "imgui:2704" +defs["ImDrawList_ChannelsMerge"][1]["ov_cimguiname"] = "ImDrawList_ChannelsMerge" +defs["ImDrawList_ChannelsMerge"][1]["ret"] = "void" +defs["ImDrawList_ChannelsMerge"][1]["signature"] = "()" +defs["ImDrawList_ChannelsMerge"][1]["stname"] = "ImDrawList" +defs["ImDrawList_ChannelsMerge"]["()"] = defs["ImDrawList_ChannelsMerge"][1] +defs["ImDrawList_ChannelsSetCurrent"] = {} +defs["ImDrawList_ChannelsSetCurrent"][1] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["args"] = "(ImDrawList* self,int n)" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][1] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][2] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][2]["name"] = "n" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][2]["type"] = "int" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsoriginal"] = "(int n)" +defs["ImDrawList_ChannelsSetCurrent"][1]["call_args"] = "(n)" +defs["ImDrawList_ChannelsSetCurrent"][1]["cimguiname"] = "ImDrawList_ChannelsSetCurrent" +defs["ImDrawList_ChannelsSetCurrent"][1]["defaults"] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["funcname"] = "ChannelsSetCurrent" +defs["ImDrawList_ChannelsSetCurrent"][1]["location"] = "imgui:2705" +defs["ImDrawList_ChannelsSetCurrent"][1]["ov_cimguiname"] = "ImDrawList_ChannelsSetCurrent" +defs["ImDrawList_ChannelsSetCurrent"][1]["ret"] = "void" +defs["ImDrawList_ChannelsSetCurrent"][1]["signature"] = "(int)" +defs["ImDrawList_ChannelsSetCurrent"][1]["stname"] = "ImDrawList" +defs["ImDrawList_ChannelsSetCurrent"]["(int)"] = defs["ImDrawList_ChannelsSetCurrent"][1] +defs["ImDrawList_ChannelsSplit"] = {} +defs["ImDrawList_ChannelsSplit"][1] = {} +defs["ImDrawList_ChannelsSplit"][1]["args"] = "(ImDrawList* self,int count)" +defs["ImDrawList_ChannelsSplit"][1]["argsT"] = {} +defs["ImDrawList_ChannelsSplit"][1]["argsT"][1] = {} +defs["ImDrawList_ChannelsSplit"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_ChannelsSplit"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_ChannelsSplit"][1]["argsT"][2] = {} +defs["ImDrawList_ChannelsSplit"][1]["argsT"][2]["name"] = "count" +defs["ImDrawList_ChannelsSplit"][1]["argsT"][2]["type"] = "int" +defs["ImDrawList_ChannelsSplit"][1]["argsoriginal"] = "(int count)" +defs["ImDrawList_ChannelsSplit"][1]["call_args"] = "(count)" +defs["ImDrawList_ChannelsSplit"][1]["cimguiname"] = "ImDrawList_ChannelsSplit" +defs["ImDrawList_ChannelsSplit"][1]["defaults"] = {} +defs["ImDrawList_ChannelsSplit"][1]["funcname"] = "ChannelsSplit" +defs["ImDrawList_ChannelsSplit"][1]["location"] = "imgui:2703" +defs["ImDrawList_ChannelsSplit"][1]["ov_cimguiname"] = "ImDrawList_ChannelsSplit" +defs["ImDrawList_ChannelsSplit"][1]["ret"] = "void" +defs["ImDrawList_ChannelsSplit"][1]["signature"] = "(int)" +defs["ImDrawList_ChannelsSplit"][1]["stname"] = "ImDrawList" +defs["ImDrawList_ChannelsSplit"]["(int)"] = defs["ImDrawList_ChannelsSplit"][1] +defs["ImDrawList_CloneOutput"] = {} +defs["ImDrawList_CloneOutput"][1] = {} +defs["ImDrawList_CloneOutput"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_CloneOutput"][1]["argsT"] = {} +defs["ImDrawList_CloneOutput"][1]["argsT"][1] = {} +defs["ImDrawList_CloneOutput"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_CloneOutput"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_CloneOutput"][1]["argsoriginal"] = "()" +defs["ImDrawList_CloneOutput"][1]["call_args"] = "()" +defs["ImDrawList_CloneOutput"][1]["cimguiname"] = "ImDrawList_CloneOutput" +defs["ImDrawList_CloneOutput"][1]["defaults"] = {} +defs["ImDrawList_CloneOutput"][1]["funcname"] = "CloneOutput" +defs["ImDrawList_CloneOutput"][1]["location"] = "imgui:2695" +defs["ImDrawList_CloneOutput"][1]["ov_cimguiname"] = "ImDrawList_CloneOutput" +defs["ImDrawList_CloneOutput"][1]["ret"] = "ImDrawList*" +defs["ImDrawList_CloneOutput"][1]["signature"] = "()const" +defs["ImDrawList_CloneOutput"][1]["stname"] = "ImDrawList" +defs["ImDrawList_CloneOutput"]["()const"] = defs["ImDrawList_CloneOutput"][1] +defs["ImDrawList_GetClipRectMax"] = {} +defs["ImDrawList_GetClipRectMax"][1] = {} +defs["ImDrawList_GetClipRectMax"][1]["args"] = "(ImVec2 *pOut,ImDrawList* self)" +defs["ImDrawList_GetClipRectMax"][1]["argsT"] = {} +defs["ImDrawList_GetClipRectMax"][1]["argsT"][1] = {} +defs["ImDrawList_GetClipRectMax"][1]["argsT"][1]["name"] = "pOut" +defs["ImDrawList_GetClipRectMax"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImDrawList_GetClipRectMax"][1]["argsT"][2] = {} +defs["ImDrawList_GetClipRectMax"][1]["argsT"][2]["name"] = "self" +defs["ImDrawList_GetClipRectMax"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawList_GetClipRectMax"][1]["argsoriginal"] = "()" +defs["ImDrawList_GetClipRectMax"][1]["call_args"] = "()" +defs["ImDrawList_GetClipRectMax"][1]["cimguiname"] = "ImDrawList_GetClipRectMax" +defs["ImDrawList_GetClipRectMax"][1]["defaults"] = {} +defs["ImDrawList_GetClipRectMax"][1]["funcname"] = "GetClipRectMax" +defs["ImDrawList_GetClipRectMax"][1]["location"] = "imgui:2643" +defs["ImDrawList_GetClipRectMax"][1]["nonUDT"] = 1 +defs["ImDrawList_GetClipRectMax"][1]["ov_cimguiname"] = "ImDrawList_GetClipRectMax" +defs["ImDrawList_GetClipRectMax"][1]["ret"] = "void" +defs["ImDrawList_GetClipRectMax"][1]["signature"] = "()const" +defs["ImDrawList_GetClipRectMax"][1]["stname"] = "ImDrawList" +defs["ImDrawList_GetClipRectMax"]["()const"] = defs["ImDrawList_GetClipRectMax"][1] +defs["ImDrawList_GetClipRectMin"] = {} +defs["ImDrawList_GetClipRectMin"][1] = {} +defs["ImDrawList_GetClipRectMin"][1]["args"] = "(ImVec2 *pOut,ImDrawList* self)" +defs["ImDrawList_GetClipRectMin"][1]["argsT"] = {} +defs["ImDrawList_GetClipRectMin"][1]["argsT"][1] = {} +defs["ImDrawList_GetClipRectMin"][1]["argsT"][1]["name"] = "pOut" +defs["ImDrawList_GetClipRectMin"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImDrawList_GetClipRectMin"][1]["argsT"][2] = {} +defs["ImDrawList_GetClipRectMin"][1]["argsT"][2]["name"] = "self" +defs["ImDrawList_GetClipRectMin"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawList_GetClipRectMin"][1]["argsoriginal"] = "()" +defs["ImDrawList_GetClipRectMin"][1]["call_args"] = "()" +defs["ImDrawList_GetClipRectMin"][1]["cimguiname"] = "ImDrawList_GetClipRectMin" +defs["ImDrawList_GetClipRectMin"][1]["defaults"] = {} +defs["ImDrawList_GetClipRectMin"][1]["funcname"] = "GetClipRectMin" +defs["ImDrawList_GetClipRectMin"][1]["location"] = "imgui:2642" +defs["ImDrawList_GetClipRectMin"][1]["nonUDT"] = 1 +defs["ImDrawList_GetClipRectMin"][1]["ov_cimguiname"] = "ImDrawList_GetClipRectMin" +defs["ImDrawList_GetClipRectMin"][1]["ret"] = "void" +defs["ImDrawList_GetClipRectMin"][1]["signature"] = "()const" +defs["ImDrawList_GetClipRectMin"][1]["stname"] = "ImDrawList" +defs["ImDrawList_GetClipRectMin"]["()const"] = defs["ImDrawList_GetClipRectMin"][1] +defs["ImDrawList_ImDrawList"] = {} +defs["ImDrawList_ImDrawList"][1] = {} +defs["ImDrawList_ImDrawList"][1]["args"] = "(ImDrawListSharedData* shared_data)" +defs["ImDrawList_ImDrawList"][1]["argsT"] = {} +defs["ImDrawList_ImDrawList"][1]["argsT"][1] = {} +defs["ImDrawList_ImDrawList"][1]["argsT"][1]["name"] = "shared_data" +defs["ImDrawList_ImDrawList"][1]["argsT"][1]["type"] = "ImDrawListSharedData*" +defs["ImDrawList_ImDrawList"][1]["argsoriginal"] = "(ImDrawListSharedData* shared_data)" +defs["ImDrawList_ImDrawList"][1]["call_args"] = "(shared_data)" +defs["ImDrawList_ImDrawList"][1]["cimguiname"] = "ImDrawList_ImDrawList" +defs["ImDrawList_ImDrawList"][1]["constructor"] = true +defs["ImDrawList_ImDrawList"][1]["defaults"] = {} +defs["ImDrawList_ImDrawList"][1]["funcname"] = "ImDrawList" +defs["ImDrawList_ImDrawList"][1]["location"] = "imgui:2634" +defs["ImDrawList_ImDrawList"][1]["ov_cimguiname"] = "ImDrawList_ImDrawList" +defs["ImDrawList_ImDrawList"][1]["signature"] = "(ImDrawListSharedData*)" +defs["ImDrawList_ImDrawList"][1]["stname"] = "ImDrawList" +defs["ImDrawList_ImDrawList"]["(ImDrawListSharedData*)"] = defs["ImDrawList_ImDrawList"][1] +defs["ImDrawList_PathArcTo"] = {} +defs["ImDrawList_PathArcTo"][1] = {} +defs["ImDrawList_PathArcTo"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)" +defs["ImDrawList_PathArcTo"][1]["argsT"] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][1] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathArcTo"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathArcTo"][1]["argsT"][2] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_PathArcTo"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathArcTo"][1]["argsT"][3] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_PathArcTo"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_PathArcTo"][1]["argsT"][4] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][4]["name"] = "a_min" +defs["ImDrawList_PathArcTo"][1]["argsT"][4]["type"] = "float" +defs["ImDrawList_PathArcTo"][1]["argsT"][5] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][5]["name"] = "a_max" +defs["ImDrawList_PathArcTo"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList_PathArcTo"][1]["argsT"][6] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][6]["name"] = "num_segments" +defs["ImDrawList_PathArcTo"][1]["argsT"][6]["type"] = "int" +defs["ImDrawList_PathArcTo"][1]["argsoriginal"] = "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments=0)" +defs["ImDrawList_PathArcTo"][1]["call_args"] = "(center,radius,a_min,a_max,num_segments)" +defs["ImDrawList_PathArcTo"][1]["cimguiname"] = "ImDrawList_PathArcTo" +defs["ImDrawList_PathArcTo"][1]["defaults"] = {} +defs["ImDrawList_PathArcTo"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_PathArcTo"][1]["funcname"] = "PathArcTo" +defs["ImDrawList_PathArcTo"][1]["location"] = "imgui:2686" +defs["ImDrawList_PathArcTo"][1]["ov_cimguiname"] = "ImDrawList_PathArcTo" +defs["ImDrawList_PathArcTo"][1]["ret"] = "void" +defs["ImDrawList_PathArcTo"][1]["signature"] = "(const ImVec2,float,float,float,int)" +defs["ImDrawList_PathArcTo"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathArcTo"]["(const ImVec2,float,float,float,int)"] = defs["ImDrawList_PathArcTo"][1] +defs["ImDrawList_PathArcToFast"] = {} +defs["ImDrawList_PathArcToFast"][1] = {} +defs["ImDrawList_PathArcToFast"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12)" +defs["ImDrawList_PathArcToFast"][1]["argsT"] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][1] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathArcToFast"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathArcToFast"][1]["argsT"][2] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_PathArcToFast"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathArcToFast"][1]["argsT"][3] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_PathArcToFast"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_PathArcToFast"][1]["argsT"][4] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][4]["name"] = "a_min_of_12" +defs["ImDrawList_PathArcToFast"][1]["argsT"][4]["type"] = "int" +defs["ImDrawList_PathArcToFast"][1]["argsT"][5] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][5]["name"] = "a_max_of_12" +defs["ImDrawList_PathArcToFast"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_PathArcToFast"][1]["argsoriginal"] = "(const ImVec2& center,float radius,int a_min_of_12,int a_max_of_12)" +defs["ImDrawList_PathArcToFast"][1]["call_args"] = "(center,radius,a_min_of_12,a_max_of_12)" +defs["ImDrawList_PathArcToFast"][1]["cimguiname"] = "ImDrawList_PathArcToFast" +defs["ImDrawList_PathArcToFast"][1]["defaults"] = {} +defs["ImDrawList_PathArcToFast"][1]["funcname"] = "PathArcToFast" +defs["ImDrawList_PathArcToFast"][1]["location"] = "imgui:2687" +defs["ImDrawList_PathArcToFast"][1]["ov_cimguiname"] = "ImDrawList_PathArcToFast" +defs["ImDrawList_PathArcToFast"][1]["ret"] = "void" +defs["ImDrawList_PathArcToFast"][1]["signature"] = "(const ImVec2,float,int,int)" +defs["ImDrawList_PathArcToFast"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathArcToFast"]["(const ImVec2,float,int,int)"] = defs["ImDrawList_PathArcToFast"][1] +defs["ImDrawList_PathBezierCubicCurveTo"] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["args"] = "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments)" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][1] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][2] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][2]["name"] = "p2" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][3] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][3]["name"] = "p3" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][4] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][4]["name"] = "p4" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][5] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsoriginal"] = "(const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,int num_segments=0)" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["call_args"] = "(p2,p3,p4,num_segments)" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["cimguiname"] = "ImDrawList_PathBezierCubicCurveTo" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["defaults"] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["funcname"] = "PathBezierCubicCurveTo" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["location"] = "imgui:2688" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["ov_cimguiname"] = "ImDrawList_PathBezierCubicCurveTo" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["ret"] = "void" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,int)" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathBezierCubicCurveTo"]["(const ImVec2,const ImVec2,const ImVec2,int)"] = defs["ImDrawList_PathBezierCubicCurveTo"][1] +defs["ImDrawList_PathBezierQuadraticCurveTo"] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["args"] = "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments)" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][1] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][2] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][2]["name"] = "p2" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][3] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][3]["name"] = "p3" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][4] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][4]["name"] = "num_segments" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][4]["type"] = "int" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsoriginal"] = "(const ImVec2& p2,const ImVec2& p3,int num_segments=0)" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["call_args"] = "(p2,p3,num_segments)" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["cimguiname"] = "ImDrawList_PathBezierQuadraticCurveTo" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["defaults"] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["funcname"] = "PathBezierQuadraticCurveTo" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["location"] = "imgui:2689" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["ov_cimguiname"] = "ImDrawList_PathBezierQuadraticCurveTo" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["ret"] = "void" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["signature"] = "(const ImVec2,const ImVec2,int)" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathBezierQuadraticCurveTo"]["(const ImVec2,const ImVec2,int)"] = defs["ImDrawList_PathBezierQuadraticCurveTo"][1] +defs["ImDrawList_PathClear"] = {} +defs["ImDrawList_PathClear"][1] = {} +defs["ImDrawList_PathClear"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_PathClear"][1]["argsT"] = {} +defs["ImDrawList_PathClear"][1]["argsT"][1] = {} +defs["ImDrawList_PathClear"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathClear"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathClear"][1]["argsoriginal"] = "()" +defs["ImDrawList_PathClear"][1]["call_args"] = "()" +defs["ImDrawList_PathClear"][1]["cimguiname"] = "ImDrawList_PathClear" +defs["ImDrawList_PathClear"][1]["defaults"] = {} +defs["ImDrawList_PathClear"][1]["funcname"] = "PathClear" +defs["ImDrawList_PathClear"][1]["location"] = "imgui:2681" +defs["ImDrawList_PathClear"][1]["ov_cimguiname"] = "ImDrawList_PathClear" +defs["ImDrawList_PathClear"][1]["ret"] = "void" +defs["ImDrawList_PathClear"][1]["signature"] = "()" +defs["ImDrawList_PathClear"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathClear"]["()"] = defs["ImDrawList_PathClear"][1] +defs["ImDrawList_PathFillConvex"] = {} +defs["ImDrawList_PathFillConvex"][1] = {} +defs["ImDrawList_PathFillConvex"][1]["args"] = "(ImDrawList* self,ImU32 col)" +defs["ImDrawList_PathFillConvex"][1]["argsT"] = {} +defs["ImDrawList_PathFillConvex"][1]["argsT"][1] = {} +defs["ImDrawList_PathFillConvex"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathFillConvex"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathFillConvex"][1]["argsT"][2] = {} +defs["ImDrawList_PathFillConvex"][1]["argsT"][2]["name"] = "col" +defs["ImDrawList_PathFillConvex"][1]["argsT"][2]["type"] = "ImU32" +defs["ImDrawList_PathFillConvex"][1]["argsoriginal"] = "(ImU32 col)" +defs["ImDrawList_PathFillConvex"][1]["call_args"] = "(col)" +defs["ImDrawList_PathFillConvex"][1]["cimguiname"] = "ImDrawList_PathFillConvex" +defs["ImDrawList_PathFillConvex"][1]["defaults"] = {} +defs["ImDrawList_PathFillConvex"][1]["funcname"] = "PathFillConvex" +defs["ImDrawList_PathFillConvex"][1]["location"] = "imgui:2684" +defs["ImDrawList_PathFillConvex"][1]["ov_cimguiname"] = "ImDrawList_PathFillConvex" +defs["ImDrawList_PathFillConvex"][1]["ret"] = "void" +defs["ImDrawList_PathFillConvex"][1]["signature"] = "(ImU32)" +defs["ImDrawList_PathFillConvex"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathFillConvex"]["(ImU32)"] = defs["ImDrawList_PathFillConvex"][1] +defs["ImDrawList_PathLineTo"] = {} +defs["ImDrawList_PathLineTo"][1] = {} +defs["ImDrawList_PathLineTo"][1]["args"] = "(ImDrawList* self,const ImVec2 pos)" +defs["ImDrawList_PathLineTo"][1]["argsT"] = {} +defs["ImDrawList_PathLineTo"][1]["argsT"][1] = {} +defs["ImDrawList_PathLineTo"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathLineTo"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathLineTo"][1]["argsT"][2] = {} +defs["ImDrawList_PathLineTo"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_PathLineTo"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathLineTo"][1]["argsoriginal"] = "(const ImVec2& pos)" +defs["ImDrawList_PathLineTo"][1]["call_args"] = "(pos)" +defs["ImDrawList_PathLineTo"][1]["cimguiname"] = "ImDrawList_PathLineTo" +defs["ImDrawList_PathLineTo"][1]["defaults"] = {} +defs["ImDrawList_PathLineTo"][1]["funcname"] = "PathLineTo" +defs["ImDrawList_PathLineTo"][1]["location"] = "imgui:2682" +defs["ImDrawList_PathLineTo"][1]["ov_cimguiname"] = "ImDrawList_PathLineTo" +defs["ImDrawList_PathLineTo"][1]["ret"] = "void" +defs["ImDrawList_PathLineTo"][1]["signature"] = "(const ImVec2)" +defs["ImDrawList_PathLineTo"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathLineTo"]["(const ImVec2)"] = defs["ImDrawList_PathLineTo"][1] +defs["ImDrawList_PathLineToMergeDuplicate"] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["args"] = "(ImDrawList* self,const ImVec2 pos)" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][1] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][2] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsoriginal"] = "(const ImVec2& pos)" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["call_args"] = "(pos)" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["cimguiname"] = "ImDrawList_PathLineToMergeDuplicate" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["defaults"] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["funcname"] = "PathLineToMergeDuplicate" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["location"] = "imgui:2683" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["ov_cimguiname"] = "ImDrawList_PathLineToMergeDuplicate" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["ret"] = "void" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["signature"] = "(const ImVec2)" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathLineToMergeDuplicate"]["(const ImVec2)"] = defs["ImDrawList_PathLineToMergeDuplicate"][1] +defs["ImDrawList_PathRect"] = {} +defs["ImDrawList_PathRect"][1] = {} +defs["ImDrawList_PathRect"][1]["args"] = "(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags)" +defs["ImDrawList_PathRect"][1]["argsT"] = {} +defs["ImDrawList_PathRect"][1]["argsT"][1] = {} +defs["ImDrawList_PathRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathRect"][1]["argsT"][2] = {} +defs["ImDrawList_PathRect"][1]["argsT"][2]["name"] = "rect_min" +defs["ImDrawList_PathRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathRect"][1]["argsT"][3] = {} +defs["ImDrawList_PathRect"][1]["argsT"][3]["name"] = "rect_max" +defs["ImDrawList_PathRect"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PathRect"][1]["argsT"][4] = {} +defs["ImDrawList_PathRect"][1]["argsT"][4]["name"] = "rounding" +defs["ImDrawList_PathRect"][1]["argsT"][4]["type"] = "float" +defs["ImDrawList_PathRect"][1]["argsT"][5] = {} +defs["ImDrawList_PathRect"][1]["argsT"][5]["name"] = "flags" +defs["ImDrawList_PathRect"][1]["argsT"][5]["type"] = "ImDrawFlags" +defs["ImDrawList_PathRect"][1]["argsoriginal"] = "(const ImVec2& rect_min,const ImVec2& rect_max,float rounding=0.0f,ImDrawFlags flags=0)" +defs["ImDrawList_PathRect"][1]["call_args"] = "(rect_min,rect_max,rounding,flags)" +defs["ImDrawList_PathRect"][1]["cimguiname"] = "ImDrawList_PathRect" +defs["ImDrawList_PathRect"][1]["defaults"] = {} +defs["ImDrawList_PathRect"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_PathRect"][1]["defaults"]["rounding"] = "0.0f" +defs["ImDrawList_PathRect"][1]["funcname"] = "PathRect" +defs["ImDrawList_PathRect"][1]["location"] = "imgui:2690" +defs["ImDrawList_PathRect"][1]["ov_cimguiname"] = "ImDrawList_PathRect" +defs["ImDrawList_PathRect"][1]["ret"] = "void" +defs["ImDrawList_PathRect"][1]["signature"] = "(const ImVec2,const ImVec2,float,ImDrawFlags)" +defs["ImDrawList_PathRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathRect"]["(const ImVec2,const ImVec2,float,ImDrawFlags)"] = defs["ImDrawList_PathRect"][1] +defs["ImDrawList_PathStroke"] = {} +defs["ImDrawList_PathStroke"][1] = {} +defs["ImDrawList_PathStroke"][1]["args"] = "(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness)" +defs["ImDrawList_PathStroke"][1]["argsT"] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][1] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathStroke"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathStroke"][1]["argsT"][2] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][2]["name"] = "col" +defs["ImDrawList_PathStroke"][1]["argsT"][2]["type"] = "ImU32" +defs["ImDrawList_PathStroke"][1]["argsT"][3] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][3]["name"] = "flags" +defs["ImDrawList_PathStroke"][1]["argsT"][3]["type"] = "ImDrawFlags" +defs["ImDrawList_PathStroke"][1]["argsT"][4] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][4]["name"] = "thickness" +defs["ImDrawList_PathStroke"][1]["argsT"][4]["type"] = "float" +defs["ImDrawList_PathStroke"][1]["argsoriginal"] = "(ImU32 col,ImDrawFlags flags=0,float thickness=1.0f)" +defs["ImDrawList_PathStroke"][1]["call_args"] = "(col,flags,thickness)" +defs["ImDrawList_PathStroke"][1]["cimguiname"] = "ImDrawList_PathStroke" +defs["ImDrawList_PathStroke"][1]["defaults"] = {} +defs["ImDrawList_PathStroke"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_PathStroke"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_PathStroke"][1]["funcname"] = "PathStroke" +defs["ImDrawList_PathStroke"][1]["location"] = "imgui:2685" +defs["ImDrawList_PathStroke"][1]["ov_cimguiname"] = "ImDrawList_PathStroke" +defs["ImDrawList_PathStroke"][1]["ret"] = "void" +defs["ImDrawList_PathStroke"][1]["signature"] = "(ImU32,ImDrawFlags,float)" +defs["ImDrawList_PathStroke"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathStroke"]["(ImU32,ImDrawFlags,float)"] = defs["ImDrawList_PathStroke"][1] +defs["ImDrawList_PopClipRect"] = {} +defs["ImDrawList_PopClipRect"][1] = {} +defs["ImDrawList_PopClipRect"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_PopClipRect"][1]["argsT"] = {} +defs["ImDrawList_PopClipRect"][1]["argsT"][1] = {} +defs["ImDrawList_PopClipRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PopClipRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PopClipRect"][1]["argsoriginal"] = "()" +defs["ImDrawList_PopClipRect"][1]["call_args"] = "()" +defs["ImDrawList_PopClipRect"][1]["cimguiname"] = "ImDrawList_PopClipRect" +defs["ImDrawList_PopClipRect"][1]["defaults"] = {} +defs["ImDrawList_PopClipRect"][1]["funcname"] = "PopClipRect" +defs["ImDrawList_PopClipRect"][1]["location"] = "imgui:2639" +defs["ImDrawList_PopClipRect"][1]["ov_cimguiname"] = "ImDrawList_PopClipRect" +defs["ImDrawList_PopClipRect"][1]["ret"] = "void" +defs["ImDrawList_PopClipRect"][1]["signature"] = "()" +defs["ImDrawList_PopClipRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PopClipRect"]["()"] = defs["ImDrawList_PopClipRect"][1] +defs["ImDrawList_PopTextureID"] = {} +defs["ImDrawList_PopTextureID"][1] = {} +defs["ImDrawList_PopTextureID"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_PopTextureID"][1]["argsT"] = {} +defs["ImDrawList_PopTextureID"][1]["argsT"][1] = {} +defs["ImDrawList_PopTextureID"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PopTextureID"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PopTextureID"][1]["argsoriginal"] = "()" +defs["ImDrawList_PopTextureID"][1]["call_args"] = "()" +defs["ImDrawList_PopTextureID"][1]["cimguiname"] = "ImDrawList_PopTextureID" +defs["ImDrawList_PopTextureID"][1]["defaults"] = {} +defs["ImDrawList_PopTextureID"][1]["funcname"] = "PopTextureID" +defs["ImDrawList_PopTextureID"][1]["location"] = "imgui:2641" +defs["ImDrawList_PopTextureID"][1]["ov_cimguiname"] = "ImDrawList_PopTextureID" +defs["ImDrawList_PopTextureID"][1]["ret"] = "void" +defs["ImDrawList_PopTextureID"][1]["signature"] = "()" +defs["ImDrawList_PopTextureID"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PopTextureID"]["()"] = defs["ImDrawList_PopTextureID"][1] +defs["ImDrawList_PrimQuadUV"] = {} +defs["ImDrawList_PrimQuadUV"][1] = {} +defs["ImDrawList_PrimQuadUV"][1]["args"] = "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col)" +defs["ImDrawList_PrimQuadUV"][1]["argsT"] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][1] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][2] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][2]["name"] = "a" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][3] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][3]["name"] = "b" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][4] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][4]["name"] = "c" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][5] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][5]["name"] = "d" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][6] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][6]["name"] = "uv_a" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][6]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][7] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][7]["name"] = "uv_b" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][7]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][8] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][8]["name"] = "uv_c" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][8]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][9] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][9]["name"] = "uv_d" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][9]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][10] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][10]["name"] = "col" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][10]["type"] = "ImU32" +defs["ImDrawList_PrimQuadUV"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,const ImVec2& uv_a,const ImVec2& uv_b,const ImVec2& uv_c,const ImVec2& uv_d,ImU32 col)" +defs["ImDrawList_PrimQuadUV"][1]["call_args"] = "(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col)" +defs["ImDrawList_PrimQuadUV"][1]["cimguiname"] = "ImDrawList_PrimQuadUV" +defs["ImDrawList_PrimQuadUV"][1]["defaults"] = {} +defs["ImDrawList_PrimQuadUV"][1]["funcname"] = "PrimQuadUV" +defs["ImDrawList_PrimQuadUV"][1]["location"] = "imgui:2714" +defs["ImDrawList_PrimQuadUV"][1]["ov_cimguiname"] = "ImDrawList_PrimQuadUV" +defs["ImDrawList_PrimQuadUV"][1]["ret"] = "void" +defs["ImDrawList_PrimQuadUV"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimQuadUV"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimQuadUV"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimQuadUV"][1] +defs["ImDrawList_PrimRect"] = {} +defs["ImDrawList_PrimRect"][1] = {} +defs["ImDrawList_PrimRect"][1]["args"] = "(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col)" +defs["ImDrawList_PrimRect"][1]["argsT"] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][1] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimRect"][1]["argsT"][2] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][2]["name"] = "a" +defs["ImDrawList_PrimRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimRect"][1]["argsT"][3] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][3]["name"] = "b" +defs["ImDrawList_PrimRect"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimRect"][1]["argsT"][4] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_PrimRect"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_PrimRect"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,ImU32 col)" +defs["ImDrawList_PrimRect"][1]["call_args"] = "(a,b,col)" +defs["ImDrawList_PrimRect"][1]["cimguiname"] = "ImDrawList_PrimRect" +defs["ImDrawList_PrimRect"][1]["defaults"] = {} +defs["ImDrawList_PrimRect"][1]["funcname"] = "PrimRect" +defs["ImDrawList_PrimRect"][1]["location"] = "imgui:2712" +defs["ImDrawList_PrimRect"][1]["ov_cimguiname"] = "ImDrawList_PrimRect" +defs["ImDrawList_PrimRect"][1]["ret"] = "void" +defs["ImDrawList_PrimRect"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimRect"]["(const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimRect"][1] +defs["ImDrawList_PrimRectUV"] = {} +defs["ImDrawList_PrimRectUV"][1] = {} +defs["ImDrawList_PrimRectUV"][1]["args"] = "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col)" +defs["ImDrawList_PrimRectUV"][1]["argsT"] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][1] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimRectUV"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimRectUV"][1]["argsT"][2] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][2]["name"] = "a" +defs["ImDrawList_PrimRectUV"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimRectUV"][1]["argsT"][3] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][3]["name"] = "b" +defs["ImDrawList_PrimRectUV"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimRectUV"][1]["argsT"][4] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][4]["name"] = "uv_a" +defs["ImDrawList_PrimRectUV"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_PrimRectUV"][1]["argsT"][5] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][5]["name"] = "uv_b" +defs["ImDrawList_PrimRectUV"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_PrimRectUV"][1]["argsT"][6] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][6]["name"] = "col" +defs["ImDrawList_PrimRectUV"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_PrimRectUV"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,ImU32 col)" +defs["ImDrawList_PrimRectUV"][1]["call_args"] = "(a,b,uv_a,uv_b,col)" +defs["ImDrawList_PrimRectUV"][1]["cimguiname"] = "ImDrawList_PrimRectUV" +defs["ImDrawList_PrimRectUV"][1]["defaults"] = {} +defs["ImDrawList_PrimRectUV"][1]["funcname"] = "PrimRectUV" +defs["ImDrawList_PrimRectUV"][1]["location"] = "imgui:2713" +defs["ImDrawList_PrimRectUV"][1]["ov_cimguiname"] = "ImDrawList_PrimRectUV" +defs["ImDrawList_PrimRectUV"][1]["ret"] = "void" +defs["ImDrawList_PrimRectUV"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimRectUV"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimRectUV"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimRectUV"][1] +defs["ImDrawList_PrimReserve"] = {} +defs["ImDrawList_PrimReserve"][1] = {} +defs["ImDrawList_PrimReserve"][1]["args"] = "(ImDrawList* self,int idx_count,int vtx_count)" +defs["ImDrawList_PrimReserve"][1]["argsT"] = {} +defs["ImDrawList_PrimReserve"][1]["argsT"][1] = {} +defs["ImDrawList_PrimReserve"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimReserve"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimReserve"][1]["argsT"][2] = {} +defs["ImDrawList_PrimReserve"][1]["argsT"][2]["name"] = "idx_count" +defs["ImDrawList_PrimReserve"][1]["argsT"][2]["type"] = "int" +defs["ImDrawList_PrimReserve"][1]["argsT"][3] = {} +defs["ImDrawList_PrimReserve"][1]["argsT"][3]["name"] = "vtx_count" +defs["ImDrawList_PrimReserve"][1]["argsT"][3]["type"] = "int" +defs["ImDrawList_PrimReserve"][1]["argsoriginal"] = "(int idx_count,int vtx_count)" +defs["ImDrawList_PrimReserve"][1]["call_args"] = "(idx_count,vtx_count)" +defs["ImDrawList_PrimReserve"][1]["cimguiname"] = "ImDrawList_PrimReserve" +defs["ImDrawList_PrimReserve"][1]["defaults"] = {} +defs["ImDrawList_PrimReserve"][1]["funcname"] = "PrimReserve" +defs["ImDrawList_PrimReserve"][1]["location"] = "imgui:2710" +defs["ImDrawList_PrimReserve"][1]["ov_cimguiname"] = "ImDrawList_PrimReserve" +defs["ImDrawList_PrimReserve"][1]["ret"] = "void" +defs["ImDrawList_PrimReserve"][1]["signature"] = "(int,int)" +defs["ImDrawList_PrimReserve"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimReserve"]["(int,int)"] = defs["ImDrawList_PrimReserve"][1] +defs["ImDrawList_PrimUnreserve"] = {} +defs["ImDrawList_PrimUnreserve"][1] = {} +defs["ImDrawList_PrimUnreserve"][1]["args"] = "(ImDrawList* self,int idx_count,int vtx_count)" +defs["ImDrawList_PrimUnreserve"][1]["argsT"] = {} +defs["ImDrawList_PrimUnreserve"][1]["argsT"][1] = {} +defs["ImDrawList_PrimUnreserve"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][2] = {} +defs["ImDrawList_PrimUnreserve"][1]["argsT"][2]["name"] = "idx_count" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][2]["type"] = "int" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][3] = {} +defs["ImDrawList_PrimUnreserve"][1]["argsT"][3]["name"] = "vtx_count" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][3]["type"] = "int" +defs["ImDrawList_PrimUnreserve"][1]["argsoriginal"] = "(int idx_count,int vtx_count)" +defs["ImDrawList_PrimUnreserve"][1]["call_args"] = "(idx_count,vtx_count)" +defs["ImDrawList_PrimUnreserve"][1]["cimguiname"] = "ImDrawList_PrimUnreserve" +defs["ImDrawList_PrimUnreserve"][1]["defaults"] = {} +defs["ImDrawList_PrimUnreserve"][1]["funcname"] = "PrimUnreserve" +defs["ImDrawList_PrimUnreserve"][1]["location"] = "imgui:2711" +defs["ImDrawList_PrimUnreserve"][1]["ov_cimguiname"] = "ImDrawList_PrimUnreserve" +defs["ImDrawList_PrimUnreserve"][1]["ret"] = "void" +defs["ImDrawList_PrimUnreserve"][1]["signature"] = "(int,int)" +defs["ImDrawList_PrimUnreserve"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimUnreserve"]["(int,int)"] = defs["ImDrawList_PrimUnreserve"][1] +defs["ImDrawList_PrimVtx"] = {} +defs["ImDrawList_PrimVtx"][1] = {} +defs["ImDrawList_PrimVtx"][1]["args"] = "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)" +defs["ImDrawList_PrimVtx"][1]["argsT"] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][1] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimVtx"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimVtx"][1]["argsT"][2] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_PrimVtx"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimVtx"][1]["argsT"][3] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][3]["name"] = "uv" +defs["ImDrawList_PrimVtx"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimVtx"][1]["argsT"][4] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_PrimVtx"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_PrimVtx"][1]["argsoriginal"] = "(const ImVec2& pos,const ImVec2& uv,ImU32 col)" +defs["ImDrawList_PrimVtx"][1]["call_args"] = "(pos,uv,col)" +defs["ImDrawList_PrimVtx"][1]["cimguiname"] = "ImDrawList_PrimVtx" +defs["ImDrawList_PrimVtx"][1]["defaults"] = {} +defs["ImDrawList_PrimVtx"][1]["funcname"] = "PrimVtx" +defs["ImDrawList_PrimVtx"][1]["location"] = "imgui:2717" +defs["ImDrawList_PrimVtx"][1]["ov_cimguiname"] = "ImDrawList_PrimVtx" +defs["ImDrawList_PrimVtx"][1]["ret"] = "void" +defs["ImDrawList_PrimVtx"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimVtx"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimVtx"]["(const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimVtx"][1] +defs["ImDrawList_PrimWriteIdx"] = {} +defs["ImDrawList_PrimWriteIdx"][1] = {} +defs["ImDrawList_PrimWriteIdx"][1]["args"] = "(ImDrawList* self,ImDrawIdx idx)" +defs["ImDrawList_PrimWriteIdx"][1]["argsT"] = {} +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][1] = {} +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][2] = {} +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][2]["name"] = "idx" +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][2]["type"] = "ImDrawIdx" +defs["ImDrawList_PrimWriteIdx"][1]["argsoriginal"] = "(ImDrawIdx idx)" +defs["ImDrawList_PrimWriteIdx"][1]["call_args"] = "(idx)" +defs["ImDrawList_PrimWriteIdx"][1]["cimguiname"] = "ImDrawList_PrimWriteIdx" +defs["ImDrawList_PrimWriteIdx"][1]["defaults"] = {} +defs["ImDrawList_PrimWriteIdx"][1]["funcname"] = "PrimWriteIdx" +defs["ImDrawList_PrimWriteIdx"][1]["location"] = "imgui:2716" +defs["ImDrawList_PrimWriteIdx"][1]["ov_cimguiname"] = "ImDrawList_PrimWriteIdx" +defs["ImDrawList_PrimWriteIdx"][1]["ret"] = "void" +defs["ImDrawList_PrimWriteIdx"][1]["signature"] = "(ImDrawIdx)" +defs["ImDrawList_PrimWriteIdx"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimWriteIdx"]["(ImDrawIdx)"] = defs["ImDrawList_PrimWriteIdx"][1] +defs["ImDrawList_PrimWriteVtx"] = {} +defs["ImDrawList_PrimWriteVtx"][1] = {} +defs["ImDrawList_PrimWriteVtx"][1]["args"] = "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][1] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][2] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][3] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][3]["name"] = "uv" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][4] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_PrimWriteVtx"][1]["argsoriginal"] = "(const ImVec2& pos,const ImVec2& uv,ImU32 col)" +defs["ImDrawList_PrimWriteVtx"][1]["call_args"] = "(pos,uv,col)" +defs["ImDrawList_PrimWriteVtx"][1]["cimguiname"] = "ImDrawList_PrimWriteVtx" +defs["ImDrawList_PrimWriteVtx"][1]["defaults"] = {} +defs["ImDrawList_PrimWriteVtx"][1]["funcname"] = "PrimWriteVtx" +defs["ImDrawList_PrimWriteVtx"][1]["location"] = "imgui:2715" +defs["ImDrawList_PrimWriteVtx"][1]["ov_cimguiname"] = "ImDrawList_PrimWriteVtx" +defs["ImDrawList_PrimWriteVtx"][1]["ret"] = "void" +defs["ImDrawList_PrimWriteVtx"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimWriteVtx"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimWriteVtx"]["(const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimWriteVtx"][1] +defs["ImDrawList_PushClipRect"] = {} +defs["ImDrawList_PushClipRect"][1] = {} +defs["ImDrawList_PushClipRect"][1]["args"] = "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)" +defs["ImDrawList_PushClipRect"][1]["argsT"] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][1] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PushClipRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PushClipRect"][1]["argsT"][2] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][2]["name"] = "clip_rect_min" +defs["ImDrawList_PushClipRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PushClipRect"][1]["argsT"][3] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][3]["name"] = "clip_rect_max" +defs["ImDrawList_PushClipRect"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PushClipRect"][1]["argsT"][4] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][4]["name"] = "intersect_with_current_clip_rect" +defs["ImDrawList_PushClipRect"][1]["argsT"][4]["type"] = "bool" +defs["ImDrawList_PushClipRect"][1]["argsoriginal"] = "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)" +defs["ImDrawList_PushClipRect"][1]["call_args"] = "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)" +defs["ImDrawList_PushClipRect"][1]["cimguiname"] = "ImDrawList_PushClipRect" +defs["ImDrawList_PushClipRect"][1]["defaults"] = {} +defs["ImDrawList_PushClipRect"][1]["defaults"]["intersect_with_current_clip_rect"] = "false" +defs["ImDrawList_PushClipRect"][1]["funcname"] = "PushClipRect" +defs["ImDrawList_PushClipRect"][1]["location"] = "imgui:2637" +defs["ImDrawList_PushClipRect"][1]["ov_cimguiname"] = "ImDrawList_PushClipRect" +defs["ImDrawList_PushClipRect"][1]["ret"] = "void" +defs["ImDrawList_PushClipRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" +defs["ImDrawList_PushClipRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PushClipRect"]["(const ImVec2,const ImVec2,bool)"] = defs["ImDrawList_PushClipRect"][1] +defs["ImDrawList_PushClipRectFullScreen"] = {} +defs["ImDrawList_PushClipRectFullScreen"][1] = {} +defs["ImDrawList_PushClipRectFullScreen"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_PushClipRectFullScreen"][1]["argsT"] = {} +defs["ImDrawList_PushClipRectFullScreen"][1]["argsT"][1] = {} +defs["ImDrawList_PushClipRectFullScreen"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PushClipRectFullScreen"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PushClipRectFullScreen"][1]["argsoriginal"] = "()" +defs["ImDrawList_PushClipRectFullScreen"][1]["call_args"] = "()" +defs["ImDrawList_PushClipRectFullScreen"][1]["cimguiname"] = "ImDrawList_PushClipRectFullScreen" +defs["ImDrawList_PushClipRectFullScreen"][1]["defaults"] = {} +defs["ImDrawList_PushClipRectFullScreen"][1]["funcname"] = "PushClipRectFullScreen" +defs["ImDrawList_PushClipRectFullScreen"][1]["location"] = "imgui:2638" +defs["ImDrawList_PushClipRectFullScreen"][1]["ov_cimguiname"] = "ImDrawList_PushClipRectFullScreen" +defs["ImDrawList_PushClipRectFullScreen"][1]["ret"] = "void" +defs["ImDrawList_PushClipRectFullScreen"][1]["signature"] = "()" +defs["ImDrawList_PushClipRectFullScreen"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PushClipRectFullScreen"]["()"] = defs["ImDrawList_PushClipRectFullScreen"][1] +defs["ImDrawList_PushTextureID"] = {} +defs["ImDrawList_PushTextureID"][1] = {} +defs["ImDrawList_PushTextureID"][1]["args"] = "(ImDrawList* self,ImTextureID texture_id)" +defs["ImDrawList_PushTextureID"][1]["argsT"] = {} +defs["ImDrawList_PushTextureID"][1]["argsT"][1] = {} +defs["ImDrawList_PushTextureID"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PushTextureID"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PushTextureID"][1]["argsT"][2] = {} +defs["ImDrawList_PushTextureID"][1]["argsT"][2]["name"] = "texture_id" +defs["ImDrawList_PushTextureID"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImDrawList_PushTextureID"][1]["argsoriginal"] = "(ImTextureID texture_id)" +defs["ImDrawList_PushTextureID"][1]["call_args"] = "(texture_id)" +defs["ImDrawList_PushTextureID"][1]["cimguiname"] = "ImDrawList_PushTextureID" +defs["ImDrawList_PushTextureID"][1]["defaults"] = {} +defs["ImDrawList_PushTextureID"][1]["funcname"] = "PushTextureID" +defs["ImDrawList_PushTextureID"][1]["location"] = "imgui:2640" +defs["ImDrawList_PushTextureID"][1]["ov_cimguiname"] = "ImDrawList_PushTextureID" +defs["ImDrawList_PushTextureID"][1]["ret"] = "void" +defs["ImDrawList_PushTextureID"][1]["signature"] = "(ImTextureID)" +defs["ImDrawList_PushTextureID"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PushTextureID"]["(ImTextureID)"] = defs["ImDrawList_PushTextureID"][1] +defs["ImDrawList__CalcCircleAutoSegmentCount"] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["args"] = "(ImDrawList* self,float radius)" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][1] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][2] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][2]["name"] = "radius" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][2]["type"] = "float" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsoriginal"] = "(float radius)" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["call_args"] = "(radius)" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["cimguiname"] = "ImDrawList__CalcCircleAutoSegmentCount" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["defaults"] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["funcname"] = "_CalcCircleAutoSegmentCount" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["location"] = "imgui:2732" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["ov_cimguiname"] = "ImDrawList__CalcCircleAutoSegmentCount" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["ret"] = "int" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["signature"] = "(float)const" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["stname"] = "ImDrawList" +defs["ImDrawList__CalcCircleAutoSegmentCount"]["(float)const"] = defs["ImDrawList__CalcCircleAutoSegmentCount"][1] +defs["ImDrawList__ClearFreeMemory"] = {} +defs["ImDrawList__ClearFreeMemory"][1] = {} +defs["ImDrawList__ClearFreeMemory"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__ClearFreeMemory"][1]["argsT"] = {} +defs["ImDrawList__ClearFreeMemory"][1]["argsT"][1] = {} +defs["ImDrawList__ClearFreeMemory"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__ClearFreeMemory"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__ClearFreeMemory"][1]["argsoriginal"] = "()" +defs["ImDrawList__ClearFreeMemory"][1]["call_args"] = "()" +defs["ImDrawList__ClearFreeMemory"][1]["cimguiname"] = "ImDrawList__ClearFreeMemory" +defs["ImDrawList__ClearFreeMemory"][1]["defaults"] = {} +defs["ImDrawList__ClearFreeMemory"][1]["funcname"] = "_ClearFreeMemory" +defs["ImDrawList__ClearFreeMemory"][1]["location"] = "imgui:2726" +defs["ImDrawList__ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawList__ClearFreeMemory" +defs["ImDrawList__ClearFreeMemory"][1]["ret"] = "void" +defs["ImDrawList__ClearFreeMemory"][1]["signature"] = "()" +defs["ImDrawList__ClearFreeMemory"][1]["stname"] = "ImDrawList" +defs["ImDrawList__ClearFreeMemory"]["()"] = defs["ImDrawList__ClearFreeMemory"][1] +defs["ImDrawList__OnChangedClipRect"] = {} +defs["ImDrawList__OnChangedClipRect"][1] = {} +defs["ImDrawList__OnChangedClipRect"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__OnChangedClipRect"][1]["argsT"] = {} +defs["ImDrawList__OnChangedClipRect"][1]["argsT"][1] = {} +defs["ImDrawList__OnChangedClipRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__OnChangedClipRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__OnChangedClipRect"][1]["argsoriginal"] = "()" +defs["ImDrawList__OnChangedClipRect"][1]["call_args"] = "()" +defs["ImDrawList__OnChangedClipRect"][1]["cimguiname"] = "ImDrawList__OnChangedClipRect" +defs["ImDrawList__OnChangedClipRect"][1]["defaults"] = {} +defs["ImDrawList__OnChangedClipRect"][1]["funcname"] = "_OnChangedClipRect" +defs["ImDrawList__OnChangedClipRect"][1]["location"] = "imgui:2729" +defs["ImDrawList__OnChangedClipRect"][1]["ov_cimguiname"] = "ImDrawList__OnChangedClipRect" +defs["ImDrawList__OnChangedClipRect"][1]["ret"] = "void" +defs["ImDrawList__OnChangedClipRect"][1]["signature"] = "()" +defs["ImDrawList__OnChangedClipRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList__OnChangedClipRect"]["()"] = defs["ImDrawList__OnChangedClipRect"][1] +defs["ImDrawList__OnChangedTextureID"] = {} +defs["ImDrawList__OnChangedTextureID"][1] = {} +defs["ImDrawList__OnChangedTextureID"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__OnChangedTextureID"][1]["argsT"] = {} +defs["ImDrawList__OnChangedTextureID"][1]["argsT"][1] = {} +defs["ImDrawList__OnChangedTextureID"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__OnChangedTextureID"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__OnChangedTextureID"][1]["argsoriginal"] = "()" +defs["ImDrawList__OnChangedTextureID"][1]["call_args"] = "()" +defs["ImDrawList__OnChangedTextureID"][1]["cimguiname"] = "ImDrawList__OnChangedTextureID" +defs["ImDrawList__OnChangedTextureID"][1]["defaults"] = {} +defs["ImDrawList__OnChangedTextureID"][1]["funcname"] = "_OnChangedTextureID" +defs["ImDrawList__OnChangedTextureID"][1]["location"] = "imgui:2730" +defs["ImDrawList__OnChangedTextureID"][1]["ov_cimguiname"] = "ImDrawList__OnChangedTextureID" +defs["ImDrawList__OnChangedTextureID"][1]["ret"] = "void" +defs["ImDrawList__OnChangedTextureID"][1]["signature"] = "()" +defs["ImDrawList__OnChangedTextureID"][1]["stname"] = "ImDrawList" +defs["ImDrawList__OnChangedTextureID"]["()"] = defs["ImDrawList__OnChangedTextureID"][1] +defs["ImDrawList__OnChangedVtxOffset"] = {} +defs["ImDrawList__OnChangedVtxOffset"][1] = {} +defs["ImDrawList__OnChangedVtxOffset"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__OnChangedVtxOffset"][1]["argsT"] = {} +defs["ImDrawList__OnChangedVtxOffset"][1]["argsT"][1] = {} +defs["ImDrawList__OnChangedVtxOffset"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__OnChangedVtxOffset"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__OnChangedVtxOffset"][1]["argsoriginal"] = "()" +defs["ImDrawList__OnChangedVtxOffset"][1]["call_args"] = "()" +defs["ImDrawList__OnChangedVtxOffset"][1]["cimguiname"] = "ImDrawList__OnChangedVtxOffset" +defs["ImDrawList__OnChangedVtxOffset"][1]["defaults"] = {} +defs["ImDrawList__OnChangedVtxOffset"][1]["funcname"] = "_OnChangedVtxOffset" +defs["ImDrawList__OnChangedVtxOffset"][1]["location"] = "imgui:2731" +defs["ImDrawList__OnChangedVtxOffset"][1]["ov_cimguiname"] = "ImDrawList__OnChangedVtxOffset" +defs["ImDrawList__OnChangedVtxOffset"][1]["ret"] = "void" +defs["ImDrawList__OnChangedVtxOffset"][1]["signature"] = "()" +defs["ImDrawList__OnChangedVtxOffset"][1]["stname"] = "ImDrawList" +defs["ImDrawList__OnChangedVtxOffset"]["()"] = defs["ImDrawList__OnChangedVtxOffset"][1] +defs["ImDrawList__PathArcToFastEx"] = {} +defs["ImDrawList__PathArcToFastEx"][1] = {} +defs["ImDrawList__PathArcToFastEx"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step)" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][1] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][2] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][3] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][4] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][4]["name"] = "a_min_sample" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][4]["type"] = "int" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][5] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][5]["name"] = "a_max_sample" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][6] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][6]["name"] = "a_step" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][6]["type"] = "int" +defs["ImDrawList__PathArcToFastEx"][1]["argsoriginal"] = "(const ImVec2& center,float radius,int a_min_sample,int a_max_sample,int a_step)" +defs["ImDrawList__PathArcToFastEx"][1]["call_args"] = "(center,radius,a_min_sample,a_max_sample,a_step)" +defs["ImDrawList__PathArcToFastEx"][1]["cimguiname"] = "ImDrawList__PathArcToFastEx" +defs["ImDrawList__PathArcToFastEx"][1]["defaults"] = {} +defs["ImDrawList__PathArcToFastEx"][1]["funcname"] = "_PathArcToFastEx" +defs["ImDrawList__PathArcToFastEx"][1]["location"] = "imgui:2733" +defs["ImDrawList__PathArcToFastEx"][1]["ov_cimguiname"] = "ImDrawList__PathArcToFastEx" +defs["ImDrawList__PathArcToFastEx"][1]["ret"] = "void" +defs["ImDrawList__PathArcToFastEx"][1]["signature"] = "(const ImVec2,float,int,int,int)" +defs["ImDrawList__PathArcToFastEx"][1]["stname"] = "ImDrawList" +defs["ImDrawList__PathArcToFastEx"]["(const ImVec2,float,int,int,int)"] = defs["ImDrawList__PathArcToFastEx"][1] +defs["ImDrawList__PathArcToN"] = {} +defs["ImDrawList__PathArcToN"][1] = {} +defs["ImDrawList__PathArcToN"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)" +defs["ImDrawList__PathArcToN"][1]["argsT"] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][1] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__PathArcToN"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__PathArcToN"][1]["argsT"][2] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList__PathArcToN"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList__PathArcToN"][1]["argsT"][3] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList__PathArcToN"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList__PathArcToN"][1]["argsT"][4] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][4]["name"] = "a_min" +defs["ImDrawList__PathArcToN"][1]["argsT"][4]["type"] = "float" +defs["ImDrawList__PathArcToN"][1]["argsT"][5] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][5]["name"] = "a_max" +defs["ImDrawList__PathArcToN"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList__PathArcToN"][1]["argsT"][6] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][6]["name"] = "num_segments" +defs["ImDrawList__PathArcToN"][1]["argsT"][6]["type"] = "int" +defs["ImDrawList__PathArcToN"][1]["argsoriginal"] = "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments)" +defs["ImDrawList__PathArcToN"][1]["call_args"] = "(center,radius,a_min,a_max,num_segments)" +defs["ImDrawList__PathArcToN"][1]["cimguiname"] = "ImDrawList__PathArcToN" +defs["ImDrawList__PathArcToN"][1]["defaults"] = {} +defs["ImDrawList__PathArcToN"][1]["funcname"] = "_PathArcToN" +defs["ImDrawList__PathArcToN"][1]["location"] = "imgui:2734" +defs["ImDrawList__PathArcToN"][1]["ov_cimguiname"] = "ImDrawList__PathArcToN" +defs["ImDrawList__PathArcToN"][1]["ret"] = "void" +defs["ImDrawList__PathArcToN"][1]["signature"] = "(const ImVec2,float,float,float,int)" +defs["ImDrawList__PathArcToN"][1]["stname"] = "ImDrawList" +defs["ImDrawList__PathArcToN"]["(const ImVec2,float,float,float,int)"] = defs["ImDrawList__PathArcToN"][1] +defs["ImDrawList__PopUnusedDrawCmd"] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsT"] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsT"][1] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsoriginal"] = "()" +defs["ImDrawList__PopUnusedDrawCmd"][1]["call_args"] = "()" +defs["ImDrawList__PopUnusedDrawCmd"][1]["cimguiname"] = "ImDrawList__PopUnusedDrawCmd" +defs["ImDrawList__PopUnusedDrawCmd"][1]["defaults"] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1]["funcname"] = "_PopUnusedDrawCmd" +defs["ImDrawList__PopUnusedDrawCmd"][1]["location"] = "imgui:2727" +defs["ImDrawList__PopUnusedDrawCmd"][1]["ov_cimguiname"] = "ImDrawList__PopUnusedDrawCmd" +defs["ImDrawList__PopUnusedDrawCmd"][1]["ret"] = "void" +defs["ImDrawList__PopUnusedDrawCmd"][1]["signature"] = "()" +defs["ImDrawList__PopUnusedDrawCmd"][1]["stname"] = "ImDrawList" +defs["ImDrawList__PopUnusedDrawCmd"]["()"] = defs["ImDrawList__PopUnusedDrawCmd"][1] +defs["ImDrawList__ResetForNewFrame"] = {} +defs["ImDrawList__ResetForNewFrame"][1] = {} +defs["ImDrawList__ResetForNewFrame"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__ResetForNewFrame"][1]["argsT"] = {} +defs["ImDrawList__ResetForNewFrame"][1]["argsT"][1] = {} +defs["ImDrawList__ResetForNewFrame"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__ResetForNewFrame"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__ResetForNewFrame"][1]["argsoriginal"] = "()" +defs["ImDrawList__ResetForNewFrame"][1]["call_args"] = "()" +defs["ImDrawList__ResetForNewFrame"][1]["cimguiname"] = "ImDrawList__ResetForNewFrame" +defs["ImDrawList__ResetForNewFrame"][1]["defaults"] = {} +defs["ImDrawList__ResetForNewFrame"][1]["funcname"] = "_ResetForNewFrame" +defs["ImDrawList__ResetForNewFrame"][1]["location"] = "imgui:2725" +defs["ImDrawList__ResetForNewFrame"][1]["ov_cimguiname"] = "ImDrawList__ResetForNewFrame" +defs["ImDrawList__ResetForNewFrame"][1]["ret"] = "void" +defs["ImDrawList__ResetForNewFrame"][1]["signature"] = "()" +defs["ImDrawList__ResetForNewFrame"][1]["stname"] = "ImDrawList" +defs["ImDrawList__ResetForNewFrame"]["()"] = defs["ImDrawList__ResetForNewFrame"][1] +defs["ImDrawList__TryMergeDrawCmds"] = {} +defs["ImDrawList__TryMergeDrawCmds"][1] = {} +defs["ImDrawList__TryMergeDrawCmds"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__TryMergeDrawCmds"][1]["argsT"] = {} +defs["ImDrawList__TryMergeDrawCmds"][1]["argsT"][1] = {} +defs["ImDrawList__TryMergeDrawCmds"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__TryMergeDrawCmds"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__TryMergeDrawCmds"][1]["argsoriginal"] = "()" +defs["ImDrawList__TryMergeDrawCmds"][1]["call_args"] = "()" +defs["ImDrawList__TryMergeDrawCmds"][1]["cimguiname"] = "ImDrawList__TryMergeDrawCmds" +defs["ImDrawList__TryMergeDrawCmds"][1]["defaults"] = {} +defs["ImDrawList__TryMergeDrawCmds"][1]["funcname"] = "_TryMergeDrawCmds" +defs["ImDrawList__TryMergeDrawCmds"][1]["location"] = "imgui:2728" +defs["ImDrawList__TryMergeDrawCmds"][1]["ov_cimguiname"] = "ImDrawList__TryMergeDrawCmds" +defs["ImDrawList__TryMergeDrawCmds"][1]["ret"] = "void" +defs["ImDrawList__TryMergeDrawCmds"][1]["signature"] = "()" +defs["ImDrawList__TryMergeDrawCmds"][1]["stname"] = "ImDrawList" +defs["ImDrawList__TryMergeDrawCmds"]["()"] = defs["ImDrawList__TryMergeDrawCmds"][1] +defs["ImDrawList_destroy"] = {} +defs["ImDrawList_destroy"][1] = {} +defs["ImDrawList_destroy"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_destroy"][1]["argsT"] = {} +defs["ImDrawList_destroy"][1]["argsT"][1] = {} +defs["ImDrawList_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_destroy"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_destroy"][1]["call_args"] = "(self)" +defs["ImDrawList_destroy"][1]["cimguiname"] = "ImDrawList_destroy" +defs["ImDrawList_destroy"][1]["defaults"] = {} +defs["ImDrawList_destroy"][1]["destructor"] = true +defs["ImDrawList_destroy"][1]["location"] = "imgui:2636" +defs["ImDrawList_destroy"][1]["ov_cimguiname"] = "ImDrawList_destroy" +defs["ImDrawList_destroy"][1]["realdestructor"] = true +defs["ImDrawList_destroy"][1]["ret"] = "void" +defs["ImDrawList_destroy"][1]["signature"] = "(ImDrawList*)" +defs["ImDrawList_destroy"][1]["stname"] = "ImDrawList" +defs["ImDrawList_destroy"]["(ImDrawList*)"] = defs["ImDrawList_destroy"][1] +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"] = {} +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1] = {} +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["args"] = "()" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["argsT"] = {} +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["argsoriginal"] = "()" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["call_args"] = "()" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["cimguiname"] = "ImFontAtlasCustomRect_ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["constructor"] = true +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["defaults"] = {} +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["funcname"] = "ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["location"] = "imgui:2827" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["signature"] = "()" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["stname"] = "ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"]["()"] = defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1] +defs["ImFontAtlasCustomRect_IsPacked"] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1]["args"] = "(ImFontAtlasCustomRect* self)" +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsT"] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsT"][1] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsT"][1]["type"] = "ImFontAtlasCustomRect*" +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsoriginal"] = "()" +defs["ImFontAtlasCustomRect_IsPacked"][1]["call_args"] = "()" +defs["ImFontAtlasCustomRect_IsPacked"][1]["cimguiname"] = "ImFontAtlasCustomRect_IsPacked" +defs["ImFontAtlasCustomRect_IsPacked"][1]["defaults"] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1]["funcname"] = "IsPacked" +defs["ImFontAtlasCustomRect_IsPacked"][1]["location"] = "imgui:2828" +defs["ImFontAtlasCustomRect_IsPacked"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_IsPacked" +defs["ImFontAtlasCustomRect_IsPacked"][1]["ret"] = "bool" +defs["ImFontAtlasCustomRect_IsPacked"][1]["signature"] = "()const" +defs["ImFontAtlasCustomRect_IsPacked"][1]["stname"] = "ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_IsPacked"]["()const"] = defs["ImFontAtlasCustomRect_IsPacked"][1] +defs["ImFontAtlasCustomRect_destroy"] = {} +defs["ImFontAtlasCustomRect_destroy"][1] = {} +defs["ImFontAtlasCustomRect_destroy"][1]["args"] = "(ImFontAtlasCustomRect* self)" +defs["ImFontAtlasCustomRect_destroy"][1]["argsT"] = {} +defs["ImFontAtlasCustomRect_destroy"][1]["argsT"][1] = {} +defs["ImFontAtlasCustomRect_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlasCustomRect_destroy"][1]["argsT"][1]["type"] = "ImFontAtlasCustomRect*" +defs["ImFontAtlasCustomRect_destroy"][1]["call_args"] = "(self)" +defs["ImFontAtlasCustomRect_destroy"][1]["cimguiname"] = "ImFontAtlasCustomRect_destroy" +defs["ImFontAtlasCustomRect_destroy"][1]["defaults"] = {} +defs["ImFontAtlasCustomRect_destroy"][1]["destructor"] = true +defs["ImFontAtlasCustomRect_destroy"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_destroy" +defs["ImFontAtlasCustomRect_destroy"][1]["ret"] = "void" +defs["ImFontAtlasCustomRect_destroy"][1]["signature"] = "(ImFontAtlasCustomRect*)" +defs["ImFontAtlasCustomRect_destroy"][1]["stname"] = "ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_destroy"]["(ImFontAtlasCustomRect*)"] = defs["ImFontAtlasCustomRect_destroy"][1] +defs["ImFontAtlas_AddCustomRectFontGlyph"] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["args"] = "(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset)" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][2]["name"] = "font" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][2]["type"] = "ImFont*" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][3]["name"] = "id" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][3]["type"] = "ImWchar" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][4]["name"] = "width" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][4]["type"] = "int" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][5]["name"] = "height" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][5]["type"] = "int" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][6] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][6]["name"] = "advance_x" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][6]["type"] = "float" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][7] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][7]["name"] = "offset" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][7]["type"] = "const ImVec2" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsoriginal"] = "(ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2& offset=ImVec2(0,0))" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["call_args"] = "(font,id,width,height,advance_x,offset)" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["cimguiname"] = "ImFontAtlas_AddCustomRectFontGlyph" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["defaults"] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["defaults"]["offset"] = "ImVec2(0,0)" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["funcname"] = "AddCustomRectFontGlyph" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["location"] = "imgui:2912" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["ov_cimguiname"] = "ImFontAtlas_AddCustomRectFontGlyph" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["ret"] = "int" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["signature"] = "(ImFont*,ImWchar,int,int,float,const ImVec2)" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddCustomRectFontGlyph"]["(ImFont*,ImWchar,int,int,float,const ImVec2)"] = defs["ImFontAtlas_AddCustomRectFontGlyph"][1] +defs["ImFontAtlas_AddCustomRectRegular"] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["args"] = "(ImFontAtlas* self,int width,int height)" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][2]["name"] = "width" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][2]["type"] = "int" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][3]["name"] = "height" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][3]["type"] = "int" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsoriginal"] = "(int width,int height)" +defs["ImFontAtlas_AddCustomRectRegular"][1]["call_args"] = "(width,height)" +defs["ImFontAtlas_AddCustomRectRegular"][1]["cimguiname"] = "ImFontAtlas_AddCustomRectRegular" +defs["ImFontAtlas_AddCustomRectRegular"][1]["defaults"] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["funcname"] = "AddCustomRectRegular" +defs["ImFontAtlas_AddCustomRectRegular"][1]["location"] = "imgui:2911" +defs["ImFontAtlas_AddCustomRectRegular"][1]["ov_cimguiname"] = "ImFontAtlas_AddCustomRectRegular" +defs["ImFontAtlas_AddCustomRectRegular"][1]["ret"] = "int" +defs["ImFontAtlas_AddCustomRectRegular"][1]["signature"] = "(int,int)" +defs["ImFontAtlas_AddCustomRectRegular"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddCustomRectRegular"]["(int,int)"] = defs["ImFontAtlas_AddCustomRectRegular"][1] +defs["ImFontAtlas_AddFont"] = {} +defs["ImFontAtlas_AddFont"][1] = {} +defs["ImFontAtlas_AddFont"][1]["args"] = "(ImFontAtlas* self,const ImFontConfig* font_cfg)" +defs["ImFontAtlas_AddFont"][1]["argsT"] = {} +defs["ImFontAtlas_AddFont"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFont"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFont"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFont"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFont"][1]["argsT"][2]["name"] = "font_cfg" +defs["ImFontAtlas_AddFont"][1]["argsT"][2]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFont"][1]["argsoriginal"] = "(const ImFontConfig* font_cfg)" +defs["ImFontAtlas_AddFont"][1]["call_args"] = "(font_cfg)" +defs["ImFontAtlas_AddFont"][1]["cimguiname"] = "ImFontAtlas_AddFont" +defs["ImFontAtlas_AddFont"][1]["defaults"] = {} +defs["ImFontAtlas_AddFont"][1]["funcname"] = "AddFont" +defs["ImFontAtlas_AddFont"][1]["location"] = "imgui:2861" +defs["ImFontAtlas_AddFont"][1]["ov_cimguiname"] = "ImFontAtlas_AddFont" +defs["ImFontAtlas_AddFont"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFont"][1]["signature"] = "(const ImFontConfig*)" +defs["ImFontAtlas_AddFont"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFont"]["(const ImFontConfig*)"] = defs["ImFontAtlas_AddFont"][1] +defs["ImFontAtlas_AddFontDefault"] = {} +defs["ImFontAtlas_AddFontDefault"][1] = {} +defs["ImFontAtlas_AddFontDefault"][1]["args"] = "(ImFontAtlas* self,const ImFontConfig* font_cfg)" +defs["ImFontAtlas_AddFontDefault"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][2]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][2]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontDefault"][1]["argsoriginal"] = "(const ImFontConfig* font_cfg=((void*)0))" +defs["ImFontAtlas_AddFontDefault"][1]["call_args"] = "(font_cfg)" +defs["ImFontAtlas_AddFontDefault"][1]["cimguiname"] = "ImFontAtlas_AddFontDefault" +defs["ImFontAtlas_AddFontDefault"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontDefault"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontDefault"][1]["funcname"] = "AddFontDefault" +defs["ImFontAtlas_AddFontDefault"][1]["location"] = "imgui:2862" +defs["ImFontAtlas_AddFontDefault"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontDefault" +defs["ImFontAtlas_AddFontDefault"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontDefault"][1]["signature"] = "(const ImFontConfig*)" +defs["ImFontAtlas_AddFontDefault"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontDefault"]["(const ImFontConfig*)"] = defs["ImFontAtlas_AddFontDefault"][1] +defs["ImFontAtlas_AddFontFromFileTTF"] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["args"] = "(ImFontAtlas* self,const char* filename,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][2]["name"] = "filename" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][2]["type"] = "const char*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][3]["name"] = "size_pixels" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][3]["type"] = "float" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][4]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][4]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][5]["name"] = "glyph_ranges" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][5]["type"] = "const ImWchar*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsoriginal"] = "(const char* filename,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["call_args"] = "(filename,size_pixels,font_cfg,glyph_ranges)" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["cimguiname"] = "ImFontAtlas_AddFontFromFileTTF" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"]["glyph_ranges"] = "NULL" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["funcname"] = "AddFontFromFileTTF" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["location"] = "imgui:2863" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromFileTTF" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["signature"] = "(const char*,float,const ImFontConfig*,const ImWchar*)" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontFromFileTTF"]["(const char*,float,const ImFontConfig*,const ImWchar*)"] = defs["ImFontAtlas_AddFontFromFileTTF"][1] +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["args"] = "(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][2]["name"] = "compressed_font_data_base85" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][2]["type"] = "const char*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][3]["name"] = "size_pixels" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][3]["type"] = "float" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][4]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][4]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][5]["name"] = "glyph_ranges" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][5]["type"] = "const ImWchar*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsoriginal"] = "(const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["call_args"] = "(compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"]["glyph_ranges"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["funcname"] = "AddFontFromMemoryCompressedBase85TTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["location"] = "imgui:2866" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["signature"] = "(const char*,float,const ImFontConfig*,const ImWchar*)" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"]["(const char*,float,const ImFontConfig*,const ImWchar*)"] = defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1] +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["args"] = "(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][2]["name"] = "compressed_font_data" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][2]["type"] = "const void*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][3]["name"] = "compressed_font_size" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][3]["type"] = "int" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][4]["name"] = "size_pixels" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][4]["type"] = "float" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][5]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][5]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][6] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][6]["name"] = "glyph_ranges" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][6]["type"] = "const ImWchar*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsoriginal"] = "(const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["call_args"] = "(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedTTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"]["glyph_ranges"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["funcname"] = "AddFontFromMemoryCompressedTTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["location"] = "imgui:2865" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedTTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["signature"] = "(const void*,int,float,const ImFontConfig*,const ImWchar*)" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"]["(const void*,int,float,const ImFontConfig*,const ImWchar*)"] = defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1] +defs["ImFontAtlas_AddFontFromMemoryTTF"] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["args"] = "(ImFontAtlas* self,void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][2]["name"] = "font_data" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][2]["type"] = "void*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][3]["name"] = "font_size" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][3]["type"] = "int" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][4]["name"] = "size_pixels" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][4]["type"] = "float" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][5]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][5]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][6] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][6]["name"] = "glyph_ranges" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][6]["type"] = "const ImWchar*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsoriginal"] = "(void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["call_args"] = "(font_data,font_size,size_pixels,font_cfg,glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["cimguiname"] = "ImFontAtlas_AddFontFromMemoryTTF" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"]["glyph_ranges"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["funcname"] = "AddFontFromMemoryTTF" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["location"] = "imgui:2864" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryTTF" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["signature"] = "(void*,int,float,const ImFontConfig*,const ImWchar*)" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontFromMemoryTTF"]["(void*,int,float,const ImFontConfig*,const ImWchar*)"] = defs["ImFontAtlas_AddFontFromMemoryTTF"][1] +defs["ImFontAtlas_Build"] = {} +defs["ImFontAtlas_Build"][1] = {} +defs["ImFontAtlas_Build"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_Build"][1]["argsT"] = {} +defs["ImFontAtlas_Build"][1]["argsT"][1] = {} +defs["ImFontAtlas_Build"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_Build"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_Build"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_Build"][1]["call_args"] = "()" +defs["ImFontAtlas_Build"][1]["cimguiname"] = "ImFontAtlas_Build" +defs["ImFontAtlas_Build"][1]["defaults"] = {} +defs["ImFontAtlas_Build"][1]["funcname"] = "Build" +defs["ImFontAtlas_Build"][1]["location"] = "imgui:2877" +defs["ImFontAtlas_Build"][1]["ov_cimguiname"] = "ImFontAtlas_Build" +defs["ImFontAtlas_Build"][1]["ret"] = "bool" +defs["ImFontAtlas_Build"][1]["signature"] = "()" +defs["ImFontAtlas_Build"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_Build"]["()"] = defs["ImFontAtlas_Build"][1] +defs["ImFontAtlas_CalcCustomRectUV"] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["args"] = "(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][1] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][2] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][2]["name"] = "rect" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][2]["type"] = "const ImFontAtlasCustomRect*" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][3] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][3]["name"] = "out_uv_min" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][3]["type"] = "ImVec2*" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][4] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][4]["name"] = "out_uv_max" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][4]["type"] = "ImVec2*" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsoriginal"] = "(const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)" +defs["ImFontAtlas_CalcCustomRectUV"][1]["call_args"] = "(rect,out_uv_min,out_uv_max)" +defs["ImFontAtlas_CalcCustomRectUV"][1]["cimguiname"] = "ImFontAtlas_CalcCustomRectUV" +defs["ImFontAtlas_CalcCustomRectUV"][1]["defaults"] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["funcname"] = "CalcCustomRectUV" +defs["ImFontAtlas_CalcCustomRectUV"][1]["location"] = "imgui:2916" +defs["ImFontAtlas_CalcCustomRectUV"][1]["ov_cimguiname"] = "ImFontAtlas_CalcCustomRectUV" +defs["ImFontAtlas_CalcCustomRectUV"][1]["ret"] = "void" +defs["ImFontAtlas_CalcCustomRectUV"][1]["signature"] = "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const" +defs["ImFontAtlas_CalcCustomRectUV"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_CalcCustomRectUV"]["(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const"] = defs["ImFontAtlas_CalcCustomRectUV"][1] +defs["ImFontAtlas_Clear"] = {} +defs["ImFontAtlas_Clear"][1] = {} +defs["ImFontAtlas_Clear"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_Clear"][1]["argsT"] = {} +defs["ImFontAtlas_Clear"][1]["argsT"][1] = {} +defs["ImFontAtlas_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_Clear"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_Clear"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_Clear"][1]["call_args"] = "()" +defs["ImFontAtlas_Clear"][1]["cimguiname"] = "ImFontAtlas_Clear" +defs["ImFontAtlas_Clear"][1]["defaults"] = {} +defs["ImFontAtlas_Clear"][1]["funcname"] = "Clear" +defs["ImFontAtlas_Clear"][1]["location"] = "imgui:2870" +defs["ImFontAtlas_Clear"][1]["ov_cimguiname"] = "ImFontAtlas_Clear" +defs["ImFontAtlas_Clear"][1]["ret"] = "void" +defs["ImFontAtlas_Clear"][1]["signature"] = "()" +defs["ImFontAtlas_Clear"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_Clear"]["()"] = defs["ImFontAtlas_Clear"][1] +defs["ImFontAtlas_ClearFonts"] = {} +defs["ImFontAtlas_ClearFonts"][1] = {} +defs["ImFontAtlas_ClearFonts"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_ClearFonts"][1]["argsT"] = {} +defs["ImFontAtlas_ClearFonts"][1]["argsT"][1] = {} +defs["ImFontAtlas_ClearFonts"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_ClearFonts"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_ClearFonts"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_ClearFonts"][1]["call_args"] = "()" +defs["ImFontAtlas_ClearFonts"][1]["cimguiname"] = "ImFontAtlas_ClearFonts" +defs["ImFontAtlas_ClearFonts"][1]["defaults"] = {} +defs["ImFontAtlas_ClearFonts"][1]["funcname"] = "ClearFonts" +defs["ImFontAtlas_ClearFonts"][1]["location"] = "imgui:2869" +defs["ImFontAtlas_ClearFonts"][1]["ov_cimguiname"] = "ImFontAtlas_ClearFonts" +defs["ImFontAtlas_ClearFonts"][1]["ret"] = "void" +defs["ImFontAtlas_ClearFonts"][1]["signature"] = "()" +defs["ImFontAtlas_ClearFonts"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_ClearFonts"]["()"] = defs["ImFontAtlas_ClearFonts"][1] +defs["ImFontAtlas_ClearInputData"] = {} +defs["ImFontAtlas_ClearInputData"][1] = {} +defs["ImFontAtlas_ClearInputData"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_ClearInputData"][1]["argsT"] = {} +defs["ImFontAtlas_ClearInputData"][1]["argsT"][1] = {} +defs["ImFontAtlas_ClearInputData"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_ClearInputData"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_ClearInputData"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_ClearInputData"][1]["call_args"] = "()" +defs["ImFontAtlas_ClearInputData"][1]["cimguiname"] = "ImFontAtlas_ClearInputData" +defs["ImFontAtlas_ClearInputData"][1]["defaults"] = {} +defs["ImFontAtlas_ClearInputData"][1]["funcname"] = "ClearInputData" +defs["ImFontAtlas_ClearInputData"][1]["location"] = "imgui:2867" +defs["ImFontAtlas_ClearInputData"][1]["ov_cimguiname"] = "ImFontAtlas_ClearInputData" +defs["ImFontAtlas_ClearInputData"][1]["ret"] = "void" +defs["ImFontAtlas_ClearInputData"][1]["signature"] = "()" +defs["ImFontAtlas_ClearInputData"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_ClearInputData"]["()"] = defs["ImFontAtlas_ClearInputData"][1] +defs["ImFontAtlas_ClearTexData"] = {} +defs["ImFontAtlas_ClearTexData"][1] = {} +defs["ImFontAtlas_ClearTexData"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_ClearTexData"][1]["argsT"] = {} +defs["ImFontAtlas_ClearTexData"][1]["argsT"][1] = {} +defs["ImFontAtlas_ClearTexData"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_ClearTexData"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_ClearTexData"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_ClearTexData"][1]["call_args"] = "()" +defs["ImFontAtlas_ClearTexData"][1]["cimguiname"] = "ImFontAtlas_ClearTexData" +defs["ImFontAtlas_ClearTexData"][1]["defaults"] = {} +defs["ImFontAtlas_ClearTexData"][1]["funcname"] = "ClearTexData" +defs["ImFontAtlas_ClearTexData"][1]["location"] = "imgui:2868" +defs["ImFontAtlas_ClearTexData"][1]["ov_cimguiname"] = "ImFontAtlas_ClearTexData" +defs["ImFontAtlas_ClearTexData"][1]["ret"] = "void" +defs["ImFontAtlas_ClearTexData"][1]["signature"] = "()" +defs["ImFontAtlas_ClearTexData"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_ClearTexData"]["()"] = defs["ImFontAtlas_ClearTexData"][1] +defs["ImFontAtlas_GetCustomRectByIndex"] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["args"] = "(ImFontAtlas* self,int index)" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][2] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][2]["name"] = "index" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][2]["type"] = "int" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsoriginal"] = "(int index)" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["call_args"] = "(index)" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["cimguiname"] = "ImFontAtlas_GetCustomRectByIndex" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["defaults"] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["funcname"] = "GetCustomRectByIndex" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["location"] = "imgui:2913" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["ov_cimguiname"] = "ImFontAtlas_GetCustomRectByIndex" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["ret"] = "ImFontAtlasCustomRect*" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["signature"] = "(int)" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetCustomRectByIndex"]["(int)"] = defs["ImFontAtlas_GetCustomRectByIndex"][1] +defs["ImFontAtlas_GetGlyphRangesChineseFull"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseFull" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["funcname"] = "GetGlyphRangesChineseFull" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["location"] = "imgui:2894" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseFull" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesChineseFull"]["()"] = defs["ImFontAtlas_GetGlyphRangesChineseFull"][1] +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["funcname"] = "GetGlyphRangesChineseSimplifiedCommon" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["location"] = "imgui:2895" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"]["()"] = defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1] +defs["ImFontAtlas_GetGlyphRangesCyrillic"] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesCyrillic" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["funcname"] = "GetGlyphRangesCyrillic" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["location"] = "imgui:2896" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesCyrillic" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesCyrillic"]["()"] = defs["ImFontAtlas_GetGlyphRangesCyrillic"][1] +defs["ImFontAtlas_GetGlyphRangesDefault"] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesDefault" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["funcname"] = "GetGlyphRangesDefault" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["location"] = "imgui:2890" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesDefault" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesDefault"]["()"] = defs["ImFontAtlas_GetGlyphRangesDefault"][1] +defs["ImFontAtlas_GetGlyphRangesGreek"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["funcname"] = "GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["location"] = "imgui:2891" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesGreek"]["()"] = defs["ImFontAtlas_GetGlyphRangesGreek"][1] +defs["ImFontAtlas_GetGlyphRangesJapanese"] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesJapanese" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["funcname"] = "GetGlyphRangesJapanese" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["location"] = "imgui:2893" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesJapanese" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesJapanese"]["()"] = defs["ImFontAtlas_GetGlyphRangesJapanese"][1] +defs["ImFontAtlas_GetGlyphRangesKorean"] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesKorean" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["funcname"] = "GetGlyphRangesKorean" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["location"] = "imgui:2892" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesKorean" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesKorean"]["()"] = defs["ImFontAtlas_GetGlyphRangesKorean"][1] +defs["ImFontAtlas_GetGlyphRangesThai"] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesThai" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1]["funcname"] = "GetGlyphRangesThai" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["location"] = "imgui:2897" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesThai" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesThai"]["()"] = defs["ImFontAtlas_GetGlyphRangesThai"][1] +defs["ImFontAtlas_GetGlyphRangesVietnamese"] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesVietnamese" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["funcname"] = "GetGlyphRangesVietnamese" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["location"] = "imgui:2898" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesVietnamese" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesVietnamese"]["()"] = defs["ImFontAtlas_GetGlyphRangesVietnamese"][1] +defs["ImFontAtlas_GetMouseCursorTexData"] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["args"] = "(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][2] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][2]["name"] = "cursor" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][2]["type"] = "ImGuiMouseCursor" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][3] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][3]["name"] = "out_offset" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][3]["type"] = "ImVec2*" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][4] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][4]["name"] = "out_size" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][4]["type"] = "ImVec2*" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][5] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][5]["name"] = "out_uv_border" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][5]["type"] = "ImVec2[2]" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][6] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][6]["name"] = "out_uv_fill" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][6]["type"] = "ImVec2[2]" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsoriginal"] = "(ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["call_args"] = "(cursor,out_offset,out_size,out_uv_border,out_uv_fill)" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["cimguiname"] = "ImFontAtlas_GetMouseCursorTexData" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["defaults"] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["funcname"] = "GetMouseCursorTexData" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["location"] = "imgui:2917" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["ov_cimguiname"] = "ImFontAtlas_GetMouseCursorTexData" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["ret"] = "bool" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["signature"] = "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetMouseCursorTexData"]["(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])"] = defs["ImFontAtlas_GetMouseCursorTexData"][1] +defs["ImFontAtlas_GetTexDataAsAlpha8"] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["args"] = "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][2] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][2]["name"] = "out_pixels" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][2]["type"] = "unsigned char**" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][3] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][3]["name"] = "out_width" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][3]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][4] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][4]["name"] = "out_height" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][4]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][5] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][5]["name"] = "out_bytes_per_pixel" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][5]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsoriginal"] = "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["call_args"] = "(out_pixels,out_width,out_height,out_bytes_per_pixel)" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["cimguiname"] = "ImFontAtlas_GetTexDataAsAlpha8" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["defaults"] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["defaults"]["out_bytes_per_pixel"] = "NULL" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["funcname"] = "GetTexDataAsAlpha8" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["location"] = "imgui:2878" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["ov_cimguiname"] = "ImFontAtlas_GetTexDataAsAlpha8" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["ret"] = "void" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["signature"] = "(unsigned char**,int*,int*,int*)" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetTexDataAsAlpha8"]["(unsigned char**,int*,int*,int*)"] = defs["ImFontAtlas_GetTexDataAsAlpha8"][1] +defs["ImFontAtlas_GetTexDataAsRGBA32"] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["args"] = "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][2] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][2]["name"] = "out_pixels" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][2]["type"] = "unsigned char**" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][3] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][3]["name"] = "out_width" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][3]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][4] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][4]["name"] = "out_height" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][4]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][5] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][5]["name"] = "out_bytes_per_pixel" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][5]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsoriginal"] = "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["call_args"] = "(out_pixels,out_width,out_height,out_bytes_per_pixel)" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["cimguiname"] = "ImFontAtlas_GetTexDataAsRGBA32" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["defaults"] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["defaults"]["out_bytes_per_pixel"] = "NULL" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["funcname"] = "GetTexDataAsRGBA32" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["location"] = "imgui:2879" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["ov_cimguiname"] = "ImFontAtlas_GetTexDataAsRGBA32" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["ret"] = "void" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["signature"] = "(unsigned char**,int*,int*,int*)" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetTexDataAsRGBA32"]["(unsigned char**,int*,int*,int*)"] = defs["ImFontAtlas_GetTexDataAsRGBA32"][1] +defs["ImFontAtlas_ImFontAtlas"] = {} +defs["ImFontAtlas_ImFontAtlas"][1] = {} +defs["ImFontAtlas_ImFontAtlas"][1]["args"] = "()" +defs["ImFontAtlas_ImFontAtlas"][1]["argsT"] = {} +defs["ImFontAtlas_ImFontAtlas"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_ImFontAtlas"][1]["call_args"] = "()" +defs["ImFontAtlas_ImFontAtlas"][1]["cimguiname"] = "ImFontAtlas_ImFontAtlas" +defs["ImFontAtlas_ImFontAtlas"][1]["constructor"] = true +defs["ImFontAtlas_ImFontAtlas"][1]["defaults"] = {} +defs["ImFontAtlas_ImFontAtlas"][1]["funcname"] = "ImFontAtlas" +defs["ImFontAtlas_ImFontAtlas"][1]["location"] = "imgui:2859" +defs["ImFontAtlas_ImFontAtlas"][1]["ov_cimguiname"] = "ImFontAtlas_ImFontAtlas" +defs["ImFontAtlas_ImFontAtlas"][1]["signature"] = "()" +defs["ImFontAtlas_ImFontAtlas"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_ImFontAtlas"]["()"] = defs["ImFontAtlas_ImFontAtlas"][1] +defs["ImFontAtlas_IsBuilt"] = {} +defs["ImFontAtlas_IsBuilt"][1] = {} +defs["ImFontAtlas_IsBuilt"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_IsBuilt"][1]["argsT"] = {} +defs["ImFontAtlas_IsBuilt"][1]["argsT"][1] = {} +defs["ImFontAtlas_IsBuilt"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_IsBuilt"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_IsBuilt"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_IsBuilt"][1]["call_args"] = "()" +defs["ImFontAtlas_IsBuilt"][1]["cimguiname"] = "ImFontAtlas_IsBuilt" +defs["ImFontAtlas_IsBuilt"][1]["defaults"] = {} +defs["ImFontAtlas_IsBuilt"][1]["funcname"] = "IsBuilt" +defs["ImFontAtlas_IsBuilt"][1]["location"] = "imgui:2880" +defs["ImFontAtlas_IsBuilt"][1]["ov_cimguiname"] = "ImFontAtlas_IsBuilt" +defs["ImFontAtlas_IsBuilt"][1]["ret"] = "bool" +defs["ImFontAtlas_IsBuilt"][1]["signature"] = "()const" +defs["ImFontAtlas_IsBuilt"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_IsBuilt"]["()const"] = defs["ImFontAtlas_IsBuilt"][1] +defs["ImFontAtlas_SetTexID"] = {} +defs["ImFontAtlas_SetTexID"][1] = {} +defs["ImFontAtlas_SetTexID"][1]["args"] = "(ImFontAtlas* self,ImTextureID id)" +defs["ImFontAtlas_SetTexID"][1]["argsT"] = {} +defs["ImFontAtlas_SetTexID"][1]["argsT"][1] = {} +defs["ImFontAtlas_SetTexID"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_SetTexID"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_SetTexID"][1]["argsT"][2] = {} +defs["ImFontAtlas_SetTexID"][1]["argsT"][2]["name"] = "id" +defs["ImFontAtlas_SetTexID"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImFontAtlas_SetTexID"][1]["argsoriginal"] = "(ImTextureID id)" +defs["ImFontAtlas_SetTexID"][1]["call_args"] = "(id)" +defs["ImFontAtlas_SetTexID"][1]["cimguiname"] = "ImFontAtlas_SetTexID" +defs["ImFontAtlas_SetTexID"][1]["defaults"] = {} +defs["ImFontAtlas_SetTexID"][1]["funcname"] = "SetTexID" +defs["ImFontAtlas_SetTexID"][1]["location"] = "imgui:2881" +defs["ImFontAtlas_SetTexID"][1]["ov_cimguiname"] = "ImFontAtlas_SetTexID" +defs["ImFontAtlas_SetTexID"][1]["ret"] = "void" +defs["ImFontAtlas_SetTexID"][1]["signature"] = "(ImTextureID)" +defs["ImFontAtlas_SetTexID"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_SetTexID"]["(ImTextureID)"] = defs["ImFontAtlas_SetTexID"][1] +defs["ImFontAtlas_destroy"] = {} +defs["ImFontAtlas_destroy"][1] = {} +defs["ImFontAtlas_destroy"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_destroy"][1]["argsT"] = {} +defs["ImFontAtlas_destroy"][1]["argsT"][1] = {} +defs["ImFontAtlas_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_destroy"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_destroy"][1]["call_args"] = "(self)" +defs["ImFontAtlas_destroy"][1]["cimguiname"] = "ImFontAtlas_destroy" +defs["ImFontAtlas_destroy"][1]["defaults"] = {} +defs["ImFontAtlas_destroy"][1]["destructor"] = true +defs["ImFontAtlas_destroy"][1]["location"] = "imgui:2860" +defs["ImFontAtlas_destroy"][1]["ov_cimguiname"] = "ImFontAtlas_destroy" +defs["ImFontAtlas_destroy"][1]["realdestructor"] = true +defs["ImFontAtlas_destroy"][1]["ret"] = "void" +defs["ImFontAtlas_destroy"][1]["signature"] = "(ImFontAtlas*)" +defs["ImFontAtlas_destroy"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_destroy"]["(ImFontAtlas*)"] = defs["ImFontAtlas_destroy"][1] +defs["ImFontConfig_ImFontConfig"] = {} +defs["ImFontConfig_ImFontConfig"][1] = {} +defs["ImFontConfig_ImFontConfig"][1]["args"] = "()" +defs["ImFontConfig_ImFontConfig"][1]["argsT"] = {} +defs["ImFontConfig_ImFontConfig"][1]["argsoriginal"] = "()" +defs["ImFontConfig_ImFontConfig"][1]["call_args"] = "()" +defs["ImFontConfig_ImFontConfig"][1]["cimguiname"] = "ImFontConfig_ImFontConfig" +defs["ImFontConfig_ImFontConfig"][1]["constructor"] = true +defs["ImFontConfig_ImFontConfig"][1]["defaults"] = {} +defs["ImFontConfig_ImFontConfig"][1]["funcname"] = "ImFontConfig" +defs["ImFontConfig_ImFontConfig"][1]["location"] = "imgui:2787" +defs["ImFontConfig_ImFontConfig"][1]["ov_cimguiname"] = "ImFontConfig_ImFontConfig" +defs["ImFontConfig_ImFontConfig"][1]["signature"] = "()" +defs["ImFontConfig_ImFontConfig"][1]["stname"] = "ImFontConfig" +defs["ImFontConfig_ImFontConfig"]["()"] = defs["ImFontConfig_ImFontConfig"][1] +defs["ImFontConfig_destroy"] = {} +defs["ImFontConfig_destroy"][1] = {} +defs["ImFontConfig_destroy"][1]["args"] = "(ImFontConfig* self)" +defs["ImFontConfig_destroy"][1]["argsT"] = {} +defs["ImFontConfig_destroy"][1]["argsT"][1] = {} +defs["ImFontConfig_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFontConfig_destroy"][1]["argsT"][1]["type"] = "ImFontConfig*" +defs["ImFontConfig_destroy"][1]["call_args"] = "(self)" +defs["ImFontConfig_destroy"][1]["cimguiname"] = "ImFontConfig_destroy" +defs["ImFontConfig_destroy"][1]["defaults"] = {} +defs["ImFontConfig_destroy"][1]["destructor"] = true +defs["ImFontConfig_destroy"][1]["ov_cimguiname"] = "ImFontConfig_destroy" +defs["ImFontConfig_destroy"][1]["ret"] = "void" +defs["ImFontConfig_destroy"][1]["signature"] = "(ImFontConfig*)" +defs["ImFontConfig_destroy"][1]["stname"] = "ImFontConfig" +defs["ImFontConfig_destroy"]["(ImFontConfig*)"] = defs["ImFontConfig_destroy"][1] +defs["ImFontGlyphRangesBuilder_AddChar"] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["args"] = "(ImFontGlyphRangesBuilder* self,ImWchar c)" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][2]["name"] = "c" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsoriginal"] = "(ImWchar c)" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["call_args"] = "(c)" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddChar" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["funcname"] = "AddChar" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["location"] = "imgui:2812" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddChar" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["signature"] = "(ImWchar)" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_AddChar"]["(ImWchar)"] = defs["ImFontGlyphRangesBuilder_AddChar"][1] +defs["ImFontGlyphRangesBuilder_AddRanges"] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["args"] = "(ImFontGlyphRangesBuilder* self,const ImWchar* ranges)" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][2]["name"] = "ranges" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][2]["type"] = "const ImWchar*" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsoriginal"] = "(const ImWchar* ranges)" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["call_args"] = "(ranges)" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddRanges" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["funcname"] = "AddRanges" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["location"] = "imgui:2814" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddRanges" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["signature"] = "(const ImWchar*)" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_AddRanges"]["(const ImWchar*)"] = defs["ImFontGlyphRangesBuilder_AddRanges"][1] +defs["ImFontGlyphRangesBuilder_AddText"] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["args"] = "(ImFontGlyphRangesBuilder* self,const char* text,const char* text_end)" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][2]["name"] = "text" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][2]["type"] = "const char*" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][3] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][3]["name"] = "text_end" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][3]["type"] = "const char*" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0))" +defs["ImFontGlyphRangesBuilder_AddText"][1]["call_args"] = "(text,text_end)" +defs["ImFontGlyphRangesBuilder_AddText"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddText" +defs["ImFontGlyphRangesBuilder_AddText"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["defaults"]["text_end"] = "NULL" +defs["ImFontGlyphRangesBuilder_AddText"][1]["funcname"] = "AddText" +defs["ImFontGlyphRangesBuilder_AddText"][1]["location"] = "imgui:2813" +defs["ImFontGlyphRangesBuilder_AddText"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddText" +defs["ImFontGlyphRangesBuilder_AddText"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_AddText"][1]["signature"] = "(const char*,const char*)" +defs["ImFontGlyphRangesBuilder_AddText"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_AddText"]["(const char*,const char*)"] = defs["ImFontGlyphRangesBuilder_AddText"][1] +defs["ImFontGlyphRangesBuilder_BuildRanges"] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["args"] = "(ImFontGlyphRangesBuilder* self,ImVector_ImWchar* out_ranges)" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][2]["name"] = "out_ranges" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][2]["type"] = "ImVector_ImWchar*" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsoriginal"] = "(ImVector* out_ranges)" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["call_args"] = "(out_ranges)" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_BuildRanges" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["funcname"] = "BuildRanges" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["location"] = "imgui:2815" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_BuildRanges" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["signature"] = "(ImVector_ImWchar*)" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_BuildRanges"]["(ImVector_ImWchar*)"] = defs["ImFontGlyphRangesBuilder_BuildRanges"][1] +defs["ImFontGlyphRangesBuilder_Clear"] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1]["args"] = "(ImFontGlyphRangesBuilder* self)" +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsoriginal"] = "()" +defs["ImFontGlyphRangesBuilder_Clear"][1]["call_args"] = "()" +defs["ImFontGlyphRangesBuilder_Clear"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_Clear" +defs["ImFontGlyphRangesBuilder_Clear"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1]["funcname"] = "Clear" +defs["ImFontGlyphRangesBuilder_Clear"][1]["location"] = "imgui:2809" +defs["ImFontGlyphRangesBuilder_Clear"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_Clear" +defs["ImFontGlyphRangesBuilder_Clear"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_Clear"][1]["signature"] = "()" +defs["ImFontGlyphRangesBuilder_Clear"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_Clear"]["()"] = defs["ImFontGlyphRangesBuilder_Clear"][1] +defs["ImFontGlyphRangesBuilder_GetBit"] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["args"] = "(ImFontGlyphRangesBuilder* self,size_t n)" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][2]["name"] = "n" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][2]["type"] = "size_t" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsoriginal"] = "(size_t n)" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["call_args"] = "(n)" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_GetBit" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["funcname"] = "GetBit" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["location"] = "imgui:2810" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_GetBit" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["ret"] = "bool" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["signature"] = "(size_t)const" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_GetBit"]["(size_t)const"] = defs["ImFontGlyphRangesBuilder_GetBit"][1] +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"] = {} +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1] = {} +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["args"] = "()" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["argsoriginal"] = "()" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["call_args"] = "()" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["constructor"] = true +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["funcname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["location"] = "imgui:2808" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["signature"] = "()" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"]["()"] = defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1] +defs["ImFontGlyphRangesBuilder_SetBit"] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["args"] = "(ImFontGlyphRangesBuilder* self,size_t n)" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][2]["name"] = "n" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][2]["type"] = "size_t" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsoriginal"] = "(size_t n)" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["call_args"] = "(n)" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_SetBit" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["funcname"] = "SetBit" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["location"] = "imgui:2811" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_SetBit" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["signature"] = "(size_t)" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_SetBit"]["(size_t)"] = defs["ImFontGlyphRangesBuilder_SetBit"][1] +defs["ImFontGlyphRangesBuilder_destroy"] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1]["args"] = "(ImFontGlyphRangesBuilder* self)" +defs["ImFontGlyphRangesBuilder_destroy"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_destroy"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_destroy"][1]["call_args"] = "(self)" +defs["ImFontGlyphRangesBuilder_destroy"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_destroy" +defs["ImFontGlyphRangesBuilder_destroy"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1]["destructor"] = true +defs["ImFontGlyphRangesBuilder_destroy"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_destroy" +defs["ImFontGlyphRangesBuilder_destroy"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_destroy"][1]["signature"] = "(ImFontGlyphRangesBuilder*)" +defs["ImFontGlyphRangesBuilder_destroy"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_destroy"]["(ImFontGlyphRangesBuilder*)"] = defs["ImFontGlyphRangesBuilder_destroy"][1] +defs["ImFont_AddGlyph"] = {} +defs["ImFont_AddGlyph"][1] = {} +defs["ImFont_AddGlyph"][1]["args"] = "(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)" +defs["ImFont_AddGlyph"][1]["argsT"] = {} +defs["ImFont_AddGlyph"][1]["argsT"][1] = {} +defs["ImFont_AddGlyph"][1]["argsT"][1]["name"] = "self" +defs["ImFont_AddGlyph"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_AddGlyph"][1]["argsT"][2] = {} +defs["ImFont_AddGlyph"][1]["argsT"][2]["name"] = "src_cfg" +defs["ImFont_AddGlyph"][1]["argsT"][2]["type"] = "const ImFontConfig*" +defs["ImFont_AddGlyph"][1]["argsT"][3] = {} +defs["ImFont_AddGlyph"][1]["argsT"][3]["name"] = "c" +defs["ImFont_AddGlyph"][1]["argsT"][3]["type"] = "ImWchar" +defs["ImFont_AddGlyph"][1]["argsT"][4] = {} +defs["ImFont_AddGlyph"][1]["argsT"][4]["name"] = "x0" +defs["ImFont_AddGlyph"][1]["argsT"][4]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][5] = {} +defs["ImFont_AddGlyph"][1]["argsT"][5]["name"] = "y0" +defs["ImFont_AddGlyph"][1]["argsT"][5]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][6] = {} +defs["ImFont_AddGlyph"][1]["argsT"][6]["name"] = "x1" +defs["ImFont_AddGlyph"][1]["argsT"][6]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][7] = {} +defs["ImFont_AddGlyph"][1]["argsT"][7]["name"] = "y1" +defs["ImFont_AddGlyph"][1]["argsT"][7]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][8] = {} +defs["ImFont_AddGlyph"][1]["argsT"][8]["name"] = "u0" +defs["ImFont_AddGlyph"][1]["argsT"][8]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][9] = {} +defs["ImFont_AddGlyph"][1]["argsT"][9]["name"] = "v0" +defs["ImFont_AddGlyph"][1]["argsT"][9]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][10] = {} +defs["ImFont_AddGlyph"][1]["argsT"][10]["name"] = "u1" +defs["ImFont_AddGlyph"][1]["argsT"][10]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][11] = {} +defs["ImFont_AddGlyph"][1]["argsT"][11]["name"] = "v1" +defs["ImFont_AddGlyph"][1]["argsT"][11]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][12] = {} +defs["ImFont_AddGlyph"][1]["argsT"][12]["name"] = "advance_x" +defs["ImFont_AddGlyph"][1]["argsT"][12]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsoriginal"] = "(const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)" +defs["ImFont_AddGlyph"][1]["call_args"] = "(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,advance_x)" +defs["ImFont_AddGlyph"][1]["cimguiname"] = "ImFont_AddGlyph" +defs["ImFont_AddGlyph"][1]["defaults"] = {} +defs["ImFont_AddGlyph"][1]["funcname"] = "AddGlyph" +defs["ImFont_AddGlyph"][1]["location"] = "imgui:3004" +defs["ImFont_AddGlyph"][1]["ov_cimguiname"] = "ImFont_AddGlyph" +defs["ImFont_AddGlyph"][1]["ret"] = "void" +defs["ImFont_AddGlyph"][1]["signature"] = "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)" +defs["ImFont_AddGlyph"][1]["stname"] = "ImFont" +defs["ImFont_AddGlyph"]["(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)"] = defs["ImFont_AddGlyph"][1] +defs["ImFont_AddRemapChar"] = {} +defs["ImFont_AddRemapChar"][1] = {} +defs["ImFont_AddRemapChar"][1]["args"] = "(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst)" +defs["ImFont_AddRemapChar"][1]["argsT"] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][1] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][1]["name"] = "self" +defs["ImFont_AddRemapChar"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_AddRemapChar"][1]["argsT"][2] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][2]["name"] = "dst" +defs["ImFont_AddRemapChar"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_AddRemapChar"][1]["argsT"][3] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][3]["name"] = "src" +defs["ImFont_AddRemapChar"][1]["argsT"][3]["type"] = "ImWchar" +defs["ImFont_AddRemapChar"][1]["argsT"][4] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][4]["name"] = "overwrite_dst" +defs["ImFont_AddRemapChar"][1]["argsT"][4]["type"] = "bool" +defs["ImFont_AddRemapChar"][1]["argsoriginal"] = "(ImWchar dst,ImWchar src,bool overwrite_dst=true)" +defs["ImFont_AddRemapChar"][1]["call_args"] = "(dst,src,overwrite_dst)" +defs["ImFont_AddRemapChar"][1]["cimguiname"] = "ImFont_AddRemapChar" +defs["ImFont_AddRemapChar"][1]["defaults"] = {} +defs["ImFont_AddRemapChar"][1]["defaults"]["overwrite_dst"] = "true" +defs["ImFont_AddRemapChar"][1]["funcname"] = "AddRemapChar" +defs["ImFont_AddRemapChar"][1]["location"] = "imgui:3005" +defs["ImFont_AddRemapChar"][1]["ov_cimguiname"] = "ImFont_AddRemapChar" +defs["ImFont_AddRemapChar"][1]["ret"] = "void" +defs["ImFont_AddRemapChar"][1]["signature"] = "(ImWchar,ImWchar,bool)" +defs["ImFont_AddRemapChar"][1]["stname"] = "ImFont" +defs["ImFont_AddRemapChar"]["(ImWchar,ImWchar,bool)"] = defs["ImFont_AddRemapChar"][1] +defs["ImFont_BuildLookupTable"] = {} +defs["ImFont_BuildLookupTable"][1] = {} +defs["ImFont_BuildLookupTable"][1]["args"] = "(ImFont* self)" +defs["ImFont_BuildLookupTable"][1]["argsT"] = {} +defs["ImFont_BuildLookupTable"][1]["argsT"][1] = {} +defs["ImFont_BuildLookupTable"][1]["argsT"][1]["name"] = "self" +defs["ImFont_BuildLookupTable"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_BuildLookupTable"][1]["argsoriginal"] = "()" +defs["ImFont_BuildLookupTable"][1]["call_args"] = "()" +defs["ImFont_BuildLookupTable"][1]["cimguiname"] = "ImFont_BuildLookupTable" +defs["ImFont_BuildLookupTable"][1]["defaults"] = {} +defs["ImFont_BuildLookupTable"][1]["funcname"] = "BuildLookupTable" +defs["ImFont_BuildLookupTable"][1]["location"] = "imgui:3001" +defs["ImFont_BuildLookupTable"][1]["ov_cimguiname"] = "ImFont_BuildLookupTable" +defs["ImFont_BuildLookupTable"][1]["ret"] = "void" +defs["ImFont_BuildLookupTable"][1]["signature"] = "()" +defs["ImFont_BuildLookupTable"][1]["stname"] = "ImFont" +defs["ImFont_BuildLookupTable"]["()"] = defs["ImFont_BuildLookupTable"][1] +defs["ImFont_CalcTextSizeA"] = {} +defs["ImFont_CalcTextSizeA"][1] = {} +defs["ImFont_CalcTextSizeA"][1]["args"] = "(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)" +defs["ImFont_CalcTextSizeA"][1]["argsT"] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][1] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][1]["name"] = "pOut" +defs["ImFont_CalcTextSizeA"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImFont_CalcTextSizeA"][1]["argsT"][2] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][2]["name"] = "self" +defs["ImFont_CalcTextSizeA"][1]["argsT"][2]["type"] = "ImFont*" +defs["ImFont_CalcTextSizeA"][1]["argsT"][3] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][3]["name"] = "size" +defs["ImFont_CalcTextSizeA"][1]["argsT"][3]["type"] = "float" +defs["ImFont_CalcTextSizeA"][1]["argsT"][4] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][4]["name"] = "max_width" +defs["ImFont_CalcTextSizeA"][1]["argsT"][4]["type"] = "float" +defs["ImFont_CalcTextSizeA"][1]["argsT"][5] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][5]["name"] = "wrap_width" +defs["ImFont_CalcTextSizeA"][1]["argsT"][5]["type"] = "float" +defs["ImFont_CalcTextSizeA"][1]["argsT"][6] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][6]["name"] = "text_begin" +defs["ImFont_CalcTextSizeA"][1]["argsT"][6]["type"] = "const char*" +defs["ImFont_CalcTextSizeA"][1]["argsT"][7] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][7]["name"] = "text_end" +defs["ImFont_CalcTextSizeA"][1]["argsT"][7]["type"] = "const char*" +defs["ImFont_CalcTextSizeA"][1]["argsT"][8] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][8]["name"] = "remaining" +defs["ImFont_CalcTextSizeA"][1]["argsT"][8]["type"] = "const char**" +defs["ImFont_CalcTextSizeA"][1]["argsoriginal"] = "(float size,float max_width,float wrap_width,const char* text_begin,const char* text_end=((void*)0),const char** remaining=((void*)0))" +defs["ImFont_CalcTextSizeA"][1]["call_args"] = "(size,max_width,wrap_width,text_begin,text_end,remaining)" +defs["ImFont_CalcTextSizeA"][1]["cimguiname"] = "ImFont_CalcTextSizeA" +defs["ImFont_CalcTextSizeA"][1]["defaults"] = {} +defs["ImFont_CalcTextSizeA"][1]["defaults"]["remaining"] = "NULL" +defs["ImFont_CalcTextSizeA"][1]["defaults"]["text_end"] = "NULL" +defs["ImFont_CalcTextSizeA"][1]["funcname"] = "CalcTextSizeA" +defs["ImFont_CalcTextSizeA"][1]["location"] = "imgui:2995" +defs["ImFont_CalcTextSizeA"][1]["nonUDT"] = 1 +defs["ImFont_CalcTextSizeA"][1]["ov_cimguiname"] = "ImFont_CalcTextSizeA" +defs["ImFont_CalcTextSizeA"][1]["ret"] = "void" +defs["ImFont_CalcTextSizeA"][1]["signature"] = "(float,float,float,const char*,const char*,const char**)const" +defs["ImFont_CalcTextSizeA"][1]["stname"] = "ImFont" +defs["ImFont_CalcTextSizeA"]["(float,float,float,const char*,const char*,const char**)const"] = defs["ImFont_CalcTextSizeA"][1] +defs["ImFont_CalcWordWrapPositionA"] = {} +defs["ImFont_CalcWordWrapPositionA"][1] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["args"] = "(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width)" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][1] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][1]["name"] = "self" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][2] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][2]["name"] = "scale" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][2]["type"] = "float" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][3] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][3]["name"] = "text" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][3]["type"] = "const char*" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][4] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][4]["name"] = "text_end" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][4]["type"] = "const char*" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][5] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][5]["name"] = "wrap_width" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][5]["type"] = "float" +defs["ImFont_CalcWordWrapPositionA"][1]["argsoriginal"] = "(float scale,const char* text,const char* text_end,float wrap_width)" +defs["ImFont_CalcWordWrapPositionA"][1]["call_args"] = "(scale,text,text_end,wrap_width)" +defs["ImFont_CalcWordWrapPositionA"][1]["cimguiname"] = "ImFont_CalcWordWrapPositionA" +defs["ImFont_CalcWordWrapPositionA"][1]["defaults"] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["funcname"] = "CalcWordWrapPositionA" +defs["ImFont_CalcWordWrapPositionA"][1]["location"] = "imgui:2996" +defs["ImFont_CalcWordWrapPositionA"][1]["ov_cimguiname"] = "ImFont_CalcWordWrapPositionA" +defs["ImFont_CalcWordWrapPositionA"][1]["ret"] = "const char*" +defs["ImFont_CalcWordWrapPositionA"][1]["signature"] = "(float,const char*,const char*,float)const" +defs["ImFont_CalcWordWrapPositionA"][1]["stname"] = "ImFont" +defs["ImFont_CalcWordWrapPositionA"]["(float,const char*,const char*,float)const"] = defs["ImFont_CalcWordWrapPositionA"][1] +defs["ImFont_ClearOutputData"] = {} +defs["ImFont_ClearOutputData"][1] = {} +defs["ImFont_ClearOutputData"][1]["args"] = "(ImFont* self)" +defs["ImFont_ClearOutputData"][1]["argsT"] = {} +defs["ImFont_ClearOutputData"][1]["argsT"][1] = {} +defs["ImFont_ClearOutputData"][1]["argsT"][1]["name"] = "self" +defs["ImFont_ClearOutputData"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_ClearOutputData"][1]["argsoriginal"] = "()" +defs["ImFont_ClearOutputData"][1]["call_args"] = "()" +defs["ImFont_ClearOutputData"][1]["cimguiname"] = "ImFont_ClearOutputData" +defs["ImFont_ClearOutputData"][1]["defaults"] = {} +defs["ImFont_ClearOutputData"][1]["funcname"] = "ClearOutputData" +defs["ImFont_ClearOutputData"][1]["location"] = "imgui:3002" +defs["ImFont_ClearOutputData"][1]["ov_cimguiname"] = "ImFont_ClearOutputData" +defs["ImFont_ClearOutputData"][1]["ret"] = "void" +defs["ImFont_ClearOutputData"][1]["signature"] = "()" +defs["ImFont_ClearOutputData"][1]["stname"] = "ImFont" +defs["ImFont_ClearOutputData"]["()"] = defs["ImFont_ClearOutputData"][1] +defs["ImFont_FindGlyph"] = {} +defs["ImFont_FindGlyph"][1] = {} +defs["ImFont_FindGlyph"][1]["args"] = "(ImFont* self,ImWchar c)" +defs["ImFont_FindGlyph"][1]["argsT"] = {} +defs["ImFont_FindGlyph"][1]["argsT"][1] = {} +defs["ImFont_FindGlyph"][1]["argsT"][1]["name"] = "self" +defs["ImFont_FindGlyph"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_FindGlyph"][1]["argsT"][2] = {} +defs["ImFont_FindGlyph"][1]["argsT"][2]["name"] = "c" +defs["ImFont_FindGlyph"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_FindGlyph"][1]["argsoriginal"] = "(ImWchar c)" +defs["ImFont_FindGlyph"][1]["call_args"] = "(c)" +defs["ImFont_FindGlyph"][1]["cimguiname"] = "ImFont_FindGlyph" +defs["ImFont_FindGlyph"][1]["defaults"] = {} +defs["ImFont_FindGlyph"][1]["funcname"] = "FindGlyph" +defs["ImFont_FindGlyph"][1]["location"] = "imgui:2987" +defs["ImFont_FindGlyph"][1]["ov_cimguiname"] = "ImFont_FindGlyph" +defs["ImFont_FindGlyph"][1]["ret"] = "const ImFontGlyph*" +defs["ImFont_FindGlyph"][1]["signature"] = "(ImWchar)const" +defs["ImFont_FindGlyph"][1]["stname"] = "ImFont" +defs["ImFont_FindGlyph"]["(ImWchar)const"] = defs["ImFont_FindGlyph"][1] +defs["ImFont_FindGlyphNoFallback"] = {} +defs["ImFont_FindGlyphNoFallback"][1] = {} +defs["ImFont_FindGlyphNoFallback"][1]["args"] = "(ImFont* self,ImWchar c)" +defs["ImFont_FindGlyphNoFallback"][1]["argsT"] = {} +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][1] = {} +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][1]["name"] = "self" +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][2] = {} +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][2]["name"] = "c" +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_FindGlyphNoFallback"][1]["argsoriginal"] = "(ImWchar c)" +defs["ImFont_FindGlyphNoFallback"][1]["call_args"] = "(c)" +defs["ImFont_FindGlyphNoFallback"][1]["cimguiname"] = "ImFont_FindGlyphNoFallback" +defs["ImFont_FindGlyphNoFallback"][1]["defaults"] = {} +defs["ImFont_FindGlyphNoFallback"][1]["funcname"] = "FindGlyphNoFallback" +defs["ImFont_FindGlyphNoFallback"][1]["location"] = "imgui:2988" +defs["ImFont_FindGlyphNoFallback"][1]["ov_cimguiname"] = "ImFont_FindGlyphNoFallback" +defs["ImFont_FindGlyphNoFallback"][1]["ret"] = "const ImFontGlyph*" +defs["ImFont_FindGlyphNoFallback"][1]["signature"] = "(ImWchar)const" +defs["ImFont_FindGlyphNoFallback"][1]["stname"] = "ImFont" +defs["ImFont_FindGlyphNoFallback"]["(ImWchar)const"] = defs["ImFont_FindGlyphNoFallback"][1] +defs["ImFont_GetCharAdvance"] = {} +defs["ImFont_GetCharAdvance"][1] = {} +defs["ImFont_GetCharAdvance"][1]["args"] = "(ImFont* self,ImWchar c)" +defs["ImFont_GetCharAdvance"][1]["argsT"] = {} +defs["ImFont_GetCharAdvance"][1]["argsT"][1] = {} +defs["ImFont_GetCharAdvance"][1]["argsT"][1]["name"] = "self" +defs["ImFont_GetCharAdvance"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_GetCharAdvance"][1]["argsT"][2] = {} +defs["ImFont_GetCharAdvance"][1]["argsT"][2]["name"] = "c" +defs["ImFont_GetCharAdvance"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_GetCharAdvance"][1]["argsoriginal"] = "(ImWchar c)" +defs["ImFont_GetCharAdvance"][1]["call_args"] = "(c)" +defs["ImFont_GetCharAdvance"][1]["cimguiname"] = "ImFont_GetCharAdvance" +defs["ImFont_GetCharAdvance"][1]["defaults"] = {} +defs["ImFont_GetCharAdvance"][1]["funcname"] = "GetCharAdvance" +defs["ImFont_GetCharAdvance"][1]["location"] = "imgui:2989" +defs["ImFont_GetCharAdvance"][1]["ov_cimguiname"] = "ImFont_GetCharAdvance" +defs["ImFont_GetCharAdvance"][1]["ret"] = "float" +defs["ImFont_GetCharAdvance"][1]["signature"] = "(ImWchar)const" +defs["ImFont_GetCharAdvance"][1]["stname"] = "ImFont" +defs["ImFont_GetCharAdvance"]["(ImWchar)const"] = defs["ImFont_GetCharAdvance"][1] +defs["ImFont_GetDebugName"] = {} +defs["ImFont_GetDebugName"][1] = {} +defs["ImFont_GetDebugName"][1]["args"] = "(ImFont* self)" +defs["ImFont_GetDebugName"][1]["argsT"] = {} +defs["ImFont_GetDebugName"][1]["argsT"][1] = {} +defs["ImFont_GetDebugName"][1]["argsT"][1]["name"] = "self" +defs["ImFont_GetDebugName"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_GetDebugName"][1]["argsoriginal"] = "()" +defs["ImFont_GetDebugName"][1]["call_args"] = "()" +defs["ImFont_GetDebugName"][1]["cimguiname"] = "ImFont_GetDebugName" +defs["ImFont_GetDebugName"][1]["defaults"] = {} +defs["ImFont_GetDebugName"][1]["funcname"] = "GetDebugName" +defs["ImFont_GetDebugName"][1]["location"] = "imgui:2991" +defs["ImFont_GetDebugName"][1]["ov_cimguiname"] = "ImFont_GetDebugName" +defs["ImFont_GetDebugName"][1]["ret"] = "const char*" +defs["ImFont_GetDebugName"][1]["signature"] = "()const" +defs["ImFont_GetDebugName"][1]["stname"] = "ImFont" +defs["ImFont_GetDebugName"]["()const"] = defs["ImFont_GetDebugName"][1] +defs["ImFont_GrowIndex"] = {} +defs["ImFont_GrowIndex"][1] = {} +defs["ImFont_GrowIndex"][1]["args"] = "(ImFont* self,int new_size)" +defs["ImFont_GrowIndex"][1]["argsT"] = {} +defs["ImFont_GrowIndex"][1]["argsT"][1] = {} +defs["ImFont_GrowIndex"][1]["argsT"][1]["name"] = "self" +defs["ImFont_GrowIndex"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_GrowIndex"][1]["argsT"][2] = {} +defs["ImFont_GrowIndex"][1]["argsT"][2]["name"] = "new_size" +defs["ImFont_GrowIndex"][1]["argsT"][2]["type"] = "int" +defs["ImFont_GrowIndex"][1]["argsoriginal"] = "(int new_size)" +defs["ImFont_GrowIndex"][1]["call_args"] = "(new_size)" +defs["ImFont_GrowIndex"][1]["cimguiname"] = "ImFont_GrowIndex" +defs["ImFont_GrowIndex"][1]["defaults"] = {} +defs["ImFont_GrowIndex"][1]["funcname"] = "GrowIndex" +defs["ImFont_GrowIndex"][1]["location"] = "imgui:3003" +defs["ImFont_GrowIndex"][1]["ov_cimguiname"] = "ImFont_GrowIndex" +defs["ImFont_GrowIndex"][1]["ret"] = "void" +defs["ImFont_GrowIndex"][1]["signature"] = "(int)" +defs["ImFont_GrowIndex"][1]["stname"] = "ImFont" +defs["ImFont_GrowIndex"]["(int)"] = defs["ImFont_GrowIndex"][1] +defs["ImFont_ImFont"] = {} +defs["ImFont_ImFont"][1] = {} +defs["ImFont_ImFont"][1]["args"] = "()" +defs["ImFont_ImFont"][1]["argsT"] = {} +defs["ImFont_ImFont"][1]["argsoriginal"] = "()" +defs["ImFont_ImFont"][1]["call_args"] = "()" +defs["ImFont_ImFont"][1]["cimguiname"] = "ImFont_ImFont" +defs["ImFont_ImFont"][1]["constructor"] = true +defs["ImFont_ImFont"][1]["defaults"] = {} +defs["ImFont_ImFont"][1]["funcname"] = "ImFont" +defs["ImFont_ImFont"][1]["location"] = "imgui:2985" +defs["ImFont_ImFont"][1]["ov_cimguiname"] = "ImFont_ImFont" +defs["ImFont_ImFont"][1]["signature"] = "()" +defs["ImFont_ImFont"][1]["stname"] = "ImFont" +defs["ImFont_ImFont"]["()"] = defs["ImFont_ImFont"][1] +defs["ImFont_IsGlyphRangeUnused"] = {} +defs["ImFont_IsGlyphRangeUnused"][1] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["args"] = "(ImFont* self,unsigned int c_begin,unsigned int c_last)" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][1] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][1]["name"] = "self" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][2] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][2]["name"] = "c_begin" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][2]["type"] = "unsigned int" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][3] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][3]["name"] = "c_last" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][3]["type"] = "unsigned int" +defs["ImFont_IsGlyphRangeUnused"][1]["argsoriginal"] = "(unsigned int c_begin,unsigned int c_last)" +defs["ImFont_IsGlyphRangeUnused"][1]["call_args"] = "(c_begin,c_last)" +defs["ImFont_IsGlyphRangeUnused"][1]["cimguiname"] = "ImFont_IsGlyphRangeUnused" +defs["ImFont_IsGlyphRangeUnused"][1]["defaults"] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["funcname"] = "IsGlyphRangeUnused" +defs["ImFont_IsGlyphRangeUnused"][1]["location"] = "imgui:3007" +defs["ImFont_IsGlyphRangeUnused"][1]["ov_cimguiname"] = "ImFont_IsGlyphRangeUnused" +defs["ImFont_IsGlyphRangeUnused"][1]["ret"] = "bool" +defs["ImFont_IsGlyphRangeUnused"][1]["signature"] = "(unsigned int,unsigned int)" +defs["ImFont_IsGlyphRangeUnused"][1]["stname"] = "ImFont" +defs["ImFont_IsGlyphRangeUnused"]["(unsigned int,unsigned int)"] = defs["ImFont_IsGlyphRangeUnused"][1] +defs["ImFont_IsLoaded"] = {} +defs["ImFont_IsLoaded"][1] = {} +defs["ImFont_IsLoaded"][1]["args"] = "(ImFont* self)" +defs["ImFont_IsLoaded"][1]["argsT"] = {} +defs["ImFont_IsLoaded"][1]["argsT"][1] = {} +defs["ImFont_IsLoaded"][1]["argsT"][1]["name"] = "self" +defs["ImFont_IsLoaded"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_IsLoaded"][1]["argsoriginal"] = "()" +defs["ImFont_IsLoaded"][1]["call_args"] = "()" +defs["ImFont_IsLoaded"][1]["cimguiname"] = "ImFont_IsLoaded" +defs["ImFont_IsLoaded"][1]["defaults"] = {} +defs["ImFont_IsLoaded"][1]["funcname"] = "IsLoaded" +defs["ImFont_IsLoaded"][1]["location"] = "imgui:2990" +defs["ImFont_IsLoaded"][1]["ov_cimguiname"] = "ImFont_IsLoaded" +defs["ImFont_IsLoaded"][1]["ret"] = "bool" +defs["ImFont_IsLoaded"][1]["signature"] = "()const" +defs["ImFont_IsLoaded"][1]["stname"] = "ImFont" +defs["ImFont_IsLoaded"]["()const"] = defs["ImFont_IsLoaded"][1] +defs["ImFont_RenderChar"] = {} +defs["ImFont_RenderChar"][1] = {} +defs["ImFont_RenderChar"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)" +defs["ImFont_RenderChar"][1]["argsT"] = {} +defs["ImFont_RenderChar"][1]["argsT"][1] = {} +defs["ImFont_RenderChar"][1]["argsT"][1]["name"] = "self" +defs["ImFont_RenderChar"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_RenderChar"][1]["argsT"][2] = {} +defs["ImFont_RenderChar"][1]["argsT"][2]["name"] = "draw_list" +defs["ImFont_RenderChar"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImFont_RenderChar"][1]["argsT"][3] = {} +defs["ImFont_RenderChar"][1]["argsT"][3]["name"] = "size" +defs["ImFont_RenderChar"][1]["argsT"][3]["type"] = "float" +defs["ImFont_RenderChar"][1]["argsT"][4] = {} +defs["ImFont_RenderChar"][1]["argsT"][4]["name"] = "pos" +defs["ImFont_RenderChar"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImFont_RenderChar"][1]["argsT"][5] = {} +defs["ImFont_RenderChar"][1]["argsT"][5]["name"] = "col" +defs["ImFont_RenderChar"][1]["argsT"][5]["type"] = "ImU32" +defs["ImFont_RenderChar"][1]["argsT"][6] = {} +defs["ImFont_RenderChar"][1]["argsT"][6]["name"] = "c" +defs["ImFont_RenderChar"][1]["argsT"][6]["type"] = "ImWchar" +defs["ImFont_RenderChar"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)" +defs["ImFont_RenderChar"][1]["call_args"] = "(draw_list,size,pos,col,c)" +defs["ImFont_RenderChar"][1]["cimguiname"] = "ImFont_RenderChar" +defs["ImFont_RenderChar"][1]["defaults"] = {} +defs["ImFont_RenderChar"][1]["funcname"] = "RenderChar" +defs["ImFont_RenderChar"][1]["location"] = "imgui:2997" +defs["ImFont_RenderChar"][1]["ov_cimguiname"] = "ImFont_RenderChar" +defs["ImFont_RenderChar"][1]["ret"] = "void" +defs["ImFont_RenderChar"][1]["signature"] = "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const" +defs["ImFont_RenderChar"][1]["stname"] = "ImFont" +defs["ImFont_RenderChar"]["(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const"] = defs["ImFont_RenderChar"][1] +defs["ImFont_RenderText"] = {} +defs["ImFont_RenderText"][1] = {} +defs["ImFont_RenderText"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)" +defs["ImFont_RenderText"][1]["argsT"] = {} +defs["ImFont_RenderText"][1]["argsT"][1] = {} +defs["ImFont_RenderText"][1]["argsT"][1]["name"] = "self" +defs["ImFont_RenderText"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_RenderText"][1]["argsT"][2] = {} +defs["ImFont_RenderText"][1]["argsT"][2]["name"] = "draw_list" +defs["ImFont_RenderText"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImFont_RenderText"][1]["argsT"][3] = {} +defs["ImFont_RenderText"][1]["argsT"][3]["name"] = "size" +defs["ImFont_RenderText"][1]["argsT"][3]["type"] = "float" +defs["ImFont_RenderText"][1]["argsT"][4] = {} +defs["ImFont_RenderText"][1]["argsT"][4]["name"] = "pos" +defs["ImFont_RenderText"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImFont_RenderText"][1]["argsT"][5] = {} +defs["ImFont_RenderText"][1]["argsT"][5]["name"] = "col" +defs["ImFont_RenderText"][1]["argsT"][5]["type"] = "ImU32" +defs["ImFont_RenderText"][1]["argsT"][6] = {} +defs["ImFont_RenderText"][1]["argsT"][6]["name"] = "clip_rect" +defs["ImFont_RenderText"][1]["argsT"][6]["type"] = "const ImVec4" +defs["ImFont_RenderText"][1]["argsT"][7] = {} +defs["ImFont_RenderText"][1]["argsT"][7]["name"] = "text_begin" +defs["ImFont_RenderText"][1]["argsT"][7]["type"] = "const char*" +defs["ImFont_RenderText"][1]["argsT"][8] = {} +defs["ImFont_RenderText"][1]["argsT"][8]["name"] = "text_end" +defs["ImFont_RenderText"][1]["argsT"][8]["type"] = "const char*" +defs["ImFont_RenderText"][1]["argsT"][9] = {} +defs["ImFont_RenderText"][1]["argsT"][9]["name"] = "wrap_width" +defs["ImFont_RenderText"][1]["argsT"][9]["type"] = "float" +defs["ImFont_RenderText"][1]["argsT"][10] = {} +defs["ImFont_RenderText"][1]["argsT"][10]["name"] = "cpu_fine_clip" +defs["ImFont_RenderText"][1]["argsT"][10]["type"] = "bool" +defs["ImFont_RenderText"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)" +defs["ImFont_RenderText"][1]["call_args"] = "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)" +defs["ImFont_RenderText"][1]["cimguiname"] = "ImFont_RenderText" +defs["ImFont_RenderText"][1]["defaults"] = {} +defs["ImFont_RenderText"][1]["defaults"]["cpu_fine_clip"] = "false" +defs["ImFont_RenderText"][1]["defaults"]["wrap_width"] = "0.0f" +defs["ImFont_RenderText"][1]["funcname"] = "RenderText" +defs["ImFont_RenderText"][1]["location"] = "imgui:2998" +defs["ImFont_RenderText"][1]["ov_cimguiname"] = "ImFont_RenderText" +defs["ImFont_RenderText"][1]["ret"] = "void" +defs["ImFont_RenderText"][1]["signature"] = "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const" +defs["ImFont_RenderText"][1]["stname"] = "ImFont" +defs["ImFont_RenderText"]["(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const"] = defs["ImFont_RenderText"][1] +defs["ImFont_SetGlyphVisible"] = {} +defs["ImFont_SetGlyphVisible"][1] = {} +defs["ImFont_SetGlyphVisible"][1]["args"] = "(ImFont* self,ImWchar c,bool visible)" +defs["ImFont_SetGlyphVisible"][1]["argsT"] = {} +defs["ImFont_SetGlyphVisible"][1]["argsT"][1] = {} +defs["ImFont_SetGlyphVisible"][1]["argsT"][1]["name"] = "self" +defs["ImFont_SetGlyphVisible"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_SetGlyphVisible"][1]["argsT"][2] = {} +defs["ImFont_SetGlyphVisible"][1]["argsT"][2]["name"] = "c" +defs["ImFont_SetGlyphVisible"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_SetGlyphVisible"][1]["argsT"][3] = {} +defs["ImFont_SetGlyphVisible"][1]["argsT"][3]["name"] = "visible" +defs["ImFont_SetGlyphVisible"][1]["argsT"][3]["type"] = "bool" +defs["ImFont_SetGlyphVisible"][1]["argsoriginal"] = "(ImWchar c,bool visible)" +defs["ImFont_SetGlyphVisible"][1]["call_args"] = "(c,visible)" +defs["ImFont_SetGlyphVisible"][1]["cimguiname"] = "ImFont_SetGlyphVisible" +defs["ImFont_SetGlyphVisible"][1]["defaults"] = {} +defs["ImFont_SetGlyphVisible"][1]["funcname"] = "SetGlyphVisible" +defs["ImFont_SetGlyphVisible"][1]["location"] = "imgui:3006" +defs["ImFont_SetGlyphVisible"][1]["ov_cimguiname"] = "ImFont_SetGlyphVisible" +defs["ImFont_SetGlyphVisible"][1]["ret"] = "void" +defs["ImFont_SetGlyphVisible"][1]["signature"] = "(ImWchar,bool)" +defs["ImFont_SetGlyphVisible"][1]["stname"] = "ImFont" +defs["ImFont_SetGlyphVisible"]["(ImWchar,bool)"] = defs["ImFont_SetGlyphVisible"][1] +defs["ImFont_destroy"] = {} +defs["ImFont_destroy"][1] = {} +defs["ImFont_destroy"][1]["args"] = "(ImFont* self)" +defs["ImFont_destroy"][1]["argsT"] = {} +defs["ImFont_destroy"][1]["argsT"][1] = {} +defs["ImFont_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFont_destroy"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_destroy"][1]["call_args"] = "(self)" +defs["ImFont_destroy"][1]["cimguiname"] = "ImFont_destroy" +defs["ImFont_destroy"][1]["defaults"] = {} +defs["ImFont_destroy"][1]["destructor"] = true +defs["ImFont_destroy"][1]["location"] = "imgui:2986" +defs["ImFont_destroy"][1]["ov_cimguiname"] = "ImFont_destroy" +defs["ImFont_destroy"][1]["realdestructor"] = true +defs["ImFont_destroy"][1]["ret"] = "void" +defs["ImFont_destroy"][1]["signature"] = "(ImFont*)" +defs["ImFont_destroy"][1]["stname"] = "ImFont" +defs["ImFont_destroy"]["(ImFont*)"] = defs["ImFont_destroy"][1] +defs["ImGuiFreeType_GetBuilderForFreeType"] = {} +defs["ImGuiFreeType_GetBuilderForFreeType"][1] = {} +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["args"] = "()" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["argsT"] = {} +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["argsoriginal"] = "()" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["call_args"] = "()" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["cimguiname"] = "ImGuiFreeType_GetBuilderForFreeType" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["defaults"] = {} +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["funcname"] = "GetBuilderForFreeType" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["location"] = "imgui_freetype:39" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["namespace"] = "ImGuiFreeType" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["ov_cimguiname"] = "ImGuiFreeType_GetBuilderForFreeType" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["ret"] = "const ImFontBuilderIO*" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["signature"] = "()" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["stname"] = "" +defs["ImGuiFreeType_GetBuilderForFreeType"]["()"] = defs["ImGuiFreeType_GetBuilderForFreeType"][1] +defs["ImGuiFreeType_SetAllocatorFunctions"] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["args"] = "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1]["name"] = "alloc_func" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1]["ret"] = "void*" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1]["signature"] = "(size_t sz,void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1]["type"] = "void*(*)(size_t sz,void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2]["name"] = "free_func" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2]["ret"] = "void" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2]["signature"] = "(void* ptr,void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2]["type"] = "void(*)(void* ptr,void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][3] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][3]["name"] = "user_data" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][3]["type"] = "void*" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsoriginal"] = "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data=((void*)0))" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["call_args"] = "(alloc_func,free_func,user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["cimguiname"] = "ImGuiFreeType_SetAllocatorFunctions" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["defaults"] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["defaults"]["user_data"] = "NULL" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["funcname"] = "SetAllocatorFunctions" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["location"] = "imgui_freetype:43" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["namespace"] = "ImGuiFreeType" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["ov_cimguiname"] = "ImGuiFreeType_SetAllocatorFunctions" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["ret"] = "void" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["signature"] = "(void*(*)(size_t,void*),void(*)(void*,void*),void*)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["stname"] = "" +defs["ImGuiFreeType_SetAllocatorFunctions"]["(void*(*)(size_t,void*),void(*)(void*,void*),void*)"] = defs["ImGuiFreeType_SetAllocatorFunctions"][1] +defs["ImGuiIO_AddFocusEvent"] = {} +defs["ImGuiIO_AddFocusEvent"][1] = {} +defs["ImGuiIO_AddFocusEvent"][1]["args"] = "(ImGuiIO* self,bool focused)" +defs["ImGuiIO_AddFocusEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][2]["name"] = "focused" +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][2]["type"] = "bool" +defs["ImGuiIO_AddFocusEvent"][1]["argsoriginal"] = "(bool focused)" +defs["ImGuiIO_AddFocusEvent"][1]["call_args"] = "(focused)" +defs["ImGuiIO_AddFocusEvent"][1]["cimguiname"] = "ImGuiIO_AddFocusEvent" +defs["ImGuiIO_AddFocusEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddFocusEvent"][1]["funcname"] = "AddFocusEvent" +defs["ImGuiIO_AddFocusEvent"][1]["location"] = "imgui:2063" +defs["ImGuiIO_AddFocusEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddFocusEvent" +defs["ImGuiIO_AddFocusEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddFocusEvent"][1]["signature"] = "(bool)" +defs["ImGuiIO_AddFocusEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddFocusEvent"]["(bool)"] = defs["ImGuiIO_AddFocusEvent"][1] +defs["ImGuiIO_AddInputCharacter"] = {} +defs["ImGuiIO_AddInputCharacter"][1] = {} +defs["ImGuiIO_AddInputCharacter"][1]["args"] = "(ImGuiIO* self,unsigned int c)" +defs["ImGuiIO_AddInputCharacter"][1]["argsT"] = {} +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][1] = {} +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][2] = {} +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][2]["name"] = "c" +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][2]["type"] = "unsigned int" +defs["ImGuiIO_AddInputCharacter"][1]["argsoriginal"] = "(unsigned int c)" +defs["ImGuiIO_AddInputCharacter"][1]["call_args"] = "(c)" +defs["ImGuiIO_AddInputCharacter"][1]["cimguiname"] = "ImGuiIO_AddInputCharacter" +defs["ImGuiIO_AddInputCharacter"][1]["defaults"] = {} +defs["ImGuiIO_AddInputCharacter"][1]["funcname"] = "AddInputCharacter" +defs["ImGuiIO_AddInputCharacter"][1]["location"] = "imgui:2064" +defs["ImGuiIO_AddInputCharacter"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharacter" +defs["ImGuiIO_AddInputCharacter"][1]["ret"] = "void" +defs["ImGuiIO_AddInputCharacter"][1]["signature"] = "(unsigned int)" +defs["ImGuiIO_AddInputCharacter"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddInputCharacter"]["(unsigned int)"] = defs["ImGuiIO_AddInputCharacter"][1] +defs["ImGuiIO_AddInputCharacterUTF16"] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["args"] = "(ImGuiIO* self,ImWchar16 c)" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][1] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][2] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][2]["name"] = "c" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][2]["type"] = "ImWchar16" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsoriginal"] = "(ImWchar16 c)" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["call_args"] = "(c)" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["cimguiname"] = "ImGuiIO_AddInputCharacterUTF16" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["defaults"] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["funcname"] = "AddInputCharacterUTF16" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["location"] = "imgui:2065" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharacterUTF16" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["ret"] = "void" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["signature"] = "(ImWchar16)" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddInputCharacterUTF16"]["(ImWchar16)"] = defs["ImGuiIO_AddInputCharacterUTF16"][1] +defs["ImGuiIO_AddInputCharactersUTF8"] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["args"] = "(ImGuiIO* self,const char* str)" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][1] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][2] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][2]["name"] = "str" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsoriginal"] = "(const char* str)" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["call_args"] = "(str)" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["cimguiname"] = "ImGuiIO_AddInputCharactersUTF8" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["defaults"] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["funcname"] = "AddInputCharactersUTF8" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["location"] = "imgui:2066" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharactersUTF8" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["ret"] = "void" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["signature"] = "(const char*)" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddInputCharactersUTF8"]["(const char*)"] = defs["ImGuiIO_AddInputCharactersUTF8"][1] +defs["ImGuiIO_AddKeyAnalogEvent"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,bool down,float v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4]["name"] = "v" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4]["type"] = "float" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsoriginal"] = "(ImGuiKey key,bool down,float v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["call_args"] = "(key,down,v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["cimguiname"] = "ImGuiIO_AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["funcname"] = "AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["location"] = "imgui:2058" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["signature"] = "(ImGuiKey,bool,float)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddKeyAnalogEvent"]["(ImGuiKey,bool,float)"] = defs["ImGuiIO_AddKeyAnalogEvent"][1] +defs["ImGuiIO_AddKeyEvent"] = {} +defs["ImGuiIO_AddKeyEvent"][1] = {} +defs["ImGuiIO_AddKeyEvent"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,bool down)" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddKeyEvent"][1]["argsoriginal"] = "(ImGuiKey key,bool down)" +defs["ImGuiIO_AddKeyEvent"][1]["call_args"] = "(key,down)" +defs["ImGuiIO_AddKeyEvent"][1]["cimguiname"] = "ImGuiIO_AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddKeyEvent"][1]["funcname"] = "AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["location"] = "imgui:2057" +defs["ImGuiIO_AddKeyEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddKeyEvent"][1]["signature"] = "(ImGuiKey,bool)" +defs["ImGuiIO_AddKeyEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddKeyEvent"]["(ImGuiKey,bool)"] = defs["ImGuiIO_AddKeyEvent"][1] +defs["ImGuiIO_AddMouseButtonEvent"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["args"] = "(ImGuiIO* self,int button,bool down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2]["name"] = "button" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2]["type"] = "int" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsoriginal"] = "(int button,bool down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["call_args"] = "(button,down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["funcname"] = "AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["location"] = "imgui:2060" +defs["ImGuiIO_AddMouseButtonEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseButtonEvent"][1]["signature"] = "(int,bool)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseButtonEvent"]["(int,bool)"] = defs["ImGuiIO_AddMouseButtonEvent"][1] +defs["ImGuiIO_AddMousePosEvent"] = {} +defs["ImGuiIO_AddMousePosEvent"][1] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["args"] = "(ImGuiIO* self,float x,float y)" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2]["name"] = "x" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2]["type"] = "float" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3]["name"] = "y" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3]["type"] = "float" +defs["ImGuiIO_AddMousePosEvent"][1]["argsoriginal"] = "(float x,float y)" +defs["ImGuiIO_AddMousePosEvent"][1]["call_args"] = "(x,y)" +defs["ImGuiIO_AddMousePosEvent"][1]["cimguiname"] = "ImGuiIO_AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["funcname"] = "AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["location"] = "imgui:2059" +defs["ImGuiIO_AddMousePosEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMousePosEvent"][1]["signature"] = "(float,float)" +defs["ImGuiIO_AddMousePosEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMousePosEvent"]["(float,float)"] = defs["ImGuiIO_AddMousePosEvent"][1] +defs["ImGuiIO_AddMouseViewportEvent"] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["args"] = "(ImGuiIO* self,ImGuiID id)" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][2]["name"] = "id" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiIO_AddMouseViewportEvent"][1]["argsoriginal"] = "(ImGuiID id)" +defs["ImGuiIO_AddMouseViewportEvent"][1]["call_args"] = "(id)" +defs["ImGuiIO_AddMouseViewportEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseViewportEvent" +defs["ImGuiIO_AddMouseViewportEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseViewportEvent"][1]["funcname"] = "AddMouseViewportEvent" +defs["ImGuiIO_AddMouseViewportEvent"][1]["location"] = "imgui:2062" +defs["ImGuiIO_AddMouseViewportEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseViewportEvent" +defs["ImGuiIO_AddMouseViewportEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseViewportEvent"][1]["signature"] = "(ImGuiID)" +defs["ImGuiIO_AddMouseViewportEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseViewportEvent"]["(ImGuiID)"] = defs["ImGuiIO_AddMouseViewportEvent"][1] +defs["ImGuiIO_AddMouseWheelEvent"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["args"] = "(ImGuiIO* self,float wh_x,float wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2]["name"] = "wh_x" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2]["type"] = "float" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3]["name"] = "wh_y" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3]["type"] = "float" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsoriginal"] = "(float wh_x,float wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["call_args"] = "(wh_x,wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["funcname"] = "AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["location"] = "imgui:2061" +defs["ImGuiIO_AddMouseWheelEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseWheelEvent"][1]["signature"] = "(float,float)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseWheelEvent"]["(float,float)"] = defs["ImGuiIO_AddMouseWheelEvent"][1] +defs["ImGuiIO_ClearInputCharacters"] = {} +defs["ImGuiIO_ClearInputCharacters"][1] = {} +defs["ImGuiIO_ClearInputCharacters"][1]["args"] = "(ImGuiIO* self)" +defs["ImGuiIO_ClearInputCharacters"][1]["argsT"] = {} +defs["ImGuiIO_ClearInputCharacters"][1]["argsT"][1] = {} +defs["ImGuiIO_ClearInputCharacters"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_ClearInputCharacters"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_ClearInputCharacters"][1]["argsoriginal"] = "()" +defs["ImGuiIO_ClearInputCharacters"][1]["call_args"] = "()" +defs["ImGuiIO_ClearInputCharacters"][1]["cimguiname"] = "ImGuiIO_ClearInputCharacters" +defs["ImGuiIO_ClearInputCharacters"][1]["defaults"] = {} +defs["ImGuiIO_ClearInputCharacters"][1]["funcname"] = "ClearInputCharacters" +defs["ImGuiIO_ClearInputCharacters"][1]["location"] = "imgui:2070" +defs["ImGuiIO_ClearInputCharacters"][1]["ov_cimguiname"] = "ImGuiIO_ClearInputCharacters" +defs["ImGuiIO_ClearInputCharacters"][1]["ret"] = "void" +defs["ImGuiIO_ClearInputCharacters"][1]["signature"] = "()" +defs["ImGuiIO_ClearInputCharacters"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_ClearInputCharacters"]["()"] = defs["ImGuiIO_ClearInputCharacters"][1] +defs["ImGuiIO_ClearInputKeys"] = {} +defs["ImGuiIO_ClearInputKeys"][1] = {} +defs["ImGuiIO_ClearInputKeys"][1]["args"] = "(ImGuiIO* self)" +defs["ImGuiIO_ClearInputKeys"][1]["argsT"] = {} +defs["ImGuiIO_ClearInputKeys"][1]["argsT"][1] = {} +defs["ImGuiIO_ClearInputKeys"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_ClearInputKeys"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_ClearInputKeys"][1]["argsoriginal"] = "()" +defs["ImGuiIO_ClearInputKeys"][1]["call_args"] = "()" +defs["ImGuiIO_ClearInputKeys"][1]["cimguiname"] = "ImGuiIO_ClearInputKeys" +defs["ImGuiIO_ClearInputKeys"][1]["defaults"] = {} +defs["ImGuiIO_ClearInputKeys"][1]["funcname"] = "ClearInputKeys" +defs["ImGuiIO_ClearInputKeys"][1]["location"] = "imgui:2071" +defs["ImGuiIO_ClearInputKeys"][1]["ov_cimguiname"] = "ImGuiIO_ClearInputKeys" +defs["ImGuiIO_ClearInputKeys"][1]["ret"] = "void" +defs["ImGuiIO_ClearInputKeys"][1]["signature"] = "()" +defs["ImGuiIO_ClearInputKeys"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_ClearInputKeys"]["()"] = defs["ImGuiIO_ClearInputKeys"][1] +defs["ImGuiIO_ImGuiIO"] = {} +defs["ImGuiIO_ImGuiIO"][1] = {} +defs["ImGuiIO_ImGuiIO"][1]["args"] = "()" +defs["ImGuiIO_ImGuiIO"][1]["argsT"] = {} +defs["ImGuiIO_ImGuiIO"][1]["argsoriginal"] = "()" +defs["ImGuiIO_ImGuiIO"][1]["call_args"] = "()" +defs["ImGuiIO_ImGuiIO"][1]["cimguiname"] = "ImGuiIO_ImGuiIO" +defs["ImGuiIO_ImGuiIO"][1]["constructor"] = true +defs["ImGuiIO_ImGuiIO"][1]["defaults"] = {} +defs["ImGuiIO_ImGuiIO"][1]["funcname"] = "ImGuiIO" +defs["ImGuiIO_ImGuiIO"][1]["location"] = "imgui:2146" +defs["ImGuiIO_ImGuiIO"][1]["ov_cimguiname"] = "ImGuiIO_ImGuiIO" +defs["ImGuiIO_ImGuiIO"][1]["signature"] = "()" +defs["ImGuiIO_ImGuiIO"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_ImGuiIO"]["()"] = defs["ImGuiIO_ImGuiIO"][1] +defs["ImGuiIO_SetAppAcceptingEvents"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["args"] = "(ImGuiIO* self,bool accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2]["name"] = "accepting_events" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2]["type"] = "bool" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsoriginal"] = "(bool accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["call_args"] = "(accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["cimguiname"] = "ImGuiIO_SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["defaults"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["funcname"] = "SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["location"] = "imgui:2069" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["ov_cimguiname"] = "ImGuiIO_SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["ret"] = "void" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["signature"] = "(bool)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_SetAppAcceptingEvents"]["(bool)"] = defs["ImGuiIO_SetAppAcceptingEvents"][1] +defs["ImGuiIO_SetKeyEventNativeData"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3]["name"] = "native_keycode" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4]["name"] = "native_scancode" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5]["name"] = "native_legacy_index" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsoriginal"] = "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["call_args"] = "(key,native_keycode,native_scancode,native_legacy_index)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["cimguiname"] = "ImGuiIO_SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["defaults"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["defaults"]["native_legacy_index"] = "-1" +defs["ImGuiIO_SetKeyEventNativeData"][1]["funcname"] = "SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["location"] = "imgui:2068" +defs["ImGuiIO_SetKeyEventNativeData"][1]["ov_cimguiname"] = "ImGuiIO_SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["ret"] = "void" +defs["ImGuiIO_SetKeyEventNativeData"][1]["signature"] = "(ImGuiKey,int,int,int)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_SetKeyEventNativeData"]["(ImGuiKey,int,int,int)"] = defs["ImGuiIO_SetKeyEventNativeData"][1] +defs["ImGuiIO_destroy"] = {} +defs["ImGuiIO_destroy"][1] = {} +defs["ImGuiIO_destroy"][1]["args"] = "(ImGuiIO* self)" +defs["ImGuiIO_destroy"][1]["argsT"] = {} +defs["ImGuiIO_destroy"][1]["argsT"][1] = {} +defs["ImGuiIO_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_destroy"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_destroy"][1]["call_args"] = "(self)" +defs["ImGuiIO_destroy"][1]["cimguiname"] = "ImGuiIO_destroy" +defs["ImGuiIO_destroy"][1]["defaults"] = {} +defs["ImGuiIO_destroy"][1]["destructor"] = true +defs["ImGuiIO_destroy"][1]["ov_cimguiname"] = "ImGuiIO_destroy" +defs["ImGuiIO_destroy"][1]["ret"] = "void" +defs["ImGuiIO_destroy"][1]["signature"] = "(ImGuiIO*)" +defs["ImGuiIO_destroy"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_destroy"]["(ImGuiIO*)"] = defs["ImGuiIO_destroy"][1] +defs["ImGuiInputTextCallbackData_ClearSelection"] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["args"] = "(ImGuiInputTextCallbackData* self)" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["call_args"] = "()" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["cimguiname"] = "ImGuiInputTextCallbackData_ClearSelection" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["funcname"] = "ClearSelection" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["location"] = "imgui:2187" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_ClearSelection" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["signature"] = "()" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ClearSelection"]["()"] = defs["ImGuiInputTextCallbackData_ClearSelection"][1] +defs["ImGuiInputTextCallbackData_DeleteChars"] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["args"] = "(ImGuiInputTextCallbackData* self,int pos,int bytes_count)" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][2] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][2]["name"] = "pos" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][2]["type"] = "int" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][3] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][3]["name"] = "bytes_count" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][3]["type"] = "int" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsoriginal"] = "(int pos,int bytes_count)" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["call_args"] = "(pos,bytes_count)" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["cimguiname"] = "ImGuiInputTextCallbackData_DeleteChars" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["funcname"] = "DeleteChars" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["location"] = "imgui:2184" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_DeleteChars" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["signature"] = "(int,int)" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_DeleteChars"]["(int,int)"] = defs["ImGuiInputTextCallbackData_DeleteChars"][1] +defs["ImGuiInputTextCallbackData_HasSelection"] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1]["args"] = "(ImGuiInputTextCallbackData* self)" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["call_args"] = "()" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["cimguiname"] = "ImGuiInputTextCallbackData_HasSelection" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1]["funcname"] = "HasSelection" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["location"] = "imgui:2188" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_HasSelection" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["ret"] = "bool" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["signature"] = "()const" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_HasSelection"]["()const"] = defs["ImGuiInputTextCallbackData_HasSelection"][1] +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"] = {} +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1] = {} +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["args"] = "()" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["call_args"] = "()" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["cimguiname"] = "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["constructor"] = true +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["funcname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["location"] = "imgui:2183" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["signature"] = "()" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"]["()"] = defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1] +defs["ImGuiInputTextCallbackData_InsertChars"] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["args"] = "(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end)" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][2] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][2]["name"] = "pos" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][2]["type"] = "int" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][3] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][3]["name"] = "text" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][3]["type"] = "const char*" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][4] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][4]["name"] = "text_end" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][4]["type"] = "const char*" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsoriginal"] = "(int pos,const char* text,const char* text_end=((void*)0))" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["call_args"] = "(pos,text,text_end)" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["cimguiname"] = "ImGuiInputTextCallbackData_InsertChars" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["defaults"]["text_end"] = "NULL" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["funcname"] = "InsertChars" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["location"] = "imgui:2185" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_InsertChars" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["signature"] = "(int,const char*,const char*)" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_InsertChars"]["(int,const char*,const char*)"] = defs["ImGuiInputTextCallbackData_InsertChars"][1] +defs["ImGuiInputTextCallbackData_SelectAll"] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1]["args"] = "(ImGuiInputTextCallbackData* self)" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["call_args"] = "()" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["cimguiname"] = "ImGuiInputTextCallbackData_SelectAll" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1]["funcname"] = "SelectAll" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["location"] = "imgui:2186" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_SelectAll" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["signature"] = "()" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_SelectAll"]["()"] = defs["ImGuiInputTextCallbackData_SelectAll"][1] +defs["ImGuiInputTextCallbackData_destroy"] = {} +defs["ImGuiInputTextCallbackData_destroy"][1] = {} +defs["ImGuiInputTextCallbackData_destroy"][1]["args"] = "(ImGuiInputTextCallbackData* self)" +defs["ImGuiInputTextCallbackData_destroy"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_destroy"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_destroy"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiInputTextCallbackData_destroy"][1]["cimguiname"] = "ImGuiInputTextCallbackData_destroy" +defs["ImGuiInputTextCallbackData_destroy"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_destroy"][1]["destructor"] = true +defs["ImGuiInputTextCallbackData_destroy"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_destroy" +defs["ImGuiInputTextCallbackData_destroy"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_destroy"][1]["signature"] = "(ImGuiInputTextCallbackData*)" +defs["ImGuiInputTextCallbackData_destroy"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_destroy"]["(ImGuiInputTextCallbackData*)"] = defs["ImGuiInputTextCallbackData_destroy"][1] +defs["ImGuiListClipper_Begin"] = {} +defs["ImGuiListClipper_Begin"][1] = {} +defs["ImGuiListClipper_Begin"][1]["args"] = "(ImGuiListClipper* self,int items_count,float items_height)" +defs["ImGuiListClipper_Begin"][1]["argsT"] = {} +defs["ImGuiListClipper_Begin"][1]["argsT"][1] = {} +defs["ImGuiListClipper_Begin"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_Begin"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_Begin"][1]["argsT"][2] = {} +defs["ImGuiListClipper_Begin"][1]["argsT"][2]["name"] = "items_count" +defs["ImGuiListClipper_Begin"][1]["argsT"][2]["type"] = "int" +defs["ImGuiListClipper_Begin"][1]["argsT"][3] = {} +defs["ImGuiListClipper_Begin"][1]["argsT"][3]["name"] = "items_height" +defs["ImGuiListClipper_Begin"][1]["argsT"][3]["type"] = "float" +defs["ImGuiListClipper_Begin"][1]["argsoriginal"] = "(int items_count,float items_height=-1.0f)" +defs["ImGuiListClipper_Begin"][1]["call_args"] = "(items_count,items_height)" +defs["ImGuiListClipper_Begin"][1]["cimguiname"] = "ImGuiListClipper_Begin" +defs["ImGuiListClipper_Begin"][1]["defaults"] = {} +defs["ImGuiListClipper_Begin"][1]["defaults"]["items_height"] = "-1.0f" +defs["ImGuiListClipper_Begin"][1]["funcname"] = "Begin" +defs["ImGuiListClipper_Begin"][1]["location"] = "imgui:2420" +defs["ImGuiListClipper_Begin"][1]["ov_cimguiname"] = "ImGuiListClipper_Begin" +defs["ImGuiListClipper_Begin"][1]["ret"] = "void" +defs["ImGuiListClipper_Begin"][1]["signature"] = "(int,float)" +defs["ImGuiListClipper_Begin"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_Begin"]["(int,float)"] = defs["ImGuiListClipper_Begin"][1] +defs["ImGuiListClipper_End"] = {} +defs["ImGuiListClipper_End"][1] = {} +defs["ImGuiListClipper_End"][1]["args"] = "(ImGuiListClipper* self)" +defs["ImGuiListClipper_End"][1]["argsT"] = {} +defs["ImGuiListClipper_End"][1]["argsT"][1] = {} +defs["ImGuiListClipper_End"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_End"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_End"][1]["argsoriginal"] = "()" +defs["ImGuiListClipper_End"][1]["call_args"] = "()" +defs["ImGuiListClipper_End"][1]["cimguiname"] = "ImGuiListClipper_End" +defs["ImGuiListClipper_End"][1]["defaults"] = {} +defs["ImGuiListClipper_End"][1]["funcname"] = "End" +defs["ImGuiListClipper_End"][1]["location"] = "imgui:2421" +defs["ImGuiListClipper_End"][1]["ov_cimguiname"] = "ImGuiListClipper_End" +defs["ImGuiListClipper_End"][1]["ret"] = "void" +defs["ImGuiListClipper_End"][1]["signature"] = "()" +defs["ImGuiListClipper_End"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_End"]["()"] = defs["ImGuiListClipper_End"][1] +defs["ImGuiListClipper_ForceDisplayRangeByIndices"] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["args"] = "(ImGuiListClipper* self,int item_min,int item_max)" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][1] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][2] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][2]["name"] = "item_min" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][2]["type"] = "int" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][3] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][3]["name"] = "item_max" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][3]["type"] = "int" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsoriginal"] = "(int item_min,int item_max)" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["call_args"] = "(item_min,item_max)" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["cimguiname"] = "ImGuiListClipper_ForceDisplayRangeByIndices" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["defaults"] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["funcname"] = "ForceDisplayRangeByIndices" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["location"] = "imgui:2425" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["ov_cimguiname"] = "ImGuiListClipper_ForceDisplayRangeByIndices" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["ret"] = "void" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["signature"] = "(int,int)" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"]["(int,int)"] = defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1] +defs["ImGuiListClipper_ImGuiListClipper"] = {} +defs["ImGuiListClipper_ImGuiListClipper"][1] = {} +defs["ImGuiListClipper_ImGuiListClipper"][1]["args"] = "()" +defs["ImGuiListClipper_ImGuiListClipper"][1]["argsT"] = {} +defs["ImGuiListClipper_ImGuiListClipper"][1]["argsoriginal"] = "()" +defs["ImGuiListClipper_ImGuiListClipper"][1]["call_args"] = "()" +defs["ImGuiListClipper_ImGuiListClipper"][1]["cimguiname"] = "ImGuiListClipper_ImGuiListClipper" +defs["ImGuiListClipper_ImGuiListClipper"][1]["constructor"] = true +defs["ImGuiListClipper_ImGuiListClipper"][1]["defaults"] = {} +defs["ImGuiListClipper_ImGuiListClipper"][1]["funcname"] = "ImGuiListClipper" +defs["ImGuiListClipper_ImGuiListClipper"][1]["location"] = "imgui:2418" +defs["ImGuiListClipper_ImGuiListClipper"][1]["ov_cimguiname"] = "ImGuiListClipper_ImGuiListClipper" +defs["ImGuiListClipper_ImGuiListClipper"][1]["signature"] = "()" +defs["ImGuiListClipper_ImGuiListClipper"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_ImGuiListClipper"]["()"] = defs["ImGuiListClipper_ImGuiListClipper"][1] +defs["ImGuiListClipper_Step"] = {} +defs["ImGuiListClipper_Step"][1] = {} +defs["ImGuiListClipper_Step"][1]["args"] = "(ImGuiListClipper* self)" +defs["ImGuiListClipper_Step"][1]["argsT"] = {} +defs["ImGuiListClipper_Step"][1]["argsT"][1] = {} +defs["ImGuiListClipper_Step"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_Step"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_Step"][1]["argsoriginal"] = "()" +defs["ImGuiListClipper_Step"][1]["call_args"] = "()" +defs["ImGuiListClipper_Step"][1]["cimguiname"] = "ImGuiListClipper_Step" +defs["ImGuiListClipper_Step"][1]["defaults"] = {} +defs["ImGuiListClipper_Step"][1]["funcname"] = "Step" +defs["ImGuiListClipper_Step"][1]["location"] = "imgui:2422" +defs["ImGuiListClipper_Step"][1]["ov_cimguiname"] = "ImGuiListClipper_Step" +defs["ImGuiListClipper_Step"][1]["ret"] = "bool" +defs["ImGuiListClipper_Step"][1]["signature"] = "()" +defs["ImGuiListClipper_Step"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_Step"]["()"] = defs["ImGuiListClipper_Step"][1] +defs["ImGuiListClipper_destroy"] = {} +defs["ImGuiListClipper_destroy"][1] = {} +defs["ImGuiListClipper_destroy"][1]["args"] = "(ImGuiListClipper* self)" +defs["ImGuiListClipper_destroy"][1]["argsT"] = {} +defs["ImGuiListClipper_destroy"][1]["argsT"][1] = {} +defs["ImGuiListClipper_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_destroy"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_destroy"][1]["call_args"] = "(self)" +defs["ImGuiListClipper_destroy"][1]["cimguiname"] = "ImGuiListClipper_destroy" +defs["ImGuiListClipper_destroy"][1]["defaults"] = {} +defs["ImGuiListClipper_destroy"][1]["destructor"] = true +defs["ImGuiListClipper_destroy"][1]["location"] = "imgui:2419" +defs["ImGuiListClipper_destroy"][1]["ov_cimguiname"] = "ImGuiListClipper_destroy" +defs["ImGuiListClipper_destroy"][1]["realdestructor"] = true +defs["ImGuiListClipper_destroy"][1]["ret"] = "void" +defs["ImGuiListClipper_destroy"][1]["signature"] = "(ImGuiListClipper*)" +defs["ImGuiListClipper_destroy"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_destroy"]["(ImGuiListClipper*)"] = defs["ImGuiListClipper_destroy"][1] +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"] = {} +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1] = {} +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["args"] = "()" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["argsT"] = {} +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["argsoriginal"] = "()" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["call_args"] = "()" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["cimguiname"] = "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["constructor"] = true +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["defaults"] = {} +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["funcname"] = "ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["location"] = "imgui:2284" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["ov_cimguiname"] = "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["signature"] = "()" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["stname"] = "ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"]["()"] = defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1] +defs["ImGuiOnceUponAFrame_destroy"] = {} +defs["ImGuiOnceUponAFrame_destroy"][1] = {} +defs["ImGuiOnceUponAFrame_destroy"][1]["args"] = "(ImGuiOnceUponAFrame* self)" +defs["ImGuiOnceUponAFrame_destroy"][1]["argsT"] = {} +defs["ImGuiOnceUponAFrame_destroy"][1]["argsT"][1] = {} +defs["ImGuiOnceUponAFrame_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiOnceUponAFrame_destroy"][1]["argsT"][1]["type"] = "ImGuiOnceUponAFrame*" +defs["ImGuiOnceUponAFrame_destroy"][1]["call_args"] = "(self)" +defs["ImGuiOnceUponAFrame_destroy"][1]["cimguiname"] = "ImGuiOnceUponAFrame_destroy" +defs["ImGuiOnceUponAFrame_destroy"][1]["defaults"] = {} +defs["ImGuiOnceUponAFrame_destroy"][1]["destructor"] = true +defs["ImGuiOnceUponAFrame_destroy"][1]["ov_cimguiname"] = "ImGuiOnceUponAFrame_destroy" +defs["ImGuiOnceUponAFrame_destroy"][1]["ret"] = "void" +defs["ImGuiOnceUponAFrame_destroy"][1]["signature"] = "(ImGuiOnceUponAFrame*)" +defs["ImGuiOnceUponAFrame_destroy"][1]["stname"] = "ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_destroy"]["(ImGuiOnceUponAFrame*)"] = defs["ImGuiOnceUponAFrame_destroy"][1] +defs["ImGuiPayload_Clear"] = {} +defs["ImGuiPayload_Clear"][1] = {} +defs["ImGuiPayload_Clear"][1]["args"] = "(ImGuiPayload* self)" +defs["ImGuiPayload_Clear"][1]["argsT"] = {} +defs["ImGuiPayload_Clear"][1]["argsT"][1] = {} +defs["ImGuiPayload_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_Clear"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_Clear"][1]["argsoriginal"] = "()" +defs["ImGuiPayload_Clear"][1]["call_args"] = "()" +defs["ImGuiPayload_Clear"][1]["cimguiname"] = "ImGuiPayload_Clear" +defs["ImGuiPayload_Clear"][1]["defaults"] = {} +defs["ImGuiPayload_Clear"][1]["funcname"] = "Clear" +defs["ImGuiPayload_Clear"][1]["location"] = "imgui:2238" +defs["ImGuiPayload_Clear"][1]["ov_cimguiname"] = "ImGuiPayload_Clear" +defs["ImGuiPayload_Clear"][1]["ret"] = "void" +defs["ImGuiPayload_Clear"][1]["signature"] = "()" +defs["ImGuiPayload_Clear"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_Clear"]["()"] = defs["ImGuiPayload_Clear"][1] +defs["ImGuiPayload_ImGuiPayload"] = {} +defs["ImGuiPayload_ImGuiPayload"][1] = {} +defs["ImGuiPayload_ImGuiPayload"][1]["args"] = "()" +defs["ImGuiPayload_ImGuiPayload"][1]["argsT"] = {} +defs["ImGuiPayload_ImGuiPayload"][1]["argsoriginal"] = "()" +defs["ImGuiPayload_ImGuiPayload"][1]["call_args"] = "()" +defs["ImGuiPayload_ImGuiPayload"][1]["cimguiname"] = "ImGuiPayload_ImGuiPayload" +defs["ImGuiPayload_ImGuiPayload"][1]["constructor"] = true +defs["ImGuiPayload_ImGuiPayload"][1]["defaults"] = {} +defs["ImGuiPayload_ImGuiPayload"][1]["funcname"] = "ImGuiPayload" +defs["ImGuiPayload_ImGuiPayload"][1]["location"] = "imgui:2237" +defs["ImGuiPayload_ImGuiPayload"][1]["ov_cimguiname"] = "ImGuiPayload_ImGuiPayload" +defs["ImGuiPayload_ImGuiPayload"][1]["signature"] = "()" +defs["ImGuiPayload_ImGuiPayload"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_ImGuiPayload"]["()"] = defs["ImGuiPayload_ImGuiPayload"][1] +defs["ImGuiPayload_IsDataType"] = {} +defs["ImGuiPayload_IsDataType"][1] = {} +defs["ImGuiPayload_IsDataType"][1]["args"] = "(ImGuiPayload* self,const char* type)" +defs["ImGuiPayload_IsDataType"][1]["argsT"] = {} +defs["ImGuiPayload_IsDataType"][1]["argsT"][1] = {} +defs["ImGuiPayload_IsDataType"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_IsDataType"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_IsDataType"][1]["argsT"][2] = {} +defs["ImGuiPayload_IsDataType"][1]["argsT"][2]["name"] = "type" +defs["ImGuiPayload_IsDataType"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiPayload_IsDataType"][1]["argsoriginal"] = "(const char* type)" +defs["ImGuiPayload_IsDataType"][1]["call_args"] = "(type)" +defs["ImGuiPayload_IsDataType"][1]["cimguiname"] = "ImGuiPayload_IsDataType" +defs["ImGuiPayload_IsDataType"][1]["defaults"] = {} +defs["ImGuiPayload_IsDataType"][1]["funcname"] = "IsDataType" +defs["ImGuiPayload_IsDataType"][1]["location"] = "imgui:2239" +defs["ImGuiPayload_IsDataType"][1]["ov_cimguiname"] = "ImGuiPayload_IsDataType" +defs["ImGuiPayload_IsDataType"][1]["ret"] = "bool" +defs["ImGuiPayload_IsDataType"][1]["signature"] = "(const char*)const" +defs["ImGuiPayload_IsDataType"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_IsDataType"]["(const char*)const"] = defs["ImGuiPayload_IsDataType"][1] +defs["ImGuiPayload_IsDelivery"] = {} +defs["ImGuiPayload_IsDelivery"][1] = {} +defs["ImGuiPayload_IsDelivery"][1]["args"] = "(ImGuiPayload* self)" +defs["ImGuiPayload_IsDelivery"][1]["argsT"] = {} +defs["ImGuiPayload_IsDelivery"][1]["argsT"][1] = {} +defs["ImGuiPayload_IsDelivery"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_IsDelivery"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_IsDelivery"][1]["argsoriginal"] = "()" +defs["ImGuiPayload_IsDelivery"][1]["call_args"] = "()" +defs["ImGuiPayload_IsDelivery"][1]["cimguiname"] = "ImGuiPayload_IsDelivery" +defs["ImGuiPayload_IsDelivery"][1]["defaults"] = {} +defs["ImGuiPayload_IsDelivery"][1]["funcname"] = "IsDelivery" +defs["ImGuiPayload_IsDelivery"][1]["location"] = "imgui:2241" +defs["ImGuiPayload_IsDelivery"][1]["ov_cimguiname"] = "ImGuiPayload_IsDelivery" +defs["ImGuiPayload_IsDelivery"][1]["ret"] = "bool" +defs["ImGuiPayload_IsDelivery"][1]["signature"] = "()const" +defs["ImGuiPayload_IsDelivery"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_IsDelivery"]["()const"] = defs["ImGuiPayload_IsDelivery"][1] +defs["ImGuiPayload_IsPreview"] = {} +defs["ImGuiPayload_IsPreview"][1] = {} +defs["ImGuiPayload_IsPreview"][1]["args"] = "(ImGuiPayload* self)" +defs["ImGuiPayload_IsPreview"][1]["argsT"] = {} +defs["ImGuiPayload_IsPreview"][1]["argsT"][1] = {} +defs["ImGuiPayload_IsPreview"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_IsPreview"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_IsPreview"][1]["argsoriginal"] = "()" +defs["ImGuiPayload_IsPreview"][1]["call_args"] = "()" +defs["ImGuiPayload_IsPreview"][1]["cimguiname"] = "ImGuiPayload_IsPreview" +defs["ImGuiPayload_IsPreview"][1]["defaults"] = {} +defs["ImGuiPayload_IsPreview"][1]["funcname"] = "IsPreview" +defs["ImGuiPayload_IsPreview"][1]["location"] = "imgui:2240" +defs["ImGuiPayload_IsPreview"][1]["ov_cimguiname"] = "ImGuiPayload_IsPreview" +defs["ImGuiPayload_IsPreview"][1]["ret"] = "bool" +defs["ImGuiPayload_IsPreview"][1]["signature"] = "()const" +defs["ImGuiPayload_IsPreview"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_IsPreview"]["()const"] = defs["ImGuiPayload_IsPreview"][1] +defs["ImGuiPayload_destroy"] = {} +defs["ImGuiPayload_destroy"][1] = {} +defs["ImGuiPayload_destroy"][1]["args"] = "(ImGuiPayload* self)" +defs["ImGuiPayload_destroy"][1]["argsT"] = {} +defs["ImGuiPayload_destroy"][1]["argsT"][1] = {} +defs["ImGuiPayload_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_destroy"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPayload_destroy"][1]["cimguiname"] = "ImGuiPayload_destroy" +defs["ImGuiPayload_destroy"][1]["defaults"] = {} +defs["ImGuiPayload_destroy"][1]["destructor"] = true +defs["ImGuiPayload_destroy"][1]["ov_cimguiname"] = "ImGuiPayload_destroy" +defs["ImGuiPayload_destroy"][1]["ret"] = "void" +defs["ImGuiPayload_destroy"][1]["signature"] = "(ImGuiPayload*)" +defs["ImGuiPayload_destroy"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_destroy"]["(ImGuiPayload*)"] = defs["ImGuiPayload_destroy"][1] +defs["ImGuiPlatformIO_ImGuiPlatformIO"] = {} +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1] = {} +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["args"] = "()" +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["argsT"] = {} +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["argsoriginal"] = "()" +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["call_args"] = "()" +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["cimguiname"] = "ImGuiPlatformIO_ImGuiPlatformIO" +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["constructor"] = true +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["defaults"] = {} +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["funcname"] = "ImGuiPlatformIO" +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["location"] = "imgui:3182" +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["ov_cimguiname"] = "ImGuiPlatformIO_ImGuiPlatformIO" +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["signature"] = "()" +defs["ImGuiPlatformIO_ImGuiPlatformIO"][1]["stname"] = "ImGuiPlatformIO" +defs["ImGuiPlatformIO_ImGuiPlatformIO"]["()"] = defs["ImGuiPlatformIO_ImGuiPlatformIO"][1] +defs["ImGuiPlatformIO_destroy"] = {} +defs["ImGuiPlatformIO_destroy"][1] = {} +defs["ImGuiPlatformIO_destroy"][1]["args"] = "(ImGuiPlatformIO* self)" +defs["ImGuiPlatformIO_destroy"][1]["argsT"] = {} +defs["ImGuiPlatformIO_destroy"][1]["argsT"][1] = {} +defs["ImGuiPlatformIO_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPlatformIO_destroy"][1]["argsT"][1]["type"] = "ImGuiPlatformIO*" +defs["ImGuiPlatformIO_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPlatformIO_destroy"][1]["cimguiname"] = "ImGuiPlatformIO_destroy" +defs["ImGuiPlatformIO_destroy"][1]["defaults"] = {} +defs["ImGuiPlatformIO_destroy"][1]["destructor"] = true +defs["ImGuiPlatformIO_destroy"][1]["ov_cimguiname"] = "ImGuiPlatformIO_destroy" +defs["ImGuiPlatformIO_destroy"][1]["ret"] = "void" +defs["ImGuiPlatformIO_destroy"][1]["signature"] = "(ImGuiPlatformIO*)" +defs["ImGuiPlatformIO_destroy"][1]["stname"] = "ImGuiPlatformIO" +defs["ImGuiPlatformIO_destroy"]["(ImGuiPlatformIO*)"] = defs["ImGuiPlatformIO_destroy"][1] +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["args"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["argsT"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["argsoriginal"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["call_args"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["cimguiname"] = "ImGuiPlatformImeData_ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["constructor"] = true +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["defaults"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["funcname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["location"] = "imgui:3202" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["ov_cimguiname"] = "ImGuiPlatformImeData_ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["signature"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["stname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"]["()"] = defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1] +defs["ImGuiPlatformImeData_destroy"] = {} +defs["ImGuiPlatformImeData_destroy"][1] = {} +defs["ImGuiPlatformImeData_destroy"][1]["args"] = "(ImGuiPlatformImeData* self)" +defs["ImGuiPlatformImeData_destroy"][1]["argsT"] = {} +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1] = {} +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1]["type"] = "ImGuiPlatformImeData*" +defs["ImGuiPlatformImeData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPlatformImeData_destroy"][1]["cimguiname"] = "ImGuiPlatformImeData_destroy" +defs["ImGuiPlatformImeData_destroy"][1]["defaults"] = {} +defs["ImGuiPlatformImeData_destroy"][1]["destructor"] = true +defs["ImGuiPlatformImeData_destroy"][1]["ov_cimguiname"] = "ImGuiPlatformImeData_destroy" +defs["ImGuiPlatformImeData_destroy"][1]["ret"] = "void" +defs["ImGuiPlatformImeData_destroy"][1]["signature"] = "(ImGuiPlatformImeData*)" +defs["ImGuiPlatformImeData_destroy"][1]["stname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_destroy"]["(ImGuiPlatformImeData*)"] = defs["ImGuiPlatformImeData_destroy"][1] +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"] = {} +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1] = {} +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["args"] = "()" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["argsT"] = {} +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["argsoriginal"] = "()" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["call_args"] = "()" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["cimguiname"] = "ImGuiPlatformMonitor_ImGuiPlatformMonitor" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["constructor"] = true +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["defaults"] = {} +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["funcname"] = "ImGuiPlatformMonitor" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["location"] = "imgui:3192" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["ov_cimguiname"] = "ImGuiPlatformMonitor_ImGuiPlatformMonitor" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["signature"] = "()" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1]["stname"] = "ImGuiPlatformMonitor" +defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"]["()"] = defs["ImGuiPlatformMonitor_ImGuiPlatformMonitor"][1] +defs["ImGuiPlatformMonitor_destroy"] = {} +defs["ImGuiPlatformMonitor_destroy"][1] = {} +defs["ImGuiPlatformMonitor_destroy"][1]["args"] = "(ImGuiPlatformMonitor* self)" +defs["ImGuiPlatformMonitor_destroy"][1]["argsT"] = {} +defs["ImGuiPlatformMonitor_destroy"][1]["argsT"][1] = {} +defs["ImGuiPlatformMonitor_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPlatformMonitor_destroy"][1]["argsT"][1]["type"] = "ImGuiPlatformMonitor*" +defs["ImGuiPlatformMonitor_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPlatformMonitor_destroy"][1]["cimguiname"] = "ImGuiPlatformMonitor_destroy" +defs["ImGuiPlatformMonitor_destroy"][1]["defaults"] = {} +defs["ImGuiPlatformMonitor_destroy"][1]["destructor"] = true +defs["ImGuiPlatformMonitor_destroy"][1]["ov_cimguiname"] = "ImGuiPlatformMonitor_destroy" +defs["ImGuiPlatformMonitor_destroy"][1]["ret"] = "void" +defs["ImGuiPlatformMonitor_destroy"][1]["signature"] = "(ImGuiPlatformMonitor*)" +defs["ImGuiPlatformMonitor_destroy"][1]["stname"] = "ImGuiPlatformMonitor" +defs["ImGuiPlatformMonitor_destroy"]["(ImGuiPlatformMonitor*)"] = defs["ImGuiPlatformMonitor_destroy"][1] +defs["ImGuiStoragePair_ImGuiStoragePair"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["args"] = "(ImGuiID _key,int _val_i)" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][1] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][1]["name"] = "_key" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][1]["type"] = "ImGuiID" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][2] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][2]["name"] = "_val_i" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][2]["type"] = "int" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsoriginal"] = "(ImGuiID _key,int _val_i)" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["call_args"] = "(_key,_val_i)" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["constructor"] = true +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["defaults"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["funcname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["location"] = "imgui:2351" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Int" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["signature"] = "(ImGuiID,int)" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["stname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][2] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["args"] = "(ImGuiID _key,float _val_f)" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][1] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][1]["name"] = "_key" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][1]["type"] = "ImGuiID" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][2] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][2]["name"] = "_val_f" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][2]["type"] = "float" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsoriginal"] = "(ImGuiID _key,float _val_f)" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["call_args"] = "(_key,_val_f)" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["constructor"] = true +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["defaults"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["funcname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["location"] = "imgui:2352" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Float" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["signature"] = "(ImGuiID,float)" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["stname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][3] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["args"] = "(ImGuiID _key,void* _val_p)" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][1] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][1]["name"] = "_key" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][1]["type"] = "ImGuiID" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][2] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][2]["name"] = "_val_p" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][2]["type"] = "void*" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsoriginal"] = "(ImGuiID _key,void* _val_p)" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["call_args"] = "(_key,_val_p)" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["constructor"] = true +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["defaults"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["funcname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["location"] = "imgui:2353" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Ptr" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["signature"] = "(ImGuiID,void*)" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["stname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"]["(ImGuiID,float)"] = defs["ImGuiStoragePair_ImGuiStoragePair"][2] +defs["ImGuiStoragePair_ImGuiStoragePair"]["(ImGuiID,int)"] = defs["ImGuiStoragePair_ImGuiStoragePair"][1] +defs["ImGuiStoragePair_ImGuiStoragePair"]["(ImGuiID,void*)"] = defs["ImGuiStoragePair_ImGuiStoragePair"][3] +defs["ImGuiStoragePair_destroy"] = {} +defs["ImGuiStoragePair_destroy"][1] = {} +defs["ImGuiStoragePair_destroy"][1]["args"] = "(ImGuiStoragePair* self)" +defs["ImGuiStoragePair_destroy"][1]["argsT"] = {} +defs["ImGuiStoragePair_destroy"][1]["argsT"][1] = {} +defs["ImGuiStoragePair_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStoragePair_destroy"][1]["argsT"][1]["type"] = "ImGuiStoragePair*" +defs["ImGuiStoragePair_destroy"][1]["call_args"] = "(self)" +defs["ImGuiStoragePair_destroy"][1]["cimguiname"] = "ImGuiStoragePair_destroy" +defs["ImGuiStoragePair_destroy"][1]["defaults"] = {} +defs["ImGuiStoragePair_destroy"][1]["destructor"] = true +defs["ImGuiStoragePair_destroy"][1]["ov_cimguiname"] = "ImGuiStoragePair_destroy" +defs["ImGuiStoragePair_destroy"][1]["ret"] = "void" +defs["ImGuiStoragePair_destroy"][1]["signature"] = "(ImGuiStoragePair*)" +defs["ImGuiStoragePair_destroy"][1]["stname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_destroy"]["(ImGuiStoragePair*)"] = defs["ImGuiStoragePair_destroy"][1] +defs["ImGuiStorage_BuildSortByKey"] = {} +defs["ImGuiStorage_BuildSortByKey"][1] = {} +defs["ImGuiStorage_BuildSortByKey"][1]["args"] = "(ImGuiStorage* self)" +defs["ImGuiStorage_BuildSortByKey"][1]["argsT"] = {} +defs["ImGuiStorage_BuildSortByKey"][1]["argsT"][1] = {} +defs["ImGuiStorage_BuildSortByKey"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_BuildSortByKey"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_BuildSortByKey"][1]["argsoriginal"] = "()" +defs["ImGuiStorage_BuildSortByKey"][1]["call_args"] = "()" +defs["ImGuiStorage_BuildSortByKey"][1]["cimguiname"] = "ImGuiStorage_BuildSortByKey" +defs["ImGuiStorage_BuildSortByKey"][1]["defaults"] = {} +defs["ImGuiStorage_BuildSortByKey"][1]["funcname"] = "BuildSortByKey" +defs["ImGuiStorage_BuildSortByKey"][1]["location"] = "imgui:2384" +defs["ImGuiStorage_BuildSortByKey"][1]["ov_cimguiname"] = "ImGuiStorage_BuildSortByKey" +defs["ImGuiStorage_BuildSortByKey"][1]["ret"] = "void" +defs["ImGuiStorage_BuildSortByKey"][1]["signature"] = "()" +defs["ImGuiStorage_BuildSortByKey"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_BuildSortByKey"]["()"] = defs["ImGuiStorage_BuildSortByKey"][1] +defs["ImGuiStorage_Clear"] = {} +defs["ImGuiStorage_Clear"][1] = {} +defs["ImGuiStorage_Clear"][1]["args"] = "(ImGuiStorage* self)" +defs["ImGuiStorage_Clear"][1]["argsT"] = {} +defs["ImGuiStorage_Clear"][1]["argsT"][1] = {} +defs["ImGuiStorage_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_Clear"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_Clear"][1]["argsoriginal"] = "()" +defs["ImGuiStorage_Clear"][1]["call_args"] = "()" +defs["ImGuiStorage_Clear"][1]["cimguiname"] = "ImGuiStorage_Clear" +defs["ImGuiStorage_Clear"][1]["defaults"] = {} +defs["ImGuiStorage_Clear"][1]["funcname"] = "Clear" +defs["ImGuiStorage_Clear"][1]["location"] = "imgui:2361" +defs["ImGuiStorage_Clear"][1]["ov_cimguiname"] = "ImGuiStorage_Clear" +defs["ImGuiStorage_Clear"][1]["ret"] = "void" +defs["ImGuiStorage_Clear"][1]["signature"] = "()" +defs["ImGuiStorage_Clear"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_Clear"]["()"] = defs["ImGuiStorage_Clear"][1] +defs["ImGuiStorage_GetBool"] = {} +defs["ImGuiStorage_GetBool"][1] = {} +defs["ImGuiStorage_GetBool"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,bool default_val)" +defs["ImGuiStorage_GetBool"][1]["argsT"] = {} +defs["ImGuiStorage_GetBool"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetBool"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetBool"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetBool"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetBool"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetBool"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetBool"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetBool"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetBool"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiStorage_GetBool"][1]["argsoriginal"] = "(ImGuiID key,bool default_val=false)" +defs["ImGuiStorage_GetBool"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetBool"][1]["cimguiname"] = "ImGuiStorage_GetBool" +defs["ImGuiStorage_GetBool"][1]["defaults"] = {} +defs["ImGuiStorage_GetBool"][1]["defaults"]["default_val"] = "false" +defs["ImGuiStorage_GetBool"][1]["funcname"] = "GetBool" +defs["ImGuiStorage_GetBool"][1]["location"] = "imgui:2364" +defs["ImGuiStorage_GetBool"][1]["ov_cimguiname"] = "ImGuiStorage_GetBool" +defs["ImGuiStorage_GetBool"][1]["ret"] = "bool" +defs["ImGuiStorage_GetBool"][1]["signature"] = "(ImGuiID,bool)const" +defs["ImGuiStorage_GetBool"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetBool"]["(ImGuiID,bool)const"] = defs["ImGuiStorage_GetBool"][1] +defs["ImGuiStorage_GetBoolRef"] = {} +defs["ImGuiStorage_GetBoolRef"][1] = {} +defs["ImGuiStorage_GetBoolRef"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,bool default_val)" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"] = {} +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiStorage_GetBoolRef"][1]["argsoriginal"] = "(ImGuiID key,bool default_val=false)" +defs["ImGuiStorage_GetBoolRef"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetBoolRef"][1]["cimguiname"] = "ImGuiStorage_GetBoolRef" +defs["ImGuiStorage_GetBoolRef"][1]["defaults"] = {} +defs["ImGuiStorage_GetBoolRef"][1]["defaults"]["default_val"] = "false" +defs["ImGuiStorage_GetBoolRef"][1]["funcname"] = "GetBoolRef" +defs["ImGuiStorage_GetBoolRef"][1]["location"] = "imgui:2376" +defs["ImGuiStorage_GetBoolRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetBoolRef" +defs["ImGuiStorage_GetBoolRef"][1]["ret"] = "bool*" +defs["ImGuiStorage_GetBoolRef"][1]["signature"] = "(ImGuiID,bool)" +defs["ImGuiStorage_GetBoolRef"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetBoolRef"]["(ImGuiID,bool)"] = defs["ImGuiStorage_GetBoolRef"][1] +defs["ImGuiStorage_GetFloat"] = {} +defs["ImGuiStorage_GetFloat"][1] = {} +defs["ImGuiStorage_GetFloat"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,float default_val)" +defs["ImGuiStorage_GetFloat"][1]["argsT"] = {} +defs["ImGuiStorage_GetFloat"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetFloat"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetFloat"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetFloat"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetFloat"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetFloat"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetFloat"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetFloat"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetFloat"][1]["argsT"][3]["type"] = "float" +defs["ImGuiStorage_GetFloat"][1]["argsoriginal"] = "(ImGuiID key,float default_val=0.0f)" +defs["ImGuiStorage_GetFloat"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetFloat"][1]["cimguiname"] = "ImGuiStorage_GetFloat" +defs["ImGuiStorage_GetFloat"][1]["defaults"] = {} +defs["ImGuiStorage_GetFloat"][1]["defaults"]["default_val"] = "0.0f" +defs["ImGuiStorage_GetFloat"][1]["funcname"] = "GetFloat" +defs["ImGuiStorage_GetFloat"][1]["location"] = "imgui:2366" +defs["ImGuiStorage_GetFloat"][1]["ov_cimguiname"] = "ImGuiStorage_GetFloat" +defs["ImGuiStorage_GetFloat"][1]["ret"] = "float" +defs["ImGuiStorage_GetFloat"][1]["signature"] = "(ImGuiID,float)const" +defs["ImGuiStorage_GetFloat"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetFloat"]["(ImGuiID,float)const"] = defs["ImGuiStorage_GetFloat"][1] +defs["ImGuiStorage_GetFloatRef"] = {} +defs["ImGuiStorage_GetFloatRef"][1] = {} +defs["ImGuiStorage_GetFloatRef"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,float default_val)" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"] = {} +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][3]["type"] = "float" +defs["ImGuiStorage_GetFloatRef"][1]["argsoriginal"] = "(ImGuiID key,float default_val=0.0f)" +defs["ImGuiStorage_GetFloatRef"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetFloatRef"][1]["cimguiname"] = "ImGuiStorage_GetFloatRef" +defs["ImGuiStorage_GetFloatRef"][1]["defaults"] = {} +defs["ImGuiStorage_GetFloatRef"][1]["defaults"]["default_val"] = "0.0f" +defs["ImGuiStorage_GetFloatRef"][1]["funcname"] = "GetFloatRef" +defs["ImGuiStorage_GetFloatRef"][1]["location"] = "imgui:2377" +defs["ImGuiStorage_GetFloatRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetFloatRef" +defs["ImGuiStorage_GetFloatRef"][1]["ret"] = "float*" +defs["ImGuiStorage_GetFloatRef"][1]["signature"] = "(ImGuiID,float)" +defs["ImGuiStorage_GetFloatRef"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetFloatRef"]["(ImGuiID,float)"] = defs["ImGuiStorage_GetFloatRef"][1] +defs["ImGuiStorage_GetInt"] = {} +defs["ImGuiStorage_GetInt"][1] = {} +defs["ImGuiStorage_GetInt"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,int default_val)" +defs["ImGuiStorage_GetInt"][1]["argsT"] = {} +defs["ImGuiStorage_GetInt"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetInt"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetInt"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetInt"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetInt"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetInt"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetInt"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetInt"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetInt"][1]["argsT"][3]["type"] = "int" +defs["ImGuiStorage_GetInt"][1]["argsoriginal"] = "(ImGuiID key,int default_val=0)" +defs["ImGuiStorage_GetInt"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetInt"][1]["cimguiname"] = "ImGuiStorage_GetInt" +defs["ImGuiStorage_GetInt"][1]["defaults"] = {} +defs["ImGuiStorage_GetInt"][1]["defaults"]["default_val"] = "0" +defs["ImGuiStorage_GetInt"][1]["funcname"] = "GetInt" +defs["ImGuiStorage_GetInt"][1]["location"] = "imgui:2362" +defs["ImGuiStorage_GetInt"][1]["ov_cimguiname"] = "ImGuiStorage_GetInt" +defs["ImGuiStorage_GetInt"][1]["ret"] = "int" +defs["ImGuiStorage_GetInt"][1]["signature"] = "(ImGuiID,int)const" +defs["ImGuiStorage_GetInt"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetInt"]["(ImGuiID,int)const"] = defs["ImGuiStorage_GetInt"][1] +defs["ImGuiStorage_GetIntRef"] = {} +defs["ImGuiStorage_GetIntRef"][1] = {} +defs["ImGuiStorage_GetIntRef"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,int default_val)" +defs["ImGuiStorage_GetIntRef"][1]["argsT"] = {} +defs["ImGuiStorage_GetIntRef"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetIntRef"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetIntRef"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetIntRef"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][3]["type"] = "int" +defs["ImGuiStorage_GetIntRef"][1]["argsoriginal"] = "(ImGuiID key,int default_val=0)" +defs["ImGuiStorage_GetIntRef"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetIntRef"][1]["cimguiname"] = "ImGuiStorage_GetIntRef" +defs["ImGuiStorage_GetIntRef"][1]["defaults"] = {} +defs["ImGuiStorage_GetIntRef"][1]["defaults"]["default_val"] = "0" +defs["ImGuiStorage_GetIntRef"][1]["funcname"] = "GetIntRef" +defs["ImGuiStorage_GetIntRef"][1]["location"] = "imgui:2375" +defs["ImGuiStorage_GetIntRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetIntRef" +defs["ImGuiStorage_GetIntRef"][1]["ret"] = "int*" +defs["ImGuiStorage_GetIntRef"][1]["signature"] = "(ImGuiID,int)" +defs["ImGuiStorage_GetIntRef"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetIntRef"]["(ImGuiID,int)"] = defs["ImGuiStorage_GetIntRef"][1] +defs["ImGuiStorage_GetVoidPtr"] = {} +defs["ImGuiStorage_GetVoidPtr"][1] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["args"] = "(ImGuiStorage* self,ImGuiID key)" +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetVoidPtr"][1]["argsoriginal"] = "(ImGuiID key)" +defs["ImGuiStorage_GetVoidPtr"][1]["call_args"] = "(key)" +defs["ImGuiStorage_GetVoidPtr"][1]["cimguiname"] = "ImGuiStorage_GetVoidPtr" +defs["ImGuiStorage_GetVoidPtr"][1]["defaults"] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["funcname"] = "GetVoidPtr" +defs["ImGuiStorage_GetVoidPtr"][1]["location"] = "imgui:2368" +defs["ImGuiStorage_GetVoidPtr"][1]["ov_cimguiname"] = "ImGuiStorage_GetVoidPtr" +defs["ImGuiStorage_GetVoidPtr"][1]["ret"] = "void*" +defs["ImGuiStorage_GetVoidPtr"][1]["signature"] = "(ImGuiID)const" +defs["ImGuiStorage_GetVoidPtr"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetVoidPtr"]["(ImGuiID)const"] = defs["ImGuiStorage_GetVoidPtr"][1] +defs["ImGuiStorage_GetVoidPtrRef"] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,void* default_val)" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][3]["type"] = "void*" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsoriginal"] = "(ImGuiID key,void* default_val=((void*)0))" +defs["ImGuiStorage_GetVoidPtrRef"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetVoidPtrRef"][1]["cimguiname"] = "ImGuiStorage_GetVoidPtrRef" +defs["ImGuiStorage_GetVoidPtrRef"][1]["defaults"] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["defaults"]["default_val"] = "NULL" +defs["ImGuiStorage_GetVoidPtrRef"][1]["funcname"] = "GetVoidPtrRef" +defs["ImGuiStorage_GetVoidPtrRef"][1]["location"] = "imgui:2378" +defs["ImGuiStorage_GetVoidPtrRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetVoidPtrRef" +defs["ImGuiStorage_GetVoidPtrRef"][1]["ret"] = "void**" +defs["ImGuiStorage_GetVoidPtrRef"][1]["signature"] = "(ImGuiID,void*)" +defs["ImGuiStorage_GetVoidPtrRef"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetVoidPtrRef"]["(ImGuiID,void*)"] = defs["ImGuiStorage_GetVoidPtrRef"][1] +defs["ImGuiStorage_SetAllInt"] = {} +defs["ImGuiStorage_SetAllInt"][1] = {} +defs["ImGuiStorage_SetAllInt"][1]["args"] = "(ImGuiStorage* self,int val)" +defs["ImGuiStorage_SetAllInt"][1]["argsT"] = {} +defs["ImGuiStorage_SetAllInt"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetAllInt"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetAllInt"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetAllInt"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetAllInt"][1]["argsT"][2]["name"] = "val" +defs["ImGuiStorage_SetAllInt"][1]["argsT"][2]["type"] = "int" +defs["ImGuiStorage_SetAllInt"][1]["argsoriginal"] = "(int val)" +defs["ImGuiStorage_SetAllInt"][1]["call_args"] = "(val)" +defs["ImGuiStorage_SetAllInt"][1]["cimguiname"] = "ImGuiStorage_SetAllInt" +defs["ImGuiStorage_SetAllInt"][1]["defaults"] = {} +defs["ImGuiStorage_SetAllInt"][1]["funcname"] = "SetAllInt" +defs["ImGuiStorage_SetAllInt"][1]["location"] = "imgui:2381" +defs["ImGuiStorage_SetAllInt"][1]["ov_cimguiname"] = "ImGuiStorage_SetAllInt" +defs["ImGuiStorage_SetAllInt"][1]["ret"] = "void" +defs["ImGuiStorage_SetAllInt"][1]["signature"] = "(int)" +defs["ImGuiStorage_SetAllInt"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetAllInt"]["(int)"] = defs["ImGuiStorage_SetAllInt"][1] +defs["ImGuiStorage_SetBool"] = {} +defs["ImGuiStorage_SetBool"][1] = {} +defs["ImGuiStorage_SetBool"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,bool val)" +defs["ImGuiStorage_SetBool"][1]["argsT"] = {} +defs["ImGuiStorage_SetBool"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetBool"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetBool"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetBool"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetBool"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_SetBool"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_SetBool"][1]["argsT"][3] = {} +defs["ImGuiStorage_SetBool"][1]["argsT"][3]["name"] = "val" +defs["ImGuiStorage_SetBool"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiStorage_SetBool"][1]["argsoriginal"] = "(ImGuiID key,bool val)" +defs["ImGuiStorage_SetBool"][1]["call_args"] = "(key,val)" +defs["ImGuiStorage_SetBool"][1]["cimguiname"] = "ImGuiStorage_SetBool" +defs["ImGuiStorage_SetBool"][1]["defaults"] = {} +defs["ImGuiStorage_SetBool"][1]["funcname"] = "SetBool" +defs["ImGuiStorage_SetBool"][1]["location"] = "imgui:2365" +defs["ImGuiStorage_SetBool"][1]["ov_cimguiname"] = "ImGuiStorage_SetBool" +defs["ImGuiStorage_SetBool"][1]["ret"] = "void" +defs["ImGuiStorage_SetBool"][1]["signature"] = "(ImGuiID,bool)" +defs["ImGuiStorage_SetBool"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetBool"]["(ImGuiID,bool)"] = defs["ImGuiStorage_SetBool"][1] +defs["ImGuiStorage_SetFloat"] = {} +defs["ImGuiStorage_SetFloat"][1] = {} +defs["ImGuiStorage_SetFloat"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,float val)" +defs["ImGuiStorage_SetFloat"][1]["argsT"] = {} +defs["ImGuiStorage_SetFloat"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetFloat"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetFloat"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetFloat"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetFloat"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_SetFloat"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_SetFloat"][1]["argsT"][3] = {} +defs["ImGuiStorage_SetFloat"][1]["argsT"][3]["name"] = "val" +defs["ImGuiStorage_SetFloat"][1]["argsT"][3]["type"] = "float" +defs["ImGuiStorage_SetFloat"][1]["argsoriginal"] = "(ImGuiID key,float val)" +defs["ImGuiStorage_SetFloat"][1]["call_args"] = "(key,val)" +defs["ImGuiStorage_SetFloat"][1]["cimguiname"] = "ImGuiStorage_SetFloat" +defs["ImGuiStorage_SetFloat"][1]["defaults"] = {} +defs["ImGuiStorage_SetFloat"][1]["funcname"] = "SetFloat" +defs["ImGuiStorage_SetFloat"][1]["location"] = "imgui:2367" +defs["ImGuiStorage_SetFloat"][1]["ov_cimguiname"] = "ImGuiStorage_SetFloat" +defs["ImGuiStorage_SetFloat"][1]["ret"] = "void" +defs["ImGuiStorage_SetFloat"][1]["signature"] = "(ImGuiID,float)" +defs["ImGuiStorage_SetFloat"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetFloat"]["(ImGuiID,float)"] = defs["ImGuiStorage_SetFloat"][1] +defs["ImGuiStorage_SetInt"] = {} +defs["ImGuiStorage_SetInt"][1] = {} +defs["ImGuiStorage_SetInt"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,int val)" +defs["ImGuiStorage_SetInt"][1]["argsT"] = {} +defs["ImGuiStorage_SetInt"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetInt"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetInt"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetInt"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetInt"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_SetInt"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_SetInt"][1]["argsT"][3] = {} +defs["ImGuiStorage_SetInt"][1]["argsT"][3]["name"] = "val" +defs["ImGuiStorage_SetInt"][1]["argsT"][3]["type"] = "int" +defs["ImGuiStorage_SetInt"][1]["argsoriginal"] = "(ImGuiID key,int val)" +defs["ImGuiStorage_SetInt"][1]["call_args"] = "(key,val)" +defs["ImGuiStorage_SetInt"][1]["cimguiname"] = "ImGuiStorage_SetInt" +defs["ImGuiStorage_SetInt"][1]["defaults"] = {} +defs["ImGuiStorage_SetInt"][1]["funcname"] = "SetInt" +defs["ImGuiStorage_SetInt"][1]["location"] = "imgui:2363" +defs["ImGuiStorage_SetInt"][1]["ov_cimguiname"] = "ImGuiStorage_SetInt" +defs["ImGuiStorage_SetInt"][1]["ret"] = "void" +defs["ImGuiStorage_SetInt"][1]["signature"] = "(ImGuiID,int)" +defs["ImGuiStorage_SetInt"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetInt"]["(ImGuiID,int)"] = defs["ImGuiStorage_SetInt"][1] +defs["ImGuiStorage_SetVoidPtr"] = {} +defs["ImGuiStorage_SetVoidPtr"][1] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,void* val)" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][3] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][3]["name"] = "val" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][3]["type"] = "void*" +defs["ImGuiStorage_SetVoidPtr"][1]["argsoriginal"] = "(ImGuiID key,void* val)" +defs["ImGuiStorage_SetVoidPtr"][1]["call_args"] = "(key,val)" +defs["ImGuiStorage_SetVoidPtr"][1]["cimguiname"] = "ImGuiStorage_SetVoidPtr" +defs["ImGuiStorage_SetVoidPtr"][1]["defaults"] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["funcname"] = "SetVoidPtr" +defs["ImGuiStorage_SetVoidPtr"][1]["location"] = "imgui:2369" +defs["ImGuiStorage_SetVoidPtr"][1]["ov_cimguiname"] = "ImGuiStorage_SetVoidPtr" +defs["ImGuiStorage_SetVoidPtr"][1]["ret"] = "void" +defs["ImGuiStorage_SetVoidPtr"][1]["signature"] = "(ImGuiID,void*)" +defs["ImGuiStorage_SetVoidPtr"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetVoidPtr"]["(ImGuiID,void*)"] = defs["ImGuiStorage_SetVoidPtr"][1] +defs["ImGuiStyle_ImGuiStyle"] = {} +defs["ImGuiStyle_ImGuiStyle"][1] = {} +defs["ImGuiStyle_ImGuiStyle"][1]["args"] = "()" +defs["ImGuiStyle_ImGuiStyle"][1]["argsT"] = {} +defs["ImGuiStyle_ImGuiStyle"][1]["argsoriginal"] = "()" +defs["ImGuiStyle_ImGuiStyle"][1]["call_args"] = "()" +defs["ImGuiStyle_ImGuiStyle"][1]["cimguiname"] = "ImGuiStyle_ImGuiStyle" +defs["ImGuiStyle_ImGuiStyle"][1]["constructor"] = true +defs["ImGuiStyle_ImGuiStyle"][1]["defaults"] = {} +defs["ImGuiStyle_ImGuiStyle"][1]["funcname"] = "ImGuiStyle" +defs["ImGuiStyle_ImGuiStyle"][1]["location"] = "imgui:1953" +defs["ImGuiStyle_ImGuiStyle"][1]["ov_cimguiname"] = "ImGuiStyle_ImGuiStyle" +defs["ImGuiStyle_ImGuiStyle"][1]["signature"] = "()" +defs["ImGuiStyle_ImGuiStyle"][1]["stname"] = "ImGuiStyle" +defs["ImGuiStyle_ImGuiStyle"]["()"] = defs["ImGuiStyle_ImGuiStyle"][1] +defs["ImGuiStyle_ScaleAllSizes"] = {} +defs["ImGuiStyle_ScaleAllSizes"][1] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["args"] = "(ImGuiStyle* self,float scale_factor)" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][1] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][2] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][2]["name"] = "scale_factor" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][2]["type"] = "float" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsoriginal"] = "(float scale_factor)" +defs["ImGuiStyle_ScaleAllSizes"][1]["call_args"] = "(scale_factor)" +defs["ImGuiStyle_ScaleAllSizes"][1]["cimguiname"] = "ImGuiStyle_ScaleAllSizes" +defs["ImGuiStyle_ScaleAllSizes"][1]["defaults"] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["funcname"] = "ScaleAllSizes" +defs["ImGuiStyle_ScaleAllSizes"][1]["location"] = "imgui:1954" +defs["ImGuiStyle_ScaleAllSizes"][1]["ov_cimguiname"] = "ImGuiStyle_ScaleAllSizes" +defs["ImGuiStyle_ScaleAllSizes"][1]["ret"] = "void" +defs["ImGuiStyle_ScaleAllSizes"][1]["signature"] = "(float)" +defs["ImGuiStyle_ScaleAllSizes"][1]["stname"] = "ImGuiStyle" +defs["ImGuiStyle_ScaleAllSizes"]["(float)"] = defs["ImGuiStyle_ScaleAllSizes"][1] +defs["ImGuiStyle_destroy"] = {} +defs["ImGuiStyle_destroy"][1] = {} +defs["ImGuiStyle_destroy"][1]["args"] = "(ImGuiStyle* self)" +defs["ImGuiStyle_destroy"][1]["argsT"] = {} +defs["ImGuiStyle_destroy"][1]["argsT"][1] = {} +defs["ImGuiStyle_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStyle_destroy"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["ImGuiStyle_destroy"][1]["call_args"] = "(self)" +defs["ImGuiStyle_destroy"][1]["cimguiname"] = "ImGuiStyle_destroy" +defs["ImGuiStyle_destroy"][1]["defaults"] = {} +defs["ImGuiStyle_destroy"][1]["destructor"] = true +defs["ImGuiStyle_destroy"][1]["ov_cimguiname"] = "ImGuiStyle_destroy" +defs["ImGuiStyle_destroy"][1]["ret"] = "void" +defs["ImGuiStyle_destroy"][1]["signature"] = "(ImGuiStyle*)" +defs["ImGuiStyle_destroy"][1]["stname"] = "ImGuiStyle" +defs["ImGuiStyle_destroy"]["(ImGuiStyle*)"] = defs["ImGuiStyle_destroy"][1] +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"] = {} +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1] = {} +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["args"] = "()" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["argsT"] = {} +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["argsoriginal"] = "()" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["call_args"] = "()" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["cimguiname"] = "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["constructor"] = true +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["defaults"] = {} +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["funcname"] = "ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["location"] = "imgui:2252" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["ov_cimguiname"] = "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["signature"] = "()" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["stname"] = "ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"]["()"] = defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1] +defs["ImGuiTableColumnSortSpecs_destroy"] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1]["args"] = "(ImGuiTableColumnSortSpecs* self)" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["argsT"] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["argsT"][1]["type"] = "ImGuiTableColumnSortSpecs*" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["cimguiname"] = "ImGuiTableColumnSortSpecs_destroy" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["defaults"] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1]["destructor"] = true +defs["ImGuiTableColumnSortSpecs_destroy"][1]["ov_cimguiname"] = "ImGuiTableColumnSortSpecs_destroy" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["ret"] = "void" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["signature"] = "(ImGuiTableColumnSortSpecs*)" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["stname"] = "ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_destroy"]["(ImGuiTableColumnSortSpecs*)"] = defs["ImGuiTableColumnSortSpecs_destroy"][1] +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"] = {} +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1] = {} +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["args"] = "()" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["argsT"] = {} +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["argsoriginal"] = "()" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["call_args"] = "()" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["cimguiname"] = "ImGuiTableSortSpecs_ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["constructor"] = true +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["defaults"] = {} +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["funcname"] = "ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["location"] = "imgui:2265" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["ov_cimguiname"] = "ImGuiTableSortSpecs_ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["signature"] = "()" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["stname"] = "ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"]["()"] = defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1] +defs["ImGuiTableSortSpecs_destroy"] = {} +defs["ImGuiTableSortSpecs_destroy"][1] = {} +defs["ImGuiTableSortSpecs_destroy"][1]["args"] = "(ImGuiTableSortSpecs* self)" +defs["ImGuiTableSortSpecs_destroy"][1]["argsT"] = {} +defs["ImGuiTableSortSpecs_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableSortSpecs_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableSortSpecs_destroy"][1]["argsT"][1]["type"] = "ImGuiTableSortSpecs*" +defs["ImGuiTableSortSpecs_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableSortSpecs_destroy"][1]["cimguiname"] = "ImGuiTableSortSpecs_destroy" +defs["ImGuiTableSortSpecs_destroy"][1]["defaults"] = {} +defs["ImGuiTableSortSpecs_destroy"][1]["destructor"] = true +defs["ImGuiTableSortSpecs_destroy"][1]["ov_cimguiname"] = "ImGuiTableSortSpecs_destroy" +defs["ImGuiTableSortSpecs_destroy"][1]["ret"] = "void" +defs["ImGuiTableSortSpecs_destroy"][1]["signature"] = "(ImGuiTableSortSpecs*)" +defs["ImGuiTableSortSpecs_destroy"][1]["stname"] = "ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_destroy"]["(ImGuiTableSortSpecs*)"] = defs["ImGuiTableSortSpecs_destroy"][1] +defs["ImGuiTextBuffer_ImGuiTextBuffer"] = {} +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1] = {} +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["args"] = "()" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["argsT"] = {} +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["cimguiname"] = "ImGuiTextBuffer_ImGuiTextBuffer" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["constructor"] = true +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["defaults"] = {} +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["funcname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["location"] = "imgui:2322" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["ov_cimguiname"] = "ImGuiTextBuffer_ImGuiTextBuffer" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["signature"] = "()" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_ImGuiTextBuffer"]["()"] = defs["ImGuiTextBuffer_ImGuiTextBuffer"][1] +defs["ImGuiTextBuffer_append"] = {} +defs["ImGuiTextBuffer_append"][1] = {} +defs["ImGuiTextBuffer_append"][1]["args"] = "(ImGuiTextBuffer* self,const char* str,const char* str_end)" +defs["ImGuiTextBuffer_append"][1]["argsT"] = {} +defs["ImGuiTextBuffer_append"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_append"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_append"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_append"][1]["argsT"][2] = {} +defs["ImGuiTextBuffer_append"][1]["argsT"][2]["name"] = "str" +defs["ImGuiTextBuffer_append"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextBuffer_append"][1]["argsT"][3] = {} +defs["ImGuiTextBuffer_append"][1]["argsT"][3]["name"] = "str_end" +defs["ImGuiTextBuffer_append"][1]["argsT"][3]["type"] = "const char*" +defs["ImGuiTextBuffer_append"][1]["argsoriginal"] = "(const char* str,const char* str_end=((void*)0))" +defs["ImGuiTextBuffer_append"][1]["call_args"] = "(str,str_end)" +defs["ImGuiTextBuffer_append"][1]["cimguiname"] = "ImGuiTextBuffer_append" +defs["ImGuiTextBuffer_append"][1]["defaults"] = {} +defs["ImGuiTextBuffer_append"][1]["defaults"]["str_end"] = "NULL" +defs["ImGuiTextBuffer_append"][1]["funcname"] = "append" +defs["ImGuiTextBuffer_append"][1]["location"] = "imgui:2331" +defs["ImGuiTextBuffer_append"][1]["ov_cimguiname"] = "ImGuiTextBuffer_append" +defs["ImGuiTextBuffer_append"][1]["ret"] = "void" +defs["ImGuiTextBuffer_append"][1]["signature"] = "(const char*,const char*)" +defs["ImGuiTextBuffer_append"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_append"]["(const char*,const char*)"] = defs["ImGuiTextBuffer_append"][1] +defs["ImGuiTextBuffer_appendf"] = {} +defs["ImGuiTextBuffer_appendf"][1] = {} +defs["ImGuiTextBuffer_appendf"][1]["args"] = "(ImGuiTextBuffer* self,const char* fmt,...)" +defs["ImGuiTextBuffer_appendf"][1]["argsT"] = {} +defs["ImGuiTextBuffer_appendf"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_appendf"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_appendf"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_appendf"][1]["argsT"][2] = {} +defs["ImGuiTextBuffer_appendf"][1]["argsT"][2]["name"] = "fmt" +defs["ImGuiTextBuffer_appendf"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextBuffer_appendf"][1]["argsT"][3] = {} +defs["ImGuiTextBuffer_appendf"][1]["argsT"][3]["name"] = "..." +defs["ImGuiTextBuffer_appendf"][1]["argsT"][3]["type"] = "..." +defs["ImGuiTextBuffer_appendf"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["ImGuiTextBuffer_appendf"][1]["call_args"] = "(fmt,...)" +defs["ImGuiTextBuffer_appendf"][1]["cimguiname"] = "ImGuiTextBuffer_appendf" +defs["ImGuiTextBuffer_appendf"][1]["defaults"] = {} +defs["ImGuiTextBuffer_appendf"][1]["funcname"] = "appendf" +defs["ImGuiTextBuffer_appendf"][1]["isvararg"] = "...)" +defs["ImGuiTextBuffer_appendf"][1]["location"] = "imgui:2332" +defs["ImGuiTextBuffer_appendf"][1]["manual"] = true +defs["ImGuiTextBuffer_appendf"][1]["ov_cimguiname"] = "ImGuiTextBuffer_appendf" +defs["ImGuiTextBuffer_appendf"][1]["ret"] = "void" +defs["ImGuiTextBuffer_appendf"][1]["signature"] = "(const char*,...)" +defs["ImGuiTextBuffer_appendf"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_appendf"]["(const char*,...)"] = defs["ImGuiTextBuffer_appendf"][1] +defs["ImGuiTextBuffer_appendfv"] = {} +defs["ImGuiTextBuffer_appendfv"][1] = {} +defs["ImGuiTextBuffer_appendfv"][1]["args"] = "(ImGuiTextBuffer* self,const char* fmt,va_list args)" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"] = {} +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][2] = {} +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][2]["name"] = "fmt" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][3] = {} +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][3]["name"] = "args" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][3]["type"] = "va_list" +defs["ImGuiTextBuffer_appendfv"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["ImGuiTextBuffer_appendfv"][1]["call_args"] = "(fmt,args)" +defs["ImGuiTextBuffer_appendfv"][1]["cimguiname"] = "ImGuiTextBuffer_appendfv" +defs["ImGuiTextBuffer_appendfv"][1]["defaults"] = {} +defs["ImGuiTextBuffer_appendfv"][1]["funcname"] = "appendfv" +defs["ImGuiTextBuffer_appendfv"][1]["location"] = "imgui:2333" +defs["ImGuiTextBuffer_appendfv"][1]["ov_cimguiname"] = "ImGuiTextBuffer_appendfv" +defs["ImGuiTextBuffer_appendfv"][1]["ret"] = "void" +defs["ImGuiTextBuffer_appendfv"][1]["signature"] = "(const char*,va_list)" +defs["ImGuiTextBuffer_appendfv"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_appendfv"]["(const char*,va_list)"] = defs["ImGuiTextBuffer_appendfv"][1] +defs["ImGuiTextBuffer_begin"] = {} +defs["ImGuiTextBuffer_begin"][1] = {} +defs["ImGuiTextBuffer_begin"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_begin"][1]["argsT"] = {} +defs["ImGuiTextBuffer_begin"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_begin"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_begin"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_begin"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_begin"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_begin"][1]["cimguiname"] = "ImGuiTextBuffer_begin" +defs["ImGuiTextBuffer_begin"][1]["defaults"] = {} +defs["ImGuiTextBuffer_begin"][1]["funcname"] = "begin" +defs["ImGuiTextBuffer_begin"][1]["location"] = "imgui:2324" +defs["ImGuiTextBuffer_begin"][1]["ov_cimguiname"] = "ImGuiTextBuffer_begin" +defs["ImGuiTextBuffer_begin"][1]["ret"] = "const char*" +defs["ImGuiTextBuffer_begin"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_begin"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_begin"]["()const"] = defs["ImGuiTextBuffer_begin"][1] +defs["ImGuiTextBuffer_c_str"] = {} +defs["ImGuiTextBuffer_c_str"][1] = {} +defs["ImGuiTextBuffer_c_str"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_c_str"][1]["argsT"] = {} +defs["ImGuiTextBuffer_c_str"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_c_str"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_c_str"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_c_str"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_c_str"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_c_str"][1]["cimguiname"] = "ImGuiTextBuffer_c_str" +defs["ImGuiTextBuffer_c_str"][1]["defaults"] = {} +defs["ImGuiTextBuffer_c_str"][1]["funcname"] = "c_str" +defs["ImGuiTextBuffer_c_str"][1]["location"] = "imgui:2330" +defs["ImGuiTextBuffer_c_str"][1]["ov_cimguiname"] = "ImGuiTextBuffer_c_str" +defs["ImGuiTextBuffer_c_str"][1]["ret"] = "const char*" +defs["ImGuiTextBuffer_c_str"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_c_str"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_c_str"]["()const"] = defs["ImGuiTextBuffer_c_str"][1] +defs["ImGuiTextBuffer_clear"] = {} +defs["ImGuiTextBuffer_clear"][1] = {} +defs["ImGuiTextBuffer_clear"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_clear"][1]["argsT"] = {} +defs["ImGuiTextBuffer_clear"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_clear"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_clear"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_clear"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_clear"][1]["cimguiname"] = "ImGuiTextBuffer_clear" +defs["ImGuiTextBuffer_clear"][1]["defaults"] = {} +defs["ImGuiTextBuffer_clear"][1]["funcname"] = "clear" +defs["ImGuiTextBuffer_clear"][1]["location"] = "imgui:2328" +defs["ImGuiTextBuffer_clear"][1]["ov_cimguiname"] = "ImGuiTextBuffer_clear" +defs["ImGuiTextBuffer_clear"][1]["ret"] = "void" +defs["ImGuiTextBuffer_clear"][1]["signature"] = "()" +defs["ImGuiTextBuffer_clear"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_clear"]["()"] = defs["ImGuiTextBuffer_clear"][1] +defs["ImGuiTextBuffer_destroy"] = {} +defs["ImGuiTextBuffer_destroy"][1] = {} +defs["ImGuiTextBuffer_destroy"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_destroy"][1]["argsT"] = {} +defs["ImGuiTextBuffer_destroy"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_destroy"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTextBuffer_destroy"][1]["cimguiname"] = "ImGuiTextBuffer_destroy" +defs["ImGuiTextBuffer_destroy"][1]["defaults"] = {} +defs["ImGuiTextBuffer_destroy"][1]["destructor"] = true +defs["ImGuiTextBuffer_destroy"][1]["ov_cimguiname"] = "ImGuiTextBuffer_destroy" +defs["ImGuiTextBuffer_destroy"][1]["ret"] = "void" +defs["ImGuiTextBuffer_destroy"][1]["signature"] = "(ImGuiTextBuffer*)" +defs["ImGuiTextBuffer_destroy"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_destroy"]["(ImGuiTextBuffer*)"] = defs["ImGuiTextBuffer_destroy"][1] +defs["ImGuiTextBuffer_empty"] = {} +defs["ImGuiTextBuffer_empty"][1] = {} +defs["ImGuiTextBuffer_empty"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_empty"][1]["argsT"] = {} +defs["ImGuiTextBuffer_empty"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_empty"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_empty"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_empty"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_empty"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_empty"][1]["cimguiname"] = "ImGuiTextBuffer_empty" +defs["ImGuiTextBuffer_empty"][1]["defaults"] = {} +defs["ImGuiTextBuffer_empty"][1]["funcname"] = "empty" +defs["ImGuiTextBuffer_empty"][1]["location"] = "imgui:2327" +defs["ImGuiTextBuffer_empty"][1]["ov_cimguiname"] = "ImGuiTextBuffer_empty" +defs["ImGuiTextBuffer_empty"][1]["ret"] = "bool" +defs["ImGuiTextBuffer_empty"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_empty"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_empty"]["()const"] = defs["ImGuiTextBuffer_empty"][1] +defs["ImGuiTextBuffer_end"] = {} +defs["ImGuiTextBuffer_end"][1] = {} +defs["ImGuiTextBuffer_end"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_end"][1]["argsT"] = {} +defs["ImGuiTextBuffer_end"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_end"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_end"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_end"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_end"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_end"][1]["cimguiname"] = "ImGuiTextBuffer_end" +defs["ImGuiTextBuffer_end"][1]["defaults"] = {} +defs["ImGuiTextBuffer_end"][1]["funcname"] = "end" +defs["ImGuiTextBuffer_end"][1]["location"] = "imgui:2325" +defs["ImGuiTextBuffer_end"][1]["ov_cimguiname"] = "ImGuiTextBuffer_end" +defs["ImGuiTextBuffer_end"][1]["ret"] = "const char*" +defs["ImGuiTextBuffer_end"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_end"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_end"]["()const"] = defs["ImGuiTextBuffer_end"][1] +defs["ImGuiTextBuffer_reserve"] = {} +defs["ImGuiTextBuffer_reserve"][1] = {} +defs["ImGuiTextBuffer_reserve"][1]["args"] = "(ImGuiTextBuffer* self,int capacity)" +defs["ImGuiTextBuffer_reserve"][1]["argsT"] = {} +defs["ImGuiTextBuffer_reserve"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_reserve"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_reserve"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_reserve"][1]["argsT"][2] = {} +defs["ImGuiTextBuffer_reserve"][1]["argsT"][2]["name"] = "capacity" +defs["ImGuiTextBuffer_reserve"][1]["argsT"][2]["type"] = "int" +defs["ImGuiTextBuffer_reserve"][1]["argsoriginal"] = "(int capacity)" +defs["ImGuiTextBuffer_reserve"][1]["call_args"] = "(capacity)" +defs["ImGuiTextBuffer_reserve"][1]["cimguiname"] = "ImGuiTextBuffer_reserve" +defs["ImGuiTextBuffer_reserve"][1]["defaults"] = {} +defs["ImGuiTextBuffer_reserve"][1]["funcname"] = "reserve" +defs["ImGuiTextBuffer_reserve"][1]["location"] = "imgui:2329" +defs["ImGuiTextBuffer_reserve"][1]["ov_cimguiname"] = "ImGuiTextBuffer_reserve" +defs["ImGuiTextBuffer_reserve"][1]["ret"] = "void" +defs["ImGuiTextBuffer_reserve"][1]["signature"] = "(int)" +defs["ImGuiTextBuffer_reserve"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_reserve"]["(int)"] = defs["ImGuiTextBuffer_reserve"][1] +defs["ImGuiTextBuffer_size"] = {} +defs["ImGuiTextBuffer_size"][1] = {} +defs["ImGuiTextBuffer_size"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_size"][1]["argsT"] = {} +defs["ImGuiTextBuffer_size"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_size"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_size"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_size"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_size"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_size"][1]["cimguiname"] = "ImGuiTextBuffer_size" +defs["ImGuiTextBuffer_size"][1]["defaults"] = {} +defs["ImGuiTextBuffer_size"][1]["funcname"] = "size" +defs["ImGuiTextBuffer_size"][1]["location"] = "imgui:2326" +defs["ImGuiTextBuffer_size"][1]["ov_cimguiname"] = "ImGuiTextBuffer_size" +defs["ImGuiTextBuffer_size"][1]["ret"] = "int" +defs["ImGuiTextBuffer_size"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_size"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_size"]["()const"] = defs["ImGuiTextBuffer_size"][1] +defs["ImGuiTextFilter_Build"] = {} +defs["ImGuiTextFilter_Build"][1] = {} +defs["ImGuiTextFilter_Build"][1]["args"] = "(ImGuiTextFilter* self)" +defs["ImGuiTextFilter_Build"][1]["argsT"] = {} +defs["ImGuiTextFilter_Build"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_Build"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_Build"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_Build"][1]["argsoriginal"] = "()" +defs["ImGuiTextFilter_Build"][1]["call_args"] = "()" +defs["ImGuiTextFilter_Build"][1]["cimguiname"] = "ImGuiTextFilter_Build" +defs["ImGuiTextFilter_Build"][1]["defaults"] = {} +defs["ImGuiTextFilter_Build"][1]["funcname"] = "Build" +defs["ImGuiTextFilter_Build"][1]["location"] = "imgui:2295" +defs["ImGuiTextFilter_Build"][1]["ov_cimguiname"] = "ImGuiTextFilter_Build" +defs["ImGuiTextFilter_Build"][1]["ret"] = "void" +defs["ImGuiTextFilter_Build"][1]["signature"] = "()" +defs["ImGuiTextFilter_Build"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_Build"]["()"] = defs["ImGuiTextFilter_Build"][1] +defs["ImGuiTextFilter_Clear"] = {} +defs["ImGuiTextFilter_Clear"][1] = {} +defs["ImGuiTextFilter_Clear"][1]["args"] = "(ImGuiTextFilter* self)" +defs["ImGuiTextFilter_Clear"][1]["argsT"] = {} +defs["ImGuiTextFilter_Clear"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_Clear"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_Clear"][1]["argsoriginal"] = "()" +defs["ImGuiTextFilter_Clear"][1]["call_args"] = "()" +defs["ImGuiTextFilter_Clear"][1]["cimguiname"] = "ImGuiTextFilter_Clear" +defs["ImGuiTextFilter_Clear"][1]["defaults"] = {} +defs["ImGuiTextFilter_Clear"][1]["funcname"] = "Clear" +defs["ImGuiTextFilter_Clear"][1]["location"] = "imgui:2296" +defs["ImGuiTextFilter_Clear"][1]["ov_cimguiname"] = "ImGuiTextFilter_Clear" +defs["ImGuiTextFilter_Clear"][1]["ret"] = "void" +defs["ImGuiTextFilter_Clear"][1]["signature"] = "()" +defs["ImGuiTextFilter_Clear"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_Clear"]["()"] = defs["ImGuiTextFilter_Clear"][1] +defs["ImGuiTextFilter_Draw"] = {} +defs["ImGuiTextFilter_Draw"][1] = {} +defs["ImGuiTextFilter_Draw"][1]["args"] = "(ImGuiTextFilter* self,const char* label,float width)" +defs["ImGuiTextFilter_Draw"][1]["argsT"] = {} +defs["ImGuiTextFilter_Draw"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_Draw"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_Draw"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_Draw"][1]["argsT"][2] = {} +defs["ImGuiTextFilter_Draw"][1]["argsT"][2]["name"] = "label" +defs["ImGuiTextFilter_Draw"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextFilter_Draw"][1]["argsT"][3] = {} +defs["ImGuiTextFilter_Draw"][1]["argsT"][3]["name"] = "width" +defs["ImGuiTextFilter_Draw"][1]["argsT"][3]["type"] = "float" +defs["ImGuiTextFilter_Draw"][1]["argsoriginal"] = "(const char* label=\"Filter(inc,-exc)\",float width=0.0f)" +defs["ImGuiTextFilter_Draw"][1]["call_args"] = "(label,width)" +defs["ImGuiTextFilter_Draw"][1]["cimguiname"] = "ImGuiTextFilter_Draw" +defs["ImGuiTextFilter_Draw"][1]["defaults"] = {} +defs["ImGuiTextFilter_Draw"][1]["defaults"]["label"] = "\"Filter(inc,-exc)\"" +defs["ImGuiTextFilter_Draw"][1]["defaults"]["width"] = "0.0f" +defs["ImGuiTextFilter_Draw"][1]["funcname"] = "Draw" +defs["ImGuiTextFilter_Draw"][1]["location"] = "imgui:2293" +defs["ImGuiTextFilter_Draw"][1]["ov_cimguiname"] = "ImGuiTextFilter_Draw" +defs["ImGuiTextFilter_Draw"][1]["ret"] = "bool" +defs["ImGuiTextFilter_Draw"][1]["signature"] = "(const char*,float)" +defs["ImGuiTextFilter_Draw"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_Draw"]["(const char*,float)"] = defs["ImGuiTextFilter_Draw"][1] +defs["ImGuiTextFilter_ImGuiTextFilter"] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["args"] = "(const char* default_filter)" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsT"] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsT"][1]["name"] = "default_filter" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsT"][1]["type"] = "const char*" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsoriginal"] = "(const char* default_filter=\"\")" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["call_args"] = "(default_filter)" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["cimguiname"] = "ImGuiTextFilter_ImGuiTextFilter" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["constructor"] = true +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["defaults"] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["defaults"]["default_filter"] = "\"\"" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["funcname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["location"] = "imgui:2292" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["ov_cimguiname"] = "ImGuiTextFilter_ImGuiTextFilter" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["signature"] = "(const char*)" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_ImGuiTextFilter"]["(const char*)"] = defs["ImGuiTextFilter_ImGuiTextFilter"][1] +defs["ImGuiTextFilter_IsActive"] = {} +defs["ImGuiTextFilter_IsActive"][1] = {} +defs["ImGuiTextFilter_IsActive"][1]["args"] = "(ImGuiTextFilter* self)" +defs["ImGuiTextFilter_IsActive"][1]["argsT"] = {} +defs["ImGuiTextFilter_IsActive"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_IsActive"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_IsActive"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_IsActive"][1]["argsoriginal"] = "()" +defs["ImGuiTextFilter_IsActive"][1]["call_args"] = "()" +defs["ImGuiTextFilter_IsActive"][1]["cimguiname"] = "ImGuiTextFilter_IsActive" +defs["ImGuiTextFilter_IsActive"][1]["defaults"] = {} +defs["ImGuiTextFilter_IsActive"][1]["funcname"] = "IsActive" +defs["ImGuiTextFilter_IsActive"][1]["location"] = "imgui:2297" +defs["ImGuiTextFilter_IsActive"][1]["ov_cimguiname"] = "ImGuiTextFilter_IsActive" +defs["ImGuiTextFilter_IsActive"][1]["ret"] = "bool" +defs["ImGuiTextFilter_IsActive"][1]["signature"] = "()const" +defs["ImGuiTextFilter_IsActive"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_IsActive"]["()const"] = defs["ImGuiTextFilter_IsActive"][1] +defs["ImGuiTextFilter_PassFilter"] = {} +defs["ImGuiTextFilter_PassFilter"][1] = {} +defs["ImGuiTextFilter_PassFilter"][1]["args"] = "(ImGuiTextFilter* self,const char* text,const char* text_end)" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"] = {} +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][2] = {} +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][2]["name"] = "text" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][3] = {} +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][3]["name"] = "text_end" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][3]["type"] = "const char*" +defs["ImGuiTextFilter_PassFilter"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0))" +defs["ImGuiTextFilter_PassFilter"][1]["call_args"] = "(text,text_end)" +defs["ImGuiTextFilter_PassFilter"][1]["cimguiname"] = "ImGuiTextFilter_PassFilter" +defs["ImGuiTextFilter_PassFilter"][1]["defaults"] = {} +defs["ImGuiTextFilter_PassFilter"][1]["defaults"]["text_end"] = "NULL" +defs["ImGuiTextFilter_PassFilter"][1]["funcname"] = "PassFilter" +defs["ImGuiTextFilter_PassFilter"][1]["location"] = "imgui:2294" +defs["ImGuiTextFilter_PassFilter"][1]["ov_cimguiname"] = "ImGuiTextFilter_PassFilter" +defs["ImGuiTextFilter_PassFilter"][1]["ret"] = "bool" +defs["ImGuiTextFilter_PassFilter"][1]["signature"] = "(const char*,const char*)const" +defs["ImGuiTextFilter_PassFilter"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_PassFilter"]["(const char*,const char*)const"] = defs["ImGuiTextFilter_PassFilter"][1] +defs["ImGuiTextFilter_destroy"] = {} +defs["ImGuiTextFilter_destroy"][1] = {} +defs["ImGuiTextFilter_destroy"][1]["args"] = "(ImGuiTextFilter* self)" +defs["ImGuiTextFilter_destroy"][1]["argsT"] = {} +defs["ImGuiTextFilter_destroy"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_destroy"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTextFilter_destroy"][1]["cimguiname"] = "ImGuiTextFilter_destroy" +defs["ImGuiTextFilter_destroy"][1]["defaults"] = {} +defs["ImGuiTextFilter_destroy"][1]["destructor"] = true +defs["ImGuiTextFilter_destroy"][1]["ov_cimguiname"] = "ImGuiTextFilter_destroy" +defs["ImGuiTextFilter_destroy"][1]["ret"] = "void" +defs["ImGuiTextFilter_destroy"][1]["signature"] = "(ImGuiTextFilter*)" +defs["ImGuiTextFilter_destroy"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_destroy"]["(ImGuiTextFilter*)"] = defs["ImGuiTextFilter_destroy"][1] +defs["ImGuiTextRange_ImGuiTextRange"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][1] = {} +defs["ImGuiTextRange_ImGuiTextRange"][1]["args"] = "()" +defs["ImGuiTextRange_ImGuiTextRange"][1]["argsT"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][1]["argsoriginal"] = "()" +defs["ImGuiTextRange_ImGuiTextRange"][1]["call_args"] = "()" +defs["ImGuiTextRange_ImGuiTextRange"][1]["cimguiname"] = "ImGuiTextRange_ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][1]["constructor"] = true +defs["ImGuiTextRange_ImGuiTextRange"][1]["defaults"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][1]["funcname"] = "ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][1]["location"] = "imgui:2305" +defs["ImGuiTextRange_ImGuiTextRange"][1]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRange_Nil" +defs["ImGuiTextRange_ImGuiTextRange"][1]["signature"] = "()" +defs["ImGuiTextRange_ImGuiTextRange"][1]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][2] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["args"] = "(const char* _b,const char* _e)" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][1] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][1]["name"] = "_b" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][1]["type"] = "const char*" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][2] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][2]["name"] = "_e" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsoriginal"] = "(const char* _b,const char* _e)" +defs["ImGuiTextRange_ImGuiTextRange"][2]["call_args"] = "(_b,_e)" +defs["ImGuiTextRange_ImGuiTextRange"][2]["cimguiname"] = "ImGuiTextRange_ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][2]["constructor"] = true +defs["ImGuiTextRange_ImGuiTextRange"][2]["defaults"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["funcname"] = "ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][2]["location"] = "imgui:2306" +defs["ImGuiTextRange_ImGuiTextRange"][2]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRange_Str" +defs["ImGuiTextRange_ImGuiTextRange"][2]["signature"] = "(const char*,const char*)" +defs["ImGuiTextRange_ImGuiTextRange"][2]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"]["()"] = defs["ImGuiTextRange_ImGuiTextRange"][1] +defs["ImGuiTextRange_ImGuiTextRange"]["(const char*,const char*)"] = defs["ImGuiTextRange_ImGuiTextRange"][2] +defs["ImGuiTextRange_destroy"] = {} +defs["ImGuiTextRange_destroy"][1] = {} +defs["ImGuiTextRange_destroy"][1]["args"] = "(ImGuiTextRange* self)" +defs["ImGuiTextRange_destroy"][1]["argsT"] = {} +defs["ImGuiTextRange_destroy"][1]["argsT"][1] = {} +defs["ImGuiTextRange_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextRange_destroy"][1]["argsT"][1]["type"] = "ImGuiTextRange*" +defs["ImGuiTextRange_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTextRange_destroy"][1]["cimguiname"] = "ImGuiTextRange_destroy" +defs["ImGuiTextRange_destroy"][1]["defaults"] = {} +defs["ImGuiTextRange_destroy"][1]["destructor"] = true +defs["ImGuiTextRange_destroy"][1]["ov_cimguiname"] = "ImGuiTextRange_destroy" +defs["ImGuiTextRange_destroy"][1]["ret"] = "void" +defs["ImGuiTextRange_destroy"][1]["signature"] = "(ImGuiTextRange*)" +defs["ImGuiTextRange_destroy"][1]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_destroy"]["(ImGuiTextRange*)"] = defs["ImGuiTextRange_destroy"][1] +defs["ImGuiTextRange_empty"] = {} +defs["ImGuiTextRange_empty"][1] = {} +defs["ImGuiTextRange_empty"][1]["args"] = "(ImGuiTextRange* self)" +defs["ImGuiTextRange_empty"][1]["argsT"] = {} +defs["ImGuiTextRange_empty"][1]["argsT"][1] = {} +defs["ImGuiTextRange_empty"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextRange_empty"][1]["argsT"][1]["type"] = "ImGuiTextRange*" +defs["ImGuiTextRange_empty"][1]["argsoriginal"] = "()" +defs["ImGuiTextRange_empty"][1]["call_args"] = "()" +defs["ImGuiTextRange_empty"][1]["cimguiname"] = "ImGuiTextRange_empty" +defs["ImGuiTextRange_empty"][1]["defaults"] = {} +defs["ImGuiTextRange_empty"][1]["funcname"] = "empty" +defs["ImGuiTextRange_empty"][1]["location"] = "imgui:2307" +defs["ImGuiTextRange_empty"][1]["ov_cimguiname"] = "ImGuiTextRange_empty" +defs["ImGuiTextRange_empty"][1]["ret"] = "bool" +defs["ImGuiTextRange_empty"][1]["signature"] = "()const" +defs["ImGuiTextRange_empty"][1]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_empty"]["()const"] = defs["ImGuiTextRange_empty"][1] +defs["ImGuiTextRange_split"] = {} +defs["ImGuiTextRange_split"][1] = {} +defs["ImGuiTextRange_split"][1]["args"] = "(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out)" +defs["ImGuiTextRange_split"][1]["argsT"] = {} +defs["ImGuiTextRange_split"][1]["argsT"][1] = {} +defs["ImGuiTextRange_split"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextRange_split"][1]["argsT"][1]["type"] = "ImGuiTextRange*" +defs["ImGuiTextRange_split"][1]["argsT"][2] = {} +defs["ImGuiTextRange_split"][1]["argsT"][2]["name"] = "separator" +defs["ImGuiTextRange_split"][1]["argsT"][2]["type"] = "char" +defs["ImGuiTextRange_split"][1]["argsT"][3] = {} +defs["ImGuiTextRange_split"][1]["argsT"][3]["name"] = "out" +defs["ImGuiTextRange_split"][1]["argsT"][3]["type"] = "ImVector_ImGuiTextRange*" +defs["ImGuiTextRange_split"][1]["argsoriginal"] = "(char separator,ImVector* out)" +defs["ImGuiTextRange_split"][1]["call_args"] = "(separator,out)" +defs["ImGuiTextRange_split"][1]["cimguiname"] = "ImGuiTextRange_split" +defs["ImGuiTextRange_split"][1]["defaults"] = {} +defs["ImGuiTextRange_split"][1]["funcname"] = "split" +defs["ImGuiTextRange_split"][1]["location"] = "imgui:2308" +defs["ImGuiTextRange_split"][1]["ov_cimguiname"] = "ImGuiTextRange_split" +defs["ImGuiTextRange_split"][1]["ret"] = "void" +defs["ImGuiTextRange_split"][1]["signature"] = "(char,ImVector_ImGuiTextRange*)const" +defs["ImGuiTextRange_split"][1]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_split"]["(char,ImVector_ImGuiTextRange*)const"] = defs["ImGuiTextRange_split"][1] +defs["ImGuiViewport_GetCenter"] = {} +defs["ImGuiViewport_GetCenter"][1] = {} +defs["ImGuiViewport_GetCenter"][1]["args"] = "(ImVec2 *pOut,ImGuiViewport* self)" +defs["ImGuiViewport_GetCenter"][1]["argsT"] = {} +defs["ImGuiViewport_GetCenter"][1]["argsT"][1] = {} +defs["ImGuiViewport_GetCenter"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiViewport_GetCenter"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImGuiViewport_GetCenter"][1]["argsT"][2] = {} +defs["ImGuiViewport_GetCenter"][1]["argsT"][2]["name"] = "self" +defs["ImGuiViewport_GetCenter"][1]["argsT"][2]["type"] = "ImGuiViewport*" +defs["ImGuiViewport_GetCenter"][1]["argsoriginal"] = "()" +defs["ImGuiViewport_GetCenter"][1]["call_args"] = "()" +defs["ImGuiViewport_GetCenter"][1]["cimguiname"] = "ImGuiViewport_GetCenter" +defs["ImGuiViewport_GetCenter"][1]["defaults"] = {} +defs["ImGuiViewport_GetCenter"][1]["funcname"] = "GetCenter" +defs["ImGuiViewport_GetCenter"][1]["location"] = "imgui:3070" +defs["ImGuiViewport_GetCenter"][1]["nonUDT"] = 1 +defs["ImGuiViewport_GetCenter"][1]["ov_cimguiname"] = "ImGuiViewport_GetCenter" +defs["ImGuiViewport_GetCenter"][1]["ret"] = "void" +defs["ImGuiViewport_GetCenter"][1]["signature"] = "()const" +defs["ImGuiViewport_GetCenter"][1]["stname"] = "ImGuiViewport" +defs["ImGuiViewport_GetCenter"]["()const"] = defs["ImGuiViewport_GetCenter"][1] +defs["ImGuiViewport_GetWorkCenter"] = {} +defs["ImGuiViewport_GetWorkCenter"][1] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["args"] = "(ImVec2 *pOut,ImGuiViewport* self)" +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][1] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][2] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][2]["name"] = "self" +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][2]["type"] = "ImGuiViewport*" +defs["ImGuiViewport_GetWorkCenter"][1]["argsoriginal"] = "()" +defs["ImGuiViewport_GetWorkCenter"][1]["call_args"] = "()" +defs["ImGuiViewport_GetWorkCenter"][1]["cimguiname"] = "ImGuiViewport_GetWorkCenter" +defs["ImGuiViewport_GetWorkCenter"][1]["defaults"] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["funcname"] = "GetWorkCenter" +defs["ImGuiViewport_GetWorkCenter"][1]["location"] = "imgui:3071" +defs["ImGuiViewport_GetWorkCenter"][1]["nonUDT"] = 1 +defs["ImGuiViewport_GetWorkCenter"][1]["ov_cimguiname"] = "ImGuiViewport_GetWorkCenter" +defs["ImGuiViewport_GetWorkCenter"][1]["ret"] = "void" +defs["ImGuiViewport_GetWorkCenter"][1]["signature"] = "()const" +defs["ImGuiViewport_GetWorkCenter"][1]["stname"] = "ImGuiViewport" +defs["ImGuiViewport_GetWorkCenter"]["()const"] = defs["ImGuiViewport_GetWorkCenter"][1] +defs["ImGuiViewport_ImGuiViewport"] = {} +defs["ImGuiViewport_ImGuiViewport"][1] = {} +defs["ImGuiViewport_ImGuiViewport"][1]["args"] = "()" +defs["ImGuiViewport_ImGuiViewport"][1]["argsT"] = {} +defs["ImGuiViewport_ImGuiViewport"][1]["argsoriginal"] = "()" +defs["ImGuiViewport_ImGuiViewport"][1]["call_args"] = "()" +defs["ImGuiViewport_ImGuiViewport"][1]["cimguiname"] = "ImGuiViewport_ImGuiViewport" +defs["ImGuiViewport_ImGuiViewport"][1]["constructor"] = true +defs["ImGuiViewport_ImGuiViewport"][1]["defaults"] = {} +defs["ImGuiViewport_ImGuiViewport"][1]["funcname"] = "ImGuiViewport" +defs["ImGuiViewport_ImGuiViewport"][1]["location"] = "imgui:3066" +defs["ImGuiViewport_ImGuiViewport"][1]["ov_cimguiname"] = "ImGuiViewport_ImGuiViewport" +defs["ImGuiViewport_ImGuiViewport"][1]["signature"] = "()" +defs["ImGuiViewport_ImGuiViewport"][1]["stname"] = "ImGuiViewport" +defs["ImGuiViewport_ImGuiViewport"]["()"] = defs["ImGuiViewport_ImGuiViewport"][1] +defs["ImGuiViewport_destroy"] = {} +defs["ImGuiViewport_destroy"][1] = {} +defs["ImGuiViewport_destroy"][1]["args"] = "(ImGuiViewport* self)" +defs["ImGuiViewport_destroy"][1]["argsT"] = {} +defs["ImGuiViewport_destroy"][1]["argsT"][1] = {} +defs["ImGuiViewport_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiViewport_destroy"][1]["argsT"][1]["type"] = "ImGuiViewport*" +defs["ImGuiViewport_destroy"][1]["call_args"] = "(self)" +defs["ImGuiViewport_destroy"][1]["cimguiname"] = "ImGuiViewport_destroy" +defs["ImGuiViewport_destroy"][1]["defaults"] = {} +defs["ImGuiViewport_destroy"][1]["destructor"] = true +defs["ImGuiViewport_destroy"][1]["location"] = "imgui:3067" +defs["ImGuiViewport_destroy"][1]["ov_cimguiname"] = "ImGuiViewport_destroy" +defs["ImGuiViewport_destroy"][1]["realdestructor"] = true +defs["ImGuiViewport_destroy"][1]["ret"] = "void" +defs["ImGuiViewport_destroy"][1]["signature"] = "(ImGuiViewport*)" +defs["ImGuiViewport_destroy"][1]["stname"] = "ImGuiViewport" +defs["ImGuiViewport_destroy"]["(ImGuiViewport*)"] = defs["ImGuiViewport_destroy"][1] +defs["ImGuiWindowClass_ImGuiWindowClass"] = {} +defs["ImGuiWindowClass_ImGuiWindowClass"][1] = {} +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["args"] = "()" +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["argsT"] = {} +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["argsoriginal"] = "()" +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["call_args"] = "()" +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["cimguiname"] = "ImGuiWindowClass_ImGuiWindowClass" +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["constructor"] = true +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["defaults"] = {} +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["funcname"] = "ImGuiWindowClass" +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["location"] = "imgui:2219" +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["ov_cimguiname"] = "ImGuiWindowClass_ImGuiWindowClass" +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["signature"] = "()" +defs["ImGuiWindowClass_ImGuiWindowClass"][1]["stname"] = "ImGuiWindowClass" +defs["ImGuiWindowClass_ImGuiWindowClass"]["()"] = defs["ImGuiWindowClass_ImGuiWindowClass"][1] +defs["ImGuiWindowClass_destroy"] = {} +defs["ImGuiWindowClass_destroy"][1] = {} +defs["ImGuiWindowClass_destroy"][1]["args"] = "(ImGuiWindowClass* self)" +defs["ImGuiWindowClass_destroy"][1]["argsT"] = {} +defs["ImGuiWindowClass_destroy"][1]["argsT"][1] = {} +defs["ImGuiWindowClass_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiWindowClass_destroy"][1]["argsT"][1]["type"] = "ImGuiWindowClass*" +defs["ImGuiWindowClass_destroy"][1]["call_args"] = "(self)" +defs["ImGuiWindowClass_destroy"][1]["cimguiname"] = "ImGuiWindowClass_destroy" +defs["ImGuiWindowClass_destroy"][1]["defaults"] = {} +defs["ImGuiWindowClass_destroy"][1]["destructor"] = true +defs["ImGuiWindowClass_destroy"][1]["ov_cimguiname"] = "ImGuiWindowClass_destroy" +defs["ImGuiWindowClass_destroy"][1]["ret"] = "void" +defs["ImGuiWindowClass_destroy"][1]["signature"] = "(ImGuiWindowClass*)" +defs["ImGuiWindowClass_destroy"][1]["stname"] = "ImGuiWindowClass" +defs["ImGuiWindowClass_destroy"]["(ImGuiWindowClass*)"] = defs["ImGuiWindowClass_destroy"][1] +defs["ImVec2_ImVec2"] = {} +defs["ImVec2_ImVec2"][1] = {} +defs["ImVec2_ImVec2"][1]["args"] = "()" +defs["ImVec2_ImVec2"][1]["argsT"] = {} +defs["ImVec2_ImVec2"][1]["argsoriginal"] = "()" +defs["ImVec2_ImVec2"][1]["call_args"] = "()" +defs["ImVec2_ImVec2"][1]["cimguiname"] = "ImVec2_ImVec2" +defs["ImVec2_ImVec2"][1]["constructor"] = true +defs["ImVec2_ImVec2"][1]["defaults"] = {} +defs["ImVec2_ImVec2"][1]["funcname"] = "ImVec2" +defs["ImVec2_ImVec2"][1]["location"] = "imgui:262" +defs["ImVec2_ImVec2"][1]["ov_cimguiname"] = "ImVec2_ImVec2_Nil" +defs["ImVec2_ImVec2"][1]["signature"] = "()" +defs["ImVec2_ImVec2"][1]["stname"] = "ImVec2" +defs["ImVec2_ImVec2"][2] = {} +defs["ImVec2_ImVec2"][2]["args"] = "(float _x,float _y)" +defs["ImVec2_ImVec2"][2]["argsT"] = {} +defs["ImVec2_ImVec2"][2]["argsT"][1] = {} +defs["ImVec2_ImVec2"][2]["argsT"][1]["name"] = "_x" +defs["ImVec2_ImVec2"][2]["argsT"][1]["type"] = "float" +defs["ImVec2_ImVec2"][2]["argsT"][2] = {} +defs["ImVec2_ImVec2"][2]["argsT"][2]["name"] = "_y" +defs["ImVec2_ImVec2"][2]["argsT"][2]["type"] = "float" +defs["ImVec2_ImVec2"][2]["argsoriginal"] = "(float _x,float _y)" +defs["ImVec2_ImVec2"][2]["call_args"] = "(_x,_y)" +defs["ImVec2_ImVec2"][2]["cimguiname"] = "ImVec2_ImVec2" +defs["ImVec2_ImVec2"][2]["constructor"] = true +defs["ImVec2_ImVec2"][2]["defaults"] = {} +defs["ImVec2_ImVec2"][2]["funcname"] = "ImVec2" +defs["ImVec2_ImVec2"][2]["location"] = "imgui:263" +defs["ImVec2_ImVec2"][2]["ov_cimguiname"] = "ImVec2_ImVec2_Float" +defs["ImVec2_ImVec2"][2]["signature"] = "(float,float)" +defs["ImVec2_ImVec2"][2]["stname"] = "ImVec2" +defs["ImVec2_ImVec2"]["()"] = defs["ImVec2_ImVec2"][1] +defs["ImVec2_ImVec2"]["(float,float)"] = defs["ImVec2_ImVec2"][2] +defs["ImVec2_destroy"] = {} +defs["ImVec2_destroy"][1] = {} +defs["ImVec2_destroy"][1]["args"] = "(ImVec2* self)" +defs["ImVec2_destroy"][1]["argsT"] = {} +defs["ImVec2_destroy"][1]["argsT"][1] = {} +defs["ImVec2_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImVec2_destroy"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImVec2_destroy"][1]["call_args"] = "(self)" +defs["ImVec2_destroy"][1]["cimguiname"] = "ImVec2_destroy" +defs["ImVec2_destroy"][1]["defaults"] = {} +defs["ImVec2_destroy"][1]["destructor"] = true +defs["ImVec2_destroy"][1]["ov_cimguiname"] = "ImVec2_destroy" +defs["ImVec2_destroy"][1]["ret"] = "void" +defs["ImVec2_destroy"][1]["signature"] = "(ImVec2*)" +defs["ImVec2_destroy"][1]["stname"] = "ImVec2" +defs["ImVec2_destroy"]["(ImVec2*)"] = defs["ImVec2_destroy"][1] +defs["ImVec4_ImVec4"] = {} +defs["ImVec4_ImVec4"][1] = {} +defs["ImVec4_ImVec4"][1]["args"] = "()" +defs["ImVec4_ImVec4"][1]["argsT"] = {} +defs["ImVec4_ImVec4"][1]["argsoriginal"] = "()" +defs["ImVec4_ImVec4"][1]["call_args"] = "()" +defs["ImVec4_ImVec4"][1]["cimguiname"] = "ImVec4_ImVec4" +defs["ImVec4_ImVec4"][1]["constructor"] = true +defs["ImVec4_ImVec4"][1]["defaults"] = {} +defs["ImVec4_ImVec4"][1]["funcname"] = "ImVec4" +defs["ImVec4_ImVec4"][1]["location"] = "imgui:275" +defs["ImVec4_ImVec4"][1]["ov_cimguiname"] = "ImVec4_ImVec4_Nil" +defs["ImVec4_ImVec4"][1]["signature"] = "()" +defs["ImVec4_ImVec4"][1]["stname"] = "ImVec4" +defs["ImVec4_ImVec4"][2] = {} +defs["ImVec4_ImVec4"][2]["args"] = "(float _x,float _y,float _z,float _w)" +defs["ImVec4_ImVec4"][2]["argsT"] = {} +defs["ImVec4_ImVec4"][2]["argsT"][1] = {} +defs["ImVec4_ImVec4"][2]["argsT"][1]["name"] = "_x" +defs["ImVec4_ImVec4"][2]["argsT"][1]["type"] = "float" +defs["ImVec4_ImVec4"][2]["argsT"][2] = {} +defs["ImVec4_ImVec4"][2]["argsT"][2]["name"] = "_y" +defs["ImVec4_ImVec4"][2]["argsT"][2]["type"] = "float" +defs["ImVec4_ImVec4"][2]["argsT"][3] = {} +defs["ImVec4_ImVec4"][2]["argsT"][3]["name"] = "_z" +defs["ImVec4_ImVec4"][2]["argsT"][3]["type"] = "float" +defs["ImVec4_ImVec4"][2]["argsT"][4] = {} +defs["ImVec4_ImVec4"][2]["argsT"][4]["name"] = "_w" +defs["ImVec4_ImVec4"][2]["argsT"][4]["type"] = "float" +defs["ImVec4_ImVec4"][2]["argsoriginal"] = "(float _x,float _y,float _z,float _w)" +defs["ImVec4_ImVec4"][2]["call_args"] = "(_x,_y,_z,_w)" +defs["ImVec4_ImVec4"][2]["cimguiname"] = "ImVec4_ImVec4" +defs["ImVec4_ImVec4"][2]["constructor"] = true +defs["ImVec4_ImVec4"][2]["defaults"] = {} +defs["ImVec4_ImVec4"][2]["funcname"] = "ImVec4" +defs["ImVec4_ImVec4"][2]["location"] = "imgui:276" +defs["ImVec4_ImVec4"][2]["ov_cimguiname"] = "ImVec4_ImVec4_Float" +defs["ImVec4_ImVec4"][2]["signature"] = "(float,float,float,float)" +defs["ImVec4_ImVec4"][2]["stname"] = "ImVec4" +defs["ImVec4_ImVec4"]["()"] = defs["ImVec4_ImVec4"][1] +defs["ImVec4_ImVec4"]["(float,float,float,float)"] = defs["ImVec4_ImVec4"][2] +defs["ImVec4_destroy"] = {} +defs["ImVec4_destroy"][1] = {} +defs["ImVec4_destroy"][1]["args"] = "(ImVec4* self)" +defs["ImVec4_destroy"][1]["argsT"] = {} +defs["ImVec4_destroy"][1]["argsT"][1] = {} +defs["ImVec4_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImVec4_destroy"][1]["argsT"][1]["type"] = "ImVec4*" +defs["ImVec4_destroy"][1]["call_args"] = "(self)" +defs["ImVec4_destroy"][1]["cimguiname"] = "ImVec4_destroy" +defs["ImVec4_destroy"][1]["defaults"] = {} +defs["ImVec4_destroy"][1]["destructor"] = true +defs["ImVec4_destroy"][1]["ov_cimguiname"] = "ImVec4_destroy" +defs["ImVec4_destroy"][1]["ret"] = "void" +defs["ImVec4_destroy"][1]["signature"] = "(ImVec4*)" +defs["ImVec4_destroy"][1]["stname"] = "ImVec4" +defs["ImVec4_destroy"]["(ImVec4*)"] = defs["ImVec4_destroy"][1] +defs["ImVector_ImVector"] = {} +defs["ImVector_ImVector"][1] = {} +defs["ImVector_ImVector"][1]["args"] = "()" +defs["ImVector_ImVector"][1]["argsT"] = {} +defs["ImVector_ImVector"][1]["argsoriginal"] = "()" +defs["ImVector_ImVector"][1]["call_args"] = "()" +defs["ImVector_ImVector"][1]["cimguiname"] = "ImVector_ImVector" +defs["ImVector_ImVector"][1]["constructor"] = true +defs["ImVector_ImVector"][1]["defaults"] = {} +defs["ImVector_ImVector"][1]["funcname"] = "ImVector" +defs["ImVector_ImVector"][1]["location"] = "imgui:1850" +defs["ImVector_ImVector"][1]["ov_cimguiname"] = "ImVector_ImVector_Nil" +defs["ImVector_ImVector"][1]["signature"] = "()" +defs["ImVector_ImVector"][1]["stname"] = "ImVector" +defs["ImVector_ImVector"][1]["templated"] = true +defs["ImVector_ImVector"][2] = {} +defs["ImVector_ImVector"][2]["args"] = "(const ImVector_T src)" +defs["ImVector_ImVector"][2]["argsT"] = {} +defs["ImVector_ImVector"][2]["argsT"][1] = {} +defs["ImVector_ImVector"][2]["argsT"][1]["name"] = "src" +defs["ImVector_ImVector"][2]["argsT"][1]["type"] = "const ImVector_T " +defs["ImVector_ImVector"][2]["argsoriginal"] = "(const ImVector& src)" +defs["ImVector_ImVector"][2]["call_args"] = "(src)" +defs["ImVector_ImVector"][2]["cimguiname"] = "ImVector_ImVector" +defs["ImVector_ImVector"][2]["constructor"] = true +defs["ImVector_ImVector"][2]["defaults"] = {} +defs["ImVector_ImVector"][2]["funcname"] = "ImVector" +defs["ImVector_ImVector"][2]["location"] = "imgui:1851" +defs["ImVector_ImVector"][2]["ov_cimguiname"] = "ImVector_ImVector_Vector_T_" +defs["ImVector_ImVector"][2]["signature"] = "(const ImVector_T )" +defs["ImVector_ImVector"][2]["stname"] = "ImVector" +defs["ImVector_ImVector"][2]["templated"] = true +defs["ImVector_ImVector"]["()"] = defs["ImVector_ImVector"][1] +defs["ImVector_ImVector"]["(const ImVector_T )"] = defs["ImVector_ImVector"][2] +defs["ImVector__grow_capacity"] = {} +defs["ImVector__grow_capacity"][1] = {} +defs["ImVector__grow_capacity"][1]["args"] = "(ImVector* self,int sz)" +defs["ImVector__grow_capacity"][1]["argsT"] = {} +defs["ImVector__grow_capacity"][1]["argsT"][1] = {} +defs["ImVector__grow_capacity"][1]["argsT"][1]["name"] = "self" +defs["ImVector__grow_capacity"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector__grow_capacity"][1]["argsT"][2] = {} +defs["ImVector__grow_capacity"][1]["argsT"][2]["name"] = "sz" +defs["ImVector__grow_capacity"][1]["argsT"][2]["type"] = "int" +defs["ImVector__grow_capacity"][1]["argsoriginal"] = "(int sz)" +defs["ImVector__grow_capacity"][1]["call_args"] = "(sz)" +defs["ImVector__grow_capacity"][1]["cimguiname"] = "ImVector__grow_capacity" +defs["ImVector__grow_capacity"][1]["defaults"] = {} +defs["ImVector__grow_capacity"][1]["funcname"] = "_grow_capacity" +defs["ImVector__grow_capacity"][1]["location"] = "imgui:1877" +defs["ImVector__grow_capacity"][1]["ov_cimguiname"] = "ImVector__grow_capacity" +defs["ImVector__grow_capacity"][1]["ret"] = "int" +defs["ImVector__grow_capacity"][1]["signature"] = "(int)const" +defs["ImVector__grow_capacity"][1]["stname"] = "ImVector" +defs["ImVector__grow_capacity"][1]["templated"] = true +defs["ImVector__grow_capacity"]["(int)const"] = defs["ImVector__grow_capacity"][1] +defs["ImVector_back"] = {} +defs["ImVector_back"][1] = {} +defs["ImVector_back"][1]["args"] = "(ImVector* self)" +defs["ImVector_back"][1]["argsT"] = {} +defs["ImVector_back"][1]["argsT"][1] = {} +defs["ImVector_back"][1]["argsT"][1]["name"] = "self" +defs["ImVector_back"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_back"][1]["argsoriginal"] = "()" +defs["ImVector_back"][1]["call_args"] = "()" +defs["ImVector_back"][1]["cimguiname"] = "ImVector_back" +defs["ImVector_back"][1]["defaults"] = {} +defs["ImVector_back"][1]["funcname"] = "back" +defs["ImVector_back"][1]["location"] = "imgui:1873" +defs["ImVector_back"][1]["ov_cimguiname"] = "ImVector_back_Nil" +defs["ImVector_back"][1]["ret"] = "T*" +defs["ImVector_back"][1]["retref"] = "&" +defs["ImVector_back"][1]["signature"] = "()" +defs["ImVector_back"][1]["stname"] = "ImVector" +defs["ImVector_back"][1]["templated"] = true +defs["ImVector_back"][2] = {} +defs["ImVector_back"][2]["args"] = "(ImVector* self)" +defs["ImVector_back"][2]["argsT"] = {} +defs["ImVector_back"][2]["argsT"][1] = {} +defs["ImVector_back"][2]["argsT"][1]["name"] = "self" +defs["ImVector_back"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_back"][2]["argsoriginal"] = "()" +defs["ImVector_back"][2]["call_args"] = "()" +defs["ImVector_back"][2]["cimguiname"] = "ImVector_back" +defs["ImVector_back"][2]["defaults"] = {} +defs["ImVector_back"][2]["funcname"] = "back" +defs["ImVector_back"][2]["location"] = "imgui:1874" +defs["ImVector_back"][2]["ov_cimguiname"] = "ImVector_back__const" +defs["ImVector_back"][2]["ret"] = "const T*" +defs["ImVector_back"][2]["retref"] = "&" +defs["ImVector_back"][2]["signature"] = "()const" +defs["ImVector_back"][2]["stname"] = "ImVector" +defs["ImVector_back"][2]["templated"] = true +defs["ImVector_back"]["()"] = defs["ImVector_back"][1] +defs["ImVector_back"]["()const"] = defs["ImVector_back"][2] +defs["ImVector_begin"] = {} +defs["ImVector_begin"][1] = {} +defs["ImVector_begin"][1]["args"] = "(ImVector* self)" +defs["ImVector_begin"][1]["argsT"] = {} +defs["ImVector_begin"][1]["argsT"][1] = {} +defs["ImVector_begin"][1]["argsT"][1]["name"] = "self" +defs["ImVector_begin"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_begin"][1]["argsoriginal"] = "()" +defs["ImVector_begin"][1]["call_args"] = "()" +defs["ImVector_begin"][1]["cimguiname"] = "ImVector_begin" +defs["ImVector_begin"][1]["defaults"] = {} +defs["ImVector_begin"][1]["funcname"] = "begin" +defs["ImVector_begin"][1]["location"] = "imgui:1867" +defs["ImVector_begin"][1]["ov_cimguiname"] = "ImVector_begin_Nil" +defs["ImVector_begin"][1]["ret"] = "T*" +defs["ImVector_begin"][1]["signature"] = "()" +defs["ImVector_begin"][1]["stname"] = "ImVector" +defs["ImVector_begin"][1]["templated"] = true +defs["ImVector_begin"][2] = {} +defs["ImVector_begin"][2]["args"] = "(ImVector* self)" +defs["ImVector_begin"][2]["argsT"] = {} +defs["ImVector_begin"][2]["argsT"][1] = {} +defs["ImVector_begin"][2]["argsT"][1]["name"] = "self" +defs["ImVector_begin"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_begin"][2]["argsoriginal"] = "()" +defs["ImVector_begin"][2]["call_args"] = "()" +defs["ImVector_begin"][2]["cimguiname"] = "ImVector_begin" +defs["ImVector_begin"][2]["defaults"] = {} +defs["ImVector_begin"][2]["funcname"] = "begin" +defs["ImVector_begin"][2]["location"] = "imgui:1868" +defs["ImVector_begin"][2]["ov_cimguiname"] = "ImVector_begin__const" +defs["ImVector_begin"][2]["ret"] = "const T*" +defs["ImVector_begin"][2]["signature"] = "()const" +defs["ImVector_begin"][2]["stname"] = "ImVector" +defs["ImVector_begin"][2]["templated"] = true +defs["ImVector_begin"]["()"] = defs["ImVector_begin"][1] +defs["ImVector_begin"]["()const"] = defs["ImVector_begin"][2] +defs["ImVector_capacity"] = {} +defs["ImVector_capacity"][1] = {} +defs["ImVector_capacity"][1]["args"] = "(ImVector* self)" +defs["ImVector_capacity"][1]["argsT"] = {} +defs["ImVector_capacity"][1]["argsT"][1] = {} +defs["ImVector_capacity"][1]["argsT"][1]["name"] = "self" +defs["ImVector_capacity"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_capacity"][1]["argsoriginal"] = "()" +defs["ImVector_capacity"][1]["call_args"] = "()" +defs["ImVector_capacity"][1]["cimguiname"] = "ImVector_capacity" +defs["ImVector_capacity"][1]["defaults"] = {} +defs["ImVector_capacity"][1]["funcname"] = "capacity" +defs["ImVector_capacity"][1]["location"] = "imgui:1863" +defs["ImVector_capacity"][1]["ov_cimguiname"] = "ImVector_capacity" +defs["ImVector_capacity"][1]["ret"] = "int" +defs["ImVector_capacity"][1]["signature"] = "()const" +defs["ImVector_capacity"][1]["stname"] = "ImVector" +defs["ImVector_capacity"][1]["templated"] = true +defs["ImVector_capacity"]["()const"] = defs["ImVector_capacity"][1] +defs["ImVector_clear"] = {} +defs["ImVector_clear"][1] = {} +defs["ImVector_clear"][1]["args"] = "(ImVector* self)" +defs["ImVector_clear"][1]["argsT"] = {} +defs["ImVector_clear"][1]["argsT"][1] = {} +defs["ImVector_clear"][1]["argsT"][1]["name"] = "self" +defs["ImVector_clear"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_clear"][1]["argsoriginal"] = "()" +defs["ImVector_clear"][1]["call_args"] = "()" +defs["ImVector_clear"][1]["cimguiname"] = "ImVector_clear" +defs["ImVector_clear"][1]["defaults"] = {} +defs["ImVector_clear"][1]["funcname"] = "clear" +defs["ImVector_clear"][1]["location"] = "imgui:1855" +defs["ImVector_clear"][1]["ov_cimguiname"] = "ImVector_clear" +defs["ImVector_clear"][1]["ret"] = "void" +defs["ImVector_clear"][1]["signature"] = "()" +defs["ImVector_clear"][1]["stname"] = "ImVector" +defs["ImVector_clear"][1]["templated"] = true +defs["ImVector_clear"]["()"] = defs["ImVector_clear"][1] +defs["ImVector_clear_delete"] = {} +defs["ImVector_clear_delete"][1] = {} +defs["ImVector_clear_delete"][1]["args"] = "(ImVector* self)" +defs["ImVector_clear_delete"][1]["argsT"] = {} +defs["ImVector_clear_delete"][1]["argsT"][1] = {} +defs["ImVector_clear_delete"][1]["argsT"][1]["name"] = "self" +defs["ImVector_clear_delete"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_clear_delete"][1]["argsoriginal"] = "()" +defs["ImVector_clear_delete"][1]["call_args"] = "()" +defs["ImVector_clear_delete"][1]["cimguiname"] = "ImVector_clear_delete" +defs["ImVector_clear_delete"][1]["defaults"] = {} +defs["ImVector_clear_delete"][1]["funcname"] = "clear_delete" +defs["ImVector_clear_delete"][1]["location"] = "imgui:1856" +defs["ImVector_clear_delete"][1]["ov_cimguiname"] = "ImVector_clear_delete" +defs["ImVector_clear_delete"][1]["ret"] = "void" +defs["ImVector_clear_delete"][1]["signature"] = "()" +defs["ImVector_clear_delete"][1]["stname"] = "ImVector" +defs["ImVector_clear_delete"][1]["templated"] = true +defs["ImVector_clear_delete"]["()"] = defs["ImVector_clear_delete"][1] +defs["ImVector_clear_destruct"] = {} +defs["ImVector_clear_destruct"][1] = {} +defs["ImVector_clear_destruct"][1]["args"] = "(ImVector* self)" +defs["ImVector_clear_destruct"][1]["argsT"] = {} +defs["ImVector_clear_destruct"][1]["argsT"][1] = {} +defs["ImVector_clear_destruct"][1]["argsT"][1]["name"] = "self" +defs["ImVector_clear_destruct"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_clear_destruct"][1]["argsoriginal"] = "()" +defs["ImVector_clear_destruct"][1]["call_args"] = "()" +defs["ImVector_clear_destruct"][1]["cimguiname"] = "ImVector_clear_destruct" +defs["ImVector_clear_destruct"][1]["defaults"] = {} +defs["ImVector_clear_destruct"][1]["funcname"] = "clear_destruct" +defs["ImVector_clear_destruct"][1]["location"] = "imgui:1857" +defs["ImVector_clear_destruct"][1]["ov_cimguiname"] = "ImVector_clear_destruct" +defs["ImVector_clear_destruct"][1]["ret"] = "void" +defs["ImVector_clear_destruct"][1]["signature"] = "()" +defs["ImVector_clear_destruct"][1]["stname"] = "ImVector" +defs["ImVector_clear_destruct"][1]["templated"] = true +defs["ImVector_clear_destruct"]["()"] = defs["ImVector_clear_destruct"][1] +defs["ImVector_contains"] = {} +defs["ImVector_contains"][1] = {} +defs["ImVector_contains"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_contains"][1]["argsT"] = {} +defs["ImVector_contains"][1]["argsT"][1] = {} +defs["ImVector_contains"][1]["argsT"][1]["name"] = "self" +defs["ImVector_contains"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_contains"][1]["argsT"][2] = {} +defs["ImVector_contains"][1]["argsT"][2]["name"] = "v" +defs["ImVector_contains"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_contains"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_contains"][1]["call_args"] = "(v)" +defs["ImVector_contains"][1]["cimguiname"] = "ImVector_contains" +defs["ImVector_contains"][1]["defaults"] = {} +defs["ImVector_contains"][1]["funcname"] = "contains" +defs["ImVector_contains"][1]["location"] = "imgui:1892" +defs["ImVector_contains"][1]["ov_cimguiname"] = "ImVector_contains" +defs["ImVector_contains"][1]["ret"] = "bool" +defs["ImVector_contains"][1]["signature"] = "(const T)const" +defs["ImVector_contains"][1]["stname"] = "ImVector" +defs["ImVector_contains"][1]["templated"] = true +defs["ImVector_contains"]["(const T)const"] = defs["ImVector_contains"][1] +defs["ImVector_destroy"] = {} +defs["ImVector_destroy"][1] = {} +defs["ImVector_destroy"][1]["args"] = "(ImVector* self)" +defs["ImVector_destroy"][1]["argsT"] = {} +defs["ImVector_destroy"][1]["argsT"][1] = {} +defs["ImVector_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImVector_destroy"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_destroy"][1]["call_args"] = "(self)" +defs["ImVector_destroy"][1]["cimguiname"] = "ImVector_destroy" +defs["ImVector_destroy"][1]["defaults"] = {} +defs["ImVector_destroy"][1]["destructor"] = true +defs["ImVector_destroy"][1]["location"] = "imgui:1853" +defs["ImVector_destroy"][1]["ov_cimguiname"] = "ImVector_destroy" +defs["ImVector_destroy"][1]["realdestructor"] = true +defs["ImVector_destroy"][1]["ret"] = "void" +defs["ImVector_destroy"][1]["signature"] = "(ImVector*)" +defs["ImVector_destroy"][1]["stname"] = "ImVector" +defs["ImVector_destroy"][1]["templated"] = true +defs["ImVector_destroy"]["(ImVector*)"] = defs["ImVector_destroy"][1] +defs["ImVector_empty"] = {} +defs["ImVector_empty"][1] = {} +defs["ImVector_empty"][1]["args"] = "(ImVector* self)" +defs["ImVector_empty"][1]["argsT"] = {} +defs["ImVector_empty"][1]["argsT"][1] = {} +defs["ImVector_empty"][1]["argsT"][1]["name"] = "self" +defs["ImVector_empty"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_empty"][1]["argsoriginal"] = "()" +defs["ImVector_empty"][1]["call_args"] = "()" +defs["ImVector_empty"][1]["cimguiname"] = "ImVector_empty" +defs["ImVector_empty"][1]["defaults"] = {} +defs["ImVector_empty"][1]["funcname"] = "empty" +defs["ImVector_empty"][1]["location"] = "imgui:1859" +defs["ImVector_empty"][1]["ov_cimguiname"] = "ImVector_empty" +defs["ImVector_empty"][1]["ret"] = "bool" +defs["ImVector_empty"][1]["signature"] = "()const" +defs["ImVector_empty"][1]["stname"] = "ImVector" +defs["ImVector_empty"][1]["templated"] = true +defs["ImVector_empty"]["()const"] = defs["ImVector_empty"][1] +defs["ImVector_end"] = {} +defs["ImVector_end"][1] = {} +defs["ImVector_end"][1]["args"] = "(ImVector* self)" +defs["ImVector_end"][1]["argsT"] = {} +defs["ImVector_end"][1]["argsT"][1] = {} +defs["ImVector_end"][1]["argsT"][1]["name"] = "self" +defs["ImVector_end"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_end"][1]["argsoriginal"] = "()" +defs["ImVector_end"][1]["call_args"] = "()" +defs["ImVector_end"][1]["cimguiname"] = "ImVector_end" +defs["ImVector_end"][1]["defaults"] = {} +defs["ImVector_end"][1]["funcname"] = "end" +defs["ImVector_end"][1]["location"] = "imgui:1869" +defs["ImVector_end"][1]["ov_cimguiname"] = "ImVector_end_Nil" +defs["ImVector_end"][1]["ret"] = "T*" +defs["ImVector_end"][1]["signature"] = "()" +defs["ImVector_end"][1]["stname"] = "ImVector" +defs["ImVector_end"][1]["templated"] = true +defs["ImVector_end"][2] = {} +defs["ImVector_end"][2]["args"] = "(ImVector* self)" +defs["ImVector_end"][2]["argsT"] = {} +defs["ImVector_end"][2]["argsT"][1] = {} +defs["ImVector_end"][2]["argsT"][1]["name"] = "self" +defs["ImVector_end"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_end"][2]["argsoriginal"] = "()" +defs["ImVector_end"][2]["call_args"] = "()" +defs["ImVector_end"][2]["cimguiname"] = "ImVector_end" +defs["ImVector_end"][2]["defaults"] = {} +defs["ImVector_end"][2]["funcname"] = "end" +defs["ImVector_end"][2]["location"] = "imgui:1870" +defs["ImVector_end"][2]["ov_cimguiname"] = "ImVector_end__const" +defs["ImVector_end"][2]["ret"] = "const T*" +defs["ImVector_end"][2]["signature"] = "()const" +defs["ImVector_end"][2]["stname"] = "ImVector" +defs["ImVector_end"][2]["templated"] = true +defs["ImVector_end"]["()"] = defs["ImVector_end"][1] +defs["ImVector_end"]["()const"] = defs["ImVector_end"][2] +defs["ImVector_erase"] = {} +defs["ImVector_erase"][1] = {} +defs["ImVector_erase"][1]["args"] = "(ImVector* self,const T* it)" +defs["ImVector_erase"][1]["argsT"] = {} +defs["ImVector_erase"][1]["argsT"][1] = {} +defs["ImVector_erase"][1]["argsT"][1]["name"] = "self" +defs["ImVector_erase"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_erase"][1]["argsT"][2] = {} +defs["ImVector_erase"][1]["argsT"][2]["name"] = "it" +defs["ImVector_erase"][1]["argsT"][2]["type"] = "const T*" +defs["ImVector_erase"][1]["argsoriginal"] = "(const T* it)" +defs["ImVector_erase"][1]["call_args"] = "(it)" +defs["ImVector_erase"][1]["cimguiname"] = "ImVector_erase" +defs["ImVector_erase"][1]["defaults"] = {} +defs["ImVector_erase"][1]["funcname"] = "erase" +defs["ImVector_erase"][1]["location"] = "imgui:1888" +defs["ImVector_erase"][1]["ov_cimguiname"] = "ImVector_erase_Nil" +defs["ImVector_erase"][1]["ret"] = "T*" +defs["ImVector_erase"][1]["signature"] = "(const T*)" +defs["ImVector_erase"][1]["stname"] = "ImVector" +defs["ImVector_erase"][1]["templated"] = true +defs["ImVector_erase"][2] = {} +defs["ImVector_erase"][2]["args"] = "(ImVector* self,const T* it,const T* it_last)" +defs["ImVector_erase"][2]["argsT"] = {} +defs["ImVector_erase"][2]["argsT"][1] = {} +defs["ImVector_erase"][2]["argsT"][1]["name"] = "self" +defs["ImVector_erase"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_erase"][2]["argsT"][2] = {} +defs["ImVector_erase"][2]["argsT"][2]["name"] = "it" +defs["ImVector_erase"][2]["argsT"][2]["type"] = "const T*" +defs["ImVector_erase"][2]["argsT"][3] = {} +defs["ImVector_erase"][2]["argsT"][3]["name"] = "it_last" +defs["ImVector_erase"][2]["argsT"][3]["type"] = "const T*" +defs["ImVector_erase"][2]["argsoriginal"] = "(const T* it,const T* it_last)" +defs["ImVector_erase"][2]["call_args"] = "(it,it_last)" +defs["ImVector_erase"][2]["cimguiname"] = "ImVector_erase" +defs["ImVector_erase"][2]["defaults"] = {} +defs["ImVector_erase"][2]["funcname"] = "erase" +defs["ImVector_erase"][2]["location"] = "imgui:1889" +defs["ImVector_erase"][2]["ov_cimguiname"] = "ImVector_erase_TPtr" +defs["ImVector_erase"][2]["ret"] = "T*" +defs["ImVector_erase"][2]["signature"] = "(const T*,const T*)" +defs["ImVector_erase"][2]["stname"] = "ImVector" +defs["ImVector_erase"][2]["templated"] = true +defs["ImVector_erase"]["(const T*)"] = defs["ImVector_erase"][1] +defs["ImVector_erase"]["(const T*,const T*)"] = defs["ImVector_erase"][2] +defs["ImVector_erase_unsorted"] = {} +defs["ImVector_erase_unsorted"][1] = {} +defs["ImVector_erase_unsorted"][1]["args"] = "(ImVector* self,const T* it)" +defs["ImVector_erase_unsorted"][1]["argsT"] = {} +defs["ImVector_erase_unsorted"][1]["argsT"][1] = {} +defs["ImVector_erase_unsorted"][1]["argsT"][1]["name"] = "self" +defs["ImVector_erase_unsorted"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_erase_unsorted"][1]["argsT"][2] = {} +defs["ImVector_erase_unsorted"][1]["argsT"][2]["name"] = "it" +defs["ImVector_erase_unsorted"][1]["argsT"][2]["type"] = "const T*" +defs["ImVector_erase_unsorted"][1]["argsoriginal"] = "(const T* it)" +defs["ImVector_erase_unsorted"][1]["call_args"] = "(it)" +defs["ImVector_erase_unsorted"][1]["cimguiname"] = "ImVector_erase_unsorted" +defs["ImVector_erase_unsorted"][1]["defaults"] = {} +defs["ImVector_erase_unsorted"][1]["funcname"] = "erase_unsorted" +defs["ImVector_erase_unsorted"][1]["location"] = "imgui:1890" +defs["ImVector_erase_unsorted"][1]["ov_cimguiname"] = "ImVector_erase_unsorted" +defs["ImVector_erase_unsorted"][1]["ret"] = "T*" +defs["ImVector_erase_unsorted"][1]["signature"] = "(const T*)" +defs["ImVector_erase_unsorted"][1]["stname"] = "ImVector" +defs["ImVector_erase_unsorted"][1]["templated"] = true +defs["ImVector_erase_unsorted"]["(const T*)"] = defs["ImVector_erase_unsorted"][1] +defs["ImVector_find"] = {} +defs["ImVector_find"][1] = {} +defs["ImVector_find"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_find"][1]["argsT"] = {} +defs["ImVector_find"][1]["argsT"][1] = {} +defs["ImVector_find"][1]["argsT"][1]["name"] = "self" +defs["ImVector_find"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_find"][1]["argsT"][2] = {} +defs["ImVector_find"][1]["argsT"][2]["name"] = "v" +defs["ImVector_find"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_find"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_find"][1]["call_args"] = "(v)" +defs["ImVector_find"][1]["cimguiname"] = "ImVector_find" +defs["ImVector_find"][1]["defaults"] = {} +defs["ImVector_find"][1]["funcname"] = "find" +defs["ImVector_find"][1]["location"] = "imgui:1893" +defs["ImVector_find"][1]["ov_cimguiname"] = "ImVector_find_Nil" +defs["ImVector_find"][1]["ret"] = "T*" +defs["ImVector_find"][1]["signature"] = "(const T)" +defs["ImVector_find"][1]["stname"] = "ImVector" +defs["ImVector_find"][1]["templated"] = true +defs["ImVector_find"][2] = {} +defs["ImVector_find"][2]["args"] = "(ImVector* self,const T v)" +defs["ImVector_find"][2]["argsT"] = {} +defs["ImVector_find"][2]["argsT"][1] = {} +defs["ImVector_find"][2]["argsT"][1]["name"] = "self" +defs["ImVector_find"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_find"][2]["argsT"][2] = {} +defs["ImVector_find"][2]["argsT"][2]["name"] = "v" +defs["ImVector_find"][2]["argsT"][2]["type"] = "const T" +defs["ImVector_find"][2]["argsoriginal"] = "(const T& v)" +defs["ImVector_find"][2]["call_args"] = "(v)" +defs["ImVector_find"][2]["cimguiname"] = "ImVector_find" +defs["ImVector_find"][2]["defaults"] = {} +defs["ImVector_find"][2]["funcname"] = "find" +defs["ImVector_find"][2]["location"] = "imgui:1894" +defs["ImVector_find"][2]["ov_cimguiname"] = "ImVector_find__const" +defs["ImVector_find"][2]["ret"] = "const T*" +defs["ImVector_find"][2]["signature"] = "(const T)const" +defs["ImVector_find"][2]["stname"] = "ImVector" +defs["ImVector_find"][2]["templated"] = true +defs["ImVector_find"]["(const T)"] = defs["ImVector_find"][1] +defs["ImVector_find"]["(const T)const"] = defs["ImVector_find"][2] +defs["ImVector_find_erase"] = {} +defs["ImVector_find_erase"][1] = {} +defs["ImVector_find_erase"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_find_erase"][1]["argsT"] = {} +defs["ImVector_find_erase"][1]["argsT"][1] = {} +defs["ImVector_find_erase"][1]["argsT"][1]["name"] = "self" +defs["ImVector_find_erase"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_find_erase"][1]["argsT"][2] = {} +defs["ImVector_find_erase"][1]["argsT"][2]["name"] = "v" +defs["ImVector_find_erase"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_find_erase"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_find_erase"][1]["call_args"] = "(v)" +defs["ImVector_find_erase"][1]["cimguiname"] = "ImVector_find_erase" +defs["ImVector_find_erase"][1]["defaults"] = {} +defs["ImVector_find_erase"][1]["funcname"] = "find_erase" +defs["ImVector_find_erase"][1]["location"] = "imgui:1895" +defs["ImVector_find_erase"][1]["ov_cimguiname"] = "ImVector_find_erase" +defs["ImVector_find_erase"][1]["ret"] = "bool" +defs["ImVector_find_erase"][1]["signature"] = "(const T)" +defs["ImVector_find_erase"][1]["stname"] = "ImVector" +defs["ImVector_find_erase"][1]["templated"] = true +defs["ImVector_find_erase"]["(const T)"] = defs["ImVector_find_erase"][1] +defs["ImVector_find_erase_unsorted"] = {} +defs["ImVector_find_erase_unsorted"][1] = {} +defs["ImVector_find_erase_unsorted"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_find_erase_unsorted"][1]["argsT"] = {} +defs["ImVector_find_erase_unsorted"][1]["argsT"][1] = {} +defs["ImVector_find_erase_unsorted"][1]["argsT"][1]["name"] = "self" +defs["ImVector_find_erase_unsorted"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_find_erase_unsorted"][1]["argsT"][2] = {} +defs["ImVector_find_erase_unsorted"][1]["argsT"][2]["name"] = "v" +defs["ImVector_find_erase_unsorted"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_find_erase_unsorted"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_find_erase_unsorted"][1]["call_args"] = "(v)" +defs["ImVector_find_erase_unsorted"][1]["cimguiname"] = "ImVector_find_erase_unsorted" +defs["ImVector_find_erase_unsorted"][1]["defaults"] = {} +defs["ImVector_find_erase_unsorted"][1]["funcname"] = "find_erase_unsorted" +defs["ImVector_find_erase_unsorted"][1]["location"] = "imgui:1896" +defs["ImVector_find_erase_unsorted"][1]["ov_cimguiname"] = "ImVector_find_erase_unsorted" +defs["ImVector_find_erase_unsorted"][1]["ret"] = "bool" +defs["ImVector_find_erase_unsorted"][1]["signature"] = "(const T)" +defs["ImVector_find_erase_unsorted"][1]["stname"] = "ImVector" +defs["ImVector_find_erase_unsorted"][1]["templated"] = true +defs["ImVector_find_erase_unsorted"]["(const T)"] = defs["ImVector_find_erase_unsorted"][1] +defs["ImVector_front"] = {} +defs["ImVector_front"][1] = {} +defs["ImVector_front"][1]["args"] = "(ImVector* self)" +defs["ImVector_front"][1]["argsT"] = {} +defs["ImVector_front"][1]["argsT"][1] = {} +defs["ImVector_front"][1]["argsT"][1]["name"] = "self" +defs["ImVector_front"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_front"][1]["argsoriginal"] = "()" +defs["ImVector_front"][1]["call_args"] = "()" +defs["ImVector_front"][1]["cimguiname"] = "ImVector_front" +defs["ImVector_front"][1]["defaults"] = {} +defs["ImVector_front"][1]["funcname"] = "front" +defs["ImVector_front"][1]["location"] = "imgui:1871" +defs["ImVector_front"][1]["ov_cimguiname"] = "ImVector_front_Nil" +defs["ImVector_front"][1]["ret"] = "T*" +defs["ImVector_front"][1]["retref"] = "&" +defs["ImVector_front"][1]["signature"] = "()" +defs["ImVector_front"][1]["stname"] = "ImVector" +defs["ImVector_front"][1]["templated"] = true +defs["ImVector_front"][2] = {} +defs["ImVector_front"][2]["args"] = "(ImVector* self)" +defs["ImVector_front"][2]["argsT"] = {} +defs["ImVector_front"][2]["argsT"][1] = {} +defs["ImVector_front"][2]["argsT"][1]["name"] = "self" +defs["ImVector_front"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_front"][2]["argsoriginal"] = "()" +defs["ImVector_front"][2]["call_args"] = "()" +defs["ImVector_front"][2]["cimguiname"] = "ImVector_front" +defs["ImVector_front"][2]["defaults"] = {} +defs["ImVector_front"][2]["funcname"] = "front" +defs["ImVector_front"][2]["location"] = "imgui:1872" +defs["ImVector_front"][2]["ov_cimguiname"] = "ImVector_front__const" +defs["ImVector_front"][2]["ret"] = "const T*" +defs["ImVector_front"][2]["retref"] = "&" +defs["ImVector_front"][2]["signature"] = "()const" +defs["ImVector_front"][2]["stname"] = "ImVector" +defs["ImVector_front"][2]["templated"] = true +defs["ImVector_front"]["()"] = defs["ImVector_front"][1] +defs["ImVector_front"]["()const"] = defs["ImVector_front"][2] +defs["ImVector_index_from_ptr"] = {} +defs["ImVector_index_from_ptr"][1] = {} +defs["ImVector_index_from_ptr"][1]["args"] = "(ImVector* self,const T* it)" +defs["ImVector_index_from_ptr"][1]["argsT"] = {} +defs["ImVector_index_from_ptr"][1]["argsT"][1] = {} +defs["ImVector_index_from_ptr"][1]["argsT"][1]["name"] = "self" +defs["ImVector_index_from_ptr"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_index_from_ptr"][1]["argsT"][2] = {} +defs["ImVector_index_from_ptr"][1]["argsT"][2]["name"] = "it" +defs["ImVector_index_from_ptr"][1]["argsT"][2]["type"] = "const T*" +defs["ImVector_index_from_ptr"][1]["argsoriginal"] = "(const T* it)" +defs["ImVector_index_from_ptr"][1]["call_args"] = "(it)" +defs["ImVector_index_from_ptr"][1]["cimguiname"] = "ImVector_index_from_ptr" +defs["ImVector_index_from_ptr"][1]["defaults"] = {} +defs["ImVector_index_from_ptr"][1]["funcname"] = "index_from_ptr" +defs["ImVector_index_from_ptr"][1]["location"] = "imgui:1897" +defs["ImVector_index_from_ptr"][1]["ov_cimguiname"] = "ImVector_index_from_ptr" +defs["ImVector_index_from_ptr"][1]["ret"] = "int" +defs["ImVector_index_from_ptr"][1]["signature"] = "(const T*)const" +defs["ImVector_index_from_ptr"][1]["stname"] = "ImVector" +defs["ImVector_index_from_ptr"][1]["templated"] = true +defs["ImVector_index_from_ptr"]["(const T*)const"] = defs["ImVector_index_from_ptr"][1] +defs["ImVector_insert"] = {} +defs["ImVector_insert"][1] = {} +defs["ImVector_insert"][1]["args"] = "(ImVector* self,const T* it,const T v)" +defs["ImVector_insert"][1]["argsT"] = {} +defs["ImVector_insert"][1]["argsT"][1] = {} +defs["ImVector_insert"][1]["argsT"][1]["name"] = "self" +defs["ImVector_insert"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_insert"][1]["argsT"][2] = {} +defs["ImVector_insert"][1]["argsT"][2]["name"] = "it" +defs["ImVector_insert"][1]["argsT"][2]["type"] = "const T*" +defs["ImVector_insert"][1]["argsT"][3] = {} +defs["ImVector_insert"][1]["argsT"][3]["name"] = "v" +defs["ImVector_insert"][1]["argsT"][3]["type"] = "const T" +defs["ImVector_insert"][1]["argsoriginal"] = "(const T* it,const T& v)" +defs["ImVector_insert"][1]["call_args"] = "(it,v)" +defs["ImVector_insert"][1]["cimguiname"] = "ImVector_insert" +defs["ImVector_insert"][1]["defaults"] = {} +defs["ImVector_insert"][1]["funcname"] = "insert" +defs["ImVector_insert"][1]["location"] = "imgui:1891" +defs["ImVector_insert"][1]["ov_cimguiname"] = "ImVector_insert" +defs["ImVector_insert"][1]["ret"] = "T*" +defs["ImVector_insert"][1]["signature"] = "(const T*,const T)" +defs["ImVector_insert"][1]["stname"] = "ImVector" +defs["ImVector_insert"][1]["templated"] = true +defs["ImVector_insert"]["(const T*,const T)"] = defs["ImVector_insert"][1] +defs["ImVector_max_size"] = {} +defs["ImVector_max_size"][1] = {} +defs["ImVector_max_size"][1]["args"] = "(ImVector* self)" +defs["ImVector_max_size"][1]["argsT"] = {} +defs["ImVector_max_size"][1]["argsT"][1] = {} +defs["ImVector_max_size"][1]["argsT"][1]["name"] = "self" +defs["ImVector_max_size"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_max_size"][1]["argsoriginal"] = "()" +defs["ImVector_max_size"][1]["call_args"] = "()" +defs["ImVector_max_size"][1]["cimguiname"] = "ImVector_max_size" +defs["ImVector_max_size"][1]["defaults"] = {} +defs["ImVector_max_size"][1]["funcname"] = "max_size" +defs["ImVector_max_size"][1]["location"] = "imgui:1862" +defs["ImVector_max_size"][1]["ov_cimguiname"] = "ImVector_max_size" +defs["ImVector_max_size"][1]["ret"] = "int" +defs["ImVector_max_size"][1]["signature"] = "()const" +defs["ImVector_max_size"][1]["stname"] = "ImVector" +defs["ImVector_max_size"][1]["templated"] = true +defs["ImVector_max_size"]["()const"] = defs["ImVector_max_size"][1] +defs["ImVector_pop_back"] = {} +defs["ImVector_pop_back"][1] = {} +defs["ImVector_pop_back"][1]["args"] = "(ImVector* self)" +defs["ImVector_pop_back"][1]["argsT"] = {} +defs["ImVector_pop_back"][1]["argsT"][1] = {} +defs["ImVector_pop_back"][1]["argsT"][1]["name"] = "self" +defs["ImVector_pop_back"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_pop_back"][1]["argsoriginal"] = "()" +defs["ImVector_pop_back"][1]["call_args"] = "()" +defs["ImVector_pop_back"][1]["cimguiname"] = "ImVector_pop_back" +defs["ImVector_pop_back"][1]["defaults"] = {} +defs["ImVector_pop_back"][1]["funcname"] = "pop_back" +defs["ImVector_pop_back"][1]["location"] = "imgui:1886" +defs["ImVector_pop_back"][1]["ov_cimguiname"] = "ImVector_pop_back" +defs["ImVector_pop_back"][1]["ret"] = "void" +defs["ImVector_pop_back"][1]["signature"] = "()" +defs["ImVector_pop_back"][1]["stname"] = "ImVector" +defs["ImVector_pop_back"][1]["templated"] = true +defs["ImVector_pop_back"]["()"] = defs["ImVector_pop_back"][1] +defs["ImVector_push_back"] = {} +defs["ImVector_push_back"][1] = {} +defs["ImVector_push_back"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_push_back"][1]["argsT"] = {} +defs["ImVector_push_back"][1]["argsT"][1] = {} +defs["ImVector_push_back"][1]["argsT"][1]["name"] = "self" +defs["ImVector_push_back"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_push_back"][1]["argsT"][2] = {} +defs["ImVector_push_back"][1]["argsT"][2]["name"] = "v" +defs["ImVector_push_back"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_push_back"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_push_back"][1]["call_args"] = "(v)" +defs["ImVector_push_back"][1]["cimguiname"] = "ImVector_push_back" +defs["ImVector_push_back"][1]["defaults"] = {} +defs["ImVector_push_back"][1]["funcname"] = "push_back" +defs["ImVector_push_back"][1]["location"] = "imgui:1885" +defs["ImVector_push_back"][1]["ov_cimguiname"] = "ImVector_push_back" +defs["ImVector_push_back"][1]["ret"] = "void" +defs["ImVector_push_back"][1]["signature"] = "(const T)" +defs["ImVector_push_back"][1]["stname"] = "ImVector" +defs["ImVector_push_back"][1]["templated"] = true +defs["ImVector_push_back"]["(const T)"] = defs["ImVector_push_back"][1] +defs["ImVector_push_front"] = {} +defs["ImVector_push_front"][1] = {} +defs["ImVector_push_front"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_push_front"][1]["argsT"] = {} +defs["ImVector_push_front"][1]["argsT"][1] = {} +defs["ImVector_push_front"][1]["argsT"][1]["name"] = "self" +defs["ImVector_push_front"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_push_front"][1]["argsT"][2] = {} +defs["ImVector_push_front"][1]["argsT"][2]["name"] = "v" +defs["ImVector_push_front"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_push_front"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_push_front"][1]["call_args"] = "(v)" +defs["ImVector_push_front"][1]["cimguiname"] = "ImVector_push_front" +defs["ImVector_push_front"][1]["defaults"] = {} +defs["ImVector_push_front"][1]["funcname"] = "push_front" +defs["ImVector_push_front"][1]["location"] = "imgui:1887" +defs["ImVector_push_front"][1]["ov_cimguiname"] = "ImVector_push_front" +defs["ImVector_push_front"][1]["ret"] = "void" +defs["ImVector_push_front"][1]["signature"] = "(const T)" +defs["ImVector_push_front"][1]["stname"] = "ImVector" +defs["ImVector_push_front"][1]["templated"] = true +defs["ImVector_push_front"]["(const T)"] = defs["ImVector_push_front"][1] +defs["ImVector_reserve"] = {} +defs["ImVector_reserve"][1] = {} +defs["ImVector_reserve"][1]["args"] = "(ImVector* self,int new_capacity)" +defs["ImVector_reserve"][1]["argsT"] = {} +defs["ImVector_reserve"][1]["argsT"][1] = {} +defs["ImVector_reserve"][1]["argsT"][1]["name"] = "self" +defs["ImVector_reserve"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_reserve"][1]["argsT"][2] = {} +defs["ImVector_reserve"][1]["argsT"][2]["name"] = "new_capacity" +defs["ImVector_reserve"][1]["argsT"][2]["type"] = "int" +defs["ImVector_reserve"][1]["argsoriginal"] = "(int new_capacity)" +defs["ImVector_reserve"][1]["call_args"] = "(new_capacity)" +defs["ImVector_reserve"][1]["cimguiname"] = "ImVector_reserve" +defs["ImVector_reserve"][1]["defaults"] = {} +defs["ImVector_reserve"][1]["funcname"] = "reserve" +defs["ImVector_reserve"][1]["location"] = "imgui:1881" +defs["ImVector_reserve"][1]["ov_cimguiname"] = "ImVector_reserve" +defs["ImVector_reserve"][1]["ret"] = "void" +defs["ImVector_reserve"][1]["signature"] = "(int)" +defs["ImVector_reserve"][1]["stname"] = "ImVector" +defs["ImVector_reserve"][1]["templated"] = true +defs["ImVector_reserve"]["(int)"] = defs["ImVector_reserve"][1] +defs["ImVector_reserve_discard"] = {} +defs["ImVector_reserve_discard"][1] = {} +defs["ImVector_reserve_discard"][1]["args"] = "(ImVector* self,int new_capacity)" +defs["ImVector_reserve_discard"][1]["argsT"] = {} +defs["ImVector_reserve_discard"][1]["argsT"][1] = {} +defs["ImVector_reserve_discard"][1]["argsT"][1]["name"] = "self" +defs["ImVector_reserve_discard"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_reserve_discard"][1]["argsT"][2] = {} +defs["ImVector_reserve_discard"][1]["argsT"][2]["name"] = "new_capacity" +defs["ImVector_reserve_discard"][1]["argsT"][2]["type"] = "int" +defs["ImVector_reserve_discard"][1]["argsoriginal"] = "(int new_capacity)" +defs["ImVector_reserve_discard"][1]["call_args"] = "(new_capacity)" +defs["ImVector_reserve_discard"][1]["cimguiname"] = "ImVector_reserve_discard" +defs["ImVector_reserve_discard"][1]["defaults"] = {} +defs["ImVector_reserve_discard"][1]["funcname"] = "reserve_discard" +defs["ImVector_reserve_discard"][1]["location"] = "imgui:1882" +defs["ImVector_reserve_discard"][1]["ov_cimguiname"] = "ImVector_reserve_discard" +defs["ImVector_reserve_discard"][1]["ret"] = "void" +defs["ImVector_reserve_discard"][1]["signature"] = "(int)" +defs["ImVector_reserve_discard"][1]["stname"] = "ImVector" +defs["ImVector_reserve_discard"][1]["templated"] = true +defs["ImVector_reserve_discard"]["(int)"] = defs["ImVector_reserve_discard"][1] +defs["ImVector_resize"] = {} +defs["ImVector_resize"][1] = {} +defs["ImVector_resize"][1]["args"] = "(ImVector* self,int new_size)" +defs["ImVector_resize"][1]["argsT"] = {} +defs["ImVector_resize"][1]["argsT"][1] = {} +defs["ImVector_resize"][1]["argsT"][1]["name"] = "self" +defs["ImVector_resize"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_resize"][1]["argsT"][2] = {} +defs["ImVector_resize"][1]["argsT"][2]["name"] = "new_size" +defs["ImVector_resize"][1]["argsT"][2]["type"] = "int" +defs["ImVector_resize"][1]["argsoriginal"] = "(int new_size)" +defs["ImVector_resize"][1]["call_args"] = "(new_size)" +defs["ImVector_resize"][1]["cimguiname"] = "ImVector_resize" +defs["ImVector_resize"][1]["defaults"] = {} +defs["ImVector_resize"][1]["funcname"] = "resize" +defs["ImVector_resize"][1]["location"] = "imgui:1878" +defs["ImVector_resize"][1]["ov_cimguiname"] = "ImVector_resize_Nil" +defs["ImVector_resize"][1]["ret"] = "void" +defs["ImVector_resize"][1]["signature"] = "(int)" +defs["ImVector_resize"][1]["stname"] = "ImVector" +defs["ImVector_resize"][1]["templated"] = true +defs["ImVector_resize"][2] = {} +defs["ImVector_resize"][2]["args"] = "(ImVector* self,int new_size,const T v)" +defs["ImVector_resize"][2]["argsT"] = {} +defs["ImVector_resize"][2]["argsT"][1] = {} +defs["ImVector_resize"][2]["argsT"][1]["name"] = "self" +defs["ImVector_resize"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_resize"][2]["argsT"][2] = {} +defs["ImVector_resize"][2]["argsT"][2]["name"] = "new_size" +defs["ImVector_resize"][2]["argsT"][2]["type"] = "int" +defs["ImVector_resize"][2]["argsT"][3] = {} +defs["ImVector_resize"][2]["argsT"][3]["name"] = "v" +defs["ImVector_resize"][2]["argsT"][3]["type"] = "const T" +defs["ImVector_resize"][2]["argsoriginal"] = "(int new_size,const T& v)" +defs["ImVector_resize"][2]["call_args"] = "(new_size,v)" +defs["ImVector_resize"][2]["cimguiname"] = "ImVector_resize" +defs["ImVector_resize"][2]["defaults"] = {} +defs["ImVector_resize"][2]["funcname"] = "resize" +defs["ImVector_resize"][2]["location"] = "imgui:1879" +defs["ImVector_resize"][2]["ov_cimguiname"] = "ImVector_resize_T" +defs["ImVector_resize"][2]["ret"] = "void" +defs["ImVector_resize"][2]["signature"] = "(int,const T)" +defs["ImVector_resize"][2]["stname"] = "ImVector" +defs["ImVector_resize"][2]["templated"] = true +defs["ImVector_resize"]["(int)"] = defs["ImVector_resize"][1] +defs["ImVector_resize"]["(int,const T)"] = defs["ImVector_resize"][2] +defs["ImVector_shrink"] = {} +defs["ImVector_shrink"][1] = {} +defs["ImVector_shrink"][1]["args"] = "(ImVector* self,int new_size)" +defs["ImVector_shrink"][1]["argsT"] = {} +defs["ImVector_shrink"][1]["argsT"][1] = {} +defs["ImVector_shrink"][1]["argsT"][1]["name"] = "self" +defs["ImVector_shrink"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_shrink"][1]["argsT"][2] = {} +defs["ImVector_shrink"][1]["argsT"][2]["name"] = "new_size" +defs["ImVector_shrink"][1]["argsT"][2]["type"] = "int" +defs["ImVector_shrink"][1]["argsoriginal"] = "(int new_size)" +defs["ImVector_shrink"][1]["call_args"] = "(new_size)" +defs["ImVector_shrink"][1]["cimguiname"] = "ImVector_shrink" +defs["ImVector_shrink"][1]["defaults"] = {} +defs["ImVector_shrink"][1]["funcname"] = "shrink" +defs["ImVector_shrink"][1]["location"] = "imgui:1880" +defs["ImVector_shrink"][1]["ov_cimguiname"] = "ImVector_shrink" +defs["ImVector_shrink"][1]["ret"] = "void" +defs["ImVector_shrink"][1]["signature"] = "(int)" +defs["ImVector_shrink"][1]["stname"] = "ImVector" +defs["ImVector_shrink"][1]["templated"] = true +defs["ImVector_shrink"]["(int)"] = defs["ImVector_shrink"][1] +defs["ImVector_size"] = {} +defs["ImVector_size"][1] = {} +defs["ImVector_size"][1]["args"] = "(ImVector* self)" +defs["ImVector_size"][1]["argsT"] = {} +defs["ImVector_size"][1]["argsT"][1] = {} +defs["ImVector_size"][1]["argsT"][1]["name"] = "self" +defs["ImVector_size"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_size"][1]["argsoriginal"] = "()" +defs["ImVector_size"][1]["call_args"] = "()" +defs["ImVector_size"][1]["cimguiname"] = "ImVector_size" +defs["ImVector_size"][1]["defaults"] = {} +defs["ImVector_size"][1]["funcname"] = "size" +defs["ImVector_size"][1]["location"] = "imgui:1860" +defs["ImVector_size"][1]["ov_cimguiname"] = "ImVector_size" +defs["ImVector_size"][1]["ret"] = "int" +defs["ImVector_size"][1]["signature"] = "()const" +defs["ImVector_size"][1]["stname"] = "ImVector" +defs["ImVector_size"][1]["templated"] = true +defs["ImVector_size"]["()const"] = defs["ImVector_size"][1] +defs["ImVector_size_in_bytes"] = {} +defs["ImVector_size_in_bytes"][1] = {} +defs["ImVector_size_in_bytes"][1]["args"] = "(ImVector* self)" +defs["ImVector_size_in_bytes"][1]["argsT"] = {} +defs["ImVector_size_in_bytes"][1]["argsT"][1] = {} +defs["ImVector_size_in_bytes"][1]["argsT"][1]["name"] = "self" +defs["ImVector_size_in_bytes"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_size_in_bytes"][1]["argsoriginal"] = "()" +defs["ImVector_size_in_bytes"][1]["call_args"] = "()" +defs["ImVector_size_in_bytes"][1]["cimguiname"] = "ImVector_size_in_bytes" +defs["ImVector_size_in_bytes"][1]["defaults"] = {} +defs["ImVector_size_in_bytes"][1]["funcname"] = "size_in_bytes" +defs["ImVector_size_in_bytes"][1]["location"] = "imgui:1861" +defs["ImVector_size_in_bytes"][1]["ov_cimguiname"] = "ImVector_size_in_bytes" +defs["ImVector_size_in_bytes"][1]["ret"] = "int" +defs["ImVector_size_in_bytes"][1]["signature"] = "()const" +defs["ImVector_size_in_bytes"][1]["stname"] = "ImVector" +defs["ImVector_size_in_bytes"][1]["templated"] = true +defs["ImVector_size_in_bytes"]["()const"] = defs["ImVector_size_in_bytes"][1] +defs["ImVector_swap"] = {} +defs["ImVector_swap"][1] = {} +defs["ImVector_swap"][1]["args"] = "(ImVector* self,ImVector_T * rhs)" +defs["ImVector_swap"][1]["argsT"] = {} +defs["ImVector_swap"][1]["argsT"][1] = {} +defs["ImVector_swap"][1]["argsT"][1]["name"] = "self" +defs["ImVector_swap"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_swap"][1]["argsT"][2] = {} +defs["ImVector_swap"][1]["argsT"][2]["name"] = "rhs" +defs["ImVector_swap"][1]["argsT"][2]["reftoptr"] = true +defs["ImVector_swap"][1]["argsT"][2]["type"] = "ImVector_T *" +defs["ImVector_swap"][1]["argsoriginal"] = "(ImVector& rhs)" +defs["ImVector_swap"][1]["call_args"] = "(*rhs)" +defs["ImVector_swap"][1]["cimguiname"] = "ImVector_swap" +defs["ImVector_swap"][1]["defaults"] = {} +defs["ImVector_swap"][1]["funcname"] = "swap" +defs["ImVector_swap"][1]["location"] = "imgui:1875" +defs["ImVector_swap"][1]["ov_cimguiname"] = "ImVector_swap" +defs["ImVector_swap"][1]["ret"] = "void" +defs["ImVector_swap"][1]["signature"] = "(ImVector_T *)" +defs["ImVector_swap"][1]["stname"] = "ImVector" +defs["ImVector_swap"][1]["templated"] = true +defs["ImVector_swap"]["(ImVector_T *)"] = defs["ImVector_swap"][1] +defs["igAcceptDragDropPayload"] = {} +defs["igAcceptDragDropPayload"][1] = {} +defs["igAcceptDragDropPayload"][1]["args"] = "(const char* type,ImGuiDragDropFlags flags)" +defs["igAcceptDragDropPayload"][1]["argsT"] = {} +defs["igAcceptDragDropPayload"][1]["argsT"][1] = {} +defs["igAcceptDragDropPayload"][1]["argsT"][1]["name"] = "type" +defs["igAcceptDragDropPayload"][1]["argsT"][1]["type"] = "const char*" +defs["igAcceptDragDropPayload"][1]["argsT"][2] = {} +defs["igAcceptDragDropPayload"][1]["argsT"][2]["name"] = "flags" +defs["igAcceptDragDropPayload"][1]["argsT"][2]["type"] = "ImGuiDragDropFlags" +defs["igAcceptDragDropPayload"][1]["argsoriginal"] = "(const char* type,ImGuiDragDropFlags flags=0)" +defs["igAcceptDragDropPayload"][1]["call_args"] = "(type,flags)" +defs["igAcceptDragDropPayload"][1]["cimguiname"] = "igAcceptDragDropPayload" +defs["igAcceptDragDropPayload"][1]["defaults"] = {} +defs["igAcceptDragDropPayload"][1]["defaults"]["flags"] = "0" +defs["igAcceptDragDropPayload"][1]["funcname"] = "AcceptDragDropPayload" +defs["igAcceptDragDropPayload"][1]["location"] = "imgui:841" +defs["igAcceptDragDropPayload"][1]["namespace"] = "ImGui" +defs["igAcceptDragDropPayload"][1]["ov_cimguiname"] = "igAcceptDragDropPayload" +defs["igAcceptDragDropPayload"][1]["ret"] = "const ImGuiPayload*" +defs["igAcceptDragDropPayload"][1]["signature"] = "(const char*,ImGuiDragDropFlags)" +defs["igAcceptDragDropPayload"][1]["stname"] = "" +defs["igAcceptDragDropPayload"]["(const char*,ImGuiDragDropFlags)"] = defs["igAcceptDragDropPayload"][1] +defs["igAlignTextToFramePadding"] = {} +defs["igAlignTextToFramePadding"][1] = {} +defs["igAlignTextToFramePadding"][1]["args"] = "()" +defs["igAlignTextToFramePadding"][1]["argsT"] = {} +defs["igAlignTextToFramePadding"][1]["argsoriginal"] = "()" +defs["igAlignTextToFramePadding"][1]["call_args"] = "()" +defs["igAlignTextToFramePadding"][1]["cimguiname"] = "igAlignTextToFramePadding" +defs["igAlignTextToFramePadding"][1]["defaults"] = {} +defs["igAlignTextToFramePadding"][1]["funcname"] = "AlignTextToFramePadding" +defs["igAlignTextToFramePadding"][1]["location"] = "imgui:465" +defs["igAlignTextToFramePadding"][1]["namespace"] = "ImGui" +defs["igAlignTextToFramePadding"][1]["ov_cimguiname"] = "igAlignTextToFramePadding" +defs["igAlignTextToFramePadding"][1]["ret"] = "void" +defs["igAlignTextToFramePadding"][1]["signature"] = "()" +defs["igAlignTextToFramePadding"][1]["stname"] = "" +defs["igAlignTextToFramePadding"]["()"] = defs["igAlignTextToFramePadding"][1] +defs["igArrowButton"] = {} +defs["igArrowButton"][1] = {} +defs["igArrowButton"][1]["args"] = "(const char* str_id,ImGuiDir dir)" +defs["igArrowButton"][1]["argsT"] = {} +defs["igArrowButton"][1]["argsT"][1] = {} +defs["igArrowButton"][1]["argsT"][1]["name"] = "str_id" +defs["igArrowButton"][1]["argsT"][1]["type"] = "const char*" +defs["igArrowButton"][1]["argsT"][2] = {} +defs["igArrowButton"][1]["argsT"][2]["name"] = "dir" +defs["igArrowButton"][1]["argsT"][2]["type"] = "ImGuiDir" +defs["igArrowButton"][1]["argsoriginal"] = "(const char* str_id,ImGuiDir dir)" +defs["igArrowButton"][1]["call_args"] = "(str_id,dir)" +defs["igArrowButton"][1]["cimguiname"] = "igArrowButton" +defs["igArrowButton"][1]["defaults"] = {} +defs["igArrowButton"][1]["funcname"] = "ArrowButton" +defs["igArrowButton"][1]["location"] = "imgui:512" +defs["igArrowButton"][1]["namespace"] = "ImGui" +defs["igArrowButton"][1]["ov_cimguiname"] = "igArrowButton" +defs["igArrowButton"][1]["ret"] = "bool" +defs["igArrowButton"][1]["signature"] = "(const char*,ImGuiDir)" +defs["igArrowButton"][1]["stname"] = "" +defs["igArrowButton"]["(const char*,ImGuiDir)"] = defs["igArrowButton"][1] +defs["igBegin"] = {} +defs["igBegin"][1] = {} +defs["igBegin"][1]["args"] = "(const char* name,bool* p_open,ImGuiWindowFlags flags)" +defs["igBegin"][1]["argsT"] = {} +defs["igBegin"][1]["argsT"][1] = {} +defs["igBegin"][1]["argsT"][1]["name"] = "name" +defs["igBegin"][1]["argsT"][1]["type"] = "const char*" +defs["igBegin"][1]["argsT"][2] = {} +defs["igBegin"][1]["argsT"][2]["name"] = "p_open" +defs["igBegin"][1]["argsT"][2]["type"] = "bool*" +defs["igBegin"][1]["argsT"][3] = {} +defs["igBegin"][1]["argsT"][3]["name"] = "flags" +defs["igBegin"][1]["argsT"][3]["type"] = "ImGuiWindowFlags" +defs["igBegin"][1]["argsoriginal"] = "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)" +defs["igBegin"][1]["call_args"] = "(name,p_open,flags)" +defs["igBegin"][1]["cimguiname"] = "igBegin" +defs["igBegin"][1]["defaults"] = {} +defs["igBegin"][1]["defaults"]["flags"] = "0" +defs["igBegin"][1]["defaults"]["p_open"] = "NULL" +defs["igBegin"][1]["funcname"] = "Begin" +defs["igBegin"][1]["location"] = "imgui:336" +defs["igBegin"][1]["namespace"] = "ImGui" +defs["igBegin"][1]["ov_cimguiname"] = "igBegin" +defs["igBegin"][1]["ret"] = "bool" +defs["igBegin"][1]["signature"] = "(const char*,bool*,ImGuiWindowFlags)" +defs["igBegin"][1]["stname"] = "" +defs["igBegin"]["(const char*,bool*,ImGuiWindowFlags)"] = defs["igBegin"][1] +defs["igBeginChild"] = {} +defs["igBeginChild"][1] = {} +defs["igBeginChild"][1]["args"] = "(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags)" +defs["igBeginChild"][1]["argsT"] = {} +defs["igBeginChild"][1]["argsT"][1] = {} +defs["igBeginChild"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginChild"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginChild"][1]["argsT"][2] = {} +defs["igBeginChild"][1]["argsT"][2]["name"] = "size" +defs["igBeginChild"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igBeginChild"][1]["argsT"][3] = {} +defs["igBeginChild"][1]["argsT"][3]["name"] = "border" +defs["igBeginChild"][1]["argsT"][3]["type"] = "bool" +defs["igBeginChild"][1]["argsT"][4] = {} +defs["igBeginChild"][1]["argsT"][4]["name"] = "flags" +defs["igBeginChild"][1]["argsT"][4]["type"] = "ImGuiWindowFlags" +defs["igBeginChild"][1]["argsoriginal"] = "(const char* str_id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)" +defs["igBeginChild"][1]["call_args"] = "(str_id,size,border,flags)" +defs["igBeginChild"][1]["cimguiname"] = "igBeginChild" +defs["igBeginChild"][1]["defaults"] = {} +defs["igBeginChild"][1]["defaults"]["border"] = "false" +defs["igBeginChild"][1]["defaults"]["flags"] = "0" +defs["igBeginChild"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igBeginChild"][1]["funcname"] = "BeginChild" +defs["igBeginChild"][1]["location"] = "imgui:347" +defs["igBeginChild"][1]["namespace"] = "ImGui" +defs["igBeginChild"][1]["ov_cimguiname"] = "igBeginChild_Str" +defs["igBeginChild"][1]["ret"] = "bool" +defs["igBeginChild"][1]["signature"] = "(const char*,const ImVec2,bool,ImGuiWindowFlags)" +defs["igBeginChild"][1]["stname"] = "" +defs["igBeginChild"][2] = {} +defs["igBeginChild"][2]["args"] = "(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags)" +defs["igBeginChild"][2]["argsT"] = {} +defs["igBeginChild"][2]["argsT"][1] = {} +defs["igBeginChild"][2]["argsT"][1]["name"] = "id" +defs["igBeginChild"][2]["argsT"][1]["type"] = "ImGuiID" +defs["igBeginChild"][2]["argsT"][2] = {} +defs["igBeginChild"][2]["argsT"][2]["name"] = "size" +defs["igBeginChild"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igBeginChild"][2]["argsT"][3] = {} +defs["igBeginChild"][2]["argsT"][3]["name"] = "border" +defs["igBeginChild"][2]["argsT"][3]["type"] = "bool" +defs["igBeginChild"][2]["argsT"][4] = {} +defs["igBeginChild"][2]["argsT"][4]["name"] = "flags" +defs["igBeginChild"][2]["argsT"][4]["type"] = "ImGuiWindowFlags" +defs["igBeginChild"][2]["argsoriginal"] = "(ImGuiID id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)" +defs["igBeginChild"][2]["call_args"] = "(id,size,border,flags)" +defs["igBeginChild"][2]["cimguiname"] = "igBeginChild" +defs["igBeginChild"][2]["defaults"] = {} +defs["igBeginChild"][2]["defaults"]["border"] = "false" +defs["igBeginChild"][2]["defaults"]["flags"] = "0" +defs["igBeginChild"][2]["defaults"]["size"] = "ImVec2(0,0)" +defs["igBeginChild"][2]["funcname"] = "BeginChild" +defs["igBeginChild"][2]["location"] = "imgui:348" +defs["igBeginChild"][2]["namespace"] = "ImGui" +defs["igBeginChild"][2]["ov_cimguiname"] = "igBeginChild_ID" +defs["igBeginChild"][2]["ret"] = "bool" +defs["igBeginChild"][2]["signature"] = "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)" +defs["igBeginChild"][2]["stname"] = "" +defs["igBeginChild"]["(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)"] = defs["igBeginChild"][2] +defs["igBeginChild"]["(const char*,const ImVec2,bool,ImGuiWindowFlags)"] = defs["igBeginChild"][1] +defs["igBeginChildFrame"] = {} +defs["igBeginChildFrame"][1] = {} +defs["igBeginChildFrame"][1]["args"] = "(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags)" +defs["igBeginChildFrame"][1]["argsT"] = {} +defs["igBeginChildFrame"][1]["argsT"][1] = {} +defs["igBeginChildFrame"][1]["argsT"][1]["name"] = "id" +defs["igBeginChildFrame"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igBeginChildFrame"][1]["argsT"][2] = {} +defs["igBeginChildFrame"][1]["argsT"][2]["name"] = "size" +defs["igBeginChildFrame"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igBeginChildFrame"][1]["argsT"][3] = {} +defs["igBeginChildFrame"][1]["argsT"][3]["name"] = "flags" +defs["igBeginChildFrame"][1]["argsT"][3]["type"] = "ImGuiWindowFlags" +defs["igBeginChildFrame"][1]["argsoriginal"] = "(ImGuiID id,const ImVec2& size,ImGuiWindowFlags flags=0)" +defs["igBeginChildFrame"][1]["call_args"] = "(id,size,flags)" +defs["igBeginChildFrame"][1]["cimguiname"] = "igBeginChildFrame" +defs["igBeginChildFrame"][1]["defaults"] = {} +defs["igBeginChildFrame"][1]["defaults"]["flags"] = "0" +defs["igBeginChildFrame"][1]["funcname"] = "BeginChildFrame" +defs["igBeginChildFrame"][1]["location"] = "imgui:904" +defs["igBeginChildFrame"][1]["namespace"] = "ImGui" +defs["igBeginChildFrame"][1]["ov_cimguiname"] = "igBeginChildFrame" +defs["igBeginChildFrame"][1]["ret"] = "bool" +defs["igBeginChildFrame"][1]["signature"] = "(ImGuiID,const ImVec2,ImGuiWindowFlags)" +defs["igBeginChildFrame"][1]["stname"] = "" +defs["igBeginChildFrame"]["(ImGuiID,const ImVec2,ImGuiWindowFlags)"] = defs["igBeginChildFrame"][1] +defs["igBeginCombo"] = {} +defs["igBeginCombo"][1] = {} +defs["igBeginCombo"][1]["args"] = "(const char* label,const char* preview_value,ImGuiComboFlags flags)" +defs["igBeginCombo"][1]["argsT"] = {} +defs["igBeginCombo"][1]["argsT"][1] = {} +defs["igBeginCombo"][1]["argsT"][1]["name"] = "label" +defs["igBeginCombo"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginCombo"][1]["argsT"][2] = {} +defs["igBeginCombo"][1]["argsT"][2]["name"] = "preview_value" +defs["igBeginCombo"][1]["argsT"][2]["type"] = "const char*" +defs["igBeginCombo"][1]["argsT"][3] = {} +defs["igBeginCombo"][1]["argsT"][3]["name"] = "flags" +defs["igBeginCombo"][1]["argsT"][3]["type"] = "ImGuiComboFlags" +defs["igBeginCombo"][1]["argsoriginal"] = "(const char* label,const char* preview_value,ImGuiComboFlags flags=0)" +defs["igBeginCombo"][1]["call_args"] = "(label,preview_value,flags)" +defs["igBeginCombo"][1]["cimguiname"] = "igBeginCombo" +defs["igBeginCombo"][1]["defaults"] = {} +defs["igBeginCombo"][1]["defaults"]["flags"] = "0" +defs["igBeginCombo"][1]["funcname"] = "BeginCombo" +defs["igBeginCombo"][1]["location"] = "imgui:529" +defs["igBeginCombo"][1]["namespace"] = "ImGui" +defs["igBeginCombo"][1]["ov_cimguiname"] = "igBeginCombo" +defs["igBeginCombo"][1]["ret"] = "bool" +defs["igBeginCombo"][1]["signature"] = "(const char*,const char*,ImGuiComboFlags)" +defs["igBeginCombo"][1]["stname"] = "" +defs["igBeginCombo"]["(const char*,const char*,ImGuiComboFlags)"] = defs["igBeginCombo"][1] +defs["igBeginDisabled"] = {} +defs["igBeginDisabled"][1] = {} +defs["igBeginDisabled"][1]["args"] = "(bool disabled)" +defs["igBeginDisabled"][1]["argsT"] = {} +defs["igBeginDisabled"][1]["argsT"][1] = {} +defs["igBeginDisabled"][1]["argsT"][1]["name"] = "disabled" +defs["igBeginDisabled"][1]["argsT"][1]["type"] = "bool" +defs["igBeginDisabled"][1]["argsoriginal"] = "(bool disabled=true)" +defs["igBeginDisabled"][1]["call_args"] = "(disabled)" +defs["igBeginDisabled"][1]["cimguiname"] = "igBeginDisabled" +defs["igBeginDisabled"][1]["defaults"] = {} +defs["igBeginDisabled"][1]["defaults"]["disabled"] = "true" +defs["igBeginDisabled"][1]["funcname"] = "BeginDisabled" +defs["igBeginDisabled"][1]["location"] = "imgui:849" +defs["igBeginDisabled"][1]["namespace"] = "ImGui" +defs["igBeginDisabled"][1]["ov_cimguiname"] = "igBeginDisabled" +defs["igBeginDisabled"][1]["ret"] = "void" +defs["igBeginDisabled"][1]["signature"] = "(bool)" +defs["igBeginDisabled"][1]["stname"] = "" +defs["igBeginDisabled"]["(bool)"] = defs["igBeginDisabled"][1] +defs["igBeginDragDropSource"] = {} +defs["igBeginDragDropSource"][1] = {} +defs["igBeginDragDropSource"][1]["args"] = "(ImGuiDragDropFlags flags)" +defs["igBeginDragDropSource"][1]["argsT"] = {} +defs["igBeginDragDropSource"][1]["argsT"][1] = {} +defs["igBeginDragDropSource"][1]["argsT"][1]["name"] = "flags" +defs["igBeginDragDropSource"][1]["argsT"][1]["type"] = "ImGuiDragDropFlags" +defs["igBeginDragDropSource"][1]["argsoriginal"] = "(ImGuiDragDropFlags flags=0)" +defs["igBeginDragDropSource"][1]["call_args"] = "(flags)" +defs["igBeginDragDropSource"][1]["cimguiname"] = "igBeginDragDropSource" +defs["igBeginDragDropSource"][1]["defaults"] = {} +defs["igBeginDragDropSource"][1]["defaults"]["flags"] = "0" +defs["igBeginDragDropSource"][1]["funcname"] = "BeginDragDropSource" +defs["igBeginDragDropSource"][1]["location"] = "imgui:837" +defs["igBeginDragDropSource"][1]["namespace"] = "ImGui" +defs["igBeginDragDropSource"][1]["ov_cimguiname"] = "igBeginDragDropSource" +defs["igBeginDragDropSource"][1]["ret"] = "bool" +defs["igBeginDragDropSource"][1]["signature"] = "(ImGuiDragDropFlags)" +defs["igBeginDragDropSource"][1]["stname"] = "" +defs["igBeginDragDropSource"]["(ImGuiDragDropFlags)"] = defs["igBeginDragDropSource"][1] +defs["igBeginDragDropTarget"] = {} +defs["igBeginDragDropTarget"][1] = {} +defs["igBeginDragDropTarget"][1]["args"] = "()" +defs["igBeginDragDropTarget"][1]["argsT"] = {} +defs["igBeginDragDropTarget"][1]["argsoriginal"] = "()" +defs["igBeginDragDropTarget"][1]["call_args"] = "()" +defs["igBeginDragDropTarget"][1]["cimguiname"] = "igBeginDragDropTarget" +defs["igBeginDragDropTarget"][1]["defaults"] = {} +defs["igBeginDragDropTarget"][1]["funcname"] = "BeginDragDropTarget" +defs["igBeginDragDropTarget"][1]["location"] = "imgui:840" +defs["igBeginDragDropTarget"][1]["namespace"] = "ImGui" +defs["igBeginDragDropTarget"][1]["ov_cimguiname"] = "igBeginDragDropTarget" +defs["igBeginDragDropTarget"][1]["ret"] = "bool" +defs["igBeginDragDropTarget"][1]["signature"] = "()" +defs["igBeginDragDropTarget"][1]["stname"] = "" +defs["igBeginDragDropTarget"]["()"] = defs["igBeginDragDropTarget"][1] +defs["igBeginGroup"] = {} +defs["igBeginGroup"][1] = {} +defs["igBeginGroup"][1]["args"] = "()" +defs["igBeginGroup"][1]["argsT"] = {} +defs["igBeginGroup"][1]["argsoriginal"] = "()" +defs["igBeginGroup"][1]["call_args"] = "()" +defs["igBeginGroup"][1]["cimguiname"] = "igBeginGroup" +defs["igBeginGroup"][1]["defaults"] = {} +defs["igBeginGroup"][1]["funcname"] = "BeginGroup" +defs["igBeginGroup"][1]["location"] = "imgui:454" +defs["igBeginGroup"][1]["namespace"] = "ImGui" +defs["igBeginGroup"][1]["ov_cimguiname"] = "igBeginGroup" +defs["igBeginGroup"][1]["ret"] = "void" +defs["igBeginGroup"][1]["signature"] = "()" +defs["igBeginGroup"][1]["stname"] = "" +defs["igBeginGroup"]["()"] = defs["igBeginGroup"][1] +defs["igBeginListBox"] = {} +defs["igBeginListBox"][1] = {} +defs["igBeginListBox"][1]["args"] = "(const char* label,const ImVec2 size)" +defs["igBeginListBox"][1]["argsT"] = {} +defs["igBeginListBox"][1]["argsT"][1] = {} +defs["igBeginListBox"][1]["argsT"][1]["name"] = "label" +defs["igBeginListBox"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginListBox"][1]["argsT"][2] = {} +defs["igBeginListBox"][1]["argsT"][2]["name"] = "size" +defs["igBeginListBox"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igBeginListBox"][1]["argsoriginal"] = "(const char* label,const ImVec2& size=ImVec2(0,0))" +defs["igBeginListBox"][1]["call_args"] = "(label,size)" +defs["igBeginListBox"][1]["cimguiname"] = "igBeginListBox" +defs["igBeginListBox"][1]["defaults"] = {} +defs["igBeginListBox"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igBeginListBox"][1]["funcname"] = "BeginListBox" +defs["igBeginListBox"][1]["location"] = "imgui:641" +defs["igBeginListBox"][1]["namespace"] = "ImGui" +defs["igBeginListBox"][1]["ov_cimguiname"] = "igBeginListBox" +defs["igBeginListBox"][1]["ret"] = "bool" +defs["igBeginListBox"][1]["signature"] = "(const char*,const ImVec2)" +defs["igBeginListBox"][1]["stname"] = "" +defs["igBeginListBox"]["(const char*,const ImVec2)"] = defs["igBeginListBox"][1] +defs["igBeginMainMenuBar"] = {} +defs["igBeginMainMenuBar"][1] = {} +defs["igBeginMainMenuBar"][1]["args"] = "()" +defs["igBeginMainMenuBar"][1]["argsT"] = {} +defs["igBeginMainMenuBar"][1]["argsoriginal"] = "()" +defs["igBeginMainMenuBar"][1]["call_args"] = "()" +defs["igBeginMainMenuBar"][1]["cimguiname"] = "igBeginMainMenuBar" +defs["igBeginMainMenuBar"][1]["defaults"] = {} +defs["igBeginMainMenuBar"][1]["funcname"] = "BeginMainMenuBar" +defs["igBeginMainMenuBar"][1]["location"] = "imgui:667" +defs["igBeginMainMenuBar"][1]["namespace"] = "ImGui" +defs["igBeginMainMenuBar"][1]["ov_cimguiname"] = "igBeginMainMenuBar" +defs["igBeginMainMenuBar"][1]["ret"] = "bool" +defs["igBeginMainMenuBar"][1]["signature"] = "()" +defs["igBeginMainMenuBar"][1]["stname"] = "" +defs["igBeginMainMenuBar"]["()"] = defs["igBeginMainMenuBar"][1] +defs["igBeginMenu"] = {} +defs["igBeginMenu"][1] = {} +defs["igBeginMenu"][1]["args"] = "(const char* label,bool enabled)" +defs["igBeginMenu"][1]["argsT"] = {} +defs["igBeginMenu"][1]["argsT"][1] = {} +defs["igBeginMenu"][1]["argsT"][1]["name"] = "label" +defs["igBeginMenu"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginMenu"][1]["argsT"][2] = {} +defs["igBeginMenu"][1]["argsT"][2]["name"] = "enabled" +defs["igBeginMenu"][1]["argsT"][2]["type"] = "bool" +defs["igBeginMenu"][1]["argsoriginal"] = "(const char* label,bool enabled=true)" +defs["igBeginMenu"][1]["call_args"] = "(label,enabled)" +defs["igBeginMenu"][1]["cimguiname"] = "igBeginMenu" +defs["igBeginMenu"][1]["defaults"] = {} +defs["igBeginMenu"][1]["defaults"]["enabled"] = "true" +defs["igBeginMenu"][1]["funcname"] = "BeginMenu" +defs["igBeginMenu"][1]["location"] = "imgui:669" +defs["igBeginMenu"][1]["namespace"] = "ImGui" +defs["igBeginMenu"][1]["ov_cimguiname"] = "igBeginMenu" +defs["igBeginMenu"][1]["ret"] = "bool" +defs["igBeginMenu"][1]["signature"] = "(const char*,bool)" +defs["igBeginMenu"][1]["stname"] = "" +defs["igBeginMenu"]["(const char*,bool)"] = defs["igBeginMenu"][1] +defs["igBeginMenuBar"] = {} +defs["igBeginMenuBar"][1] = {} +defs["igBeginMenuBar"][1]["args"] = "()" +defs["igBeginMenuBar"][1]["argsT"] = {} +defs["igBeginMenuBar"][1]["argsoriginal"] = "()" +defs["igBeginMenuBar"][1]["call_args"] = "()" +defs["igBeginMenuBar"][1]["cimguiname"] = "igBeginMenuBar" +defs["igBeginMenuBar"][1]["defaults"] = {} +defs["igBeginMenuBar"][1]["funcname"] = "BeginMenuBar" +defs["igBeginMenuBar"][1]["location"] = "imgui:665" +defs["igBeginMenuBar"][1]["namespace"] = "ImGui" +defs["igBeginMenuBar"][1]["ov_cimguiname"] = "igBeginMenuBar" +defs["igBeginMenuBar"][1]["ret"] = "bool" +defs["igBeginMenuBar"][1]["signature"] = "()" +defs["igBeginMenuBar"][1]["stname"] = "" +defs["igBeginMenuBar"]["()"] = defs["igBeginMenuBar"][1] +defs["igBeginPopup"] = {} +defs["igBeginPopup"][1] = {} +defs["igBeginPopup"][1]["args"] = "(const char* str_id,ImGuiWindowFlags flags)" +defs["igBeginPopup"][1]["argsT"] = {} +defs["igBeginPopup"][1]["argsT"][1] = {} +defs["igBeginPopup"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginPopup"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopup"][1]["argsT"][2] = {} +defs["igBeginPopup"][1]["argsT"][2]["name"] = "flags" +defs["igBeginPopup"][1]["argsT"][2]["type"] = "ImGuiWindowFlags" +defs["igBeginPopup"][1]["argsoriginal"] = "(const char* str_id,ImGuiWindowFlags flags=0)" +defs["igBeginPopup"][1]["call_args"] = "(str_id,flags)" +defs["igBeginPopup"][1]["cimguiname"] = "igBeginPopup" +defs["igBeginPopup"][1]["defaults"] = {} +defs["igBeginPopup"][1]["defaults"]["flags"] = "0" +defs["igBeginPopup"][1]["funcname"] = "BeginPopup" +defs["igBeginPopup"][1]["location"] = "imgui:693" +defs["igBeginPopup"][1]["namespace"] = "ImGui" +defs["igBeginPopup"][1]["ov_cimguiname"] = "igBeginPopup" +defs["igBeginPopup"][1]["ret"] = "bool" +defs["igBeginPopup"][1]["signature"] = "(const char*,ImGuiWindowFlags)" +defs["igBeginPopup"][1]["stname"] = "" +defs["igBeginPopup"]["(const char*,ImGuiWindowFlags)"] = defs["igBeginPopup"][1] +defs["igBeginPopupContextItem"] = {} +defs["igBeginPopupContextItem"][1] = {} +defs["igBeginPopupContextItem"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igBeginPopupContextItem"][1]["argsT"] = {} +defs["igBeginPopupContextItem"][1]["argsT"][1] = {} +defs["igBeginPopupContextItem"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginPopupContextItem"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopupContextItem"][1]["argsT"][2] = {} +defs["igBeginPopupContextItem"][1]["argsT"][2]["name"] = "popup_flags" +defs["igBeginPopupContextItem"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igBeginPopupContextItem"][1]["argsoriginal"] = "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)" +defs["igBeginPopupContextItem"][1]["call_args"] = "(str_id,popup_flags)" +defs["igBeginPopupContextItem"][1]["cimguiname"] = "igBeginPopupContextItem" +defs["igBeginPopupContextItem"][1]["defaults"] = {} +defs["igBeginPopupContextItem"][1]["defaults"]["popup_flags"] = "1" +defs["igBeginPopupContextItem"][1]["defaults"]["str_id"] = "NULL" +defs["igBeginPopupContextItem"][1]["funcname"] = "BeginPopupContextItem" +defs["igBeginPopupContextItem"][1]["location"] = "imgui:715" +defs["igBeginPopupContextItem"][1]["namespace"] = "ImGui" +defs["igBeginPopupContextItem"][1]["ov_cimguiname"] = "igBeginPopupContextItem" +defs["igBeginPopupContextItem"][1]["ret"] = "bool" +defs["igBeginPopupContextItem"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igBeginPopupContextItem"][1]["stname"] = "" +defs["igBeginPopupContextItem"]["(const char*,ImGuiPopupFlags)"] = defs["igBeginPopupContextItem"][1] +defs["igBeginPopupContextVoid"] = {} +defs["igBeginPopupContextVoid"][1] = {} +defs["igBeginPopupContextVoid"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igBeginPopupContextVoid"][1]["argsT"] = {} +defs["igBeginPopupContextVoid"][1]["argsT"][1] = {} +defs["igBeginPopupContextVoid"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginPopupContextVoid"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopupContextVoid"][1]["argsT"][2] = {} +defs["igBeginPopupContextVoid"][1]["argsT"][2]["name"] = "popup_flags" +defs["igBeginPopupContextVoid"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igBeginPopupContextVoid"][1]["argsoriginal"] = "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)" +defs["igBeginPopupContextVoid"][1]["call_args"] = "(str_id,popup_flags)" +defs["igBeginPopupContextVoid"][1]["cimguiname"] = "igBeginPopupContextVoid" +defs["igBeginPopupContextVoid"][1]["defaults"] = {} +defs["igBeginPopupContextVoid"][1]["defaults"]["popup_flags"] = "1" +defs["igBeginPopupContextVoid"][1]["defaults"]["str_id"] = "NULL" +defs["igBeginPopupContextVoid"][1]["funcname"] = "BeginPopupContextVoid" +defs["igBeginPopupContextVoid"][1]["location"] = "imgui:717" +defs["igBeginPopupContextVoid"][1]["namespace"] = "ImGui" +defs["igBeginPopupContextVoid"][1]["ov_cimguiname"] = "igBeginPopupContextVoid" +defs["igBeginPopupContextVoid"][1]["ret"] = "bool" +defs["igBeginPopupContextVoid"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igBeginPopupContextVoid"][1]["stname"] = "" +defs["igBeginPopupContextVoid"]["(const char*,ImGuiPopupFlags)"] = defs["igBeginPopupContextVoid"][1] +defs["igBeginPopupContextWindow"] = {} +defs["igBeginPopupContextWindow"][1] = {} +defs["igBeginPopupContextWindow"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igBeginPopupContextWindow"][1]["argsT"] = {} +defs["igBeginPopupContextWindow"][1]["argsT"][1] = {} +defs["igBeginPopupContextWindow"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginPopupContextWindow"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopupContextWindow"][1]["argsT"][2] = {} +defs["igBeginPopupContextWindow"][1]["argsT"][2]["name"] = "popup_flags" +defs["igBeginPopupContextWindow"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igBeginPopupContextWindow"][1]["argsoriginal"] = "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)" +defs["igBeginPopupContextWindow"][1]["call_args"] = "(str_id,popup_flags)" +defs["igBeginPopupContextWindow"][1]["cimguiname"] = "igBeginPopupContextWindow" +defs["igBeginPopupContextWindow"][1]["defaults"] = {} +defs["igBeginPopupContextWindow"][1]["defaults"]["popup_flags"] = "1" +defs["igBeginPopupContextWindow"][1]["defaults"]["str_id"] = "NULL" +defs["igBeginPopupContextWindow"][1]["funcname"] = "BeginPopupContextWindow" +defs["igBeginPopupContextWindow"][1]["location"] = "imgui:716" +defs["igBeginPopupContextWindow"][1]["namespace"] = "ImGui" +defs["igBeginPopupContextWindow"][1]["ov_cimguiname"] = "igBeginPopupContextWindow" +defs["igBeginPopupContextWindow"][1]["ret"] = "bool" +defs["igBeginPopupContextWindow"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igBeginPopupContextWindow"][1]["stname"] = "" +defs["igBeginPopupContextWindow"]["(const char*,ImGuiPopupFlags)"] = defs["igBeginPopupContextWindow"][1] +defs["igBeginPopupModal"] = {} +defs["igBeginPopupModal"][1] = {} +defs["igBeginPopupModal"][1]["args"] = "(const char* name,bool* p_open,ImGuiWindowFlags flags)" +defs["igBeginPopupModal"][1]["argsT"] = {} +defs["igBeginPopupModal"][1]["argsT"][1] = {} +defs["igBeginPopupModal"][1]["argsT"][1]["name"] = "name" +defs["igBeginPopupModal"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopupModal"][1]["argsT"][2] = {} +defs["igBeginPopupModal"][1]["argsT"][2]["name"] = "p_open" +defs["igBeginPopupModal"][1]["argsT"][2]["type"] = "bool*" +defs["igBeginPopupModal"][1]["argsT"][3] = {} +defs["igBeginPopupModal"][1]["argsT"][3]["name"] = "flags" +defs["igBeginPopupModal"][1]["argsT"][3]["type"] = "ImGuiWindowFlags" +defs["igBeginPopupModal"][1]["argsoriginal"] = "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)" +defs["igBeginPopupModal"][1]["call_args"] = "(name,p_open,flags)" +defs["igBeginPopupModal"][1]["cimguiname"] = "igBeginPopupModal" +defs["igBeginPopupModal"][1]["defaults"] = {} +defs["igBeginPopupModal"][1]["defaults"]["flags"] = "0" +defs["igBeginPopupModal"][1]["defaults"]["p_open"] = "NULL" +defs["igBeginPopupModal"][1]["funcname"] = "BeginPopupModal" +defs["igBeginPopupModal"][1]["location"] = "imgui:694" +defs["igBeginPopupModal"][1]["namespace"] = "ImGui" +defs["igBeginPopupModal"][1]["ov_cimguiname"] = "igBeginPopupModal" +defs["igBeginPopupModal"][1]["ret"] = "bool" +defs["igBeginPopupModal"][1]["signature"] = "(const char*,bool*,ImGuiWindowFlags)" +defs["igBeginPopupModal"][1]["stname"] = "" +defs["igBeginPopupModal"]["(const char*,bool*,ImGuiWindowFlags)"] = defs["igBeginPopupModal"][1] +defs["igBeginTabBar"] = {} +defs["igBeginTabBar"][1] = {} +defs["igBeginTabBar"][1]["args"] = "(const char* str_id,ImGuiTabBarFlags flags)" +defs["igBeginTabBar"][1]["argsT"] = {} +defs["igBeginTabBar"][1]["argsT"][1] = {} +defs["igBeginTabBar"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginTabBar"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginTabBar"][1]["argsT"][2] = {} +defs["igBeginTabBar"][1]["argsT"][2]["name"] = "flags" +defs["igBeginTabBar"][1]["argsT"][2]["type"] = "ImGuiTabBarFlags" +defs["igBeginTabBar"][1]["argsoriginal"] = "(const char* str_id,ImGuiTabBarFlags flags=0)" +defs["igBeginTabBar"][1]["call_args"] = "(str_id,flags)" +defs["igBeginTabBar"][1]["cimguiname"] = "igBeginTabBar" +defs["igBeginTabBar"][1]["defaults"] = {} +defs["igBeginTabBar"][1]["defaults"]["flags"] = "0" +defs["igBeginTabBar"][1]["funcname"] = "BeginTabBar" +defs["igBeginTabBar"][1]["location"] = "imgui:795" +defs["igBeginTabBar"][1]["namespace"] = "ImGui" +defs["igBeginTabBar"][1]["ov_cimguiname"] = "igBeginTabBar" +defs["igBeginTabBar"][1]["ret"] = "bool" +defs["igBeginTabBar"][1]["signature"] = "(const char*,ImGuiTabBarFlags)" +defs["igBeginTabBar"][1]["stname"] = "" +defs["igBeginTabBar"]["(const char*,ImGuiTabBarFlags)"] = defs["igBeginTabBar"][1] +defs["igBeginTabItem"] = {} +defs["igBeginTabItem"][1] = {} +defs["igBeginTabItem"][1]["args"] = "(const char* label,bool* p_open,ImGuiTabItemFlags flags)" +defs["igBeginTabItem"][1]["argsT"] = {} +defs["igBeginTabItem"][1]["argsT"][1] = {} +defs["igBeginTabItem"][1]["argsT"][1]["name"] = "label" +defs["igBeginTabItem"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginTabItem"][1]["argsT"][2] = {} +defs["igBeginTabItem"][1]["argsT"][2]["name"] = "p_open" +defs["igBeginTabItem"][1]["argsT"][2]["type"] = "bool*" +defs["igBeginTabItem"][1]["argsT"][3] = {} +defs["igBeginTabItem"][1]["argsT"][3]["name"] = "flags" +defs["igBeginTabItem"][1]["argsT"][3]["type"] = "ImGuiTabItemFlags" +defs["igBeginTabItem"][1]["argsoriginal"] = "(const char* label,bool* p_open=((void*)0),ImGuiTabItemFlags flags=0)" +defs["igBeginTabItem"][1]["call_args"] = "(label,p_open,flags)" +defs["igBeginTabItem"][1]["cimguiname"] = "igBeginTabItem" +defs["igBeginTabItem"][1]["defaults"] = {} +defs["igBeginTabItem"][1]["defaults"]["flags"] = "0" +defs["igBeginTabItem"][1]["defaults"]["p_open"] = "NULL" +defs["igBeginTabItem"][1]["funcname"] = "BeginTabItem" +defs["igBeginTabItem"][1]["location"] = "imgui:797" +defs["igBeginTabItem"][1]["namespace"] = "ImGui" +defs["igBeginTabItem"][1]["ov_cimguiname"] = "igBeginTabItem" +defs["igBeginTabItem"][1]["ret"] = "bool" +defs["igBeginTabItem"][1]["signature"] = "(const char*,bool*,ImGuiTabItemFlags)" +defs["igBeginTabItem"][1]["stname"] = "" +defs["igBeginTabItem"]["(const char*,bool*,ImGuiTabItemFlags)"] = defs["igBeginTabItem"][1] +defs["igBeginTable"] = {} +defs["igBeginTable"][1] = {} +defs["igBeginTable"][1]["args"] = "(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width)" +defs["igBeginTable"][1]["argsT"] = {} +defs["igBeginTable"][1]["argsT"][1] = {} +defs["igBeginTable"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginTable"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginTable"][1]["argsT"][2] = {} +defs["igBeginTable"][1]["argsT"][2]["name"] = "column" +defs["igBeginTable"][1]["argsT"][2]["type"] = "int" +defs["igBeginTable"][1]["argsT"][3] = {} +defs["igBeginTable"][1]["argsT"][3]["name"] = "flags" +defs["igBeginTable"][1]["argsT"][3]["type"] = "ImGuiTableFlags" +defs["igBeginTable"][1]["argsT"][4] = {} +defs["igBeginTable"][1]["argsT"][4]["name"] = "outer_size" +defs["igBeginTable"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igBeginTable"][1]["argsT"][5] = {} +defs["igBeginTable"][1]["argsT"][5]["name"] = "inner_width" +defs["igBeginTable"][1]["argsT"][5]["type"] = "float" +defs["igBeginTable"][1]["argsoriginal"] = "(const char* str_id,int column,ImGuiTableFlags flags=0,const ImVec2& outer_size=ImVec2(0.0f,0.0f),float inner_width=0.0f)" +defs["igBeginTable"][1]["call_args"] = "(str_id,column,flags,outer_size,inner_width)" +defs["igBeginTable"][1]["cimguiname"] = "igBeginTable" +defs["igBeginTable"][1]["defaults"] = {} +defs["igBeginTable"][1]["defaults"]["flags"] = "0" +defs["igBeginTable"][1]["defaults"]["inner_width"] = "0.0f" +defs["igBeginTable"][1]["defaults"]["outer_size"] = "ImVec2(0.0f,0.0f)" +defs["igBeginTable"][1]["funcname"] = "BeginTable" +defs["igBeginTable"][1]["location"] = "imgui:748" +defs["igBeginTable"][1]["namespace"] = "ImGui" +defs["igBeginTable"][1]["ov_cimguiname"] = "igBeginTable" +defs["igBeginTable"][1]["ret"] = "bool" +defs["igBeginTable"][1]["signature"] = "(const char*,int,ImGuiTableFlags,const ImVec2,float)" +defs["igBeginTable"][1]["stname"] = "" +defs["igBeginTable"]["(const char*,int,ImGuiTableFlags,const ImVec2,float)"] = defs["igBeginTable"][1] +defs["igBeginTooltip"] = {} +defs["igBeginTooltip"][1] = {} +defs["igBeginTooltip"][1]["args"] = "()" +defs["igBeginTooltip"][1]["argsT"] = {} +defs["igBeginTooltip"][1]["argsoriginal"] = "()" +defs["igBeginTooltip"][1]["call_args"] = "()" +defs["igBeginTooltip"][1]["cimguiname"] = "igBeginTooltip" +defs["igBeginTooltip"][1]["defaults"] = {} +defs["igBeginTooltip"][1]["funcname"] = "BeginTooltip" +defs["igBeginTooltip"][1]["location"] = "imgui:676" +defs["igBeginTooltip"][1]["namespace"] = "ImGui" +defs["igBeginTooltip"][1]["ov_cimguiname"] = "igBeginTooltip" +defs["igBeginTooltip"][1]["ret"] = "void" +defs["igBeginTooltip"][1]["signature"] = "()" +defs["igBeginTooltip"][1]["stname"] = "" +defs["igBeginTooltip"]["()"] = defs["igBeginTooltip"][1] +defs["igBullet"] = {} +defs["igBullet"][1] = {} +defs["igBullet"][1]["args"] = "()" +defs["igBullet"][1]["argsT"] = {} +defs["igBullet"][1]["argsoriginal"] = "()" +defs["igBullet"][1]["call_args"] = "()" +defs["igBullet"][1]["cimguiname"] = "igBullet" +defs["igBullet"][1]["defaults"] = {} +defs["igBullet"][1]["funcname"] = "Bullet" +defs["igBullet"][1]["location"] = "imgui:519" +defs["igBullet"][1]["namespace"] = "ImGui" +defs["igBullet"][1]["ov_cimguiname"] = "igBullet" +defs["igBullet"][1]["ret"] = "void" +defs["igBullet"][1]["signature"] = "()" +defs["igBullet"][1]["stname"] = "" +defs["igBullet"]["()"] = defs["igBullet"][1] +defs["igBulletText"] = {} +defs["igBulletText"][1] = {} +defs["igBulletText"][1]["args"] = "(const char* fmt,...)" +defs["igBulletText"][1]["argsT"] = {} +defs["igBulletText"][1]["argsT"][1] = {} +defs["igBulletText"][1]["argsT"][1]["name"] = "fmt" +defs["igBulletText"][1]["argsT"][1]["type"] = "const char*" +defs["igBulletText"][1]["argsT"][2] = {} +defs["igBulletText"][1]["argsT"][2]["name"] = "..." +defs["igBulletText"][1]["argsT"][2]["type"] = "..." +defs["igBulletText"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igBulletText"][1]["call_args"] = "(fmt,...)" +defs["igBulletText"][1]["cimguiname"] = "igBulletText" +defs["igBulletText"][1]["defaults"] = {} +defs["igBulletText"][1]["funcname"] = "BulletText" +defs["igBulletText"][1]["isvararg"] = "...)" +defs["igBulletText"][1]["location"] = "imgui:503" +defs["igBulletText"][1]["namespace"] = "ImGui" +defs["igBulletText"][1]["ov_cimguiname"] = "igBulletText" +defs["igBulletText"][1]["ret"] = "void" +defs["igBulletText"][1]["signature"] = "(const char*,...)" +defs["igBulletText"][1]["stname"] = "" +defs["igBulletText"]["(const char*,...)"] = defs["igBulletText"][1] +defs["igBulletTextV"] = {} +defs["igBulletTextV"][1] = {} +defs["igBulletTextV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igBulletTextV"][1]["argsT"] = {} +defs["igBulletTextV"][1]["argsT"][1] = {} +defs["igBulletTextV"][1]["argsT"][1]["name"] = "fmt" +defs["igBulletTextV"][1]["argsT"][1]["type"] = "const char*" +defs["igBulletTextV"][1]["argsT"][2] = {} +defs["igBulletTextV"][1]["argsT"][2]["name"] = "args" +defs["igBulletTextV"][1]["argsT"][2]["type"] = "va_list" +defs["igBulletTextV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igBulletTextV"][1]["call_args"] = "(fmt,args)" +defs["igBulletTextV"][1]["cimguiname"] = "igBulletTextV" +defs["igBulletTextV"][1]["defaults"] = {} +defs["igBulletTextV"][1]["funcname"] = "BulletTextV" +defs["igBulletTextV"][1]["location"] = "imgui:504" +defs["igBulletTextV"][1]["namespace"] = "ImGui" +defs["igBulletTextV"][1]["ov_cimguiname"] = "igBulletTextV" +defs["igBulletTextV"][1]["ret"] = "void" +defs["igBulletTextV"][1]["signature"] = "(const char*,va_list)" +defs["igBulletTextV"][1]["stname"] = "" +defs["igBulletTextV"]["(const char*,va_list)"] = defs["igBulletTextV"][1] +defs["igButton"] = {} +defs["igButton"][1] = {} +defs["igButton"][1]["args"] = "(const char* label,const ImVec2 size)" +defs["igButton"][1]["argsT"] = {} +defs["igButton"][1]["argsT"][1] = {} +defs["igButton"][1]["argsT"][1]["name"] = "label" +defs["igButton"][1]["argsT"][1]["type"] = "const char*" +defs["igButton"][1]["argsT"][2] = {} +defs["igButton"][1]["argsT"][2]["name"] = "size" +defs["igButton"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igButton"][1]["argsoriginal"] = "(const char* label,const ImVec2& size=ImVec2(0,0))" +defs["igButton"][1]["call_args"] = "(label,size)" +defs["igButton"][1]["cimguiname"] = "igButton" +defs["igButton"][1]["defaults"] = {} +defs["igButton"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igButton"][1]["funcname"] = "Button" +defs["igButton"][1]["location"] = "imgui:509" +defs["igButton"][1]["namespace"] = "ImGui" +defs["igButton"][1]["ov_cimguiname"] = "igButton" +defs["igButton"][1]["ret"] = "bool" +defs["igButton"][1]["signature"] = "(const char*,const ImVec2)" +defs["igButton"][1]["stname"] = "" +defs["igButton"]["(const char*,const ImVec2)"] = defs["igButton"][1] +defs["igCalcItemWidth"] = {} +defs["igCalcItemWidth"][1] = {} +defs["igCalcItemWidth"][1]["args"] = "()" +defs["igCalcItemWidth"][1]["argsT"] = {} +defs["igCalcItemWidth"][1]["argsoriginal"] = "()" +defs["igCalcItemWidth"][1]["call_args"] = "()" +defs["igCalcItemWidth"][1]["cimguiname"] = "igCalcItemWidth" +defs["igCalcItemWidth"][1]["defaults"] = {} +defs["igCalcItemWidth"][1]["funcname"] = "CalcItemWidth" +defs["igCalcItemWidth"][1]["location"] = "imgui:426" +defs["igCalcItemWidth"][1]["namespace"] = "ImGui" +defs["igCalcItemWidth"][1]["ov_cimguiname"] = "igCalcItemWidth" +defs["igCalcItemWidth"][1]["ret"] = "float" +defs["igCalcItemWidth"][1]["signature"] = "()" +defs["igCalcItemWidth"][1]["stname"] = "" +defs["igCalcItemWidth"]["()"] = defs["igCalcItemWidth"][1] +defs["igCalcTextSize"] = {} +defs["igCalcTextSize"][1] = {} +defs["igCalcTextSize"][1]["args"] = "(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)" +defs["igCalcTextSize"][1]["argsT"] = {} +defs["igCalcTextSize"][1]["argsT"][1] = {} +defs["igCalcTextSize"][1]["argsT"][1]["name"] = "pOut" +defs["igCalcTextSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igCalcTextSize"][1]["argsT"][2] = {} +defs["igCalcTextSize"][1]["argsT"][2]["name"] = "text" +defs["igCalcTextSize"][1]["argsT"][2]["type"] = "const char*" +defs["igCalcTextSize"][1]["argsT"][3] = {} +defs["igCalcTextSize"][1]["argsT"][3]["name"] = "text_end" +defs["igCalcTextSize"][1]["argsT"][3]["type"] = "const char*" +defs["igCalcTextSize"][1]["argsT"][4] = {} +defs["igCalcTextSize"][1]["argsT"][4]["name"] = "hide_text_after_double_hash" +defs["igCalcTextSize"][1]["argsT"][4]["type"] = "bool" +defs["igCalcTextSize"][1]["argsT"][5] = {} +defs["igCalcTextSize"][1]["argsT"][5]["name"] = "wrap_width" +defs["igCalcTextSize"][1]["argsT"][5]["type"] = "float" +defs["igCalcTextSize"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0),bool hide_text_after_double_hash=false,float wrap_width=-1.0f)" +defs["igCalcTextSize"][1]["call_args"] = "(text,text_end,hide_text_after_double_hash,wrap_width)" +defs["igCalcTextSize"][1]["cimguiname"] = "igCalcTextSize" +defs["igCalcTextSize"][1]["defaults"] = {} +defs["igCalcTextSize"][1]["defaults"]["hide_text_after_double_hash"] = "false" +defs["igCalcTextSize"][1]["defaults"]["text_end"] = "NULL" +defs["igCalcTextSize"][1]["defaults"]["wrap_width"] = "-1.0f" +defs["igCalcTextSize"][1]["funcname"] = "CalcTextSize" +defs["igCalcTextSize"][1]["location"] = "imgui:908" +defs["igCalcTextSize"][1]["namespace"] = "ImGui" +defs["igCalcTextSize"][1]["nonUDT"] = 1 +defs["igCalcTextSize"][1]["ov_cimguiname"] = "igCalcTextSize" +defs["igCalcTextSize"][1]["ret"] = "void" +defs["igCalcTextSize"][1]["signature"] = "(const char*,const char*,bool,float)" +defs["igCalcTextSize"][1]["stname"] = "" +defs["igCalcTextSize"]["(const char*,const char*,bool,float)"] = defs["igCalcTextSize"][1] +defs["igCheckbox"] = {} +defs["igCheckbox"][1] = {} +defs["igCheckbox"][1]["args"] = "(const char* label,bool* v)" +defs["igCheckbox"][1]["argsT"] = {} +defs["igCheckbox"][1]["argsT"][1] = {} +defs["igCheckbox"][1]["argsT"][1]["name"] = "label" +defs["igCheckbox"][1]["argsT"][1]["type"] = "const char*" +defs["igCheckbox"][1]["argsT"][2] = {} +defs["igCheckbox"][1]["argsT"][2]["name"] = "v" +defs["igCheckbox"][1]["argsT"][2]["type"] = "bool*" +defs["igCheckbox"][1]["argsoriginal"] = "(const char* label,bool* v)" +defs["igCheckbox"][1]["call_args"] = "(label,v)" +defs["igCheckbox"][1]["cimguiname"] = "igCheckbox" +defs["igCheckbox"][1]["defaults"] = {} +defs["igCheckbox"][1]["funcname"] = "Checkbox" +defs["igCheckbox"][1]["location"] = "imgui:513" +defs["igCheckbox"][1]["namespace"] = "ImGui" +defs["igCheckbox"][1]["ov_cimguiname"] = "igCheckbox" +defs["igCheckbox"][1]["ret"] = "bool" +defs["igCheckbox"][1]["signature"] = "(const char*,bool*)" +defs["igCheckbox"][1]["stname"] = "" +defs["igCheckbox"]["(const char*,bool*)"] = defs["igCheckbox"][1] +defs["igCheckboxFlags"] = {} +defs["igCheckboxFlags"][1] = {} +defs["igCheckboxFlags"][1]["args"] = "(const char* label,int* flags,int flags_value)" +defs["igCheckboxFlags"][1]["argsT"] = {} +defs["igCheckboxFlags"][1]["argsT"][1] = {} +defs["igCheckboxFlags"][1]["argsT"][1]["name"] = "label" +defs["igCheckboxFlags"][1]["argsT"][1]["type"] = "const char*" +defs["igCheckboxFlags"][1]["argsT"][2] = {} +defs["igCheckboxFlags"][1]["argsT"][2]["name"] = "flags" +defs["igCheckboxFlags"][1]["argsT"][2]["type"] = "int*" +defs["igCheckboxFlags"][1]["argsT"][3] = {} +defs["igCheckboxFlags"][1]["argsT"][3]["name"] = "flags_value" +defs["igCheckboxFlags"][1]["argsT"][3]["type"] = "int" +defs["igCheckboxFlags"][1]["argsoriginal"] = "(const char* label,int* flags,int flags_value)" +defs["igCheckboxFlags"][1]["call_args"] = "(label,flags,flags_value)" +defs["igCheckboxFlags"][1]["cimguiname"] = "igCheckboxFlags" +defs["igCheckboxFlags"][1]["defaults"] = {} +defs["igCheckboxFlags"][1]["funcname"] = "CheckboxFlags" +defs["igCheckboxFlags"][1]["location"] = "imgui:514" +defs["igCheckboxFlags"][1]["namespace"] = "ImGui" +defs["igCheckboxFlags"][1]["ov_cimguiname"] = "igCheckboxFlags_IntPtr" +defs["igCheckboxFlags"][1]["ret"] = "bool" +defs["igCheckboxFlags"][1]["signature"] = "(const char*,int*,int)" +defs["igCheckboxFlags"][1]["stname"] = "" +defs["igCheckboxFlags"][2] = {} +defs["igCheckboxFlags"][2]["args"] = "(const char* label,unsigned int* flags,unsigned int flags_value)" +defs["igCheckboxFlags"][2]["argsT"] = {} +defs["igCheckboxFlags"][2]["argsT"][1] = {} +defs["igCheckboxFlags"][2]["argsT"][1]["name"] = "label" +defs["igCheckboxFlags"][2]["argsT"][1]["type"] = "const char*" +defs["igCheckboxFlags"][2]["argsT"][2] = {} +defs["igCheckboxFlags"][2]["argsT"][2]["name"] = "flags" +defs["igCheckboxFlags"][2]["argsT"][2]["type"] = "unsigned int*" +defs["igCheckboxFlags"][2]["argsT"][3] = {} +defs["igCheckboxFlags"][2]["argsT"][3]["name"] = "flags_value" +defs["igCheckboxFlags"][2]["argsT"][3]["type"] = "unsigned int" +defs["igCheckboxFlags"][2]["argsoriginal"] = "(const char* label,unsigned int* flags,unsigned int flags_value)" +defs["igCheckboxFlags"][2]["call_args"] = "(label,flags,flags_value)" +defs["igCheckboxFlags"][2]["cimguiname"] = "igCheckboxFlags" +defs["igCheckboxFlags"][2]["defaults"] = {} +defs["igCheckboxFlags"][2]["funcname"] = "CheckboxFlags" +defs["igCheckboxFlags"][2]["location"] = "imgui:515" +defs["igCheckboxFlags"][2]["namespace"] = "ImGui" +defs["igCheckboxFlags"][2]["ov_cimguiname"] = "igCheckboxFlags_UintPtr" +defs["igCheckboxFlags"][2]["ret"] = "bool" +defs["igCheckboxFlags"][2]["signature"] = "(const char*,unsigned int*,unsigned int)" +defs["igCheckboxFlags"][2]["stname"] = "" +defs["igCheckboxFlags"]["(const char*,int*,int)"] = defs["igCheckboxFlags"][1] +defs["igCheckboxFlags"]["(const char*,unsigned int*,unsigned int)"] = defs["igCheckboxFlags"][2] +defs["igCloseCurrentPopup"] = {} +defs["igCloseCurrentPopup"][1] = {} +defs["igCloseCurrentPopup"][1]["args"] = "()" +defs["igCloseCurrentPopup"][1]["argsT"] = {} +defs["igCloseCurrentPopup"][1]["argsoriginal"] = "()" +defs["igCloseCurrentPopup"][1]["call_args"] = "()" +defs["igCloseCurrentPopup"][1]["cimguiname"] = "igCloseCurrentPopup" +defs["igCloseCurrentPopup"][1]["defaults"] = {} +defs["igCloseCurrentPopup"][1]["funcname"] = "CloseCurrentPopup" +defs["igCloseCurrentPopup"][1]["location"] = "imgui:708" +defs["igCloseCurrentPopup"][1]["namespace"] = "ImGui" +defs["igCloseCurrentPopup"][1]["ov_cimguiname"] = "igCloseCurrentPopup" +defs["igCloseCurrentPopup"][1]["ret"] = "void" +defs["igCloseCurrentPopup"][1]["signature"] = "()" +defs["igCloseCurrentPopup"][1]["stname"] = "" +defs["igCloseCurrentPopup"]["()"] = defs["igCloseCurrentPopup"][1] +defs["igCollapsingHeader"] = {} +defs["igCollapsingHeader"][1] = {} +defs["igCollapsingHeader"][1]["args"] = "(const char* label,ImGuiTreeNodeFlags flags)" +defs["igCollapsingHeader"][1]["argsT"] = {} +defs["igCollapsingHeader"][1]["argsT"][1] = {} +defs["igCollapsingHeader"][1]["argsT"][1]["name"] = "label" +defs["igCollapsingHeader"][1]["argsT"][1]["type"] = "const char*" +defs["igCollapsingHeader"][1]["argsT"][2] = {} +defs["igCollapsingHeader"][1]["argsT"][2]["name"] = "flags" +defs["igCollapsingHeader"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igCollapsingHeader"][1]["argsoriginal"] = "(const char* label,ImGuiTreeNodeFlags flags=0)" +defs["igCollapsingHeader"][1]["call_args"] = "(label,flags)" +defs["igCollapsingHeader"][1]["cimguiname"] = "igCollapsingHeader" +defs["igCollapsingHeader"][1]["defaults"] = {} +defs["igCollapsingHeader"][1]["defaults"]["flags"] = "0" +defs["igCollapsingHeader"][1]["funcname"] = "CollapsingHeader" +defs["igCollapsingHeader"][1]["location"] = "imgui:625" +defs["igCollapsingHeader"][1]["namespace"] = "ImGui" +defs["igCollapsingHeader"][1]["ov_cimguiname"] = "igCollapsingHeader_TreeNodeFlags" +defs["igCollapsingHeader"][1]["ret"] = "bool" +defs["igCollapsingHeader"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags)" +defs["igCollapsingHeader"][1]["stname"] = "" +defs["igCollapsingHeader"][2] = {} +defs["igCollapsingHeader"][2]["args"] = "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags)" +defs["igCollapsingHeader"][2]["argsT"] = {} +defs["igCollapsingHeader"][2]["argsT"][1] = {} +defs["igCollapsingHeader"][2]["argsT"][1]["name"] = "label" +defs["igCollapsingHeader"][2]["argsT"][1]["type"] = "const char*" +defs["igCollapsingHeader"][2]["argsT"][2] = {} +defs["igCollapsingHeader"][2]["argsT"][2]["name"] = "p_visible" +defs["igCollapsingHeader"][2]["argsT"][2]["type"] = "bool*" +defs["igCollapsingHeader"][2]["argsT"][3] = {} +defs["igCollapsingHeader"][2]["argsT"][3]["name"] = "flags" +defs["igCollapsingHeader"][2]["argsT"][3]["type"] = "ImGuiTreeNodeFlags" +defs["igCollapsingHeader"][2]["argsoriginal"] = "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags=0)" +defs["igCollapsingHeader"][2]["call_args"] = "(label,p_visible,flags)" +defs["igCollapsingHeader"][2]["cimguiname"] = "igCollapsingHeader" +defs["igCollapsingHeader"][2]["defaults"] = {} +defs["igCollapsingHeader"][2]["defaults"]["flags"] = "0" +defs["igCollapsingHeader"][2]["funcname"] = "CollapsingHeader" +defs["igCollapsingHeader"][2]["location"] = "imgui:626" +defs["igCollapsingHeader"][2]["namespace"] = "ImGui" +defs["igCollapsingHeader"][2]["ov_cimguiname"] = "igCollapsingHeader_BoolPtr" +defs["igCollapsingHeader"][2]["ret"] = "bool" +defs["igCollapsingHeader"][2]["signature"] = "(const char*,bool*,ImGuiTreeNodeFlags)" +defs["igCollapsingHeader"][2]["stname"] = "" +defs["igCollapsingHeader"]["(const char*,ImGuiTreeNodeFlags)"] = defs["igCollapsingHeader"][1] +defs["igCollapsingHeader"]["(const char*,bool*,ImGuiTreeNodeFlags)"] = defs["igCollapsingHeader"][2] +defs["igColorButton"] = {} +defs["igColorButton"][1] = {} +defs["igColorButton"][1]["args"] = "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)" +defs["igColorButton"][1]["argsT"] = {} +defs["igColorButton"][1]["argsT"][1] = {} +defs["igColorButton"][1]["argsT"][1]["name"] = "desc_id" +defs["igColorButton"][1]["argsT"][1]["type"] = "const char*" +defs["igColorButton"][1]["argsT"][2] = {} +defs["igColorButton"][1]["argsT"][2]["name"] = "col" +defs["igColorButton"][1]["argsT"][2]["type"] = "const ImVec4" +defs["igColorButton"][1]["argsT"][3] = {} +defs["igColorButton"][1]["argsT"][3]["name"] = "flags" +defs["igColorButton"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorButton"][1]["argsT"][4] = {} +defs["igColorButton"][1]["argsT"][4]["name"] = "size" +defs["igColorButton"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igColorButton"][1]["argsoriginal"] = "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))" +defs["igColorButton"][1]["call_args"] = "(desc_id,col,flags,size)" +defs["igColorButton"][1]["cimguiname"] = "igColorButton" +defs["igColorButton"][1]["defaults"] = {} +defs["igColorButton"][1]["defaults"]["flags"] = "0" +defs["igColorButton"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igColorButton"][1]["funcname"] = "ColorButton" +defs["igColorButton"][1]["location"] = "imgui:606" +defs["igColorButton"][1]["namespace"] = "ImGui" +defs["igColorButton"][1]["ov_cimguiname"] = "igColorButton" +defs["igColorButton"][1]["ret"] = "bool" +defs["igColorButton"][1]["signature"] = "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)" +defs["igColorButton"][1]["stname"] = "" +defs["igColorButton"]["(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)"] = defs["igColorButton"][1] +defs["igColorConvertFloat4ToU32"] = {} +defs["igColorConvertFloat4ToU32"][1] = {} +defs["igColorConvertFloat4ToU32"][1]["args"] = "(const ImVec4 in)" +defs["igColorConvertFloat4ToU32"][1]["argsT"] = {} +defs["igColorConvertFloat4ToU32"][1]["argsT"][1] = {} +defs["igColorConvertFloat4ToU32"][1]["argsT"][1]["name"] = "in" +defs["igColorConvertFloat4ToU32"][1]["argsT"][1]["type"] = "const ImVec4" +defs["igColorConvertFloat4ToU32"][1]["argsoriginal"] = "(const ImVec4& in)" +defs["igColorConvertFloat4ToU32"][1]["call_args"] = "(in)" +defs["igColorConvertFloat4ToU32"][1]["cimguiname"] = "igColorConvertFloat4ToU32" +defs["igColorConvertFloat4ToU32"][1]["defaults"] = {} +defs["igColorConvertFloat4ToU32"][1]["funcname"] = "ColorConvertFloat4ToU32" +defs["igColorConvertFloat4ToU32"][1]["location"] = "imgui:912" +defs["igColorConvertFloat4ToU32"][1]["namespace"] = "ImGui" +defs["igColorConvertFloat4ToU32"][1]["ov_cimguiname"] = "igColorConvertFloat4ToU32" +defs["igColorConvertFloat4ToU32"][1]["ret"] = "ImU32" +defs["igColorConvertFloat4ToU32"][1]["signature"] = "(const ImVec4)" +defs["igColorConvertFloat4ToU32"][1]["stname"] = "" +defs["igColorConvertFloat4ToU32"]["(const ImVec4)"] = defs["igColorConvertFloat4ToU32"][1] +defs["igColorConvertHSVtoRGB"] = {} +defs["igColorConvertHSVtoRGB"][1] = {} +defs["igColorConvertHSVtoRGB"][1]["args"] = "(float h,float s,float v,float* out_r,float* out_g,float* out_b)" +defs["igColorConvertHSVtoRGB"][1]["argsT"] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][1] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][1]["name"] = "h" +defs["igColorConvertHSVtoRGB"][1]["argsT"][1]["type"] = "float" +defs["igColorConvertHSVtoRGB"][1]["argsT"][2] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][2]["name"] = "s" +defs["igColorConvertHSVtoRGB"][1]["argsT"][2]["type"] = "float" +defs["igColorConvertHSVtoRGB"][1]["argsT"][3] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][3]["name"] = "v" +defs["igColorConvertHSVtoRGB"][1]["argsT"][3]["type"] = "float" +defs["igColorConvertHSVtoRGB"][1]["argsT"][4] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][4]["name"] = "out_r" +defs["igColorConvertHSVtoRGB"][1]["argsT"][4]["reftoptr"] = true +defs["igColorConvertHSVtoRGB"][1]["argsT"][4]["type"] = "float*" +defs["igColorConvertHSVtoRGB"][1]["argsT"][5] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][5]["name"] = "out_g" +defs["igColorConvertHSVtoRGB"][1]["argsT"][5]["reftoptr"] = true +defs["igColorConvertHSVtoRGB"][1]["argsT"][5]["type"] = "float*" +defs["igColorConvertHSVtoRGB"][1]["argsT"][6] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][6]["name"] = "out_b" +defs["igColorConvertHSVtoRGB"][1]["argsT"][6]["reftoptr"] = true +defs["igColorConvertHSVtoRGB"][1]["argsT"][6]["type"] = "float*" +defs["igColorConvertHSVtoRGB"][1]["argsoriginal"] = "(float h,float s,float v,float& out_r,float& out_g,float& out_b)" +defs["igColorConvertHSVtoRGB"][1]["call_args"] = "(h,s,v,*out_r,*out_g,*out_b)" +defs["igColorConvertHSVtoRGB"][1]["cimguiname"] = "igColorConvertHSVtoRGB" +defs["igColorConvertHSVtoRGB"][1]["defaults"] = {} +defs["igColorConvertHSVtoRGB"][1]["funcname"] = "ColorConvertHSVtoRGB" +defs["igColorConvertHSVtoRGB"][1]["location"] = "imgui:914" +defs["igColorConvertHSVtoRGB"][1]["namespace"] = "ImGui" +defs["igColorConvertHSVtoRGB"][1]["ov_cimguiname"] = "igColorConvertHSVtoRGB" +defs["igColorConvertHSVtoRGB"][1]["ret"] = "void" +defs["igColorConvertHSVtoRGB"][1]["signature"] = "(float,float,float,float*,float*,float*)" +defs["igColorConvertHSVtoRGB"][1]["stname"] = "" +defs["igColorConvertHSVtoRGB"]["(float,float,float,float*,float*,float*)"] = defs["igColorConvertHSVtoRGB"][1] +defs["igColorConvertRGBtoHSV"] = {} +defs["igColorConvertRGBtoHSV"][1] = {} +defs["igColorConvertRGBtoHSV"][1]["args"] = "(float r,float g,float b,float* out_h,float* out_s,float* out_v)" +defs["igColorConvertRGBtoHSV"][1]["argsT"] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][1] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][1]["name"] = "r" +defs["igColorConvertRGBtoHSV"][1]["argsT"][1]["type"] = "float" +defs["igColorConvertRGBtoHSV"][1]["argsT"][2] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][2]["name"] = "g" +defs["igColorConvertRGBtoHSV"][1]["argsT"][2]["type"] = "float" +defs["igColorConvertRGBtoHSV"][1]["argsT"][3] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][3]["name"] = "b" +defs["igColorConvertRGBtoHSV"][1]["argsT"][3]["type"] = "float" +defs["igColorConvertRGBtoHSV"][1]["argsT"][4] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][4]["name"] = "out_h" +defs["igColorConvertRGBtoHSV"][1]["argsT"][4]["reftoptr"] = true +defs["igColorConvertRGBtoHSV"][1]["argsT"][4]["type"] = "float*" +defs["igColorConvertRGBtoHSV"][1]["argsT"][5] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][5]["name"] = "out_s" +defs["igColorConvertRGBtoHSV"][1]["argsT"][5]["reftoptr"] = true +defs["igColorConvertRGBtoHSV"][1]["argsT"][5]["type"] = "float*" +defs["igColorConvertRGBtoHSV"][1]["argsT"][6] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][6]["name"] = "out_v" +defs["igColorConvertRGBtoHSV"][1]["argsT"][6]["reftoptr"] = true +defs["igColorConvertRGBtoHSV"][1]["argsT"][6]["type"] = "float*" +defs["igColorConvertRGBtoHSV"][1]["argsoriginal"] = "(float r,float g,float b,float& out_h,float& out_s,float& out_v)" +defs["igColorConvertRGBtoHSV"][1]["call_args"] = "(r,g,b,*out_h,*out_s,*out_v)" +defs["igColorConvertRGBtoHSV"][1]["cimguiname"] = "igColorConvertRGBtoHSV" +defs["igColorConvertRGBtoHSV"][1]["defaults"] = {} +defs["igColorConvertRGBtoHSV"][1]["funcname"] = "ColorConvertRGBtoHSV" +defs["igColorConvertRGBtoHSV"][1]["location"] = "imgui:913" +defs["igColorConvertRGBtoHSV"][1]["namespace"] = "ImGui" +defs["igColorConvertRGBtoHSV"][1]["ov_cimguiname"] = "igColorConvertRGBtoHSV" +defs["igColorConvertRGBtoHSV"][1]["ret"] = "void" +defs["igColorConvertRGBtoHSV"][1]["signature"] = "(float,float,float,float*,float*,float*)" +defs["igColorConvertRGBtoHSV"][1]["stname"] = "" +defs["igColorConvertRGBtoHSV"]["(float,float,float,float*,float*,float*)"] = defs["igColorConvertRGBtoHSV"][1] +defs["igColorConvertU32ToFloat4"] = {} +defs["igColorConvertU32ToFloat4"][1] = {} +defs["igColorConvertU32ToFloat4"][1]["args"] = "(ImVec4 *pOut,ImU32 in)" +defs["igColorConvertU32ToFloat4"][1]["argsT"] = {} +defs["igColorConvertU32ToFloat4"][1]["argsT"][1] = {} +defs["igColorConvertU32ToFloat4"][1]["argsT"][1]["name"] = "pOut" +defs["igColorConvertU32ToFloat4"][1]["argsT"][1]["type"] = "ImVec4*" +defs["igColorConvertU32ToFloat4"][1]["argsT"][2] = {} +defs["igColorConvertU32ToFloat4"][1]["argsT"][2]["name"] = "in" +defs["igColorConvertU32ToFloat4"][1]["argsT"][2]["type"] = "ImU32" +defs["igColorConvertU32ToFloat4"][1]["argsoriginal"] = "(ImU32 in)" +defs["igColorConvertU32ToFloat4"][1]["call_args"] = "(in)" +defs["igColorConvertU32ToFloat4"][1]["cimguiname"] = "igColorConvertU32ToFloat4" +defs["igColorConvertU32ToFloat4"][1]["defaults"] = {} +defs["igColorConvertU32ToFloat4"][1]["funcname"] = "ColorConvertU32ToFloat4" +defs["igColorConvertU32ToFloat4"][1]["location"] = "imgui:911" +defs["igColorConvertU32ToFloat4"][1]["namespace"] = "ImGui" +defs["igColorConvertU32ToFloat4"][1]["nonUDT"] = 1 +defs["igColorConvertU32ToFloat4"][1]["ov_cimguiname"] = "igColorConvertU32ToFloat4" +defs["igColorConvertU32ToFloat4"][1]["ret"] = "void" +defs["igColorConvertU32ToFloat4"][1]["signature"] = "(ImU32)" +defs["igColorConvertU32ToFloat4"][1]["stname"] = "" +defs["igColorConvertU32ToFloat4"]["(ImU32)"] = defs["igColorConvertU32ToFloat4"][1] +defs["igColorEdit3"] = {} +defs["igColorEdit3"][1] = {} +defs["igColorEdit3"][1]["args"] = "(const char* label,float col[3],ImGuiColorEditFlags flags)" +defs["igColorEdit3"][1]["argsT"] = {} +defs["igColorEdit3"][1]["argsT"][1] = {} +defs["igColorEdit3"][1]["argsT"][1]["name"] = "label" +defs["igColorEdit3"][1]["argsT"][1]["type"] = "const char*" +defs["igColorEdit3"][1]["argsT"][2] = {} +defs["igColorEdit3"][1]["argsT"][2]["name"] = "col" +defs["igColorEdit3"][1]["argsT"][2]["type"] = "float[3]" +defs["igColorEdit3"][1]["argsT"][3] = {} +defs["igColorEdit3"][1]["argsT"][3]["name"] = "flags" +defs["igColorEdit3"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorEdit3"][1]["argsoriginal"] = "(const char* label,float col[3],ImGuiColorEditFlags flags=0)" +defs["igColorEdit3"][1]["call_args"] = "(label,col,flags)" +defs["igColorEdit3"][1]["cimguiname"] = "igColorEdit3" +defs["igColorEdit3"][1]["defaults"] = {} +defs["igColorEdit3"][1]["defaults"]["flags"] = "0" +defs["igColorEdit3"][1]["funcname"] = "ColorEdit3" +defs["igColorEdit3"][1]["location"] = "imgui:602" +defs["igColorEdit3"][1]["namespace"] = "ImGui" +defs["igColorEdit3"][1]["ov_cimguiname"] = "igColorEdit3" +defs["igColorEdit3"][1]["ret"] = "bool" +defs["igColorEdit3"][1]["signature"] = "(const char*,float[3],ImGuiColorEditFlags)" +defs["igColorEdit3"][1]["stname"] = "" +defs["igColorEdit3"]["(const char*,float[3],ImGuiColorEditFlags)"] = defs["igColorEdit3"][1] +defs["igColorEdit4"] = {} +defs["igColorEdit4"][1] = {} +defs["igColorEdit4"][1]["args"] = "(const char* label,float col[4],ImGuiColorEditFlags flags)" +defs["igColorEdit4"][1]["argsT"] = {} +defs["igColorEdit4"][1]["argsT"][1] = {} +defs["igColorEdit4"][1]["argsT"][1]["name"] = "label" +defs["igColorEdit4"][1]["argsT"][1]["type"] = "const char*" +defs["igColorEdit4"][1]["argsT"][2] = {} +defs["igColorEdit4"][1]["argsT"][2]["name"] = "col" +defs["igColorEdit4"][1]["argsT"][2]["type"] = "float[4]" +defs["igColorEdit4"][1]["argsT"][3] = {} +defs["igColorEdit4"][1]["argsT"][3]["name"] = "flags" +defs["igColorEdit4"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorEdit4"][1]["argsoriginal"] = "(const char* label,float col[4],ImGuiColorEditFlags flags=0)" +defs["igColorEdit4"][1]["call_args"] = "(label,col,flags)" +defs["igColorEdit4"][1]["cimguiname"] = "igColorEdit4" +defs["igColorEdit4"][1]["defaults"] = {} +defs["igColorEdit4"][1]["defaults"]["flags"] = "0" +defs["igColorEdit4"][1]["funcname"] = "ColorEdit4" +defs["igColorEdit4"][1]["location"] = "imgui:603" +defs["igColorEdit4"][1]["namespace"] = "ImGui" +defs["igColorEdit4"][1]["ov_cimguiname"] = "igColorEdit4" +defs["igColorEdit4"][1]["ret"] = "bool" +defs["igColorEdit4"][1]["signature"] = "(const char*,float[4],ImGuiColorEditFlags)" +defs["igColorEdit4"][1]["stname"] = "" +defs["igColorEdit4"]["(const char*,float[4],ImGuiColorEditFlags)"] = defs["igColorEdit4"][1] +defs["igColorPicker3"] = {} +defs["igColorPicker3"][1] = {} +defs["igColorPicker3"][1]["args"] = "(const char* label,float col[3],ImGuiColorEditFlags flags)" +defs["igColorPicker3"][1]["argsT"] = {} +defs["igColorPicker3"][1]["argsT"][1] = {} +defs["igColorPicker3"][1]["argsT"][1]["name"] = "label" +defs["igColorPicker3"][1]["argsT"][1]["type"] = "const char*" +defs["igColorPicker3"][1]["argsT"][2] = {} +defs["igColorPicker3"][1]["argsT"][2]["name"] = "col" +defs["igColorPicker3"][1]["argsT"][2]["type"] = "float[3]" +defs["igColorPicker3"][1]["argsT"][3] = {} +defs["igColorPicker3"][1]["argsT"][3]["name"] = "flags" +defs["igColorPicker3"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorPicker3"][1]["argsoriginal"] = "(const char* label,float col[3],ImGuiColorEditFlags flags=0)" +defs["igColorPicker3"][1]["call_args"] = "(label,col,flags)" +defs["igColorPicker3"][1]["cimguiname"] = "igColorPicker3" +defs["igColorPicker3"][1]["defaults"] = {} +defs["igColorPicker3"][1]["defaults"]["flags"] = "0" +defs["igColorPicker3"][1]["funcname"] = "ColorPicker3" +defs["igColorPicker3"][1]["location"] = "imgui:604" +defs["igColorPicker3"][1]["namespace"] = "ImGui" +defs["igColorPicker3"][1]["ov_cimguiname"] = "igColorPicker3" +defs["igColorPicker3"][1]["ret"] = "bool" +defs["igColorPicker3"][1]["signature"] = "(const char*,float[3],ImGuiColorEditFlags)" +defs["igColorPicker3"][1]["stname"] = "" +defs["igColorPicker3"]["(const char*,float[3],ImGuiColorEditFlags)"] = defs["igColorPicker3"][1] +defs["igColorPicker4"] = {} +defs["igColorPicker4"][1] = {} +defs["igColorPicker4"][1]["args"] = "(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col)" +defs["igColorPicker4"][1]["argsT"] = {} +defs["igColorPicker4"][1]["argsT"][1] = {} +defs["igColorPicker4"][1]["argsT"][1]["name"] = "label" +defs["igColorPicker4"][1]["argsT"][1]["type"] = "const char*" +defs["igColorPicker4"][1]["argsT"][2] = {} +defs["igColorPicker4"][1]["argsT"][2]["name"] = "col" +defs["igColorPicker4"][1]["argsT"][2]["type"] = "float[4]" +defs["igColorPicker4"][1]["argsT"][3] = {} +defs["igColorPicker4"][1]["argsT"][3]["name"] = "flags" +defs["igColorPicker4"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorPicker4"][1]["argsT"][4] = {} +defs["igColorPicker4"][1]["argsT"][4]["name"] = "ref_col" +defs["igColorPicker4"][1]["argsT"][4]["type"] = "const float*" +defs["igColorPicker4"][1]["argsoriginal"] = "(const char* label,float col[4],ImGuiColorEditFlags flags=0,const float* ref_col=((void*)0))" +defs["igColorPicker4"][1]["call_args"] = "(label,col,flags,ref_col)" +defs["igColorPicker4"][1]["cimguiname"] = "igColorPicker4" +defs["igColorPicker4"][1]["defaults"] = {} +defs["igColorPicker4"][1]["defaults"]["flags"] = "0" +defs["igColorPicker4"][1]["defaults"]["ref_col"] = "NULL" +defs["igColorPicker4"][1]["funcname"] = "ColorPicker4" +defs["igColorPicker4"][1]["location"] = "imgui:605" +defs["igColorPicker4"][1]["namespace"] = "ImGui" +defs["igColorPicker4"][1]["ov_cimguiname"] = "igColorPicker4" +defs["igColorPicker4"][1]["ret"] = "bool" +defs["igColorPicker4"][1]["signature"] = "(const char*,float[4],ImGuiColorEditFlags,const float*)" +defs["igColorPicker4"][1]["stname"] = "" +defs["igColorPicker4"]["(const char*,float[4],ImGuiColorEditFlags,const float*)"] = defs["igColorPicker4"][1] +defs["igColumns"] = {} +defs["igColumns"][1] = {} +defs["igColumns"][1]["args"] = "(int count,const char* id,bool border)" +defs["igColumns"][1]["argsT"] = {} +defs["igColumns"][1]["argsT"][1] = {} +defs["igColumns"][1]["argsT"][1]["name"] = "count" +defs["igColumns"][1]["argsT"][1]["type"] = "int" +defs["igColumns"][1]["argsT"][2] = {} +defs["igColumns"][1]["argsT"][2]["name"] = "id" +defs["igColumns"][1]["argsT"][2]["type"] = "const char*" +defs["igColumns"][1]["argsT"][3] = {} +defs["igColumns"][1]["argsT"][3]["name"] = "border" +defs["igColumns"][1]["argsT"][3]["type"] = "bool" +defs["igColumns"][1]["argsoriginal"] = "(int count=1,const char* id=((void*)0),bool border=true)" +defs["igColumns"][1]["call_args"] = "(count,id,border)" +defs["igColumns"][1]["cimguiname"] = "igColumns" +defs["igColumns"][1]["defaults"] = {} +defs["igColumns"][1]["defaults"]["border"] = "true" +defs["igColumns"][1]["defaults"]["count"] = "1" +defs["igColumns"][1]["defaults"]["id"] = "NULL" +defs["igColumns"][1]["funcname"] = "Columns" +defs["igColumns"][1]["location"] = "imgui:784" +defs["igColumns"][1]["namespace"] = "ImGui" +defs["igColumns"][1]["ov_cimguiname"] = "igColumns" +defs["igColumns"][1]["ret"] = "void" +defs["igColumns"][1]["signature"] = "(int,const char*,bool)" +defs["igColumns"][1]["stname"] = "" +defs["igColumns"]["(int,const char*,bool)"] = defs["igColumns"][1] +defs["igCombo"] = {} +defs["igCombo"][1] = {} +defs["igCombo"][1]["args"] = "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items)" +defs["igCombo"][1]["argsT"] = {} +defs["igCombo"][1]["argsT"][1] = {} +defs["igCombo"][1]["argsT"][1]["name"] = "label" +defs["igCombo"][1]["argsT"][1]["type"] = "const char*" +defs["igCombo"][1]["argsT"][2] = {} +defs["igCombo"][1]["argsT"][2]["name"] = "current_item" +defs["igCombo"][1]["argsT"][2]["type"] = "int*" +defs["igCombo"][1]["argsT"][3] = {} +defs["igCombo"][1]["argsT"][3]["name"] = "items" +defs["igCombo"][1]["argsT"][3]["type"] = "const char* const[]" +defs["igCombo"][1]["argsT"][4] = {} +defs["igCombo"][1]["argsT"][4]["name"] = "items_count" +defs["igCombo"][1]["argsT"][4]["type"] = "int" +defs["igCombo"][1]["argsT"][5] = {} +defs["igCombo"][1]["argsT"][5]["name"] = "popup_max_height_in_items" +defs["igCombo"][1]["argsT"][5]["type"] = "int" +defs["igCombo"][1]["argsoriginal"] = "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items=-1)" +defs["igCombo"][1]["call_args"] = "(label,current_item,items,items_count,popup_max_height_in_items)" +defs["igCombo"][1]["cimguiname"] = "igCombo" +defs["igCombo"][1]["defaults"] = {} +defs["igCombo"][1]["defaults"]["popup_max_height_in_items"] = "-1" +defs["igCombo"][1]["funcname"] = "Combo" +defs["igCombo"][1]["location"] = "imgui:531" +defs["igCombo"][1]["namespace"] = "ImGui" +defs["igCombo"][1]["ov_cimguiname"] = "igCombo_Str_arr" +defs["igCombo"][1]["ret"] = "bool" +defs["igCombo"][1]["signature"] = "(const char*,int*,const char* const[],int,int)" +defs["igCombo"][1]["stname"] = "" +defs["igCombo"][2] = {} +defs["igCombo"][2]["args"] = "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items)" +defs["igCombo"][2]["argsT"] = {} +defs["igCombo"][2]["argsT"][1] = {} +defs["igCombo"][2]["argsT"][1]["name"] = "label" +defs["igCombo"][2]["argsT"][1]["type"] = "const char*" +defs["igCombo"][2]["argsT"][2] = {} +defs["igCombo"][2]["argsT"][2]["name"] = "current_item" +defs["igCombo"][2]["argsT"][2]["type"] = "int*" +defs["igCombo"][2]["argsT"][3] = {} +defs["igCombo"][2]["argsT"][3]["name"] = "items_separated_by_zeros" +defs["igCombo"][2]["argsT"][3]["type"] = "const char*" +defs["igCombo"][2]["argsT"][4] = {} +defs["igCombo"][2]["argsT"][4]["name"] = "popup_max_height_in_items" +defs["igCombo"][2]["argsT"][4]["type"] = "int" +defs["igCombo"][2]["argsoriginal"] = "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items=-1)" +defs["igCombo"][2]["call_args"] = "(label,current_item,items_separated_by_zeros,popup_max_height_in_items)" +defs["igCombo"][2]["cimguiname"] = "igCombo" +defs["igCombo"][2]["defaults"] = {} +defs["igCombo"][2]["defaults"]["popup_max_height_in_items"] = "-1" +defs["igCombo"][2]["funcname"] = "Combo" +defs["igCombo"][2]["location"] = "imgui:532" +defs["igCombo"][2]["namespace"] = "ImGui" +defs["igCombo"][2]["ov_cimguiname"] = "igCombo_Str" +defs["igCombo"][2]["ret"] = "bool" +defs["igCombo"][2]["signature"] = "(const char*,int*,const char*,int)" +defs["igCombo"][2]["stname"] = "" +defs["igCombo"][3] = {} +defs["igCombo"][3]["args"] = "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items)" +defs["igCombo"][3]["argsT"] = {} +defs["igCombo"][3]["argsT"][1] = {} +defs["igCombo"][3]["argsT"][1]["name"] = "label" +defs["igCombo"][3]["argsT"][1]["type"] = "const char*" +defs["igCombo"][3]["argsT"][2] = {} +defs["igCombo"][3]["argsT"][2]["name"] = "current_item" +defs["igCombo"][3]["argsT"][2]["type"] = "int*" +defs["igCombo"][3]["argsT"][3] = {} +defs["igCombo"][3]["argsT"][3]["name"] = "items_getter" +defs["igCombo"][3]["argsT"][3]["ret"] = "bool" +defs["igCombo"][3]["argsT"][3]["signature"] = "(void* data,int idx,const char** out_text)" +defs["igCombo"][3]["argsT"][3]["type"] = "bool(*)(void* data,int idx,const char** out_text)" +defs["igCombo"][3]["argsT"][4] = {} +defs["igCombo"][3]["argsT"][4]["name"] = "data" +defs["igCombo"][3]["argsT"][4]["type"] = "void*" +defs["igCombo"][3]["argsT"][5] = {} +defs["igCombo"][3]["argsT"][5]["name"] = "items_count" +defs["igCombo"][3]["argsT"][5]["type"] = "int" +defs["igCombo"][3]["argsT"][6] = {} +defs["igCombo"][3]["argsT"][6]["name"] = "popup_max_height_in_items" +defs["igCombo"][3]["argsT"][6]["type"] = "int" +defs["igCombo"][3]["argsoriginal"] = "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items=-1)" +defs["igCombo"][3]["call_args"] = "(label,current_item,items_getter,data,items_count,popup_max_height_in_items)" +defs["igCombo"][3]["cimguiname"] = "igCombo" +defs["igCombo"][3]["defaults"] = {} +defs["igCombo"][3]["defaults"]["popup_max_height_in_items"] = "-1" +defs["igCombo"][3]["funcname"] = "Combo" +defs["igCombo"][3]["location"] = "imgui:533" +defs["igCombo"][3]["namespace"] = "ImGui" +defs["igCombo"][3]["ov_cimguiname"] = "igCombo_FnBoolPtr" +defs["igCombo"][3]["ret"] = "bool" +defs["igCombo"][3]["signature"] = "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)" +defs["igCombo"][3]["stname"] = "" +defs["igCombo"]["(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)"] = defs["igCombo"][3] +defs["igCombo"]["(const char*,int*,const char* const[],int,int)"] = defs["igCombo"][1] +defs["igCombo"]["(const char*,int*,const char*,int)"] = defs["igCombo"][2] +defs["igCreateContext"] = {} +defs["igCreateContext"][1] = {} +defs["igCreateContext"][1]["args"] = "(ImFontAtlas* shared_font_atlas)" +defs["igCreateContext"][1]["argsT"] = {} +defs["igCreateContext"][1]["argsT"][1] = {} +defs["igCreateContext"][1]["argsT"][1]["name"] = "shared_font_atlas" +defs["igCreateContext"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["igCreateContext"][1]["argsoriginal"] = "(ImFontAtlas* shared_font_atlas=((void*)0))" +defs["igCreateContext"][1]["call_args"] = "(shared_font_atlas)" +defs["igCreateContext"][1]["cimguiname"] = "igCreateContext" +defs["igCreateContext"][1]["defaults"] = {} +defs["igCreateContext"][1]["defaults"]["shared_font_atlas"] = "NULL" +defs["igCreateContext"][1]["funcname"] = "CreateContext" +defs["igCreateContext"][1]["location"] = "imgui:294" +defs["igCreateContext"][1]["namespace"] = "ImGui" +defs["igCreateContext"][1]["ov_cimguiname"] = "igCreateContext" +defs["igCreateContext"][1]["ret"] = "ImGuiContext*" +defs["igCreateContext"][1]["signature"] = "(ImFontAtlas*)" +defs["igCreateContext"][1]["stname"] = "" +defs["igCreateContext"]["(ImFontAtlas*)"] = defs["igCreateContext"][1] +defs["igDebugCheckVersionAndDataLayout"] = {} +defs["igDebugCheckVersionAndDataLayout"][1] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["args"] = "(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)" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][1] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][1]["name"] = "version_str" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][2] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][2]["name"] = "sz_io" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][2]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][3] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][3]["name"] = "sz_style" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][3]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][4] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][4]["name"] = "sz_vec2" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][4]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][5] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][5]["name"] = "sz_vec4" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][5]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][6] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][6]["name"] = "sz_drawvert" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][6]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][7] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][7]["name"] = "sz_drawidx" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][7]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsoriginal"] = "(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)" +defs["igDebugCheckVersionAndDataLayout"][1]["call_args"] = "(version_str,sz_io,sz_style,sz_vec2,sz_vec4,sz_drawvert,sz_drawidx)" +defs["igDebugCheckVersionAndDataLayout"][1]["cimguiname"] = "igDebugCheckVersionAndDataLayout" +defs["igDebugCheckVersionAndDataLayout"][1]["defaults"] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["funcname"] = "DebugCheckVersionAndDataLayout" +defs["igDebugCheckVersionAndDataLayout"][1]["location"] = "imgui:966" +defs["igDebugCheckVersionAndDataLayout"][1]["namespace"] = "ImGui" +defs["igDebugCheckVersionAndDataLayout"][1]["ov_cimguiname"] = "igDebugCheckVersionAndDataLayout" +defs["igDebugCheckVersionAndDataLayout"][1]["ret"] = "bool" +defs["igDebugCheckVersionAndDataLayout"][1]["signature"] = "(const char*,size_t,size_t,size_t,size_t,size_t,size_t)" +defs["igDebugCheckVersionAndDataLayout"][1]["stname"] = "" +defs["igDebugCheckVersionAndDataLayout"]["(const char*,size_t,size_t,size_t,size_t,size_t,size_t)"] = defs["igDebugCheckVersionAndDataLayout"][1] +defs["igDebugTextEncoding"] = {} +defs["igDebugTextEncoding"][1] = {} +defs["igDebugTextEncoding"][1]["args"] = "(const char* text)" +defs["igDebugTextEncoding"][1]["argsT"] = {} +defs["igDebugTextEncoding"][1]["argsT"][1] = {} +defs["igDebugTextEncoding"][1]["argsT"][1]["name"] = "text" +defs["igDebugTextEncoding"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugTextEncoding"][1]["argsoriginal"] = "(const char* text)" +defs["igDebugTextEncoding"][1]["call_args"] = "(text)" +defs["igDebugTextEncoding"][1]["cimguiname"] = "igDebugTextEncoding" +defs["igDebugTextEncoding"][1]["defaults"] = {} +defs["igDebugTextEncoding"][1]["funcname"] = "DebugTextEncoding" +defs["igDebugTextEncoding"][1]["location"] = "imgui:965" +defs["igDebugTextEncoding"][1]["namespace"] = "ImGui" +defs["igDebugTextEncoding"][1]["ov_cimguiname"] = "igDebugTextEncoding" +defs["igDebugTextEncoding"][1]["ret"] = "void" +defs["igDebugTextEncoding"][1]["signature"] = "(const char*)" +defs["igDebugTextEncoding"][1]["stname"] = "" +defs["igDebugTextEncoding"]["(const char*)"] = defs["igDebugTextEncoding"][1] +defs["igDestroyContext"] = {} +defs["igDestroyContext"][1] = {} +defs["igDestroyContext"][1]["args"] = "(ImGuiContext* ctx)" +defs["igDestroyContext"][1]["argsT"] = {} +defs["igDestroyContext"][1]["argsT"][1] = {} +defs["igDestroyContext"][1]["argsT"][1]["name"] = "ctx" +defs["igDestroyContext"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDestroyContext"][1]["argsoriginal"] = "(ImGuiContext* ctx=((void*)0))" +defs["igDestroyContext"][1]["call_args"] = "(ctx)" +defs["igDestroyContext"][1]["cimguiname"] = "igDestroyContext" +defs["igDestroyContext"][1]["defaults"] = {} +defs["igDestroyContext"][1]["defaults"]["ctx"] = "NULL" +defs["igDestroyContext"][1]["funcname"] = "DestroyContext" +defs["igDestroyContext"][1]["location"] = "imgui:295" +defs["igDestroyContext"][1]["namespace"] = "ImGui" +defs["igDestroyContext"][1]["ov_cimguiname"] = "igDestroyContext" +defs["igDestroyContext"][1]["ret"] = "void" +defs["igDestroyContext"][1]["signature"] = "(ImGuiContext*)" +defs["igDestroyContext"][1]["stname"] = "" +defs["igDestroyContext"]["(ImGuiContext*)"] = defs["igDestroyContext"][1] +defs["igDestroyPlatformWindows"] = {} +defs["igDestroyPlatformWindows"][1] = {} +defs["igDestroyPlatformWindows"][1]["args"] = "()" +defs["igDestroyPlatformWindows"][1]["argsT"] = {} +defs["igDestroyPlatformWindows"][1]["argsoriginal"] = "()" +defs["igDestroyPlatformWindows"][1]["call_args"] = "()" +defs["igDestroyPlatformWindows"][1]["cimguiname"] = "igDestroyPlatformWindows" +defs["igDestroyPlatformWindows"][1]["defaults"] = {} +defs["igDestroyPlatformWindows"][1]["funcname"] = "DestroyPlatformWindows" +defs["igDestroyPlatformWindows"][1]["location"] = "imgui:983" +defs["igDestroyPlatformWindows"][1]["namespace"] = "ImGui" +defs["igDestroyPlatformWindows"][1]["ov_cimguiname"] = "igDestroyPlatformWindows" +defs["igDestroyPlatformWindows"][1]["ret"] = "void" +defs["igDestroyPlatformWindows"][1]["signature"] = "()" +defs["igDestroyPlatformWindows"][1]["stname"] = "" +defs["igDestroyPlatformWindows"]["()"] = defs["igDestroyPlatformWindows"][1] +defs["igDockSpace"] = {} +defs["igDockSpace"][1] = {} +defs["igDockSpace"][1]["args"] = "(ImGuiID id,const ImVec2 size,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class)" +defs["igDockSpace"][1]["argsT"] = {} +defs["igDockSpace"][1]["argsT"][1] = {} +defs["igDockSpace"][1]["argsT"][1]["name"] = "id" +defs["igDockSpace"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockSpace"][1]["argsT"][2] = {} +defs["igDockSpace"][1]["argsT"][2]["name"] = "size" +defs["igDockSpace"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igDockSpace"][1]["argsT"][3] = {} +defs["igDockSpace"][1]["argsT"][3]["name"] = "flags" +defs["igDockSpace"][1]["argsT"][3]["type"] = "ImGuiDockNodeFlags" +defs["igDockSpace"][1]["argsT"][4] = {} +defs["igDockSpace"][1]["argsT"][4]["name"] = "window_class" +defs["igDockSpace"][1]["argsT"][4]["type"] = "const ImGuiWindowClass*" +defs["igDockSpace"][1]["argsoriginal"] = "(ImGuiID id,const ImVec2& size=ImVec2(0,0),ImGuiDockNodeFlags flags=0,const ImGuiWindowClass* window_class=((void*)0))" +defs["igDockSpace"][1]["call_args"] = "(id,size,flags,window_class)" +defs["igDockSpace"][1]["cimguiname"] = "igDockSpace" +defs["igDockSpace"][1]["defaults"] = {} +defs["igDockSpace"][1]["defaults"]["flags"] = "0" +defs["igDockSpace"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igDockSpace"][1]["defaults"]["window_class"] = "NULL" +defs["igDockSpace"][1]["funcname"] = "DockSpace" +defs["igDockSpace"][1]["location"] = "imgui:815" +defs["igDockSpace"][1]["namespace"] = "ImGui" +defs["igDockSpace"][1]["ov_cimguiname"] = "igDockSpace" +defs["igDockSpace"][1]["ret"] = "ImGuiID" +defs["igDockSpace"][1]["signature"] = "(ImGuiID,const ImVec2,ImGuiDockNodeFlags,const ImGuiWindowClass*)" +defs["igDockSpace"][1]["stname"] = "" +defs["igDockSpace"]["(ImGuiID,const ImVec2,ImGuiDockNodeFlags,const ImGuiWindowClass*)"] = defs["igDockSpace"][1] +defs["igDockSpaceOverViewport"] = {} +defs["igDockSpaceOverViewport"][1] = {} +defs["igDockSpaceOverViewport"][1]["args"] = "(const ImGuiViewport* viewport,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class)" +defs["igDockSpaceOverViewport"][1]["argsT"] = {} +defs["igDockSpaceOverViewport"][1]["argsT"][1] = {} +defs["igDockSpaceOverViewport"][1]["argsT"][1]["name"] = "viewport" +defs["igDockSpaceOverViewport"][1]["argsT"][1]["type"] = "const ImGuiViewport*" +defs["igDockSpaceOverViewport"][1]["argsT"][2] = {} +defs["igDockSpaceOverViewport"][1]["argsT"][2]["name"] = "flags" +defs["igDockSpaceOverViewport"][1]["argsT"][2]["type"] = "ImGuiDockNodeFlags" +defs["igDockSpaceOverViewport"][1]["argsT"][3] = {} +defs["igDockSpaceOverViewport"][1]["argsT"][3]["name"] = "window_class" +defs["igDockSpaceOverViewport"][1]["argsT"][3]["type"] = "const ImGuiWindowClass*" +defs["igDockSpaceOverViewport"][1]["argsoriginal"] = "(const ImGuiViewport* viewport=((void*)0),ImGuiDockNodeFlags flags=0,const ImGuiWindowClass* window_class=((void*)0))" +defs["igDockSpaceOverViewport"][1]["call_args"] = "(viewport,flags,window_class)" +defs["igDockSpaceOverViewport"][1]["cimguiname"] = "igDockSpaceOverViewport" +defs["igDockSpaceOverViewport"][1]["defaults"] = {} +defs["igDockSpaceOverViewport"][1]["defaults"]["flags"] = "0" +defs["igDockSpaceOverViewport"][1]["defaults"]["viewport"] = "NULL" +defs["igDockSpaceOverViewport"][1]["defaults"]["window_class"] = "NULL" +defs["igDockSpaceOverViewport"][1]["funcname"] = "DockSpaceOverViewport" +defs["igDockSpaceOverViewport"][1]["location"] = "imgui:816" +defs["igDockSpaceOverViewport"][1]["namespace"] = "ImGui" +defs["igDockSpaceOverViewport"][1]["ov_cimguiname"] = "igDockSpaceOverViewport" +defs["igDockSpaceOverViewport"][1]["ret"] = "ImGuiID" +defs["igDockSpaceOverViewport"][1]["signature"] = "(const ImGuiViewport*,ImGuiDockNodeFlags,const ImGuiWindowClass*)" +defs["igDockSpaceOverViewport"][1]["stname"] = "" +defs["igDockSpaceOverViewport"]["(const ImGuiViewport*,ImGuiDockNodeFlags,const ImGuiWindowClass*)"] = defs["igDockSpaceOverViewport"][1] +defs["igDragFloat"] = {} +defs["igDragFloat"][1] = {} +defs["igDragFloat"][1]["args"] = "(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragFloat"][1]["argsT"] = {} +defs["igDragFloat"][1]["argsT"][1] = {} +defs["igDragFloat"][1]["argsT"][1]["name"] = "label" +defs["igDragFloat"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloat"][1]["argsT"][2] = {} +defs["igDragFloat"][1]["argsT"][2]["name"] = "v" +defs["igDragFloat"][1]["argsT"][2]["type"] = "float*" +defs["igDragFloat"][1]["argsT"][3] = {} +defs["igDragFloat"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragFloat"][1]["argsT"][3]["type"] = "float" +defs["igDragFloat"][1]["argsT"][4] = {} +defs["igDragFloat"][1]["argsT"][4]["name"] = "v_min" +defs["igDragFloat"][1]["argsT"][4]["type"] = "float" +defs["igDragFloat"][1]["argsT"][5] = {} +defs["igDragFloat"][1]["argsT"][5]["name"] = "v_max" +defs["igDragFloat"][1]["argsT"][5]["type"] = "float" +defs["igDragFloat"][1]["argsT"][6] = {} +defs["igDragFloat"][1]["argsT"][6]["name"] = "format" +defs["igDragFloat"][1]["argsT"][6]["type"] = "const char*" +defs["igDragFloat"][1]["argsT"][7] = {} +defs["igDragFloat"][1]["argsT"][7]["name"] = "flags" +defs["igDragFloat"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragFloat"][1]["argsoriginal"] = "(const char* label,float* v,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igDragFloat"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragFloat"][1]["cimguiname"] = "igDragFloat" +defs["igDragFloat"][1]["defaults"] = {} +defs["igDragFloat"][1]["defaults"]["flags"] = "0" +defs["igDragFloat"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloat"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloat"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloat"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloat"][1]["funcname"] = "DragFloat" +defs["igDragFloat"][1]["location"] = "imgui:547" +defs["igDragFloat"][1]["namespace"] = "ImGui" +defs["igDragFloat"][1]["ov_cimguiname"] = "igDragFloat" +defs["igDragFloat"][1]["ret"] = "bool" +defs["igDragFloat"][1]["signature"] = "(const char*,float*,float,float,float,const char*,ImGuiSliderFlags)" +defs["igDragFloat"][1]["stname"] = "" +defs["igDragFloat"]["(const char*,float*,float,float,float,const char*,ImGuiSliderFlags)"] = defs["igDragFloat"][1] +defs["igDragFloat2"] = {} +defs["igDragFloat2"][1] = {} +defs["igDragFloat2"][1]["args"] = "(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragFloat2"][1]["argsT"] = {} +defs["igDragFloat2"][1]["argsT"][1] = {} +defs["igDragFloat2"][1]["argsT"][1]["name"] = "label" +defs["igDragFloat2"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloat2"][1]["argsT"][2] = {} +defs["igDragFloat2"][1]["argsT"][2]["name"] = "v" +defs["igDragFloat2"][1]["argsT"][2]["type"] = "float[2]" +defs["igDragFloat2"][1]["argsT"][3] = {} +defs["igDragFloat2"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragFloat2"][1]["argsT"][3]["type"] = "float" +defs["igDragFloat2"][1]["argsT"][4] = {} +defs["igDragFloat2"][1]["argsT"][4]["name"] = "v_min" +defs["igDragFloat2"][1]["argsT"][4]["type"] = "float" +defs["igDragFloat2"][1]["argsT"][5] = {} +defs["igDragFloat2"][1]["argsT"][5]["name"] = "v_max" +defs["igDragFloat2"][1]["argsT"][5]["type"] = "float" +defs["igDragFloat2"][1]["argsT"][6] = {} +defs["igDragFloat2"][1]["argsT"][6]["name"] = "format" +defs["igDragFloat2"][1]["argsT"][6]["type"] = "const char*" +defs["igDragFloat2"][1]["argsT"][7] = {} +defs["igDragFloat2"][1]["argsT"][7]["name"] = "flags" +defs["igDragFloat2"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragFloat2"][1]["argsoriginal"] = "(const char* label,float v[2],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igDragFloat2"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragFloat2"][1]["cimguiname"] = "igDragFloat2" +defs["igDragFloat2"][1]["defaults"] = {} +defs["igDragFloat2"][1]["defaults"]["flags"] = "0" +defs["igDragFloat2"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloat2"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloat2"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloat2"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloat2"][1]["funcname"] = "DragFloat2" +defs["igDragFloat2"][1]["location"] = "imgui:548" +defs["igDragFloat2"][1]["namespace"] = "ImGui" +defs["igDragFloat2"][1]["ov_cimguiname"] = "igDragFloat2" +defs["igDragFloat2"][1]["ret"] = "bool" +defs["igDragFloat2"][1]["signature"] = "(const char*,float[2],float,float,float,const char*,ImGuiSliderFlags)" +defs["igDragFloat2"][1]["stname"] = "" +defs["igDragFloat2"]["(const char*,float[2],float,float,float,const char*,ImGuiSliderFlags)"] = defs["igDragFloat2"][1] +defs["igDragFloat3"] = {} +defs["igDragFloat3"][1] = {} +defs["igDragFloat3"][1]["args"] = "(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragFloat3"][1]["argsT"] = {} +defs["igDragFloat3"][1]["argsT"][1] = {} +defs["igDragFloat3"][1]["argsT"][1]["name"] = "label" +defs["igDragFloat3"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloat3"][1]["argsT"][2] = {} +defs["igDragFloat3"][1]["argsT"][2]["name"] = "v" +defs["igDragFloat3"][1]["argsT"][2]["type"] = "float[3]" +defs["igDragFloat3"][1]["argsT"][3] = {} +defs["igDragFloat3"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragFloat3"][1]["argsT"][3]["type"] = "float" +defs["igDragFloat3"][1]["argsT"][4] = {} +defs["igDragFloat3"][1]["argsT"][4]["name"] = "v_min" +defs["igDragFloat3"][1]["argsT"][4]["type"] = "float" +defs["igDragFloat3"][1]["argsT"][5] = {} +defs["igDragFloat3"][1]["argsT"][5]["name"] = "v_max" +defs["igDragFloat3"][1]["argsT"][5]["type"] = "float" +defs["igDragFloat3"][1]["argsT"][6] = {} +defs["igDragFloat3"][1]["argsT"][6]["name"] = "format" +defs["igDragFloat3"][1]["argsT"][6]["type"] = "const char*" +defs["igDragFloat3"][1]["argsT"][7] = {} +defs["igDragFloat3"][1]["argsT"][7]["name"] = "flags" +defs["igDragFloat3"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragFloat3"][1]["argsoriginal"] = "(const char* label,float v[3],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igDragFloat3"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragFloat3"][1]["cimguiname"] = "igDragFloat3" +defs["igDragFloat3"][1]["defaults"] = {} +defs["igDragFloat3"][1]["defaults"]["flags"] = "0" +defs["igDragFloat3"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloat3"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloat3"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloat3"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloat3"][1]["funcname"] = "DragFloat3" +defs["igDragFloat3"][1]["location"] = "imgui:549" +defs["igDragFloat3"][1]["namespace"] = "ImGui" +defs["igDragFloat3"][1]["ov_cimguiname"] = "igDragFloat3" +defs["igDragFloat3"][1]["ret"] = "bool" +defs["igDragFloat3"][1]["signature"] = "(const char*,float[3],float,float,float,const char*,ImGuiSliderFlags)" +defs["igDragFloat3"][1]["stname"] = "" +defs["igDragFloat3"]["(const char*,float[3],float,float,float,const char*,ImGuiSliderFlags)"] = defs["igDragFloat3"][1] +defs["igDragFloat4"] = {} +defs["igDragFloat4"][1] = {} +defs["igDragFloat4"][1]["args"] = "(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragFloat4"][1]["argsT"] = {} +defs["igDragFloat4"][1]["argsT"][1] = {} +defs["igDragFloat4"][1]["argsT"][1]["name"] = "label" +defs["igDragFloat4"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloat4"][1]["argsT"][2] = {} +defs["igDragFloat4"][1]["argsT"][2]["name"] = "v" +defs["igDragFloat4"][1]["argsT"][2]["type"] = "float[4]" +defs["igDragFloat4"][1]["argsT"][3] = {} +defs["igDragFloat4"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragFloat4"][1]["argsT"][3]["type"] = "float" +defs["igDragFloat4"][1]["argsT"][4] = {} +defs["igDragFloat4"][1]["argsT"][4]["name"] = "v_min" +defs["igDragFloat4"][1]["argsT"][4]["type"] = "float" +defs["igDragFloat4"][1]["argsT"][5] = {} +defs["igDragFloat4"][1]["argsT"][5]["name"] = "v_max" +defs["igDragFloat4"][1]["argsT"][5]["type"] = "float" +defs["igDragFloat4"][1]["argsT"][6] = {} +defs["igDragFloat4"][1]["argsT"][6]["name"] = "format" +defs["igDragFloat4"][1]["argsT"][6]["type"] = "const char*" +defs["igDragFloat4"][1]["argsT"][7] = {} +defs["igDragFloat4"][1]["argsT"][7]["name"] = "flags" +defs["igDragFloat4"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragFloat4"][1]["argsoriginal"] = "(const char* label,float v[4],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igDragFloat4"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragFloat4"][1]["cimguiname"] = "igDragFloat4" +defs["igDragFloat4"][1]["defaults"] = {} +defs["igDragFloat4"][1]["defaults"]["flags"] = "0" +defs["igDragFloat4"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloat4"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloat4"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloat4"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloat4"][1]["funcname"] = "DragFloat4" +defs["igDragFloat4"][1]["location"] = "imgui:550" +defs["igDragFloat4"][1]["namespace"] = "ImGui" +defs["igDragFloat4"][1]["ov_cimguiname"] = "igDragFloat4" +defs["igDragFloat4"][1]["ret"] = "bool" +defs["igDragFloat4"][1]["signature"] = "(const char*,float[4],float,float,float,const char*,ImGuiSliderFlags)" +defs["igDragFloat4"][1]["stname"] = "" +defs["igDragFloat4"]["(const char*,float[4],float,float,float,const char*,ImGuiSliderFlags)"] = defs["igDragFloat4"][1] +defs["igDragFloatRange2"] = {} +defs["igDragFloatRange2"][1] = {} +defs["igDragFloatRange2"][1]["args"] = "(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)" +defs["igDragFloatRange2"][1]["argsT"] = {} +defs["igDragFloatRange2"][1]["argsT"][1] = {} +defs["igDragFloatRange2"][1]["argsT"][1]["name"] = "label" +defs["igDragFloatRange2"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloatRange2"][1]["argsT"][2] = {} +defs["igDragFloatRange2"][1]["argsT"][2]["name"] = "v_current_min" +defs["igDragFloatRange2"][1]["argsT"][2]["type"] = "float*" +defs["igDragFloatRange2"][1]["argsT"][3] = {} +defs["igDragFloatRange2"][1]["argsT"][3]["name"] = "v_current_max" +defs["igDragFloatRange2"][1]["argsT"][3]["type"] = "float*" +defs["igDragFloatRange2"][1]["argsT"][4] = {} +defs["igDragFloatRange2"][1]["argsT"][4]["name"] = "v_speed" +defs["igDragFloatRange2"][1]["argsT"][4]["type"] = "float" +defs["igDragFloatRange2"][1]["argsT"][5] = {} +defs["igDragFloatRange2"][1]["argsT"][5]["name"] = "v_min" +defs["igDragFloatRange2"][1]["argsT"][5]["type"] = "float" +defs["igDragFloatRange2"][1]["argsT"][6] = {} +defs["igDragFloatRange2"][1]["argsT"][6]["name"] = "v_max" +defs["igDragFloatRange2"][1]["argsT"][6]["type"] = "float" +defs["igDragFloatRange2"][1]["argsT"][7] = {} +defs["igDragFloatRange2"][1]["argsT"][7]["name"] = "format" +defs["igDragFloatRange2"][1]["argsT"][7]["type"] = "const char*" +defs["igDragFloatRange2"][1]["argsT"][8] = {} +defs["igDragFloatRange2"][1]["argsT"][8]["name"] = "format_max" +defs["igDragFloatRange2"][1]["argsT"][8]["type"] = "const char*" +defs["igDragFloatRange2"][1]["argsT"][9] = {} +defs["igDragFloatRange2"][1]["argsT"][9]["name"] = "flags" +defs["igDragFloatRange2"][1]["argsT"][9]["type"] = "ImGuiSliderFlags" +defs["igDragFloatRange2"][1]["argsoriginal"] = "(const char* label,float* v_current_min,float* v_current_max,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)" +defs["igDragFloatRange2"][1]["call_args"] = "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)" +defs["igDragFloatRange2"][1]["cimguiname"] = "igDragFloatRange2" +defs["igDragFloatRange2"][1]["defaults"] = {} +defs["igDragFloatRange2"][1]["defaults"]["flags"] = "0" +defs["igDragFloatRange2"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloatRange2"][1]["defaults"]["format_max"] = "NULL" +defs["igDragFloatRange2"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloatRange2"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloatRange2"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloatRange2"][1]["funcname"] = "DragFloatRange2" +defs["igDragFloatRange2"][1]["location"] = "imgui:551" +defs["igDragFloatRange2"][1]["namespace"] = "ImGui" +defs["igDragFloatRange2"][1]["ov_cimguiname"] = "igDragFloatRange2" +defs["igDragFloatRange2"][1]["ret"] = "bool" +defs["igDragFloatRange2"][1]["signature"] = "(const char*,float*,float*,float,float,float,const char*,const char*,ImGuiSliderFlags)" +defs["igDragFloatRange2"][1]["stname"] = "" +defs["igDragFloatRange2"]["(const char*,float*,float*,float,float,float,const char*,const char*,ImGuiSliderFlags)"] = defs["igDragFloatRange2"][1] +defs["igDragInt"] = {} +defs["igDragInt"][1] = {} +defs["igDragInt"][1]["args"] = "(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragInt"][1]["argsT"] = {} +defs["igDragInt"][1]["argsT"][1] = {} +defs["igDragInt"][1]["argsT"][1]["name"] = "label" +defs["igDragInt"][1]["argsT"][1]["type"] = "const char*" +defs["igDragInt"][1]["argsT"][2] = {} +defs["igDragInt"][1]["argsT"][2]["name"] = "v" +defs["igDragInt"][1]["argsT"][2]["type"] = "int*" +defs["igDragInt"][1]["argsT"][3] = {} +defs["igDragInt"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragInt"][1]["argsT"][3]["type"] = "float" +defs["igDragInt"][1]["argsT"][4] = {} +defs["igDragInt"][1]["argsT"][4]["name"] = "v_min" +defs["igDragInt"][1]["argsT"][4]["type"] = "int" +defs["igDragInt"][1]["argsT"][5] = {} +defs["igDragInt"][1]["argsT"][5]["name"] = "v_max" +defs["igDragInt"][1]["argsT"][5]["type"] = "int" +defs["igDragInt"][1]["argsT"][6] = {} +defs["igDragInt"][1]["argsT"][6]["name"] = "format" +defs["igDragInt"][1]["argsT"][6]["type"] = "const char*" +defs["igDragInt"][1]["argsT"][7] = {} +defs["igDragInt"][1]["argsT"][7]["name"] = "flags" +defs["igDragInt"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragInt"][1]["argsoriginal"] = "(const char* label,int* v,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igDragInt"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragInt"][1]["cimguiname"] = "igDragInt" +defs["igDragInt"][1]["defaults"] = {} +defs["igDragInt"][1]["defaults"]["flags"] = "0" +defs["igDragInt"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragInt"][1]["defaults"]["v_max"] = "0" +defs["igDragInt"][1]["defaults"]["v_min"] = "0" +defs["igDragInt"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragInt"][1]["funcname"] = "DragInt" +defs["igDragInt"][1]["location"] = "imgui:552" +defs["igDragInt"][1]["namespace"] = "ImGui" +defs["igDragInt"][1]["ov_cimguiname"] = "igDragInt" +defs["igDragInt"][1]["ret"] = "bool" +defs["igDragInt"][1]["signature"] = "(const char*,int*,float,int,int,const char*,ImGuiSliderFlags)" +defs["igDragInt"][1]["stname"] = "" +defs["igDragInt"]["(const char*,int*,float,int,int,const char*,ImGuiSliderFlags)"] = defs["igDragInt"][1] +defs["igDragInt2"] = {} +defs["igDragInt2"][1] = {} +defs["igDragInt2"][1]["args"] = "(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragInt2"][1]["argsT"] = {} +defs["igDragInt2"][1]["argsT"][1] = {} +defs["igDragInt2"][1]["argsT"][1]["name"] = "label" +defs["igDragInt2"][1]["argsT"][1]["type"] = "const char*" +defs["igDragInt2"][1]["argsT"][2] = {} +defs["igDragInt2"][1]["argsT"][2]["name"] = "v" +defs["igDragInt2"][1]["argsT"][2]["type"] = "int[2]" +defs["igDragInt2"][1]["argsT"][3] = {} +defs["igDragInt2"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragInt2"][1]["argsT"][3]["type"] = "float" +defs["igDragInt2"][1]["argsT"][4] = {} +defs["igDragInt2"][1]["argsT"][4]["name"] = "v_min" +defs["igDragInt2"][1]["argsT"][4]["type"] = "int" +defs["igDragInt2"][1]["argsT"][5] = {} +defs["igDragInt2"][1]["argsT"][5]["name"] = "v_max" +defs["igDragInt2"][1]["argsT"][5]["type"] = "int" +defs["igDragInt2"][1]["argsT"][6] = {} +defs["igDragInt2"][1]["argsT"][6]["name"] = "format" +defs["igDragInt2"][1]["argsT"][6]["type"] = "const char*" +defs["igDragInt2"][1]["argsT"][7] = {} +defs["igDragInt2"][1]["argsT"][7]["name"] = "flags" +defs["igDragInt2"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragInt2"][1]["argsoriginal"] = "(const char* label,int v[2],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igDragInt2"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragInt2"][1]["cimguiname"] = "igDragInt2" +defs["igDragInt2"][1]["defaults"] = {} +defs["igDragInt2"][1]["defaults"]["flags"] = "0" +defs["igDragInt2"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragInt2"][1]["defaults"]["v_max"] = "0" +defs["igDragInt2"][1]["defaults"]["v_min"] = "0" +defs["igDragInt2"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragInt2"][1]["funcname"] = "DragInt2" +defs["igDragInt2"][1]["location"] = "imgui:553" +defs["igDragInt2"][1]["namespace"] = "ImGui" +defs["igDragInt2"][1]["ov_cimguiname"] = "igDragInt2" +defs["igDragInt2"][1]["ret"] = "bool" +defs["igDragInt2"][1]["signature"] = "(const char*,int[2],float,int,int,const char*,ImGuiSliderFlags)" +defs["igDragInt2"][1]["stname"] = "" +defs["igDragInt2"]["(const char*,int[2],float,int,int,const char*,ImGuiSliderFlags)"] = defs["igDragInt2"][1] +defs["igDragInt3"] = {} +defs["igDragInt3"][1] = {} +defs["igDragInt3"][1]["args"] = "(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragInt3"][1]["argsT"] = {} +defs["igDragInt3"][1]["argsT"][1] = {} +defs["igDragInt3"][1]["argsT"][1]["name"] = "label" +defs["igDragInt3"][1]["argsT"][1]["type"] = "const char*" +defs["igDragInt3"][1]["argsT"][2] = {} +defs["igDragInt3"][1]["argsT"][2]["name"] = "v" +defs["igDragInt3"][1]["argsT"][2]["type"] = "int[3]" +defs["igDragInt3"][1]["argsT"][3] = {} +defs["igDragInt3"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragInt3"][1]["argsT"][3]["type"] = "float" +defs["igDragInt3"][1]["argsT"][4] = {} +defs["igDragInt3"][1]["argsT"][4]["name"] = "v_min" +defs["igDragInt3"][1]["argsT"][4]["type"] = "int" +defs["igDragInt3"][1]["argsT"][5] = {} +defs["igDragInt3"][1]["argsT"][5]["name"] = "v_max" +defs["igDragInt3"][1]["argsT"][5]["type"] = "int" +defs["igDragInt3"][1]["argsT"][6] = {} +defs["igDragInt3"][1]["argsT"][6]["name"] = "format" +defs["igDragInt3"][1]["argsT"][6]["type"] = "const char*" +defs["igDragInt3"][1]["argsT"][7] = {} +defs["igDragInt3"][1]["argsT"][7]["name"] = "flags" +defs["igDragInt3"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragInt3"][1]["argsoriginal"] = "(const char* label,int v[3],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igDragInt3"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragInt3"][1]["cimguiname"] = "igDragInt3" +defs["igDragInt3"][1]["defaults"] = {} +defs["igDragInt3"][1]["defaults"]["flags"] = "0" +defs["igDragInt3"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragInt3"][1]["defaults"]["v_max"] = "0" +defs["igDragInt3"][1]["defaults"]["v_min"] = "0" +defs["igDragInt3"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragInt3"][1]["funcname"] = "DragInt3" +defs["igDragInt3"][1]["location"] = "imgui:554" +defs["igDragInt3"][1]["namespace"] = "ImGui" +defs["igDragInt3"][1]["ov_cimguiname"] = "igDragInt3" +defs["igDragInt3"][1]["ret"] = "bool" +defs["igDragInt3"][1]["signature"] = "(const char*,int[3],float,int,int,const char*,ImGuiSliderFlags)" +defs["igDragInt3"][1]["stname"] = "" +defs["igDragInt3"]["(const char*,int[3],float,int,int,const char*,ImGuiSliderFlags)"] = defs["igDragInt3"][1] +defs["igDragInt4"] = {} +defs["igDragInt4"][1] = {} +defs["igDragInt4"][1]["args"] = "(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragInt4"][1]["argsT"] = {} +defs["igDragInt4"][1]["argsT"][1] = {} +defs["igDragInt4"][1]["argsT"][1]["name"] = "label" +defs["igDragInt4"][1]["argsT"][1]["type"] = "const char*" +defs["igDragInt4"][1]["argsT"][2] = {} +defs["igDragInt4"][1]["argsT"][2]["name"] = "v" +defs["igDragInt4"][1]["argsT"][2]["type"] = "int[4]" +defs["igDragInt4"][1]["argsT"][3] = {} +defs["igDragInt4"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragInt4"][1]["argsT"][3]["type"] = "float" +defs["igDragInt4"][1]["argsT"][4] = {} +defs["igDragInt4"][1]["argsT"][4]["name"] = "v_min" +defs["igDragInt4"][1]["argsT"][4]["type"] = "int" +defs["igDragInt4"][1]["argsT"][5] = {} +defs["igDragInt4"][1]["argsT"][5]["name"] = "v_max" +defs["igDragInt4"][1]["argsT"][5]["type"] = "int" +defs["igDragInt4"][1]["argsT"][6] = {} +defs["igDragInt4"][1]["argsT"][6]["name"] = "format" +defs["igDragInt4"][1]["argsT"][6]["type"] = "const char*" +defs["igDragInt4"][1]["argsT"][7] = {} +defs["igDragInt4"][1]["argsT"][7]["name"] = "flags" +defs["igDragInt4"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragInt4"][1]["argsoriginal"] = "(const char* label,int v[4],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igDragInt4"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragInt4"][1]["cimguiname"] = "igDragInt4" +defs["igDragInt4"][1]["defaults"] = {} +defs["igDragInt4"][1]["defaults"]["flags"] = "0" +defs["igDragInt4"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragInt4"][1]["defaults"]["v_max"] = "0" +defs["igDragInt4"][1]["defaults"]["v_min"] = "0" +defs["igDragInt4"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragInt4"][1]["funcname"] = "DragInt4" +defs["igDragInt4"][1]["location"] = "imgui:555" +defs["igDragInt4"][1]["namespace"] = "ImGui" +defs["igDragInt4"][1]["ov_cimguiname"] = "igDragInt4" +defs["igDragInt4"][1]["ret"] = "bool" +defs["igDragInt4"][1]["signature"] = "(const char*,int[4],float,int,int,const char*,ImGuiSliderFlags)" +defs["igDragInt4"][1]["stname"] = "" +defs["igDragInt4"]["(const char*,int[4],float,int,int,const char*,ImGuiSliderFlags)"] = defs["igDragInt4"][1] +defs["igDragIntRange2"] = {} +defs["igDragIntRange2"][1] = {} +defs["igDragIntRange2"][1]["args"] = "(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)" +defs["igDragIntRange2"][1]["argsT"] = {} +defs["igDragIntRange2"][1]["argsT"][1] = {} +defs["igDragIntRange2"][1]["argsT"][1]["name"] = "label" +defs["igDragIntRange2"][1]["argsT"][1]["type"] = "const char*" +defs["igDragIntRange2"][1]["argsT"][2] = {} +defs["igDragIntRange2"][1]["argsT"][2]["name"] = "v_current_min" +defs["igDragIntRange2"][1]["argsT"][2]["type"] = "int*" +defs["igDragIntRange2"][1]["argsT"][3] = {} +defs["igDragIntRange2"][1]["argsT"][3]["name"] = "v_current_max" +defs["igDragIntRange2"][1]["argsT"][3]["type"] = "int*" +defs["igDragIntRange2"][1]["argsT"][4] = {} +defs["igDragIntRange2"][1]["argsT"][4]["name"] = "v_speed" +defs["igDragIntRange2"][1]["argsT"][4]["type"] = "float" +defs["igDragIntRange2"][1]["argsT"][5] = {} +defs["igDragIntRange2"][1]["argsT"][5]["name"] = "v_min" +defs["igDragIntRange2"][1]["argsT"][5]["type"] = "int" +defs["igDragIntRange2"][1]["argsT"][6] = {} +defs["igDragIntRange2"][1]["argsT"][6]["name"] = "v_max" +defs["igDragIntRange2"][1]["argsT"][6]["type"] = "int" +defs["igDragIntRange2"][1]["argsT"][7] = {} +defs["igDragIntRange2"][1]["argsT"][7]["name"] = "format" +defs["igDragIntRange2"][1]["argsT"][7]["type"] = "const char*" +defs["igDragIntRange2"][1]["argsT"][8] = {} +defs["igDragIntRange2"][1]["argsT"][8]["name"] = "format_max" +defs["igDragIntRange2"][1]["argsT"][8]["type"] = "const char*" +defs["igDragIntRange2"][1]["argsT"][9] = {} +defs["igDragIntRange2"][1]["argsT"][9]["name"] = "flags" +defs["igDragIntRange2"][1]["argsT"][9]["type"] = "ImGuiSliderFlags" +defs["igDragIntRange2"][1]["argsoriginal"] = "(const char* label,int* v_current_min,int* v_current_max,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)" +defs["igDragIntRange2"][1]["call_args"] = "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)" +defs["igDragIntRange2"][1]["cimguiname"] = "igDragIntRange2" +defs["igDragIntRange2"][1]["defaults"] = {} +defs["igDragIntRange2"][1]["defaults"]["flags"] = "0" +defs["igDragIntRange2"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragIntRange2"][1]["defaults"]["format_max"] = "NULL" +defs["igDragIntRange2"][1]["defaults"]["v_max"] = "0" +defs["igDragIntRange2"][1]["defaults"]["v_min"] = "0" +defs["igDragIntRange2"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragIntRange2"][1]["funcname"] = "DragIntRange2" +defs["igDragIntRange2"][1]["location"] = "imgui:556" +defs["igDragIntRange2"][1]["namespace"] = "ImGui" +defs["igDragIntRange2"][1]["ov_cimguiname"] = "igDragIntRange2" +defs["igDragIntRange2"][1]["ret"] = "bool" +defs["igDragIntRange2"][1]["signature"] = "(const char*,int*,int*,float,int,int,const char*,const char*,ImGuiSliderFlags)" +defs["igDragIntRange2"][1]["stname"] = "" +defs["igDragIntRange2"]["(const char*,int*,int*,float,int,int,const char*,const char*,ImGuiSliderFlags)"] = defs["igDragIntRange2"][1] +defs["igDragScalar"] = {} +defs["igDragScalar"][1] = {} +defs["igDragScalar"][1]["args"] = "(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)" +defs["igDragScalar"][1]["argsT"] = {} +defs["igDragScalar"][1]["argsT"][1] = {} +defs["igDragScalar"][1]["argsT"][1]["name"] = "label" +defs["igDragScalar"][1]["argsT"][1]["type"] = "const char*" +defs["igDragScalar"][1]["argsT"][2] = {} +defs["igDragScalar"][1]["argsT"][2]["name"] = "data_type" +defs["igDragScalar"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igDragScalar"][1]["argsT"][3] = {} +defs["igDragScalar"][1]["argsT"][3]["name"] = "p_data" +defs["igDragScalar"][1]["argsT"][3]["type"] = "void*" +defs["igDragScalar"][1]["argsT"][4] = {} +defs["igDragScalar"][1]["argsT"][4]["name"] = "v_speed" +defs["igDragScalar"][1]["argsT"][4]["type"] = "float" +defs["igDragScalar"][1]["argsT"][5] = {} +defs["igDragScalar"][1]["argsT"][5]["name"] = "p_min" +defs["igDragScalar"][1]["argsT"][5]["type"] = "const void*" +defs["igDragScalar"][1]["argsT"][6] = {} +defs["igDragScalar"][1]["argsT"][6]["name"] = "p_max" +defs["igDragScalar"][1]["argsT"][6]["type"] = "const void*" +defs["igDragScalar"][1]["argsT"][7] = {} +defs["igDragScalar"][1]["argsT"][7]["name"] = "format" +defs["igDragScalar"][1]["argsT"][7]["type"] = "const char*" +defs["igDragScalar"][1]["argsT"][8] = {} +defs["igDragScalar"][1]["argsT"][8]["name"] = "flags" +defs["igDragScalar"][1]["argsT"][8]["type"] = "ImGuiSliderFlags" +defs["igDragScalar"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igDragScalar"][1]["call_args"] = "(label,data_type,p_data,v_speed,p_min,p_max,format,flags)" +defs["igDragScalar"][1]["cimguiname"] = "igDragScalar" +defs["igDragScalar"][1]["defaults"] = {} +defs["igDragScalar"][1]["defaults"]["flags"] = "0" +defs["igDragScalar"][1]["defaults"]["format"] = "NULL" +defs["igDragScalar"][1]["defaults"]["p_max"] = "NULL" +defs["igDragScalar"][1]["defaults"]["p_min"] = "NULL" +defs["igDragScalar"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragScalar"][1]["funcname"] = "DragScalar" +defs["igDragScalar"][1]["location"] = "imgui:557" +defs["igDragScalar"][1]["namespace"] = "ImGui" +defs["igDragScalar"][1]["ov_cimguiname"] = "igDragScalar" +defs["igDragScalar"][1]["ret"] = "bool" +defs["igDragScalar"][1]["signature"] = "(const char*,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igDragScalar"][1]["stname"] = "" +defs["igDragScalar"]["(const char*,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igDragScalar"][1] +defs["igDragScalarN"] = {} +defs["igDragScalarN"][1] = {} +defs["igDragScalarN"][1]["args"] = "(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)" +defs["igDragScalarN"][1]["argsT"] = {} +defs["igDragScalarN"][1]["argsT"][1] = {} +defs["igDragScalarN"][1]["argsT"][1]["name"] = "label" +defs["igDragScalarN"][1]["argsT"][1]["type"] = "const char*" +defs["igDragScalarN"][1]["argsT"][2] = {} +defs["igDragScalarN"][1]["argsT"][2]["name"] = "data_type" +defs["igDragScalarN"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igDragScalarN"][1]["argsT"][3] = {} +defs["igDragScalarN"][1]["argsT"][3]["name"] = "p_data" +defs["igDragScalarN"][1]["argsT"][3]["type"] = "void*" +defs["igDragScalarN"][1]["argsT"][4] = {} +defs["igDragScalarN"][1]["argsT"][4]["name"] = "components" +defs["igDragScalarN"][1]["argsT"][4]["type"] = "int" +defs["igDragScalarN"][1]["argsT"][5] = {} +defs["igDragScalarN"][1]["argsT"][5]["name"] = "v_speed" +defs["igDragScalarN"][1]["argsT"][5]["type"] = "float" +defs["igDragScalarN"][1]["argsT"][6] = {} +defs["igDragScalarN"][1]["argsT"][6]["name"] = "p_min" +defs["igDragScalarN"][1]["argsT"][6]["type"] = "const void*" +defs["igDragScalarN"][1]["argsT"][7] = {} +defs["igDragScalarN"][1]["argsT"][7]["name"] = "p_max" +defs["igDragScalarN"][1]["argsT"][7]["type"] = "const void*" +defs["igDragScalarN"][1]["argsT"][8] = {} +defs["igDragScalarN"][1]["argsT"][8]["name"] = "format" +defs["igDragScalarN"][1]["argsT"][8]["type"] = "const char*" +defs["igDragScalarN"][1]["argsT"][9] = {} +defs["igDragScalarN"][1]["argsT"][9]["name"] = "flags" +defs["igDragScalarN"][1]["argsT"][9]["type"] = "ImGuiSliderFlags" +defs["igDragScalarN"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,int components,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igDragScalarN"][1]["call_args"] = "(label,data_type,p_data,components,v_speed,p_min,p_max,format,flags)" +defs["igDragScalarN"][1]["cimguiname"] = "igDragScalarN" +defs["igDragScalarN"][1]["defaults"] = {} +defs["igDragScalarN"][1]["defaults"]["flags"] = "0" +defs["igDragScalarN"][1]["defaults"]["format"] = "NULL" +defs["igDragScalarN"][1]["defaults"]["p_max"] = "NULL" +defs["igDragScalarN"][1]["defaults"]["p_min"] = "NULL" +defs["igDragScalarN"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragScalarN"][1]["funcname"] = "DragScalarN" +defs["igDragScalarN"][1]["location"] = "imgui:558" +defs["igDragScalarN"][1]["namespace"] = "ImGui" +defs["igDragScalarN"][1]["ov_cimguiname"] = "igDragScalarN" +defs["igDragScalarN"][1]["ret"] = "bool" +defs["igDragScalarN"][1]["signature"] = "(const char*,ImGuiDataType,void*,int,float,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igDragScalarN"][1]["stname"] = "" +defs["igDragScalarN"]["(const char*,ImGuiDataType,void*,int,float,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igDragScalarN"][1] +defs["igDummy"] = {} +defs["igDummy"][1] = {} +defs["igDummy"][1]["args"] = "(const ImVec2 size)" +defs["igDummy"][1]["argsT"] = {} +defs["igDummy"][1]["argsT"][1] = {} +defs["igDummy"][1]["argsT"][1]["name"] = "size" +defs["igDummy"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igDummy"][1]["argsoriginal"] = "(const ImVec2& size)" +defs["igDummy"][1]["call_args"] = "(size)" +defs["igDummy"][1]["cimguiname"] = "igDummy" +defs["igDummy"][1]["defaults"] = {} +defs["igDummy"][1]["funcname"] = "Dummy" +defs["igDummy"][1]["location"] = "imgui:451" +defs["igDummy"][1]["namespace"] = "ImGui" +defs["igDummy"][1]["ov_cimguiname"] = "igDummy" +defs["igDummy"][1]["ret"] = "void" +defs["igDummy"][1]["signature"] = "(const ImVec2)" +defs["igDummy"][1]["stname"] = "" +defs["igDummy"]["(const ImVec2)"] = defs["igDummy"][1] +defs["igEnd"] = {} +defs["igEnd"][1] = {} +defs["igEnd"][1]["args"] = "()" +defs["igEnd"][1]["argsT"] = {} +defs["igEnd"][1]["argsoriginal"] = "()" +defs["igEnd"][1]["call_args"] = "()" +defs["igEnd"][1]["cimguiname"] = "igEnd" +defs["igEnd"][1]["defaults"] = {} +defs["igEnd"][1]["funcname"] = "End" +defs["igEnd"][1]["location"] = "imgui:337" +defs["igEnd"][1]["namespace"] = "ImGui" +defs["igEnd"][1]["ov_cimguiname"] = "igEnd" +defs["igEnd"][1]["ret"] = "void" +defs["igEnd"][1]["signature"] = "()" +defs["igEnd"][1]["stname"] = "" +defs["igEnd"]["()"] = defs["igEnd"][1] +defs["igEndChild"] = {} +defs["igEndChild"][1] = {} +defs["igEndChild"][1]["args"] = "()" +defs["igEndChild"][1]["argsT"] = {} +defs["igEndChild"][1]["argsoriginal"] = "()" +defs["igEndChild"][1]["call_args"] = "()" +defs["igEndChild"][1]["cimguiname"] = "igEndChild" +defs["igEndChild"][1]["defaults"] = {} +defs["igEndChild"][1]["funcname"] = "EndChild" +defs["igEndChild"][1]["location"] = "imgui:349" +defs["igEndChild"][1]["namespace"] = "ImGui" +defs["igEndChild"][1]["ov_cimguiname"] = "igEndChild" +defs["igEndChild"][1]["ret"] = "void" +defs["igEndChild"][1]["signature"] = "()" +defs["igEndChild"][1]["stname"] = "" +defs["igEndChild"]["()"] = defs["igEndChild"][1] +defs["igEndChildFrame"] = {} +defs["igEndChildFrame"][1] = {} +defs["igEndChildFrame"][1]["args"] = "()" +defs["igEndChildFrame"][1]["argsT"] = {} +defs["igEndChildFrame"][1]["argsoriginal"] = "()" +defs["igEndChildFrame"][1]["call_args"] = "()" +defs["igEndChildFrame"][1]["cimguiname"] = "igEndChildFrame" +defs["igEndChildFrame"][1]["defaults"] = {} +defs["igEndChildFrame"][1]["funcname"] = "EndChildFrame" +defs["igEndChildFrame"][1]["location"] = "imgui:905" +defs["igEndChildFrame"][1]["namespace"] = "ImGui" +defs["igEndChildFrame"][1]["ov_cimguiname"] = "igEndChildFrame" +defs["igEndChildFrame"][1]["ret"] = "void" +defs["igEndChildFrame"][1]["signature"] = "()" +defs["igEndChildFrame"][1]["stname"] = "" +defs["igEndChildFrame"]["()"] = defs["igEndChildFrame"][1] +defs["igEndCombo"] = {} +defs["igEndCombo"][1] = {} +defs["igEndCombo"][1]["args"] = "()" +defs["igEndCombo"][1]["argsT"] = {} +defs["igEndCombo"][1]["argsoriginal"] = "()" +defs["igEndCombo"][1]["call_args"] = "()" +defs["igEndCombo"][1]["cimguiname"] = "igEndCombo" +defs["igEndCombo"][1]["defaults"] = {} +defs["igEndCombo"][1]["funcname"] = "EndCombo" +defs["igEndCombo"][1]["location"] = "imgui:530" +defs["igEndCombo"][1]["namespace"] = "ImGui" +defs["igEndCombo"][1]["ov_cimguiname"] = "igEndCombo" +defs["igEndCombo"][1]["ret"] = "void" +defs["igEndCombo"][1]["signature"] = "()" +defs["igEndCombo"][1]["stname"] = "" +defs["igEndCombo"]["()"] = defs["igEndCombo"][1] +defs["igEndDisabled"] = {} +defs["igEndDisabled"][1] = {} +defs["igEndDisabled"][1]["args"] = "()" +defs["igEndDisabled"][1]["argsT"] = {} +defs["igEndDisabled"][1]["argsoriginal"] = "()" +defs["igEndDisabled"][1]["call_args"] = "()" +defs["igEndDisabled"][1]["cimguiname"] = "igEndDisabled" +defs["igEndDisabled"][1]["defaults"] = {} +defs["igEndDisabled"][1]["funcname"] = "EndDisabled" +defs["igEndDisabled"][1]["location"] = "imgui:850" +defs["igEndDisabled"][1]["namespace"] = "ImGui" +defs["igEndDisabled"][1]["ov_cimguiname"] = "igEndDisabled" +defs["igEndDisabled"][1]["ret"] = "void" +defs["igEndDisabled"][1]["signature"] = "()" +defs["igEndDisabled"][1]["stname"] = "" +defs["igEndDisabled"]["()"] = defs["igEndDisabled"][1] +defs["igEndDragDropSource"] = {} +defs["igEndDragDropSource"][1] = {} +defs["igEndDragDropSource"][1]["args"] = "()" +defs["igEndDragDropSource"][1]["argsT"] = {} +defs["igEndDragDropSource"][1]["argsoriginal"] = "()" +defs["igEndDragDropSource"][1]["call_args"] = "()" +defs["igEndDragDropSource"][1]["cimguiname"] = "igEndDragDropSource" +defs["igEndDragDropSource"][1]["defaults"] = {} +defs["igEndDragDropSource"][1]["funcname"] = "EndDragDropSource" +defs["igEndDragDropSource"][1]["location"] = "imgui:839" +defs["igEndDragDropSource"][1]["namespace"] = "ImGui" +defs["igEndDragDropSource"][1]["ov_cimguiname"] = "igEndDragDropSource" +defs["igEndDragDropSource"][1]["ret"] = "void" +defs["igEndDragDropSource"][1]["signature"] = "()" +defs["igEndDragDropSource"][1]["stname"] = "" +defs["igEndDragDropSource"]["()"] = defs["igEndDragDropSource"][1] +defs["igEndDragDropTarget"] = {} +defs["igEndDragDropTarget"][1] = {} +defs["igEndDragDropTarget"][1]["args"] = "()" +defs["igEndDragDropTarget"][1]["argsT"] = {} +defs["igEndDragDropTarget"][1]["argsoriginal"] = "()" +defs["igEndDragDropTarget"][1]["call_args"] = "()" +defs["igEndDragDropTarget"][1]["cimguiname"] = "igEndDragDropTarget" +defs["igEndDragDropTarget"][1]["defaults"] = {} +defs["igEndDragDropTarget"][1]["funcname"] = "EndDragDropTarget" +defs["igEndDragDropTarget"][1]["location"] = "imgui:842" +defs["igEndDragDropTarget"][1]["namespace"] = "ImGui" +defs["igEndDragDropTarget"][1]["ov_cimguiname"] = "igEndDragDropTarget" +defs["igEndDragDropTarget"][1]["ret"] = "void" +defs["igEndDragDropTarget"][1]["signature"] = "()" +defs["igEndDragDropTarget"][1]["stname"] = "" +defs["igEndDragDropTarget"]["()"] = defs["igEndDragDropTarget"][1] +defs["igEndFrame"] = {} +defs["igEndFrame"][1] = {} +defs["igEndFrame"][1]["args"] = "()" +defs["igEndFrame"][1]["argsT"] = {} +defs["igEndFrame"][1]["argsoriginal"] = "()" +defs["igEndFrame"][1]["call_args"] = "()" +defs["igEndFrame"][1]["cimguiname"] = "igEndFrame" +defs["igEndFrame"][1]["defaults"] = {} +defs["igEndFrame"][1]["funcname"] = "EndFrame" +defs["igEndFrame"][1]["location"] = "imgui:303" +defs["igEndFrame"][1]["namespace"] = "ImGui" +defs["igEndFrame"][1]["ov_cimguiname"] = "igEndFrame" +defs["igEndFrame"][1]["ret"] = "void" +defs["igEndFrame"][1]["signature"] = "()" +defs["igEndFrame"][1]["stname"] = "" +defs["igEndFrame"]["()"] = defs["igEndFrame"][1] +defs["igEndGroup"] = {} +defs["igEndGroup"][1] = {} +defs["igEndGroup"][1]["args"] = "()" +defs["igEndGroup"][1]["argsT"] = {} +defs["igEndGroup"][1]["argsoriginal"] = "()" +defs["igEndGroup"][1]["call_args"] = "()" +defs["igEndGroup"][1]["cimguiname"] = "igEndGroup" +defs["igEndGroup"][1]["defaults"] = {} +defs["igEndGroup"][1]["funcname"] = "EndGroup" +defs["igEndGroup"][1]["location"] = "imgui:455" +defs["igEndGroup"][1]["namespace"] = "ImGui" +defs["igEndGroup"][1]["ov_cimguiname"] = "igEndGroup" +defs["igEndGroup"][1]["ret"] = "void" +defs["igEndGroup"][1]["signature"] = "()" +defs["igEndGroup"][1]["stname"] = "" +defs["igEndGroup"]["()"] = defs["igEndGroup"][1] +defs["igEndListBox"] = {} +defs["igEndListBox"][1] = {} +defs["igEndListBox"][1]["args"] = "()" +defs["igEndListBox"][1]["argsT"] = {} +defs["igEndListBox"][1]["argsoriginal"] = "()" +defs["igEndListBox"][1]["call_args"] = "()" +defs["igEndListBox"][1]["cimguiname"] = "igEndListBox" +defs["igEndListBox"][1]["defaults"] = {} +defs["igEndListBox"][1]["funcname"] = "EndListBox" +defs["igEndListBox"][1]["location"] = "imgui:642" +defs["igEndListBox"][1]["namespace"] = "ImGui" +defs["igEndListBox"][1]["ov_cimguiname"] = "igEndListBox" +defs["igEndListBox"][1]["ret"] = "void" +defs["igEndListBox"][1]["signature"] = "()" +defs["igEndListBox"][1]["stname"] = "" +defs["igEndListBox"]["()"] = defs["igEndListBox"][1] +defs["igEndMainMenuBar"] = {} +defs["igEndMainMenuBar"][1] = {} +defs["igEndMainMenuBar"][1]["args"] = "()" +defs["igEndMainMenuBar"][1]["argsT"] = {} +defs["igEndMainMenuBar"][1]["argsoriginal"] = "()" +defs["igEndMainMenuBar"][1]["call_args"] = "()" +defs["igEndMainMenuBar"][1]["cimguiname"] = "igEndMainMenuBar" +defs["igEndMainMenuBar"][1]["defaults"] = {} +defs["igEndMainMenuBar"][1]["funcname"] = "EndMainMenuBar" +defs["igEndMainMenuBar"][1]["location"] = "imgui:668" +defs["igEndMainMenuBar"][1]["namespace"] = "ImGui" +defs["igEndMainMenuBar"][1]["ov_cimguiname"] = "igEndMainMenuBar" +defs["igEndMainMenuBar"][1]["ret"] = "void" +defs["igEndMainMenuBar"][1]["signature"] = "()" +defs["igEndMainMenuBar"][1]["stname"] = "" +defs["igEndMainMenuBar"]["()"] = defs["igEndMainMenuBar"][1] +defs["igEndMenu"] = {} +defs["igEndMenu"][1] = {} +defs["igEndMenu"][1]["args"] = "()" +defs["igEndMenu"][1]["argsT"] = {} +defs["igEndMenu"][1]["argsoriginal"] = "()" +defs["igEndMenu"][1]["call_args"] = "()" +defs["igEndMenu"][1]["cimguiname"] = "igEndMenu" +defs["igEndMenu"][1]["defaults"] = {} +defs["igEndMenu"][1]["funcname"] = "EndMenu" +defs["igEndMenu"][1]["location"] = "imgui:670" +defs["igEndMenu"][1]["namespace"] = "ImGui" +defs["igEndMenu"][1]["ov_cimguiname"] = "igEndMenu" +defs["igEndMenu"][1]["ret"] = "void" +defs["igEndMenu"][1]["signature"] = "()" +defs["igEndMenu"][1]["stname"] = "" +defs["igEndMenu"]["()"] = defs["igEndMenu"][1] +defs["igEndMenuBar"] = {} +defs["igEndMenuBar"][1] = {} +defs["igEndMenuBar"][1]["args"] = "()" +defs["igEndMenuBar"][1]["argsT"] = {} +defs["igEndMenuBar"][1]["argsoriginal"] = "()" +defs["igEndMenuBar"][1]["call_args"] = "()" +defs["igEndMenuBar"][1]["cimguiname"] = "igEndMenuBar" +defs["igEndMenuBar"][1]["defaults"] = {} +defs["igEndMenuBar"][1]["funcname"] = "EndMenuBar" +defs["igEndMenuBar"][1]["location"] = "imgui:666" +defs["igEndMenuBar"][1]["namespace"] = "ImGui" +defs["igEndMenuBar"][1]["ov_cimguiname"] = "igEndMenuBar" +defs["igEndMenuBar"][1]["ret"] = "void" +defs["igEndMenuBar"][1]["signature"] = "()" +defs["igEndMenuBar"][1]["stname"] = "" +defs["igEndMenuBar"]["()"] = defs["igEndMenuBar"][1] +defs["igEndPopup"] = {} +defs["igEndPopup"][1] = {} +defs["igEndPopup"][1]["args"] = "()" +defs["igEndPopup"][1]["argsT"] = {} +defs["igEndPopup"][1]["argsoriginal"] = "()" +defs["igEndPopup"][1]["call_args"] = "()" +defs["igEndPopup"][1]["cimguiname"] = "igEndPopup" +defs["igEndPopup"][1]["defaults"] = {} +defs["igEndPopup"][1]["funcname"] = "EndPopup" +defs["igEndPopup"][1]["location"] = "imgui:695" +defs["igEndPopup"][1]["namespace"] = "ImGui" +defs["igEndPopup"][1]["ov_cimguiname"] = "igEndPopup" +defs["igEndPopup"][1]["ret"] = "void" +defs["igEndPopup"][1]["signature"] = "()" +defs["igEndPopup"][1]["stname"] = "" +defs["igEndPopup"]["()"] = defs["igEndPopup"][1] +defs["igEndTabBar"] = {} +defs["igEndTabBar"][1] = {} +defs["igEndTabBar"][1]["args"] = "()" +defs["igEndTabBar"][1]["argsT"] = {} +defs["igEndTabBar"][1]["argsoriginal"] = "()" +defs["igEndTabBar"][1]["call_args"] = "()" +defs["igEndTabBar"][1]["cimguiname"] = "igEndTabBar" +defs["igEndTabBar"][1]["defaults"] = {} +defs["igEndTabBar"][1]["funcname"] = "EndTabBar" +defs["igEndTabBar"][1]["location"] = "imgui:796" +defs["igEndTabBar"][1]["namespace"] = "ImGui" +defs["igEndTabBar"][1]["ov_cimguiname"] = "igEndTabBar" +defs["igEndTabBar"][1]["ret"] = "void" +defs["igEndTabBar"][1]["signature"] = "()" +defs["igEndTabBar"][1]["stname"] = "" +defs["igEndTabBar"]["()"] = defs["igEndTabBar"][1] +defs["igEndTabItem"] = {} +defs["igEndTabItem"][1] = {} +defs["igEndTabItem"][1]["args"] = "()" +defs["igEndTabItem"][1]["argsT"] = {} +defs["igEndTabItem"][1]["argsoriginal"] = "()" +defs["igEndTabItem"][1]["call_args"] = "()" +defs["igEndTabItem"][1]["cimguiname"] = "igEndTabItem" +defs["igEndTabItem"][1]["defaults"] = {} +defs["igEndTabItem"][1]["funcname"] = "EndTabItem" +defs["igEndTabItem"][1]["location"] = "imgui:798" +defs["igEndTabItem"][1]["namespace"] = "ImGui" +defs["igEndTabItem"][1]["ov_cimguiname"] = "igEndTabItem" +defs["igEndTabItem"][1]["ret"] = "void" +defs["igEndTabItem"][1]["signature"] = "()" +defs["igEndTabItem"][1]["stname"] = "" +defs["igEndTabItem"]["()"] = defs["igEndTabItem"][1] +defs["igEndTable"] = {} +defs["igEndTable"][1] = {} +defs["igEndTable"][1]["args"] = "()" +defs["igEndTable"][1]["argsT"] = {} +defs["igEndTable"][1]["argsoriginal"] = "()" +defs["igEndTable"][1]["call_args"] = "()" +defs["igEndTable"][1]["cimguiname"] = "igEndTable" +defs["igEndTable"][1]["defaults"] = {} +defs["igEndTable"][1]["funcname"] = "EndTable" +defs["igEndTable"][1]["location"] = "imgui:749" +defs["igEndTable"][1]["namespace"] = "ImGui" +defs["igEndTable"][1]["ov_cimguiname"] = "igEndTable" +defs["igEndTable"][1]["ret"] = "void" +defs["igEndTable"][1]["signature"] = "()" +defs["igEndTable"][1]["stname"] = "" +defs["igEndTable"]["()"] = defs["igEndTable"][1] +defs["igEndTooltip"] = {} +defs["igEndTooltip"][1] = {} +defs["igEndTooltip"][1]["args"] = "()" +defs["igEndTooltip"][1]["argsT"] = {} +defs["igEndTooltip"][1]["argsoriginal"] = "()" +defs["igEndTooltip"][1]["call_args"] = "()" +defs["igEndTooltip"][1]["cimguiname"] = "igEndTooltip" +defs["igEndTooltip"][1]["defaults"] = {} +defs["igEndTooltip"][1]["funcname"] = "EndTooltip" +defs["igEndTooltip"][1]["location"] = "imgui:677" +defs["igEndTooltip"][1]["namespace"] = "ImGui" +defs["igEndTooltip"][1]["ov_cimguiname"] = "igEndTooltip" +defs["igEndTooltip"][1]["ret"] = "void" +defs["igEndTooltip"][1]["signature"] = "()" +defs["igEndTooltip"][1]["stname"] = "" +defs["igEndTooltip"]["()"] = defs["igEndTooltip"][1] +defs["igFindViewportByID"] = {} +defs["igFindViewportByID"][1] = {} +defs["igFindViewportByID"][1]["args"] = "(ImGuiID id)" +defs["igFindViewportByID"][1]["argsT"] = {} +defs["igFindViewportByID"][1]["argsT"][1] = {} +defs["igFindViewportByID"][1]["argsT"][1]["name"] = "id" +defs["igFindViewportByID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igFindViewportByID"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igFindViewportByID"][1]["call_args"] = "(id)" +defs["igFindViewportByID"][1]["cimguiname"] = "igFindViewportByID" +defs["igFindViewportByID"][1]["defaults"] = {} +defs["igFindViewportByID"][1]["funcname"] = "FindViewportByID" +defs["igFindViewportByID"][1]["location"] = "imgui:984" +defs["igFindViewportByID"][1]["namespace"] = "ImGui" +defs["igFindViewportByID"][1]["ov_cimguiname"] = "igFindViewportByID" +defs["igFindViewportByID"][1]["ret"] = "ImGuiViewport*" +defs["igFindViewportByID"][1]["signature"] = "(ImGuiID)" +defs["igFindViewportByID"][1]["stname"] = "" +defs["igFindViewportByID"]["(ImGuiID)"] = defs["igFindViewportByID"][1] +defs["igFindViewportByPlatformHandle"] = {} +defs["igFindViewportByPlatformHandle"][1] = {} +defs["igFindViewportByPlatformHandle"][1]["args"] = "(void* platform_handle)" +defs["igFindViewportByPlatformHandle"][1]["argsT"] = {} +defs["igFindViewportByPlatformHandle"][1]["argsT"][1] = {} +defs["igFindViewportByPlatformHandle"][1]["argsT"][1]["name"] = "platform_handle" +defs["igFindViewportByPlatformHandle"][1]["argsT"][1]["type"] = "void*" +defs["igFindViewportByPlatformHandle"][1]["argsoriginal"] = "(void* platform_handle)" +defs["igFindViewportByPlatformHandle"][1]["call_args"] = "(platform_handle)" +defs["igFindViewportByPlatformHandle"][1]["cimguiname"] = "igFindViewportByPlatformHandle" +defs["igFindViewportByPlatformHandle"][1]["defaults"] = {} +defs["igFindViewportByPlatformHandle"][1]["funcname"] = "FindViewportByPlatformHandle" +defs["igFindViewportByPlatformHandle"][1]["location"] = "imgui:985" +defs["igFindViewportByPlatformHandle"][1]["namespace"] = "ImGui" +defs["igFindViewportByPlatformHandle"][1]["ov_cimguiname"] = "igFindViewportByPlatformHandle" +defs["igFindViewportByPlatformHandle"][1]["ret"] = "ImGuiViewport*" +defs["igFindViewportByPlatformHandle"][1]["signature"] = "(void*)" +defs["igFindViewportByPlatformHandle"][1]["stname"] = "" +defs["igFindViewportByPlatformHandle"]["(void*)"] = defs["igFindViewportByPlatformHandle"][1] +defs["igGetAllocatorFunctions"] = {} +defs["igGetAllocatorFunctions"][1] = {} +defs["igGetAllocatorFunctions"][1]["args"] = "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)" +defs["igGetAllocatorFunctions"][1]["argsT"] = {} +defs["igGetAllocatorFunctions"][1]["argsT"][1] = {} +defs["igGetAllocatorFunctions"][1]["argsT"][1]["name"] = "p_alloc_func" +defs["igGetAllocatorFunctions"][1]["argsT"][1]["type"] = "ImGuiMemAllocFunc*" +defs["igGetAllocatorFunctions"][1]["argsT"][2] = {} +defs["igGetAllocatorFunctions"][1]["argsT"][2]["name"] = "p_free_func" +defs["igGetAllocatorFunctions"][1]["argsT"][2]["type"] = "ImGuiMemFreeFunc*" +defs["igGetAllocatorFunctions"][1]["argsT"][3] = {} +defs["igGetAllocatorFunctions"][1]["argsT"][3]["name"] = "p_user_data" +defs["igGetAllocatorFunctions"][1]["argsT"][3]["type"] = "void**" +defs["igGetAllocatorFunctions"][1]["argsoriginal"] = "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)" +defs["igGetAllocatorFunctions"][1]["call_args"] = "(p_alloc_func,p_free_func,p_user_data)" +defs["igGetAllocatorFunctions"][1]["cimguiname"] = "igGetAllocatorFunctions" +defs["igGetAllocatorFunctions"][1]["defaults"] = {} +defs["igGetAllocatorFunctions"][1]["funcname"] = "GetAllocatorFunctions" +defs["igGetAllocatorFunctions"][1]["location"] = "imgui:973" +defs["igGetAllocatorFunctions"][1]["namespace"] = "ImGui" +defs["igGetAllocatorFunctions"][1]["ov_cimguiname"] = "igGetAllocatorFunctions" +defs["igGetAllocatorFunctions"][1]["ret"] = "void" +defs["igGetAllocatorFunctions"][1]["signature"] = "(ImGuiMemAllocFunc*,ImGuiMemFreeFunc*,void**)" +defs["igGetAllocatorFunctions"][1]["stname"] = "" +defs["igGetAllocatorFunctions"]["(ImGuiMemAllocFunc*,ImGuiMemFreeFunc*,void**)"] = defs["igGetAllocatorFunctions"][1] +defs["igGetBackgroundDrawList"] = {} +defs["igGetBackgroundDrawList"][1] = {} +defs["igGetBackgroundDrawList"][1]["args"] = "()" +defs["igGetBackgroundDrawList"][1]["argsT"] = {} +defs["igGetBackgroundDrawList"][1]["argsoriginal"] = "()" +defs["igGetBackgroundDrawList"][1]["call_args"] = "()" +defs["igGetBackgroundDrawList"][1]["cimguiname"] = "igGetBackgroundDrawList" +defs["igGetBackgroundDrawList"][1]["defaults"] = {} +defs["igGetBackgroundDrawList"][1]["funcname"] = "GetBackgroundDrawList" +defs["igGetBackgroundDrawList"][1]["location"] = "imgui:890" +defs["igGetBackgroundDrawList"][1]["namespace"] = "ImGui" +defs["igGetBackgroundDrawList"][1]["ov_cimguiname"] = "igGetBackgroundDrawList_Nil" +defs["igGetBackgroundDrawList"][1]["ret"] = "ImDrawList*" +defs["igGetBackgroundDrawList"][1]["signature"] = "()" +defs["igGetBackgroundDrawList"][1]["stname"] = "" +defs["igGetBackgroundDrawList"][2] = {} +defs["igGetBackgroundDrawList"][2]["args"] = "(ImGuiViewport* viewport)" +defs["igGetBackgroundDrawList"][2]["argsT"] = {} +defs["igGetBackgroundDrawList"][2]["argsT"][1] = {} +defs["igGetBackgroundDrawList"][2]["argsT"][1]["name"] = "viewport" +defs["igGetBackgroundDrawList"][2]["argsT"][1]["type"] = "ImGuiViewport*" +defs["igGetBackgroundDrawList"][2]["argsoriginal"] = "(ImGuiViewport* viewport)" +defs["igGetBackgroundDrawList"][2]["call_args"] = "(viewport)" +defs["igGetBackgroundDrawList"][2]["cimguiname"] = "igGetBackgroundDrawList" +defs["igGetBackgroundDrawList"][2]["defaults"] = {} +defs["igGetBackgroundDrawList"][2]["funcname"] = "GetBackgroundDrawList" +defs["igGetBackgroundDrawList"][2]["location"] = "imgui:892" +defs["igGetBackgroundDrawList"][2]["namespace"] = "ImGui" +defs["igGetBackgroundDrawList"][2]["ov_cimguiname"] = "igGetBackgroundDrawList_ViewportPtr" +defs["igGetBackgroundDrawList"][2]["ret"] = "ImDrawList*" +defs["igGetBackgroundDrawList"][2]["signature"] = "(ImGuiViewport*)" +defs["igGetBackgroundDrawList"][2]["stname"] = "" +defs["igGetBackgroundDrawList"]["()"] = defs["igGetBackgroundDrawList"][1] +defs["igGetBackgroundDrawList"]["(ImGuiViewport*)"] = defs["igGetBackgroundDrawList"][2] +defs["igGetClipboardText"] = {} +defs["igGetClipboardText"][1] = {} +defs["igGetClipboardText"][1]["args"] = "()" +defs["igGetClipboardText"][1]["argsT"] = {} +defs["igGetClipboardText"][1]["argsoriginal"] = "()" +defs["igGetClipboardText"][1]["call_args"] = "()" +defs["igGetClipboardText"][1]["cimguiname"] = "igGetClipboardText" +defs["igGetClipboardText"][1]["defaults"] = {} +defs["igGetClipboardText"][1]["funcname"] = "GetClipboardText" +defs["igGetClipboardText"][1]["location"] = "imgui:952" +defs["igGetClipboardText"][1]["namespace"] = "ImGui" +defs["igGetClipboardText"][1]["ov_cimguiname"] = "igGetClipboardText" +defs["igGetClipboardText"][1]["ret"] = "const char*" +defs["igGetClipboardText"][1]["signature"] = "()" +defs["igGetClipboardText"][1]["stname"] = "" +defs["igGetClipboardText"]["()"] = defs["igGetClipboardText"][1] +defs["igGetColorU32"] = {} +defs["igGetColorU32"][1] = {} +defs["igGetColorU32"][1]["args"] = "(ImGuiCol idx,float alpha_mul)" +defs["igGetColorU32"][1]["argsT"] = {} +defs["igGetColorU32"][1]["argsT"][1] = {} +defs["igGetColorU32"][1]["argsT"][1]["name"] = "idx" +defs["igGetColorU32"][1]["argsT"][1]["type"] = "ImGuiCol" +defs["igGetColorU32"][1]["argsT"][2] = {} +defs["igGetColorU32"][1]["argsT"][2]["name"] = "alpha_mul" +defs["igGetColorU32"][1]["argsT"][2]["type"] = "float" +defs["igGetColorU32"][1]["argsoriginal"] = "(ImGuiCol idx,float alpha_mul=1.0f)" +defs["igGetColorU32"][1]["call_args"] = "(idx,alpha_mul)" +defs["igGetColorU32"][1]["cimguiname"] = "igGetColorU32" +defs["igGetColorU32"][1]["defaults"] = {} +defs["igGetColorU32"][1]["defaults"]["alpha_mul"] = "1.0f" +defs["igGetColorU32"][1]["funcname"] = "GetColorU32" +defs["igGetColorU32"][1]["location"] = "imgui:435" +defs["igGetColorU32"][1]["namespace"] = "ImGui" +defs["igGetColorU32"][1]["ov_cimguiname"] = "igGetColorU32_Col" +defs["igGetColorU32"][1]["ret"] = "ImU32" +defs["igGetColorU32"][1]["signature"] = "(ImGuiCol,float)" +defs["igGetColorU32"][1]["stname"] = "" +defs["igGetColorU32"][2] = {} +defs["igGetColorU32"][2]["args"] = "(const ImVec4 col)" +defs["igGetColorU32"][2]["argsT"] = {} +defs["igGetColorU32"][2]["argsT"][1] = {} +defs["igGetColorU32"][2]["argsT"][1]["name"] = "col" +defs["igGetColorU32"][2]["argsT"][1]["type"] = "const ImVec4" +defs["igGetColorU32"][2]["argsoriginal"] = "(const ImVec4& col)" +defs["igGetColorU32"][2]["call_args"] = "(col)" +defs["igGetColorU32"][2]["cimguiname"] = "igGetColorU32" +defs["igGetColorU32"][2]["defaults"] = {} +defs["igGetColorU32"][2]["funcname"] = "GetColorU32" +defs["igGetColorU32"][2]["location"] = "imgui:436" +defs["igGetColorU32"][2]["namespace"] = "ImGui" +defs["igGetColorU32"][2]["ov_cimguiname"] = "igGetColorU32_Vec4" +defs["igGetColorU32"][2]["ret"] = "ImU32" +defs["igGetColorU32"][2]["signature"] = "(const ImVec4)" +defs["igGetColorU32"][2]["stname"] = "" +defs["igGetColorU32"][3] = {} +defs["igGetColorU32"][3]["args"] = "(ImU32 col)" +defs["igGetColorU32"][3]["argsT"] = {} +defs["igGetColorU32"][3]["argsT"][1] = {} +defs["igGetColorU32"][3]["argsT"][1]["name"] = "col" +defs["igGetColorU32"][3]["argsT"][1]["type"] = "ImU32" +defs["igGetColorU32"][3]["argsoriginal"] = "(ImU32 col)" +defs["igGetColorU32"][3]["call_args"] = "(col)" +defs["igGetColorU32"][3]["cimguiname"] = "igGetColorU32" +defs["igGetColorU32"][3]["defaults"] = {} +defs["igGetColorU32"][3]["funcname"] = "GetColorU32" +defs["igGetColorU32"][3]["location"] = "imgui:437" +defs["igGetColorU32"][3]["namespace"] = "ImGui" +defs["igGetColorU32"][3]["ov_cimguiname"] = "igGetColorU32_U32" +defs["igGetColorU32"][3]["ret"] = "ImU32" +defs["igGetColorU32"][3]["signature"] = "(ImU32)" +defs["igGetColorU32"][3]["stname"] = "" +defs["igGetColorU32"]["(ImGuiCol,float)"] = defs["igGetColorU32"][1] +defs["igGetColorU32"]["(ImU32)"] = defs["igGetColorU32"][3] +defs["igGetColorU32"]["(const ImVec4)"] = defs["igGetColorU32"][2] +defs["igGetColumnIndex"] = {} +defs["igGetColumnIndex"][1] = {} +defs["igGetColumnIndex"][1]["args"] = "()" +defs["igGetColumnIndex"][1]["argsT"] = {} +defs["igGetColumnIndex"][1]["argsoriginal"] = "()" +defs["igGetColumnIndex"][1]["call_args"] = "()" +defs["igGetColumnIndex"][1]["cimguiname"] = "igGetColumnIndex" +defs["igGetColumnIndex"][1]["defaults"] = {} +defs["igGetColumnIndex"][1]["funcname"] = "GetColumnIndex" +defs["igGetColumnIndex"][1]["location"] = "imgui:786" +defs["igGetColumnIndex"][1]["namespace"] = "ImGui" +defs["igGetColumnIndex"][1]["ov_cimguiname"] = "igGetColumnIndex" +defs["igGetColumnIndex"][1]["ret"] = "int" +defs["igGetColumnIndex"][1]["signature"] = "()" +defs["igGetColumnIndex"][1]["stname"] = "" +defs["igGetColumnIndex"]["()"] = defs["igGetColumnIndex"][1] +defs["igGetColumnOffset"] = {} +defs["igGetColumnOffset"][1] = {} +defs["igGetColumnOffset"][1]["args"] = "(int column_index)" +defs["igGetColumnOffset"][1]["argsT"] = {} +defs["igGetColumnOffset"][1]["argsT"][1] = {} +defs["igGetColumnOffset"][1]["argsT"][1]["name"] = "column_index" +defs["igGetColumnOffset"][1]["argsT"][1]["type"] = "int" +defs["igGetColumnOffset"][1]["argsoriginal"] = "(int column_index=-1)" +defs["igGetColumnOffset"][1]["call_args"] = "(column_index)" +defs["igGetColumnOffset"][1]["cimguiname"] = "igGetColumnOffset" +defs["igGetColumnOffset"][1]["defaults"] = {} +defs["igGetColumnOffset"][1]["defaults"]["column_index"] = "-1" +defs["igGetColumnOffset"][1]["funcname"] = "GetColumnOffset" +defs["igGetColumnOffset"][1]["location"] = "imgui:789" +defs["igGetColumnOffset"][1]["namespace"] = "ImGui" +defs["igGetColumnOffset"][1]["ov_cimguiname"] = "igGetColumnOffset" +defs["igGetColumnOffset"][1]["ret"] = "float" +defs["igGetColumnOffset"][1]["signature"] = "(int)" +defs["igGetColumnOffset"][1]["stname"] = "" +defs["igGetColumnOffset"]["(int)"] = defs["igGetColumnOffset"][1] +defs["igGetColumnWidth"] = {} +defs["igGetColumnWidth"][1] = {} +defs["igGetColumnWidth"][1]["args"] = "(int column_index)" +defs["igGetColumnWidth"][1]["argsT"] = {} +defs["igGetColumnWidth"][1]["argsT"][1] = {} +defs["igGetColumnWidth"][1]["argsT"][1]["name"] = "column_index" +defs["igGetColumnWidth"][1]["argsT"][1]["type"] = "int" +defs["igGetColumnWidth"][1]["argsoriginal"] = "(int column_index=-1)" +defs["igGetColumnWidth"][1]["call_args"] = "(column_index)" +defs["igGetColumnWidth"][1]["cimguiname"] = "igGetColumnWidth" +defs["igGetColumnWidth"][1]["defaults"] = {} +defs["igGetColumnWidth"][1]["defaults"]["column_index"] = "-1" +defs["igGetColumnWidth"][1]["funcname"] = "GetColumnWidth" +defs["igGetColumnWidth"][1]["location"] = "imgui:787" +defs["igGetColumnWidth"][1]["namespace"] = "ImGui" +defs["igGetColumnWidth"][1]["ov_cimguiname"] = "igGetColumnWidth" +defs["igGetColumnWidth"][1]["ret"] = "float" +defs["igGetColumnWidth"][1]["signature"] = "(int)" +defs["igGetColumnWidth"][1]["stname"] = "" +defs["igGetColumnWidth"]["(int)"] = defs["igGetColumnWidth"][1] +defs["igGetColumnsCount"] = {} +defs["igGetColumnsCount"][1] = {} +defs["igGetColumnsCount"][1]["args"] = "()" +defs["igGetColumnsCount"][1]["argsT"] = {} +defs["igGetColumnsCount"][1]["argsoriginal"] = "()" +defs["igGetColumnsCount"][1]["call_args"] = "()" +defs["igGetColumnsCount"][1]["cimguiname"] = "igGetColumnsCount" +defs["igGetColumnsCount"][1]["defaults"] = {} +defs["igGetColumnsCount"][1]["funcname"] = "GetColumnsCount" +defs["igGetColumnsCount"][1]["location"] = "imgui:791" +defs["igGetColumnsCount"][1]["namespace"] = "ImGui" +defs["igGetColumnsCount"][1]["ov_cimguiname"] = "igGetColumnsCount" +defs["igGetColumnsCount"][1]["ret"] = "int" +defs["igGetColumnsCount"][1]["signature"] = "()" +defs["igGetColumnsCount"][1]["stname"] = "" +defs["igGetColumnsCount"]["()"] = defs["igGetColumnsCount"][1] +defs["igGetContentRegionAvail"] = {} +defs["igGetContentRegionAvail"][1] = {} +defs["igGetContentRegionAvail"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetContentRegionAvail"][1]["argsT"] = {} +defs["igGetContentRegionAvail"][1]["argsT"][1] = {} +defs["igGetContentRegionAvail"][1]["argsT"][1]["name"] = "pOut" +defs["igGetContentRegionAvail"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetContentRegionAvail"][1]["argsoriginal"] = "()" +defs["igGetContentRegionAvail"][1]["call_args"] = "()" +defs["igGetContentRegionAvail"][1]["cimguiname"] = "igGetContentRegionAvail" +defs["igGetContentRegionAvail"][1]["defaults"] = {} +defs["igGetContentRegionAvail"][1]["funcname"] = "GetContentRegionAvail" +defs["igGetContentRegionAvail"][1]["location"] = "imgui:389" +defs["igGetContentRegionAvail"][1]["namespace"] = "ImGui" +defs["igGetContentRegionAvail"][1]["nonUDT"] = 1 +defs["igGetContentRegionAvail"][1]["ov_cimguiname"] = "igGetContentRegionAvail" +defs["igGetContentRegionAvail"][1]["ret"] = "void" +defs["igGetContentRegionAvail"][1]["signature"] = "()" +defs["igGetContentRegionAvail"][1]["stname"] = "" +defs["igGetContentRegionAvail"]["()"] = defs["igGetContentRegionAvail"][1] +defs["igGetContentRegionMax"] = {} +defs["igGetContentRegionMax"][1] = {} +defs["igGetContentRegionMax"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetContentRegionMax"][1]["argsT"] = {} +defs["igGetContentRegionMax"][1]["argsT"][1] = {} +defs["igGetContentRegionMax"][1]["argsT"][1]["name"] = "pOut" +defs["igGetContentRegionMax"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetContentRegionMax"][1]["argsoriginal"] = "()" +defs["igGetContentRegionMax"][1]["call_args"] = "()" +defs["igGetContentRegionMax"][1]["cimguiname"] = "igGetContentRegionMax" +defs["igGetContentRegionMax"][1]["defaults"] = {} +defs["igGetContentRegionMax"][1]["funcname"] = "GetContentRegionMax" +defs["igGetContentRegionMax"][1]["location"] = "imgui:390" +defs["igGetContentRegionMax"][1]["namespace"] = "ImGui" +defs["igGetContentRegionMax"][1]["nonUDT"] = 1 +defs["igGetContentRegionMax"][1]["ov_cimguiname"] = "igGetContentRegionMax" +defs["igGetContentRegionMax"][1]["ret"] = "void" +defs["igGetContentRegionMax"][1]["signature"] = "()" +defs["igGetContentRegionMax"][1]["stname"] = "" +defs["igGetContentRegionMax"]["()"] = defs["igGetContentRegionMax"][1] +defs["igGetCurrentContext"] = {} +defs["igGetCurrentContext"][1] = {} +defs["igGetCurrentContext"][1]["args"] = "()" +defs["igGetCurrentContext"][1]["argsT"] = {} +defs["igGetCurrentContext"][1]["argsoriginal"] = "()" +defs["igGetCurrentContext"][1]["call_args"] = "()" +defs["igGetCurrentContext"][1]["cimguiname"] = "igGetCurrentContext" +defs["igGetCurrentContext"][1]["defaults"] = {} +defs["igGetCurrentContext"][1]["funcname"] = "GetCurrentContext" +defs["igGetCurrentContext"][1]["location"] = "imgui:296" +defs["igGetCurrentContext"][1]["namespace"] = "ImGui" +defs["igGetCurrentContext"][1]["ov_cimguiname"] = "igGetCurrentContext" +defs["igGetCurrentContext"][1]["ret"] = "ImGuiContext*" +defs["igGetCurrentContext"][1]["signature"] = "()" +defs["igGetCurrentContext"][1]["stname"] = "" +defs["igGetCurrentContext"]["()"] = defs["igGetCurrentContext"][1] +defs["igGetCursorPos"] = {} +defs["igGetCursorPos"][1] = {} +defs["igGetCursorPos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetCursorPos"][1]["argsT"] = {} +defs["igGetCursorPos"][1]["argsT"][1] = {} +defs["igGetCursorPos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetCursorPos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetCursorPos"][1]["argsoriginal"] = "()" +defs["igGetCursorPos"][1]["call_args"] = "()" +defs["igGetCursorPos"][1]["cimguiname"] = "igGetCursorPos" +defs["igGetCursorPos"][1]["defaults"] = {} +defs["igGetCursorPos"][1]["funcname"] = "GetCursorPos" +defs["igGetCursorPos"][1]["location"] = "imgui:456" +defs["igGetCursorPos"][1]["namespace"] = "ImGui" +defs["igGetCursorPos"][1]["nonUDT"] = 1 +defs["igGetCursorPos"][1]["ov_cimguiname"] = "igGetCursorPos" +defs["igGetCursorPos"][1]["ret"] = "void" +defs["igGetCursorPos"][1]["signature"] = "()" +defs["igGetCursorPos"][1]["stname"] = "" +defs["igGetCursorPos"]["()"] = defs["igGetCursorPos"][1] +defs["igGetCursorPosX"] = {} +defs["igGetCursorPosX"][1] = {} +defs["igGetCursorPosX"][1]["args"] = "()" +defs["igGetCursorPosX"][1]["argsT"] = {} +defs["igGetCursorPosX"][1]["argsoriginal"] = "()" +defs["igGetCursorPosX"][1]["call_args"] = "()" +defs["igGetCursorPosX"][1]["cimguiname"] = "igGetCursorPosX" +defs["igGetCursorPosX"][1]["defaults"] = {} +defs["igGetCursorPosX"][1]["funcname"] = "GetCursorPosX" +defs["igGetCursorPosX"][1]["location"] = "imgui:457" +defs["igGetCursorPosX"][1]["namespace"] = "ImGui" +defs["igGetCursorPosX"][1]["ov_cimguiname"] = "igGetCursorPosX" +defs["igGetCursorPosX"][1]["ret"] = "float" +defs["igGetCursorPosX"][1]["signature"] = "()" +defs["igGetCursorPosX"][1]["stname"] = "" +defs["igGetCursorPosX"]["()"] = defs["igGetCursorPosX"][1] +defs["igGetCursorPosY"] = {} +defs["igGetCursorPosY"][1] = {} +defs["igGetCursorPosY"][1]["args"] = "()" +defs["igGetCursorPosY"][1]["argsT"] = {} +defs["igGetCursorPosY"][1]["argsoriginal"] = "()" +defs["igGetCursorPosY"][1]["call_args"] = "()" +defs["igGetCursorPosY"][1]["cimguiname"] = "igGetCursorPosY" +defs["igGetCursorPosY"][1]["defaults"] = {} +defs["igGetCursorPosY"][1]["funcname"] = "GetCursorPosY" +defs["igGetCursorPosY"][1]["location"] = "imgui:458" +defs["igGetCursorPosY"][1]["namespace"] = "ImGui" +defs["igGetCursorPosY"][1]["ov_cimguiname"] = "igGetCursorPosY" +defs["igGetCursorPosY"][1]["ret"] = "float" +defs["igGetCursorPosY"][1]["signature"] = "()" +defs["igGetCursorPosY"][1]["stname"] = "" +defs["igGetCursorPosY"]["()"] = defs["igGetCursorPosY"][1] +defs["igGetCursorScreenPos"] = {} +defs["igGetCursorScreenPos"][1] = {} +defs["igGetCursorScreenPos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetCursorScreenPos"][1]["argsT"] = {} +defs["igGetCursorScreenPos"][1]["argsT"][1] = {} +defs["igGetCursorScreenPos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetCursorScreenPos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetCursorScreenPos"][1]["argsoriginal"] = "()" +defs["igGetCursorScreenPos"][1]["call_args"] = "()" +defs["igGetCursorScreenPos"][1]["cimguiname"] = "igGetCursorScreenPos" +defs["igGetCursorScreenPos"][1]["defaults"] = {} +defs["igGetCursorScreenPos"][1]["funcname"] = "GetCursorScreenPos" +defs["igGetCursorScreenPos"][1]["location"] = "imgui:463" +defs["igGetCursorScreenPos"][1]["namespace"] = "ImGui" +defs["igGetCursorScreenPos"][1]["nonUDT"] = 1 +defs["igGetCursorScreenPos"][1]["ov_cimguiname"] = "igGetCursorScreenPos" +defs["igGetCursorScreenPos"][1]["ret"] = "void" +defs["igGetCursorScreenPos"][1]["signature"] = "()" +defs["igGetCursorScreenPos"][1]["stname"] = "" +defs["igGetCursorScreenPos"]["()"] = defs["igGetCursorScreenPos"][1] +defs["igGetCursorStartPos"] = {} +defs["igGetCursorStartPos"][1] = {} +defs["igGetCursorStartPos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetCursorStartPos"][1]["argsT"] = {} +defs["igGetCursorStartPos"][1]["argsT"][1] = {} +defs["igGetCursorStartPos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetCursorStartPos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetCursorStartPos"][1]["argsoriginal"] = "()" +defs["igGetCursorStartPos"][1]["call_args"] = "()" +defs["igGetCursorStartPos"][1]["cimguiname"] = "igGetCursorStartPos" +defs["igGetCursorStartPos"][1]["defaults"] = {} +defs["igGetCursorStartPos"][1]["funcname"] = "GetCursorStartPos" +defs["igGetCursorStartPos"][1]["location"] = "imgui:462" +defs["igGetCursorStartPos"][1]["namespace"] = "ImGui" +defs["igGetCursorStartPos"][1]["nonUDT"] = 1 +defs["igGetCursorStartPos"][1]["ov_cimguiname"] = "igGetCursorStartPos" +defs["igGetCursorStartPos"][1]["ret"] = "void" +defs["igGetCursorStartPos"][1]["signature"] = "()" +defs["igGetCursorStartPos"][1]["stname"] = "" +defs["igGetCursorStartPos"]["()"] = defs["igGetCursorStartPos"][1] +defs["igGetDragDropPayload"] = {} +defs["igGetDragDropPayload"][1] = {} +defs["igGetDragDropPayload"][1]["args"] = "()" +defs["igGetDragDropPayload"][1]["argsT"] = {} +defs["igGetDragDropPayload"][1]["argsoriginal"] = "()" +defs["igGetDragDropPayload"][1]["call_args"] = "()" +defs["igGetDragDropPayload"][1]["cimguiname"] = "igGetDragDropPayload" +defs["igGetDragDropPayload"][1]["defaults"] = {} +defs["igGetDragDropPayload"][1]["funcname"] = "GetDragDropPayload" +defs["igGetDragDropPayload"][1]["location"] = "imgui:843" +defs["igGetDragDropPayload"][1]["namespace"] = "ImGui" +defs["igGetDragDropPayload"][1]["ov_cimguiname"] = "igGetDragDropPayload" +defs["igGetDragDropPayload"][1]["ret"] = "const ImGuiPayload*" +defs["igGetDragDropPayload"][1]["signature"] = "()" +defs["igGetDragDropPayload"][1]["stname"] = "" +defs["igGetDragDropPayload"]["()"] = defs["igGetDragDropPayload"][1] +defs["igGetDrawData"] = {} +defs["igGetDrawData"][1] = {} +defs["igGetDrawData"][1]["args"] = "()" +defs["igGetDrawData"][1]["argsT"] = {} +defs["igGetDrawData"][1]["argsoriginal"] = "()" +defs["igGetDrawData"][1]["call_args"] = "()" +defs["igGetDrawData"][1]["cimguiname"] = "igGetDrawData" +defs["igGetDrawData"][1]["defaults"] = {} +defs["igGetDrawData"][1]["funcname"] = "GetDrawData" +defs["igGetDrawData"][1]["location"] = "imgui:305" +defs["igGetDrawData"][1]["namespace"] = "ImGui" +defs["igGetDrawData"][1]["ov_cimguiname"] = "igGetDrawData" +defs["igGetDrawData"][1]["ret"] = "ImDrawData*" +defs["igGetDrawData"][1]["signature"] = "()" +defs["igGetDrawData"][1]["stname"] = "" +defs["igGetDrawData"]["()"] = defs["igGetDrawData"][1] +defs["igGetDrawListSharedData"] = {} +defs["igGetDrawListSharedData"][1] = {} +defs["igGetDrawListSharedData"][1]["args"] = "()" +defs["igGetDrawListSharedData"][1]["argsT"] = {} +defs["igGetDrawListSharedData"][1]["argsoriginal"] = "()" +defs["igGetDrawListSharedData"][1]["call_args"] = "()" +defs["igGetDrawListSharedData"][1]["cimguiname"] = "igGetDrawListSharedData" +defs["igGetDrawListSharedData"][1]["defaults"] = {} +defs["igGetDrawListSharedData"][1]["funcname"] = "GetDrawListSharedData" +defs["igGetDrawListSharedData"][1]["location"] = "imgui:900" +defs["igGetDrawListSharedData"][1]["namespace"] = "ImGui" +defs["igGetDrawListSharedData"][1]["ov_cimguiname"] = "igGetDrawListSharedData" +defs["igGetDrawListSharedData"][1]["ret"] = "ImDrawListSharedData*" +defs["igGetDrawListSharedData"][1]["signature"] = "()" +defs["igGetDrawListSharedData"][1]["stname"] = "" +defs["igGetDrawListSharedData"]["()"] = defs["igGetDrawListSharedData"][1] +defs["igGetFont"] = {} +defs["igGetFont"][1] = {} +defs["igGetFont"][1]["args"] = "()" +defs["igGetFont"][1]["argsT"] = {} +defs["igGetFont"][1]["argsoriginal"] = "()" +defs["igGetFont"][1]["call_args"] = "()" +defs["igGetFont"][1]["cimguiname"] = "igGetFont" +defs["igGetFont"][1]["defaults"] = {} +defs["igGetFont"][1]["funcname"] = "GetFont" +defs["igGetFont"][1]["location"] = "imgui:432" +defs["igGetFont"][1]["namespace"] = "ImGui" +defs["igGetFont"][1]["ov_cimguiname"] = "igGetFont" +defs["igGetFont"][1]["ret"] = "ImFont*" +defs["igGetFont"][1]["signature"] = "()" +defs["igGetFont"][1]["stname"] = "" +defs["igGetFont"]["()"] = defs["igGetFont"][1] +defs["igGetFontSize"] = {} +defs["igGetFontSize"][1] = {} +defs["igGetFontSize"][1]["args"] = "()" +defs["igGetFontSize"][1]["argsT"] = {} +defs["igGetFontSize"][1]["argsoriginal"] = "()" +defs["igGetFontSize"][1]["call_args"] = "()" +defs["igGetFontSize"][1]["cimguiname"] = "igGetFontSize" +defs["igGetFontSize"][1]["defaults"] = {} +defs["igGetFontSize"][1]["funcname"] = "GetFontSize" +defs["igGetFontSize"][1]["location"] = "imgui:433" +defs["igGetFontSize"][1]["namespace"] = "ImGui" +defs["igGetFontSize"][1]["ov_cimguiname"] = "igGetFontSize" +defs["igGetFontSize"][1]["ret"] = "float" +defs["igGetFontSize"][1]["signature"] = "()" +defs["igGetFontSize"][1]["stname"] = "" +defs["igGetFontSize"]["()"] = defs["igGetFontSize"][1] +defs["igGetFontTexUvWhitePixel"] = {} +defs["igGetFontTexUvWhitePixel"][1] = {} +defs["igGetFontTexUvWhitePixel"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetFontTexUvWhitePixel"][1]["argsT"] = {} +defs["igGetFontTexUvWhitePixel"][1]["argsT"][1] = {} +defs["igGetFontTexUvWhitePixel"][1]["argsT"][1]["name"] = "pOut" +defs["igGetFontTexUvWhitePixel"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetFontTexUvWhitePixel"][1]["argsoriginal"] = "()" +defs["igGetFontTexUvWhitePixel"][1]["call_args"] = "()" +defs["igGetFontTexUvWhitePixel"][1]["cimguiname"] = "igGetFontTexUvWhitePixel" +defs["igGetFontTexUvWhitePixel"][1]["defaults"] = {} +defs["igGetFontTexUvWhitePixel"][1]["funcname"] = "GetFontTexUvWhitePixel" +defs["igGetFontTexUvWhitePixel"][1]["location"] = "imgui:434" +defs["igGetFontTexUvWhitePixel"][1]["namespace"] = "ImGui" +defs["igGetFontTexUvWhitePixel"][1]["nonUDT"] = 1 +defs["igGetFontTexUvWhitePixel"][1]["ov_cimguiname"] = "igGetFontTexUvWhitePixel" +defs["igGetFontTexUvWhitePixel"][1]["ret"] = "void" +defs["igGetFontTexUvWhitePixel"][1]["signature"] = "()" +defs["igGetFontTexUvWhitePixel"][1]["stname"] = "" +defs["igGetFontTexUvWhitePixel"]["()"] = defs["igGetFontTexUvWhitePixel"][1] +defs["igGetForegroundDrawList"] = {} +defs["igGetForegroundDrawList"][1] = {} +defs["igGetForegroundDrawList"][1]["args"] = "()" +defs["igGetForegroundDrawList"][1]["argsT"] = {} +defs["igGetForegroundDrawList"][1]["argsoriginal"] = "()" +defs["igGetForegroundDrawList"][1]["call_args"] = "()" +defs["igGetForegroundDrawList"][1]["cimguiname"] = "igGetForegroundDrawList" +defs["igGetForegroundDrawList"][1]["defaults"] = {} +defs["igGetForegroundDrawList"][1]["funcname"] = "GetForegroundDrawList" +defs["igGetForegroundDrawList"][1]["location"] = "imgui:891" +defs["igGetForegroundDrawList"][1]["namespace"] = "ImGui" +defs["igGetForegroundDrawList"][1]["ov_cimguiname"] = "igGetForegroundDrawList_Nil" +defs["igGetForegroundDrawList"][1]["ret"] = "ImDrawList*" +defs["igGetForegroundDrawList"][1]["signature"] = "()" +defs["igGetForegroundDrawList"][1]["stname"] = "" +defs["igGetForegroundDrawList"][2] = {} +defs["igGetForegroundDrawList"][2]["args"] = "(ImGuiViewport* viewport)" +defs["igGetForegroundDrawList"][2]["argsT"] = {} +defs["igGetForegroundDrawList"][2]["argsT"][1] = {} +defs["igGetForegroundDrawList"][2]["argsT"][1]["name"] = "viewport" +defs["igGetForegroundDrawList"][2]["argsT"][1]["type"] = "ImGuiViewport*" +defs["igGetForegroundDrawList"][2]["argsoriginal"] = "(ImGuiViewport* viewport)" +defs["igGetForegroundDrawList"][2]["call_args"] = "(viewport)" +defs["igGetForegroundDrawList"][2]["cimguiname"] = "igGetForegroundDrawList" +defs["igGetForegroundDrawList"][2]["defaults"] = {} +defs["igGetForegroundDrawList"][2]["funcname"] = "GetForegroundDrawList" +defs["igGetForegroundDrawList"][2]["location"] = "imgui:893" +defs["igGetForegroundDrawList"][2]["namespace"] = "ImGui" +defs["igGetForegroundDrawList"][2]["ov_cimguiname"] = "igGetForegroundDrawList_ViewportPtr" +defs["igGetForegroundDrawList"][2]["ret"] = "ImDrawList*" +defs["igGetForegroundDrawList"][2]["signature"] = "(ImGuiViewport*)" +defs["igGetForegroundDrawList"][2]["stname"] = "" +defs["igGetForegroundDrawList"]["()"] = defs["igGetForegroundDrawList"][1] +defs["igGetForegroundDrawList"]["(ImGuiViewport*)"] = defs["igGetForegroundDrawList"][2] +defs["igGetFrameCount"] = {} +defs["igGetFrameCount"][1] = {} +defs["igGetFrameCount"][1]["args"] = "()" +defs["igGetFrameCount"][1]["argsT"] = {} +defs["igGetFrameCount"][1]["argsoriginal"] = "()" +defs["igGetFrameCount"][1]["call_args"] = "()" +defs["igGetFrameCount"][1]["cimguiname"] = "igGetFrameCount" +defs["igGetFrameCount"][1]["defaults"] = {} +defs["igGetFrameCount"][1]["funcname"] = "GetFrameCount" +defs["igGetFrameCount"][1]["location"] = "imgui:899" +defs["igGetFrameCount"][1]["namespace"] = "ImGui" +defs["igGetFrameCount"][1]["ov_cimguiname"] = "igGetFrameCount" +defs["igGetFrameCount"][1]["ret"] = "int" +defs["igGetFrameCount"][1]["signature"] = "()" +defs["igGetFrameCount"][1]["stname"] = "" +defs["igGetFrameCount"]["()"] = defs["igGetFrameCount"][1] +defs["igGetFrameHeight"] = {} +defs["igGetFrameHeight"][1] = {} +defs["igGetFrameHeight"][1]["args"] = "()" +defs["igGetFrameHeight"][1]["argsT"] = {} +defs["igGetFrameHeight"][1]["argsoriginal"] = "()" +defs["igGetFrameHeight"][1]["call_args"] = "()" +defs["igGetFrameHeight"][1]["cimguiname"] = "igGetFrameHeight" +defs["igGetFrameHeight"][1]["defaults"] = {} +defs["igGetFrameHeight"][1]["funcname"] = "GetFrameHeight" +defs["igGetFrameHeight"][1]["location"] = "imgui:468" +defs["igGetFrameHeight"][1]["namespace"] = "ImGui" +defs["igGetFrameHeight"][1]["ov_cimguiname"] = "igGetFrameHeight" +defs["igGetFrameHeight"][1]["ret"] = "float" +defs["igGetFrameHeight"][1]["signature"] = "()" +defs["igGetFrameHeight"][1]["stname"] = "" +defs["igGetFrameHeight"]["()"] = defs["igGetFrameHeight"][1] +defs["igGetFrameHeightWithSpacing"] = {} +defs["igGetFrameHeightWithSpacing"][1] = {} +defs["igGetFrameHeightWithSpacing"][1]["args"] = "()" +defs["igGetFrameHeightWithSpacing"][1]["argsT"] = {} +defs["igGetFrameHeightWithSpacing"][1]["argsoriginal"] = "()" +defs["igGetFrameHeightWithSpacing"][1]["call_args"] = "()" +defs["igGetFrameHeightWithSpacing"][1]["cimguiname"] = "igGetFrameHeightWithSpacing" +defs["igGetFrameHeightWithSpacing"][1]["defaults"] = {} +defs["igGetFrameHeightWithSpacing"][1]["funcname"] = "GetFrameHeightWithSpacing" +defs["igGetFrameHeightWithSpacing"][1]["location"] = "imgui:469" +defs["igGetFrameHeightWithSpacing"][1]["namespace"] = "ImGui" +defs["igGetFrameHeightWithSpacing"][1]["ov_cimguiname"] = "igGetFrameHeightWithSpacing" +defs["igGetFrameHeightWithSpacing"][1]["ret"] = "float" +defs["igGetFrameHeightWithSpacing"][1]["signature"] = "()" +defs["igGetFrameHeightWithSpacing"][1]["stname"] = "" +defs["igGetFrameHeightWithSpacing"]["()"] = defs["igGetFrameHeightWithSpacing"][1] +defs["igGetID"] = {} +defs["igGetID"][1] = {} +defs["igGetID"][1]["args"] = "(const char* str_id)" +defs["igGetID"][1]["argsT"] = {} +defs["igGetID"][1]["argsT"][1] = {} +defs["igGetID"][1]["argsT"][1]["name"] = "str_id" +defs["igGetID"][1]["argsT"][1]["type"] = "const char*" +defs["igGetID"][1]["argsoriginal"] = "(const char* str_id)" +defs["igGetID"][1]["call_args"] = "(str_id)" +defs["igGetID"][1]["cimguiname"] = "igGetID" +defs["igGetID"][1]["defaults"] = {} +defs["igGetID"][1]["funcname"] = "GetID" +defs["igGetID"][1]["location"] = "imgui:487" +defs["igGetID"][1]["namespace"] = "ImGui" +defs["igGetID"][1]["ov_cimguiname"] = "igGetID_Str" +defs["igGetID"][1]["ret"] = "ImGuiID" +defs["igGetID"][1]["signature"] = "(const char*)" +defs["igGetID"][1]["stname"] = "" +defs["igGetID"][2] = {} +defs["igGetID"][2]["args"] = "(const char* str_id_begin,const char* str_id_end)" +defs["igGetID"][2]["argsT"] = {} +defs["igGetID"][2]["argsT"][1] = {} +defs["igGetID"][2]["argsT"][1]["name"] = "str_id_begin" +defs["igGetID"][2]["argsT"][1]["type"] = "const char*" +defs["igGetID"][2]["argsT"][2] = {} +defs["igGetID"][2]["argsT"][2]["name"] = "str_id_end" +defs["igGetID"][2]["argsT"][2]["type"] = "const char*" +defs["igGetID"][2]["argsoriginal"] = "(const char* str_id_begin,const char* str_id_end)" +defs["igGetID"][2]["call_args"] = "(str_id_begin,str_id_end)" +defs["igGetID"][2]["cimguiname"] = "igGetID" +defs["igGetID"][2]["defaults"] = {} +defs["igGetID"][2]["funcname"] = "GetID" +defs["igGetID"][2]["location"] = "imgui:488" +defs["igGetID"][2]["namespace"] = "ImGui" +defs["igGetID"][2]["ov_cimguiname"] = "igGetID_StrStr" +defs["igGetID"][2]["ret"] = "ImGuiID" +defs["igGetID"][2]["signature"] = "(const char*,const char*)" +defs["igGetID"][2]["stname"] = "" +defs["igGetID"][3] = {} +defs["igGetID"][3]["args"] = "(const void* ptr_id)" +defs["igGetID"][3]["argsT"] = {} +defs["igGetID"][3]["argsT"][1] = {} +defs["igGetID"][3]["argsT"][1]["name"] = "ptr_id" +defs["igGetID"][3]["argsT"][1]["type"] = "const void*" +defs["igGetID"][3]["argsoriginal"] = "(const void* ptr_id)" +defs["igGetID"][3]["call_args"] = "(ptr_id)" +defs["igGetID"][3]["cimguiname"] = "igGetID" +defs["igGetID"][3]["defaults"] = {} +defs["igGetID"][3]["funcname"] = "GetID" +defs["igGetID"][3]["location"] = "imgui:489" +defs["igGetID"][3]["namespace"] = "ImGui" +defs["igGetID"][3]["ov_cimguiname"] = "igGetID_Ptr" +defs["igGetID"][3]["ret"] = "ImGuiID" +defs["igGetID"][3]["signature"] = "(const void*)" +defs["igGetID"][3]["stname"] = "" +defs["igGetID"]["(const char*)"] = defs["igGetID"][1] +defs["igGetID"]["(const char*,const char*)"] = defs["igGetID"][2] +defs["igGetID"]["(const void*)"] = defs["igGetID"][3] +defs["igGetIO"] = {} +defs["igGetIO"][1] = {} +defs["igGetIO"][1]["args"] = "()" +defs["igGetIO"][1]["argsT"] = {} +defs["igGetIO"][1]["argsoriginal"] = "()" +defs["igGetIO"][1]["call_args"] = "()" +defs["igGetIO"][1]["cimguiname"] = "igGetIO" +defs["igGetIO"][1]["defaults"] = {} +defs["igGetIO"][1]["funcname"] = "GetIO" +defs["igGetIO"][1]["location"] = "imgui:300" +defs["igGetIO"][1]["namespace"] = "ImGui" +defs["igGetIO"][1]["ov_cimguiname"] = "igGetIO" +defs["igGetIO"][1]["ret"] = "ImGuiIO*" +defs["igGetIO"][1]["retref"] = "&" +defs["igGetIO"][1]["signature"] = "()" +defs["igGetIO"][1]["stname"] = "" +defs["igGetIO"]["()"] = defs["igGetIO"][1] +defs["igGetItemRectMax"] = {} +defs["igGetItemRectMax"][1] = {} +defs["igGetItemRectMax"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetItemRectMax"][1]["argsT"] = {} +defs["igGetItemRectMax"][1]["argsT"][1] = {} +defs["igGetItemRectMax"][1]["argsT"][1]["name"] = "pOut" +defs["igGetItemRectMax"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetItemRectMax"][1]["argsoriginal"] = "()" +defs["igGetItemRectMax"][1]["call_args"] = "()" +defs["igGetItemRectMax"][1]["cimguiname"] = "igGetItemRectMax" +defs["igGetItemRectMax"][1]["defaults"] = {} +defs["igGetItemRectMax"][1]["funcname"] = "GetItemRectMax" +defs["igGetItemRectMax"][1]["location"] = "imgui:879" +defs["igGetItemRectMax"][1]["namespace"] = "ImGui" +defs["igGetItemRectMax"][1]["nonUDT"] = 1 +defs["igGetItemRectMax"][1]["ov_cimguiname"] = "igGetItemRectMax" +defs["igGetItemRectMax"][1]["ret"] = "void" +defs["igGetItemRectMax"][1]["signature"] = "()" +defs["igGetItemRectMax"][1]["stname"] = "" +defs["igGetItemRectMax"]["()"] = defs["igGetItemRectMax"][1] +defs["igGetItemRectMin"] = {} +defs["igGetItemRectMin"][1] = {} +defs["igGetItemRectMin"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetItemRectMin"][1]["argsT"] = {} +defs["igGetItemRectMin"][1]["argsT"][1] = {} +defs["igGetItemRectMin"][1]["argsT"][1]["name"] = "pOut" +defs["igGetItemRectMin"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetItemRectMin"][1]["argsoriginal"] = "()" +defs["igGetItemRectMin"][1]["call_args"] = "()" +defs["igGetItemRectMin"][1]["cimguiname"] = "igGetItemRectMin" +defs["igGetItemRectMin"][1]["defaults"] = {} +defs["igGetItemRectMin"][1]["funcname"] = "GetItemRectMin" +defs["igGetItemRectMin"][1]["location"] = "imgui:878" +defs["igGetItemRectMin"][1]["namespace"] = "ImGui" +defs["igGetItemRectMin"][1]["nonUDT"] = 1 +defs["igGetItemRectMin"][1]["ov_cimguiname"] = "igGetItemRectMin" +defs["igGetItemRectMin"][1]["ret"] = "void" +defs["igGetItemRectMin"][1]["signature"] = "()" +defs["igGetItemRectMin"][1]["stname"] = "" +defs["igGetItemRectMin"]["()"] = defs["igGetItemRectMin"][1] +defs["igGetItemRectSize"] = {} +defs["igGetItemRectSize"][1] = {} +defs["igGetItemRectSize"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetItemRectSize"][1]["argsT"] = {} +defs["igGetItemRectSize"][1]["argsT"][1] = {} +defs["igGetItemRectSize"][1]["argsT"][1]["name"] = "pOut" +defs["igGetItemRectSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetItemRectSize"][1]["argsoriginal"] = "()" +defs["igGetItemRectSize"][1]["call_args"] = "()" +defs["igGetItemRectSize"][1]["cimguiname"] = "igGetItemRectSize" +defs["igGetItemRectSize"][1]["defaults"] = {} +defs["igGetItemRectSize"][1]["funcname"] = "GetItemRectSize" +defs["igGetItemRectSize"][1]["location"] = "imgui:880" +defs["igGetItemRectSize"][1]["namespace"] = "ImGui" +defs["igGetItemRectSize"][1]["nonUDT"] = 1 +defs["igGetItemRectSize"][1]["ov_cimguiname"] = "igGetItemRectSize" +defs["igGetItemRectSize"][1]["ret"] = "void" +defs["igGetItemRectSize"][1]["signature"] = "()" +defs["igGetItemRectSize"][1]["stname"] = "" +defs["igGetItemRectSize"]["()"] = defs["igGetItemRectSize"][1] +defs["igGetKeyIndex"] = {} +defs["igGetKeyIndex"][1] = {} +defs["igGetKeyIndex"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyIndex"][1]["argsT"] = {} +defs["igGetKeyIndex"][1]["argsT"][1] = {} +defs["igGetKeyIndex"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyIndex"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyIndex"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyIndex"][1]["call_args"] = "(key)" +defs["igGetKeyIndex"][1]["cimguiname"] = "igGetKeyIndex" +defs["igGetKeyIndex"][1]["defaults"] = {} +defs["igGetKeyIndex"][1]["funcname"] = "GetKeyIndex" +defs["igGetKeyIndex"][1]["location"] = "imgui:3214" +defs["igGetKeyIndex"][1]["namespace"] = "ImGui" +defs["igGetKeyIndex"][1]["ov_cimguiname"] = "igGetKeyIndex" +defs["igGetKeyIndex"][1]["ret"] = "ImGuiKey" +defs["igGetKeyIndex"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyIndex"][1]["stname"] = "" +defs["igGetKeyIndex"]["(ImGuiKey)"] = defs["igGetKeyIndex"][1] +defs["igGetKeyName"] = {} +defs["igGetKeyName"][1] = {} +defs["igGetKeyName"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyName"][1]["argsT"] = {} +defs["igGetKeyName"][1]["argsT"][1] = {} +defs["igGetKeyName"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyName"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyName"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyName"][1]["call_args"] = "(key)" +defs["igGetKeyName"][1]["cimguiname"] = "igGetKeyName" +defs["igGetKeyName"][1]["defaults"] = {} +defs["igGetKeyName"][1]["funcname"] = "GetKeyName" +defs["igGetKeyName"][1]["location"] = "imgui:926" +defs["igGetKeyName"][1]["namespace"] = "ImGui" +defs["igGetKeyName"][1]["ov_cimguiname"] = "igGetKeyName" +defs["igGetKeyName"][1]["ret"] = "const char*" +defs["igGetKeyName"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyName"][1]["stname"] = "" +defs["igGetKeyName"]["(ImGuiKey)"] = defs["igGetKeyName"][1] +defs["igGetKeyPressedAmount"] = {} +defs["igGetKeyPressedAmount"][1] = {} +defs["igGetKeyPressedAmount"][1]["args"] = "(ImGuiKey key,float repeat_delay,float rate)" +defs["igGetKeyPressedAmount"][1]["argsT"] = {} +defs["igGetKeyPressedAmount"][1]["argsT"][1] = {} +defs["igGetKeyPressedAmount"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyPressedAmount"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyPressedAmount"][1]["argsT"][2] = {} +defs["igGetKeyPressedAmount"][1]["argsT"][2]["name"] = "repeat_delay" +defs["igGetKeyPressedAmount"][1]["argsT"][2]["type"] = "float" +defs["igGetKeyPressedAmount"][1]["argsT"][3] = {} +defs["igGetKeyPressedAmount"][1]["argsT"][3]["name"] = "rate" +defs["igGetKeyPressedAmount"][1]["argsT"][3]["type"] = "float" +defs["igGetKeyPressedAmount"][1]["argsoriginal"] = "(ImGuiKey key,float repeat_delay,float rate)" +defs["igGetKeyPressedAmount"][1]["call_args"] = "(key,repeat_delay,rate)" +defs["igGetKeyPressedAmount"][1]["cimguiname"] = "igGetKeyPressedAmount" +defs["igGetKeyPressedAmount"][1]["defaults"] = {} +defs["igGetKeyPressedAmount"][1]["funcname"] = "GetKeyPressedAmount" +defs["igGetKeyPressedAmount"][1]["location"] = "imgui:925" +defs["igGetKeyPressedAmount"][1]["namespace"] = "ImGui" +defs["igGetKeyPressedAmount"][1]["ov_cimguiname"] = "igGetKeyPressedAmount" +defs["igGetKeyPressedAmount"][1]["ret"] = "int" +defs["igGetKeyPressedAmount"][1]["signature"] = "(ImGuiKey,float,float)" +defs["igGetKeyPressedAmount"][1]["stname"] = "" +defs["igGetKeyPressedAmount"]["(ImGuiKey,float,float)"] = defs["igGetKeyPressedAmount"][1] +defs["igGetMainViewport"] = {} +defs["igGetMainViewport"][1] = {} +defs["igGetMainViewport"][1]["args"] = "()" +defs["igGetMainViewport"][1]["argsT"] = {} +defs["igGetMainViewport"][1]["argsoriginal"] = "()" +defs["igGetMainViewport"][1]["call_args"] = "()" +defs["igGetMainViewport"][1]["cimguiname"] = "igGetMainViewport" +defs["igGetMainViewport"][1]["defaults"] = {} +defs["igGetMainViewport"][1]["funcname"] = "GetMainViewport" +defs["igGetMainViewport"][1]["location"] = "imgui:887" +defs["igGetMainViewport"][1]["namespace"] = "ImGui" +defs["igGetMainViewport"][1]["ov_cimguiname"] = "igGetMainViewport" +defs["igGetMainViewport"][1]["ret"] = "ImGuiViewport*" +defs["igGetMainViewport"][1]["signature"] = "()" +defs["igGetMainViewport"][1]["stname"] = "" +defs["igGetMainViewport"]["()"] = defs["igGetMainViewport"][1] +defs["igGetMouseClickedCount"] = {} +defs["igGetMouseClickedCount"][1] = {} +defs["igGetMouseClickedCount"][1]["args"] = "(ImGuiMouseButton button)" +defs["igGetMouseClickedCount"][1]["argsT"] = {} +defs["igGetMouseClickedCount"][1]["argsT"][1] = {} +defs["igGetMouseClickedCount"][1]["argsT"][1]["name"] = "button" +defs["igGetMouseClickedCount"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igGetMouseClickedCount"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igGetMouseClickedCount"][1]["call_args"] = "(button)" +defs["igGetMouseClickedCount"][1]["cimguiname"] = "igGetMouseClickedCount" +defs["igGetMouseClickedCount"][1]["defaults"] = {} +defs["igGetMouseClickedCount"][1]["funcname"] = "GetMouseClickedCount" +defs["igGetMouseClickedCount"][1]["location"] = "imgui:937" +defs["igGetMouseClickedCount"][1]["namespace"] = "ImGui" +defs["igGetMouseClickedCount"][1]["ov_cimguiname"] = "igGetMouseClickedCount" +defs["igGetMouseClickedCount"][1]["ret"] = "int" +defs["igGetMouseClickedCount"][1]["signature"] = "(ImGuiMouseButton)" +defs["igGetMouseClickedCount"][1]["stname"] = "" +defs["igGetMouseClickedCount"]["(ImGuiMouseButton)"] = defs["igGetMouseClickedCount"][1] +defs["igGetMouseCursor"] = {} +defs["igGetMouseCursor"][1] = {} +defs["igGetMouseCursor"][1]["args"] = "()" +defs["igGetMouseCursor"][1]["argsT"] = {} +defs["igGetMouseCursor"][1]["argsoriginal"] = "()" +defs["igGetMouseCursor"][1]["call_args"] = "()" +defs["igGetMouseCursor"][1]["cimguiname"] = "igGetMouseCursor" +defs["igGetMouseCursor"][1]["defaults"] = {} +defs["igGetMouseCursor"][1]["funcname"] = "GetMouseCursor" +defs["igGetMouseCursor"][1]["location"] = "imgui:946" +defs["igGetMouseCursor"][1]["namespace"] = "ImGui" +defs["igGetMouseCursor"][1]["ov_cimguiname"] = "igGetMouseCursor" +defs["igGetMouseCursor"][1]["ret"] = "ImGuiMouseCursor" +defs["igGetMouseCursor"][1]["signature"] = "()" +defs["igGetMouseCursor"][1]["stname"] = "" +defs["igGetMouseCursor"]["()"] = defs["igGetMouseCursor"][1] +defs["igGetMouseDragDelta"] = {} +defs["igGetMouseDragDelta"][1] = {} +defs["igGetMouseDragDelta"][1]["args"] = "(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold)" +defs["igGetMouseDragDelta"][1]["argsT"] = {} +defs["igGetMouseDragDelta"][1]["argsT"][1] = {} +defs["igGetMouseDragDelta"][1]["argsT"][1]["name"] = "pOut" +defs["igGetMouseDragDelta"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetMouseDragDelta"][1]["argsT"][2] = {} +defs["igGetMouseDragDelta"][1]["argsT"][2]["name"] = "button" +defs["igGetMouseDragDelta"][1]["argsT"][2]["type"] = "ImGuiMouseButton" +defs["igGetMouseDragDelta"][1]["argsT"][3] = {} +defs["igGetMouseDragDelta"][1]["argsT"][3]["name"] = "lock_threshold" +defs["igGetMouseDragDelta"][1]["argsT"][3]["type"] = "float" +defs["igGetMouseDragDelta"][1]["argsoriginal"] = "(ImGuiMouseButton button=0,float lock_threshold=-1.0f)" +defs["igGetMouseDragDelta"][1]["call_args"] = "(button,lock_threshold)" +defs["igGetMouseDragDelta"][1]["cimguiname"] = "igGetMouseDragDelta" +defs["igGetMouseDragDelta"][1]["defaults"] = {} +defs["igGetMouseDragDelta"][1]["defaults"]["button"] = "0" +defs["igGetMouseDragDelta"][1]["defaults"]["lock_threshold"] = "-1.0f" +defs["igGetMouseDragDelta"][1]["funcname"] = "GetMouseDragDelta" +defs["igGetMouseDragDelta"][1]["location"] = "imgui:944" +defs["igGetMouseDragDelta"][1]["namespace"] = "ImGui" +defs["igGetMouseDragDelta"][1]["nonUDT"] = 1 +defs["igGetMouseDragDelta"][1]["ov_cimguiname"] = "igGetMouseDragDelta" +defs["igGetMouseDragDelta"][1]["ret"] = "void" +defs["igGetMouseDragDelta"][1]["signature"] = "(ImGuiMouseButton,float)" +defs["igGetMouseDragDelta"][1]["stname"] = "" +defs["igGetMouseDragDelta"]["(ImGuiMouseButton,float)"] = defs["igGetMouseDragDelta"][1] +defs["igGetMousePos"] = {} +defs["igGetMousePos"][1] = {} +defs["igGetMousePos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetMousePos"][1]["argsT"] = {} +defs["igGetMousePos"][1]["argsT"][1] = {} +defs["igGetMousePos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetMousePos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetMousePos"][1]["argsoriginal"] = "()" +defs["igGetMousePos"][1]["call_args"] = "()" +defs["igGetMousePos"][1]["cimguiname"] = "igGetMousePos" +defs["igGetMousePos"][1]["defaults"] = {} +defs["igGetMousePos"][1]["funcname"] = "GetMousePos" +defs["igGetMousePos"][1]["location"] = "imgui:941" +defs["igGetMousePos"][1]["namespace"] = "ImGui" +defs["igGetMousePos"][1]["nonUDT"] = 1 +defs["igGetMousePos"][1]["ov_cimguiname"] = "igGetMousePos" +defs["igGetMousePos"][1]["ret"] = "void" +defs["igGetMousePos"][1]["signature"] = "()" +defs["igGetMousePos"][1]["stname"] = "" +defs["igGetMousePos"]["()"] = defs["igGetMousePos"][1] +defs["igGetMousePosOnOpeningCurrentPopup"] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsT"] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsT"][1] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsT"][1]["name"] = "pOut" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsoriginal"] = "()" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["call_args"] = "()" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["cimguiname"] = "igGetMousePosOnOpeningCurrentPopup" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["defaults"] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1]["funcname"] = "GetMousePosOnOpeningCurrentPopup" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["location"] = "imgui:942" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["namespace"] = "ImGui" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["nonUDT"] = 1 +defs["igGetMousePosOnOpeningCurrentPopup"][1]["ov_cimguiname"] = "igGetMousePosOnOpeningCurrentPopup" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["ret"] = "void" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["signature"] = "()" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["stname"] = "" +defs["igGetMousePosOnOpeningCurrentPopup"]["()"] = defs["igGetMousePosOnOpeningCurrentPopup"][1] +defs["igGetPlatformIO"] = {} +defs["igGetPlatformIO"][1] = {} +defs["igGetPlatformIO"][1]["args"] = "()" +defs["igGetPlatformIO"][1]["argsT"] = {} +defs["igGetPlatformIO"][1]["argsoriginal"] = "()" +defs["igGetPlatformIO"][1]["call_args"] = "()" +defs["igGetPlatformIO"][1]["cimguiname"] = "igGetPlatformIO" +defs["igGetPlatformIO"][1]["defaults"] = {} +defs["igGetPlatformIO"][1]["funcname"] = "GetPlatformIO" +defs["igGetPlatformIO"][1]["location"] = "imgui:980" +defs["igGetPlatformIO"][1]["namespace"] = "ImGui" +defs["igGetPlatformIO"][1]["ov_cimguiname"] = "igGetPlatformIO" +defs["igGetPlatformIO"][1]["ret"] = "ImGuiPlatformIO*" +defs["igGetPlatformIO"][1]["retref"] = "&" +defs["igGetPlatformIO"][1]["signature"] = "()" +defs["igGetPlatformIO"][1]["stname"] = "" +defs["igGetPlatformIO"]["()"] = defs["igGetPlatformIO"][1] +defs["igGetScrollMaxX"] = {} +defs["igGetScrollMaxX"][1] = {} +defs["igGetScrollMaxX"][1]["args"] = "()" +defs["igGetScrollMaxX"][1]["argsT"] = {} +defs["igGetScrollMaxX"][1]["argsoriginal"] = "()" +defs["igGetScrollMaxX"][1]["call_args"] = "()" +defs["igGetScrollMaxX"][1]["cimguiname"] = "igGetScrollMaxX" +defs["igGetScrollMaxX"][1]["defaults"] = {} +defs["igGetScrollMaxX"][1]["funcname"] = "GetScrollMaxX" +defs["igGetScrollMaxX"][1]["location"] = "imgui:401" +defs["igGetScrollMaxX"][1]["namespace"] = "ImGui" +defs["igGetScrollMaxX"][1]["ov_cimguiname"] = "igGetScrollMaxX" +defs["igGetScrollMaxX"][1]["ret"] = "float" +defs["igGetScrollMaxX"][1]["signature"] = "()" +defs["igGetScrollMaxX"][1]["stname"] = "" +defs["igGetScrollMaxX"]["()"] = defs["igGetScrollMaxX"][1] +defs["igGetScrollMaxY"] = {} +defs["igGetScrollMaxY"][1] = {} +defs["igGetScrollMaxY"][1]["args"] = "()" +defs["igGetScrollMaxY"][1]["argsT"] = {} +defs["igGetScrollMaxY"][1]["argsoriginal"] = "()" +defs["igGetScrollMaxY"][1]["call_args"] = "()" +defs["igGetScrollMaxY"][1]["cimguiname"] = "igGetScrollMaxY" +defs["igGetScrollMaxY"][1]["defaults"] = {} +defs["igGetScrollMaxY"][1]["funcname"] = "GetScrollMaxY" +defs["igGetScrollMaxY"][1]["location"] = "imgui:402" +defs["igGetScrollMaxY"][1]["namespace"] = "ImGui" +defs["igGetScrollMaxY"][1]["ov_cimguiname"] = "igGetScrollMaxY" +defs["igGetScrollMaxY"][1]["ret"] = "float" +defs["igGetScrollMaxY"][1]["signature"] = "()" +defs["igGetScrollMaxY"][1]["stname"] = "" +defs["igGetScrollMaxY"]["()"] = defs["igGetScrollMaxY"][1] +defs["igGetScrollX"] = {} +defs["igGetScrollX"][1] = {} +defs["igGetScrollX"][1]["args"] = "()" +defs["igGetScrollX"][1]["argsT"] = {} +defs["igGetScrollX"][1]["argsoriginal"] = "()" +defs["igGetScrollX"][1]["call_args"] = "()" +defs["igGetScrollX"][1]["cimguiname"] = "igGetScrollX" +defs["igGetScrollX"][1]["defaults"] = {} +defs["igGetScrollX"][1]["funcname"] = "GetScrollX" +defs["igGetScrollX"][1]["location"] = "imgui:397" +defs["igGetScrollX"][1]["namespace"] = "ImGui" +defs["igGetScrollX"][1]["ov_cimguiname"] = "igGetScrollX" +defs["igGetScrollX"][1]["ret"] = "float" +defs["igGetScrollX"][1]["signature"] = "()" +defs["igGetScrollX"][1]["stname"] = "" +defs["igGetScrollX"]["()"] = defs["igGetScrollX"][1] +defs["igGetScrollY"] = {} +defs["igGetScrollY"][1] = {} +defs["igGetScrollY"][1]["args"] = "()" +defs["igGetScrollY"][1]["argsT"] = {} +defs["igGetScrollY"][1]["argsoriginal"] = "()" +defs["igGetScrollY"][1]["call_args"] = "()" +defs["igGetScrollY"][1]["cimguiname"] = "igGetScrollY" +defs["igGetScrollY"][1]["defaults"] = {} +defs["igGetScrollY"][1]["funcname"] = "GetScrollY" +defs["igGetScrollY"][1]["location"] = "imgui:398" +defs["igGetScrollY"][1]["namespace"] = "ImGui" +defs["igGetScrollY"][1]["ov_cimguiname"] = "igGetScrollY" +defs["igGetScrollY"][1]["ret"] = "float" +defs["igGetScrollY"][1]["signature"] = "()" +defs["igGetScrollY"][1]["stname"] = "" +defs["igGetScrollY"]["()"] = defs["igGetScrollY"][1] +defs["igGetStateStorage"] = {} +defs["igGetStateStorage"][1] = {} +defs["igGetStateStorage"][1]["args"] = "()" +defs["igGetStateStorage"][1]["argsT"] = {} +defs["igGetStateStorage"][1]["argsoriginal"] = "()" +defs["igGetStateStorage"][1]["call_args"] = "()" +defs["igGetStateStorage"][1]["cimguiname"] = "igGetStateStorage" +defs["igGetStateStorage"][1]["defaults"] = {} +defs["igGetStateStorage"][1]["funcname"] = "GetStateStorage" +defs["igGetStateStorage"][1]["location"] = "imgui:903" +defs["igGetStateStorage"][1]["namespace"] = "ImGui" +defs["igGetStateStorage"][1]["ov_cimguiname"] = "igGetStateStorage" +defs["igGetStateStorage"][1]["ret"] = "ImGuiStorage*" +defs["igGetStateStorage"][1]["signature"] = "()" +defs["igGetStateStorage"][1]["stname"] = "" +defs["igGetStateStorage"]["()"] = defs["igGetStateStorage"][1] +defs["igGetStyle"] = {} +defs["igGetStyle"][1] = {} +defs["igGetStyle"][1]["args"] = "()" +defs["igGetStyle"][1]["argsT"] = {} +defs["igGetStyle"][1]["argsoriginal"] = "()" +defs["igGetStyle"][1]["call_args"] = "()" +defs["igGetStyle"][1]["cimguiname"] = "igGetStyle" +defs["igGetStyle"][1]["defaults"] = {} +defs["igGetStyle"][1]["funcname"] = "GetStyle" +defs["igGetStyle"][1]["location"] = "imgui:301" +defs["igGetStyle"][1]["namespace"] = "ImGui" +defs["igGetStyle"][1]["ov_cimguiname"] = "igGetStyle" +defs["igGetStyle"][1]["ret"] = "ImGuiStyle*" +defs["igGetStyle"][1]["retref"] = "&" +defs["igGetStyle"][1]["signature"] = "()" +defs["igGetStyle"][1]["stname"] = "" +defs["igGetStyle"]["()"] = defs["igGetStyle"][1] +defs["igGetStyleColorName"] = {} +defs["igGetStyleColorName"][1] = {} +defs["igGetStyleColorName"][1]["args"] = "(ImGuiCol idx)" +defs["igGetStyleColorName"][1]["argsT"] = {} +defs["igGetStyleColorName"][1]["argsT"][1] = {} +defs["igGetStyleColorName"][1]["argsT"][1]["name"] = "idx" +defs["igGetStyleColorName"][1]["argsT"][1]["type"] = "ImGuiCol" +defs["igGetStyleColorName"][1]["argsoriginal"] = "(ImGuiCol idx)" +defs["igGetStyleColorName"][1]["call_args"] = "(idx)" +defs["igGetStyleColorName"][1]["cimguiname"] = "igGetStyleColorName" +defs["igGetStyleColorName"][1]["defaults"] = {} +defs["igGetStyleColorName"][1]["funcname"] = "GetStyleColorName" +defs["igGetStyleColorName"][1]["location"] = "imgui:901" +defs["igGetStyleColorName"][1]["namespace"] = "ImGui" +defs["igGetStyleColorName"][1]["ov_cimguiname"] = "igGetStyleColorName" +defs["igGetStyleColorName"][1]["ret"] = "const char*" +defs["igGetStyleColorName"][1]["signature"] = "(ImGuiCol)" +defs["igGetStyleColorName"][1]["stname"] = "" +defs["igGetStyleColorName"]["(ImGuiCol)"] = defs["igGetStyleColorName"][1] +defs["igGetStyleColorVec4"] = {} +defs["igGetStyleColorVec4"][1] = {} +defs["igGetStyleColorVec4"][1]["args"] = "(ImGuiCol idx)" +defs["igGetStyleColorVec4"][1]["argsT"] = {} +defs["igGetStyleColorVec4"][1]["argsT"][1] = {} +defs["igGetStyleColorVec4"][1]["argsT"][1]["name"] = "idx" +defs["igGetStyleColorVec4"][1]["argsT"][1]["type"] = "ImGuiCol" +defs["igGetStyleColorVec4"][1]["argsoriginal"] = "(ImGuiCol idx)" +defs["igGetStyleColorVec4"][1]["call_args"] = "(idx)" +defs["igGetStyleColorVec4"][1]["cimguiname"] = "igGetStyleColorVec4" +defs["igGetStyleColorVec4"][1]["defaults"] = {} +defs["igGetStyleColorVec4"][1]["funcname"] = "GetStyleColorVec4" +defs["igGetStyleColorVec4"][1]["location"] = "imgui:438" +defs["igGetStyleColorVec4"][1]["namespace"] = "ImGui" +defs["igGetStyleColorVec4"][1]["ov_cimguiname"] = "igGetStyleColorVec4" +defs["igGetStyleColorVec4"][1]["ret"] = "const ImVec4*" +defs["igGetStyleColorVec4"][1]["retref"] = "&" +defs["igGetStyleColorVec4"][1]["signature"] = "(ImGuiCol)" +defs["igGetStyleColorVec4"][1]["stname"] = "" +defs["igGetStyleColorVec4"]["(ImGuiCol)"] = defs["igGetStyleColorVec4"][1] +defs["igGetTextLineHeight"] = {} +defs["igGetTextLineHeight"][1] = {} +defs["igGetTextLineHeight"][1]["args"] = "()" +defs["igGetTextLineHeight"][1]["argsT"] = {} +defs["igGetTextLineHeight"][1]["argsoriginal"] = "()" +defs["igGetTextLineHeight"][1]["call_args"] = "()" +defs["igGetTextLineHeight"][1]["cimguiname"] = "igGetTextLineHeight" +defs["igGetTextLineHeight"][1]["defaults"] = {} +defs["igGetTextLineHeight"][1]["funcname"] = "GetTextLineHeight" +defs["igGetTextLineHeight"][1]["location"] = "imgui:466" +defs["igGetTextLineHeight"][1]["namespace"] = "ImGui" +defs["igGetTextLineHeight"][1]["ov_cimguiname"] = "igGetTextLineHeight" +defs["igGetTextLineHeight"][1]["ret"] = "float" +defs["igGetTextLineHeight"][1]["signature"] = "()" +defs["igGetTextLineHeight"][1]["stname"] = "" +defs["igGetTextLineHeight"]["()"] = defs["igGetTextLineHeight"][1] +defs["igGetTextLineHeightWithSpacing"] = {} +defs["igGetTextLineHeightWithSpacing"][1] = {} +defs["igGetTextLineHeightWithSpacing"][1]["args"] = "()" +defs["igGetTextLineHeightWithSpacing"][1]["argsT"] = {} +defs["igGetTextLineHeightWithSpacing"][1]["argsoriginal"] = "()" +defs["igGetTextLineHeightWithSpacing"][1]["call_args"] = "()" +defs["igGetTextLineHeightWithSpacing"][1]["cimguiname"] = "igGetTextLineHeightWithSpacing" +defs["igGetTextLineHeightWithSpacing"][1]["defaults"] = {} +defs["igGetTextLineHeightWithSpacing"][1]["funcname"] = "GetTextLineHeightWithSpacing" +defs["igGetTextLineHeightWithSpacing"][1]["location"] = "imgui:467" +defs["igGetTextLineHeightWithSpacing"][1]["namespace"] = "ImGui" +defs["igGetTextLineHeightWithSpacing"][1]["ov_cimguiname"] = "igGetTextLineHeightWithSpacing" +defs["igGetTextLineHeightWithSpacing"][1]["ret"] = "float" +defs["igGetTextLineHeightWithSpacing"][1]["signature"] = "()" +defs["igGetTextLineHeightWithSpacing"][1]["stname"] = "" +defs["igGetTextLineHeightWithSpacing"]["()"] = defs["igGetTextLineHeightWithSpacing"][1] +defs["igGetTime"] = {} +defs["igGetTime"][1] = {} +defs["igGetTime"][1]["args"] = "()" +defs["igGetTime"][1]["argsT"] = {} +defs["igGetTime"][1]["argsoriginal"] = "()" +defs["igGetTime"][1]["call_args"] = "()" +defs["igGetTime"][1]["cimguiname"] = "igGetTime" +defs["igGetTime"][1]["defaults"] = {} +defs["igGetTime"][1]["funcname"] = "GetTime" +defs["igGetTime"][1]["location"] = "imgui:898" +defs["igGetTime"][1]["namespace"] = "ImGui" +defs["igGetTime"][1]["ov_cimguiname"] = "igGetTime" +defs["igGetTime"][1]["ret"] = "double" +defs["igGetTime"][1]["signature"] = "()" +defs["igGetTime"][1]["stname"] = "" +defs["igGetTime"]["()"] = defs["igGetTime"][1] +defs["igGetTreeNodeToLabelSpacing"] = {} +defs["igGetTreeNodeToLabelSpacing"][1] = {} +defs["igGetTreeNodeToLabelSpacing"][1]["args"] = "()" +defs["igGetTreeNodeToLabelSpacing"][1]["argsT"] = {} +defs["igGetTreeNodeToLabelSpacing"][1]["argsoriginal"] = "()" +defs["igGetTreeNodeToLabelSpacing"][1]["call_args"] = "()" +defs["igGetTreeNodeToLabelSpacing"][1]["cimguiname"] = "igGetTreeNodeToLabelSpacing" +defs["igGetTreeNodeToLabelSpacing"][1]["defaults"] = {} +defs["igGetTreeNodeToLabelSpacing"][1]["funcname"] = "GetTreeNodeToLabelSpacing" +defs["igGetTreeNodeToLabelSpacing"][1]["location"] = "imgui:624" +defs["igGetTreeNodeToLabelSpacing"][1]["namespace"] = "ImGui" +defs["igGetTreeNodeToLabelSpacing"][1]["ov_cimguiname"] = "igGetTreeNodeToLabelSpacing" +defs["igGetTreeNodeToLabelSpacing"][1]["ret"] = "float" +defs["igGetTreeNodeToLabelSpacing"][1]["signature"] = "()" +defs["igGetTreeNodeToLabelSpacing"][1]["stname"] = "" +defs["igGetTreeNodeToLabelSpacing"]["()"] = defs["igGetTreeNodeToLabelSpacing"][1] +defs["igGetVersion"] = {} +defs["igGetVersion"][1] = {} +defs["igGetVersion"][1]["args"] = "()" +defs["igGetVersion"][1]["argsT"] = {} +defs["igGetVersion"][1]["argsoriginal"] = "()" +defs["igGetVersion"][1]["call_args"] = "()" +defs["igGetVersion"][1]["cimguiname"] = "igGetVersion" +defs["igGetVersion"][1]["defaults"] = {} +defs["igGetVersion"][1]["funcname"] = "GetVersion" +defs["igGetVersion"][1]["location"] = "imgui:317" +defs["igGetVersion"][1]["namespace"] = "ImGui" +defs["igGetVersion"][1]["ov_cimguiname"] = "igGetVersion" +defs["igGetVersion"][1]["ret"] = "const char*" +defs["igGetVersion"][1]["signature"] = "()" +defs["igGetVersion"][1]["stname"] = "" +defs["igGetVersion"]["()"] = defs["igGetVersion"][1] +defs["igGetWindowContentRegionMax"] = {} +defs["igGetWindowContentRegionMax"][1] = {} +defs["igGetWindowContentRegionMax"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetWindowContentRegionMax"][1]["argsT"] = {} +defs["igGetWindowContentRegionMax"][1]["argsT"][1] = {} +defs["igGetWindowContentRegionMax"][1]["argsT"][1]["name"] = "pOut" +defs["igGetWindowContentRegionMax"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetWindowContentRegionMax"][1]["argsoriginal"] = "()" +defs["igGetWindowContentRegionMax"][1]["call_args"] = "()" +defs["igGetWindowContentRegionMax"][1]["cimguiname"] = "igGetWindowContentRegionMax" +defs["igGetWindowContentRegionMax"][1]["defaults"] = {} +defs["igGetWindowContentRegionMax"][1]["funcname"] = "GetWindowContentRegionMax" +defs["igGetWindowContentRegionMax"][1]["location"] = "imgui:392" +defs["igGetWindowContentRegionMax"][1]["namespace"] = "ImGui" +defs["igGetWindowContentRegionMax"][1]["nonUDT"] = 1 +defs["igGetWindowContentRegionMax"][1]["ov_cimguiname"] = "igGetWindowContentRegionMax" +defs["igGetWindowContentRegionMax"][1]["ret"] = "void" +defs["igGetWindowContentRegionMax"][1]["signature"] = "()" +defs["igGetWindowContentRegionMax"][1]["stname"] = "" +defs["igGetWindowContentRegionMax"]["()"] = defs["igGetWindowContentRegionMax"][1] +defs["igGetWindowContentRegionMin"] = {} +defs["igGetWindowContentRegionMin"][1] = {} +defs["igGetWindowContentRegionMin"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetWindowContentRegionMin"][1]["argsT"] = {} +defs["igGetWindowContentRegionMin"][1]["argsT"][1] = {} +defs["igGetWindowContentRegionMin"][1]["argsT"][1]["name"] = "pOut" +defs["igGetWindowContentRegionMin"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetWindowContentRegionMin"][1]["argsoriginal"] = "()" +defs["igGetWindowContentRegionMin"][1]["call_args"] = "()" +defs["igGetWindowContentRegionMin"][1]["cimguiname"] = "igGetWindowContentRegionMin" +defs["igGetWindowContentRegionMin"][1]["defaults"] = {} +defs["igGetWindowContentRegionMin"][1]["funcname"] = "GetWindowContentRegionMin" +defs["igGetWindowContentRegionMin"][1]["location"] = "imgui:391" +defs["igGetWindowContentRegionMin"][1]["namespace"] = "ImGui" +defs["igGetWindowContentRegionMin"][1]["nonUDT"] = 1 +defs["igGetWindowContentRegionMin"][1]["ov_cimguiname"] = "igGetWindowContentRegionMin" +defs["igGetWindowContentRegionMin"][1]["ret"] = "void" +defs["igGetWindowContentRegionMin"][1]["signature"] = "()" +defs["igGetWindowContentRegionMin"][1]["stname"] = "" +defs["igGetWindowContentRegionMin"]["()"] = defs["igGetWindowContentRegionMin"][1] +defs["igGetWindowDockID"] = {} +defs["igGetWindowDockID"][1] = {} +defs["igGetWindowDockID"][1]["args"] = "()" +defs["igGetWindowDockID"][1]["argsT"] = {} +defs["igGetWindowDockID"][1]["argsoriginal"] = "()" +defs["igGetWindowDockID"][1]["call_args"] = "()" +defs["igGetWindowDockID"][1]["cimguiname"] = "igGetWindowDockID" +defs["igGetWindowDockID"][1]["defaults"] = {} +defs["igGetWindowDockID"][1]["funcname"] = "GetWindowDockID" +defs["igGetWindowDockID"][1]["location"] = "imgui:819" +defs["igGetWindowDockID"][1]["namespace"] = "ImGui" +defs["igGetWindowDockID"][1]["ov_cimguiname"] = "igGetWindowDockID" +defs["igGetWindowDockID"][1]["ret"] = "ImGuiID" +defs["igGetWindowDockID"][1]["signature"] = "()" +defs["igGetWindowDockID"][1]["stname"] = "" +defs["igGetWindowDockID"]["()"] = defs["igGetWindowDockID"][1] +defs["igGetWindowDpiScale"] = {} +defs["igGetWindowDpiScale"][1] = {} +defs["igGetWindowDpiScale"][1]["args"] = "()" +defs["igGetWindowDpiScale"][1]["argsT"] = {} +defs["igGetWindowDpiScale"][1]["argsoriginal"] = "()" +defs["igGetWindowDpiScale"][1]["call_args"] = "()" +defs["igGetWindowDpiScale"][1]["cimguiname"] = "igGetWindowDpiScale" +defs["igGetWindowDpiScale"][1]["defaults"] = {} +defs["igGetWindowDpiScale"][1]["funcname"] = "GetWindowDpiScale" +defs["igGetWindowDpiScale"][1]["location"] = "imgui:358" +defs["igGetWindowDpiScale"][1]["namespace"] = "ImGui" +defs["igGetWindowDpiScale"][1]["ov_cimguiname"] = "igGetWindowDpiScale" +defs["igGetWindowDpiScale"][1]["ret"] = "float" +defs["igGetWindowDpiScale"][1]["signature"] = "()" +defs["igGetWindowDpiScale"][1]["stname"] = "" +defs["igGetWindowDpiScale"]["()"] = defs["igGetWindowDpiScale"][1] +defs["igGetWindowDrawList"] = {} +defs["igGetWindowDrawList"][1] = {} +defs["igGetWindowDrawList"][1]["args"] = "()" +defs["igGetWindowDrawList"][1]["argsT"] = {} +defs["igGetWindowDrawList"][1]["argsoriginal"] = "()" +defs["igGetWindowDrawList"][1]["call_args"] = "()" +defs["igGetWindowDrawList"][1]["cimguiname"] = "igGetWindowDrawList" +defs["igGetWindowDrawList"][1]["defaults"] = {} +defs["igGetWindowDrawList"][1]["funcname"] = "GetWindowDrawList" +defs["igGetWindowDrawList"][1]["location"] = "imgui:357" +defs["igGetWindowDrawList"][1]["namespace"] = "ImGui" +defs["igGetWindowDrawList"][1]["ov_cimguiname"] = "igGetWindowDrawList" +defs["igGetWindowDrawList"][1]["ret"] = "ImDrawList*" +defs["igGetWindowDrawList"][1]["signature"] = "()" +defs["igGetWindowDrawList"][1]["stname"] = "" +defs["igGetWindowDrawList"]["()"] = defs["igGetWindowDrawList"][1] +defs["igGetWindowHeight"] = {} +defs["igGetWindowHeight"][1] = {} +defs["igGetWindowHeight"][1]["args"] = "()" +defs["igGetWindowHeight"][1]["argsT"] = {} +defs["igGetWindowHeight"][1]["argsoriginal"] = "()" +defs["igGetWindowHeight"][1]["call_args"] = "()" +defs["igGetWindowHeight"][1]["cimguiname"] = "igGetWindowHeight" +defs["igGetWindowHeight"][1]["defaults"] = {} +defs["igGetWindowHeight"][1]["funcname"] = "GetWindowHeight" +defs["igGetWindowHeight"][1]["location"] = "imgui:362" +defs["igGetWindowHeight"][1]["namespace"] = "ImGui" +defs["igGetWindowHeight"][1]["ov_cimguiname"] = "igGetWindowHeight" +defs["igGetWindowHeight"][1]["ret"] = "float" +defs["igGetWindowHeight"][1]["signature"] = "()" +defs["igGetWindowHeight"][1]["stname"] = "" +defs["igGetWindowHeight"]["()"] = defs["igGetWindowHeight"][1] +defs["igGetWindowPos"] = {} +defs["igGetWindowPos"][1] = {} +defs["igGetWindowPos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetWindowPos"][1]["argsT"] = {} +defs["igGetWindowPos"][1]["argsT"][1] = {} +defs["igGetWindowPos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetWindowPos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetWindowPos"][1]["argsoriginal"] = "()" +defs["igGetWindowPos"][1]["call_args"] = "()" +defs["igGetWindowPos"][1]["cimguiname"] = "igGetWindowPos" +defs["igGetWindowPos"][1]["defaults"] = {} +defs["igGetWindowPos"][1]["funcname"] = "GetWindowPos" +defs["igGetWindowPos"][1]["location"] = "imgui:359" +defs["igGetWindowPos"][1]["namespace"] = "ImGui" +defs["igGetWindowPos"][1]["nonUDT"] = 1 +defs["igGetWindowPos"][1]["ov_cimguiname"] = "igGetWindowPos" +defs["igGetWindowPos"][1]["ret"] = "void" +defs["igGetWindowPos"][1]["signature"] = "()" +defs["igGetWindowPos"][1]["stname"] = "" +defs["igGetWindowPos"]["()"] = defs["igGetWindowPos"][1] +defs["igGetWindowSize"] = {} +defs["igGetWindowSize"][1] = {} +defs["igGetWindowSize"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetWindowSize"][1]["argsT"] = {} +defs["igGetWindowSize"][1]["argsT"][1] = {} +defs["igGetWindowSize"][1]["argsT"][1]["name"] = "pOut" +defs["igGetWindowSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetWindowSize"][1]["argsoriginal"] = "()" +defs["igGetWindowSize"][1]["call_args"] = "()" +defs["igGetWindowSize"][1]["cimguiname"] = "igGetWindowSize" +defs["igGetWindowSize"][1]["defaults"] = {} +defs["igGetWindowSize"][1]["funcname"] = "GetWindowSize" +defs["igGetWindowSize"][1]["location"] = "imgui:360" +defs["igGetWindowSize"][1]["namespace"] = "ImGui" +defs["igGetWindowSize"][1]["nonUDT"] = 1 +defs["igGetWindowSize"][1]["ov_cimguiname"] = "igGetWindowSize" +defs["igGetWindowSize"][1]["ret"] = "void" +defs["igGetWindowSize"][1]["signature"] = "()" +defs["igGetWindowSize"][1]["stname"] = "" +defs["igGetWindowSize"]["()"] = defs["igGetWindowSize"][1] +defs["igGetWindowViewport"] = {} +defs["igGetWindowViewport"][1] = {} +defs["igGetWindowViewport"][1]["args"] = "()" +defs["igGetWindowViewport"][1]["argsT"] = {} +defs["igGetWindowViewport"][1]["argsoriginal"] = "()" +defs["igGetWindowViewport"][1]["call_args"] = "()" +defs["igGetWindowViewport"][1]["cimguiname"] = "igGetWindowViewport" +defs["igGetWindowViewport"][1]["defaults"] = {} +defs["igGetWindowViewport"][1]["funcname"] = "GetWindowViewport" +defs["igGetWindowViewport"][1]["location"] = "imgui:363" +defs["igGetWindowViewport"][1]["namespace"] = "ImGui" +defs["igGetWindowViewport"][1]["ov_cimguiname"] = "igGetWindowViewport" +defs["igGetWindowViewport"][1]["ret"] = "ImGuiViewport*" +defs["igGetWindowViewport"][1]["signature"] = "()" +defs["igGetWindowViewport"][1]["stname"] = "" +defs["igGetWindowViewport"]["()"] = defs["igGetWindowViewport"][1] +defs["igGetWindowWidth"] = {} +defs["igGetWindowWidth"][1] = {} +defs["igGetWindowWidth"][1]["args"] = "()" +defs["igGetWindowWidth"][1]["argsT"] = {} +defs["igGetWindowWidth"][1]["argsoriginal"] = "()" +defs["igGetWindowWidth"][1]["call_args"] = "()" +defs["igGetWindowWidth"][1]["cimguiname"] = "igGetWindowWidth" +defs["igGetWindowWidth"][1]["defaults"] = {} +defs["igGetWindowWidth"][1]["funcname"] = "GetWindowWidth" +defs["igGetWindowWidth"][1]["location"] = "imgui:361" +defs["igGetWindowWidth"][1]["namespace"] = "ImGui" +defs["igGetWindowWidth"][1]["ov_cimguiname"] = "igGetWindowWidth" +defs["igGetWindowWidth"][1]["ret"] = "float" +defs["igGetWindowWidth"][1]["signature"] = "()" +defs["igGetWindowWidth"][1]["stname"] = "" +defs["igGetWindowWidth"]["()"] = defs["igGetWindowWidth"][1] +defs["igImage"] = {} +defs["igImage"][1] = {} +defs["igImage"][1]["args"] = "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col)" +defs["igImage"][1]["argsT"] = {} +defs["igImage"][1]["argsT"][1] = {} +defs["igImage"][1]["argsT"][1]["name"] = "user_texture_id" +defs["igImage"][1]["argsT"][1]["type"] = "ImTextureID" +defs["igImage"][1]["argsT"][2] = {} +defs["igImage"][1]["argsT"][2]["name"] = "size" +defs["igImage"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImage"][1]["argsT"][3] = {} +defs["igImage"][1]["argsT"][3]["name"] = "uv0" +defs["igImage"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImage"][1]["argsT"][4] = {} +defs["igImage"][1]["argsT"][4]["name"] = "uv1" +defs["igImage"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImage"][1]["argsT"][5] = {} +defs["igImage"][1]["argsT"][5]["name"] = "tint_col" +defs["igImage"][1]["argsT"][5]["type"] = "const ImVec4" +defs["igImage"][1]["argsT"][6] = {} +defs["igImage"][1]["argsT"][6]["name"] = "border_col" +defs["igImage"][1]["argsT"][6]["type"] = "const ImVec4" +defs["igImage"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& tint_col=ImVec4(1,1,1,1),const ImVec4& border_col=ImVec4(0,0,0,0))" +defs["igImage"][1]["call_args"] = "(user_texture_id,size,uv0,uv1,tint_col,border_col)" +defs["igImage"][1]["cimguiname"] = "igImage" +defs["igImage"][1]["defaults"] = {} +defs["igImage"][1]["defaults"]["border_col"] = "ImVec4(0,0,0,0)" +defs["igImage"][1]["defaults"]["tint_col"] = "ImVec4(1,1,1,1)" +defs["igImage"][1]["defaults"]["uv0"] = "ImVec2(0,0)" +defs["igImage"][1]["defaults"]["uv1"] = "ImVec2(1,1)" +defs["igImage"][1]["funcname"] = "Image" +defs["igImage"][1]["location"] = "imgui:523" +defs["igImage"][1]["namespace"] = "ImGui" +defs["igImage"][1]["ov_cimguiname"] = "igImage" +defs["igImage"][1]["ret"] = "void" +defs["igImage"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" +defs["igImage"][1]["stname"] = "" +defs["igImage"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImage"][1] +defs["igImageButton"] = {} +defs["igImageButton"][1] = {} +defs["igImageButton"][1]["args"] = "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)" +defs["igImageButton"][1]["argsT"] = {} +defs["igImageButton"][1]["argsT"][1] = {} +defs["igImageButton"][1]["argsT"][1]["name"] = "str_id" +defs["igImageButton"][1]["argsT"][1]["type"] = "const char*" +defs["igImageButton"][1]["argsT"][2] = {} +defs["igImageButton"][1]["argsT"][2]["name"] = "user_texture_id" +defs["igImageButton"][1]["argsT"][2]["type"] = "ImTextureID" +defs["igImageButton"][1]["argsT"][3] = {} +defs["igImageButton"][1]["argsT"][3]["name"] = "size" +defs["igImageButton"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImageButton"][1]["argsT"][4] = {} +defs["igImageButton"][1]["argsT"][4]["name"] = "uv0" +defs["igImageButton"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImageButton"][1]["argsT"][5] = {} +defs["igImageButton"][1]["argsT"][5]["name"] = "uv1" +defs["igImageButton"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igImageButton"][1]["argsT"][6] = {} +defs["igImageButton"][1]["argsT"][6]["name"] = "bg_col" +defs["igImageButton"][1]["argsT"][6]["type"] = "const ImVec4" +defs["igImageButton"][1]["argsT"][7] = {} +defs["igImageButton"][1]["argsT"][7]["name"] = "tint_col" +defs["igImageButton"][1]["argsT"][7]["type"] = "const ImVec4" +defs["igImageButton"][1]["argsoriginal"] = "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))" +defs["igImageButton"][1]["call_args"] = "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)" +defs["igImageButton"][1]["cimguiname"] = "igImageButton" +defs["igImageButton"][1]["defaults"] = {} +defs["igImageButton"][1]["defaults"]["bg_col"] = "ImVec4(0,0,0,0)" +defs["igImageButton"][1]["defaults"]["tint_col"] = "ImVec4(1,1,1,1)" +defs["igImageButton"][1]["defaults"]["uv0"] = "ImVec2(0,0)" +defs["igImageButton"][1]["defaults"]["uv1"] = "ImVec2(1,1)" +defs["igImageButton"][1]["funcname"] = "ImageButton" +defs["igImageButton"][1]["location"] = "imgui:524" +defs["igImageButton"][1]["namespace"] = "ImGui" +defs["igImageButton"][1]["ov_cimguiname"] = "igImageButton" +defs["igImageButton"][1]["ret"] = "bool" +defs["igImageButton"][1]["signature"] = "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" +defs["igImageButton"][1]["stname"] = "" +defs["igImageButton"]["(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImageButton"][1] +defs["igIndent"] = {} +defs["igIndent"][1] = {} +defs["igIndent"][1]["args"] = "(float indent_w)" +defs["igIndent"][1]["argsT"] = {} +defs["igIndent"][1]["argsT"][1] = {} +defs["igIndent"][1]["argsT"][1]["name"] = "indent_w" +defs["igIndent"][1]["argsT"][1]["type"] = "float" +defs["igIndent"][1]["argsoriginal"] = "(float indent_w=0.0f)" +defs["igIndent"][1]["call_args"] = "(indent_w)" +defs["igIndent"][1]["cimguiname"] = "igIndent" +defs["igIndent"][1]["defaults"] = {} +defs["igIndent"][1]["defaults"]["indent_w"] = "0.0f" +defs["igIndent"][1]["funcname"] = "Indent" +defs["igIndent"][1]["location"] = "imgui:452" +defs["igIndent"][1]["namespace"] = "ImGui" +defs["igIndent"][1]["ov_cimguiname"] = "igIndent" +defs["igIndent"][1]["ret"] = "void" +defs["igIndent"][1]["signature"] = "(float)" +defs["igIndent"][1]["stname"] = "" +defs["igIndent"]["(float)"] = defs["igIndent"][1] +defs["igInputDouble"] = {} +defs["igInputDouble"][1] = {} +defs["igInputDouble"][1]["args"] = "(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags)" +defs["igInputDouble"][1]["argsT"] = {} +defs["igInputDouble"][1]["argsT"][1] = {} +defs["igInputDouble"][1]["argsT"][1]["name"] = "label" +defs["igInputDouble"][1]["argsT"][1]["type"] = "const char*" +defs["igInputDouble"][1]["argsT"][2] = {} +defs["igInputDouble"][1]["argsT"][2]["name"] = "v" +defs["igInputDouble"][1]["argsT"][2]["type"] = "double*" +defs["igInputDouble"][1]["argsT"][3] = {} +defs["igInputDouble"][1]["argsT"][3]["name"] = "step" +defs["igInputDouble"][1]["argsT"][3]["type"] = "double" +defs["igInputDouble"][1]["argsT"][4] = {} +defs["igInputDouble"][1]["argsT"][4]["name"] = "step_fast" +defs["igInputDouble"][1]["argsT"][4]["type"] = "double" +defs["igInputDouble"][1]["argsT"][5] = {} +defs["igInputDouble"][1]["argsT"][5]["name"] = "format" +defs["igInputDouble"][1]["argsT"][5]["type"] = "const char*" +defs["igInputDouble"][1]["argsT"][6] = {} +defs["igInputDouble"][1]["argsT"][6]["name"] = "flags" +defs["igInputDouble"][1]["argsT"][6]["type"] = "ImGuiInputTextFlags" +defs["igInputDouble"][1]["argsoriginal"] = "(const char* label,double* v,double step=0.0,double step_fast=0.0,const char* format=\"%.6f\",ImGuiInputTextFlags flags=0)" +defs["igInputDouble"][1]["call_args"] = "(label,v,step,step_fast,format,flags)" +defs["igInputDouble"][1]["cimguiname"] = "igInputDouble" +defs["igInputDouble"][1]["defaults"] = {} +defs["igInputDouble"][1]["defaults"]["flags"] = "0" +defs["igInputDouble"][1]["defaults"]["format"] = "\"%.6f\"" +defs["igInputDouble"][1]["defaults"]["step"] = "0.0" +defs["igInputDouble"][1]["defaults"]["step_fast"] = "0.0" +defs["igInputDouble"][1]["funcname"] = "InputDouble" +defs["igInputDouble"][1]["location"] = "imgui:595" +defs["igInputDouble"][1]["namespace"] = "ImGui" +defs["igInputDouble"][1]["ov_cimguiname"] = "igInputDouble" +defs["igInputDouble"][1]["ret"] = "bool" +defs["igInputDouble"][1]["signature"] = "(const char*,double*,double,double,const char*,ImGuiInputTextFlags)" +defs["igInputDouble"][1]["stname"] = "" +defs["igInputDouble"]["(const char*,double*,double,double,const char*,ImGuiInputTextFlags)"] = defs["igInputDouble"][1] +defs["igInputFloat"] = {} +defs["igInputFloat"][1] = {} +defs["igInputFloat"][1]["args"] = "(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags flags)" +defs["igInputFloat"][1]["argsT"] = {} +defs["igInputFloat"][1]["argsT"][1] = {} +defs["igInputFloat"][1]["argsT"][1]["name"] = "label" +defs["igInputFloat"][1]["argsT"][1]["type"] = "const char*" +defs["igInputFloat"][1]["argsT"][2] = {} +defs["igInputFloat"][1]["argsT"][2]["name"] = "v" +defs["igInputFloat"][1]["argsT"][2]["type"] = "float*" +defs["igInputFloat"][1]["argsT"][3] = {} +defs["igInputFloat"][1]["argsT"][3]["name"] = "step" +defs["igInputFloat"][1]["argsT"][3]["type"] = "float" +defs["igInputFloat"][1]["argsT"][4] = {} +defs["igInputFloat"][1]["argsT"][4]["name"] = "step_fast" +defs["igInputFloat"][1]["argsT"][4]["type"] = "float" +defs["igInputFloat"][1]["argsT"][5] = {} +defs["igInputFloat"][1]["argsT"][5]["name"] = "format" +defs["igInputFloat"][1]["argsT"][5]["type"] = "const char*" +defs["igInputFloat"][1]["argsT"][6] = {} +defs["igInputFloat"][1]["argsT"][6]["name"] = "flags" +defs["igInputFloat"][1]["argsT"][6]["type"] = "ImGuiInputTextFlags" +defs["igInputFloat"][1]["argsoriginal"] = "(const char* label,float* v,float step=0.0f,float step_fast=0.0f,const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)" +defs["igInputFloat"][1]["call_args"] = "(label,v,step,step_fast,format,flags)" +defs["igInputFloat"][1]["cimguiname"] = "igInputFloat" +defs["igInputFloat"][1]["defaults"] = {} +defs["igInputFloat"][1]["defaults"]["flags"] = "0" +defs["igInputFloat"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igInputFloat"][1]["defaults"]["step"] = "0.0f" +defs["igInputFloat"][1]["defaults"]["step_fast"] = "0.0f" +defs["igInputFloat"][1]["funcname"] = "InputFloat" +defs["igInputFloat"][1]["location"] = "imgui:587" +defs["igInputFloat"][1]["namespace"] = "ImGui" +defs["igInputFloat"][1]["ov_cimguiname"] = "igInputFloat" +defs["igInputFloat"][1]["ret"] = "bool" +defs["igInputFloat"][1]["signature"] = "(const char*,float*,float,float,const char*,ImGuiInputTextFlags)" +defs["igInputFloat"][1]["stname"] = "" +defs["igInputFloat"]["(const char*,float*,float,float,const char*,ImGuiInputTextFlags)"] = defs["igInputFloat"][1] +defs["igInputFloat2"] = {} +defs["igInputFloat2"][1] = {} +defs["igInputFloat2"][1]["args"] = "(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags)" +defs["igInputFloat2"][1]["argsT"] = {} +defs["igInputFloat2"][1]["argsT"][1] = {} +defs["igInputFloat2"][1]["argsT"][1]["name"] = "label" +defs["igInputFloat2"][1]["argsT"][1]["type"] = "const char*" +defs["igInputFloat2"][1]["argsT"][2] = {} +defs["igInputFloat2"][1]["argsT"][2]["name"] = "v" +defs["igInputFloat2"][1]["argsT"][2]["type"] = "float[2]" +defs["igInputFloat2"][1]["argsT"][3] = {} +defs["igInputFloat2"][1]["argsT"][3]["name"] = "format" +defs["igInputFloat2"][1]["argsT"][3]["type"] = "const char*" +defs["igInputFloat2"][1]["argsT"][4] = {} +defs["igInputFloat2"][1]["argsT"][4]["name"] = "flags" +defs["igInputFloat2"][1]["argsT"][4]["type"] = "ImGuiInputTextFlags" +defs["igInputFloat2"][1]["argsoriginal"] = "(const char* label,float v[2],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)" +defs["igInputFloat2"][1]["call_args"] = "(label,v,format,flags)" +defs["igInputFloat2"][1]["cimguiname"] = "igInputFloat2" +defs["igInputFloat2"][1]["defaults"] = {} +defs["igInputFloat2"][1]["defaults"]["flags"] = "0" +defs["igInputFloat2"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igInputFloat2"][1]["funcname"] = "InputFloat2" +defs["igInputFloat2"][1]["location"] = "imgui:588" +defs["igInputFloat2"][1]["namespace"] = "ImGui" +defs["igInputFloat2"][1]["ov_cimguiname"] = "igInputFloat2" +defs["igInputFloat2"][1]["ret"] = "bool" +defs["igInputFloat2"][1]["signature"] = "(const char*,float[2],const char*,ImGuiInputTextFlags)" +defs["igInputFloat2"][1]["stname"] = "" +defs["igInputFloat2"]["(const char*,float[2],const char*,ImGuiInputTextFlags)"] = defs["igInputFloat2"][1] +defs["igInputFloat3"] = {} +defs["igInputFloat3"][1] = {} +defs["igInputFloat3"][1]["args"] = "(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags)" +defs["igInputFloat3"][1]["argsT"] = {} +defs["igInputFloat3"][1]["argsT"][1] = {} +defs["igInputFloat3"][1]["argsT"][1]["name"] = "label" +defs["igInputFloat3"][1]["argsT"][1]["type"] = "const char*" +defs["igInputFloat3"][1]["argsT"][2] = {} +defs["igInputFloat3"][1]["argsT"][2]["name"] = "v" +defs["igInputFloat3"][1]["argsT"][2]["type"] = "float[3]" +defs["igInputFloat3"][1]["argsT"][3] = {} +defs["igInputFloat3"][1]["argsT"][3]["name"] = "format" +defs["igInputFloat3"][1]["argsT"][3]["type"] = "const char*" +defs["igInputFloat3"][1]["argsT"][4] = {} +defs["igInputFloat3"][1]["argsT"][4]["name"] = "flags" +defs["igInputFloat3"][1]["argsT"][4]["type"] = "ImGuiInputTextFlags" +defs["igInputFloat3"][1]["argsoriginal"] = "(const char* label,float v[3],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)" +defs["igInputFloat3"][1]["call_args"] = "(label,v,format,flags)" +defs["igInputFloat3"][1]["cimguiname"] = "igInputFloat3" +defs["igInputFloat3"][1]["defaults"] = {} +defs["igInputFloat3"][1]["defaults"]["flags"] = "0" +defs["igInputFloat3"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igInputFloat3"][1]["funcname"] = "InputFloat3" +defs["igInputFloat3"][1]["location"] = "imgui:589" +defs["igInputFloat3"][1]["namespace"] = "ImGui" +defs["igInputFloat3"][1]["ov_cimguiname"] = "igInputFloat3" +defs["igInputFloat3"][1]["ret"] = "bool" +defs["igInputFloat3"][1]["signature"] = "(const char*,float[3],const char*,ImGuiInputTextFlags)" +defs["igInputFloat3"][1]["stname"] = "" +defs["igInputFloat3"]["(const char*,float[3],const char*,ImGuiInputTextFlags)"] = defs["igInputFloat3"][1] +defs["igInputFloat4"] = {} +defs["igInputFloat4"][1] = {} +defs["igInputFloat4"][1]["args"] = "(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags)" +defs["igInputFloat4"][1]["argsT"] = {} +defs["igInputFloat4"][1]["argsT"][1] = {} +defs["igInputFloat4"][1]["argsT"][1]["name"] = "label" +defs["igInputFloat4"][1]["argsT"][1]["type"] = "const char*" +defs["igInputFloat4"][1]["argsT"][2] = {} +defs["igInputFloat4"][1]["argsT"][2]["name"] = "v" +defs["igInputFloat4"][1]["argsT"][2]["type"] = "float[4]" +defs["igInputFloat4"][1]["argsT"][3] = {} +defs["igInputFloat4"][1]["argsT"][3]["name"] = "format" +defs["igInputFloat4"][1]["argsT"][3]["type"] = "const char*" +defs["igInputFloat4"][1]["argsT"][4] = {} +defs["igInputFloat4"][1]["argsT"][4]["name"] = "flags" +defs["igInputFloat4"][1]["argsT"][4]["type"] = "ImGuiInputTextFlags" +defs["igInputFloat4"][1]["argsoriginal"] = "(const char* label,float v[4],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)" +defs["igInputFloat4"][1]["call_args"] = "(label,v,format,flags)" +defs["igInputFloat4"][1]["cimguiname"] = "igInputFloat4" +defs["igInputFloat4"][1]["defaults"] = {} +defs["igInputFloat4"][1]["defaults"]["flags"] = "0" +defs["igInputFloat4"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igInputFloat4"][1]["funcname"] = "InputFloat4" +defs["igInputFloat4"][1]["location"] = "imgui:590" +defs["igInputFloat4"][1]["namespace"] = "ImGui" +defs["igInputFloat4"][1]["ov_cimguiname"] = "igInputFloat4" +defs["igInputFloat4"][1]["ret"] = "bool" +defs["igInputFloat4"][1]["signature"] = "(const char*,float[4],const char*,ImGuiInputTextFlags)" +defs["igInputFloat4"][1]["stname"] = "" +defs["igInputFloat4"]["(const char*,float[4],const char*,ImGuiInputTextFlags)"] = defs["igInputFloat4"][1] +defs["igInputInt"] = {} +defs["igInputInt"][1] = {} +defs["igInputInt"][1]["args"] = "(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags)" +defs["igInputInt"][1]["argsT"] = {} +defs["igInputInt"][1]["argsT"][1] = {} +defs["igInputInt"][1]["argsT"][1]["name"] = "label" +defs["igInputInt"][1]["argsT"][1]["type"] = "const char*" +defs["igInputInt"][1]["argsT"][2] = {} +defs["igInputInt"][1]["argsT"][2]["name"] = "v" +defs["igInputInt"][1]["argsT"][2]["type"] = "int*" +defs["igInputInt"][1]["argsT"][3] = {} +defs["igInputInt"][1]["argsT"][3]["name"] = "step" +defs["igInputInt"][1]["argsT"][3]["type"] = "int" +defs["igInputInt"][1]["argsT"][4] = {} +defs["igInputInt"][1]["argsT"][4]["name"] = "step_fast" +defs["igInputInt"][1]["argsT"][4]["type"] = "int" +defs["igInputInt"][1]["argsT"][5] = {} +defs["igInputInt"][1]["argsT"][5]["name"] = "flags" +defs["igInputInt"][1]["argsT"][5]["type"] = "ImGuiInputTextFlags" +defs["igInputInt"][1]["argsoriginal"] = "(const char* label,int* v,int step=1,int step_fast=100,ImGuiInputTextFlags flags=0)" +defs["igInputInt"][1]["call_args"] = "(label,v,step,step_fast,flags)" +defs["igInputInt"][1]["cimguiname"] = "igInputInt" +defs["igInputInt"][1]["defaults"] = {} +defs["igInputInt"][1]["defaults"]["flags"] = "0" +defs["igInputInt"][1]["defaults"]["step"] = "1" +defs["igInputInt"][1]["defaults"]["step_fast"] = "100" +defs["igInputInt"][1]["funcname"] = "InputInt" +defs["igInputInt"][1]["location"] = "imgui:591" +defs["igInputInt"][1]["namespace"] = "ImGui" +defs["igInputInt"][1]["ov_cimguiname"] = "igInputInt" +defs["igInputInt"][1]["ret"] = "bool" +defs["igInputInt"][1]["signature"] = "(const char*,int*,int,int,ImGuiInputTextFlags)" +defs["igInputInt"][1]["stname"] = "" +defs["igInputInt"]["(const char*,int*,int,int,ImGuiInputTextFlags)"] = defs["igInputInt"][1] +defs["igInputInt2"] = {} +defs["igInputInt2"][1] = {} +defs["igInputInt2"][1]["args"] = "(const char* label,int v[2],ImGuiInputTextFlags flags)" +defs["igInputInt2"][1]["argsT"] = {} +defs["igInputInt2"][1]["argsT"][1] = {} +defs["igInputInt2"][1]["argsT"][1]["name"] = "label" +defs["igInputInt2"][1]["argsT"][1]["type"] = "const char*" +defs["igInputInt2"][1]["argsT"][2] = {} +defs["igInputInt2"][1]["argsT"][2]["name"] = "v" +defs["igInputInt2"][1]["argsT"][2]["type"] = "int[2]" +defs["igInputInt2"][1]["argsT"][3] = {} +defs["igInputInt2"][1]["argsT"][3]["name"] = "flags" +defs["igInputInt2"][1]["argsT"][3]["type"] = "ImGuiInputTextFlags" +defs["igInputInt2"][1]["argsoriginal"] = "(const char* label,int v[2],ImGuiInputTextFlags flags=0)" +defs["igInputInt2"][1]["call_args"] = "(label,v,flags)" +defs["igInputInt2"][1]["cimguiname"] = "igInputInt2" +defs["igInputInt2"][1]["defaults"] = {} +defs["igInputInt2"][1]["defaults"]["flags"] = "0" +defs["igInputInt2"][1]["funcname"] = "InputInt2" +defs["igInputInt2"][1]["location"] = "imgui:592" +defs["igInputInt2"][1]["namespace"] = "ImGui" +defs["igInputInt2"][1]["ov_cimguiname"] = "igInputInt2" +defs["igInputInt2"][1]["ret"] = "bool" +defs["igInputInt2"][1]["signature"] = "(const char*,int[2],ImGuiInputTextFlags)" +defs["igInputInt2"][1]["stname"] = "" +defs["igInputInt2"]["(const char*,int[2],ImGuiInputTextFlags)"] = defs["igInputInt2"][1] +defs["igInputInt3"] = {} +defs["igInputInt3"][1] = {} +defs["igInputInt3"][1]["args"] = "(const char* label,int v[3],ImGuiInputTextFlags flags)" +defs["igInputInt3"][1]["argsT"] = {} +defs["igInputInt3"][1]["argsT"][1] = {} +defs["igInputInt3"][1]["argsT"][1]["name"] = "label" +defs["igInputInt3"][1]["argsT"][1]["type"] = "const char*" +defs["igInputInt3"][1]["argsT"][2] = {} +defs["igInputInt3"][1]["argsT"][2]["name"] = "v" +defs["igInputInt3"][1]["argsT"][2]["type"] = "int[3]" +defs["igInputInt3"][1]["argsT"][3] = {} +defs["igInputInt3"][1]["argsT"][3]["name"] = "flags" +defs["igInputInt3"][1]["argsT"][3]["type"] = "ImGuiInputTextFlags" +defs["igInputInt3"][1]["argsoriginal"] = "(const char* label,int v[3],ImGuiInputTextFlags flags=0)" +defs["igInputInt3"][1]["call_args"] = "(label,v,flags)" +defs["igInputInt3"][1]["cimguiname"] = "igInputInt3" +defs["igInputInt3"][1]["defaults"] = {} +defs["igInputInt3"][1]["defaults"]["flags"] = "0" +defs["igInputInt3"][1]["funcname"] = "InputInt3" +defs["igInputInt3"][1]["location"] = "imgui:593" +defs["igInputInt3"][1]["namespace"] = "ImGui" +defs["igInputInt3"][1]["ov_cimguiname"] = "igInputInt3" +defs["igInputInt3"][1]["ret"] = "bool" +defs["igInputInt3"][1]["signature"] = "(const char*,int[3],ImGuiInputTextFlags)" +defs["igInputInt3"][1]["stname"] = "" +defs["igInputInt3"]["(const char*,int[3],ImGuiInputTextFlags)"] = defs["igInputInt3"][1] +defs["igInputInt4"] = {} +defs["igInputInt4"][1] = {} +defs["igInputInt4"][1]["args"] = "(const char* label,int v[4],ImGuiInputTextFlags flags)" +defs["igInputInt4"][1]["argsT"] = {} +defs["igInputInt4"][1]["argsT"][1] = {} +defs["igInputInt4"][1]["argsT"][1]["name"] = "label" +defs["igInputInt4"][1]["argsT"][1]["type"] = "const char*" +defs["igInputInt4"][1]["argsT"][2] = {} +defs["igInputInt4"][1]["argsT"][2]["name"] = "v" +defs["igInputInt4"][1]["argsT"][2]["type"] = "int[4]" +defs["igInputInt4"][1]["argsT"][3] = {} +defs["igInputInt4"][1]["argsT"][3]["name"] = "flags" +defs["igInputInt4"][1]["argsT"][3]["type"] = "ImGuiInputTextFlags" +defs["igInputInt4"][1]["argsoriginal"] = "(const char* label,int v[4],ImGuiInputTextFlags flags=0)" +defs["igInputInt4"][1]["call_args"] = "(label,v,flags)" +defs["igInputInt4"][1]["cimguiname"] = "igInputInt4" +defs["igInputInt4"][1]["defaults"] = {} +defs["igInputInt4"][1]["defaults"]["flags"] = "0" +defs["igInputInt4"][1]["funcname"] = "InputInt4" +defs["igInputInt4"][1]["location"] = "imgui:594" +defs["igInputInt4"][1]["namespace"] = "ImGui" +defs["igInputInt4"][1]["ov_cimguiname"] = "igInputInt4" +defs["igInputInt4"][1]["ret"] = "bool" +defs["igInputInt4"][1]["signature"] = "(const char*,int[4],ImGuiInputTextFlags)" +defs["igInputInt4"][1]["stname"] = "" +defs["igInputInt4"]["(const char*,int[4],ImGuiInputTextFlags)"] = defs["igInputInt4"][1] +defs["igInputScalar"] = {} +defs["igInputScalar"][1] = {} +defs["igInputScalar"][1]["args"] = "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step,const void* p_step_fast,const char* format,ImGuiInputTextFlags flags)" +defs["igInputScalar"][1]["argsT"] = {} +defs["igInputScalar"][1]["argsT"][1] = {} +defs["igInputScalar"][1]["argsT"][1]["name"] = "label" +defs["igInputScalar"][1]["argsT"][1]["type"] = "const char*" +defs["igInputScalar"][1]["argsT"][2] = {} +defs["igInputScalar"][1]["argsT"][2]["name"] = "data_type" +defs["igInputScalar"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igInputScalar"][1]["argsT"][3] = {} +defs["igInputScalar"][1]["argsT"][3]["name"] = "p_data" +defs["igInputScalar"][1]["argsT"][3]["type"] = "void*" +defs["igInputScalar"][1]["argsT"][4] = {} +defs["igInputScalar"][1]["argsT"][4]["name"] = "p_step" +defs["igInputScalar"][1]["argsT"][4]["type"] = "const void*" +defs["igInputScalar"][1]["argsT"][5] = {} +defs["igInputScalar"][1]["argsT"][5]["name"] = "p_step_fast" +defs["igInputScalar"][1]["argsT"][5]["type"] = "const void*" +defs["igInputScalar"][1]["argsT"][6] = {} +defs["igInputScalar"][1]["argsT"][6]["name"] = "format" +defs["igInputScalar"][1]["argsT"][6]["type"] = "const char*" +defs["igInputScalar"][1]["argsT"][7] = {} +defs["igInputScalar"][1]["argsT"][7]["name"] = "flags" +defs["igInputScalar"][1]["argsT"][7]["type"] = "ImGuiInputTextFlags" +defs["igInputScalar"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)" +defs["igInputScalar"][1]["call_args"] = "(label,data_type,p_data,p_step,p_step_fast,format,flags)" +defs["igInputScalar"][1]["cimguiname"] = "igInputScalar" +defs["igInputScalar"][1]["defaults"] = {} +defs["igInputScalar"][1]["defaults"]["flags"] = "0" +defs["igInputScalar"][1]["defaults"]["format"] = "NULL" +defs["igInputScalar"][1]["defaults"]["p_step"] = "NULL" +defs["igInputScalar"][1]["defaults"]["p_step_fast"] = "NULL" +defs["igInputScalar"][1]["funcname"] = "InputScalar" +defs["igInputScalar"][1]["location"] = "imgui:596" +defs["igInputScalar"][1]["namespace"] = "ImGui" +defs["igInputScalar"][1]["ov_cimguiname"] = "igInputScalar" +defs["igInputScalar"][1]["ret"] = "bool" +defs["igInputScalar"][1]["signature"] = "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiInputTextFlags)" +defs["igInputScalar"][1]["stname"] = "" +defs["igInputScalar"]["(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiInputTextFlags)"] = defs["igInputScalar"][1] +defs["igInputScalarN"] = {} +defs["igInputScalarN"][1] = {} +defs["igInputScalarN"][1]["args"] = "(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)" +defs["igInputScalarN"][1]["argsT"] = {} +defs["igInputScalarN"][1]["argsT"][1] = {} +defs["igInputScalarN"][1]["argsT"][1]["name"] = "label" +defs["igInputScalarN"][1]["argsT"][1]["type"] = "const char*" +defs["igInputScalarN"][1]["argsT"][2] = {} +defs["igInputScalarN"][1]["argsT"][2]["name"] = "data_type" +defs["igInputScalarN"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igInputScalarN"][1]["argsT"][3] = {} +defs["igInputScalarN"][1]["argsT"][3]["name"] = "p_data" +defs["igInputScalarN"][1]["argsT"][3]["type"] = "void*" +defs["igInputScalarN"][1]["argsT"][4] = {} +defs["igInputScalarN"][1]["argsT"][4]["name"] = "components" +defs["igInputScalarN"][1]["argsT"][4]["type"] = "int" +defs["igInputScalarN"][1]["argsT"][5] = {} +defs["igInputScalarN"][1]["argsT"][5]["name"] = "p_step" +defs["igInputScalarN"][1]["argsT"][5]["type"] = "const void*" +defs["igInputScalarN"][1]["argsT"][6] = {} +defs["igInputScalarN"][1]["argsT"][6]["name"] = "p_step_fast" +defs["igInputScalarN"][1]["argsT"][6]["type"] = "const void*" +defs["igInputScalarN"][1]["argsT"][7] = {} +defs["igInputScalarN"][1]["argsT"][7]["name"] = "format" +defs["igInputScalarN"][1]["argsT"][7]["type"] = "const char*" +defs["igInputScalarN"][1]["argsT"][8] = {} +defs["igInputScalarN"][1]["argsT"][8]["name"] = "flags" +defs["igInputScalarN"][1]["argsT"][8]["type"] = "ImGuiInputTextFlags" +defs["igInputScalarN"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)" +defs["igInputScalarN"][1]["call_args"] = "(label,data_type,p_data,components,p_step,p_step_fast,format,flags)" +defs["igInputScalarN"][1]["cimguiname"] = "igInputScalarN" +defs["igInputScalarN"][1]["defaults"] = {} +defs["igInputScalarN"][1]["defaults"]["flags"] = "0" +defs["igInputScalarN"][1]["defaults"]["format"] = "NULL" +defs["igInputScalarN"][1]["defaults"]["p_step"] = "NULL" +defs["igInputScalarN"][1]["defaults"]["p_step_fast"] = "NULL" +defs["igInputScalarN"][1]["funcname"] = "InputScalarN" +defs["igInputScalarN"][1]["location"] = "imgui:597" +defs["igInputScalarN"][1]["namespace"] = "ImGui" +defs["igInputScalarN"][1]["ov_cimguiname"] = "igInputScalarN" +defs["igInputScalarN"][1]["ret"] = "bool" +defs["igInputScalarN"][1]["signature"] = "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiInputTextFlags)" +defs["igInputScalarN"][1]["stname"] = "" +defs["igInputScalarN"]["(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiInputTextFlags)"] = defs["igInputScalarN"][1] +defs["igInputText"] = {} +defs["igInputText"][1] = {} +defs["igInputText"][1]["args"] = "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)" +defs["igInputText"][1]["argsT"] = {} +defs["igInputText"][1]["argsT"][1] = {} +defs["igInputText"][1]["argsT"][1]["name"] = "label" +defs["igInputText"][1]["argsT"][1]["type"] = "const char*" +defs["igInputText"][1]["argsT"][2] = {} +defs["igInputText"][1]["argsT"][2]["name"] = "buf" +defs["igInputText"][1]["argsT"][2]["type"] = "char*" +defs["igInputText"][1]["argsT"][3] = {} +defs["igInputText"][1]["argsT"][3]["name"] = "buf_size" +defs["igInputText"][1]["argsT"][3]["type"] = "size_t" +defs["igInputText"][1]["argsT"][4] = {} +defs["igInputText"][1]["argsT"][4]["name"] = "flags" +defs["igInputText"][1]["argsT"][4]["type"] = "ImGuiInputTextFlags" +defs["igInputText"][1]["argsT"][5] = {} +defs["igInputText"][1]["argsT"][5]["name"] = "callback" +defs["igInputText"][1]["argsT"][5]["type"] = "ImGuiInputTextCallback" +defs["igInputText"][1]["argsT"][6] = {} +defs["igInputText"][1]["argsT"][6]["name"] = "user_data" +defs["igInputText"][1]["argsT"][6]["type"] = "void*" +defs["igInputText"][1]["argsoriginal"] = "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))" +defs["igInputText"][1]["call_args"] = "(label,buf,buf_size,flags,callback,user_data)" +defs["igInputText"][1]["cimguiname"] = "igInputText" +defs["igInputText"][1]["defaults"] = {} +defs["igInputText"][1]["defaults"]["callback"] = "NULL" +defs["igInputText"][1]["defaults"]["flags"] = "0" +defs["igInputText"][1]["defaults"]["user_data"] = "NULL" +defs["igInputText"][1]["funcname"] = "InputText" +defs["igInputText"][1]["location"] = "imgui:584" +defs["igInputText"][1]["namespace"] = "ImGui" +defs["igInputText"][1]["ov_cimguiname"] = "igInputText" +defs["igInputText"][1]["ret"] = "bool" +defs["igInputText"][1]["signature"] = "(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)" +defs["igInputText"][1]["stname"] = "" +defs["igInputText"]["(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)"] = defs["igInputText"][1] +defs["igInputTextMultiline"] = {} +defs["igInputTextMultiline"][1] = {} +defs["igInputTextMultiline"][1]["args"] = "(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)" +defs["igInputTextMultiline"][1]["argsT"] = {} +defs["igInputTextMultiline"][1]["argsT"][1] = {} +defs["igInputTextMultiline"][1]["argsT"][1]["name"] = "label" +defs["igInputTextMultiline"][1]["argsT"][1]["type"] = "const char*" +defs["igInputTextMultiline"][1]["argsT"][2] = {} +defs["igInputTextMultiline"][1]["argsT"][2]["name"] = "buf" +defs["igInputTextMultiline"][1]["argsT"][2]["type"] = "char*" +defs["igInputTextMultiline"][1]["argsT"][3] = {} +defs["igInputTextMultiline"][1]["argsT"][3]["name"] = "buf_size" +defs["igInputTextMultiline"][1]["argsT"][3]["type"] = "size_t" +defs["igInputTextMultiline"][1]["argsT"][4] = {} +defs["igInputTextMultiline"][1]["argsT"][4]["name"] = "size" +defs["igInputTextMultiline"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igInputTextMultiline"][1]["argsT"][5] = {} +defs["igInputTextMultiline"][1]["argsT"][5]["name"] = "flags" +defs["igInputTextMultiline"][1]["argsT"][5]["type"] = "ImGuiInputTextFlags" +defs["igInputTextMultiline"][1]["argsT"][6] = {} +defs["igInputTextMultiline"][1]["argsT"][6]["name"] = "callback" +defs["igInputTextMultiline"][1]["argsT"][6]["type"] = "ImGuiInputTextCallback" +defs["igInputTextMultiline"][1]["argsT"][7] = {} +defs["igInputTextMultiline"][1]["argsT"][7]["name"] = "user_data" +defs["igInputTextMultiline"][1]["argsT"][7]["type"] = "void*" +defs["igInputTextMultiline"][1]["argsoriginal"] = "(const char* label,char* buf,size_t buf_size,const ImVec2& size=ImVec2(0,0),ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))" +defs["igInputTextMultiline"][1]["call_args"] = "(label,buf,buf_size,size,flags,callback,user_data)" +defs["igInputTextMultiline"][1]["cimguiname"] = "igInputTextMultiline" +defs["igInputTextMultiline"][1]["defaults"] = {} +defs["igInputTextMultiline"][1]["defaults"]["callback"] = "NULL" +defs["igInputTextMultiline"][1]["defaults"]["flags"] = "0" +defs["igInputTextMultiline"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igInputTextMultiline"][1]["defaults"]["user_data"] = "NULL" +defs["igInputTextMultiline"][1]["funcname"] = "InputTextMultiline" +defs["igInputTextMultiline"][1]["location"] = "imgui:585" +defs["igInputTextMultiline"][1]["namespace"] = "ImGui" +defs["igInputTextMultiline"][1]["ov_cimguiname"] = "igInputTextMultiline" +defs["igInputTextMultiline"][1]["ret"] = "bool" +defs["igInputTextMultiline"][1]["signature"] = "(const char*,char*,size_t,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)" +defs["igInputTextMultiline"][1]["stname"] = "" +defs["igInputTextMultiline"]["(const char*,char*,size_t,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)"] = defs["igInputTextMultiline"][1] +defs["igInputTextWithHint"] = {} +defs["igInputTextWithHint"][1] = {} +defs["igInputTextWithHint"][1]["args"] = "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)" +defs["igInputTextWithHint"][1]["argsT"] = {} +defs["igInputTextWithHint"][1]["argsT"][1] = {} +defs["igInputTextWithHint"][1]["argsT"][1]["name"] = "label" +defs["igInputTextWithHint"][1]["argsT"][1]["type"] = "const char*" +defs["igInputTextWithHint"][1]["argsT"][2] = {} +defs["igInputTextWithHint"][1]["argsT"][2]["name"] = "hint" +defs["igInputTextWithHint"][1]["argsT"][2]["type"] = "const char*" +defs["igInputTextWithHint"][1]["argsT"][3] = {} +defs["igInputTextWithHint"][1]["argsT"][3]["name"] = "buf" +defs["igInputTextWithHint"][1]["argsT"][3]["type"] = "char*" +defs["igInputTextWithHint"][1]["argsT"][4] = {} +defs["igInputTextWithHint"][1]["argsT"][4]["name"] = "buf_size" +defs["igInputTextWithHint"][1]["argsT"][4]["type"] = "size_t" +defs["igInputTextWithHint"][1]["argsT"][5] = {} +defs["igInputTextWithHint"][1]["argsT"][5]["name"] = "flags" +defs["igInputTextWithHint"][1]["argsT"][5]["type"] = "ImGuiInputTextFlags" +defs["igInputTextWithHint"][1]["argsT"][6] = {} +defs["igInputTextWithHint"][1]["argsT"][6]["name"] = "callback" +defs["igInputTextWithHint"][1]["argsT"][6]["type"] = "ImGuiInputTextCallback" +defs["igInputTextWithHint"][1]["argsT"][7] = {} +defs["igInputTextWithHint"][1]["argsT"][7]["name"] = "user_data" +defs["igInputTextWithHint"][1]["argsT"][7]["type"] = "void*" +defs["igInputTextWithHint"][1]["argsoriginal"] = "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))" +defs["igInputTextWithHint"][1]["call_args"] = "(label,hint,buf,buf_size,flags,callback,user_data)" +defs["igInputTextWithHint"][1]["cimguiname"] = "igInputTextWithHint" +defs["igInputTextWithHint"][1]["defaults"] = {} +defs["igInputTextWithHint"][1]["defaults"]["callback"] = "NULL" +defs["igInputTextWithHint"][1]["defaults"]["flags"] = "0" +defs["igInputTextWithHint"][1]["defaults"]["user_data"] = "NULL" +defs["igInputTextWithHint"][1]["funcname"] = "InputTextWithHint" +defs["igInputTextWithHint"][1]["location"] = "imgui:586" +defs["igInputTextWithHint"][1]["namespace"] = "ImGui" +defs["igInputTextWithHint"][1]["ov_cimguiname"] = "igInputTextWithHint" +defs["igInputTextWithHint"][1]["ret"] = "bool" +defs["igInputTextWithHint"][1]["signature"] = "(const char*,const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)" +defs["igInputTextWithHint"][1]["stname"] = "" +defs["igInputTextWithHint"]["(const char*,const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)"] = defs["igInputTextWithHint"][1] +defs["igInvisibleButton"] = {} +defs["igInvisibleButton"][1] = {} +defs["igInvisibleButton"][1]["args"] = "(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags)" +defs["igInvisibleButton"][1]["argsT"] = {} +defs["igInvisibleButton"][1]["argsT"][1] = {} +defs["igInvisibleButton"][1]["argsT"][1]["name"] = "str_id" +defs["igInvisibleButton"][1]["argsT"][1]["type"] = "const char*" +defs["igInvisibleButton"][1]["argsT"][2] = {} +defs["igInvisibleButton"][1]["argsT"][2]["name"] = "size" +defs["igInvisibleButton"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igInvisibleButton"][1]["argsT"][3] = {} +defs["igInvisibleButton"][1]["argsT"][3]["name"] = "flags" +defs["igInvisibleButton"][1]["argsT"][3]["type"] = "ImGuiButtonFlags" +defs["igInvisibleButton"][1]["argsoriginal"] = "(const char* str_id,const ImVec2& size,ImGuiButtonFlags flags=0)" +defs["igInvisibleButton"][1]["call_args"] = "(str_id,size,flags)" +defs["igInvisibleButton"][1]["cimguiname"] = "igInvisibleButton" +defs["igInvisibleButton"][1]["defaults"] = {} +defs["igInvisibleButton"][1]["defaults"]["flags"] = "0" +defs["igInvisibleButton"][1]["funcname"] = "InvisibleButton" +defs["igInvisibleButton"][1]["location"] = "imgui:511" +defs["igInvisibleButton"][1]["namespace"] = "ImGui" +defs["igInvisibleButton"][1]["ov_cimguiname"] = "igInvisibleButton" +defs["igInvisibleButton"][1]["ret"] = "bool" +defs["igInvisibleButton"][1]["signature"] = "(const char*,const ImVec2,ImGuiButtonFlags)" +defs["igInvisibleButton"][1]["stname"] = "" +defs["igInvisibleButton"]["(const char*,const ImVec2,ImGuiButtonFlags)"] = defs["igInvisibleButton"][1] +defs["igIsAnyItemActive"] = {} +defs["igIsAnyItemActive"][1] = {} +defs["igIsAnyItemActive"][1]["args"] = "()" +defs["igIsAnyItemActive"][1]["argsT"] = {} +defs["igIsAnyItemActive"][1]["argsoriginal"] = "()" +defs["igIsAnyItemActive"][1]["call_args"] = "()" +defs["igIsAnyItemActive"][1]["cimguiname"] = "igIsAnyItemActive" +defs["igIsAnyItemActive"][1]["defaults"] = {} +defs["igIsAnyItemActive"][1]["funcname"] = "IsAnyItemActive" +defs["igIsAnyItemActive"][1]["location"] = "imgui:876" +defs["igIsAnyItemActive"][1]["namespace"] = "ImGui" +defs["igIsAnyItemActive"][1]["ov_cimguiname"] = "igIsAnyItemActive" +defs["igIsAnyItemActive"][1]["ret"] = "bool" +defs["igIsAnyItemActive"][1]["signature"] = "()" +defs["igIsAnyItemActive"][1]["stname"] = "" +defs["igIsAnyItemActive"]["()"] = defs["igIsAnyItemActive"][1] +defs["igIsAnyItemFocused"] = {} +defs["igIsAnyItemFocused"][1] = {} +defs["igIsAnyItemFocused"][1]["args"] = "()" +defs["igIsAnyItemFocused"][1]["argsT"] = {} +defs["igIsAnyItemFocused"][1]["argsoriginal"] = "()" +defs["igIsAnyItemFocused"][1]["call_args"] = "()" +defs["igIsAnyItemFocused"][1]["cimguiname"] = "igIsAnyItemFocused" +defs["igIsAnyItemFocused"][1]["defaults"] = {} +defs["igIsAnyItemFocused"][1]["funcname"] = "IsAnyItemFocused" +defs["igIsAnyItemFocused"][1]["location"] = "imgui:877" +defs["igIsAnyItemFocused"][1]["namespace"] = "ImGui" +defs["igIsAnyItemFocused"][1]["ov_cimguiname"] = "igIsAnyItemFocused" +defs["igIsAnyItemFocused"][1]["ret"] = "bool" +defs["igIsAnyItemFocused"][1]["signature"] = "()" +defs["igIsAnyItemFocused"][1]["stname"] = "" +defs["igIsAnyItemFocused"]["()"] = defs["igIsAnyItemFocused"][1] +defs["igIsAnyItemHovered"] = {} +defs["igIsAnyItemHovered"][1] = {} +defs["igIsAnyItemHovered"][1]["args"] = "()" +defs["igIsAnyItemHovered"][1]["argsT"] = {} +defs["igIsAnyItemHovered"][1]["argsoriginal"] = "()" +defs["igIsAnyItemHovered"][1]["call_args"] = "()" +defs["igIsAnyItemHovered"][1]["cimguiname"] = "igIsAnyItemHovered" +defs["igIsAnyItemHovered"][1]["defaults"] = {} +defs["igIsAnyItemHovered"][1]["funcname"] = "IsAnyItemHovered" +defs["igIsAnyItemHovered"][1]["location"] = "imgui:875" +defs["igIsAnyItemHovered"][1]["namespace"] = "ImGui" +defs["igIsAnyItemHovered"][1]["ov_cimguiname"] = "igIsAnyItemHovered" +defs["igIsAnyItemHovered"][1]["ret"] = "bool" +defs["igIsAnyItemHovered"][1]["signature"] = "()" +defs["igIsAnyItemHovered"][1]["stname"] = "" +defs["igIsAnyItemHovered"]["()"] = defs["igIsAnyItemHovered"][1] +defs["igIsAnyMouseDown"] = {} +defs["igIsAnyMouseDown"][1] = {} +defs["igIsAnyMouseDown"][1]["args"] = "()" +defs["igIsAnyMouseDown"][1]["argsT"] = {} +defs["igIsAnyMouseDown"][1]["argsoriginal"] = "()" +defs["igIsAnyMouseDown"][1]["call_args"] = "()" +defs["igIsAnyMouseDown"][1]["cimguiname"] = "igIsAnyMouseDown" +defs["igIsAnyMouseDown"][1]["defaults"] = {} +defs["igIsAnyMouseDown"][1]["funcname"] = "IsAnyMouseDown" +defs["igIsAnyMouseDown"][1]["location"] = "imgui:940" +defs["igIsAnyMouseDown"][1]["namespace"] = "ImGui" +defs["igIsAnyMouseDown"][1]["ov_cimguiname"] = "igIsAnyMouseDown" +defs["igIsAnyMouseDown"][1]["ret"] = "bool" +defs["igIsAnyMouseDown"][1]["signature"] = "()" +defs["igIsAnyMouseDown"][1]["stname"] = "" +defs["igIsAnyMouseDown"]["()"] = defs["igIsAnyMouseDown"][1] +defs["igIsItemActivated"] = {} +defs["igIsItemActivated"][1] = {} +defs["igIsItemActivated"][1]["args"] = "()" +defs["igIsItemActivated"][1]["argsT"] = {} +defs["igIsItemActivated"][1]["argsoriginal"] = "()" +defs["igIsItemActivated"][1]["call_args"] = "()" +defs["igIsItemActivated"][1]["cimguiname"] = "igIsItemActivated" +defs["igIsItemActivated"][1]["defaults"] = {} +defs["igIsItemActivated"][1]["funcname"] = "IsItemActivated" +defs["igIsItemActivated"][1]["location"] = "imgui:871" +defs["igIsItemActivated"][1]["namespace"] = "ImGui" +defs["igIsItemActivated"][1]["ov_cimguiname"] = "igIsItemActivated" +defs["igIsItemActivated"][1]["ret"] = "bool" +defs["igIsItemActivated"][1]["signature"] = "()" +defs["igIsItemActivated"][1]["stname"] = "" +defs["igIsItemActivated"]["()"] = defs["igIsItemActivated"][1] +defs["igIsItemActive"] = {} +defs["igIsItemActive"][1] = {} +defs["igIsItemActive"][1]["args"] = "()" +defs["igIsItemActive"][1]["argsT"] = {} +defs["igIsItemActive"][1]["argsoriginal"] = "()" +defs["igIsItemActive"][1]["call_args"] = "()" +defs["igIsItemActive"][1]["cimguiname"] = "igIsItemActive" +defs["igIsItemActive"][1]["defaults"] = {} +defs["igIsItemActive"][1]["funcname"] = "IsItemActive" +defs["igIsItemActive"][1]["location"] = "imgui:866" +defs["igIsItemActive"][1]["namespace"] = "ImGui" +defs["igIsItemActive"][1]["ov_cimguiname"] = "igIsItemActive" +defs["igIsItemActive"][1]["ret"] = "bool" +defs["igIsItemActive"][1]["signature"] = "()" +defs["igIsItemActive"][1]["stname"] = "" +defs["igIsItemActive"]["()"] = defs["igIsItemActive"][1] +defs["igIsItemClicked"] = {} +defs["igIsItemClicked"][1] = {} +defs["igIsItemClicked"][1]["args"] = "(ImGuiMouseButton mouse_button)" +defs["igIsItemClicked"][1]["argsT"] = {} +defs["igIsItemClicked"][1]["argsT"][1] = {} +defs["igIsItemClicked"][1]["argsT"][1]["name"] = "mouse_button" +defs["igIsItemClicked"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsItemClicked"][1]["argsoriginal"] = "(ImGuiMouseButton mouse_button=0)" +defs["igIsItemClicked"][1]["call_args"] = "(mouse_button)" +defs["igIsItemClicked"][1]["cimguiname"] = "igIsItemClicked" +defs["igIsItemClicked"][1]["defaults"] = {} +defs["igIsItemClicked"][1]["defaults"]["mouse_button"] = "0" +defs["igIsItemClicked"][1]["funcname"] = "IsItemClicked" +defs["igIsItemClicked"][1]["location"] = "imgui:868" +defs["igIsItemClicked"][1]["namespace"] = "ImGui" +defs["igIsItemClicked"][1]["ov_cimguiname"] = "igIsItemClicked" +defs["igIsItemClicked"][1]["ret"] = "bool" +defs["igIsItemClicked"][1]["signature"] = "(ImGuiMouseButton)" +defs["igIsItemClicked"][1]["stname"] = "" +defs["igIsItemClicked"]["(ImGuiMouseButton)"] = defs["igIsItemClicked"][1] +defs["igIsItemDeactivated"] = {} +defs["igIsItemDeactivated"][1] = {} +defs["igIsItemDeactivated"][1]["args"] = "()" +defs["igIsItemDeactivated"][1]["argsT"] = {} +defs["igIsItemDeactivated"][1]["argsoriginal"] = "()" +defs["igIsItemDeactivated"][1]["call_args"] = "()" +defs["igIsItemDeactivated"][1]["cimguiname"] = "igIsItemDeactivated" +defs["igIsItemDeactivated"][1]["defaults"] = {} +defs["igIsItemDeactivated"][1]["funcname"] = "IsItemDeactivated" +defs["igIsItemDeactivated"][1]["location"] = "imgui:872" +defs["igIsItemDeactivated"][1]["namespace"] = "ImGui" +defs["igIsItemDeactivated"][1]["ov_cimguiname"] = "igIsItemDeactivated" +defs["igIsItemDeactivated"][1]["ret"] = "bool" +defs["igIsItemDeactivated"][1]["signature"] = "()" +defs["igIsItemDeactivated"][1]["stname"] = "" +defs["igIsItemDeactivated"]["()"] = defs["igIsItemDeactivated"][1] +defs["igIsItemDeactivatedAfterEdit"] = {} +defs["igIsItemDeactivatedAfterEdit"][1] = {} +defs["igIsItemDeactivatedAfterEdit"][1]["args"] = "()" +defs["igIsItemDeactivatedAfterEdit"][1]["argsT"] = {} +defs["igIsItemDeactivatedAfterEdit"][1]["argsoriginal"] = "()" +defs["igIsItemDeactivatedAfterEdit"][1]["call_args"] = "()" +defs["igIsItemDeactivatedAfterEdit"][1]["cimguiname"] = "igIsItemDeactivatedAfterEdit" +defs["igIsItemDeactivatedAfterEdit"][1]["defaults"] = {} +defs["igIsItemDeactivatedAfterEdit"][1]["funcname"] = "IsItemDeactivatedAfterEdit" +defs["igIsItemDeactivatedAfterEdit"][1]["location"] = "imgui:873" +defs["igIsItemDeactivatedAfterEdit"][1]["namespace"] = "ImGui" +defs["igIsItemDeactivatedAfterEdit"][1]["ov_cimguiname"] = "igIsItemDeactivatedAfterEdit" +defs["igIsItemDeactivatedAfterEdit"][1]["ret"] = "bool" +defs["igIsItemDeactivatedAfterEdit"][1]["signature"] = "()" +defs["igIsItemDeactivatedAfterEdit"][1]["stname"] = "" +defs["igIsItemDeactivatedAfterEdit"]["()"] = defs["igIsItemDeactivatedAfterEdit"][1] +defs["igIsItemEdited"] = {} +defs["igIsItemEdited"][1] = {} +defs["igIsItemEdited"][1]["args"] = "()" +defs["igIsItemEdited"][1]["argsT"] = {} +defs["igIsItemEdited"][1]["argsoriginal"] = "()" +defs["igIsItemEdited"][1]["call_args"] = "()" +defs["igIsItemEdited"][1]["cimguiname"] = "igIsItemEdited" +defs["igIsItemEdited"][1]["defaults"] = {} +defs["igIsItemEdited"][1]["funcname"] = "IsItemEdited" +defs["igIsItemEdited"][1]["location"] = "imgui:870" +defs["igIsItemEdited"][1]["namespace"] = "ImGui" +defs["igIsItemEdited"][1]["ov_cimguiname"] = "igIsItemEdited" +defs["igIsItemEdited"][1]["ret"] = "bool" +defs["igIsItemEdited"][1]["signature"] = "()" +defs["igIsItemEdited"][1]["stname"] = "" +defs["igIsItemEdited"]["()"] = defs["igIsItemEdited"][1] +defs["igIsItemFocused"] = {} +defs["igIsItemFocused"][1] = {} +defs["igIsItemFocused"][1]["args"] = "()" +defs["igIsItemFocused"][1]["argsT"] = {} +defs["igIsItemFocused"][1]["argsoriginal"] = "()" +defs["igIsItemFocused"][1]["call_args"] = "()" +defs["igIsItemFocused"][1]["cimguiname"] = "igIsItemFocused" +defs["igIsItemFocused"][1]["defaults"] = {} +defs["igIsItemFocused"][1]["funcname"] = "IsItemFocused" +defs["igIsItemFocused"][1]["location"] = "imgui:867" +defs["igIsItemFocused"][1]["namespace"] = "ImGui" +defs["igIsItemFocused"][1]["ov_cimguiname"] = "igIsItemFocused" +defs["igIsItemFocused"][1]["ret"] = "bool" +defs["igIsItemFocused"][1]["signature"] = "()" +defs["igIsItemFocused"][1]["stname"] = "" +defs["igIsItemFocused"]["()"] = defs["igIsItemFocused"][1] +defs["igIsItemHovered"] = {} +defs["igIsItemHovered"][1] = {} +defs["igIsItemHovered"][1]["args"] = "(ImGuiHoveredFlags flags)" +defs["igIsItemHovered"][1]["argsT"] = {} +defs["igIsItemHovered"][1]["argsT"][1] = {} +defs["igIsItemHovered"][1]["argsT"][1]["name"] = "flags" +defs["igIsItemHovered"][1]["argsT"][1]["type"] = "ImGuiHoveredFlags" +defs["igIsItemHovered"][1]["argsoriginal"] = "(ImGuiHoveredFlags flags=0)" +defs["igIsItemHovered"][1]["call_args"] = "(flags)" +defs["igIsItemHovered"][1]["cimguiname"] = "igIsItemHovered" +defs["igIsItemHovered"][1]["defaults"] = {} +defs["igIsItemHovered"][1]["defaults"]["flags"] = "0" +defs["igIsItemHovered"][1]["funcname"] = "IsItemHovered" +defs["igIsItemHovered"][1]["location"] = "imgui:865" +defs["igIsItemHovered"][1]["namespace"] = "ImGui" +defs["igIsItemHovered"][1]["ov_cimguiname"] = "igIsItemHovered" +defs["igIsItemHovered"][1]["ret"] = "bool" +defs["igIsItemHovered"][1]["signature"] = "(ImGuiHoveredFlags)" +defs["igIsItemHovered"][1]["stname"] = "" +defs["igIsItemHovered"]["(ImGuiHoveredFlags)"] = defs["igIsItemHovered"][1] +defs["igIsItemToggledOpen"] = {} +defs["igIsItemToggledOpen"][1] = {} +defs["igIsItemToggledOpen"][1]["args"] = "()" +defs["igIsItemToggledOpen"][1]["argsT"] = {} +defs["igIsItemToggledOpen"][1]["argsoriginal"] = "()" +defs["igIsItemToggledOpen"][1]["call_args"] = "()" +defs["igIsItemToggledOpen"][1]["cimguiname"] = "igIsItemToggledOpen" +defs["igIsItemToggledOpen"][1]["defaults"] = {} +defs["igIsItemToggledOpen"][1]["funcname"] = "IsItemToggledOpen" +defs["igIsItemToggledOpen"][1]["location"] = "imgui:874" +defs["igIsItemToggledOpen"][1]["namespace"] = "ImGui" +defs["igIsItemToggledOpen"][1]["ov_cimguiname"] = "igIsItemToggledOpen" +defs["igIsItemToggledOpen"][1]["ret"] = "bool" +defs["igIsItemToggledOpen"][1]["signature"] = "()" +defs["igIsItemToggledOpen"][1]["stname"] = "" +defs["igIsItemToggledOpen"]["()"] = defs["igIsItemToggledOpen"][1] +defs["igIsItemVisible"] = {} +defs["igIsItemVisible"][1] = {} +defs["igIsItemVisible"][1]["args"] = "()" +defs["igIsItemVisible"][1]["argsT"] = {} +defs["igIsItemVisible"][1]["argsoriginal"] = "()" +defs["igIsItemVisible"][1]["call_args"] = "()" +defs["igIsItemVisible"][1]["cimguiname"] = "igIsItemVisible" +defs["igIsItemVisible"][1]["defaults"] = {} +defs["igIsItemVisible"][1]["funcname"] = "IsItemVisible" +defs["igIsItemVisible"][1]["location"] = "imgui:869" +defs["igIsItemVisible"][1]["namespace"] = "ImGui" +defs["igIsItemVisible"][1]["ov_cimguiname"] = "igIsItemVisible" +defs["igIsItemVisible"][1]["ret"] = "bool" +defs["igIsItemVisible"][1]["signature"] = "()" +defs["igIsItemVisible"][1]["stname"] = "" +defs["igIsItemVisible"]["()"] = defs["igIsItemVisible"][1] +defs["igIsKeyDown"] = {} +defs["igIsKeyDown"][1] = {} +defs["igIsKeyDown"][1]["args"] = "(ImGuiKey key)" +defs["igIsKeyDown"][1]["argsT"] = {} +defs["igIsKeyDown"][1]["argsT"][1] = {} +defs["igIsKeyDown"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyDown"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyDown"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyDown"][1]["call_args"] = "(key)" +defs["igIsKeyDown"][1]["cimguiname"] = "igIsKeyDown" +defs["igIsKeyDown"][1]["defaults"] = {} +defs["igIsKeyDown"][1]["funcname"] = "IsKeyDown" +defs["igIsKeyDown"][1]["location"] = "imgui:922" +defs["igIsKeyDown"][1]["namespace"] = "ImGui" +defs["igIsKeyDown"][1]["ov_cimguiname"] = "igIsKeyDown" +defs["igIsKeyDown"][1]["ret"] = "bool" +defs["igIsKeyDown"][1]["signature"] = "(ImGuiKey)" +defs["igIsKeyDown"][1]["stname"] = "" +defs["igIsKeyDown"]["(ImGuiKey)"] = defs["igIsKeyDown"][1] +defs["igIsKeyPressed"] = {} +defs["igIsKeyPressed"][1] = {} +defs["igIsKeyPressed"][1]["args"] = "(ImGuiKey key,bool repeat)" +defs["igIsKeyPressed"][1]["argsT"] = {} +defs["igIsKeyPressed"][1]["argsT"][1] = {} +defs["igIsKeyPressed"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyPressed"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyPressed"][1]["argsT"][2] = {} +defs["igIsKeyPressed"][1]["argsT"][2]["name"] = "repeat" +defs["igIsKeyPressed"][1]["argsT"][2]["type"] = "bool" +defs["igIsKeyPressed"][1]["argsoriginal"] = "(ImGuiKey key,bool repeat=true)" +defs["igIsKeyPressed"][1]["call_args"] = "(key,repeat)" +defs["igIsKeyPressed"][1]["cimguiname"] = "igIsKeyPressed" +defs["igIsKeyPressed"][1]["defaults"] = {} +defs["igIsKeyPressed"][1]["defaults"]["repeat"] = "true" +defs["igIsKeyPressed"][1]["funcname"] = "IsKeyPressed" +defs["igIsKeyPressed"][1]["location"] = "imgui:923" +defs["igIsKeyPressed"][1]["namespace"] = "ImGui" +defs["igIsKeyPressed"][1]["ov_cimguiname"] = "igIsKeyPressed" +defs["igIsKeyPressed"][1]["ret"] = "bool" +defs["igIsKeyPressed"][1]["signature"] = "(ImGuiKey,bool)" +defs["igIsKeyPressed"][1]["stname"] = "" +defs["igIsKeyPressed"]["(ImGuiKey,bool)"] = defs["igIsKeyPressed"][1] +defs["igIsKeyReleased"] = {} +defs["igIsKeyReleased"][1] = {} +defs["igIsKeyReleased"][1]["args"] = "(ImGuiKey key)" +defs["igIsKeyReleased"][1]["argsT"] = {} +defs["igIsKeyReleased"][1]["argsT"][1] = {} +defs["igIsKeyReleased"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyReleased"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyReleased"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyReleased"][1]["call_args"] = "(key)" +defs["igIsKeyReleased"][1]["cimguiname"] = "igIsKeyReleased" +defs["igIsKeyReleased"][1]["defaults"] = {} +defs["igIsKeyReleased"][1]["funcname"] = "IsKeyReleased" +defs["igIsKeyReleased"][1]["location"] = "imgui:924" +defs["igIsKeyReleased"][1]["namespace"] = "ImGui" +defs["igIsKeyReleased"][1]["ov_cimguiname"] = "igIsKeyReleased" +defs["igIsKeyReleased"][1]["ret"] = "bool" +defs["igIsKeyReleased"][1]["signature"] = "(ImGuiKey)" +defs["igIsKeyReleased"][1]["stname"] = "" +defs["igIsKeyReleased"]["(ImGuiKey)"] = defs["igIsKeyReleased"][1] +defs["igIsMouseClicked"] = {} +defs["igIsMouseClicked"][1] = {} +defs["igIsMouseClicked"][1]["args"] = "(ImGuiMouseButton button,bool repeat)" +defs["igIsMouseClicked"][1]["argsT"] = {} +defs["igIsMouseClicked"][1]["argsT"][1] = {} +defs["igIsMouseClicked"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseClicked"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseClicked"][1]["argsT"][2] = {} +defs["igIsMouseClicked"][1]["argsT"][2]["name"] = "repeat" +defs["igIsMouseClicked"][1]["argsT"][2]["type"] = "bool" +defs["igIsMouseClicked"][1]["argsoriginal"] = "(ImGuiMouseButton button,bool repeat=false)" +defs["igIsMouseClicked"][1]["call_args"] = "(button,repeat)" +defs["igIsMouseClicked"][1]["cimguiname"] = "igIsMouseClicked" +defs["igIsMouseClicked"][1]["defaults"] = {} +defs["igIsMouseClicked"][1]["defaults"]["repeat"] = "false" +defs["igIsMouseClicked"][1]["funcname"] = "IsMouseClicked" +defs["igIsMouseClicked"][1]["location"] = "imgui:934" +defs["igIsMouseClicked"][1]["namespace"] = "ImGui" +defs["igIsMouseClicked"][1]["ov_cimguiname"] = "igIsMouseClicked" +defs["igIsMouseClicked"][1]["ret"] = "bool" +defs["igIsMouseClicked"][1]["signature"] = "(ImGuiMouseButton,bool)" +defs["igIsMouseClicked"][1]["stname"] = "" +defs["igIsMouseClicked"]["(ImGuiMouseButton,bool)"] = defs["igIsMouseClicked"][1] +defs["igIsMouseDoubleClicked"] = {} +defs["igIsMouseDoubleClicked"][1] = {} +defs["igIsMouseDoubleClicked"][1]["args"] = "(ImGuiMouseButton button)" +defs["igIsMouseDoubleClicked"][1]["argsT"] = {} +defs["igIsMouseDoubleClicked"][1]["argsT"][1] = {} +defs["igIsMouseDoubleClicked"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseDoubleClicked"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseDoubleClicked"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igIsMouseDoubleClicked"][1]["call_args"] = "(button)" +defs["igIsMouseDoubleClicked"][1]["cimguiname"] = "igIsMouseDoubleClicked" +defs["igIsMouseDoubleClicked"][1]["defaults"] = {} +defs["igIsMouseDoubleClicked"][1]["funcname"] = "IsMouseDoubleClicked" +defs["igIsMouseDoubleClicked"][1]["location"] = "imgui:936" +defs["igIsMouseDoubleClicked"][1]["namespace"] = "ImGui" +defs["igIsMouseDoubleClicked"][1]["ov_cimguiname"] = "igIsMouseDoubleClicked" +defs["igIsMouseDoubleClicked"][1]["ret"] = "bool" +defs["igIsMouseDoubleClicked"][1]["signature"] = "(ImGuiMouseButton)" +defs["igIsMouseDoubleClicked"][1]["stname"] = "" +defs["igIsMouseDoubleClicked"]["(ImGuiMouseButton)"] = defs["igIsMouseDoubleClicked"][1] +defs["igIsMouseDown"] = {} +defs["igIsMouseDown"][1] = {} +defs["igIsMouseDown"][1]["args"] = "(ImGuiMouseButton button)" +defs["igIsMouseDown"][1]["argsT"] = {} +defs["igIsMouseDown"][1]["argsT"][1] = {} +defs["igIsMouseDown"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseDown"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseDown"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igIsMouseDown"][1]["call_args"] = "(button)" +defs["igIsMouseDown"][1]["cimguiname"] = "igIsMouseDown" +defs["igIsMouseDown"][1]["defaults"] = {} +defs["igIsMouseDown"][1]["funcname"] = "IsMouseDown" +defs["igIsMouseDown"][1]["location"] = "imgui:933" +defs["igIsMouseDown"][1]["namespace"] = "ImGui" +defs["igIsMouseDown"][1]["ov_cimguiname"] = "igIsMouseDown" +defs["igIsMouseDown"][1]["ret"] = "bool" +defs["igIsMouseDown"][1]["signature"] = "(ImGuiMouseButton)" +defs["igIsMouseDown"][1]["stname"] = "" +defs["igIsMouseDown"]["(ImGuiMouseButton)"] = defs["igIsMouseDown"][1] +defs["igIsMouseDragging"] = {} +defs["igIsMouseDragging"][1] = {} +defs["igIsMouseDragging"][1]["args"] = "(ImGuiMouseButton button,float lock_threshold)" +defs["igIsMouseDragging"][1]["argsT"] = {} +defs["igIsMouseDragging"][1]["argsT"][1] = {} +defs["igIsMouseDragging"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseDragging"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseDragging"][1]["argsT"][2] = {} +defs["igIsMouseDragging"][1]["argsT"][2]["name"] = "lock_threshold" +defs["igIsMouseDragging"][1]["argsT"][2]["type"] = "float" +defs["igIsMouseDragging"][1]["argsoriginal"] = "(ImGuiMouseButton button,float lock_threshold=-1.0f)" +defs["igIsMouseDragging"][1]["call_args"] = "(button,lock_threshold)" +defs["igIsMouseDragging"][1]["cimguiname"] = "igIsMouseDragging" +defs["igIsMouseDragging"][1]["defaults"] = {} +defs["igIsMouseDragging"][1]["defaults"]["lock_threshold"] = "-1.0f" +defs["igIsMouseDragging"][1]["funcname"] = "IsMouseDragging" +defs["igIsMouseDragging"][1]["location"] = "imgui:943" +defs["igIsMouseDragging"][1]["namespace"] = "ImGui" +defs["igIsMouseDragging"][1]["ov_cimguiname"] = "igIsMouseDragging" +defs["igIsMouseDragging"][1]["ret"] = "bool" +defs["igIsMouseDragging"][1]["signature"] = "(ImGuiMouseButton,float)" +defs["igIsMouseDragging"][1]["stname"] = "" +defs["igIsMouseDragging"]["(ImGuiMouseButton,float)"] = defs["igIsMouseDragging"][1] +defs["igIsMouseHoveringRect"] = {} +defs["igIsMouseHoveringRect"][1] = {} +defs["igIsMouseHoveringRect"][1]["args"] = "(const ImVec2 r_min,const ImVec2 r_max,bool clip)" +defs["igIsMouseHoveringRect"][1]["argsT"] = {} +defs["igIsMouseHoveringRect"][1]["argsT"][1] = {} +defs["igIsMouseHoveringRect"][1]["argsT"][1]["name"] = "r_min" +defs["igIsMouseHoveringRect"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igIsMouseHoveringRect"][1]["argsT"][2] = {} +defs["igIsMouseHoveringRect"][1]["argsT"][2]["name"] = "r_max" +defs["igIsMouseHoveringRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igIsMouseHoveringRect"][1]["argsT"][3] = {} +defs["igIsMouseHoveringRect"][1]["argsT"][3]["name"] = "clip" +defs["igIsMouseHoveringRect"][1]["argsT"][3]["type"] = "bool" +defs["igIsMouseHoveringRect"][1]["argsoriginal"] = "(const ImVec2& r_min,const ImVec2& r_max,bool clip=true)" +defs["igIsMouseHoveringRect"][1]["call_args"] = "(r_min,r_max,clip)" +defs["igIsMouseHoveringRect"][1]["cimguiname"] = "igIsMouseHoveringRect" +defs["igIsMouseHoveringRect"][1]["defaults"] = {} +defs["igIsMouseHoveringRect"][1]["defaults"]["clip"] = "true" +defs["igIsMouseHoveringRect"][1]["funcname"] = "IsMouseHoveringRect" +defs["igIsMouseHoveringRect"][1]["location"] = "imgui:938" +defs["igIsMouseHoveringRect"][1]["namespace"] = "ImGui" +defs["igIsMouseHoveringRect"][1]["ov_cimguiname"] = "igIsMouseHoveringRect" +defs["igIsMouseHoveringRect"][1]["ret"] = "bool" +defs["igIsMouseHoveringRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" +defs["igIsMouseHoveringRect"][1]["stname"] = "" +defs["igIsMouseHoveringRect"]["(const ImVec2,const ImVec2,bool)"] = defs["igIsMouseHoveringRect"][1] +defs["igIsMousePosValid"] = {} +defs["igIsMousePosValid"][1] = {} +defs["igIsMousePosValid"][1]["args"] = "(const ImVec2* mouse_pos)" +defs["igIsMousePosValid"][1]["argsT"] = {} +defs["igIsMousePosValid"][1]["argsT"][1] = {} +defs["igIsMousePosValid"][1]["argsT"][1]["name"] = "mouse_pos" +defs["igIsMousePosValid"][1]["argsT"][1]["type"] = "const ImVec2*" +defs["igIsMousePosValid"][1]["argsoriginal"] = "(const ImVec2* mouse_pos=((void*)0))" +defs["igIsMousePosValid"][1]["call_args"] = "(mouse_pos)" +defs["igIsMousePosValid"][1]["cimguiname"] = "igIsMousePosValid" +defs["igIsMousePosValid"][1]["defaults"] = {} +defs["igIsMousePosValid"][1]["defaults"]["mouse_pos"] = "NULL" +defs["igIsMousePosValid"][1]["funcname"] = "IsMousePosValid" +defs["igIsMousePosValid"][1]["location"] = "imgui:939" +defs["igIsMousePosValid"][1]["namespace"] = "ImGui" +defs["igIsMousePosValid"][1]["ov_cimguiname"] = "igIsMousePosValid" +defs["igIsMousePosValid"][1]["ret"] = "bool" +defs["igIsMousePosValid"][1]["signature"] = "(const ImVec2*)" +defs["igIsMousePosValid"][1]["stname"] = "" +defs["igIsMousePosValid"]["(const ImVec2*)"] = defs["igIsMousePosValid"][1] +defs["igIsMouseReleased"] = {} +defs["igIsMouseReleased"][1] = {} +defs["igIsMouseReleased"][1]["args"] = "(ImGuiMouseButton button)" +defs["igIsMouseReleased"][1]["argsT"] = {} +defs["igIsMouseReleased"][1]["argsT"][1] = {} +defs["igIsMouseReleased"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseReleased"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseReleased"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igIsMouseReleased"][1]["call_args"] = "(button)" +defs["igIsMouseReleased"][1]["cimguiname"] = "igIsMouseReleased" +defs["igIsMouseReleased"][1]["defaults"] = {} +defs["igIsMouseReleased"][1]["funcname"] = "IsMouseReleased" +defs["igIsMouseReleased"][1]["location"] = "imgui:935" +defs["igIsMouseReleased"][1]["namespace"] = "ImGui" +defs["igIsMouseReleased"][1]["ov_cimguiname"] = "igIsMouseReleased" +defs["igIsMouseReleased"][1]["ret"] = "bool" +defs["igIsMouseReleased"][1]["signature"] = "(ImGuiMouseButton)" +defs["igIsMouseReleased"][1]["stname"] = "" +defs["igIsMouseReleased"]["(ImGuiMouseButton)"] = defs["igIsMouseReleased"][1] +defs["igIsPopupOpen"] = {} +defs["igIsPopupOpen"][1] = {} +defs["igIsPopupOpen"][1]["args"] = "(const char* str_id,ImGuiPopupFlags flags)" +defs["igIsPopupOpen"][1]["argsT"] = {} +defs["igIsPopupOpen"][1]["argsT"][1] = {} +defs["igIsPopupOpen"][1]["argsT"][1]["name"] = "str_id" +defs["igIsPopupOpen"][1]["argsT"][1]["type"] = "const char*" +defs["igIsPopupOpen"][1]["argsT"][2] = {} +defs["igIsPopupOpen"][1]["argsT"][2]["name"] = "flags" +defs["igIsPopupOpen"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igIsPopupOpen"][1]["argsoriginal"] = "(const char* str_id,ImGuiPopupFlags flags=0)" +defs["igIsPopupOpen"][1]["call_args"] = "(str_id,flags)" +defs["igIsPopupOpen"][1]["cimguiname"] = "igIsPopupOpen" +defs["igIsPopupOpen"][1]["defaults"] = {} +defs["igIsPopupOpen"][1]["defaults"]["flags"] = "0" +defs["igIsPopupOpen"][1]["funcname"] = "IsPopupOpen" +defs["igIsPopupOpen"][1]["location"] = "imgui:723" +defs["igIsPopupOpen"][1]["namespace"] = "ImGui" +defs["igIsPopupOpen"][1]["ov_cimguiname"] = "igIsPopupOpen" +defs["igIsPopupOpen"][1]["ret"] = "bool" +defs["igIsPopupOpen"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igIsPopupOpen"][1]["stname"] = "" +defs["igIsPopupOpen"]["(const char*,ImGuiPopupFlags)"] = defs["igIsPopupOpen"][1] +defs["igIsRectVisible"] = {} +defs["igIsRectVisible"][1] = {} +defs["igIsRectVisible"][1]["args"] = "(const ImVec2 size)" +defs["igIsRectVisible"][1]["argsT"] = {} +defs["igIsRectVisible"][1]["argsT"][1] = {} +defs["igIsRectVisible"][1]["argsT"][1]["name"] = "size" +defs["igIsRectVisible"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igIsRectVisible"][1]["argsoriginal"] = "(const ImVec2& size)" +defs["igIsRectVisible"][1]["call_args"] = "(size)" +defs["igIsRectVisible"][1]["cimguiname"] = "igIsRectVisible" +defs["igIsRectVisible"][1]["defaults"] = {} +defs["igIsRectVisible"][1]["funcname"] = "IsRectVisible" +defs["igIsRectVisible"][1]["location"] = "imgui:896" +defs["igIsRectVisible"][1]["namespace"] = "ImGui" +defs["igIsRectVisible"][1]["ov_cimguiname"] = "igIsRectVisible_Nil" +defs["igIsRectVisible"][1]["ret"] = "bool" +defs["igIsRectVisible"][1]["signature"] = "(const ImVec2)" +defs["igIsRectVisible"][1]["stname"] = "" +defs["igIsRectVisible"][2] = {} +defs["igIsRectVisible"][2]["args"] = "(const ImVec2 rect_min,const ImVec2 rect_max)" +defs["igIsRectVisible"][2]["argsT"] = {} +defs["igIsRectVisible"][2]["argsT"][1] = {} +defs["igIsRectVisible"][2]["argsT"][1]["name"] = "rect_min" +defs["igIsRectVisible"][2]["argsT"][1]["type"] = "const ImVec2" +defs["igIsRectVisible"][2]["argsT"][2] = {} +defs["igIsRectVisible"][2]["argsT"][2]["name"] = "rect_max" +defs["igIsRectVisible"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igIsRectVisible"][2]["argsoriginal"] = "(const ImVec2& rect_min,const ImVec2& rect_max)" +defs["igIsRectVisible"][2]["call_args"] = "(rect_min,rect_max)" +defs["igIsRectVisible"][2]["cimguiname"] = "igIsRectVisible" +defs["igIsRectVisible"][2]["defaults"] = {} +defs["igIsRectVisible"][2]["funcname"] = "IsRectVisible" +defs["igIsRectVisible"][2]["location"] = "imgui:897" +defs["igIsRectVisible"][2]["namespace"] = "ImGui" +defs["igIsRectVisible"][2]["ov_cimguiname"] = "igIsRectVisible_Vec2" +defs["igIsRectVisible"][2]["ret"] = "bool" +defs["igIsRectVisible"][2]["signature"] = "(const ImVec2,const ImVec2)" +defs["igIsRectVisible"][2]["stname"] = "" +defs["igIsRectVisible"]["(const ImVec2)"] = defs["igIsRectVisible"][1] +defs["igIsRectVisible"]["(const ImVec2,const ImVec2)"] = defs["igIsRectVisible"][2] +defs["igIsWindowAppearing"] = {} +defs["igIsWindowAppearing"][1] = {} +defs["igIsWindowAppearing"][1]["args"] = "()" +defs["igIsWindowAppearing"][1]["argsT"] = {} +defs["igIsWindowAppearing"][1]["argsoriginal"] = "()" +defs["igIsWindowAppearing"][1]["call_args"] = "()" +defs["igIsWindowAppearing"][1]["cimguiname"] = "igIsWindowAppearing" +defs["igIsWindowAppearing"][1]["defaults"] = {} +defs["igIsWindowAppearing"][1]["funcname"] = "IsWindowAppearing" +defs["igIsWindowAppearing"][1]["location"] = "imgui:353" +defs["igIsWindowAppearing"][1]["namespace"] = "ImGui" +defs["igIsWindowAppearing"][1]["ov_cimguiname"] = "igIsWindowAppearing" +defs["igIsWindowAppearing"][1]["ret"] = "bool" +defs["igIsWindowAppearing"][1]["signature"] = "()" +defs["igIsWindowAppearing"][1]["stname"] = "" +defs["igIsWindowAppearing"]["()"] = defs["igIsWindowAppearing"][1] +defs["igIsWindowCollapsed"] = {} +defs["igIsWindowCollapsed"][1] = {} +defs["igIsWindowCollapsed"][1]["args"] = "()" +defs["igIsWindowCollapsed"][1]["argsT"] = {} +defs["igIsWindowCollapsed"][1]["argsoriginal"] = "()" +defs["igIsWindowCollapsed"][1]["call_args"] = "()" +defs["igIsWindowCollapsed"][1]["cimguiname"] = "igIsWindowCollapsed" +defs["igIsWindowCollapsed"][1]["defaults"] = {} +defs["igIsWindowCollapsed"][1]["funcname"] = "IsWindowCollapsed" +defs["igIsWindowCollapsed"][1]["location"] = "imgui:354" +defs["igIsWindowCollapsed"][1]["namespace"] = "ImGui" +defs["igIsWindowCollapsed"][1]["ov_cimguiname"] = "igIsWindowCollapsed" +defs["igIsWindowCollapsed"][1]["ret"] = "bool" +defs["igIsWindowCollapsed"][1]["signature"] = "()" +defs["igIsWindowCollapsed"][1]["stname"] = "" +defs["igIsWindowCollapsed"]["()"] = defs["igIsWindowCollapsed"][1] +defs["igIsWindowDocked"] = {} +defs["igIsWindowDocked"][1] = {} +defs["igIsWindowDocked"][1]["args"] = "()" +defs["igIsWindowDocked"][1]["argsT"] = {} +defs["igIsWindowDocked"][1]["argsoriginal"] = "()" +defs["igIsWindowDocked"][1]["call_args"] = "()" +defs["igIsWindowDocked"][1]["cimguiname"] = "igIsWindowDocked" +defs["igIsWindowDocked"][1]["defaults"] = {} +defs["igIsWindowDocked"][1]["funcname"] = "IsWindowDocked" +defs["igIsWindowDocked"][1]["location"] = "imgui:820" +defs["igIsWindowDocked"][1]["namespace"] = "ImGui" +defs["igIsWindowDocked"][1]["ov_cimguiname"] = "igIsWindowDocked" +defs["igIsWindowDocked"][1]["ret"] = "bool" +defs["igIsWindowDocked"][1]["signature"] = "()" +defs["igIsWindowDocked"][1]["stname"] = "" +defs["igIsWindowDocked"]["()"] = defs["igIsWindowDocked"][1] +defs["igIsWindowFocused"] = {} +defs["igIsWindowFocused"][1] = {} +defs["igIsWindowFocused"][1]["args"] = "(ImGuiFocusedFlags flags)" +defs["igIsWindowFocused"][1]["argsT"] = {} +defs["igIsWindowFocused"][1]["argsT"][1] = {} +defs["igIsWindowFocused"][1]["argsT"][1]["name"] = "flags" +defs["igIsWindowFocused"][1]["argsT"][1]["type"] = "ImGuiFocusedFlags" +defs["igIsWindowFocused"][1]["argsoriginal"] = "(ImGuiFocusedFlags flags=0)" +defs["igIsWindowFocused"][1]["call_args"] = "(flags)" +defs["igIsWindowFocused"][1]["cimguiname"] = "igIsWindowFocused" +defs["igIsWindowFocused"][1]["defaults"] = {} +defs["igIsWindowFocused"][1]["defaults"]["flags"] = "0" +defs["igIsWindowFocused"][1]["funcname"] = "IsWindowFocused" +defs["igIsWindowFocused"][1]["location"] = "imgui:355" +defs["igIsWindowFocused"][1]["namespace"] = "ImGui" +defs["igIsWindowFocused"][1]["ov_cimguiname"] = "igIsWindowFocused" +defs["igIsWindowFocused"][1]["ret"] = "bool" +defs["igIsWindowFocused"][1]["signature"] = "(ImGuiFocusedFlags)" +defs["igIsWindowFocused"][1]["stname"] = "" +defs["igIsWindowFocused"]["(ImGuiFocusedFlags)"] = defs["igIsWindowFocused"][1] +defs["igIsWindowHovered"] = {} +defs["igIsWindowHovered"][1] = {} +defs["igIsWindowHovered"][1]["args"] = "(ImGuiHoveredFlags flags)" +defs["igIsWindowHovered"][1]["argsT"] = {} +defs["igIsWindowHovered"][1]["argsT"][1] = {} +defs["igIsWindowHovered"][1]["argsT"][1]["name"] = "flags" +defs["igIsWindowHovered"][1]["argsT"][1]["type"] = "ImGuiHoveredFlags" +defs["igIsWindowHovered"][1]["argsoriginal"] = "(ImGuiHoveredFlags flags=0)" +defs["igIsWindowHovered"][1]["call_args"] = "(flags)" +defs["igIsWindowHovered"][1]["cimguiname"] = "igIsWindowHovered" +defs["igIsWindowHovered"][1]["defaults"] = {} +defs["igIsWindowHovered"][1]["defaults"]["flags"] = "0" +defs["igIsWindowHovered"][1]["funcname"] = "IsWindowHovered" +defs["igIsWindowHovered"][1]["location"] = "imgui:356" +defs["igIsWindowHovered"][1]["namespace"] = "ImGui" +defs["igIsWindowHovered"][1]["ov_cimguiname"] = "igIsWindowHovered" +defs["igIsWindowHovered"][1]["ret"] = "bool" +defs["igIsWindowHovered"][1]["signature"] = "(ImGuiHoveredFlags)" +defs["igIsWindowHovered"][1]["stname"] = "" +defs["igIsWindowHovered"]["(ImGuiHoveredFlags)"] = defs["igIsWindowHovered"][1] +defs["igLabelText"] = {} +defs["igLabelText"][1] = {} +defs["igLabelText"][1]["args"] = "(const char* label,const char* fmt,...)" +defs["igLabelText"][1]["argsT"] = {} +defs["igLabelText"][1]["argsT"][1] = {} +defs["igLabelText"][1]["argsT"][1]["name"] = "label" +defs["igLabelText"][1]["argsT"][1]["type"] = "const char*" +defs["igLabelText"][1]["argsT"][2] = {} +defs["igLabelText"][1]["argsT"][2]["name"] = "fmt" +defs["igLabelText"][1]["argsT"][2]["type"] = "const char*" +defs["igLabelText"][1]["argsT"][3] = {} +defs["igLabelText"][1]["argsT"][3]["name"] = "..." +defs["igLabelText"][1]["argsT"][3]["type"] = "..." +defs["igLabelText"][1]["argsoriginal"] = "(const char* label,const char* fmt,...)" +defs["igLabelText"][1]["call_args"] = "(label,fmt,...)" +defs["igLabelText"][1]["cimguiname"] = "igLabelText" +defs["igLabelText"][1]["defaults"] = {} +defs["igLabelText"][1]["funcname"] = "LabelText" +defs["igLabelText"][1]["isvararg"] = "...)" +defs["igLabelText"][1]["location"] = "imgui:501" +defs["igLabelText"][1]["namespace"] = "ImGui" +defs["igLabelText"][1]["ov_cimguiname"] = "igLabelText" +defs["igLabelText"][1]["ret"] = "void" +defs["igLabelText"][1]["signature"] = "(const char*,const char*,...)" +defs["igLabelText"][1]["stname"] = "" +defs["igLabelText"]["(const char*,const char*,...)"] = defs["igLabelText"][1] +defs["igLabelTextV"] = {} +defs["igLabelTextV"][1] = {} +defs["igLabelTextV"][1]["args"] = "(const char* label,const char* fmt,va_list args)" +defs["igLabelTextV"][1]["argsT"] = {} +defs["igLabelTextV"][1]["argsT"][1] = {} +defs["igLabelTextV"][1]["argsT"][1]["name"] = "label" +defs["igLabelTextV"][1]["argsT"][1]["type"] = "const char*" +defs["igLabelTextV"][1]["argsT"][2] = {} +defs["igLabelTextV"][1]["argsT"][2]["name"] = "fmt" +defs["igLabelTextV"][1]["argsT"][2]["type"] = "const char*" +defs["igLabelTextV"][1]["argsT"][3] = {} +defs["igLabelTextV"][1]["argsT"][3]["name"] = "args" +defs["igLabelTextV"][1]["argsT"][3]["type"] = "va_list" +defs["igLabelTextV"][1]["argsoriginal"] = "(const char* label,const char* fmt,va_list args)" +defs["igLabelTextV"][1]["call_args"] = "(label,fmt,args)" +defs["igLabelTextV"][1]["cimguiname"] = "igLabelTextV" +defs["igLabelTextV"][1]["defaults"] = {} +defs["igLabelTextV"][1]["funcname"] = "LabelTextV" +defs["igLabelTextV"][1]["location"] = "imgui:502" +defs["igLabelTextV"][1]["namespace"] = "ImGui" +defs["igLabelTextV"][1]["ov_cimguiname"] = "igLabelTextV" +defs["igLabelTextV"][1]["ret"] = "void" +defs["igLabelTextV"][1]["signature"] = "(const char*,const char*,va_list)" +defs["igLabelTextV"][1]["stname"] = "" +defs["igLabelTextV"]["(const char*,const char*,va_list)"] = defs["igLabelTextV"][1] +defs["igListBox"] = {} +defs["igListBox"][1] = {} +defs["igListBox"][1]["args"] = "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items)" +defs["igListBox"][1]["argsT"] = {} +defs["igListBox"][1]["argsT"][1] = {} +defs["igListBox"][1]["argsT"][1]["name"] = "label" +defs["igListBox"][1]["argsT"][1]["type"] = "const char*" +defs["igListBox"][1]["argsT"][2] = {} +defs["igListBox"][1]["argsT"][2]["name"] = "current_item" +defs["igListBox"][1]["argsT"][2]["type"] = "int*" +defs["igListBox"][1]["argsT"][3] = {} +defs["igListBox"][1]["argsT"][3]["name"] = "items" +defs["igListBox"][1]["argsT"][3]["type"] = "const char* const[]" +defs["igListBox"][1]["argsT"][4] = {} +defs["igListBox"][1]["argsT"][4]["name"] = "items_count" +defs["igListBox"][1]["argsT"][4]["type"] = "int" +defs["igListBox"][1]["argsT"][5] = {} +defs["igListBox"][1]["argsT"][5]["name"] = "height_in_items" +defs["igListBox"][1]["argsT"][5]["type"] = "int" +defs["igListBox"][1]["argsoriginal"] = "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items=-1)" +defs["igListBox"][1]["call_args"] = "(label,current_item,items,items_count,height_in_items)" +defs["igListBox"][1]["cimguiname"] = "igListBox" +defs["igListBox"][1]["defaults"] = {} +defs["igListBox"][1]["defaults"]["height_in_items"] = "-1" +defs["igListBox"][1]["funcname"] = "ListBox" +defs["igListBox"][1]["location"] = "imgui:643" +defs["igListBox"][1]["namespace"] = "ImGui" +defs["igListBox"][1]["ov_cimguiname"] = "igListBox_Str_arr" +defs["igListBox"][1]["ret"] = "bool" +defs["igListBox"][1]["signature"] = "(const char*,int*,const char* const[],int,int)" +defs["igListBox"][1]["stname"] = "" +defs["igListBox"][2] = {} +defs["igListBox"][2]["args"] = "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items)" +defs["igListBox"][2]["argsT"] = {} +defs["igListBox"][2]["argsT"][1] = {} +defs["igListBox"][2]["argsT"][1]["name"] = "label" +defs["igListBox"][2]["argsT"][1]["type"] = "const char*" +defs["igListBox"][2]["argsT"][2] = {} +defs["igListBox"][2]["argsT"][2]["name"] = "current_item" +defs["igListBox"][2]["argsT"][2]["type"] = "int*" +defs["igListBox"][2]["argsT"][3] = {} +defs["igListBox"][2]["argsT"][3]["name"] = "items_getter" +defs["igListBox"][2]["argsT"][3]["ret"] = "bool" +defs["igListBox"][2]["argsT"][3]["signature"] = "(void* data,int idx,const char** out_text)" +defs["igListBox"][2]["argsT"][3]["type"] = "bool(*)(void* data,int idx,const char** out_text)" +defs["igListBox"][2]["argsT"][4] = {} +defs["igListBox"][2]["argsT"][4]["name"] = "data" +defs["igListBox"][2]["argsT"][4]["type"] = "void*" +defs["igListBox"][2]["argsT"][5] = {} +defs["igListBox"][2]["argsT"][5]["name"] = "items_count" +defs["igListBox"][2]["argsT"][5]["type"] = "int" +defs["igListBox"][2]["argsT"][6] = {} +defs["igListBox"][2]["argsT"][6]["name"] = "height_in_items" +defs["igListBox"][2]["argsT"][6]["type"] = "int" +defs["igListBox"][2]["argsoriginal"] = "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items=-1)" +defs["igListBox"][2]["call_args"] = "(label,current_item,items_getter,data,items_count,height_in_items)" +defs["igListBox"][2]["cimguiname"] = "igListBox" +defs["igListBox"][2]["defaults"] = {} +defs["igListBox"][2]["defaults"]["height_in_items"] = "-1" +defs["igListBox"][2]["funcname"] = "ListBox" +defs["igListBox"][2]["location"] = "imgui:644" +defs["igListBox"][2]["namespace"] = "ImGui" +defs["igListBox"][2]["ov_cimguiname"] = "igListBox_FnBoolPtr" +defs["igListBox"][2]["ret"] = "bool" +defs["igListBox"][2]["signature"] = "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)" +defs["igListBox"][2]["stname"] = "" +defs["igListBox"]["(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)"] = defs["igListBox"][2] +defs["igListBox"]["(const char*,int*,const char* const[],int,int)"] = defs["igListBox"][1] +defs["igLoadIniSettingsFromDisk"] = {} +defs["igLoadIniSettingsFromDisk"][1] = {} +defs["igLoadIniSettingsFromDisk"][1]["args"] = "(const char* ini_filename)" +defs["igLoadIniSettingsFromDisk"][1]["argsT"] = {} +defs["igLoadIniSettingsFromDisk"][1]["argsT"][1] = {} +defs["igLoadIniSettingsFromDisk"][1]["argsT"][1]["name"] = "ini_filename" +defs["igLoadIniSettingsFromDisk"][1]["argsT"][1]["type"] = "const char*" +defs["igLoadIniSettingsFromDisk"][1]["argsoriginal"] = "(const char* ini_filename)" +defs["igLoadIniSettingsFromDisk"][1]["call_args"] = "(ini_filename)" +defs["igLoadIniSettingsFromDisk"][1]["cimguiname"] = "igLoadIniSettingsFromDisk" +defs["igLoadIniSettingsFromDisk"][1]["defaults"] = {} +defs["igLoadIniSettingsFromDisk"][1]["funcname"] = "LoadIniSettingsFromDisk" +defs["igLoadIniSettingsFromDisk"][1]["location"] = "imgui:959" +defs["igLoadIniSettingsFromDisk"][1]["namespace"] = "ImGui" +defs["igLoadIniSettingsFromDisk"][1]["ov_cimguiname"] = "igLoadIniSettingsFromDisk" +defs["igLoadIniSettingsFromDisk"][1]["ret"] = "void" +defs["igLoadIniSettingsFromDisk"][1]["signature"] = "(const char*)" +defs["igLoadIniSettingsFromDisk"][1]["stname"] = "" +defs["igLoadIniSettingsFromDisk"]["(const char*)"] = defs["igLoadIniSettingsFromDisk"][1] +defs["igLoadIniSettingsFromMemory"] = {} +defs["igLoadIniSettingsFromMemory"][1] = {} +defs["igLoadIniSettingsFromMemory"][1]["args"] = "(const char* ini_data,size_t ini_size)" +defs["igLoadIniSettingsFromMemory"][1]["argsT"] = {} +defs["igLoadIniSettingsFromMemory"][1]["argsT"][1] = {} +defs["igLoadIniSettingsFromMemory"][1]["argsT"][1]["name"] = "ini_data" +defs["igLoadIniSettingsFromMemory"][1]["argsT"][1]["type"] = "const char*" +defs["igLoadIniSettingsFromMemory"][1]["argsT"][2] = {} +defs["igLoadIniSettingsFromMemory"][1]["argsT"][2]["name"] = "ini_size" +defs["igLoadIniSettingsFromMemory"][1]["argsT"][2]["type"] = "size_t" +defs["igLoadIniSettingsFromMemory"][1]["argsoriginal"] = "(const char* ini_data,size_t ini_size=0)" +defs["igLoadIniSettingsFromMemory"][1]["call_args"] = "(ini_data,ini_size)" +defs["igLoadIniSettingsFromMemory"][1]["cimguiname"] = "igLoadIniSettingsFromMemory" +defs["igLoadIniSettingsFromMemory"][1]["defaults"] = {} +defs["igLoadIniSettingsFromMemory"][1]["defaults"]["ini_size"] = "0" +defs["igLoadIniSettingsFromMemory"][1]["funcname"] = "LoadIniSettingsFromMemory" +defs["igLoadIniSettingsFromMemory"][1]["location"] = "imgui:960" +defs["igLoadIniSettingsFromMemory"][1]["namespace"] = "ImGui" +defs["igLoadIniSettingsFromMemory"][1]["ov_cimguiname"] = "igLoadIniSettingsFromMemory" +defs["igLoadIniSettingsFromMemory"][1]["ret"] = "void" +defs["igLoadIniSettingsFromMemory"][1]["signature"] = "(const char*,size_t)" +defs["igLoadIniSettingsFromMemory"][1]["stname"] = "" +defs["igLoadIniSettingsFromMemory"]["(const char*,size_t)"] = defs["igLoadIniSettingsFromMemory"][1] +defs["igLogButtons"] = {} +defs["igLogButtons"][1] = {} +defs["igLogButtons"][1]["args"] = "()" +defs["igLogButtons"][1]["argsT"] = {} +defs["igLogButtons"][1]["argsoriginal"] = "()" +defs["igLogButtons"][1]["call_args"] = "()" +defs["igLogButtons"][1]["cimguiname"] = "igLogButtons" +defs["igLogButtons"][1]["defaults"] = {} +defs["igLogButtons"][1]["funcname"] = "LogButtons" +defs["igLogButtons"][1]["location"] = "imgui:828" +defs["igLogButtons"][1]["namespace"] = "ImGui" +defs["igLogButtons"][1]["ov_cimguiname"] = "igLogButtons" +defs["igLogButtons"][1]["ret"] = "void" +defs["igLogButtons"][1]["signature"] = "()" +defs["igLogButtons"][1]["stname"] = "" +defs["igLogButtons"]["()"] = defs["igLogButtons"][1] +defs["igLogFinish"] = {} +defs["igLogFinish"][1] = {} +defs["igLogFinish"][1]["args"] = "()" +defs["igLogFinish"][1]["argsT"] = {} +defs["igLogFinish"][1]["argsoriginal"] = "()" +defs["igLogFinish"][1]["call_args"] = "()" +defs["igLogFinish"][1]["cimguiname"] = "igLogFinish" +defs["igLogFinish"][1]["defaults"] = {} +defs["igLogFinish"][1]["funcname"] = "LogFinish" +defs["igLogFinish"][1]["location"] = "imgui:827" +defs["igLogFinish"][1]["namespace"] = "ImGui" +defs["igLogFinish"][1]["ov_cimguiname"] = "igLogFinish" +defs["igLogFinish"][1]["ret"] = "void" +defs["igLogFinish"][1]["signature"] = "()" +defs["igLogFinish"][1]["stname"] = "" +defs["igLogFinish"]["()"] = defs["igLogFinish"][1] +defs["igLogText"] = {} +defs["igLogText"][1] = {} +defs["igLogText"][1]["args"] = "(const char* fmt,...)" +defs["igLogText"][1]["argsT"] = {} +defs["igLogText"][1]["argsT"][1] = {} +defs["igLogText"][1]["argsT"][1]["name"] = "fmt" +defs["igLogText"][1]["argsT"][1]["type"] = "const char*" +defs["igLogText"][1]["argsT"][2] = {} +defs["igLogText"][1]["argsT"][2]["name"] = "..." +defs["igLogText"][1]["argsT"][2]["type"] = "..." +defs["igLogText"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igLogText"][1]["call_args"] = "(fmt,...)" +defs["igLogText"][1]["cimguiname"] = "igLogText" +defs["igLogText"][1]["defaults"] = {} +defs["igLogText"][1]["funcname"] = "LogText" +defs["igLogText"][1]["isvararg"] = "...)" +defs["igLogText"][1]["location"] = "imgui:829" +defs["igLogText"][1]["manual"] = true +defs["igLogText"][1]["namespace"] = "ImGui" +defs["igLogText"][1]["ov_cimguiname"] = "igLogText" +defs["igLogText"][1]["ret"] = "void" +defs["igLogText"][1]["signature"] = "(const char*,...)" +defs["igLogText"][1]["stname"] = "" +defs["igLogText"]["(const char*,...)"] = defs["igLogText"][1] +defs["igLogTextV"] = {} +defs["igLogTextV"][1] = {} +defs["igLogTextV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igLogTextV"][1]["argsT"] = {} +defs["igLogTextV"][1]["argsT"][1] = {} +defs["igLogTextV"][1]["argsT"][1]["name"] = "fmt" +defs["igLogTextV"][1]["argsT"][1]["type"] = "const char*" +defs["igLogTextV"][1]["argsT"][2] = {} +defs["igLogTextV"][1]["argsT"][2]["name"] = "args" +defs["igLogTextV"][1]["argsT"][2]["type"] = "va_list" +defs["igLogTextV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igLogTextV"][1]["call_args"] = "(fmt,args)" +defs["igLogTextV"][1]["cimguiname"] = "igLogTextV" +defs["igLogTextV"][1]["defaults"] = {} +defs["igLogTextV"][1]["funcname"] = "LogTextV" +defs["igLogTextV"][1]["location"] = "imgui:830" +defs["igLogTextV"][1]["namespace"] = "ImGui" +defs["igLogTextV"][1]["ov_cimguiname"] = "igLogTextV" +defs["igLogTextV"][1]["ret"] = "void" +defs["igLogTextV"][1]["signature"] = "(const char*,va_list)" +defs["igLogTextV"][1]["stname"] = "" +defs["igLogTextV"]["(const char*,va_list)"] = defs["igLogTextV"][1] +defs["igLogToClipboard"] = {} +defs["igLogToClipboard"][1] = {} +defs["igLogToClipboard"][1]["args"] = "(int auto_open_depth)" +defs["igLogToClipboard"][1]["argsT"] = {} +defs["igLogToClipboard"][1]["argsT"][1] = {} +defs["igLogToClipboard"][1]["argsT"][1]["name"] = "auto_open_depth" +defs["igLogToClipboard"][1]["argsT"][1]["type"] = "int" +defs["igLogToClipboard"][1]["argsoriginal"] = "(int auto_open_depth=-1)" +defs["igLogToClipboard"][1]["call_args"] = "(auto_open_depth)" +defs["igLogToClipboard"][1]["cimguiname"] = "igLogToClipboard" +defs["igLogToClipboard"][1]["defaults"] = {} +defs["igLogToClipboard"][1]["defaults"]["auto_open_depth"] = "-1" +defs["igLogToClipboard"][1]["funcname"] = "LogToClipboard" +defs["igLogToClipboard"][1]["location"] = "imgui:826" +defs["igLogToClipboard"][1]["namespace"] = "ImGui" +defs["igLogToClipboard"][1]["ov_cimguiname"] = "igLogToClipboard" +defs["igLogToClipboard"][1]["ret"] = "void" +defs["igLogToClipboard"][1]["signature"] = "(int)" +defs["igLogToClipboard"][1]["stname"] = "" +defs["igLogToClipboard"]["(int)"] = defs["igLogToClipboard"][1] +defs["igLogToFile"] = {} +defs["igLogToFile"][1] = {} +defs["igLogToFile"][1]["args"] = "(int auto_open_depth,const char* filename)" +defs["igLogToFile"][1]["argsT"] = {} +defs["igLogToFile"][1]["argsT"][1] = {} +defs["igLogToFile"][1]["argsT"][1]["name"] = "auto_open_depth" +defs["igLogToFile"][1]["argsT"][1]["type"] = "int" +defs["igLogToFile"][1]["argsT"][2] = {} +defs["igLogToFile"][1]["argsT"][2]["name"] = "filename" +defs["igLogToFile"][1]["argsT"][2]["type"] = "const char*" +defs["igLogToFile"][1]["argsoriginal"] = "(int auto_open_depth=-1,const char* filename=((void*)0))" +defs["igLogToFile"][1]["call_args"] = "(auto_open_depth,filename)" +defs["igLogToFile"][1]["cimguiname"] = "igLogToFile" +defs["igLogToFile"][1]["defaults"] = {} +defs["igLogToFile"][1]["defaults"]["auto_open_depth"] = "-1" +defs["igLogToFile"][1]["defaults"]["filename"] = "NULL" +defs["igLogToFile"][1]["funcname"] = "LogToFile" +defs["igLogToFile"][1]["location"] = "imgui:825" +defs["igLogToFile"][1]["namespace"] = "ImGui" +defs["igLogToFile"][1]["ov_cimguiname"] = "igLogToFile" +defs["igLogToFile"][1]["ret"] = "void" +defs["igLogToFile"][1]["signature"] = "(int,const char*)" +defs["igLogToFile"][1]["stname"] = "" +defs["igLogToFile"]["(int,const char*)"] = defs["igLogToFile"][1] +defs["igLogToTTY"] = {} +defs["igLogToTTY"][1] = {} +defs["igLogToTTY"][1]["args"] = "(int auto_open_depth)" +defs["igLogToTTY"][1]["argsT"] = {} +defs["igLogToTTY"][1]["argsT"][1] = {} +defs["igLogToTTY"][1]["argsT"][1]["name"] = "auto_open_depth" +defs["igLogToTTY"][1]["argsT"][1]["type"] = "int" +defs["igLogToTTY"][1]["argsoriginal"] = "(int auto_open_depth=-1)" +defs["igLogToTTY"][1]["call_args"] = "(auto_open_depth)" +defs["igLogToTTY"][1]["cimguiname"] = "igLogToTTY" +defs["igLogToTTY"][1]["defaults"] = {} +defs["igLogToTTY"][1]["defaults"]["auto_open_depth"] = "-1" +defs["igLogToTTY"][1]["funcname"] = "LogToTTY" +defs["igLogToTTY"][1]["location"] = "imgui:824" +defs["igLogToTTY"][1]["namespace"] = "ImGui" +defs["igLogToTTY"][1]["ov_cimguiname"] = "igLogToTTY" +defs["igLogToTTY"][1]["ret"] = "void" +defs["igLogToTTY"][1]["signature"] = "(int)" +defs["igLogToTTY"][1]["stname"] = "" +defs["igLogToTTY"]["(int)"] = defs["igLogToTTY"][1] +defs["igMemAlloc"] = {} +defs["igMemAlloc"][1] = {} +defs["igMemAlloc"][1]["args"] = "(size_t size)" +defs["igMemAlloc"][1]["argsT"] = {} +defs["igMemAlloc"][1]["argsT"][1] = {} +defs["igMemAlloc"][1]["argsT"][1]["name"] = "size" +defs["igMemAlloc"][1]["argsT"][1]["type"] = "size_t" +defs["igMemAlloc"][1]["argsoriginal"] = "(size_t size)" +defs["igMemAlloc"][1]["call_args"] = "(size)" +defs["igMemAlloc"][1]["cimguiname"] = "igMemAlloc" +defs["igMemAlloc"][1]["defaults"] = {} +defs["igMemAlloc"][1]["funcname"] = "MemAlloc" +defs["igMemAlloc"][1]["location"] = "imgui:974" +defs["igMemAlloc"][1]["namespace"] = "ImGui" +defs["igMemAlloc"][1]["ov_cimguiname"] = "igMemAlloc" +defs["igMemAlloc"][1]["ret"] = "void*" +defs["igMemAlloc"][1]["signature"] = "(size_t)" +defs["igMemAlloc"][1]["stname"] = "" +defs["igMemAlloc"]["(size_t)"] = defs["igMemAlloc"][1] +defs["igMemFree"] = {} +defs["igMemFree"][1] = {} +defs["igMemFree"][1]["args"] = "(void* ptr)" +defs["igMemFree"][1]["argsT"] = {} +defs["igMemFree"][1]["argsT"][1] = {} +defs["igMemFree"][1]["argsT"][1]["name"] = "ptr" +defs["igMemFree"][1]["argsT"][1]["type"] = "void*" +defs["igMemFree"][1]["argsoriginal"] = "(void* ptr)" +defs["igMemFree"][1]["call_args"] = "(ptr)" +defs["igMemFree"][1]["cimguiname"] = "igMemFree" +defs["igMemFree"][1]["defaults"] = {} +defs["igMemFree"][1]["funcname"] = "MemFree" +defs["igMemFree"][1]["location"] = "imgui:975" +defs["igMemFree"][1]["namespace"] = "ImGui" +defs["igMemFree"][1]["ov_cimguiname"] = "igMemFree" +defs["igMemFree"][1]["ret"] = "void" +defs["igMemFree"][1]["signature"] = "(void*)" +defs["igMemFree"][1]["stname"] = "" +defs["igMemFree"]["(void*)"] = defs["igMemFree"][1] +defs["igMenuItem"] = {} +defs["igMenuItem"][1] = {} +defs["igMenuItem"][1]["args"] = "(const char* label,const char* shortcut,bool selected,bool enabled)" +defs["igMenuItem"][1]["argsT"] = {} +defs["igMenuItem"][1]["argsT"][1] = {} +defs["igMenuItem"][1]["argsT"][1]["name"] = "label" +defs["igMenuItem"][1]["argsT"][1]["type"] = "const char*" +defs["igMenuItem"][1]["argsT"][2] = {} +defs["igMenuItem"][1]["argsT"][2]["name"] = "shortcut" +defs["igMenuItem"][1]["argsT"][2]["type"] = "const char*" +defs["igMenuItem"][1]["argsT"][3] = {} +defs["igMenuItem"][1]["argsT"][3]["name"] = "selected" +defs["igMenuItem"][1]["argsT"][3]["type"] = "bool" +defs["igMenuItem"][1]["argsT"][4] = {} +defs["igMenuItem"][1]["argsT"][4]["name"] = "enabled" +defs["igMenuItem"][1]["argsT"][4]["type"] = "bool" +defs["igMenuItem"][1]["argsoriginal"] = "(const char* label,const char* shortcut=((void*)0),bool selected=false,bool enabled=true)" +defs["igMenuItem"][1]["call_args"] = "(label,shortcut,selected,enabled)" +defs["igMenuItem"][1]["cimguiname"] = "igMenuItem" +defs["igMenuItem"][1]["defaults"] = {} +defs["igMenuItem"][1]["defaults"]["enabled"] = "true" +defs["igMenuItem"][1]["defaults"]["selected"] = "false" +defs["igMenuItem"][1]["defaults"]["shortcut"] = "NULL" +defs["igMenuItem"][1]["funcname"] = "MenuItem" +defs["igMenuItem"][1]["location"] = "imgui:671" +defs["igMenuItem"][1]["namespace"] = "ImGui" +defs["igMenuItem"][1]["ov_cimguiname"] = "igMenuItem_Bool" +defs["igMenuItem"][1]["ret"] = "bool" +defs["igMenuItem"][1]["signature"] = "(const char*,const char*,bool,bool)" +defs["igMenuItem"][1]["stname"] = "" +defs["igMenuItem"][2] = {} +defs["igMenuItem"][2]["args"] = "(const char* label,const char* shortcut,bool* p_selected,bool enabled)" +defs["igMenuItem"][2]["argsT"] = {} +defs["igMenuItem"][2]["argsT"][1] = {} +defs["igMenuItem"][2]["argsT"][1]["name"] = "label" +defs["igMenuItem"][2]["argsT"][1]["type"] = "const char*" +defs["igMenuItem"][2]["argsT"][2] = {} +defs["igMenuItem"][2]["argsT"][2]["name"] = "shortcut" +defs["igMenuItem"][2]["argsT"][2]["type"] = "const char*" +defs["igMenuItem"][2]["argsT"][3] = {} +defs["igMenuItem"][2]["argsT"][3]["name"] = "p_selected" +defs["igMenuItem"][2]["argsT"][3]["type"] = "bool*" +defs["igMenuItem"][2]["argsT"][4] = {} +defs["igMenuItem"][2]["argsT"][4]["name"] = "enabled" +defs["igMenuItem"][2]["argsT"][4]["type"] = "bool" +defs["igMenuItem"][2]["argsoriginal"] = "(const char* label,const char* shortcut,bool* p_selected,bool enabled=true)" +defs["igMenuItem"][2]["call_args"] = "(label,shortcut,p_selected,enabled)" +defs["igMenuItem"][2]["cimguiname"] = "igMenuItem" +defs["igMenuItem"][2]["defaults"] = {} +defs["igMenuItem"][2]["defaults"]["enabled"] = "true" +defs["igMenuItem"][2]["funcname"] = "MenuItem" +defs["igMenuItem"][2]["location"] = "imgui:672" +defs["igMenuItem"][2]["namespace"] = "ImGui" +defs["igMenuItem"][2]["ov_cimguiname"] = "igMenuItem_BoolPtr" +defs["igMenuItem"][2]["ret"] = "bool" +defs["igMenuItem"][2]["signature"] = "(const char*,const char*,bool*,bool)" +defs["igMenuItem"][2]["stname"] = "" +defs["igMenuItem"]["(const char*,const char*,bool*,bool)"] = defs["igMenuItem"][2] +defs["igMenuItem"]["(const char*,const char*,bool,bool)"] = defs["igMenuItem"][1] +defs["igNewFrame"] = {} +defs["igNewFrame"][1] = {} +defs["igNewFrame"][1]["args"] = "()" +defs["igNewFrame"][1]["argsT"] = {} +defs["igNewFrame"][1]["argsoriginal"] = "()" +defs["igNewFrame"][1]["call_args"] = "()" +defs["igNewFrame"][1]["cimguiname"] = "igNewFrame" +defs["igNewFrame"][1]["defaults"] = {} +defs["igNewFrame"][1]["funcname"] = "NewFrame" +defs["igNewFrame"][1]["location"] = "imgui:302" +defs["igNewFrame"][1]["namespace"] = "ImGui" +defs["igNewFrame"][1]["ov_cimguiname"] = "igNewFrame" +defs["igNewFrame"][1]["ret"] = "void" +defs["igNewFrame"][1]["signature"] = "()" +defs["igNewFrame"][1]["stname"] = "" +defs["igNewFrame"]["()"] = defs["igNewFrame"][1] +defs["igNewLine"] = {} +defs["igNewLine"][1] = {} +defs["igNewLine"][1]["args"] = "()" +defs["igNewLine"][1]["argsT"] = {} +defs["igNewLine"][1]["argsoriginal"] = "()" +defs["igNewLine"][1]["call_args"] = "()" +defs["igNewLine"][1]["cimguiname"] = "igNewLine" +defs["igNewLine"][1]["defaults"] = {} +defs["igNewLine"][1]["funcname"] = "NewLine" +defs["igNewLine"][1]["location"] = "imgui:449" +defs["igNewLine"][1]["namespace"] = "ImGui" +defs["igNewLine"][1]["ov_cimguiname"] = "igNewLine" +defs["igNewLine"][1]["ret"] = "void" +defs["igNewLine"][1]["signature"] = "()" +defs["igNewLine"][1]["stname"] = "" +defs["igNewLine"]["()"] = defs["igNewLine"][1] +defs["igNextColumn"] = {} +defs["igNextColumn"][1] = {} +defs["igNextColumn"][1]["args"] = "()" +defs["igNextColumn"][1]["argsT"] = {} +defs["igNextColumn"][1]["argsoriginal"] = "()" +defs["igNextColumn"][1]["call_args"] = "()" +defs["igNextColumn"][1]["cimguiname"] = "igNextColumn" +defs["igNextColumn"][1]["defaults"] = {} +defs["igNextColumn"][1]["funcname"] = "NextColumn" +defs["igNextColumn"][1]["location"] = "imgui:785" +defs["igNextColumn"][1]["namespace"] = "ImGui" +defs["igNextColumn"][1]["ov_cimguiname"] = "igNextColumn" +defs["igNextColumn"][1]["ret"] = "void" +defs["igNextColumn"][1]["signature"] = "()" +defs["igNextColumn"][1]["stname"] = "" +defs["igNextColumn"]["()"] = defs["igNextColumn"][1] +defs["igOpenPopup"] = {} +defs["igOpenPopup"][1] = {} +defs["igOpenPopup"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igOpenPopup"][1]["argsT"] = {} +defs["igOpenPopup"][1]["argsT"][1] = {} +defs["igOpenPopup"][1]["argsT"][1]["name"] = "str_id" +defs["igOpenPopup"][1]["argsT"][1]["type"] = "const char*" +defs["igOpenPopup"][1]["argsT"][2] = {} +defs["igOpenPopup"][1]["argsT"][2]["name"] = "popup_flags" +defs["igOpenPopup"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igOpenPopup"][1]["argsoriginal"] = "(const char* str_id,ImGuiPopupFlags popup_flags=0)" +defs["igOpenPopup"][1]["call_args"] = "(str_id,popup_flags)" +defs["igOpenPopup"][1]["cimguiname"] = "igOpenPopup" +defs["igOpenPopup"][1]["defaults"] = {} +defs["igOpenPopup"][1]["defaults"]["popup_flags"] = "0" +defs["igOpenPopup"][1]["funcname"] = "OpenPopup" +defs["igOpenPopup"][1]["location"] = "imgui:705" +defs["igOpenPopup"][1]["namespace"] = "ImGui" +defs["igOpenPopup"][1]["ov_cimguiname"] = "igOpenPopup_Str" +defs["igOpenPopup"][1]["ret"] = "void" +defs["igOpenPopup"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igOpenPopup"][1]["stname"] = "" +defs["igOpenPopup"][2] = {} +defs["igOpenPopup"][2]["args"] = "(ImGuiID id,ImGuiPopupFlags popup_flags)" +defs["igOpenPopup"][2]["argsT"] = {} +defs["igOpenPopup"][2]["argsT"][1] = {} +defs["igOpenPopup"][2]["argsT"][1]["name"] = "id" +defs["igOpenPopup"][2]["argsT"][1]["type"] = "ImGuiID" +defs["igOpenPopup"][2]["argsT"][2] = {} +defs["igOpenPopup"][2]["argsT"][2]["name"] = "popup_flags" +defs["igOpenPopup"][2]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igOpenPopup"][2]["argsoriginal"] = "(ImGuiID id,ImGuiPopupFlags popup_flags=0)" +defs["igOpenPopup"][2]["call_args"] = "(id,popup_flags)" +defs["igOpenPopup"][2]["cimguiname"] = "igOpenPopup" +defs["igOpenPopup"][2]["defaults"] = {} +defs["igOpenPopup"][2]["defaults"]["popup_flags"] = "0" +defs["igOpenPopup"][2]["funcname"] = "OpenPopup" +defs["igOpenPopup"][2]["location"] = "imgui:706" +defs["igOpenPopup"][2]["namespace"] = "ImGui" +defs["igOpenPopup"][2]["ov_cimguiname"] = "igOpenPopup_ID" +defs["igOpenPopup"][2]["ret"] = "void" +defs["igOpenPopup"][2]["signature"] = "(ImGuiID,ImGuiPopupFlags)" +defs["igOpenPopup"][2]["stname"] = "" +defs["igOpenPopup"]["(ImGuiID,ImGuiPopupFlags)"] = defs["igOpenPopup"][2] +defs["igOpenPopup"]["(const char*,ImGuiPopupFlags)"] = defs["igOpenPopup"][1] +defs["igOpenPopupOnItemClick"] = {} +defs["igOpenPopupOnItemClick"][1] = {} +defs["igOpenPopupOnItemClick"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igOpenPopupOnItemClick"][1]["argsT"] = {} +defs["igOpenPopupOnItemClick"][1]["argsT"][1] = {} +defs["igOpenPopupOnItemClick"][1]["argsT"][1]["name"] = "str_id" +defs["igOpenPopupOnItemClick"][1]["argsT"][1]["type"] = "const char*" +defs["igOpenPopupOnItemClick"][1]["argsT"][2] = {} +defs["igOpenPopupOnItemClick"][1]["argsT"][2]["name"] = "popup_flags" +defs["igOpenPopupOnItemClick"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igOpenPopupOnItemClick"][1]["argsoriginal"] = "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)" +defs["igOpenPopupOnItemClick"][1]["call_args"] = "(str_id,popup_flags)" +defs["igOpenPopupOnItemClick"][1]["cimguiname"] = "igOpenPopupOnItemClick" +defs["igOpenPopupOnItemClick"][1]["defaults"] = {} +defs["igOpenPopupOnItemClick"][1]["defaults"]["popup_flags"] = "1" +defs["igOpenPopupOnItemClick"][1]["defaults"]["str_id"] = "NULL" +defs["igOpenPopupOnItemClick"][1]["funcname"] = "OpenPopupOnItemClick" +defs["igOpenPopupOnItemClick"][1]["location"] = "imgui:707" +defs["igOpenPopupOnItemClick"][1]["namespace"] = "ImGui" +defs["igOpenPopupOnItemClick"][1]["ov_cimguiname"] = "igOpenPopupOnItemClick" +defs["igOpenPopupOnItemClick"][1]["ret"] = "void" +defs["igOpenPopupOnItemClick"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igOpenPopupOnItemClick"][1]["stname"] = "" +defs["igOpenPopupOnItemClick"]["(const char*,ImGuiPopupFlags)"] = defs["igOpenPopupOnItemClick"][1] +defs["igPlotHistogram"] = {} +defs["igPlotHistogram"][1] = {} +defs["igPlotHistogram"][1]["args"] = "(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)" +defs["igPlotHistogram"][1]["argsT"] = {} +defs["igPlotHistogram"][1]["argsT"][1] = {} +defs["igPlotHistogram"][1]["argsT"][1]["name"] = "label" +defs["igPlotHistogram"][1]["argsT"][1]["type"] = "const char*" +defs["igPlotHistogram"][1]["argsT"][2] = {} +defs["igPlotHistogram"][1]["argsT"][2]["name"] = "values" +defs["igPlotHistogram"][1]["argsT"][2]["type"] = "const float*" +defs["igPlotHistogram"][1]["argsT"][3] = {} +defs["igPlotHistogram"][1]["argsT"][3]["name"] = "values_count" +defs["igPlotHistogram"][1]["argsT"][3]["type"] = "int" +defs["igPlotHistogram"][1]["argsT"][4] = {} +defs["igPlotHistogram"][1]["argsT"][4]["name"] = "values_offset" +defs["igPlotHistogram"][1]["argsT"][4]["type"] = "int" +defs["igPlotHistogram"][1]["argsT"][5] = {} +defs["igPlotHistogram"][1]["argsT"][5]["name"] = "overlay_text" +defs["igPlotHistogram"][1]["argsT"][5]["type"] = "const char*" +defs["igPlotHistogram"][1]["argsT"][6] = {} +defs["igPlotHistogram"][1]["argsT"][6]["name"] = "scale_min" +defs["igPlotHistogram"][1]["argsT"][6]["type"] = "float" +defs["igPlotHistogram"][1]["argsT"][7] = {} +defs["igPlotHistogram"][1]["argsT"][7]["name"] = "scale_max" +defs["igPlotHistogram"][1]["argsT"][7]["type"] = "float" +defs["igPlotHistogram"][1]["argsT"][8] = {} +defs["igPlotHistogram"][1]["argsT"][8]["name"] = "graph_size" +defs["igPlotHistogram"][1]["argsT"][8]["type"] = "ImVec2" +defs["igPlotHistogram"][1]["argsT"][9] = {} +defs["igPlotHistogram"][1]["argsT"][9]["name"] = "stride" +defs["igPlotHistogram"][1]["argsT"][9]["type"] = "int" +defs["igPlotHistogram"][1]["argsoriginal"] = "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))" +defs["igPlotHistogram"][1]["call_args"] = "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)" +defs["igPlotHistogram"][1]["cimguiname"] = "igPlotHistogram" +defs["igPlotHistogram"][1]["defaults"] = {} +defs["igPlotHistogram"][1]["defaults"]["graph_size"] = "ImVec2(0,0)" +defs["igPlotHistogram"][1]["defaults"]["overlay_text"] = "NULL" +defs["igPlotHistogram"][1]["defaults"]["scale_max"] = "FLT_MAX" +defs["igPlotHistogram"][1]["defaults"]["scale_min"] = "FLT_MAX" +defs["igPlotHistogram"][1]["defaults"]["stride"] = "sizeof(float)" +defs["igPlotHistogram"][1]["defaults"]["values_offset"] = "0" +defs["igPlotHistogram"][1]["funcname"] = "PlotHistogram" +defs["igPlotHistogram"][1]["location"] = "imgui:650" +defs["igPlotHistogram"][1]["namespace"] = "ImGui" +defs["igPlotHistogram"][1]["ov_cimguiname"] = "igPlotHistogram_FloatPtr" +defs["igPlotHistogram"][1]["ret"] = "void" +defs["igPlotHistogram"][1]["signature"] = "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)" +defs["igPlotHistogram"][1]["stname"] = "" +defs["igPlotHistogram"][2] = {} +defs["igPlotHistogram"][2]["args"] = "(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)" +defs["igPlotHistogram"][2]["argsT"] = {} +defs["igPlotHistogram"][2]["argsT"][1] = {} +defs["igPlotHistogram"][2]["argsT"][1]["name"] = "label" +defs["igPlotHistogram"][2]["argsT"][1]["type"] = "const char*" +defs["igPlotHistogram"][2]["argsT"][2] = {} +defs["igPlotHistogram"][2]["argsT"][2]["name"] = "values_getter" +defs["igPlotHistogram"][2]["argsT"][2]["ret"] = "float" +defs["igPlotHistogram"][2]["argsT"][2]["signature"] = "(void* data,int idx)" +defs["igPlotHistogram"][2]["argsT"][2]["type"] = "float(*)(void* data,int idx)" +defs["igPlotHistogram"][2]["argsT"][3] = {} +defs["igPlotHistogram"][2]["argsT"][3]["name"] = "data" +defs["igPlotHistogram"][2]["argsT"][3]["type"] = "void*" +defs["igPlotHistogram"][2]["argsT"][4] = {} +defs["igPlotHistogram"][2]["argsT"][4]["name"] = "values_count" +defs["igPlotHistogram"][2]["argsT"][4]["type"] = "int" +defs["igPlotHistogram"][2]["argsT"][5] = {} +defs["igPlotHistogram"][2]["argsT"][5]["name"] = "values_offset" +defs["igPlotHistogram"][2]["argsT"][5]["type"] = "int" +defs["igPlotHistogram"][2]["argsT"][6] = {} +defs["igPlotHistogram"][2]["argsT"][6]["name"] = "overlay_text" +defs["igPlotHistogram"][2]["argsT"][6]["type"] = "const char*" +defs["igPlotHistogram"][2]["argsT"][7] = {} +defs["igPlotHistogram"][2]["argsT"][7]["name"] = "scale_min" +defs["igPlotHistogram"][2]["argsT"][7]["type"] = "float" +defs["igPlotHistogram"][2]["argsT"][8] = {} +defs["igPlotHistogram"][2]["argsT"][8]["name"] = "scale_max" +defs["igPlotHistogram"][2]["argsT"][8]["type"] = "float" +defs["igPlotHistogram"][2]["argsT"][9] = {} +defs["igPlotHistogram"][2]["argsT"][9]["name"] = "graph_size" +defs["igPlotHistogram"][2]["argsT"][9]["type"] = "ImVec2" +defs["igPlotHistogram"][2]["argsoriginal"] = "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))" +defs["igPlotHistogram"][2]["call_args"] = "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)" +defs["igPlotHistogram"][2]["cimguiname"] = "igPlotHistogram" +defs["igPlotHistogram"][2]["defaults"] = {} +defs["igPlotHistogram"][2]["defaults"]["graph_size"] = "ImVec2(0,0)" +defs["igPlotHistogram"][2]["defaults"]["overlay_text"] = "NULL" +defs["igPlotHistogram"][2]["defaults"]["scale_max"] = "FLT_MAX" +defs["igPlotHistogram"][2]["defaults"]["scale_min"] = "FLT_MAX" +defs["igPlotHistogram"][2]["defaults"]["values_offset"] = "0" +defs["igPlotHistogram"][2]["funcname"] = "PlotHistogram" +defs["igPlotHistogram"][2]["location"] = "imgui:651" +defs["igPlotHistogram"][2]["namespace"] = "ImGui" +defs["igPlotHistogram"][2]["ov_cimguiname"] = "igPlotHistogram_FnFloatPtr" +defs["igPlotHistogram"][2]["ret"] = "void" +defs["igPlotHistogram"][2]["signature"] = "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)" +defs["igPlotHistogram"][2]["stname"] = "" +defs["igPlotHistogram"]["(const char*,const float*,int,int,const char*,float,float,ImVec2,int)"] = defs["igPlotHistogram"][1] +defs["igPlotHistogram"]["(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)"] = defs["igPlotHistogram"][2] +defs["igPlotLines"] = {} +defs["igPlotLines"][1] = {} +defs["igPlotLines"][1]["args"] = "(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)" +defs["igPlotLines"][1]["argsT"] = {} +defs["igPlotLines"][1]["argsT"][1] = {} +defs["igPlotLines"][1]["argsT"][1]["name"] = "label" +defs["igPlotLines"][1]["argsT"][1]["type"] = "const char*" +defs["igPlotLines"][1]["argsT"][2] = {} +defs["igPlotLines"][1]["argsT"][2]["name"] = "values" +defs["igPlotLines"][1]["argsT"][2]["type"] = "const float*" +defs["igPlotLines"][1]["argsT"][3] = {} +defs["igPlotLines"][1]["argsT"][3]["name"] = "values_count" +defs["igPlotLines"][1]["argsT"][3]["type"] = "int" +defs["igPlotLines"][1]["argsT"][4] = {} +defs["igPlotLines"][1]["argsT"][4]["name"] = "values_offset" +defs["igPlotLines"][1]["argsT"][4]["type"] = "int" +defs["igPlotLines"][1]["argsT"][5] = {} +defs["igPlotLines"][1]["argsT"][5]["name"] = "overlay_text" +defs["igPlotLines"][1]["argsT"][5]["type"] = "const char*" +defs["igPlotLines"][1]["argsT"][6] = {} +defs["igPlotLines"][1]["argsT"][6]["name"] = "scale_min" +defs["igPlotLines"][1]["argsT"][6]["type"] = "float" +defs["igPlotLines"][1]["argsT"][7] = {} +defs["igPlotLines"][1]["argsT"][7]["name"] = "scale_max" +defs["igPlotLines"][1]["argsT"][7]["type"] = "float" +defs["igPlotLines"][1]["argsT"][8] = {} +defs["igPlotLines"][1]["argsT"][8]["name"] = "graph_size" +defs["igPlotLines"][1]["argsT"][8]["type"] = "ImVec2" +defs["igPlotLines"][1]["argsT"][9] = {} +defs["igPlotLines"][1]["argsT"][9]["name"] = "stride" +defs["igPlotLines"][1]["argsT"][9]["type"] = "int" +defs["igPlotLines"][1]["argsoriginal"] = "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))" +defs["igPlotLines"][1]["call_args"] = "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)" +defs["igPlotLines"][1]["cimguiname"] = "igPlotLines" +defs["igPlotLines"][1]["defaults"] = {} +defs["igPlotLines"][1]["defaults"]["graph_size"] = "ImVec2(0,0)" +defs["igPlotLines"][1]["defaults"]["overlay_text"] = "NULL" +defs["igPlotLines"][1]["defaults"]["scale_max"] = "FLT_MAX" +defs["igPlotLines"][1]["defaults"]["scale_min"] = "FLT_MAX" +defs["igPlotLines"][1]["defaults"]["stride"] = "sizeof(float)" +defs["igPlotLines"][1]["defaults"]["values_offset"] = "0" +defs["igPlotLines"][1]["funcname"] = "PlotLines" +defs["igPlotLines"][1]["location"] = "imgui:648" +defs["igPlotLines"][1]["namespace"] = "ImGui" +defs["igPlotLines"][1]["ov_cimguiname"] = "igPlotLines_FloatPtr" +defs["igPlotLines"][1]["ret"] = "void" +defs["igPlotLines"][1]["signature"] = "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)" +defs["igPlotLines"][1]["stname"] = "" +defs["igPlotLines"][2] = {} +defs["igPlotLines"][2]["args"] = "(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)" +defs["igPlotLines"][2]["argsT"] = {} +defs["igPlotLines"][2]["argsT"][1] = {} +defs["igPlotLines"][2]["argsT"][1]["name"] = "label" +defs["igPlotLines"][2]["argsT"][1]["type"] = "const char*" +defs["igPlotLines"][2]["argsT"][2] = {} +defs["igPlotLines"][2]["argsT"][2]["name"] = "values_getter" +defs["igPlotLines"][2]["argsT"][2]["ret"] = "float" +defs["igPlotLines"][2]["argsT"][2]["signature"] = "(void* data,int idx)" +defs["igPlotLines"][2]["argsT"][2]["type"] = "float(*)(void* data,int idx)" +defs["igPlotLines"][2]["argsT"][3] = {} +defs["igPlotLines"][2]["argsT"][3]["name"] = "data" +defs["igPlotLines"][2]["argsT"][3]["type"] = "void*" +defs["igPlotLines"][2]["argsT"][4] = {} +defs["igPlotLines"][2]["argsT"][4]["name"] = "values_count" +defs["igPlotLines"][2]["argsT"][4]["type"] = "int" +defs["igPlotLines"][2]["argsT"][5] = {} +defs["igPlotLines"][2]["argsT"][5]["name"] = "values_offset" +defs["igPlotLines"][2]["argsT"][5]["type"] = "int" +defs["igPlotLines"][2]["argsT"][6] = {} +defs["igPlotLines"][2]["argsT"][6]["name"] = "overlay_text" +defs["igPlotLines"][2]["argsT"][6]["type"] = "const char*" +defs["igPlotLines"][2]["argsT"][7] = {} +defs["igPlotLines"][2]["argsT"][7]["name"] = "scale_min" +defs["igPlotLines"][2]["argsT"][7]["type"] = "float" +defs["igPlotLines"][2]["argsT"][8] = {} +defs["igPlotLines"][2]["argsT"][8]["name"] = "scale_max" +defs["igPlotLines"][2]["argsT"][8]["type"] = "float" +defs["igPlotLines"][2]["argsT"][9] = {} +defs["igPlotLines"][2]["argsT"][9]["name"] = "graph_size" +defs["igPlotLines"][2]["argsT"][9]["type"] = "ImVec2" +defs["igPlotLines"][2]["argsoriginal"] = "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))" +defs["igPlotLines"][2]["call_args"] = "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)" +defs["igPlotLines"][2]["cimguiname"] = "igPlotLines" +defs["igPlotLines"][2]["defaults"] = {} +defs["igPlotLines"][2]["defaults"]["graph_size"] = "ImVec2(0,0)" +defs["igPlotLines"][2]["defaults"]["overlay_text"] = "NULL" +defs["igPlotLines"][2]["defaults"]["scale_max"] = "FLT_MAX" +defs["igPlotLines"][2]["defaults"]["scale_min"] = "FLT_MAX" +defs["igPlotLines"][2]["defaults"]["values_offset"] = "0" +defs["igPlotLines"][2]["funcname"] = "PlotLines" +defs["igPlotLines"][2]["location"] = "imgui:649" +defs["igPlotLines"][2]["namespace"] = "ImGui" +defs["igPlotLines"][2]["ov_cimguiname"] = "igPlotLines_FnFloatPtr" +defs["igPlotLines"][2]["ret"] = "void" +defs["igPlotLines"][2]["signature"] = "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)" +defs["igPlotLines"][2]["stname"] = "" +defs["igPlotLines"]["(const char*,const float*,int,int,const char*,float,float,ImVec2,int)"] = defs["igPlotLines"][1] +defs["igPlotLines"]["(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)"] = defs["igPlotLines"][2] +defs["igPopAllowKeyboardFocus"] = {} +defs["igPopAllowKeyboardFocus"][1] = {} +defs["igPopAllowKeyboardFocus"][1]["args"] = "()" +defs["igPopAllowKeyboardFocus"][1]["argsT"] = {} +defs["igPopAllowKeyboardFocus"][1]["argsoriginal"] = "()" +defs["igPopAllowKeyboardFocus"][1]["call_args"] = "()" +defs["igPopAllowKeyboardFocus"][1]["cimguiname"] = "igPopAllowKeyboardFocus" +defs["igPopAllowKeyboardFocus"][1]["defaults"] = {} +defs["igPopAllowKeyboardFocus"][1]["funcname"] = "PopAllowKeyboardFocus" +defs["igPopAllowKeyboardFocus"][1]["location"] = "imgui:418" +defs["igPopAllowKeyboardFocus"][1]["namespace"] = "ImGui" +defs["igPopAllowKeyboardFocus"][1]["ov_cimguiname"] = "igPopAllowKeyboardFocus" +defs["igPopAllowKeyboardFocus"][1]["ret"] = "void" +defs["igPopAllowKeyboardFocus"][1]["signature"] = "()" +defs["igPopAllowKeyboardFocus"][1]["stname"] = "" +defs["igPopAllowKeyboardFocus"]["()"] = defs["igPopAllowKeyboardFocus"][1] +defs["igPopButtonRepeat"] = {} +defs["igPopButtonRepeat"][1] = {} +defs["igPopButtonRepeat"][1]["args"] = "()" +defs["igPopButtonRepeat"][1]["argsT"] = {} +defs["igPopButtonRepeat"][1]["argsoriginal"] = "()" +defs["igPopButtonRepeat"][1]["call_args"] = "()" +defs["igPopButtonRepeat"][1]["cimguiname"] = "igPopButtonRepeat" +defs["igPopButtonRepeat"][1]["defaults"] = {} +defs["igPopButtonRepeat"][1]["funcname"] = "PopButtonRepeat" +defs["igPopButtonRepeat"][1]["location"] = "imgui:420" +defs["igPopButtonRepeat"][1]["namespace"] = "ImGui" +defs["igPopButtonRepeat"][1]["ov_cimguiname"] = "igPopButtonRepeat" +defs["igPopButtonRepeat"][1]["ret"] = "void" +defs["igPopButtonRepeat"][1]["signature"] = "()" +defs["igPopButtonRepeat"][1]["stname"] = "" +defs["igPopButtonRepeat"]["()"] = defs["igPopButtonRepeat"][1] +defs["igPopClipRect"] = {} +defs["igPopClipRect"][1] = {} +defs["igPopClipRect"][1]["args"] = "()" +defs["igPopClipRect"][1]["argsT"] = {} +defs["igPopClipRect"][1]["argsoriginal"] = "()" +defs["igPopClipRect"][1]["call_args"] = "()" +defs["igPopClipRect"][1]["cimguiname"] = "igPopClipRect" +defs["igPopClipRect"][1]["defaults"] = {} +defs["igPopClipRect"][1]["funcname"] = "PopClipRect" +defs["igPopClipRect"][1]["location"] = "imgui:855" +defs["igPopClipRect"][1]["namespace"] = "ImGui" +defs["igPopClipRect"][1]["ov_cimguiname"] = "igPopClipRect" +defs["igPopClipRect"][1]["ret"] = "void" +defs["igPopClipRect"][1]["signature"] = "()" +defs["igPopClipRect"][1]["stname"] = "" +defs["igPopClipRect"]["()"] = defs["igPopClipRect"][1] +defs["igPopFont"] = {} +defs["igPopFont"][1] = {} +defs["igPopFont"][1]["args"] = "()" +defs["igPopFont"][1]["argsT"] = {} +defs["igPopFont"][1]["argsoriginal"] = "()" +defs["igPopFont"][1]["call_args"] = "()" +defs["igPopFont"][1]["cimguiname"] = "igPopFont" +defs["igPopFont"][1]["defaults"] = {} +defs["igPopFont"][1]["funcname"] = "PopFont" +defs["igPopFont"][1]["location"] = "imgui:410" +defs["igPopFont"][1]["namespace"] = "ImGui" +defs["igPopFont"][1]["ov_cimguiname"] = "igPopFont" +defs["igPopFont"][1]["ret"] = "void" +defs["igPopFont"][1]["signature"] = "()" +defs["igPopFont"][1]["stname"] = "" +defs["igPopFont"]["()"] = defs["igPopFont"][1] +defs["igPopID"] = {} +defs["igPopID"][1] = {} +defs["igPopID"][1]["args"] = "()" +defs["igPopID"][1]["argsT"] = {} +defs["igPopID"][1]["argsoriginal"] = "()" +defs["igPopID"][1]["call_args"] = "()" +defs["igPopID"][1]["cimguiname"] = "igPopID" +defs["igPopID"][1]["defaults"] = {} +defs["igPopID"][1]["funcname"] = "PopID" +defs["igPopID"][1]["location"] = "imgui:486" +defs["igPopID"][1]["namespace"] = "ImGui" +defs["igPopID"][1]["ov_cimguiname"] = "igPopID" +defs["igPopID"][1]["ret"] = "void" +defs["igPopID"][1]["signature"] = "()" +defs["igPopID"][1]["stname"] = "" +defs["igPopID"]["()"] = defs["igPopID"][1] +defs["igPopItemWidth"] = {} +defs["igPopItemWidth"][1] = {} +defs["igPopItemWidth"][1]["args"] = "()" +defs["igPopItemWidth"][1]["argsT"] = {} +defs["igPopItemWidth"][1]["argsoriginal"] = "()" +defs["igPopItemWidth"][1]["call_args"] = "()" +defs["igPopItemWidth"][1]["cimguiname"] = "igPopItemWidth" +defs["igPopItemWidth"][1]["defaults"] = {} +defs["igPopItemWidth"][1]["funcname"] = "PopItemWidth" +defs["igPopItemWidth"][1]["location"] = "imgui:424" +defs["igPopItemWidth"][1]["namespace"] = "ImGui" +defs["igPopItemWidth"][1]["ov_cimguiname"] = "igPopItemWidth" +defs["igPopItemWidth"][1]["ret"] = "void" +defs["igPopItemWidth"][1]["signature"] = "()" +defs["igPopItemWidth"][1]["stname"] = "" +defs["igPopItemWidth"]["()"] = defs["igPopItemWidth"][1] +defs["igPopStyleColor"] = {} +defs["igPopStyleColor"][1] = {} +defs["igPopStyleColor"][1]["args"] = "(int count)" +defs["igPopStyleColor"][1]["argsT"] = {} +defs["igPopStyleColor"][1]["argsT"][1] = {} +defs["igPopStyleColor"][1]["argsT"][1]["name"] = "count" +defs["igPopStyleColor"][1]["argsT"][1]["type"] = "int" +defs["igPopStyleColor"][1]["argsoriginal"] = "(int count=1)" +defs["igPopStyleColor"][1]["call_args"] = "(count)" +defs["igPopStyleColor"][1]["cimguiname"] = "igPopStyleColor" +defs["igPopStyleColor"][1]["defaults"] = {} +defs["igPopStyleColor"][1]["defaults"]["count"] = "1" +defs["igPopStyleColor"][1]["funcname"] = "PopStyleColor" +defs["igPopStyleColor"][1]["location"] = "imgui:413" +defs["igPopStyleColor"][1]["namespace"] = "ImGui" +defs["igPopStyleColor"][1]["ov_cimguiname"] = "igPopStyleColor" +defs["igPopStyleColor"][1]["ret"] = "void" +defs["igPopStyleColor"][1]["signature"] = "(int)" +defs["igPopStyleColor"][1]["stname"] = "" +defs["igPopStyleColor"]["(int)"] = defs["igPopStyleColor"][1] +defs["igPopStyleVar"] = {} +defs["igPopStyleVar"][1] = {} +defs["igPopStyleVar"][1]["args"] = "(int count)" +defs["igPopStyleVar"][1]["argsT"] = {} +defs["igPopStyleVar"][1]["argsT"][1] = {} +defs["igPopStyleVar"][1]["argsT"][1]["name"] = "count" +defs["igPopStyleVar"][1]["argsT"][1]["type"] = "int" +defs["igPopStyleVar"][1]["argsoriginal"] = "(int count=1)" +defs["igPopStyleVar"][1]["call_args"] = "(count)" +defs["igPopStyleVar"][1]["cimguiname"] = "igPopStyleVar" +defs["igPopStyleVar"][1]["defaults"] = {} +defs["igPopStyleVar"][1]["defaults"]["count"] = "1" +defs["igPopStyleVar"][1]["funcname"] = "PopStyleVar" +defs["igPopStyleVar"][1]["location"] = "imgui:416" +defs["igPopStyleVar"][1]["namespace"] = "ImGui" +defs["igPopStyleVar"][1]["ov_cimguiname"] = "igPopStyleVar" +defs["igPopStyleVar"][1]["ret"] = "void" +defs["igPopStyleVar"][1]["signature"] = "(int)" +defs["igPopStyleVar"][1]["stname"] = "" +defs["igPopStyleVar"]["(int)"] = defs["igPopStyleVar"][1] +defs["igPopTextWrapPos"] = {} +defs["igPopTextWrapPos"][1] = {} +defs["igPopTextWrapPos"][1]["args"] = "()" +defs["igPopTextWrapPos"][1]["argsT"] = {} +defs["igPopTextWrapPos"][1]["argsoriginal"] = "()" +defs["igPopTextWrapPos"][1]["call_args"] = "()" +defs["igPopTextWrapPos"][1]["cimguiname"] = "igPopTextWrapPos" +defs["igPopTextWrapPos"][1]["defaults"] = {} +defs["igPopTextWrapPos"][1]["funcname"] = "PopTextWrapPos" +defs["igPopTextWrapPos"][1]["location"] = "imgui:428" +defs["igPopTextWrapPos"][1]["namespace"] = "ImGui" +defs["igPopTextWrapPos"][1]["ov_cimguiname"] = "igPopTextWrapPos" +defs["igPopTextWrapPos"][1]["ret"] = "void" +defs["igPopTextWrapPos"][1]["signature"] = "()" +defs["igPopTextWrapPos"][1]["stname"] = "" +defs["igPopTextWrapPos"]["()"] = defs["igPopTextWrapPos"][1] +defs["igProgressBar"] = {} +defs["igProgressBar"][1] = {} +defs["igProgressBar"][1]["args"] = "(float fraction,const ImVec2 size_arg,const char* overlay)" +defs["igProgressBar"][1]["argsT"] = {} +defs["igProgressBar"][1]["argsT"][1] = {} +defs["igProgressBar"][1]["argsT"][1]["name"] = "fraction" +defs["igProgressBar"][1]["argsT"][1]["type"] = "float" +defs["igProgressBar"][1]["argsT"][2] = {} +defs["igProgressBar"][1]["argsT"][2]["name"] = "size_arg" +defs["igProgressBar"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igProgressBar"][1]["argsT"][3] = {} +defs["igProgressBar"][1]["argsT"][3]["name"] = "overlay" +defs["igProgressBar"][1]["argsT"][3]["type"] = "const char*" +defs["igProgressBar"][1]["argsoriginal"] = "(float fraction,const ImVec2& size_arg=ImVec2(-1.17549435082228750796873653722224568e-38F,0),const char* overlay=((void*)0))" +defs["igProgressBar"][1]["call_args"] = "(fraction,size_arg,overlay)" +defs["igProgressBar"][1]["cimguiname"] = "igProgressBar" +defs["igProgressBar"][1]["defaults"] = {} +defs["igProgressBar"][1]["defaults"]["overlay"] = "NULL" +defs["igProgressBar"][1]["defaults"]["size_arg"] = "ImVec2(-FLT_MIN,0)" +defs["igProgressBar"][1]["funcname"] = "ProgressBar" +defs["igProgressBar"][1]["location"] = "imgui:518" +defs["igProgressBar"][1]["namespace"] = "ImGui" +defs["igProgressBar"][1]["ov_cimguiname"] = "igProgressBar" +defs["igProgressBar"][1]["ret"] = "void" +defs["igProgressBar"][1]["signature"] = "(float,const ImVec2,const char*)" +defs["igProgressBar"][1]["stname"] = "" +defs["igProgressBar"]["(float,const ImVec2,const char*)"] = defs["igProgressBar"][1] +defs["igPushAllowKeyboardFocus"] = {} +defs["igPushAllowKeyboardFocus"][1] = {} +defs["igPushAllowKeyboardFocus"][1]["args"] = "(bool allow_keyboard_focus)" +defs["igPushAllowKeyboardFocus"][1]["argsT"] = {} +defs["igPushAllowKeyboardFocus"][1]["argsT"][1] = {} +defs["igPushAllowKeyboardFocus"][1]["argsT"][1]["name"] = "allow_keyboard_focus" +defs["igPushAllowKeyboardFocus"][1]["argsT"][1]["type"] = "bool" +defs["igPushAllowKeyboardFocus"][1]["argsoriginal"] = "(bool allow_keyboard_focus)" +defs["igPushAllowKeyboardFocus"][1]["call_args"] = "(allow_keyboard_focus)" +defs["igPushAllowKeyboardFocus"][1]["cimguiname"] = "igPushAllowKeyboardFocus" +defs["igPushAllowKeyboardFocus"][1]["defaults"] = {} +defs["igPushAllowKeyboardFocus"][1]["funcname"] = "PushAllowKeyboardFocus" +defs["igPushAllowKeyboardFocus"][1]["location"] = "imgui:417" +defs["igPushAllowKeyboardFocus"][1]["namespace"] = "ImGui" +defs["igPushAllowKeyboardFocus"][1]["ov_cimguiname"] = "igPushAllowKeyboardFocus" +defs["igPushAllowKeyboardFocus"][1]["ret"] = "void" +defs["igPushAllowKeyboardFocus"][1]["signature"] = "(bool)" +defs["igPushAllowKeyboardFocus"][1]["stname"] = "" +defs["igPushAllowKeyboardFocus"]["(bool)"] = defs["igPushAllowKeyboardFocus"][1] +defs["igPushButtonRepeat"] = {} +defs["igPushButtonRepeat"][1] = {} +defs["igPushButtonRepeat"][1]["args"] = "(bool repeat)" +defs["igPushButtonRepeat"][1]["argsT"] = {} +defs["igPushButtonRepeat"][1]["argsT"][1] = {} +defs["igPushButtonRepeat"][1]["argsT"][1]["name"] = "repeat" +defs["igPushButtonRepeat"][1]["argsT"][1]["type"] = "bool" +defs["igPushButtonRepeat"][1]["argsoriginal"] = "(bool repeat)" +defs["igPushButtonRepeat"][1]["call_args"] = "(repeat)" +defs["igPushButtonRepeat"][1]["cimguiname"] = "igPushButtonRepeat" +defs["igPushButtonRepeat"][1]["defaults"] = {} +defs["igPushButtonRepeat"][1]["funcname"] = "PushButtonRepeat" +defs["igPushButtonRepeat"][1]["location"] = "imgui:419" +defs["igPushButtonRepeat"][1]["namespace"] = "ImGui" +defs["igPushButtonRepeat"][1]["ov_cimguiname"] = "igPushButtonRepeat" +defs["igPushButtonRepeat"][1]["ret"] = "void" +defs["igPushButtonRepeat"][1]["signature"] = "(bool)" +defs["igPushButtonRepeat"][1]["stname"] = "" +defs["igPushButtonRepeat"]["(bool)"] = defs["igPushButtonRepeat"][1] +defs["igPushClipRect"] = {} +defs["igPushClipRect"][1] = {} +defs["igPushClipRect"][1]["args"] = "(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)" +defs["igPushClipRect"][1]["argsT"] = {} +defs["igPushClipRect"][1]["argsT"][1] = {} +defs["igPushClipRect"][1]["argsT"][1]["name"] = "clip_rect_min" +defs["igPushClipRect"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igPushClipRect"][1]["argsT"][2] = {} +defs["igPushClipRect"][1]["argsT"][2]["name"] = "clip_rect_max" +defs["igPushClipRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igPushClipRect"][1]["argsT"][3] = {} +defs["igPushClipRect"][1]["argsT"][3]["name"] = "intersect_with_current_clip_rect" +defs["igPushClipRect"][1]["argsT"][3]["type"] = "bool" +defs["igPushClipRect"][1]["argsoriginal"] = "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect)" +defs["igPushClipRect"][1]["call_args"] = "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)" +defs["igPushClipRect"][1]["cimguiname"] = "igPushClipRect" +defs["igPushClipRect"][1]["defaults"] = {} +defs["igPushClipRect"][1]["funcname"] = "PushClipRect" +defs["igPushClipRect"][1]["location"] = "imgui:854" +defs["igPushClipRect"][1]["namespace"] = "ImGui" +defs["igPushClipRect"][1]["ov_cimguiname"] = "igPushClipRect" +defs["igPushClipRect"][1]["ret"] = "void" +defs["igPushClipRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" +defs["igPushClipRect"][1]["stname"] = "" +defs["igPushClipRect"]["(const ImVec2,const ImVec2,bool)"] = defs["igPushClipRect"][1] +defs["igPushFont"] = {} +defs["igPushFont"][1] = {} +defs["igPushFont"][1]["args"] = "(ImFont* font)" +defs["igPushFont"][1]["argsT"] = {} +defs["igPushFont"][1]["argsT"][1] = {} +defs["igPushFont"][1]["argsT"][1]["name"] = "font" +defs["igPushFont"][1]["argsT"][1]["type"] = "ImFont*" +defs["igPushFont"][1]["argsoriginal"] = "(ImFont* font)" +defs["igPushFont"][1]["call_args"] = "(font)" +defs["igPushFont"][1]["cimguiname"] = "igPushFont" +defs["igPushFont"][1]["defaults"] = {} +defs["igPushFont"][1]["funcname"] = "PushFont" +defs["igPushFont"][1]["location"] = "imgui:409" +defs["igPushFont"][1]["namespace"] = "ImGui" +defs["igPushFont"][1]["ov_cimguiname"] = "igPushFont" +defs["igPushFont"][1]["ret"] = "void" +defs["igPushFont"][1]["signature"] = "(ImFont*)" +defs["igPushFont"][1]["stname"] = "" +defs["igPushFont"]["(ImFont*)"] = defs["igPushFont"][1] +defs["igPushID"] = {} +defs["igPushID"][1] = {} +defs["igPushID"][1]["args"] = "(const char* str_id)" +defs["igPushID"][1]["argsT"] = {} +defs["igPushID"][1]["argsT"][1] = {} +defs["igPushID"][1]["argsT"][1]["name"] = "str_id" +defs["igPushID"][1]["argsT"][1]["type"] = "const char*" +defs["igPushID"][1]["argsoriginal"] = "(const char* str_id)" +defs["igPushID"][1]["call_args"] = "(str_id)" +defs["igPushID"][1]["cimguiname"] = "igPushID" +defs["igPushID"][1]["defaults"] = {} +defs["igPushID"][1]["funcname"] = "PushID" +defs["igPushID"][1]["location"] = "imgui:482" +defs["igPushID"][1]["namespace"] = "ImGui" +defs["igPushID"][1]["ov_cimguiname"] = "igPushID_Str" +defs["igPushID"][1]["ret"] = "void" +defs["igPushID"][1]["signature"] = "(const char*)" +defs["igPushID"][1]["stname"] = "" +defs["igPushID"][2] = {} +defs["igPushID"][2]["args"] = "(const char* str_id_begin,const char* str_id_end)" +defs["igPushID"][2]["argsT"] = {} +defs["igPushID"][2]["argsT"][1] = {} +defs["igPushID"][2]["argsT"][1]["name"] = "str_id_begin" +defs["igPushID"][2]["argsT"][1]["type"] = "const char*" +defs["igPushID"][2]["argsT"][2] = {} +defs["igPushID"][2]["argsT"][2]["name"] = "str_id_end" +defs["igPushID"][2]["argsT"][2]["type"] = "const char*" +defs["igPushID"][2]["argsoriginal"] = "(const char* str_id_begin,const char* str_id_end)" +defs["igPushID"][2]["call_args"] = "(str_id_begin,str_id_end)" +defs["igPushID"][2]["cimguiname"] = "igPushID" +defs["igPushID"][2]["defaults"] = {} +defs["igPushID"][2]["funcname"] = "PushID" +defs["igPushID"][2]["location"] = "imgui:483" +defs["igPushID"][2]["namespace"] = "ImGui" +defs["igPushID"][2]["ov_cimguiname"] = "igPushID_StrStr" +defs["igPushID"][2]["ret"] = "void" +defs["igPushID"][2]["signature"] = "(const char*,const char*)" +defs["igPushID"][2]["stname"] = "" +defs["igPushID"][3] = {} +defs["igPushID"][3]["args"] = "(const void* ptr_id)" +defs["igPushID"][3]["argsT"] = {} +defs["igPushID"][3]["argsT"][1] = {} +defs["igPushID"][3]["argsT"][1]["name"] = "ptr_id" +defs["igPushID"][3]["argsT"][1]["type"] = "const void*" +defs["igPushID"][3]["argsoriginal"] = "(const void* ptr_id)" +defs["igPushID"][3]["call_args"] = "(ptr_id)" +defs["igPushID"][3]["cimguiname"] = "igPushID" +defs["igPushID"][3]["defaults"] = {} +defs["igPushID"][3]["funcname"] = "PushID" +defs["igPushID"][3]["location"] = "imgui:484" +defs["igPushID"][3]["namespace"] = "ImGui" +defs["igPushID"][3]["ov_cimguiname"] = "igPushID_Ptr" +defs["igPushID"][3]["ret"] = "void" +defs["igPushID"][3]["signature"] = "(const void*)" +defs["igPushID"][3]["stname"] = "" +defs["igPushID"][4] = {} +defs["igPushID"][4]["args"] = "(int int_id)" +defs["igPushID"][4]["argsT"] = {} +defs["igPushID"][4]["argsT"][1] = {} +defs["igPushID"][4]["argsT"][1]["name"] = "int_id" +defs["igPushID"][4]["argsT"][1]["type"] = "int" +defs["igPushID"][4]["argsoriginal"] = "(int int_id)" +defs["igPushID"][4]["call_args"] = "(int_id)" +defs["igPushID"][4]["cimguiname"] = "igPushID" +defs["igPushID"][4]["defaults"] = {} +defs["igPushID"][4]["funcname"] = "PushID" +defs["igPushID"][4]["location"] = "imgui:485" +defs["igPushID"][4]["namespace"] = "ImGui" +defs["igPushID"][4]["ov_cimguiname"] = "igPushID_Int" +defs["igPushID"][4]["ret"] = "void" +defs["igPushID"][4]["signature"] = "(int)" +defs["igPushID"][4]["stname"] = "" +defs["igPushID"]["(const char*)"] = defs["igPushID"][1] +defs["igPushID"]["(const char*,const char*)"] = defs["igPushID"][2] +defs["igPushID"]["(const void*)"] = defs["igPushID"][3] +defs["igPushID"]["(int)"] = defs["igPushID"][4] +defs["igPushItemWidth"] = {} +defs["igPushItemWidth"][1] = {} +defs["igPushItemWidth"][1]["args"] = "(float item_width)" +defs["igPushItemWidth"][1]["argsT"] = {} +defs["igPushItemWidth"][1]["argsT"][1] = {} +defs["igPushItemWidth"][1]["argsT"][1]["name"] = "item_width" +defs["igPushItemWidth"][1]["argsT"][1]["type"] = "float" +defs["igPushItemWidth"][1]["argsoriginal"] = "(float item_width)" +defs["igPushItemWidth"][1]["call_args"] = "(item_width)" +defs["igPushItemWidth"][1]["cimguiname"] = "igPushItemWidth" +defs["igPushItemWidth"][1]["defaults"] = {} +defs["igPushItemWidth"][1]["funcname"] = "PushItemWidth" +defs["igPushItemWidth"][1]["location"] = "imgui:423" +defs["igPushItemWidth"][1]["namespace"] = "ImGui" +defs["igPushItemWidth"][1]["ov_cimguiname"] = "igPushItemWidth" +defs["igPushItemWidth"][1]["ret"] = "void" +defs["igPushItemWidth"][1]["signature"] = "(float)" +defs["igPushItemWidth"][1]["stname"] = "" +defs["igPushItemWidth"]["(float)"] = defs["igPushItemWidth"][1] +defs["igPushStyleColor"] = {} +defs["igPushStyleColor"][1] = {} +defs["igPushStyleColor"][1]["args"] = "(ImGuiCol idx,ImU32 col)" +defs["igPushStyleColor"][1]["argsT"] = {} +defs["igPushStyleColor"][1]["argsT"][1] = {} +defs["igPushStyleColor"][1]["argsT"][1]["name"] = "idx" +defs["igPushStyleColor"][1]["argsT"][1]["type"] = "ImGuiCol" +defs["igPushStyleColor"][1]["argsT"][2] = {} +defs["igPushStyleColor"][1]["argsT"][2]["name"] = "col" +defs["igPushStyleColor"][1]["argsT"][2]["type"] = "ImU32" +defs["igPushStyleColor"][1]["argsoriginal"] = "(ImGuiCol idx,ImU32 col)" +defs["igPushStyleColor"][1]["call_args"] = "(idx,col)" +defs["igPushStyleColor"][1]["cimguiname"] = "igPushStyleColor" +defs["igPushStyleColor"][1]["defaults"] = {} +defs["igPushStyleColor"][1]["funcname"] = "PushStyleColor" +defs["igPushStyleColor"][1]["location"] = "imgui:411" +defs["igPushStyleColor"][1]["namespace"] = "ImGui" +defs["igPushStyleColor"][1]["ov_cimguiname"] = "igPushStyleColor_U32" +defs["igPushStyleColor"][1]["ret"] = "void" +defs["igPushStyleColor"][1]["signature"] = "(ImGuiCol,ImU32)" +defs["igPushStyleColor"][1]["stname"] = "" +defs["igPushStyleColor"][2] = {} +defs["igPushStyleColor"][2]["args"] = "(ImGuiCol idx,const ImVec4 col)" +defs["igPushStyleColor"][2]["argsT"] = {} +defs["igPushStyleColor"][2]["argsT"][1] = {} +defs["igPushStyleColor"][2]["argsT"][1]["name"] = "idx" +defs["igPushStyleColor"][2]["argsT"][1]["type"] = "ImGuiCol" +defs["igPushStyleColor"][2]["argsT"][2] = {} +defs["igPushStyleColor"][2]["argsT"][2]["name"] = "col" +defs["igPushStyleColor"][2]["argsT"][2]["type"] = "const ImVec4" +defs["igPushStyleColor"][2]["argsoriginal"] = "(ImGuiCol idx,const ImVec4& col)" +defs["igPushStyleColor"][2]["call_args"] = "(idx,col)" +defs["igPushStyleColor"][2]["cimguiname"] = "igPushStyleColor" +defs["igPushStyleColor"][2]["defaults"] = {} +defs["igPushStyleColor"][2]["funcname"] = "PushStyleColor" +defs["igPushStyleColor"][2]["location"] = "imgui:412" +defs["igPushStyleColor"][2]["namespace"] = "ImGui" +defs["igPushStyleColor"][2]["ov_cimguiname"] = "igPushStyleColor_Vec4" +defs["igPushStyleColor"][2]["ret"] = "void" +defs["igPushStyleColor"][2]["signature"] = "(ImGuiCol,const ImVec4)" +defs["igPushStyleColor"][2]["stname"] = "" +defs["igPushStyleColor"]["(ImGuiCol,ImU32)"] = defs["igPushStyleColor"][1] +defs["igPushStyleColor"]["(ImGuiCol,const ImVec4)"] = defs["igPushStyleColor"][2] +defs["igPushStyleVar"] = {} +defs["igPushStyleVar"][1] = {} +defs["igPushStyleVar"][1]["args"] = "(ImGuiStyleVar idx,float val)" +defs["igPushStyleVar"][1]["argsT"] = {} +defs["igPushStyleVar"][1]["argsT"][1] = {} +defs["igPushStyleVar"][1]["argsT"][1]["name"] = "idx" +defs["igPushStyleVar"][1]["argsT"][1]["type"] = "ImGuiStyleVar" +defs["igPushStyleVar"][1]["argsT"][2] = {} +defs["igPushStyleVar"][1]["argsT"][2]["name"] = "val" +defs["igPushStyleVar"][1]["argsT"][2]["type"] = "float" +defs["igPushStyleVar"][1]["argsoriginal"] = "(ImGuiStyleVar idx,float val)" +defs["igPushStyleVar"][1]["call_args"] = "(idx,val)" +defs["igPushStyleVar"][1]["cimguiname"] = "igPushStyleVar" +defs["igPushStyleVar"][1]["defaults"] = {} +defs["igPushStyleVar"][1]["funcname"] = "PushStyleVar" +defs["igPushStyleVar"][1]["location"] = "imgui:414" +defs["igPushStyleVar"][1]["namespace"] = "ImGui" +defs["igPushStyleVar"][1]["ov_cimguiname"] = "igPushStyleVar_Float" +defs["igPushStyleVar"][1]["ret"] = "void" +defs["igPushStyleVar"][1]["signature"] = "(ImGuiStyleVar,float)" +defs["igPushStyleVar"][1]["stname"] = "" +defs["igPushStyleVar"][2] = {} +defs["igPushStyleVar"][2]["args"] = "(ImGuiStyleVar idx,const ImVec2 val)" +defs["igPushStyleVar"][2]["argsT"] = {} +defs["igPushStyleVar"][2]["argsT"][1] = {} +defs["igPushStyleVar"][2]["argsT"][1]["name"] = "idx" +defs["igPushStyleVar"][2]["argsT"][1]["type"] = "ImGuiStyleVar" +defs["igPushStyleVar"][2]["argsT"][2] = {} +defs["igPushStyleVar"][2]["argsT"][2]["name"] = "val" +defs["igPushStyleVar"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igPushStyleVar"][2]["argsoriginal"] = "(ImGuiStyleVar idx,const ImVec2& val)" +defs["igPushStyleVar"][2]["call_args"] = "(idx,val)" +defs["igPushStyleVar"][2]["cimguiname"] = "igPushStyleVar" +defs["igPushStyleVar"][2]["defaults"] = {} +defs["igPushStyleVar"][2]["funcname"] = "PushStyleVar" +defs["igPushStyleVar"][2]["location"] = "imgui:415" +defs["igPushStyleVar"][2]["namespace"] = "ImGui" +defs["igPushStyleVar"][2]["ov_cimguiname"] = "igPushStyleVar_Vec2" +defs["igPushStyleVar"][2]["ret"] = "void" +defs["igPushStyleVar"][2]["signature"] = "(ImGuiStyleVar,const ImVec2)" +defs["igPushStyleVar"][2]["stname"] = "" +defs["igPushStyleVar"]["(ImGuiStyleVar,const ImVec2)"] = defs["igPushStyleVar"][2] +defs["igPushStyleVar"]["(ImGuiStyleVar,float)"] = defs["igPushStyleVar"][1] +defs["igPushTextWrapPos"] = {} +defs["igPushTextWrapPos"][1] = {} +defs["igPushTextWrapPos"][1]["args"] = "(float wrap_local_pos_x)" +defs["igPushTextWrapPos"][1]["argsT"] = {} +defs["igPushTextWrapPos"][1]["argsT"][1] = {} +defs["igPushTextWrapPos"][1]["argsT"][1]["name"] = "wrap_local_pos_x" +defs["igPushTextWrapPos"][1]["argsT"][1]["type"] = "float" +defs["igPushTextWrapPos"][1]["argsoriginal"] = "(float wrap_local_pos_x=0.0f)" +defs["igPushTextWrapPos"][1]["call_args"] = "(wrap_local_pos_x)" +defs["igPushTextWrapPos"][1]["cimguiname"] = "igPushTextWrapPos" +defs["igPushTextWrapPos"][1]["defaults"] = {} +defs["igPushTextWrapPos"][1]["defaults"]["wrap_local_pos_x"] = "0.0f" +defs["igPushTextWrapPos"][1]["funcname"] = "PushTextWrapPos" +defs["igPushTextWrapPos"][1]["location"] = "imgui:427" +defs["igPushTextWrapPos"][1]["namespace"] = "ImGui" +defs["igPushTextWrapPos"][1]["ov_cimguiname"] = "igPushTextWrapPos" +defs["igPushTextWrapPos"][1]["ret"] = "void" +defs["igPushTextWrapPos"][1]["signature"] = "(float)" +defs["igPushTextWrapPos"][1]["stname"] = "" +defs["igPushTextWrapPos"]["(float)"] = defs["igPushTextWrapPos"][1] +defs["igRadioButton"] = {} +defs["igRadioButton"][1] = {} +defs["igRadioButton"][1]["args"] = "(const char* label,bool active)" +defs["igRadioButton"][1]["argsT"] = {} +defs["igRadioButton"][1]["argsT"][1] = {} +defs["igRadioButton"][1]["argsT"][1]["name"] = "label" +defs["igRadioButton"][1]["argsT"][1]["type"] = "const char*" +defs["igRadioButton"][1]["argsT"][2] = {} +defs["igRadioButton"][1]["argsT"][2]["name"] = "active" +defs["igRadioButton"][1]["argsT"][2]["type"] = "bool" +defs["igRadioButton"][1]["argsoriginal"] = "(const char* label,bool active)" +defs["igRadioButton"][1]["call_args"] = "(label,active)" +defs["igRadioButton"][1]["cimguiname"] = "igRadioButton" +defs["igRadioButton"][1]["defaults"] = {} +defs["igRadioButton"][1]["funcname"] = "RadioButton" +defs["igRadioButton"][1]["location"] = "imgui:516" +defs["igRadioButton"][1]["namespace"] = "ImGui" +defs["igRadioButton"][1]["ov_cimguiname"] = "igRadioButton_Bool" +defs["igRadioButton"][1]["ret"] = "bool" +defs["igRadioButton"][1]["signature"] = "(const char*,bool)" +defs["igRadioButton"][1]["stname"] = "" +defs["igRadioButton"][2] = {} +defs["igRadioButton"][2]["args"] = "(const char* label,int* v,int v_button)" +defs["igRadioButton"][2]["argsT"] = {} +defs["igRadioButton"][2]["argsT"][1] = {} +defs["igRadioButton"][2]["argsT"][1]["name"] = "label" +defs["igRadioButton"][2]["argsT"][1]["type"] = "const char*" +defs["igRadioButton"][2]["argsT"][2] = {} +defs["igRadioButton"][2]["argsT"][2]["name"] = "v" +defs["igRadioButton"][2]["argsT"][2]["type"] = "int*" +defs["igRadioButton"][2]["argsT"][3] = {} +defs["igRadioButton"][2]["argsT"][3]["name"] = "v_button" +defs["igRadioButton"][2]["argsT"][3]["type"] = "int" +defs["igRadioButton"][2]["argsoriginal"] = "(const char* label,int* v,int v_button)" +defs["igRadioButton"][2]["call_args"] = "(label,v,v_button)" +defs["igRadioButton"][2]["cimguiname"] = "igRadioButton" +defs["igRadioButton"][2]["defaults"] = {} +defs["igRadioButton"][2]["funcname"] = "RadioButton" +defs["igRadioButton"][2]["location"] = "imgui:517" +defs["igRadioButton"][2]["namespace"] = "ImGui" +defs["igRadioButton"][2]["ov_cimguiname"] = "igRadioButton_IntPtr" +defs["igRadioButton"][2]["ret"] = "bool" +defs["igRadioButton"][2]["signature"] = "(const char*,int*,int)" +defs["igRadioButton"][2]["stname"] = "" +defs["igRadioButton"]["(const char*,bool)"] = defs["igRadioButton"][1] +defs["igRadioButton"]["(const char*,int*,int)"] = defs["igRadioButton"][2] +defs["igRender"] = {} +defs["igRender"][1] = {} +defs["igRender"][1]["args"] = "()" +defs["igRender"][1]["argsT"] = {} +defs["igRender"][1]["argsoriginal"] = "()" +defs["igRender"][1]["call_args"] = "()" +defs["igRender"][1]["cimguiname"] = "igRender" +defs["igRender"][1]["defaults"] = {} +defs["igRender"][1]["funcname"] = "Render" +defs["igRender"][1]["location"] = "imgui:304" +defs["igRender"][1]["namespace"] = "ImGui" +defs["igRender"][1]["ov_cimguiname"] = "igRender" +defs["igRender"][1]["ret"] = "void" +defs["igRender"][1]["signature"] = "()" +defs["igRender"][1]["stname"] = "" +defs["igRender"]["()"] = defs["igRender"][1] +defs["igRenderPlatformWindowsDefault"] = {} +defs["igRenderPlatformWindowsDefault"][1] = {} +defs["igRenderPlatformWindowsDefault"][1]["args"] = "(void* platform_render_arg,void* renderer_render_arg)" +defs["igRenderPlatformWindowsDefault"][1]["argsT"] = {} +defs["igRenderPlatformWindowsDefault"][1]["argsT"][1] = {} +defs["igRenderPlatformWindowsDefault"][1]["argsT"][1]["name"] = "platform_render_arg" +defs["igRenderPlatformWindowsDefault"][1]["argsT"][1]["type"] = "void*" +defs["igRenderPlatformWindowsDefault"][1]["argsT"][2] = {} +defs["igRenderPlatformWindowsDefault"][1]["argsT"][2]["name"] = "renderer_render_arg" +defs["igRenderPlatformWindowsDefault"][1]["argsT"][2]["type"] = "void*" +defs["igRenderPlatformWindowsDefault"][1]["argsoriginal"] = "(void* platform_render_arg=((void*)0),void* renderer_render_arg=((void*)0))" +defs["igRenderPlatformWindowsDefault"][1]["call_args"] = "(platform_render_arg,renderer_render_arg)" +defs["igRenderPlatformWindowsDefault"][1]["cimguiname"] = "igRenderPlatformWindowsDefault" +defs["igRenderPlatformWindowsDefault"][1]["defaults"] = {} +defs["igRenderPlatformWindowsDefault"][1]["defaults"]["platform_render_arg"] = "NULL" +defs["igRenderPlatformWindowsDefault"][1]["defaults"]["renderer_render_arg"] = "NULL" +defs["igRenderPlatformWindowsDefault"][1]["funcname"] = "RenderPlatformWindowsDefault" +defs["igRenderPlatformWindowsDefault"][1]["location"] = "imgui:982" +defs["igRenderPlatformWindowsDefault"][1]["namespace"] = "ImGui" +defs["igRenderPlatformWindowsDefault"][1]["ov_cimguiname"] = "igRenderPlatformWindowsDefault" +defs["igRenderPlatformWindowsDefault"][1]["ret"] = "void" +defs["igRenderPlatformWindowsDefault"][1]["signature"] = "(void*,void*)" +defs["igRenderPlatformWindowsDefault"][1]["stname"] = "" +defs["igRenderPlatformWindowsDefault"]["(void*,void*)"] = defs["igRenderPlatformWindowsDefault"][1] +defs["igResetMouseDragDelta"] = {} +defs["igResetMouseDragDelta"][1] = {} +defs["igResetMouseDragDelta"][1]["args"] = "(ImGuiMouseButton button)" +defs["igResetMouseDragDelta"][1]["argsT"] = {} +defs["igResetMouseDragDelta"][1]["argsT"][1] = {} +defs["igResetMouseDragDelta"][1]["argsT"][1]["name"] = "button" +defs["igResetMouseDragDelta"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igResetMouseDragDelta"][1]["argsoriginal"] = "(ImGuiMouseButton button=0)" +defs["igResetMouseDragDelta"][1]["call_args"] = "(button)" +defs["igResetMouseDragDelta"][1]["cimguiname"] = "igResetMouseDragDelta" +defs["igResetMouseDragDelta"][1]["defaults"] = {} +defs["igResetMouseDragDelta"][1]["defaults"]["button"] = "0" +defs["igResetMouseDragDelta"][1]["funcname"] = "ResetMouseDragDelta" +defs["igResetMouseDragDelta"][1]["location"] = "imgui:945" +defs["igResetMouseDragDelta"][1]["namespace"] = "ImGui" +defs["igResetMouseDragDelta"][1]["ov_cimguiname"] = "igResetMouseDragDelta" +defs["igResetMouseDragDelta"][1]["ret"] = "void" +defs["igResetMouseDragDelta"][1]["signature"] = "(ImGuiMouseButton)" +defs["igResetMouseDragDelta"][1]["stname"] = "" +defs["igResetMouseDragDelta"]["(ImGuiMouseButton)"] = defs["igResetMouseDragDelta"][1] +defs["igSameLine"] = {} +defs["igSameLine"][1] = {} +defs["igSameLine"][1]["args"] = "(float offset_from_start_x,float spacing)" +defs["igSameLine"][1]["argsT"] = {} +defs["igSameLine"][1]["argsT"][1] = {} +defs["igSameLine"][1]["argsT"][1]["name"] = "offset_from_start_x" +defs["igSameLine"][1]["argsT"][1]["type"] = "float" +defs["igSameLine"][1]["argsT"][2] = {} +defs["igSameLine"][1]["argsT"][2]["name"] = "spacing" +defs["igSameLine"][1]["argsT"][2]["type"] = "float" +defs["igSameLine"][1]["argsoriginal"] = "(float offset_from_start_x=0.0f,float spacing=-1.0f)" +defs["igSameLine"][1]["call_args"] = "(offset_from_start_x,spacing)" +defs["igSameLine"][1]["cimguiname"] = "igSameLine" +defs["igSameLine"][1]["defaults"] = {} +defs["igSameLine"][1]["defaults"]["offset_from_start_x"] = "0.0f" +defs["igSameLine"][1]["defaults"]["spacing"] = "-1.0f" +defs["igSameLine"][1]["funcname"] = "SameLine" +defs["igSameLine"][1]["location"] = "imgui:448" +defs["igSameLine"][1]["namespace"] = "ImGui" +defs["igSameLine"][1]["ov_cimguiname"] = "igSameLine" +defs["igSameLine"][1]["ret"] = "void" +defs["igSameLine"][1]["signature"] = "(float,float)" +defs["igSameLine"][1]["stname"] = "" +defs["igSameLine"]["(float,float)"] = defs["igSameLine"][1] +defs["igSaveIniSettingsToDisk"] = {} +defs["igSaveIniSettingsToDisk"][1] = {} +defs["igSaveIniSettingsToDisk"][1]["args"] = "(const char* ini_filename)" +defs["igSaveIniSettingsToDisk"][1]["argsT"] = {} +defs["igSaveIniSettingsToDisk"][1]["argsT"][1] = {} +defs["igSaveIniSettingsToDisk"][1]["argsT"][1]["name"] = "ini_filename" +defs["igSaveIniSettingsToDisk"][1]["argsT"][1]["type"] = "const char*" +defs["igSaveIniSettingsToDisk"][1]["argsoriginal"] = "(const char* ini_filename)" +defs["igSaveIniSettingsToDisk"][1]["call_args"] = "(ini_filename)" +defs["igSaveIniSettingsToDisk"][1]["cimguiname"] = "igSaveIniSettingsToDisk" +defs["igSaveIniSettingsToDisk"][1]["defaults"] = {} +defs["igSaveIniSettingsToDisk"][1]["funcname"] = "SaveIniSettingsToDisk" +defs["igSaveIniSettingsToDisk"][1]["location"] = "imgui:961" +defs["igSaveIniSettingsToDisk"][1]["namespace"] = "ImGui" +defs["igSaveIniSettingsToDisk"][1]["ov_cimguiname"] = "igSaveIniSettingsToDisk" +defs["igSaveIniSettingsToDisk"][1]["ret"] = "void" +defs["igSaveIniSettingsToDisk"][1]["signature"] = "(const char*)" +defs["igSaveIniSettingsToDisk"][1]["stname"] = "" +defs["igSaveIniSettingsToDisk"]["(const char*)"] = defs["igSaveIniSettingsToDisk"][1] +defs["igSaveIniSettingsToMemory"] = {} +defs["igSaveIniSettingsToMemory"][1] = {} +defs["igSaveIniSettingsToMemory"][1]["args"] = "(size_t* out_ini_size)" +defs["igSaveIniSettingsToMemory"][1]["argsT"] = {} +defs["igSaveIniSettingsToMemory"][1]["argsT"][1] = {} +defs["igSaveIniSettingsToMemory"][1]["argsT"][1]["name"] = "out_ini_size" +defs["igSaveIniSettingsToMemory"][1]["argsT"][1]["type"] = "size_t*" +defs["igSaveIniSettingsToMemory"][1]["argsoriginal"] = "(size_t* out_ini_size=((void*)0))" +defs["igSaveIniSettingsToMemory"][1]["call_args"] = "(out_ini_size)" +defs["igSaveIniSettingsToMemory"][1]["cimguiname"] = "igSaveIniSettingsToMemory" +defs["igSaveIniSettingsToMemory"][1]["defaults"] = {} +defs["igSaveIniSettingsToMemory"][1]["defaults"]["out_ini_size"] = "NULL" +defs["igSaveIniSettingsToMemory"][1]["funcname"] = "SaveIniSettingsToMemory" +defs["igSaveIniSettingsToMemory"][1]["location"] = "imgui:962" +defs["igSaveIniSettingsToMemory"][1]["namespace"] = "ImGui" +defs["igSaveIniSettingsToMemory"][1]["ov_cimguiname"] = "igSaveIniSettingsToMemory" +defs["igSaveIniSettingsToMemory"][1]["ret"] = "const char*" +defs["igSaveIniSettingsToMemory"][1]["signature"] = "(size_t*)" +defs["igSaveIniSettingsToMemory"][1]["stname"] = "" +defs["igSaveIniSettingsToMemory"]["(size_t*)"] = defs["igSaveIniSettingsToMemory"][1] +defs["igSelectable"] = {} +defs["igSelectable"][1] = {} +defs["igSelectable"][1]["args"] = "(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size)" +defs["igSelectable"][1]["argsT"] = {} +defs["igSelectable"][1]["argsT"][1] = {} +defs["igSelectable"][1]["argsT"][1]["name"] = "label" +defs["igSelectable"][1]["argsT"][1]["type"] = "const char*" +defs["igSelectable"][1]["argsT"][2] = {} +defs["igSelectable"][1]["argsT"][2]["name"] = "selected" +defs["igSelectable"][1]["argsT"][2]["type"] = "bool" +defs["igSelectable"][1]["argsT"][3] = {} +defs["igSelectable"][1]["argsT"][3]["name"] = "flags" +defs["igSelectable"][1]["argsT"][3]["type"] = "ImGuiSelectableFlags" +defs["igSelectable"][1]["argsT"][4] = {} +defs["igSelectable"][1]["argsT"][4]["name"] = "size" +defs["igSelectable"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igSelectable"][1]["argsoriginal"] = "(const char* label,bool selected=false,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))" +defs["igSelectable"][1]["call_args"] = "(label,selected,flags,size)" +defs["igSelectable"][1]["cimguiname"] = "igSelectable" +defs["igSelectable"][1]["defaults"] = {} +defs["igSelectable"][1]["defaults"]["flags"] = "0" +defs["igSelectable"][1]["defaults"]["selected"] = "false" +defs["igSelectable"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igSelectable"][1]["funcname"] = "Selectable" +defs["igSelectable"][1]["location"] = "imgui:632" +defs["igSelectable"][1]["namespace"] = "ImGui" +defs["igSelectable"][1]["ov_cimguiname"] = "igSelectable_Bool" +defs["igSelectable"][1]["ret"] = "bool" +defs["igSelectable"][1]["signature"] = "(const char*,bool,ImGuiSelectableFlags,const ImVec2)" +defs["igSelectable"][1]["stname"] = "" +defs["igSelectable"][2] = {} +defs["igSelectable"][2]["args"] = "(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size)" +defs["igSelectable"][2]["argsT"] = {} +defs["igSelectable"][2]["argsT"][1] = {} +defs["igSelectable"][2]["argsT"][1]["name"] = "label" +defs["igSelectable"][2]["argsT"][1]["type"] = "const char*" +defs["igSelectable"][2]["argsT"][2] = {} +defs["igSelectable"][2]["argsT"][2]["name"] = "p_selected" +defs["igSelectable"][2]["argsT"][2]["type"] = "bool*" +defs["igSelectable"][2]["argsT"][3] = {} +defs["igSelectable"][2]["argsT"][3]["name"] = "flags" +defs["igSelectable"][2]["argsT"][3]["type"] = "ImGuiSelectableFlags" +defs["igSelectable"][2]["argsT"][4] = {} +defs["igSelectable"][2]["argsT"][4]["name"] = "size" +defs["igSelectable"][2]["argsT"][4]["type"] = "const ImVec2" +defs["igSelectable"][2]["argsoriginal"] = "(const char* label,bool* p_selected,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))" +defs["igSelectable"][2]["call_args"] = "(label,p_selected,flags,size)" +defs["igSelectable"][2]["cimguiname"] = "igSelectable" +defs["igSelectable"][2]["defaults"] = {} +defs["igSelectable"][2]["defaults"]["flags"] = "0" +defs["igSelectable"][2]["defaults"]["size"] = "ImVec2(0,0)" +defs["igSelectable"][2]["funcname"] = "Selectable" +defs["igSelectable"][2]["location"] = "imgui:633" +defs["igSelectable"][2]["namespace"] = "ImGui" +defs["igSelectable"][2]["ov_cimguiname"] = "igSelectable_BoolPtr" +defs["igSelectable"][2]["ret"] = "bool" +defs["igSelectable"][2]["signature"] = "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)" +defs["igSelectable"][2]["stname"] = "" +defs["igSelectable"]["(const char*,bool*,ImGuiSelectableFlags,const ImVec2)"] = defs["igSelectable"][2] +defs["igSelectable"]["(const char*,bool,ImGuiSelectableFlags,const ImVec2)"] = defs["igSelectable"][1] +defs["igSeparator"] = {} +defs["igSeparator"][1] = {} +defs["igSeparator"][1]["args"] = "()" +defs["igSeparator"][1]["argsT"] = {} +defs["igSeparator"][1]["argsoriginal"] = "()" +defs["igSeparator"][1]["call_args"] = "()" +defs["igSeparator"][1]["cimguiname"] = "igSeparator" +defs["igSeparator"][1]["defaults"] = {} +defs["igSeparator"][1]["funcname"] = "Separator" +defs["igSeparator"][1]["location"] = "imgui:447" +defs["igSeparator"][1]["namespace"] = "ImGui" +defs["igSeparator"][1]["ov_cimguiname"] = "igSeparator" +defs["igSeparator"][1]["ret"] = "void" +defs["igSeparator"][1]["signature"] = "()" +defs["igSeparator"][1]["stname"] = "" +defs["igSeparator"]["()"] = defs["igSeparator"][1] +defs["igSetAllocatorFunctions"] = {} +defs["igSetAllocatorFunctions"][1] = {} +defs["igSetAllocatorFunctions"][1]["args"] = "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)" +defs["igSetAllocatorFunctions"][1]["argsT"] = {} +defs["igSetAllocatorFunctions"][1]["argsT"][1] = {} +defs["igSetAllocatorFunctions"][1]["argsT"][1]["name"] = "alloc_func" +defs["igSetAllocatorFunctions"][1]["argsT"][1]["type"] = "ImGuiMemAllocFunc" +defs["igSetAllocatorFunctions"][1]["argsT"][2] = {} +defs["igSetAllocatorFunctions"][1]["argsT"][2]["name"] = "free_func" +defs["igSetAllocatorFunctions"][1]["argsT"][2]["type"] = "ImGuiMemFreeFunc" +defs["igSetAllocatorFunctions"][1]["argsT"][3] = {} +defs["igSetAllocatorFunctions"][1]["argsT"][3]["name"] = "user_data" +defs["igSetAllocatorFunctions"][1]["argsT"][3]["type"] = "void*" +defs["igSetAllocatorFunctions"][1]["argsoriginal"] = "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data=((void*)0))" +defs["igSetAllocatorFunctions"][1]["call_args"] = "(alloc_func,free_func,user_data)" +defs["igSetAllocatorFunctions"][1]["cimguiname"] = "igSetAllocatorFunctions" +defs["igSetAllocatorFunctions"][1]["defaults"] = {} +defs["igSetAllocatorFunctions"][1]["defaults"]["user_data"] = "NULL" +defs["igSetAllocatorFunctions"][1]["funcname"] = "SetAllocatorFunctions" +defs["igSetAllocatorFunctions"][1]["location"] = "imgui:972" +defs["igSetAllocatorFunctions"][1]["namespace"] = "ImGui" +defs["igSetAllocatorFunctions"][1]["ov_cimguiname"] = "igSetAllocatorFunctions" +defs["igSetAllocatorFunctions"][1]["ret"] = "void" +defs["igSetAllocatorFunctions"][1]["signature"] = "(ImGuiMemAllocFunc,ImGuiMemFreeFunc,void*)" +defs["igSetAllocatorFunctions"][1]["stname"] = "" +defs["igSetAllocatorFunctions"]["(ImGuiMemAllocFunc,ImGuiMemFreeFunc,void*)"] = defs["igSetAllocatorFunctions"][1] +defs["igSetClipboardText"] = {} +defs["igSetClipboardText"][1] = {} +defs["igSetClipboardText"][1]["args"] = "(const char* text)" +defs["igSetClipboardText"][1]["argsT"] = {} +defs["igSetClipboardText"][1]["argsT"][1] = {} +defs["igSetClipboardText"][1]["argsT"][1]["name"] = "text" +defs["igSetClipboardText"][1]["argsT"][1]["type"] = "const char*" +defs["igSetClipboardText"][1]["argsoriginal"] = "(const char* text)" +defs["igSetClipboardText"][1]["call_args"] = "(text)" +defs["igSetClipboardText"][1]["cimguiname"] = "igSetClipboardText" +defs["igSetClipboardText"][1]["defaults"] = {} +defs["igSetClipboardText"][1]["funcname"] = "SetClipboardText" +defs["igSetClipboardText"][1]["location"] = "imgui:953" +defs["igSetClipboardText"][1]["namespace"] = "ImGui" +defs["igSetClipboardText"][1]["ov_cimguiname"] = "igSetClipboardText" +defs["igSetClipboardText"][1]["ret"] = "void" +defs["igSetClipboardText"][1]["signature"] = "(const char*)" +defs["igSetClipboardText"][1]["stname"] = "" +defs["igSetClipboardText"]["(const char*)"] = defs["igSetClipboardText"][1] +defs["igSetColorEditOptions"] = {} +defs["igSetColorEditOptions"][1] = {} +defs["igSetColorEditOptions"][1]["args"] = "(ImGuiColorEditFlags flags)" +defs["igSetColorEditOptions"][1]["argsT"] = {} +defs["igSetColorEditOptions"][1]["argsT"][1] = {} +defs["igSetColorEditOptions"][1]["argsT"][1]["name"] = "flags" +defs["igSetColorEditOptions"][1]["argsT"][1]["type"] = "ImGuiColorEditFlags" +defs["igSetColorEditOptions"][1]["argsoriginal"] = "(ImGuiColorEditFlags flags)" +defs["igSetColorEditOptions"][1]["call_args"] = "(flags)" +defs["igSetColorEditOptions"][1]["cimguiname"] = "igSetColorEditOptions" +defs["igSetColorEditOptions"][1]["defaults"] = {} +defs["igSetColorEditOptions"][1]["funcname"] = "SetColorEditOptions" +defs["igSetColorEditOptions"][1]["location"] = "imgui:607" +defs["igSetColorEditOptions"][1]["namespace"] = "ImGui" +defs["igSetColorEditOptions"][1]["ov_cimguiname"] = "igSetColorEditOptions" +defs["igSetColorEditOptions"][1]["ret"] = "void" +defs["igSetColorEditOptions"][1]["signature"] = "(ImGuiColorEditFlags)" +defs["igSetColorEditOptions"][1]["stname"] = "" +defs["igSetColorEditOptions"]["(ImGuiColorEditFlags)"] = defs["igSetColorEditOptions"][1] +defs["igSetColumnOffset"] = {} +defs["igSetColumnOffset"][1] = {} +defs["igSetColumnOffset"][1]["args"] = "(int column_index,float offset_x)" +defs["igSetColumnOffset"][1]["argsT"] = {} +defs["igSetColumnOffset"][1]["argsT"][1] = {} +defs["igSetColumnOffset"][1]["argsT"][1]["name"] = "column_index" +defs["igSetColumnOffset"][1]["argsT"][1]["type"] = "int" +defs["igSetColumnOffset"][1]["argsT"][2] = {} +defs["igSetColumnOffset"][1]["argsT"][2]["name"] = "offset_x" +defs["igSetColumnOffset"][1]["argsT"][2]["type"] = "float" +defs["igSetColumnOffset"][1]["argsoriginal"] = "(int column_index,float offset_x)" +defs["igSetColumnOffset"][1]["call_args"] = "(column_index,offset_x)" +defs["igSetColumnOffset"][1]["cimguiname"] = "igSetColumnOffset" +defs["igSetColumnOffset"][1]["defaults"] = {} +defs["igSetColumnOffset"][1]["funcname"] = "SetColumnOffset" +defs["igSetColumnOffset"][1]["location"] = "imgui:790" +defs["igSetColumnOffset"][1]["namespace"] = "ImGui" +defs["igSetColumnOffset"][1]["ov_cimguiname"] = "igSetColumnOffset" +defs["igSetColumnOffset"][1]["ret"] = "void" +defs["igSetColumnOffset"][1]["signature"] = "(int,float)" +defs["igSetColumnOffset"][1]["stname"] = "" +defs["igSetColumnOffset"]["(int,float)"] = defs["igSetColumnOffset"][1] +defs["igSetColumnWidth"] = {} +defs["igSetColumnWidth"][1] = {} +defs["igSetColumnWidth"][1]["args"] = "(int column_index,float width)" +defs["igSetColumnWidth"][1]["argsT"] = {} +defs["igSetColumnWidth"][1]["argsT"][1] = {} +defs["igSetColumnWidth"][1]["argsT"][1]["name"] = "column_index" +defs["igSetColumnWidth"][1]["argsT"][1]["type"] = "int" +defs["igSetColumnWidth"][1]["argsT"][2] = {} +defs["igSetColumnWidth"][1]["argsT"][2]["name"] = "width" +defs["igSetColumnWidth"][1]["argsT"][2]["type"] = "float" +defs["igSetColumnWidth"][1]["argsoriginal"] = "(int column_index,float width)" +defs["igSetColumnWidth"][1]["call_args"] = "(column_index,width)" +defs["igSetColumnWidth"][1]["cimguiname"] = "igSetColumnWidth" +defs["igSetColumnWidth"][1]["defaults"] = {} +defs["igSetColumnWidth"][1]["funcname"] = "SetColumnWidth" +defs["igSetColumnWidth"][1]["location"] = "imgui:788" +defs["igSetColumnWidth"][1]["namespace"] = "ImGui" +defs["igSetColumnWidth"][1]["ov_cimguiname"] = "igSetColumnWidth" +defs["igSetColumnWidth"][1]["ret"] = "void" +defs["igSetColumnWidth"][1]["signature"] = "(int,float)" +defs["igSetColumnWidth"][1]["stname"] = "" +defs["igSetColumnWidth"]["(int,float)"] = defs["igSetColumnWidth"][1] +defs["igSetCurrentContext"] = {} +defs["igSetCurrentContext"][1] = {} +defs["igSetCurrentContext"][1]["args"] = "(ImGuiContext* ctx)" +defs["igSetCurrentContext"][1]["argsT"] = {} +defs["igSetCurrentContext"][1]["argsT"][1] = {} +defs["igSetCurrentContext"][1]["argsT"][1]["name"] = "ctx" +defs["igSetCurrentContext"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igSetCurrentContext"][1]["argsoriginal"] = "(ImGuiContext* ctx)" +defs["igSetCurrentContext"][1]["call_args"] = "(ctx)" +defs["igSetCurrentContext"][1]["cimguiname"] = "igSetCurrentContext" +defs["igSetCurrentContext"][1]["defaults"] = {} +defs["igSetCurrentContext"][1]["funcname"] = "SetCurrentContext" +defs["igSetCurrentContext"][1]["location"] = "imgui:297" +defs["igSetCurrentContext"][1]["namespace"] = "ImGui" +defs["igSetCurrentContext"][1]["ov_cimguiname"] = "igSetCurrentContext" +defs["igSetCurrentContext"][1]["ret"] = "void" +defs["igSetCurrentContext"][1]["signature"] = "(ImGuiContext*)" +defs["igSetCurrentContext"][1]["stname"] = "" +defs["igSetCurrentContext"]["(ImGuiContext*)"] = defs["igSetCurrentContext"][1] +defs["igSetCursorPos"] = {} +defs["igSetCursorPos"][1] = {} +defs["igSetCursorPos"][1]["args"] = "(const ImVec2 local_pos)" +defs["igSetCursorPos"][1]["argsT"] = {} +defs["igSetCursorPos"][1]["argsT"][1] = {} +defs["igSetCursorPos"][1]["argsT"][1]["name"] = "local_pos" +defs["igSetCursorPos"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetCursorPos"][1]["argsoriginal"] = "(const ImVec2& local_pos)" +defs["igSetCursorPos"][1]["call_args"] = "(local_pos)" +defs["igSetCursorPos"][1]["cimguiname"] = "igSetCursorPos" +defs["igSetCursorPos"][1]["defaults"] = {} +defs["igSetCursorPos"][1]["funcname"] = "SetCursorPos" +defs["igSetCursorPos"][1]["location"] = "imgui:459" +defs["igSetCursorPos"][1]["namespace"] = "ImGui" +defs["igSetCursorPos"][1]["ov_cimguiname"] = "igSetCursorPos" +defs["igSetCursorPos"][1]["ret"] = "void" +defs["igSetCursorPos"][1]["signature"] = "(const ImVec2)" +defs["igSetCursorPos"][1]["stname"] = "" +defs["igSetCursorPos"]["(const ImVec2)"] = defs["igSetCursorPos"][1] +defs["igSetCursorPosX"] = {} +defs["igSetCursorPosX"][1] = {} +defs["igSetCursorPosX"][1]["args"] = "(float local_x)" +defs["igSetCursorPosX"][1]["argsT"] = {} +defs["igSetCursorPosX"][1]["argsT"][1] = {} +defs["igSetCursorPosX"][1]["argsT"][1]["name"] = "local_x" +defs["igSetCursorPosX"][1]["argsT"][1]["type"] = "float" +defs["igSetCursorPosX"][1]["argsoriginal"] = "(float local_x)" +defs["igSetCursorPosX"][1]["call_args"] = "(local_x)" +defs["igSetCursorPosX"][1]["cimguiname"] = "igSetCursorPosX" +defs["igSetCursorPosX"][1]["defaults"] = {} +defs["igSetCursorPosX"][1]["funcname"] = "SetCursorPosX" +defs["igSetCursorPosX"][1]["location"] = "imgui:460" +defs["igSetCursorPosX"][1]["namespace"] = "ImGui" +defs["igSetCursorPosX"][1]["ov_cimguiname"] = "igSetCursorPosX" +defs["igSetCursorPosX"][1]["ret"] = "void" +defs["igSetCursorPosX"][1]["signature"] = "(float)" +defs["igSetCursorPosX"][1]["stname"] = "" +defs["igSetCursorPosX"]["(float)"] = defs["igSetCursorPosX"][1] +defs["igSetCursorPosY"] = {} +defs["igSetCursorPosY"][1] = {} +defs["igSetCursorPosY"][1]["args"] = "(float local_y)" +defs["igSetCursorPosY"][1]["argsT"] = {} +defs["igSetCursorPosY"][1]["argsT"][1] = {} +defs["igSetCursorPosY"][1]["argsT"][1]["name"] = "local_y" +defs["igSetCursorPosY"][1]["argsT"][1]["type"] = "float" +defs["igSetCursorPosY"][1]["argsoriginal"] = "(float local_y)" +defs["igSetCursorPosY"][1]["call_args"] = "(local_y)" +defs["igSetCursorPosY"][1]["cimguiname"] = "igSetCursorPosY" +defs["igSetCursorPosY"][1]["defaults"] = {} +defs["igSetCursorPosY"][1]["funcname"] = "SetCursorPosY" +defs["igSetCursorPosY"][1]["location"] = "imgui:461" +defs["igSetCursorPosY"][1]["namespace"] = "ImGui" +defs["igSetCursorPosY"][1]["ov_cimguiname"] = "igSetCursorPosY" +defs["igSetCursorPosY"][1]["ret"] = "void" +defs["igSetCursorPosY"][1]["signature"] = "(float)" +defs["igSetCursorPosY"][1]["stname"] = "" +defs["igSetCursorPosY"]["(float)"] = defs["igSetCursorPosY"][1] +defs["igSetCursorScreenPos"] = {} +defs["igSetCursorScreenPos"][1] = {} +defs["igSetCursorScreenPos"][1]["args"] = "(const ImVec2 pos)" +defs["igSetCursorScreenPos"][1]["argsT"] = {} +defs["igSetCursorScreenPos"][1]["argsT"][1] = {} +defs["igSetCursorScreenPos"][1]["argsT"][1]["name"] = "pos" +defs["igSetCursorScreenPos"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetCursorScreenPos"][1]["argsoriginal"] = "(const ImVec2& pos)" +defs["igSetCursorScreenPos"][1]["call_args"] = "(pos)" +defs["igSetCursorScreenPos"][1]["cimguiname"] = "igSetCursorScreenPos" +defs["igSetCursorScreenPos"][1]["defaults"] = {} +defs["igSetCursorScreenPos"][1]["funcname"] = "SetCursorScreenPos" +defs["igSetCursorScreenPos"][1]["location"] = "imgui:464" +defs["igSetCursorScreenPos"][1]["namespace"] = "ImGui" +defs["igSetCursorScreenPos"][1]["ov_cimguiname"] = "igSetCursorScreenPos" +defs["igSetCursorScreenPos"][1]["ret"] = "void" +defs["igSetCursorScreenPos"][1]["signature"] = "(const ImVec2)" +defs["igSetCursorScreenPos"][1]["stname"] = "" +defs["igSetCursorScreenPos"]["(const ImVec2)"] = defs["igSetCursorScreenPos"][1] +defs["igSetDragDropPayload"] = {} +defs["igSetDragDropPayload"][1] = {} +defs["igSetDragDropPayload"][1]["args"] = "(const char* type,const void* data,size_t sz,ImGuiCond cond)" +defs["igSetDragDropPayload"][1]["argsT"] = {} +defs["igSetDragDropPayload"][1]["argsT"][1] = {} +defs["igSetDragDropPayload"][1]["argsT"][1]["name"] = "type" +defs["igSetDragDropPayload"][1]["argsT"][1]["type"] = "const char*" +defs["igSetDragDropPayload"][1]["argsT"][2] = {} +defs["igSetDragDropPayload"][1]["argsT"][2]["name"] = "data" +defs["igSetDragDropPayload"][1]["argsT"][2]["type"] = "const void*" +defs["igSetDragDropPayload"][1]["argsT"][3] = {} +defs["igSetDragDropPayload"][1]["argsT"][3]["name"] = "sz" +defs["igSetDragDropPayload"][1]["argsT"][3]["type"] = "size_t" +defs["igSetDragDropPayload"][1]["argsT"][4] = {} +defs["igSetDragDropPayload"][1]["argsT"][4]["name"] = "cond" +defs["igSetDragDropPayload"][1]["argsT"][4]["type"] = "ImGuiCond" +defs["igSetDragDropPayload"][1]["argsoriginal"] = "(const char* type,const void* data,size_t sz,ImGuiCond cond=0)" +defs["igSetDragDropPayload"][1]["call_args"] = "(type,data,sz,cond)" +defs["igSetDragDropPayload"][1]["cimguiname"] = "igSetDragDropPayload" +defs["igSetDragDropPayload"][1]["defaults"] = {} +defs["igSetDragDropPayload"][1]["defaults"]["cond"] = "0" +defs["igSetDragDropPayload"][1]["funcname"] = "SetDragDropPayload" +defs["igSetDragDropPayload"][1]["location"] = "imgui:838" +defs["igSetDragDropPayload"][1]["namespace"] = "ImGui" +defs["igSetDragDropPayload"][1]["ov_cimguiname"] = "igSetDragDropPayload" +defs["igSetDragDropPayload"][1]["ret"] = "bool" +defs["igSetDragDropPayload"][1]["signature"] = "(const char*,const void*,size_t,ImGuiCond)" +defs["igSetDragDropPayload"][1]["stname"] = "" +defs["igSetDragDropPayload"]["(const char*,const void*,size_t,ImGuiCond)"] = defs["igSetDragDropPayload"][1] +defs["igSetItemAllowOverlap"] = {} +defs["igSetItemAllowOverlap"][1] = {} +defs["igSetItemAllowOverlap"][1]["args"] = "()" +defs["igSetItemAllowOverlap"][1]["argsT"] = {} +defs["igSetItemAllowOverlap"][1]["argsoriginal"] = "()" +defs["igSetItemAllowOverlap"][1]["call_args"] = "()" +defs["igSetItemAllowOverlap"][1]["cimguiname"] = "igSetItemAllowOverlap" +defs["igSetItemAllowOverlap"][1]["defaults"] = {} +defs["igSetItemAllowOverlap"][1]["funcname"] = "SetItemAllowOverlap" +defs["igSetItemAllowOverlap"][1]["location"] = "imgui:881" +defs["igSetItemAllowOverlap"][1]["namespace"] = "ImGui" +defs["igSetItemAllowOverlap"][1]["ov_cimguiname"] = "igSetItemAllowOverlap" +defs["igSetItemAllowOverlap"][1]["ret"] = "void" +defs["igSetItemAllowOverlap"][1]["signature"] = "()" +defs["igSetItemAllowOverlap"][1]["stname"] = "" +defs["igSetItemAllowOverlap"]["()"] = defs["igSetItemAllowOverlap"][1] +defs["igSetItemDefaultFocus"] = {} +defs["igSetItemDefaultFocus"][1] = {} +defs["igSetItemDefaultFocus"][1]["args"] = "()" +defs["igSetItemDefaultFocus"][1]["argsT"] = {} +defs["igSetItemDefaultFocus"][1]["argsoriginal"] = "()" +defs["igSetItemDefaultFocus"][1]["call_args"] = "()" +defs["igSetItemDefaultFocus"][1]["cimguiname"] = "igSetItemDefaultFocus" +defs["igSetItemDefaultFocus"][1]["defaults"] = {} +defs["igSetItemDefaultFocus"][1]["funcname"] = "SetItemDefaultFocus" +defs["igSetItemDefaultFocus"][1]["location"] = "imgui:859" +defs["igSetItemDefaultFocus"][1]["namespace"] = "ImGui" +defs["igSetItemDefaultFocus"][1]["ov_cimguiname"] = "igSetItemDefaultFocus" +defs["igSetItemDefaultFocus"][1]["ret"] = "void" +defs["igSetItemDefaultFocus"][1]["signature"] = "()" +defs["igSetItemDefaultFocus"][1]["stname"] = "" +defs["igSetItemDefaultFocus"]["()"] = defs["igSetItemDefaultFocus"][1] +defs["igSetKeyboardFocusHere"] = {} +defs["igSetKeyboardFocusHere"][1] = {} +defs["igSetKeyboardFocusHere"][1]["args"] = "(int offset)" +defs["igSetKeyboardFocusHere"][1]["argsT"] = {} +defs["igSetKeyboardFocusHere"][1]["argsT"][1] = {} +defs["igSetKeyboardFocusHere"][1]["argsT"][1]["name"] = "offset" +defs["igSetKeyboardFocusHere"][1]["argsT"][1]["type"] = "int" +defs["igSetKeyboardFocusHere"][1]["argsoriginal"] = "(int offset=0)" +defs["igSetKeyboardFocusHere"][1]["call_args"] = "(offset)" +defs["igSetKeyboardFocusHere"][1]["cimguiname"] = "igSetKeyboardFocusHere" +defs["igSetKeyboardFocusHere"][1]["defaults"] = {} +defs["igSetKeyboardFocusHere"][1]["defaults"]["offset"] = "0" +defs["igSetKeyboardFocusHere"][1]["funcname"] = "SetKeyboardFocusHere" +defs["igSetKeyboardFocusHere"][1]["location"] = "imgui:860" +defs["igSetKeyboardFocusHere"][1]["namespace"] = "ImGui" +defs["igSetKeyboardFocusHere"][1]["ov_cimguiname"] = "igSetKeyboardFocusHere" +defs["igSetKeyboardFocusHere"][1]["ret"] = "void" +defs["igSetKeyboardFocusHere"][1]["signature"] = "(int)" +defs["igSetKeyboardFocusHere"][1]["stname"] = "" +defs["igSetKeyboardFocusHere"]["(int)"] = defs["igSetKeyboardFocusHere"][1] +defs["igSetMouseCursor"] = {} +defs["igSetMouseCursor"][1] = {} +defs["igSetMouseCursor"][1]["args"] = "(ImGuiMouseCursor cursor_type)" +defs["igSetMouseCursor"][1]["argsT"] = {} +defs["igSetMouseCursor"][1]["argsT"][1] = {} +defs["igSetMouseCursor"][1]["argsT"][1]["name"] = "cursor_type" +defs["igSetMouseCursor"][1]["argsT"][1]["type"] = "ImGuiMouseCursor" +defs["igSetMouseCursor"][1]["argsoriginal"] = "(ImGuiMouseCursor cursor_type)" +defs["igSetMouseCursor"][1]["call_args"] = "(cursor_type)" +defs["igSetMouseCursor"][1]["cimguiname"] = "igSetMouseCursor" +defs["igSetMouseCursor"][1]["defaults"] = {} +defs["igSetMouseCursor"][1]["funcname"] = "SetMouseCursor" +defs["igSetMouseCursor"][1]["location"] = "imgui:947" +defs["igSetMouseCursor"][1]["namespace"] = "ImGui" +defs["igSetMouseCursor"][1]["ov_cimguiname"] = "igSetMouseCursor" +defs["igSetMouseCursor"][1]["ret"] = "void" +defs["igSetMouseCursor"][1]["signature"] = "(ImGuiMouseCursor)" +defs["igSetMouseCursor"][1]["stname"] = "" +defs["igSetMouseCursor"]["(ImGuiMouseCursor)"] = defs["igSetMouseCursor"][1] +defs["igSetNextFrameWantCaptureKeyboard"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["args"] = "(bool want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1]["name"] = "want_capture_keyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsoriginal"] = "(bool want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["call_args"] = "(want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["cimguiname"] = "igSetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["defaults"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["funcname"] = "SetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["location"] = "imgui:927" +defs["igSetNextFrameWantCaptureKeyboard"][1]["namespace"] = "ImGui" +defs["igSetNextFrameWantCaptureKeyboard"][1]["ov_cimguiname"] = "igSetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["ret"] = "void" +defs["igSetNextFrameWantCaptureKeyboard"][1]["signature"] = "(bool)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["stname"] = "" +defs["igSetNextFrameWantCaptureKeyboard"]["(bool)"] = defs["igSetNextFrameWantCaptureKeyboard"][1] +defs["igSetNextFrameWantCaptureMouse"] = {} +defs["igSetNextFrameWantCaptureMouse"][1] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["args"] = "(bool want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1]["name"] = "want_capture_mouse" +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextFrameWantCaptureMouse"][1]["argsoriginal"] = "(bool want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["call_args"] = "(want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["cimguiname"] = "igSetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["defaults"] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["funcname"] = "SetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["location"] = "imgui:948" +defs["igSetNextFrameWantCaptureMouse"][1]["namespace"] = "ImGui" +defs["igSetNextFrameWantCaptureMouse"][1]["ov_cimguiname"] = "igSetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["ret"] = "void" +defs["igSetNextFrameWantCaptureMouse"][1]["signature"] = "(bool)" +defs["igSetNextFrameWantCaptureMouse"][1]["stname"] = "" +defs["igSetNextFrameWantCaptureMouse"]["(bool)"] = defs["igSetNextFrameWantCaptureMouse"][1] +defs["igSetNextItemOpen"] = {} +defs["igSetNextItemOpen"][1] = {} +defs["igSetNextItemOpen"][1]["args"] = "(bool is_open,ImGuiCond cond)" +defs["igSetNextItemOpen"][1]["argsT"] = {} +defs["igSetNextItemOpen"][1]["argsT"][1] = {} +defs["igSetNextItemOpen"][1]["argsT"][1]["name"] = "is_open" +defs["igSetNextItemOpen"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextItemOpen"][1]["argsT"][2] = {} +defs["igSetNextItemOpen"][1]["argsT"][2]["name"] = "cond" +defs["igSetNextItemOpen"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetNextItemOpen"][1]["argsoriginal"] = "(bool is_open,ImGuiCond cond=0)" +defs["igSetNextItemOpen"][1]["call_args"] = "(is_open,cond)" +defs["igSetNextItemOpen"][1]["cimguiname"] = "igSetNextItemOpen" +defs["igSetNextItemOpen"][1]["defaults"] = {} +defs["igSetNextItemOpen"][1]["defaults"]["cond"] = "0" +defs["igSetNextItemOpen"][1]["funcname"] = "SetNextItemOpen" +defs["igSetNextItemOpen"][1]["location"] = "imgui:627" +defs["igSetNextItemOpen"][1]["namespace"] = "ImGui" +defs["igSetNextItemOpen"][1]["ov_cimguiname"] = "igSetNextItemOpen" +defs["igSetNextItemOpen"][1]["ret"] = "void" +defs["igSetNextItemOpen"][1]["signature"] = "(bool,ImGuiCond)" +defs["igSetNextItemOpen"][1]["stname"] = "" +defs["igSetNextItemOpen"]["(bool,ImGuiCond)"] = defs["igSetNextItemOpen"][1] +defs["igSetNextItemWidth"] = {} +defs["igSetNextItemWidth"][1] = {} +defs["igSetNextItemWidth"][1]["args"] = "(float item_width)" +defs["igSetNextItemWidth"][1]["argsT"] = {} +defs["igSetNextItemWidth"][1]["argsT"][1] = {} +defs["igSetNextItemWidth"][1]["argsT"][1]["name"] = "item_width" +defs["igSetNextItemWidth"][1]["argsT"][1]["type"] = "float" +defs["igSetNextItemWidth"][1]["argsoriginal"] = "(float item_width)" +defs["igSetNextItemWidth"][1]["call_args"] = "(item_width)" +defs["igSetNextItemWidth"][1]["cimguiname"] = "igSetNextItemWidth" +defs["igSetNextItemWidth"][1]["defaults"] = {} +defs["igSetNextItemWidth"][1]["funcname"] = "SetNextItemWidth" +defs["igSetNextItemWidth"][1]["location"] = "imgui:425" +defs["igSetNextItemWidth"][1]["namespace"] = "ImGui" +defs["igSetNextItemWidth"][1]["ov_cimguiname"] = "igSetNextItemWidth" +defs["igSetNextItemWidth"][1]["ret"] = "void" +defs["igSetNextItemWidth"][1]["signature"] = "(float)" +defs["igSetNextItemWidth"][1]["stname"] = "" +defs["igSetNextItemWidth"]["(float)"] = defs["igSetNextItemWidth"][1] +defs["igSetNextWindowBgAlpha"] = {} +defs["igSetNextWindowBgAlpha"][1] = {} +defs["igSetNextWindowBgAlpha"][1]["args"] = "(float alpha)" +defs["igSetNextWindowBgAlpha"][1]["argsT"] = {} +defs["igSetNextWindowBgAlpha"][1]["argsT"][1] = {} +defs["igSetNextWindowBgAlpha"][1]["argsT"][1]["name"] = "alpha" +defs["igSetNextWindowBgAlpha"][1]["argsT"][1]["type"] = "float" +defs["igSetNextWindowBgAlpha"][1]["argsoriginal"] = "(float alpha)" +defs["igSetNextWindowBgAlpha"][1]["call_args"] = "(alpha)" +defs["igSetNextWindowBgAlpha"][1]["cimguiname"] = "igSetNextWindowBgAlpha" +defs["igSetNextWindowBgAlpha"][1]["defaults"] = {} +defs["igSetNextWindowBgAlpha"][1]["funcname"] = "SetNextWindowBgAlpha" +defs["igSetNextWindowBgAlpha"][1]["location"] = "imgui:374" +defs["igSetNextWindowBgAlpha"][1]["namespace"] = "ImGui" +defs["igSetNextWindowBgAlpha"][1]["ov_cimguiname"] = "igSetNextWindowBgAlpha" +defs["igSetNextWindowBgAlpha"][1]["ret"] = "void" +defs["igSetNextWindowBgAlpha"][1]["signature"] = "(float)" +defs["igSetNextWindowBgAlpha"][1]["stname"] = "" +defs["igSetNextWindowBgAlpha"]["(float)"] = defs["igSetNextWindowBgAlpha"][1] +defs["igSetNextWindowClass"] = {} +defs["igSetNextWindowClass"][1] = {} +defs["igSetNextWindowClass"][1]["args"] = "(const ImGuiWindowClass* window_class)" +defs["igSetNextWindowClass"][1]["argsT"] = {} +defs["igSetNextWindowClass"][1]["argsT"][1] = {} +defs["igSetNextWindowClass"][1]["argsT"][1]["name"] = "window_class" +defs["igSetNextWindowClass"][1]["argsT"][1]["type"] = "const ImGuiWindowClass*" +defs["igSetNextWindowClass"][1]["argsoriginal"] = "(const ImGuiWindowClass* window_class)" +defs["igSetNextWindowClass"][1]["call_args"] = "(window_class)" +defs["igSetNextWindowClass"][1]["cimguiname"] = "igSetNextWindowClass" +defs["igSetNextWindowClass"][1]["defaults"] = {} +defs["igSetNextWindowClass"][1]["funcname"] = "SetNextWindowClass" +defs["igSetNextWindowClass"][1]["location"] = "imgui:818" +defs["igSetNextWindowClass"][1]["namespace"] = "ImGui" +defs["igSetNextWindowClass"][1]["ov_cimguiname"] = "igSetNextWindowClass" +defs["igSetNextWindowClass"][1]["ret"] = "void" +defs["igSetNextWindowClass"][1]["signature"] = "(const ImGuiWindowClass*)" +defs["igSetNextWindowClass"][1]["stname"] = "" +defs["igSetNextWindowClass"]["(const ImGuiWindowClass*)"] = defs["igSetNextWindowClass"][1] +defs["igSetNextWindowCollapsed"] = {} +defs["igSetNextWindowCollapsed"][1] = {} +defs["igSetNextWindowCollapsed"][1]["args"] = "(bool collapsed,ImGuiCond cond)" +defs["igSetNextWindowCollapsed"][1]["argsT"] = {} +defs["igSetNextWindowCollapsed"][1]["argsT"][1] = {} +defs["igSetNextWindowCollapsed"][1]["argsT"][1]["name"] = "collapsed" +defs["igSetNextWindowCollapsed"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextWindowCollapsed"][1]["argsT"][2] = {} +defs["igSetNextWindowCollapsed"][1]["argsT"][2]["name"] = "cond" +defs["igSetNextWindowCollapsed"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetNextWindowCollapsed"][1]["argsoriginal"] = "(bool collapsed,ImGuiCond cond=0)" +defs["igSetNextWindowCollapsed"][1]["call_args"] = "(collapsed,cond)" +defs["igSetNextWindowCollapsed"][1]["cimguiname"] = "igSetNextWindowCollapsed" +defs["igSetNextWindowCollapsed"][1]["defaults"] = {} +defs["igSetNextWindowCollapsed"][1]["defaults"]["cond"] = "0" +defs["igSetNextWindowCollapsed"][1]["funcname"] = "SetNextWindowCollapsed" +defs["igSetNextWindowCollapsed"][1]["location"] = "imgui:371" +defs["igSetNextWindowCollapsed"][1]["namespace"] = "ImGui" +defs["igSetNextWindowCollapsed"][1]["ov_cimguiname"] = "igSetNextWindowCollapsed" +defs["igSetNextWindowCollapsed"][1]["ret"] = "void" +defs["igSetNextWindowCollapsed"][1]["signature"] = "(bool,ImGuiCond)" +defs["igSetNextWindowCollapsed"][1]["stname"] = "" +defs["igSetNextWindowCollapsed"]["(bool,ImGuiCond)"] = defs["igSetNextWindowCollapsed"][1] +defs["igSetNextWindowContentSize"] = {} +defs["igSetNextWindowContentSize"][1] = {} +defs["igSetNextWindowContentSize"][1]["args"] = "(const ImVec2 size)" +defs["igSetNextWindowContentSize"][1]["argsT"] = {} +defs["igSetNextWindowContentSize"][1]["argsT"][1] = {} +defs["igSetNextWindowContentSize"][1]["argsT"][1]["name"] = "size" +defs["igSetNextWindowContentSize"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowContentSize"][1]["argsoriginal"] = "(const ImVec2& size)" +defs["igSetNextWindowContentSize"][1]["call_args"] = "(size)" +defs["igSetNextWindowContentSize"][1]["cimguiname"] = "igSetNextWindowContentSize" +defs["igSetNextWindowContentSize"][1]["defaults"] = {} +defs["igSetNextWindowContentSize"][1]["funcname"] = "SetNextWindowContentSize" +defs["igSetNextWindowContentSize"][1]["location"] = "imgui:370" +defs["igSetNextWindowContentSize"][1]["namespace"] = "ImGui" +defs["igSetNextWindowContentSize"][1]["ov_cimguiname"] = "igSetNextWindowContentSize" +defs["igSetNextWindowContentSize"][1]["ret"] = "void" +defs["igSetNextWindowContentSize"][1]["signature"] = "(const ImVec2)" +defs["igSetNextWindowContentSize"][1]["stname"] = "" +defs["igSetNextWindowContentSize"]["(const ImVec2)"] = defs["igSetNextWindowContentSize"][1] +defs["igSetNextWindowDockID"] = {} +defs["igSetNextWindowDockID"][1] = {} +defs["igSetNextWindowDockID"][1]["args"] = "(ImGuiID dock_id,ImGuiCond cond)" +defs["igSetNextWindowDockID"][1]["argsT"] = {} +defs["igSetNextWindowDockID"][1]["argsT"][1] = {} +defs["igSetNextWindowDockID"][1]["argsT"][1]["name"] = "dock_id" +defs["igSetNextWindowDockID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igSetNextWindowDockID"][1]["argsT"][2] = {} +defs["igSetNextWindowDockID"][1]["argsT"][2]["name"] = "cond" +defs["igSetNextWindowDockID"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetNextWindowDockID"][1]["argsoriginal"] = "(ImGuiID dock_id,ImGuiCond cond=0)" +defs["igSetNextWindowDockID"][1]["call_args"] = "(dock_id,cond)" +defs["igSetNextWindowDockID"][1]["cimguiname"] = "igSetNextWindowDockID" +defs["igSetNextWindowDockID"][1]["defaults"] = {} +defs["igSetNextWindowDockID"][1]["defaults"]["cond"] = "0" +defs["igSetNextWindowDockID"][1]["funcname"] = "SetNextWindowDockID" +defs["igSetNextWindowDockID"][1]["location"] = "imgui:817" +defs["igSetNextWindowDockID"][1]["namespace"] = "ImGui" +defs["igSetNextWindowDockID"][1]["ov_cimguiname"] = "igSetNextWindowDockID" +defs["igSetNextWindowDockID"][1]["ret"] = "void" +defs["igSetNextWindowDockID"][1]["signature"] = "(ImGuiID,ImGuiCond)" +defs["igSetNextWindowDockID"][1]["stname"] = "" +defs["igSetNextWindowDockID"]["(ImGuiID,ImGuiCond)"] = defs["igSetNextWindowDockID"][1] +defs["igSetNextWindowFocus"] = {} +defs["igSetNextWindowFocus"][1] = {} +defs["igSetNextWindowFocus"][1]["args"] = "()" +defs["igSetNextWindowFocus"][1]["argsT"] = {} +defs["igSetNextWindowFocus"][1]["argsoriginal"] = "()" +defs["igSetNextWindowFocus"][1]["call_args"] = "()" +defs["igSetNextWindowFocus"][1]["cimguiname"] = "igSetNextWindowFocus" +defs["igSetNextWindowFocus"][1]["defaults"] = {} +defs["igSetNextWindowFocus"][1]["funcname"] = "SetNextWindowFocus" +defs["igSetNextWindowFocus"][1]["location"] = "imgui:372" +defs["igSetNextWindowFocus"][1]["namespace"] = "ImGui" +defs["igSetNextWindowFocus"][1]["ov_cimguiname"] = "igSetNextWindowFocus" +defs["igSetNextWindowFocus"][1]["ret"] = "void" +defs["igSetNextWindowFocus"][1]["signature"] = "()" +defs["igSetNextWindowFocus"][1]["stname"] = "" +defs["igSetNextWindowFocus"]["()"] = defs["igSetNextWindowFocus"][1] +defs["igSetNextWindowPos"] = {} +defs["igSetNextWindowPos"][1] = {} +defs["igSetNextWindowPos"][1]["args"] = "(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot)" +defs["igSetNextWindowPos"][1]["argsT"] = {} +defs["igSetNextWindowPos"][1]["argsT"][1] = {} +defs["igSetNextWindowPos"][1]["argsT"][1]["name"] = "pos" +defs["igSetNextWindowPos"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowPos"][1]["argsT"][2] = {} +defs["igSetNextWindowPos"][1]["argsT"][2]["name"] = "cond" +defs["igSetNextWindowPos"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetNextWindowPos"][1]["argsT"][3] = {} +defs["igSetNextWindowPos"][1]["argsT"][3]["name"] = "pivot" +defs["igSetNextWindowPos"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igSetNextWindowPos"][1]["argsoriginal"] = "(const ImVec2& pos,ImGuiCond cond=0,const ImVec2& pivot=ImVec2(0,0))" +defs["igSetNextWindowPos"][1]["call_args"] = "(pos,cond,pivot)" +defs["igSetNextWindowPos"][1]["cimguiname"] = "igSetNextWindowPos" +defs["igSetNextWindowPos"][1]["defaults"] = {} +defs["igSetNextWindowPos"][1]["defaults"]["cond"] = "0" +defs["igSetNextWindowPos"][1]["defaults"]["pivot"] = "ImVec2(0,0)" +defs["igSetNextWindowPos"][1]["funcname"] = "SetNextWindowPos" +defs["igSetNextWindowPos"][1]["location"] = "imgui:367" +defs["igSetNextWindowPos"][1]["namespace"] = "ImGui" +defs["igSetNextWindowPos"][1]["ov_cimguiname"] = "igSetNextWindowPos" +defs["igSetNextWindowPos"][1]["ret"] = "void" +defs["igSetNextWindowPos"][1]["signature"] = "(const ImVec2,ImGuiCond,const ImVec2)" +defs["igSetNextWindowPos"][1]["stname"] = "" +defs["igSetNextWindowPos"]["(const ImVec2,ImGuiCond,const ImVec2)"] = defs["igSetNextWindowPos"][1] +defs["igSetNextWindowScroll"] = {} +defs["igSetNextWindowScroll"][1] = {} +defs["igSetNextWindowScroll"][1]["args"] = "(const ImVec2 scroll)" +defs["igSetNextWindowScroll"][1]["argsT"] = {} +defs["igSetNextWindowScroll"][1]["argsT"][1] = {} +defs["igSetNextWindowScroll"][1]["argsT"][1]["name"] = "scroll" +defs["igSetNextWindowScroll"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowScroll"][1]["argsoriginal"] = "(const ImVec2& scroll)" +defs["igSetNextWindowScroll"][1]["call_args"] = "(scroll)" +defs["igSetNextWindowScroll"][1]["cimguiname"] = "igSetNextWindowScroll" +defs["igSetNextWindowScroll"][1]["defaults"] = {} +defs["igSetNextWindowScroll"][1]["funcname"] = "SetNextWindowScroll" +defs["igSetNextWindowScroll"][1]["location"] = "imgui:373" +defs["igSetNextWindowScroll"][1]["namespace"] = "ImGui" +defs["igSetNextWindowScroll"][1]["ov_cimguiname"] = "igSetNextWindowScroll" +defs["igSetNextWindowScroll"][1]["ret"] = "void" +defs["igSetNextWindowScroll"][1]["signature"] = "(const ImVec2)" +defs["igSetNextWindowScroll"][1]["stname"] = "" +defs["igSetNextWindowScroll"]["(const ImVec2)"] = defs["igSetNextWindowScroll"][1] +defs["igSetNextWindowSize"] = {} +defs["igSetNextWindowSize"][1] = {} +defs["igSetNextWindowSize"][1]["args"] = "(const ImVec2 size,ImGuiCond cond)" +defs["igSetNextWindowSize"][1]["argsT"] = {} +defs["igSetNextWindowSize"][1]["argsT"][1] = {} +defs["igSetNextWindowSize"][1]["argsT"][1]["name"] = "size" +defs["igSetNextWindowSize"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowSize"][1]["argsT"][2] = {} +defs["igSetNextWindowSize"][1]["argsT"][2]["name"] = "cond" +defs["igSetNextWindowSize"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetNextWindowSize"][1]["argsoriginal"] = "(const ImVec2& size,ImGuiCond cond=0)" +defs["igSetNextWindowSize"][1]["call_args"] = "(size,cond)" +defs["igSetNextWindowSize"][1]["cimguiname"] = "igSetNextWindowSize" +defs["igSetNextWindowSize"][1]["defaults"] = {} +defs["igSetNextWindowSize"][1]["defaults"]["cond"] = "0" +defs["igSetNextWindowSize"][1]["funcname"] = "SetNextWindowSize" +defs["igSetNextWindowSize"][1]["location"] = "imgui:368" +defs["igSetNextWindowSize"][1]["namespace"] = "ImGui" +defs["igSetNextWindowSize"][1]["ov_cimguiname"] = "igSetNextWindowSize" +defs["igSetNextWindowSize"][1]["ret"] = "void" +defs["igSetNextWindowSize"][1]["signature"] = "(const ImVec2,ImGuiCond)" +defs["igSetNextWindowSize"][1]["stname"] = "" +defs["igSetNextWindowSize"]["(const ImVec2,ImGuiCond)"] = defs["igSetNextWindowSize"][1] +defs["igSetNextWindowSizeConstraints"] = {} +defs["igSetNextWindowSizeConstraints"][1] = {} +defs["igSetNextWindowSizeConstraints"][1]["args"] = "(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data)" +defs["igSetNextWindowSizeConstraints"][1]["argsT"] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][1] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][1]["name"] = "size_min" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][2] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][2]["name"] = "size_max" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][3] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][3]["name"] = "custom_callback" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][3]["type"] = "ImGuiSizeCallback" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][4] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][4]["name"] = "custom_callback_data" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][4]["type"] = "void*" +defs["igSetNextWindowSizeConstraints"][1]["argsoriginal"] = "(const ImVec2& size_min,const ImVec2& size_max,ImGuiSizeCallback custom_callback=((void*)0),void* custom_callback_data=((void*)0))" +defs["igSetNextWindowSizeConstraints"][1]["call_args"] = "(size_min,size_max,custom_callback,custom_callback_data)" +defs["igSetNextWindowSizeConstraints"][1]["cimguiname"] = "igSetNextWindowSizeConstraints" +defs["igSetNextWindowSizeConstraints"][1]["defaults"] = {} +defs["igSetNextWindowSizeConstraints"][1]["defaults"]["custom_callback"] = "NULL" +defs["igSetNextWindowSizeConstraints"][1]["defaults"]["custom_callback_data"] = "NULL" +defs["igSetNextWindowSizeConstraints"][1]["funcname"] = "SetNextWindowSizeConstraints" +defs["igSetNextWindowSizeConstraints"][1]["location"] = "imgui:369" +defs["igSetNextWindowSizeConstraints"][1]["namespace"] = "ImGui" +defs["igSetNextWindowSizeConstraints"][1]["ov_cimguiname"] = "igSetNextWindowSizeConstraints" +defs["igSetNextWindowSizeConstraints"][1]["ret"] = "void" +defs["igSetNextWindowSizeConstraints"][1]["signature"] = "(const ImVec2,const ImVec2,ImGuiSizeCallback,void*)" +defs["igSetNextWindowSizeConstraints"][1]["stname"] = "" +defs["igSetNextWindowSizeConstraints"]["(const ImVec2,const ImVec2,ImGuiSizeCallback,void*)"] = defs["igSetNextWindowSizeConstraints"][1] +defs["igSetNextWindowViewport"] = {} +defs["igSetNextWindowViewport"][1] = {} +defs["igSetNextWindowViewport"][1]["args"] = "(ImGuiID viewport_id)" +defs["igSetNextWindowViewport"][1]["argsT"] = {} +defs["igSetNextWindowViewport"][1]["argsT"][1] = {} +defs["igSetNextWindowViewport"][1]["argsT"][1]["name"] = "viewport_id" +defs["igSetNextWindowViewport"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igSetNextWindowViewport"][1]["argsoriginal"] = "(ImGuiID viewport_id)" +defs["igSetNextWindowViewport"][1]["call_args"] = "(viewport_id)" +defs["igSetNextWindowViewport"][1]["cimguiname"] = "igSetNextWindowViewport" +defs["igSetNextWindowViewport"][1]["defaults"] = {} +defs["igSetNextWindowViewport"][1]["funcname"] = "SetNextWindowViewport" +defs["igSetNextWindowViewport"][1]["location"] = "imgui:375" +defs["igSetNextWindowViewport"][1]["namespace"] = "ImGui" +defs["igSetNextWindowViewport"][1]["ov_cimguiname"] = "igSetNextWindowViewport" +defs["igSetNextWindowViewport"][1]["ret"] = "void" +defs["igSetNextWindowViewport"][1]["signature"] = "(ImGuiID)" +defs["igSetNextWindowViewport"][1]["stname"] = "" +defs["igSetNextWindowViewport"]["(ImGuiID)"] = defs["igSetNextWindowViewport"][1] +defs["igSetScrollFromPosX"] = {} +defs["igSetScrollFromPosX"][1] = {} +defs["igSetScrollFromPosX"][1]["args"] = "(float local_x,float center_x_ratio)" +defs["igSetScrollFromPosX"][1]["argsT"] = {} +defs["igSetScrollFromPosX"][1]["argsT"][1] = {} +defs["igSetScrollFromPosX"][1]["argsT"][1]["name"] = "local_x" +defs["igSetScrollFromPosX"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollFromPosX"][1]["argsT"][2] = {} +defs["igSetScrollFromPosX"][1]["argsT"][2]["name"] = "center_x_ratio" +defs["igSetScrollFromPosX"][1]["argsT"][2]["type"] = "float" +defs["igSetScrollFromPosX"][1]["argsoriginal"] = "(float local_x,float center_x_ratio=0.5f)" +defs["igSetScrollFromPosX"][1]["call_args"] = "(local_x,center_x_ratio)" +defs["igSetScrollFromPosX"][1]["cimguiname"] = "igSetScrollFromPosX" +defs["igSetScrollFromPosX"][1]["defaults"] = {} +defs["igSetScrollFromPosX"][1]["defaults"]["center_x_ratio"] = "0.5f" +defs["igSetScrollFromPosX"][1]["funcname"] = "SetScrollFromPosX" +defs["igSetScrollFromPosX"][1]["location"] = "imgui:405" +defs["igSetScrollFromPosX"][1]["namespace"] = "ImGui" +defs["igSetScrollFromPosX"][1]["ov_cimguiname"] = "igSetScrollFromPosX" +defs["igSetScrollFromPosX"][1]["ret"] = "void" +defs["igSetScrollFromPosX"][1]["signature"] = "(float,float)" +defs["igSetScrollFromPosX"][1]["stname"] = "" +defs["igSetScrollFromPosX"]["(float,float)"] = defs["igSetScrollFromPosX"][1] +defs["igSetScrollFromPosY"] = {} +defs["igSetScrollFromPosY"][1] = {} +defs["igSetScrollFromPosY"][1]["args"] = "(float local_y,float center_y_ratio)" +defs["igSetScrollFromPosY"][1]["argsT"] = {} +defs["igSetScrollFromPosY"][1]["argsT"][1] = {} +defs["igSetScrollFromPosY"][1]["argsT"][1]["name"] = "local_y" +defs["igSetScrollFromPosY"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollFromPosY"][1]["argsT"][2] = {} +defs["igSetScrollFromPosY"][1]["argsT"][2]["name"] = "center_y_ratio" +defs["igSetScrollFromPosY"][1]["argsT"][2]["type"] = "float" +defs["igSetScrollFromPosY"][1]["argsoriginal"] = "(float local_y,float center_y_ratio=0.5f)" +defs["igSetScrollFromPosY"][1]["call_args"] = "(local_y,center_y_ratio)" +defs["igSetScrollFromPosY"][1]["cimguiname"] = "igSetScrollFromPosY" +defs["igSetScrollFromPosY"][1]["defaults"] = {} +defs["igSetScrollFromPosY"][1]["defaults"]["center_y_ratio"] = "0.5f" +defs["igSetScrollFromPosY"][1]["funcname"] = "SetScrollFromPosY" +defs["igSetScrollFromPosY"][1]["location"] = "imgui:406" +defs["igSetScrollFromPosY"][1]["namespace"] = "ImGui" +defs["igSetScrollFromPosY"][1]["ov_cimguiname"] = "igSetScrollFromPosY" +defs["igSetScrollFromPosY"][1]["ret"] = "void" +defs["igSetScrollFromPosY"][1]["signature"] = "(float,float)" +defs["igSetScrollFromPosY"][1]["stname"] = "" +defs["igSetScrollFromPosY"]["(float,float)"] = defs["igSetScrollFromPosY"][1] +defs["igSetScrollHereX"] = {} +defs["igSetScrollHereX"][1] = {} +defs["igSetScrollHereX"][1]["args"] = "(float center_x_ratio)" +defs["igSetScrollHereX"][1]["argsT"] = {} +defs["igSetScrollHereX"][1]["argsT"][1] = {} +defs["igSetScrollHereX"][1]["argsT"][1]["name"] = "center_x_ratio" +defs["igSetScrollHereX"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollHereX"][1]["argsoriginal"] = "(float center_x_ratio=0.5f)" +defs["igSetScrollHereX"][1]["call_args"] = "(center_x_ratio)" +defs["igSetScrollHereX"][1]["cimguiname"] = "igSetScrollHereX" +defs["igSetScrollHereX"][1]["defaults"] = {} +defs["igSetScrollHereX"][1]["defaults"]["center_x_ratio"] = "0.5f" +defs["igSetScrollHereX"][1]["funcname"] = "SetScrollHereX" +defs["igSetScrollHereX"][1]["location"] = "imgui:403" +defs["igSetScrollHereX"][1]["namespace"] = "ImGui" +defs["igSetScrollHereX"][1]["ov_cimguiname"] = "igSetScrollHereX" +defs["igSetScrollHereX"][1]["ret"] = "void" +defs["igSetScrollHereX"][1]["signature"] = "(float)" +defs["igSetScrollHereX"][1]["stname"] = "" +defs["igSetScrollHereX"]["(float)"] = defs["igSetScrollHereX"][1] +defs["igSetScrollHereY"] = {} +defs["igSetScrollHereY"][1] = {} +defs["igSetScrollHereY"][1]["args"] = "(float center_y_ratio)" +defs["igSetScrollHereY"][1]["argsT"] = {} +defs["igSetScrollHereY"][1]["argsT"][1] = {} +defs["igSetScrollHereY"][1]["argsT"][1]["name"] = "center_y_ratio" +defs["igSetScrollHereY"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollHereY"][1]["argsoriginal"] = "(float center_y_ratio=0.5f)" +defs["igSetScrollHereY"][1]["call_args"] = "(center_y_ratio)" +defs["igSetScrollHereY"][1]["cimguiname"] = "igSetScrollHereY" +defs["igSetScrollHereY"][1]["defaults"] = {} +defs["igSetScrollHereY"][1]["defaults"]["center_y_ratio"] = "0.5f" +defs["igSetScrollHereY"][1]["funcname"] = "SetScrollHereY" +defs["igSetScrollHereY"][1]["location"] = "imgui:404" +defs["igSetScrollHereY"][1]["namespace"] = "ImGui" +defs["igSetScrollHereY"][1]["ov_cimguiname"] = "igSetScrollHereY" +defs["igSetScrollHereY"][1]["ret"] = "void" +defs["igSetScrollHereY"][1]["signature"] = "(float)" +defs["igSetScrollHereY"][1]["stname"] = "" +defs["igSetScrollHereY"]["(float)"] = defs["igSetScrollHereY"][1] +defs["igSetScrollX"] = {} +defs["igSetScrollX"][1] = {} +defs["igSetScrollX"][1]["args"] = "(float scroll_x)" +defs["igSetScrollX"][1]["argsT"] = {} +defs["igSetScrollX"][1]["argsT"][1] = {} +defs["igSetScrollX"][1]["argsT"][1]["name"] = "scroll_x" +defs["igSetScrollX"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollX"][1]["argsoriginal"] = "(float scroll_x)" +defs["igSetScrollX"][1]["call_args"] = "(scroll_x)" +defs["igSetScrollX"][1]["cimguiname"] = "igSetScrollX" +defs["igSetScrollX"][1]["defaults"] = {} +defs["igSetScrollX"][1]["funcname"] = "SetScrollX" +defs["igSetScrollX"][1]["location"] = "imgui:399" +defs["igSetScrollX"][1]["namespace"] = "ImGui" +defs["igSetScrollX"][1]["ov_cimguiname"] = "igSetScrollX" +defs["igSetScrollX"][1]["ret"] = "void" +defs["igSetScrollX"][1]["signature"] = "(float)" +defs["igSetScrollX"][1]["stname"] = "" +defs["igSetScrollX"]["(float)"] = defs["igSetScrollX"][1] +defs["igSetScrollY"] = {} +defs["igSetScrollY"][1] = {} +defs["igSetScrollY"][1]["args"] = "(float scroll_y)" +defs["igSetScrollY"][1]["argsT"] = {} +defs["igSetScrollY"][1]["argsT"][1] = {} +defs["igSetScrollY"][1]["argsT"][1]["name"] = "scroll_y" +defs["igSetScrollY"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollY"][1]["argsoriginal"] = "(float scroll_y)" +defs["igSetScrollY"][1]["call_args"] = "(scroll_y)" +defs["igSetScrollY"][1]["cimguiname"] = "igSetScrollY" +defs["igSetScrollY"][1]["defaults"] = {} +defs["igSetScrollY"][1]["funcname"] = "SetScrollY" +defs["igSetScrollY"][1]["location"] = "imgui:400" +defs["igSetScrollY"][1]["namespace"] = "ImGui" +defs["igSetScrollY"][1]["ov_cimguiname"] = "igSetScrollY" +defs["igSetScrollY"][1]["ret"] = "void" +defs["igSetScrollY"][1]["signature"] = "(float)" +defs["igSetScrollY"][1]["stname"] = "" +defs["igSetScrollY"]["(float)"] = defs["igSetScrollY"][1] +defs["igSetStateStorage"] = {} +defs["igSetStateStorage"][1] = {} +defs["igSetStateStorage"][1]["args"] = "(ImGuiStorage* storage)" +defs["igSetStateStorage"][1]["argsT"] = {} +defs["igSetStateStorage"][1]["argsT"][1] = {} +defs["igSetStateStorage"][1]["argsT"][1]["name"] = "storage" +defs["igSetStateStorage"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["igSetStateStorage"][1]["argsoriginal"] = "(ImGuiStorage* storage)" +defs["igSetStateStorage"][1]["call_args"] = "(storage)" +defs["igSetStateStorage"][1]["cimguiname"] = "igSetStateStorage" +defs["igSetStateStorage"][1]["defaults"] = {} +defs["igSetStateStorage"][1]["funcname"] = "SetStateStorage" +defs["igSetStateStorage"][1]["location"] = "imgui:902" +defs["igSetStateStorage"][1]["namespace"] = "ImGui" +defs["igSetStateStorage"][1]["ov_cimguiname"] = "igSetStateStorage" +defs["igSetStateStorage"][1]["ret"] = "void" +defs["igSetStateStorage"][1]["signature"] = "(ImGuiStorage*)" +defs["igSetStateStorage"][1]["stname"] = "" +defs["igSetStateStorage"]["(ImGuiStorage*)"] = defs["igSetStateStorage"][1] +defs["igSetTabItemClosed"] = {} +defs["igSetTabItemClosed"][1] = {} +defs["igSetTabItemClosed"][1]["args"] = "(const char* tab_or_docked_window_label)" +defs["igSetTabItemClosed"][1]["argsT"] = {} +defs["igSetTabItemClosed"][1]["argsT"][1] = {} +defs["igSetTabItemClosed"][1]["argsT"][1]["name"] = "tab_or_docked_window_label" +defs["igSetTabItemClosed"][1]["argsT"][1]["type"] = "const char*" +defs["igSetTabItemClosed"][1]["argsoriginal"] = "(const char* tab_or_docked_window_label)" +defs["igSetTabItemClosed"][1]["call_args"] = "(tab_or_docked_window_label)" +defs["igSetTabItemClosed"][1]["cimguiname"] = "igSetTabItemClosed" +defs["igSetTabItemClosed"][1]["defaults"] = {} +defs["igSetTabItemClosed"][1]["funcname"] = "SetTabItemClosed" +defs["igSetTabItemClosed"][1]["location"] = "imgui:800" +defs["igSetTabItemClosed"][1]["namespace"] = "ImGui" +defs["igSetTabItemClosed"][1]["ov_cimguiname"] = "igSetTabItemClosed" +defs["igSetTabItemClosed"][1]["ret"] = "void" +defs["igSetTabItemClosed"][1]["signature"] = "(const char*)" +defs["igSetTabItemClosed"][1]["stname"] = "" +defs["igSetTabItemClosed"]["(const char*)"] = defs["igSetTabItemClosed"][1] +defs["igSetTooltip"] = {} +defs["igSetTooltip"][1] = {} +defs["igSetTooltip"][1]["args"] = "(const char* fmt,...)" +defs["igSetTooltip"][1]["argsT"] = {} +defs["igSetTooltip"][1]["argsT"][1] = {} +defs["igSetTooltip"][1]["argsT"][1]["name"] = "fmt" +defs["igSetTooltip"][1]["argsT"][1]["type"] = "const char*" +defs["igSetTooltip"][1]["argsT"][2] = {} +defs["igSetTooltip"][1]["argsT"][2]["name"] = "..." +defs["igSetTooltip"][1]["argsT"][2]["type"] = "..." +defs["igSetTooltip"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igSetTooltip"][1]["call_args"] = "(fmt,...)" +defs["igSetTooltip"][1]["cimguiname"] = "igSetTooltip" +defs["igSetTooltip"][1]["defaults"] = {} +defs["igSetTooltip"][1]["funcname"] = "SetTooltip" +defs["igSetTooltip"][1]["isvararg"] = "...)" +defs["igSetTooltip"][1]["location"] = "imgui:678" +defs["igSetTooltip"][1]["namespace"] = "ImGui" +defs["igSetTooltip"][1]["ov_cimguiname"] = "igSetTooltip" +defs["igSetTooltip"][1]["ret"] = "void" +defs["igSetTooltip"][1]["signature"] = "(const char*,...)" +defs["igSetTooltip"][1]["stname"] = "" +defs["igSetTooltip"]["(const char*,...)"] = defs["igSetTooltip"][1] +defs["igSetTooltipV"] = {} +defs["igSetTooltipV"][1] = {} +defs["igSetTooltipV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igSetTooltipV"][1]["argsT"] = {} +defs["igSetTooltipV"][1]["argsT"][1] = {} +defs["igSetTooltipV"][1]["argsT"][1]["name"] = "fmt" +defs["igSetTooltipV"][1]["argsT"][1]["type"] = "const char*" +defs["igSetTooltipV"][1]["argsT"][2] = {} +defs["igSetTooltipV"][1]["argsT"][2]["name"] = "args" +defs["igSetTooltipV"][1]["argsT"][2]["type"] = "va_list" +defs["igSetTooltipV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igSetTooltipV"][1]["call_args"] = "(fmt,args)" +defs["igSetTooltipV"][1]["cimguiname"] = "igSetTooltipV" +defs["igSetTooltipV"][1]["defaults"] = {} +defs["igSetTooltipV"][1]["funcname"] = "SetTooltipV" +defs["igSetTooltipV"][1]["location"] = "imgui:679" +defs["igSetTooltipV"][1]["namespace"] = "ImGui" +defs["igSetTooltipV"][1]["ov_cimguiname"] = "igSetTooltipV" +defs["igSetTooltipV"][1]["ret"] = "void" +defs["igSetTooltipV"][1]["signature"] = "(const char*,va_list)" +defs["igSetTooltipV"][1]["stname"] = "" +defs["igSetTooltipV"]["(const char*,va_list)"] = defs["igSetTooltipV"][1] +defs["igSetWindowCollapsed"] = {} +defs["igSetWindowCollapsed"][1] = {} +defs["igSetWindowCollapsed"][1]["args"] = "(bool collapsed,ImGuiCond cond)" +defs["igSetWindowCollapsed"][1]["argsT"] = {} +defs["igSetWindowCollapsed"][1]["argsT"][1] = {} +defs["igSetWindowCollapsed"][1]["argsT"][1]["name"] = "collapsed" +defs["igSetWindowCollapsed"][1]["argsT"][1]["type"] = "bool" +defs["igSetWindowCollapsed"][1]["argsT"][2] = {} +defs["igSetWindowCollapsed"][1]["argsT"][2]["name"] = "cond" +defs["igSetWindowCollapsed"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetWindowCollapsed"][1]["argsoriginal"] = "(bool collapsed,ImGuiCond cond=0)" +defs["igSetWindowCollapsed"][1]["call_args"] = "(collapsed,cond)" +defs["igSetWindowCollapsed"][1]["cimguiname"] = "igSetWindowCollapsed" +defs["igSetWindowCollapsed"][1]["defaults"] = {} +defs["igSetWindowCollapsed"][1]["defaults"]["cond"] = "0" +defs["igSetWindowCollapsed"][1]["funcname"] = "SetWindowCollapsed" +defs["igSetWindowCollapsed"][1]["location"] = "imgui:378" +defs["igSetWindowCollapsed"][1]["namespace"] = "ImGui" +defs["igSetWindowCollapsed"][1]["ov_cimguiname"] = "igSetWindowCollapsed_Bool" +defs["igSetWindowCollapsed"][1]["ret"] = "void" +defs["igSetWindowCollapsed"][1]["signature"] = "(bool,ImGuiCond)" +defs["igSetWindowCollapsed"][1]["stname"] = "" +defs["igSetWindowCollapsed"][2] = {} +defs["igSetWindowCollapsed"][2]["args"] = "(const char* name,bool collapsed,ImGuiCond cond)" +defs["igSetWindowCollapsed"][2]["argsT"] = {} +defs["igSetWindowCollapsed"][2]["argsT"][1] = {} +defs["igSetWindowCollapsed"][2]["argsT"][1]["name"] = "name" +defs["igSetWindowCollapsed"][2]["argsT"][1]["type"] = "const char*" +defs["igSetWindowCollapsed"][2]["argsT"][2] = {} +defs["igSetWindowCollapsed"][2]["argsT"][2]["name"] = "collapsed" +defs["igSetWindowCollapsed"][2]["argsT"][2]["type"] = "bool" +defs["igSetWindowCollapsed"][2]["argsT"][3] = {} +defs["igSetWindowCollapsed"][2]["argsT"][3]["name"] = "cond" +defs["igSetWindowCollapsed"][2]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowCollapsed"][2]["argsoriginal"] = "(const char* name,bool collapsed,ImGuiCond cond=0)" +defs["igSetWindowCollapsed"][2]["call_args"] = "(name,collapsed,cond)" +defs["igSetWindowCollapsed"][2]["cimguiname"] = "igSetWindowCollapsed" +defs["igSetWindowCollapsed"][2]["defaults"] = {} +defs["igSetWindowCollapsed"][2]["defaults"]["cond"] = "0" +defs["igSetWindowCollapsed"][2]["funcname"] = "SetWindowCollapsed" +defs["igSetWindowCollapsed"][2]["location"] = "imgui:383" +defs["igSetWindowCollapsed"][2]["namespace"] = "ImGui" +defs["igSetWindowCollapsed"][2]["ov_cimguiname"] = "igSetWindowCollapsed_Str" +defs["igSetWindowCollapsed"][2]["ret"] = "void" +defs["igSetWindowCollapsed"][2]["signature"] = "(const char*,bool,ImGuiCond)" +defs["igSetWindowCollapsed"][2]["stname"] = "" +defs["igSetWindowCollapsed"]["(bool,ImGuiCond)"] = defs["igSetWindowCollapsed"][1] +defs["igSetWindowCollapsed"]["(const char*,bool,ImGuiCond)"] = defs["igSetWindowCollapsed"][2] +defs["igSetWindowFocus"] = {} +defs["igSetWindowFocus"][1] = {} +defs["igSetWindowFocus"][1]["args"] = "()" +defs["igSetWindowFocus"][1]["argsT"] = {} +defs["igSetWindowFocus"][1]["argsoriginal"] = "()" +defs["igSetWindowFocus"][1]["call_args"] = "()" +defs["igSetWindowFocus"][1]["cimguiname"] = "igSetWindowFocus" +defs["igSetWindowFocus"][1]["defaults"] = {} +defs["igSetWindowFocus"][1]["funcname"] = "SetWindowFocus" +defs["igSetWindowFocus"][1]["location"] = "imgui:379" +defs["igSetWindowFocus"][1]["namespace"] = "ImGui" +defs["igSetWindowFocus"][1]["ov_cimguiname"] = "igSetWindowFocus_Nil" +defs["igSetWindowFocus"][1]["ret"] = "void" +defs["igSetWindowFocus"][1]["signature"] = "()" +defs["igSetWindowFocus"][1]["stname"] = "" +defs["igSetWindowFocus"][2] = {} +defs["igSetWindowFocus"][2]["args"] = "(const char* name)" +defs["igSetWindowFocus"][2]["argsT"] = {} +defs["igSetWindowFocus"][2]["argsT"][1] = {} +defs["igSetWindowFocus"][2]["argsT"][1]["name"] = "name" +defs["igSetWindowFocus"][2]["argsT"][1]["type"] = "const char*" +defs["igSetWindowFocus"][2]["argsoriginal"] = "(const char* name)" +defs["igSetWindowFocus"][2]["call_args"] = "(name)" +defs["igSetWindowFocus"][2]["cimguiname"] = "igSetWindowFocus" +defs["igSetWindowFocus"][2]["defaults"] = {} +defs["igSetWindowFocus"][2]["funcname"] = "SetWindowFocus" +defs["igSetWindowFocus"][2]["location"] = "imgui:384" +defs["igSetWindowFocus"][2]["namespace"] = "ImGui" +defs["igSetWindowFocus"][2]["ov_cimguiname"] = "igSetWindowFocus_Str" +defs["igSetWindowFocus"][2]["ret"] = "void" +defs["igSetWindowFocus"][2]["signature"] = "(const char*)" +defs["igSetWindowFocus"][2]["stname"] = "" +defs["igSetWindowFocus"]["()"] = defs["igSetWindowFocus"][1] +defs["igSetWindowFocus"]["(const char*)"] = defs["igSetWindowFocus"][2] +defs["igSetWindowFontScale"] = {} +defs["igSetWindowFontScale"][1] = {} +defs["igSetWindowFontScale"][1]["args"] = "(float scale)" +defs["igSetWindowFontScale"][1]["argsT"] = {} +defs["igSetWindowFontScale"][1]["argsT"][1] = {} +defs["igSetWindowFontScale"][1]["argsT"][1]["name"] = "scale" +defs["igSetWindowFontScale"][1]["argsT"][1]["type"] = "float" +defs["igSetWindowFontScale"][1]["argsoriginal"] = "(float scale)" +defs["igSetWindowFontScale"][1]["call_args"] = "(scale)" +defs["igSetWindowFontScale"][1]["cimguiname"] = "igSetWindowFontScale" +defs["igSetWindowFontScale"][1]["defaults"] = {} +defs["igSetWindowFontScale"][1]["funcname"] = "SetWindowFontScale" +defs["igSetWindowFontScale"][1]["location"] = "imgui:380" +defs["igSetWindowFontScale"][1]["namespace"] = "ImGui" +defs["igSetWindowFontScale"][1]["ov_cimguiname"] = "igSetWindowFontScale" +defs["igSetWindowFontScale"][1]["ret"] = "void" +defs["igSetWindowFontScale"][1]["signature"] = "(float)" +defs["igSetWindowFontScale"][1]["stname"] = "" +defs["igSetWindowFontScale"]["(float)"] = defs["igSetWindowFontScale"][1] +defs["igSetWindowPos"] = {} +defs["igSetWindowPos"][1] = {} +defs["igSetWindowPos"][1]["args"] = "(const ImVec2 pos,ImGuiCond cond)" +defs["igSetWindowPos"][1]["argsT"] = {} +defs["igSetWindowPos"][1]["argsT"][1] = {} +defs["igSetWindowPos"][1]["argsT"][1]["name"] = "pos" +defs["igSetWindowPos"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetWindowPos"][1]["argsT"][2] = {} +defs["igSetWindowPos"][1]["argsT"][2]["name"] = "cond" +defs["igSetWindowPos"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetWindowPos"][1]["argsoriginal"] = "(const ImVec2& pos,ImGuiCond cond=0)" +defs["igSetWindowPos"][1]["call_args"] = "(pos,cond)" +defs["igSetWindowPos"][1]["cimguiname"] = "igSetWindowPos" +defs["igSetWindowPos"][1]["defaults"] = {} +defs["igSetWindowPos"][1]["defaults"]["cond"] = "0" +defs["igSetWindowPos"][1]["funcname"] = "SetWindowPos" +defs["igSetWindowPos"][1]["location"] = "imgui:376" +defs["igSetWindowPos"][1]["namespace"] = "ImGui" +defs["igSetWindowPos"][1]["ov_cimguiname"] = "igSetWindowPos_Vec2" +defs["igSetWindowPos"][1]["ret"] = "void" +defs["igSetWindowPos"][1]["signature"] = "(const ImVec2,ImGuiCond)" +defs["igSetWindowPos"][1]["stname"] = "" +defs["igSetWindowPos"][2] = {} +defs["igSetWindowPos"][2]["args"] = "(const char* name,const ImVec2 pos,ImGuiCond cond)" +defs["igSetWindowPos"][2]["argsT"] = {} +defs["igSetWindowPos"][2]["argsT"][1] = {} +defs["igSetWindowPos"][2]["argsT"][1]["name"] = "name" +defs["igSetWindowPos"][2]["argsT"][1]["type"] = "const char*" +defs["igSetWindowPos"][2]["argsT"][2] = {} +defs["igSetWindowPos"][2]["argsT"][2]["name"] = "pos" +defs["igSetWindowPos"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igSetWindowPos"][2]["argsT"][3] = {} +defs["igSetWindowPos"][2]["argsT"][3]["name"] = "cond" +defs["igSetWindowPos"][2]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowPos"][2]["argsoriginal"] = "(const char* name,const ImVec2& pos,ImGuiCond cond=0)" +defs["igSetWindowPos"][2]["call_args"] = "(name,pos,cond)" +defs["igSetWindowPos"][2]["cimguiname"] = "igSetWindowPos" +defs["igSetWindowPos"][2]["defaults"] = {} +defs["igSetWindowPos"][2]["defaults"]["cond"] = "0" +defs["igSetWindowPos"][2]["funcname"] = "SetWindowPos" +defs["igSetWindowPos"][2]["location"] = "imgui:381" +defs["igSetWindowPos"][2]["namespace"] = "ImGui" +defs["igSetWindowPos"][2]["ov_cimguiname"] = "igSetWindowPos_Str" +defs["igSetWindowPos"][2]["ret"] = "void" +defs["igSetWindowPos"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" +defs["igSetWindowPos"][2]["stname"] = "" +defs["igSetWindowPos"]["(const ImVec2,ImGuiCond)"] = defs["igSetWindowPos"][1] +defs["igSetWindowPos"]["(const char*,const ImVec2,ImGuiCond)"] = defs["igSetWindowPos"][2] +defs["igSetWindowSize"] = {} +defs["igSetWindowSize"][1] = {} +defs["igSetWindowSize"][1]["args"] = "(const ImVec2 size,ImGuiCond cond)" +defs["igSetWindowSize"][1]["argsT"] = {} +defs["igSetWindowSize"][1]["argsT"][1] = {} +defs["igSetWindowSize"][1]["argsT"][1]["name"] = "size" +defs["igSetWindowSize"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetWindowSize"][1]["argsT"][2] = {} +defs["igSetWindowSize"][1]["argsT"][2]["name"] = "cond" +defs["igSetWindowSize"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetWindowSize"][1]["argsoriginal"] = "(const ImVec2& size,ImGuiCond cond=0)" +defs["igSetWindowSize"][1]["call_args"] = "(size,cond)" +defs["igSetWindowSize"][1]["cimguiname"] = "igSetWindowSize" +defs["igSetWindowSize"][1]["defaults"] = {} +defs["igSetWindowSize"][1]["defaults"]["cond"] = "0" +defs["igSetWindowSize"][1]["funcname"] = "SetWindowSize" +defs["igSetWindowSize"][1]["location"] = "imgui:377" +defs["igSetWindowSize"][1]["namespace"] = "ImGui" +defs["igSetWindowSize"][1]["ov_cimguiname"] = "igSetWindowSize_Vec2" +defs["igSetWindowSize"][1]["ret"] = "void" +defs["igSetWindowSize"][1]["signature"] = "(const ImVec2,ImGuiCond)" +defs["igSetWindowSize"][1]["stname"] = "" +defs["igSetWindowSize"][2] = {} +defs["igSetWindowSize"][2]["args"] = "(const char* name,const ImVec2 size,ImGuiCond cond)" +defs["igSetWindowSize"][2]["argsT"] = {} +defs["igSetWindowSize"][2]["argsT"][1] = {} +defs["igSetWindowSize"][2]["argsT"][1]["name"] = "name" +defs["igSetWindowSize"][2]["argsT"][1]["type"] = "const char*" +defs["igSetWindowSize"][2]["argsT"][2] = {} +defs["igSetWindowSize"][2]["argsT"][2]["name"] = "size" +defs["igSetWindowSize"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igSetWindowSize"][2]["argsT"][3] = {} +defs["igSetWindowSize"][2]["argsT"][3]["name"] = "cond" +defs["igSetWindowSize"][2]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowSize"][2]["argsoriginal"] = "(const char* name,const ImVec2& size,ImGuiCond cond=0)" +defs["igSetWindowSize"][2]["call_args"] = "(name,size,cond)" +defs["igSetWindowSize"][2]["cimguiname"] = "igSetWindowSize" +defs["igSetWindowSize"][2]["defaults"] = {} +defs["igSetWindowSize"][2]["defaults"]["cond"] = "0" +defs["igSetWindowSize"][2]["funcname"] = "SetWindowSize" +defs["igSetWindowSize"][2]["location"] = "imgui:382" +defs["igSetWindowSize"][2]["namespace"] = "ImGui" +defs["igSetWindowSize"][2]["ov_cimguiname"] = "igSetWindowSize_Str" +defs["igSetWindowSize"][2]["ret"] = "void" +defs["igSetWindowSize"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" +defs["igSetWindowSize"][2]["stname"] = "" +defs["igSetWindowSize"]["(const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][1] +defs["igSetWindowSize"]["(const char*,const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][2] +defs["igShowAboutWindow"] = {} +defs["igShowAboutWindow"][1] = {} +defs["igShowAboutWindow"][1]["args"] = "(bool* p_open)" +defs["igShowAboutWindow"][1]["argsT"] = {} +defs["igShowAboutWindow"][1]["argsT"][1] = {} +defs["igShowAboutWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowAboutWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowAboutWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowAboutWindow"][1]["call_args"] = "(p_open)" +defs["igShowAboutWindow"][1]["cimguiname"] = "igShowAboutWindow" +defs["igShowAboutWindow"][1]["defaults"] = {} +defs["igShowAboutWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowAboutWindow"][1]["funcname"] = "ShowAboutWindow" +defs["igShowAboutWindow"][1]["location"] = "imgui:312" +defs["igShowAboutWindow"][1]["namespace"] = "ImGui" +defs["igShowAboutWindow"][1]["ov_cimguiname"] = "igShowAboutWindow" +defs["igShowAboutWindow"][1]["ret"] = "void" +defs["igShowAboutWindow"][1]["signature"] = "(bool*)" +defs["igShowAboutWindow"][1]["stname"] = "" +defs["igShowAboutWindow"]["(bool*)"] = defs["igShowAboutWindow"][1] +defs["igShowDebugLogWindow"] = {} +defs["igShowDebugLogWindow"][1] = {} +defs["igShowDebugLogWindow"][1]["args"] = "(bool* p_open)" +defs["igShowDebugLogWindow"][1]["argsT"] = {} +defs["igShowDebugLogWindow"][1]["argsT"][1] = {} +defs["igShowDebugLogWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowDebugLogWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowDebugLogWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowDebugLogWindow"][1]["call_args"] = "(p_open)" +defs["igShowDebugLogWindow"][1]["cimguiname"] = "igShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["defaults"] = {} +defs["igShowDebugLogWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowDebugLogWindow"][1]["funcname"] = "ShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["location"] = "imgui:310" +defs["igShowDebugLogWindow"][1]["namespace"] = "ImGui" +defs["igShowDebugLogWindow"][1]["ov_cimguiname"] = "igShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["ret"] = "void" +defs["igShowDebugLogWindow"][1]["signature"] = "(bool*)" +defs["igShowDebugLogWindow"][1]["stname"] = "" +defs["igShowDebugLogWindow"]["(bool*)"] = defs["igShowDebugLogWindow"][1] +defs["igShowDemoWindow"] = {} +defs["igShowDemoWindow"][1] = {} +defs["igShowDemoWindow"][1]["args"] = "(bool* p_open)" +defs["igShowDemoWindow"][1]["argsT"] = {} +defs["igShowDemoWindow"][1]["argsT"][1] = {} +defs["igShowDemoWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowDemoWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowDemoWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowDemoWindow"][1]["call_args"] = "(p_open)" +defs["igShowDemoWindow"][1]["cimguiname"] = "igShowDemoWindow" +defs["igShowDemoWindow"][1]["defaults"] = {} +defs["igShowDemoWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowDemoWindow"][1]["funcname"] = "ShowDemoWindow" +defs["igShowDemoWindow"][1]["location"] = "imgui:308" +defs["igShowDemoWindow"][1]["namespace"] = "ImGui" +defs["igShowDemoWindow"][1]["ov_cimguiname"] = "igShowDemoWindow" +defs["igShowDemoWindow"][1]["ret"] = "void" +defs["igShowDemoWindow"][1]["signature"] = "(bool*)" +defs["igShowDemoWindow"][1]["stname"] = "" +defs["igShowDemoWindow"]["(bool*)"] = defs["igShowDemoWindow"][1] +defs["igShowFontSelector"] = {} +defs["igShowFontSelector"][1] = {} +defs["igShowFontSelector"][1]["args"] = "(const char* label)" +defs["igShowFontSelector"][1]["argsT"] = {} +defs["igShowFontSelector"][1]["argsT"][1] = {} +defs["igShowFontSelector"][1]["argsT"][1]["name"] = "label" +defs["igShowFontSelector"][1]["argsT"][1]["type"] = "const char*" +defs["igShowFontSelector"][1]["argsoriginal"] = "(const char* label)" +defs["igShowFontSelector"][1]["call_args"] = "(label)" +defs["igShowFontSelector"][1]["cimguiname"] = "igShowFontSelector" +defs["igShowFontSelector"][1]["defaults"] = {} +defs["igShowFontSelector"][1]["funcname"] = "ShowFontSelector" +defs["igShowFontSelector"][1]["location"] = "imgui:315" +defs["igShowFontSelector"][1]["namespace"] = "ImGui" +defs["igShowFontSelector"][1]["ov_cimguiname"] = "igShowFontSelector" +defs["igShowFontSelector"][1]["ret"] = "void" +defs["igShowFontSelector"][1]["signature"] = "(const char*)" +defs["igShowFontSelector"][1]["stname"] = "" +defs["igShowFontSelector"]["(const char*)"] = defs["igShowFontSelector"][1] +defs["igShowMetricsWindow"] = {} +defs["igShowMetricsWindow"][1] = {} +defs["igShowMetricsWindow"][1]["args"] = "(bool* p_open)" +defs["igShowMetricsWindow"][1]["argsT"] = {} +defs["igShowMetricsWindow"][1]["argsT"][1] = {} +defs["igShowMetricsWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowMetricsWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowMetricsWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowMetricsWindow"][1]["call_args"] = "(p_open)" +defs["igShowMetricsWindow"][1]["cimguiname"] = "igShowMetricsWindow" +defs["igShowMetricsWindow"][1]["defaults"] = {} +defs["igShowMetricsWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowMetricsWindow"][1]["funcname"] = "ShowMetricsWindow" +defs["igShowMetricsWindow"][1]["location"] = "imgui:309" +defs["igShowMetricsWindow"][1]["namespace"] = "ImGui" +defs["igShowMetricsWindow"][1]["ov_cimguiname"] = "igShowMetricsWindow" +defs["igShowMetricsWindow"][1]["ret"] = "void" +defs["igShowMetricsWindow"][1]["signature"] = "(bool*)" +defs["igShowMetricsWindow"][1]["stname"] = "" +defs["igShowMetricsWindow"]["(bool*)"] = defs["igShowMetricsWindow"][1] +defs["igShowStackToolWindow"] = {} +defs["igShowStackToolWindow"][1] = {} +defs["igShowStackToolWindow"][1]["args"] = "(bool* p_open)" +defs["igShowStackToolWindow"][1]["argsT"] = {} +defs["igShowStackToolWindow"][1]["argsT"][1] = {} +defs["igShowStackToolWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowStackToolWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowStackToolWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowStackToolWindow"][1]["call_args"] = "(p_open)" +defs["igShowStackToolWindow"][1]["cimguiname"] = "igShowStackToolWindow" +defs["igShowStackToolWindow"][1]["defaults"] = {} +defs["igShowStackToolWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowStackToolWindow"][1]["funcname"] = "ShowStackToolWindow" +defs["igShowStackToolWindow"][1]["location"] = "imgui:311" +defs["igShowStackToolWindow"][1]["namespace"] = "ImGui" +defs["igShowStackToolWindow"][1]["ov_cimguiname"] = "igShowStackToolWindow" +defs["igShowStackToolWindow"][1]["ret"] = "void" +defs["igShowStackToolWindow"][1]["signature"] = "(bool*)" +defs["igShowStackToolWindow"][1]["stname"] = "" +defs["igShowStackToolWindow"]["(bool*)"] = defs["igShowStackToolWindow"][1] +defs["igShowStyleEditor"] = {} +defs["igShowStyleEditor"][1] = {} +defs["igShowStyleEditor"][1]["args"] = "(ImGuiStyle* ref)" +defs["igShowStyleEditor"][1]["argsT"] = {} +defs["igShowStyleEditor"][1]["argsT"][1] = {} +defs["igShowStyleEditor"][1]["argsT"][1]["name"] = "ref" +defs["igShowStyleEditor"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["igShowStyleEditor"][1]["argsoriginal"] = "(ImGuiStyle* ref=((void*)0))" +defs["igShowStyleEditor"][1]["call_args"] = "(ref)" +defs["igShowStyleEditor"][1]["cimguiname"] = "igShowStyleEditor" +defs["igShowStyleEditor"][1]["defaults"] = {} +defs["igShowStyleEditor"][1]["defaults"]["ref"] = "NULL" +defs["igShowStyleEditor"][1]["funcname"] = "ShowStyleEditor" +defs["igShowStyleEditor"][1]["location"] = "imgui:313" +defs["igShowStyleEditor"][1]["namespace"] = "ImGui" +defs["igShowStyleEditor"][1]["ov_cimguiname"] = "igShowStyleEditor" +defs["igShowStyleEditor"][1]["ret"] = "void" +defs["igShowStyleEditor"][1]["signature"] = "(ImGuiStyle*)" +defs["igShowStyleEditor"][1]["stname"] = "" +defs["igShowStyleEditor"]["(ImGuiStyle*)"] = defs["igShowStyleEditor"][1] +defs["igShowStyleSelector"] = {} +defs["igShowStyleSelector"][1] = {} +defs["igShowStyleSelector"][1]["args"] = "(const char* label)" +defs["igShowStyleSelector"][1]["argsT"] = {} +defs["igShowStyleSelector"][1]["argsT"][1] = {} +defs["igShowStyleSelector"][1]["argsT"][1]["name"] = "label" +defs["igShowStyleSelector"][1]["argsT"][1]["type"] = "const char*" +defs["igShowStyleSelector"][1]["argsoriginal"] = "(const char* label)" +defs["igShowStyleSelector"][1]["call_args"] = "(label)" +defs["igShowStyleSelector"][1]["cimguiname"] = "igShowStyleSelector" +defs["igShowStyleSelector"][1]["defaults"] = {} +defs["igShowStyleSelector"][1]["funcname"] = "ShowStyleSelector" +defs["igShowStyleSelector"][1]["location"] = "imgui:314" +defs["igShowStyleSelector"][1]["namespace"] = "ImGui" +defs["igShowStyleSelector"][1]["ov_cimguiname"] = "igShowStyleSelector" +defs["igShowStyleSelector"][1]["ret"] = "bool" +defs["igShowStyleSelector"][1]["signature"] = "(const char*)" +defs["igShowStyleSelector"][1]["stname"] = "" +defs["igShowStyleSelector"]["(const char*)"] = defs["igShowStyleSelector"][1] +defs["igShowUserGuide"] = {} +defs["igShowUserGuide"][1] = {} +defs["igShowUserGuide"][1]["args"] = "()" +defs["igShowUserGuide"][1]["argsT"] = {} +defs["igShowUserGuide"][1]["argsoriginal"] = "()" +defs["igShowUserGuide"][1]["call_args"] = "()" +defs["igShowUserGuide"][1]["cimguiname"] = "igShowUserGuide" +defs["igShowUserGuide"][1]["defaults"] = {} +defs["igShowUserGuide"][1]["funcname"] = "ShowUserGuide" +defs["igShowUserGuide"][1]["location"] = "imgui:316" +defs["igShowUserGuide"][1]["namespace"] = "ImGui" +defs["igShowUserGuide"][1]["ov_cimguiname"] = "igShowUserGuide" +defs["igShowUserGuide"][1]["ret"] = "void" +defs["igShowUserGuide"][1]["signature"] = "()" +defs["igShowUserGuide"][1]["stname"] = "" +defs["igShowUserGuide"]["()"] = defs["igShowUserGuide"][1] +defs["igSliderAngle"] = {} +defs["igSliderAngle"][1] = {} +defs["igSliderAngle"][1]["args"] = "(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderAngle"][1]["argsT"] = {} +defs["igSliderAngle"][1]["argsT"][1] = {} +defs["igSliderAngle"][1]["argsT"][1]["name"] = "label" +defs["igSliderAngle"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderAngle"][1]["argsT"][2] = {} +defs["igSliderAngle"][1]["argsT"][2]["name"] = "v_rad" +defs["igSliderAngle"][1]["argsT"][2]["type"] = "float*" +defs["igSliderAngle"][1]["argsT"][3] = {} +defs["igSliderAngle"][1]["argsT"][3]["name"] = "v_degrees_min" +defs["igSliderAngle"][1]["argsT"][3]["type"] = "float" +defs["igSliderAngle"][1]["argsT"][4] = {} +defs["igSliderAngle"][1]["argsT"][4]["name"] = "v_degrees_max" +defs["igSliderAngle"][1]["argsT"][4]["type"] = "float" +defs["igSliderAngle"][1]["argsT"][5] = {} +defs["igSliderAngle"][1]["argsT"][5]["name"] = "format" +defs["igSliderAngle"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderAngle"][1]["argsT"][6] = {} +defs["igSliderAngle"][1]["argsT"][6]["name"] = "flags" +defs["igSliderAngle"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderAngle"][1]["argsoriginal"] = "(const char* label,float* v_rad,float v_degrees_min=-360.0f,float v_degrees_max=+360.0f,const char* format=\"%.0f deg\",ImGuiSliderFlags flags=0)" +defs["igSliderAngle"][1]["call_args"] = "(label,v_rad,v_degrees_min,v_degrees_max,format,flags)" +defs["igSliderAngle"][1]["cimguiname"] = "igSliderAngle" +defs["igSliderAngle"][1]["defaults"] = {} +defs["igSliderAngle"][1]["defaults"]["flags"] = "0" +defs["igSliderAngle"][1]["defaults"]["format"] = "\"%.0f deg\"" +defs["igSliderAngle"][1]["defaults"]["v_degrees_max"] = "+360.0f" +defs["igSliderAngle"][1]["defaults"]["v_degrees_min"] = "-360.0f" +defs["igSliderAngle"][1]["funcname"] = "SliderAngle" +defs["igSliderAngle"][1]["location"] = "imgui:570" +defs["igSliderAngle"][1]["namespace"] = "ImGui" +defs["igSliderAngle"][1]["ov_cimguiname"] = "igSliderAngle" +defs["igSliderAngle"][1]["ret"] = "bool" +defs["igSliderAngle"][1]["signature"] = "(const char*,float*,float,float,const char*,ImGuiSliderFlags)" +defs["igSliderAngle"][1]["stname"] = "" +defs["igSliderAngle"]["(const char*,float*,float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderAngle"][1] +defs["igSliderFloat"] = {} +defs["igSliderFloat"][1] = {} +defs["igSliderFloat"][1]["args"] = "(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderFloat"][1]["argsT"] = {} +defs["igSliderFloat"][1]["argsT"][1] = {} +defs["igSliderFloat"][1]["argsT"][1]["name"] = "label" +defs["igSliderFloat"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderFloat"][1]["argsT"][2] = {} +defs["igSliderFloat"][1]["argsT"][2]["name"] = "v" +defs["igSliderFloat"][1]["argsT"][2]["type"] = "float*" +defs["igSliderFloat"][1]["argsT"][3] = {} +defs["igSliderFloat"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderFloat"][1]["argsT"][3]["type"] = "float" +defs["igSliderFloat"][1]["argsT"][4] = {} +defs["igSliderFloat"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderFloat"][1]["argsT"][4]["type"] = "float" +defs["igSliderFloat"][1]["argsT"][5] = {} +defs["igSliderFloat"][1]["argsT"][5]["name"] = "format" +defs["igSliderFloat"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderFloat"][1]["argsT"][6] = {} +defs["igSliderFloat"][1]["argsT"][6]["name"] = "flags" +defs["igSliderFloat"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderFloat"][1]["argsoriginal"] = "(const char* label,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igSliderFloat"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderFloat"][1]["cimguiname"] = "igSliderFloat" +defs["igSliderFloat"][1]["defaults"] = {} +defs["igSliderFloat"][1]["defaults"]["flags"] = "0" +defs["igSliderFloat"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igSliderFloat"][1]["funcname"] = "SliderFloat" +defs["igSliderFloat"][1]["location"] = "imgui:566" +defs["igSliderFloat"][1]["namespace"] = "ImGui" +defs["igSliderFloat"][1]["ov_cimguiname"] = "igSliderFloat" +defs["igSliderFloat"][1]["ret"] = "bool" +defs["igSliderFloat"][1]["signature"] = "(const char*,float*,float,float,const char*,ImGuiSliderFlags)" +defs["igSliderFloat"][1]["stname"] = "" +defs["igSliderFloat"]["(const char*,float*,float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderFloat"][1] +defs["igSliderFloat2"] = {} +defs["igSliderFloat2"][1] = {} +defs["igSliderFloat2"][1]["args"] = "(const char* label,float v[2],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderFloat2"][1]["argsT"] = {} +defs["igSliderFloat2"][1]["argsT"][1] = {} +defs["igSliderFloat2"][1]["argsT"][1]["name"] = "label" +defs["igSliderFloat2"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderFloat2"][1]["argsT"][2] = {} +defs["igSliderFloat2"][1]["argsT"][2]["name"] = "v" +defs["igSliderFloat2"][1]["argsT"][2]["type"] = "float[2]" +defs["igSliderFloat2"][1]["argsT"][3] = {} +defs["igSliderFloat2"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderFloat2"][1]["argsT"][3]["type"] = "float" +defs["igSliderFloat2"][1]["argsT"][4] = {} +defs["igSliderFloat2"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderFloat2"][1]["argsT"][4]["type"] = "float" +defs["igSliderFloat2"][1]["argsT"][5] = {} +defs["igSliderFloat2"][1]["argsT"][5]["name"] = "format" +defs["igSliderFloat2"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderFloat2"][1]["argsT"][6] = {} +defs["igSliderFloat2"][1]["argsT"][6]["name"] = "flags" +defs["igSliderFloat2"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderFloat2"][1]["argsoriginal"] = "(const char* label,float v[2],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igSliderFloat2"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderFloat2"][1]["cimguiname"] = "igSliderFloat2" +defs["igSliderFloat2"][1]["defaults"] = {} +defs["igSliderFloat2"][1]["defaults"]["flags"] = "0" +defs["igSliderFloat2"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igSliderFloat2"][1]["funcname"] = "SliderFloat2" +defs["igSliderFloat2"][1]["location"] = "imgui:567" +defs["igSliderFloat2"][1]["namespace"] = "ImGui" +defs["igSliderFloat2"][1]["ov_cimguiname"] = "igSliderFloat2" +defs["igSliderFloat2"][1]["ret"] = "bool" +defs["igSliderFloat2"][1]["signature"] = "(const char*,float[2],float,float,const char*,ImGuiSliderFlags)" +defs["igSliderFloat2"][1]["stname"] = "" +defs["igSliderFloat2"]["(const char*,float[2],float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderFloat2"][1] +defs["igSliderFloat3"] = {} +defs["igSliderFloat3"][1] = {} +defs["igSliderFloat3"][1]["args"] = "(const char* label,float v[3],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderFloat3"][1]["argsT"] = {} +defs["igSliderFloat3"][1]["argsT"][1] = {} +defs["igSliderFloat3"][1]["argsT"][1]["name"] = "label" +defs["igSliderFloat3"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderFloat3"][1]["argsT"][2] = {} +defs["igSliderFloat3"][1]["argsT"][2]["name"] = "v" +defs["igSliderFloat3"][1]["argsT"][2]["type"] = "float[3]" +defs["igSliderFloat3"][1]["argsT"][3] = {} +defs["igSliderFloat3"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderFloat3"][1]["argsT"][3]["type"] = "float" +defs["igSliderFloat3"][1]["argsT"][4] = {} +defs["igSliderFloat3"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderFloat3"][1]["argsT"][4]["type"] = "float" +defs["igSliderFloat3"][1]["argsT"][5] = {} +defs["igSliderFloat3"][1]["argsT"][5]["name"] = "format" +defs["igSliderFloat3"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderFloat3"][1]["argsT"][6] = {} +defs["igSliderFloat3"][1]["argsT"][6]["name"] = "flags" +defs["igSliderFloat3"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderFloat3"][1]["argsoriginal"] = "(const char* label,float v[3],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igSliderFloat3"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderFloat3"][1]["cimguiname"] = "igSliderFloat3" +defs["igSliderFloat3"][1]["defaults"] = {} +defs["igSliderFloat3"][1]["defaults"]["flags"] = "0" +defs["igSliderFloat3"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igSliderFloat3"][1]["funcname"] = "SliderFloat3" +defs["igSliderFloat3"][1]["location"] = "imgui:568" +defs["igSliderFloat3"][1]["namespace"] = "ImGui" +defs["igSliderFloat3"][1]["ov_cimguiname"] = "igSliderFloat3" +defs["igSliderFloat3"][1]["ret"] = "bool" +defs["igSliderFloat3"][1]["signature"] = "(const char*,float[3],float,float,const char*,ImGuiSliderFlags)" +defs["igSliderFloat3"][1]["stname"] = "" +defs["igSliderFloat3"]["(const char*,float[3],float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderFloat3"][1] +defs["igSliderFloat4"] = {} +defs["igSliderFloat4"][1] = {} +defs["igSliderFloat4"][1]["args"] = "(const char* label,float v[4],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderFloat4"][1]["argsT"] = {} +defs["igSliderFloat4"][1]["argsT"][1] = {} +defs["igSliderFloat4"][1]["argsT"][1]["name"] = "label" +defs["igSliderFloat4"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderFloat4"][1]["argsT"][2] = {} +defs["igSliderFloat4"][1]["argsT"][2]["name"] = "v" +defs["igSliderFloat4"][1]["argsT"][2]["type"] = "float[4]" +defs["igSliderFloat4"][1]["argsT"][3] = {} +defs["igSliderFloat4"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderFloat4"][1]["argsT"][3]["type"] = "float" +defs["igSliderFloat4"][1]["argsT"][4] = {} +defs["igSliderFloat4"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderFloat4"][1]["argsT"][4]["type"] = "float" +defs["igSliderFloat4"][1]["argsT"][5] = {} +defs["igSliderFloat4"][1]["argsT"][5]["name"] = "format" +defs["igSliderFloat4"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderFloat4"][1]["argsT"][6] = {} +defs["igSliderFloat4"][1]["argsT"][6]["name"] = "flags" +defs["igSliderFloat4"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderFloat4"][1]["argsoriginal"] = "(const char* label,float v[4],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igSliderFloat4"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderFloat4"][1]["cimguiname"] = "igSliderFloat4" +defs["igSliderFloat4"][1]["defaults"] = {} +defs["igSliderFloat4"][1]["defaults"]["flags"] = "0" +defs["igSliderFloat4"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igSliderFloat4"][1]["funcname"] = "SliderFloat4" +defs["igSliderFloat4"][1]["location"] = "imgui:569" +defs["igSliderFloat4"][1]["namespace"] = "ImGui" +defs["igSliderFloat4"][1]["ov_cimguiname"] = "igSliderFloat4" +defs["igSliderFloat4"][1]["ret"] = "bool" +defs["igSliderFloat4"][1]["signature"] = "(const char*,float[4],float,float,const char*,ImGuiSliderFlags)" +defs["igSliderFloat4"][1]["stname"] = "" +defs["igSliderFloat4"]["(const char*,float[4],float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderFloat4"][1] +defs["igSliderInt"] = {} +defs["igSliderInt"][1] = {} +defs["igSliderInt"][1]["args"] = "(const char* label,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderInt"][1]["argsT"] = {} +defs["igSliderInt"][1]["argsT"][1] = {} +defs["igSliderInt"][1]["argsT"][1]["name"] = "label" +defs["igSliderInt"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderInt"][1]["argsT"][2] = {} +defs["igSliderInt"][1]["argsT"][2]["name"] = "v" +defs["igSliderInt"][1]["argsT"][2]["type"] = "int*" +defs["igSliderInt"][1]["argsT"][3] = {} +defs["igSliderInt"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderInt"][1]["argsT"][3]["type"] = "int" +defs["igSliderInt"][1]["argsT"][4] = {} +defs["igSliderInt"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderInt"][1]["argsT"][4]["type"] = "int" +defs["igSliderInt"][1]["argsT"][5] = {} +defs["igSliderInt"][1]["argsT"][5]["name"] = "format" +defs["igSliderInt"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderInt"][1]["argsT"][6] = {} +defs["igSliderInt"][1]["argsT"][6]["name"] = "flags" +defs["igSliderInt"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderInt"][1]["argsoriginal"] = "(const char* label,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igSliderInt"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderInt"][1]["cimguiname"] = "igSliderInt" +defs["igSliderInt"][1]["defaults"] = {} +defs["igSliderInt"][1]["defaults"]["flags"] = "0" +defs["igSliderInt"][1]["defaults"]["format"] = "\"%d\"" +defs["igSliderInt"][1]["funcname"] = "SliderInt" +defs["igSliderInt"][1]["location"] = "imgui:571" +defs["igSliderInt"][1]["namespace"] = "ImGui" +defs["igSliderInt"][1]["ov_cimguiname"] = "igSliderInt" +defs["igSliderInt"][1]["ret"] = "bool" +defs["igSliderInt"][1]["signature"] = "(const char*,int*,int,int,const char*,ImGuiSliderFlags)" +defs["igSliderInt"][1]["stname"] = "" +defs["igSliderInt"]["(const char*,int*,int,int,const char*,ImGuiSliderFlags)"] = defs["igSliderInt"][1] +defs["igSliderInt2"] = {} +defs["igSliderInt2"][1] = {} +defs["igSliderInt2"][1]["args"] = "(const char* label,int v[2],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderInt2"][1]["argsT"] = {} +defs["igSliderInt2"][1]["argsT"][1] = {} +defs["igSliderInt2"][1]["argsT"][1]["name"] = "label" +defs["igSliderInt2"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderInt2"][1]["argsT"][2] = {} +defs["igSliderInt2"][1]["argsT"][2]["name"] = "v" +defs["igSliderInt2"][1]["argsT"][2]["type"] = "int[2]" +defs["igSliderInt2"][1]["argsT"][3] = {} +defs["igSliderInt2"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderInt2"][1]["argsT"][3]["type"] = "int" +defs["igSliderInt2"][1]["argsT"][4] = {} +defs["igSliderInt2"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderInt2"][1]["argsT"][4]["type"] = "int" +defs["igSliderInt2"][1]["argsT"][5] = {} +defs["igSliderInt2"][1]["argsT"][5]["name"] = "format" +defs["igSliderInt2"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderInt2"][1]["argsT"][6] = {} +defs["igSliderInt2"][1]["argsT"][6]["name"] = "flags" +defs["igSliderInt2"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderInt2"][1]["argsoriginal"] = "(const char* label,int v[2],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igSliderInt2"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderInt2"][1]["cimguiname"] = "igSliderInt2" +defs["igSliderInt2"][1]["defaults"] = {} +defs["igSliderInt2"][1]["defaults"]["flags"] = "0" +defs["igSliderInt2"][1]["defaults"]["format"] = "\"%d\"" +defs["igSliderInt2"][1]["funcname"] = "SliderInt2" +defs["igSliderInt2"][1]["location"] = "imgui:572" +defs["igSliderInt2"][1]["namespace"] = "ImGui" +defs["igSliderInt2"][1]["ov_cimguiname"] = "igSliderInt2" +defs["igSliderInt2"][1]["ret"] = "bool" +defs["igSliderInt2"][1]["signature"] = "(const char*,int[2],int,int,const char*,ImGuiSliderFlags)" +defs["igSliderInt2"][1]["stname"] = "" +defs["igSliderInt2"]["(const char*,int[2],int,int,const char*,ImGuiSliderFlags)"] = defs["igSliderInt2"][1] +defs["igSliderInt3"] = {} +defs["igSliderInt3"][1] = {} +defs["igSliderInt3"][1]["args"] = "(const char* label,int v[3],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderInt3"][1]["argsT"] = {} +defs["igSliderInt3"][1]["argsT"][1] = {} +defs["igSliderInt3"][1]["argsT"][1]["name"] = "label" +defs["igSliderInt3"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderInt3"][1]["argsT"][2] = {} +defs["igSliderInt3"][1]["argsT"][2]["name"] = "v" +defs["igSliderInt3"][1]["argsT"][2]["type"] = "int[3]" +defs["igSliderInt3"][1]["argsT"][3] = {} +defs["igSliderInt3"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderInt3"][1]["argsT"][3]["type"] = "int" +defs["igSliderInt3"][1]["argsT"][4] = {} +defs["igSliderInt3"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderInt3"][1]["argsT"][4]["type"] = "int" +defs["igSliderInt3"][1]["argsT"][5] = {} +defs["igSliderInt3"][1]["argsT"][5]["name"] = "format" +defs["igSliderInt3"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderInt3"][1]["argsT"][6] = {} +defs["igSliderInt3"][1]["argsT"][6]["name"] = "flags" +defs["igSliderInt3"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderInt3"][1]["argsoriginal"] = "(const char* label,int v[3],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igSliderInt3"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderInt3"][1]["cimguiname"] = "igSliderInt3" +defs["igSliderInt3"][1]["defaults"] = {} +defs["igSliderInt3"][1]["defaults"]["flags"] = "0" +defs["igSliderInt3"][1]["defaults"]["format"] = "\"%d\"" +defs["igSliderInt3"][1]["funcname"] = "SliderInt3" +defs["igSliderInt3"][1]["location"] = "imgui:573" +defs["igSliderInt3"][1]["namespace"] = "ImGui" +defs["igSliderInt3"][1]["ov_cimguiname"] = "igSliderInt3" +defs["igSliderInt3"][1]["ret"] = "bool" +defs["igSliderInt3"][1]["signature"] = "(const char*,int[3],int,int,const char*,ImGuiSliderFlags)" +defs["igSliderInt3"][1]["stname"] = "" +defs["igSliderInt3"]["(const char*,int[3],int,int,const char*,ImGuiSliderFlags)"] = defs["igSliderInt3"][1] +defs["igSliderInt4"] = {} +defs["igSliderInt4"][1] = {} +defs["igSliderInt4"][1]["args"] = "(const char* label,int v[4],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderInt4"][1]["argsT"] = {} +defs["igSliderInt4"][1]["argsT"][1] = {} +defs["igSliderInt4"][1]["argsT"][1]["name"] = "label" +defs["igSliderInt4"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderInt4"][1]["argsT"][2] = {} +defs["igSliderInt4"][1]["argsT"][2]["name"] = "v" +defs["igSliderInt4"][1]["argsT"][2]["type"] = "int[4]" +defs["igSliderInt4"][1]["argsT"][3] = {} +defs["igSliderInt4"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderInt4"][1]["argsT"][3]["type"] = "int" +defs["igSliderInt4"][1]["argsT"][4] = {} +defs["igSliderInt4"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderInt4"][1]["argsT"][4]["type"] = "int" +defs["igSliderInt4"][1]["argsT"][5] = {} +defs["igSliderInt4"][1]["argsT"][5]["name"] = "format" +defs["igSliderInt4"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderInt4"][1]["argsT"][6] = {} +defs["igSliderInt4"][1]["argsT"][6]["name"] = "flags" +defs["igSliderInt4"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderInt4"][1]["argsoriginal"] = "(const char* label,int v[4],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igSliderInt4"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderInt4"][1]["cimguiname"] = "igSliderInt4" +defs["igSliderInt4"][1]["defaults"] = {} +defs["igSliderInt4"][1]["defaults"]["flags"] = "0" +defs["igSliderInt4"][1]["defaults"]["format"] = "\"%d\"" +defs["igSliderInt4"][1]["funcname"] = "SliderInt4" +defs["igSliderInt4"][1]["location"] = "imgui:574" +defs["igSliderInt4"][1]["namespace"] = "ImGui" +defs["igSliderInt4"][1]["ov_cimguiname"] = "igSliderInt4" +defs["igSliderInt4"][1]["ret"] = "bool" +defs["igSliderInt4"][1]["signature"] = "(const char*,int[4],int,int,const char*,ImGuiSliderFlags)" +defs["igSliderInt4"][1]["stname"] = "" +defs["igSliderInt4"]["(const char*,int[4],int,int,const char*,ImGuiSliderFlags)"] = defs["igSliderInt4"][1] +defs["igSliderScalar"] = {} +defs["igSliderScalar"][1] = {} +defs["igSliderScalar"][1]["args"] = "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderScalar"][1]["argsT"] = {} +defs["igSliderScalar"][1]["argsT"][1] = {} +defs["igSliderScalar"][1]["argsT"][1]["name"] = "label" +defs["igSliderScalar"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderScalar"][1]["argsT"][2] = {} +defs["igSliderScalar"][1]["argsT"][2]["name"] = "data_type" +defs["igSliderScalar"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igSliderScalar"][1]["argsT"][3] = {} +defs["igSliderScalar"][1]["argsT"][3]["name"] = "p_data" +defs["igSliderScalar"][1]["argsT"][3]["type"] = "void*" +defs["igSliderScalar"][1]["argsT"][4] = {} +defs["igSliderScalar"][1]["argsT"][4]["name"] = "p_min" +defs["igSliderScalar"][1]["argsT"][4]["type"] = "const void*" +defs["igSliderScalar"][1]["argsT"][5] = {} +defs["igSliderScalar"][1]["argsT"][5]["name"] = "p_max" +defs["igSliderScalar"][1]["argsT"][5]["type"] = "const void*" +defs["igSliderScalar"][1]["argsT"][6] = {} +defs["igSliderScalar"][1]["argsT"][6]["name"] = "format" +defs["igSliderScalar"][1]["argsT"][6]["type"] = "const char*" +defs["igSliderScalar"][1]["argsT"][7] = {} +defs["igSliderScalar"][1]["argsT"][7]["name"] = "flags" +defs["igSliderScalar"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igSliderScalar"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igSliderScalar"][1]["call_args"] = "(label,data_type,p_data,p_min,p_max,format,flags)" +defs["igSliderScalar"][1]["cimguiname"] = "igSliderScalar" +defs["igSliderScalar"][1]["defaults"] = {} +defs["igSliderScalar"][1]["defaults"]["flags"] = "0" +defs["igSliderScalar"][1]["defaults"]["format"] = "NULL" +defs["igSliderScalar"][1]["funcname"] = "SliderScalar" +defs["igSliderScalar"][1]["location"] = "imgui:575" +defs["igSliderScalar"][1]["namespace"] = "ImGui" +defs["igSliderScalar"][1]["ov_cimguiname"] = "igSliderScalar" +defs["igSliderScalar"][1]["ret"] = "bool" +defs["igSliderScalar"][1]["signature"] = "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igSliderScalar"][1]["stname"] = "" +defs["igSliderScalar"]["(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igSliderScalar"][1] +defs["igSliderScalarN"] = {} +defs["igSliderScalarN"][1] = {} +defs["igSliderScalarN"][1]["args"] = "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderScalarN"][1]["argsT"] = {} +defs["igSliderScalarN"][1]["argsT"][1] = {} +defs["igSliderScalarN"][1]["argsT"][1]["name"] = "label" +defs["igSliderScalarN"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderScalarN"][1]["argsT"][2] = {} +defs["igSliderScalarN"][1]["argsT"][2]["name"] = "data_type" +defs["igSliderScalarN"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igSliderScalarN"][1]["argsT"][3] = {} +defs["igSliderScalarN"][1]["argsT"][3]["name"] = "p_data" +defs["igSliderScalarN"][1]["argsT"][3]["type"] = "void*" +defs["igSliderScalarN"][1]["argsT"][4] = {} +defs["igSliderScalarN"][1]["argsT"][4]["name"] = "components" +defs["igSliderScalarN"][1]["argsT"][4]["type"] = "int" +defs["igSliderScalarN"][1]["argsT"][5] = {} +defs["igSliderScalarN"][1]["argsT"][5]["name"] = "p_min" +defs["igSliderScalarN"][1]["argsT"][5]["type"] = "const void*" +defs["igSliderScalarN"][1]["argsT"][6] = {} +defs["igSliderScalarN"][1]["argsT"][6]["name"] = "p_max" +defs["igSliderScalarN"][1]["argsT"][6]["type"] = "const void*" +defs["igSliderScalarN"][1]["argsT"][7] = {} +defs["igSliderScalarN"][1]["argsT"][7]["name"] = "format" +defs["igSliderScalarN"][1]["argsT"][7]["type"] = "const char*" +defs["igSliderScalarN"][1]["argsT"][8] = {} +defs["igSliderScalarN"][1]["argsT"][8]["name"] = "flags" +defs["igSliderScalarN"][1]["argsT"][8]["type"] = "ImGuiSliderFlags" +defs["igSliderScalarN"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igSliderScalarN"][1]["call_args"] = "(label,data_type,p_data,components,p_min,p_max,format,flags)" +defs["igSliderScalarN"][1]["cimguiname"] = "igSliderScalarN" +defs["igSliderScalarN"][1]["defaults"] = {} +defs["igSliderScalarN"][1]["defaults"]["flags"] = "0" +defs["igSliderScalarN"][1]["defaults"]["format"] = "NULL" +defs["igSliderScalarN"][1]["funcname"] = "SliderScalarN" +defs["igSliderScalarN"][1]["location"] = "imgui:576" +defs["igSliderScalarN"][1]["namespace"] = "ImGui" +defs["igSliderScalarN"][1]["ov_cimguiname"] = "igSliderScalarN" +defs["igSliderScalarN"][1]["ret"] = "bool" +defs["igSliderScalarN"][1]["signature"] = "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igSliderScalarN"][1]["stname"] = "" +defs["igSliderScalarN"]["(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igSliderScalarN"][1] +defs["igSmallButton"] = {} +defs["igSmallButton"][1] = {} +defs["igSmallButton"][1]["args"] = "(const char* label)" +defs["igSmallButton"][1]["argsT"] = {} +defs["igSmallButton"][1]["argsT"][1] = {} +defs["igSmallButton"][1]["argsT"][1]["name"] = "label" +defs["igSmallButton"][1]["argsT"][1]["type"] = "const char*" +defs["igSmallButton"][1]["argsoriginal"] = "(const char* label)" +defs["igSmallButton"][1]["call_args"] = "(label)" +defs["igSmallButton"][1]["cimguiname"] = "igSmallButton" +defs["igSmallButton"][1]["defaults"] = {} +defs["igSmallButton"][1]["funcname"] = "SmallButton" +defs["igSmallButton"][1]["location"] = "imgui:510" +defs["igSmallButton"][1]["namespace"] = "ImGui" +defs["igSmallButton"][1]["ov_cimguiname"] = "igSmallButton" +defs["igSmallButton"][1]["ret"] = "bool" +defs["igSmallButton"][1]["signature"] = "(const char*)" +defs["igSmallButton"][1]["stname"] = "" +defs["igSmallButton"]["(const char*)"] = defs["igSmallButton"][1] +defs["igSpacing"] = {} +defs["igSpacing"][1] = {} +defs["igSpacing"][1]["args"] = "()" +defs["igSpacing"][1]["argsT"] = {} +defs["igSpacing"][1]["argsoriginal"] = "()" +defs["igSpacing"][1]["call_args"] = "()" +defs["igSpacing"][1]["cimguiname"] = "igSpacing" +defs["igSpacing"][1]["defaults"] = {} +defs["igSpacing"][1]["funcname"] = "Spacing" +defs["igSpacing"][1]["location"] = "imgui:450" +defs["igSpacing"][1]["namespace"] = "ImGui" +defs["igSpacing"][1]["ov_cimguiname"] = "igSpacing" +defs["igSpacing"][1]["ret"] = "void" +defs["igSpacing"][1]["signature"] = "()" +defs["igSpacing"][1]["stname"] = "" +defs["igSpacing"]["()"] = defs["igSpacing"][1] +defs["igStyleColorsClassic"] = {} +defs["igStyleColorsClassic"][1] = {} +defs["igStyleColorsClassic"][1]["args"] = "(ImGuiStyle* dst)" +defs["igStyleColorsClassic"][1]["argsT"] = {} +defs["igStyleColorsClassic"][1]["argsT"][1] = {} +defs["igStyleColorsClassic"][1]["argsT"][1]["name"] = "dst" +defs["igStyleColorsClassic"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["igStyleColorsClassic"][1]["argsoriginal"] = "(ImGuiStyle* dst=((void*)0))" +defs["igStyleColorsClassic"][1]["call_args"] = "(dst)" +defs["igStyleColorsClassic"][1]["cimguiname"] = "igStyleColorsClassic" +defs["igStyleColorsClassic"][1]["defaults"] = {} +defs["igStyleColorsClassic"][1]["defaults"]["dst"] = "NULL" +defs["igStyleColorsClassic"][1]["funcname"] = "StyleColorsClassic" +defs["igStyleColorsClassic"][1]["location"] = "imgui:322" +defs["igStyleColorsClassic"][1]["namespace"] = "ImGui" +defs["igStyleColorsClassic"][1]["ov_cimguiname"] = "igStyleColorsClassic" +defs["igStyleColorsClassic"][1]["ret"] = "void" +defs["igStyleColorsClassic"][1]["signature"] = "(ImGuiStyle*)" +defs["igStyleColorsClassic"][1]["stname"] = "" +defs["igStyleColorsClassic"]["(ImGuiStyle*)"] = defs["igStyleColorsClassic"][1] +defs["igStyleColorsDark"] = {} +defs["igStyleColorsDark"][1] = {} +defs["igStyleColorsDark"][1]["args"] = "(ImGuiStyle* dst)" +defs["igStyleColorsDark"][1]["argsT"] = {} +defs["igStyleColorsDark"][1]["argsT"][1] = {} +defs["igStyleColorsDark"][1]["argsT"][1]["name"] = "dst" +defs["igStyleColorsDark"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["igStyleColorsDark"][1]["argsoriginal"] = "(ImGuiStyle* dst=((void*)0))" +defs["igStyleColorsDark"][1]["call_args"] = "(dst)" +defs["igStyleColorsDark"][1]["cimguiname"] = "igStyleColorsDark" +defs["igStyleColorsDark"][1]["defaults"] = {} +defs["igStyleColorsDark"][1]["defaults"]["dst"] = "NULL" +defs["igStyleColorsDark"][1]["funcname"] = "StyleColorsDark" +defs["igStyleColorsDark"][1]["location"] = "imgui:320" +defs["igStyleColorsDark"][1]["namespace"] = "ImGui" +defs["igStyleColorsDark"][1]["ov_cimguiname"] = "igStyleColorsDark" +defs["igStyleColorsDark"][1]["ret"] = "void" +defs["igStyleColorsDark"][1]["signature"] = "(ImGuiStyle*)" +defs["igStyleColorsDark"][1]["stname"] = "" +defs["igStyleColorsDark"]["(ImGuiStyle*)"] = defs["igStyleColorsDark"][1] +defs["igStyleColorsLight"] = {} +defs["igStyleColorsLight"][1] = {} +defs["igStyleColorsLight"][1]["args"] = "(ImGuiStyle* dst)" +defs["igStyleColorsLight"][1]["argsT"] = {} +defs["igStyleColorsLight"][1]["argsT"][1] = {} +defs["igStyleColorsLight"][1]["argsT"][1]["name"] = "dst" +defs["igStyleColorsLight"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["igStyleColorsLight"][1]["argsoriginal"] = "(ImGuiStyle* dst=((void*)0))" +defs["igStyleColorsLight"][1]["call_args"] = "(dst)" +defs["igStyleColorsLight"][1]["cimguiname"] = "igStyleColorsLight" +defs["igStyleColorsLight"][1]["defaults"] = {} +defs["igStyleColorsLight"][1]["defaults"]["dst"] = "NULL" +defs["igStyleColorsLight"][1]["funcname"] = "StyleColorsLight" +defs["igStyleColorsLight"][1]["location"] = "imgui:321" +defs["igStyleColorsLight"][1]["namespace"] = "ImGui" +defs["igStyleColorsLight"][1]["ov_cimguiname"] = "igStyleColorsLight" +defs["igStyleColorsLight"][1]["ret"] = "void" +defs["igStyleColorsLight"][1]["signature"] = "(ImGuiStyle*)" +defs["igStyleColorsLight"][1]["stname"] = "" +defs["igStyleColorsLight"]["(ImGuiStyle*)"] = defs["igStyleColorsLight"][1] +defs["igTabItemButton"] = {} +defs["igTabItemButton"][1] = {} +defs["igTabItemButton"][1]["args"] = "(const char* label,ImGuiTabItemFlags flags)" +defs["igTabItemButton"][1]["argsT"] = {} +defs["igTabItemButton"][1]["argsT"][1] = {} +defs["igTabItemButton"][1]["argsT"][1]["name"] = "label" +defs["igTabItemButton"][1]["argsT"][1]["type"] = "const char*" +defs["igTabItemButton"][1]["argsT"][2] = {} +defs["igTabItemButton"][1]["argsT"][2]["name"] = "flags" +defs["igTabItemButton"][1]["argsT"][2]["type"] = "ImGuiTabItemFlags" +defs["igTabItemButton"][1]["argsoriginal"] = "(const char* label,ImGuiTabItemFlags flags=0)" +defs["igTabItemButton"][1]["call_args"] = "(label,flags)" +defs["igTabItemButton"][1]["cimguiname"] = "igTabItemButton" +defs["igTabItemButton"][1]["defaults"] = {} +defs["igTabItemButton"][1]["defaults"]["flags"] = "0" +defs["igTabItemButton"][1]["funcname"] = "TabItemButton" +defs["igTabItemButton"][1]["location"] = "imgui:799" +defs["igTabItemButton"][1]["namespace"] = "ImGui" +defs["igTabItemButton"][1]["ov_cimguiname"] = "igTabItemButton" +defs["igTabItemButton"][1]["ret"] = "bool" +defs["igTabItemButton"][1]["signature"] = "(const char*,ImGuiTabItemFlags)" +defs["igTabItemButton"][1]["stname"] = "" +defs["igTabItemButton"]["(const char*,ImGuiTabItemFlags)"] = defs["igTabItemButton"][1] +defs["igTableGetColumnCount"] = {} +defs["igTableGetColumnCount"][1] = {} +defs["igTableGetColumnCount"][1]["args"] = "()" +defs["igTableGetColumnCount"][1]["argsT"] = {} +defs["igTableGetColumnCount"][1]["argsoriginal"] = "()" +defs["igTableGetColumnCount"][1]["call_args"] = "()" +defs["igTableGetColumnCount"][1]["cimguiname"] = "igTableGetColumnCount" +defs["igTableGetColumnCount"][1]["defaults"] = {} +defs["igTableGetColumnCount"][1]["funcname"] = "TableGetColumnCount" +defs["igTableGetColumnCount"][1]["location"] = "imgui:774" +defs["igTableGetColumnCount"][1]["namespace"] = "ImGui" +defs["igTableGetColumnCount"][1]["ov_cimguiname"] = "igTableGetColumnCount" +defs["igTableGetColumnCount"][1]["ret"] = "int" +defs["igTableGetColumnCount"][1]["signature"] = "()" +defs["igTableGetColumnCount"][1]["stname"] = "" +defs["igTableGetColumnCount"]["()"] = defs["igTableGetColumnCount"][1] +defs["igTableGetColumnFlags"] = {} +defs["igTableGetColumnFlags"][1] = {} +defs["igTableGetColumnFlags"][1]["args"] = "(int column_n)" +defs["igTableGetColumnFlags"][1]["argsT"] = {} +defs["igTableGetColumnFlags"][1]["argsT"][1] = {} +defs["igTableGetColumnFlags"][1]["argsT"][1]["name"] = "column_n" +defs["igTableGetColumnFlags"][1]["argsT"][1]["type"] = "int" +defs["igTableGetColumnFlags"][1]["argsoriginal"] = "(int column_n=-1)" +defs["igTableGetColumnFlags"][1]["call_args"] = "(column_n)" +defs["igTableGetColumnFlags"][1]["cimguiname"] = "igTableGetColumnFlags" +defs["igTableGetColumnFlags"][1]["defaults"] = {} +defs["igTableGetColumnFlags"][1]["defaults"]["column_n"] = "-1" +defs["igTableGetColumnFlags"][1]["funcname"] = "TableGetColumnFlags" +defs["igTableGetColumnFlags"][1]["location"] = "imgui:778" +defs["igTableGetColumnFlags"][1]["namespace"] = "ImGui" +defs["igTableGetColumnFlags"][1]["ov_cimguiname"] = "igTableGetColumnFlags" +defs["igTableGetColumnFlags"][1]["ret"] = "ImGuiTableColumnFlags" +defs["igTableGetColumnFlags"][1]["signature"] = "(int)" +defs["igTableGetColumnFlags"][1]["stname"] = "" +defs["igTableGetColumnFlags"]["(int)"] = defs["igTableGetColumnFlags"][1] +defs["igTableGetColumnIndex"] = {} +defs["igTableGetColumnIndex"][1] = {} +defs["igTableGetColumnIndex"][1]["args"] = "()" +defs["igTableGetColumnIndex"][1]["argsT"] = {} +defs["igTableGetColumnIndex"][1]["argsoriginal"] = "()" +defs["igTableGetColumnIndex"][1]["call_args"] = "()" +defs["igTableGetColumnIndex"][1]["cimguiname"] = "igTableGetColumnIndex" +defs["igTableGetColumnIndex"][1]["defaults"] = {} +defs["igTableGetColumnIndex"][1]["funcname"] = "TableGetColumnIndex" +defs["igTableGetColumnIndex"][1]["location"] = "imgui:775" +defs["igTableGetColumnIndex"][1]["namespace"] = "ImGui" +defs["igTableGetColumnIndex"][1]["ov_cimguiname"] = "igTableGetColumnIndex" +defs["igTableGetColumnIndex"][1]["ret"] = "int" +defs["igTableGetColumnIndex"][1]["signature"] = "()" +defs["igTableGetColumnIndex"][1]["stname"] = "" +defs["igTableGetColumnIndex"]["()"] = defs["igTableGetColumnIndex"][1] +defs["igTableGetColumnName"] = {} +defs["igTableGetColumnName"][1] = {} +defs["igTableGetColumnName"][1]["args"] = "(int column_n)" +defs["igTableGetColumnName"][1]["argsT"] = {} +defs["igTableGetColumnName"][1]["argsT"][1] = {} +defs["igTableGetColumnName"][1]["argsT"][1]["name"] = "column_n" +defs["igTableGetColumnName"][1]["argsT"][1]["type"] = "int" +defs["igTableGetColumnName"][1]["argsoriginal"] = "(int column_n=-1)" +defs["igTableGetColumnName"][1]["call_args"] = "(column_n)" +defs["igTableGetColumnName"][1]["cimguiname"] = "igTableGetColumnName" +defs["igTableGetColumnName"][1]["defaults"] = {} +defs["igTableGetColumnName"][1]["defaults"]["column_n"] = "-1" +defs["igTableGetColumnName"][1]["funcname"] = "TableGetColumnName" +defs["igTableGetColumnName"][1]["location"] = "imgui:777" +defs["igTableGetColumnName"][1]["namespace"] = "ImGui" +defs["igTableGetColumnName"][1]["ov_cimguiname"] = "igTableGetColumnName" +defs["igTableGetColumnName"][1]["ret"] = "const char*" +defs["igTableGetColumnName"][1]["signature"] = "(int)" +defs["igTableGetColumnName"][1]["stname"] = "" +defs["igTableGetColumnName"]["(int)"] = defs["igTableGetColumnName"][1] +defs["igTableGetRowIndex"] = {} +defs["igTableGetRowIndex"][1] = {} +defs["igTableGetRowIndex"][1]["args"] = "()" +defs["igTableGetRowIndex"][1]["argsT"] = {} +defs["igTableGetRowIndex"][1]["argsoriginal"] = "()" +defs["igTableGetRowIndex"][1]["call_args"] = "()" +defs["igTableGetRowIndex"][1]["cimguiname"] = "igTableGetRowIndex" +defs["igTableGetRowIndex"][1]["defaults"] = {} +defs["igTableGetRowIndex"][1]["funcname"] = "TableGetRowIndex" +defs["igTableGetRowIndex"][1]["location"] = "imgui:776" +defs["igTableGetRowIndex"][1]["namespace"] = "ImGui" +defs["igTableGetRowIndex"][1]["ov_cimguiname"] = "igTableGetRowIndex" +defs["igTableGetRowIndex"][1]["ret"] = "int" +defs["igTableGetRowIndex"][1]["signature"] = "()" +defs["igTableGetRowIndex"][1]["stname"] = "" +defs["igTableGetRowIndex"]["()"] = defs["igTableGetRowIndex"][1] +defs["igTableGetSortSpecs"] = {} +defs["igTableGetSortSpecs"][1] = {} +defs["igTableGetSortSpecs"][1]["args"] = "()" +defs["igTableGetSortSpecs"][1]["argsT"] = {} +defs["igTableGetSortSpecs"][1]["argsoriginal"] = "()" +defs["igTableGetSortSpecs"][1]["call_args"] = "()" +defs["igTableGetSortSpecs"][1]["cimguiname"] = "igTableGetSortSpecs" +defs["igTableGetSortSpecs"][1]["defaults"] = {} +defs["igTableGetSortSpecs"][1]["funcname"] = "TableGetSortSpecs" +defs["igTableGetSortSpecs"][1]["location"] = "imgui:773" +defs["igTableGetSortSpecs"][1]["namespace"] = "ImGui" +defs["igTableGetSortSpecs"][1]["ov_cimguiname"] = "igTableGetSortSpecs" +defs["igTableGetSortSpecs"][1]["ret"] = "ImGuiTableSortSpecs*" +defs["igTableGetSortSpecs"][1]["signature"] = "()" +defs["igTableGetSortSpecs"][1]["stname"] = "" +defs["igTableGetSortSpecs"]["()"] = defs["igTableGetSortSpecs"][1] +defs["igTableHeader"] = {} +defs["igTableHeader"][1] = {} +defs["igTableHeader"][1]["args"] = "(const char* label)" +defs["igTableHeader"][1]["argsT"] = {} +defs["igTableHeader"][1]["argsT"][1] = {} +defs["igTableHeader"][1]["argsT"][1]["name"] = "label" +defs["igTableHeader"][1]["argsT"][1]["type"] = "const char*" +defs["igTableHeader"][1]["argsoriginal"] = "(const char* label)" +defs["igTableHeader"][1]["call_args"] = "(label)" +defs["igTableHeader"][1]["cimguiname"] = "igTableHeader" +defs["igTableHeader"][1]["defaults"] = {} +defs["igTableHeader"][1]["funcname"] = "TableHeader" +defs["igTableHeader"][1]["location"] = "imgui:765" +defs["igTableHeader"][1]["namespace"] = "ImGui" +defs["igTableHeader"][1]["ov_cimguiname"] = "igTableHeader" +defs["igTableHeader"][1]["ret"] = "void" +defs["igTableHeader"][1]["signature"] = "(const char*)" +defs["igTableHeader"][1]["stname"] = "" +defs["igTableHeader"]["(const char*)"] = defs["igTableHeader"][1] +defs["igTableHeadersRow"] = {} +defs["igTableHeadersRow"][1] = {} +defs["igTableHeadersRow"][1]["args"] = "()" +defs["igTableHeadersRow"][1]["argsT"] = {} +defs["igTableHeadersRow"][1]["argsoriginal"] = "()" +defs["igTableHeadersRow"][1]["call_args"] = "()" +defs["igTableHeadersRow"][1]["cimguiname"] = "igTableHeadersRow" +defs["igTableHeadersRow"][1]["defaults"] = {} +defs["igTableHeadersRow"][1]["funcname"] = "TableHeadersRow" +defs["igTableHeadersRow"][1]["location"] = "imgui:764" +defs["igTableHeadersRow"][1]["namespace"] = "ImGui" +defs["igTableHeadersRow"][1]["ov_cimguiname"] = "igTableHeadersRow" +defs["igTableHeadersRow"][1]["ret"] = "void" +defs["igTableHeadersRow"][1]["signature"] = "()" +defs["igTableHeadersRow"][1]["stname"] = "" +defs["igTableHeadersRow"]["()"] = defs["igTableHeadersRow"][1] +defs["igTableNextColumn"] = {} +defs["igTableNextColumn"][1] = {} +defs["igTableNextColumn"][1]["args"] = "()" +defs["igTableNextColumn"][1]["argsT"] = {} +defs["igTableNextColumn"][1]["argsoriginal"] = "()" +defs["igTableNextColumn"][1]["call_args"] = "()" +defs["igTableNextColumn"][1]["cimguiname"] = "igTableNextColumn" +defs["igTableNextColumn"][1]["defaults"] = {} +defs["igTableNextColumn"][1]["funcname"] = "TableNextColumn" +defs["igTableNextColumn"][1]["location"] = "imgui:751" +defs["igTableNextColumn"][1]["namespace"] = "ImGui" +defs["igTableNextColumn"][1]["ov_cimguiname"] = "igTableNextColumn" +defs["igTableNextColumn"][1]["ret"] = "bool" +defs["igTableNextColumn"][1]["signature"] = "()" +defs["igTableNextColumn"][1]["stname"] = "" +defs["igTableNextColumn"]["()"] = defs["igTableNextColumn"][1] +defs["igTableNextRow"] = {} +defs["igTableNextRow"][1] = {} +defs["igTableNextRow"][1]["args"] = "(ImGuiTableRowFlags row_flags,float min_row_height)" +defs["igTableNextRow"][1]["argsT"] = {} +defs["igTableNextRow"][1]["argsT"][1] = {} +defs["igTableNextRow"][1]["argsT"][1]["name"] = "row_flags" +defs["igTableNextRow"][1]["argsT"][1]["type"] = "ImGuiTableRowFlags" +defs["igTableNextRow"][1]["argsT"][2] = {} +defs["igTableNextRow"][1]["argsT"][2]["name"] = "min_row_height" +defs["igTableNextRow"][1]["argsT"][2]["type"] = "float" +defs["igTableNextRow"][1]["argsoriginal"] = "(ImGuiTableRowFlags row_flags=0,float min_row_height=0.0f)" +defs["igTableNextRow"][1]["call_args"] = "(row_flags,min_row_height)" +defs["igTableNextRow"][1]["cimguiname"] = "igTableNextRow" +defs["igTableNextRow"][1]["defaults"] = {} +defs["igTableNextRow"][1]["defaults"]["min_row_height"] = "0.0f" +defs["igTableNextRow"][1]["defaults"]["row_flags"] = "0" +defs["igTableNextRow"][1]["funcname"] = "TableNextRow" +defs["igTableNextRow"][1]["location"] = "imgui:750" +defs["igTableNextRow"][1]["namespace"] = "ImGui" +defs["igTableNextRow"][1]["ov_cimguiname"] = "igTableNextRow" +defs["igTableNextRow"][1]["ret"] = "void" +defs["igTableNextRow"][1]["signature"] = "(ImGuiTableRowFlags,float)" +defs["igTableNextRow"][1]["stname"] = "" +defs["igTableNextRow"]["(ImGuiTableRowFlags,float)"] = defs["igTableNextRow"][1] +defs["igTableSetBgColor"] = {} +defs["igTableSetBgColor"][1] = {} +defs["igTableSetBgColor"][1]["args"] = "(ImGuiTableBgTarget target,ImU32 color,int column_n)" +defs["igTableSetBgColor"][1]["argsT"] = {} +defs["igTableSetBgColor"][1]["argsT"][1] = {} +defs["igTableSetBgColor"][1]["argsT"][1]["name"] = "target" +defs["igTableSetBgColor"][1]["argsT"][1]["type"] = "ImGuiTableBgTarget" +defs["igTableSetBgColor"][1]["argsT"][2] = {} +defs["igTableSetBgColor"][1]["argsT"][2]["name"] = "color" +defs["igTableSetBgColor"][1]["argsT"][2]["type"] = "ImU32" +defs["igTableSetBgColor"][1]["argsT"][3] = {} +defs["igTableSetBgColor"][1]["argsT"][3]["name"] = "column_n" +defs["igTableSetBgColor"][1]["argsT"][3]["type"] = "int" +defs["igTableSetBgColor"][1]["argsoriginal"] = "(ImGuiTableBgTarget target,ImU32 color,int column_n=-1)" +defs["igTableSetBgColor"][1]["call_args"] = "(target,color,column_n)" +defs["igTableSetBgColor"][1]["cimguiname"] = "igTableSetBgColor" +defs["igTableSetBgColor"][1]["defaults"] = {} +defs["igTableSetBgColor"][1]["defaults"]["column_n"] = "-1" +defs["igTableSetBgColor"][1]["funcname"] = "TableSetBgColor" +defs["igTableSetBgColor"][1]["location"] = "imgui:780" +defs["igTableSetBgColor"][1]["namespace"] = "ImGui" +defs["igTableSetBgColor"][1]["ov_cimguiname"] = "igTableSetBgColor" +defs["igTableSetBgColor"][1]["ret"] = "void" +defs["igTableSetBgColor"][1]["signature"] = "(ImGuiTableBgTarget,ImU32,int)" +defs["igTableSetBgColor"][1]["stname"] = "" +defs["igTableSetBgColor"]["(ImGuiTableBgTarget,ImU32,int)"] = defs["igTableSetBgColor"][1] +defs["igTableSetColumnEnabled"] = {} +defs["igTableSetColumnEnabled"][1] = {} +defs["igTableSetColumnEnabled"][1]["args"] = "(int column_n,bool v)" +defs["igTableSetColumnEnabled"][1]["argsT"] = {} +defs["igTableSetColumnEnabled"][1]["argsT"][1] = {} +defs["igTableSetColumnEnabled"][1]["argsT"][1]["name"] = "column_n" +defs["igTableSetColumnEnabled"][1]["argsT"][1]["type"] = "int" +defs["igTableSetColumnEnabled"][1]["argsT"][2] = {} +defs["igTableSetColumnEnabled"][1]["argsT"][2]["name"] = "v" +defs["igTableSetColumnEnabled"][1]["argsT"][2]["type"] = "bool" +defs["igTableSetColumnEnabled"][1]["argsoriginal"] = "(int column_n,bool v)" +defs["igTableSetColumnEnabled"][1]["call_args"] = "(column_n,v)" +defs["igTableSetColumnEnabled"][1]["cimguiname"] = "igTableSetColumnEnabled" +defs["igTableSetColumnEnabled"][1]["defaults"] = {} +defs["igTableSetColumnEnabled"][1]["funcname"] = "TableSetColumnEnabled" +defs["igTableSetColumnEnabled"][1]["location"] = "imgui:779" +defs["igTableSetColumnEnabled"][1]["namespace"] = "ImGui" +defs["igTableSetColumnEnabled"][1]["ov_cimguiname"] = "igTableSetColumnEnabled" +defs["igTableSetColumnEnabled"][1]["ret"] = "void" +defs["igTableSetColumnEnabled"][1]["signature"] = "(int,bool)" +defs["igTableSetColumnEnabled"][1]["stname"] = "" +defs["igTableSetColumnEnabled"]["(int,bool)"] = defs["igTableSetColumnEnabled"][1] +defs["igTableSetColumnIndex"] = {} +defs["igTableSetColumnIndex"][1] = {} +defs["igTableSetColumnIndex"][1]["args"] = "(int column_n)" +defs["igTableSetColumnIndex"][1]["argsT"] = {} +defs["igTableSetColumnIndex"][1]["argsT"][1] = {} +defs["igTableSetColumnIndex"][1]["argsT"][1]["name"] = "column_n" +defs["igTableSetColumnIndex"][1]["argsT"][1]["type"] = "int" +defs["igTableSetColumnIndex"][1]["argsoriginal"] = "(int column_n)" +defs["igTableSetColumnIndex"][1]["call_args"] = "(column_n)" +defs["igTableSetColumnIndex"][1]["cimguiname"] = "igTableSetColumnIndex" +defs["igTableSetColumnIndex"][1]["defaults"] = {} +defs["igTableSetColumnIndex"][1]["funcname"] = "TableSetColumnIndex" +defs["igTableSetColumnIndex"][1]["location"] = "imgui:752" +defs["igTableSetColumnIndex"][1]["namespace"] = "ImGui" +defs["igTableSetColumnIndex"][1]["ov_cimguiname"] = "igTableSetColumnIndex" +defs["igTableSetColumnIndex"][1]["ret"] = "bool" +defs["igTableSetColumnIndex"][1]["signature"] = "(int)" +defs["igTableSetColumnIndex"][1]["stname"] = "" +defs["igTableSetColumnIndex"]["(int)"] = defs["igTableSetColumnIndex"][1] +defs["igTableSetupColumn"] = {} +defs["igTableSetupColumn"][1] = {} +defs["igTableSetupColumn"][1]["args"] = "(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)" +defs["igTableSetupColumn"][1]["argsT"] = {} +defs["igTableSetupColumn"][1]["argsT"][1] = {} +defs["igTableSetupColumn"][1]["argsT"][1]["name"] = "label" +defs["igTableSetupColumn"][1]["argsT"][1]["type"] = "const char*" +defs["igTableSetupColumn"][1]["argsT"][2] = {} +defs["igTableSetupColumn"][1]["argsT"][2]["name"] = "flags" +defs["igTableSetupColumn"][1]["argsT"][2]["type"] = "ImGuiTableColumnFlags" +defs["igTableSetupColumn"][1]["argsT"][3] = {} +defs["igTableSetupColumn"][1]["argsT"][3]["name"] = "init_width_or_weight" +defs["igTableSetupColumn"][1]["argsT"][3]["type"] = "float" +defs["igTableSetupColumn"][1]["argsT"][4] = {} +defs["igTableSetupColumn"][1]["argsT"][4]["name"] = "user_id" +defs["igTableSetupColumn"][1]["argsT"][4]["type"] = "ImGuiID" +defs["igTableSetupColumn"][1]["argsoriginal"] = "(const char* label,ImGuiTableColumnFlags flags=0,float init_width_or_weight=0.0f,ImGuiID user_id=0)" +defs["igTableSetupColumn"][1]["call_args"] = "(label,flags,init_width_or_weight,user_id)" +defs["igTableSetupColumn"][1]["cimguiname"] = "igTableSetupColumn" +defs["igTableSetupColumn"][1]["defaults"] = {} +defs["igTableSetupColumn"][1]["defaults"]["flags"] = "0" +defs["igTableSetupColumn"][1]["defaults"]["init_width_or_weight"] = "0.0f" +defs["igTableSetupColumn"][1]["defaults"]["user_id"] = "0" +defs["igTableSetupColumn"][1]["funcname"] = "TableSetupColumn" +defs["igTableSetupColumn"][1]["location"] = "imgui:762" +defs["igTableSetupColumn"][1]["namespace"] = "ImGui" +defs["igTableSetupColumn"][1]["ov_cimguiname"] = "igTableSetupColumn" +defs["igTableSetupColumn"][1]["ret"] = "void" +defs["igTableSetupColumn"][1]["signature"] = "(const char*,ImGuiTableColumnFlags,float,ImGuiID)" +defs["igTableSetupColumn"][1]["stname"] = "" +defs["igTableSetupColumn"]["(const char*,ImGuiTableColumnFlags,float,ImGuiID)"] = defs["igTableSetupColumn"][1] +defs["igTableSetupScrollFreeze"] = {} +defs["igTableSetupScrollFreeze"][1] = {} +defs["igTableSetupScrollFreeze"][1]["args"] = "(int cols,int rows)" +defs["igTableSetupScrollFreeze"][1]["argsT"] = {} +defs["igTableSetupScrollFreeze"][1]["argsT"][1] = {} +defs["igTableSetupScrollFreeze"][1]["argsT"][1]["name"] = "cols" +defs["igTableSetupScrollFreeze"][1]["argsT"][1]["type"] = "int" +defs["igTableSetupScrollFreeze"][1]["argsT"][2] = {} +defs["igTableSetupScrollFreeze"][1]["argsT"][2]["name"] = "rows" +defs["igTableSetupScrollFreeze"][1]["argsT"][2]["type"] = "int" +defs["igTableSetupScrollFreeze"][1]["argsoriginal"] = "(int cols,int rows)" +defs["igTableSetupScrollFreeze"][1]["call_args"] = "(cols,rows)" +defs["igTableSetupScrollFreeze"][1]["cimguiname"] = "igTableSetupScrollFreeze" +defs["igTableSetupScrollFreeze"][1]["defaults"] = {} +defs["igTableSetupScrollFreeze"][1]["funcname"] = "TableSetupScrollFreeze" +defs["igTableSetupScrollFreeze"][1]["location"] = "imgui:763" +defs["igTableSetupScrollFreeze"][1]["namespace"] = "ImGui" +defs["igTableSetupScrollFreeze"][1]["ov_cimguiname"] = "igTableSetupScrollFreeze" +defs["igTableSetupScrollFreeze"][1]["ret"] = "void" +defs["igTableSetupScrollFreeze"][1]["signature"] = "(int,int)" +defs["igTableSetupScrollFreeze"][1]["stname"] = "" +defs["igTableSetupScrollFreeze"]["(int,int)"] = defs["igTableSetupScrollFreeze"][1] +defs["igText"] = {} +defs["igText"][1] = {} +defs["igText"][1]["args"] = "(const char* fmt,...)" +defs["igText"][1]["argsT"] = {} +defs["igText"][1]["argsT"][1] = {} +defs["igText"][1]["argsT"][1]["name"] = "fmt" +defs["igText"][1]["argsT"][1]["type"] = "const char*" +defs["igText"][1]["argsT"][2] = {} +defs["igText"][1]["argsT"][2]["name"] = "..." +defs["igText"][1]["argsT"][2]["type"] = "..." +defs["igText"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igText"][1]["call_args"] = "(fmt,...)" +defs["igText"][1]["cimguiname"] = "igText" +defs["igText"][1]["defaults"] = {} +defs["igText"][1]["funcname"] = "Text" +defs["igText"][1]["isvararg"] = "...)" +defs["igText"][1]["location"] = "imgui:493" +defs["igText"][1]["namespace"] = "ImGui" +defs["igText"][1]["ov_cimguiname"] = "igText" +defs["igText"][1]["ret"] = "void" +defs["igText"][1]["signature"] = "(const char*,...)" +defs["igText"][1]["stname"] = "" +defs["igText"]["(const char*,...)"] = defs["igText"][1] +defs["igTextColored"] = {} +defs["igTextColored"][1] = {} +defs["igTextColored"][1]["args"] = "(const ImVec4 col,const char* fmt,...)" +defs["igTextColored"][1]["argsT"] = {} +defs["igTextColored"][1]["argsT"][1] = {} +defs["igTextColored"][1]["argsT"][1]["name"] = "col" +defs["igTextColored"][1]["argsT"][1]["type"] = "const ImVec4" +defs["igTextColored"][1]["argsT"][2] = {} +defs["igTextColored"][1]["argsT"][2]["name"] = "fmt" +defs["igTextColored"][1]["argsT"][2]["type"] = "const char*" +defs["igTextColored"][1]["argsT"][3] = {} +defs["igTextColored"][1]["argsT"][3]["name"] = "..." +defs["igTextColored"][1]["argsT"][3]["type"] = "..." +defs["igTextColored"][1]["argsoriginal"] = "(const ImVec4& col,const char* fmt,...)" +defs["igTextColored"][1]["call_args"] = "(col,fmt,...)" +defs["igTextColored"][1]["cimguiname"] = "igTextColored" +defs["igTextColored"][1]["defaults"] = {} +defs["igTextColored"][1]["funcname"] = "TextColored" +defs["igTextColored"][1]["isvararg"] = "...)" +defs["igTextColored"][1]["location"] = "imgui:495" +defs["igTextColored"][1]["namespace"] = "ImGui" +defs["igTextColored"][1]["ov_cimguiname"] = "igTextColored" +defs["igTextColored"][1]["ret"] = "void" +defs["igTextColored"][1]["signature"] = "(const ImVec4,const char*,...)" +defs["igTextColored"][1]["stname"] = "" +defs["igTextColored"]["(const ImVec4,const char*,...)"] = defs["igTextColored"][1] +defs["igTextColoredV"] = {} +defs["igTextColoredV"][1] = {} +defs["igTextColoredV"][1]["args"] = "(const ImVec4 col,const char* fmt,va_list args)" +defs["igTextColoredV"][1]["argsT"] = {} +defs["igTextColoredV"][1]["argsT"][1] = {} +defs["igTextColoredV"][1]["argsT"][1]["name"] = "col" +defs["igTextColoredV"][1]["argsT"][1]["type"] = "const ImVec4" +defs["igTextColoredV"][1]["argsT"][2] = {} +defs["igTextColoredV"][1]["argsT"][2]["name"] = "fmt" +defs["igTextColoredV"][1]["argsT"][2]["type"] = "const char*" +defs["igTextColoredV"][1]["argsT"][3] = {} +defs["igTextColoredV"][1]["argsT"][3]["name"] = "args" +defs["igTextColoredV"][1]["argsT"][3]["type"] = "va_list" +defs["igTextColoredV"][1]["argsoriginal"] = "(const ImVec4& col,const char* fmt,va_list args)" +defs["igTextColoredV"][1]["call_args"] = "(col,fmt,args)" +defs["igTextColoredV"][1]["cimguiname"] = "igTextColoredV" +defs["igTextColoredV"][1]["defaults"] = {} +defs["igTextColoredV"][1]["funcname"] = "TextColoredV" +defs["igTextColoredV"][1]["location"] = "imgui:496" +defs["igTextColoredV"][1]["namespace"] = "ImGui" +defs["igTextColoredV"][1]["ov_cimguiname"] = "igTextColoredV" +defs["igTextColoredV"][1]["ret"] = "void" +defs["igTextColoredV"][1]["signature"] = "(const ImVec4,const char*,va_list)" +defs["igTextColoredV"][1]["stname"] = "" +defs["igTextColoredV"]["(const ImVec4,const char*,va_list)"] = defs["igTextColoredV"][1] +defs["igTextDisabled"] = {} +defs["igTextDisabled"][1] = {} +defs["igTextDisabled"][1]["args"] = "(const char* fmt,...)" +defs["igTextDisabled"][1]["argsT"] = {} +defs["igTextDisabled"][1]["argsT"][1] = {} +defs["igTextDisabled"][1]["argsT"][1]["name"] = "fmt" +defs["igTextDisabled"][1]["argsT"][1]["type"] = "const char*" +defs["igTextDisabled"][1]["argsT"][2] = {} +defs["igTextDisabled"][1]["argsT"][2]["name"] = "..." +defs["igTextDisabled"][1]["argsT"][2]["type"] = "..." +defs["igTextDisabled"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igTextDisabled"][1]["call_args"] = "(fmt,...)" +defs["igTextDisabled"][1]["cimguiname"] = "igTextDisabled" +defs["igTextDisabled"][1]["defaults"] = {} +defs["igTextDisabled"][1]["funcname"] = "TextDisabled" +defs["igTextDisabled"][1]["isvararg"] = "...)" +defs["igTextDisabled"][1]["location"] = "imgui:497" +defs["igTextDisabled"][1]["namespace"] = "ImGui" +defs["igTextDisabled"][1]["ov_cimguiname"] = "igTextDisabled" +defs["igTextDisabled"][1]["ret"] = "void" +defs["igTextDisabled"][1]["signature"] = "(const char*,...)" +defs["igTextDisabled"][1]["stname"] = "" +defs["igTextDisabled"]["(const char*,...)"] = defs["igTextDisabled"][1] +defs["igTextDisabledV"] = {} +defs["igTextDisabledV"][1] = {} +defs["igTextDisabledV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igTextDisabledV"][1]["argsT"] = {} +defs["igTextDisabledV"][1]["argsT"][1] = {} +defs["igTextDisabledV"][1]["argsT"][1]["name"] = "fmt" +defs["igTextDisabledV"][1]["argsT"][1]["type"] = "const char*" +defs["igTextDisabledV"][1]["argsT"][2] = {} +defs["igTextDisabledV"][1]["argsT"][2]["name"] = "args" +defs["igTextDisabledV"][1]["argsT"][2]["type"] = "va_list" +defs["igTextDisabledV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igTextDisabledV"][1]["call_args"] = "(fmt,args)" +defs["igTextDisabledV"][1]["cimguiname"] = "igTextDisabledV" +defs["igTextDisabledV"][1]["defaults"] = {} +defs["igTextDisabledV"][1]["funcname"] = "TextDisabledV" +defs["igTextDisabledV"][1]["location"] = "imgui:498" +defs["igTextDisabledV"][1]["namespace"] = "ImGui" +defs["igTextDisabledV"][1]["ov_cimguiname"] = "igTextDisabledV" +defs["igTextDisabledV"][1]["ret"] = "void" +defs["igTextDisabledV"][1]["signature"] = "(const char*,va_list)" +defs["igTextDisabledV"][1]["stname"] = "" +defs["igTextDisabledV"]["(const char*,va_list)"] = defs["igTextDisabledV"][1] +defs["igTextUnformatted"] = {} +defs["igTextUnformatted"][1] = {} +defs["igTextUnformatted"][1]["args"] = "(const char* text,const char* text_end)" +defs["igTextUnformatted"][1]["argsT"] = {} +defs["igTextUnformatted"][1]["argsT"][1] = {} +defs["igTextUnformatted"][1]["argsT"][1]["name"] = "text" +defs["igTextUnformatted"][1]["argsT"][1]["type"] = "const char*" +defs["igTextUnformatted"][1]["argsT"][2] = {} +defs["igTextUnformatted"][1]["argsT"][2]["name"] = "text_end" +defs["igTextUnformatted"][1]["argsT"][2]["type"] = "const char*" +defs["igTextUnformatted"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0))" +defs["igTextUnformatted"][1]["call_args"] = "(text,text_end)" +defs["igTextUnformatted"][1]["cimguiname"] = "igTextUnformatted" +defs["igTextUnformatted"][1]["defaults"] = {} +defs["igTextUnformatted"][1]["defaults"]["text_end"] = "NULL" +defs["igTextUnformatted"][1]["funcname"] = "TextUnformatted" +defs["igTextUnformatted"][1]["location"] = "imgui:492" +defs["igTextUnformatted"][1]["namespace"] = "ImGui" +defs["igTextUnformatted"][1]["ov_cimguiname"] = "igTextUnformatted" +defs["igTextUnformatted"][1]["ret"] = "void" +defs["igTextUnformatted"][1]["signature"] = "(const char*,const char*)" +defs["igTextUnformatted"][1]["stname"] = "" +defs["igTextUnformatted"]["(const char*,const char*)"] = defs["igTextUnformatted"][1] +defs["igTextV"] = {} +defs["igTextV"][1] = {} +defs["igTextV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igTextV"][1]["argsT"] = {} +defs["igTextV"][1]["argsT"][1] = {} +defs["igTextV"][1]["argsT"][1]["name"] = "fmt" +defs["igTextV"][1]["argsT"][1]["type"] = "const char*" +defs["igTextV"][1]["argsT"][2] = {} +defs["igTextV"][1]["argsT"][2]["name"] = "args" +defs["igTextV"][1]["argsT"][2]["type"] = "va_list" +defs["igTextV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igTextV"][1]["call_args"] = "(fmt,args)" +defs["igTextV"][1]["cimguiname"] = "igTextV" +defs["igTextV"][1]["defaults"] = {} +defs["igTextV"][1]["funcname"] = "TextV" +defs["igTextV"][1]["location"] = "imgui:494" +defs["igTextV"][1]["namespace"] = "ImGui" +defs["igTextV"][1]["ov_cimguiname"] = "igTextV" +defs["igTextV"][1]["ret"] = "void" +defs["igTextV"][1]["signature"] = "(const char*,va_list)" +defs["igTextV"][1]["stname"] = "" +defs["igTextV"]["(const char*,va_list)"] = defs["igTextV"][1] +defs["igTextWrapped"] = {} +defs["igTextWrapped"][1] = {} +defs["igTextWrapped"][1]["args"] = "(const char* fmt,...)" +defs["igTextWrapped"][1]["argsT"] = {} +defs["igTextWrapped"][1]["argsT"][1] = {} +defs["igTextWrapped"][1]["argsT"][1]["name"] = "fmt" +defs["igTextWrapped"][1]["argsT"][1]["type"] = "const char*" +defs["igTextWrapped"][1]["argsT"][2] = {} +defs["igTextWrapped"][1]["argsT"][2]["name"] = "..." +defs["igTextWrapped"][1]["argsT"][2]["type"] = "..." +defs["igTextWrapped"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igTextWrapped"][1]["call_args"] = "(fmt,...)" +defs["igTextWrapped"][1]["cimguiname"] = "igTextWrapped" +defs["igTextWrapped"][1]["defaults"] = {} +defs["igTextWrapped"][1]["funcname"] = "TextWrapped" +defs["igTextWrapped"][1]["isvararg"] = "...)" +defs["igTextWrapped"][1]["location"] = "imgui:499" +defs["igTextWrapped"][1]["namespace"] = "ImGui" +defs["igTextWrapped"][1]["ov_cimguiname"] = "igTextWrapped" +defs["igTextWrapped"][1]["ret"] = "void" +defs["igTextWrapped"][1]["signature"] = "(const char*,...)" +defs["igTextWrapped"][1]["stname"] = "" +defs["igTextWrapped"]["(const char*,...)"] = defs["igTextWrapped"][1] +defs["igTextWrappedV"] = {} +defs["igTextWrappedV"][1] = {} +defs["igTextWrappedV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igTextWrappedV"][1]["argsT"] = {} +defs["igTextWrappedV"][1]["argsT"][1] = {} +defs["igTextWrappedV"][1]["argsT"][1]["name"] = "fmt" +defs["igTextWrappedV"][1]["argsT"][1]["type"] = "const char*" +defs["igTextWrappedV"][1]["argsT"][2] = {} +defs["igTextWrappedV"][1]["argsT"][2]["name"] = "args" +defs["igTextWrappedV"][1]["argsT"][2]["type"] = "va_list" +defs["igTextWrappedV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igTextWrappedV"][1]["call_args"] = "(fmt,args)" +defs["igTextWrappedV"][1]["cimguiname"] = "igTextWrappedV" +defs["igTextWrappedV"][1]["defaults"] = {} +defs["igTextWrappedV"][1]["funcname"] = "TextWrappedV" +defs["igTextWrappedV"][1]["location"] = "imgui:500" +defs["igTextWrappedV"][1]["namespace"] = "ImGui" +defs["igTextWrappedV"][1]["ov_cimguiname"] = "igTextWrappedV" +defs["igTextWrappedV"][1]["ret"] = "void" +defs["igTextWrappedV"][1]["signature"] = "(const char*,va_list)" +defs["igTextWrappedV"][1]["stname"] = "" +defs["igTextWrappedV"]["(const char*,va_list)"] = defs["igTextWrappedV"][1] +defs["igTreeNode"] = {} +defs["igTreeNode"][1] = {} +defs["igTreeNode"][1]["args"] = "(const char* label)" +defs["igTreeNode"][1]["argsT"] = {} +defs["igTreeNode"][1]["argsT"][1] = {} +defs["igTreeNode"][1]["argsT"][1]["name"] = "label" +defs["igTreeNode"][1]["argsT"][1]["type"] = "const char*" +defs["igTreeNode"][1]["argsoriginal"] = "(const char* label)" +defs["igTreeNode"][1]["call_args"] = "(label)" +defs["igTreeNode"][1]["cimguiname"] = "igTreeNode" +defs["igTreeNode"][1]["defaults"] = {} +defs["igTreeNode"][1]["funcname"] = "TreeNode" +defs["igTreeNode"][1]["location"] = "imgui:611" +defs["igTreeNode"][1]["namespace"] = "ImGui" +defs["igTreeNode"][1]["ov_cimguiname"] = "igTreeNode_Str" +defs["igTreeNode"][1]["ret"] = "bool" +defs["igTreeNode"][1]["signature"] = "(const char*)" +defs["igTreeNode"][1]["stname"] = "" +defs["igTreeNode"][2] = {} +defs["igTreeNode"][2]["args"] = "(const char* str_id,const char* fmt,...)" +defs["igTreeNode"][2]["argsT"] = {} +defs["igTreeNode"][2]["argsT"][1] = {} +defs["igTreeNode"][2]["argsT"][1]["name"] = "str_id" +defs["igTreeNode"][2]["argsT"][1]["type"] = "const char*" +defs["igTreeNode"][2]["argsT"][2] = {} +defs["igTreeNode"][2]["argsT"][2]["name"] = "fmt" +defs["igTreeNode"][2]["argsT"][2]["type"] = "const char*" +defs["igTreeNode"][2]["argsT"][3] = {} +defs["igTreeNode"][2]["argsT"][3]["name"] = "..." +defs["igTreeNode"][2]["argsT"][3]["type"] = "..." +defs["igTreeNode"][2]["argsoriginal"] = "(const char* str_id,const char* fmt,...)" +defs["igTreeNode"][2]["call_args"] = "(str_id,fmt,...)" +defs["igTreeNode"][2]["cimguiname"] = "igTreeNode" +defs["igTreeNode"][2]["defaults"] = {} +defs["igTreeNode"][2]["funcname"] = "TreeNode" +defs["igTreeNode"][2]["isvararg"] = "...)" +defs["igTreeNode"][2]["location"] = "imgui:612" +defs["igTreeNode"][2]["namespace"] = "ImGui" +defs["igTreeNode"][2]["ov_cimguiname"] = "igTreeNode_StrStr" +defs["igTreeNode"][2]["ret"] = "bool" +defs["igTreeNode"][2]["signature"] = "(const char*,const char*,...)" +defs["igTreeNode"][2]["stname"] = "" +defs["igTreeNode"][3] = {} +defs["igTreeNode"][3]["args"] = "(const void* ptr_id,const char* fmt,...)" +defs["igTreeNode"][3]["argsT"] = {} +defs["igTreeNode"][3]["argsT"][1] = {} +defs["igTreeNode"][3]["argsT"][1]["name"] = "ptr_id" +defs["igTreeNode"][3]["argsT"][1]["type"] = "const void*" +defs["igTreeNode"][3]["argsT"][2] = {} +defs["igTreeNode"][3]["argsT"][2]["name"] = "fmt" +defs["igTreeNode"][3]["argsT"][2]["type"] = "const char*" +defs["igTreeNode"][3]["argsT"][3] = {} +defs["igTreeNode"][3]["argsT"][3]["name"] = "..." +defs["igTreeNode"][3]["argsT"][3]["type"] = "..." +defs["igTreeNode"][3]["argsoriginal"] = "(const void* ptr_id,const char* fmt,...)" +defs["igTreeNode"][3]["call_args"] = "(ptr_id,fmt,...)" +defs["igTreeNode"][3]["cimguiname"] = "igTreeNode" +defs["igTreeNode"][3]["defaults"] = {} +defs["igTreeNode"][3]["funcname"] = "TreeNode" +defs["igTreeNode"][3]["isvararg"] = "...)" +defs["igTreeNode"][3]["location"] = "imgui:613" +defs["igTreeNode"][3]["namespace"] = "ImGui" +defs["igTreeNode"][3]["ov_cimguiname"] = "igTreeNode_Ptr" +defs["igTreeNode"][3]["ret"] = "bool" +defs["igTreeNode"][3]["signature"] = "(const void*,const char*,...)" +defs["igTreeNode"][3]["stname"] = "" +defs["igTreeNode"]["(const char*)"] = defs["igTreeNode"][1] +defs["igTreeNode"]["(const char*,const char*,...)"] = defs["igTreeNode"][2] +defs["igTreeNode"]["(const void*,const char*,...)"] = defs["igTreeNode"][3] +defs["igTreeNodeEx"] = {} +defs["igTreeNodeEx"][1] = {} +defs["igTreeNodeEx"][1]["args"] = "(const char* label,ImGuiTreeNodeFlags flags)" +defs["igTreeNodeEx"][1]["argsT"] = {} +defs["igTreeNodeEx"][1]["argsT"][1] = {} +defs["igTreeNodeEx"][1]["argsT"][1]["name"] = "label" +defs["igTreeNodeEx"][1]["argsT"][1]["type"] = "const char*" +defs["igTreeNodeEx"][1]["argsT"][2] = {} +defs["igTreeNodeEx"][1]["argsT"][2]["name"] = "flags" +defs["igTreeNodeEx"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeEx"][1]["argsoriginal"] = "(const char* label,ImGuiTreeNodeFlags flags=0)" +defs["igTreeNodeEx"][1]["call_args"] = "(label,flags)" +defs["igTreeNodeEx"][1]["cimguiname"] = "igTreeNodeEx" +defs["igTreeNodeEx"][1]["defaults"] = {} +defs["igTreeNodeEx"][1]["defaults"]["flags"] = "0" +defs["igTreeNodeEx"][1]["funcname"] = "TreeNodeEx" +defs["igTreeNodeEx"][1]["location"] = "imgui:616" +defs["igTreeNodeEx"][1]["namespace"] = "ImGui" +defs["igTreeNodeEx"][1]["ov_cimguiname"] = "igTreeNodeEx_Str" +defs["igTreeNodeEx"][1]["ret"] = "bool" +defs["igTreeNodeEx"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags)" +defs["igTreeNodeEx"][1]["stname"] = "" +defs["igTreeNodeEx"][2] = {} +defs["igTreeNodeEx"][2]["args"] = "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...)" +defs["igTreeNodeEx"][2]["argsT"] = {} +defs["igTreeNodeEx"][2]["argsT"][1] = {} +defs["igTreeNodeEx"][2]["argsT"][1]["name"] = "str_id" +defs["igTreeNodeEx"][2]["argsT"][1]["type"] = "const char*" +defs["igTreeNodeEx"][2]["argsT"][2] = {} +defs["igTreeNodeEx"][2]["argsT"][2]["name"] = "flags" +defs["igTreeNodeEx"][2]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeEx"][2]["argsT"][3] = {} +defs["igTreeNodeEx"][2]["argsT"][3]["name"] = "fmt" +defs["igTreeNodeEx"][2]["argsT"][3]["type"] = "const char*" +defs["igTreeNodeEx"][2]["argsT"][4] = {} +defs["igTreeNodeEx"][2]["argsT"][4]["name"] = "..." +defs["igTreeNodeEx"][2]["argsT"][4]["type"] = "..." +defs["igTreeNodeEx"][2]["argsoriginal"] = "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...)" +defs["igTreeNodeEx"][2]["call_args"] = "(str_id,flags,fmt,...)" +defs["igTreeNodeEx"][2]["cimguiname"] = "igTreeNodeEx" +defs["igTreeNodeEx"][2]["defaults"] = {} +defs["igTreeNodeEx"][2]["funcname"] = "TreeNodeEx" +defs["igTreeNodeEx"][2]["isvararg"] = "...)" +defs["igTreeNodeEx"][2]["location"] = "imgui:617" +defs["igTreeNodeEx"][2]["namespace"] = "ImGui" +defs["igTreeNodeEx"][2]["ov_cimguiname"] = "igTreeNodeEx_StrStr" +defs["igTreeNodeEx"][2]["ret"] = "bool" +defs["igTreeNodeEx"][2]["signature"] = "(const char*,ImGuiTreeNodeFlags,const char*,...)" +defs["igTreeNodeEx"][2]["stname"] = "" +defs["igTreeNodeEx"][3] = {} +defs["igTreeNodeEx"][3]["args"] = "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)" +defs["igTreeNodeEx"][3]["argsT"] = {} +defs["igTreeNodeEx"][3]["argsT"][1] = {} +defs["igTreeNodeEx"][3]["argsT"][1]["name"] = "ptr_id" +defs["igTreeNodeEx"][3]["argsT"][1]["type"] = "const void*" +defs["igTreeNodeEx"][3]["argsT"][2] = {} +defs["igTreeNodeEx"][3]["argsT"][2]["name"] = "flags" +defs["igTreeNodeEx"][3]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeEx"][3]["argsT"][3] = {} +defs["igTreeNodeEx"][3]["argsT"][3]["name"] = "fmt" +defs["igTreeNodeEx"][3]["argsT"][3]["type"] = "const char*" +defs["igTreeNodeEx"][3]["argsT"][4] = {} +defs["igTreeNodeEx"][3]["argsT"][4]["name"] = "..." +defs["igTreeNodeEx"][3]["argsT"][4]["type"] = "..." +defs["igTreeNodeEx"][3]["argsoriginal"] = "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)" +defs["igTreeNodeEx"][3]["call_args"] = "(ptr_id,flags,fmt,...)" +defs["igTreeNodeEx"][3]["cimguiname"] = "igTreeNodeEx" +defs["igTreeNodeEx"][3]["defaults"] = {} +defs["igTreeNodeEx"][3]["funcname"] = "TreeNodeEx" +defs["igTreeNodeEx"][3]["isvararg"] = "...)" +defs["igTreeNodeEx"][3]["location"] = "imgui:618" +defs["igTreeNodeEx"][3]["namespace"] = "ImGui" +defs["igTreeNodeEx"][3]["ov_cimguiname"] = "igTreeNodeEx_Ptr" +defs["igTreeNodeEx"][3]["ret"] = "bool" +defs["igTreeNodeEx"][3]["signature"] = "(const void*,ImGuiTreeNodeFlags,const char*,...)" +defs["igTreeNodeEx"][3]["stname"] = "" +defs["igTreeNodeEx"]["(const char*,ImGuiTreeNodeFlags)"] = defs["igTreeNodeEx"][1] +defs["igTreeNodeEx"]["(const char*,ImGuiTreeNodeFlags,const char*,...)"] = defs["igTreeNodeEx"][2] +defs["igTreeNodeEx"]["(const void*,ImGuiTreeNodeFlags,const char*,...)"] = defs["igTreeNodeEx"][3] +defs["igTreeNodeExV"] = {} +defs["igTreeNodeExV"][1] = {} +defs["igTreeNodeExV"][1]["args"] = "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)" +defs["igTreeNodeExV"][1]["argsT"] = {} +defs["igTreeNodeExV"][1]["argsT"][1] = {} +defs["igTreeNodeExV"][1]["argsT"][1]["name"] = "str_id" +defs["igTreeNodeExV"][1]["argsT"][1]["type"] = "const char*" +defs["igTreeNodeExV"][1]["argsT"][2] = {} +defs["igTreeNodeExV"][1]["argsT"][2]["name"] = "flags" +defs["igTreeNodeExV"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeExV"][1]["argsT"][3] = {} +defs["igTreeNodeExV"][1]["argsT"][3]["name"] = "fmt" +defs["igTreeNodeExV"][1]["argsT"][3]["type"] = "const char*" +defs["igTreeNodeExV"][1]["argsT"][4] = {} +defs["igTreeNodeExV"][1]["argsT"][4]["name"] = "args" +defs["igTreeNodeExV"][1]["argsT"][4]["type"] = "va_list" +defs["igTreeNodeExV"][1]["argsoriginal"] = "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)" +defs["igTreeNodeExV"][1]["call_args"] = "(str_id,flags,fmt,args)" +defs["igTreeNodeExV"][1]["cimguiname"] = "igTreeNodeExV" +defs["igTreeNodeExV"][1]["defaults"] = {} +defs["igTreeNodeExV"][1]["funcname"] = "TreeNodeExV" +defs["igTreeNodeExV"][1]["location"] = "imgui:619" +defs["igTreeNodeExV"][1]["namespace"] = "ImGui" +defs["igTreeNodeExV"][1]["ov_cimguiname"] = "igTreeNodeExV_Str" +defs["igTreeNodeExV"][1]["ret"] = "bool" +defs["igTreeNodeExV"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags,const char*,va_list)" +defs["igTreeNodeExV"][1]["stname"] = "" +defs["igTreeNodeExV"][2] = {} +defs["igTreeNodeExV"][2]["args"] = "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)" +defs["igTreeNodeExV"][2]["argsT"] = {} +defs["igTreeNodeExV"][2]["argsT"][1] = {} +defs["igTreeNodeExV"][2]["argsT"][1]["name"] = "ptr_id" +defs["igTreeNodeExV"][2]["argsT"][1]["type"] = "const void*" +defs["igTreeNodeExV"][2]["argsT"][2] = {} +defs["igTreeNodeExV"][2]["argsT"][2]["name"] = "flags" +defs["igTreeNodeExV"][2]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeExV"][2]["argsT"][3] = {} +defs["igTreeNodeExV"][2]["argsT"][3]["name"] = "fmt" +defs["igTreeNodeExV"][2]["argsT"][3]["type"] = "const char*" +defs["igTreeNodeExV"][2]["argsT"][4] = {} +defs["igTreeNodeExV"][2]["argsT"][4]["name"] = "args" +defs["igTreeNodeExV"][2]["argsT"][4]["type"] = "va_list" +defs["igTreeNodeExV"][2]["argsoriginal"] = "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)" +defs["igTreeNodeExV"][2]["call_args"] = "(ptr_id,flags,fmt,args)" +defs["igTreeNodeExV"][2]["cimguiname"] = "igTreeNodeExV" +defs["igTreeNodeExV"][2]["defaults"] = {} +defs["igTreeNodeExV"][2]["funcname"] = "TreeNodeExV" +defs["igTreeNodeExV"][2]["location"] = "imgui:620" +defs["igTreeNodeExV"][2]["namespace"] = "ImGui" +defs["igTreeNodeExV"][2]["ov_cimguiname"] = "igTreeNodeExV_Ptr" +defs["igTreeNodeExV"][2]["ret"] = "bool" +defs["igTreeNodeExV"][2]["signature"] = "(const void*,ImGuiTreeNodeFlags,const char*,va_list)" +defs["igTreeNodeExV"][2]["stname"] = "" +defs["igTreeNodeExV"]["(const char*,ImGuiTreeNodeFlags,const char*,va_list)"] = defs["igTreeNodeExV"][1] +defs["igTreeNodeExV"]["(const void*,ImGuiTreeNodeFlags,const char*,va_list)"] = defs["igTreeNodeExV"][2] +defs["igTreeNodeV"] = {} +defs["igTreeNodeV"][1] = {} +defs["igTreeNodeV"][1]["args"] = "(const char* str_id,const char* fmt,va_list args)" +defs["igTreeNodeV"][1]["argsT"] = {} +defs["igTreeNodeV"][1]["argsT"][1] = {} +defs["igTreeNodeV"][1]["argsT"][1]["name"] = "str_id" +defs["igTreeNodeV"][1]["argsT"][1]["type"] = "const char*" +defs["igTreeNodeV"][1]["argsT"][2] = {} +defs["igTreeNodeV"][1]["argsT"][2]["name"] = "fmt" +defs["igTreeNodeV"][1]["argsT"][2]["type"] = "const char*" +defs["igTreeNodeV"][1]["argsT"][3] = {} +defs["igTreeNodeV"][1]["argsT"][3]["name"] = "args" +defs["igTreeNodeV"][1]["argsT"][3]["type"] = "va_list" +defs["igTreeNodeV"][1]["argsoriginal"] = "(const char* str_id,const char* fmt,va_list args)" +defs["igTreeNodeV"][1]["call_args"] = "(str_id,fmt,args)" +defs["igTreeNodeV"][1]["cimguiname"] = "igTreeNodeV" +defs["igTreeNodeV"][1]["defaults"] = {} +defs["igTreeNodeV"][1]["funcname"] = "TreeNodeV" +defs["igTreeNodeV"][1]["location"] = "imgui:614" +defs["igTreeNodeV"][1]["namespace"] = "ImGui" +defs["igTreeNodeV"][1]["ov_cimguiname"] = "igTreeNodeV_Str" +defs["igTreeNodeV"][1]["ret"] = "bool" +defs["igTreeNodeV"][1]["signature"] = "(const char*,const char*,va_list)" +defs["igTreeNodeV"][1]["stname"] = "" +defs["igTreeNodeV"][2] = {} +defs["igTreeNodeV"][2]["args"] = "(const void* ptr_id,const char* fmt,va_list args)" +defs["igTreeNodeV"][2]["argsT"] = {} +defs["igTreeNodeV"][2]["argsT"][1] = {} +defs["igTreeNodeV"][2]["argsT"][1]["name"] = "ptr_id" +defs["igTreeNodeV"][2]["argsT"][1]["type"] = "const void*" +defs["igTreeNodeV"][2]["argsT"][2] = {} +defs["igTreeNodeV"][2]["argsT"][2]["name"] = "fmt" +defs["igTreeNodeV"][2]["argsT"][2]["type"] = "const char*" +defs["igTreeNodeV"][2]["argsT"][3] = {} +defs["igTreeNodeV"][2]["argsT"][3]["name"] = "args" +defs["igTreeNodeV"][2]["argsT"][3]["type"] = "va_list" +defs["igTreeNodeV"][2]["argsoriginal"] = "(const void* ptr_id,const char* fmt,va_list args)" +defs["igTreeNodeV"][2]["call_args"] = "(ptr_id,fmt,args)" +defs["igTreeNodeV"][2]["cimguiname"] = "igTreeNodeV" +defs["igTreeNodeV"][2]["defaults"] = {} +defs["igTreeNodeV"][2]["funcname"] = "TreeNodeV" +defs["igTreeNodeV"][2]["location"] = "imgui:615" +defs["igTreeNodeV"][2]["namespace"] = "ImGui" +defs["igTreeNodeV"][2]["ov_cimguiname"] = "igTreeNodeV_Ptr" +defs["igTreeNodeV"][2]["ret"] = "bool" +defs["igTreeNodeV"][2]["signature"] = "(const void*,const char*,va_list)" +defs["igTreeNodeV"][2]["stname"] = "" +defs["igTreeNodeV"]["(const char*,const char*,va_list)"] = defs["igTreeNodeV"][1] +defs["igTreeNodeV"]["(const void*,const char*,va_list)"] = defs["igTreeNodeV"][2] +defs["igTreePop"] = {} +defs["igTreePop"][1] = {} +defs["igTreePop"][1]["args"] = "()" +defs["igTreePop"][1]["argsT"] = {} +defs["igTreePop"][1]["argsoriginal"] = "()" +defs["igTreePop"][1]["call_args"] = "()" +defs["igTreePop"][1]["cimguiname"] = "igTreePop" +defs["igTreePop"][1]["defaults"] = {} +defs["igTreePop"][1]["funcname"] = "TreePop" +defs["igTreePop"][1]["location"] = "imgui:623" +defs["igTreePop"][1]["namespace"] = "ImGui" +defs["igTreePop"][1]["ov_cimguiname"] = "igTreePop" +defs["igTreePop"][1]["ret"] = "void" +defs["igTreePop"][1]["signature"] = "()" +defs["igTreePop"][1]["stname"] = "" +defs["igTreePop"]["()"] = defs["igTreePop"][1] +defs["igTreePush"] = {} +defs["igTreePush"][1] = {} +defs["igTreePush"][1]["args"] = "(const char* str_id)" +defs["igTreePush"][1]["argsT"] = {} +defs["igTreePush"][1]["argsT"][1] = {} +defs["igTreePush"][1]["argsT"][1]["name"] = "str_id" +defs["igTreePush"][1]["argsT"][1]["type"] = "const char*" +defs["igTreePush"][1]["argsoriginal"] = "(const char* str_id)" +defs["igTreePush"][1]["call_args"] = "(str_id)" +defs["igTreePush"][1]["cimguiname"] = "igTreePush" +defs["igTreePush"][1]["defaults"] = {} +defs["igTreePush"][1]["funcname"] = "TreePush" +defs["igTreePush"][1]["location"] = "imgui:621" +defs["igTreePush"][1]["namespace"] = "ImGui" +defs["igTreePush"][1]["ov_cimguiname"] = "igTreePush_Str" +defs["igTreePush"][1]["ret"] = "void" +defs["igTreePush"][1]["signature"] = "(const char*)" +defs["igTreePush"][1]["stname"] = "" +defs["igTreePush"][2] = {} +defs["igTreePush"][2]["args"] = "(const void* ptr_id)" +defs["igTreePush"][2]["argsT"] = {} +defs["igTreePush"][2]["argsT"][1] = {} +defs["igTreePush"][2]["argsT"][1]["name"] = "ptr_id" +defs["igTreePush"][2]["argsT"][1]["type"] = "const void*" +defs["igTreePush"][2]["argsoriginal"] = "(const void* ptr_id)" +defs["igTreePush"][2]["call_args"] = "(ptr_id)" +defs["igTreePush"][2]["cimguiname"] = "igTreePush" +defs["igTreePush"][2]["defaults"] = {} +defs["igTreePush"][2]["funcname"] = "TreePush" +defs["igTreePush"][2]["location"] = "imgui:622" +defs["igTreePush"][2]["namespace"] = "ImGui" +defs["igTreePush"][2]["ov_cimguiname"] = "igTreePush_Ptr" +defs["igTreePush"][2]["ret"] = "void" +defs["igTreePush"][2]["signature"] = "(const void*)" +defs["igTreePush"][2]["stname"] = "" +defs["igTreePush"]["(const char*)"] = defs["igTreePush"][1] +defs["igTreePush"]["(const void*)"] = defs["igTreePush"][2] +defs["igUnindent"] = {} +defs["igUnindent"][1] = {} +defs["igUnindent"][1]["args"] = "(float indent_w)" +defs["igUnindent"][1]["argsT"] = {} +defs["igUnindent"][1]["argsT"][1] = {} +defs["igUnindent"][1]["argsT"][1]["name"] = "indent_w" +defs["igUnindent"][1]["argsT"][1]["type"] = "float" +defs["igUnindent"][1]["argsoriginal"] = "(float indent_w=0.0f)" +defs["igUnindent"][1]["call_args"] = "(indent_w)" +defs["igUnindent"][1]["cimguiname"] = "igUnindent" +defs["igUnindent"][1]["defaults"] = {} +defs["igUnindent"][1]["defaults"]["indent_w"] = "0.0f" +defs["igUnindent"][1]["funcname"] = "Unindent" +defs["igUnindent"][1]["location"] = "imgui:453" +defs["igUnindent"][1]["namespace"] = "ImGui" +defs["igUnindent"][1]["ov_cimguiname"] = "igUnindent" +defs["igUnindent"][1]["ret"] = "void" +defs["igUnindent"][1]["signature"] = "(float)" +defs["igUnindent"][1]["stname"] = "" +defs["igUnindent"]["(float)"] = defs["igUnindent"][1] +defs["igUpdatePlatformWindows"] = {} +defs["igUpdatePlatformWindows"][1] = {} +defs["igUpdatePlatformWindows"][1]["args"] = "()" +defs["igUpdatePlatformWindows"][1]["argsT"] = {} +defs["igUpdatePlatformWindows"][1]["argsoriginal"] = "()" +defs["igUpdatePlatformWindows"][1]["call_args"] = "()" +defs["igUpdatePlatformWindows"][1]["cimguiname"] = "igUpdatePlatformWindows" +defs["igUpdatePlatformWindows"][1]["defaults"] = {} +defs["igUpdatePlatformWindows"][1]["funcname"] = "UpdatePlatformWindows" +defs["igUpdatePlatformWindows"][1]["location"] = "imgui:981" +defs["igUpdatePlatformWindows"][1]["namespace"] = "ImGui" +defs["igUpdatePlatformWindows"][1]["ov_cimguiname"] = "igUpdatePlatformWindows" +defs["igUpdatePlatformWindows"][1]["ret"] = "void" +defs["igUpdatePlatformWindows"][1]["signature"] = "()" +defs["igUpdatePlatformWindows"][1]["stname"] = "" +defs["igUpdatePlatformWindows"]["()"] = defs["igUpdatePlatformWindows"][1] +defs["igVSliderFloat"] = {} +defs["igVSliderFloat"][1] = {} +defs["igVSliderFloat"][1]["args"] = "(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igVSliderFloat"][1]["argsT"] = {} +defs["igVSliderFloat"][1]["argsT"][1] = {} +defs["igVSliderFloat"][1]["argsT"][1]["name"] = "label" +defs["igVSliderFloat"][1]["argsT"][1]["type"] = "const char*" +defs["igVSliderFloat"][1]["argsT"][2] = {} +defs["igVSliderFloat"][1]["argsT"][2]["name"] = "size" +defs["igVSliderFloat"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igVSliderFloat"][1]["argsT"][3] = {} +defs["igVSliderFloat"][1]["argsT"][3]["name"] = "v" +defs["igVSliderFloat"][1]["argsT"][3]["type"] = "float*" +defs["igVSliderFloat"][1]["argsT"][4] = {} +defs["igVSliderFloat"][1]["argsT"][4]["name"] = "v_min" +defs["igVSliderFloat"][1]["argsT"][4]["type"] = "float" +defs["igVSliderFloat"][1]["argsT"][5] = {} +defs["igVSliderFloat"][1]["argsT"][5]["name"] = "v_max" +defs["igVSliderFloat"][1]["argsT"][5]["type"] = "float" +defs["igVSliderFloat"][1]["argsT"][6] = {} +defs["igVSliderFloat"][1]["argsT"][6]["name"] = "format" +defs["igVSliderFloat"][1]["argsT"][6]["type"] = "const char*" +defs["igVSliderFloat"][1]["argsT"][7] = {} +defs["igVSliderFloat"][1]["argsT"][7]["name"] = "flags" +defs["igVSliderFloat"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igVSliderFloat"][1]["argsoriginal"] = "(const char* label,const ImVec2& size,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igVSliderFloat"][1]["call_args"] = "(label,size,v,v_min,v_max,format,flags)" +defs["igVSliderFloat"][1]["cimguiname"] = "igVSliderFloat" +defs["igVSliderFloat"][1]["defaults"] = {} +defs["igVSliderFloat"][1]["defaults"]["flags"] = "0" +defs["igVSliderFloat"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igVSliderFloat"][1]["funcname"] = "VSliderFloat" +defs["igVSliderFloat"][1]["location"] = "imgui:577" +defs["igVSliderFloat"][1]["namespace"] = "ImGui" +defs["igVSliderFloat"][1]["ov_cimguiname"] = "igVSliderFloat" +defs["igVSliderFloat"][1]["ret"] = "bool" +defs["igVSliderFloat"][1]["signature"] = "(const char*,const ImVec2,float*,float,float,const char*,ImGuiSliderFlags)" +defs["igVSliderFloat"][1]["stname"] = "" +defs["igVSliderFloat"]["(const char*,const ImVec2,float*,float,float,const char*,ImGuiSliderFlags)"] = defs["igVSliderFloat"][1] +defs["igVSliderInt"] = {} +defs["igVSliderInt"][1] = {} +defs["igVSliderInt"][1]["args"] = "(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igVSliderInt"][1]["argsT"] = {} +defs["igVSliderInt"][1]["argsT"][1] = {} +defs["igVSliderInt"][1]["argsT"][1]["name"] = "label" +defs["igVSliderInt"][1]["argsT"][1]["type"] = "const char*" +defs["igVSliderInt"][1]["argsT"][2] = {} +defs["igVSliderInt"][1]["argsT"][2]["name"] = "size" +defs["igVSliderInt"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igVSliderInt"][1]["argsT"][3] = {} +defs["igVSliderInt"][1]["argsT"][3]["name"] = "v" +defs["igVSliderInt"][1]["argsT"][3]["type"] = "int*" +defs["igVSliderInt"][1]["argsT"][4] = {} +defs["igVSliderInt"][1]["argsT"][4]["name"] = "v_min" +defs["igVSliderInt"][1]["argsT"][4]["type"] = "int" +defs["igVSliderInt"][1]["argsT"][5] = {} +defs["igVSliderInt"][1]["argsT"][5]["name"] = "v_max" +defs["igVSliderInt"][1]["argsT"][5]["type"] = "int" +defs["igVSliderInt"][1]["argsT"][6] = {} +defs["igVSliderInt"][1]["argsT"][6]["name"] = "format" +defs["igVSliderInt"][1]["argsT"][6]["type"] = "const char*" +defs["igVSliderInt"][1]["argsT"][7] = {} +defs["igVSliderInt"][1]["argsT"][7]["name"] = "flags" +defs["igVSliderInt"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igVSliderInt"][1]["argsoriginal"] = "(const char* label,const ImVec2& size,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igVSliderInt"][1]["call_args"] = "(label,size,v,v_min,v_max,format,flags)" +defs["igVSliderInt"][1]["cimguiname"] = "igVSliderInt" +defs["igVSliderInt"][1]["defaults"] = {} +defs["igVSliderInt"][1]["defaults"]["flags"] = "0" +defs["igVSliderInt"][1]["defaults"]["format"] = "\"%d\"" +defs["igVSliderInt"][1]["funcname"] = "VSliderInt" +defs["igVSliderInt"][1]["location"] = "imgui:578" +defs["igVSliderInt"][1]["namespace"] = "ImGui" +defs["igVSliderInt"][1]["ov_cimguiname"] = "igVSliderInt" +defs["igVSliderInt"][1]["ret"] = "bool" +defs["igVSliderInt"][1]["signature"] = "(const char*,const ImVec2,int*,int,int,const char*,ImGuiSliderFlags)" +defs["igVSliderInt"][1]["stname"] = "" +defs["igVSliderInt"]["(const char*,const ImVec2,int*,int,int,const char*,ImGuiSliderFlags)"] = defs["igVSliderInt"][1] +defs["igVSliderScalar"] = {} +defs["igVSliderScalar"][1] = {} +defs["igVSliderScalar"][1]["args"] = "(const char* label,const ImVec2 size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)" +defs["igVSliderScalar"][1]["argsT"] = {} +defs["igVSliderScalar"][1]["argsT"][1] = {} +defs["igVSliderScalar"][1]["argsT"][1]["name"] = "label" +defs["igVSliderScalar"][1]["argsT"][1]["type"] = "const char*" +defs["igVSliderScalar"][1]["argsT"][2] = {} +defs["igVSliderScalar"][1]["argsT"][2]["name"] = "size" +defs["igVSliderScalar"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igVSliderScalar"][1]["argsT"][3] = {} +defs["igVSliderScalar"][1]["argsT"][3]["name"] = "data_type" +defs["igVSliderScalar"][1]["argsT"][3]["type"] = "ImGuiDataType" +defs["igVSliderScalar"][1]["argsT"][4] = {} +defs["igVSliderScalar"][1]["argsT"][4]["name"] = "p_data" +defs["igVSliderScalar"][1]["argsT"][4]["type"] = "void*" +defs["igVSliderScalar"][1]["argsT"][5] = {} +defs["igVSliderScalar"][1]["argsT"][5]["name"] = "p_min" +defs["igVSliderScalar"][1]["argsT"][5]["type"] = "const void*" +defs["igVSliderScalar"][1]["argsT"][6] = {} +defs["igVSliderScalar"][1]["argsT"][6]["name"] = "p_max" +defs["igVSliderScalar"][1]["argsT"][6]["type"] = "const void*" +defs["igVSliderScalar"][1]["argsT"][7] = {} +defs["igVSliderScalar"][1]["argsT"][7]["name"] = "format" +defs["igVSliderScalar"][1]["argsT"][7]["type"] = "const char*" +defs["igVSliderScalar"][1]["argsT"][8] = {} +defs["igVSliderScalar"][1]["argsT"][8]["name"] = "flags" +defs["igVSliderScalar"][1]["argsT"][8]["type"] = "ImGuiSliderFlags" +defs["igVSliderScalar"][1]["argsoriginal"] = "(const char* label,const ImVec2& size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igVSliderScalar"][1]["call_args"] = "(label,size,data_type,p_data,p_min,p_max,format,flags)" +defs["igVSliderScalar"][1]["cimguiname"] = "igVSliderScalar" +defs["igVSliderScalar"][1]["defaults"] = {} +defs["igVSliderScalar"][1]["defaults"]["flags"] = "0" +defs["igVSliderScalar"][1]["defaults"]["format"] = "NULL" +defs["igVSliderScalar"][1]["funcname"] = "VSliderScalar" +defs["igVSliderScalar"][1]["location"] = "imgui:579" +defs["igVSliderScalar"][1]["namespace"] = "ImGui" +defs["igVSliderScalar"][1]["ov_cimguiname"] = "igVSliderScalar" +defs["igVSliderScalar"][1]["ret"] = "bool" +defs["igVSliderScalar"][1]["signature"] = "(const char*,const ImVec2,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igVSliderScalar"][1]["stname"] = "" +defs["igVSliderScalar"]["(const char*,const ImVec2,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igVSliderScalar"][1] +defs["igValue"] = {} +defs["igValue"][1] = {} +defs["igValue"][1]["args"] = "(const char* prefix,bool b)" +defs["igValue"][1]["argsT"] = {} +defs["igValue"][1]["argsT"][1] = {} +defs["igValue"][1]["argsT"][1]["name"] = "prefix" +defs["igValue"][1]["argsT"][1]["type"] = "const char*" +defs["igValue"][1]["argsT"][2] = {} +defs["igValue"][1]["argsT"][2]["name"] = "b" +defs["igValue"][1]["argsT"][2]["type"] = "bool" +defs["igValue"][1]["argsoriginal"] = "(const char* prefix,bool b)" +defs["igValue"][1]["call_args"] = "(prefix,b)" +defs["igValue"][1]["cimguiname"] = "igValue" +defs["igValue"][1]["defaults"] = {} +defs["igValue"][1]["funcname"] = "Value" +defs["igValue"][1]["location"] = "imgui:655" +defs["igValue"][1]["namespace"] = "ImGui" +defs["igValue"][1]["ov_cimguiname"] = "igValue_Bool" +defs["igValue"][1]["ret"] = "void" +defs["igValue"][1]["signature"] = "(const char*,bool)" +defs["igValue"][1]["stname"] = "" +defs["igValue"][2] = {} +defs["igValue"][2]["args"] = "(const char* prefix,int v)" +defs["igValue"][2]["argsT"] = {} +defs["igValue"][2]["argsT"][1] = {} +defs["igValue"][2]["argsT"][1]["name"] = "prefix" +defs["igValue"][2]["argsT"][1]["type"] = "const char*" +defs["igValue"][2]["argsT"][2] = {} +defs["igValue"][2]["argsT"][2]["name"] = "v" +defs["igValue"][2]["argsT"][2]["type"] = "int" +defs["igValue"][2]["argsoriginal"] = "(const char* prefix,int v)" +defs["igValue"][2]["call_args"] = "(prefix,v)" +defs["igValue"][2]["cimguiname"] = "igValue" +defs["igValue"][2]["defaults"] = {} +defs["igValue"][2]["funcname"] = "Value" +defs["igValue"][2]["location"] = "imgui:656" +defs["igValue"][2]["namespace"] = "ImGui" +defs["igValue"][2]["ov_cimguiname"] = "igValue_Int" +defs["igValue"][2]["ret"] = "void" +defs["igValue"][2]["signature"] = "(const char*,int)" +defs["igValue"][2]["stname"] = "" +defs["igValue"][3] = {} +defs["igValue"][3]["args"] = "(const char* prefix,unsigned int v)" +defs["igValue"][3]["argsT"] = {} +defs["igValue"][3]["argsT"][1] = {} +defs["igValue"][3]["argsT"][1]["name"] = "prefix" +defs["igValue"][3]["argsT"][1]["type"] = "const char*" +defs["igValue"][3]["argsT"][2] = {} +defs["igValue"][3]["argsT"][2]["name"] = "v" +defs["igValue"][3]["argsT"][2]["type"] = "unsigned int" +defs["igValue"][3]["argsoriginal"] = "(const char* prefix,unsigned int v)" +defs["igValue"][3]["call_args"] = "(prefix,v)" +defs["igValue"][3]["cimguiname"] = "igValue" +defs["igValue"][3]["defaults"] = {} +defs["igValue"][3]["funcname"] = "Value" +defs["igValue"][3]["location"] = "imgui:657" +defs["igValue"][3]["namespace"] = "ImGui" +defs["igValue"][3]["ov_cimguiname"] = "igValue_Uint" +defs["igValue"][3]["ret"] = "void" +defs["igValue"][3]["signature"] = "(const char*,unsigned int)" +defs["igValue"][3]["stname"] = "" +defs["igValue"][4] = {} +defs["igValue"][4]["args"] = "(const char* prefix,float v,const char* float_format)" +defs["igValue"][4]["argsT"] = {} +defs["igValue"][4]["argsT"][1] = {} +defs["igValue"][4]["argsT"][1]["name"] = "prefix" +defs["igValue"][4]["argsT"][1]["type"] = "const char*" +defs["igValue"][4]["argsT"][2] = {} +defs["igValue"][4]["argsT"][2]["name"] = "v" +defs["igValue"][4]["argsT"][2]["type"] = "float" +defs["igValue"][4]["argsT"][3] = {} +defs["igValue"][4]["argsT"][3]["name"] = "float_format" +defs["igValue"][4]["argsT"][3]["type"] = "const char*" +defs["igValue"][4]["argsoriginal"] = "(const char* prefix,float v,const char* float_format=((void*)0))" +defs["igValue"][4]["call_args"] = "(prefix,v,float_format)" +defs["igValue"][4]["cimguiname"] = "igValue" +defs["igValue"][4]["defaults"] = {} +defs["igValue"][4]["defaults"]["float_format"] = "NULL" +defs["igValue"][4]["funcname"] = "Value" +defs["igValue"][4]["location"] = "imgui:658" +defs["igValue"][4]["namespace"] = "ImGui" +defs["igValue"][4]["ov_cimguiname"] = "igValue_Float" +defs["igValue"][4]["ret"] = "void" +defs["igValue"][4]["signature"] = "(const char*,float,const char*)" +defs["igValue"][4]["stname"] = "" +defs["igValue"]["(const char*,bool)"] = defs["igValue"][1] +defs["igValue"]["(const char*,float,const char*)"] = defs["igValue"][4] +defs["igValue"]["(const char*,int)"] = defs["igValue"][2] +defs["igValue"]["(const char*,unsigned int)"] = defs["igValue"][3] + +return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/LICENSE.txt b/imgui-sys/third-party/imgui-docking-freetype/imgui/LICENSE.txt new file mode 100644 index 000000000..4023e0caa --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-2022 Omar Cornut + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imconfig.h b/imgui-sys/third-party/imgui-docking-freetype/imgui/imconfig.h new file mode 100644 index 000000000..ed265082d --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imconfig.h @@ -0,0 +1,120 @@ +//----------------------------------------------------------------------------- +// COMPILE-TIME OPTIONS FOR DEAR IMGUI +// Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure. +// You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext() to rewire memory allocation functions. +//----------------------------------------------------------------------------- +// A) You may edit imconfig.h (and not overwrite it when updating Dear ImGui, or maintain a patch/rebased branch with your modifications to it) +// B) or '#define IMGUI_USER_CONFIG "my_imgui_config.h"' in your project and then add directives in your own file without touching this template. +//----------------------------------------------------------------------------- +// You need to make sure that configuration settings are defined consistently _everywhere_ Dear ImGui is used, which include the imgui*.cpp +// files but also _any_ of your code that uses Dear ImGui. This is because some compile-time options have an affect on data structures. +// Defining those options in imconfig.h will ensure every compilation unit gets to see the same data structure layouts. +// Call IMGUI_CHECKVERSION() from your .cpp files to verify that the data structures your files are using are matching the ones imgui.cpp is using. +//----------------------------------------------------------------------------- + +#pragma once + +//---- Define assertion handler. Defaults to calling assert(). +// If your macro uses multiple statements, make sure is enclosed in a 'do { .. } while (0)' block so it can be used as a single statement. +//#define IM_ASSERT(_EXPR) MyAssert(_EXPR) +//#define IM_ASSERT(_EXPR) ((void)(_EXPR)) // Disable asserts + +//---- Define attributes of all API symbols declarations, e.g. for DLL under Windows +// Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. +// DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() +// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. +//#define IMGUI_API __declspec( dllexport ) +//#define IMGUI_API __declspec( dllimport ) + +//---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to avoid using soon-to-be obsolete function/names. +//#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS +//#define IMGUI_DISABLE_OBSOLETE_KEYIO // 1.87: disable legacy io.KeyMap[]+io.KeysDown[] in favor io.AddKeyEvent(). This will be folded into IMGUI_DISABLE_OBSOLETE_FUNCTIONS in a few versions. + +//---- Disable all of Dear ImGui or don't implement standard windows/tools. +// It is very strongly recommended to NOT disable the demo windows and debug tool during development. They are extremely useful in day to day work. Please read comments in imgui_demo.cpp. +//#define IMGUI_DISABLE // Disable everything: all headers and source files will be empty. +//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. +//#define IMGUI_DISABLE_DEBUG_TOOLS // Disable metrics/debugger and other debug tools: ShowMetricsWindow(), ShowDebugLogWindow() and ShowStackToolWindow() will be empty (this was called IMGUI_DISABLE_METRICS_WINDOW before 1.88). + +//---- Don't implement some functions to reduce linkage requirements. +//#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. (user32.lib/.a, kernel32.lib/.a) +//#define IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] [Default with Visual Studio] Implement default IME handler (require imm32.lib/.a, auto-link for Visual Studio, -limm32 on command-line for MinGW) +//#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] [Default with non-Visual Studio compilers] Don't implement default IME handler (won't require imm32.lib/.a) +//#define IMGUI_DISABLE_WIN32_FUNCTIONS // [Win32] Won't use and link with any Win32 function (clipboard, ime). +//#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS // [OSX] Implement default OSX clipboard handler (need to link with '-framework ApplicationServices', this is why this is not the default). +//#define IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS // Don't implement ImFormatString/ImFormatStringV so you can implement them yourself (e.g. if you don't want to link with vsnprintf) +//#define IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS // Don't implement ImFabs/ImSqrt/ImPow/ImFmod/ImCos/ImSin/ImAcos/ImAtan2 so you can implement them yourself. +//#define IMGUI_DISABLE_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle at all (replace them with dummies) +//#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle so you can implement them yourself if you don't want to link with fopen/fclose/fread/fwrite. This will also disable the LogToTTY() function. +//#define IMGUI_DISABLE_DEFAULT_ALLOCATORS // Don't implement default allocators calling malloc()/free() to avoid linking with them. You will need to call ImGui::SetAllocatorFunctions(). +//#define IMGUI_DISABLE_SSE // Disable use of SSE intrinsics even if available + +//---- Include imgui_user.h at the end of imgui.h as a convenience +//#define IMGUI_INCLUDE_IMGUI_USER_H + +//---- Pack colors to BGRA8 instead of RGBA8 (to avoid converting from one to another) +//#define IMGUI_USE_BGRA_PACKED_COLOR + +//---- Use 32-bit for ImWchar (default is 16-bit) to support unicode planes 1-16. (e.g. point beyond 0xFFFF like emoticons, dingbats, symbols, shapes, ancient languages, etc...) +//#define IMGUI_USE_WCHAR32 + +//---- Avoid multiple STB libraries implementations, or redefine path/filenames to prioritize another version +// By default the embedded implementations are declared static and not available outside of Dear ImGui sources files. +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_STB_SPRINTF_FILENAME "my_folder/stb_sprintf.h" // only used if enabled +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION + +//---- Use stb_sprintf.h for a faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined) +// Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by stb_sprintf.h. +//#define IMGUI_USE_STB_SPRINTF + +//---- Use FreeType to build and rasterize the font atlas (instead of stb_truetype which is embedded by default in Dear ImGui) +// Requires FreeType headers to be available in the include path. Requires program to be compiled with 'misc/freetype/imgui_freetype.cpp' (in this repository) + the FreeType library (not provided). +// On Windows you may use vcpkg with 'vcpkg install freetype --triplet=x64-windows' + 'vcpkg integrate install'. +//#define IMGUI_ENABLE_FREETYPE + +//---- Use stb_truetype to build and rasterize the font atlas (default) +// The only purpose of this define is if you want force compilation of the stb_truetype backend ALONG with the FreeType backend. +//#define IMGUI_ENABLE_STB_TRUETYPE + +//---- Define constructor and implicit cast operators to convert back<>forth between your math types and ImVec2/ImVec4. +// This will be inlined as part of ImVec2 and ImVec4 class declarations. +/* +#define IM_VEC2_CLASS_EXTRA \ + constexpr ImVec2(const MyVec2& f) : x(f.x), y(f.y) {} \ + operator MyVec2() const { return MyVec2(x,y); } + +#define IM_VEC4_CLASS_EXTRA \ + constexpr ImVec4(const MyVec4& f) : x(f.x), y(f.y), z(f.z), w(f.w) {} \ + operator MyVec4() const { return MyVec4(x,y,z,w); } +*/ + +//---- Use 32-bit vertex indices (default is 16-bit) is one way to allow large meshes with more than 64K vertices. +// Your renderer backend will need to support it (most example renderer backends support both 16/32-bit indices). +// Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd::VtxOffset in your renderer. +// Read about ImGuiBackendFlags_RendererHasVtxOffset for details. +//#define ImDrawIdx unsigned int + +//---- Override ImDrawCallback signature (will need to modify renderer backends accordingly) +//struct ImDrawList; +//struct ImDrawCmd; +//typedef void (*MyImDrawCallback)(const ImDrawList* draw_list, const ImDrawCmd* cmd, void* my_renderer_user_data); +//#define ImDrawCallback MyImDrawCallback + +//---- Debug Tools: Macro to break in Debugger +// (use 'Metrics->Tools->Item Picker' to pick widgets with the mouse and break into them for easy debugging.) +//#define IM_DEBUG_BREAK IM_ASSERT(0) +//#define IM_DEBUG_BREAK __debugbreak() + +//---- Debug Tools: Enable slower asserts +//#define IMGUI_DEBUG_PARANOID + +//---- Tip: You can add extra functions within the ImGui:: namespace, here or in your own headers files. +/* +namespace ImGui +{ + void MyFunction(const char* name, const MyMatrix44& v); +} +*/ diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui.cpp b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui.cpp new file mode 100644 index 000000000..ecfcd507c --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui.cpp @@ -0,0 +1,19926 @@ +// dear imgui, v1.89.1 +// (main code and documentation) + +// Help: +// - Read FAQ at http://dearimgui.org/faq +// - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// Read imgui.cpp for details, links and comments. + +// Resources: +// - FAQ http://dearimgui.org/faq +// - Homepage & latest https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/5243 (please post your screenshots/video there!) +// - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Issues & support https://github.com/ocornut/imgui/issues + +// Getting Started? +// - For first-time users having issues compiling/linking/running or issues loading fonts: +// please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. + +// Developed by Omar Cornut and every direct or indirect contributors to the GitHub. +// See LICENSE.txt for copyright and licensing details (standard MIT License). +// This library is free but needs your support to sustain development and maintenance. +// Businesses: you can support continued development via invoiced technical support, maintenance and sponsoring contracts. Please reach out to "contact AT dearimgui.com". +// Individuals: you can support continued development via donations. See docs/README or web page. + +// It is recommended that you don't modify imgui.cpp! It will become difficult for you to update the library. +// Note that 'ImGui::' being a namespace, you can add functions into the namespace from your own source files, without +// modifying imgui.h or imgui.cpp. You may include imgui_internal.h to access internal data structures, but it doesn't +// come with any guarantee of forward compatibility. Discussing your changes on the GitHub Issue Tracker may lead you +// to a better solution or official support for them. + +/* + +Index of this file: + +DOCUMENTATION + +- MISSION STATEMENT +- END-USER GUIDE +- PROGRAMMER GUIDE + - READ FIRST + - HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + - GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + - HOW A SIMPLE APPLICATION MAY LOOK LIKE + - HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE + - USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS +- API BREAKING CHANGES (read me when you update!) +- FREQUENTLY ASKED QUESTIONS (FAQ) + - Read all answers online: https://www.dearimgui.org/faq, or in docs/FAQ.md (with a Markdown viewer) + +CODE +(search for "[SECTION]" in the code to find them) + +// [SECTION] INCLUDES +// [SECTION] FORWARD DECLARATIONS +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +// [SECTION] MISC HELPERS/UTILITIES (File functions) +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// [SECTION] ImGuiStorage +// [SECTION] ImGuiTextFilter +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex +// [SECTION] ImGuiListClipper +// [SECTION] STYLING +// [SECTION] RENDER HELPERS +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +// [SECTION] INPUTS +// [SECTION] ERROR CHECKING +// [SECTION] LAYOUT +// [SECTION] SCROLLING +// [SECTION] TOOLTIPS +// [SECTION] POPUPS +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +// [SECTION] DRAG AND DROP +// [SECTION] LOGGING/CAPTURING +// [SECTION] SETTINGS +// [SECTION] LOCALIZATION +// [SECTION] VIEWPORTS, PLATFORM WINDOWS +// [SECTION] DOCKING +// [SECTION] PLATFORM DEPENDENT HELPERS +// [SECTION] METRICS/DEBUGGER WINDOW +// [SECTION] DEBUG LOG WINDOW +// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) + +*/ + +//----------------------------------------------------------------------------- +// DOCUMENTATION +//----------------------------------------------------------------------------- + +/* + + MISSION STATEMENT + ================= + + - Easy to use to create code-driven and data-driven tools. + - Easy to use to create ad hoc short-lived tools and long-lived, more elaborate tools. + - Easy to hack and improve. + - Minimize setup and maintenance. + - Minimize state storage on user side. + - Minimize state synchronization. + - Portable, minimize dependencies, run on target (consoles, phones, etc.). + - Efficient runtime and memory consumption. + + Designed for developers and content-creators, not the typical end-user! Some of the current weaknesses includes: + + - Doesn't look fancy, doesn't animate. + - Limited layout features, intricate layouts are typically crafted in code. + + + END-USER GUIDE + ============== + + - Double-click on title bar to collapse window. + - Click upper right corner to close a window, available when 'bool* p_open' is passed to ImGui::Begin(). + - Click and drag on lower right corner to resize window (double-click to auto fit window to its contents). + - Click and drag on any empty space to move window. + - TAB/SHIFT+TAB to cycle through keyboard editable fields. + - CTRL+Click on a slider or drag box to input value as text. + - Use mouse wheel to scroll. + - Text editor: + - Hold SHIFT or use mouse to select text. + - CTRL+Left/Right to word jump. + - CTRL+Shift+Left/Right to select words. + - CTRL+A or Double-Click to select all. + - CTRL+X,CTRL+C,CTRL+V to use OS clipboard/ + - CTRL+Z,CTRL+Y to undo/redo. + - ESCAPE to revert text to its original value. + - Controls are automatically adjusted for OSX to match standard OSX text editing operations. + - General Keyboard controls: enable with ImGuiConfigFlags_NavEnableKeyboard. + - General Gamepad controls: enable with ImGuiConfigFlags_NavEnableGamepad. Download controller mapping PNG/PSD at http://dearimgui.org/controls_sheets + + + PROGRAMMER GUIDE + ================ + + READ FIRST + ---------- + - Remember to check the wonderful Wiki (https://github.com/ocornut/imgui/wiki) + - Your code creates the UI, if your code doesn't run the UI is gone! The UI can be highly dynamic, there are no construction or + destruction steps, less superfluous data retention on your side, less state duplication, less state synchronization, fewer bugs. + - Call and read ImGui::ShowDemoWindow() for demo code demonstrating most features. + - The library is designed to be built from sources. Avoid pre-compiled binaries and packaged versions. See imconfig.h to configure your build. + - Dear ImGui is an implementation of the IMGUI paradigm (immediate-mode graphical user interface, a term coined by Casey Muratori). + You can learn about IMGUI principles at http://www.johno.se/book/imgui.html, http://mollyrocket.com/861 & more links in Wiki. + - Dear ImGui is a "single pass" rasterizing implementation of the IMGUI paradigm, aimed at ease of use and high-performances. + For every application frame, your UI code will be called only once. This is in contrast to e.g. Unity's implementation of an IMGUI, + where the UI code is called multiple times ("multiple passes") from a single entry point. There are pros and cons to both approaches. + - Our origin is on the top-left. In axis aligned bounding boxes, Min = top-left, Max = bottom-right. + - This codebase is also optimized to yield decent performances with typical "Debug" builds settings. + - Please make sure you have asserts enabled (IM_ASSERT redirects to assert() by default, but can be redirected). + If you get an assert, read the messages and comments around the assert. + - C++: this is a very C-ish codebase: we don't rely on C++11, we don't include any C++ headers, and ImGui:: is a namespace. + - C++: ImVec2/ImVec4 do not expose math operators by default, because it is expected that you use your own math types. + See FAQ "How can I use my own math types instead of ImVec2/ImVec4?" for details about setting up imconfig.h for that. + However, imgui_internal.h can optionally export math operators for ImVec2/ImVec4, which we use in this codebase. + - C++: pay attention that ImVector<> manipulates plain-old-data and does not honor construction/destruction (avoid using it in your code!). + + + HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + ---------------------------------------------- + - Overwrite all the sources files except for imconfig.h (if you have modified your copy of imconfig.h) + - Or maintain your own branch where you have imconfig.h modified as a top-most commit which you can regularly rebase over "master". + - You can also use '#define IMGUI_USER_CONFIG "my_config_file.h" to redirect configuration to your own file. + - Read the "API BREAKING CHANGES" section (below). This is where we list occasional API breaking changes. + If a function/type has been renamed / or marked obsolete, try to fix the name in your code before it is permanently removed + from the public API. If you have a problem with a missing function/symbols, search for its name in the code, there will + likely be a comment about it. Please report any issue to the GitHub page! + - To find out usage of old API, you can add '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in your configuration file. + - Try to keep your copy of Dear ImGui reasonably up to date. + + + GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + --------------------------------------------------------------- + - Run and study the examples and demo in imgui_demo.cpp to get acquainted with the library. + - In the majority of cases you should be able to use unmodified backends files available in the backends/ folder. + - Add the Dear ImGui source files + selected backend source files to your projects or using your preferred build system. + It is recommended you build and statically link the .cpp files as part of your project and NOT as a shared library (DLL). + - You can later customize the imconfig.h file to tweak some compile-time behavior, such as integrating Dear ImGui types with your own maths types. + - When using Dear ImGui, your programming IDE is your friend: follow the declaration of variables, functions and types to find comments about them. + - Dear ImGui never touches or knows about your GPU state. The only function that knows about GPU is the draw function that you provide. + Effectively it means you can create widgets at any time in your code, regardless of considerations of being in "update" vs "render" + phases of your own application. All rendering information is stored into command-lists that you will retrieve after calling ImGui::Render(). + - Refer to the backends and demo applications in the examples/ folder for instruction on how to setup your code. + - If you are running over a standard OS with a common graphics API, you should be able to use unmodified imgui_impl_*** files from the examples/ folder. + + + HOW A SIMPLE APPLICATION MAY LOOK LIKE + -------------------------------------- + EXHIBIT 1: USING THE EXAMPLE BACKENDS (= imgui_impl_XXX.cpp files from the backends/ folder). + The sub-folders in examples/ contain examples applications following this structure. + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Initialize helper Platform and Renderer backends (here we are using imgui_impl_win32.cpp and imgui_impl_dx11.cpp) + ImGui_ImplWin32_Init(hwnd); + ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); + + // Application main loop + while (true) + { + // Feed inputs to dear imgui, start new frame + ImGui_ImplDX11_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // Any application code here + ImGui::Text("Hello, world!"); + + // Render dear imgui into screen + ImGui::Render(); + ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); + g_pSwapChain->Present(1, 0); + } + + // Shutdown + ImGui_ImplDX11_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + EXHIBIT 2: IMPLEMENTING CUSTOM BACKEND / CUSTOM ENGINE + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Build and load the texture atlas into a texture + // (In the examples/ app this is usually done within the ImGui_ImplXXX_Init() function from one of the demo Renderer) + int width, height; + unsigned char* pixels = NULL; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // At this point you've got the texture data and you need to upload that to your graphic system: + // After we have created the texture, store its pointer/identifier (_in whichever format your engine uses_) in 'io.Fonts->TexID'. + // This will be passed back to your via the renderer. Basically ImTextureID == void*. Read FAQ for details about ImTextureID. + MyTexture* texture = MyEngine::CreateTextureFromMemoryPixels(pixels, width, height, TEXTURE_TYPE_RGBA32) + io.Fonts->SetTexID((void*)texture); + + // Application main loop + while (true) + { + // Setup low-level inputs, e.g. on Win32: calling GetKeyboardState(), or write to those fields from your Windows message handlers, etc. + // (In the examples/ app this is usually done within the ImGui_ImplXXX_NewFrame() function from one of the demo Platform Backends) + io.DeltaTime = 1.0f/60.0f; // set the time elapsed since the previous frame (in seconds) + io.DisplaySize.x = 1920.0f; // set the current display width + io.DisplaySize.y = 1280.0f; // set the current display height here + io.AddMousePosEvent(mouse_x, mouse_y); // update mouse position + io.AddMouseButtonEvent(0, mouse_b[0]); // update mouse button states + io.AddMouseButtonEvent(1, mouse_b[1]); // update mouse button states + + // Call NewFrame(), after this point you can use ImGui::* functions anytime + // (So you want to try calling NewFrame() as early as you can in your main loop to be able to use Dear ImGui everywhere) + ImGui::NewFrame(); + + // Most of your application code here + ImGui::Text("Hello, world!"); + MyGameUpdate(); // may use any Dear ImGui functions, e.g. ImGui::Begin("My window"); ImGui::Text("Hello, world!"); ImGui::End(); + MyGameRender(); // may use any Dear ImGui functions as well! + + // Render dear imgui, swap buffers + // (You want to try calling EndFrame/Render as late as you can, to be able to use Dear ImGui in your own game rendering code) + ImGui::EndFrame(); + ImGui::Render(); + ImDrawData* draw_data = ImGui::GetDrawData(); + MyImGuiRenderFunction(draw_data); + SwapBuffers(); + } + + // Shutdown + ImGui::DestroyContext(); + + To decide whether to dispatch mouse/keyboard inputs to Dear ImGui to the rest of your application, + you should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + Please read the FAQ and example applications for details about this! + + + HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE + --------------------------------------------- + The backends in impl_impl_XXX.cpp files contain many working implementations of a rendering function. + + void MyImGuiRenderFunction(ImDrawData* draw_data) + { + // TODO: Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled + // TODO: Setup texture sampling state: sample with bilinear filtering (NOT point/nearest filtering). Use 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines;' to allow point/nearest filtering. + // TODO: Setup viewport covering draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup orthographic projection matrix cover draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup shader: vertex { float2 pos, float2 uv, u32 color }, fragment shader sample color from 1 texture, multiply by vertex color. + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; // vertex buffer generated by Dear ImGui + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; // index buffer generated by Dear ImGui + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // We are using scissoring to clip some objects. All low-level graphics API should support it. + // - If your engine doesn't support scissoring yet, you may ignore this at first. You will get some small glitches + // (some elements visible outside their bounds) but you can fix that once everything else works! + // - Clipping coordinates are provided in imgui coordinates space: + // - For a given viewport, draw_data->DisplayPos == viewport->Pos and draw_data->DisplaySize == viewport->Size + // - In a single viewport application, draw_data->DisplayPos == (0,0) and draw_data->DisplaySize == io.DisplaySize, but always use GetMainViewport()->Pos/Size instead of hardcoding those values. + // - In the interest of supporting multi-viewport applications (see 'docking' branch on github), + // always subtract draw_data->DisplayPos from clipping bounds to convert them to your viewport space. + // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) + MyEngineSetScissor(clip_min.x, clip_min.y, clip_max.x, clip_max.y); + + // The texture for the draw call is specified by pcmd->GetTexID(). + // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. + MyEngineBindTexture((MyTexture*)pcmd->GetTexID()); + + // Render 'pcmd->ElemCount/3' indexed triangles. + // By default the indices ImDrawIdx are 16-bit, you can change them to 32-bit in imconfig.h if your engine doesn't support 16-bit indices. + MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer + pcmd->IdxOffset, vtx_buffer, pcmd->VtxOffset); + } + } + } + } + + + USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS + ------------------------------------------ + - The gamepad/keyboard navigation is fairly functional and keeps being improved. + - Gamepad support is particularly useful to use Dear ImGui on a console system (e.g. PlayStation, Switch, Xbox) without a mouse! + - The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. + - Keyboard: + - Application: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. + - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), + the io.WantCaptureKeyboard flag will be set. For more advanced uses, you may want to read from: + - io.NavActive: true when a window is focused and it doesn't have the ImGuiWindowFlags_NoNavInputs flag set. + - io.NavVisible: true when the navigation cursor is visible (and usually goes false when mouse is used). + - or query focus information with e.g. IsWindowFocused(ImGuiFocusedFlags_AnyWindow), IsItemFocused() etc. functions. + Please reach out if you think the game vs navigation input sharing could be improved. + - Gamepad: + - Application: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. + - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + call io.AddKeyEvent/AddKeyAnalogEvent() with ImGuiKey_Gamepad_XXX keys. + For analog values (0.0f to 1.0f), backend is responsible to handling a dead-zone and rescaling inputs accordingly. + Backend code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). + - BEFORE 1.87, BACKENDS USED TO WRITE TO io.NavInputs[]. This is now obsolete. Please call io functions instead! + - You can download PNG/PSD files depicting the gamepad controls for common controllers at: http://dearimgui.org/controls_sheets + - If you need to share inputs between your game and the Dear ImGui interface, the easiest approach is to go all-or-nothing, + with a buttons combo to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. + - Mouse: + - PS4/PS5 users: Consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. + - Consoles/Tablet/Phone users: Consider using a Synergy 1.x server (on your PC) + uSynergy.c (on your console/tablet/phone app) to share your PC mouse/keyboard. + - On a TV/console system where readability may be lower or mouse inputs may be awkward, you may want to set the ImGuiConfigFlags_NavEnableSetMousePos flag. + Enabling ImGuiConfigFlags_NavEnableSetMousePos + ImGuiBackendFlags_HasSetMousePos instructs dear imgui to move your mouse cursor along with navigation movements. + When enabled, the NewFrame() function may alter 'io.MousePos' and set 'io.WantSetMousePos' to notify you that it wants the mouse cursor to be moved. + When that happens your backend NEEDS to move the OS or underlying mouse cursor on the next frame. Some of the backends in examples/ do that. + (If you set the NavEnableSetMousePos flag but don't honor 'io.WantSetMousePos' properly, imgui will misbehave as it will see your mouse moving back and forth!) + (In a setup when you may not have easy control over the mouse cursor, e.g. uSynergy.c doesn't expose moving remote mouse cursor, you may want + to set a boolean to ignore your other external mouse positions until the external source is moved again.) + + + API BREAKING CHANGES + ==================== + + Occasionally introducing changes that are breaking the API. We try to make the breakage minor and easy to fix. + Below is a change-log of API breaking changes only. If you are using one of the functions listed, expect to have to fix some code. + When you are not sure about an old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files. + You can read releases logs https://github.com/ocornut/imgui/releases for more details. + +(Docking/Viewport Branch) + - 2022/XX/XX (1.XX) - when multi-viewports are enabled, all positions will be in your natural OS coordinates space. It means that: + - reference to hard-coded positions such as in SetNextWindowPos(ImVec2(0,0)) are probably not what you want anymore. + you may use GetMainViewport()->Pos to offset hard-coded positions, e.g. SetNextWindowPos(GetMainViewport()->Pos) + - likewise io.MousePos and GetMousePos() will use OS coordinates. + If you query mouse positions to interact with non-imgui coordinates you will need to offset them, e.g. subtract GetWindowViewport()->Pos. + + - 2022/10/26 (1.89) - commented out redirecting OpenPopupContextItem() which was briefly the name of OpenPopupOnItemClick() from 1.77 to 1.79. + - 2022/10/12 (1.89) - removed runtime patching of invalid "%f"/"%0.f" format strings for DragInt()/SliderInt(). This was obsoleted in 1.61 (May 2018). See 1.61 changelog for details. + - 2022/09/26 (1.89) - renamed and merged keyboard modifiers key enums and flags into a same set. Kept inline redirection enums (will obsolete). + - ImGuiKey_ModCtrl and ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl + - ImGuiKey_ModShift and ImGuiModFlags_Shift -> ImGuiMod_Shift + - ImGuiKey_ModAlt and ImGuiModFlags_Alt -> ImGuiMod_Alt + - ImGuiKey_ModSuper and ImGuiModFlags_Super -> ImGuiMod_Super + the ImGuiKey_ModXXX were introduced in 1.87 and mostly used by backends. + the ImGuiModFlags_XXX have been exposed in imgui.h but not really used by any public api only by third-party extensions. + exceptionally commenting out the older ImGuiKeyModFlags_XXX names ahead of obsolescence schedule to reduce confusion and because they were not meant to be used anyway. + - 2022/09/12 (1.89) - removed the bizarre legacy default argument for 'TreePush(const void* ptr = NULL)', always pass a pointer value explicitly. NULL/nullptr is ok but require cast, e.g. TreePush((void*)nullptr); + - 2022/09/05 (1.89) - commented out redirecting functions/enums names that were marked obsolete in 1.77 and 1.78 (June 2020): + - DragScalar(), DragScalarN(), DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - SliderScalar(), SliderScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - BeginPopupContextWindow(const char*, ImGuiMouseButton, bool) -> use BeginPopupContextWindow(const char*, ImGuiPopupFlags) + - 2022/09/02 (1.89) - obsoleted using SetCursorPos()/SetCursorScreenPos() to extend parent window/cell boundaries. + this relates to when moving the cursor position beyond current boundaries WITHOUT submitting an item. + - previously this would make the window content size ~200x200: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); + - instead, please submit an item: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); + - alternative: + Begin(...) + Dummy(ImVec2(200,200)) + End(); + - content size is now only extended when submitting an item! + - with '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will now be detected and assert. + - without '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will silently be fixed until we obsolete it. + - 2022/08/03 (1.89) - changed signature of ImageButton() function. Kept redirection function (will obsolete). + - added 'const char* str_id' parameter + removed 'int frame_padding = -1' parameter. + - old signature: bool ImageButton(ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), int frame_padding = -1, ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values. + - had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer. + - new signature: bool ImageButton(const char* str_id, ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - requires an explicit identifier. You may still use e.g. PushID() calls and then pass an empty identifier. + - always uses style.FramePadding for padding, to be consistent with other buttons. You may use PushStyleVar() to alter this. + - 2022/07/08 (1.89) - inputs: removed io.NavInputs[] and ImGuiNavInput enum (following 1.87 changes). + - Official backends from 1.87+ -> no issue. + - Official backends from 1.60 to 1.86 -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need updating! + - Custom backends not writing to io.NavInputs[] -> no issue. + - Custom backends writing to io.NavInputs[] -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need fixing! + - TL;DR: Backends should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values instead of filling io.NavInput[]. + - 2022/06/15 (1.88) - renamed IMGUI_DISABLE_METRICS_WINDOW to IMGUI_DISABLE_DEBUG_TOOLS for correctness. kept support for old define (will obsolete). + - 2022/05/03 (1.88) - backends: osx: removed ImGui_ImplOSX_HandleEvent() from backend API in favor of backend automatically handling event capture. All ImGui_ImplOSX_HandleEvent() calls should be removed as they are now unnecessary. + - 2022/04/05 (1.88) - inputs: renamed ImGuiKeyModFlags to ImGuiModFlags. Kept inline redirection enums (will obsolete). This was never used in public API functions but technically present in imgui.h and ImGuiIO. + - 2022/01/20 (1.87) - inputs: reworded gamepad IO. + - Backend writing to io.NavInputs[] -> backend should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values. + - 2022/01/19 (1.87) - sliders, drags: removed support for legacy arithmetic operators (+,+-,*,/) when inputing text. This doesn't break any api/code but a feature that used to be accessible by end-users (which seemingly no one used). + - 2022/01/17 (1.87) - inputs: reworked mouse IO. + - Backend writing to io.MousePos -> backend should call io.AddMousePosEvent() + - Backend writing to io.MouseDown[] -> backend should call io.AddMouseButtonEvent() + - Backend writing to io.MouseWheel -> backend should call io.AddMouseWheelEvent() + - Backend writing to io.MouseHoveredViewport -> backend should call io.AddMouseViewportEvent() [Docking branch w/ multi-viewports only] + note: for all calls to IO new functions, the Dear ImGui context should be bound/current. + read https://github.com/ocornut/imgui/issues/4921 for details. + - 2022/01/10 (1.87) - inputs: reworked keyboard IO. Removed io.KeyMap[], io.KeysDown[] in favor of calling io.AddKeyEvent(). Removed GetKeyIndex(), now unecessary. All IsKeyXXX() functions now take ImGuiKey values. All features are still functional until IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Read Changelog and Release Notes for details. + - IsKeyPressed(MY_NATIVE_KEY_XXX) -> use IsKeyPressed(ImGuiKey_XXX) + - IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) -> use IsKeyPressed(ImGuiKey_XXX) + - Backend writing to io.KeyMap[],io.KeysDown[] -> backend should call io.AddKeyEvent() (+ call io.SetKeyEventNativeData() if you want legacy user code to stil function with legacy key codes). + - Backend writing to io.KeyCtrl, io.KeyShift.. -> backend should call io.AddKeyEvent() with ImGuiMod_XXX values. *IF YOU PULLED CODE BETWEEN 2021/01/10 and 2021/01/27: We used to have a io.AddKeyModsEvent() function which was now replaced by io.AddKeyEvent() with ImGuiMod_XXX values.* + - one case won't work with backward compatibility: if your custom backend used ImGuiKey as mock native indices (e.g. "io.KeyMap[ImGuiKey_A] = ImGuiKey_A") because those values are now larger than the legacy KeyDown[] array. Will assert. + - inputs: added ImGuiKey_ModCtrl/ImGuiKey_ModShift/ImGuiKey_ModAlt/ImGuiKey_ModSuper values to submit keyboard modifiers using io.AddKeyEvent(), instead of writing directly to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper. + - 2022/01/05 (1.87) - inputs: renamed ImGuiKey_KeyPadEnter to ImGuiKey_KeypadEnter to align with new symbols. Kept redirection enum. + - 2022/01/05 (1.87) - removed io.ImeSetInputScreenPosFn() in favor of more flexible io.SetPlatformImeDataFn(). Removed 'void* io.ImeWindowHandle' in favor of writing to 'void* ImGuiViewport::PlatformHandleRaw'. + - 2022/01/01 (1.87) - commented out redirecting functions/enums names that were marked obsolete in 1.69, 1.70, 1.71, 1.72 (March-July 2019) + - ImGui::SetNextTreeNodeOpen() -> use ImGui::SetNextItemOpen() + - ImGui::GetContentRegionAvailWidth() -> use ImGui::GetContentRegionAvail().x + - ImGui::TreeAdvanceToLabelPos() -> use ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetTreeNodeToLabelSpacing()); + - ImFontAtlas::CustomRect -> use ImFontAtlasCustomRect + - ImGuiColorEditFlags_RGB/HSV/HEX -> use ImGuiColorEditFlags_DisplayRGB/HSV/Hex + - 2021/12/20 (1.86) - backends: removed obsolete Marmalade backend (imgui_impl_marmalade.cpp) + example. Find last supported version at https://github.com/ocornut/imgui/wiki/Bindings + - 2021/11/04 (1.86) - removed CalcListClipping() function. Prefer using ImGuiListClipper which can return non-contiguous ranges. Please open an issue if you think you really need this function. + - 2021/08/23 (1.85) - removed GetWindowContentRegionWidth() function. keep inline redirection helper. can use 'GetWindowContentRegionMax().x - GetWindowContentRegionMin().x' instead for generally 'GetContentRegionAvail().x' is more useful. + - 2021/07/26 (1.84) - commented out redirecting functions/enums names that were marked obsolete in 1.67 and 1.69 (March 2019): + - ImGui::GetOverlayDrawList() -> use ImGui::GetForegroundDrawList() + - ImFont::GlyphRangesBuilder -> use ImFontGlyphRangesBuilder + - 2021/05/19 (1.83) - backends: obsoleted direct access to ImDrawCmd::TextureId in favor of calling ImDrawCmd::GetTexID(). + - if you are using official backends from the source tree: you have nothing to do. + - if you have copied old backend code or using your own: change access to draw_cmd->TextureId to draw_cmd->GetTexID(). + - 2021/03/12 (1.82) - upgraded ImDrawList::AddRect(), AddRectFilled(), PathRect() to use ImDrawFlags instead of ImDrawCornersFlags. + - ImDrawCornerFlags_TopLeft -> use ImDrawFlags_RoundCornersTopLeft + - ImDrawCornerFlags_BotRight -> use ImDrawFlags_RoundCornersBottomRight + - ImDrawCornerFlags_None -> use ImDrawFlags_RoundCornersNone etc. + flags now sanely defaults to 0 instead of 0x0F, consistent with all other flags in the API. + breaking: the default with rounding > 0.0f is now "round all corners" vs old implicit "round no corners": + - rounding == 0.0f + flags == 0 --> meant no rounding --> unchanged (common use) + - rounding > 0.0f + flags != 0 --> meant rounding --> unchanged (common use) + - rounding == 0.0f + flags != 0 --> meant no rounding --> unchanged (unlikely use) + - rounding > 0.0f + flags == 0 --> meant no rounding --> BREAKING (unlikely use): will now round all corners --> use ImDrawFlags_RoundCornersNone or rounding == 0.0f. + this ONLY matters for hard coded use of 0 + rounding > 0.0f. Use of named ImDrawFlags_RoundCornersNone (new) or ImDrawCornerFlags_None (old) are ok. + the old ImDrawCornersFlags used awkward default values of ~0 or 0xF (4 lower bits set) to signify "round all corners" and we sometimes encouraged using them as shortcuts. + legacy path still support use of hard coded ~0 or any value from 0x1 or 0xF. They will behave the same with legacy paths enabled (will assert otherwise). + - 2021/03/11 (1.82) - removed redirecting functions/enums names that were marked obsolete in 1.66 (September 2018): + - ImGui::SetScrollHere() -> use ImGui::SetScrollHereY() + - 2021/03/11 (1.82) - clarified that ImDrawList::PathArcTo(), ImDrawList::PathArcToFast() won't render with radius < 0.0f. Previously it sorts of accidentally worked but would generally lead to counter-clockwise paths and have an effect on anti-aliasing. + - 2021/03/10 (1.82) - upgraded ImDrawList::AddPolyline() and PathStroke() "bool closed" parameter to "ImDrawFlags flags". The matching ImDrawFlags_Closed value is guaranteed to always stay == 1 in the future. + - 2021/02/22 (1.82) - (*undone in 1.84*) win32+mingw: Re-enabled IME functions by default even under MinGW. In July 2016, issue #738 had me incorrectly disable those default functions for MinGW. MinGW users should: either link with -limm32, either set their imconfig file with '#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS'. + - 2021/02/17 (1.82) - renamed rarely used style.CircleSegmentMaxError (old default = 1.60f) to style.CircleTessellationMaxError (new default = 0.30f) as the meaning of the value changed. + - 2021/02/03 (1.81) - renamed ListBoxHeader(const char* label, ImVec2 size) to BeginListBox(). Kept inline redirection function (will obsolete). + - removed ListBoxHeader(const char* label, int items_count, int height_in_items = -1) in favor of specifying size. Kept inline redirection function (will obsolete). + - renamed ListBoxFooter() to EndListBox(). Kept inline redirection function (will obsolete). + - 2021/01/26 (1.81) - removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function. Prefer using '#define IMGUI_ENABLE_FREETYPE', but there's a runtime selection path available too. The shared extra flags parameters (very rarely used) are now stored in ImFontAtlas::FontBuilderFlags. + - renamed ImFontConfig::RasterizerFlags (used by FreeType) to ImFontConfig::FontBuilderFlags. + - renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. + - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.63 (August 2018): + - ImGui::IsItemDeactivatedAfterChange() -> use ImGui::IsItemDeactivatedAfterEdit(). + - ImGuiCol_ModalWindowDarkening -> use ImGuiCol_ModalWindowDimBg + - ImGuiInputTextCallback -> use ImGuiTextEditCallback + - ImGuiInputTextCallbackData -> use ImGuiTextEditCallbackData + - 2020/12/21 (1.80) - renamed ImDrawList::AddBezierCurve() to AddBezierCubic(), and PathBezierCurveTo() to PathBezierCubicCurveTo(). Kept inline redirection function (will obsolete). + - 2020/12/04 (1.80) - added imgui_tables.cpp file! Manually constructed project files will need the new file added! + - 2020/11/18 (1.80) - renamed undocumented/internals ImGuiColumnsFlags_* to ImGuiOldColumnFlags_* in prevision of incoming Tables API. + - 2020/11/03 (1.80) - renamed io.ConfigWindowsMemoryCompactTimer to io.ConfigMemoryCompactTimer as the feature will apply to other data structures + - 2020/10/14 (1.80) - backends: moved all backends files (imgui_impl_XXXX.cpp, imgui_impl_XXXX.h) from examples/ to backends/. + - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.60 (April 2018): + - io.RenderDrawListsFn pointer -> use ImGui::GetDrawData() value and call the render function of your backend + - ImGui::IsAnyWindowFocused() -> use ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow) + - ImGui::IsAnyWindowHovered() -> use ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + - ImGuiStyleVar_Count_ -> use ImGuiStyleVar_COUNT + - ImGuiMouseCursor_Count_ -> use ImGuiMouseCursor_COUNT + - removed redirecting functions names that were marked obsolete in 1.61 (May 2018): + - InputFloat (... int decimal_precision ...) -> use InputFloat (... const char* format ...) with format = "%.Xf" where X is your value for decimal_precision. + - same for InputFloat2()/InputFloat3()/InputFloat4() variants taking a `int decimal_precision` parameter. + - 2020/10/05 (1.79) - removed ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using the ImGuiListClipper::Begin() function, with misleading edge cases (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed). + - 2020/09/25 (1.79) - renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete sooner because previous name was added recently). + - 2020/09/25 (1.79) - renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton. + - 2020/09/21 (1.79) - renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), reverting the change from 1.77. For varieties of reason this is more self-explanatory. + - 2020/09/21 (1.79) - removed return value from OpenPopupOnItemClick() - returned true on mouse release on an item - because it is inconsistent with other popup APIs and makes others misleading. It's also and unnecessary: you can use IsWindowAppearing() after BeginPopup() for a similar result. + - 2020/09/17 (1.79) - removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font. If you scaled this value after calling AddFontDefault(), this is now done automatically. It was also getting in the way of better font scaling, so let's get rid of it now! + - 2020/08/17 (1.78) - obsoleted use of the trailing 'float power=1.0f' parameter for DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN(), VSliderFloat() and VSliderScalar(). + replaced the 'float power=1.0f' argument with integer-based flags defaulting to 0 (as with all our flags). + worked out a backward-compatibility scheme so hopefully most C++ codebase should not be affected. in short, when calling those functions: + - if you omitted the 'power' parameter (likely!), you are not affected. + - if you set the 'power' parameter to 1.0f (same as previous default value): 1/ your compiler may warn on float>int conversion, 2/ everything else will work. 3/ you can replace the 1.0f value with 0 to fix the warning, and be technically correct. + - if you set the 'power' parameter to >1.0f (to enable non-linear editing): 1/ your compiler may warn on float>int conversion, 2/ code will assert at runtime, 3/ in case asserts are disabled, the code will not crash and enable the _Logarithmic flag. 4/ you can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the warning/assert and get a _similar_ effect as previous uses of power >1.0f. + see https://github.com/ocornut/imgui/issues/3361 for all details. + kept inline redirection functions (will obsolete) apart for: DragFloatRange2(), VSliderFloat(), VSliderScalar(). For those three the 'float power=1.0f' version was removed directly as they were most unlikely ever used. + for shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. + - obsoleted use of v_min > v_max in DragInt, DragFloat, DragScalar to lock edits (introduced in 1.73, was not demoed nor documented very), will be replaced by a more generic ReadOnly feature. You may use the ImGuiSliderFlags_ReadOnly internal flag in the meantime. + - 2020/06/23 (1.77) - removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. + - 2020/06/15 (1.77) - renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). [NOTE: THIS WAS REVERTED IN 1.79] + - 2020/06/15 (1.77) - removed CalcItemRectClosestPoint() entry point which was made obsolete and asserting in December 2017. + - 2020/04/23 (1.77) - removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular(). + - 2020/01/22 (1.75) - ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius any more. + - 2019/12/17 (1.75) - [undid this change in 1.76] made Columns() limited to 64 columns by asserting above that limit. While the current code technically supports it, future code may not so we're putting the restriction ahead. + - 2019/12/13 (1.75) - [imgui_internal.h] changed ImRect() default constructor initializes all fields to 0.0f instead of (FLT_MAX,FLT_MAX,-FLT_MAX,-FLT_MAX). If you used ImRect::Add() to create bounding boxes by adding multiple points into it, you may need to fix your initial value. + - 2019/12/08 (1.75) - removed redirecting functions/enums that were marked obsolete in 1.53 (December 2017): + - ShowTestWindow() -> use ShowDemoWindow() + - IsRootWindowFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootWindow) + - IsRootWindowOrAnyChildFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) + - SetNextWindowContentWidth(w) -> use SetNextWindowContentSize(ImVec2(w, 0.0f) + - GetItemsLineHeightWithSpacing() -> use GetFrameHeightWithSpacing() + - ImGuiCol_ChildWindowBg -> use ImGuiCol_ChildBg + - ImGuiStyleVar_ChildWindowRounding -> use ImGuiStyleVar_ChildRounding + - ImGuiTreeNodeFlags_AllowOverlapMode -> use ImGuiTreeNodeFlags_AllowItemOverlap + - IMGUI_DISABLE_TEST_WINDOWS -> use IMGUI_DISABLE_DEMO_WINDOWS + - 2019/12/08 (1.75) - obsoleted calling ImDrawList::PrimReserve() with a negative count (which was vaguely documented and rarely if ever used). Instead, we added an explicit PrimUnreserve() API. + - 2019/12/06 (1.75) - removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent with other mouse functions (none of the other functions have it). + - 2019/11/21 (1.74) - ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS for consistency. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS for consistency. + - 2019/10/22 (1.74) - removed redirecting functions/enums that were marked obsolete in 1.52 (October 2017): + - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed + - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) + - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding() + - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f) + - ImFont::Glyph -> use ImFontGlyph + - 2019/10/14 (1.74) - inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function. + if you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can add +io.KeyRepeatDelay to it to compensate for the fix. + The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0). Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay). + If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you. + - 2019/07/15 (1.72) - removed TreeAdvanceToLabelPos() which is rarely used and only does SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()). Kept redirection function (will obsolete). + - 2019/07/12 (1.72) - renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection typedef (will obsolete). + - 2019/06/14 (1.72) - removed redirecting functions/enums names that were marked obsolete in 1.51 (June 2017): ImGuiCol_Column*, ImGuiSetCond_*, IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(), IsMouseHoveringWindow(), IMGUI_ONCE_UPON_A_FRAME. Grep this log for details and new names, or see how they were implemented until 1.71. + - 2019/06/07 (1.71) - rendering of child window outer decorations (bg color, border, scrollbars) is now performed as part of the parent window. If you have + overlapping child windows in a same parent, and relied on their relative z-order to be mapped to their submission order, this will affect your rendering. + This optimization is disabled if the parent window has no visual output, because it appears to be the most common situation leading to the creation of overlapping child windows. + Please reach out if you are affected. + - 2019/05/13 (1.71) - renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Kept inline redirection function (will obsolete). + - 2019/05/11 (1.71) - changed io.AddInputCharacter(unsigned short c) signature to io.AddInputCharacter(unsigned int c). + - 2019/04/29 (1.70) - improved ImDrawList thick strokes (>1.0f) preserving correct thickness up to 90 degrees angles (e.g. rectangles). If you have custom rendering using thick lines, they will appear thicker now. + - 2019/04/29 (1.70) - removed GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead. Kept inline redirection function (will obsolete). + - 2019/03/04 (1.69) - renamed GetOverlayDrawList() to GetForegroundDrawList(). Kept redirection function (will obsolete). + - 2019/02/26 (1.69) - renamed ImGuiColorEditFlags_RGB/ImGuiColorEditFlags_HSV/ImGuiColorEditFlags_HEX to ImGuiColorEditFlags_DisplayRGB/ImGuiColorEditFlags_DisplayHSV/ImGuiColorEditFlags_DisplayHex. Kept redirection enums (will obsolete). + - 2019/02/14 (1.68) - made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame). If for some reason your time step calculation gives you a zero value, replace it with an arbitrarily small value! + - 2019/02/01 (1.68) - removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already). + - 2019/01/06 (1.67) - renamed io.InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead! + - 2019/01/06 (1.67) - renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept redirection typedef (will obsolete). + - 2018/12/20 (1.67) - made it illegal to call Begin("") with an empty string. This somehow half-worked before but had various undesirable side-effects. + - 2018/12/10 (1.67) - renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges as we are doing a large pass on configuration flags. + - 2018/10/12 (1.66) - renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files. + - 2018/09/28 (1.66) - renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete). + - 2018/09/06 (1.65) - renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and stb_rect_pack.h to imstb_rectpack.h. + If you were conveniently using the imgui copy of those STB headers in your project you will have to update your include paths. + - 2018/09/05 (1.65) - renamed io.OptCursorBlink/io.ConfigCursorBlink to io.ConfigInputTextCursorBlink. (#1427) + - 2018/08/31 (1.64) - added imgui_widgets.cpp file, extracted and moved widgets code out of imgui.cpp into imgui_widgets.cpp. Re-ordered some of the code remaining in imgui.cpp. + NONE OF THE FUNCTIONS HAVE CHANGED. THE CODE IS SEMANTICALLY 100% IDENTICAL, BUT _EVERY_ FUNCTION HAS BEEN MOVED. + Because of this, any local modifications to imgui.cpp will likely conflict when you update. Read docs/CHANGELOG.txt for suggestions. + - 2018/08/22 (1.63) - renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API. Kept redirection function (will obsolete soonish as IsItemDeactivatedAfterChange() is very recent). + - 2018/08/21 (1.63) - renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData for consistency. Kept redirection types (will obsolete). + - 2018/08/21 (1.63) - removed ImGuiInputTextCallbackData::ReadOnly since it is a duplication of (ImGuiInputTextCallbackData::Flags & ImGuiInputTextFlags_ReadOnly). + - 2018/08/01 (1.63) - removed per-window ImGuiWindowFlags_ResizeFromAnySide beta flag in favor of a global io.ConfigResizeWindowsFromEdges [update 1.67 renamed to ConfigWindowsResizeFromEdges] to enable the feature. + - 2018/08/01 (1.63) - renamed io.OptCursorBlink to io.ConfigCursorBlink [-> io.ConfigInputTextCursorBlink in 1.65], io.OptMacOSXBehaviors to ConfigMacOSXBehaviors for consistency. + - 2018/07/22 (1.63) - changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecisions over time. + - 2018/07/08 (1.63) - style: renamed ImGuiCol_ModalWindowDarkening to ImGuiCol_ModalWindowDimBg for consistency with other features. Kept redirection enum (will obsolete). + - 2018/06/08 (1.62) - examples: the imgui_impl_XXX files have been split to separate platform (Win32, GLFW, SDL2, etc.) from renderer (DX11, OpenGL, Vulkan, etc.). + old backends will still work as is, however prefer using the separated backends as they will be updated to support multi-viewports. + when adopting new backends follow the main.cpp code of your preferred examples/ folder to know which functions to call. + in particular, note that old backends called ImGui::NewFrame() at the end of their ImGui_ImplXXXX_NewFrame() function. + - 2018/06/06 (1.62) - renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish other variants and discourage using the full set. + - 2018/06/06 (1.62) - TreeNodeEx()/TreeNodeBehavior(): the ImGuiTreeNodeFlags_CollapsingHeader helper now include the ImGuiTreeNodeFlags_NoTreePushOnOpen flag. See Changelog for details. + - 2018/05/03 (1.61) - DragInt(): the default compile-time format string has been changed from "%.0f" to "%d", as we are not using integers internally any more. + If you used DragInt() with custom format strings, make sure you change them to use %d or an integer-compatible format. + To honor backward-compatibility, the DragInt() code will currently parse and modify format strings to replace %*f with %d, giving time to users to upgrade their code. + If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead assert! You may run a reg-exp search on your codebase for e.g. "DragInt.*%f" to help you find them. + - 2018/04/28 (1.61) - obsoleted InputFloat() functions taking an optional "int decimal_precision" in favor of an equivalent and more flexible "const char* format", + consistent with other functions. Kept redirection functions (will obsolete). + - 2018/04/09 (1.61) - IM_DELETE() helper function added in 1.60 doesn't clear the input _pointer_ reference, more consistent with expectation and allows passing r-value. + - 2018/03/20 (1.60) - renamed io.WantMoveMouse to io.WantSetMousePos for consistency and ease of understanding (was added in 1.52, _not_ used by core and only honored by some backend ahead of merging the Nav branch). + - 2018/03/12 (1.60) - removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered as the closing cross uses regular button colors now. + - 2018/03/08 (1.60) - changed ImFont::DisplayOffset.y to default to 0 instead of +1. Fixed rounding of Ascent/Descent to match TrueType renderer. If you were adding or subtracting to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. + - 2018/03/03 (1.60) - renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_ to ImGuiMouseCursor_COUNT for consistency with other public enums. + - 2018/02/18 (1.60) - BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. + - 2018/02/16 (1.60) - obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine render function after ImGui::Render(). Use ImGui::GetDrawData() to retrieve the ImDrawData* to display. + - 2018/02/07 (1.60) - reorganized context handling to be more explicit, + - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. + - removed Shutdown() function, as DestroyContext() serve this purpose. + - you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas between contexts. Otherwise CreateContext() will create its own font atlas instance. + - removed allocator parameters from CreateContext(), they are now setup with SetAllocatorFunctions(), and shared by all contexts. + - removed the default global context and font atlas instance, which were confusing for users of DLL reloading and users of multiple contexts. + - 2018/01/31 (1.60) - moved sample TTF files from extra_fonts/ to misc/fonts/. If you loaded files directly from the imgui repo you may need to update your paths. + - 2018/01/11 (1.60) - obsoleted IsAnyWindowHovered() in favor of IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/11 (1.60) - obsoleted IsAnyWindowFocused() in favor of IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/03 (1.60) - renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData. + - 2017/12/29 (1.60) - removed CalcItemRectClosestPoint() which was weird and not really used by anyone except demo code. If you need it it's easy to replicate on your side. + - 2017/12/24 (1.53) - renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). Kept redirection function (will obsolete). + - 2017/12/21 (1.53) - ImDrawList: renamed style.AntiAliasedShapes to style.AntiAliasedFill for consistency and as a way to explicitly break code that manipulate those flag at runtime. You can now manipulate ImDrawList::Flags + - 2017/12/21 (1.53) - ImDrawList: removed 'bool anti_aliased = true' final parameter of ImDrawList::AddPolyline() and ImDrawList::AddConvexPolyFilled(). Prefer manipulating ImDrawList::Flags if you need to toggle them during the frame. + - 2017/12/14 (1.53) - using the ImGuiWindowFlags_NoScrollWithMouse flag on a child window forwards the mouse wheel event to the parent window, unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar are also set. + - 2017/12/13 (1.53) - renamed GetItemsLineHeightWithSpacing() to GetFrameHeightWithSpacing(). Kept redirection function (will obsolete). + - 2017/12/13 (1.53) - obsoleted IsRootWindowFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootWindow). Kept redirection function (will obsolete). + - obsoleted IsRootWindowOrAnyChildFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows). Kept redirection function (will obsolete). + - 2017/12/12 (1.53) - renamed ImGuiTreeNodeFlags_AllowOverlapMode to ImGuiTreeNodeFlags_AllowItemOverlap. Kept redirection enum (will obsolete). + - 2017/12/10 (1.53) - removed SetNextWindowContentWidth(), prefer using SetNextWindowContentSize(). Kept redirection function (will obsolete). + - 2017/11/27 (1.53) - renamed ImGuiTextBuffer::append() helper to appendf(), appendv() to appendfv(). If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed. + - 2017/11/18 (1.53) - Style, Begin: removed ImGuiWindowFlags_ShowBorders window flag. Borders are now fully set up in the ImGuiStyle structure (see e.g. style.FrameBorderSize, style.WindowBorderSize). Use ImGui::ShowStyleEditor() to look them up. + Please note that the style system will keep evolving (hopefully stabilizing in Q1 2018), and so custom styles will probably subtly break over time. It is recommended you use the StyleColorsClassic(), StyleColorsDark(), StyleColorsLight() functions. + - 2017/11/18 (1.53) - Style: removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. + - 2017/11/18 (1.53) - Style: renamed ImGuiCol_ChildWindowBg to ImGuiCol_ChildBg. + - 2017/11/18 (1.53) - Style: renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding. + - 2017/11/02 (1.53) - obsoleted IsRootWindowOrAnyChildHovered() in favor of using IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); + - 2017/10/24 (1.52) - renamed IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS to IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS for consistency. + - 2017/10/20 (1.52) - changed IsWindowHovered() default parameters behavior to return false if an item is active in another window (e.g. click-dragging item from another window to this window). You can use the newly introduced IsWindowHovered() flags to requests this specific behavior if you need it. + - 2017/10/20 (1.52) - marked IsItemHoveredRect()/IsMouseHoveringWindow() as obsolete, in favor of using the newly introduced flags for IsItemHovered() and IsWindowHovered(). See https://github.com/ocornut/imgui/issues/1382 for details. + removed the IsItemRectHovered()/IsWindowRectHovered() names introduced in 1.51 since they were merely more consistent names for the two functions we are now obsoleting. + IsItemHoveredRect() --> IsItemHovered(ImGuiHoveredFlags_RectOnly) + IsMouseHoveringAnyWindow() --> IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + IsMouseHoveringWindow() --> IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) [weird, old behavior] + - 2017/10/17 (1.52) - marked the old 5-parameters version of Begin() as obsolete (still available). Use SetNextWindowSize()+Begin() instead! + - 2017/10/11 (1.52) - renamed AlignFirstTextHeightToWidgets() to AlignTextToFramePadding(). Kept inline redirection function (will obsolete). + - 2017/09/26 (1.52) - renamed ImFont::Glyph to ImFontGlyph. Kept redirection typedef (will obsolete). + - 2017/09/25 (1.52) - removed SetNextWindowPosCenter() because SetNextWindowPos() now has the optional pivot information to do the same and more. Kept redirection function (will obsolete). + - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previously ImVec2(-1,-1) was enough but we now accept negative mouse coordinates. In your backend if you need to support unavailable mouse, make sure to replace "io.MousePos = ImVec2(-1,-1)" with "io.MousePos = ImVec2(-FLT_MAX,-FLT_MAX)". + - 2017/08/22 (1.51) - renamed IsItemHoveredRect() to IsItemRectHovered(). Kept inline redirection function (will obsolete). -> (1.52) use IsItemHovered(ImGuiHoveredFlags_RectOnly)! + - renamed IsMouseHoveringAnyWindow() to IsAnyWindowHovered() for consistency. Kept inline redirection function (will obsolete). + - renamed IsMouseHoveringWindow() to IsWindowRectHovered() for consistency. Kept inline redirection function (will obsolete). + - 2017/08/20 (1.51) - renamed GetStyleColName() to GetStyleColorName() for consistency. + - 2017/08/20 (1.51) - added PushStyleColor(ImGuiCol idx, ImU32 col) overload, which _might_ cause an "ambiguous call" compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or ImVec4 explicily to fix. + - 2017/08/15 (1.51) - marked the weird IMGUI_ONCE_UPON_A_FRAME helper macro as obsolete. prefer using the more explicit ImGuiOnceUponAFrame type. + - 2017/08/15 (1.51) - changed parameter order for BeginPopupContextWindow() from (const char*,int buttons,bool also_over_items) to (const char*,int buttons,bool also_over_items). Note that most calls relied on default parameters completely. + - 2017/08/13 (1.51) - renamed ImGuiCol_Column to ImGuiCol_Separator, ImGuiCol_ColumnHovered to ImGuiCol_SeparatorHovered, ImGuiCol_ColumnActive to ImGuiCol_SeparatorActive. Kept redirection enums (will obsolete). + - 2017/08/11 (1.51) - renamed ImGuiSetCond_Always to ImGuiCond_Always, ImGuiSetCond_Once to ImGuiCond_Once, ImGuiSetCond_FirstUseEver to ImGuiCond_FirstUseEver, ImGuiSetCond_Appearing to ImGuiCond_Appearing. Kept redirection enums (will obsolete). + - 2017/08/09 (1.51) - removed ValueColor() helpers, they are equivalent to calling Text(label) + SameLine() + ColorButton(). + - 2017/08/08 (1.51) - removed ColorEditMode() and ImGuiColorEditMode in favor of ImGuiColorEditFlags and parameters to the various Color*() functions. The SetColorEditOptions() allows to initialize default but the user can still change them with right-click context menu. + - changed prototype of 'ColorEdit4(const char* label, float col[4], bool show_alpha = true)' to 'ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)', where passing flags = 0x01 is a safe no-op (hello dodgy backward compatibility!). - check and run the demo window, under "Color/Picker Widgets", to understand the various new options. + - changed prototype of rarely used 'ColorButton(ImVec4 col, bool small_height = false, bool outline_border = true)' to 'ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0, 0))' + - 2017/07/20 (1.51) - removed IsPosHoveringAnyWindow(ImVec2), which was partly broken and misleading. ASSERT + redirect user to io.WantCaptureMouse + - 2017/05/26 (1.50) - removed ImFontConfig::MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset. + - 2017/05/01 (1.50) - renamed ImDrawList::PathFill() (rarely used directly) to ImDrawList::PathFillConvex() for clarity. + - 2016/11/06 (1.50) - BeginChild(const char*) now applies the stack id to the provided label, consistently with other functions as it should always have been. It shouldn't affect you unless (extremely unlikely) you were appending multiple times to a same child from different locations of the stack id. If that's the case, generate an id with GetID() and use it instead of passing string to BeginChild(). + - 2016/10/15 (1.50) - avoid 'void* user_data' parameter to io.SetClipboardTextFn/io.GetClipboardTextFn pointers. We pass io.ClipboardUserData to it. + - 2016/09/25 (1.50) - style.WindowTitleAlign is now a ImVec2 (ImGuiAlign enum was removed). set to (0.5f,0.5f) for horizontal+vertical centering, (0.0f,0.0f) for upper-left, etc. + - 2016/07/30 (1.50) - SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully, breakage should be minimal. + - 2016/05/12 (1.49) - title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore. + If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you, otherwise if <1.0f you need to tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar. + This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color: + ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) { float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)), k = title_bg_col.w / new_a; return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); } + If this is confusing, pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color. + - 2016/05/07 (1.49) - removed confusing set of GetInternalState(), GetInternalStateSize(), SetInternalState() functions. Now using CreateContext(), DestroyContext(), GetCurrentContext(), SetCurrentContext(). + - 2016/05/02 (1.49) - renamed SetNextTreeNodeOpened() to SetNextTreeNodeOpen(), no redirection. + - 2016/05/01 (1.49) - obsoleted old signature of CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false) as extra parameters were badly designed and rarely used. You can replace the "default_open = true" flag in new API with CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen). + - 2016/04/26 (1.49) - changed ImDrawList::PushClipRect(ImVec4 rect) to ImDrawList::PushClipRect(Imvec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false). Note that higher-level ImGui::PushClipRect() is preferable because it will clip at logic/widget level, whereas ImDrawList::PushClipRect() only affect your renderer. + - 2016/04/03 (1.48) - removed style.WindowFillAlphaDefault setting which was redundant. Bake default BG alpha inside style.Colors[ImGuiCol_WindowBg] and all other Bg color values. (ref GitHub issue #337). + - 2016/04/03 (1.48) - renamed ImGuiCol_TooltipBg to ImGuiCol_PopupBg, used by popups/menus and tooltips. popups/menus were previously using ImGuiCol_WindowBg. (ref github issue #337) + - 2016/03/21 (1.48) - renamed GetWindowFont() to GetFont(), GetWindowFontSize() to GetFontSize(). Kept inline redirection function (will obsolete). + - 2016/03/02 (1.48) - InputText() completion/history/always callbacks: if you modify the text buffer manually (without using DeleteChars()/InsertChars() helper) you need to maintain the BufTextLen field. added an assert. + - 2016/01/23 (1.48) - fixed not honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. if you had manual pixel-perfect alignment in place it might affect you. + - 2015/12/27 (1.48) - fixed ImDrawList::AddRect() which used to render a rectangle 1 px too large on each axis. + - 2015/12/04 (1.47) - renamed Color() helpers to ValueColor() - dangerously named, rarely used and probably to be made obsolete. + - 2015/08/29 (1.45) - with the addition of horizontal scrollbar we made various fixes to inconsistencies with dealing with cursor position. + GetCursorPos()/SetCursorPos() functions now include the scrolled amount. It shouldn't affect the majority of users, but take note that SetCursorPosX(100.0f) puts you at +100 from the starting x position which may include scrolling, not at +100 from the window left side. + GetContentRegionMax()/GetWindowContentRegionMin()/GetWindowContentRegionMax() functions allow include the scrolled amount. Typically those were used in cases where no scrolling would happen so it may not be a problem, but watch out! + - 2015/08/29 (1.45) - renamed style.ScrollbarWidth to style.ScrollbarSize + - 2015/08/05 (1.44) - split imgui.cpp into extra files: imgui_demo.cpp imgui_draw.cpp imgui_internal.h that you need to add to your project. + - 2015/07/18 (1.44) - fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (introduced in 1.43) being off by an extra PI for no justifiable reason + - 2015/07/14 (1.43) - add new ImFontAtlas::AddFont() API. For the old AddFont***, moved the 'font_no' parameter of ImFontAtlas::AddFont** functions to the ImFontConfig structure. + you need to render your textured triangles with bilinear filtering to benefit from sub-pixel positioning of text. + - 2015/07/08 (1.43) - switched rendering data to use indexed rendering. this is saving a fair amount of CPU/GPU and enables us to get anti-aliasing for a marginal cost. + this necessary change will break your rendering function! the fix should be very easy. sorry for that :( + - if you are using a vanilla copy of one of the imgui_impl_XXX.cpp provided in the example, you just need to update your copy and you can ignore the rest. + - the signature of the io.RenderDrawListsFn handler has changed! + old: ImGui_XXXX_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_count) + new: ImGui_XXXX_RenderDrawLists(ImDrawData* draw_data). + parameters: 'cmd_lists' becomes 'draw_data->CmdLists', 'cmd_lists_count' becomes 'draw_data->CmdListsCount' + ImDrawList: 'commands' becomes 'CmdBuffer', 'vtx_buffer' becomes 'VtxBuffer', 'IdxBuffer' is new. + ImDrawCmd: 'vtx_count' becomes 'ElemCount', 'clip_rect' becomes 'ClipRect', 'user_callback' becomes 'UserCallback', 'texture_id' becomes 'TextureId'. + - each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles using indices from the index buffer. + - if you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index the buffers. This is slow and a waste of CPU/GPU. Prefer using indexed rendering! + - refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. please upgrade! + - 2015/07/10 (1.43) - changed SameLine() parameters from int to float. + - 2015/07/02 (1.42) - renamed SetScrollPosHere() to SetScrollFromCursorPos(). Kept inline redirection function (will obsolete). + - 2015/07/02 (1.42) - renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion along with other scrolling functions, because positions (e.g. cursor position) are not equivalent to scrolling amount. + - 2015/06/14 (1.41) - changed ImageButton() default bg_col parameter from (0,0,0,1) (black) to (0,0,0,0) (transparent) - makes a difference when texture have transparence + - 2015/06/14 (1.41) - changed Selectable() API from (label, selected, size) to (label, selected, flags, size). Size override should have been rarely used. Sorry! + - 2015/05/31 (1.40) - renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline redirection function (will obsolete). + - 2015/05/31 (1.40) - renamed IsRectClipped() to IsRectVisible() for consistency. Note that return value is opposite! Kept inline redirection function (will obsolete). + - 2015/05/27 (1.40) - removed the third 'repeat_if_held' parameter from Button() - sorry! it was rarely used and inconsistent. Use PushButtonRepeat(true) / PopButtonRepeat() to enable repeat on desired buttons. + - 2015/05/11 (1.40) - changed BeginPopup() API, takes a string identifier instead of a bool. ImGui needs to manage the open/closed state of popups. Call OpenPopup() to actually set the "open" state of a popup. BeginPopup() returns true if the popup is opened. + - 2015/05/03 (1.40) - removed style.AutoFitPadding, using style.WindowPadding makes more sense (the default values were already the same). + - 2015/04/13 (1.38) - renamed IsClipped() to IsRectClipped(). Kept inline redirection function until 1.50. + - 2015/04/09 (1.38) - renamed ImDrawList::AddArc() to ImDrawList::AddArcFast() for compatibility with future API + - 2015/04/03 (1.38) - removed ImGuiCol_CheckHovered, ImGuiCol_CheckActive, replaced with the more general ImGuiCol_FrameBgHovered, ImGuiCol_FrameBgActive. + - 2014/04/03 (1.38) - removed support for passing -FLT_MAX..+FLT_MAX as the range for a SliderFloat(). Use DragFloat() or Inputfloat() instead. + - 2015/03/17 (1.36) - renamed GetItemBoxMin()/GetItemBoxMax()/IsMouseHoveringBox() to GetItemRectMin()/GetItemRectMax()/IsMouseHoveringRect(). Kept inline redirection function until 1.50. + - 2015/03/15 (1.36) - renamed style.TreeNodeSpacing to style.IndentSpacing, ImGuiStyleVar_TreeNodeSpacing to ImGuiStyleVar_IndentSpacing + - 2015/03/13 (1.36) - renamed GetWindowIsFocused() to IsWindowFocused(). Kept inline redirection function until 1.50. + - 2015/03/08 (1.35) - renamed style.ScrollBarWidth to style.ScrollbarWidth (casing) + - 2015/02/27 (1.34) - renamed OpenNextNode(bool) to SetNextTreeNodeOpened(bool, ImGuiSetCond). Kept inline redirection function until 1.50. + - 2015/02/27 (1.34) - renamed ImGuiSetCondition_*** to ImGuiSetCond_***, and _FirstUseThisSession becomes _Once. + - 2015/02/11 (1.32) - changed text input callback ImGuiTextEditCallback return type from void-->int. reserved for future use, return 0 for now. + - 2015/02/10 (1.32) - renamed GetItemWidth() to CalcItemWidth() to clarify its evolving behavior + - 2015/02/08 (1.31) - renamed GetTextLineSpacing() to GetTextLineHeightWithSpacing() + - 2015/02/01 (1.31) - removed IO.MemReallocFn (unused) + - 2015/01/19 (1.30) - renamed ImGuiStorage::GetIntPtr()/GetFloatPtr() to GetIntRef()/GetIntRef() because Ptr was conflicting with actual pointer storage functions. + - 2015/01/11 (1.30) - big font/image API change! now loads TTF file. allow for multiple fonts. no need for a PNG loader. + - 2015/01/11 (1.30) - removed GetDefaultFontData(). uses io.Fonts->GetTextureData*() API to retrieve uncompressed pixels. + - old: const void* png_data; unsigned int png_size; ImGui::GetDefaultFontData(NULL, NULL, &png_data, &png_size); [..Upload texture to GPU..]; + - new: unsigned char* pixels; int width, height; io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); [..Upload texture to GPU..]; io.Fonts->SetTexID(YourTexIdentifier); + you now have more flexibility to load multiple TTF fonts and manage the texture buffer for internal needs. It is now recommended that you sample the font texture with bilinear interpolation. + - 2015/01/11 (1.30) - added texture identifier in ImDrawCmd passed to your render function (we can now render images). make sure to call io.Fonts->SetTexID() + - 2015/01/11 (1.30) - removed IO.PixelCenterOffset (unnecessary, can be handled in user projection matrix) + - 2015/01/11 (1.30) - removed ImGui::IsItemFocused() in favor of ImGui::IsItemActive() which handles all widgets + - 2014/12/10 (1.18) - removed SetNewWindowDefaultPos() in favor of new generic API SetNextWindowPos(pos, ImGuiSetCondition_FirstUseEver) + - 2014/11/28 (1.17) - moved IO.Font*** options to inside the IO.Font-> structure (FontYOffset, FontTexUvForWhite, FontBaseScale, FontFallbackGlyph) + - 2014/11/26 (1.17) - reworked syntax of IMGUI_ONCE_UPON_A_FRAME helper macro to increase compiler compatibility + - 2014/11/07 (1.15) - renamed IsHovered() to IsItemHovered() + - 2014/10/02 (1.14) - renamed IMGUI_INCLUDE_IMGUI_USER_CPP to IMGUI_INCLUDE_IMGUI_USER_INL and imgui_user.cpp to imgui_user.inl (more IDE friendly) + - 2014/09/25 (1.13) - removed 'text_end' parameter from IO.SetClipboardTextFn (the string is now always zero-terminated for simplicity) + - 2014/09/24 (1.12) - renamed SetFontScale() to SetWindowFontScale() + - 2014/09/24 (1.12) - moved IM_MALLOC/IM_REALLOC/IM_FREE preprocessor defines to IO.MemAllocFn/IO.MemReallocFn/IO.MemFreeFn + - 2014/08/30 (1.09) - removed IO.FontHeight (now computed automatically) + - 2014/08/30 (1.09) - moved IMGUI_FONT_TEX_UV_FOR_WHITE preprocessor define to IO.FontTexUvForWhite + - 2014/08/28 (1.09) - changed the behavior of IO.PixelCenterOffset following various rendering fixes + + + FREQUENTLY ASKED QUESTIONS (FAQ) + ================================ + + Read all answers online: + https://www.dearimgui.org/faq or https://github.com/ocornut/imgui/blob/master/docs/FAQ.md (same url) + Read all answers locally (with a text editor or ideally a Markdown viewer): + docs/FAQ.md + Some answers are copied down here to facilitate searching in code. + + Q&A: Basics + =========== + + Q: Where is the documentation? + A: This library is poorly documented at the moment and expects the user to be acquainted with C/C++. + - Run the examples/ and explore them. + - See demo code in imgui_demo.cpp and particularly the ImGui::ShowDemoWindow() function. + - The demo covers most features of Dear ImGui, so you can read the code and see its output. + - See documentation and comments at the top of imgui.cpp + effectively imgui.h. + - Dozens of standalone example applications using e.g. OpenGL/DirectX are provided in the + examples/ folder to explain how to integrate Dear ImGui with your own engine/application. + - The Wiki (https://github.com/ocornut/imgui/wiki) has many resources and links. + - The Glossary (https://github.com/ocornut/imgui/wiki/Glossary) page also may be useful. + - Your programming IDE is your friend, find the type or function declaration to find comments + associated with it. + + Q: What is this library called? + Q: Which version should I get? + >> This library is called "Dear ImGui", please don't call it "ImGui" :) + >> See https://www.dearimgui.org/faq for details. + + Q&A: Integration + ================ + + Q: How to get started? + A: Read 'PROGRAMMER GUIDE' above. Read examples/README.txt. + + Q: How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application? + A: You should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + >> See https://www.dearimgui.org/faq for a fully detailed answer. You really want to read this. + + Q. How can I enable keyboard controls? + Q: How can I use this without a mouse, without a keyboard or without a screen? (gamepad, input share, remote display) + Q: I integrated Dear ImGui in my engine and little squares are showing instead of text... + Q: I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around... + Q: I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries... + >> See https://www.dearimgui.org/faq + + Q&A: Usage + ---------- + + Q: About the ID Stack system.. + - Why is my widget not reacting when I click on it? + - How can I have widgets with an empty label? + - How can I have multiple widgets with the same label? + - How can I have multiple windows with the same label? + Q: How can I display an image? What is ImTextureID, how does it work? + Q: How can I use my own math types instead of ImVec2/ImVec4? + Q: How can I interact with standard C++ types (such as std::string and std::vector)? + Q: How can I display custom shapes? (using low-level ImDrawList API) + >> See https://www.dearimgui.org/faq + + Q&A: Fonts, Text + ================ + + Q: How should I handle DPI in my application? + Q: How can I load a different font than the default? + Q: How can I easily use icons in my application? + Q: How can I load multiple fonts? + Q: How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic? + >> See https://www.dearimgui.org/faq and https://github.com/ocornut/imgui/edit/master/docs/FONTS.md + + Q&A: Concerns + ============= + + Q: Who uses Dear ImGui? + Q: Can you create elaborate/serious tools with Dear ImGui? + Q: Can you reskin the look of Dear ImGui? + Q: Why using C++ (as opposed to C)? + >> See https://www.dearimgui.org/faq + + Q&A: Community + ============== + + Q: How can I help? + A: - Businesses: please reach out to "contact AT dearimgui.com" if you work in a place using Dear ImGui! + We can discuss ways for your company to fund development via invoiced technical support, maintenance or sponsoring contacts. + This is among the most useful thing you can do for Dear ImGui. With increased funding, we can hire more people working on this project. + - Individuals: you can support continued development via PayPal donations. See README. + - If you are experienced with Dear ImGui and C++, look at the GitHub issues, look at the Wiki, read docs/TODO.txt + and see how you want to help and can help! + - Disclose your usage of Dear ImGui via a dev blog post, a tweet, a screenshot, a mention somewhere etc. + You may post screenshot or links in the gallery threads. Visuals are ideal as they inspire other programmers. + But even without visuals, disclosing your use of dear imgui helps the library grow credibility, and help other teams and programmers with taking decisions. + - If you have issues or if you need to hack into the library, even if you don't expect any support it is useful that you share your issues (on GitHub or privately). + +*/ + +//------------------------------------------------------------------------- +// [SECTION] INCLUDES +//------------------------------------------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif +#include "imgui_internal.h" + +// System includes +#include // vsnprintf, sscanf, printf +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +// [Windows] On non-Visual Studio compilers, we default to IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS unless explicitly enabled +#if defined(_WIN32) && !defined(_MSC_VER) && !defined(IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) +#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS +#endif + +// [Windows] OS specific includes (optional) +#if defined(_WIN32) && defined(IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#define IMGUI_DISABLE_WIN32_FUNCTIONS +#endif +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#ifndef NOMINMAX +#define NOMINMAX +#endif +#ifndef __MINGW32__ +#include // _wfopen, OpenClipboard +#else +#include +#endif +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) // UWP doesn't have all Win32 functions +#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS +#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS +#endif +#endif + +// [Apple] OS specific includes +#if defined(__APPLE__) +#include +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wformat-pedantic" // warning: format specifies type 'void *' but the argument has type 'xxxx *' // unreasonable, would lead to casting every %p arg to void*. probably enabled by -pedantic. +#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type 'int' +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +// We disable -Wpragmas because GCC doesn't provide a has_warning equivalent and some forks/patches may not follow the warning/version association. +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wformat" // warning: format '%p' expects argument of type 'void*', but argument 6 has type 'ImGuiWindow*' +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wstrict-overflow" // warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// Debug options +#define IMGUI_DEBUG_NAV_SCORING 0 // Display navigation scoring preview when hovering items. Display last moving direction matches when holding CTRL +#define IMGUI_DEBUG_NAV_RECTS 0 // Display the reference navigation rectangle for each window +#define IMGUI_DEBUG_INI_SETTINGS 0 // Save additional comments in .ini file (particularly helps for Docking, but makes saving slower) + +// When using CTRL+TAB (or Gamepad Square+L/R) we delay the visual a little in order to reduce visual noise doing a fast switch. +static const float NAV_WINDOWING_HIGHLIGHT_DELAY = 0.20f; // Time before the highlight and screen dimming starts fading in +static const float NAV_WINDOWING_LIST_APPEAR_DELAY = 0.15f; // Time before the window list starts to appear + +// Window resizing from edges (when io.ConfigWindowsResizeFromEdges = true and ImGuiBackendFlags_HasMouseCursors is set in io.BackendFlags by backend) +static const float WINDOWS_HOVER_PADDING = 4.0f; // Extend outside window for hovering/resizing (maxxed with TouchPadding) and inside windows for borders. Affect FindHoveredWindow(). +static const float WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER = 0.04f; // Reduce visual noise by only highlighting the border after a certain time. +static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 0.70f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. + +// Docking +static const float DOCKING_TRANSPARENT_PAYLOAD_ALPHA = 0.50f; // For use with io.ConfigDockingTransparentPayload. Apply to Viewport _or_ WindowBg in host viewport. +static const float DOCKING_SPLITTER_SIZE = 2.0f; + +//------------------------------------------------------------------------- +// [SECTION] FORWARD DECLARATIONS +//------------------------------------------------------------------------- + +static void SetCurrentWindow(ImGuiWindow* window); +static void FindHoveredWindow(); +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags); +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window); + +static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list); +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window); + +// Settings +static void WindowSettingsHandler_ClearAll(ImGuiContext*, ImGuiSettingsHandler*); +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name); +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line); +static void WindowSettingsHandler_ApplyAll(ImGuiContext*, ImGuiSettingsHandler*); +static void WindowSettingsHandler_WriteAll(ImGuiContext*, ImGuiSettingsHandler*, ImGuiTextBuffer* buf); + +// Platform Dependents default implementation for IO functions +static const char* GetClipboardTextFn_DefaultImpl(void* user_data); +static void SetClipboardTextFn_DefaultImpl(void* user_data, const char* text); +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + +namespace ImGui +{ +// Navigation +static void NavUpdate(); +static void NavUpdateWindowing(); +static void NavUpdateWindowingOverlay(); +static void NavUpdateCancelRequest(); +static void NavUpdateCreateMoveRequest(); +static void NavUpdateCreateTabbingRequest(); +static float NavUpdatePageUpPageDown(); +static inline void NavUpdateAnyRequestFlag(); +static void NavUpdateCreateWrappingRequest(); +static void NavEndFrame(); +static bool NavScoreItem(ImGuiNavItemData* result); +static void NavApplyItemToResult(ImGuiNavItemData* result); +static void NavProcessItem(); +static void NavProcessItemForTabbingRequest(ImGuiID id); +static ImVec2 NavCalcPreferredRefPos(); +static void NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window); +static ImGuiWindow* NavRestoreLastChildNavWindow(ImGuiWindow* window); +static void NavRestoreLayer(ImGuiNavLayer layer); +static void NavRestoreHighlightAfterMove(); +static int FindWindowFocusIndex(ImGuiWindow* window); + +// Error Checking and Debug Tools +static void ErrorCheckNewFrameSanityChecks(); +static void ErrorCheckEndFrameSanityChecks(); +static void UpdateDebugToolItemPicker(); +static void UpdateDebugToolStackQueries(); + +// Misc +static void UpdateSettings(); +static void UpdateKeyboardInputs(); +static void UpdateMouseInputs(); +static void UpdateMouseWheel(); +static bool UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect); +static void RenderWindowOuterBorders(ImGuiWindow* window); +static void RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, bool handle_borders_and_resize_grips, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size); +static void RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open); +static void RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 col); +static void RenderDimmedBackgrounds(); +static ImGuiWindow* FindBlockingModal(ImGuiWindow* window); + +// Viewports +const ImGuiID IMGUI_VIEWPORT_DEFAULT_ID = 0x11111111; // Using an arbitrary constant instead of e.g. ImHashStr("ViewportDefault", 0); so it's easier to spot in the debugger. The exact value doesn't matter. +static ImGuiViewportP* AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const ImVec2& platform_pos, const ImVec2& size, ImGuiViewportFlags flags); +static void DestroyViewport(ImGuiViewportP* viewport); +static void UpdateViewportsNewFrame(); +static void UpdateViewportsEndFrame(); +static void WindowSelectViewport(ImGuiWindow* window); +static void WindowSyncOwnedViewport(ImGuiWindow* window, ImGuiWindow* parent_window_in_stack); +static bool UpdateTryMergeWindowIntoHostViewport(ImGuiWindow* window, ImGuiViewportP* host_viewport); +static bool UpdateTryMergeWindowIntoHostViewports(ImGuiWindow* window); +static bool GetWindowAlwaysWantOwnViewport(ImGuiWindow* window); +static int FindPlatformMonitorForPos(const ImVec2& pos); +static int FindPlatformMonitorForRect(const ImRect& r); +static void UpdateViewportPlatformMonitor(ImGuiViewportP* viewport); + +} + +//----------------------------------------------------------------------------- +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +//----------------------------------------------------------------------------- + +// DLL users: +// - Heaps and globals are not shared across DLL boundaries! +// - You will need to call SetCurrentContext() + SetAllocatorFunctions() for each static/DLL boundary you are calling from. +// - Same applies for hot-reloading mechanisms that are reliant on reloading DLL (note that many hot-reloading mechanisms work without DLL). +// - Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. +// - Confused? In a debugger: add GImGui to your watch window and notice how its value changes depending on your current location (which DLL boundary you are in). + +// Current context pointer. Implicitly used by all Dear ImGui functions. Always assumed to be != NULL. +// - ImGui::CreateContext() will automatically set this pointer if it is NULL. +// Change to a different context by calling ImGui::SetCurrentContext(). +// - Important: Dear ImGui functions are not thread-safe because of this pointer. +// If you want thread-safety to allow N threads to access N different contexts: +// - Change this variable to use thread local storage so each thread can refer to a different context, in your imconfig.h: +// struct ImGuiContext; +// extern thread_local ImGuiContext* MyImGuiTLS; +// #define GImGui MyImGuiTLS +// And then define MyImGuiTLS in one of your cpp files. Note that thread_local is a C++11 keyword, earlier C++ uses compiler-specific keyword. +// - Future development aims to make this context pointer explicit to all calls. Also read https://github.com/ocornut/imgui/issues/586 +// - If you need a finite number of contexts, you may compile and use multiple instances of the ImGui code from a different namespace. +// - DLL users: read comments above. +#ifndef GImGui +ImGuiContext* GImGui = NULL; +#endif + +// Memory Allocator functions. Use SetAllocatorFunctions() to change them. +// - You probably don't want to modify that mid-program, and if you use global/static e.g. ImVector<> instances you may need to keep them accessible during program destruction. +// - DLL users: read comments above. +#ifndef IMGUI_DISABLE_DEFAULT_ALLOCATORS +static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); return malloc(size); } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); } +#else +static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(size); IM_ASSERT(0); return NULL; } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(ptr); IM_ASSERT(0); } +#endif +static ImGuiMemAllocFunc GImAllocatorAllocFunc = MallocWrapper; +static ImGuiMemFreeFunc GImAllocatorFreeFunc = FreeWrapper; +static void* GImAllocatorUserData = NULL; + +//----------------------------------------------------------------------------- +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +//----------------------------------------------------------------------------- + +ImGuiStyle::ImGuiStyle() +{ + Alpha = 1.0f; // Global alpha applies to everything in Dear ImGui. + DisabledAlpha = 0.60f; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. + WindowPadding = ImVec2(8,8); // Padding within a window + WindowRounding = 0.0f; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + WindowBorderSize = 1.0f; // Thickness of border around windows. Generally set to 0.0f or 1.0f. Other values not well tested. + WindowMinSize = ImVec2(32,32); // Minimum window size + WindowTitleAlign = ImVec2(0.0f,0.5f);// Alignment for title bar text + WindowMenuButtonPosition= ImGuiDir_Left; // Position of the collapsing/docking button in the title bar (left/right). Defaults to ImGuiDir_Left. + ChildRounding = 0.0f; // Radius of child window corners rounding. Set to 0.0f to have rectangular child windows + ChildBorderSize = 1.0f; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. Other values not well tested. + PopupRounding = 0.0f; // Radius of popup window corners rounding. Set to 0.0f to have rectangular child windows + PopupBorderSize = 1.0f; // Thickness of border around popup or tooltip windows. Generally set to 0.0f or 1.0f. Other values not well tested. + FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most widgets) + FrameRounding = 0.0f; // Radius of frame corners rounding. Set to 0.0f to have rectangular frames (used by most widgets). + FrameBorderSize = 0.0f; // Thickness of border around frames. Generally set to 0.0f or 1.0f. Other values not well tested. + ItemSpacing = ImVec2(8,4); // Horizontal and vertical spacing between widgets/lines + ItemInnerSpacing = ImVec2(4,4); // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label) + CellPadding = ImVec2(4,2); // Padding within a table cell + TouchExtraPadding = ImVec2(0,0); // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + IndentSpacing = 21.0f; // Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + ColumnsMinSpacing = 6.0f; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + ScrollbarSize = 14.0f; // Width of the vertical scrollbar, Height of the horizontal scrollbar + ScrollbarRounding = 9.0f; // Radius of grab corners rounding for scrollbar + GrabMinSize = 12.0f; // Minimum width/height of a grab box for slider/scrollbar + GrabRounding = 0.0f; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + LogSliderDeadzone = 4.0f; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + TabRounding = 4.0f; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + TabBorderSize = 0.0f; // Thickness of border around tabs. + TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + ColorButtonPosition = ImGuiDir_Right; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text. + SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + DisplayWindowPadding = ImVec2(19,19); // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + DisplaySafeAreaPadding = ImVec2(3,3); // If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows. + MouseCursorScale = 1.0f; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. + AntiAliasedLines = true; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. + AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). + AntiAliasedFill = true; // Enable anti-aliased filled shapes (rounded rectangles, circles, etc.). + CurveTessellationTol = 1.25f; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + CircleTessellationMaxError = 0.30f; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + + // Default theme + ImGui::StyleColorsDark(this); +} + +// To scale your entire UI (e.g. if you want your app to use High DPI or generally be DPI aware) you may use this helper function. Scaling the fonts is done separately and is up to you. +// Important: This operation is lossy because we round all sizes to integer. If you need to change your scale multiples, call this over a freshly initialized ImGuiStyle structure rather than scaling multiple times. +void ImGuiStyle::ScaleAllSizes(float scale_factor) +{ + WindowPadding = ImFloor(WindowPadding * scale_factor); + WindowRounding = ImFloor(WindowRounding * scale_factor); + WindowMinSize = ImFloor(WindowMinSize * scale_factor); + ChildRounding = ImFloor(ChildRounding * scale_factor); + PopupRounding = ImFloor(PopupRounding * scale_factor); + FramePadding = ImFloor(FramePadding * scale_factor); + FrameRounding = ImFloor(FrameRounding * scale_factor); + ItemSpacing = ImFloor(ItemSpacing * scale_factor); + ItemInnerSpacing = ImFloor(ItemInnerSpacing * scale_factor); + CellPadding = ImFloor(CellPadding * scale_factor); + TouchExtraPadding = ImFloor(TouchExtraPadding * scale_factor); + IndentSpacing = ImFloor(IndentSpacing * scale_factor); + ColumnsMinSpacing = ImFloor(ColumnsMinSpacing * scale_factor); + ScrollbarSize = ImFloor(ScrollbarSize * scale_factor); + ScrollbarRounding = ImFloor(ScrollbarRounding * scale_factor); + GrabMinSize = ImFloor(GrabMinSize * scale_factor); + GrabRounding = ImFloor(GrabRounding * scale_factor); + LogSliderDeadzone = ImFloor(LogSliderDeadzone * scale_factor); + TabRounding = ImFloor(TabRounding * scale_factor); + TabMinWidthForCloseButton = (TabMinWidthForCloseButton != FLT_MAX) ? ImFloor(TabMinWidthForCloseButton * scale_factor) : FLT_MAX; + DisplayWindowPadding = ImFloor(DisplayWindowPadding * scale_factor); + DisplaySafeAreaPadding = ImFloor(DisplaySafeAreaPadding * scale_factor); + MouseCursorScale = ImFloor(MouseCursorScale * scale_factor); +} + +ImGuiIO::ImGuiIO() +{ + // Most fields are initialized with zero + memset(this, 0, sizeof(*this)); + IM_STATIC_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); + + // Settings + ConfigFlags = ImGuiConfigFlags_None; + BackendFlags = ImGuiBackendFlags_None; + DisplaySize = ImVec2(-1.0f, -1.0f); + DeltaTime = 1.0f / 60.0f; + IniSavingRate = 5.0f; + IniFilename = "imgui.ini"; // Important: "imgui.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables). + LogFilename = "imgui_log.txt"; + MouseDoubleClickTime = 0.30f; + MouseDoubleClickMaxDist = 6.0f; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int i = 0; i < ImGuiKey_COUNT; i++) + KeyMap[i] = -1; +#endif + KeyRepeatDelay = 0.275f; + KeyRepeatRate = 0.050f; + HoverDelayNormal = 0.30f; + HoverDelayShort = 0.10f; + UserData = NULL; + + Fonts = NULL; + FontGlobalScale = 1.0f; + FontDefault = NULL; + FontAllowUserScaling = false; + DisplayFramebufferScale = ImVec2(1.0f, 1.0f); + + // Docking options (when ImGuiConfigFlags_DockingEnable is set) + ConfigDockingNoSplit = false; + ConfigDockingWithShift = false; + ConfigDockingAlwaysTabBar = false; + ConfigDockingTransparentPayload = false; + + // Viewport options (when ImGuiConfigFlags_ViewportsEnable is set) + ConfigViewportsNoAutoMerge = false; + ConfigViewportsNoTaskBarIcon = false; + ConfigViewportsNoDecoration = true; + ConfigViewportsNoDefaultParent = false; + + // Miscellaneous options + MouseDrawCursor = false; +#ifdef __APPLE__ + ConfigMacOSXBehaviors = true; // Set Mac OS X style defaults based on __APPLE__ compile time flag +#else + ConfigMacOSXBehaviors = false; +#endif + ConfigInputTrickleEventQueue = true; + ConfigInputTextCursorBlink = true; + ConfigInputTextEnterKeepActive = false; + ConfigDragClickToInputText = false; + ConfigWindowsResizeFromEdges = true; + ConfigWindowsMoveFromTitleBarOnly = false; + ConfigMemoryCompactTimer = 60.0f; + + // Platform Functions + BackendPlatformName = BackendRendererName = NULL; + BackendPlatformUserData = BackendRendererUserData = BackendLanguageUserData = NULL; + GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations + SetClipboardTextFn = SetClipboardTextFn_DefaultImpl; + ClipboardUserData = NULL; + SetPlatformImeDataFn = SetPlatformImeDataFn_DefaultImpl; + + // Input (NB: we already have memset zero the entire structure!) + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + MousePosPrev = ImVec2(-FLT_MAX, -FLT_MAX); + MouseDragThreshold = 6.0f; + for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDurationPrev[i] = -1.0f; + for (int i = 0; i < IM_ARRAYSIZE(KeysData); i++) { KeysData[i].DownDuration = KeysData[i].DownDurationPrev = -1.0f; } + AppAcceptingEvents = true; + BackendUsingLegacyKeyArrays = (ImS8)-1; + BackendUsingLegacyNavInputArray = true; // assume using legacy array until proven wrong +} + +// Pass in translated ASCII characters for text input. +// - with glfw you can get those from the callback set in glfwSetCharCallback() +// - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message +// FIXME: Should in theory be called "AddCharacterEvent()" to be consistent with new API +void ImGuiIO::AddInputCharacter(unsigned int c) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + if (c == 0 || !AppAcceptingEvents) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Text; + e.Source = ImGuiInputSource_Keyboard; + e.Text.Char = c; + g.InputEventsQueue.push_back(e); +} + +// UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so +// we should save the high surrogate. +void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) +{ + if ((c == 0 && InputQueueSurrogate == 0) || !AppAcceptingEvents) + return; + + if ((c & 0xFC00) == 0xD800) // High surrogate, must save + { + if (InputQueueSurrogate != 0) + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); + InputQueueSurrogate = c; + return; + } + + ImWchar cp = c; + if (InputQueueSurrogate != 0) + { + if ((c & 0xFC00) != 0xDC00) // Invalid low surrogate + { + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); + } + else + { +#if IM_UNICODE_CODEPOINT_MAX == 0xFFFF + cp = IM_UNICODE_CODEPOINT_INVALID; // Codepoint will not fit in ImWchar +#else + cp = (ImWchar)(((InputQueueSurrogate - 0xD800) << 10) + (c - 0xDC00) + 0x10000); +#endif + } + + InputQueueSurrogate = 0; + } + AddInputCharacter((unsigned)cp); +} + +void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) +{ + if (!AppAcceptingEvents) + return; + while (*utf8_chars != 0) + { + unsigned int c = 0; + utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL); + if (c != 0) + AddInputCharacter(c); + } +} + +// FIXME: Perhaps we could clear queued events as well? +void ImGuiIO::ClearInputCharacters() +{ + InputQueueCharacters.resize(0); +} + +// FIXME: Perhaps we could clear queued events as well? +void ImGuiIO::ClearInputKeys() +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + memset(KeysDown, 0, sizeof(KeysDown)); +#endif + for (int n = 0; n < IM_ARRAYSIZE(KeysData); n++) + { + KeysData[n].Down = false; + KeysData[n].DownDuration = -1.0f; + KeysData[n].DownDurationPrev = -1.0f; + } + KeyCtrl = KeyShift = KeyAlt = KeySuper = false; + KeyMods = ImGuiMod_None; + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + for (int n = 0; n < IM_ARRAYSIZE(MouseDown); n++) + { + MouseDown[n] = false; + MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f; + } + MouseWheel = MouseWheelH = 0.0f; +} + +static ImGuiInputEvent* FindLatestInputEvent(ImGuiInputEventType type, int arg = -1) +{ + ImGuiContext& g = *GImGui; + for (int n = g.InputEventsQueue.Size - 1; n >= 0; n--) + { + ImGuiInputEvent* e = &g.InputEventsQueue[n]; + if (e->Type != type) + continue; + if (type == ImGuiInputEventType_Key && e->Key.Key != arg) + continue; + if (type == ImGuiInputEventType_MouseButton && e->MouseButton.Button != arg) + continue; + return e; + } + return NULL; +} + +// Queue a new key down/up event. +// - ImGuiKey key: Translated key (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) +// - bool down: Is the key down? use false to signify a key release. +// - float analog_value: 0.0f..1.0f +void ImGuiIO::AddKeyAnalogEvent(ImGuiKey key, bool down, float analog_value) +{ + //if (e->Down) { IMGUI_DEBUG_LOG_IO("AddKeyEvent() Key='%s' %d, NativeKeycode = %d, NativeScancode = %d\n", ImGui::GetKeyName(e->Key), e->Down, e->NativeKeycode, e->NativeScancode); } + if (key == ImGuiKey_None || !AppAcceptingEvents) + return; + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(ImGui::IsNamedKeyOrModKey(key)); // Backend needs to pass a valid ImGuiKey_ constant. 0..511 values are legacy native key codes which are not accepted by this API. + IM_ASSERT(!ImGui::IsAliasKey(key)); // Backend cannot submit ImGuiKey_MouseXXX values they are automatically inferred from AddMouseXXX() events. + + // Verify that backend isn't mixing up using new io.AddKeyEvent() api and old io.KeysDown[] + io.KeyMap[] data. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((BackendUsingLegacyKeyArrays == -1 || BackendUsingLegacyKeyArrays == 0) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + if (BackendUsingLegacyKeyArrays == -1) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + IM_ASSERT(KeyMap[n] == -1 && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + BackendUsingLegacyKeyArrays = 0; +#endif + if (ImGui::IsGamepadKey(key)) + BackendUsingLegacyNavInputArray = false; + + // Filter duplicate (in particular: key mods and gamepad analog values are commonly spammed) + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_Key, (int)key); + const ImGuiKeyData* key_data = ImGui::GetKeyData(key); + const bool latest_key_down = latest_event ? latest_event->Key.Down : key_data->Down; + const float latest_key_analog = latest_event ? latest_event->Key.AnalogValue : key_data->AnalogValue; + if (latest_key_down == down && latest_key_analog == analog_value) + return; + + // Add event + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Key; + e.Source = ImGui::IsGamepadKey(key) ? ImGuiInputSource_Gamepad : ImGuiInputSource_Keyboard; + e.Key.Key = key; + e.Key.Down = down; + e.Key.AnalogValue = analog_value; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) +{ + if (!AppAcceptingEvents) + return; + AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); +} + +// [Optional] Call after AddKeyEvent(). +// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. +// If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this. +void ImGuiIO::SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index) +{ + if (key == ImGuiKey_None) + return; + IM_ASSERT(ImGui::IsNamedKey(key)); // >= 512 + IM_ASSERT(native_legacy_index == -1 || ImGui::IsLegacyKey((ImGuiKey)native_legacy_index)); // >= 0 && <= 511 + IM_UNUSED(native_keycode); // Yet unused + IM_UNUSED(native_scancode); // Yet unused + + // Build native->imgui map so old user code can still call key functions with native 0..511 values. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const int legacy_key = (native_legacy_index != -1) ? native_legacy_index : native_keycode; + if (!ImGui::IsLegacyKey((ImGuiKey)legacy_key)) + return; + KeyMap[legacy_key] = key; + KeyMap[key] = legacy_key; +#else + IM_UNUSED(key); + IM_UNUSED(native_legacy_index); +#endif +} + +// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. +void ImGuiIO::SetAppAcceptingEvents(bool accepting_events) +{ + AppAcceptingEvents = accepting_events; +} + +// Queue a mouse move event +void ImGuiIO::AddMousePosEvent(float x, float y) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + if (!AppAcceptingEvents) + return; + + // Apply same flooring as UpdateMouseInputs() + ImVec2 pos((x > -FLT_MAX) ? ImFloorSigned(x) : x, (y > -FLT_MAX) ? ImFloorSigned(y) : y); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MousePos); + const ImVec2 latest_pos = latest_event ? ImVec2(latest_event->MousePos.PosX, latest_event->MousePos.PosY) : g.IO.MousePos; + if (latest_pos.x == pos.x && latest_pos.y == pos.y) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MousePos; + e.Source = ImGuiInputSource_Mouse; + e.MousePos.PosX = pos.x; + e.MousePos.PosY = pos.y; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddMouseButtonEvent(int mouse_button, bool down) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MouseButton, (int)mouse_button); + const bool latest_button_down = latest_event ? latest_event->MouseButton.Down : g.IO.MouseDown[mouse_button]; + if (latest_button_down == down) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseButton; + e.Source = ImGuiInputSource_Mouse; + e.MouseButton.Button = mouse_button; + e.MouseButton.Down = down; + g.InputEventsQueue.push_back(e); +} + +// Queue a mouse wheel event (most mouse/API will only have a Y component) +void ImGuiIO::AddMouseWheelEvent(float wheel_x, float wheel_y) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + + // Filter duplicate (unlike most events, wheel values are relative and easy to filter) + if (!AppAcceptingEvents || (wheel_x == 0.0f && wheel_y == 0.0f)) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseWheel; + e.Source = ImGuiInputSource_Mouse; + e.MouseWheel.WheelX = wheel_x; + e.MouseWheel.WheelY = wheel_y; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddMouseViewportEvent(ImGuiID viewport_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MouseViewport); + const ImGuiID latest_viewport_id = latest_event ? latest_event->MouseViewport.HoveredViewportID : g.IO.MouseHoveredViewport; + if (latest_viewport_id == viewport_id) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseViewport; + e.Source = ImGuiInputSource_Mouse; + e.MouseViewport.HoveredViewportID = viewport_id; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddFocusEvent(bool focused) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_Focus); + const bool latest_focused = latest_event ? latest_event->AppFocused.Focused : !g.IO.AppFocusLost; + if (latest_focused == focused) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Focus; + e.AppFocused.Focused = focused; + g.InputEventsQueue.push_back(e); +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +//----------------------------------------------------------------------------- + +ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments) +{ + IM_ASSERT(num_segments > 0); // Use ImBezierCubicClosestPointCasteljau() + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + { + ImVec2 p_current = ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + return p_closest; +} + +// Closely mimics PathBezierToCasteljau() in imgui_draw.cpp +static void ImBezierCubicClosestPointCasteljauStep(const ImVec2& p, ImVec2& p_closest, ImVec2& p_last, float& p_closest_dist2, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = ((x2 - x4) * dy - (y2 - y4) * dx); + float d3 = ((x3 - x4) * dy - (y3 - y4) * dx); + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + ImVec2 p_current(x4, y4); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + else if (level < 10) + { + float x12 = (x1 + x2)*0.5f, y12 = (y1 + y2)*0.5f; + float x23 = (x2 + x3)*0.5f, y23 = (y2 + y3)*0.5f; + float x34 = (x3 + x4)*0.5f, y34 = (y3 + y4)*0.5f; + float x123 = (x12 + x23)*0.5f, y123 = (y12 + y23)*0.5f; + float x234 = (x23 + x34)*0.5f, y234 = (y23 + y34)*0.5f; + float x1234 = (x123 + x234)*0.5f, y1234 = (y123 + y234)*0.5f; + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +// tess_tol is generally the same value you would find in ImGui::GetStyle().CurveTessellationTol +// Because those ImXXX functions are lower-level than ImGui:: we cannot access this value automatically. +ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol) +{ + IM_ASSERT(tess_tol > 0.0f); + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, tess_tol, 0); + return p_closest; +} + +ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p) +{ + ImVec2 ap = p - a; + ImVec2 ab_dir = b - a; + float dot = ap.x * ab_dir.x + ap.y * ab_dir.y; + if (dot < 0.0f) + return a; + float ab_len_sqr = ab_dir.x * ab_dir.x + ab_dir.y * ab_dir.y; + if (dot > ab_len_sqr) + return b; + return a + ab_dir * dot / ab_len_sqr; +} + +bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + bool b1 = ((p.x - b.x) * (a.y - b.y) - (p.y - b.y) * (a.x - b.x)) < 0.0f; + bool b2 = ((p.x - c.x) * (b.y - c.y) - (p.y - c.y) * (b.x - c.x)) < 0.0f; + bool b3 = ((p.x - a.x) * (c.y - a.y) - (p.y - a.y) * (c.x - a.x)) < 0.0f; + return ((b1 == b2) && (b2 == b3)); +} + +void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w) +{ + ImVec2 v0 = b - a; + ImVec2 v1 = c - a; + ImVec2 v2 = p - a; + const float denom = v0.x * v1.y - v1.x * v0.y; + out_v = (v2.x * v1.y - v1.x * v2.y) / denom; + out_w = (v0.x * v2.y - v2.x * v0.y) / denom; + out_u = 1.0f - out_v - out_w; +} + +ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + ImVec2 proj_ab = ImLineClosestPoint(a, b, p); + ImVec2 proj_bc = ImLineClosestPoint(b, c, p); + ImVec2 proj_ca = ImLineClosestPoint(c, a, p); + float dist2_ab = ImLengthSqr(p - proj_ab); + float dist2_bc = ImLengthSqr(p - proj_bc); + float dist2_ca = ImLengthSqr(p - proj_ca); + float m = ImMin(dist2_ab, ImMin(dist2_bc, dist2_ca)); + if (m == dist2_ab) + return proj_ab; + if (m == dist2_bc) + return proj_bc; + return proj_ca; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +//----------------------------------------------------------------------------- + +// Consider using _stricmp/_strnicmp under Windows or strcasecmp/strncasecmp. We don't actually use either ImStricmp/ImStrnicmp in the codebase any more. +int ImStricmp(const char* str1, const char* str2) +{ + int d; + while ((d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; } + return d; +} + +int ImStrnicmp(const char* str1, const char* str2, size_t count) +{ + int d = 0; + while (count > 0 && (d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; count--; } + return d; +} + +void ImStrncpy(char* dst, const char* src, size_t count) +{ + if (count < 1) + return; + if (count > 1) + strncpy(dst, src, count - 1); + dst[count - 1] = 0; +} + +char* ImStrdup(const char* str) +{ + size_t len = strlen(str); + void* buf = IM_ALLOC(len + 1); + return (char*)memcpy(buf, (const void*)str, len + 1); +} + +char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src) +{ + size_t dst_buf_size = p_dst_size ? *p_dst_size : strlen(dst) + 1; + size_t src_size = strlen(src) + 1; + if (dst_buf_size < src_size) + { + IM_FREE(dst); + dst = (char*)IM_ALLOC(src_size); + if (p_dst_size) + *p_dst_size = src_size; + } + return (char*)memcpy(dst, (const void*)src, src_size); +} + +const char* ImStrchrRange(const char* str, const char* str_end, char c) +{ + const char* p = (const char*)memchr(str, (int)c, str_end - str); + return p; +} + +int ImStrlenW(const ImWchar* str) +{ + //return (int)wcslen((const wchar_t*)str); // FIXME-OPT: Could use this when wchar_t are 16-bit + int n = 0; + while (*str++) n++; + return n; +} + +// Find end-of-line. Return pointer will point to either first \n, either str_end. +const char* ImStreolRange(const char* str, const char* str_end) +{ + const char* p = (const char*)memchr(str, '\n', str_end - str); + return p ? p : str_end; +} + +const ImWchar* ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin) // find beginning-of-line +{ + while (buf_mid_line > buf_begin && buf_mid_line[-1] != '\n') + buf_mid_line--; + return buf_mid_line; +} + +const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end) +{ + if (!needle_end) + needle_end = needle + strlen(needle); + + const char un0 = (char)ImToUpper(*needle); + while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end)) + { + if (ImToUpper(*haystack) == un0) + { + const char* b = needle + 1; + for (const char* a = haystack + 1; b < needle_end; a++, b++) + if (ImToUpper(*a) != ImToUpper(*b)) + break; + if (b == needle_end) + return haystack; + } + haystack++; + } + return NULL; +} + +// Trim str by offsetting contents when there's leading data + writing a \0 at the trailing position. We use this in situation where the cost is negligible. +void ImStrTrimBlanks(char* buf) +{ + char* p = buf; + while (p[0] == ' ' || p[0] == '\t') // Leading blanks + p++; + char* p_start = p; + while (*p != 0) // Find end of string + p++; + while (p > p_start && (p[-1] == ' ' || p[-1] == '\t')) // Trailing blanks + p--; + if (p_start != buf) // Copy memory if we had leading blanks + memmove(buf, p_start, p - p_start); + buf[p - p_start] = 0; // Zero terminate +} + +const char* ImStrSkipBlank(const char* str) +{ + while (str[0] == ' ' || str[0] == '\t') + str++; + return str; +} + +// A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size). +// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm. +// B) When buf==NULL vsnprintf() will return the output size. +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +// We support stb_sprintf which is much faster (see: https://github.com/nothings/stb/blob/master/stb_sprintf.h) +// You may set IMGUI_USE_STB_SPRINTF to use our default wrapper, or set IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +// and setup the wrapper yourself. (FIXME-OPT: Some of our high-level operations such as ImGuiTextBuffer::appendfv() are +// designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.) +#ifdef IMGUI_USE_STB_SPRINTF +#define STB_SPRINTF_IMPLEMENTATION +#ifdef IMGUI_STB_SPRINTF_FILENAME +#include IMGUI_STB_SPRINTF_FILENAME +#else +#include "stb_sprintf.h" +#endif +#endif + +#if defined(_MSC_VER) && !defined(vsnprintf) +#define vsnprintf _vsnprintf +#endif + +int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + va_end(args); + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} + +int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) +{ +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} +#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + va_list args; + va_start(args, fmt); + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } + va_end(args); +} + +void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } +} + +// CRC32 needs a 1KB lookup table (not cache friendly) +// Although the code to generate the table is simple and shorter than the table itself, using a const table allows us to easily: +// - avoid an unnecessary branch/memory tap, - keep the ImHashXXX functions usable by static constructors, - make it thread-safe. +static const ImU32 GCrc32LookupTable[256] = +{ + 0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F,0xE963A535,0x9E6495A3,0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988,0x09B64C2B,0x7EB17CBD,0xE7B82D07,0x90BF1D91, + 0x1DB71064,0x6AB020F2,0xF3B97148,0x84BE41DE,0x1ADAD47D,0x6DDDE4EB,0xF4D4B551,0x83D385C7,0x136C9856,0x646BA8C0,0xFD62F97A,0x8A65C9EC,0x14015C4F,0x63066CD9,0xFA0F3D63,0x8D080DF5, + 0x3B6E20C8,0x4C69105E,0xD56041E4,0xA2677172,0x3C03E4D1,0x4B04D447,0xD20D85FD,0xA50AB56B,0x35B5A8FA,0x42B2986C,0xDBBBC9D6,0xACBCF940,0x32D86CE3,0x45DF5C75,0xDCD60DCF,0xABD13D59, + 0x26D930AC,0x51DE003A,0xC8D75180,0xBFD06116,0x21B4F4B5,0x56B3C423,0xCFBA9599,0xB8BDA50F,0x2802B89E,0x5F058808,0xC60CD9B2,0xB10BE924,0x2F6F7C87,0x58684C11,0xC1611DAB,0xB6662D3D, + 0x76DC4190,0x01DB7106,0x98D220BC,0xEFD5102A,0x71B18589,0x06B6B51F,0x9FBFE4A5,0xE8B8D433,0x7807C9A2,0x0F00F934,0x9609A88E,0xE10E9818,0x7F6A0DBB,0x086D3D2D,0x91646C97,0xE6635C01, + 0x6B6B51F4,0x1C6C6162,0x856530D8,0xF262004E,0x6C0695ED,0x1B01A57B,0x8208F4C1,0xF50FC457,0x65B0D9C6,0x12B7E950,0x8BBEB8EA,0xFCB9887C,0x62DD1DDF,0x15DA2D49,0x8CD37CF3,0xFBD44C65, + 0x4DB26158,0x3AB551CE,0xA3BC0074,0xD4BB30E2,0x4ADFA541,0x3DD895D7,0xA4D1C46D,0xD3D6F4FB,0x4369E96A,0x346ED9FC,0xAD678846,0xDA60B8D0,0x44042D73,0x33031DE5,0xAA0A4C5F,0xDD0D7CC9, + 0x5005713C,0x270241AA,0xBE0B1010,0xC90C2086,0x5768B525,0x206F85B3,0xB966D409,0xCE61E49F,0x5EDEF90E,0x29D9C998,0xB0D09822,0xC7D7A8B4,0x59B33D17,0x2EB40D81,0xB7BD5C3B,0xC0BA6CAD, + 0xEDB88320,0x9ABFB3B6,0x03B6E20C,0x74B1D29A,0xEAD54739,0x9DD277AF,0x04DB2615,0x73DC1683,0xE3630B12,0x94643B84,0x0D6D6A3E,0x7A6A5AA8,0xE40ECF0B,0x9309FF9D,0x0A00AE27,0x7D079EB1, + 0xF00F9344,0x8708A3D2,0x1E01F268,0x6906C2FE,0xF762575D,0x806567CB,0x196C3671,0x6E6B06E7,0xFED41B76,0x89D32BE0,0x10DA7A5A,0x67DD4ACC,0xF9B9DF6F,0x8EBEEFF9,0x17B7BE43,0x60B08ED5, + 0xD6D6A3E8,0xA1D1937E,0x38D8C2C4,0x4FDFF252,0xD1BB67F1,0xA6BC5767,0x3FB506DD,0x48B2364B,0xD80D2BDA,0xAF0A1B4C,0x36034AF6,0x41047A60,0xDF60EFC3,0xA867DF55,0x316E8EEF,0x4669BE79, + 0xCB61B38C,0xBC66831A,0x256FD2A0,0x5268E236,0xCC0C7795,0xBB0B4703,0x220216B9,0x5505262F,0xC5BA3BBE,0xB2BD0B28,0x2BB45A92,0x5CB36A04,0xC2D7FFA7,0xB5D0CF31,0x2CD99E8B,0x5BDEAE1D, + 0x9B64C2B0,0xEC63F226,0x756AA39C,0x026D930A,0x9C0906A9,0xEB0E363F,0x72076785,0x05005713,0x95BF4A82,0xE2B87A14,0x7BB12BAE,0x0CB61B38,0x92D28E9B,0xE5D5BE0D,0x7CDCEFB7,0x0BDBDF21, + 0x86D3D2D4,0xF1D4E242,0x68DDB3F8,0x1FDA836E,0x81BE16CD,0xF6B9265B,0x6FB077E1,0x18B74777,0x88085AE6,0xFF0F6A70,0x66063BCA,0x11010B5C,0x8F659EFF,0xF862AE69,0x616BFFD3,0x166CCF45, + 0xA00AE278,0xD70DD2EE,0x4E048354,0x3903B3C2,0xA7672661,0xD06016F7,0x4969474D,0x3E6E77DB,0xAED16A4A,0xD9D65ADC,0x40DF0B66,0x37D83BF0,0xA9BCAE53,0xDEBB9EC5,0x47B2CF7F,0x30B5FFE9, + 0xBDBDF21C,0xCABAC28A,0x53B39330,0x24B4A3A6,0xBAD03605,0xCDD70693,0x54DE5729,0x23D967BF,0xB3667A2E,0xC4614AB8,0x5D681B02,0x2A6F2B94,0xB40BBE37,0xC30C8EA1,0x5A05DF1B,0x2D02EF8D, +}; + +// Known size hash +// It is ok to call ImHashData on a string with known length but the ### operator won't be supported. +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImGuiID ImHashData(const void* data_p, size_t data_size, ImU32 seed) +{ + ImU32 crc = ~seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + while (data_size-- != 0) + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ *data++]; + return ~crc; +} + +// Zero-terminated string hash, with support for ### to reset back to seed value +// We support a syntax of "label###id" where only "###id" is included in the hash, and only "label" gets displayed. +// Because this syntax is rarely used we are optimizing for the common case. +// - If we reach ### in the string we discard the hash so far and reset to the seed. +// - We don't do 'current += 2; continue;' after handling ### to keep the code smaller/faster (measured ~10% diff in Debug build) +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImGuiID ImHashStr(const char* data_p, size_t data_size, ImU32 seed) +{ + seed = ~seed; + ImU32 crc = seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + if (data_size != 0) + { + while (data_size-- != 0) + { + unsigned char c = *data++; + if (c == '#' && data_size >= 2 && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + else + { + while (unsigned char c = *data++) + { + if (c == '#' && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + return ~crc; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (File functions) +//----------------------------------------------------------------------------- + +// Default file functions +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +ImFileHandle ImFileOpen(const char* filename, const char* mode) +{ +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(__CYGWIN__) && !defined(__GNUC__) + // We need a fopen() wrapper because MSVC/Windows fopen doesn't handle UTF-8 filenames. + // Previously we used ImTextCountCharsFromUtf8/ImTextStrFromUtf8 here but we now need to support ImWchar16 and ImWchar32! + const int filename_wsize = ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0); + const int mode_wsize = ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, NULL, 0); + ImVector buf; + buf.resize(filename_wsize + mode_wsize); + ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, (wchar_t*)&buf[0], filename_wsize); + ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, (wchar_t*)&buf[filename_wsize], mode_wsize); + return ::_wfopen((const wchar_t*)&buf[0], (const wchar_t*)&buf[filename_wsize]); +#else + return fopen(filename, mode); +#endif +} + +// We should in theory be using fseeko()/ftello() with off_t and _fseeki64()/_ftelli64() with __int64, waiting for the PR that does that in a very portable pre-C++11 zero-warnings way. +bool ImFileClose(ImFileHandle f) { return fclose(f) == 0; } +ImU64 ImFileGetSize(ImFileHandle f) { long off = 0, sz = 0; return ((off = ftell(f)) != -1 && !fseek(f, 0, SEEK_END) && (sz = ftell(f)) != -1 && !fseek(f, off, SEEK_SET)) ? (ImU64)sz : (ImU64)-1; } +ImU64 ImFileRead(void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fread(data, (size_t)sz, (size_t)count, f); } +ImU64 ImFileWrite(const void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fwrite(data, (size_t)sz, (size_t)count, f); } +#endif // #ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +// Helper: Load file content into memory +// Memory allocated with IM_ALLOC(), must be freed by user using IM_FREE() == ImGui::MemFree() +// This can't really be used with "rt" because fseek size won't match read size. +void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes) +{ + IM_ASSERT(filename && mode); + if (out_file_size) + *out_file_size = 0; + + ImFileHandle f; + if ((f = ImFileOpen(filename, mode)) == NULL) + return NULL; + + size_t file_size = (size_t)ImFileGetSize(f); + if (file_size == (size_t)-1) + { + ImFileClose(f); + return NULL; + } + + void* file_data = IM_ALLOC(file_size + padding_bytes); + if (file_data == NULL) + { + ImFileClose(f); + return NULL; + } + if (ImFileRead(file_data, 1, file_size, f) != file_size) + { + ImFileClose(f); + IM_FREE(file_data); + return NULL; + } + if (padding_bytes > 0) + memset((void*)(((char*)file_data) + file_size), 0, (size_t)padding_bytes); + + ImFileClose(f); + if (out_file_size) + *out_file_size = file_size; + + return file_data; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +//----------------------------------------------------------------------------- + +// Convert UTF-8 to 32-bit character, process single character input. +// A nearly-branchless UTF-8 decoder, based on work of Christopher Wellons (https://github.com/skeeto/branchless-utf8). +// We handle UTF-8 decoding error by skipping forward. +int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end) +{ + static const char lengths[32] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 3, 3, 4, 0 }; + static const int masks[] = { 0x00, 0x7f, 0x1f, 0x0f, 0x07 }; + static const uint32_t mins[] = { 0x400000, 0, 0x80, 0x800, 0x10000 }; + static const int shiftc[] = { 0, 18, 12, 6, 0 }; + static const int shifte[] = { 0, 6, 4, 2, 0 }; + int len = lengths[*(const unsigned char*)in_text >> 3]; + int wanted = len + !len; + + if (in_text_end == NULL) + in_text_end = in_text + wanted; // Max length, nulls will be taken into account. + + // Copy at most 'len' bytes, stop copying at 0 or past in_text_end. Branch predictor does a good job here, + // so it is fast even with excessive branching. + unsigned char s[4]; + s[0] = in_text + 0 < in_text_end ? in_text[0] : 0; + s[1] = in_text + 1 < in_text_end ? in_text[1] : 0; + s[2] = in_text + 2 < in_text_end ? in_text[2] : 0; + s[3] = in_text + 3 < in_text_end ? in_text[3] : 0; + + // Assume a four-byte character and load four bytes. Unused bits are shifted out. + *out_char = (uint32_t)(s[0] & masks[len]) << 18; + *out_char |= (uint32_t)(s[1] & 0x3f) << 12; + *out_char |= (uint32_t)(s[2] & 0x3f) << 6; + *out_char |= (uint32_t)(s[3] & 0x3f) << 0; + *out_char >>= shiftc[len]; + + // Accumulate the various error conditions. + int e = 0; + e = (*out_char < mins[len]) << 6; // non-canonical encoding + e |= ((*out_char >> 11) == 0x1b) << 7; // surrogate half? + e |= (*out_char > IM_UNICODE_CODEPOINT_MAX) << 8; // out of range? + e |= (s[1] & 0xc0) >> 2; + e |= (s[2] & 0xc0) >> 4; + e |= (s[3] ) >> 6; + e ^= 0x2a; // top two bits of each tail byte correct? + e >>= shifte[len]; + + if (e) + { + // No bytes are consumed when *in_text == 0 || in_text == in_text_end. + // One byte is consumed in case of invalid first byte of in_text. + // All available bytes (at most `len` bytes) are consumed on incomplete/invalid second to last bytes. + // Invalid or incomplete input may consume less bytes than wanted, therefore every byte has to be inspected in s. + wanted = ImMin(wanted, !!s[0] + !!s[1] + !!s[2] + !!s[3]); + *out_char = IM_UNICODE_CODEPOINT_INVALID; + } + + return wanted; +} + +int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_text_remaining) +{ + ImWchar* buf_out = buf; + ImWchar* buf_end = buf + buf_size; + while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + if (c == 0) + break; + *buf_out++ = (ImWchar)c; + } + *buf_out = 0; + if (in_text_remaining) + *in_text_remaining = in_text; + return (int)(buf_out - buf); +} + +int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end) +{ + int char_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + if (c == 0) + break; + char_count++; + } + return char_count; +} + +// Based on stb_to_utf8() from github.com/nothings/stb/ +static inline int ImTextCharToUtf8_inline(char* buf, int buf_size, unsigned int c) +{ + if (c < 0x80) + { + buf[0] = (char)c; + return 1; + } + if (c < 0x800) + { + if (buf_size < 2) return 0; + buf[0] = (char)(0xc0 + (c >> 6)); + buf[1] = (char)(0x80 + (c & 0x3f)); + return 2; + } + if (c < 0x10000) + { + if (buf_size < 3) return 0; + buf[0] = (char)(0xe0 + (c >> 12)); + buf[1] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[2] = (char)(0x80 + ((c ) & 0x3f)); + return 3; + } + if (c <= 0x10FFFF) + { + if (buf_size < 4) return 0; + buf[0] = (char)(0xf0 + (c >> 18)); + buf[1] = (char)(0x80 + ((c >> 12) & 0x3f)); + buf[2] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[3] = (char)(0x80 + ((c ) & 0x3f)); + return 4; + } + // Invalid code point, the max unicode is 0x10FFFF + return 0; +} + +const char* ImTextCharToUtf8(char out_buf[5], unsigned int c) +{ + int count = ImTextCharToUtf8_inline(out_buf, 5, c); + out_buf[count] = 0; + return out_buf; +} + +// Not optimal but we very rarely use this function. +int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end) +{ + unsigned int unused = 0; + return ImTextCharFromUtf8(&unused, in_text, in_text_end); +} + +static inline int ImTextCountUtf8BytesFromChar(unsigned int c) +{ + if (c < 0x80) return 1; + if (c < 0x800) return 2; + if (c < 0x10000) return 3; + if (c <= 0x10FFFF) return 4; + return 3; +} + +int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end) +{ + char* buf_p = out_buf; + const char* buf_end = out_buf + out_buf_size; + while (buf_p < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + *buf_p++ = (char)c; + else + buf_p += ImTextCharToUtf8_inline(buf_p, (int)(buf_end - buf_p - 1), c); + } + *buf_p = 0; + return (int)(buf_p - out_buf); +} + +int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end) +{ + int bytes_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + bytes_count++; + else + bytes_count += ImTextCountUtf8BytesFromChar(c); + } + return bytes_count; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// Note: The Convert functions are early design which are not consistent with other API. +//----------------------------------------------------------------------------- + +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b) +{ + float t = ((col_b >> IM_COL32_A_SHIFT) & 0xFF) / 255.f; + int r = ImLerp((int)(col_a >> IM_COL32_R_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_R_SHIFT) & 0xFF, t); + int g = ImLerp((int)(col_a >> IM_COL32_G_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_G_SHIFT) & 0xFF, t); + int b = ImLerp((int)(col_a >> IM_COL32_B_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_B_SHIFT) & 0xFF, t); + return IM_COL32(r, g, b, 0xFF); +} + +ImVec4 ImGui::ColorConvertU32ToFloat4(ImU32 in) +{ + float s = 1.0f / 255.0f; + return ImVec4( + ((in >> IM_COL32_R_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_G_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_B_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_A_SHIFT) & 0xFF) * s); +} + +ImU32 ImGui::ColorConvertFloat4ToU32(const ImVec4& in) +{ + ImU32 out; + out = ((ImU32)IM_F32_TO_INT8_SAT(in.x)) << IM_COL32_R_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.y)) << IM_COL32_G_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.z)) << IM_COL32_B_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.w)) << IM_COL32_A_SHIFT; + return out; +} + +// Convert rgb floats ([0-1],[0-1],[0-1]) to hsv floats ([0-1],[0-1],[0-1]), from Foley & van Dam p592 +// Optimized http://lolengine.net/blog/2013/01/13/fast-rgb-to-hsv +void ImGui::ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v) +{ + float K = 0.f; + if (g < b) + { + ImSwap(g, b); + K = -1.f; + } + if (r < g) + { + ImSwap(r, g); + K = -2.f / 6.f - K; + } + + const float chroma = r - (g < b ? g : b); + out_h = ImFabs(K + (g - b) / (6.f * chroma + 1e-20f)); + out_s = chroma / (r + 1e-20f); + out_v = r; +} + +// Convert hsv floats ([0-1],[0-1],[0-1]) to rgb floats ([0-1],[0-1],[0-1]), from Foley & van Dam p593 +// also http://en.wikipedia.org/wiki/HSL_and_HSV +void ImGui::ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b) +{ + if (s == 0.0f) + { + // gray + out_r = out_g = out_b = v; + return; + } + + h = ImFmod(h, 1.0f) / (60.0f / 360.0f); + int i = (int)h; + float f = h - (float)i; + float p = v * (1.0f - s); + float q = v * (1.0f - s * f); + float t = v * (1.0f - s * (1.0f - f)); + + switch (i) + { + case 0: out_r = v; out_g = t; out_b = p; break; + case 1: out_r = q; out_g = v; out_b = p; break; + case 2: out_r = p; out_g = v; out_b = t; break; + case 3: out_r = p; out_g = q; out_b = v; break; + case 4: out_r = t; out_g = p; out_b = v; break; + case 5: default: out_r = v; out_g = p; out_b = q; break; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiStorage +// Helper: Key->value storage +//----------------------------------------------------------------------------- + +// std::lower_bound but without the bullshit +static ImGuiStorage::ImGuiStoragePair* LowerBound(ImVector& data, ImGuiID key) +{ + ImGuiStorage::ImGuiStoragePair* first = data.Data; + ImGuiStorage::ImGuiStoragePair* last = data.Data + data.Size; + size_t count = (size_t)(last - first); + while (count > 0) + { + size_t count2 = count >> 1; + ImGuiStorage::ImGuiStoragePair* mid = first + count2; + if (mid->key < key) + { + first = ++mid; + count -= count2 + 1; + } + else + { + count = count2; + } + } + return first; +} + +// For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. +void ImGuiStorage::BuildSortByKey() +{ + struct StaticFunc + { + static int IMGUI_CDECL PairComparerByID(const void* lhs, const void* rhs) + { + // We can't just do a subtraction because qsort uses signed integers and subtracting our ID doesn't play well with that. + if (((const ImGuiStoragePair*)lhs)->key > ((const ImGuiStoragePair*)rhs)->key) return +1; + if (((const ImGuiStoragePair*)lhs)->key < ((const ImGuiStoragePair*)rhs)->key) return -1; + return 0; + } + }; + ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), StaticFunc::PairComparerByID); +} + +int ImGuiStorage::GetInt(ImGuiID key, int default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_i; +} + +bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const +{ + return GetInt(key, default_val ? 1 : 0) != 0; +} + +float ImGuiStorage::GetFloat(ImGuiID key, float default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_f; +} + +void* ImGuiStorage::GetVoidPtr(ImGuiID key) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return NULL; + return it->val_p; +} + +// References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. +int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_i; +} + +bool* ImGuiStorage::GetBoolRef(ImGuiID key, bool default_val) +{ + return (bool*)GetIntRef(key, default_val ? 1 : 0); +} + +float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_f; +} + +void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_p; +} + +// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad because it only happens on explicit interaction (maximum one a frame) +void ImGuiStorage::SetInt(ImGuiID key, int val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_i = val; +} + +void ImGuiStorage::SetBool(ImGuiID key, bool val) +{ + SetInt(key, val ? 1 : 0); +} + +void ImGuiStorage::SetFloat(ImGuiID key, float val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_f = val; +} + +void ImGuiStorage::SetVoidPtr(ImGuiID key, void* val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_p = val; +} + +void ImGuiStorage::SetAllInt(int v) +{ + for (int i = 0; i < Data.Size; i++) + Data[i].val_i = v; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextFilter +//----------------------------------------------------------------------------- + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) //-V1077 +{ + InputBuf[0] = 0; + CountGrep = 0; + if (default_filter) + { + ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); + Build(); + } +} + +bool ImGuiTextFilter::Draw(const char* label, float width) +{ + if (width != 0.0f) + ImGui::SetNextItemWidth(width); + bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf)); + if (value_changed) + Build(); + return value_changed; +} + +void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector* out) const +{ + out->resize(0); + const char* wb = b; + const char* we = wb; + while (we < e) + { + if (*we == separator) + { + out->push_back(ImGuiTextRange(wb, we)); + wb = we + 1; + } + we++; + } + if (wb != we) + out->push_back(ImGuiTextRange(wb, we)); +} + +void ImGuiTextFilter::Build() +{ + Filters.resize(0); + ImGuiTextRange input_range(InputBuf, InputBuf + strlen(InputBuf)); + input_range.split(',', &Filters); + + CountGrep = 0; + for (int i = 0; i != Filters.Size; i++) + { + ImGuiTextRange& f = Filters[i]; + while (f.b < f.e && ImCharIsBlankA(f.b[0])) + f.b++; + while (f.e > f.b && ImCharIsBlankA(f.e[-1])) + f.e--; + if (f.empty()) + continue; + if (Filters[i].b[0] != '-') + CountGrep += 1; + } +} + +bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const +{ + if (Filters.empty()) + return true; + + if (text == NULL) + text = ""; + + for (int i = 0; i != Filters.Size; i++) + { + const ImGuiTextRange& f = Filters[i]; + if (f.empty()) + continue; + if (f.b[0] == '-') + { + // Subtract + if (ImStristr(text, text_end, f.b + 1, f.e) != NULL) + return false; + } + else + { + // Grep + if (ImStristr(text, text_end, f.b, f.e) != NULL) + return true; + } + } + + // Implicit * grep + if (CountGrep == 0) + return true; + + return false; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex +//----------------------------------------------------------------------------- + +// On some platform vsnprintf() takes va_list by reference and modifies it. +// va_copy is the 'correct' way to copy a va_list but Visual Studio prior to 2013 doesn't have it. +#ifndef va_copy +#if defined(__GNUC__) || defined(__clang__) +#define va_copy(dest, src) __builtin_va_copy(dest, src) +#else +#define va_copy(dest, src) (dest = src) +#endif +#endif + +char ImGuiTextBuffer::EmptyString[1] = { 0 }; + +void ImGuiTextBuffer::append(const char* str, const char* str_end) +{ + int len = str_end ? (int)(str_end - str) : (int)strlen(str); + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + memcpy(&Buf[write_off - 1], str, (size_t)len); + Buf[write_off - 1 + len] = 0; +} + +void ImGuiTextBuffer::appendf(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + appendfv(fmt, args); + va_end(args); +} + +// Helper: Text buffer for logging/accumulating text +void ImGuiTextBuffer::appendfv(const char* fmt, va_list args) +{ + va_list args_copy; + va_copy(args_copy, args); + + int len = ImFormatStringV(NULL, 0, fmt, args); // FIXME-OPT: could do a first pass write attempt, likely successful on first pass. + if (len <= 0) + { + va_end(args_copy); + return; + } + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + ImFormatStringV(&Buf[write_off - 1], (size_t)len + 1, fmt, args_copy); + va_end(args_copy); +} + +void ImGuiTextIndex::append(const char* base, int old_size, int new_size) +{ + IM_ASSERT(old_size >= 0 && new_size >= old_size && new_size >= EndOffset); + if (old_size == new_size) + return; + if (EndOffset == 0 || base[EndOffset - 1] == '\n') + LineOffsets.push_back(EndOffset); + const char* base_end = base + new_size; + for (const char* p = base + old_size; (p = (const char*)memchr(p, '\n', base_end - p)) != 0; ) + if (++p < base_end) // Don't push a trailing offset on last \n + LineOffsets.push_back((int)(intptr_t)(p - base)); + EndOffset = ImMax(EndOffset, new_size); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiListClipper +// This is currently not as flexible/powerful as it should be and really confusing/spaghetti, mostly because we changed +// the API mid-way through development and support two ways to using the clipper, needs some rework (see TODO) +//----------------------------------------------------------------------------- + +// FIXME-TABLE: This prevents us from using ImGuiListClipper _inside_ a table cell. +// The problem we have is that without a Begin/End scheme for rows using the clipper is ambiguous. +static bool GetSkipItemForListClipping() +{ + ImGuiContext& g = *GImGui; + return (g.CurrentTable ? g.CurrentTable->HostSkipItems : g.CurrentWindow->SkipItems); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy helper to calculate coarse clipping of large list of evenly sized items. +// This legacy API is not ideal because it assumes we will return a single contiguous rectangle. +// Prefer using ImGuiListClipper which can returns non-contiguous ranges. +void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.LogEnabled) + { + // If logging is active, do not perform any clipping + *out_items_display_start = 0; + *out_items_display_end = items_count; + return; + } + if (GetSkipItemForListClipping()) + { + *out_items_display_start = *out_items_display_end = 0; + return; + } + + // We create the union of the ClipRect and the scoring rect which at worst should be 1 page away from ClipRect + // We don't include g.NavId's rectangle in there (unless g.NavJustMovedToId is set) because the rectangle enlargement can get costly. + ImRect rect = window->ClipRect; + if (g.NavMoveScoringItems) + rect.Add(g.NavScoringNoClipRect); + if (g.NavJustMovedToId && window->NavLastIds[0] == g.NavJustMovedToId) + rect.Add(WindowRectRelToAbs(window, window->NavRectRel[0])); // Could store and use NavJustMovedToRectRel + + const ImVec2 pos = window->DC.CursorPos; + int start = (int)((rect.Min.y - pos.y) / items_height); + int end = (int)((rect.Max.y - pos.y) / items_height); + + // When performing a navigation request, ensure we have one item extra in the direction we are moving to + // FIXME: Verify this works with tabbing + const bool is_nav_request = (g.NavMoveScoringItems && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (is_nav_request && g.NavMoveClipDir == ImGuiDir_Up) + start--; + if (is_nav_request && g.NavMoveClipDir == ImGuiDir_Down) + end++; + + start = ImClamp(start, 0, items_count); + end = ImClamp(end + 1, start, items_count); + *out_items_display_start = start; + *out_items_display_end = end; +} +#endif + +static void ImGuiListClipper_SortAndFuseRanges(ImVector& ranges, int offset = 0) +{ + if (ranges.Size - offset <= 1) + return; + + // Helper to order ranges and fuse them together if possible (bubble sort is fine as we are only sorting 2-3 entries) + for (int sort_end = ranges.Size - offset - 1; sort_end > 0; --sort_end) + for (int i = offset; i < sort_end + offset; ++i) + if (ranges[i].Min > ranges[i + 1].Min) + ImSwap(ranges[i], ranges[i + 1]); + + // Now fuse ranges together as much as possible. + for (int i = 1 + offset; i < ranges.Size; i++) + { + IM_ASSERT(!ranges[i].PosToIndexConvert && !ranges[i - 1].PosToIndexConvert); + if (ranges[i - 1].Max < ranges[i].Min) + continue; + ranges[i - 1].Min = ImMin(ranges[i - 1].Min, ranges[i].Min); + ranges[i - 1].Max = ImMax(ranges[i - 1].Max, ranges[i].Max); + ranges.erase(ranges.Data + i); + i--; + } +} + +static void ImGuiListClipper_SeekCursorAndSetupPrevLine(float pos_y, float line_height) +{ + // Set cursor position and a few other things so that SetScrollHereY() and Columns() can work when seeking cursor. + // FIXME: It is problematic that we have to do that here, because custom/equivalent end-user code would stumble on the same issue. + // The clipper should probably have a final step to display the last item in a regular manner, maybe with an opt-out flag for data sets which may have costly seek? + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float off_y = pos_y - window->DC.CursorPos.y; + window->DC.CursorPos.y = pos_y; + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, pos_y - g.Style.ItemSpacing.y); + window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those fields so that SetScrollHereY() can properly function after the end of our clipper usage. + window->DC.PrevLineSize.y = (line_height - g.Style.ItemSpacing.y); // If we end up needing more accurate data (to e.g. use SameLine) we may as well make the clipper have a fourth step to let user process and display the last item in their list. + if (ImGuiOldColumns* columns = window->DC.CurrentColumns) + columns->LineMinY = window->DC.CursorPos.y; // Setting this so that cell Y position are set properly + if (ImGuiTable* table = g.CurrentTable) + { + if (table->IsInsideRow) + ImGui::TableEndRow(table); + table->RowPosY2 = window->DC.CursorPos.y; + const int row_increase = (int)((off_y / line_height) + 0.5f); + //table->CurrentRow += row_increase; // Can't do without fixing TableEndRow() + table->RowBgColorCounter += row_increase; + } +} + +static void ImGuiListClipper_SeekCursorForItem(ImGuiListClipper* clipper, int item_n) +{ + // StartPosY starts from ItemsFrozen hence the subtraction + // Perform the add and multiply with double to allow seeking through larger ranges + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + float pos_y = (float)((double)clipper->StartPosY + data->LossynessOffset + (double)(item_n - data->ItemsFrozen) * clipper->ItemsHeight); + ImGuiListClipper_SeekCursorAndSetupPrevLine(pos_y, clipper->ItemsHeight); +} + +ImGuiListClipper::ImGuiListClipper() +{ + memset(this, 0, sizeof(*this)); + ItemsCount = -1; +} + +ImGuiListClipper::~ImGuiListClipper() +{ + End(); +} + +void ImGuiListClipper::Begin(int items_count, float items_height) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Begin(%d,%.2f) in '%s'\n", items_count, items_height, window->Name); + + if (ImGuiTable* table = g.CurrentTable) + if (table->IsInsideRow) + ImGui::TableEndRow(table); + + StartPosY = window->DC.CursorPos.y; + ItemsHeight = items_height; + ItemsCount = items_count; + DisplayStart = -1; + DisplayEnd = 0; + + // Acquire temporary buffer + if (++g.ClipperTempDataStacked > g.ClipperTempData.Size) + g.ClipperTempData.resize(g.ClipperTempDataStacked, ImGuiListClipperData()); + ImGuiListClipperData* data = &g.ClipperTempData[g.ClipperTempDataStacked - 1]; + data->Reset(this); + data->LossynessOffset = window->DC.CursorStartPosLossyness.y; + TempData = data; +} + +void ImGuiListClipper::End() +{ + ImGuiContext& g = *GImGui; + if (ImGuiListClipperData* data = (ImGuiListClipperData*)TempData) + { + // In theory here we should assert that we are already at the right position, but it seems saner to just seek at the end and not assert/crash the user. + IMGUI_DEBUG_LOG_CLIPPER("Clipper: End() in '%s'\n", g.CurrentWindow->Name); + if (ItemsCount >= 0 && ItemsCount < INT_MAX && DisplayStart >= 0) + ImGuiListClipper_SeekCursorForItem(this, ItemsCount); + + // Restore temporary buffer and fix back pointers which may be invalidated when nesting + IM_ASSERT(data->ListClipper == this); + data->StepNo = data->Ranges.Size; + if (--g.ClipperTempDataStacked > 0) + { + data = &g.ClipperTempData[g.ClipperTempDataStacked - 1]; + data->ListClipper->TempData = data; + } + TempData = NULL; + } + ItemsCount = -1; +} + +void ImGuiListClipper::ForceDisplayRangeByIndices(int item_min, int item_max) +{ + ImGuiListClipperData* data = (ImGuiListClipperData*)TempData; + IM_ASSERT(DisplayStart < 0); // Only allowed after Begin() and if there has not been a specified range yet. + IM_ASSERT(item_min <= item_max); + if (item_min < item_max) + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(item_min, item_max)); +} + +static bool ImGuiListClipper_StepInternal(ImGuiListClipper* clipper) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + IM_ASSERT(data != NULL && "Called ImGuiListClipper::Step() too many times, or before ImGuiListClipper::Begin() ?"); + + ImGuiTable* table = g.CurrentTable; + if (table && table->IsInsideRow) + ImGui::TableEndRow(table); + + // No items + if (clipper->ItemsCount == 0 || GetSkipItemForListClipping()) + return false; + + // While we are in frozen row state, keep displaying items one by one, unclipped + // FIXME: Could be stored as a table-agnostic state. + if (data->StepNo == 0 && table != NULL && !table->IsUnfrozenRows) + { + clipper->DisplayStart = data->ItemsFrozen; + clipper->DisplayEnd = ImMin(data->ItemsFrozen + 1, clipper->ItemsCount); + if (clipper->DisplayStart < clipper->DisplayEnd) + data->ItemsFrozen++; + return true; + } + + // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element height) + bool calc_clipping = false; + if (data->StepNo == 0) + { + clipper->StartPosY = window->DC.CursorPos.y; + if (clipper->ItemsHeight <= 0.0f) + { + // Submit the first item (or range) so we can measure its height (generally the first range is 0..1) + data->Ranges.push_front(ImGuiListClipperRange::FromIndices(data->ItemsFrozen, data->ItemsFrozen + 1)); + clipper->DisplayStart = ImMax(data->Ranges[0].Min, data->ItemsFrozen); + clipper->DisplayEnd = ImMin(data->Ranges[0].Max, clipper->ItemsCount); + data->StepNo = 1; + return true; + } + calc_clipping = true; // If on the first step with known item height, calculate clipping. + } + + // Step 1: Let the clipper infer height from first range + if (clipper->ItemsHeight <= 0.0f) + { + IM_ASSERT(data->StepNo == 1); + if (table) + IM_ASSERT(table->RowPosY1 == clipper->StartPosY && table->RowPosY2 == window->DC.CursorPos.y); + + clipper->ItemsHeight = (window->DC.CursorPos.y - clipper->StartPosY) / (float)(clipper->DisplayEnd - clipper->DisplayStart); + bool affected_by_floating_point_precision = ImIsFloatAboveGuaranteedIntegerPrecision(clipper->StartPosY) || ImIsFloatAboveGuaranteedIntegerPrecision(window->DC.CursorPos.y); + if (affected_by_floating_point_precision) + clipper->ItemsHeight = window->DC.PrevLineSize.y + g.Style.ItemSpacing.y; // FIXME: Technically wouldn't allow multi-line entries. + + IM_ASSERT(clipper->ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); + calc_clipping = true; // If item height had to be calculated, calculate clipping afterwards. + } + + // Step 0 or 1: Calculate the actual ranges of visible elements. + const int already_submitted = clipper->DisplayEnd; + if (calc_clipping) + { + if (g.LogEnabled) + { + // If logging is active, do not perform any clipping + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(0, clipper->ItemsCount)); + } + else + { + // Add range selected to be included for navigation + const bool is_nav_request = (g.NavMoveScoringItems && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (is_nav_request) + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(g.NavScoringNoClipRect.Min.y, g.NavScoringNoClipRect.Max.y, 0, 0)); + if (is_nav_request && (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) && g.NavTabbingDir == -1) + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(clipper->ItemsCount - 1, clipper->ItemsCount)); + + // Add focused/active item + ImRect nav_rect_abs = ImGui::WindowRectRelToAbs(window, window->NavRectRel[0]); + if (g.NavId != 0 && window->NavLastIds[0] == g.NavId) + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(nav_rect_abs.Min.y, nav_rect_abs.Max.y, 0, 0)); + + // Add visible range + const int off_min = (is_nav_request && g.NavMoveClipDir == ImGuiDir_Up) ? -1 : 0; + const int off_max = (is_nav_request && g.NavMoveClipDir == ImGuiDir_Down) ? 1 : 0; + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(window->ClipRect.Min.y, window->ClipRect.Max.y, off_min, off_max)); + } + + // Convert position ranges to item index ranges + // - Very important: when a starting position is after our maximum item, we set Min to (ItemsCount - 1). This allows us to handle most forms of wrapping. + // - Due to how Selectable extra padding they tend to be "unaligned" with exact unit in the item list, + // which with the flooring/ceiling tend to lead to 2 items instead of one being submitted. + for (int i = 0; i < data->Ranges.Size; i++) + if (data->Ranges[i].PosToIndexConvert) + { + int m1 = (int)(((double)data->Ranges[i].Min - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight); + int m2 = (int)((((double)data->Ranges[i].Max - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight) + 0.999999f); + data->Ranges[i].Min = ImClamp(already_submitted + m1 + data->Ranges[i].PosToIndexOffsetMin, already_submitted, clipper->ItemsCount - 1); + data->Ranges[i].Max = ImClamp(already_submitted + m2 + data->Ranges[i].PosToIndexOffsetMax, data->Ranges[i].Min + 1, clipper->ItemsCount); + data->Ranges[i].PosToIndexConvert = false; + } + ImGuiListClipper_SortAndFuseRanges(data->Ranges, data->StepNo); + } + + // Step 0+ (if item height is given in advance) or 1+: Display the next range in line. + if (data->StepNo < data->Ranges.Size) + { + clipper->DisplayStart = ImMax(data->Ranges[data->StepNo].Min, already_submitted); + clipper->DisplayEnd = ImMin(data->Ranges[data->StepNo].Max, clipper->ItemsCount); + if (clipper->DisplayStart > already_submitted) //-V1051 + ImGuiListClipper_SeekCursorForItem(clipper, clipper->DisplayStart); + data->StepNo++; + return true; + } + + // After the last step: Let the clipper validate that we have reached the expected Y position (corresponding to element DisplayEnd), + // Advance the cursor to the end of the list and then returns 'false' to end the loop. + if (clipper->ItemsCount < INT_MAX) + ImGuiListClipper_SeekCursorForItem(clipper, clipper->ItemsCount); + + return false; +} + +bool ImGuiListClipper::Step() +{ + ImGuiContext& g = *GImGui; + bool need_items_height = (ItemsHeight <= 0.0f); + bool ret = ImGuiListClipper_StepInternal(this); + if (ret && (DisplayStart == DisplayEnd)) + ret = false; + if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); + if (need_items_height && ItemsHeight > 0.0f) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); + if (ret) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); + else + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); + if (!ret) + End(); + return ret; +} + +//----------------------------------------------------------------------------- +// [SECTION] STYLING +//----------------------------------------------------------------------------- + +ImGuiStyle& ImGui::GetStyle() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->Style; +} + +ImU32 ImGui::GetColorU32(ImGuiCol idx, float alpha_mul) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = style.Colors[idx]; + c.w *= style.Alpha * alpha_mul; + return ColorConvertFloat4ToU32(c); +} + +ImU32 ImGui::GetColorU32(const ImVec4& col) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = col; + c.w *= style.Alpha; + return ColorConvertFloat4ToU32(c); +} + +const ImVec4& ImGui::GetStyleColorVec4(ImGuiCol idx) +{ + ImGuiStyle& style = GImGui->Style; + return style.Colors[idx]; +} + +ImU32 ImGui::GetColorU32(ImU32 col) +{ + ImGuiStyle& style = GImGui->Style; + if (style.Alpha >= 1.0f) + return col; + ImU32 a = (col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT; + a = (ImU32)(a * style.Alpha); // We don't need to clamp 0..255 because Style.Alpha is in 0..1 range. + return (col & ~IM_COL32_A_MASK) | (a << IM_COL32_A_SHIFT); +} + +// FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32 +void ImGui::PushStyleColor(ImGuiCol idx, ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorStack.push_back(backup); + g.Style.Colors[idx] = ColorConvertU32ToFloat4(col); +} + +void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorStack.push_back(backup); + g.Style.Colors[idx] = col; +} + +void ImGui::PopStyleColor(int count) +{ + ImGuiContext& g = *GImGui; + if (g.ColorStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.ColorStack.Size > count, "Calling PopStyleColor() too many times: stack underflow."); + count = g.ColorStack.Size; + } + while (count > 0) + { + ImGuiColorMod& backup = g.ColorStack.back(); + g.Style.Colors[backup.Col] = backup.BackupValue; + g.ColorStack.pop_back(); + count--; + } +} + +struct ImGuiStyleVarInfo +{ + ImGuiDataType Type; + ImU32 Count; + ImU32 Offset; + void* GetVarPtr(ImGuiStyle* style) const { return (void*)((unsigned char*)style + Offset); } +}; + +static const ImGuiCol GWindowDockStyleColors[ImGuiWindowDockStyleCol_COUNT] = +{ + ImGuiCol_Text, ImGuiCol_Tab, ImGuiCol_TabHovered, ImGuiCol_TabActive, ImGuiCol_TabUnfocused, ImGuiCol_TabUnfocusedActive +}; + +static const ImGuiStyleVarInfo GStyleVarInfo[] = +{ + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, Alpha) }, // ImGuiStyleVar_Alpha + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, DisabledAlpha) }, // ImGuiStyleVar_DisabledAlpha + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowPadding) }, // ImGuiStyleVar_WindowPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowRounding) }, // ImGuiStyleVar_WindowRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowBorderSize) }, // ImGuiStyleVar_WindowBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowMinSize) }, // ImGuiStyleVar_WindowMinSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowTitleAlign) }, // ImGuiStyleVar_WindowTitleAlign + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildRounding) }, // ImGuiStyleVar_ChildRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildBorderSize) }, // ImGuiStyleVar_ChildBorderSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupRounding) }, // ImGuiStyleVar_PopupRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupBorderSize) }, // ImGuiStyleVar_PopupBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, FramePadding) }, // ImGuiStyleVar_FramePadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameRounding) }, // ImGuiStyleVar_FrameRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameBorderSize) }, // ImGuiStyleVar_FrameBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemSpacing) }, // ImGuiStyleVar_ItemSpacing + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemInnerSpacing) }, // ImGuiStyleVar_ItemInnerSpacing + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, IndentSpacing) }, // ImGuiStyleVar_IndentSpacing + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, CellPadding) }, // ImGuiStyleVar_CellPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarSize) }, // ImGuiStyleVar_ScrollbarSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarRounding) }, // ImGuiStyleVar_ScrollbarRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabMinSize) }, // ImGuiStyleVar_GrabMinSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabRounding) }, // ImGuiStyleVar_GrabRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, TabRounding) }, // ImGuiStyleVar_TabRounding + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ButtonTextAlign) }, // ImGuiStyleVar_ButtonTextAlign + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SelectableTextAlign) }, // ImGuiStyleVar_SelectableTextAlign +}; + +static const ImGuiStyleVarInfo* GetStyleVarInfo(ImGuiStyleVar idx) +{ + IM_ASSERT(idx >= 0 && idx < ImGuiStyleVar_COUNT); + IM_ASSERT(IM_ARRAYSIZE(GStyleVarInfo) == ImGuiStyleVar_COUNT); + return &GStyleVarInfo[idx]; +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, float val) +{ + const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1) + { + ImGuiContext& g = *GImGui; + float* pvar = (float*)var_info->GetVarPtr(&g.Style); + g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT(0 && "Called PushStyleVar() float variant but variable is not a float!"); +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val) +{ + const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 2) + { + ImGuiContext& g = *GImGui; + ImVec2* pvar = (ImVec2*)var_info->GetVarPtr(&g.Style); + g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT(0 && "Called PushStyleVar() ImVec2 variant but variable is not a ImVec2!"); +} + +void ImGui::PopStyleVar(int count) +{ + ImGuiContext& g = *GImGui; + if (g.StyleVarStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.StyleVarStack.Size > count, "Calling PopStyleVar() too many times: stack underflow."); + count = g.StyleVarStack.Size; + } + while (count > 0) + { + // We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it. + ImGuiStyleMod& backup = g.StyleVarStack.back(); + const ImGuiStyleVarInfo* info = GetStyleVarInfo(backup.VarIdx); + void* data = info->GetVarPtr(&g.Style); + if (info->Type == ImGuiDataType_Float && info->Count == 1) { ((float*)data)[0] = backup.BackupFloat[0]; } + else if (info->Type == ImGuiDataType_Float && info->Count == 2) { ((float*)data)[0] = backup.BackupFloat[0]; ((float*)data)[1] = backup.BackupFloat[1]; } + g.StyleVarStack.pop_back(); + count--; + } +} + +const char* ImGui::GetStyleColorName(ImGuiCol idx) +{ + // Create switch-case from enum with regexp: ImGuiCol_{.*}, --> case ImGuiCol_\1: return "\1"; + switch (idx) + { + case ImGuiCol_Text: return "Text"; + case ImGuiCol_TextDisabled: return "TextDisabled"; + case ImGuiCol_WindowBg: return "WindowBg"; + case ImGuiCol_ChildBg: return "ChildBg"; + case ImGuiCol_PopupBg: return "PopupBg"; + case ImGuiCol_Border: return "Border"; + case ImGuiCol_BorderShadow: return "BorderShadow"; + case ImGuiCol_FrameBg: return "FrameBg"; + case ImGuiCol_FrameBgHovered: return "FrameBgHovered"; + case ImGuiCol_FrameBgActive: return "FrameBgActive"; + case ImGuiCol_TitleBg: return "TitleBg"; + case ImGuiCol_TitleBgActive: return "TitleBgActive"; + case ImGuiCol_TitleBgCollapsed: return "TitleBgCollapsed"; + case ImGuiCol_MenuBarBg: return "MenuBarBg"; + case ImGuiCol_ScrollbarBg: return "ScrollbarBg"; + case ImGuiCol_ScrollbarGrab: return "ScrollbarGrab"; + case ImGuiCol_ScrollbarGrabHovered: return "ScrollbarGrabHovered"; + case ImGuiCol_ScrollbarGrabActive: return "ScrollbarGrabActive"; + case ImGuiCol_CheckMark: return "CheckMark"; + case ImGuiCol_SliderGrab: return "SliderGrab"; + case ImGuiCol_SliderGrabActive: return "SliderGrabActive"; + case ImGuiCol_Button: return "Button"; + case ImGuiCol_ButtonHovered: return "ButtonHovered"; + case ImGuiCol_ButtonActive: return "ButtonActive"; + case ImGuiCol_Header: return "Header"; + case ImGuiCol_HeaderHovered: return "HeaderHovered"; + case ImGuiCol_HeaderActive: return "HeaderActive"; + case ImGuiCol_Separator: return "Separator"; + case ImGuiCol_SeparatorHovered: return "SeparatorHovered"; + case ImGuiCol_SeparatorActive: return "SeparatorActive"; + case ImGuiCol_ResizeGrip: return "ResizeGrip"; + case ImGuiCol_ResizeGripHovered: return "ResizeGripHovered"; + case ImGuiCol_ResizeGripActive: return "ResizeGripActive"; + case ImGuiCol_Tab: return "Tab"; + case ImGuiCol_TabHovered: return "TabHovered"; + case ImGuiCol_TabActive: return "TabActive"; + case ImGuiCol_TabUnfocused: return "TabUnfocused"; + case ImGuiCol_TabUnfocusedActive: return "TabUnfocusedActive"; + case ImGuiCol_DockingPreview: return "DockingPreview"; + case ImGuiCol_DockingEmptyBg: return "DockingEmptyBg"; + case ImGuiCol_PlotLines: return "PlotLines"; + case ImGuiCol_PlotLinesHovered: return "PlotLinesHovered"; + case ImGuiCol_PlotHistogram: return "PlotHistogram"; + case ImGuiCol_PlotHistogramHovered: return "PlotHistogramHovered"; + case ImGuiCol_TableHeaderBg: return "TableHeaderBg"; + case ImGuiCol_TableBorderStrong: return "TableBorderStrong"; + case ImGuiCol_TableBorderLight: return "TableBorderLight"; + case ImGuiCol_TableRowBg: return "TableRowBg"; + case ImGuiCol_TableRowBgAlt: return "TableRowBgAlt"; + case ImGuiCol_TextSelectedBg: return "TextSelectedBg"; + case ImGuiCol_DragDropTarget: return "DragDropTarget"; + case ImGuiCol_NavHighlight: return "NavHighlight"; + case ImGuiCol_NavWindowingHighlight: return "NavWindowingHighlight"; + case ImGuiCol_NavWindowingDimBg: return "NavWindowingDimBg"; + case ImGuiCol_ModalWindowDimBg: return "ModalWindowDimBg"; + } + IM_ASSERT(0); + return "Unknown"; +} + + +//----------------------------------------------------------------------------- +// [SECTION] RENDER HELPERS +// Some of those (internal) functions are currently quite a legacy mess - their signature and behavior will change, +// we need a nicer separation between low-level functions and high-level functions relying on the ImGui context. +// Also see imgui_draw.cpp for some more which have been reworked to not rely on ImGui:: context. +//----------------------------------------------------------------------------- + +const char* ImGui::FindRenderedTextEnd(const char* text, const char* text_end) +{ + const char* text_display_end = text; + if (!text_end) + text_end = (const char*)-1; + + while (text_display_end < text_end && *text_display_end != '\0' && (text_display_end[0] != '#' || text_display_end[1] != '#')) + text_display_end++; + return text_display_end; +} + +// Internal ImGui functions to render text +// RenderText***() functions calls ImDrawList::AddText() calls ImBitmapFont::RenderText() +void ImGui::RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Hide anything after a '##' string + const char* text_display_end; + if (hide_text_after_hash) + { + text_display_end = FindRenderedTextEnd(text, text_end); + } + else + { + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + text_display_end = text_end; + } + + if (text != text_display_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_display_end); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_display_end); + } +} + +void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + + if (text != text_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_end); + } +} + +// Default clip_rect uses (pos_min,pos_max) +// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges) +void ImGui::RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_display_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Perform CPU side clipping for single clipped element to avoid using scissor state + ImVec2 pos = pos_min; + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_display_end, false, 0.0f); + + const ImVec2* clip_min = clip_rect ? &clip_rect->Min : &pos_min; + const ImVec2* clip_max = clip_rect ? &clip_rect->Max : &pos_max; + bool need_clipping = (pos.x + text_size.x >= clip_max->x) || (pos.y + text_size.y >= clip_max->y); + if (clip_rect) // If we had no explicit clipping rectangle then pos==clip_min + need_clipping |= (pos.x < clip_min->x) || (pos.y < clip_min->y); + + // Align whole block. We should defer that to the better rendering function when we'll have support for individual line alignment. + if (align.x > 0.0f) pos.x = ImMax(pos.x, pos.x + (pos_max.x - pos.x - text_size.x) * align.x); + if (align.y > 0.0f) pos.y = ImMax(pos.y, pos.y + (pos_max.y - pos.y - text_size.y) * align.y); + + // Render + if (need_clipping) + { + ImVec4 fine_clip_rect(clip_min->x, clip_min->y, clip_max->x, clip_max->y); + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, &fine_clip_rect); + } + else + { + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, NULL); + } +} + +void ImGui::RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Hide anything after a '##' string + const char* text_display_end = FindRenderedTextEnd(text, text_end); + const int text_len = (int)(text_display_end - text); + if (text_len == 0) + return; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + RenderTextClippedEx(window->DrawList, pos_min, pos_max, text, text_display_end, text_size_if_known, align, clip_rect); + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_display_end); +} + + +// Another overly complex function until we reorganize everything into a nice all-in-one helper. +// This is made more complex because we have dissociated the layout rectangle (pos_min..pos_max) which define _where_ the ellipsis is, from actual clipping of text and limit of the ellipsis display. +// This is because in the context of tabs we selectively hide part of the text when the Close Button appears, but we don't want the ellipsis to move. +void ImGui::RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end_full, const ImVec2* text_size_if_known) +{ + ImGuiContext& g = *GImGui; + if (text_end_full == NULL) + text_end_full = FindRenderedTextEnd(text); + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_end_full, false, 0.0f); + + //draw_list->AddLine(ImVec2(pos_max.x, pos_min.y - 4), ImVec2(pos_max.x, pos_max.y + 4), IM_COL32(0, 0, 255, 255)); + //draw_list->AddLine(ImVec2(ellipsis_max_x, pos_min.y-2), ImVec2(ellipsis_max_x, pos_max.y+2), IM_COL32(0, 255, 0, 255)); + //draw_list->AddLine(ImVec2(clip_max_x, pos_min.y), ImVec2(clip_max_x, pos_max.y), IM_COL32(255, 0, 0, 255)); + // FIXME: We could technically remove (last_glyph->AdvanceX - last_glyph->X1) from text_size.x here and save a few pixels. + if (text_size.x > pos_max.x - pos_min.x) + { + // Hello wo... + // | | | + // min max ellipsis_max + // <-> this is generally some padding value + + const ImFont* font = draw_list->_Data->Font; + const float font_size = draw_list->_Data->FontSize; + const char* text_end_ellipsis = NULL; + + ImWchar ellipsis_char = font->EllipsisChar; + int ellipsis_char_count = 1; + if (ellipsis_char == (ImWchar)-1) + { + ellipsis_char = font->DotChar; + ellipsis_char_count = 3; + } + const ImFontGlyph* glyph = font->FindGlyph(ellipsis_char); + + float ellipsis_glyph_width = glyph->X1; // Width of the glyph with no padding on either side + float ellipsis_total_width = ellipsis_glyph_width; // Full width of entire ellipsis + + if (ellipsis_char_count > 1) + { + // Full ellipsis size without free spacing after it. + const float spacing_between_dots = 1.0f * (draw_list->_Data->FontSize / font->FontSize); + ellipsis_glyph_width = glyph->X1 - glyph->X0 + spacing_between_dots; + ellipsis_total_width = ellipsis_glyph_width * (float)ellipsis_char_count - spacing_between_dots; + } + + // We can now claim the space between pos_max.x and ellipsis_max.x + const float text_avail_width = ImMax((ImMax(pos_max.x, ellipsis_max_x) - ellipsis_total_width) - pos_min.x, 1.0f); + float text_size_clipped_x = font->CalcTextSizeA(font_size, text_avail_width, 0.0f, text, text_end_full, &text_end_ellipsis).x; + if (text == text_end_ellipsis && text_end_ellipsis < text_end_full) + { + // Always display at least 1 character if there's no room for character + ellipsis + text_end_ellipsis = text + ImTextCountUtf8BytesFromChar(text, text_end_full); + text_size_clipped_x = font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text, text_end_ellipsis).x; + } + while (text_end_ellipsis > text && ImCharIsBlankA(text_end_ellipsis[-1])) + { + // Trim trailing space before ellipsis (FIXME: Supporting non-ascii blanks would be nice, for this we need a function to backtrack in UTF-8 text) + text_end_ellipsis--; + text_size_clipped_x -= font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text_end_ellipsis, text_end_ellipsis + 1).x; // Ascii blanks are always 1 byte + } + + // Render text, render ellipsis + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_ellipsis, &text_size, ImVec2(0.0f, 0.0f)); + float ellipsis_x = pos_min.x + text_size_clipped_x; + if (ellipsis_x + ellipsis_total_width <= ellipsis_max_x) + for (int i = 0; i < ellipsis_char_count; i++) + { + font->RenderChar(draw_list, font_size, ImVec2(ellipsis_x, pos_min.y), GetColorU32(ImGuiCol_Text), ellipsis_char); + ellipsis_x += ellipsis_glyph_width; + } + } + else + { + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_full, &text_size, ImVec2(0.0f, 0.0f)); + } + + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_end_full); +} + +// Render a rectangle shaped with optional rounding and borders +void ImGui::RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DrawList->AddRectFilled(p_min, p_max, fill_col, rounding); + const float border_size = g.Style.FrameBorderSize; + if (border && border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + } +} + +void ImGui::RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const float border_size = g.Style.FrameBorderSize; + if (border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + } +} + +void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags) +{ + ImGuiContext& g = *GImGui; + if (id != g.NavId) + return; + if (g.NavDisableHighlight && !(flags & ImGuiNavHighlightFlags_AlwaysDraw)) + return; + ImGuiWindow* window = g.CurrentWindow; + if (window->DC.NavHideHighlightOneFrame) + return; + + float rounding = (flags & ImGuiNavHighlightFlags_NoRounding) ? 0.0f : g.Style.FrameRounding; + ImRect display_rect = bb; + display_rect.ClipWith(window->ClipRect); + if (flags & ImGuiNavHighlightFlags_TypeDefault) + { + const float THICKNESS = 2.0f; + const float DISTANCE = 3.0f + THICKNESS * 0.5f; + display_rect.Expand(ImVec2(DISTANCE, DISTANCE)); + bool fully_visible = window->ClipRect.Contains(display_rect); + if (!fully_visible) + window->DrawList->PushClipRect(display_rect.Min, display_rect.Max); + window->DrawList->AddRect(display_rect.Min + ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), display_rect.Max - ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), GetColorU32(ImGuiCol_NavHighlight), rounding, 0, THICKNESS); + if (!fully_visible) + window->DrawList->PopClipRect(); + } + if (flags & ImGuiNavHighlightFlags_TypeThin) + { + window->DrawList->AddRect(display_rect.Min, display_rect.Max, GetColorU32(ImGuiCol_NavHighlight), rounding, 0, 1.0f); + } +} + +void ImGui::RenderMouseCursor(ImVec2 base_pos, float base_scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); + ImFontAtlas* font_atlas = g.DrawListSharedData.Font->ContainerAtlas; + for (int n = 0; n < g.Viewports.Size; n++) + { + // We scale cursor with current viewport/monitor, however Windows 10 for its own hardware cursor seems to be using a different scale factor. + ImVec2 offset, size, uv[4]; + if (!font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2])) + continue; + ImGuiViewportP* viewport = g.Viewports[n]; + const ImVec2 pos = base_pos - offset; + const float scale = base_scale * viewport->DpiScale; + if (!viewport->GetMainRect().Overlaps(ImRect(pos, pos + ImVec2(size.x + 2, size.y + 2) * scale))) + continue; + ImDrawList* draw_list = GetForegroundDrawList(viewport); + ImTextureID tex_id = font_atlas->TexID; + draw_list->PushTextureID(tex_id); + draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill); + draw_list->PopTextureID(); + } +} + + +//----------------------------------------------------------------------------- +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +//----------------------------------------------------------------------------- + +// ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods +ImGuiWindow::ImGuiWindow(ImGuiContext* context, const char* name) : DrawListInst(NULL) +{ + memset(this, 0, sizeof(*this)); + Name = ImStrdup(name); + NameBufLen = (int)strlen(name) + 1; + ID = ImHashStr(name); + IDStack.push_back(ID); + ViewportAllowPlatformMonitorExtend = -1; + ViewportPos = ImVec2(FLT_MAX, FLT_MAX); + MoveId = GetID("#MOVE"); + TabId = GetID("#TAB"); + ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f); + AutoFitFramesX = AutoFitFramesY = -1; + AutoPosLastDirection = ImGuiDir_None; + SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = SetWindowDockAllowFlags = ImGuiCond_Always | ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing; + SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX); + LastFrameActive = -1; + LastFrameJustFocused = -1; + LastTimeActive = -1.0f; + FontWindowScale = FontDpiScale = 1.0f; + SettingsOffset = -1; + DockOrder = -1; + DrawList = &DrawListInst; + DrawList->_Data = &context->DrawListSharedData; + DrawList->_OwnerName = Name; + IM_PLACEMENT_NEW(&WindowClass) ImGuiWindowClass(); +} + +ImGuiWindow::~ImGuiWindow() +{ + IM_ASSERT(DrawList == &DrawListInst); + IM_DELETE(Name); + ColumnsStorage.clear_destruct(); +} + +ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); + return id; +} + +ImGuiID ImGuiWindow::GetID(const void* ptr) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_Pointer, ptr, NULL); + return id; +} + +ImGuiID ImGuiWindow::GetID(int n) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&n, sizeof(n), seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_S32, (void*)(intptr_t)n, NULL); + return id; +} + +// This is only used in rare/specific situations to manufacture an ID out of nowhere. +ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs) +{ + ImGuiID seed = IDStack.back(); + ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs); + ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed); + return id; +} + +static void SetCurrentWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow = window; + g.CurrentTable = window && window->DC.CurrentTableIdx != -1 ? g.Tables.GetByIndex(window->DC.CurrentTableIdx) : NULL; + if (window) + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); +} + +void ImGui::GcCompactTransientMiscBuffers() +{ + ImGuiContext& g = *GImGui; + g.ItemFlagsStack.clear(); + g.GroupStack.clear(); + TableGcCompactSettings(); +} + +// Free up/compact internal window buffers, we can use this when a window becomes unused. +// Not freed: +// - ImGuiWindow, ImGuiWindowSettings, Name, StateStorage, ColumnsStorage (may hold useful data) +// This should have no noticeable visual effect. When the window reappear however, expect new allocation/buffer growth/copy cost. +void ImGui::GcCompactTransientWindowBuffers(ImGuiWindow* window) +{ + window->MemoryCompacted = true; + window->MemoryDrawListIdxCapacity = window->DrawList->IdxBuffer.Capacity; + window->MemoryDrawListVtxCapacity = window->DrawList->VtxBuffer.Capacity; + window->IDStack.clear(); + window->DrawList->_ClearFreeMemory(); + window->DC.ChildWindows.clear(); + window->DC.ItemWidthStack.clear(); + window->DC.TextWrapPosStack.clear(); +} + +void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window) +{ + // We stored capacity of the ImDrawList buffer to reduce growth-caused allocation/copy when awakening. + // The other buffers tends to amortize much faster. + window->MemoryCompacted = false; + window->DrawList->IdxBuffer.reserve(window->MemoryDrawListIdxCapacity); + window->DrawList->VtxBuffer.reserve(window->MemoryDrawListVtxCapacity); + window->MemoryDrawListIdxCapacity = window->MemoryDrawListVtxCapacity = 0; +} + +void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + // While most behaved code would make an effort to not steal active id during window move/drag operations, + // we at least need to be resilient to it. Cancelling the move is rather aggressive and users of 'master' branch + // may prefer the weird ill-defined half working situation ('docking' did assert), so may need to rework that. + if (g.MovingWindow != NULL && g.ActiveId == g.MovingWindow->MoveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() cancel MovingWindow\n"); + g.MovingWindow = NULL; + } + + // Set active id + g.ActiveIdIsJustActivated = (g.ActiveId != id); + if (g.ActiveIdIsJustActivated) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() old:0x%08X (window \"%s\") -> new:0x%08X (window \"%s\")\n", g.ActiveId, g.ActiveIdWindow ? g.ActiveIdWindow->Name : "", id, window ? window->Name : ""); + g.ActiveIdTimer = 0.0f; + g.ActiveIdHasBeenPressedBefore = false; + g.ActiveIdHasBeenEditedBefore = false; + g.ActiveIdMouseButton = -1; + if (id != 0) + { + g.LastActiveId = id; + g.LastActiveIdTimer = 0.0f; + } + } + g.ActiveId = id; + g.ActiveIdAllowOverlap = false; + g.ActiveIdNoClearOnFocusLoss = false; + g.ActiveIdWindow = window; + g.ActiveIdHasBeenEditedThisFrame = false; + if (id) + { + g.ActiveIdIsAlive = id; + g.ActiveIdSource = (g.NavActivateId == id || g.NavActivateInputId == id || g.NavJustMovedToId == id) ? (ImGuiInputSource)ImGuiInputSource_Nav : ImGuiInputSource_Mouse; + } + + // Clear declaration of inputs claimed by the widget + // (Please note that this is WIP and not all keys/inputs are thoroughly declared by all widgets yet) + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + g.ActiveIdUsingNavInputMask = 0x00; +#endif +} + +void ImGui::ClearActiveID() +{ + SetActiveID(0, NULL); // g.ActiveId = 0; +} + +void ImGui::SetHoveredID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.HoveredId = id; + g.HoveredIdAllowOverlap = false; + if (id != 0 && g.HoveredIdPreviousFrame != id) + g.HoveredIdTimer = g.HoveredIdNotActiveTimer = 0.0f; +} + +ImGuiID ImGui::GetHoveredID() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId ? g.HoveredId : g.HoveredIdPreviousFrame; +} + +// This is called by ItemAdd(). +// Code not using ItemAdd() may need to call this manually otherwise ActiveId will be cleared. In IMGUI_VERSION_NUM < 18717 this was called by GetID(). +void ImGui::KeepAliveID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + g.ActiveIdIsAlive = id; + if (g.ActiveIdPreviousFrame == id) + g.ActiveIdPreviousFrameIsAlive = true; +} + +void ImGui::MarkItemEdited(ImGuiID id) +{ + // This marking is solely to be able to provide info for IsItemDeactivatedAfterEdit(). + // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need to fill the data. + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId == id || g.ActiveId == 0 || g.DragDropActive); + IM_UNUSED(id); // Avoid unused variable warnings when asserts are compiled out. + //IM_ASSERT(g.CurrentWindow->DC.LastItemId == id); + g.ActiveIdHasBeenEditedThisFrame = true; + g.ActiveIdHasBeenEditedBefore = true; + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited; +} + +static inline bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags) +{ + // An active popup disable hovering on other windows (apart from its own children) + // FIXME-OPT: This could be cached/stored within the window. + ImGuiContext& g = *GImGui; + if (g.NavWindow) + if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindowDockTree) + if (focused_root_window->WasActive && focused_root_window != window->RootWindowDockTree) + { + // For the purpose of those flags we differentiate "standard popup" from "modal popup" + // NB: The 'else' is important because Modal windows are also Popups. + bool want_inhibit = false; + if (focused_root_window->Flags & ImGuiWindowFlags_Modal) + want_inhibit = true; + else if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + want_inhibit = true; + + // Inhibit hover unless the window is within the stack of our modal/popup + if (want_inhibit) + if (!ImGui::IsWindowWithinBeginStackOf(window->RootWindow, focused_root_window)) + return false; + } + + // Filter by viewport + if (window->Viewport != g.MouseViewport) + if (g.MovingWindow == NULL || window->RootWindowDockTree != g.MovingWindow->RootWindowDockTree) + return false; + + return true; +} + +// This is roughly matching the behavior of internal-facing ItemHoverable() +// - we allow hovering to be true when ActiveId==window->MoveID, so that clicking on non-interactive items such as a Text() item still returns true with IsItemHovered() +// - this should work even for non-interactive items that have no ID, so we cannot use LastItemId +bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.NavDisableMouseHover && !g.NavDisableHighlight && !(flags & ImGuiHoveredFlags_NoNavOverride)) + { + if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) + return false; + if (!IsItemFocused()) + return false; + } + else + { + // Test for bounding box overlap, as updated as ItemAdd() + ImGuiItemStatusFlags status_flags = g.LastItemData.StatusFlags; + if (!(status_flags & ImGuiItemStatusFlags_HoveredRect)) + return false; + IM_ASSERT((flags & (ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_NoPopupHierarchy | ImGuiHoveredFlags_DockHierarchy)) == 0); // Flags not supported by this function + + // Done with rectangle culling so we can perform heavier checks now + // Test if we are hovering the right window (our window could be behind another window) + // [2021/03/02] Reworked / reverted the revert, finally. Note we want e.g. BeginGroup/ItemAdd/EndGroup to work as well. (#3851) + // [2017/10/16] Reverted commit 344d48be3 and testing RootWindow instead. I believe it is correct to NOT test for RootWindow but this leaves us unable + // to use IsItemHovered() after EndChild() itself. Until a solution is found I believe reverting to the test from 2017/09/27 is safe since this was + // the test that has been running for a long while. + if (g.HoveredWindow != window && (status_flags & ImGuiItemStatusFlags_HoveredWindow) == 0) + if ((flags & ImGuiHoveredFlags_AllowWhenOverlapped) == 0) + return false; + + // Test if another item is active (e.g. being dragged) + if ((flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) == 0) + if (g.ActiveId != 0 && g.ActiveId != g.LastItemData.ID && !g.ActiveIdAllowOverlap) + if (g.ActiveId != window->MoveId && g.ActiveId != window->TabId) + return false; + + // Test if interactions on this window are blocked by an active popup or modal. + // The ImGuiHoveredFlags_AllowWhenBlockedByPopup flag will be tested here. + if (!IsWindowContentHoverable(window, flags) && !(g.LastItemData.InFlags & ImGuiItemFlags_NoWindowHoverableCheck)) + return false; + + // Test if the item is disabled + if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) + return false; + + // Special handling for calling after Begin() which represent the title bar or tab. + // When the window is skipped/collapsed (SkipItems==true) that last item (always ->MoveId submitted by Begin) + // will never be overwritten so we need to detect the case. + if (g.LastItemData.ID == window->MoveId && window->WriteAccessed) + return false; + } + + // Handle hover delay + // (some ideas: https://www.nngroup.com/articles/timing-exposing-content) + float delay; + if (flags & ImGuiHoveredFlags_DelayNormal) + delay = g.IO.HoverDelayNormal; + else if (flags & ImGuiHoveredFlags_DelayShort) + delay = g.IO.HoverDelayShort; + else + delay = 0.0f; + if (delay > 0.0f) + { + ImGuiID hover_delay_id = (g.LastItemData.ID != 0) ? g.LastItemData.ID : window->GetIDFromRectangle(g.LastItemData.Rect); + if ((flags & ImGuiHoveredFlags_NoSharedDelay) && (g.HoverDelayIdPreviousFrame != hover_delay_id)) + g.HoverDelayTimer = 0.0f; + g.HoverDelayId = hover_delay_id; + return g.HoverDelayTimer >= delay; + } + + return true; +} + +// Internal facing ItemHoverable() used when submitting widgets. Differs slightly from IsItemHovered(). +bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (g.HoveredId != 0 && g.HoveredId != id && !g.HoveredIdAllowOverlap) + return false; + + ImGuiWindow* window = g.CurrentWindow; + if (g.HoveredWindow != window) + return false; + if (g.ActiveId != 0 && g.ActiveId != id && !g.ActiveIdAllowOverlap) + return false; + if (!IsMouseHoveringRect(bb.Min, bb.Max)) + return false; + + // Done with rectangle culling so we can perform heavier checks now. + ImGuiItemFlags item_flags = (g.LastItemData.ID == id ? g.LastItemData.InFlags : g.CurrentItemFlags); + if (!(item_flags & ImGuiItemFlags_NoWindowHoverableCheck) && !IsWindowContentHoverable(window, ImGuiHoveredFlags_None)) + { + g.HoveredIdDisabled = true; + return false; + } + + // We exceptionally allow this function to be called with id==0 to allow using it for easy high-level + // hover test in widgets code. We could also decide to split this function is two. + if (id != 0) + SetHoveredID(id); + + // When disabled we'll return false but still set HoveredId + if (item_flags & ImGuiItemFlags_Disabled) + { + // Release active id if turning disabled + if (g.ActiveId == id) + ClearActiveID(); + g.HoveredIdDisabled = true; + return false; + } + + if (id != 0) + { + // [DEBUG] Item Picker tool! + // We perform the check here because SetHoveredID() is not frequently called (1~ time a frame), making + // the cost of this tool near-zero. We can get slightly better call-stack and support picking non-hovered + // items if we performed the test in ItemAdd(), but that would incur a small runtime cost. + if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id) + GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255)); + if (g.DebugItemPickerBreakId == id) + IM_DEBUG_BREAK(); + } + + if (g.NavDisableMouseHover) + return false; + + return true; +} + +// FIXME: This is inlined/duplicated in ItemAdd() +bool ImGui::IsClippedEx(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!bb.Overlaps(window->ClipRect)) + if (id == 0 || (id != g.ActiveId && id != g.NavId)) + if (!g.LogEnabled) + return true; + return false; +} + +// This is also inlined in ItemAdd() +// Note: if ImGuiItemStatusFlags_HasDisplayRect is set, user needs to set window->DC.LastItemDisplayRect! +void ImGui::SetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags item_flags, const ImRect& item_rect) +{ + ImGuiContext& g = *GImGui; + g.LastItemData.ID = item_id; + g.LastItemData.InFlags = in_flags; + g.LastItemData.StatusFlags = item_flags; + g.LastItemData.Rect = item_rect; +} + +float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) +{ + if (wrap_pos_x < 0.0f) + return 0.0f; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (wrap_pos_x == 0.0f) + { + // We could decide to setup a default wrapping max point for auto-resizing windows, + // or have auto-wrap (with unspecified wrapping pos) behave as a ContentSize extending function? + //if (window->Hidden && (window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) + // wrap_pos_x = ImMax(window->WorkRect.Min.x + g.FontSize * 10.0f, window->WorkRect.Max.x); + //else + wrap_pos_x = window->WorkRect.Max.x; + } + else if (wrap_pos_x > 0.0f) + { + wrap_pos_x += window->Pos.x - window->Scroll.x; // wrap_pos_x is provided is window local space + } + + return ImMax(wrap_pos_x - pos.x, 1.0f); +} + +// IM_ALLOC() == ImGui::MemAlloc() +void* ImGui::MemAlloc(size_t size) +{ + if (ImGuiContext* ctx = GImGui) + ctx->IO.MetricsActiveAllocations++; + return (*GImAllocatorAllocFunc)(size, GImAllocatorUserData); +} + +// IM_FREE() == ImGui::MemFree() +void ImGui::MemFree(void* ptr) +{ + if (ptr) + if (ImGuiContext* ctx = GImGui) + ctx->IO.MetricsActiveAllocations--; + return (*GImAllocatorFreeFunc)(ptr, GImAllocatorUserData); +} + +const char* ImGui::GetClipboardText() +{ + ImGuiContext& g = *GImGui; + return g.IO.GetClipboardTextFn ? g.IO.GetClipboardTextFn(g.IO.ClipboardUserData) : ""; +} + +void ImGui::SetClipboardText(const char* text) +{ + ImGuiContext& g = *GImGui; + if (g.IO.SetClipboardTextFn) + g.IO.SetClipboardTextFn(g.IO.ClipboardUserData, text); +} + +const char* ImGui::GetVersion() +{ + return IMGUI_VERSION; +} + +// Internal state access - if you want to share Dear ImGui state between modules (e.g. DLL) or allocate it yourself +// Note that we still point to some static data and members (such as GFontAtlas), so the state instance you end up using will point to the static data within its module +ImGuiContext* ImGui::GetCurrentContext() +{ + return GImGui; +} + +void ImGui::SetCurrentContext(ImGuiContext* ctx) +{ +#ifdef IMGUI_SET_CURRENT_CONTEXT_FUNC + IMGUI_SET_CURRENT_CONTEXT_FUNC(ctx); // For custom thread-based hackery you may want to have control over this. +#else + GImGui = ctx; +#endif +} + +void ImGui::SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data) +{ + GImAllocatorAllocFunc = alloc_func; + GImAllocatorFreeFunc = free_func; + GImAllocatorUserData = user_data; +} + +// This is provided to facilitate copying allocators from one static/DLL boundary to another (e.g. retrieve default allocator of your executable address space) +void ImGui::GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data) +{ + *p_alloc_func = GImAllocatorAllocFunc; + *p_free_func = GImAllocatorFreeFunc; + *p_user_data = GImAllocatorUserData; +} + +ImGuiContext* ImGui::CreateContext(ImFontAtlas* shared_font_atlas) +{ + ImGuiContext* prev_ctx = GetCurrentContext(); + ImGuiContext* ctx = IM_NEW(ImGuiContext)(shared_font_atlas); + SetCurrentContext(ctx); + Initialize(); + if (prev_ctx != NULL) + SetCurrentContext(prev_ctx); // Restore previous context if any, else keep new one. + return ctx; +} + +void ImGui::DestroyContext(ImGuiContext* ctx) +{ + ImGuiContext* prev_ctx = GetCurrentContext(); + if (ctx == NULL) //-V1051 + ctx = prev_ctx; + SetCurrentContext(ctx); + Shutdown(); + SetCurrentContext((prev_ctx != ctx) ? prev_ctx : NULL); + IM_DELETE(ctx); +} + +// No specific ordering/dependency support, will see as needed +ImGuiID ImGui::AddContextHook(ImGuiContext* ctx, const ImGuiContextHook* hook) +{ + ImGuiContext& g = *ctx; + IM_ASSERT(hook->Callback != NULL && hook->HookId == 0 && hook->Type != ImGuiContextHookType_PendingRemoval_); + g.Hooks.push_back(*hook); + g.Hooks.back().HookId = ++g.HookIdNext; + return g.HookIdNext; +} + +// Deferred removal, avoiding issue with changing vector while iterating it +void ImGui::RemoveContextHook(ImGuiContext* ctx, ImGuiID hook_id) +{ + ImGuiContext& g = *ctx; + IM_ASSERT(hook_id != 0); + for (int n = 0; n < g.Hooks.Size; n++) + if (g.Hooks[n].HookId == hook_id) + g.Hooks[n].Type = ImGuiContextHookType_PendingRemoval_; +} + +// Call context hooks (used by e.g. test engine) +// We assume a small number of hooks so all stored in same array +void ImGui::CallContextHooks(ImGuiContext* ctx, ImGuiContextHookType hook_type) +{ + ImGuiContext& g = *ctx; + for (int n = 0; n < g.Hooks.Size; n++) + if (g.Hooks[n].Type == hook_type) + g.Hooks[n].Callback(&g, &g.Hooks[n]); +} + +ImGuiIO& ImGui::GetIO() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->IO; +} + +ImGuiPlatformIO& ImGui::GetPlatformIO() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() or ImGui::SetCurrentContext()?"); + return GImGui->PlatformIO; +} + +// Pass this to your backend rendering function! Valid after Render() and until the next call to NewFrame() +ImDrawData* ImGui::GetDrawData() +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = g.Viewports[0]; + return viewport->DrawDataP.Valid ? &viewport->DrawDataP : NULL; +} + +double ImGui::GetTime() +{ + return GImGui->Time; +} + +int ImGui::GetFrameCount() +{ + return GImGui->FrameCount; +} + +static ImDrawList* GetViewportDrawList(ImGuiViewportP* viewport, size_t drawlist_no, const char* drawlist_name) +{ + // Create the draw list on demand, because they are not frequently used for all viewports + ImGuiContext& g = *GImGui; + IM_ASSERT(drawlist_no < IM_ARRAYSIZE(viewport->DrawLists)); + ImDrawList* draw_list = viewport->DrawLists[drawlist_no]; + if (draw_list == NULL) + { + draw_list = IM_NEW(ImDrawList)(&g.DrawListSharedData); + draw_list->_OwnerName = drawlist_name; + viewport->DrawLists[drawlist_no] = draw_list; + } + + // Our ImDrawList system requires that there is always a command + if (viewport->DrawListsLastFrame[drawlist_no] != g.FrameCount) + { + draw_list->_ResetForNewFrame(); + draw_list->PushTextureID(g.IO.Fonts->TexID); + draw_list->PushClipRect(viewport->Pos, viewport->Pos + viewport->Size, false); + viewport->DrawListsLastFrame[drawlist_no] = g.FrameCount; + } + return draw_list; +} + +ImDrawList* ImGui::GetBackgroundDrawList(ImGuiViewport* viewport) +{ + return GetViewportDrawList((ImGuiViewportP*)viewport, 0, "##Background"); +} + +ImDrawList* ImGui::GetBackgroundDrawList() +{ + ImGuiContext& g = *GImGui; + return GetBackgroundDrawList(g.CurrentWindow->Viewport); +} + +ImDrawList* ImGui::GetForegroundDrawList(ImGuiViewport* viewport) +{ + return GetViewportDrawList((ImGuiViewportP*)viewport, 1, "##Foreground"); +} + +ImDrawList* ImGui::GetForegroundDrawList() +{ + ImGuiContext& g = *GImGui; + return GetForegroundDrawList(g.CurrentWindow->Viewport); +} + +ImDrawListSharedData* ImGui::GetDrawListSharedData() +{ + return &GImGui->DrawListSharedData; +} + +void ImGui::StartMouseMovingWindow(ImGuiWindow* window) +{ + // Set ActiveId even if the _NoMove flag is set. Without it, dragging away from a window with _NoMove would activate hover on other windows. + // We _also_ call this when clicking in a window empty space when io.ConfigWindowsMoveFromTitleBarOnly is set, but clear g.MovingWindow afterward. + // This is because we want ActiveId to be set even when the window is not permitted to move. + ImGuiContext& g = *GImGui; + FocusWindow(window); + SetActiveID(window->MoveId, window); + g.NavDisableHighlight = true; + g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - window->RootWindowDockTree->Pos; + g.ActiveIdNoClearOnFocusLoss = true; + SetActiveIdUsingAllKeyboardKeys(); + + bool can_move_window = true; + if ((window->Flags & ImGuiWindowFlags_NoMove) || (window->RootWindowDockTree->Flags & ImGuiWindowFlags_NoMove)) + can_move_window = false; + if (ImGuiDockNode* node = window->DockNodeAsHost) + if (node->VisibleWindow && (node->VisibleWindow->Flags & ImGuiWindowFlags_NoMove)) + can_move_window = false; + if (can_move_window) + g.MovingWindow = window; +} + +// We use 'undock_floating_node == false' when dragging from title bar to allow moving groups of floating nodes without undocking them. +// - undock_floating_node == true: when dragging from a floating node within a hierarchy, always undock the node. +// - undock_floating_node == false: when dragging from a floating node within a hierarchy, move root window. +void ImGui::StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock_floating_node) +{ + ImGuiContext& g = *GImGui; + bool can_undock_node = false; + if (node != NULL && node->VisibleWindow && (node->VisibleWindow->Flags & ImGuiWindowFlags_NoMove) == 0) + { + // Can undock if: + // - part of a floating node hierarchy with more than one visible node (if only one is visible, we'll just move the whole hierarchy) + // - part of a dockspace node hierarchy (trivia: undocking from a fixed/central node will create a new node and copy windows) + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + if (root_node->OnlyNodeWithWindows != node || root_node->CentralNode != NULL) // -V1051 PVS-Studio thinks node should be root_node and is wrong about that. + if (undock_floating_node || root_node->IsDockSpace()) + can_undock_node = true; + } + + const bool clicked = IsMouseClicked(0); + const bool dragging = IsMouseDragging(0, g.IO.MouseDragThreshold * 1.70f); + if (can_undock_node && dragging) + DockContextQueueUndockNode(&g, node); // Will lead to DockNodeStartMouseMovingWindow() -> StartMouseMovingWindow() being called next frame + else if (!can_undock_node && (clicked || dragging) && g.MovingWindow != window) + StartMouseMovingWindow(window); +} + +// Handle mouse moving window +// Note: moving window with the navigation keys (Square + d-pad / CTRL+TAB + Arrows) are processed in NavUpdateWindowing() +// FIXME: We don't have strong guarantee that g.MovingWindow stay synched with g.ActiveId == g.MovingWindow->MoveId. +// This is currently enforced by the fact that BeginDragDropSource() is setting all g.ActiveIdUsingXXXX flags to inhibit navigation inputs, +// but if we should more thoroughly test cases where g.ActiveId or g.MovingWindow gets changed and not the other. +void ImGui::UpdateMouseMovingWindowNewFrame() +{ + ImGuiContext& g = *GImGui; + if (g.MovingWindow != NULL) + { + // We actually want to move the root window. g.MovingWindow == window we clicked on (could be a child window). + // We track it to preserve Focus and so that generally ActiveIdWindow == MovingWindow and ActiveId == MovingWindow->MoveId for consistency. + KeepAliveID(g.ActiveId); + IM_ASSERT(g.MovingWindow && g.MovingWindow->RootWindowDockTree); + ImGuiWindow* moving_window = g.MovingWindow->RootWindowDockTree; + + // When a window stop being submitted while being dragged, it may will its viewport until next Begin() + const bool window_disappared = ((!moving_window->WasActive && !moving_window->Active) || moving_window->Viewport == NULL); + if (g.IO.MouseDown[0] && IsMousePosValid(&g.IO.MousePos) && !window_disappared) + { + ImVec2 pos = g.IO.MousePos - g.ActiveIdClickOffset; + if (moving_window->Pos.x != pos.x || moving_window->Pos.y != pos.y) + { + SetWindowPos(moving_window, pos, ImGuiCond_Always); + if (moving_window->ViewportOwned) // Synchronize viewport immediately because some overlays may relies on clipping rectangle before we Begin() into the window. + { + moving_window->Viewport->Pos = pos; + moving_window->Viewport->UpdateWorkRect(); + } + } + FocusWindow(g.MovingWindow); + } + else + { + if (!window_disappared) + { + // Try to merge the window back into the main viewport. + // This works because MouseViewport should be != MovingWindow->Viewport on release (as per code in UpdateViewports) + if (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) + UpdateTryMergeWindowIntoHostViewport(moving_window, g.MouseViewport); + + // Restore the mouse viewport so that we don't hover the viewport _under_ the moved window during the frame we released the mouse button. + if (!IsDragDropPayloadBeingAccepted()) + g.MouseViewport = moving_window->Viewport; + + // Clear the NoInput window flag set by the Viewport system + moving_window->Viewport->Flags &= ~ImGuiViewportFlags_NoInputs; // FIXME-VIEWPORT: Test engine managed to crash here because Viewport was NULL. + } + + g.MovingWindow = NULL; + ClearActiveID(); + } + } + else + { + // When clicking/dragging from a window that has the _NoMove flag, we still set the ActiveId in order to prevent hovering others. + if (g.ActiveIdWindow && g.ActiveIdWindow->MoveId == g.ActiveId) + { + KeepAliveID(g.ActiveId); + if (!g.IO.MouseDown[0]) + ClearActiveID(); + } + } +} + +// Initiate moving window when clicking on empty space or title bar. +// Handle left-click and right-click focus. +void ImGui::UpdateMouseMovingWindowEndFrame() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId != 0 || g.HoveredId != 0) + return; + + // Unless we just made a window/popup appear + if (g.NavWindow && g.NavWindow->Appearing) + return; + + // Click on empty space to focus window and start moving + // (after we're done with all our widgets, so e.g. clicking on docking tab-bar which have set HoveredId already and not get us here!) + if (g.IO.MouseClicked[0]) + { + // Handle the edge case of a popup being closed while clicking in its empty space. + // If we try to focus it, FocusWindow() > ClosePopupsOverWindow() will accidentally close any parent popups because they are not linked together any more. + ImGuiWindow* root_window = g.HoveredWindow ? g.HoveredWindow->RootWindow : NULL; + const bool is_closed_popup = root_window && (root_window->Flags & ImGuiWindowFlags_Popup) && !IsPopupOpen(root_window->PopupId, ImGuiPopupFlags_AnyPopupLevel); + + if (root_window != NULL && !is_closed_popup) + { + StartMouseMovingWindow(g.HoveredWindow); //-V595 + + // Cancel moving if clicked outside of title bar + if (g.IO.ConfigWindowsMoveFromTitleBarOnly) + if (!(root_window->Flags & ImGuiWindowFlags_NoTitleBar) || root_window->DockIsActive) + if (!root_window->TitleBarRect().Contains(g.IO.MouseClickedPos[0])) + g.MovingWindow = NULL; + + // Cancel moving if clicked over an item which was disabled or inhibited by popups (note that we know HoveredId == 0 already) + if (g.HoveredIdDisabled) + g.MovingWindow = NULL; + } + else if (root_window == NULL && g.NavWindow != NULL && GetTopMostPopupModal() == NULL) + { + // Clicking on void disable focus + FocusWindow(NULL); + } + } + + // With right mouse button we close popups without changing focus based on where the mouse is aimed + // Instead, focus will be restored to the window under the bottom-most closed popup. + // (The left mouse button path calls FocusWindow on the hovered window, which will lead NewFrame->ClosePopupsOverWindow to trigger) + if (g.IO.MouseClicked[1]) + { + // Find the top-most window between HoveredWindow and the top-most Modal Window. + // This is where we can trim the popup stack. + ImGuiWindow* modal = GetTopMostPopupModal(); + bool hovered_window_above_modal = g.HoveredWindow && (modal == NULL || IsWindowAbove(g.HoveredWindow, modal)); + ClosePopupsOverWindow(hovered_window_above_modal ? g.HoveredWindow : modal, true); + } +} + +// This is called during NewFrame()->UpdateViewportsNewFrame() only. +// Need to keep in sync with SetWindowPos() +static void TranslateWindow(ImGuiWindow* window, const ImVec2& delta) +{ + window->Pos += delta; + window->ClipRect.Translate(delta); + window->OuterRectClipped.Translate(delta); + window->InnerRect.Translate(delta); + window->DC.CursorPos += delta; + window->DC.CursorStartPos += delta; + window->DC.CursorMaxPos += delta; + window->DC.IdealMaxPos += delta; +} + +static void ScaleWindow(ImGuiWindow* window, float scale) +{ + ImVec2 origin = window->Viewport->Pos; + window->Pos = ImFloor((window->Pos - origin) * scale + origin); + window->Size = ImFloor(window->Size * scale); + window->SizeFull = ImFloor(window->SizeFull * scale); + window->ContentSize = ImFloor(window->ContentSize * scale); +} + +static bool IsWindowActiveAndVisible(ImGuiWindow* window) +{ + return (window->Active) && (!window->Hidden); +} + +static void UpdateAliasKey(ImGuiKey key, bool v, float analog_value) +{ + IM_ASSERT(ImGui::IsAliasKey(key)); + ImGuiKeyData* key_data = ImGui::GetKeyData(key); + key_data->Down = v; + key_data->AnalogValue = analog_value; +} + +// Rewrite routing data buffers to strip old entries + sort by key to make queries not touch scattered data. +// Entries D,A,B,B,A,C,B --> A,A,B,B,B,C,D +// Index A:1 B:2 C:5 D:0 --> A:0 B:2 C:5 D:6 +// See 'Metrics->Key Owners & Shortcut Routing' to visualize the result of that operation. +static void UpdateKeyRoutingTable(ImGuiKeyRoutingTable* rt) +{ + ImGuiContext& g = *GImGui; + rt->EntriesNext.resize(0); + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + const int new_routing_start_idx = rt->EntriesNext.Size; + ImGuiKeyRoutingData* routing_entry; + for (int old_routing_idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; old_routing_idx != -1; old_routing_idx = routing_entry->NextEntryIndex) + { + routing_entry = &rt->Entries[old_routing_idx]; + routing_entry->RoutingCurr = routing_entry->RoutingNext; // Update entry + routing_entry->RoutingNext = ImGuiKeyOwner_None; + routing_entry->RoutingNextScore = 255; + if (routing_entry->RoutingCurr == ImGuiKeyOwner_None) + continue; + rt->EntriesNext.push_back(*routing_entry); // Write alive ones into new buffer + + // Apply routing to owner if there's no owner already (RoutingCurr == None at this point) + if (routing_entry->Mods == g.IO.KeyMods) + { + ImGuiKeyOwnerData* owner_data = ImGui::GetKeyOwnerData(key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + owner_data->OwnerCurr = routing_entry->RoutingCurr; + } + } + + // Rewrite linked-list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = (ImGuiKeyRoutingIndex)(new_routing_start_idx < rt->EntriesNext.Size ? new_routing_start_idx : -1); + for (int n = new_routing_start_idx; n < rt->EntriesNext.Size; n++) + rt->EntriesNext[n].NextEntryIndex = (ImGuiKeyRoutingIndex)((n + 1 < rt->EntriesNext.Size) ? n + 1 : -1); + } + rt->Entries.swap(rt->EntriesNext); // Swap new and old indexes +} + +// [Internal] Do not use directly (should read io.KeyMods instead) +static ImGuiKeyChord GetMergedModsFromBools() +{ + ImGuiContext& g = *GImGui; + ImGuiKeyChord key_chord = 0; + if (g.IO.KeyCtrl) { key_chord |= ImGuiMod_Ctrl; } + if (g.IO.KeyShift) { key_chord |= ImGuiMod_Shift; } + if (g.IO.KeyAlt) { key_chord |= ImGuiMod_Alt; } + if (g.IO.KeySuper) { key_chord |= ImGuiMod_Super; } + return key_chord; +} + +static void ImGui::UpdateKeyboardInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Import legacy keys or verify they are not used +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (io.BackendUsingLegacyKeyArrays == 0) + { + // Backend used new io.AddKeyEvent() API: Good! Verify that old arrays are never written to externally. + for (int n = 0; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT((io.KeysDown[n] == false || IsKeyDown((ImGuiKey)n)) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + } + else + { + if (g.FrameCount == 0) + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT(g.IO.KeyMap[n] == -1 && "Backend is not allowed to write to io.KeyMap[0..511]!"); + + // Build reverse KeyMap (Named -> Legacy) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + if (io.KeyMap[n] != -1) + { + IM_ASSERT(IsLegacyKey((ImGuiKey)io.KeyMap[n])); + io.KeyMap[io.KeyMap[n]] = n; + } + + // Import legacy keys into new ones + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + if (io.KeysDown[n] || io.BackendUsingLegacyKeyArrays == 1) + { + const ImGuiKey key = (ImGuiKey)(io.KeyMap[n] != -1 ? io.KeyMap[n] : n); + IM_ASSERT(io.KeyMap[n] == -1 || IsNamedKey(key)); + io.KeysData[key].Down = io.KeysDown[n]; + if (key != n) + io.KeysDown[key] = io.KeysDown[n]; // Allow legacy code using io.KeysDown[GetKeyIndex()] with old backends + io.BackendUsingLegacyKeyArrays = 1; + } + if (io.BackendUsingLegacyKeyArrays == 1) + { + GetKeyData(ImGuiMod_Ctrl)->Down = io.KeyCtrl; + GetKeyData(ImGuiMod_Shift)->Down = io.KeyShift; + GetKeyData(ImGuiMod_Alt)->Down = io.KeyAlt; + GetKeyData(ImGuiMod_Super)->Down = io.KeySuper; + } + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + if (io.BackendUsingLegacyNavInputArray && nav_gamepad_active) + { + #define MAP_LEGACY_NAV_INPUT_TO_KEY1(_KEY, _NAV1) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f); io.KeysData[_KEY].AnalogValue = io.NavInputs[_NAV1]; } while (0) + #define MAP_LEGACY_NAV_INPUT_TO_KEY2(_KEY, _NAV1, _NAV2) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f) || (io.NavInputs[_NAV2] > 0.0f); io.KeysData[_KEY].AnalogValue = ImMax(io.NavInputs[_NAV1], io.NavInputs[_NAV2]); } while (0) + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceDown, ImGuiNavInput_Activate); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceRight, ImGuiNavInput_Cancel); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceLeft, ImGuiNavInput_Menu); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceUp, ImGuiNavInput_Input); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadLeft, ImGuiNavInput_DpadLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadRight, ImGuiNavInput_DpadRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadUp, ImGuiNavInput_DpadUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadDown, ImGuiNavInput_DpadDown); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadL1, ImGuiNavInput_FocusPrev, ImGuiNavInput_TweakSlow); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadR1, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakFast); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickLeft, ImGuiNavInput_LStickLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickRight, ImGuiNavInput_LStickRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickUp, ImGuiNavInput_LStickUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickDown, ImGuiNavInput_LStickDown); + #undef NAV_MAP_KEY + } +#endif + +#endif + + // Synchronize io.KeyMods with individual modifiers io.KeyXXX bools, update aliases + io.KeyMods = GetMergedModsFromBools(); + for (int n = 0; n < ImGuiMouseButton_COUNT; n++) + UpdateAliasKey(MouseButtonToKey(n), io.MouseDown[n], io.MouseDown[n] ? 1.0f : 0.0f); + UpdateAliasKey(ImGuiKey_MouseWheelX, io.MouseWheelH != 0.0f, io.MouseWheelH); + UpdateAliasKey(ImGuiKey_MouseWheelY, io.MouseWheel != 0.0f, io.MouseWheel); + + // Clear gamepad data if disabled + if ((io.BackendFlags & ImGuiBackendFlags_HasGamepad) == 0) + for (int i = ImGuiKey_Gamepad_BEGIN; i < ImGuiKey_Gamepad_END; i++) + { + io.KeysData[i - ImGuiKey_KeysData_OFFSET].Down = false; + io.KeysData[i - ImGuiKey_KeysData_OFFSET].AnalogValue = 0.0f; + } + + // Update keys + for (int i = 0; i < ImGuiKey_KeysData_SIZE; i++) + { + ImGuiKeyData* key_data = &io.KeysData[i]; + key_data->DownDurationPrev = key_data->DownDuration; + key_data->DownDuration = key_data->Down ? (key_data->DownDuration < 0.0f ? 0.0f : key_data->DownDuration + io.DeltaTime) : -1.0f; + } + + // Update keys/input owner (named keys only): one entry per key + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyData* key_data = &io.KeysData[key - ImGuiKey_KeysData_OFFSET]; + ImGuiKeyOwnerData* owner_data = &g.KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; + owner_data->OwnerCurr = owner_data->OwnerNext; + if (!key_data->Down) // Important: ownership is released on the frame after a release. Ensure a 'MouseDown -> CloseWindow -> MouseUp' chain doesn't lead to someone else seeing the MouseUp. + owner_data->OwnerNext = ImGuiKeyOwner_None; + owner_data->LockThisFrame = owner_data->LockUntilRelease = owner_data->LockUntilRelease && key_data->Down; // Clear LockUntilRelease when key is not Down anymore + } + + UpdateKeyRoutingTable(&g.KeysRoutingTable); +} + +static void ImGui::UpdateMouseInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Round mouse position to avoid spreading non-rounded position (e.g. UpdateManualResize doesn't support them well) + if (IsMousePosValid(&io.MousePos)) + io.MousePos = g.MouseLastValidPos = ImFloorSigned(io.MousePos); + + // If mouse just appeared or disappeared (usually denoted by -FLT_MAX components) we cancel out movement in MouseDelta + if (IsMousePosValid(&io.MousePos) && IsMousePosValid(&io.MousePosPrev)) + io.MouseDelta = io.MousePos - io.MousePosPrev; + else + io.MouseDelta = ImVec2(0.0f, 0.0f); + + // If mouse moved we re-enable mouse hovering in case it was disabled by gamepad/keyboard. In theory should use a >0.0f threshold but would need to reset in everywhere we set this to true. + if (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f) + g.NavDisableMouseHover = false; + + io.MousePosPrev = io.MousePos; + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) + { + io.MouseClicked[i] = io.MouseDown[i] && io.MouseDownDuration[i] < 0.0f; + io.MouseClickedCount[i] = 0; // Will be filled below + io.MouseReleased[i] = !io.MouseDown[i] && io.MouseDownDuration[i] >= 0.0f; + io.MouseDownDurationPrev[i] = io.MouseDownDuration[i]; + io.MouseDownDuration[i] = io.MouseDown[i] ? (io.MouseDownDuration[i] < 0.0f ? 0.0f : io.MouseDownDuration[i] + io.DeltaTime) : -1.0f; + if (io.MouseClicked[i]) + { + bool is_repeated_click = false; + if ((float)(g.Time - io.MouseClickedTime[i]) < io.MouseDoubleClickTime) + { + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + if (ImLengthSqr(delta_from_click_pos) < io.MouseDoubleClickMaxDist * io.MouseDoubleClickMaxDist) + is_repeated_click = true; + } + if (is_repeated_click) + io.MouseClickedLastCount[i]++; + else + io.MouseClickedLastCount[i] = 1; + io.MouseClickedTime[i] = g.Time; + io.MouseClickedPos[i] = io.MousePos; + io.MouseClickedCount[i] = io.MouseClickedLastCount[i]; + io.MouseDragMaxDistanceAbs[i] = ImVec2(0.0f, 0.0f); + io.MouseDragMaxDistanceSqr[i] = 0.0f; + } + else if (io.MouseDown[i]) + { + // Maintain the maximum distance we reaching from the initial click position, which is used with dragging threshold + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + io.MouseDragMaxDistanceSqr[i] = ImMax(io.MouseDragMaxDistanceSqr[i], ImLengthSqr(delta_from_click_pos)); + io.MouseDragMaxDistanceAbs[i].x = ImMax(io.MouseDragMaxDistanceAbs[i].x, delta_from_click_pos.x < 0.0f ? -delta_from_click_pos.x : delta_from_click_pos.x); + io.MouseDragMaxDistanceAbs[i].y = ImMax(io.MouseDragMaxDistanceAbs[i].y, delta_from_click_pos.y < 0.0f ? -delta_from_click_pos.y : delta_from_click_pos.y); + } + + // We provide io.MouseDoubleClicked[] as a legacy service + io.MouseDoubleClicked[i] = (io.MouseClickedCount[i] == 2); + + // Clicking any mouse button reactivate mouse hovering which may have been deactivated by gamepad/keyboard navigation + if (io.MouseClicked[i]) + g.NavDisableMouseHover = false; + } +} + +static void LockWheelingWindow(ImGuiWindow* window, float wheel_amount) +{ + ImGuiContext& g = *GImGui; + if (window) + g.WheelingWindowReleaseTimer = ImMin(g.WheelingWindowReleaseTimer + ImAbs(wheel_amount) * WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER, WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER); + else + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindow == window) + return; + IMGUI_DEBUG_LOG_IO("LockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL"); + g.WheelingWindow = window; + g.WheelingWindowRefMousePos = g.IO.MousePos; +} + +void ImGui::UpdateMouseWheel() +{ + ImGuiContext& g = *GImGui; + + // Reset the locked window if we move the mouse or after the timer elapses + if (g.WheelingWindow != NULL) + { + g.WheelingWindowReleaseTimer -= g.IO.DeltaTime; + if (IsMousePosValid() && ImLengthSqr(g.IO.MousePos - g.WheelingWindowRefMousePos) > g.IO.MouseDragThreshold * g.IO.MouseDragThreshold) + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindowReleaseTimer <= 0.0f) + LockWheelingWindow(NULL, 0.0f); + } + + ImVec2 wheel; + wheel.x = TestKeyOwner(ImGuiKey_MouseWheelX, ImGuiKeyOwner_None) ? g.IO.MouseWheelH : 0.0f; + wheel.y = TestKeyOwner(ImGuiKey_MouseWheelY, ImGuiKeyOwner_None) ? g.IO.MouseWheel : 0.0f; + if (wheel.x == 0.0f && wheel.y == 0.0f) + return; + + //IMGUI_DEBUG_LOG("MouseWheel X:%.3f Y:%.3f\n", wheel_x, wheel_y); + ImGuiWindow* mouse_window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; + if (!mouse_window || mouse_window->Collapsed) + return; + + // Zoom / Scale window + // FIXME-OBSOLETE: This is an old feature, it still works but pretty much nobody is using it and may be best redesigned. + if (wheel.y != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) + { + LockWheelingWindow(mouse_window, wheel.y); + ImGuiWindow* window = mouse_window; + const float new_font_scale = ImClamp(window->FontWindowScale + g.IO.MouseWheel * 0.10f, 0.50f, 2.50f); + const float scale = new_font_scale / window->FontWindowScale; + window->FontWindowScale = new_font_scale; + if (window == window->RootWindow) + { + const ImVec2 offset = window->Size * (1.0f - scale) * (g.IO.MousePos - window->Pos) / window->Size; + SetWindowPos(window, window->Pos + offset, 0); + window->Size = ImFloor(window->Size * scale); + window->SizeFull = ImFloor(window->SizeFull * scale); + } + return; + } + if (g.IO.KeyCtrl) + return; + + // Mouse wheel scrolling + // As a standard behavior holding SHIFT while using Vertical Mouse Wheel triggers Horizontal scroll instead + // (we avoid doing it on OSX as it the OS input layer handles this already) + const bool swap_axis = g.IO.KeyShift && !g.IO.ConfigMacOSXBehaviors; + if (swap_axis) + { + wheel.x = wheel.y; + wheel.y = 0.0f; + } + + // Vertical Mouse Wheel scrolling + // Bubble up into parent window if: + // - a child window doesn't allow any scrolling. + // - a child window doesn't need scrolling because it is already at the edge for the direction we are going in. + // - a child window has the ImGuiWindowFlags_NoScrollWithMouse flag. + if (wheel.y != 0.0f) + { + ImGuiWindow* window = mouse_window; + while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.y == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) + window = window->ParentWindow; + if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) + { + LockWheelingWindow(mouse_window, wheel.y); + float max_step = window->InnerRect.GetHeight() * 0.67f; + float scroll_step = ImFloor(ImMin(5 * window->CalcFontSize(), max_step)); + SetScrollY(window, window->Scroll.y - wheel.y * scroll_step); + } + } + + // Horizontal Mouse Wheel scrolling, or Vertical Mouse Wheel w/ Shift held + if (wheel.x != 0.0f) + { + ImGuiWindow* window = mouse_window; + while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.x == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) + window = window->ParentWindow; + if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) + { + LockWheelingWindow(mouse_window, wheel.x); + float max_step = window->InnerRect.GetWidth() * 0.67f; + float scroll_step = ImFloor(ImMin(2 * window->CalcFontSize(), max_step)); + SetScrollX(window, window->Scroll.x - wheel.x * scroll_step); + } + } +} + +// The reason this is exposed in imgui_internal.h is: on touch-based system that don't have hovering, we want to dispatch inputs to the right target (imgui vs imgui+app) +void ImGui::UpdateHoveredWindowAndCaptureFlags() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + g.WindowsHoverPadding = ImMax(g.Style.TouchExtraPadding, ImVec2(WINDOWS_HOVER_PADDING, WINDOWS_HOVER_PADDING)); + + // Find the window hovered by mouse: + // - Child windows can extend beyond the limit of their parent so we need to derive HoveredRootWindow from HoveredWindow. + // - When moving a window we can skip the search, which also conveniently bypasses the fact that window->WindowRectClipped is lagging as this point of the frame. + // - We also support the moved window toggling the NoInputs flag after moving has started in order to be able to detect windows below it, which is useful for e.g. docking mechanisms. + bool clear_hovered_windows = false; + FindHoveredWindow(); + IM_ASSERT(g.HoveredWindow == NULL || g.HoveredWindow == g.MovingWindow || g.HoveredWindow->Viewport == g.MouseViewport); + + // Modal windows prevents mouse from hovering behind them. + ImGuiWindow* modal_window = GetTopMostPopupModal(); + if (modal_window && g.HoveredWindow && !IsWindowWithinBeginStackOf(g.HoveredWindow->RootWindow, modal_window)) // FIXME-MERGE: RootWindowDockTree ? + clear_hovered_windows = true; + + // Disabled mouse? + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) + clear_hovered_windows = true; + + // We track click ownership. When clicked outside of a window the click is owned by the application and + // won't report hovering nor request capture even while dragging over our windows afterward. + const bool has_open_popup = (g.OpenPopupStack.Size > 0); + const bool has_open_modal = (modal_window != NULL); + int mouse_earliest_down = -1; + bool mouse_any_down = false; + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) + { + if (io.MouseClicked[i]) + { + io.MouseDownOwned[i] = (g.HoveredWindow != NULL) || has_open_popup; + io.MouseDownOwnedUnlessPopupClose[i] = (g.HoveredWindow != NULL) || has_open_modal; + } + mouse_any_down |= io.MouseDown[i]; + if (io.MouseDown[i]) + if (mouse_earliest_down == -1 || io.MouseClickedTime[i] < io.MouseClickedTime[mouse_earliest_down]) + mouse_earliest_down = i; + } + const bool mouse_avail = (mouse_earliest_down == -1) || io.MouseDownOwned[mouse_earliest_down]; + const bool mouse_avail_unless_popup_close = (mouse_earliest_down == -1) || io.MouseDownOwnedUnlessPopupClose[mouse_earliest_down]; + + // If mouse was first clicked outside of ImGui bounds we also cancel out hovering. + // FIXME: For patterns of drag and drop across OS windows, we may need to rework/remove this test (first committed 311c0ca9 on 2015/02) + const bool mouse_dragging_extern_payload = g.DragDropActive && (g.DragDropSourceFlags & ImGuiDragDropFlags_SourceExtern) != 0; + if (!mouse_avail && !mouse_dragging_extern_payload) + clear_hovered_windows = true; + + if (clear_hovered_windows) + g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; + + // Update io.WantCaptureMouse for the user application (true = dispatch mouse info to Dear ImGui only, false = dispatch mouse to Dear ImGui + underlying app) + // Update io.WantCaptureMouseAllowPopupClose (experimental) to give a chance for app to react to popup closure with a drag + if (g.WantCaptureMouseNextFrame != -1) + { + io.WantCaptureMouse = io.WantCaptureMouseUnlessPopupClose = (g.WantCaptureMouseNextFrame != 0); + } + else + { + io.WantCaptureMouse = (mouse_avail && (g.HoveredWindow != NULL || mouse_any_down)) || has_open_popup; + io.WantCaptureMouseUnlessPopupClose = (mouse_avail_unless_popup_close && (g.HoveredWindow != NULL || mouse_any_down)) || has_open_modal; + } + + // Update io.WantCaptureKeyboard for the user application (true = dispatch keyboard info to Dear ImGui only, false = dispatch keyboard info to Dear ImGui + underlying app) + if (g.WantCaptureKeyboardNextFrame != -1) + io.WantCaptureKeyboard = (g.WantCaptureKeyboardNextFrame != 0); + else + io.WantCaptureKeyboard = (g.ActiveId != 0) || (modal_window != NULL); + if (io.NavActive && (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && !(io.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard)) + io.WantCaptureKeyboard = true; + + // Update io.WantTextInput flag, this is to allow systems without a keyboard (e.g. mobile, hand-held) to show a software keyboard if possible + io.WantTextInput = (g.WantTextInputNextFrame != -1) ? (g.WantTextInputNextFrame != 0) : false; +} + +void ImGui::NewFrame() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + ImGuiContext& g = *GImGui; + + // Remove pending delete hooks before frame start. + // This deferred removal avoid issues of removal while iterating the hook vector + for (int n = g.Hooks.Size - 1; n >= 0; n--) + if (g.Hooks[n].Type == ImGuiContextHookType_PendingRemoval_) + g.Hooks.erase(&g.Hooks[n]); + + CallContextHooks(&g, ImGuiContextHookType_NewFramePre); + + // Check and assert for various common IO and Configuration mistakes + g.ConfigFlagsLastFrame = g.ConfigFlagsCurrFrame; + ErrorCheckNewFrameSanityChecks(); + g.ConfigFlagsCurrFrame = g.IO.ConfigFlags; + + // Load settings on first frame, save settings when modified (after a delay) + UpdateSettings(); + + g.Time += g.IO.DeltaTime; + g.WithinFrameScope = true; + g.FrameCount += 1; + g.TooltipOverrideCount = 0; + g.WindowsActiveCount = 0; + g.MenusIdSubmittedThisFrame.resize(0); + + // Calculate frame-rate for the user, as a purely luxurious feature + g.FramerateSecPerFrameAccum += g.IO.DeltaTime - g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx]; + g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx] = g.IO.DeltaTime; + g.FramerateSecPerFrameIdx = (g.FramerateSecPerFrameIdx + 1) % IM_ARRAYSIZE(g.FramerateSecPerFrame); + g.FramerateSecPerFrameCount = ImMin(g.FramerateSecPerFrameCount + 1, IM_ARRAYSIZE(g.FramerateSecPerFrame)); + g.IO.Framerate = (g.FramerateSecPerFrameAccum > 0.0f) ? (1.0f / (g.FramerateSecPerFrameAccum / (float)g.FramerateSecPerFrameCount)) : FLT_MAX; + + // Process input queue (trickle as many events as possible), turn events into writes to IO structure + g.InputEventsTrail.resize(0); + UpdateInputEvents(g.IO.ConfigInputTrickleEventQueue); + + // Update viewports (after processing input queue, so io.MouseHoveredViewport is set) + UpdateViewportsNewFrame(); + + // Setup current font and draw list shared data + // FIXME-VIEWPORT: the concept of a single ClipRectFullscreen is not ideal! + g.IO.Fonts->Locked = true; + SetCurrentFont(GetDefaultFont()); + IM_ASSERT(g.Font->IsLoaded()); + ImRect virtual_space(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + for (int n = 0; n < g.Viewports.Size; n++) + virtual_space.Add(g.Viewports[n]->GetMainRect()); + g.DrawListSharedData.ClipRectFullscreen = virtual_space.ToVec4(); + g.DrawListSharedData.CurveTessellationTol = g.Style.CurveTessellationTol; + g.DrawListSharedData.SetCircleTessellationMaxError(g.Style.CircleTessellationMaxError); + g.DrawListSharedData.InitialFlags = ImDrawListFlags_None; + if (g.Style.AntiAliasedLines) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLines; + if (g.Style.AntiAliasedLinesUseTex && !(g.Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLinesUseTex; + if (g.Style.AntiAliasedFill) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedFill; + if (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AllowVtxOffset; + + // Mark rendering data as invalid to prevent user who may have a handle on it to use it. + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + viewport->DrawData = NULL; + viewport->DrawDataP.Clear(); + } + + // Drag and drop keep the source ID alive so even if the source disappear our state is consistent + if (g.DragDropActive && g.DragDropPayload.SourceId == g.ActiveId) + KeepAliveID(g.DragDropPayload.SourceId); + + // Update HoveredId data + if (!g.HoveredIdPreviousFrame) + g.HoveredIdTimer = 0.0f; + if (!g.HoveredIdPreviousFrame || (g.HoveredId && g.ActiveId == g.HoveredId)) + g.HoveredIdNotActiveTimer = 0.0f; + if (g.HoveredId) + g.HoveredIdTimer += g.IO.DeltaTime; + if (g.HoveredId && g.ActiveId != g.HoveredId) + g.HoveredIdNotActiveTimer += g.IO.DeltaTime; + g.HoveredIdPreviousFrame = g.HoveredId; + g.HoveredId = 0; + g.HoveredIdAllowOverlap = false; + g.HoveredIdDisabled = false; + + // Clear ActiveID if the item is not alive anymore. + // In 1.87, the common most call to KeepAliveID() was moved from GetID() to ItemAdd(). + // As a result, custom widget using ButtonBehavior() _without_ ItemAdd() need to call KeepAliveID() themselves. + if (g.ActiveId != 0 && g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("NewFrame(): ClearActiveID() because it isn't marked alive anymore!\n"); + ClearActiveID(); + } + + // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) + if (g.ActiveId) + g.ActiveIdTimer += g.IO.DeltaTime; + g.LastActiveIdTimer += g.IO.DeltaTime; + g.ActiveIdPreviousFrame = g.ActiveId; + g.ActiveIdPreviousFrameWindow = g.ActiveIdWindow; + g.ActiveIdPreviousFrameHasBeenEditedBefore = g.ActiveIdHasBeenEditedBefore; + g.ActiveIdIsAlive = 0; + g.ActiveIdHasBeenEditedThisFrame = false; + g.ActiveIdPreviousFrameIsAlive = false; + g.ActiveIdIsJustActivated = false; + if (g.TempInputId != 0 && g.ActiveId != g.TempInputId) + g.TempInputId = 0; + if (g.ActiveId == 0) + { + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + g.ActiveIdUsingNavInputMask = 0x00; +#endif + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (g.ActiveId == 0) + g.ActiveIdUsingNavInputMask = 0; + else if (g.ActiveIdUsingNavInputMask != 0) + { + // If your custom widget code used: { g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); } + // Since IMGUI_VERSION_NUM >= 18804 it should be: { SetKeyOwner(ImGuiKey_Escape, g.ActiveId); SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId); } + if (g.ActiveIdUsingNavInputMask & (1 << ImGuiNavInput_Cancel)) + SetKeyOwner(ImGuiKey_Escape, g.ActiveId); + if (g.ActiveIdUsingNavInputMask & ~(1 << ImGuiNavInput_Cancel)) + IM_ASSERT(0); // Other values unsupported + } +#endif + + // Update hover delay for IsItemHovered() with delays and tooltips + g.HoverDelayIdPreviousFrame = g.HoverDelayId; + if (g.HoverDelayId != 0) + { + //if (g.IO.MouseDelta.x == 0.0f && g.IO.MouseDelta.y == 0.0f) // Need design/flags + g.HoverDelayTimer += g.IO.DeltaTime; + g.HoverDelayClearTimer = 0.0f; + g.HoverDelayId = 0; + } + else if (g.HoverDelayTimer > 0.0f) + { + // This gives a little bit of leeway before clearing the hover timer, allowing mouse to cross gaps + g.HoverDelayClearTimer += g.IO.DeltaTime; + if (g.HoverDelayClearTimer >= ImMax(0.20f, g.IO.DeltaTime * 2.0f)) // ~6 frames at 30 Hz + allow for low framerate + g.HoverDelayTimer = g.HoverDelayClearTimer = 0.0f; // May want a decaying timer, in which case need to clamp at max first, based on max of caller last requested timer. + } + + // Drag and drop + g.DragDropAcceptIdPrev = g.DragDropAcceptIdCurr; + g.DragDropAcceptIdCurr = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropWithinSource = false; + g.DragDropWithinTarget = false; + g.DragDropHoldJustPressedId = 0; + + // Close popups on focus lost (currently wip/opt-in) + //if (g.IO.AppFocusLost) + // ClosePopupsExceptModals(); + + // Update keyboard input state + UpdateKeyboardInputs(); + + //IM_ASSERT(g.IO.KeyCtrl == IsKeyDown(ImGuiKey_LeftCtrl) || IsKeyDown(ImGuiKey_RightCtrl)); + //IM_ASSERT(g.IO.KeyShift == IsKeyDown(ImGuiKey_LeftShift) || IsKeyDown(ImGuiKey_RightShift)); + //IM_ASSERT(g.IO.KeyAlt == IsKeyDown(ImGuiKey_LeftAlt) || IsKeyDown(ImGuiKey_RightAlt)); + //IM_ASSERT(g.IO.KeySuper == IsKeyDown(ImGuiKey_LeftSuper) || IsKeyDown(ImGuiKey_RightSuper)); + + // Update gamepad/keyboard navigation + NavUpdate(); + + // Update mouse input state + UpdateMouseInputs(); + + // Undocking + // (needs to be before UpdateMouseMovingWindowNewFrame so the window is already offset and following the mouse on the detaching frame) + DockContextNewFrameUpdateUndocking(&g); + + // Find hovered window + // (needs to be before UpdateMouseMovingWindowNewFrame so we fill g.HoveredWindowUnderMovingWindow on the mouse release frame) + UpdateHoveredWindowAndCaptureFlags(); + + // Handle user moving window with mouse (at the beginning of the frame to avoid input lag or sheering) + UpdateMouseMovingWindowNewFrame(); + + // Background darkening/whitening + if (GetTopMostPopupModal() != NULL || (g.NavWindowingTarget != NULL && g.NavWindowingHighlightAlpha > 0.0f)) + g.DimBgRatio = ImMin(g.DimBgRatio + g.IO.DeltaTime * 6.0f, 1.0f); + else + g.DimBgRatio = ImMax(g.DimBgRatio - g.IO.DeltaTime * 10.0f, 0.0f); + + g.MouseCursor = ImGuiMouseCursor_Arrow; + g.WantCaptureMouseNextFrame = g.WantCaptureKeyboardNextFrame = g.WantTextInputNextFrame = -1; + + // Platform IME data: reset for the frame + g.PlatformImeDataPrev = g.PlatformImeData; + g.PlatformImeData.WantVisible = false; + + // Mouse wheel scrolling, scale + UpdateMouseWheel(); + + // Mark all windows as not visible and compact unused memory. + IM_ASSERT(g.WindowsFocusOrder.Size <= g.Windows.Size); + const float memory_compact_start_time = (g.GcCompactAll || g.IO.ConfigMemoryCompactTimer < 0.0f) ? FLT_MAX : (float)g.Time - g.IO.ConfigMemoryCompactTimer; + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* window = g.Windows[i]; + window->WasActive = window->Active; + window->Active = false; + window->WriteAccessed = false; + window->BeginCountPreviousFrame = window->BeginCount; + window->BeginCount = 0; + + // Garbage collect transient buffers of recently unused windows + if (!window->WasActive && !window->MemoryCompacted && window->LastTimeActive < memory_compact_start_time) + GcCompactTransientWindowBuffers(window); + } + + // Garbage collect transient buffers of recently unused tables + for (int i = 0; i < g.TablesLastTimeActive.Size; i++) + if (g.TablesLastTimeActive[i] >= 0.0f && g.TablesLastTimeActive[i] < memory_compact_start_time) + TableGcCompactTransientBuffers(g.Tables.GetByIndex(i)); + for (int i = 0; i < g.TablesTempData.Size; i++) + if (g.TablesTempData[i].LastTimeActive >= 0.0f && g.TablesTempData[i].LastTimeActive < memory_compact_start_time) + TableGcCompactTransientBuffers(&g.TablesTempData[i]); + if (g.GcCompactAll) + GcCompactTransientMiscBuffers(); + g.GcCompactAll = false; + + // Closing the focused window restore focus to the first active root window in descending z-order + if (g.NavWindow && !g.NavWindow->WasActive) + FocusTopMostWindowUnderOne(NULL, NULL); + + // No window should be open at the beginning of the frame. + // But in order to allow the user to call NewFrame() multiple times without calling Render(), we are doing an explicit clear. + g.CurrentWindowStack.resize(0); + g.BeginPopupStack.resize(0); + g.ItemFlagsStack.resize(0); + g.ItemFlagsStack.push_back(ImGuiItemFlags_None); + g.GroupStack.resize(0); + + // Docking + DockContextNewFrameUpdateDocking(&g); + + // [DEBUG] Update debug features + UpdateDebugToolItemPicker(); + UpdateDebugToolStackQueries(); + if (g.DebugLocateFrames > 0 && --g.DebugLocateFrames == 0) + g.DebugLocateId = 0; + + // Create implicit/fallback window - which we will only render it if the user has added something to it. + // We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags. + // This fallback is particularly important as it prevents ImGui:: calls from crashing. + g.WithinFrameScopeWithImplicitWindow = true; + SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); + Begin("Debug##Default"); + IM_ASSERT(g.CurrentWindow->IsFallbackWindow == true); + + CallContextHooks(&g, ImGuiContextHookType_NewFramePost); +} + +// IMPORTANT: ###xxx suffixes must be same in ALL languages +static const ImGuiLocEntry GLocalizationEntriesEnUS[] = +{ + { ImGuiLocKey_TableSizeOne, "Size column to fit###SizeOne" }, + { ImGuiLocKey_TableSizeAllFit, "Size all columns to fit###SizeAll" }, + { ImGuiLocKey_TableSizeAllDefault, "Size all columns to default###SizeAll" }, + { ImGuiLocKey_TableResetOrder, "Reset order###ResetOrder" }, + { ImGuiLocKey_WindowingMainMenuBar, "(Main menu bar)" }, + { ImGuiLocKey_WindowingPopup, "(Popup)" }, + { ImGuiLocKey_WindowingUntitled, "(Untitled)" }, + { ImGuiLocKey_DockingHideTabBar, "Hide tab bar###HideTabBar" }, +}; + +void ImGui::Initialize() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(!g.Initialized && !g.SettingsLoaded); + + // Add .ini handle for ImGuiWindow and ImGuiTable types + { + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Window"; + ini_handler.TypeHash = ImHashStr("Window"); + ini_handler.ClearAllFn = WindowSettingsHandler_ClearAll; + ini_handler.ReadOpenFn = WindowSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = WindowSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll; + AddSettingsHandler(&ini_handler); + } + TableSettingsAddSettingsHandler(); + + // Setup default localization table + LocalizeRegisterEntries(GLocalizationEntriesEnUS, IM_ARRAYSIZE(GLocalizationEntriesEnUS)); + + // Create default viewport + ImGuiViewportP* viewport = IM_NEW(ImGuiViewportP)(); + viewport->ID = IMGUI_VIEWPORT_DEFAULT_ID; + viewport->Idx = 0; + viewport->PlatformWindowCreated = true; + viewport->Flags = ImGuiViewportFlags_OwnedByApp; + g.Viewports.push_back(viewport); + g.TempBuffer.resize(1024 * 3 + 1, 0); + g.PlatformIO.Viewports.push_back(g.Viewports[0]); + +#ifdef IMGUI_HAS_DOCK + // Initialize Docking + DockContextInitialize(&g); +#endif + + g.Initialized = true; +} + +// This function is merely here to free heap allocations. +void ImGui::Shutdown() +{ + // The fonts atlas can be used prior to calling NewFrame(), so we clear it even if g.Initialized is FALSE (which would happen if we never called NewFrame) + ImGuiContext& g = *GImGui; + if (g.IO.Fonts && g.FontAtlasOwnedByContext) + { + g.IO.Fonts->Locked = false; + IM_DELETE(g.IO.Fonts); + } + g.IO.Fonts = NULL; + g.DrawListSharedData.TempBuffer.clear(); + + // Cleanup of other data are conditional on actually having initialized Dear ImGui. + if (!g.Initialized) + return; + + // Save settings (unless we haven't attempted to load them: CreateContext/DestroyContext without a call to NewFrame shouldn't save an empty file) + if (g.SettingsLoaded && g.IO.IniFilename != NULL) + SaveIniSettingsToDisk(g.IO.IniFilename); + + // Destroy platform windows + DestroyPlatformWindows(); + + // Shutdown extensions + DockContextShutdown(&g); + + CallContextHooks(&g, ImGuiContextHookType_Shutdown); + + // Clear everything else + g.Windows.clear_delete(); + g.WindowsFocusOrder.clear(); + g.WindowsTempSortBuffer.clear(); + g.CurrentWindow = NULL; + g.CurrentWindowStack.clear(); + g.WindowsById.Clear(); + g.NavWindow = NULL; + g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; + g.ActiveIdWindow = g.ActiveIdPreviousFrameWindow = NULL; + g.MovingWindow = NULL; + + g.KeysRoutingTable.Clear(); + + g.ColorStack.clear(); + g.StyleVarStack.clear(); + g.FontStack.clear(); + g.OpenPopupStack.clear(); + g.BeginPopupStack.clear(); + + g.CurrentViewport = g.MouseViewport = g.MouseLastHoveredViewport = NULL; + g.Viewports.clear_delete(); + + g.TabBars.Clear(); + g.CurrentTabBarStack.clear(); + g.ShrinkWidthBuffer.clear(); + + g.ClipperTempData.clear_destruct(); + + g.Tables.Clear(); + g.TablesTempData.clear_destruct(); + g.DrawChannelsTempMergeBuffer.clear(); + + g.ClipboardHandlerData.clear(); + g.MenusIdSubmittedThisFrame.clear(); + g.InputTextState.ClearFreeMemory(); + + g.SettingsWindows.clear(); + g.SettingsHandlers.clear(); + + if (g.LogFile) + { +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + if (g.LogFile != stdout) +#endif + ImFileClose(g.LogFile); + g.LogFile = NULL; + } + g.LogBuffer.clear(); + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + + g.Initialized = false; +} + +// FIXME: Add a more explicit sort order in the window structure. +static int IMGUI_CDECL ChildWindowComparer(const void* lhs, const void* rhs) +{ + const ImGuiWindow* const a = *(const ImGuiWindow* const *)lhs; + const ImGuiWindow* const b = *(const ImGuiWindow* const *)rhs; + if (int d = (a->Flags & ImGuiWindowFlags_Popup) - (b->Flags & ImGuiWindowFlags_Popup)) + return d; + if (int d = (a->Flags & ImGuiWindowFlags_Tooltip) - (b->Flags & ImGuiWindowFlags_Tooltip)) + return d; + return (a->BeginOrderWithinParent - b->BeginOrderWithinParent); +} + +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window) +{ + out_sorted_windows->push_back(window); + if (window->Active) + { + int count = window->DC.ChildWindows.Size; + ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer); + for (int i = 0; i < count; i++) + { + ImGuiWindow* child = window->DC.ChildWindows[i]; + if (child->Active) + AddWindowToSortBuffer(out_sorted_windows, child); + } + } +} + +static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list) +{ + if (draw_list->CmdBuffer.Size == 0) + return; + if (draw_list->CmdBuffer.Size == 1 && draw_list->CmdBuffer[0].ElemCount == 0 && draw_list->CmdBuffer[0].UserCallback == NULL) + return; + + // Draw list sanity check. Detect mismatch between PrimReserve() calls and incrementing _VtxCurrentIdx, _VtxWritePtr etc. + // May trigger for you if you are using PrimXXX functions incorrectly. + IM_ASSERT(draw_list->VtxBuffer.Size == 0 || draw_list->_VtxWritePtr == draw_list->VtxBuffer.Data + draw_list->VtxBuffer.Size); + IM_ASSERT(draw_list->IdxBuffer.Size == 0 || draw_list->_IdxWritePtr == draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size); + if (!(draw_list->Flags & ImDrawListFlags_AllowVtxOffset)) + IM_ASSERT((int)draw_list->_VtxCurrentIdx == draw_list->VtxBuffer.Size); + + // Check that draw_list doesn't use more vertices than indexable (default ImDrawIdx = unsigned short = 2 bytes = 64K vertices per ImDrawList = per window) + // If this assert triggers because you are drawing lots of stuff manually: + // - First, make sure you are coarse clipping yourself and not trying to draw many things outside visible bounds. + // Be mindful that the ImDrawList API doesn't filter vertices. Use the Metrics/Debugger window to inspect draw list contents. + // - If you want large meshes with more than 64K vertices, you can either: + // (A) Handle the ImDrawCmd::VtxOffset value in your renderer backend, and set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset'. + // Most example backends already support this from 1.71. Pre-1.71 backends won't. + // Some graphics API such as GL ES 1/2 don't have a way to offset the starting vertex so it is not supported for them. + // (B) Or handle 32-bit indices in your renderer backend, and uncomment '#define ImDrawIdx unsigned int' line in imconfig.h. + // Most example backends already support this. For example, the OpenGL example code detect index size at compile-time: + // glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer_offset); + // Your own engine or render API may use different parameters or function calls to specify index sizes. + // 2 and 4 bytes indices are generally supported by most graphics API. + // - If for some reason neither of those solutions works for you, a workaround is to call BeginChild()/EndChild() before reaching + // the 64K limit to split your draw commands in multiple draw lists. + if (sizeof(ImDrawIdx) == 2) + IM_ASSERT(draw_list->_VtxCurrentIdx < (1 << 16) && "Too many vertices in ImDrawList using 16-bit indices. Read comment above"); + + out_list->push_back(draw_list); +} + +static void AddWindowToDrawData(ImGuiWindow* window, int layer) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = window->Viewport; + g.IO.MetricsRenderWindows++; + if (window->Flags & ImGuiWindowFlags_DockNodeHost) + window->DrawList->ChannelsMerge(); + AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[layer], window->DrawList); + for (int i = 0; i < window->DC.ChildWindows.Size; i++) + { + ImGuiWindow* child = window->DC.ChildWindows[i]; + if (IsWindowActiveAndVisible(child)) // Clipped children may have been marked not active + AddWindowToDrawData(child, layer); + } +} + +static inline int GetWindowDisplayLayer(ImGuiWindow* window) +{ + return (window->Flags & ImGuiWindowFlags_Tooltip) ? 1 : 0; +} + +// Layer is locked for the root window, however child windows may use a different viewport (e.g. extruding menu) +static inline void AddRootWindowToDrawData(ImGuiWindow* window) +{ + AddWindowToDrawData(window, GetWindowDisplayLayer(window)); +} + +void ImDrawDataBuilder::FlattenIntoSingleLayer() +{ + int n = Layers[0].Size; + int size = n; + for (int i = 1; i < IM_ARRAYSIZE(Layers); i++) + size += Layers[i].Size; + Layers[0].resize(size); + for (int layer_n = 1; layer_n < IM_ARRAYSIZE(Layers); layer_n++) + { + ImVector& layer = Layers[layer_n]; + if (layer.empty()) + continue; + memcpy(&Layers[0][n], &layer[0], layer.Size * sizeof(ImDrawList*)); + n += layer.Size; + layer.resize(0); + } +} + +static void SetupViewportDrawData(ImGuiViewportP* viewport, ImVector* draw_lists) +{ + // When minimized, we report draw_data->DisplaySize as zero to be consistent with non-viewport mode, + // and to allow applications/backends to easily skip rendering. + // FIXME: Note that we however do NOT attempt to report "zero drawlist / vertices" into the ImDrawData structure. + // This is because the work has been done already, and its wasted! We should fix that and add optimizations for + // it earlier in the pipeline, rather than pretend to hide the data at the end of the pipeline. + const bool is_minimized = (viewport->Flags & ImGuiViewportFlags_Minimized) != 0; + + ImGuiIO& io = ImGui::GetIO(); + ImDrawData* draw_data = &viewport->DrawDataP; + viewport->DrawData = draw_data; // Make publicly accessible + draw_data->Valid = true; + draw_data->CmdLists = (draw_lists->Size > 0) ? draw_lists->Data : NULL; + draw_data->CmdListsCount = draw_lists->Size; + draw_data->TotalVtxCount = draw_data->TotalIdxCount = 0; + draw_data->DisplayPos = viewport->Pos; + draw_data->DisplaySize = is_minimized ? ImVec2(0.0f, 0.0f) : viewport->Size; + draw_data->FramebufferScale = io.DisplayFramebufferScale; // FIXME-VIEWPORT: This may vary on a per-monitor/viewport basis? + draw_data->OwnerViewport = viewport; + for (int n = 0; n < draw_lists->Size; n++) + { + ImDrawList* draw_list = draw_lists->Data[n]; + draw_list->_PopUnusedDrawCmd(); + draw_data->TotalVtxCount += draw_list->VtxBuffer.Size; + draw_data->TotalIdxCount += draw_list->IdxBuffer.Size; + } +} + +// Push a clipping rectangle for both ImGui logic (hit-testing etc.) and low-level ImDrawList rendering. +// - When using this function it is sane to ensure that float are perfectly rounded to integer values, +// so that e.g. (int)(max.x-min.x) in user's render produce correct result. +// - If the code here changes, may need to update code of functions like NextColumn() and PushColumnClipRect(): +// some frequently called functions which to modify both channels and clipping simultaneously tend to use the +// more specialized SetWindowClipRectBeforeSetChannel() to avoid extraneous updates of underlying ImDrawCmds. +void ImGui::PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +void ImGui::PopClipRect() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PopClipRect(); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +static ImGuiWindow* FindFrontMostVisibleChildWindow(ImGuiWindow* window) +{ + for (int n = window->DC.ChildWindows.Size - 1; n >= 0; n--) + if (IsWindowActiveAndVisible(window->DC.ChildWindows[n])) + return FindFrontMostVisibleChildWindow(window->DC.ChildWindows[n]); + return window; +} + +static void ImGui::RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + ImGuiViewportP* viewport = window->Viewport; + ImRect viewport_rect = viewport->GetMainRect(); + + // Draw behind window by moving the draw command at the FRONT of the draw list + { + // We've already called AddWindowToDrawData() which called DrawList->ChannelsMerge() on DockNodeHost windows, + // and draw list have been trimmed already, hence the explicit recreation of a draw command if missing. + // FIXME: This is creating complication, might be simpler if we could inject a drawlist in drawdata at a given position and not attempt to manipulate ImDrawCmd order. + ImDrawList* draw_list = window->RootWindowDockTree->DrawList; + if (draw_list->CmdBuffer.Size == 0) + draw_list->AddDrawCmd(); + draw_list->PushClipRect(viewport_rect.Min - ImVec2(1, 1), viewport_rect.Max + ImVec2(1, 1), false); // Ensure ImDrawCmd are not merged + draw_list->AddRectFilled(viewport_rect.Min, viewport_rect.Max, col); + ImDrawCmd cmd = draw_list->CmdBuffer.back(); + IM_ASSERT(cmd.ElemCount == 6); + draw_list->CmdBuffer.pop_back(); + draw_list->CmdBuffer.push_front(cmd); + draw_list->PopClipRect(); + draw_list->AddDrawCmd(); // We need to create a command as CmdBuffer.back().IdxOffset won't be correct if we append to same command. + } + + // Draw over sibling docking nodes in a same docking tree + if (window->RootWindow->DockIsActive) + { + ImDrawList* draw_list = FindFrontMostVisibleChildWindow(window->RootWindowDockTree)->DrawList; + if (draw_list->CmdBuffer.Size == 0) + draw_list->AddDrawCmd(); + draw_list->PushClipRect(viewport_rect.Min, viewport_rect.Max, false); + RenderRectFilledWithHole(draw_list, window->RootWindowDockTree->Rect(), window->RootWindow->Rect(), col, 0.0f);// window->RootWindowDockTree->WindowRounding); + draw_list->PopClipRect(); + } +} + +ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* bottom_most_visible_window = parent_window; + for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Flags & ImGuiWindowFlags_ChildWindow) + continue; + if (!IsWindowWithinBeginStackOf(window, parent_window)) + break; + if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window)) + bottom_most_visible_window = window; + } + return bottom_most_visible_window; +} + +static void ImGui::RenderDimmedBackgrounds() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* modal_window = GetTopMostAndVisiblePopupModal(); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + return; + const bool dim_bg_for_modal = (modal_window != NULL); + const bool dim_bg_for_window_list = (g.NavWindowingTargetAnim != NULL && g.NavWindowingTargetAnim->Active); + if (!dim_bg_for_modal && !dim_bg_for_window_list) + return; + + ImGuiViewport* viewports_already_dimmed[2] = { NULL, NULL }; + if (dim_bg_for_modal) + { + // Draw dimming behind modal or a begin stack child, whichever comes first in draw order. + ImGuiWindow* dim_behind_window = FindBottomMostVisibleWindowWithinBeginStack(modal_window); + RenderDimmedBackgroundBehindWindow(dim_behind_window, GetColorU32(ImGuiCol_ModalWindowDimBg, g.DimBgRatio)); + viewports_already_dimmed[0] = modal_window->Viewport; + } + else if (dim_bg_for_window_list) + { + // Draw dimming behind CTRL+Tab target window and behind CTRL+Tab UI window + RenderDimmedBackgroundBehindWindow(g.NavWindowingTargetAnim, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio)); + if (g.NavWindowingListWindow != NULL && g.NavWindowingListWindow->Viewport && g.NavWindowingListWindow->Viewport != g.NavWindowingTargetAnim->Viewport) + RenderDimmedBackgroundBehindWindow(g.NavWindowingListWindow, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio)); + viewports_already_dimmed[0] = g.NavWindowingTargetAnim->Viewport; + viewports_already_dimmed[1] = g.NavWindowingListWindow ? g.NavWindowingListWindow->Viewport : NULL; + + // Draw border around CTRL+Tab target window + ImGuiWindow* window = g.NavWindowingTargetAnim; + ImGuiViewport* viewport = window->Viewport; + float distance = g.FontSize; + ImRect bb = window->Rect(); + bb.Expand(distance); + if (bb.GetWidth() >= viewport->Size.x && bb.GetHeight() >= viewport->Size.y) + bb.Expand(-distance - 1.0f); // If a window fits the entire viewport, adjust its highlight inward + if (window->DrawList->CmdBuffer.Size == 0) + window->DrawList->AddDrawCmd(); + window->DrawList->PushClipRect(viewport->Pos, viewport->Pos + viewport->Size); + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_NavWindowingHighlight, g.NavWindowingHighlightAlpha), window->WindowRounding, 0, 3.0f); + window->DrawList->PopClipRect(); + } + + // Draw dimming background on _other_ viewports than the ones our windows are in + for (int viewport_n = 0; viewport_n < g.Viewports.Size; viewport_n++) + { + ImGuiViewportP* viewport = g.Viewports[viewport_n]; + if (viewport == viewports_already_dimmed[0] || viewport == viewports_already_dimmed[1]) + continue; + if (modal_window && viewport->Window && IsWindowAbove(viewport->Window, modal_window)) + continue; + ImDrawList* draw_list = GetForegroundDrawList(viewport); + const ImU32 dim_bg_col = GetColorU32(dim_bg_for_modal ? ImGuiCol_ModalWindowDimBg : ImGuiCol_NavWindowingDimBg, g.DimBgRatio); + draw_list->AddRectFilled(viewport->Pos, viewport->Pos + viewport->Size, dim_bg_col); + } +} + +// This is normally called by Render(). You may want to call it directly if you want to avoid calling Render() but the gain will be very minimal. +void ImGui::EndFrame() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + // Don't process EndFrame() multiple times. + if (g.FrameCountEnded == g.FrameCount) + return; + IM_ASSERT(g.WithinFrameScope && "Forgot to call ImGui::NewFrame()?"); + + CallContextHooks(&g, ImGuiContextHookType_EndFramePre); + + ErrorCheckEndFrameSanityChecks(); + + // Notify Platform/OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) + if (g.IO.SetPlatformImeDataFn && memcmp(&g.PlatformImeData, &g.PlatformImeDataPrev, sizeof(ImGuiPlatformImeData)) != 0) + { + ImGuiViewport* viewport = FindViewportByID(g.PlatformImeViewport); + g.IO.SetPlatformImeDataFn(viewport ? viewport : GetMainViewport(), &g.PlatformImeData); + } + + // Hide implicit/fallback "Debug" window if it hasn't been used + g.WithinFrameScopeWithImplicitWindow = false; + if (g.CurrentWindow && !g.CurrentWindow->WriteAccessed) + g.CurrentWindow->Active = false; + End(); + + // Update navigation: CTRL+Tab, wrap-around requests + NavEndFrame(); + + // Update docking + DockContextEndFrame(&g); + + SetCurrentViewport(NULL, NULL); + + // Drag and Drop: Elapse payload (if delivered, or if source stops being submitted) + if (g.DragDropActive) + { + bool is_delivered = g.DragDropPayload.Delivery; + bool is_elapsed = (g.DragDropPayload.DataFrameCount + 1 < g.FrameCount) && ((g.DragDropSourceFlags & ImGuiDragDropFlags_SourceAutoExpirePayload) || !IsMouseDown(g.DragDropMouseButton)); + if (is_delivered || is_elapsed) + ClearDragDrop(); + } + + // Drag and Drop: Fallback for source tooltip. This is not ideal but better than nothing. + if (g.DragDropActive && g.DragDropSourceFrameCount < g.FrameCount && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + g.DragDropWithinSource = true; + SetTooltip("..."); + g.DragDropWithinSource = false; + } + + // End frame + g.WithinFrameScope = false; + g.FrameCountEnded = g.FrameCount; + + // Initiate moving window + handle left-click and right-click focus + UpdateMouseMovingWindowEndFrame(); + + // Update user-facing viewport list (g.Viewports -> g.PlatformIO.Viewports after filtering out some) + UpdateViewportsEndFrame(); + + // Sort the window list so that all child windows are after their parent + // We cannot do that on FocusWindow() because children may not exist yet + g.WindowsTempSortBuffer.resize(0); + g.WindowsTempSortBuffer.reserve(g.Windows.Size); + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Active && (window->Flags & ImGuiWindowFlags_ChildWindow)) // if a child is active its parent will add it + continue; + AddWindowToSortBuffer(&g.WindowsTempSortBuffer, window); + } + + // This usually assert if there is a mismatch between the ImGuiWindowFlags_ChildWindow / ParentWindow values and DC.ChildWindows[] in parents, aka we've done something wrong. + IM_ASSERT(g.Windows.Size == g.WindowsTempSortBuffer.Size); + g.Windows.swap(g.WindowsTempSortBuffer); + g.IO.MetricsActiveWindows = g.WindowsActiveCount; + + // Unlock font atlas + g.IO.Fonts->Locked = false; + + // Clear Input data for next frame + g.IO.AppFocusLost = false; + g.IO.MouseWheel = g.IO.MouseWheelH = 0.0f; + g.IO.InputQueueCharacters.resize(0); + + CallContextHooks(&g, ImGuiContextHookType_EndFramePost); +} + +// Prepare the data for rendering so you can call GetDrawData() +// (As with anything within the ImGui:: namspace this doesn't touch your GPU or graphics API at all: +// it is the role of the ImGui_ImplXXXX_RenderDrawData() function provided by the renderer backend) +void ImGui::Render() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + if (g.FrameCountEnded != g.FrameCount) + EndFrame(); + const bool first_render_of_frame = (g.FrameCountRendered != g.FrameCount); + g.FrameCountRendered = g.FrameCount; + g.IO.MetricsRenderWindows = 0; + + CallContextHooks(&g, ImGuiContextHookType_RenderPre); + + // Add background ImDrawList (for each active viewport) + for (int n = 0; n != g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + viewport->DrawDataBuilder.Clear(); + if (viewport->DrawLists[0] != NULL) + AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[0], GetBackgroundDrawList(viewport)); + } + + // Add ImDrawList to render + ImGuiWindow* windows_to_render_top_most[2]; + windows_to_render_top_most[0] = (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoBringToFrontOnFocus)) ? g.NavWindowingTarget->RootWindowDockTree : NULL; + windows_to_render_top_most[1] = (g.NavWindowingTarget ? g.NavWindowingListWindow : NULL); + for (int n = 0; n != g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + IM_MSVC_WARNING_SUPPRESS(6011); // Static Analysis false positive "warning C6011: Dereferencing NULL pointer 'window'" + if (IsWindowActiveAndVisible(window) && (window->Flags & ImGuiWindowFlags_ChildWindow) == 0 && window != windows_to_render_top_most[0] && window != windows_to_render_top_most[1]) + AddRootWindowToDrawData(window); + } + for (int n = 0; n < IM_ARRAYSIZE(windows_to_render_top_most); n++) + if (windows_to_render_top_most[n] && IsWindowActiveAndVisible(windows_to_render_top_most[n])) // NavWindowingTarget is always temporarily displayed as the top-most window + AddRootWindowToDrawData(windows_to_render_top_most[n]); + + // Draw modal/window whitening backgrounds + if (first_render_of_frame) + RenderDimmedBackgrounds(); + + // Draw software mouse cursor if requested by io.MouseDrawCursor flag + if (g.IO.MouseDrawCursor && first_render_of_frame && g.MouseCursor != ImGuiMouseCursor_None) + RenderMouseCursor(g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); + + // Setup ImDrawData structures for end-user + g.IO.MetricsRenderVertices = g.IO.MetricsRenderIndices = 0; + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + viewport->DrawDataBuilder.FlattenIntoSingleLayer(); + + // Add foreground ImDrawList (for each active viewport) + if (viewport->DrawLists[1] != NULL) + AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[0], GetForegroundDrawList(viewport)); + + SetupViewportDrawData(viewport, &viewport->DrawDataBuilder.Layers[0]); + ImDrawData* draw_data = viewport->DrawData; + g.IO.MetricsRenderVertices += draw_data->TotalVtxCount; + g.IO.MetricsRenderIndices += draw_data->TotalIdxCount; + } + + CallContextHooks(&g, ImGuiContextHookType_RenderPost); +} + +// Calculate text size. Text can be multi-line. Optionally ignore text after a ## marker. +// CalcTextSize("") should return ImVec2(0.0f, g.FontSize) +ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) +{ + ImGuiContext& g = *GImGui; + + const char* text_display_end; + if (hide_text_after_double_hash) + text_display_end = FindRenderedTextEnd(text, text_end); // Hide anything after a '##' string + else + text_display_end = text_end; + + ImFont* font = g.Font; + const float font_size = g.FontSize; + if (text == text_display_end) + return ImVec2(0.0f, font_size); + ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX, wrap_width, text, text_display_end, NULL); + + // Round + // FIXME: This has been here since Dec 2015 (7b0bf230) but down the line we want this out. + // FIXME: Investigate using ceilf or e.g. + // - https://git.musl-libc.org/cgit/musl/tree/src/math/ceilf.c + // - https://embarkstudios.github.io/rust-gpu/api/src/libm/math/ceilf.rs.html + text_size.x = IM_FLOOR(text_size.x + 0.99999f); + + return text_size; +} + +// Find window given position, search front-to-back +// FIXME: Note that we have an inconsequential lag here: OuterRectClipped is updated in Begin(), so windows moved programmatically +// with SetWindowPos() and not SetNextWindowPos() will have that rectangle lagging by a frame at the time FindHoveredWindow() is +// called, aka before the next Begin(). Moving window isn't affected. +static void FindHoveredWindow() +{ + ImGuiContext& g = *GImGui; + + // Special handling for the window being moved: Ignore the mouse viewport check (because it may reset/lose its viewport during the undocking frame) + ImGuiViewportP* moving_window_viewport = g.MovingWindow ? g.MovingWindow->Viewport : NULL; + if (g.MovingWindow) + g.MovingWindow->Viewport = g.MouseViewport; + + ImGuiWindow* hovered_window = NULL; + ImGuiWindow* hovered_window_ignoring_moving_window = NULL; + if (g.MovingWindow && !(g.MovingWindow->Flags & ImGuiWindowFlags_NoMouseInputs)) + hovered_window = g.MovingWindow; + + ImVec2 padding_regular = g.Style.TouchExtraPadding; + ImVec2 padding_for_resize = g.IO.ConfigWindowsResizeFromEdges ? g.WindowsHoverPadding : padding_regular; + for (int i = g.Windows.Size - 1; i >= 0; i--) + { + ImGuiWindow* window = g.Windows[i]; + IM_MSVC_WARNING_SUPPRESS(28182); // [Static Analyzer] Dereferencing NULL pointer. + if (!window->Active || window->Hidden) + continue; + if (window->Flags & ImGuiWindowFlags_NoMouseInputs) + continue; + IM_ASSERT(window->Viewport); + if (window->Viewport != g.MouseViewport) + continue; + + // Using the clipped AABB, a child window will typically be clipped by its parent (not always) + ImRect bb(window->OuterRectClipped); + if (window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize)) + bb.Expand(padding_regular); + else + bb.Expand(padding_for_resize); + if (!bb.Contains(g.IO.MousePos)) + continue; + + // Support for one rectangular hole in any given window + // FIXME: Consider generalizing hit-testing override (with more generic data, callback, etc.) (#1512) + if (window->HitTestHoleSize.x != 0) + { + ImVec2 hole_pos(window->Pos.x + (float)window->HitTestHoleOffset.x, window->Pos.y + (float)window->HitTestHoleOffset.y); + ImVec2 hole_size((float)window->HitTestHoleSize.x, (float)window->HitTestHoleSize.y); + if (ImRect(hole_pos, hole_pos + hole_size).Contains(g.IO.MousePos)) + continue; + } + + if (hovered_window == NULL) + hovered_window = window; + IM_MSVC_WARNING_SUPPRESS(28182); // [Static Analyzer] Dereferencing NULL pointer. + if (hovered_window_ignoring_moving_window == NULL && (!g.MovingWindow || window->RootWindowDockTree != g.MovingWindow->RootWindowDockTree)) + hovered_window_ignoring_moving_window = window; + if (hovered_window && hovered_window_ignoring_moving_window) + break; + } + + g.HoveredWindow = hovered_window; + g.HoveredWindowUnderMovingWindow = hovered_window_ignoring_moving_window; + + if (g.MovingWindow) + g.MovingWindow->Viewport = moving_window_viewport; +} + +bool ImGui::IsItemActive() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + return g.ActiveId == g.LastItemData.ID; + return false; +} + +bool ImGui::IsItemActivated() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + if (g.ActiveId == g.LastItemData.ID && g.ActiveIdPreviousFrame != g.LastItemData.ID) + return true; + return false; +} + +bool ImGui::IsItemDeactivated() +{ + ImGuiContext& g = *GImGui; + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDeactivated) + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Deactivated) != 0; + return (g.ActiveIdPreviousFrame == g.LastItemData.ID && g.ActiveIdPreviousFrame != 0 && g.ActiveId != g.LastItemData.ID); +} + +bool ImGui::IsItemDeactivatedAfterEdit() +{ + ImGuiContext& g = *GImGui; + return IsItemDeactivated() && (g.ActiveIdPreviousFrameHasBeenEditedBefore || (g.ActiveId == 0 && g.ActiveIdHasBeenEditedBefore)); +} + +// == GetItemID() == GetFocusID() +bool ImGui::IsItemFocused() +{ + ImGuiContext& g = *GImGui; + if (g.NavId != g.LastItemData.ID || g.NavId == 0) + return false; + + // Special handling for the dummy item after Begin() which represent the title bar or tab. + // When the window is collapsed (SkipItems==true) that last item will never be overwritten so we need to detect the case. + ImGuiWindow* window = g.CurrentWindow; + if (g.LastItemData.ID == window->ID && window->WriteAccessed) + return false; + + return true; +} + +// Important: this can be useful but it is NOT equivalent to the behavior of e.g.Button()! +// Most widgets have specific reactions based on mouse-up/down state, mouse position etc. +bool ImGui::IsItemClicked(ImGuiMouseButton mouse_button) +{ + return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); +} + +bool ImGui::IsItemToggledOpen() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledOpen) ? true : false; +} + +bool ImGui::IsItemToggledSelection() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledSelection) ? true : false; +} + +bool ImGui::IsAnyItemHovered() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId != 0 || g.HoveredIdPreviousFrame != 0; +} + +bool ImGui::IsAnyItemActive() +{ + ImGuiContext& g = *GImGui; + return g.ActiveId != 0; +} + +bool ImGui::IsAnyItemFocused() +{ + ImGuiContext& g = *GImGui; + return g.NavId != 0 && !g.NavDisableHighlight; +} + +bool ImGui::IsItemVisible() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) != 0; +} + +bool ImGui::IsItemEdited() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Edited) != 0; +} + +// Allow last item to be overlapped by a subsequent item. Both may be activated during the same frame before the later one takes priority. +// FIXME: Although this is exposed, its interaction and ideal idiom with using ImGuiButtonFlags_AllowItemOverlap flag are extremely confusing, need rework. +void ImGui::SetItemAllowOverlap() +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (g.HoveredId == id) + g.HoveredIdAllowOverlap = true; + if (g.ActiveId == id) + g.ActiveIdAllowOverlap = true; +} + +// FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version for the two users of this function. +void ImGui::SetActiveIdUsingAllKeyboardKeys() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId != 0); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_COUNT) - 1; + g.ActiveIdUsingAllKeyboardKeys = true; + NavMoveRequestCancel(); +} + +ImVec2 ImGui::GetItemRectMin() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.Min; +} + +ImVec2 ImGui::GetItemRectMax() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.Max; +} + +ImVec2 ImGui::GetItemRectSize() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.GetSize(); +} + +bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + + flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoDocking; + flags |= (parent_window->Flags & ImGuiWindowFlags_NoMove); // Inherit the NoMove flag + + // Size + const ImVec2 content_avail = GetContentRegionAvail(); + ImVec2 size = ImFloor(size_arg); + const int auto_fit_axises = ((size.x == 0.0f) ? (1 << ImGuiAxis_X) : 0x00) | ((size.y == 0.0f) ? (1 << ImGuiAxis_Y) : 0x00); + if (size.x <= 0.0f) + size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too many issues) + if (size.y <= 0.0f) + size.y = ImMax(content_avail.y + size.y, 4.0f); + SetNextWindowSize(size); + + // Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value. + const char* temp_window_name; + if (name) + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%s_%08X", parent_window->Name, name, id); + else + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%08X", parent_window->Name, id); + + const float backup_border_size = g.Style.ChildBorderSize; + if (!border) + g.Style.ChildBorderSize = 0.0f; + bool ret = Begin(temp_window_name, NULL, flags); + g.Style.ChildBorderSize = backup_border_size; + + ImGuiWindow* child_window = g.CurrentWindow; + child_window->ChildId = id; + child_window->AutoFitChildAxises = (ImS8)auto_fit_axises; + + // Set the cursor to handle case where the user called SetNextWindowPos()+BeginChild() manually. + // While this is not really documented/defined, it seems that the expected thing to do. + if (child_window->BeginCount == 1) + parent_window->DC.CursorPos = child_window->Pos; + + // Process navigation-in immediately so NavInit can run on first frame + if (g.NavActivateId == id && !(flags & ImGuiWindowFlags_NavFlattened) && (child_window->DC.NavLayersActiveMask != 0 || child_window->DC.NavHasScroll)) + { + FocusWindow(child_window); + NavInitWindow(child_window, false); + SetActiveID(id + 1, child_window); // Steal ActiveId with another arbitrary id so that key-press won't activate child item + g.ActiveIdSource = ImGuiInputSource_Nav; + } + return ret; +} + +bool ImGui::BeginChild(const char* str_id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + return BeginChildEx(str_id, window->GetID(str_id), size_arg, border, extra_flags); +} + +bool ImGui::BeginChild(ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) +{ + IM_ASSERT(id != 0); + return BeginChildEx(NULL, id, size_arg, border, extra_flags); +} + +void ImGui::EndChild() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + IM_ASSERT(g.WithinEndChild == false); + IM_ASSERT(window->Flags & ImGuiWindowFlags_ChildWindow); // Mismatched BeginChild()/EndChild() calls + + g.WithinEndChild = true; + if (window->BeginCount > 1) + { + End(); + } + else + { + ImVec2 sz = window->Size; + if (window->AutoFitChildAxises & (1 << ImGuiAxis_X)) // Arbitrary minimum zero-ish child size of 4.0f causes less trouble than a 0.0f + sz.x = ImMax(4.0f, sz.x); + if (window->AutoFitChildAxises & (1 << ImGuiAxis_Y)) + sz.y = ImMax(4.0f, sz.y); + End(); + + ImGuiWindow* parent_window = g.CurrentWindow; + ImRect bb(parent_window->DC.CursorPos, parent_window->DC.CursorPos + sz); + ItemSize(sz); + if ((window->DC.NavLayersActiveMask != 0 || window->DC.NavHasScroll) && !(window->Flags & ImGuiWindowFlags_NavFlattened)) + { + ItemAdd(bb, window->ChildId); + RenderNavHighlight(bb, window->ChildId); + + // When browsing a window that has no activable items (scroll only) we keep a highlight on the child (pass g.NavId to trick into always displaying) + if (window->DC.NavLayersActiveMask == 0 && window == g.NavWindow) + RenderNavHighlight(ImRect(bb.Min - ImVec2(2, 2), bb.Max + ImVec2(2, 2)), g.NavId, ImGuiNavHighlightFlags_TypeThin); + } + else + { + // Not navigable into + ItemAdd(bb, 0); + } + if (g.HoveredWindow == window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } + g.WithinEndChild = false; + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return +} + +// Helper to create a child window / scrolling region that looks like a normal widget frame. +bool ImGui::BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags extra_flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding); + bool ret = BeginChild(id, size, true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysUseWindowPadding | extra_flags); + PopStyleVar(3); + PopStyleColor(); + return ret; +} + +void ImGui::EndChildFrame() +{ + EndChild(); +} + +static void SetWindowConditionAllowFlags(ImGuiWindow* window, ImGuiCond flags, bool enabled) +{ + window->SetWindowPosAllowFlags = enabled ? (window->SetWindowPosAllowFlags | flags) : (window->SetWindowPosAllowFlags & ~flags); + window->SetWindowSizeAllowFlags = enabled ? (window->SetWindowSizeAllowFlags | flags) : (window->SetWindowSizeAllowFlags & ~flags); + window->SetWindowCollapsedAllowFlags = enabled ? (window->SetWindowCollapsedAllowFlags | flags) : (window->SetWindowCollapsedAllowFlags & ~flags); + window->SetWindowDockAllowFlags = enabled ? (window->SetWindowDockAllowFlags | flags) : (window->SetWindowDockAllowFlags & ~flags); +} + +ImGuiWindow* ImGui::FindWindowByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + return (ImGuiWindow*)g.WindowsById.GetVoidPtr(id); +} + +ImGuiWindow* ImGui::FindWindowByName(const char* name) +{ + ImGuiID id = ImHashStr(name); + return FindWindowByID(id); +} + +static void ApplyWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings) +{ + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + window->ViewportPos = main_viewport->Pos; + if (settings->ViewportId) + { + window->ViewportId = settings->ViewportId; + window->ViewportPos = ImVec2(settings->ViewportPos.x, settings->ViewportPos.y); + } + window->Pos = ImFloor(ImVec2(settings->Pos.x + window->ViewportPos.x, settings->Pos.y + window->ViewportPos.y)); + if (settings->Size.x > 0 && settings->Size.y > 0) + window->Size = window->SizeFull = ImFloor(ImVec2(settings->Size.x, settings->Size.y)); + window->Collapsed = settings->Collapsed; + window->DockId = settings->DockId; + window->DockOrder = settings->DockOrder; +} + +static void UpdateWindowInFocusOrderList(ImGuiWindow* window, bool just_created, ImGuiWindowFlags new_flags) +{ + ImGuiContext& g = *GImGui; + + const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0 && ((new_flags & ImGuiWindowFlags_Popup) == 0 || (new_flags & ImGuiWindowFlags_ChildMenu) != 0); + const bool child_flag_changed = new_is_explicit_child != window->IsExplicitChild; + if ((just_created || child_flag_changed) && !new_is_explicit_child) + { + IM_ASSERT(!g.WindowsFocusOrder.contains(window)); + g.WindowsFocusOrder.push_back(window); + window->FocusOrder = (short)(g.WindowsFocusOrder.Size - 1); + } + else if (!just_created && child_flag_changed && new_is_explicit_child) + { + IM_ASSERT(g.WindowsFocusOrder[window->FocusOrder] == window); + for (int n = window->FocusOrder + 1; n < g.WindowsFocusOrder.Size; n++) + g.WindowsFocusOrder[n]->FocusOrder--; + g.WindowsFocusOrder.erase(g.WindowsFocusOrder.Data + window->FocusOrder); + window->FocusOrder = -1; + } + window->IsExplicitChild = new_is_explicit_child; +} + +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + //IMGUI_DEBUG_LOG("CreateNewWindow '%s', flags = 0x%08X\n", name, flags); + + // Create window the first time + ImGuiWindow* window = IM_NEW(ImGuiWindow)(&g, name); + window->Flags = flags; + g.WindowsById.SetVoidPtr(window->ID, window); + + // Default/arbitrary window position. Use SetNextWindowPos() with the appropriate condition flag to change the initial position of a window. + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + window->Pos = main_viewport->Pos + ImVec2(60, 60); + window->ViewportPos = main_viewport->Pos; + + // User can disable loading and saving of settings. Tooltip and child windows also don't store settings. + if (!(flags & ImGuiWindowFlags_NoSavedSettings)) + if (ImGuiWindowSettings* settings = ImGui::FindWindowSettings(window->ID)) + { + // Retrieve settings from .ini file + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); + ApplyWindowSettings(window, settings); + } + window->DC.CursorStartPos = window->DC.CursorMaxPos = window->DC.IdealMaxPos = window->Pos; // So first call to CalcWindowContentSizes() doesn't return crazy values + + if ((flags & ImGuiWindowFlags_AlwaysAutoResize) != 0) + { + window->AutoFitFramesX = window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = false; + } + else + { + if (window->Size.x <= 0.0f) + window->AutoFitFramesX = 2; + if (window->Size.y <= 0.0f) + window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = (window->AutoFitFramesX > 0) || (window->AutoFitFramesY > 0); + } + + if (flags & ImGuiWindowFlags_NoBringToFrontOnFocus) + g.Windows.push_front(window); // Quite slow but rare and only once + else + g.Windows.push_back(window); + + return window; +} + +static ImGuiWindow* GetWindowForTitleDisplay(ImGuiWindow* window) +{ + return window->DockNodeAsHost ? window->DockNodeAsHost->VisibleWindow : window; +} + +static ImGuiWindow* GetWindowForTitleAndMenuHeight(ImGuiWindow* window) +{ + return (window->DockNodeAsHost && window->DockNodeAsHost->VisibleWindow) ? window->DockNodeAsHost->VisibleWindow : window; +} + +static ImVec2 CalcWindowSizeAfterConstraint(ImGuiWindow* window, const ImVec2& size_desired) +{ + ImGuiContext& g = *GImGui; + ImVec2 new_size = size_desired; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) + { + // Using -1,-1 on either X/Y axis to preserve the current size. + ImRect cr = g.NextWindowData.SizeConstraintRect; + new_size.x = (cr.Min.x >= 0 && cr.Max.x >= 0) ? ImClamp(new_size.x, cr.Min.x, cr.Max.x) : window->SizeFull.x; + new_size.y = (cr.Min.y >= 0 && cr.Max.y >= 0) ? ImClamp(new_size.y, cr.Min.y, cr.Max.y) : window->SizeFull.y; + if (g.NextWindowData.SizeCallback) + { + ImGuiSizeCallbackData data; + data.UserData = g.NextWindowData.SizeCallbackUserData; + data.Pos = window->Pos; + data.CurrentSize = window->SizeFull; + data.DesiredSize = new_size; + g.NextWindowData.SizeCallback(&data); + new_size = data.DesiredSize; + } + new_size.x = IM_FLOOR(new_size.x); + new_size.y = IM_FLOOR(new_size.y); + } + + // Minimum size + if (!(window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysAutoResize))) + { + ImGuiWindow* window_for_height = GetWindowForTitleAndMenuHeight(window); + const float decoration_up_height = window_for_height->TitleBarHeight() + window_for_height->MenuBarHeight(); + new_size = ImMax(new_size, g.Style.WindowMinSize); + new_size.y = ImMax(new_size.y, decoration_up_height + ImMax(0.0f, g.Style.WindowRounding - 1.0f)); // Reduce artifacts with very small windows + } + return new_size; +} + +static void CalcWindowContentSizes(ImGuiWindow* window, ImVec2* content_size_current, ImVec2* content_size_ideal) +{ + bool preserve_old_content_sizes = false; + if (window->Collapsed && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) + preserve_old_content_sizes = true; + else if (window->Hidden && window->HiddenFramesCannotSkipItems == 0 && window->HiddenFramesCanSkipItems > 0) + preserve_old_content_sizes = true; + if (preserve_old_content_sizes) + { + *content_size_current = window->ContentSize; + *content_size_ideal = window->ContentSizeIdeal; + return; + } + + content_size_current->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_FLOOR(window->DC.CursorMaxPos.x - window->DC.CursorStartPos.x); + content_size_current->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_FLOOR(window->DC.CursorMaxPos.y - window->DC.CursorStartPos.y); + content_size_ideal->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_FLOOR(ImMax(window->DC.CursorMaxPos.x, window->DC.IdealMaxPos.x) - window->DC.CursorStartPos.x); + content_size_ideal->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_FLOOR(ImMax(window->DC.CursorMaxPos.y, window->DC.IdealMaxPos.y) - window->DC.CursorStartPos.y); +} + +static ImVec2 CalcWindowAutoFitSize(ImGuiWindow* window, const ImVec2& size_contents) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + const float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); + ImVec2 size_pad = window->WindowPadding * 2.0f; + ImVec2 size_desired = size_contents + size_pad + ImVec2(0.0f, decoration_up_height); + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Tooltip always resize + return size_desired; + } + else + { + // Maximum window size is determined by the viewport size or monitor size + const bool is_popup = (window->Flags & ImGuiWindowFlags_Popup) != 0; + const bool is_menu = (window->Flags & ImGuiWindowFlags_ChildMenu) != 0; + ImVec2 size_min = style.WindowMinSize; + if (is_popup || is_menu) // Popups and menus bypass style.WindowMinSize by default, but we give then a non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups) + size_min = ImMin(size_min, ImVec2(4.0f, 4.0f)); + + ImVec2 avail_size = window->Viewport->WorkSize; + if (window->ViewportOwned) + avail_size = ImVec2(FLT_MAX, FLT_MAX); + const int monitor_idx = window->ViewportAllowPlatformMonitorExtend; + if (monitor_idx >= 0 && monitor_idx < g.PlatformIO.Monitors.Size) + avail_size = g.PlatformIO.Monitors[monitor_idx].WorkSize; + ImVec2 size_auto_fit = ImClamp(size_desired, size_min, ImMax(size_min, avail_size - style.DisplaySafeAreaPadding * 2.0f)); + + // When the window cannot fit all contents (either because of constraints, either because screen is too small), + // we are growing the size on the other axis to compensate for expected scrollbar. FIXME: Might turn bigger than ViewportSize-WindowPadding. + ImVec2 size_auto_fit_after_constraint = CalcWindowSizeAfterConstraint(window, size_auto_fit); + bool will_have_scrollbar_x = (size_auto_fit_after_constraint.x - size_pad.x - 0.0f < size_contents.x && !(window->Flags & ImGuiWindowFlags_NoScrollbar) && (window->Flags & ImGuiWindowFlags_HorizontalScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar); + bool will_have_scrollbar_y = (size_auto_fit_after_constraint.y - size_pad.y - decoration_up_height < size_contents.y && !(window->Flags & ImGuiWindowFlags_NoScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysVerticalScrollbar); + if (will_have_scrollbar_x) + size_auto_fit.y += style.ScrollbarSize; + if (will_have_scrollbar_y) + size_auto_fit.x += style.ScrollbarSize; + return size_auto_fit; + } +} + +ImVec2 ImGui::CalcWindowNextAutoFitSize(ImGuiWindow* window) +{ + ImVec2 size_contents_current; + ImVec2 size_contents_ideal; + CalcWindowContentSizes(window, &size_contents_current, &size_contents_ideal); + ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents_ideal); + ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit); + return size_final; +} + +static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window) +{ + if (window->Flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) + return ImGuiCol_PopupBg; + if ((window->Flags & ImGuiWindowFlags_ChildWindow) && !window->DockIsActive) + return ImGuiCol_ChildBg; + return ImGuiCol_WindowBg; +} + +static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size) +{ + ImVec2 pos_min = ImLerp(corner_target, window->Pos, corner_norm); // Expected window upper-left + ImVec2 pos_max = ImLerp(window->Pos + window->Size, corner_target, corner_norm); // Expected window lower-right + ImVec2 size_expected = pos_max - pos_min; + ImVec2 size_constrained = CalcWindowSizeAfterConstraint(window, size_expected); + *out_pos = pos_min; + if (corner_norm.x == 0.0f) + out_pos->x -= (size_constrained.x - size_expected.x); + if (corner_norm.y == 0.0f) + out_pos->y -= (size_constrained.y - size_expected.y); + *out_size = size_constrained; +} + +// Data for resizing from corner +struct ImGuiResizeGripDef +{ + ImVec2 CornerPosN; + ImVec2 InnerDir; + int AngleMin12, AngleMax12; +}; +static const ImGuiResizeGripDef resize_grip_def[4] = +{ + { ImVec2(1, 1), ImVec2(-1, -1), 0, 3 }, // Lower-right + { ImVec2(0, 1), ImVec2(+1, -1), 3, 6 }, // Lower-left + { ImVec2(0, 0), ImVec2(+1, +1), 6, 9 }, // Upper-left (Unused) + { ImVec2(1, 0), ImVec2(-1, +1), 9, 12 } // Upper-right (Unused) +}; + +// Data for resizing from borders +struct ImGuiResizeBorderDef +{ + ImVec2 InnerDir; + ImVec2 SegmentN1, SegmentN2; + float OuterAngle; +}; +static const ImGuiResizeBorderDef resize_border_def[4] = +{ + { ImVec2(+1, 0), ImVec2(0, 1), ImVec2(0, 0), IM_PI * 1.00f }, // Left + { ImVec2(-1, 0), ImVec2(1, 0), ImVec2(1, 1), IM_PI * 0.00f }, // Right + { ImVec2(0, +1), ImVec2(0, 0), ImVec2(1, 0), IM_PI * 1.50f }, // Up + { ImVec2(0, -1), ImVec2(1, 1), ImVec2(0, 1), IM_PI * 0.50f } // Down +}; + +static ImRect GetResizeBorderRect(ImGuiWindow* window, int border_n, float perp_padding, float thickness) +{ + ImRect rect = window->Rect(); + if (thickness == 0.0f) + rect.Max -= ImVec2(1, 1); + if (border_n == ImGuiDir_Left) { return ImRect(rect.Min.x - thickness, rect.Min.y + perp_padding, rect.Min.x + thickness, rect.Max.y - perp_padding); } + if (border_n == ImGuiDir_Right) { return ImRect(rect.Max.x - thickness, rect.Min.y + perp_padding, rect.Max.x + thickness, rect.Max.y - perp_padding); } + if (border_n == ImGuiDir_Up) { return ImRect(rect.Min.x + perp_padding, rect.Min.y - thickness, rect.Max.x - perp_padding, rect.Min.y + thickness); } + if (border_n == ImGuiDir_Down) { return ImRect(rect.Min.x + perp_padding, rect.Max.y - thickness, rect.Max.x - perp_padding, rect.Max.y + thickness); } + IM_ASSERT(0); + return ImRect(); +} + +// 0..3: corners (Lower-right, Lower-left, Unused, Unused) +ImGuiID ImGui::GetWindowResizeCornerID(ImGuiWindow* window, int n) +{ + IM_ASSERT(n >= 0 && n < 4); + ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID; + id = ImHashStr("#RESIZE", 0, id); + id = ImHashData(&n, sizeof(int), id); + return id; +} + +// Borders (Left, Right, Up, Down) +ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) +{ + IM_ASSERT(dir >= 0 && dir < 4); + int n = (int)dir + 4; + ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID; + id = ImHashStr("#RESIZE", 0, id); + id = ImHashData(&n, sizeof(int), id); + return id; +} + +// Handle resize for: Resize Grips, Borders, Gamepad +// Return true when using auto-fit (double-click on resize grip) +static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImGuiWindowFlags flags = window->Flags; + + if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + return false; + if (window->WasActive == false) // Early out to avoid running this code for e.g. a hidden implicit/fallback Debug window. + return false; + + bool ret_auto_fit = false; + const int resize_border_count = g.IO.ConfigWindowsResizeFromEdges ? 4 : 0; + const float grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.35f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + const float grip_hover_inner_size = IM_FLOOR(grip_draw_size * 0.75f); + const float grip_hover_outer_size = g.IO.ConfigWindowsResizeFromEdges ? WINDOWS_HOVER_PADDING : 0.0f; + + ImVec2 pos_target(FLT_MAX, FLT_MAX); + ImVec2 size_target(FLT_MAX, FLT_MAX); + + // Clip mouse interaction rectangles within the viewport rectangle (in practice the narrowing is going to happen most of the time). + // - Not narrowing would mostly benefit the situation where OS windows _without_ decoration have a threshold for hovering when outside their limits. + // This is however not the case with current backends under Win32, but a custom borderless window implementation would benefit from it. + // - When decoration are enabled we typically benefit from that distance, but then our resize elements would be conflicting with OS resize elements, so we also narrow. + // - Note that we are unable to tell if the platform setup allows hovering with a distance threshold (on Win32, decorated window have such threshold). + // We only clip interaction so we overwrite window->ClipRect, cannot call PushClipRect() yet as DrawList is not yet setup. + const bool clip_with_viewport_rect = !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) || (g.IO.MouseHoveredViewport != window->ViewportId) || !(window->Viewport->Flags & ImGuiViewportFlags_NoDecoration); + if (clip_with_viewport_rect) + window->ClipRect = window->Viewport->GetMainRect(); + + // Resize grips and borders are on layer 1 + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Manual resize grips + PushID("#RESIZE"); + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImGuiResizeGripDef& def = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, def.CornerPosN); + + // Using the FlattenChilds button flag we make the resize button accessible even if we are hovering over a child window + bool hovered, held; + ImRect resize_rect(corner - def.InnerDir * grip_hover_outer_size, corner + def.InnerDir * grip_hover_inner_size); + if (resize_rect.Min.x > resize_rect.Max.x) ImSwap(resize_rect.Min.x, resize_rect.Max.x); + if (resize_rect.Min.y > resize_rect.Max.y) ImSwap(resize_rect.Min.y, resize_rect.Max.y); + ImGuiID resize_grip_id = window->GetID(resize_grip_n); // == GetWindowResizeCornerID() + ItemAdd(resize_rect, resize_grip_id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(resize_rect, resize_grip_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); + //GetForegroundDrawList(window)->AddRect(resize_rect.Min, resize_rect.Max, IM_COL32(255, 255, 0, 255)); + if (hovered || held) + g.MouseCursor = (resize_grip_n & 1) ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE; + + if (held && g.IO.MouseClickedCount[0] == 2 && resize_grip_n == 0) + { + // Manual auto-fit when double-clicking + size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit); + ret_auto_fit = true; + ClearActiveID(); + } + else if (held) + { + // Resize from any of the four corners + // We don't use an incremental MouseDelta but rather compute an absolute target size based on mouse position + ImVec2 clamp_min = ImVec2(def.CornerPosN.x == 1.0f ? visibility_rect.Min.x : -FLT_MAX, def.CornerPosN.y == 1.0f ? visibility_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max = ImVec2(def.CornerPosN.x == 0.0f ? visibility_rect.Max.x : +FLT_MAX, def.CornerPosN.y == 0.0f ? visibility_rect.Max.y : +FLT_MAX); + ImVec2 corner_target = g.IO.MousePos - g.ActiveIdClickOffset + ImLerp(def.InnerDir * grip_hover_outer_size, def.InnerDir * -grip_hover_inner_size, def.CornerPosN); // Corner of the window corresponding to our corner grip + corner_target = ImClamp(corner_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, corner_target, def.CornerPosN, &pos_target, &size_target); + } + + // Only lower-left grip is visible before hovering/activating + if (resize_grip_n == 0 || held || hovered) + resize_grip_col[resize_grip_n] = GetColorU32(held ? ImGuiCol_ResizeGripActive : hovered ? ImGuiCol_ResizeGripHovered : ImGuiCol_ResizeGrip); + } + for (int border_n = 0; border_n < resize_border_count; border_n++) + { + const ImGuiResizeBorderDef& def = resize_border_def[border_n]; + const ImGuiAxis axis = (border_n == ImGuiDir_Left || border_n == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + + bool hovered, held; + ImRect border_rect = GetResizeBorderRect(window, border_n, grip_hover_inner_size, WINDOWS_HOVER_PADDING); + ImGuiID border_id = window->GetID(border_n + 4); // == GetWindowResizeBorderID() + ItemAdd(border_rect, border_id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(border_rect, border_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); + //GetForegroundDrawLists(window)->AddRect(border_rect.Min, border_rect.Max, IM_COL32(255, 255, 0, 255)); + if ((hovered && g.HoveredIdTimer > WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER) || held) + { + g.MouseCursor = (axis == ImGuiAxis_X) ? ImGuiMouseCursor_ResizeEW : ImGuiMouseCursor_ResizeNS; + if (held) + *border_held = border_n; + } + if (held) + { + ImVec2 clamp_min(border_n == ImGuiDir_Right ? visibility_rect.Min.x : -FLT_MAX, border_n == ImGuiDir_Down ? visibility_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max(border_n == ImGuiDir_Left ? visibility_rect.Max.x : +FLT_MAX, border_n == ImGuiDir_Up ? visibility_rect.Max.y : +FLT_MAX); + ImVec2 border_target = window->Pos; + border_target[axis] = g.IO.MousePos[axis] - g.ActiveIdClickOffset[axis] + WINDOWS_HOVER_PADDING; + border_target = ImClamp(border_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, border_target, ImMin(def.SegmentN1, def.SegmentN2), &pos_target, &size_target); + } + } + PopID(); + + // Restore nav layer + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + + // Navigation resize (keyboard/gamepad) + // FIXME: This cannot be moved to NavUpdateWindowing() because CalcWindowSizeAfterConstraint() need to callback into user. + // Not even sure the callback works here. + if (g.NavWindowingTarget && g.NavWindowingTarget->RootWindowDockTree == window) + { + ImVec2 nav_resize_dir; + if (g.NavInputSource == ImGuiInputSource_Keyboard && g.IO.KeyShift) + nav_resize_dir = GetKeyVector2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); + if (g.NavInputSource == ImGuiInputSource_Gamepad) + nav_resize_dir = GetKeyVector2d(ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown); + if (nav_resize_dir.x != 0.0f || nav_resize_dir.y != 0.0f) + { + const float NAV_RESIZE_SPEED = 600.0f; + const float resize_step = NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaSize += nav_resize_dir * resize_step; + g.NavWindowingAccumDeltaSize = ImMax(g.NavWindowingAccumDeltaSize, visibility_rect.Min - window->Pos - window->Size); // We need Pos+Size >= visibility_rect.Min, so Size >= visibility_rect.Min - Pos, so size_delta >= visibility_rect.Min - window->Pos - window->Size + g.NavWindowingToggleLayer = false; + g.NavDisableMouseHover = true; + resize_grip_col[0] = GetColorU32(ImGuiCol_ResizeGripActive); + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaSize); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. + size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + accum_floored); + g.NavWindowingAccumDeltaSize -= accum_floored; + } + } + } + + // Apply back modified position/size to window + if (size_target.x != FLT_MAX) + { + window->SizeFull = size_target; + MarkIniSettingsDirty(window); + } + if (pos_target.x != FLT_MAX) + { + window->Pos = ImFloor(pos_target); + MarkIniSettingsDirty(window); + } + + window->Size = window->SizeFull; + return ret_auto_fit; +} + +static inline void ClampWindowPos(ImGuiWindow* window, const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImVec2 size_for_clamping = window->Size; + if (g.IO.ConfigWindowsMoveFromTitleBarOnly && (!(window->Flags & ImGuiWindowFlags_NoTitleBar) || window->DockNodeAsHost)) + size_for_clamping.y = ImGui::GetFrameHeight(); // Not using window->TitleBarHeight() as DockNodeAsHost will report 0.0f here. + window->Pos = ImClamp(window->Pos, visibility_rect.Min - size_for_clamping, visibility_rect.Max); +} + +static void ImGui::RenderWindowOuterBorders(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + float rounding = window->WindowRounding; + float border_size = window->WindowBorderSize; + if (border_size > 0.0f && !(window->Flags & ImGuiWindowFlags_NoBackground)) + window->DrawList->AddRect(window->Pos, window->Pos + window->Size, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + + int border_held = window->ResizeBorderHeld; + if (border_held != -1) + { + const ImGuiResizeBorderDef& def = resize_border_def[border_held]; + ImRect border_r = GetResizeBorderRect(window, border_held, rounding, 0.0f); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN1) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle - IM_PI * 0.25f, def.OuterAngle); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN2) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle, def.OuterAngle + IM_PI * 0.25f); + window->DrawList->PathStroke(GetColorU32(ImGuiCol_SeparatorActive), 0, ImMax(2.0f, border_size)); // Thicker than usual + } + if (g.Style.FrameBorderSize > 0 && !(window->Flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive) + { + float y = window->Pos.y + window->TitleBarHeight() - 1; + window->DrawList->AddLine(ImVec2(window->Pos.x + border_size, y), ImVec2(window->Pos.x + window->Size.x - border_size, y), GetColorU32(ImGuiCol_Border), g.Style.FrameBorderSize); + } +} + +// Draw background and borders +// Draw and handle scrollbars +void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, bool handle_borders_and_resize_grips, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + // Ensure that ScrollBar doesn't read last frame's SkipItems + IM_ASSERT(window->BeginCount == 0); + window->SkipItems = false; + + // Draw window + handle manual resize + // As we highlight the title bar when want_focus is set, multiple reappearing windows will have their title bar highlighted on their reappearing frame. + const float window_rounding = window->WindowRounding; + const float window_border_size = window->WindowBorderSize; + if (window->Collapsed) + { + // Title bar only + const float backup_border_size = style.FrameBorderSize; + g.Style.FrameBorderSize = window->WindowBorderSize; + ImU32 title_bar_col = GetColorU32((title_bar_is_highlight && !g.NavDisableHighlight) ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBgCollapsed); + if (window->ViewportOwned) + title_bar_col |= IM_COL32_A_MASK; // No alpha (we don't support is_docking_transparent_payload here because simpler and less meaningful, but could with a bit of code shuffle/reuse) + RenderFrame(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, true, window_rounding); + g.Style.FrameBorderSize = backup_border_size; + } + else + { + // Window background + if (!(flags & ImGuiWindowFlags_NoBackground)) + { + bool is_docking_transparent_payload = false; + if (g.DragDropActive && (g.FrameCount - g.DragDropAcceptFrameCount) <= 1 && g.IO.ConfigDockingTransparentPayload) + if (g.DragDropPayload.IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) && *(ImGuiWindow**)g.DragDropPayload.Data == window) + is_docking_transparent_payload = true; + + ImU32 bg_col = GetColorU32(GetWindowBgColorIdx(window)); + if (window->ViewportOwned) + { + bg_col |= IM_COL32_A_MASK; // No alpha + if (is_docking_transparent_payload) + window->Viewport->Alpha *= DOCKING_TRANSPARENT_PAYLOAD_ALPHA; + } + else + { + // Adjust alpha. For docking + bool override_alpha = false; + float alpha = 1.0f; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasBgAlpha) + { + alpha = g.NextWindowData.BgAlphaVal; + override_alpha = true; + } + if (is_docking_transparent_payload) + { + alpha *= DOCKING_TRANSPARENT_PAYLOAD_ALPHA; // FIXME-DOCK: Should that be an override? + override_alpha = true; + } + if (override_alpha) + bg_col = (bg_col & ~IM_COL32_A_MASK) | (IM_F32_TO_INT8_SAT(alpha) << IM_COL32_A_SHIFT); + } + + // Render, for docked windows and host windows we ensure bg goes before decorations + if (window->DockIsActive) + window->DockNode->LastBgColor = bg_col; + ImDrawList* bg_draw_list = window->DockIsActive ? window->DockNode->HostWindow->DrawList : window->DrawList; + if (window->DockIsActive || (flags & ImGuiWindowFlags_DockNodeHost)) + bg_draw_list->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + bg_draw_list->AddRectFilled(window->Pos + ImVec2(0, window->TitleBarHeight()), window->Pos + window->Size, bg_col, window_rounding, (flags & ImGuiWindowFlags_NoTitleBar) ? 0 : ImDrawFlags_RoundCornersBottom); + if (window->DockIsActive || (flags & ImGuiWindowFlags_DockNodeHost)) + bg_draw_list->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); + } + if (window->DockIsActive) + window->DockNode->IsBgDrawnThisFrame = true; + + // Title bar + // (when docked, DockNode are drawing their own title bar. Individual windows however do NOT set the _NoTitleBar flag, + // in order for their pos/size to be matching their undocking state.) + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive) + { + ImU32 title_bar_col = GetColorU32(title_bar_is_highlight ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg); + window->DrawList->AddRectFilled(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, window_rounding, ImDrawFlags_RoundCornersTop); + } + + // Menu bar + if (flags & ImGuiWindowFlags_MenuBar) + { + ImRect menu_bar_rect = window->MenuBarRect(); + menu_bar_rect.ClipWith(window->Rect()); // Soft clipping, in particular child window don't have minimum size covering the menu bar so this is useful for them. + window->DrawList->AddRectFilled(menu_bar_rect.Min + ImVec2(window_border_size, 0), menu_bar_rect.Max - ImVec2(window_border_size, 0), GetColorU32(ImGuiCol_MenuBarBg), (flags & ImGuiWindowFlags_NoTitleBar) ? window_rounding : 0.0f, ImDrawFlags_RoundCornersTop); + if (style.FrameBorderSize > 0.0f && menu_bar_rect.Max.y < window->Pos.y + window->Size.y) + window->DrawList->AddLine(menu_bar_rect.GetBL(), menu_bar_rect.GetBR(), GetColorU32(ImGuiCol_Border), style.FrameBorderSize); + } + + // Docking: Unhide tab bar (small triangle in the corner), drag from small triangle to quickly undock + ImGuiDockNode* node = window->DockNode; + if (window->DockIsActive && node->IsHiddenTabBar() && !node->IsNoTabBar()) + { + float unhide_sz_draw = ImFloor(g.FontSize * 0.70f); + float unhide_sz_hit = ImFloor(g.FontSize * 0.55f); + ImVec2 p = node->Pos; + ImRect r(p, p + ImVec2(unhide_sz_hit, unhide_sz_hit)); + ImGuiID unhide_id = window->GetID("#UNHIDE"); + KeepAliveID(unhide_id); + bool hovered, held; + if (ButtonBehavior(r, unhide_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren)) + node->WantHiddenTabBarToggle = true; + else if (held && IsMouseDragging(0)) + StartMouseMovingWindowOrNode(window, node, true); + + // FIXME-DOCK: Ideally we'd use ImGuiCol_TitleBgActive/ImGuiCol_TitleBg here, but neither is guaranteed to be visible enough at this sort of size.. + ImU32 col = GetColorU32(((held && hovered) || (node->IsFocused && !hovered)) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + window->DrawList->AddTriangleFilled(p, p + ImVec2(unhide_sz_draw, 0.0f), p + ImVec2(0.0f, unhide_sz_draw), col); + } + + // Scrollbars + if (window->ScrollbarX) + Scrollbar(ImGuiAxis_X); + if (window->ScrollbarY) + Scrollbar(ImGuiAxis_Y); + + // Render resize grips (after their input handling so we don't have a frame of latency) + if (handle_borders_and_resize_grips && !(flags & ImGuiWindowFlags_NoResize)) + { + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImGuiResizeGripDef& grip = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, grip.CornerPosN); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(window_border_size, resize_grip_draw_size) : ImVec2(resize_grip_draw_size, window_border_size))); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(resize_grip_draw_size, window_border_size) : ImVec2(window_border_size, resize_grip_draw_size))); + window->DrawList->PathArcToFast(ImVec2(corner.x + grip.InnerDir.x * (window_rounding + window_border_size), corner.y + grip.InnerDir.y * (window_rounding + window_border_size)), window_rounding, grip.AngleMin12, grip.AngleMax12); + window->DrawList->PathFillConvex(resize_grip_col[resize_grip_n]); + } + } + + // Borders (for dock node host they will be rendered over after the tab bar) + if (handle_borders_and_resize_grips && !window->DockNodeAsHost) + RenderWindowOuterBorders(window); + } +} + +// Render title text, collapse button, close button +// When inside a dock node, this is handled in DockNodeCalcTabBarLayout() instead. +void ImGui::RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + const bool has_close_button = (p_open != NULL); + const bool has_collapse_button = !(flags & ImGuiWindowFlags_NoCollapse) && (style.WindowMenuButtonPosition != ImGuiDir_None); + + // Close & Collapse button are on the Menu NavLayer and don't default focus (unless there's nothing else on that layer) + // FIXME-NAV: Might want (or not?) to set the equivalent of ImGuiButtonFlags_NoNavFocus so that mouse clicks on standard title bar items don't necessarily set nav/keyboard ref? + const ImGuiItemFlags item_flags_backup = g.CurrentItemFlags; + g.CurrentItemFlags |= ImGuiItemFlags_NoNavDefaultFocus; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Layout buttons + // FIXME: Would be nice to generalize the subtleties expressed here into reusable code. + float pad_l = style.FramePadding.x; + float pad_r = style.FramePadding.x; + float button_sz = g.FontSize; + ImVec2 close_button_pos; + ImVec2 collapse_button_pos; + if (has_close_button) + { + pad_r += button_sz; + close_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - style.FramePadding.x, title_bar_rect.Min.y); + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Right) + { + pad_r += button_sz; + collapse_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - style.FramePadding.x, title_bar_rect.Min.y); + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Left) + { + collapse_button_pos = ImVec2(title_bar_rect.Min.x + pad_l - style.FramePadding.x, title_bar_rect.Min.y); + pad_l += button_sz; + } + + // Collapse button (submitting first so it gets priority when choosing a navigation init fallback) + if (has_collapse_button) + if (CollapseButton(window->GetID("#COLLAPSE"), collapse_button_pos, NULL)) + window->WantCollapseToggle = true; // Defer actual collapsing to next frame as we are too far in the Begin() function + + // Close button + if (has_close_button) + if (CloseButton(window->GetID("#CLOSE"), close_button_pos)) + *p_open = false; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + g.CurrentItemFlags = item_flags_backup; + + // Title bar text (with: horizontal alignment, avoiding collapse/close button, optional "unsaved document" marker) + // FIXME: Refactor text alignment facilities along with RenderText helpers, this is WAY too much messy code.. + const float marker_size_x = (flags & ImGuiWindowFlags_UnsavedDocument) ? button_sz * 0.80f : 0.0f; + const ImVec2 text_size = CalcTextSize(name, NULL, true) + ImVec2(marker_size_x, 0.0f); + + // As a nice touch we try to ensure that centered title text doesn't get affected by visibility of Close/Collapse button, + // while uncentered title text will still reach edges correctly. + if (pad_l > style.FramePadding.x) + pad_l += g.Style.ItemInnerSpacing.x; + if (pad_r > style.FramePadding.x) + pad_r += g.Style.ItemInnerSpacing.x; + if (style.WindowTitleAlign.x > 0.0f && style.WindowTitleAlign.x < 1.0f) + { + float centerness = ImSaturate(1.0f - ImFabs(style.WindowTitleAlign.x - 0.5f) * 2.0f); // 0.0f on either edges, 1.0f on center + float pad_extend = ImMin(ImMax(pad_l, pad_r), title_bar_rect.GetWidth() - pad_l - pad_r - text_size.x); + pad_l = ImMax(pad_l, pad_extend * centerness); + pad_r = ImMax(pad_r, pad_extend * centerness); + } + + ImRect layout_r(title_bar_rect.Min.x + pad_l, title_bar_rect.Min.y, title_bar_rect.Max.x - pad_r, title_bar_rect.Max.y); + ImRect clip_r(layout_r.Min.x, layout_r.Min.y, ImMin(layout_r.Max.x + g.Style.ItemInnerSpacing.x, title_bar_rect.Max.x), layout_r.Max.y); + if (flags & ImGuiWindowFlags_UnsavedDocument) + { + ImVec2 marker_pos; + marker_pos.x = ImClamp(layout_r.Min.x + (layout_r.GetWidth() - text_size.x) * style.WindowTitleAlign.x + text_size.x, layout_r.Min.x, layout_r.Max.x); + marker_pos.y = (layout_r.Min.y + layout_r.Max.y) * 0.5f; + if (marker_pos.x > layout_r.Min.x) + { + RenderBullet(window->DrawList, marker_pos, GetColorU32(ImGuiCol_Text)); + clip_r.Max.x = ImMin(clip_r.Max.x, marker_pos.x - (int)(marker_size_x * 0.5f)); + } + } + //if (g.IO.KeyShift) window->DrawList->AddRect(layout_r.Min, layout_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] + //if (g.IO.KeyCtrl) window->DrawList->AddRect(clip_r.Min, clip_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] + RenderTextClipped(layout_r.Min, layout_r.Max, name, NULL, &text_size, style.WindowTitleAlign, &clip_r); +} + +void ImGui::UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window) +{ + window->ParentWindow = parent_window; + window->RootWindow = window->RootWindowPopupTree = window->RootWindowDockTree = window->RootWindowForTitleBarHighlight = window->RootWindowForNav = window; + if (parent_window && (flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Tooltip)) + { + window->RootWindowDockTree = parent_window->RootWindowDockTree; + if (!window->DockIsActive && !(parent_window->Flags & ImGuiWindowFlags_DockNodeHost)) + window->RootWindow = parent_window->RootWindow; + } + if (parent_window && (flags & ImGuiWindowFlags_Popup)) + window->RootWindowPopupTree = parent_window->RootWindowPopupTree; + if (parent_window && !(flags & ImGuiWindowFlags_Modal) && (flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup))) // FIXME: simply use _NoTitleBar ? + window->RootWindowForTitleBarHighlight = parent_window->RootWindowForTitleBarHighlight; + while (window->RootWindowForNav->Flags & ImGuiWindowFlags_NavFlattened) + { + IM_ASSERT(window->RootWindowForNav->ParentWindow != NULL); + window->RootWindowForNav = window->RootWindowForNav->ParentWindow; + } +} + +// When a modal popup is open, newly created windows that want focus (i.e. are not popups and do not specify ImGuiWindowFlags_NoFocusOnAppearing) +// should be positioned behind that modal window, unless the window was created inside the modal begin-stack. +// In case of multiple stacked modals newly created window honors begin stack order and does not go below its own modal parent. +// - Window // FindBlockingModal() returns Modal1 +// - Window // .. returns Modal1 +// - Modal1 // .. returns Modal2 +// - Window // .. returns Modal2 +// - Window // .. returns Modal2 +// - Modal2 // .. returns Modal2 +static ImGuiWindow* ImGui::FindBlockingModal(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size <= 0) + return NULL; + + // Find a modal that has common parent with specified window. Specified window should be positioned behind that modal. + for (int i = g.OpenPopupStack.Size - 1; i >= 0; i--) + { + ImGuiWindow* popup_window = g.OpenPopupStack.Data[i].Window; + if (popup_window == NULL || !(popup_window->Flags & ImGuiWindowFlags_Modal)) + continue; + if (!popup_window->Active && !popup_window->WasActive) // Check WasActive, because this code may run before popup renders on current frame, also check Active to handle newly created windows. + continue; + if (IsWindowWithinBeginStackOf(window, popup_window)) // Window is rendered over last modal, no render order change needed. + break; + for (ImGuiWindow* parent = popup_window->ParentWindowInBeginStack->RootWindow; parent != NULL; parent = parent->ParentWindowInBeginStack->RootWindow) + if (IsWindowWithinBeginStackOf(window, parent)) + return popup_window; // Place window above its begin stack parent. + } + return NULL; +} + +// Push a new Dear ImGui window to add widgets to. +// - A default window called "Debug" is automatically stacked at the beginning of every frame so you can use widgets without explicitly calling a Begin/End pair. +// - Begin/End can be called multiple times during the frame with the same window name to append content. +// - The window name is used as a unique identifier to preserve window information across frames (and save rudimentary information to the .ini file). +// You can use the "##" or "###" markers to use the same label with different id, or same id with different label. See documentation at the top of this file. +// - Return false when window is collapsed, so you can early out in your code. You always need to call ImGui::End() even if false is returned. +// - Passing 'bool* p_open' displays a Close button on the upper-right corner of the window, the pointed value will be set to false when the button is pressed. +bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + IM_ASSERT(name != NULL && name[0] != '\0'); // Window name required + IM_ASSERT(g.WithinFrameScope); // Forgot to call ImGui::NewFrame() + IM_ASSERT(g.FrameCountEnded != g.FrameCount); // Called ImGui::Render() or ImGui::EndFrame() and haven't called ImGui::NewFrame() again yet + + // Find or create + ImGuiWindow* window = FindWindowByName(name); + const bool window_just_created = (window == NULL); + if (window_just_created) + window = CreateNewWindow(name, flags); + + // Automatically disable manual moving/resizing when NoInputs is set + if ((flags & ImGuiWindowFlags_NoInputs) == ImGuiWindowFlags_NoInputs) + flags |= ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize; + + if (flags & ImGuiWindowFlags_NavFlattened) + IM_ASSERT(flags & ImGuiWindowFlags_ChildWindow); + + const int current_frame = g.FrameCount; + const bool first_begin_of_the_frame = (window->LastFrameActive != current_frame); + window->IsFallbackWindow = (g.CurrentWindowStack.Size == 0 && g.WithinFrameScopeWithImplicitWindow); + + // Update the Appearing flag (note: the BeginDocked() path may also set this to true later) + bool window_just_activated_by_user = (window->LastFrameActive < current_frame - 1); // Not using !WasActive because the implicit "Debug" window would always toggle off->on + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + window_just_activated_by_user |= (window->PopupId != popup_ref.PopupId); // We recycle popups so treat window as activated if popup id changed + window_just_activated_by_user |= (window != popup_ref.Window); + } + + // Update Flags, LastFrameActive, BeginOrderXXX fields + const bool window_was_appearing = window->Appearing; + if (first_begin_of_the_frame) + { + UpdateWindowInFocusOrderList(window, window_just_created, flags); + window->Appearing = window_just_activated_by_user; + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); + window->FlagsPreviousFrame = window->Flags; + window->Flags = (ImGuiWindowFlags)flags; + window->LastFrameActive = current_frame; + window->LastTimeActive = (float)g.Time; + window->BeginOrderWithinParent = 0; + window->BeginOrderWithinContext = (short)(g.WindowsActiveCount++); + } + else + { + flags = window->Flags; + } + + // Docking + // (NB: during the frame dock nodes are created, it is possible that (window->DockIsActive == false) even though (window->DockNode->Windows.Size > 1) + IM_ASSERT(window->DockNode == NULL || window->DockNodeAsHost == NULL); // Cannot be both + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasDock) + SetWindowDock(window, g.NextWindowData.DockId, g.NextWindowData.DockCond); + if (first_begin_of_the_frame) + { + bool has_dock_node = (window->DockId != 0 || window->DockNode != NULL); + bool new_auto_dock_node = !has_dock_node && GetWindowAlwaysWantOwnTabBar(window); + bool dock_node_was_visible = window->DockNodeIsVisible; + bool dock_tab_was_visible = window->DockTabIsVisible; + if (has_dock_node || new_auto_dock_node) + { + BeginDocked(window, p_open); + flags = window->Flags; + if (window->DockIsActive) + { + IM_ASSERT(window->DockNode != NULL); + g.NextWindowData.Flags &= ~ImGuiNextWindowDataFlags_HasSizeConstraint; // Docking currently override constraints + } + + // Amend the Appearing flag + if (window->DockTabIsVisible && !dock_tab_was_visible && dock_node_was_visible && !window->Appearing && !window_was_appearing) + { + window->Appearing = true; + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); + } + } + else + { + window->DockIsActive = window->DockNodeIsVisible = window->DockTabIsVisible = false; + } + } + + // Parent window is latched only on the first call to Begin() of the frame, so further append-calls can be done from a different window stack + ImGuiWindow* parent_window_in_stack = (window->DockIsActive && window->DockNode->HostWindow) ? window->DockNode->HostWindow : g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back().Window; + ImGuiWindow* parent_window = first_begin_of_the_frame ? ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup)) ? parent_window_in_stack : NULL) : window->ParentWindow; + IM_ASSERT(parent_window != NULL || !(flags & ImGuiWindowFlags_ChildWindow)); + + // We allow window memory to be compacted so recreate the base stack when needed. + if (window->IDStack.Size == 0) + window->IDStack.push_back(window->ID); + + // Add to stack + // We intentionally set g.CurrentWindow to NULL to prevent usage until when the viewport is set, then will call SetCurrentWindow() + g.CurrentWindow = window; + ImGuiWindowStackData window_stack_data; + window_stack_data.Window = window; + window_stack_data.ParentLastItemDataBackup = g.LastItemData; + window_stack_data.StackSizesOnBegin.SetToCurrentState(); + g.CurrentWindowStack.push_back(window_stack_data); + if (flags & ImGuiWindowFlags_ChildMenu) + g.BeginMenuCount++; + + // Update ->RootWindow and others pointers (before any possible call to FocusWindow) + if (first_begin_of_the_frame) + { + UpdateWindowParentAndRootLinks(window, flags, parent_window); + window->ParentWindowInBeginStack = parent_window_in_stack; + } + + // Add to focus scope stack + PushFocusScope(window->ID); + window->NavRootFocusScopeId = g.CurrentFocusScopeId; + g.CurrentWindow = NULL; + + // Add to popup stack + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + popup_ref.Window = window; + popup_ref.ParentNavLayer = parent_window_in_stack->DC.NavLayerCurrent; + g.BeginPopupStack.push_back(popup_ref); + window->PopupId = popup_ref.PopupId; + } + + // Process SetNextWindow***() calls + // (FIXME: Consider splitting the HasXXX flags into X/Y components + bool window_pos_set_by_api = false; + bool window_size_x_set_by_api = false, window_size_y_set_by_api = false; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) + { + window_pos_set_by_api = (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) != 0; + if (window_pos_set_by_api && ImLengthSqr(g.NextWindowData.PosPivotVal) > 0.00001f) + { + // May be processed on the next frame if this is our first frame and we are measuring size + // FIXME: Look into removing the branch so everything can go through this same code path for consistency. + window->SetWindowPosVal = g.NextWindowData.PosVal; + window->SetWindowPosPivot = g.NextWindowData.PosPivotVal; + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + } + else + { + SetWindowPos(window, g.NextWindowData.PosVal, g.NextWindowData.PosCond); + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) + { + window_size_x_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.x > 0.0f); + window_size_y_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.y > 0.0f); + SetWindowSize(window, g.NextWindowData.SizeVal, g.NextWindowData.SizeCond); + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasScroll) + { + if (g.NextWindowData.ScrollVal.x >= 0.0f) + { + window->ScrollTarget.x = g.NextWindowData.ScrollVal.x; + window->ScrollTargetCenterRatio.x = 0.0f; + } + if (g.NextWindowData.ScrollVal.y >= 0.0f) + { + window->ScrollTarget.y = g.NextWindowData.ScrollVal.y; + window->ScrollTargetCenterRatio.y = 0.0f; + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasContentSize) + window->ContentSizeExplicit = g.NextWindowData.ContentSizeVal; + else if (first_begin_of_the_frame) + window->ContentSizeExplicit = ImVec2(0.0f, 0.0f); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasWindowClass) + window->WindowClass = g.NextWindowData.WindowClass; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasCollapsed) + SetWindowCollapsed(window, g.NextWindowData.CollapsedVal, g.NextWindowData.CollapsedCond); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasFocus) + FocusWindow(window); + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, false); + + // When reusing window again multiple times a frame, just append content (don't need to setup again) + if (first_begin_of_the_frame) + { + // Initialize + const bool window_is_child_tooltip = (flags & ImGuiWindowFlags_ChildWindow) && (flags & ImGuiWindowFlags_Tooltip); // FIXME-WIP: Undocumented behavior of Child+Tooltip for pinned tooltip (#1345) + const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); + window->Active = true; + window->HasCloseButton = (p_open != NULL); + window->ClipRect = ImVec4(-FLT_MAX, -FLT_MAX, +FLT_MAX, +FLT_MAX); + window->IDStack.resize(1); + window->DrawList->_ResetForNewFrame(); + window->DC.CurrentTableIdx = -1; + if (flags & ImGuiWindowFlags_DockNodeHost) + { + window->DrawList->ChannelsSplit(2); + window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); // Render decorations on channel 1 as we will render the backgrounds manually later + } + + // Restore buffer capacity when woken from a compacted state, to avoid + if (window->MemoryCompacted) + GcAwakeTransientWindowBuffers(window); + + // Update stored window name when it changes (which can _only_ happen with the "###" operator, so the ID would stay unchanged). + // The title bar always display the 'name' parameter, so we only update the string storage if it needs to be visible to the end-user elsewhere. + bool window_title_visible_elsewhere = false; + if ((window->Viewport && window->Viewport->Window == window) || (window->DockIsActive)) + window_title_visible_elsewhere = true; + else if (g.NavWindowingListWindow != NULL && (window->Flags & ImGuiWindowFlags_NoNavFocus) == 0) // Window titles visible when using CTRL+TAB + window_title_visible_elsewhere = true; + if (window_title_visible_elsewhere && !window_just_created && strcmp(name, window->Name) != 0) + { + size_t buf_len = (size_t)window->NameBufLen; + window->Name = ImStrdupcpy(window->Name, &buf_len, name); + window->NameBufLen = (int)buf_len; + } + + // UPDATE CONTENTS SIZE, UPDATE HIDDEN STATUS + + // Update contents size from last frame for auto-fitting (or use explicit size) + CalcWindowContentSizes(window, &window->ContentSize, &window->ContentSizeIdeal); + + // FIXME: These flags are decremented before they are used. This means that in order to have these fields produce their intended behaviors + // for one frame we must set them to at least 2, which is counter-intuitive. HiddenFramesCannotSkipItems is a more complicated case because + // it has a single usage before this code block and may be set below before it is finally checked. + if (window->HiddenFramesCanSkipItems > 0) + window->HiddenFramesCanSkipItems--; + if (window->HiddenFramesCannotSkipItems > 0) + window->HiddenFramesCannotSkipItems--; + if (window->HiddenFramesForRenderOnly > 0) + window->HiddenFramesForRenderOnly--; + + // Hide new windows for one frame until they calculate their size + if (window_just_created && (!window_size_x_set_by_api || !window_size_y_set_by_api)) + window->HiddenFramesCannotSkipItems = 1; + + // Hide popup/tooltip window when re-opening while we measure size (because we recycle the windows) + // We reset Size/ContentSize for reappearing popups/tooltips early in this function, so further code won't be tempted to use the old size. + if (window_just_activated_by_user && (flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) != 0) + { + window->HiddenFramesCannotSkipItems = 1; + if (flags & ImGuiWindowFlags_AlwaysAutoResize) + { + if (!window_size_x_set_by_api) + window->Size.x = window->SizeFull.x = 0.f; + if (!window_size_y_set_by_api) + window->Size.y = window->SizeFull.y = 0.f; + window->ContentSize = window->ContentSizeIdeal = ImVec2(0.f, 0.f); + } + } + + // SELECT VIEWPORT + // We need to do this before using any style/font sizes, as viewport with a different DPI may affect font sizes. + + WindowSelectViewport(window); + SetCurrentViewport(window, window->Viewport); + window->FontDpiScale = (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleFonts) ? window->Viewport->DpiScale : 1.0f; + SetCurrentWindow(window); + flags = window->Flags; + + // LOCK BORDER SIZE AND PADDING FOR THE FRAME (so that altering them doesn't cause inconsistencies) + // We read Style data after the call to UpdateSelectWindowViewport() which might be swapping the style. + + if (flags & ImGuiWindowFlags_ChildWindow) + window->WindowBorderSize = style.ChildBorderSize; + else + window->WindowBorderSize = ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupBorderSize : style.WindowBorderSize; + if (!window->DockIsActive && (flags & ImGuiWindowFlags_ChildWindow) && !(flags & (ImGuiWindowFlags_AlwaysUseWindowPadding | ImGuiWindowFlags_Popup)) && window->WindowBorderSize == 0.0f) + window->WindowPadding = ImVec2(0.0f, (flags & ImGuiWindowFlags_MenuBar) ? style.WindowPadding.y : 0.0f); + else + window->WindowPadding = style.WindowPadding; + + // Lock menu offset so size calculation can use it as menu-bar windows need a minimum size. + window->DC.MenuBarOffset.x = ImMax(ImMax(window->WindowPadding.x, style.ItemSpacing.x), g.NextWindowData.MenuBarOffsetMinVal.x); + window->DC.MenuBarOffset.y = g.NextWindowData.MenuBarOffsetMinVal.y; + + bool use_current_size_for_scrollbar_x = window_just_created; + bool use_current_size_for_scrollbar_y = window_just_created; + + // Collapse window by double-clicking on title bar + // At this point we don't have a clipping rectangle setup yet, so we can use the title bar area for hit detection and drawing + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !(flags & ImGuiWindowFlags_NoCollapse) && !window->DockIsActive) + { + // We don't use a regular button+id to test for double-click on title bar (mostly due to legacy reason, could be fixed), so verify that we don't have items over the title bar. + ImRect title_bar_rect = window->TitleBarRect(); + if (g.HoveredWindow == window && g.HoveredId == 0 && g.HoveredIdPreviousFrame == 0 && IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max) && g.IO.MouseClickedCount[0] == 2) + window->WantCollapseToggle = true; + if (window->WantCollapseToggle) + { + window->Collapsed = !window->Collapsed; + if (!window->Collapsed) + use_current_size_for_scrollbar_y = true; + MarkIniSettingsDirty(window); + } + } + else + { + window->Collapsed = false; + } + window->WantCollapseToggle = false; + + // SIZE + + // Calculate auto-fit size, handle automatic resize + const ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, window->ContentSizeIdeal); + if ((flags & ImGuiWindowFlags_AlwaysAutoResize) && !window->Collapsed) + { + // Using SetNextWindowSize() overrides ImGuiWindowFlags_AlwaysAutoResize, so it can be used on tooltips/popups, etc. + if (!window_size_x_set_by_api) + { + window->SizeFull.x = size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api) + { + window->SizeFull.y = size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + } + else if (window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + { + // Auto-fit may only grow window during the first few frames + // We still process initial auto-fit on collapsed windows to get a window width, but otherwise don't honor ImGuiWindowFlags_AlwaysAutoResize when collapsed. + if (!window_size_x_set_by_api && window->AutoFitFramesX > 0) + { + window->SizeFull.x = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.x, size_auto_fit.x) : size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api && window->AutoFitFramesY > 0) + { + window->SizeFull.y = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.y, size_auto_fit.y) : size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + if (!window->Collapsed) + MarkIniSettingsDirty(window); + } + + // Apply minimum/maximum window size constraints and final size + window->SizeFull = CalcWindowSizeAfterConstraint(window, window->SizeFull); + window->Size = window->Collapsed && !(flags & ImGuiWindowFlags_ChildWindow) ? window->TitleBarRect().GetSize() : window->SizeFull; + + // Decoration size + const float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); + + // POSITION + + // Popup latch its initial position, will position itself when it appears next frame + if (window_just_activated_by_user) + { + window->AutoPosLastDirection = ImGuiDir_None; + if ((flags & ImGuiWindowFlags_Popup) != 0 && !(flags & ImGuiWindowFlags_Modal) && !window_pos_set_by_api) // FIXME: BeginPopup() could use SetNextWindowPos() + window->Pos = g.BeginPopupStack.back().OpenPopupPos; + } + + // Position child window + if (flags & ImGuiWindowFlags_ChildWindow) + { + IM_ASSERT(parent_window && parent_window->Active); + window->BeginOrderWithinParent = (short)parent_window->DC.ChildWindows.Size; + parent_window->DC.ChildWindows.push_back(window); + if (!(flags & ImGuiWindowFlags_Popup) && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = parent_window->DC.CursorPos; + } + + const bool window_pos_with_pivot = (window->SetWindowPosVal.x != FLT_MAX && window->HiddenFramesCannotSkipItems == 0); + if (window_pos_with_pivot) + SetWindowPos(window, window->SetWindowPosVal - window->Size * window->SetWindowPosPivot, 0); // Position given a pivot (e.g. for centering) + else if ((flags & ImGuiWindowFlags_ChildMenu) != 0) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Popup) != 0 && !window_pos_set_by_api && window_just_appearing_after_hidden_for_resize) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Tooltip) != 0 && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = FindBestWindowPosForPopup(window); + + // Late create viewport if we don't fit within our current host viewport. + if (window->ViewportAllowPlatformMonitorExtend >= 0 && !window->ViewportOwned && !(window->Viewport->Flags & ImGuiViewportFlags_Minimized)) + if (!window->Viewport->GetMainRect().Contains(window->Rect())) + { + // This is based on the assumption that the DPI will be known ahead (same as the DPI of the selection done in UpdateSelectWindowViewport) + //ImGuiViewport* old_viewport = window->Viewport; + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_NoFocusOnAppearing); + + // FIXME-DPI + //IM_ASSERT(old_viewport->DpiScale == window->Viewport->DpiScale); // FIXME-DPI: Something went wrong + SetCurrentViewport(window, window->Viewport); + window->FontDpiScale = (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleFonts) ? window->Viewport->DpiScale : 1.0f; + SetCurrentWindow(window); + } + + if (window->ViewportOwned) + WindowSyncOwnedViewport(window, parent_window_in_stack); + + // Calculate the range of allowed position for that window (to be movable and visible past safe area padding) + // When clamping to stay visible, we will enforce that window->Pos stays inside of visibility_rect. + ImRect viewport_rect(window->Viewport->GetMainRect()); + ImRect viewport_work_rect(window->Viewport->GetWorkRect()); + ImVec2 visibility_padding = ImMax(style.DisplayWindowPadding, style.DisplaySafeAreaPadding); + ImRect visibility_rect(viewport_work_rect.Min + visibility_padding, viewport_work_rect.Max - visibility_padding); + + // Clamp position/size so window stays visible within its viewport or monitor + // Ignore zero-sized display explicitly to avoid losing positions if a window manager reports zero-sized window when initializing or minimizing. + // FIXME: Similar to code in GetWindowAllowedExtentRect() + if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow)) + { + if (!window->ViewportOwned && viewport_rect.GetWidth() > 0 && viewport_rect.GetHeight() > 0.0f) + { + ClampWindowPos(window, visibility_rect); + } + else if (window->ViewportOwned && g.PlatformIO.Monitors.Size > 0) + { + // Lost windows (e.g. a monitor disconnected) will naturally moved to the fallback/dummy monitor aka the main viewport. + const ImGuiPlatformMonitor* monitor = GetViewportPlatformMonitor(window->Viewport); + visibility_rect.Min = monitor->WorkPos + visibility_padding; + visibility_rect.Max = monitor->WorkPos + monitor->WorkSize - visibility_padding; + ClampWindowPos(window, visibility_rect); + } + } + window->Pos = ImFloor(window->Pos); + + // Lock window rounding for the frame (so that altering them doesn't cause inconsistencies) + // Large values tend to lead to variety of artifacts and are not recommended. + if (window->ViewportOwned || window->DockIsActive) + window->WindowRounding = 0.0f; + else + window->WindowRounding = (flags & ImGuiWindowFlags_ChildWindow) ? style.ChildRounding : ((flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupRounding : style.WindowRounding; + + // For windows with title bar or menu bar, we clamp to FrameHeight(FontSize + FramePadding.y * 2.0f) to completely hide artifacts. + //if ((window->Flags & ImGuiWindowFlags_MenuBar) || !(window->Flags & ImGuiWindowFlags_NoTitleBar)) + // window->WindowRounding = ImMin(window->WindowRounding, g.FontSize + style.FramePadding.y * 2.0f); + + // Apply window focus (new and reactivated windows are moved to front) + bool want_focus = false; + if (window_just_activated_by_user && !(flags & ImGuiWindowFlags_NoFocusOnAppearing)) + { + if (flags & ImGuiWindowFlags_Popup) + want_focus = true; + else if ((window->DockIsActive || (flags & ImGuiWindowFlags_ChildWindow) == 0) && !(flags & ImGuiWindowFlags_Tooltip)) + want_focus = true; + + ImGuiWindow* modal = GetTopMostPopupModal(); + if (modal != NULL && !IsWindowWithinBeginStackOf(window, modal)) + { + // Avoid focusing a window that is created outside of active modal. This will prevent active modal from being closed. + // Since window is not focused it would reappear at the same display position like the last time it was visible. + // In case of completely new windows it would go to the top (over current modal), but input to such window would still be blocked by modal. + // Position window behind a modal that is not a begin-parent of this window. + want_focus = false; + if (window == window->RootWindow) + { + ImGuiWindow* blocking_modal = FindBlockingModal(window); + IM_ASSERT(blocking_modal != NULL); + BringWindowToDisplayBehind(window, blocking_modal); + } + } + } + + // [Test Engine] Register whole window in the item system +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (g.TestEngineHookItems) + { + IM_ASSERT(window->IDStack.Size == 1); + window->IDStack.Size = 0; // As window->IDStack[0] == window->ID here, make sure TestEngine doesn't erroneously see window as parent of itself. + IMGUI_TEST_ENGINE_ITEM_ADD(window->Rect(), window->ID); + IMGUI_TEST_ENGINE_ITEM_INFO(window->ID, window->Name, (g.HoveredWindow == window) ? ImGuiItemStatusFlags_HoveredRect : 0); + window->IDStack.Size = 1; + } +#endif + + // Decide if we are going to handle borders and resize grips + const bool handle_borders_and_resize_grips = (window->DockNodeAsHost || !window->DockIsActive); + + // Handle manual resize: Resize Grips, Borders, Gamepad + int border_held = -1; + ImU32 resize_grip_col[4] = {}; + const int resize_grip_count = g.IO.ConfigWindowsResizeFromEdges ? 2 : 1; // Allow resize from lower-left if we have the mouse cursor feedback for it. + const float resize_grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.10f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + if (handle_borders_and_resize_grips && !window->Collapsed) + if (UpdateWindowManualResize(window, size_auto_fit, &border_held, resize_grip_count, &resize_grip_col[0], visibility_rect)) + use_current_size_for_scrollbar_x = use_current_size_for_scrollbar_y = true; + window->ResizeBorderHeld = (signed char)border_held; + + // Synchronize window --> viewport again and one last time (clamping and manual resize may have affected either) + if (window->ViewportOwned) + { + if (!window->Viewport->PlatformRequestMove) + window->Viewport->Pos = window->Pos; + if (!window->Viewport->PlatformRequestResize) + window->Viewport->Size = window->Size; + window->Viewport->UpdateWorkRect(); + viewport_rect = window->Viewport->GetMainRect(); + } + + // Save last known viewport position within the window itself (so it can be saved in .ini file and restored) + window->ViewportPos = window->Viewport->Pos; + + // SCROLLBAR VISIBILITY + + // Update scrollbar visibility (based on the Size that was effective during last frame or the auto-resized Size). + if (!window->Collapsed) + { + // When reading the current size we need to read it after size constraints have been applied. + // When we use InnerRect here we are intentionally reading last frame size, same for ScrollbarSizes values before we set them again. + ImVec2 avail_size_from_current_frame = ImVec2(window->SizeFull.x, window->SizeFull.y - decoration_up_height); + ImVec2 avail_size_from_last_frame = window->InnerRect.GetSize() + window->ScrollbarSizes; + ImVec2 needed_size_from_last_frame = window_just_created ? ImVec2(0, 0) : window->ContentSize + window->WindowPadding * 2.0f; + float size_x_for_scrollbars = use_current_size_for_scrollbar_x ? avail_size_from_current_frame.x : avail_size_from_last_frame.x; + float size_y_for_scrollbars = use_current_size_for_scrollbar_y ? avail_size_from_current_frame.y : avail_size_from_last_frame.y; + //bool scrollbar_y_from_last_frame = window->ScrollbarY; // FIXME: May want to use that in the ScrollbarX expression? How many pros vs cons? + window->ScrollbarY = (flags & ImGuiWindowFlags_AlwaysVerticalScrollbar) || ((needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar)); + window->ScrollbarX = (flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar) || ((needed_size_from_last_frame.x > size_x_for_scrollbars - (window->ScrollbarY ? style.ScrollbarSize : 0.0f)) && !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar)); + if (window->ScrollbarX && !window->ScrollbarY) + window->ScrollbarY = (needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar); + window->ScrollbarSizes = ImVec2(window->ScrollbarY ? style.ScrollbarSize : 0.0f, window->ScrollbarX ? style.ScrollbarSize : 0.0f); + } + + // UPDATE RECTANGLES (1- THOSE NOT AFFECTED BY SCROLLING) + // Update various regions. Variables they depend on should be set above in this function. + // We set this up after processing the resize grip so that our rectangles doesn't lag by a frame. + + // Outer rectangle + // Not affected by window border size. Used by: + // - FindHoveredWindow() (w/ extra padding when border resize is enabled) + // - Begin() initial clipping rect for drawing window background and borders. + // - Begin() clipping whole child + const ImRect host_rect = ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) ? parent_window->ClipRect : viewport_rect; + const ImRect outer_rect = window->Rect(); + const ImRect title_bar_rect = window->TitleBarRect(); + window->OuterRectClipped = outer_rect; + if (window->DockIsActive) + window->OuterRectClipped.Min.y += window->TitleBarHeight(); + window->OuterRectClipped.ClipWith(host_rect); + + // Inner rectangle + // Not affected by window border size. Used by: + // - InnerClipRect + // - ScrollToRectEx() + // - NavUpdatePageUpPageDown() + // - Scrollbar() + window->InnerRect.Min.x = window->Pos.x; + window->InnerRect.Min.y = window->Pos.y + decoration_up_height; + window->InnerRect.Max.x = window->Pos.x + window->Size.x - window->ScrollbarSizes.x; + window->InnerRect.Max.y = window->Pos.y + window->Size.y - window->ScrollbarSizes.y; + + // Inner clipping rectangle. + // Will extend a little bit outside the normal work region. + // This is to allow e.g. Selectable or CollapsingHeader or some separators to cover that space. + // Force round operator last to ensure that e.g. (int)(max.x-min.x) in user's render code produce correct result. + // Note that if our window is collapsed we will end up with an inverted (~null) clipping rectangle which is the correct behavior. + // Affected by window/frame border size. Used by: + // - Begin() initial clip rect + float top_border_size = (((flags & ImGuiWindowFlags_MenuBar) || !(flags & ImGuiWindowFlags_NoTitleBar)) ? style.FrameBorderSize : window->WindowBorderSize); + window->InnerClipRect.Min.x = ImFloor(0.5f + window->InnerRect.Min.x + ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Min.y = ImFloor(0.5f + window->InnerRect.Min.y + top_border_size); + window->InnerClipRect.Max.x = ImFloor(0.5f + window->InnerRect.Max.x - ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Max.y = ImFloor(0.5f + window->InnerRect.Max.y - window->WindowBorderSize); + window->InnerClipRect.ClipWithFull(host_rect); + + // Default item width. Make it proportional to window size if window manually resizes + if (window->Size.x > 0.0f && !(flags & ImGuiWindowFlags_Tooltip) && !(flags & ImGuiWindowFlags_AlwaysAutoResize)) + window->ItemWidthDefault = ImFloor(window->Size.x * 0.65f); + else + window->ItemWidthDefault = ImFloor(g.FontSize * 16.0f); + + // SCROLLING + + // Lock down maximum scrolling + // The value of ScrollMax are ahead from ScrollbarX/ScrollbarY which is intentionally using InnerRect from previous rect in order to accommodate + // for right/bottom aligned items without creating a scrollbar. + window->ScrollMax.x = ImMax(0.0f, window->ContentSize.x + window->WindowPadding.x * 2.0f - window->InnerRect.GetWidth()); + window->ScrollMax.y = ImMax(0.0f, window->ContentSize.y + window->WindowPadding.y * 2.0f - window->InnerRect.GetHeight()); + + // Apply scrolling + window->Scroll = CalcNextScrollFromScrollTargetAndClamp(window); + window->ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + + // DRAWING + + // Setup draw list and outer clipping rectangle + IM_ASSERT(window->DrawList->CmdBuffer.Size == 1 && window->DrawList->CmdBuffer[0].ElemCount == 0); + window->DrawList->PushTextureID(g.Font->ContainerAtlas->TexID); + PushClipRect(host_rect.Min, host_rect.Max, false); + + // Child windows can render their decoration (bg color, border, scrollbars, etc.) within their parent to save a draw call (since 1.71) + // When using overlapping child windows, this will break the assumption that child z-order is mapped to submission order. + // FIXME: User code may rely on explicit sorting of overlapping child window and would need to disable this somehow. Please get in contact if you are affected (github #4493) + const bool is_undocked_or_docked_visible = !window->DockIsActive || window->DockTabIsVisible; + if (is_undocked_or_docked_visible) + { + bool render_decorations_in_parent = false; + if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) + { + // - We test overlap with the previous child window only (testing all would end up being O(log N) not a good investment here) + // - We disable this when the parent window has zero vertices, which is a common pattern leading to laying out multiple overlapping childs + ImGuiWindow* previous_child = parent_window->DC.ChildWindows.Size >= 2 ? parent_window->DC.ChildWindows[parent_window->DC.ChildWindows.Size - 2] : NULL; + bool previous_child_overlapping = previous_child ? previous_child->Rect().Overlaps(window->Rect()) : false; + bool parent_is_empty = parent_window->DrawList->VtxBuffer.Size > 0; + if (window->DrawList->CmdBuffer.back().ElemCount == 0 && parent_is_empty && !previous_child_overlapping) + render_decorations_in_parent = true; + } + if (render_decorations_in_parent) + window->DrawList = parent_window->DrawList; + + // Handle title bar, scrollbar, resize grips and resize borders + const ImGuiWindow* window_to_highlight = g.NavWindowingTarget ? g.NavWindowingTarget : g.NavWindow; + const bool title_bar_is_highlight = want_focus || (window_to_highlight && (window->RootWindowForTitleBarHighlight == window_to_highlight->RootWindowForTitleBarHighlight || (window->DockNode && window->DockNode == window_to_highlight->DockNode))); + RenderWindowDecorations(window, title_bar_rect, title_bar_is_highlight, handle_borders_and_resize_grips, resize_grip_count, resize_grip_col, resize_grip_draw_size); + + if (render_decorations_in_parent) + window->DrawList = &window->DrawListInst; + } + + // UPDATE RECTANGLES (2- THOSE AFFECTED BY SCROLLING) + + // Work rectangle. + // Affected by window padding and border size. Used by: + // - Columns() for right-most edge + // - TreeNode(), CollapsingHeader() for right-most edge + // - BeginTabBar() for right-most edge + const bool allow_scrollbar_x = !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar); + const bool allow_scrollbar_y = !(flags & ImGuiWindowFlags_NoScrollbar); + const float work_rect_size_x = (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : ImMax(allow_scrollbar_x ? window->ContentSize.x : 0.0f, window->Size.x - window->WindowPadding.x * 2.0f - window->ScrollbarSizes.x)); + const float work_rect_size_y = (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : ImMax(allow_scrollbar_y ? window->ContentSize.y : 0.0f, window->Size.y - window->WindowPadding.y * 2.0f - decoration_up_height - window->ScrollbarSizes.y)); + window->WorkRect.Min.x = ImFloor(window->InnerRect.Min.x - window->Scroll.x + ImMax(window->WindowPadding.x, window->WindowBorderSize)); + window->WorkRect.Min.y = ImFloor(window->InnerRect.Min.y - window->Scroll.y + ImMax(window->WindowPadding.y, window->WindowBorderSize)); + window->WorkRect.Max.x = window->WorkRect.Min.x + work_rect_size_x; + window->WorkRect.Max.y = window->WorkRect.Min.y + work_rect_size_y; + window->ParentWorkRect = window->WorkRect; + + // [LEGACY] Content Region + // FIXME-OBSOLETE: window->ContentRegionRect.Max is currently very misleading / partly faulty, but some BeginChild() patterns relies on it. + // Used by: + // - Mouse wheel scrolling + many other things + window->ContentRegionRect.Min.x = window->Pos.x - window->Scroll.x + window->WindowPadding.x; + window->ContentRegionRect.Min.y = window->Pos.y - window->Scroll.y + window->WindowPadding.y + decoration_up_height; + window->ContentRegionRect.Max.x = window->ContentRegionRect.Min.x + (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : (window->Size.x - window->WindowPadding.x * 2.0f - window->ScrollbarSizes.x)); + window->ContentRegionRect.Max.y = window->ContentRegionRect.Min.y + (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : (window->Size.y - window->WindowPadding.y * 2.0f - decoration_up_height - window->ScrollbarSizes.y)); + + // Setup drawing context + // (NB: That term "drawing context / DC" lost its meaning a long time ago. Initially was meant to hold transient data only. Nowadays difference between window-> and window->DC-> is dubious.) + window->DC.Indent.x = 0.0f + window->WindowPadding.x - window->Scroll.x; + window->DC.GroupOffset.x = 0.0f; + window->DC.ColumnsOffset.x = 0.0f; + + // Record the loss of precision of CursorStartPos which can happen due to really large scrolling amount. + // This is used by clipper to compensate and fix the most common use case of large scroll area. Easy and cheap, next best thing compared to switching everything to double or ImU64. + double start_pos_highp_x = (double)window->Pos.x + window->WindowPadding.x - (double)window->Scroll.x + window->DC.ColumnsOffset.x; + double start_pos_highp_y = (double)window->Pos.y + window->WindowPadding.y - (double)window->Scroll.y + decoration_up_height; + window->DC.CursorStartPos = ImVec2((float)start_pos_highp_x, (float)start_pos_highp_y); + window->DC.CursorStartPosLossyness = ImVec2((float)(start_pos_highp_x - window->DC.CursorStartPos.x), (float)(start_pos_highp_y - window->DC.CursorStartPos.y)); + window->DC.CursorPos = window->DC.CursorStartPos; + window->DC.CursorPosPrevLine = window->DC.CursorPos; + window->DC.CursorMaxPos = window->DC.CursorStartPos; + window->DC.IdealMaxPos = window->DC.CursorStartPos; + window->DC.CurrLineSize = window->DC.PrevLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.NavLayersActiveMask = window->DC.NavLayersActiveMaskNext; + window->DC.NavLayersActiveMaskNext = 0x00; + window->DC.NavHideHighlightOneFrame = false; + window->DC.NavHasScroll = (window->ScrollMax.y > 0.0f); + + window->DC.MenuBarAppending = false; + window->DC.MenuColumns.Update(style.ItemSpacing.x, window_just_activated_by_user); + window->DC.TreeDepth = 0; + window->DC.TreeJumpToParentOnPopMask = 0x00; + window->DC.ChildWindows.resize(0); + window->DC.StateStorage = &window->StateStorage; + window->DC.CurrentColumns = NULL; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.ParentLayoutType = parent_window ? parent_window->DC.LayoutType : ImGuiLayoutType_Vertical; + + window->DC.ItemWidth = window->ItemWidthDefault; + window->DC.TextWrapPos = -1.0f; // disabled + window->DC.ItemWidthStack.resize(0); + window->DC.TextWrapPosStack.resize(0); + + if (window->AutoFitFramesX > 0) + window->AutoFitFramesX--; + if (window->AutoFitFramesY > 0) + window->AutoFitFramesY--; + + // Apply focus (we need to call FocusWindow() AFTER setting DC.CursorStartPos so our initial navigation reference rectangle can start around there) + if (want_focus) + { + FocusWindow(window); + NavInitWindow(window, false); // <-- this is in the way for us to be able to defer and sort reappearing FocusWindow() calls + } + + // Close requested by platform window + if (p_open != NULL && window->Viewport->PlatformRequestClose && window->Viewport != GetMainViewport()) + { + if (!window->DockIsActive || window->DockTabIsVisible) + { + window->Viewport->PlatformRequestClose = false; + g.NavWindowingToggleLayer = false; // Assume user mapped PlatformRequestClose on ALT-F4 so we disable ALT for menu toggle. False positive not an issue. + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Window '%s' PlatformRequestClose\n", window->Name); + *p_open = false; + } + } + + // Title bar + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive) + RenderWindowTitleBarContents(window, ImRect(title_bar_rect.Min.x + window->WindowBorderSize, title_bar_rect.Min.y, title_bar_rect.Max.x - window->WindowBorderSize, title_bar_rect.Max.y), name, p_open); + + // Clear hit test shape every frame + window->HitTestHoleSize.x = window->HitTestHoleSize.y = 0; + + // Pressing CTRL+C while holding on a window copy its content to the clipboard + // This works but 1. doesn't handle multiple Begin/End pairs, 2. recursing into another Begin/End pair - so we need to work that out and add better logging scope. + // Maybe we can support CTRL+C on every element? + /* + //if (g.NavWindow == window && g.ActiveId == 0) + if (g.ActiveId == window->MoveId) + if (g.IO.KeyCtrl && IsKeyPressed(ImGuiKey_C)) + LogToClipboard(); + */ + + if (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable) + { + // Docking: Dragging a dockable window (or any of its child) turns it into a drag and drop source. + // We need to do this _before_ we overwrite window->DC.LastItemId below because BeginDockableDragDropSource() also overwrites it. + if ((g.MovingWindow == window) && (g.IO.ConfigDockingWithShift == g.IO.KeyShift)) + if ((window->RootWindowDockTree->Flags & ImGuiWindowFlags_NoDocking) == 0) + BeginDockableDragDropSource(window); + + // Docking: Any dockable window can act as a target. For dock node hosts we call BeginDockableDragDropTarget() in DockNodeUpdate() instead. + if (g.DragDropActive && !(flags & ImGuiWindowFlags_NoDocking)) + if (g.MovingWindow == NULL || g.MovingWindow->RootWindowDockTree != window) + if ((window == window->RootWindowDockTree) && !(window->Flags & ImGuiWindowFlags_DockNodeHost)) + BeginDockableDragDropTarget(window); + } + + // We fill last item data based on Title Bar/Tab, in order for IsItemHovered() and IsItemActive() to be usable after Begin(). + // This is useful to allow creating context menus on title bar only, etc. + if (window->DockIsActive) + SetLastItemData(window->MoveId, g.CurrentItemFlags, window->DockTabItemStatusFlags, window->DockTabItemRect); + else + SetLastItemData(window->MoveId, g.CurrentItemFlags, IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max, false) ? ImGuiItemStatusFlags_HoveredRect : 0, title_bar_rect); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (g.DebugLocateId != 0 && (window->ID == g.DebugLocateId || window->MoveId == g.DebugLocateId)) + DebugLocateItemResolveWithLastItem(); +#endif + + // [Test Engine] Register title bar / tab +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (!(window->Flags & ImGuiWindowFlags_NoTitleBar)) + IMGUI_TEST_ENGINE_ITEM_ADD(g.LastItemData.Rect, g.LastItemData.ID); +#endif + } + else + { + // Append + SetCurrentViewport(window, window->Viewport); + SetCurrentWindow(window); + } + + if (!(flags & ImGuiWindowFlags_DockNodeHost)) + PushClipRect(window->InnerClipRect.Min, window->InnerClipRect.Max, true); + + // Clear 'accessed' flag last thing (After PushClipRect which will set the flag. We want the flag to stay false when the default "Debug" window is unused) + window->WriteAccessed = false; + window->BeginCount++; + g.NextWindowData.ClearFlags(); + + // Update visibility + if (first_begin_of_the_frame) + { + // When we are about to select this tab (which will only be visible on the _next frame_), flag it with a non-zero HiddenFramesCannotSkipItems. + // This will have the important effect of actually returning true in Begin() and not setting SkipItems, allowing an earlier submission of the window contents. + // This is analogous to regular windows being hidden from one frame. + // It is especially important as e.g. nested TabBars would otherwise generate flicker in the form of one empty frame, or focus requests won't be processed. + if (window->DockIsActive && !window->DockTabIsVisible) + { + if (window->LastFrameJustFocused == g.FrameCount) + window->HiddenFramesCannotSkipItems = 1; + else + window->HiddenFramesCanSkipItems = 1; + } + + if (flags & ImGuiWindowFlags_ChildWindow) + { + // Child window can be out of sight and have "negative" clip windows. + // Mark them as collapsed so commands are skipped earlier (we can't manually collapse them because they have no title bar). + IM_ASSERT((flags& ImGuiWindowFlags_NoTitleBar) != 0 || (window->DockIsActive)); + if (!(flags & ImGuiWindowFlags_AlwaysAutoResize) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) // FIXME: Doesn't make sense for ChildWindow?? + { + const bool nav_request = (flags & ImGuiWindowFlags_NavFlattened) && (g.NavAnyRequest && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (!g.LogEnabled && !nav_request) + if (window->OuterRectClipped.Min.x >= window->OuterRectClipped.Max.x || window->OuterRectClipped.Min.y >= window->OuterRectClipped.Max.y) + window->HiddenFramesCanSkipItems = 1; + } + + // Hide along with parent or if parent is collapsed + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCanSkipItems > 0)) + window->HiddenFramesCanSkipItems = 1; + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCannotSkipItems > 0)) + window->HiddenFramesCannotSkipItems = 1; + } + + // Don't render if style alpha is 0.0 at the time of Begin(). This is arbitrary and inconsistent but has been there for a long while (may remove at some point) + if (style.Alpha <= 0.0f) + window->HiddenFramesCanSkipItems = 1; + + // Update the Hidden flag + bool hidden_regular = (window->HiddenFramesCanSkipItems > 0) || (window->HiddenFramesCannotSkipItems > 0); + window->Hidden = hidden_regular || (window->HiddenFramesForRenderOnly > 0); + + // Disable inputs for requested number of frames + if (window->DisableInputsFrames > 0) + { + window->DisableInputsFrames--; + window->Flags |= ImGuiWindowFlags_NoInputs; + } + + // Update the SkipItems flag, used to early out of all items functions (no layout required) + bool skip_items = false; + if (window->Collapsed || !window->Active || hidden_regular) + if (window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0 && window->HiddenFramesCannotSkipItems <= 0) + skip_items = true; + window->SkipItems = skip_items; + + // Restore NavLayersActiveMaskNext to previous value when not visible, so a CTRL+Tab back can use a safe value. + if (window->SkipItems) + window->DC.NavLayersActiveMaskNext = window->DC.NavLayersActiveMask; + + // Sanity check: there are two spots which can set Appearing = true + // - when 'window_just_activated_by_user' is set -> HiddenFramesCannotSkipItems is set -> SkipItems always false + // - in BeginDocked() path when DockNodeIsVisible == DockTabIsVisible == true -> hidden _should_ be all zero // FIXME: Not formally proven, hence the assert. + if (window->SkipItems && !window->Appearing) + IM_ASSERT(window->Appearing == false); // Please report on GitHub if this triggers: https://github.com/ocornut/imgui/issues/4177 + } + + return !window->SkipItems; +} + +void ImGui::End() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Error checking: verify that user hasn't called End() too many times! + if (g.CurrentWindowStack.Size <= 1 && g.WithinFrameScopeWithImplicitWindow) + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size > 1, "Calling End() too many times!"); + return; + } + IM_ASSERT(g.CurrentWindowStack.Size > 0); + + // Error checking: verify that user doesn't directly call End() on a child window. + if ((window->Flags & ImGuiWindowFlags_ChildWindow) && !(window->Flags & ImGuiWindowFlags_DockNodeHost) && !window->DockIsActive) + IM_ASSERT_USER_ERROR(g.WithinEndChild, "Must call EndChild() and not End()!"); + + // Close anything that is open + if (window->DC.CurrentColumns) + EndColumns(); + if (!(window->Flags & ImGuiWindowFlags_DockNodeHost)) // Pop inner window clip rectangle + PopClipRect(); + PopFocusScope(); + + // Stop logging + if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) // FIXME: add more options for scope of logging + LogFinish(); + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + // Docking: report contents sizes to parent to allow for auto-resize + if (window->DockNode && window->DockTabIsVisible) + if (ImGuiWindow* host_window = window->DockNode->HostWindow) // FIXME-DOCK + host_window->DC.CursorMaxPos = window->DC.CursorMaxPos + window->WindowPadding - host_window->WindowPadding; + + // Pop from window stack + g.LastItemData = g.CurrentWindowStack.back().ParentLastItemDataBackup; + if (window->Flags & ImGuiWindowFlags_ChildMenu) + g.BeginMenuCount--; + if (window->Flags & ImGuiWindowFlags_Popup) + g.BeginPopupStack.pop_back(); + g.CurrentWindowStack.back().StackSizesOnBegin.CompareWithCurrentState(); + g.CurrentWindowStack.pop_back(); + SetCurrentWindow(g.CurrentWindowStack.Size == 0 ? NULL : g.CurrentWindowStack.back().Window); + if (g.CurrentWindow) + SetCurrentViewport(g.CurrentWindow, g.CurrentWindow->Viewport); +} + +void ImGui::BringWindowToFocusFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(window == window->RootWindow); + + const int cur_order = window->FocusOrder; + IM_ASSERT(g.WindowsFocusOrder[cur_order] == window); + if (g.WindowsFocusOrder.back() == window) + return; + + const int new_order = g.WindowsFocusOrder.Size - 1; + for (int n = cur_order; n < new_order; n++) + { + g.WindowsFocusOrder[n] = g.WindowsFocusOrder[n + 1]; + g.WindowsFocusOrder[n]->FocusOrder--; + IM_ASSERT(g.WindowsFocusOrder[n]->FocusOrder == n); + } + g.WindowsFocusOrder[new_order] = window; + window->FocusOrder = (short)new_order; +} + +void ImGui::BringWindowToDisplayFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* current_front_window = g.Windows.back(); + if (current_front_window == window || current_front_window->RootWindowDockTree == window) // Cheap early out (could be better) + return; + for (int i = g.Windows.Size - 2; i >= 0; i--) // We can ignore the top-most window + if (g.Windows[i] == window) + { + memmove(&g.Windows[i], &g.Windows[i + 1], (size_t)(g.Windows.Size - i - 1) * sizeof(ImGuiWindow*)); + g.Windows[g.Windows.Size - 1] = window; + break; + } +} + +void ImGui::BringWindowToDisplayBack(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.Windows[0] == window) + return; + for (int i = 0; i < g.Windows.Size; i++) + if (g.Windows[i] == window) + { + memmove(&g.Windows[1], &g.Windows[0], (size_t)i * sizeof(ImGuiWindow*)); + g.Windows[0] = window; + break; + } +} + +void ImGui::BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* behind_window) +{ + IM_ASSERT(window != NULL && behind_window != NULL); + ImGuiContext& g = *GImGui; + window = window->RootWindow; + behind_window = behind_window->RootWindow; + int pos_wnd = FindWindowDisplayIndex(window); + int pos_beh = FindWindowDisplayIndex(behind_window); + if (pos_wnd < pos_beh) + { + size_t copy_bytes = (pos_beh - pos_wnd - 1) * sizeof(ImGuiWindow*); + memmove(&g.Windows.Data[pos_wnd], &g.Windows.Data[pos_wnd + 1], copy_bytes); + g.Windows[pos_beh - 1] = window; + } + else + { + size_t copy_bytes = (pos_wnd - pos_beh) * sizeof(ImGuiWindow*); + memmove(&g.Windows.Data[pos_beh + 1], &g.Windows.Data[pos_beh], copy_bytes); + g.Windows[pos_beh] = window; + } +} + +int ImGui::FindWindowDisplayIndex(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + return g.Windows.index_from_ptr(g.Windows.find(window)); +} + +// Moving window to front of display and set focus (which happens to be back of our sorted list) +void ImGui::FocusWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + if (g.NavWindow != window) + { + SetNavWindow(window); + if (window && g.NavDisableMouseHover) + g.NavMousePosDirty = true; + g.NavId = window ? window->NavLastIds[0] : 0; // Restore NavId + g.NavLayer = ImGuiNavLayer_Main; + g.NavFocusScopeId = window ? window->NavRootFocusScopeId : 0; + g.NavIdIsAlive = false; + + // Close popups if any + ClosePopupsOverWindow(window, false); + } + + // Move the root window to the top of the pile + IM_ASSERT(window == NULL || window->RootWindowDockTree != NULL); + ImGuiWindow* focus_front_window = window ? window->RootWindow : NULL; + ImGuiWindow* display_front_window = window ? window->RootWindowDockTree : NULL; + ImGuiDockNode* dock_node = window ? window->DockNode : NULL; + bool active_id_window_is_dock_node_host = (g.ActiveIdWindow && dock_node && dock_node->HostWindow == g.ActiveIdWindow); + + // Steal active widgets. Some of the cases it triggers includes: + // - Focus a window while an InputText in another window is active, if focus happens before the old InputText can run. + // - When using Nav to activate menu items (due to timing of activating on press->new window appears->losing ActiveId) + // - Using dock host items (tab, collapse button) can trigger this before we redirect the ActiveIdWindow toward the child window. + if (g.ActiveId != 0 && g.ActiveIdWindow && g.ActiveIdWindow->RootWindow != focus_front_window) + if (!g.ActiveIdNoClearOnFocusLoss && !active_id_window_is_dock_node_host) + ClearActiveID(); + + // Passing NULL allow to disable keyboard focus + if (!window) + return; + window->LastFrameJustFocused = g.FrameCount; + + // Select in dock node + if (dock_node && dock_node->TabBar) + dock_node->TabBar->SelectedTabId = dock_node->TabBar->NextSelectedTabId = window->TabId; + + // Bring to front + BringWindowToFocusFront(focus_front_window); + if (((window->Flags | focus_front_window->Flags | display_front_window->Flags) & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0) + BringWindowToDisplayFront(display_front_window); +} + +void ImGui::FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window) +{ + ImGuiContext& g = *GImGui; + int start_idx = g.WindowsFocusOrder.Size - 1; + if (under_this_window != NULL) + { + // Aim at root window behind us, if we are in a child window that's our own root (see #4640) + int offset = -1; + while (under_this_window->Flags & ImGuiWindowFlags_ChildWindow) + { + under_this_window = under_this_window->ParentWindow; + offset = 0; + } + start_idx = FindWindowFocusIndex(under_this_window) + offset; + } + for (int i = start_idx; i >= 0; i--) + { + // We may later decide to test for different NoXXXInputs based on the active navigation input (mouse vs nav) but that may feel more confusing to the user. + ImGuiWindow* window = g.WindowsFocusOrder[i]; + IM_ASSERT(window == window->RootWindow); + if (window != ignore_window && window->WasActive) + if ((window->Flags & (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) != (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) + { + // FIXME-DOCK: This is failing (lagging by one frame) for docked windows. + // If A and B are docked into window and B disappear, at the NewFrame() call site window->NavLastChildNavWindow will still point to B. + // We might leverage the tab order implicitly stored in window->DockNodeAsHost->TabBar (essentially the 'most_recently_selected_tab' code in tab bar will do that but on next update) + // to tell which is the "previous" window. Or we may leverage 'LastFrameFocused/LastFrameJustFocused' and have this function handle child window itself? + ImGuiWindow* focus_window = NavRestoreLastChildNavWindow(window); + FocusWindow(focus_window); + return; + } + } + FocusWindow(NULL); +} + +// Important: this alone doesn't alter current ImDrawList state. This is called by PushFont/PopFont only. +void ImGui::SetCurrentFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(font && font->IsLoaded()); // Font Atlas not created. Did you call io.Fonts->GetTexDataAsRGBA32 / GetTexDataAsAlpha8 ? + IM_ASSERT(font->Scale > 0.0f); + g.Font = font; + g.FontBaseSize = ImMax(1.0f, g.IO.FontGlobalScale * g.Font->FontSize * g.Font->Scale); + g.FontSize = g.CurrentWindow ? g.CurrentWindow->CalcFontSize() : 0.0f; + + ImFontAtlas* atlas = g.Font->ContainerAtlas; + g.DrawListSharedData.TexUvWhitePixel = atlas->TexUvWhitePixel; + g.DrawListSharedData.TexUvLines = atlas->TexUvLines; + g.DrawListSharedData.Font = g.Font; + g.DrawListSharedData.FontSize = g.FontSize; +} + +void ImGui::PushFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + if (!font) + font = GetDefaultFont(); + SetCurrentFont(font); + g.FontStack.push_back(font); + g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID); +} + +void ImGui::PopFont() +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow->DrawList->PopTextureID(); + g.FontStack.pop_back(); + SetCurrentFont(g.FontStack.empty() ? GetDefaultFont() : g.FontStack.back()); +} + +void ImGui::PushItemFlag(ImGuiItemFlags option, bool enabled) +{ + ImGuiContext& g = *GImGui; + ImGuiItemFlags item_flags = g.CurrentItemFlags; + IM_ASSERT(item_flags == g.ItemFlagsStack.back()); + if (enabled) + item_flags |= option; + else + item_flags &= ~option; + g.CurrentItemFlags = item_flags; + g.ItemFlagsStack.push_back(item_flags); +} + +void ImGui::PopItemFlag() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ItemFlagsStack.Size > 1); // Too many calls to PopItemFlag() - we always leave a 0 at the bottom of the stack. + g.ItemFlagsStack.pop_back(); + g.CurrentItemFlags = g.ItemFlagsStack.back(); +} + +// BeginDisabled()/EndDisabled() +// - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) +// - Visually this is currently altering alpha, but it is expected that in a future styling system this would work differently. +// - Feedback welcome at https://github.com/ocornut/imgui/issues/211 +// - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it. +// - Optimized shortcuts instead of PushStyleVar() + PushItemFlag() +void ImGui::BeginDisabled(bool disabled) +{ + ImGuiContext& g = *GImGui; + bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + if (!was_disabled && disabled) + { + g.DisabledAlphaBackup = g.Style.Alpha; + g.Style.Alpha *= g.Style.DisabledAlpha; // PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * g.Style.DisabledAlpha); + } + if (was_disabled || disabled) + g.CurrentItemFlags |= ImGuiItemFlags_Disabled; + g.ItemFlagsStack.push_back(g.CurrentItemFlags); + g.DisabledStackSize++; +} + +void ImGui::EndDisabled() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DisabledStackSize > 0); + g.DisabledStackSize--; + bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + //PopItemFlag(); + g.ItemFlagsStack.pop_back(); + g.CurrentItemFlags = g.ItemFlagsStack.back(); + if (was_disabled && (g.CurrentItemFlags & ImGuiItemFlags_Disabled) == 0) + g.Style.Alpha = g.DisabledAlphaBackup; //PopStyleVar(); +} + +// FIXME: Look into renaming this once we have settled the new Focus/Activation/TabStop system. +void ImGui::PushAllowKeyboardFocus(bool allow_keyboard_focus) +{ + PushItemFlag(ImGuiItemFlags_NoTabStop, !allow_keyboard_focus); +} + +void ImGui::PopAllowKeyboardFocus() +{ + PopItemFlag(); +} + +void ImGui::PushButtonRepeat(bool repeat) +{ + PushItemFlag(ImGuiItemFlags_ButtonRepeat, repeat); +} + +void ImGui::PopButtonRepeat() +{ + PopItemFlag(); +} + +void ImGui::PushTextWrapPos(float wrap_pos_x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPosStack.push_back(window->DC.TextWrapPos); + window->DC.TextWrapPos = wrap_pos_x; +} + +void ImGui::PopTextWrapPos() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPos = window->DC.TextWrapPosStack.back(); + window->DC.TextWrapPosStack.pop_back(); +} + +static ImGuiWindow* GetCombinedRootWindow(ImGuiWindow* window, bool popup_hierarchy, bool dock_hierarchy) +{ + ImGuiWindow* last_window = NULL; + while (last_window != window) + { + last_window = window; + window = window->RootWindow; + if (popup_hierarchy) + window = window->RootWindowPopupTree; + if (dock_hierarchy) + window = window->RootWindowDockTree; + } + return window; +} + +bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy) +{ + ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy, dock_hierarchy); + if (window_root == potential_parent) + return true; + while (window != NULL) + { + if (window == potential_parent) + return true; + if (window == window_root) // end of chain + return false; + window = window->ParentWindow; + } + return false; +} + +bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent) +{ + if (window->RootWindow == potential_parent) + return true; + while (window != NULL) + { + if (window == potential_parent) + return true; + window = window->ParentWindowInBeginStack; + } + return false; +} + +bool ImGui::IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below) +{ + ImGuiContext& g = *GImGui; + + // It would be saner to ensure that display layer is always reflected in the g.Windows[] order, which would likely requires altering all manipulations of that array + const int display_layer_delta = GetWindowDisplayLayer(potential_above) - GetWindowDisplayLayer(potential_below); + if (display_layer_delta != 0) + return display_layer_delta > 0; + + for (int i = g.Windows.Size - 1; i >= 0; i--) + { + ImGuiWindow* candidate_window = g.Windows[i]; + if (candidate_window == potential_above) + return true; + if (candidate_window == potential_below) + return false; + } + return false; +} + +bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags) +{ + IM_ASSERT((flags & (ImGuiHoveredFlags_AllowWhenOverlapped | ImGuiHoveredFlags_AllowWhenDisabled)) == 0); // Flags not supported by this function + ImGuiContext& g = *GImGui; + ImGuiWindow* ref_window = g.HoveredWindow; + ImGuiWindow* cur_window = g.CurrentWindow; + if (ref_window == NULL) + return false; + + if ((flags & ImGuiHoveredFlags_AnyWindow) == 0) + { + IM_ASSERT(cur_window); // Not inside a Begin()/End() + const bool popup_hierarchy = (flags & ImGuiHoveredFlags_NoPopupHierarchy) == 0; + const bool dock_hierarchy = (flags & ImGuiHoveredFlags_DockHierarchy) != 0; + if (flags & ImGuiHoveredFlags_RootWindow) + cur_window = GetCombinedRootWindow(cur_window, popup_hierarchy, dock_hierarchy); + + bool result; + if (flags & ImGuiHoveredFlags_ChildWindows) + result = IsWindowChildOf(ref_window, cur_window, popup_hierarchy, dock_hierarchy); + else + result = (ref_window == cur_window); + if (!result) + return false; + } + + if (!IsWindowContentHoverable(ref_window, flags)) + return false; + if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap && g.ActiveId != ref_window->MoveId) + return false; + return true; +} + +bool ImGui::IsWindowFocused(ImGuiFocusedFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* ref_window = g.NavWindow; + ImGuiWindow* cur_window = g.CurrentWindow; + + if (ref_window == NULL) + return false; + if (flags & ImGuiFocusedFlags_AnyWindow) + return true; + + IM_ASSERT(cur_window); // Not inside a Begin()/End() + const bool popup_hierarchy = (flags & ImGuiFocusedFlags_NoPopupHierarchy) == 0; + const bool dock_hierarchy = (flags & ImGuiFocusedFlags_DockHierarchy) != 0; + if (flags & ImGuiHoveredFlags_RootWindow) + cur_window = GetCombinedRootWindow(cur_window, popup_hierarchy, dock_hierarchy); + + if (flags & ImGuiHoveredFlags_ChildWindows) + return IsWindowChildOf(ref_window, cur_window, popup_hierarchy, dock_hierarchy); + else + return (ref_window == cur_window); +} + +ImGuiID ImGui::GetWindowDockID() +{ + ImGuiContext& g = *GImGui; + return g.CurrentWindow->DockId; +} + +bool ImGui::IsWindowDocked() +{ + ImGuiContext& g = *GImGui; + return g.CurrentWindow->DockIsActive; +} + +// Can we focus this window with CTRL+TAB (or PadMenu + PadFocusPrev/PadFocusNext) +// Note that NoNavFocus makes the window not reachable with CTRL+TAB but it can still be focused with mouse or programmatically. +// If you want a window to never be focused, you may use the e.g. NoInputs flag. +bool ImGui::IsWindowNavFocusable(ImGuiWindow* window) +{ + return window->WasActive && window == window->RootWindow && !(window->Flags & ImGuiWindowFlags_NoNavFocus); +} + +float ImGui::GetWindowWidth() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.x; +} + +float ImGui::GetWindowHeight() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.y; +} + +ImVec2 ImGui::GetWindowPos() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + return window->Pos; +} + +void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowPosAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + window->SetWindowPosVal = ImVec2(FLT_MAX, FLT_MAX); + + // Set + const ImVec2 old_pos = window->Pos; + window->Pos = ImFloor(pos); + ImVec2 offset = window->Pos - old_pos; + if (offset.x == 0.0f && offset.y == 0.0f) + return; + MarkIniSettingsDirty(window); + // FIXME: share code with TranslateWindow(), need to confirm whether the 3 rect modified by TranslateWindow() are desirable here. + window->DC.CursorPos += offset; // As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor + window->DC.CursorMaxPos += offset; // And more importantly we need to offset CursorMaxPos/CursorStartPos this so ContentSize calculation doesn't get affected. + window->DC.IdealMaxPos += offset; + window->DC.CursorStartPos += offset; +} + +void ImGui::SetWindowPos(const ImVec2& pos, ImGuiCond cond) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + SetWindowPos(window, pos, cond); +} + +void ImGui::SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowPos(window, pos, cond); +} + +ImVec2 ImGui::GetWindowSize() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Size; +} + +void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowSizeAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowSizeAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + ImVec2 old_size = window->SizeFull; + window->AutoFitFramesX = (size.x <= 0.0f) ? 2 : 0; + window->AutoFitFramesY = (size.y <= 0.0f) ? 2 : 0; + if (size.x <= 0.0f) + window->AutoFitOnlyGrows = false; + else + window->SizeFull.x = IM_FLOOR(size.x); + if (size.y <= 0.0f) + window->AutoFitOnlyGrows = false; + else + window->SizeFull.y = IM_FLOOR(size.y); + if (old_size.x != window->SizeFull.x || old_size.y != window->SizeFull.y) + MarkIniSettingsDirty(window); +} + +void ImGui::SetWindowSize(const ImVec2& size, ImGuiCond cond) +{ + SetWindowSize(GImGui->CurrentWindow, size, cond); +} + +void ImGui::SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowSize(window, size, cond); +} + +void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0) + return; + window->SetWindowCollapsedAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + window->Collapsed = collapsed; +} + +void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size) +{ + IM_ASSERT(window->HitTestHoleSize.x == 0); // We don't support multiple holes/hit test filters + window->HitTestHoleSize = ImVec2ih(size); + window->HitTestHoleOffset = ImVec2ih(pos - window->Pos); +} + +void ImGui::SetWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + SetWindowCollapsed(GImGui->CurrentWindow, collapsed, cond); +} + +bool ImGui::IsWindowCollapsed() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Collapsed; +} + +bool ImGui::IsWindowAppearing() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Appearing; +} + +void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowCollapsed(window, collapsed, cond); +} + +void ImGui::SetWindowFocus() +{ + FocusWindow(GImGui->CurrentWindow); +} + +void ImGui::SetWindowFocus(const char* name) +{ + if (name) + { + if (ImGuiWindow* window = FindWindowByName(name)) + FocusWindow(window); + } + else + { + FocusWindow(NULL); + } +} + +void ImGui::SetNextWindowPos(const ImVec2& pos, ImGuiCond cond, const ImVec2& pivot) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasPos; + g.NextWindowData.PosVal = pos; + g.NextWindowData.PosPivotVal = pivot; + g.NextWindowData.PosCond = cond ? cond : ImGuiCond_Always; + g.NextWindowData.PosUndock = true; +} + +void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSize; + g.NextWindowData.SizeVal = size; + g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback, void* custom_callback_user_data) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSizeConstraint; + g.NextWindowData.SizeConstraintRect = ImRect(size_min, size_max); + g.NextWindowData.SizeCallback = custom_callback; + g.NextWindowData.SizeCallbackUserData = custom_callback_user_data; +} + +// Content size = inner scrollable rectangle, padded with WindowPadding. +// SetNextWindowContentSize(ImVec2(100,100) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item. +void ImGui::SetNextWindowContentSize(const ImVec2& size) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasContentSize; + g.NextWindowData.ContentSizeVal = ImFloor(size); +} + +void ImGui::SetNextWindowScroll(const ImVec2& scroll) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasScroll; + g.NextWindowData.ScrollVal = scroll; +} + +void ImGui::SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasCollapsed; + g.NextWindowData.CollapsedVal = collapsed; + g.NextWindowData.CollapsedCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowFocus() +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasFocus; +} + +void ImGui::SetNextWindowBgAlpha(float alpha) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasBgAlpha; + g.NextWindowData.BgAlphaVal = alpha; +} + +void ImGui::SetNextWindowViewport(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasViewport; + g.NextWindowData.ViewportId = id; +} + +void ImGui::SetNextWindowDockID(ImGuiID id, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasDock; + g.NextWindowData.DockCond = cond ? cond : ImGuiCond_Always; + g.NextWindowData.DockId = id; +} + +void ImGui::SetNextWindowClass(const ImGuiWindowClass* window_class) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT((window_class->ViewportFlagsOverrideSet & window_class->ViewportFlagsOverrideClear) == 0); // Cannot set both set and clear for the same bit + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasWindowClass; + g.NextWindowData.WindowClass = *window_class; +} + +ImDrawList* ImGui::GetWindowDrawList() +{ + ImGuiWindow* window = GetCurrentWindow(); + return window->DrawList; +} + +float ImGui::GetWindowDpiScale() +{ + ImGuiContext& g = *GImGui; + return g.CurrentDpiScale; +} + +ImGuiViewport* ImGui::GetWindowViewport() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.CurrentViewport != NULL && g.CurrentViewport == g.CurrentWindow->Viewport); + return g.CurrentViewport; +} + +ImFont* ImGui::GetFont() +{ + return GImGui->Font; +} + +float ImGui::GetFontSize() +{ + return GImGui->FontSize; +} + +ImVec2 ImGui::GetFontTexUvWhitePixel() +{ + return GImGui->DrawListSharedData.TexUvWhitePixel; +} + +void ImGui::SetWindowFontScale(float scale) +{ + IM_ASSERT(scale > 0.0f); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->FontWindowScale = scale; + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); +} + +void ImGui::ActivateItem(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.NavNextActivateId = id; + g.NavNextActivateFlags = ImGuiActivateFlags_None; +} + +void ImGui::PushFocusScope(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.FocusScopeStack.push_back(id); + g.CurrentFocusScopeId = id; +} + +void ImGui::PopFocusScope() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.FocusScopeStack.Size > 0); // Too many PopFocusScope() ? + g.FocusScopeStack.pop_back(); + g.CurrentFocusScopeId = g.FocusScopeStack.Size ? g.FocusScopeStack.back() : 0; +} + +// Note: this will likely be called ActivateItem() once we rework our Focus/Activation system! +void ImGui::SetKeyboardFocusHere(int offset) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(offset >= -1); // -1 is allowed but not below + IMGUI_DEBUG_LOG_ACTIVEID("SetKeyboardFocusHere(%d) in window \"%s\"\n", offset, window->Name); + + // It makes sense in the vast majority of cases to never interrupt a drag and drop. + // When we refactor this function into ActivateItem() we may want to make this an option. + // MovingWindow is protected from most user inputs using SetActiveIdUsingNavAndKeys(), but + // is also automatically dropped in the event g.ActiveId is stolen. + if (g.DragDropActive || g.MovingWindow != NULL) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetKeyboardFocusHere() ignored while DragDropActive!\n"); + return; + } + + SetNavWindow(window); + + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + NavMoveRequestSubmit(ImGuiDir_None, offset < 0 ? ImGuiDir_Up : ImGuiDir_Down, ImGuiNavMoveFlags_Tabbing | ImGuiNavMoveFlags_FocusApi, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. + if (offset == -1) + { + NavMoveRequestResolveWithLastItem(&g.NavMoveResultLocal); + } + else + { + g.NavTabbingDir = 1; + g.NavTabbingCounter = offset + 1; + } +} + +void ImGui::SetItemDefaultFocus() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!window->Appearing) + return; + if (g.NavWindow != window->RootWindowForNav || (!g.NavInitRequest && g.NavInitResultId == 0) || g.NavLayer != window->DC.NavLayerCurrent) + return; + + g.NavInitRequest = false; + g.NavInitResultId = g.LastItemData.ID; + g.NavInitResultRectRel = WindowRectAbsToRel(window, g.LastItemData.Rect); + NavUpdateAnyRequestFlag(); + + // Scroll could be done in NavInitRequestApplyResult() via an opt-in flag (we however don't want regular init requests to scroll) + if (!IsItemVisible()) + ScrollToRectEx(window, g.LastItemData.Rect, ImGuiScrollFlags_None); +} + +void ImGui::SetStateStorage(ImGuiStorage* tree) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + window->DC.StateStorage = tree ? tree : &window->StateStorage; +} + +ImGuiStorage* ImGui::GetStateStorage() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->DC.StateStorage; +} + +void ImGui::PushID(const char* str_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id_begin, str_id_end); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const void* ptr_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(ptr_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(int int_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(int_id); + window->IDStack.push_back(id); +} + +// Push a given id value ignoring the ID stack as a seed. +void ImGui::PushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_ID, NULL, NULL); + window->IDStack.push_back(id); +} + +// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call +// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level. +// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more) +ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed) +{ + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); + return id; +} + +void ImGui::PopID() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + IM_ASSERT(window->IDStack.Size > 1); // Too many PopID(), or could be popping in a wrong/different window? + window->IDStack.pop_back(); +} + +ImGuiID ImGui::GetID(const char* str_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id); +} + +ImGuiID ImGui::GetID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id_begin, str_id_end); +} + +ImGuiID ImGui::GetID(const void* ptr_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(ptr_id); +} + +bool ImGui::IsRectVisible(const ImVec2& size) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + size)); +} + +bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(rect_min, rect_max)); +} + + +//----------------------------------------------------------------------------- +// [SECTION] INPUTS +//----------------------------------------------------------------------------- + +// Test if mouse cursor is hovering given rectangle +// NB- Rectangle is clipped by our current clip setting +// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) +bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) +{ + ImGuiContext& g = *GImGui; + + // Clip + ImRect rect_clipped(r_min, r_max); + if (clip) + rect_clipped.ClipWith(g.CurrentWindow->ClipRect); + + // Expand for touch input + const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding); + if (!rect_for_touch.Contains(g.IO.MousePos)) + return false; + if (!g.MouseViewport->GetMainRect().Overlaps(rect_clipped)) + return false; + return true; +} + +ImGuiKeyData* ImGui::GetKeyData(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + + // Special storage location for mods + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(key); + + int index; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT(key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_NamedKey_END); + if (IsLegacyKey(key)) + index = (g.IO.KeyMap[key] != -1) ? g.IO.KeyMap[key] : key; // Remap native->imgui or imgui->native + else + index = key; +#else + IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code."); + index = key - ImGuiKey_NamedKey_BEGIN; +#endif + return &g.IO.KeysData[index]; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +ImGuiKey ImGui::GetKeyIndex(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(IsNamedKey(key)); + const ImGuiKeyData* key_data = GetKeyData(key); + return (ImGuiKey)(key_data - g.IO.KeysData); +} +#endif + +// Those names a provided for debugging purpose and are not meant to be saved persistently not compared. +static const char* const GKeyNames[] = +{ + "Tab", "LeftArrow", "RightArrow", "UpArrow", "DownArrow", "PageUp", "PageDown", + "Home", "End", "Insert", "Delete", "Backspace", "Space", "Enter", "Escape", + "LeftCtrl", "LeftShift", "LeftAlt", "LeftSuper", "RightCtrl", "RightShift", "RightAlt", "RightSuper", "Menu", + "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", + "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", + "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", + "Apostrophe", "Comma", "Minus", "Period", "Slash", "Semicolon", "Equal", "LeftBracket", + "Backslash", "RightBracket", "GraveAccent", "CapsLock", "ScrollLock", "NumLock", "PrintScreen", + "Pause", "Keypad0", "Keypad1", "Keypad2", "Keypad3", "Keypad4", "Keypad5", "Keypad6", + "Keypad7", "Keypad8", "Keypad9", "KeypadDecimal", "KeypadDivide", "KeypadMultiply", + "KeypadSubtract", "KeypadAdd", "KeypadEnter", "KeypadEqual", + "GamepadStart", "GamepadBack", + "GamepadFaceLeft", "GamepadFaceRight", "GamepadFaceUp", "GamepadFaceDown", + "GamepadDpadLeft", "GamepadDpadRight", "GamepadDpadUp", "GamepadDpadDown", + "GamepadL1", "GamepadR1", "GamepadL2", "GamepadR2", "GamepadL3", "GamepadR3", + "GamepadLStickLeft", "GamepadLStickRight", "GamepadLStickUp", "GamepadLStickDown", + "GamepadRStickLeft", "GamepadRStickRight", "GamepadRStickUp", "GamepadRStickDown", + "MouseLeft", "MouseRight", "MouseMiddle", "MouseX1", "MouseX2", "MouseWheelX", "MouseWheelY", + "ModCtrl", "ModShift", "ModAlt", "ModSuper", // ReservedForModXXX are showing the ModXXX names. +}; +IM_STATIC_ASSERT(ImGuiKey_NamedKey_COUNT == IM_ARRAYSIZE(GKeyNames)); + +const char* ImGui::GetKeyName(ImGuiKey key) +{ +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((IsNamedKey(key) || key == ImGuiKey_None) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend and user code."); +#else + if (IsLegacyKey(key)) + { + ImGuiIO& io = GetIO(); + if (io.KeyMap[key] == -1) + return "N/A"; + IM_ASSERT(IsNamedKey((ImGuiKey)io.KeyMap[key])); + key = (ImGuiKey)io.KeyMap[key]; + } +#endif + if (key == ImGuiKey_None) + return "None"; + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(key); + if (!IsNamedKey(key)) + return "Unknown"; + + return GKeyNames[key - ImGuiKey_NamedKey_BEGIN]; +} + +void ImGui::GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size) +{ + ImGuiContext& g = *GImGui; + ImFormatString(out_buf, (size_t)out_buf_size, "%s%s%s%s%s", + (key_chord & ImGuiMod_Ctrl) ? "Ctrl+" : "", + (key_chord & ImGuiMod_Shift) ? "Shift+" : "", + (key_chord & ImGuiMod_Alt) ? "Alt+" : "", + (key_chord & ImGuiMod_Super) ? (g.IO.ConfigMacOSXBehaviors ? "Cmd+" : "Super+") : "", + GetKeyName((ImGuiKey)(key_chord & ~ImGuiMod_Mask_))); +} + +// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) +// t1 = current time (e.g.: g.Time) +// An event is triggered at: +// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N +int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) +{ + if (t1 == 0.0f) + return 1; + if (t0 >= t1) + return 0; + if (repeat_rate <= 0.0f) + return (t0 < repeat_delay) && (t1 >= repeat_delay); + const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); + const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); + const int count = count_t1 - count_t0; + return count; +} + +void ImGui::GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate) +{ + ImGuiContext& g = *GImGui; + switch (flags & ImGuiInputFlags_RepeatRateMask_) + { + case ImGuiInputFlags_RepeatRateNavMove: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.80f; return; + case ImGuiInputFlags_RepeatRateNavTweak: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.30f; return; + case ImGuiInputFlags_RepeatRateDefault: default: *repeat_delay = g.IO.KeyRepeatDelay * 1.00f; *repeat_rate = g.IO.KeyRepeatRate * 1.00f; return; + } +} + +// Return value representing the number of presses in the last time period, for the given repeat rate +// (most often returns 0 or 1. The result is generally only >1 when RepeatRate is smaller than DeltaTime, aka large DeltaTime or fast RepeatRate) +int ImGui::GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float repeat_rate) +{ + ImGuiContext& g = *GImGui; + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return 0; + const float t = key_data->DownDuration; + return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); +} + +// Return 2D vector representing the combination of four cardinal direction, with analog value support (for e.g. ImGuiKey_GamepadLStick* values). +ImVec2 ImGui::GetKeyVector2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down) +{ + return ImVec2( + GetKeyData(key_right)->AnalogValue - GetKeyData(key_left)->AnalogValue, + GetKeyData(key_down)->AnalogValue - GetKeyData(key_up)->AnalogValue); +} + +// owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope(). +static inline ImGuiID GetRoutingIdFromOwnerId(ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + return (owner_id != ImGuiKeyOwner_None && owner_id != ImGuiKeyOwner_Any) ? owner_id : g.CurrentFocusScopeId; +} + +ImGuiKeyRoutingData* ImGui::GetShortcutRoutingData(ImGuiKeyChord key_chord) +{ + // Majority of shortcuts will be Key + any number of Mods + // We accept _Single_ mod with ImGuiKey_None. + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl | ImGuiMod_Shift); // Legal + // - Shortcut(ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiMod_Ctrl | ImGuiMod_Shift); // Not legal + ImGuiContext& g = *GImGui; + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + ImGuiKeyRoutingData* routing_data; + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(mods); + IM_ASSERT(IsNamedKey(key)); + + // Get (in the majority of case, the linked list will have one element so this should be 2 reads. + // Subsequent elements will be contiguous in memory as list is sorted/rebuilt in NewFrame). + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; idx = routing_data->NextEntryIndex) + { + routing_data = &rt->Entries[idx]; + if (routing_data->Mods == mods) + return routing_data; + } + + // Add to linked-list + ImGuiKeyRoutingIndex routing_data_idx = (ImGuiKeyRoutingIndex)rt->Entries.Size; + rt->Entries.push_back(ImGuiKeyRoutingData()); + routing_data = &rt->Entries[routing_data_idx]; + routing_data->Mods = (ImU16)mods; + routing_data->NextEntryIndex = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; // Setup linked list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = routing_data_idx; + return routing_data; +} + +// Current score encoding (lower is highest priority): +// - 0: ImGuiInputFlags_RouteGlobalHigh +// - 1: ImGuiInputFlags_RouteFocused (if item active) +// - 2: ImGuiInputFlags_RouteGlobal +// - 3+: ImGuiInputFlags_RouteFocused (if window in focus-stack) +// - 254: ImGuiInputFlags_RouteGlobalLow +// - 255: never route +// 'flags' should include an explicit routing policy +static int CalcRoutingScore(ImGuiWindow* location, ImGuiID owner_id, ImGuiInputFlags flags) +{ + if (flags & ImGuiInputFlags_RouteFocused) + { + ImGuiContext& g = *GImGui; + ImGuiWindow* focused = g.NavWindow; + + // ActiveID gets top priority + // (we don't check g.ActiveIdUsingAllKeys here. Routing is applied but if input ownership is tested later it may discard it) + if (owner_id != 0 && g.ActiveId == owner_id) + return 1; + + // Score based on distance to focused window (lower is better) + // Assuming both windows are submitting a routing request, + // - When Window....... is focused -> Window scores 3 (best), Window/ChildB scores 255 (no match) + // - When Window/ChildB is focused -> Window scores 4, Window/ChildB scores 3 (best) + // Assuming only WindowA is submitting a routing request, + // - When Window/ChildB is focused -> Window scores 4 (best), Window/ChildB doesn't have a score. + if (focused != NULL && focused->RootWindow == location->RootWindow) + for (int next_score = 3; focused != NULL; next_score++) + { + if (focused == location) + { + IM_ASSERT(next_score < 255); + return next_score; + } + focused = (focused->RootWindow != focused) ? focused->ParentWindow : NULL; // FIXME: This could be later abstracted as a focus path + } + return 255; + } + + // ImGuiInputFlags_RouteGlobalHigh is default, so calls without flags are not conditional + if (flags & ImGuiInputFlags_RouteGlobal) + return 2; + if (flags & ImGuiInputFlags_RouteGlobalLow) + return 254; + return 0; +} + +// Request a desired route for an input chord (key + mods). +// Return true if the route is available this frame. +// - Routes and key ownership are attributed at the beginning of next frame based on best score and mod state. +// (Conceptually this does a "Submit for next frame" + "Test for current frame". +// As such, it could be called TrySetXXX or SubmitXXX, or the Submit and Test operations should be separate.) +// - Using 'owner_id == ImGuiKeyOwner_Any/0': auto-assign an owner based on current focus scope (each window has its focus scope by default) +// - Using 'owner_id == ImGuiKeyOwner_None': allows disabling/locking a shortcut. +bool ImGui::SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteGlobalHigh; // IMPORTANT: This is the default for SetShortcutRouting() but NOT Shortcut() + else + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiInputFlags_RouteMask_)); // Check that only 1 routing flag is used + + if (flags & ImGuiInputFlags_RouteUnlessBgFocused) + if (g.NavWindow == NULL) + return false; + if (flags & ImGuiInputFlags_RouteAlways) + return true; + + const int score = CalcRoutingScore(g.CurrentWindow, owner_id, flags); + if (score == 255) + return false; + + // Submit routing for NEXT frame (assuming score is sufficient) + // FIXME: Could expose a way to use a "serve last" policy for same score resolution (using <= instead of <). + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + //const bool set_route = (flags & ImGuiInputFlags_ServeLast) ? (score <= routing_data->RoutingNextScore) : (score < routing_data->RoutingNextScore); + if (score < routing_data->RoutingNextScore) + { + routing_data->RoutingNext = routing_id; + routing_data->RoutingNextScore = (ImU8)score; + } + + // Return routing state for CURRENT frame + return routing_data->RoutingCurr == routing_id; +} + +// Currently unused by core (but used by tests) +// Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading. +bool ImGui::TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id) +{ + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + return routing_data->RoutingCurr == routing_id; +} + +// Note that Dear ImGui doesn't know the meaning/semantic of ImGuiKey from 0..511: they are legacy native keycodes. +// Consider transitioning from 'IsKeyDown(MY_ENGINE_KEY_A)' (<1.87) to IsKeyDown(ImGuiKey_A) (>= 1.87) +bool ImGui::IsKeyDown(ImGuiKey key) +{ + return IsKeyDown(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyDown(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyPressed(ImGuiKey key, bool repeat) +{ + return IsKeyPressed(key, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +// Important: unless legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this requires EXPLICIT repeat. +bool ImGui::IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = key_data->DownDuration; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + bool pressed = (t == 0.0f); + if (!pressed && ((flags & ImGuiInputFlags_Repeat) != 0)) + { + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(flags, &repeat_delay, &repeat_rate); + pressed = (t > repeat_delay) && GetKeyPressedAmount(key, repeat_delay, repeat_rate) > 0; + } + if (!pressed) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyReleased(ImGuiKey key) +{ + return IsKeyReleased(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyReleased(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (key_data->DownDurationPrev < 0.0f || key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // should be same as IsKeyDown(MouseButtonToKey(button), ImGuiKeyOwner_Any), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyDown(MouseButtonToKey(button), owner_id), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) +{ + return IsMouseClicked(button, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = g.IO.MouseDownDuration[button]; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + const bool repeat = (flags & ImGuiInputFlags_Repeat) != 0; + const bool pressed = (t == 0.0f) || (repeat && t > g.IO.KeyRepeatDelay && CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0); + if (!pressed) + return false; + + if (!TestKeyOwner(MouseButtonToKey(button), owner_id)) + return false; + + return true; +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // Should be same as IsKeyReleased(MouseButtonToKey(button), ImGuiKeyOwner_Any) +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyReleased(MouseButtonToKey(button), owner_id) +} + +bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); +} + +int ImGui::GetMouseClickedCount(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button]; +} + +// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. +// [Internal] This doesn't test if the button is pressed +bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; +} + +bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) + return false; + return IsMouseDragPastThreshold(button, lock_threshold); +} + +ImVec2 ImGui::GetMousePos() +{ + ImGuiContext& g = *GImGui; + return g.IO.MousePos; +} + +// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! +ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() +{ + ImGuiContext& g = *GImGui; + if (g.BeginPopupStack.Size > 0) + return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; + return g.IO.MousePos; +} + +// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. +bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) +{ + // The assert is only to silence a false-positive in XCode Static Analysis. + // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). + IM_ASSERT(GImGui != NULL); + const float MOUSE_INVALID = -256000.0f; + ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; + return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; +} + +// [WILL OBSOLETE] This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. +bool ImGui::IsAnyMouseDown() +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) + if (g.IO.MouseDown[n]) + return true; + return false; +} + +// Return the delta from the initial clicking position while the mouse button is clicked or was just released. +// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. +// NB: This is only valid if IsMousePosValid(). backends in theory should always keep mouse position valid when dragging even outside the client window. +ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) + if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) + if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) + return g.IO.MousePos - g.IO.MouseClickedPos[button]; + return ImVec2(0.0f, 0.0f); +} + +void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr + g.IO.MouseClickedPos[button] = g.IO.MousePos; +} + +// Get desired mouse cursor shape. +// Important: this is meant to be used by a platform backend, it is reset in ImGui::NewFrame(), +// updated during the frame, and locked in EndFrame()/Render(). +// If you use software rendering by setting io.MouseDrawCursor then Dear ImGui will render those for you +ImGuiMouseCursor ImGui::GetMouseCursor() +{ + ImGuiContext& g = *GImGui; + return g.MouseCursor; +} + +void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) +{ + ImGuiContext& g = *GImGui; + g.MouseCursor = cursor_type; +} + +void ImGui::SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureKeyboardNextFrame = want_capture_keyboard ? 1 : 0; +} + +void ImGui::SetNextFrameWantCaptureMouse(bool want_capture_mouse) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureMouseNextFrame = want_capture_mouse ? 1 : 0; +} + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS +static const char* GetInputSourceName(ImGuiInputSource source) +{ + const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad", "Nav", "Clipboard" }; + IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT && source >= 0 && source < ImGuiInputSource_COUNT); + return input_source_names[source]; +} +static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e) +{ + ImGuiContext& g = *GImGui; + if (e->Type == ImGuiInputEventType_MousePos) { if (e->MousePos.PosX == -FLT_MAX && e->MousePos.PosY == -FLT_MAX) IMGUI_DEBUG_LOG_IO("%s: MousePos (-FLT_MAX, -FLT_MAX)\n", prefix); else IMGUI_DEBUG_LOG_IO("%s: MousePos (%.1f, %.1f)\n", prefix, e->MousePos.PosX, e->MousePos.PosY); return; } + if (e->Type == ImGuiInputEventType_MouseButton) { IMGUI_DEBUG_LOG_IO("%s: MouseButton %d %s\n", prefix, e->MouseButton.Button, e->MouseButton.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_MouseWheel) { IMGUI_DEBUG_LOG_IO("%s: MouseWheel (%.1f, %.1f)\n", prefix, e->MouseWheel.WheelX, e->MouseWheel.WheelY); return; } + if (e->Type == ImGuiInputEventType_MouseViewport){IMGUI_DEBUG_LOG_IO("%s: MouseViewport (0x%08X)\n", prefix, e->MouseViewport.HoveredViewportID); return; } + if (e->Type == ImGuiInputEventType_Key) { IMGUI_DEBUG_LOG_IO("%s: Key \"%s\" %s\n", prefix, ImGui::GetKeyName(e->Key.Key), e->Key.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_Text) { IMGUI_DEBUG_LOG_IO("%s: Text: %c (U+%08X)\n", prefix, e->Text.Char, e->Text.Char); return; } + if (e->Type == ImGuiInputEventType_Focus) { IMGUI_DEBUG_LOG_IO("%s: AppFocused %d\n", prefix, e->AppFocused.Focused); return; } +} +#endif + +// Process input queue +// We always call this with the value of 'bool g.IO.ConfigInputTrickleEventQueue'. +// - trickle_fast_inputs = false : process all events, turn into flattened input state (e.g. successive down/up/down/up will be lost) +// - trickle_fast_inputs = true : process as many events as possible (successive down/up/down/up will be trickled over several frames so nothing is lost) (new feature in 1.87) +void ImGui::UpdateInputEvents(bool trickle_fast_inputs) +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Only trickle chars<>key when working with InputText() + // FIXME: InputText() could parse event trail? + // FIXME: Could specialize chars<>keys trickling rules for control keys (those not typically associated to characters) + const bool trickle_interleaved_keys_and_text = (trickle_fast_inputs && g.WantTextInputNextFrame == 1); + + bool mouse_moved = false, mouse_wheeled = false, key_changed = false, text_inputted = false; + int mouse_button_changed = 0x00; + ImBitArray key_changed_mask; + + int event_n = 0; + for (; event_n < g.InputEventsQueue.Size; event_n++) + { + ImGuiInputEvent* e = &g.InputEventsQueue[event_n]; + if (e->Type == ImGuiInputEventType_MousePos) + { + // Trickling Rule: Stop processing queued events if we already handled a mouse button change + ImVec2 event_pos(e->MousePos.PosX, e->MousePos.PosY); + if (trickle_fast_inputs && (mouse_button_changed != 0 || mouse_wheeled || key_changed || text_inputted)) + break; + io.MousePos = event_pos; + mouse_moved = true; + } + else if (e->Type == ImGuiInputEventType_MouseButton) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + const ImGuiMouseButton button = e->MouseButton.Button; + IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); + if (trickle_fast_inputs && ((mouse_button_changed & (1 << button)) || mouse_wheeled)) + break; + io.MouseDown[button] = e->MouseButton.Down; + mouse_button_changed |= (1 << button); + } + else if (e->Type == ImGuiInputEventType_MouseWheel) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the event + if (trickle_fast_inputs && (mouse_moved || mouse_button_changed != 0)) + break; + io.MouseWheelH += e->MouseWheel.WheelX; + io.MouseWheel += e->MouseWheel.WheelY; + mouse_wheeled = true; + } + else if (e->Type == ImGuiInputEventType_MouseViewport) + { + io.MouseHoveredViewport = e->MouseViewport.HoveredViewportID; + } + else if (e->Type == ImGuiInputEventType_Key) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + ImGuiKey key = e->Key.Key; + IM_ASSERT(key != ImGuiKey_None); + ImGuiKeyData* key_data = GetKeyData(key); + const int key_data_index = (int)(key_data - g.IO.KeysData); + if (trickle_fast_inputs && key_data->Down != e->Key.Down && (key_changed_mask.TestBit(key_data_index) || text_inputted || mouse_button_changed != 0)) + break; + key_data->Down = e->Key.Down; + key_data->AnalogValue = e->Key.AnalogValue; + key_changed = true; + key_changed_mask.SetBit(key_data_index); + + if (key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super) + { + if (key == ImGuiMod_Ctrl) { io.KeyCtrl = key_data->Down; } + if (key == ImGuiMod_Shift) { io.KeyShift = key_data->Down; } + if (key == ImGuiMod_Alt) { io.KeyAlt = key_data->Down; } + if (key == ImGuiMod_Super) { io.KeySuper = key_data->Down; } + io.KeyMods = GetMergedModsFromBools(); + } + + // Allow legacy code using io.KeysDown[GetKeyIndex()] with new backends +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + io.KeysDown[key_data_index] = key_data->Down; + if (io.KeyMap[key_data_index] != -1) + io.KeysDown[io.KeyMap[key_data_index]] = key_data->Down; +#endif + } + else if (e->Type == ImGuiInputEventType_Text) + { + // Trickling Rule: Stop processing queued events if keys/mouse have been interacted with + if (trickle_fast_inputs && ((key_changed && trickle_interleaved_keys_and_text) || mouse_button_changed != 0 || mouse_moved || mouse_wheeled)) + break; + unsigned int c = e->Text.Char; + io.InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); + if (trickle_interleaved_keys_and_text) + text_inputted = true; + } + else if (e->Type == ImGuiInputEventType_Focus) + { + // We intentionally overwrite this and process in NewFrame(), in order to give a chance + // to multi-viewports backends to queue AddFocusEvent(false) + AddFocusEvent(true) in same frame. + const bool focus_lost = !e->AppFocused.Focused; + io.AppFocusLost = focus_lost; + } + else + { + IM_ASSERT(0 && "Unknown event!"); + } + } + + // Record trail (for domain-specific applications wanting to access a precise trail) + //if (event_n != 0) IMGUI_DEBUG_LOG_IO("Processed: %d / Remaining: %d\n", event_n, g.InputEventsQueue.Size - event_n); + for (int n = 0; n < event_n; n++) + g.InputEventsTrail.push_back(g.InputEventsQueue[n]); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (event_n != 0 && (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO)) + for (int n = 0; n < g.InputEventsQueue.Size; n++) + DebugPrintInputEvent(n < event_n ? "Processed" : "Remaining", &g.InputEventsQueue[n]); +#endif + + // Remaining events will be processed on the next frame + if (event_n == g.InputEventsQueue.Size) + g.InputEventsQueue.resize(0); + else + g.InputEventsQueue.erase(g.InputEventsQueue.Data, g.InputEventsQueue.Data + event_n); + + // Clear buttons state when focus is lost + // - this is useful so e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger the Alt menu toggle. + // - we clear in EndFrame() and not now in order allow application/user code polling this flag + // (e.g. custom backend may want to clear additional data, custom widgets may want to react with a "canceling" event). + if (g.IO.AppFocusLost) + g.IO.ClearInputKeys(); +} + +ImGuiID ImGui::GetKeyOwner(ImGuiKey key) +{ + if (!IsNamedKeyOrModKey(key)) + return ImGuiKeyOwner_None; + + ImGuiContext& g = *GImGui; + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + ImGuiID owner_id = owner_data->OwnerCurr; + + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return ImGuiKeyOwner_None; + + return owner_id; +} + +// TestKeyOwner(..., ID) : (owner == None || owner == ID) +// TestKeyOwner(..., None) : (owner == None) +// TestKeyOwner(..., Any) : no owner test +// All paths are also testing for key not being locked, for the rare cases that key have been locked with using ImGuiInputFlags_LockXXX flags. +bool ImGui::TestKeyOwner(ImGuiKey key, ImGuiID owner_id) +{ + if (!IsNamedKeyOrModKey(key)) + return true; + + ImGuiContext& g = *GImGui; + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return false; + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + if (owner_id == ImGuiKeyOwner_Any) + return (owner_data->LockThisFrame == false); + + // Note: SetKeyOwner() sets OwnerCurr. It is not strictly required for most mouse routing overlap (because of ActiveId/HoveredId + // are acting as filter before this has a chance to filter), but sane as soon as user tries to look into things. + // Setting OwnerCurr in SetKeyOwner() is more consistent than testing OwnerNext here: would be inconsistent with getter and other functions. + if (owner_data->OwnerCurr != owner_id) + { + if (owner_data->LockThisFrame) + return false; + if (owner_data->OwnerCurr != ImGuiKeyOwner_None) + return false; + } + + return true; +} + +// _LockXXX flags are useful to lock keys away from code which is not input-owner aware. +// When using _LockXXX flags, you can use ImGuiKeyOwner_Any to lock keys from everyone. +// - SetKeyOwner(..., None) : clears owner +// - SetKeyOwner(..., Any, !Lock) : illegal (assert) +// - SetKeyOwner(..., Any or None, Lock) : set lock +void ImGui::SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + IM_ASSERT(IsNamedKeyOrModKey(key) && (owner_id != ImGuiKeyOwner_Any || (flags & (ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease)))); // Can only use _Any with _LockXXX flags (to eat a key away without an ID to retrieve it) + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetKeyOwner) == 0); // Passing flags not supported by this function! + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + owner_data->OwnerCurr = owner_data->OwnerNext = owner_id; + + // We cannot lock by default as it would likely break lots of legacy code. + // In the case of using LockUntilRelease while key is not down we still lock during the frame (no key_data->Down test) + owner_data->LockUntilRelease = (flags & ImGuiInputFlags_LockUntilRelease) != 0; + owner_data->LockThisFrame = (flags & ImGuiInputFlags_LockThisFrame) != 0 || (owner_data->LockUntilRelease); +} + +// This is more or less equivalent to: +// if (IsItemHovered() || IsItemActive()) +// SetKeyOwner(key, GetItemID()); +// Extensive uses of that (e.g. many calls for a single item) may want to manually perform the tests once and then call SetKeyOwner() multiple times. +// More advanced usage scenarios may want to call SetKeyOwner() manually based on different condition. +// Worth noting is that only one item can be hovered and only one item can be active, therefore this usage pattern doesn't need to bother with routing and priority. +void ImGui::SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (id == 0 || (g.HoveredId != id && g.ActiveId != id)) + return; + if ((flags & ImGuiInputFlags_CondMask_) == 0) + flags |= ImGuiInputFlags_CondDefault_; + if ((g.HoveredId == id && (flags & ImGuiInputFlags_CondHovered)) || (g.ActiveId == id && (flags & ImGuiInputFlags_CondActive))) + { + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetItemKeyOwner) == 0); // Passing flags not supported by this function! + SetKeyOwner(key, id, flags & ~ImGuiInputFlags_CondMask_); + } +} + +// - Need to decide how to handle shortcut translations for Non-Mac <> Mac +// - Ideas: https://github.com/ocornut/imgui/issues/456#issuecomment-264390864 +bool ImGui::Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + + // When using (owner_id == 0/Any): SetShortcutRouting() will use CurrentFocusScopeId and filter with this, so IsKeyPressed() is fine with he 0/Any. + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteFocused; + if (!SetShortcutRouting(key_chord, owner_id, flags)) + return false; + + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (g.IO.KeyMods != mods) + return false; + + // Special storage location for mods + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(mods); + + if (!IsKeyPressed(key, owner_id, (flags & (ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_)))) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByShortcut) == 0); // Passing flags not supported by this function! + + return true; +} + + +//----------------------------------------------------------------------------- +// [SECTION] ERROR CHECKING +//----------------------------------------------------------------------------- + +// Helper function to verify ABI compatibility between caller code and compiled version of Dear ImGui. +// Verify that the type sizes are matching between the calling file's compilation unit and imgui.cpp's compilation unit +// If this triggers you have an issue: +// - Most commonly: mismatched headers and compiled code version. +// - Or: mismatched configuration #define, compilation settings, packing pragma etc. +// The configuration settings mentioned in imconfig.h must be set for all compilation units involved with Dear ImGui, +// which is way it is required you put them in your imconfig file (and not just before including imgui.h). +// Otherwise it is possible that different compilation units would see different structure layout +bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_vert, size_t sz_idx) +{ + bool error = false; + if (strcmp(version, IMGUI_VERSION) != 0) { error = true; IM_ASSERT(strcmp(version, IMGUI_VERSION) == 0 && "Mismatched version string!"); } + if (sz_io != sizeof(ImGuiIO)) { error = true; IM_ASSERT(sz_io == sizeof(ImGuiIO) && "Mismatched struct layout!"); } + if (sz_style != sizeof(ImGuiStyle)) { error = true; IM_ASSERT(sz_style == sizeof(ImGuiStyle) && "Mismatched struct layout!"); } + if (sz_vec2 != sizeof(ImVec2)) { error = true; IM_ASSERT(sz_vec2 == sizeof(ImVec2) && "Mismatched struct layout!"); } + if (sz_vec4 != sizeof(ImVec4)) { error = true; IM_ASSERT(sz_vec4 == sizeof(ImVec4) && "Mismatched struct layout!"); } + if (sz_vert != sizeof(ImDrawVert)) { error = true; IM_ASSERT(sz_vert == sizeof(ImDrawVert) && "Mismatched struct layout!"); } + if (sz_idx != sizeof(ImDrawIdx)) { error = true; IM_ASSERT(sz_idx == sizeof(ImDrawIdx) && "Mismatched struct layout!"); } + return !error; +} + +// Until 1.89 (IMGUI_VERSION_NUM < 18814) it was legal to use SetCursorPos() to extend the boundary of a parent (e.g. window or table cell) +// This is causing issues and ambiguity and we need to retire that. +// See https://github.com/ocornut/imgui/issues/5548 for more details. +// [Scenario 1] +// Previously this would make the window content size ~200x200: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); // NOT OK +// Instead, please submit an item: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); // OK +// Alternative: +// Begin(...) + Dummy(ImVec2(200,200)) + End(); // OK +// [Scenario 2] +// For reference this is one of the issue what we aim to fix with this change: +// BeginGroup() + SomeItem("foobar") + SetCursorScreenPos(GetCursorScreenPos()) + EndGroup() +// The previous logic made SetCursorScreenPos(GetCursorScreenPos()) have a side-effect! It would erroneously incorporate ItemSpacing.y after the item into content size, making the group taller! +// While this code is a little twisted, no-one would expect SetXXX(GetXXX()) to have a side-effect. Using vertical alignment patterns could trigger this issue. +void ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->DC.IsSetPos); + window->DC.IsSetPos = false; +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (window->DC.CursorPos.x <= window->DC.CursorMaxPos.x && window->DC.CursorPos.y <= window->DC.CursorMaxPos.y) + return; + if (window->SkipItems) + return; + IM_ASSERT(0 && "Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries. Please submit an item e.g. Dummy() to validate extent."); +#else + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); +#endif +} + +static void ImGui::ErrorCheckNewFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Check user IM_ASSERT macro + // (IF YOU GET A WARNING OR COMPILE ERROR HERE: it means your assert macro is incorrectly defined! + // If your macro uses multiple statements, it NEEDS to be surrounded by a 'do { ... } while (0)' block. + // This is a common C/C++ idiom to allow multiple statements macros to be used in control flow blocks.) + // #define IM_ASSERT(EXPR) if (SomeCode(EXPR)) SomeMoreCode(); // Wrong! + // #define IM_ASSERT(EXPR) do { if (SomeCode(EXPR)) SomeMoreCode(); } while (0) // Correct! + if (true) IM_ASSERT(1); else IM_ASSERT(0); + + // Check user data + // (We pass an error message in the assert expression to make it visible to programmers who are not using a debugger, as most assert handlers display their argument) + IM_ASSERT(g.Initialized); + IM_ASSERT((g.IO.DeltaTime > 0.0f || g.FrameCount == 0) && "Need a positive DeltaTime!"); + IM_ASSERT((g.FrameCount == 0 || g.FrameCountEnded == g.FrameCount) && "Forgot to call Render() or EndFrame() at the end of the previous frame?"); + IM_ASSERT(g.IO.DisplaySize.x >= 0.0f && g.IO.DisplaySize.y >= 0.0f && "Invalid DisplaySize value!"); + IM_ASSERT(g.IO.Fonts->IsBuilt() && "Font Atlas not built! Make sure you called ImGui_ImplXXXX_NewFrame() function for renderer backend, which should call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8()"); + IM_ASSERT(g.Style.CurveTessellationTol > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.CircleTessellationMaxError > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.Alpha >= 0.0f && g.Style.Alpha <= 1.0f && "Invalid style setting!"); // Allows us to avoid a few clamps in color computations + IM_ASSERT(g.Style.WindowMinSize.x >= 1.0f && g.Style.WindowMinSize.y >= 1.0f && "Invalid style setting."); + IM_ASSERT(g.Style.WindowMenuButtonPosition == ImGuiDir_None || g.Style.WindowMenuButtonPosition == ImGuiDir_Left || g.Style.WindowMenuButtonPosition == ImGuiDir_Right); + IM_ASSERT(g.Style.ColorButtonPosition == ImGuiDir_Left || g.Style.ColorButtonPosition == ImGuiDir_Right); +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_COUNT; n++) + IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < ImGuiKey_LegacyNativeKey_END && "io.KeyMap[] contains an out of bound value (need to be 0..511, or -1 for unmapped key)"); + + // Check: required key mapping (we intentionally do NOT check all keys to not pressure user into setting up everything, but Space is required and was only added in 1.60 WIP) + if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && g.IO.BackendUsingLegacyKeyArrays == 1) + IM_ASSERT(g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation."); +#endif + + // Check: the io.ConfigWindowsResizeFromEdges option requires backend to honor mouse cursor changes and set the ImGuiBackendFlags_HasMouseCursors flag accordingly. + if (g.IO.ConfigWindowsResizeFromEdges && !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseCursors)) + g.IO.ConfigWindowsResizeFromEdges = false; + + // Perform simple check: error if Docking or Viewport are enabled _exactly_ on frame 1 (instead of frame 0 or later), which is a common error leading to loss of .ini data. + if (g.FrameCount == 1 && (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable) && (g.ConfigFlagsLastFrame & ImGuiConfigFlags_DockingEnable) == 0) + IM_ASSERT(0 && "Please set DockingEnable before the first call to NewFrame()! Otherwise you will lose your .ini settings!"); + if (g.FrameCount == 1 && (g.IO.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) && (g.ConfigFlagsLastFrame & ImGuiConfigFlags_ViewportsEnable) == 0) + IM_ASSERT(0 && "Please set ViewportsEnable before the first call to NewFrame()! Otherwise you will lose your .ini settings!"); + + // Perform simple checks: multi-viewport and platform windows support + if (g.IO.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + if ((g.IO.BackendFlags & ImGuiBackendFlags_PlatformHasViewports) && (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasViewports)) + { + IM_ASSERT((g.FrameCount == 0 || g.FrameCount == g.FrameCountPlatformEnded) && "Forgot to call UpdatePlatformWindows() in main loop after EndFrame()? Check examples/ applications for reference."); + IM_ASSERT(g.PlatformIO.Platform_CreateWindow != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_DestroyWindow != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_GetWindowPos != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_SetWindowPos != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_GetWindowSize != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_SetWindowSize != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Monitors.Size > 0 && "Platform init didn't setup Monitors list?"); + IM_ASSERT((g.Viewports[0]->PlatformUserData != NULL || g.Viewports[0]->PlatformHandle != NULL) && "Platform init didn't setup main viewport."); + if (g.IO.ConfigDockingTransparentPayload && (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + IM_ASSERT(g.PlatformIO.Platform_SetWindowAlpha != NULL && "Platform_SetWindowAlpha handler is required to use io.ConfigDockingTransparent!"); + } + else + { + // Disable feature, our backends do not support it + g.IO.ConfigFlags &= ~ImGuiConfigFlags_ViewportsEnable; + } + + // Perform simple checks on platform monitor data + compute a total bounding box for quick early outs + for (int monitor_n = 0; monitor_n < g.PlatformIO.Monitors.Size; monitor_n++) + { + ImGuiPlatformMonitor& mon = g.PlatformIO.Monitors[monitor_n]; + IM_UNUSED(mon); + IM_ASSERT(mon.MainSize.x > 0.0f && mon.MainSize.y > 0.0f && "Monitor main bounds not setup properly."); + IM_ASSERT(ImRect(mon.MainPos, mon.MainPos + mon.MainSize).Contains(ImRect(mon.WorkPos, mon.WorkPos + mon.WorkSize)) && "Monitor work bounds not setup properly. If you don't have work area information, just copy MainPos/MainSize into them."); + IM_ASSERT(mon.DpiScale != 0.0f); + } + } +} + +static void ImGui::ErrorCheckEndFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Verify that io.KeyXXX fields haven't been tampered with. Key mods should not be modified between NewFrame() and EndFrame() + // One possible reason leading to this assert is that your backends update inputs _AFTER_ NewFrame(). + // It is known that when some modal native windows called mid-frame takes focus away, some backends such as GLFW will + // send key release events mid-frame. This would normally trigger this assertion and lead to sheared inputs. + // We silently accommodate for this case by ignoring/ the case where all io.KeyXXX modifiers were released (aka key_mod_flags == 0), + // while still correctly asserting on mid-frame key press events. + const ImGuiKeyChord key_mods = GetMergedModsFromBools(); + IM_ASSERT((key_mods == 0 || g.IO.KeyMods == key_mods) && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); + IM_UNUSED(key_mods); + + // [EXPERIMENTAL] Recover from errors: You may call this yourself before EndFrame(). + //ErrorCheckEndFrameRecover(); + + // Report when there is a mismatch of Begin/BeginChild vs End/EndChild calls. Important: Remember that the Begin/BeginChild API requires you + // to always call End/EndChild even if Begin/BeginChild returns false! (this is unfortunately inconsistent with most other Begin* API). + if (g.CurrentWindowStack.Size != 1) + { + if (g.CurrentWindowStack.Size > 1) + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"); + while (g.CurrentWindowStack.Size > 1) + End(); + } + else + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you call End/EndChild too much?"); + } + } + + IM_ASSERT_USER_ERROR(g.GroupStack.Size == 0, "Missing EndGroup call!"); +} + +// Experimental recovery from incorrect usage of BeginXXX/EndXXX/PushXXX/PopXXX calls. +// Must be called during or before EndFrame(). +// This is generally flawed as we are not necessarily End/Popping things in the right order. +// FIXME: Can't recover from inside BeginTabItem/EndTabItem yet. +// FIXME: Can't recover from interleaved BeginTabBar/Begin +void ImGui::ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data) +{ + // PVS-Studio V1044 is "Loop break conditions do not depend on the number of iterations" + ImGuiContext& g = *GImGui; + while (g.CurrentWindowStack.Size > 0) //-V1044 + { + ErrorCheckEndWindowRecover(log_callback, user_data); + ImGuiWindow* window = g.CurrentWindow; + if (g.CurrentWindowStack.Size == 1) + { + IM_ASSERT(window->IsFallbackWindow); + break; + } + if (window->Flags & ImGuiWindowFlags_ChildWindow) + { + if (log_callback) log_callback(user_data, "Recovered from missing EndChild() for '%s'", window->Name); + EndChild(); + } + else + { + if (log_callback) log_callback(user_data, "Recovered from missing End() for '%s'", window->Name); + End(); + } + } +} + +// Must be called before End()/EndChild() +void ImGui::ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data) +{ + ImGuiContext& g = *GImGui; + while (g.CurrentTable && (g.CurrentTable->OuterWindow == g.CurrentWindow || g.CurrentTable->InnerWindow == g.CurrentWindow)) + { + if (log_callback) log_callback(user_data, "Recovered from missing EndTable() in '%s'", g.CurrentTable->OuterWindow->Name); + EndTable(); + } + + ImGuiWindow* window = g.CurrentWindow; + ImGuiStackSizes* stack_sizes = &g.CurrentWindowStack.back().StackSizesOnBegin; + IM_ASSERT(window != NULL); + while (g.CurrentTabBar != NULL) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndTabBar() in '%s'", window->Name); + EndTabBar(); + } + while (window->DC.TreeDepth > 0) + { + if (log_callback) log_callback(user_data, "Recovered from missing TreePop() in '%s'", window->Name); + TreePop(); + } + while (g.GroupStack.Size > stack_sizes->SizeOfGroupStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndGroup() in '%s'", window->Name); + EndGroup(); + } + while (window->IDStack.Size > 1) + { + if (log_callback) log_callback(user_data, "Recovered from missing PopID() in '%s'", window->Name); + PopID(); + } + while (g.DisabledStackSize > stack_sizes->SizeOfDisabledStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndDisabled() in '%s'", window->Name); + EndDisabled(); + } + while (g.ColorStack.Size > stack_sizes->SizeOfColorStack) + { + if (log_callback) log_callback(user_data, "Recovered from missing PopStyleColor() in '%s' for ImGuiCol_%s", window->Name, GetStyleColorName(g.ColorStack.back().Col)); + PopStyleColor(); + } + while (g.ItemFlagsStack.Size > stack_sizes->SizeOfItemFlagsStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopItemFlag() in '%s'", window->Name); + PopItemFlag(); + } + while (g.StyleVarStack.Size > stack_sizes->SizeOfStyleVarStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopStyleVar() in '%s'", window->Name); + PopStyleVar(); + } + while (g.FocusScopeStack.Size > stack_sizes->SizeOfFocusScopeStack + 1) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopFocusScope() in '%s'", window->Name); + PopFocusScope(); + } +} + +// Save current stack sizes for later compare +void ImGuiStackSizes::SetToCurrentState() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + SizeOfIDStack = (short)window->IDStack.Size; + SizeOfColorStack = (short)g.ColorStack.Size; + SizeOfStyleVarStack = (short)g.StyleVarStack.Size; + SizeOfFontStack = (short)g.FontStack.Size; + SizeOfFocusScopeStack = (short)g.FocusScopeStack.Size; + SizeOfGroupStack = (short)g.GroupStack.Size; + SizeOfItemFlagsStack = (short)g.ItemFlagsStack.Size; + SizeOfBeginPopupStack = (short)g.BeginPopupStack.Size; + SizeOfDisabledStack = (short)g.DisabledStackSize; +} + +// Compare to detect usage errors +void ImGuiStackSizes::CompareWithCurrentState() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_UNUSED(window); + + // Window stacks + // NOT checking: DC.ItemWidth, DC.TextWrapPos (per window) to allow user to conveniently push once and not pop (they are cleared on Begin) + IM_ASSERT(SizeOfIDStack == window->IDStack.Size && "PushID/PopID or TreeNode/TreePop Mismatch!"); + + // Global stacks + // For color, style and font stacks there is an incentive to use Push/Begin/Pop/.../End patterns, so we relax our checks a little to allow them. + IM_ASSERT(SizeOfGroupStack == g.GroupStack.Size && "BeginGroup/EndGroup Mismatch!"); + IM_ASSERT(SizeOfBeginPopupStack == g.BeginPopupStack.Size && "BeginPopup/EndPopup or BeginMenu/EndMenu Mismatch!"); + IM_ASSERT(SizeOfDisabledStack == g.DisabledStackSize && "BeginDisabled/EndDisabled Mismatch!"); + IM_ASSERT(SizeOfItemFlagsStack >= g.ItemFlagsStack.Size && "PushItemFlag/PopItemFlag Mismatch!"); + IM_ASSERT(SizeOfColorStack >= g.ColorStack.Size && "PushStyleColor/PopStyleColor Mismatch!"); + IM_ASSERT(SizeOfStyleVarStack >= g.StyleVarStack.Size && "PushStyleVar/PopStyleVar Mismatch!"); + IM_ASSERT(SizeOfFontStack >= g.FontStack.Size && "PushFont/PopFont Mismatch!"); + IM_ASSERT(SizeOfFocusScopeStack == g.FocusScopeStack.Size && "PushFocusScope/PopFocusScope Mismatch!"); +} + + +//----------------------------------------------------------------------------- +// [SECTION] LAYOUT +//----------------------------------------------------------------------------- +// - ItemSize() +// - ItemAdd() +// - SameLine() +// - GetCursorScreenPos() +// - SetCursorScreenPos() +// - GetCursorPos(), GetCursorPosX(), GetCursorPosY() +// - SetCursorPos(), SetCursorPosX(), SetCursorPosY() +// - GetCursorStartPos() +// - Indent() +// - Unindent() +// - SetNextItemWidth() +// - PushItemWidth() +// - PushMultiItemsWidths() +// - PopItemWidth() +// - CalcItemWidth() +// - CalcItemSize() +// - GetTextLineHeight() +// - GetTextLineHeightWithSpacing() +// - GetFrameHeight() +// - GetFrameHeightWithSpacing() +// - GetContentRegionMax() +// - GetContentRegionMaxAbs() [Internal] +// - GetContentRegionAvail(), +// - GetWindowContentRegionMin(), GetWindowContentRegionMax() +// - BeginGroup() +// - EndGroup() +// Also see in imgui_widgets: tab bars, and in imgui_tables: tables, columns. +//----------------------------------------------------------------------------- + +// Advance cursor given item size for layout. +// Register minimum needed size so it can extend the bounding box used for auto-fit calculation. +// See comments in ItemAdd() about how/why the size provided to ItemSize() vs ItemAdd() may often different. +void ImGui::ItemSize(const ImVec2& size, float text_baseline_y) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // We increase the height in this function to accommodate for baseline offset. + // In theory we should be offsetting the starting position (window->DC.CursorPos), that will be the topic of a larger refactor, + // but since ItemSize() is not yet an API that moves the cursor (to handle e.g. wrapping) enlarging the height has the same effect. + const float offset_to_match_baseline_y = (text_baseline_y >= 0) ? ImMax(0.0f, window->DC.CurrLineTextBaseOffset - text_baseline_y) : 0.0f; + + const float line_y1 = window->DC.IsSameLine ? window->DC.CursorPosPrevLine.y : window->DC.CursorPos.y; + const float line_height = ImMax(window->DC.CurrLineSize.y, /*ImMax(*/window->DC.CursorPos.y - line_y1/*, 0.0f)*/ + size.y + offset_to_match_baseline_y); + + // Always align ourselves on pixel boundaries + //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] + window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x + size.x; + window->DC.CursorPosPrevLine.y = line_y1; + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); // Next line + window->DC.CursorPos.y = IM_FLOOR(line_y1 + line_height + g.Style.ItemSpacing.y); // Next line + window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPosPrevLine.x); + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y - g.Style.ItemSpacing.y); + //if (g.IO.KeyAlt) window->DrawList->AddCircle(window->DC.CursorMaxPos, 3.0f, IM_COL32(255,0,0,255), 4); // [DEBUG] + + window->DC.PrevLineSize.y = line_height; + window->DC.CurrLineSize.y = 0.0f; + window->DC.PrevLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, text_baseline_y); + window->DC.CurrLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; + + // Horizontal layout mode + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + SameLine(); +} + +// Declare item bounding box for clipping and interaction. +// Note that the size can be different than the one provided to ItemSize(). Typically, widgets that spread over available surface +// declare their minimum size requirement to ItemSize() and provide a larger region to ItemAdd() which is used drawing/interaction. +bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGuiItemFlags extra_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Set item data + // (DisplayRect is left untouched, made valid when ImGuiItemStatusFlags_HasDisplayRect is set) + g.LastItemData.ID = id; + g.LastItemData.Rect = bb; + g.LastItemData.NavRect = nav_bb_arg ? *nav_bb_arg : bb; + g.LastItemData.InFlags = g.CurrentItemFlags | extra_flags; + g.LastItemData.StatusFlags = ImGuiItemStatusFlags_None; + + // Directional navigation processing + if (id != 0) + { + KeepAliveID(id); + + // Runs prior to clipping early-out + // (a) So that NavInitRequest can be honored, for newly opened windows to select a default widget + // (b) So that we can scroll up/down past clipped items. This adds a small O(N) cost to regular navigation requests + // unfortunately, but it is still limited to one window. It may not scale very well for windows with ten of + // thousands of item, but at least NavMoveRequest is only set on user interaction, aka maximum once a frame. + // We could early out with "if (is_clipped && !g.NavInitRequest) return false;" but when we wouldn't be able + // to reach unclipped widgets. This would work if user had explicit scrolling control (e.g. mapped on a stick). + // We intentionally don't check if g.NavWindow != NULL because g.NavAnyRequest should only be set when it is non null. + // If we crash on a NULL g.NavWindow we need to fix the bug elsewhere. + if (!(g.LastItemData.InFlags & ImGuiItemFlags_NoNav)) + { + window->DC.NavLayersActiveMaskNext |= (1 << window->DC.NavLayerCurrent); + if (g.NavId == id || g.NavAnyRequest) + if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) + if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) + NavProcessItem(); + } + + // [DEBUG] People keep stumbling on this problem and using "" as identifier in the root of a window instead of "##something". + // Empty identifier are valid and useful in a small amount of cases, but 99.9% of the time you want to use "##something". + // READ THE FAQ: https://dearimgui.org/faq + IM_ASSERT(id != window->ID && "Cannot have an empty ID at the root of a window. If you need an empty label, use ## and read the FAQ about how the ID Stack works!"); + } + g.NextItemData.Flags = ImGuiNextItemDataFlags_None; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (id != 0) + IMGUI_TEST_ENGINE_ITEM_ADD(nav_bb_arg ? *nav_bb_arg : bb, id); +#endif + + // Clipping test + // (FIXME: This is a modified copy of IsClippedEx() so we can reuse the is_rect_visible value) + //const bool is_clipped = IsClippedEx(bb, id); + //if (is_clipped) + // return false; + const bool is_rect_visible = bb.Overlaps(window->ClipRect); + if (!is_rect_visible) + if (id == 0 || (id != g.ActiveId && id != g.NavId)) + if (!g.LogEnabled) + return false; + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (id != 0 && id == g.DebugLocateId) + DebugLocateItemResolveWithLastItem(); +#endif + //if (g.IO.KeyAlt) window->DrawList->AddRect(bb.Min, bb.Max, IM_COL32(255,255,0,120)); // [DEBUG] + + // We need to calculate this now to take account of the current clipping rectangle (as items like Selectable may change them) + if (is_rect_visible) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Visible; + if (IsMouseHoveringRect(bb.Min, bb.Max)) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; + return true; +} + +// Gets back to previous line and continue with horizontal layout +// offset_from_start_x == 0 : follow right after previous item +// offset_from_start_x != 0 : align to specified x position (relative to window/group left) +// spacing_w < 0 : use default spacing if pos_x == 0, no spacing if pos_x != 0 +// spacing_w >= 0 : enforce spacing amount +void ImGui::SameLine(float offset_from_start_x, float spacing_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + if (offset_from_start_x != 0.0f) + { + if (spacing_w < 0.0f) + spacing_w = 0.0f; + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + offset_from_start_x + spacing_w + window->DC.GroupOffset.x + window->DC.ColumnsOffset.x; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + else + { + if (spacing_w < 0.0f) + spacing_w = g.Style.ItemSpacing.x; + window->DC.CursorPos.x = window->DC.CursorPosPrevLine.x + spacing_w; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + window->DC.CurrLineSize = window->DC.PrevLineSize; + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + window->DC.IsSameLine = true; +} + +ImVec2 ImGui::GetCursorScreenPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos; +} + +// 2022/08/05: Setting cursor position also extend boundaries (via modifying CursorMaxPos) used to compute window size, group size etc. +// I believe this was is a judicious choice but it's probably being relied upon (it has been the case since 1.31 and 1.50) +// It would be sane if we requested user to use SetCursorPos() + Dummy(ImVec2(0,0)) to extend CursorMaxPos... +void ImGui::SetCursorScreenPos(const ImVec2& pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = pos; + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; +} + +// User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. +// Conversion happens as we pass the value to user, but it makes our naming convention confusing because GetCursorPos() == (DC.CursorPos - window.Pos). May want to rename 'DC.CursorPos'. +ImVec2 ImGui::GetCursorPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos - window->Pos + window->Scroll; +} + +float ImGui::GetCursorPosX() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.x - window->Pos.x + window->Scroll.x; +} + +float ImGui::GetCursorPosY() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.y - window->Pos.y + window->Scroll.y; +} + +void ImGui::SetCursorPos(const ImVec2& local_pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = window->Pos - window->Scroll + local_pos; + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; +} + +void ImGui::SetCursorPosX(float x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + x; + //window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); + window->DC.IsSetPos = true; +} + +void ImGui::SetCursorPosY(float y) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.y = window->Pos.y - window->Scroll.y + y; + //window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); + window->DC.IsSetPos = true; +} + +ImVec2 ImGui::GetCursorStartPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorStartPos - window->Pos; +} + +void ImGui::Indent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x += (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +void ImGui::Unindent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x -= (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +// Affect large frame+labels widgets only. +void ImGui::SetNextItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasWidth; + g.NextItemData.Width = item_width; +} + +// FIXME: Remove the == 0.0f behavior? +void ImGui::PushItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width + window->DC.ItemWidth = (item_width == 0.0f ? window->ItemWidthDefault : item_width); + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PushMultiItemsWidths(int components, float w_full) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiStyle& style = g.Style; + const float w_item_one = ImMax(1.0f, IM_FLOOR((w_full - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_FLOOR(w_full - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width + window->DC.ItemWidthStack.push_back(w_item_last); + for (int i = 0; i < components - 2; i++) + window->DC.ItemWidthStack.push_back(w_item_one); + window->DC.ItemWidth = (components == 1) ? w_item_last : w_item_one; + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PopItemWidth() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.ItemWidth = window->DC.ItemWidthStack.back(); + window->DC.ItemWidthStack.pop_back(); +} + +// Calculate default item width given value passed to PushItemWidth() or SetNextItemWidth(). +// The SetNextItemWidth() data is generally cleared/consumed by ItemAdd() or NextItemData.ClearFlags() +float ImGui::CalcItemWidth() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float w; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + w = g.NextItemData.Width; + else + w = window->DC.ItemWidth; + if (w < 0.0f) + { + float region_max_x = GetContentRegionMaxAbs().x; + w = ImMax(1.0f, region_max_x - window->DC.CursorPos.x + w); + } + w = IM_FLOOR(w); + return w; +} + +// [Internal] Calculate full item size given user provided 'size' parameter and default width/height. Default width is often == CalcItemWidth(). +// Those two functions CalcItemWidth vs CalcItemSize are awkwardly named because they are not fully symmetrical. +// Note that only CalcItemWidth() is publicly exposed. +// The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable) +ImVec2 ImGui::CalcItemSize(ImVec2 size, float default_w, float default_h) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImVec2 region_max; + if (size.x < 0.0f || size.y < 0.0f) + region_max = GetContentRegionMaxAbs(); + + if (size.x == 0.0f) + size.x = default_w; + else if (size.x < 0.0f) + size.x = ImMax(4.0f, region_max.x - window->DC.CursorPos.x + size.x); + + if (size.y == 0.0f) + size.y = default_h; + else if (size.y < 0.0f) + size.y = ImMax(4.0f, region_max.y - window->DC.CursorPos.y + size.y); + + return size; +} + +float ImGui::GetTextLineHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize; +} + +float ImGui::GetTextLineHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.ItemSpacing.y; +} + +float ImGui::GetFrameHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f; +} + +float ImGui::GetFrameHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f + g.Style.ItemSpacing.y; +} + +// FIXME: All the Contents Region function are messy or misleading. WE WILL AIM TO OBSOLETE ALL OF THEM WITH A NEW "WORK RECT" API. Thanks for your patience! + +// FIXME: This is in window space (not screen space!). +ImVec2 ImGui::GetContentRegionMax() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = window->ContentRegionRect.Max - window->Pos; + if (window->DC.CurrentColumns || g.CurrentTable) + mx.x = window->WorkRect.Max.x - window->Pos.x; + return mx; +} + +// [Internal] Absolute coordinate. Saner. This is not exposed until we finishing refactoring work rect features. +ImVec2 ImGui::GetContentRegionMaxAbs() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = window->ContentRegionRect.Max; + if (window->DC.CurrentColumns || g.CurrentTable) + mx.x = window->WorkRect.Max.x; + return mx; +} + +ImVec2 ImGui::GetContentRegionAvail() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return GetContentRegionMaxAbs() - window->DC.CursorPos; +} + +// In window space (not screen space!) +ImVec2 ImGui::GetWindowContentRegionMin() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Min - window->Pos; +} + +ImVec2 ImGui::GetWindowContentRegionMax() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Max - window->Pos; +} + +// Lock horizontal starting position + capture group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) +// Groups are currently a mishmash of functionalities which should perhaps be clarified and separated. +// FIXME-OPT: Could we safely early out on ->SkipItems? +void ImGui::BeginGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + g.GroupStack.resize(g.GroupStack.Size + 1); + ImGuiGroupData& group_data = g.GroupStack.back(); + group_data.WindowID = window->ID; + group_data.BackupCursorPos = window->DC.CursorPos; + group_data.BackupCursorMaxPos = window->DC.CursorMaxPos; + group_data.BackupIndent = window->DC.Indent; + group_data.BackupGroupOffset = window->DC.GroupOffset; + group_data.BackupCurrLineSize = window->DC.CurrLineSize; + group_data.BackupCurrLineTextBaseOffset = window->DC.CurrLineTextBaseOffset; + group_data.BackupActiveIdIsAlive = g.ActiveIdIsAlive; + group_data.BackupHoveredIdIsAlive = g.HoveredId != 0; + group_data.BackupActiveIdPreviousFrameIsAlive = g.ActiveIdPreviousFrameIsAlive; + group_data.EmitItem = true; + + window->DC.GroupOffset.x = window->DC.CursorPos.x - window->Pos.x - window->DC.ColumnsOffset.x; + window->DC.Indent = window->DC.GroupOffset; + window->DC.CursorMaxPos = window->DC.CursorPos; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return +} + +void ImGui::EndGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(g.GroupStack.Size > 0); // Mismatched BeginGroup()/EndGroup() calls + + ImGuiGroupData& group_data = g.GroupStack.back(); + IM_ASSERT(group_data.WindowID == window->ID); // EndGroup() in wrong window? + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + ImRect group_bb(group_data.BackupCursorPos, ImMax(window->DC.CursorMaxPos, group_data.BackupCursorPos)); + + window->DC.CursorPos = group_data.BackupCursorPos; + window->DC.CursorMaxPos = ImMax(group_data.BackupCursorMaxPos, window->DC.CursorMaxPos); + window->DC.Indent = group_data.BackupIndent; + window->DC.GroupOffset = group_data.BackupGroupOffset; + window->DC.CurrLineSize = group_data.BackupCurrLineSize; + window->DC.CurrLineTextBaseOffset = group_data.BackupCurrLineTextBaseOffset; + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return + + if (!group_data.EmitItem) + { + g.GroupStack.pop_back(); + return; + } + + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.PrevLineTextBaseOffset, group_data.BackupCurrLineTextBaseOffset); // FIXME: Incorrect, we should grab the base offset from the *first line* of the group but it is hard to obtain now. + ItemSize(group_bb.GetSize()); + ItemAdd(group_bb, 0, NULL, ImGuiItemFlags_NoTabStop); + + // If the current ActiveId was declared within the boundary of our group, we copy it to LastItemId so IsItemActive(), IsItemDeactivated() etc. will be functional on the entire group. + // It would be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. + // Also if you grep for LastItemId you'll notice it is only used in that context. + // (The two tests not the same because ActiveIdIsAlive is an ID itself, in order to be able to handle ActiveId being overwritten during the frame.) + const bool group_contains_curr_active_id = (group_data.BackupActiveIdIsAlive != g.ActiveId) && (g.ActiveIdIsAlive == g.ActiveId) && g.ActiveId; + const bool group_contains_prev_active_id = (group_data.BackupActiveIdPreviousFrameIsAlive == false) && (g.ActiveIdPreviousFrameIsAlive == true); + if (group_contains_curr_active_id) + g.LastItemData.ID = g.ActiveId; + else if (group_contains_prev_active_id) + g.LastItemData.ID = g.ActiveIdPreviousFrame; + g.LastItemData.Rect = group_bb; + + // Forward Hovered flag + const bool group_contains_curr_hovered_id = (group_data.BackupHoveredIdIsAlive == false) && g.HoveredId != 0; + if (group_contains_curr_hovered_id) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + + // Forward Edited flag + if (group_contains_curr_active_id && g.ActiveIdHasBeenEditedThisFrame) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited; + + // Forward Deactivated flag + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HasDeactivated; + if (group_contains_prev_active_id && g.ActiveId != g.ActiveIdPreviousFrame) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Deactivated; + + g.GroupStack.pop_back(); + //window->DrawList->AddRect(group_bb.Min, group_bb.Max, IM_COL32(255,0,255,255)); // [Debug] +} + + +//----------------------------------------------------------------------------- +// [SECTION] SCROLLING +//----------------------------------------------------------------------------- + +// Helper to snap on edges when aiming at an item very close to the edge, +// So the difference between WindowPadding and ItemSpacing will be in the visible area after scrolling. +// When we refactor the scrolling API this may be configurable with a flag? +// Note that the effect for this won't be visible on X axis with default Style settings as WindowPadding.x == ItemSpacing.x by default. +static float CalcScrollEdgeSnap(float target, float snap_min, float snap_max, float snap_threshold, float center_ratio) +{ + if (target <= snap_min + snap_threshold) + return ImLerp(snap_min, target, center_ratio); + if (target >= snap_max - snap_threshold) + return ImLerp(target, snap_max, center_ratio); + return target; +} + +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window) +{ + ImVec2 scroll = window->Scroll; + if (window->ScrollTarget.x < FLT_MAX) + { + float decoration_total_width = window->ScrollbarSizes.x; + float center_x_ratio = window->ScrollTargetCenterRatio.x; + float scroll_target_x = window->ScrollTarget.x; + if (window->ScrollTargetEdgeSnapDist.x > 0.0f) + { + float snap_x_min = 0.0f; + float snap_x_max = window->ScrollMax.x + window->SizeFull.x - decoration_total_width; + scroll_target_x = CalcScrollEdgeSnap(scroll_target_x, snap_x_min, snap_x_max, window->ScrollTargetEdgeSnapDist.x, center_x_ratio); + } + scroll.x = scroll_target_x - center_x_ratio * (window->SizeFull.x - decoration_total_width); + } + if (window->ScrollTarget.y < FLT_MAX) + { + float decoration_total_height = window->TitleBarHeight() + window->MenuBarHeight() + window->ScrollbarSizes.y; + float center_y_ratio = window->ScrollTargetCenterRatio.y; + float scroll_target_y = window->ScrollTarget.y; + if (window->ScrollTargetEdgeSnapDist.y > 0.0f) + { + float snap_y_min = 0.0f; + float snap_y_max = window->ScrollMax.y + window->SizeFull.y - decoration_total_height; + scroll_target_y = CalcScrollEdgeSnap(scroll_target_y, snap_y_min, snap_y_max, window->ScrollTargetEdgeSnapDist.y, center_y_ratio); + } + scroll.y = scroll_target_y - center_y_ratio * (window->SizeFull.y - decoration_total_height); + } + scroll.x = IM_FLOOR(ImMax(scroll.x, 0.0f)); + scroll.y = IM_FLOOR(ImMax(scroll.y, 0.0f)); + if (!window->Collapsed && !window->SkipItems) + { + scroll.x = ImMin(scroll.x, window->ScrollMax.x); + scroll.y = ImMin(scroll.y, window->ScrollMax.y); + } + return scroll; +} + +void ImGui::ScrollToItem(ImGuiScrollFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ScrollToRectEx(window, g.LastItemData.NavRect, flags); +} + +void ImGui::ScrollToRect(ImGuiWindow* window, const ImRect& item_rect, ImGuiScrollFlags flags) +{ + ScrollToRectEx(window, item_rect, flags); +} + +// Scroll to keep newly navigated item fully into view +ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGuiScrollFlags flags) +{ + ImGuiContext& g = *GImGui; + ImRect window_rect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1)); + //GetForegroundDrawList(window)->AddRect(window_rect.Min, window_rect.Max, IM_COL32_WHITE); // [DEBUG] + + // Check that only one behavior is selected per axis + IM_ASSERT((flags & ImGuiScrollFlags_MaskX_) == 0 || ImIsPowerOfTwo(flags & ImGuiScrollFlags_MaskX_)); + IM_ASSERT((flags & ImGuiScrollFlags_MaskY_) == 0 || ImIsPowerOfTwo(flags & ImGuiScrollFlags_MaskY_)); + + // Defaults + ImGuiScrollFlags in_flags = flags; + if ((flags & ImGuiScrollFlags_MaskX_) == 0 && window->ScrollbarX) + flags |= ImGuiScrollFlags_KeepVisibleEdgeX; + if ((flags & ImGuiScrollFlags_MaskY_) == 0) + flags |= window->Appearing ? ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeY; + + const bool fully_visible_x = item_rect.Min.x >= window_rect.Min.x && item_rect.Max.x <= window_rect.Max.x; + const bool fully_visible_y = item_rect.Min.y >= window_rect.Min.y && item_rect.Max.y <= window_rect.Max.y; + const bool can_be_fully_visible_x = (item_rect.GetWidth() + g.Style.ItemSpacing.x * 2.0f) <= window_rect.GetWidth() || (window->AutoFitFramesX > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + const bool can_be_fully_visible_y = (item_rect.GetHeight() + g.Style.ItemSpacing.y * 2.0f) <= window_rect.GetHeight() || (window->AutoFitFramesY > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + + if ((flags & ImGuiScrollFlags_KeepVisibleEdgeX) && !fully_visible_x) + { + if (item_rect.Min.x < window_rect.Min.x || !can_be_fully_visible_x) + SetScrollFromPosX(window, item_rect.Min.x - g.Style.ItemSpacing.x - window->Pos.x, 0.0f); + else if (item_rect.Max.x >= window_rect.Max.x) + SetScrollFromPosX(window, item_rect.Max.x + g.Style.ItemSpacing.x - window->Pos.x, 1.0f); + } + else if (((flags & ImGuiScrollFlags_KeepVisibleCenterX) && !fully_visible_x) || (flags & ImGuiScrollFlags_AlwaysCenterX)) + { + if (can_be_fully_visible_x) + SetScrollFromPosX(window, ImFloor((item_rect.Min.x + item_rect.Max.y) * 0.5f) - window->Pos.x, 0.5f); + else + SetScrollFromPosX(window, item_rect.Min.x - window->Pos.x, 0.0f); + } + + if ((flags & ImGuiScrollFlags_KeepVisibleEdgeY) && !fully_visible_y) + { + if (item_rect.Min.y < window_rect.Min.y || !can_be_fully_visible_y) + SetScrollFromPosY(window, item_rect.Min.y - g.Style.ItemSpacing.y - window->Pos.y, 0.0f); + else if (item_rect.Max.y >= window_rect.Max.y) + SetScrollFromPosY(window, item_rect.Max.y + g.Style.ItemSpacing.y - window->Pos.y, 1.0f); + } + else if (((flags & ImGuiScrollFlags_KeepVisibleCenterY) && !fully_visible_y) || (flags & ImGuiScrollFlags_AlwaysCenterY)) + { + if (can_be_fully_visible_y) + SetScrollFromPosY(window, ImFloor((item_rect.Min.y + item_rect.Max.y) * 0.5f) - window->Pos.y, 0.5f); + else + SetScrollFromPosY(window, item_rect.Min.y - window->Pos.y, 0.0f); + } + + ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); + ImVec2 delta_scroll = next_scroll - window->Scroll; + + // Also scroll parent window to keep us into view if necessary + if (!(flags & ImGuiScrollFlags_NoScrollParent) && (window->Flags & ImGuiWindowFlags_ChildWindow)) + { + // FIXME-SCROLL: May be an option? + if ((in_flags & (ImGuiScrollFlags_AlwaysCenterX | ImGuiScrollFlags_KeepVisibleCenterX)) != 0) + in_flags = (in_flags & ~ImGuiScrollFlags_MaskX_) | ImGuiScrollFlags_KeepVisibleEdgeX; + if ((in_flags & (ImGuiScrollFlags_AlwaysCenterY | ImGuiScrollFlags_KeepVisibleCenterY)) != 0) + in_flags = (in_flags & ~ImGuiScrollFlags_MaskY_) | ImGuiScrollFlags_KeepVisibleEdgeY; + delta_scroll += ScrollToRectEx(window->ParentWindow, ImRect(item_rect.Min - delta_scroll, item_rect.Max - delta_scroll), in_flags); + } + + return delta_scroll; +} + +float ImGui::GetScrollX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.x; +} + +float ImGui::GetScrollY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.y; +} + +float ImGui::GetScrollMaxX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.x; +} + +float ImGui::GetScrollMaxY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.y; +} + +void ImGui::SetScrollX(ImGuiWindow* window, float scroll_x) +{ + window->ScrollTarget.x = scroll_x; + window->ScrollTargetCenterRatio.x = 0.0f; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollY(ImGuiWindow* window, float scroll_y) +{ + window->ScrollTarget.y = scroll_y; + window->ScrollTargetCenterRatio.y = 0.0f; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollX(float scroll_x) +{ + ImGuiContext& g = *GImGui; + SetScrollX(g.CurrentWindow, scroll_x); +} + +void ImGui::SetScrollY(float scroll_y) +{ + ImGuiContext& g = *GImGui; + SetScrollY(g.CurrentWindow, scroll_y); +} + +// Note that a local position will vary depending on initial scroll value, +// This is a little bit confusing so bear with us: +// - local_pos = (absolution_pos - window->Pos) +// - So local_x/local_y are 0.0f for a position at the upper-left corner of a window, +// and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area. +// - They mostly exist because of legacy API. +// Following the rules above, when trying to work with scrolling code, consider that: +// - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect! +// - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense +// We store a target position so centering and clamping can occur on the next frame when we are guaranteed to have a known window size +void ImGui::SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio) +{ + IM_ASSERT(center_x_ratio >= 0.0f && center_x_ratio <= 1.0f); + window->ScrollTarget.x = IM_FLOOR(local_x + window->Scroll.x); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.x = center_x_ratio; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio) +{ + IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); + const float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); // FIXME: Would be nice to have a more standardized access to our scrollable/client rect; + local_y -= decoration_up_height; + window->ScrollTarget.y = IM_FLOOR(local_y + window->Scroll.y); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.y = center_y_ratio; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollFromPosX(float local_x, float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosX(g.CurrentWindow, local_x, center_x_ratio); +} + +void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosY(g.CurrentWindow, local_y, center_y_ratio); +} + +// center_x_ratio: 0.0f left of last item, 0.5f horizontal center of last item, 1.0f right of last item. +void ImGui::SetScrollHereX(float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_x = ImMax(window->WindowPadding.x, g.Style.ItemSpacing.x); + float target_pos_x = ImLerp(g.LastItemData.Rect.Min.x - spacing_x, g.LastItemData.Rect.Max.x + spacing_x, center_x_ratio); + SetScrollFromPosX(window, target_pos_x - window->Pos.x, center_x_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.x = ImMax(0.0f, window->WindowPadding.x - spacing_x); +} + +// center_y_ratio: 0.0f top of last item, 0.5f vertical center of last item, 1.0f bottom of last item. +void ImGui::SetScrollHereY(float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_y = ImMax(window->WindowPadding.y, g.Style.ItemSpacing.y); + float target_pos_y = ImLerp(window->DC.CursorPosPrevLine.y - spacing_y, window->DC.CursorPosPrevLine.y + window->DC.PrevLineSize.y + spacing_y, center_y_ratio); + SetScrollFromPosY(window, target_pos_y - window->Pos.y, center_y_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.y = ImMax(0.0f, window->WindowPadding.y - spacing_y); +} + +//----------------------------------------------------------------------------- +// [SECTION] TOOLTIPS +//----------------------------------------------------------------------------- + +void ImGui::BeginTooltip() +{ + BeginTooltipEx(ImGuiTooltipFlags_None, ImGuiWindowFlags_None); +} + +void ImGui::BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags) +{ + ImGuiContext& g = *GImGui; + + if (g.DragDropWithinSource || g.DragDropWithinTarget) + { + // The default tooltip position is a little offset to give space to see the context menu (it's also clamped within the current viewport/monitor) + // In the context of a dragging tooltip we try to reduce that offset and we enforce following the cursor. + // Whatever we do we want to call SetNextWindowPos() to enforce a tooltip position and disable clipping the tooltip without our display area, like regular tooltip do. + //ImVec2 tooltip_pos = g.IO.MousePos - g.ActiveIdClickOffset - g.Style.WindowPadding; + ImVec2 tooltip_pos = g.IO.MousePos + ImVec2(16 * g.Style.MouseCursorScale, 8 * g.Style.MouseCursorScale); + SetNextWindowPos(tooltip_pos); + SetNextWindowBgAlpha(g.Style.Colors[ImGuiCol_PopupBg].w * 0.60f); + //PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * 0.60f); // This would be nice but e.g ColorButton with checkboard has issue with transparent colors :( + tooltip_flags |= ImGuiTooltipFlags_OverridePreviousTooltip; + } + + char window_name[16]; + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", g.TooltipOverrideCount); + if (tooltip_flags & ImGuiTooltipFlags_OverridePreviousTooltip) + if (ImGuiWindow* window = FindWindowByName(window_name)) + if (window->Active) + { + // Hide previous tooltip from being displayed. We can't easily "reset" the content of a window so we create a new one. + window->Hidden = true; + window->HiddenFramesCanSkipItems = 1; // FIXME: This may not be necessary? + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", ++g.TooltipOverrideCount); + } + ImGuiWindowFlags flags = ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoDocking; + Begin(window_name, NULL, flags | extra_window_flags); +} + +void ImGui::EndTooltip() +{ + IM_ASSERT(GetCurrentWindowRead()->Flags & ImGuiWindowFlags_Tooltip); // Mismatched BeginTooltip()/EndTooltip() calls + End(); +} + +void ImGui::SetTooltipV(const char* fmt, va_list args) +{ + BeginTooltipEx(ImGuiTooltipFlags_OverridePreviousTooltip, ImGuiWindowFlags_None); + TextV(fmt, args); + EndTooltip(); +} + +void ImGui::SetTooltip(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + SetTooltipV(fmt, args); + va_end(args); +} + +//----------------------------------------------------------------------------- +// [SECTION] POPUPS +//----------------------------------------------------------------------------- + +// Supported flags: ImGuiPopupFlags_AnyPopupId, ImGuiPopupFlags_AnyPopupLevel +bool ImGui::IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + if (popup_flags & ImGuiPopupFlags_AnyPopupId) + { + // Return true if any popup is open at the current BeginPopup() level of the popup stack + // This may be used to e.g. test for another popups already opened to handle popups priorities at the same level. + IM_ASSERT(id == 0); + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + return g.OpenPopupStack.Size > 0; + else + return g.OpenPopupStack.Size > g.BeginPopupStack.Size; + } + else + { + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + { + // Return true if the popup is open anywhere in the popup stack + for (int n = 0; n < g.OpenPopupStack.Size; n++) + if (g.OpenPopupStack[n].PopupId == id) + return true; + return false; + } + else + { + // Return true if the popup is open at the current BeginPopup() level of the popup stack (this is the most-common query) + return g.OpenPopupStack.Size > g.BeginPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].PopupId == id; + } + } +} + +bool ImGui::IsPopupOpen(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = (popup_flags & ImGuiPopupFlags_AnyPopupId) ? 0 : g.CurrentWindow->GetID(str_id); + if ((popup_flags & ImGuiPopupFlags_AnyPopupLevel) && id != 0) + IM_ASSERT(0 && "Cannot use IsPopupOpen() with a string id and ImGuiPopupFlags_AnyPopupLevel."); // But non-string version is legal and used internally + return IsPopupOpen(id, popup_flags); +} + +ImGuiWindow* ImGui::GetTopMostPopupModal() +{ + ImGuiContext& g = *GImGui; + for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) + if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window) + if (popup->Flags & ImGuiWindowFlags_Modal) + return popup; + return NULL; +} + +ImGuiWindow* ImGui::GetTopMostAndVisiblePopupModal() +{ + ImGuiContext& g = *GImGui; + for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) + if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window) + if ((popup->Flags & ImGuiWindowFlags_Modal) && IsWindowActiveAndVisible(popup)) + return popup; + return NULL; +} + +void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.CurrentWindow->GetID(str_id); + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopup(\"%s\" -> 0x%08X\n", str_id, id); + OpenPopupEx(id, popup_flags); +} + +void ImGui::OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + OpenPopupEx(id, popup_flags); +} + +// Mark popup as open (toggle toward open state). +// Popups are closed when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block. +// Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). +// One open popup per level of the popup hierarchy (NB: when assigning we reset the Window member of ImGuiPopupRef to NULL) +void ImGui::OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + const int current_stack_size = g.BeginPopupStack.Size; + + if (popup_flags & ImGuiPopupFlags_NoOpenOverExistingPopup) + if (IsPopupOpen(0u, ImGuiPopupFlags_AnyPopupId)) + return; + + ImGuiPopupData popup_ref; // Tagged as new ref as Window will be set back to NULL if we write this into OpenPopupStack. + popup_ref.PopupId = id; + popup_ref.Window = NULL; + popup_ref.BackupNavWindow = g.NavWindow; // When popup closes focus may be restored to NavWindow (depend on window type). + popup_ref.OpenFrameCount = g.FrameCount; + popup_ref.OpenParentId = parent_window->IDStack.back(); + popup_ref.OpenPopupPos = NavCalcPreferredRefPos(); + popup_ref.OpenMousePos = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : popup_ref.OpenPopupPos; + + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopupEx(0x%08X)\n", id); + if (g.OpenPopupStack.Size < current_stack_size + 1) + { + g.OpenPopupStack.push_back(popup_ref); + } + else + { + // Gently handle the user mistakenly calling OpenPopup() every frame. It is a programming mistake! However, if we were to run the regular code path, the ui + // would become completely unusable because the popup will always be in hidden-while-calculating-size state _while_ claiming focus. Which would be a very confusing + // situation for the programmer. Instead, we silently allow the popup to proceed, it will keep reappearing and the programming error will be more obvious to understand. + if (g.OpenPopupStack[current_stack_size].PopupId == id && g.OpenPopupStack[current_stack_size].OpenFrameCount == g.FrameCount - 1) + { + g.OpenPopupStack[current_stack_size].OpenFrameCount = popup_ref.OpenFrameCount; + } + else + { + // Close child popups if any, then flag popup for open/reopen + ClosePopupToLevel(current_stack_size, false); + g.OpenPopupStack.push_back(popup_ref); + } + + // When reopening a popup we first refocus its parent, otherwise if its parent is itself a popup it would get closed by ClosePopupsOverWindow(). + // This is equivalent to what ClosePopupToLevel() does. + //if (g.OpenPopupStack[current_stack_size].PopupId == id) + // FocusWindow(parent_window); + } +} + +// When popups are stacked, clicking on a lower level popups puts focus back to it and close popups above it. +// This function closes any popups that are over 'ref_window'. +void ImGui::ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size == 0) + return; + + // Don't close our own child popup windows. + int popup_count_to_keep = 0; + if (ref_window) + { + // Find the highest popup which is a descendant of the reference window (generally reference window = NavWindow) + for (; popup_count_to_keep < g.OpenPopupStack.Size; popup_count_to_keep++) + { + ImGuiPopupData& popup = g.OpenPopupStack[popup_count_to_keep]; + if (!popup.Window) + continue; + IM_ASSERT((popup.Window->Flags & ImGuiWindowFlags_Popup) != 0); + if (popup.Window->Flags & ImGuiWindowFlags_ChildWindow) + continue; + + // Trim the stack unless the popup is a direct parent of the reference window (the reference window is often the NavWindow) + // - With this stack of window, clicking/focusing Popup1 will close Popup2 and Popup3: + // Window -> Popup1 -> Popup2 -> Popup3 + // - Each popups may contain child windows, which is why we compare ->RootWindowDockTree! + // Window -> Popup1 -> Popup1_Child -> Popup2 -> Popup2_Child + bool ref_window_is_descendent_of_popup = false; + for (int n = popup_count_to_keep; n < g.OpenPopupStack.Size; n++) + if (ImGuiWindow* popup_window = g.OpenPopupStack[n].Window) + //if (popup_window->RootWindowDockTree == ref_window->RootWindowDockTree) // FIXME-MERGE + if (IsWindowWithinBeginStackOf(ref_window, popup_window)) + { + ref_window_is_descendent_of_popup = true; + break; + } + if (!ref_window_is_descendent_of_popup) + break; + } + } + if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below + { + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupsOverWindow(\"%s\")\n", ref_window ? ref_window->Name : ""); + ClosePopupToLevel(popup_count_to_keep, restore_focus_to_window_under_popup); + } +} + +void ImGui::ClosePopupsExceptModals() +{ + ImGuiContext& g = *GImGui; + + int popup_count_to_keep; + for (popup_count_to_keep = g.OpenPopupStack.Size; popup_count_to_keep > 0; popup_count_to_keep--) + { + ImGuiWindow* window = g.OpenPopupStack[popup_count_to_keep - 1].Window; + if (!window || window->Flags & ImGuiWindowFlags_Modal) + break; + } + if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below + ClosePopupToLevel(popup_count_to_keep, true); +} + +void ImGui::ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); + IM_ASSERT(remaining >= 0 && remaining < g.OpenPopupStack.Size); + + // Trim open popup stack + ImGuiWindow* popup_window = g.OpenPopupStack[remaining].Window; + ImGuiWindow* popup_backup_nav_window = g.OpenPopupStack[remaining].BackupNavWindow; + g.OpenPopupStack.resize(remaining); + + if (restore_focus_to_window_under_popup) + { + ImGuiWindow* focus_window = (popup_window && popup_window->Flags & ImGuiWindowFlags_ChildMenu) ? popup_window->ParentWindow : popup_backup_nav_window; + if (focus_window && !focus_window->WasActive && popup_window) + { + // Fallback + FocusTopMostWindowUnderOne(popup_window, NULL); + } + else + { + if (g.NavLayer == ImGuiNavLayer_Main && focus_window) + focus_window = NavRestoreLastChildNavWindow(focus_window); + FocusWindow(focus_window); + } + } +} + +// Close the popup we have begin-ed into. +void ImGui::CloseCurrentPopup() +{ + ImGuiContext& g = *GImGui; + int popup_idx = g.BeginPopupStack.Size - 1; + if (popup_idx < 0 || popup_idx >= g.OpenPopupStack.Size || g.BeginPopupStack[popup_idx].PopupId != g.OpenPopupStack[popup_idx].PopupId) + return; + + // Closing a menu closes its top-most parent popup (unless a modal) + while (popup_idx > 0) + { + ImGuiWindow* popup_window = g.OpenPopupStack[popup_idx].Window; + ImGuiWindow* parent_popup_window = g.OpenPopupStack[popup_idx - 1].Window; + bool close_parent = false; + if (popup_window && (popup_window->Flags & ImGuiWindowFlags_ChildMenu)) + if (parent_popup_window && !(parent_popup_window->Flags & ImGuiWindowFlags_MenuBar)) + close_parent = true; + if (!close_parent) + break; + popup_idx--; + } + IMGUI_DEBUG_LOG_POPUP("[popup] CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); + ClosePopupToLevel(popup_idx, true); + + // A common pattern is to close a popup when selecting a menu item/selectable that will open another window. + // To improve this usage pattern, we avoid nav highlight for a single frame in the parent window. + // Similarly, we could avoid mouse hover highlight in this window but it is less visually problematic. + if (ImGuiWindow* window = g.NavWindow) + window->DC.NavHideHighlightOneFrame = true; +} + +// Attention! BeginPopup() adds default flags which BeginPopupEx()! +bool ImGui::BeginPopupEx(ImGuiID id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + char name[20]; + if (flags & ImGuiWindowFlags_ChildMenu) + ImFormatString(name, IM_ARRAYSIZE(name), "##Menu_%02d", g.BeginMenuCount); // Recycle windows based on depth + else + ImFormatString(name, IM_ARRAYSIZE(name), "##Popup_%08x", id); // Not recycling, so we can close/open during the same frame + + flags |= ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoDocking; + bool is_open = Begin(name, NULL, flags); + if (!is_open) // NB: Begin can return false when the popup is completely clipped (e.g. zero size display) + EndPopup(); + + return is_open; +} + +bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size <= g.BeginPopupStack.Size) // Early out for performance + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + flags |= ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings; + ImGuiID id = g.CurrentWindow->GetID(str_id); + return BeginPopupEx(id, flags); +} + +// If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup. +// Note that popup visibility status is owned by Dear ImGui (and manipulated with e.g. OpenPopup) so the actual value of *p_open is meaningless here. +bool ImGui::BeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = window->GetID(name); + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + // Center modal windows by default for increased visibility + // (this won't really last as settings will kick in, and is mostly for backward compatibility. user may do the same themselves) + // FIXME: Should test for (PosCond & window->SetWindowPosAllowFlags) with the upcoming window. + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) == 0) + { + const ImGuiViewport* viewport = window->WasActive ? window->Viewport : GetMainViewport(); // FIXME-VIEWPORT: What may be our reference viewport? + SetNextWindowPos(viewport->GetCenter(), ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f)); + } + + flags |= ImGuiWindowFlags_Popup | ImGuiWindowFlags_Modal | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoDocking; + const bool is_open = Begin(name, p_open, flags); + if (!is_open || (p_open && !*p_open)) // NB: is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + { + EndPopup(); + if (is_open) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + return false; + } + return is_open; +} + +void ImGui::EndPopup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginPopup()/EndPopup() calls + IM_ASSERT(g.BeginPopupStack.Size > 0); + + // Make all menus and popups wrap around for now, may need to expose that policy (e.g. focus scope could include wrap/loop policy flags used by new move requests) + if (g.NavWindow == window) + NavMoveRequestTryWrapping(window, ImGuiNavMoveFlags_LoopY); + + // Child-popups don't need to be laid out + IM_ASSERT(g.WithinEndChild == false); + if (window->Flags & ImGuiWindowFlags_ChildWindow) + g.WithinEndChild = true; + End(); + g.WithinEndChild = false; +} + +// Helper to open a popup if mouse button is released over the item +// - This is essentially the same as BeginPopupContextItem() but without the trailing BeginPopup() +void ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + { + ImGuiID id = str_id ? window->GetID(str_id) : g.LastItemData.ID; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + OpenPopupEx(id, popup_flags); + } +} + +// This is a helper to handle the simplest case of associating one named popup to one given widget. +// - To create a popup associated to the last item, you generally want to pass a NULL value to str_id. +// - To create a popup with a specific identifier, pass it in str_id. +// - This is useful when using using BeginPopupContextItem() on an item which doesn't have an identifier, e.g. a Text() call. +// - This is useful when multiple code locations may want to manipulate/open the same popup, given an explicit id. +// - You may want to handle the whole on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters). +// This is essentially the same as: +// id = str_id ? GetID(str_id) : GetItemID(); +// OpenPopupOnItemClick(str_id, ImGuiPopupFlags_MouseButtonRight); +// return BeginPopup(id); +// Which is essentially the same as: +// id = str_id ? GetID(str_id) : GetItemID(); +// if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) +// OpenPopup(id); +// return BeginPopup(id); +// The main difference being that this is tweaked to avoid computing the ID twice. +bool ImGui::BeginPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + ImGuiID id = str_id ? window->GetID(str_id) : g.LastItemData.ID; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextWindow(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!str_id) + str_id = "window_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + if (!(popup_flags & ImGuiPopupFlags_NoOpenOverItems) || !IsAnyItemHovered()) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextVoid(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!str_id) + str_id = "void_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && !IsWindowHovered(ImGuiHoveredFlags_AnyWindow)) + if (GetTopMostPopupModal() == NULL) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +// r_avoid = the rectangle to avoid (e.g. for tooltip it is a rectangle around the mouse cursor which we want to avoid. for popups it's a small point around the cursor.) +// r_outer = the visible area rectangle, minus safe area padding. If our popup size won't fit because of safe area padding we ignore it. +// (r_outer is usually equivalent to the viewport rectangle minus padding, but when multi-viewports are enabled and monitor +// information are available, it may represent the entire platform monitor from the frame of reference of the current viewport. +// this allows us to have tooltips/popups displayed out of the parent viewport.) +ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy) +{ + ImVec2 base_pos_clamped = ImClamp(ref_pos, r_outer.Min, r_outer.Max - size); + //GetForegroundDrawList()->AddRect(r_avoid.Min, r_avoid.Max, IM_COL32(255,0,0,255)); + //GetForegroundDrawList()->AddRect(r_outer.Min, r_outer.Max, IM_COL32(0,255,0,255)); + + // Combo Box policy (we want a connecting edge) + if (policy == ImGuiPopupPositionPolicy_ComboBox) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Down, ImGuiDir_Right, ImGuiDir_Left, ImGuiDir_Up }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + ImVec2 pos; + if (dir == ImGuiDir_Down) pos = ImVec2(r_avoid.Min.x, r_avoid.Max.y); // Below, Toward Right (default) + if (dir == ImGuiDir_Right) pos = ImVec2(r_avoid.Min.x, r_avoid.Min.y - size.y); // Above, Toward Right + if (dir == ImGuiDir_Left) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Max.y); // Below, Toward Left + if (dir == ImGuiDir_Up) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Min.y - size.y); // Above, Toward Left + if (!r_outer.Contains(ImRect(pos, pos + size))) + continue; + *last_dir = dir; + return pos; + } + } + + // Tooltip and Default popup policy + // (Always first try the direction we used on the last frame, if any) + if (policy == ImGuiPopupPositionPolicy_Tooltip || policy == ImGuiPopupPositionPolicy_Default) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Right, ImGuiDir_Down, ImGuiDir_Up, ImGuiDir_Left }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + + const float avail_w = (dir == ImGuiDir_Left ? r_avoid.Min.x : r_outer.Max.x) - (dir == ImGuiDir_Right ? r_avoid.Max.x : r_outer.Min.x); + const float avail_h = (dir == ImGuiDir_Up ? r_avoid.Min.y : r_outer.Max.y) - (dir == ImGuiDir_Down ? r_avoid.Max.y : r_outer.Min.y); + + // If there's not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) + if (avail_w < size.x && (dir == ImGuiDir_Left || dir == ImGuiDir_Right)) + continue; + if (avail_h < size.y && (dir == ImGuiDir_Up || dir == ImGuiDir_Down)) + continue; + + ImVec2 pos; + pos.x = (dir == ImGuiDir_Left) ? r_avoid.Min.x - size.x : (dir == ImGuiDir_Right) ? r_avoid.Max.x : base_pos_clamped.x; + pos.y = (dir == ImGuiDir_Up) ? r_avoid.Min.y - size.y : (dir == ImGuiDir_Down) ? r_avoid.Max.y : base_pos_clamped.y; + + // Clamp top-left corner of popup + pos.x = ImMax(pos.x, r_outer.Min.x); + pos.y = ImMax(pos.y, r_outer.Min.y); + + *last_dir = dir; + return pos; + } + } + + // Fallback when not enough room: + *last_dir = ImGuiDir_None; + + // For tooltip we prefer avoiding the cursor at all cost even if it means that part of the tooltip won't be visible. + if (policy == ImGuiPopupPositionPolicy_Tooltip) + return ref_pos + ImVec2(2, 2); + + // Otherwise try to keep within display + ImVec2 pos = ref_pos; + pos.x = ImMax(ImMin(pos.x + size.x, r_outer.Max.x) - size.x, r_outer.Min.x); + pos.y = ImMax(ImMin(pos.y + size.y, r_outer.Max.y) - size.y, r_outer.Min.y); + return pos; +} + +// Note that this is used for popups, which can overlap the non work-area of individual viewports. +ImRect ImGui::GetPopupAllowedExtentRect(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImRect r_screen; + if (window->ViewportAllowPlatformMonitorExtend >= 0) + { + // Extent with be in the frame of reference of the given viewport (so Min is likely to be negative here) + const ImGuiPlatformMonitor& monitor = g.PlatformIO.Monitors[window->ViewportAllowPlatformMonitorExtend]; + r_screen.Min = monitor.WorkPos; + r_screen.Max = monitor.WorkPos + monitor.WorkSize; + } + else + { + // Use the full viewport area (not work area) for popups + r_screen = window->Viewport->GetMainRect(); + } + ImVec2 padding = g.Style.DisplaySafeAreaPadding; + r_screen.Expand(ImVec2((r_screen.GetWidth() > padding.x * 2) ? -padding.x : 0.0f, (r_screen.GetHeight() > padding.y * 2) ? -padding.y : 0.0f)); + return r_screen; +} + +ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + ImRect r_outer = GetPopupAllowedExtentRect(window); + if (window->Flags & ImGuiWindowFlags_ChildMenu) + { + // Child menus typically request _any_ position within the parent menu item, and then we move the new menu outside the parent bounds. + // This is how we end up with child menus appearing (most-commonly) on the right of the parent menu. + ImGuiWindow* parent_window = window->ParentWindow; + float horizontal_overlap = g.Style.ItemInnerSpacing.x; // We want some overlap to convey the relative depth of each menu (currently the amount of overlap is hard-coded to style.ItemSpacing.x). + ImRect r_avoid; + if (parent_window->DC.MenuBarAppending) + r_avoid = ImRect(-FLT_MAX, parent_window->ClipRect.Min.y, FLT_MAX, parent_window->ClipRect.Max.y); // Avoid parent menu-bar. If we wanted multi-line menu-bar, we may instead want to have the calling window setup e.g. a NextWindowData.PosConstraintAvoidRect field + else + r_avoid = ImRect(parent_window->Pos.x + horizontal_overlap, -FLT_MAX, parent_window->Pos.x + parent_window->Size.x - horizontal_overlap - parent_window->ScrollbarSizes.x, FLT_MAX); + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); + } + if (window->Flags & ImGuiWindowFlags_Popup) + { + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, ImRect(window->Pos, window->Pos), ImGuiPopupPositionPolicy_Default); // Ideally we'd disable r_avoid here + } + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Position tooltip (always follows mouse) + float sc = g.Style.MouseCursorScale; + ImVec2 ref_pos = NavCalcPreferredRefPos(); + ImRect r_avoid; + if (!g.NavDisableHighlight && g.NavDisableMouseHover && !(g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos)) + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 16, ref_pos.y + 8); + else + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 24 * sc, ref_pos.y + 24 * sc); // FIXME: Hard-coded based on mouse cursor shape expectation. Exact dimension not very important. + return FindBestWindowPosForPopupEx(ref_pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Tooltip); + } + IM_ASSERT(0); + return window->Pos; +} + +//----------------------------------------------------------------------------- +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +//----------------------------------------------------------------------------- + +// FIXME-NAV: The existence of SetNavID vs SetFocusID vs FocusWindow() needs to be clarified/reworked. +// In our terminology those should be interchangeable, yet right now this is super confusing. +// Those two functions are merely a legacy artifact, so at minimum naming should be clarified. + +void ImGui::SetNavWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.NavWindow != window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] SetNavWindow(\"%s\")\n", window ? window->Name : ""); + g.NavWindow = window; + } + g.NavInitRequest = g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + +void ImGui::SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindow != NULL); + IM_ASSERT(nav_layer == ImGuiNavLayer_Main || nav_layer == ImGuiNavLayer_Menu); + g.NavId = id; + g.NavLayer = nav_layer; + g.NavFocusScopeId = focus_scope_id; + g.NavWindow->NavLastIds[nav_layer] = id; + g.NavWindow->NavRectRel[nav_layer] = rect_rel; +} + +void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(id != 0); + + if (g.NavWindow != window) + SetNavWindow(window); + + // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and g.CurrentFocusScopeId are valid. + // Note that window may be != g.CurrentWindow (e.g. SetFocusID call in InputTextEx for multi-line text) + const ImGuiNavLayer nav_layer = window->DC.NavLayerCurrent; + g.NavId = id; + g.NavLayer = nav_layer; + g.NavFocusScopeId = g.CurrentFocusScopeId; + window->NavLastIds[nav_layer] = id; + if (g.LastItemData.ID == id) + window->NavRectRel[nav_layer] = WindowRectAbsToRel(window, g.LastItemData.NavRect); + + if (g.ActiveIdSource == ImGuiInputSource_Nav) + g.NavDisableMouseHover = true; + else + g.NavDisableHighlight = true; +} + +ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) +{ + if (ImFabs(dx) > ImFabs(dy)) + return (dx > 0.0f) ? ImGuiDir_Right : ImGuiDir_Left; + return (dy > 0.0f) ? ImGuiDir_Down : ImGuiDir_Up; +} + +static float inline NavScoreItemDistInterval(float a0, float a1, float b0, float b1) +{ + if (a1 < b0) + return a1 - b0; + if (b1 < a0) + return a0 - b1; + return 0.0f; +} + +static void inline NavClampRectToVisibleAreaForMoveDir(ImGuiDir move_dir, ImRect& r, const ImRect& clip_rect) +{ + if (move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) + { + r.Min.y = ImClamp(r.Min.y, clip_rect.Min.y, clip_rect.Max.y); + r.Max.y = ImClamp(r.Max.y, clip_rect.Min.y, clip_rect.Max.y); + } + else // FIXME: PageUp/PageDown are leaving move_dir == None + { + r.Min.x = ImClamp(r.Min.x, clip_rect.Min.x, clip_rect.Max.x); + r.Max.x = ImClamp(r.Max.x, clip_rect.Min.x, clip_rect.Max.x); + } +} + +// Scoring function for gamepad/keyboard directional navigation. Based on https://gist.github.com/rygorous/6981057 +static bool ImGui::NavScoreItem(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.NavLayer != window->DC.NavLayerCurrent) + return false; + + // FIXME: Those are not good variables names + ImRect cand = g.LastItemData.NavRect; // Current item nav rectangle + const ImRect curr = g.NavScoringRect; // Current modified source rect (NB: we've applied Max.x = Min.x in NavUpdate() to inhibit the effect of having varied item width) + g.NavScoringDebugCount++; + + // When entering through a NavFlattened border, we consider child window items as fully clipped for scoring + if (window->ParentWindow == g.NavWindow) + { + IM_ASSERT((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened); + if (!window->ClipRect.Overlaps(cand)) + return false; + cand.ClipWithFull(window->ClipRect); // This allows the scored item to not overlap other candidates in the parent window + } + + // We perform scoring on items bounding box clipped by the current clipping rectangle on the other axis (clipping on our movement axis would give us equal scores for all clipped items) + // For example, this ensures that items in one column are not reached when moving vertically from items in another column. + NavClampRectToVisibleAreaForMoveDir(g.NavMoveClipDir, cand, window->ClipRect); + + // Compute distance between boxes + // FIXME-NAV: Introducing biases for vertical navigation, needs to be removed. + float dbx = NavScoreItemDistInterval(cand.Min.x, cand.Max.x, curr.Min.x, curr.Max.x); + float dby = NavScoreItemDistInterval(ImLerp(cand.Min.y, cand.Max.y, 0.2f), ImLerp(cand.Min.y, cand.Max.y, 0.8f), ImLerp(curr.Min.y, curr.Max.y, 0.2f), ImLerp(curr.Min.y, curr.Max.y, 0.8f)); // Scale down on Y to keep using box-distance for vertically touching items + if (dby != 0.0f && dbx != 0.0f) + dbx = (dbx / 1000.0f) + ((dbx > 0.0f) ? +1.0f : -1.0f); + float dist_box = ImFabs(dbx) + ImFabs(dby); + + // Compute distance between centers (this is off by a factor of 2, but we only compare center distances with each other so it doesn't matter) + float dcx = (cand.Min.x + cand.Max.x) - (curr.Min.x + curr.Max.x); + float dcy = (cand.Min.y + cand.Max.y) - (curr.Min.y + curr.Max.y); + float dist_center = ImFabs(dcx) + ImFabs(dcy); // L1 metric (need this for our connectedness guarantee) + + // Determine which quadrant of 'curr' our candidate item 'cand' lies in based on distance + ImGuiDir quadrant; + float dax = 0.0f, day = 0.0f, dist_axial = 0.0f; + if (dbx != 0.0f || dby != 0.0f) + { + // For non-overlapping boxes, use distance between boxes + dax = dbx; + day = dby; + dist_axial = dist_box; + quadrant = ImGetDirQuadrantFromDelta(dbx, dby); + } + else if (dcx != 0.0f || dcy != 0.0f) + { + // For overlapping boxes with different centers, use distance between centers + dax = dcx; + day = dcy; + dist_axial = dist_center; + quadrant = ImGetDirQuadrantFromDelta(dcx, dcy); + } + else + { + // Degenerate case: two overlapping buttons with same center, break ties arbitrarily (note that LastItemId here is really the _previous_ item order, but it doesn't matter) + quadrant = (g.LastItemData.ID < g.NavId) ? ImGuiDir_Left : ImGuiDir_Right; + } + +#if IMGUI_DEBUG_NAV_SCORING + char buf[128]; + if (IsMouseHoveringRect(cand.Min, cand.Max)) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "dbox (%.2f,%.2f->%.4f)\ndcen (%.2f,%.2f->%.4f)\nd (%.2f,%.2f->%.4f)\nnav %c, quadrant %c", dbx, dby, dist_box, dcx, dcy, dist_center, dax, day, dist_axial, "WENS"[g.NavMoveDir], "WENS"[quadrant]); + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRect(curr.Min, curr.Max, IM_COL32(255,200,0,100)); + draw_list->AddRect(cand.Min, cand.Max, IM_COL32(255,255,0,200)); + draw_list->AddRectFilled(cand.Max - ImVec2(4, 4), cand.Max + CalcTextSize(buf) + ImVec2(4, 4), IM_COL32(40,0,0,150)); + draw_list->AddText(cand.Max, ~0U, buf); + } + else if (g.IO.KeyCtrl) // Hold to preview score in matching quadrant. Press C to rotate. + { + if (quadrant == g.NavMoveDir) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "%.0f/%.0f", dist_box, dist_center); + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRectFilled(cand.Min, cand.Max, IM_COL32(255, 0, 0, 200)); + draw_list->AddText(cand.Min, IM_COL32(255, 255, 255, 255), buf); + } + } +#endif + + // Is it in the quadrant we're interested in moving to? + bool new_best = false; + const ImGuiDir move_dir = g.NavMoveDir; + if (quadrant == move_dir) + { + // Does it beat the current best candidate? + if (dist_box < result->DistBox) + { + result->DistBox = dist_box; + result->DistCenter = dist_center; + return true; + } + if (dist_box == result->DistBox) + { + // Try using distance between center points to break ties + if (dist_center < result->DistCenter) + { + result->DistCenter = dist_center; + new_best = true; + } + else if (dist_center == result->DistCenter) + { + // Still tied! we need to be extra-careful to make sure everything gets linked properly. We consistently break ties by symbolically moving "later" items + // (with higher index) to the right/downwards by an infinitesimal amount since we the current "best" button already (so it must have a lower index), + // this is fairly easy. This rule ensures that all buttons with dx==dy==0 will end up being linked in order of appearance along the x axis. + if (((move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) ? dby : dbx) < 0.0f) // moving bj to the right/down decreases distance + new_best = true; + } + } + } + + // Axial check: if 'curr' has no link at all in some direction and 'cand' lies roughly in that direction, add a tentative link. This will only be kept if no "real" matches + // are found, so it only augments the graph produced by the above method using extra links. (important, since it doesn't guarantee strong connectedness) + // This is just to avoid buttons having no links in a particular direction when there's a suitable neighbor. you get good graphs without this too. + // 2017/09/29: FIXME: This now currently only enabled inside menu bars, ideally we'd disable it everywhere. Menus in particular need to catch failure. For general navigation it feels awkward. + // Disabling it may lead to disconnected graphs when nodes are very spaced out on different axis. Perhaps consider offering this as an option? + if (result->DistBox == FLT_MAX && dist_axial < result->DistAxial) // Check axial match + if (g.NavLayer == ImGuiNavLayer_Menu && !(g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + if ((move_dir == ImGuiDir_Left && dax < 0.0f) || (move_dir == ImGuiDir_Right && dax > 0.0f) || (move_dir == ImGuiDir_Up && day < 0.0f) || (move_dir == ImGuiDir_Down && day > 0.0f)) + { + result->DistAxial = dist_axial; + new_best = true; + } + + return new_best; +} + +static void ImGui::NavApplyItemToResult(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + result->Window = window; + result->ID = g.LastItemData.ID; + result->FocusScopeId = g.CurrentFocusScopeId; + result->InFlags = g.LastItemData.InFlags; + result->RectRel = WindowRectAbsToRel(window, g.LastItemData.NavRect); +} + +// We get there when either NavId == id, or when g.NavAnyRequest is set (which is updated by NavUpdateAnyRequestFlag above) +// This is called after LastItemData is set. +static void ImGui::NavProcessItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = g.LastItemData.ID; + const ImRect nav_bb = g.LastItemData.NavRect; + const ImGuiItemFlags item_flags = g.LastItemData.InFlags; + + // Process Init Request + if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent && (item_flags & ImGuiItemFlags_Disabled) == 0) + { + // Even if 'ImGuiItemFlags_NoNavDefaultFocus' is on (typically collapse/close button) we record the first ResultId so they can be used as a fallback + const bool candidate_for_nav_default_focus = (item_flags & ImGuiItemFlags_NoNavDefaultFocus) == 0; + if (candidate_for_nav_default_focus || g.NavInitResultId == 0) + { + g.NavInitResultId = id; + g.NavInitResultRectRel = WindowRectAbsToRel(window, nav_bb); + } + if (candidate_for_nav_default_focus) + { + g.NavInitRequest = false; // Found a match, clear request + NavUpdateAnyRequestFlag(); + } + } + + // Process Move Request (scoring for navigation) + // FIXME-NAV: Consider policy for double scoring (scoring from NavScoringRect + scoring from a rect wrapped according to current wrapping policy) + if (g.NavMoveScoringItems) + { + const bool is_tab_stop = (item_flags & ImGuiItemFlags_Inputable) && (item_flags & (ImGuiItemFlags_NoTabStop | ImGuiItemFlags_Disabled)) == 0; + const bool is_tabbing = (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) != 0; + if (is_tabbing) + { + if (is_tab_stop || (g.NavMoveFlags & ImGuiNavMoveFlags_FocusApi)) + NavProcessItemForTabbingRequest(id); + } + else if ((g.NavId != id || (g.NavMoveFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) && !(item_flags & ImGuiItemFlags_Disabled)) + { + ImGuiNavItemData* result = (window == g.NavWindow) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; + if (!is_tabbing) + { + if (NavScoreItem(result)) + NavApplyItemToResult(result); + + // Features like PageUp/PageDown need to maintain a separate score for the visible set of items. + const float VISIBLE_RATIO = 0.70f; + if ((g.NavMoveFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) && window->ClipRect.Overlaps(nav_bb)) + if (ImClamp(nav_bb.Max.y, window->ClipRect.Min.y, window->ClipRect.Max.y) - ImClamp(nav_bb.Min.y, window->ClipRect.Min.y, window->ClipRect.Max.y) >= (nav_bb.Max.y - nav_bb.Min.y) * VISIBLE_RATIO) + if (NavScoreItem(&g.NavMoveResultLocalVisible)) + NavApplyItemToResult(&g.NavMoveResultLocalVisible); + } + } + } + + // Update window-relative bounding box of navigated item + if (g.NavId == id) + { + if (g.NavWindow != window) + SetNavWindow(window); // Always refresh g.NavWindow, because some operations such as FocusItem() may not have a window. + g.NavLayer = window->DC.NavLayerCurrent; + g.NavFocusScopeId = g.CurrentFocusScopeId; + g.NavIdIsAlive = true; + window->NavRectRel[window->DC.NavLayerCurrent] = WindowRectAbsToRel(window, nav_bb); // Store item bounding box (relative to window position) + } +} + +// Handle "scoring" of an item for a tabbing/focusing request initiated by NavUpdateCreateTabbingRequest(). +// Note that SetKeyboardFocusHere() API calls are considered tabbing requests! +// - Case 1: no nav/active id: set result to first eligible item, stop storing. +// - Case 2: tab forward: on ref id set counter, on counter elapse store result +// - Case 3: tab forward wrap: set result to first eligible item (preemptively), on ref id set counter, on next frame if counter hasn't elapsed store result. // FIXME-TABBING: Could be done as a next-frame forwarded request +// - Case 4: tab backward: store all results, on ref id pick prev, stop storing +// - Case 5: tab backward wrap: store all results, on ref id if no result keep storing until last // FIXME-TABBING: Could be done as next-frame forwarded requested +void ImGui::NavProcessItemForTabbingRequest(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + + // Always store in NavMoveResultLocal (unlike directional request which uses NavMoveResultOther on sibling/flattened windows) + ImGuiNavItemData* result = &g.NavMoveResultLocal; + if (g.NavTabbingDir == +1) + { + // Tab Forward or SetKeyboardFocusHere() with >= 0 + if (g.NavTabbingResultFirst.ID == 0) + NavApplyItemToResult(&g.NavTabbingResultFirst); + if (--g.NavTabbingCounter == 0) + NavMoveRequestResolveWithLastItem(result); + else if (g.NavId == id) + g.NavTabbingCounter = 1; + } + else if (g.NavTabbingDir == -1) + { + // Tab Backward + if (g.NavId == id) + { + if (result->ID) + { + g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); + } + } + else + { + NavApplyItemToResult(result); + } + } + else if (g.NavTabbingDir == 0) + { + // Tab Init + if (g.NavTabbingResultFirst.ID == 0) + NavMoveRequestResolveWithLastItem(&g.NavTabbingResultFirst); + } +} + +bool ImGui::NavMoveRequestButNoResultYet() +{ + ImGuiContext& g = *GImGui; + return g.NavMoveScoringItems && g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0; +} + +// FIXME: ScoringRect is not set +void ImGui::NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindow != NULL); + + if (move_flags & ImGuiNavMoveFlags_Tabbing) + move_flags |= ImGuiNavMoveFlags_AllowCurrentNavId; + + g.NavMoveSubmitted = g.NavMoveScoringItems = true; + g.NavMoveDir = move_dir; + g.NavMoveDirForDebug = move_dir; + g.NavMoveClipDir = clip_dir; + g.NavMoveFlags = move_flags; + g.NavMoveScrollFlags = scroll_flags; + g.NavMoveForwardToNextFrame = false; + g.NavMoveKeyMods = g.IO.KeyMods; + g.NavMoveResultLocal.Clear(); + g.NavMoveResultLocalVisible.Clear(); + g.NavMoveResultOther.Clear(); + g.NavTabbingCounter = 0; + g.NavTabbingResultFirst.Clear(); + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + g.NavMoveScoringItems = false; // Ensure request doesn't need more processing + NavApplyItemToResult(result); + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavMoveRequestCancel() +{ + ImGuiContext& g = *GImGui; + g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + +// Forward will reuse the move request again on the next frame (generally with modifications done to it) +void ImGui::NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavMoveForwardToNextFrame == false); + NavMoveRequestCancel(); + g.NavMoveForwardToNextFrame = true; + g.NavMoveDir = move_dir; + g.NavMoveClipDir = clip_dir; + g.NavMoveFlags = move_flags | ImGuiNavMoveFlags_Forwarded; + g.NavMoveScrollFlags = scroll_flags; +} + +// Navigation wrap-around logic is delayed to the end of the frame because this operation is only valid after entire +// popup is assembled and in case of appended popups it is not clear which EndPopup() call is final. +void ImGui::NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags wrap_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(wrap_flags != 0); // Call with _WrapX, _WrapY, _LoopX, _LoopY + // In theory we should test for NavMoveRequestButNoResultYet() but there's no point doing it, NavEndFrame() will do the same test + if (g.NavWindow == window && g.NavMoveScoringItems && g.NavLayer == ImGuiNavLayer_Main) + g.NavMoveFlags |= wrap_flags; +} + +// FIXME: This could be replaced by updating a frame number in each window when (window == NavWindow) and (NavLayer == 0). +// This way we could find the last focused window among our children. It would be much less confusing this way? +static void ImGui::NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window) +{ + ImGuiWindow* parent = nav_window; + while (parent && parent->RootWindow != parent && (parent->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + parent = parent->ParentWindow; + if (parent && parent != nav_window) + parent->NavLastChildNavWindow = nav_window; +} + +// Restore the last focused child. +// Call when we are expected to land on the Main Layer (0) after FocusWindow() +static ImGuiWindow* ImGui::NavRestoreLastChildNavWindow(ImGuiWindow* window) +{ + if (window->NavLastChildNavWindow && window->NavLastChildNavWindow->WasActive) + return window->NavLastChildNavWindow; + if (window->DockNodeAsHost && window->DockNodeAsHost->TabBar) + if (ImGuiTabItem* tab = TabBarFindMostRecentlySelectedTabForActiveWindow(window->DockNodeAsHost->TabBar)) + return tab->Window; + return window; +} + +void ImGui::NavRestoreLayer(ImGuiNavLayer layer) +{ + ImGuiContext& g = *GImGui; + if (layer == ImGuiNavLayer_Main) + { + ImGuiWindow* prev_nav_window = g.NavWindow; + g.NavWindow = NavRestoreLastChildNavWindow(g.NavWindow); // FIXME-NAV: Should clear ongoing nav requests? + if (prev_nav_window) + IMGUI_DEBUG_LOG_FOCUS("[focus] NavRestoreLayer: from \"%s\" to SetNavWindow(\"%s\")\n", prev_nav_window->Name, g.NavWindow->Name); + } + ImGuiWindow* window = g.NavWindow; + if (window->NavLastIds[layer] != 0) + { + SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); + } + else + { + g.NavLayer = layer; + NavInitWindow(window, true); + } +} + +void ImGui::NavRestoreHighlightAfterMove() +{ + ImGuiContext& g = *GImGui; + g.NavDisableHighlight = false; + g.NavDisableMouseHover = g.NavMousePosDirty = true; +} + +static inline void ImGui::NavUpdateAnyRequestFlag() +{ + ImGuiContext& g = *GImGui; + g.NavAnyRequest = g.NavMoveScoringItems || g.NavInitRequest || (IMGUI_DEBUG_NAV_SCORING && g.NavWindow != NULL); + if (g.NavAnyRequest) + IM_ASSERT(g.NavWindow != NULL); +} + +// This needs to be called before we submit any widget (aka in or before Begin) +void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) +{ + // FIXME: ChildWindow test here is wrong for docking + ImGuiContext& g = *GImGui; + IM_ASSERT(window == g.NavWindow); + + if (window->Flags & ImGuiWindowFlags_NoNavInputs) + { + g.NavId = 0; + g.NavFocusScopeId = window->NavRootFocusScopeId; + return; + } + + bool init_for_nav = false; + if (window == window->RootWindow || (window->Flags & ImGuiWindowFlags_Popup) || (window->NavLastIds[0] == 0) || force_reinit) + init_for_nav = true; + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from NavInitWindow(), init_for_nav=%d, window=\"%s\", layer=%d\n", init_for_nav, window->Name, g.NavLayer); + if (init_for_nav) + { + SetNavID(0, g.NavLayer, window->NavRootFocusScopeId, ImRect()); + g.NavInitRequest = true; + g.NavInitRequestFromMove = false; + g.NavInitResultId = 0; + g.NavInitResultRectRel = ImRect(); + NavUpdateAnyRequestFlag(); + } + else + { + g.NavId = window->NavLastIds[0]; + g.NavFocusScopeId = window->NavRootFocusScopeId; + } +} + +static ImVec2 ImGui::NavCalcPreferredRefPos() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + if (g.NavDisableHighlight || !g.NavDisableMouseHover || !window) + { + // Mouse (we need a fallback in case the mouse becomes invalid after being used) + // The +1.0f offset when stored by OpenPopupEx() allows reopening this or another popup (same or another mouse button) while not moving the mouse, it is pretty standard. + // In theory we could move that +1.0f offset in OpenPopupEx() + ImVec2 p = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : g.MouseLastValidPos; + return ImVec2(p.x + 1.0f, p.y); + } + else + { + // When navigation is active and mouse is disabled, pick a position around the bottom left of the currently navigated item + // Take account of upcoming scrolling (maybe set mouse pos should be done in EndFrame?) + ImRect rect_rel = WindowRectRelToAbs(window, window->NavRectRel[g.NavLayer]); + if (window->LastFrameActive != g.FrameCount && (window->ScrollTarget.x != FLT_MAX || window->ScrollTarget.y != FLT_MAX)) + { + ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); + rect_rel.Translate(window->Scroll - next_scroll); + } + ImVec2 pos = ImVec2(rect_rel.Min.x + ImMin(g.Style.FramePadding.x * 4, rect_rel.GetWidth()), rect_rel.Max.y - ImMin(g.Style.FramePadding.y, rect_rel.GetHeight())); + ImGuiViewport* viewport = window->Viewport; + return ImFloor(ImClamp(pos, viewport->Pos, viewport->Pos + viewport->Size)); // ImFloor() is important because non-integer mouse position application in backend might be lossy and result in undesirable non-zero delta. + } +} + +float ImGui::GetNavTweakPressedAmount(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(ImGuiInputFlags_RepeatRateNavTweak, &repeat_delay, &repeat_rate); + + ImGuiKey key_less, key_more; + if (g.NavInputSource == ImGuiInputSource_Gamepad) + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadLeft : ImGuiKey_GamepadDpadUp; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadRight : ImGuiKey_GamepadDpadDown; + } + else + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_LeftArrow : ImGuiKey_UpArrow; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_RightArrow : ImGuiKey_DownArrow; + } + float amount = (float)GetKeyPressedAmount(key_more, repeat_delay, repeat_rate) - (float)GetKeyPressedAmount(key_less, repeat_delay, repeat_rate); + if (amount != 0.0f && IsKeyDown(key_less) && IsKeyDown(key_more)) // Cancel when opposite directions are held, regardless of repeat phase + amount = 0.0f; + return amount; +} + +static void ImGui::NavUpdate() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + io.WantSetMousePos = false; + //if (g.NavScoringDebugCount > 0) IMGUI_DEBUG_LOG_NAV("[nav] NavScoringDebugCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.NavScoringDebugCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); + + // Set input source based on which keys are last pressed (as some features differs when used with Gamepad vs Keyboard) + // FIXME-NAV: Now that keys are separated maybe we can get rid of NavInputSource? + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const ImGuiKey nav_gamepad_keys_to_change_source[] = { ImGuiKey_GamepadFaceRight, ImGuiKey_GamepadFaceLeft, ImGuiKey_GamepadFaceUp, ImGuiKey_GamepadFaceDown, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown }; + if (nav_gamepad_active) + for (ImGuiKey key : nav_gamepad_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Gamepad; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const ImGuiKey nav_keyboard_keys_to_change_source[] = { ImGuiKey_Space, ImGuiKey_Enter, ImGuiKey_Escape, ImGuiKey_RightArrow, ImGuiKey_LeftArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow }; + if (nav_keyboard_active) + for (ImGuiKey key : nav_keyboard_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Keyboard; + + // Process navigation init request (select first/default focus) + if (g.NavInitResultId != 0) + NavInitRequestApplyResult(); + g.NavInitRequest = false; + g.NavInitRequestFromMove = false; + g.NavInitResultId = 0; + g.NavJustMovedToId = 0; + + // Process navigation move request + if (g.NavMoveSubmitted) + NavMoveRequestApplyResult(); + g.NavTabbingCounter = 0; + g.NavMoveSubmitted = g.NavMoveScoringItems = false; + + // Schedule mouse position update (will be done at the bottom of this function, after 1) processing all move requests and 2) updating scrolling) + bool set_mouse_pos = false; + if (g.NavMousePosDirty && g.NavIdIsAlive) + if (!g.NavDisableHighlight && g.NavDisableMouseHover && g.NavWindow) + set_mouse_pos = true; + g.NavMousePosDirty = false; + IM_ASSERT(g.NavLayer == ImGuiNavLayer_Main || g.NavLayer == ImGuiNavLayer_Menu); + + // Store our return window (for returning from Menu Layer to Main Layer) and clear it as soon as we step back in our own Layer 0 + if (g.NavWindow) + NavSaveLastChildNavWindowIntoParent(g.NavWindow); + if (g.NavWindow && g.NavWindow->NavLastChildNavWindow != NULL && g.NavLayer == ImGuiNavLayer_Main) + g.NavWindow->NavLastChildNavWindow = NULL; + + // Update CTRL+TAB and Windowing features (hold Square to move/resize/etc.) + NavUpdateWindowing(); + + // Set output flags for user application + io.NavActive = (nav_keyboard_active || nav_gamepad_active) && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs); + io.NavVisible = (io.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL); + + // Process NavCancel input (to close a popup, get back to parent, clear focus) + NavUpdateCancelRequest(); + + // Process manual activation request + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavActivateInputId = 0; + g.NavActivateFlags = ImGuiActivateFlags_None; + if (g.NavId != 0 && !g.NavDisableHighlight && !g.NavWindowingTarget && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + { + const bool activate_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Space)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadActivate)); + const bool activate_pressed = activate_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Space, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadActivate, false))); + const bool input_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Enter)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadInput)); + const bool input_pressed = input_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Enter, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadInput, false))); + if (g.ActiveId == 0 && activate_pressed) + { + g.NavActivateId = g.NavId; + g.NavActivateFlags = ImGuiActivateFlags_PreferTweak; + } + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && input_pressed) + { + g.NavActivateInputId = g.NavId; + g.NavActivateFlags = ImGuiActivateFlags_PreferInput; + } + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && activate_down) + g.NavActivateDownId = g.NavId; + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && activate_pressed) + g.NavActivatePressedId = g.NavId; + } + if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + g.NavDisableHighlight = true; + if (g.NavActivateId != 0) + IM_ASSERT(g.NavActivateDownId == g.NavActivateId); + + // Process programmatic activation request + // FIXME-NAV: Those should eventually be queued (unlike focus they don't cancel each others) + if (g.NavNextActivateId != 0) + { + if (g.NavNextActivateFlags & ImGuiActivateFlags_PreferInput) + g.NavActivateInputId = g.NavNextActivateId; + else + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavNextActivateId; + g.NavActivateFlags = g.NavNextActivateFlags; + } + g.NavNextActivateId = 0; + + // Process move requests + NavUpdateCreateMoveRequest(); + if (g.NavMoveDir == ImGuiDir_None) + NavUpdateCreateTabbingRequest(); + NavUpdateAnyRequestFlag(); + g.NavIdIsAlive = false; + + // Scrolling + if (g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) && !g.NavWindowingTarget) + { + // *Fallback* manual-scroll with Nav directional keys when window has no navigable item + ImGuiWindow* window = g.NavWindow; + const float scroll_speed = IM_ROUND(window->CalcFontSize() * 100 * io.DeltaTime); // We need round the scrolling speed because sub-pixel scroll isn't reliably supported. + const ImGuiDir move_dir = g.NavMoveDir; + if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavHasScroll && move_dir != ImGuiDir_None) + { + if (move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) + SetScrollX(window, ImFloor(window->Scroll.x + ((move_dir == ImGuiDir_Left) ? -1.0f : +1.0f) * scroll_speed)); + if (move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) + SetScrollY(window, ImFloor(window->Scroll.y + ((move_dir == ImGuiDir_Up) ? -1.0f : +1.0f) * scroll_speed)); + } + + // *Normal* Manual scroll with LStick + // Next movement request will clamp the NavId reference rectangle to the visible area, so navigation will resume within those bounds. + if (nav_gamepad_active) + { + const ImVec2 scroll_dir = GetKeyVector2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + const float tweak_factor = IsKeyDown(ImGuiKey_NavGamepadTweakSlow) ? 1.0f / 10.0f : IsKeyDown(ImGuiKey_NavGamepadTweakFast) ? 10.0f : 1.0f; + if (scroll_dir.x != 0.0f && window->ScrollbarX) + SetScrollX(window, ImFloor(window->Scroll.x + scroll_dir.x * scroll_speed * tweak_factor)); + if (scroll_dir.y != 0.0f) + SetScrollY(window, ImFloor(window->Scroll.y + scroll_dir.y * scroll_speed * tweak_factor)); + } + } + + // Always prioritize mouse highlight if navigation is disabled + if (!nav_keyboard_active && !nav_gamepad_active) + { + g.NavDisableHighlight = true; + g.NavDisableMouseHover = set_mouse_pos = false; + } + + // Update mouse position if requested + // (This will take into account the possibility that a Scroll was queued in the window to offset our absolute mouse position before scroll has been applied) + if (set_mouse_pos && (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) && (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos)) + { + io.MousePos = io.MousePosPrev = NavCalcPreferredRefPos(); + io.WantSetMousePos = true; + //IMGUI_DEBUG_LOG_IO("SetMousePos: (%.1f,%.1f)\n", io.MousePos.x, io.MousePos.y); + } + + // [DEBUG] + g.NavScoringDebugCount = 0; +#if IMGUI_DEBUG_NAV_RECTS + if (g.NavWindow) + { + ImDrawList* draw_list = GetForegroundDrawList(g.NavWindow); + if (1) { for (int layer = 0; layer < 2; layer++) { ImRect r = WindowRectRelToAbs(g.NavWindow, g.NavWindow->NavRectRel[layer]); draw_list->AddRect(r.Min, r.Max, IM_COL32(255,200,0,255)); } } // [DEBUG] + if (1) { ImU32 col = (!g.NavWindow->Hidden) ? IM_COL32(255,0,255,255) : IM_COL32(255,0,0,255); ImVec2 p = NavCalcPreferredRefPos(); char buf[32]; ImFormatString(buf, 32, "%d", g.NavLayer); draw_list->AddCircleFilled(p, 3.0f, col); draw_list->AddText(NULL, 13.0f, p + ImVec2(8,-4), col, buf); } + } +#endif +} + +void ImGui::NavInitRequestApplyResult() +{ + // In very rare cases g.NavWindow may be null (e.g. clearing focus after requesting an init request, which does happen when releasing Alt while clicking on void) + ImGuiContext& g = *GImGui; + if (!g.NavWindow) + return; + + // Apply result from previous navigation init request (will typically select the first item, unless SetItemDefaultFocus() has been called) + // FIXME-NAV: On _NavFlattened windows, g.NavWindow will only be updated during subsequent frame. Not a problem currently. + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: ApplyResult: NavID 0x%08X in Layer %d Window \"%s\"\n", g.NavInitResultId, g.NavLayer, g.NavWindow->Name); + SetNavID(g.NavInitResultId, g.NavLayer, 0, g.NavInitResultRectRel); + g.NavIdIsAlive = true; // Mark as alive from previous frame as we got a result + if (g.NavInitRequestFromMove) + NavRestoreHighlightAfterMove(); +} + +void ImGui::NavUpdateCreateMoveRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + ImGuiWindow* window = g.NavWindow; + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + + if (g.NavMoveForwardToNextFrame && window != NULL) + { + // Forwarding previous request (which has been modified, e.g. wrap around menus rewrite the requests with a starting rectangle at the other side of the window) + // (preserve most state, which were already set by the NavMoveRequestForward() function) + IM_ASSERT(g.NavMoveDir != ImGuiDir_None && g.NavMoveClipDir != ImGuiDir_None); + IM_ASSERT(g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded); + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequestForward %d\n", g.NavMoveDir); + } + else + { + // Initiate directional inputs request + g.NavMoveDir = ImGuiDir_None; + g.NavMoveFlags = ImGuiNavMoveFlags_None; + g.NavMoveScrollFlags = ImGuiScrollFlags_None; + if (window && !g.NavWindowingTarget && !(window->Flags & ImGuiWindowFlags_NoNavInputs)) + { + const ImGuiInputFlags repeat_mode = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateNavMove; + if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadLeft, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_LeftArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Left; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadRight, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_RightArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Right; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadUp, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_UpArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Up; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadDown, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_DownArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Down; } + } + g.NavMoveClipDir = g.NavMoveDir; + g.NavScoringNoClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); + } + + // Update PageUp/PageDown/Home/End scroll + // FIXME-NAV: Consider enabling those keys even without the master ImGuiConfigFlags_NavEnableKeyboard flag? + float scoring_rect_offset_y = 0.0f; + if (window && g.NavMoveDir == ImGuiDir_None && nav_keyboard_active) + scoring_rect_offset_y = NavUpdatePageUpPageDown(); + if (scoring_rect_offset_y != 0.0f) + { + g.NavScoringNoClipRect = window->InnerRect; + g.NavScoringNoClipRect.TranslateY(scoring_rect_offset_y); + } + + // [DEBUG] Always send a request +#if IMGUI_DEBUG_NAV_SCORING + if (io.KeyCtrl && IsKeyPressed(ImGuiKey_C)) + g.NavMoveDirForDebug = (ImGuiDir)((g.NavMoveDirForDebug + 1) & 3); + if (io.KeyCtrl && g.NavMoveDir == ImGuiDir_None) + { + g.NavMoveDir = g.NavMoveDirForDebug; + g.NavMoveFlags |= ImGuiNavMoveFlags_DebugNoResult; + } +#endif + + // Submit + g.NavMoveForwardToNextFrame = false; + if (g.NavMoveDir != ImGuiDir_None) + NavMoveRequestSubmit(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); + + // Moving with no reference triggers an init request (will be used as a fallback if the direction fails to find a match) + if (g.NavMoveSubmitted && g.NavId == 0) + { + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", window ? window->Name : "", g.NavLayer); + g.NavInitRequest = g.NavInitRequestFromMove = true; + g.NavInitResultId = 0; + g.NavDisableHighlight = false; + } + + // When using gamepad, we project the reference nav bounding box into window visible area. + // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, since with gamepad all movements are relative + // (can't focus a visible object like we can with the mouse). + if (g.NavMoveSubmitted && g.NavInputSource == ImGuiInputSource_Gamepad && g.NavLayer == ImGuiNavLayer_Main && window != NULL)// && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded)) + { + bool clamp_x = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_WrapX)) == 0; + bool clamp_y = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapY)) == 0; + ImRect inner_rect_rel = WindowRectAbsToRel(window, ImRect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1))); + if ((clamp_x || clamp_y) && !inner_rect_rel.Contains(window->NavRectRel[g.NavLayer])) + { + //IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel for gamepad move\n"); + float pad_x = ImMin(inner_rect_rel.GetWidth(), window->CalcFontSize() * 0.5f); + float pad_y = ImMin(inner_rect_rel.GetHeight(), window->CalcFontSize() * 0.5f); // Terrible approximation for the intent of starting navigation from first fully visible item + inner_rect_rel.Min.x = clamp_x ? (inner_rect_rel.Min.x + pad_x) : -FLT_MAX; + inner_rect_rel.Max.x = clamp_x ? (inner_rect_rel.Max.x - pad_x) : +FLT_MAX; + inner_rect_rel.Min.y = clamp_y ? (inner_rect_rel.Min.y + pad_y) : -FLT_MAX; + inner_rect_rel.Max.y = clamp_y ? (inner_rect_rel.Max.y - pad_y) : +FLT_MAX; + window->NavRectRel[g.NavLayer].ClipWithFull(inner_rect_rel); + g.NavId = 0; + } + } + + // For scoring we use a single segment on the left side our current item bounding box (not touching the edge to avoid box overlap with zero-spaced items) + ImRect scoring_rect; + if (window != NULL) + { + ImRect nav_rect_rel = !window->NavRectRel[g.NavLayer].IsInverted() ? window->NavRectRel[g.NavLayer] : ImRect(0, 0, 0, 0); + scoring_rect = WindowRectRelToAbs(window, nav_rect_rel); + scoring_rect.TranslateY(scoring_rect_offset_y); + scoring_rect.Min.x = ImMin(scoring_rect.Min.x + 1.0f, scoring_rect.Max.x); + scoring_rect.Max.x = scoring_rect.Min.x; + IM_ASSERT(!scoring_rect.IsInverted()); // Ensure if we have a finite, non-inverted bounding box here will allow us to remove extraneous ImFabs() calls in NavScoreItem(). + //GetForegroundDrawList()->AddRect(scoring_rect.Min, scoring_rect.Max, IM_COL32(255,200,0,255)); // [DEBUG] + //if (!g.NavScoringNoClipRect.IsInverted()) { GetForegroundDrawList()->AddRect(g.NavScoringNoClipRect.Min, g.NavScoringNoClipRect.Max, IM_COL32(255, 200, 0, 255)); } // [DEBUG] + } + g.NavScoringRect = scoring_rect; + g.NavScoringNoClipRect.Add(scoring_rect); +} + +void ImGui::NavUpdateCreateTabbingRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + IM_ASSERT(g.NavMoveDir == ImGuiDir_None); + if (window == NULL || g.NavWindowingTarget != NULL || (window->Flags & ImGuiWindowFlags_NoNavInputs)) + return; + + const bool tab_pressed = IsKeyPressed(ImGuiKey_Tab, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat) && !g.IO.KeyCtrl && !g.IO.KeyAlt; + if (!tab_pressed) + return; + + // Initiate tabbing request + // (this is ALWAYS ENABLED, regardless of ImGuiConfigFlags_NavEnableKeyboard flag!) + // Initially this was designed to use counters and modulo arithmetic, but that could not work with unsubmitted items (list clipper). Instead we use a strategy close to other move requests. + // See NavProcessItemForTabbingRequest() for a description of the various forward/backward tabbing cases with and without wrapping. + //// FIXME: We use (g.ActiveId == 0) but (g.NavDisableHighlight == false) might be righter once we can tab through anything + g.NavTabbingDir = g.IO.KeyShift ? -1 : (g.ActiveId == 0) ? 0 : +1; + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + ImGuiDir clip_dir = (g.NavTabbingDir < 0) ? ImGuiDir_Up : ImGuiDir_Down; + NavMoveRequestSubmit(ImGuiDir_None, clip_dir, ImGuiNavMoveFlags_Tabbing, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. + g.NavTabbingCounter = -1; +} + +// Apply result from previous frame navigation directional move request. Always called from NavUpdate() +void ImGui::NavMoveRequestApplyResult() +{ + ImGuiContext& g = *GImGui; +#if IMGUI_DEBUG_NAV_SCORING + if (g.NavMoveFlags & ImGuiNavMoveFlags_DebugNoResult) // [DEBUG] Scoring all items in NavWindow at all times + return; +#endif + + // Select which result to use + ImGuiNavItemData* result = (g.NavMoveResultLocal.ID != 0) ? &g.NavMoveResultLocal : (g.NavMoveResultOther.ID != 0) ? &g.NavMoveResultOther : NULL; + + // Tabbing forward wrap + if (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) + if ((g.NavTabbingCounter == 1 || g.NavTabbingDir == 0) && g.NavTabbingResultFirst.ID) + result = &g.NavTabbingResultFirst; + + // In a situation when there are no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) + if (result == NULL) + { + if (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) + g.NavMoveFlags |= ImGuiNavMoveFlags_DontSetNavHighlight; + if (g.NavId != 0 && (g.NavMoveFlags & ImGuiNavMoveFlags_DontSetNavHighlight) == 0) + NavRestoreHighlightAfterMove(); + return; + } + + // PageUp/PageDown behavior first jumps to the bottom/top mostly visible item, _otherwise_ use the result from the previous/next page. + if (g.NavMoveFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) + if (g.NavMoveResultLocalVisible.ID != 0 && g.NavMoveResultLocalVisible.ID != g.NavId) + result = &g.NavMoveResultLocalVisible; + + // Maybe entering a flattened child from the outside? In this case solve the tie using the regular scoring rules. + if (result != &g.NavMoveResultOther && g.NavMoveResultOther.ID != 0 && g.NavMoveResultOther.Window->ParentWindow == g.NavWindow) + if ((g.NavMoveResultOther.DistBox < result->DistBox) || (g.NavMoveResultOther.DistBox == result->DistBox && g.NavMoveResultOther.DistCenter < result->DistCenter)) + result = &g.NavMoveResultOther; + IM_ASSERT(g.NavWindow && result->Window); + + // Scroll to keep newly navigated item fully into view. + if (g.NavLayer == ImGuiNavLayer_Main) + { + if (g.NavMoveFlags & ImGuiNavMoveFlags_ScrollToEdgeY) + { + // FIXME: Should remove this + float scroll_target = (g.NavMoveDir == ImGuiDir_Up) ? result->Window->ScrollMax.y : 0.0f; + SetScrollY(result->Window, scroll_target); + } + else + { + ImRect rect_abs = WindowRectRelToAbs(result->Window, result->RectRel); + ScrollToRectEx(result->Window, rect_abs, g.NavMoveScrollFlags); + } + } + + if (g.NavWindow != result->Window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] NavMoveRequest: SetNavWindow(\"%s\")\n", result->Window->Name); + g.NavWindow = result->Window; + } + if (g.ActiveId != result->ID) + ClearActiveID(); + if (g.NavId != result->ID) + { + // Don't set NavJustMovedToId if just landed on the same spot (which may happen with ImGuiNavMoveFlags_AllowCurrentNavId) + g.NavJustMovedToId = result->ID; + g.NavJustMovedToFocusScopeId = result->FocusScopeId; + g.NavJustMovedToKeyMods = g.NavMoveKeyMods; + } + + // Focus + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", result->ID, g.NavLayer, g.NavWindow->Name); + SetNavID(result->ID, g.NavLayer, result->FocusScopeId, result->RectRel); + + // Tabbing: Activates Inputable or Focus non-Inputable + if ((g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) && (result->InFlags & ImGuiItemFlags_Inputable)) + { + g.NavNextActivateId = result->ID; + g.NavNextActivateFlags = ImGuiActivateFlags_PreferInput | ImGuiActivateFlags_TryToPreserveState; + g.NavMoveFlags |= ImGuiNavMoveFlags_DontSetNavHighlight; + } + + // Activate + if (g.NavMoveFlags & ImGuiNavMoveFlags_Activate) + { + g.NavNextActivateId = result->ID; + g.NavNextActivateFlags = ImGuiActivateFlags_None; + } + + // Enable nav highlight + if ((g.NavMoveFlags & ImGuiNavMoveFlags_DontSetNavHighlight) == 0) + NavRestoreHighlightAfterMove(); +} + +// Process NavCancel input (to close a popup, get back to parent, clear focus) +// FIXME: In order to support e.g. Escape to clear a selection we'll need: +// - either to store the equivalent of ActiveIdUsingKeyInputMask for a FocusScope and test for it. +// - either to move most/all of those tests to the epilogue/end functions of the scope they are dealing with (e.g. exit child window in EndChild()) or in EndFrame(), to allow an earlier intercept +static void ImGui::NavUpdateCancelRequest() +{ + ImGuiContext& g = *GImGui; + const bool nav_gamepad_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (g.IO.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + if (!(nav_keyboard_active && IsKeyPressed(ImGuiKey_Escape, ImGuiKeyOwner_None)) && !(nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadCancel, ImGuiKeyOwner_None))) + return; + + IMGUI_DEBUG_LOG_NAV("[nav] NavUpdateCancelRequest()\n"); + if (g.ActiveId != 0) + { + ClearActiveID(); + } + else if (g.NavLayer != ImGuiNavLayer_Main) + { + // Leave the "menu" layer + NavRestoreLayer(ImGuiNavLayer_Main); + NavRestoreHighlightAfterMove(); + } + else if (g.NavWindow && g.NavWindow != g.NavWindow->RootWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_Popup) && g.NavWindow->ParentWindow) + { + // Exit child window + ImGuiWindow* child_window = g.NavWindow; + ImGuiWindow* parent_window = g.NavWindow->ParentWindow; + IM_ASSERT(child_window->ChildId != 0); + ImRect child_rect = child_window->Rect(); + FocusWindow(parent_window); + SetNavID(child_window->ChildId, ImGuiNavLayer_Main, 0, WindowRectAbsToRel(parent_window, child_rect)); + NavRestoreHighlightAfterMove(); + } + else if (g.OpenPopupStack.Size > 0 && g.OpenPopupStack.back().Window != NULL && !(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) + { + // Close open popup/menu + ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); + } + else + { + // Clear NavLastId for popups but keep it for regular child window so we can leave one and come back where we were + if (g.NavWindow && ((g.NavWindow->Flags & ImGuiWindowFlags_Popup) || !(g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow))) + g.NavWindow->NavLastIds[0] = 0; + g.NavId = 0; + } +} + +// Handle PageUp/PageDown/Home/End keys +// Called from NavUpdateCreateMoveRequest() which will use our output to create a move request +// FIXME-NAV: This doesn't work properly with NavFlattened siblings as we use NavWindow rectangle for reference +// FIXME-NAV: how to get Home/End to aim at the beginning/end of a 2D grid? +static float ImGui::NavUpdatePageUpPageDown() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + if ((window->Flags & ImGuiWindowFlags_NoNavInputs) || g.NavWindowingTarget != NULL) + return 0.0f; + + const bool page_up_held = IsKeyDown(ImGuiKey_PageUp, ImGuiKeyOwner_None); + const bool page_down_held = IsKeyDown(ImGuiKey_PageDown, ImGuiKeyOwner_None); + const bool home_pressed = IsKeyPressed(ImGuiKey_Home, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + const bool end_pressed = IsKeyPressed(ImGuiKey_End, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + if (page_up_held == page_down_held && home_pressed == end_pressed) // Proceed if either (not both) are pressed, otherwise early out + return 0.0f; + + if (g.NavLayer != ImGuiNavLayer_Main) + NavRestoreLayer(ImGuiNavLayer_Main); + + if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavHasScroll) + { + // Fallback manual-scroll when window has no navigable item + if (IsKeyPressed(ImGuiKey_PageUp, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) + SetScrollY(window, window->Scroll.y - window->InnerRect.GetHeight()); + else if (IsKeyPressed(ImGuiKey_PageDown, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) + SetScrollY(window, window->Scroll.y + window->InnerRect.GetHeight()); + else if (home_pressed) + SetScrollY(window, 0.0f); + else if (end_pressed) + SetScrollY(window, window->ScrollMax.y); + } + else + { + ImRect& nav_rect_rel = window->NavRectRel[g.NavLayer]; + const float page_offset_y = ImMax(0.0f, window->InnerRect.GetHeight() - window->CalcFontSize() * 1.0f + nav_rect_rel.GetHeight()); + float nav_scoring_rect_offset_y = 0.0f; + if (IsKeyPressed(ImGuiKey_PageUp, true)) + { + nav_scoring_rect_offset_y = -page_offset_y; + g.NavMoveDir = ImGuiDir_Down; // Because our scoring rect is offset up, we request the down direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Up; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; + } + else if (IsKeyPressed(ImGuiKey_PageDown, true)) + { + nav_scoring_rect_offset_y = +page_offset_y; + g.NavMoveDir = ImGuiDir_Up; // Because our scoring rect is offset down, we request the up direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Down; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; + } + else if (home_pressed) + { + // FIXME-NAV: handling of Home/End is assuming that the top/bottom most item will be visible with Scroll.y == 0/ScrollMax.y + // Scrolling will be handled via the ImGuiNavMoveFlags_ScrollToEdgeY flag, we don't scroll immediately to avoid scrolling happening before nav result. + // Preserve current horizontal position if we have any. + nav_rect_rel.Min.y = nav_rect_rel.Max.y = 0.0f; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Down; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdgeY; + // FIXME-NAV: MoveClipDir left to _None, intentional? + } + else if (end_pressed) + { + nav_rect_rel.Min.y = nav_rect_rel.Max.y = window->ContentSize.y; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Up; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdgeY; + // FIXME-NAV: MoveClipDir left to _None, intentional? + } + return nav_scoring_rect_offset_y; + } + return 0.0f; +} + +static void ImGui::NavEndFrame() +{ + ImGuiContext& g = *GImGui; + + // Show CTRL+TAB list window + if (g.NavWindowingTarget != NULL) + NavUpdateWindowingOverlay(); + + // Perform wrap-around in menus + // FIXME-NAV: Wrap may need to apply a weight bias on the other axis. e.g. 4x4 grid with 2 last items missing on last item won't handle LoopY/WrapY correctly. + // FIXME-NAV: Wrap (not Loop) support could be handled by the scoring function and then WrapX would function without an extra frame. + const ImGuiNavMoveFlags wanted_flags = ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY; + if (g.NavWindow && NavMoveRequestButNoResultYet() && (g.NavMoveFlags & wanted_flags) && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded) == 0) + NavUpdateCreateWrappingRequest(); +} + +static void ImGui::NavUpdateCreateWrappingRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + + bool do_forward = false; + ImRect bb_rel = window->NavRectRel[g.NavLayer]; + ImGuiDir clip_dir = g.NavMoveDir; + const ImGuiNavMoveFlags move_flags = g.NavMoveFlags; + if (g.NavMoveDir == ImGuiDir_Left && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = window->ContentSize.x + window->WindowPadding.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(-bb_rel.GetHeight()); // Previous row + clip_dir = ImGuiDir_Up; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Right && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = -window->WindowPadding.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(+bb_rel.GetHeight()); // Next row + clip_dir = ImGuiDir_Down; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Up && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = window->ContentSize.y + window->WindowPadding.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(-bb_rel.GetWidth()); // Previous column + clip_dir = ImGuiDir_Left; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Down && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = -window->WindowPadding.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(+bb_rel.GetWidth()); // Next column + clip_dir = ImGuiDir_Right; + } + do_forward = true; + } + if (!do_forward) + return; + window->NavRectRel[g.NavLayer] = bb_rel; + NavMoveRequestForward(g.NavMoveDir, clip_dir, move_flags, g.NavMoveScrollFlags); +} + +static int ImGui::FindWindowFocusIndex(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_UNUSED(g); + int order = window->FocusOrder; + IM_ASSERT(window->RootWindow == window); // No child window (not testing _ChildWindow because of docking) + IM_ASSERT(g.WindowsFocusOrder[order] == window); + return order; +} + +static ImGuiWindow* FindWindowNavFocusable(int i_start, int i_stop, int dir) // FIXME-OPT O(N) +{ + ImGuiContext& g = *GImGui; + for (int i = i_start; i >= 0 && i < g.WindowsFocusOrder.Size && i != i_stop; i += dir) + if (ImGui::IsWindowNavFocusable(g.WindowsFocusOrder[i])) + return g.WindowsFocusOrder[i]; + return NULL; +} + +static void NavUpdateWindowingHighlightWindow(int focus_change_dir) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget); + if (g.NavWindowingTarget->Flags & ImGuiWindowFlags_Modal) + return; + + const int i_current = ImGui::FindWindowFocusIndex(g.NavWindowingTarget); + ImGuiWindow* window_target = FindWindowNavFocusable(i_current + focus_change_dir, -INT_MAX, focus_change_dir); + if (!window_target) + window_target = FindWindowNavFocusable((focus_change_dir < 0) ? (g.WindowsFocusOrder.Size - 1) : 0, i_current, focus_change_dir); + if (window_target) // Don't reset windowing target if there's a single window in the list + { + g.NavWindowingTarget = g.NavWindowingTargetAnim = window_target; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + } + g.NavWindowingToggleLayer = false; +} + +// Windowing management mode +// Keyboard: CTRL+Tab (change focus/move/resize), Alt (toggle menu layer) +// Gamepad: Hold Menu/Square (change focus/move/resize), Tap Menu/Square (toggle menu layer) +static void ImGui::NavUpdateWindowing() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + ImGuiWindow* apply_focus_window = NULL; + bool apply_toggle_layer = false; + + ImGuiWindow* modal_window = GetTopMostPopupModal(); + bool allow_windowing = (modal_window == NULL); + if (!allow_windowing) + g.NavWindowingTarget = NULL; + + // Fade out + if (g.NavWindowingTargetAnim && g.NavWindowingTarget == NULL) + { + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha - io.DeltaTime * 10.0f, 0.0f); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + g.NavWindowingTargetAnim = NULL; + } + + // Start CTRL+Tab or Square+L/R window selection + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const bool keyboard_next_window = allow_windowing && g.ConfigNavWindowingKeyNext && Shortcut(g.ConfigNavWindowingKeyNext, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool keyboard_prev_window = allow_windowing && g.ConfigNavWindowingKeyPrev && Shortcut(g.ConfigNavWindowingKeyPrev, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool start_windowing_with_gamepad = allow_windowing && nav_gamepad_active && !g.NavWindowingTarget && IsKeyPressed(ImGuiKey_NavGamepadMenu, 0, ImGuiInputFlags_None); + const bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && (keyboard_next_window || keyboard_prev_window); // Note: enabled even without NavEnableKeyboard! + if (start_windowing_with_gamepad || start_windowing_with_keyboard) + if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1)) + { + g.NavWindowingTarget = g.NavWindowingTargetAnim = window->RootWindow; + g.NavWindowingTimer = g.NavWindowingHighlightAlpha = 0.0f; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + g.NavWindowingToggleLayer = start_windowing_with_gamepad ? true : false; // Gamepad starts toggling layer + g.NavInputSource = start_windowing_with_keyboard ? ImGuiInputSource_Keyboard : ImGuiInputSource_Gamepad; + } + + // Gamepad update + g.NavWindowingTimer += io.DeltaTime; + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Gamepad) + { + // Highlight only appears after a brief time holding the button, so that a fast tap on PadMenu (to toggle NavLayer) doesn't add visual noise + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); + + // Select window to focus + const int focus_change_dir = (int)IsKeyPressed(ImGuiKey_GamepadL1) - (int)IsKeyPressed(ImGuiKey_GamepadR1); + if (focus_change_dir != 0) + { + NavUpdateWindowingHighlightWindow(focus_change_dir); + g.NavWindowingHighlightAlpha = 1.0f; + } + + // Single press toggles NavLayer, long press with L/R apply actual focus on release (until then the window was merely rendered top-most) + if (!IsKeyDown(ImGuiKey_NavGamepadMenu)) + { + g.NavWindowingToggleLayer &= (g.NavWindowingHighlightAlpha < 1.0f); // Once button was held long enough we don't consider it a tap-to-toggle-layer press anymore. + if (g.NavWindowingToggleLayer && g.NavWindow) + apply_toggle_layer = true; + else if (!g.NavWindowingToggleLayer) + apply_focus_window = g.NavWindowingTarget; + g.NavWindowingTarget = NULL; + } + } + + // Keyboard: Focus + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Keyboard) + { + // Visuals only appears after a brief time after pressing TAB the first time, so that a fast CTRL+TAB doesn't add visual noise + ImGuiKeyChord shared_mods = ((g.ConfigNavWindowingKeyNext ? g.ConfigNavWindowingKeyNext : ImGuiMod_Mask_) & (g.ConfigNavWindowingKeyPrev ? g.ConfigNavWindowingKeyPrev : ImGuiMod_Mask_)) & ImGuiMod_Mask_; + IM_ASSERT(shared_mods != 0); // Next/Prev shortcut currently needs a shared modifier to "hold", otherwise Prev actions would keep cycling between two windows. + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // 1.0f + if (keyboard_next_window || keyboard_prev_window) + NavUpdateWindowingHighlightWindow(keyboard_next_window ? -1 : +1); + else if ((io.KeyMods & shared_mods) != shared_mods) + apply_focus_window = g.NavWindowingTarget; + } + + // Keyboard: Press and Release ALT to toggle menu layer + // - Testing that only Alt is tested prevents Alt+Shift or AltGR from toggling menu layer. + // - AltGR is normally Alt+Ctrl but we can't reliably detect it (not all backends/systems/layout emit it as Alt+Ctrl). But even on keyboards without AltGR we don't want Alt+Ctrl to open menu anyway. + if (nav_keyboard_active && IsKeyPressed(ImGuiMod_Alt, ImGuiKeyOwner_None)) + { + g.NavWindowingToggleLayer = true; + g.NavInputSource = ImGuiInputSource_Keyboard; + } + if (g.NavWindowingToggleLayer && g.NavInputSource == ImGuiInputSource_Keyboard) + { + // We cancel toggling nav layer when any text has been typed (generally while holding Alt). (See #370) + // We cancel toggling nav layer when other modifiers are pressed. (See #4439) + // We cancel toggling nav layer if an owner has claimed the key. + if (io.InputQueueCharacters.Size > 0 || io.KeyCtrl || io.KeyShift || io.KeySuper || TestKeyOwner(ImGuiMod_Alt, ImGuiKeyOwner_None) == false) + g.NavWindowingToggleLayer = false; + + // Apply layer toggle on release + // Important: as before version <18314 we lacked an explicit IO event for focus gain/loss, we also compare mouse validity to detect old backends clearing mouse pos on focus loss. + if (IsKeyReleased(ImGuiMod_Alt) && g.NavWindowingToggleLayer) + if (g.ActiveId == 0 || g.ActiveIdAllowOverlap) + if (IsMousePosValid(&io.MousePos) == IsMousePosValid(&io.MousePosPrev)) + apply_toggle_layer = true; + if (!IsKeyDown(ImGuiMod_Alt)) + g.NavWindowingToggleLayer = false; + } + + // Move window + if (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoMove)) + { + ImVec2 nav_move_dir; + if (g.NavInputSource == ImGuiInputSource_Keyboard && !io.KeyShift) + nav_move_dir = GetKeyVector2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); + if (g.NavInputSource == ImGuiInputSource_Gamepad) + nav_move_dir = GetKeyVector2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + if (nav_move_dir.x != 0.0f || nav_move_dir.y != 0.0f) + { + const float NAV_MOVE_SPEED = 800.0f; + const float move_step = NAV_MOVE_SPEED * io.DeltaTime * ImMin(io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaPos += nav_move_dir * move_step; + g.NavDisableMouseHover = true; + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaPos); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindowDockTree; + SetWindowPos(moving_window, moving_window->Pos + accum_floored, ImGuiCond_Always); + g.NavWindowingAccumDeltaPos -= accum_floored; + } + } + } + + // Apply final focus + if (apply_focus_window && (g.NavWindow == NULL || apply_focus_window != g.NavWindow->RootWindow)) + { + ImGuiViewport* previous_viewport = g.NavWindow ? g.NavWindow->Viewport : NULL; + ClearActiveID(); + NavRestoreHighlightAfterMove(); + apply_focus_window = NavRestoreLastChildNavWindow(apply_focus_window); + ClosePopupsOverWindow(apply_focus_window, false); + FocusWindow(apply_focus_window); + if (apply_focus_window->NavLastIds[0] == 0) + NavInitWindow(apply_focus_window, false); + + // If the window has ONLY a menu layer (no main layer), select it directly + // Use NavLayersActiveMaskNext since windows didn't have a chance to be Begin()-ed on this frame, + // so CTRL+Tab where the keys are only held for 1 frame will be able to use correct layers mask since + // the target window as already been previewed once. + // FIXME-NAV: This should be done in NavInit.. or in FocusWindow... However in both of those cases, + // we won't have a guarantee that windows has been visible before and therefore NavLayersActiveMask* + // won't be valid. + if (apply_focus_window->DC.NavLayersActiveMaskNext == (1 << ImGuiNavLayer_Menu)) + g.NavLayer = ImGuiNavLayer_Menu; + + // Request OS level focus + if (apply_focus_window->Viewport != previous_viewport && g.PlatformIO.Platform_SetWindowFocus) + g.PlatformIO.Platform_SetWindowFocus(apply_focus_window->Viewport); + } + if (apply_focus_window) + g.NavWindowingTarget = NULL; + + // Apply menu/layer toggle + if (apply_toggle_layer && g.NavWindow) + { + ClearActiveID(); + + // Move to parent menu if necessary + ImGuiWindow* new_nav_window = g.NavWindow; + while (new_nav_window->ParentWindow + && (new_nav_window->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) == 0 + && (new_nav_window->Flags & ImGuiWindowFlags_ChildWindow) != 0 + && (new_nav_window->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + new_nav_window = new_nav_window->ParentWindow; + if (new_nav_window != g.NavWindow) + { + ImGuiWindow* old_nav_window = g.NavWindow; + FocusWindow(new_nav_window); + new_nav_window->NavLastChildNavWindow = old_nav_window; + } + + // Toggle layer + const ImGuiNavLayer new_nav_layer = (g.NavWindow->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) ? (ImGuiNavLayer)((int)g.NavLayer ^ 1) : ImGuiNavLayer_Main; + if (new_nav_layer != g.NavLayer) + { + // Reinitialize navigation when entering menu bar with the Alt key (FIXME: could be a properly of the layer?) + const bool preserve_layer_1_nav_id = (new_nav_window->DockNodeAsHost != NULL); + if (new_nav_layer == ImGuiNavLayer_Menu && !preserve_layer_1_nav_id) + g.NavWindow->NavLastIds[new_nav_layer] = 0; + NavRestoreLayer(new_nav_layer); + NavRestoreHighlightAfterMove(); + } + } +} + +// Window has already passed the IsWindowNavFocusable() +static const char* GetFallbackWindowNameForWindowingList(ImGuiWindow* window) +{ + if (window->Flags & ImGuiWindowFlags_Popup) + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingPopup); + if ((window->Flags & ImGuiWindowFlags_MenuBar) && strcmp(window->Name, "##MainMenuBar") == 0) + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingMainMenuBar); + if (window->DockNodeAsHost) + return "(Dock node)"; // Not normally shown to user. + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingUntitled); +} + +// Overlay displayed when using CTRL+TAB. Called by EndFrame(). +void ImGui::NavUpdateWindowingOverlay() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget != NULL); + + if (g.NavWindowingTimer < NAV_WINDOWING_LIST_APPEAR_DELAY) + return; + + if (g.NavWindowingListWindow == NULL) + g.NavWindowingListWindow = FindWindowByName("###NavWindowingList"); + const ImGuiViewport* viewport = /*g.NavWindow ? g.NavWindow->Viewport :*/ GetMainViewport(); + SetNextWindowSizeConstraints(ImVec2(viewport->Size.x * 0.20f, viewport->Size.y * 0.20f), ImVec2(FLT_MAX, FLT_MAX)); + SetNextWindowPos(viewport->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + PushStyleVar(ImGuiStyleVar_WindowPadding, g.Style.WindowPadding * 2.0f); + Begin("###NavWindowingList", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings); + for (int n = g.WindowsFocusOrder.Size - 1; n >= 0; n--) + { + ImGuiWindow* window = g.WindowsFocusOrder[n]; + IM_ASSERT(window != NULL); // Fix static analyzers + if (!IsWindowNavFocusable(window)) + continue; + const char* label = window->Name; + if (label == FindRenderedTextEnd(label)) + label = GetFallbackWindowNameForWindowingList(window); + Selectable(label, g.NavWindowingTarget == window); + } + End(); + PopStyleVar(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] DRAG AND DROP +//----------------------------------------------------------------------------- + +bool ImGui::IsDragDropActive() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive; +} + +void ImGui::ClearDragDrop() +{ + ImGuiContext& g = *GImGui; + g.DragDropActive = false; + g.DragDropPayload.Clear(); + g.DragDropAcceptFlags = ImGuiDragDropFlags_None; + g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropAcceptFrameCount = -1; + + g.DragDropPayloadBufHeap.clear(); + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); +} + +// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() +// If the item has an identifier: +// - This assume/require the item to be activated (typically via ButtonBehavior). +// - Therefore if you want to use this with a mouse button other than left mouse button, it is up to the item itself to activate with another button. +// - We then pull and use the mouse button that was used to activate the item and use it to carry on the drag. +// If the item has no identifier: +// - Currently always assume left mouse button. +bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // FIXME-DRAGDROP: While in the common-most "drag from non-zero active id" case we can tell the mouse button, + // in both SourceExtern and id==0 cases we may requires something else (explicit flags or some heuristic). + ImGuiMouseButton mouse_button = ImGuiMouseButton_Left; + + bool source_drag_active = false; + ImGuiID source_id = 0; + ImGuiID source_parent_id = 0; + if (!(flags & ImGuiDragDropFlags_SourceExtern)) + { + source_id = g.LastItemData.ID; + if (source_id != 0) + { + // Common path: items with ID + if (g.ActiveId != source_id) + return false; + if (g.ActiveIdMouseButton != -1) + mouse_button = g.ActiveIdMouseButton; + if (g.IO.MouseDown[mouse_button] == false || window->SkipItems) + return false; + g.ActiveIdAllowOverlap = false; + } + else + { + // Uncommon path: items without ID + if (g.IO.MouseDown[mouse_button] == false || window->SkipItems) + return false; + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) == 0 && (g.ActiveId == 0 || g.ActiveIdWindow != window)) + return false; + + // If you want to use BeginDragDropSource() on an item with no unique identifier for interaction, such as Text() or Image(), you need to: + // A) Read the explanation below, B) Use the ImGuiDragDropFlags_SourceAllowNullID flag. + if (!(flags & ImGuiDragDropFlags_SourceAllowNullID)) + { + IM_ASSERT(0); + return false; + } + + // Magic fallback to handle items with no assigned ID, e.g. Text(), Image() + // We build a throwaway ID based on current ID stack + relative AABB of items in window. + // THE IDENTIFIER WON'T SURVIVE ANY REPOSITIONING/RESIZINGG OF THE WIDGET, so if your widget moves your dragging operation will be canceled. + // We don't need to maintain/call ClearActiveID() as releasing the button will early out this function and trigger !ActiveIdIsAlive. + // Rely on keeping other window->LastItemXXX fields intact. + source_id = g.LastItemData.ID = window->GetIDFromRectangle(g.LastItemData.Rect); + KeepAliveID(source_id); + bool is_hovered = ItemHoverable(g.LastItemData.Rect, source_id); + if (is_hovered && g.IO.MouseClicked[mouse_button]) + { + SetActiveID(source_id, window); + FocusWindow(window); + } + if (g.ActiveId == source_id) // Allow the underlying widget to display/return hovered during the mouse release frame, else we would get a flicker. + g.ActiveIdAllowOverlap = is_hovered; + } + if (g.ActiveId != source_id) + return false; + source_parent_id = window->IDStack.back(); + source_drag_active = IsMouseDragging(mouse_button); + + // Disable navigation and key inputs while dragging + cancel existing request if any + SetActiveIdUsingAllKeyboardKeys(); + } + else + { + window = NULL; + source_id = ImHashStr("#SourceExtern"); + source_drag_active = true; + } + + if (source_drag_active) + { + if (!g.DragDropActive) + { + IM_ASSERT(source_id != 0); + ClearDragDrop(); + ImGuiPayload& payload = g.DragDropPayload; + payload.SourceId = source_id; + payload.SourceParentId = source_parent_id; + g.DragDropActive = true; + g.DragDropSourceFlags = flags; + g.DragDropMouseButton = mouse_button; + if (payload.SourceId == g.ActiveId) + g.ActiveIdNoClearOnFocusLoss = true; + } + g.DragDropSourceFrameCount = g.FrameCount; + g.DragDropWithinSource = true; + + if (!(flags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + // Target can request the Source to not display its tooltip (we use a dedicated flag to make this request explicit) + // We unfortunately can't just modify the source flags and skip the call to BeginTooltip, as caller may be emitting contents. + BeginTooltip(); + if (g.DragDropAcceptIdPrev && (g.DragDropAcceptFlags & ImGuiDragDropFlags_AcceptNoPreviewTooltip)) + { + ImGuiWindow* tooltip_window = g.CurrentWindow; + tooltip_window->Hidden = tooltip_window->SkipItems = true; + tooltip_window->HiddenFramesCanSkipItems = 1; + } + } + + if (!(flags & ImGuiDragDropFlags_SourceNoDisableHover) && !(flags & ImGuiDragDropFlags_SourceExtern)) + g.LastItemData.StatusFlags &= ~ImGuiItemStatusFlags_HoveredRect; + + return true; + } + return false; +} + +void ImGui::EndDragDropSource() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinSource && "Not after a BeginDragDropSource()?"); + + if (!(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + EndTooltip(); + + // Discard the drag if have not called SetDragDropPayload() + if (g.DragDropPayload.DataFrameCount == -1) + ClearDragDrop(); + g.DragDropWithinSource = false; +} + +// Use 'cond' to choose to submit payload on drag start or every frame +bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + ImGuiPayload& payload = g.DragDropPayload; + if (cond == 0) + cond = ImGuiCond_Always; + + IM_ASSERT(type != NULL); + IM_ASSERT(strlen(type) < IM_ARRAYSIZE(payload.DataType) && "Payload type can be at most 32 characters long"); + IM_ASSERT((data != NULL && data_size > 0) || (data == NULL && data_size == 0)); + IM_ASSERT(cond == ImGuiCond_Always || cond == ImGuiCond_Once); + IM_ASSERT(payload.SourceId != 0); // Not called between BeginDragDropSource() and EndDragDropSource() + + if (cond == ImGuiCond_Always || payload.DataFrameCount == -1) + { + // Copy payload + ImStrncpy(payload.DataType, type, IM_ARRAYSIZE(payload.DataType)); + g.DragDropPayloadBufHeap.resize(0); + if (data_size > sizeof(g.DragDropPayloadBufLocal)) + { + // Store in heap + g.DragDropPayloadBufHeap.resize((int)data_size); + payload.Data = g.DragDropPayloadBufHeap.Data; + memcpy(payload.Data, data, data_size); + } + else if (data_size > 0) + { + // Store locally + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); + payload.Data = g.DragDropPayloadBufLocal; + memcpy(payload.Data, data, data_size); + } + else + { + payload.Data = NULL; + } + payload.DataSize = (int)data_size; + } + payload.DataFrameCount = g.FrameCount; + + // Return whether the payload has been accepted + return (g.DragDropAcceptFrameCount == g.FrameCount) || (g.DragDropAcceptFrameCount == g.FrameCount - 1); +} + +bool ImGui::BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindowDockTree != hovered_window->RootWindowDockTree) + return false; + IM_ASSERT(id != 0); + if (!IsMouseHoveringRect(bb.Min, bb.Max) || (id == g.DragDropPayload.SourceId)) + return false; + if (window->SkipItems) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = bb; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +// We don't use BeginDragDropTargetCustom() and duplicate its code because: +// 1) we use LastItemRectHoveredRect which handles items that push a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. +// 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can. +// Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case) +bool ImGui::BeginDragDropTarget() +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + if (!(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect)) + return false; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindowDockTree != hovered_window->RootWindowDockTree || window->SkipItems) + return false; + + const ImRect& display_rect = (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDisplayRect) ? g.LastItemData.DisplayRect : g.LastItemData.Rect; + ImGuiID id = g.LastItemData.ID; + if (id == 0) + { + id = window->GetIDFromRectangle(display_rect); + KeepAliveID(id); + } + if (g.DragDropPayload.SourceId == id) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = display_rect; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +bool ImGui::IsDragDropPayloadBeingAccepted() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive && g.DragDropAcceptIdPrev != 0; +} + +const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiPayload& payload = g.DragDropPayload; + IM_ASSERT(g.DragDropActive); // Not called between BeginDragDropTarget() and EndDragDropTarget() ? + IM_ASSERT(payload.DataFrameCount != -1); // Forgot to call EndDragDropTarget() ? + if (type != NULL && !payload.IsDataType(type)) + return NULL; + + // Accept smallest drag target bounding box, this allows us to nest drag targets conveniently without ordering constraints. + // NB: We currently accept NULL id as target. However, overlapping targets requires a unique ID to function! + const bool was_accepted_previously = (g.DragDropAcceptIdPrev == g.DragDropTargetId); + ImRect r = g.DragDropTargetRect; + float r_surface = r.GetWidth() * r.GetHeight(); + if (r_surface <= g.DragDropAcceptIdCurrRectSurface) + { + g.DragDropAcceptFlags = flags; + g.DragDropAcceptIdCurr = g.DragDropTargetId; + g.DragDropAcceptIdCurrRectSurface = r_surface; + } + + // Render default drop visuals + payload.Preview = was_accepted_previously; + flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that live for 1 frame) + if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) + window->DrawList->AddRect(r.Min - ImVec2(3.5f,3.5f), r.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); + + g.DragDropAcceptFrameCount = g.FrameCount; + payload.Delivery = was_accepted_previously && !IsMouseDown(g.DragDropMouseButton); // For extern drag sources affecting os window focus, it's easier to just test !IsMouseDown() instead of IsMouseReleased() + if (!payload.Delivery && !(flags & ImGuiDragDropFlags_AcceptBeforeDelivery)) + return NULL; + + return &payload; +} + +// FIXME-DRAGDROP: Settle on a proper default visuals for drop target. +void ImGui::RenderDragDropTargetRect(const ImRect& bb) +{ + GetWindowDrawList()->AddRect(bb.Min - ImVec2(3.5f, 3.5f), bb.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); +} + +const ImGuiPayload* ImGui::GetDragDropPayload() +{ + ImGuiContext& g = *GImGui; + return (g.DragDropActive && g.DragDropPayload.DataFrameCount != -1) ? &g.DragDropPayload : NULL; +} + +// We don't really use/need this now, but added it for the sake of consistency and because we might need it later. +void ImGui::EndDragDropTarget() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinTarget); + g.DragDropWithinTarget = false; +} + +//----------------------------------------------------------------------------- +// [SECTION] LOGGING/CAPTURING +//----------------------------------------------------------------------------- +// All text output from the interface can be captured into tty/file/clipboard. +// By default, tree nodes are automatically opened during logging. +//----------------------------------------------------------------------------- + +// Pass text data straight to log (without being displayed) +static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) +{ + if (g.LogFile) + { + g.LogBuffer.Buf.resize(0); + g.LogBuffer.appendfv(fmt, args); + ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); + } + else + { + g.LogBuffer.appendfv(fmt, args); + } +} + +void ImGui::LogText(const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + va_list args; + va_start(args, fmt); + LogTextV(g, fmt, args); + va_end(args); +} + +void ImGui::LogTextV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + LogTextV(g, fmt, args); +} + +// Internal version that takes a position to decide on newline placement and pad items according to their depth. +// We split text into individual lines to add current tree level padding +// FIXME: This code is a little complicated perhaps, considering simplifying the whole system. +void ImGui::LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const char* prefix = g.LogNextPrefix; + const char* suffix = g.LogNextSuffix; + g.LogNextPrefix = g.LogNextSuffix = NULL; + + if (!text_end) + text_end = FindRenderedTextEnd(text, text_end); + + const bool log_new_line = ref_pos && (ref_pos->y > g.LogLinePosY + g.Style.FramePadding.y + 1); + if (ref_pos) + g.LogLinePosY = ref_pos->y; + if (log_new_line) + { + LogText(IM_NEWLINE); + g.LogLineFirstItem = true; + } + + if (prefix) + LogRenderedText(ref_pos, prefix, prefix + strlen(prefix)); // Calculate end ourself to ensure "##" are included here. + + // Re-adjust padding if we have popped out of our starting depth + if (g.LogDepthRef > window->DC.TreeDepth) + g.LogDepthRef = window->DC.TreeDepth; + const int tree_depth = (window->DC.TreeDepth - g.LogDepthRef); + + const char* text_remaining = text; + for (;;) + { + // Split the string. Each new line (after a '\n') is followed by indentation corresponding to the current depth of our log entry. + // We don't add a trailing \n yet to allow a subsequent item on the same line to be captured. + const char* line_start = text_remaining; + const char* line_end = ImStreolRange(line_start, text_end); + const bool is_last_line = (line_end == text_end); + if (line_start != line_end || !is_last_line) + { + const int line_length = (int)(line_end - line_start); + const int indentation = g.LogLineFirstItem ? tree_depth * 4 : 1; + LogText("%*s%.*s", indentation, "", line_length, line_start); + g.LogLineFirstItem = false; + if (*line_end == '\n') + { + LogText(IM_NEWLINE); + g.LogLineFirstItem = true; + } + } + if (is_last_line) + break; + text_remaining = line_end + 1; + } + + if (suffix) + LogRenderedText(ref_pos, suffix, suffix + strlen(suffix)); +} + +// Start logging/capturing text output +void ImGui::LogBegin(ImGuiLogType type, int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(g.LogEnabled == false); + IM_ASSERT(g.LogFile == NULL); + IM_ASSERT(g.LogBuffer.empty()); + g.LogEnabled = true; + g.LogType = type; + g.LogNextPrefix = g.LogNextSuffix = NULL; + g.LogDepthRef = window->DC.TreeDepth; + g.LogDepthToExpand = ((auto_open_depth >= 0) ? auto_open_depth : g.LogDepthToExpandDefault); + g.LogLinePosY = FLT_MAX; + g.LogLineFirstItem = true; +} + +// Important: doesn't copy underlying data, use carefully (prefix/suffix must be in scope at the time of the next LogRenderedText) +void ImGui::LogSetNextTextDecoration(const char* prefix, const char* suffix) +{ + ImGuiContext& g = *GImGui; + g.LogNextPrefix = prefix; + g.LogNextSuffix = suffix; +} + +void ImGui::LogToTTY(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + IM_UNUSED(auto_open_depth); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + LogBegin(ImGuiLogType_TTY, auto_open_depth); + g.LogFile = stdout; +#endif +} + +// Start logging/capturing text output to given file +void ImGui::LogToFile(int auto_open_depth, const char* filename) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + + // FIXME: We could probably open the file in text mode "at", however note that clipboard/buffer logging will still + // be subject to outputting OS-incompatible carriage return if within strings the user doesn't use IM_NEWLINE. + // By opening the file in binary mode "ab" we have consistent output everywhere. + if (!filename) + filename = g.IO.LogFilename; + if (!filename || !filename[0]) + return; + ImFileHandle f = ImFileOpen(filename, "ab"); + if (!f) + { + IM_ASSERT(0); + return; + } + + LogBegin(ImGuiLogType_File, auto_open_depth); + g.LogFile = f; +} + +// Start logging/capturing text output to clipboard +void ImGui::LogToClipboard(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Clipboard, auto_open_depth); +} + +void ImGui::LogToBuffer(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Buffer, auto_open_depth); +} + +void ImGui::LogFinish() +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + LogText(IM_NEWLINE); + switch (g.LogType) + { + case ImGuiLogType_TTY: +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + fflush(g.LogFile); +#endif + break; + case ImGuiLogType_File: + ImFileClose(g.LogFile); + break; + case ImGuiLogType_Buffer: + break; + case ImGuiLogType_Clipboard: + if (!g.LogBuffer.empty()) + SetClipboardText(g.LogBuffer.begin()); + break; + case ImGuiLogType_None: + IM_ASSERT(0); + break; + } + + g.LogEnabled = false; + g.LogType = ImGuiLogType_None; + g.LogFile = NULL; + g.LogBuffer.clear(); +} + +// Helper to display logging buttons +// FIXME-OBSOLETE: We should probably obsolete this and let the user have their own helper (this is one of the oldest function alive!) +void ImGui::LogButtons() +{ + ImGuiContext& g = *GImGui; + + PushID("LogButtons"); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + const bool log_to_tty = Button("Log To TTY"); SameLine(); +#else + const bool log_to_tty = false; +#endif + const bool log_to_file = Button("Log To File"); SameLine(); + const bool log_to_clipboard = Button("Log To Clipboard"); SameLine(); + PushAllowKeyboardFocus(false); + SetNextItemWidth(80.0f); + SliderInt("Default Depth", &g.LogDepthToExpandDefault, 0, 9, NULL); + PopAllowKeyboardFocus(); + PopID(); + + // Start logging at the end of the function so that the buttons don't appear in the log + if (log_to_tty) + LogToTTY(); + if (log_to_file) + LogToFile(); + if (log_to_clipboard) + LogToClipboard(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] SETTINGS +//----------------------------------------------------------------------------- +// - UpdateSettings() [Internal] +// - MarkIniSettingsDirty() [Internal] +// - CreateNewWindowSettings() [Internal] +// - FindWindowSettings() [Internal] +// - FindOrCreateWindowSettings() [Internal] +// - FindSettingsHandler() [Internal] +// - ClearIniSettings() [Internal] +// - LoadIniSettingsFromDisk() +// - LoadIniSettingsFromMemory() +// - SaveIniSettingsToDisk() +// - SaveIniSettingsToMemory() +// - WindowSettingsHandler_***() [Internal] +//----------------------------------------------------------------------------- + +// Called by NewFrame() +void ImGui::UpdateSettings() +{ + // Load settings on first frame (if not explicitly loaded manually before) + ImGuiContext& g = *GImGui; + if (!g.SettingsLoaded) + { + IM_ASSERT(g.SettingsWindows.empty()); + if (g.IO.IniFilename) + LoadIniSettingsFromDisk(g.IO.IniFilename); + g.SettingsLoaded = true; + } + + // Save settings (with a delay after the last modification, so we don't spam disk too much) + if (g.SettingsDirtyTimer > 0.0f) + { + g.SettingsDirtyTimer -= g.IO.DeltaTime; + if (g.SettingsDirtyTimer <= 0.0f) + { + if (g.IO.IniFilename != NULL) + SaveIniSettingsToDisk(g.IO.IniFilename); + else + g.IO.WantSaveIniSettings = true; // Let user know they can call SaveIniSettingsToMemory(). user will need to clear io.WantSaveIniSettings themselves. + g.SettingsDirtyTimer = 0.0f; + } + } +} + +void ImGui::MarkIniSettingsDirty() +{ + ImGuiContext& g = *GImGui; + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +void ImGui::MarkIniSettingsDirty(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (!(window->Flags & ImGuiWindowFlags_NoSavedSettings)) + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +ImGuiWindowSettings* ImGui::CreateNewWindowSettings(const char* name) +{ + ImGuiContext& g = *GImGui; + +#if !IMGUI_DEBUG_INI_SETTINGS + // Skip to the "###" marker if any. We don't skip past to match the behavior of GetID() + // Preserve the full string when IMGUI_DEBUG_INI_SETTINGS is set to make .ini inspection easier. + if (const char* p = strstr(name, "###")) + name = p; +#endif + const size_t name_len = strlen(name); + + // Allocate chunk + const size_t chunk_size = sizeof(ImGuiWindowSettings) + name_len + 1; + ImGuiWindowSettings* settings = g.SettingsWindows.alloc_chunk(chunk_size); + IM_PLACEMENT_NEW(settings) ImGuiWindowSettings(); + settings->ID = ImHashStr(name, name_len); + memcpy(settings->GetName(), name, name_len + 1); // Store with zero terminator + + return settings; +} + +ImGuiWindowSettings* ImGui::FindWindowSettings(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->ID == id) + return settings; + return NULL; +} + +ImGuiWindowSettings* ImGui::FindOrCreateWindowSettings(const char* name) +{ + if (ImGuiWindowSettings* settings = FindWindowSettings(ImHashStr(name))) + return settings; + return CreateNewWindowSettings(name); +} + +void ImGui::AddSettingsHandler(const ImGuiSettingsHandler* handler) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(FindSettingsHandler(handler->TypeName) == NULL); + g.SettingsHandlers.push_back(*handler); +} + +void ImGui::RemoveSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + if (ImGuiSettingsHandler* handler = FindSettingsHandler(type_name)) + g.SettingsHandlers.erase(handler); +} + +ImGuiSettingsHandler* ImGui::FindSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + const ImGuiID type_hash = ImHashStr(type_name); + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].TypeHash == type_hash) + return &g.SettingsHandlers[handler_n]; + return NULL; +} + +void ImGui::ClearIniSettings() +{ + ImGuiContext& g = *GImGui; + g.SettingsIniData.clear(); + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].ClearAllFn) + g.SettingsHandlers[handler_n].ClearAllFn(&g, &g.SettingsHandlers[handler_n]); +} + +void ImGui::LoadIniSettingsFromDisk(const char* ini_filename) +{ + size_t file_data_size = 0; + char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size); + if (!file_data) + return; + if (file_data_size > 0) + LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); + IM_FREE(file_data); +} + +// Zero-tolerance, no error reporting, cheap .ini parsing +void ImGui::LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + //IM_ASSERT(!g.WithinFrameScope && "Cannot be called between NewFrame() and EndFrame()"); + //IM_ASSERT(g.SettingsLoaded == false && g.FrameCount == 0); + + // For user convenience, we allow passing a non zero-terminated string (hence the ini_size parameter). + // For our convenience and to make the code simpler, we'll also write zero-terminators within the buffer. So let's create a writable copy.. + if (ini_size == 0) + ini_size = strlen(ini_data); + g.SettingsIniData.Buf.resize((int)ini_size + 1); + char* const buf = g.SettingsIniData.Buf.Data; + char* const buf_end = buf + ini_size; + memcpy(buf, ini_data, ini_size); + buf_end[0] = 0; + + // Call pre-read handlers + // Some types will clear their data (e.g. dock information) some types will allow merge/override (window) + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].ReadInitFn) + g.SettingsHandlers[handler_n].ReadInitFn(&g, &g.SettingsHandlers[handler_n]); + + void* entry_data = NULL; + ImGuiSettingsHandler* entry_handler = NULL; + + char* line_end = NULL; + for (char* line = buf; line < buf_end; line = line_end + 1) + { + // Skip new lines markers, then find end of the line + while (*line == '\n' || *line == '\r') + line++; + line_end = line; + while (line_end < buf_end && *line_end != '\n' && *line_end != '\r') + line_end++; + line_end[0] = 0; + if (line[0] == ';') + continue; + if (line[0] == '[' && line_end > line && line_end[-1] == ']') + { + // Parse "[Type][Name]". Note that 'Name' can itself contains [] characters, which is acceptable with the current format and parsing code. + line_end[-1] = 0; + const char* name_end = line_end - 1; + const char* type_start = line + 1; + char* type_end = (char*)(void*)ImStrchrRange(type_start, name_end, ']'); + const char* name_start = type_end ? ImStrchrRange(type_end + 1, name_end, '[') : NULL; + if (!type_end || !name_start) + continue; + *type_end = 0; // Overwrite first ']' + name_start++; // Skip second '[' + entry_handler = FindSettingsHandler(type_start); + entry_data = entry_handler ? entry_handler->ReadOpenFn(&g, entry_handler, name_start) : NULL; + } + else if (entry_handler != NULL && entry_data != NULL) + { + // Let type handler parse the line + entry_handler->ReadLineFn(&g, entry_handler, entry_data, line); + } + } + g.SettingsLoaded = true; + + // [DEBUG] Restore untouched copy so it can be browsed in Metrics (not strictly necessary) + memcpy(buf, ini_data, ini_size); + + // Call post-read handlers + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].ApplyAllFn) + g.SettingsHandlers[handler_n].ApplyAllFn(&g, &g.SettingsHandlers[handler_n]); +} + +void ImGui::SaveIniSettingsToDisk(const char* ini_filename) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + if (!ini_filename) + return; + + size_t ini_data_size = 0; + const char* ini_data = SaveIniSettingsToMemory(&ini_data_size); + ImFileHandle f = ImFileOpen(ini_filename, "wt"); + if (!f) + return; + ImFileWrite(ini_data, sizeof(char), ini_data_size, f); + ImFileClose(f); +} + +// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer +const char* ImGui::SaveIniSettingsToMemory(size_t* out_size) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + g.SettingsIniData.Buf.resize(0); + g.SettingsIniData.Buf.push_back(0); + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + { + ImGuiSettingsHandler* handler = &g.SettingsHandlers[handler_n]; + handler->WriteAllFn(&g, handler, &g.SettingsIniData); + } + if (out_size) + *out_size = (size_t)g.SettingsIniData.size(); + return g.SettingsIniData.c_str(); +} + +static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Windows.Size; i++) + g.Windows[i]->SettingsOffset = -1; + g.SettingsWindows.clear(); +} + +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + ImGuiWindowSettings* settings = ImGui::FindOrCreateWindowSettings(name); + ImGuiID id = settings->ID; + *settings = ImGuiWindowSettings(); // Clear existing if recycling previous entry + settings->ID = id; + settings->WantApply = true; + return (void*)settings; +} + +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +{ + ImGuiWindowSettings* settings = (ImGuiWindowSettings*)entry; + int x, y; + int i; + ImU32 u1; + if (sscanf(line, "Pos=%i,%i", &x, &y) == 2) { settings->Pos = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Size=%i,%i", &x, &y) == 2) { settings->Size = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "ViewportId=0x%08X", &u1) == 1) { settings->ViewportId = u1; } + else if (sscanf(line, "ViewportPos=%i,%i", &x, &y) == 2){ settings->ViewportPos = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Collapsed=%d", &i) == 1) { settings->Collapsed = (i != 0); } + else if (sscanf(line, "DockId=0x%X,%d", &u1, &i) == 2) { settings->DockId = u1; settings->DockOrder = (short)i; } + else if (sscanf(line, "DockId=0x%X", &u1) == 1) { settings->DockId = u1; settings->DockOrder = -1; } + else if (sscanf(line, "ClassId=0x%X", &u1) == 1) { settings->ClassId = u1; } +} + +// Apply to existing windows (if any) +static void WindowSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->WantApply) + { + if (ImGuiWindow* window = ImGui::FindWindowByID(settings->ID)) + ApplyWindowSettings(window, settings); + settings->WantApply = false; + } +} + +static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + // Gather data from windows that were active during this session + // (if a window wasn't opened in this session we preserve its settings) + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Flags & ImGuiWindowFlags_NoSavedSettings) + continue; + + ImGuiWindowSettings* settings = (window->SettingsOffset != -1) ? g.SettingsWindows.ptr_from_offset(window->SettingsOffset) : ImGui::FindWindowSettings(window->ID); + if (!settings) + { + settings = ImGui::CreateNewWindowSettings(window->Name); + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + } + IM_ASSERT(settings->ID == window->ID); + settings->Pos = ImVec2ih(window->Pos - window->ViewportPos); + settings->Size = ImVec2ih(window->SizeFull); + settings->ViewportId = window->ViewportId; + settings->ViewportPos = ImVec2ih(window->ViewportPos); + IM_ASSERT(window->DockNode == NULL || window->DockNode->ID == window->DockId); + settings->DockId = window->DockId; + settings->ClassId = window->WindowClass.ClassId; + settings->DockOrder = window->DockOrder; + settings->Collapsed = window->Collapsed; + } + + // Write to text buffer + buf->reserve(buf->size() + g.SettingsWindows.size() * 6); // ballpark reserve + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + { + const char* settings_name = settings->GetName(); + buf->appendf("[%s][%s]\n", handler->TypeName, settings_name); + if (settings->ViewportId != 0 && settings->ViewportId != ImGui::IMGUI_VIEWPORT_DEFAULT_ID) + { + buf->appendf("ViewportPos=%d,%d\n", settings->ViewportPos.x, settings->ViewportPos.y); + buf->appendf("ViewportId=0x%08X\n", settings->ViewportId); + } + if (settings->Pos.x != 0 || settings->Pos.y != 0 || settings->ViewportId == ImGui::IMGUI_VIEWPORT_DEFAULT_ID) + buf->appendf("Pos=%d,%d\n", settings->Pos.x, settings->Pos.y); + if (settings->Size.x != 0 || settings->Size.y != 0) + buf->appendf("Size=%d,%d\n", settings->Size.x, settings->Size.y); + buf->appendf("Collapsed=%d\n", settings->Collapsed); + if (settings->DockId != 0) + { + //buf->appendf("TabId=0x%08X\n", ImHashStr("#TAB", 4, settings->ID)); // window->TabId: this is not read back but writing it makes "debugging" the .ini data easier. + if (settings->DockOrder == -1) + buf->appendf("DockId=0x%08X\n", settings->DockId); + else + buf->appendf("DockId=0x%08X,%d\n", settings->DockId, settings->DockOrder); + if (settings->ClassId != 0) + buf->appendf("ClassId=0x%08X\n", settings->ClassId); + } + buf->append("\n"); + } +} + + +//----------------------------------------------------------------------------- +// [SECTION] LOCALIZATION +//----------------------------------------------------------------------------- + +void ImGui::LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count) +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < count; n++) + g.LocalizationTable[entries[n].Key] = entries[n].Text; +} + + +//----------------------------------------------------------------------------- +// [SECTION] VIEWPORTS, PLATFORM WINDOWS +//----------------------------------------------------------------------------- +// - GetMainViewport() +// - FindViewportByID() +// - FindViewportByPlatformHandle() +// - SetCurrentViewport() [Internal] +// - SetWindowViewport() [Internal] +// - GetWindowAlwaysWantOwnViewport() [Internal] +// - UpdateTryMergeWindowIntoHostViewport() [Internal] +// - UpdateTryMergeWindowIntoHostViewports() [Internal] +// - TranslateWindowsInViewport() [Internal] +// - ScaleWindowsInViewport() [Internal] +// - FindHoveredViewportFromPlatformWindowStack() [Internal] +// - UpdateViewportsNewFrame() [Internal] +// - UpdateViewportsEndFrame() [Internal] +// - AddUpdateViewport() [Internal] +// - WindowSelectViewport() [Internal] +// - WindowSyncOwnedViewport() [Internal] +// - UpdatePlatformWindows() +// - RenderPlatformWindowsDefault() +// - FindPlatformMonitorForPos() [Internal] +// - FindPlatformMonitorForRect() [Internal] +// - UpdateViewportPlatformMonitor() [Internal] +// - DestroyPlatformWindow() [Internal] +// - DestroyPlatformWindows() +//----------------------------------------------------------------------------- + +ImGuiViewport* ImGui::GetMainViewport() +{ + ImGuiContext& g = *GImGui; + return g.Viewports[0]; +} + +// FIXME: This leaks access to viewports not listed in PlatformIO.Viewports[]. Problematic? (#4236) +ImGuiViewport* ImGui::FindViewportByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < g.Viewports.Size; n++) + if (g.Viewports[n]->ID == id) + return g.Viewports[n]; + return NULL; +} + +ImGuiViewport* ImGui::FindViewportByPlatformHandle(void* platform_handle) +{ + ImGuiContext& g = *GImGui; + for (int i = 0; i != g.Viewports.Size; i++) + if (g.Viewports[i]->PlatformHandle == platform_handle) + return g.Viewports[i]; + return NULL; +} + +void ImGui::SetCurrentViewport(ImGuiWindow* current_window, ImGuiViewportP* viewport) +{ + ImGuiContext& g = *GImGui; + (void)current_window; + + if (viewport) + viewport->LastFrameActive = g.FrameCount; + if (g.CurrentViewport == viewport) + return; + g.CurrentDpiScale = viewport ? viewport->DpiScale : 1.0f; + g.CurrentViewport = viewport; + //IMGUI_DEBUG_LOG_VIEWPORT("[viewport] SetCurrentViewport changed '%s' 0x%08X\n", current_window ? current_window->Name : NULL, viewport ? viewport->ID : 0); + + // Notify platform layer of viewport changes + // FIXME-DPI: This is only currently used for experimenting with handling of multiple DPI + if (g.CurrentViewport && g.PlatformIO.Platform_OnChangedViewport) + g.PlatformIO.Platform_OnChangedViewport(g.CurrentViewport); +} + +void ImGui::SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) +{ + // Abandon viewport + if (window->ViewportOwned && window->Viewport->Window == window) + window->Viewport->Size = ImVec2(0.0f, 0.0f); + + window->Viewport = viewport; + window->ViewportId = viewport->ID; + window->ViewportOwned = (viewport->Window == window); +} + +static bool ImGui::GetWindowAlwaysWantOwnViewport(ImGuiWindow* window) +{ + // Tooltips and menus are not automatically forced into their own viewport when the NoMerge flag is set, however the multiplication of viewports makes them more likely to protrude and create their own. + ImGuiContext& g = *GImGui; + if (g.IO.ConfigViewportsNoAutoMerge || (window->WindowClass.ViewportFlagsOverrideSet & ImGuiViewportFlags_NoAutoMerge)) + if (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) + if (!window->DockIsActive) + if ((window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip)) == 0) + if ((window->Flags & ImGuiWindowFlags_Popup) == 0 || (window->Flags & ImGuiWindowFlags_Modal) != 0) + return true; + return false; +} + +static bool ImGui::UpdateTryMergeWindowIntoHostViewport(ImGuiWindow* window, ImGuiViewportP* viewport) +{ + ImGuiContext& g = *GImGui; + if (window->Viewport == viewport) + return false; + if ((viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows) == 0) + return false; + if ((viewport->Flags & ImGuiViewportFlags_Minimized) != 0) + return false; + if (!viewport->GetMainRect().Contains(window->Rect())) + return false; + if (GetWindowAlwaysWantOwnViewport(window)) + return false; + + // FIXME: Can't use g.WindowsFocusOrder[] for root windows only as we care about Z order. If we maintained a DisplayOrder along with FocusOrder we could.. + for (int n = 0; n < g.Windows.Size; n++) + { + ImGuiWindow* window_behind = g.Windows[n]; + if (window_behind == window) + break; + if (window_behind->WasActive && window_behind->ViewportOwned && !(window_behind->Flags & ImGuiWindowFlags_ChildWindow)) + if (window_behind->Viewport->GetMainRect().Overlaps(window->Rect())) + return false; + } + + // Move to the existing viewport, Move child/hosted windows as well (FIXME-OPT: iterate child) + ImGuiViewportP* old_viewport = window->Viewport; + if (window->ViewportOwned) + for (int n = 0; n < g.Windows.Size; n++) + if (g.Windows[n]->Viewport == old_viewport) + SetWindowViewport(g.Windows[n], viewport); + SetWindowViewport(window, viewport); + BringWindowToDisplayFront(window); + + return true; +} + +// FIXME: handle 0 to N host viewports +static bool ImGui::UpdateTryMergeWindowIntoHostViewports(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + return UpdateTryMergeWindowIntoHostViewport(window, g.Viewports[0]); +} + +// Translate Dear ImGui windows when a Host Viewport has been moved +// (This additionally keeps windows at the same place when ImGuiConfigFlags_ViewportsEnable is toggled!) +void ImGui::TranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2& old_pos, const ImVec2& new_pos) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(viewport->Window == NULL && (viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows)); + + // 1) We test if ImGuiConfigFlags_ViewportsEnable was just toggled, which allows us to conveniently + // translate imgui windows from OS-window-local to absolute coordinates or vice-versa. + // 2) If it's not going to fit into the new size, keep it at same absolute position. + // One problem with this is that most Win32 applications doesn't update their render while dragging, + // and so the window will appear to teleport when releasing the mouse. + const bool translate_all_windows = (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) != (g.ConfigFlagsLastFrame & ImGuiConfigFlags_ViewportsEnable); + ImRect test_still_fit_rect(old_pos, old_pos + viewport->Size); + ImVec2 delta_pos = new_pos - old_pos; + for (int window_n = 0; window_n < g.Windows.Size; window_n++) // FIXME-OPT + if (translate_all_windows || (g.Windows[window_n]->Viewport == viewport && test_still_fit_rect.Contains(g.Windows[window_n]->Rect()))) + TranslateWindow(g.Windows[window_n], delta_pos); +} + +// Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!) +void ImGui::ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale) +{ + ImGuiContext& g = *GImGui; + if (viewport->Window) + { + ScaleWindow(viewport->Window, scale); + } + else + { + for (int i = 0; i != g.Windows.Size; i++) + if (g.Windows[i]->Viewport == viewport) + ScaleWindow(g.Windows[i], scale); + } +} + +// If the backend doesn't set MouseLastHoveredViewport or doesn't honor ImGuiViewportFlags_NoInputs, we do a search ourselves. +// A) It won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window. +// B) It requires Platform_GetWindowFocus to be implemented by backend. +ImGuiViewportP* ImGui::FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* best_candidate = NULL; + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + if (!(viewport->Flags & (ImGuiViewportFlags_NoInputs | ImGuiViewportFlags_Minimized)) && viewport->GetMainRect().Contains(mouse_platform_pos)) + if (best_candidate == NULL || best_candidate->LastFrontMostStampCount < viewport->LastFrontMostStampCount) + best_candidate = viewport; + } + return best_candidate; +} + +// Update viewports and monitor infos +// Note that this is running even if 'ImGuiConfigFlags_ViewportsEnable' is not set, in order to clear unused viewports (if any) and update monitor info. +static void ImGui::UpdateViewportsNewFrame() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.PlatformIO.Viewports.Size <= g.Viewports.Size); + + // Update Minimized status (we need it first in order to decide if we'll apply Pos/Size of the main viewport) + const bool viewports_enabled = (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) != 0; + if (viewports_enabled) + { + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + const bool platform_funcs_available = viewport->PlatformWindowCreated; + if (g.PlatformIO.Platform_GetWindowMinimized && platform_funcs_available) + { + bool minimized = g.PlatformIO.Platform_GetWindowMinimized(viewport); + if (minimized) + viewport->Flags |= ImGuiViewportFlags_Minimized; + else + viewport->Flags &= ~ImGuiViewportFlags_Minimized; + } + } + } + + // Create/update main viewport with current platform position. + // FIXME-VIEWPORT: Size is driven by backend/user code for backward-compatibility but we should aim to make this more consistent. + ImGuiViewportP* main_viewport = g.Viewports[0]; + IM_ASSERT(main_viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID); + IM_ASSERT(main_viewport->Window == NULL); + ImVec2 main_viewport_pos = viewports_enabled ? g.PlatformIO.Platform_GetWindowPos(main_viewport) : ImVec2(0.0f, 0.0f); + ImVec2 main_viewport_size = g.IO.DisplaySize; + if (viewports_enabled && (main_viewport->Flags & ImGuiViewportFlags_Minimized)) + { + main_viewport_pos = main_viewport->Pos; // Preserve last pos/size when minimized (FIXME: We don't do the same for Size outside of the viewport path) + main_viewport_size = main_viewport->Size; + } + AddUpdateViewport(NULL, IMGUI_VIEWPORT_DEFAULT_ID, main_viewport_pos, main_viewport_size, ImGuiViewportFlags_OwnedByApp | ImGuiViewportFlags_CanHostOtherWindows); + + g.CurrentDpiScale = 0.0f; + g.CurrentViewport = NULL; + g.MouseViewport = NULL; + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + viewport->Idx = n; + + // Erase unused viewports + if (n > 0 && viewport->LastFrameActive < g.FrameCount - 2) + { + DestroyViewport(viewport); + n--; + continue; + } + + const bool platform_funcs_available = viewport->PlatformWindowCreated; + if (viewports_enabled) + { + // Update Position and Size (from Platform Window to ImGui) if requested. + // We do it early in the frame instead of waiting for UpdatePlatformWindows() to avoid a frame of lag when moving/resizing using OS facilities. + if (!(viewport->Flags & ImGuiViewportFlags_Minimized) && platform_funcs_available) + { + // Viewport->WorkPos and WorkSize will be updated below + if (viewport->PlatformRequestMove) + viewport->Pos = viewport->LastPlatformPos = g.PlatformIO.Platform_GetWindowPos(viewport); + if (viewport->PlatformRequestResize) + viewport->Size = viewport->LastPlatformSize = g.PlatformIO.Platform_GetWindowSize(viewport); + } + } + + // Update/copy monitor info + UpdateViewportPlatformMonitor(viewport); + + // Lock down space taken by menu bars and status bars, reset the offset for functions like BeginMainMenuBar() to alter them again. + viewport->WorkOffsetMin = viewport->BuildWorkOffsetMin; + viewport->WorkOffsetMax = viewport->BuildWorkOffsetMax; + viewport->BuildWorkOffsetMin = viewport->BuildWorkOffsetMax = ImVec2(0.0f, 0.0f); + viewport->UpdateWorkRect(); + + // Reset alpha every frame. Users of transparency (docking) needs to request a lower alpha back. + viewport->Alpha = 1.0f; + + // Translate Dear ImGui windows when a Host Viewport has been moved + // (This additionally keeps windows at the same place when ImGuiConfigFlags_ViewportsEnable is toggled!) + const ImVec2 viewport_delta_pos = viewport->Pos - viewport->LastPos; + if ((viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows) && (viewport_delta_pos.x != 0.0f || viewport_delta_pos.y != 0.0f)) + TranslateWindowsInViewport(viewport, viewport->LastPos, viewport->Pos); + + // Update DPI scale + float new_dpi_scale; + if (g.PlatformIO.Platform_GetWindowDpiScale && platform_funcs_available) + new_dpi_scale = g.PlatformIO.Platform_GetWindowDpiScale(viewport); + else if (viewport->PlatformMonitor != -1) + new_dpi_scale = g.PlatformIO.Monitors[viewport->PlatformMonitor].DpiScale; + else + new_dpi_scale = (viewport->DpiScale != 0.0f) ? viewport->DpiScale : 1.0f; + if (viewport->DpiScale != 0.0f && new_dpi_scale != viewport->DpiScale) + { + float scale_factor = new_dpi_scale / viewport->DpiScale; + if (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleViewports) + ScaleWindowsInViewport(viewport, scale_factor); + //if (viewport == GetMainViewport()) + // g.PlatformInterface.SetWindowSize(viewport, viewport->Size * scale_factor); + + // Scale our window moving pivot so that the window will rescale roughly around the mouse position. + // FIXME-VIEWPORT: This currently creates a resizing feedback loop when a window is straddling a DPI transition border. + // (Minor: since our sizes do not perfectly linearly scale, deferring the click offset scale until we know the actual window scale ratio may get us slightly more precise mouse positioning.) + //if (g.MovingWindow != NULL && g.MovingWindow->Viewport == viewport) + // g.ActiveIdClickOffset = ImFloor(g.ActiveIdClickOffset * scale_factor); + } + viewport->DpiScale = new_dpi_scale; + } + + // Update fallback monitor + if (g.PlatformIO.Monitors.Size == 0) + { + ImGuiPlatformMonitor* monitor = &g.FallbackMonitor; + monitor->MainPos = main_viewport->Pos; + monitor->MainSize = main_viewport->Size; + monitor->WorkPos = main_viewport->WorkPos; + monitor->WorkSize = main_viewport->WorkSize; + monitor->DpiScale = main_viewport->DpiScale; + } + + if (!viewports_enabled) + { + g.MouseViewport = main_viewport; + return; + } + + // Mouse handling: decide on the actual mouse viewport for this frame between the active/focused viewport and the hovered viewport. + // Note that 'viewport_hovered' should skip over any viewport that has the ImGuiViewportFlags_NoInputs flags set. + ImGuiViewportP* viewport_hovered = NULL; + if (g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) + { + viewport_hovered = g.IO.MouseHoveredViewport ? (ImGuiViewportP*)FindViewportByID(g.IO.MouseHoveredViewport) : NULL; + if (viewport_hovered && (viewport_hovered->Flags & ImGuiViewportFlags_NoInputs)) + viewport_hovered = FindHoveredViewportFromPlatformWindowStack(g.IO.MousePos); // Backend failed to handle _NoInputs viewport: revert to our fallback. + } + else + { + // If the backend doesn't know how to honor ImGuiViewportFlags_NoInputs, we do a search ourselves. Note that this search: + // A) won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window. + // B) won't take account of how the backend apply parent<>child relationship to secondary viewports, which affects their Z order. + // C) uses LastFrameAsRefViewport as a flawed replacement for the last time a window was focused (we could/should fix that by introducing Focus functions in PlatformIO) + viewport_hovered = FindHoveredViewportFromPlatformWindowStack(g.IO.MousePos); + } + if (viewport_hovered != NULL) + g.MouseLastHoveredViewport = viewport_hovered; + else if (g.MouseLastHoveredViewport == NULL) + g.MouseLastHoveredViewport = g.Viewports[0]; + + // Update mouse reference viewport + // (when moving a window we aim at its viewport, but this will be overwritten below if we go in drag and drop mode) + // (MovingViewport->Viewport will be NULL in the rare situation where the window disappared while moving, set UpdateMouseMovingWindowNewFrame() for details) + if (g.MovingWindow && g.MovingWindow->Viewport) + g.MouseViewport = g.MovingWindow->Viewport; + else + g.MouseViewport = g.MouseLastHoveredViewport; + + // When dragging something, always refer to the last hovered viewport. + // - when releasing a moving window we will revert to aiming behind (at viewport_hovered) + // - when we are between viewports, our dragged preview will tend to show in the last viewport _even_ if we don't have tooltips in their viewports (when lacking monitor info) + // - consider the case of holding on a menu item to browse child menus: even thou a mouse button is held, there's no active id because menu items only react on mouse release. + // FIXME-VIEWPORT: This is essentially broken, when ImGuiBackendFlags_HasMouseHoveredViewport is set we want to trust when viewport_hovered==NULL and use that. + const bool is_mouse_dragging_with_an_expected_destination = g.DragDropActive; + if (is_mouse_dragging_with_an_expected_destination && viewport_hovered == NULL) + viewport_hovered = g.MouseLastHoveredViewport; + if (is_mouse_dragging_with_an_expected_destination || g.ActiveId == 0 || !IsAnyMouseDown()) + if (viewport_hovered != NULL && viewport_hovered != g.MouseViewport && !(viewport_hovered->Flags & ImGuiViewportFlags_NoInputs)) + g.MouseViewport = viewport_hovered; + + IM_ASSERT(g.MouseViewport != NULL); +} + +// Update user-facing viewport list (g.Viewports -> g.PlatformIO.Viewports after filtering out some) +static void ImGui::UpdateViewportsEndFrame() +{ + ImGuiContext& g = *GImGui; + g.PlatformIO.Viewports.resize(0); + for (int i = 0; i < g.Viewports.Size; i++) + { + ImGuiViewportP* viewport = g.Viewports[i]; + viewport->LastPos = viewport->Pos; + if (viewport->LastFrameActive < g.FrameCount || viewport->Size.x <= 0.0f || viewport->Size.y <= 0.0f) + if (i > 0) // Always include main viewport in the list + continue; + if (viewport->Window && !IsWindowActiveAndVisible(viewport->Window)) + continue; + if (i > 0) + IM_ASSERT(viewport->Window != NULL); + g.PlatformIO.Viewports.push_back(viewport); + } + g.Viewports[0]->ClearRequestFlags(); // Clear main viewport flags because UpdatePlatformWindows() won't do it and may not even be called +} + +// FIXME: We should ideally refactor the system to call this every frame (we currently don't) +ImGuiViewportP* ImGui::AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const ImVec2& pos, const ImVec2& size, ImGuiViewportFlags flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(id != 0); + + flags |= ImGuiViewportFlags_IsPlatformWindow; + if (window != NULL) + { + if (g.MovingWindow && g.MovingWindow->RootWindowDockTree == window) + flags |= ImGuiViewportFlags_NoInputs | ImGuiViewportFlags_NoFocusOnAppearing; + if ((window->Flags & ImGuiWindowFlags_NoMouseInputs) && (window->Flags & ImGuiWindowFlags_NoNavInputs)) + flags |= ImGuiViewportFlags_NoInputs; + if (window->Flags & ImGuiWindowFlags_NoFocusOnAppearing) + flags |= ImGuiViewportFlags_NoFocusOnAppearing; + } + + ImGuiViewportP* viewport = (ImGuiViewportP*)FindViewportByID(id); + if (viewport) + { + // Always update for main viewport as we are already pulling correct platform pos/size (see #4900) + if (!viewport->PlatformRequestMove || viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID) + viewport->Pos = pos; + if (!viewport->PlatformRequestResize || viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID) + viewport->Size = size; + viewport->Flags = flags | (viewport->Flags & ImGuiViewportFlags_Minimized); // Preserve existing flags + } + else + { + // New viewport + viewport = IM_NEW(ImGuiViewportP)(); + viewport->ID = id; + viewport->Idx = g.Viewports.Size; + viewport->Pos = viewport->LastPos = pos; + viewport->Size = size; + viewport->Flags = flags; + UpdateViewportPlatformMonitor(viewport); + g.Viewports.push_back(viewport); + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Add Viewport %08X '%s'\n", id, window ? window->Name : ""); + + // We normally setup for all viewports in NewFrame() but here need to handle the mid-frame creation of a new viewport. + // We need to extend the fullscreen clip rect so the OverlayDrawList clip is correct for that the first frame + g.DrawListSharedData.ClipRectFullscreen.x = ImMin(g.DrawListSharedData.ClipRectFullscreen.x, viewport->Pos.x); + g.DrawListSharedData.ClipRectFullscreen.y = ImMin(g.DrawListSharedData.ClipRectFullscreen.y, viewport->Pos.y); + g.DrawListSharedData.ClipRectFullscreen.z = ImMax(g.DrawListSharedData.ClipRectFullscreen.z, viewport->Pos.x + viewport->Size.x); + g.DrawListSharedData.ClipRectFullscreen.w = ImMax(g.DrawListSharedData.ClipRectFullscreen.w, viewport->Pos.y + viewport->Size.y); + + // Store initial DpiScale before the OS platform window creation, based on expected monitor data. + // This is so we can select an appropriate font size on the first frame of our window lifetime + if (viewport->PlatformMonitor != -1) + viewport->DpiScale = g.PlatformIO.Monitors[viewport->PlatformMonitor].DpiScale; + } + + viewport->Window = window; + viewport->LastFrameActive = g.FrameCount; + viewport->UpdateWorkRect(); + IM_ASSERT(window == NULL || viewport->ID == window->ID); + + if (window != NULL) + window->ViewportOwned = true; + + return viewport; +} + +static void ImGui::DestroyViewport(ImGuiViewportP* viewport) +{ + // Clear references to this viewport in windows (window->ViewportId becomes the master data) + ImGuiContext& g = *GImGui; + for (int window_n = 0; window_n < g.Windows.Size; window_n++) + { + ImGuiWindow* window = g.Windows[window_n]; + if (window->Viewport != viewport) + continue; + window->Viewport = NULL; + window->ViewportOwned = false; + } + if (viewport == g.MouseLastHoveredViewport) + g.MouseLastHoveredViewport = NULL; + + // Destroy + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Delete Viewport %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + DestroyPlatformWindow(viewport); // In most circumstances the platform window will already be destroyed here. + IM_ASSERT(g.PlatformIO.Viewports.contains(viewport) == false); + IM_ASSERT(g.Viewports[viewport->Idx] == viewport); + g.Viewports.erase(g.Viewports.Data + viewport->Idx); + IM_DELETE(viewport); +} + +// FIXME-VIEWPORT: This is all super messy and ought to be clarified or rewritten. +static void ImGui::WindowSelectViewport(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindowFlags flags = window->Flags; + window->ViewportAllowPlatformMonitorExtend = -1; + + // Restore main viewport if multi-viewport is not supported by the backend + ImGuiViewportP* main_viewport = (ImGuiViewportP*)(void*)GetMainViewport(); + if (!(g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable)) + { + SetWindowViewport(window, main_viewport); + return; + } + window->ViewportOwned = false; + + // Appearing popups reset their viewport so they can inherit again + if ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && window->Appearing) + { + window->Viewport = NULL; + window->ViewportId = 0; + } + + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasViewport) == 0) + { + // By default inherit from parent window + if (window->Viewport == NULL && window->ParentWindow && (!window->ParentWindow->IsFallbackWindow || window->ParentWindow->WasActive)) + window->Viewport = window->ParentWindow->Viewport; + + // Attempt to restore saved viewport id (= window that hasn't been activated yet), try to restore the viewport based on saved 'window->ViewportPos' restored from .ini file + if (window->Viewport == NULL && window->ViewportId != 0) + { + window->Viewport = (ImGuiViewportP*)FindViewportByID(window->ViewportId); + if (window->Viewport == NULL && window->ViewportPos.x != FLT_MAX && window->ViewportPos.y != FLT_MAX) + window->Viewport = AddUpdateViewport(window, window->ID, window->ViewportPos, window->Size, ImGuiViewportFlags_None); + } + } + + bool lock_viewport = false; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasViewport) + { + // Code explicitly request a viewport + window->Viewport = (ImGuiViewportP*)FindViewportByID(g.NextWindowData.ViewportId); + window->ViewportId = g.NextWindowData.ViewportId; // Store ID even if Viewport isn't resolved yet. + lock_viewport = true; + } + else if ((flags & ImGuiWindowFlags_ChildWindow) || (flags & ImGuiWindowFlags_ChildMenu)) + { + // Always inherit viewport from parent window + if (window->DockNode && window->DockNode->HostWindow) + IM_ASSERT(window->DockNode->HostWindow->Viewport == window->ParentWindow->Viewport); + window->Viewport = window->ParentWindow->Viewport; + } + else if (window->DockNode && window->DockNode->HostWindow) + { + // This covers the "always inherit viewport from parent window" case for when a window reattach to a node that was just created mid-frame + window->Viewport = window->DockNode->HostWindow->Viewport; + } + else if (flags & ImGuiWindowFlags_Tooltip) + { + window->Viewport = g.MouseViewport; + } + else if (GetWindowAlwaysWantOwnViewport(window)) + { + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_None); + } + else if (g.MovingWindow && g.MovingWindow->RootWindowDockTree == window && IsMousePosValid()) + { + if (window->Viewport != NULL && window->Viewport->Window == window) + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_None); + } + else + { + // Merge into host viewport? + // We cannot test window->ViewportOwned as it set lower in the function. + // Testing (g.ActiveId == 0 || g.ActiveIdAllowOverlap) to avoid merging during a short-term widget interaction. Main intent was to avoid during resize (see #4212) + bool try_to_merge_into_host_viewport = (window->Viewport && window == window->Viewport->Window && (g.ActiveId == 0 || g.ActiveIdAllowOverlap)); + if (try_to_merge_into_host_viewport) + UpdateTryMergeWindowIntoHostViewports(window); + } + + // Fallback: merge in default viewport if z-order matches, otherwise create a new viewport + if (window->Viewport == NULL) + if (!UpdateTryMergeWindowIntoHostViewport(window, main_viewport)) + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_None); + + // Mark window as allowed to protrude outside of its viewport and into the current monitor + if (!lock_viewport) + { + if (flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) + { + // We need to take account of the possibility that mouse may become invalid. + // Popups/Tooltip always set ViewportAllowPlatformMonitorExtend so GetWindowAllowedExtentRect() will return full monitor bounds. + ImVec2 mouse_ref = (flags & ImGuiWindowFlags_Tooltip) ? g.IO.MousePos : g.BeginPopupStack.back().OpenMousePos; + bool use_mouse_ref = (g.NavDisableHighlight || !g.NavDisableMouseHover || !g.NavWindow); + bool mouse_valid = IsMousePosValid(&mouse_ref); + if ((window->Appearing || (flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_ChildMenu))) && (!use_mouse_ref || mouse_valid)) + window->ViewportAllowPlatformMonitorExtend = FindPlatformMonitorForPos((use_mouse_ref && mouse_valid) ? mouse_ref : NavCalcPreferredRefPos()); + else + window->ViewportAllowPlatformMonitorExtend = window->Viewport->PlatformMonitor; + } + else if (window->Viewport && window != window->Viewport->Window && window->Viewport->Window && !(flags & ImGuiWindowFlags_ChildWindow) && window->DockNode == NULL) + { + // When called from Begin() we don't have access to a proper version of the Hidden flag yet, so we replicate this code. + const bool will_be_visible = (window->DockIsActive && !window->DockTabIsVisible) ? false : true; + if ((window->Flags & ImGuiWindowFlags_DockNodeHost) && window->Viewport->LastFrameActive < g.FrameCount && will_be_visible) + { + // Steal/transfer ownership + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Window '%s' steal Viewport %08X from Window '%s'\n", window->Name, window->Viewport->ID, window->Viewport->Window->Name); + window->Viewport->Window = window; + window->Viewport->ID = window->ID; + window->Viewport->LastNameHash = 0; + } + else if (!UpdateTryMergeWindowIntoHostViewports(window)) // Merge? + { + // New viewport + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_NoFocusOnAppearing); + } + } + else if (window->ViewportAllowPlatformMonitorExtend < 0 && (flags & ImGuiWindowFlags_ChildWindow) == 0) + { + // Regular (non-child, non-popup) windows by default are also allowed to protrude + // Child windows are kept contained within their parent. + window->ViewportAllowPlatformMonitorExtend = window->Viewport->PlatformMonitor; + } + } + + // Update flags + window->ViewportOwned = (window == window->Viewport->Window); + window->ViewportId = window->Viewport->ID; + + // If the OS window has a title bar, hide our imgui title bar + //if (window->ViewportOwned && !(window->Viewport->Flags & ImGuiViewportFlags_NoDecoration)) + // window->Flags |= ImGuiWindowFlags_NoTitleBar; +} + +void ImGui::WindowSyncOwnedViewport(ImGuiWindow* window, ImGuiWindow* parent_window_in_stack) +{ + ImGuiContext& g = *GImGui; + + bool viewport_rect_changed = false; + + // Synchronize window --> viewport in most situations + // Synchronize viewport -> window in case the platform window has been moved or resized from the OS/WM + if (window->Viewport->PlatformRequestMove) + { + window->Pos = window->Viewport->Pos; + MarkIniSettingsDirty(window); + } + else if (memcmp(&window->Viewport->Pos, &window->Pos, sizeof(window->Pos)) != 0) + { + viewport_rect_changed = true; + window->Viewport->Pos = window->Pos; + } + + if (window->Viewport->PlatformRequestResize) + { + window->Size = window->SizeFull = window->Viewport->Size; + MarkIniSettingsDirty(window); + } + else if (memcmp(&window->Viewport->Size, &window->Size, sizeof(window->Size)) != 0) + { + viewport_rect_changed = true; + window->Viewport->Size = window->Size; + } + window->Viewport->UpdateWorkRect(); + + // The viewport may have changed monitor since the global update in UpdateViewportsNewFrame() + // Either a SetNextWindowPos() call in the current frame or a SetWindowPos() call in the previous frame may have this effect. + if (viewport_rect_changed) + UpdateViewportPlatformMonitor(window->Viewport); + + // Update common viewport flags + const ImGuiViewportFlags viewport_flags_to_clear = ImGuiViewportFlags_TopMost | ImGuiViewportFlags_NoTaskBarIcon | ImGuiViewportFlags_NoDecoration | ImGuiViewportFlags_NoRendererClear; + ImGuiViewportFlags viewport_flags = window->Viewport->Flags & ~viewport_flags_to_clear; + ImGuiWindowFlags window_flags = window->Flags; + const bool is_modal = (window_flags & ImGuiWindowFlags_Modal) != 0; + const bool is_short_lived_floating_window = (window_flags & (ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) != 0; + if (window_flags & ImGuiWindowFlags_Tooltip) + viewport_flags |= ImGuiViewportFlags_TopMost; + if ((g.IO.ConfigViewportsNoTaskBarIcon || is_short_lived_floating_window) && !is_modal) + viewport_flags |= ImGuiViewportFlags_NoTaskBarIcon; + if (g.IO.ConfigViewportsNoDecoration || is_short_lived_floating_window) + viewport_flags |= ImGuiViewportFlags_NoDecoration; + + // Not correct to set modal as topmost because: + // - Because other popups can be stacked above a modal (e.g. combo box in a modal) + // - ImGuiViewportFlags_TopMost is currently handled different in backends: in Win32 it is "appear top most" whereas in GLFW and SDL it is "stay topmost" + //if (flags & ImGuiWindowFlags_Modal) + // viewport_flags |= ImGuiViewportFlags_TopMost; + + // For popups and menus that may be protruding out of their parent viewport, we enable _NoFocusOnClick so that clicking on them + // won't steal the OS focus away from their parent window (which may be reflected in OS the title bar decoration). + // Setting _NoFocusOnClick would technically prevent us from bringing back to front in case they are being covered by an OS window from a different app, + // but it shouldn't be much of a problem considering those are already popups that are closed when clicking elsewhere. + if (is_short_lived_floating_window && !is_modal) + viewport_flags |= ImGuiViewportFlags_NoFocusOnAppearing | ImGuiViewportFlags_NoFocusOnClick; + + // We can overwrite viewport flags using ImGuiWindowClass (advanced users) + if (window->WindowClass.ViewportFlagsOverrideSet) + viewport_flags |= window->WindowClass.ViewportFlagsOverrideSet; + if (window->WindowClass.ViewportFlagsOverrideClear) + viewport_flags &= ~window->WindowClass.ViewportFlagsOverrideClear; + + // We can also tell the backend that clearing the platform window won't be necessary, + // as our window background is filling the viewport and we have disabled BgAlpha. + // FIXME: Work on support for per-viewport transparency (#2766) + if (!(window_flags & ImGuiWindowFlags_NoBackground)) + viewport_flags |= ImGuiViewportFlags_NoRendererClear; + + window->Viewport->Flags = viewport_flags; + + // Update parent viewport ID + // (the !IsFallbackWindow test mimic the one done in WindowSelectViewport()) + if (window->WindowClass.ParentViewportId != (ImGuiID)-1) + window->Viewport->ParentViewportId = window->WindowClass.ParentViewportId; + else if ((window_flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && parent_window_in_stack && (!parent_window_in_stack->IsFallbackWindow || parent_window_in_stack->WasActive)) + window->Viewport->ParentViewportId = parent_window_in_stack->Viewport->ID; + else + window->Viewport->ParentViewportId = g.IO.ConfigViewportsNoDefaultParent ? 0 : IMGUI_VIEWPORT_DEFAULT_ID; +} + +// Called by user at the end of the main loop, after EndFrame() +// This will handle the creation/update of all OS windows via function defined in the ImGuiPlatformIO api. +void ImGui::UpdatePlatformWindows() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.FrameCountEnded == g.FrameCount && "Forgot to call Render() or EndFrame() before UpdatePlatformWindows()?"); + IM_ASSERT(g.FrameCountPlatformEnded < g.FrameCount); + g.FrameCountPlatformEnded = g.FrameCount; + if (!(g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable)) + return; + + // Create/resize/destroy platform windows to match each active viewport. + // Skip the main viewport (index 0), which is always fully handled by the application! + for (int i = 1; i < g.Viewports.Size; i++) + { + ImGuiViewportP* viewport = g.Viewports[i]; + + // Destroy platform window if the viewport hasn't been submitted or if it is hosting a hidden window + // (the implicit/fallback Debug##Default window will be registering its viewport then be disabled, causing a dummy DestroyPlatformWindow to be made each frame) + bool destroy_platform_window = false; + destroy_platform_window |= (viewport->LastFrameActive < g.FrameCount - 1); + destroy_platform_window |= (viewport->Window && !IsWindowActiveAndVisible(viewport->Window)); + if (destroy_platform_window) + { + DestroyPlatformWindow(viewport); + continue; + } + + // New windows that appears directly in a new viewport won't always have a size on their first frame + if (viewport->LastFrameActive < g.FrameCount || viewport->Size.x <= 0 || viewport->Size.y <= 0) + continue; + + // Create window + const bool is_new_platform_window = (viewport->PlatformWindowCreated == false); + if (is_new_platform_window) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Create Platform Window %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + g.PlatformIO.Platform_CreateWindow(viewport); + if (g.PlatformIO.Renderer_CreateWindow != NULL) + g.PlatformIO.Renderer_CreateWindow(viewport); + viewport->LastNameHash = 0; + viewport->LastPlatformPos = viewport->LastPlatformSize = ImVec2(FLT_MAX, FLT_MAX); // By clearing those we'll enforce a call to Platform_SetWindowPos/Size below, before Platform_ShowWindow (FIXME: Is that necessary?) + viewport->LastRendererSize = viewport->Size; // We don't need to call Renderer_SetWindowSize() as it is expected Renderer_CreateWindow() already did it. + viewport->PlatformWindowCreated = true; + } + + // Apply Position and Size (from ImGui to Platform/Renderer backends) + if ((viewport->LastPlatformPos.x != viewport->Pos.x || viewport->LastPlatformPos.y != viewport->Pos.y) && !viewport->PlatformRequestMove) + g.PlatformIO.Platform_SetWindowPos(viewport, viewport->Pos); + if ((viewport->LastPlatformSize.x != viewport->Size.x || viewport->LastPlatformSize.y != viewport->Size.y) && !viewport->PlatformRequestResize) + g.PlatformIO.Platform_SetWindowSize(viewport, viewport->Size); + if ((viewport->LastRendererSize.x != viewport->Size.x || viewport->LastRendererSize.y != viewport->Size.y) && g.PlatformIO.Renderer_SetWindowSize) + g.PlatformIO.Renderer_SetWindowSize(viewport, viewport->Size); + viewport->LastPlatformPos = viewport->Pos; + viewport->LastPlatformSize = viewport->LastRendererSize = viewport->Size; + + // Update title bar (if it changed) + if (ImGuiWindow* window_for_title = GetWindowForTitleDisplay(viewport->Window)) + { + const char* title_begin = window_for_title->Name; + char* title_end = (char*)(intptr_t)FindRenderedTextEnd(title_begin); + const ImGuiID title_hash = ImHashStr(title_begin, title_end - title_begin); + if (viewport->LastNameHash != title_hash) + { + char title_end_backup_c = *title_end; + *title_end = 0; // Cut existing buffer short instead of doing an alloc/free, no small gain. + g.PlatformIO.Platform_SetWindowTitle(viewport, title_begin); + *title_end = title_end_backup_c; + viewport->LastNameHash = title_hash; + } + } + + // Update alpha (if it changed) + if (viewport->LastAlpha != viewport->Alpha && g.PlatformIO.Platform_SetWindowAlpha) + g.PlatformIO.Platform_SetWindowAlpha(viewport, viewport->Alpha); + viewport->LastAlpha = viewport->Alpha; + + // Optional, general purpose call to allow the backend to perform general book-keeping even if things haven't changed. + if (g.PlatformIO.Platform_UpdateWindow) + g.PlatformIO.Platform_UpdateWindow(viewport); + + if (is_new_platform_window) + { + // On startup ensure new platform window don't steal focus (give it a few frames, as nested contents may lead to viewport being created a few frames late) + if (g.FrameCount < 3) + viewport->Flags |= ImGuiViewportFlags_NoFocusOnAppearing; + + // Show window + g.PlatformIO.Platform_ShowWindow(viewport); + + // Even without focus, we assume the window becomes front-most. + // This is useful for our platform z-order heuristic when io.MouseHoveredViewport is not available. + if (viewport->LastFrontMostStampCount != g.ViewportFrontMostStampCount) + viewport->LastFrontMostStampCount = ++g.ViewportFrontMostStampCount; + } + + // Clear request flags + viewport->ClearRequestFlags(); + } + + // Update our implicit z-order knowledge of platform windows, which is used when the backend cannot provide io.MouseHoveredViewport. + // When setting Platform_GetWindowFocus, it is expected that the platform backend can handle calls without crashing if it doesn't have data stored. + // FIXME-VIEWPORT: We should use this information to also set dear imgui-side focus, allowing us to handle os-level alt+tab. + if (g.PlatformIO.Platform_GetWindowFocus != NULL) + { + ImGuiViewportP* focused_viewport = NULL; + for (int n = 0; n < g.Viewports.Size && focused_viewport == NULL; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + if (viewport->PlatformWindowCreated) + if (g.PlatformIO.Platform_GetWindowFocus(viewport)) + focused_viewport = viewport; + } + + // Store a tag so we can infer z-order easily from all our windows + // We compare PlatformLastFocusedViewportId so newly created viewports with _NoFocusOnAppearing flag + // will keep the front most stamp instead of losing it back to their parent viewport. + if (focused_viewport && g.PlatformLastFocusedViewportId != focused_viewport->ID) + { + if (focused_viewport->LastFrontMostStampCount != g.ViewportFrontMostStampCount) + focused_viewport->LastFrontMostStampCount = ++g.ViewportFrontMostStampCount; + g.PlatformLastFocusedViewportId = focused_viewport->ID; + } + } +} + +// This is a default/basic function for performing the rendering/swap of multiple Platform Windows. +// Custom renderers may prefer to not call this function at all, and instead iterate the publicly exposed platform data and handle rendering/sync themselves. +// The Render/Swap functions stored in ImGuiPlatformIO are merely here to allow for this helper to exist, but you can do it yourself: +// +// ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); +// for (int i = 1; i < platform_io.Viewports.Size; i++) +// if ((platform_io.Viewports[i]->Flags & ImGuiViewportFlags_Minimized) == 0) +// MyRenderFunction(platform_io.Viewports[i], my_args); +// for (int i = 1; i < platform_io.Viewports.Size; i++) +// if ((platform_io.Viewports[i]->Flags & ImGuiViewportFlags_Minimized) == 0) +// MySwapBufferFunction(platform_io.Viewports[i], my_args); +// +void ImGui::RenderPlatformWindowsDefault(void* platform_render_arg, void* renderer_render_arg) +{ + // Skip the main viewport (index 0), which is always fully handled by the application! + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int i = 1; i < platform_io.Viewports.Size; i++) + { + ImGuiViewport* viewport = platform_io.Viewports[i]; + if (viewport->Flags & ImGuiViewportFlags_Minimized) + continue; + if (platform_io.Platform_RenderWindow) platform_io.Platform_RenderWindow(viewport, platform_render_arg); + if (platform_io.Renderer_RenderWindow) platform_io.Renderer_RenderWindow(viewport, renderer_render_arg); + } + for (int i = 1; i < platform_io.Viewports.Size; i++) + { + ImGuiViewport* viewport = platform_io.Viewports[i]; + if (viewport->Flags & ImGuiViewportFlags_Minimized) + continue; + if (platform_io.Platform_SwapBuffers) platform_io.Platform_SwapBuffers(viewport, platform_render_arg); + if (platform_io.Renderer_SwapBuffers) platform_io.Renderer_SwapBuffers(viewport, renderer_render_arg); + } +} + +static int ImGui::FindPlatformMonitorForPos(const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + for (int monitor_n = 0; monitor_n < g.PlatformIO.Monitors.Size; monitor_n++) + { + const ImGuiPlatformMonitor& monitor = g.PlatformIO.Monitors[monitor_n]; + if (ImRect(monitor.MainPos, monitor.MainPos + monitor.MainSize).Contains(pos)) + return monitor_n; + } + return -1; +} + +// Search for the monitor with the largest intersection area with the given rectangle +// We generally try to avoid searching loops but the monitor count should be very small here +// FIXME-OPT: We could test the last monitor used for that viewport first, and early +static int ImGui::FindPlatformMonitorForRect(const ImRect& rect) +{ + ImGuiContext& g = *GImGui; + + const int monitor_count = g.PlatformIO.Monitors.Size; + if (monitor_count <= 1) + return monitor_count - 1; + + // Use a minimum threshold of 1.0f so a zero-sized rect won't false positive, and will still find the correct monitor given its position. + // This is necessary for tooltips which always resize down to zero at first. + const float surface_threshold = ImMax(rect.GetWidth() * rect.GetHeight() * 0.5f, 1.0f); + int best_monitor_n = -1; + float best_monitor_surface = 0.001f; + + for (int monitor_n = 0; monitor_n < g.PlatformIO.Monitors.Size && best_monitor_surface < surface_threshold; monitor_n++) + { + const ImGuiPlatformMonitor& monitor = g.PlatformIO.Monitors[monitor_n]; + const ImRect monitor_rect = ImRect(monitor.MainPos, monitor.MainPos + monitor.MainSize); + if (monitor_rect.Contains(rect)) + return monitor_n; + ImRect overlapping_rect = rect; + overlapping_rect.ClipWithFull(monitor_rect); + float overlapping_surface = overlapping_rect.GetWidth() * overlapping_rect.GetHeight(); + if (overlapping_surface < best_monitor_surface) + continue; + best_monitor_surface = overlapping_surface; + best_monitor_n = monitor_n; + } + return best_monitor_n; +} + +// Update monitor from viewport rectangle (we'll use this info to clamp windows and save windows lost in a removed monitor) +static void ImGui::UpdateViewportPlatformMonitor(ImGuiViewportP* viewport) +{ + viewport->PlatformMonitor = (short)FindPlatformMonitorForRect(viewport->GetMainRect()); +} + +// Return value is always != NULL, but don't hold on it across frames. +const ImGuiPlatformMonitor* ImGui::GetViewportPlatformMonitor(ImGuiViewport* viewport_p) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)viewport_p; + int monitor_idx = viewport->PlatformMonitor; + if (monitor_idx >= 0 && monitor_idx < g.PlatformIO.Monitors.Size) + return &g.PlatformIO.Monitors[monitor_idx]; + return &g.FallbackMonitor; +} + +void ImGui::DestroyPlatformWindow(ImGuiViewportP* viewport) +{ + ImGuiContext& g = *GImGui; + if (viewport->PlatformWindowCreated) + { + if (g.PlatformIO.Renderer_DestroyWindow) + g.PlatformIO.Renderer_DestroyWindow(viewport); + if (g.PlatformIO.Platform_DestroyWindow) + g.PlatformIO.Platform_DestroyWindow(viewport); + IM_ASSERT(viewport->RendererUserData == NULL && viewport->PlatformUserData == NULL); + + // Don't clear PlatformWindowCreated for the main viewport, as we initially set that up to true in Initialize() + // The righter way may be to leave it to the backend to set this flag all-together, and made the flag public. + if (viewport->ID != IMGUI_VIEWPORT_DEFAULT_ID) + viewport->PlatformWindowCreated = false; + } + else + { + IM_ASSERT(viewport->RendererUserData == NULL && viewport->PlatformUserData == NULL && viewport->PlatformHandle == NULL); + } + viewport->RendererUserData = viewport->PlatformUserData = viewport->PlatformHandle = NULL; + viewport->ClearRequestFlags(); +} + +void ImGui::DestroyPlatformWindows() +{ + // We call the destroy window on every viewport (including the main viewport, index 0) to give a chance to the backend + // to clear any data they may have stored in e.g. PlatformUserData, RendererUserData. + // It is convenient for the platform backend code to store something in the main viewport, in order for e.g. the mouse handling + // code to operator a consistent manner. + // It is expected that the backend can handle calls to Renderer_DestroyWindow/Platform_DestroyWindow without + // crashing if it doesn't have data stored. + ImGuiContext& g = *GImGui; + for (int i = 0; i < g.Viewports.Size; i++) + DestroyPlatformWindow(g.Viewports[i]); +} + + +//----------------------------------------------------------------------------- +// [SECTION] DOCKING +//----------------------------------------------------------------------------- +// Docking: Internal Types +// Docking: Forward Declarations +// Docking: ImGuiDockContext +// Docking: ImGuiDockContext Docking/Undocking functions +// Docking: ImGuiDockNode +// Docking: ImGuiDockNode Tree manipulation functions +// Docking: Public Functions (SetWindowDock, DockSpace, DockSpaceOverViewport) +// Docking: Builder Functions +// Docking: Begin/End Support Functions (called from Begin/End) +// Docking: Settings +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Typical Docking call flow: (root level is generally public API): +//----------------------------------------------------------------------------- +// - NewFrame() new dear imgui frame +// | DockContextNewFrameUpdateUndocking() - process queued undocking requests +// | - DockContextProcessUndockWindow() - process one window undocking request +// | - DockContextProcessUndockNode() - process one whole node undocking request +// | DockContextNewFrameUpdateUndocking() - process queue docking requests, create floating dock nodes +// | - update g.HoveredDockNode - [debug] update node hovered by mouse +// | - DockContextProcessDock() - process one docking request +// | - DockNodeUpdate() +// | - DockNodeUpdateForRootNode() +// | - DockNodeUpdateFlagsAndCollapse() +// | - DockNodeFindInfo() +// | - destroy unused node or tab bar +// | - create dock node host window +// | - Begin() etc. +// | - DockNodeStartMouseMovingWindow() +// | - DockNodeTreeUpdatePosSize() +// | - DockNodeTreeUpdateSplitter() +// | - draw node background +// | - DockNodeUpdateTabBar() - create/update tab bar for a docking node +// | - DockNodeAddTabBar() +// | - DockNodeUpdateWindowMenu() +// | - DockNodeCalcTabBarLayout() +// | - BeginTabBarEx() +// | - TabItemEx() calls +// | - EndTabBar() +// | - BeginDockableDragDropTarget() +// | - DockNodeUpdate() - recurse into child nodes... +//----------------------------------------------------------------------------- +// - DockSpace() user submit a dockspace into a window +// | Begin(Child) - create a child window +// | DockNodeUpdate() - call main dock node update function +// | End(Child) +// | ItemSize() +//----------------------------------------------------------------------------- +// - Begin() +// | BeginDocked() +// | BeginDockableDragDropSource() +// | BeginDockableDragDropTarget() +// | - DockNodePreviewDockRender() +//----------------------------------------------------------------------------- +// - EndFrame() +// | DockContextEndFrame() +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Docking: Internal Types +//----------------------------------------------------------------------------- +// - ImGuiDockRequestType +// - ImGuiDockRequest +// - ImGuiDockPreviewData +// - ImGuiDockNodeSettings +// - ImGuiDockContext +//----------------------------------------------------------------------------- + +enum ImGuiDockRequestType +{ + ImGuiDockRequestType_None = 0, + ImGuiDockRequestType_Dock, + ImGuiDockRequestType_Undock, + ImGuiDockRequestType_Split // Split is the same as Dock but without a DockPayload +}; + +struct ImGuiDockRequest +{ + ImGuiDockRequestType Type; + ImGuiWindow* DockTargetWindow; // Destination/Target Window to dock into (may be a loose window or a DockNode, might be NULL in which case DockTargetNode cannot be NULL) + ImGuiDockNode* DockTargetNode; // Destination/Target Node to dock into + ImGuiWindow* DockPayload; // Source/Payload window to dock (may be a loose window or a DockNode), [Optional] + ImGuiDir DockSplitDir; + float DockSplitRatio; + bool DockSplitOuter; + ImGuiWindow* UndockTargetWindow; + ImGuiDockNode* UndockTargetNode; + + ImGuiDockRequest() + { + Type = ImGuiDockRequestType_None; + DockTargetWindow = DockPayload = UndockTargetWindow = NULL; + DockTargetNode = UndockTargetNode = NULL; + DockSplitDir = ImGuiDir_None; + DockSplitRatio = 0.5f; + DockSplitOuter = false; + } +}; + +struct ImGuiDockPreviewData +{ + ImGuiDockNode FutureNode; + bool IsDropAllowed; + bool IsCenterAvailable; + bool IsSidesAvailable; // Hold your breath, grammar freaks.. + bool IsSplitDirExplicit; // Set when hovered the drop rect (vs. implicit SplitDir==None when hovered the window) + ImGuiDockNode* SplitNode; + ImGuiDir SplitDir; + float SplitRatio; + ImRect DropRectsDraw[ImGuiDir_COUNT + 1]; // May be slightly different from hit-testing drop rects used in DockNodeCalcDropRects() + + ImGuiDockPreviewData() : FutureNode(0) { IsDropAllowed = IsCenterAvailable = IsSidesAvailable = IsSplitDirExplicit = false; SplitNode = NULL; SplitDir = ImGuiDir_None; SplitRatio = 0.f; for (int n = 0; n < IM_ARRAYSIZE(DropRectsDraw); n++) DropRectsDraw[n] = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); } +}; + +// Persistent Settings data, stored contiguously in SettingsNodes (sizeof() ~32 bytes) +struct ImGuiDockNodeSettings +{ + ImGuiID ID; + ImGuiID ParentNodeId; + ImGuiID ParentWindowId; + ImGuiID SelectedTabId; + signed char SplitAxis; + char Depth; + ImGuiDockNodeFlags Flags; // NB: We save individual flags one by one in ascii format (ImGuiDockNodeFlags_SavedFlagsMask_) + ImVec2ih Pos; + ImVec2ih Size; + ImVec2ih SizeRef; + ImGuiDockNodeSettings() { memset(this, 0, sizeof(*this)); SplitAxis = ImGuiAxis_None; } +}; + +//----------------------------------------------------------------------------- +// Docking: Forward Declarations +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // ImGuiDockContext + static ImGuiDockNode* DockContextAddNode(ImGuiContext* ctx, ImGuiID id); + static void DockContextRemoveNode(ImGuiContext* ctx, ImGuiDockNode* node, bool merge_sibling_into_parent_node); + static void DockContextQueueNotifyRemovedNode(ImGuiContext* ctx, ImGuiDockNode* node); + static void DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req); + static void DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref = true); + static void DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); + static void DockContextPruneUnusedSettingsNodes(ImGuiContext* ctx); + static ImGuiDockNode* DockContextBindNodeToWindow(ImGuiContext* ctx, ImGuiWindow* window); + static void DockContextBuildNodesFromSettings(ImGuiContext* ctx, ImGuiDockNodeSettings* node_settings_array, int node_settings_count); + static void DockContextBuildAddWindowsToNodes(ImGuiContext* ctx, ImGuiID root_id); // Use root_id==0 to add all + + // ImGuiDockNode + static void DockNodeAddWindow(ImGuiDockNode* node, ImGuiWindow* window, bool add_to_tab_bar); + static void DockNodeMoveWindows(ImGuiDockNode* dst_node, ImGuiDockNode* src_node); + static void DockNodeMoveChildNodes(ImGuiDockNode* dst_node, ImGuiDockNode* src_node); + static ImGuiWindow* DockNodeFindWindowByID(ImGuiDockNode* node, ImGuiID id); + static void DockNodeApplyPosSizeToWindows(ImGuiDockNode* node); + static void DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window, ImGuiID save_dock_id); + static void DockNodeHideHostWindow(ImGuiDockNode* node); + static void DockNodeUpdate(ImGuiDockNode* node); + static void DockNodeUpdateForRootNode(ImGuiDockNode* node); + static void DockNodeUpdateFlagsAndCollapse(ImGuiDockNode* node); + static void DockNodeUpdateHasCentralNodeChild(ImGuiDockNode* node); + static void DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_window); + static void DockNodeAddTabBar(ImGuiDockNode* node); + static void DockNodeRemoveTabBar(ImGuiDockNode* node); + static ImGuiID DockNodeUpdateWindowMenu(ImGuiDockNode* node, ImGuiTabBar* tab_bar); + static void DockNodeUpdateVisibleFlag(ImGuiDockNode* node); + static void DockNodeStartMouseMovingWindow(ImGuiDockNode* node, ImGuiWindow* window); + static bool DockNodeIsDropAllowed(ImGuiWindow* host_window, ImGuiWindow* payload_window); + static void DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDockPreviewData* preview_data, bool is_explicit_target, bool is_outer_docking); + static void DockNodePreviewDockRender(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, const ImGuiDockPreviewData* preview_data); + static void DockNodeCalcTabBarLayout(const ImGuiDockNode* node, ImRect* out_title_rect, ImRect* out_tab_bar_rect, ImVec2* out_window_menu_button_pos, ImVec2* out_close_button_pos); + static void DockNodeCalcSplitRects(ImVec2& pos_old, ImVec2& size_old, ImVec2& pos_new, ImVec2& size_new, ImGuiDir dir, ImVec2 size_new_desired); + static bool DockNodeCalcDropRectsAndTestMousePos(const ImRect& parent, ImGuiDir dir, ImRect& out_draw, bool outer_docking, ImVec2* test_mouse_pos); + static const char* DockNodeGetHostWindowTitle(ImGuiDockNode* node, char* buf, int buf_size) { ImFormatString(buf, buf_size, "##DockNode_%02X", node->ID); return buf; } + static int DockNodeGetTabOrder(ImGuiWindow* window); + + // ImGuiDockNode tree manipulations + static void DockNodeTreeSplit(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiAxis split_axis, int split_first_child, float split_ratio, ImGuiDockNode* new_node); + static void DockNodeTreeMerge(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiDockNode* merge_lead_child); + static void DockNodeTreeUpdatePosSize(ImGuiDockNode* node, ImVec2 pos, ImVec2 size, ImGuiDockNode* only_write_to_single_node = NULL); + static void DockNodeTreeUpdateSplitter(ImGuiDockNode* node); + static ImGuiDockNode* DockNodeTreeFindVisibleNodeByPos(ImGuiDockNode* node, ImVec2 pos); + static ImGuiDockNode* DockNodeTreeFindFallbackLeafNode(ImGuiDockNode* node); + + // Settings + static void DockSettingsRenameNodeReferences(ImGuiID old_node_id, ImGuiID new_node_id); + static void DockSettingsRemoveNodeReferences(ImGuiID* node_ids, int node_ids_count); + static ImGuiDockNodeSettings* DockSettingsFindNodeSettings(ImGuiContext* ctx, ImGuiID node_id); + static void DockSettingsHandler_ClearAll(ImGuiContext*, ImGuiSettingsHandler*); + static void DockSettingsHandler_ApplyAll(ImGuiContext*, ImGuiSettingsHandler*); + static void* DockSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name); + static void DockSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line); + static void DockSettingsHandler_WriteAll(ImGuiContext* imgui_ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf); +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockContext +//----------------------------------------------------------------------------- +// The lifetime model is different from the one of regular windows: we always create a ImGuiDockNode for each ImGuiDockNodeSettings, +// or we always hold the entire docking node tree. Nodes are frequently hidden, e.g. if the window(s) or child nodes they host are not active. +// At boot time only, we run a simple GC to remove nodes that have no references. +// Because dock node settings (which are small, contiguous structures) are always mirrored by their corresponding dock nodes (more complete structures), +// we can also very easily recreate the nodes from scratch given the settings data (this is what DockContextRebuild() does). +// This is convenient as docking reconfiguration can be implemented by mostly poking at the simpler settings data. +//----------------------------------------------------------------------------- +// - DockContextInitialize() +// - DockContextShutdown() +// - DockContextClearNodes() +// - DockContextRebuildNodes() +// - DockContextNewFrameUpdateUndocking() +// - DockContextNewFrameUpdateDocking() +// - DockContextEndFrame() +// - DockContextFindNodeByID() +// - DockContextBindNodeToWindow() +// - DockContextGenNodeID() +// - DockContextAddNode() +// - DockContextRemoveNode() +// - ImGuiDockContextPruneNodeData +// - DockContextPruneUnusedSettingsNodes() +// - DockContextBuildNodesFromSettings() +// - DockContextBuildAddWindowsToNodes() +//----------------------------------------------------------------------------- + +void ImGui::DockContextInitialize(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + + // Add .ini handle for persistent docking data + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Docking"; + ini_handler.TypeHash = ImHashStr("Docking"); + ini_handler.ClearAllFn = DockSettingsHandler_ClearAll; + ini_handler.ReadInitFn = DockSettingsHandler_ClearAll; // Also clear on read + ini_handler.ReadOpenFn = DockSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = DockSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = DockSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = DockSettingsHandler_WriteAll; + g.SettingsHandlers.push_back(ini_handler); +} + +void ImGui::DockContextShutdown(ImGuiContext* ctx) +{ + ImGuiDockContext* dc = &ctx->DockContext; + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + IM_DELETE(node); +} + +void ImGui::DockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs) +{ + IM_UNUSED(ctx); + IM_ASSERT(ctx == GImGui); + DockBuilderRemoveNodeDockedWindows(root_id, clear_settings_refs); + DockBuilderRemoveNodeChildNodes(root_id); +} + +// [DEBUG] This function also acts as a defacto test to make sure we can rebuild from scratch without a glitch +// (Different from DockSettingsHandler_ClearAll() + DockSettingsHandler_ApplyAll() because this reuses current settings!) +void ImGui::DockContextRebuildNodes(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextRebuildNodes\n"); + SaveIniSettingsToMemory(); + ImGuiID root_id = 0; // Rebuild all + DockContextClearNodes(ctx, root_id, false); + DockContextBuildNodesFromSettings(ctx, dc->NodesSettings.Data, dc->NodesSettings.Size); + DockContextBuildAddWindowsToNodes(ctx, root_id); +} + +// Docking context update function, called by NewFrame() +void ImGui::DockContextNewFrameUpdateUndocking(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + { + if (dc->Nodes.Data.Size > 0 || dc->Requests.Size > 0) + DockContextClearNodes(ctx, 0, true); + return; + } + + // Setting NoSplit at runtime merges all nodes + if (g.IO.ConfigDockingNoSplit) + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->IsRootNode() && node->IsSplitNode()) + { + DockBuilderRemoveNodeChildNodes(node->ID); + //dc->WantFullRebuild = true; + } + + // Process full rebuild +#if 0 + if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_C))) + dc->WantFullRebuild = true; +#endif + if (dc->WantFullRebuild) + { + DockContextRebuildNodes(ctx); + dc->WantFullRebuild = false; + } + + // Process Undocking requests (we need to process them _before_ the UpdateMouseMovingWindowNewFrame call in NewFrame) + for (int n = 0; n < dc->Requests.Size; n++) + { + ImGuiDockRequest* req = &dc->Requests[n]; + if (req->Type == ImGuiDockRequestType_Undock && req->UndockTargetWindow) + DockContextProcessUndockWindow(ctx, req->UndockTargetWindow); + else if (req->Type == ImGuiDockRequestType_Undock && req->UndockTargetNode) + DockContextProcessUndockNode(ctx, req->UndockTargetNode); + } +} + +// Docking context update function, called by NewFrame() +void ImGui::DockContextNewFrameUpdateDocking(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + return; + + // [DEBUG] Store hovered dock node. + // We could in theory use DockNodeTreeFindVisibleNodeByPos() on the root host dock node, but using ->DockNode is a good shortcut. + // Note this is mostly a debug thing and isn't actually used for docking target, because docking involve more detailed filtering. + g.DebugHoveredDockNode = NULL; + if (ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow) + { + if (hovered_window->DockNodeAsHost) + g.DebugHoveredDockNode = DockNodeTreeFindVisibleNodeByPos(hovered_window->DockNodeAsHost, g.IO.MousePos); + else if (hovered_window->RootWindow->DockNode) + g.DebugHoveredDockNode = hovered_window->RootWindow->DockNode; + } + + // Process Docking requests + for (int n = 0; n < dc->Requests.Size; n++) + if (dc->Requests[n].Type == ImGuiDockRequestType_Dock) + DockContextProcessDock(ctx, &dc->Requests[n]); + dc->Requests.resize(0); + + // Create windows for each automatic docking nodes + // We can have NULL pointers when we delete nodes, but because ID are recycled this should amortize nicely (and our node count will never be very high) + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->IsFloatingNode()) + DockNodeUpdate(node); +} + +void ImGui::DockContextEndFrame(ImGuiContext* ctx) +{ + // Draw backgrounds of node missing their window + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &g.DockContext; + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->LastFrameActive == g.FrameCount && node->IsVisible && node->HostWindow && node->IsLeafNode() && !node->IsBgDrawnThisFrame) + { + ImRect bg_rect(node->Pos + ImVec2(0.0f, GetFrameHeight()), node->Pos + node->Size); + ImDrawFlags bg_rounding_flags = CalcRoundingFlagsForRectInRect(bg_rect, node->HostWindow->Rect(), DOCKING_SPLITTER_SIZE); + node->HostWindow->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + node->HostWindow->DrawList->AddRectFilled(bg_rect.Min, bg_rect.Max, node->LastBgColor, node->HostWindow->WindowRounding, bg_rounding_flags); + } +} + +ImGuiDockNode* ImGui::DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id) +{ + return (ImGuiDockNode*)ctx->DockContext.Nodes.GetVoidPtr(id); +} + +ImGuiID ImGui::DockContextGenNodeID(ImGuiContext* ctx) +{ + // Generate an ID for new node (the exact ID value doesn't matter as long as it is not already used) + // FIXME-OPT FIXME-DOCK: This is suboptimal, even if the node count is small enough not to be a worry.0 + // We should poke in ctx->Nodes to find a suitable ID faster. Even more so trivial that ctx->Nodes lookup is already sorted. + ImGuiID id = 0x0001; + while (DockContextFindNodeByID(ctx, id) != NULL) + id++; + return id; +} + +static ImGuiDockNode* ImGui::DockContextAddNode(ImGuiContext* ctx, ImGuiID id) +{ + // Generate an ID for the new node (the exact ID value doesn't matter as long as it is not already used) and add the first window. + ImGuiContext& g = *ctx; + if (id == 0) + id = DockContextGenNodeID(ctx); + else + IM_ASSERT(DockContextFindNodeByID(ctx, id) == NULL); + + // We don't set node->LastFrameAlive on construction. Nodes are always created at all time to reflect .ini settings! + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextAddNode 0x%08X\n", id); + ImGuiDockNode* node = IM_NEW(ImGuiDockNode)(id); + ctx->DockContext.Nodes.SetVoidPtr(node->ID, node); + return node; +} + +static void ImGui::DockContextRemoveNode(ImGuiContext* ctx, ImGuiDockNode* node, bool merge_sibling_into_parent_node) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextRemoveNode 0x%08X\n", node->ID); + IM_ASSERT(DockContextFindNodeByID(ctx, node->ID) == node); + IM_ASSERT(node->ChildNodes[0] == NULL && node->ChildNodes[1] == NULL); + IM_ASSERT(node->Windows.Size == 0); + + if (node->HostWindow) + node->HostWindow->DockNodeAsHost = NULL; + + ImGuiDockNode* parent_node = node->ParentNode; + const bool merge = (merge_sibling_into_parent_node && parent_node != NULL); + if (merge) + { + IM_ASSERT(parent_node->ChildNodes[0] == node || parent_node->ChildNodes[1] == node); + ImGuiDockNode* sibling_node = (parent_node->ChildNodes[0] == node ? parent_node->ChildNodes[1] : parent_node->ChildNodes[0]); + DockNodeTreeMerge(&g, parent_node, sibling_node); + } + else + { + for (int n = 0; parent_node && n < IM_ARRAYSIZE(parent_node->ChildNodes); n++) + if (parent_node->ChildNodes[n] == node) + node->ParentNode->ChildNodes[n] = NULL; + dc->Nodes.SetVoidPtr(node->ID, NULL); + IM_DELETE(node); + } +} + +static int IMGUI_CDECL DockNodeComparerDepthMostFirst(const void* lhs, const void* rhs) +{ + const ImGuiDockNode* a = *(const ImGuiDockNode* const*)lhs; + const ImGuiDockNode* b = *(const ImGuiDockNode* const*)rhs; + return ImGui::DockNodeGetDepth(b) - ImGui::DockNodeGetDepth(a); +} + +// Pre C++0x doesn't allow us to use a function-local type (without linkage) as template parameter, so we moved this here. +struct ImGuiDockContextPruneNodeData +{ + int CountWindows, CountChildWindows, CountChildNodes; + ImGuiID RootId; + ImGuiDockContextPruneNodeData() { CountWindows = CountChildWindows = CountChildNodes = 0; RootId = 0; } +}; + +// Garbage collect unused nodes (run once at init time) +static void ImGui::DockContextPruneUnusedSettingsNodes(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + IM_ASSERT(g.Windows.Size == 0); + + ImPool pool; + pool.Reserve(dc->NodesSettings.Size); + + // Count child nodes and compute RootID + for (int settings_n = 0; settings_n < dc->NodesSettings.Size; settings_n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n]; + ImGuiDockContextPruneNodeData* parent_data = settings->ParentNodeId ? pool.GetByKey(settings->ParentNodeId) : 0; + pool.GetOrAddByKey(settings->ID)->RootId = parent_data ? parent_data->RootId : settings->ID; + if (settings->ParentNodeId) + pool.GetOrAddByKey(settings->ParentNodeId)->CountChildNodes++; + } + + // Count reference to dock ids from dockspaces + // We track the 'auto-DockNode <- manual-Window <- manual-DockSpace' in order to avoid 'auto-DockNode' being ditched by DockContextPruneUnusedSettingsNodes() + for (int settings_n = 0; settings_n < dc->NodesSettings.Size; settings_n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n]; + if (settings->ParentWindowId != 0) + if (ImGuiWindowSettings* window_settings = FindWindowSettings(settings->ParentWindowId)) + if (window_settings->DockId) + if (ImGuiDockContextPruneNodeData* data = pool.GetByKey(window_settings->DockId)) + data->CountChildNodes++; + } + + // Count reference to dock ids from window settings + // We guard against the possibility of an invalid .ini file (RootID may point to a missing node) + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (ImGuiID dock_id = settings->DockId) + if (ImGuiDockContextPruneNodeData* data = pool.GetByKey(dock_id)) + { + data->CountWindows++; + if (ImGuiDockContextPruneNodeData* data_root = (data->RootId == dock_id) ? data : pool.GetByKey(data->RootId)) + data_root->CountChildWindows++; + } + + // Prune + for (int settings_n = 0; settings_n < dc->NodesSettings.Size; settings_n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n]; + ImGuiDockContextPruneNodeData* data = pool.GetByKey(settings->ID); + if (data->CountWindows > 1) + continue; + ImGuiDockContextPruneNodeData* data_root = (data->RootId == settings->ID) ? data : pool.GetByKey(data->RootId); + + bool remove = false; + remove |= (data->CountWindows == 1 && settings->ParentNodeId == 0 && data->CountChildNodes == 0 && !(settings->Flags & ImGuiDockNodeFlags_CentralNode)); // Floating root node with only 1 window + remove |= (data->CountWindows == 0 && settings->ParentNodeId == 0 && data->CountChildNodes == 0); // Leaf nodes with 0 window + remove |= (data_root->CountChildWindows == 0); + if (remove) + { + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextPruneUnusedSettingsNodes: Prune 0x%08X\n", settings->ID); + DockSettingsRemoveNodeReferences(&settings->ID, 1); + settings->ID = 0; + } + } +} + +static void ImGui::DockContextBuildNodesFromSettings(ImGuiContext* ctx, ImGuiDockNodeSettings* node_settings_array, int node_settings_count) +{ + // Build nodes + for (int node_n = 0; node_n < node_settings_count; node_n++) + { + ImGuiDockNodeSettings* settings = &node_settings_array[node_n]; + if (settings->ID == 0) + continue; + ImGuiDockNode* node = DockContextAddNode(ctx, settings->ID); + node->ParentNode = settings->ParentNodeId ? DockContextFindNodeByID(ctx, settings->ParentNodeId) : NULL; + node->Pos = ImVec2(settings->Pos.x, settings->Pos.y); + node->Size = ImVec2(settings->Size.x, settings->Size.y); + node->SizeRef = ImVec2(settings->SizeRef.x, settings->SizeRef.y); + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_DockNode; + if (node->ParentNode && node->ParentNode->ChildNodes[0] == NULL) + node->ParentNode->ChildNodes[0] = node; + else if (node->ParentNode && node->ParentNode->ChildNodes[1] == NULL) + node->ParentNode->ChildNodes[1] = node; + node->SelectedTabId = settings->SelectedTabId; + node->SplitAxis = (ImGuiAxis)settings->SplitAxis; + node->SetLocalFlags(settings->Flags & ImGuiDockNodeFlags_SavedFlagsMask_); + + // Bind host window immediately if it already exist (in case of a rebuild) + // This is useful as the RootWindowForTitleBarHighlight links necessary to highlight the currently focused node requires node->HostWindow to be set. + char host_window_title[20]; + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + node->HostWindow = FindWindowByName(DockNodeGetHostWindowTitle(root_node, host_window_title, IM_ARRAYSIZE(host_window_title))); + } +} + +void ImGui::DockContextBuildAddWindowsToNodes(ImGuiContext* ctx, ImGuiID root_id) +{ + // Rebind all windows to nodes (they can also lazily rebind but we'll have a visible glitch during the first frame) + ImGuiContext& g = *ctx; + for (int n = 0; n < g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + if (window->DockId == 0 || window->LastFrameActive < g.FrameCount - 1) + continue; + if (window->DockNode != NULL) + continue; + + ImGuiDockNode* node = DockContextFindNodeByID(ctx, window->DockId); + IM_ASSERT(node != NULL); // This should have been called after DockContextBuildNodesFromSettings() + if (root_id == 0 || DockNodeGetRootNode(node)->ID == root_id) + DockNodeAddWindow(node, window, true); + } +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockContext Docking/Undocking functions +//----------------------------------------------------------------------------- +// - DockContextQueueDock() +// - DockContextQueueUndockWindow() +// - DockContextQueueUndockNode() +// - DockContextQueueNotifyRemovedNode() +// - DockContextProcessDock() +// - DockContextProcessUndockWindow() +// - DockContextProcessUndockNode() +// - DockContextCalcDropPosForDocking() +//----------------------------------------------------------------------------- + +void ImGui::DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer) +{ + IM_ASSERT(target != payload); + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Dock; + req.DockTargetWindow = target; + req.DockTargetNode = target_node; + req.DockPayload = payload; + req.DockSplitDir = split_dir; + req.DockSplitRatio = split_ratio; + req.DockSplitOuter = split_outer; + ctx->DockContext.Requests.push_back(req); +} + +void ImGui::DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window) +{ + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Undock; + req.UndockTargetWindow = window; + ctx->DockContext.Requests.push_back(req); +} + +void ImGui::DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) +{ + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Undock; + req.UndockTargetNode = node; + ctx->DockContext.Requests.push_back(req); +} + +void ImGui::DockContextQueueNotifyRemovedNode(ImGuiContext* ctx, ImGuiDockNode* node) +{ + ImGuiDockContext* dc = &ctx->DockContext; + for (int n = 0; n < dc->Requests.Size; n++) + if (dc->Requests[n].DockTargetNode == node) + dc->Requests[n].Type = ImGuiDockRequestType_None; +} + +void ImGui::DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req) +{ + IM_ASSERT((req->Type == ImGuiDockRequestType_Dock && req->DockPayload != NULL) || (req->Type == ImGuiDockRequestType_Split && req->DockPayload == NULL)); + IM_ASSERT(req->DockTargetWindow != NULL || req->DockTargetNode != NULL); + + ImGuiContext& g = *ctx; + IM_UNUSED(g); + + ImGuiWindow* payload_window = req->DockPayload; // Optional + ImGuiWindow* target_window = req->DockTargetWindow; + ImGuiDockNode* node = req->DockTargetNode; + if (payload_window) + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessDock node 0x%08X target '%s' dock window '%s', split_dir %d\n", node ? node->ID : 0, target_window ? target_window->Name : "NULL", payload_window->Name, req->DockSplitDir); + else + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessDock node 0x%08X, split_dir %d\n", node ? node->ID : 0, req->DockSplitDir); + + // Decide which Tab will be selected at the end of the operation + ImGuiID next_selected_id = 0; + ImGuiDockNode* payload_node = NULL; + if (payload_window) + { + payload_node = payload_window->DockNodeAsHost; + payload_window->DockNodeAsHost = NULL; // Important to clear this as the node will have its life as a child which might be merged/deleted later. + if (payload_node && payload_node->IsLeafNode()) + next_selected_id = payload_node->TabBar->NextSelectedTabId ? payload_node->TabBar->NextSelectedTabId : payload_node->TabBar->SelectedTabId; + if (payload_node == NULL) + next_selected_id = payload_window->TabId; + } + + // FIXME-DOCK: When we are trying to dock an existing single-window node into a loose window, transfer Node ID as well + // When processing an interactive split, usually LastFrameAlive will be < g.FrameCount. But DockBuilder operations can make it ==. + if (node) + IM_ASSERT(node->LastFrameAlive <= g.FrameCount); + if (node && target_window && node == target_window->DockNodeAsHost) + IM_ASSERT(node->Windows.Size > 0 || node->IsSplitNode() || node->IsCentralNode()); + + // Create new node and add existing window to it + if (node == NULL) + { + node = DockContextAddNode(ctx, 0); + node->Pos = target_window->Pos; + node->Size = target_window->Size; + if (target_window->DockNodeAsHost == NULL) + { + DockNodeAddWindow(node, target_window, true); + node->TabBar->Tabs[0].Flags &= ~ImGuiTabItemFlags_Unsorted; + target_window->DockIsActive = true; + } + } + + ImGuiDir split_dir = req->DockSplitDir; + if (split_dir != ImGuiDir_None) + { + // Split into two, one side will be our payload node unless we are dropping a loose window + const ImGuiAxis split_axis = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + const int split_inheritor_child_idx = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 1 : 0; // Current contents will be moved to the opposite side + const float split_ratio = req->DockSplitRatio; + DockNodeTreeSplit(ctx, node, split_axis, split_inheritor_child_idx, split_ratio, payload_node); // payload_node may be NULL here! + ImGuiDockNode* new_node = node->ChildNodes[split_inheritor_child_idx ^ 1]; + new_node->HostWindow = node->HostWindow; + node = new_node; + } + node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_HiddenTabBar); + + if (node != payload_node) + { + // Create tab bar before we call DockNodeMoveWindows (which would attempt to move the old tab-bar, which would lead us to payload tabs wrongly appearing before target tabs!) + if (node->Windows.Size > 0 && node->TabBar == NULL) + { + DockNodeAddTabBar(node); + for (int n = 0; n < node->Windows.Size; n++) + TabBarAddTab(node->TabBar, ImGuiTabItemFlags_None, node->Windows[n]); + } + + if (payload_node != NULL) + { + // Transfer full payload node (with 1+ child windows or child nodes) + if (payload_node->IsSplitNode()) + { + if (node->Windows.Size > 0) + { + // We can dock a split payload into a node that already has windows _only_ if our payload is a node tree with a single visible node. + // In this situation, we move the windows of the target node into the currently visible node of the payload. + // This allows us to preserve some of the underlying dock tree settings nicely. + IM_ASSERT(payload_node->OnlyNodeWithWindows != NULL); // The docking should have been blocked by DockNodePreviewDockSetup() early on and never submitted. + ImGuiDockNode* visible_node = payload_node->OnlyNodeWithWindows; + if (visible_node->TabBar) + IM_ASSERT(visible_node->TabBar->Tabs.Size > 0); + DockNodeMoveWindows(node, visible_node); + DockNodeMoveWindows(visible_node, node); + DockSettingsRenameNodeReferences(node->ID, visible_node->ID); + } + if (node->IsCentralNode()) + { + // Central node property needs to be moved to a leaf node, pick the last focused one. + // FIXME-DOCK: If we had to transfer other flags here, what would the policy be? + ImGuiDockNode* last_focused_node = DockContextFindNodeByID(ctx, payload_node->LastFocusedNodeId); + IM_ASSERT(last_focused_node != NULL); + ImGuiDockNode* last_focused_root_node = DockNodeGetRootNode(last_focused_node); + IM_ASSERT(last_focused_root_node == DockNodeGetRootNode(payload_node)); + last_focused_node->SetLocalFlags(last_focused_node->LocalFlags | ImGuiDockNodeFlags_CentralNode); + node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_CentralNode); + last_focused_root_node->CentralNode = last_focused_node; + } + + IM_ASSERT(node->Windows.Size == 0); + DockNodeMoveChildNodes(node, payload_node); + } + else + { + const ImGuiID payload_dock_id = payload_node->ID; + DockNodeMoveWindows(node, payload_node); + DockSettingsRenameNodeReferences(payload_dock_id, node->ID); + } + DockContextRemoveNode(ctx, payload_node, true); + } + else if (payload_window) + { + // Transfer single window + const ImGuiID payload_dock_id = payload_window->DockId; + node->VisibleWindow = payload_window; + DockNodeAddWindow(node, payload_window, true); + if (payload_dock_id != 0) + DockSettingsRenameNodeReferences(payload_dock_id, node->ID); + } + } + else + { + // When docking a floating single window node we want to reevaluate auto-hiding of the tab bar + node->WantHiddenTabBarUpdate = true; + } + + // Update selection immediately + if (ImGuiTabBar* tab_bar = node->TabBar) + tab_bar->NextSelectedTabId = next_selected_id; + MarkIniSettingsDirty(); +} + +// Problem: +// Undocking a large (~full screen) window would leave it so large that the bottom right sizing corner would more +// than likely be off the screen and the window would be hard to resize to fit on screen. This can be particularly problematic +// with 'ConfigWindowsMoveFromTitleBarOnly=true' and/or with 'ConfigWindowsResizeFromEdges=false' as well (the later can be +// due to missing ImGuiBackendFlags_HasMouseCursors backend flag). +// Solution: +// When undocking a window we currently force its maximum size to 90% of the host viewport or monitor. +// Reevaluate this when we implement preserving docked/undocked size ("docking_wip/undocked_size" branch). +static ImVec2 FixLargeWindowsWhenUndocking(const ImVec2& size, ImGuiViewport* ref_viewport) +{ + if (ref_viewport == NULL) + return size; + + ImGuiContext& g = *GImGui; + ImVec2 max_size = ImFloor(ref_viewport->WorkSize * 0.90f); + if (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) + { + const ImGuiPlatformMonitor* monitor = ImGui::GetViewportPlatformMonitor(ref_viewport); + max_size = ImFloor(monitor->WorkSize * 0.90f); + } + return ImMin(size, max_size); +} + +void ImGui::DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref) +{ + ImGuiContext& g = *ctx; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessUndockWindow window '%s', clear_persistent_docking_ref = %d\n", window->Name, clear_persistent_docking_ref); + if (window->DockNode) + DockNodeRemoveWindow(window->DockNode, window, clear_persistent_docking_ref ? 0 : window->DockId); + else + window->DockId = 0; + window->Collapsed = false; + window->DockIsActive = false; + window->DockNodeIsVisible = window->DockTabIsVisible = false; + window->Size = window->SizeFull = FixLargeWindowsWhenUndocking(window->SizeFull, window->Viewport); + + MarkIniSettingsDirty(); +} + +void ImGui::DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) +{ + ImGuiContext& g = *ctx; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessUndockNode node %08X\n", node->ID); + IM_ASSERT(node->IsLeafNode()); + IM_ASSERT(node->Windows.Size >= 1); + + if (node->IsRootNode() || node->IsCentralNode()) + { + // In the case of a root node or central node, the node will have to stay in place. Create a new node to receive the payload. + ImGuiDockNode* new_node = DockContextAddNode(ctx, 0); + new_node->Pos = node->Pos; + new_node->Size = node->Size; + new_node->SizeRef = node->SizeRef; + DockNodeMoveWindows(new_node, node); + DockSettingsRenameNodeReferences(node->ID, new_node->ID); + node = new_node; + } + else + { + // Otherwise extract our node and merge our sibling back into the parent node. + IM_ASSERT(node->ParentNode->ChildNodes[0] == node || node->ParentNode->ChildNodes[1] == node); + int index_in_parent = (node->ParentNode->ChildNodes[0] == node) ? 0 : 1; + node->ParentNode->ChildNodes[index_in_parent] = NULL; + DockNodeTreeMerge(ctx, node->ParentNode, node->ParentNode->ChildNodes[index_in_parent ^ 1]); + node->ParentNode->AuthorityForViewport = ImGuiDataAuthority_Window; // The node that stays in place keeps the viewport, so our newly dragged out node will create a new viewport + node->ParentNode = NULL; + } + for (int n = 0; n < node->Windows.Size; n++) + { + ImGuiWindow* window = node->Windows[n]; + window->Flags &= ~ImGuiWindowFlags_ChildWindow; + if (window->ParentWindow) + window->ParentWindow->DC.ChildWindows.find_erase(window); + UpdateWindowParentAndRootLinks(window, window->Flags, NULL); + } + node->AuthorityForPos = node->AuthorityForSize = ImGuiDataAuthority_DockNode; + node->Size = FixLargeWindowsWhenUndocking(node->Size, node->Windows[0]->Viewport); + node->WantMouseMove = true; + MarkIniSettingsDirty(); +} + +// This is mostly used for automation. +bool ImGui::DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos) +{ + // In DockNodePreviewDockSetup() for a root central node instead of showing both "inner" and "outer" drop rects + // (which would be functionally identical) we only show the outer one. Reflect this here. + if (target_node && target_node->ParentNode == NULL && target_node->IsCentralNode() && split_dir != ImGuiDir_None) + split_outer = true; + ImGuiDockPreviewData split_data; + DockNodePreviewDockSetup(target, target_node, payload_window, payload_node, &split_data, false, split_outer); + if (split_data.DropRectsDraw[split_dir+1].IsInverted()) + return false; + *out_pos = split_data.DropRectsDraw[split_dir+1].GetCenter(); + return true; +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockNode +//----------------------------------------------------------------------------- +// - DockNodeGetTabOrder() +// - DockNodeAddWindow() +// - DockNodeRemoveWindow() +// - DockNodeMoveChildNodes() +// - DockNodeMoveWindows() +// - DockNodeApplyPosSizeToWindows() +// - DockNodeHideHostWindow() +// - ImGuiDockNodeFindInfoResults +// - DockNodeFindInfo() +// - DockNodeFindWindowByID() +// - DockNodeUpdateFlagsAndCollapse() +// - DockNodeUpdateHasCentralNodeFlag() +// - DockNodeUpdateVisibleFlag() +// - DockNodeStartMouseMovingWindow() +// - DockNodeUpdate() +// - DockNodeUpdateWindowMenu() +// - DockNodeBeginAmendTabBar() +// - DockNodeEndAmendTabBar() +// - DockNodeUpdateTabBar() +// - DockNodeAddTabBar() +// - DockNodeRemoveTabBar() +// - DockNodeIsDropAllowedOne() +// - DockNodeIsDropAllowed() +// - DockNodeCalcTabBarLayout() +// - DockNodeCalcSplitRects() +// - DockNodeCalcDropRectsAndTestMousePos() +// - DockNodePreviewDockSetup() +// - DockNodePreviewDockRender() +//----------------------------------------------------------------------------- + +ImGuiDockNode::ImGuiDockNode(ImGuiID id) +{ + ID = id; + SharedFlags = LocalFlags = LocalFlagsInWindows = MergedFlags = ImGuiDockNodeFlags_None; + ParentNode = ChildNodes[0] = ChildNodes[1] = NULL; + TabBar = NULL; + SplitAxis = ImGuiAxis_None; + + State = ImGuiDockNodeState_Unknown; + LastBgColor = IM_COL32_WHITE; + HostWindow = VisibleWindow = NULL; + CentralNode = OnlyNodeWithWindows = NULL; + CountNodeWithWindows = 0; + LastFrameAlive = LastFrameActive = LastFrameFocused = -1; + LastFocusedNodeId = 0; + SelectedTabId = 0; + WantCloseTabId = 0; + AuthorityForPos = AuthorityForSize = ImGuiDataAuthority_DockNode; + AuthorityForViewport = ImGuiDataAuthority_Auto; + IsVisible = true; + IsFocused = HasCloseButton = HasWindowMenuButton = HasCentralNodeChild = false; + IsBgDrawnThisFrame = false; + WantCloseAll = WantLockSizeOnce = WantMouseMove = WantHiddenTabBarUpdate = WantHiddenTabBarToggle = false; +} + +ImGuiDockNode::~ImGuiDockNode() +{ + IM_DELETE(TabBar); + TabBar = NULL; + ChildNodes[0] = ChildNodes[1] = NULL; +} + +int ImGui::DockNodeGetTabOrder(ImGuiWindow* window) +{ + ImGuiTabBar* tab_bar = window->DockNode->TabBar; + if (tab_bar == NULL) + return -1; + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, window->TabId); + return tab ? tab_bar->GetTabOrder(tab) : -1; +} + +static void DockNodeHideWindowDuringHostWindowCreation(ImGuiWindow* window) +{ + window->Hidden = true; + window->HiddenFramesCanSkipItems = window->Active ? 1 : 2; +} + +static void ImGui::DockNodeAddWindow(ImGuiDockNode* node, ImGuiWindow* window, bool add_to_tab_bar) +{ + ImGuiContext& g = *GImGui; (void)g; + if (window->DockNode) + { + // Can overwrite an existing window->DockNode (e.g. pointing to a disabled DockSpace node) + IM_ASSERT(window->DockNode->ID != node->ID); + DockNodeRemoveWindow(window->DockNode, window, 0); + } + IM_ASSERT(window->DockNode == NULL || window->DockNodeAsHost == NULL); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeAddWindow node 0x%08X window '%s'\n", node->ID, window->Name); + + // If more than 2 windows appeared on the same frame leading to the creation of a new hosting window, + // we'll hide windows until the host window is ready. Hide the 1st window after its been output (so it is not visible for one frame). + // We will call DockNodeHideWindowDuringHostWindowCreation() on ourselves in Begin() + if (node->HostWindow == NULL && node->Windows.Size == 1 && node->Windows[0]->WasActive == false) + DockNodeHideWindowDuringHostWindowCreation(node->Windows[0]); + + node->Windows.push_back(window); + node->WantHiddenTabBarUpdate = true; + window->DockNode = node; + window->DockId = node->ID; + window->DockIsActive = (node->Windows.Size > 1); + window->DockTabWantClose = false; + + // When reactivating a node with one or two loose window, the window pos/size/viewport are authoritative over the node storage. + // In particular it is important we init the viewport from the first window so we don't create two viewports and drop one. + if (node->HostWindow == NULL && node->IsFloatingNode()) + { + if (node->AuthorityForPos == ImGuiDataAuthority_Auto) + node->AuthorityForPos = ImGuiDataAuthority_Window; + if (node->AuthorityForSize == ImGuiDataAuthority_Auto) + node->AuthorityForSize = ImGuiDataAuthority_Window; + if (node->AuthorityForViewport == ImGuiDataAuthority_Auto) + node->AuthorityForViewport = ImGuiDataAuthority_Window; + } + + // Add to tab bar if requested + if (add_to_tab_bar) + { + if (node->TabBar == NULL) + { + DockNodeAddTabBar(node); + node->TabBar->SelectedTabId = node->TabBar->NextSelectedTabId = node->SelectedTabId; + + // Add existing windows + for (int n = 0; n < node->Windows.Size - 1; n++) + TabBarAddTab(node->TabBar, ImGuiTabItemFlags_None, node->Windows[n]); + } + TabBarAddTab(node->TabBar, ImGuiTabItemFlags_Unsorted, window); + } + + DockNodeUpdateVisibleFlag(node); + + // Update this without waiting for the next time we Begin() in the window, so our host window will have the proper title bar color on its first frame. + if (node->HostWindow) + UpdateWindowParentAndRootLinks(window, window->Flags | ImGuiWindowFlags_ChildWindow, node->HostWindow); +} + +static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window, ImGuiID save_dock_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(window->DockNode == node); + //IM_ASSERT(window->RootWindowDockTree == node->HostWindow); + //IM_ASSERT(window->LastFrameActive < g.FrameCount); // We may call this from Begin() + IM_ASSERT(save_dock_id == 0 || save_dock_id == node->ID); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeRemoveWindow node 0x%08X window '%s'\n", node->ID, window->Name); + + window->DockNode = NULL; + window->DockIsActive = window->DockTabWantClose = false; + window->DockId = save_dock_id; + window->Flags &= ~ImGuiWindowFlags_ChildWindow; + if (window->ParentWindow) + window->ParentWindow->DC.ChildWindows.find_erase(window); + UpdateWindowParentAndRootLinks(window, window->Flags, NULL); // Update immediately + + // Remove window + bool erased = false; + for (int n = 0; n < node->Windows.Size; n++) + if (node->Windows[n] == window) + { + node->Windows.erase(node->Windows.Data + n); + erased = true; + break; + } + if (!erased) + IM_ASSERT(erased); + if (node->VisibleWindow == window) + node->VisibleWindow = NULL; + + // Remove tab and possibly tab bar + node->WantHiddenTabBarUpdate = true; + if (node->TabBar) + { + TabBarRemoveTab(node->TabBar, window->TabId); + const int tab_count_threshold_for_tab_bar = node->IsCentralNode() ? 1 : 2; + if (node->Windows.Size < tab_count_threshold_for_tab_bar) + DockNodeRemoveTabBar(node); + } + + if (node->Windows.Size == 0 && !node->IsCentralNode() && !node->IsDockSpace() && window->DockId != node->ID) + { + // Automatic dock node delete themselves if they are not holding at least one tab + DockContextRemoveNode(&g, node, true); + return; + } + + if (node->Windows.Size == 1 && !node->IsCentralNode() && node->HostWindow) + { + ImGuiWindow* remaining_window = node->Windows[0]; + if (node->HostWindow->ViewportOwned && node->IsRootNode()) + { + // Transfer viewport back to the remaining loose window + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Node %08X transfer Viewport %08X=>%08X for Window '%s'\n", node->ID, node->HostWindow->Viewport->ID, remaining_window->ID, remaining_window->Name); + IM_ASSERT(node->HostWindow->Viewport->Window == node->HostWindow); + node->HostWindow->Viewport->Window = remaining_window; + node->HostWindow->Viewport->ID = remaining_window->ID; + } + remaining_window->Collapsed = node->HostWindow->Collapsed; + } + + // Update visibility immediately is required so the DockNodeUpdateRemoveInactiveChilds() processing can reflect changes up the tree + DockNodeUpdateVisibleFlag(node); +} + +static void ImGui::DockNodeMoveChildNodes(ImGuiDockNode* dst_node, ImGuiDockNode* src_node) +{ + IM_ASSERT(dst_node->Windows.Size == 0); + dst_node->ChildNodes[0] = src_node->ChildNodes[0]; + dst_node->ChildNodes[1] = src_node->ChildNodes[1]; + if (dst_node->ChildNodes[0]) + dst_node->ChildNodes[0]->ParentNode = dst_node; + if (dst_node->ChildNodes[1]) + dst_node->ChildNodes[1]->ParentNode = dst_node; + dst_node->SplitAxis = src_node->SplitAxis; + dst_node->SizeRef = src_node->SizeRef; + src_node->ChildNodes[0] = src_node->ChildNodes[1] = NULL; +} + +static void ImGui::DockNodeMoveWindows(ImGuiDockNode* dst_node, ImGuiDockNode* src_node) +{ + // Insert tabs in the same orders as currently ordered (node->Windows isn't ordered) + IM_ASSERT(src_node && dst_node && dst_node != src_node); + ImGuiTabBar* src_tab_bar = src_node->TabBar; + if (src_tab_bar != NULL) + IM_ASSERT(src_node->Windows.Size <= src_node->TabBar->Tabs.Size); + + // If the dst_node is empty we can just move the entire tab bar (to preserve selection, scrolling, etc.) + bool move_tab_bar = (src_tab_bar != NULL) && (dst_node->TabBar == NULL); + if (move_tab_bar) + { + dst_node->TabBar = src_node->TabBar; + src_node->TabBar = NULL; + } + + // Tab order is not important here, it is preserved by sorting in DockNodeUpdateTabBar(). + for (ImGuiWindow* window : src_node->Windows) + { + window->DockNode = NULL; + window->DockIsActive = false; + DockNodeAddWindow(dst_node, window, !move_tab_bar); + } + src_node->Windows.clear(); + + if (!move_tab_bar && src_node->TabBar) + { + if (dst_node->TabBar) + dst_node->TabBar->SelectedTabId = src_node->TabBar->SelectedTabId; + DockNodeRemoveTabBar(src_node); + } +} + +static void ImGui::DockNodeApplyPosSizeToWindows(ImGuiDockNode* node) +{ + for (int n = 0; n < node->Windows.Size; n++) + { + SetWindowPos(node->Windows[n], node->Pos, ImGuiCond_Always); // We don't assign directly to Pos because it can break the calculation of SizeContents on next frame + SetWindowSize(node->Windows[n], node->Size, ImGuiCond_Always); + } +} + +static void ImGui::DockNodeHideHostWindow(ImGuiDockNode* node) +{ + if (node->HostWindow) + { + if (node->HostWindow->DockNodeAsHost == node) + node->HostWindow->DockNodeAsHost = NULL; + node->HostWindow = NULL; + } + + if (node->Windows.Size == 1) + { + node->VisibleWindow = node->Windows[0]; + node->Windows[0]->DockIsActive = false; + } + + if (node->TabBar) + DockNodeRemoveTabBar(node); +} + +// Search function called once by root node in DockNodeUpdate() +struct ImGuiDockNodeTreeInfo +{ + ImGuiDockNode* CentralNode; + ImGuiDockNode* FirstNodeWithWindows; + int CountNodesWithWindows; + //ImGuiWindowClass WindowClassForMerges; + + ImGuiDockNodeTreeInfo() { memset(this, 0, sizeof(*this)); } +}; + +static void DockNodeFindInfo(ImGuiDockNode* node, ImGuiDockNodeTreeInfo* info) +{ + if (node->Windows.Size > 0) + { + if (info->FirstNodeWithWindows == NULL) + info->FirstNodeWithWindows = node; + info->CountNodesWithWindows++; + } + if (node->IsCentralNode()) + { + IM_ASSERT(info->CentralNode == NULL); // Should be only one + IM_ASSERT(node->IsLeafNode() && "If you get this assert: please submit .ini file + repro of actions leading to this."); + info->CentralNode = node; + } + if (info->CountNodesWithWindows > 1 && info->CentralNode != NULL) + return; + if (node->ChildNodes[0]) + DockNodeFindInfo(node->ChildNodes[0], info); + if (node->ChildNodes[1]) + DockNodeFindInfo(node->ChildNodes[1], info); +} + +static ImGuiWindow* ImGui::DockNodeFindWindowByID(ImGuiDockNode* node, ImGuiID id) +{ + IM_ASSERT(id != 0); + for (int n = 0; n < node->Windows.Size; n++) + if (node->Windows[n]->ID == id) + return node->Windows[n]; + return NULL; +} + +// - Remove inactive windows/nodes. +// - Update visibility flag. +static void ImGui::DockNodeUpdateFlagsAndCollapse(ImGuiDockNode* node) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(node->ParentNode == NULL || node->ParentNode->ChildNodes[0] == node || node->ParentNode->ChildNodes[1] == node); + + // Inherit most flags + if (node->ParentNode) + node->SharedFlags = node->ParentNode->SharedFlags & ImGuiDockNodeFlags_SharedFlagsInheritMask_; + + // Recurse into children + // There is the possibility that one of our child becoming empty will delete itself and moving its sibling contents into 'node'. + // If 'node->ChildNode[0]' delete itself, then 'node->ChildNode[1]->Windows' will be moved into 'node' + // If 'node->ChildNode[1]' delete itself, then 'node->ChildNode[0]->Windows' will be moved into 'node' and the "remove inactive windows" loop will have run twice on those windows (harmless) + node->HasCentralNodeChild = false; + if (node->ChildNodes[0]) + DockNodeUpdateFlagsAndCollapse(node->ChildNodes[0]); + if (node->ChildNodes[1]) + DockNodeUpdateFlagsAndCollapse(node->ChildNodes[1]); + + // Remove inactive windows, collapse nodes + // Merge node flags overrides stored in windows + node->LocalFlagsInWindows = ImGuiDockNodeFlags_None; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + IM_ASSERT(window->DockNode == node); + + bool node_was_active = (node->LastFrameActive + 1 == g.FrameCount); + bool remove = false; + remove |= node_was_active && (window->LastFrameActive + 1 < g.FrameCount); + remove |= node_was_active && (node->WantCloseAll || node->WantCloseTabId == window->TabId) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument); // Submit all _expected_ closure from last frame + remove |= (window->DockTabWantClose); + if (remove) + { + window->DockTabWantClose = false; + if (node->Windows.Size == 1 && !node->IsCentralNode()) + { + DockNodeHideHostWindow(node); + node->State = ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow; + DockNodeRemoveWindow(node, window, node->ID); // Will delete the node so it'll be invalid on return + return; + } + DockNodeRemoveWindow(node, window, node->ID); + window_n--; + continue; + } + + // FIXME-DOCKING: Missing policies for conflict resolution, hence the "Experimental" tag on this. + //node->LocalFlagsInWindow &= ~window->WindowClass.DockNodeFlagsOverrideClear; + node->LocalFlagsInWindows |= window->WindowClass.DockNodeFlagsOverrideSet; + } + node->UpdateMergedFlags(); + + // Auto-hide tab bar option + ImGuiDockNodeFlags node_flags = node->MergedFlags; + if (node->WantHiddenTabBarUpdate && node->Windows.Size == 1 && (node_flags & ImGuiDockNodeFlags_AutoHideTabBar) && !node->IsHiddenTabBar()) + node->WantHiddenTabBarToggle = true; + node->WantHiddenTabBarUpdate = false; + + // Cancel toggling if we know our tab bar is enforced to be hidden at all times + if (node->WantHiddenTabBarToggle && node->VisibleWindow && (node->VisibleWindow->WindowClass.DockNodeFlagsOverrideSet & ImGuiDockNodeFlags_HiddenTabBar)) + node->WantHiddenTabBarToggle = false; + + // Apply toggles at a single point of the frame (here!) + if (node->Windows.Size > 1) + node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_HiddenTabBar); + else if (node->WantHiddenTabBarToggle) + node->SetLocalFlags(node->LocalFlags ^ ImGuiDockNodeFlags_HiddenTabBar); + node->WantHiddenTabBarToggle = false; + + DockNodeUpdateVisibleFlag(node); +} + +// This is rarely called as DockNodeUpdateForRootNode() generally does it most frames. +static void ImGui::DockNodeUpdateHasCentralNodeChild(ImGuiDockNode* node) +{ + node->HasCentralNodeChild = false; + if (node->ChildNodes[0]) + DockNodeUpdateHasCentralNodeChild(node->ChildNodes[0]); + if (node->ChildNodes[1]) + DockNodeUpdateHasCentralNodeChild(node->ChildNodes[1]); + if (node->IsRootNode()) + { + ImGuiDockNode* mark_node = node->CentralNode; + while (mark_node) + { + mark_node->HasCentralNodeChild = true; + mark_node = mark_node->ParentNode; + } + } +} + +static void ImGui::DockNodeUpdateVisibleFlag(ImGuiDockNode* node) +{ + // Update visibility flag + bool is_visible = (node->ParentNode == NULL) ? node->IsDockSpace() : node->IsCentralNode(); + is_visible |= (node->Windows.Size > 0); + is_visible |= (node->ChildNodes[0] && node->ChildNodes[0]->IsVisible); + is_visible |= (node->ChildNodes[1] && node->ChildNodes[1]->IsVisible); + node->IsVisible = is_visible; +} + +static void ImGui::DockNodeStartMouseMovingWindow(ImGuiDockNode* node, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(node->WantMouseMove == true); + StartMouseMovingWindow(window); + g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - node->Pos; + g.MovingWindow = window; // If we are docked into a non moveable root window, StartMouseMovingWindow() won't set g.MovingWindow. Override that decision. + node->WantMouseMove = false; +} + +// Update CentralNode, OnlyNodeWithWindows, LastFocusedNodeID. Copy window class. +static void ImGui::DockNodeUpdateForRootNode(ImGuiDockNode* node) +{ + DockNodeUpdateFlagsAndCollapse(node); + + // - Setup central node pointers + // - Find if there's only a single visible window in the hierarchy (in which case we need to display a regular title bar -> FIXME-DOCK: that last part is not done yet!) + // Cannot merge this with DockNodeUpdateFlagsAndCollapse() because FirstNodeWithWindows is found after window removal and child collapsing + ImGuiDockNodeTreeInfo info; + DockNodeFindInfo(node, &info); + node->CentralNode = info.CentralNode; + node->OnlyNodeWithWindows = (info.CountNodesWithWindows == 1) ? info.FirstNodeWithWindows : NULL; + node->CountNodeWithWindows = info.CountNodesWithWindows; + if (node->LastFocusedNodeId == 0 && info.FirstNodeWithWindows != NULL) + node->LastFocusedNodeId = info.FirstNodeWithWindows->ID; + + // Copy the window class from of our first window so it can be used for proper dock filtering. + // When node has mixed windows, prioritize the class with the most constraint (DockingAllowUnclassed = false) as the reference to copy. + // FIXME-DOCK: We don't recurse properly, this code could be reworked to work from DockNodeUpdateScanRec. + if (ImGuiDockNode* first_node_with_windows = info.FirstNodeWithWindows) + { + node->WindowClass = first_node_with_windows->Windows[0]->WindowClass; + for (int n = 1; n < first_node_with_windows->Windows.Size; n++) + if (first_node_with_windows->Windows[n]->WindowClass.DockingAllowUnclassed == false) + { + node->WindowClass = first_node_with_windows->Windows[n]->WindowClass; + break; + } + } + + ImGuiDockNode* mark_node = node->CentralNode; + while (mark_node) + { + mark_node->HasCentralNodeChild = true; + mark_node = mark_node->ParentNode; + } +} + +static void DockNodeSetupHostWindow(ImGuiDockNode* node, ImGuiWindow* host_window) +{ + // Remove ourselves from any previous different host window + // This can happen if a user mistakenly does (see #4295 for details): + // - N+0: DockBuilderAddNode(id, 0) // missing ImGuiDockNodeFlags_DockSpace + // - N+1: NewFrame() // will create floating host window for that node + // - N+1: DockSpace(id) // requalify node as dockspace, moving host window + if (node->HostWindow && node->HostWindow != host_window && node->HostWindow->DockNodeAsHost == node) + node->HostWindow->DockNodeAsHost = NULL; + + host_window->DockNodeAsHost = node; + node->HostWindow = host_window; +} + +static void ImGui::DockNodeUpdate(ImGuiDockNode* node) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(node->LastFrameActive != g.FrameCount); + node->LastFrameAlive = g.FrameCount; + node->IsBgDrawnThisFrame = false; + + node->CentralNode = node->OnlyNodeWithWindows = NULL; + if (node->IsRootNode()) + DockNodeUpdateForRootNode(node); + + // Remove tab bar if not needed + if (node->TabBar && node->IsNoTabBar()) + DockNodeRemoveTabBar(node); + + // Early out for hidden root dock nodes (when all DockId references are in inactive windows, or there is only 1 floating window holding on the DockId) + bool want_to_hide_host_window = false; + if (node->IsFloatingNode()) + { + if (node->Windows.Size <= 1 && node->IsLeafNode()) + if (!g.IO.ConfigDockingAlwaysTabBar && (node->Windows.Size == 0 || !node->Windows[0]->WindowClass.DockingAlwaysTabBar)) + want_to_hide_host_window = true; + if (node->CountNodeWithWindows == 0) + want_to_hide_host_window = true; + } + if (want_to_hide_host_window) + { + if (node->Windows.Size == 1) + { + // Floating window pos/size is authoritative + ImGuiWindow* single_window = node->Windows[0]; + node->Pos = single_window->Pos; + node->Size = single_window->SizeFull; + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Window; + + // Transfer focus immediately so when we revert to a regular window it is immediately selected + if (node->HostWindow && g.NavWindow == node->HostWindow) + FocusWindow(single_window); + if (node->HostWindow) + { + single_window->Viewport = node->HostWindow->Viewport; + single_window->ViewportId = node->HostWindow->ViewportId; + if (node->HostWindow->ViewportOwned) + { + single_window->Viewport->Window = single_window; + single_window->ViewportOwned = true; + } + } + } + + DockNodeHideHostWindow(node); + node->State = ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow; + node->WantCloseAll = false; + node->WantCloseTabId = 0; + node->HasCloseButton = node->HasWindowMenuButton = false; + node->LastFrameActive = g.FrameCount; + + if (node->WantMouseMove && node->Windows.Size == 1) + DockNodeStartMouseMovingWindow(node, node->Windows[0]); + return; + } + + // In some circumstance we will defer creating the host window (so everything will be kept hidden), + // while the expected visible window is resizing itself. + // This is important for first-time (no ini settings restored) single window when io.ConfigDockingAlwaysTabBar is enabled, + // otherwise the node ends up using the minimum window size. Effectively those windows will take an extra frame to show up: + // N+0: Begin(): window created (with no known size), node is created + // N+1: DockNodeUpdate(): node skip creating host window / Begin(): window size applied, not visible + // N+2: DockNodeUpdate(): node can create host window / Begin(): window becomes visible + // We could remove this frame if we could reliably calculate the expected window size during node update, before the Begin() code. + // It would require a generalization of CalcWindowExpectedSize(), probably extracting code away from Begin(). + // In reality it isn't very important as user quickly ends up with size data in .ini file. + if (node->IsVisible && node->HostWindow == NULL && node->IsFloatingNode() && node->IsLeafNode()) + { + IM_ASSERT(node->Windows.Size > 0); + ImGuiWindow* ref_window = NULL; + if (node->SelectedTabId != 0) // Note that we prune single-window-node settings on .ini loading, so this is generally 0 for them! + ref_window = DockNodeFindWindowByID(node, node->SelectedTabId); + if (ref_window == NULL) + ref_window = node->Windows[0]; + if (ref_window->AutoFitFramesX > 0 || ref_window->AutoFitFramesY > 0) + { + node->State = ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing; + return; + } + } + + const ImGuiDockNodeFlags node_flags = node->MergedFlags; + + // Decide if the node will have a close button and a window menu button + node->HasWindowMenuButton = (node->Windows.Size > 0) && (node_flags & ImGuiDockNodeFlags_NoWindowMenuButton) == 0; + node->HasCloseButton = false; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + // FIXME-DOCK: Setting DockIsActive here means that for single active window in a leaf node, DockIsActive will be cleared until the next Begin() call. + ImGuiWindow* window = node->Windows[window_n]; + node->HasCloseButton |= window->HasCloseButton; + window->DockIsActive = (node->Windows.Size > 1); + } + if (node_flags & ImGuiDockNodeFlags_NoCloseButton) + node->HasCloseButton = false; + + // Bind or create host window + ImGuiWindow* host_window = NULL; + bool beginned_into_host_window = false; + if (node->IsDockSpace()) + { + // [Explicit root dockspace node] + IM_ASSERT(node->HostWindow); + host_window = node->HostWindow; + } + else + { + // [Automatic root or child nodes] + if (node->IsRootNode() && node->IsVisible) + { + ImGuiWindow* ref_window = (node->Windows.Size > 0) ? node->Windows[0] : NULL; + + // Sync Pos + if (node->AuthorityForPos == ImGuiDataAuthority_Window && ref_window) + SetNextWindowPos(ref_window->Pos); + else if (node->AuthorityForPos == ImGuiDataAuthority_DockNode) + SetNextWindowPos(node->Pos); + + // Sync Size + if (node->AuthorityForSize == ImGuiDataAuthority_Window && ref_window) + SetNextWindowSize(ref_window->SizeFull); + else if (node->AuthorityForSize == ImGuiDataAuthority_DockNode) + SetNextWindowSize(node->Size); + + // Sync Collapsed + if (node->AuthorityForSize == ImGuiDataAuthority_Window && ref_window) + SetNextWindowCollapsed(ref_window->Collapsed); + + // Sync Viewport + if (node->AuthorityForViewport == ImGuiDataAuthority_Window && ref_window) + SetNextWindowViewport(ref_window->ViewportId); + + SetNextWindowClass(&node->WindowClass); + + // Begin into the host window + char window_label[20]; + DockNodeGetHostWindowTitle(node, window_label, IM_ARRAYSIZE(window_label)); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_DockNodeHost; + window_flags |= ImGuiWindowFlags_NoFocusOnAppearing; + window_flags |= ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus | ImGuiWindowFlags_NoCollapse; + window_flags |= ImGuiWindowFlags_NoTitleBar; + + SetNextWindowBgAlpha(0.0f); // Don't set ImGuiWindowFlags_NoBackground because it disables borders + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); + Begin(window_label, NULL, window_flags); + PopStyleVar(); + beginned_into_host_window = true; + + host_window = g.CurrentWindow; + DockNodeSetupHostWindow(node, host_window); + host_window->DC.CursorPos = host_window->Pos; + node->Pos = host_window->Pos; + node->Size = host_window->Size; + + // We set ImGuiWindowFlags_NoFocusOnAppearing because we don't want the host window to take full focus (e.g. steal NavWindow) + // But we still it bring it to the front of display. There's no way to choose this precise behavior via window flags. + // One simple case to ponder if: window A has a toggle to create windows B/C/D. Dock B/C/D together, clear the toggle and enable it again. + // When reappearing B/C/D will request focus and be moved to the top of the display pile, but they are not linked to the dock host window + // during the frame they appear. The dock host window would keep its old display order, and the sorting in EndFrame would move B/C/D back + // after the dock host window, losing their top-most status. + if (node->HostWindow->Appearing) + BringWindowToDisplayFront(node->HostWindow); + + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Auto; + } + else if (node->ParentNode) + { + node->HostWindow = host_window = node->ParentNode->HostWindow; + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Auto; + } + if (node->WantMouseMove && node->HostWindow) + DockNodeStartMouseMovingWindow(node, node->HostWindow); + } + + // Update focused node (the one whose title bar is highlight) within a node tree + if (node->IsSplitNode()) + IM_ASSERT(node->TabBar == NULL); + if (node->IsRootNode()) + if (ImGuiWindow* p_window = g.NavWindow ? g.NavWindow->RootWindow : NULL) + while (p_window != NULL && p_window->DockNode != NULL) + { + ImGuiDockNode* p_node = DockNodeGetRootNode(p_window->DockNode); + if (p_node == node) + { + node->LastFocusedNodeId = p_window->DockNode->ID; // Note: not using root node ID! + break; + } + p_window = p_node->HostWindow ? p_node->HostWindow->RootWindow : NULL; + } + + // Register a hit-test hole in the window unless we are currently dragging a window that is compatible with our dockspace + ImGuiDockNode* central_node = node->CentralNode; + const bool central_node_hole = node->IsRootNode() && host_window && (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0 && central_node != NULL && central_node->IsEmpty(); + bool central_node_hole_register_hit_test_hole = central_node_hole; + if (central_node_hole) + if (const ImGuiPayload* payload = ImGui::GetDragDropPayload()) + if (payload->IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) && DockNodeIsDropAllowed(host_window, *(ImGuiWindow**)payload->Data)) + central_node_hole_register_hit_test_hole = false; + if (central_node_hole_register_hit_test_hole) + { + // We add a little padding to match the "resize from edges" behavior and allow grabbing the splitter easily. + // (But we only add it if there's something else on the other side of the hole, otherwise for e.g. fullscreen + // covering passthru node we'd have a gap on the edge not covered by the hole) + IM_ASSERT(node->IsDockSpace()); // We cannot pass this flag without the DockSpace() api. Testing this because we also setup the hole in host_window->ParentNode + ImGuiDockNode* root_node = DockNodeGetRootNode(central_node); + ImRect root_rect(root_node->Pos, root_node->Pos + root_node->Size); + ImRect hole_rect(central_node->Pos, central_node->Pos + central_node->Size); + if (hole_rect.Min.x > root_rect.Min.x) { hole_rect.Min.x += WINDOWS_HOVER_PADDING; } + if (hole_rect.Max.x < root_rect.Max.x) { hole_rect.Max.x -= WINDOWS_HOVER_PADDING; } + if (hole_rect.Min.y > root_rect.Min.y) { hole_rect.Min.y += WINDOWS_HOVER_PADDING; } + if (hole_rect.Max.y < root_rect.Max.y) { hole_rect.Max.y -= WINDOWS_HOVER_PADDING; } + //GetForegroundDrawList()->AddRect(hole_rect.Min, hole_rect.Max, IM_COL32(255, 0, 0, 255)); + if (central_node_hole && !hole_rect.IsInverted()) + { + SetWindowHitTestHole(host_window, hole_rect.Min, hole_rect.Max - hole_rect.Min); + if (host_window->ParentWindow) + SetWindowHitTestHole(host_window->ParentWindow, hole_rect.Min, hole_rect.Max - hole_rect.Min); + } + } + + // Update position/size, process and draw resizing splitters + if (node->IsRootNode() && host_window) + { + DockNodeTreeUpdatePosSize(node, host_window->Pos, host_window->Size); + DockNodeTreeUpdateSplitter(node); + } + + // Draw empty node background (currently can only be the Central Node) + if (host_window && node->IsEmpty() && node->IsVisible) + { + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + node->LastBgColor = (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) ? 0 : GetColorU32(ImGuiCol_DockingEmptyBg); + if (node->LastBgColor != 0) + host_window->DrawList->AddRectFilled(node->Pos, node->Pos + node->Size, node->LastBgColor); + node->IsBgDrawnThisFrame = true; + } + + // Draw whole dockspace background if ImGuiDockNodeFlags_PassthruCentralNode if set. + // We need to draw a background at the root level if requested by ImGuiDockNodeFlags_PassthruCentralNode, but we will only know the correct pos/size + // _after_ processing the resizing splitters. So we are using the DrawList channel splitting facility to submit drawing primitives out of order! + const bool render_dockspace_bg = node->IsRootNode() && host_window && (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0; + if (render_dockspace_bg && node->IsVisible) + { + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + if (central_node_hole) + RenderRectFilledWithHole(host_window->DrawList, node->Rect(), central_node->Rect(), GetColorU32(ImGuiCol_WindowBg), 0.0f); + else + host_window->DrawList->AddRectFilled(node->Pos, node->Pos + node->Size, GetColorU32(ImGuiCol_WindowBg), 0.0f); + } + + // Draw and populate Tab Bar + if (host_window) + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); + if (host_window && node->Windows.Size > 0) + { + DockNodeUpdateTabBar(node, host_window); + } + else + { + node->WantCloseAll = false; + node->WantCloseTabId = 0; + node->IsFocused = false; + } + if (node->TabBar && node->TabBar->SelectedTabId) + node->SelectedTabId = node->TabBar->SelectedTabId; + else if (node->Windows.Size > 0) + node->SelectedTabId = node->Windows[0]->TabId; + + // Draw payload drop target + if (host_window && node->IsVisible) + if (node->IsRootNode() && (g.MovingWindow == NULL || g.MovingWindow->RootWindowDockTree != host_window)) + BeginDockableDragDropTarget(host_window); + + // We update this after DockNodeUpdateTabBar() + node->LastFrameActive = g.FrameCount; + + // Recurse into children + // FIXME-DOCK FIXME-OPT: Should not need to recurse into children + if (host_window) + { + if (node->ChildNodes[0]) + DockNodeUpdate(node->ChildNodes[0]); + if (node->ChildNodes[1]) + DockNodeUpdate(node->ChildNodes[1]); + + // Render outer borders last (after the tab bar) + if (node->IsRootNode()) + RenderWindowOuterBorders(host_window); + } + + // End host window + if (beginned_into_host_window) //-V1020 + End(); +} + +// Compare TabItem nodes given the last known DockOrder (will persist in .ini file as hint), used to sort tabs when multiple tabs are added on the same frame. +static int IMGUI_CDECL TabItemComparerByDockOrder(const void* lhs, const void* rhs) +{ + ImGuiWindow* a = ((const ImGuiTabItem*)lhs)->Window; + ImGuiWindow* b = ((const ImGuiTabItem*)rhs)->Window; + if (int d = ((a->DockOrder == -1) ? INT_MAX : a->DockOrder) - ((b->DockOrder == -1) ? INT_MAX : b->DockOrder)) + return d; + return (a->BeginOrderWithinContext - b->BeginOrderWithinContext); +} + +static ImGuiID ImGui::DockNodeUpdateWindowMenu(ImGuiDockNode* node, ImGuiTabBar* tab_bar) +{ + // Try to position the menu so it is more likely to stays within the same viewport + ImGuiContext& g = *GImGui; + ImGuiID ret_tab_id = 0; + if (g.Style.WindowMenuButtonPosition == ImGuiDir_Left) + SetNextWindowPos(ImVec2(node->Pos.x, node->Pos.y + GetFrameHeight()), ImGuiCond_Always, ImVec2(0.0f, 0.0f)); + else + SetNextWindowPos(ImVec2(node->Pos.x + node->Size.x, node->Pos.y + GetFrameHeight()), ImGuiCond_Always, ImVec2(1.0f, 0.0f)); + if (BeginPopup("#WindowMenu")) + { + node->IsFocused = true; + if (tab_bar->Tabs.Size == 1) + { + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_DockingHideTabBar), NULL, node->IsHiddenTabBar())) + node->WantHiddenTabBarToggle = true; + } + else + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (tab->Flags & ImGuiTabItemFlags_Button) + continue; + if (Selectable(tab_bar->GetTabName(tab), tab->ID == tab_bar->SelectedTabId)) + ret_tab_id = tab->ID; + SameLine(); + Text(" "); + } + } + EndPopup(); + } + return ret_tab_id; +} + +// User helper to append/amend into a dock node tab bar. Most commonly used to add e.g. a "+" button. +bool ImGui::DockNodeBeginAmendTabBar(ImGuiDockNode* node) +{ + if (node->TabBar == NULL || node->HostWindow == NULL) + return false; + if (node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) + return false; + Begin(node->HostWindow->Name); + PushOverrideID(node->ID); + bool ret = BeginTabBarEx(node->TabBar, node->TabBar->BarRect, node->TabBar->Flags, node); + IM_UNUSED(ret); + IM_ASSERT(ret); + return true; +} + +void ImGui::DockNodeEndAmendTabBar() +{ + EndTabBar(); + PopID(); + End(); +} + +static bool IsDockNodeTitleBarHighlighted(ImGuiDockNode* node, ImGuiDockNode* root_node) +{ + // CTRL+Tab highlight (only highlighting leaf node, not whole hierarchy) + ImGuiContext& g = *GImGui; + if (g.NavWindowingTarget) + return (g.NavWindowingTarget->DockNode == node); + + // FIXME-DOCKING: May want alternative to treat central node void differently? e.g. if (g.NavWindow == host_window) + if (g.NavWindow && root_node->LastFocusedNodeId == node->ID) + { + // FIXME: This could all be backed in RootWindowForTitleBarHighlight? Probably need to reorganize for both dock nodes + other RootWindowForTitleBarHighlight users (not-node) + ImGuiWindow* parent_window = g.NavWindow->RootWindow; + while (parent_window->Flags & ImGuiWindowFlags_ChildMenu) + parent_window = parent_window->ParentWindow->RootWindow; + ImGuiDockNode* start_parent_node = parent_window->DockNodeAsHost ? parent_window->DockNodeAsHost : parent_window->DockNode; + for (ImGuiDockNode* parent_node = start_parent_node; parent_node != NULL; parent_node = parent_node->HostWindow ? parent_node->HostWindow->RootWindow->DockNode : NULL) + if ((parent_node = ImGui::DockNodeGetRootNode(parent_node)) == root_node) + return true; + } + return false; +} + +// Submit the tab bar corresponding to a dock node and various housekeeping details. +static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_window) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + const bool node_was_active = (node->LastFrameActive + 1 == g.FrameCount); + const bool closed_all = node->WantCloseAll && node_was_active; + const ImGuiID closed_one = node->WantCloseTabId && node_was_active; + node->WantCloseAll = false; + node->WantCloseTabId = 0; + + // Decide if we should use a focused title bar color + bool is_focused = false; + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + if (IsDockNodeTitleBarHighlighted(node, root_node)) + is_focused = true; + + // Hidden tab bar will show a triangle on the upper-left (in Begin) + if (node->IsHiddenTabBar() || node->IsNoTabBar()) + { + node->VisibleWindow = (node->Windows.Size > 0) ? node->Windows[0] : NULL; + node->IsFocused = is_focused; + if (is_focused) + node->LastFrameFocused = g.FrameCount; + if (node->VisibleWindow) + { + // Notify root of visible window (used to display title in OS task bar) + if (is_focused || root_node->VisibleWindow == NULL) + root_node->VisibleWindow = node->VisibleWindow; + if (node->TabBar) + node->TabBar->VisibleTabId = node->VisibleWindow->TabId; + } + return; + } + + // Move ourselves to the Menu layer (so we can be accessed by tapping Alt) + undo SkipItems flag in order to draw over the title bar even if the window is collapsed + bool backup_skip_item = host_window->SkipItems; + if (!node->IsDockSpace()) + { + host_window->SkipItems = false; + host_window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + } + + // Use PushOverrideID() instead of PushID() to use the node id _without_ the host window ID. + // This is to facilitate computing those ID from the outside, and will affect more or less only the ID of the collapse button, popup and tabs, + // as docked windows themselves will override the stack with their own root ID. + PushOverrideID(node->ID); + ImGuiTabBar* tab_bar = node->TabBar; + bool tab_bar_is_recreated = (tab_bar == NULL); // Tab bar are automatically destroyed when a node gets hidden + if (tab_bar == NULL) + { + DockNodeAddTabBar(node); + tab_bar = node->TabBar; + } + + ImGuiID focus_tab_id = 0; + node->IsFocused = is_focused; + + const ImGuiDockNodeFlags node_flags = node->MergedFlags; + const bool has_window_menu_button = (node_flags & ImGuiDockNodeFlags_NoWindowMenuButton) == 0 && (style.WindowMenuButtonPosition != ImGuiDir_None); + + // In a dock node, the Collapse Button turns into the Window Menu button. + // FIXME-DOCK FIXME-OPT: Could we recycle popups id across multiple dock nodes? + if (has_window_menu_button && IsPopupOpen("#WindowMenu")) + { + if (ImGuiID tab_id = DockNodeUpdateWindowMenu(node, tab_bar)) + focus_tab_id = tab_bar->NextSelectedTabId = tab_id; + is_focused |= node->IsFocused; + } + + // Layout + ImRect title_bar_rect, tab_bar_rect; + ImVec2 window_menu_button_pos; + ImVec2 close_button_pos; + DockNodeCalcTabBarLayout(node, &title_bar_rect, &tab_bar_rect, &window_menu_button_pos, &close_button_pos); + + // Submit new tabs, they will be added as Unsorted and sorted below based on relative DockOrder value. + const int tabs_count_old = tab_bar->Tabs.Size; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + if (TabBarFindTabByID(tab_bar, window->TabId) == NULL) + TabBarAddTab(tab_bar, ImGuiTabItemFlags_Unsorted, window); + } + + // Title bar + if (is_focused) + node->LastFrameFocused = g.FrameCount; + ImU32 title_bar_col = GetColorU32(host_window->Collapsed ? ImGuiCol_TitleBgCollapsed : is_focused ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg); + ImDrawFlags rounding_flags = CalcRoundingFlagsForRectInRect(title_bar_rect, host_window->Rect(), DOCKING_SPLITTER_SIZE); + host_window->DrawList->AddRectFilled(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, host_window->WindowRounding, rounding_flags); + + // Docking/Collapse button + if (has_window_menu_button) + { + if (CollapseButton(host_window->GetID("#COLLAPSE"), window_menu_button_pos, node)) // == DockNodeGetWindowMenuButtonId(node) + OpenPopup("#WindowMenu"); + if (IsItemActive()) + focus_tab_id = tab_bar->SelectedTabId; + } + + // If multiple tabs are appearing on the same frame, sort them based on their persistent DockOrder value + int tabs_unsorted_start = tab_bar->Tabs.Size; + for (int tab_n = tab_bar->Tabs.Size - 1; tab_n >= 0 && (tab_bar->Tabs[tab_n].Flags & ImGuiTabItemFlags_Unsorted); tab_n--) + { + // FIXME-DOCK: Consider only clearing the flag after the tab has been alive for a few consecutive frames, allowing late comers to not break sorting? + tab_bar->Tabs[tab_n].Flags &= ~ImGuiTabItemFlags_Unsorted; + tabs_unsorted_start = tab_n; + } + if (tab_bar->Tabs.Size > tabs_unsorted_start) + { + IMGUI_DEBUG_LOG_DOCKING("[docking] In node 0x%08X: %d new appearing tabs:%s\n", node->ID, tab_bar->Tabs.Size - tabs_unsorted_start, (tab_bar->Tabs.Size > tabs_unsorted_start + 1) ? " (will sort)" : ""); + for (int tab_n = tabs_unsorted_start; tab_n < tab_bar->Tabs.Size; tab_n++) + IMGUI_DEBUG_LOG_DOCKING("[docking] - Tab '%s' Order %d\n", tab_bar->Tabs[tab_n].Window->Name, tab_bar->Tabs[tab_n].Window->DockOrder); + if (tab_bar->Tabs.Size > tabs_unsorted_start + 1) + ImQsort(tab_bar->Tabs.Data + tabs_unsorted_start, tab_bar->Tabs.Size - tabs_unsorted_start, sizeof(ImGuiTabItem), TabItemComparerByDockOrder); + } + + // Apply NavWindow focus back to the tab bar + if (g.NavWindow && g.NavWindow->RootWindow->DockNode == node) + tab_bar->SelectedTabId = g.NavWindow->RootWindow->TabId; + + // Selected newly added tabs, or persistent tab ID if the tab bar was just recreated + if (tab_bar_is_recreated && TabBarFindTabByID(tab_bar, node->SelectedTabId) != NULL) + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = node->SelectedTabId; + else if (tab_bar->Tabs.Size > tabs_count_old) + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = tab_bar->Tabs.back().Window->TabId; + + // Begin tab bar + ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_AutoSelectNewTabs; // | ImGuiTabBarFlags_NoTabListScrollingButtons); + tab_bar_flags |= ImGuiTabBarFlags_SaveSettings | ImGuiTabBarFlags_DockNode; + if (!host_window->Collapsed && is_focused) + tab_bar_flags |= ImGuiTabBarFlags_IsFocused; + BeginTabBarEx(tab_bar, tab_bar_rect, tab_bar_flags, node); + //host_window->DrawList->AddRect(tab_bar_rect.Min, tab_bar_rect.Max, IM_COL32(255,0,255,255)); + + // Backup style colors + ImVec4 backup_style_cols[ImGuiWindowDockStyleCol_COUNT]; + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + backup_style_cols[color_n] = g.Style.Colors[GWindowDockStyleColors[color_n]]; + + // Submit actual tabs + node->VisibleWindow = NULL; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + if ((closed_all || closed_one == window->TabId) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument)) + continue; + if (window->LastFrameActive + 1 >= g.FrameCount || !node_was_active) + { + ImGuiTabItemFlags tab_item_flags = 0; + tab_item_flags |= window->WindowClass.TabItemFlagsOverrideSet; + if (window->Flags & ImGuiWindowFlags_UnsavedDocument) + tab_item_flags |= ImGuiTabItemFlags_UnsavedDocument; + if (tab_bar->Flags & ImGuiTabBarFlags_NoCloseWithMiddleMouseButton) + tab_item_flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; + + // Apply stored style overrides for the window + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + g.Style.Colors[GWindowDockStyleColors[color_n]] = ColorConvertU32ToFloat4(window->DockStyle.Colors[color_n]); + + // Note that TabItemEx() calls TabBarCalcTabID() so our tab item ID will ignore the current ID stack (rightly so) + bool tab_open = true; + TabItemEx(tab_bar, window->Name, window->HasCloseButton ? &tab_open : NULL, tab_item_flags, window); + if (!tab_open) + node->WantCloseTabId = window->TabId; + if (tab_bar->VisibleTabId == window->TabId) + node->VisibleWindow = window; + + // Store last item data so it can be queried with IsItemXXX functions after the user Begin() call + window->DockTabItemStatusFlags = g.LastItemData.StatusFlags; + window->DockTabItemRect = g.LastItemData.Rect; + + // Update navigation ID on menu layer + if (g.NavWindow && g.NavWindow->RootWindow == window && (window->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) == 0) + host_window->NavLastIds[1] = window->TabId; + } + } + + // Restore style colors + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + g.Style.Colors[GWindowDockStyleColors[color_n]] = backup_style_cols[color_n]; + + // Notify root of visible window (used to display title in OS task bar) + if (node->VisibleWindow) + if (is_focused || root_node->VisibleWindow == NULL) + root_node->VisibleWindow = node->VisibleWindow; + + // Close button (after VisibleWindow was updated) + // Note that VisibleWindow may have been overrided by CTRL+Tabbing, so VisibleWindow->TabId may be != from tab_bar->SelectedTabId + const bool close_button_is_enabled = node->HasCloseButton && node->VisibleWindow && node->VisibleWindow->HasCloseButton; + const bool close_button_is_visible = node->HasCloseButton; + //const bool close_button_is_visible = close_button_is_enabled; // Most people would expect this behavior of not even showing the button (leaving a hole since we can't claim that space as other windows in the tba bar have one) + if (close_button_is_visible) + { + if (!close_button_is_enabled) + { + PushItemFlag(ImGuiItemFlags_Disabled, true); + PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_Text] * ImVec4(1.0f,1.0f,1.0f,0.4f)); + } + if (CloseButton(host_window->GetID("#CLOSE"), close_button_pos)) + { + node->WantCloseAll = true; + for (int n = 0; n < tab_bar->Tabs.Size; n++) + TabBarCloseTab(tab_bar, &tab_bar->Tabs[n]); + } + //if (IsItemActive()) + // focus_tab_id = tab_bar->SelectedTabId; + if (!close_button_is_enabled) + { + PopStyleColor(); + PopItemFlag(); + } + } + + // When clicking on the title bar outside of tabs, we still focus the selected tab for that node + // FIXME: TabItem use AllowItemOverlap so we manually perform a more specific test for now (hovered || held) + ImGuiID title_bar_id = host_window->GetID("#TITLEBAR"); + if (g.HoveredId == 0 || g.HoveredId == title_bar_id || g.ActiveId == title_bar_id) + { + bool held; + ButtonBehavior(title_bar_rect, title_bar_id, NULL, &held, ImGuiButtonFlags_AllowItemOverlap); + if (g.HoveredId == title_bar_id) + { + // ImGuiButtonFlags_AllowItemOverlap + SetItemAllowOverlap() required for appending into dock node tab bar, + // otherwise dragging window will steal HoveredId and amended tabs cannot get them. + g.LastItemData.ID = title_bar_id; + SetItemAllowOverlap(); + } + if (held) + { + if (IsMouseClicked(0)) + focus_tab_id = tab_bar->SelectedTabId; + + // Forward moving request to selected window + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_bar->SelectedTabId)) + StartMouseMovingWindowOrNode(tab->Window ? tab->Window : node->HostWindow, node, false); + } + } + + // Forward focus from host node to selected window + //if (is_focused && g.NavWindow == host_window && !g.NavWindowingTarget) + // focus_tab_id = tab_bar->SelectedTabId; + + // When clicked on a tab we requested focus to the docked child + // This overrides the value set by "forward focus from host node to selected window". + if (tab_bar->NextSelectedTabId) + focus_tab_id = tab_bar->NextSelectedTabId; + + // Apply navigation focus + if (focus_tab_id != 0) + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, focus_tab_id)) + if (tab->Window) + { + FocusWindow(tab->Window); + NavInitWindow(tab->Window, false); + } + + EndTabBar(); + PopID(); + + // Restore SkipItems flag + if (!node->IsDockSpace()) + { + host_window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + host_window->SkipItems = backup_skip_item; + } +} + +static void ImGui::DockNodeAddTabBar(ImGuiDockNode* node) +{ + IM_ASSERT(node->TabBar == NULL); + node->TabBar = IM_NEW(ImGuiTabBar); +} + +static void ImGui::DockNodeRemoveTabBar(ImGuiDockNode* node) +{ + if (node->TabBar == NULL) + return; + IM_DELETE(node->TabBar); + node->TabBar = NULL; +} + +static bool DockNodeIsDropAllowedOne(ImGuiWindow* payload, ImGuiWindow* host_window) +{ + if (host_window->DockNodeAsHost && host_window->DockNodeAsHost->IsDockSpace() && payload->BeginOrderWithinContext < host_window->BeginOrderWithinContext) + return false; + + ImGuiWindowClass* host_class = host_window->DockNodeAsHost ? &host_window->DockNodeAsHost->WindowClass : &host_window->WindowClass; + ImGuiWindowClass* payload_class = &payload->WindowClass; + if (host_class->ClassId != payload_class->ClassId) + { + if (host_class->ClassId != 0 && host_class->DockingAllowUnclassed && payload_class->ClassId == 0) + return true; + if (payload_class->ClassId != 0 && payload_class->DockingAllowUnclassed && host_class->ClassId == 0) + return true; + return false; + } + + // Prevent docking any window created above a popup + // Technically we should support it (e.g. in the case of a long-lived modal window that had fancy docking features), + // by e.g. adding a 'if (!ImGui::IsWindowWithinBeginStackOf(host_window, popup_window))' test. + // But it would requires more work on our end because the dock host windows is technically created in NewFrame() + // and our ->ParentXXX and ->RootXXX pointers inside windows are currently mislading or lacking. + ImGuiContext& g = *GImGui; + for (int i = g.OpenPopupStack.Size - 1; i >= 0; i--) + if (ImGuiWindow* popup_window = g.OpenPopupStack[i].Window) + if (ImGui::IsWindowWithinBeginStackOf(payload, popup_window)) // Payload is created from within a popup begin stack. + return false; + + return true; +} + +static bool ImGui::DockNodeIsDropAllowed(ImGuiWindow* host_window, ImGuiWindow* root_payload) +{ + if (root_payload->DockNodeAsHost && root_payload->DockNodeAsHost->IsSplitNode()) // FIXME-DOCK: Missing filtering + return true; + + const int payload_count = root_payload->DockNodeAsHost ? root_payload->DockNodeAsHost->Windows.Size : 1; + for (int payload_n = 0; payload_n < payload_count; payload_n++) + { + ImGuiWindow* payload = root_payload->DockNodeAsHost ? root_payload->DockNodeAsHost->Windows[payload_n] : root_payload; + if (DockNodeIsDropAllowedOne(payload, host_window)) + return true; + } + return false; +} + +// window menu button == collapse button when not in a dock node. +// FIXME: This is similar to RenderWindowTitleBarContents(), may want to share code. +static void ImGui::DockNodeCalcTabBarLayout(const ImGuiDockNode* node, ImRect* out_title_rect, ImRect* out_tab_bar_rect, ImVec2* out_window_menu_button_pos, ImVec2* out_close_button_pos) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + ImRect r = ImRect(node->Pos.x, node->Pos.y, node->Pos.x + node->Size.x, node->Pos.y + g.FontSize + g.Style.FramePadding.y * 2.0f); + if (out_title_rect) { *out_title_rect = r; } + + r.Min.x += style.WindowBorderSize; + r.Max.x -= style.WindowBorderSize; + + float button_sz = g.FontSize; + + ImVec2 window_menu_button_pos = r.Min; + r.Min.x += style.FramePadding.x; + r.Max.x -= style.FramePadding.x; + if (node->HasCloseButton) + { + r.Max.x -= button_sz; + if (out_close_button_pos) *out_close_button_pos = ImVec2(r.Max.x - style.FramePadding.x, r.Min.y); + } + if (node->HasWindowMenuButton && style.WindowMenuButtonPosition == ImGuiDir_Left) + { + r.Min.x += button_sz + style.ItemInnerSpacing.x; + } + else if (node->HasWindowMenuButton && style.WindowMenuButtonPosition == ImGuiDir_Right) + { + r.Max.x -= button_sz + style.FramePadding.x; + window_menu_button_pos = ImVec2(r.Max.x, r.Min.y); + } + if (out_tab_bar_rect) { *out_tab_bar_rect = r; } + if (out_window_menu_button_pos) { *out_window_menu_button_pos = window_menu_button_pos; } +} + +void ImGui::DockNodeCalcSplitRects(ImVec2& pos_old, ImVec2& size_old, ImVec2& pos_new, ImVec2& size_new, ImGuiDir dir, ImVec2 size_new_desired) +{ + ImGuiContext& g = *GImGui; + const float dock_spacing = g.Style.ItemInnerSpacing.x; + const ImGuiAxis axis = (dir == ImGuiDir_Left || dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + pos_new[axis ^ 1] = pos_old[axis ^ 1]; + size_new[axis ^ 1] = size_old[axis ^ 1]; + + // Distribute size on given axis (with a desired size or equally) + const float w_avail = size_old[axis] - dock_spacing; + if (size_new_desired[axis] > 0.0f && size_new_desired[axis] <= w_avail * 0.5f) + { + size_new[axis] = size_new_desired[axis]; + size_old[axis] = IM_FLOOR(w_avail - size_new[axis]); + } + else + { + size_new[axis] = IM_FLOOR(w_avail * 0.5f); + size_old[axis] = IM_FLOOR(w_avail - size_new[axis]); + } + + // Position each node + if (dir == ImGuiDir_Right || dir == ImGuiDir_Down) + { + pos_new[axis] = pos_old[axis] + size_old[axis] + dock_spacing; + } + else if (dir == ImGuiDir_Left || dir == ImGuiDir_Up) + { + pos_new[axis] = pos_old[axis]; + pos_old[axis] = pos_new[axis] + size_new[axis] + dock_spacing; + } +} + +// Retrieve the drop rectangles for a given direction or for the center + perform hit testing. +bool ImGui::DockNodeCalcDropRectsAndTestMousePos(const ImRect& parent, ImGuiDir dir, ImRect& out_r, bool outer_docking, ImVec2* test_mouse_pos) +{ + ImGuiContext& g = *GImGui; + + const float parent_smaller_axis = ImMin(parent.GetWidth(), parent.GetHeight()); + const float hs_for_central_nodes = ImMin(g.FontSize * 1.5f, ImMax(g.FontSize * 0.5f, parent_smaller_axis / 8.0f)); + float hs_w; // Half-size, longer axis + float hs_h; // Half-size, smaller axis + ImVec2 off; // Distance from edge or center + if (outer_docking) + { + //hs_w = ImFloor(ImClamp(parent_smaller_axis - hs_for_central_nodes * 4.0f, g.FontSize * 0.5f, g.FontSize * 8.0f)); + //hs_h = ImFloor(hs_w * 0.15f); + //off = ImVec2(ImFloor(parent.GetWidth() * 0.5f - GetFrameHeightWithSpacing() * 1.4f - hs_h), ImFloor(parent.GetHeight() * 0.5f - GetFrameHeightWithSpacing() * 1.4f - hs_h)); + hs_w = ImFloor(hs_for_central_nodes * 1.50f); + hs_h = ImFloor(hs_for_central_nodes * 0.80f); + off = ImVec2(ImFloor(parent.GetWidth() * 0.5f - hs_h), ImFloor(parent.GetHeight() * 0.5f - hs_h)); + } + else + { + hs_w = ImFloor(hs_for_central_nodes); + hs_h = ImFloor(hs_for_central_nodes * 0.90f); + off = ImVec2(ImFloor(hs_w * 2.40f), ImFloor(hs_w * 2.40f)); + } + + ImVec2 c = ImFloor(parent.GetCenter()); + if (dir == ImGuiDir_None) { out_r = ImRect(c.x - hs_w, c.y - hs_w, c.x + hs_w, c.y + hs_w); } + else if (dir == ImGuiDir_Up) { out_r = ImRect(c.x - hs_w, c.y - off.y - hs_h, c.x + hs_w, c.y - off.y + hs_h); } + else if (dir == ImGuiDir_Down) { out_r = ImRect(c.x - hs_w, c.y + off.y - hs_h, c.x + hs_w, c.y + off.y + hs_h); } + else if (dir == ImGuiDir_Left) { out_r = ImRect(c.x - off.x - hs_h, c.y - hs_w, c.x - off.x + hs_h, c.y + hs_w); } + else if (dir == ImGuiDir_Right) { out_r = ImRect(c.x + off.x - hs_h, c.y - hs_w, c.x + off.x + hs_h, c.y + hs_w); } + + if (test_mouse_pos == NULL) + return false; + + ImRect hit_r = out_r; + if (!outer_docking) + { + // Custom hit testing for the 5-way selection, designed to reduce flickering when moving diagonally between sides + hit_r.Expand(ImFloor(hs_w * 0.30f)); + ImVec2 mouse_delta = (*test_mouse_pos - c); + float mouse_delta_len2 = ImLengthSqr(mouse_delta); + float r_threshold_center = hs_w * 1.4f; + float r_threshold_sides = hs_w * (1.4f + 1.2f); + if (mouse_delta_len2 < r_threshold_center * r_threshold_center) + return (dir == ImGuiDir_None); + if (mouse_delta_len2 < r_threshold_sides * r_threshold_sides) + return (dir == ImGetDirQuadrantFromDelta(mouse_delta.x, mouse_delta.y)); + } + return hit_r.Contains(*test_mouse_pos); +} + +// host_node may be NULL if the window doesn't have a DockNode already. +// FIXME-DOCK: This is misnamed since it's also doing the filtering. +static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDockPreviewData* data, bool is_explicit_target, bool is_outer_docking) +{ + ImGuiContext& g = *GImGui; + + // There is an edge case when docking into a dockspace which only has inactive nodes. + // In this case DockNodeTreeFindNodeByPos() will have selected a leaf node which is inactive. + // Because the inactive leaf node doesn't have proper pos/size yet, we'll use the root node as reference. + if (payload_node == NULL) + payload_node = payload_window->DockNodeAsHost; + ImGuiDockNode* ref_node_for_rect = (host_node && !host_node->IsVisible) ? DockNodeGetRootNode(host_node) : host_node; + if (ref_node_for_rect) + IM_ASSERT(ref_node_for_rect->IsVisible == true); + + // Filter, figure out where we are allowed to dock + ImGuiDockNodeFlags src_node_flags = payload_node ? payload_node->MergedFlags : payload_window->WindowClass.DockNodeFlagsOverrideSet; + ImGuiDockNodeFlags dst_node_flags = host_node ? host_node->MergedFlags : host_window->WindowClass.DockNodeFlagsOverrideSet; + data->IsCenterAvailable = true; + if (is_outer_docking) + data->IsCenterAvailable = false; + else if (dst_node_flags & ImGuiDockNodeFlags_NoDocking) + data->IsCenterAvailable = false; + else if (host_node && (dst_node_flags & ImGuiDockNodeFlags_NoDockingInCentralNode) && host_node->IsCentralNode()) + data->IsCenterAvailable = false; + else if ((!host_node || !host_node->IsEmpty()) && payload_node && payload_node->IsSplitNode() && (payload_node->OnlyNodeWithWindows == NULL)) // Is _visibly_ split? + data->IsCenterAvailable = false; + else if (dst_node_flags & ImGuiDockNodeFlags_NoDockingOverMe) + data->IsCenterAvailable = false; + else if ((src_node_flags & ImGuiDockNodeFlags_NoDockingOverOther) && (!host_node || !host_node->IsEmpty())) + data->IsCenterAvailable = false; + else if ((src_node_flags & ImGuiDockNodeFlags_NoDockingOverEmpty) && host_node && host_node->IsEmpty()) + data->IsCenterAvailable = false; + + data->IsSidesAvailable = true; + if ((dst_node_flags & ImGuiDockNodeFlags_NoSplit) || g.IO.ConfigDockingNoSplit) + data->IsSidesAvailable = false; + else if (!is_outer_docking && host_node && host_node->ParentNode == NULL && host_node->IsCentralNode()) + data->IsSidesAvailable = false; + else if ((dst_node_flags & ImGuiDockNodeFlags_NoDockingSplitMe) || (src_node_flags & ImGuiDockNodeFlags_NoDockingSplitOther)) + data->IsSidesAvailable = false; + + // Build a tentative future node (reuse same structure because it is practical. Shape will be readjusted when previewing a split) + data->FutureNode.HasCloseButton = (host_node ? host_node->HasCloseButton : host_window->HasCloseButton) || (payload_window->HasCloseButton); + data->FutureNode.HasWindowMenuButton = host_node ? true : ((host_window->Flags & ImGuiWindowFlags_NoCollapse) == 0); + data->FutureNode.Pos = ref_node_for_rect ? ref_node_for_rect->Pos : host_window->Pos; + data->FutureNode.Size = ref_node_for_rect ? ref_node_for_rect->Size : host_window->Size; + + // Calculate drop shapes geometry for allowed splitting directions + IM_ASSERT(ImGuiDir_None == -1); + data->SplitNode = host_node; + data->SplitDir = ImGuiDir_None; + data->IsSplitDirExplicit = false; + if (!host_window->Collapsed) + for (int dir = ImGuiDir_None; dir < ImGuiDir_COUNT; dir++) + { + if (dir == ImGuiDir_None && !data->IsCenterAvailable) + continue; + if (dir != ImGuiDir_None && !data->IsSidesAvailable) + continue; + if (DockNodeCalcDropRectsAndTestMousePos(data->FutureNode.Rect(), (ImGuiDir)dir, data->DropRectsDraw[dir+1], is_outer_docking, &g.IO.MousePos)) + { + data->SplitDir = (ImGuiDir)dir; + data->IsSplitDirExplicit = true; + } + } + + // When docking without holding Shift, we only allow and preview docking when hovering over a drop rect or over the title bar + data->IsDropAllowed = (data->SplitDir != ImGuiDir_None) || (data->IsCenterAvailable); + if (!is_explicit_target && !data->IsSplitDirExplicit && !g.IO.ConfigDockingWithShift) + data->IsDropAllowed = false; + + // Calculate split area + data->SplitRatio = 0.0f; + if (data->SplitDir != ImGuiDir_None) + { + ImGuiDir split_dir = data->SplitDir; + ImGuiAxis split_axis = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + ImVec2 pos_new, pos_old = data->FutureNode.Pos; + ImVec2 size_new, size_old = data->FutureNode.Size; + DockNodeCalcSplitRects(pos_old, size_old, pos_new, size_new, split_dir, payload_window->Size); + + // Calculate split ratio so we can pass it down the docking request + float split_ratio = ImSaturate(size_new[split_axis] / data->FutureNode.Size[split_axis]); + data->FutureNode.Pos = pos_new; + data->FutureNode.Size = size_new; + data->SplitRatio = (split_dir == ImGuiDir_Right || split_dir == ImGuiDir_Down) ? (1.0f - split_ratio) : (split_ratio); + } +} + +static void ImGui::DockNodePreviewDockRender(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* root_payload, const ImGuiDockPreviewData* data) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.CurrentWindow == host_window); // Because we rely on font size to calculate tab sizes + + // With this option, we only display the preview on the target viewport, and the payload viewport is made transparent. + // To compensate for the single layer obstructed by the payload, we'll increase the alpha of the preview nodes. + const bool is_transparent_payload = g.IO.ConfigDockingTransparentPayload; + + // In case the two windows involved are on different viewports, we will draw the overlay on each of them. + int overlay_draw_lists_count = 0; + ImDrawList* overlay_draw_lists[2]; + overlay_draw_lists[overlay_draw_lists_count++] = GetForegroundDrawList(host_window->Viewport); + if (host_window->Viewport != root_payload->Viewport && !is_transparent_payload) + overlay_draw_lists[overlay_draw_lists_count++] = GetForegroundDrawList(root_payload->Viewport); + + // Draw main preview rectangle + const ImU32 overlay_col_main = GetColorU32(ImGuiCol_DockingPreview, is_transparent_payload ? 0.60f : 0.40f); + const ImU32 overlay_col_drop = GetColorU32(ImGuiCol_DockingPreview, is_transparent_payload ? 0.90f : 0.70f); + const ImU32 overlay_col_drop_hovered = GetColorU32(ImGuiCol_DockingPreview, is_transparent_payload ? 1.20f : 1.00f); + const ImU32 overlay_col_lines = GetColorU32(ImGuiCol_NavWindowingHighlight, is_transparent_payload ? 0.80f : 0.60f); + + // Display area preview + const bool can_preview_tabs = (root_payload->DockNodeAsHost == NULL || root_payload->DockNodeAsHost->Windows.Size > 0); + if (data->IsDropAllowed) + { + ImRect overlay_rect = data->FutureNode.Rect(); + if (data->SplitDir == ImGuiDir_None && can_preview_tabs) + overlay_rect.Min.y += GetFrameHeight(); + if (data->SplitDir != ImGuiDir_None || data->IsCenterAvailable) + for (int overlay_n = 0; overlay_n < overlay_draw_lists_count; overlay_n++) + overlay_draw_lists[overlay_n]->AddRectFilled(overlay_rect.Min, overlay_rect.Max, overlay_col_main, host_window->WindowRounding, CalcRoundingFlagsForRectInRect(overlay_rect, host_window->Rect(), DOCKING_SPLITTER_SIZE)); + } + + // Display tab shape/label preview unless we are splitting node (it generally makes the situation harder to read) + if (data->IsDropAllowed && can_preview_tabs && data->SplitDir == ImGuiDir_None && data->IsCenterAvailable) + { + // Compute target tab bar geometry so we can locate our preview tabs + ImRect tab_bar_rect; + DockNodeCalcTabBarLayout(&data->FutureNode, NULL, &tab_bar_rect, NULL, NULL); + ImVec2 tab_pos = tab_bar_rect.Min; + if (host_node && host_node->TabBar) + { + if (!host_node->IsHiddenTabBar() && !host_node->IsNoTabBar()) + tab_pos.x += host_node->TabBar->WidthAllTabs + g.Style.ItemInnerSpacing.x; // We don't use OffsetNewTab because when using non-persistent-order tab bar it is incremented with each Tab submission. + else + tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_node->Windows[0]).x; + } + else if (!(host_window->Flags & ImGuiWindowFlags_DockNodeHost)) + { + tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_window).x; // Account for slight offset which will be added when changing from title bar to tab bar + } + + // Draw tab shape/label preview (payload may be a loose window or a host window carrying multiple tabbed windows) + if (root_payload->DockNodeAsHost) + IM_ASSERT(root_payload->DockNodeAsHost->Windows.Size <= root_payload->DockNodeAsHost->TabBar->Tabs.Size); + ImGuiTabBar* tab_bar_with_payload = root_payload->DockNodeAsHost ? root_payload->DockNodeAsHost->TabBar : NULL; + const int payload_count = tab_bar_with_payload ? tab_bar_with_payload->Tabs.Size : 1; + for (int payload_n = 0; payload_n < payload_count; payload_n++) + { + // DockNode's TabBar may have non-window Tabs manually appended by user + ImGuiWindow* payload_window = tab_bar_with_payload ? tab_bar_with_payload->Tabs[payload_n].Window : root_payload; + if (tab_bar_with_payload && payload_window == NULL) + continue; + if (!DockNodeIsDropAllowedOne(payload_window, host_window)) + continue; + + // Calculate the tab bounding box for each payload window + ImVec2 tab_size = TabItemCalcSize(payload_window); + ImRect tab_bb(tab_pos.x, tab_pos.y, tab_pos.x + tab_size.x, tab_pos.y + tab_size.y); + tab_pos.x += tab_size.x + g.Style.ItemInnerSpacing.x; + const ImU32 overlay_col_text = GetColorU32(payload_window->DockStyle.Colors[ImGuiWindowDockStyleCol_Text]); + const ImU32 overlay_col_tabs = GetColorU32(payload_window->DockStyle.Colors[ImGuiWindowDockStyleCol_TabActive]); + PushStyleColor(ImGuiCol_Text, overlay_col_text); + for (int overlay_n = 0; overlay_n < overlay_draw_lists_count; overlay_n++) + { + ImGuiTabItemFlags tab_flags = ImGuiTabItemFlags_Preview | ((payload_window->Flags & ImGuiWindowFlags_UnsavedDocument) ? ImGuiTabItemFlags_UnsavedDocument : 0); + if (!tab_bar_rect.Contains(tab_bb)) + overlay_draw_lists[overlay_n]->PushClipRect(tab_bar_rect.Min, tab_bar_rect.Max); + TabItemBackground(overlay_draw_lists[overlay_n], tab_bb, tab_flags, overlay_col_tabs); + TabItemLabelAndCloseButton(overlay_draw_lists[overlay_n], tab_bb, tab_flags, g.Style.FramePadding, payload_window->Name, 0, 0, false, NULL, NULL); + if (!tab_bar_rect.Contains(tab_bb)) + overlay_draw_lists[overlay_n]->PopClipRect(); + } + PopStyleColor(); + } + } + + // Display drop boxes + const float overlay_rounding = ImMax(3.0f, g.Style.FrameRounding); + for (int dir = ImGuiDir_None; dir < ImGuiDir_COUNT; dir++) + { + if (!data->DropRectsDraw[dir + 1].IsInverted()) + { + ImRect draw_r = data->DropRectsDraw[dir + 1]; + ImRect draw_r_in = draw_r; + draw_r_in.Expand(-2.0f); + ImU32 overlay_col = (data->SplitDir == (ImGuiDir)dir && data->IsSplitDirExplicit) ? overlay_col_drop_hovered : overlay_col_drop; + for (int overlay_n = 0; overlay_n < overlay_draw_lists_count; overlay_n++) + { + ImVec2 center = ImFloor(draw_r_in.GetCenter()); + overlay_draw_lists[overlay_n]->AddRectFilled(draw_r.Min, draw_r.Max, overlay_col, overlay_rounding); + overlay_draw_lists[overlay_n]->AddRect(draw_r_in.Min, draw_r_in.Max, overlay_col_lines, overlay_rounding); + if (dir == ImGuiDir_Left || dir == ImGuiDir_Right) + overlay_draw_lists[overlay_n]->AddLine(ImVec2(center.x, draw_r_in.Min.y), ImVec2(center.x, draw_r_in.Max.y), overlay_col_lines); + if (dir == ImGuiDir_Up || dir == ImGuiDir_Down) + overlay_draw_lists[overlay_n]->AddLine(ImVec2(draw_r_in.Min.x, center.y), ImVec2(draw_r_in.Max.x, center.y), overlay_col_lines); + } + } + + // Stop after ImGuiDir_None + if ((host_node && (host_node->MergedFlags & ImGuiDockNodeFlags_NoSplit)) || g.IO.ConfigDockingNoSplit) + return; + } +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockNode Tree manipulation functions +//----------------------------------------------------------------------------- +// - DockNodeTreeSplit() +// - DockNodeTreeMerge() +// - DockNodeTreeUpdatePosSize() +// - DockNodeTreeUpdateSplitterFindTouchingNode() +// - DockNodeTreeUpdateSplitter() +// - DockNodeTreeFindFallbackLeafNode() +// - DockNodeTreeFindNodeByPos() +//----------------------------------------------------------------------------- + +void ImGui::DockNodeTreeSplit(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiAxis split_axis, int split_inheritor_child_idx, float split_ratio, ImGuiDockNode* new_node) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(split_axis != ImGuiAxis_None); + + ImGuiDockNode* child_0 = (new_node && split_inheritor_child_idx != 0) ? new_node : DockContextAddNode(ctx, 0); + child_0->ParentNode = parent_node; + + ImGuiDockNode* child_1 = (new_node && split_inheritor_child_idx != 1) ? new_node : DockContextAddNode(ctx, 0); + child_1->ParentNode = parent_node; + + ImGuiDockNode* child_inheritor = (split_inheritor_child_idx == 0) ? child_0 : child_1; + DockNodeMoveChildNodes(child_inheritor, parent_node); + parent_node->ChildNodes[0] = child_0; + parent_node->ChildNodes[1] = child_1; + parent_node->ChildNodes[split_inheritor_child_idx]->VisibleWindow = parent_node->VisibleWindow; + parent_node->SplitAxis = split_axis; + parent_node->VisibleWindow = NULL; + parent_node->AuthorityForPos = parent_node->AuthorityForSize = ImGuiDataAuthority_DockNode; + + float size_avail = (parent_node->Size[split_axis] - DOCKING_SPLITTER_SIZE); + size_avail = ImMax(size_avail, g.Style.WindowMinSize[split_axis] * 2.0f); + IM_ASSERT(size_avail > 0.0f); // If you created a node manually with DockBuilderAddNode(), you need to also call DockBuilderSetNodeSize() before splitting. + child_0->SizeRef = child_1->SizeRef = parent_node->Size; + child_0->SizeRef[split_axis] = ImFloor(size_avail * split_ratio); + child_1->SizeRef[split_axis] = ImFloor(size_avail - child_0->SizeRef[split_axis]); + + DockNodeMoveWindows(parent_node->ChildNodes[split_inheritor_child_idx], parent_node); + DockSettingsRenameNodeReferences(parent_node->ID, parent_node->ChildNodes[split_inheritor_child_idx]->ID); + DockNodeUpdateHasCentralNodeChild(DockNodeGetRootNode(parent_node)); + DockNodeTreeUpdatePosSize(parent_node, parent_node->Pos, parent_node->Size); + + // Flags transfer (e.g. this is where we transfer the ImGuiDockNodeFlags_CentralNode property) + child_0->SharedFlags = parent_node->SharedFlags & ImGuiDockNodeFlags_SharedFlagsInheritMask_; + child_1->SharedFlags = parent_node->SharedFlags & ImGuiDockNodeFlags_SharedFlagsInheritMask_; + child_inheritor->LocalFlags = parent_node->LocalFlags & ImGuiDockNodeFlags_LocalFlagsTransferMask_; + parent_node->LocalFlags &= ~ImGuiDockNodeFlags_LocalFlagsTransferMask_; + child_0->UpdateMergedFlags(); + child_1->UpdateMergedFlags(); + parent_node->UpdateMergedFlags(); + if (child_inheritor->IsCentralNode()) + DockNodeGetRootNode(parent_node)->CentralNode = child_inheritor; +} + +void ImGui::DockNodeTreeMerge(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiDockNode* merge_lead_child) +{ + // When called from DockContextProcessUndockNode() it is possible that one of the child is NULL. + ImGuiContext& g = *GImGui; + ImGuiDockNode* child_0 = parent_node->ChildNodes[0]; + ImGuiDockNode* child_1 = parent_node->ChildNodes[1]; + IM_ASSERT(child_0 || child_1); + IM_ASSERT(merge_lead_child == child_0 || merge_lead_child == child_1); + if ((child_0 && child_0->Windows.Size > 0) || (child_1 && child_1->Windows.Size > 0)) + { + IM_ASSERT(parent_node->TabBar == NULL); + IM_ASSERT(parent_node->Windows.Size == 0); + } + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeTreeMerge: 0x%08X + 0x%08X back into parent 0x%08X\n", child_0 ? child_0->ID : 0, child_1 ? child_1->ID : 0, parent_node->ID); + + ImVec2 backup_last_explicit_size = parent_node->SizeRef; + DockNodeMoveChildNodes(parent_node, merge_lead_child); + if (child_0) + { + DockNodeMoveWindows(parent_node, child_0); // Generally only 1 of the 2 child node will have windows + DockSettingsRenameNodeReferences(child_0->ID, parent_node->ID); + } + if (child_1) + { + DockNodeMoveWindows(parent_node, child_1); + DockSettingsRenameNodeReferences(child_1->ID, parent_node->ID); + } + DockNodeApplyPosSizeToWindows(parent_node); + parent_node->AuthorityForPos = parent_node->AuthorityForSize = parent_node->AuthorityForViewport = ImGuiDataAuthority_Auto; + parent_node->VisibleWindow = merge_lead_child->VisibleWindow; + parent_node->SizeRef = backup_last_explicit_size; + + // Flags transfer + parent_node->LocalFlags &= ~ImGuiDockNodeFlags_LocalFlagsTransferMask_; // Preserve Dockspace flag + parent_node->LocalFlags |= (child_0 ? child_0->LocalFlags : 0) & ImGuiDockNodeFlags_LocalFlagsTransferMask_; + parent_node->LocalFlags |= (child_1 ? child_1->LocalFlags : 0) & ImGuiDockNodeFlags_LocalFlagsTransferMask_; + parent_node->LocalFlagsInWindows = (child_0 ? child_0->LocalFlagsInWindows : 0) | (child_1 ? child_1->LocalFlagsInWindows : 0); // FIXME: Would be more consistent to update from actual windows + parent_node->UpdateMergedFlags(); + + if (child_0) + { + ctx->DockContext.Nodes.SetVoidPtr(child_0->ID, NULL); + IM_DELETE(child_0); + } + if (child_1) + { + ctx->DockContext.Nodes.SetVoidPtr(child_1->ID, NULL); + IM_DELETE(child_1); + } +} + +// Update Pos/Size for a node hierarchy (don't affect child Windows yet) +// (Depth-first, Pre-Order) +void ImGui::DockNodeTreeUpdatePosSize(ImGuiDockNode* node, ImVec2 pos, ImVec2 size, ImGuiDockNode* only_write_to_single_node) +{ + // During the regular dock node update we write to all nodes. + // 'only_write_to_single_node' is only set when turning a node visible mid-frame and we need its size right-away. + const bool write_to_node = only_write_to_single_node == NULL || only_write_to_single_node == node; + if (write_to_node) + { + node->Pos = pos; + node->Size = size; + } + + if (node->IsLeafNode()) + return; + + ImGuiDockNode* child_0 = node->ChildNodes[0]; + ImGuiDockNode* child_1 = node->ChildNodes[1]; + ImVec2 child_0_pos = pos, child_1_pos = pos; + ImVec2 child_0_size = size, child_1_size = size; + + const bool child_0_is_toward_single_node = (only_write_to_single_node != NULL && DockNodeIsInHierarchyOf(only_write_to_single_node, child_0)); + const bool child_1_is_toward_single_node = (only_write_to_single_node != NULL && DockNodeIsInHierarchyOf(only_write_to_single_node, child_1)); + const bool child_0_is_or_will_be_visible = child_0->IsVisible || child_0_is_toward_single_node; + const bool child_1_is_or_will_be_visible = child_1->IsVisible || child_1_is_toward_single_node; + + if (child_0_is_or_will_be_visible && child_1_is_or_will_be_visible) + { + ImGuiContext& g = *GImGui; + const float spacing = DOCKING_SPLITTER_SIZE; + const ImGuiAxis axis = (ImGuiAxis)node->SplitAxis; + const float size_avail = ImMax(size[axis] - spacing, 0.0f); + + // Size allocation policy + // 1) The first 0..WindowMinSize[axis]*2 are allocated evenly to both windows. + const float size_min_each = ImFloor(ImMin(size_avail, g.Style.WindowMinSize[axis] * 2.0f) * 0.5f); + + // FIXME: Blocks 2) and 3) are essentially doing nearly the same thing. + // Difference are: write-back to SizeRef; application of a minimum size; rounding before ImFloor() + // Clarify and rework differences between Size & SizeRef and purpose of WantLockSizeOnce + + // 2) Process locked absolute size (during a splitter resize we preserve the child of nodes not touching the splitter edge) + if (child_0->WantLockSizeOnce && !child_1->WantLockSizeOnce) + { + child_0_size[axis] = child_0->SizeRef[axis] = ImMin(size_avail - 1.0f, child_0->Size[axis]); + child_1_size[axis] = child_1->SizeRef[axis] = (size_avail - child_0_size[axis]); + IM_ASSERT(child_0->SizeRef[axis] > 0.0f && child_1->SizeRef[axis] > 0.0f); + } + else if (child_1->WantLockSizeOnce && !child_0->WantLockSizeOnce) + { + child_1_size[axis] = child_1->SizeRef[axis] = ImMin(size_avail - 1.0f, child_1->Size[axis]); + child_0_size[axis] = child_0->SizeRef[axis] = (size_avail - child_1_size[axis]); + IM_ASSERT(child_0->SizeRef[axis] > 0.0f && child_1->SizeRef[axis] > 0.0f); + } + else if (child_0->WantLockSizeOnce && child_1->WantLockSizeOnce) + { + // FIXME-DOCK: We cannot honor the requested size, so apply ratio. + // Currently this path will only be taken if code programmatically sets WantLockSizeOnce + float split_ratio = child_0_size[axis] / (child_0_size[axis] + child_1_size[axis]); + child_0_size[axis] = child_0->SizeRef[axis] = ImFloor(size_avail * split_ratio); + child_1_size[axis] = child_1->SizeRef[axis] = (size_avail - child_0_size[axis]); + IM_ASSERT(child_0->SizeRef[axis] > 0.0f && child_1->SizeRef[axis] > 0.0f); + } + + // 3) If one window is the central node (~ use remaining space, should be made explicit!), use explicit size from the other, and remainder for the central node + else if (child_0->SizeRef[axis] != 0.0f && child_1->HasCentralNodeChild) + { + child_0_size[axis] = ImMin(size_avail - size_min_each, child_0->SizeRef[axis]); + child_1_size[axis] = (size_avail - child_0_size[axis]); + } + else if (child_1->SizeRef[axis] != 0.0f && child_0->HasCentralNodeChild) + { + child_1_size[axis] = ImMin(size_avail - size_min_each, child_1->SizeRef[axis]); + child_0_size[axis] = (size_avail - child_1_size[axis]); + } + else + { + // 4) Otherwise distribute according to the relative ratio of each SizeRef value + float split_ratio = child_0->SizeRef[axis] / (child_0->SizeRef[axis] + child_1->SizeRef[axis]); + child_0_size[axis] = ImMax(size_min_each, ImFloor(size_avail * split_ratio + 0.5f)); + child_1_size[axis] = (size_avail - child_0_size[axis]); + } + + child_1_pos[axis] += spacing + child_0_size[axis]; + } + + if (only_write_to_single_node == NULL) + child_0->WantLockSizeOnce = child_1->WantLockSizeOnce = false; + + const bool child_0_recurse = only_write_to_single_node ? child_0_is_toward_single_node : child_0->IsVisible; + const bool child_1_recurse = only_write_to_single_node ? child_1_is_toward_single_node : child_1->IsVisible; + if (child_0_recurse) + DockNodeTreeUpdatePosSize(child_0, child_0_pos, child_0_size); + if (child_1_recurse) + DockNodeTreeUpdatePosSize(child_1, child_1_pos, child_1_size); +} + +static void DockNodeTreeUpdateSplitterFindTouchingNode(ImGuiDockNode* node, ImGuiAxis axis, int side, ImVector* touching_nodes) +{ + if (node->IsLeafNode()) + { + touching_nodes->push_back(node); + return; + } + if (node->ChildNodes[0]->IsVisible) + if (node->SplitAxis != axis || side == 0 || !node->ChildNodes[1]->IsVisible) + DockNodeTreeUpdateSplitterFindTouchingNode(node->ChildNodes[0], axis, side, touching_nodes); + if (node->ChildNodes[1]->IsVisible) + if (node->SplitAxis != axis || side == 1 || !node->ChildNodes[0]->IsVisible) + DockNodeTreeUpdateSplitterFindTouchingNode(node->ChildNodes[1], axis, side, touching_nodes); +} + +// (Depth-First, Pre-Order) +void ImGui::DockNodeTreeUpdateSplitter(ImGuiDockNode* node) +{ + if (node->IsLeafNode()) + return; + + ImGuiContext& g = *GImGui; + + ImGuiDockNode* child_0 = node->ChildNodes[0]; + ImGuiDockNode* child_1 = node->ChildNodes[1]; + if (child_0->IsVisible && child_1->IsVisible) + { + // Bounding box of the splitter cover the space between both nodes (w = Spacing, h = Size[xy^1] for when splitting horizontally) + const ImGuiAxis axis = (ImGuiAxis)node->SplitAxis; + IM_ASSERT(axis != ImGuiAxis_None); + ImRect bb; + bb.Min = child_0->Pos; + bb.Max = child_1->Pos; + bb.Min[axis] += child_0->Size[axis]; + bb.Max[axis ^ 1] += child_1->Size[axis ^ 1]; + //if (g.IO.KeyCtrl) GetForegroundDrawList(g.CurrentWindow->Viewport)->AddRect(bb.Min, bb.Max, IM_COL32(255,0,255,255)); + + const ImGuiDockNodeFlags merged_flags = child_0->MergedFlags | child_1->MergedFlags; // Merged flags for BOTH childs + const ImGuiDockNodeFlags no_resize_axis_flag = (axis == ImGuiAxis_X) ? ImGuiDockNodeFlags_NoResizeX : ImGuiDockNodeFlags_NoResizeY; + if ((merged_flags & ImGuiDockNodeFlags_NoResize) || (merged_flags & no_resize_axis_flag)) + { + ImGuiWindow* window = g.CurrentWindow; + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Separator), g.Style.FrameRounding); + } + else + { + //bb.Min[axis] += 1; // Display a little inward so highlight doesn't connect with nearby tabs on the neighbor node. + //bb.Max[axis] -= 1; + PushID(node->ID); + + // Find resizing limits by gathering list of nodes that are touching the splitter line. + ImVector touching_nodes[2]; + float min_size = g.Style.WindowMinSize[axis]; + float resize_limits[2]; + resize_limits[0] = node->ChildNodes[0]->Pos[axis] + min_size; + resize_limits[1] = node->ChildNodes[1]->Pos[axis] + node->ChildNodes[1]->Size[axis] - min_size; + + ImGuiID splitter_id = GetID("##Splitter"); + if (g.ActiveId == splitter_id) // Only process when splitter is active + { + DockNodeTreeUpdateSplitterFindTouchingNode(child_0, axis, 1, &touching_nodes[0]); + DockNodeTreeUpdateSplitterFindTouchingNode(child_1, axis, 0, &touching_nodes[1]); + for (int touching_node_n = 0; touching_node_n < touching_nodes[0].Size; touching_node_n++) + resize_limits[0] = ImMax(resize_limits[0], touching_nodes[0][touching_node_n]->Rect().Min[axis] + min_size); + for (int touching_node_n = 0; touching_node_n < touching_nodes[1].Size; touching_node_n++) + resize_limits[1] = ImMin(resize_limits[1], touching_nodes[1][touching_node_n]->Rect().Max[axis] - min_size); + + // [DEBUG] Render touching nodes & limits + /* + ImDrawList* draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); + for (int n = 0; n < 2; n++) + { + for (int touching_node_n = 0; touching_node_n < touching_nodes[n].Size; touching_node_n++) + draw_list->AddRect(touching_nodes[n][touching_node_n]->Pos, touching_nodes[n][touching_node_n]->Pos + touching_nodes[n][touching_node_n]->Size, IM_COL32(0, 255, 0, 255)); + if (axis == ImGuiAxis_X) + draw_list->AddLine(ImVec2(resize_limits[n], node->ChildNodes[n]->Pos.y), ImVec2(resize_limits[n], node->ChildNodes[n]->Pos.y + node->ChildNodes[n]->Size.y), IM_COL32(255, 0, 255, 255), 3.0f); + else + draw_list->AddLine(ImVec2(node->ChildNodes[n]->Pos.x, resize_limits[n]), ImVec2(node->ChildNodes[n]->Pos.x + node->ChildNodes[n]->Size.x, resize_limits[n]), IM_COL32(255, 0, 255, 255), 3.0f); + } + */ + } + + // Use a short delay before highlighting the splitter (and changing the mouse cursor) in order for regular mouse movement to not highlight many splitters + float cur_size_0 = child_0->Size[axis]; + float cur_size_1 = child_1->Size[axis]; + float min_size_0 = resize_limits[0] - child_0->Pos[axis]; + float min_size_1 = child_1->Pos[axis] + child_1->Size[axis] - resize_limits[1]; + ImU32 bg_col = GetColorU32(ImGuiCol_WindowBg); + if (SplitterBehavior(bb, GetID("##Splitter"), axis, &cur_size_0, &cur_size_1, min_size_0, min_size_1, WINDOWS_HOVER_PADDING, WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER, bg_col)) + { + if (touching_nodes[0].Size > 0 && touching_nodes[1].Size > 0) + { + child_0->Size[axis] = child_0->SizeRef[axis] = cur_size_0; + child_1->Pos[axis] -= cur_size_1 - child_1->Size[axis]; + child_1->Size[axis] = child_1->SizeRef[axis] = cur_size_1; + + // Lock the size of every node that is a sibling of the node we are touching + // This might be less desirable if we can merge sibling of a same axis into the same parental level. + for (int side_n = 0; side_n < 2; side_n++) + for (int touching_node_n = 0; touching_node_n < touching_nodes[side_n].Size; touching_node_n++) + { + ImGuiDockNode* touching_node = touching_nodes[side_n][touching_node_n]; + //ImDrawList* draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); + //draw_list->AddRect(touching_node->Pos, touching_node->Pos + touching_node->Size, IM_COL32(255, 128, 0, 255)); + while (touching_node->ParentNode != node) + { + if (touching_node->ParentNode->SplitAxis == axis) + { + // Mark other node so its size will be preserved during the upcoming call to DockNodeTreeUpdatePosSize(). + ImGuiDockNode* node_to_preserve = touching_node->ParentNode->ChildNodes[side_n]; + node_to_preserve->WantLockSizeOnce = true; + //draw_list->AddRect(touching_node->Pos, touching_node->Rect().Max, IM_COL32(255, 0, 0, 255)); + //draw_list->AddRectFilled(node_to_preserve->Pos, node_to_preserve->Rect().Max, IM_COL32(0, 255, 0, 100)); + } + touching_node = touching_node->ParentNode; + } + } + + DockNodeTreeUpdatePosSize(child_0, child_0->Pos, child_0->Size); + DockNodeTreeUpdatePosSize(child_1, child_1->Pos, child_1->Size); + MarkIniSettingsDirty(); + } + } + PopID(); + } + } + + if (child_0->IsVisible) + DockNodeTreeUpdateSplitter(child_0); + if (child_1->IsVisible) + DockNodeTreeUpdateSplitter(child_1); +} + +ImGuiDockNode* ImGui::DockNodeTreeFindFallbackLeafNode(ImGuiDockNode* node) +{ + if (node->IsLeafNode()) + return node; + if (ImGuiDockNode* leaf_node = DockNodeTreeFindFallbackLeafNode(node->ChildNodes[0])) + return leaf_node; + if (ImGuiDockNode* leaf_node = DockNodeTreeFindFallbackLeafNode(node->ChildNodes[1])) + return leaf_node; + return NULL; +} + +ImGuiDockNode* ImGui::DockNodeTreeFindVisibleNodeByPos(ImGuiDockNode* node, ImVec2 pos) +{ + if (!node->IsVisible) + return NULL; + + const float dock_spacing = 0.0f;// g.Style.ItemInnerSpacing.x; // FIXME: Relation to DOCKING_SPLITTER_SIZE? + ImRect r(node->Pos, node->Pos + node->Size); + r.Expand(dock_spacing * 0.5f); + bool inside = r.Contains(pos); + if (!inside) + return NULL; + + if (node->IsLeafNode()) + return node; + if (ImGuiDockNode* hovered_node = DockNodeTreeFindVisibleNodeByPos(node->ChildNodes[0], pos)) + return hovered_node; + if (ImGuiDockNode* hovered_node = DockNodeTreeFindVisibleNodeByPos(node->ChildNodes[1], pos)) + return hovered_node; + + // This means we are hovering over the splitter/spacing of a parent node + return node; +} + +//----------------------------------------------------------------------------- +// Docking: Public Functions (SetWindowDock, DockSpace, DockSpaceOverViewport) +//----------------------------------------------------------------------------- +// - SetWindowDock() [Internal] +// - DockSpace() +// - DockSpaceOverViewport() +//----------------------------------------------------------------------------- + +// [Internal] Called via SetNextWindowDockID() +void ImGui::SetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowDockAllowFlags & cond) == 0) + return; + window->SetWindowDockAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + if (window->DockId == dock_id) + return; + + // If the user attempt to set a dock id that is a split node, we'll dig within to find a suitable docking spot + ImGuiContext* ctx = GImGui; + if (ImGuiDockNode* new_node = DockContextFindNodeByID(ctx, dock_id)) + if (new_node->IsSplitNode()) + { + // Policy: Find central node or latest focused node. We first move back to our root node. + new_node = DockNodeGetRootNode(new_node); + if (new_node->CentralNode) + { + IM_ASSERT(new_node->CentralNode->IsCentralNode()); + dock_id = new_node->CentralNode->ID; + } + else + { + dock_id = new_node->LastFocusedNodeId; + } + } + + if (window->DockId == dock_id) + return; + + if (window->DockNode) + DockNodeRemoveWindow(window->DockNode, window, 0); + window->DockId = dock_id; +} + +// Create an explicit dockspace node within an existing window. Also expose dock node flags and creates a CentralNode by default. +// The Central Node is always displayed even when empty and shrink/extend according to the requested size of its neighbors. +// DockSpace() needs to be submitted _before_ any window they can host. If you use a dockspace, submit it early in your app. +ImGuiID ImGui::DockSpace(ImGuiID id, const ImVec2& size_arg, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + ImGuiWindow* window = GetCurrentWindow(); + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + return 0; + + // Early out if parent window is hidden/collapsed + // This is faster but also DockNodeUpdateTabBar() relies on TabBarLayout() running (which won't if SkipItems=true) to set NextSelectedTabId = 0). See #2960. + // If for whichever reason this is causing problem we would need to ensure that DockNodeUpdateTabBar() ends up clearing NextSelectedTabId even if SkipItems=true. + if (window->SkipItems) + flags |= ImGuiDockNodeFlags_KeepAliveOnly; + + IM_ASSERT((flags & ImGuiDockNodeFlags_DockSpace) == 0); + IM_ASSERT(id != 0); + ImGuiDockNode* node = DockContextFindNodeByID(ctx, id); + if (!node) + { + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSpace: dockspace node 0x%08X created\n", id); + node = DockContextAddNode(ctx, id); + node->SetLocalFlags(ImGuiDockNodeFlags_CentralNode); + } + if (window_class && window_class->ClassId != node->WindowClass.ClassId) + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSpace: dockspace node 0x%08X: setup WindowClass 0x%08X -> 0x%08X\n", id, node->WindowClass.ClassId, window_class->ClassId); + node->SharedFlags = flags; + node->WindowClass = window_class ? *window_class : ImGuiWindowClass(); + + // When a DockSpace transitioned form implicit to explicit this may be called a second time + // It is possible that the node has already been claimed by a docked window which appeared before the DockSpace() node, so we overwrite IsDockSpace again. + if (node->LastFrameActive == g.FrameCount && !(flags & ImGuiDockNodeFlags_KeepAliveOnly)) + { + IM_ASSERT(node->IsDockSpace() == false && "Cannot call DockSpace() twice a frame with the same ID"); + node->SetLocalFlags(node->LocalFlags | ImGuiDockNodeFlags_DockSpace); + return id; + } + node->SetLocalFlags(node->LocalFlags | ImGuiDockNodeFlags_DockSpace); + + // Keep alive mode, this is allow windows docked into this node so stay docked even if they are not visible + if (flags & ImGuiDockNodeFlags_KeepAliveOnly) + { + node->LastFrameAlive = g.FrameCount; + return id; + } + + const ImVec2 content_avail = GetContentRegionAvail(); + ImVec2 size = ImFloor(size_arg); + if (size.x <= 0.0f) + size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too much issues) + if (size.y <= 0.0f) + size.y = ImMax(content_avail.y + size.y, 4.0f); + IM_ASSERT(size.x > 0.0f && size.y > 0.0f); + + node->Pos = window->DC.CursorPos; + node->Size = node->SizeRef = size; + SetNextWindowPos(node->Pos); + SetNextWindowSize(node->Size); + g.NextWindowData.PosUndock = false; + + // FIXME-DOCK: Why do we need a child window to host a dockspace, could we host it in the existing window? + // FIXME-DOCK: What is the reason for not simply calling BeginChild()? (OK to have a reason but should be commented) + ImGuiWindowFlags window_flags = ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_DockNodeHost; + window_flags |= ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar; + window_flags |= ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse; + window_flags |= ImGuiWindowFlags_NoBackground; + + char title[256]; + ImFormatString(title, IM_ARRAYSIZE(title), "%s/DockSpace_%08X", window->Name, id); + + PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0.0f); + Begin(title, NULL, window_flags); + PopStyleVar(); + + ImGuiWindow* host_window = g.CurrentWindow; + DockNodeSetupHostWindow(node, host_window); + host_window->ChildId = window->GetID(title); + node->OnlyNodeWithWindows = NULL; + + IM_ASSERT(node->IsRootNode()); + + // We need to handle the rare case were a central node is missing. + // This can happen if the node was first created manually with DockBuilderAddNode() but _without_ the ImGuiDockNodeFlags_Dockspace. + // Doing it correctly would set the _CentralNode flags, which would then propagate according to subsequent split. + // It would also be ambiguous to attempt to assign a central node while there are split nodes, so we wait until there's a single node remaining. + // The specific sub-property of _CentralNode we are interested in recovering here is the "Don't delete when empty" property, + // as it doesn't make sense for an empty dockspace to not have this property. + if (node->IsLeafNode() && !node->IsCentralNode()) + node->SetLocalFlags(node->LocalFlags | ImGuiDockNodeFlags_CentralNode); + + // Update the node + DockNodeUpdate(node); + + End(); + ItemSize(size); + return id; +} + +// Tips: Use with ImGuiDockNodeFlags_PassthruCentralNode! +// The limitation with this call is that your window won't have a menu bar. +// Even though we could pass window flags, it would also require the user to be able to call BeginMenuBar() somehow meaning we can't Begin/End in a single function. +// But you can also use BeginMainMenuBar(). If you really want a menu bar inside the same window as the one hosting the dockspace, you will need to copy this code somewhere and tweak it. +ImGuiID ImGui::DockSpaceOverViewport(const ImGuiViewport* viewport, ImGuiDockNodeFlags dockspace_flags, const ImGuiWindowClass* window_class) +{ + if (viewport == NULL) + viewport = GetMainViewport(); + + SetNextWindowPos(viewport->WorkPos); + SetNextWindowSize(viewport->WorkSize); + SetNextWindowViewport(viewport->ID); + + ImGuiWindowFlags host_window_flags = 0; + host_window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoDocking; + host_window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus; + if (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode) + host_window_flags |= ImGuiWindowFlags_NoBackground; + + char label[32]; + ImFormatString(label, IM_ARRAYSIZE(label), "DockSpaceViewport_%08X", viewport->ID); + + PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + Begin(label, NULL, host_window_flags); + PopStyleVar(3); + + ImGuiID dockspace_id = GetID("DockSpace"); + DockSpace(dockspace_id, ImVec2(0.0f, 0.0f), dockspace_flags, window_class); + End(); + + return dockspace_id; +} + +//----------------------------------------------------------------------------- +// Docking: Builder Functions +//----------------------------------------------------------------------------- +// Very early end-user API to manipulate dock nodes. +// Only available in imgui_internal.h. Expect this API to change/break! +// It is expected that those functions are all called _before_ the dockspace node submission. +//----------------------------------------------------------------------------- +// - DockBuilderDockWindow() +// - DockBuilderGetNode() +// - DockBuilderSetNodePos() +// - DockBuilderSetNodeSize() +// - DockBuilderAddNode() +// - DockBuilderRemoveNode() +// - DockBuilderRemoveNodeChildNodes() +// - DockBuilderRemoveNodeDockedWindows() +// - DockBuilderSplitNode() +// - DockBuilderCopyNodeRec() +// - DockBuilderCopyNode() +// - DockBuilderCopyWindowSettings() +// - DockBuilderCopyDockSpace() +// - DockBuilderFinish() +//----------------------------------------------------------------------------- + +void ImGui::DockBuilderDockWindow(const char* window_name, ImGuiID node_id) +{ + // We don't preserve relative order of multiple docked windows (by clearing DockOrder back to -1) + ImGuiID window_id = ImHashStr(window_name); + if (ImGuiWindow* window = FindWindowByID(window_id)) + { + // Apply to created window + SetWindowDock(window, node_id, ImGuiCond_Always); + window->DockOrder = -1; + } + else + { + // Apply to settings + ImGuiWindowSettings* settings = FindWindowSettings(window_id); + if (settings == NULL) + settings = CreateNewWindowSettings(window_name); + settings->DockId = node_id; + settings->DockOrder = -1; + } +} + +ImGuiDockNode* ImGui::DockBuilderGetNode(ImGuiID node_id) +{ + ImGuiContext* ctx = GImGui; + return DockContextFindNodeByID(ctx, node_id); +} + +void ImGui::DockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + node->Pos = pos; + node->AuthorityForPos = ImGuiDataAuthority_DockNode; +} + +void ImGui::DockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + IM_ASSERT(size.x > 0.0f && size.y > 0.0f); + node->Size = node->SizeRef = size; + node->AuthorityForSize = ImGuiDataAuthority_DockNode; +} + +// Make sure to use the ImGuiDockNodeFlags_DockSpace flag to create a dockspace node! Otherwise this will create a floating node! +// - Floating node: you can then call DockBuilderSetNodePos()/DockBuilderSetNodeSize() to position and size the floating node. +// - Dockspace node: calling DockBuilderSetNodePos() is unnecessary. +// - If you intend to split a node immediately after creation using DockBuilderSplitNode(), make sure to call DockBuilderSetNodeSize() beforehand! +// For various reason, the splitting code currently needs a base size otherwise space may not be allocated as precisely as you would expect. +// - Use (id == 0) to let the system allocate a node identifier. +// - Existing node with a same id will be removed. +ImGuiID ImGui::DockBuilderAddNode(ImGuiID id, ImGuiDockNodeFlags flags) +{ + ImGuiContext* ctx = GImGui; + + if (id != 0) + DockBuilderRemoveNode(id); + + ImGuiDockNode* node = NULL; + if (flags & ImGuiDockNodeFlags_DockSpace) + { + DockSpace(id, ImVec2(0, 0), (flags & ~ImGuiDockNodeFlags_DockSpace) | ImGuiDockNodeFlags_KeepAliveOnly); + node = DockContextFindNodeByID(ctx, id); + } + else + { + node = DockContextAddNode(ctx, id); + node->SetLocalFlags(flags); + } + node->LastFrameAlive = ctx->FrameCount; // Set this otherwise BeginDocked will undock during the same frame. + return node->ID; +} + +void ImGui::DockBuilderRemoveNode(ImGuiID node_id) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + DockBuilderRemoveNodeDockedWindows(node_id, true); + DockBuilderRemoveNodeChildNodes(node_id); + // Node may have moved or deleted if e.g. any merge happened + node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + if (node->IsCentralNode() && node->ParentNode) + node->ParentNode->SetLocalFlags(node->ParentNode->LocalFlags | ImGuiDockNodeFlags_CentralNode); + DockContextRemoveNode(ctx, node, true); +} + +// root_id = 0 to remove all, root_id != 0 to remove child of given node. +void ImGui::DockBuilderRemoveNodeChildNodes(ImGuiID root_id) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockContext* dc = &ctx->DockContext; + + ImGuiDockNode* root_node = root_id ? DockContextFindNodeByID(ctx, root_id) : NULL; + if (root_id && root_node == NULL) + return; + bool has_central_node = false; + + ImGuiDataAuthority backup_root_node_authority_for_pos = root_node ? root_node->AuthorityForPos : ImGuiDataAuthority_Auto; + ImGuiDataAuthority backup_root_node_authority_for_size = root_node ? root_node->AuthorityForSize : ImGuiDataAuthority_Auto; + + // Process active windows + ImVector nodes_to_remove; + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + { + bool want_removal = (root_id == 0) || (node->ID != root_id && DockNodeGetRootNode(node)->ID == root_id); + if (want_removal) + { + if (node->IsCentralNode()) + has_central_node = true; + if (root_id != 0) + DockContextQueueNotifyRemovedNode(ctx, node); + if (root_node) + { + DockNodeMoveWindows(root_node, node); + DockSettingsRenameNodeReferences(node->ID, root_node->ID); + } + nodes_to_remove.push_back(node); + } + } + + // DockNodeMoveWindows->DockNodeAddWindow will normally set those when reaching two windows (which is only adequate during interactive merge) + // Make sure we don't lose our current pos/size. (FIXME-DOCK: Consider tidying up that code in DockNodeAddWindow instead) + if (root_node) + { + root_node->AuthorityForPos = backup_root_node_authority_for_pos; + root_node->AuthorityForSize = backup_root_node_authority_for_size; + } + + // Apply to settings + for (ImGuiWindowSettings* settings = ctx->SettingsWindows.begin(); settings != NULL; settings = ctx->SettingsWindows.next_chunk(settings)) + if (ImGuiID window_settings_dock_id = settings->DockId) + for (int n = 0; n < nodes_to_remove.Size; n++) + if (nodes_to_remove[n]->ID == window_settings_dock_id) + { + settings->DockId = root_id; + break; + } + + // Not really efficient, but easier to destroy a whole hierarchy considering DockContextRemoveNode is attempting to merge nodes + if (nodes_to_remove.Size > 1) + ImQsort(nodes_to_remove.Data, nodes_to_remove.Size, sizeof(ImGuiDockNode*), DockNodeComparerDepthMostFirst); + for (int n = 0; n < nodes_to_remove.Size; n++) + DockContextRemoveNode(ctx, nodes_to_remove[n], false); + + if (root_id == 0) + { + dc->Nodes.Clear(); + dc->Requests.clear(); + } + else if (has_central_node) + { + root_node->CentralNode = root_node; + root_node->SetLocalFlags(root_node->LocalFlags | ImGuiDockNodeFlags_CentralNode); + } +} + +void ImGui::DockBuilderRemoveNodeDockedWindows(ImGuiID root_id, bool clear_settings_refs) +{ + // Clear references in settings + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + if (clear_settings_refs) + { + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + { + bool want_removal = (root_id == 0) || (settings->DockId == root_id); + if (!want_removal && settings->DockId != 0) + if (ImGuiDockNode* node = DockContextFindNodeByID(ctx, settings->DockId)) + if (DockNodeGetRootNode(node)->ID == root_id) + want_removal = true; + if (want_removal) + settings->DockId = 0; + } + } + + // Clear references in windows + for (int n = 0; n < g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + bool want_removal = (root_id == 0) || (window->DockNode && DockNodeGetRootNode(window->DockNode)->ID == root_id) || (window->DockNodeAsHost && window->DockNodeAsHost->ID == root_id); + if (want_removal) + { + const ImGuiID backup_dock_id = window->DockId; + IM_UNUSED(backup_dock_id); + DockContextProcessUndockWindow(ctx, window, clear_settings_refs); + if (!clear_settings_refs) + IM_ASSERT(window->DockId == backup_dock_id); + } + } +} + +// If 'out_id_at_dir' or 'out_id_at_opposite_dir' are non NULL, the function will write out the ID of the two new nodes created. +// Return value is ID of the node at the specified direction, so same as (*out_id_at_dir) if that pointer is set. +// FIXME-DOCK: We are not exposing nor using split_outer. +ImGuiID ImGui::DockBuilderSplitNode(ImGuiID id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(split_dir != ImGuiDir_None); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderSplitNode: node 0x%08X, split_dir %d\n", id, split_dir); + + ImGuiDockNode* node = DockContextFindNodeByID(&g, id); + if (node == NULL) + { + IM_ASSERT(node != NULL); + return 0; + } + + IM_ASSERT(!node->IsSplitNode()); // Assert if already Split + + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Split; + req.DockTargetWindow = NULL; + req.DockTargetNode = node; + req.DockPayload = NULL; + req.DockSplitDir = split_dir; + req.DockSplitRatio = ImSaturate((split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? size_ratio_for_node_at_dir : 1.0f - size_ratio_for_node_at_dir); + req.DockSplitOuter = false; + DockContextProcessDock(&g, &req); + + ImGuiID id_at_dir = node->ChildNodes[(split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 0 : 1]->ID; + ImGuiID id_at_opposite_dir = node->ChildNodes[(split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 1 : 0]->ID; + if (out_id_at_dir) + *out_id_at_dir = id_at_dir; + if (out_id_at_opposite_dir) + *out_id_at_opposite_dir = id_at_opposite_dir; + return id_at_dir; +} + +static ImGuiDockNode* DockBuilderCopyNodeRec(ImGuiDockNode* src_node, ImGuiID dst_node_id_if_known, ImVector* out_node_remap_pairs) +{ + ImGuiContext& g = *GImGui; + ImGuiDockNode* dst_node = ImGui::DockContextAddNode(&g, dst_node_id_if_known); + dst_node->SharedFlags = src_node->SharedFlags; + dst_node->LocalFlags = src_node->LocalFlags; + dst_node->LocalFlagsInWindows = ImGuiDockNodeFlags_None; + dst_node->Pos = src_node->Pos; + dst_node->Size = src_node->Size; + dst_node->SizeRef = src_node->SizeRef; + dst_node->SplitAxis = src_node->SplitAxis; + dst_node->UpdateMergedFlags(); + + out_node_remap_pairs->push_back(src_node->ID); + out_node_remap_pairs->push_back(dst_node->ID); + + for (int child_n = 0; child_n < IM_ARRAYSIZE(src_node->ChildNodes); child_n++) + if (src_node->ChildNodes[child_n]) + { + dst_node->ChildNodes[child_n] = DockBuilderCopyNodeRec(src_node->ChildNodes[child_n], 0, out_node_remap_pairs); + dst_node->ChildNodes[child_n]->ParentNode = dst_node; + } + + IMGUI_DEBUG_LOG_DOCKING("[docking] Fork node %08X -> %08X (%d childs)\n", src_node->ID, dst_node->ID, dst_node->IsSplitNode() ? 2 : 0); + return dst_node; +} + +void ImGui::DockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector* out_node_remap_pairs) +{ + ImGuiContext* ctx = GImGui; + IM_ASSERT(src_node_id != 0); + IM_ASSERT(dst_node_id != 0); + IM_ASSERT(out_node_remap_pairs != NULL); + + DockBuilderRemoveNode(dst_node_id); + + ImGuiDockNode* src_node = DockContextFindNodeByID(ctx, src_node_id); + IM_ASSERT(src_node != NULL); + + out_node_remap_pairs->clear(); + DockBuilderCopyNodeRec(src_node, dst_node_id, out_node_remap_pairs); + + IM_ASSERT((out_node_remap_pairs->Size % 2) == 0); +} + +void ImGui::DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name) +{ + ImGuiWindow* src_window = FindWindowByName(src_name); + if (src_window == NULL) + return; + if (ImGuiWindow* dst_window = FindWindowByName(dst_name)) + { + dst_window->Pos = src_window->Pos; + dst_window->Size = src_window->Size; + dst_window->SizeFull = src_window->SizeFull; + dst_window->Collapsed = src_window->Collapsed; + } + else if (ImGuiWindowSettings* dst_settings = FindOrCreateWindowSettings(dst_name)) + { + ImVec2ih window_pos_2ih = ImVec2ih(src_window->Pos); + if (src_window->ViewportId != 0 && src_window->ViewportId != IMGUI_VIEWPORT_DEFAULT_ID) + { + dst_settings->ViewportPos = window_pos_2ih; + dst_settings->ViewportId = src_window->ViewportId; + dst_settings->Pos = ImVec2ih(0, 0); + } + else + { + dst_settings->Pos = window_pos_2ih; + } + dst_settings->Size = ImVec2ih(src_window->SizeFull); + dst_settings->Collapsed = src_window->Collapsed; + } +} + +// FIXME: Will probably want to change this signature, in particular how the window remapping pairs are passed. +void ImGui::DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector* in_window_remap_pairs) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(src_dockspace_id != 0); + IM_ASSERT(dst_dockspace_id != 0); + IM_ASSERT(in_window_remap_pairs != NULL); + IM_ASSERT((in_window_remap_pairs->Size % 2) == 0); + + // Duplicate entire dock + // FIXME: When overwriting dst_dockspace_id, windows that aren't part of our dockspace window class but that are docked in a same node will be split apart, + // whereas we could attempt to at least keep them together in a new, same floating node. + ImVector node_remap_pairs; + DockBuilderCopyNode(src_dockspace_id, dst_dockspace_id, &node_remap_pairs); + + // Attempt to transition all the upcoming windows associated to dst_dockspace_id into the newly created hierarchy of dock nodes + // (The windows associated to src_dockspace_id are staying in place) + ImVector src_windows; + for (int remap_window_n = 0; remap_window_n < in_window_remap_pairs->Size; remap_window_n += 2) + { + const char* src_window_name = (*in_window_remap_pairs)[remap_window_n]; + const char* dst_window_name = (*in_window_remap_pairs)[remap_window_n + 1]; + ImGuiID src_window_id = ImHashStr(src_window_name); + src_windows.push_back(src_window_id); + + // Search in the remapping tables + ImGuiID src_dock_id = 0; + if (ImGuiWindow* src_window = FindWindowByID(src_window_id)) + src_dock_id = src_window->DockId; + else if (ImGuiWindowSettings* src_window_settings = FindWindowSettings(src_window_id)) + src_dock_id = src_window_settings->DockId; + ImGuiID dst_dock_id = 0; + for (int dock_remap_n = 0; dock_remap_n < node_remap_pairs.Size; dock_remap_n += 2) + if (node_remap_pairs[dock_remap_n] == src_dock_id) + { + dst_dock_id = node_remap_pairs[dock_remap_n + 1]; + //node_remap_pairs[dock_remap_n] = node_remap_pairs[dock_remap_n + 1] = 0; // Clear + break; + } + + if (dst_dock_id != 0) + { + // Docked windows gets redocked into the new node hierarchy. + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap live window '%s' 0x%08X -> '%s' 0x%08X\n", src_window_name, src_dock_id, dst_window_name, dst_dock_id); + DockBuilderDockWindow(dst_window_name, dst_dock_id); + } + else + { + // Floating windows gets their settings transferred (regardless of whether the new window already exist or not) + // When this is leading to a Copy and not a Move, we would get two overlapping floating windows. Could we possibly dock them together? + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap window settings '%s' -> '%s'\n", src_window_name, dst_window_name); + DockBuilderCopyWindowSettings(src_window_name, dst_window_name); + } + } + + // Anything else in the source nodes of 'node_remap_pairs' are windows that were docked in src_dockspace_id but are not owned by it (unaffiliated windows, e.g. "ImGui Demo") + // Find those windows and move to them to the cloned dock node. This may be optional? + for (int dock_remap_n = 0; dock_remap_n < node_remap_pairs.Size; dock_remap_n += 2) + if (ImGuiID src_dock_id = node_remap_pairs[dock_remap_n]) + { + ImGuiID dst_dock_id = node_remap_pairs[dock_remap_n + 1]; + ImGuiDockNode* node = DockBuilderGetNode(src_dock_id); + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + if (src_windows.contains(window->ID)) + continue; + + // Docked windows gets redocked into the new node hierarchy. + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap window '%s' %08X -> %08X\n", window->Name, src_dock_id, dst_dock_id); + DockBuilderDockWindow(window->Name, dst_dock_id); + } + } +} + +// FIXME-DOCK: This is awkward because in series of split user is likely to loose access to its root node. +void ImGui::DockBuilderFinish(ImGuiID root_id) +{ + ImGuiContext* ctx = GImGui; + //DockContextRebuild(ctx); + DockContextBuildAddWindowsToNodes(ctx, root_id); +} + +//----------------------------------------------------------------------------- +// Docking: Begin/End Support Functions (called from Begin/End) +//----------------------------------------------------------------------------- +// - GetWindowAlwaysWantOwnTabBar() +// - DockContextBindNodeToWindow() +// - BeginDocked() +// - BeginDockableDragDropSource() +// - BeginDockableDragDropTarget() +//----------------------------------------------------------------------------- + +bool ImGui::GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.IO.ConfigDockingAlwaysTabBar || window->WindowClass.DockingAlwaysTabBar) + if ((window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoDocking)) == 0) + if (!window->IsFallbackWindow) // We don't support AlwaysTabBar on the fallback/implicit window to avoid unused dock-node overhead/noise + return true; + return false; +} + +static ImGuiDockNode* ImGui::DockContextBindNodeToWindow(ImGuiContext* ctx, ImGuiWindow* window) +{ + ImGuiContext& g = *ctx; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, window->DockId); + IM_ASSERT(window->DockNode == NULL); + + // We should not be docking into a split node (SetWindowDock should avoid this) + if (node && node->IsSplitNode()) + { + DockContextProcessUndockWindow(ctx, window); + return NULL; + } + + // Create node + if (node == NULL) + { + node = DockContextAddNode(ctx, window->DockId); + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Window; + node->LastFrameAlive = g.FrameCount; + } + + // If the node just turned visible and is part of a hierarchy, it doesn't have a Size assigned by DockNodeTreeUpdatePosSize() yet, + // so we're forcing a Pos/Size update from the first ancestor that is already visible (often it will be the root node). + // If we don't do this, the window will be assigned a zero-size on its first frame, which won't ideally warm up the layout. + // This is a little wonky because we don't normally update the Pos/Size of visible node mid-frame. + if (!node->IsVisible) + { + ImGuiDockNode* ancestor_node = node; + while (!ancestor_node->IsVisible && ancestor_node->ParentNode) + ancestor_node = ancestor_node->ParentNode; + IM_ASSERT(ancestor_node->Size.x > 0.0f && ancestor_node->Size.y > 0.0f); + DockNodeUpdateHasCentralNodeChild(DockNodeGetRootNode(ancestor_node)); + DockNodeTreeUpdatePosSize(ancestor_node, ancestor_node->Pos, ancestor_node->Size, node); + } + + // Add window to node + bool node_was_visible = node->IsVisible; + DockNodeAddWindow(node, window, true); + node->IsVisible = node_was_visible; // Don't mark visible right away (so DockContextEndFrame() doesn't render it, maybe other side effects? will see) + IM_ASSERT(node == window->DockNode); + return node; +} + +void ImGui::BeginDocked(ImGuiWindow* window, bool* p_open) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + + // Clear fields ahead so most early-out paths don't have to do it + window->DockIsActive = window->DockNodeIsVisible = window->DockTabIsVisible = false; + + const bool auto_dock_node = GetWindowAlwaysWantOwnTabBar(window); + if (auto_dock_node) + { + if (window->DockId == 0) + { + IM_ASSERT(window->DockNode == NULL); + window->DockId = DockContextGenNodeID(ctx); + } + } + else + { + // Calling SetNextWindowPos() undock windows by default (by setting PosUndock) + bool want_undock = false; + want_undock |= (window->Flags & ImGuiWindowFlags_NoDocking) != 0; + want_undock |= (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) && (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) && g.NextWindowData.PosUndock; + if (want_undock) + { + DockContextProcessUndockWindow(ctx, window); + return; + } + } + + // Bind to our dock node + ImGuiDockNode* node = window->DockNode; + if (node != NULL) + IM_ASSERT(window->DockId == node->ID); + if (window->DockId != 0 && node == NULL) + { + node = DockContextBindNodeToWindow(ctx, window); + if (node == NULL) + return; + } + +#if 0 + // Undock if the ImGuiDockNodeFlags_NoDockingInCentralNode got set + if (node->IsCentralNode && (node->Flags & ImGuiDockNodeFlags_NoDockingInCentralNode)) + { + DockContextProcessUndockWindow(ctx, window); + return; + } +#endif + + // Undock if our dockspace node disappeared + // Note how we are testing for LastFrameAlive and NOT LastFrameActive. A DockSpace node can be maintained alive while being inactive with ImGuiDockNodeFlags_KeepAliveOnly. + if (node->LastFrameAlive < g.FrameCount) + { + // If the window has been orphaned, transition the docknode to an implicit node processed in DockContextNewFrameUpdateDocking() + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + if (root_node->LastFrameAlive < g.FrameCount) + DockContextProcessUndockWindow(ctx, window); + else + window->DockIsActive = true; + return; + } + + // Store style overrides + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + window->DockStyle.Colors[color_n] = ColorConvertFloat4ToU32(g.Style.Colors[GWindowDockStyleColors[color_n]]); + + // Fast path return. It is common for windows to hold on a persistent DockId but be the only visible window, + // and never create neither a host window neither a tab bar. + // FIXME-DOCK: replace ->HostWindow NULL compare with something more explicit (~was initially intended as a first frame test) + if (node->HostWindow == NULL) + { + if (node->State == ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing) + window->DockIsActive = true; + if (node->Windows.Size > 1) + DockNodeHideWindowDuringHostWindowCreation(window); + return; + } + + // We can have zero-sized nodes (e.g. children of a small-size dockspace) + IM_ASSERT(node->HostWindow); + IM_ASSERT(node->IsLeafNode()); + IM_ASSERT(node->Size.x >= 0.0f && node->Size.y >= 0.0f); + node->State = ImGuiDockNodeState_HostWindowVisible; + + // Undock if we are submitted earlier than the host window + if (!(node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) && window->BeginOrderWithinContext < node->HostWindow->BeginOrderWithinContext) + { + DockContextProcessUndockWindow(ctx, window); + return; + } + + // Position/Size window + SetNextWindowPos(node->Pos); + SetNextWindowSize(node->Size); + g.NextWindowData.PosUndock = false; // Cancel implicit undocking of SetNextWindowPos() + window->DockIsActive = true; + window->DockNodeIsVisible = true; + window->DockTabIsVisible = false; + if (node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) + return; + + // When the window is selected we mark it as visible. + if (node->VisibleWindow == window) + window->DockTabIsVisible = true; + + // Update window flag + IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) == 0); + window->Flags |= ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysUseWindowPadding | ImGuiWindowFlags_NoResize; + if (node->IsHiddenTabBar() || node->IsNoTabBar()) + window->Flags |= ImGuiWindowFlags_NoTitleBar; + else + window->Flags &= ~ImGuiWindowFlags_NoTitleBar; // Clear the NoTitleBar flag in case the user set it: confusingly enough we need a title bar height so we are correctly offset, but it won't be displayed! + + // Save new dock order only if the window has been visible once already + // This allows multiple windows to be created in the same frame and have their respective dock orders preserved. + if (node->TabBar && window->WasActive) + window->DockOrder = (short)DockNodeGetTabOrder(window); + + if ((node->WantCloseAll || node->WantCloseTabId == window->TabId) && p_open != NULL) + *p_open = false; + + // Update ChildId to allow returning from Child to Parent with Escape + ImGuiWindow* parent_window = window->DockNode->HostWindow; + window->ChildId = parent_window->GetID(window->Name); +} + +void ImGui::BeginDockableDragDropSource(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId == window->MoveId); + IM_ASSERT(g.MovingWindow == window); + IM_ASSERT(g.CurrentWindow == window); + + g.LastItemData.ID = window->MoveId; + window = window->RootWindowDockTree; + IM_ASSERT((window->Flags & ImGuiWindowFlags_NoDocking) == 0); + bool is_drag_docking = (g.IO.ConfigDockingWithShift) || ImRect(0, 0, window->SizeFull.x, GetFrameHeight()).Contains(g.ActiveIdClickOffset); // FIXME-DOCKING: Need to make this stateful and explicit + if (is_drag_docking && BeginDragDropSource(ImGuiDragDropFlags_SourceNoPreviewTooltip | ImGuiDragDropFlags_SourceNoHoldToOpenOthers | ImGuiDragDropFlags_SourceAutoExpirePayload)) + { + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_WINDOW, &window, sizeof(window)); + EndDragDropSource(); + + // Store style overrides + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + window->DockStyle.Colors[color_n] = ColorConvertFloat4ToU32(g.Style.Colors[GWindowDockStyleColors[color_n]]); + } +} + +void ImGui::BeginDockableDragDropTarget(ImGuiWindow* window) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + + //IM_ASSERT(window->RootWindowDockTree == window); // May also be a DockSpace + IM_ASSERT((window->Flags & ImGuiWindowFlags_NoDocking) == 0); + if (!g.DragDropActive) + return; + //GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!BeginDragDropTargetCustom(window->Rect(), window->ID)) + return; + + // Peek into the payload before calling AcceptDragDropPayload() so we can handle overlapping dock nodes with filtering + // (this is a little unusual pattern, normally most code would call AcceptDragDropPayload directly) + const ImGuiPayload* payload = &g.DragDropPayload; + if (!payload->IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) || !DockNodeIsDropAllowed(window, *(ImGuiWindow**)payload->Data)) + { + EndDragDropTarget(); + return; + } + + ImGuiWindow* payload_window = *(ImGuiWindow**)payload->Data; + if (AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_WINDOW, ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect)) + { + // Select target node + // (Important: we cannot use g.HoveredDockNode here! Because each of our target node have filters based on payload, each candidate drop target will do its own evaluation) + bool dock_into_floating_window = false; + ImGuiDockNode* node = NULL; + if (window->DockNodeAsHost) + { + // Cannot assume that node will != NULL even though we passed the rectangle test: it depends on padding/spacing handled by DockNodeTreeFindVisibleNodeByPos(). + node = DockNodeTreeFindVisibleNodeByPos(window->DockNodeAsHost, g.IO.MousePos); + + // There is an edge case when docking into a dockspace which only has _inactive_ nodes (because none of the windows are active) + // In this case we need to fallback into any leaf mode, possibly the central node. + // FIXME-20181220: We should not have to test for IsLeafNode() here but we have another bug to fix first. + if (node && node->IsDockSpace() && node->IsRootNode()) + node = (node->CentralNode && node->IsLeafNode()) ? node->CentralNode : DockNodeTreeFindFallbackLeafNode(node); + } + else + { + if (window->DockNode) + node = window->DockNode; + else + dock_into_floating_window = true; // Dock into a regular window + } + + const ImRect explicit_target_rect = (node && node->TabBar && !node->IsHiddenTabBar() && !node->IsNoTabBar()) ? node->TabBar->BarRect : ImRect(window->Pos, window->Pos + ImVec2(window->Size.x, GetFrameHeight())); + const bool is_explicit_target = g.IO.ConfigDockingWithShift || IsMouseHoveringRect(explicit_target_rect.Min, explicit_target_rect.Max); + + // Preview docking request and find out split direction/ratio + //const bool do_preview = true; // Ignore testing for payload->IsPreview() which removes one frame of delay, but breaks overlapping drop targets within the same window. + const bool do_preview = payload->IsPreview() || payload->IsDelivery(); + if (do_preview && (node != NULL || dock_into_floating_window)) + { + // If we have a non-leaf node it means we are hovering the border of a parent node, in which case only outer markers will appear. + ImGuiDockPreviewData split_inner; + ImGuiDockPreviewData split_outer; + ImGuiDockPreviewData* split_data = &split_inner; + if (node && (node->ParentNode || node->IsCentralNode() || !node->IsLeafNode())) + if (ImGuiDockNode* root_node = DockNodeGetRootNode(node)) + { + DockNodePreviewDockSetup(window, root_node, payload_window, NULL, &split_outer, is_explicit_target, true); + if (split_outer.IsSplitDirExplicit) + split_data = &split_outer; + } + if (!node || node->IsLeafNode()) + DockNodePreviewDockSetup(window, node, payload_window, NULL, &split_inner, is_explicit_target, false); + if (split_data == &split_outer) + split_inner.IsDropAllowed = false; + + // Draw inner then outer, so that previewed tab (in inner data) will be behind the outer drop boxes + DockNodePreviewDockRender(window, node, payload_window, &split_inner); + DockNodePreviewDockRender(window, node, payload_window, &split_outer); + + // Queue docking request + if (split_data->IsDropAllowed && payload->IsDelivery()) + DockContextQueueDock(ctx, window, split_data->SplitNode, payload_window, split_data->SplitDir, split_data->SplitRatio, split_data == &split_outer); + } + } + EndDragDropTarget(); +} + +//----------------------------------------------------------------------------- +// Docking: Settings +//----------------------------------------------------------------------------- +// - DockSettingsRenameNodeReferences() +// - DockSettingsRemoveNodeReferences() +// - DockSettingsFindNodeSettings() +// - DockSettingsHandler_ApplyAll() +// - DockSettingsHandler_ReadOpen() +// - DockSettingsHandler_ReadLine() +// - DockSettingsHandler_DockNodeToSettings() +// - DockSettingsHandler_WriteAll() +//----------------------------------------------------------------------------- + +static void ImGui::DockSettingsRenameNodeReferences(ImGuiID old_node_id, ImGuiID new_node_id) +{ + ImGuiContext& g = *GImGui; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSettingsRenameNodeReferences: from 0x%08X -> to 0x%08X\n", old_node_id, new_node_id); + for (int window_n = 0; window_n < g.Windows.Size; window_n++) + { + ImGuiWindow* window = g.Windows[window_n]; + if (window->DockId == old_node_id && window->DockNode == NULL) + window->DockId = new_node_id; + } + //// FIXME-OPT: We could remove this loop by storing the index in the map + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->DockId == old_node_id) + settings->DockId = new_node_id; +} + +// Remove references stored in ImGuiWindowSettings to the given ImGuiDockNodeSettings +static void ImGui::DockSettingsRemoveNodeReferences(ImGuiID* node_ids, int node_ids_count) +{ + ImGuiContext& g = *GImGui; + int found = 0; + //// FIXME-OPT: We could remove this loop by storing the index in the map + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + for (int node_n = 0; node_n < node_ids_count; node_n++) + if (settings->DockId == node_ids[node_n]) + { + settings->DockId = 0; + settings->DockOrder = -1; + if (++found < node_ids_count) + break; + return; + } +} + +static ImGuiDockNodeSettings* ImGui::DockSettingsFindNodeSettings(ImGuiContext* ctx, ImGuiID id) +{ + // FIXME-OPT + ImGuiDockContext* dc = &ctx->DockContext; + for (int n = 0; n < dc->NodesSettings.Size; n++) + if (dc->NodesSettings[n].ID == id) + return &dc->NodesSettings[n]; + return NULL; +} + +// Clear settings data +static void ImGui::DockSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiDockContext* dc = &ctx->DockContext; + dc->NodesSettings.clear(); + DockContextClearNodes(ctx, 0, true); +} + +// Recreate nodes based on settings data +static void ImGui::DockSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + // Prune settings at boot time only + ImGuiDockContext* dc = &ctx->DockContext; + if (ctx->Windows.Size == 0) + DockContextPruneUnusedSettingsNodes(ctx); + DockContextBuildNodesFromSettings(ctx, dc->NodesSettings.Data, dc->NodesSettings.Size); + DockContextBuildAddWindowsToNodes(ctx, 0); +} + +static void* ImGui::DockSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + if (strcmp(name, "Data") != 0) + return NULL; + return (void*)1; +} + +static void ImGui::DockSettingsHandler_ReadLine(ImGuiContext* ctx, ImGuiSettingsHandler*, void*, const char* line) +{ + char c = 0; + int x = 0, y = 0; + int r = 0; + + // Parsing, e.g. + // " DockNode ID=0x00000001 Pos=383,193 Size=201,322 Split=Y,0.506 " + // " DockNode ID=0x00000002 Parent=0x00000001 " + // Important: this code expect currently fields in a fixed order. + ImGuiDockNodeSettings node; + line = ImStrSkipBlank(line); + if (strncmp(line, "DockNode", 8) == 0) { line = ImStrSkipBlank(line + strlen("DockNode")); } + else if (strncmp(line, "DockSpace", 9) == 0) { line = ImStrSkipBlank(line + strlen("DockSpace")); node.Flags |= ImGuiDockNodeFlags_DockSpace; } + else return; + if (sscanf(line, "ID=0x%08X%n", &node.ID, &r) == 1) { line += r; } else return; + if (sscanf(line, " Parent=0x%08X%n", &node.ParentNodeId, &r) == 1) { line += r; if (node.ParentNodeId == 0) return; } + if (sscanf(line, " Window=0x%08X%n", &node.ParentWindowId, &r) ==1) { line += r; if (node.ParentWindowId == 0) return; } + if (node.ParentNodeId == 0) + { + if (sscanf(line, " Pos=%i,%i%n", &x, &y, &r) == 2) { line += r; node.Pos = ImVec2ih((short)x, (short)y); } else return; + if (sscanf(line, " Size=%i,%i%n", &x, &y, &r) == 2) { line += r; node.Size = ImVec2ih((short)x, (short)y); } else return; + } + else + { + if (sscanf(line, " SizeRef=%i,%i%n", &x, &y, &r) == 2) { line += r; node.SizeRef = ImVec2ih((short)x, (short)y); } + } + if (sscanf(line, " Split=%c%n", &c, &r) == 1) { line += r; if (c == 'X') node.SplitAxis = ImGuiAxis_X; else if (c == 'Y') node.SplitAxis = ImGuiAxis_Y; } + if (sscanf(line, " NoResize=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoResize; } + if (sscanf(line, " CentralNode=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_CentralNode; } + if (sscanf(line, " NoTabBar=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoTabBar; } + if (sscanf(line, " HiddenTabBar=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_HiddenTabBar; } + if (sscanf(line, " NoWindowMenuButton=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoWindowMenuButton; } + if (sscanf(line, " NoCloseButton=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoCloseButton; } + if (sscanf(line, " Selected=0x%08X%n", &node.SelectedTabId,&r) == 1) { line += r; } + if (node.ParentNodeId != 0) + if (ImGuiDockNodeSettings* parent_settings = DockSettingsFindNodeSettings(ctx, node.ParentNodeId)) + node.Depth = parent_settings->Depth + 1; + ctx->DockContext.NodesSettings.push_back(node); +} + +static void DockSettingsHandler_DockNodeToSettings(ImGuiDockContext* dc, ImGuiDockNode* node, int depth) +{ + ImGuiDockNodeSettings node_settings; + IM_ASSERT(depth < (1 << (sizeof(node_settings.Depth) << 3))); + node_settings.ID = node->ID; + node_settings.ParentNodeId = node->ParentNode ? node->ParentNode->ID : 0; + node_settings.ParentWindowId = (node->IsDockSpace() && node->HostWindow && node->HostWindow->ParentWindow) ? node->HostWindow->ParentWindow->ID : 0; + node_settings.SelectedTabId = node->SelectedTabId; + node_settings.SplitAxis = (signed char)(node->IsSplitNode() ? node->SplitAxis : ImGuiAxis_None); + node_settings.Depth = (char)depth; + node_settings.Flags = (node->LocalFlags & ImGuiDockNodeFlags_SavedFlagsMask_); + node_settings.Pos = ImVec2ih(node->Pos); + node_settings.Size = ImVec2ih(node->Size); + node_settings.SizeRef = ImVec2ih(node->SizeRef); + dc->NodesSettings.push_back(node_settings); + if (node->ChildNodes[0]) + DockSettingsHandler_DockNodeToSettings(dc, node->ChildNodes[0], depth + 1); + if (node->ChildNodes[1]) + DockSettingsHandler_DockNodeToSettings(dc, node->ChildNodes[1], depth + 1); +} + +static void ImGui::DockSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + return; + + // Gather settings data + // (unlike our windows settings, because nodes are always built we can do a full rewrite of the SettingsNode buffer) + dc->NodesSettings.resize(0); + dc->NodesSettings.reserve(dc->Nodes.Data.Size); + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->IsRootNode()) + DockSettingsHandler_DockNodeToSettings(dc, node, 0); + + int max_depth = 0; + for (int node_n = 0; node_n < dc->NodesSettings.Size; node_n++) + max_depth = ImMax((int)dc->NodesSettings[node_n].Depth, max_depth); + + // Write to text buffer + buf->appendf("[%s][Data]\n", handler->TypeName); + for (int node_n = 0; node_n < dc->NodesSettings.Size; node_n++) + { + const int line_start_pos = buf->size(); (void)line_start_pos; + const ImGuiDockNodeSettings* node_settings = &dc->NodesSettings[node_n]; + buf->appendf("%*s%s%*s", node_settings->Depth * 2, "", (node_settings->Flags & ImGuiDockNodeFlags_DockSpace) ? "DockSpace" : "DockNode ", (max_depth - node_settings->Depth) * 2, ""); // Text align nodes to facilitate looking at .ini file + buf->appendf(" ID=0x%08X", node_settings->ID); + if (node_settings->ParentNodeId) + { + buf->appendf(" Parent=0x%08X SizeRef=%d,%d", node_settings->ParentNodeId, node_settings->SizeRef.x, node_settings->SizeRef.y); + } + else + { + if (node_settings->ParentWindowId) + buf->appendf(" Window=0x%08X", node_settings->ParentWindowId); + buf->appendf(" Pos=%d,%d Size=%d,%d", node_settings->Pos.x, node_settings->Pos.y, node_settings->Size.x, node_settings->Size.y); + } + if (node_settings->SplitAxis != ImGuiAxis_None) + buf->appendf(" Split=%c", (node_settings->SplitAxis == ImGuiAxis_X) ? 'X' : 'Y'); + if (node_settings->Flags & ImGuiDockNodeFlags_NoResize) + buf->appendf(" NoResize=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_CentralNode) + buf->appendf(" CentralNode=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_NoTabBar) + buf->appendf(" NoTabBar=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_HiddenTabBar) + buf->appendf(" HiddenTabBar=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_NoWindowMenuButton) + buf->appendf(" NoWindowMenuButton=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_NoCloseButton) + buf->appendf(" NoCloseButton=1"); + if (node_settings->SelectedTabId) + buf->appendf(" Selected=0x%08X", node_settings->SelectedTabId); + +#if IMGUI_DEBUG_INI_SETTINGS + // [DEBUG] Include comments in the .ini file to ease debugging + if (ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_settings->ID)) + { + buf->appendf("%*s", ImMax(2, (line_start_pos + 92) - buf->size()), ""); // Align everything + if (node->IsDockSpace() && node->HostWindow && node->HostWindow->ParentWindow) + buf->appendf(" ; in '%s'", node->HostWindow->ParentWindow->Name); + // Iterate settings so we can give info about windows that didn't exist during the session. + int contains_window = 0; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->DockId == node_settings->ID) + { + if (contains_window++ == 0) + buf->appendf(" ; contains "); + buf->appendf("'%s' ", settings->GetName()); + } + } +#endif + buf->appendf("\n"); + } + buf->appendf("\n"); +} + + +//----------------------------------------------------------------------------- +// [SECTION] PLATFORM DEPENDENT HELPERS +//----------------------------------------------------------------------------- + +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) + +#ifdef _MSC_VER +#pragma comment(lib, "user32") +#pragma comment(lib, "kernel32") +#endif + +// Win32 clipboard implementation +// We use g.ClipboardHandlerData for temporary storage to ensure it is freed on Shutdown() +static const char* GetClipboardTextFn_DefaultImpl(void*) +{ + ImGuiContext& g = *GImGui; + g.ClipboardHandlerData.clear(); + if (!::OpenClipboard(NULL)) + return NULL; + HANDLE wbuf_handle = ::GetClipboardData(CF_UNICODETEXT); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return NULL; + } + if (const WCHAR* wbuf_global = (const WCHAR*)::GlobalLock(wbuf_handle)) + { + int buf_len = ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, NULL, 0, NULL, NULL); + g.ClipboardHandlerData.resize(buf_len); + ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, g.ClipboardHandlerData.Data, buf_len, NULL, NULL); + } + ::GlobalUnlock(wbuf_handle); + ::CloseClipboard(); + return g.ClipboardHandlerData.Data; +} + +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!::OpenClipboard(NULL)) + return; + const int wbuf_length = ::MultiByteToWideChar(CP_UTF8, 0, text, -1, NULL, 0); + HGLOBAL wbuf_handle = ::GlobalAlloc(GMEM_MOVEABLE, (SIZE_T)wbuf_length * sizeof(WCHAR)); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return; + } + WCHAR* wbuf_global = (WCHAR*)::GlobalLock(wbuf_handle); + ::MultiByteToWideChar(CP_UTF8, 0, text, -1, wbuf_global, wbuf_length); + ::GlobalUnlock(wbuf_handle); + ::EmptyClipboard(); + if (::SetClipboardData(CF_UNICODETEXT, wbuf_handle) == NULL) + ::GlobalFree(wbuf_handle); + ::CloseClipboard(); +} + +#elif defined(__APPLE__) && TARGET_OS_OSX && defined(IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS) + +#include // Use old API to avoid need for separate .mm file +static PasteboardRef main_clipboard = 0; + +// OSX clipboard implementation +// If you enable this you will need to add '-framework ApplicationServices' to your linker command-line! +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardClear(main_clipboard); + CFDataRef cf_data = CFDataCreate(kCFAllocatorDefault, (const UInt8*)text, strlen(text)); + if (cf_data) + { + PasteboardPutItemFlavor(main_clipboard, (PasteboardItemID)1, CFSTR("public.utf8-plain-text"), cf_data, 0); + CFRelease(cf_data); + } +} + +static const char* GetClipboardTextFn_DefaultImpl(void*) +{ + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardSynchronize(main_clipboard); + + ItemCount item_count = 0; + PasteboardGetItemCount(main_clipboard, &item_count); + for (ItemCount i = 0; i < item_count; i++) + { + PasteboardItemID item_id = 0; + PasteboardGetItemIdentifier(main_clipboard, i + 1, &item_id); + CFArrayRef flavor_type_array = 0; + PasteboardCopyItemFlavors(main_clipboard, item_id, &flavor_type_array); + for (CFIndex j = 0, nj = CFArrayGetCount(flavor_type_array); j < nj; j++) + { + CFDataRef cf_data; + if (PasteboardCopyItemFlavorData(main_clipboard, item_id, CFSTR("public.utf8-plain-text"), &cf_data) == noErr) + { + ImGuiContext& g = *GImGui; + g.ClipboardHandlerData.clear(); + int length = (int)CFDataGetLength(cf_data); + g.ClipboardHandlerData.resize(length + 1); + CFDataGetBytes(cf_data, CFRangeMake(0, length), (UInt8*)g.ClipboardHandlerData.Data); + g.ClipboardHandlerData[length] = 0; + CFRelease(cf_data); + return g.ClipboardHandlerData.Data; + } + } + } + return NULL; +} + +#else + +// Local Dear ImGui-only clipboard implementation, if user hasn't defined better clipboard handlers. +static const char* GetClipboardTextFn_DefaultImpl(void*) +{ + ImGuiContext& g = *GImGui; + return g.ClipboardHandlerData.empty() ? NULL : g.ClipboardHandlerData.begin(); +} + +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + ImGuiContext& g = *GImGui; + g.ClipboardHandlerData.clear(); + const char* text_end = text + strlen(text); + g.ClipboardHandlerData.resize((int)(text_end - text) + 1); + memcpy(&g.ClipboardHandlerData[0], text, (size_t)(text_end - text)); + g.ClipboardHandlerData[(int)(text_end - text)] = 0; +} + +#endif + +// Win32 API IME support (for Asian languages, etc.) +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) + +#include +#ifdef _MSC_VER +#pragma comment(lib, "imm32") +#endif + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data) +{ + // Notify OS Input Method Editor of text input position + HWND hwnd = (HWND)viewport->PlatformHandleRaw; +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (hwnd == 0) + hwnd = (HWND)ImGui::GetIO().ImeWindowHandle; +#endif + if (hwnd == 0) + return; + + //::ImmAssociateContextEx(hwnd, NULL, data->WantVisible ? IACE_DEFAULT : 0); + if (HIMC himc = ::ImmGetContext(hwnd)) + { + COMPOSITIONFORM composition_form = {}; + composition_form.ptCurrentPos.x = (LONG)(data->InputPos.x - viewport->Pos.x); + composition_form.ptCurrentPos.y = (LONG)(data->InputPos.y - viewport->Pos.y); + composition_form.dwStyle = CFS_FORCE_POSITION; + ::ImmSetCompositionWindow(himc, &composition_form); + CANDIDATEFORM candidate_form = {}; + candidate_form.dwStyle = CFS_CANDIDATEPOS; + candidate_form.ptCurrentPos.x = (LONG)(data->InputPos.x - viewport->Pos.x); + candidate_form.ptCurrentPos.y = (LONG)(data->InputPos.y - viewport->Pos.y); + ::ImmSetCandidateWindow(himc, &candidate_form); + ::ImmReleaseContext(hwnd, himc); + } +} + +#else + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport*, ImGuiPlatformImeData*) {} + +#endif + +//----------------------------------------------------------------------------- +// [SECTION] METRICS/DEBUGGER WINDOW +//----------------------------------------------------------------------------- +// - RenderViewportThumbnail() [Internal] +// - RenderViewportsThumbnails() [Internal] +// - DebugTextEncoding() +// - MetricsHelpMarker() [Internal] +// - ShowFontAtlas() [Internal] +// - ShowMetricsWindow() +// - DebugNodeColumns() [Internal] +// - DebugNodeDockNode() [Internal] +// - DebugNodeDrawList() [Internal] +// - DebugNodeDrawCmdShowMeshAndBoundingBox() [Internal] +// - DebugNodeFont() [Internal] +// - DebugNodeFontGlyph() [Internal] +// - DebugNodeStorage() [Internal] +// - DebugNodeTabBar() [Internal] +// - DebugNodeViewport() [Internal] +// - DebugNodeWindow() [Internal] +// - DebugNodeWindowSettings() [Internal] +// - DebugNodeWindowsList() [Internal] +// - DebugNodeWindowsListByBeginStackParent() [Internal] +//----------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + +void ImGui::DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImVec2 scale = bb.GetSize() / viewport->Size; + ImVec2 off = bb.Min - viewport->Pos * scale; + float alpha_mul = (viewport->Flags & ImGuiViewportFlags_Minimized) ? 0.30f : 1.00f; + window->DrawList->AddRectFilled(bb.Min, bb.Max, ImGui::GetColorU32(ImGuiCol_Border, alpha_mul * 0.40f)); + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* thumb_window = g.Windows[i]; + if (!thumb_window->WasActive || (thumb_window->Flags & ImGuiWindowFlags_ChildWindow)) + continue; + if (thumb_window->Viewport != viewport) + continue; + + ImRect thumb_r = thumb_window->Rect(); + ImRect title_r = thumb_window->TitleBarRect(); + thumb_r = ImRect(ImFloor(off + thumb_r.Min * scale), ImFloor(off + thumb_r.Max * scale)); + title_r = ImRect(ImFloor(off + title_r.Min * scale), ImFloor(off + ImVec2(title_r.Max.x, title_r.Min.y) * scale) + ImVec2(0,5)); // Exaggerate title bar height + thumb_r.ClipWithFull(bb); + title_r.ClipWithFull(bb); + const bool window_is_focused = (g.NavWindow && thumb_window->RootWindowForTitleBarHighlight == g.NavWindow->RootWindowForTitleBarHighlight); + window->DrawList->AddRectFilled(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_WindowBg, alpha_mul)); + window->DrawList->AddRectFilled(title_r.Min, title_r.Max, GetColorU32(window_is_focused ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg, alpha_mul)); + window->DrawList->AddRect(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); + window->DrawList->AddText(g.Font, g.FontSize * 1.0f, title_r.Min, GetColorU32(ImGuiCol_Text, alpha_mul), thumb_window->Name, FindRenderedTextEnd(thumb_window->Name)); + } + draw_list->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); +} + +static void RenderViewportsThumbnails() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We don't display full monitor bounds (we could, but it often looks awkward), instead we display just enough to cover all of our viewports. + float SCALE = 1.0f / 8.0f; + ImRect bb_full(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + for (int n = 0; n < g.Viewports.Size; n++) + bb_full.Add(g.Viewports[n]->GetMainRect()); + ImVec2 p = window->DC.CursorPos; + ImVec2 off = p - bb_full.Min * SCALE; + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + ImRect viewport_draw_bb(off + (viewport->Pos) * SCALE, off + (viewport->Pos + viewport->Size) * SCALE); + ImGui::DebugRenderViewportThumbnail(window->DrawList, viewport, viewport_draw_bb); + } + ImGui::Dummy(bb_full.GetSize() * SCALE); +} + +static int IMGUI_CDECL ViewportComparerByFrontMostStampCount(const void* lhs, const void* rhs) +{ + const ImGuiViewportP* a = *(const ImGuiViewportP* const*)lhs; + const ImGuiViewportP* b = *(const ImGuiViewportP* const*)rhs; + return b->LastFrontMostStampCount - a->LastFrontMostStampCount; +} + +// Helper tool to diagnose between text encoding issues and font loading issues. Pass your UTF-8 string and verify that there are correct. +void ImGui::DebugTextEncoding(const char* str) +{ + Text("Text: \"%s\"", str); + if (!BeginTable("list", 4, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit)) + return; + TableSetupColumn("Offset"); + TableSetupColumn("UTF-8"); + TableSetupColumn("Glyph"); + TableSetupColumn("Codepoint"); + TableHeadersRow(); + for (const char* p = str; *p != 0; ) + { + unsigned int c; + const int c_utf8_len = ImTextCharFromUtf8(&c, p, NULL); + TableNextColumn(); + Text("%d", (int)(p - str)); + TableNextColumn(); + for (int byte_index = 0; byte_index < c_utf8_len; byte_index++) + { + if (byte_index > 0) + SameLine(); + Text("0x%02X", (int)(unsigned char)p[byte_index]); + } + TableNextColumn(); + if (GetFont()->FindGlyphNoFallback((ImWchar)c)) + TextUnformatted(p, p + c_utf8_len); + else + TextUnformatted((c == IM_UNICODE_CODEPOINT_INVALID) ? "[invalid]" : "[missing]"); + TableNextColumn(); + Text("U+%04X", (int)c); + p += c_utf8_len; + } + EndTable(); +} + +// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds. +static void MetricsHelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +// [DEBUG] List fonts in a font atlas and display its texture +void ImGui::ShowFontAtlas(ImFontAtlas* atlas) +{ + for (int i = 0; i < atlas->Fonts.Size; i++) + { + ImFont* font = atlas->Fonts[i]; + PushID(font); + DebugNodeFont(font); + PopID(); + } + if (TreeNode("Atlas texture", "Atlas texture (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) + { + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); + ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); + Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), tint_col, border_col); + TreePop(); + } +} + +void ImGui::ShowMetricsWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + if (cfg->ShowDebugLog) + ShowDebugLogWindow(&cfg->ShowDebugLog); + if (cfg->ShowStackTool) + ShowStackToolWindow(&cfg->ShowStackTool); + + if (!Begin("Dear ImGui Metrics/Debugger", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + // Basic info + Text("Dear ImGui %s", GetVersion()); + Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + Text("%d vertices, %d indices (%d triangles)", io.MetricsRenderVertices, io.MetricsRenderIndices, io.MetricsRenderIndices / 3); + Text("%d visible windows, %d active allocations", io.MetricsRenderWindows, io.MetricsActiveAllocations); + //SameLine(); if (SmallButton("GC")) { g.GcCompactAll = true; } + + Separator(); + + // Debugging enums + enum { WRT_OuterRect, WRT_OuterRectClipped, WRT_InnerRect, WRT_InnerClipRect, WRT_WorkRect, WRT_Content, WRT_ContentIdeal, WRT_ContentRegionRect, WRT_Count }; // Windows Rect Type + const char* wrt_rects_names[WRT_Count] = { "OuterRect", "OuterRectClipped", "InnerRect", "InnerClipRect", "WorkRect", "Content", "ContentIdeal", "ContentRegionRect" }; + enum { TRT_OuterRect, TRT_InnerRect, TRT_WorkRect, TRT_HostClipRect, TRT_InnerClipRect, TRT_BackgroundClipRect, TRT_ColumnsRect, TRT_ColumnsWorkRect, TRT_ColumnsClipRect, TRT_ColumnsContentHeadersUsed, TRT_ColumnsContentHeadersIdeal, TRT_ColumnsContentFrozen, TRT_ColumnsContentUnfrozen, TRT_Count }; // Tables Rect Type + const char* trt_rects_names[TRT_Count] = { "OuterRect", "InnerRect", "WorkRect", "HostClipRect", "InnerClipRect", "BackgroundClipRect", "ColumnsRect", "ColumnsWorkRect", "ColumnsClipRect", "ColumnsContentHeadersUsed", "ColumnsContentHeadersIdeal", "ColumnsContentFrozen", "ColumnsContentUnfrozen" }; + if (cfg->ShowWindowsRectsType < 0) + cfg->ShowWindowsRectsType = WRT_WorkRect; + if (cfg->ShowTablesRectsType < 0) + cfg->ShowTablesRectsType = TRT_WorkRect; + + struct Funcs + { + static ImRect GetTableRect(ImGuiTable* table, int rect_type, int n) + { + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); // Always using last submitted instance + if (rect_type == TRT_OuterRect) { return table->OuterRect; } + else if (rect_type == TRT_InnerRect) { return table->InnerRect; } + else if (rect_type == TRT_WorkRect) { return table->WorkRect; } + else if (rect_type == TRT_HostClipRect) { return table->HostClipRect; } + else if (rect_type == TRT_InnerClipRect) { return table->InnerClipRect; } + else if (rect_type == TRT_BackgroundClipRect) { return table->BgClipRect; } + else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table_instance->LastOuterHeight); } + else if (rect_type == TRT_ColumnsWorkRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->WorkRect.Min.y, c->WorkMaxX, table->WorkRect.Max.y); } + else if (rect_type == TRT_ColumnsClipRect) { ImGuiTableColumn* c = &table->Columns[n]; return c->ClipRect; } + else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } // Note: y1/y2 not always accurate + else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } + else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } + else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } + IM_ASSERT(0); + return ImRect(); + } + + static ImRect GetWindowRect(ImGuiWindow* window, int rect_type) + { + if (rect_type == WRT_OuterRect) { return window->Rect(); } + else if (rect_type == WRT_OuterRectClipped) { return window->OuterRectClipped; } + else if (rect_type == WRT_InnerRect) { return window->InnerRect; } + else if (rect_type == WRT_InnerClipRect) { return window->InnerClipRect; } + else if (rect_type == WRT_WorkRect) { return window->WorkRect; } + else if (rect_type == WRT_Content) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSize); } + else if (rect_type == WRT_ContentIdeal) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSizeIdeal); } + else if (rect_type == WRT_ContentRegionRect) { return window->ContentRegionRect; } + IM_ASSERT(0); + return ImRect(); + } + }; + + // Tools + if (TreeNode("Tools")) + { + bool show_encoding_viewer = TreeNode("UTF-8 Encoding viewer"); + SameLine(); + MetricsHelpMarker("You can also call ImGui::DebugTextEncoding() from your code with a given string to test that your UTF-8 encoding settings are correct."); + if (show_encoding_viewer) + { + static char buf[100] = ""; + SetNextItemWidth(-FLT_MIN); + InputText("##Text", buf, IM_ARRAYSIZE(buf)); + if (buf[0] != 0) + DebugTextEncoding(buf); + TreePop(); + } + + // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. + if (Checkbox("Show Item Picker", &g.DebugItemPickerActive) && g.DebugItemPickerActive) + DebugStartItemPicker(); + SameLine(); + MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); + + // Stack Tool is your best friend! + Checkbox("Show Debug Log", &cfg->ShowDebugLog); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowDebugLogWindow() from your code."); + + // Stack Tool is your best friend! + Checkbox("Show Stack Tool", &cfg->ShowStackTool); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowStackToolWindow() from your code."); + + Checkbox("Show windows begin order", &cfg->ShowWindowsBeginOrder); + Checkbox("Show windows rectangles", &cfg->ShowWindowsRects); + SameLine(); + SetNextItemWidth(GetFontSize() * 12); + cfg->ShowWindowsRects |= Combo("##show_windows_rect_type", &cfg->ShowWindowsRectsType, wrt_rects_names, WRT_Count, WRT_Count); + if (cfg->ShowWindowsRects && g.NavWindow != NULL) + { + BulletText("'%s':", g.NavWindow->Name); + Indent(); + for (int rect_n = 0; rect_n < WRT_Count; rect_n++) + { + ImRect r = Funcs::GetWindowRect(g.NavWindow, rect_n); + Text("(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), wrt_rects_names[rect_n]); + } + Unindent(); + } + + Checkbox("Show tables rectangles", &cfg->ShowTablesRects); + SameLine(); + SetNextItemWidth(GetFontSize() * 12); + cfg->ShowTablesRects |= Combo("##show_table_rects_type", &cfg->ShowTablesRectsType, trt_rects_names, TRT_Count, TRT_Count); + if (cfg->ShowTablesRects && g.NavWindow != NULL) + { + for (int table_n = 0; table_n < g.Tables.GetMapSize(); table_n++) + { + ImGuiTable* table = g.Tables.TryGetMapData(table_n); + if (table == NULL || table->LastFrameActive < g.FrameCount - 1 || (table->OuterWindow != g.NavWindow && table->InnerWindow != g.NavWindow)) + continue; + + BulletText("Table 0x%08X (%d columns, in '%s')", table->ID, table->ColumnsCount, table->OuterWindow->Name); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(table->OuterRect.Min - ImVec2(1, 1), table->OuterRect.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + Indent(); + char buf[128]; + for (int rect_n = 0; rect_n < TRT_Count; rect_n++) + { + if (rect_n >= TRT_ColumnsRect) + { + if (rect_n != TRT_ColumnsRect && rect_n != TRT_ColumnsClipRect) + continue; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImRect r = Funcs::GetTableRect(table, rect_n, column_n); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) Col %d %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), column_n, trt_rects_names[rect_n]); + Selectable(buf); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + } + } + else + { + ImRect r = Funcs::GetTableRect(table, rect_n, -1); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), trt_rects_names[rect_n]); + Selectable(buf); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + } + } + Unindent(); + } + } + + TreePop(); + } + + // Windows + if (TreeNode("Windows", "Windows (%d)", g.Windows.Size)) + { + //SetNextItemOpen(true, ImGuiCond_Once); + DebugNodeWindowsList(&g.Windows, "By display order"); + DebugNodeWindowsList(&g.WindowsFocusOrder, "By focus order (root windows)"); + if (TreeNode("By submission order (begin stack)")) + { + // Here we display windows in their submitted order/hierarchy, however note that the Begin stack doesn't constitute a Parent<>Child relationship! + ImVector& temp_buffer = g.WindowsTempSortBuffer; + temp_buffer.resize(0); + for (int i = 0; i < g.Windows.Size; i++) + if (g.Windows[i]->LastFrameActive + 1 >= g.FrameCount) + temp_buffer.push_back(g.Windows[i]); + struct Func { static int IMGUI_CDECL WindowComparerByBeginOrder(const void* lhs, const void* rhs) { return ((int)(*(const ImGuiWindow* const *)lhs)->BeginOrderWithinContext - (*(const ImGuiWindow* const*)rhs)->BeginOrderWithinContext); } }; + ImQsort(temp_buffer.Data, (size_t)temp_buffer.Size, sizeof(ImGuiWindow*), Func::WindowComparerByBeginOrder); + DebugNodeWindowsListByBeginStackParent(temp_buffer.Data, temp_buffer.Size, NULL); + TreePop(); + } + + TreePop(); + } + + // DrawLists + int drawlist_count = 0; + for (int viewport_i = 0; viewport_i < g.Viewports.Size; viewport_i++) + drawlist_count += g.Viewports[viewport_i]->DrawDataBuilder.GetDrawListCount(); + if (TreeNode("DrawLists", "DrawLists (%d)", drawlist_count)) + { + Checkbox("Show ImDrawCmd mesh when hovering", &cfg->ShowDrawCmdMesh); + Checkbox("Show ImDrawCmd bounding boxes when hovering", &cfg->ShowDrawCmdBoundingBoxes); + for (int viewport_i = 0; viewport_i < g.Viewports.Size; viewport_i++) + { + ImGuiViewportP* viewport = g.Viewports[viewport_i]; + bool viewport_has_drawlist = false; + for (int layer_i = 0; layer_i < IM_ARRAYSIZE(viewport->DrawDataBuilder.Layers); layer_i++) + for (int draw_list_i = 0; draw_list_i < viewport->DrawDataBuilder.Layers[layer_i].Size; draw_list_i++) + { + if (!viewport_has_drawlist) + Text("Active DrawLists in Viewport #%d, ID: 0x%08X", viewport->Idx, viewport->ID); + viewport_has_drawlist = true; + DebugNodeDrawList(NULL, viewport, viewport->DrawDataBuilder.Layers[layer_i][draw_list_i], "DrawList"); + } + } + TreePop(); + } + + // Viewports + if (TreeNode("Viewports", "Viewports (%d)", g.Viewports.Size)) + { + Indent(GetTreeNodeToLabelSpacing()); + RenderViewportsThumbnails(); + Unindent(GetTreeNodeToLabelSpacing()); + + bool open = TreeNode("Monitors", "Monitors (%d)", g.PlatformIO.Monitors.Size); + SameLine(); + MetricsHelpMarker("Dear ImGui uses monitor data:\n- to query DPI settings on a per monitor basis\n- to position popup/tooltips so they don't straddle monitors."); + if (open) + { + for (int i = 0; i < g.PlatformIO.Monitors.Size; i++) + { + const ImGuiPlatformMonitor& mon = g.PlatformIO.Monitors[i]; + BulletText("Monitor #%d: DPI %.0f%%\n MainMin (%.0f,%.0f), MainMax (%.0f,%.0f), MainSize (%.0f,%.0f)\n WorkMin (%.0f,%.0f), WorkMax (%.0f,%.0f), WorkSize (%.0f,%.0f)", + i, mon.DpiScale * 100.0f, + mon.MainPos.x, mon.MainPos.y, mon.MainPos.x + mon.MainSize.x, mon.MainPos.y + mon.MainSize.y, mon.MainSize.x, mon.MainSize.y, + mon.WorkPos.x, mon.WorkPos.y, mon.WorkPos.x + mon.WorkSize.x, mon.WorkPos.y + mon.WorkSize.y, mon.WorkSize.x, mon.WorkSize.y); + } + TreePop(); + } + + BulletText("MouseViewport: 0x%08X (UserHovered 0x%08X, LastHovered 0x%08X)", g.MouseViewport ? g.MouseViewport->ID : 0, g.IO.MouseHoveredViewport, g.MouseLastHoveredViewport ? g.MouseLastHoveredViewport->ID : 0); + if (TreeNode("Inferred Z order (front-to-back)")) + { + static ImVector viewports; + viewports.resize(g.Viewports.Size); + memcpy(viewports.Data, g.Viewports.Data, g.Viewports.size_in_bytes()); + if (viewports.Size > 1) + ImQsort(viewports.Data, viewports.Size, sizeof(ImGuiViewport*), ViewportComparerByFrontMostStampCount); + for (int i = 0; i < viewports.Size; i++) + BulletText("Viewport #%d, ID: 0x%08X, FrontMostStampCount = %08d, Window: \"%s\"", viewports[i]->Idx, viewports[i]->ID, viewports[i]->LastFrontMostStampCount, viewports[i]->Window ? viewports[i]->Window->Name : "N/A"); + TreePop(); + } + + for (int i = 0; i < g.Viewports.Size; i++) + DebugNodeViewport(g.Viewports[i]); + TreePop(); + } + + // Details for Popups + if (TreeNode("Popups", "Popups (%d)", g.OpenPopupStack.Size)) + { + for (int i = 0; i < g.OpenPopupStack.Size; i++) + { + // As it's difficult to interact with tree nodes while popups are open, we display everything inline. + const ImGuiPopupData* popup_data = &g.OpenPopupStack[i]; + ImGuiWindow* window = popup_data->Window; + BulletText("PopupID: %08x, Window: '%s' (%s%s), BackupNavWindow '%s', ParentWindow '%s'", + popup_data->PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? "Child;" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? "Menu;" : "", + popup_data->BackupNavWindow ? popup_data->BackupNavWindow->Name : "NULL", window && window->ParentWindow ? window->ParentWindow->Name : "NULL"); + } + TreePop(); + } + + // Details for TabBars + if (TreeNode("TabBars", "Tab Bars (%d)", g.TabBars.GetAliveCount())) + { + for (int n = 0; n < g.TabBars.GetMapSize(); n++) + if (ImGuiTabBar* tab_bar = g.TabBars.TryGetMapData(n)) + { + PushID(tab_bar); + DebugNodeTabBar(tab_bar, "TabBar"); + PopID(); + } + TreePop(); + } + + // Details for Tables + if (TreeNode("Tables", "Tables (%d)", g.Tables.GetAliveCount())) + { + for (int n = 0; n < g.Tables.GetMapSize(); n++) + if (ImGuiTable* table = g.Tables.TryGetMapData(n)) + DebugNodeTable(table); + TreePop(); + } + + // Details for Fonts + ImFontAtlas* atlas = g.IO.Fonts; + if (TreeNode("Fonts", "Fonts (%d)", atlas->Fonts.Size)) + { + ShowFontAtlas(atlas); + TreePop(); + } + + // Details for InputText + if (TreeNode("InputText")) + { + DebugNodeInputTextState(&g.InputTextState); + TreePop(); + } + + // Details for Docking +#ifdef IMGUI_HAS_DOCK + if (TreeNode("Docking")) + { + static bool root_nodes_only = true; + ImGuiDockContext* dc = &g.DockContext; + Checkbox("List root nodes", &root_nodes_only); + Checkbox("Ctrl shows window dock info", &cfg->ShowDockingNodes); + if (SmallButton("Clear nodes")) { DockContextClearNodes(&g, 0, true); } + SameLine(); + if (SmallButton("Rebuild all")) { dc->WantFullRebuild = true; } + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (!root_nodes_only || node->IsRootNode()) + DebugNodeDockNode(node, "Node"); + TreePop(); + } +#endif // #ifdef IMGUI_HAS_DOCK + + // Settings + if (TreeNode("Settings")) + { + if (SmallButton("Clear")) + ClearIniSettings(); + SameLine(); + if (SmallButton("Save to memory")) + SaveIniSettingsToMemory(); + SameLine(); + if (SmallButton("Save to disk")) + SaveIniSettingsToDisk(g.IO.IniFilename); + SameLine(); + if (g.IO.IniFilename) + Text("\"%s\"", g.IO.IniFilename); + else + TextUnformatted(""); + Text("SettingsDirtyTimer %.2f", g.SettingsDirtyTimer); + if (TreeNode("SettingsHandlers", "Settings handlers: (%d)", g.SettingsHandlers.Size)) + { + for (int n = 0; n < g.SettingsHandlers.Size; n++) + BulletText("%s", g.SettingsHandlers[n].TypeName); + TreePop(); + } + if (TreeNode("SettingsWindows", "Settings packed data: Windows: %d bytes", g.SettingsWindows.size())) + { + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + DebugNodeWindowSettings(settings); + TreePop(); + } + + if (TreeNode("SettingsTables", "Settings packed data: Tables: %d bytes", g.SettingsTables.size())) + { + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + DebugNodeTableSettings(settings); + TreePop(); + } + +#ifdef IMGUI_HAS_DOCK + if (TreeNode("SettingsDocking", "Settings packed data: Docking")) + { + ImGuiDockContext* dc = &g.DockContext; + Text("In SettingsWindows:"); + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->DockId != 0) + BulletText("Window '%s' -> DockId %08X", settings->GetName(), settings->DockId); + Text("In SettingsNodes:"); + for (int n = 0; n < dc->NodesSettings.Size; n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[n]; + const char* selected_tab_name = NULL; + if (settings->SelectedTabId) + { + if (ImGuiWindow* window = FindWindowByID(settings->SelectedTabId)) + selected_tab_name = window->Name; + else if (ImGuiWindowSettings* window_settings = FindWindowSettings(settings->SelectedTabId)) + selected_tab_name = window_settings->GetName(); + } + BulletText("Node %08X, Parent %08X, SelectedTab %08X ('%s')", settings->ID, settings->ParentNodeId, settings->SelectedTabId, selected_tab_name ? selected_tab_name : settings->SelectedTabId ? "N/A" : ""); + } + TreePop(); + } +#endif // #ifdef IMGUI_HAS_DOCK + + if (TreeNode("SettingsIniData", "Settings unpacked data (.ini): %d bytes", g.SettingsIniData.size())) + { + InputTextMultiline("##Ini", (char*)(void*)g.SettingsIniData.c_str(), g.SettingsIniData.Buf.Size, ImVec2(-FLT_MIN, GetTextLineHeight() * 20), ImGuiInputTextFlags_ReadOnly); + TreePop(); + } + TreePop(); + } + + if (TreeNode("Key Owners & Shortcut Routing")) + { + TextUnformatted("Key Owners:"); + if (BeginListBox("##owners", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 8))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + continue; + Text("%s: 0x%08X%s", GetKeyName(key), owner_data->OwnerCurr, + owner_data->LockUntilRelease ? " LockUntilRelease" : owner_data->LockThisFrame ? " LockThisFrame" : ""); + DebugLocateItemOnHover(owner_data->OwnerCurr); + } + EndListBox(); + } + TextUnformatted("Shortcut Routing:"); + if (BeginListBox("##routes", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 8))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; ) + { + char key_chord_name[64]; + ImGuiKeyRoutingData* routing_data = &rt->Entries[idx]; + GetKeyChordName(key | routing_data->Mods, key_chord_name, IM_ARRAYSIZE(key_chord_name)); + Text("%s: 0x%08X", key_chord_name, routing_data->RoutingCurr); + DebugLocateItemOnHover(routing_data->RoutingCurr); + idx = routing_data->NextEntryIndex; + } + } + EndListBox(); + } + Text("(ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: 0x%X)", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + TreePop(); + } + + if (TreeNode("Internal state")) + { + Text("WINDOWING"); + Indent(); + Text("HoveredWindow: '%s'", g.HoveredWindow ? g.HoveredWindow->Name : "NULL"); + Text("HoveredWindow->Root: '%s'", g.HoveredWindow ? g.HoveredWindow->RootWindowDockTree->Name : "NULL"); + Text("HoveredWindowUnderMovingWindow: '%s'", g.HoveredWindowUnderMovingWindow ? g.HoveredWindowUnderMovingWindow->Name : "NULL"); + Text("HoveredDockNode: 0x%08X", g.DebugHoveredDockNode ? g.DebugHoveredDockNode->ID : 0); + Text("MovingWindow: '%s'", g.MovingWindow ? g.MovingWindow->Name : "NULL"); + Text("MouseViewport: 0x%08X (UserHovered 0x%08X, LastHovered 0x%08X)", g.MouseViewport->ID, g.IO.MouseHoveredViewport, g.MouseLastHoveredViewport ? g.MouseLastHoveredViewport->ID : 0); + Unindent(); + + Text("ITEMS"); + Indent(); + Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, GetInputSourceName(g.ActiveIdSource)); + DebugLocateItemOnHover(g.ActiveId); + Text("ActiveIdWindow: '%s'", g.ActiveIdWindow ? g.ActiveIdWindow->Name : "NULL"); + Text("ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: %X", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + Text("HoveredId: 0x%08X (%.2f sec), AllowOverlap: %d", g.HoveredIdPreviousFrame, g.HoveredIdTimer, g.HoveredIdAllowOverlap); // Not displaying g.HoveredId as it is update mid-frame + Text("HoverDelayId: 0x%08X, Timer: %.2f, ClearTimer: %.2f", g.HoverDelayId, g.HoverDelayTimer, g.HoverDelayClearTimer); + Text("DragDrop: %d, SourceId = 0x%08X, Payload \"%s\" (%d bytes)", g.DragDropActive, g.DragDropPayload.SourceId, g.DragDropPayload.DataType, g.DragDropPayload.DataSize); + DebugLocateItemOnHover(g.DragDropPayload.SourceId); + Unindent(); + + Text("NAV,FOCUS"); + Indent(); + Text("NavWindow: '%s'", g.NavWindow ? g.NavWindow->Name : "NULL"); + Text("NavId: 0x%08X, NavLayer: %d", g.NavId, g.NavLayer); + DebugLocateItemOnHover(g.NavId); + Text("NavInputSource: %s", GetInputSourceName(g.NavInputSource)); + Text("NavActive: %d, NavVisible: %d", g.IO.NavActive, g.IO.NavVisible); + Text("NavActivateId/DownId/PressedId/InputId: %08X/%08X/%08X/%08X", g.NavActivateId, g.NavActivateDownId, g.NavActivatePressedId, g.NavActivateInputId); + Text("NavActivateFlags: %04X", g.NavActivateFlags); + Text("NavDisableHighlight: %d, NavDisableMouseHover: %d", g.NavDisableHighlight, g.NavDisableMouseHover); + Text("NavFocusScopeId = 0x%08X", g.NavFocusScopeId); + Text("NavWindowingTarget: '%s'", g.NavWindowingTarget ? g.NavWindowingTarget->Name : "NULL"); + Unindent(); + + TreePop(); + } + + // Overlay: Display windows Rectangles and Begin Order + if (cfg->ShowWindowsRects || cfg->ShowWindowsBeginOrder) + { + for (int n = 0; n < g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + if (!window->WasActive) + continue; + ImDrawList* draw_list = GetForegroundDrawList(window); + if (cfg->ShowWindowsRects) + { + ImRect r = Funcs::GetWindowRect(window, cfg->ShowWindowsRectsType); + draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); + } + if (cfg->ShowWindowsBeginOrder && !(window->Flags & ImGuiWindowFlags_ChildWindow)) + { + char buf[32]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "%d", window->BeginOrderWithinContext); + float font_size = GetFontSize(); + draw_list->AddRectFilled(window->Pos, window->Pos + ImVec2(font_size, font_size), IM_COL32(200, 100, 100, 255)); + draw_list->AddText(window->Pos, IM_COL32(255, 255, 255, 255), buf); + } + } + } + + // Overlay: Display Tables Rectangles + if (cfg->ShowTablesRects) + { + for (int table_n = 0; table_n < g.Tables.GetMapSize(); table_n++) + { + ImGuiTable* table = g.Tables.TryGetMapData(table_n); + if (table == NULL || table->LastFrameActive < g.FrameCount - 1) + continue; + ImDrawList* draw_list = GetForegroundDrawList(table->OuterWindow); + if (cfg->ShowTablesRectsType >= TRT_ColumnsRect) + { + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, column_n); + ImU32 col = (table->HoveredColumnBody == column_n) ? IM_COL32(255, 255, 128, 255) : IM_COL32(255, 0, 128, 255); + float thickness = (table->HoveredColumnBody == column_n) ? 3.0f : 1.0f; + draw_list->AddRect(r.Min, r.Max, col, 0.0f, 0, thickness); + } + } + else + { + ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, -1); + draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); + } + } + } + +#ifdef IMGUI_HAS_DOCK + // Overlay: Display Docking info + if (cfg->ShowDockingNodes && g.IO.KeyCtrl && g.DebugHoveredDockNode) + { + char buf[64] = ""; + char* p = buf; + ImGuiDockNode* node = g.DebugHoveredDockNode; + ImDrawList* overlay_draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "DockId: %X%s\n", node->ID, node->IsCentralNode() ? " *CentralNode*" : ""); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "WindowClass: %08X\n", node->WindowClass.ClassId); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "Size: (%.0f, %.0f)\n", node->Size.x, node->Size.y); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "SizeRef: (%.0f, %.0f)\n", node->SizeRef.x, node->SizeRef.y); + int depth = DockNodeGetDepth(node); + overlay_draw_list->AddRect(node->Pos + ImVec2(3, 3) * (float)depth, node->Pos + node->Size - ImVec2(3, 3) * (float)depth, IM_COL32(200, 100, 100, 255)); + ImVec2 pos = node->Pos + ImVec2(3, 3) * (float)depth; + overlay_draw_list->AddRectFilled(pos - ImVec2(1, 1), pos + CalcTextSize(buf) + ImVec2(1, 1), IM_COL32(200, 100, 100, 255)); + overlay_draw_list->AddText(NULL, 0.0f, pos, IM_COL32(255, 255, 255, 255), buf); + } +#endif // #ifdef IMGUI_HAS_DOCK + + End(); +} + +// [DEBUG] Display contents of Columns +void ImGui::DebugNodeColumns(ImGuiOldColumns* columns) +{ + if (!TreeNode((void*)(uintptr_t)columns->ID, "Columns Id: 0x%08X, Count: %d, Flags: 0x%04X", columns->ID, columns->Count, columns->Flags)) + return; + BulletText("Width: %.1f (MinX: %.1f, MaxX: %.1f)", columns->OffMaxX - columns->OffMinX, columns->OffMinX, columns->OffMaxX); + for (int column_n = 0; column_n < columns->Columns.Size; column_n++) + BulletText("Column %02d: OffsetNorm %.3f (= %.1f px)", column_n, columns->Columns[column_n].OffsetNorm, GetColumnOffsetFromNorm(columns, columns->Columns[column_n].OffsetNorm)); + TreePop(); +} + +static void DebugNodeDockNodeFlags(ImGuiDockNodeFlags* p_flags, const char* label, bool enabled) +{ + using namespace ImGui; + PushID(label); + PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0.0f, 0.0f)); + Text("%s:", label); + if (!enabled) + BeginDisabled(); + CheckboxFlags("NoSplit", p_flags, ImGuiDockNodeFlags_NoSplit); + CheckboxFlags("NoResize", p_flags, ImGuiDockNodeFlags_NoResize); + CheckboxFlags("NoResizeX", p_flags, ImGuiDockNodeFlags_NoResizeX); + CheckboxFlags("NoResizeY",p_flags, ImGuiDockNodeFlags_NoResizeY); + CheckboxFlags("NoTabBar", p_flags, ImGuiDockNodeFlags_NoTabBar); + CheckboxFlags("HiddenTabBar", p_flags, ImGuiDockNodeFlags_HiddenTabBar); + CheckboxFlags("NoWindowMenuButton", p_flags, ImGuiDockNodeFlags_NoWindowMenuButton); + CheckboxFlags("NoCloseButton", p_flags, ImGuiDockNodeFlags_NoCloseButton); + CheckboxFlags("NoDocking", p_flags, ImGuiDockNodeFlags_NoDocking); + CheckboxFlags("NoDockingSplitMe", p_flags, ImGuiDockNodeFlags_NoDockingSplitMe); + CheckboxFlags("NoDockingSplitOther", p_flags, ImGuiDockNodeFlags_NoDockingSplitOther); + CheckboxFlags("NoDockingOverMe", p_flags, ImGuiDockNodeFlags_NoDockingOverMe); + CheckboxFlags("NoDockingOverOther", p_flags, ImGuiDockNodeFlags_NoDockingOverOther); + CheckboxFlags("NoDockingOverEmpty", p_flags, ImGuiDockNodeFlags_NoDockingOverEmpty); + if (!enabled) + EndDisabled(); + PopStyleVar(); + PopID(); +} + +// [DEBUG] Display contents of ImDockNode +void ImGui::DebugNodeDockNode(ImGuiDockNode* node, const char* label) +{ + ImGuiContext& g = *GImGui; + const bool is_alive = (g.FrameCount - node->LastFrameAlive < 2); // Submitted with ImGuiDockNodeFlags_KeepAliveOnly + const bool is_active = (g.FrameCount - node->LastFrameActive < 2); // Submitted + if (!is_alive) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open; + ImGuiTreeNodeFlags tree_node_flags = node->IsFocused ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; + if (node->Windows.Size > 0) + open = TreeNodeEx((void*)(intptr_t)node->ID, tree_node_flags, "%s 0x%04X%s: %d windows (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", node->Windows.Size, node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); + else + open = TreeNodeEx((void*)(intptr_t)node->ID, tree_node_flags, "%s 0x%04X%s: %s (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", (node->SplitAxis == ImGuiAxis_X) ? "horizontal split" : (node->SplitAxis == ImGuiAxis_Y) ? "vertical split" : "empty", node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); + if (!is_alive) { PopStyleColor(); } + if (is_active && IsItemHovered()) + if (ImGuiWindow* window = node->HostWindow ? node->HostWindow : node->VisibleWindow) + GetForegroundDrawList(window)->AddRect(node->Pos, node->Pos + node->Size, IM_COL32(255, 255, 0, 255)); + if (open) + { + IM_ASSERT(node->ChildNodes[0] == NULL || node->ChildNodes[0]->ParentNode == node); + IM_ASSERT(node->ChildNodes[1] == NULL || node->ChildNodes[1]->ParentNode == node); + BulletText("Pos (%.0f,%.0f), Size (%.0f, %.0f) Ref (%.0f, %.0f)", + node->Pos.x, node->Pos.y, node->Size.x, node->Size.y, node->SizeRef.x, node->SizeRef.y); + DebugNodeWindow(node->HostWindow, "HostWindow"); + DebugNodeWindow(node->VisibleWindow, "VisibleWindow"); + BulletText("SelectedTabID: 0x%08X, LastFocusedNodeID: 0x%08X", node->SelectedTabId, node->LastFocusedNodeId); + BulletText("Misc:%s%s%s%s%s%s%s", + node->IsDockSpace() ? " IsDockSpace" : "", + node->IsCentralNode() ? " IsCentralNode" : "", + is_alive ? " IsAlive" : "", is_active ? " IsActive" : "", node->IsFocused ? " IsFocused" : "", + node->WantLockSizeOnce ? " WantLockSizeOnce" : "", + node->HasCentralNodeChild ? " HasCentralNodeChild" : ""); + if (TreeNode("flags", "Flags Merged: 0x%04X, Local: 0x%04X, InWindows: 0x%04X, Shared: 0x%04X", node->MergedFlags, node->LocalFlags, node->LocalFlagsInWindows, node->SharedFlags)) + { + if (BeginTable("flags", 4)) + { + TableNextColumn(); DebugNodeDockNodeFlags(&node->MergedFlags, "MergedFlags", false); + TableNextColumn(); DebugNodeDockNodeFlags(&node->LocalFlags, "LocalFlags", true); + TableNextColumn(); DebugNodeDockNodeFlags(&node->LocalFlagsInWindows, "LocalFlagsInWindows", false); + TableNextColumn(); DebugNodeDockNodeFlags(&node->SharedFlags, "SharedFlags", true); + EndTable(); + } + TreePop(); + } + if (node->ParentNode) + DebugNodeDockNode(node->ParentNode, "ParentNode"); + if (node->ChildNodes[0]) + DebugNodeDockNode(node->ChildNodes[0], "Child[0]"); + if (node->ChildNodes[1]) + DebugNodeDockNode(node->ChildNodes[1], "Child[1]"); + if (node->TabBar) + DebugNodeTabBar(node->TabBar, "TabBar"); + DebugNodeWindowsList(&node->Windows, "Windows"); + + TreePop(); + } +} + +// [DEBUG] Display contents of ImDrawList +// Note that both 'window' and 'viewport' may be NULL here. Viewport is generally null of destroyed popups which previously owned a viewport. +void ImGui::DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label) +{ + ImGuiContext& g = *GImGui; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + int cmd_count = draw_list->CmdBuffer.Size; + if (cmd_count > 0 && draw_list->CmdBuffer.back().ElemCount == 0 && draw_list->CmdBuffer.back().UserCallback == NULL) + cmd_count--; + bool node_open = TreeNode(draw_list, "%s: '%s' %d vtx, %d indices, %d cmds", label, draw_list->_OwnerName ? draw_list->_OwnerName : "", draw_list->VtxBuffer.Size, draw_list->IdxBuffer.Size, cmd_count); + if (draw_list == GetWindowDrawList()) + { + SameLine(); + TextColored(ImVec4(1.0f, 0.4f, 0.4f, 1.0f), "CURRENTLY APPENDING"); // Can't display stats for active draw list! (we don't have the data double-buffered) + if (node_open) + TreePop(); + return; + } + + ImDrawList* fg_draw_list = viewport ? GetForegroundDrawList(viewport) : NULL; // Render additional visuals into the top-most draw list + if (window && IsItemHovered() && fg_draw_list) + fg_draw_list->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!node_open) + return; + + if (window && !window->WasActive) + TextDisabled("Warning: owning Window is inactive. This DrawList is not being rendered!"); + + for (const ImDrawCmd* pcmd = draw_list->CmdBuffer.Data; pcmd < draw_list->CmdBuffer.Data + cmd_count; pcmd++) + { + if (pcmd->UserCallback) + { + BulletText("Callback %p, user_data %p", pcmd->UserCallback, pcmd->UserCallbackData); + continue; + } + + char buf[300]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "DrawCmd:%5d tris, Tex 0x%p, ClipRect (%4.0f,%4.0f)-(%4.0f,%4.0f)", + pcmd->ElemCount / 3, (void*)(intptr_t)pcmd->TextureId, + pcmd->ClipRect.x, pcmd->ClipRect.y, pcmd->ClipRect.z, pcmd->ClipRect.w); + bool pcmd_node_open = TreeNode((void*)(pcmd - draw_list->CmdBuffer.begin()), "%s", buf); + if (IsItemHovered() && (cfg->ShowDrawCmdMesh || cfg->ShowDrawCmdBoundingBoxes) && fg_draw_list) + DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, cfg->ShowDrawCmdMesh, cfg->ShowDrawCmdBoundingBoxes); + if (!pcmd_node_open) + continue; + + // Calculate approximate coverage area (touched pixel count) + // This will be in pixels squared as long there's no post-scaling happening to the renderer output. + const ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; + const ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + pcmd->VtxOffset; + float total_area = 0.0f; + for (unsigned int idx_n = pcmd->IdxOffset; idx_n < pcmd->IdxOffset + pcmd->ElemCount; ) + { + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_n++) + triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos; + total_area += ImTriangleArea(triangle[0], triangle[1], triangle[2]); + } + + // Display vertex information summary. Hover to get all triangles drawn in wire-frame + ImFormatString(buf, IM_ARRAYSIZE(buf), "Mesh: ElemCount: %d, VtxOffset: +%d, IdxOffset: +%d, Area: ~%0.f px", pcmd->ElemCount, pcmd->VtxOffset, pcmd->IdxOffset, total_area); + Selectable(buf); + if (IsItemHovered() && fg_draw_list) + DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, true, false); + + // Display individual triangles/vertices. Hover on to get the corresponding triangle highlighted. + ImGuiListClipper clipper; + clipper.Begin(pcmd->ElemCount / 3); // Manually coarse clip our print out of individual vertices to save CPU, only items that may be visible. + while (clipper.Step()) + for (int prim = clipper.DisplayStart, idx_i = pcmd->IdxOffset + clipper.DisplayStart * 3; prim < clipper.DisplayEnd; prim++) + { + char* buf_p = buf, * buf_end = buf + IM_ARRAYSIZE(buf); + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_i++) + { + const ImDrawVert& v = vtx_buffer[idx_buffer ? idx_buffer[idx_i] : idx_i]; + triangle[n] = v.pos; + buf_p += ImFormatString(buf_p, buf_end - buf_p, "%s %04d: pos (%8.2f,%8.2f), uv (%.6f,%.6f), col %08X\n", + (n == 0) ? "Vert:" : " ", idx_i, v.pos.x, v.pos.y, v.uv.x, v.uv.y, v.col); + } + + Selectable(buf, false); + if (fg_draw_list && IsItemHovered()) + { + ImDrawListFlags backup_flags = fg_draw_list->Flags; + fg_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + fg_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), ImDrawFlags_Closed, 1.0f); + fg_draw_list->Flags = backup_flags; + } + } + TreePop(); + } + TreePop(); +} + +// [DEBUG] Display mesh/aabb of a ImDrawCmd +void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb) +{ + IM_ASSERT(show_mesh || show_aabb); + + // Draw wire-frame version of all triangles + ImRect clip_rect = draw_cmd->ClipRect; + ImRect vtxs_rect(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + ImDrawListFlags backup_flags = out_draw_list->Flags; + out_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + for (unsigned int idx_n = draw_cmd->IdxOffset, idx_end = draw_cmd->IdxOffset + draw_cmd->ElemCount; idx_n < idx_end; ) + { + ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; // We don't hold on those pointers past iterations as ->AddPolyline() may invalidate them if out_draw_list==draw_list + ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + draw_cmd->VtxOffset; + + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_n++) + vtxs_rect.Add((triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos)); + if (show_mesh) + out_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), ImDrawFlags_Closed, 1.0f); // In yellow: mesh triangles + } + // Draw bounding boxes + if (show_aabb) + { + out_draw_list->AddRect(ImFloor(clip_rect.Min), ImFloor(clip_rect.Max), IM_COL32(255, 0, 255, 255)); // In pink: clipping rectangle submitted to GPU + out_draw_list->AddRect(ImFloor(vtxs_rect.Min), ImFloor(vtxs_rect.Max), IM_COL32(0, 255, 255, 255)); // In cyan: bounding box of triangles + } + out_draw_list->Flags = backup_flags; +} + +// [DEBUG] Display details for a single font, called by ShowStyleEditor(). +void ImGui::DebugNodeFont(ImFont* font) +{ + bool opened = TreeNode(font, "Font: \"%s\"\n%.2f px, %d glyphs, %d file(s)", + font->ConfigData ? font->ConfigData[0].Name : "", font->FontSize, font->Glyphs.Size, font->ConfigDataCount); + SameLine(); + if (SmallButton("Set as default")) + GetIO().FontDefault = font; + if (!opened) + return; + + // Display preview text + PushFont(font); + Text("The quick brown fox jumps over the lazy dog"); + PopFont(); + + // Display details + SetNextItemWidth(GetFontSize() * 8); + DragFloat("Font scale", &font->Scale, 0.005f, 0.3f, 2.0f, "%.1f"); + SameLine(); MetricsHelpMarker( + "Note than the default embedded font is NOT meant to be scaled.\n\n" + "Font are currently rendered into bitmaps at a given size at the time of building the atlas. " + "You may oversample them to get some flexibility with scaling. " + "You can also render at multiple sizes and select which one to use at runtime.\n\n" + "(Glimmer of hope: the atlas system will be rewritten in the future to make scaling more flexible.)"); + Text("Ascent: %f, Descent: %f, Height: %f", font->Ascent, font->Descent, font->Ascent - font->Descent); + char c_str[5]; + Text("Fallback character: '%s' (U+%04X)", ImTextCharToUtf8(c_str, font->FallbackChar), font->FallbackChar); + Text("Ellipsis character: '%s' (U+%04X)", ImTextCharToUtf8(c_str, font->EllipsisChar), font->EllipsisChar); + const int surface_sqrt = (int)ImSqrt((float)font->MetricsTotalSurface); + Text("Texture Area: about %d px ~%dx%d px", font->MetricsTotalSurface, surface_sqrt, surface_sqrt); + for (int config_i = 0; config_i < font->ConfigDataCount; config_i++) + if (font->ConfigData) + if (const ImFontConfig* cfg = &font->ConfigData[config_i]) + BulletText("Input %d: \'%s\', Oversample: (%d,%d), PixelSnapH: %d, Offset: (%.1f,%.1f)", + config_i, cfg->Name, cfg->OversampleH, cfg->OversampleV, cfg->PixelSnapH, cfg->GlyphOffset.x, cfg->GlyphOffset.y); + + // Display all glyphs of the fonts in separate pages of 256 characters + if (TreeNode("Glyphs", "Glyphs (%d)", font->Glyphs.Size)) + { + ImDrawList* draw_list = GetWindowDrawList(); + const ImU32 glyph_col = GetColorU32(ImGuiCol_Text); + const float cell_size = font->FontSize * 1; + const float cell_spacing = GetStyle().ItemSpacing.y; + for (unsigned int base = 0; base <= IM_UNICODE_CODEPOINT_MAX; base += 256) + { + // Skip ahead if a large bunch of glyphs are not present in the font (test in chunks of 4k) + // This is only a small optimization to reduce the number of iterations when IM_UNICODE_MAX_CODEPOINT + // is large // (if ImWchar==ImWchar32 we will do at least about 272 queries here) + if (!(base & 4095) && font->IsGlyphRangeUnused(base, base + 4095)) + { + base += 4096 - 256; + continue; + } + + int count = 0; + for (unsigned int n = 0; n < 256; n++) + if (font->FindGlyphNoFallback((ImWchar)(base + n))) + count++; + if (count <= 0) + continue; + if (!TreeNode((void*)(intptr_t)base, "U+%04X..U+%04X (%d %s)", base, base + 255, count, count > 1 ? "glyphs" : "glyph")) + continue; + + // Draw a 16x16 grid of glyphs + ImVec2 base_pos = GetCursorScreenPos(); + for (unsigned int n = 0; n < 256; n++) + { + // We use ImFont::RenderChar as a shortcut because we don't have UTF-8 conversion functions + // available here and thus cannot easily generate a zero-terminated UTF-8 encoded string. + ImVec2 cell_p1(base_pos.x + (n % 16) * (cell_size + cell_spacing), base_pos.y + (n / 16) * (cell_size + cell_spacing)); + ImVec2 cell_p2(cell_p1.x + cell_size, cell_p1.y + cell_size); + const ImFontGlyph* glyph = font->FindGlyphNoFallback((ImWchar)(base + n)); + draw_list->AddRect(cell_p1, cell_p2, glyph ? IM_COL32(255, 255, 255, 100) : IM_COL32(255, 255, 255, 50)); + if (!glyph) + continue; + font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); + if (IsMouseHoveringRect(cell_p1, cell_p2)) + { + BeginTooltip(); + DebugNodeFontGlyph(font, glyph); + EndTooltip(); + } + } + Dummy(ImVec2((cell_size + cell_spacing) * 16, (cell_size + cell_spacing) * 16)); + TreePop(); + } + TreePop(); + } + TreePop(); +} + +void ImGui::DebugNodeFontGlyph(ImFont*, const ImFontGlyph* glyph) +{ + Text("Codepoint: U+%04X", glyph->Codepoint); + Separator(); + Text("Visible: %d", glyph->Visible); + Text("AdvanceX: %.1f", glyph->AdvanceX); + Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); + Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); +} + +// [DEBUG] Display contents of ImGuiStorage +void ImGui::DebugNodeStorage(ImGuiStorage* storage, const char* label) +{ + if (!TreeNode(label, "%s: %d entries, %d bytes", label, storage->Data.Size, storage->Data.size_in_bytes())) + return; + for (int n = 0; n < storage->Data.Size; n++) + { + const ImGuiStorage::ImGuiStoragePair& p = storage->Data[n]; + BulletText("Key 0x%08X Value { i: %d }", p.key, p.val_i); // Important: we currently don't store a type, real value may not be integer. + } + TreePop(); +} + +// [DEBUG] Display contents of ImGuiTabBar +void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label) +{ + // Standalone tab bars (not associated to docking/windows functionality) currently hold no discernible strings. + char buf[256]; + char* p = buf; + const char* buf_end = buf + IM_ARRAYSIZE(buf); + const bool is_active = (tab_bar->PrevFrameVisible >= GetFrameCount() - 2); + p += ImFormatString(p, buf_end - p, "%s 0x%08X (%d tabs)%s", label, tab_bar->ID, tab_bar->Tabs.Size, is_active ? "" : " *Inactive*"); + p += ImFormatString(p, buf_end - p, " { "); + for (int tab_n = 0; tab_n < ImMin(tab_bar->Tabs.Size, 3); tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + p += ImFormatString(p, buf_end - p, "%s'%s'", + tab_n > 0 ? ", " : "", (tab->Window || tab->NameOffset != -1) ? tab_bar->GetTabName(tab) : "???"); + } + p += ImFormatString(p, buf_end - p, (tab_bar->Tabs.Size > 3) ? " ... }" : " } "); + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open = TreeNode(label, "%s", buf); + if (!is_active) { PopStyleColor(); } + if (is_active && IsItemHovered()) + { + ImDrawList* draw_list = GetForegroundDrawList(); + draw_list->AddRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, IM_COL32(255, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + } + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + const ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + PushID(tab); + if (SmallButton("<")) { TabBarQueueReorder(tab_bar, tab, -1); } SameLine(0, 2); + if (SmallButton(">")) { TabBarQueueReorder(tab_bar, tab, +1); } SameLine(); + Text("%02d%c Tab 0x%08X '%s' Offset: %.2f, Width: %.2f/%.2f", + tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID, (tab->Window || tab->NameOffset != -1) ? tab_bar->GetTabName(tab) : "???", tab->Offset, tab->Width, tab->ContentWidth); + PopID(); + } + TreePop(); + } +} + +void ImGui::DebugNodeViewport(ImGuiViewportP* viewport) +{ + SetNextItemOpen(true, ImGuiCond_Once); + if (TreeNode((void*)(intptr_t)viewport->ID, "Viewport #%d, ID: 0x%08X, Parent: 0x%08X, Window: \"%s\"", viewport->Idx, viewport->ID, viewport->ParentViewportId, viewport->Window ? viewport->Window->Name : "N/A")) + { + ImGuiWindowFlags flags = viewport->Flags; + BulletText("Main Pos: (%.0f,%.0f), Size: (%.0f,%.0f)\nWorkArea Offset Left: %.0f Top: %.0f, Right: %.0f, Bottom: %.0f\nMonitor: %d, DpiScale: %.0f%%", + viewport->Pos.x, viewport->Pos.y, viewport->Size.x, viewport->Size.y, + viewport->WorkOffsetMin.x, viewport->WorkOffsetMin.y, viewport->WorkOffsetMax.x, viewport->WorkOffsetMax.y, + viewport->PlatformMonitor, viewport->DpiScale * 100.0f); + if (viewport->Idx > 0) { SameLine(); if (SmallButton("Reset Pos")) { viewport->Pos = ImVec2(200, 200); viewport->UpdateWorkRect(); if (viewport->Window) viewport->Window->Pos = viewport->Pos; } } + BulletText("Flags: 0x%04X =%s%s%s%s%s%s%s%s%s%s%s%s", viewport->Flags, + //(flags & ImGuiViewportFlags_IsPlatformWindow) ? " IsPlatformWindow" : "", // Omitting because it is the standard + (flags & ImGuiViewportFlags_IsPlatformMonitor) ? " IsPlatformMonitor" : "", + (flags & ImGuiViewportFlags_OwnedByApp) ? " OwnedByApp" : "", + (flags & ImGuiViewportFlags_NoDecoration) ? " NoDecoration" : "", + (flags & ImGuiViewportFlags_NoTaskBarIcon) ? " NoTaskBarIcon" : "", + (flags & ImGuiViewportFlags_NoFocusOnAppearing) ? " NoFocusOnAppearing" : "", + (flags & ImGuiViewportFlags_NoFocusOnClick) ? " NoFocusOnClick" : "", + (flags & ImGuiViewportFlags_NoInputs) ? " NoInputs" : "", + (flags & ImGuiViewportFlags_NoRendererClear) ? " NoRendererClear" : "", + (flags & ImGuiViewportFlags_TopMost) ? " TopMost" : "", + (flags & ImGuiViewportFlags_Minimized) ? " Minimized" : "", + (flags & ImGuiViewportFlags_NoAutoMerge) ? " NoAutoMerge" : "", + (flags & ImGuiViewportFlags_CanHostOtherWindows) ? " CanHostOtherWindows" : ""); + for (int layer_i = 0; layer_i < IM_ARRAYSIZE(viewport->DrawDataBuilder.Layers); layer_i++) + for (int draw_list_i = 0; draw_list_i < viewport->DrawDataBuilder.Layers[layer_i].Size; draw_list_i++) + DebugNodeDrawList(NULL, viewport, viewport->DrawDataBuilder.Layers[layer_i][draw_list_i], "DrawList"); + TreePop(); + } +} + +void ImGui::DebugNodeWindow(ImGuiWindow* window, const char* label) +{ + if (window == NULL) + { + BulletText("%s: NULL", label); + return; + } + + ImGuiContext& g = *GImGui; + const bool is_active = window->WasActive; + ImGuiTreeNodeFlags tree_node_flags = (window == g.NavWindow) ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + const bool open = TreeNodeEx(label, tree_node_flags, "%s '%s'%s", label, window->Name, is_active ? "" : " *Inactive*"); + if (!is_active) { PopStyleColor(); } + if (IsItemHovered() && is_active) + GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!open) + return; + + if (window->MemoryCompacted) + TextDisabled("Note: some memory buffers have been compacted/freed."); + + ImGuiWindowFlags flags = window->Flags; + DebugNodeDrawList(window, window->Viewport, window->DrawList, "DrawList"); + BulletText("Pos: (%.1f,%.1f), Size: (%.1f,%.1f), ContentSize (%.1f,%.1f) Ideal (%.1f,%.1f)", window->Pos.x, window->Pos.y, window->Size.x, window->Size.y, window->ContentSize.x, window->ContentSize.y, window->ContentSizeIdeal.x, window->ContentSizeIdeal.y); + BulletText("Flags: 0x%08X (%s%s%s%s%s%s%s%s%s..)", flags, + (flags & ImGuiWindowFlags_ChildWindow) ? "Child " : "", (flags & ImGuiWindowFlags_Tooltip) ? "Tooltip " : "", (flags & ImGuiWindowFlags_Popup) ? "Popup " : "", + (flags & ImGuiWindowFlags_Modal) ? "Modal " : "", (flags & ImGuiWindowFlags_ChildMenu) ? "ChildMenu " : "", (flags & ImGuiWindowFlags_NoSavedSettings) ? "NoSavedSettings " : "", + (flags & ImGuiWindowFlags_NoMouseInputs)? "NoMouseInputs":"", (flags & ImGuiWindowFlags_NoNavInputs) ? "NoNavInputs" : "", (flags & ImGuiWindowFlags_AlwaysAutoResize) ? "AlwaysAutoResize" : ""); + BulletText("WindowClassId: 0x%08X", window->WindowClass.ClassId); + BulletText("Scroll: (%.2f/%.2f,%.2f/%.2f) Scrollbar:%s%s", window->Scroll.x, window->ScrollMax.x, window->Scroll.y, window->ScrollMax.y, window->ScrollbarX ? "X" : "", window->ScrollbarY ? "Y" : ""); + BulletText("Active: %d/%d, WriteAccessed: %d, BeginOrderWithinContext: %d", window->Active, window->WasActive, window->WriteAccessed, (window->Active || window->WasActive) ? window->BeginOrderWithinContext : -1); + BulletText("Appearing: %d, Hidden: %d (CanSkip %d Cannot %d), SkipItems: %d", window->Appearing, window->Hidden, window->HiddenFramesCanSkipItems, window->HiddenFramesCannotSkipItems, window->SkipItems); + for (int layer = 0; layer < ImGuiNavLayer_COUNT; layer++) + { + ImRect r = window->NavRectRel[layer]; + if (r.Min.x >= r.Max.y && r.Min.y >= r.Max.y) + BulletText("NavLastIds[%d]: 0x%08X", layer, window->NavLastIds[layer]); + else + BulletText("NavLastIds[%d]: 0x%08X at +(%.1f,%.1f)(%.1f,%.1f)", layer, window->NavLastIds[layer], r.Min.x, r.Min.y, r.Max.x, r.Max.y); + DebugLocateItemOnHover(window->NavLastIds[layer]); + } + BulletText("NavLayersActiveMask: %X, NavLastChildNavWindow: %s", window->DC.NavLayersActiveMask, window->NavLastChildNavWindow ? window->NavLastChildNavWindow->Name : "NULL"); + + BulletText("Viewport: %d%s, ViewportId: 0x%08X, ViewportPos: (%.1f,%.1f)", window->Viewport ? window->Viewport->Idx : -1, window->ViewportOwned ? " (Owned)" : "", window->ViewportId, window->ViewportPos.x, window->ViewportPos.y); + BulletText("ViewportMonitor: %d", window->Viewport ? window->Viewport->PlatformMonitor : -1); + BulletText("DockId: 0x%04X, DockOrder: %d, Act: %d, Vis: %d", window->DockId, window->DockOrder, window->DockIsActive, window->DockTabIsVisible); + if (window->DockNode || window->DockNodeAsHost) + DebugNodeDockNode(window->DockNodeAsHost ? window->DockNodeAsHost : window->DockNode, window->DockNodeAsHost ? "DockNodeAsHost" : "DockNode"); + + if (window->RootWindow != window) { DebugNodeWindow(window->RootWindow, "RootWindow"); } + if (window->RootWindowDockTree != window->RootWindow) { DebugNodeWindow(window->RootWindowDockTree, "RootWindowDockTree"); } + if (window->ParentWindow != NULL) { DebugNodeWindow(window->ParentWindow, "ParentWindow"); } + if (window->DC.ChildWindows.Size > 0) { DebugNodeWindowsList(&window->DC.ChildWindows, "ChildWindows"); } + if (window->ColumnsStorage.Size > 0 && TreeNode("Columns", "Columns sets (%d)", window->ColumnsStorage.Size)) + { + for (int n = 0; n < window->ColumnsStorage.Size; n++) + DebugNodeColumns(&window->ColumnsStorage[n]); + TreePop(); + } + DebugNodeStorage(&window->StateStorage, "Storage"); + TreePop(); +} + +void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings* settings) +{ + Text("0x%08X \"%s\" Pos (%d,%d) Size (%d,%d) Collapsed=%d", + settings->ID, settings->GetName(), settings->Pos.x, settings->Pos.y, settings->Size.x, settings->Size.y, settings->Collapsed); +} + +void ImGui::DebugNodeWindowsList(ImVector* windows, const char* label) +{ + if (!TreeNode(label, "%s (%d)", label, windows->Size)) + return; + for (int i = windows->Size - 1; i >= 0; i--) // Iterate front to back + { + PushID((*windows)[i]); + DebugNodeWindow((*windows)[i], "Window"); + PopID(); + } + TreePop(); +} + +// FIXME-OPT: This is technically suboptimal, but it is simpler this way. +void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack) +{ + for (int i = 0; i < windows_size; i++) + { + ImGuiWindow* window = windows[i]; + if (window->ParentWindowInBeginStack != parent_in_begin_stack) + continue; + char buf[20]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "[%04d] Window", window->BeginOrderWithinContext); + //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name); + DebugNodeWindow(window, buf); + Indent(); + DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window); + Unindent(); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] DEBUG LOG WINDOW +//----------------------------------------------------------------------------- + +void ImGui::DebugLog(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + DebugLogV(fmt, args); + va_end(args); +} + +void ImGui::DebugLogV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + const int old_size = g.DebugLogBuf.size(); + g.DebugLogBuf.appendf("[%05d] ", g.FrameCount); + g.DebugLogBuf.appendfv(fmt, args); + if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTTY) + IMGUI_DEBUG_PRINTF("%s", g.DebugLogBuf.begin() + old_size); + g.DebugLogIndex.append(g.DebugLogBuf.c_str(), old_size, g.DebugLogBuf.size()); +} + +void ImGui::ShowDebugLogWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 12.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui Debug Log", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + AlignTextToFramePadding(); + Text("Log events:"); + SameLine(); CheckboxFlags("All", &g.DebugLogFlags, ImGuiDebugLogFlags_EventMask_); + SameLine(); CheckboxFlags("ActiveId", &g.DebugLogFlags, ImGuiDebugLogFlags_EventActiveId); + SameLine(); CheckboxFlags("Focus", &g.DebugLogFlags, ImGuiDebugLogFlags_EventFocus); + SameLine(); CheckboxFlags("Popup", &g.DebugLogFlags, ImGuiDebugLogFlags_EventPopup); + SameLine(); CheckboxFlags("Nav", &g.DebugLogFlags, ImGuiDebugLogFlags_EventNav); + SameLine(); CheckboxFlags("Clipper", &g.DebugLogFlags, ImGuiDebugLogFlags_EventClipper); + SameLine(); CheckboxFlags("IO", &g.DebugLogFlags, ImGuiDebugLogFlags_EventIO); + SameLine(); CheckboxFlags("Docking", &g.DebugLogFlags, ImGuiDebugLogFlags_EventDocking); + SameLine(); CheckboxFlags("Viewport", &g.DebugLogFlags, ImGuiDebugLogFlags_EventViewport); + + if (SmallButton("Clear")) + { + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + } + SameLine(); + if (SmallButton("Copy")) + SetClipboardText(g.DebugLogBuf.c_str()); + BeginChild("##log", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar); + + ImGuiListClipper clipper; + clipper.Begin(g.DebugLogIndex.size()); + while (clipper.Step()) + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_begin = g.DebugLogIndex.get_line_begin(g.DebugLogBuf.c_str(), line_no); + const char* line_end = g.DebugLogIndex.get_line_end(g.DebugLogBuf.c_str(), line_no); + TextUnformatted(line_begin, line_end); + ImRect text_rect = g.LastItemData.Rect; + if (IsItemHovered()) + for (const char* p = line_begin; p < line_end - 10; p++) + { + ImGuiID id = 0; + if (p[0] != '0' || (p[1] != 'x' && p[1] != 'X') || sscanf(p + 2, "%X", &id) != 1) + continue; + ImVec2 p0 = CalcTextSize(line_begin, p); + ImVec2 p1 = CalcTextSize(p, p + 10); + g.LastItemData.Rect = ImRect(text_rect.Min + ImVec2(p0.x, 0.0f), text_rect.Min + ImVec2(p0.x + p1.x, p1.y)); + if (IsMouseHoveringRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, true)) + DebugLocateItemOnHover(id); + p += 10; + } + } + if (GetScrollY() >= GetScrollMaxY()) + SetScrollHereY(1.0f); + EndChild(); + + End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) +//----------------------------------------------------------------------------- + +static const ImU32 DEBUG_LOCATE_ITEM_COLOR = IM_COL32(0, 255, 0, 255); // Green + +void ImGui::DebugLocateItem(ImGuiID target_id) +{ + ImGuiContext& g = *GImGui; + g.DebugLocateId = target_id; + g.DebugLocateFrames = 2; +} + +void ImGui::DebugLocateItemOnHover(ImGuiID target_id) +{ + if (target_id == 0 || !IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + return; + ImGuiContext& g = *GImGui; + DebugLocateItem(target_id); + GetForegroundDrawList(g.CurrentWindow)->AddRect(g.LastItemData.Rect.Min - ImVec2(3.0f, 3.0f), g.LastItemData.Rect.Max + ImVec2(3.0f, 3.0f), DEBUG_LOCATE_ITEM_COLOR); +} + +void ImGui::DebugLocateItemResolveWithLastItem() +{ + ImGuiContext& g = *GImGui; + ImGuiLastItemData item_data = g.LastItemData; + g.DebugLocateId = 0; + ImDrawList* draw_list = GetForegroundDrawList(g.CurrentWindow); + ImRect r = item_data.Rect; + r.Expand(3.0f); + ImVec2 p1 = g.IO.MousePos; + ImVec2 p2 = ImVec2((p1.x < r.Min.x) ? r.Min.x : (p1.x > r.Max.x) ? r.Max.x : p1.x, (p1.y < r.Min.y) ? r.Min.y : (p1.y > r.Max.y) ? r.Max.y : p1.y); + draw_list->AddRect(r.Min, r.Max, DEBUG_LOCATE_ITEM_COLOR); + draw_list->AddLine(p1, p2, DEBUG_LOCATE_ITEM_COLOR); +} + +// [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. +void ImGui::UpdateDebugToolItemPicker() +{ + ImGuiContext& g = *GImGui; + g.DebugItemPickerBreakId = 0; + if (!g.DebugItemPickerActive) + return; + + const ImGuiID hovered_id = g.HoveredIdPreviousFrame; + SetMouseCursor(ImGuiMouseCursor_Hand); + if (IsKeyPressed(ImGuiKey_Escape)) + g.DebugItemPickerActive = false; + const bool change_mapping = g.IO.KeyMods == (ImGuiMod_Ctrl | ImGuiMod_Shift); + if (!change_mapping && IsMouseClicked(g.DebugItemPickerMouseButton) && hovered_id) + { + g.DebugItemPickerBreakId = hovered_id; + g.DebugItemPickerActive = false; + } + for (int mouse_button = 0; mouse_button < 3; mouse_button++) + if (change_mapping && IsMouseClicked(mouse_button)) + g.DebugItemPickerMouseButton = (ImU8)mouse_button; + SetNextWindowBgAlpha(0.70f); + BeginTooltip(); + Text("HoveredId: 0x%08X", hovered_id); + Text("Press ESC to abort picking."); + const char* mouse_button_names[] = { "Left", "Right", "Middle" }; + if (change_mapping) + Text("Remap w/ Ctrl+Shift: click anywhere to select new mouse button."); + else + TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click %s Button to break in debugger! (remap w/ Ctrl+Shift)", mouse_button_names[g.DebugItemPickerMouseButton]); + EndTooltip(); +} + +// [DEBUG] Stack Tool: update queries. Called by NewFrame() +void ImGui::UpdateDebugToolStackQueries() +{ + ImGuiContext& g = *GImGui; + ImGuiStackTool* tool = &g.DebugStackTool; + + // Clear hook when stack tool is not visible + g.DebugHookIdInfo = 0; + if (g.FrameCount != tool->LastActiveFrame + 1) + return; + + // Update queries. The steps are: -1: query Stack, >= 0: query each stack item + // We can only perform 1 ID Info query every frame. This is designed so the GetID() tests are cheap and constant-time + const ImGuiID query_id = g.HoveredIdPreviousFrame ? g.HoveredIdPreviousFrame : g.ActiveId; + if (tool->QueryId != query_id) + { + tool->QueryId = query_id; + tool->StackLevel = -1; + tool->Results.resize(0); + } + if (query_id == 0) + return; + + // Advance to next stack level when we got our result, or after 2 frames (in case we never get a result) + int stack_level = tool->StackLevel; + if (stack_level >= 0 && stack_level < tool->Results.Size) + if (tool->Results[stack_level].QuerySuccess || tool->Results[stack_level].QueryFrameCount > 2) + tool->StackLevel++; + + // Update hook + stack_level = tool->StackLevel; + if (stack_level == -1) + g.DebugHookIdInfo = query_id; + if (stack_level >= 0 && stack_level < tool->Results.Size) + { + g.DebugHookIdInfo = tool->Results[stack_level].ID; + tool->Results[stack_level].QueryFrameCount++; + } +} + +// [DEBUG] Stack tool: hooks called by GetID() family functions +void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStackTool* tool = &g.DebugStackTool; + + // Step 0: stack query + // This assumes that the ID was computed with the current ID stack, which tends to be the case for our widget. + if (tool->StackLevel == -1) + { + tool->StackLevel++; + tool->Results.resize(window->IDStack.Size + 1, ImGuiStackLevelInfo()); + for (int n = 0; n < window->IDStack.Size + 1; n++) + tool->Results[n].ID = (n < window->IDStack.Size) ? window->IDStack[n] : id; + return; + } + + // Step 1+: query for individual level + IM_ASSERT(tool->StackLevel >= 0); + if (tool->StackLevel != window->IDStack.Size) + return; + ImGuiStackLevelInfo* info = &tool->Results[tool->StackLevel]; + IM_ASSERT(info->ID == id && info->QueryFrameCount > 0); + + switch (data_type) + { + case ImGuiDataType_S32: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%d", (int)(intptr_t)data_id); + break; + case ImGuiDataType_String: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%.*s", data_id_end ? (int)((const char*)data_id_end - (const char*)data_id) : (int)strlen((const char*)data_id), (const char*)data_id); + break; + case ImGuiDataType_Pointer: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "(void*)0x%p", data_id); + break; + case ImGuiDataType_ID: + if (info->Desc[0] != 0) // PushOverrideID() is often used to avoid hashing twice, which would lead to 2 calls to DebugHookIdInfo(). We prioritize the first one. + return; + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "0x%08X [override]", id); + break; + default: + IM_ASSERT(0); + } + info->QuerySuccess = true; + info->DataType = data_type; +} + +static int StackToolFormatLevelInfo(ImGuiStackTool* tool, int n, bool format_for_ui, char* buf, size_t buf_size) +{ + ImGuiStackLevelInfo* info = &tool->Results[n]; + ImGuiWindow* window = (info->Desc[0] == 0 && n == 0) ? ImGui::FindWindowByID(info->ID) : NULL; + if (window) // Source: window name (because the root ID don't call GetID() and so doesn't get hooked) + return ImFormatString(buf, buf_size, format_for_ui ? "\"%s\" [window]" : "%s", window->Name); + if (info->QuerySuccess) // Source: GetID() hooks (prioritize over ItemInfo() because we frequently use patterns like: PushID(str), Button("") where they both have same id) + return ImFormatString(buf, buf_size, (format_for_ui && info->DataType == ImGuiDataType_String) ? "\"%s\"" : "%s", info->Desc); + if (tool->StackLevel < tool->Results.Size) // Only start using fallback below when all queries are done, so during queries we don't flickering ??? markers. + return (*buf = 0); +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (const char* label = ImGuiTestEngine_FindItemDebugLabel(GImGui, info->ID)) // Source: ImGuiTestEngine's ItemInfo() + return ImFormatString(buf, buf_size, format_for_ui ? "??? \"%s\"" : "%s", label); +#endif + return ImFormatString(buf, buf_size, "???"); +} + +// Stack Tool: Display UI +void ImGui::ShowStackToolWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 8.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui Stack Tool", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + // Display hovered/active status + ImGuiStackTool* tool = &g.DebugStackTool; + const ImGuiID hovered_id = g.HoveredIdPreviousFrame; + const ImGuiID active_id = g.ActiveId; +#ifdef IMGUI_ENABLE_TEST_ENGINE + Text("HoveredId: 0x%08X (\"%s\"), ActiveId: 0x%08X (\"%s\")", hovered_id, hovered_id ? ImGuiTestEngine_FindItemDebugLabel(&g, hovered_id) : "", active_id, active_id ? ImGuiTestEngine_FindItemDebugLabel(&g, active_id) : ""); +#else + Text("HoveredId: 0x%08X, ActiveId: 0x%08X", hovered_id, active_id); +#endif + SameLine(); + MetricsHelpMarker("Hover an item with the mouse to display elements of the ID Stack leading to the item's final ID.\nEach level of the stack correspond to a PushID() call.\nAll levels of the stack are hashed together to make the final ID of a widget (ID displayed at the bottom level of the stack).\nRead FAQ entry about the ID stack for details."); + + // CTRL+C to copy path + const float time_since_copy = (float)g.Time - tool->CopyToClipboardLastTime; + Checkbox("Ctrl+C: copy path to clipboard", &tool->CopyToClipboardOnCtrlC); + SameLine(); + TextColored((time_since_copy >= 0.0f && time_since_copy < 0.75f && ImFmod(time_since_copy, 0.25f) < 0.25f * 0.5f) ? ImVec4(1.f, 1.f, 0.3f, 1.f) : ImVec4(), "*COPIED*"); + if (tool->CopyToClipboardOnCtrlC && IsKeyDown(ImGuiMod_Ctrl) && IsKeyPressed(ImGuiKey_C)) + { + tool->CopyToClipboardLastTime = (float)g.Time; + char* p = g.TempBuffer.Data; + char* p_end = p + g.TempBuffer.Size; + for (int stack_n = 0; stack_n < tool->Results.Size && p + 3 < p_end; stack_n++) + { + *p++ = '/'; + char level_desc[256]; + StackToolFormatLevelInfo(tool, stack_n, false, level_desc, IM_ARRAYSIZE(level_desc)); + for (int n = 0; level_desc[n] && p + 2 < p_end; n++) + { + if (level_desc[n] == '/') + *p++ = '\\'; + *p++ = level_desc[n]; + } + } + *p = '\0'; + SetClipboardText(g.TempBuffer.Data); + } + + // Display decorated stack + tool->LastActiveFrame = g.FrameCount; + if (tool->Results.Size > 0 && BeginTable("##table", 3, ImGuiTableFlags_Borders)) + { + const float id_width = CalcTextSize("0xDDDDDDDD").x; + TableSetupColumn("Seed", ImGuiTableColumnFlags_WidthFixed, id_width); + TableSetupColumn("PushID", ImGuiTableColumnFlags_WidthStretch); + TableSetupColumn("Result", ImGuiTableColumnFlags_WidthFixed, id_width); + TableHeadersRow(); + for (int n = 0; n < tool->Results.Size; n++) + { + ImGuiStackLevelInfo* info = &tool->Results[n]; + TableNextColumn(); + Text("0x%08X", (n > 0) ? tool->Results[n - 1].ID : 0); + TableNextColumn(); + StackToolFormatLevelInfo(tool, n, true, g.TempBuffer.Data, g.TempBuffer.Size); + TextUnformatted(g.TempBuffer.Data); + TableNextColumn(); + Text("0x%08X", info->ID); + if (n == tool->Results.Size - 1) + TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_Header)); + } + EndTable(); + } + End(); +} + +#else + +void ImGui::ShowMetricsWindow(bool*) {} +void ImGui::ShowFontAtlas(ImFontAtlas*) {} +void ImGui::DebugNodeColumns(ImGuiOldColumns*) {} +void ImGui::DebugNodeDrawList(ImGuiWindow*, ImGuiViewportP*, const ImDrawList*, const char*) {} +void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList*, const ImDrawList*, const ImDrawCmd*, bool, bool) {} +void ImGui::DebugNodeFont(ImFont*) {} +void ImGui::DebugNodeStorage(ImGuiStorage*, const char*) {} +void ImGui::DebugNodeTabBar(ImGuiTabBar*, const char*) {} +void ImGui::DebugNodeWindow(ImGuiWindow*, const char*) {} +void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings*) {} +void ImGui::DebugNodeWindowsList(ImVector*, const char*) {} +void ImGui::DebugNodeViewport(ImGuiViewportP*) {} + +void ImGui::DebugLog(const char*, ...) {} +void ImGui::DebugLogV(const char*, va_list) {} +void ImGui::ShowDebugLogWindow(bool*) {} +void ImGui::ShowStackToolWindow(bool*) {} +void ImGui::DebugHookIdInfo(ImGuiID, ImGuiDataType, const void*, const void*) {} +void ImGui::UpdateDebugToolItemPicker() {} +void ImGui::UpdateDebugToolStackQueries() {} + +#endif // #ifndef IMGUI_DISABLE_DEBUG_TOOLS + +//----------------------------------------------------------------------------- + +// Include imgui_user.inl at the end of imgui.cpp to access private data/functions that aren't exposed. +// Prefer just including imgui_internal.h from your code rather than using this define. If a declaration is missing from imgui_internal.h add it or request it on the github. +#ifdef IMGUI_INCLUDE_IMGUI_USER_INL +#include "imgui_user.inl" +#endif + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui.h b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui.h new file mode 100644 index 000000000..1004ac07d --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui.h @@ -0,0 +1,3334 @@ +// dear imgui, v1.89.1 +// (headers) + +// Help: +// - Read FAQ at http://dearimgui.org/faq +// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// Read imgui.cpp for details, links and comments. + +// Resources: +// - FAQ http://dearimgui.org/faq +// - Homepage & latest https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/5243 (please post your screenshots/video there!) +// - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Issues & support https://github.com/ocornut/imgui/issues + +// Getting Started? +// - For first-time users having issues compiling/linking/running or issues loading fonts: +// please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. + +// Library Version +// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM > 12345') +#define IMGUI_VERSION "1.89.1" +#define IMGUI_VERSION_NUM 18910 +#define IMGUI_HAS_TABLE +#define IMGUI_HAS_VIEWPORT // Viewport WIP branch +#define IMGUI_HAS_DOCK // Docking WIP branch + +/* + +Index of this file: +// [SECTION] Header mess +// [SECTION] Forward declarations and basic types +// [SECTION] Dear ImGui end-user API functions +// [SECTION] Flags & Enumerations +// [SECTION] Helpers: Memory allocations macros, ImVector<> +// [SECTION] ImGuiStyle +// [SECTION] ImGuiIO +// [SECTION] Misc data structures (ImGuiInputTextCallbackData, ImGuiSizeCallbackData, ImGuiWindowClass, ImGuiPayload, ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs) +// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, ImColor) +// [SECTION] Drawing API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawFlags, ImDrawListFlags, ImDrawList, ImDrawData) +// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) +// [SECTION] Viewports (ImGuiViewportFlags, ImGuiViewport) +// [SECTION] Platform Dependent Interfaces (ImGuiPlatformIO, ImGuiPlatformMonitor, ImGuiPlatformImeData) +// [SECTION] Obsolete functions and types + +*/ + +#pragma once + +// Configuration file with compile-time options +// (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system') +#ifdef IMGUI_USER_CONFIG +#include IMGUI_USER_CONFIG +#endif +#include "imconfig.h" + +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +// Includes +#include // FLT_MIN, FLT_MAX +#include // va_list, va_start, va_end +#include // ptrdiff_t, NULL +#include // memset, memmove, memcpy, strlen, strchr, strcpy, strcmp + +// Define attributes of all API symbols declarations (e.g. for DLL under Windows) +// IMGUI_API is used for core imgui functions, IMGUI_IMPL_API is used for the default backends files (imgui_impl_xxx.h) +// Using dear imgui via a shared library is not recommended, because we don't guarantee backward nor forward ABI compatibility (also function call overhead, as dear imgui is a call-heavy API) +#ifndef IMGUI_API +#define IMGUI_API +#endif +#ifndef IMGUI_IMPL_API +#define IMGUI_IMPL_API IMGUI_API +#endif + +// Helper Macros +#ifndef IM_ASSERT +#include +#define IM_ASSERT(_EXPR) assert(_EXPR) // You can override the default assert handler by editing imconfig.h +#endif +#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) // Size of a static C-style array. Don't use on pointers! +#define IM_UNUSED(_VAR) ((void)(_VAR)) // Used to silence "unused variable warnings". Often useful as asserts may be stripped out from final builds. +#define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // Offset of _MEMBER within _TYPE. Standardized as offsetof() in C++11 +#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) + +// Helper Macros - IM_FMTARGS, IM_FMTLIST: Apply printf-style warnings to our formatting functions. +#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__) +#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1))) +#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0))) +#elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__)) +#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1))) +#define IM_FMTLIST(FMT) __attribute__((format(printf, FMT, 0))) +#else +#define IM_FMTARGS(FMT) +#define IM_FMTLIST(FMT) +#endif + +// Disable some of MSVC most aggressive Debug runtime checks in function header/footer (used in some simple/low-level functions) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID) +#define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off)) +#define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop)) +#else +#define IM_MSVC_RUNTIME_CHECKS_OFF +#define IM_MSVC_RUNTIME_CHECKS_RESTORE +#endif + +// Warnings +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#endif +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wold-style-cast" +#if __has_warning("-Wzero-as-null-pointer-constant") +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#endif +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward declarations and basic types +//----------------------------------------------------------------------------- + +// Forward declarations +struct ImDrawChannel; // Temporary storage to output draw commands out of order, used by ImDrawListSplitter and ImDrawList::ChannelsSplit() +struct ImDrawCmd; // A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a callback) +struct ImDrawData; // All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix. +struct ImDrawList; // A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" builder) +struct ImDrawListSharedData; // Data shared among multiple draw lists (typically owned by parent ImGui context, but you may create one yourself) +struct ImDrawListSplitter; // Helper to split a draw list into different layers which can be drawn into out of order, then flattened back. +struct ImDrawVert; // A single vertex (pos + uv + col = 20 bytes by default. Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) +struct ImFont; // Runtime data for a single font within a parent ImFontAtlas +struct ImFontAtlas; // Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader +struct ImFontBuilderIO; // Opaque interface to a font builder (stb_truetype or FreeType). +struct ImFontConfig; // Configuration data when adding a font or merging fonts +struct ImFontGlyph; // A single font glyph (code point + coordinates within in ImFontAtlas + offset) +struct ImFontGlyphRangesBuilder; // Helper to build glyph ranges from text/string data +struct ImColor; // Helper functions to create a color that can be converted to either u32 or float4 (*OBSOLETE* please avoid using) +struct ImGuiContext; // Dear ImGui context (opaque structure, unless including imgui_internal.h) +struct ImGuiIO; // Main configuration and I/O between your application and ImGui +struct ImGuiInputTextCallbackData; // Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use) +struct ImGuiKeyData; // Storage for ImGuiIO and IsKeyDown(), IsKeyPressed() etc functions. +struct ImGuiListClipper; // Helper to manually clip large list of items +struct ImGuiOnceUponAFrame; // Helper for running a block of code not more than once a frame +struct ImGuiPayload; // User data payload for drag and drop operations +struct ImGuiPlatformIO; // Multi-viewport support: interface for Platform/Renderer backends + viewports to render +struct ImGuiPlatformMonitor; // Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning popups and tooltips to avoid them straddling monitors +struct ImGuiPlatformImeData; // Platform IME data for io.SetPlatformImeDataFn() function. +struct ImGuiSizeCallbackData; // Callback data when using SetNextWindowSizeConstraints() (rare/advanced use) +struct ImGuiStorage; // Helper for key->value storage +struct ImGuiStyle; // Runtime data for styling/colors +struct ImGuiTableSortSpecs; // Sorting specifications for a table (often handling sort specs for a single column, occasionally more) +struct ImGuiTableColumnSortSpecs; // Sorting specification for one column of a table +struct ImGuiTextBuffer; // Helper to hold and append into a text buffer (~string builder) +struct ImGuiTextFilter; // Helper to parse and apply text filters (e.g. "aaaaa[,bbbbb][,ccccc]") +struct ImGuiViewport; // A Platform Window (always 1 unless multi-viewport are enabled. One per platform window to output to). In the future may represent Platform Monitor +struct ImGuiWindowClass; // Window class (rare/advanced uses: provide hints to the platform backend via altered viewport flags and parent/child info) + +// Enumerations +// - We don't use strongly typed enums much because they add constraints (can't extend in private code, can't store typed in bit fields, extra casting on iteration) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +enum ImGuiKey : int; // -> enum ImGuiKey // Enum: A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) +typedef int ImGuiCol; // -> enum ImGuiCol_ // Enum: A color identifier for styling +typedef int ImGuiCond; // -> enum ImGuiCond_ // Enum: A condition for many Set*() functions +typedef int ImGuiDataType; // -> enum ImGuiDataType_ // Enum: A primary data type +typedef int ImGuiDir; // -> enum ImGuiDir_ // Enum: A cardinal direction +typedef int ImGuiMouseButton; // -> enum ImGuiMouseButton_ // Enum: A mouse button identifier (0=left, 1=right, 2=middle) +typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor shape +typedef int ImGuiSortDirection; // -> enum ImGuiSortDirection_ // Enum: A sorting direction (ascending or descending) +typedef int ImGuiStyleVar; // -> enum ImGuiStyleVar_ // Enum: A variable identifier for styling +typedef int ImGuiTableBgTarget; // -> enum ImGuiTableBgTarget_ // Enum: A color target for TableSetBgColor() + +// Flags (declared as int for compatibility with old C++, to allow using as flags without overhead, and to not pollute the top of this file) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +typedef int ImDrawFlags; // -> enum ImDrawFlags_ // Flags: for ImDrawList functions +typedef int ImDrawListFlags; // -> enum ImDrawListFlags_ // Flags: for ImDrawList instance +typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build +typedef int ImGuiBackendFlags; // -> enum ImGuiBackendFlags_ // Flags: for io.BackendFlags +typedef int ImGuiButtonFlags; // -> enum ImGuiButtonFlags_ // Flags: for InvisibleButton() +typedef int ImGuiColorEditFlags; // -> enum ImGuiColorEditFlags_ // Flags: for ColorEdit4(), ColorPicker4() etc. +typedef int ImGuiConfigFlags; // -> enum ImGuiConfigFlags_ // Flags: for io.ConfigFlags +typedef int ImGuiComboFlags; // -> enum ImGuiComboFlags_ // Flags: for BeginCombo() +typedef int ImGuiDockNodeFlags; // -> enum ImGuiDockNodeFlags_ // Flags: for DockSpace() +typedef int ImGuiDragDropFlags; // -> enum ImGuiDragDropFlags_ // Flags: for BeginDragDropSource(), AcceptDragDropPayload() +typedef int ImGuiFocusedFlags; // -> enum ImGuiFocusedFlags_ // Flags: for IsWindowFocused() +typedef int ImGuiHoveredFlags; // -> enum ImGuiHoveredFlags_ // Flags: for IsItemHovered(), IsWindowHovered() etc. +typedef int ImGuiInputTextFlags; // -> enum ImGuiInputTextFlags_ // Flags: for InputText(), InputTextMultiline() +typedef int ImGuiKeyChord; // -> ImGuiKey | ImGuiMod_XXX // Flags: for storage only for now: an ImGuiKey optionally OR-ed with one or more ImGuiMod_XXX values. +typedef int ImGuiPopupFlags; // -> enum ImGuiPopupFlags_ // Flags: for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() +typedef int ImGuiSelectableFlags; // -> enum ImGuiSelectableFlags_ // Flags: for Selectable() +typedef int ImGuiSliderFlags; // -> enum ImGuiSliderFlags_ // Flags: for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +typedef int ImGuiTabBarFlags; // -> enum ImGuiTabBarFlags_ // Flags: for BeginTabBar() +typedef int ImGuiTabItemFlags; // -> enum ImGuiTabItemFlags_ // Flags: for BeginTabItem() +typedef int ImGuiTableFlags; // -> enum ImGuiTableFlags_ // Flags: For BeginTable() +typedef int ImGuiTableColumnFlags; // -> enum ImGuiTableColumnFlags_// Flags: For TableSetupColumn() +typedef int ImGuiTableRowFlags; // -> enum ImGuiTableRowFlags_ // Flags: For TableNextRow() +typedef int ImGuiTreeNodeFlags; // -> enum ImGuiTreeNodeFlags_ // Flags: for TreeNode(), TreeNodeEx(), CollapsingHeader() +typedef int ImGuiViewportFlags; // -> enum ImGuiViewportFlags_ // Flags: for ImGuiViewport +typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: for Begin(), BeginChild() + +// ImTexture: user data for renderer backend to identify a texture [Compile-time configurable type] +// - To use something else than an opaque void* pointer: override with e.g. '#define ImTextureID MyTextureType*' in your imconfig.h file. +// - This can be whatever to you want it to be! read the FAQ about ImTextureID for details. +#ifndef ImTextureID +typedef void* ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that) +#endif + +// ImDrawIdx: vertex index. [Compile-time configurable type] +// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended). +// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file. +#ifndef ImDrawIdx +typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends) +#endif + +// Scalar data types +typedef unsigned int ImGuiID;// A unique ID used by widgets (typically the result of hashing a stack of string) +typedef signed char ImS8; // 8-bit signed integer +typedef unsigned char ImU8; // 8-bit unsigned integer +typedef signed short ImS16; // 16-bit signed integer +typedef unsigned short ImU16; // 16-bit unsigned integer +typedef signed int ImS32; // 32-bit signed integer == int +typedef unsigned int ImU32; // 32-bit unsigned integer (often used to store packed colors) +typedef signed long long ImS64; // 64-bit signed integer +typedef unsigned long long ImU64; // 64-bit unsigned integer + +// Character types +// (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) +typedef unsigned short ImWchar16; // A single decoded U16 character/code point. We encode them as multi bytes UTF-8 when used in strings. +typedef unsigned int ImWchar32; // A single decoded U32 character/code point. We encode them as multi bytes UTF-8 when used in strings. +#ifdef IMGUI_USE_WCHAR32 // ImWchar [configurable type: override in imconfig.h with '#define IMGUI_USE_WCHAR32' to support Unicode planes 1-16] +typedef ImWchar32 ImWchar; +#else +typedef ImWchar16 ImWchar; +#endif + +// Callback and functions types +typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data); // Callback function for ImGui::InputText() +typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data); // Callback function for ImGui::SetNextWindowSizeConstraints() +typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() +typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() + +// ImVec2: 2D vector used to store positions, sizes etc. [Compile-time configurable type] +// This is a frequently used type in the API. Consider using IM_VEC2_CLASS_EXTRA to create implicit cast from/to our preferred type. +IM_MSVC_RUNTIME_CHECKS_OFF +struct ImVec2 +{ + float x, y; + constexpr ImVec2() : x(0.0f), y(0.0f) { } + constexpr ImVec2(float _x, float _y) : x(_x), y(_y) { } + float operator[] (size_t idx) const { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. + float& operator[] (size_t idx) { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. +#ifdef IM_VEC2_CLASS_EXTRA + IM_VEC2_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec2. +#endif +}; + +// ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type] +struct ImVec4 +{ + float x, y, z, w; + constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { } + constexpr ImVec4(float _x, float _y, float _z, float _w) : x(_x), y(_y), z(_z), w(_w) { } +#ifdef IM_VEC4_CLASS_EXTRA + IM_VEC4_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec4. +#endif +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] Dear ImGui end-user API functions +// (Note that ImGui:: being a namespace, you can add extra ImGui:: functions in your own separate file. Please don't modify imgui source files!) +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Context creation and access + // - Each context create its own ImFontAtlas by default. You may instance one yourself and pass it to CreateContext() to share a font atlas between contexts. + // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() + // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for details. + IMGUI_API ImGuiContext* CreateContext(ImFontAtlas* shared_font_atlas = NULL); + IMGUI_API void DestroyContext(ImGuiContext* ctx = NULL); // NULL = destroy current context + IMGUI_API ImGuiContext* GetCurrentContext(); + IMGUI_API void SetCurrentContext(ImGuiContext* ctx); + + // Main + IMGUI_API ImGuiIO& GetIO(); // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags) + IMGUI_API ImGuiStyle& GetStyle(); // access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame! + IMGUI_API void NewFrame(); // start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). + IMGUI_API void EndFrame(); // ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all! + IMGUI_API void Render(); // ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData(). + IMGUI_API ImDrawData* GetDrawData(); // valid after Render() and until the next call to NewFrame(). this is what you have to render. + + // Demo, Debug, Information + IMGUI_API void ShowDemoWindow(bool* p_open = NULL); // create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! + IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. + IMGUI_API void ShowDebugLogWindow(bool* p_open = NULL); // create Debug Log window. display a simplified log of important dear imgui events. + IMGUI_API void ShowStackToolWindow(bool* p_open = NULL); // create Stack Tool window. hover items with mouse to query information about the source of their unique ID. + IMGUI_API void ShowAboutWindow(bool* p_open = NULL); // create About window. display Dear ImGui version, credits and build/system information. + IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) + IMGUI_API bool ShowStyleSelector(const char* label); // add style selector block (not a window), essentially a combo listing the default styles. + IMGUI_API void ShowFontSelector(const char* label); // add font selector block (not a window), essentially a combo listing the loaded fonts. + IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls). + IMGUI_API const char* GetVersion(); // get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp) + + // Styles + IMGUI_API void StyleColorsDark(ImGuiStyle* dst = NULL); // new, recommended style (default) + IMGUI_API void StyleColorsLight(ImGuiStyle* dst = NULL); // best used with borders and a custom, thicker font + IMGUI_API void StyleColorsClassic(ImGuiStyle* dst = NULL); // classic imgui style + + // Windows + // - Begin() = push window to the stack and start appending to it. End() = pop window from the stack. + // - Passing 'bool* p_open != NULL' shows a window-closing widget in the upper-right corner of the window, + // which clicking will set the boolean to false when clicked. + // - You may append multiple times to the same window during the same frame by calling Begin()/End() pairs multiple times. + // Some information such as 'flags' or 'p_open' will only be considered by the first call to Begin(). + // - Begin() return false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting + // anything to the window. Always call a matching End() for each Begin() call, regardless of its return value! + // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, + // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function + // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] + // - Note that the bottom of window stack always contains a window called "Debug". + IMGUI_API bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); + IMGUI_API void End(); + + // Child Windows + // - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child. + // - For each independent axis of 'size': ==0.0f: use remaining host window size / >0.0f: fixed size / <0.0f: use remaining window size minus abs(size) / Each axis can use a different mode, e.g. ImVec2(0,400). + // - BeginChild() returns false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting anything to the window. + // Always call a matching EndChild() for each BeginChild() call, regardless of its return value. + // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, + // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function + // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] + IMGUI_API bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); + IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); + IMGUI_API void EndChild(); + + // Windows Utilities + // - 'current window' = the window we are appending into while inside a Begin()/End() block. 'next window' = next window we will Begin() into. + IMGUI_API bool IsWindowAppearing(); + IMGUI_API bool IsWindowCollapsed(); + IMGUI_API bool IsWindowFocused(ImGuiFocusedFlags flags=0); // is current window focused? or its root/child, depending on flags. see flags for options. + IMGUI_API bool IsWindowHovered(ImGuiHoveredFlags flags=0); // is current window hovered (and typically: not blocked by a popup/modal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! + IMGUI_API ImDrawList* GetWindowDrawList(); // get draw list associated to the current window, to append your own drawing primitives + IMGUI_API float GetWindowDpiScale(); // get DPI scale currently associated to the current window's viewport. + IMGUI_API ImVec2 GetWindowPos(); // get current window position in screen space (useful if you want to do your own drawing via the DrawList API) + IMGUI_API ImVec2 GetWindowSize(); // get current window size + IMGUI_API float GetWindowWidth(); // get current window width (shortcut for GetWindowSize().x) + IMGUI_API float GetWindowHeight(); // get current window height (shortcut for GetWindowSize().y) + IMGUI_API ImGuiViewport*GetWindowViewport(); // get viewport currently associated to the current window. + + // Window manipulation + // - Prefer using SetNextXXX functions (before Begin) rather that SetXXX functions (after Begin). + IMGUI_API void SetNextWindowPos(const ImVec2& pos, ImGuiCond cond = 0, const ImVec2& pivot = ImVec2(0, 0)); // set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. + IMGUI_API void SetNextWindowSize(const ImVec2& size, ImGuiCond cond = 0); // set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() + IMGUI_API void SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL, void* custom_callback_data = NULL); // set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. + IMGUI_API void SetNextWindowContentSize(const ImVec2& size); // set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() + IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // set next window collapsed state. call before Begin() + IMGUI_API void SetNextWindowFocus(); // set next window to be focused / top-most. call before Begin() + IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // set next window scrolling value (use < 0.0f to not affect a given axis). + IMGUI_API void SetNextWindowBgAlpha(float alpha); // set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground. + IMGUI_API void SetNextWindowViewport(ImGuiID viewport_id); // set next window viewport + IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); // (not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. + IMGUI_API void SetWindowSize(const ImVec2& size, ImGuiCond cond = 0); // (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. + IMGUI_API void SetWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). + IMGUI_API void SetWindowFocus(); // (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus(). + IMGUI_API void SetWindowFontScale(float scale); // [OBSOLETE] set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). + IMGUI_API void SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond = 0); // set named window position. + IMGUI_API void SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond = 0); // set named window size. set axis to 0.0f to force an auto-fit on this axis. + IMGUI_API void SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond = 0); // set named window collapsed state + IMGUI_API void SetWindowFocus(const char* name); // set named window to be focused / top-most. use NULL to remove focus. + + // Content region + // - Retrieve available space from a given point. GetContentRegionAvail() is frequently useful. + // - Those functions are bound to be redesigned (they are confusing, incomplete and the Min/Max return values are in local window coordinates which increases confusion) + IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - GetCursorPos() + IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates + IMGUI_API ImVec2 GetWindowContentRegionMin(); // content boundaries min for the full window (roughly (0,0)-Scroll), in window coordinates + IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be overridden with SetNextWindowContentSize(), in window coordinates + + // Windows Scrolling + // - Any change of Scroll will be applied at the beginning of next frame in the first call to Begin(). + // - You may instead use SetNextWindowScroll() prior to calling Begin() to avoid this delay, as an alternative to using SetScrollX()/SetScrollY(). + IMGUI_API float GetScrollX(); // get scrolling amount [0 .. GetScrollMaxX()] + IMGUI_API float GetScrollY(); // get scrolling amount [0 .. GetScrollMaxY()] + IMGUI_API void SetScrollX(float scroll_x); // set scrolling amount [0 .. GetScrollMaxX()] + IMGUI_API void SetScrollY(float scroll_y); // set scrolling amount [0 .. GetScrollMaxY()] + IMGUI_API float GetScrollMaxX(); // get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x + IMGUI_API float GetScrollMaxY(); // get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y + IMGUI_API void SetScrollHereX(float center_x_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollFromPosX(float local_x, float center_x_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + + // Parameters stacks (shared) + IMGUI_API void PushFont(ImFont* font); // use NULL as a shortcut to push default font + IMGUI_API void PopFont(); + IMGUI_API void PushStyleColor(ImGuiCol idx, ImU32 col); // modify a style color. always use this if you modify the style after NewFrame(). + IMGUI_API void PushStyleColor(ImGuiCol idx, const ImVec4& col); + IMGUI_API void PopStyleColor(int count = 1); + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, float val); // modify a style float variable. always use this if you modify the style after NewFrame(). + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, const ImVec2& val); // modify a style ImVec2 variable. always use this if you modify the style after NewFrame(). + IMGUI_API void PopStyleVar(int count = 1); + IMGUI_API void PushAllowKeyboardFocus(bool allow_keyboard_focus); // == tab stop enable. Allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets + IMGUI_API void PopAllowKeyboardFocus(); + IMGUI_API void PushButtonRepeat(bool repeat); // in 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting). Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame. + IMGUI_API void PopButtonRepeat(); + + // Parameters stacks (current window) + IMGUI_API void PushItemWidth(float item_width); // push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side). + IMGUI_API void PopItemWidth(); + IMGUI_API void SetNextItemWidth(float item_width); // set width of the _next_ common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side) + IMGUI_API float CalcItemWidth(); // width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. + IMGUI_API void PushTextWrapPos(float wrap_local_pos_x = 0.0f); // push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space + IMGUI_API void PopTextWrapPos(); + + // Style read access + // - Use the style editor (ShowStyleEditor() function) to interactively see what the colors are) + IMGUI_API ImFont* GetFont(); // get current font + IMGUI_API float GetFontSize(); // get current font size (= height in pixels) of current font with current scale applied + IMGUI_API ImVec2 GetFontTexUvWhitePixel(); // get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API + IMGUI_API ImU32 GetColorU32(ImGuiCol idx, float alpha_mul = 1.0f); // retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList + IMGUI_API ImU32 GetColorU32(const ImVec4& col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList + IMGUI_API ImU32 GetColorU32(ImU32 col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList + IMGUI_API const ImVec4& GetStyleColorVec4(ImGuiCol idx); // retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in. + + // Cursor / Layout + // - By "cursor" we mean the current output position. + // - The typical widget behavior is to output themselves at the current cursor position, then move the cursor one line down. + // - You can call SameLine() between widgets to undo the last carriage return and output at the right of the preceding widget. + // - Attention! We currently have inconsistencies between window-local and absolute positions we will aim to fix with future API: + // Window-local coordinates: SameLine(), GetCursorPos(), SetCursorPos(), GetCursorStartPos(), GetContentRegionMax(), GetWindowContentRegion*(), PushTextWrapPos() + // Absolute coordinate: GetCursorScreenPos(), SetCursorScreenPos(), all ImDrawList:: functions. + IMGUI_API void Separator(); // separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. + IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f); // call between widgets or groups to layout them horizontally. X position given in window coordinates. + IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in a horizontal-layout context. + IMGUI_API void Spacing(); // add vertical spacing. + IMGUI_API void Dummy(const ImVec2& size); // add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. + IMGUI_API void Indent(float indent_w = 0.0f); // move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 + IMGUI_API void Unindent(float indent_w = 0.0f); // move content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0 + IMGUI_API void BeginGroup(); // lock horizontal starting position + IMGUI_API void EndGroup(); // unlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) + IMGUI_API ImVec2 GetCursorPos(); // cursor position in window coordinates (relative to window position) + IMGUI_API float GetCursorPosX(); // (some functions are using window-relative coordinates, such as: GetCursorPos, GetCursorStartPos, GetContentRegionMax, GetWindowContentRegion* etc. + IMGUI_API float GetCursorPosY(); // other functions such as GetCursorScreenPos or everything in ImDrawList:: + IMGUI_API void SetCursorPos(const ImVec2& local_pos); // are using the main, absolute coordinate system. + IMGUI_API void SetCursorPosX(float local_x); // GetWindowPos() + GetCursorPos() == GetCursorScreenPos() etc.) + IMGUI_API void SetCursorPosY(float local_y); // + IMGUI_API ImVec2 GetCursorStartPos(); // initial cursor position in window coordinates + IMGUI_API ImVec2 GetCursorScreenPos(); // cursor position in absolute coordinates (useful to work with ImDrawList API). generally top-left == GetMainViewport()->Pos == (0,0) in single viewport mode, and bottom-right == GetMainViewport()->Pos+Size == io.DisplaySize in single-viewport mode. + IMGUI_API void SetCursorScreenPos(const ImVec2& pos); // cursor position in absolute coordinates + IMGUI_API void AlignTextToFramePadding(); // vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item) + IMGUI_API float GetTextLineHeight(); // ~ FontSize + IMGUI_API float GetTextLineHeightWithSpacing(); // ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text) + IMGUI_API float GetFrameHeight(); // ~ FontSize + style.FramePadding.y * 2 + IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) + + // ID stack/scopes + // Read the FAQ (docs/FAQ.md or http://dearimgui.org/faq) for more details about how ID are handled in dear imgui. + // - Those questions are answered and impacted by understanding of the ID stack system: + // - "Q: Why is my widget not reacting when I click on it?" + // - "Q: How can I have widgets with an empty label?" + // - "Q: How can I have multiple widgets with the same label?" + // - Short version: ID are hashes of the entire ID stack. If you are creating widgets in a loop you most likely + // want to push a unique identifier (e.g. object pointer, loop index) to uniquely differentiate them. + // - You can also use the "Label##foobar" syntax within widget label to distinguish them from each others. + // - In this header file we use the "label"/"name" terminology to denote a string that will be displayed + used as an ID, + // whereas "str_id" denote a string that is only used as an ID and not normally displayed. + IMGUI_API void PushID(const char* str_id); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const char* str_id_begin, const char* str_id_end); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const void* ptr_id); // push pointer into the ID stack (will hash pointer). + IMGUI_API void PushID(int int_id); // push integer into the ID stack (will hash integer). + IMGUI_API void PopID(); // pop from the ID stack. + IMGUI_API ImGuiID GetID(const char* str_id); // calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself + IMGUI_API ImGuiID GetID(const char* str_id_begin, const char* str_id_end); + IMGUI_API ImGuiID GetID(const void* ptr_id); + + // Widgets: Text + IMGUI_API void TextUnformatted(const char* text, const char* text_end = NULL); // raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. + IMGUI_API void Text(const char* fmt, ...) IM_FMTARGS(1); // formatted text + IMGUI_API void TextV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextColored(const ImVec4& col, const char* fmt, ...) IM_FMTARGS(2); // shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextColoredV(const ImVec4& col, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void TextDisabled(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextDisabledV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextWrapped(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize(). + IMGUI_API void TextWrappedV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void LabelText(const char* label, const char* fmt, ...) IM_FMTARGS(2); // display text+label aligned the same way as value+label widgets + IMGUI_API void LabelTextV(const char* label, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void BulletText(const char* fmt, ...) IM_FMTARGS(1); // shortcut for Bullet()+Text() + IMGUI_API void BulletTextV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Widgets: Main + // - Most widgets return true when the value has been changed or when pressed/selected + // - You may also use one of the many IsItemXXX functions (e.g. IsItemActive, IsItemHovered, etc.) to query widget state. + IMGUI_API bool Button(const char* label, const ImVec2& size = ImVec2(0, 0)); // button + IMGUI_API bool SmallButton(const char* label); // button with FramePadding=(0,0) to easily embed within text + IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0); // flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) + IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); // square button with an arrow shape + IMGUI_API bool Checkbox(const char* label, bool* v); + IMGUI_API bool CheckboxFlags(const char* label, int* flags, int flags_value); + IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value); + IMGUI_API bool RadioButton(const char* label, bool active); // use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; } + IMGUI_API bool RadioButton(const char* label, int* v, int v_button); // shortcut to handle the above pattern when value is an integer + IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-FLT_MIN, 0), const char* overlay = NULL); + IMGUI_API void Bullet(); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses + + // Widgets: Images + // - Read about ImTextureID here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& tint_col = ImVec4(1, 1, 1, 1), const ImVec4& border_col = ImVec4(0, 0, 0, 0)); + IMGUI_API bool ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); + + // Widgets: Combo Box (Dropdown) + // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. + // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created. + IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0); + IMGUI_API void EndCombo(); // only call EndCombo() if BeginCombo() returns true! + IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1); + IMGUI_API bool Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items = -1); // Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" + IMGUI_API bool Combo(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int popup_max_height_in_items = -1); + + // Widgets: Drag Sliders + // - CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. + // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every function, note that a 'float v[X]' function argument is the same as 'float* v', + // the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). + // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits if ImGuiSliderFlags_AlwaysClamp is not used. + // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. + // - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. + // - Legacy: Pre-1.78 there are DragXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat3(const char* label, float v[3], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat4(const char* label, float v[4], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt(const char* label, int* v, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragInt2(const char* label, int v[2], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt3(const char* label, int v[3], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt4(const char* label, int v[4], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed = 1.0f, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed = 1.0f, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Regular Sliders + // - CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Legacy: Pre-1.78 there are SliderXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. + IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderAngle(const char* label, float* v_rad, float v_degrees_min = -360.0f, float v_degrees_max = +360.0f, const char* format = "%.0f deg", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt(const char* label, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Input with Keyboard + // - If you want to use InputText() with std::string or any custom dynamic string type, see misc/cpp/imgui_stdlib.h and comments in imgui_demo.cpp. + // - Most of the ImGuiInputTextFlags flags are only useful for InputText() and not for InputFloatX, InputIntX, InputDouble etc. + IMGUI_API bool InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputFloat(const char* label, float* v, float step = 0.0f, float step_fast = 0.0f, const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat2(const char* label, float v[2], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat3(const char* label, float v[3], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat4(const char* label, float v[4], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt(const char* label, int* v, int step = 1, int step_fast = 100, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputDouble(const char* label, double* v, double step = 0.0, double step_fast = 0.0, const char* format = "%.6f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + + // Widgets: Color Editor/Picker (tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu.) + // - Note that in C++ a 'float v[X]' function argument is the _same_ as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. + // - You can pass the address of a first float element out of a contiguous structure, e.g. &myvector.x + IMGUI_API bool ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = 0, const float* ref_col = NULL); + IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // display a color square/button, hover for details, return true when pressed. + IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); // initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. + + // Widgets: Trees + // - TreeNode functions return true when the node is open, in which case you need to also call TreePop() when you are finished displaying the tree node contents. + IMGUI_API bool TreeNode(const char* label); + IMGUI_API bool TreeNode(const char* str_id, const char* fmt, ...) IM_FMTARGS(2); // helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). + IMGUI_API bool TreeNode(const void* ptr_id, const char* fmt, ...) IM_FMTARGS(2); // " + IMGUI_API bool TreeNodeV(const char* str_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeV(const void* ptr_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0); + IMGUI_API bool TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API void TreePush(const char* str_id); // ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. + IMGUI_API void TreePush(const void* ptr_id); // " + IMGUI_API void TreePop(); // ~ Unindent()+PopId() + IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode + IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); // if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). + IMGUI_API bool CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags = 0); // when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. + IMGUI_API void SetNextItemOpen(bool is_open, ImGuiCond cond = 0); // set next TreeNode/CollapsingHeader open state. + + // Widgets: Selectables + // - A selectable highlights when hovered, and can display another color when selected. + // - Neighbors selectable extend their highlight bounds in order to leave no gap between them. This is so a series of selected Selectable appear contiguous. + IMGUI_API bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height + IMGUI_API bool Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool* p_selected" point to the selection state (read-write), as a convenient helper. + + // Widgets: List Boxes + // - This is essentially a thin wrapper to using BeginChild/EndChild with some stylistic changes. + // - The BeginListBox()/EndListBox() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() or any items. + // - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analoguous to how Combos are created. + // - Choose frame width: size.x > 0.0f: custom / size.x < 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth + // - Choose frame height: size.y > 0.0f: custom / size.y < 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items + IMGUI_API bool BeginListBox(const char* label, const ImVec2& size = ImVec2(0, 0)); // open a framed scrolling region + IMGUI_API void EndListBox(); // only call EndListBox() if BeginListBox() returned true! + IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1); + IMGUI_API bool ListBox(const char* label, int* current_item, bool (*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int height_in_items = -1); + + // Widgets: Data Plotting + // - Consider using ImPlot (https://github.com/epezent/implot) which is much better! + IMGUI_API void PlotLines(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotLines(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + IMGUI_API void PlotHistogram(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotHistogram(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + + // Widgets: Value() Helpers. + // - Those are merely shortcut to calling Text() with a format string. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace) + IMGUI_API void Value(const char* prefix, bool b); + IMGUI_API void Value(const char* prefix, int v); + IMGUI_API void Value(const char* prefix, unsigned int v); + IMGUI_API void Value(const char* prefix, float v, const char* float_format = NULL); + + // Widgets: Menus + // - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar. + // - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it. + // - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it. + // - Not that MenuItem() keyboardshortcuts are displayed as a convenience but _not processed_ by Dear ImGui at the moment. + IMGUI_API bool BeginMenuBar(); // append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window). + IMGUI_API void EndMenuBar(); // only call EndMenuBar() if BeginMenuBar() returns true! + IMGUI_API bool BeginMainMenuBar(); // create and append to a full screen menu-bar. + IMGUI_API void EndMainMenuBar(); // only call EndMainMenuBar() if BeginMainMenuBar() returns true! + IMGUI_API bool BeginMenu(const char* label, bool enabled = true); // create a sub-menu entry. only call EndMenu() if this returns true! + IMGUI_API void EndMenu(); // only call EndMenu() if BeginMenu() returns true! + IMGUI_API bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true); // return true when activated. + IMGUI_API bool MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled = true); // return true when activated + toggle (*p_selected) if p_selected != NULL + + // Tooltips + // - Tooltip are windows following the mouse. They do not take focus away. + IMGUI_API void BeginTooltip(); // begin/append a tooltip window. to create full-featured tooltip (with any kind of items). + IMGUI_API void EndTooltip(); + IMGUI_API void SetTooltip(const char* fmt, ...) IM_FMTARGS(1); // set a text-only tooltip, typically use with ImGui::IsItemHovered(). override any previous call to SetTooltip(). + IMGUI_API void SetTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Popups, Modals + // - They block normal mouse hovering detection (and therefore most mouse interactions) behind them. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - Their visibility state (~bool) is held internally instead of being held by the programmer as we are used to with regular Begin*() calls. + // - The 3 properties above are related: we need to retain popup visibility state in the library because popups may be closed as any time. + // - You can bypass the hovering restriction by using ImGuiHoveredFlags_AllowWhenBlockedByPopup when calling IsItemHovered() or IsWindowHovered(). + // - IMPORTANT: Popup identifiers are relative to the current ID stack, so OpenPopup and BeginPopup generally needs to be at the same level of the stack. + // This is sometimes leading to confusing mistakes. May rework this in the future. + + // Popups: begin/end functions + // - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards. ImGuiWindowFlags are forwarded to the window. + // - BeginPopupModal(): block every interaction behind the window, cannot be closed by user, add a dimming background, has a title bar. + IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); // return true if the popup is open, and you can start outputting to it. + IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); // return true if the modal is open, and you can start outputting to it. + IMGUI_API void EndPopup(); // only call EndPopup() if BeginPopupXXX() returns true! + + // Popups: open/close functions + // - OpenPopup(): set popup state to open. ImGuiPopupFlags are available for opening options. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - CloseCurrentPopup(): use inside the BeginPopup()/EndPopup() scope to close manually. + // - CloseCurrentPopup() is called by default by Selectable()/MenuItem() when activated (FIXME: need some options). + // - Use ImGuiPopupFlags_NoOpenOverExistingPopup to avoid opening a popup if there's already one at the same level. This is equivalent to e.g. testing for !IsAnyPopupOpen() prior to OpenPopup(). + // - Use IsWindowAppearing() after BeginPopup() to tell if a window just opened. + // - IMPORTANT: Notice that for OpenPopupOnItemClick() we exceptionally default flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter + IMGUI_API void OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); // call to mark popup as open (don't call every frame!). + IMGUI_API void OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags = 0); // id overload to facilitate calling from nested stacks + IMGUI_API void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) + IMGUI_API void CloseCurrentPopup(); // manually close the popup we have begin-ed into. + + // Popups: open+begin combined functions helpers + // - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking. + // - They are convenient to easily create context menus, hence the name. + // - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future. + // - IMPORTANT: Notice that we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. + IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! + IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);// open+begin popup when clicked on current window. + IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked in void (where there are no windows). + + // Popups: query functions + // - IsPopupOpen(): return true if the popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId: return true if any popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId + ImGuiPopupFlags_AnyPopupLevel: return true if any popup is open. + IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); // return true if the popup is open. + + // Tables + // - Full-featured replacement for old Columns API. + // - See Demo->Tables for demo code. See top of imgui_tables.cpp for general commentary. + // - See ImGuiTableFlags_ and ImGuiTableColumnFlags_ enums for a description of available flags. + // The typical call flow is: + // - 1. Call BeginTable(), early out if returning false. + // - 2. Optionally call TableSetupColumn() to submit column name/flags/defaults. + // - 3. Optionally call TableSetupScrollFreeze() to request scroll freezing of columns/rows. + // - 4. Optionally call TableHeadersRow() to submit a header row. Names are pulled from TableSetupColumn() data. + // - 5. Populate contents: + // - In most situations you can use TableNextRow() + TableSetColumnIndex(N) to start appending into a column. + // - If you are using tables as a sort of grid, where every column is holding the same type of contents, + // you may prefer using TableNextColumn() instead of TableNextRow() + TableSetColumnIndex(). + // TableNextColumn() will automatically wrap-around into the next row if needed. + // - IMPORTANT: Comparatively to the old Columns() API, we need to call TableNextColumn() for the first column! + // - Summary of possible call flow: + // -------------------------------------------------------------------------------------------------------- + // TableNextRow() -> TableSetColumnIndex(0) -> Text("Hello 0") -> TableSetColumnIndex(1) -> Text("Hello 1") // OK + // TableNextRow() -> TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK + // TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK: TableNextColumn() automatically gets to next row! + // TableNextRow() -> Text("Hello 0") // Not OK! Missing TableSetColumnIndex() or TableNextColumn()! Text will not appear! + // -------------------------------------------------------------------------------------------------------- + // - 5. Call EndTable() + IMGUI_API bool BeginTable(const char* str_id, int column, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0.0f, 0.0f), float inner_width = 0.0f); + IMGUI_API void EndTable(); // only call EndTable() if BeginTable() returns true! + IMGUI_API void TableNextRow(ImGuiTableRowFlags row_flags = 0, float min_row_height = 0.0f); // append into the first cell of a new row. + IMGUI_API bool TableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible. + IMGUI_API bool TableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible. + + // Tables: Headers & Columns declaration + // - Use TableSetupColumn() to specify label, resizing policy, default width/weight, id, various other flags etc. + // - Use TableHeadersRow() to create a header row and automatically submit a TableHeader() for each column. + // Headers are required to perform: reordering, sorting, and opening the context menu. + // The context menu can also be made available in columns body using ImGuiTableFlags_ContextMenuInBody. + // - You may manually submit headers using TableNextRow() + TableHeader() calls, but this is only useful in + // some advanced use cases (e.g. adding custom widgets in header row). + // - Use TableSetupScrollFreeze() to lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableSetupColumn(const char* label, ImGuiTableColumnFlags flags = 0, float init_width_or_weight = 0.0f, ImGuiID user_id = 0); + IMGUI_API void TableSetupScrollFreeze(int cols, int rows); // lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableHeadersRow(); // submit all headers cells based on data provided to TableSetupColumn() + submit context menu + IMGUI_API void TableHeader(const char* label); // submit one header cell manually (rarely used) + + // Tables: Sorting & Miscellaneous functions + // - Sorting: call TableGetSortSpecs() to retrieve latest sort specs for the table. NULL when not sorting. + // When 'sort_specs->SpecsDirty == true' you should sort your data. It will be true when sorting specs have + // changed since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, + // else you may wastefully sort your data every frame! + // - Functions args 'int column_n' treat the default value of -1 as the same as passing the current column index. + IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). + IMGUI_API int TableGetColumnCount(); // return number of columns (value passed to BeginTable) + IMGUI_API int TableGetColumnIndex(); // return current column index. + IMGUI_API int TableGetRowIndex(); // return current row index. + IMGUI_API const char* TableGetColumnName(int column_n = -1); // return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. + IMGUI_API ImGuiTableColumnFlags TableGetColumnFlags(int column_n = -1); // return column flags so you can query their Enabled/Visible/Sorted/Hovered status flags. Pass -1 to use current column. + IMGUI_API void TableSetColumnEnabled(int column_n, bool v);// change user accessible enabled/disabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) + IMGUI_API void TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n = -1); // change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details. + + // Legacy Columns API (prefer using Tables!) + // - You can also use SameLine(pos_x) to mimic simplified columns. + IMGUI_API void Columns(int count = 1, const char* id = NULL, bool border = true); + IMGUI_API void NextColumn(); // next column, defaults to current row or next row if the current row is finished + IMGUI_API int GetColumnIndex(); // get current column index + IMGUI_API float GetColumnWidth(int column_index = -1); // get column width (in pixels). pass -1 to use current column + IMGUI_API void SetColumnWidth(int column_index, float width); // set column width (in pixels). pass -1 to use current column + IMGUI_API float GetColumnOffset(int column_index = -1); // get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f + IMGUI_API void SetColumnOffset(int column_index, float offset_x); // set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column + IMGUI_API int GetColumnsCount(); + + // Tab Bars, Tabs + // Note: Tabs are automatically created by the docking system. Use this to create tab bars/tabs yourself without docking being involved. + IMGUI_API bool BeginTabBar(const char* str_id, ImGuiTabBarFlags flags = 0); // create and append into a TabBar + IMGUI_API void EndTabBar(); // only call EndTabBar() if BeginTabBar() returns true! + IMGUI_API bool BeginTabItem(const char* label, bool* p_open = NULL, ImGuiTabItemFlags flags = 0); // create a Tab. Returns true if the Tab is selected. + IMGUI_API void EndTabItem(); // only call EndTabItem() if BeginTabItem() returns true! + IMGUI_API bool TabItemButton(const char* label, ImGuiTabItemFlags flags = 0); // create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. + IMGUI_API void SetTabItemClosed(const char* tab_or_docked_window_label); // notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. + + // Docking + // [BETA API] Enable with io.ConfigFlags |= ImGuiConfigFlags_DockingEnable. + // Note: You can use most Docking facilities without calling any API. You DO NOT need to call DockSpace() to use Docking! + // - Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking/undocking. + // - Drag from window menu button (upper-left button) to undock an entire node (all windows). + // - When io.ConfigDockingWithShift == true, you instead need to hold SHIFT to _enable_ docking/undocking. + // About dockspaces: + // - Use DockSpace() to create an explicit dock node _within_ an existing window. See Docking demo for details. + // - Use DockSpaceOverViewport() to create an explicit dock node covering the screen or a specific viewport. + // This is often used with ImGuiDockNodeFlags_PassthruCentralNode. + // - Important: Dockspaces need to be submitted _before_ any window they can host. Submit it early in your frame! + // - Important: Dockspaces need to be kept alive if hidden, otherwise windows docked into it will be undocked. + // e.g. if you have multiple tabs with a dockspace inside each tab: submit the non-visible dockspaces with ImGuiDockNodeFlags_KeepAliveOnly. + IMGUI_API ImGuiID DockSpace(ImGuiID id, const ImVec2& size = ImVec2(0, 0), ImGuiDockNodeFlags flags = 0, const ImGuiWindowClass* window_class = NULL); + IMGUI_API ImGuiID DockSpaceOverViewport(const ImGuiViewport* viewport = NULL, ImGuiDockNodeFlags flags = 0, const ImGuiWindowClass* window_class = NULL); + IMGUI_API void SetNextWindowDockID(ImGuiID dock_id, ImGuiCond cond = 0); // set next window dock id + IMGUI_API void SetNextWindowClass(const ImGuiWindowClass* window_class); // set next window class (control docking compatibility + provide hints to platform backend via custom viewport flags and platform parent/child relationship) + IMGUI_API ImGuiID GetWindowDockID(); + IMGUI_API bool IsWindowDocked(); // is current window docked into another window? + + // Logging/Capture + // - All text output from the interface can be captured into tty/file/clipboard. By default, tree nodes are automatically opened during logging. + IMGUI_API void LogToTTY(int auto_open_depth = -1); // start logging to tty (stdout) + IMGUI_API void LogToFile(int auto_open_depth = -1, const char* filename = NULL); // start logging to file + IMGUI_API void LogToClipboard(int auto_open_depth = -1); // start logging to OS clipboard + IMGUI_API void LogFinish(); // stop logging (close file, etc.) + IMGUI_API void LogButtons(); // helper to display buttons for logging to tty/file/clipboard + IMGUI_API void LogText(const char* fmt, ...) IM_FMTARGS(1); // pass text data straight to log (without being displayed) + IMGUI_API void LogTextV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Drag and Drop + // - On source items, call BeginDragDropSource(), if it returns true also call SetDragDropPayload() + EndDragDropSource(). + // - On target candidates, call BeginDragDropTarget(), if it returns true also call AcceptDragDropPayload() + EndDragDropTarget(). + // - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725) + // - An item can be both drag source and drop target. + IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); // call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource() + IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. + IMGUI_API void EndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true! + IMGUI_API bool BeginDragDropTarget(); // call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() + IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0); // accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. + IMGUI_API void EndDragDropTarget(); // only call EndDragDropTarget() if BeginDragDropTarget() returns true! + IMGUI_API const ImGuiPayload* GetDragDropPayload(); // peek directly into the current payload from anywhere. may return NULL. use ImGuiPayload::IsDataType() to test for the payload type. + + // Disabling [BETA API] + // - Disable all user interactions and dim items visuals (applying style.DisabledAlpha over current colors) + // - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) + // - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it. + IMGUI_API void BeginDisabled(bool disabled = true); + IMGUI_API void EndDisabled(); + + // Clipping + // - Mouse hovering is affected by ImGui::PushClipRect() calls, unlike direct calls to ImDrawList::PushClipRect() which are render only. + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect); + IMGUI_API void PopClipRect(); + + // Focus, Activation + // - Prefer using "SetItemDefaultFocus()" over "if (IsWindowAppearing()) SetScrollHereY()" when applicable to signify "this is the default item" + IMGUI_API void SetItemDefaultFocus(); // make last item the default focused item of a window. + IMGUI_API void SetKeyboardFocusHere(int offset = 0); // focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. + + // Item/Widgets Utilities and Query Functions + // - Most of the functions are referring to the previous Item that has been submitted. + // - See Demo Window under "Widgets->Querying Status" for an interactive visualization of most of those functions. + IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); // is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. + IMGUI_API bool IsItemActive(); // is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false) + IMGUI_API bool IsItemFocused(); // is the last item focused for keyboard/gamepad navigation? + IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. + IMGUI_API bool IsItemVisible(); // is the last item visible? (items may be out of sight because of clipping/scrolling) + IMGUI_API bool IsItemEdited(); // did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. + IMGUI_API bool IsItemActivated(); // was the last item just made active (item was previously inactive). + IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing. + IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). + IMGUI_API bool IsItemToggledOpen(); // was the last item open state toggled? set by TreeNode(). + IMGUI_API bool IsAnyItemHovered(); // is any item hovered? + IMGUI_API bool IsAnyItemActive(); // is any item active? + IMGUI_API bool IsAnyItemFocused(); // is any item focused? + IMGUI_API ImVec2 GetItemRectMin(); // get upper-left bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectMax(); // get lower-right bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectSize(); // get size of last item + IMGUI_API void SetItemAllowOverlap(); // allow last item to be overlapped by a subsequent item. sometimes useful with invisible buttons, selectables, etc. to catch unused area. + + // Viewports + // - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. + // - In 'docking' branch with multi-viewport enabled, we extend this concept to have multiple active viewports. + // - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. + IMGUI_API ImGuiViewport* GetMainViewport(); // return primary/default viewport. This can never be NULL. + + // Background/Foreground Draw Lists + IMGUI_API ImDrawList* GetBackgroundDrawList(); // get background draw list for the viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(); // get foreground draw list for the viewport associated to the current window. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + IMGUI_API ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport); // get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport); // get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + + // Miscellaneous Utilities + IMGUI_API bool IsRectVisible(const ImVec2& size); // test if rectangle (of given size, starting from cursor position) is visible / not clipped. + IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. + IMGUI_API double GetTime(); // get global imgui time. incremented by io.DeltaTime every frame. + IMGUI_API int GetFrameCount(); // get global imgui frame count. incremented by 1 every frame. + IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); // you may use this when creating your own ImDrawList instances. + IMGUI_API const char* GetStyleColorName(ImGuiCol idx); // get a string corresponding to the enum value (for display, saving, etc.). + IMGUI_API void SetStateStorage(ImGuiStorage* storage); // replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) + IMGUI_API ImGuiStorage* GetStateStorage(); + IMGUI_API bool BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags flags = 0); // helper to create a child window / scrolling region that looks like a normal widget frame + IMGUI_API void EndChildFrame(); // always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window) + + // Text Utilities + IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); + + // Color Utilities + IMGUI_API ImVec4 ColorConvertU32ToFloat4(ImU32 in); + IMGUI_API ImU32 ColorConvertFloat4ToU32(const ImVec4& in); + IMGUI_API void ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v); + IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); + + // Inputs Utilities: Keyboard + // Without IMGUI_DISABLE_OBSOLETE_KEYIO: (legacy support) + // - For 'ImGuiKey key' you can still use your legacy native/user indices according to how your backend/engine stored them in io.KeysDown[]. + // With IMGUI_DISABLE_OBSOLETE_KEYIO: (this is the way forward) + // - Any use of 'ImGuiKey' will assert when key < 512 will be passed, previously reserved as native/user keys indices + // - GetKeyIndex() is pass-through and therefore deprecated (gone if IMGUI_DISABLE_OBSOLETE_KEYIO is defined) + IMGUI_API bool IsKeyDown(ImGuiKey key); // is key being held. + IMGUI_API bool IsKeyPressed(ImGuiKey key, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate + IMGUI_API bool IsKeyReleased(ImGuiKey key); // was key released (went from Down to !Down)? + IMGUI_API int GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate + IMGUI_API const char* GetKeyName(ImGuiKey key); // [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared. + IMGUI_API void SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); // Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call. + + // Inputs Utilities: Mouse + // - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right. + // - You can also use regular integer: it is forever guaranteed that 0=Left, 1=Right, 2=Middle. + // - Dragging operations are only reported after mouse has moved a certain distance away from the initial clicking position (see 'lock_threshold' and 'io.MouseDraggingThreshold') + IMGUI_API bool IsMouseDown(ImGuiMouseButton button); // is mouse button held? + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, bool repeat = false); // did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1. + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button); // did mouse button released? (went from Down to !Down) + IMGUI_API bool IsMouseDoubleClicked(ImGuiMouseButton button); // did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true) + IMGUI_API int GetMouseClickedCount(ImGuiMouseButton button); // return the number of successive mouse-clicks at the time where a click happen (otherwise 0). + IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = true);// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. + IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); // by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available + IMGUI_API bool IsAnyMouseDown(); // [WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. + IMGUI_API ImVec2 GetMousePos(); // shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls + IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); // retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) + IMGUI_API bool IsMouseDragging(ImGuiMouseButton button, float lock_threshold = -1.0f); // is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0, float lock_threshold = -1.0f); // return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API void ResetMouseDragDelta(ImGuiMouseButton button = 0); // + IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you + IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired mouse cursor shape + IMGUI_API void SetNextFrameWantCaptureMouse(bool want_capture_mouse); // Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call. + + // Clipboard Utilities + // - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard. + IMGUI_API const char* GetClipboardText(); + IMGUI_API void SetClipboardText(const char* text); + + // Settings/.Ini Utilities + // - The disk functions are automatically called if io.IniFilename != NULL (default is "imgui.ini"). + // - Set io.IniFilename to NULL to load/save manually. Read io.WantSaveIniSettings description about handling .ini saving manually. + // - Important: default value "imgui.ini" is relative to current working dir! Most apps will want to lock this to an absolute path (e.g. same path as executables). + IMGUI_API void LoadIniSettingsFromDisk(const char* ini_filename); // call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). + IMGUI_API void LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size=0); // call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. + IMGUI_API void SaveIniSettingsToDisk(const char* ini_filename); // this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). + IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. + + // Debug Utilities + IMGUI_API void DebugTextEncoding(const char* text); + IMGUI_API bool 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); // This is called by IMGUI_CHECKVERSION() macro. + + // Memory Allocators + // - Those functions are not reliant on the current context. + // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() + // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. + IMGUI_API void SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data = NULL); + IMGUI_API void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data); + IMGUI_API void* MemAlloc(size_t size); + IMGUI_API void MemFree(void* ptr); + + // (Optional) Platform/OS interface for multi-viewport support + // Read comments around the ImGuiPlatformIO structure for more details. + // Note: You may use GetWindowViewport() to get the current viewport of the current window. + IMGUI_API ImGuiPlatformIO& GetPlatformIO(); // platform/renderer functions, for backend to setup + viewports list. + IMGUI_API void UpdatePlatformWindows(); // call in main loop. will call CreateWindow/ResizeWindow/etc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport. + IMGUI_API void RenderPlatformWindowsDefault(void* platform_render_arg = NULL, void* renderer_render_arg = NULL); // call in main loop. will call RenderWindow/SwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs. + IMGUI_API void DestroyPlatformWindows(); // call DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext(). + IMGUI_API ImGuiViewport* FindViewportByID(ImGuiID id); // this is a helper for backends. + IMGUI_API ImGuiViewport* FindViewportByPlatformHandle(void* platform_handle); // this is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.) + +} // namespace ImGui + +//----------------------------------------------------------------------------- +// [SECTION] Flags & Enumerations +//----------------------------------------------------------------------------- + +// Flags for ImGui::Begin() +// (Those are per-window flags. There are shared flags in ImGuiIO: io.ConfigWindowsResizeFromEdges and io.ConfigWindowsMoveFromTitleBarOnly) +enum ImGuiWindowFlags_ +{ + ImGuiWindowFlags_None = 0, + ImGuiWindowFlags_NoTitleBar = 1 << 0, // Disable title-bar + ImGuiWindowFlags_NoResize = 1 << 1, // Disable user resizing with the lower-right grip + ImGuiWindowFlags_NoMove = 1 << 2, // Disable user moving the window + ImGuiWindowFlags_NoScrollbar = 1 << 3, // Disable scrollbars (window can still scroll with mouse or programmatically) + ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, // Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set. + ImGuiWindowFlags_NoCollapse = 1 << 5, // Disable user collapsing window by double-clicking on it. Also referred to as Window Menu Button (e.g. within a docking node). + ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, // Resize every window to its content every frame + ImGuiWindowFlags_NoBackground = 1 << 7, // Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f). + ImGuiWindowFlags_NoSavedSettings = 1 << 8, // Never load/save settings in .ini file + ImGuiWindowFlags_NoMouseInputs = 1 << 9, // Disable catching mouse, hovering test with pass through. + ImGuiWindowFlags_MenuBar = 1 << 10, // Has a menu-bar + ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, // Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section. + ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, // Disable taking focus when transitioning from hidden to visible state + ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, // Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus) + ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, // Always show vertical scrollbar (even if ContentSize.y < Size.y) + ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, // Always show horizontal scrollbar (even if ContentSize.x < Size.x) + ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, // Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient) + ImGuiWindowFlags_NoNavInputs = 1 << 18, // No gamepad/keyboard navigation within the window + ImGuiWindowFlags_NoNavFocus = 1 << 19, // No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB) + ImGuiWindowFlags_UnsavedDocument = 1 << 20, // Display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + ImGuiWindowFlags_NoDocking = 1 << 21, // Disable docking of this window + + ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, + ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + + // [Internal] + ImGuiWindowFlags_NavFlattened = 1 << 23, // [BETA] On child window: allow gamepad/keyboard navigation to cross over parent border to this child or between sibling child windows. + ImGuiWindowFlags_ChildWindow = 1 << 24, // Don't use! For internal use by BeginChild() + ImGuiWindowFlags_Tooltip = 1 << 25, // Don't use! For internal use by BeginTooltip() + ImGuiWindowFlags_Popup = 1 << 26, // Don't use! For internal use by BeginPopup() + ImGuiWindowFlags_Modal = 1 << 27, // Don't use! For internal use by BeginPopupModal() + ImGuiWindowFlags_ChildMenu = 1 << 28, // Don't use! For internal use by BeginMenu() + ImGuiWindowFlags_DockNodeHost = 1 << 29, // Don't use! For internal use by Begin()/NewFrame() +}; + +// Flags for ImGui::InputText() +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigInputTextCursorBlink and io.ConfigInputTextEnterKeepActive) +enum ImGuiInputTextFlags_ +{ + ImGuiInputTextFlags_None = 0, + ImGuiInputTextFlags_CharsDecimal = 1 << 0, // Allow 0123456789.+-*/ + ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, // Allow 0123456789ABCDEFabcdef + ImGuiInputTextFlags_CharsUppercase = 1 << 2, // Turn a..z into A..Z + ImGuiInputTextFlags_CharsNoBlank = 1 << 3, // Filter out spaces, tabs + ImGuiInputTextFlags_AutoSelectAll = 1 << 4, // Select entire text when first taking mouse focus + ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function. + ImGuiInputTextFlags_CallbackCompletion = 1 << 6, // Callback on pressing TAB (for completion handling) + ImGuiInputTextFlags_CallbackHistory = 1 << 7, // Callback on pressing Up/Down arrows (for history handling) + ImGuiInputTextFlags_CallbackAlways = 1 << 8, // Callback on each iteration. User code may query cursor position, modify text buffer. + ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. + ImGuiInputTextFlags_AllowTabInput = 1 << 10, // Pressing TAB input a '\t' character into the text field + ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, // In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter). + ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, // Disable following the cursor horizontally + ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13, // Overwrite mode + ImGuiInputTextFlags_ReadOnly = 1 << 14, // Read-only mode + ImGuiInputTextFlags_Password = 1 << 15, // Password mode, display all characters as '*' + ImGuiInputTextFlags_NoUndoRedo = 1 << 16, // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID(). + ImGuiInputTextFlags_CharsScientific = 1 << 17, // Allow 0123456789.+-*/eE (Scientific notation input) + ImGuiInputTextFlags_CallbackResize = 1 << 18, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) + ImGuiInputTextFlags_CallbackEdit = 1 << 19, // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, // Escape key clears content if not empty, and deactivate otherwise (constrast to default behavior of Escape to revert) + + // Obsolete names (will be removed soon) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite // [renamed in 1.82] name was not matching behavior +#endif +}; + +// Flags for ImGui::TreeNodeEx(), ImGui::CollapsingHeader*() +enum ImGuiTreeNodeFlags_ +{ + ImGuiTreeNodeFlags_None = 0, + ImGuiTreeNodeFlags_Selected = 1 << 0, // Draw as selected + ImGuiTreeNodeFlags_Framed = 1 << 1, // Draw frame with background (e.g. for CollapsingHeader) + ImGuiTreeNodeFlags_AllowItemOverlap = 1 << 2, // Hit testing to allow subsequent widgets to overlap this one + ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, // Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack + ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, // Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes) + ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, // Default node to be open + ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, // Need double-click to open node + ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, // Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open. + ImGuiTreeNodeFlags_Leaf = 1 << 8, // No collapsing, no arrow (use as a convenience for leaf nodes). + ImGuiTreeNodeFlags_Bullet = 1 << 9, // Display a bullet instead of arrow + ImGuiTreeNodeFlags_FramePadding = 1 << 10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding(). + ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, // Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line. In the future we may refactor the hit system to be front-to-back, allowing natural overlaps and then this can become the default. + ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, // Extend hit box to the left-most and right-most edges (bypass the indented area). + ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, // (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop) + //ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 14, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, +}; + +// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions. +// - To be backward compatible with older API which took an 'int mouse_button = 1' argument, we need to treat +// small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags. +// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags. +// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0. +// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter +// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly. +// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later). +enum ImGuiPopupFlags_ +{ + ImGuiPopupFlags_None = 0, + ImGuiPopupFlags_MouseButtonLeft = 0, // For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left) + ImGuiPopupFlags_MouseButtonRight = 1, // For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right) + ImGuiPopupFlags_MouseButtonMiddle = 2, // For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle) + ImGuiPopupFlags_MouseButtonMask_ = 0x1F, + ImGuiPopupFlags_MouseButtonDefault_ = 1, + ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, // For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack + ImGuiPopupFlags_NoOpenOverItems = 1 << 6, // For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space + ImGuiPopupFlags_AnyPopupId = 1 << 7, // For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup. + ImGuiPopupFlags_AnyPopupLevel = 1 << 8, // For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level) + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, +}; + +// Flags for ImGui::Selectable() +enum ImGuiSelectableFlags_ +{ + ImGuiSelectableFlags_None = 0, + ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this doesn't close parent popup window + ImGuiSelectableFlags_SpanAllColumns = 1 << 1, // Selectable frame can span all columns (text will still fit in current column) + ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, // Generate press events on double clicks too + ImGuiSelectableFlags_Disabled = 1 << 3, // Cannot be selected, display grayed out text + ImGuiSelectableFlags_AllowItemOverlap = 1 << 4, // (WIP) Hit testing to allow subsequent widgets to overlap this one +}; + +// Flags for ImGui::BeginCombo() +enum ImGuiComboFlags_ +{ + ImGuiComboFlags_None = 0, + ImGuiComboFlags_PopupAlignLeft = 1 << 0, // Align the popup toward the left by default + ImGuiComboFlags_HeightSmall = 1 << 1, // Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo() + ImGuiComboFlags_HeightRegular = 1 << 2, // Max ~8 items visible (default) + ImGuiComboFlags_HeightLarge = 1 << 3, // Max ~20 items visible + ImGuiComboFlags_HeightLargest = 1 << 4, // As many fitting items as possible + ImGuiComboFlags_NoArrowButton = 1 << 5, // Display on the preview box without the square arrow button + ImGuiComboFlags_NoPreview = 1 << 6, // Display only a square arrow button + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, +}; + +// Flags for ImGui::BeginTabBar() +enum ImGuiTabBarFlags_ +{ + ImGuiTabBarFlags_None = 0, + ImGuiTabBarFlags_Reorderable = 1 << 0, // Allow manually dragging tabs to re-order them + New tabs are appended at the end of list + ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, // Automatically select new tabs when they appear + ImGuiTabBarFlags_TabListPopupButton = 1 << 2, // Disable buttons to open the tab list popup + ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, // Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll) + ImGuiTabBarFlags_NoTooltip = 1 << 5, // Disable tooltips when hovering a tab + ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, // Resize tabs when they don't fit + ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, // Add scroll buttons when tabs don't fit + ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, +}; + +// Flags for ImGui::BeginTabItem() +enum ImGuiTabItemFlags_ +{ + ImGuiTabItemFlags_None = 0, + ImGuiTabItemFlags_UnsavedDocument = 1 << 0, // Display a dot next to the title + tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + ImGuiTabItemFlags_SetSelected = 1 << 1, // Trigger flag to programmatically make the tab selected when calling BeginTabItem() + ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabItemFlags_NoPushId = 1 << 3, // Don't call PushID(tab->ID)/PopID() on BeginTabItem()/EndTabItem() + ImGuiTabItemFlags_NoTooltip = 1 << 4, // Disable tooltip for the given tab + ImGuiTabItemFlags_NoReorder = 1 << 5, // Disable reordering this tab or having another tab cross over this tab + ImGuiTabItemFlags_Leading = 1 << 6, // Enforce the tab position to the left of the tab bar (after the tab list popup button) + ImGuiTabItemFlags_Trailing = 1 << 7, // Enforce the tab position to the right of the tab bar (before the scrolling buttons) +}; + +// Flags for ImGui::BeginTable() +// - Important! Sizing policies have complex and subtle side effects, much more so than you would expect. +// Read comments/demos carefully + experiment with live demos to get acquainted with them. +// - The DEFAULT sizing policies are: +// - Default to ImGuiTableFlags_SizingFixedFit if ScrollX is on, or if host window has ImGuiWindowFlags_AlwaysAutoResize. +// - Default to ImGuiTableFlags_SizingStretchSame if ScrollX is off. +// - When ScrollX is off: +// - Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretch with same weight. +// - Columns sizing policy allowed: Stretch (default), Fixed/Auto. +// - Fixed Columns (if any) will generally obtain their requested width (unless the table cannot fit them all). +// - Stretch Columns will share the remaining width according to their respective weight. +// - Mixed Fixed/Stretch columns is possible but has various side-effects on resizing behaviors. +// The typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. +// (this is because the visible order of columns have subtle but necessary effects on how they react to manual resizing). +// - When ScrollX is on: +// - Table defaults to ImGuiTableFlags_SizingFixedFit -> all Columns defaults to ImGuiTableColumnFlags_WidthFixed +// - Columns sizing policy allowed: Fixed/Auto mostly. +// - Fixed Columns can be enlarged as needed. Table will show a horizontal scrollbar if needed. +// - When using auto-resizing (non-resizable) fixed columns, querying the content width to use item right-alignment e.g. SetNextItemWidth(-FLT_MIN) doesn't make sense, would create a feedback loop. +// - Using Stretch columns OFTEN DOES NOT MAKE SENSE if ScrollX is on, UNLESS you have specified a value for 'inner_width' in BeginTable(). +// If you specify a value for 'inner_width' then effectively the scrolling space is known and Stretch or mixed Fixed/Stretch columns become meaningful again. +// - Read on documentation at the top of imgui_tables.cpp for details. +enum ImGuiTableFlags_ +{ + // Features + ImGuiTableFlags_None = 0, + ImGuiTableFlags_Resizable = 1 << 0, // Enable resizing columns. + ImGuiTableFlags_Reorderable = 1 << 1, // Enable reordering columns in header row (need calling TableSetupColumn() + TableHeadersRow() to display headers) + ImGuiTableFlags_Hideable = 1 << 2, // Enable hiding/disabling columns in context menu. + ImGuiTableFlags_Sortable = 1 << 3, // Enable sorting. Call TableGetSortSpecs() to obtain sort specs. Also see ImGuiTableFlags_SortMulti and ImGuiTableFlags_SortTristate. + ImGuiTableFlags_NoSavedSettings = 1 << 4, // Disable persisting columns order, width and sort settings in the .ini file. + ImGuiTableFlags_ContextMenuInBody = 1 << 5, // Right-click on columns body/contents will display table context menu. By default it is available in TableHeadersRow(). + // Decorations + ImGuiTableFlags_RowBg = 1 << 6, // Set each RowBg color with ImGuiCol_TableRowBg or ImGuiCol_TableRowBgAlt (equivalent of calling TableSetBgColor with ImGuiTableBgFlags_RowBg0 on each row manually) + ImGuiTableFlags_BordersInnerH = 1 << 7, // Draw horizontal borders between rows. + ImGuiTableFlags_BordersOuterH = 1 << 8, // Draw horizontal borders at the top and bottom. + ImGuiTableFlags_BordersInnerV = 1 << 9, // Draw vertical borders between columns. + ImGuiTableFlags_BordersOuterV = 1 << 10, // Draw vertical borders on the left and right sides. + ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, // Draw horizontal borders. + ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, // Draw vertical borders. + ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, // Draw inner borders. + ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, // Draw outer borders. + ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, // Draw all borders. + ImGuiTableFlags_NoBordersInBody = 1 << 11, // [ALPHA] Disable vertical borders in columns Body (borders will always appear in Headers). -> May move to style + ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, // [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers). -> May move to style + // Sizing Policy (read above for defaults) + ImGuiTableFlags_SizingFixedFit = 1 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width. + ImGuiTableFlags_SizingFixedSame = 2 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible. + ImGuiTableFlags_SizingStretchProp = 3 << 13, // Columns default to _WidthStretch with default weights proportional to each columns contents widths. + ImGuiTableFlags_SizingStretchSame = 4 << 13, // Columns default to _WidthStretch with default weights all equal, unless overridden by TableSetupColumn(). + // Sizing Extra Options + ImGuiTableFlags_NoHostExtendX = 1 << 16, // Make outer width auto-fit to columns, overriding outer_size.x value. Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. + ImGuiTableFlags_NoHostExtendY = 1 << 17, // Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible. + ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, // Disable keeping column always minimally visible when ScrollX is off and table gets too small. Not recommended if columns are resizable. + ImGuiTableFlags_PreciseWidths = 1 << 19, // Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth. + // Clipping + ImGuiTableFlags_NoClip = 1 << 20, // Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze(). + // Padding + ImGuiTableFlags_PadOuterX = 1 << 21, // Default if BordersOuterV is on. Enable outermost padding. Generally desirable if you have headers. + ImGuiTableFlags_NoPadOuterX = 1 << 22, // Default if BordersOuterV is off. Disable outermost padding. + ImGuiTableFlags_NoPadInnerX = 1 << 23, // Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off). + // Scrolling + ImGuiTableFlags_ScrollX = 1 << 24, // Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this creates a child window, ScrollY is currently generally recommended when using ScrollX. + ImGuiTableFlags_ScrollY = 1 << 25, // Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. + // Sorting + ImGuiTableFlags_SortMulti = 1 << 26, // Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1). + ImGuiTableFlags_SortTristate = 1 << 27, // Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0). + + // [Internal] Combinations and masks + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, +}; + +// Flags for ImGui::TableSetupColumn() +enum ImGuiTableColumnFlags_ +{ + // Input configuration flags + ImGuiTableColumnFlags_None = 0, + ImGuiTableColumnFlags_Disabled = 1 << 0, // Overriding/master disable flag: hide column, won't show in context menu (unlike calling TableSetColumnEnabled() which manipulates the user accessible state) + ImGuiTableColumnFlags_DefaultHide = 1 << 1, // Default as a hidden/disabled column. + ImGuiTableColumnFlags_DefaultSort = 1 << 2, // Default as a sorting column. + ImGuiTableColumnFlags_WidthStretch = 1 << 3, // Column will stretch. Preferable with horizontal scrolling disabled (default if table sizing policy is _SizingStretchSame or _SizingStretchProp). + ImGuiTableColumnFlags_WidthFixed = 1 << 4, // Column will not stretch. Preferable with horizontal scrolling enabled (default if table sizing policy is _SizingFixedFit and table is resizable). + ImGuiTableColumnFlags_NoResize = 1 << 5, // Disable manual resizing. + ImGuiTableColumnFlags_NoReorder = 1 << 6, // Disable manual reordering this column, this will also prevent other columns from crossing over this column. + ImGuiTableColumnFlags_NoHide = 1 << 7, // Disable ability to hide/disable this column. + ImGuiTableColumnFlags_NoClip = 1 << 8, // Disable clipping for this column (all NoClip columns will render in a same draw command). + ImGuiTableColumnFlags_NoSort = 1 << 9, // Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table). + ImGuiTableColumnFlags_NoSortAscending = 1 << 10, // Disable ability to sort in the ascending direction. + ImGuiTableColumnFlags_NoSortDescending = 1 << 11, // Disable ability to sort in the descending direction. + ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, // TableHeadersRow() will not submit label for this column. Convenient for some small columns. Name will still appear in context menu. + ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, // Disable header text width contribution to automatic column width. + ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, // Make the initial sort direction Ascending when first sorting on this column (default). + ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, // Make the initial sort direction Descending when first sorting on this column. + ImGuiTableColumnFlags_IndentEnable = 1 << 16, // Use current Indent value when entering cell (default for column 0). + ImGuiTableColumnFlags_IndentDisable = 1 << 17, // Ignore current Indent value when entering cell (default for columns > 0). Indentation changes _within_ the cell will still be honored. + + // Output status flags, read-only via TableGetColumnFlags() + ImGuiTableColumnFlags_IsEnabled = 1 << 24, // Status: is enabled == not hidden by user/api (referred to as "Hide" in _DefaultHide and _NoHide) flags. + ImGuiTableColumnFlags_IsVisible = 1 << 25, // Status: is visible == is enabled AND not clipped by scrolling. + ImGuiTableColumnFlags_IsSorted = 1 << 26, // Status: is currently part of the sort specs + ImGuiTableColumnFlags_IsHovered = 1 << 27, // Status: is hovered by mouse + + // [Internal] Combinations and masks + ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, + ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, + ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, // [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge) +}; + +// Flags for ImGui::TableNextRow() +enum ImGuiTableRowFlags_ +{ + ImGuiTableRowFlags_None = 0, + ImGuiTableRowFlags_Headers = 1 << 0, // Identify header row (set default background color + width of its contents accounted differently for auto column width) +}; + +// Enum for ImGui::TableSetBgColor() +// Background colors are rendering in 3 layers: +// - Layer 0: draw with RowBg0 color if set, otherwise draw with ColumnBg0 if set. +// - Layer 1: draw with RowBg1 color if set, otherwise draw with ColumnBg1 if set. +// - Layer 2: draw with CellBg color if set. +// The purpose of the two row/columns layers is to let you decide if a background color change should override or blend with the existing color. +// When using ImGuiTableFlags_RowBg on the table, each row has the RowBg0 color automatically set for odd/even rows. +// If you set the color of RowBg0 target, your color will override the existing RowBg0 color. +// If you set the color of RowBg1 or ColumnBg1 target, your color will blend over the RowBg0 color. +enum ImGuiTableBgTarget_ +{ + ImGuiTableBgTarget_None = 0, + ImGuiTableBgTarget_RowBg0 = 1, // Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used) + ImGuiTableBgTarget_RowBg1 = 2, // Set row background color 1 (generally used for selection marking) + ImGuiTableBgTarget_CellBg = 3, // Set cell background color (top-most color) +}; + +// Flags for ImGui::IsWindowFocused() +enum ImGuiFocusedFlags_ +{ + ImGuiFocusedFlags_None = 0, + ImGuiFocusedFlags_ChildWindows = 1 << 0, // Return true if any children of the window is focused + ImGuiFocusedFlags_RootWindow = 1 << 1, // Test from root window (top most parent of the current hierarchy) + ImGuiFocusedFlags_AnyWindow = 1 << 2, // Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ! + ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, // Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) + ImGuiFocusedFlags_DockHierarchy = 1 << 4, // Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, +}; + +// Flags for ImGui::IsItemHovered(), ImGui::IsWindowHovered() +// Note: if you are trying to check whether your mouse should be dispatched to Dear ImGui or to your app, you should use 'io.WantCaptureMouse' instead! Please read the FAQ! +// Note: windows with the ImGuiWindowFlags_NoInputs flag are ignored by IsWindowHovered() calls. +enum ImGuiHoveredFlags_ +{ + ImGuiHoveredFlags_None = 0, // Return true if directly over the item/window, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them. + ImGuiHoveredFlags_ChildWindows = 1 << 0, // IsWindowHovered() only: Return true if any children of the window is hovered + ImGuiHoveredFlags_RootWindow = 1 << 1, // IsWindowHovered() only: Test from root window (top most parent of the current hierarchy) + ImGuiHoveredFlags_AnyWindow = 1 << 2, // IsWindowHovered() only: Return true if any window is hovered + ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3, // IsWindowHovered() only: Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) + ImGuiHoveredFlags_DockHierarchy = 1 << 4, // IsWindowHovered() only: Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) + ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5, // Return true even if a popup window is normally blocking access to this item/window + //ImGuiHoveredFlags_AllowWhenBlockedByModal = 1 << 6, // Return true even if a modal popup window is normally blocking access to this item/window. FIXME-TODO: Unavailable yet. + ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, // Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns. + ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 8, // IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window + ImGuiHoveredFlags_AllowWhenDisabled = 1 << 9, // IsItemHovered() only: Return true even if the item is disabled + ImGuiHoveredFlags_NoNavOverride = 1 << 10, // Disable using gamepad/keyboard navigation state when active, always query mouse. + ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + + // Hovering delays (for tooltips) + ImGuiHoveredFlags_DelayNormal = 1 << 11, // Return true after io.HoverDelayNormal elapsed (~0.30 sec) + ImGuiHoveredFlags_DelayShort = 1 << 12, // Return true after io.HoverDelayShort elapsed (~0.10 sec) + ImGuiHoveredFlags_NoSharedDelay = 1 << 13, // Disable shared delay system where moving from one item to the next keeps the previous timer for a short time (standard for tooltips with long delays) +}; + +// Flags for ImGui::DockSpace(), shared/inherited by child nodes. +// (Some flags can be applied to individual nodes directly) +// FIXME-DOCK: Also see ImGuiDockNodeFlagsPrivate_ which may involve using the WIP and internal DockBuilder api. +enum ImGuiDockNodeFlags_ +{ + ImGuiDockNodeFlags_None = 0, + ImGuiDockNodeFlags_KeepAliveOnly = 1 << 0, // Shared // Don't display the dockspace node but keep it alive. Windows docked into this dockspace node won't be undocked. + //ImGuiDockNodeFlags_NoCentralNode = 1 << 1, // Shared // Disable Central Node (the node which can stay empty) + ImGuiDockNodeFlags_NoDockingInCentralNode = 1 << 2, // Shared // Disable docking inside the Central Node, which will be always kept empty. + ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3, // Shared // Enable passthru dockspace: 1) DockSpace() will render a ImGuiCol_WindowBg background covering everything excepted the Central Node when empty. Meaning the host window should probably use SetNextWindowBgAlpha(0.0f) prior to Begin() when using this. 2) When Central Node is empty: let inputs pass-through + won't display a DockingEmptyBg background. See demo for details. + ImGuiDockNodeFlags_NoSplit = 1 << 4, // Shared/Local // Disable splitting the node into smaller nodes. Useful e.g. when embedding dockspaces into a main root one (the root one may have splitting disabled to reduce confusion). Note: when turned off, existing splits will be preserved. + ImGuiDockNodeFlags_NoResize = 1 << 5, // Shared/Local // Disable resizing node using the splitter/separators. Useful with programmatically setup dockspaces. + ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6, // Shared/Local // Tab bar will automatically hide when there is a single window in the dock node. +}; + +// Flags for ImGui::BeginDragDropSource(), ImGui::AcceptDragDropPayload() +enum ImGuiDragDropFlags_ +{ + ImGuiDragDropFlags_None = 0, + // BeginDragDropSource() flags + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior. + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item. + ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, // Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item. + ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, // Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit. + ImGuiDragDropFlags_SourceExtern = 1 << 4, // External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously. + ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, // Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged) + // AcceptDragDropPayload() flags + ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, // AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered. + ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, // Do not draw the default highlight rectangle when hovering over target. + ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, // Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site. + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, // For peeking ahead and inspecting the payload before delivery. +}; + +// Standard Drag and Drop payload types. You can define you own payload types using short strings. Types starting with '_' are defined by Dear ImGui. +#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F" // float[3]: Standard type for colors, without alpha. User code may use this type. +#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F" // float[4]: Standard type for colors. User code may use this type. + +// A primary data type +enum ImGuiDataType_ +{ + ImGuiDataType_S8, // signed char / char (with sensible compilers) + ImGuiDataType_U8, // unsigned char + ImGuiDataType_S16, // short + ImGuiDataType_U16, // unsigned short + ImGuiDataType_S32, // int + ImGuiDataType_U32, // unsigned int + ImGuiDataType_S64, // long long / __int64 + ImGuiDataType_U64, // unsigned long long / unsigned __int64 + ImGuiDataType_Float, // float + ImGuiDataType_Double, // double + ImGuiDataType_COUNT +}; + +// A cardinal direction +enum ImGuiDir_ +{ + ImGuiDir_None = -1, + ImGuiDir_Left = 0, + ImGuiDir_Right = 1, + ImGuiDir_Up = 2, + ImGuiDir_Down = 3, + ImGuiDir_COUNT +}; + +// A sorting direction +enum ImGuiSortDirection_ +{ + ImGuiSortDirection_None = 0, + ImGuiSortDirection_Ascending = 1, // Ascending = 0->9, A->Z etc. + ImGuiSortDirection_Descending = 2 // Descending = 9->0, Z->A etc. +}; + +// A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) +// All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87) +// Since >= 1.89 we increased typing (went from int to enum), some legacy code may need a cast to ImGuiKey. +enum ImGuiKey : int +{ + // Keyboard + ImGuiKey_None = 0, + ImGuiKey_Tab = 512, // == ImGuiKey_NamedKey_BEGIN + ImGuiKey_LeftArrow, + ImGuiKey_RightArrow, + ImGuiKey_UpArrow, + ImGuiKey_DownArrow, + ImGuiKey_PageUp, + ImGuiKey_PageDown, + ImGuiKey_Home, + ImGuiKey_End, + ImGuiKey_Insert, + ImGuiKey_Delete, + ImGuiKey_Backspace, + ImGuiKey_Space, + ImGuiKey_Enter, + ImGuiKey_Escape, + ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper, + ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper, + ImGuiKey_Menu, + ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9, + ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J, + ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T, + ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z, + ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6, + ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12, + ImGuiKey_Apostrophe, // ' + ImGuiKey_Comma, // , + ImGuiKey_Minus, // - + ImGuiKey_Period, // . + ImGuiKey_Slash, // / + ImGuiKey_Semicolon, // ; + ImGuiKey_Equal, // = + ImGuiKey_LeftBracket, // [ + ImGuiKey_Backslash, // \ (this text inhibit multiline comment caused by backslash) + ImGuiKey_RightBracket, // ] + ImGuiKey_GraveAccent, // ` + ImGuiKey_CapsLock, + ImGuiKey_ScrollLock, + ImGuiKey_NumLock, + ImGuiKey_PrintScreen, + ImGuiKey_Pause, + ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4, + ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9, + ImGuiKey_KeypadDecimal, + ImGuiKey_KeypadDivide, + ImGuiKey_KeypadMultiply, + ImGuiKey_KeypadSubtract, + ImGuiKey_KeypadAdd, + ImGuiKey_KeypadEnter, + ImGuiKey_KeypadEqual, + + // Gamepad (some of those are analog values, 0.0f to 1.0f) // GAME NAVIGATION ACTION + // (download controller mapping PNG/PSD at http://dearimgui.org/controls_sheets) + ImGuiKey_GamepadStart, // Menu (Xbox) + (Switch) Start/Options (PS) + ImGuiKey_GamepadBack, // View (Xbox) - (Switch) Share (PS) + ImGuiKey_GamepadFaceLeft, // X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows) + ImGuiKey_GamepadFaceRight, // B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit + ImGuiKey_GamepadFaceUp, // Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard + ImGuiKey_GamepadFaceDown, // A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak + ImGuiKey_GamepadDpadLeft, // D-pad Left // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadRight, // D-pad Right // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadUp, // D-pad Up // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadDown, // D-pad Down // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadL1, // L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode) + ImGuiKey_GamepadR1, // R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode) + ImGuiKey_GamepadL2, // L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog] + ImGuiKey_GamepadR2, // R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog] + ImGuiKey_GamepadL3, // L Stick (Xbox) L3 (Switch) L3 (PS) + ImGuiKey_GamepadR3, // R Stick (Xbox) R3 (Switch) R3 (PS) + ImGuiKey_GamepadLStickLeft, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickRight, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickUp, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickDown, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadRStickLeft, // [Analog] + ImGuiKey_GamepadRStickRight, // [Analog] + ImGuiKey_GamepadRStickUp, // [Analog] + ImGuiKey_GamepadRStickDown, // [Analog] + + // Mouse Buttons (auto-submitted from AddMouseButtonEvent() calls) + // - This is mirroring the data also written to io.MouseDown[], io.MouseWheel, in a format allowing them to be accessed via standard key API. + ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY, + + // [Internal] Reserved for mod storage + ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper, + ImGuiKey_COUNT, + + // Keyboard Modifiers (explicitly submitted by backend via AddKeyEvent() calls) + // - This is mirroring the data also written to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper, in a format allowing + // them to be accessed via standard key API, allowing calls such as IsKeyPressed(), IsKeyReleased(), querying duration etc. + // - Code polling every key (e.g. an interface to detect a key press for input mapping) might want to ignore those + // and prefer using the real keys (e.g. ImGuiKey_LeftCtrl, ImGuiKey_RightCtrl instead of ImGuiMod_Ctrl). + // - In theory the value of keyboard modifiers should be roughly equivalent to a logical or of the equivalent left/right keys. + // In practice: it's complicated; mods are often provided from different sources. Keyboard layout, IME, sticky keys and + // backends tend to interfere and break that equivalence. The safer decision is to relay that ambiguity down to the end-user... + ImGuiMod_None = 0, + ImGuiMod_Ctrl = 1 << 12, + ImGuiMod_Shift = 1 << 13, + ImGuiMod_Alt = 1 << 14, // Option/Menu + ImGuiMod_Super = 1 << 15, // Cmd/Super/Windows + ImGuiMod_Mask_ = 0xF000, +#if defined(__APPLE__) + ImGuiMod_Shortcut = ImGuiMod_Super, +#else + ImGuiMod_Shortcut = ImGuiMod_Ctrl, +#endif + + // [Internal] Prior to 1.87 we required user to fill io.KeysDown[512] using their own native index + the io.KeyMap[] array. + // We are ditching this method but keeping a legacy path for user code doing e.g. IsKeyPressed(MY_NATIVE_KEY_CODE) + ImGuiKey_NamedKey_BEGIN = 512, + ImGuiKey_NamedKey_END = ImGuiKey_COUNT, + ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT, // Size of KeysData[]: only hold named keys + ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN, // First key stored in io.KeysData[0]. Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET). +#else + ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT, // Size of KeysData[]: hold legacy 0..512 keycodes + named keys + ImGuiKey_KeysData_OFFSET = 0, // First key stored in io.KeysData[0]. Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET). +#endif + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super, // Renamed in 1.89 + ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter, // Renamed in 1.87 +#endif +}; + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +// OBSOLETED in 1.88 (from July 2022): ImGuiNavInput and io.NavInputs[]. +// Official backends between 1.60 and 1.86: will keep working and feed gamepad inputs as long as IMGUI_DISABLE_OBSOLETE_KEYIO is not set. +// Custom backends: feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +enum ImGuiNavInput +{ + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, + ImGuiNavInput_COUNT, +}; +#endif + +// Configuration flags stored in io.ConfigFlags. Set by user/application. +enum ImGuiConfigFlags_ +{ + ImGuiConfigFlags_None = 0, + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad. + ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth. + ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, // Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set. + ImGuiConfigFlags_NoMouse = 1 << 4, // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the backend. + ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, // Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead. + + // [BETA] Docking + ImGuiConfigFlags_DockingEnable = 1 << 6, // Docking enable flags. + + // [BETA] Viewports + // When using viewports it is recommended that your default value for ImGuiCol_WindowBg is opaque (Alpha=1.0) so transition to a viewport won't be noticeable. + ImGuiConfigFlags_ViewportsEnable = 1 << 10, // Viewport enable flags (require both ImGuiBackendFlags_PlatformHasViewports + ImGuiBackendFlags_RendererHasViewports set by the respective backends) + ImGuiConfigFlags_DpiEnableScaleViewports= 1 << 14, // [BETA: Don't use] FIXME-DPI: Reposition and resize imgui windows when the DpiScale of a viewport changed (mostly useful for the main viewport hosting other window). Note that resizing the main window itself is up to your application. + ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 15, // [BETA: Don't use] FIXME-DPI: Request bitmap-scaled fonts to match DpiScale. This is a very low-quality workaround. The correct way to handle DPI is _currently_ to replace the atlas and/or fonts in the Platform_OnChangedViewport callback, but this is all early work in progress. + + // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are NOT used by core Dear ImGui) + ImGuiConfigFlags_IsSRGB = 1 << 20, // Application is SRGB-aware. + ImGuiConfigFlags_IsTouchScreen = 1 << 21, // Application is using a touch screen instead of a mouse. +}; + +// Backend capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom backend. +enum ImGuiBackendFlags_ +{ + ImGuiBackendFlags_None = 0, + ImGuiBackendFlags_HasGamepad = 1 << 0, // Backend Platform supports gamepad and currently has one connected. + ImGuiBackendFlags_HasMouseCursors = 1 << 1, // Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape. + ImGuiBackendFlags_HasSetMousePos = 1 << 2, // Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set). + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, // Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices. + + // [BETA] Viewports + ImGuiBackendFlags_PlatformHasViewports = 1 << 10, // Backend Platform supports multiple viewports. + ImGuiBackendFlags_HasMouseHoveredViewport=1 << 11, // Backend Platform supports calling io.AddMouseViewportEvent() with the viewport under the mouse. IF POSSIBLE, ignore viewports with the ImGuiViewportFlags_NoInputs flag (Win32 backend, GLFW 3.30+ backend can do this, SDL backend cannot). If this cannot be done, Dear ImGui needs to use a flawed heuristic to find the viewport under. + ImGuiBackendFlags_RendererHasViewports = 1 << 12, // Backend Renderer supports multiple viewports. +}; + +// Enumeration for PushStyleColor() / PopStyleColor() +enum ImGuiCol_ +{ + ImGuiCol_Text, + ImGuiCol_TextDisabled, + ImGuiCol_WindowBg, // Background of normal windows + ImGuiCol_ChildBg, // Background of child windows + ImGuiCol_PopupBg, // Background of popups, menus, tooltips windows + ImGuiCol_Border, + ImGuiCol_BorderShadow, + ImGuiCol_FrameBg, // Background of checkbox, radio button, plot, slider, text input + ImGuiCol_FrameBgHovered, + ImGuiCol_FrameBgActive, + ImGuiCol_TitleBg, + ImGuiCol_TitleBgActive, + ImGuiCol_TitleBgCollapsed, + ImGuiCol_MenuBarBg, + ImGuiCol_ScrollbarBg, + ImGuiCol_ScrollbarGrab, + ImGuiCol_ScrollbarGrabHovered, + ImGuiCol_ScrollbarGrabActive, + ImGuiCol_CheckMark, + ImGuiCol_SliderGrab, + ImGuiCol_SliderGrabActive, + ImGuiCol_Button, + ImGuiCol_ButtonHovered, + ImGuiCol_ButtonActive, + ImGuiCol_Header, // Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem + ImGuiCol_HeaderHovered, + ImGuiCol_HeaderActive, + ImGuiCol_Separator, + ImGuiCol_SeparatorHovered, + ImGuiCol_SeparatorActive, + ImGuiCol_ResizeGrip, // Resize grip in lower-right and lower-left corners of windows. + ImGuiCol_ResizeGripHovered, + ImGuiCol_ResizeGripActive, + ImGuiCol_Tab, // TabItem in a TabBar + ImGuiCol_TabHovered, + ImGuiCol_TabActive, + ImGuiCol_TabUnfocused, + ImGuiCol_TabUnfocusedActive, + ImGuiCol_DockingPreview, // Preview overlay color when about to docking something + ImGuiCol_DockingEmptyBg, // Background color for empty node (e.g. CentralNode with no window docked into it) + ImGuiCol_PlotLines, + ImGuiCol_PlotLinesHovered, + ImGuiCol_PlotHistogram, + ImGuiCol_PlotHistogramHovered, + ImGuiCol_TableHeaderBg, // Table header background + ImGuiCol_TableBorderStrong, // Table outer and header borders (prefer using Alpha=1.0 here) + ImGuiCol_TableBorderLight, // Table inner borders (prefer using Alpha=1.0 here) + ImGuiCol_TableRowBg, // Table row background (even rows) + ImGuiCol_TableRowBgAlt, // Table row background (odd rows) + ImGuiCol_TextSelectedBg, + ImGuiCol_DragDropTarget, // Rectangle highlighting a drop target + ImGuiCol_NavHighlight, // Gamepad/keyboard: current highlighted item + ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB + ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active + ImGuiCol_ModalWindowDimBg, // Darken/colorize entire screen behind a modal window, when one is active + ImGuiCol_COUNT +}; + +// Enumeration for PushStyleVar() / PopStyleVar() to temporarily modify the ImGuiStyle structure. +// - The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code. +// During initialization or between frames, feel free to just poke into ImGuiStyle directly. +// - Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description. +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +// - When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type. +enum ImGuiStyleVar_ +{ + // Enum name --------------------- // Member in ImGuiStyle structure (see ImGuiStyle for descriptions) + ImGuiStyleVar_Alpha, // float Alpha + ImGuiStyleVar_DisabledAlpha, // float DisabledAlpha + ImGuiStyleVar_WindowPadding, // ImVec2 WindowPadding + ImGuiStyleVar_WindowRounding, // float WindowRounding + ImGuiStyleVar_WindowBorderSize, // float WindowBorderSize + ImGuiStyleVar_WindowMinSize, // ImVec2 WindowMinSize + ImGuiStyleVar_WindowTitleAlign, // ImVec2 WindowTitleAlign + ImGuiStyleVar_ChildRounding, // float ChildRounding + ImGuiStyleVar_ChildBorderSize, // float ChildBorderSize + ImGuiStyleVar_PopupRounding, // float PopupRounding + ImGuiStyleVar_PopupBorderSize, // float PopupBorderSize + ImGuiStyleVar_FramePadding, // ImVec2 FramePadding + ImGuiStyleVar_FrameRounding, // float FrameRounding + ImGuiStyleVar_FrameBorderSize, // float FrameBorderSize + ImGuiStyleVar_ItemSpacing, // ImVec2 ItemSpacing + ImGuiStyleVar_ItemInnerSpacing, // ImVec2 ItemInnerSpacing + ImGuiStyleVar_IndentSpacing, // float IndentSpacing + ImGuiStyleVar_CellPadding, // ImVec2 CellPadding + ImGuiStyleVar_ScrollbarSize, // float ScrollbarSize + ImGuiStyleVar_ScrollbarRounding, // float ScrollbarRounding + ImGuiStyleVar_GrabMinSize, // float GrabMinSize + ImGuiStyleVar_GrabRounding, // float GrabRounding + ImGuiStyleVar_TabRounding, // float TabRounding + ImGuiStyleVar_ButtonTextAlign, // ImVec2 ButtonTextAlign + ImGuiStyleVar_SelectableTextAlign, // ImVec2 SelectableTextAlign + ImGuiStyleVar_COUNT +}; + +// Flags for InvisibleButton() [extended in imgui_internal.h] +enum ImGuiButtonFlags_ +{ + ImGuiButtonFlags_None = 0, + ImGuiButtonFlags_MouseButtonLeft = 1 << 0, // React on left mouse button (default) + ImGuiButtonFlags_MouseButtonRight = 1 << 1, // React on right mouse button + ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, // React on center mouse button + + // [Internal] + ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, +}; + +// Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() +enum ImGuiColorEditFlags_ +{ + ImGuiColorEditFlags_None = 0, + ImGuiColorEditFlags_NoAlpha = 1 << 1, // // ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer). + ImGuiColorEditFlags_NoPicker = 1 << 2, // // ColorEdit: disable picker when clicking on color square. + ImGuiColorEditFlags_NoOptions = 1 << 3, // // ColorEdit: disable toggling options menu when right-clicking on inputs/small preview. + ImGuiColorEditFlags_NoSmallPreview = 1 << 4, // // ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs) + ImGuiColorEditFlags_NoInputs = 1 << 5, // // ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview color square). + ImGuiColorEditFlags_NoTooltip = 1 << 6, // // ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview. + ImGuiColorEditFlags_NoLabel = 1 << 7, // // ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker). + ImGuiColorEditFlags_NoSidePreview = 1 << 8, // // ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead. + ImGuiColorEditFlags_NoDragDrop = 1 << 9, // // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source. + ImGuiColorEditFlags_NoBorder = 1 << 10, // // ColorButton: disable border (which is enforced by default) + + // User Options (right-click on widget to change some of them). + ImGuiColorEditFlags_AlphaBar = 1 << 16, // // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker. + ImGuiColorEditFlags_AlphaPreview = 1 << 17, // // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque. + ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18, // // ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque. + ImGuiColorEditFlags_HDR = 1 << 19, // // (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well). + ImGuiColorEditFlags_DisplayRGB = 1 << 20, // [Display] // ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex. + ImGuiColorEditFlags_DisplayHSV = 1 << 21, // [Display] // " + ImGuiColorEditFlags_DisplayHex = 1 << 22, // [Display] // " + ImGuiColorEditFlags_Uint8 = 1 << 23, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255. + ImGuiColorEditFlags_Float = 1 << 24, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers. + ImGuiColorEditFlags_PickerHueBar = 1 << 25, // [Picker] // ColorPicker: bar for Hue, rectangle for Sat/Value. + ImGuiColorEditFlags_PickerHueWheel = 1 << 26, // [Picker] // ColorPicker: wheel for Hue, triangle for Sat/Value. + ImGuiColorEditFlags_InputRGB = 1 << 27, // [Input] // ColorEdit, ColorPicker: input and output data in RGB format. + ImGuiColorEditFlags_InputHSV = 1 << 28, // [Input] // ColorEdit, ColorPicker: input and output data in HSV format. + + // Defaults Options. You can set application defaults using SetColorEditOptions(). The intent is that you probably don't want to + // override them in most of your calls. Let the user choose via the option menu and/or call SetColorEditOptions() once during startup. + ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, + + // [Internal] Masks + ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, + ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, + ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, + + // Obsolete names (will be removed) + // ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] +}; + +// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +// We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText) +enum ImGuiSliderFlags_ +{ + ImGuiSliderFlags_None = 0, + ImGuiSliderFlags_AlwaysClamp = 1 << 4, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. + ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. + ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits) + ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp, // [renamed in 1.79] +#endif +}; + +// Identify a mouse button. +// Those values are guaranteed to be stable and we frequently use 0/1 directly. Named enums provided for convenience. +enum ImGuiMouseButton_ +{ + ImGuiMouseButton_Left = 0, + ImGuiMouseButton_Right = 1, + ImGuiMouseButton_Middle = 2, + ImGuiMouseButton_COUNT = 5 +}; + +// Enumeration for GetMouseCursor() +// User code may request backend to display given cursor by calling SetMouseCursor(), which is why we have some cursors that are marked unused here +enum ImGuiMouseCursor_ +{ + ImGuiMouseCursor_None = -1, + ImGuiMouseCursor_Arrow = 0, + ImGuiMouseCursor_TextInput, // When hovering over InputText, etc. + ImGuiMouseCursor_ResizeAll, // (Unused by Dear ImGui functions) + ImGuiMouseCursor_ResizeNS, // When hovering over a horizontal border + ImGuiMouseCursor_ResizeEW, // When hovering over a vertical border or a column + ImGuiMouseCursor_ResizeNESW, // When hovering over the bottom-left corner of a window + ImGuiMouseCursor_ResizeNWSE, // When hovering over the bottom-right corner of a window + ImGuiMouseCursor_Hand, // (Unused by Dear ImGui functions. Use for e.g. hyperlinks) + ImGuiMouseCursor_NotAllowed, // When hovering something with disallowed interaction. Usually a crossed circle. + ImGuiMouseCursor_COUNT +}; + +// Enumeration for ImGui::SetWindow***(), SetNextWindow***(), SetNextItem***() functions +// Represent a condition. +// Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always. +enum ImGuiCond_ +{ + ImGuiCond_None = 0, // No condition (always set the variable), same as _Always + ImGuiCond_Always = 1 << 0, // No condition (always set the variable), same as _None + ImGuiCond_Once = 1 << 1, // Set the variable once per runtime session (only the first call will succeed) + ImGuiCond_FirstUseEver = 1 << 2, // Set the variable if the object/window has no persistently saved data (no entry in .ini file) + ImGuiCond_Appearing = 1 << 3, // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) +}; + +//----------------------------------------------------------------------------- +// [SECTION] Helpers: Memory allocations macros, ImVector<> +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// IM_MALLOC(), IM_FREE(), IM_NEW(), IM_PLACEMENT_NEW(), IM_DELETE() +// We call C++ constructor on own allocated memory via the placement "new(ptr) Type()" syntax. +// Defining a custom placement new() with a custom parameter allows us to bypass including which on some platforms complains when user has disabled exceptions. +//----------------------------------------------------------------------------- + +struct ImNewWrapper {}; +inline void* operator new(size_t, ImNewWrapper, void* ptr) { return ptr; } +inline void operator delete(void*, ImNewWrapper, void*) {} // This is only required so we can use the symmetrical new() +#define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE) +#define IM_FREE(_PTR) ImGui::MemFree(_PTR) +#define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR) +#define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE +template void IM_DELETE(T* p) { if (p) { p->~T(); ImGui::MemFree(p); } } + +//----------------------------------------------------------------------------- +// ImVector<> +// Lightweight std::vector<>-like class to avoid dragging dependencies (also, some implementations of STL with debug enabled are absurdly slow, we bypass it so our code runs fast in debug). +//----------------------------------------------------------------------------- +// - You generally do NOT need to care or use this ever. But we need to make it available in imgui.h because some of our public structures are relying on it. +// - We use std-like naming convention here, which is a little unusual for this codebase. +// - Important: clear() frees memory, resize(0) keep the allocated buffer. We use resize(0) a lot to intentionally recycle allocated buffers across frames and amortize our costs. +// - Important: our implementation does NOT call C++ constructors/destructors, we treat everything as raw data! This is intentional but be extra mindful of that, +// Do NOT use this class as a std::vector replacement in your own code! Many of the structures used by dear imgui can be safely initialized by a zero-memset. +//----------------------------------------------------------------------------- + +IM_MSVC_RUNTIME_CHECKS_OFF +template +struct ImVector +{ + int Size; + int Capacity; + T* Data; + + // Provide standard typedefs but we don't use them ourselves. + typedef T value_type; + typedef value_type* iterator; + typedef const value_type* const_iterator; + + // Constructors, destructor + inline ImVector() { Size = Capacity = 0; Data = NULL; } + inline ImVector(const ImVector& src) { Size = Capacity = 0; Data = NULL; operator=(src); } + inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); if (src.Data) memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } + inline ~ImVector() { if (Data) IM_FREE(Data); } // Important: does not destruct anything + + inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } // Important: does not destruct anything + inline void clear_delete() { for (int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); } // Important: never called automatically! always explicit. + inline void clear_destruct() { for (int n = 0; n < Size; n++) Data[n].~T(); clear(); } // Important: never called automatically! always explicit. + + inline bool empty() const { return Size == 0; } + inline int size() const { return Size; } + inline int size_in_bytes() const { return Size * (int)sizeof(T); } + inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); } + inline int capacity() const { return Capacity; } + inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + + inline T* begin() { return Data; } + inline const T* begin() const { return Data; } + inline T* end() { return Data + Size; } + inline const T* end() const { return Data + Size; } + inline T& front() { IM_ASSERT(Size > 0); return Data[0]; } + inline const T& front() const { IM_ASSERT(Size > 0); return Data[0]; } + inline T& back() { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline const T& back() const { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline void swap(ImVector& rhs) { int rhs_size = rhs.Size; rhs.Size = Size; Size = rhs_size; int rhs_cap = rhs.Capacity; rhs.Capacity = Capacity; Capacity = rhs_cap; T* rhs_data = rhs.Data; rhs.Data = Data; Data = rhs_data; } + + inline int _grow_capacity(int sz) const { int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8; return new_capacity > sz ? new_capacity : sz; } + inline void resize(int new_size) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; } + inline void resize(int new_size, const T& v) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); if (new_size > Size) for (int n = Size; n < new_size; n++) memcpy(&Data[n], &v, sizeof(v)); Size = new_size; } + inline void shrink(int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; } // Resize a vector to a smaller size, guaranteed not to cause a reallocation + inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); IM_FREE(Data); } Data = new_data; Capacity = new_capacity; } + inline void reserve_discard(int new_capacity) { if (new_capacity <= Capacity) return; if (Data) IM_FREE(Data); Data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); Capacity = new_capacity; } + + // NB: It is illegal to call push_back/push_front/insert with a reference pointing inside the ImVector data itself! e.g. v.push_back(v[10]) is forbidden. + inline void push_back(const T& v) { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } + inline void pop_back() { IM_ASSERT(Size > 0); Size--; } + inline void push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } + inline T* erase(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((size_t)Size - (size_t)off - 1) * sizeof(T)); Size--; return Data + off; } + inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last >= it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - (size_t)count) * sizeof(T)); Size -= (int)count; return Data + off; } + inline T* erase_unsorted(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; if (it < Data + Size - 1) memcpy(Data + off, Data + Size - 1, sizeof(T)); Size--; return Data + off; } + inline T* insert(const T* it, const T& v) { IM_ASSERT(it >= Data && it <= Data + Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(T)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; } + inline bool contains(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; } + inline T* find(const T& v) { T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline const T* find(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline bool find_erase(const T& v) { const T* it = find(v); if (it < Data + Size) { erase(it); return true; } return false; } + inline bool find_erase_unsorted(const T& v) { const T* it = find(v); if (it < Data + Size) { erase_unsorted(it); return true; } return false; } + inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; return (int)off; } +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiStyle +//----------------------------------------------------------------------------- +// You may modify the ImGui::GetStyle() main instance during initialization and before NewFrame(). +// During the frame, use ImGui::PushStyleVar(ImGuiStyleVar_XXXX)/PopStyleVar() to alter the main style values, +// and ImGui::PushStyleColor(ImGuiCol_XXX)/PopStyleColor() for colors. +//----------------------------------------------------------------------------- + +struct ImGuiStyle +{ + float Alpha; // Global alpha applies to everything in Dear ImGui. + float DisabledAlpha; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. + ImVec2 WindowPadding; // Padding within a window. + float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints(). + ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. + ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. + float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. + float ChildBorderSize; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + float PopupRounding; // Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding) + float PopupBorderSize; // Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). + float FrameRounding; // Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). + float FrameBorderSize; // Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 ItemSpacing; // Horizontal and vertical spacing between widgets/lines. + ImVec2 ItemInnerSpacing; // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). + ImVec2 CellPadding; // Padding within a table cell + ImVec2 TouchExtraPadding; // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + float ColumnsMinSpacing; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + float ScrollbarSize; // Width of the vertical scrollbar, Height of the horizontal scrollbar. + float ScrollbarRounding; // Radius of grab corners for scrollbar. + float GrabMinSize; // Minimum width/height of a grab box for slider/scrollbar. + float GrabRounding; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + float TabBorderSize; // Thickness of border around tabs. + float TabMinWidthForCloseButton; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). + ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + ImVec2 DisplayWindowPadding; // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + ImVec2 DisplaySafeAreaPadding; // If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly! + float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). We apply per-monitor DPI scaling over this scale. May be removed later. + bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + float CircleTessellationMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + ImVec4 Colors[ImGuiCol_COUNT]; + + IMGUI_API ImGuiStyle(); + IMGUI_API void ScaleAllSizes(float scale_factor); +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiIO +//----------------------------------------------------------------------------- +// Communicate most settings and inputs/outputs to Dear ImGui using this structure. +// Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage. +//----------------------------------------------------------------------------- + +// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions. +// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration. +struct ImGuiKeyData +{ + bool Down; // True for if key is down + float DownDuration; // Duration the key has been down (<0.0f: not pressed, 0.0f: just pressed, >0.0f: time held) + float DownDurationPrev; // Last frame duration the key has been down + float AnalogValue; // 0.0f..1.0f for gamepad values +}; + +struct ImGuiIO +{ + //------------------------------------------------------------------ + // Configuration // Default value + //------------------------------------------------------------------ + + ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc. + ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend) to communicate features supported by the backend. + ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size). May change every frame. + float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame. + float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. + const char* IniFilename; // = "imgui.ini" // Path to .ini file (important: default "imgui.ini" is relative to current working dir!). Set NULL to disable automatic .ini loading/saving or if you want to manually call LoadIniSettingsXXX() / SaveIniSettingsXXX() functions. + const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). + float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. + float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. + float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. + float KeyRepeatDelay; // = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). + float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. + float HoverDelayNormal; // = 0.30 sec // Delay on hovering before IsItemHovered(ImGuiHoveredFlags_DelayNormal) returns true. + float HoverDelayShort; // = 0.10 sec // Delay on hovering before IsItemHovered(ImGuiHoveredFlags_DelayShort) returns true. + void* UserData; // = NULL // Store your own data for retrieval by callbacks. + + ImFontAtlas*Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. + float FontGlobalScale; // = 1.0f // Global scale all fonts + bool FontAllowUserScaling; // = false // Allow user scaling text of individual window with CTRL+Wheel. + ImFont* FontDefault; // = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0]. + ImVec2 DisplayFramebufferScale; // = (1, 1) // For retina display or other situations where window coordinates are different from framebuffer coordinates. This generally ends up in ImDrawData::FramebufferScale. + + // Docking options (when ImGuiConfigFlags_DockingEnable is set) + bool ConfigDockingNoSplit; // = false // Simplified docking mode: disable window splitting, so docking is limited to merging multiple windows together into tab-bars. + bool ConfigDockingWithShift; // = false // Enable docking with holding Shift key (reduce visual noise, allows dropping in wider space) + bool ConfigDockingAlwaysTabBar; // = false // [BETA] [FIXME: This currently creates regression with auto-sizing and general overhead] Make every single floating window display within a docking node. + bool ConfigDockingTransparentPayload;// = false // [BETA] Make window or viewport transparent when docking and only display docking boxes on the target viewport. Useful if rendering of multiple viewport cannot be synced. Best used with ConfigViewportsNoAutoMerge. + + // Viewport options (when ImGuiConfigFlags_ViewportsEnable is set) + bool ConfigViewportsNoAutoMerge; // = false; // Set to make all floating imgui windows always create their own viewport. Otherwise, they are merged into the main host viewports when overlapping it. May also set ImGuiViewportFlags_NoAutoMerge on individual viewport. + bool ConfigViewportsNoTaskBarIcon; // = false // Disable default OS task bar icon flag for secondary viewports. When a viewport doesn't want a task bar icon, ImGuiViewportFlags_NoTaskBarIcon will be set on it. + bool ConfigViewportsNoDecoration; // = true // Disable default OS window decoration flag for secondary viewports. When a viewport doesn't want window decorations, ImGuiViewportFlags_NoDecoration will be set on it. Enabling decoration can create subsequent issues at OS levels (e.g. minimum window size). + bool ConfigViewportsNoDefaultParent; // = false // Disable default OS parenting to main viewport for secondary viewports. By default, viewports are marked with ParentViewportId = , expecting the platform backend to setup a parent/child relationship between the OS windows (some backend may ignore this). Set to true if you want the default to be 0, then all viewports will be top-level OS windows. + + // Miscellaneous options + bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations. + bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // OS X style: Text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl. + bool ConfigInputTrickleEventQueue; // = true // Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates. + bool ConfigInputTextCursorBlink; // = true // Enable blinking cursor (optional as some users consider it to be distracting). + bool ConfigInputTextEnterKeepActive; // = false // [BETA] Pressing Enter will keep item active and select contents (single-line only). + bool ConfigDragClickToInputText; // = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). Not desirable on devices without a keyboard. + bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) + bool ConfigWindowsMoveFromTitleBarOnly; // = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar. + float ConfigMemoryCompactTimer; // = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set to -1.0f to disable. + + //------------------------------------------------------------------ + // Platform Functions + // (the imgui_impl_xxxx backend files are setting those up for you) + //------------------------------------------------------------------ + + // Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff. + const char* BackendPlatformName; // = NULL + const char* BackendRendererName; // = NULL + void* BackendPlatformUserData; // = NULL // User data for platform backend + void* BackendRendererUserData; // = NULL // User data for renderer backend + void* BackendLanguageUserData; // = NULL // User data for non C++ programming language backend + + // Optional: Access OS clipboard + // (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures) + const char* (*GetClipboardTextFn)(void* user_data); + void (*SetClipboardTextFn)(void* user_data, const char* text); + void* ClipboardUserData; + + // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) + // (default to use native imm32 api on Windows) + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + void* ImeWindowHandle; // = NULL // [Obsolete] Set ImGuiViewport::PlatformHandleRaw instead. Set this to your HWND to get automatic IME cursor positioning. +#else + void* _UnusedPadding; // Unused field to keep data structure the same size. +#endif + + //------------------------------------------------------------------ + // Input - Call before calling NewFrame() + //------------------------------------------------------------------ + + // Input Functions + IMGUI_API void AddKeyEvent(ImGuiKey key, bool down); // Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) + IMGUI_API void AddKeyAnalogEvent(ImGuiKey key, bool down, float v); // Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. + IMGUI_API void AddMousePosEvent(float x, float y); // Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered) + IMGUI_API void AddMouseButtonEvent(int button, bool down); // Queue a mouse button change + IMGUI_API void AddMouseWheelEvent(float wh_x, float wh_y); // Queue a mouse wheel update + IMGUI_API void AddMouseViewportEvent(ImGuiID id); // Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support). + IMGUI_API void AddFocusEvent(bool focused); // Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window) + IMGUI_API void AddInputCharacter(unsigned int c); // Queue a new character input + IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue a new character input from a UTF-16 character, it can be a surrogate + IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue a new characters input from a UTF-8 string + + IMGUI_API void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index = -1); // [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. + IMGUI_API void SetAppAcceptingEvents(bool accepting_events); // Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. + IMGUI_API void ClearInputCharacters(); // [Internal] Clear the text input buffer manually + IMGUI_API void ClearInputKeys(); // [Internal] Release all keys + + //------------------------------------------------------------------ + // Output - Updated by NewFrame() or EndFrame()/Render() + // (when reading from the io.WantCaptureMouse, io.WantCaptureKeyboard flags to dispatch your inputs, it is + // generally easier and more correct to use their state BEFORE calling NewFrame(). See FAQ for details!) + //------------------------------------------------------------------ + + bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). + bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). + bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). + bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. + bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! + bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. + bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). + float Framerate; // Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally. + int MetricsRenderVertices; // Vertices output during last call to Render() + int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 + int MetricsRenderWindows; // Number of visible windows + int MetricsActiveWindows; // Number of active windows + int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. + ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + + // Legacy: before 1.87, we required backend to fill io.KeyMap[] (imgui->native map) during initialization and io.KeysDown[] (native indices) every frame. + // This is still temporarily supported as a legacy feature. However the new preferred scheme is for backend to call io.AddKeyEvent(). + // Old (<1.87): ImGui::IsKeyPressed(ImGui::GetIO().KeyMap[ImGuiKey_Space]) --> New (1.87+) ImGui::IsKeyPressed(ImGuiKey_Space) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + int KeyMap[ImGuiKey_COUNT]; // [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512. + bool KeysDown[ImGuiKey_COUNT]; // [LEGACY] Input: Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow. + float NavInputs[ImGuiNavInput_COUNT]; // [LEGACY] Since 1.88, NavInputs[] was removed. Backends from 1.60 to 1.86 won't build. Feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +#endif + + //------------------------------------------------------------------ + // [Internal] Dear ImGui will maintain those fields. Forward compatibility not guaranteed! + //------------------------------------------------------------------ + + // Main Input State + // (this block used to be written by backend, since 1.87 it is best to NOT write to those directly, call the AddXXX functions above instead) + // (reading from those variables is fair game, as they are extremely unlikely to be moving anywhere) + ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) + bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. + float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. + float MouseWheelH; // Mouse wheel Horizontal. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends. + ImGuiID MouseHoveredViewport; // (Optional) Modify using io.AddMouseViewportEvent(). With multi-viewports: viewport the OS mouse is hovering. If possible _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag is much better (few backends can handle that). Set io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport if you can provide this info. If you don't imgui will infer the value using the rectangles and last focused time of the viewports it knows about (ignoring other OS windows). + bool KeyCtrl; // Keyboard modifier down: Control + bool KeyShift; // Keyboard modifier down: Shift + bool KeyAlt; // Keyboard modifier down: Alt + bool KeySuper; // Keyboard modifier down: Cmd/Super/Windows + + // Other state maintained from data above + IO function calls + ImGuiKeyChord KeyMods; // Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags). Read-only, updated by NewFrame() + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; // Key state for all known keys. Use IsKeyXXX() functions to access this. + bool WantCaptureMouseUnlessPopupClose; // Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. + ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) + ImVec2 MouseClickedPos[5]; // Position at time of clicking + double MouseClickedTime[5]; // Time of last click (used to figure out double-click) + bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) + bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) + ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down + ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. + bool MouseReleased[5]; // Mouse button went from Down to !Down + bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. + bool MouseDownOwnedUnlessPopupClose[5]; // Track if button was clicked inside a dear imgui window. + float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) + float MouseDownDurationPrev[5]; // Previous time the mouse button has been down + ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point + float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds) + float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. + bool AppFocusLost; // Only modify via AddFocusEvent() + bool AppAcceptingEvents; // Only modify via SetAppAcceptingEvents() + ImS8 BackendUsingLegacyKeyArrays; // -1: unknown, 0: using AddKeyEvent(), 1: using legacy io.KeysDown[] + bool BackendUsingLegacyNavInputArray; // 0: using AddKeyAnalogEvent(), 1: writing to legacy io.NavInputs[] directly + ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16() + ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. + + IMGUI_API ImGuiIO(); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Misc data structures +//----------------------------------------------------------------------------- + +// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used. +// The callback function should return 0 by default. +// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details) +// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) +// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration +// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB +// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows +// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. +// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. +struct ImGuiInputTextCallbackData +{ + ImGuiInputTextFlags EventFlag; // One ImGuiInputTextFlags_Callback* // Read-only + ImGuiInputTextFlags Flags; // What user passed to InputText() // Read-only + void* UserData; // What user passed to InputText() // Read-only + + // Arguments for the different callback events + // - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary. + // - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state. + ImWchar EventChar; // Character input // Read-write // [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0; + ImGuiKey EventKey; // Key pressed (Up/Down/TAB) // Read-only // [Completion,History] + char* Buf; // Text buffer // Read-write // [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer! + int BufTextLen; // Text length (in bytes) // Read-write // [Resize,Completion,History,Always] Exclude zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length() + int BufSize; // Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1 + bool BufDirty; // Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always] + int CursorPos; // // Read-write // [Completion,History,Always] + int SelectionStart; // // Read-write // [Completion,History,Always] == to SelectionEnd when no selection) + int SelectionEnd; // // Read-write // [Completion,History,Always] + + // Helper functions for text manipulation. + // Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection. + IMGUI_API ImGuiInputTextCallbackData(); + IMGUI_API void DeleteChars(int pos, int bytes_count); + IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL); + void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; } + void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; } + bool HasSelection() const { return SelectionStart != SelectionEnd; } +}; + +// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin(). +// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough. +struct ImGuiSizeCallbackData +{ + void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in here (need reinterpret_cast<>). + ImVec2 Pos; // Read-only. Window position, for reference. + ImVec2 CurrentSize; // Read-only. Current window size. + ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing. +}; + +// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions. +// Important: the content of this class is still highly WIP and likely to change and be refactored +// before we stabilize Docking features. Please be mindful if using this. +// Provide hints: +// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.) +// - To the platform backend for OS level parent/child relationships of viewport. +// - To the docking system for various options and filtering. +struct ImGuiWindowClass +{ + ImGuiID ClassId; // User data. 0 = Default class (unclassed). Windows of different classes cannot be docked with each others. + ImGuiID ParentViewportId; // Hint for the platform backend. -1: use default. 0: request platform backend to not parent the platform. != 0: request platform backend to create a parent<>child relationship between the platform windows. Not conforming backends are free to e.g. parent every viewport to the main viewport or not. + ImGuiViewportFlags ViewportFlagsOverrideSet; // Viewport flags to set when a window of this class owns a viewport. This allows you to enforce OS decoration or task bar icon, override the defaults on a per-window basis. + ImGuiViewportFlags ViewportFlagsOverrideClear; // Viewport flags to clear when a window of this class owns a viewport. This allows you to enforce OS decoration or task bar icon, override the defaults on a per-window basis. + ImGuiTabItemFlags TabItemFlagsOverrideSet; // [EXPERIMENTAL] TabItem flags to set when a window of this class gets submitted into a dock node tab bar. May use with ImGuiTabItemFlags_Leading or ImGuiTabItemFlags_Trailing. + ImGuiDockNodeFlags DockNodeFlagsOverrideSet; // [EXPERIMENTAL] Dock node flags to set when a window of this class is hosted by a dock node (it doesn't have to be selected!) + bool DockingAlwaysTabBar; // Set to true to enforce single floating windows of this class always having their own docking node (equivalent of setting the global io.ConfigDockingAlwaysTabBar) + bool DockingAllowUnclassed; // Set to true to allow windows of this class to be docked/merged with an unclassed window. // FIXME-DOCK: Move to DockNodeFlags override? + + ImGuiWindowClass() { memset(this, 0, sizeof(*this)); ParentViewportId = (ImGuiID)-1; DockingAllowUnclassed = true; } +}; + +// Data payload for Drag and Drop operations: AcceptDragDropPayload(), GetDragDropPayload() +struct ImGuiPayload +{ + // Members + void* Data; // Data (copied and owned by dear imgui) + int DataSize; // Data size + + // [Internal] + ImGuiID SourceId; // Source item id + ImGuiID SourceParentId; // Source parent id (if available) + int DataFrameCount; // Data timestamp + char DataType[32 + 1]; // Data type tag (short user-supplied string, 32 characters max) + bool Preview; // Set when AcceptDragDropPayload() was called and mouse has been hovering the target item (nb: handle overlapping drag targets) + bool Delivery; // Set when AcceptDragDropPayload() was called and mouse button is released over the target item. + + ImGuiPayload() { Clear(); } + void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0, sizeof(DataType)); DataFrameCount = -1; Preview = Delivery = false; } + bool IsDataType(const char* type) const { return DataFrameCount != -1 && strcmp(type, DataType) == 0; } + bool IsPreview() const { return Preview; } + bool IsDelivery() const { return Delivery; } +}; + +// Sorting specification for one column of a table (sizeof == 12 bytes) +struct ImGuiTableColumnSortSpecs +{ + ImGuiID ColumnUserID; // User id of the column (if specified by a TableSetupColumn() call) + ImS16 ColumnIndex; // Index of the column + ImS16 SortOrder; // Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a single criteria will always have a 0 here) + ImGuiSortDirection SortDirection : 8; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending (you can use this or SortSign, whichever is more convenient for your sort function) + + ImGuiTableColumnSortSpecs() { memset(this, 0, sizeof(*this)); } +}; + +// Sorting specifications for a table (often handling sort specs for a single column, occasionally more) +// Obtained by calling TableGetSortSpecs(). +// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time. +// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame! +struct ImGuiTableSortSpecs +{ + const ImGuiTableColumnSortSpecs* Specs; // Pointer to sort spec array. + int SpecsCount; // Sort spec count. Most often 1. May be > 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when ImGuiTableFlags_SortTristate is enabled. + bool SpecsDirty; // Set to true when specs have changed since last time! Use this to sort again, then clear the flag. + + ImGuiTableSortSpecs() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, ImColor) +//----------------------------------------------------------------------------- + +// Helper: Unicode defines +#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD // Invalid Unicode code point (standard value). +#ifdef IMGUI_USE_WCHAR32 +#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF // Maximum Unicode code point supported by this build. +#else +#define IM_UNICODE_CODEPOINT_MAX 0xFFFF // Maximum Unicode code point supported by this build. +#endif + +// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create a UI within deep-nested code that runs multiple times every frame. +// Usage: static ImGuiOnceUponAFrame oaf; if (oaf) ImGui::Text("This will be called only once per frame"); +struct ImGuiOnceUponAFrame +{ + ImGuiOnceUponAFrame() { RefFrame = -1; } + mutable int RefFrame; + operator bool() const { int current_frame = ImGui::GetFrameCount(); if (RefFrame == current_frame) return false; RefFrame = current_frame; return true; } +}; + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +struct ImGuiTextFilter +{ + IMGUI_API ImGuiTextFilter(const char* default_filter = ""); + IMGUI_API bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper calling InputText+Build + IMGUI_API bool PassFilter(const char* text, const char* text_end = NULL) const; + IMGUI_API void Build(); + void Clear() { InputBuf[0] = 0; Build(); } + bool IsActive() const { return !Filters.empty(); } + + // [Internal] + struct ImGuiTextRange + { + const char* b; + const char* e; + + ImGuiTextRange() { b = e = NULL; } + ImGuiTextRange(const char* _b, const char* _e) { b = _b; e = _e; } + bool empty() const { return b == e; } + IMGUI_API void split(char separator, ImVector* out) const; + }; + char InputBuf[256]; + ImVectorFilters; + int CountGrep; +}; + +// Helper: Growable text buffer for logging/accumulating text +// (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder') +struct ImGuiTextBuffer +{ + ImVector Buf; + IMGUI_API static char EmptyString[1]; + + ImGuiTextBuffer() { } + inline char operator[](int i) const { IM_ASSERT(Buf.Data != NULL); return Buf.Data[i]; } + const char* begin() const { return Buf.Data ? &Buf.front() : EmptyString; } + const char* end() const { return Buf.Data ? &Buf.back() : EmptyString; } // Buf is zero-terminated, so end() will point on the zero-terminator + int size() const { return Buf.Size ? Buf.Size - 1 : 0; } + bool empty() const { return Buf.Size <= 1; } + void clear() { Buf.clear(); } + void reserve(int capacity) { Buf.reserve(capacity); } + const char* c_str() const { return Buf.Data ? Buf.Data : EmptyString; } + IMGUI_API void append(const char* str, const char* str_end = NULL); + IMGUI_API void appendf(const char* fmt, ...) IM_FMTARGS(2); + IMGUI_API void appendfv(const char* fmt, va_list args) IM_FMTLIST(2); +}; + +// Helper: Key->Value storage +// Typically you don't have to worry about this since a storage is held within each Window. +// We use it to e.g. store collapse state for a tree (Int 0/1) +// This is optimized for efficient lookup (dichotomy into a contiguous buffer) and rare insertion (typically tied to user interactions aka max once a frame) +// You can use it as custom user storage for temporary values. Declare your own storage if, for example: +// - You want to manipulate the open/close state of a particular sub-tree in your interface (tree node uses Int 0/1 to store their state). +// - You want to store custom debug data easily without adding or editing structures in your code (probably not efficient, but convenient) +// Types are NOT stored, so it is up to you to make sure your Key don't collide with different types. +struct ImGuiStorage +{ + // [Internal] + struct ImGuiStoragePair + { + ImGuiID key; + union { int val_i; float val_f; void* val_p; }; + ImGuiStoragePair(ImGuiID _key, int _val_i) { key = _key; val_i = _val_i; } + ImGuiStoragePair(ImGuiID _key, float _val_f) { key = _key; val_f = _val_f; } + ImGuiStoragePair(ImGuiID _key, void* _val_p) { key = _key; val_p = _val_p; } + }; + + ImVector Data; + + // - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N) + // - Set***() functions find pair, insertion on demand if missing. + // - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair. + void Clear() { Data.clear(); } + IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const; + IMGUI_API void SetInt(ImGuiID key, int val); + IMGUI_API bool GetBool(ImGuiID key, bool default_val = false) const; + IMGUI_API void SetBool(ImGuiID key, bool val); + IMGUI_API float GetFloat(ImGuiID key, float default_val = 0.0f) const; + IMGUI_API void SetFloat(ImGuiID key, float val); + IMGUI_API void* GetVoidPtr(ImGuiID key) const; // default_val is NULL + IMGUI_API void SetVoidPtr(ImGuiID key, void* val); + + // - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set. + // - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. + // - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct) + // float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar; + IMGUI_API int* GetIntRef(ImGuiID key, int default_val = 0); + IMGUI_API bool* GetBoolRef(ImGuiID key, bool default_val = false); + IMGUI_API float* GetFloatRef(ImGuiID key, float default_val = 0.0f); + IMGUI_API void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL); + + // Use on your own storage if you know only integer are being stored (open/close all tree nodes) + IMGUI_API void SetAllInt(int val); + + // For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. + IMGUI_API void BuildSortByKey(); +}; + +// Helper: Manually clip large list of items. +// If you have lots evenly spaced items and you have random access to the list, you can perform coarse +// clipping based on visibility to only submit items that are in view. +// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped. +// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally +// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily +// scale using lists with tens of thousands of items without a problem) +// Usage: +// ImGuiListClipper clipper; +// clipper.Begin(1000); // We have 1000 elements, evenly spaced. +// while (clipper.Step()) +// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) +// ImGui::Text("line number %d", i); +// Generally what happens is: +// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not. +// - User code submit that one element. +// - Clipper can measure the height of the first element +// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element. +// - User code submit visible elements. +// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc. +struct ImGuiListClipper +{ + int DisplayStart; // First item to display, updated by each call to Step() + int DisplayEnd; // End of items to display (exclusive) + int ItemsCount; // [Internal] Number of items + float ItemsHeight; // [Internal] Height of item after a first step and item submission can calculate it + float StartPosY; // [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed + void* TempData; // [Internal] Internal data + + // items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step) + // items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing(). + IMGUI_API ImGuiListClipper(); + IMGUI_API ~ImGuiListClipper(); + IMGUI_API void Begin(int items_count, float items_height = -1.0f); + IMGUI_API void End(); // Automatically called on the last call of Step() that returns false. + IMGUI_API bool Step(); // Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items. + + // Call ForceDisplayRangeByIndices() before first call to Step() if you need a range of items to be displayed regardless of visibility. + IMGUI_API void ForceDisplayRangeByIndices(int item_min, int item_max); // item_max is exclusive e.g. use (42, 42+1) to make item 42 always visible BUT due to alignment/padding of certain items it is likely that an extra item may be included on either end of the display range. + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline ImGuiListClipper(int items_count, float items_height = -1.0f) { memset(this, 0, sizeof(*this)); ItemsCount = -1; Begin(items_count, items_height); } // [removed in 1.79] +#endif +}; + +// Helpers macros to generate 32-bit encoded colors +// User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file. +#ifndef IM_COL32_R_SHIFT +#ifdef IMGUI_USE_BGRA_PACKED_COLOR +#define IM_COL32_R_SHIFT 16 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 0 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#else +#define IM_COL32_R_SHIFT 0 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 16 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#endif +#endif +#define IM_COL32(R,G,B,A) (((ImU32)(A)<> IM_COL32_R_SHIFT) & 0xFF) * sc; Value.y = (float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * sc; Value.z = (float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * sc; Value.w = (float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * sc; } + inline operator ImU32() const { return ImGui::ColorConvertFloat4ToU32(Value); } + inline operator ImVec4() const { return Value; } + + // FIXME-OBSOLETE: May need to obsolete/cleanup those helpers. + inline void SetHSV(float h, float s, float v, float a = 1.0f){ ImGui::ColorConvertHSVtoRGB(h, s, v, Value.x, Value.y, Value.z); Value.w = a; } + static ImColor HSV(float h, float s, float v, float a = 1.0f) { float r, g, b; ImGui::ColorConvertHSVtoRGB(h, s, v, r, g, b); return ImColor(r, g, b, a); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Drawing API (ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData) +// Hold a series of drawing commands. The user provides a renderer for ImDrawData which essentially contains an array of ImDrawList. +//----------------------------------------------------------------------------- + +// The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking. +#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX +#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63) +#endif + +// ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h] +// NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering, +// you can poke into the draw list for that! Draw callback may be useful for example to: +// A) Change your GPU render state, +// B) render a complex 3D scene inside a UI element without an intermediate texture/render target, etc. +// The expected behavior from your rendering function is 'if (cmd.UserCallback != NULL) { cmd.UserCallback(parent_list, cmd); } else { RenderTriangles() }' +// If you want to override the signature of ImDrawCallback, you can simply use e.g. '#define ImDrawCallback MyDrawCallback' (in imconfig.h) + update rendering backend accordingly. +#ifndef ImDrawCallback +typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); +#endif + +// Special Draw callback value to request renderer backend to reset the graphics/render state. +// The renderer backend needs to handle this special value, otherwise it will crash trying to call a function at this address. +// This is useful for example if you submitted callbacks which you know have altered the render state and you want it to be restored. +// It is not done by default because they are many perfectly useful way of altering render state for imgui contents (e.g. changing shader/blending settings before an Image call). +#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-1) + +// Typically, 1 command = 1 GPU draw call (unless command is a callback) +// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, +// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. +// Backends made for <1.71. will typically ignore the VtxOffset fields. +// - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). +struct ImDrawCmd +{ + ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates + ImTextureID TextureId; // 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas. + unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. + unsigned int IdxOffset; // 4 // Start offset in index buffer. + unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. + ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. + void* UserCallbackData; // 4-8 // The draw callback code can access this. + + ImDrawCmd() { memset(this, 0, sizeof(*this)); } // Also ensure our padding fields are zeroed + + // Since 1.83: returns ImTextureID associated with this draw call. Warning: DO NOT assume this is always same as 'TextureId' (we will change this function for an upcoming feature) + inline ImTextureID GetTexID() const { return TextureId; } +}; + +// Vertex layout +#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT +struct ImDrawVert +{ + ImVec2 pos; + ImVec2 uv; + ImU32 col; +}; +#else +// You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h +// The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine. +// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared at the time you'd want to set your type up. +// NOTE: IMGUI DOESN'T CLEAR THE STRUCTURE AND DOESN'T CALL A CONSTRUCTOR SO ANY CUSTOM FIELD WILL BE UNINITIALIZED. IF YOU ADD EXTRA FIELDS (SUCH AS A 'Z' COORDINATES) YOU WILL NEED TO CLEAR THEM DURING RENDER OR TO IGNORE THEM. +IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT; +#endif + +// [Internal] For use by ImDrawList +struct ImDrawCmdHeader +{ + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; +}; + +// [Internal] For use by ImDrawListSplitter +struct ImDrawChannel +{ + ImVector _CmdBuffer; + ImVector _IdxBuffer; +}; + + +// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order. +// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call. +struct ImDrawListSplitter +{ + int _Current; // Current channel number (0) + int _Count; // Number of active channels (1+) + ImVector _Channels; // Draw channels (not resized down so _Count might be < Channels.Size) + + inline ImDrawListSplitter() { memset(this, 0, sizeof(*this)); } + inline ~ImDrawListSplitter() { ClearFreeMemory(); } + inline void Clear() { _Current = 0; _Count = 1; } // Do not clear Channels[] so our allocations are reused next frame + IMGUI_API void ClearFreeMemory(); + IMGUI_API void Split(ImDrawList* draw_list, int count); + IMGUI_API void Merge(ImDrawList* draw_list); + IMGUI_API void SetCurrentChannel(ImDrawList* draw_list, int channel_idx); +}; + +// Flags for ImDrawList functions +// (Legacy: bit 0 must always correspond to ImDrawFlags_Closed to be backward compatible with old API using a bool. Bits 1..3 must be unused) +enum ImDrawFlags_ +{ + ImDrawFlags_None = 0, + ImDrawFlags_Closed = 1 << 0, // PathStroke(), AddPolyline(): specify that shape should be closed (Important: this is always == 1 for legacy reason) + ImDrawFlags_RoundCornersTopLeft = 1 << 4, // AddRect(), AddRectFilled(), PathRect(): enable rounding top-left corner only (when rounding > 0.0f, we default to all corners). Was 0x01. + ImDrawFlags_RoundCornersTopRight = 1 << 5, // AddRect(), AddRectFilled(), PathRect(): enable rounding top-right corner only (when rounding > 0.0f, we default to all corners). Was 0x02. + ImDrawFlags_RoundCornersBottomLeft = 1 << 6, // AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-left corner only (when rounding > 0.0f, we default to all corners). Was 0x04. + ImDrawFlags_RoundCornersBottomRight = 1 << 7, // AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-right corner only (when rounding > 0.0f, we default to all corners). Wax 0x08. + ImDrawFlags_RoundCornersNone = 1 << 8, // AddRect(), AddRectFilled(), PathRect(): disable rounding on all corners (when rounding > 0.0f). This is NOT zero, NOT an implicit flag! + ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft, + ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, // Default to ALL corners if none of the _RoundCornersXX flags are specified. + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, +}; + +// Flags for ImDrawList instance. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly. +// It is however possible to temporarily alter flags between calls to ImDrawList:: functions. +enum ImDrawListFlags_ +{ + ImDrawListFlags_None = 0, + ImDrawListFlags_AntiAliasedLines = 1 << 0, // Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles) + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). + ImDrawListFlags_AntiAliasedFill = 1 << 2, // Enable anti-aliased edge around filled shapes (rounded rectangles, circles). + ImDrawListFlags_AllowVtxOffset = 1 << 3, // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. +}; + +// Draw command list +// This is the low-level list of polygons that ImGui:: functions are filling. At the end of the frame, +// all command lists are passed to your ImGuiIO::RenderDrawListFn function for rendering. +// Each dear imgui window contains its own ImDrawList. You can use ImGui::GetWindowDrawList() to +// access the current window draw list and draw custom primitives. +// You can interleave normal ImGui:: calls and adding primitives to the current draw list. +// In single viewport mode, top-left is == GetMainViewport()->Pos (generally 0,0), bottom-right is == GetMainViewport()->Pos+Size (generally io.DisplaySize). +// You are totally free to apply whatever transformation matrix to want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!) +// Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects. +struct ImDrawList +{ + // This is what you have to render + ImVector CmdBuffer; // Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. + ImVector IdxBuffer; // Index buffer. Each command consume ImDrawCmd::ElemCount of those + ImVector VtxBuffer; // Vertex buffer. + ImDrawListFlags Flags; // Flags, you may poke into these to adjust anti-aliasing settings per-primitive. + + // [Internal, used while building lists] + unsigned int _VtxCurrentIdx; // [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. + ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) + const char* _OwnerName; // Pointer to owner window's name for debugging + ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImVector _ClipRectStack; // [Internal] + ImVector _TextureIdStack; // [Internal] + ImVector _Path; // [Internal] current path building + ImDrawCmdHeader _CmdHeader; // [Internal] template of active commands. Fields should match those of CmdBuffer.back(). + ImDrawListSplitter _Splitter; // [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) + float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content + + // If you want to create ImDrawList instances, pass them ImGui::GetDrawListSharedData() or create and use your own ImDrawListSharedData (so you can use ImDrawList without ImGui) + ImDrawList(ImDrawListSharedData* shared_data) { memset(this, 0, sizeof(*this)); _Data = shared_data; } + + ~ImDrawList() { _ClearFreeMemory(); } + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) + IMGUI_API void PushClipRectFullScreen(); + IMGUI_API void PopClipRect(); + IMGUI_API void PushTextureID(ImTextureID texture_id); + IMGUI_API void PopTextureID(); + inline ImVec2 GetClipRectMin() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.x, cr.y); } + inline ImVec2 GetClipRectMax() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.z, cr.w); } + + // Primitives + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. + // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners. + // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred). + // In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12. + // In future versions we will use textures to provide cheaper and higher-quality circles. + // Use AddNgon() and AddNgonFilled() functions if you need to guarantee a specific number of sides. + IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0, float thickness = 1.0f); // a: upper-left, b: lower-right (== upper-left + size) + IMGUI_API void AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0); // a: upper-left, b: lower-right (== upper-left + size) + IMGUI_API void AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); + IMGUI_API void AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col); + IMGUI_API void AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col); + IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 0, float thickness = 1.0f); + IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 0); + IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f); + IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments); + IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL); + IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); + IMGUI_API void AddPolyline(const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness); + IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); + IMGUI_API void AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0); // Cubic Bezier (4 control points) + IMGUI_API void AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments = 0); // Quadratic Bezier (3 control points) + + // Image primitives + // - Read FAQ to understand what ImTextureID is. + // - "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle. + // - "uv_min" and "uv_max" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture. + IMGUI_API void AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min = ImVec2(0, 0), const ImVec2& uv_max = ImVec2(1, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1 = ImVec2(0, 0), const ImVec2& uv2 = ImVec2(1, 0), const ImVec2& uv3 = ImVec2(1, 1), const ImVec2& uv4 = ImVec2(0, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags = 0); + + // Stateful path API, add points then finish with PathFillConvex() or PathStroke() + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. + inline void PathClear() { _Path.Size = 0; } + inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } + inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); } + inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } + inline void PathStroke(ImU32 col, ImDrawFlags flags = 0, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; } + IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 0); + IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle + IMGUI_API void PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0); // Cubic Bezier (4 control points) + IMGUI_API void PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments = 0); // Quadratic Bezier (3 control points) + IMGUI_API void PathRect(const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0.0f, ImDrawFlags flags = 0); + + // Advanced + IMGUI_API void AddCallback(ImDrawCallback callback, void* callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. + IMGUI_API void AddDrawCmd(); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible + IMGUI_API ImDrawList* CloneOutput() const; // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer. + + // Advanced: Channels + // - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) + // - Use to minimize draw calls (e.g. if going back-and-forth between multiple clipping rectangles, prefer to append into separate channels then merge at the end) + // - FIXME-OBSOLETE: This API shouldn't have been in ImDrawList in the first place! + // Prefer using your own persistent instance of ImDrawListSplitter as you can stack them. + // Using the ImDrawList::ChannelsXXXX you cannot stack a split over another. + inline void ChannelsSplit(int count) { _Splitter.Split(this, count); } + inline void ChannelsMerge() { _Splitter.Merge(this); } + inline void ChannelsSetCurrent(int n) { _Splitter.SetCurrentChannel(this, n); } + + // Advanced: Primitives allocations + // - We render triangles (three vertices) + // - All primitives needs to be reserved via PrimReserve() beforehand. + IMGUI_API void PrimReserve(int idx_count, int vtx_count); + IMGUI_API void PrimUnreserve(int idx_count, int vtx_count); + IMGUI_API void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col); // Axis aligned rectangle (composed of two triangles) + IMGUI_API void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col); + IMGUI_API void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col); + inline void PrimWriteVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; } + inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; } + inline void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); } // Write vertex with unique index + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) + inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) +#endif + + // [Internal helpers] + IMGUI_API void _ResetForNewFrame(); + IMGUI_API void _ClearFreeMemory(); + IMGUI_API void _PopUnusedDrawCmd(); + IMGUI_API void _TryMergeDrawCmds(); + IMGUI_API void _OnChangedClipRect(); + IMGUI_API void _OnChangedTextureID(); + IMGUI_API void _OnChangedVtxOffset(); + IMGUI_API int _CalcCircleAutoSegmentCount(float radius) const; + IMGUI_API void _PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step); + IMGUI_API void _PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments); +}; + +// All draw data to render a Dear ImGui frame +// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose, +// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList) +struct ImDrawData +{ + bool Valid; // Only valid after Render() is called and before the next NewFrame() is called. + int CmdListsCount; // Number of ImDrawList* to render + int TotalIdxCount; // For convenience, sum of all ImDrawList's IdxBuffer.Size + int TotalVtxCount; // For convenience, sum of all ImDrawList's VtxBuffer.Size + ImDrawList** CmdLists; // Array of ImDrawList* to render. The ImDrawList are owned by ImGuiContext and only pointed to from here. + ImVec2 DisplayPos; // Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications) + ImVec2 DisplaySize; // Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications) + ImVec2 FramebufferScale; // Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display. + ImGuiViewport* OwnerViewport; // Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not). + + // Functions + ImDrawData() { Clear(); } + void Clear() { memset(this, 0, sizeof(*this)); } // The ImDrawList are owned by ImGuiContext! + IMGUI_API void DeIndexAllBuffers(); // Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! + IMGUI_API void ScaleClipRects(const ImVec2& fb_scale); // Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. +}; + +//----------------------------------------------------------------------------- +// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontAtlasFlags, ImFontAtlas, ImFontGlyphRangesBuilder, ImFont) +//----------------------------------------------------------------------------- + +struct ImFontConfig +{ + void* FontData; // // TTF/OTF data + int FontDataSize; // // TTF/OTF data size + bool FontDataOwnedByAtlas; // true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself). + int FontNo; // 0 // Index of font within TTF/OTF file + float SizePixels; // // Size in pixels for rasterizer (more or less maps to the resulting font height). + int OversampleH; // 3 // Rasterize at higher quality for sub-pixel positioning. Note the difference between 2 and 3 is minimal so you can reduce this to 2 to save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details. + int OversampleV; // 1 // Rasterize at higher quality for sub-pixel positioning. This is not really useful as we don't use sub-pixel positions on the Y axis. + bool PixelSnapH; // false // Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1. + ImVec2 GlyphExtraSpacing; // 0, 0 // Extra spacing (in pixels) between glyphs. Only X axis is supported for now. + ImVec2 GlyphOffset; // 0, 0 // Offset all glyphs from this font input. + const ImWchar* GlyphRanges; // NULL // Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list). THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. + float GlyphMinAdvanceX; // 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font + float GlyphMaxAdvanceX; // FLT_MAX // Maximum AdvanceX for glyphs + bool MergeMode; // false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights. + unsigned int FontBuilderFlags; // 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if unsure. + float RasterizerMultiply; // 1.0f // Brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. + ImWchar EllipsisChar; // -1 // Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used. + + // [Internal] + char Name[40]; // Name (strictly to ease debugging) + ImFont* DstFont; + + IMGUI_API ImFontConfig(); +}; + +// Hold rendering data for one glyph. +// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this) +struct ImFontGlyph +{ + unsigned int Colored : 1; // Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian as this is used in loops) + unsigned int Visible : 1; // Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering. + unsigned int Codepoint : 30; // 0x0000..0x10FFFF + float AdvanceX; // Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in) + float X0, Y0, X1, Y1; // Glyph corners + float U0, V0, U1, V1; // Texture coordinates +}; + +// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges(). +// This is essentially a tightly packed of vector of 64k booleans = 8KB storage. +struct ImFontGlyphRangesBuilder +{ + ImVector UsedChars; // Store 1-bit per Unicode code point (0=unused, 1=used) + + ImFontGlyphRangesBuilder() { Clear(); } + inline void Clear() { int size_in_bytes = (IM_UNICODE_CODEPOINT_MAX + 1) / 8; UsedChars.resize(size_in_bytes / (int)sizeof(ImU32)); memset(UsedChars.Data, 0, (size_t)size_in_bytes); } + inline bool GetBit(size_t n) const { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); return (UsedChars[off] & mask) != 0; } // Get bit n in the array + inline void SetBit(size_t n) { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; } // Set bit n in the array + inline void AddChar(ImWchar c) { SetBit(c); } // Add character + IMGUI_API void AddText(const char* text, const char* text_end = NULL); // Add string (each character of the UTF-8 string are added) + IMGUI_API void AddRanges(const ImWchar* ranges); // Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext + IMGUI_API void BuildRanges(ImVector* out_ranges); // Output new ranges +}; + +// See ImFontAtlas::AddCustomRectXXX functions. +struct ImFontAtlasCustomRect +{ + unsigned short Width, Height; // Input // Desired rectangle dimension + unsigned short X, Y; // Output // Packed position in Atlas + unsigned int GlyphID; // Input // For custom font glyphs only (ID < 0x110000) + float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance + ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset + ImFont* Font; // Input // For custom font glyphs only: target font + ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; } + bool IsPacked() const { return X != 0xFFFF; } +}; + +// Flags for ImFontAtlas build +enum ImFontAtlasFlags_ +{ + ImFontAtlasFlags_None = 0, + ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two + ImFontAtlasFlags_NoMouseCursors = 1 << 1, // Don't build software mouse cursors into the atlas (save a little texture memory) + ImFontAtlasFlags_NoBakedLines = 1 << 2, // Don't build thick line textures into the atlas (save a little texture memory, allow support for point/nearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). +}; + +// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding: +// - One or more fonts. +// - Custom graphics data needed to render the shapes needed by Dear ImGui. +// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas). +// It is the user-code responsibility to setup/build the atlas, then upload the pixel data into a texture accessible by your graphics api. +// - Optionally, call any of the AddFont*** functions. If you don't call any, the default font embedded in the code will be loaded for you. +// - Call GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data. +// - Upload the pixels data into a texture within your graphics system (see imgui_impl_xxxx.cpp examples) +// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API. +// This value will be passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID for more details. +// Common pitfalls: +// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the +// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data. +// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction. +// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed, +// - Even though many functions are suffixed with "TTF", OTF data is supported just as well. +// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future! +struct ImFontAtlas +{ + IMGUI_API ImFontAtlas(); + IMGUI_API ~ImFontAtlas(); + IMGUI_API ImFont* AddFont(const ImFontConfig* font_cfg); + IMGUI_API ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL); + IMGUI_API ImFont* AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); + IMGUI_API ImFont* AddFontFromMemoryTTF(void* font_data, int font_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. + IMGUI_API ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. + IMGUI_API ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. + IMGUI_API void ClearInputData(); // Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. + IMGUI_API void ClearTexData(); // Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. + IMGUI_API void ClearFonts(); // Clear output font data (glyphs storage, UV coordinates). + IMGUI_API void Clear(); // Clear all input and output. + + // Build atlas, retrieve pixel data. + // User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID(). + // The pitch is always = Width * BytesPerPixels (1 or 4) + // Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into + // the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste. + IMGUI_API bool Build(); // Build pixels data. This is called automatically for you by the GetTexData*** functions. + IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 1 byte per-pixel + IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 4 bytes-per-pixel + bool IsBuilt() const { return Fonts.Size > 0 && TexReady; } // Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... + void SetTexID(ImTextureID id) { TexID = id; } + + //------------------------------------------- + // Glyph Ranges + //------------------------------------------- + + // Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list) + // NB: Make sure that your string are UTF-8 and NOT in your local code page. In C++11, you can create UTF-8 string literal using the u8"Hello world" syntax. See FAQ for details. + // NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data. + IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin + IMGUI_API const ImWchar* GetGlyphRangesGreek(); // Default + Greek and Coptic + IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters + IMGUI_API const ImWchar* GetGlyphRangesJapanese(); // Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseSimplifiedCommon();// Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese + IMGUI_API const ImWchar* GetGlyphRangesCyrillic(); // Default + about 400 Cyrillic characters + IMGUI_API const ImWchar* GetGlyphRangesThai(); // Default + Thai characters + IMGUI_API const ImWchar* GetGlyphRangesVietnamese(); // Default + Vietnamese characters + + //------------------------------------------- + // [BETA] Custom Rectangles/Glyphs API + //------------------------------------------- + + // You can request arbitrary rectangles to be packed into the atlas, for your own purposes. + // - After calling Build(), you can query the rectangle position and render your pixels. + // - If you render colored output, set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of prefered texture format. + // - You can also request your rectangles to be mapped as font glyph (given a font + Unicode point), + // so you can render e.g. custom colorful icons and use them as regular glyphs. + // - Read docs/FONTS.md for more details about using colorful icons. + // - Note: this API may be redesigned later in order to support multi-monitor varying DPI settings. + IMGUI_API int AddCustomRectRegular(int width, int height); + IMGUI_API int AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0, 0)); + ImFontAtlasCustomRect* GetCustomRectByIndex(int index) { IM_ASSERT(index >= 0); return &CustomRects[index]; } + + // [Internal] + IMGUI_API void CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const; + IMGUI_API bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]); + + //------------------------------------------- + // Members + //------------------------------------------- + + ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) + ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure. + int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height. + int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false). + bool Locked; // Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert. + + // [Internal] + // NB: Access texture data via GetTexData*() calls! Which will setup a default font for you. + bool TexReady; // Set when texture was built matching current font input + bool TexPixelsUseColors; // Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help backend select a format. + unsigned char* TexPixelsAlpha8; // 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight + unsigned int* TexPixelsRGBA32; // 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 + int TexWidth; // Texture width calculated during Build(). + int TexHeight; // Texture height calculated during Build(). + ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight) + ImVec2 TexUvWhitePixel; // Texture coordinates to a white pixel + ImVector Fonts; // Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(), use ImGui::PushFont()/PopFont() to change the current font. + ImVector CustomRects; // Rectangles for packing custom texture data into the atlas. + ImVector ConfigData; // Configuration data + ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]; // UVs for baked anti-aliased lines + + // [Internal] Font builder + const ImFontBuilderIO* FontBuilderIO; // Opaque interface to a font builder (default to stb_truetype, can be changed to use FreeType by defining IMGUI_ENABLE_FREETYPE). + unsigned int FontBuilderFlags; // Shared flags (for all fonts) for custom font builder. THIS IS BUILD IMPLEMENTATION DEPENDENT. Per-font override is also available in ImFontConfig. + + // [Internal] Packing data + int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors + int PackIdLines; // Custom texture rectangle ID for baked anti-aliased lines + + // [Obsolete] + //typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ + //typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ +}; + +// Font runtime data and rendering +// ImFontAtlas automatically loads a default embedded font for you when you call GetTexDataAsAlpha8() or GetTexDataAsRGBA32(). +struct ImFont +{ + // Members: Hot ~20/24 bytes (for CalcTextSize) + ImVector IndexAdvanceX; // 12-16 // out // // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this this info, and are often bottleneck in large UI). + float FallbackAdvanceX; // 4 // out // = FallbackGlyph->AdvanceX + float FontSize; // 4 // in // // Height of characters/line, set during loading (don't change after loading) + + // Members: Hot ~28/40 bytes (for CalcTextSize + render loop) + ImVector IndexLookup; // 12-16 // out // // Sparse. Index glyphs by Unicode code-point. + ImVector Glyphs; // 12-16 // out // // All glyphs. + const ImFontGlyph* FallbackGlyph; // 4-8 // out // = FindGlyph(FontFallbackChar) + + // Members: Cold ~32/40 bytes + ImFontAtlas* ContainerAtlas; // 4-8 // out // // What we has been loaded into + const ImFontConfig* ConfigData; // 4-8 // in // // Pointer within ContainerAtlas->ConfigData + short ConfigDataCount; // 2 // in // ~ 1 // Number of ImFontConfig involved in creating this font. Bigger than 1 when merging multiple font sources into one ImFont. + ImWchar FallbackChar; // 2 // out // = FFFD/'?' // Character used if a glyph isn't found. + ImWchar EllipsisChar; // 2 // out // = '...' // Character used for ellipsis rendering. + ImWchar DotChar; // 2 // out // = '.' // Character used for ellipsis rendering (if a single '...' character isn't found) + bool DirtyLookupTables; // 1 // out // + float Scale; // 4 // in // = 1.f // Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale() + float Ascent, Descent; // 4+4 // out // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] + int MetricsTotalSurface;// 4 // out // // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs) + ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8]; // 2 bytes if ImWchar=ImWchar16, 34 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints. + + // Methods + IMGUI_API ImFont(); + IMGUI_API ~ImFont(); + IMGUI_API const ImFontGlyph*FindGlyph(ImWchar c) const; + IMGUI_API const ImFontGlyph*FindGlyphNoFallback(ImWchar c) const; + float GetCharAdvance(ImWchar c) const { return ((int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; } + bool IsLoaded() const { return ContainerAtlas != NULL; } + const char* GetDebugName() const { return ConfigData ? ConfigData->Name : ""; } + + // 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable. + // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. + IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 + IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; + IMGUI_API void RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const; + IMGUI_API void RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; + + // [Internal] Don't use! + IMGUI_API void BuildLookupTable(); + IMGUI_API void ClearOutputData(); + IMGUI_API void GrowIndex(int new_size); + IMGUI_API void AddGlyph(const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); + IMGUI_API void AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst = true); // Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built. + IMGUI_API void SetGlyphVisible(ImWchar c, bool visible); + IMGUI_API bool IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Viewports +//----------------------------------------------------------------------------- + +// Flags stored in ImGuiViewport::Flags, giving indications to the platform backends. +enum ImGuiViewportFlags_ +{ + ImGuiViewportFlags_None = 0, + ImGuiViewportFlags_IsPlatformWindow = 1 << 0, // Represent a Platform Window + ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, // Represent a Platform Monitor (unused yet) + ImGuiViewportFlags_OwnedByApp = 1 << 2, // Platform Window: is created/managed by the application (rather than a dear imgui backend) + ImGuiViewportFlags_NoDecoration = 1 << 3, // Platform Window: Disable platform decorations: title bar, borders, etc. (generally set all windows, but if ImGuiConfigFlags_ViewportsDecoration is set we only set this on popups/tooltips) + ImGuiViewportFlags_NoTaskBarIcon = 1 << 4, // Platform Window: Disable platform task bar icon (generally set on popups/tooltips, or all windows if ImGuiConfigFlags_ViewportsNoTaskBarIcon is set) + ImGuiViewportFlags_NoFocusOnAppearing = 1 << 5, // Platform Window: Don't take focus when created. + ImGuiViewportFlags_NoFocusOnClick = 1 << 6, // Platform Window: Don't take focus when clicked on. + ImGuiViewportFlags_NoInputs = 1 << 7, // Platform Window: Make mouse pass through so we can drag this window while peaking behind it. + ImGuiViewportFlags_NoRendererClear = 1 << 8, // Platform Window: Renderer doesn't need to clear the framebuffer ahead (because we will fill it entirely). + ImGuiViewportFlags_TopMost = 1 << 9, // Platform Window: Display on top (for tooltips only). + ImGuiViewportFlags_Minimized = 1 << 10, // Platform Window: Window is minimized, can skip render. When minimized we tend to avoid using the viewport pos/size for clipping window or testing if they are contained in the viewport. + ImGuiViewportFlags_NoAutoMerge = 1 << 11, // Platform Window: Avoid merging this window into another host window. This can only be set via ImGuiWindowClass viewport flags override (because we need to now ahead if we are going to create a viewport in the first place!). + ImGuiViewportFlags_CanHostOtherWindows = 1 << 12, // Main viewport: can host multiple imgui windows (secondary viewports are associated to a single window). +}; + +// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. +// - With multi-viewport enabled, we extend this concept to have multiple active viewports. +// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. +// - About Main Area vs Work Area: +// - Main Area = entire viewport. +// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor). +// - Windows are generally trying to stay within the Work Area of their host viewport. +struct ImGuiViewport +{ + ImGuiID ID; // Unique identifier for the viewport + ImGuiViewportFlags Flags; // See ImGuiViewportFlags_ + ImVec2 Pos; // Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates) + ImVec2 Size; // Main Area: Size of the viewport. + ImVec2 WorkPos; // Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos) + ImVec2 WorkSize; // Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size) + float DpiScale; // 1.0f = 96 DPI = No extra scale. + ImGuiID ParentViewportId; // (Advanced) 0: no parent. Instruct the platform backend to setup a parent/child relationship between platform windows. + ImDrawData* DrawData; // The ImDrawData corresponding to this viewport. Valid after Render() and until the next call to NewFrame(). + + // Platform/Backend Dependent Data + // Our design separate the Renderer and Platform backends to facilitate combining default backends with each others. + // When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled + // by the same system and you may not need to use all the UserData/Handle fields. + // The library never uses those fields, they are merely storage to facilitate backend implementation. + void* RendererUserData; // void* to hold custom data structure for the renderer (e.g. swap chain, framebuffers etc.). generally set by your Renderer_CreateWindow function. + void* PlatformUserData; // void* to hold custom data structure for the OS / platform (e.g. windowing info, render context). generally set by your Platform_CreateWindow function. + void* PlatformHandle; // void* for FindViewportByPlatformHandle(). (e.g. suggested to use natural platform handle such as HWND, GLFWWindow*, SDL_Window*) + void* PlatformHandleRaw; // void* to hold lower-level, platform-native window handle (under Win32 this is expected to be a HWND, unused for other platforms), when using an abstraction layer like GLFW or SDL (where PlatformHandle would be a SDL_Window*) + bool PlatformWindowCreated; // Platform window has been created (Platform_CreateWindow() has been called). This is false during the first frame where a viewport is being created. + bool PlatformRequestMove; // Platform window requested move (e.g. window was moved by the OS / host window manager, authoritative position will be OS window position) + bool PlatformRequestResize; // Platform window requested resize (e.g. window was resized by the OS / host window manager, authoritative size will be OS window size) + bool PlatformRequestClose; // Platform window requested closure (e.g. window was moved by the OS / host window manager, e.g. pressing ALT-F4) + + ImGuiViewport() { memset(this, 0, sizeof(*this)); } + ~ImGuiViewport() { IM_ASSERT(PlatformUserData == NULL && RendererUserData == NULL); } + + // Helpers + ImVec2 GetCenter() const { return ImVec2(Pos.x + Size.x * 0.5f, Pos.y + Size.y * 0.5f); } + ImVec2 GetWorkCenter() const { return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Platform Dependent Interfaces (for e.g. multi-viewport support) +//----------------------------------------------------------------------------- +// [BETA] (Optional) This is completely optional, for advanced users! +// If you are new to Dear ImGui and trying to integrate it into your engine, you can probably ignore this for now. +// +// This feature allows you to seamlessly drag Dear ImGui windows outside of your application viewport. +// This is achieved by creating new Platform/OS windows on the fly, and rendering into them. +// Dear ImGui manages the viewport structures, and the backend create and maintain one Platform/OS window for each of those viewports. +// +// See Glossary https://github.com/ocornut/imgui/wiki/Glossary for details about some of the terminology. +// See Thread https://github.com/ocornut/imgui/issues/1542 for gifs, news and questions about this evolving feature. +// +// About the coordinates system: +// - When multi-viewports are enabled, all Dear ImGui coordinates become absolute coordinates (same as OS coordinates!) +// - So e.g. ImGui::SetNextWindowPos(ImVec2(0,0)) will position a window relative to your primary monitor! +// - If you want to position windows relative to your main application viewport, use ImGui::GetMainViewport()->Pos as a base position. +// +// Steps to use multi-viewports in your application, when using a default backend from the examples/ folder: +// - Application: Enable feature with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. +// - Backend: The backend initialization will setup all necessary ImGuiPlatformIO's functions and update monitors info every frame. +// - Application: In your main loop, call ImGui::UpdatePlatformWindows(), ImGui::RenderPlatformWindowsDefault() after EndFrame() or Render(). +// - Application: Fix absolute coordinates used in ImGui::SetWindowPos() or ImGui::SetNextWindowPos() calls. +// +// Steps to use multi-viewports in your application, when using a custom backend: +// - Important: THIS IS NOT EASY TO DO and comes with many subtleties not described here! +// It's also an experimental feature, so some of the requirements may evolve. +// Consider using default backends if you can. Either way, carefully follow and refer to examples/ backends for details. +// - Application: Enable feature with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. +// - Backend: Hook ImGuiPlatformIO's Platform_* and Renderer_* callbacks (see below). +// Set 'io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports' and 'io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports'. +// Update ImGuiPlatformIO's Monitors list every frame. +// Update MousePos every frame, in absolute coordinates. +// - Application: In your main loop, call ImGui::UpdatePlatformWindows(), ImGui::RenderPlatformWindowsDefault() after EndFrame() or Render(). +// You may skip calling RenderPlatformWindowsDefault() if its API is not convenient for your needs. Read comments below. +// - Application: Fix absolute coordinates used in ImGui::SetWindowPos() or ImGui::SetNextWindowPos() calls. +// +// About ImGui::RenderPlatformWindowsDefault(): +// - This function is a mostly a _helper_ for the common-most cases, and to facilitate using default backends. +// - You can check its simple source code to understand what it does. +// It basically iterates secondary viewports and call 4 functions that are setup in ImGuiPlatformIO, if available: +// Platform_RenderWindow(), Renderer_RenderWindow(), Platform_SwapBuffers(), Renderer_SwapBuffers() +// Those functions pointers exists only for the benefit of RenderPlatformWindowsDefault(). +// - If you have very specific rendering needs (e.g. flipping multiple swap-chain simultaneously, unusual sync/threading issues, etc.), +// you may be tempted to ignore RenderPlatformWindowsDefault() and write customized code to perform your renderingg. +// You may decide to setup the platform_io's *RenderWindow and *SwapBuffers pointers and call your functions through those pointers, +// or you may decide to never setup those pointers and call your code directly. They are a convenience, not an obligatory interface. +//----------------------------------------------------------------------------- + +// (Optional) Access via ImGui::GetPlatformIO() +struct ImGuiPlatformIO +{ + //------------------------------------------------------------------ + // Input - Backend interface/functions + Monitor List + //------------------------------------------------------------------ + + // (Optional) Platform functions (e.g. Win32, GLFW, SDL2) + // For reference, the second column shows which function are generally calling the Platform Functions: + // N = ImGui::NewFrame() ~ beginning of the dear imgui frame: read info from platform/OS windows (latest size/position) + // F = ImGui::Begin(), ImGui::EndFrame() ~ during the dear imgui frame + // U = ImGui::UpdatePlatformWindows() ~ after the dear imgui frame: create and update all platform/OS windows + // R = ImGui::RenderPlatformWindowsDefault() ~ render + // D = ImGui::DestroyPlatformWindows() ~ shutdown + // The general idea is that NewFrame() we will read the current Platform/OS state, and UpdatePlatformWindows() will write to it. + // + // The functions are designed so we can mix and match 2 imgui_impl_xxxx files, one for the Platform (~window/input handling), one for Renderer. + // Custom engine backends will often provide both Platform and Renderer interfaces and so may not need to use all functions. + // Platform functions are typically called before their Renderer counterpart, apart from Destroy which are called the other way. + + // Platform function --------------------------------------------------- Called by ----- + void (*Platform_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create a new platform window for the given viewport + void (*Platform_DestroyWindow)(ImGuiViewport* vp); // N . U . D // + void (*Platform_ShowWindow)(ImGuiViewport* vp); // . . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on them before showing the window + void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos); // . . U . . // Set platform window position (given the upper-left corner of client area) + ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp); // N . . . . // + void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.) + ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp); // N . . . . // Get platform window client area size + void (*Platform_SetWindowFocus)(ImGuiViewport* vp); // N . . . . // Move window to front and set input focus + bool (*Platform_GetWindowFocus)(ImGuiViewport* vp); // . . U . . // + bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp); // N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set size and contents will be culled more easily + void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str); // . . U . . // Set platform window title (given an UTF-8 string) + void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha); // . . U . . // (Optional) Setup global transparency (not per-pixel transparency) + void (*Platform_UpdateWindow)(ImGuiViewport* vp); // . . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend from doing general book-keeping every frame. + void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Main rendering (platform side! This is often unused, or just setting a "current" context for OpenGL bindings). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); // N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96 DPI. + void (*Platform_OnChangedViewport)(ImGuiViewport* vp); // . F . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Called during Begin() every time the viewport we are outputting into changes, so backend has a chance to swap fonts to adjust style. + int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); // (Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie them both). + + // (Optional) Renderer functions (e.g. DirectX, OpenGL, Vulkan) + void (*Renderer_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow) + void (*Renderer_DestroyWindow)(ImGuiViewport* vp); // N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow) + void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize) + void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + + // (Optional) Monitor list + // - Updated by: app/backend. Update every frame to dynamically support changing monitor or DPI configuration. + // - Used by: dear imgui to query DPI info, clamp popups/tooltips within same monitor and not have them straddle monitors. + ImVector Monitors; + + //------------------------------------------------------------------ + // Output - List of viewports to render into platform windows + //------------------------------------------------------------------ + + // Viewports list (the list is updated by calling ImGui::EndFrame or ImGui::Render) + // (in the future we will attempt to organize this feature to remove the need for a "main viewport") + ImVector Viewports; // Main viewports, followed by all secondary viewports. + ImGuiPlatformIO() { memset(this, 0, sizeof(*this)); } // Zero clear +}; + +// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI. +// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors. +struct ImGuiPlatformMonitor +{ + ImVec2 MainPos, MainSize; // Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right) + ImVec2 WorkPos, WorkSize; // Coordinates without task bars / side bars / menu bars. Used to avoid positioning popups/tooltips inside this region. If you don't have this info, please copy the value for MainPos/MainSize. + float DpiScale; // 1.0f = 96 DPI + ImGuiPlatformMonitor() { MainPos = MainSize = WorkPos = WorkSize = ImVec2(0, 0); DpiScale = 1.0f; } +}; + +// (Optional) Support for IME (Input Method Editor) via the io.SetPlatformImeDataFn() function. +struct ImGuiPlatformImeData +{ + bool WantVisible; // A widget wants the IME to be visible + ImVec2 InputPos; // Position of the input cursor + float InputLineHeight; // Line height + + ImGuiPlatformImeData() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Obsolete functions and types +// (Will be removed! Read 'API BREAKING CHANGES' section in imgui.cpp for details) +// Please keep your copy of dear imgui up to date! Occasionally set '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in imconfig.h to stay ahead. +//----------------------------------------------------------------------------- + +namespace ImGui +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key); // map ImGuiKey_* values into legacy native key index. == io.KeyMap[key] +#else + static inline ImGuiKey GetKeyIndex(ImGuiKey key) { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END && "ImGuiKey and native_index was merged together and native_index is disabled by IMGUI_DISABLE_OBSOLETE_KEYIO. Please switch to ImGuiKey."); return key; } +#endif +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +namespace ImGui +{ + // OBSOLETED in 1.89 (from August 2022) + IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); // Use new ImageButton() signature (explicit item id, regular FramePadding) + // OBSOLETED in 1.88 (from May 2022) + static inline void CaptureKeyboardFromApp(bool want_capture_keyboard = true) { SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } // Renamed as name was misleading + removed default value. + static inline void CaptureMouseFromApp(bool want_capture_mouse = true) { SetNextFrameWantCaptureMouse(want_capture_mouse); } // Renamed as name was misleading + removed default value. + // OBSOLETED in 1.86 (from November 2021) + IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // Calculate coarse clipping for large list of evenly sized items. Prefer using ImGuiListClipper. + // OBSOLETED in 1.85 (from August 2021) + static inline float GetWindowContentRegionWidth() { return GetWindowContentRegionMax().x - GetWindowContentRegionMin().x; } + // OBSOLETED in 1.81 (from February 2021) + IMGUI_API bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1); // Helper to calculate size from items_count and height_in_items + static inline bool ListBoxHeader(const char* label, const ImVec2& size = ImVec2(0, 0)) { return BeginListBox(label, size); } + static inline void ListBoxFooter() { EndListBox(); } + + // Some of the older obsolete names along with their replacement (commented out so they are not reported in IDE) + //-- OBSOLETED in 1.79 (from August 2020) + //static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! + //-- OBSOLETED in 1.78 (from June 2020): Old drag/sliders functions that took a 'float power > 1.0f' argument instead of ImGuiSliderFlags_Logarithmic. See github.com/ocornut/imgui/issues/3361 for details. + //IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power = 1.0f) // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool DragScalarN(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, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //-- OBSOLETED in 1.77 and before + //static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } // OBSOLETED in 1.77 (from June 2020) + //static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } // OBSOLETED in 1.72 (from July 2019) + //static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } // OBSOLETED in 1.71 (from June 2019) + //static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } // OBSOLETED in 1.70 (from May 2019) + //static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } // OBSOLETED in 1.69 (from Mar 2019) + //static inline void SetScrollHere(float ratio = 0.5f) { SetScrollHereY(ratio); } // OBSOLETED in 1.66 (from Nov 2018) + //static inline bool IsItemDeactivatedAfterChange() { return IsItemDeactivatedAfterEdit(); } // OBSOLETED in 1.63 (from Aug 2018) + //-- OBSOLETED in 1.60 and before + //static inline bool IsAnyWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_AnyWindow); } // OBSOLETED in 1.60 (from Apr 2018) + //static inline bool IsAnyWindowHovered() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.60 (between Dec 2017 and Apr 2018) + //static inline void ShowTestWindow() { return ShowDemoWindow(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootWindow); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowOrAnyChildFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline float GetItemsLineHeightWithSpacing() { return GetFrameHeightWithSpacing(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //IMGUI_API bool Begin(char* name, bool* p_open, ImVec2 size_first_use, float bg_alpha = -1.0f, ImGuiWindowFlags flags=0); // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017): Equivalent of using SetNextWindowSize(size, ImGuiCond_FirstUseEver) and SetNextWindowBgAlpha(). + //static inline bool IsRootWindowOrAnyChildHovered() { return IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void AlignFirstTextHeightToWidgets() { AlignTextToFramePadding(); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void SetNextWindowPosCenter(ImGuiCond c=0) { SetNextWindowPos(GetMainViewport()->GetCenter(), c, ImVec2(0.5f,0.5f)); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline bool IsItemHoveredRect() { return IsItemHovered(ImGuiHoveredFlags_RectOnly); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsPosHoveringAnyWindow(const ImVec2&) { IM_ASSERT(0); return false; } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017): This was misleading and partly broken. You probably want to use the io.WantCaptureMouse flag instead. + //static inline bool IsMouseHoveringAnyWindow() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsMouseHoveringWindow() { return IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //-- OBSOLETED in 1.50 and before + //static inline bool CollapsingHeader(char* label, const char* str_id, bool framed = true, bool default_open = false) { return CollapsingHeader(label, (default_open ? (1 << 5) : 0)); } // OBSOLETED in 1.49 + //static inline ImFont*GetWindowFont() { return GetFont(); } // OBSOLETED in 1.48 + //static inline float GetWindowFontSize() { return GetFontSize(); } // OBSOLETED in 1.48 + //static inline void SetScrollPosHere() { SetScrollHere(); } // OBSOLETED in 1.42 +} + +// OBSOLETED in 1.82 (from Mars 2021): flags for AddRect(), AddRectFilled(), AddImageRounded(), PathRect() +typedef ImDrawFlags ImDrawCornerFlags; +enum ImDrawCornerFlags_ +{ + ImDrawCornerFlags_None = ImDrawFlags_RoundCornersNone, // Was == 0 prior to 1.82, this is now == ImDrawFlags_RoundCornersNone which is != 0 and not implicit + ImDrawCornerFlags_TopLeft = ImDrawFlags_RoundCornersTopLeft, // Was == 0x01 (1 << 0) prior to 1.82. Order matches ImDrawFlags_NoRoundCorner* flag (we exploit this internally). + ImDrawCornerFlags_TopRight = ImDrawFlags_RoundCornersTopRight, // Was == 0x02 (1 << 1) prior to 1.82. + ImDrawCornerFlags_BotLeft = ImDrawFlags_RoundCornersBottomLeft, // Was == 0x04 (1 << 2) prior to 1.82. + ImDrawCornerFlags_BotRight = ImDrawFlags_RoundCornersBottomRight, // Was == 0x08 (1 << 3) prior to 1.82. + ImDrawCornerFlags_All = ImDrawFlags_RoundCornersAll, // Was == 0x0F prior to 1.82 + ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight, + ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight, + ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, + ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight, +}; + +// RENAMED and MERGED both ImGuiKey_ModXXX and ImGuiModFlags_XXX into ImGuiMod_XXX (from September 2022) +// RENAMED ImGuiKeyModFlags -> ImGuiModFlags in 1.88 (from April 2022). Exceptionally commented out ahead of obscolescence schedule to reduce confusion and because they were not meant to be used in the first place. +typedef ImGuiKeyChord ImGuiModFlags; // == int. We generally use ImGuiKeyChord to mean "a ImGuiKey or-ed with any number of ImGuiMod_XXX value", but you may store only mods in there. +enum ImGuiModFlags_ { ImGuiModFlags_None = 0, ImGuiModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiModFlags_Shift = ImGuiMod_Shift, ImGuiModFlags_Alt = ImGuiMod_Alt, ImGuiModFlags_Super = ImGuiMod_Super }; +//typedef ImGuiKeyChord ImGuiKeyModFlags; // == int +//enum ImGuiKeyModFlags_ { ImGuiKeyModFlags_None = 0, ImGuiKeyModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiKeyModFlags_Shift = ImGuiMod_Shift, ImGuiKeyModFlags_Alt = ImGuiMod_Alt, ImGuiKeyModFlags_Super = ImGuiMod_Super }; + +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +// RENAMED IMGUI_DISABLE_METRICS_WINDOW > IMGUI_DISABLE_DEBUG_TOOLS in 1.88 (from June 2022) +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && !defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_DEBUG_TOOLS) +#define IMGUI_DISABLE_DEBUG_TOOLS +#endif +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) +#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name. +#endif + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +// Include imgui_user.h at the end of imgui.h (convenient for user to only explicitly include vanilla imgui.h) +#ifdef IMGUI_INCLUDE_IMGUI_USER_H +#include "imgui_user.h" +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_demo.cpp b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_demo.cpp new file mode 100644 index 000000000..45308def6 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_demo.cpp @@ -0,0 +1,8354 @@ +// dear imgui, v1.89.1 +// (demo code) + +// Help: +// - Read FAQ at http://dearimgui.org/faq +// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// Read imgui.cpp for more details, documentation and comments. +// Get the latest version at https://github.com/ocornut/imgui + +// ------------------------------------------------- +// PLEASE DO NOT REMOVE THIS FILE FROM YOUR PROJECT! +// ------------------------------------------------- +// Message to the person tempted to delete this file when integrating Dear ImGui into their codebase: +// Think again! It is the most useful reference code that you and other coders will want to refer to and call. +// Have the ImGui::ShowDemoWindow() function wired in an always-available debug menu of your game/app! +// Also include Metrics! ItemPicker! DebugLog! and other debug features. +// Removing this file from your project is hindering access to documentation for everyone in your team, +// likely leading you to poorer usage of the library. +// Everything in this file will be stripped out by the linker if you don't call ImGui::ShowDemoWindow(). +// If you want to link core Dear ImGui in your shipped builds but want a thorough guarantee that the demo will not be +// linked, you can setup your imconfig.h with #define IMGUI_DISABLE_DEMO_WINDOWS and those functions will be empty. +// In another situation, whenever you have Dear ImGui available you probably want this to be available for reference. +// Thank you, +// -Your beloved friend, imgui_demo.cpp (which you won't delete) + +// Message to beginner C/C++ programmers about the meaning of the 'static' keyword: +// In this demo code, we frequently use 'static' variables inside functions. A static variable persists across calls, +// so it is essentially like a global variable but declared inside the scope of the function. We do this as a way to +// gather code and data in the same place, to make the demo source code faster to read, faster to write, and smaller +// in size. It also happens to be a convenient way of storing simple UI related information as long as your function +// doesn't need to be reentrant or used in multiple threads. This might be a pattern you will want to use in your code, +// but most of the real data you would be editing is likely going to be stored outside your functions. + +// The Demo code in this file is designed to be easy to copy-and-paste into your application! +// Because of this: +// - We never omit the ImGui:: prefix when calling functions, even though most code here is in the same namespace. +// - We try to declare static variables in the local scope, as close as possible to the code using them. +// - We never use any of the helpers/facilities used internally by Dear ImGui, unless available in the public API. +// - We never use maths operators on ImVec2/ImVec4. For our other sources files we use them, and they are provided +// by imgui_internal.h using the IMGUI_DEFINE_MATH_OPERATORS define. For your own sources file they are optional +// and require you either enable those, either provide your own via IM_VEC2_CLASS_EXTRA in imconfig.h. +// Because we can't assume anything about your support of maths operators, we cannot use them in imgui_demo.cpp. + +// Navigating this file: +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. + +/* + +Index of this file: + +// [SECTION] Forward Declarations +// [SECTION] Helpers +// [SECTION] Demo Window / ShowDemoWindow() +// - ShowDemoWindow() +// - sub section: ShowDemoWindowWidgets() +// - sub section: ShowDemoWindowLayout() +// - sub section: ShowDemoWindowPopups() +// - sub section: ShowDemoWindowTables() +// - sub section: ShowDemoWindowInputs() +// [SECTION] About Window / ShowAboutWindow() +// [SECTION] Style Editor / ShowStyleEditor() +// [SECTION] User Guide / ShowUserGuide() +// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() +// [SECTION] Example App: Debug Console / ShowExampleAppConsole() +// [SECTION] Example App: Debug Log / ShowExampleAppLog() +// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() +// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() +// [SECTION] Example App: Long Text / ShowExampleAppLongText() +// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() +// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() +// [SECTION] Example App: Simple overlay / ShowExampleAppSimpleOverlay() +// [SECTION] Example App: Fullscreen window / ShowExampleAppFullscreen() +// [SECTION] Example App: Manipulating window titles / ShowExampleAppWindowTitles() +// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() +// [SECTION] Example App: Docking, DockSpace / ShowExampleAppDockSpace() +// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +// System includes +#include // toupper +#include // INT_MIN, INT_MAX +#include // sqrtf, powf, cosf, sinf, floorf, ceilf +#include // vsnprintf, sscanf, printf +#include // NULL, malloc, free, atoi +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wdeprecated-declarations" // warning: 'xx' is deprecated: The POSIX name for this.. // for strdup used in demo code (so user can copy & paste the code) +#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type +#pragma clang diagnostic ignored "-Wformat-security" // warning: format string is not a string literal +#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. +#pragma clang diagnostic ignored "-Wunused-macros" // warning: macro is not used // we define snprintf/vsnprintf on Windows so they are available, but not always used. +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wformat-security" // warning: format string is not a string literal (potentially insecure) +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wmisleading-indentation" // [__GNUC__ >= 6] warning: this 'if' clause does not guard this statement // GCC 6.0+ only. See #883 on GitHub. +#endif + +// Play it nice with Windows users (Update: May 2018, Notepad now supports Unix-style carriage returns!) +#ifdef _WIN32 +#define IM_NEWLINE "\r\n" +#else +#define IM_NEWLINE "\n" +#endif + +// Helpers +#if defined(_MSC_VER) && !defined(snprintf) +#define snprintf _snprintf +#endif +#if defined(_MSC_VER) && !defined(vsnprintf) +#define vsnprintf _vsnprintf +#endif + +// Format specifiers, printing 64-bit hasn't been decently standardized... +// In a real application you should be using PRId64 and PRIu64 from (non-windows) and on Windows define them yourself. +#ifdef _MSC_VER +#define IM_PRId64 "I64d" +#define IM_PRIu64 "I64u" +#else +#define IM_PRId64 "lld" +#define IM_PRIu64 "llu" +#endif + +// Helpers macros +// We normally try to not use many helpers in imgui_demo.cpp in order to make code easier to copy and paste, +// but making an exception here as those are largely simplifying code... +// In other imgui sources we can use nicer internal functions from imgui_internal.h (ImMin/ImMax) but not in the demo. +#define IM_MIN(A, B) (((A) < (B)) ? (A) : (B)) +#define IM_MAX(A, B) (((A) >= (B)) ? (A) : (B)) +#define IM_CLAMP(V, MN, MX) ((V) < (MN) ? (MN) : (V) > (MX) ? (MX) : (V)) + +// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall +#ifndef IMGUI_CDECL +#ifdef _MSC_VER +#define IMGUI_CDECL __cdecl +#else +#define IMGUI_CDECL +#endif +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward Declarations, Helpers +//----------------------------------------------------------------------------- + +#if !defined(IMGUI_DISABLE_DEMO_WINDOWS) + +// Forward Declarations +static void ShowExampleAppDockSpace(bool* p_open); +static void ShowExampleAppDocuments(bool* p_open); +static void ShowExampleAppMainMenuBar(); +static void ShowExampleAppConsole(bool* p_open); +static void ShowExampleAppLog(bool* p_open); +static void ShowExampleAppLayout(bool* p_open); +static void ShowExampleAppPropertyEditor(bool* p_open); +static void ShowExampleAppLongText(bool* p_open); +static void ShowExampleAppAutoResize(bool* p_open); +static void ShowExampleAppConstrainedResize(bool* p_open); +static void ShowExampleAppSimpleOverlay(bool* p_open); +static void ShowExampleAppFullscreen(bool* p_open); +static void ShowExampleAppWindowTitles(bool* p_open); +static void ShowExampleAppCustomRendering(bool* p_open); +static void ShowExampleMenuFile(); + +// We split the contents of the big ShowDemoWindow() function into smaller functions +// (because the link time of very large functions grow non-linearly) +static void ShowDemoWindowWidgets(); +static void ShowDemoWindowLayout(); +static void ShowDemoWindowPopups(); +static void ShowDemoWindowTables(); +static void ShowDemoWindowColumns(); +static void ShowDemoWindowInputs(); + +//----------------------------------------------------------------------------- +// [SECTION] Helpers +//----------------------------------------------------------------------------- + +// Helper to display a little (?) mark which shows a tooltip when hovered. +// In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md) +static void HelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +static void ShowDockingDisabledMessage() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui::Text("ERROR: Docking is not enabled! See Demo > Configuration."); + ImGui::Text("Set io.ConfigFlags |= ImGuiConfigFlags_DockingEnable in your code, or "); + ImGui::SameLine(0.0f, 0.0f); + if (ImGui::SmallButton("click here")) + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; +} + +// Helper to wire demo markers located in code to an interactive browser +typedef void (*ImGuiDemoMarkerCallback)(const char* file, int line, const char* section, void* user_data); +extern ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback; +extern void* GImGuiDemoMarkerCallbackUserData; +ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback = NULL; +void* GImGuiDemoMarkerCallbackUserData = NULL; +#define IMGUI_DEMO_MARKER(section) do { if (GImGuiDemoMarkerCallback != NULL) GImGuiDemoMarkerCallback(__FILE__, __LINE__, section, GImGuiDemoMarkerCallbackUserData); } while (0) + +//----------------------------------------------------------------------------- +// [SECTION] Demo Window / ShowDemoWindow() +//----------------------------------------------------------------------------- +// - ShowDemoWindow() +// - ShowDemoWindowWidgets() +// - ShowDemoWindowLayout() +// - ShowDemoWindowPopups() +// - ShowDemoWindowTables() +// - ShowDemoWindowColumns() +// - ShowDemoWindowInputs() +//----------------------------------------------------------------------------- + +// Demonstrate most Dear ImGui features (this is big function!) +// You may execute this function to experiment with the UI and understand what it does. +// You may then search for keywords in the code when you are interested by a specific feature. +void ImGui::ShowDemoWindow(bool* p_open) +{ + // Exceptionally add an extra assert here for people confused about initial Dear ImGui setup + // Most functions would normally just crash if the context is missing. + IM_ASSERT(ImGui::GetCurrentContext() != NULL && "Missing dear imgui context. Refer to examples app!"); + + // Examples Apps (accessible from the "Examples" menu) + static bool show_app_main_menu_bar = false; + static bool show_app_dockspace = false; + static bool show_app_documents = false; + static bool show_app_console = false; + static bool show_app_log = false; + static bool show_app_layout = false; + static bool show_app_property_editor = false; + static bool show_app_long_text = false; + static bool show_app_auto_resize = false; + static bool show_app_constrained_resize = false; + static bool show_app_simple_overlay = false; + static bool show_app_fullscreen = false; + static bool show_app_window_titles = false; + static bool show_app_custom_rendering = false; + + if (show_app_main_menu_bar) ShowExampleAppMainMenuBar(); + if (show_app_dockspace) ShowExampleAppDockSpace(&show_app_dockspace); // Process the Docking app first, as explicit DockSpace() nodes needs to be submitted early (read comments near the DockSpace function) + if (show_app_documents) ShowExampleAppDocuments(&show_app_documents); // Process the Document app next, as it may also use a DockSpace() + if (show_app_console) ShowExampleAppConsole(&show_app_console); + if (show_app_log) ShowExampleAppLog(&show_app_log); + if (show_app_layout) ShowExampleAppLayout(&show_app_layout); + if (show_app_property_editor) ShowExampleAppPropertyEditor(&show_app_property_editor); + if (show_app_long_text) ShowExampleAppLongText(&show_app_long_text); + if (show_app_auto_resize) ShowExampleAppAutoResize(&show_app_auto_resize); + if (show_app_constrained_resize) ShowExampleAppConstrainedResize(&show_app_constrained_resize); + if (show_app_simple_overlay) ShowExampleAppSimpleOverlay(&show_app_simple_overlay); + if (show_app_fullscreen) ShowExampleAppFullscreen(&show_app_fullscreen); + if (show_app_window_titles) ShowExampleAppWindowTitles(&show_app_window_titles); + if (show_app_custom_rendering) ShowExampleAppCustomRendering(&show_app_custom_rendering); + + // Dear ImGui Tools/Apps (accessible from the "Tools" menu) + static bool show_app_metrics = false; + static bool show_app_debug_log = false; + static bool show_app_stack_tool = false; + static bool show_app_about = false; + static bool show_app_style_editor = false; + + if (show_app_metrics) + ImGui::ShowMetricsWindow(&show_app_metrics); + if (show_app_debug_log) + ImGui::ShowDebugLogWindow(&show_app_debug_log); + if (show_app_stack_tool) + ImGui::ShowStackToolWindow(&show_app_stack_tool); + if (show_app_about) + ImGui::ShowAboutWindow(&show_app_about); + if (show_app_style_editor) + { + ImGui::Begin("Dear ImGui Style Editor", &show_app_style_editor); + ImGui::ShowStyleEditor(); + ImGui::End(); + } + + // Demonstrate the various window flags. Typically you would just use the default! + static bool no_titlebar = false; + static bool no_scrollbar = false; + static bool no_menu = false; + static bool no_move = false; + static bool no_resize = false; + static bool no_collapse = false; + static bool no_close = false; + static bool no_nav = false; + static bool no_background = false; + static bool no_bring_to_front = false; + static bool no_docking = false; + static bool unsaved_document = false; + + ImGuiWindowFlags window_flags = 0; + if (no_titlebar) window_flags |= ImGuiWindowFlags_NoTitleBar; + if (no_scrollbar) window_flags |= ImGuiWindowFlags_NoScrollbar; + if (!no_menu) window_flags |= ImGuiWindowFlags_MenuBar; + if (no_move) window_flags |= ImGuiWindowFlags_NoMove; + if (no_resize) window_flags |= ImGuiWindowFlags_NoResize; + if (no_collapse) window_flags |= ImGuiWindowFlags_NoCollapse; + if (no_nav) window_flags |= ImGuiWindowFlags_NoNav; + if (no_background) window_flags |= ImGuiWindowFlags_NoBackground; + if (no_bring_to_front) window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus; + if (no_docking) window_flags |= ImGuiWindowFlags_NoDocking; + if (unsaved_document) window_flags |= ImGuiWindowFlags_UnsavedDocument; + if (no_close) p_open = NULL; // Don't pass our bool* to Begin + + // We specify a default position/size in case there's no data in the .ini file. + // We only do it to make the demo applications a little more welcoming, but typically this isn't required. + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui::SetNextWindowPos(ImVec2(main_viewport->WorkPos.x + 650, main_viewport->WorkPos.y + 20), ImGuiCond_FirstUseEver); + ImGui::SetNextWindowSize(ImVec2(550, 680), ImGuiCond_FirstUseEver); + + // Main body of the Demo window starts here. + if (!ImGui::Begin("Dear ImGui Demo", p_open, window_flags)) + { + // Early out if the window is collapsed, as an optimization. + ImGui::End(); + return; + } + + // Most "big" widgets share a common width settings by default. See 'Demo->Layout->Widgets Width' for details. + // e.g. Use 2/3 of the space for widgets and 1/3 for labels (right align) + //ImGui::PushItemWidth(-ImGui::GetWindowWidth() * 0.35f); + // e.g. Leave a fixed amount of width for labels (by passing a negative value), the rest goes to widgets. + ImGui::PushItemWidth(ImGui::GetFontSize() * -12); + + // Menu Bar + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Menu")) + { + IMGUI_DEMO_MARKER("Menu/File"); + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Examples")) + { + IMGUI_DEMO_MARKER("Menu/Examples"); + ImGui::MenuItem("Main menu bar", NULL, &show_app_main_menu_bar); + ImGui::MenuItem("Console", NULL, &show_app_console); + ImGui::MenuItem("Log", NULL, &show_app_log); + ImGui::MenuItem("Simple layout", NULL, &show_app_layout); + ImGui::MenuItem("Property editor", NULL, &show_app_property_editor); + ImGui::MenuItem("Long text display", NULL, &show_app_long_text); + ImGui::MenuItem("Auto-resizing window", NULL, &show_app_auto_resize); + ImGui::MenuItem("Constrained-resizing window", NULL, &show_app_constrained_resize); + ImGui::MenuItem("Simple overlay", NULL, &show_app_simple_overlay); + ImGui::MenuItem("Fullscreen window", NULL, &show_app_fullscreen); + ImGui::MenuItem("Manipulating window titles", NULL, &show_app_window_titles); + ImGui::MenuItem("Custom rendering", NULL, &show_app_custom_rendering); + ImGui::MenuItem("Dockspace", NULL, &show_app_dockspace); + ImGui::MenuItem("Documents", NULL, &show_app_documents); + ImGui::EndMenu(); + } + //if (ImGui::MenuItem("MenuItem")) {} // You can also use MenuItem() inside a menu bar! + if (ImGui::BeginMenu("Tools")) + { + IMGUI_DEMO_MARKER("Menu/Tools"); +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + const bool has_debug_tools = true; +#else + const bool has_debug_tools = false; +#endif + ImGui::MenuItem("Metrics/Debugger", NULL, &show_app_metrics, has_debug_tools); + ImGui::MenuItem("Debug Log", NULL, &show_app_debug_log, has_debug_tools); + ImGui::MenuItem("Stack Tool", NULL, &show_app_stack_tool, has_debug_tools); + ImGui::MenuItem("Style Editor", NULL, &show_app_style_editor); + ImGui::MenuItem("About Dear ImGui", NULL, &show_app_about); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + ImGui::Text("dear imgui says hello! (%s) (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); + ImGui::Spacing(); + + IMGUI_DEMO_MARKER("Help"); + if (ImGui::CollapsingHeader("Help")) + { + ImGui::Text("ABOUT THIS DEMO:"); + ImGui::BulletText("Sections below are demonstrating many aspects of the library."); + ImGui::BulletText("The \"Examples\" menu above leads to more demo contents."); + ImGui::BulletText("The \"Tools\" menu above gives access to: About Box, Style Editor,\n" + "and Metrics/Debugger (general purpose Dear ImGui debugging tool)."); + ImGui::Separator(); + + ImGui::Text("PROGRAMMER GUIDE:"); + ImGui::BulletText("See the ShowDemoWindow() code in imgui_demo.cpp. <- you are here!"); + ImGui::BulletText("See comments in imgui.cpp."); + ImGui::BulletText("See example applications in the examples/ folder."); + ImGui::BulletText("Read the FAQ at http://www.dearimgui.org/faq/"); + ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableKeyboard' for keyboard controls."); + ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableGamepad' for gamepad controls."); + ImGui::Separator(); + + ImGui::Text("USER GUIDE:"); + ImGui::ShowUserGuide(); + } + + IMGUI_DEMO_MARKER("Configuration"); + if (ImGui::CollapsingHeader("Configuration")) + { + ImGuiIO& io = ImGui::GetIO(); + + if (ImGui::TreeNode("Configuration##2")) + { + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableKeyboard", &io.ConfigFlags, ImGuiConfigFlags_NavEnableKeyboard); + ImGui::SameLine(); HelpMarker("Enable keyboard controls."); + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableGamepad", &io.ConfigFlags, ImGuiConfigFlags_NavEnableGamepad); + ImGui::SameLine(); HelpMarker("Enable gamepad controls. Require backend to set io.BackendFlags |= ImGuiBackendFlags_HasGamepad.\n\nRead instructions in imgui.cpp for details."); + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableSetMousePos", &io.ConfigFlags, ImGuiConfigFlags_NavEnableSetMousePos); + ImGui::SameLine(); HelpMarker("Instruct navigation to move the mouse cursor. See comment for ImGuiConfigFlags_NavEnableSetMousePos."); + ImGui::CheckboxFlags("io.ConfigFlags: NoMouse", &io.ConfigFlags, ImGuiConfigFlags_NoMouse); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) + { + // The "NoMouse" option can get us stuck with a disabled mouse! Let's provide an alternative way to fix it: + if (fmodf((float)ImGui::GetTime(), 0.40f) < 0.20f) + { + ImGui::SameLine(); + ImGui::Text("<>"); + } + if (ImGui::IsKeyPressed(ImGuiKey_Space)) + io.ConfigFlags &= ~ImGuiConfigFlags_NoMouse; + } + ImGui::CheckboxFlags("io.ConfigFlags: NoMouseCursorChange", &io.ConfigFlags, ImGuiConfigFlags_NoMouseCursorChange); + ImGui::SameLine(); HelpMarker("Instruct backend to not alter mouse cursor shape and visibility."); + + ImGui::CheckboxFlags("io.ConfigFlags: DockingEnable", &io.ConfigFlags, ImGuiConfigFlags_DockingEnable); + ImGui::SameLine(); + if (io.ConfigDockingWithShift) + HelpMarker("Drag from window title bar or their tab to dock/undock. Hold SHIFT to enable docking.\n\nDrag from window menu button (upper-left button) to undock an entire node (all windows)."); + else + HelpMarker("Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking.\n\nDrag from window menu button (upper-left button) to undock an entire node (all windows)."); + if (io.ConfigFlags & ImGuiConfigFlags_DockingEnable) + { + ImGui::Indent(); + ImGui::Checkbox("io.ConfigDockingNoSplit", &io.ConfigDockingNoSplit); + ImGui::SameLine(); HelpMarker("Simplified docking mode: disable window splitting, so docking is limited to merging multiple windows together into tab-bars."); + ImGui::Checkbox("io.ConfigDockingWithShift", &io.ConfigDockingWithShift); + ImGui::SameLine(); HelpMarker("Enable docking when holding Shift only (allow to drop in wider space, reduce visual noise)"); + ImGui::Checkbox("io.ConfigDockingAlwaysTabBar", &io.ConfigDockingAlwaysTabBar); + ImGui::SameLine(); HelpMarker("Create a docking node and tab-bar on single floating windows."); + ImGui::Checkbox("io.ConfigDockingTransparentPayload", &io.ConfigDockingTransparentPayload); + ImGui::SameLine(); HelpMarker("Make window or viewport transparent when docking and only display docking boxes on the target viewport. Useful if rendering of multiple viewport cannot be synced. Best used with ConfigViewportsNoAutoMerge."); + ImGui::Unindent(); + } + + ImGui::CheckboxFlags("io.ConfigFlags: ViewportsEnable", &io.ConfigFlags, ImGuiConfigFlags_ViewportsEnable); + ImGui::SameLine(); HelpMarker("[beta] Enable beta multi-viewports support. See ImGuiPlatformIO for details."); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::Indent(); + ImGui::Checkbox("io.ConfigViewportsNoAutoMerge", &io.ConfigViewportsNoAutoMerge); + ImGui::SameLine(); HelpMarker("Set to make all floating imgui windows always create their own viewport. Otherwise, they are merged into the main host viewports when overlapping it."); + ImGui::Checkbox("io.ConfigViewportsNoTaskBarIcon", &io.ConfigViewportsNoTaskBarIcon); + ImGui::SameLine(); HelpMarker("Toggling this at runtime is normally unsupported (most platform backends won't refresh the task bar icon state right away)."); + ImGui::Checkbox("io.ConfigViewportsNoDecoration", &io.ConfigViewportsNoDecoration); + ImGui::SameLine(); HelpMarker("Toggling this at runtime is normally unsupported (most platform backends won't refresh the decoration right away)."); + ImGui::Checkbox("io.ConfigViewportsNoDefaultParent", &io.ConfigViewportsNoDefaultParent); + ImGui::SameLine(); HelpMarker("Toggling this at runtime is normally unsupported (most platform backends won't refresh the parenting right away)."); + ImGui::Unindent(); + } + + ImGui::Checkbox("io.ConfigInputTrickleEventQueue", &io.ConfigInputTrickleEventQueue); + ImGui::SameLine(); HelpMarker("Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates."); + ImGui::Checkbox("io.ConfigInputTextCursorBlink", &io.ConfigInputTextCursorBlink); + ImGui::SameLine(); HelpMarker("Enable blinking cursor (optional as some users consider it to be distracting)."); + ImGui::Checkbox("io.ConfigInputTextEnterKeepActive", &io.ConfigInputTextEnterKeepActive); + ImGui::SameLine(); HelpMarker("Pressing Enter will keep item active and select contents (single-line only)."); + ImGui::Checkbox("io.ConfigDragClickToInputText", &io.ConfigDragClickToInputText); + ImGui::SameLine(); HelpMarker("Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving)."); + ImGui::Checkbox("io.ConfigWindowsResizeFromEdges", &io.ConfigWindowsResizeFromEdges); + ImGui::SameLine(); HelpMarker("Enable resizing of windows from their edges and from the lower-left corner.\nThis requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback."); + ImGui::Checkbox("io.ConfigWindowsMoveFromTitleBarOnly", &io.ConfigWindowsMoveFromTitleBarOnly); + ImGui::Checkbox("io.MouseDrawCursor", &io.MouseDrawCursor); + ImGui::SameLine(); HelpMarker("Instruct Dear ImGui to render a mouse cursor itself. Note that a mouse cursor rendered via your application GPU rendering path will feel more laggy than hardware cursor, but will be more in sync with your other visuals.\n\nSome desktop applications may use both kinds of cursors (e.g. enable software cursor only when resizing/dragging something)."); + ImGui::Text("Also see Style->Rendering for rendering options."); + ImGui::TreePop(); + ImGui::Separator(); + } + + IMGUI_DEMO_MARKER("Configuration/Backend Flags"); + if (ImGui::TreeNode("Backend Flags")) + { + HelpMarker( + "Those flags are set by the backends (imgui_impl_xxx files) to specify their capabilities.\n" + "Here we expose them as read-only fields to avoid breaking interactions with your backend."); + + // Make a local copy to avoid modifying actual backend flags. + // FIXME: We don't use BeginDisabled() to keep label bright, maybe we need a BeginReadonly() equivalent.. + ImGuiBackendFlags backend_flags = io.BackendFlags; + ImGui::CheckboxFlags("io.BackendFlags: HasGamepad", &backend_flags, ImGuiBackendFlags_HasGamepad); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &backend_flags, ImGuiBackendFlags_HasMouseCursors); + ImGui::CheckboxFlags("io.BackendFlags: HasSetMousePos", &backend_flags, ImGuiBackendFlags_HasSetMousePos); + ImGui::CheckboxFlags("io.BackendFlags: PlatformHasViewports", &backend_flags, ImGuiBackendFlags_PlatformHasViewports); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseHoveredViewport",&backend_flags, ImGuiBackendFlags_HasMouseHoveredViewport); + ImGui::CheckboxFlags("io.BackendFlags: RendererHasVtxOffset", &backend_flags, ImGuiBackendFlags_RendererHasVtxOffset); + ImGui::CheckboxFlags("io.BackendFlags: RendererHasViewports", &backend_flags, ImGuiBackendFlags_RendererHasViewports); + ImGui::TreePop(); + ImGui::Separator(); + } + + IMGUI_DEMO_MARKER("Configuration/Style"); + if (ImGui::TreeNode("Style")) + { + HelpMarker("The same contents can be accessed in 'Tools->Style Editor' or by calling the ShowStyleEditor() function."); + ImGui::ShowStyleEditor(); + ImGui::TreePop(); + ImGui::Separator(); + } + + IMGUI_DEMO_MARKER("Configuration/Capture, Logging"); + if (ImGui::TreeNode("Capture/Logging")) + { + HelpMarker( + "The logging API redirects all text output so you can easily capture the content of " + "a window or a block. Tree nodes can be automatically expanded.\n" + "Try opening any of the contents below in this window and then click one of the \"Log To\" button."); + ImGui::LogButtons(); + + HelpMarker("You can also call ImGui::LogText() to output directly to the log without a visual output."); + if (ImGui::Button("Copy \"Hello, world!\" to clipboard")) + { + ImGui::LogToClipboard(); + ImGui::LogText("Hello, world!"); + ImGui::LogFinish(); + } + ImGui::TreePop(); + } + } + + IMGUI_DEMO_MARKER("Window options"); + if (ImGui::CollapsingHeader("Window options")) + { + if (ImGui::BeginTable("split", 3)) + { + ImGui::TableNextColumn(); ImGui::Checkbox("No titlebar", &no_titlebar); + ImGui::TableNextColumn(); ImGui::Checkbox("No scrollbar", &no_scrollbar); + ImGui::TableNextColumn(); ImGui::Checkbox("No menu", &no_menu); + ImGui::TableNextColumn(); ImGui::Checkbox("No move", &no_move); + ImGui::TableNextColumn(); ImGui::Checkbox("No resize", &no_resize); + ImGui::TableNextColumn(); ImGui::Checkbox("No collapse", &no_collapse); + ImGui::TableNextColumn(); ImGui::Checkbox("No close", &no_close); + ImGui::TableNextColumn(); ImGui::Checkbox("No nav", &no_nav); + ImGui::TableNextColumn(); ImGui::Checkbox("No background", &no_background); + ImGui::TableNextColumn(); ImGui::Checkbox("No bring to front", &no_bring_to_front); + ImGui::TableNextColumn(); ImGui::Checkbox("No docking", &no_docking); + ImGui::TableNextColumn(); ImGui::Checkbox("Unsaved document", &unsaved_document); + ImGui::EndTable(); + } + } + + // All demo contents + ShowDemoWindowWidgets(); + ShowDemoWindowLayout(); + ShowDemoWindowPopups(); + ShowDemoWindowTables(); + ShowDemoWindowInputs(); + + // End of ShowDemoWindow() + ImGui::PopItemWidth(); + ImGui::End(); +} + +static void ShowDemoWindowWidgets() +{ + IMGUI_DEMO_MARKER("Widgets"); + if (!ImGui::CollapsingHeader("Widgets")) + return; + + static bool disable_all = false; // The Checkbox for that is inside the "Disabled" section at the bottom + if (disable_all) + ImGui::BeginDisabled(); + + IMGUI_DEMO_MARKER("Widgets/Basic"); + if (ImGui::TreeNode("Basic")) + { + IMGUI_DEMO_MARKER("Widgets/Basic/Button"); + static int clicked = 0; + if (ImGui::Button("Button")) + clicked++; + if (clicked & 1) + { + ImGui::SameLine(); + ImGui::Text("Thanks for clicking me!"); + } + + IMGUI_DEMO_MARKER("Widgets/Basic/Checkbox"); + static bool check = true; + ImGui::Checkbox("checkbox", &check); + + IMGUI_DEMO_MARKER("Widgets/Basic/RadioButton"); + static int e = 0; + ImGui::RadioButton("radio a", &e, 0); ImGui::SameLine(); + ImGui::RadioButton("radio b", &e, 1); ImGui::SameLine(); + ImGui::RadioButton("radio c", &e, 2); + + // Color buttons, demonstrate using PushID() to add unique identifier in the ID stack, and changing style. + IMGUI_DEMO_MARKER("Widgets/Basic/Buttons (Colored)"); + for (int i = 0; i < 7; i++) + { + if (i > 0) + ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.6f)); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.7f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.8f, 0.8f)); + ImGui::Button("Click"); + ImGui::PopStyleColor(3); + ImGui::PopID(); + } + + // Use AlignTextToFramePadding() to align text baseline to the baseline of framed widgets elements + // (otherwise a Text+SameLine+Button sequence will have the text a little too high by default!) + // See 'Demo->Layout->Text Baseline Alignment' for details. + ImGui::AlignTextToFramePadding(); + ImGui::Text("Hold to repeat:"); + ImGui::SameLine(); + + // Arrow buttons with Repeater + IMGUI_DEMO_MARKER("Widgets/Basic/Buttons (Repeating)"); + static int counter = 0; + float spacing = ImGui::GetStyle().ItemInnerSpacing.x; + ImGui::PushButtonRepeat(true); + if (ImGui::ArrowButton("##left", ImGuiDir_Left)) { counter--; } + ImGui::SameLine(0.0f, spacing); + if (ImGui::ArrowButton("##right", ImGuiDir_Right)) { counter++; } + ImGui::PopButtonRepeat(); + ImGui::SameLine(); + ImGui::Text("%d", counter); + + ImGui::Separator(); + ImGui::LabelText("label", "Value"); + + { + // Using the _simplified_ one-liner Combo() api here + // See "Combo" section for examples of how to use the more flexible BeginCombo()/EndCombo() api. + IMGUI_DEMO_MARKER("Widgets/Basic/Combo"); + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIIIIII", "JJJJ", "KKKKKKK" }; + static int item_current = 0; + ImGui::Combo("combo", &item_current, items, IM_ARRAYSIZE(items)); + ImGui::SameLine(); HelpMarker( + "Using the simplified one-liner Combo API here.\nRefer to the \"Combo\" section below for an explanation of how to use the more flexible and general BeginCombo/EndCombo API."); + } + + { + // To wire InputText() with std::string or any other custom string type, + // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. + IMGUI_DEMO_MARKER("Widgets/Basic/InputText"); + static char str0[128] = "Hello, world!"; + ImGui::InputText("input text", str0, IM_ARRAYSIZE(str0)); + ImGui::SameLine(); HelpMarker( + "USER:\n" + "Hold SHIFT or use mouse to select text.\n" + "CTRL+Left/Right to word jump.\n" + "CTRL+A or Double-Click to select all.\n" + "CTRL+X,CTRL+C,CTRL+V clipboard.\n" + "CTRL+Z,CTRL+Y undo/redo.\n" + "ESCAPE to revert.\n\n" + "PROGRAMMER:\n" + "You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputText() " + "to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example (this is not demonstrated " + "in imgui_demo.cpp)."); + + static char str1[128] = ""; + ImGui::InputTextWithHint("input text (w/ hint)", "enter text here", str1, IM_ARRAYSIZE(str1)); + + IMGUI_DEMO_MARKER("Widgets/Basic/InputInt, InputFloat"); + static int i0 = 123; + ImGui::InputInt("input int", &i0); + + static float f0 = 0.001f; + ImGui::InputFloat("input float", &f0, 0.01f, 1.0f, "%.3f"); + + static double d0 = 999999.00000001; + ImGui::InputDouble("input double", &d0, 0.01f, 1.0f, "%.8f"); + + static float f1 = 1.e10f; + ImGui::InputFloat("input scientific", &f1, 0.0f, 0.0f, "%e"); + ImGui::SameLine(); HelpMarker( + "You can input value using the scientific notation,\n" + " e.g. \"1e+8\" becomes \"100000000\"."); + + static float vec4a[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; + ImGui::InputFloat3("input float3", vec4a); + } + + { + IMGUI_DEMO_MARKER("Widgets/Basic/DragInt, DragFloat"); + static int i1 = 50, i2 = 42; + ImGui::DragInt("drag int", &i1, 1); + ImGui::SameLine(); HelpMarker( + "Click and drag to edit value.\n" + "Hold SHIFT/ALT for faster/slower edit.\n" + "Double-click or CTRL+click to input value."); + + ImGui::DragInt("drag int 0..100", &i2, 1, 0, 100, "%d%%", ImGuiSliderFlags_AlwaysClamp); + + static float f1 = 1.00f, f2 = 0.0067f; + ImGui::DragFloat("drag float", &f1, 0.005f); + ImGui::DragFloat("drag small float", &f2, 0.0001f, 0.0f, 0.0f, "%.06f ns"); + } + + { + IMGUI_DEMO_MARKER("Widgets/Basic/SliderInt, SliderFloat"); + static int i1 = 0; + ImGui::SliderInt("slider int", &i1, -1, 3); + ImGui::SameLine(); HelpMarker("CTRL+click to input value."); + + static float f1 = 0.123f, f2 = 0.0f; + ImGui::SliderFloat("slider float", &f1, 0.0f, 1.0f, "ratio = %.3f"); + ImGui::SliderFloat("slider float (log)", &f2, -10.0f, 10.0f, "%.4f", ImGuiSliderFlags_Logarithmic); + + IMGUI_DEMO_MARKER("Widgets/Basic/SliderAngle"); + static float angle = 0.0f; + ImGui::SliderAngle("slider angle", &angle); + + // Using the format string to display a name instead of an integer. + // Here we completely omit '%d' from the format string, so it'll only display a name. + // This technique can also be used with DragInt(). + IMGUI_DEMO_MARKER("Widgets/Basic/Slider (enum)"); + enum Element { Element_Fire, Element_Earth, Element_Air, Element_Water, Element_COUNT }; + static int elem = Element_Fire; + const char* elems_names[Element_COUNT] = { "Fire", "Earth", "Air", "Water" }; + const char* elem_name = (elem >= 0 && elem < Element_COUNT) ? elems_names[elem] : "Unknown"; + ImGui::SliderInt("slider enum", &elem, 0, Element_COUNT - 1, elem_name); + ImGui::SameLine(); HelpMarker("Using the format string parameter to display a name instead of the underlying integer."); + } + + { + IMGUI_DEMO_MARKER("Widgets/Basic/ColorEdit3, ColorEdit4"); + static float col1[3] = { 1.0f, 0.0f, 0.2f }; + static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::ColorEdit3("color 1", col1); + ImGui::SameLine(); HelpMarker( + "Click on the color square to open a color picker.\n" + "Click and hold to use drag and drop.\n" + "Right-click on the color square to show options.\n" + "CTRL+click on individual component to input value.\n"); + + ImGui::ColorEdit4("color 2", col2); + } + + { + // Using the _simplified_ one-liner ListBox() api here + // See "List boxes" section for examples of how to use the more flexible BeginListBox()/EndListBox() api. + IMGUI_DEMO_MARKER("Widgets/Basic/ListBox"); + const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi", "Mango", "Orange", "Pineapple", "Strawberry", "Watermelon" }; + static int item_current = 1; + ImGui::ListBox("listbox", &item_current, items, IM_ARRAYSIZE(items), 4); + ImGui::SameLine(); HelpMarker( + "Using the simplified one-liner ListBox API here.\nRefer to the \"List boxes\" section below for an explanation of how to use the more flexible and general BeginListBox/EndListBox API."); + } + + { + // Tooltips + IMGUI_DEMO_MARKER("Widgets/Basic/Tooltips"); + ImGui::AlignTextToFramePadding(); + ImGui::Text("Tooltips:"); + + ImGui::SameLine(); + ImGui::Button("Button"); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("I am a tooltip"); + + ImGui::SameLine(); + ImGui::Button("Fancy"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::Text("I am a fancy tooltip"); + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); + ImGui::Text("Sin(time) = %f", sinf((float)ImGui::GetTime())); + ImGui::EndTooltip(); + } + + ImGui::SameLine(); + ImGui::Button("Delayed"); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal)) // Delay best used on items that highlight on hover, so this not a great example! + ImGui::SetTooltip("I am a tooltip with a delay."); + + ImGui::SameLine(); + HelpMarker( + "Tooltip are created by using the IsItemHovered() function over any kind of item."); + + } + + ImGui::TreePop(); + } + + // Testing ImGuiOnceUponAFrame helper. + //static ImGuiOnceUponAFrame once; + //for (int i = 0; i < 5; i++) + // if (once) + // ImGui::Text("This will be displayed only once."); + + IMGUI_DEMO_MARKER("Widgets/Trees"); + if (ImGui::TreeNode("Trees")) + { + IMGUI_DEMO_MARKER("Widgets/Trees/Basic trees"); + if (ImGui::TreeNode("Basic trees")) + { + for (int i = 0; i < 5; i++) + { + // Use SetNextItemOpen() so set the default state of a node to be open. We could + // also use TreeNodeEx() with the ImGuiTreeNodeFlags_DefaultOpen flag to achieve the same thing! + if (i == 0) + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + + if (ImGui::TreeNode((void*)(intptr_t)i, "Child %d", i)) + { + ImGui::Text("blah blah"); + ImGui::SameLine(); + if (ImGui::SmallButton("button")) {} + ImGui::TreePop(); + } + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Trees/Advanced, with Selectable nodes"); + if (ImGui::TreeNode("Advanced, with Selectable nodes")) + { + HelpMarker( + "This is a more typical looking tree with selectable nodes.\n" + "Click to select, CTRL+Click to toggle, click on arrows or double-click to open."); + static ImGuiTreeNodeFlags base_flags = ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_SpanAvailWidth; + static bool align_label_with_current_x_position = false; + static bool test_drag_and_drop = false; + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnArrow", &base_flags, ImGuiTreeNodeFlags_OpenOnArrow); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnDoubleClick", &base_flags, ImGuiTreeNodeFlags_OpenOnDoubleClick); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanAvailWidth", &base_flags, ImGuiTreeNodeFlags_SpanAvailWidth); ImGui::SameLine(); HelpMarker("Extend hit area to all available width instead of allowing more items to be laid out after the node."); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanFullWidth", &base_flags, ImGuiTreeNodeFlags_SpanFullWidth); + ImGui::Checkbox("Align label with current X position", &align_label_with_current_x_position); + ImGui::Checkbox("Test tree node as drag source", &test_drag_and_drop); + ImGui::Text("Hello!"); + if (align_label_with_current_x_position) + ImGui::Unindent(ImGui::GetTreeNodeToLabelSpacing()); + + // 'selection_mask' is dumb representation of what may be user-side selection state. + // You may retain selection state inside or outside your objects in whatever format you see fit. + // 'node_clicked' is temporary storage of what node we have clicked to process selection at the end + /// of the loop. May be a pointer to your own node type, etc. + static int selection_mask = (1 << 2); + int node_clicked = -1; + for (int i = 0; i < 6; i++) + { + // Disable the default "open on single-click behavior" + set Selected flag according to our selection. + // To alter selection we use IsItemClicked() && !IsItemToggledOpen(), so clicking on an arrow doesn't alter selection. + ImGuiTreeNodeFlags node_flags = base_flags; + const bool is_selected = (selection_mask & (1 << i)) != 0; + if (is_selected) + node_flags |= ImGuiTreeNodeFlags_Selected; + if (i < 3) + { + // Items 0..2 are Tree Node + bool node_open = ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Node %d", i); + if (ImGui::IsItemClicked() && !ImGui::IsItemToggledOpen()) + node_clicked = i; + if (test_drag_and_drop && ImGui::BeginDragDropSource()) + { + ImGui::SetDragDropPayload("_TREENODE", NULL, 0); + ImGui::Text("This is a drag and drop source"); + ImGui::EndDragDropSource(); + } + if (node_open) + { + ImGui::BulletText("Blah blah\nBlah Blah"); + ImGui::TreePop(); + } + } + else + { + // Items 3..5 are Tree Leaves + // The only reason we use TreeNode at all is to allow selection of the leaf. Otherwise we can + // use BulletText() or advance the cursor by GetTreeNodeToLabelSpacing() and call Text(). + node_flags |= ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen; // ImGuiTreeNodeFlags_Bullet + ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Leaf %d", i); + if (ImGui::IsItemClicked() && !ImGui::IsItemToggledOpen()) + node_clicked = i; + if (test_drag_and_drop && ImGui::BeginDragDropSource()) + { + ImGui::SetDragDropPayload("_TREENODE", NULL, 0); + ImGui::Text("This is a drag and drop source"); + ImGui::EndDragDropSource(); + } + } + } + if (node_clicked != -1) + { + // Update selection state + // (process outside of tree loop to avoid visual inconsistencies during the clicking frame) + if (ImGui::GetIO().KeyCtrl) + selection_mask ^= (1 << node_clicked); // CTRL+click to toggle + else //if (!(selection_mask & (1 << node_clicked))) // Depending on selection behavior you want, may want to preserve selection when clicking on item that is part of the selection + selection_mask = (1 << node_clicked); // Click to single-select + } + if (align_label_with_current_x_position) + ImGui::Indent(ImGui::GetTreeNodeToLabelSpacing()); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Collapsing Headers"); + if (ImGui::TreeNode("Collapsing Headers")) + { + static bool closable_group = true; + ImGui::Checkbox("Show 2nd header", &closable_group); + if (ImGui::CollapsingHeader("Header", ImGuiTreeNodeFlags_None)) + { + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + for (int i = 0; i < 5; i++) + ImGui::Text("Some content %d", i); + } + if (ImGui::CollapsingHeader("Header with a close button", &closable_group)) + { + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + for (int i = 0; i < 5; i++) + ImGui::Text("More content %d", i); + } + /* + if (ImGui::CollapsingHeader("Header with a bullet", ImGuiTreeNodeFlags_Bullet)) + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + */ + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Bullets"); + if (ImGui::TreeNode("Bullets")) + { + ImGui::BulletText("Bullet point 1"); + ImGui::BulletText("Bullet point 2\nOn multiple lines"); + if (ImGui::TreeNode("Tree node")) + { + ImGui::BulletText("Another bullet point"); + ImGui::TreePop(); + } + ImGui::Bullet(); ImGui::Text("Bullet point 3 (two calls)"); + ImGui::Bullet(); ImGui::SmallButton("Button"); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text"); + if (ImGui::TreeNode("Text")) + { + IMGUI_DEMO_MARKER("Widgets/Text/Colored Text"); + if (ImGui::TreeNode("Colorful Text")) + { + // Using shortcut. You can use PushStyleColor()/PopStyleColor() for more flexibility. + ImGui::TextColored(ImVec4(1.0f, 0.0f, 1.0f, 1.0f), "Pink"); + ImGui::TextColored(ImVec4(1.0f, 1.0f, 0.0f, 1.0f), "Yellow"); + ImGui::TextDisabled("Disabled"); + ImGui::SameLine(); HelpMarker("The TextDisabled color is stored in ImGuiStyle."); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text/Word Wrapping"); + if (ImGui::TreeNode("Word Wrapping")) + { + // Using shortcut. You can use PushTextWrapPos()/PopTextWrapPos() for more flexibility. + ImGui::TextWrapped( + "This text should automatically wrap on the edge of the window. The current implementation " + "for text wrapping follows simple rules suitable for English and possibly other languages."); + ImGui::Spacing(); + + static float wrap_width = 200.0f; + ImGui::SliderFloat("Wrap width", &wrap_width, -20, 600, "%.0f"); + + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + for (int n = 0; n < 2; n++) + { + ImGui::Text("Test paragraph %d:", n); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImVec2 marker_min = ImVec2(pos.x + wrap_width, pos.y); + ImVec2 marker_max = ImVec2(pos.x + wrap_width + 10, pos.y + ImGui::GetTextLineHeight()); + ImGui::PushTextWrapPos(ImGui::GetCursorPos().x + wrap_width); + if (n == 0) + ImGui::Text("The lazy dog is a good dog. This paragraph should fit within %.0f pixels. Testing a 1 character word. The quick brown fox jumps over the lazy dog.", wrap_width); + else + ImGui::Text("aaaaaaaa bbbbbbbb, c cccccccc,dddddddd. d eeeeeeee ffffffff. gggggggg!hhhhhhhh"); + + // Draw actual text bounding box, following by marker of our expected limit (should not overlap!) + draw_list->AddRect(ImGui::GetItemRectMin(), ImGui::GetItemRectMax(), IM_COL32(255, 255, 0, 255)); + draw_list->AddRectFilled(marker_min, marker_max, IM_COL32(255, 0, 255, 255)); + ImGui::PopTextWrapPos(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text/UTF-8 Text"); + if (ImGui::TreeNode("UTF-8 Text")) + { + // UTF-8 test with Japanese characters + // (Needs a suitable font? Try "Google Noto" or "Arial Unicode". See docs/FONTS.md for details.) + // - From C++11 you can use the u8"my text" syntax to encode literal strings as UTF-8 + // - For earlier compiler, you may be able to encode your sources as UTF-8 (e.g. in Visual Studio, you + // can save your source files as 'UTF-8 without signature'). + // - FOR THIS DEMO FILE ONLY, BECAUSE WE WANT TO SUPPORT OLD COMPILERS, WE ARE *NOT* INCLUDING RAW UTF-8 + // CHARACTERS IN THIS SOURCE FILE. Instead we are encoding a few strings with hexadecimal constants. + // Don't do this in your application! Please use u8"text in any language" in your application! + // Note that characters values are preserved even by InputText() if the font cannot be displayed, + // so you can safely copy & paste garbled characters into another application. + ImGui::TextWrapped( + "CJK text will only appear if the font was loaded with the appropriate CJK character ranges. " + "Call io.Fonts->AddFontFromFileTTF() manually to load extra character ranges. " + "Read docs/FONTS.md for details."); + ImGui::Text("Hiragana: \xe3\x81\x8b\xe3\x81\x8d\xe3\x81\x8f\xe3\x81\x91\xe3\x81\x93 (kakikukeko)"); // Normally we would use u8"blah blah" with the proper characters directly in the string. + ImGui::Text("Kanjis: \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e (nihongo)"); + static char buf[32] = "\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e"; + //static char buf[32] = u8"NIHONGO"; // <- this is how you would write it with C++11, using real kanjis + ImGui::InputText("UTF-8 input", buf, IM_ARRAYSIZE(buf)); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Images"); + if (ImGui::TreeNode("Images")) + { + ImGuiIO& io = ImGui::GetIO(); + ImGui::TextWrapped( + "Below we are displaying the font texture (which is the only texture we have access to in this demo). " + "Use the 'ImTextureID' type as storage to pass pointers or identifier to your own texture data. " + "Hover the texture for a zoomed view!"); + + // Below we are displaying the font texture because it is the only texture we have access to inside the demo! + // Remember that ImTextureID is just storage for whatever you want it to be. It is essentially a value that + // will be passed to the rendering backend via the ImDrawCmd structure. + // If you use one of the default imgui_impl_XXXX.cpp rendering backend, they all have comments at the top + // of their respective source file to specify what they expect to be stored in ImTextureID, for example: + // - The imgui_impl_dx11.cpp renderer expect a 'ID3D11ShaderResourceView*' pointer + // - The imgui_impl_opengl3.cpp renderer expect a GLuint OpenGL texture identifier, etc. + // More: + // - If you decided that ImTextureID = MyEngineTexture*, then you can pass your MyEngineTexture* pointers + // to ImGui::Image(), and gather width/height through your own functions, etc. + // - You can use ShowMetricsWindow() to inspect the draw data that are being passed to your renderer, + // it will help you debug issues if you are confused about it. + // - Consider using the lower-level ImDrawList::AddImage() API, via ImGui::GetWindowDrawList()->AddImage(). + // - Read https://github.com/ocornut/imgui/blob/master/docs/FAQ.md + // - Read https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + ImTextureID my_tex_id = io.Fonts->TexID; + float my_tex_w = (float)io.Fonts->TexWidth; + float my_tex_h = (float)io.Fonts->TexHeight; + { + ImGui::Text("%.0fx%.0f", my_tex_w, my_tex_h); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImVec2 uv_min = ImVec2(0.0f, 0.0f); // Top-left + ImVec2 uv_max = ImVec2(1.0f, 1.0f); // Lower-right + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); // 50% opaque white + ImGui::Image(my_tex_id, ImVec2(my_tex_w, my_tex_h), uv_min, uv_max, tint_col, border_col); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + float region_sz = 32.0f; + float region_x = io.MousePos.x - pos.x - region_sz * 0.5f; + float region_y = io.MousePos.y - pos.y - region_sz * 0.5f; + float zoom = 4.0f; + if (region_x < 0.0f) { region_x = 0.0f; } + else if (region_x > my_tex_w - region_sz) { region_x = my_tex_w - region_sz; } + if (region_y < 0.0f) { region_y = 0.0f; } + else if (region_y > my_tex_h - region_sz) { region_y = my_tex_h - region_sz; } + ImGui::Text("Min: (%.2f, %.2f)", region_x, region_y); + ImGui::Text("Max: (%.2f, %.2f)", region_x + region_sz, region_y + region_sz); + ImVec2 uv0 = ImVec2((region_x) / my_tex_w, (region_y) / my_tex_h); + ImVec2 uv1 = ImVec2((region_x + region_sz) / my_tex_w, (region_y + region_sz) / my_tex_h); + ImGui::Image(my_tex_id, ImVec2(region_sz * zoom, region_sz * zoom), uv0, uv1, tint_col, border_col); + ImGui::EndTooltip(); + } + } + + IMGUI_DEMO_MARKER("Widgets/Images/Textured buttons"); + ImGui::TextWrapped("And now some textured buttons.."); + static int pressed_count = 0; + for (int i = 0; i < 8; i++) + { + // UV coordinates are often (0.0f, 0.0f) and (1.0f, 1.0f) to display an entire textures. + // Here are trying to display only a 32x32 pixels area of the texture, hence the UV computation. + // Read about UV coordinates here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + ImGui::PushID(i); + if (i > 0) + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(i - 1.0f, i - 1.0f)); + ImVec2 size = ImVec2(32.0f, 32.0f); // Size of the image we want to make visible + ImVec2 uv0 = ImVec2(0.0f, 0.0f); // UV coordinates for lower-left + ImVec2 uv1 = ImVec2(32.0f / my_tex_w, 32.0f / my_tex_h); // UV coordinates for (32,32) in our texture + ImVec4 bg_col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); // Black background + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + if (ImGui::ImageButton("", my_tex_id, size, uv0, uv1, bg_col, tint_col)) + pressed_count += 1; + if (i > 0) + ImGui::PopStyleVar(); + ImGui::PopID(); + ImGui::SameLine(); + } + ImGui::NewLine(); + ImGui::Text("Pressed %d times.", pressed_count); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Combo"); + if (ImGui::TreeNode("Combo")) + { + // Combo Boxes are also called "Dropdown" in other systems + // Expose flags as checkbox for the demo + static ImGuiComboFlags flags = 0; + ImGui::CheckboxFlags("ImGuiComboFlags_PopupAlignLeft", &flags, ImGuiComboFlags_PopupAlignLeft); + ImGui::SameLine(); HelpMarker("Only makes a difference if the popup is larger than the combo"); + if (ImGui::CheckboxFlags("ImGuiComboFlags_NoArrowButton", &flags, ImGuiComboFlags_NoArrowButton)) + flags &= ~ImGuiComboFlags_NoPreview; // Clear the other flag, as we cannot combine both + if (ImGui::CheckboxFlags("ImGuiComboFlags_NoPreview", &flags, ImGuiComboFlags_NoPreview)) + flags &= ~ImGuiComboFlags_NoArrowButton; // Clear the other flag, as we cannot combine both + + // Using the generic BeginCombo() API, you have full control over how to display the combo contents. + // (your selection data could be an index, a pointer to the object, an id for the object, a flag intrusively + // stored in the object itself, etc.) + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "LLLLLLL", "MMMM", "OOOOOOO" }; + static int item_current_idx = 0; // Here we store our selection data as an index. + const char* combo_preview_value = items[item_current_idx]; // Pass in the preview value visible before opening the combo (it could be anything) + if (ImGui::BeginCombo("combo 1", combo_preview_value, flags)) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndCombo(); + } + + // Simplified one-liner Combo() API, using values packed in a single constant string + // This is a convenience for when the selection set is small and known at compile-time. + static int item_current_2 = 0; + ImGui::Combo("combo 2 (one-liner)", &item_current_2, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); + + // Simplified one-liner Combo() using an array of const char* + // This is not very useful (may obsolete): prefer using BeginCombo()/EndCombo() for full control. + static int item_current_3 = -1; // If the selection isn't within 0..count, Combo won't display a preview + ImGui::Combo("combo 3 (array)", &item_current_3, items, IM_ARRAYSIZE(items)); + + // Simplified one-liner Combo() using an accessor function + struct Funcs { static bool ItemGetter(void* data, int n, const char** out_str) { *out_str = ((const char**)data)[n]; return true; } }; + static int item_current_4 = 0; + ImGui::Combo("combo 4 (function)", &item_current_4, &Funcs::ItemGetter, items, IM_ARRAYSIZE(items)); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/List Boxes"); + if (ImGui::TreeNode("List boxes")) + { + // Using the generic BeginListBox() API, you have full control over how to display the combo contents. + // (your selection data could be an index, a pointer to the object, an id for the object, a flag intrusively + // stored in the object itself, etc.) + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "LLLLLLL", "MMMM", "OOOOOOO" }; + static int item_current_idx = 0; // Here we store our selection data as an index. + if (ImGui::BeginListBox("listbox 1")) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndListBox(); + } + + // Custom size: use all width, 5 items tall + ImGui::Text("Full-width:"); + if (ImGui::BeginListBox("##listbox 2", ImVec2(-FLT_MIN, 5 * ImGui::GetTextLineHeightWithSpacing()))) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndListBox(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Selectables"); + if (ImGui::TreeNode("Selectables")) + { + // Selectable() has 2 overloads: + // - The one taking "bool selected" as a read-only selection information. + // When Selectable() has been clicked it returns true and you can alter selection state accordingly. + // - The one taking "bool* p_selected" as a read-write selection information (convenient in some cases) + // The earlier is more flexible, as in real application your selection may be stored in many different ways + // and not necessarily inside a bool value (e.g. in flags within objects, as an external list, etc). + IMGUI_DEMO_MARKER("Widgets/Selectables/Basic"); + if (ImGui::TreeNode("Basic")) + { + static bool selection[5] = { false, true, false, false, false }; + ImGui::Selectable("1. I am selectable", &selection[0]); + ImGui::Selectable("2. I am selectable", &selection[1]); + ImGui::Text("(I am not selectable)"); + ImGui::Selectable("4. I am selectable", &selection[3]); + if (ImGui::Selectable("5. I am double clickable", selection[4], ImGuiSelectableFlags_AllowDoubleClick)) + if (ImGui::IsMouseDoubleClicked(0)) + selection[4] = !selection[4]; + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Single Selection"); + if (ImGui::TreeNode("Selection State: Single Selection")) + { + static int selected = -1; + for (int n = 0; n < 5; n++) + { + char buf[32]; + sprintf(buf, "Object %d", n); + if (ImGui::Selectable(buf, selected == n)) + selected = n; + } + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Multiple Selection"); + if (ImGui::TreeNode("Selection State: Multiple Selection")) + { + HelpMarker("Hold CTRL and click to select multiple items."); + static bool selection[5] = { false, false, false, false, false }; + for (int n = 0; n < 5; n++) + { + char buf[32]; + sprintf(buf, "Object %d", n); + if (ImGui::Selectable(buf, selection[n])) + { + if (!ImGui::GetIO().KeyCtrl) // Clear selection when CTRL is not held + memset(selection, 0, sizeof(selection)); + selection[n] ^= 1; + } + } + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Rendering more text into the same line"); + if (ImGui::TreeNode("Rendering more text into the same line")) + { + // Using the Selectable() override that takes "bool* p_selected" parameter, + // this function toggle your bool value automatically. + static bool selected[3] = { false, false, false }; + ImGui::Selectable("main.c", &selected[0]); ImGui::SameLine(300); ImGui::Text(" 2,345 bytes"); + ImGui::Selectable("Hello.cpp", &selected[1]); ImGui::SameLine(300); ImGui::Text("12,345 bytes"); + ImGui::Selectable("Hello.h", &selected[2]); ImGui::SameLine(300); ImGui::Text(" 2,345 bytes"); + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/In columns"); + if (ImGui::TreeNode("In columns")) + { + static bool selected[10] = {}; + + if (ImGui::BeginTable("split1", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_Borders)) + { + for (int i = 0; i < 10; i++) + { + char label[32]; + sprintf(label, "Item %d", i); + ImGui::TableNextColumn(); + ImGui::Selectable(label, &selected[i]); // FIXME-TABLE: Selection overlap + } + ImGui::EndTable(); + } + ImGui::Spacing(); + if (ImGui::BeginTable("split2", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_Borders)) + { + for (int i = 0; i < 10; i++) + { + char label[32]; + sprintf(label, "Item %d", i); + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Selectable(label, &selected[i], ImGuiSelectableFlags_SpanAllColumns); + ImGui::TableNextColumn(); + ImGui::Text("Some other contents"); + ImGui::TableNextColumn(); + ImGui::Text("123456"); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Grid"); + if (ImGui::TreeNode("Grid")) + { + static char selected[4][4] = { { 1, 0, 0, 0 }, { 0, 1, 0, 0 }, { 0, 0, 1, 0 }, { 0, 0, 0, 1 } }; + + // Add in a bit of silly fun... + const float time = (float)ImGui::GetTime(); + const bool winning_state = memchr(selected, 0, sizeof(selected)) == NULL; // If all cells are selected... + if (winning_state) + ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, ImVec2(0.5f + 0.5f * cosf(time * 2.0f), 0.5f + 0.5f * sinf(time * 3.0f))); + + for (int y = 0; y < 4; y++) + for (int x = 0; x < 4; x++) + { + if (x > 0) + ImGui::SameLine(); + ImGui::PushID(y * 4 + x); + if (ImGui::Selectable("Sailor", selected[y][x] != 0, 0, ImVec2(50, 50))) + { + // Toggle clicked cell + toggle neighbors + selected[y][x] ^= 1; + if (x > 0) { selected[y][x - 1] ^= 1; } + if (x < 3) { selected[y][x + 1] ^= 1; } + if (y > 0) { selected[y - 1][x] ^= 1; } + if (y < 3) { selected[y + 1][x] ^= 1; } + } + ImGui::PopID(); + } + + if (winning_state) + ImGui::PopStyleVar(); + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Alignment"); + if (ImGui::TreeNode("Alignment")) + { + HelpMarker( + "By default, Selectables uses style.SelectableTextAlign but it can be overridden on a per-item " + "basis using PushStyleVar(). You'll probably want to always keep your default situation to " + "left-align otherwise it becomes difficult to layout multiple items on a same line"); + static bool selected[3 * 3] = { true, false, true, false, true, false, true, false, true }; + for (int y = 0; y < 3; y++) + { + for (int x = 0; x < 3; x++) + { + ImVec2 alignment = ImVec2((float)x / 2.0f, (float)y / 2.0f); + char name[32]; + sprintf(name, "(%.1f,%.1f)", alignment.x, alignment.y); + if (x > 0) ImGui::SameLine(); + ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, alignment); + ImGui::Selectable(name, &selected[3 * y + x], ImGuiSelectableFlags_None, ImVec2(80, 80)); + ImGui::PopStyleVar(); + } + } + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + // To wire InputText() with std::string or any other custom string type, + // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. + IMGUI_DEMO_MARKER("Widgets/Text Input"); + if (ImGui::TreeNode("Text Input")) + { + IMGUI_DEMO_MARKER("Widgets/Text Input/Multi-line Text Input"); + if (ImGui::TreeNode("Multi-line Text Input")) + { + // Note: we are using a fixed-sized buffer for simplicity here. See ImGuiInputTextFlags_CallbackResize + // and the code in misc/cpp/imgui_stdlib.h for how to setup InputText() for dynamically resizing strings. + static char text[1024 * 16] = + "/*\n" + " The Pentium F00F bug, shorthand for F0 0F C7 C8,\n" + " the hexadecimal encoding of one offending instruction,\n" + " more formally, the invalid operand with locked CMPXCHG8B\n" + " instruction bug, is a design flaw in the majority of\n" + " Intel Pentium, Pentium MMX, and Pentium OverDrive\n" + " processors (all in the P5 microarchitecture).\n" + "*/\n\n" + "label:\n" + "\tlock cmpxchg8b eax\n"; + + static ImGuiInputTextFlags flags = ImGuiInputTextFlags_AllowTabInput; + HelpMarker("You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputTextMultiline() to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example. (This is not demonstrated in imgui_demo.cpp because we don't want to include in here)"); + ImGui::CheckboxFlags("ImGuiInputTextFlags_ReadOnly", &flags, ImGuiInputTextFlags_ReadOnly); + ImGui::CheckboxFlags("ImGuiInputTextFlags_AllowTabInput", &flags, ImGuiInputTextFlags_AllowTabInput); + ImGui::CheckboxFlags("ImGuiInputTextFlags_CtrlEnterForNewLine", &flags, ImGuiInputTextFlags_CtrlEnterForNewLine); + ImGui::InputTextMultiline("##source", text, IM_ARRAYSIZE(text), ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16), flags); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Filtered Text Input"); + if (ImGui::TreeNode("Filtered Text Input")) + { + struct TextFilters + { + // Return 0 (pass) if the character is 'i' or 'm' or 'g' or 'u' or 'i' + static int FilterImGuiLetters(ImGuiInputTextCallbackData* data) + { + if (data->EventChar < 256 && strchr("imgui", (char)data->EventChar)) + return 0; + return 1; + } + }; + + static char buf1[64] = ""; ImGui::InputText("default", buf1, 64); + static char buf2[64] = ""; ImGui::InputText("decimal", buf2, 64, ImGuiInputTextFlags_CharsDecimal); + static char buf3[64] = ""; ImGui::InputText("hexadecimal", buf3, 64, ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase); + static char buf4[64] = ""; ImGui::InputText("uppercase", buf4, 64, ImGuiInputTextFlags_CharsUppercase); + static char buf5[64] = ""; ImGui::InputText("no blank", buf5, 64, ImGuiInputTextFlags_CharsNoBlank); + static char buf6[64] = ""; ImGui::InputText("\"imgui\" letters", buf6, 64, ImGuiInputTextFlags_CallbackCharFilter, TextFilters::FilterImGuiLetters); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Password input"); + if (ImGui::TreeNode("Password Input")) + { + static char password[64] = "password123"; + ImGui::InputText("password", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); + ImGui::SameLine(); HelpMarker("Display all characters as '*'.\nDisable clipboard cut and copy.\nDisable logging.\n"); + ImGui::InputTextWithHint("password (w/ hint)", "", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); + ImGui::InputText("password (clear)", password, IM_ARRAYSIZE(password)); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Completion, History, Edit Callbacks")) + { + struct Funcs + { + static int MyCallback(ImGuiInputTextCallbackData* data) + { + if (data->EventFlag == ImGuiInputTextFlags_CallbackCompletion) + { + data->InsertChars(data->CursorPos, ".."); + } + else if (data->EventFlag == ImGuiInputTextFlags_CallbackHistory) + { + if (data->EventKey == ImGuiKey_UpArrow) + { + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, "Pressed Up!"); + data->SelectAll(); + } + else if (data->EventKey == ImGuiKey_DownArrow) + { + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, "Pressed Down!"); + data->SelectAll(); + } + } + else if (data->EventFlag == ImGuiInputTextFlags_CallbackEdit) + { + // Toggle casing of first character + char c = data->Buf[0]; + if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) data->Buf[0] ^= 32; + data->BufDirty = true; + + // Increment a counter + int* p_int = (int*)data->UserData; + *p_int = *p_int + 1; + } + return 0; + } + }; + static char buf1[64]; + ImGui::InputText("Completion", buf1, 64, ImGuiInputTextFlags_CallbackCompletion, Funcs::MyCallback); + ImGui::SameLine(); HelpMarker("Here we append \"..\" each time Tab is pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); + + static char buf2[64]; + ImGui::InputText("History", buf2, 64, ImGuiInputTextFlags_CallbackHistory, Funcs::MyCallback); + ImGui::SameLine(); HelpMarker("Here we replace and select text each time Up/Down are pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); + + static char buf3[64]; + static int edit_count = 0; + ImGui::InputText("Edit", buf3, 64, ImGuiInputTextFlags_CallbackEdit, Funcs::MyCallback, (void*)&edit_count); + ImGui::SameLine(); HelpMarker("Here we toggle the casing of the first character on every edit + count edits."); + ImGui::SameLine(); ImGui::Text("(%d)", edit_count); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Resize Callback"); + if (ImGui::TreeNode("Resize Callback")) + { + // To wire InputText() with std::string or any other custom string type, + // you can use the ImGuiInputTextFlags_CallbackResize flag + create a custom ImGui::InputText() wrapper + // using your preferred type. See misc/cpp/imgui_stdlib.h for an implementation of this using std::string. + HelpMarker( + "Using ImGuiInputTextFlags_CallbackResize to wire your custom string type to InputText().\n\n" + "See misc/cpp/imgui_stdlib.h for an implementation of this for std::string."); + struct Funcs + { + static int MyResizeCallback(ImGuiInputTextCallbackData* data) + { + if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) + { + ImVector* my_str = (ImVector*)data->UserData; + IM_ASSERT(my_str->begin() == data->Buf); + my_str->resize(data->BufSize); // NB: On resizing calls, generally data->BufSize == data->BufTextLen + 1 + data->Buf = my_str->begin(); + } + return 0; + } + + // Note: Because ImGui:: is a namespace you would typically add your own function into the namespace. + // For example, you code may declare a function 'ImGui::InputText(const char* label, MyString* my_str)' + static bool MyInputTextMultiline(const char* label, ImVector* my_str, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0) + { + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + return ImGui::InputTextMultiline(label, my_str->begin(), (size_t)my_str->size(), size, flags | ImGuiInputTextFlags_CallbackResize, Funcs::MyResizeCallback, (void*)my_str); + } + }; + + // For this demo we are using ImVector as a string container. + // Note that because we need to store a terminating zero character, our size/capacity are 1 more + // than usually reported by a typical string class. + static ImVector my_str; + if (my_str.empty()) + my_str.push_back(0); + Funcs::MyInputTextMultiline("##MyStr", &my_str, ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16)); + ImGui::Text("Data: %p\nSize: %d\nCapacity: %d", (void*)my_str.begin(), my_str.size(), my_str.capacity()); + ImGui::TreePop(); + } + + ImGui::TreePop(); + } + + // Tabs + IMGUI_DEMO_MARKER("Widgets/Tabs"); + if (ImGui::TreeNode("Tabs")) + { + IMGUI_DEMO_MARKER("Widgets/Tabs/Basic"); + if (ImGui::TreeNode("Basic")) + { + ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_None; + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + if (ImGui::BeginTabItem("Avocado")) + { + ImGui::Text("This is the Avocado tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Broccoli")) + { + ImGui::Text("This is the Broccoli tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Cucumber")) + { + ImGui::Text("This is the Cucumber tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Tabs/Advanced & Close Button"); + if (ImGui::TreeNode("Advanced & Close Button")) + { + // Expose a couple of the available flags. In most cases you may just call BeginTabBar() with no flags (0). + static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable; + ImGui::CheckboxFlags("ImGuiTabBarFlags_Reorderable", &tab_bar_flags, ImGuiTabBarFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTabBarFlags_AutoSelectNewTabs", &tab_bar_flags, ImGuiTabBarFlags_AutoSelectNewTabs); + ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", &tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); + ImGui::CheckboxFlags("ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", &tab_bar_flags, ImGuiTabBarFlags_NoCloseWithMiddleMouseButton); + if ((tab_bar_flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) + tab_bar_flags |= ImGuiTabBarFlags_FittingPolicyDefault_; + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); + + // Tab Bar + const char* names[4] = { "Artichoke", "Beetroot", "Celery", "Daikon" }; + static bool opened[4] = { true, true, true, true }; // Persistent user state + for (int n = 0; n < IM_ARRAYSIZE(opened); n++) + { + if (n > 0) { ImGui::SameLine(); } + ImGui::Checkbox(names[n], &opened[n]); + } + + // Passing a bool* to BeginTabItem() is similar to passing one to Begin(): + // the underlying bool will be set to false when the tab is closed. + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + for (int n = 0; n < IM_ARRAYSIZE(opened); n++) + if (opened[n] && ImGui::BeginTabItem(names[n], &opened[n], ImGuiTabItemFlags_None)) + { + ImGui::Text("This is the %s tab!", names[n]); + if (n & 1) + ImGui::Text("I am an odd tab."); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Tabs/TabItemButton & Leading-Trailing flags"); + if (ImGui::TreeNode("TabItemButton & Leading/Trailing flags")) + { + static ImVector active_tabs; + static int next_tab_id = 0; + if (next_tab_id == 0) // Initialize with some default tabs + for (int i = 0; i < 3; i++) + active_tabs.push_back(next_tab_id++); + + // TabItemButton() and Leading/Trailing flags are distinct features which we will demo together. + // (It is possible to submit regular tabs with Leading/Trailing flags, or TabItemButton tabs without Leading/Trailing flags... + // but they tend to make more sense together) + static bool show_leading_button = true; + static bool show_trailing_button = true; + ImGui::Checkbox("Show Leading TabItemButton()", &show_leading_button); + ImGui::Checkbox("Show Trailing TabItemButton()", &show_trailing_button); + + // Expose some other flags which are useful to showcase how they interact with Leading/Trailing tabs + static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_AutoSelectNewTabs | ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_FittingPolicyResizeDown; + ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", &tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); + + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + // Demo a Leading TabItemButton(): click the "?" button to open a menu + if (show_leading_button) + if (ImGui::TabItemButton("?", ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_NoTooltip)) + ImGui::OpenPopup("MyHelpMenu"); + if (ImGui::BeginPopup("MyHelpMenu")) + { + ImGui::Selectable("Hello!"); + ImGui::EndPopup(); + } + + // Demo Trailing Tabs: click the "+" button to add a new tab (in your app you may want to use a font icon instead of the "+") + // Note that we submit it before the regular tabs, but because of the ImGuiTabItemFlags_Trailing flag it will always appear at the end. + if (show_trailing_button) + if (ImGui::TabItemButton("+", ImGuiTabItemFlags_Trailing | ImGuiTabItemFlags_NoTooltip)) + active_tabs.push_back(next_tab_id++); // Add new tab + + // Submit our regular tabs + for (int n = 0; n < active_tabs.Size; ) + { + bool open = true; + char name[16]; + snprintf(name, IM_ARRAYSIZE(name), "%04d", active_tabs[n]); + if (ImGui::BeginTabItem(name, &open, ImGuiTabItemFlags_None)) + { + ImGui::Text("This is the %s tab!", name); + ImGui::EndTabItem(); + } + + if (!open) + active_tabs.erase(active_tabs.Data + n); + else + n++; + } + + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + // Plot/Graph widgets are not very good. + // Consider using a third-party library such as ImPlot: https://github.com/epezent/implot + // (see others https://github.com/ocornut/imgui/wiki/Useful-Extensions) + IMGUI_DEMO_MARKER("Widgets/Plotting"); + if (ImGui::TreeNode("Plotting")) + { + static bool animate = true; + ImGui::Checkbox("Animate", &animate); + + // Plot as lines and plot as histogram + IMGUI_DEMO_MARKER("Widgets/Plotting/PlotLines, PlotHistogram"); + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Frame Times", arr, IM_ARRAYSIZE(arr)); + ImGui::PlotHistogram("Histogram", arr, IM_ARRAYSIZE(arr), 0, NULL, 0.0f, 1.0f, ImVec2(0, 80.0f)); + + // Fill an array of contiguous float values to plot + // Tip: If your float aren't contiguous but part of a structure, you can pass a pointer to your first float + // and the sizeof() of your structure in the "stride" parameter. + static float values[90] = {}; + static int values_offset = 0; + static double refresh_time = 0.0; + if (!animate || refresh_time == 0.0) + refresh_time = ImGui::GetTime(); + while (refresh_time < ImGui::GetTime()) // Create data at fixed 60 Hz rate for the demo + { + static float phase = 0.0f; + values[values_offset] = cosf(phase); + values_offset = (values_offset + 1) % IM_ARRAYSIZE(values); + phase += 0.10f * values_offset; + refresh_time += 1.0f / 60.0f; + } + + // Plots can display overlay texts + // (in this example, we will display an average value) + { + float average = 0.0f; + for (int n = 0; n < IM_ARRAYSIZE(values); n++) + average += values[n]; + average /= (float)IM_ARRAYSIZE(values); + char overlay[32]; + sprintf(overlay, "avg %f", average); + ImGui::PlotLines("Lines", values, IM_ARRAYSIZE(values), values_offset, overlay, -1.0f, 1.0f, ImVec2(0, 80.0f)); + } + + // Use functions to generate output + // FIXME: This is rather awkward because current plot API only pass in indices. + // We probably want an API passing floats and user provide sample rate/count. + struct Funcs + { + static float Sin(void*, int i) { return sinf(i * 0.1f); } + static float Saw(void*, int i) { return (i & 1) ? 1.0f : -1.0f; } + }; + static int func_type = 0, display_count = 70; + ImGui::Separator(); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::Combo("func", &func_type, "Sin\0Saw\0"); + ImGui::SameLine(); + ImGui::SliderInt("Sample count", &display_count, 1, 400); + float (*func)(void*, int) = (func_type == 0) ? Funcs::Sin : Funcs::Saw; + ImGui::PlotLines("Lines", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); + ImGui::PlotHistogram("Histogram", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); + ImGui::Separator(); + + // Animate a simple progress bar + IMGUI_DEMO_MARKER("Widgets/Plotting/ProgressBar"); + static float progress = 0.0f, progress_dir = 1.0f; + if (animate) + { + progress += progress_dir * 0.4f * ImGui::GetIO().DeltaTime; + if (progress >= +1.1f) { progress = +1.1f; progress_dir *= -1.0f; } + if (progress <= -0.1f) { progress = -0.1f; progress_dir *= -1.0f; } + } + + // Typically we would use ImVec2(-1.0f,0.0f) or ImVec2(-FLT_MIN,0.0f) to use all available width, + // or ImVec2(width,0.0f) for a specified width. ImVec2(0.0f,0.0f) uses ItemWidth. + ImGui::ProgressBar(progress, ImVec2(0.0f, 0.0f)); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::Text("Progress Bar"); + + float progress_saturated = IM_CLAMP(progress, 0.0f, 1.0f); + char buf[32]; + sprintf(buf, "%d/%d", (int)(progress_saturated * 1753), 1753); + ImGui::ProgressBar(progress, ImVec2(0.f, 0.f), buf); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Color"); + if (ImGui::TreeNode("Color/Picker Widgets")) + { + static ImVec4 color = ImVec4(114.0f / 255.0f, 144.0f / 255.0f, 154.0f / 255.0f, 200.0f / 255.0f); + + static bool alpha_preview = true; + static bool alpha_half_preview = false; + static bool drag_and_drop = true; + static bool options_menu = true; + static bool hdr = false; + ImGui::Checkbox("With Alpha Preview", &alpha_preview); + ImGui::Checkbox("With Half Alpha Preview", &alpha_half_preview); + ImGui::Checkbox("With Drag and Drop", &drag_and_drop); + ImGui::Checkbox("With Options Menu", &options_menu); ImGui::SameLine(); HelpMarker("Right-click on the individual color widget to show options."); + ImGui::Checkbox("With HDR", &hdr); ImGui::SameLine(); HelpMarker("Currently all this does is to lift the 0..1 limits on dragging widgets."); + ImGuiColorEditFlags misc_flags = (hdr ? ImGuiColorEditFlags_HDR : 0) | (drag_and_drop ? 0 : ImGuiColorEditFlags_NoDragDrop) | (alpha_half_preview ? ImGuiColorEditFlags_AlphaPreviewHalf : (alpha_preview ? ImGuiColorEditFlags_AlphaPreview : 0)) | (options_menu ? 0 : ImGuiColorEditFlags_NoOptions); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorEdit"); + ImGui::Text("Color widget:"); + ImGui::SameLine(); HelpMarker( + "Click on the color square to open a color picker.\n" + "CTRL+click on individual component to input value.\n"); + ImGui::ColorEdit3("MyColor##1", (float*)&color, misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorEdit (HSV, with Alpha)"); + ImGui::Text("Color widget HSV with Alpha:"); + ImGui::ColorEdit4("MyColor##2", (float*)&color, ImGuiColorEditFlags_DisplayHSV | misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorEdit (float display)"); + ImGui::Text("Color widget with Float Display:"); + ImGui::ColorEdit4("MyColor##2f", (float*)&color, ImGuiColorEditFlags_Float | misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorButton (with Picker)"); + ImGui::Text("Color button with Picker:"); + ImGui::SameLine(); HelpMarker( + "With the ImGuiColorEditFlags_NoInputs flag you can hide all the slider/text inputs.\n" + "With the ImGuiColorEditFlags_NoLabel flag you can pass a non-empty label which will only " + "be used for the tooltip and picker popup."); + ImGui::ColorEdit4("MyColor##3", (float*)&color, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoLabel | misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorButton (with custom Picker popup)"); + ImGui::Text("Color button with Custom Picker Popup:"); + + // Generate a default palette. The palette will persist and can be edited. + static bool saved_palette_init = true; + static ImVec4 saved_palette[32] = {}; + if (saved_palette_init) + { + for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) + { + ImGui::ColorConvertHSVtoRGB(n / 31.0f, 0.8f, 0.8f, + saved_palette[n].x, saved_palette[n].y, saved_palette[n].z); + saved_palette[n].w = 1.0f; // Alpha + } + saved_palette_init = false; + } + + static ImVec4 backup_color; + bool open_popup = ImGui::ColorButton("MyColor##3b", color, misc_flags); + ImGui::SameLine(0, ImGui::GetStyle().ItemInnerSpacing.x); + open_popup |= ImGui::Button("Palette"); + if (open_popup) + { + ImGui::OpenPopup("mypicker"); + backup_color = color; + } + if (ImGui::BeginPopup("mypicker")) + { + ImGui::Text("MY CUSTOM COLOR PICKER WITH AN AMAZING PALETTE!"); + ImGui::Separator(); + ImGui::ColorPicker4("##picker", (float*)&color, misc_flags | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoSmallPreview); + ImGui::SameLine(); + + ImGui::BeginGroup(); // Lock X position + ImGui::Text("Current"); + ImGui::ColorButton("##current", color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40)); + ImGui::Text("Previous"); + if (ImGui::ColorButton("##previous", backup_color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40))) + color = backup_color; + ImGui::Separator(); + ImGui::Text("Palette"); + for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) + { + ImGui::PushID(n); + if ((n % 8) != 0) + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemSpacing.y); + + ImGuiColorEditFlags palette_button_flags = ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_NoTooltip; + if (ImGui::ColorButton("##palette", saved_palette[n], palette_button_flags, ImVec2(20, 20))) + color = ImVec4(saved_palette[n].x, saved_palette[n].y, saved_palette[n].z, color.w); // Preserve alpha! + + // Allow user to drop colors into each palette entry. Note that ColorButton() is already a + // drag source by default, unless specifying the ImGuiColorEditFlags_NoDragDrop flag. + if (ImGui::BeginDragDropTarget()) + { + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) + memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 3); + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) + memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 4); + ImGui::EndDragDropTarget(); + } + + ImGui::PopID(); + } + ImGui::EndGroup(); + ImGui::EndPopup(); + } + + IMGUI_DEMO_MARKER("Widgets/Color/ColorButton (simple)"); + ImGui::Text("Color button only:"); + static bool no_border = false; + ImGui::Checkbox("ImGuiColorEditFlags_NoBorder", &no_border); + ImGui::ColorButton("MyColor##3c", *(ImVec4*)&color, misc_flags | (no_border ? ImGuiColorEditFlags_NoBorder : 0), ImVec2(80, 80)); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorPicker"); + ImGui::Text("Color picker:"); + static bool alpha = true; + static bool alpha_bar = true; + static bool side_preview = true; + static bool ref_color = false; + static ImVec4 ref_color_v(1.0f, 0.0f, 1.0f, 0.5f); + static int display_mode = 0; + static int picker_mode = 0; + ImGui::Checkbox("With Alpha", &alpha); + ImGui::Checkbox("With Alpha Bar", &alpha_bar); + ImGui::Checkbox("With Side Preview", &side_preview); + if (side_preview) + { + ImGui::SameLine(); + ImGui::Checkbox("With Ref Color", &ref_color); + if (ref_color) + { + ImGui::SameLine(); + ImGui::ColorEdit4("##RefColor", &ref_color_v.x, ImGuiColorEditFlags_NoInputs | misc_flags); + } + } + ImGui::Combo("Display Mode", &display_mode, "Auto/Current\0None\0RGB Only\0HSV Only\0Hex Only\0"); + ImGui::SameLine(); HelpMarker( + "ColorEdit defaults to displaying RGB inputs if you don't specify a display mode, " + "but the user can change it with a right-click on those inputs.\n\nColorPicker defaults to displaying RGB+HSV+Hex " + "if you don't specify a display mode.\n\nYou can change the defaults using SetColorEditOptions()."); + ImGui::SameLine(); HelpMarker("When not specified explicitly (Auto/Current mode), user can right-click the picker to change mode."); + ImGuiColorEditFlags flags = misc_flags; + if (!alpha) flags |= ImGuiColorEditFlags_NoAlpha; // This is by default if you call ColorPicker3() instead of ColorPicker4() + if (alpha_bar) flags |= ImGuiColorEditFlags_AlphaBar; + if (!side_preview) flags |= ImGuiColorEditFlags_NoSidePreview; + if (picker_mode == 1) flags |= ImGuiColorEditFlags_PickerHueBar; + if (picker_mode == 2) flags |= ImGuiColorEditFlags_PickerHueWheel; + if (display_mode == 1) flags |= ImGuiColorEditFlags_NoInputs; // Disable all RGB/HSV/Hex displays + if (display_mode == 2) flags |= ImGuiColorEditFlags_DisplayRGB; // Override display mode + if (display_mode == 3) flags |= ImGuiColorEditFlags_DisplayHSV; + if (display_mode == 4) flags |= ImGuiColorEditFlags_DisplayHex; + ImGui::ColorPicker4("MyColor##4", (float*)&color, flags, ref_color ? &ref_color_v.x : NULL); + + ImGui::Text("Set defaults in code:"); + ImGui::SameLine(); HelpMarker( + "SetColorEditOptions() is designed to allow you to set boot-time default.\n" + "We don't have Push/Pop functions because you can force options on a per-widget basis if needed," + "and the user can change non-forced ones with the options menu.\nWe don't have a getter to avoid" + "encouraging you to persistently save values that aren't forward-compatible."); + if (ImGui::Button("Default: Uint8 + HSV + Hue Bar")) + ImGui::SetColorEditOptions(ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_PickerHueBar); + if (ImGui::Button("Default: Float + HDR + Hue Wheel")) + ImGui::SetColorEditOptions(ImGuiColorEditFlags_Float | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_PickerHueWheel); + + // Always both a small version of both types of pickers (to make it more visible in the demo to people who are skimming quickly through it) + ImGui::Text("Both types:"); + float w = (ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.y) * 0.40f; + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##5", (float*)&color, ImGuiColorEditFlags_PickerHueBar | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + ImGui::SameLine(); + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##6", (float*)&color, ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + + // HSV encoded support (to avoid RGB<>HSV round trips and singularities when S==0 or V==0) + static ImVec4 color_hsv(0.23f, 1.0f, 1.0f, 1.0f); // Stored as HSV! + ImGui::Spacing(); + ImGui::Text("HSV encoded colors"); + ImGui::SameLine(); HelpMarker( + "By default, colors are given to ColorEdit and ColorPicker in RGB, but ImGuiColorEditFlags_InputHSV" + "allows you to store colors as HSV and pass them to ColorEdit and ColorPicker as HSV. This comes with the" + "added benefit that you can manipulate hue values with the picker even when saturation or value are zero."); + ImGui::Text("Color widget with InputHSV:"); + ImGui::ColorEdit4("HSV shown as RGB##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); + ImGui::ColorEdit4("HSV shown as HSV##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); + ImGui::DragFloat4("Raw HSV values", (float*)&color_hsv, 0.01f, 0.0f, 1.0f); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and Slider Flags"); + if (ImGui::TreeNode("Drag/Slider Flags")) + { + // Demonstrate using advanced flags for DragXXX and SliderXXX functions. Note that the flags are the same! + static ImGuiSliderFlags flags = ImGuiSliderFlags_None; + ImGui::CheckboxFlags("ImGuiSliderFlags_AlwaysClamp", &flags, ImGuiSliderFlags_AlwaysClamp); + ImGui::SameLine(); HelpMarker("Always clamp value to min/max bounds (if any) when input manually with CTRL+Click."); + ImGui::CheckboxFlags("ImGuiSliderFlags_Logarithmic", &flags, ImGuiSliderFlags_Logarithmic); + ImGui::SameLine(); HelpMarker("Enable logarithmic editing (more precision for small values)."); + ImGui::CheckboxFlags("ImGuiSliderFlags_NoRoundToFormat", &flags, ImGuiSliderFlags_NoRoundToFormat); + ImGui::SameLine(); HelpMarker("Disable rounding underlying value to match precision of the format string (e.g. %.3f values are rounded to those 3 digits)."); + ImGui::CheckboxFlags("ImGuiSliderFlags_NoInput", &flags, ImGuiSliderFlags_NoInput); + ImGui::SameLine(); HelpMarker("Disable CTRL+Click or Enter key allowing to input text directly into the widget."); + + // Drags + static float drag_f = 0.5f; + static int drag_i = 50; + ImGui::Text("Underlying float value: %f", drag_f); + ImGui::DragFloat("DragFloat (0 -> 1)", &drag_f, 0.005f, 0.0f, 1.0f, "%.3f", flags); + ImGui::DragFloat("DragFloat (0 -> +inf)", &drag_f, 0.005f, 0.0f, FLT_MAX, "%.3f", flags); + ImGui::DragFloat("DragFloat (-inf -> 1)", &drag_f, 0.005f, -FLT_MAX, 1.0f, "%.3f", flags); + ImGui::DragFloat("DragFloat (-inf -> +inf)", &drag_f, 0.005f, -FLT_MAX, +FLT_MAX, "%.3f", flags); + ImGui::DragInt("DragInt (0 -> 100)", &drag_i, 0.5f, 0, 100, "%d", flags); + + // Sliders + static float slider_f = 0.5f; + static int slider_i = 50; + ImGui::Text("Underlying float value: %f", slider_f); + ImGui::SliderFloat("SliderFloat (0 -> 1)", &slider_f, 0.0f, 1.0f, "%.3f", flags); + ImGui::SliderInt("SliderInt (0 -> 100)", &slider_i, 0, 100, "%d", flags); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Range Widgets"); + if (ImGui::TreeNode("Range Widgets")) + { + static float begin = 10, end = 90; + static int begin_i = 100, end_i = 1000; + ImGui::DragFloatRange2("range float", &begin, &end, 0.25f, 0.0f, 100.0f, "Min: %.1f %%", "Max: %.1f %%", ImGuiSliderFlags_AlwaysClamp); + ImGui::DragIntRange2("range int", &begin_i, &end_i, 5, 0, 1000, "Min: %d units", "Max: %d units"); + ImGui::DragIntRange2("range int (no bounds)", &begin_i, &end_i, 5, 0, 0, "Min: %d units", "Max: %d units"); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Data Types"); + if (ImGui::TreeNode("Data Types")) + { + // DragScalar/InputScalar/SliderScalar functions allow various data types + // - signed/unsigned + // - 8/16/32/64-bits + // - integer/float/double + // To avoid polluting the public API with all possible combinations, we use the ImGuiDataType enum + // to pass the type, and passing all arguments by pointer. + // This is the reason the test code below creates local variables to hold "zero" "one" etc. for each type. + // In practice, if you frequently use a given type that is not covered by the normal API entry points, + // you can wrap it yourself inside a 1 line function which can take typed argument as value instead of void*, + // and then pass their address to the generic function. For example: + // bool MySliderU64(const char *label, u64* value, u64 min = 0, u64 max = 0, const char* format = "%lld") + // { + // return SliderScalar(label, ImGuiDataType_U64, value, &min, &max, format); + // } + + // Setup limits (as helper variables so we can take their address, as explained above) + // Note: SliderScalar() functions have a maximum usable range of half the natural type maximum, hence the /2. + #ifndef LLONG_MIN + ImS64 LLONG_MIN = -9223372036854775807LL - 1; + ImS64 LLONG_MAX = 9223372036854775807LL; + ImU64 ULLONG_MAX = (2ULL * 9223372036854775807LL + 1); + #endif + const char s8_zero = 0, s8_one = 1, s8_fifty = 50, s8_min = -128, s8_max = 127; + const ImU8 u8_zero = 0, u8_one = 1, u8_fifty = 50, u8_min = 0, u8_max = 255; + const short s16_zero = 0, s16_one = 1, s16_fifty = 50, s16_min = -32768, s16_max = 32767; + const ImU16 u16_zero = 0, u16_one = 1, u16_fifty = 50, u16_min = 0, u16_max = 65535; + const ImS32 s32_zero = 0, s32_one = 1, s32_fifty = 50, s32_min = INT_MIN/2, s32_max = INT_MAX/2, s32_hi_a = INT_MAX/2 - 100, s32_hi_b = INT_MAX/2; + const ImU32 u32_zero = 0, u32_one = 1, u32_fifty = 50, u32_min = 0, u32_max = UINT_MAX/2, u32_hi_a = UINT_MAX/2 - 100, u32_hi_b = UINT_MAX/2; + const ImS64 s64_zero = 0, s64_one = 1, s64_fifty = 50, s64_min = LLONG_MIN/2, s64_max = LLONG_MAX/2, s64_hi_a = LLONG_MAX/2 - 100, s64_hi_b = LLONG_MAX/2; + const ImU64 u64_zero = 0, u64_one = 1, u64_fifty = 50, u64_min = 0, u64_max = ULLONG_MAX/2, u64_hi_a = ULLONG_MAX/2 - 100, u64_hi_b = ULLONG_MAX/2; + const float f32_zero = 0.f, f32_one = 1.f, f32_lo_a = -10000000000.0f, f32_hi_a = +10000000000.0f; + const double f64_zero = 0., f64_one = 1., f64_lo_a = -1000000000000000.0, f64_hi_a = +1000000000000000.0; + + // State + static char s8_v = 127; + static ImU8 u8_v = 255; + static short s16_v = 32767; + static ImU16 u16_v = 65535; + static ImS32 s32_v = -1; + static ImU32 u32_v = (ImU32)-1; + static ImS64 s64_v = -1; + static ImU64 u64_v = (ImU64)-1; + static float f32_v = 0.123f; + static double f64_v = 90000.01234567890123456789; + + const float drag_speed = 0.2f; + static bool drag_clamp = false; + IMGUI_DEMO_MARKER("Widgets/Data Types/Drags"); + ImGui::Text("Drags:"); + ImGui::Checkbox("Clamp integers to 0..50", &drag_clamp); + ImGui::SameLine(); HelpMarker( + "As with every widget in dear imgui, we never modify values unless there is a user interaction.\n" + "You can override the clamping limits by using CTRL+Click to input a value."); + ImGui::DragScalar("drag s8", ImGuiDataType_S8, &s8_v, drag_speed, drag_clamp ? &s8_zero : NULL, drag_clamp ? &s8_fifty : NULL); + ImGui::DragScalar("drag u8", ImGuiDataType_U8, &u8_v, drag_speed, drag_clamp ? &u8_zero : NULL, drag_clamp ? &u8_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s16", ImGuiDataType_S16, &s16_v, drag_speed, drag_clamp ? &s16_zero : NULL, drag_clamp ? &s16_fifty : NULL); + ImGui::DragScalar("drag u16", ImGuiDataType_U16, &u16_v, drag_speed, drag_clamp ? &u16_zero : NULL, drag_clamp ? &u16_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s32", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL); + ImGui::DragScalar("drag s32 hex", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL, "0x%08X"); + ImGui::DragScalar("drag u32", ImGuiDataType_U32, &u32_v, drag_speed, drag_clamp ? &u32_zero : NULL, drag_clamp ? &u32_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s64", ImGuiDataType_S64, &s64_v, drag_speed, drag_clamp ? &s64_zero : NULL, drag_clamp ? &s64_fifty : NULL); + ImGui::DragScalar("drag u64", ImGuiDataType_U64, &u64_v, drag_speed, drag_clamp ? &u64_zero : NULL, drag_clamp ? &u64_fifty : NULL); + ImGui::DragScalar("drag float", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f"); + ImGui::DragScalar("drag float log", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f", ImGuiSliderFlags_Logarithmic); + ImGui::DragScalar("drag double", ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, NULL, "%.10f grams"); + ImGui::DragScalar("drag double log",ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, &f64_one, "0 < %.10f < 1", ImGuiSliderFlags_Logarithmic); + + IMGUI_DEMO_MARKER("Widgets/Data Types/Sliders"); + ImGui::Text("Sliders"); + ImGui::SliderScalar("slider s8 full", ImGuiDataType_S8, &s8_v, &s8_min, &s8_max, "%d"); + ImGui::SliderScalar("slider u8 full", ImGuiDataType_U8, &u8_v, &u8_min, &u8_max, "%u"); + ImGui::SliderScalar("slider s16 full", ImGuiDataType_S16, &s16_v, &s16_min, &s16_max, "%d"); + ImGui::SliderScalar("slider u16 full", ImGuiDataType_U16, &u16_v, &u16_min, &u16_max, "%u"); + ImGui::SliderScalar("slider s32 low", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty,"%d"); + ImGui::SliderScalar("slider s32 high", ImGuiDataType_S32, &s32_v, &s32_hi_a, &s32_hi_b, "%d"); + ImGui::SliderScalar("slider s32 full", ImGuiDataType_S32, &s32_v, &s32_min, &s32_max, "%d"); + ImGui::SliderScalar("slider s32 hex", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty, "0x%04X"); + ImGui::SliderScalar("slider u32 low", ImGuiDataType_U32, &u32_v, &u32_zero, &u32_fifty,"%u"); + ImGui::SliderScalar("slider u32 high", ImGuiDataType_U32, &u32_v, &u32_hi_a, &u32_hi_b, "%u"); + ImGui::SliderScalar("slider u32 full", ImGuiDataType_U32, &u32_v, &u32_min, &u32_max, "%u"); + ImGui::SliderScalar("slider s64 low", ImGuiDataType_S64, &s64_v, &s64_zero, &s64_fifty,"%" IM_PRId64); + ImGui::SliderScalar("slider s64 high", ImGuiDataType_S64, &s64_v, &s64_hi_a, &s64_hi_b, "%" IM_PRId64); + ImGui::SliderScalar("slider s64 full", ImGuiDataType_S64, &s64_v, &s64_min, &s64_max, "%" IM_PRId64); + ImGui::SliderScalar("slider u64 low", ImGuiDataType_U64, &u64_v, &u64_zero, &u64_fifty,"%" IM_PRIu64 " ms"); + ImGui::SliderScalar("slider u64 high", ImGuiDataType_U64, &u64_v, &u64_hi_a, &u64_hi_b, "%" IM_PRIu64 " ms"); + ImGui::SliderScalar("slider u64 full", ImGuiDataType_U64, &u64_v, &u64_min, &u64_max, "%" IM_PRIu64 " ms"); + ImGui::SliderScalar("slider float low", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one); + ImGui::SliderScalar("slider float low log", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one, "%.10f", ImGuiSliderFlags_Logarithmic); + ImGui::SliderScalar("slider float high", ImGuiDataType_Float, &f32_v, &f32_lo_a, &f32_hi_a, "%e"); + ImGui::SliderScalar("slider double low", ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f grams"); + ImGui::SliderScalar("slider double low log",ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f", ImGuiSliderFlags_Logarithmic); + ImGui::SliderScalar("slider double high", ImGuiDataType_Double, &f64_v, &f64_lo_a, &f64_hi_a, "%e grams"); + + ImGui::Text("Sliders (reverse)"); + ImGui::SliderScalar("slider s8 reverse", ImGuiDataType_S8, &s8_v, &s8_max, &s8_min, "%d"); + ImGui::SliderScalar("slider u8 reverse", ImGuiDataType_U8, &u8_v, &u8_max, &u8_min, "%u"); + ImGui::SliderScalar("slider s32 reverse", ImGuiDataType_S32, &s32_v, &s32_fifty, &s32_zero, "%d"); + ImGui::SliderScalar("slider u32 reverse", ImGuiDataType_U32, &u32_v, &u32_fifty, &u32_zero, "%u"); + ImGui::SliderScalar("slider s64 reverse", ImGuiDataType_S64, &s64_v, &s64_fifty, &s64_zero, "%" IM_PRId64); + ImGui::SliderScalar("slider u64 reverse", ImGuiDataType_U64, &u64_v, &u64_fifty, &u64_zero, "%" IM_PRIu64 " ms"); + + IMGUI_DEMO_MARKER("Widgets/Data Types/Inputs"); + static bool inputs_step = true; + ImGui::Text("Inputs"); + ImGui::Checkbox("Show step buttons", &inputs_step); + ImGui::InputScalar("input s8", ImGuiDataType_S8, &s8_v, inputs_step ? &s8_one : NULL, NULL, "%d"); + ImGui::InputScalar("input u8", ImGuiDataType_U8, &u8_v, inputs_step ? &u8_one : NULL, NULL, "%u"); + ImGui::InputScalar("input s16", ImGuiDataType_S16, &s16_v, inputs_step ? &s16_one : NULL, NULL, "%d"); + ImGui::InputScalar("input u16", ImGuiDataType_U16, &u16_v, inputs_step ? &u16_one : NULL, NULL, "%u"); + ImGui::InputScalar("input s32", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%d"); + ImGui::InputScalar("input s32 hex", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%04X"); + ImGui::InputScalar("input u32", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%u"); + ImGui::InputScalar("input u32 hex", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%08X"); + ImGui::InputScalar("input s64", ImGuiDataType_S64, &s64_v, inputs_step ? &s64_one : NULL); + ImGui::InputScalar("input u64", ImGuiDataType_U64, &u64_v, inputs_step ? &u64_one : NULL); + ImGui::InputScalar("input float", ImGuiDataType_Float, &f32_v, inputs_step ? &f32_one : NULL); + ImGui::InputScalar("input double", ImGuiDataType_Double, &f64_v, inputs_step ? &f64_one : NULL); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Multi-component Widgets"); + if (ImGui::TreeNode("Multi-component Widgets")) + { + static float vec4f[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; + static int vec4i[4] = { 1, 5, 100, 255 }; + + ImGui::InputFloat2("input float2", vec4f); + ImGui::DragFloat2("drag float2", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat2("slider float2", vec4f, 0.0f, 1.0f); + ImGui::InputInt2("input int2", vec4i); + ImGui::DragInt2("drag int2", vec4i, 1, 0, 255); + ImGui::SliderInt2("slider int2", vec4i, 0, 255); + ImGui::Spacing(); + + ImGui::InputFloat3("input float3", vec4f); + ImGui::DragFloat3("drag float3", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat3("slider float3", vec4f, 0.0f, 1.0f); + ImGui::InputInt3("input int3", vec4i); + ImGui::DragInt3("drag int3", vec4i, 1, 0, 255); + ImGui::SliderInt3("slider int3", vec4i, 0, 255); + ImGui::Spacing(); + + ImGui::InputFloat4("input float4", vec4f); + ImGui::DragFloat4("drag float4", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat4("slider float4", vec4f, 0.0f, 1.0f); + ImGui::InputInt4("input int4", vec4i); + ImGui::DragInt4("drag int4", vec4i, 1, 0, 255); + ImGui::SliderInt4("slider int4", vec4i, 0, 255); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Vertical Sliders"); + if (ImGui::TreeNode("Vertical Sliders")) + { + const float spacing = 4; + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(spacing, spacing)); + + static int int_value = 0; + ImGui::VSliderInt("##int", ImVec2(18, 160), &int_value, 0, 5); + ImGui::SameLine(); + + static float values[7] = { 0.0f, 0.60f, 0.35f, 0.9f, 0.70f, 0.20f, 0.0f }; + ImGui::PushID("set1"); + for (int i = 0; i < 7; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleColor(ImGuiCol_FrameBg, (ImVec4)ImColor::HSV(i / 7.0f, 0.5f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_FrameBgHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_FrameBgActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_SliderGrab, (ImVec4)ImColor::HSV(i / 7.0f, 0.9f, 0.9f)); + ImGui::VSliderFloat("##v", ImVec2(18, 160), &values[i], 0.0f, 1.0f, ""); + if (ImGui::IsItemActive() || ImGui::IsItemHovered()) + ImGui::SetTooltip("%.3f", values[i]); + ImGui::PopStyleColor(4); + ImGui::PopID(); + } + ImGui::PopID(); + + ImGui::SameLine(); + ImGui::PushID("set2"); + static float values2[4] = { 0.20f, 0.80f, 0.40f, 0.25f }; + const int rows = 3; + const ImVec2 small_slider_size(18, (float)(int)((160.0f - (rows - 1) * spacing) / rows)); + for (int nx = 0; nx < 4; nx++) + { + if (nx > 0) ImGui::SameLine(); + ImGui::BeginGroup(); + for (int ny = 0; ny < rows; ny++) + { + ImGui::PushID(nx * rows + ny); + ImGui::VSliderFloat("##v", small_slider_size, &values2[nx], 0.0f, 1.0f, ""); + if (ImGui::IsItemActive() || ImGui::IsItemHovered()) + ImGui::SetTooltip("%.3f", values2[nx]); + ImGui::PopID(); + } + ImGui::EndGroup(); + } + ImGui::PopID(); + + ImGui::SameLine(); + ImGui::PushID("set3"); + for (int i = 0; i < 4; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleVar(ImGuiStyleVar_GrabMinSize, 40); + ImGui::VSliderFloat("##v", ImVec2(40, 160), &values[i], 0.0f, 1.0f, "%.2f\nsec"); + ImGui::PopStyleVar(); + ImGui::PopID(); + } + ImGui::PopID(); + ImGui::PopStyleVar(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and drop"); + if (ImGui::TreeNode("Drag and Drop")) + { + IMGUI_DEMO_MARKER("Widgets/Drag and drop/Standard widgets"); + if (ImGui::TreeNode("Drag and drop in standard widgets")) + { + // ColorEdit widgets automatically act as drag source and drag target. + // They are using standardized payload strings IMGUI_PAYLOAD_TYPE_COLOR_3F and IMGUI_PAYLOAD_TYPE_COLOR_4F + // to allow your own widgets to use colors in their drag and drop interaction. + // Also see 'Demo->Widgets->Color/Picker Widgets->Palette' demo. + HelpMarker("You can drag from the color squares."); + static float col1[3] = { 1.0f, 0.0f, 0.2f }; + static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::ColorEdit3("color 1", col1); + ImGui::ColorEdit4("color 2", col2); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and drop/Copy-swap items"); + if (ImGui::TreeNode("Drag and drop to copy/swap items")) + { + enum Mode + { + Mode_Copy, + Mode_Move, + Mode_Swap + }; + static int mode = 0; + if (ImGui::RadioButton("Copy", mode == Mode_Copy)) { mode = Mode_Copy; } ImGui::SameLine(); + if (ImGui::RadioButton("Move", mode == Mode_Move)) { mode = Mode_Move; } ImGui::SameLine(); + if (ImGui::RadioButton("Swap", mode == Mode_Swap)) { mode = Mode_Swap; } + static const char* names[9] = + { + "Bobby", "Beatrice", "Betty", + "Brianna", "Barry", "Bernard", + "Bibi", "Blaine", "Bryn" + }; + for (int n = 0; n < IM_ARRAYSIZE(names); n++) + { + ImGui::PushID(n); + if ((n % 3) != 0) + ImGui::SameLine(); + ImGui::Button(names[n], ImVec2(60, 60)); + + // Our buttons are both drag sources and drag targets here! + if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_None)) + { + // Set payload to carry the index of our item (could be anything) + ImGui::SetDragDropPayload("DND_DEMO_CELL", &n, sizeof(int)); + + // Display preview (could be anything, e.g. when dragging an image we could decide to display + // the filename and a small preview of the image, etc.) + if (mode == Mode_Copy) { ImGui::Text("Copy %s", names[n]); } + if (mode == Mode_Move) { ImGui::Text("Move %s", names[n]); } + if (mode == Mode_Swap) { ImGui::Text("Swap %s", names[n]); } + ImGui::EndDragDropSource(); + } + if (ImGui::BeginDragDropTarget()) + { + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload("DND_DEMO_CELL")) + { + IM_ASSERT(payload->DataSize == sizeof(int)); + int payload_n = *(const int*)payload->Data; + if (mode == Mode_Copy) + { + names[n] = names[payload_n]; + } + if (mode == Mode_Move) + { + names[n] = names[payload_n]; + names[payload_n] = ""; + } + if (mode == Mode_Swap) + { + const char* tmp = names[n]; + names[n] = names[payload_n]; + names[payload_n] = tmp; + } + } + ImGui::EndDragDropTarget(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and Drop/Drag to reorder items (simple)"); + if (ImGui::TreeNode("Drag to reorder items (simple)")) + { + // Simple reordering + HelpMarker( + "We don't use the drag and drop api at all here! " + "Instead we query when the item is held but not hovered, and order items accordingly."); + static const char* item_names[] = { "Item One", "Item Two", "Item Three", "Item Four", "Item Five" }; + for (int n = 0; n < IM_ARRAYSIZE(item_names); n++) + { + const char* item = item_names[n]; + ImGui::Selectable(item); + + if (ImGui::IsItemActive() && !ImGui::IsItemHovered()) + { + int n_next = n + (ImGui::GetMouseDragDelta(0).y < 0.f ? -1 : 1); + if (n_next >= 0 && n_next < IM_ARRAYSIZE(item_names)) + { + item_names[n] = item_names[n_next]; + item_names[n_next] = item; + ImGui::ResetMouseDragDelta(); + } + } + } + ImGui::TreePop(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Querying Item Status (Edited,Active,Hovered etc.)"); + if (ImGui::TreeNode("Querying Item Status (Edited/Active/Hovered etc.)")) + { + // Select an item type + const char* item_names[] = + { + "Text", "Button", "Button (w/ repeat)", "Checkbox", "SliderFloat", "InputText", "InputTextMultiline", "InputFloat", + "InputFloat3", "ColorEdit4", "Selectable", "MenuItem", "TreeNode", "TreeNode (w/ double-click)", "Combo", "ListBox" + }; + static int item_type = 4; + static bool item_disabled = false; + ImGui::Combo("Item Type", &item_type, item_names, IM_ARRAYSIZE(item_names), IM_ARRAYSIZE(item_names)); + ImGui::SameLine(); + HelpMarker("Testing how various types of items are interacting with the IsItemXXX functions. Note that the bool return value of most ImGui function is generally equivalent to calling ImGui::IsItemHovered()."); + ImGui::Checkbox("Item Disabled", &item_disabled); + + // Submit selected items so we can query their status in the code following it. + bool ret = false; + static bool b = false; + static float col4f[4] = { 1.0f, 0.5, 0.0f, 1.0f }; + static char str[16] = {}; + if (item_disabled) + ImGui::BeginDisabled(true); + if (item_type == 0) { ImGui::Text("ITEM: Text"); } // Testing text items with no identifier/interaction + if (item_type == 1) { ret = ImGui::Button("ITEM: Button"); } // Testing button + if (item_type == 2) { ImGui::PushButtonRepeat(true); ret = ImGui::Button("ITEM: Button"); ImGui::PopButtonRepeat(); } // Testing button (with repeater) + if (item_type == 3) { ret = ImGui::Checkbox("ITEM: Checkbox", &b); } // Testing checkbox + if (item_type == 4) { ret = ImGui::SliderFloat("ITEM: SliderFloat", &col4f[0], 0.0f, 1.0f); } // Testing basic item + if (item_type == 5) { ret = ImGui::InputText("ITEM: InputText", &str[0], IM_ARRAYSIZE(str)); } // Testing input text (which handles tabbing) + if (item_type == 6) { ret = ImGui::InputTextMultiline("ITEM: InputTextMultiline", &str[0], IM_ARRAYSIZE(str)); } // Testing input text (which uses a child window) + if (item_type == 7) { ret = ImGui::InputFloat("ITEM: InputFloat", col4f, 1.0f); } // Testing +/- buttons on scalar input + if (item_type == 8) { ret = ImGui::InputFloat3("ITEM: InputFloat3", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) + if (item_type == 9) { ret = ImGui::ColorEdit4("ITEM: ColorEdit4", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) + if (item_type == 10){ ret = ImGui::Selectable("ITEM: Selectable"); } // Testing selectable item + if (item_type == 11){ ret = ImGui::MenuItem("ITEM: MenuItem"); } // Testing menu item (they use ImGuiButtonFlags_PressedOnRelease button policy) + if (item_type == 12){ ret = ImGui::TreeNode("ITEM: TreeNode"); if (ret) ImGui::TreePop(); } // Testing tree node + if (item_type == 13){ ret = ImGui::TreeNodeEx("ITEM: TreeNode w/ ImGuiTreeNodeFlags_OpenOnDoubleClick", ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_NoTreePushOnOpen); } // Testing tree node with ImGuiButtonFlags_PressedOnDoubleClick button policy. + if (item_type == 14){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::Combo("ITEM: Combo", ¤t, items, IM_ARRAYSIZE(items)); } + if (item_type == 15){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::ListBox("ITEM: ListBox", ¤t, items, IM_ARRAYSIZE(items), IM_ARRAYSIZE(items)); } + + bool hovered_delay_none = ImGui::IsItemHovered(); + bool hovered_delay_short = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort); + bool hovered_delay_normal = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal); + + // Display the values of IsItemHovered() and other common item state functions. + // Note that the ImGuiHoveredFlags_XXX flags can be combined. + // Because BulletText is an item itself and that would affect the output of IsItemXXX functions, + // we query every state in a single call to avoid storing them and to simplify the code. + ImGui::BulletText( + "Return value = %d\n" + "IsItemFocused() = %d\n" + "IsItemHovered() = %d\n" + "IsItemHovered(_AllowWhenBlockedByPopup) = %d\n" + "IsItemHovered(_AllowWhenBlockedByActiveItem) = %d\n" + "IsItemHovered(_AllowWhenOverlapped) = %d\n" + "IsItemHovered(_AllowWhenDisabled) = %d\n" + "IsItemHovered(_RectOnly) = %d\n" + "IsItemActive() = %d\n" + "IsItemEdited() = %d\n" + "IsItemActivated() = %d\n" + "IsItemDeactivated() = %d\n" + "IsItemDeactivatedAfterEdit() = %d\n" + "IsItemVisible() = %d\n" + "IsItemClicked() = %d\n" + "IsItemToggledOpen() = %d\n" + "GetItemRectMin() = (%.1f, %.1f)\n" + "GetItemRectMax() = (%.1f, %.1f)\n" + "GetItemRectSize() = (%.1f, %.1f)", + ret, + ImGui::IsItemFocused(), + ImGui::IsItemHovered(), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenOverlapped), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled), + ImGui::IsItemHovered(ImGuiHoveredFlags_RectOnly), + ImGui::IsItemActive(), + ImGui::IsItemEdited(), + ImGui::IsItemActivated(), + ImGui::IsItemDeactivated(), + ImGui::IsItemDeactivatedAfterEdit(), + ImGui::IsItemVisible(), + ImGui::IsItemClicked(), + ImGui::IsItemToggledOpen(), + ImGui::GetItemRectMin().x, ImGui::GetItemRectMin().y, + ImGui::GetItemRectMax().x, ImGui::GetItemRectMax().y, + ImGui::GetItemRectSize().x, ImGui::GetItemRectSize().y + ); + ImGui::BulletText( + "w/ Hovering Delay: None = %d, Fast %d, Normal = %d", hovered_delay_none, hovered_delay_short, hovered_delay_normal); + + if (item_disabled) + ImGui::EndDisabled(); + + char buf[1] = ""; + ImGui::InputText("unused", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_ReadOnly); + ImGui::SameLine(); + HelpMarker("This widget is only here to be able to tab-out of the widgets above and see e.g. Deactivated() status."); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Querying Window Status (Focused,Hovered etc.)"); + if (ImGui::TreeNode("Querying Window Status (Focused/Hovered etc.)")) + { + static bool embed_all_inside_a_child_window = false; + ImGui::Checkbox("Embed everything inside a child window for testing _RootWindow flag.", &embed_all_inside_a_child_window); + if (embed_all_inside_a_child_window) + ImGui::BeginChild("outer_child", ImVec2(0, ImGui::GetFontSize() * 20.0f), true); + + // Testing IsWindowFocused() function with its various flags. + ImGui::BulletText( + "IsWindowFocused() = %d\n" + "IsWindowFocused(_ChildWindows) = %d\n" + "IsWindowFocused(_ChildWindows|_NoPopupHierarchy) = %d\n" + "IsWindowFocused(_ChildWindows|_DockHierarchy) = %d\n" + "IsWindowFocused(_ChildWindows|_RootWindow) = %d\n" + "IsWindowFocused(_ChildWindows|_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowFocused(_ChildWindows|_RootWindow|_DockHierarchy) = %d\n" + "IsWindowFocused(_RootWindow) = %d\n" + "IsWindowFocused(_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowFocused(_RootWindow|_DockHierarchy) = %d\n" + "IsWindowFocused(_AnyWindow) = %d\n", + ImGui::IsWindowFocused(), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_NoPopupHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_DockHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_NoPopupHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_DockHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow), + ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_NoPopupHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_DockHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow)); + + // Testing IsWindowHovered() function with its various flags. + ImGui::BulletText( + "IsWindowHovered() = %d\n" + "IsWindowHovered(_AllowWhenBlockedByPopup) = %d\n" + "IsWindowHovered(_AllowWhenBlockedByActiveItem) = %d\n" + "IsWindowHovered(_ChildWindows) = %d\n" + "IsWindowHovered(_ChildWindows|_NoPopupHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_DockHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_RootWindow) = %d\n" + "IsWindowHovered(_ChildWindows|_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_RootWindow|_DockHierarchy) = %d\n" + "IsWindowHovered(_RootWindow) = %d\n" + "IsWindowHovered(_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowHovered(_RootWindow|_DockHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_AllowWhenBlockedByPopup) = %d\n" + "IsWindowHovered(_AnyWindow) = %d\n", + ImGui::IsWindowHovered(), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_NoPopupHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_DockHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_NoPopupHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_DockHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow), + ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_NoPopupHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_DockHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow)); + + ImGui::BeginChild("child", ImVec2(0, 50), true); + ImGui::Text("This is another child window for testing the _ChildWindows flag."); + ImGui::EndChild(); + if (embed_all_inside_a_child_window) + ImGui::EndChild(); + + // Calling IsItemHovered() after begin returns the hovered status of the title bar. + // This is useful in particular if you want to create a context menu associated to the title bar of a window. + // This will also work when docked into a Tab (the Tab replace the Title Bar and guarantee the same properties). + static bool test_window = false; + ImGui::Checkbox("Hovered/Active tests after Begin() for title bar testing", &test_window); + if (test_window) + { + // FIXME-DOCK: This window cannot be docked within the ImGui Demo window, this will cause a feedback loop and get them stuck. + // Could we fix this through an ImGuiWindowClass feature? Or an API call to tag our parent as "don't skip items"? + ImGui::Begin("Title bar Hovered/Active tests", &test_window); + if (ImGui::BeginPopupContextItem()) // <-- This is using IsItemHovered() + { + if (ImGui::MenuItem("Close")) { test_window = false; } + ImGui::EndPopup(); + } + ImGui::Text( + "IsItemHovered() after begin = %d (== is title bar hovered)\n" + "IsItemActive() after begin = %d (== is window being clicked/moved)\n", + ImGui::IsItemHovered(), ImGui::IsItemActive()); + ImGui::End(); + } + + ImGui::TreePop(); + } + + // Demonstrate BeginDisabled/EndDisabled using a checkbox located at the bottom of the section (which is a bit odd: + // logically we'd have this checkbox at the top of the section, but we don't want this feature to steal that space) + if (disable_all) + ImGui::EndDisabled(); + + IMGUI_DEMO_MARKER("Widgets/Disable Block"); + if (ImGui::TreeNode("Disable block")) + { + ImGui::Checkbox("Disable entire section above", &disable_all); + ImGui::SameLine(); HelpMarker("Demonstrate using BeginDisabled()/EndDisabled() across this section."); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Filter"); + if (ImGui::TreeNode("Text Filter")) + { + // Helper class to easy setup a text filter. + // You may want to implement a more feature-full filtering scheme in your own application. + HelpMarker("Not a widget per-se, but ImGuiTextFilter is a helper to perform simple filtering on text strings."); + static ImGuiTextFilter filter; + ImGui::Text("Filter usage:\n" + " \"\" display all lines\n" + " \"xxx\" display lines containing \"xxx\"\n" + " \"xxx,yyy\" display lines containing \"xxx\" or \"yyy\"\n" + " \"-xxx\" hide lines containing \"xxx\""); + filter.Draw(); + const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" }; + for (int i = 0; i < IM_ARRAYSIZE(lines); i++) + if (filter.PassFilter(lines[i])) + ImGui::BulletText("%s", lines[i]); + ImGui::TreePop(); + } +} + +static void ShowDemoWindowLayout() +{ + IMGUI_DEMO_MARKER("Layout"); + if (!ImGui::CollapsingHeader("Layout & Scrolling")) + return; + + IMGUI_DEMO_MARKER("Layout/Child windows"); + if (ImGui::TreeNode("Child windows")) + { + HelpMarker("Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window."); + static bool disable_mouse_wheel = false; + static bool disable_menu = false; + ImGui::Checkbox("Disable Mouse Wheel", &disable_mouse_wheel); + ImGui::Checkbox("Disable Menu", &disable_menu); + + // Child 1: no border, enable horizontal scrollbar + { + ImGuiWindowFlags window_flags = ImGuiWindowFlags_HorizontalScrollbar; + if (disable_mouse_wheel) + window_flags |= ImGuiWindowFlags_NoScrollWithMouse; + ImGui::BeginChild("ChildL", ImVec2(ImGui::GetContentRegionAvail().x * 0.5f, 260), false, window_flags); + for (int i = 0; i < 100; i++) + ImGui::Text("%04d: scrollable region", i); + ImGui::EndChild(); + } + + ImGui::SameLine(); + + // Child 2: rounded border + { + ImGuiWindowFlags window_flags = ImGuiWindowFlags_None; + if (disable_mouse_wheel) + window_flags |= ImGuiWindowFlags_NoScrollWithMouse; + if (!disable_menu) + window_flags |= ImGuiWindowFlags_MenuBar; + ImGui::PushStyleVar(ImGuiStyleVar_ChildRounding, 5.0f); + ImGui::BeginChild("ChildR", ImVec2(0, 260), true, window_flags); + if (!disable_menu && ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Menu")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + if (ImGui::BeginTable("split", 2, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings)) + { + for (int i = 0; i < 100; i++) + { + char buf[32]; + sprintf(buf, "%03d", i); + ImGui::TableNextColumn(); + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + } + ImGui::EndTable(); + } + ImGui::EndChild(); + ImGui::PopStyleVar(); + } + + ImGui::Separator(); + + // Demonstrate a few extra things + // - Changing ImGuiCol_ChildBg (which is transparent black in default styles) + // - Using SetCursorPos() to position child window (the child window is an item from the POV of parent window) + // You can also call SetNextWindowPos() to position the child window. The parent window will effectively + // layout from this position. + // - Using ImGui::GetItemRectMin/Max() to query the "item" state (because the child window is an item from + // the POV of the parent window). See 'Demo->Querying Status (Edited/Active/Hovered etc.)' for details. + { + static int offset_x = 0; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragInt("Offset X", &offset_x, 1.0f, -1000, 1000); + + ImGui::SetCursorPosX(ImGui::GetCursorPosX() + (float)offset_x); + ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(255, 0, 0, 100)); + ImGui::BeginChild("Red", ImVec2(200, 100), true, ImGuiWindowFlags_None); + for (int n = 0; n < 50; n++) + ImGui::Text("Some test %d", n); + ImGui::EndChild(); + bool child_is_hovered = ImGui::IsItemHovered(); + ImVec2 child_rect_min = ImGui::GetItemRectMin(); + ImVec2 child_rect_max = ImGui::GetItemRectMax(); + ImGui::PopStyleColor(); + ImGui::Text("Hovered: %d", child_is_hovered); + ImGui::Text("Rect of child window is: (%.0f,%.0f) (%.0f,%.0f)", child_rect_min.x, child_rect_min.y, child_rect_max.x, child_rect_max.y); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Widgets Width"); + if (ImGui::TreeNode("Widgets Width")) + { + static float f = 0.0f; + static bool show_indented_items = true; + ImGui::Checkbox("Show indented items", &show_indented_items); + + // Use SetNextItemWidth() to set the width of a single upcoming item. + // Use PushItemWidth()/PopItemWidth() to set the width of a group of items. + // In real code use you'll probably want to choose width values that are proportional to your font size + // e.g. Using '20.0f * GetFontSize()' as width instead of '200.0f', etc. + + ImGui::Text("SetNextItemWidth/PushItemWidth(100)"); + ImGui::SameLine(); HelpMarker("Fixed width."); + ImGui::PushItemWidth(100); + ImGui::DragFloat("float##1b", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##1b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::Text("SetNextItemWidth/PushItemWidth(-100)"); + ImGui::SameLine(); HelpMarker("Align to right edge minus 100"); + ImGui::PushItemWidth(-100); + ImGui::DragFloat("float##2a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##2b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::Text("SetNextItemWidth/PushItemWidth(GetContentRegionAvail().x * 0.5f)"); + ImGui::SameLine(); HelpMarker("Half of available width.\n(~ right-cursor_pos)\n(works within a column set)"); + ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::DragFloat("float##3a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##3b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::Text("SetNextItemWidth/PushItemWidth(-GetContentRegionAvail().x * 0.5f)"); + ImGui::SameLine(); HelpMarker("Align to right edge minus half"); + ImGui::PushItemWidth(-ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::DragFloat("float##4a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##4b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + // Demonstrate using PushItemWidth to surround three items. + // Calling SetNextItemWidth() before each of them would have the same effect. + ImGui::Text("SetNextItemWidth/PushItemWidth(-FLT_MIN)"); + ImGui::SameLine(); HelpMarker("Align to right edge"); + ImGui::PushItemWidth(-FLT_MIN); + ImGui::DragFloat("##float5a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##5b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout"); + if (ImGui::TreeNode("Basic Horizontal Layout")) + { + ImGui::TextWrapped("(Use ImGui::SameLine() to keep adding items to the right of the preceding item)"); + + // Text + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/SameLine"); + ImGui::Text("Two items: Hello"); ImGui::SameLine(); + ImGui::TextColored(ImVec4(1,1,0,1), "Sailor"); + + // Adjust spacing + ImGui::Text("More spacing: Hello"); ImGui::SameLine(0, 20); + ImGui::TextColored(ImVec4(1,1,0,1), "Sailor"); + + // Button + ImGui::AlignTextToFramePadding(); + ImGui::Text("Normal buttons"); ImGui::SameLine(); + ImGui::Button("Banana"); ImGui::SameLine(); + ImGui::Button("Apple"); ImGui::SameLine(); + ImGui::Button("Corniflower"); + + // Button + ImGui::Text("Small buttons"); ImGui::SameLine(); + ImGui::SmallButton("Like this one"); ImGui::SameLine(); + ImGui::Text("can fit within a text block."); + + // Aligned to arbitrary position. Easy/cheap column. + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/SameLine (with offset)"); + ImGui::Text("Aligned"); + ImGui::SameLine(150); ImGui::Text("x=150"); + ImGui::SameLine(300); ImGui::Text("x=300"); + ImGui::Text("Aligned"); + ImGui::SameLine(150); ImGui::SmallButton("x=150"); + ImGui::SameLine(300); ImGui::SmallButton("x=300"); + + // Checkbox + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/SameLine (more)"); + static bool c1 = false, c2 = false, c3 = false, c4 = false; + ImGui::Checkbox("My", &c1); ImGui::SameLine(); + ImGui::Checkbox("Tailor", &c2); ImGui::SameLine(); + ImGui::Checkbox("Is", &c3); ImGui::SameLine(); + ImGui::Checkbox("Rich", &c4); + + // Various + static float f0 = 1.0f, f1 = 2.0f, f2 = 3.0f; + ImGui::PushItemWidth(80); + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD" }; + static int item = -1; + ImGui::Combo("Combo", &item, items, IM_ARRAYSIZE(items)); ImGui::SameLine(); + ImGui::SliderFloat("X", &f0, 0.0f, 5.0f); ImGui::SameLine(); + ImGui::SliderFloat("Y", &f1, 0.0f, 5.0f); ImGui::SameLine(); + ImGui::SliderFloat("Z", &f2, 0.0f, 5.0f); + ImGui::PopItemWidth(); + + ImGui::PushItemWidth(80); + ImGui::Text("Lists:"); + static int selection[4] = { 0, 1, 2, 3 }; + for (int i = 0; i < 4; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::ListBox("", &selection[i], items, IM_ARRAYSIZE(items)); + ImGui::PopID(); + //if (ImGui::IsItemHovered()) ImGui::SetTooltip("ListBox %d hovered", i); + } + ImGui::PopItemWidth(); + + // Dummy + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/Dummy"); + ImVec2 button_sz(40, 40); + ImGui::Button("A", button_sz); ImGui::SameLine(); + ImGui::Dummy(button_sz); ImGui::SameLine(); + ImGui::Button("B", button_sz); + + // Manually wrapping + // (we should eventually provide this as an automatic layout feature, but for now you can do it manually) + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/Manual wrapping"); + ImGui::Text("Manual wrapping:"); + ImGuiStyle& style = ImGui::GetStyle(); + int buttons_count = 20; + float window_visible_x2 = ImGui::GetWindowPos().x + ImGui::GetWindowContentRegionMax().x; + for (int n = 0; n < buttons_count; n++) + { + ImGui::PushID(n); + ImGui::Button("Box", button_sz); + float last_button_x2 = ImGui::GetItemRectMax().x; + float next_button_x2 = last_button_x2 + style.ItemSpacing.x + button_sz.x; // Expected position if next button was on same line + if (n + 1 < buttons_count && next_button_x2 < window_visible_x2) + ImGui::SameLine(); + ImGui::PopID(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Groups"); + if (ImGui::TreeNode("Groups")) + { + HelpMarker( + "BeginGroup() basically locks the horizontal position for new line. " + "EndGroup() bundles the whole group so that you can use \"item\" functions such as " + "IsItemHovered()/IsItemActive() or SameLine() etc. on the whole group."); + ImGui::BeginGroup(); + { + ImGui::BeginGroup(); + ImGui::Button("AAA"); + ImGui::SameLine(); + ImGui::Button("BBB"); + ImGui::SameLine(); + ImGui::BeginGroup(); + ImGui::Button("CCC"); + ImGui::Button("DDD"); + ImGui::EndGroup(); + ImGui::SameLine(); + ImGui::Button("EEE"); + ImGui::EndGroup(); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("First group hovered"); + } + // Capture the group size and create widgets using the same size + ImVec2 size = ImGui::GetItemRectSize(); + const float values[5] = { 0.5f, 0.20f, 0.80f, 0.60f, 0.25f }; + ImGui::PlotHistogram("##values", values, IM_ARRAYSIZE(values), 0, NULL, 0.0f, 1.0f, size); + + ImGui::Button("ACTION", ImVec2((size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, size.y)); + ImGui::SameLine(); + ImGui::Button("REACTION", ImVec2((size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, size.y)); + ImGui::EndGroup(); + ImGui::SameLine(); + + ImGui::Button("LEVERAGE\nBUZZWORD", size); + ImGui::SameLine(); + + if (ImGui::BeginListBox("List", size)) + { + ImGui::Selectable("Selected", true); + ImGui::Selectable("Not Selected", false); + ImGui::EndListBox(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Text Baseline Alignment"); + if (ImGui::TreeNode("Text Baseline Alignment")) + { + { + ImGui::BulletText("Text baseline:"); + ImGui::SameLine(); HelpMarker( + "This is testing the vertical alignment that gets applied on text to keep it aligned with widgets. " + "Lines only composed of text or \"small\" widgets use less vertical space than lines with framed widgets."); + ImGui::Indent(); + + ImGui::Text("KO Blahblah"); ImGui::SameLine(); + ImGui::Button("Some framed item"); ImGui::SameLine(); + HelpMarker("Baseline of button will look misaligned with text.."); + + // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. + // (because we don't know what's coming after the Text() statement, we need to move the text baseline + // down by FramePadding.y ahead of time) + ImGui::AlignTextToFramePadding(); + ImGui::Text("OK Blahblah"); ImGui::SameLine(); + ImGui::Button("Some framed item"); ImGui::SameLine(); + HelpMarker("We call AlignTextToFramePadding() to vertically align the text baseline by +FramePadding.y"); + + // SmallButton() uses the same vertical padding as Text + ImGui::Button("TEST##1"); ImGui::SameLine(); + ImGui::Text("TEST"); ImGui::SameLine(); + ImGui::SmallButton("TEST##2"); + + // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. + ImGui::AlignTextToFramePadding(); + ImGui::Text("Text aligned to framed item"); ImGui::SameLine(); + ImGui::Button("Item##1"); ImGui::SameLine(); + ImGui::Text("Item"); ImGui::SameLine(); + ImGui::SmallButton("Item##2"); ImGui::SameLine(); + ImGui::Button("Item##3"); + + ImGui::Unindent(); + } + + ImGui::Spacing(); + + { + ImGui::BulletText("Multi-line text:"); + ImGui::Indent(); + ImGui::Text("One\nTwo\nThree"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + + ImGui::Text("Banana"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("One\nTwo\nThree"); + + ImGui::Button("HOP##1"); ImGui::SameLine(); + ImGui::Text("Banana"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + + ImGui::Button("HOP##2"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + ImGui::Unindent(); + } + + ImGui::Spacing(); + + { + ImGui::BulletText("Misc items:"); + ImGui::Indent(); + + // SmallButton() sets FramePadding to zero. Text baseline is aligned to match baseline of previous Button. + ImGui::Button("80x80", ImVec2(80, 80)); + ImGui::SameLine(); + ImGui::Button("50x50", ImVec2(50, 50)); + ImGui::SameLine(); + ImGui::Button("Button()"); + ImGui::SameLine(); + ImGui::SmallButton("SmallButton()"); + + // Tree + const float spacing = ImGui::GetStyle().ItemInnerSpacing.x; + ImGui::Button("Button##1"); + ImGui::SameLine(0.0f, spacing); + if (ImGui::TreeNode("Node##1")) + { + // Placeholder tree data + for (int i = 0; i < 6; i++) + ImGui::BulletText("Item %d..", i); + ImGui::TreePop(); + } + + // Vertically align text node a bit lower so it'll be vertically centered with upcoming widget. + // Otherwise you can use SmallButton() (smaller fit). + ImGui::AlignTextToFramePadding(); + + // Common mistake to avoid: if we want to SameLine after TreeNode we need to do it before we add + // other contents below the node. + bool node_open = ImGui::TreeNode("Node##2"); + ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##2"); + if (node_open) + { + // Placeholder tree data + for (int i = 0; i < 6; i++) + ImGui::BulletText("Item %d..", i); + ImGui::TreePop(); + } + + // Bullet + ImGui::Button("Button##3"); + ImGui::SameLine(0.0f, spacing); + ImGui::BulletText("Bullet text"); + + ImGui::AlignTextToFramePadding(); + ImGui::BulletText("Node"); + ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##4"); + ImGui::Unindent(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Scrolling"); + if (ImGui::TreeNode("Scrolling")) + { + // Vertical scroll functions + IMGUI_DEMO_MARKER("Layout/Scrolling/Vertical"); + HelpMarker("Use SetScrollHereY() or SetScrollFromPosY() to scroll to a given vertical position."); + + static int track_item = 50; + static bool enable_track = true; + static bool enable_extra_decorations = false; + static float scroll_to_off_px = 0.0f; + static float scroll_to_pos_px = 200.0f; + + ImGui::Checkbox("Decoration", &enable_extra_decorations); + + ImGui::Checkbox("Track", &enable_track); + ImGui::PushItemWidth(100); + ImGui::SameLine(140); enable_track |= ImGui::DragInt("##item", &track_item, 0.25f, 0, 99, "Item = %d"); + + bool scroll_to_off = ImGui::Button("Scroll Offset"); + ImGui::SameLine(140); scroll_to_off |= ImGui::DragFloat("##off", &scroll_to_off_px, 1.00f, 0, FLT_MAX, "+%.0f px"); + + bool scroll_to_pos = ImGui::Button("Scroll To Pos"); + ImGui::SameLine(140); scroll_to_pos |= ImGui::DragFloat("##pos", &scroll_to_pos_px, 1.00f, -10, FLT_MAX, "X/Y = %.0f px"); + ImGui::PopItemWidth(); + + if (scroll_to_off || scroll_to_pos) + enable_track = false; + + ImGuiStyle& style = ImGui::GetStyle(); + float child_w = (ImGui::GetContentRegionAvail().x - 4 * style.ItemSpacing.x) / 5; + if (child_w < 1.0f) + child_w = 1.0f; + ImGui::PushID("##VerticalScrolling"); + for (int i = 0; i < 5; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::BeginGroup(); + const char* names[] = { "Top", "25%", "Center", "75%", "Bottom" }; + ImGui::TextUnformatted(names[i]); + + const ImGuiWindowFlags child_flags = enable_extra_decorations ? ImGuiWindowFlags_MenuBar : 0; + const ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); + const bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(child_w, 200.0f), true, child_flags); + if (ImGui::BeginMenuBar()) + { + ImGui::TextUnformatted("abc"); + ImGui::EndMenuBar(); + } + if (scroll_to_off) + ImGui::SetScrollY(scroll_to_off_px); + if (scroll_to_pos) + ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + scroll_to_pos_px, i * 0.25f); + if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items + { + for (int item = 0; item < 100; item++) + { + if (enable_track && item == track_item) + { + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); + ImGui::SetScrollHereY(i * 0.25f); // 0.0f:top, 0.5f:center, 1.0f:bottom + } + else + { + ImGui::Text("Item %d", item); + } + } + } + float scroll_y = ImGui::GetScrollY(); + float scroll_max_y = ImGui::GetScrollMaxY(); + ImGui::EndChild(); + ImGui::Text("%.0f/%.0f", scroll_y, scroll_max_y); + ImGui::EndGroup(); + } + ImGui::PopID(); + + // Horizontal scroll functions + IMGUI_DEMO_MARKER("Layout/Scrolling/Horizontal"); + ImGui::Spacing(); + HelpMarker( + "Use SetScrollHereX() or SetScrollFromPosX() to scroll to a given horizontal position.\n\n" + "Because the clipping rectangle of most window hides half worth of WindowPadding on the " + "left/right, using SetScrollFromPosX(+1) will usually result in clipped text whereas the " + "equivalent SetScrollFromPosY(+1) wouldn't."); + ImGui::PushID("##HorizontalScrolling"); + for (int i = 0; i < 5; i++) + { + float child_height = ImGui::GetTextLineHeight() + style.ScrollbarSize + style.WindowPadding.y * 2.0f; + ImGuiWindowFlags child_flags = ImGuiWindowFlags_HorizontalScrollbar | (enable_extra_decorations ? ImGuiWindowFlags_AlwaysVerticalScrollbar : 0); + ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); + bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(-100, child_height), true, child_flags); + if (scroll_to_off) + ImGui::SetScrollX(scroll_to_off_px); + if (scroll_to_pos) + ImGui::SetScrollFromPosX(ImGui::GetCursorStartPos().x + scroll_to_pos_px, i * 0.25f); + if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items + { + for (int item = 0; item < 100; item++) + { + if (item > 0) + ImGui::SameLine(); + if (enable_track && item == track_item) + { + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); + ImGui::SetScrollHereX(i * 0.25f); // 0.0f:left, 0.5f:center, 1.0f:right + } + else + { + ImGui::Text("Item %d", item); + } + } + } + float scroll_x = ImGui::GetScrollX(); + float scroll_max_x = ImGui::GetScrollMaxX(); + ImGui::EndChild(); + ImGui::SameLine(); + const char* names[] = { "Left", "25%", "Center", "75%", "Right" }; + ImGui::Text("%s\n%.0f/%.0f", names[i], scroll_x, scroll_max_x); + ImGui::Spacing(); + } + ImGui::PopID(); + + // Miscellaneous Horizontal Scrolling Demo + IMGUI_DEMO_MARKER("Layout/Scrolling/Horizontal (more)"); + HelpMarker( + "Horizontal scrolling for a window is enabled via the ImGuiWindowFlags_HorizontalScrollbar flag.\n\n" + "You may want to also explicitly specify content width by using SetNextWindowContentWidth() before Begin()."); + static int lines = 7; + ImGui::SliderInt("Lines", &lines, 1, 15); + ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 3.0f); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2.0f, 1.0f)); + ImVec2 scrolling_child_size = ImVec2(0, ImGui::GetFrameHeightWithSpacing() * 7 + 30); + ImGui::BeginChild("scrolling", scrolling_child_size, true, ImGuiWindowFlags_HorizontalScrollbar); + for (int line = 0; line < lines; line++) + { + // Display random stuff. For the sake of this trivial demo we are using basic Button() + SameLine() + // If you want to create your own time line for a real application you may be better off manipulating + // the cursor position yourself, aka using SetCursorPos/SetCursorScreenPos to position the widgets + // yourself. You may also want to use the lower-level ImDrawList API. + int num_buttons = 10 + ((line & 1) ? line * 9 : line * 3); + for (int n = 0; n < num_buttons; n++) + { + if (n > 0) ImGui::SameLine(); + ImGui::PushID(n + line * 1000); + char num_buf[16]; + sprintf(num_buf, "%d", n); + const char* label = (!(n % 15)) ? "FizzBuzz" : (!(n % 3)) ? "Fizz" : (!(n % 5)) ? "Buzz" : num_buf; + float hue = n * 0.05f; + ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(hue, 0.6f, 0.6f)); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(hue, 0.7f, 0.7f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(hue, 0.8f, 0.8f)); + ImGui::Button(label, ImVec2(40.0f + sinf((float)(line + n)) * 20.0f, 0.0f)); + ImGui::PopStyleColor(3); + ImGui::PopID(); + } + } + float scroll_x = ImGui::GetScrollX(); + float scroll_max_x = ImGui::GetScrollMaxX(); + ImGui::EndChild(); + ImGui::PopStyleVar(2); + float scroll_x_delta = 0.0f; + ImGui::SmallButton("<<"); + if (ImGui::IsItemActive()) + scroll_x_delta = -ImGui::GetIO().DeltaTime * 1000.0f; + ImGui::SameLine(); + ImGui::Text("Scroll from code"); ImGui::SameLine(); + ImGui::SmallButton(">>"); + if (ImGui::IsItemActive()) + scroll_x_delta = +ImGui::GetIO().DeltaTime * 1000.0f; + ImGui::SameLine(); + ImGui::Text("%.0f/%.0f", scroll_x, scroll_max_x); + if (scroll_x_delta != 0.0f) + { + // Demonstrate a trick: you can use Begin to set yourself in the context of another window + // (here we are already out of your child window) + ImGui::BeginChild("scrolling"); + ImGui::SetScrollX(ImGui::GetScrollX() + scroll_x_delta); + ImGui::EndChild(); + } + ImGui::Spacing(); + + static bool show_horizontal_contents_size_demo_window = false; + ImGui::Checkbox("Show Horizontal contents size demo window", &show_horizontal_contents_size_demo_window); + + if (show_horizontal_contents_size_demo_window) + { + static bool show_h_scrollbar = true; + static bool show_button = true; + static bool show_tree_nodes = true; + static bool show_text_wrapped = false; + static bool show_columns = true; + static bool show_tab_bar = true; + static bool show_child = false; + static bool explicit_content_size = false; + static float contents_size_x = 300.0f; + if (explicit_content_size) + ImGui::SetNextWindowContentSize(ImVec2(contents_size_x, 0.0f)); + ImGui::Begin("Horizontal contents size demo window", &show_horizontal_contents_size_demo_window, show_h_scrollbar ? ImGuiWindowFlags_HorizontalScrollbar : 0); + IMGUI_DEMO_MARKER("Layout/Scrolling/Horizontal contents size demo window"); + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(2, 0)); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 0)); + HelpMarker("Test of different widgets react and impact the work rectangle growing when horizontal scrolling is enabled.\n\nUse 'Metrics->Tools->Show windows rectangles' to visualize rectangles."); + ImGui::Checkbox("H-scrollbar", &show_h_scrollbar); + ImGui::Checkbox("Button", &show_button); // Will grow contents size (unless explicitly overwritten) + ImGui::Checkbox("Tree nodes", &show_tree_nodes); // Will grow contents size and display highlight over full width + ImGui::Checkbox("Text wrapped", &show_text_wrapped);// Will grow and use contents size + ImGui::Checkbox("Columns", &show_columns); // Will use contents size + ImGui::Checkbox("Tab bar", &show_tab_bar); // Will use contents size + ImGui::Checkbox("Child", &show_child); // Will grow and use contents size + ImGui::Checkbox("Explicit content size", &explicit_content_size); + ImGui::Text("Scroll %.1f/%.1f %.1f/%.1f", ImGui::GetScrollX(), ImGui::GetScrollMaxX(), ImGui::GetScrollY(), ImGui::GetScrollMaxY()); + if (explicit_content_size) + { + ImGui::SameLine(); + ImGui::SetNextItemWidth(100); + ImGui::DragFloat("##csx", &contents_size_x); + ImVec2 p = ImGui::GetCursorScreenPos(); + ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + 10, p.y + 10), IM_COL32_WHITE); + ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(p.x + contents_size_x - 10, p.y), ImVec2(p.x + contents_size_x, p.y + 10), IM_COL32_WHITE); + ImGui::Dummy(ImVec2(0, 10)); + } + ImGui::PopStyleVar(2); + ImGui::Separator(); + if (show_button) + { + ImGui::Button("this is a 300-wide button", ImVec2(300, 0)); + } + if (show_tree_nodes) + { + bool open = true; + if (ImGui::TreeNode("this is a tree node")) + { + if (ImGui::TreeNode("another one of those tree node...")) + { + ImGui::Text("Some tree contents"); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + ImGui::CollapsingHeader("CollapsingHeader", &open); + } + if (show_text_wrapped) + { + ImGui::TextWrapped("This text should automatically wrap on the edge of the work rectangle."); + } + if (show_columns) + { + ImGui::Text("Tables:"); + if (ImGui::BeginTable("table", 4, ImGuiTableFlags_Borders)) + { + for (int n = 0; n < 4; n++) + { + ImGui::TableNextColumn(); + ImGui::Text("Width %.2f", ImGui::GetContentRegionAvail().x); + } + ImGui::EndTable(); + } + ImGui::Text("Columns:"); + ImGui::Columns(4); + for (int n = 0; n < 4; n++) + { + ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); + ImGui::NextColumn(); + } + ImGui::Columns(1); + } + if (show_tab_bar && ImGui::BeginTabBar("Hello")) + { + if (ImGui::BeginTabItem("OneOneOne")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("TwoTwoTwo")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("ThreeThreeThree")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("FourFourFour")) { ImGui::EndTabItem(); } + ImGui::EndTabBar(); + } + if (show_child) + { + ImGui::BeginChild("child", ImVec2(0, 0), true); + ImGui::EndChild(); + } + ImGui::End(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Clipping"); + if (ImGui::TreeNode("Clipping")) + { + static ImVec2 size(100.0f, 100.0f); + static ImVec2 offset(30.0f, 30.0f); + ImGui::DragFloat2("size", (float*)&size, 0.5f, 1.0f, 200.0f, "%.0f"); + ImGui::TextWrapped("(Click and drag to scroll)"); + + HelpMarker( + "(Left) Using ImGui::PushClipRect():\n" + "Will alter ImGui hit-testing logic + ImDrawList rendering.\n" + "(use this if you want your clipping rectangle to affect interactions)\n\n" + "(Center) Using ImDrawList::PushClipRect():\n" + "Will alter ImDrawList rendering only.\n" + "(use this as a shortcut if you are only using ImDrawList calls)\n\n" + "(Right) Using ImDrawList::AddText() with a fine ClipRect:\n" + "Will alter only this specific ImDrawList::AddText() rendering.\n" + "This is often used internally to avoid altering the clipping rectangle and minimize draw calls."); + + for (int n = 0; n < 3; n++) + { + if (n > 0) + ImGui::SameLine(); + + ImGui::PushID(n); + ImGui::InvisibleButton("##canvas", size); + if (ImGui::IsItemActive() && ImGui::IsMouseDragging(ImGuiMouseButton_Left)) + { + offset.x += ImGui::GetIO().MouseDelta.x; + offset.y += ImGui::GetIO().MouseDelta.y; + } + ImGui::PopID(); + if (!ImGui::IsItemVisible()) // Skip rendering as ImDrawList elements are not clipped. + continue; + + const ImVec2 p0 = ImGui::GetItemRectMin(); + const ImVec2 p1 = ImGui::GetItemRectMax(); + const char* text_str = "Line 1 hello\nLine 2 clip me!"; + const ImVec2 text_pos = ImVec2(p0.x + offset.x, p0.y + offset.y); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + switch (n) + { + case 0: + ImGui::PushClipRect(p0, p1, true); + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); + ImGui::PopClipRect(); + break; + case 1: + draw_list->PushClipRect(p0, p1, true); + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); + draw_list->PopClipRect(); + break; + case 2: + ImVec4 clip_rect(p0.x, p0.y, p1.x, p1.y); // AddText() takes a ImVec4* here so let's convert. + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(ImGui::GetFont(), ImGui::GetFontSize(), text_pos, IM_COL32_WHITE, text_str, NULL, 0.0f, &clip_rect); + break; + } + } + + ImGui::TreePop(); + } +} + +static void ShowDemoWindowPopups() +{ + IMGUI_DEMO_MARKER("Popups"); + if (!ImGui::CollapsingHeader("Popups & Modal windows")) + return; + + // The properties of popups windows are: + // - They block normal mouse hovering detection outside them. (*) + // - Unless modal, they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - Their visibility state (~bool) is held internally by Dear ImGui instead of being held by the programmer as + // we are used to with regular Begin() calls. User can manipulate the visibility state by calling OpenPopup(). + // (*) One can use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup) to bypass it and detect hovering even + // when normally blocked by a popup. + // Those three properties are connected. The library needs to hold their visibility state BECAUSE it can close + // popups at any time. + + // Typical use for regular windows: + // bool my_tool_is_active = false; if (ImGui::Button("Open")) my_tool_is_active = true; [...] if (my_tool_is_active) Begin("My Tool", &my_tool_is_active) { [...] } End(); + // Typical use for popups: + // if (ImGui::Button("Open")) ImGui::OpenPopup("MyPopup"); if (ImGui::BeginPopup("MyPopup") { [...] EndPopup(); } + + // With popups we have to go through a library call (here OpenPopup) to manipulate the visibility state. + // This may be a bit confusing at first but it should quickly make sense. Follow on the examples below. + + IMGUI_DEMO_MARKER("Popups/Popups"); + if (ImGui::TreeNode("Popups")) + { + ImGui::TextWrapped( + "When a popup is active, it inhibits interacting with windows that are behind the popup. " + "Clicking outside the popup closes it."); + + static int selected_fish = -1; + const char* names[] = { "Bream", "Haddock", "Mackerel", "Pollock", "Tilefish" }; + static bool toggles[] = { true, false, false, false, false }; + + // Simple selection popup (if you want to show the current selection inside the Button itself, + // you may want to build a string using the "###" operator to preserve a constant ID with a variable label) + if (ImGui::Button("Select..")) + ImGui::OpenPopup("my_select_popup"); + ImGui::SameLine(); + ImGui::TextUnformatted(selected_fish == -1 ? "" : names[selected_fish]); + if (ImGui::BeginPopup("my_select_popup")) + { + ImGui::Text("Aquarium"); + ImGui::Separator(); + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + if (ImGui::Selectable(names[i])) + selected_fish = i; + ImGui::EndPopup(); + } + + // Showing a menu with toggles + if (ImGui::Button("Toggle..")) + ImGui::OpenPopup("my_toggle_popup"); + if (ImGui::BeginPopup("my_toggle_popup")) + { + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + ImGui::MenuItem(names[i], "", &toggles[i]); + if (ImGui::BeginMenu("Sub-menu")) + { + ImGui::MenuItem("Click me"); + ImGui::EndMenu(); + } + + ImGui::Separator(); + ImGui::Text("Tooltip here"); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("I am a tooltip over a popup"); + + if (ImGui::Button("Stacked Popup")) + ImGui::OpenPopup("another popup"); + if (ImGui::BeginPopup("another popup")) + { + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + ImGui::MenuItem(names[i], "", &toggles[i]); + if (ImGui::BeginMenu("Sub-menu")) + { + ImGui::MenuItem("Click me"); + if (ImGui::Button("Stacked Popup")) + ImGui::OpenPopup("another popup"); + if (ImGui::BeginPopup("another popup")) + { + ImGui::Text("I am the last one here."); + ImGui::EndPopup(); + } + ImGui::EndMenu(); + } + ImGui::EndPopup(); + } + ImGui::EndPopup(); + } + + // Call the more complete ShowExampleMenuFile which we use in various places of this demo + if (ImGui::Button("With a menu..")) + ImGui::OpenPopup("my_file_popup"); + if (ImGui::BeginPopup("my_file_popup", ImGuiWindowFlags_MenuBar)) + { + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Edit")) + { + ImGui::MenuItem("Dummy"); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + ImGui::Text("Hello from popup!"); + ImGui::Button("This is a dummy button.."); + ImGui::EndPopup(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Popups/Context menus"); + if (ImGui::TreeNode("Context menus")) + { + HelpMarker("\"Context\" functions are simple helpers to associate a Popup to a given Item or Window identifier."); + + // BeginPopupContextItem() is a helper to provide common/simple popup behavior of essentially doing: + // if (id == 0) + // id = GetItemID(); // Use last item id + // if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) + // OpenPopup(id); + // return BeginPopup(id); + // For advanced uses you may want to replicate and customize this code. + // See more details in BeginPopupContextItem(). + + // Example 1 + // When used after an item that has an ID (e.g. Button), we can skip providing an ID to BeginPopupContextItem(), + // and BeginPopupContextItem() will use the last item ID as the popup ID. + { + const char* names[5] = { "Label1", "Label2", "Label3", "Label4", "Label5" }; + for (int n = 0; n < 5; n++) + { + ImGui::Selectable(names[n]); + if (ImGui::BeginPopupContextItem()) // <-- use last item id as popup id + { + ImGui::Text("This a popup for \"%s\"!", names[n]); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("Right-click to open popup"); + } + } + + // Example 2 + // Popup on a Text() element which doesn't have an identifier: we need to provide an identifier to BeginPopupContextItem(). + // Using an explicit identifier is also convenient if you want to activate the popups from different locations. + { + HelpMarker("Text() elements don't have stable identifiers so we need to provide one."); + static float value = 0.5f; + ImGui::Text("Value = %.3f <-- (1) right-click this text", value); + if (ImGui::BeginPopupContextItem("my popup")) + { + if (ImGui::Selectable("Set to zero")) value = 0.0f; + if (ImGui::Selectable("Set to PI")) value = 3.1415f; + ImGui::SetNextItemWidth(-FLT_MIN); + ImGui::DragFloat("##Value", &value, 0.1f, 0.0f, 0.0f); + ImGui::EndPopup(); + } + + // We can also use OpenPopupOnItemClick() to toggle the visibility of a given popup. + // Here we make it that right-clicking this other text element opens the same popup as above. + // The popup itself will be submitted by the code above. + ImGui::Text("(2) Or right-click this text"); + ImGui::OpenPopupOnItemClick("my popup", ImGuiPopupFlags_MouseButtonRight); + + // Back to square one: manually open the same popup. + if (ImGui::Button("(3) Or click this button")) + ImGui::OpenPopup("my popup"); + } + + // Example 3 + // When using BeginPopupContextItem() with an implicit identifier (NULL == use last item ID), + // we need to make sure your item identifier is stable. + // In this example we showcase altering the item label while preserving its identifier, using the ### operator (see FAQ). + { + HelpMarker("Showcase using a popup ID linked to item ID, with the item having a changing label + stable ID using the ### operator."); + static char name[32] = "Label1"; + char buf[64]; + sprintf(buf, "Button: %s###Button", name); // ### operator override ID ignoring the preceding label + ImGui::Button(buf); + if (ImGui::BeginPopupContextItem()) + { + ImGui::Text("Edit name:"); + ImGui::InputText("##edit", name, IM_ARRAYSIZE(name)); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::SameLine(); ImGui::Text("(<-- right-click here)"); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Popups/Modals"); + if (ImGui::TreeNode("Modals")) + { + ImGui::TextWrapped("Modal windows are like popups but the user cannot close them by clicking outside."); + + if (ImGui::Button("Delete..")) + ImGui::OpenPopup("Delete?"); + + // Always center this window when appearing + ImVec2 center = ImGui::GetMainViewport()->GetCenter(); + ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f)); + + if (ImGui::BeginPopupModal("Delete?", NULL, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::Text("All those beautiful files will be deleted.\nThis operation cannot be undone!\n\n"); + ImGui::Separator(); + + //static int unused_i = 0; + //ImGui::Combo("Combo", &unused_i, "Delete\0Delete harder\0"); + + static bool dont_ask_me_next_time = false; + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); + ImGui::Checkbox("Don't ask me next time", &dont_ask_me_next_time); + ImGui::PopStyleVar(); + + if (ImGui::Button("OK", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } + ImGui::SetItemDefaultFocus(); + ImGui::SameLine(); + if (ImGui::Button("Cancel", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } + ImGui::EndPopup(); + } + + if (ImGui::Button("Stacked modals..")) + ImGui::OpenPopup("Stacked 1"); + if (ImGui::BeginPopupModal("Stacked 1", NULL, ImGuiWindowFlags_MenuBar)) + { + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + if (ImGui::MenuItem("Some menu item")) {} + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + ImGui::Text("Hello from Stacked The First\nUsing style.Colors[ImGuiCol_ModalWindowDimBg] behind it."); + + // Testing behavior of widgets stacking their own regular popups over the modal. + static int item = 1; + static float color[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::Combo("Combo", &item, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); + ImGui::ColorEdit4("color", color); + + if (ImGui::Button("Add another modal..")) + ImGui::OpenPopup("Stacked 2"); + + // Also demonstrate passing a bool* to BeginPopupModal(), this will create a regular close button which + // will close the popup. Note that the visibility state of popups is owned by imgui, so the input value + // of the bool actually doesn't matter here. + bool unused_open = true; + if (ImGui::BeginPopupModal("Stacked 2", &unused_open)) + { + ImGui::Text("Hello from Stacked The Second!"); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Popups/Menus inside a regular window"); + if (ImGui::TreeNode("Menus inside a regular window")) + { + ImGui::TextWrapped("Below we are testing adding menu items to a regular window. It's rather unusual but should work!"); + ImGui::Separator(); + + ImGui::MenuItem("Menu item", "CTRL+M"); + if (ImGui::BeginMenu("Menu inside a regular window")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::Separator(); + ImGui::TreePop(); + } +} + +// Dummy data structure that we use for the Table demo. +// (pre-C++11 doesn't allow us to instantiate ImVector template if this structure is defined inside the demo function) +namespace +{ +// We are passing our own identifier to TableSetupColumn() to facilitate identifying columns in the sorting code. +// This identifier will be passed down into ImGuiTableSortSpec::ColumnUserID. +// But it is possible to omit the user id parameter of TableSetupColumn() and just use the column index instead! (ImGuiTableSortSpec::ColumnIndex) +// If you don't use sorting, you will generally never care about giving column an ID! +enum MyItemColumnID +{ + MyItemColumnID_ID, + MyItemColumnID_Name, + MyItemColumnID_Action, + MyItemColumnID_Quantity, + MyItemColumnID_Description +}; + +struct MyItem +{ + int ID; + const char* Name; + int Quantity; + + // We have a problem which is affecting _only this demo_ and should not affect your code: + // As we don't rely on std:: or other third-party library to compile dear imgui, we only have reliable access to qsort(), + // however qsort doesn't allow passing user data to comparing function. + // As a workaround, we are storing the sort specs in a static/global for the comparing function to access. + // In your own use case you would probably pass the sort specs to your sorting/comparing functions directly and not use a global. + // We could technically call ImGui::TableGetSortSpecs() in CompareWithSortSpecs(), but considering that this function is called + // very often by the sorting algorithm it would be a little wasteful. + static const ImGuiTableSortSpecs* s_current_sort_specs; + + // Compare function to be used by qsort() + static int IMGUI_CDECL CompareWithSortSpecs(const void* lhs, const void* rhs) + { + const MyItem* a = (const MyItem*)lhs; + const MyItem* b = (const MyItem*)rhs; + for (int n = 0; n < s_current_sort_specs->SpecsCount; n++) + { + // Here we identify columns using the ColumnUserID value that we ourselves passed to TableSetupColumn() + // We could also choose to identify columns based on their index (sort_spec->ColumnIndex), which is simpler! + const ImGuiTableColumnSortSpecs* sort_spec = &s_current_sort_specs->Specs[n]; + int delta = 0; + switch (sort_spec->ColumnUserID) + { + case MyItemColumnID_ID: delta = (a->ID - b->ID); break; + case MyItemColumnID_Name: delta = (strcmp(a->Name, b->Name)); break; + case MyItemColumnID_Quantity: delta = (a->Quantity - b->Quantity); break; + case MyItemColumnID_Description: delta = (strcmp(a->Name, b->Name)); break; + default: IM_ASSERT(0); break; + } + if (delta > 0) + return (sort_spec->SortDirection == ImGuiSortDirection_Ascending) ? +1 : -1; + if (delta < 0) + return (sort_spec->SortDirection == ImGuiSortDirection_Ascending) ? -1 : +1; + } + + // qsort() is instable so always return a way to differenciate items. + // Your own compare function may want to avoid fallback on implicit sort specs e.g. a Name compare if it wasn't already part of the sort specs. + return (a->ID - b->ID); + } +}; +const ImGuiTableSortSpecs* MyItem::s_current_sort_specs = NULL; +} + +// Make the UI compact because there are so many fields +static void PushStyleCompact() +{ + ImGuiStyle& style = ImGui::GetStyle(); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(style.FramePadding.x, (float)(int)(style.FramePadding.y * 0.60f))); + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x, (float)(int)(style.ItemSpacing.y * 0.60f))); +} + +static void PopStyleCompact() +{ + ImGui::PopStyleVar(2); +} + +// Show a combo box with a choice of sizing policies +static void EditTableSizingFlags(ImGuiTableFlags* p_flags) +{ + struct EnumDesc { ImGuiTableFlags Value; const char* Name; const char* Tooltip; }; + static const EnumDesc policies[] = + { + { ImGuiTableFlags_None, "Default", "Use default sizing policy:\n- ImGuiTableFlags_SizingFixedFit if ScrollX is on or if host window has ImGuiWindowFlags_AlwaysAutoResize.\n- ImGuiTableFlags_SizingStretchSame otherwise." }, + { ImGuiTableFlags_SizingFixedFit, "ImGuiTableFlags_SizingFixedFit", "Columns default to _WidthFixed (if resizable) or _WidthAuto (if not resizable), matching contents width." }, + { ImGuiTableFlags_SizingFixedSame, "ImGuiTableFlags_SizingFixedSame", "Columns are all the same width, matching the maximum contents width.\nImplicitly disable ImGuiTableFlags_Resizable and enable ImGuiTableFlags_NoKeepColumnsVisible." }, + { ImGuiTableFlags_SizingStretchProp, "ImGuiTableFlags_SizingStretchProp", "Columns default to _WidthStretch with weights proportional to their widths." }, + { ImGuiTableFlags_SizingStretchSame, "ImGuiTableFlags_SizingStretchSame", "Columns default to _WidthStretch with same weights." } + }; + int idx; + for (idx = 0; idx < IM_ARRAYSIZE(policies); idx++) + if (policies[idx].Value == (*p_flags & ImGuiTableFlags_SizingMask_)) + break; + const char* preview_text = (idx < IM_ARRAYSIZE(policies)) ? policies[idx].Name + (idx > 0 ? strlen("ImGuiTableFlags") : 0) : ""; + if (ImGui::BeginCombo("Sizing Policy", preview_text)) + { + for (int n = 0; n < IM_ARRAYSIZE(policies); n++) + if (ImGui::Selectable(policies[n].Name, idx == n)) + *p_flags = (*p_flags & ~ImGuiTableFlags_SizingMask_) | policies[n].Value; + ImGui::EndCombo(); + } + ImGui::SameLine(); + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 50.0f); + for (int m = 0; m < IM_ARRAYSIZE(policies); m++) + { + ImGui::Separator(); + ImGui::Text("%s:", policies[m].Name); + ImGui::Separator(); + ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetStyle().IndentSpacing * 0.5f); + ImGui::TextUnformatted(policies[m].Tooltip); + } + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +static void EditTableColumnsFlags(ImGuiTableColumnFlags* p_flags) +{ + ImGui::CheckboxFlags("_Disabled", p_flags, ImGuiTableColumnFlags_Disabled); ImGui::SameLine(); HelpMarker("Master disable flag (also hide from context menu)"); + ImGui::CheckboxFlags("_DefaultHide", p_flags, ImGuiTableColumnFlags_DefaultHide); + ImGui::CheckboxFlags("_DefaultSort", p_flags, ImGuiTableColumnFlags_DefaultSort); + if (ImGui::CheckboxFlags("_WidthStretch", p_flags, ImGuiTableColumnFlags_WidthStretch)) + *p_flags &= ~(ImGuiTableColumnFlags_WidthMask_ ^ ImGuiTableColumnFlags_WidthStretch); + if (ImGui::CheckboxFlags("_WidthFixed", p_flags, ImGuiTableColumnFlags_WidthFixed)) + *p_flags &= ~(ImGuiTableColumnFlags_WidthMask_ ^ ImGuiTableColumnFlags_WidthFixed); + ImGui::CheckboxFlags("_NoResize", p_flags, ImGuiTableColumnFlags_NoResize); + ImGui::CheckboxFlags("_NoReorder", p_flags, ImGuiTableColumnFlags_NoReorder); + ImGui::CheckboxFlags("_NoHide", p_flags, ImGuiTableColumnFlags_NoHide); + ImGui::CheckboxFlags("_NoClip", p_flags, ImGuiTableColumnFlags_NoClip); + ImGui::CheckboxFlags("_NoSort", p_flags, ImGuiTableColumnFlags_NoSort); + ImGui::CheckboxFlags("_NoSortAscending", p_flags, ImGuiTableColumnFlags_NoSortAscending); + ImGui::CheckboxFlags("_NoSortDescending", p_flags, ImGuiTableColumnFlags_NoSortDescending); + ImGui::CheckboxFlags("_NoHeaderLabel", p_flags, ImGuiTableColumnFlags_NoHeaderLabel); + ImGui::CheckboxFlags("_NoHeaderWidth", p_flags, ImGuiTableColumnFlags_NoHeaderWidth); + ImGui::CheckboxFlags("_PreferSortAscending", p_flags, ImGuiTableColumnFlags_PreferSortAscending); + ImGui::CheckboxFlags("_PreferSortDescending", p_flags, ImGuiTableColumnFlags_PreferSortDescending); + ImGui::CheckboxFlags("_IndentEnable", p_flags, ImGuiTableColumnFlags_IndentEnable); ImGui::SameLine(); HelpMarker("Default for column 0"); + ImGui::CheckboxFlags("_IndentDisable", p_flags, ImGuiTableColumnFlags_IndentDisable); ImGui::SameLine(); HelpMarker("Default for column >0"); +} + +static void ShowTableColumnsStatusFlags(ImGuiTableColumnFlags flags) +{ + ImGui::CheckboxFlags("_IsEnabled", &flags, ImGuiTableColumnFlags_IsEnabled); + ImGui::CheckboxFlags("_IsVisible", &flags, ImGuiTableColumnFlags_IsVisible); + ImGui::CheckboxFlags("_IsSorted", &flags, ImGuiTableColumnFlags_IsSorted); + ImGui::CheckboxFlags("_IsHovered", &flags, ImGuiTableColumnFlags_IsHovered); +} + +static void ShowDemoWindowTables() +{ + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); + IMGUI_DEMO_MARKER("Tables"); + if (!ImGui::CollapsingHeader("Tables & Columns")) + return; + + // Using those as a base value to create width/height that are factor of the size of our font + const float TEXT_BASE_WIDTH = ImGui::CalcTextSize("A").x; + const float TEXT_BASE_HEIGHT = ImGui::GetTextLineHeightWithSpacing(); + + ImGui::PushID("Tables"); + + int open_action = -1; + if (ImGui::Button("Open all")) + open_action = 1; + ImGui::SameLine(); + if (ImGui::Button("Close all")) + open_action = 0; + ImGui::SameLine(); + + // Options + static bool disable_indent = false; + ImGui::Checkbox("Disable tree indentation", &disable_indent); + ImGui::SameLine(); + HelpMarker("Disable the indenting of tree nodes so demo tables can use the full window width."); + ImGui::Separator(); + if (disable_indent) + ImGui::PushStyleVar(ImGuiStyleVar_IndentSpacing, 0.0f); + + // About Styling of tables + // Most settings are configured on a per-table basis via the flags passed to BeginTable() and TableSetupColumns APIs. + // There are however a few settings that a shared and part of the ImGuiStyle structure: + // style.CellPadding // Padding within each cell + // style.Colors[ImGuiCol_TableHeaderBg] // Table header background + // style.Colors[ImGuiCol_TableBorderStrong] // Table outer and header borders + // style.Colors[ImGuiCol_TableBorderLight] // Table inner borders + // style.Colors[ImGuiCol_TableRowBg] // Table row background when ImGuiTableFlags_RowBg is enabled (even rows) + // style.Colors[ImGuiCol_TableRowBgAlt] // Table row background when ImGuiTableFlags_RowBg is enabled (odds rows) + + // Demos + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Basic"); + if (ImGui::TreeNode("Basic")) + { + // Here we will showcase three different ways to output a table. + // They are very simple variations of a same thing! + + // [Method 1] Using TableNextRow() to create a new row, and TableSetColumnIndex() to select the column. + // In many situations, this is the most flexible and easy to use pattern. + HelpMarker("Using TableNextRow() + calling TableSetColumnIndex() _before_ each cell, in a loop."); + if (ImGui::BeginTable("table1", 3)) + { + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Row %d Column %d", row, column); + } + } + ImGui::EndTable(); + } + + // [Method 2] Using TableNextColumn() called multiple times, instead of using a for loop + TableSetColumnIndex(). + // This is generally more convenient when you have code manually submitting the contents of each column. + HelpMarker("Using TableNextRow() + calling TableNextColumn() _before_ each cell, manually."); + if (ImGui::BeginTable("table2", 3)) + { + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Text("Row %d", row); + ImGui::TableNextColumn(); + ImGui::Text("Some contents"); + ImGui::TableNextColumn(); + ImGui::Text("123.456"); + } + ImGui::EndTable(); + } + + // [Method 3] We call TableNextColumn() _before_ each cell. We never call TableNextRow(), + // as TableNextColumn() will automatically wrap around and create new rows as needed. + // This is generally more convenient when your cells all contains the same type of data. + HelpMarker( + "Only using TableNextColumn(), which tends to be convenient for tables where every cell contains the same type of contents.\n" + "This is also more similar to the old NextColumn() function of the Columns API, and provided to facilitate the Columns->Tables API transition."); + if (ImGui::BeginTable("table3", 3)) + { + for (int item = 0; item < 14; item++) + { + ImGui::TableNextColumn(); + ImGui::Text("Item %d", item); + } + ImGui::EndTable(); + } + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Borders, background"); + if (ImGui::TreeNode("Borders, background")) + { + // Expose a few Borders related flags interactively + enum ContentsType { CT_Text, CT_FillButton }; + static ImGuiTableFlags flags = ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg; + static bool display_headers = false; + static int contents_type = CT_Text; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); + ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags, ImGuiTableFlags_Borders); + ImGui::SameLine(); HelpMarker("ImGuiTableFlags_Borders\n = ImGuiTableFlags_BordersInnerV\n | ImGuiTableFlags_BordersOuterV\n | ImGuiTableFlags_BordersInnerV\n | ImGuiTableFlags_BordersOuterH"); + ImGui::Indent(); + + ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); + ImGui::Indent(); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); + ImGui::Unindent(); + + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); + ImGui::Indent(); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags, ImGuiTableFlags_BordersOuterV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags, ImGuiTableFlags_BordersInnerV); + ImGui::Unindent(); + + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuter", &flags, ImGuiTableFlags_BordersOuter); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInner", &flags, ImGuiTableFlags_BordersInner); + ImGui::Unindent(); + + ImGui::AlignTextToFramePadding(); ImGui::Text("Cell contents:"); + ImGui::SameLine(); ImGui::RadioButton("Text", &contents_type, CT_Text); + ImGui::SameLine(); ImGui::RadioButton("FillButton", &contents_type, CT_FillButton); + ImGui::Checkbox("Display headers", &display_headers); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + // Display headers so we can inspect their interaction with borders. + // (Headers are not the main purpose of this section of the demo, so we are not elaborating on them too much. See other sections for details) + if (display_headers) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + } + + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + char buf[32]; + sprintf(buf, "Hello %d,%d", column, row); + if (contents_type == CT_Text) + ImGui::TextUnformatted(buf); + else if (contents_type == CT_FillButton) + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Resizable, stretch"); + if (ImGui::TreeNode("Resizable, stretch")) + { + // By default, if we don't enable ScrollX the sizing policy for each column is "Stretch" + // All columns maintain a sizing weight, and they will occupy all available width. + static ImGuiTableFlags flags = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); + ImGui::SameLine(); HelpMarker("Using the _Resizable flag automatically enables the _BordersInnerV flag as well, this is why the resize borders are still showing when unchecking this."); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Resizable, fixed"); + if (ImGui::TreeNode("Resizable, fixed")) + { + // Here we use ImGuiTableFlags_SizingFixedFit (even though _ScrollX is not set) + // So columns will adopt the "Fixed" policy and will maintain a fixed width regardless of the whole available width (unless table is small) + // If there is not enough available width to fit all columns, they will however be resized down. + // FIXME-TABLE: Providing a stretch-on-init would make sense especially for tables which don't have saved settings + HelpMarker( + "Using _Resizable + _SizingFixedFit flags.\n" + "Fixed-width columns generally makes more sense if you want to use horizontal scrolling.\n\n" + "Double-click a column border to auto-fit the column to its contents."); + PushStyleCompact(); + static ImGuiTableFlags flags = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Resizable, mixed"); + if (ImGui::TreeNode("Resizable, mixed")) + { + HelpMarker( + "Using TableSetupColumn() to alter resizing policy on a per-column basis.\n\n" + "When combining Fixed and Stretch columns, generally you only want one, maybe two trailing columns to use _WidthStretch."); + static ImGuiTableFlags flags = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_RowBg | ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; + + if (ImGui::BeginTable("table1", 3, flags)) + { + ImGui::TableSetupColumn("AAA", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("BBB", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("CCC", ImGuiTableColumnFlags_WidthStretch); + ImGui::TableHeadersRow(); + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%s %d,%d", (column == 2) ? "Stretch" : "Fixed", column, row); + } + } + ImGui::EndTable(); + } + if (ImGui::BeginTable("table2", 6, flags)) + { + ImGui::TableSetupColumn("AAA", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("BBB", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("CCC", ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_DefaultHide); + ImGui::TableSetupColumn("DDD", ImGuiTableColumnFlags_WidthStretch); + ImGui::TableSetupColumn("EEE", ImGuiTableColumnFlags_WidthStretch); + ImGui::TableSetupColumn("FFF", ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_DefaultHide); + ImGui::TableHeadersRow(); + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 6; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%s %d,%d", (column >= 3) ? "Stretch" : "Fixed", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Reorderable, hideable, with headers"); + if (ImGui::TreeNode("Reorderable, hideable, with headers")) + { + HelpMarker( + "Click and drag column headers to reorder columns.\n\n" + "Right-click on a header to open a context menu."); + static ImGuiTableFlags flags = ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + // Submit columns name with TableSetupColumn() and call TableHeadersRow() to create a row with a header in each column. + // (Later we will show how TableSetupColumn() has other uses, optional flags, sizing weight etc.) + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + for (int row = 0; row < 6; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + // Use outer_size.x == 0.0f instead of default to make the table as tight as possible (only valid when no scrolling and no stretch column) + if (ImGui::BeginTable("table2", 3, flags | ImGuiTableFlags_SizingFixedFit, ImVec2(0.0f, 0.0f))) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + for (int row = 0; row < 6; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Fixed %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Padding"); + if (ImGui::TreeNode("Padding")) + { + // First example: showcase use of padding flags and effect of BorderOuterV/BorderInnerV on X padding. + // We don't expose BorderOuterH/BorderInnerH here because they have no effect on X padding. + HelpMarker( + "We often want outer padding activated when any using features which makes the edges of a column visible:\n" + "e.g.:\n" + "- BorderOuterV\n" + "- any form of row selection\n" + "Because of this, activating BorderOuterV sets the default to PadOuterX. Using PadOuterX or NoPadOuterX you can override the default.\n\n" + "Actual padding values are using style.CellPadding.\n\n" + "In this demo we don't show horizontal borders to emphasize how they don't affect default horizontal padding."); + + static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_PadOuterX", &flags1, ImGuiTableFlags_PadOuterX); + ImGui::SameLine(); HelpMarker("Enable outer-most padding (default if ImGuiTableFlags_BordersOuterV is set)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadOuterX", &flags1, ImGuiTableFlags_NoPadOuterX); + ImGui::SameLine(); HelpMarker("Disable outer-most padding (default if ImGuiTableFlags_BordersOuterV is not set)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadInnerX", &flags1, ImGuiTableFlags_NoPadInnerX); + ImGui::SameLine(); HelpMarker("Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off)"); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags1, ImGuiTableFlags_BordersOuterV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags1, ImGuiTableFlags_BordersInnerV); + static bool show_headers = false; + ImGui::Checkbox("show_headers", &show_headers); + PopStyleCompact(); + + if (ImGui::BeginTable("table_padding", 3, flags1)) + { + if (show_headers) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + } + + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + if (row == 0) + { + ImGui::Text("Avail %.2f", ImGui::GetContentRegionAvail().x); + } + else + { + char buf[32]; + sprintf(buf, "Hello %d,%d", column, row); + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + } + //if (ImGui::TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) + // ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, IM_COL32(0, 100, 0, 255)); + } + } + ImGui::EndTable(); + } + + // Second example: set style.CellPadding to (0.0) or a custom value. + // FIXME-TABLE: Vertical border effectively not displayed the same way as horizontal one... + HelpMarker("Setting style.CellPadding to (0,0) or a custom value."); + static ImGuiTableFlags flags2 = ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg; + static ImVec2 cell_padding(0.0f, 0.0f); + static bool show_widget_frame_bg = true; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags2, ImGuiTableFlags_Borders); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags2, ImGuiTableFlags_BordersH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags2, ImGuiTableFlags_BordersV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInner", &flags2, ImGuiTableFlags_BordersInner); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuter", &flags2, ImGuiTableFlags_BordersOuter); + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags2, ImGuiTableFlags_RowBg); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags2, ImGuiTableFlags_Resizable); + ImGui::Checkbox("show_widget_frame_bg", &show_widget_frame_bg); + ImGui::SliderFloat2("CellPadding", &cell_padding.x, 0.0f, 10.0f, "%.0f"); + PopStyleCompact(); + + ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, cell_padding); + if (ImGui::BeginTable("table_padding_2", 3, flags2)) + { + static char text_bufs[3 * 5][16]; // Mini text storage for 3x5 cells + static bool init = true; + if (!show_widget_frame_bg) + ImGui::PushStyleColor(ImGuiCol_FrameBg, 0); + for (int cell = 0; cell < 3 * 5; cell++) + { + ImGui::TableNextColumn(); + if (init) + strcpy(text_bufs[cell], "edit me"); + ImGui::SetNextItemWidth(-FLT_MIN); + ImGui::PushID(cell); + ImGui::InputText("##cell", text_bufs[cell], IM_ARRAYSIZE(text_bufs[cell])); + ImGui::PopID(); + } + if (!show_widget_frame_bg) + ImGui::PopStyleColor(); + init = false; + ImGui::EndTable(); + } + ImGui::PopStyleVar(); + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Explicit widths"); + if (ImGui::TreeNode("Sizing policies")) + { + static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV | ImGuiTableFlags_BordersOuterH | ImGuiTableFlags_RowBg | ImGuiTableFlags_ContextMenuInBody; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags1, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags1, ImGuiTableFlags_NoHostExtendX); + PopStyleCompact(); + + static ImGuiTableFlags sizing_policy_flags[4] = { ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_SizingFixedSame, ImGuiTableFlags_SizingStretchProp, ImGuiTableFlags_SizingStretchSame }; + for (int table_n = 0; table_n < 4; table_n++) + { + ImGui::PushID(table_n); + ImGui::SetNextItemWidth(TEXT_BASE_WIDTH * 30); + EditTableSizingFlags(&sizing_policy_flags[table_n]); + + // To make it easier to understand the different sizing policy, + // For each policy: we display one table where the columns have equal contents width, and one where the columns have different contents width. + if (ImGui::BeginTable("table1", 3, sizing_policy_flags[table_n] | flags1)) + { + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); ImGui::Text("Oh dear"); + ImGui::TableNextColumn(); ImGui::Text("Oh dear"); + ImGui::TableNextColumn(); ImGui::Text("Oh dear"); + } + ImGui::EndTable(); + } + if (ImGui::BeginTable("table2", 3, sizing_policy_flags[table_n] | flags1)) + { + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); ImGui::Text("AAAA"); + ImGui::TableNextColumn(); ImGui::Text("BBBBBBBB"); + ImGui::TableNextColumn(); ImGui::Text("CCCCCCCCCCCC"); + } + ImGui::EndTable(); + } + ImGui::PopID(); + } + + ImGui::Spacing(); + ImGui::TextUnformatted("Advanced"); + ImGui::SameLine(); + HelpMarker("This section allows you to interact and see the effect of various sizing policies depending on whether Scroll is enabled and the contents of your columns."); + + enum ContentsType { CT_ShowWidth, CT_ShortText, CT_LongText, CT_Button, CT_FillButton, CT_InputText }; + static ImGuiTableFlags flags = ImGuiTableFlags_ScrollY | ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_Resizable; + static int contents_type = CT_ShowWidth; + static int column_count = 3; + + PushStyleCompact(); + ImGui::PushID("Advanced"); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 30); + EditTableSizingFlags(&flags); + ImGui::Combo("Contents", &contents_type, "Show width\0Short Text\0Long Text\0Button\0Fill Button\0InputText\0"); + if (contents_type == CT_FillButton) + { + ImGui::SameLine(); + HelpMarker("Be mindful that using right-alignment (e.g. size.x = -FLT_MIN) creates a feedback loop where contents width can feed into auto-column width can feed into contents width."); + } + ImGui::DragInt("Columns", &column_count, 0.1f, 1, 64, "%d", ImGuiSliderFlags_AlwaysClamp); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_PreciseWidths", &flags, ImGuiTableFlags_PreciseWidths); + ImGui::SameLine(); HelpMarker("Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth."); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::CheckboxFlags("ImGuiTableFlags_NoClip", &flags, ImGuiTableFlags_NoClip); + ImGui::PopItemWidth(); + ImGui::PopID(); + PopStyleCompact(); + + if (ImGui::BeginTable("table2", column_count, flags, ImVec2(0.0f, TEXT_BASE_HEIGHT * 7))) + { + for (int cell = 0; cell < 10 * column_count; cell++) + { + ImGui::TableNextColumn(); + int column = ImGui::TableGetColumnIndex(); + int row = ImGui::TableGetRowIndex(); + + ImGui::PushID(cell); + char label[32]; + static char text_buf[32] = ""; + sprintf(label, "Hello %d,%d", column, row); + switch (contents_type) + { + case CT_ShortText: ImGui::TextUnformatted(label); break; + case CT_LongText: ImGui::Text("Some %s text %d,%d\nOver two lines..", column == 0 ? "long" : "longeeer", column, row); break; + case CT_ShowWidth: ImGui::Text("W: %.1f", ImGui::GetContentRegionAvail().x); break; + case CT_Button: ImGui::Button(label); break; + case CT_FillButton: ImGui::Button(label, ImVec2(-FLT_MIN, 0.0f)); break; + case CT_InputText: ImGui::SetNextItemWidth(-FLT_MIN); ImGui::InputText("##", text_buf, IM_ARRAYSIZE(text_buf)); break; + } + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Vertical scrolling, with clipping"); + if (ImGui::TreeNode("Vertical scrolling, with clipping")) + { + HelpMarker("Here we activate ScrollY, which will create a child window container to allow hosting scrollable contents.\n\nWe also demonstrate using ImGuiListClipper to virtualize the submission of many items."); + static ImGuiTableFlags flags = ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + PopStyleCompact(); + + // When using ScrollX or ScrollY we need to specify a size for our table container! + // Otherwise by default the table will fit all available space, like a BeginChild() call. + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 8); + if (ImGui::BeginTable("table_scrolly", 3, flags, outer_size)) + { + ImGui::TableSetupScrollFreeze(0, 1); // Make top row always visible + ImGui::TableSetupColumn("One", ImGuiTableColumnFlags_None); + ImGui::TableSetupColumn("Two", ImGuiTableColumnFlags_None); + ImGui::TableSetupColumn("Three", ImGuiTableColumnFlags_None); + ImGui::TableHeadersRow(); + + // Demonstrate using clipper for large vertical lists + ImGuiListClipper clipper; + clipper.Begin(1000); + while (clipper.Step()) + { + for (int row = clipper.DisplayStart; row < clipper.DisplayEnd; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Horizontal scrolling"); + if (ImGui::TreeNode("Horizontal scrolling")) + { + HelpMarker( + "When ScrollX is enabled, the default sizing policy becomes ImGuiTableFlags_SizingFixedFit, " + "as automatically stretching columns doesn't make much sense with horizontal scrolling.\n\n" + "Also note that as of the current version, you will almost always want to enable ScrollY along with ScrollX," + "because the container window won't automatically extend vertically to fix contents (this may be improved in future versions)."); + static ImGuiTableFlags flags = ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; + static int freeze_cols = 1; + static int freeze_rows = 1; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_cols", &freeze_cols, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_rows", &freeze_rows, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + PopStyleCompact(); + + // When using ScrollX or ScrollY we need to specify a size for our table container! + // Otherwise by default the table will fit all available space, like a BeginChild() call. + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 8); + if (ImGui::BeginTable("table_scrollx", 7, flags, outer_size)) + { + ImGui::TableSetupScrollFreeze(freeze_cols, freeze_rows); + ImGui::TableSetupColumn("Line #", ImGuiTableColumnFlags_NoHide); // Make the first column not hideable to match our use of TableSetupScrollFreeze() + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableSetupColumn("Four"); + ImGui::TableSetupColumn("Five"); + ImGui::TableSetupColumn("Six"); + ImGui::TableHeadersRow(); + for (int row = 0; row < 20; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 7; column++) + { + // Both TableNextColumn() and TableSetColumnIndex() return true when a column is visible or performing width measurement. + // Because here we know that: + // - A) all our columns are contributing the same to row height + // - B) column 0 is always visible, + // We only always submit this one column and can skip others. + // More advanced per-column clipping behaviors may benefit from polling the status flags via TableGetColumnFlags(). + if (!ImGui::TableSetColumnIndex(column) && column > 0) + continue; + if (column == 0) + ImGui::Text("Line %d", row); + else + ImGui::Text("Hello world %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + ImGui::Spacing(); + ImGui::TextUnformatted("Stretch + ScrollX"); + ImGui::SameLine(); + HelpMarker( + "Showcase using Stretch columns + ScrollX together: " + "this is rather unusual and only makes sense when specifying an 'inner_width' for the table!\n" + "Without an explicit value, inner_width is == outer_size.x and therefore using Stretch columns + ScrollX together doesn't make sense."); + static ImGuiTableFlags flags2 = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_RowBg | ImGuiTableFlags_ContextMenuInBody; + static float inner_width = 1000.0f; + PushStyleCompact(); + ImGui::PushID("flags3"); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 30); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags2, ImGuiTableFlags_ScrollX); + ImGui::DragFloat("inner_width", &inner_width, 1.0f, 0.0f, FLT_MAX, "%.1f"); + ImGui::PopItemWidth(); + ImGui::PopID(); + PopStyleCompact(); + if (ImGui::BeginTable("table2", 7, flags2, outer_size, inner_width)) + { + for (int cell = 0; cell < 20 * 7; cell++) + { + ImGui::TableNextColumn(); + ImGui::Text("Hello world %d,%d", ImGui::TableGetColumnIndex(), ImGui::TableGetRowIndex()); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Columns flags"); + if (ImGui::TreeNode("Columns flags")) + { + // Create a first table just to show all the options/flags we want to make visible in our example! + const int column_count = 3; + const char* column_names[column_count] = { "One", "Two", "Three" }; + static ImGuiTableColumnFlags column_flags[column_count] = { ImGuiTableColumnFlags_DefaultSort, ImGuiTableColumnFlags_None, ImGuiTableColumnFlags_DefaultHide }; + static ImGuiTableColumnFlags column_flags_out[column_count] = { 0, 0, 0 }; // Output from TableGetColumnFlags() + + if (ImGui::BeginTable("table_columns_flags_checkboxes", column_count, ImGuiTableFlags_None)) + { + PushStyleCompact(); + for (int column = 0; column < column_count; column++) + { + ImGui::TableNextColumn(); + ImGui::PushID(column); + ImGui::AlignTextToFramePadding(); // FIXME-TABLE: Workaround for wrong text baseline propagation across columns + ImGui::Text("'%s'", column_names[column]); + ImGui::Spacing(); + ImGui::Text("Input flags:"); + EditTableColumnsFlags(&column_flags[column]); + ImGui::Spacing(); + ImGui::Text("Output flags:"); + ImGui::BeginDisabled(); + ShowTableColumnsStatusFlags(column_flags_out[column]); + ImGui::EndDisabled(); + ImGui::PopID(); + } + PopStyleCompact(); + ImGui::EndTable(); + } + + // Create the real table we care about for the example! + // We use a scrolling table to be able to showcase the difference between the _IsEnabled and _IsVisible flags above, otherwise in + // a non-scrolling table columns are always visible (unless using ImGuiTableFlags_NoKeepColumnsVisible + resizing the parent window down) + const ImGuiTableFlags flags + = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY + | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV + | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable; + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 9); + if (ImGui::BeginTable("table_columns_flags", column_count, flags, outer_size)) + { + for (int column = 0; column < column_count; column++) + ImGui::TableSetupColumn(column_names[column], column_flags[column]); + ImGui::TableHeadersRow(); + for (int column = 0; column < column_count; column++) + column_flags_out[column] = ImGui::TableGetColumnFlags(column); + float indent_step = (float)((int)TEXT_BASE_WIDTH / 2); + for (int row = 0; row < 8; row++) + { + ImGui::Indent(indent_step); // Add some indentation to demonstrate usage of per-column IndentEnable/IndentDisable flags. + ImGui::TableNextRow(); + for (int column = 0; column < column_count; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%s %s", (column == 0) ? "Indented" : "Hello", ImGui::TableGetColumnName(column)); + } + } + ImGui::Unindent(indent_step * 8.0f); + + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Columns widths"); + if (ImGui::TreeNode("Columns widths")) + { + HelpMarker("Using TableSetupColumn() to setup default width."); + + static ImGuiTableFlags flags1 = ImGuiTableFlags_Borders | ImGuiTableFlags_NoBordersInBodyUntilResize; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags1, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags1, ImGuiTableFlags_NoBordersInBodyUntilResize); + PopStyleCompact(); + if (ImGui::BeginTable("table1", 3, flags1)) + { + // We could also set ImGuiTableFlags_SizingFixedFit on the table and all columns will default to ImGuiTableColumnFlags_WidthFixed. + ImGui::TableSetupColumn("one", ImGuiTableColumnFlags_WidthFixed, 100.0f); // Default to 100.0f + ImGui::TableSetupColumn("two", ImGuiTableColumnFlags_WidthFixed, 200.0f); // Default to 200.0f + ImGui::TableSetupColumn("three", ImGuiTableColumnFlags_WidthFixed); // Default to auto + ImGui::TableHeadersRow(); + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + if (row == 0) + ImGui::Text("(w: %5.1f)", ImGui::GetContentRegionAvail().x); + else + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + HelpMarker("Using TableSetupColumn() to setup explicit width.\n\nUnless _NoKeepColumnsVisible is set, fixed columns with set width may still be shrunk down if there's not enough space in the host."); + + static ImGuiTableFlags flags2 = ImGuiTableFlags_None; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_NoKeepColumnsVisible", &flags2, ImGuiTableFlags_NoKeepColumnsVisible); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags2, ImGuiTableFlags_BordersInnerV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags2, ImGuiTableFlags_BordersOuterV); + PopStyleCompact(); + if (ImGui::BeginTable("table2", 4, flags2)) + { + // We could also set ImGuiTableFlags_SizingFixedFit on the table and all columns will default to ImGuiTableColumnFlags_WidthFixed. + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, 100.0f); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 15.0f); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 30.0f); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 15.0f); + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 4; column++) + { + ImGui::TableSetColumnIndex(column); + if (row == 0) + ImGui::Text("(w: %5.1f)", ImGui::GetContentRegionAvail().x); + else + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Nested tables"); + if (ImGui::TreeNode("Nested tables")) + { + HelpMarker("This demonstrates embedding a table into another table cell."); + + if (ImGui::BeginTable("table_nested1", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + ImGui::TableSetupColumn("A0"); + ImGui::TableSetupColumn("A1"); + ImGui::TableHeadersRow(); + + ImGui::TableNextColumn(); + ImGui::Text("A0 Row 0"); + { + float rows_height = TEXT_BASE_HEIGHT * 2; + if (ImGui::BeginTable("table_nested2", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + ImGui::TableSetupColumn("B0"); + ImGui::TableSetupColumn("B1"); + ImGui::TableHeadersRow(); + + ImGui::TableNextRow(ImGuiTableRowFlags_None, rows_height); + ImGui::TableNextColumn(); + ImGui::Text("B0 Row 0"); + ImGui::TableNextColumn(); + ImGui::Text("B1 Row 0"); + ImGui::TableNextRow(ImGuiTableRowFlags_None, rows_height); + ImGui::TableNextColumn(); + ImGui::Text("B0 Row 1"); + ImGui::TableNextColumn(); + ImGui::Text("B1 Row 1"); + + ImGui::EndTable(); + } + } + ImGui::TableNextColumn(); ImGui::Text("A1 Row 0"); + ImGui::TableNextColumn(); ImGui::Text("A0 Row 1"); + ImGui::TableNextColumn(); ImGui::Text("A1 Row 1"); + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Row height"); + if (ImGui::TreeNode("Row height")) + { + HelpMarker("You can pass a 'min_row_height' to TableNextRow().\n\nRows are padded with 'style.CellPadding.y' on top and bottom, so effectively the minimum row height will always be >= 'style.CellPadding.y * 2.0f'.\n\nWe cannot honor a _maximum_ row height as that would require a unique clipping rectangle per row."); + if (ImGui::BeginTable("table_row_height", 1, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersInnerV)) + { + for (int row = 0; row < 10; row++) + { + float min_row_height = (float)(int)(TEXT_BASE_HEIGHT * 0.30f * row); + ImGui::TableNextRow(ImGuiTableRowFlags_None, min_row_height); + ImGui::TableNextColumn(); + ImGui::Text("min_row_height = %.2f", min_row_height); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Outer size"); + if (ImGui::TreeNode("Outer size")) + { + // Showcasing use of ImGuiTableFlags_NoHostExtendX and ImGuiTableFlags_NoHostExtendY + // Important to that note how the two flags have slightly different behaviors! + ImGui::Text("Using NoHostExtendX and NoHostExtendY:"); + PushStyleCompact(); + static ImGuiTableFlags flags = ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_ContextMenuInBody | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoHostExtendX; + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); + ImGui::SameLine(); HelpMarker("Make outer width auto-fit to columns, overriding outer_size.x value.\n\nOnly available when ScrollX/ScrollY are disabled and Stretch columns are not used."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendY", &flags, ImGuiTableFlags_NoHostExtendY); + ImGui::SameLine(); HelpMarker("Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit).\n\nOnly available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible."); + PopStyleCompact(); + + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 5.5f); + if (ImGui::BeginTable("table1", 3, flags, outer_size)) + { + for (int row = 0; row < 10; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableNextColumn(); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::SameLine(); + ImGui::Text("Hello!"); + + ImGui::Spacing(); + + ImGui::Text("Using explicit size:"); + if (ImGui::BeginTable("table2", 3, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg, ImVec2(TEXT_BASE_WIDTH * 30, 0.0f))) + { + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableNextColumn(); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::SameLine(); + if (ImGui::BeginTable("table3", 3, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg, ImVec2(TEXT_BASE_WIDTH * 30, 0.0f))) + { + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(0, TEXT_BASE_HEIGHT * 1.5f); + for (int column = 0; column < 3; column++) + { + ImGui::TableNextColumn(); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Background color"); + if (ImGui::TreeNode("Background color")) + { + static ImGuiTableFlags flags = ImGuiTableFlags_RowBg; + static int row_bg_type = 1; + static int row_bg_target = 1; + static int cell_bg_type = 1; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags, ImGuiTableFlags_Borders); + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); + ImGui::SameLine(); HelpMarker("ImGuiTableFlags_RowBg automatically sets RowBg0 to alternative colors pulled from the Style."); + ImGui::Combo("row bg type", (int*)&row_bg_type, "None\0Red\0Gradient\0"); + ImGui::Combo("row bg target", (int*)&row_bg_target, "RowBg0\0RowBg1\0"); ImGui::SameLine(); HelpMarker("Target RowBg0 to override the alternating odd/even colors,\nTarget RowBg1 to blend with them."); + ImGui::Combo("cell bg type", (int*)&cell_bg_type, "None\0Blue\0"); ImGui::SameLine(); HelpMarker("We are colorizing cells to B1->C2 here."); + IM_ASSERT(row_bg_type >= 0 && row_bg_type <= 2); + IM_ASSERT(row_bg_target >= 0 && row_bg_target <= 1); + IM_ASSERT(cell_bg_type >= 0 && cell_bg_type <= 1); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 5, flags)) + { + for (int row = 0; row < 6; row++) + { + ImGui::TableNextRow(); + + // Demonstrate setting a row background color with 'ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBgX, ...)' + // We use a transparent color so we can see the one behind in case our target is RowBg1 and RowBg0 was already targeted by the ImGuiTableFlags_RowBg flag. + if (row_bg_type != 0) + { + ImU32 row_bg_color = ImGui::GetColorU32(row_bg_type == 1 ? ImVec4(0.7f, 0.3f, 0.3f, 0.65f) : ImVec4(0.2f + row * 0.1f, 0.2f, 0.2f, 0.65f)); // Flat or Gradient? + ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0 + row_bg_target, row_bg_color); + } + + // Fill cells + for (int column = 0; column < 5; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%c%c", 'A' + row, '0' + column); + + // Change background of Cells B1->C2 + // Demonstrate setting a cell background color with 'ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, ...)' + // (the CellBg color will be blended over the RowBg and ColumnBg colors) + // We can also pass a column number as a third parameter to TableSetBgColor() and do this outside the column loop. + if (row >= 1 && row <= 2 && column >= 1 && column <= 2 && cell_bg_type == 1) + { + ImU32 cell_bg_color = ImGui::GetColorU32(ImVec4(0.3f, 0.3f, 0.7f, 0.65f)); + ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, cell_bg_color); + } + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Tree view"); + if (ImGui::TreeNode("Tree view")) + { + static ImGuiTableFlags flags = ImGuiTableFlags_BordersV | ImGuiTableFlags_BordersOuterH | ImGuiTableFlags_Resizable | ImGuiTableFlags_RowBg | ImGuiTableFlags_NoBordersInBody; + + if (ImGui::BeginTable("3ways", 3, flags)) + { + // The first column will use the default _WidthStretch when ScrollX is Off and _WidthFixed when ScrollX is On + ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_NoHide); + ImGui::TableSetupColumn("Size", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 12.0f); + ImGui::TableSetupColumn("Type", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 18.0f); + ImGui::TableHeadersRow(); + + // Simple storage to output a dummy file-system. + struct MyTreeNode + { + const char* Name; + const char* Type; + int Size; + int ChildIdx; + int ChildCount; + static void DisplayNode(const MyTreeNode* node, const MyTreeNode* all_nodes) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + const bool is_folder = (node->ChildCount > 0); + if (is_folder) + { + bool open = ImGui::TreeNodeEx(node->Name, ImGuiTreeNodeFlags_SpanFullWidth); + ImGui::TableNextColumn(); + ImGui::TextDisabled("--"); + ImGui::TableNextColumn(); + ImGui::TextUnformatted(node->Type); + if (open) + { + for (int child_n = 0; child_n < node->ChildCount; child_n++) + DisplayNode(&all_nodes[node->ChildIdx + child_n], all_nodes); + ImGui::TreePop(); + } + } + else + { + ImGui::TreeNodeEx(node->Name, ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_SpanFullWidth); + ImGui::TableNextColumn(); + ImGui::Text("%d", node->Size); + ImGui::TableNextColumn(); + ImGui::TextUnformatted(node->Type); + } + } + }; + static const MyTreeNode nodes[] = + { + { "Root", "Folder", -1, 1, 3 }, // 0 + { "Music", "Folder", -1, 4, 2 }, // 1 + { "Textures", "Folder", -1, 6, 3 }, // 2 + { "desktop.ini", "System file", 1024, -1,-1 }, // 3 + { "File1_a.wav", "Audio file", 123000, -1,-1 }, // 4 + { "File1_b.wav", "Audio file", 456000, -1,-1 }, // 5 + { "Image001.png", "Image file", 203128, -1,-1 }, // 6 + { "Copy of Image001.png", "Image file", 203256, -1,-1 }, // 7 + { "Copy of Image001 (Final2).png","Image file", 203512, -1,-1 }, // 8 + }; + + MyTreeNode::DisplayNode(&nodes[0], nodes); + + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Item width"); + if (ImGui::TreeNode("Item width")) + { + HelpMarker( + "Showcase using PushItemWidth() and how it is preserved on a per-column basis.\n\n" + "Note that on auto-resizing non-resizable fixed columns, querying the content width for e.g. right-alignment doesn't make sense."); + if (ImGui::BeginTable("table_item_width", 3, ImGuiTableFlags_Borders)) + { + ImGui::TableSetupColumn("small"); + ImGui::TableSetupColumn("half"); + ImGui::TableSetupColumn("right-align"); + ImGui::TableHeadersRow(); + + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(); + if (row == 0) + { + // Setup ItemWidth once (instead of setting up every time, which is also possible but less efficient) + ImGui::TableSetColumnIndex(0); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 3.0f); // Small + ImGui::TableSetColumnIndex(1); + ImGui::PushItemWidth(-ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::TableSetColumnIndex(2); + ImGui::PushItemWidth(-FLT_MIN); // Right-aligned + } + + // Draw our contents + static float dummy_f = 0.0f; + ImGui::PushID(row); + ImGui::TableSetColumnIndex(0); + ImGui::SliderFloat("float0", &dummy_f, 0.0f, 1.0f); + ImGui::TableSetColumnIndex(1); + ImGui::SliderFloat("float1", &dummy_f, 0.0f, 1.0f); + ImGui::TableSetColumnIndex(2); + ImGui::SliderFloat("##float2", &dummy_f, 0.0f, 1.0f); // No visible label since right-aligned + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // Demonstrate using TableHeader() calls instead of TableHeadersRow() + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Custom headers"); + if (ImGui::TreeNode("Custom headers")) + { + const int COLUMNS_COUNT = 3; + if (ImGui::BeginTable("table_custom_headers", COLUMNS_COUNT, ImGuiTableFlags_Borders | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + ImGui::TableSetupColumn("Apricot"); + ImGui::TableSetupColumn("Banana"); + ImGui::TableSetupColumn("Cherry"); + + // Dummy entire-column selection storage + // FIXME: It would be nice to actually demonstrate full-featured selection using those checkbox. + static bool column_selected[3] = {}; + + // Instead of calling TableHeadersRow() we'll submit custom headers ourselves + ImGui::TableNextRow(ImGuiTableRowFlags_Headers); + for (int column = 0; column < COLUMNS_COUNT; column++) + { + ImGui::TableSetColumnIndex(column); + const char* column_name = ImGui::TableGetColumnName(column); // Retrieve name passed to TableSetupColumn() + ImGui::PushID(column); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); + ImGui::Checkbox("##checkall", &column_selected[column]); + ImGui::PopStyleVar(); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::TableHeader(column_name); + ImGui::PopID(); + } + + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + char buf[32]; + sprintf(buf, "Cell %d,%d", column, row); + ImGui::TableSetColumnIndex(column); + ImGui::Selectable(buf, column_selected[column]); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // Demonstrate creating custom context menus inside columns, while playing it nice with context menus provided by TableHeadersRow()/TableHeader() + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Context menus"); + if (ImGui::TreeNode("Context menus")) + { + HelpMarker("By default, right-clicking over a TableHeadersRow()/TableHeader() line will open the default context-menu.\nUsing ImGuiTableFlags_ContextMenuInBody we also allow right-clicking over columns body."); + static ImGuiTableFlags flags1 = ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders | ImGuiTableFlags_ContextMenuInBody; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_ContextMenuInBody", &flags1, ImGuiTableFlags_ContextMenuInBody); + PopStyleCompact(); + + // Context Menus: first example + // [1.1] Right-click on the TableHeadersRow() line to open the default table context menu. + // [1.2] Right-click in columns also open the default table context menu (if ImGuiTableFlags_ContextMenuInBody is set) + const int COLUMNS_COUNT = 3; + if (ImGui::BeginTable("table_context_menu", COLUMNS_COUNT, flags1)) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + + // [1.1]] Right-click on the TableHeadersRow() line to open the default table context menu. + ImGui::TableHeadersRow(); + + // Submit dummy contents + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < COLUMNS_COUNT; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + // Context Menus: second example + // [2.1] Right-click on the TableHeadersRow() line to open the default table context menu. + // [2.2] Right-click on the ".." to open a custom popup + // [2.3] Right-click in columns to open another custom popup + HelpMarker("Demonstrate mixing table context menu (over header), item context button (over button) and custom per-colum context menu (over column body)."); + ImGuiTableFlags flags2 = ImGuiTableFlags_Resizable | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders; + if (ImGui::BeginTable("table_context_menu_2", COLUMNS_COUNT, flags2)) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + + // [2.1] Right-click on the TableHeadersRow() line to open the default table context menu. + ImGui::TableHeadersRow(); + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < COLUMNS_COUNT; column++) + { + // Submit dummy contents + ImGui::TableSetColumnIndex(column); + ImGui::Text("Cell %d,%d", column, row); + ImGui::SameLine(); + + // [2.2] Right-click on the ".." to open a custom popup + ImGui::PushID(row * COLUMNS_COUNT + column); + ImGui::SmallButton(".."); + if (ImGui::BeginPopupContextItem()) + { + ImGui::Text("This is the popup for Button(\"..\") in Cell %d,%d", column, row); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::PopID(); + } + } + + // [2.3] Right-click anywhere in columns to open another custom popup + // (instead of testing for !IsAnyItemHovered() we could also call OpenPopup() with ImGuiPopupFlags_NoOpenOverExistingPopup + // to manage popup priority as the popups triggers, here "are we hovering a column" are overlapping) + int hovered_column = -1; + for (int column = 0; column < COLUMNS_COUNT + 1; column++) + { + ImGui::PushID(column); + if (ImGui::TableGetColumnFlags(column) & ImGuiTableColumnFlags_IsHovered) + hovered_column = column; + if (hovered_column == column && !ImGui::IsAnyItemHovered() && ImGui::IsMouseReleased(1)) + ImGui::OpenPopup("MyPopup"); + if (ImGui::BeginPopup("MyPopup")) + { + if (column == COLUMNS_COUNT) + ImGui::Text("This is a custom popup for unused space after the last column."); + else + ImGui::Text("This is a custom popup for Column %d", column); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::PopID(); + } + + ImGui::EndTable(); + ImGui::Text("Hovered column: %d", hovered_column); + } + ImGui::TreePop(); + } + + // Demonstrate creating multiple tables with the same ID + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Synced instances"); + if (ImGui::TreeNode("Synced instances")) + { + HelpMarker("Multiple tables with the same identifier will share their settings, width, visibility, order etc."); + for (int n = 0; n < 3; n++) + { + char buf[32]; + sprintf(buf, "Synced Table %d", n); + bool open = ImGui::CollapsingHeader(buf, ImGuiTreeNodeFlags_DefaultOpen); + if (open && ImGui::BeginTable("Table", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoSavedSettings)) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + for (int cell = 0; cell < 9; cell++) + { + ImGui::TableNextColumn(); + ImGui::Text("this cell %d", cell); + } + ImGui::EndTable(); + } + } + ImGui::TreePop(); + } + + // Demonstrate using Sorting facilities + // This is a simplified version of the "Advanced" example, where we mostly focus on the code necessary to handle sorting. + // Note that the "Advanced" example also showcase manually triggering a sort (e.g. if item quantities have been modified) + static const char* template_items_names[] = + { + "Banana", "Apple", "Cherry", "Watermelon", "Grapefruit", "Strawberry", "Mango", + "Kiwi", "Orange", "Pineapple", "Blueberry", "Plum", "Coconut", "Pear", "Apricot" + }; + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Sorting"); + if (ImGui::TreeNode("Sorting")) + { + // Create item list + static ImVector items; + if (items.Size == 0) + { + items.resize(50, MyItem()); + for (int n = 0; n < items.Size; n++) + { + const int template_n = n % IM_ARRAYSIZE(template_items_names); + MyItem& item = items[n]; + item.ID = n; + item.Name = template_items_names[template_n]; + item.Quantity = (n * n - n) % 20; // Assign default quantities + } + } + + // Options + static ImGuiTableFlags flags = + ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable | ImGuiTableFlags_SortMulti + | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_NoBordersInBody + | ImGuiTableFlags_ScrollY; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_SortMulti", &flags, ImGuiTableFlags_SortMulti); + ImGui::SameLine(); HelpMarker("When sorting is enabled: hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1)."); + ImGui::CheckboxFlags("ImGuiTableFlags_SortTristate", &flags, ImGuiTableFlags_SortTristate); + ImGui::SameLine(); HelpMarker("When sorting is enabled: allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0)."); + PopStyleCompact(); + + if (ImGui::BeginTable("table_sorting", 4, flags, ImVec2(0.0f, TEXT_BASE_HEIGHT * 15), 0.0f)) + { + // Declare columns + // We use the "user_id" parameter of TableSetupColumn() to specify a user id that will be stored in the sort specifications. + // This is so our sort function can identify a column given our own identifier. We could also identify them based on their index! + // Demonstrate using a mixture of flags among available sort-related flags: + // - ImGuiTableColumnFlags_DefaultSort + // - ImGuiTableColumnFlags_NoSort / ImGuiTableColumnFlags_NoSortAscending / ImGuiTableColumnFlags_NoSortDescending + // - ImGuiTableColumnFlags_PreferSortAscending / ImGuiTableColumnFlags_PreferSortDescending + ImGui::TableSetupColumn("ID", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_ID); + ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Name); + ImGui::TableSetupColumn("Action", ImGuiTableColumnFlags_NoSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Action); + ImGui::TableSetupColumn("Quantity", ImGuiTableColumnFlags_PreferSortDescending | ImGuiTableColumnFlags_WidthStretch, 0.0f, MyItemColumnID_Quantity); + ImGui::TableSetupScrollFreeze(0, 1); // Make row always visible + ImGui::TableHeadersRow(); + + // Sort our data if sort specs have been changed! + if (ImGuiTableSortSpecs* sorts_specs = ImGui::TableGetSortSpecs()) + if (sorts_specs->SpecsDirty) + { + MyItem::s_current_sort_specs = sorts_specs; // Store in variable accessible by the sort function. + if (items.Size > 1) + qsort(&items[0], (size_t)items.Size, sizeof(items[0]), MyItem::CompareWithSortSpecs); + MyItem::s_current_sort_specs = NULL; + sorts_specs->SpecsDirty = false; + } + + // Demonstrate using clipper for large vertical lists + ImGuiListClipper clipper; + clipper.Begin(items.Size); + while (clipper.Step()) + for (int row_n = clipper.DisplayStart; row_n < clipper.DisplayEnd; row_n++) + { + // Display a data item + MyItem* item = &items[row_n]; + ImGui::PushID(item->ID); + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Text("%04d", item->ID); + ImGui::TableNextColumn(); + ImGui::TextUnformatted(item->Name); + ImGui::TableNextColumn(); + ImGui::SmallButton("None"); + ImGui::TableNextColumn(); + ImGui::Text("%d", item->Quantity); + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // In this example we'll expose most table flags and settings. + // For specific flags and settings refer to the corresponding section for more detailed explanation. + // This section is mostly useful to experiment with combining certain flags or settings with each others. + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // [DEBUG] + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Advanced"); + if (ImGui::TreeNode("Advanced")) + { + static ImGuiTableFlags flags = + ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable + | ImGuiTableFlags_Sortable | ImGuiTableFlags_SortMulti + | ImGuiTableFlags_RowBg | ImGuiTableFlags_Borders | ImGuiTableFlags_NoBordersInBody + | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY + | ImGuiTableFlags_SizingFixedFit; + + enum ContentsType { CT_Text, CT_Button, CT_SmallButton, CT_FillButton, CT_Selectable, CT_SelectableSpanRow }; + static int contents_type = CT_SelectableSpanRow; + const char* contents_type_names[] = { "Text", "Button", "SmallButton", "FillButton", "Selectable", "Selectable (span row)" }; + static int freeze_cols = 1; + static int freeze_rows = 1; + static int items_count = IM_ARRAYSIZE(template_items_names) * 2; + static ImVec2 outer_size_value = ImVec2(0.0f, TEXT_BASE_HEIGHT * 12); + static float row_min_height = 0.0f; // Auto + static float inner_width_with_scroll = 0.0f; // Auto-extend + static bool outer_size_enabled = true; + static bool show_headers = true; + static bool show_wrapped_text = false; + //static ImGuiTextFilter filter; + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // FIXME-TABLE: Enabling this results in initial clipped first pass on table which tend to affect column sizing + if (ImGui::TreeNode("Options")) + { + // Make the UI compact because there are so many fields + PushStyleCompact(); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 28.0f); + + if (ImGui::TreeNodeEx("Features:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); + ImGui::CheckboxFlags("ImGuiTableFlags_Sortable", &flags, ImGuiTableFlags_Sortable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoSavedSettings", &flags, ImGuiTableFlags_NoSavedSettings); + ImGui::CheckboxFlags("ImGuiTableFlags_ContextMenuInBody", &flags, ImGuiTableFlags_ContextMenuInBody); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Decorations:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags, ImGuiTableFlags_BordersOuterV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags, ImGuiTableFlags_BordersInnerV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Sizing:", ImGuiTreeNodeFlags_DefaultOpen)) + { + EditTableSizingFlags(&flags); + ImGui::SameLine(); HelpMarker("In the Advanced demo we override the policy of each column so those table-wide settings have less effect that typical."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); + ImGui::SameLine(); HelpMarker("Make outer width auto-fit to columns, overriding outer_size.x value.\n\nOnly available when ScrollX/ScrollY are disabled and Stretch columns are not used."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendY", &flags, ImGuiTableFlags_NoHostExtendY); + ImGui::SameLine(); HelpMarker("Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit).\n\nOnly available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoKeepColumnsVisible", &flags, ImGuiTableFlags_NoKeepColumnsVisible); + ImGui::SameLine(); HelpMarker("Only available if ScrollX is disabled."); + ImGui::CheckboxFlags("ImGuiTableFlags_PreciseWidths", &flags, ImGuiTableFlags_PreciseWidths); + ImGui::SameLine(); HelpMarker("Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoClip", &flags, ImGuiTableFlags_NoClip); + ImGui::SameLine(); HelpMarker("Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with ScrollFreeze options."); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Padding:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_PadOuterX", &flags, ImGuiTableFlags_PadOuterX); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadOuterX", &flags, ImGuiTableFlags_NoPadOuterX); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadInnerX", &flags, ImGuiTableFlags_NoPadInnerX); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Scrolling:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); + ImGui::SameLine(); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_cols", &freeze_cols, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::SameLine(); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_rows", &freeze_rows, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Sorting:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_SortMulti", &flags, ImGuiTableFlags_SortMulti); + ImGui::SameLine(); HelpMarker("When sorting is enabled: hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1)."); + ImGui::CheckboxFlags("ImGuiTableFlags_SortTristate", &flags, ImGuiTableFlags_SortTristate); + ImGui::SameLine(); HelpMarker("When sorting is enabled: allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0)."); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Other:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::Checkbox("show_headers", &show_headers); + ImGui::Checkbox("show_wrapped_text", &show_wrapped_text); + + ImGui::DragFloat2("##OuterSize", &outer_size_value.x); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::Checkbox("outer_size", &outer_size_enabled); + ImGui::SameLine(); + HelpMarker("If scrolling is disabled (ScrollX and ScrollY not set):\n" + "- The table is output directly in the parent window.\n" + "- OuterSize.x < 0.0f will right-align the table.\n" + "- OuterSize.x = 0.0f will narrow fit the table unless there are any Stretch columns.\n" + "- OuterSize.y then becomes the minimum size for the table, which will extend vertically if there are more rows (unless NoHostExtendY is set)."); + + // From a user point of view we will tend to use 'inner_width' differently depending on whether our table is embedding scrolling. + // To facilitate toying with this demo we will actually pass 0.0f to the BeginTable() when ScrollX is disabled. + ImGui::DragFloat("inner_width (when ScrollX active)", &inner_width_with_scroll, 1.0f, 0.0f, FLT_MAX); + + ImGui::DragFloat("row_min_height", &row_min_height, 1.0f, 0.0f, FLT_MAX); + ImGui::SameLine(); HelpMarker("Specify height of the Selectable item."); + + ImGui::DragInt("items_count", &items_count, 0.1f, 0, 9999); + ImGui::Combo("items_type (first column)", &contents_type, contents_type_names, IM_ARRAYSIZE(contents_type_names)); + //filter.Draw("filter"); + ImGui::TreePop(); + } + + ImGui::PopItemWidth(); + PopStyleCompact(); + ImGui::Spacing(); + ImGui::TreePop(); + } + + // Update item list if we changed the number of items + static ImVector items; + static ImVector selection; + static bool items_need_sort = false; + if (items.Size != items_count) + { + items.resize(items_count, MyItem()); + for (int n = 0; n < items_count; n++) + { + const int template_n = n % IM_ARRAYSIZE(template_items_names); + MyItem& item = items[n]; + item.ID = n; + item.Name = template_items_names[template_n]; + item.Quantity = (template_n == 3) ? 10 : (template_n == 4) ? 20 : 0; // Assign default quantities + } + } + + const ImDrawList* parent_draw_list = ImGui::GetWindowDrawList(); + const int parent_draw_list_draw_cmd_count = parent_draw_list->CmdBuffer.Size; + ImVec2 table_scroll_cur, table_scroll_max; // For debug display + const ImDrawList* table_draw_list = NULL; // " + + // Submit table + const float inner_width_to_use = (flags & ImGuiTableFlags_ScrollX) ? inner_width_with_scroll : 0.0f; + if (ImGui::BeginTable("table_advanced", 6, flags, outer_size_enabled ? outer_size_value : ImVec2(0, 0), inner_width_to_use)) + { + // Declare columns + // We use the "user_id" parameter of TableSetupColumn() to specify a user id that will be stored in the sort specifications. + // This is so our sort function can identify a column given our own identifier. We could also identify them based on their index! + ImGui::TableSetupColumn("ID", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoHide, 0.0f, MyItemColumnID_ID); + ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Name); + ImGui::TableSetupColumn("Action", ImGuiTableColumnFlags_NoSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Action); + ImGui::TableSetupColumn("Quantity", ImGuiTableColumnFlags_PreferSortDescending, 0.0f, MyItemColumnID_Quantity); + ImGui::TableSetupColumn("Description", (flags & ImGuiTableFlags_NoHostExtendX) ? 0 : ImGuiTableColumnFlags_WidthStretch, 0.0f, MyItemColumnID_Description); + ImGui::TableSetupColumn("Hidden", ImGuiTableColumnFlags_DefaultHide | ImGuiTableColumnFlags_NoSort); + ImGui::TableSetupScrollFreeze(freeze_cols, freeze_rows); + + // Sort our data if sort specs have been changed! + ImGuiTableSortSpecs* sorts_specs = ImGui::TableGetSortSpecs(); + if (sorts_specs && sorts_specs->SpecsDirty) + items_need_sort = true; + if (sorts_specs && items_need_sort && items.Size > 1) + { + MyItem::s_current_sort_specs = sorts_specs; // Store in variable accessible by the sort function. + qsort(&items[0], (size_t)items.Size, sizeof(items[0]), MyItem::CompareWithSortSpecs); + MyItem::s_current_sort_specs = NULL; + sorts_specs->SpecsDirty = false; + } + items_need_sort = false; + + // Take note of whether we are currently sorting based on the Quantity field, + // we will use this to trigger sorting when we know the data of this column has been modified. + const bool sorts_specs_using_quantity = (ImGui::TableGetColumnFlags(3) & ImGuiTableColumnFlags_IsSorted) != 0; + + // Show headers + if (show_headers) + ImGui::TableHeadersRow(); + + // Show data + // FIXME-TABLE FIXME-NAV: How we can get decent up/down even though we have the buttons here? + ImGui::PushButtonRepeat(true); +#if 1 + // Demonstrate using clipper for large vertical lists + ImGuiListClipper clipper; + clipper.Begin(items.Size); + while (clipper.Step()) + { + for (int row_n = clipper.DisplayStart; row_n < clipper.DisplayEnd; row_n++) +#else + // Without clipper + { + for (int row_n = 0; row_n < items.Size; row_n++) +#endif + { + MyItem* item = &items[row_n]; + //if (!filter.PassFilter(item->Name)) + // continue; + + const bool item_is_selected = selection.contains(item->ID); + ImGui::PushID(item->ID); + ImGui::TableNextRow(ImGuiTableRowFlags_None, row_min_height); + + // For the demo purpose we can select among different type of items submitted in the first column + ImGui::TableSetColumnIndex(0); + char label[32]; + sprintf(label, "%04d", item->ID); + if (contents_type == CT_Text) + ImGui::TextUnformatted(label); + else if (contents_type == CT_Button) + ImGui::Button(label); + else if (contents_type == CT_SmallButton) + ImGui::SmallButton(label); + else if (contents_type == CT_FillButton) + ImGui::Button(label, ImVec2(-FLT_MIN, 0.0f)); + else if (contents_type == CT_Selectable || contents_type == CT_SelectableSpanRow) + { + ImGuiSelectableFlags selectable_flags = (contents_type == CT_SelectableSpanRow) ? ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowItemOverlap : ImGuiSelectableFlags_None; + if (ImGui::Selectable(label, item_is_selected, selectable_flags, ImVec2(0, row_min_height))) + { + if (ImGui::GetIO().KeyCtrl) + { + if (item_is_selected) + selection.find_erase_unsorted(item->ID); + else + selection.push_back(item->ID); + } + else + { + selection.clear(); + selection.push_back(item->ID); + } + } + } + + if (ImGui::TableSetColumnIndex(1)) + ImGui::TextUnformatted(item->Name); + + // Here we demonstrate marking our data set as needing to be sorted again if we modified a quantity, + // and we are currently sorting on the column showing the Quantity. + // To avoid triggering a sort while holding the button, we only trigger it when the button has been released. + // You will probably need a more advanced system in your code if you want to automatically sort when a specific entry changes. + if (ImGui::TableSetColumnIndex(2)) + { + if (ImGui::SmallButton("Chop")) { item->Quantity += 1; } + if (sorts_specs_using_quantity && ImGui::IsItemDeactivated()) { items_need_sort = true; } + ImGui::SameLine(); + if (ImGui::SmallButton("Eat")) { item->Quantity -= 1; } + if (sorts_specs_using_quantity && ImGui::IsItemDeactivated()) { items_need_sort = true; } + } + + if (ImGui::TableSetColumnIndex(3)) + ImGui::Text("%d", item->Quantity); + + ImGui::TableSetColumnIndex(4); + if (show_wrapped_text) + ImGui::TextWrapped("Lorem ipsum dolor sit amet"); + else + ImGui::Text("Lorem ipsum dolor sit amet"); + + if (ImGui::TableSetColumnIndex(5)) + ImGui::Text("1234"); + + ImGui::PopID(); + } + } + ImGui::PopButtonRepeat(); + + // Store some info to display debug details below + table_scroll_cur = ImVec2(ImGui::GetScrollX(), ImGui::GetScrollY()); + table_scroll_max = ImVec2(ImGui::GetScrollMaxX(), ImGui::GetScrollMaxY()); + table_draw_list = ImGui::GetWindowDrawList(); + ImGui::EndTable(); + } + static bool show_debug_details = false; + ImGui::Checkbox("Debug details", &show_debug_details); + if (show_debug_details && table_draw_list) + { + ImGui::SameLine(0.0f, 0.0f); + const int table_draw_list_draw_cmd_count = table_draw_list->CmdBuffer.Size; + if (table_draw_list == parent_draw_list) + ImGui::Text(": DrawCmd: +%d (in same window)", + table_draw_list_draw_cmd_count - parent_draw_list_draw_cmd_count); + else + ImGui::Text(": DrawCmd: +%d (in child window), Scroll: (%.f/%.f) (%.f/%.f)", + table_draw_list_draw_cmd_count - 1, table_scroll_cur.x, table_scroll_max.x, table_scroll_cur.y, table_scroll_max.y); + } + ImGui::TreePop(); + } + + ImGui::PopID(); + + ShowDemoWindowColumns(); + + if (disable_indent) + ImGui::PopStyleVar(); +} + +// Demonstrate old/legacy Columns API! +// [2020: Columns are under-featured and not maintained. Prefer using the more flexible and powerful BeginTable() API!] +static void ShowDemoWindowColumns() +{ + IMGUI_DEMO_MARKER("Columns (legacy API)"); + bool open = ImGui::TreeNode("Legacy Columns API"); + ImGui::SameLine(); + HelpMarker("Columns() is an old API! Prefer using the more flexible and powerful BeginTable() API!"); + if (!open) + return; + + // Basic columns + IMGUI_DEMO_MARKER("Columns (legacy API)/Basic"); + if (ImGui::TreeNode("Basic")) + { + ImGui::Text("Without border:"); + ImGui::Columns(3, "mycolumns3", false); // 3-ways, no border + ImGui::Separator(); + for (int n = 0; n < 14; n++) + { + char label[32]; + sprintf(label, "Item %d", n); + if (ImGui::Selectable(label)) {} + //if (ImGui::Button(label, ImVec2(-FLT_MIN,0.0f))) {} + ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::Separator(); + + ImGui::Text("With border:"); + ImGui::Columns(4, "mycolumns"); // 4-ways, with border + ImGui::Separator(); + ImGui::Text("ID"); ImGui::NextColumn(); + ImGui::Text("Name"); ImGui::NextColumn(); + ImGui::Text("Path"); ImGui::NextColumn(); + ImGui::Text("Hovered"); ImGui::NextColumn(); + ImGui::Separator(); + const char* names[3] = { "One", "Two", "Three" }; + const char* paths[3] = { "/path/one", "/path/two", "/path/three" }; + static int selected = -1; + for (int i = 0; i < 3; i++) + { + char label[32]; + sprintf(label, "%04d", i); + if (ImGui::Selectable(label, selected == i, ImGuiSelectableFlags_SpanAllColumns)) + selected = i; + bool hovered = ImGui::IsItemHovered(); + ImGui::NextColumn(); + ImGui::Text(names[i]); ImGui::NextColumn(); + ImGui::Text(paths[i]); ImGui::NextColumn(); + ImGui::Text("%d", hovered); ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Columns (legacy API)/Borders"); + if (ImGui::TreeNode("Borders")) + { + // NB: Future columns API should allow automatic horizontal borders. + static bool h_borders = true; + static bool v_borders = true; + static int columns_count = 4; + const int lines_count = 3; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragInt("##columns_count", &columns_count, 0.1f, 2, 10, "%d columns"); + if (columns_count < 2) + columns_count = 2; + ImGui::SameLine(); + ImGui::Checkbox("horizontal", &h_borders); + ImGui::SameLine(); + ImGui::Checkbox("vertical", &v_borders); + ImGui::Columns(columns_count, NULL, v_borders); + for (int i = 0; i < columns_count * lines_count; i++) + { + if (h_borders && ImGui::GetColumnIndex() == 0) + ImGui::Separator(); + ImGui::Text("%c%c%c", 'a' + i, 'a' + i, 'a' + i); + ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); + ImGui::Text("Avail %.2f", ImGui::GetContentRegionAvail().x); + ImGui::Text("Offset %.2f", ImGui::GetColumnOffset()); + ImGui::Text("Long text that is likely to clip"); + ImGui::Button("Button", ImVec2(-FLT_MIN, 0.0f)); + ImGui::NextColumn(); + } + ImGui::Columns(1); + if (h_borders) + ImGui::Separator(); + ImGui::TreePop(); + } + + // Create multiple items in a same cell before switching to next column + IMGUI_DEMO_MARKER("Columns (legacy API)/Mixed items"); + if (ImGui::TreeNode("Mixed items")) + { + ImGui::Columns(3, "mixed"); + ImGui::Separator(); + + ImGui::Text("Hello"); + ImGui::Button("Banana"); + ImGui::NextColumn(); + + ImGui::Text("ImGui"); + ImGui::Button("Apple"); + static float foo = 1.0f; + ImGui::InputFloat("red", &foo, 0.05f, 0, "%.3f"); + ImGui::Text("An extra line here."); + ImGui::NextColumn(); + + ImGui::Text("Sailor"); + ImGui::Button("Corniflower"); + static float bar = 1.0f; + ImGui::InputFloat("blue", &bar, 0.05f, 0, "%.3f"); + ImGui::NextColumn(); + + if (ImGui::CollapsingHeader("Category A")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + if (ImGui::CollapsingHeader("Category B")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + if (ImGui::CollapsingHeader("Category C")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + // Word wrapping + IMGUI_DEMO_MARKER("Columns (legacy API)/Word-wrapping"); + if (ImGui::TreeNode("Word-wrapping")) + { + ImGui::Columns(2, "word-wrapping"); + ImGui::Separator(); + ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); + ImGui::TextWrapped("Hello Left"); + ImGui::NextColumn(); + ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); + ImGui::TextWrapped("Hello Right"); + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Columns (legacy API)/Horizontal Scrolling"); + if (ImGui::TreeNode("Horizontal Scrolling")) + { + ImGui::SetNextWindowContentSize(ImVec2(1500.0f, 0.0f)); + ImVec2 child_size = ImVec2(0, ImGui::GetFontSize() * 20.0f); + ImGui::BeginChild("##ScrollingRegion", child_size, false, ImGuiWindowFlags_HorizontalScrollbar); + ImGui::Columns(10); + + // Also demonstrate using clipper for large vertical lists + int ITEMS_COUNT = 2000; + ImGuiListClipper clipper; + clipper.Begin(ITEMS_COUNT); + while (clipper.Step()) + { + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + for (int j = 0; j < 10; j++) + { + ImGui::Text("Line %d Column %d...", i, j); + ImGui::NextColumn(); + } + } + ImGui::Columns(1); + ImGui::EndChild(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Columns (legacy API)/Tree"); + if (ImGui::TreeNode("Tree")) + { + ImGui::Columns(2, "tree", true); + for (int x = 0; x < 3; x++) + { + bool open1 = ImGui::TreeNode((void*)(intptr_t)x, "Node%d", x); + ImGui::NextColumn(); + ImGui::Text("Node contents"); + ImGui::NextColumn(); + if (open1) + { + for (int y = 0; y < 3; y++) + { + bool open2 = ImGui::TreeNode((void*)(intptr_t)y, "Node%d.%d", x, y); + ImGui::NextColumn(); + ImGui::Text("Node contents"); + if (open2) + { + ImGui::Text("Even more contents"); + if (ImGui::TreeNode("Tree in column")) + { + ImGui::Text("The quick brown fox jumps over the lazy dog"); + ImGui::TreePop(); + } + } + ImGui::NextColumn(); + if (open2) + ImGui::TreePop(); + } + ImGui::TreePop(); + } + } + ImGui::Columns(1); + ImGui::TreePop(); + } + + ImGui::TreePop(); +} + +namespace ImGui { extern ImGuiKeyData* GetKeyData(ImGuiKey key); } + +static void ShowDemoWindowInputs() +{ + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus"); + if (ImGui::CollapsingHeader("Inputs, Navigation & Focus")) + { + ImGuiIO& io = ImGui::GetIO(); + + // Display ImGuiIO output flags + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Output"); + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + if (ImGui::TreeNode("Output")) + { + ImGui::Text("io.WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("io.WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); + ImGui::Text("io.WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + ImGui::Text("io.WantTextInput: %d", io.WantTextInput); + ImGui::Text("io.WantSetMousePos: %d", io.WantSetMousePos); + ImGui::Text("io.NavActive: %d, io.NavVisible: %d", io.NavActive, io.NavVisible); + ImGui::TreePop(); + } + + // Display Mouse state + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse State"); + if (ImGui::TreeNode("Mouse State")) + { + if (ImGui::IsMousePosValid()) + ImGui::Text("Mouse pos: (%g, %g)", io.MousePos.x, io.MousePos.y); + else + ImGui::Text("Mouse pos: "); + ImGui::Text("Mouse delta: (%g, %g)", io.MouseDelta.x, io.MouseDelta.y); + + int count = IM_ARRAYSIZE(io.MouseDown); + ImGui::Text("Mouse down:"); for (int i = 0; i < count; i++) if (ImGui::IsMouseDown(i)) { ImGui::SameLine(); ImGui::Text("b%d (%.02f secs)", i, io.MouseDownDuration[i]); } + ImGui::Text("Mouse clicked:"); for (int i = 0; i < count; i++) if (ImGui::IsMouseClicked(i)) { ImGui::SameLine(); ImGui::Text("b%d (%d)", i, ImGui::GetMouseClickedCount(i)); } + ImGui::Text("Mouse released:"); for (int i = 0; i < count; i++) if (ImGui::IsMouseReleased(i)) { ImGui::SameLine(); ImGui::Text("b%d", i); } + ImGui::Text("Mouse wheel: %.1f", io.MouseWheel); + ImGui::Text("Pen Pressure: %.1f", io.PenPressure); // Note: currently unused + ImGui::TreePop(); + } + + // Display mouse cursors + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse Cursors"); + if (ImGui::TreeNode("Mouse Cursors")) + { + const char* mouse_cursors_names[] = { "Arrow", "TextInput", "ResizeAll", "ResizeNS", "ResizeEW", "ResizeNESW", "ResizeNWSE", "Hand", "NotAllowed" }; + IM_ASSERT(IM_ARRAYSIZE(mouse_cursors_names) == ImGuiMouseCursor_COUNT); + + ImGuiMouseCursor current = ImGui::GetMouseCursor(); + ImGui::Text("Current mouse cursor = %d: %s", current, mouse_cursors_names[current]); + ImGui::BeginDisabled(true); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &io.BackendFlags, ImGuiBackendFlags_HasMouseCursors); + ImGui::EndDisabled(); + + ImGui::Text("Hover to see mouse cursors:"); + ImGui::SameLine(); HelpMarker( + "Your application can render a different mouse cursor based on what ImGui::GetMouseCursor() returns. " + "If software cursor rendering (io.MouseDrawCursor) is set ImGui will draw the right cursor for you, " + "otherwise your backend needs to handle it."); + for (int i = 0; i < ImGuiMouseCursor_COUNT; i++) + { + char label[32]; + sprintf(label, "Mouse cursor %d: %s", i, mouse_cursors_names[i]); + ImGui::Bullet(); ImGui::Selectable(label, false); + if (ImGui::IsItemHovered()) + ImGui::SetMouseCursor(i); + } + ImGui::TreePop(); + } + + // Display Keyboard/Mouse state + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Keyboard, Gamepad & Navigation State"); + if (ImGui::TreeNode("Keyboard, Gamepad & Navigation State")) + { + // We iterate both legacy native range and named ImGuiKey ranges, which is a little odd but this allows displaying the data for old/new backends. + // User code should never have to go through such hoops: old code may use native keycodes, new code may use ImGuiKey codes. +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey) { return false; } }; + const ImGuiKey key_first = (ImGuiKey)ImGuiKey_NamedKey_BEGIN; +#else + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey key) { return key < 512 && ImGui::GetIO().KeyMap[key] != -1; } }; // Hide Native<>ImGuiKey duplicates when both exists in the array + const ImGuiKey key_first = (ImGuiKey)0; + //ImGui::Text("Legacy raw:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key++) { if (io.KeysDown[key]) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } +#endif + ImGui::Text("Keys down:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyDown(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d (%.02f)", ImGui::GetKeyName(key), key, ImGui::GetKeyData(key)->DownDuration); } } + ImGui::Text("Keys pressed:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyPressed(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } + ImGui::Text("Keys released:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyReleased(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } + ImGui::Text("Keys mods: %s%s%s%s", io.KeyCtrl ? "CTRL " : "", io.KeyShift ? "SHIFT " : "", io.KeyAlt ? "ALT " : "", io.KeySuper ? "SUPER " : ""); + ImGui::Text("Chars queue:"); for (int i = 0; i < io.InputQueueCharacters.Size; i++) { ImWchar c = io.InputQueueCharacters[i]; ImGui::SameLine(); ImGui::Text("\'%c\' (0x%04X)", (c > ' ' && c <= 255) ? (char)c : '?', c); } // FIXME: We should convert 'c' to UTF-8 here but the functions are not public. + + // Draw an arbitrary US keyboard layout to visualize translated keys + { + const ImVec2 key_size = ImVec2(35.0f, 35.0f); + const float key_rounding = 3.0f; + const ImVec2 key_face_size = ImVec2(25.0f, 25.0f); + const ImVec2 key_face_pos = ImVec2(5.0f, 3.0f); + const float key_face_rounding = 2.0f; + const ImVec2 key_label_pos = ImVec2(7.0f, 4.0f); + const ImVec2 key_step = ImVec2(key_size.x - 1.0f, key_size.y - 1.0f); + const float key_row_offset = 9.0f; + + ImVec2 board_min = ImGui::GetCursorScreenPos(); + ImVec2 board_max = ImVec2(board_min.x + 3 * key_step.x + 2 * key_row_offset + 10.0f, board_min.y + 3 * key_step.y + 10.0f); + ImVec2 start_pos = ImVec2(board_min.x + 5.0f - key_step.x, board_min.y); + + struct KeyLayoutData { int Row, Col; const char* Label; ImGuiKey Key; }; + const KeyLayoutData keys_to_display[] = + { + { 0, 0, "", ImGuiKey_Tab }, { 0, 1, "Q", ImGuiKey_Q }, { 0, 2, "W", ImGuiKey_W }, { 0, 3, "E", ImGuiKey_E }, { 0, 4, "R", ImGuiKey_R }, + { 1, 0, "", ImGuiKey_CapsLock }, { 1, 1, "A", ImGuiKey_A }, { 1, 2, "S", ImGuiKey_S }, { 1, 3, "D", ImGuiKey_D }, { 1, 4, "F", ImGuiKey_F }, + { 2, 0, "", ImGuiKey_LeftShift },{ 2, 1, "Z", ImGuiKey_Z }, { 2, 2, "X", ImGuiKey_X }, { 2, 3, "C", ImGuiKey_C }, { 2, 4, "V", ImGuiKey_V } + }; + + // Elements rendered manually via ImDrawList API are not clipped automatically. + // While not strictly necessary, here IsItemVisible() is used to avoid rendering these shapes when they are out of view. + ImGui::Dummy(ImVec2(board_max.x - board_min.x, board_max.y - board_min.y)); + if (ImGui::IsItemVisible()) + { + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + draw_list->PushClipRect(board_min, board_max, true); + for (int n = 0; n < IM_ARRAYSIZE(keys_to_display); n++) + { + const KeyLayoutData* key_data = &keys_to_display[n]; + ImVec2 key_min = ImVec2(start_pos.x + key_data->Col * key_step.x + key_data->Row * key_row_offset, start_pos.y + key_data->Row * key_step.y); + ImVec2 key_max = ImVec2(key_min.x + key_size.x, key_min.y + key_size.y); + draw_list->AddRectFilled(key_min, key_max, IM_COL32(204, 204, 204, 255), key_rounding); + draw_list->AddRect(key_min, key_max, IM_COL32(24, 24, 24, 255), key_rounding); + ImVec2 face_min = ImVec2(key_min.x + key_face_pos.x, key_min.y + key_face_pos.y); + ImVec2 face_max = ImVec2(face_min.x + key_face_size.x, face_min.y + key_face_size.y); + draw_list->AddRect(face_min, face_max, IM_COL32(193, 193, 193, 255), key_face_rounding, ImDrawFlags_None, 2.0f); + draw_list->AddRectFilled(face_min, face_max, IM_COL32(252, 252, 252, 255), key_face_rounding); + ImVec2 label_min = ImVec2(key_min.x + key_label_pos.x, key_min.y + key_label_pos.y); + draw_list->AddText(label_min, IM_COL32(64, 64, 64, 255), key_data->Label); + if (ImGui::IsKeyDown(key_data->Key)) + draw_list->AddRectFilled(key_min, key_max, IM_COL32(255, 0, 0, 128), key_rounding); + } + draw_list->PopClipRect(); + } + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Capture override")) + { + HelpMarker( + "The value of io.WantCaptureMouse and io.WantCaptureKeyboard are normally set by Dear ImGui " + "to instruct your application of how to route inputs. Typically, when a value is true, it means " + "Dear ImGui wants the corresponding inputs and we expect the underlying application to ignore them.\n\n" + "The most typical case is: when hovering a window, Dear ImGui set io.WantCaptureMouse to true, " + "and underlying application should ignore mouse inputs (in practice there are many and more subtle " + "rules leading to how those flags are set)."); + + ImGui::Text("io.WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("io.WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); + ImGui::Text("io.WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + + HelpMarker( + "Hovering the colored canvas will override io.WantCaptureXXX fields.\n" + "Notice how normally (when set to none), the value of io.WantCaptureKeyboard would be false when hovering and true when clicking."); + static int capture_override_mouse = -1; + static int capture_override_keyboard = -1; + const char* capture_override_desc[] = { "None", "Set to false", "Set to true" }; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureMouse()", &capture_override_mouse, -1, +1, capture_override_desc[capture_override_mouse + 1], ImGuiSliderFlags_AlwaysClamp); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureKeyboard()", &capture_override_keyboard, -1, +1, capture_override_desc[capture_override_keyboard + 1], ImGuiSliderFlags_AlwaysClamp); + + ImGui::ColorButton("##panel", ImVec4(0.7f, 0.1f, 0.7f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, ImVec2(256.0f, 192.0f)); // Dummy item + if (ImGui::IsItemHovered() && capture_override_mouse != -1) + ImGui::SetNextFrameWantCaptureMouse(capture_override_mouse == 1); + if (ImGui::IsItemHovered() && capture_override_keyboard != -1) + ImGui::SetNextFrameWantCaptureKeyboard(capture_override_keyboard == 1); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Tabbing"); + if (ImGui::TreeNode("Tabbing")) + { + ImGui::Text("Use TAB/SHIFT+TAB to cycle through keyboard editable fields."); + static char buf[32] = "hello"; + ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); + ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); + ImGui::InputText("3", buf, IM_ARRAYSIZE(buf)); + ImGui::PushAllowKeyboardFocus(false); + ImGui::InputText("4 (tab skip)", buf, IM_ARRAYSIZE(buf)); + ImGui::SameLine(); HelpMarker("Item won't be cycled through when using TAB or Shift+Tab."); + ImGui::PopAllowKeyboardFocus(); + ImGui::InputText("5", buf, IM_ARRAYSIZE(buf)); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Focus from code"); + if (ImGui::TreeNode("Focus from code")) + { + bool focus_1 = ImGui::Button("Focus on 1"); ImGui::SameLine(); + bool focus_2 = ImGui::Button("Focus on 2"); ImGui::SameLine(); + bool focus_3 = ImGui::Button("Focus on 3"); + int has_focus = 0; + static char buf[128] = "click on a button to set focus"; + + if (focus_1) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 1; + + if (focus_2) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 2; + + ImGui::PushAllowKeyboardFocus(false); + if (focus_3) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("3 (tab skip)", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 3; + ImGui::SameLine(); HelpMarker("Item won't be cycled through when using TAB or Shift+Tab."); + ImGui::PopAllowKeyboardFocus(); + + if (has_focus) + ImGui::Text("Item with focus: %d", has_focus); + else + ImGui::Text("Item with focus: "); + + // Use >= 0 parameter to SetKeyboardFocusHere() to focus an upcoming item + static float f3[3] = { 0.0f, 0.0f, 0.0f }; + int focus_ahead = -1; + if (ImGui::Button("Focus on X")) { focus_ahead = 0; } ImGui::SameLine(); + if (ImGui::Button("Focus on Y")) { focus_ahead = 1; } ImGui::SameLine(); + if (ImGui::Button("Focus on Z")) { focus_ahead = 2; } + if (focus_ahead != -1) ImGui::SetKeyboardFocusHere(focus_ahead); + ImGui::SliderFloat3("Float3", &f3[0], 0.0f, 1.0f); + + ImGui::TextWrapped("NB: Cursor & selection are preserved when refocusing last used item in code."); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Dragging"); + if (ImGui::TreeNode("Dragging")) + { + ImGui::TextWrapped("You can use ImGui::GetMouseDragDelta(0) to query for the dragged amount on any widget."); + for (int button = 0; button < 3; button++) + { + ImGui::Text("IsMouseDragging(%d):", button); + ImGui::Text(" w/ default threshold: %d,", ImGui::IsMouseDragging(button)); + ImGui::Text(" w/ zero threshold: %d,", ImGui::IsMouseDragging(button, 0.0f)); + ImGui::Text(" w/ large threshold: %d,", ImGui::IsMouseDragging(button, 20.0f)); + } + + ImGui::Button("Drag Me"); + if (ImGui::IsItemActive()) + ImGui::GetForegroundDrawList()->AddLine(io.MouseClickedPos[0], io.MousePos, ImGui::GetColorU32(ImGuiCol_Button), 4.0f); // Draw a line between the button and the mouse cursor + + // Drag operations gets "unlocked" when the mouse has moved past a certain threshold + // (the default threshold is stored in io.MouseDragThreshold). You can request a lower or higher + // threshold using the second parameter of IsMouseDragging() and GetMouseDragDelta(). + ImVec2 value_raw = ImGui::GetMouseDragDelta(0, 0.0f); + ImVec2 value_with_lock_threshold = ImGui::GetMouseDragDelta(0); + ImVec2 mouse_delta = io.MouseDelta; + ImGui::Text("GetMouseDragDelta(0):"); + ImGui::Text(" w/ default threshold: (%.1f, %.1f)", value_with_lock_threshold.x, value_with_lock_threshold.y); + ImGui::Text(" w/ zero threshold: (%.1f, %.1f)", value_raw.x, value_raw.y); + ImGui::Text("io.MouseDelta: (%.1f, %.1f)", mouse_delta.x, mouse_delta.y); + ImGui::TreePop(); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] About Window / ShowAboutWindow() +// Access from Dear ImGui Demo -> Tools -> About +//----------------------------------------------------------------------------- + +void ImGui::ShowAboutWindow(bool* p_open) +{ + if (!ImGui::Begin("About Dear ImGui", p_open, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Tools/About Dear ImGui"); + ImGui::Text("Dear ImGui %s", ImGui::GetVersion()); + ImGui::Separator(); + ImGui::Text("By Omar Cornut and all Dear ImGui contributors."); + ImGui::Text("Dear ImGui is licensed under the MIT License, see LICENSE for more information."); + + static bool show_config_info = false; + ImGui::Checkbox("Config/Build Information", &show_config_info); + if (show_config_info) + { + ImGuiIO& io = ImGui::GetIO(); + ImGuiStyle& style = ImGui::GetStyle(); + + bool copy_to_clipboard = ImGui::Button("Copy to clipboard"); + ImVec2 child_size = ImVec2(0, ImGui::GetTextLineHeightWithSpacing() * 18); + ImGui::BeginChildFrame(ImGui::GetID("cfg_infos"), child_size, ImGuiWindowFlags_NoMove); + if (copy_to_clipboard) + { + ImGui::LogToClipboard(); + ImGui::LogText("```\n"); // Back quotes will make text appears without formatting when pasting on GitHub + } + + ImGui::Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); + ImGui::Separator(); + ImGui::Text("sizeof(size_t): %d, sizeof(ImDrawIdx): %d, sizeof(ImDrawVert): %d", (int)sizeof(size_t), (int)sizeof(ImDrawIdx), (int)sizeof(ImDrawVert)); + ImGui::Text("define: __cplusplus=%d", (int)__cplusplus); +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_KEYIO"); +#endif +#ifdef IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_WIN32_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_FILE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_FILE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_ALLOCATORS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_ALLOCATORS"); +#endif +#ifdef IMGUI_USE_BGRA_PACKED_COLOR + ImGui::Text("define: IMGUI_USE_BGRA_PACKED_COLOR"); +#endif +#ifdef _WIN32 + ImGui::Text("define: _WIN32"); +#endif +#ifdef _WIN64 + ImGui::Text("define: _WIN64"); +#endif +#ifdef __linux__ + ImGui::Text("define: __linux__"); +#endif +#ifdef __APPLE__ + ImGui::Text("define: __APPLE__"); +#endif +#ifdef _MSC_VER + ImGui::Text("define: _MSC_VER=%d", _MSC_VER); +#endif +#ifdef _MSVC_LANG + ImGui::Text("define: _MSVC_LANG=%d", (int)_MSVC_LANG); +#endif +#ifdef __MINGW32__ + ImGui::Text("define: __MINGW32__"); +#endif +#ifdef __MINGW64__ + ImGui::Text("define: __MINGW64__"); +#endif +#ifdef __GNUC__ + ImGui::Text("define: __GNUC__=%d", (int)__GNUC__); +#endif +#ifdef __clang_version__ + ImGui::Text("define: __clang_version__=%s", __clang_version__); +#endif +#ifdef IMGUI_HAS_VIEWPORT + ImGui::Text("define: IMGUI_HAS_VIEWPORT"); +#endif +#ifdef IMGUI_HAS_DOCK + ImGui::Text("define: IMGUI_HAS_DOCK"); +#endif + ImGui::Separator(); + ImGui::Text("io.BackendPlatformName: %s", io.BackendPlatformName ? io.BackendPlatformName : "NULL"); + ImGui::Text("io.BackendRendererName: %s", io.BackendRendererName ? io.BackendRendererName : "NULL"); + ImGui::Text("io.ConfigFlags: 0x%08X", io.ConfigFlags); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) ImGui::Text(" NavEnableKeyboard"); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) ImGui::Text(" NavEnableGamepad"); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) ImGui::Text(" NavEnableSetMousePos"); + if (io.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard) ImGui::Text(" NavNoCaptureKeyboard"); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) ImGui::Text(" NoMouse"); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) ImGui::Text(" NoMouseCursorChange"); + if (io.ConfigFlags & ImGuiConfigFlags_DockingEnable) ImGui::Text(" DockingEnable"); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) ImGui::Text(" ViewportsEnable"); + if (io.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleViewports) ImGui::Text(" DpiEnableScaleViewports"); + if (io.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleFonts) ImGui::Text(" DpiEnableScaleFonts"); + if (io.MouseDrawCursor) ImGui::Text("io.MouseDrawCursor"); + if (io.ConfigViewportsNoAutoMerge) ImGui::Text("io.ConfigViewportsNoAutoMerge"); + if (io.ConfigViewportsNoTaskBarIcon) ImGui::Text("io.ConfigViewportsNoTaskBarIcon"); + if (io.ConfigViewportsNoDecoration) ImGui::Text("io.ConfigViewportsNoDecoration"); + if (io.ConfigViewportsNoDefaultParent) ImGui::Text("io.ConfigViewportsNoDefaultParent"); + if (io.ConfigDockingNoSplit) ImGui::Text("io.ConfigDockingNoSplit"); + if (io.ConfigDockingWithShift) ImGui::Text("io.ConfigDockingWithShift"); + if (io.ConfigDockingAlwaysTabBar) ImGui::Text("io.ConfigDockingAlwaysTabBar"); + if (io.ConfigDockingTransparentPayload) ImGui::Text("io.ConfigDockingTransparentPayload"); + if (io.ConfigMacOSXBehaviors) ImGui::Text("io.ConfigMacOSXBehaviors"); + if (io.ConfigInputTextCursorBlink) ImGui::Text("io.ConfigInputTextCursorBlink"); + if (io.ConfigWindowsResizeFromEdges) ImGui::Text("io.ConfigWindowsResizeFromEdges"); + if (io.ConfigWindowsMoveFromTitleBarOnly) ImGui::Text("io.ConfigWindowsMoveFromTitleBarOnly"); + if (io.ConfigMemoryCompactTimer >= 0.0f) ImGui::Text("io.ConfigMemoryCompactTimer = %.1f", io.ConfigMemoryCompactTimer); + ImGui::Text("io.BackendFlags: 0x%08X", io.BackendFlags); + if (io.BackendFlags & ImGuiBackendFlags_HasGamepad) ImGui::Text(" HasGamepad"); + if (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) ImGui::Text(" HasMouseCursors"); + if (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos) ImGui::Text(" HasSetMousePos"); + if (io.BackendFlags & ImGuiBackendFlags_PlatformHasViewports) ImGui::Text(" PlatformHasViewports"); + if (io.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport)ImGui::Text(" HasMouseHoveredViewport"); + if (io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) ImGui::Text(" RendererHasVtxOffset"); + if (io.BackendFlags & ImGuiBackendFlags_RendererHasViewports) ImGui::Text(" RendererHasViewports"); + ImGui::Separator(); + ImGui::Text("io.Fonts: %d fonts, Flags: 0x%08X, TexSize: %d,%d", io.Fonts->Fonts.Size, io.Fonts->Flags, io.Fonts->TexWidth, io.Fonts->TexHeight); + ImGui::Text("io.DisplaySize: %.2f,%.2f", io.DisplaySize.x, io.DisplaySize.y); + ImGui::Text("io.DisplayFramebufferScale: %.2f,%.2f", io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + ImGui::Separator(); + ImGui::Text("style.WindowPadding: %.2f,%.2f", style.WindowPadding.x, style.WindowPadding.y); + ImGui::Text("style.WindowBorderSize: %.2f", style.WindowBorderSize); + ImGui::Text("style.FramePadding: %.2f,%.2f", style.FramePadding.x, style.FramePadding.y); + ImGui::Text("style.FrameRounding: %.2f", style.FrameRounding); + ImGui::Text("style.FrameBorderSize: %.2f", style.FrameBorderSize); + ImGui::Text("style.ItemSpacing: %.2f,%.2f", style.ItemSpacing.x, style.ItemSpacing.y); + ImGui::Text("style.ItemInnerSpacing: %.2f,%.2f", style.ItemInnerSpacing.x, style.ItemInnerSpacing.y); + + if (copy_to_clipboard) + { + ImGui::LogText("\n```\n"); + ImGui::LogFinish(); + } + ImGui::EndChildFrame(); + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Style Editor / ShowStyleEditor() +//----------------------------------------------------------------------------- +// - ShowFontSelector() +// - ShowStyleSelector() +// - ShowStyleEditor() +//----------------------------------------------------------------------------- + +// Forward declare ShowFontAtlas() which isn't worth putting in public API yet +namespace ImGui { IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); } + +// Demo helper function to select among loaded fonts. +// Here we use the regular BeginCombo()/EndCombo() api which is the more flexible one. +void ImGui::ShowFontSelector(const char* label) +{ + ImGuiIO& io = ImGui::GetIO(); + ImFont* font_current = ImGui::GetFont(); + if (ImGui::BeginCombo(label, font_current->GetDebugName())) + { + for (int n = 0; n < io.Fonts->Fonts.Size; n++) + { + ImFont* font = io.Fonts->Fonts[n]; + ImGui::PushID((void*)font); + if (ImGui::Selectable(font->GetDebugName(), font == font_current)) + io.FontDefault = font; + ImGui::PopID(); + } + ImGui::EndCombo(); + } + ImGui::SameLine(); + HelpMarker( + "- Load additional fonts with io.Fonts->AddFontFromFileTTF().\n" + "- The font atlas is built when calling io.Fonts->GetTexDataAsXXXX() or io.Fonts->Build().\n" + "- Read FAQ and docs/FONTS.md for more details.\n" + "- If you need to add/remove fonts at runtime (e.g. for DPI change), do it before calling NewFrame()."); +} + +// Demo helper function to select among default colors. See ShowStyleEditor() for more advanced options. +// Here we use the simplified Combo() api that packs items into a single literal string. +// Useful for quick combo boxes where the choices are known locally. +bool ImGui::ShowStyleSelector(const char* label) +{ + static int style_idx = -1; + if (ImGui::Combo(label, &style_idx, "Dark\0Light\0Classic\0")) + { + switch (style_idx) + { + case 0: ImGui::StyleColorsDark(); break; + case 1: ImGui::StyleColorsLight(); break; + case 2: ImGui::StyleColorsClassic(); break; + } + return true; + } + return false; +} + +void ImGui::ShowStyleEditor(ImGuiStyle* ref) +{ + IMGUI_DEMO_MARKER("Tools/Style Editor"); + // You can pass in a reference ImGuiStyle structure to compare to, revert to and save to + // (without a reference style pointer, we will use one compared locally as a reference) + ImGuiStyle& style = ImGui::GetStyle(); + static ImGuiStyle ref_saved_style; + + // Default to using internal storage as reference + static bool init = true; + if (init && ref == NULL) + ref_saved_style = style; + init = false; + if (ref == NULL) + ref = &ref_saved_style; + + ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.50f); + + if (ImGui::ShowStyleSelector("Colors##Selector")) + ref_saved_style = style; + ImGui::ShowFontSelector("Fonts##Selector"); + + // Simplified Settings (expose floating-pointer border sizes as boolean representing 0.0f or 1.0f) + if (ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f")) + style.GrabRounding = style.FrameRounding; // Make GrabRounding always the same value as FrameRounding + { bool border = (style.WindowBorderSize > 0.0f); if (ImGui::Checkbox("WindowBorder", &border)) { style.WindowBorderSize = border ? 1.0f : 0.0f; } } + ImGui::SameLine(); + { bool border = (style.FrameBorderSize > 0.0f); if (ImGui::Checkbox("FrameBorder", &border)) { style.FrameBorderSize = border ? 1.0f : 0.0f; } } + ImGui::SameLine(); + { bool border = (style.PopupBorderSize > 0.0f); if (ImGui::Checkbox("PopupBorder", &border)) { style.PopupBorderSize = border ? 1.0f : 0.0f; } } + + // Save/Revert button + if (ImGui::Button("Save Ref")) + *ref = ref_saved_style = style; + ImGui::SameLine(); + if (ImGui::Button("Revert Ref")) + style = *ref; + ImGui::SameLine(); + HelpMarker( + "Save/Revert in local non-persistent storage. Default Colors definition are not affected. " + "Use \"Export\" below to save them somewhere."); + + ImGui::Separator(); + + if (ImGui::BeginTabBar("##tabs", ImGuiTabBarFlags_None)) + { + if (ImGui::BeginTabItem("Sizes")) + { + ImGui::Text("Main"); + ImGui::SliderFloat2("WindowPadding", (float*)&style.WindowPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("FramePadding", (float*)&style.FramePadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("CellPadding", (float*)&style.CellPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("ItemSpacing", (float*)&style.ItemSpacing, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("ItemInnerSpacing", (float*)&style.ItemInnerSpacing, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("TouchExtraPadding", (float*)&style.TouchExtraPadding, 0.0f, 10.0f, "%.0f"); + ImGui::SliderFloat("IndentSpacing", &style.IndentSpacing, 0.0f, 30.0f, "%.0f"); + ImGui::SliderFloat("ScrollbarSize", &style.ScrollbarSize, 1.0f, 20.0f, "%.0f"); + ImGui::SliderFloat("GrabMinSize", &style.GrabMinSize, 1.0f, 20.0f, "%.0f"); + ImGui::Text("Borders"); + ImGui::SliderFloat("WindowBorderSize", &style.WindowBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("ChildBorderSize", &style.ChildBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("PopupBorderSize", &style.PopupBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("FrameBorderSize", &style.FrameBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("TabBorderSize", &style.TabBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::Text("Rounding"); + ImGui::SliderFloat("WindowRounding", &style.WindowRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("ChildRounding", &style.ChildRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("PopupRounding", &style.PopupRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("ScrollbarRounding", &style.ScrollbarRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("GrabRounding", &style.GrabRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("LogSliderDeadzone", &style.LogSliderDeadzone, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("TabRounding", &style.TabRounding, 0.0f, 12.0f, "%.0f"); + ImGui::Text("Alignment"); + ImGui::SliderFloat2("WindowTitleAlign", (float*)&style.WindowTitleAlign, 0.0f, 1.0f, "%.2f"); + int window_menu_button_position = style.WindowMenuButtonPosition + 1; + if (ImGui::Combo("WindowMenuButtonPosition", (int*)&window_menu_button_position, "None\0Left\0Right\0")) + style.WindowMenuButtonPosition = window_menu_button_position - 1; + ImGui::Combo("ColorButtonPosition", (int*)&style.ColorButtonPosition, "Left\0Right\0"); + ImGui::SliderFloat2("ButtonTextAlign", (float*)&style.ButtonTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui::SameLine(); HelpMarker("Alignment applies when a button is larger than its text content."); + ImGui::SliderFloat2("SelectableTextAlign", (float*)&style.SelectableTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui::SameLine(); HelpMarker("Alignment applies when a selectable is larger than its text content."); + ImGui::Text("Safe Area Padding"); + ImGui::SameLine(); HelpMarker("Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured)."); + ImGui::SliderFloat2("DisplaySafeAreaPadding", (float*)&style.DisplaySafeAreaPadding, 0.0f, 30.0f, "%.0f"); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Colors")) + { + static int output_dest = 0; + static bool output_only_modified = true; + if (ImGui::Button("Export")) + { + if (output_dest == 0) + ImGui::LogToClipboard(); + else + ImGui::LogToTTY(); + ImGui::LogText("ImVec4* colors = ImGui::GetStyle().Colors;" IM_NEWLINE); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const ImVec4& col = style.Colors[i]; + const char* name = ImGui::GetStyleColorName(i); + if (!output_only_modified || memcmp(&col, &ref->Colors[i], sizeof(ImVec4)) != 0) + ImGui::LogText("colors[ImGuiCol_%s]%*s= ImVec4(%.2ff, %.2ff, %.2ff, %.2ff);" IM_NEWLINE, + name, 23 - (int)strlen(name), "", col.x, col.y, col.z, col.w); + } + ImGui::LogFinish(); + } + ImGui::SameLine(); ImGui::SetNextItemWidth(120); ImGui::Combo("##output_type", &output_dest, "To Clipboard\0To TTY\0"); + ImGui::SameLine(); ImGui::Checkbox("Only Modified Colors", &output_only_modified); + + static ImGuiTextFilter filter; + filter.Draw("Filter colors", ImGui::GetFontSize() * 16); + + static ImGuiColorEditFlags alpha_flags = 0; + if (ImGui::RadioButton("Opaque", alpha_flags == ImGuiColorEditFlags_None)) { alpha_flags = ImGuiColorEditFlags_None; } ImGui::SameLine(); + if (ImGui::RadioButton("Alpha", alpha_flags == ImGuiColorEditFlags_AlphaPreview)) { alpha_flags = ImGuiColorEditFlags_AlphaPreview; } ImGui::SameLine(); + if (ImGui::RadioButton("Both", alpha_flags == ImGuiColorEditFlags_AlphaPreviewHalf)) { alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf; } ImGui::SameLine(); + HelpMarker( + "In the color list:\n" + "Left-click on color square to open color picker,\n" + "Right-click to open edit options menu."); + + ImGui::BeginChild("##colors", ImVec2(0, 0), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar | ImGuiWindowFlags_NavFlattened); + ImGui::PushItemWidth(-160); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const char* name = ImGui::GetStyleColorName(i); + if (!filter.PassFilter(name)) + continue; + ImGui::PushID(i); + ImGui::ColorEdit4("##color", (float*)&style.Colors[i], ImGuiColorEditFlags_AlphaBar | alpha_flags); + if (memcmp(&style.Colors[i], &ref->Colors[i], sizeof(ImVec4)) != 0) + { + // Tips: in a real user application, you may want to merge and use an icon font into the main font, + // so instead of "Save"/"Revert" you'd use icons! + // Read the FAQ and docs/FONTS.md about using icon fonts. It's really easy and super convenient! + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Save")) { ref->Colors[i] = style.Colors[i]; } + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Revert")) { style.Colors[i] = ref->Colors[i]; } + } + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); + ImGui::TextUnformatted(name); + ImGui::PopID(); + } + ImGui::PopItemWidth(); + ImGui::EndChild(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Fonts")) + { + ImGuiIO& io = ImGui::GetIO(); + ImFontAtlas* atlas = io.Fonts; + HelpMarker("Read FAQ and docs/FONTS.md for details on font loading."); + ImGui::ShowFontAtlas(atlas); + + // Post-baking font scaling. Note that this is NOT the nice way of scaling fonts, read below. + // (we enforce hard clamping manually as by default DragFloat/SliderFloat allows CTRL+Click text to get out of bounds). + const float MIN_SCALE = 0.3f; + const float MAX_SCALE = 2.0f; + HelpMarker( + "Those are old settings provided for convenience.\n" + "However, the _correct_ way of scaling your UI is currently to reload your font at the designed size, " + "rebuild the font atlas, and call style.ScaleAllSizes() on a reference ImGuiStyle structure.\n" + "Using those settings here will give you poor quality results."); + static float window_scale = 1.0f; + ImGui::PushItemWidth(ImGui::GetFontSize() * 8); + if (ImGui::DragFloat("window scale", &window_scale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp)) // Scale only this window + ImGui::SetWindowFontScale(window_scale); + ImGui::DragFloat("global scale", &io.FontGlobalScale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp); // Scale everything + ImGui::PopItemWidth(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Rendering")) + { + ImGui::Checkbox("Anti-aliased lines", &style.AntiAliasedLines); + ImGui::SameLine(); + HelpMarker("When disabling anti-aliasing lines, you'll probably want to disable borders in your style as well."); + + ImGui::Checkbox("Anti-aliased lines use texture", &style.AntiAliasedLinesUseTex); + ImGui::SameLine(); + HelpMarker("Faster lines using texture data. Require backend to render with bilinear filtering (not point/nearest filtering)."); + + ImGui::Checkbox("Anti-aliased fill", &style.AntiAliasedFill); + ImGui::PushItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragFloat("Curve Tessellation Tolerance", &style.CurveTessellationTol, 0.02f, 0.10f, 10.0f, "%.2f"); + if (style.CurveTessellationTol < 0.10f) style.CurveTessellationTol = 0.10f; + + // When editing the "Circle Segment Max Error" value, draw a preview of its effect on auto-tessellated circles. + ImGui::DragFloat("Circle Tessellation Max Error", &style.CircleTessellationMaxError , 0.005f, 0.10f, 5.0f, "%.2f", ImGuiSliderFlags_AlwaysClamp); + if (ImGui::IsItemActive()) + { + ImGui::SetNextWindowPos(ImGui::GetCursorScreenPos()); + ImGui::BeginTooltip(); + ImGui::TextUnformatted("(R = radius, N = number of segments)"); + ImGui::Spacing(); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + const float min_widget_width = ImGui::CalcTextSize("N: MMM\nR: MMM").x; + for (int n = 0; n < 8; n++) + { + const float RAD_MIN = 5.0f; + const float RAD_MAX = 70.0f; + const float rad = RAD_MIN + (RAD_MAX - RAD_MIN) * (float)n / (8.0f - 1.0f); + + ImGui::BeginGroup(); + + ImGui::Text("R: %.f\nN: %d", rad, draw_list->_CalcCircleAutoSegmentCount(rad)); + + const float canvas_width = IM_MAX(min_widget_width, rad * 2.0f); + const float offset_x = floorf(canvas_width * 0.5f); + const float offset_y = floorf(RAD_MAX); + + const ImVec2 p1 = ImGui::GetCursorScreenPos(); + draw_list->AddCircle(ImVec2(p1.x + offset_x, p1.y + offset_y), rad, ImGui::GetColorU32(ImGuiCol_Text)); + ImGui::Dummy(ImVec2(canvas_width, RAD_MAX * 2)); + + /* + const ImVec2 p2 = ImGui::GetCursorScreenPos(); + draw_list->AddCircleFilled(ImVec2(p2.x + offset_x, p2.y + offset_y), rad, ImGui::GetColorU32(ImGuiCol_Text)); + ImGui::Dummy(ImVec2(canvas_width, RAD_MAX * 2)); + */ + + ImGui::EndGroup(); + ImGui::SameLine(); + } + ImGui::EndTooltip(); + } + ImGui::SameLine(); + HelpMarker("When drawing circle primitives with \"num_segments == 0\" tesselation will be calculated automatically."); + + ImGui::DragFloat("Global Alpha", &style.Alpha, 0.005f, 0.20f, 1.0f, "%.2f"); // Not exposing zero here so user doesn't "lose" the UI (zero alpha clips all widgets). But application code could have a toggle to switch between zero and non-zero. + ImGui::DragFloat("Disabled Alpha", &style.DisabledAlpha, 0.005f, 0.0f, 1.0f, "%.2f"); ImGui::SameLine(); HelpMarker("Additional alpha multiplier for disabled items (multiply over current value of Alpha)."); + ImGui::PopItemWidth(); + + ImGui::EndTabItem(); + } + + ImGui::EndTabBar(); + } + + ImGui::PopItemWidth(); +} + +//----------------------------------------------------------------------------- +// [SECTION] User Guide / ShowUserGuide() +//----------------------------------------------------------------------------- + +void ImGui::ShowUserGuide() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui::BulletText("Double-click on title bar to collapse window."); + ImGui::BulletText( + "Click and drag on lower corner to resize window\n" + "(double-click to auto fit window to its contents)."); + ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text."); + ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields."); + ImGui::BulletText("CTRL+Tab to select a window."); + if (io.FontAllowUserScaling) + ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents."); + ImGui::BulletText("While inputing text:\n"); + ImGui::Indent(); + ImGui::BulletText("CTRL+Left/Right to word jump."); + ImGui::BulletText("CTRL+A or double-click to select all."); + ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste."); + ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo."); + ImGui::BulletText("ESCAPE to revert."); + ImGui::Unindent(); + ImGui::BulletText("With keyboard navigation enabled:"); + ImGui::Indent(); + ImGui::BulletText("Arrow keys to navigate."); + ImGui::BulletText("Space to activate a widget."); + ImGui::BulletText("Return to input text into a widget."); + ImGui::BulletText("Escape to deactivate a widget, close popup, exit child window."); + ImGui::BulletText("Alt to jump to the menu layer of a window."); + ImGui::Unindent(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() +//----------------------------------------------------------------------------- +// - ShowExampleAppMainMenuBar() +// - ShowExampleMenuFile() +//----------------------------------------------------------------------------- + +// Demonstrate creating a "main" fullscreen menu bar and populating it. +// Note the difference between BeginMainMenuBar() and BeginMenuBar(): +// - BeginMenuBar() = menu-bar inside current window (which needs the ImGuiWindowFlags_MenuBar flag!) +// - BeginMainMenuBar() = helper to create menu-bar-sized window at the top of the main viewport + call BeginMenuBar() into it. +static void ShowExampleAppMainMenuBar() +{ + if (ImGui::BeginMainMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Edit")) + { + if (ImGui::MenuItem("Undo", "CTRL+Z")) {} + if (ImGui::MenuItem("Redo", "CTRL+Y", false, false)) {} // Disabled item + ImGui::Separator(); + if (ImGui::MenuItem("Cut", "CTRL+X")) {} + if (ImGui::MenuItem("Copy", "CTRL+C")) {} + if (ImGui::MenuItem("Paste", "CTRL+V")) {} + ImGui::EndMenu(); + } + ImGui::EndMainMenuBar(); + } +} + +// Note that shortcuts are currently provided for display only +// (future version will add explicit flags to BeginMenu() to request processing shortcuts) +static void ShowExampleMenuFile() +{ + IMGUI_DEMO_MARKER("Examples/Menu"); + ImGui::MenuItem("(demo menu)", NULL, false, false); + if (ImGui::MenuItem("New")) {} + if (ImGui::MenuItem("Open", "Ctrl+O")) {} + if (ImGui::BeginMenu("Open Recent")) + { + ImGui::MenuItem("fish_hat.c"); + ImGui::MenuItem("fish_hat.inl"); + ImGui::MenuItem("fish_hat.h"); + if (ImGui::BeginMenu("More..")) + { + ImGui::MenuItem("Hello"); + ImGui::MenuItem("Sailor"); + if (ImGui::BeginMenu("Recurse..")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::EndMenu(); + } + ImGui::EndMenu(); + } + if (ImGui::MenuItem("Save", "Ctrl+S")) {} + if (ImGui::MenuItem("Save As..")) {} + + ImGui::Separator(); + IMGUI_DEMO_MARKER("Examples/Menu/Options"); + if (ImGui::BeginMenu("Options")) + { + static bool enabled = true; + ImGui::MenuItem("Enabled", "", &enabled); + ImGui::BeginChild("child", ImVec2(0, 60), true); + for (int i = 0; i < 10; i++) + ImGui::Text("Scrolling Text %d", i); + ImGui::EndChild(); + static float f = 0.5f; + static int n = 0; + ImGui::SliderFloat("Value", &f, 0.0f, 1.0f); + ImGui::InputFloat("Input", &f, 0.1f); + ImGui::Combo("Combo", &n, "Yes\0No\0Maybe\0\0"); + ImGui::EndMenu(); + } + + IMGUI_DEMO_MARKER("Examples/Menu/Colors"); + if (ImGui::BeginMenu("Colors")) + { + float sz = ImGui::GetTextLineHeight(); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const char* name = ImGui::GetStyleColorName((ImGuiCol)i); + ImVec2 p = ImGui::GetCursorScreenPos(); + ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + sz, p.y + sz), ImGui::GetColorU32((ImGuiCol)i)); + ImGui::Dummy(ImVec2(sz, sz)); + ImGui::SameLine(); + ImGui::MenuItem(name); + } + ImGui::EndMenu(); + } + + // Here we demonstrate appending again to the "Options" menu (which we already created above) + // Of course in this demo it is a little bit silly that this function calls BeginMenu("Options") twice. + // In a real code-base using it would make senses to use this feature from very different code locations. + if (ImGui::BeginMenu("Options")) // <-- Append! + { + IMGUI_DEMO_MARKER("Examples/Menu/Append to an existing menu"); + static bool b = true; + ImGui::Checkbox("SomeOption", &b); + ImGui::EndMenu(); + } + + if (ImGui::BeginMenu("Disabled", false)) // Disabled + { + IM_ASSERT(0); + } + if (ImGui::MenuItem("Checked", NULL, true)) {} + if (ImGui::MenuItem("Quit", "Alt+F4")) {} +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Debug Console / ShowExampleAppConsole() +//----------------------------------------------------------------------------- + +// Demonstrate creating a simple console window, with scrolling, filtering, completion and history. +// For the console example, we are using a more C++ like approach of declaring a class to hold both data and functions. +struct ExampleAppConsole +{ + char InputBuf[256]; + ImVector Items; + ImVector Commands; + ImVector History; + int HistoryPos; // -1: new line, 0..History.Size-1 browsing history. + ImGuiTextFilter Filter; + bool AutoScroll; + bool ScrollToBottom; + + ExampleAppConsole() + { + IMGUI_DEMO_MARKER("Examples/Console"); + ClearLog(); + memset(InputBuf, 0, sizeof(InputBuf)); + HistoryPos = -1; + + // "CLASSIFY" is here to provide the test case where "C"+[tab] completes to "CL" and display multiple matches. + Commands.push_back("HELP"); + Commands.push_back("HISTORY"); + Commands.push_back("CLEAR"); + Commands.push_back("CLASSIFY"); + AutoScroll = true; + ScrollToBottom = false; + AddLog("Welcome to Dear ImGui!"); + } + ~ExampleAppConsole() + { + ClearLog(); + for (int i = 0; i < History.Size; i++) + free(History[i]); + } + + // Portable helpers + static int Stricmp(const char* s1, const char* s2) { int d; while ((d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; } return d; } + static int Strnicmp(const char* s1, const char* s2, int n) { int d = 0; while (n > 0 && (d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; n--; } return d; } + static char* Strdup(const char* s) { IM_ASSERT(s); size_t len = strlen(s) + 1; void* buf = malloc(len); IM_ASSERT(buf); return (char*)memcpy(buf, (const void*)s, len); } + static void Strtrim(char* s) { char* str_end = s + strlen(s); while (str_end > s && str_end[-1] == ' ') str_end--; *str_end = 0; } + + void ClearLog() + { + for (int i = 0; i < Items.Size; i++) + free(Items[i]); + Items.clear(); + } + + void AddLog(const char* fmt, ...) IM_FMTARGS(2) + { + // FIXME-OPT + char buf[1024]; + va_list args; + va_start(args, fmt); + vsnprintf(buf, IM_ARRAYSIZE(buf), fmt, args); + buf[IM_ARRAYSIZE(buf)-1] = 0; + va_end(args); + Items.push_back(Strdup(buf)); + } + + void Draw(const char* title, bool* p_open) + { + ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); + if (!ImGui::Begin(title, p_open)) + { + ImGui::End(); + return; + } + + // As a specific feature guaranteed by the library, after calling Begin() the last Item represent the title bar. + // So e.g. IsItemHovered() will return true when hovering the title bar. + // Here we create a context menu only available from the title bar. + if (ImGui::BeginPopupContextItem()) + { + if (ImGui::MenuItem("Close Console")) + *p_open = false; + ImGui::EndPopup(); + } + + ImGui::TextWrapped( + "This example implements a console with basic coloring, completion (TAB key) and history (Up/Down keys). A more elaborate " + "implementation may want to store entries along with extra data such as timestamp, emitter, etc."); + ImGui::TextWrapped("Enter 'HELP' for help."); + + // TODO: display items starting from the bottom + + if (ImGui::SmallButton("Add Debug Text")) { AddLog("%d some text", Items.Size); AddLog("some more text"); AddLog("display very important message here!"); } + ImGui::SameLine(); + if (ImGui::SmallButton("Add Debug Error")) { AddLog("[error] something went wrong"); } + ImGui::SameLine(); + if (ImGui::SmallButton("Clear")) { ClearLog(); } + ImGui::SameLine(); + bool copy_to_clipboard = ImGui::SmallButton("Copy"); + //static float t = 0.0f; if (ImGui::GetTime() - t > 0.02f) { t = ImGui::GetTime(); AddLog("Spam %f", t); } + + ImGui::Separator(); + + // Options menu + if (ImGui::BeginPopup("Options")) + { + ImGui::Checkbox("Auto-scroll", &AutoScroll); + ImGui::EndPopup(); + } + + // Options, Filter + if (ImGui::Button("Options")) + ImGui::OpenPopup("Options"); + ImGui::SameLine(); + Filter.Draw("Filter (\"incl,-excl\") (\"error\")", 180); + ImGui::Separator(); + + // Reserve enough left-over height for 1 separator + 1 input text + const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing(); + if (ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar)) + { + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::Selectable("Clear")) ClearLog(); + ImGui::EndPopup(); + } + + // Display every line as a separate entry so we can change their color or add custom widgets. + // If you only want raw text you can use ImGui::TextUnformatted(log.begin(), log.end()); + // NB- if you have thousands of entries this approach may be too inefficient and may require user-side clipping + // to only process visible items. The clipper will automatically measure the height of your first item and then + // "seek" to display only items in the visible area. + // To use the clipper we can replace your standard loop: + // for (int i = 0; i < Items.Size; i++) + // With: + // ImGuiListClipper clipper; + // clipper.Begin(Items.Size); + // while (clipper.Step()) + // for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + // - That your items are evenly spaced (same height) + // - That you have cheap random access to your elements (you can access them given their index, + // without processing all the ones before) + // You cannot this code as-is if a filter is active because it breaks the 'cheap random-access' property. + // We would need random-access on the post-filtered list. + // A typical application wanting coarse clipping and filtering may want to pre-compute an array of indices + // or offsets of items that passed the filtering test, recomputing this array when user changes the filter, + // and appending newly elements as they are inserted. This is left as a task to the user until we can manage + // to improve this example code! + // If your items are of variable height: + // - Split them into same height items would be simpler and facilitate random-seeking into your list. + // - Consider using manual call to IsRectVisible() and skipping extraneous decoration from your items. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing + if (copy_to_clipboard) + ImGui::LogToClipboard(); + for (int i = 0; i < Items.Size; i++) + { + const char* item = Items[i]; + if (!Filter.PassFilter(item)) + continue; + + // Normally you would store more information in your item than just a string. + // (e.g. make Items[] an array of structure, store color/type etc.) + ImVec4 color; + bool has_color = false; + if (strstr(item, "[error]")) { color = ImVec4(1.0f, 0.4f, 0.4f, 1.0f); has_color = true; } + else if (strncmp(item, "# ", 2) == 0) { color = ImVec4(1.0f, 0.8f, 0.6f, 1.0f); has_color = true; } + if (has_color) + ImGui::PushStyleColor(ImGuiCol_Text, color); + ImGui::TextUnformatted(item); + if (has_color) + ImGui::PopStyleColor(); + } + if (copy_to_clipboard) + ImGui::LogFinish(); + + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (ScrollToBottom || (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())) + ImGui::SetScrollHereY(1.0f); + ScrollToBottom = false; + + ImGui::PopStyleVar(); + } + ImGui::EndChild(); + ImGui::Separator(); + + // Command-line + bool reclaim_focus = false; + ImGuiInputTextFlags input_text_flags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_EscapeClearsAll | ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory; + if (ImGui::InputText("Input", InputBuf, IM_ARRAYSIZE(InputBuf), input_text_flags, &TextEditCallbackStub, (void*)this)) + { + char* s = InputBuf; + Strtrim(s); + if (s[0]) + ExecCommand(s); + strcpy(s, ""); + reclaim_focus = true; + } + + // Auto-focus on window apparition + ImGui::SetItemDefaultFocus(); + if (reclaim_focus) + ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget + + ImGui::End(); + } + + void ExecCommand(const char* command_line) + { + AddLog("# %s\n", command_line); + + // Insert into history. First find match and delete it so it can be pushed to the back. + // This isn't trying to be smart or optimal. + HistoryPos = -1; + for (int i = History.Size - 1; i >= 0; i--) + if (Stricmp(History[i], command_line) == 0) + { + free(History[i]); + History.erase(History.begin() + i); + break; + } + History.push_back(Strdup(command_line)); + + // Process command + if (Stricmp(command_line, "CLEAR") == 0) + { + ClearLog(); + } + else if (Stricmp(command_line, "HELP") == 0) + { + AddLog("Commands:"); + for (int i = 0; i < Commands.Size; i++) + AddLog("- %s", Commands[i]); + } + else if (Stricmp(command_line, "HISTORY") == 0) + { + int first = History.Size - 10; + for (int i = first > 0 ? first : 0; i < History.Size; i++) + AddLog("%3d: %s\n", i, History[i]); + } + else + { + AddLog("Unknown command: '%s'\n", command_line); + } + + // On command input, we scroll to bottom even if AutoScroll==false + ScrollToBottom = true; + } + + // In C++11 you'd be better off using lambdas for this sort of forwarding callbacks + static int TextEditCallbackStub(ImGuiInputTextCallbackData* data) + { + ExampleAppConsole* console = (ExampleAppConsole*)data->UserData; + return console->TextEditCallback(data); + } + + int TextEditCallback(ImGuiInputTextCallbackData* data) + { + //AddLog("cursor: %d, selection: %d-%d", data->CursorPos, data->SelectionStart, data->SelectionEnd); + switch (data->EventFlag) + { + case ImGuiInputTextFlags_CallbackCompletion: + { + // Example of TEXT COMPLETION + + // Locate beginning of current word + const char* word_end = data->Buf + data->CursorPos; + const char* word_start = word_end; + while (word_start > data->Buf) + { + const char c = word_start[-1]; + if (c == ' ' || c == '\t' || c == ',' || c == ';') + break; + word_start--; + } + + // Build a list of candidates + ImVector candidates; + for (int i = 0; i < Commands.Size; i++) + if (Strnicmp(Commands[i], word_start, (int)(word_end - word_start)) == 0) + candidates.push_back(Commands[i]); + + if (candidates.Size == 0) + { + // No match + AddLog("No match for \"%.*s\"!\n", (int)(word_end - word_start), word_start); + } + else if (candidates.Size == 1) + { + // Single match. Delete the beginning of the word and replace it entirely so we've got nice casing. + data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); + data->InsertChars(data->CursorPos, candidates[0]); + data->InsertChars(data->CursorPos, " "); + } + else + { + // Multiple matches. Complete as much as we can.. + // So inputing "C"+Tab will complete to "CL" then display "CLEAR" and "CLASSIFY" as matches. + int match_len = (int)(word_end - word_start); + for (;;) + { + int c = 0; + bool all_candidates_matches = true; + for (int i = 0; i < candidates.Size && all_candidates_matches; i++) + if (i == 0) + c = toupper(candidates[i][match_len]); + else if (c == 0 || c != toupper(candidates[i][match_len])) + all_candidates_matches = false; + if (!all_candidates_matches) + break; + match_len++; + } + + if (match_len > 0) + { + data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); + data->InsertChars(data->CursorPos, candidates[0], candidates[0] + match_len); + } + + // List matches + AddLog("Possible matches:\n"); + for (int i = 0; i < candidates.Size; i++) + AddLog("- %s\n", candidates[i]); + } + + break; + } + case ImGuiInputTextFlags_CallbackHistory: + { + // Example of HISTORY + const int prev_history_pos = HistoryPos; + if (data->EventKey == ImGuiKey_UpArrow) + { + if (HistoryPos == -1) + HistoryPos = History.Size - 1; + else if (HistoryPos > 0) + HistoryPos--; + } + else if (data->EventKey == ImGuiKey_DownArrow) + { + if (HistoryPos != -1) + if (++HistoryPos >= History.Size) + HistoryPos = -1; + } + + // A better implementation would preserve the data on the current input line along with cursor position. + if (prev_history_pos != HistoryPos) + { + const char* history_str = (HistoryPos >= 0) ? History[HistoryPos] : ""; + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, history_str); + } + } + } + return 0; + } +}; + +static void ShowExampleAppConsole(bool* p_open) +{ + static ExampleAppConsole console; + console.Draw("Example: Console", p_open); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Debug Log / ShowExampleAppLog() +//----------------------------------------------------------------------------- + +// Usage: +// static ExampleAppLog my_log; +// my_log.AddLog("Hello %d world\n", 123); +// my_log.Draw("title"); +struct ExampleAppLog +{ + ImGuiTextBuffer Buf; + ImGuiTextFilter Filter; + ImVector LineOffsets; // Index to lines offset. We maintain this with AddLog() calls. + bool AutoScroll; // Keep scrolling if already at the bottom. + + ExampleAppLog() + { + AutoScroll = true; + Clear(); + } + + void Clear() + { + Buf.clear(); + LineOffsets.clear(); + LineOffsets.push_back(0); + } + + void AddLog(const char* fmt, ...) IM_FMTARGS(2) + { + int old_size = Buf.size(); + va_list args; + va_start(args, fmt); + Buf.appendfv(fmt, args); + va_end(args); + for (int new_size = Buf.size(); old_size < new_size; old_size++) + if (Buf[old_size] == '\n') + LineOffsets.push_back(old_size + 1); + } + + void Draw(const char* title, bool* p_open = NULL) + { + if (!ImGui::Begin(title, p_open)) + { + ImGui::End(); + return; + } + + // Options menu + if (ImGui::BeginPopup("Options")) + { + ImGui::Checkbox("Auto-scroll", &AutoScroll); + ImGui::EndPopup(); + } + + // Main window + if (ImGui::Button("Options")) + ImGui::OpenPopup("Options"); + ImGui::SameLine(); + bool clear = ImGui::Button("Clear"); + ImGui::SameLine(); + bool copy = ImGui::Button("Copy"); + ImGui::SameLine(); + Filter.Draw("Filter", -100.0f); + + ImGui::Separator(); + + if (ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar)) + { + if (clear) + Clear(); + if (copy) + ImGui::LogToClipboard(); + + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + const char* buf = Buf.begin(); + const char* buf_end = Buf.end(); + if (Filter.IsActive()) + { + // In this example we don't use the clipper when Filter is enabled. + // This is because we don't have random access to the result of our filter. + // A real application processing logs with ten of thousands of entries may want to store the result of + // search/filter.. especially if the filtering function is not trivial (e.g. reg-exp). + for (int line_no = 0; line_no < LineOffsets.Size; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + if (Filter.PassFilter(line_start, line_end)) + ImGui::TextUnformatted(line_start, line_end); + } + } + else + { + // The simplest and easy way to display the entire buffer: + // ImGui::TextUnformatted(buf_begin, buf_end); + // And it'll just work. TextUnformatted() has specialization for large blob of text and will fast-forward + // to skip non-visible lines. Here we instead demonstrate using the clipper to only process lines that are + // within the visible area. + // If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them + // on your side is recommended. Using ImGuiListClipper requires + // - A) random access into your data + // - B) items all being the same height, + // both of which we can handle since we have an array pointing to the beginning of each line of text. + // When using the filter (in the block of code above) we don't have random access into the data to display + // anymore, which is why we don't use the clipper. Storing or skimming through the search result would make + // it possible (and would be recommended if you want to search through tens of thousands of entries). + ImGuiListClipper clipper; + clipper.Begin(LineOffsets.Size); + while (clipper.Step()) + { + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + ImGui::TextUnformatted(line_start, line_end); + } + } + clipper.End(); + } + ImGui::PopStyleVar(); + + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) + ImGui::SetScrollHereY(1.0f); + } + ImGui::EndChild(); + ImGui::End(); + } +}; + +// Demonstrate creating a simple log window with basic filtering. +static void ShowExampleAppLog(bool* p_open) +{ + static ExampleAppLog log; + + // For the demo: add a debug button _BEFORE_ the normal log window contents + // We take advantage of a rarely used feature: multiple calls to Begin()/End() are appending to the _same_ window. + // Most of the contents of the window will be added by the log.Draw() call. + ImGui::SetNextWindowSize(ImVec2(500, 400), ImGuiCond_FirstUseEver); + ImGui::Begin("Example: Log", p_open); + IMGUI_DEMO_MARKER("Examples/Log"); + if (ImGui::SmallButton("[Debug] Add 5 entries")) + { + static int counter = 0; + const char* categories[3] = { "info", "warn", "error" }; + const char* words[] = { "Bumfuzzled", "Cattywampus", "Snickersnee", "Abibliophobia", "Absquatulate", "Nincompoop", "Pauciloquent" }; + for (int n = 0; n < 5; n++) + { + const char* category = categories[counter % IM_ARRAYSIZE(categories)]; + const char* word = words[counter % IM_ARRAYSIZE(words)]; + log.AddLog("[%05d] [%s] Hello, current time is %.1f, here's a word: '%s'\n", + ImGui::GetFrameCount(), category, ImGui::GetTime(), word); + counter++; + } + } + ImGui::End(); + + // Actually call in the regular Log helper (which will Begin() into the same window as we just did) + log.Draw("Example: Log", p_open); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() +//----------------------------------------------------------------------------- + +// Demonstrate create a window with multiple child windows. +static void ShowExampleAppLayout(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(500, 440), ImGuiCond_FirstUseEver); + if (ImGui::Begin("Example: Simple layout", p_open, ImGuiWindowFlags_MenuBar)) + { + IMGUI_DEMO_MARKER("Examples/Simple layout"); + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + if (ImGui::MenuItem("Close")) *p_open = false; + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + // Left + static int selected = 0; + { + ImGui::BeginChild("left pane", ImVec2(150, 0), true); + for (int i = 0; i < 100; i++) + { + // FIXME: Good candidate to use ImGuiSelectableFlags_SelectOnNav + char label[128]; + sprintf(label, "MyObject %d", i); + if (ImGui::Selectable(label, selected == i)) + selected = i; + } + ImGui::EndChild(); + } + ImGui::SameLine(); + + // Right + { + ImGui::BeginGroup(); + ImGui::BeginChild("item view", ImVec2(0, -ImGui::GetFrameHeightWithSpacing())); // Leave room for 1 line below us + ImGui::Text("MyObject: %d", selected); + ImGui::Separator(); + if (ImGui::BeginTabBar("##Tabs", ImGuiTabBarFlags_None)) + { + if (ImGui::BeginTabItem("Description")) + { + ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Details")) + { + ImGui::Text("ID: 0123456789"); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::EndChild(); + if (ImGui::Button("Revert")) {} + ImGui::SameLine(); + if (ImGui::Button("Save")) {} + ImGui::EndGroup(); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() +//----------------------------------------------------------------------------- + +static void ShowPlaceholderObject(const char* prefix, int uid) +{ + // Use object uid as identifier. Most commonly you could also use the object pointer as a base ID. + ImGui::PushID(uid); + + // Text and Tree nodes are less high than framed widgets, using AlignTextToFramePadding() we add vertical spacing to make the tree lines equal high. + ImGui::TableNextRow(); + ImGui::TableSetColumnIndex(0); + ImGui::AlignTextToFramePadding(); + bool node_open = ImGui::TreeNode("Object", "%s_%u", prefix, uid); + ImGui::TableSetColumnIndex(1); + ImGui::Text("my sailor is rich"); + + if (node_open) + { + static float placeholder_members[8] = { 0.0f, 0.0f, 1.0f, 3.1416f, 100.0f, 999.0f }; + for (int i = 0; i < 8; i++) + { + ImGui::PushID(i); // Use field index as identifier. + if (i < 2) + { + ShowPlaceholderObject("Child", 424242); + } + else + { + // Here we use a TreeNode to highlight on hover (we could use e.g. Selectable as well) + ImGui::TableNextRow(); + ImGui::TableSetColumnIndex(0); + ImGui::AlignTextToFramePadding(); + ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_Bullet; + ImGui::TreeNodeEx("Field", flags, "Field_%d", i); + + ImGui::TableSetColumnIndex(1); + ImGui::SetNextItemWidth(-FLT_MIN); + if (i >= 5) + ImGui::InputFloat("##value", &placeholder_members[i], 1.0f); + else + ImGui::DragFloat("##value", &placeholder_members[i], 0.01f); + ImGui::NextColumn(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + ImGui::PopID(); +} + +// Demonstrate create a simple property editor. +static void ShowExampleAppPropertyEditor(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver); + if (!ImGui::Begin("Example: Property editor", p_open)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Property Editor"); + + HelpMarker( + "This example shows how you may implement a property editor using two columns.\n" + "All objects/fields data are dummies here.\n" + "Remember that in many simple cases, you can use ImGui::SameLine(xxx) to position\n" + "your cursor horizontally instead of using the Columns() API."); + + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2)); + if (ImGui::BeginTable("split", 2, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_Resizable)) + { + // Iterate placeholder objects (all the same data) + for (int obj_i = 0; obj_i < 4; obj_i++) + { + ShowPlaceholderObject("Object", obj_i); + //ImGui::Separator(); + } + ImGui::EndTable(); + } + ImGui::PopStyleVar(); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Long Text / ShowExampleAppLongText() +//----------------------------------------------------------------------------- + +// Demonstrate/test rendering huge amount of text, and the incidence of clipping. +static void ShowExampleAppLongText(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); + if (!ImGui::Begin("Example: Long text display", p_open)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Long text display"); + + static int test_type = 0; + static ImGuiTextBuffer log; + static int lines = 0; + ImGui::Text("Printing unusually long amount of text."); + ImGui::Combo("Test type", &test_type, + "Single call to TextUnformatted()\0" + "Multiple calls to Text(), clipped\0" + "Multiple calls to Text(), not clipped (slow)\0"); + ImGui::Text("Buffer contents: %d lines, %d bytes", lines, log.size()); + if (ImGui::Button("Clear")) { log.clear(); lines = 0; } + ImGui::SameLine(); + if (ImGui::Button("Add 1000 lines")) + { + for (int i = 0; i < 1000; i++) + log.appendf("%i The quick brown fox jumps over the lazy dog\n", lines + i); + lines += 1000; + } + ImGui::BeginChild("Log"); + switch (test_type) + { + case 0: + // Single call to TextUnformatted() with a big buffer + ImGui::TextUnformatted(log.begin(), log.end()); + break; + case 1: + { + // Multiple calls to Text(), manually coarsely clipped - demonstrate how to use the ImGuiListClipper helper. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + ImGuiListClipper clipper; + clipper.Begin(lines); + while (clipper.Step()) + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); + ImGui::PopStyleVar(); + break; + } + case 2: + // Multiple calls to Text(), not clipped (slow) + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int i = 0; i < lines; i++) + ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); + ImGui::PopStyleVar(); + break; + } + ImGui::EndChild(); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window which gets auto-resized according to its content. +static void ShowExampleAppAutoResize(bool* p_open) +{ + if (!ImGui::Begin("Example: Auto-resizing window", p_open, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Auto-resizing window"); + + static int lines = 10; + ImGui::TextUnformatted( + "Window will resize every-frame to the size of its content.\n" + "Note that you probably don't want to query the window size to\n" + "output your content because that would create a feedback loop."); + ImGui::SliderInt("Number of lines", &lines, 1, 20); + for (int i = 0; i < lines; i++) + ImGui::Text("%*sThis is line %d", i * 4, "", i); // Pad with space to extend size horizontally + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window with custom resize constraints. +// Note that size constraints currently don't work on a docked window (when in 'docking' branch) +static void ShowExampleAppConstrainedResize(bool* p_open) +{ + struct CustomConstraints + { + // Helper functions to demonstrate programmatic constraints + // FIXME: This doesn't take account of decoration size (e.g. title bar), library should make this easier. + static void AspectRatio(ImGuiSizeCallbackData* data) { float aspect_ratio = *(float*)data->UserData; data->DesiredSize.x = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); data->DesiredSize.y = (float)(int)(data->DesiredSize.x / aspect_ratio); } + static void Square(ImGuiSizeCallbackData* data) { data->DesiredSize.x = data->DesiredSize.y = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); } + static void Step(ImGuiSizeCallbackData* data) { float step = *(float*)data->UserData; data->DesiredSize = ImVec2((int)(data->CurrentSize.x / step + 0.5f) * step, (int)(data->CurrentSize.y / step + 0.5f) * step); } + }; + + const char* test_desc[] = + { + "Between 100x100 and 500x500", + "At least 100x100", + "Resize vertical only", + "Resize horizontal only", + "Width Between 400 and 500", + "Custom: Aspect Ratio 16:9", + "Custom: Always Square", + "Custom: Fixed Steps (100)", + }; + + // Options + static bool auto_resize = false; + static bool window_padding = true; + static int type = 5; // Aspect Ratio + static int display_lines = 10; + + // Submit constraint + float aspect_ratio = 16.0f / 9.0f; + float fixed_step = 100.0f; + if (type == 0) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(500, 500)); // Between 100x100 and 500x500 + if (type == 1) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(FLT_MAX, FLT_MAX)); // Width > 100, Height > 100 + if (type == 2) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 0), ImVec2(-1, FLT_MAX)); // Vertical only + if (type == 3) ImGui::SetNextWindowSizeConstraints(ImVec2(0, -1), ImVec2(FLT_MAX, -1)); // Horizontal only + if (type == 4) ImGui::SetNextWindowSizeConstraints(ImVec2(400, -1), ImVec2(500, -1)); // Width Between and 400 and 500 + if (type == 5) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::AspectRatio, (void*)&aspect_ratio); // Aspect ratio + if (type == 6) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Square); // Always Square + if (type == 7) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Step, (void*)&fixed_step); // Fixed Step + + // Submit window + if (!window_padding) + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + const ImGuiWindowFlags window_flags = auto_resize ? ImGuiWindowFlags_AlwaysAutoResize : 0; + const bool window_open = ImGui::Begin("Example: Constrained Resize", p_open, window_flags); + if (!window_padding) + ImGui::PopStyleVar(); + if (window_open) + { + IMGUI_DEMO_MARKER("Examples/Constrained Resizing window"); + if (ImGui::GetIO().KeyShift) + { + // Display a dummy viewport (in your real app you would likely use ImageButton() to display a texture. + ImVec2 avail_size = ImGui::GetContentRegionAvail(); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImGui::ColorButton("viewport", ImVec4(0.5f, 0.2f, 0.5f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, avail_size); + ImGui::SetCursorScreenPos(ImVec2(pos.x + 10, pos.y + 10)); + ImGui::Text("%.2f x %.2f", avail_size.x, avail_size.y); + } + else + { + ImGui::Text("(Hold SHIFT to display a dummy viewport)"); + if (ImGui::IsWindowDocked()) + ImGui::Text("Warning: Sizing Constraints won't work if the window is docked!"); + if (ImGui::Button("Set 200x200")) { ImGui::SetWindowSize(ImVec2(200, 200)); } ImGui::SameLine(); + if (ImGui::Button("Set 500x500")) { ImGui::SetWindowSize(ImVec2(500, 500)); } ImGui::SameLine(); + if (ImGui::Button("Set 800x200")) { ImGui::SetWindowSize(ImVec2(800, 200)); } + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::Combo("Constraint", &type, test_desc, IM_ARRAYSIZE(test_desc)); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::DragInt("Lines", &display_lines, 0.2f, 1, 100); + ImGui::Checkbox("Auto-resize", &auto_resize); + ImGui::Checkbox("Window padding", &window_padding); + for (int i = 0; i < display_lines; i++) + ImGui::Text("%*sHello, sailor! Making this line long enough for the example.", i * 4, ""); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Simple overlay / ShowExampleAppSimpleOverlay() +//----------------------------------------------------------------------------- + +// Demonstrate creating a simple static window with no decoration +// + a context-menu to choose which corner of the screen to use. +static void ShowExampleAppSimpleOverlay(bool* p_open) +{ + static int location = 0; + ImGuiIO& io = ImGui::GetIO(); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoDocking | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav; + if (location >= 0) + { + const float PAD = 10.0f; + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImVec2 work_pos = viewport->WorkPos; // Use work area to avoid menu-bar/task-bar, if any! + ImVec2 work_size = viewport->WorkSize; + ImVec2 window_pos, window_pos_pivot; + window_pos.x = (location & 1) ? (work_pos.x + work_size.x - PAD) : (work_pos.x + PAD); + window_pos.y = (location & 2) ? (work_pos.y + work_size.y - PAD) : (work_pos.y + PAD); + window_pos_pivot.x = (location & 1) ? 1.0f : 0.0f; + window_pos_pivot.y = (location & 2) ? 1.0f : 0.0f; + ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always, window_pos_pivot); + ImGui::SetNextWindowViewport(viewport->ID); + window_flags |= ImGuiWindowFlags_NoMove; + } + else if (location == -2) + { + // Center window + ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + window_flags |= ImGuiWindowFlags_NoMove; + } + ImGui::SetNextWindowBgAlpha(0.35f); // Transparent background + if (ImGui::Begin("Example: Simple overlay", p_open, window_flags)) + { + IMGUI_DEMO_MARKER("Examples/Simple Overlay"); + ImGui::Text("Simple overlay\n" "(right-click to change position)"); + ImGui::Separator(); + if (ImGui::IsMousePosValid()) + ImGui::Text("Mouse Position: (%.1f,%.1f)", io.MousePos.x, io.MousePos.y); + else + ImGui::Text("Mouse Position: "); + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::MenuItem("Custom", NULL, location == -1)) location = -1; + if (ImGui::MenuItem("Center", NULL, location == -2)) location = -2; + if (ImGui::MenuItem("Top-left", NULL, location == 0)) location = 0; + if (ImGui::MenuItem("Top-right", NULL, location == 1)) location = 1; + if (ImGui::MenuItem("Bottom-left", NULL, location == 2)) location = 2; + if (ImGui::MenuItem("Bottom-right", NULL, location == 3)) location = 3; + if (p_open && ImGui::MenuItem("Close")) *p_open = false; + ImGui::EndPopup(); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Fullscreen window / ShowExampleAppFullscreen() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window covering the entire screen/viewport +static void ShowExampleAppFullscreen(bool* p_open) +{ + static bool use_work_area = true; + static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings; + + // We demonstrate using the full viewport area or the work area (without menu-bars, task-bars etc.) + // Based on your use case you may want one of the other. + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImGui::SetNextWindowPos(use_work_area ? viewport->WorkPos : viewport->Pos); + ImGui::SetNextWindowSize(use_work_area ? viewport->WorkSize : viewport->Size); + + if (ImGui::Begin("Example: Fullscreen window", p_open, flags)) + { + ImGui::Checkbox("Use work area instead of main area", &use_work_area); + ImGui::SameLine(); + HelpMarker("Main Area = entire viewport,\nWork Area = entire viewport minus sections used by the main menu bars, task bars etc.\n\nEnable the main-menu bar in Examples menu to see the difference."); + + ImGui::CheckboxFlags("ImGuiWindowFlags_NoBackground", &flags, ImGuiWindowFlags_NoBackground); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoDecoration", &flags, ImGuiWindowFlags_NoDecoration); + ImGui::Indent(); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoTitleBar", &flags, ImGuiWindowFlags_NoTitleBar); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoCollapse", &flags, ImGuiWindowFlags_NoCollapse); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoScrollbar", &flags, ImGuiWindowFlags_NoScrollbar); + ImGui::Unindent(); + + if (p_open && ImGui::Button("Close this window")) + *p_open = false; + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Manipulating Window Titles / ShowExampleAppWindowTitles() +//----------------------------------------------------------------------------- + +// Demonstrate the use of "##" and "###" in identifiers to manipulate ID generation. +// This applies to all regular items as well. +// Read FAQ section "How can I have multiple widgets with the same label?" for details. +static void ShowExampleAppWindowTitles(bool*) +{ + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + const ImVec2 base_pos = viewport->Pos; + + // By default, Windows are uniquely identified by their title. + // You can use the "##" and "###" markers to manipulate the display/ID. + + // Using "##" to display same title but have unique identifier. + ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 100), ImGuiCond_FirstUseEver); + ImGui::Begin("Same title as another window##1"); + IMGUI_DEMO_MARKER("Examples/Manipulating window titles"); + ImGui::Text("This is window 1.\nMy title is the same as window 2, but my identifier is unique."); + ImGui::End(); + + ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 200), ImGuiCond_FirstUseEver); + ImGui::Begin("Same title as another window##2"); + ImGui::Text("This is window 2.\nMy title is the same as window 1, but my identifier is unique."); + ImGui::End(); + + // Using "###" to display a changing title but keep a static identifier "AnimatedTitle" + char buf[128]; + sprintf(buf, "Animated title %c %d###AnimatedTitle", "|/-\\"[(int)(ImGui::GetTime() / 0.25f) & 3], ImGui::GetFrameCount()); + ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 300), ImGuiCond_FirstUseEver); + ImGui::Begin(buf); + ImGui::Text("This window has a changing title."); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() +//----------------------------------------------------------------------------- + +// Demonstrate using the low-level ImDrawList to draw custom shapes. +static void ShowExampleAppCustomRendering(bool* p_open) +{ + if (!ImGui::Begin("Example: Custom rendering", p_open)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Custom Rendering"); + + // Tip: If you do a lot of custom rendering, you probably want to use your own geometrical types and benefit of + // overloaded operators, etc. Define IM_VEC2_CLASS_EXTRA in imconfig.h to create implicit conversions between your + // types and ImVec2/ImVec4. Dear ImGui defines overloaded operators but they are internal to imgui.cpp and not + // exposed outside (to avoid messing with your types) In this example we are not using the maths operators! + + if (ImGui::BeginTabBar("##TabBar")) + { + if (ImGui::BeginTabItem("Primitives")) + { + ImGui::PushItemWidth(-ImGui::GetFontSize() * 15); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + + // Draw gradients + // (note that those are currently exacerbating our sRGB/Linear issues) + // Calling ImGui::GetColorU32() multiplies the given colors by the current Style Alpha, but you may pass the IM_COL32() directly as well.. + ImGui::Text("Gradients"); + ImVec2 gradient_size = ImVec2(ImGui::CalcItemWidth(), ImGui::GetFrameHeight()); + { + ImVec2 p0 = ImGui::GetCursorScreenPos(); + ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); + ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 0, 0, 255)); + ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 255, 255, 255)); + draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); + ImGui::InvisibleButton("##gradient1", gradient_size); + } + { + ImVec2 p0 = ImGui::GetCursorScreenPos(); + ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); + ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 255, 0, 255)); + ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 0, 0, 255)); + draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); + ImGui::InvisibleButton("##gradient2", gradient_size); + } + + // Draw a bunch of primitives + ImGui::Text("All primitives"); + static float sz = 36.0f; + static float thickness = 3.0f; + static int ngon_sides = 6; + static bool circle_segments_override = false; + static int circle_segments_override_v = 12; + static bool curve_segments_override = false; + static int curve_segments_override_v = 8; + static ImVec4 colf = ImVec4(1.0f, 1.0f, 0.4f, 1.0f); + ImGui::DragFloat("Size", &sz, 0.2f, 2.0f, 100.0f, "%.0f"); + ImGui::DragFloat("Thickness", &thickness, 0.05f, 1.0f, 8.0f, "%.02f"); + ImGui::SliderInt("N-gon sides", &ngon_sides, 3, 12); + ImGui::Checkbox("##circlesegmentoverride", &circle_segments_override); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + circle_segments_override |= ImGui::SliderInt("Circle segments override", &circle_segments_override_v, 3, 40); + ImGui::Checkbox("##curvessegmentoverride", &curve_segments_override); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + curve_segments_override |= ImGui::SliderInt("Curves segments override", &curve_segments_override_v, 3, 40); + ImGui::ColorEdit4("Color", &colf.x); + + const ImVec2 p = ImGui::GetCursorScreenPos(); + const ImU32 col = ImColor(colf); + const float spacing = 10.0f; + const ImDrawFlags corners_tl_br = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersBottomRight; + const float rounding = sz / 5.0f; + const int circle_segments = circle_segments_override ? circle_segments_override_v : 0; + const int curve_segments = curve_segments_override ? curve_segments_override_v : 0; + float x = p.x + 4.0f; + float y = p.y + 4.0f; + for (int n = 0; n < 2; n++) + { + // First line uses a thickness of 1.0f, second line uses the configurable thickness + float th = (n == 0) ? 1.0f : thickness; + draw_list->AddNgon(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, ngon_sides, th); x += sz + spacing; // N-gon + draw_list->AddCircle(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments, th); x += sz + spacing; // Circle + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 0.0f, ImDrawFlags_None, th); x += sz + spacing; // Square + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, ImDrawFlags_None, th); x += sz + spacing; // Square with all rounded corners + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, corners_tl_br, th); x += sz + spacing; // Square with two rounded corners + draw_list->AddTriangle(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col, th);x += sz + spacing; // Triangle + //draw_list->AddTriangle(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col, th);x+= sz*0.4f + spacing; // Thin triangle + draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y), col, th); x += sz + spacing; // Horizontal line (note: drawing a filled rectangle will be faster!) + draw_list->AddLine(ImVec2(x, y), ImVec2(x, y + sz), col, th); x += spacing; // Vertical line (note: drawing a filled rectangle will be faster!) + draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y + sz), col, th); x += sz + spacing; // Diagonal line + + // Quadratic Bezier Curve (3 control points) + ImVec2 cp3[3] = { ImVec2(x, y + sz * 0.6f), ImVec2(x + sz * 0.5f, y - sz * 0.4f), ImVec2(x + sz, y + sz) }; + draw_list->AddBezierQuadratic(cp3[0], cp3[1], cp3[2], col, th, curve_segments); x += sz + spacing; + + // Cubic Bezier Curve (4 control points) + ImVec2 cp4[4] = { ImVec2(x, y), ImVec2(x + sz * 1.3f, y + sz * 0.3f), ImVec2(x + sz - sz * 1.3f, y + sz - sz * 0.3f), ImVec2(x + sz, y + sz) }; + draw_list->AddBezierCubic(cp4[0], cp4[1], cp4[2], cp4[3], col, th, curve_segments); + + x = p.x + 4; + y += sz + spacing; + } + draw_list->AddNgonFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz*0.5f, col, ngon_sides); x += sz + spacing; // N-gon + draw_list->AddCircleFilled(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments); x += sz + spacing; // Circle + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col); x += sz + spacing; // Square + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f); x += sz + spacing; // Square with all rounded corners + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f, corners_tl_br); x += sz + spacing; // Square with two rounded corners + draw_list->AddTriangleFilled(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col); x += sz + spacing; // Triangle + //draw_list->AddTriangleFilled(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col); x += sz*0.4f + spacing; // Thin triangle + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + thickness), col); x += sz + spacing; // Horizontal line (faster than AddLine, but only handle integer thickness) + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + thickness, y + sz), col); x += spacing * 2.0f;// Vertical line (faster than AddLine, but only handle integer thickness) + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + 1, y + 1), col); x += sz; // Pixel (faster than AddLine) + draw_list->AddRectFilledMultiColor(ImVec2(x, y), ImVec2(x + sz, y + sz), IM_COL32(0, 0, 0, 255), IM_COL32(255, 0, 0, 255), IM_COL32(255, 255, 0, 255), IM_COL32(0, 255, 0, 255)); + + ImGui::Dummy(ImVec2((sz + spacing) * 10.2f, (sz + spacing) * 3.0f)); + ImGui::PopItemWidth(); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Canvas")) + { + static ImVector points; + static ImVec2 scrolling(0.0f, 0.0f); + static bool opt_enable_grid = true; + static bool opt_enable_context_menu = true; + static bool adding_line = false; + + ImGui::Checkbox("Enable grid", &opt_enable_grid); + ImGui::Checkbox("Enable context menu", &opt_enable_context_menu); + ImGui::Text("Mouse Left: drag to add lines,\nMouse Right: drag to scroll, click for context menu."); + + // Typically you would use a BeginChild()/EndChild() pair to benefit from a clipping region + own scrolling. + // Here we demonstrate that this can be replaced by simple offsetting + custom drawing + PushClipRect/PopClipRect() calls. + // To use a child window instead we could use, e.g: + // ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); // Disable padding + // ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 50, 50, 255)); // Set a background color + // ImGui::BeginChild("canvas", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_NoMove); + // ImGui::PopStyleColor(); + // ImGui::PopStyleVar(); + // [...] + // ImGui::EndChild(); + + // Using InvisibleButton() as a convenience 1) it will advance the layout cursor and 2) allows us to use IsItemHovered()/IsItemActive() + ImVec2 canvas_p0 = ImGui::GetCursorScreenPos(); // ImDrawList API uses screen coordinates! + ImVec2 canvas_sz = ImGui::GetContentRegionAvail(); // Resize canvas to what's available + if (canvas_sz.x < 50.0f) canvas_sz.x = 50.0f; + if (canvas_sz.y < 50.0f) canvas_sz.y = 50.0f; + ImVec2 canvas_p1 = ImVec2(canvas_p0.x + canvas_sz.x, canvas_p0.y + canvas_sz.y); + + // Draw border and background color + ImGuiIO& io = ImGui::GetIO(); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + draw_list->AddRectFilled(canvas_p0, canvas_p1, IM_COL32(50, 50, 50, 255)); + draw_list->AddRect(canvas_p0, canvas_p1, IM_COL32(255, 255, 255, 255)); + + // This will catch our interactions + ImGui::InvisibleButton("canvas", canvas_sz, ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight); + const bool is_hovered = ImGui::IsItemHovered(); // Hovered + const bool is_active = ImGui::IsItemActive(); // Held + const ImVec2 origin(canvas_p0.x + scrolling.x, canvas_p0.y + scrolling.y); // Lock scrolled origin + const ImVec2 mouse_pos_in_canvas(io.MousePos.x - origin.x, io.MousePos.y - origin.y); + + // Add first and second point + if (is_hovered && !adding_line && ImGui::IsMouseClicked(ImGuiMouseButton_Left)) + { + points.push_back(mouse_pos_in_canvas); + points.push_back(mouse_pos_in_canvas); + adding_line = true; + } + if (adding_line) + { + points.back() = mouse_pos_in_canvas; + if (!ImGui::IsMouseDown(ImGuiMouseButton_Left)) + adding_line = false; + } + + // Pan (we use a zero mouse threshold when there's no context menu) + // You may decide to make that threshold dynamic based on whether the mouse is hovering something etc. + const float mouse_threshold_for_pan = opt_enable_context_menu ? -1.0f : 0.0f; + if (is_active && ImGui::IsMouseDragging(ImGuiMouseButton_Right, mouse_threshold_for_pan)) + { + scrolling.x += io.MouseDelta.x; + scrolling.y += io.MouseDelta.y; + } + + // Context menu (under default mouse threshold) + ImVec2 drag_delta = ImGui::GetMouseDragDelta(ImGuiMouseButton_Right); + if (opt_enable_context_menu && drag_delta.x == 0.0f && drag_delta.y == 0.0f) + ImGui::OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + if (ImGui::BeginPopup("context")) + { + if (adding_line) + points.resize(points.size() - 2); + adding_line = false; + if (ImGui::MenuItem("Remove one", NULL, false, points.Size > 0)) { points.resize(points.size() - 2); } + if (ImGui::MenuItem("Remove all", NULL, false, points.Size > 0)) { points.clear(); } + ImGui::EndPopup(); + } + + // Draw grid + all lines in the canvas + draw_list->PushClipRect(canvas_p0, canvas_p1, true); + if (opt_enable_grid) + { + const float GRID_STEP = 64.0f; + for (float x = fmodf(scrolling.x, GRID_STEP); x < canvas_sz.x; x += GRID_STEP) + draw_list->AddLine(ImVec2(canvas_p0.x + x, canvas_p0.y), ImVec2(canvas_p0.x + x, canvas_p1.y), IM_COL32(200, 200, 200, 40)); + for (float y = fmodf(scrolling.y, GRID_STEP); y < canvas_sz.y; y += GRID_STEP) + draw_list->AddLine(ImVec2(canvas_p0.x, canvas_p0.y + y), ImVec2(canvas_p1.x, canvas_p0.y + y), IM_COL32(200, 200, 200, 40)); + } + for (int n = 0; n < points.Size; n += 2) + draw_list->AddLine(ImVec2(origin.x + points[n].x, origin.y + points[n].y), ImVec2(origin.x + points[n + 1].x, origin.y + points[n + 1].y), IM_COL32(255, 255, 0, 255), 2.0f); + draw_list->PopClipRect(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("BG/FG draw lists")) + { + static bool draw_bg = true; + static bool draw_fg = true; + ImGui::Checkbox("Draw in Background draw list", &draw_bg); + ImGui::SameLine(); HelpMarker("The Background draw list will be rendered below every Dear ImGui windows."); + ImGui::Checkbox("Draw in Foreground draw list", &draw_fg); + ImGui::SameLine(); HelpMarker("The Foreground draw list will be rendered over every Dear ImGui windows."); + ImVec2 window_pos = ImGui::GetWindowPos(); + ImVec2 window_size = ImGui::GetWindowSize(); + ImVec2 window_center = ImVec2(window_pos.x + window_size.x * 0.5f, window_pos.y + window_size.y * 0.5f); + if (draw_bg) + ImGui::GetBackgroundDrawList()->AddCircle(window_center, window_size.x * 0.6f, IM_COL32(255, 0, 0, 200), 0, 10 + 4); + if (draw_fg) + ImGui::GetForegroundDrawList()->AddCircle(window_center, window_size.y * 0.6f, IM_COL32(0, 255, 0, 200), 0, 10); + ImGui::EndTabItem(); + } + + ImGui::EndTabBar(); + } + + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Docking, DockSpace / ShowExampleAppDockSpace() +//----------------------------------------------------------------------------- + +// Demonstrate using DockSpace() to create an explicit docking node within an existing window. +// Note: You can use most Docking facilities without calling any API. You DO NOT need to call DockSpace() to use Docking! +// - Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking. +// - Drag from window menu button (upper-left button) to undock an entire node (all windows). +// - When io.ConfigDockingWithShift == true, you instead need to hold SHIFT to _enable_ docking/undocking. +// About dockspaces: +// - Use DockSpace() to create an explicit dock node _within_ an existing window. +// - Use DockSpaceOverViewport() to create an explicit dock node covering the screen or a specific viewport. +// This is often used with ImGuiDockNodeFlags_PassthruCentralNode. +// - Important: Dockspaces need to be submitted _before_ any window they can host. Submit it early in your frame! (*) +// - Important: Dockspaces need to be kept alive if hidden, otherwise windows docked into it will be undocked. +// e.g. if you have multiple tabs with a dockspace inside each tab: submit the non-visible dockspaces with ImGuiDockNodeFlags_KeepAliveOnly. +// (*) because of this constraint, the implicit \"Debug\" window can not be docked into an explicit DockSpace() node, +// because that window is submitted as part of the part of the NewFrame() call. An easy workaround is that you can create +// your own implicit "Debug##2" window after calling DockSpace() and leave it in the window stack for anyone to use. +void ShowExampleAppDockSpace(bool* p_open) +{ + // If you strip some features of, this demo is pretty much equivalent to calling DockSpaceOverViewport()! + // In most cases you should be able to just call DockSpaceOverViewport() and ignore all the code below! + // In this specific demo, we are not using DockSpaceOverViewport() because: + // - we allow the host window to be floating/moveable instead of filling the viewport (when opt_fullscreen == false) + // - we allow the host window to have padding (when opt_padding == true) + // - we have a local menu bar in the host window (vs. you could use BeginMainMenuBar() + DockSpaceOverViewport() in your code!) + // TL;DR; this demo is more complicated than what you would normally use. + // If we removed all the options we are showcasing, this demo would become: + // void ShowExampleAppDockSpace() + // { + // ImGui::DockSpaceOverViewport(ImGui::GetMainViewport()); + // } + + static bool opt_fullscreen = true; + static bool opt_padding = false; + static ImGuiDockNodeFlags dockspace_flags = ImGuiDockNodeFlags_None; + + // We are using the ImGuiWindowFlags_NoDocking flag to make the parent window not dockable into, + // because it would be confusing to have two docking targets within each others. + ImGuiWindowFlags window_flags = ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoDocking; + if (opt_fullscreen) + { + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImGui::SetNextWindowPos(viewport->WorkPos); + ImGui::SetNextWindowSize(viewport->WorkSize); + ImGui::SetNextWindowViewport(viewport->ID); + ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f); + window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove; + window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus; + } + else + { + dockspace_flags &= ~ImGuiDockNodeFlags_PassthruCentralNode; + } + + // When using ImGuiDockNodeFlags_PassthruCentralNode, DockSpace() will render our background + // and handle the pass-thru hole, so we ask Begin() to not render a background. + if (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode) + window_flags |= ImGuiWindowFlags_NoBackground; + + // Important: note that we proceed even if Begin() returns false (aka window is collapsed). + // This is because we want to keep our DockSpace() active. If a DockSpace() is inactive, + // all active windows docked into it will lose their parent and become undocked. + // We cannot preserve the docking relationship between an active window and an inactive docking, otherwise + // any change of dockspace/settings would lead to windows being stuck in limbo and never being visible. + if (!opt_padding) + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + ImGui::Begin("DockSpace Demo", p_open, window_flags); + if (!opt_padding) + ImGui::PopStyleVar(); + + if (opt_fullscreen) + ImGui::PopStyleVar(2); + + // Submit the DockSpace + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_DockingEnable) + { + ImGuiID dockspace_id = ImGui::GetID("MyDockSpace"); + ImGui::DockSpace(dockspace_id, ImVec2(0.0f, 0.0f), dockspace_flags); + } + else + { + ShowDockingDisabledMessage(); + } + + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Options")) + { + // Disabling fullscreen would allow the window to be moved to the front of other windows, + // which we can't undo at the moment without finer window depth/z control. + ImGui::MenuItem("Fullscreen", NULL, &opt_fullscreen); + ImGui::MenuItem("Padding", NULL, &opt_padding); + ImGui::Separator(); + + if (ImGui::MenuItem("Flag: NoSplit", "", (dockspace_flags & ImGuiDockNodeFlags_NoSplit) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoSplit; } + if (ImGui::MenuItem("Flag: NoResize", "", (dockspace_flags & ImGuiDockNodeFlags_NoResize) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoResize; } + if (ImGui::MenuItem("Flag: NoDockingInCentralNode", "", (dockspace_flags & ImGuiDockNodeFlags_NoDockingInCentralNode) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoDockingInCentralNode; } + if (ImGui::MenuItem("Flag: AutoHideTabBar", "", (dockspace_flags & ImGuiDockNodeFlags_AutoHideTabBar) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_AutoHideTabBar; } + if (ImGui::MenuItem("Flag: PassthruCentralNode", "", (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0, opt_fullscreen)) { dockspace_flags ^= ImGuiDockNodeFlags_PassthruCentralNode; } + ImGui::Separator(); + + if (ImGui::MenuItem("Close", NULL, false, p_open != NULL)) + *p_open = false; + ImGui::EndMenu(); + } + HelpMarker( + "When docking is enabled, you can ALWAYS dock MOST window into another! Try it now!" "\n" + "- Drag from window title bar or their tab to dock/undock." "\n" + "- Drag from window menu button (upper-left button) to undock an entire node (all windows)." "\n" + "- Hold SHIFT to disable docking (if io.ConfigDockingWithShift == false, default)" "\n" + "- Hold SHIFT to enable docking (if io.ConfigDockingWithShift == true)" "\n" + "This demo app has nothing to do with enabling docking!" "\n\n" + "This demo app only demonstrate the use of ImGui::DockSpace() which allows you to manually create a docking node _within_ another window." "\n\n" + "Read comments in ShowExampleAppDockSpace() for more details."); + + ImGui::EndMenuBar(); + } + + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() +//----------------------------------------------------------------------------- + +// Simplified structure to mimic a Document model +struct MyDocument +{ + const char* Name; // Document title + bool Open; // Set when open (we keep an array of all available documents to simplify demo code!) + bool OpenPrev; // Copy of Open from last update. + bool Dirty; // Set when the document has been modified + bool WantClose; // Set when the document + ImVec4 Color; // An arbitrary variable associated to the document + + MyDocument(const char* name, bool open = true, const ImVec4& color = ImVec4(1.0f, 1.0f, 1.0f, 1.0f)) + { + Name = name; + Open = OpenPrev = open; + Dirty = false; + WantClose = false; + Color = color; + } + void DoOpen() { Open = true; } + void DoQueueClose() { WantClose = true; } + void DoForceClose() { Open = false; Dirty = false; } + void DoSave() { Dirty = false; } + + // Display placeholder contents for the Document + static void DisplayContents(MyDocument* doc) + { + ImGui::PushID(doc); + ImGui::Text("Document \"%s\"", doc->Name); + ImGui::PushStyleColor(ImGuiCol_Text, doc->Color); + ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); + ImGui::PopStyleColor(); + if (ImGui::Button("Modify", ImVec2(100, 0))) + doc->Dirty = true; + ImGui::SameLine(); + if (ImGui::Button("Save", ImVec2(100, 0))) + doc->DoSave(); + ImGui::ColorEdit3("color", &doc->Color.x); // Useful to test drag and drop and hold-dragged-to-open-tab behavior. + ImGui::PopID(); + } + + // Display context menu for the Document + static void DisplayContextMenu(MyDocument* doc) + { + if (!ImGui::BeginPopupContextItem()) + return; + + char buf[256]; + sprintf(buf, "Save %s", doc->Name); + if (ImGui::MenuItem(buf, "CTRL+S", false, doc->Open)) + doc->DoSave(); + if (ImGui::MenuItem("Close", "CTRL+W", false, doc->Open)) + doc->DoQueueClose(); + ImGui::EndPopup(); + } +}; + +struct ExampleAppDocuments +{ + ImVector Documents; + + ExampleAppDocuments() + { + Documents.push_back(MyDocument("Lettuce", true, ImVec4(0.4f, 0.8f, 0.4f, 1.0f))); + Documents.push_back(MyDocument("Eggplant", true, ImVec4(0.8f, 0.5f, 1.0f, 1.0f))); + Documents.push_back(MyDocument("Carrot", true, ImVec4(1.0f, 0.8f, 0.5f, 1.0f))); + Documents.push_back(MyDocument("Tomato", false, ImVec4(1.0f, 0.3f, 0.4f, 1.0f))); + Documents.push_back(MyDocument("A Rather Long Title", false)); + Documents.push_back(MyDocument("Some Document", false)); + } +}; + +// [Optional] Notify the system of Tabs/Windows closure that happened outside the regular tab interface. +// If a tab has been closed programmatically (aka closed from another source such as the Checkbox() in the demo, +// as opposed to clicking on the regular tab closing button) and stops being submitted, it will take a frame for +// the tab bar to notice its absence. During this frame there will be a gap in the tab bar, and if the tab that has +// disappeared was the selected one, the tab bar will report no selected tab during the frame. This will effectively +// give the impression of a flicker for one frame. +// We call SetTabItemClosed() to manually notify the Tab Bar or Docking system of removed tabs to avoid this glitch. +// Note that this completely optional, and only affect tab bars with the ImGuiTabBarFlags_Reorderable flag. +static void NotifyOfDocumentsClosedElsewhere(ExampleAppDocuments& app) +{ + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open && doc->OpenPrev) + ImGui::SetTabItemClosed(doc->Name); + doc->OpenPrev = doc->Open; + } +} + +void ShowExampleAppDocuments(bool* p_open) +{ + static ExampleAppDocuments app; + + // Options + enum Target + { + Target_None, + Target_Tab, // Create documents as local tab into a local tab bar + Target_DockSpaceAndWindow // Create documents as regular windows, and create an embedded dockspace + }; + static Target opt_target = Target_Tab; + static bool opt_reorderable = true; + static ImGuiTabBarFlags opt_fitting_flags = ImGuiTabBarFlags_FittingPolicyDefault_; + + // When (opt_target == Target_DockSpaceAndWindow) there is the possibily that one of our child Document window (e.g. "Eggplant") + // that we emit gets docked into the same spot as the parent window ("Example: Documents"). + // This would create a problematic feedback loop because selecting the "Eggplant" tab would make the "Example: Documents" tab + // not visible, which in turn would stop submitting the "Eggplant" window. + // We avoid this problem by submitting our documents window even if our parent window is not currently visible. + // Another solution may be to make the "Example: Documents" window use the ImGuiWindowFlags_NoDocking. + + bool window_contents_visible = ImGui::Begin("Example: Documents", p_open, ImGuiWindowFlags_MenuBar); + if (!window_contents_visible && opt_target != Target_DockSpaceAndWindow) + { + ImGui::End(); + return; + } + + // Menu + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + int open_count = 0; + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + open_count += app.Documents[doc_n].Open ? 1 : 0; + + if (ImGui::BeginMenu("Open", open_count < app.Documents.Size)) + { + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open) + if (ImGui::MenuItem(doc->Name)) + doc->DoOpen(); + } + ImGui::EndMenu(); + } + if (ImGui::MenuItem("Close All Documents", NULL, false, open_count > 0)) + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + app.Documents[doc_n].DoQueueClose(); + if (ImGui::MenuItem("Exit", "Ctrl+F4") && p_open) + *p_open = false; + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + // [Debug] List documents with one checkbox for each + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (doc_n > 0) + ImGui::SameLine(); + ImGui::PushID(doc); + if (ImGui::Checkbox(doc->Name, &doc->Open)) + if (!doc->Open) + doc->DoForceClose(); + ImGui::PopID(); + } + ImGui::PushItemWidth(ImGui::GetFontSize() * 12); + ImGui::Combo("Output", (int*)&opt_target, "None\0TabBar+Tabs\0DockSpace+Window\0"); + ImGui::PopItemWidth(); + bool redock_all = false; + if (opt_target == Target_Tab) { ImGui::SameLine(); ImGui::Checkbox("Reorderable Tabs", &opt_reorderable); } + if (opt_target == Target_DockSpaceAndWindow) { ImGui::SameLine(); redock_all = ImGui::Button("Redock all"); } + + ImGui::Separator(); + + // About the ImGuiWindowFlags_UnsavedDocument / ImGuiTabItemFlags_UnsavedDocument flags. + // They have multiple effects: + // - Display a dot next to the title. + // - Tab is selected when clicking the X close button. + // - Closure is not assumed (will wait for user to stop submitting the tab). + // Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + // We need to assume closure by default otherwise waiting for "lack of submission" on the next frame would leave an empty + // hole for one-frame, both in the tab-bar and in tab-contents when closing a tab/window. + // The rarely used SetTabItemClosed() function is a way to notify of programmatic closure to avoid the one-frame hole. + + // Tabs + if (opt_target == Target_Tab) + { + ImGuiTabBarFlags tab_bar_flags = (opt_fitting_flags) | (opt_reorderable ? ImGuiTabBarFlags_Reorderable : 0); + if (ImGui::BeginTabBar("##tabs", tab_bar_flags)) + { + if (opt_reorderable) + NotifyOfDocumentsClosedElsewhere(app); + + // [DEBUG] Stress tests + //if ((ImGui::GetFrameCount() % 30) == 0) docs[1].Open ^= 1; // [DEBUG] Automatically show/hide a tab. Test various interactions e.g. dragging with this on. + //if (ImGui::GetIO().KeyCtrl) ImGui::SetTabItemSelected(docs[1].Name); // [DEBUG] Test SetTabItemSelected(), probably not very useful as-is anyway.. + + // Submit Tabs + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open) + continue; + + ImGuiTabItemFlags tab_flags = (doc->Dirty ? ImGuiTabItemFlags_UnsavedDocument : 0); + bool visible = ImGui::BeginTabItem(doc->Name, &doc->Open, tab_flags); + + // Cancel attempt to close when unsaved add to save queue so we can display a popup. + if (!doc->Open && doc->Dirty) + { + doc->Open = true; + doc->DoQueueClose(); + } + + MyDocument::DisplayContextMenu(doc); + if (visible) + { + MyDocument::DisplayContents(doc); + ImGui::EndTabItem(); + } + } + + ImGui::EndTabBar(); + } + } + else if (opt_target == Target_DockSpaceAndWindow) + { + if (ImGui::GetIO().ConfigFlags & ImGuiConfigFlags_DockingEnable) + { + NotifyOfDocumentsClosedElsewhere(app); + + // Create a DockSpace node where any window can be docked + ImGuiID dockspace_id = ImGui::GetID("MyDockSpace"); + ImGui::DockSpace(dockspace_id); + + // Create Windows + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open) + continue; + + ImGui::SetNextWindowDockID(dockspace_id, redock_all ? ImGuiCond_Always : ImGuiCond_FirstUseEver); + ImGuiWindowFlags window_flags = (doc->Dirty ? ImGuiWindowFlags_UnsavedDocument : 0); + bool visible = ImGui::Begin(doc->Name, &doc->Open, window_flags); + + // Cancel attempt to close when unsaved add to save queue so we can display a popup. + if (!doc->Open && doc->Dirty) + { + doc->Open = true; + doc->DoQueueClose(); + } + + MyDocument::DisplayContextMenu(doc); + if (visible) + MyDocument::DisplayContents(doc); + + ImGui::End(); + } + } + else + { + ShowDockingDisabledMessage(); + } + } + + // Early out other contents + if (!window_contents_visible) + { + ImGui::End(); + return; + } + + // Update closing queue + static ImVector close_queue; + if (close_queue.empty()) + { + // Close queue is locked once we started a popup + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (doc->WantClose) + { + doc->WantClose = false; + close_queue.push_back(doc); + } + } + } + + // Display closing confirmation UI + if (!close_queue.empty()) + { + int close_queue_unsaved_documents = 0; + for (int n = 0; n < close_queue.Size; n++) + if (close_queue[n]->Dirty) + close_queue_unsaved_documents++; + + if (close_queue_unsaved_documents == 0) + { + // Close documents when all are unsaved + for (int n = 0; n < close_queue.Size; n++) + close_queue[n]->DoForceClose(); + close_queue.clear(); + } + else + { + if (!ImGui::IsPopupOpen("Save?")) + ImGui::OpenPopup("Save?"); + if (ImGui::BeginPopupModal("Save?", NULL, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::Text("Save change to the following items?"); + float item_height = ImGui::GetTextLineHeightWithSpacing(); + if (ImGui::BeginChildFrame(ImGui::GetID("frame"), ImVec2(-FLT_MIN, 6.25f * item_height))) + { + for (int n = 0; n < close_queue.Size; n++) + if (close_queue[n]->Dirty) + ImGui::Text("%s", close_queue[n]->Name); + ImGui::EndChildFrame(); + } + + ImVec2 button_size(ImGui::GetFontSize() * 7.0f, 0.0f); + if (ImGui::Button("Yes", button_size)) + { + for (int n = 0; n < close_queue.Size; n++) + { + if (close_queue[n]->Dirty) + close_queue[n]->DoSave(); + close_queue[n]->DoForceClose(); + } + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::SameLine(); + if (ImGui::Button("No", button_size)) + { + for (int n = 0; n < close_queue.Size; n++) + close_queue[n]->DoForceClose(); + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::SameLine(); + if (ImGui::Button("Cancel", button_size)) + { + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::EndPopup(); + } + } + } + + ImGui::End(); +} + +// End of Demo code +#else + +void ImGui::ShowAboutWindow(bool*) {} +void ImGui::ShowDemoWindow(bool*) {} +void ImGui::ShowUserGuide() {} +void ImGui::ShowStyleEditor(ImGuiStyle*) {} + +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_draw.cpp b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_draw.cpp new file mode 100644 index 000000000..3b9a640d8 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_draw.cpp @@ -0,0 +1,4195 @@ +// dear imgui, v1.89.1 +// (drawing and font code) + +/* + +Index of this file: + +// [SECTION] STB libraries implementation +// [SECTION] Style functions +// [SECTION] ImDrawList +// [SECTION] ImDrawListSplitter +// [SECTION] ImDrawData +// [SECTION] Helpers ShadeVertsXXX functions +// [SECTION] ImFontConfig +// [SECTION] ImFontAtlas +// [SECTION] ImFontAtlas glyph ranges helpers +// [SECTION] ImFontGlyphRangesBuilder +// [SECTION] ImFont +// [SECTION] ImGui Internal Render Helpers +// [SECTION] Decompression code +// [SECTION] Default font data (ProggyClean.ttf) + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui_internal.h" +#ifdef IMGUI_ENABLE_FREETYPE +#include "misc/freetype/imgui_freetype.h" +#endif + +#include // vsnprintf, sscanf, printf + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wcomma" // warning: possible misuse of comma operator here +#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wstack-protector" // warning: stack protector not protecting local variables: variable length buffer +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries implementation (for stb_truetype and stb_rect_pack) +//------------------------------------------------------------------------- + +// Compile time options: +//#define IMGUI_STB_NAMESPACE ImStb +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION + +#ifdef IMGUI_STB_NAMESPACE +namespace IMGUI_STB_NAMESPACE +{ +#endif + +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4456) // declaration of 'xx' hides previous local declaration +#pragma warning (disable: 6011) // (stb_rectpack) Dereferencing NULL pointer 'cur->next'. +#pragma warning (disable: 6385) // (stb_truetype) Reading invalid data from 'buffer': the readable size is '_Old_3`kernel_width' bytes, but '3' bytes may be read. +#pragma warning (disable: 28182) // (stb_rectpack) Dereferencing NULL pointer. 'cur' contains the same NULL value as 'cur->next' did. +#endif + +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-function" +#pragma clang diagnostic ignored "-Wmissing-prototypes" +#pragma clang diagnostic ignored "-Wimplicit-fallthrough" +#pragma clang diagnostic ignored "-Wcast-qual" // warning: cast from 'const xxxx *' to 'xxx *' drops const qualifier +#endif + +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wtype-limits" // warning: comparison is always true due to limited range of data type [-Wtype-limits] +#pragma GCC diagnostic ignored "-Wcast-qual" // warning: cast from type 'const xxxx *' to type 'xxxx *' casts away qualifiers +#endif + +#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in another compilation unit +#define STBRP_STATIC +#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) +#define STBRP_SORT ImQsort +#define STB_RECT_PACK_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_RECT_PACK_FILENAME +#include IMGUI_STB_RECT_PACK_FILENAME +#else +#include "imstb_rectpack.h" +#endif +#endif + +#ifdef IMGUI_ENABLE_STB_TRUETYPE +#ifndef STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in another compilation unit +#define STBTT_malloc(x,u) ((void)(u), IM_ALLOC(x)) +#define STBTT_free(x,u) ((void)(u), IM_FREE(x)) +#define STBTT_assert(x) do { IM_ASSERT(x); } while(0) +#define STBTT_fmod(x,y) ImFmod(x,y) +#define STBTT_sqrt(x) ImSqrt(x) +#define STBTT_pow(x,y) ImPow(x,y) +#define STBTT_fabs(x) ImFabs(x) +#define STBTT_ifloor(x) ((int)ImFloorSigned(x)) +#define STBTT_iceil(x) ((int)ImCeil(x)) +#define STBTT_STATIC +#define STB_TRUETYPE_IMPLEMENTATION +#else +#define STBTT_DEF extern +#endif +#ifdef IMGUI_STB_TRUETYPE_FILENAME +#include IMGUI_STB_TRUETYPE_FILENAME +#else +#include "imstb_truetype.h" +#endif +#endif +#endif // IMGUI_ENABLE_STB_TRUETYPE + +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#if defined(_MSC_VER) +#pragma warning (pop) +#endif + +#ifdef IMGUI_STB_NAMESPACE +} // namespace ImStb +using namespace IMGUI_STB_NAMESPACE; +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Style functions +//----------------------------------------------------------------------------- + +void ImGui::StyleColorsDark(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.06f, 0.06f, 0.94f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f); + colors[ImGuiCol_Border] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.29f, 0.48f, 0.54f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.04f, 0.04f, 0.04f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.16f, 0.29f, 0.48f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.00f, 0.00f, 0.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.51f, 0.51f, 0.51f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.24f, 0.52f, 0.88f, 1.00f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = colors[ImGuiCol_Border]; + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.10f, 0.40f, 0.75f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.10f, 0.40f, 0.75f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.20f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_DockingPreview] = colors[ImGuiCol_HeaderActive] * ImVec4(1.0f, 1.0f, 1.0f, 0.7f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.19f, 0.19f, 0.20f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.35f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.23f, 0.23f, 0.25f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.06f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f); +} + +void ImGui::StyleColorsClassic(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.85f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.11f, 0.11f, 0.14f, 0.92f); + colors[ImGuiCol_Border] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.43f, 0.43f, 0.43f, 0.39f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.47f, 0.47f, 0.69f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.42f, 0.41f, 0.64f, 0.69f); + colors[ImGuiCol_TitleBg] = ImVec4(0.27f, 0.27f, 0.54f, 0.83f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.32f, 0.32f, 0.63f, 0.87f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.40f, 0.40f, 0.80f, 0.20f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.40f, 0.40f, 0.55f, 0.80f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.25f, 0.30f, 0.60f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.40f, 0.40f, 0.80f, 0.30f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.40f, 0.40f, 0.80f, 0.40f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_CheckMark] = ImVec4(0.90f, 0.90f, 0.90f, 0.50f); + colors[ImGuiCol_SliderGrab] = ImVec4(1.00f, 1.00f, 1.00f, 0.30f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.35f, 0.40f, 0.61f, 0.62f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.40f, 0.48f, 0.71f, 0.79f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.46f, 0.54f, 0.80f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.40f, 0.40f, 0.90f, 0.45f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.45f, 0.45f, 0.90f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.53f, 0.53f, 0.87f, 0.80f); + colors[ImGuiCol_Separator] = ImVec4(0.50f, 0.50f, 0.50f, 0.60f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.60f, 0.60f, 0.70f, 1.00f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.70f, 0.70f, 0.90f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(1.00f, 1.00f, 1.00f, 0.10f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.78f, 0.82f, 1.00f, 0.60f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.78f, 0.82f, 1.00f, 0.90f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_DockingPreview] = colors[ImGuiCol_Header] * ImVec4(1.0f, 1.0f, 1.0f, 0.7f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.27f, 0.27f, 0.38f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.45f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.26f, 0.26f, 0.28f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.07f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.00f, 0.00f, 1.00f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +// Those light colors are better suited with a thicker font than the default one + FrameBorder +void ImGui::StyleColorsLight(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.94f, 0.94f, 0.94f, 1.00f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(1.00f, 1.00f, 1.00f, 0.98f); + colors[ImGuiCol_Border] = ImVec4(0.00f, 0.00f, 0.00f, 0.30f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.96f, 0.96f, 0.96f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.82f, 0.82f, 0.82f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 1.00f, 1.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.86f, 0.86f, 0.86f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.98f, 0.98f, 0.98f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.69f, 0.69f, 0.69f, 0.80f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.49f, 0.49f, 0.49f, 0.80f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.49f, 0.49f, 0.49f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.26f, 0.59f, 0.98f, 0.78f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.46f, 0.54f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = ImVec4(0.39f, 0.39f, 0.39f, 0.62f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.14f, 0.44f, 0.80f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.14f, 0.44f, 0.80f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.35f, 0.35f, 0.35f, 0.17f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.90f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_DockingPreview] = colors[ImGuiCol_Header] * ImVec4(1.0f, 1.0f, 1.0f, 0.7f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.45f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.78f, 0.87f, 0.98f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.57f, 0.57f, 0.64f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.68f, 0.68f, 0.74f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(0.30f, 0.30f, 0.30f, 0.09f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(0.70f, 0.70f, 0.70f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList +//----------------------------------------------------------------------------- + +ImDrawListSharedData::ImDrawListSharedData() +{ + memset(this, 0, sizeof(*this)); + for (int i = 0; i < IM_ARRAYSIZE(ArcFastVtx); i++) + { + const float a = ((float)i * 2 * IM_PI) / (float)IM_ARRAYSIZE(ArcFastVtx); + ArcFastVtx[i] = ImVec2(ImCos(a), ImSin(a)); + } + ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); +} + +void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error) +{ + if (CircleSegmentMaxError == max_error) + return; + + IM_ASSERT(max_error > 0.0f); + CircleSegmentMaxError = max_error; + for (int i = 0; i < IM_ARRAYSIZE(CircleSegmentCounts); i++) + { + const float radius = (float)i; + CircleSegmentCounts[i] = (ImU8)((i > 0) ? IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError) : IM_DRAWLIST_ARCFAST_SAMPLE_MAX); + } + ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); +} + +// Initialize before use in a new frame. We always have a command ready in the buffer. +void ImDrawList::_ResetForNewFrame() +{ + // Verify that the ImDrawCmd fields we want to memcmp() are contiguous in memory. + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); + if (_Splitter._Count > 1) + _Splitter.Merge(this); + + CmdBuffer.resize(0); + IdxBuffer.resize(0); + VtxBuffer.resize(0); + Flags = _Data->InitialFlags; + memset(&_CmdHeader, 0, sizeof(_CmdHeader)); + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.resize(0); + _TextureIdStack.resize(0); + _Path.resize(0); + _Splitter.Clear(); + CmdBuffer.push_back(ImDrawCmd()); + _FringeScale = 1.0f; +} + +void ImDrawList::_ClearFreeMemory() +{ + CmdBuffer.clear(); + IdxBuffer.clear(); + VtxBuffer.clear(); + Flags = ImDrawListFlags_None; + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.clear(); + _TextureIdStack.clear(); + _Path.clear(); + _Splitter.ClearFreeMemory(); +} + +ImDrawList* ImDrawList::CloneOutput() const +{ + ImDrawList* dst = IM_NEW(ImDrawList(_Data)); + dst->CmdBuffer = CmdBuffer; + dst->IdxBuffer = IdxBuffer; + dst->VtxBuffer = VtxBuffer; + dst->Flags = Flags; + return dst; +} + +void ImDrawList::AddDrawCmd() +{ + ImDrawCmd draw_cmd; + draw_cmd.ClipRect = _CmdHeader.ClipRect; // Same as calling ImDrawCmd_HeaderCopy() + draw_cmd.TextureId = _CmdHeader.TextureId; + draw_cmd.VtxOffset = _CmdHeader.VtxOffset; + draw_cmd.IdxOffset = IdxBuffer.Size; + + IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w); + CmdBuffer.push_back(draw_cmd); +} + +// Pop trailing draw command (used before merging or presenting to user) +// Note that this leaves the ImDrawList in a state unfit for further commands, as most code assume that CmdBuffer.Size > 0 && CmdBuffer.back().UserCallback == NULL +void ImDrawList::_PopUnusedDrawCmd() +{ + if (CmdBuffer.Size == 0) + return; + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount == 0 && curr_cmd->UserCallback == NULL) + CmdBuffer.pop_back(); +} + +void ImDrawList::AddCallback(ImDrawCallback callback, void* callback_data) +{ + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + IM_ASSERT(curr_cmd->UserCallback == NULL); + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + } + curr_cmd->UserCallback = callback; + curr_cmd->UserCallbackData = callback_data; + + AddDrawCmd(); // Force a new command after us (see comment below) +} + +// Compare ClipRect, TextureId and VtxOffset with a single memcmp() +#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) +#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset +#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset +#define ImDrawCmd_AreSequentialIdxOffset(CMD_0, CMD_1) (CMD_0->IdxOffset + CMD_0->ElemCount == CMD_1->IdxOffset) + +// Try to merge two last draw commands +void ImDrawList::_TryMergeDrawCmds() +{ + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (ImDrawCmd_HeaderCompare(curr_cmd, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && curr_cmd->UserCallback == NULL && prev_cmd->UserCallback == NULL) + { + prev_cmd->ElemCount += curr_cmd->ElemCount; + CmdBuffer.pop_back(); + } +} + +// Our scheme may appears a bit unusual, basically we want the most-common calls AddLine AddRect etc. to not have to perform any check so we always have a command ready in the stack. +// The cost of figuring out if a new command has to be added or if we can merge is paid in those Update** functions only. +void ImDrawList::_OnChangedClipRect() +{ + // If current command is used with different settings we need to add a new command + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && memcmp(&curr_cmd->ClipRect, &_CmdHeader.ClipRect, sizeof(ImVec4)) != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->ClipRect = _CmdHeader.ClipRect; +} + +void ImDrawList::_OnChangedTextureID() +{ + // If current command is used with different settings we need to add a new command + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && curr_cmd->TextureId != _CmdHeader.TextureId) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->TextureId = _CmdHeader.TextureId; +} + +void ImDrawList::_OnChangedVtxOffset() +{ + // We don't need to compare curr_cmd->VtxOffset != _CmdHeader.VtxOffset because we know it'll be different at the time we call this. + _VtxCurrentIdx = 0; + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + //IM_ASSERT(curr_cmd->VtxOffset != _CmdHeader.VtxOffset); // See #3349 + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + curr_cmd->VtxOffset = _CmdHeader.VtxOffset; +} + +int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const +{ + // Automatic segment count + const int radius_idx = (int)(radius + 0.999999f); // ceil to never reduce accuracy + if (radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts)) + return _Data->CircleSegmentCounts[radius_idx]; // Use cached value + else + return IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError); +} + +// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) +void ImDrawList::PushClipRect(const ImVec2& cr_min, const ImVec2& cr_max, bool intersect_with_current_clip_rect) +{ + ImVec4 cr(cr_min.x, cr_min.y, cr_max.x, cr_max.y); + if (intersect_with_current_clip_rect) + { + ImVec4 current = _CmdHeader.ClipRect; + if (cr.x < current.x) cr.x = current.x; + if (cr.y < current.y) cr.y = current.y; + if (cr.z > current.z) cr.z = current.z; + if (cr.w > current.w) cr.w = current.w; + } + cr.z = ImMax(cr.x, cr.z); + cr.w = ImMax(cr.y, cr.w); + + _ClipRectStack.push_back(cr); + _CmdHeader.ClipRect = cr; + _OnChangedClipRect(); +} + +void ImDrawList::PushClipRectFullScreen() +{ + PushClipRect(ImVec2(_Data->ClipRectFullscreen.x, _Data->ClipRectFullscreen.y), ImVec2(_Data->ClipRectFullscreen.z, _Data->ClipRectFullscreen.w)); +} + +void ImDrawList::PopClipRect() +{ + _ClipRectStack.pop_back(); + _CmdHeader.ClipRect = (_ClipRectStack.Size == 0) ? _Data->ClipRectFullscreen : _ClipRectStack.Data[_ClipRectStack.Size - 1]; + _OnChangedClipRect(); +} + +void ImDrawList::PushTextureID(ImTextureID texture_id) +{ + _TextureIdStack.push_back(texture_id); + _CmdHeader.TextureId = texture_id; + _OnChangedTextureID(); +} + +void ImDrawList::PopTextureID() +{ + _TextureIdStack.pop_back(); + _CmdHeader.TextureId = (_TextureIdStack.Size == 0) ? (ImTextureID)NULL : _TextureIdStack.Data[_TextureIdStack.Size - 1]; + _OnChangedTextureID(); +} + +// Reserve space for a number of vertices and indices. +// You must finish filling your reserved data before calling PrimReserve() again, as it may reallocate or +// submit the intermediate results. PrimUnreserve() can be used to release unused allocations. +void ImDrawList::PrimReserve(int idx_count, int vtx_count) +{ + // Large mesh support (when enabled) + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + if (sizeof(ImDrawIdx) == 2 && (_VtxCurrentIdx + vtx_count >= (1 << 16)) && (Flags & ImDrawListFlags_AllowVtxOffset)) + { + // FIXME: In theory we should be testing that vtx_count <64k here. + // In practice, RenderText() relies on reserving ahead for a worst case scenario so it is currently useful for us + // to not make that check until we rework the text functions to handle clipping and large horizontal lines better. + _CmdHeader.VtxOffset = VtxBuffer.Size; + _OnChangedVtxOffset(); + } + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount += idx_count; + + int vtx_buffer_old_size = VtxBuffer.Size; + VtxBuffer.resize(vtx_buffer_old_size + vtx_count); + _VtxWritePtr = VtxBuffer.Data + vtx_buffer_old_size; + + int idx_buffer_old_size = IdxBuffer.Size; + IdxBuffer.resize(idx_buffer_old_size + idx_count); + _IdxWritePtr = IdxBuffer.Data + idx_buffer_old_size; +} + +// Release the a number of reserved vertices/indices from the end of the last reservation made with PrimReserve(). +void ImDrawList::PrimUnreserve(int idx_count, int vtx_count) +{ + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount -= idx_count; + VtxBuffer.shrink(VtxBuffer.Size - vtx_count); + IdxBuffer.shrink(IdxBuffer.Size - idx_count); +} + +// Fully unrolled with inline call to keep our debug builds decently fast. +void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv(_Data->TexUvWhitePixel); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimRectUV(const ImVec2& a, const ImVec2& c, const ImVec2& uv_a, const ImVec2& uv_c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv_b(uv_c.x, uv_a.y), uv_d(uv_a.x, uv_c.y); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col) +{ + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +// On AddPolyline() and AddConvexPolyFilled() we intentionally avoid using ImVec2 and superfluous function calls to optimize debug/non-inlined builds. +// - Those macros expects l-values and need to be used as their own statement. +// - Those macros are intentionally not surrounded by the 'do {} while (0)' idiom because even that translates to runtime with debug compilers. +#define IM_NORMALIZE2F_OVER_ZERO(VX,VY) { float d2 = VX*VX + VY*VY; if (d2 > 0.0f) { float inv_len = ImRsqrt(d2); VX *= inv_len; VY *= inv_len; } } (void)0 +#define IM_FIXNORMAL2F_MAX_INVLEN2 100.0f // 500.0f (see #4053, #3366) +#define IM_FIXNORMAL2F(VX,VY) { float d2 = VX*VX + VY*VY; if (d2 > 0.000001f) { float inv_len2 = 1.0f / d2; if (inv_len2 > IM_FIXNORMAL2F_MAX_INVLEN2) inv_len2 = IM_FIXNORMAL2F_MAX_INVLEN2; VX *= inv_len2; VY *= inv_len2; } } (void)0 + +// TODO: Thickness anti-aliased lines cap are missing their AA fringe. +// We avoid using the ImVec2 math operators here to reduce cost to a minimum for debug/non-inlined builds. +void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, ImDrawFlags flags, float thickness) +{ + if (points_count < 2) + return; + + const bool closed = (flags & ImDrawFlags_Closed) != 0; + const ImVec2 opaque_uv = _Data->TexUvWhitePixel; + const int count = closed ? points_count : points_count - 1; // The number of line segments we need to draw + const bool thick_line = (thickness > _FringeScale); + + if (Flags & ImDrawListFlags_AntiAliasedLines) + { + // Anti-aliased stroke + const float AA_SIZE = _FringeScale; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + + // Thicknesses <1.0 should behave like thickness 1.0 + thickness = ImMax(thickness, 1.0f); + const int integer_thickness = (int)thickness; + const float fractional_thickness = thickness - integer_thickness; + + // Do we want to draw this line using a texture? + // - For now, only draw integer-width lines using textures to avoid issues with the way scaling occurs, could be improved. + // - If AA_SIZE is not 1.0f we cannot use the texture path. + const bool use_texture = (Flags & ImDrawListFlags_AntiAliasedLinesUseTex) && (integer_thickness < IM_DRAWLIST_TEX_LINES_WIDTH_MAX) && (fractional_thickness <= 0.00001f) && (AA_SIZE == 1.0f); + + // We should never hit this, because NewFrame() doesn't set ImDrawListFlags_AntiAliasedLinesUseTex unless ImFontAtlasFlags_NoBakedLines is off + IM_ASSERT_PARANOID(!use_texture || !(_Data->Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)); + + const int idx_count = use_texture ? (count * 6) : (thick_line ? count * 18 : count * 12); + const int vtx_count = use_texture ? (points_count * 2) : (thick_line ? points_count * 4 : points_count * 3); + PrimReserve(idx_count, vtx_count); + + // Temporary buffer + // The first items are normals at each line point, then after that there are either 2 or 4 temp points for each line point + _Data->TempBuffer.reserve_discard(points_count * ((use_texture || !thick_line) ? 3 : 5)); + ImVec2* temp_normals = _Data->TempBuffer.Data; + ImVec2* temp_points = temp_normals + points_count; + + // Calculate normals (tangents) for each line segment + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + float dx = points[i2].x - points[i1].x; + float dy = points[i2].y - points[i1].y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i1].x = dy; + temp_normals[i1].y = -dx; + } + if (!closed) + temp_normals[points_count - 1] = temp_normals[points_count - 2]; + + // If we are drawing a one-pixel-wide line without a texture, or a textured line of any width, we only need 2 or 3 vertices per point + if (use_texture || !thick_line) + { + // [PATH 1] Texture-based lines (thick or non-thick) + // [PATH 2] Non texture-based lines (non-thick) + + // The width of the geometry we need to draw - this is essentially pixels for the line itself, plus "one pixel" for AA. + // - In the texture-based path, we don't use AA_SIZE here because the +1 is tied to the generated texture + // (see ImFontAtlasBuildRenderLinesTexData() function), and so alternate values won't work without changes to that code. + // - In the non texture-based paths, we would allow AA_SIZE to potentially be != 1.0f with a patch (e.g. fringe_scale patch to + // allow scaling geometry while preserving one-screen-pixel AA fringe). + const float half_draw_size = use_texture ? ((thickness * 0.5f) + 1) : AA_SIZE; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + temp_points[0] = points[0] + temp_normals[0] * half_draw_size; + temp_points[1] = points[0] - temp_normals[0] * half_draw_size; + temp_points[(points_count-1)*2+0] = points[points_count-1] + temp_normals[points_count-1] * half_draw_size; + temp_points[(points_count-1)*2+1] = points[points_count-1] - temp_normals[points_count-1] * half_draw_size; + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; // i2 is the second point of the line segment + const unsigned int idx2 = ((i1 + 1) == points_count) ? _VtxCurrentIdx : (idx1 + (use_texture ? 2 : 3)); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= half_draw_size; // dm_x, dm_y are offset to the outer edge of the AA area + dm_y *= half_draw_size; + + // Add temporary vertexes for the outer edges + ImVec2* out_vtx = &temp_points[i2 * 2]; + out_vtx[0].x = points[i2].x + dm_x; + out_vtx[0].y = points[i2].y + dm_y; + out_vtx[1].x = points[i2].x - dm_x; + out_vtx[1].y = points[i2].y - dm_y; + + if (use_texture) + { + // Add indices for two triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 1); // Right tri + _IdxWritePtr[3] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[4] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Left tri + _IdxWritePtr += 6; + } + else + { + // Add indexes for four triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); // Right tri 1 + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Right tri 2 + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); // Left tri 1 + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); // Left tri 2 + _IdxWritePtr += 12; + } + + idx1 = idx2; + } + + // Add vertexes for each point on the line + if (use_texture) + { + // If we're using textures we only need to emit the left/right edge vertices + ImVec4 tex_uvs = _Data->TexUvLines[integer_thickness]; + /*if (fractional_thickness != 0.0f) // Currently always zero when use_texture==false! + { + const ImVec4 tex_uvs_1 = _Data->TexUvLines[integer_thickness + 1]; + tex_uvs.x = tex_uvs.x + (tex_uvs_1.x - tex_uvs.x) * fractional_thickness; // inlined ImLerp() + tex_uvs.y = tex_uvs.y + (tex_uvs_1.y - tex_uvs.y) * fractional_thickness; + tex_uvs.z = tex_uvs.z + (tex_uvs_1.z - tex_uvs.z) * fractional_thickness; + tex_uvs.w = tex_uvs.w + (tex_uvs_1.w - tex_uvs.w) * fractional_thickness; + }*/ + ImVec2 tex_uv0(tex_uvs.x, tex_uvs.y); + ImVec2 tex_uv1(tex_uvs.z, tex_uvs.w); + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 2 + 0]; _VtxWritePtr[0].uv = tex_uv0; _VtxWritePtr[0].col = col; // Left-side outer edge + _VtxWritePtr[1].pos = temp_points[i * 2 + 1]; _VtxWritePtr[1].uv = tex_uv1; _VtxWritePtr[1].col = col; // Right-side outer edge + _VtxWritePtr += 2; + } + } + else + { + // If we're not using a texture, we need the center vertex as well + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; // Center of line + _VtxWritePtr[1].pos = temp_points[i * 2 + 0]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col_trans; // Left-side outer edge + _VtxWritePtr[2].pos = temp_points[i * 2 + 1]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col_trans; // Right-side outer edge + _VtxWritePtr += 3; + } + } + } + else + { + // [PATH 2] Non texture-based lines (thick): we need to draw the solid line core and thus require four vertices per point + const float half_inner_thickness = (thickness - AA_SIZE) * 0.5f; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + const int points_last = points_count - 1; + temp_points[0] = points[0] + temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[1] = points[0] + temp_normals[0] * (half_inner_thickness); + temp_points[2] = points[0] - temp_normals[0] * (half_inner_thickness); + temp_points[3] = points[0] - temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 0] = points[points_last] + temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 1] = points[points_last] + temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 2] = points[points_last] - temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 3] = points[points_last] - temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : (i1 + 1); // i2 is the second point of the line segment + const unsigned int idx2 = (i1 + 1) == points_count ? _VtxCurrentIdx : (idx1 + 4); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + float dm_out_x = dm_x * (half_inner_thickness + AA_SIZE); + float dm_out_y = dm_y * (half_inner_thickness + AA_SIZE); + float dm_in_x = dm_x * half_inner_thickness; + float dm_in_y = dm_y * half_inner_thickness; + + // Add temporary vertices + ImVec2* out_vtx = &temp_points[i2 * 4]; + out_vtx[0].x = points[i2].x + dm_out_x; + out_vtx[0].y = points[i2].y + dm_out_y; + out_vtx[1].x = points[i2].x + dm_in_x; + out_vtx[1].y = points[i2].y + dm_in_y; + out_vtx[2].x = points[i2].x - dm_in_x; + out_vtx[2].y = points[i2].y - dm_in_y; + out_vtx[3].x = points[i2].x - dm_out_x; + out_vtx[3].y = points[i2].y - dm_out_y; + + // Add indexes + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[12] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[13] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[14] = (ImDrawIdx)(idx1 + 3); + _IdxWritePtr[15] = (ImDrawIdx)(idx1 + 3); _IdxWritePtr[16] = (ImDrawIdx)(idx2 + 3); _IdxWritePtr[17] = (ImDrawIdx)(idx2 + 2); + _IdxWritePtr += 18; + + idx1 = idx2; + } + + // Add vertices + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 4 + 0]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col_trans; + _VtxWritePtr[1].pos = temp_points[i * 4 + 1]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = temp_points[i * 4 + 2]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = temp_points[i * 4 + 3]; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col_trans; + _VtxWritePtr += 4; + } + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // [PATH 4] Non texture-based, Non anti-aliased lines + const int idx_count = count * 6; + const int vtx_count = count * 4; // FIXME-OPT: Not sharing edges + PrimReserve(idx_count, vtx_count); + + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + const ImVec2& p1 = points[i1]; + const ImVec2& p2 = points[i2]; + + float dx = p2.x - p1.x; + float dy = p2.y - p1.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + dx *= (thickness * 0.5f); + dy *= (thickness * 0.5f); + + _VtxWritePtr[0].pos.x = p1.x + dy; _VtxWritePtr[0].pos.y = p1.y - dx; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos.x = p2.x + dy; _VtxWritePtr[1].pos.y = p2.y - dx; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos.x = p2.x - dy; _VtxWritePtr[2].pos.y = p2.y + dx; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos.x = p1.x - dy; _VtxWritePtr[3].pos.y = p1.y + dx; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + 2); + _IdxWritePtr[3] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[4] = (ImDrawIdx)(_VtxCurrentIdx + 2); _IdxWritePtr[5] = (ImDrawIdx)(_VtxCurrentIdx + 3); + _IdxWritePtr += 6; + _VtxCurrentIdx += 4; + } + } +} + +// - We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. +// - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. +void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) +{ + if (points_count < 3) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + + if (Flags & ImDrawListFlags_AntiAliasedFill) + { + // Anti-aliased Fill + const float AA_SIZE = _FringeScale; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + const int idx_count = (points_count - 2)*3 + points_count * 6; + const int vtx_count = (points_count * 2); + PrimReserve(idx_count, vtx_count); + + // Add indexes for fill + unsigned int vtx_inner_idx = _VtxCurrentIdx; + unsigned int vtx_outer_idx = _VtxCurrentIdx + 1; + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + ((i - 1) << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_inner_idx + (i << 1)); + _IdxWritePtr += 3; + } + + // Compute normals + _Data->TempBuffer.reserve_discard(points_count); + ImVec2* temp_normals = _Data->TempBuffer.Data; + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + const ImVec2& p0 = points[i0]; + const ImVec2& p1 = points[i1]; + float dx = p1.x - p0.x; + float dy = p1.y - p0.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i0].x = dy; + temp_normals[i0].y = -dx; + } + + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + // Average normals + const ImVec2& n0 = temp_normals[i0]; + const ImVec2& n1 = temp_normals[i1]; + float dm_x = (n0.x + n1.x) * 0.5f; + float dm_y = (n0.y + n1.y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= AA_SIZE * 0.5f; + dm_y *= AA_SIZE * 0.5f; + + // Add vertices + _VtxWritePtr[0].pos.x = (points[i1].x - dm_x); _VtxWritePtr[0].pos.y = (points[i1].y - dm_y); _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; // Inner + _VtxWritePtr[1].pos.x = (points[i1].x + dm_x); _VtxWritePtr[1].pos.y = (points[i1].y + dm_y); _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col_trans; // Outer + _VtxWritePtr += 2; + + // Add indexes for fringes + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + (i0 << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); + _IdxWritePtr[3] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); _IdxWritePtr[4] = (ImDrawIdx)(vtx_outer_idx + (i1 << 1)); _IdxWritePtr[5] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); + _IdxWritePtr += 6; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // Non Anti-aliased Fill + const int idx_count = (points_count - 2)*3; + const int vtx_count = points_count; + PrimReserve(idx_count, vtx_count); + for (int i = 0; i < vtx_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr++; + } + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + i - 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + i); + _IdxWritePtr += 3; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } +} + +void ImDrawList::_PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + // Calculate arc auto segment step size + if (a_step <= 0) + a_step = IM_DRAWLIST_ARCFAST_SAMPLE_MAX / _CalcCircleAutoSegmentCount(radius); + + // Make sure we never do steps larger than one quarter of the circle + a_step = ImClamp(a_step, 1, IM_DRAWLIST_ARCFAST_TABLE_SIZE / 4); + + const int sample_range = ImAbs(a_max_sample - a_min_sample); + const int a_next_step = a_step; + + int samples = sample_range + 1; + bool extra_max_sample = false; + if (a_step > 1) + { + samples = sample_range / a_step + 1; + const int overstep = sample_range % a_step; + + if (overstep > 0) + { + extra_max_sample = true; + samples++; + + // When we have overstep to avoid awkwardly looking one long line and one tiny one at the end, + // distribute first step range evenly between them by reducing first step size. + if (sample_range > 0) + a_step -= (a_step - overstep) / 2; + } + } + + _Path.resize(_Path.Size + samples); + ImVec2* out_ptr = _Path.Data + (_Path.Size - samples); + + int sample_index = a_min_sample; + if (sample_index < 0 || sample_index >= IM_DRAWLIST_ARCFAST_SAMPLE_MAX) + { + sample_index = sample_index % IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + if (sample_index < 0) + sample_index += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + } + + if (a_max_sample >= a_min_sample) + { + for (int a = a_min_sample; a <= a_max_sample; a += a_step, sample_index += a_step, a_step = a_next_step) + { + // a_step is clamped to IM_DRAWLIST_ARCFAST_SAMPLE_MAX, so we have guaranteed that it will not wrap over range twice or more + if (sample_index >= IM_DRAWLIST_ARCFAST_SAMPLE_MAX) + sample_index -= IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[sample_index]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + } + else + { + for (int a = a_min_sample; a >= a_max_sample; a -= a_step, sample_index -= a_step, a_step = a_next_step) + { + // a_step is clamped to IM_DRAWLIST_ARCFAST_SAMPLE_MAX, so we have guaranteed that it will not wrap over range twice or more + if (sample_index < 0) + sample_index += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[sample_index]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + } + + if (extra_max_sample) + { + int normalized_max_sample = a_max_sample % IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + if (normalized_max_sample < 0) + normalized_max_sample += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[normalized_max_sample]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + + IM_ASSERT_PARANOID(_Path.Data + _Path.Size == out_ptr); +} + +void ImDrawList::_PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + // Note that we are adding a point at both a_min and a_max. + // If you are trying to draw a full closed circle you don't want the overlapping points! + _Path.reserve(_Path.Size + (num_segments + 1)); + for (int i = 0; i <= num_segments; i++) + { + const float a = a_min + ((float)i / (float)num_segments) * (a_max - a_min); + _Path.push_back(ImVec2(center.x + ImCos(a) * radius, center.y + ImSin(a) * radius)); + } +} + +// 0: East, 3: South, 6: West, 9: North, 12: East +void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + _PathArcToFastEx(center, radius, a_min_of_12 * IM_DRAWLIST_ARCFAST_SAMPLE_MAX / 12, a_max_of_12 * IM_DRAWLIST_ARCFAST_SAMPLE_MAX / 12, 0); +} + +void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + if (num_segments > 0) + { + _PathArcToN(center, radius, a_min, a_max, num_segments); + return; + } + + // Automatic segment count + if (radius <= _Data->ArcFastRadiusCutoff) + { + const bool a_is_reverse = a_max < a_min; + + // We are going to use precomputed values for mid samples. + // Determine first and last sample in lookup table that belong to the arc. + const float a_min_sample_f = IM_DRAWLIST_ARCFAST_SAMPLE_MAX * a_min / (IM_PI * 2.0f); + const float a_max_sample_f = IM_DRAWLIST_ARCFAST_SAMPLE_MAX * a_max / (IM_PI * 2.0f); + + const int a_min_sample = a_is_reverse ? (int)ImFloorSigned(a_min_sample_f) : (int)ImCeil(a_min_sample_f); + const int a_max_sample = a_is_reverse ? (int)ImCeil(a_max_sample_f) : (int)ImFloorSigned(a_max_sample_f); + const int a_mid_samples = a_is_reverse ? ImMax(a_min_sample - a_max_sample, 0) : ImMax(a_max_sample - a_min_sample, 0); + + const float a_min_segment_angle = a_min_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + const float a_max_segment_angle = a_max_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + const bool a_emit_start = ImAbs(a_min_segment_angle - a_min) >= 1e-5f; + const bool a_emit_end = ImAbs(a_max - a_max_segment_angle) >= 1e-5f; + + _Path.reserve(_Path.Size + (a_mid_samples + 1 + (a_emit_start ? 1 : 0) + (a_emit_end ? 1 : 0))); + if (a_emit_start) + _Path.push_back(ImVec2(center.x + ImCos(a_min) * radius, center.y + ImSin(a_min) * radius)); + if (a_mid_samples > 0) + _PathArcToFastEx(center, radius, a_min_sample, a_max_sample, 0); + if (a_emit_end) + _Path.push_back(ImVec2(center.x + ImCos(a_max) * radius, center.y + ImSin(a_max) * radius)); + } + else + { + const float arc_length = ImAbs(a_max - a_min); + const int circle_segment_count = _CalcCircleAutoSegmentCount(radius); + const int arc_segment_count = ImMax((int)ImCeil(circle_segment_count * arc_length / (IM_PI * 2.0f)), (int)(2.0f * IM_PI / arc_length)); + _PathArcToN(center, radius, a_min, a_max, arc_segment_count); + } +} + +ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t) +{ + float u = 1.0f - t; + float w1 = u * u * u; + float w2 = 3 * u * u * t; + float w3 = 3 * u * t * t; + float w4 = t * t * t; + return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x + w4 * p4.x, w1 * p1.y + w2 * p2.y + w3 * p3.y + w4 * p4.y); +} + +ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t) +{ + float u = 1.0f - t; + float w1 = u * u; + float w2 = 2 * u * t; + float w3 = t * t; + return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x, w1 * p1.y + w2 * p2.y + w3 * p3.y); +} + +// Closely mimics ImBezierCubicClosestPointCasteljau() in imgui.cpp +static void PathBezierCubicCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = (x2 - x4) * dy - (y2 - y4) * dx; + float d3 = (x3 - x4) * dy - (y3 - y4) * dx; + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + path->push_back(ImVec2(x4, y4)); + } + else if (level < 10) + { + float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; + float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; + float x34 = (x3 + x4) * 0.5f, y34 = (y3 + y4) * 0.5f; + float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; + float x234 = (x23 + x34) * 0.5f, y234 = (y23 + y34) * 0.5f; + float x1234 = (x123 + x234) * 0.5f, y1234 = (y123 + y234) * 0.5f; + PathBezierCubicCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + PathBezierCubicCurveToCasteljau(path, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +static void PathBezierQuadraticCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float tess_tol, int level) +{ + float dx = x3 - x1, dy = y3 - y1; + float det = (x2 - x3) * dy - (y2 - y3) * dx; + if (det * det * 4.0f < tess_tol * (dx * dx + dy * dy)) + { + path->push_back(ImVec2(x3, y3)); + } + else if (level < 10) + { + float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; + float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; + float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; + PathBezierQuadraticCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, tess_tol, level + 1); + PathBezierQuadraticCurveToCasteljau(path, x123, y123, x23, y23, x3, y3, tess_tol, level + 1); + } +} + +void ImDrawList::PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments) +{ + ImVec2 p1 = _Path.back(); + if (num_segments == 0) + { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); + PathBezierCubicCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, _Data->CurveTessellationTol, 0); // Auto-tessellated + } + else + { + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + _Path.push_back(ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step)); + } +} + +void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments) +{ + ImVec2 p1 = _Path.back(); + if (num_segments == 0) + { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); + PathBezierQuadraticCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, _Data->CurveTessellationTol, 0);// Auto-tessellated + } + else + { + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + _Path.push_back(ImBezierQuadraticCalc(p1, p2, p3, t_step * i_step)); + } +} + +IM_STATIC_ASSERT(ImDrawFlags_RoundCornersTopLeft == (1 << 4)); +static inline ImDrawFlags FixRectCornerFlags(ImDrawFlags flags) +{ +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // Obsoleted in 1.82 (from February 2021) + // Legacy Support for hard coded ~0 (used to be a suggested equivalent to ImDrawCornerFlags_All) + // ~0 --> ImDrawFlags_RoundCornersAll or 0 + if (flags == ~0) + return ImDrawFlags_RoundCornersAll; + + // Legacy Support for hard coded 0x01 to 0x0F (matching 15 out of 16 old flags combinations) + // 0x01 --> ImDrawFlags_RoundCornersTopLeft (VALUE 0x01 OVERLAPS ImDrawFlags_Closed but ImDrawFlags_Closed is never valid in this path!) + // 0x02 --> ImDrawFlags_RoundCornersTopRight + // 0x03 --> ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight + // 0x04 --> ImDrawFlags_RoundCornersBotLeft + // 0x05 --> ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersBotLeft + // ... + // 0x0F --> ImDrawFlags_RoundCornersAll or 0 + // (See all values in ImDrawCornerFlags_) + if (flags >= 0x01 && flags <= 0x0F) + return (flags << 4); + + // We cannot support hard coded 0x00 with 'float rounding > 0.0f' --> replace with ImDrawFlags_RoundCornersNone or use 'float rounding = 0.0f' +#endif + + // If this triggers, please update your code replacing hardcoded values with new ImDrawFlags_RoundCorners* values. + // Note that ImDrawFlags_Closed (== 0x01) is an invalid flag for AddRect(), AddRectFilled(), PathRect() etc... + IM_ASSERT((flags & 0x0F) == 0 && "Misuse of legacy hardcoded ImDrawCornerFlags values!"); + + if ((flags & ImDrawFlags_RoundCornersMask_) == 0) + flags |= ImDrawFlags_RoundCornersAll; + + return flags; +} + +void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDrawFlags flags) +{ + flags = FixRectCornerFlags(flags); + rounding = ImMin(rounding, ImFabs(b.x - a.x) * ( ((flags & ImDrawFlags_RoundCornersTop) == ImDrawFlags_RoundCornersTop) || ((flags & ImDrawFlags_RoundCornersBottom) == ImDrawFlags_RoundCornersBottom) ? 0.5f : 1.0f ) - 1.0f); + rounding = ImMin(rounding, ImFabs(b.y - a.y) * ( ((flags & ImDrawFlags_RoundCornersLeft) == ImDrawFlags_RoundCornersLeft) || ((flags & ImDrawFlags_RoundCornersRight) == ImDrawFlags_RoundCornersRight) ? 0.5f : 1.0f ) - 1.0f); + + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + PathLineTo(a); + PathLineTo(ImVec2(b.x, a.y)); + PathLineTo(b); + PathLineTo(ImVec2(a.x, b.y)); + } + else + { + const float rounding_tl = (flags & ImDrawFlags_RoundCornersTopLeft) ? rounding : 0.0f; + const float rounding_tr = (flags & ImDrawFlags_RoundCornersTopRight) ? rounding : 0.0f; + const float rounding_br = (flags & ImDrawFlags_RoundCornersBottomRight) ? rounding : 0.0f; + const float rounding_bl = (flags & ImDrawFlags_RoundCornersBottomLeft) ? rounding : 0.0f; + PathArcToFast(ImVec2(a.x + rounding_tl, a.y + rounding_tl), rounding_tl, 6, 9); + PathArcToFast(ImVec2(b.x - rounding_tr, a.y + rounding_tr), rounding_tr, 9, 12); + PathArcToFast(ImVec2(b.x - rounding_br, b.y - rounding_br), rounding_br, 0, 3); + PathArcToFast(ImVec2(a.x + rounding_bl, b.y - rounding_bl), rounding_bl, 3, 6); + } +} + +void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + PathLineTo(p1 + ImVec2(0.5f, 0.5f)); + PathLineTo(p2 + ImVec2(0.5f, 0.5f)); + PathStroke(col, 0, thickness); +} + +// p_min = upper-left, p_max = lower-right +// Note we don't render 1 pixels sized rectangles properly. +void ImDrawList::AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (Flags & ImDrawListFlags_AntiAliasedLines) + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.50f, 0.50f), rounding, flags); + else + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.49f, 0.49f), rounding, flags); // Better looking lower-right corner and rounded non-AA shapes. + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + PrimReserve(6, 4); + PrimRect(p_min, p_max, col); + } + else + { + PathRect(p_min, p_max, rounding, flags); + PathFillConvex(col); + } +} + +// p_min = upper-left, p_max = lower-right +void ImDrawList::AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left) +{ + if (((col_upr_left | col_upr_right | col_bot_right | col_bot_left) & IM_COL32_A_MASK) == 0) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + PrimReserve(6, 4); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 1)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 3)); + PrimWriteVtx(p_min, uv, col_upr_left); + PrimWriteVtx(ImVec2(p_max.x, p_min.y), uv, col_upr_right); + PrimWriteVtx(p_max, uv, col_bot_right); + PrimWriteVtx(ImVec2(p_min.x, p_max.y), uv, col_bot_left); +} + +void ImDrawList::AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathFillConvex(col); +} + +void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathFillConvex(col); +} + +void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) + return; + + if (num_segments <= 0) + { + // Use arc with automatic segment count + _PathArcToFastEx(center, radius - 0.5f, 0, IM_DRAWLIST_ARCFAST_SAMPLE_MAX, 0); + _Path.Size--; + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + } + + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) + return; + + if (num_segments <= 0) + { + // Use arc with automatic segment count + _PathArcToFastEx(center, radius, 0, IM_DRAWLIST_ARCFAST_SAMPLE_MAX, 0); + _Path.Size--; + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + } + + PathFillConvex(col); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + PathFillConvex(col); +} + +// Cubic Bezier takes 4 controls points +void ImDrawList::AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathBezierCubicCurveTo(p2, p3, p4, num_segments); + PathStroke(col, 0, thickness); +} + +// Quadratic Bezier takes 3 controls points +void ImDrawList::AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathBezierQuadraticCurveTo(p2, p3, num_segments); + PathStroke(col, 0, thickness); +} + +void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (text_end == NULL) + text_end = text_begin + strlen(text_begin); + if (text_begin == text_end) + return; + + // Pull default font/size from the shared ImDrawListSharedData instance + if (font == NULL) + font = _Data->Font; + if (font_size == 0.0f) + font_size = _Data->FontSize; + + IM_ASSERT(font->ContainerAtlas->TexID == _CmdHeader.TextureId); // Use high-level ImGui::PushFont() or low-level ImDrawList::PushTextureId() to change font. + + ImVec4 clip_rect = _CmdHeader.ClipRect; + if (cpu_fine_clip_rect) + { + clip_rect.x = ImMax(clip_rect.x, cpu_fine_clip_rect->x); + clip_rect.y = ImMax(clip_rect.y, cpu_fine_clip_rect->y); + clip_rect.z = ImMin(clip_rect.z, cpu_fine_clip_rect->z); + clip_rect.w = ImMin(clip_rect.w, cpu_fine_clip_rect->w); + } + font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL); +} + +void ImDrawList::AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end) +{ + AddText(NULL, 0.0f, pos, col, text_begin, text_end); +} + +void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimRectUV(p_min, p_max, uv_min, uv_max, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1, const ImVec2& uv2, const ImVec2& uv3, const ImVec2& uv4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimQuadUV(p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + flags = FixRectCornerFlags(flags); + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + AddImage(user_texture_id, p_min, p_max, uv_min, uv_max, col); + return; + } + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + int vert_start_idx = VtxBuffer.Size; + PathRect(p_min, p_max, rounding, flags); + PathFillConvex(col); + int vert_end_idx = VtxBuffer.Size; + ImGui::ShadeVertsLinearUV(this, vert_start_idx, vert_end_idx, p_min, p_max, uv_min, uv_max, true); + + if (push_texture_id) + PopTextureID(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawListSplitter +//----------------------------------------------------------------------------- +// FIXME: This may be a little confusing, trying to be a little too low-level/optimal instead of just doing vector swap.. +//----------------------------------------------------------------------------- + +void ImDrawListSplitter::ClearFreeMemory() +{ + for (int i = 0; i < _Channels.Size; i++) + { + if (i == _Current) + memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again + _Channels[i]._CmdBuffer.clear(); + _Channels[i]._IdxBuffer.clear(); + } + _Current = 0; + _Count = 1; + _Channels.clear(); +} + +void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) +{ + IM_UNUSED(draw_list); + IM_ASSERT(_Current == 0 && _Count <= 1 && "Nested channel splitting is not supported. Please use separate instances of ImDrawListSplitter."); + int old_channels_count = _Channels.Size; + if (old_channels_count < channels_count) + { + _Channels.reserve(channels_count); // Avoid over reserving since this is likely to stay stable + _Channels.resize(channels_count); + } + _Count = channels_count; + + // Channels[] (24/32 bytes each) hold storage that we'll swap with draw_list->_CmdBuffer/_IdxBuffer + // The content of Channels[0] at this point doesn't matter. We clear it to make state tidy in a debugger but we don't strictly need to. + // When we switch to the next channel, we'll copy draw_list->_CmdBuffer/_IdxBuffer into Channels[0] and then Channels[1] into draw_list->CmdBuffer/_IdxBuffer + memset(&_Channels[0], 0, sizeof(ImDrawChannel)); + for (int i = 1; i < channels_count; i++) + { + if (i >= old_channels_count) + { + IM_PLACEMENT_NEW(&_Channels[i]) ImDrawChannel(); + } + else + { + _Channels[i]._CmdBuffer.resize(0); + _Channels[i]._IdxBuffer.resize(0); + } + } +} + +void ImDrawListSplitter::Merge(ImDrawList* draw_list) +{ + // Note that we never use or rely on _Channels.Size because it is merely a buffer that we never shrink back to 0 to keep all sub-buffers ready for use. + if (_Count <= 1) + return; + + SetCurrentChannel(draw_list, 0); + draw_list->_PopUnusedDrawCmd(); + + // Calculate our final buffer sizes. Also fix the incorrect IdxOffset values in each command. + int new_cmd_buffer_count = 0; + int new_idx_buffer_count = 0; + ImDrawCmd* last_cmd = (_Count > 0 && draw_list->CmdBuffer.Size > 0) ? &draw_list->CmdBuffer.back() : NULL; + int idx_offset = last_cmd ? last_cmd->IdxOffset + last_cmd->ElemCount : 0; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0 && ch._CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() + ch._CmdBuffer.pop_back(); + + if (ch._CmdBuffer.Size > 0 && last_cmd != NULL) + { + // Do not include ImDrawCmd_AreSequentialIdxOffset() in the compare as we rebuild IdxOffset values ourselves. + // Manipulating IdxOffset (e.g. by reordering draw commands like done by RenderDimmedBackgroundBehindWindow()) is not supported within a splitter. + ImDrawCmd* next_cmd = &ch._CmdBuffer[0]; + if (ImDrawCmd_HeaderCompare(last_cmd, next_cmd) == 0 && last_cmd->UserCallback == NULL && next_cmd->UserCallback == NULL) + { + // Merge previous channel last draw command with current channel first draw command if matching. + last_cmd->ElemCount += next_cmd->ElemCount; + idx_offset += next_cmd->ElemCount; + ch._CmdBuffer.erase(ch._CmdBuffer.Data); // FIXME-OPT: Improve for multiple merges. + } + } + if (ch._CmdBuffer.Size > 0) + last_cmd = &ch._CmdBuffer.back(); + new_cmd_buffer_count += ch._CmdBuffer.Size; + new_idx_buffer_count += ch._IdxBuffer.Size; + for (int cmd_n = 0; cmd_n < ch._CmdBuffer.Size; cmd_n++) + { + ch._CmdBuffer.Data[cmd_n].IdxOffset = idx_offset; + idx_offset += ch._CmdBuffer.Data[cmd_n].ElemCount; + } + } + draw_list->CmdBuffer.resize(draw_list->CmdBuffer.Size + new_cmd_buffer_count); + draw_list->IdxBuffer.resize(draw_list->IdxBuffer.Size + new_idx_buffer_count); + + // Write commands and indices in order (they are fairly small structures, we don't copy vertices only indices) + ImDrawCmd* cmd_write = draw_list->CmdBuffer.Data + draw_list->CmdBuffer.Size - new_cmd_buffer_count; + ImDrawIdx* idx_write = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size - new_idx_buffer_count; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + if (int sz = ch._CmdBuffer.Size) { memcpy(cmd_write, ch._CmdBuffer.Data, sz * sizeof(ImDrawCmd)); cmd_write += sz; } + if (int sz = ch._IdxBuffer.Size) { memcpy(idx_write, ch._IdxBuffer.Data, sz * sizeof(ImDrawIdx)); idx_write += sz; } + } + draw_list->_IdxWritePtr = idx_write; + + // Ensure there's always a non-callback draw command trailing the command-buffer + if (draw_list->CmdBuffer.Size == 0 || draw_list->CmdBuffer.back().UserCallback != NULL) + draw_list->AddDrawCmd(); + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); + + _Count = 1; +} + +void ImDrawListSplitter::SetCurrentChannel(ImDrawList* draw_list, int idx) +{ + IM_ASSERT(idx >= 0 && idx < _Count); + if (_Current == idx) + return; + + // Overwrite ImVector (12/16 bytes), four times. This is merely a silly optimization instead of doing .swap() + memcpy(&_Channels.Data[_Current]._CmdBuffer, &draw_list->CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&_Channels.Data[_Current]._IdxBuffer, &draw_list->IdxBuffer, sizeof(draw_list->IdxBuffer)); + _Current = idx; + memcpy(&draw_list->CmdBuffer, &_Channels.Data[idx]._CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&draw_list->IdxBuffer, &_Channels.Data[idx]._IdxBuffer, sizeof(draw_list->IdxBuffer)); + draw_list->_IdxWritePtr = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size; + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = (draw_list->CmdBuffer.Size == 0) ? NULL : &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd == NULL) + draw_list->AddDrawCmd(); + else if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawData +//----------------------------------------------------------------------------- + +// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! +void ImDrawData::DeIndexAllBuffers() +{ + ImVector new_vtx_buffer; + TotalVtxCount = TotalIdxCount = 0; + for (int i = 0; i < CmdListsCount; i++) + { + ImDrawList* cmd_list = CmdLists[i]; + if (cmd_list->IdxBuffer.empty()) + continue; + new_vtx_buffer.resize(cmd_list->IdxBuffer.Size); + for (int j = 0; j < cmd_list->IdxBuffer.Size; j++) + new_vtx_buffer[j] = cmd_list->VtxBuffer[cmd_list->IdxBuffer[j]]; + cmd_list->VtxBuffer.swap(new_vtx_buffer); + cmd_list->IdxBuffer.resize(0); + TotalVtxCount += cmd_list->VtxBuffer.Size; + } +} + +// Helper to scale the ClipRect field of each ImDrawCmd. +// Use if your final output buffer is at a different scale than draw_data->DisplaySize, +// or if there is a difference between your window resolution and framebuffer resolution. +void ImDrawData::ScaleClipRects(const ImVec2& fb_scale) +{ + for (int i = 0; i < CmdListsCount; i++) + { + ImDrawList* cmd_list = CmdLists[i]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + ImDrawCmd* cmd = &cmd_list->CmdBuffer[cmd_i]; + cmd->ClipRect = ImVec4(cmd->ClipRect.x * fb_scale.x, cmd->ClipRect.y * fb_scale.y, cmd->ClipRect.z * fb_scale.x, cmd->ClipRect.w * fb_scale.y); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Helpers ShadeVertsXXX functions +//----------------------------------------------------------------------------- + +// Generic linear color gradient, write to RGB fields, leave A untouched. +void ImGui::ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1) +{ + ImVec2 gradient_extent = gradient_p1 - gradient_p0; + float gradient_inv_length2 = 1.0f / ImLengthSqr(gradient_extent); + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + const int col0_r = (int)(col0 >> IM_COL32_R_SHIFT) & 0xFF; + const int col0_g = (int)(col0 >> IM_COL32_G_SHIFT) & 0xFF; + const int col0_b = (int)(col0 >> IM_COL32_B_SHIFT) & 0xFF; + const int col_delta_r = ((int)(col1 >> IM_COL32_R_SHIFT) & 0xFF) - col0_r; + const int col_delta_g = ((int)(col1 >> IM_COL32_G_SHIFT) & 0xFF) - col0_g; + const int col_delta_b = ((int)(col1 >> IM_COL32_B_SHIFT) & 0xFF) - col0_b; + for (ImDrawVert* vert = vert_start; vert < vert_end; vert++) + { + float d = ImDot(vert->pos - gradient_p0, gradient_extent); + float t = ImClamp(d * gradient_inv_length2, 0.0f, 1.0f); + int r = (int)(col0_r + col_delta_r * t); + int g = (int)(col0_g + col_delta_g * t); + int b = (int)(col0_b + col_delta_b * t); + vert->col = (r << IM_COL32_R_SHIFT) | (g << IM_COL32_G_SHIFT) | (b << IM_COL32_B_SHIFT) | (vert->col & IM_COL32_A_MASK); + } +} + +// Distribute UV over (a, b) rectangle +void ImGui::ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp) +{ + const ImVec2 size = b - a; + const ImVec2 uv_size = uv_b - uv_a; + const ImVec2 scale = ImVec2( + size.x != 0.0f ? (uv_size.x / size.x) : 0.0f, + size.y != 0.0f ? (uv_size.y / size.y) : 0.0f); + + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + if (clamp) + { + const ImVec2 min = ImMin(uv_a, uv_b); + const ImVec2 max = ImMax(uv_a, uv_b); + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max); + } + else + { + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontConfig +//----------------------------------------------------------------------------- + +ImFontConfig::ImFontConfig() +{ + memset(this, 0, sizeof(*this)); + FontDataOwnedByAtlas = true; + OversampleH = 3; // FIXME: 2 may be a better default? + OversampleV = 1; + GlyphMaxAdvanceX = FLT_MAX; + RasterizerMultiply = 1.0f; + EllipsisChar = (ImWchar)-1; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontAtlas +//----------------------------------------------------------------------------- + +// A work of art lies ahead! (. = white layer, X = black layer, others are blank) +// The 2x2 white texels on the top left are the ones we'll use everywhere in Dear ImGui to render filled shapes. +// (This is used when io.MouseDrawCursor = true) +const int FONT_ATLAS_DEFAULT_TEX_DATA_W = 122; // Actual texture will be 2 times that + 1 spacing. +const int FONT_ATLAS_DEFAULT_TEX_DATA_H = 27; +static const char FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS[FONT_ATLAS_DEFAULT_TEX_DATA_W * FONT_ATLAS_DEFAULT_TEX_DATA_H + 1] = +{ + "..- -XXXXXXX- X - X -XXXXXXX - XXXXXXX- XX - XX XX " + "..- -X.....X- X.X - X.X -X.....X - X.....X- X..X -X..X X..X" + "--- -XXX.XXX- X...X - X...X -X....X - X....X- X..X -X...X X...X" + "X - X.X - X.....X - X.....X -X...X - X...X- X..X - X...X X...X " + "XX - X.X -X.......X- X.......X -X..X.X - X.X..X- X..X - X...X...X " + "X.X - X.X -XXXX.XXXX- XXXX.XXXX -X.X X.X - X.X X.X- X..XXX - X.....X " + "X..X - X.X - X.X - X.X -XX X.X - X.X XX- X..X..XXX - X...X " + "X...X - X.X - X.X - XX X.X XX - X.X - X.X - X..X..X..XX - X.X " + "X....X - X.X - X.X - X.X X.X X.X - X.X - X.X - X..X..X..X.X - X...X " + "X.....X - X.X - X.X - X..X X.X X..X - X.X - X.X -XXX X..X..X..X..X- X.....X " + "X......X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X XX-XX X.X -X..XX........X..X- X...X...X " + "X.......X - X.X - X.X -X.....................X- X.X X.X-X.X X.X -X...X...........X- X...X X...X " + "X........X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X..X-X..X.X - X..............X-X...X X...X" + "X.........X -XXX.XXX- X.X - X..X X.X X..X - X...X-X...X - X.............X-X..X X..X" + "X..........X-X.....X- X.X - X.X X.X X.X - X....X-X....X - X.............X- XX XX " + "X......XXXXX-XXXXXXX- X.X - XX X.X XX - X.....X-X.....X - X............X--------------" + "X...X..X --------- X.X - X.X - XXXXXXX-XXXXXXX - X...........X - " + "X..X X..X - -XXXX.XXXX- XXXX.XXXX ------------------------------------- X..........X - " + "X.X X..X - -X.......X- X.......X - XX XX - - X..........X - " + "XX X..X - - X.....X - X.....X - X.X X.X - - X........X - " + " X..X - - X...X - X...X - X..X X..X - - X........X - " + " XX - - X.X - X.X - X...XXXXXXXXXXXXX...X - - XXXXXXXXXX - " + "------------- - X - X -X.....................X- ------------------- " + " ----------------------------------- X...XXXXXXXXXXXXX...X - " + " - X..X X..X - " + " - X.X X.X - " + " - XX XX - " +}; + +static const ImVec2 FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[ImGuiMouseCursor_COUNT][3] = +{ + // Pos ........ Size ......... Offset ...... + { ImVec2( 0,3), ImVec2(12,19), ImVec2( 0, 0) }, // ImGuiMouseCursor_Arrow + { ImVec2(13,0), ImVec2( 7,16), ImVec2( 1, 8) }, // ImGuiMouseCursor_TextInput + { ImVec2(31,0), ImVec2(23,23), ImVec2(11,11) }, // ImGuiMouseCursor_ResizeAll + { ImVec2(21,0), ImVec2( 9,23), ImVec2( 4,11) }, // ImGuiMouseCursor_ResizeNS + { ImVec2(55,18),ImVec2(23, 9), ImVec2(11, 4) }, // ImGuiMouseCursor_ResizeEW + { ImVec2(73,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNESW + { ImVec2(55,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNWSE + { ImVec2(91,0), ImVec2(17,22), ImVec2( 5, 0) }, // ImGuiMouseCursor_Hand + { ImVec2(109,0),ImVec2(13,15), ImVec2( 6, 7) }, // ImGuiMouseCursor_NotAllowed +}; + +ImFontAtlas::ImFontAtlas() +{ + memset(this, 0, sizeof(*this)); + TexGlyphPadding = 1; + PackIdMouseCursors = PackIdLines = -1; +} + +ImFontAtlas::~ImFontAtlas() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + Clear(); +} + +void ImFontAtlas::ClearInputData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + for (int i = 0; i < ConfigData.Size; i++) + if (ConfigData[i].FontData && ConfigData[i].FontDataOwnedByAtlas) + { + IM_FREE(ConfigData[i].FontData); + ConfigData[i].FontData = NULL; + } + + // When clearing this we lose access to the font name and other information used to build the font. + for (int i = 0; i < Fonts.Size; i++) + if (Fonts[i]->ConfigData >= ConfigData.Data && Fonts[i]->ConfigData < ConfigData.Data + ConfigData.Size) + { + Fonts[i]->ConfigData = NULL; + Fonts[i]->ConfigDataCount = 0; + } + ConfigData.clear(); + CustomRects.clear(); + PackIdMouseCursors = PackIdLines = -1; + // Important: we leave TexReady untouched +} + +void ImFontAtlas::ClearTexData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + if (TexPixelsAlpha8) + IM_FREE(TexPixelsAlpha8); + if (TexPixelsRGBA32) + IM_FREE(TexPixelsRGBA32); + TexPixelsAlpha8 = NULL; + TexPixelsRGBA32 = NULL; + TexPixelsUseColors = false; + // Important: we leave TexReady untouched +} + +void ImFontAtlas::ClearFonts() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + Fonts.clear_delete(); + TexReady = false; +} + +void ImFontAtlas::Clear() +{ + ClearInputData(); + ClearTexData(); + ClearFonts(); +} + +void ImFontAtlas::GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Build atlas on demand + if (TexPixelsAlpha8 == NULL) + Build(); + + *out_pixels = TexPixelsAlpha8; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 1; +} + +void ImFontAtlas::GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Convert to RGBA32 format on demand + // Although it is likely to be the most commonly used format, our font rendering is 1 channel / 8 bpp + if (!TexPixelsRGBA32) + { + unsigned char* pixels = NULL; + GetTexDataAsAlpha8(&pixels, NULL, NULL); + if (pixels) + { + TexPixelsRGBA32 = (unsigned int*)IM_ALLOC((size_t)TexWidth * (size_t)TexHeight * 4); + const unsigned char* src = pixels; + unsigned int* dst = TexPixelsRGBA32; + for (int n = TexWidth * TexHeight; n > 0; n--) + *dst++ = IM_COL32(255, 255, 255, (unsigned int)(*src++)); + } + } + + *out_pixels = (unsigned char*)TexPixelsRGBA32; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 4; +} + +ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + IM_ASSERT(font_cfg->FontData != NULL && font_cfg->FontDataSize > 0); + IM_ASSERT(font_cfg->SizePixels > 0.0f); + + // Create new font + if (!font_cfg->MergeMode) + Fonts.push_back(IM_NEW(ImFont)); + else + IM_ASSERT(!Fonts.empty() && "Cannot use MergeMode for the first font"); // When using MergeMode make sure that a font has already been added before. You can use ImGui::GetIO().Fonts->AddFontDefault() to add the default imgui font. + + ConfigData.push_back(*font_cfg); + ImFontConfig& new_font_cfg = ConfigData.back(); + if (new_font_cfg.DstFont == NULL) + new_font_cfg.DstFont = Fonts.back(); + if (!new_font_cfg.FontDataOwnedByAtlas) + { + new_font_cfg.FontData = IM_ALLOC(new_font_cfg.FontDataSize); + new_font_cfg.FontDataOwnedByAtlas = true; + memcpy(new_font_cfg.FontData, font_cfg->FontData, (size_t)new_font_cfg.FontDataSize); + } + + if (new_font_cfg.DstFont->EllipsisChar == (ImWchar)-1) + new_font_cfg.DstFont->EllipsisChar = font_cfg->EllipsisChar; + + // Invalidate texture + TexReady = false; + ClearTexData(); + return new_font_cfg.DstFont; +} + +// Default font TTF is compressed with stb_compress then base85 encoded (see misc/fonts/binary_to_compressed_c.cpp for encoder) +static unsigned int stb_decompress_length(const unsigned char* input); +static unsigned int stb_decompress(unsigned char* output, const unsigned char* input, unsigned int length); +static const char* GetDefaultCompressedFontDataTTFBase85(); +static unsigned int Decode85Byte(char c) { return c >= '\\' ? c-36 : c-35; } +static void Decode85(const unsigned char* src, unsigned char* dst) +{ + while (*src) + { + unsigned int tmp = Decode85Byte(src[0]) + 85 * (Decode85Byte(src[1]) + 85 * (Decode85Byte(src[2]) + 85 * (Decode85Byte(src[3]) + 85 * Decode85Byte(src[4])))); + dst[0] = ((tmp >> 0) & 0xFF); dst[1] = ((tmp >> 8) & 0xFF); dst[2] = ((tmp >> 16) & 0xFF); dst[3] = ((tmp >> 24) & 0xFF); // We can't assume little-endianness. + src += 5; + dst += 4; + } +} + +// Load embedded ProggyClean.ttf at size 13, disable oversampling +ImFont* ImFontAtlas::AddFontDefault(const ImFontConfig* font_cfg_template) +{ + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (!font_cfg_template) + { + font_cfg.OversampleH = font_cfg.OversampleV = 1; + font_cfg.PixelSnapH = true; + } + if (font_cfg.SizePixels <= 0.0f) + font_cfg.SizePixels = 13.0f * 1.0f; + if (font_cfg.Name[0] == '\0') + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "ProggyClean.ttf, %dpx", (int)font_cfg.SizePixels); + font_cfg.EllipsisChar = (ImWchar)0x0085; + font_cfg.GlyphOffset.y = 1.0f * IM_FLOOR(font_cfg.SizePixels / 13.0f); // Add +1 offset per 13 units + + const char* ttf_compressed_base85 = GetDefaultCompressedFontDataTTFBase85(); + const ImWchar* glyph_ranges = font_cfg.GlyphRanges != NULL ? font_cfg.GlyphRanges : GetGlyphRangesDefault(); + ImFont* font = AddFontFromMemoryCompressedBase85TTF(ttf_compressed_base85, font_cfg.SizePixels, &font_cfg, glyph_ranges); + return font; +} + +ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + size_t data_size = 0; + void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0); + if (!data) + { + IM_ASSERT_USER_ERROR(0, "Could not load font file!"); + return NULL; + } + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (font_cfg.Name[0] == '\0') + { + // Store a short copy of filename into into the font name for convenience + const char* p; + for (p = filename + strlen(filename); p > filename && p[-1] != '/' && p[-1] != '\\'; p--) {} + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); + } + return AddFontFromMemoryTTF(data, (int)data_size, size_pixels, &font_cfg, glyph_ranges); +} + +// NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless font_cfg_template->FontDataOwnedByAtlas == false. Owned TTF buffer will be deleted after Build(). +ImFont* ImFontAtlas::AddFontFromMemoryTTF(void* ttf_data, int ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + font_cfg.FontData = ttf_data; + font_cfg.FontDataSize = ttf_size; + font_cfg.SizePixels = size_pixels > 0.0f ? size_pixels : font_cfg.SizePixels; + if (glyph_ranges) + font_cfg.GlyphRanges = glyph_ranges; + return AddFont(&font_cfg); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + const unsigned int buf_decompressed_size = stb_decompress_length((const unsigned char*)compressed_ttf_data); + unsigned char* buf_decompressed_data = (unsigned char*)IM_ALLOC(buf_decompressed_size); + stb_decompress(buf_decompressed_data, (const unsigned char*)compressed_ttf_data, (unsigned int)compressed_ttf_size); + + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + font_cfg.FontDataOwnedByAtlas = true; + return AddFontFromMemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, size_pixels, &font_cfg, glyph_ranges); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) +{ + int compressed_ttf_size = (((int)strlen(compressed_ttf_data_base85) + 4) / 5) * 4; + void* compressed_ttf = IM_ALLOC((size_t)compressed_ttf_size); + Decode85((const unsigned char*)compressed_ttf_data_base85, (unsigned char*)compressed_ttf); + ImFont* font = AddFontFromMemoryCompressedTTF(compressed_ttf, compressed_ttf_size, size_pixels, font_cfg, glyph_ranges); + IM_FREE(compressed_ttf); + return font; +} + +int ImFontAtlas::AddCustomRectRegular(int width, int height) +{ + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset) +{ +#ifdef IMGUI_USE_WCHAR32 + IM_ASSERT(id <= IM_UNICODE_CODEPOINT_MAX); +#endif + IM_ASSERT(font != NULL); + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + r.GlyphID = id; + r.GlyphAdvanceX = advance_x; + r.GlyphOffset = offset; + r.Font = font; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +void ImFontAtlas::CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const +{ + IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates + IM_ASSERT(rect->IsPacked()); // Make sure the rectangle has been packed + *out_uv_min = ImVec2((float)rect->X * TexUvScale.x, (float)rect->Y * TexUvScale.y); + *out_uv_max = ImVec2((float)(rect->X + rect->Width) * TexUvScale.x, (float)(rect->Y + rect->Height) * TexUvScale.y); +} + +bool ImFontAtlas::GetMouseCursorTexData(ImGuiMouseCursor cursor_type, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]) +{ + if (cursor_type <= ImGuiMouseCursor_None || cursor_type >= ImGuiMouseCursor_COUNT) + return false; + if (Flags & ImFontAtlasFlags_NoMouseCursors) + return false; + + IM_ASSERT(PackIdMouseCursors != -1); + ImFontAtlasCustomRect* r = GetCustomRectByIndex(PackIdMouseCursors); + ImVec2 pos = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][0] + ImVec2((float)r->X, (float)r->Y); + ImVec2 size = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][1]; + *out_size = size; + *out_offset = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][2]; + out_uv_border[0] = (pos) * TexUvScale; + out_uv_border[1] = (pos + size) * TexUvScale; + pos.x += FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + out_uv_fill[0] = (pos) * TexUvScale; + out_uv_fill[1] = (pos + size) * TexUvScale; + return true; +} + +bool ImFontAtlas::Build() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + + // Default font is none are specified + if (ConfigData.Size == 0) + AddFontDefault(); + + // Select builder + // - Note that we do not reassign to atlas->FontBuilderIO, since it is likely to point to static data which + // may mess with some hot-reloading schemes. If you need to assign to this (for dynamic selection) AND are + // using a hot-reloading scheme that messes up static data, store your own instance of ImFontBuilderIO somewhere + // and point to it instead of pointing directly to return value of the GetBuilderXXX functions. + const ImFontBuilderIO* builder_io = FontBuilderIO; + if (builder_io == NULL) + { +#ifdef IMGUI_ENABLE_FREETYPE + builder_io = ImGuiFreeType::GetBuilderForFreeType(); +#elif defined(IMGUI_ENABLE_STB_TRUETYPE) + builder_io = ImFontAtlasGetBuilderForStbTruetype(); +#else + IM_ASSERT(0); // Invalid Build function +#endif + } + + // Build + return builder_io->FontBuilder_Build(this); +} + +void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_brighten_factor) +{ + for (unsigned int i = 0; i < 256; i++) + { + unsigned int value = (unsigned int)(i * in_brighten_factor); + out_table[i] = value > 255 ? 255 : (value & 0xFF); + } +} + +void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride) +{ + IM_ASSERT_PARANOID(w <= stride); + unsigned char* data = pixels + x + y * stride; + for (int j = h; j > 0; j--, data += stride - w) + for (int i = w; i > 0; i--, data++) + *data = table[*data]; +} + +#ifdef IMGUI_ENABLE_STB_TRUETYPE +// Temporary data for one source font (multiple source fonts can be merged into one destination ImFont) +// (C++03 doesn't allow instancing ImVector<> with function-local types so we declare the type here.) +struct ImFontBuildSrcData +{ + stbtt_fontinfo FontInfo; + stbtt_pack_range PackRange; // Hold the list of codepoints to pack (essentially points to Codepoints.Data) + stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. + stbtt_packedchar* PackedChars; // Output glyphs + const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) + int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] + int GlyphsHighest; // Highest requested codepoint + int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) + ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) + ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsSet) +}; + +// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) +struct ImFontBuildDstData +{ + int SrcCount; // Number of source fonts targeting this destination font. + int GlyphsHighest; + int GlyphsCount; + ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. +}; + +static void UnpackBitVectorToFlatIndexList(const ImBitVector* in, ImVector* out) +{ + IM_ASSERT(sizeof(in->Storage.Data[0]) == sizeof(int)); + const ImU32* it_begin = in->Storage.begin(); + const ImU32* it_end = in->Storage.end(); + for (const ImU32* it = it_begin; it < it_end; it++) + if (ImU32 entries_32 = *it) + for (ImU32 bit_n = 0; bit_n < 32; bit_n++) + if (entries_32 & ((ImU32)1 << bit_n)) + out->push_back((int)(((it - it_begin) << 5) + bit_n)); +} + +static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) +{ + IM_ASSERT(atlas->ConfigData.Size > 0); + + ImFontAtlasBuildInit(atlas); + + // Clear atlas + atlas->TexID = (ImTextureID)NULL; + atlas->TexWidth = atlas->TexHeight = 0; + atlas->TexUvScale = ImVec2(0.0f, 0.0f); + atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); + atlas->ClearTexData(); + + // Temporary storage for building + ImVector src_tmp_array; + ImVector dst_tmp_array; + src_tmp_array.resize(atlas->ConfigData.Size); + dst_tmp_array.resize(atlas->Fonts.Size); + memset(src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); + memset(dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); + + // 1. Initialize font loading structure, check font data validity + for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); + + // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) + src_tmp.DstIndex = -1; + for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) + if (cfg.DstFont == atlas->Fonts[output_i]) + src_tmp.DstIndex = output_i; + if (src_tmp.DstIndex == -1) + { + IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? + return false; + } + // Initialize helper structure for font loading and verify that the TTF/OTF data is correct + const int font_offset = stbtt_GetFontOffsetForIndex((unsigned char*)cfg.FontData, cfg.FontNo); + IM_ASSERT(font_offset >= 0 && "FontData is incorrect, or FontNo cannot be found."); + if (!stbtt_InitFont(&src_tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset)) + return false; + + // Measure highest codepoints + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); + dst_tmp.SrcCount++; + dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); + } + + // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. + int total_glyphs_count = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); + if (dst_tmp.GlyphsSet.Storage.empty()) + dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); + + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + for (unsigned int codepoint = src_range[0]; codepoint <= src_range[1]; codepoint++) + { + if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option for MergeMode (e.g. MergeOverwrite==true) + continue; + if (!stbtt_FindGlyphIndex(&src_tmp.FontInfo, codepoint)) // It is actually in the font? + continue; + + // Add to avail set/counters + src_tmp.GlyphsCount++; + dst_tmp.GlyphsCount++; + src_tmp.GlyphsSet.SetBit(codepoint); + dst_tmp.GlyphsSet.SetBit(codepoint); + total_glyphs_count++; + } + } + + // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); + UnpackBitVectorToFlatIndexList(&src_tmp.GlyphsSet, &src_tmp.GlyphsList); + src_tmp.GlyphsSet.Clear(); + IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); + } + for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) + dst_tmp_array[dst_i].GlyphsSet.Clear(); + dst_tmp_array.clear(); + + // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) + // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) + ImVector buf_rects; + ImVector buf_packedchars; + buf_rects.resize(total_glyphs_count); + buf_packedchars.resize(total_glyphs_count); + memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); + memset(buf_packedchars.Data, 0, (size_t)buf_packedchars.size_in_bytes()); + + // 4. Gather glyphs sizes so we can pack them in our virtual canvas. + int total_surface = 0; + int buf_rects_out_n = 0; + int buf_packedchars_out_n = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + src_tmp.Rects = &buf_rects[buf_rects_out_n]; + src_tmp.PackedChars = &buf_packedchars[buf_packedchars_out_n]; + buf_rects_out_n += src_tmp.GlyphsCount; + buf_packedchars_out_n += src_tmp.GlyphsCount; + + // Convert our ranges in the format stb_truetype wants + ImFontConfig& cfg = atlas->ConfigData[src_i]; + src_tmp.PackRange.font_size = cfg.SizePixels; + src_tmp.PackRange.first_unicode_codepoint_in_range = 0; + src_tmp.PackRange.array_of_unicode_codepoints = src_tmp.GlyphsList.Data; + src_tmp.PackRange.num_chars = src_tmp.GlyphsList.Size; + src_tmp.PackRange.chardata_for_range = src_tmp.PackedChars; + src_tmp.PackRange.h_oversample = (unsigned char)cfg.OversampleH; + src_tmp.PackRange.v_oversample = (unsigned char)cfg.OversampleV; + + // Gather the sizes of all rectangles we will need to pack (this loop is based on stbtt_PackFontRangesGatherRects) + const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels); + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) + { + int x0, y0, x1, y1; + const int glyph_index_in_font = stbtt_FindGlyphIndex(&src_tmp.FontInfo, src_tmp.GlyphsList[glyph_i]); + IM_ASSERT(glyph_index_in_font != 0); + stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1); + src_tmp.Rects[glyph_i].w = (stbrp_coord)(x1 - x0 + padding + cfg.OversampleH - 1); + src_tmp.Rects[glyph_i].h = (stbrp_coord)(y1 - y0 + padding + cfg.OversampleV - 1); + total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; + } + } + + // We need a width for the skyline algorithm, any width! + // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. + // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. + const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; + atlas->TexHeight = 0; + if (atlas->TexDesiredWidth > 0) + atlas->TexWidth = atlas->TexDesiredWidth; + else + atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; + + // 5. Start packing + // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). + const int TEX_HEIGHT_MAX = 1024 * 32; + stbtt_pack_context spc = {}; + stbtt_PackBegin(&spc, NULL, atlas->TexWidth, TEX_HEIGHT_MAX, 0, atlas->TexGlyphPadding, NULL); + ImFontAtlasBuildPackCustomRects(atlas, spc.pack_info); + + // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbrp_pack_rects((stbrp_context*)spc.pack_info, src_tmp.Rects, src_tmp.GlyphsCount); + + // Extend texture height and mark missing glyphs as non-packed so we won't render them. + // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + if (src_tmp.Rects[glyph_i].was_packed) + atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); + } + + // 7. Allocate texture + atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); + atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); + atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(atlas->TexWidth * atlas->TexHeight); + memset(atlas->TexPixelsAlpha8, 0, atlas->TexWidth * atlas->TexHeight); + spc.pixels = atlas->TexPixelsAlpha8; + spc.height = atlas->TexHeight; + + // 8. Render/rasterize font characters into the texture + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbtt_PackFontRangesRenderIntoRects(&spc, &src_tmp.FontInfo, &src_tmp.PackRange, 1, src_tmp.Rects); + + // Apply multiply operator + if (cfg.RasterizerMultiply != 1.0f) + { + unsigned char multiply_table[256]; + ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); + stbrp_rect* r = &src_tmp.Rects[0]; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++, r++) + if (r->was_packed) + ImFontAtlasBuildMultiplyRectAlpha8(multiply_table, atlas->TexPixelsAlpha8, r->x, r->y, r->w, r->h, atlas->TexWidth * 1); + } + src_tmp.Rects = NULL; + } + + // End packing + stbtt_PackEnd(&spc); + buf_rects.clear(); + + // 9. Setup ImFont and glyphs for runtime + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + // When merging fonts with MergeMode=true: + // - We can have multiple input fonts writing into a same destination font. + // - dst_font->ConfigData is != from cfg which is our source configuration. + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFont* dst_font = cfg.DstFont; + + const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels); + int unscaled_ascent, unscaled_descent, unscaled_line_gap; + stbtt_GetFontVMetrics(&src_tmp.FontInfo, &unscaled_ascent, &unscaled_descent, &unscaled_line_gap); + + const float ascent = ImFloor(unscaled_ascent * font_scale + ((unscaled_ascent > 0.0f) ? +1 : -1)); + const float descent = ImFloor(unscaled_descent * font_scale + ((unscaled_descent > 0.0f) ? +1 : -1)); + ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); + const float font_off_x = cfg.GlyphOffset.x; + const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); + + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + { + // Register glyph + const int codepoint = src_tmp.GlyphsList[glyph_i]; + const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i]; + stbtt_aligned_quad q; + float unused_x = 0.0f, unused_y = 0.0f; + stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &unused_x, &unused_y, &q, 0); + dst_font->AddGlyph(&cfg, (ImWchar)codepoint, q.x0 + font_off_x, q.y0 + font_off_y, q.x1 + font_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, pc.xadvance); + } + } + + // Cleanup + src_tmp_array.clear_destruct(); + + ImFontAtlasBuildFinish(atlas); + return true; +} + +const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() +{ + static ImFontBuilderIO io; + io.FontBuilder_Build = ImFontAtlasBuildWithStbTruetype; + return &io; +} + +#endif // IMGUI_ENABLE_STB_TRUETYPE + +void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent) +{ + if (!font_config->MergeMode) + { + font->ClearOutputData(); + font->FontSize = font_config->SizePixels; + font->ConfigData = font_config; + font->ConfigDataCount = 0; + font->ContainerAtlas = atlas; + font->Ascent = ascent; + font->Descent = descent; + } + font->ConfigDataCount++; +} + +void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque) +{ + stbrp_context* pack_context = (stbrp_context*)stbrp_context_opaque; + IM_ASSERT(pack_context != NULL); + + ImVector& user_rects = atlas->CustomRects; + IM_ASSERT(user_rects.Size >= 1); // We expect at least the default custom rects to be registered, else something went wrong. + + ImVector pack_rects; + pack_rects.resize(user_rects.Size); + memset(pack_rects.Data, 0, (size_t)pack_rects.size_in_bytes()); + for (int i = 0; i < user_rects.Size; i++) + { + pack_rects[i].w = user_rects[i].Width; + pack_rects[i].h = user_rects[i].Height; + } + stbrp_pack_rects(pack_context, &pack_rects[0], pack_rects.Size); + for (int i = 0; i < pack_rects.Size; i++) + if (pack_rects[i].was_packed) + { + user_rects[i].X = (unsigned short)pack_rects[i].x; + user_rects[i].Y = (unsigned short)pack_rects[i].y; + IM_ASSERT(pack_rects[i].w == user_rects[i].Width && pack_rects[i].h == user_rects[i].Height); + atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); + } +} + +void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value) +{ + IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); + IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); + unsigned char* out_pixel = atlas->TexPixelsAlpha8 + x + (y * atlas->TexWidth); + for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) + for (int off_x = 0; off_x < w; off_x++) + out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : 0x00; +} + +void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value) +{ + IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); + IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); + unsigned int* out_pixel = atlas->TexPixelsRGBA32 + x + (y * atlas->TexWidth); + for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) + for (int off_x = 0; off_x < w; off_x++) + out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : IM_COL32_BLACK_TRANS; +} + +static void ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas) +{ + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdMouseCursors); + IM_ASSERT(r->IsPacked()); + + const int w = atlas->TexWidth; + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + { + // Render/copy pixels + IM_ASSERT(r->Width == FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1 && r->Height == FONT_ATLAS_DEFAULT_TEX_DATA_H); + const int x_for_white = r->X; + const int x_for_black = r->X + FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + if (atlas->TexPixelsAlpha8 != NULL) + { + ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', 0xFF); + ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', 0xFF); + } + else + { + ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', IM_COL32_WHITE); + ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', IM_COL32_WHITE); + } + } + else + { + // Render 4 white pixels + IM_ASSERT(r->Width == 2 && r->Height == 2); + const int offset = (int)r->X + (int)r->Y * w; + if (atlas->TexPixelsAlpha8 != NULL) + { + atlas->TexPixelsAlpha8[offset] = atlas->TexPixelsAlpha8[offset + 1] = atlas->TexPixelsAlpha8[offset + w] = atlas->TexPixelsAlpha8[offset + w + 1] = 0xFF; + } + else + { + atlas->TexPixelsRGBA32[offset] = atlas->TexPixelsRGBA32[offset + 1] = atlas->TexPixelsRGBA32[offset + w] = atlas->TexPixelsRGBA32[offset + w + 1] = IM_COL32_WHITE; + } + } + atlas->TexUvWhitePixel = ImVec2((r->X + 0.5f) * atlas->TexUvScale.x, (r->Y + 0.5f) * atlas->TexUvScale.y); +} + +static void ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) +{ + if (atlas->Flags & ImFontAtlasFlags_NoBakedLines) + return; + + // This generates a triangular shape in the texture, with the various line widths stacked on top of each other to allow interpolation between them + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdLines); + IM_ASSERT(r->IsPacked()); + for (unsigned int n = 0; n < IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1; n++) // +1 because of the zero-width row + { + // Each line consists of at least two empty pixels at the ends, with a line of solid pixels in the middle + unsigned int y = n; + unsigned int line_width = n; + unsigned int pad_left = (r->Width - line_width) / 2; + unsigned int pad_right = r->Width - (pad_left + line_width); + + // Write each slice + IM_ASSERT(pad_left + line_width + pad_right == r->Width && y < r->Height); // Make sure we're inside the texture bounds before we start writing pixels + if (atlas->TexPixelsAlpha8 != NULL) + { + unsigned char* write_ptr = &atlas->TexPixelsAlpha8[r->X + ((r->Y + y) * atlas->TexWidth)]; + for (unsigned int i = 0; i < pad_left; i++) + *(write_ptr + i) = 0x00; + + for (unsigned int i = 0; i < line_width; i++) + *(write_ptr + pad_left + i) = 0xFF; + + for (unsigned int i = 0; i < pad_right; i++) + *(write_ptr + pad_left + line_width + i) = 0x00; + } + else + { + unsigned int* write_ptr = &atlas->TexPixelsRGBA32[r->X + ((r->Y + y) * atlas->TexWidth)]; + for (unsigned int i = 0; i < pad_left; i++) + *(write_ptr + i) = IM_COL32(255, 255, 255, 0); + + for (unsigned int i = 0; i < line_width; i++) + *(write_ptr + pad_left + i) = IM_COL32_WHITE; + + for (unsigned int i = 0; i < pad_right; i++) + *(write_ptr + pad_left + line_width + i) = IM_COL32(255, 255, 255, 0); + } + + // Calculate UVs for this line + ImVec2 uv0 = ImVec2((float)(r->X + pad_left - 1), (float)(r->Y + y)) * atlas->TexUvScale; + ImVec2 uv1 = ImVec2((float)(r->X + pad_left + line_width + 1), (float)(r->Y + y + 1)) * atlas->TexUvScale; + float half_v = (uv0.y + uv1.y) * 0.5f; // Calculate a constant V in the middle of the row to avoid sampling artifacts + atlas->TexUvLines[n] = ImVec4(uv0.x, half_v, uv1.x, half_v); + } +} + +// Note: this is called / shared by both the stb_truetype and the FreeType builder +void ImFontAtlasBuildInit(ImFontAtlas* atlas) +{ + // Register texture region for mouse cursors or standard white pixels + if (atlas->PackIdMouseCursors < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1, FONT_ATLAS_DEFAULT_TEX_DATA_H); + else + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(2, 2); + } + + // Register texture region for thick lines + // The +2 here is to give space for the end caps, whilst height +1 is to accommodate the fact we have a zero-width row + if (atlas->PackIdLines < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoBakedLines)) + atlas->PackIdLines = atlas->AddCustomRectRegular(IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 2, IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1); + } +} + +// This is called/shared by both the stb_truetype and the FreeType builder. +void ImFontAtlasBuildFinish(ImFontAtlas* atlas) +{ + // Render into our custom data blocks + IM_ASSERT(atlas->TexPixelsAlpha8 != NULL || atlas->TexPixelsRGBA32 != NULL); + ImFontAtlasBuildRenderDefaultTexData(atlas); + ImFontAtlasBuildRenderLinesTexData(atlas); + + // Register custom rectangle glyphs + for (int i = 0; i < atlas->CustomRects.Size; i++) + { + const ImFontAtlasCustomRect* r = &atlas->CustomRects[i]; + if (r->Font == NULL || r->GlyphID == 0) + continue; + + // Will ignore ImFontConfig settings: GlyphMinAdvanceX, GlyphMinAdvanceY, GlyphExtraSpacing, PixelSnapH + IM_ASSERT(r->Font->ContainerAtlas == atlas); + ImVec2 uv0, uv1; + atlas->CalcCustomRectUV(r, &uv0, &uv1); + r->Font->AddGlyph(NULL, (ImWchar)r->GlyphID, r->GlyphOffset.x, r->GlyphOffset.y, r->GlyphOffset.x + r->Width, r->GlyphOffset.y + r->Height, uv0.x, uv0.y, uv1.x, uv1.y, r->GlyphAdvanceX); + } + + // Build all fonts lookup tables + for (int i = 0; i < atlas->Fonts.Size; i++) + if (atlas->Fonts[i]->DirtyLookupTables) + atlas->Fonts[i]->BuildLookupTable(); + + atlas->TexReady = true; +} + +// Retrieve list of range (2 int per range, values are inclusive) +const ImWchar* ImFontAtlas::GetGlyphRangesDefault() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesGreek() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0370, 0x03FF, // Greek and Coptic + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesKorean() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3131, 0x3163, // Korean alphabets + 0xAC00, 0xD7A3, // Korean characters + 0xFFFD, 0xFFFD, // Invalid + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseFull() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD, // Invalid + 0x4e00, 0x9FAF, // CJK Ideograms + 0, + }; + return &ranges[0]; +} + +static void UnpackAccumulativeOffsetsIntoRanges(int base_codepoint, const short* accumulative_offsets, int accumulative_offsets_count, ImWchar* out_ranges) +{ + for (int n = 0; n < accumulative_offsets_count; n++, out_ranges += 2) + { + out_ranges[0] = out_ranges[1] = (ImWchar)(base_codepoint + accumulative_offsets[n]); + base_codepoint += accumulative_offsets[n]; + } + out_ranges[0] = 0; +} + +//------------------------------------------------------------------------- +// [SECTION] ImFontAtlas glyph ranges helpers +//------------------------------------------------------------------------- + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon() +{ + // Store 2500 regularly used characters for Simplified Chinese. + // Sourced from https://zh.wiktionary.org/wiki/%E9%99%84%E5%BD%95:%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E5%AD%97%E8%A1%A8 + // This table covers 97.97% of all characters used during the month in July, 1987. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,3,2,1,2,2,1,1,1,1,1,5,2,1,2,3,3,3,2,2,4,1,1,1,2,1,5,2,3,1,2,1,2,1,1,2,1,1,2,2,1,4,1,1,1,1,5,10,1,2,19,2,1,2,1,2,1,2,1,2, + 1,5,1,6,3,2,1,2,2,1,1,1,4,8,5,1,1,4,1,1,3,1,2,1,5,1,2,1,1,1,10,1,1,5,2,4,6,1,4,2,2,2,12,2,1,1,6,1,1,1,4,1,1,4,6,5,1,4,2,2,4,10,7,1,1,4,2,4, + 2,1,4,3,6,10,12,5,7,2,14,2,9,1,1,6,7,10,4,7,13,1,5,4,8,4,1,1,2,28,5,6,1,1,5,2,5,20,2,2,9,8,11,2,9,17,1,8,6,8,27,4,6,9,20,11,27,6,68,2,2,1,1, + 1,2,1,2,2,7,6,11,3,3,1,1,3,1,2,1,1,1,1,1,3,1,1,8,3,4,1,5,7,2,1,4,4,8,4,2,1,2,1,1,4,5,6,3,6,2,12,3,1,3,9,2,4,3,4,1,5,3,3,1,3,7,1,5,1,1,1,1,2, + 3,4,5,2,3,2,6,1,1,2,1,7,1,7,3,4,5,15,2,2,1,5,3,22,19,2,1,1,1,1,2,5,1,1,1,6,1,1,12,8,2,9,18,22,4,1,1,5,1,16,1,2,7,10,15,1,1,6,2,4,1,2,4,1,6, + 1,1,3,2,4,1,6,4,5,1,2,1,1,2,1,10,3,1,3,2,1,9,3,2,5,7,2,19,4,3,6,1,1,1,1,1,4,3,2,1,1,1,2,5,3,1,1,1,2,2,1,1,2,1,1,2,1,3,1,1,1,3,7,1,4,1,1,2,1, + 1,2,1,2,4,4,3,8,1,1,1,2,1,3,5,1,3,1,3,4,6,2,2,14,4,6,6,11,9,1,15,3,1,28,5,2,5,5,3,1,3,4,5,4,6,14,3,2,3,5,21,2,7,20,10,1,2,19,2,4,28,28,2,3, + 2,1,14,4,1,26,28,42,12,40,3,52,79,5,14,17,3,2,2,11,3,4,6,3,1,8,2,23,4,5,8,10,4,2,7,3,5,1,1,6,3,1,2,2,2,5,28,1,1,7,7,20,5,3,29,3,17,26,1,8,4, + 27,3,6,11,23,5,3,4,6,13,24,16,6,5,10,25,35,7,3,2,3,3,14,3,6,2,6,1,4,2,3,8,2,1,1,3,3,3,4,1,1,13,2,2,4,5,2,1,14,14,1,2,2,1,4,5,2,3,1,14,3,12, + 3,17,2,16,5,1,2,1,8,9,3,19,4,2,2,4,17,25,21,20,28,75,1,10,29,103,4,1,2,1,1,4,2,4,1,2,3,24,2,2,2,1,1,2,1,3,8,1,1,1,2,1,1,3,1,1,1,6,1,5,3,1,1, + 1,3,4,1,1,5,2,1,5,6,13,9,16,1,1,1,1,3,2,3,2,4,5,2,5,2,2,3,7,13,7,2,2,1,1,1,1,2,3,3,2,1,6,4,9,2,1,14,2,14,2,1,18,3,4,14,4,11,41,15,23,15,23, + 176,1,3,4,1,1,1,1,5,3,1,2,3,7,3,1,1,2,1,2,4,4,6,2,4,1,9,7,1,10,5,8,16,29,1,1,2,2,3,1,3,5,2,4,5,4,1,1,2,2,3,3,7,1,6,10,1,17,1,44,4,6,2,1,1,6, + 5,4,2,10,1,6,9,2,8,1,24,1,2,13,7,8,8,2,1,4,1,3,1,3,3,5,2,5,10,9,4,9,12,2,1,6,1,10,1,1,7,7,4,10,8,3,1,13,4,3,1,6,1,3,5,2,1,2,17,16,5,2,16,6, + 1,4,2,1,3,3,6,8,5,11,11,1,3,3,2,4,6,10,9,5,7,4,7,4,7,1,1,4,2,1,3,6,8,7,1,6,11,5,5,3,24,9,4,2,7,13,5,1,8,82,16,61,1,1,1,4,2,2,16,10,3,8,1,1, + 6,4,2,1,3,1,1,1,4,3,8,4,2,2,1,1,1,1,1,6,3,5,1,1,4,6,9,2,1,1,1,2,1,7,2,1,6,1,5,4,4,3,1,8,1,3,3,1,3,2,2,2,2,3,1,6,1,2,1,2,1,3,7,1,8,2,1,2,1,5, + 2,5,3,5,10,1,2,1,1,3,2,5,11,3,9,3,5,1,1,5,9,1,2,1,5,7,9,9,8,1,3,3,3,6,8,2,3,2,1,1,32,6,1,2,15,9,3,7,13,1,3,10,13,2,14,1,13,10,2,1,3,10,4,15, + 2,15,15,10,1,3,9,6,9,32,25,26,47,7,3,2,3,1,6,3,4,3,2,8,5,4,1,9,4,2,2,19,10,6,2,3,8,1,2,2,4,2,1,9,4,4,4,6,4,8,9,2,3,1,1,1,1,3,5,5,1,3,8,4,6, + 2,1,4,12,1,5,3,7,13,2,5,8,1,6,1,2,5,14,6,1,5,2,4,8,15,5,1,23,6,62,2,10,1,1,8,1,2,2,10,4,2,2,9,2,1,1,3,2,3,1,5,3,3,2,1,3,8,1,1,1,11,3,1,1,4, + 3,7,1,14,1,2,3,12,5,2,5,1,6,7,5,7,14,11,1,3,1,8,9,12,2,1,11,8,4,4,2,6,10,9,13,1,1,3,1,5,1,3,2,4,4,1,18,2,3,14,11,4,29,4,2,7,1,3,13,9,2,2,5, + 3,5,20,7,16,8,5,72,34,6,4,22,12,12,28,45,36,9,7,39,9,191,1,1,1,4,11,8,4,9,2,3,22,1,1,1,1,4,17,1,7,7,1,11,31,10,2,4,8,2,3,2,1,4,2,16,4,32,2, + 3,19,13,4,9,1,5,2,14,8,1,1,3,6,19,6,5,1,16,6,2,10,8,5,1,2,3,1,5,5,1,11,6,6,1,3,3,2,6,3,8,1,1,4,10,7,5,7,7,5,8,9,2,1,3,4,1,1,3,1,3,3,2,6,16, + 1,4,6,3,1,10,6,1,3,15,2,9,2,10,25,13,9,16,6,2,2,10,11,4,3,9,1,2,6,6,5,4,30,40,1,10,7,12,14,33,6,3,6,7,3,1,3,1,11,14,4,9,5,12,11,49,18,51,31, + 140,31,2,2,1,5,1,8,1,10,1,4,4,3,24,1,10,1,3,6,6,16,3,4,5,2,1,4,2,57,10,6,22,2,22,3,7,22,6,10,11,36,18,16,33,36,2,5,5,1,1,1,4,10,1,4,13,2,7, + 5,2,9,3,4,1,7,43,3,7,3,9,14,7,9,1,11,1,1,3,7,4,18,13,1,14,1,3,6,10,73,2,2,30,6,1,11,18,19,13,22,3,46,42,37,89,7,3,16,34,2,2,3,9,1,7,1,1,1,2, + 2,4,10,7,3,10,3,9,5,28,9,2,6,13,7,3,1,3,10,2,7,2,11,3,6,21,54,85,2,1,4,2,2,1,39,3,21,2,2,5,1,1,1,4,1,1,3,4,15,1,3,2,4,4,2,3,8,2,20,1,8,7,13, + 4,1,26,6,2,9,34,4,21,52,10,4,4,1,5,12,2,11,1,7,2,30,12,44,2,30,1,1,3,6,16,9,17,39,82,2,2,24,7,1,7,3,16,9,14,44,2,1,2,1,2,3,5,2,4,1,6,7,5,3, + 2,6,1,11,5,11,2,1,18,19,8,1,3,24,29,2,1,3,5,2,2,1,13,6,5,1,46,11,3,5,1,1,5,8,2,10,6,12,6,3,7,11,2,4,16,13,2,5,1,1,2,2,5,2,28,5,2,23,10,8,4, + 4,22,39,95,38,8,14,9,5,1,13,5,4,3,13,12,11,1,9,1,27,37,2,5,4,4,63,211,95,2,2,2,1,3,5,2,1,1,2,2,1,1,1,3,2,4,1,2,1,1,5,2,2,1,1,2,3,1,3,1,1,1, + 3,1,4,2,1,3,6,1,1,3,7,15,5,3,2,5,3,9,11,4,2,22,1,6,3,8,7,1,4,28,4,16,3,3,25,4,4,27,27,1,4,1,2,2,7,1,3,5,2,28,8,2,14,1,8,6,16,25,3,3,3,14,3, + 3,1,1,2,1,4,6,3,8,4,1,1,1,2,3,6,10,6,2,3,18,3,2,5,5,4,3,1,5,2,5,4,23,7,6,12,6,4,17,11,9,5,1,1,10,5,12,1,1,11,26,33,7,3,6,1,17,7,1,5,12,1,11, + 2,4,1,8,14,17,23,1,2,1,7,8,16,11,9,6,5,2,6,4,16,2,8,14,1,11,8,9,1,1,1,9,25,4,11,19,7,2,15,2,12,8,52,7,5,19,2,16,4,36,8,1,16,8,24,26,4,6,2,9, + 5,4,36,3,28,12,25,15,37,27,17,12,59,38,5,32,127,1,2,9,17,14,4,1,2,1,1,8,11,50,4,14,2,19,16,4,17,5,4,5,26,12,45,2,23,45,104,30,12,8,3,10,2,2, + 3,3,1,4,20,7,2,9,6,15,2,20,1,3,16,4,11,15,6,134,2,5,59,1,2,2,2,1,9,17,3,26,137,10,211,59,1,2,4,1,4,1,1,1,2,6,2,3,1,1,2,3,2,3,1,3,4,4,2,3,3, + 1,4,3,1,7,2,2,3,1,2,1,3,3,3,2,2,3,2,1,3,14,6,1,3,2,9,6,15,27,9,34,145,1,1,2,1,1,1,1,2,1,1,1,1,2,2,2,3,1,2,1,1,1,2,3,5,8,3,5,2,4,1,3,2,2,2,12, + 4,1,1,1,10,4,5,1,20,4,16,1,15,9,5,12,2,9,2,5,4,2,26,19,7,1,26,4,30,12,15,42,1,6,8,172,1,1,4,2,1,1,11,2,2,4,2,1,2,1,10,8,1,2,1,4,5,1,2,5,1,8, + 4,1,3,4,2,1,6,2,1,3,4,1,2,1,1,1,1,12,5,7,2,4,3,1,1,1,3,3,6,1,2,2,3,3,3,2,1,2,12,14,11,6,6,4,12,2,8,1,7,10,1,35,7,4,13,15,4,3,23,21,28,52,5, + 26,5,6,1,7,10,2,7,53,3,2,1,1,1,2,163,532,1,10,11,1,3,3,4,8,2,8,6,2,2,23,22,4,2,2,4,2,1,3,1,3,3,5,9,8,2,1,2,8,1,10,2,12,21,20,15,105,2,3,1,1, + 3,2,3,1,1,2,5,1,4,15,11,19,1,1,1,1,5,4,5,1,1,2,5,3,5,12,1,2,5,1,11,1,1,15,9,1,4,5,3,26,8,2,1,3,1,1,15,19,2,12,1,2,5,2,7,2,19,2,20,6,26,7,5, + 2,2,7,34,21,13,70,2,128,1,1,2,1,1,2,1,1,3,2,2,2,15,1,4,1,3,4,42,10,6,1,49,85,8,1,2,1,1,4,4,2,3,6,1,5,7,4,3,211,4,1,2,1,2,5,1,2,4,2,2,6,5,6, + 10,3,4,48,100,6,2,16,296,5,27,387,2,2,3,7,16,8,5,38,15,39,21,9,10,3,7,59,13,27,21,47,5,21,6 + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD // Invalid + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00) * 2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesJapanese() +{ + // 2999 ideograms code points for Japanese + // - 2136 Joyo (meaning "for regular use" or "for common use") Kanji code points + // - 863 Jinmeiyo (meaning "for personal name") Kanji code points + // - Sourced from the character information database of the Information-technology Promotion Agency, Japan + // - https://mojikiban.ipa.go.jp/mji/ + // - Available under the terms of the Creative Commons Attribution-ShareAlike 2.1 Japan (CC BY-SA 2.1 JP). + // - https://creativecommons.org/licenses/by-sa/2.1/jp/deed.en + // - https://creativecommons.org/licenses/by-sa/2.1/jp/legalcode + // - You can generate this code by the script at: + // - https://github.com/vaiorabbit/everyday_use_kanji + // - References: + // - List of Joyo Kanji + // - (Official list by the Agency for Cultural Affairs) https://www.bunka.go.jp/kokugo_nihongo/sisaku/joho/joho/kakuki/14/tosin02/index.html + // - (Wikipedia) https://en.wikipedia.org/wiki/List_of_j%C5%8Dy%C5%8D_kanji + // - List of Jinmeiyo Kanji + // - (Official list by the Ministry of Justice) http://www.moj.go.jp/MINJI/minji86.html + // - (Wikipedia) https://en.wikipedia.org/wiki/Jinmeiy%C5%8D_kanji + // - Missing 1 Joyo Kanji: U+20B9F (Kun'yomi: Shikaru, On'yomi: Shitsu,shichi), see https://github.com/ocornut/imgui/pull/3627 for details. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,3,3,2,2,1,5,3,5,7,5,6,1,2,1,7,2,6,3,1,8,1,1,4,1,1,18,2,11,2,6,2,1,2,1,5,1,2,1,3,1,2,1,2,3,3,1,1,2,3,1,1,1,12,7,9,1,4,5,1, + 1,2,1,10,1,1,9,2,2,4,5,6,9,3,1,1,1,1,9,3,18,5,2,2,2,2,1,6,3,7,1,1,1,1,2,2,4,2,1,23,2,10,4,3,5,2,4,10,2,4,13,1,6,1,9,3,1,1,6,6,7,6,3,1,2,11,3, + 2,2,3,2,15,2,2,5,4,3,6,4,1,2,5,2,12,16,6,13,9,13,2,1,1,7,16,4,7,1,19,1,5,1,2,2,7,7,8,2,6,5,4,9,18,7,4,5,9,13,11,8,15,2,1,1,1,2,1,2,2,1,2,2,8, + 2,9,3,3,1,1,4,4,1,1,1,4,9,1,4,3,5,5,2,7,5,3,4,8,2,1,13,2,3,3,1,14,1,1,4,5,1,3,6,1,5,2,1,1,3,3,3,3,1,1,2,7,6,6,7,1,4,7,6,1,1,1,1,1,12,3,3,9,5, + 2,6,1,5,6,1,2,3,18,2,4,14,4,1,3,6,1,1,6,3,5,5,3,2,2,2,2,12,3,1,4,2,3,2,3,11,1,7,4,1,2,1,3,17,1,9,1,24,1,1,4,2,2,4,1,2,7,1,1,1,3,1,2,2,4,15,1, + 1,2,1,1,2,1,5,2,5,20,2,5,9,1,10,8,7,6,1,1,1,1,1,1,6,2,1,2,8,1,1,1,1,5,1,1,3,1,1,1,1,3,1,1,12,4,1,3,1,1,1,1,1,10,3,1,7,5,13,1,2,3,4,6,1,1,30, + 2,9,9,1,15,38,11,3,1,8,24,7,1,9,8,10,2,1,9,31,2,13,6,2,9,4,49,5,2,15,2,1,10,2,1,1,1,2,2,6,15,30,35,3,14,18,8,1,16,10,28,12,19,45,38,1,3,2,3, + 13,2,1,7,3,6,5,3,4,3,1,5,7,8,1,5,3,18,5,3,6,1,21,4,24,9,24,40,3,14,3,21,3,2,1,2,4,2,3,1,15,15,6,5,1,1,3,1,5,6,1,9,7,3,3,2,1,4,3,8,21,5,16,4, + 5,2,10,11,11,3,6,3,2,9,3,6,13,1,2,1,1,1,1,11,12,6,6,1,4,2,6,5,2,1,1,3,3,6,13,3,1,1,5,1,2,3,3,14,2,1,2,2,2,5,1,9,5,1,1,6,12,3,12,3,4,13,2,14, + 2,8,1,17,5,1,16,4,2,2,21,8,9,6,23,20,12,25,19,9,38,8,3,21,40,25,33,13,4,3,1,4,1,2,4,1,2,5,26,2,1,1,2,1,3,6,2,1,1,1,1,1,1,2,3,1,1,1,9,2,3,1,1, + 1,3,6,3,2,1,1,6,6,1,8,2,2,2,1,4,1,2,3,2,7,3,2,4,1,2,1,2,2,1,1,1,1,1,3,1,2,5,4,10,9,4,9,1,1,1,1,1,1,5,3,2,1,6,4,9,6,1,10,2,31,17,8,3,7,5,40,1, + 7,7,1,6,5,2,10,7,8,4,15,39,25,6,28,47,18,10,7,1,3,1,1,2,1,1,1,3,3,3,1,1,1,3,4,2,1,4,1,3,6,10,7,8,6,2,2,1,3,3,2,5,8,7,9,12,2,15,1,1,4,1,2,1,1, + 1,3,2,1,3,3,5,6,2,3,2,10,1,4,2,8,1,1,1,11,6,1,21,4,16,3,1,3,1,4,2,3,6,5,1,3,1,1,3,3,4,6,1,1,10,4,2,7,10,4,7,4,2,9,4,3,1,1,1,4,1,8,3,4,1,3,1, + 6,1,4,2,1,4,7,2,1,8,1,4,5,1,1,2,2,4,6,2,7,1,10,1,1,3,4,11,10,8,21,4,6,1,3,5,2,1,2,28,5,5,2,3,13,1,2,3,1,4,2,1,5,20,3,8,11,1,3,3,3,1,8,10,9,2, + 10,9,2,3,1,1,2,4,1,8,3,6,1,7,8,6,11,1,4,29,8,4,3,1,2,7,13,1,4,1,6,2,6,12,12,2,20,3,2,3,6,4,8,9,2,7,34,5,1,18,6,1,1,4,4,5,7,9,1,2,2,4,3,4,1,7, + 2,2,2,6,2,3,25,5,3,6,1,4,6,7,4,2,1,4,2,13,6,4,4,3,1,5,3,4,4,3,2,1,1,4,1,2,1,1,3,1,11,1,6,3,1,7,3,6,2,8,8,6,9,3,4,11,3,2,10,12,2,5,11,1,6,4,5, + 3,1,8,5,4,6,6,3,5,1,1,3,2,1,2,2,6,17,12,1,10,1,6,12,1,6,6,19,9,6,16,1,13,4,4,15,7,17,6,11,9,15,12,6,7,2,1,2,2,15,9,3,21,4,6,49,18,7,3,2,3,1, + 6,8,2,2,6,2,9,1,3,6,4,4,1,2,16,2,5,2,1,6,2,3,5,3,1,2,5,1,2,1,9,3,1,8,6,4,8,11,3,1,1,1,1,3,1,13,8,4,1,3,2,2,1,4,1,11,1,5,2,1,5,2,5,8,6,1,1,7, + 4,3,8,3,2,7,2,1,5,1,5,2,4,7,6,2,8,5,1,11,4,5,3,6,18,1,2,13,3,3,1,21,1,1,4,1,4,1,1,1,8,1,2,2,7,1,2,4,2,2,9,2,1,1,1,4,3,6,3,12,5,1,1,1,5,6,3,2, + 4,8,2,2,4,2,7,1,8,9,5,2,3,2,1,3,2,13,7,14,6,5,1,1,2,1,4,2,23,2,1,1,6,3,1,4,1,15,3,1,7,3,9,14,1,3,1,4,1,1,5,8,1,3,8,3,8,15,11,4,14,4,4,2,5,5, + 1,7,1,6,14,7,7,8,5,15,4,8,6,5,6,2,1,13,1,20,15,11,9,2,5,6,2,11,2,6,2,5,1,5,8,4,13,19,25,4,1,1,11,1,34,2,5,9,14,6,2,2,6,1,1,14,1,3,14,13,1,6, + 12,21,14,14,6,32,17,8,32,9,28,1,2,4,11,8,3,1,14,2,5,15,1,1,1,1,3,6,4,1,3,4,11,3,1,1,11,30,1,5,1,4,1,5,8,1,1,3,2,4,3,17,35,2,6,12,17,3,1,6,2, + 1,1,12,2,7,3,3,2,1,16,2,8,3,6,5,4,7,3,3,8,1,9,8,5,1,2,1,3,2,8,1,2,9,12,1,1,2,3,8,3,24,12,4,3,7,5,8,3,3,3,3,3,3,1,23,10,3,1,2,2,6,3,1,16,1,16, + 22,3,10,4,11,6,9,7,7,3,6,2,2,2,4,10,2,1,1,2,8,7,1,6,4,1,3,3,3,5,10,12,12,2,3,12,8,15,1,1,16,6,6,1,5,9,11,4,11,4,2,6,12,1,17,5,13,1,4,9,5,1,11, + 2,1,8,1,5,7,28,8,3,5,10,2,17,3,38,22,1,2,18,12,10,4,38,18,1,4,44,19,4,1,8,4,1,12,1,4,31,12,1,14,7,75,7,5,10,6,6,13,3,2,11,11,3,2,5,28,15,6,18, + 18,5,6,4,3,16,1,7,18,7,36,3,5,3,1,7,1,9,1,10,7,2,4,2,6,2,9,7,4,3,32,12,3,7,10,2,23,16,3,1,12,3,31,4,11,1,3,8,9,5,1,30,15,6,12,3,2,2,11,19,9, + 14,2,6,2,3,19,13,17,5,3,3,25,3,14,1,1,1,36,1,3,2,19,3,13,36,9,13,31,6,4,16,34,2,5,4,2,3,3,5,1,1,1,4,3,1,17,3,2,3,5,3,1,3,2,3,5,6,3,12,11,1,3, + 1,2,26,7,12,7,2,14,3,3,7,7,11,25,25,28,16,4,36,1,2,1,6,2,1,9,3,27,17,4,3,4,13,4,1,3,2,2,1,10,4,2,4,6,3,8,2,1,18,1,1,24,2,2,4,33,2,3,63,7,1,6, + 40,7,3,4,4,2,4,15,18,1,16,1,1,11,2,41,14,1,3,18,13,3,2,4,16,2,17,7,15,24,7,18,13,44,2,2,3,6,1,1,7,5,1,7,1,4,3,3,5,10,8,2,3,1,8,1,1,27,4,2,1, + 12,1,2,1,10,6,1,6,7,5,2,3,7,11,5,11,3,6,6,2,3,15,4,9,1,1,2,1,2,11,2,8,12,8,5,4,2,3,1,5,2,2,1,14,1,12,11,4,1,11,17,17,4,3,2,5,5,7,3,1,5,9,9,8, + 2,5,6,6,13,13,2,1,2,6,1,2,2,49,4,9,1,2,10,16,7,8,4,3,2,23,4,58,3,29,1,14,19,19,11,11,2,7,5,1,3,4,6,2,18,5,12,12,17,17,3,3,2,4,1,6,2,3,4,3,1, + 1,1,1,5,1,1,9,1,3,1,3,6,1,8,1,1,2,6,4,14,3,1,4,11,4,1,3,32,1,2,4,13,4,1,2,4,2,1,3,1,11,1,4,2,1,4,4,6,3,5,1,6,5,7,6,3,23,3,5,3,5,3,3,13,3,9,10, + 1,12,10,2,3,18,13,7,160,52,4,2,2,3,2,14,5,4,12,4,6,4,1,20,4,11,6,2,12,27,1,4,1,2,2,7,4,5,2,28,3,7,25,8,3,19,3,6,10,2,2,1,10,2,5,4,1,3,4,1,5, + 3,2,6,9,3,6,2,16,3,3,16,4,5,5,3,2,1,2,16,15,8,2,6,21,2,4,1,22,5,8,1,1,21,11,2,1,11,11,19,13,12,4,2,3,2,3,6,1,8,11,1,4,2,9,5,2,1,11,2,9,1,1,2, + 14,31,9,3,4,21,14,4,8,1,7,2,2,2,5,1,4,20,3,3,4,10,1,11,9,8,2,1,4,5,14,12,14,2,17,9,6,31,4,14,1,20,13,26,5,2,7,3,6,13,2,4,2,19,6,2,2,18,9,3,5, + 12,12,14,4,6,2,3,6,9,5,22,4,5,25,6,4,8,5,2,6,27,2,35,2,16,3,7,8,8,6,6,5,9,17,2,20,6,19,2,13,3,1,1,1,4,17,12,2,14,7,1,4,18,12,38,33,2,10,1,1, + 2,13,14,17,11,50,6,33,20,26,74,16,23,45,50,13,38,33,6,6,7,4,4,2,1,3,2,5,8,7,8,9,3,11,21,9,13,1,3,10,6,7,1,2,2,18,5,5,1,9,9,2,68,9,19,13,2,5, + 1,4,4,7,4,13,3,9,10,21,17,3,26,2,1,5,2,4,5,4,1,7,4,7,3,4,2,1,6,1,1,20,4,1,9,2,2,1,3,3,2,3,2,1,1,1,20,2,3,1,6,2,3,6,2,4,8,1,3,2,10,3,5,3,4,4, + 3,4,16,1,6,1,10,2,4,2,1,1,2,10,11,2,2,3,1,24,31,4,10,10,2,5,12,16,164,15,4,16,7,9,15,19,17,1,2,1,1,5,1,1,1,1,1,3,1,4,3,1,3,1,3,1,2,1,1,3,3,7, + 2,8,1,2,2,2,1,3,4,3,7,8,12,92,2,10,3,1,3,14,5,25,16,42,4,7,7,4,2,21,5,27,26,27,21,25,30,31,2,1,5,13,3,22,5,6,6,11,9,12,1,5,9,7,5,5,22,60,3,5, + 13,1,1,8,1,1,3,3,2,1,9,3,3,18,4,1,2,3,7,6,3,1,2,3,9,1,3,1,3,2,1,3,1,1,1,2,1,11,3,1,6,9,1,3,2,3,1,2,1,5,1,1,4,3,4,1,2,2,4,4,1,7,2,1,2,2,3,5,13, + 18,3,4,14,9,9,4,16,3,7,5,8,2,6,48,28,3,1,1,4,2,14,8,2,9,2,1,15,2,4,3,2,10,16,12,8,7,1,1,3,1,1,1,2,7,4,1,6,4,38,39,16,23,7,15,15,3,2,12,7,21, + 37,27,6,5,4,8,2,10,8,8,6,5,1,2,1,3,24,1,16,17,9,23,10,17,6,1,51,55,44,13,294,9,3,6,2,4,2,2,15,1,1,1,13,21,17,68,14,8,9,4,1,4,9,3,11,7,1,1,1, + 5,6,3,2,1,1,1,2,3,8,1,2,2,4,1,5,5,2,1,4,3,7,13,4,1,4,1,3,1,1,1,5,5,10,1,6,1,5,2,1,5,2,4,1,4,5,7,3,18,2,9,11,32,4,3,3,2,4,7,11,16,9,11,8,13,38, + 32,8,4,2,1,1,2,1,2,4,4,1,1,1,4,1,21,3,11,1,16,1,1,6,1,3,2,4,9,8,57,7,44,1,3,3,13,3,10,1,1,7,5,2,7,21,47,63,3,15,4,7,1,16,1,1,2,8,2,3,42,15,4, + 1,29,7,22,10,3,78,16,12,20,18,4,67,11,5,1,3,15,6,21,31,32,27,18,13,71,35,5,142,4,10,1,2,50,19,33,16,35,37,16,19,27,7,1,133,19,1,4,8,7,20,1,4, + 4,1,10,3,1,6,1,2,51,5,40,15,24,43,22928,11,1,13,154,70,3,1,1,7,4,10,1,2,1,1,2,1,2,1,2,2,1,1,2,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1, + 3,2,1,1,1,1,2,1,1, + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD // Invalid + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00)*2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0400, 0x052F, // Cyrillic + Cyrillic Supplement + 0x2DE0, 0x2DFF, // Cyrillic Extended-A + 0xA640, 0xA69F, // Cyrillic Extended-B + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesThai() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x2010, 0x205E, // Punctuations + 0x0E00, 0x0E7F, // Thai + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesVietnamese() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x0102, 0x0103, + 0x0110, 0x0111, + 0x0128, 0x0129, + 0x0168, 0x0169, + 0x01A0, 0x01A1, + 0x01AF, 0x01B0, + 0x1EA0, 0x1EF9, + 0, + }; + return &ranges[0]; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontGlyphRangesBuilder +//----------------------------------------------------------------------------- + +void ImFontGlyphRangesBuilder::AddText(const char* text, const char* text_end) +{ + while (text_end ? (text < text_end) : *text) + { + unsigned int c = 0; + int c_len = ImTextCharFromUtf8(&c, text, text_end); + text += c_len; + if (c_len == 0) + break; + AddChar((ImWchar)c); + } +} + +void ImFontGlyphRangesBuilder::AddRanges(const ImWchar* ranges) +{ + for (; ranges[0]; ranges += 2) + for (unsigned int c = ranges[0]; c <= ranges[1] && c <= IM_UNICODE_CODEPOINT_MAX; c++) //-V560 + AddChar((ImWchar)c); +} + +void ImFontGlyphRangesBuilder::BuildRanges(ImVector* out_ranges) +{ + const int max_codepoint = IM_UNICODE_CODEPOINT_MAX; + for (int n = 0; n <= max_codepoint; n++) + if (GetBit(n)) + { + out_ranges->push_back((ImWchar)n); + while (n < max_codepoint && GetBit(n + 1)) + n++; + out_ranges->push_back((ImWchar)n); + } + out_ranges->push_back(0); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFont +//----------------------------------------------------------------------------- + +ImFont::ImFont() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + FallbackChar = (ImWchar)-1; + EllipsisChar = (ImWchar)-1; + DotChar = (ImWchar)-1; + FallbackGlyph = NULL; + ContainerAtlas = NULL; + ConfigData = NULL; + ConfigDataCount = 0; + DirtyLookupTables = false; + Scale = 1.0f; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); +} + +ImFont::~ImFont() +{ + ClearOutputData(); +} + +void ImFont::ClearOutputData() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + Glyphs.clear(); + IndexAdvanceX.clear(); + IndexLookup.clear(); + FallbackGlyph = NULL; + ContainerAtlas = NULL; + DirtyLookupTables = true; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; +} + +static ImWchar FindFirstExistingGlyph(ImFont* font, const ImWchar* candidate_chars, int candidate_chars_count) +{ + for (int n = 0; n < candidate_chars_count; n++) + if (font->FindGlyphNoFallback(candidate_chars[n]) != NULL) + return candidate_chars[n]; + return (ImWchar)-1; +} + +void ImFont::BuildLookupTable() +{ + int max_codepoint = 0; + for (int i = 0; i != Glyphs.Size; i++) + max_codepoint = ImMax(max_codepoint, (int)Glyphs[i].Codepoint); + + // Build lookup table + IM_ASSERT(Glyphs.Size < 0xFFFF); // -1 is reserved + IndexAdvanceX.clear(); + IndexLookup.clear(); + DirtyLookupTables = false; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); + GrowIndex(max_codepoint + 1); + for (int i = 0; i < Glyphs.Size; i++) + { + int codepoint = (int)Glyphs[i].Codepoint; + IndexAdvanceX[codepoint] = Glyphs[i].AdvanceX; + IndexLookup[codepoint] = (ImWchar)i; + + // Mark 4K page as used + const int page_n = codepoint / 4096; + Used4kPagesMap[page_n >> 3] |= 1 << (page_n & 7); + } + + // Create a glyph to handle TAB + // FIXME: Needs proper TAB handling but it needs to be contextualized (or we could arbitrary say that each string starts at "column 0" ?) + if (FindGlyph((ImWchar)' ')) + { + if (Glyphs.back().Codepoint != '\t') // So we can call this function multiple times (FIXME: Flaky) + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& tab_glyph = Glyphs.back(); + tab_glyph = *FindGlyph((ImWchar)' '); + tab_glyph.Codepoint = '\t'; + tab_glyph.AdvanceX *= IM_TABSIZE; + IndexAdvanceX[(int)tab_glyph.Codepoint] = (float)tab_glyph.AdvanceX; + IndexLookup[(int)tab_glyph.Codepoint] = (ImWchar)(Glyphs.Size - 1); + } + + // Mark special glyphs as not visible (note that AddGlyph already mark as non-visible glyphs with zero-size polygons) + SetGlyphVisible((ImWchar)' ', false); + SetGlyphVisible((ImWchar)'\t', false); + + // Ellipsis character is required for rendering elided text. We prefer using U+2026 (horizontal ellipsis). + // However some old fonts may contain ellipsis at U+0085. Here we auto-detect most suitable ellipsis character. + // FIXME: Note that 0x2026 is rarely included in our font ranges. Because of this we are more likely to use three individual dots. + const ImWchar ellipsis_chars[] = { (ImWchar)0x2026, (ImWchar)0x0085 }; + const ImWchar dots_chars[] = { (ImWchar)'.', (ImWchar)0xFF0E }; + if (EllipsisChar == (ImWchar)-1) + EllipsisChar = FindFirstExistingGlyph(this, ellipsis_chars, IM_ARRAYSIZE(ellipsis_chars)); + if (DotChar == (ImWchar)-1) + DotChar = FindFirstExistingGlyph(this, dots_chars, IM_ARRAYSIZE(dots_chars)); + + // Setup fallback character + const ImWchar fallback_chars[] = { (ImWchar)IM_UNICODE_CODEPOINT_INVALID, (ImWchar)'?', (ImWchar)' ' }; + FallbackGlyph = FindGlyphNoFallback(FallbackChar); + if (FallbackGlyph == NULL) + { + FallbackChar = FindFirstExistingGlyph(this, fallback_chars, IM_ARRAYSIZE(fallback_chars)); + FallbackGlyph = FindGlyphNoFallback(FallbackChar); + if (FallbackGlyph == NULL) + { + FallbackGlyph = &Glyphs.back(); + FallbackChar = (ImWchar)FallbackGlyph->Codepoint; + } + } + + FallbackAdvanceX = FallbackGlyph->AdvanceX; + for (int i = 0; i < max_codepoint + 1; i++) + if (IndexAdvanceX[i] < 0.0f) + IndexAdvanceX[i] = FallbackAdvanceX; +} + +// API is designed this way to avoid exposing the 4K page size +// e.g. use with IsGlyphRangeUnused(0, 255) +bool ImFont::IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last) +{ + unsigned int page_begin = (c_begin / 4096); + unsigned int page_last = (c_last / 4096); + for (unsigned int page_n = page_begin; page_n <= page_last; page_n++) + if ((page_n >> 3) < sizeof(Used4kPagesMap)) + if (Used4kPagesMap[page_n >> 3] & (1 << (page_n & 7))) + return false; + return true; +} + +void ImFont::SetGlyphVisible(ImWchar c, bool visible) +{ + if (ImFontGlyph* glyph = (ImFontGlyph*)(void*)FindGlyph((ImWchar)c)) + glyph->Visible = visible ? 1 : 0; +} + +void ImFont::GrowIndex(int new_size) +{ + IM_ASSERT(IndexAdvanceX.Size == IndexLookup.Size); + if (new_size <= IndexLookup.Size) + return; + IndexAdvanceX.resize(new_size, -1.0f); + IndexLookup.resize(new_size, (ImWchar)-1); +} + +// x0/y0/x1/y1 are offset from the character upper-left layout position, in pixels. Therefore x0/y0 are often fairly close to zero. +// Not to be mistaken with texture coordinates, which are held by u0/v0/u1/v1 in normalized format (0.0..1.0 on each texture axis). +// 'cfg' is not necessarily == 'this->ConfigData' because multiple source fonts+configs can be used to build one target font. +void ImFont::AddGlyph(const ImFontConfig* cfg, ImWchar codepoint, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x) +{ + if (cfg != NULL) + { + // Clamp & recenter if needed + const float advance_x_original = advance_x; + advance_x = ImClamp(advance_x, cfg->GlyphMinAdvanceX, cfg->GlyphMaxAdvanceX); + if (advance_x != advance_x_original) + { + float char_off_x = cfg->PixelSnapH ? ImFloor((advance_x - advance_x_original) * 0.5f) : (advance_x - advance_x_original) * 0.5f; + x0 += char_off_x; + x1 += char_off_x; + } + + // Snap to pixel + if (cfg->PixelSnapH) + advance_x = IM_ROUND(advance_x); + + // Bake spacing + advance_x += cfg->GlyphExtraSpacing.x; + } + + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& glyph = Glyphs.back(); + glyph.Codepoint = (unsigned int)codepoint; + glyph.Visible = (x0 != x1) && (y0 != y1); + glyph.Colored = false; + glyph.X0 = x0; + glyph.Y0 = y0; + glyph.X1 = x1; + glyph.Y1 = y1; + glyph.U0 = u0; + glyph.V0 = v0; + glyph.U1 = u1; + glyph.V1 = v1; + glyph.AdvanceX = advance_x; + + // Compute rough surface usage metrics (+1 to account for average padding, +0.99 to round) + // We use (U1-U0)*TexWidth instead of X1-X0 to account for oversampling. + float pad = ContainerAtlas->TexGlyphPadding + 0.99f; + DirtyLookupTables = true; + MetricsTotalSurface += (int)((glyph.U1 - glyph.U0) * ContainerAtlas->TexWidth + pad) * (int)((glyph.V1 - glyph.V0) * ContainerAtlas->TexHeight + pad); +} + +void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst) +{ + IM_ASSERT(IndexLookup.Size > 0); // Currently this can only be called AFTER the font has been built, aka after calling ImFontAtlas::GetTexDataAs*() function. + unsigned int index_size = (unsigned int)IndexLookup.Size; + + if (dst < index_size && IndexLookup.Data[dst] == (ImWchar)-1 && !overwrite_dst) // 'dst' already exists + return; + if (src >= index_size && dst >= index_size) // both 'dst' and 'src' don't exist -> no-op + return; + + GrowIndex(dst + 1); + IndexLookup[dst] = (src < index_size) ? IndexLookup.Data[src] : (ImWchar)-1; + IndexAdvanceX[dst] = (src < index_size) ? IndexAdvanceX.Data[src] : 1.0f; +} + +const ImFontGlyph* ImFont::FindGlyph(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return FallbackGlyph; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return FallbackGlyph; + return &Glyphs.Data[i]; +} + +const ImFontGlyph* ImFont::FindGlyphNoFallback(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return NULL; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return NULL; + return &Glyphs.Data[i]; +} + +// Wrapping skips upcoming blanks +static inline const char* CalcWordWrapNextLineStartA(const char* text, const char* text_end) +{ + while (text < text_end && ImCharIsBlankA(*text)) + text++; + if (*text == '\n') + text++; + return text; +} + +// Simple word-wrapping for English, not full-featured. Please submit failing cases! +// This will return the next location to wrap from. If no wrapping if necessary, this will fast-forward to e.g. text_end. +// FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) +const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const +{ + // For references, possible wrap point marked with ^ + // "aaa bbb, ccc,ddd. eee fff. ggg!" + // ^ ^ ^ ^ ^__ ^ ^ + + // List of hardcoded separators: .,;!?'" + + // Skip extra blanks after a line returns (that includes not counting them in width computation) + // e.g. "Hello world" --> "Hello" "World" + + // Cut words that cannot possibly fit within one line. + // e.g.: "The tropical fish" with ~5 characters worth of width --> "The tr" "opical" "fish" + float line_width = 0.0f; + float word_width = 0.0f; + float blank_width = 0.0f; + wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters + + const char* word_end = text; + const char* prev_word_end = NULL; + bool inside_word = true; + + const char* s = text; + while (s < text_end) + { + unsigned int c = (unsigned int)*s; + const char* next_s; + if (c < 0x80) + next_s = s + 1; + else + next_s = s + ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) + break; + + if (c < 32) + { + if (c == '\n') + { + line_width = word_width = blank_width = 0.0f; + inside_word = true; + s = next_s; + continue; + } + if (c == '\r') + { + s = next_s; + continue; + } + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX); + if (ImCharIsBlankW(c)) + { + if (inside_word) + { + line_width += blank_width; + blank_width = 0.0f; + word_end = s; + } + blank_width += char_width; + inside_word = false; + } + else + { + word_width += char_width; + if (inside_word) + { + word_end = next_s; + } + else + { + prev_word_end = word_end; + line_width += word_width + blank_width; + word_width = blank_width = 0.0f; + } + + // Allow wrapping after punctuation. + inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"'); + } + + // We ignore blank width at the end of the line (they can be skipped) + if (line_width + word_width > wrap_width) + { + // Words that cannot possibly fit within an entire line will be cut anywhere. + if (word_width < wrap_width) + s = prev_word_end ? prev_word_end : word_end; + break; + } + + s = next_s; + } + + // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. + // +1 may not be a character start point in UTF-8 but it's ok because caller loops use (text >= word_wrap_eol). + if (s == text && text < text_end) + return s + 1; + return s; +} + +ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // FIXME-OPT: Need to avoid this. + + const float line_height = size; + const float scale = size / FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const bool word_wrap_enabled = (wrap_width > 0.0f); + const char* word_wrap_eol = NULL; + + const char* s = text_begin; + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); + + if (s >= word_wrap_eol) + { + if (text_size.x < line_width) + text_size.x = line_width; + text_size.y += line_height; + line_width = 0.0f; + word_wrap_eol = NULL; + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks + continue; + } + } + + // Decode and advance source + const char* prev_s = s; + unsigned int c = (unsigned int)*s; + if (c < 0x80) + { + s += 1; + } + else + { + s += ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) // Malformed UTF-8? + break; + } + + if (c < 32) + { + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + continue; + } + if (c == '\r') + continue; + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX) * scale; + if (line_width + char_width >= max_width) + { + s = prev_s; + break; + } + + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (line_width > 0 || text_size.y == 0.0f) + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. +void ImFont::RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const +{ + const ImFontGlyph* glyph = FindGlyph(c); + if (!glyph || !glyph->Visible) + return; + if (glyph->Colored) + col |= ~IM_COL32_A_MASK; + float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f; + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); + draw_list->PrimReserve(6, 4); + draw_list->PrimRectUV(ImVec2(x + glyph->X0 * scale, y + glyph->Y0 * scale), ImVec2(x + glyph->X1 * scale, y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); +} + +// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. +void ImFont::RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // ImGui:: functions generally already provides a valid text_end, so this is merely to handle direct calls. + + // Align to be pixel perfect + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); + if (y > clip_rect.w) + return; + + const float start_x = x; + const float scale = size / FontSize; + const float line_height = FontSize * scale; + const bool word_wrap_enabled = (wrap_width > 0.0f); + + // Fast-forward to first visible line + const char* s = text_begin; + if (y + line_height < clip_rect.y) + while (y + line_height < clip_rect.y && s < text_end) + { + const char* line_end = (const char*)memchr(s, '\n', text_end - s); + if (word_wrap_enabled) + { + // FIXME-OPT: This is not optimal as do first do a search for \n before calling CalcWordWrapPositionA(). + // If the specs for CalcWordWrapPositionA() were reworked to optionally return on \n we could combine both. + // However it is still better than nothing performing the fast-forward! + s = CalcWordWrapPositionA(scale, s, line_end, wrap_width); + s = CalcWordWrapNextLineStartA(s, text_end); + } + else + { + s = line_end ? line_end + 1 : text_end; + } + y += line_height; + } + + // For large text, scan for the last visible line in order to avoid over-reserving in the call to PrimReserve() + // Note that very large horizontal line will still be affected by the issue (e.g. a one megabyte string buffer without a newline will likely crash atm) + if (text_end - s > 10000 && !word_wrap_enabled) + { + const char* s_end = s; + float y_end = y; + while (y_end < clip_rect.w && s_end < text_end) + { + s_end = (const char*)memchr(s_end, '\n', text_end - s_end); + s_end = s_end ? s_end + 1 : text_end; + y_end += line_height; + } + text_end = s_end; + } + if (s == text_end) + return; + + // Reserve vertices for remaining worse case (over-reserving is useful and easily amortized) + const int vtx_count_max = (int)(text_end - s) * 4; + const int idx_count_max = (int)(text_end - s) * 6; + const int idx_expected_size = draw_list->IdxBuffer.Size + idx_count_max; + draw_list->PrimReserve(idx_count_max, vtx_count_max); + + ImDrawVert* vtx_write = draw_list->_VtxWritePtr; + ImDrawIdx* idx_write = draw_list->_IdxWritePtr; + unsigned int vtx_current_idx = draw_list->_VtxCurrentIdx; + + const ImU32 col_untinted = col | ~IM_COL32_A_MASK; + const char* word_wrap_eol = NULL; + + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - start_x)); + + if (s >= word_wrap_eol) + { + x = start_x; + y += line_height; + word_wrap_eol = NULL; + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks + continue; + } + } + + // Decode and advance source + unsigned int c = (unsigned int)*s; + if (c < 0x80) + { + s += 1; + } + else + { + s += ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) // Malformed UTF-8? + break; + } + + if (c < 32) + { + if (c == '\n') + { + x = start_x; + y += line_height; + if (y > clip_rect.w) + break; // break out of main loop + continue; + } + if (c == '\r') + continue; + } + + const ImFontGlyph* glyph = FindGlyph((ImWchar)c); + if (glyph == NULL) + continue; + + float char_width = glyph->AdvanceX * scale; + if (glyph->Visible) + { + // We don't do a second finer clipping test on the Y axis as we've already skipped anything before clip_rect.y and exit once we pass clip_rect.w + float x1 = x + glyph->X0 * scale; + float x2 = x + glyph->X1 * scale; + float y1 = y + glyph->Y0 * scale; + float y2 = y + glyph->Y1 * scale; + if (x1 <= clip_rect.z && x2 >= clip_rect.x) + { + // Render a character + float u1 = glyph->U0; + float v1 = glyph->V0; + float u2 = glyph->U1; + float v2 = glyph->V1; + + // CPU side clipping used to fit text in their frame when the frame is too small. Only does clipping for axis aligned quads. + if (cpu_fine_clip) + { + if (x1 < clip_rect.x) + { + u1 = u1 + (1.0f - (x2 - clip_rect.x) / (x2 - x1)) * (u2 - u1); + x1 = clip_rect.x; + } + if (y1 < clip_rect.y) + { + v1 = v1 + (1.0f - (y2 - clip_rect.y) / (y2 - y1)) * (v2 - v1); + y1 = clip_rect.y; + } + if (x2 > clip_rect.z) + { + u2 = u1 + ((clip_rect.z - x1) / (x2 - x1)) * (u2 - u1); + x2 = clip_rect.z; + } + if (y2 > clip_rect.w) + { + v2 = v1 + ((clip_rect.w - y1) / (y2 - y1)) * (v2 - v1); + y2 = clip_rect.w; + } + if (y1 >= y2) + { + x += char_width; + continue; + } + } + + // Support for untinted glyphs + ImU32 glyph_col = glyph->Colored ? col_untinted : col; + + // We are NOT calling PrimRectUV() here because non-inlined causes too much overhead in a debug builds. Inlined here: + { + idx_write[0] = (ImDrawIdx)(vtx_current_idx); idx_write[1] = (ImDrawIdx)(vtx_current_idx+1); idx_write[2] = (ImDrawIdx)(vtx_current_idx+2); + idx_write[3] = (ImDrawIdx)(vtx_current_idx); idx_write[4] = (ImDrawIdx)(vtx_current_idx+2); idx_write[5] = (ImDrawIdx)(vtx_current_idx+3); + vtx_write[0].pos.x = x1; vtx_write[0].pos.y = y1; vtx_write[0].col = glyph_col; vtx_write[0].uv.x = u1; vtx_write[0].uv.y = v1; + vtx_write[1].pos.x = x2; vtx_write[1].pos.y = y1; vtx_write[1].col = glyph_col; vtx_write[1].uv.x = u2; vtx_write[1].uv.y = v1; + vtx_write[2].pos.x = x2; vtx_write[2].pos.y = y2; vtx_write[2].col = glyph_col; vtx_write[2].uv.x = u2; vtx_write[2].uv.y = v2; + vtx_write[3].pos.x = x1; vtx_write[3].pos.y = y2; vtx_write[3].col = glyph_col; vtx_write[3].uv.x = u1; vtx_write[3].uv.y = v2; + vtx_write += 4; + vtx_current_idx += 4; + idx_write += 6; + } + } + } + x += char_width; + } + + // Give back unused vertices (clipped ones, blanks) ~ this is essentially a PrimUnreserve() action. + draw_list->VtxBuffer.Size = (int)(vtx_write - draw_list->VtxBuffer.Data); // Same as calling shrink() + draw_list->IdxBuffer.Size = (int)(idx_write - draw_list->IdxBuffer.Data); + draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ElemCount -= (idx_expected_size - draw_list->IdxBuffer.Size); + draw_list->_VtxWritePtr = vtx_write; + draw_list->_IdxWritePtr = idx_write; + draw_list->_VtxCurrentIdx = vtx_current_idx; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGui Internal Render Helpers +//----------------------------------------------------------------------------- +// Vaguely redesigned to stop accessing ImGui global state: +// - RenderArrow() +// - RenderBullet() +// - RenderCheckMark() +// - RenderArrowDockMenu() +// - RenderArrowPointingAt() +// - RenderRectFilledRangeH() +// - RenderRectFilledWithHole() +//----------------------------------------------------------------------------- +// Function in need of a redesign (legacy mess) +// - RenderColorRectWithAlphaCheckerboard() +//----------------------------------------------------------------------------- + +// Render an arrow aimed to be aligned with text (p_min is a position in the same space text would be positioned). To e.g. denote expanded/collapsed state +void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale) +{ + const float h = draw_list->_Data->FontSize * 1.00f; + float r = h * 0.40f * scale; + ImVec2 center = pos + ImVec2(h * 0.50f, h * 0.50f * scale); + + ImVec2 a, b, c; + switch (dir) + { + case ImGuiDir_Up: + case ImGuiDir_Down: + if (dir == ImGuiDir_Up) r = -r; + a = ImVec2(+0.000f, +0.750f) * r; + b = ImVec2(-0.866f, -0.750f) * r; + c = ImVec2(+0.866f, -0.750f) * r; + break; + case ImGuiDir_Left: + case ImGuiDir_Right: + if (dir == ImGuiDir_Left) r = -r; + a = ImVec2(+0.750f, +0.000f) * r; + b = ImVec2(-0.750f, +0.866f) * r; + c = ImVec2(-0.750f, -0.866f) * r; + break; + case ImGuiDir_None: + case ImGuiDir_COUNT: + IM_ASSERT(0); + break; + } + draw_list->AddTriangleFilled(center + a, center + b, center + c, col); +} + +void ImGui::RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col) +{ + draw_list->AddCircleFilled(pos, draw_list->_Data->FontSize * 0.20f, col, 8); +} + +void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz) +{ + float thickness = ImMax(sz / 5.0f, 1.0f); + sz -= thickness * 0.5f; + pos += ImVec2(thickness * 0.25f, thickness * 0.25f); + + float third = sz / 3.0f; + float bx = pos.x + third; + float by = pos.y + sz - third * 0.5f; + draw_list->PathLineTo(ImVec2(bx - third, by - third)); + draw_list->PathLineTo(ImVec2(bx, by)); + draw_list->PathLineTo(ImVec2(bx + third * 2.0f, by - third * 2.0f)); + draw_list->PathStroke(col, 0, thickness); +} + +// Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side. +void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) +{ + switch (direction) + { + case ImGuiDir_Left: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Right: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_Up: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Down: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_None: case ImGuiDir_COUNT: break; // Fix warnings + } +} + +// This is less wide than RenderArrow() and we use in dock nodes instead of the regular RenderArrow() to denote a change of functionality, +// and because the saved space means that the left-most tab label can stay at exactly the same position as the label of a loose window. +void ImGui::RenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col) +{ + draw_list->AddRectFilled(p_min + ImVec2(sz * 0.20f, sz * 0.15f), p_min + ImVec2(sz * 0.80f, sz * 0.30f), col); + RenderArrowPointingAt(draw_list, p_min + ImVec2(sz * 0.50f, sz * 0.85f), ImVec2(sz * 0.30f, sz * 0.40f), ImGuiDir_Down, col); +} + +static inline float ImAcos01(float x) +{ + if (x <= 0.0f) return IM_PI * 0.5f; + if (x >= 1.0f) return 0.0f; + return ImAcos(x); + //return (-0.69813170079773212f * x * x - 0.87266462599716477f) * x + 1.5707963267948966f; // Cheap approximation, may be enough for what we do. +} + +// FIXME: Cleanup and move code to ImDrawList. +void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding) +{ + if (x_end_norm == x_start_norm) + return; + if (x_start_norm > x_end_norm) + ImSwap(x_start_norm, x_end_norm); + + ImVec2 p0 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_start_norm), rect.Min.y); + ImVec2 p1 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_end_norm), rect.Max.y); + if (rounding == 0.0f) + { + draw_list->AddRectFilled(p0, p1, col, 0.0f); + return; + } + + rounding = ImClamp(ImMin((rect.Max.x - rect.Min.x) * 0.5f, (rect.Max.y - rect.Min.y) * 0.5f) - 1.0f, 0.0f, rounding); + const float inv_rounding = 1.0f / rounding; + const float arc0_b = ImAcos01(1.0f - (p0.x - rect.Min.x) * inv_rounding); + const float arc0_e = ImAcos01(1.0f - (p1.x - rect.Min.x) * inv_rounding); + const float half_pi = IM_PI * 0.5f; // We will == compare to this because we know this is the exact value ImAcos01 can return. + const float x0 = ImMax(p0.x, rect.Min.x + rounding); + if (arc0_b == arc0_e) + { + draw_list->PathLineTo(ImVec2(x0, p1.y)); + draw_list->PathLineTo(ImVec2(x0, p0.y)); + } + else if (arc0_b == 0.0f && arc0_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x0, p1.y - rounding), rounding, 3, 6); // BL + draw_list->PathArcToFast(ImVec2(x0, p0.y + rounding), rounding, 6, 9); // TR + } + else + { + draw_list->PathArcTo(ImVec2(x0, p1.y - rounding), rounding, IM_PI - arc0_e, IM_PI - arc0_b, 3); // BL + draw_list->PathArcTo(ImVec2(x0, p0.y + rounding), rounding, IM_PI + arc0_b, IM_PI + arc0_e, 3); // TR + } + if (p1.x > rect.Min.x + rounding) + { + const float arc1_b = ImAcos01(1.0f - (rect.Max.x - p1.x) * inv_rounding); + const float arc1_e = ImAcos01(1.0f - (rect.Max.x - p0.x) * inv_rounding); + const float x1 = ImMin(p1.x, rect.Max.x - rounding); + if (arc1_b == arc1_e) + { + draw_list->PathLineTo(ImVec2(x1, p0.y)); + draw_list->PathLineTo(ImVec2(x1, p1.y)); + } + else if (arc1_b == 0.0f && arc1_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x1, p0.y + rounding), rounding, 9, 12); // TR + draw_list->PathArcToFast(ImVec2(x1, p1.y - rounding), rounding, 0, 3); // BR + } + else + { + draw_list->PathArcTo(ImVec2(x1, p0.y + rounding), rounding, -arc1_e, -arc1_b, 3); // TR + draw_list->PathArcTo(ImVec2(x1, p1.y - rounding), rounding, +arc1_b, +arc1_e, 3); // BR + } + } + draw_list->PathFillConvex(col); +} + +void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding) +{ + const bool fill_L = (inner.Min.x > outer.Min.x); + const bool fill_R = (inner.Max.x < outer.Max.x); + const bool fill_U = (inner.Min.y > outer.Min.y); + const bool fill_D = (inner.Max.y < outer.Max.y); + if (fill_L) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Min.y), ImVec2(inner.Min.x, inner.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_U ? 0 : ImDrawFlags_RoundCornersTopLeft) | (fill_D ? 0 : ImDrawFlags_RoundCornersBottomLeft)); + if (fill_R) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Min.y), ImVec2(outer.Max.x, inner.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_U ? 0 : ImDrawFlags_RoundCornersTopRight) | (fill_D ? 0 : ImDrawFlags_RoundCornersBottomRight)); + if (fill_U) draw_list->AddRectFilled(ImVec2(inner.Min.x, outer.Min.y), ImVec2(inner.Max.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_L ? 0 : ImDrawFlags_RoundCornersTopLeft) | (fill_R ? 0 : ImDrawFlags_RoundCornersTopRight)); + if (fill_D) draw_list->AddRectFilled(ImVec2(inner.Min.x, inner.Max.y), ImVec2(inner.Max.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_L ? 0 : ImDrawFlags_RoundCornersBottomLeft) | (fill_R ? 0 : ImDrawFlags_RoundCornersBottomRight)); + if (fill_L && fill_U) draw_list->AddRectFilled(ImVec2(outer.Min.x, outer.Min.y), ImVec2(inner.Min.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersTopLeft); + if (fill_R && fill_U) draw_list->AddRectFilled(ImVec2(inner.Max.x, outer.Min.y), ImVec2(outer.Max.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersTopRight); + if (fill_L && fill_D) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Max.y), ImVec2(inner.Min.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersBottomLeft); + if (fill_R && fill_D) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Max.y), ImVec2(outer.Max.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersBottomRight); +} + +ImDrawFlags ImGui::CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold) +{ + bool round_l = r_in.Min.x <= r_outer.Min.x + threshold; + bool round_r = r_in.Max.x >= r_outer.Max.x - threshold; + bool round_t = r_in.Min.y <= r_outer.Min.y + threshold; + bool round_b = r_in.Max.y >= r_outer.Max.y - threshold; + return ImDrawFlags_RoundCornersNone + | ((round_t && round_l) ? ImDrawFlags_RoundCornersTopLeft : 0) | ((round_t && round_r) ? ImDrawFlags_RoundCornersTopRight : 0) + | ((round_b && round_l) ? ImDrawFlags_RoundCornersBottomLeft : 0) | ((round_b && round_r) ? ImDrawFlags_RoundCornersBottomRight : 0); +} + +// Helper for ColorPicker4() +// NB: This is rather brittle and will show artifact when rounding this enabled if rounded corners overlap multiple cells. Caller currently responsible for avoiding that. +// Spent a non reasonable amount of time trying to getting this right for ColorButton with rounding+anti-aliasing+ImGuiColorEditFlags_HalfAlphaPreview flag + various grid sizes and offsets, and eventually gave up... probably more reasonable to disable rounding altogether. +// FIXME: uses ImGui::GetColorU32 +void ImGui::RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 col, float grid_step, ImVec2 grid_off, float rounding, ImDrawFlags flags) +{ + if ((flags & ImDrawFlags_RoundCornersMask_) == 0) + flags = ImDrawFlags_RoundCornersDefault_; + if (((col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT) < 0xFF) + { + ImU32 col_bg1 = GetColorU32(ImAlphaBlendColors(IM_COL32(204, 204, 204, 255), col)); + ImU32 col_bg2 = GetColorU32(ImAlphaBlendColors(IM_COL32(128, 128, 128, 255), col)); + draw_list->AddRectFilled(p_min, p_max, col_bg1, rounding, flags); + + int yi = 0; + for (float y = p_min.y + grid_off.y; y < p_max.y; y += grid_step, yi++) + { + float y1 = ImClamp(y, p_min.y, p_max.y), y2 = ImMin(y + grid_step, p_max.y); + if (y2 <= y1) + continue; + for (float x = p_min.x + grid_off.x + (yi & 1) * grid_step; x < p_max.x; x += grid_step * 2.0f) + { + float x1 = ImClamp(x, p_min.x, p_max.x), x2 = ImMin(x + grid_step, p_max.x); + if (x2 <= x1) + continue; + ImDrawFlags cell_flags = ImDrawFlags_RoundCornersNone; + if (y1 <= p_min.y) { if (x1 <= p_min.x) cell_flags |= ImDrawFlags_RoundCornersTopLeft; if (x2 >= p_max.x) cell_flags |= ImDrawFlags_RoundCornersTopRight; } + if (y2 >= p_max.y) { if (x1 <= p_min.x) cell_flags |= ImDrawFlags_RoundCornersBottomLeft; if (x2 >= p_max.x) cell_flags |= ImDrawFlags_RoundCornersBottomRight; } + + // Combine flags + cell_flags = (flags == ImDrawFlags_RoundCornersNone || cell_flags == ImDrawFlags_RoundCornersNone) ? ImDrawFlags_RoundCornersNone : (cell_flags & flags); + draw_list->AddRectFilled(ImVec2(x1, y1), ImVec2(x2, y2), col_bg2, rounding, cell_flags); + } + } + } + else + { + draw_list->AddRectFilled(p_min, p_max, col, rounding, flags); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Decompression code +//----------------------------------------------------------------------------- +// Compressed with stb_compress() then converted to a C array and encoded as base85. +// Use the program in misc/fonts/binary_to_compressed_c.cpp to create the array from a TTF file. +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +// Decompression from stb.h (public domain) by Sean Barrett https://github.com/nothings/stb/blob/master/stb.h +//----------------------------------------------------------------------------- + +static unsigned int stb_decompress_length(const unsigned char *input) +{ + return (input[8] << 24) + (input[9] << 16) + (input[10] << 8) + input[11]; +} + +static unsigned char *stb__barrier_out_e, *stb__barrier_out_b; +static const unsigned char *stb__barrier_in_b; +static unsigned char *stb__dout; +static void stb__match(const unsigned char *data, unsigned int length) +{ + // INVERSE of memmove... write each byte before copying the next... + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_out_b) { stb__dout = stb__barrier_out_e+1; return; } + while (length--) *stb__dout++ = *data++; +} + +static void stb__lit(const unsigned char *data, unsigned int length) +{ + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_in_b) { stb__dout = stb__barrier_out_e+1; return; } + memcpy(stb__dout, data, length); + stb__dout += length; +} + +#define stb__in2(x) ((i[x] << 8) + i[(x)+1]) +#define stb__in3(x) ((i[x] << 16) + stb__in2((x)+1)) +#define stb__in4(x) ((i[x] << 24) + stb__in3((x)+1)) + +static const unsigned char *stb_decompress_token(const unsigned char *i) +{ + if (*i >= 0x20) { // use fewer if's for cases that expand small + if (*i >= 0x80) stb__match(stb__dout-i[1]-1, i[0] - 0x80 + 1), i += 2; + else if (*i >= 0x40) stb__match(stb__dout-(stb__in2(0) - 0x4000 + 1), i[2]+1), i += 3; + else /* *i >= 0x20 */ stb__lit(i+1, i[0] - 0x20 + 1), i += 1 + (i[0] - 0x20 + 1); + } else { // more ifs for cases that expand large, since overhead is amortized + if (*i >= 0x18) stb__match(stb__dout-(stb__in3(0) - 0x180000 + 1), i[3]+1), i += 4; + else if (*i >= 0x10) stb__match(stb__dout-(stb__in3(0) - 0x100000 + 1), stb__in2(3)+1), i += 5; + else if (*i >= 0x08) stb__lit(i+2, stb__in2(0) - 0x0800 + 1), i += 2 + (stb__in2(0) - 0x0800 + 1); + else if (*i == 0x07) stb__lit(i+3, stb__in2(1) + 1), i += 3 + (stb__in2(1) + 1); + else if (*i == 0x06) stb__match(stb__dout-(stb__in3(1)+1), i[4]+1), i += 5; + else if (*i == 0x04) stb__match(stb__dout-(stb__in3(1)+1), stb__in2(4)+1), i += 6; + } + return i; +} + +static unsigned int stb_adler32(unsigned int adler32, unsigned char *buffer, unsigned int buflen) +{ + const unsigned long ADLER_MOD = 65521; + unsigned long s1 = adler32 & 0xffff, s2 = adler32 >> 16; + unsigned long blocklen = buflen % 5552; + + unsigned long i; + while (buflen) { + for (i=0; i + 7 < blocklen; i += 8) { + s1 += buffer[0], s2 += s1; + s1 += buffer[1], s2 += s1; + s1 += buffer[2], s2 += s1; + s1 += buffer[3], s2 += s1; + s1 += buffer[4], s2 += s1; + s1 += buffer[5], s2 += s1; + s1 += buffer[6], s2 += s1; + s1 += buffer[7], s2 += s1; + + buffer += 8; + } + + for (; i < blocklen; ++i) + s1 += *buffer++, s2 += s1; + + s1 %= ADLER_MOD, s2 %= ADLER_MOD; + buflen -= blocklen; + blocklen = 5552; + } + return (unsigned int)(s2 << 16) + (unsigned int)s1; +} + +static unsigned int stb_decompress(unsigned char *output, const unsigned char *i, unsigned int /*length*/) +{ + if (stb__in4(0) != 0x57bC0000) return 0; + if (stb__in4(4) != 0) return 0; // error! stream is > 4GB + const unsigned int olen = stb_decompress_length(i); + stb__barrier_in_b = i; + stb__barrier_out_e = output + olen; + stb__barrier_out_b = output; + i += 16; + + stb__dout = output; + for (;;) { + const unsigned char *old_i = i; + i = stb_decompress_token(i); + if (i == old_i) { + if (*i == 0x05 && i[1] == 0xfa) { + IM_ASSERT(stb__dout == output + olen); + if (stb__dout != output + olen) return 0; + if (stb_adler32(1, output, olen) != (unsigned int) stb__in4(2)) + return 0; + return olen; + } else { + IM_ASSERT(0); /* NOTREACHED */ + return 0; + } + } + IM_ASSERT(stb__dout <= output + olen); + if (stb__dout > output + olen) + return 0; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Default font data (ProggyClean.ttf) +//----------------------------------------------------------------------------- +// ProggyClean.ttf +// Copyright (c) 2004, 2005 Tristan Grimmer +// MIT license (see License.txt in http://www.upperbounds.net/download/ProggyClean.ttf.zip) +// Download and more information at http://upperbounds.net +//----------------------------------------------------------------------------- +// File: 'ProggyClean.ttf' (41208 bytes) +// Exported using misc/fonts/binary_to_compressed_c.cpp (with compression + base85 string encoding). +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +//----------------------------------------------------------------------------- +static const char proggy_clean_ttf_compressed_data_base85[11980 + 1] = + "7])#######hV0qs'/###[),##/l:$#Q6>##5[n42>c-TH`->>#/e>11NNV=Bv(*:.F?uu#(gRU.o0XGH`$vhLG1hxt9?W`#,5LsCp#-i>.r$<$6pD>Lb';9Crc6tgXmKVeU2cD4Eo3R/" + "2*>]b(MC;$jPfY.;h^`IWM9Qo#t'X#(v#Y9w0#1D$CIf;W'#pWUPXOuxXuU(H9M(1=Ke$$'5F%)]0^#0X@U.a$FBjVQTSDgEKnIS7EM9>ZY9w0#L;>>#Mx&4Mvt//L[MkA#W@lK.N'[0#7RL_&#w+F%HtG9M#XL`N&.,GM4Pg;--VsM.M0rJfLH2eTM`*oJMHRC`N" + "kfimM2J,W-jXS:)r0wK#@Fge$U>`w'N7G#$#fB#$E^$#:9:hk+eOe--6x)F7*E%?76%^GMHePW-Z5l'&GiF#$956:rS?dA#fiK:)Yr+`�j@'DbG&#^$PG.Ll+DNa&VZ>1i%h1S9u5o@YaaW$e+bROPOpxTO7Stwi1::iB1q)C_=dV26J;2,]7op$]uQr@_V7$q^%lQwtuHY]=DX,n3L#0PHDO4f9>dC@O>HBuKPpP*E,N+b3L#lpR/MrTEH.IAQk.a>D[.e;mc." + "x]Ip.PH^'/aqUO/$1WxLoW0[iLAw=4h(9.`G" + "CRUxHPeR`5Mjol(dUWxZa(>STrPkrJiWx`5U7F#.g*jrohGg`cg:lSTvEY/EV_7H4Q9[Z%cnv;JQYZ5q.l7Zeas:HOIZOB?Ggv:[7MI2k).'2($5FNP&EQ(,)" + "U]W]+fh18.vsai00);D3@4ku5P?DP8aJt+;qUM]=+b'8@;mViBKx0DE[-auGl8:PJ&Dj+M6OC]O^((##]`0i)drT;-7X`=-H3[igUnPG-NZlo.#k@h#=Ork$m>a>$-?Tm$UV(?#P6YY#" + "'/###xe7q.73rI3*pP/$1>s9)W,JrM7SN]'/4C#v$U`0#V.[0>xQsH$fEmPMgY2u7Kh(G%siIfLSoS+MK2eTM$=5,M8p`A.;_R%#u[K#$x4AG8.kK/HSB==-'Ie/QTtG?-.*^N-4B/ZM" + "_3YlQC7(p7q)&](`6_c)$/*JL(L-^(]$wIM`dPtOdGA,U3:w2M-0+WomX2u7lqM2iEumMTcsF?-aT=Z-97UEnXglEn1K-bnEO`gu" + "Ft(c%=;Am_Qs@jLooI&NX;]0#j4#F14;gl8-GQpgwhrq8'=l_f-b49'UOqkLu7-##oDY2L(te+Mch&gLYtJ,MEtJfLh'x'M=$CS-ZZ%P]8bZ>#S?YY#%Q&q'3^Fw&?D)UDNrocM3A76/" + "/oL?#h7gl85[qW/NDOk%16ij;+:1a'iNIdb-ou8.P*w,v5#EI$TWS>Pot-R*H'-SEpA:g)f+O$%%`kA#G=8RMmG1&O`>to8bC]T&$,n.LoO>29sp3dt-52U%VM#q7'DHpg+#Z9%H[Ket`e;)f#Km8&+DC$I46>#Kr]]u-[=99tts1.qb#q72g1WJO81q+eN'03'eM>&1XxY-caEnO" + "j%2n8)),?ILR5^.Ibn<-X-Mq7[a82Lq:F&#ce+S9wsCK*x`569E8ew'He]h:sI[2LM$[guka3ZRd6:t%IG:;$%YiJ:Nq=?eAw;/:nnDq0(CYcMpG)qLN4$##&J-XTt,%OVU4)S1+R-#dg0/Nn?Ku1^0f$B*P:Rowwm-`0PKjYDDM'3]d39VZHEl4,.j']Pk-M.h^&:0FACm$maq-&sgw0t7/6(^xtk%" + "LuH88Fj-ekm>GA#_>568x6(OFRl-IZp`&b,_P'$MhLbxfc$mj`,O;&%W2m`Zh:/)Uetw:aJ%]K9h:TcF]u_-Sj9,VK3M.*'&0D[Ca]J9gp8,kAW]" + "%(?A%R$f<->Zts'^kn=-^@c4%-pY6qI%J%1IGxfLU9CP8cbPlXv);C=b),<2mOvP8up,UVf3839acAWAW-W?#ao/^#%KYo8fRULNd2.>%m]UK:n%r$'sw]J;5pAoO_#2mO3n,'=H5(et" + "Hg*`+RLgv>=4U8guD$I%D:W>-r5V*%j*W:Kvej.Lp$'?;++O'>()jLR-^u68PHm8ZFWe+ej8h:9r6L*0//c&iH&R8pRbA#Kjm%upV1g:" + "a_#Ur7FuA#(tRh#.Y5K+@?3<-8m0$PEn;J:rh6?I6uG<-`wMU'ircp0LaE_OtlMb&1#6T.#FDKu#1Lw%u%+GM+X'e?YLfjM[VO0MbuFp7;>Q&#WIo)0@F%q7c#4XAXN-U&VBpqB>0ie&jhZ[?iLR@@_AvA-iQC(=ksRZRVp7`.=+NpBC%rh&3]R:8XDmE5^V8O(x<-+k?'(^](H.aREZSi,#1:[IXaZFOm<-ui#qUq2$##Ri;u75OK#(RtaW-K-F`S+cF]uN`-KMQ%rP/Xri.LRcB##=YL3BgM/3M" + "D?@f&1'BW-)Ju#bmmWCMkk&#TR`C,5d>g)F;t,4:@_l8G/5h4vUd%&%950:VXD'QdWoY-F$BtUwmfe$YqL'8(PWX(" + "P?^@Po3$##`MSs?DWBZ/S>+4%>fX,VWv/w'KD`LP5IbH;rTV>n3cEK8U#bX]l-/V+^lj3;vlMb&[5YQ8#pekX9JP3XUC72L,,?+Ni&co7ApnO*5NK,((W-i:$,kp'UDAO(G0Sq7MVjJs" + "bIu)'Z,*[>br5fX^:FPAWr-m2KgLQ_nN6'8uTGT5g)uLv:873UpTLgH+#FgpH'_o1780Ph8KmxQJ8#H72L4@768@Tm&Q" + "h4CB/5OvmA&,Q&QbUoi$a_%3M01H)4x7I^&KQVgtFnV+;[Pc>[m4k//,]1?#`VY[Jr*3&&slRfLiVZJ:]?=K3Sw=[$=uRB?3xk48@aege0jT6'N#(q%.O=?2S]u*(m<-" + "V8J'(1)G][68hW$5'q[GC&5j`TE?m'esFGNRM)j,ffZ?-qx8;->g4t*:CIP/[Qap7/9'#(1sao7w-.qNUdkJ)tCF&#B^;xGvn2r9FEPFFFcL@.iFNkTve$m%#QvQS8U@)2Z+3K:AKM5i" + "sZ88+dKQ)W6>J%CL`.d*(B`-n8D9oK-XV1q['-5k'cAZ69e;D_?$ZPP&s^+7])$*$#@QYi9,5P r+$%CE=68>K8r0=dSC%%(@p7" + ".m7jilQ02'0-VWAgTlGW'b)Tq7VT9q^*^$$.:&N@@" + "$&)WHtPm*5_rO0&e%K&#-30j(E4#'Zb.o/(Tpm$>K'f@[PvFl,hfINTNU6u'0pao7%XUp9]5.>%h`8_=VYbxuel.NTSsJfLacFu3B'lQSu/m6-Oqem8T+oE--$0a/k]uj9EwsG>%veR*" + "hv^BFpQj:K'#SJ,sB-'#](j.Lg92rTw-*n%@/;39rrJF,l#qV%OrtBeC6/,;qB3ebNW[?,Hqj2L.1NP&GjUR=1D8QaS3Up&@*9wP?+lo7b?@%'k4`p0Z$22%K3+iCZj?XJN4Nm&+YF]u" + "@-W$U%VEQ/,,>>#)D#%8cY#YZ?=,`Wdxu/ae&#" + "w6)R89tI#6@s'(6Bf7a&?S=^ZI_kS&ai`&=tE72L_D,;^R)7[$so8lKN%5/$(vdfq7+ebA#" + "u1p]ovUKW&Y%q]'>$1@-[xfn$7ZTp7mM,G,Ko7a&Gu%G[RMxJs[0MM%wci.LFDK)(%:_i2B5CsR8&9Z&#=mPEnm0f`<&c)QL5uJ#%u%lJj+D-r;BoFDoS97h5g)E#o:&S4weDF,9^Hoe`h*L+_a*NrLW-1pG_&2UdB8" + "6e%B/:=>)N4xeW.*wft-;$'58-ESqr#U`'6AQ]m&6/`Z>#S?YY#Vc;r7U2&326d=w&H####?TZ`*4?&.MK?LP8Vxg>$[QXc%QJv92.(Db*B)gb*BM9dM*hJMAo*c&#" + "b0v=Pjer]$gG&JXDf->'StvU7505l9$AFvgYRI^&<^b68?j#q9QX4SM'RO#&sL1IM.rJfLUAj221]d##DW=m83u5;'bYx,*Sl0hL(W;;$doB&O/TQ:(Z^xBdLjLV#*8U_72Lh+2Q8Cj0i:6hp&$C/:p(HK>T8Y[gHQ4`4)'$Ab(Nof%V'8hL&#SfD07&6D@M.*J:;$-rv29'M]8qMv-tLp,'886iaC=Hb*YJoKJ,(j%K=H`K.v9HggqBIiZu'QvBT.#=)0ukruV&.)3=(^1`o*Pj4<-#MJ+gLq9-##@HuZPN0]u:h7.T..G:;$/Usj(T7`Q8tT72LnYl<-qx8;-HV7Q-&Xdx%1a,hC=0u+HlsV>nuIQL-5" + "_>@kXQtMacfD.m-VAb8;IReM3$wf0''hra*so568'Ip&vRs849'MRYSp%:t:h5qSgwpEr$B>Q,;s(C#$)`svQuF$##-D,##,g68@2[T;.XSdN9Qe)rpt._K-#5wF)sP'##p#C0c%-Gb%" + "hd+<-j'Ai*x&&HMkT]C'OSl##5RG[JXaHN;d'uA#x._U;.`PU@(Z3dt4r152@:v,'R.Sj'w#0<-;kPI)FfJ&#AYJ&#//)>-k=m=*XnK$>=)72L]0I%>.G690a:$##<,);?;72#?x9+d;" + "^V'9;jY@;)br#q^YQpx:X#Te$Z^'=-=bGhLf:D6&bNwZ9-ZD#n^9HhLMr5G;']d&6'wYmTFmLq9wI>P(9mI[>kC-ekLC/R&CH+s'B;K-M6$EB%is00:" + "+A4[7xks.LrNk0&E)wILYF@2L'0Nb$+pv<(2.768/FrY&h$^3i&@+G%JT'<-,v`3;_)I9M^AE]CN?Cl2AZg+%4iTpT3$U4O]GKx'm9)b@p7YsvK3w^YR-" + "CdQ*:Ir<($u&)#(&?L9Rg3H)4fiEp^iI9O8KnTj,]H?D*r7'M;PwZ9K0E^k&-cpI;.p/6_vwoFMV<->#%Xi.LxVnrU(4&8/P+:hLSKj$#U%]49t'I:rgMi'FL@a:0Y-uA[39',(vbma*" + "hU%<-SRF`Tt:542R_VV$p@[p8DV[A,?1839FWdFTi1O*H&#(AL8[_P%.M>v^-))qOT*F5Cq0`Ye%+$B6i:7@0IXSsDiWP,##P`%/L-" + "S(qw%sf/@%#B6;/U7K]uZbi^Oc^2n%t<)'mEVE''n`WnJra$^TKvX5B>;_aSEK',(hwa0:i4G?.Bci.(X[?b*($,=-n<.Q%`(X=?+@Am*Js0&=3bh8K]mL69=Lb,OcZV/);TTm8VI;?%OtJ<(b4mq7M6:u?KRdFl*:xP?Yb.5)%w_I?7uk5JC+FS(m#i'k.'a0i)9<7b'fs'59hq$*5Uhv##pi^8+hIEBF`nvo`;'l0.^S1<-wUK2/Coh58KKhLj" + "M=SO*rfO`+qC`W-On.=AJ56>>i2@2LH6A:&5q`?9I3@@'04&p2/LVa*T-4<-i3;M9UvZd+N7>b*eIwg:CC)c<>nO&#$(>.Z-I&J(Q0Hd5Q%7Co-b`-cP)hI;*_F]u`Rb[.j8_Q/<&>uu+VsH$sM9TA%?)(vmJ80),P7E>)tjD%2L=-t#fK[%`v=Q8WlA2);Sa" + ">gXm8YB`1d@K#n]76-a$U,mF%Ul:#/'xoFM9QX-$.QN'>" + "[%$Z$uF6pA6Ki2O5:8w*vP1<-1`[G,)-m#>0`P&#eb#.3i)rtB61(o'$?X3B2Qft^ae_5tKL9MUe9b*sLEQ95C&`=G?@Mj=wh*'3E>=-<)Gt*Iw)'QG:`@I" + "wOf7&]1i'S01B+Ev/Nac#9S;=;YQpg_6U`*kVY39xK,[/6Aj7:'1Bm-_1EYfa1+o&o4hp7KN_Q(OlIo@S%;jVdn0'1h19w,WQhLI)3S#f$2(eb,jr*b;3Vw]*7NH%$c4Vs,eD9>XW8?N]o+(*pgC%/72LV-uW%iewS8W6m2rtCpo'RS1R84=@paTKt)>=%&1[)*vp'u+x,VrwN;&]kuO9JDbg=pO$J*.jVe;u'm0dr9l,<*wMK*Oe=g8lV_KEBFkO'oU]^=[-792#ok,)" + "i]lR8qQ2oA8wcRCZ^7w/Njh;?.stX?Q1>S1q4Bn$)K1<-rGdO'$Wr.Lc.CG)$/*JL4tNR/,SVO3,aUw'DJN:)Ss;wGn9A32ijw%FL+Z0Fn.U9;reSq)bmI32U==5ALuG&#Vf1398/pVo" + "1*c-(aY168o<`JsSbk-,1N;$>0:OUas(3:8Z972LSfF8eb=c-;>SPw7.6hn3m`9^Xkn(r.qS[0;T%&Qc=+STRxX'q1BNk3&*eu2;&8q$&x>Q#Q7^Tf+6<(d%ZVmj2bDi%.3L2n+4W'$P" + "iDDG)g,r%+?,$@?uou5tSe2aN_AQU*'IAO" + "URQ##V^Fv-XFbGM7Fl(N<3DhLGF%q.1rC$#:T__&Pi68%0xi_&[qFJ(77j_&JWoF.V735&T,[R*:xFR*K5>>#`bW-?4Ne_&6Ne_&6Ne_&n`kr-#GJcM6X;uM6X;uM(.a..^2TkL%oR(#" + ";u.T%fAr%4tJ8&><1=GHZ_+m9/#H1F^R#SC#*N=BA9(D?v[UiFY>>^8p,KKF.W]L29uLkLlu/+4T" + "w$)F./^n3+rlo+DB;5sIYGNk+i1t-69Jg--0pao7Sm#K)pdHW&;LuDNH@H>#/X-TI(;P>#,Gc>#0Su>#4`1?#8lC?#xL$#B.`$#F:r$#JF.%#NR@%#R_R%#Vke%#Zww%#_-4^Rh%Sflr-k'MS.o?.5/sWel/wpEM0%3'/1)K^f1-d>G21&v(35>V`39V7A4=onx4" + "A1OY5EI0;6Ibgr6M$HS7Q<)58C5w,;WoA*#[%T*#`1g*#d=#+#hI5+#lUG+#pbY+#tnl+#x$),#&1;,#*=M,#.I`,#2Ur,#6b.-#;w[H#iQtA#m^0B#qjBB#uvTB##-hB#'9$C#+E6C#" + "/QHC#3^ZC#7jmC#;v)D#?,)4kMYD4lVu`4m`:&5niUA5@(A5BA1]PBB:xlBCC=2CDLXMCEUtiCf&0g2'tN?PGT4CPGT4CPGT4CPGT4CPGT4CPGT4CPGT4CP" + "GT4CPGT4CPGT4CPGT4CPGT4CPGT4CP-qekC`.9kEg^+F$kwViFJTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5o,^<-28ZI'O?;xp" + "O?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xp;7q-#lLYI:xvD=#"; + +static const char* GetDefaultCompressedFontDataTTFBase85() +{ + return proggy_clean_ttf_compressed_data_base85; +} + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_internal.h b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_internal.h new file mode 100644 index 000000000..59916c790 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_internal.h @@ -0,0 +1,3524 @@ +// dear imgui, v1.89.1 +// (internal structures/api) + +// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility! +// Set: +// #define IMGUI_DEFINE_MATH_OPERATORS +// To implement maths operators for ImVec2 (disabled by default to not collide with using IM_VEC2_CLASS_EXTRA along with your own math types+operators) + +/* + +Index of this file: + +// [SECTION] Header mess +// [SECTION] Forward declarations +// [SECTION] Context pointer +// [SECTION] STB libraries includes +// [SECTION] Macros +// [SECTION] Generic helpers +// [SECTION] ImDrawList support +// [SECTION] Widgets support: flags, enums, data structures +// [SECTION] Inputs support +// [SECTION] Clipper support +// [SECTION] Navigation support +// [SECTION] Columns support +// [SECTION] Multi-select support +// [SECTION] Docking support +// [SECTION] Viewport support +// [SECTION] Settings support +// [SECTION] Localization support +// [SECTION] Metrics, Debug tools +// [SECTION] Generic context hooks +// [SECTION] ImGuiContext (main imgui context) +// [SECTION] ImGuiWindowTempData, ImGuiWindow +// [SECTION] Tab bar, Tab item support +// [SECTION] Table support +// [SECTION] ImGui internal API +// [SECTION] ImFontAtlas internal API +// [SECTION] Test Engine specific hooks (imgui_test_engine) + +*/ + +#pragma once +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +#ifndef IMGUI_VERSION +#include "imgui.h" +#endif + +#include // FILE*, sscanf +#include // NULL, malloc, free, qsort, atoi, atof +#include // sqrtf, fabsf, fmodf, powf, floorf, ceilf, cosf, sinf +#include // INT_MIN, INT_MAX + +// Enable SSE intrinsics if available +#if (defined __SSE__ || defined __x86_64__ || defined _M_X64) && !defined(IMGUI_DISABLE_SSE) +#define IMGUI_ENABLE_SSE +#include +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of struct 'xxx' // when IMGUI_API is set to__declspec(dllexport) +#pragma warning (disable: 26812) // The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok, for ImFloorSigned() +#pragma clang diagnostic ignored "-Wunused-function" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wmissing-prototypes" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#pragma clang diagnostic ignored "-Wdouble-promotion" +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#pragma clang diagnostic ignored "-Wmissing-noreturn" // warning: function 'xxx' could be declared with attribute 'noreturn' +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// Legacy defines +#ifdef IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#endif +#ifdef IMGUI_DISABLE_MATH_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#endif + +// Enable stb_truetype by default unless FreeType is enabled. +// You can compile with both by defining both IMGUI_ENABLE_FREETYPE and IMGUI_ENABLE_STB_TRUETYPE together. +#ifndef IMGUI_ENABLE_FREETYPE +#define IMGUI_ENABLE_STB_TRUETYPE +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward declarations +//----------------------------------------------------------------------------- + +struct ImBitVector; // Store 1-bit per value +struct ImRect; // An axis-aligned rectangle (2 points) +struct ImDrawDataBuilder; // Helper to build a ImDrawData instance +struct ImDrawListSharedData; // Data shared between all ImDrawList instances +struct ImGuiColorMod; // Stacked color modifier, backup of modified data so we can restore it +struct ImGuiContext; // Main Dear ImGui context +struct ImGuiContextHook; // Hook for extensions like ImGuiTestEngine +struct ImGuiDataTypeInfo; // Type information associated to a ImGuiDataType enum +struct ImGuiDockContext; // Docking system context +struct ImGuiDockRequest; // Docking system dock/undock queued request +struct ImGuiDockNode; // Docking system node (hold a list of Windows OR two child dock nodes) +struct ImGuiDockNodeSettings; // Storage for a dock node in .ini file (we preserve those even if the associated dock node isn't active during the session) +struct ImGuiGroupData; // Stacked storage data for BeginGroup()/EndGroup() +struct ImGuiInputTextState; // Internal state of the currently focused/edited text input box +struct ImGuiLastItemData; // Status storage for last submitted items +struct ImGuiLocEntry; // A localization entry. +struct ImGuiMenuColumns; // Simple column measurement, currently used for MenuItem() only +struct ImGuiNavItemData; // Result of a gamepad/keyboard directional navigation move query result +struct ImGuiMetricsConfig; // Storage for ShowMetricsWindow() and DebugNodeXXX() functions +struct ImGuiNextWindowData; // Storage for SetNextWindow** functions +struct ImGuiNextItemData; // Storage for SetNextItem** functions +struct ImGuiOldColumnData; // Storage data for a single column for legacy Columns() api +struct ImGuiOldColumns; // Storage data for a columns set for legacy Columns() api +struct ImGuiPopupData; // Storage for current popup stack +struct ImGuiSettingsHandler; // Storage for one type registered in the .ini file +struct ImGuiStackSizes; // Storage of stack sizes for debugging/asserting +struct ImGuiStyleMod; // Stacked style modifier, backup of modified data so we can restore it +struct ImGuiTabBar; // Storage for a tab bar +struct ImGuiTabItem; // Storage for a tab item (within a tab bar) +struct ImGuiTable; // Storage for a table +struct ImGuiTableColumn; // Storage for one column of a table +struct ImGuiTableInstanceData; // Storage for one instance of a same table +struct ImGuiTableTempData; // Temporary storage for one table (one per table in the stack), shared between tables. +struct ImGuiTableSettings; // Storage for a table .ini settings +struct ImGuiTableColumnsSettings; // Storage for a column .ini settings +struct ImGuiWindow; // Storage for one window +struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame, in practice we currently keep it for each window) +struct ImGuiWindowSettings; // Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during this session) + +// Enumerations +// Use your programming IDE "Go to definition" facility on the names of the center columns to find the actual flags/enum lists. +enum ImGuiLocKey : int; // -> enum ImGuiLocKey // Enum: a localization entry for translation. +typedef int ImGuiDataAuthority; // -> enum ImGuiDataAuthority_ // Enum: for storing the source authority (dock node vs window) of a field +typedef int ImGuiLayoutType; // -> enum ImGuiLayoutType_ // Enum: Horizontal or vertical + +// Flags +typedef int ImGuiActivateFlags; // -> enum ImGuiActivateFlags_ // Flags: for navigation/focus function (will be for ActivateItem() later) +typedef int ImGuiDebugLogFlags; // -> enum ImGuiDebugLogFlags_ // Flags: for ShowDebugLogWindow(), g.DebugLogFlags +typedef int ImGuiInputFlags; // -> enum ImGuiInputFlags_ // Flags: for IsKeyPressed(), IsMouseClicked(), SetKeyOwner(), SetItemKeyOwner() etc. +typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag(), g.LastItemData.InFlags +typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for g.LastItemData.StatusFlags +typedef int ImGuiOldColumnFlags; // -> enum ImGuiOldColumnFlags_ // Flags: for BeginColumns() +typedef int ImGuiNavHighlightFlags; // -> enum ImGuiNavHighlightFlags_ // Flags: for RenderNavHighlight() +typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests +typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions +typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions +typedef int ImGuiScrollFlags; // -> enum ImGuiScrollFlags_ // Flags: for ScrollToItem() and navigation requests +typedef int ImGuiSeparatorFlags; // -> enum ImGuiSeparatorFlags_ // Flags: for SeparatorEx() +typedef int ImGuiTextFlags; // -> enum ImGuiTextFlags_ // Flags: for TextEx() +typedef int ImGuiTooltipFlags; // -> enum ImGuiTooltipFlags_ // Flags: for BeginTooltipEx() + +typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...); + +//----------------------------------------------------------------------------- +// [SECTION] Context pointer +// See implementation of this variable in imgui.cpp for comments and details. +//----------------------------------------------------------------------------- + +#ifndef GImGui +extern IMGUI_API ImGuiContext* GImGui; // Current implicit context pointer +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries includes +//------------------------------------------------------------------------- + +namespace ImStb +{ + +#undef STB_TEXTEDIT_STRING +#undef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_STRING ImGuiInputTextState +#define STB_TEXTEDIT_CHARTYPE ImWchar +#define STB_TEXTEDIT_GETWIDTH_NEWLINE (-1.0f) +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#include "imstb_textedit.h" + +} // namespace ImStb + +//----------------------------------------------------------------------------- +// [SECTION] Macros +//----------------------------------------------------------------------------- + +// Internal Drag and Drop payload types. String starting with '_' are reserved for Dear ImGui. +#define IMGUI_PAYLOAD_TYPE_WINDOW "_IMWINDOW" // Payload == ImGuiWindow* + +// Debug Printing Into TTY +// (since IMGUI_VERSION_NUM >= 18729: IMGUI_DEBUG_LOG was reworked into IMGUI_DEBUG_PRINTF (and removed framecount from it). If you were using a #define IMGUI_DEBUG_LOG please rename) +#ifndef IMGUI_DEBUG_PRINTF +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#define IMGUI_DEBUG_PRINTF(_FMT,...) printf(_FMT, __VA_ARGS__) +#else +#define IMGUI_DEBUG_PRINTF(_FMT,...) +#endif +#endif + +// Debug Logging for ShowDebugLogWindow(). This is designed for relatively rare events so please don't spam. +#define IMGUI_DEBUG_LOG(...) ImGui::DebugLog(__VA_ARGS__) +#define IMGUI_DEBUG_LOG_ACTIVEID(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventActiveId) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_FOCUS(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventFocus) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_POPUP(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventPopup) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_NAV(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventNav) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_CLIPPER(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventClipper) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_IO(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_DOCKING(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventDocking) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_VIEWPORT(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventViewport) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) + +// Static Asserts +#define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") + +// "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much. +// We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code. +//#define IMGUI_DEBUG_PARANOID +#ifdef IMGUI_DEBUG_PARANOID +#define IM_ASSERT_PARANOID(_EXPR) IM_ASSERT(_EXPR) +#else +#define IM_ASSERT_PARANOID(_EXPR) +#endif + +// Error handling +// Down the line in some frameworks/languages we would like to have a way to redirect those to the programmer and recover from more faults. +#ifndef IM_ASSERT_USER_ERROR +#define IM_ASSERT_USER_ERROR(_EXP,_MSG) IM_ASSERT((_EXP) && _MSG) // Recoverable User Error +#endif + +// Misc Macros +#define IM_PI 3.14159265358979323846f +#ifdef _WIN32 +#define IM_NEWLINE "\r\n" // Play it nice with Windows users (Update: since 2018-05, Notepad finally appears to support Unix-style carriage returns!) +#else +#define IM_NEWLINE "\n" +#endif +#ifndef IM_TABSIZE // Until we move this to runtime and/or add proper tab support, at least allow users to compile-time override +#define IM_TABSIZE (4) +#endif +#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + ((_ALIGN) - 1)) & ~((_ALIGN) - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8 +#define IM_F32_TO_INT8_UNBOUND(_VAL) ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f))) // Unsaturated, for display purpose +#define IM_F32_TO_INT8_SAT(_VAL) ((int)(ImSaturate(_VAL) * 255.0f + 0.5f)) // Saturated, always output 0..255 +#define IM_FLOOR(_VAL) ((float)(int)(_VAL)) // ImFloor() is not inlined in MSVC debug builds +#define IM_ROUND(_VAL) ((float)(int)((_VAL) + 0.5f)) // + +// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall +#ifdef _MSC_VER +#define IMGUI_CDECL __cdecl +#else +#define IMGUI_CDECL +#endif + +// Warnings +#if defined(_MSC_VER) && !defined(__clang__) +#define IM_MSVC_WARNING_SUPPRESS(XXXX) __pragma(warning(suppress: XXXX)) +#else +#define IM_MSVC_WARNING_SUPPRESS(XXXX) +#endif + +// Debug Tools +// Use 'Metrics/Debugger->Tools->Item Picker' to break into the call-stack of a specific item. +// This will call IM_DEBUG_BREAK() which you may redefine yourself. See https://github.com/scottt/debugbreak for more reference. +#ifndef IM_DEBUG_BREAK +#if defined (_MSC_VER) +#define IM_DEBUG_BREAK() __debugbreak() +#elif defined(__clang__) +#define IM_DEBUG_BREAK() __builtin_debugtrap() +#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) +#define IM_DEBUG_BREAK() __asm__ volatile("int $0x03") +#elif defined(__GNUC__) && defined(__thumb__) +#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xde01") +#elif defined(__GNUC__) && defined(__arm__) && !defined(__thumb__) +#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xe7f001f0"); +#else +#define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger! +#endif +#endif // #ifndef IM_DEBUG_BREAK + +//----------------------------------------------------------------------------- +// [SECTION] Generic helpers +// Note that the ImXXX helpers functions are lower-level than ImGui functions. +// ImGui functions or the ImGui context are never called/used from other ImXXX functions. +//----------------------------------------------------------------------------- +// - Helpers: Hashing +// - Helpers: Sorting +// - Helpers: Bit manipulation +// - Helpers: String +// - Helpers: Formatting +// - Helpers: UTF-8 <> wchar conversions +// - Helpers: ImVec2/ImVec4 operators +// - Helpers: Maths +// - Helpers: Geometry +// - Helper: ImVec1 +// - Helper: ImVec2ih +// - Helper: ImRect +// - Helper: ImBitArray +// - Helper: ImBitVector +// - Helper: ImSpan<>, ImSpanAllocator<> +// - Helper: ImPool<> +// - Helper: ImChunkStream<> +// - Helper: ImGuiTextIndex +//----------------------------------------------------------------------------- + +// Helpers: Hashing +IMGUI_API ImGuiID ImHashData(const void* data, size_t data_size, ImU32 seed = 0); +IMGUI_API ImGuiID ImHashStr(const char* data, size_t data_size = 0, ImU32 seed = 0); + +// Helpers: Sorting +#ifndef ImQsort +static inline void ImQsort(void* base, size_t count, size_t size_of_element, int(IMGUI_CDECL *compare_func)(void const*, void const*)) { if (count > 1) qsort(base, count, size_of_element, compare_func); } +#endif + +// Helpers: Color Blending +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b); + +// Helpers: Bit manipulation +static inline bool ImIsPowerOfTwo(int v) { return v != 0 && (v & (v - 1)) == 0; } +static inline bool ImIsPowerOfTwo(ImU64 v) { return v != 0 && (v & (v - 1)) == 0; } +static inline int ImUpperPowerOfTwo(int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; } + +// Helpers: String +IMGUI_API int ImStricmp(const char* str1, const char* str2); +IMGUI_API int ImStrnicmp(const char* str1, const char* str2, size_t count); +IMGUI_API void ImStrncpy(char* dst, const char* src, size_t count); +IMGUI_API char* ImStrdup(const char* str); +IMGUI_API char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* str); +IMGUI_API const char* ImStrchrRange(const char* str_begin, const char* str_end, char c); +IMGUI_API int ImStrlenW(const ImWchar* str); +IMGUI_API const char* ImStreolRange(const char* str, const char* str_end); // End end-of-line +IMGUI_API const ImWchar*ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin); // Find beginning-of-line +IMGUI_API const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); +IMGUI_API void ImStrTrimBlanks(char* str); +IMGUI_API const char* ImStrSkipBlank(const char* str); +IM_MSVC_RUNTIME_CHECKS_OFF +static inline char ImToUpper(char c) { return (c >= 'a' && c <= 'z') ? c &= ~32 : c; } +static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } +static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Formatting +IMGUI_API int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API const char* ImParseFormatFindStart(const char* format); +IMGUI_API const char* ImParseFormatFindEnd(const char* format); +IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); +IMGUI_API void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API int ImParseFormatPrecision(const char* format, int default_value); + +// Helpers: UTF-8 <> wchar conversions +IMGUI_API const char* ImTextCharToUtf8(char out_buf[5], unsigned int c); // return out_buf +IMGUI_API int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end); // return output UTF-8 bytes count +IMGUI_API int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); // read one character. return input UTF-8 bytes count +IMGUI_API int ImTextStrFromUtf8(ImWchar* out_buf, int out_buf_size, const char* in_text, const char* in_text_end, const char** in_remaining = NULL); // return input UTF-8 bytes count +IMGUI_API int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); // return number of UTF-8 code-points (NOT bytes count) +IMGUI_API int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end); // return number of bytes to express one char in UTF-8 +IMGUI_API int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); // return number of bytes to express string in UTF-8 + +// Helpers: ImVec2/ImVec4 operators +// We are keeping those disabled by default so they don't leak in user space, to allow user enabling implicit cast operators between ImVec2 and their own types (using IM_VEC2_CLASS_EXTRA etc.) +// We unfortunately don't have a unary- operator for ImVec2 because this would needs to be defined inside the class itself. +#ifdef IMGUI_DEFINE_MATH_OPERATORS +IM_MSVC_RUNTIME_CHECKS_OFF +static inline ImVec2 operator*(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x * rhs, lhs.y * rhs); } +static inline ImVec2 operator/(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x / rhs, lhs.y / rhs); } +static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); } +static inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); } +static inline ImVec2 operator*(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } +static inline ImVec2 operator/(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x / rhs.x, lhs.y / rhs.y); } +static inline ImVec2& operator*=(ImVec2& lhs, const float rhs) { lhs.x *= rhs; lhs.y *= rhs; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const float rhs) { lhs.x /= rhs; lhs.y /= rhs; return lhs; } +static inline ImVec2& operator+=(ImVec2& lhs, const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; return lhs; } +static inline ImVec2& operator-=(ImVec2& lhs, const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; } +static inline ImVec2& operator*=(ImVec2& lhs, const ImVec2& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const ImVec2& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y; return lhs; } +static inline ImVec4 operator+(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } +static inline ImVec4 operator-(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } +static inline ImVec4 operator*(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } +IM_MSVC_RUNTIME_CHECKS_RESTORE +#endif + +// Helpers: File System +#ifdef IMGUI_DISABLE_FILE_FUNCTIONS +#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef void* ImFileHandle; +static inline ImFileHandle ImFileOpen(const char*, const char*) { return NULL; } +static inline bool ImFileClose(ImFileHandle) { return false; } +static inline ImU64 ImFileGetSize(ImFileHandle) { return (ImU64)-1; } +static inline ImU64 ImFileRead(void*, ImU64, ImU64, ImFileHandle) { return 0; } +static inline ImU64 ImFileWrite(const void*, ImU64, ImU64, ImFileHandle) { return 0; } +#endif +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef FILE* ImFileHandle; +IMGUI_API ImFileHandle ImFileOpen(const char* filename, const char* mode); +IMGUI_API bool ImFileClose(ImFileHandle file); +IMGUI_API ImU64 ImFileGetSize(ImFileHandle file); +IMGUI_API ImU64 ImFileRead(void* data, ImU64 size, ImU64 count, ImFileHandle file); +IMGUI_API ImU64 ImFileWrite(const void* data, ImU64 size, ImU64 count, ImFileHandle file); +#else +#define IMGUI_DISABLE_TTY_FUNCTIONS // Can't use stdout, fflush if we are not using default file functions +#endif +IMGUI_API void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size = NULL, int padding_bytes = 0); + +// Helpers: Maths +IM_MSVC_RUNTIME_CHECKS_OFF +// - Wrapper for standard libs functions. (Note that imgui_demo.cpp does _not_ use them to keep the code easy to copy) +#ifndef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#define ImFabs(X) fabsf(X) +#define ImSqrt(X) sqrtf(X) +#define ImFmod(X, Y) fmodf((X), (Y)) +#define ImCos(X) cosf(X) +#define ImSin(X) sinf(X) +#define ImAcos(X) acosf(X) +#define ImAtan2(Y, X) atan2f((Y), (X)) +#define ImAtof(STR) atof(STR) +//#define ImFloorStd(X) floorf(X) // We use our own, see ImFloor() and ImFloorSigned() +#define ImCeil(X) ceilf(X) +static inline float ImPow(float x, float y) { return powf(x, y); } // DragBehaviorT/SliderBehaviorT uses ImPow with either float/double and need the precision +static inline double ImPow(double x, double y) { return pow(x, y); } +static inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision +static inline double ImLog(double x) { return log(x); } +static inline int ImAbs(int x) { return x < 0 ? -x : x; } +static inline float ImAbs(float x) { return fabsf(x); } +static inline double ImAbs(double x) { return fabs(x); } +static inline float ImSign(float x) { return (x < 0.0f) ? -1.0f : (x > 0.0f) ? 1.0f : 0.0f; } // Sign operator - returns -1, 0 or 1 based on sign of argument +static inline double ImSign(double x) { return (x < 0.0) ? -1.0 : (x > 0.0) ? 1.0 : 0.0; } +#ifdef IMGUI_ENABLE_SSE +static inline float ImRsqrt(float x) { return _mm_cvtss_f32(_mm_rsqrt_ss(_mm_set_ss(x))); } +#else +static inline float ImRsqrt(float x) { return 1.0f / sqrtf(x); } +#endif +static inline double ImRsqrt(double x) { return 1.0 / sqrt(x); } +#endif +// - ImMin/ImMax/ImClamp/ImLerp/ImSwap are used by widgets which support variety of types: signed/unsigned int/long long float/double +// (Exceptionally using templates here but we could also redefine them for those types) +template static inline T ImMin(T lhs, T rhs) { return lhs < rhs ? lhs : rhs; } +template static inline T ImMax(T lhs, T rhs) { return lhs >= rhs ? lhs : rhs; } +template static inline T ImClamp(T v, T mn, T mx) { return (v < mn) ? mn : (v > mx) ? mx : v; } +template static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * t); } +template static inline void ImSwap(T& a, T& b) { T tmp = a; a = b; b = tmp; } +template static inline T ImAddClampOverflow(T a, T b, T mn, T mx) { if (b < 0 && (a < mn - b)) return mn; if (b > 0 && (a > mx - b)) return mx; return a + b; } +template static inline T ImSubClampOverflow(T a, T b, T mn, T mx) { if (b > 0 && (a < mn + b)) return mn; if (b < 0 && (a > mx + b)) return mx; return a - b; } +// - Misc maths helpers +static inline ImVec2 ImMin(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x < rhs.x ? lhs.x : rhs.x, lhs.y < rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImMax(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x >= rhs.x ? lhs.x : rhs.x, lhs.y >= rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImClamp(const ImVec2& v, const ImVec2& mn, ImVec2 mx) { return ImVec2((v.x < mn.x) ? mn.x : (v.x > mx.x) ? mx.x : v.x, (v.y < mn.y) ? mn.y : (v.y > mx.y) ? mx.y : v.y); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, float t) { return ImVec2(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, const ImVec2& t) { return ImVec2(a.x + (b.x - a.x) * t.x, a.y + (b.y - a.y) * t.y); } +static inline ImVec4 ImLerp(const ImVec4& a, const ImVec4& b, float t) { return ImVec4(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t, a.z + (b.z - a.z) * t, a.w + (b.w - a.w) * t); } +static inline float ImSaturate(float f) { return (f < 0.0f) ? 0.0f : (f > 1.0f) ? 1.0f : f; } +static inline float ImLengthSqr(const ImVec2& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y); } +static inline float ImLengthSqr(const ImVec4& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y) + (lhs.z * lhs.z) + (lhs.w * lhs.w); } +static inline float ImInvLength(const ImVec2& lhs, float fail_value) { float d = (lhs.x * lhs.x) + (lhs.y * lhs.y); if (d > 0.0f) return ImRsqrt(d); return fail_value; } +static inline float ImFloor(float f) { return (float)(int)(f); } +static inline float ImFloorSigned(float f) { return (float)((f >= 0 || (float)(int)f == f) ? (int)f : (int)f - 1); } // Decent replacement for floorf() +static inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2((float)(int)(v.x), (float)(int)(v.y)); } +static inline ImVec2 ImFloorSigned(const ImVec2& v) { return ImVec2(ImFloorSigned(v.x), ImFloorSigned(v.y)); } +static inline int ImModPositive(int a, int b) { return (a + b) % b; } +static inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; } +static inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); } +static inline float ImLinearSweep(float current, float target, float speed) { if (current < target) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, target); return current; } +static inline ImVec2 ImMul(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } +static inline bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) { return f <= -16777216 || f >= 16777216; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Geometry +IMGUI_API ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t); +IMGUI_API ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments); // For curves with explicit number of segments +IMGUI_API ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol);// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol +IMGUI_API ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t); +IMGUI_API ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p); +IMGUI_API bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w); +inline float ImTriangleArea(const ImVec2& a, const ImVec2& b, const ImVec2& c) { return ImFabs((a.x * (b.y - c.y)) + (b.x * (c.y - a.y)) + (c.x * (a.y - b.y))) * 0.5f; } +IMGUI_API ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy); + +// Helper: ImVec1 (1D vector) +// (this odd construct is used to facilitate the transition between 1D and 2D, and the maintenance of some branches/patches) +IM_MSVC_RUNTIME_CHECKS_OFF +struct ImVec1 +{ + float x; + constexpr ImVec1() : x(0.0f) { } + constexpr ImVec1(float _x) : x(_x) { } +}; + +// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage) +struct ImVec2ih +{ + short x, y; + constexpr ImVec2ih() : x(0), y(0) {} + constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {} + constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {} +}; + +// Helper: ImRect (2D axis aligned bounding-box) +// NB: we can't rely on ImVec2 math operators being available here! +struct IMGUI_API ImRect +{ + ImVec2 Min; // Upper-left + ImVec2 Max; // Lower-right + + constexpr ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} + constexpr ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} + constexpr ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} + constexpr ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} + + ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + Max.y) * 0.5f); } + ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); } + float GetWidth() const { return Max.x - Min.x; } + float GetHeight() const { return Max.y - Min.y; } + float GetArea() const { return (Max.x - Min.x) * (Max.y - Min.y); } + ImVec2 GetTL() const { return Min; } // Top-left + ImVec2 GetTR() const { return ImVec2(Max.x, Min.y); } // Top-right + ImVec2 GetBL() const { return ImVec2(Min.x, Max.y); } // Bottom-left + ImVec2 GetBR() const { return Max; } // Bottom-right + bool Contains(const ImVec2& p) const { return p.x >= Min.x && p.y >= Min.y && p.x < Max.x && p.y < Max.y; } + bool Contains(const ImRect& r) const { return r.Min.x >= Min.x && r.Min.y >= Min.y && r.Max.x <= Max.x && r.Max.y <= Max.y; } + bool Overlaps(const ImRect& r) const { return r.Min.y < Max.y && r.Max.y > Min.y && r.Min.x < Max.x && r.Max.x > Min.x; } + void Add(const ImVec2& p) { if (Min.x > p.x) Min.x = p.x; if (Min.y > p.y) Min.y = p.y; if (Max.x < p.x) Max.x = p.x; if (Max.y < p.y) Max.y = p.y; } + void Add(const ImRect& r) { if (Min.x > r.Min.x) Min.x = r.Min.x; if (Min.y > r.Min.y) Min.y = r.Min.y; if (Max.x < r.Max.x) Max.x = r.Max.x; if (Max.y < r.Max.y) Max.y = r.Max.y; } + void Expand(const float amount) { Min.x -= amount; Min.y -= amount; Max.x += amount; Max.y += amount; } + void Expand(const ImVec2& amount) { Min.x -= amount.x; Min.y -= amount.y; Max.x += amount.x; Max.y += amount.y; } + void Translate(const ImVec2& d) { Min.x += d.x; Min.y += d.y; Max.x += d.x; Max.y += d.y; } + void TranslateX(float dx) { Min.x += dx; Max.x += dx; } + void TranslateY(float dy) { Min.y += dy; Max.y += dy; } + void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max); } // Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not for display. + void ClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(Max, r.Min, r.Max); } // Full version, ensure both points are fully clipped. + void Floor() { Min.x = IM_FLOOR(Min.x); Min.y = IM_FLOOR(Min.y); Max.x = IM_FLOOR(Max.x); Max.y = IM_FLOOR(Max.y); } + bool IsInverted() const { return Min.x > Max.x || Min.y > Max.y; } + ImVec4 ToVec4() const { return ImVec4(Min.x, Min.y, Max.x, Max.y); } +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helper: ImBitArray +inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; } +inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; } +inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; } +inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2) +{ + n2--; + while (n <= n2) + { + int a_mod = (n & 31); + int b_mod = (n2 > (n | 31) ? 31 : (n2 & 31)) + 1; + ImU32 mask = (ImU32)(((ImU64)1 << b_mod) - 1) & ~(ImU32)(((ImU64)1 << a_mod) - 1); + arr[n >> 5] |= mask; + n = (n + 32) & ~31; + } +} + +// Helper: ImBitArray class (wrapper over ImBitArray functions) +// Store 1-bit per value. +template +struct ImBitArray +{ + ImU32 Storage[(BITCOUNT + 31) >> 5]; + ImBitArray() { ClearAllBits(); } + void ClearAllBits() { memset(Storage, 0, sizeof(Storage)); } + void SetAllBits() { memset(Storage, 255, sizeof(Storage)); } + bool TestBit(int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } + void SetBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArraySetBit(Storage, n); } + void ClearBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArrayClearBit(Storage, n); } + void SetBitRange(int n, int n2) { n += OFFSET; n2 += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT && n2 > n && n2 <= BITCOUNT); ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2) + bool operator[](int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } +}; + +// Helper: ImBitVector +// Store 1-bit per value. +struct IMGUI_API ImBitVector +{ + ImVector Storage; + void Create(int sz) { Storage.resize((sz + 31) >> 5); memset(Storage.Data, 0, (size_t)Storage.Size * sizeof(Storage.Data[0])); } + void Clear() { Storage.clear(); } + bool TestBit(int n) const { IM_ASSERT(n < (Storage.Size << 5)); return ImBitArrayTestBit(Storage.Data, n); } + void SetBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArraySetBit(Storage.Data, n); } + void ClearBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArrayClearBit(Storage.Data, n); } +}; + +// Helper: ImSpan<> +// Pointing to a span of data we don't own. +template +struct ImSpan +{ + T* Data; + T* DataEnd; + + // Constructors, destructor + inline ImSpan() { Data = DataEnd = NULL; } + inline ImSpan(T* data, int size) { Data = data; DataEnd = data + size; } + inline ImSpan(T* data, T* data_end) { Data = data; DataEnd = data_end; } + + inline void set(T* data, int size) { Data = data; DataEnd = data + size; } + inline void set(T* data, T* data_end) { Data = data; DataEnd = data_end; } + inline int size() const { return (int)(ptrdiff_t)(DataEnd - Data); } + inline int size_in_bytes() const { return (int)(ptrdiff_t)(DataEnd - Data) * (int)sizeof(T); } + inline T& operator[](int i) { T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } + inline const T& operator[](int i) const { const T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } + + inline T* begin() { return Data; } + inline const T* begin() const { return Data; } + inline T* end() { return DataEnd; } + inline const T* end() const { return DataEnd; } + + // Utilities + inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < DataEnd); const ptrdiff_t off = it - Data; return (int)off; } +}; + +// Helper: ImSpanAllocator<> +// Facilitate storing multiple chunks into a single large block (the "arena") +// - Usage: call Reserve() N times, allocate GetArenaSizeInBytes() worth, pass it to SetArenaBasePtr(), call GetSpan() N times to retrieve the aligned ranges. +template +struct ImSpanAllocator +{ + char* BasePtr; + int CurrOff; + int CurrIdx; + int Offsets[CHUNKS]; + int Sizes[CHUNKS]; + + ImSpanAllocator() { memset(this, 0, sizeof(*this)); } + inline void Reserve(int n, size_t sz, int a=4) { IM_ASSERT(n == CurrIdx && n < CHUNKS); CurrOff = IM_MEMALIGN(CurrOff, a); Offsets[n] = CurrOff; Sizes[n] = (int)sz; CurrIdx++; CurrOff += (int)sz; } + inline int GetArenaSizeInBytes() { return CurrOff; } + inline void SetArenaBasePtr(void* base_ptr) { BasePtr = (char*)base_ptr; } + inline void* GetSpanPtrBegin(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n]); } + inline void* GetSpanPtrEnd(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n] + Sizes[n]); } + template + inline void GetSpan(int n, ImSpan* span) { span->set((T*)GetSpanPtrBegin(n), (T*)GetSpanPtrEnd(n)); } +}; + +// Helper: ImPool<> +// Basic keyed storage for contiguous instances, slow/amortized insertion, O(1) indexable, O(Log N) queries by ID over a dense/hot buffer, +// Honor constructor/destructor. Add/remove invalidate all pointers. Indexes have the same lifetime as the associated object. +typedef int ImPoolIdx; +template +struct ImPool +{ + ImVector Buf; // Contiguous data + ImGuiStorage Map; // ID->Index + ImPoolIdx FreeIdx; // Next free idx to use + ImPoolIdx AliveCount; // Number of active/alive items (for display purpose) + + ImPool() { FreeIdx = AliveCount = 0; } + ~ImPool() { Clear(); } + T* GetByKey(ImGuiID key) { int idx = Map.GetInt(key, -1); return (idx != -1) ? &Buf[idx] : NULL; } + T* GetByIndex(ImPoolIdx n) { return &Buf[n]; } + ImPoolIdx GetIndex(const T* p) const { IM_ASSERT(p >= Buf.Data && p < Buf.Data + Buf.Size); return (ImPoolIdx)(p - Buf.Data); } + T* GetOrAddByKey(ImGuiID key) { int* p_idx = Map.GetIntRef(key, -1); if (*p_idx != -1) return &Buf[*p_idx]; *p_idx = FreeIdx; return Add(); } + bool Contains(const T* p) const { return (p >= Buf.Data && p < Buf.Data + Buf.Size); } + void Clear() { for (int n = 0; n < Map.Data.Size; n++) { int idx = Map.Data[n].val_i; if (idx != -1) Buf[idx].~T(); } Map.Clear(); Buf.clear(); FreeIdx = AliveCount = 0; } + T* Add() { int idx = FreeIdx; if (idx == Buf.Size) { Buf.resize(Buf.Size + 1); FreeIdx++; } else { FreeIdx = *(int*)&Buf[idx]; } IM_PLACEMENT_NEW(&Buf[idx]) T(); AliveCount++; return &Buf[idx]; } + void Remove(ImGuiID key, const T* p) { Remove(key, GetIndex(p)); } + void Remove(ImGuiID key, ImPoolIdx idx) { Buf[idx].~T(); *(int*)&Buf[idx] = FreeIdx; FreeIdx = idx; Map.SetInt(key, -1); AliveCount--; } + void Reserve(int capacity) { Buf.reserve(capacity); Map.Data.reserve(capacity); } + + // To iterate a ImPool: for (int n = 0; n < pool.GetMapSize(); n++) if (T* t = pool.TryGetMapData(n)) { ... } + // Can be avoided if you know .Remove() has never been called on the pool, or AliveCount == GetMapSize() + int GetAliveCount() const { return AliveCount; } // Number of active/alive items in the pool (for display purpose) + int GetBufSize() const { return Buf.Size; } + int GetMapSize() const { return Map.Data.Size; } // It is the map we need iterate to find valid items, since we don't have "alive" storage anywhere + T* TryGetMapData(ImPoolIdx n) { int idx = Map.Data[n].val_i; if (idx == -1) return NULL; return GetByIndex(idx); } +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + int GetSize() { return GetMapSize(); } // For ImPlot: should use GetMapSize() from (IMGUI_VERSION_NUM >= 18304) +#endif +}; + +// Helper: ImChunkStream<> +// Build and iterate a contiguous stream of variable-sized structures. +// This is used by Settings to store persistent data while reducing allocation count. +// We store the chunk size first, and align the final size on 4 bytes boundaries. +// The tedious/zealous amount of casting is to avoid -Wcast-align warnings. +template +struct ImChunkStream +{ + ImVector Buf; + + void clear() { Buf.clear(); } + bool empty() const { return Buf.Size == 0; } + int size() const { return Buf.Size; } + T* alloc_chunk(size_t sz) { size_t HDR_SZ = 4; sz = IM_MEMALIGN(HDR_SZ + sz, 4u); int off = Buf.Size; Buf.resize(off + (int)sz); ((int*)(void*)(Buf.Data + off))[0] = (int)sz; return (T*)(void*)(Buf.Data + off + (int)HDR_SZ); } + T* begin() { size_t HDR_SZ = 4; if (!Buf.Data) return NULL; return (T*)(void*)(Buf.Data + HDR_SZ); } + T* next_chunk(T* p) { size_t HDR_SZ = 4; IM_ASSERT(p >= begin() && p < end()); p = (T*)(void*)((char*)(void*)p + chunk_size(p)); if (p == (T*)(void*)((char*)end() + HDR_SZ)) return (T*)0; IM_ASSERT(p < end()); return p; } + int chunk_size(const T* p) { return ((const int*)p)[-1]; } + T* end() { return (T*)(void*)(Buf.Data + Buf.Size); } + int offset_from_ptr(const T* p) { IM_ASSERT(p >= begin() && p < end()); const ptrdiff_t off = (const char*)p - Buf.Data; return (int)off; } + T* ptr_from_offset(int off) { IM_ASSERT(off >= 4 && off < Buf.Size); return (T*)(void*)(Buf.Data + off); } + void swap(ImChunkStream& rhs) { rhs.Buf.swap(Buf); } + +}; + +// Helper: ImGuiTextIndex<> +// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. +struct ImGuiTextIndex +{ + ImVector LineOffsets; + int EndOffset = 0; // Because we don't own text buffer we need to maintain EndOffset (may bake in LineOffsets?) + + void clear() { LineOffsets.clear(); EndOffset = 0; } + int size() { return LineOffsets.Size; } + const char* get_line_begin(const char* base, int n) { return base + LineOffsets[n]; } + const char* get_line_end(const char* base, int n) { return base + (n + 1 < LineOffsets.Size ? (LineOffsets[n + 1] - 1) : EndOffset); } + void append(const char* base, int old_size, int new_size); +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList support +//----------------------------------------------------------------------------- + +// ImDrawList: Helper function to calculate a circle's segment count given its radius and a "maximum error" value. +// Estimation of number of circle segment based on error is derived using method described in https://stackoverflow.com/a/2244088/15194693 +// Number of segments (N) is calculated using equation: +// N = ceil ( pi / acos(1 - error / r) ) where r > 0, error <= r +// Our equation is significantly simpler that one in the post thanks for choosing segment that is +// perpendicular to X axis. Follow steps in the article from this starting condition and you will +// will get this result. +// +// Rendering circles with an odd number of segments, while mathematically correct will produce +// asymmetrical results on the raster grid. Therefore we're rounding N to next even number (7->8, 8->8, 9->10 etc.) +#define IM_ROUNDUP_TO_EVEN(_V) ((((_V) + 1) / 2) * 2) +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN 4 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX 512 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(_RAD,_MAXERROR) ImClamp(IM_ROUNDUP_TO_EVEN((int)ImCeil(IM_PI / ImAcos(1 - ImMin((_MAXERROR), (_RAD)) / (_RAD)))), IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX) + +// Raw equation from IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC rewritten for 'r' and 'error'. +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(_N,_MAXERROR) ((_MAXERROR) / (1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI)))) +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_ERROR(_N,_RAD) ((1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI))) / (_RAD)) + +// ImDrawList: Lookup table size for adaptive arc drawing, cover full circle. +#ifndef IM_DRAWLIST_ARCFAST_TABLE_SIZE +#define IM_DRAWLIST_ARCFAST_TABLE_SIZE 48 // Number of samples in lookup table. +#endif +#define IM_DRAWLIST_ARCFAST_SAMPLE_MAX IM_DRAWLIST_ARCFAST_TABLE_SIZE // Sample index _PathArcToFastEx() for 360 angle. + +// Data shared between all ImDrawList instances +// You may want to create your own instance of this if you want to use ImDrawList completely without ImGui. In that case, watch out for future changes to this structure. +struct IMGUI_API ImDrawListSharedData +{ + ImVec2 TexUvWhitePixel; // UV of white pixel in the atlas + ImFont* Font; // Current/default font (optional, for simplified AddText overload) + float FontSize; // Current/default font size (optional, for simplified AddText overload) + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() + float CircleSegmentMaxError; // Number of circle segments to use per pixel of radius for AddCircle() etc + ImVec4 ClipRectFullscreen; // Value for PushClipRectFullscreen() + ImDrawListFlags InitialFlags; // Initial flags at the beginning of the frame (it is possible to alter flags on a per-drawlist basis afterwards) + + // [Internal] Temp write buffer + ImVector TempBuffer; + + // [Internal] Lookup tables + ImVec2 ArcFastVtx[IM_DRAWLIST_ARCFAST_TABLE_SIZE]; // Sample points on the quarter of the circle. + float ArcFastRadiusCutoff; // Cutoff radius after which arc drawing will fallback to slower PathArcTo() + ImU8 CircleSegmentCounts[64]; // Precomputed segment count for given radius before we calculate it dynamically (to avoid calculation overhead) + const ImVec4* TexUvLines; // UV of anti-aliased lines in the atlas + + ImDrawListSharedData(); + void SetCircleTessellationMaxError(float max_error); +}; + +struct ImDrawDataBuilder +{ + ImVector Layers[2]; // Global layers for: regular, tooltip + + void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].resize(0); } + void ClearFreeMemory() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].clear(); } + int GetDrawListCount() const { int count = 0; for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) count += Layers[n].Size; return count; } + IMGUI_API void FlattenIntoSingleLayer(); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Widgets support: flags, enums, data structures +//----------------------------------------------------------------------------- + +// Flags used by upcoming items +// - input: PushItemFlag() manipulates g.CurrentItemFlags, ItemAdd() calls may add extra flags. +// - output: stored in g.LastItemData.InFlags +// Current window shared by all windows. +// This is going to be exposed in imgui.h when stabilized enough. +enum ImGuiItemFlags_ +{ + // Controlled by user + ImGuiItemFlags_None = 0, + ImGuiItemFlags_NoTabStop = 1 << 0, // false // Disable keyboard tabbing (FIXME: should merge with _NoNav) + ImGuiItemFlags_ButtonRepeat = 1 << 1, // false // Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings. + ImGuiItemFlags_Disabled = 1 << 2, // false // Disable interactions but doesn't affect visuals. See BeginDisabled()/EndDisabled(). See github.com/ocornut/imgui/issues/211 + ImGuiItemFlags_NoNav = 1 << 3, // false // Disable keyboard/gamepad directional navigation (FIXME: should merge with _NoTabStop) + ImGuiItemFlags_NoNavDefaultFocus = 1 << 4, // false // Disable item being a candidate for default focus (e.g. used by title bar items) + ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, // false // Disable MenuItem/Selectable() automatically closing their popup window + ImGuiItemFlags_MixedValue = 1 << 6, // false // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets) + ImGuiItemFlags_ReadOnly = 1 << 7, // false // [ALPHA] Allow hovering interactions but underlying value is not changed. + ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, // false // Disable hoverable check in ItemHoverable() + + // Controlled by widget code + ImGuiItemFlags_Inputable = 1 << 10, // false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature. +}; + +// Status flags for an already submitted item +// - output: stored in g.LastItemData.StatusFlags +enum ImGuiItemStatusFlags_ +{ + ImGuiItemStatusFlags_None = 0, + ImGuiItemStatusFlags_HoveredRect = 1 << 0, // Mouse position is within item rectangle (does NOT mean that the window is in correct z-order and can be hovered!, this is only one part of the most-common IsItemHovered test) + ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, // g.LastItemData.DisplayRect is valid + ImGuiItemStatusFlags_Edited = 1 << 2, // Value exposed by item was edited in the current frame (should match the bool return value of most widgets) + ImGuiItemStatusFlags_ToggledSelection = 1 << 3, // Set when Selectable(), TreeNode() reports toggling a selection. We can't report "Selected", only state changes, in order to easily handle clipping with less issues. + ImGuiItemStatusFlags_ToggledOpen = 1 << 4, // Set when TreeNode() reports toggling their open state. + ImGuiItemStatusFlags_HasDeactivated = 1 << 5, // Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag. + ImGuiItemStatusFlags_Deactivated = 1 << 6, // Only valid if ImGuiItemStatusFlags_HasDeactivated is set. + ImGuiItemStatusFlags_HoveredWindow = 1 << 7, // Override the HoveredWindow test to allow cross-window hover testing. + ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, // Set when the Focusable item just got focused by Tabbing (FIXME: to be removed soon) + ImGuiItemStatusFlags_Visible = 1 << 9, // [WIP] Set when item is overlapping the current clipping rectangle (Used internally. Please don't use yet: API/system will change as we refactor Itemadd()). + +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiItemStatusFlags_Openable = 1 << 20, // Item is an openable (e.g. TreeNode) + ImGuiItemStatusFlags_Opened = 1 << 21, // + ImGuiItemStatusFlags_Checkable = 1 << 22, // Item is a checkable (e.g. CheckBox, MenuItem) + ImGuiItemStatusFlags_Checked = 1 << 23, // +#endif +}; + +// Extend ImGuiInputTextFlags_ +enum ImGuiInputTextFlagsPrivate_ +{ + // [Internal] + ImGuiInputTextFlags_Multiline = 1 << 26, // For internal use by InputTextMultiline() + ImGuiInputTextFlags_NoMarkEdited = 1 << 27, // For internal use by functions using InputText() before reformatting data + ImGuiInputTextFlags_MergedItem = 1 << 28, // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match. +}; + +// Extend ImGuiButtonFlags_ +enum ImGuiButtonFlagsPrivate_ +{ + ImGuiButtonFlags_PressedOnClick = 1 << 4, // return true on click (mouse down event) + ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, // [Default] return true on click + release on same item <-- this is what the majority of Button are using + ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, // return true on click + release even if the release event is not done while hovering the item + ImGuiButtonFlags_PressedOnRelease = 1 << 7, // return true on release (default requires click+release) + ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, // return true on double-click (default requires click+release) + ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, // return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers) + ImGuiButtonFlags_Repeat = 1 << 10, // hold to repeat + ImGuiButtonFlags_FlattenChildren = 1 << 11, // allow interactions even if a child window is overlapping + ImGuiButtonFlags_AllowItemOverlap = 1 << 12, // require previous frame HoveredId to either match id or be null before being usable, use along with SetItemAllowOverlap() + ImGuiButtonFlags_DontClosePopups = 1 << 13, // disable automatically closing parent popup on press // [UNUSED] + //ImGuiButtonFlags_Disabled = 1 << 14, // disable interactions -> use BeginDisabled() or ImGuiItemFlags_Disabled + ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine + ImGuiButtonFlags_NoKeyModifiers = 1 << 16, // disable mouse interaction if a key modifier is held + ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only) + ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated (FIXME: this is essentially used everytime an item uses ImGuiItemFlags_NoNav, but because legacy specs don't requires LastItemData to be set ButtonBehavior(), we can't poll g.LastItemData.InFlags) + ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, // don't report as hovered when nav focus is on this item + ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, // don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, // don't test key/input owner when polling the key (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, +}; + +// Extend ImGuiComboFlags_ +enum ImGuiComboFlagsPrivate_ +{ + ImGuiComboFlags_CustomPreview = 1 << 20, // enable BeginComboPreview() +}; + +// Extend ImGuiSliderFlags_ +enum ImGuiSliderFlagsPrivate_ +{ + ImGuiSliderFlags_Vertical = 1 << 20, // Should this slider be orientated vertically? + ImGuiSliderFlags_ReadOnly = 1 << 21, +}; + +// Extend ImGuiSelectableFlags_ +enum ImGuiSelectableFlagsPrivate_ +{ + // NB: need to be in sync with last value of ImGuiSelectableFlags_ + ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, + ImGuiSelectableFlags_SelectOnNav = 1 << 21, // (WIP) Auto-select when moved into. This is not exposed in public API as to handle multi-select and modifiers we will need user to explicitly control focus scope. May be replaced with a BeginSelection() API. + ImGuiSelectableFlags_SelectOnClick = 1 << 22, // Override button behavior to react on Click (default is Click+Release) + ImGuiSelectableFlags_SelectOnRelease = 1 << 23, // Override button behavior to react on Release (default is Click+Release) + ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, // Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus) + ImGuiSelectableFlags_DrawHoveredWhenHeld = 1 << 25, // Always show active when held, even is not hovered. This concept could probably be renamed/formalized somehow. + ImGuiSelectableFlags_SetNavIdOnHover = 1 << 26, // Set Nav/Focus ID on mouse hover (used by MenuItem) + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 27, // Disable padding each side with ItemSpacing * 0.5f + ImGuiSelectableFlags_NoSetKeyOwner = 1 << 28, // Don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) +}; + +// Extend ImGuiTreeNodeFlags_ +enum ImGuiTreeNodeFlagsPrivate_ +{ + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, +}; + +enum ImGuiSeparatorFlags_ +{ + ImGuiSeparatorFlags_None = 0, + ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar + ImGuiSeparatorFlags_Vertical = 1 << 1, + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, +}; + +enum ImGuiTextFlags_ +{ + ImGuiTextFlags_None = 0, + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, +}; + +enum ImGuiTooltipFlags_ +{ + ImGuiTooltipFlags_None = 0, + ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0, // Override will clear/ignore previously submitted tooltip (defaults to append) +}; + +// FIXME: this is in development, not exposed/functional as a generic feature yet. +// Horizontal/Vertical enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiLayoutType_ +{ + ImGuiLayoutType_Horizontal = 0, + ImGuiLayoutType_Vertical = 1 +}; + +enum ImGuiLogType +{ + ImGuiLogType_None = 0, + ImGuiLogType_TTY, + ImGuiLogType_File, + ImGuiLogType_Buffer, + ImGuiLogType_Clipboard, +}; + +// X/Y enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiAxis +{ + ImGuiAxis_None = -1, + ImGuiAxis_X = 0, + ImGuiAxis_Y = 1 +}; + +enum ImGuiPlotType +{ + ImGuiPlotType_Lines, + ImGuiPlotType_Histogram, +}; + +enum ImGuiPopupPositionPolicy +{ + ImGuiPopupPositionPolicy_Default, + ImGuiPopupPositionPolicy_ComboBox, + ImGuiPopupPositionPolicy_Tooltip, +}; + +struct ImGuiDataTypeTempStorage +{ + ImU8 Data[8]; // Can fit any data up to ImGuiDataType_COUNT +}; + +// Type information associated to one ImGuiDataType. Retrieve with DataTypeGetInfo(). +struct ImGuiDataTypeInfo +{ + size_t Size; // Size in bytes + const char* Name; // Short descriptive name for the type, for debugging + const char* PrintFmt; // Default printf format for the type + const char* ScanFmt; // Default scanf format for the type +}; + +// Extend ImGuiDataType_ +enum ImGuiDataTypePrivate_ +{ + ImGuiDataType_String = ImGuiDataType_COUNT + 1, + ImGuiDataType_Pointer, + ImGuiDataType_ID, +}; + +// Stacked color modifier, backup of modified data so we can restore it +struct ImGuiColorMod +{ + ImGuiCol Col; + ImVec4 BackupValue; +}; + +// Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable. +struct ImGuiStyleMod +{ + ImGuiStyleVar VarIdx; + union { int BackupInt[2]; float BackupFloat[2]; }; + ImGuiStyleMod(ImGuiStyleVar idx, int v) { VarIdx = idx; BackupInt[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, float v) { VarIdx = idx; BackupFloat[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, ImVec2 v) { VarIdx = idx; BackupFloat[0] = v.x; BackupFloat[1] = v.y; } +}; + +// Storage data for BeginComboPreview()/EndComboPreview() +struct IMGUI_API ImGuiComboPreviewData +{ + ImRect PreviewRect; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec2 BackupCursorPosPrevLine; + float BackupPrevLineTextBaseOffset; + ImGuiLayoutType BackupLayout; + + ImGuiComboPreviewData() { memset(this, 0, sizeof(*this)); } +}; + +// Stacked storage data for BeginGroup()/EndGroup() +struct IMGUI_API ImGuiGroupData +{ + ImGuiID WindowID; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec1 BackupIndent; + ImVec1 BackupGroupOffset; + ImVec2 BackupCurrLineSize; + float BackupCurrLineTextBaseOffset; + ImGuiID BackupActiveIdIsAlive; + bool BackupActiveIdPreviousFrameIsAlive; + bool BackupHoveredIdIsAlive; + bool EmitItem; +}; + +// Simple column measurement, currently used for MenuItem() only.. This is very short-sighted/throw-away code and NOT a generic helper. +struct IMGUI_API ImGuiMenuColumns +{ + ImU32 TotalWidth; + ImU32 NextTotalWidth; + ImU16 Spacing; + ImU16 OffsetIcon; // Always zero for now + ImU16 OffsetLabel; // Offsets are locked in Update() + ImU16 OffsetShortcut; + ImU16 OffsetMark; + ImU16 Widths[4]; // Width of: Icon, Label, Shortcut, Mark (accumulators for current frame) + + ImGuiMenuColumns() { memset(this, 0, sizeof(*this)); } + void Update(float spacing, bool window_reappearing); + float DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark); + void CalcNextTotalWidth(bool update_offsets); +}; + +// Internal state of the currently focused/edited text input box +// For a given item ID, access with ImGui::GetInputTextState() +struct IMGUI_API ImGuiInputTextState +{ + ImGuiID ID; // widget id owning the text state + int CurLenW, CurLenA; // we need to maintain our buffer length in both UTF-8 and wchar format. UTF-8 length is valid even if TextA is not. + ImVector TextW; // edit buffer, we need to persist but can't guarantee the persistence of the user-provided buffer. so we copy into own buffer. + ImVector TextA; // temporary UTF8 buffer for callbacks and other operations. this is not updated in every code-path! size=capacity. + ImVector InitialTextA; // backup of end-user buffer at the time of focus (in UTF-8, unaltered) + bool TextAIsValid; // temporary UTF8 buffer is not initially valid before we make the widget active (until then we pull the data from user argument) + int BufCapacityA; // end-user buffer capacity + float ScrollX; // horizontal scrolling/offset + ImStb::STB_TexteditState Stb; // state for stb_textedit.h + float CursorAnim; // timer for cursor blink, reset on every user action so the cursor reappears immediately + bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!) + bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection + bool Edited; // edited this frame + ImGuiInputTextFlags Flags; // copy of InputText() flags. may be used to check if e.g. ImGuiInputTextFlags_Password is set. + + ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } + void ClearText() { CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); } + void ClearFreeMemory() { TextW.clear(); TextA.clear(); InitialTextA.clear(); } + int GetUndoAvailCount() const { return Stb.undostate.undo_point; } + int GetRedoAvailCount() const { return STB_TEXTEDIT_UNDOSTATECOUNT - Stb.undostate.redo_point; } + void OnKeyPressed(int key); // Cannot be inline because we call in code in stb_textedit.h implementation + + // Cursor & Selection + void CursorAnimReset() { CursorAnim = -0.30f; } // After a user-input the cursor stays on for a while without blinking + void CursorClamp() { Stb.cursor = ImMin(Stb.cursor, CurLenW); Stb.select_start = ImMin(Stb.select_start, CurLenW); Stb.select_end = ImMin(Stb.select_end, CurLenW); } + bool HasSelection() const { return Stb.select_start != Stb.select_end; } + void ClearSelection() { Stb.select_start = Stb.select_end = Stb.cursor; } + int GetCursorPos() const { return Stb.cursor; } + int GetSelectionStart() const { return Stb.select_start; } + int GetSelectionEnd() const { return Stb.select_end; } + void SelectAll() { Stb.select_start = 0; Stb.cursor = Stb.select_end = CurLenW; Stb.has_preferred_x = 0; } +}; + +// Storage for current popup stack +struct ImGuiPopupData +{ + ImGuiID PopupId; // Set on OpenPopup() + ImGuiWindow* Window; // Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup() + ImGuiWindow* BackupNavWindow;// Set on OpenPopup(), a NavWindow that will be restored on popup close + int ParentNavLayer; // Resolved on BeginPopup(). Actually a ImGuiNavLayer type (declared down below), initialized to -1 which is not part of an enum, but serves well-enough as "not any of layers" value + int OpenFrameCount; // Set on OpenPopup() + ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) + ImVec2 OpenPopupPos; // Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse) + ImVec2 OpenMousePos; // Set on OpenPopup(), copy of mouse position at the time of opening popup + + ImGuiPopupData() { memset(this, 0, sizeof(*this)); ParentNavLayer = OpenFrameCount = -1; } +}; + +enum ImGuiNextWindowDataFlags_ +{ + ImGuiNextWindowDataFlags_None = 0, + ImGuiNextWindowDataFlags_HasPos = 1 << 0, + ImGuiNextWindowDataFlags_HasSize = 1 << 1, + ImGuiNextWindowDataFlags_HasContentSize = 1 << 2, + ImGuiNextWindowDataFlags_HasCollapsed = 1 << 3, + ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, + ImGuiNextWindowDataFlags_HasFocus = 1 << 5, + ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, + ImGuiNextWindowDataFlags_HasScroll = 1 << 7, + ImGuiNextWindowDataFlags_HasViewport = 1 << 8, + ImGuiNextWindowDataFlags_HasDock = 1 << 9, + ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10, +}; + +// Storage for SetNexWindow** functions +struct ImGuiNextWindowData +{ + ImGuiNextWindowDataFlags Flags; + ImGuiCond PosCond; + ImGuiCond SizeCond; + ImGuiCond CollapsedCond; + ImGuiCond DockCond; + ImVec2 PosVal; + ImVec2 PosPivotVal; + ImVec2 SizeVal; + ImVec2 ContentSizeVal; + ImVec2 ScrollVal; + bool PosUndock; + bool CollapsedVal; + ImRect SizeConstraintRect; + ImGuiSizeCallback SizeCallback; + void* SizeCallbackUserData; + float BgAlphaVal; // Override background alpha + ImGuiID ViewportId; + ImGuiID DockId; + ImGuiWindowClass WindowClass; + ImVec2 MenuBarOffsetMinVal; // (Always on) This is not exposed publicly, so we don't clear it and it doesn't have a corresponding flag (could we? for consistency?) + + ImGuiNextWindowData() { memset(this, 0, sizeof(*this)); } + inline void ClearFlags() { Flags = ImGuiNextWindowDataFlags_None; } +}; + +enum ImGuiNextItemDataFlags_ +{ + ImGuiNextItemDataFlags_None = 0, + ImGuiNextItemDataFlags_HasWidth = 1 << 0, + ImGuiNextItemDataFlags_HasOpen = 1 << 1, +}; + +struct ImGuiNextItemData +{ + ImGuiNextItemDataFlags Flags; + float Width; // Set by SetNextItemWidth() + ImGuiID FocusScopeId; // Set by SetNextItemMultiSelectData() (!= 0 signify value has been set, so it's an alternate version of HasSelectionData, we don't use Flags for this because they are cleared too early. This is mostly used for debugging) + ImGuiCond OpenCond; + bool OpenVal; // Set by SetNextItemOpen() + + ImGuiNextItemData() { memset(this, 0, sizeof(*this)); } + inline void ClearFlags() { Flags = ImGuiNextItemDataFlags_None; } // Also cleared manually by ItemAdd()! +}; + +// Status storage for the last submitted item +struct ImGuiLastItemData +{ + ImGuiID ID; + ImGuiItemFlags InFlags; // See ImGuiItemFlags_ + ImGuiItemStatusFlags StatusFlags; // See ImGuiItemStatusFlags_ + ImRect Rect; // Full rectangle + ImRect NavRect; // Navigation scoring rectangle (not displayed) + ImRect DisplayRect; // Display rectangle (only if ImGuiItemStatusFlags_HasDisplayRect is set) + + ImGuiLastItemData() { memset(this, 0, sizeof(*this)); } +}; + +struct IMGUI_API ImGuiStackSizes +{ + short SizeOfIDStack; + short SizeOfColorStack; + short SizeOfStyleVarStack; + short SizeOfFontStack; + short SizeOfFocusScopeStack; + short SizeOfGroupStack; + short SizeOfItemFlagsStack; + short SizeOfBeginPopupStack; + short SizeOfDisabledStack; + + ImGuiStackSizes() { memset(this, 0, sizeof(*this)); } + void SetToCurrentState(); + void CompareWithCurrentState(); +}; + +// Data saved for each window pushed into the stack +struct ImGuiWindowStackData +{ + ImGuiWindow* Window; + ImGuiLastItemData ParentLastItemDataBackup; + ImGuiStackSizes StackSizesOnBegin; // Store size of various stacks for asserting +}; + +struct ImGuiShrinkWidthItem +{ + int Index; + float Width; + float InitialWidth; +}; + +struct ImGuiPtrOrIndex +{ + void* Ptr; // Either field can be set, not both. e.g. Dock node tab bars are loose while BeginTabBar() ones are in a pool. + int Index; // Usually index in a main pool. + + ImGuiPtrOrIndex(void* ptr) { Ptr = ptr; Index = -1; } + ImGuiPtrOrIndex(int index) { Ptr = NULL; Index = index; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Inputs support +//----------------------------------------------------------------------------- + +typedef ImBitArray ImBitArrayForNamedKeys; + +// [Internal] Key ranges +#define ImGuiKey_LegacyNativeKey_BEGIN 0 +#define ImGuiKey_LegacyNativeKey_END 512 +#define ImGuiKey_Keyboard_BEGIN (ImGuiKey_NamedKey_BEGIN) +#define ImGuiKey_Keyboard_END (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_BEGIN (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_END (ImGuiKey_GamepadRStickDown + 1) +#define ImGuiKey_Mouse_BEGIN (ImGuiKey_MouseLeft) +#define ImGuiKey_Mouse_END (ImGuiKey_MouseWheelY + 1) +#define ImGuiKey_Aliases_BEGIN (ImGuiKey_Mouse_BEGIN) +#define ImGuiKey_Aliases_END (ImGuiKey_Mouse_END) + +// [Internal] Named shortcuts for Navigation +#define ImGuiKey_NavKeyboardTweakSlow ImGuiMod_Ctrl +#define ImGuiKey_NavKeyboardTweakFast ImGuiMod_Shift +#define ImGuiKey_NavGamepadTweakSlow ImGuiKey_GamepadL1 +#define ImGuiKey_NavGamepadTweakFast ImGuiKey_GamepadR1 +#define ImGuiKey_NavGamepadActivate ImGuiKey_GamepadFaceDown +#define ImGuiKey_NavGamepadCancel ImGuiKey_GamepadFaceRight +#define ImGuiKey_NavGamepadMenu ImGuiKey_GamepadFaceLeft +#define ImGuiKey_NavGamepadInput ImGuiKey_GamepadFaceUp + +enum ImGuiInputEventType +{ + ImGuiInputEventType_None = 0, + ImGuiInputEventType_MousePos, + ImGuiInputEventType_MouseWheel, + ImGuiInputEventType_MouseButton, + ImGuiInputEventType_MouseViewport, + ImGuiInputEventType_Key, + ImGuiInputEventType_Text, + ImGuiInputEventType_Focus, + ImGuiInputEventType_COUNT +}; + +enum ImGuiInputSource +{ + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, + ImGuiInputSource_Keyboard, + ImGuiInputSource_Gamepad, + ImGuiInputSource_Clipboard, // Currently only used by InputText() + ImGuiInputSource_Nav, // Stored in g.ActiveIdSource only + ImGuiInputSource_COUNT +}; + +// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension? +// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor' +struct ImGuiInputEventMousePos { float PosX, PosY; }; +struct ImGuiInputEventMouseWheel { float WheelX, WheelY; }; +struct ImGuiInputEventMouseButton { int Button; bool Down; }; +struct ImGuiInputEventMouseViewport { ImGuiID HoveredViewportID; }; +struct ImGuiInputEventKey { ImGuiKey Key; bool Down; float AnalogValue; }; +struct ImGuiInputEventText { unsigned int Char; }; +struct ImGuiInputEventAppFocused { bool Focused; }; + +struct ImGuiInputEvent +{ + ImGuiInputEventType Type; + ImGuiInputSource Source; + union + { + ImGuiInputEventMousePos MousePos; // if Type == ImGuiInputEventType_MousePos + ImGuiInputEventMouseWheel MouseWheel; // if Type == ImGuiInputEventType_MouseWheel + ImGuiInputEventMouseButton MouseButton; // if Type == ImGuiInputEventType_MouseButton + ImGuiInputEventMouseViewport MouseViewport; // if Type == ImGuiInputEventType_MouseViewport + ImGuiInputEventKey Key; // if Type == ImGuiInputEventType_Key + ImGuiInputEventText Text; // if Type == ImGuiInputEventType_Text + ImGuiInputEventAppFocused AppFocused; // if Type == ImGuiInputEventType_Focus + }; + bool AddedByTestEngine; + + ImGuiInputEvent() { memset(this, 0, sizeof(*this)); } +}; + +// Input function taking an 'ImGuiID owner_id' argument defaults to (ImGuiKeyOwner_Any == 0) aka don't test ownership, which matches legacy behavior. +#define ImGuiKeyOwner_Any ((ImGuiID)0) // Accept key that have an owner, UNLESS a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. +#define ImGuiKeyOwner_None ((ImGuiID)-1) // Require key to have no owner. + +typedef ImS16 ImGuiKeyRoutingIndex; + +// Routing table entry (sizeof() == 16 bytes) +struct ImGuiKeyRoutingData +{ + ImGuiKeyRoutingIndex NextEntryIndex; + ImU16 Mods; // Technically we'd only need 4 bits but for simplify we store ImGuiMod_ values which need 16 bits. + ImU8 RoutingNextScore; // Lower is better (0: perfect score) + ImGuiID RoutingCurr; + ImGuiID RoutingNext; + + ImGuiKeyRoutingData() { NextEntryIndex = -1; Mods = 0; RoutingNextScore = 255; RoutingCurr = RoutingNext = ImGuiKeyOwner_None; } +}; + +// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching. +// Stored in main context (1 instance) +struct ImGuiKeyRoutingTable +{ + ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; // Index of first entry in Entries[] + ImVector Entries; + ImVector EntriesNext; // Double-buffer to avoid reallocation (could use a shared buffer) + + ImGuiKeyRoutingTable() { Clear(); } + void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Index); n++) Index[n] = -1; Entries.clear(); EntriesNext.clear(); } +}; + +// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features) +// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData. +struct ImGuiKeyOwnerData +{ + ImGuiID OwnerCurr; + ImGuiID OwnerNext; + bool LockThisFrame; // Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame. + bool LockUntilRelease; // Reading this key requires explicit owner id (until key is released). Set by ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well. + + ImGuiKeyOwnerData() { OwnerCurr = OwnerNext = ImGuiKeyOwner_None; LockThisFrame = LockUntilRelease = false; } +}; + +// Flags for extended versions of IsKeyPressed(), IsMouseClicked(), Shortcut(), SetKeyOwner(), SetItemKeyOwner() +// Don't mistake with ImGuiInputTextFlags! (for ImGui::InputText() function) +enum ImGuiInputFlags_ +{ + // Flags for IsKeyPressed(), IsMouseClicked(), Shortcut() + ImGuiInputFlags_None = 0, + ImGuiInputFlags_Repeat = 1 << 0, // Return true on successive repeats. Default for legacy IsKeyPressed(). NOT Default for legacy IsMouseClicked(). MUST BE == 1. + ImGuiInputFlags_RepeatRateDefault = 1 << 1, // Repeat rate: Regular (default) + ImGuiInputFlags_RepeatRateNavMove = 1 << 2, // Repeat rate: Fast + ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, // Repeat rate: Faster + ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, + + // Flags for SetItemKeyOwner() + ImGuiInputFlags_CondHovered = 1 << 4, // Only set if item is hovered (default to both) + ImGuiInputFlags_CondActive = 1 << 5, // Only set if item is active (default to both) + ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + + // Flags for SetKeyOwner(), SetItemKeyOwner() + ImGuiInputFlags_LockThisFrame = 1 << 6, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared at end of frame. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + ImGuiInputFlags_LockUntilRelease = 1 << 7, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared when the key is released or at end of each frame if key is released. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + + // Routing policies for Shortcut() + low-level SetShortcutRouting() + // - The general idea is that several callers register interest in a shortcut, and only one owner gets it. + // - When a policy (other than _RouteAlways) is set, Shortcut() will register itself with SetShortcutRouting(), + // allowing the system to decide where to route the input among other route-aware calls. + // - Shortcut() uses ImGuiInputFlags_RouteFocused by default: meaning that a simple Shortcut() poll + // will register a route and only succeed when parent window is in the focus stack and if no-one + // with a higher priority is claiming the shortcut. + // - Using ImGuiInputFlags_RouteAlways is roughly equivalent to doing e.g. IsKeyPressed(key) + testing mods. + // - Priorities: GlobalHigh > Focused (when owner is active item) > Global > Focused (when focused window) > GlobalLow. + // - Can select only 1 policy among all available. + ImGuiInputFlags_RouteFocused = 1 << 8, // (Default) Register focused route: Accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window. + ImGuiInputFlags_RouteGlobalLow = 1 << 9, // Register route globally (lowest priority: unless a focused window or active item registered the route) -> recommended Global priority. + ImGuiInputFlags_RouteGlobal = 1 << 10, // Register route globally (medium priority: unless an active item registered the route, e.g. CTRL+A registered by InputText). + ImGuiInputFlags_RouteGlobalHigh = 1 << 11, // Register route globally (highest priority: unlikely you need to use that: will interfere with every active items) + ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, // _Always not part of this! + ImGuiInputFlags_RouteAlways = 1 << 12, // Do not register route, poll keys directly. + ImGuiInputFlags_RouteUnlessBgFocused= 1 << 13, // Global routes will not be applied if underlying background/void is focused (== no Dear ImGui windows are focused). Useful for overlay applications. + ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, + + // [Internal] Mask of which function support which flags + ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, + ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, + ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, + ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, +}; + +//----------------------------------------------------------------------------- +// [SECTION] Clipper support +//----------------------------------------------------------------------------- + +struct ImGuiListClipperRange +{ + int Min; + int Max; + bool PosToIndexConvert; // Begin/End are absolute position (will be converted to indices later) + ImS8 PosToIndexOffsetMin; // Add to Min after converting to indices + ImS8 PosToIndexOffsetMax; // Add to Min after converting to indices + + static ImGuiListClipperRange FromIndices(int min, int max) { ImGuiListClipperRange r = { min, max, false, 0, 0 }; return r; } + static ImGuiListClipperRange FromPositions(float y1, float y2, int off_min, int off_max) { ImGuiListClipperRange r = { (int)y1, (int)y2, true, (ImS8)off_min, (ImS8)off_max }; return r; } +}; + +// Temporary clipper data, buffers shared/reused between instances +struct ImGuiListClipperData +{ + ImGuiListClipper* ListClipper; + float LossynessOffset; + int StepNo; + int ItemsFrozen; + ImVector Ranges; + + ImGuiListClipperData() { memset(this, 0, sizeof(*this)); } + void Reset(ImGuiListClipper* clipper) { ListClipper = clipper; StepNo = ItemsFrozen = 0; Ranges.resize(0); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Navigation support +//----------------------------------------------------------------------------- + +enum ImGuiActivateFlags_ +{ + ImGuiActivateFlags_None = 0, + ImGuiActivateFlags_PreferInput = 1 << 0, // Favor activation that requires keyboard text input (e.g. for Slider/Drag). Default if keyboard is available. + ImGuiActivateFlags_PreferTweak = 1 << 1, // Favor activation for tweaking with arrows or gamepad (e.g. for Slider/Drag). Default if keyboard is not available. + ImGuiActivateFlags_TryToPreserveState = 1 << 2, // Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection) +}; + +// Early work-in-progress API for ScrollToItem() +enum ImGuiScrollFlags_ +{ + ImGuiScrollFlags_None = 0, + ImGuiScrollFlags_KeepVisibleEdgeX = 1 << 0, // If item is not visible: scroll as little as possible on X axis to bring item back into view [default for X axis] + ImGuiScrollFlags_KeepVisibleEdgeY = 1 << 1, // If item is not visible: scroll as little as possible on Y axis to bring item back into view [default for Y axis for windows that are already visible] + ImGuiScrollFlags_KeepVisibleCenterX = 1 << 2, // If item is not visible: scroll to make the item centered on X axis [rarely used] + ImGuiScrollFlags_KeepVisibleCenterY = 1 << 3, // If item is not visible: scroll to make the item centered on Y axis + ImGuiScrollFlags_AlwaysCenterX = 1 << 4, // Always center the result item on X axis [rarely used] + ImGuiScrollFlags_AlwaysCenterY = 1 << 5, // Always center the result item on Y axis [default for Y axis for appearing window) + ImGuiScrollFlags_NoScrollParent = 1 << 6, // Disable forwarding scrolling to parent window if required to keep item/rect visible (only scroll window the function was applied to). + ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, + ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, +}; + +enum ImGuiNavHighlightFlags_ +{ + ImGuiNavHighlightFlags_None = 0, + ImGuiNavHighlightFlags_TypeDefault = 1 << 0, + ImGuiNavHighlightFlags_TypeThin = 1 << 1, + ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) _even_ when using the mouse. + ImGuiNavHighlightFlags_NoRounding = 1 << 3, +}; + +enum ImGuiNavMoveFlags_ +{ + ImGuiNavMoveFlags_None = 0, + ImGuiNavMoveFlags_LoopX = 1 << 0, // On failed request, restart from opposite side + ImGuiNavMoveFlags_LoopY = 1 << 1, + ImGuiNavMoveFlags_WrapX = 1 << 2, // On failed request, request from opposite side one line down (when NavDir==right) or one line up (when NavDir==left) + ImGuiNavMoveFlags_WrapY = 1 << 3, // This is not super useful but provided for completeness + ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, // Allow scoring and considering the current NavId as a move target candidate. This is used when the move source is offset (e.g. pressing PageDown actually needs to send a Up move request, if we are pressing PageDown from the bottom-most item we need to stay in place) + ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, // Store alternate result in NavMoveResultLocalVisible that only comprise elements that are already fully visible (used by PageUp/PageDown) + ImGuiNavMoveFlags_ScrollToEdgeY = 1 << 6, // Force scrolling to min/max (used by Home/End) // FIXME-NAV: Aim to remove or reword, probably unnecessary + ImGuiNavMoveFlags_Forwarded = 1 << 7, + ImGuiNavMoveFlags_DebugNoResult = 1 << 8, // Dummy scoring for debug purpose, don't apply result + ImGuiNavMoveFlags_FocusApi = 1 << 9, + ImGuiNavMoveFlags_Tabbing = 1 << 10, // == Focus + Activate if item is Inputable + DontChangeNavHighlight + ImGuiNavMoveFlags_Activate = 1 << 11, + ImGuiNavMoveFlags_DontSetNavHighlight = 1 << 12, // Do not alter the visible state of keyboard vs mouse nav highlight +}; + +enum ImGuiNavLayer +{ + ImGuiNavLayer_Main = 0, // Main scrolling layer + ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt) + ImGuiNavLayer_COUNT +}; + +struct ImGuiNavItemData +{ + ImGuiWindow* Window; // Init,Move // Best candidate window (result->ItemWindow->RootWindowForNav == request->Window) + ImGuiID ID; // Init,Move // Best candidate item ID + ImGuiID FocusScopeId; // Init,Move // Best candidate focus scope ID + ImRect RectRel; // Init,Move // Best candidate bounding box in window relative space + ImGuiItemFlags InFlags; // ????,Move // Best candidate item flags + float DistBox; // Move // Best candidate box distance to current NavId + float DistCenter; // Move // Best candidate center distance to current NavId + float DistAxial; // Move // Best candidate axial distance to current NavId + + ImGuiNavItemData() { Clear(); } + void Clear() { Window = NULL; ID = FocusScopeId = 0; InFlags = 0; DistBox = DistCenter = DistAxial = FLT_MAX; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Columns support +//----------------------------------------------------------------------------- + +// Flags for internal's BeginColumns(). Prefix using BeginTable() nowadays! +enum ImGuiOldColumnFlags_ +{ + ImGuiOldColumnFlags_None = 0, + ImGuiOldColumnFlags_NoBorder = 1 << 0, // Disable column dividers + ImGuiOldColumnFlags_NoResize = 1 << 1, // Disable resizing columns when clicking on the dividers + ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, // Disable column width preservation when adjusting columns + ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window + ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None, + ImGuiColumnsFlags_NoBorder = ImGuiOldColumnFlags_NoBorder, + ImGuiColumnsFlags_NoResize = ImGuiOldColumnFlags_NoResize, + ImGuiColumnsFlags_NoPreserveWidths = ImGuiOldColumnFlags_NoPreserveWidths, + ImGuiColumnsFlags_NoForceWithinWindow = ImGuiOldColumnFlags_NoForceWithinWindow, + ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize, +#endif +}; + +struct ImGuiOldColumnData +{ + float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) + float OffsetNormBeforeResize; + ImGuiOldColumnFlags Flags; // Not exposed + ImRect ClipRect; + + ImGuiOldColumnData() { memset(this, 0, sizeof(*this)); } +}; + +struct ImGuiOldColumns +{ + ImGuiID ID; + ImGuiOldColumnFlags Flags; + bool IsFirstFrame; + bool IsBeingResized; + int Current; + int Count; + float OffMinX, OffMaxX; // Offsets from HostWorkRect.Min.x + float LineMinY, LineMaxY; + float HostCursorPosY; // Backup of CursorPos at the time of BeginColumns() + float HostCursorMaxPosX; // Backup of CursorMaxPos at the time of BeginColumns() + ImRect HostInitialClipRect; // Backup of ClipRect at the time of BeginColumns() + ImRect HostBackupClipRect; // Backup of ClipRect during PushColumnsBackground()/PopColumnsBackground() + ImRect HostBackupParentWorkRect;//Backup of WorkRect at the time of BeginColumns() + ImVector Columns; + ImDrawListSplitter Splitter; + + ImGuiOldColumns() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Multi-select support +//----------------------------------------------------------------------------- + +#ifdef IMGUI_HAS_MULTI_SELECT +// +#endif // #ifdef IMGUI_HAS_MULTI_SELECT + +//----------------------------------------------------------------------------- +// [SECTION] Docking support +//----------------------------------------------------------------------------- + +#define DOCKING_HOST_DRAW_CHANNEL_BG 0 // Dock host: background fill +#define DOCKING_HOST_DRAW_CHANNEL_FG 1 // Dock host: decorations and contents + +#ifdef IMGUI_HAS_DOCK + +// Extend ImGuiDockNodeFlags_ +enum ImGuiDockNodeFlagsPrivate_ +{ + // [Internal] + ImGuiDockNodeFlags_DockSpace = 1 << 10, // Local, Saved // A dockspace is a node that occupy space within an existing user window. Otherwise the node is floating and create its own window. + ImGuiDockNodeFlags_CentralNode = 1 << 11, // Local, Saved // The central node has 2 main properties: stay visible when empty, only use "remaining" spaces from its neighbor. + ImGuiDockNodeFlags_NoTabBar = 1 << 12, // Local, Saved // Tab bar is completely unavailable. No triangle in the corner to enable it back. + ImGuiDockNodeFlags_HiddenTabBar = 1 << 13, // Local, Saved // Tab bar is hidden, with a triangle in the corner to show it again (NB: actual tab-bar instance may be destroyed as this is only used for single-window tab bar) + ImGuiDockNodeFlags_NoWindowMenuButton = 1 << 14, // Local, Saved // Disable window/docking menu (that one that appears instead of the collapse button) + ImGuiDockNodeFlags_NoCloseButton = 1 << 15, // Local, Saved // + ImGuiDockNodeFlags_NoDocking = 1 << 16, // Local, Saved // Disable any form of docking in this dockspace or individual node. (On a whole dockspace, this pretty much defeat the purpose of using a dockspace at all). Note: when turned on, existing docked nodes will be preserved. + ImGuiDockNodeFlags_NoDockingSplitMe = 1 << 17, // [EXPERIMENTAL] Prevent another window/node from splitting this node. + ImGuiDockNodeFlags_NoDockingSplitOther = 1 << 18, // [EXPERIMENTAL] Prevent this node from splitting another window/node. + ImGuiDockNodeFlags_NoDockingOverMe = 1 << 19, // [EXPERIMENTAL] Prevent another window/node to be docked over this node. + ImGuiDockNodeFlags_NoDockingOverOther = 1 << 20, // [EXPERIMENTAL] Prevent this node to be docked over another window or non-empty node. + ImGuiDockNodeFlags_NoDockingOverEmpty = 1 << 21, // [EXPERIMENTAL] Prevent this node to be docked over an empty node (e.g. DockSpace with no other windows) + ImGuiDockNodeFlags_NoResizeX = 1 << 22, // [EXPERIMENTAL] + ImGuiDockNodeFlags_NoResizeY = 1 << 23, // [EXPERIMENTAL] + ImGuiDockNodeFlags_SharedFlagsInheritMask_ = ~0, + ImGuiDockNodeFlags_NoResizeFlagsMask_ = ImGuiDockNodeFlags_NoResize | ImGuiDockNodeFlags_NoResizeX | ImGuiDockNodeFlags_NoResizeY, + ImGuiDockNodeFlags_LocalFlagsMask_ = ImGuiDockNodeFlags_NoSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking, + ImGuiDockNodeFlags_LocalFlagsTransferMask_ = ImGuiDockNodeFlags_LocalFlagsMask_ & ~ImGuiDockNodeFlags_DockSpace, // When splitting those flags are moved to the inheriting child, never duplicated + ImGuiDockNodeFlags_SavedFlagsMask_ = ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking +}; + +// Store the source authority (dock node vs window) of a field +enum ImGuiDataAuthority_ +{ + ImGuiDataAuthority_Auto, + ImGuiDataAuthority_DockNode, + ImGuiDataAuthority_Window, +}; + +enum ImGuiDockNodeState +{ + ImGuiDockNodeState_Unknown, + ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow, + ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing, + ImGuiDockNodeState_HostWindowVisible, +}; + +// sizeof() 156~192 +struct IMGUI_API ImGuiDockNode +{ + ImGuiID ID; + ImGuiDockNodeFlags SharedFlags; // (Write) Flags shared by all nodes of a same dockspace hierarchy (inherited from the root node) + ImGuiDockNodeFlags LocalFlags; // (Write) Flags specific to this node + ImGuiDockNodeFlags LocalFlagsInWindows; // (Write) Flags specific to this node, applied from windows + ImGuiDockNodeFlags MergedFlags; // (Read) Effective flags (== SharedFlags | LocalFlagsInNode | LocalFlagsInWindows) + ImGuiDockNodeState State; + ImGuiDockNode* ParentNode; + ImGuiDockNode* ChildNodes[2]; // [Split node only] Child nodes (left/right or top/bottom). Consider switching to an array. + ImVector Windows; // Note: unordered list! Iterate TabBar->Tabs for user-order. + ImGuiTabBar* TabBar; + ImVec2 Pos; // Current position + ImVec2 Size; // Current size + ImVec2 SizeRef; // [Split node only] Last explicitly written-to size (overridden when using a splitter affecting the node), used to calculate Size. + ImGuiAxis SplitAxis; // [Split node only] Split axis (X or Y) + ImGuiWindowClass WindowClass; // [Root node only] + ImU32 LastBgColor; + + ImGuiWindow* HostWindow; + ImGuiWindow* VisibleWindow; // Generally point to window which is ID is == SelectedTabID, but when CTRL+Tabbing this can be a different window. + ImGuiDockNode* CentralNode; // [Root node only] Pointer to central node. + ImGuiDockNode* OnlyNodeWithWindows; // [Root node only] Set when there is a single visible node within the hierarchy. + int CountNodeWithWindows; // [Root node only] + int LastFrameAlive; // Last frame number the node was updated or kept alive explicitly with DockSpace() + ImGuiDockNodeFlags_KeepAliveOnly + int LastFrameActive; // Last frame number the node was updated. + int LastFrameFocused; // Last frame number the node was focused. + ImGuiID LastFocusedNodeId; // [Root node only] Which of our child docking node (any ancestor in the hierarchy) was last focused. + ImGuiID SelectedTabId; // [Leaf node only] Which of our tab/window is selected. + ImGuiID WantCloseTabId; // [Leaf node only] Set when closing a specific tab/window. + ImGuiDataAuthority AuthorityForPos :3; + ImGuiDataAuthority AuthorityForSize :3; + ImGuiDataAuthority AuthorityForViewport :3; + bool IsVisible :1; // Set to false when the node is hidden (usually disabled as it has no active window) + bool IsFocused :1; + bool IsBgDrawnThisFrame :1; + bool HasCloseButton :1; // Provide space for a close button (if any of the docked window has one). Note that button may be hidden on window without one. + bool HasWindowMenuButton :1; + bool HasCentralNodeChild :1; + bool WantCloseAll :1; // Set when closing all tabs at once. + bool WantLockSizeOnce :1; + bool WantMouseMove :1; // After a node extraction we need to transition toward moving the newly created host window + bool WantHiddenTabBarUpdate :1; + bool WantHiddenTabBarToggle :1; + + ImGuiDockNode(ImGuiID id); + ~ImGuiDockNode(); + bool IsRootNode() const { return ParentNode == NULL; } + bool IsDockSpace() const { return (MergedFlags & ImGuiDockNodeFlags_DockSpace) != 0; } + bool IsFloatingNode() const { return ParentNode == NULL && (MergedFlags & ImGuiDockNodeFlags_DockSpace) == 0; } + bool IsCentralNode() const { return (MergedFlags & ImGuiDockNodeFlags_CentralNode) != 0; } + bool IsHiddenTabBar() const { return (MergedFlags & ImGuiDockNodeFlags_HiddenTabBar) != 0; } // Hidden tab bar can be shown back by clicking the small triangle + bool IsNoTabBar() const { return (MergedFlags & ImGuiDockNodeFlags_NoTabBar) != 0; } // Never show a tab bar + bool IsSplitNode() const { return ChildNodes[0] != NULL; } + bool IsLeafNode() const { return ChildNodes[0] == NULL; } + bool IsEmpty() const { return ChildNodes[0] == NULL && Windows.Size == 0; } + ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + + void SetLocalFlags(ImGuiDockNodeFlags flags) { LocalFlags = flags; UpdateMergedFlags(); } + void UpdateMergedFlags() { MergedFlags = SharedFlags | LocalFlags | LocalFlagsInWindows; } +}; + +// List of colors that are stored at the time of Begin() into Docked Windows. +// We currently store the packed colors in a simple array window->DockStyle.Colors[]. +// A better solution may involve appending into a log of colors in ImGuiContext + store offsets into those arrays in ImGuiWindow, +// but it would be more complex as we'd need to double-buffer both as e.g. drop target may refer to window from last frame. +enum ImGuiWindowDockStyleCol +{ + ImGuiWindowDockStyleCol_Text, + ImGuiWindowDockStyleCol_Tab, + ImGuiWindowDockStyleCol_TabHovered, + ImGuiWindowDockStyleCol_TabActive, + ImGuiWindowDockStyleCol_TabUnfocused, + ImGuiWindowDockStyleCol_TabUnfocusedActive, + ImGuiWindowDockStyleCol_COUNT +}; + +struct ImGuiWindowDockStyle +{ + ImU32 Colors[ImGuiWindowDockStyleCol_COUNT]; +}; + +struct ImGuiDockContext +{ + ImGuiStorage Nodes; // Map ID -> ImGuiDockNode*: Active nodes + ImVector Requests; + ImVector NodesSettings; + bool WantFullRebuild; + ImGuiDockContext() { memset(this, 0, sizeof(*this)); } +}; + +#endif // #ifdef IMGUI_HAS_DOCK + +//----------------------------------------------------------------------------- +// [SECTION] Viewport support +//----------------------------------------------------------------------------- + +// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!) +// Every instance of ImGuiViewport is in fact a ImGuiViewportP. +struct ImGuiViewportP : public ImGuiViewport +{ + int Idx; + int LastFrameActive; // Last frame number this viewport was activated by a window + int LastFrontMostStampCount;// Last stamp number from when a window hosted by this viewport was made front-most (by comparing this value between two viewport we have an implicit viewport z-order + ImGuiID LastNameHash; + ImVec2 LastPos; + float Alpha; // Window opacity (when dragging dockable windows/viewports we make them transparent) + float LastAlpha; + short PlatformMonitor; + ImGuiWindow* Window; // Set when the viewport is owned by a window (and ImGuiViewportFlags_CanHostOtherWindows is NOT set) + int DrawListsLastFrame[2]; // Last frame number the background (0) and foreground (1) draw lists were used + ImDrawList* DrawLists[2]; // Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor when io.MouseDrawCursor is set and to draw most debug overlays. + ImDrawData DrawDataP; + ImDrawDataBuilder DrawDataBuilder; + ImVec2 LastPlatformPos; + ImVec2 LastPlatformSize; + ImVec2 LastRendererSize; + ImVec2 WorkOffsetMin; // Work Area: Offset from Pos to top-left corner of Work Area. Generally (0,0) or (0,+main_menu_bar_height). Work Area is Full Area but without menu-bars/status-bars (so WorkArea always fit inside Pos/Size!) + ImVec2 WorkOffsetMax; // Work Area: Offset from Pos+Size to bottom-right corner of Work Area. Generally (0,0) or (0,-status_bar_height). + ImVec2 BuildWorkOffsetMin; // Work Area: Offset being built during current frame. Generally >= 0.0f. + ImVec2 BuildWorkOffsetMax; // Work Area: Offset being built during current frame. Generally <= 0.0f. + + ImGuiViewportP() { Idx = -1; LastFrameActive = DrawListsLastFrame[0] = DrawListsLastFrame[1] = LastFrontMostStampCount = -1; LastNameHash = 0; Alpha = LastAlpha = 1.0f; PlatformMonitor = -1; Window = NULL; DrawLists[0] = DrawLists[1] = NULL; LastPlatformPos = LastPlatformSize = LastRendererSize = ImVec2(FLT_MAX, FLT_MAX); } + ~ImGuiViewportP() { if (DrawLists[0]) IM_DELETE(DrawLists[0]); if (DrawLists[1]) IM_DELETE(DrawLists[1]); } + void ClearRequestFlags() { PlatformRequestClose = PlatformRequestMove = PlatformRequestResize = false; } + + // Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last frame data, and 1 pair for currently building rect) + ImVec2 CalcWorkRectPos(const ImVec2& off_min) const { return ImVec2(Pos.x + off_min.x, Pos.y + off_min.y); } + ImVec2 CalcWorkRectSize(const ImVec2& off_min, const ImVec2& off_max) const { return ImVec2(ImMax(0.0f, Size.x - off_min.x + off_max.x), ImMax(0.0f, Size.y - off_min.y + off_max.y)); } + void UpdateWorkRect() { WorkPos = CalcWorkRectPos(WorkOffsetMin); WorkSize = CalcWorkRectSize(WorkOffsetMin, WorkOffsetMax); } // Update public fields + + // Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it, hence the code asymmetry) + ImRect GetMainRect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + ImRect GetWorkRect() const { return ImRect(WorkPos.x, WorkPos.y, WorkPos.x + WorkSize.x, WorkPos.y + WorkSize.y); } + ImRect GetBuildWorkRect() const { ImVec2 pos = CalcWorkRectPos(BuildWorkOffsetMin); ImVec2 size = CalcWorkRectSize(BuildWorkOffsetMin, BuildWorkOffsetMax); return ImRect(pos.x, pos.y, pos.x + size.x, pos.y + size.y); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Settings support +//----------------------------------------------------------------------------- + +// Windows data saved in imgui.ini file +// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily. +// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure) +struct ImGuiWindowSettings +{ + ImGuiID ID; + ImVec2ih Pos; // NB: Settings position are stored RELATIVE to the viewport! Whereas runtime ones are absolute positions. + ImVec2ih Size; + ImVec2ih ViewportPos; + ImGuiID ViewportId; + ImGuiID DockId; // ID of last known DockNode (even if the DockNode is invisible because it has only 1 active window), or 0 if none. + ImGuiID ClassId; // ID of window class if specified + short DockOrder; // Order of the last time the window was visible within its DockNode. This is used to reorder windows that are reappearing on the same frame. Same value between windows that were active and windows that were none are possible. + bool Collapsed; + bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) + + ImGuiWindowSettings() { memset(this, 0, sizeof(*this)); DockOrder = -1; } + char* GetName() { return (char*)(this + 1); } +}; + +struct ImGuiSettingsHandler +{ + const char* TypeName; // Short description stored in .ini file. Disallowed characters: '[' ']' + ImGuiID TypeHash; // == ImHashStr(TypeName) + void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Clear all settings data + void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called before reading (in registration order) + void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); // Read: Called when entering into a new ini entry e.g. "[Window][Name]" + void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); // Read: Called for every line of text within an ini entry + void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called after reading (in registration order) + void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); // Write: Output every entries into 'out_buf' + void* UserData; + + ImGuiSettingsHandler() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Localization support +//----------------------------------------------------------------------------- + +// This is experimental and not officially supported, it'll probably fall short of features, if/when it does we may backtrack. +enum ImGuiLocKey : int +{ + ImGuiLocKey_TableSizeOne, + ImGuiLocKey_TableSizeAllFit, + ImGuiLocKey_TableSizeAllDefault, + ImGuiLocKey_TableResetOrder, + ImGuiLocKey_WindowingMainMenuBar, + ImGuiLocKey_WindowingPopup, + ImGuiLocKey_WindowingUntitled, + ImGuiLocKey_DockingHideTabBar, + ImGuiLocKey_COUNT +}; + +struct ImGuiLocEntry +{ + ImGuiLocKey Key; + const char* Text; +}; + + +//----------------------------------------------------------------------------- +// [SECTION] Metrics, Debug Tools +//----------------------------------------------------------------------------- + +enum ImGuiDebugLogFlags_ +{ + // Event types + ImGuiDebugLogFlags_None = 0, + ImGuiDebugLogFlags_EventActiveId = 1 << 0, + ImGuiDebugLogFlags_EventFocus = 1 << 1, + ImGuiDebugLogFlags_EventPopup = 1 << 2, + ImGuiDebugLogFlags_EventNav = 1 << 3, + ImGuiDebugLogFlags_EventClipper = 1 << 4, + ImGuiDebugLogFlags_EventIO = 1 << 5, + ImGuiDebugLogFlags_EventDocking = 1 << 6, + ImGuiDebugLogFlags_EventViewport = 1 << 7, + ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport, + ImGuiDebugLogFlags_OutputToTTY = 1 << 10, // Also send output to TTY +}; + +struct ImGuiMetricsConfig +{ + bool ShowDebugLog; + bool ShowStackTool; + bool ShowWindowsRects; + bool ShowWindowsBeginOrder; + bool ShowTablesRects; + bool ShowDrawCmdMesh; + bool ShowDrawCmdBoundingBoxes; + bool ShowDockingNodes; + int ShowWindowsRectsType; + int ShowTablesRectsType; + + ImGuiMetricsConfig() + { + ShowDebugLog = ShowStackTool = ShowWindowsRects = ShowWindowsBeginOrder = ShowTablesRects = false; + ShowDrawCmdMesh = true; + ShowDrawCmdBoundingBoxes = true; + ShowDockingNodes = false; + ShowWindowsRectsType = ShowTablesRectsType = -1; + } +}; + +struct ImGuiStackLevelInfo +{ + ImGuiID ID; + ImS8 QueryFrameCount; // >= 1: Query in progress + bool QuerySuccess; // Obtained result from DebugHookIdInfo() + ImGuiDataType DataType : 8; + char Desc[57]; // Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) FIXME: Now that we added CTRL+C this should be fixed. + + ImGuiStackLevelInfo() { memset(this, 0, sizeof(*this)); } +}; + +// State for Stack tool queries +struct ImGuiStackTool +{ + int LastActiveFrame; + int StackLevel; // -1: query stack and resize Results, >= 0: individual stack level + ImGuiID QueryId; // ID to query details for + ImVector Results; + bool CopyToClipboardOnCtrlC; + float CopyToClipboardLastTime; + + ImGuiStackTool() { memset(this, 0, sizeof(*this)); CopyToClipboardLastTime = -FLT_MAX; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Generic context hooks +//----------------------------------------------------------------------------- + +typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); +enum ImGuiContextHookType { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }; + +struct ImGuiContextHook +{ + ImGuiID HookId; // A unique ID assigned by AddContextHook() + ImGuiContextHookType Type; + ImGuiID Owner; + ImGuiContextHookCallback Callback; + void* UserData; + + ImGuiContextHook() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiContext (main Dear ImGui context) +//----------------------------------------------------------------------------- + +struct ImGuiContext +{ + bool Initialized; + bool FontAtlasOwnedByContext; // IO.Fonts-> is owned by the ImGuiContext and will be destructed along with it. + ImGuiIO IO; + ImGuiPlatformIO PlatformIO; + ImVector InputEventsQueue; // Input events which will be tricked/written into IO structure. + ImVector InputEventsTrail; // Past input events processed in NewFrame(). This is to allow domain-specific application to access e.g mouse/pen trail. + ImGuiStyle Style; + ImGuiConfigFlags ConfigFlagsCurrFrame; // = g.IO.ConfigFlags at the time of NewFrame() + ImGuiConfigFlags ConfigFlagsLastFrame; + ImFont* Font; // (Shortcut) == FontStack.empty() ? IO.Font : FontStack.back() + float FontSize; // (Shortcut) == FontBaseSize * g.CurrentWindow->FontWindowScale == window->FontSize(). Text height for current window. + float FontBaseSize; // (Shortcut) == IO.FontGlobalScale * Font->Scale * Font->FontSize. Base text height. + ImDrawListSharedData DrawListSharedData; + double Time; + int FrameCount; + int FrameCountEnded; + int FrameCountPlatformEnded; + int FrameCountRendered; + bool WithinFrameScope; // Set by NewFrame(), cleared by EndFrame() + bool WithinFrameScopeWithImplicitWindow; // Set by NewFrame(), cleared by EndFrame() when the implicit debug window has been pushed + bool WithinEndChild; // Set within EndChild() + bool GcCompactAll; // Request full GC + bool TestEngineHookItems; // Will call test engine hooks: ImGuiTestEngineHook_ItemAdd(), ImGuiTestEngineHook_ItemInfo(), ImGuiTestEngineHook_Log() + void* TestEngine; // Test engine user data + + // Windows state + ImVector Windows; // Windows, sorted in display order, back to front + ImVector WindowsFocusOrder; // Root windows, sorted in focus order, back to front. + ImVector WindowsTempSortBuffer; // Temporary buffer used in EndFrame() to reorder windows so parents are kept before their child + ImVector CurrentWindowStack; + ImGuiStorage WindowsById; // Map window's ImGuiID to ImGuiWindow* + int WindowsActiveCount; // Number of unique windows submitted by frame + ImVec2 WindowsHoverPadding; // Padding around resizable windows for which hovering on counts as hovering the window == ImMax(style.TouchExtraPadding, WINDOWS_HOVER_PADDING) + ImGuiWindow* CurrentWindow; // Window being drawn into + ImGuiWindow* HoveredWindow; // Window the mouse is hovering. Will typically catch mouse inputs. + ImGuiWindow* HoveredWindowUnderMovingWindow; // Hovered window ignoring MovingWindow. Only set if MovingWindow is set. + ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindowDockTree. + ImGuiWindow* WheelingWindow; // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. + ImVec2 WheelingWindowRefMousePos; + float WheelingWindowReleaseTimer; + + // Item/widgets state and tracking information + ImGuiID DebugHookIdInfo; // Will call core hooks: DebugHookIdInfo() from GetID functions, used by Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line] + ImGuiID HoveredId; // Hovered widget, filled during the frame + ImGuiID HoveredIdPreviousFrame; + bool HoveredIdAllowOverlap; + bool HoveredIdDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0. + float HoveredIdTimer; // Measure contiguous hovering time + float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active + ImGuiID ActiveId; // Active widget + ImGuiID ActiveIdIsAlive; // Active widget has been seen this frame (we can't use a bool as the ActiveId may change within the frame) + float ActiveIdTimer; + bool ActiveIdIsJustActivated; // Set at the time of activation for one frame + bool ActiveIdAllowOverlap; // Active widget allows another widget to steal active id (generally for overlapping widgets, but not always) + bool ActiveIdNoClearOnFocusLoss; // Disable losing active id if the active id window gets unfocused. + bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch. + bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state. + bool ActiveIdHasBeenEditedThisFrame; + ImVec2 ActiveIdClickOffset; // Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior) + ImGuiWindow* ActiveIdWindow; + ImGuiInputSource ActiveIdSource; // Activating with mouse or nav (gamepad/keyboard) + int ActiveIdMouseButton; + ImGuiID ActiveIdPreviousFrame; + bool ActiveIdPreviousFrameIsAlive; + bool ActiveIdPreviousFrameHasBeenEditedBefore; + ImGuiWindow* ActiveIdPreviousFrameWindow; + ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation. + float LastActiveIdTimer; // Store the last non-zero ActiveId timer since the beginning of activation, useful for animation. + + // [EXPERIMENTAL] Key/Input Ownership + Shortcut Routing system + // - The idea is that instead of "eating" a given key, we can link to an owner. + // - Input query can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Routing is requested ahead of time for a given chord (Key + Mods) and granted in NewFrame(). + ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; + ImGuiKeyRoutingTable KeysRoutingTable; + ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) + bool ActiveIdUsingAllKeyboardKeys; // Active widget will want to read all keyboard keys inputs. (FIXME: This is a shortcut for not taking ownership of 100+ keys but perhaps best to not have the inconsistency) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ImU32 ActiveIdUsingNavInputMask; // If you used this. Since (IMGUI_VERSION_NUM >= 18804) : 'g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel);' becomes 'SetKeyOwner(ImGuiKey_Escape, g.ActiveId) and/or SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId);' +#endif + + // Next window/item data + ImGuiID CurrentFocusScopeId; // == g.FocusScopeStack.back() + ImGuiItemFlags CurrentItemFlags; // == g.ItemFlagsStack.back() + ImGuiID DebugLocateId; // Storage for DebugLocateItemOnHover() feature: this is read by ItemAdd() so we keep it in a hot/cached location + ImGuiNextItemData NextItemData; // Storage for SetNextItem** functions + ImGuiLastItemData LastItemData; // Storage for last submitted item (setup by ItemAdd) + ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions + + // Shared stacks + ImVector ColorStack; // Stack for PushStyleColor()/PopStyleColor() - inherited by Begin() + ImVector StyleVarStack; // Stack for PushStyleVar()/PopStyleVar() - inherited by Begin() + ImVector FontStack; // Stack for PushFont()/PopFont() - inherited by Begin() + ImVector FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - inherited by BeginChild(), pushed into by Begin() + ImVectorItemFlagsStack; // Stack for PushItemFlag()/PopItemFlag() - inherited by Begin() + ImVectorGroupStack; // Stack for BeginGroup()/EndGroup() - not inherited by Begin() + ImVectorOpenPopupStack; // Which popups are open (persistent) + ImVectorBeginPopupStack; // Which level of BeginPopup() we are in (reset every frame) + int BeginMenuCount; + + // Viewports + ImVector Viewports; // Active viewports (always 1+, and generally 1 unless multi-viewports are enabled). Each viewports hold their copy of ImDrawData. + float CurrentDpiScale; // == CurrentViewport->DpiScale + ImGuiViewportP* CurrentViewport; // We track changes of viewport (happening in Begin) so we can call Platform_OnChangedViewport() + ImGuiViewportP* MouseViewport; + ImGuiViewportP* MouseLastHoveredViewport; // Last known viewport that was hovered by mouse (even if we are not hovering any viewport any more) + honoring the _NoInputs flag. + ImGuiID PlatformLastFocusedViewportId; + ImGuiPlatformMonitor FallbackMonitor; // Virtual monitor used as fallback if backend doesn't provide monitor information. + int ViewportFrontMostStampCount; // Every time the front-most window changes, we stamp its viewport with an incrementing counter + + // Gamepad/keyboard Navigation + ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusedWindow' + ImGuiID NavId; // Focused item for navigation + ImGuiID NavFocusScopeId; // Identify a selection scope (selection code often wants to "clear other items" when landing on an item of the selection set) + ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && (IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_NavGamepadActivate)) ? NavId : 0, also set when calling ActivateItem() + ImGuiID NavActivateDownId; // ~~ IsKeyDown(ImGuiKey_Space) || IsKeyDown(ImGuiKey_NavGamepadActivate) ? NavId : 0 + ImGuiID NavActivatePressedId; // ~~ IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_NavGamepadActivate) ? NavId : 0 (no repeat) + ImGuiID NavActivateInputId; // ~~ IsKeyPressed(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadInput) ? NavId : 0; ImGuiActivateFlags_PreferInput will be set and NavActivateId will be 0. + ImGuiActivateFlags NavActivateFlags; + ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest). + ImGuiID NavJustMovedToFocusScopeId; // Just navigated to this focus scope id (result of a successfully MoveRequest). + ImGuiKeyChord NavJustMovedToKeyMods; + ImGuiID NavNextActivateId; // Set by ActivateItem(), queued until next frame. + ImGuiActivateFlags NavNextActivateFlags; + ImGuiInputSource NavInputSource; // Keyboard or Gamepad mode? THIS WILL ONLY BE None or NavGamepad or NavKeyboard. + ImGuiNavLayer NavLayer; // Layer we are navigating on. For now the system is hard-coded for 0=main contents and 1=menu/title bar, may expose layers later. + bool NavIdIsAlive; // Nav widget has been seen this frame ~~ NavRectRel is valid + bool NavMousePosDirty; // When set we will update mouse position if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) if set (NB: this not enabled by default) + bool NavDisableHighlight; // When user starts using mouse, we hide gamepad/keyboard highlight (NB: but they are still available, which is why NavDisableHighlight isn't always != NavDisableMouseHover) + bool NavDisableMouseHover; // When user starts using gamepad/keyboard, we hide mouse hovering highlight until mouse is touched again. + + // Navigation: Init & Move Requests + bool NavAnyRequest; // ~~ NavMoveRequest || NavInitRequest this is to perform early out in ItemAdd() + bool NavInitRequest; // Init request for appearing window to select first item + bool NavInitRequestFromMove; + ImGuiID NavInitResultId; // Init request result (first item of the window, or one for which SetItemDefaultFocus() was called) + ImRect NavInitResultRectRel; // Init request result rectangle (relative to parent window) + bool NavMoveSubmitted; // Move request submitted, will process result on next NewFrame() + bool NavMoveScoringItems; // Move request submitted, still scoring incoming items + bool NavMoveForwardToNextFrame; + ImGuiNavMoveFlags NavMoveFlags; + ImGuiScrollFlags NavMoveScrollFlags; + ImGuiKeyChord NavMoveKeyMods; + ImGuiDir NavMoveDir; // Direction of the move request (left/right/up/down) + ImGuiDir NavMoveDirForDebug; + ImGuiDir NavMoveClipDir; // FIXME-NAV: Describe the purpose of this better. Might want to rename? + ImRect NavScoringRect; // Rectangle used for scoring, in screen space. Based of window->NavRectRel[], modified for directional navigation scoring. + ImRect NavScoringNoClipRect; // Some nav operations (such as PageUp/PageDown) enforce a region which clipper will attempt to always keep submitted + int NavScoringDebugCount; // Metrics for debugging + int NavTabbingDir; // Generally -1 or +1, 0 when tabbing without a nav id + int NavTabbingCounter; // >0 when counting items for tabbing + ImGuiNavItemData NavMoveResultLocal; // Best move request candidate within NavWindow + ImGuiNavItemData NavMoveResultLocalVisible; // Best move request candidate within NavWindow that are mostly visible (when using ImGuiNavMoveFlags_AlsoScoreVisibleSet flag) + ImGuiNavItemData NavMoveResultOther; // Best move request candidate within NavWindow's flattened hierarchy (when using ImGuiWindowFlags_NavFlattened flag) + ImGuiNavItemData NavTabbingResultFirst; // First tabbing request candidate within NavWindow and flattened hierarchy + + // Navigation: Windowing (CTRL+TAB for list, or Menu button + keys or directional pads to move/resize) + ImGuiKeyChord ConfigNavWindowingKeyNext; // = ImGuiMod_Ctrl | ImGuiKey_Tab, for reconfiguration (see #4828) + ImGuiKeyChord ConfigNavWindowingKeyPrev; // = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab + ImGuiWindow* NavWindowingTarget; // Target window when doing CTRL+Tab (or Pad Menu + FocusPrev/Next), this window is temporarily displayed top-most! + ImGuiWindow* NavWindowingTargetAnim; // Record of last valid NavWindowingTarget until DimBgRatio and NavWindowingHighlightAlpha becomes 0.0f, so the fade-out can stay on it. + ImGuiWindow* NavWindowingListWindow; // Internal window actually listing the CTRL+Tab contents + float NavWindowingTimer; + float NavWindowingHighlightAlpha; + bool NavWindowingToggleLayer; + ImVec2 NavWindowingAccumDeltaPos; + ImVec2 NavWindowingAccumDeltaSize; + + // Render + float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list) + ImGuiMouseCursor MouseCursor; + + // Drag and Drop + bool DragDropActive; + bool DragDropWithinSource; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag source. + bool DragDropWithinTarget; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag target. + ImGuiDragDropFlags DragDropSourceFlags; + int DragDropSourceFrameCount; + int DragDropMouseButton; + ImGuiPayload DragDropPayload; + ImRect DragDropTargetRect; // Store rectangle of current target candidate (we favor small targets when overlapping) + ImGuiID DragDropTargetId; + ImGuiDragDropFlags DragDropAcceptFlags; + float DragDropAcceptIdCurrRectSurface; // Target item surface (we resolve overlapping targets by prioritizing the smaller surface) + ImGuiID DragDropAcceptIdCurr; // Target item id (set at the time of accepting the payload) + ImGuiID DragDropAcceptIdPrev; // Target item id from previous frame (we need to store this to allow for overlapping drag and drop targets) + int DragDropAcceptFrameCount; // Last time a target expressed a desire to accept the source + ImGuiID DragDropHoldJustPressedId; // Set when holding a payload just made ButtonBehavior() return a press. + ImVector DragDropPayloadBufHeap; // We don't expose the ImVector<> directly, ImGuiPayload only holds pointer+size + unsigned char DragDropPayloadBufLocal[16]; // Local buffer for small payloads + + // Clipper + int ClipperTempDataStacked; + ImVector ClipperTempData; + + // Tables + ImGuiTable* CurrentTable; + int TablesTempDataStacked; // Temporary table data size (because we leave previous instances undestructed, we generally don't use TablesTempData.Size) + ImVector TablesTempData; // Temporary table data (buffers reused/shared across instances, support nesting) + ImPool Tables; // Persistent table data + ImVector TablesLastTimeActive; // Last used timestamp of each tables (SOA, for efficient GC) + ImVector DrawChannelsTempMergeBuffer; + + // Tab bars + ImGuiTabBar* CurrentTabBar; + ImPool TabBars; + ImVector CurrentTabBarStack; + ImVector ShrinkWidthBuffer; + + // Hover Delay system + ImGuiID HoverDelayId; + ImGuiID HoverDelayIdPreviousFrame; + float HoverDelayTimer; // Currently used IsItemHovered(), generally inferred from g.HoveredIdTimer but kept uncleared until clear timer elapse. + float HoverDelayClearTimer; // Currently used IsItemHovered(): grace time before g.TooltipHoverTimer gets cleared. + + // Widget state + ImVec2 MouseLastValidPos; + ImGuiInputTextState InputTextState; + ImFont InputTextPasswordFont; + ImGuiID TempInputId; // Temporary text input when CTRL+clicking on a slider, etc. + ImGuiColorEditFlags ColorEditOptions; // Store user options for color edit widgets + float ColorEditLastHue; // Backup of last Hue associated to LastColor, so we can restore Hue in lossy RGB<>HSV round trips + float ColorEditLastSat; // Backup of last Saturation associated to LastColor, so we can restore Saturation in lossy RGB<>HSV round trips + ImU32 ColorEditLastColor; // RGB value with alpha set to 0. + ImVec4 ColorPickerRef; // Initial/reference color at the time of opening the color picker. + ImGuiComboPreviewData ComboPreviewData; + float SliderGrabClickOffset; + float SliderCurrentAccum; // Accumulated slider delta when using navigation controls. + bool SliderCurrentAccumDirty; // Has the accumulated slider delta changed since last time we tried to apply it? + bool DragCurrentAccumDirty; + float DragCurrentAccum; // Accumulator for dragging modification. Always high-precision, not rounded by end-user precision settings + float DragSpeedDefaultRatio; // If speed == 0.0f, uses (max-min) * DragSpeedDefaultRatio + float ScrollbarClickDeltaToGrabCenter; // Distance between mouse and center of grab box, normalized in parent space. Use storage? + float DisabledAlphaBackup; // Backup for style.Alpha for BeginDisabled() + short DisabledStackSize; + short TooltipOverrideCount; + ImVector ClipboardHandlerData; // If no custom clipboard handler is defined + ImVector MenusIdSubmittedThisFrame; // A list of menu IDs that were rendered at least once + + // Platform support + ImGuiPlatformImeData PlatformImeData; // Data updated by current frame + ImGuiPlatformImeData PlatformImeDataPrev; // Previous frame data (when changing we will call io.SetPlatformImeDataFn + ImGuiID PlatformImeViewport; + char PlatformLocaleDecimalPoint; // '.' or *localeconv()->decimal_point + + // Extensions + // FIXME: We could provide an API to register one slot in an array held in ImGuiContext? + ImGuiDockContext DockContext; + + // Settings + bool SettingsLoaded; + float SettingsDirtyTimer; // Save .ini Settings to memory when time reaches zero + ImGuiTextBuffer SettingsIniData; // In memory .ini settings + ImVector SettingsHandlers; // List of .ini settings handlers + ImChunkStream SettingsWindows; // ImGuiWindow .ini settings entries + ImChunkStream SettingsTables; // ImGuiTable .ini settings entries + ImVector Hooks; // Hooks for extensions (e.g. test engine) + ImGuiID HookIdNext; // Next available HookId + + // Localization + const char* LocalizationTable[ImGuiLocKey_COUNT]; + + // Capture/Logging + bool LogEnabled; // Currently capturing + ImGuiLogType LogType; // Capture target + ImFileHandle LogFile; // If != NULL log to stdout/ file + ImGuiTextBuffer LogBuffer; // Accumulation buffer when log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators. + const char* LogNextPrefix; + const char* LogNextSuffix; + float LogLinePosY; + bool LogLineFirstItem; + int LogDepthRef; + int LogDepthToExpand; + int LogDepthToExpandDefault; // Default/stored value for LogDepthMaxExpand if not specified in the LogXXX function call. + + // Debug Tools + ImGuiDebugLogFlags DebugLogFlags; + ImGuiTextBuffer DebugLogBuf; + ImGuiTextIndex DebugLogIndex; + ImU8 DebugLocateFrames; // For DebugLocateItemOnHover(). This is used together with DebugLocateId which is in a hot/cached spot above. + bool DebugItemPickerActive; // Item picker is active (started with DebugStartItemPicker()) + ImU8 DebugItemPickerMouseButton; + ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this ID + ImGuiMetricsConfig DebugMetricsConfig; + ImGuiStackTool DebugStackTool; + ImGuiDockNode* DebugHoveredDockNode; // Hovered dock node. + + // Misc + float FramerateSecPerFrame[60]; // Calculate estimate of framerate for user over the last 60 frames.. + int FramerateSecPerFrameIdx; + int FramerateSecPerFrameCount; + float FramerateSecPerFrameAccum; + int WantCaptureMouseNextFrame; // Explicit capture override via SetNextFrameWantCaptureMouse()/SetNextFrameWantCaptureKeyboard(). Default to -1. + int WantCaptureKeyboardNextFrame; // " + int WantTextInputNextFrame; + ImVector TempBuffer; // Temporary text buffer + + ImGuiContext(ImFontAtlas* shared_font_atlas) + { + Initialized = false; + ConfigFlagsCurrFrame = ConfigFlagsLastFrame = ImGuiConfigFlags_None; + FontAtlasOwnedByContext = shared_font_atlas ? false : true; + Font = NULL; + FontSize = FontBaseSize = 0.0f; + IO.Fonts = shared_font_atlas ? shared_font_atlas : IM_NEW(ImFontAtlas)(); + Time = 0.0f; + FrameCount = 0; + FrameCountEnded = FrameCountPlatformEnded = FrameCountRendered = -1; + WithinFrameScope = WithinFrameScopeWithImplicitWindow = WithinEndChild = false; + GcCompactAll = false; + TestEngineHookItems = false; + TestEngine = NULL; + + WindowsActiveCount = 0; + CurrentWindow = NULL; + HoveredWindow = NULL; + HoveredWindowUnderMovingWindow = NULL; + MovingWindow = NULL; + WheelingWindow = NULL; + WheelingWindowReleaseTimer = 0.0f; + + DebugHookIdInfo = 0; + HoveredId = HoveredIdPreviousFrame = 0; + HoveredIdAllowOverlap = false; + HoveredIdDisabled = false; + HoveredIdTimer = HoveredIdNotActiveTimer = 0.0f; + ActiveId = 0; + ActiveIdIsAlive = 0; + ActiveIdTimer = 0.0f; + ActiveIdIsJustActivated = false; + ActiveIdAllowOverlap = false; + ActiveIdNoClearOnFocusLoss = false; + ActiveIdHasBeenPressedBefore = false; + ActiveIdHasBeenEditedBefore = false; + ActiveIdHasBeenEditedThisFrame = false; + ActiveIdClickOffset = ImVec2(-1, -1); + ActiveIdWindow = NULL; + ActiveIdSource = ImGuiInputSource_None; + ActiveIdMouseButton = -1; + ActiveIdPreviousFrame = 0; + ActiveIdPreviousFrameIsAlive = false; + ActiveIdPreviousFrameHasBeenEditedBefore = false; + ActiveIdPreviousFrameWindow = NULL; + LastActiveId = 0; + LastActiveIdTimer = 0.0f; + + ActiveIdUsingNavDirMask = 0x00; + ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ActiveIdUsingNavInputMask = 0x00; +#endif + + CurrentFocusScopeId = 0; + CurrentItemFlags = ImGuiItemFlags_None; + BeginMenuCount = 0; + + CurrentDpiScale = 0.0f; + CurrentViewport = NULL; + MouseViewport = MouseLastHoveredViewport = NULL; + PlatformLastFocusedViewportId = 0; + ViewportFrontMostStampCount = 0; + + NavWindow = NULL; + NavId = NavFocusScopeId = NavActivateId = NavActivateDownId = NavActivatePressedId = NavActivateInputId = 0; + NavJustMovedToId = NavJustMovedToFocusScopeId = NavNextActivateId = 0; + NavActivateFlags = NavNextActivateFlags = ImGuiActivateFlags_None; + NavJustMovedToKeyMods = ImGuiMod_None; + NavInputSource = ImGuiInputSource_None; + NavLayer = ImGuiNavLayer_Main; + NavIdIsAlive = false; + NavMousePosDirty = false; + NavDisableHighlight = true; + NavDisableMouseHover = false; + NavAnyRequest = false; + NavInitRequest = false; + NavInitRequestFromMove = false; + NavInitResultId = 0; + NavMoveSubmitted = false; + NavMoveScoringItems = false; + NavMoveForwardToNextFrame = false; + NavMoveFlags = ImGuiNavMoveFlags_None; + NavMoveScrollFlags = ImGuiScrollFlags_None; + NavMoveKeyMods = ImGuiMod_None; + NavMoveDir = NavMoveDirForDebug = NavMoveClipDir = ImGuiDir_None; + NavScoringDebugCount = 0; + NavTabbingDir = 0; + NavTabbingCounter = 0; + + ConfigNavWindowingKeyNext = ImGuiMod_Ctrl | ImGuiKey_Tab; + ConfigNavWindowingKeyPrev = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab; + NavWindowingTarget = NavWindowingTargetAnim = NavWindowingListWindow = NULL; + NavWindowingTimer = NavWindowingHighlightAlpha = 0.0f; + NavWindowingToggleLayer = false; + + DimBgRatio = 0.0f; + MouseCursor = ImGuiMouseCursor_Arrow; + + DragDropActive = DragDropWithinSource = DragDropWithinTarget = false; + DragDropSourceFlags = ImGuiDragDropFlags_None; + DragDropSourceFrameCount = -1; + DragDropMouseButton = -1; + DragDropTargetId = 0; + DragDropAcceptFlags = ImGuiDragDropFlags_None; + DragDropAcceptIdCurrRectSurface = 0.0f; + DragDropAcceptIdPrev = DragDropAcceptIdCurr = 0; + DragDropAcceptFrameCount = -1; + DragDropHoldJustPressedId = 0; + memset(DragDropPayloadBufLocal, 0, sizeof(DragDropPayloadBufLocal)); + + ClipperTempDataStacked = 0; + + CurrentTable = NULL; + TablesTempDataStacked = 0; + CurrentTabBar = NULL; + + HoverDelayId = HoverDelayIdPreviousFrame = 0; + HoverDelayTimer = HoverDelayClearTimer = 0.0f; + + TempInputId = 0; + ColorEditOptions = ImGuiColorEditFlags_DefaultOptions_; + ColorEditLastHue = ColorEditLastSat = 0.0f; + ColorEditLastColor = 0; + SliderGrabClickOffset = 0.0f; + SliderCurrentAccum = 0.0f; + SliderCurrentAccumDirty = false; + DragCurrentAccumDirty = false; + DragCurrentAccum = 0.0f; + DragSpeedDefaultRatio = 1.0f / 100.0f; + ScrollbarClickDeltaToGrabCenter = 0.0f; + DisabledAlphaBackup = 0.0f; + DisabledStackSize = 0; + TooltipOverrideCount = 0; + + PlatformImeData.InputPos = ImVec2(0.0f, 0.0f); + PlatformImeDataPrev.InputPos = ImVec2(-1.0f, -1.0f); // Different to ensure initial submission + PlatformImeViewport = 0; + PlatformLocaleDecimalPoint = '.'; + + SettingsLoaded = false; + SettingsDirtyTimer = 0.0f; + HookIdNext = 0; + + memset(LocalizationTable, 0, sizeof(LocalizationTable)); + + LogEnabled = false; + LogType = ImGuiLogType_None; + LogNextPrefix = LogNextSuffix = NULL; + LogFile = NULL; + LogLinePosY = FLT_MAX; + LogLineFirstItem = false; + LogDepthRef = 0; + LogDepthToExpand = LogDepthToExpandDefault = 2; + + DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY; + DebugLocateId = 0; + DebugLocateFrames = 0; + DebugItemPickerActive = false; + DebugItemPickerMouseButton = ImGuiMouseButton_Left; + DebugItemPickerBreakId = 0; + DebugHoveredDockNode = NULL; + + memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); + FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0; + FramerateSecPerFrameAccum = 0.0f; + WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; + } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiWindowTempData, ImGuiWindow +//----------------------------------------------------------------------------- + +// Transient per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the DC variable name in ImGuiWindow. +// (That's theory, in practice the delimitation between ImGuiWindow and ImGuiWindowTempData is quite tenuous and could be reconsidered..) +// (This doesn't need a constructor because we zero-clear it as part of ImGuiWindow and all frame-temporary data are setup on Begin) +struct IMGUI_API ImGuiWindowTempData +{ + // Layout + ImVec2 CursorPos; // Current emitting position, in absolute coordinates. + ImVec2 CursorPosPrevLine; + ImVec2 CursorStartPos; // Initial position after Begin(), generally ~ window position + WindowPadding. + ImVec2 CursorMaxPos; // Used to implicitly calculate ContentSize at the beginning of next frame, for scrolling range and auto-resize. Always growing during the frame. + ImVec2 IdealMaxPos; // Used to implicitly calculate ContentSizeIdeal at the beginning of next frame, for auto-resize only. Always growing during the frame. + ImVec2 CurrLineSize; + ImVec2 PrevLineSize; + float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added). + float PrevLineTextBaseOffset; + bool IsSameLine; + bool IsSetPos; + ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.) + ImVec1 ColumnsOffset; // Offset to the current column (if ColumnsCurrent > 0). FIXME: This and the above should be a stack to allow use cases like Tree->Column->Tree. Need revamp columns API. + ImVec1 GroupOffset; + ImVec2 CursorStartPosLossyness;// Record the loss of precision of CursorStartPos due to really large scrolling amount. This is used by clipper to compensentate and fix the most common use case of large scroll area. + + // Keyboard/Gamepad navigation + ImGuiNavLayer NavLayerCurrent; // Current layer, 0..31 (we currently only use 0..1) + short NavLayersActiveMask; // Which layers have been written to (result from previous frame) + short NavLayersActiveMaskNext;// Which layers have been written to (accumulator for current frame) + bool NavHideHighlightOneFrame; + bool NavHasScroll; // Set when scrolling can be used (ScrollMax > 0.0f) + + // Miscellaneous + bool MenuBarAppending; // FIXME: Remove this + ImVec2 MenuBarOffset; // MenuBarOffset.x is sort of equivalent of a per-layer CursorPos.x, saved/restored as we switch to the menu bar. The only situation when MenuBarOffset.y is > 0 if when (SafeAreaPadding.y > FramePadding.y), often used on TVs. + ImGuiMenuColumns MenuColumns; // Simplified columns storage for menu items measurement + int TreeDepth; // Current tree depth. + ImU32 TreeJumpToParentOnPopMask; // Store a copy of !g.NavIdIsAlive for TreeDepth 0..31.. Could be turned into a ImU64 if necessary. + ImVector ChildWindows; + ImGuiStorage* StateStorage; // Current persistent per-window storage (store e.g. tree node open/close state) + ImGuiOldColumns* CurrentColumns; // Current columns set + int CurrentTableIdx; // Current table index (into g.Tables) + ImGuiLayoutType LayoutType; + ImGuiLayoutType ParentLayoutType; // Layout type of parent window at the time of Begin() + + // Local parameters stacks + // We store the current settings outside of the vectors to increase memory locality (reduce cache misses). The vectors are rarely modified. Also it allows us to not heap allocate for short-lived windows which are not using those settings. + float ItemWidth; // Current item width (>0.0: width in pixels, <0.0: align xx pixels to the right of window). + float TextWrapPos; // Current text wrap pos. + ImVector ItemWidthStack; // Store item widths to restore (attention: .back() is not == ItemWidth) + ImVector TextWrapPosStack; // Store text wrap pos to restore (attention: .back() is not == TextWrapPos) +}; + +// Storage for one window +struct IMGUI_API ImGuiWindow +{ + char* Name; // Window name, owned by the window. + ImGuiID ID; // == ImHashStr(Name) + ImGuiWindowFlags Flags, FlagsPreviousFrame; // See enum ImGuiWindowFlags_ + ImGuiWindowClass WindowClass; // Advanced users only. Set with SetNextWindowClass() + ImGuiViewportP* Viewport; // Always set in Begin(). Inactive windows may have a NULL value here if their viewport was discarded. + ImGuiID ViewportId; // We backup the viewport id (since the viewport may disappear or never be created if the window is inactive) + ImVec2 ViewportPos; // We backup the viewport position (since the viewport may disappear or never be created if the window is inactive) + int ViewportAllowPlatformMonitorExtend; // Reset to -1 every frame (index is guaranteed to be valid between NewFrame..EndFrame), only used in the Appearing frame of a tooltip/popup to enforce clamping to a given monitor + ImVec2 Pos; // Position (always rounded-up to nearest pixel) + ImVec2 Size; // Current size (==SizeFull or collapsed title bar size) + ImVec2 SizeFull; // Size when non collapsed + ImVec2 ContentSize; // Size of contents/scrollable client area (calculated from the extents reach of the cursor) from previous frame. Does not include window decoration or window padding. + ImVec2 ContentSizeIdeal; + ImVec2 ContentSizeExplicit; // Size of contents/scrollable client area explicitly request by the user via SetNextWindowContentSize(). + ImVec2 WindowPadding; // Window padding at the time of Begin(). + float WindowRounding; // Window rounding at the time of Begin(). May be clamped lower to avoid rendering artifacts with title bar, menu bar etc. + float WindowBorderSize; // Window border size at the time of Begin(). + int NameBufLen; // Size of buffer storing Name. May be larger than strlen(Name)! + ImGuiID MoveId; // == window->GetID("#MOVE") + ImGuiID TabId; // == window->GetID("#TAB") + ImGuiID ChildId; // ID of corresponding item in parent window (for navigation to return from child window to parent window) + ImVec2 Scroll; + ImVec2 ScrollMax; + ImVec2 ScrollTarget; // target scroll position. stored as cursor position with scrolling canceled out, so the highest point is always 0.0f. (FLT_MAX for no change) + ImVec2 ScrollTargetCenterRatio; // 0.0f = scroll so that target position is at top, 0.5f = scroll so that target position is centered + ImVec2 ScrollTargetEdgeSnapDist; // 0.0f = no snapping, >0.0f snapping threshold + ImVec2 ScrollbarSizes; // Size taken by each scrollbars on their smaller axis. Pay attention! ScrollbarSizes.x == width of the vertical scrollbar, ScrollbarSizes.y = height of the horizontal scrollbar. + bool ScrollbarX, ScrollbarY; // Are scrollbars visible? + bool ViewportOwned; + bool Active; // Set to true on Begin(), unless Collapsed + bool WasActive; + bool WriteAccessed; // Set to true when any widget access the current window + bool Collapsed; // Set when collapsing window to become only title-bar + bool WantCollapseToggle; + bool SkipItems; // Set when items can safely be all clipped (e.g. window not visible or collapsed) + bool Appearing; // Set during the frame where the window is appearing (or re-appearing) + bool Hidden; // Do not display (== HiddenFrames*** > 0) + bool IsFallbackWindow; // Set on the "Debug##Default" window. + bool IsExplicitChild; // Set when passed _ChildWindow, left to false by BeginDocked() + bool HasCloseButton; // Set when the window has a close button (p_open != NULL) + signed char ResizeBorderHeld; // Current border being held for resize (-1: none, otherwise 0-3) + short BeginCount; // Number of Begin() during the current frame (generally 0 or 1, 1+ if appending via multiple Begin/End pairs) + short BeginCountPreviousFrame; // Number of Begin() during the previous frame + short BeginOrderWithinParent; // Begin() order within immediate parent window, if we are a child window. Otherwise 0. + short BeginOrderWithinContext; // Begin() order within entire imgui context. This is mostly used for debugging submission order related issues. + short FocusOrder; // Order within WindowsFocusOrder[], altered when windows are focused. + ImGuiID PopupId; // ID in the popup stack when this window is used as a popup/menu (because we use generic Name/ID for recycling) + ImS8 AutoFitFramesX, AutoFitFramesY; + ImS8 AutoFitChildAxises; + bool AutoFitOnlyGrows; + ImGuiDir AutoPosLastDirection; + ImS8 HiddenFramesCanSkipItems; // Hide the window for N frames + ImS8 HiddenFramesCannotSkipItems; // Hide the window for N frames while allowing items to be submitted so we can measure their size + ImS8 HiddenFramesForRenderOnly; // Hide the window until frame N at Render() time only + ImS8 DisableInputsFrames; // Disable window interactions for N frames + ImGuiCond SetWindowPosAllowFlags : 8; // store acceptable condition flags for SetNextWindowPos() use. + ImGuiCond SetWindowSizeAllowFlags : 8; // store acceptable condition flags for SetNextWindowSize() use. + ImGuiCond SetWindowCollapsedAllowFlags : 8; // store acceptable condition flags for SetNextWindowCollapsed() use. + ImGuiCond SetWindowDockAllowFlags : 8; // store acceptable condition flags for SetNextWindowDock() use. + ImVec2 SetWindowPosVal; // store window position when using a non-zero Pivot (position set needs to be processed when we know the window size) + ImVec2 SetWindowPosPivot; // store window pivot for positioning. ImVec2(0, 0) when positioning from top-left corner; ImVec2(0.5f, 0.5f) for centering; ImVec2(1, 1) for bottom right. + + ImVector IDStack; // ID stack. ID are hashes seeded with the value at the top of the stack. (In theory this should be in the TempData structure) + ImGuiWindowTempData DC; // Temporary per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the "DC" variable name. + + // The best way to understand what those rectangles are is to use the 'Metrics->Tools->Show Windows Rectangles' viewer. + // The main 'OuterRect', omitted as a field, is window->Rect(). + ImRect OuterRectClipped; // == Window->Rect() just after setup in Begin(). == window->Rect() for root window. + ImRect InnerRect; // Inner rectangle (omit title bar, menu bar, scroll bar) + ImRect InnerClipRect; // == InnerRect shrunk by WindowPadding*0.5f on each side, clipped within viewport or parent clip rect. + ImRect WorkRect; // Initially covers the whole scrolling region. Reduced by containers e.g columns/tables when active. Shrunk by WindowPadding*1.0f on each side. This is meant to replace ContentRegionRect over time (from 1.71+ onward). + ImRect ParentWorkRect; // Backup of WorkRect before entering a container such as columns/tables. Used by e.g. SpanAllColumns functions to easily access. Stacked containers are responsible for maintaining this. // FIXME-WORKRECT: Could be a stack? + ImRect ClipRect; // Current clipping/scissoring rectangle, evolve as we are using PushClipRect(), etc. == DrawList->clip_rect_stack.back(). + ImRect ContentRegionRect; // FIXME: This is currently confusing/misleading. It is essentially WorkRect but not handling of scrolling. We currently rely on it as right/bottom aligned sizing operation need some size to rely on. + ImVec2ih HitTestHoleSize; // Define an optional rectangular hole where mouse will pass-through the window. + ImVec2ih HitTestHoleOffset; + + int LastFrameActive; // Last frame number the window was Active. + int LastFrameJustFocused; // Last frame number the window was made Focused. + float LastTimeActive; // Last timestamp the window was Active (using float as we don't need high precision there) + float ItemWidthDefault; + ImGuiStorage StateStorage; + ImVector ColumnsStorage; + float FontWindowScale; // User scale multiplier per-window, via SetWindowFontScale() + float FontDpiScale; + int SettingsOffset; // Offset into SettingsWindows[] (offsets are always valid as we only grow the array from the back) + + ImDrawList* DrawList; // == &DrawListInst (for backward compatibility reason with code using imgui_internal.h we keep this a pointer) + ImDrawList DrawListInst; + ImGuiWindow* ParentWindow; // If we are a child _or_ popup _or_ docked window, this is pointing to our parent. Otherwise NULL. + ImGuiWindow* ParentWindowInBeginStack; + ImGuiWindow* RootWindow; // Point to ourself or first ancestor that is not a child window. Doesn't cross through popups/dock nodes. + ImGuiWindow* RootWindowPopupTree; // Point to ourself or first ancestor that is not a child window. Cross through popups parent<>child. + ImGuiWindow* RootWindowDockTree; // Point to ourself or first ancestor that is not a child window. Cross through dock nodes. + ImGuiWindow* RootWindowForTitleBarHighlight; // Point to ourself or first ancestor which will display TitleBgActive color when this window is active. + ImGuiWindow* RootWindowForNav; // Point to ourself or first ancestor which doesn't have the NavFlattened flag. + + ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.) + ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1) + ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space + ImGuiID NavRootFocusScopeId; // Focus Scope ID at the time of Begin() + + int MemoryDrawListIdxCapacity; // Backup of last idx/vtx count, so when waking up the window we can preallocate and avoid iterative alloc/copy + int MemoryDrawListVtxCapacity; + bool MemoryCompacted; // Set when window extraneous data have been garbage collected + + // Docking + bool DockIsActive :1; // When docking artifacts are actually visible. When this is set, DockNode is guaranteed to be != NULL. ~~ (DockNode != NULL) && (DockNode->Windows.Size > 1). + bool DockNodeIsVisible :1; + bool DockTabIsVisible :1; // Is our window visible this frame? ~~ is the corresponding tab selected? + bool DockTabWantClose :1; + short DockOrder; // Order of the last time the window was visible within its DockNode. This is used to reorder windows that are reappearing on the same frame. Same value between windows that were active and windows that were none are possible. + ImGuiWindowDockStyle DockStyle; + ImGuiDockNode* DockNode; // Which node are we docked into. Important: Prefer testing DockIsActive in many cases as this will still be set when the dock node is hidden. + ImGuiDockNode* DockNodeAsHost; // Which node are we owning (for parent windows) + ImGuiID DockId; // Backup of last valid DockNode->ID, so single window remember their dock node id even when they are not bound any more + ImGuiItemStatusFlags DockTabItemStatusFlags; + ImRect DockTabItemRect; + +public: + ImGuiWindow(ImGuiContext* context, const char* name); + ~ImGuiWindow(); + + ImGuiID GetID(const char* str, const char* str_end = NULL); + ImGuiID GetID(const void* ptr); + ImGuiID GetID(int n); + ImGuiID GetIDFromRectangle(const ImRect& r_abs); + + // We don't use g.FontSize because the window may be != g.CurrentWindow. + ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + float CalcFontSize() const { ImGuiContext& g = *GImGui; float scale = g.FontBaseSize * FontWindowScale * FontDpiScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; } + float TitleBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; } + ImRect TitleBarRect() const { return ImRect(Pos, ImVec2(Pos.x + SizeFull.x, Pos.y + TitleBarHeight())); } + float MenuBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + g.Style.FramePadding.y * 2.0f : 0.0f; } + ImRect MenuBarRect() const { float y1 = Pos.y + TitleBarHeight(); return ImRect(Pos.x, y1, Pos.x + SizeFull.x, y1 + MenuBarHeight()); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Tab bar, Tab item support +//----------------------------------------------------------------------------- + +// Extend ImGuiTabBarFlags_ +enum ImGuiTabBarFlagsPrivate_ +{ + ImGuiTabBarFlags_DockNode = 1 << 20, // Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around] + ImGuiTabBarFlags_IsFocused = 1 << 21, + ImGuiTabBarFlags_SaveSettings = 1 << 22, // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs +}; + +// Extend ImGuiTabItemFlags_ +enum ImGuiTabItemFlagsPrivate_ +{ + ImGuiTabItemFlags_SectionMask_ = ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing, + ImGuiTabItemFlags_NoCloseButton = 1 << 20, // Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout) + ImGuiTabItemFlags_Button = 1 << 21, // Used by TabItemButton, change the tab item behavior to mimic a button + ImGuiTabItemFlags_Unsorted = 1 << 22, // [Docking] Trailing tabs with the _Unsorted flag will be sorted based on the DockOrder of their Window. + ImGuiTabItemFlags_Preview = 1 << 23, // [Docking] Display tab shape for docking preview (height is adjusted slightly to compensate for the yet missing tab bar) +}; + +// Storage for one active tab item (sizeof() 48 bytes) +struct ImGuiTabItem +{ + ImGuiID ID; + ImGuiTabItemFlags Flags; + ImGuiWindow* Window; // When TabItem is part of a DockNode's TabBar, we hold on to a window. + int LastFrameVisible; + int LastFrameSelected; // This allows us to infer an ordered list of the last activated tabs with little maintenance + float Offset; // Position relative to beginning of tab + float Width; // Width currently displayed + float ContentWidth; // Width of label, stored during BeginTabItem() call + float RequestedWidth; // Width optionally requested by caller, -1.0f is unused + ImS32 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames + ImS16 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable + ImS16 IndexDuringLayout; // Index only used during TabBarLayout() + bool WantClose; // Marked as closed by SetTabItemClosed() + + ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; RequestedWidth = -1.0f; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; } +}; + +// Storage for a tab bar (sizeof() 152 bytes) +struct IMGUI_API ImGuiTabBar +{ + ImVector Tabs; + ImGuiTabBarFlags Flags; + ImGuiID ID; // Zero for tab-bars used by docking + ImGuiID SelectedTabId; // Selected tab/window + ImGuiID NextSelectedTabId; // Next selected tab/window. Will also trigger a scrolling animation + ImGuiID VisibleTabId; // Can occasionally be != SelectedTabId (e.g. when previewing contents for CTRL+TAB preview) + int CurrFrameVisible; + int PrevFrameVisible; + ImRect BarRect; + float CurrTabsContentsHeight; + float PrevTabsContentsHeight; // Record the height of contents submitted below the tab bar + float WidthAllTabs; // Actual width of all tabs (locked during layout) + float WidthAllTabsIdeal; // Ideal width if all tabs were visible and not clipped + float ScrollingAnim; + float ScrollingTarget; + float ScrollingTargetDistToVisibility; + float ScrollingSpeed; + float ScrollingRectMinX; + float ScrollingRectMaxX; + ImGuiID ReorderRequestTabId; + ImS16 ReorderRequestOffset; + ImS8 BeginCount; + bool WantLayout; + bool VisibleTabWasSubmitted; + bool TabsAddedNew; // Set to true when a new tab item or button has been added to the tab bar during last frame + ImS16 TabsActiveCount; // Number of tabs submitted this frame. + ImS16 LastTabItemIdx; // Index of last BeginTabItem() tab for use by EndTabItem() + float ItemSpacingY; + ImVec2 FramePadding; // style.FramePadding locked at the time of BeginTabBar() + ImVec2 BackupCursorPos; + ImGuiTextBuffer TabsNames; // For non-docking tab bar we re-append names in a contiguous buffer. + + ImGuiTabBar(); + int GetTabOrder(const ImGuiTabItem* tab) const { return Tabs.index_from_ptr(tab); } + const char* GetTabName(const ImGuiTabItem* tab) const + { + if (tab->Window) + return tab->Window->Name; + IM_ASSERT(tab->NameOffset != -1 && tab->NameOffset < TabsNames.Buf.Size); + return TabsNames.Buf.Data + tab->NameOffset; + } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Table support +//----------------------------------------------------------------------------- + +#define IM_COL32_DISABLE IM_COL32(0,0,0,1) // Special sentinel code which cannot be used as a regular color. +#define IMGUI_TABLE_MAX_COLUMNS 64 // sizeof(ImU64) * 8. This is solely because we frequently encode columns set in a ImU64. +#define IMGUI_TABLE_MAX_DRAW_CHANNELS (4 + 64 * 2) // See TableSetupDrawChannels() + +// Our current column maximum is 64 but we may raise that in the future. +typedef ImS8 ImGuiTableColumnIdx; +typedef ImU8 ImGuiTableDrawChannelIdx; + +// [Internal] sizeof() ~ 104 +// We use the terminology "Enabled" to refer to a column that is not Hidden by user/api. +// We use the terminology "Clipped" to refer to a column that is out of sight because of scrolling/clipping. +// This is in contrast with some user-facing api such as IsItemVisible() / IsRectVisible() which use "Visible" to mean "not clipped". +struct ImGuiTableColumn +{ + ImGuiTableColumnFlags Flags; // Flags after some patching (not directly same as provided by user). See ImGuiTableColumnFlags_ + float WidthGiven; // Final/actual width visible == (MaxX - MinX), locked in TableUpdateLayout(). May be > WidthRequest to honor minimum width, may be < WidthRequest to honor shrinking columns down in tight space. + float MinX; // Absolute positions + float MaxX; + float WidthRequest; // Master width absolute value when !(Flags & _WidthStretch). When Stretch this is derived every frame from StretchWeight in TableUpdateLayout() + float WidthAuto; // Automatic width + float StretchWeight; // Master width weight when (Flags & _WidthStretch). Often around ~1.0f initially. + float InitStretchWeightOrWidth; // Value passed to TableSetupColumn(). For Width it is a content width (_without padding_). + ImRect ClipRect; // Clipping rectangle for the column + ImGuiID UserID; // Optional, value passed to TableSetupColumn() + float WorkMinX; // Contents region min ~(MinX + CellPaddingX + CellSpacingX1) == cursor start position when entering column + float WorkMaxX; // Contents region max ~(MaxX - CellPaddingX - CellSpacingX2) + float ItemWidth; // Current item width for the column, preserved across rows + float ContentMaxXFrozen; // Contents maximum position for frozen rows (apart from headers), from which we can infer content width. + float ContentMaxXUnfrozen; + float ContentMaxXHeadersUsed; // Contents maximum position for headers rows (regardless of freezing). TableHeader() automatically softclip itself + report ideal desired size, to avoid creating extraneous draw calls + float ContentMaxXHeadersIdeal; + ImS16 NameOffset; // Offset into parent ColumnsNames[] + ImGuiTableColumnIdx DisplayOrder; // Index within Table's IndexToDisplayOrder[] (column may be reordered by users) + ImGuiTableColumnIdx IndexWithinEnabledSet; // Index within enabled/visible set (<= IndexToDisplayOrder) + ImGuiTableColumnIdx PrevEnabledColumn; // Index of prev enabled/visible column within Columns[], -1 if first enabled/visible column + ImGuiTableColumnIdx NextEnabledColumn; // Index of next enabled/visible column within Columns[], -1 if last enabled/visible column + ImGuiTableColumnIdx SortOrder; // Index of this column within sort specs, -1 if not sorting on this column, 0 for single-sort, may be >0 on multi-sort + ImGuiTableDrawChannelIdx DrawChannelCurrent; // Index within DrawSplitter.Channels[] + ImGuiTableDrawChannelIdx DrawChannelFrozen; // Draw channels for frozen rows (often headers) + ImGuiTableDrawChannelIdx DrawChannelUnfrozen; // Draw channels for unfrozen rows + bool IsEnabled; // IsUserEnabled && (Flags & ImGuiTableColumnFlags_Disabled) == 0 + bool IsUserEnabled; // Is the column not marked Hidden by the user? (unrelated to being off view, e.g. clipped by scrolling). + bool IsUserEnabledNextFrame; + bool IsVisibleX; // Is actually in view (e.g. overlapping the host window clipping rectangle, not scrolled). + bool IsVisibleY; + bool IsRequestOutput; // Return value for TableSetColumnIndex() / TableNextColumn(): whether we request user to output contents or not. + bool IsSkipItems; // Do we want item submissions to this column to be completely ignored (no layout will happen). + bool IsPreserveWidthAuto; + ImS8 NavLayerCurrent; // ImGuiNavLayer in 1 byte + ImU8 AutoFitQueue; // Queue of 8 values for the next 8 frames to request auto-fit + ImU8 CannotSkipItemsQueue; // Queue of 8 values for the next 8 frames to disable Clipped/SkipItem + ImU8 SortDirection : 2; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending + ImU8 SortDirectionsAvailCount : 2; // Number of available sort directions (0 to 3) + ImU8 SortDirectionsAvailMask : 4; // Mask of available sort directions (1-bit each) + ImU8 SortDirectionsAvailList; // Ordered of available sort directions (2-bits each) + + ImGuiTableColumn() + { + memset(this, 0, sizeof(*this)); + StretchWeight = WidthRequest = -1.0f; + NameOffset = -1; + DisplayOrder = IndexWithinEnabledSet = -1; + PrevEnabledColumn = NextEnabledColumn = -1; + SortOrder = -1; + SortDirection = ImGuiSortDirection_None; + DrawChannelCurrent = DrawChannelFrozen = DrawChannelUnfrozen = (ImU8)-1; + } +}; + +// Transient cell data stored per row. +// sizeof() ~ 6 +struct ImGuiTableCellData +{ + ImU32 BgColor; // Actual color + ImGuiTableColumnIdx Column; // Column number +}; + +// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs, does that needs they could be moved to ImGuiTableTempData ?) +struct ImGuiTableInstanceData +{ + float LastOuterHeight; // Outer height from last frame // FIXME: multi-instance issue (#3955) + float LastFirstRowHeight; // Height of first row from last frame // FIXME: possible multi-instance issue? + + ImGuiTableInstanceData() { LastOuterHeight = LastFirstRowHeight = 0.0f; } +}; + +// FIXME-TABLE: more transient data could be stored in a per-stacked table structure: DrawSplitter, SortSpecs, incoming RowData +struct IMGUI_API ImGuiTable +{ + ImGuiID ID; + ImGuiTableFlags Flags; + void* RawData; // Single allocation to hold Columns[], DisplayOrderToIndex[] and RowCellData[] + ImGuiTableTempData* TempData; // Transient data while table is active. Point within g.CurrentTableStack[] + ImSpan Columns; // Point within RawData[] + ImSpan DisplayOrderToIndex; // Point within RawData[]. Store display order of columns (when not reordered, the values are 0...Count-1) + ImSpan RowCellData; // Point within RawData[]. Store cells background requests for current row. + ImU64 EnabledMaskByDisplayOrder; // Column DisplayOrder -> IsEnabled map + ImU64 EnabledMaskByIndex; // Column Index -> IsEnabled map (== not hidden by user/api) in a format adequate for iterating column without touching cold data + ImU64 VisibleMaskByIndex; // Column Index -> IsVisibleX|IsVisibleY map (== not hidden by user/api && not hidden by scrolling/cliprect) + ImU64 RequestOutputMaskByIndex; // Column Index -> IsVisible || AutoFit (== expect user to submit items) + ImGuiTableFlags SettingsLoadedFlags; // Which data were loaded from the .ini file (e.g. when order is not altered we won't save order) + int SettingsOffset; // Offset in g.SettingsTables + int LastFrameActive; + int ColumnsCount; // Number of columns declared in BeginTable() + int CurrentRow; + int CurrentColumn; + ImS16 InstanceCurrent; // Count of BeginTable() calls with same ID in the same frame (generally 0). This is a little bit similar to BeginCount for a window, but multiple table with same ID look are multiple tables, they are just synched. + ImS16 InstanceInteracted; // Mark which instance (generally 0) of the same ID is being interacted with + float RowPosY1; + float RowPosY2; + float RowMinHeight; // Height submitted to TableNextRow() + float RowTextBaseline; + float RowIndentOffsetX; + ImGuiTableRowFlags RowFlags : 16; // Current row flags, see ImGuiTableRowFlags_ + ImGuiTableRowFlags LastRowFlags : 16; + int RowBgColorCounter; // Counter for alternating background colors (can be fast-forwarded by e.g clipper), not same as CurrentRow because header rows typically don't increase this. + ImU32 RowBgColor[2]; // Background color override for current row. + ImU32 BorderColorStrong; + ImU32 BorderColorLight; + float BorderX1; + float BorderX2; + float HostIndentX; + float MinColumnWidth; + float OuterPaddingX; + float CellPaddingX; // Padding from each borders + float CellPaddingY; + float CellSpacingX1; // Spacing between non-bordered cells + float CellSpacingX2; + float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details. + float ColumnsGivenWidth; // Sum of current column width + float ColumnsAutoFitWidth; // Sum of ideal column width in order nothing to be clipped, used for auto-fitting and content width submission in outer window + float ColumnsStretchSumWeights; // Sum of weight of all enabled stretching columns + float ResizedColumnNextWidth; + float ResizeLockMinContentsX2; // Lock minimum contents width while resizing down in order to not create feedback loops. But we allow growing the table. + float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. + ImRect OuterRect; // Note: for non-scrolling table, OuterRect.Max.y is often FLT_MAX until EndTable(), unless a height has been specified in BeginTable(). + ImRect InnerRect; // InnerRect but without decoration. As with OuterRect, for non-scrolling tables, InnerRect.Max.y is + ImRect WorkRect; + ImRect InnerClipRect; + ImRect BgClipRect; // We use this to cpu-clip cell background color fill, evolve during the frame as we cross frozen rows boundaries + ImRect Bg0ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG0/1 channel. This tends to be == OuterWindow->ClipRect at BeginTable() because output in BG0/BG1 is cpu-clipped + ImRect Bg2ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG2 channel. This tends to be a correct, tight-fit, because output to BG2 are done by widgets relying on regular ClipRect. + ImRect HostClipRect; // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window. + ImRect HostBackupInnerClipRect; // Backup of InnerWindow->ClipRect during PushTableBackground()/PopTableBackground() + ImGuiWindow* OuterWindow; // Parent window for the table + ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window) + ImGuiTextBuffer ColumnsNames; // Contiguous buffer holding columns names + ImDrawListSplitter* DrawSplitter; // Shortcut to TempData->DrawSplitter while in table. Isolate draw commands per columns to avoid switching clip rect constantly + ImGuiTableInstanceData InstanceDataFirst; + ImVector InstanceDataExtra; // FIXME-OPT: Using a small-vector pattern would be good. + ImGuiTableColumnSortSpecs SortSpecsSingle; + ImVector SortSpecsMulti; // FIXME-OPT: Using a small-vector pattern would be good. + ImGuiTableSortSpecs SortSpecs; // Public facing sorts specs, this is what we return in TableGetSortSpecs() + ImGuiTableColumnIdx SortSpecsCount; + ImGuiTableColumnIdx ColumnsEnabledCount; // Number of enabled columns (<= ColumnsCount) + ImGuiTableColumnIdx ColumnsEnabledFixedCount; // Number of enabled columns (<= ColumnsCount) + ImGuiTableColumnIdx DeclColumnsCount; // Count calls to TableSetupColumn() + ImGuiTableColumnIdx HoveredColumnBody; // Index of column whose visible region is being hovered. Important: == ColumnsCount when hovering empty region after the right-most column! + ImGuiTableColumnIdx HoveredColumnBorder; // Index of column whose right-border is being hovered (for resizing). + ImGuiTableColumnIdx AutoFitSingleColumn; // Index of single column requesting auto-fit. + ImGuiTableColumnIdx ResizedColumn; // Index of column being resized. Reset when InstanceCurrent==0. + ImGuiTableColumnIdx LastResizedColumn; // Index of column being resized from previous frame. + ImGuiTableColumnIdx HeldHeaderColumn; // Index of column header being held. + ImGuiTableColumnIdx ReorderColumn; // Index of column being reordered. (not cleared) + ImGuiTableColumnIdx ReorderColumnDir; // -1 or +1 + ImGuiTableColumnIdx LeftMostEnabledColumn; // Index of left-most non-hidden column. + ImGuiTableColumnIdx RightMostEnabledColumn; // Index of right-most non-hidden column. + ImGuiTableColumnIdx LeftMostStretchedColumn; // Index of left-most stretched column. + ImGuiTableColumnIdx RightMostStretchedColumn; // Index of right-most stretched column. + ImGuiTableColumnIdx ContextPopupColumn; // Column right-clicked on, of -1 if opening context menu from a neutral/empty spot + ImGuiTableColumnIdx FreezeRowsRequest; // Requested frozen rows count + ImGuiTableColumnIdx FreezeRowsCount; // Actual frozen row count (== FreezeRowsRequest, or == 0 when no scrolling offset) + ImGuiTableColumnIdx FreezeColumnsRequest; // Requested frozen columns count + ImGuiTableColumnIdx FreezeColumnsCount; // Actual frozen columns count (== FreezeColumnsRequest, or == 0 when no scrolling offset) + ImGuiTableColumnIdx RowCellDataCurrent; // Index of current RowCellData[] entry in current row + ImGuiTableDrawChannelIdx DummyDrawChannel; // Redirect non-visible columns here. + ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; // For Selectable() and other widgets drawing across columns after the freezing line. Index within DrawSplitter.Channels[] + ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen; + bool IsLayoutLocked; // Set by TableUpdateLayout() which is called when beginning the first row. + bool IsInsideRow; // Set when inside TableBeginRow()/TableEndRow(). + bool IsInitializing; + bool IsSortSpecsDirty; + bool IsUsingHeaders; // Set when the first row had the ImGuiTableRowFlags_Headers flag. + bool IsContextPopupOpen; // Set when default context menu is open (also see: ContextPopupColumn, InstanceInteracted). + bool IsSettingsRequestLoad; + bool IsSettingsDirty; // Set when table settings have changed and needs to be reported into ImGuiTableSetttings data. + bool IsDefaultDisplayOrder; // Set when display order is unchanged from default (DisplayOrder contains 0...Count-1) + bool IsResetAllRequest; + bool IsResetDisplayOrderRequest; + bool IsUnfrozenRows; // Set when we got past the frozen row. + bool IsDefaultSizingPolicy; // Set if user didn't explicitly set a sizing policy in BeginTable() + bool MemoryCompacted; + bool HostSkipItems; // Backup of InnerWindow->SkipItem at the end of BeginTable(), because we will overwrite InnerWindow->SkipItem on a per-column basis + + ImGuiTable() { memset(this, 0, sizeof(*this)); LastFrameActive = -1; } + ~ImGuiTable() { IM_FREE(RawData); } +}; + +// Transient data that are only needed between BeginTable() and EndTable(), those buffers are shared (1 per level of stacked table). +// - Accessing those requires chasing an extra pointer so for very frequently used data we leave them in the main table structure. +// - We also leave out of this structure data that tend to be particularly useful for debugging/metrics. +struct IMGUI_API ImGuiTableTempData +{ + int TableIndex; // Index in g.Tables.Buf[] pool + float LastTimeActive; // Last timestamp this structure was used + + ImVec2 UserOuterSize; // outer_size.x passed to BeginTable() + ImDrawListSplitter DrawSplitter; + + ImRect HostBackupWorkRect; // Backup of InnerWindow->WorkRect at the end of BeginTable() + ImRect HostBackupParentWorkRect; // Backup of InnerWindow->ParentWorkRect at the end of BeginTable() + ImVec2 HostBackupPrevLineSize; // Backup of InnerWindow->DC.PrevLineSize at the end of BeginTable() + ImVec2 HostBackupCurrLineSize; // Backup of InnerWindow->DC.CurrLineSize at the end of BeginTable() + ImVec2 HostBackupCursorMaxPos; // Backup of InnerWindow->DC.CursorMaxPos at the end of BeginTable() + ImVec1 HostBackupColumnsOffset; // Backup of OuterWindow->DC.ColumnsOffset at the end of BeginTable() + float HostBackupItemWidth; // Backup of OuterWindow->DC.ItemWidth at the end of BeginTable() + int HostBackupItemWidthStackSize;//Backup of OuterWindow->DC.ItemWidthStack.Size at the end of BeginTable() + + ImGuiTableTempData() { memset(this, 0, sizeof(*this)); LastTimeActive = -1.0f; } +}; + +// sizeof() ~ 12 +struct ImGuiTableColumnSettings +{ + float WidthOrWeight; + ImGuiID UserID; + ImGuiTableColumnIdx Index; + ImGuiTableColumnIdx DisplayOrder; + ImGuiTableColumnIdx SortOrder; + ImU8 SortDirection : 2; + ImU8 IsEnabled : 1; // "Visible" in ini file + ImU8 IsStretch : 1; + + ImGuiTableColumnSettings() + { + WidthOrWeight = 0.0f; + UserID = 0; + Index = -1; + DisplayOrder = SortOrder = -1; + SortDirection = ImGuiSortDirection_None; + IsEnabled = 1; + IsStretch = 0; + } +}; + +// This is designed to be stored in a single ImChunkStream (1 header followed by N ImGuiTableColumnSettings, etc.) +struct ImGuiTableSettings +{ + ImGuiID ID; // Set to 0 to invalidate/delete the setting + ImGuiTableFlags SaveFlags; // Indicate data we want to save using the Resizable/Reorderable/Sortable/Hideable flags (could be using its own flags..) + float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. + ImGuiTableColumnIdx ColumnsCount; + ImGuiTableColumnIdx ColumnsCountMax; // Maximum number of columns this settings instance can store, we can recycle a settings instance with lower number of columns but not higher + bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) + + ImGuiTableSettings() { memset(this, 0, sizeof(*this)); } + ImGuiTableColumnSettings* GetColumnSettings() { return (ImGuiTableColumnSettings*)(this + 1); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGui internal API +// No guarantee of forward compatibility here! +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Windows + // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) + // If this ever crash because g.CurrentWindow is NULL it means that either + // - ImGui::NewFrame() has never been called, which is illegal. + // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. + inline ImGuiWindow* GetCurrentWindowRead() { ImGuiContext& g = *GImGui; return g.CurrentWindow; } + inline ImGuiWindow* GetCurrentWindow() { ImGuiContext& g = *GImGui; g.CurrentWindow->WriteAccessed = true; return g.CurrentWindow; } + IMGUI_API ImGuiWindow* FindWindowByID(ImGuiID id); + IMGUI_API ImGuiWindow* FindWindowByName(const char* name); + IMGUI_API void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); + IMGUI_API ImVec2 CalcWindowNextAutoFitSize(ImGuiWindow* window); + IMGUI_API bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy); + IMGUI_API bool IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent); + IMGUI_API bool IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below); + IMGUI_API bool IsWindowNavFocusable(ImGuiWindow* window); + IMGUI_API void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond = 0); + IMGUI_API void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond = 0); + IMGUI_API void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0); + IMGUI_API void SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size); + inline ImRect WindowRectAbsToRel(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x - off.x, r.Min.y - off.y, r.Max.x - off.x, r.Max.y - off.y); } + inline ImRect WindowRectRelToAbs(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x + off.x, r.Min.y + off.y, r.Max.x + off.x, r.Max.y + off.y); } + + // Windows: Display Order and Focus Order + IMGUI_API void FocusWindow(ImGuiWindow* window); + IMGUI_API void FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window); + IMGUI_API void BringWindowToFocusFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayBack(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* above_window); + IMGUI_API int FindWindowDisplayIndex(ImGuiWindow* window); + IMGUI_API ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window); + + // Fonts, drawing + IMGUI_API void SetCurrentFont(ImFont* font); + inline ImFont* GetDefaultFont() { ImGuiContext& g = *GImGui; return g.IO.FontDefault ? g.IO.FontDefault : g.IO.Fonts->Fonts[0]; } + inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window) { return GetForegroundDrawList(window->Viewport); } + + // Init + IMGUI_API void Initialize(); + IMGUI_API void Shutdown(); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). + + // NewFrame + IMGUI_API void UpdateInputEvents(bool trickle_fast_inputs); + IMGUI_API void UpdateHoveredWindowAndCaptureFlags(); + IMGUI_API void StartMouseMovingWindow(ImGuiWindow* window); + IMGUI_API void StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock_floating_node); + IMGUI_API void UpdateMouseMovingWindowNewFrame(); + IMGUI_API void UpdateMouseMovingWindowEndFrame(); + + // Generic context hooks + IMGUI_API ImGuiID AddContextHook(ImGuiContext* context, const ImGuiContextHook* hook); + IMGUI_API void RemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove); + IMGUI_API void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type); + + // Viewports + IMGUI_API void TranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2& old_pos, const ImVec2& new_pos); + IMGUI_API void ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale); + IMGUI_API void DestroyPlatformWindow(ImGuiViewportP* viewport); + IMGUI_API void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport); + IMGUI_API void SetCurrentViewport(ImGuiWindow* window, ImGuiViewportP* viewport); + IMGUI_API const ImGuiPlatformMonitor* GetViewportPlatformMonitor(ImGuiViewport* viewport); + IMGUI_API ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos); + + // Settings + IMGUI_API void MarkIniSettingsDirty(); + IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window); + IMGUI_API void ClearIniSettings(); + IMGUI_API ImGuiWindowSettings* CreateNewWindowSettings(const char* name); + IMGUI_API ImGuiWindowSettings* FindWindowSettings(ImGuiID id); + IMGUI_API ImGuiWindowSettings* FindOrCreateWindowSettings(const char* name); + IMGUI_API void AddSettingsHandler(const ImGuiSettingsHandler* handler); + IMGUI_API void RemoveSettingsHandler(const char* type_name); + IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name); + + // Localization + IMGUI_API void LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count); + inline const char* LocalizeGetMsg(ImGuiLocKey key) { ImGuiContext& g = *GImGui; const char* msg = g.LocalizationTable[key]; return msg ? msg : "*Missing Text*"; } + + // Scrolling + IMGUI_API void SetScrollX(ImGuiWindow* window, float scroll_x); + IMGUI_API void SetScrollY(ImGuiWindow* window, float scroll_y); + IMGUI_API void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio); + IMGUI_API void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio); + + // Early work-in-progress API (ScrollToItem() will become public) + IMGUI_API void ScrollToItem(ImGuiScrollFlags flags = 0); + IMGUI_API void ScrollToRect(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0); + IMGUI_API ImVec2 ScrollToRectEx(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0); +//#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& rect) { ScrollToRect(window, rect, ImGuiScrollFlags_KeepVisibleEdgeY); } +//#endif + + // Basic Accessors + inline ImGuiID GetItemID() { ImGuiContext& g = *GImGui; return g.LastItemData.ID; } // Get ID of last item (~~ often same ImGui::GetID(label) beforehand) + inline ImGuiItemStatusFlags GetItemStatusFlags(){ ImGuiContext& g = *GImGui; return g.LastItemData.StatusFlags; } + inline ImGuiItemFlags GetItemFlags() { ImGuiContext& g = *GImGui; return g.LastItemData.InFlags; } + inline ImGuiID GetActiveID() { ImGuiContext& g = *GImGui; return g.ActiveId; } + inline ImGuiID GetFocusID() { ImGuiContext& g = *GImGui; return g.NavId; } + IMGUI_API void SetActiveID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void SetFocusID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void ClearActiveID(); + IMGUI_API ImGuiID GetHoveredID(); + IMGUI_API void SetHoveredID(ImGuiID id); + IMGUI_API void KeepAliveID(ImGuiID id); + IMGUI_API void MarkItemEdited(ImGuiID id); // Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function. + IMGUI_API void PushOverrideID(ImGuiID id); // Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes) + IMGUI_API ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed); + + // Basic Helpers for widget code + IMGUI_API void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f); + inline void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f) { ItemSize(bb.GetSize(), text_baseline_y); } // FIXME: This is a misleading API since we expect CursorPos to be bb.Min. + IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL, ImGuiItemFlags extra_flags = 0); + IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id); + IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id); + IMGUI_API void SetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags status_flags, const ImRect& item_rect); + IMGUI_API ImVec2 CalcItemSize(ImVec2 size, float default_w, float default_h); + IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x); + IMGUI_API void PushMultiItemsWidths(int components, float width_full); + IMGUI_API bool IsItemToggledSelection(); // Was the last item selection toggled? (after Selectable(), TreeNode() etc. We only returns toggle _event_ in order to handle clipping correctly) + IMGUI_API ImVec2 GetContentRegionMaxAbs(); + IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); + + // Parameter stacks (shared) + IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled); + IMGUI_API void PopItemFlag(); + + // Logging/Capture + IMGUI_API void LogBegin(ImGuiLogType type, int auto_open_depth); // -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. + IMGUI_API void LogToBuffer(int auto_open_depth = -1); // Start logging/capturing to internal buffer + IMGUI_API void LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end = NULL); + IMGUI_API void LogSetNextTextDecoration(const char* prefix, const char* suffix); + + // Popups, Modals, Tooltips + IMGUI_API bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags); + IMGUI_API void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags = ImGuiPopupFlags_None); + IMGUI_API void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup); + IMGUI_API void ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup); + IMGUI_API void ClosePopupsExceptModals(); + IMGUI_API bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags); + IMGUI_API bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags); + IMGUI_API void BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags); + IMGUI_API ImRect GetPopupAllowedExtentRect(ImGuiWindow* window); + IMGUI_API ImGuiWindow* GetTopMostPopupModal(); + IMGUI_API ImGuiWindow* GetTopMostAndVisiblePopupModal(); + IMGUI_API ImVec2 FindBestWindowPosForPopup(ImGuiWindow* window); + IMGUI_API ImVec2 FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy); + + // Menus + IMGUI_API bool BeginViewportSideBar(const char* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags); + IMGUI_API bool BeginMenuEx(const char* label, const char* icon, bool enabled = true); + IMGUI_API bool MenuItemEx(const char* label, const char* icon, const char* shortcut = NULL, bool selected = false, bool enabled = true); + + // Combos + IMGUI_API bool BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags); + IMGUI_API bool BeginComboPreview(); + IMGUI_API void EndComboPreview(); + + // Gamepad/Keyboard Navigation + IMGUI_API void NavInitWindow(ImGuiWindow* window, bool force_reinit); + IMGUI_API void NavInitRequestApplyResult(); + IMGUI_API bool NavMoveRequestButNoResultYet(); + IMGUI_API void NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); + IMGUI_API void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); + IMGUI_API void NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result); + IMGUI_API void NavMoveRequestCancel(); + IMGUI_API void NavMoveRequestApplyResult(); + IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); + IMGUI_API void ActivateItem(ImGuiID id); // Remotely activate a button, checkbox, tree node etc. given its unique ID. activation is queued and processed on the next frame when the item is encountered again. + IMGUI_API void SetNavWindow(ImGuiWindow* window); + IMGUI_API void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel); + + // Inputs + // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. + inline bool IsNamedKey(ImGuiKey key) { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; } + inline bool IsNamedKeyOrModKey(ImGuiKey key) { return (key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END) || key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super; } + inline bool IsLegacyKey(ImGuiKey key) { return key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_LegacyNativeKey_END; } + inline bool IsKeyboardKey(ImGuiKey key) { return key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END; } + inline bool IsGamepadKey(ImGuiKey key) { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; } + inline bool IsMouseKey(ImGuiKey key) { return key >= ImGuiKey_Mouse_BEGIN && key < ImGuiKey_Mouse_END; } + inline bool IsAliasKey(ImGuiKey key) { return key >= ImGuiKey_Aliases_BEGIN && key < ImGuiKey_Aliases_END; } + inline ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key) + { + if (key == ImGuiMod_Ctrl) return ImGuiKey_ReservedForModCtrl; + if (key == ImGuiMod_Shift) return ImGuiKey_ReservedForModShift; + if (key == ImGuiMod_Alt) return ImGuiKey_ReservedForModAlt; + if (key == ImGuiMod_Super) return ImGuiKey_ReservedForModSuper; + return key; + } + + IMGUI_API ImGuiKeyData* GetKeyData(ImGuiKey key); + IMGUI_API void GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size); + inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); } + IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f); + IMGUI_API ImVec2 GetKeyVector2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down); + IMGUI_API float GetNavTweakPressedAmount(ImGuiAxis axis); + IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); + IMGUI_API void GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate); + IMGUI_API void SetActiveIdUsingAllKeyboardKeys(); + inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } + + // [EXPERIMENTAL] Low-Level: Key/Input Ownership + // - The idea is that instead of "eating" a given input, we can link to an owner id. + // - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). + // - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). + // - Input ownership is automatically released on the frame after a key is released. Therefore: + // - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). + // - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). + // - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. + // - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. + // Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. + IMGUI_API ImGuiID GetKeyOwner(ImGuiKey key); + IMGUI_API void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags = 0); // Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'. + IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id); // Test that key is either not owned, either owned by 'owner_id' + inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiKey key) { if (key & ImGuiMod_Mask_) key = ConvertSingleModFlagToKey(key); IM_ASSERT(IsNamedKey(key)); return &GImGui->KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; } + + // [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership + // - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. + // - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) + // - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. + // Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. + // - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. + IMGUI_API bool IsKeyDown(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); // Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. + IMGUI_API bool IsKeyReleased(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id); + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id); + + // [EXPERIMENTAL] Shortcut Routing + // - ImGuiKeyChord = a ImGuiKey optionally OR-red with ImGuiMod_Alt/ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Super. + // ImGuiKey_C (accepted by functions taking ImGuiKey or ImGuiKeyChord) + // ImGuiKey_C | ImGuiMod_Ctrl (accepted by functions taking ImGuiKeyChord) + // ONLY ImGuiMod_XXX values are legal to 'OR' with an ImGuiKey. You CANNOT 'OR' two ImGuiKey values. + // - When using one of the routing flags (e.g. ImGuiInputFlags_RouteFocused): routes requested ahead of time given a chord (key + modifiers) and a routing policy. + // - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. + // - Route is granted to a single owner. When multiple requests are made we have policies to select the winning route. + // - Multiple read sites may use the same owner id and will all get the granted route. + // - For routing: when owner_id is 0 we use the current Focus Scope ID as a default owner in order to identify our location. + IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id); + IMGUI_API ImGuiKeyRoutingData* GetShortcutRoutingData(ImGuiKeyChord key_chord); + + // Docking + // (some functions are only declared in imgui.cpp, see Docking section) + IMGUI_API void DockContextInitialize(ImGuiContext* ctx); + IMGUI_API void DockContextShutdown(ImGuiContext* ctx); + IMGUI_API void DockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs); // Use root_id==0 to clear all + IMGUI_API void DockContextRebuildNodes(ImGuiContext* ctx); + IMGUI_API void DockContextNewFrameUpdateUndocking(ImGuiContext* ctx); + IMGUI_API void DockContextNewFrameUpdateDocking(ImGuiContext* ctx); + IMGUI_API void DockContextEndFrame(ImGuiContext* ctx); + IMGUI_API ImGuiID DockContextGenNodeID(ImGuiContext* ctx); + IMGUI_API void DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer); + IMGUI_API void DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window); + IMGUI_API void DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); + IMGUI_API bool DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos); + IMGUI_API ImGuiDockNode*DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id); + IMGUI_API bool DockNodeBeginAmendTabBar(ImGuiDockNode* node); + IMGUI_API void DockNodeEndAmendTabBar(); + inline ImGuiDockNode* DockNodeGetRootNode(ImGuiDockNode* node) { while (node->ParentNode) node = node->ParentNode; return node; } + inline bool DockNodeIsInHierarchyOf(ImGuiDockNode* node, ImGuiDockNode* parent) { while (node) { if (node == parent) return true; node = node->ParentNode; } return false; } + inline int DockNodeGetDepth(const ImGuiDockNode* node) { int depth = 0; while (node->ParentNode) { node = node->ParentNode; depth++; } return depth; } + inline ImGuiID DockNodeGetWindowMenuButtonId(const ImGuiDockNode* node) { return ImHashStr("#COLLAPSE", 0, node->ID); } + inline ImGuiDockNode* GetWindowDockNode() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DockNode; } + IMGUI_API bool GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window); + IMGUI_API void BeginDocked(ImGuiWindow* window, bool* p_open); + IMGUI_API void BeginDockableDragDropSource(ImGuiWindow* window); + IMGUI_API void BeginDockableDragDropTarget(ImGuiWindow* window); + IMGUI_API void SetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond); + + // Docking - Builder function needs to be generally called before the node is used/submitted. + // - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. + // - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. + // - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). + // You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. + // - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. + // - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure + // to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. + // - Call DockBuilderFinish() after you are done. + IMGUI_API void DockBuilderDockWindow(const char* window_name, ImGuiID node_id); + IMGUI_API ImGuiDockNode*DockBuilderGetNode(ImGuiID node_id); + inline ImGuiDockNode* DockBuilderGetCentralNode(ImGuiID node_id) { ImGuiDockNode* node = DockBuilderGetNode(node_id); if (!node) return NULL; return DockNodeGetRootNode(node)->CentralNode; } + IMGUI_API ImGuiID DockBuilderAddNode(ImGuiID node_id = 0, ImGuiDockNodeFlags flags = 0); + IMGUI_API void DockBuilderRemoveNode(ImGuiID node_id); // Remove node and all its child, undock all windows + IMGUI_API void DockBuilderRemoveNodeDockedWindows(ImGuiID node_id, bool clear_settings_refs = true); + IMGUI_API void DockBuilderRemoveNodeChildNodes(ImGuiID node_id); // Remove all split/hierarchy. All remaining docked windows will be re-docked to the remaining root node (node_id). + IMGUI_API void DockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos); + IMGUI_API void DockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size); + IMGUI_API ImGuiID DockBuilderSplitNode(ImGuiID node_id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir); // Create 2 child nodes in this parent node. + IMGUI_API void DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector* in_window_remap_pairs); + IMGUI_API void DockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector* out_node_remap_pairs); + IMGUI_API void DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name); + IMGUI_API void DockBuilderFinish(ImGuiID node_id); + + // [EXPERIMENTAL] Focus Scope + // This is generally used to identify a unique input location (for e.g. a selection set) + // There is one per window (automatically set in Begin), but: + // - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set. + // So in order to identify a set multiple lists in same window may each need a focus scope. + // If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope() + // - Shortcut routing also use focus scope as a default location identifier if an owner is not provided. + // We don't use the ID Stack for this as it is common to want them separate. + IMGUI_API void PushFocusScope(ImGuiID id); + IMGUI_API void PopFocusScope(); + inline ImGuiID GetCurrentFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentFocusScopeId; } // Focus scope we are outputting into, set by PushFocusScope() + + // Drag and Drop + IMGUI_API bool IsDragDropActive(); + IMGUI_API bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id); + IMGUI_API void ClearDragDrop(); + IMGUI_API bool IsDragDropPayloadBeingAccepted(); + IMGUI_API void RenderDragDropTargetRect(const ImRect& bb); + + // Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) + IMGUI_API void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect); + IMGUI_API void BeginColumns(const char* str_id, int count, ImGuiOldColumnFlags flags = 0); // setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). + IMGUI_API void EndColumns(); // close columns + IMGUI_API void PushColumnClipRect(int column_index); + IMGUI_API void PushColumnsBackground(); + IMGUI_API void PopColumnsBackground(); + IMGUI_API ImGuiID GetColumnsID(const char* str_id, int count); + IMGUI_API ImGuiOldColumns* FindOrCreateColumns(ImGuiWindow* window, ImGuiID id); + IMGUI_API float GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm); + IMGUI_API float GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset); + + // Tables: Candidates for public API + IMGUI_API void TableOpenContextMenu(int column_n = -1); + IMGUI_API void TableSetColumnWidth(int column_n, float width); + IMGUI_API void TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs); + IMGUI_API int TableGetHoveredColumn(); // May use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead. Return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. + IMGUI_API float TableGetHeaderRowHeight(); + IMGUI_API void TablePushBackgroundChannel(); + IMGUI_API void TablePopBackgroundChannel(); + + // Tables: Internals + inline ImGuiTable* GetCurrentTable() { ImGuiContext& g = *GImGui; return g.CurrentTable; } + IMGUI_API ImGuiTable* TableFindByID(ImGuiID id); + IMGUI_API bool BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0, 0), float inner_width = 0.0f); + IMGUI_API void TableBeginInitMemory(ImGuiTable* table, int columns_count); + IMGUI_API void TableBeginApplyRequests(ImGuiTable* table); + IMGUI_API void TableSetupDrawChannels(ImGuiTable* table); + IMGUI_API void TableUpdateLayout(ImGuiTable* table); + IMGUI_API void TableUpdateBorders(ImGuiTable* table); + IMGUI_API void TableUpdateColumnsWeightFromWidth(ImGuiTable* table); + IMGUI_API void TableDrawBorders(ImGuiTable* table); + IMGUI_API void TableDrawContextMenu(ImGuiTable* table); + IMGUI_API bool TableBeginContextMenuPopup(ImGuiTable* table); + IMGUI_API void TableMergeDrawChannels(ImGuiTable* table); + inline ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instance_no) { if (instance_no == 0) return &table->InstanceDataFirst; return &table->InstanceDataExtra[instance_no - 1]; } + IMGUI_API void TableSortSpecsSanitize(ImGuiTable* table); + IMGUI_API void TableSortSpecsBuild(ImGuiTable* table); + IMGUI_API ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column); + IMGUI_API void TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column); + IMGUI_API float TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column); + IMGUI_API void TableBeginRow(ImGuiTable* table); + IMGUI_API void TableEndRow(ImGuiTable* table); + IMGUI_API void TableBeginCell(ImGuiTable* table, int column_n); + IMGUI_API void TableEndCell(ImGuiTable* table); + IMGUI_API ImRect TableGetCellBgRect(const ImGuiTable* table, int column_n); + IMGUI_API const char* TableGetColumnName(const ImGuiTable* table, int column_n); + IMGUI_API ImGuiID TableGetColumnResizeID(const ImGuiTable* table, int column_n, int instance_no = 0); + IMGUI_API float TableGetMaxColumnWidth(const ImGuiTable* table, int column_n); + IMGUI_API void TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n); + IMGUI_API void TableSetColumnWidthAutoAll(ImGuiTable* table); + IMGUI_API void TableRemove(ImGuiTable* table); + IMGUI_API void TableGcCompactTransientBuffers(ImGuiTable* table); + IMGUI_API void TableGcCompactTransientBuffers(ImGuiTableTempData* table); + IMGUI_API void TableGcCompactSettings(); + + // Tables: Settings + IMGUI_API void TableLoadSettings(ImGuiTable* table); + IMGUI_API void TableSaveSettings(ImGuiTable* table); + IMGUI_API void TableResetSettings(ImGuiTable* table); + IMGUI_API ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table); + IMGUI_API void TableSettingsAddSettingsHandler(); + IMGUI_API ImGuiTableSettings* TableSettingsCreate(ImGuiID id, int columns_count); + IMGUI_API ImGuiTableSettings* TableSettingsFindByID(ImGuiID id); + + // Tab Bars + IMGUI_API bool BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& bb, ImGuiTabBarFlags flags, ImGuiDockNode* dock_node); + IMGUI_API ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar); + IMGUI_API void TabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window); + IMGUI_API void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API void TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); + IMGUI_API void TabBarQueueReorder(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int offset); + IMGUI_API void TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, ImVec2 mouse_pos); + IMGUI_API bool TabBarProcessReorder(ImGuiTabBar* tab_bar); + IMGUI_API bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window); + IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker); + IMGUI_API ImVec2 TabItemCalcSize(ImGuiWindow* window); + IMGUI_API void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col); + IMGUI_API void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped); + + // Render helpers + // AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. + // NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) + IMGUI_API void RenderText(ImVec2 pos, const char* text, const char* text_end = NULL, bool hide_text_after_hash = true); + IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width); + IMGUI_API void RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known); + IMGUI_API void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border = true, float rounding = 0.0f); + IMGUI_API void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f); + IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0); + IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault); // Navigation highlight + IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text. + IMGUI_API void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); + + // Render helpers (those functions don't access any ImGui state!) + IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f); + IMGUI_API void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); + IMGUI_API void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); + IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); + IMGUI_API void RenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col); + IMGUI_API void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); + IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding); + IMGUI_API ImDrawFlags CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold); + + // Widgets + IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0); + IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0); + IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos); + IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_node); + IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0); + IMGUI_API void Scrollbar(ImGuiAxis axis); + IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags flags); + IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col); + IMGUI_API ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowResizeCornerID(ImGuiWindow* window, int n); // 0..3: corners + IMGUI_API ImGuiID GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir); + IMGUI_API void SeparatorEx(ImGuiSeparatorFlags flags); + IMGUI_API bool CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value); + IMGUI_API bool CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value); + + // Widgets low-level behaviors + IMGUI_API bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0); + IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); + IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f, ImU32 bg_col = 0); + IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL); + IMGUI_API void TreePushOverrideID(ImGuiID id); + IMGUI_API void TreeNodeSetOpen(ImGuiID id, bool open); + IMGUI_API bool TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags); // Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging. + + // Template functions are instantiated in imgui_widgets.cpp for a finite number of types. + // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036). + // e.g. " extern template IMGUI_API float RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, float v); " + template IMGUI_API float ScaleRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags); + template IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); + template IMGUI_API bool CheckboxFlagsT(const char* label, T* flags, T flags_value); + + // Data type helpers + IMGUI_API const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type); + IMGUI_API int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); + IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format); + IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); + + // InputText + IMGUI_API bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); + IMGUI_API bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL); + inline bool TempInputIsActive(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.ActiveId == id && g.TempInputId == id); } + inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (id != 0 && g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active + + // Color + IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags); + + // Plot + IMGUI_API int PlotEx(ImGuiPlotType plot_type, 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 frame_size); + + // Shade functions (write over already created vertices) + IMGUI_API void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1); + IMGUI_API void ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp); + + // Garbage collection + IMGUI_API void GcCompactTransientMiscBuffers(); + IMGUI_API void GcCompactTransientWindowBuffers(ImGuiWindow* window); + IMGUI_API void GcAwakeTransientWindowBuffers(ImGuiWindow* window); + + // Debug Log + IMGUI_API void DebugLog(const char* fmt, ...) IM_FMTARGS(1); + IMGUI_API void DebugLogV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Debug Tools + IMGUI_API void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + IMGUI_API void DebugLocateItem(ImGuiID target_id); // Call sparingly: only 1 at the same time! + IMGUI_API void DebugLocateItemOnHover(ImGuiID target_id); // Only call on reaction to a mouse Hover: because only 1 at the same time! + IMGUI_API void DebugLocateItemResolveWithLastItem(); + inline void DebugDrawItemRect(ImU32 col = IM_COL32(255,0,0,255)) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; GetForegroundDrawList(window)->AddRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, col); } + inline void DebugStartItemPicker() { ImGuiContext& g = *GImGui; g.DebugItemPickerActive = true; } + IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); + IMGUI_API void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end); + IMGUI_API void DebugNodeColumns(ImGuiOldColumns* columns); + IMGUI_API void DebugNodeDockNode(ImGuiDockNode* node, const char* label); + IMGUI_API void DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label); + IMGUI_API void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb); + IMGUI_API void DebugNodeFont(ImFont* font); + IMGUI_API void DebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph); + IMGUI_API void DebugNodeStorage(ImGuiStorage* storage, const char* label); + IMGUI_API void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label); + IMGUI_API void DebugNodeTable(ImGuiTable* table); + IMGUI_API void DebugNodeTableSettings(ImGuiTableSettings* settings); + IMGUI_API void DebugNodeInputTextState(ImGuiInputTextState* state); + IMGUI_API void DebugNodeWindow(ImGuiWindow* window, const char* label); + IMGUI_API void DebugNodeWindowSettings(ImGuiWindowSettings* settings); + IMGUI_API void DebugNodeWindowsList(ImVector* windows, const char* label); + IMGUI_API void DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack); + IMGUI_API void DebugNodeViewport(ImGuiViewportP* viewport); + IMGUI_API void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb); + + // Obsolete functions +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void SetItemUsingMouseWheel() { SetItemKeyOwner(ImGuiKey_MouseWheelY); } // Changed in 1.89 + inline bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0) { return TreeNodeUpdateNextOpen(id, flags); } // Renamed in 1.89 + + // Refactored focus/nav/tabbing system in 1.82 and 1.84. If you have old/custom copy-and-pasted widgets that used FocusableItemRegister(): + // (Old) IMGUI_VERSION_NUM < 18209: using 'ItemAdd(....)' and 'bool tab_focused = FocusableItemRegister(...)' + // (Old) IMGUI_VERSION_NUM >= 18209: using 'ItemAdd(..., ImGuiItemAddFlags_Focusable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_Focused) != 0' + // (New) IMGUI_VERSION_NUM >= 18413: using 'ItemAdd(..., ImGuiItemFlags_Inputable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_FocusedTabbing) != 0 || g.NavActivateInputId == id' (WIP) + // Widget code are simplified as there's no need to call FocusableItemUnregister() while managing the transition from regular widget to TempInputText() + inline bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id) { IM_ASSERT(0); IM_UNUSED(window); IM_UNUSED(id); return false; } // -> pass ImGuiItemAddFlags_Inputable flag to ItemAdd() + inline void FocusableItemUnregister(ImGuiWindow* window) { IM_ASSERT(0); IM_UNUSED(window); } // -> unnecessary: TempInputText() uses ImGuiInputTextFlags_MergedItem +#endif +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { IM_ASSERT(IsNamedKey(key)); return IsKeyPressed(key, repeat); } // Removed in 1.87: Mapping from named key is always identity! +#endif + +} // namespace ImGui + + +//----------------------------------------------------------------------------- +// [SECTION] ImFontAtlas internal API +//----------------------------------------------------------------------------- + +// This structure is likely to evolve as we add support for incremental atlas updates +struct ImFontBuilderIO +{ + bool (*FontBuilder_Build)(ImFontAtlas* atlas); +}; + +// Helper for font builder +#ifdef IMGUI_ENABLE_STB_TRUETYPE +IMGUI_API const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype(); +#endif +IMGUI_API void ImFontAtlasBuildInit(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); +IMGUI_API void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); +IMGUI_API void ImFontAtlasBuildFinish(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value); +IMGUI_API void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value); +IMGUI_API void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_multiply_factor); +IMGUI_API void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride); + +//----------------------------------------------------------------------------- +// [SECTION] Test Engine specific hooks (imgui_test_engine) +//----------------------------------------------------------------------------- + +#ifdef IMGUI_ENABLE_TEST_ENGINE +extern void ImGuiTestEngineHook_ItemAdd(ImGuiContext* ctx, const ImRect& bb, ImGuiID id); +extern void ImGuiTestEngineHook_ItemInfo(ImGuiContext* ctx, ImGuiID id, const char* label, ImGuiItemStatusFlags flags); +extern void ImGuiTestEngineHook_Log(ImGuiContext* ctx, const char* fmt, ...); +extern const char* ImGuiTestEngine_FindItemDebugLabel(ImGuiContext* ctx, ImGuiID id); + +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemAdd(&g, _BB, _ID) // Register item bounding box +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register item label and status flags (optional) +#define IMGUI_TEST_ENGINE_LOG(_FMT,...) if (g.TestEngineHookItems) ImGuiTestEngineHook_Log(&g, _FMT, __VA_ARGS__) // Custom log entry from user land into test log +#else +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) ((void)0) +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) ((void)g) +#endif + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_tables.cpp b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_tables.cpp new file mode 100644 index 000000000..503c098e9 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_tables.cpp @@ -0,0 +1,4084 @@ +// dear imgui, v1.89.1 +// (tables and columns code) + +/* + +Index of this file: + +// [SECTION] Commentary +// [SECTION] Header mess +// [SECTION] Tables: Main code +// [SECTION] Tables: Simple accessors +// [SECTION] Tables: Row changes +// [SECTION] Tables: Columns changes +// [SECTION] Tables: Columns width management +// [SECTION] Tables: Drawing +// [SECTION] Tables: Sorting +// [SECTION] Tables: Headers +// [SECTION] Tables: Context Menu +// [SECTION] Tables: Settings (.ini data) +// [SECTION] Tables: Garbage Collection +// [SECTION] Tables: Debugging +// [SECTION] Columns, BeginColumns, EndColumns, etc. + +*/ + +// Navigating this file: +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. + +//----------------------------------------------------------------------------- +// [SECTION] Commentary +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Typical tables call flow: (root level is generally public API): +//----------------------------------------------------------------------------- +// - BeginTable() user begin into a table +// | BeginChild() - (if ScrollX/ScrollY is set) +// | TableBeginInitMemory() - first time table is used +// | TableResetSettings() - on settings reset +// | TableLoadSettings() - on settings load +// | TableBeginApplyRequests() - apply queued resizing/reordering/hiding requests +// | - TableSetColumnWidth() - apply resizing width (for mouse resize, often requested by previous frame) +// | - TableUpdateColumnsWeightFromWidth()- recompute columns weights (of stretch columns) from their respective width +// - TableSetupColumn() user submit columns details (optional) +// - TableSetupScrollFreeze() user submit scroll freeze information (optional) +//----------------------------------------------------------------------------- +// - TableUpdateLayout() [Internal] followup to BeginTable(): setup everything: widths, columns positions, clipping rectangles. Automatically called by the FIRST call to TableNextRow() or TableHeadersRow(). +// | TableSetupDrawChannels() - setup ImDrawList channels +// | TableUpdateBorders() - detect hovering columns for resize, ahead of contents submission +// | TableDrawContextMenu() - draw right-click context menu +//----------------------------------------------------------------------------- +// - TableHeadersRow() or TableHeader() user submit a headers row (optional) +// | TableSortSpecsClickColumn() - when left-clicked: alter sort order and sort direction +// | TableOpenContextMenu() - when right-clicked: trigger opening of the default context menu +// - TableGetSortSpecs() user queries updated sort specs (optional, generally after submitting headers) +// - TableNextRow() user begin into a new row (also automatically called by TableHeadersRow()) +// | TableEndRow() - finish existing row +// | TableBeginRow() - add a new row +// - TableSetColumnIndex() / TableNextColumn() user begin into a cell +// | TableEndCell() - close existing column/cell +// | TableBeginCell() - enter into current column/cell +// - [...] user emit contents +//----------------------------------------------------------------------------- +// - EndTable() user ends the table +// | TableDrawBorders() - draw outer borders, inner vertical borders +// | TableMergeDrawChannels() - merge draw channels if clipping isn't required +// | EndChild() - (if ScrollX/ScrollY is set) +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// TABLE SIZING +//----------------------------------------------------------------------------- +// (Read carefully because this is subtle but it does make sense!) +//----------------------------------------------------------------------------- +// About 'outer_size': +// Its meaning needs to differ slightly depending on if we are using ScrollX/ScrollY flags. +// Default value is ImVec2(0.0f, 0.0f). +// X +// - outer_size.x <= 0.0f -> Right-align from window/work-rect right-most edge. With -FLT_MIN or 0.0f will align exactly on right-most edge. +// - outer_size.x > 0.0f -> Set Fixed width. +// Y with ScrollX/ScrollY disabled: we output table directly in current window +// - outer_size.y < 0.0f -> Bottom-align (but will auto extend, unless _NoHostExtendY is set). Not meaningful is parent window can vertically scroll. +// - outer_size.y = 0.0f -> No minimum height (but will auto extend, unless _NoHostExtendY is set) +// - outer_size.y > 0.0f -> Set Minimum height (but will auto extend, unless _NoHostExtenY is set) +// Y with ScrollX/ScrollY enabled: using a child window for scrolling +// - outer_size.y < 0.0f -> Bottom-align. Not meaningful is parent window can vertically scroll. +// - outer_size.y = 0.0f -> Bottom-align, consistent with BeginChild(). Not recommended unless table is last item in parent window. +// - outer_size.y > 0.0f -> Set Exact height. Recommended when using Scrolling on any axis. +//----------------------------------------------------------------------------- +// Outer size is also affected by the NoHostExtendX/NoHostExtendY flags. +// Important to that note how the two flags have slightly different behaviors! +// - ImGuiTableFlags_NoHostExtendX -> Make outer width auto-fit to columns (overriding outer_size.x value). Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. +// - ImGuiTableFlags_NoHostExtendY -> Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY is disabled. Data below the limit will be clipped and not visible. +// In theory ImGuiTableFlags_NoHostExtendY could be the default and any non-scrolling tables with outer_size.y != 0.0f would use exact height. +// This would be consistent but perhaps less useful and more confusing (as vertically clipped items are not easily noticeable) +//----------------------------------------------------------------------------- +// About 'inner_width': +// With ScrollX disabled: +// - inner_width -> *ignored* +// With ScrollX enabled: +// - inner_width < 0.0f -> *illegal* fit in known width (right align from outer_size.x) <-- weird +// - inner_width = 0.0f -> fit in outer_width: Fixed size columns will take space they need (if avail, otherwise shrink down), Stretch columns becomes Fixed columns. +// - inner_width > 0.0f -> override scrolling width, generally to be larger than outer_size.x. Fixed column take space they need (if avail, otherwise shrink down), Stretch columns share remaining space! +//----------------------------------------------------------------------------- +// Details: +// - If you want to use Stretch columns with ScrollX, you generally need to specify 'inner_width' otherwise the concept +// of "available space" doesn't make sense. +// - Even if not really useful, we allow 'inner_width < outer_size.x' for consistency and to facilitate understanding +// of what the value does. +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// COLUMNS SIZING POLICIES +//----------------------------------------------------------------------------- +// About overriding column sizing policy and width/weight with TableSetupColumn(): +// We use a default parameter of 'init_width_or_weight == -1'. +// - with ImGuiTableColumnFlags_WidthFixed, init_width <= 0 (default) --> width is automatic +// - with ImGuiTableColumnFlags_WidthFixed, init_width > 0 (explicit) --> width is custom +// - with ImGuiTableColumnFlags_WidthStretch, init_weight <= 0 (default) --> weight is 1.0f +// - with ImGuiTableColumnFlags_WidthStretch, init_weight > 0 (explicit) --> weight is custom +// Widths are specified _without_ CellPadding. If you specify a width of 100.0f, the column will be cover (100.0f + Padding * 2.0f) +// and you can fit a 100.0f wide item in it without clipping and with full padding. +//----------------------------------------------------------------------------- +// About default sizing policy (if you don't specify a ImGuiTableColumnFlags_WidthXXXX flag) +// - with Table policy ImGuiTableFlags_SizingFixedFit --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is equal to contents width +// - with Table policy ImGuiTableFlags_SizingFixedSame --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is max of all contents width +// - with Table policy ImGuiTableFlags_SizingStretchSame --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is 1.0f +// - with Table policy ImGuiTableFlags_SizingStretchWeight --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is proportional to contents +// Default Width and default Weight can be overridden when calling TableSetupColumn(). +//----------------------------------------------------------------------------- +// About mixing Fixed/Auto and Stretch columns together: +// - the typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. +// - using mixed policies with ScrollX does not make much sense, as using Stretch columns with ScrollX does not make much sense in the first place! +// that is, unless 'inner_width' is passed to BeginTable() to explicitly provide a total width to layout columns in. +// - when using ImGuiTableFlags_SizingFixedSame with mixed columns, only the Fixed/Auto columns will match their widths to the width of the maximum contents. +// - when using ImGuiTableFlags_SizingStretchSame with mixed columns, only the Stretch columns will match their weight/widths. +//----------------------------------------------------------------------------- +// About using column width: +// If a column is manual resizable or has a width specified with TableSetupColumn(): +// - you may use GetContentRegionAvail().x to query the width available in a given column. +// - right-side alignment features such as SetNextItemWidth(-x) or PushItemWidth(-x) will rely on this width. +// If the column is not resizable and has no width specified with TableSetupColumn(): +// - its width will be automatic and be set to the max of items submitted. +// - therefore you generally cannot have ALL items of the columns use e.g. SetNextItemWidth(-FLT_MIN). +// - but if the column has one or more items of known/fixed size, this will become the reference width used by SetNextItemWidth(-FLT_MIN). +//----------------------------------------------------------------------------- + + +//----------------------------------------------------------------------------- +// TABLES CLIPPING/CULLING +//----------------------------------------------------------------------------- +// About clipping/culling of Rows in Tables: +// - For large numbers of rows, it is recommended you use ImGuiListClipper to only submit visible rows. +// ImGuiListClipper is reliant on the fact that rows are of equal height. +// See 'Demo->Tables->Vertical Scrolling' or 'Demo->Tables->Advanced' for a demo of using the clipper. +// - Note that auto-resizing columns don't play well with using the clipper. +// By default a table with _ScrollX but without _Resizable will have column auto-resize. +// So, if you want to use the clipper, make sure to either enable _Resizable, either setup columns width explicitly with _WidthFixed. +//----------------------------------------------------------------------------- +// About clipping/culling of Columns in Tables: +// - Both TableSetColumnIndex() and TableNextColumn() return true when the column is visible or performing +// width measurements. Otherwise, you may skip submitting the contents of a cell/column, BUT ONLY if you know +// it is not going to contribute to row height. +// In many situations, you may skip submitting contents for every column but one (e.g. the first one). +// - Case A: column is not hidden by user, and at least partially in sight (most common case). +// - Case B: column is clipped / out of sight (because of scrolling or parent ClipRect): TableNextColumn() return false as a hint but we still allow layout output. +// - Case C: column is hidden explicitly by the user (e.g. via the context menu, or _DefaultHide column flag, etc.). +// +// [A] [B] [C] +// TableNextColumn(): true false false -> [userland] when TableNextColumn() / TableSetColumnIndex() return false, user can skip submitting items but only if the column doesn't contribute to row height. +// SkipItems: false false true -> [internal] when SkipItems is true, most widgets will early out if submitted, resulting is no layout output. +// ClipRect: normal zero-width zero-width -> [internal] when ClipRect is zero, ItemAdd() will return false and most widgets will early out mid-way. +// ImDrawList output: normal dummy dummy -> [internal] when using the dummy channel, ImDrawList submissions (if any) will be wasted (because cliprect is zero-width anyway). +// +// - We need to distinguish those cases because non-hidden columns that are clipped outside of scrolling bounds should still contribute their height to the row. +// However, in the majority of cases, the contribution to row height is the same for all columns, or the tallest cells are known by the programmer. +//----------------------------------------------------------------------------- +// About clipping/culling of whole Tables: +// - Scrolling tables with a known outer size can be clipped earlier as BeginTable() will return false. +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif +#include "imgui_internal.h" + +// System includes +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') +#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Tables: Main code +//----------------------------------------------------------------------------- +// - TableFixFlags() [Internal] +// - TableFindByID() [Internal] +// - BeginTable() +// - BeginTableEx() [Internal] +// - TableBeginInitMemory() [Internal] +// - TableBeginApplyRequests() [Internal] +// - TableSetupColumnFlags() [Internal] +// - TableUpdateLayout() [Internal] +// - TableUpdateBorders() [Internal] +// - EndTable() +// - TableSetupColumn() +// - TableSetupScrollFreeze() +//----------------------------------------------------------------------------- + +// Configuration +static const int TABLE_DRAW_CHANNEL_BG0 = 0; +static const int TABLE_DRAW_CHANNEL_BG2_FROZEN = 1; +static const int TABLE_DRAW_CHANNEL_NOCLIP = 2; // When using ImGuiTableFlags_NoClip (this becomes the last visible channel) +static const float TABLE_BORDER_SIZE = 1.0f; // FIXME-TABLE: Currently hard-coded because of clipping assumptions with outer borders rendering. +static const float TABLE_RESIZE_SEPARATOR_HALF_THICKNESS = 4.0f; // Extend outside inner borders. +static const float TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER = 0.06f; // Delay/timer before making the hover feedback (color+cursor) visible because tables/columns tends to be more cramped. + +// Helper +inline ImGuiTableFlags TableFixFlags(ImGuiTableFlags flags, ImGuiWindow* outer_window) +{ + // Adjust flags: set default sizing policy + if ((flags & ImGuiTableFlags_SizingMask_) == 0) + flags |= ((flags & ImGuiTableFlags_ScrollX) || (outer_window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) ? ImGuiTableFlags_SizingFixedFit : ImGuiTableFlags_SizingStretchSame; + + // Adjust flags: enable NoKeepColumnsVisible when using ImGuiTableFlags_SizingFixedSame + if ((flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableFlags_NoKeepColumnsVisible; + + // Adjust flags: enforce borders when resizable + if (flags & ImGuiTableFlags_Resizable) + flags |= ImGuiTableFlags_BordersInnerV; + + // Adjust flags: disable NoHostExtendX/NoHostExtendY if we have any scrolling going on + if (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) + flags &= ~(ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_NoHostExtendY); + + // Adjust flags: NoBordersInBodyUntilResize takes priority over NoBordersInBody + if (flags & ImGuiTableFlags_NoBordersInBodyUntilResize) + flags &= ~ImGuiTableFlags_NoBordersInBody; + + // Adjust flags: disable saved settings if there's nothing to save + if ((flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Sortable)) == 0) + flags |= ImGuiTableFlags_NoSavedSettings; + + // Inherit _NoSavedSettings from top-level window (child windows always have _NoSavedSettings set) + if (outer_window->RootWindow->Flags & ImGuiWindowFlags_NoSavedSettings) + flags |= ImGuiTableFlags_NoSavedSettings; + + return flags; +} + +ImGuiTable* ImGui::TableFindByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + return g.Tables.GetByKey(id); +} + +// Read about "TABLE SIZING" at the top of this file. +bool ImGui::BeginTable(const char* str_id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) +{ + ImGuiID id = GetID(str_id); + return BeginTableEx(str_id, id, columns_count, flags, outer_size, inner_width); +} + +bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* outer_window = GetCurrentWindow(); + if (outer_window->SkipItems) // Consistent with other tables + beneficial side effect that assert on miscalling EndTable() will be more visible. + return false; + + // Sanity checks + IM_ASSERT(columns_count > 0 && columns_count <= IMGUI_TABLE_MAX_COLUMNS && "Only 1..64 columns allowed!"); + if (flags & ImGuiTableFlags_ScrollX) + IM_ASSERT(inner_width >= 0.0f); + + // If an outer size is specified ahead we will be able to early out when not visible. Exact clipping rules may evolve. + const bool use_child_window = (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) != 0; + const ImVec2 avail_size = GetContentRegionAvail(); + ImVec2 actual_outer_size = CalcItemSize(outer_size, ImMax(avail_size.x, 1.0f), use_child_window ? ImMax(avail_size.y, 1.0f) : 0.0f); + ImRect outer_rect(outer_window->DC.CursorPos, outer_window->DC.CursorPos + actual_outer_size); + if (use_child_window && IsClippedEx(outer_rect, 0)) + { + ItemSize(outer_rect); + return false; + } + + // Acquire storage for the table + ImGuiTable* table = g.Tables.GetOrAddByKey(id); + const int instance_no = (table->LastFrameActive != g.FrameCount) ? 0 : table->InstanceCurrent + 1; + const ImGuiID instance_id = id + instance_no; + const ImGuiTableFlags table_last_flags = table->Flags; + if (instance_no > 0) + IM_ASSERT(table->ColumnsCount == columns_count && "BeginTable(): Cannot change columns count mid-frame while preserving same ID"); + + // Acquire temporary buffers + const int table_idx = g.Tables.GetIndex(table); + if (++g.TablesTempDataStacked > g.TablesTempData.Size) + g.TablesTempData.resize(g.TablesTempDataStacked, ImGuiTableTempData()); + ImGuiTableTempData* temp_data = table->TempData = &g.TablesTempData[g.TablesTempDataStacked - 1]; + temp_data->TableIndex = table_idx; + table->DrawSplitter = &table->TempData->DrawSplitter; + table->DrawSplitter->Clear(); + + // Fix flags + table->IsDefaultSizingPolicy = (flags & ImGuiTableFlags_SizingMask_) == 0; + flags = TableFixFlags(flags, outer_window); + + // Initialize + table->ID = id; + table->Flags = flags; + table->InstanceCurrent = (ImS16)instance_no; + table->LastFrameActive = g.FrameCount; + table->OuterWindow = table->InnerWindow = outer_window; + table->ColumnsCount = columns_count; + table->IsLayoutLocked = false; + table->InnerWidth = inner_width; + temp_data->UserOuterSize = outer_size; + if (instance_no > 0 && table->InstanceDataExtra.Size < instance_no) + table->InstanceDataExtra.push_back(ImGuiTableInstanceData()); + + // When not using a child window, WorkRect.Max will grow as we append contents. + if (use_child_window) + { + // Ensure no vertical scrollbar appears if we only want horizontal one, to make flag consistent + // (we have no other way to disable vertical scrollbar of a window while keeping the horizontal one showing) + ImVec2 override_content_size(FLT_MAX, FLT_MAX); + if ((flags & ImGuiTableFlags_ScrollX) && !(flags & ImGuiTableFlags_ScrollY)) + override_content_size.y = FLT_MIN; + + // Ensure specified width (when not specified, Stretched columns will act as if the width == OuterWidth and + // never lead to any scrolling). We don't handle inner_width < 0.0f, we could potentially use it to right-align + // based on the right side of the child window work rect, which would require knowing ahead if we are going to + // have decoration taking horizontal spaces (typically a vertical scrollbar). + if ((flags & ImGuiTableFlags_ScrollX) && inner_width > 0.0f) + override_content_size.x = inner_width; + + if (override_content_size.x != FLT_MAX || override_content_size.y != FLT_MAX) + SetNextWindowContentSize(ImVec2(override_content_size.x != FLT_MAX ? override_content_size.x : 0.0f, override_content_size.y != FLT_MAX ? override_content_size.y : 0.0f)); + + // Reset scroll if we are reactivating it + if ((table_last_flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) == 0) + SetNextWindowScroll(ImVec2(0.0f, 0.0f)); + + // Create scrolling region (without border and zero window padding) + ImGuiWindowFlags child_flags = (flags & ImGuiTableFlags_ScrollX) ? ImGuiWindowFlags_HorizontalScrollbar : ImGuiWindowFlags_None; + BeginChildEx(name, instance_id, outer_rect.GetSize(), false, child_flags); + table->InnerWindow = g.CurrentWindow; + table->WorkRect = table->InnerWindow->WorkRect; + table->OuterRect = table->InnerWindow->Rect(); + table->InnerRect = table->InnerWindow->InnerRect; + IM_ASSERT(table->InnerWindow->WindowPadding.x == 0.0f && table->InnerWindow->WindowPadding.y == 0.0f && table->InnerWindow->WindowBorderSize == 0.0f); + } + else + { + // For non-scrolling tables, WorkRect == OuterRect == InnerRect. + // But at this point we do NOT have a correct value for .Max.y (unless a height has been explicitly passed in). It will only be updated in EndTable(). + table->WorkRect = table->OuterRect = table->InnerRect = outer_rect; + } + + // Push a standardized ID for both child-using and not-child-using tables + PushOverrideID(instance_id); + + // Backup a copy of host window members we will modify + ImGuiWindow* inner_window = table->InnerWindow; + table->HostIndentX = inner_window->DC.Indent.x; + table->HostClipRect = inner_window->ClipRect; + table->HostSkipItems = inner_window->SkipItems; + temp_data->HostBackupWorkRect = inner_window->WorkRect; + temp_data->HostBackupParentWorkRect = inner_window->ParentWorkRect; + temp_data->HostBackupColumnsOffset = outer_window->DC.ColumnsOffset; + temp_data->HostBackupPrevLineSize = inner_window->DC.PrevLineSize; + temp_data->HostBackupCurrLineSize = inner_window->DC.CurrLineSize; + temp_data->HostBackupCursorMaxPos = inner_window->DC.CursorMaxPos; + temp_data->HostBackupItemWidth = outer_window->DC.ItemWidth; + temp_data->HostBackupItemWidthStackSize = outer_window->DC.ItemWidthStack.Size; + inner_window->DC.PrevLineSize = inner_window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + + // Padding and Spacing + // - None ........Content..... Pad .....Content........ + // - PadOuter | Pad ..Content..... Pad .....Content.. Pad | + // - PadInner ........Content.. Pad | Pad ..Content........ + // - PadOuter+PadInner | Pad ..Content.. Pad | Pad ..Content.. Pad | + const bool pad_outer_x = (flags & ImGuiTableFlags_NoPadOuterX) ? false : (flags & ImGuiTableFlags_PadOuterX) ? true : (flags & ImGuiTableFlags_BordersOuterV) != 0; + const bool pad_inner_x = (flags & ImGuiTableFlags_NoPadInnerX) ? false : true; + const float inner_spacing_for_border = (flags & ImGuiTableFlags_BordersInnerV) ? TABLE_BORDER_SIZE : 0.0f; + const float inner_spacing_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) == 0) ? g.Style.CellPadding.x : 0.0f; + const float inner_padding_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) != 0) ? g.Style.CellPadding.x : 0.0f; + table->CellSpacingX1 = inner_spacing_explicit + inner_spacing_for_border; + table->CellSpacingX2 = inner_spacing_explicit; + table->CellPaddingX = inner_padding_explicit; + table->CellPaddingY = g.Style.CellPadding.y; + + const float outer_padding_for_border = (flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; + const float outer_padding_explicit = pad_outer_x ? g.Style.CellPadding.x : 0.0f; + table->OuterPaddingX = (outer_padding_for_border + outer_padding_explicit) - table->CellPaddingX; + + table->CurrentColumn = -1; + table->CurrentRow = -1; + table->RowBgColorCounter = 0; + table->LastRowFlags = ImGuiTableRowFlags_None; + table->InnerClipRect = (inner_window == outer_window) ? table->WorkRect : inner_window->ClipRect; + table->InnerClipRect.ClipWith(table->WorkRect); // We need this to honor inner_width + table->InnerClipRect.ClipWithFull(table->HostClipRect); + table->InnerClipRect.Max.y = (flags & ImGuiTableFlags_NoHostExtendY) ? ImMin(table->InnerClipRect.Max.y, inner_window->WorkRect.Max.y) : inner_window->ClipRect.Max.y; + + table->RowPosY1 = table->RowPosY2 = table->WorkRect.Min.y; // This is needed somehow + table->RowTextBaseline = 0.0f; // This will be cleared again by TableBeginRow() + table->FreezeRowsRequest = table->FreezeRowsCount = 0; // This will be setup by TableSetupScrollFreeze(), if any + table->FreezeColumnsRequest = table->FreezeColumnsCount = 0; + table->IsUnfrozenRows = true; + table->DeclColumnsCount = 0; + + // Using opaque colors facilitate overlapping elements of the grid + table->BorderColorStrong = GetColorU32(ImGuiCol_TableBorderStrong); + table->BorderColorLight = GetColorU32(ImGuiCol_TableBorderLight); + + // Make table current + g.CurrentTable = table; + outer_window->DC.CurrentTableIdx = table_idx; + if (inner_window != outer_window) // So EndChild() within the inner window can restore the table properly. + inner_window->DC.CurrentTableIdx = table_idx; + + if ((table_last_flags & ImGuiTableFlags_Reorderable) && (flags & ImGuiTableFlags_Reorderable) == 0) + table->IsResetDisplayOrderRequest = true; + + // Mark as used + if (table_idx >= g.TablesLastTimeActive.Size) + g.TablesLastTimeActive.resize(table_idx + 1, -1.0f); + g.TablesLastTimeActive[table_idx] = (float)g.Time; + temp_data->LastTimeActive = (float)g.Time; + table->MemoryCompacted = false; + + // Setup memory buffer (clear data if columns count changed) + ImGuiTableColumn* old_columns_to_preserve = NULL; + void* old_columns_raw_data = NULL; + const int old_columns_count = table->Columns.size(); + if (old_columns_count != 0 && old_columns_count != columns_count) + { + // Attempt to preserve width on column count change (#4046) + old_columns_to_preserve = table->Columns.Data; + old_columns_raw_data = table->RawData; + table->RawData = NULL; + } + if (table->RawData == NULL) + { + TableBeginInitMemory(table, columns_count); + table->IsInitializing = table->IsSettingsRequestLoad = true; + } + if (table->IsResetAllRequest) + TableResetSettings(table); + if (table->IsInitializing) + { + // Initialize + table->SettingsOffset = -1; + table->IsSortSpecsDirty = true; + table->InstanceInteracted = -1; + table->ContextPopupColumn = -1; + table->ReorderColumn = table->ResizedColumn = table->LastResizedColumn = -1; + table->AutoFitSingleColumn = -1; + table->HoveredColumnBody = table->HoveredColumnBorder = -1; + for (int n = 0; n < columns_count; n++) + { + ImGuiTableColumn* column = &table->Columns[n]; + if (old_columns_to_preserve && n < old_columns_count) + { + // FIXME: We don't attempt to preserve column order in this path. + *column = old_columns_to_preserve[n]; + } + else + { + float width_auto = column->WidthAuto; + *column = ImGuiTableColumn(); + column->WidthAuto = width_auto; + column->IsPreserveWidthAuto = true; // Preserve WidthAuto when reinitializing a live table: not technically necessary but remove a visible flicker + column->IsEnabled = column->IsUserEnabled = column->IsUserEnabledNextFrame = true; + } + column->DisplayOrder = table->DisplayOrderToIndex[n] = (ImGuiTableColumnIdx)n; + } + } + if (old_columns_raw_data) + IM_FREE(old_columns_raw_data); + + // Load settings + if (table->IsSettingsRequestLoad) + TableLoadSettings(table); + + // Handle DPI/font resize + // This is designed to facilitate DPI changes with the assumption that e.g. style.CellPadding has been scaled as well. + // It will also react to changing fonts with mixed results. It doesn't need to be perfect but merely provide a decent transition. + // FIXME-DPI: Provide consistent standards for reference size. Perhaps using g.CurrentDpiScale would be more self explanatory. + // This is will lead us to non-rounded WidthRequest in columns, which should work but is a poorly tested path. + const float new_ref_scale_unit = g.FontSize; // g.Font->GetCharAdvance('A') ? + if (table->RefScale != 0.0f && table->RefScale != new_ref_scale_unit) + { + const float scale_factor = new_ref_scale_unit / table->RefScale; + //IMGUI_DEBUG_PRINT("[table] %08X RefScaleUnit %.3f -> %.3f, scaling width by %.3f\n", table->ID, table->RefScaleUnit, new_ref_scale_unit, scale_factor); + for (int n = 0; n < columns_count; n++) + table->Columns[n].WidthRequest = table->Columns[n].WidthRequest * scale_factor; + } + table->RefScale = new_ref_scale_unit; + + // Disable output until user calls TableNextRow() or TableNextColumn() leading to the TableUpdateLayout() call.. + // This is not strictly necessary but will reduce cases were "out of table" output will be misleading to the user. + // Because we cannot safely assert in EndTable() when no rows have been created, this seems like our best option. + inner_window->SkipItems = true; + + // Clear names + // At this point the ->NameOffset field of each column will be invalid until TableUpdateLayout() or the first call to TableSetupColumn() + if (table->ColumnsNames.Buf.Size > 0) + table->ColumnsNames.Buf.resize(0); + + // Apply queued resizing/reordering/hiding requests + TableBeginApplyRequests(table); + + return true; +} + +// For reference, the average total _allocation count_ for a table is: +// + 0 (for ImGuiTable instance, we are pooling allocations in g.Tables) +// + 1 (for table->RawData allocated below) +// + 1 (for table->ColumnsNames, if names are used) +// Shared allocations per number of nested tables +// + 1 (for table->Splitter._Channels) +// + 2 * active_channels_count (for ImDrawCmd and ImDrawIdx buffers inside channels) +// Where active_channels_count is variable but often == columns_count or columns_count + 1, see TableSetupDrawChannels() for details. +// Unused channels don't perform their +2 allocations. +void ImGui::TableBeginInitMemory(ImGuiTable* table, int columns_count) +{ + // Allocate single buffer for our arrays + ImSpanAllocator<3> span_allocator; + span_allocator.Reserve(0, columns_count * sizeof(ImGuiTableColumn)); + span_allocator.Reserve(1, columns_count * sizeof(ImGuiTableColumnIdx)); + span_allocator.Reserve(2, columns_count * sizeof(ImGuiTableCellData), 4); + table->RawData = IM_ALLOC(span_allocator.GetArenaSizeInBytes()); + memset(table->RawData, 0, span_allocator.GetArenaSizeInBytes()); + span_allocator.SetArenaBasePtr(table->RawData); + span_allocator.GetSpan(0, &table->Columns); + span_allocator.GetSpan(1, &table->DisplayOrderToIndex); + span_allocator.GetSpan(2, &table->RowCellData); +} + +// Apply queued resizing/reordering/hiding requests +void ImGui::TableBeginApplyRequests(ImGuiTable* table) +{ + // Handle resizing request + // (We process this at the first TableBegin of the frame) + // FIXME-TABLE: Contains columns if our work area doesn't allow for scrolling? + if (table->InstanceCurrent == 0) + { + if (table->ResizedColumn != -1 && table->ResizedColumnNextWidth != FLT_MAX) + TableSetColumnWidth(table->ResizedColumn, table->ResizedColumnNextWidth); + table->LastResizedColumn = table->ResizedColumn; + table->ResizedColumnNextWidth = FLT_MAX; + table->ResizedColumn = -1; + + // Process auto-fit for single column, which is a special case for stretch columns and fixed columns with FixedSame policy. + // FIXME-TABLE: Would be nice to redistribute available stretch space accordingly to other weights, instead of giving it all to siblings. + if (table->AutoFitSingleColumn != -1) + { + TableSetColumnWidth(table->AutoFitSingleColumn, table->Columns[table->AutoFitSingleColumn].WidthAuto); + table->AutoFitSingleColumn = -1; + } + } + + // Handle reordering request + // Note: we don't clear ReorderColumn after handling the request. + if (table->InstanceCurrent == 0) + { + if (table->HeldHeaderColumn == -1 && table->ReorderColumn != -1) + table->ReorderColumn = -1; + table->HeldHeaderColumn = -1; + if (table->ReorderColumn != -1 && table->ReorderColumnDir != 0) + { + // We need to handle reordering across hidden columns. + // In the configuration below, moving C to the right of E will lead to: + // ... C [D] E ---> ... [D] E C (Column name/index) + // ... 2 3 4 ... 2 3 4 (Display order) + const int reorder_dir = table->ReorderColumnDir; + IM_ASSERT(reorder_dir == -1 || reorder_dir == +1); + IM_ASSERT(table->Flags & ImGuiTableFlags_Reorderable); + ImGuiTableColumn* src_column = &table->Columns[table->ReorderColumn]; + ImGuiTableColumn* dst_column = &table->Columns[(reorder_dir == -1) ? src_column->PrevEnabledColumn : src_column->NextEnabledColumn]; + IM_UNUSED(dst_column); + const int src_order = src_column->DisplayOrder; + const int dst_order = dst_column->DisplayOrder; + src_column->DisplayOrder = (ImGuiTableColumnIdx)dst_order; + for (int order_n = src_order + reorder_dir; order_n != dst_order + reorder_dir; order_n += reorder_dir) + table->Columns[table->DisplayOrderToIndex[order_n]].DisplayOrder -= (ImGuiTableColumnIdx)reorder_dir; + IM_ASSERT(dst_column->DisplayOrder == dst_order - reorder_dir); + + // Display order is stored in both columns->IndexDisplayOrder and table->DisplayOrder[], + // rebuild the later from the former. + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; + table->ReorderColumnDir = 0; + table->IsSettingsDirty = true; + } + } + + // Handle display order reset request + if (table->IsResetDisplayOrderRequest) + { + for (int n = 0; n < table->ColumnsCount; n++) + table->DisplayOrderToIndex[n] = table->Columns[n].DisplayOrder = (ImGuiTableColumnIdx)n; + table->IsResetDisplayOrderRequest = false; + table->IsSettingsDirty = true; + } +} + +// Adjust flags: default width mode + stretch columns are not allowed when auto extending +static void TableSetupColumnFlags(ImGuiTable* table, ImGuiTableColumn* column, ImGuiTableColumnFlags flags_in) +{ + ImGuiTableColumnFlags flags = flags_in; + + // Sizing Policy + if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0) + { + const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); + if (table_sizing_policy == ImGuiTableFlags_SizingFixedFit || table_sizing_policy == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableColumnFlags_WidthFixed; + else + flags |= ImGuiTableColumnFlags_WidthStretch; + } + else + { + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_WidthMask_)); // Check that only 1 of each set is used. + } + + // Resize + if ((table->Flags & ImGuiTableFlags_Resizable) == 0) + flags |= ImGuiTableColumnFlags_NoResize; + + // Sorting + if ((flags & ImGuiTableColumnFlags_NoSortAscending) && (flags & ImGuiTableColumnFlags_NoSortDescending)) + flags |= ImGuiTableColumnFlags_NoSort; + + // Indentation + if ((flags & ImGuiTableColumnFlags_IndentMask_) == 0) + flags |= (table->Columns.index_from_ptr(column) == 0) ? ImGuiTableColumnFlags_IndentEnable : ImGuiTableColumnFlags_IndentDisable; + + // Alignment + //if ((flags & ImGuiTableColumnFlags_AlignMask_) == 0) + // flags |= ImGuiTableColumnFlags_AlignCenter; + //IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_AlignMask_)); // Check that only 1 of each set is used. + + // Preserve status flags + column->Flags = flags | (column->Flags & ImGuiTableColumnFlags_StatusMask_); + + // Build an ordered list of available sort directions + column->SortDirectionsAvailCount = column->SortDirectionsAvailMask = column->SortDirectionsAvailList = 0; + if (table->Flags & ImGuiTableFlags_Sortable) + { + int count = 0, mask = 0, list = 0; + if ((flags & ImGuiTableColumnFlags_PreferSortAscending) != 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortDescending) != 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortAscending) == 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortDescending) == 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } + if ((table->Flags & ImGuiTableFlags_SortTristate) || count == 0) { mask |= 1 << ImGuiSortDirection_None; count++; } + column->SortDirectionsAvailList = (ImU8)list; + column->SortDirectionsAvailMask = (ImU8)mask; + column->SortDirectionsAvailCount = (ImU8)count; + ImGui::TableFixColumnSortDirection(table, column); + } +} + +// Layout columns for the frame. This is in essence the followup to BeginTable(). +// Runs on the first call to TableNextRow(), to give a chance for TableSetupColumn() to be called first. +// FIXME-TABLE: Our width (and therefore our WorkRect) will be minimal in the first frame for _WidthAuto columns. +// Increase feedback side-effect with widgets relying on WorkRect.Max.x... Maybe provide a default distribution for _WidthAuto columns? +void ImGui::TableUpdateLayout(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(table->IsLayoutLocked == false); + + const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); + table->IsDefaultDisplayOrder = true; + table->ColumnsEnabledCount = 0; + table->EnabledMaskByIndex = 0x00; + table->EnabledMaskByDisplayOrder = 0x00; + table->LeftMostEnabledColumn = -1; + table->MinColumnWidth = ImMax(1.0f, g.Style.FramePadding.x * 1.0f); // g.Style.ColumnsMinSpacing; // FIXME-TABLE + + // [Part 1] Apply/lock Enabled and Order states. Calculate auto/ideal width for columns. Count fixed/stretch columns. + // Process columns in their visible orders as we are building the Prev/Next indices. + int count_fixed = 0; // Number of columns that have fixed sizing policies + int count_stretch = 0; // Number of columns that have stretch sizing policies + int prev_visible_column_idx = -1; + bool has_auto_fit_request = false; + bool has_resizable = false; + float stretch_sum_width_auto = 0.0f; + float fixed_max_width_auto = 0.0f; + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + const int column_n = table->DisplayOrderToIndex[order_n]; + if (column_n != order_n) + table->IsDefaultDisplayOrder = false; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Clear column setup if not submitted by user. Currently we make it mandatory to call TableSetupColumn() every frame. + // It would easily work without but we're not ready to guarantee it since e.g. names need resubmission anyway. + // We take a slight shortcut but in theory we could be calling TableSetupColumn() here with dummy values, it should yield the same effect. + if (table->DeclColumnsCount <= column_n) + { + TableSetupColumnFlags(table, column, ImGuiTableColumnFlags_None); + column->NameOffset = -1; + column->UserID = 0; + column->InitStretchWeightOrWidth = -1.0f; + } + + // Update Enabled state, mark settings and sort specs dirty + if (!(table->Flags & ImGuiTableFlags_Hideable) || (column->Flags & ImGuiTableColumnFlags_NoHide)) + column->IsUserEnabledNextFrame = true; + if (column->IsUserEnabled != column->IsUserEnabledNextFrame) + { + column->IsUserEnabled = column->IsUserEnabledNextFrame; + table->IsSettingsDirty = true; + } + column->IsEnabled = column->IsUserEnabled && (column->Flags & ImGuiTableColumnFlags_Disabled) == 0; + + if (column->SortOrder != -1 && !column->IsEnabled) + table->IsSortSpecsDirty = true; + if (column->SortOrder > 0 && !(table->Flags & ImGuiTableFlags_SortMulti)) + table->IsSortSpecsDirty = true; + + // Auto-fit unsized columns + const bool start_auto_fit = (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? (column->WidthRequest < 0.0f) : (column->StretchWeight < 0.0f); + if (start_auto_fit) + column->AutoFitQueue = column->CannotSkipItemsQueue = (1 << 3) - 1; // Fit for three frames + + if (!column->IsEnabled) + { + column->IndexWithinEnabledSet = -1; + continue; + } + + // Mark as enabled and link to previous/next enabled column + column->PrevEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; + column->NextEnabledColumn = -1; + if (prev_visible_column_idx != -1) + table->Columns[prev_visible_column_idx].NextEnabledColumn = (ImGuiTableColumnIdx)column_n; + else + table->LeftMostEnabledColumn = (ImGuiTableColumnIdx)column_n; + column->IndexWithinEnabledSet = table->ColumnsEnabledCount++; + table->EnabledMaskByIndex |= (ImU64)1 << column_n; + table->EnabledMaskByDisplayOrder |= (ImU64)1 << column->DisplayOrder; + prev_visible_column_idx = column_n; + IM_ASSERT(column->IndexWithinEnabledSet <= column->DisplayOrder); + + // Calculate ideal/auto column width (that's the width required for all contents to be visible without clipping) + // Combine width from regular rows + width from headers unless requested not to. + if (!column->IsPreserveWidthAuto) + column->WidthAuto = TableGetColumnWidthAuto(table, column); + + // Non-resizable columns keep their requested width (apply user value regardless of IsPreserveWidthAuto) + const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; + if (column_is_resizable) + has_resizable = true; + if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f && !column_is_resizable) + column->WidthAuto = column->InitStretchWeightOrWidth; + + if (column->AutoFitQueue != 0x00) + has_auto_fit_request = true; + if (column->Flags & ImGuiTableColumnFlags_WidthStretch) + { + stretch_sum_width_auto += column->WidthAuto; + count_stretch++; + } + else + { + fixed_max_width_auto = ImMax(fixed_max_width_auto, column->WidthAuto); + count_fixed++; + } + } + if ((table->Flags & ImGuiTableFlags_Sortable) && table->SortSpecsCount == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) + table->IsSortSpecsDirty = true; + table->RightMostEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; + IM_ASSERT(table->LeftMostEnabledColumn >= 0 && table->RightMostEnabledColumn >= 0); + + // [Part 2] Disable child window clipping while fitting columns. This is not strictly necessary but makes it possible + // to avoid the column fitting having to wait until the first visible frame of the child container (may or not be a good thing). + // FIXME-TABLE: for always auto-resizing columns may not want to do that all the time. + if (has_auto_fit_request && table->OuterWindow != table->InnerWindow) + table->InnerWindow->SkipItems = false; + if (has_auto_fit_request) + table->IsSettingsDirty = true; + + // [Part 3] Fix column flags and record a few extra information. + float sum_width_requests = 0.0f; // Sum of all width for fixed and auto-resize columns, excluding width contributed by Stretch columns but including spacing/padding. + float stretch_sum_weights = 0.0f; // Sum of all weights for stretch columns. + table->LeftMostStretchedColumn = table->RightMostStretchedColumn = -1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!(table->EnabledMaskByIndex & ((ImU64)1 << column_n))) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + { + // Apply same widths policy + float width_auto = column->WidthAuto; + if (table_sizing_policy == ImGuiTableFlags_SizingFixedSame && (column->AutoFitQueue != 0x00 || !column_is_resizable)) + width_auto = fixed_max_width_auto; + + // Apply automatic width + // Latch initial size for fixed columns and update it constantly for auto-resizing column (unless clipped!) + if (column->AutoFitQueue != 0x00) + column->WidthRequest = width_auto; + else if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !column_is_resizable && (table->RequestOutputMaskByIndex & ((ImU64)1 << column_n))) + column->WidthRequest = width_auto; + + // FIXME-TABLE: Increase minimum size during init frame to avoid biasing auto-fitting widgets + // (e.g. TextWrapped) too much. Otherwise what tends to happen is that TextWrapped would output a very + // large height (= first frame scrollbar display very off + clipper would skip lots of items). + // This is merely making the side-effect less extreme, but doesn't properly fixes it. + // FIXME: Move this to ->WidthGiven to avoid temporary lossyless? + // FIXME: This break IsPreserveWidthAuto from not flickering if the stored WidthAuto was smaller. + if (column->AutoFitQueue > 0x01 && table->IsInitializing && !column->IsPreserveWidthAuto) + column->WidthRequest = ImMax(column->WidthRequest, table->MinColumnWidth * 4.0f); // FIXME-TABLE: Another constant/scale? + sum_width_requests += column->WidthRequest; + } + else + { + // Initialize stretch weight + if (column->AutoFitQueue != 0x00 || column->StretchWeight < 0.0f || !column_is_resizable) + { + if (column->InitStretchWeightOrWidth > 0.0f) + column->StretchWeight = column->InitStretchWeightOrWidth; + else if (table_sizing_policy == ImGuiTableFlags_SizingStretchProp) + column->StretchWeight = (column->WidthAuto / stretch_sum_width_auto) * count_stretch; + else + column->StretchWeight = 1.0f; + } + + stretch_sum_weights += column->StretchWeight; + if (table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder > column->DisplayOrder) + table->LeftMostStretchedColumn = (ImGuiTableColumnIdx)column_n; + if (table->RightMostStretchedColumn == -1 || table->Columns[table->RightMostStretchedColumn].DisplayOrder < column->DisplayOrder) + table->RightMostStretchedColumn = (ImGuiTableColumnIdx)column_n; + } + column->IsPreserveWidthAuto = false; + sum_width_requests += table->CellPaddingX * 2.0f; + } + table->ColumnsEnabledFixedCount = (ImGuiTableColumnIdx)count_fixed; + table->ColumnsStretchSumWeights = stretch_sum_weights; + + // [Part 4] Apply final widths based on requested widths + const ImRect work_rect = table->WorkRect; + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + const float width_avail = ((table->Flags & ImGuiTableFlags_ScrollX) && table->InnerWidth == 0.0f) ? table->InnerClipRect.GetWidth() : work_rect.GetWidth(); + const float width_avail_for_stretched_columns = width_avail - width_spacings - sum_width_requests; + float width_remaining_for_stretched_columns = width_avail_for_stretched_columns; + table->ColumnsGivenWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!(table->EnabledMaskByIndex & ((ImU64)1 << column_n))) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Allocate width for stretched/weighted columns (StretchWeight gets converted into WidthRequest) + if (column->Flags & ImGuiTableColumnFlags_WidthStretch) + { + float weight_ratio = column->StretchWeight / stretch_sum_weights; + column->WidthRequest = IM_FLOOR(ImMax(width_avail_for_stretched_columns * weight_ratio, table->MinColumnWidth) + 0.01f); + width_remaining_for_stretched_columns -= column->WidthRequest; + } + + // [Resize Rule 1] The right-most Visible column is not resizable if there is at least one Stretch column + // See additional comments in TableSetColumnWidth(). + if (column->NextEnabledColumn == -1 && table->LeftMostStretchedColumn != -1) + column->Flags |= ImGuiTableColumnFlags_NoDirectResize_; + + // Assign final width, record width in case we will need to shrink + column->WidthGiven = ImFloor(ImMax(column->WidthRequest, table->MinColumnWidth)); + table->ColumnsGivenWidth += column->WidthGiven; + } + + // [Part 5] Redistribute stretch remainder width due to rounding (remainder width is < 1.0f * number of Stretch column). + // Using right-to-left distribution (more likely to match resizing cursor). + if (width_remaining_for_stretched_columns >= 1.0f && !(table->Flags & ImGuiTableFlags_PreciseWidths)) + for (int order_n = table->ColumnsCount - 1; stretch_sum_weights > 0.0f && width_remaining_for_stretched_columns >= 1.0f && order_n >= 0; order_n--) + { + if (!(table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n))) + continue; + ImGuiTableColumn* column = &table->Columns[table->DisplayOrderToIndex[order_n]]; + if (!(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + column->WidthRequest += 1.0f; + column->WidthGiven += 1.0f; + width_remaining_for_stretched_columns -= 1.0f; + } + + // Determine if table is hovered which will be used to flag columns as hovered. + // - In principle we'd like to use the equivalent of IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + // but because our item is partially submitted at this point we use ItemHoverable() and a workaround (temporarily + // clear ActiveId, which is equivalent to the change provided by _AllowWhenBLockedByActiveItem). + // - This allows columns to be marked as hovered when e.g. clicking a button inside the column, or using drag and drop. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + table->HoveredColumnBody = -1; + table->HoveredColumnBorder = -1; + const ImRect mouse_hit_rect(table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.Max.x, ImMax(table->OuterRect.Max.y, table->OuterRect.Min.y + table_instance->LastOuterHeight)); + const ImGuiID backup_active_id = g.ActiveId; + g.ActiveId = 0; + const bool is_hovering_table = ItemHoverable(mouse_hit_rect, 0); + g.ActiveId = backup_active_id; + + // [Part 6] Setup final position, offset, skip/clip states and clipping rectangles, detect hovered column + // Process columns in their visible orders as we are comparing the visible order and adjusting host_clip_rect while looping. + int visible_n = 0; + bool offset_x_frozen = (table->FreezeColumnsCount > 0); + float offset_x = ((table->FreezeColumnsCount > 0) ? table->OuterRect.Min.x : work_rect.Min.x) + table->OuterPaddingX - table->CellSpacingX1; + ImRect host_clip_rect = table->InnerClipRect; + //host_clip_rect.Max.x += table->CellPaddingX + table->CellSpacingX2; + table->VisibleMaskByIndex = 0x00; + table->RequestOutputMaskByIndex = 0x00; + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + + column->NavLayerCurrent = (ImS8)((table->FreezeRowsCount > 0 || column_n < table->FreezeColumnsCount) ? ImGuiNavLayer_Menu : ImGuiNavLayer_Main); + + if (offset_x_frozen && table->FreezeColumnsCount == visible_n) + { + offset_x += work_rect.Min.x - table->OuterRect.Min.x; + offset_x_frozen = false; + } + + // Clear status flags + column->Flags &= ~ImGuiTableColumnFlags_StatusMask_; + + if ((table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n)) == 0) + { + // Hidden column: clear a few fields and we are done with it for the remainder of the function. + // We set a zero-width clip rect but set Min.y/Max.y properly to not interfere with the clipper. + column->MinX = column->MaxX = column->WorkMinX = column->ClipRect.Min.x = column->ClipRect.Max.x = offset_x; + column->WidthGiven = 0.0f; + column->ClipRect.Min.y = work_rect.Min.y; + column->ClipRect.Max.y = FLT_MAX; + column->ClipRect.ClipWithFull(host_clip_rect); + column->IsVisibleX = column->IsVisibleY = column->IsRequestOutput = false; + column->IsSkipItems = true; + column->ItemWidth = 1.0f; + continue; + } + + // Detect hovered column + if (is_hovering_table && g.IO.MousePos.x >= column->ClipRect.Min.x && g.IO.MousePos.x < column->ClipRect.Max.x) + table->HoveredColumnBody = (ImGuiTableColumnIdx)column_n; + + // Lock start position + column->MinX = offset_x; + + // Lock width based on start position and minimum/maximum width for this position + float max_width = TableGetMaxColumnWidth(table, column_n); + column->WidthGiven = ImMin(column->WidthGiven, max_width); + column->WidthGiven = ImMax(column->WidthGiven, ImMin(column->WidthRequest, table->MinColumnWidth)); + column->MaxX = offset_x + column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; + + // Lock other positions + // - ClipRect.Min.x: Because merging draw commands doesn't compare min boundaries, we make ClipRect.Min.x match left bounds to be consistent regardless of merging. + // - ClipRect.Max.x: using WorkMaxX instead of MaxX (aka including padding) makes things more consistent when resizing down, tho slightly detrimental to visibility in very-small column. + // - ClipRect.Max.x: using MaxX makes it easier for header to receive hover highlight with no discontinuity and display sorting arrow. + // - FIXME-TABLE: We want equal width columns to have equal (ClipRect.Max.x - WorkMinX) width, which means ClipRect.max.x cannot stray off host_clip_rect.Max.x else right-most column may appear shorter. + column->WorkMinX = column->MinX + table->CellPaddingX + table->CellSpacingX1; + column->WorkMaxX = column->MaxX - table->CellPaddingX - table->CellSpacingX2; // Expected max + column->ItemWidth = ImFloor(column->WidthGiven * 0.65f); + column->ClipRect.Min.x = column->MinX; + column->ClipRect.Min.y = work_rect.Min.y; + column->ClipRect.Max.x = column->MaxX; //column->WorkMaxX; + column->ClipRect.Max.y = FLT_MAX; + column->ClipRect.ClipWithFull(host_clip_rect); + + // Mark column as Clipped (not in sight) + // Note that scrolling tables (where inner_window != outer_window) handle Y clipped earlier in BeginTable() so IsVisibleY really only applies to non-scrolling tables. + // FIXME-TABLE: Because InnerClipRect.Max.y is conservatively ==outer_window->ClipRect.Max.y, we never can mark columns _Above_ the scroll line as not IsVisibleY. + // Taking advantage of LastOuterHeight would yield good results there... + // FIXME-TABLE: Y clipping is disabled because it effectively means not submitting will reduce contents width which is fed to outer_window->DC.CursorMaxPos.x, + // and this may be used (e.g. typically by outer_window using AlwaysAutoResize or outer_window's horizontal scrollbar, but could be something else). + // Possible solution to preserve last known content width for clipped column. Test 'table_reported_size' fails when enabling Y clipping and window is resized small. + column->IsVisibleX = (column->ClipRect.Max.x > column->ClipRect.Min.x); + column->IsVisibleY = true; // (column->ClipRect.Max.y > column->ClipRect.Min.y); + const bool is_visible = column->IsVisibleX; //&& column->IsVisibleY; + if (is_visible) + table->VisibleMaskByIndex |= ((ImU64)1 << column_n); + + // Mark column as requesting output from user. Note that fixed + non-resizable sets are auto-fitting at all times and therefore always request output. + column->IsRequestOutput = is_visible || column->AutoFitQueue != 0 || column->CannotSkipItemsQueue != 0; + if (column->IsRequestOutput) + table->RequestOutputMaskByIndex |= ((ImU64)1 << column_n); + + // Mark column as SkipItems (ignoring all items/layout) + column->IsSkipItems = !column->IsEnabled || table->HostSkipItems; + if (column->IsSkipItems) + IM_ASSERT(!is_visible); + + // Update status flags + column->Flags |= ImGuiTableColumnFlags_IsEnabled; + if (is_visible) + column->Flags |= ImGuiTableColumnFlags_IsVisible; + if (column->SortOrder != -1) + column->Flags |= ImGuiTableColumnFlags_IsSorted; + if (table->HoveredColumnBody == column_n) + column->Flags |= ImGuiTableColumnFlags_IsHovered; + + // Alignment + // FIXME-TABLE: This align based on the whole column width, not per-cell, and therefore isn't useful in + // many cases (to be able to honor this we might be able to store a log of cells width, per row, for + // visible rows, but nav/programmatic scroll would have visible artifacts.) + //if (column->Flags & ImGuiTableColumnFlags_AlignRight) + // column->WorkMinX = ImMax(column->WorkMinX, column->MaxX - column->ContentWidthRowsUnfrozen); + //else if (column->Flags & ImGuiTableColumnFlags_AlignCenter) + // column->WorkMinX = ImLerp(column->WorkMinX, ImMax(column->StartX, column->MaxX - column->ContentWidthRowsUnfrozen), 0.5f); + + // Reset content width variables + column->ContentMaxXFrozen = column->ContentMaxXUnfrozen = column->WorkMinX; + column->ContentMaxXHeadersUsed = column->ContentMaxXHeadersIdeal = column->WorkMinX; + + // Don't decrement auto-fit counters until container window got a chance to submit its items + if (table->HostSkipItems == false) + { + column->AutoFitQueue >>= 1; + column->CannotSkipItemsQueue >>= 1; + } + + if (visible_n < table->FreezeColumnsCount) + host_clip_rect.Min.x = ImClamp(column->MaxX + TABLE_BORDER_SIZE, host_clip_rect.Min.x, host_clip_rect.Max.x); + + offset_x += column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; + visible_n++; + } + + // [Part 7] Detect/store when we are hovering the unused space after the right-most column (so e.g. context menus can react on it) + // Clear Resizable flag if none of our column are actually resizable (either via an explicit _NoResize flag, either + // because of using _WidthAuto/_WidthStretch). This will hide the resizing option from the context menu. + const float unused_x1 = ImMax(table->WorkRect.Min.x, table->Columns[table->RightMostEnabledColumn].ClipRect.Max.x); + if (is_hovering_table && table->HoveredColumnBody == -1) + { + if (g.IO.MousePos.x >= unused_x1) + table->HoveredColumnBody = (ImGuiTableColumnIdx)table->ColumnsCount; + } + if (has_resizable == false && (table->Flags & ImGuiTableFlags_Resizable)) + table->Flags &= ~ImGuiTableFlags_Resizable; + + // [Part 8] Lock actual OuterRect/WorkRect right-most position. + // This is done late to handle the case of fixed-columns tables not claiming more widths that they need. + // Because of this we are careful with uses of WorkRect and InnerClipRect before this point. + if (table->RightMostStretchedColumn != -1) + table->Flags &= ~ImGuiTableFlags_NoHostExtendX; + if (table->Flags & ImGuiTableFlags_NoHostExtendX) + { + table->OuterRect.Max.x = table->WorkRect.Max.x = unused_x1; + table->InnerClipRect.Max.x = ImMin(table->InnerClipRect.Max.x, unused_x1); + } + table->InnerWindow->ParentWorkRect = table->WorkRect; + table->BorderX1 = table->InnerClipRect.Min.x;// +((table->Flags & ImGuiTableFlags_BordersOuter) ? 0.0f : -1.0f); + table->BorderX2 = table->InnerClipRect.Max.x;// +((table->Flags & ImGuiTableFlags_BordersOuter) ? 0.0f : +1.0f); + + // [Part 9] Allocate draw channels and setup background cliprect + TableSetupDrawChannels(table); + + // [Part 10] Hit testing on borders + if (table->Flags & ImGuiTableFlags_Resizable) + TableUpdateBorders(table); + table_instance->LastFirstRowHeight = 0.0f; + table->IsLayoutLocked = true; + table->IsUsingHeaders = false; + + // [Part 11] Context menu + if (TableBeginContextMenuPopup(table)) + { + TableDrawContextMenu(table); + EndPopup(); + } + + // [Part 13] Sanitize and build sort specs before we have a change to use them for display. + // This path will only be exercised when sort specs are modified before header rows (e.g. init or visibility change) + if (table->IsSortSpecsDirty && (table->Flags & ImGuiTableFlags_Sortable)) + TableSortSpecsBuild(table); + + // Initial state + ImGuiWindow* inner_window = table->InnerWindow; + if (table->Flags & ImGuiTableFlags_NoClip) + table->DrawSplitter->SetCurrentChannel(inner_window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); + else + inner_window->DrawList->PushClipRect(inner_window->ClipRect.Min, inner_window->ClipRect.Max, false); +} + +// Process hit-testing on resizing borders. Actual size change will be applied in EndTable() +// - Set table->HoveredColumnBorder with a short delay/timer to reduce feedback noise +// - Submit ahead of table contents and header, use ImGuiButtonFlags_AllowItemOverlap to prioritize widgets +// overlapping the same area. +void ImGui::TableUpdateBorders(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(table->Flags & ImGuiTableFlags_Resizable); + + // At this point OuterRect height may be zero or under actual final height, so we rely on temporal coherency and + // use the final height from last frame. Because this is only affecting _interaction_ with columns, it is not + // really problematic (whereas the actual visual will be displayed in EndTable() and using the current frame height). + // Actual columns highlight/render will be performed in EndTable() and not be affected. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + const float hit_half_width = TABLE_RESIZE_SEPARATOR_HALF_THICKNESS; + const float hit_y1 = table->OuterRect.Min.y; + const float hit_y2_body = ImMax(table->OuterRect.Max.y, hit_y1 + table_instance->LastOuterHeight); + const float hit_y2_head = hit_y1 + table_instance->LastFirstRowHeight; + + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + if (!(table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n))) + continue; + + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) + continue; + + // ImGuiTableFlags_NoBordersInBodyUntilResize will be honored in TableDrawBorders() + const float border_y2_hit = (table->Flags & ImGuiTableFlags_NoBordersInBody) ? hit_y2_head : hit_y2_body; + if ((table->Flags & ImGuiTableFlags_NoBordersInBody) && table->IsUsingHeaders == false) + continue; + + if (!column->IsVisibleX && table->LastResizedColumn != column_n) + continue; + + ImGuiID column_id = TableGetColumnResizeID(table, column_n, table->InstanceCurrent); + ImRect hit_rect(column->MaxX - hit_half_width, hit_y1, column->MaxX + hit_half_width, border_y2_hit); + ItemAdd(hit_rect, column_id, NULL, ImGuiItemFlags_NoNav); + //GetForegroundDrawList()->AddRect(hit_rect.Min, hit_rect.Max, IM_COL32(255, 0, 0, 100)); + + bool hovered = false, held = false; + bool pressed = ButtonBehavior(hit_rect, column_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_NoNavFocus); + if (pressed && IsMouseDoubleClicked(0)) + { + TableSetColumnWidthAutoSingle(table, column_n); + ClearActiveID(); + held = hovered = false; + } + if (held) + { + if (table->LastResizedColumn == -1) + table->ResizeLockMinContentsX2 = table->RightMostEnabledColumn != -1 ? table->Columns[table->RightMostEnabledColumn].MaxX : -FLT_MAX; + table->ResizedColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + } + if ((hovered && g.HoveredIdTimer > TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER) || held) + { + table->HoveredColumnBorder = (ImGuiTableColumnIdx)column_n; + SetMouseCursor(ImGuiMouseCursor_ResizeEW); + } + } +} + +void ImGui::EndTable() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Only call EndTable() if BeginTable() returns true!"); + + // This assert would be very useful to catch a common error... unfortunately it would probably trigger in some + // cases, and for consistency user may sometimes output empty tables (and still benefit from e.g. outer border) + //IM_ASSERT(table->IsLayoutLocked && "Table unused: never called TableNextRow(), is that the intent?"); + + // If the user never got to call TableNextRow() or TableNextColumn(), we call layout ourselves to ensure all our + // code paths are consistent (instead of just hoping that TableBegin/TableEnd will work), get borders drawn, etc. + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + const ImGuiTableFlags flags = table->Flags; + ImGuiWindow* inner_window = table->InnerWindow; + ImGuiWindow* outer_window = table->OuterWindow; + ImGuiTableTempData* temp_data = table->TempData; + IM_ASSERT(inner_window == g.CurrentWindow); + IM_ASSERT(outer_window == inner_window || outer_window == inner_window->ParentWindow); + + if (table->IsInsideRow) + TableEndRow(table); + + // Context menu in columns body + if (flags & ImGuiTableFlags_ContextMenuInBody) + if (table->HoveredColumnBody != -1 && !IsAnyItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) + TableOpenContextMenu((int)table->HoveredColumnBody); + + // Finalize table height + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + inner_window->DC.PrevLineSize = temp_data->HostBackupPrevLineSize; + inner_window->DC.CurrLineSize = temp_data->HostBackupCurrLineSize; + inner_window->DC.CursorMaxPos = temp_data->HostBackupCursorMaxPos; + const float inner_content_max_y = table->RowPosY2; + IM_ASSERT(table->RowPosY2 == inner_window->DC.CursorPos.y); + if (inner_window != outer_window) + inner_window->DC.CursorMaxPos.y = inner_content_max_y; + else if (!(flags & ImGuiTableFlags_NoHostExtendY)) + table->OuterRect.Max.y = table->InnerRect.Max.y = ImMax(table->OuterRect.Max.y, inner_content_max_y); // Patch OuterRect/InnerRect height + table->WorkRect.Max.y = ImMax(table->WorkRect.Max.y, table->OuterRect.Max.y); + table_instance->LastOuterHeight = table->OuterRect.GetHeight(); + + // Setup inner scrolling range + // FIXME: This ideally should be done earlier, in BeginTable() SetNextWindowContentSize call, just like writing to inner_window->DC.CursorMaxPos.y, + // but since the later is likely to be impossible to do we'd rather update both axises together. + if (table->Flags & ImGuiTableFlags_ScrollX) + { + const float outer_padding_for_border = (table->Flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; + float max_pos_x = table->InnerWindow->DC.CursorMaxPos.x; + if (table->RightMostEnabledColumn != -1) + max_pos_x = ImMax(max_pos_x, table->Columns[table->RightMostEnabledColumn].WorkMaxX + table->CellPaddingX + table->OuterPaddingX - outer_padding_for_border); + if (table->ResizedColumn != -1) + max_pos_x = ImMax(max_pos_x, table->ResizeLockMinContentsX2); + table->InnerWindow->DC.CursorMaxPos.x = max_pos_x; + } + + // Pop clipping rect + if (!(flags & ImGuiTableFlags_NoClip)) + inner_window->DrawList->PopClipRect(); + inner_window->ClipRect = inner_window->DrawList->_ClipRectStack.back(); + + // Draw borders + if ((flags & ImGuiTableFlags_Borders) != 0) + TableDrawBorders(table); + +#if 0 + // Strip out dummy channel draw calls + // We have no way to prevent user submitting direct ImDrawList calls into a hidden column (but ImGui:: calls will be clipped out) + // Pros: remove draw calls which will have no effect. since they'll have zero-size cliprect they may be early out anyway. + // Cons: making it harder for users watching metrics/debugger to spot the wasted vertices. + if (table->DummyDrawChannel != (ImGuiTableColumnIdx)-1) + { + ImDrawChannel* dummy_channel = &table->DrawSplitter._Channels[table->DummyDrawChannel]; + dummy_channel->_CmdBuffer.resize(0); + dummy_channel->_IdxBuffer.resize(0); + } +#endif + + // Flatten channels and merge draw calls + ImDrawListSplitter* splitter = table->DrawSplitter; + splitter->SetCurrentChannel(inner_window->DrawList, 0); + if ((table->Flags & ImGuiTableFlags_NoClip) == 0) + TableMergeDrawChannels(table); + splitter->Merge(inner_window->DrawList); + + // Update ColumnsAutoFitWidth to get us ahead for host using our size to auto-resize without waiting for next BeginTable() + float auto_fit_width_for_fixed = 0.0f; + float auto_fit_width_for_stretched = 0.0f; + float auto_fit_width_for_stretched_min = 0.0f; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (table->EnabledMaskByIndex & ((ImU64)1 << column_n)) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + float column_width_request = ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !(column->Flags & ImGuiTableColumnFlags_NoResize)) ? column->WidthRequest : TableGetColumnWidthAuto(table, column); + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + auto_fit_width_for_fixed += column_width_request; + else + auto_fit_width_for_stretched += column_width_request; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) && (column->Flags & ImGuiTableColumnFlags_NoResize) != 0) + auto_fit_width_for_stretched_min = ImMax(auto_fit_width_for_stretched_min, column_width_request / (column->StretchWeight / table->ColumnsStretchSumWeights)); + } + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + table->ColumnsAutoFitWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount + auto_fit_width_for_fixed + ImMax(auto_fit_width_for_stretched, auto_fit_width_for_stretched_min); + + // Update scroll + if ((table->Flags & ImGuiTableFlags_ScrollX) == 0 && inner_window != outer_window) + { + inner_window->Scroll.x = 0.0f; + } + else if (table->LastResizedColumn != -1 && table->ResizedColumn == -1 && inner_window->ScrollbarX && table->InstanceInteracted == table->InstanceCurrent) + { + // When releasing a column being resized, scroll to keep the resulting column in sight + const float neighbor_width_to_keep_visible = table->MinColumnWidth + table->CellPaddingX * 2.0f; + ImGuiTableColumn* column = &table->Columns[table->LastResizedColumn]; + if (column->MaxX < table->InnerClipRect.Min.x) + SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x - neighbor_width_to_keep_visible, 1.0f); + else if (column->MaxX > table->InnerClipRect.Max.x) + SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x + neighbor_width_to_keep_visible, 1.0f); + } + + // Apply resizing/dragging at the end of the frame + if (table->ResizedColumn != -1 && table->InstanceCurrent == table->InstanceInteracted) + { + ImGuiTableColumn* column = &table->Columns[table->ResizedColumn]; + const float new_x2 = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + TABLE_RESIZE_SEPARATOR_HALF_THICKNESS); + const float new_width = ImFloor(new_x2 - column->MinX - table->CellSpacingX1 - table->CellPaddingX * 2.0f); + table->ResizedColumnNextWidth = new_width; + } + + // Pop from id stack + IM_ASSERT_USER_ERROR(inner_window->IDStack.back() == table->ID + table->InstanceCurrent, "Mismatching PushID/PopID!"); + IM_ASSERT_USER_ERROR(outer_window->DC.ItemWidthStack.Size >= temp_data->HostBackupItemWidthStackSize, "Too many PopItemWidth!"); + PopID(); + + // Restore window data that we modified + const ImVec2 backup_outer_max_pos = outer_window->DC.CursorMaxPos; + inner_window->WorkRect = temp_data->HostBackupWorkRect; + inner_window->ParentWorkRect = temp_data->HostBackupParentWorkRect; + inner_window->SkipItems = table->HostSkipItems; + outer_window->DC.CursorPos = table->OuterRect.Min; + outer_window->DC.ItemWidth = temp_data->HostBackupItemWidth; + outer_window->DC.ItemWidthStack.Size = temp_data->HostBackupItemWidthStackSize; + outer_window->DC.ColumnsOffset = temp_data->HostBackupColumnsOffset; + + // Layout in outer window + // (FIXME: To allow auto-fit and allow desirable effect of SameLine() we dissociate 'used' vs 'ideal' size by overriding + // CursorPosPrevLine and CursorMaxPos manually. That should be a more general layout feature, see same problem e.g. #3414) + if (inner_window != outer_window) + { + EndChild(); + } + else + { + ItemSize(table->OuterRect.GetSize()); + ItemAdd(table->OuterRect, 0); + } + + // Override declared contents width/height to enable auto-resize while not needlessly adding a scrollbar + if (table->Flags & ImGuiTableFlags_NoHostExtendX) + { + // FIXME-TABLE: Could we remove this section? + // ColumnsAutoFitWidth may be one frame ahead here since for Fixed+NoResize is calculated from latest contents + IM_ASSERT((table->Flags & ImGuiTableFlags_ScrollX) == 0); + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth); + } + else if (temp_data->UserOuterSize.x <= 0.0f) + { + const float decoration_size = (table->Flags & ImGuiTableFlags_ScrollX) ? inner_window->ScrollbarSizes.x : 0.0f; + outer_window->DC.IdealMaxPos.x = ImMax(outer_window->DC.IdealMaxPos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth + decoration_size - temp_data->UserOuterSize.x); + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, ImMin(table->OuterRect.Max.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth)); + } + else + { + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Max.x); + } + if (temp_data->UserOuterSize.y <= 0.0f) + { + const float decoration_size = (table->Flags & ImGuiTableFlags_ScrollY) ? inner_window->ScrollbarSizes.y : 0.0f; + outer_window->DC.IdealMaxPos.y = ImMax(outer_window->DC.IdealMaxPos.y, inner_content_max_y + decoration_size - temp_data->UserOuterSize.y); + outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, ImMin(table->OuterRect.Max.y, inner_content_max_y)); + } + else + { + // OuterRect.Max.y may already have been pushed downward from the initial value (unless ImGuiTableFlags_NoHostExtendY is set) + outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, table->OuterRect.Max.y); + } + + // Save settings + if (table->IsSettingsDirty) + TableSaveSettings(table); + table->IsInitializing = false; + + // Clear or restore current table, if any + IM_ASSERT(g.CurrentWindow == outer_window && g.CurrentTable == table); + IM_ASSERT(g.TablesTempDataStacked > 0); + temp_data = (--g.TablesTempDataStacked > 0) ? &g.TablesTempData[g.TablesTempDataStacked - 1] : NULL; + g.CurrentTable = temp_data ? g.Tables.GetByIndex(temp_data->TableIndex) : NULL; + if (g.CurrentTable) + { + g.CurrentTable->TempData = temp_data; + g.CurrentTable->DrawSplitter = &temp_data->DrawSplitter; + } + outer_window->DC.CurrentTableIdx = g.CurrentTable ? g.Tables.GetIndex(g.CurrentTable) : -1; +} + +// See "COLUMN SIZING POLICIES" comments at the top of this file +// If (init_width_or_weight <= 0.0f) it is ignored +void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, float init_width_or_weight, ImGuiID user_id) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); + IM_ASSERT(table->IsLayoutLocked == false && "Need to call call TableSetupColumn() before first row!"); + IM_ASSERT((flags & ImGuiTableColumnFlags_StatusMask_) == 0 && "Illegal to pass StatusMask values to TableSetupColumn()"); + if (table->DeclColumnsCount >= table->ColumnsCount) + { + IM_ASSERT_USER_ERROR(table->DeclColumnsCount < table->ColumnsCount, "Called TableSetupColumn() too many times!"); + return; + } + + ImGuiTableColumn* column = &table->Columns[table->DeclColumnsCount]; + table->DeclColumnsCount++; + + // Assert when passing a width or weight if policy is entirely left to default, to avoid storing width into weight and vice-versa. + // Give a grace to users of ImGuiTableFlags_ScrollX. + if (table->IsDefaultSizingPolicy && (flags & ImGuiTableColumnFlags_WidthMask_) == 0 && (flags & ImGuiTableFlags_ScrollX) == 0) + IM_ASSERT(init_width_or_weight <= 0.0f && "Can only specify width/weight if sizing policy is set explicitly in either Table or Column."); + + // When passing a width automatically enforce WidthFixed policy + // (whereas TableSetupColumnFlags would default to WidthAuto if table is not Resizable) + if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0 && init_width_or_weight > 0.0f) + if ((table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedFit || (table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableColumnFlags_WidthFixed; + + TableSetupColumnFlags(table, column, flags); + column->UserID = user_id; + flags = column->Flags; + + // Initialize defaults + column->InitStretchWeightOrWidth = init_width_or_weight; + if (table->IsInitializing) + { + // Init width or weight + if (column->WidthRequest < 0.0f && column->StretchWeight < 0.0f) + { + if ((flags & ImGuiTableColumnFlags_WidthFixed) && init_width_or_weight > 0.0f) + column->WidthRequest = init_width_or_weight; + if (flags & ImGuiTableColumnFlags_WidthStretch) + column->StretchWeight = (init_width_or_weight > 0.0f) ? init_width_or_weight : -1.0f; + + // Disable auto-fit if an explicit width/weight has been specified + if (init_width_or_weight > 0.0f) + column->AutoFitQueue = 0x00; + } + + // Init default visibility/sort state + if ((flags & ImGuiTableColumnFlags_DefaultHide) && (table->SettingsLoadedFlags & ImGuiTableFlags_Hideable) == 0) + column->IsUserEnabled = column->IsUserEnabledNextFrame = false; + if (flags & ImGuiTableColumnFlags_DefaultSort && (table->SettingsLoadedFlags & ImGuiTableFlags_Sortable) == 0) + { + column->SortOrder = 0; // Multiple columns using _DefaultSort will be reassigned unique SortOrder values when building the sort specs. + column->SortDirection = (column->Flags & ImGuiTableColumnFlags_PreferSortDescending) ? (ImS8)ImGuiSortDirection_Descending : (ImU8)(ImGuiSortDirection_Ascending); + } + } + + // Store name (append with zero-terminator in contiguous buffer) + column->NameOffset = -1; + if (label != NULL && label[0] != 0) + { + column->NameOffset = (ImS16)table->ColumnsNames.size(); + table->ColumnsNames.append(label, label + strlen(label) + 1); + } +} + +// [Public] +void ImGui::TableSetupScrollFreeze(int columns, int rows) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); + IM_ASSERT(table->IsLayoutLocked == false && "Need to call TableSetupColumn() before first row!"); + IM_ASSERT(columns >= 0 && columns < IMGUI_TABLE_MAX_COLUMNS); + IM_ASSERT(rows >= 0 && rows < 128); // Arbitrary limit + + table->FreezeColumnsRequest = (table->Flags & ImGuiTableFlags_ScrollX) ? (ImGuiTableColumnIdx)ImMin(columns, table->ColumnsCount) : 0; + table->FreezeColumnsCount = (table->InnerWindow->Scroll.x != 0.0f) ? table->FreezeColumnsRequest : 0; + table->FreezeRowsRequest = (table->Flags & ImGuiTableFlags_ScrollY) ? (ImGuiTableColumnIdx)rows : 0; + table->FreezeRowsCount = (table->InnerWindow->Scroll.y != 0.0f) ? table->FreezeRowsRequest : 0; + table->IsUnfrozenRows = (table->FreezeRowsCount == 0); // Make sure this is set before TableUpdateLayout() so ImGuiListClipper can benefit from it.b + + // Ensure frozen columns are ordered in their section. We still allow multiple frozen columns to be reordered. + // FIXME-TABLE: This work for preserving 2143 into 21|43. How about 4321 turning into 21|43? (preserve relative order in each section) + for (int column_n = 0; column_n < table->FreezeColumnsRequest; column_n++) + { + int order_n = table->DisplayOrderToIndex[column_n]; + if (order_n != column_n && order_n >= table->FreezeColumnsRequest) + { + ImSwap(table->Columns[table->DisplayOrderToIndex[order_n]].DisplayOrder, table->Columns[table->DisplayOrderToIndex[column_n]].DisplayOrder); + ImSwap(table->DisplayOrderToIndex[order_n], table->DisplayOrderToIndex[column_n]); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Tables: Simple accessors +//----------------------------------------------------------------------------- +// - TableGetColumnCount() +// - TableGetColumnName() +// - TableGetColumnName() [Internal] +// - TableSetColumnEnabled() +// - TableGetColumnFlags() +// - TableGetCellBgRect() [Internal] +// - TableGetColumnResizeID() [Internal] +// - TableGetHoveredColumn() [Internal] +// - TableSetBgColor() +//----------------------------------------------------------------------------- + +int ImGui::TableGetColumnCount() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + return table ? table->ColumnsCount : 0; +} + +const char* ImGui::TableGetColumnName(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return NULL; + if (column_n < 0) + column_n = table->CurrentColumn; + return TableGetColumnName(table, column_n); +} + +const char* ImGui::TableGetColumnName(const ImGuiTable* table, int column_n) +{ + if (table->IsLayoutLocked == false && column_n >= table->DeclColumnsCount) + return ""; // NameOffset is invalid at this point + const ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->NameOffset == -1) + return ""; + return &table->ColumnsNames.Buf[column->NameOffset]; +} + +// Change user accessible enabled/disabled state of a column (often perceived as "showing/hiding" from users point of view) +// Note that end-user can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) +// - Require table to have the ImGuiTableFlags_Hideable flag because we are manipulating user accessible state. +// - Request will be applied during next layout, which happens on the first call to TableNextRow() after BeginTable(). +// - For the getter you can test (TableGetColumnFlags() & ImGuiTableColumnFlags_IsEnabled) != 0. +// - Alternative: the ImGuiTableColumnFlags_Disabled is an overriding/master disable flag which will also hide the column from context menu. +void ImGui::TableSetColumnEnabled(int column_n, bool enabled) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL); + if (!table) + return; + IM_ASSERT(table->Flags & ImGuiTableFlags_Hideable); // See comments above + if (column_n < 0) + column_n = table->CurrentColumn; + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiTableColumn* column = &table->Columns[column_n]; + column->IsUserEnabledNextFrame = enabled; +} + +// We allow querying for an extra column in order to poll the IsHovered state of the right-most section +ImGuiTableColumnFlags ImGui::TableGetColumnFlags(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return ImGuiTableColumnFlags_None; + if (column_n < 0) + column_n = table->CurrentColumn; + if (column_n == table->ColumnsCount) + return (table->HoveredColumnBody == column_n) ? ImGuiTableColumnFlags_IsHovered : ImGuiTableColumnFlags_None; + return table->Columns[column_n].Flags; +} + +// Return the cell rectangle based on currently known height. +// - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations. +// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it, or in TableEndRow() when we locked that height. +// - Important: if ImGuiTableFlags_PadOuterX is set but ImGuiTableFlags_PadInnerX is not set, the outer-most left and right +// columns report a small offset so their CellBgRect can extend up to the outer border. +// FIXME: But the rendering code in TableEndRow() nullifies that with clamping required for scrolling. +ImRect ImGui::TableGetCellBgRect(const ImGuiTable* table, int column_n) +{ + const ImGuiTableColumn* column = &table->Columns[column_n]; + float x1 = column->MinX; + float x2 = column->MaxX; + //if (column->PrevEnabledColumn == -1) + // x1 -= table->OuterPaddingX; + //if (column->NextEnabledColumn == -1) + // x2 += table->OuterPaddingX; + x1 = ImMax(x1, table->WorkRect.Min.x); + x2 = ImMin(x2, table->WorkRect.Max.x); + return ImRect(x1, table->RowPosY1, x2, table->RowPosY2); +} + +// Return the resizing ID for the right-side of the given column. +ImGuiID ImGui::TableGetColumnResizeID(const ImGuiTable* table, int column_n, int instance_no) +{ + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiID id = table->ID + 1 + (instance_no * table->ColumnsCount) + column_n; + return id; +} + +// Return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. +int ImGui::TableGetHoveredColumn() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return -1; + return (int)table->HoveredColumnBody; +} + +void ImGui::TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(target != ImGuiTableBgTarget_None); + + if (color == IM_COL32_DISABLE) + color = 0; + + // We cannot draw neither the cell or row background immediately as we don't know the row height at this point in time. + switch (target) + { + case ImGuiTableBgTarget_CellBg: + { + if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard + return; + if (column_n == -1) + column_n = table->CurrentColumn; + if ((table->VisibleMaskByIndex & ((ImU64)1 << column_n)) == 0) + return; + if (table->RowCellDataCurrent < 0 || table->RowCellData[table->RowCellDataCurrent].Column != column_n) + table->RowCellDataCurrent++; + ImGuiTableCellData* cell_data = &table->RowCellData[table->RowCellDataCurrent]; + cell_data->BgColor = color; + cell_data->Column = (ImGuiTableColumnIdx)column_n; + break; + } + case ImGuiTableBgTarget_RowBg0: + case ImGuiTableBgTarget_RowBg1: + { + if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard + return; + IM_ASSERT(column_n == -1); + int bg_idx = (target == ImGuiTableBgTarget_RowBg1) ? 1 : 0; + table->RowBgColor[bg_idx] = color; + break; + } + default: + IM_ASSERT(0); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Row changes +//------------------------------------------------------------------------- +// - TableGetRowIndex() +// - TableNextRow() +// - TableBeginRow() [Internal] +// - TableEndRow() [Internal] +//------------------------------------------------------------------------- + +// [Public] Note: for row coloring we use ->RowBgColorCounter which is the same value without counting header rows +int ImGui::TableGetRowIndex() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return 0; + return table->CurrentRow; +} + +// [Public] Starts into the first cell of a new row +void ImGui::TableNextRow(ImGuiTableRowFlags row_flags, float row_min_height) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + if (table->IsInsideRow) + TableEndRow(table); + + table->LastRowFlags = table->RowFlags; + table->RowFlags = row_flags; + table->RowMinHeight = row_min_height; + TableBeginRow(table); + + // We honor min_row_height requested by user, but cannot guarantee per-row maximum height, + // because that would essentially require a unique clipping rectangle per-cell. + table->RowPosY2 += table->CellPaddingY * 2.0f; + table->RowPosY2 = ImMax(table->RowPosY2, table->RowPosY1 + row_min_height); + + // Disable output until user calls TableNextColumn() + table->InnerWindow->SkipItems = true; +} + +// [Internal] Called by TableNextRow() +void ImGui::TableBeginRow(ImGuiTable* table) +{ + ImGuiWindow* window = table->InnerWindow; + IM_ASSERT(!table->IsInsideRow); + + // New row + table->CurrentRow++; + table->CurrentColumn = -1; + table->RowBgColor[0] = table->RowBgColor[1] = IM_COL32_DISABLE; + table->RowCellDataCurrent = -1; + table->IsInsideRow = true; + + // Begin frozen rows + float next_y1 = table->RowPosY2; + if (table->CurrentRow == 0 && table->FreezeRowsCount > 0) + next_y1 = window->DC.CursorPos.y = table->OuterRect.Min.y; + + table->RowPosY1 = table->RowPosY2 = next_y1; + table->RowTextBaseline = 0.0f; + table->RowIndentOffsetX = window->DC.Indent.x - table->HostIndentX; // Lock indent + window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + window->DC.IsSameLine = window->DC.IsSetPos = false; + window->DC.CursorMaxPos.y = next_y1; + + // Making the header BG color non-transparent will allow us to overlay it multiple times when handling smooth dragging. + if (table->RowFlags & ImGuiTableRowFlags_Headers) + { + TableSetBgColor(ImGuiTableBgTarget_RowBg0, GetColorU32(ImGuiCol_TableHeaderBg)); + if (table->CurrentRow == 0) + table->IsUsingHeaders = true; + } +} + +// [Internal] Called by TableNextRow() +void ImGui::TableEndRow(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window == table->InnerWindow); + IM_ASSERT(table->IsInsideRow); + + if (table->CurrentColumn != -1) + TableEndCell(table); + + // Logging + if (g.LogEnabled) + LogRenderedText(NULL, "|"); + + // Position cursor at the bottom of our row so it can be used for e.g. clipping calculation. However it is + // likely that the next call to TableBeginCell() will reposition the cursor to take account of vertical padding. + window->DC.CursorPos.y = table->RowPosY2; + + // Row background fill + const float bg_y1 = table->RowPosY1; + const float bg_y2 = table->RowPosY2; + const bool unfreeze_rows_actual = (table->CurrentRow + 1 == table->FreezeRowsCount); + const bool unfreeze_rows_request = (table->CurrentRow + 1 == table->FreezeRowsRequest); + if (table->CurrentRow == 0) + TableGetInstanceData(table, table->InstanceCurrent)->LastFirstRowHeight = bg_y2 - bg_y1; + + const bool is_visible = (bg_y2 >= table->InnerClipRect.Min.y && bg_y1 <= table->InnerClipRect.Max.y); + if (is_visible) + { + // Decide of background color for the row + ImU32 bg_col0 = 0; + ImU32 bg_col1 = 0; + if (table->RowBgColor[0] != IM_COL32_DISABLE) + bg_col0 = table->RowBgColor[0]; + else if (table->Flags & ImGuiTableFlags_RowBg) + bg_col0 = GetColorU32((table->RowBgColorCounter & 1) ? ImGuiCol_TableRowBgAlt : ImGuiCol_TableRowBg); + if (table->RowBgColor[1] != IM_COL32_DISABLE) + bg_col1 = table->RowBgColor[1]; + + // Decide of top border color + ImU32 border_col = 0; + const float border_size = TABLE_BORDER_SIZE; + if (table->CurrentRow > 0 || table->InnerWindow == table->OuterWindow) + if (table->Flags & ImGuiTableFlags_BordersInnerH) + border_col = (table->LastRowFlags & ImGuiTableRowFlags_Headers) ? table->BorderColorStrong : table->BorderColorLight; + + const bool draw_cell_bg_color = table->RowCellDataCurrent >= 0; + const bool draw_strong_bottom_border = unfreeze_rows_actual; + if ((bg_col0 | bg_col1 | border_col) != 0 || draw_strong_bottom_border || draw_cell_bg_color) + { + // In theory we could call SetWindowClipRectBeforeSetChannel() but since we know TableEndRow() is + // always followed by a change of clipping rectangle we perform the smallest overwrite possible here. + if ((table->Flags & ImGuiTableFlags_NoClip) == 0) + window->DrawList->_CmdHeader.ClipRect = table->Bg0ClipRectForDrawCmd.ToVec4(); + table->DrawSplitter->SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_BG0); + } + + // Draw row background + // We soft/cpu clip this so all backgrounds and borders can share the same clipping rectangle + if (bg_col0 || bg_col1) + { + ImRect row_rect(table->WorkRect.Min.x, bg_y1, table->WorkRect.Max.x, bg_y2); + row_rect.ClipWith(table->BgClipRect); + if (bg_col0 != 0 && row_rect.Min.y < row_rect.Max.y) + window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col0); + if (bg_col1 != 0 && row_rect.Min.y < row_rect.Max.y) + window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col1); + } + + // Draw cell background color + if (draw_cell_bg_color) + { + ImGuiTableCellData* cell_data_end = &table->RowCellData[table->RowCellDataCurrent]; + for (ImGuiTableCellData* cell_data = &table->RowCellData[0]; cell_data <= cell_data_end; cell_data++) + { + // As we render the BG here we need to clip things (for layout we would not) + // FIXME: This cancels the OuterPadding addition done by TableGetCellBgRect(), need to keep it while rendering correctly while scrolling. + const ImGuiTableColumn* column = &table->Columns[cell_data->Column]; + ImRect cell_bg_rect = TableGetCellBgRect(table, cell_data->Column); + cell_bg_rect.ClipWith(table->BgClipRect); + cell_bg_rect.Min.x = ImMax(cell_bg_rect.Min.x, column->ClipRect.Min.x); // So that first column after frozen one gets clipped when scrolling + cell_bg_rect.Max.x = ImMin(cell_bg_rect.Max.x, column->MaxX); + window->DrawList->AddRectFilled(cell_bg_rect.Min, cell_bg_rect.Max, cell_data->BgColor); + } + } + + // Draw top border + if (border_col && bg_y1 >= table->BgClipRect.Min.y && bg_y1 < table->BgClipRect.Max.y) + window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y1), ImVec2(table->BorderX2, bg_y1), border_col, border_size); + + // Draw bottom border at the row unfreezing mark (always strong) + if (draw_strong_bottom_border && bg_y2 >= table->BgClipRect.Min.y && bg_y2 < table->BgClipRect.Max.y) + window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y2), ImVec2(table->BorderX2, bg_y2), table->BorderColorStrong, border_size); + } + + // End frozen rows (when we are past the last frozen row line, teleport cursor and alter clipping rectangle) + // We need to do that in TableEndRow() instead of TableBeginRow() so the list clipper can mark end of row and + // get the new cursor position. + if (unfreeze_rows_request) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + column->NavLayerCurrent = (ImS8)((column_n < table->FreezeColumnsCount) ? ImGuiNavLayer_Menu : ImGuiNavLayer_Main); + } + if (unfreeze_rows_actual) + { + IM_ASSERT(table->IsUnfrozenRows == false); + table->IsUnfrozenRows = true; + + // BgClipRect starts as table->InnerClipRect, reduce it now and make BgClipRectForDrawCmd == BgClipRect + float y0 = ImMax(table->RowPosY2 + 1, window->InnerClipRect.Min.y); + table->BgClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y = ImMin(y0, window->InnerClipRect.Max.y); + table->BgClipRect.Max.y = table->Bg2ClipRectForDrawCmd.Max.y = window->InnerClipRect.Max.y; + table->Bg2DrawChannelCurrent = table->Bg2DrawChannelUnfrozen; + IM_ASSERT(table->Bg2ClipRectForDrawCmd.Min.y <= table->Bg2ClipRectForDrawCmd.Max.y); + + float row_height = table->RowPosY2 - table->RowPosY1; + table->RowPosY2 = window->DC.CursorPos.y = table->WorkRect.Min.y + table->RowPosY2 - table->OuterRect.Min.y; + table->RowPosY1 = table->RowPosY2 - row_height; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + column->DrawChannelCurrent = column->DrawChannelUnfrozen; + column->ClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y; + } + + // Update cliprect ahead of TableBeginCell() so clipper can access to new ClipRect->Min.y + SetWindowClipRectBeforeSetChannel(window, table->Columns[0].ClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, table->Columns[0].DrawChannelCurrent); + } + + if (!(table->RowFlags & ImGuiTableRowFlags_Headers)) + table->RowBgColorCounter++; + table->IsInsideRow = false; +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Columns changes +//------------------------------------------------------------------------- +// - TableGetColumnIndex() +// - TableSetColumnIndex() +// - TableNextColumn() +// - TableBeginCell() [Internal] +// - TableEndCell() [Internal] +//------------------------------------------------------------------------- + +int ImGui::TableGetColumnIndex() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return 0; + return table->CurrentColumn; +} + +// [Public] Append into a specific column +bool ImGui::TableSetColumnIndex(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return false; + + if (table->CurrentColumn != column_n) + { + if (table->CurrentColumn != -1) + TableEndCell(table); + IM_ASSERT(column_n >= 0 && table->ColumnsCount); + TableBeginCell(table, column_n); + } + + // Return whether the column is visible. User may choose to skip submitting items based on this return value, + // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. + return (table->RequestOutputMaskByIndex & ((ImU64)1 << column_n)) != 0; +} + +// [Public] Append into the next column, wrap and create a new row when already on last column +bool ImGui::TableNextColumn() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return false; + + if (table->IsInsideRow && table->CurrentColumn + 1 < table->ColumnsCount) + { + if (table->CurrentColumn != -1) + TableEndCell(table); + TableBeginCell(table, table->CurrentColumn + 1); + } + else + { + TableNextRow(); + TableBeginCell(table, 0); + } + + // Return whether the column is visible. User may choose to skip submitting items based on this return value, + // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. + int column_n = table->CurrentColumn; + return (table->RequestOutputMaskByIndex & ((ImU64)1 << column_n)) != 0; +} + + +// [Internal] Called by TableSetColumnIndex()/TableNextColumn() +// This is called very frequently, so we need to be mindful of unnecessary overhead. +// FIXME-TABLE FIXME-OPT: Could probably shortcut some things for non-active or clipped columns. +void ImGui::TableBeginCell(ImGuiTable* table, int column_n) +{ + ImGuiTableColumn* column = &table->Columns[column_n]; + ImGuiWindow* window = table->InnerWindow; + table->CurrentColumn = column_n; + + // Start position is roughly ~~ CellRect.Min + CellPadding + Indent + float start_x = column->WorkMinX; + if (column->Flags & ImGuiTableColumnFlags_IndentEnable) + start_x += table->RowIndentOffsetX; // ~~ += window.DC.Indent.x - table->HostIndentX, except we locked it for the row. + + window->DC.CursorPos.x = start_x; + window->DC.CursorPos.y = table->RowPosY1 + table->CellPaddingY; + window->DC.CursorMaxPos.x = window->DC.CursorPos.x; + window->DC.ColumnsOffset.x = start_x - window->Pos.x - window->DC.Indent.x; // FIXME-WORKRECT + window->DC.CurrLineTextBaseOffset = table->RowTextBaseline; + window->DC.NavLayerCurrent = (ImGuiNavLayer)column->NavLayerCurrent; + + window->WorkRect.Min.y = window->DC.CursorPos.y; + window->WorkRect.Min.x = column->WorkMinX; + window->WorkRect.Max.x = column->WorkMaxX; + window->DC.ItemWidth = column->ItemWidth; + + // To allow ImGuiListClipper to function we propagate our row height + if (!column->IsEnabled) + window->DC.CursorPos.y = ImMax(window->DC.CursorPos.y, table->RowPosY2); + + window->SkipItems = column->IsSkipItems; + if (column->IsSkipItems) + { + ImGuiContext& g = *GImGui; + g.LastItemData.ID = 0; + g.LastItemData.StatusFlags = 0; + } + + if (table->Flags & ImGuiTableFlags_NoClip) + { + // FIXME: if we end up drawing all borders/bg in EndTable, could remove this and just assert that channel hasn't changed. + table->DrawSplitter->SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); + //IM_ASSERT(table->DrawSplitter._Current == TABLE_DRAW_CHANNEL_NOCLIP); + } + else + { + // FIXME-TABLE: Could avoid this if draw channel is dummy channel? + SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); + } + + // Logging + ImGuiContext& g = *GImGui; + if (g.LogEnabled && !column->IsSkipItems) + { + LogRenderedText(&window->DC.CursorPos, "|"); + g.LogLinePosY = FLT_MAX; + } +} + +// [Internal] Called by TableNextRow()/TableSetColumnIndex()/TableNextColumn() +void ImGui::TableEndCell(ImGuiTable* table) +{ + ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; + ImGuiWindow* window = table->InnerWindow; + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + // Report maximum position so we can infer content size per column. + float* p_max_pos_x; + if (table->RowFlags & ImGuiTableRowFlags_Headers) + p_max_pos_x = &column->ContentMaxXHeadersUsed; // Useful in case user submit contents in header row that is not a TableHeader() call + else + p_max_pos_x = table->IsUnfrozenRows ? &column->ContentMaxXUnfrozen : &column->ContentMaxXFrozen; + *p_max_pos_x = ImMax(*p_max_pos_x, window->DC.CursorMaxPos.x); + table->RowPosY2 = ImMax(table->RowPosY2, window->DC.CursorMaxPos.y + table->CellPaddingY); + column->ItemWidth = window->DC.ItemWidth; + + // Propagate text baseline for the entire row + // FIXME-TABLE: Here we propagate text baseline from the last line of the cell.. instead of the first one. + table->RowTextBaseline = ImMax(table->RowTextBaseline, window->DC.PrevLineTextBaseOffset); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Columns width management +//------------------------------------------------------------------------- +// - TableGetMaxColumnWidth() [Internal] +// - TableGetColumnWidthAuto() [Internal] +// - TableSetColumnWidth() +// - TableSetColumnWidthAutoSingle() [Internal] +// - TableSetColumnWidthAutoAll() [Internal] +// - TableUpdateColumnsWeightFromWidth() [Internal] +//------------------------------------------------------------------------- + +// Maximum column content width given current layout. Use column->MinX so this value on a per-column basis. +float ImGui::TableGetMaxColumnWidth(const ImGuiTable* table, int column_n) +{ + const ImGuiTableColumn* column = &table->Columns[column_n]; + float max_width = FLT_MAX; + const float min_column_distance = table->MinColumnWidth + table->CellPaddingX * 2.0f + table->CellSpacingX1 + table->CellSpacingX2; + if (table->Flags & ImGuiTableFlags_ScrollX) + { + // Frozen columns can't reach beyond visible width else scrolling will naturally break. + // (we use DisplayOrder as within a set of multiple frozen column reordering is possible) + if (column->DisplayOrder < table->FreezeColumnsRequest) + { + max_width = (table->InnerClipRect.Max.x - (table->FreezeColumnsRequest - column->DisplayOrder) * min_column_distance) - column->MinX; + max_width = max_width - table->OuterPaddingX - table->CellPaddingX - table->CellSpacingX2; + } + } + else if ((table->Flags & ImGuiTableFlags_NoKeepColumnsVisible) == 0) + { + // If horizontal scrolling if disabled, we apply a final lossless shrinking of columns in order to make + // sure they are all visible. Because of this we also know that all of the columns will always fit in + // table->WorkRect and therefore in table->InnerRect (because ScrollX is off) + // FIXME-TABLE: This is solved incorrectly but also quite a difficult problem to fix as we also want ClipRect width to match. + // See "table_width_distrib" and "table_width_keep_visible" tests + max_width = table->WorkRect.Max.x - (table->ColumnsEnabledCount - column->IndexWithinEnabledSet - 1) * min_column_distance - column->MinX; + //max_width -= table->CellSpacingX1; + max_width -= table->CellSpacingX2; + max_width -= table->CellPaddingX * 2.0f; + max_width -= table->OuterPaddingX; + } + return max_width; +} + +// Note this is meant to be stored in column->WidthAuto, please generally use the WidthAuto field +float ImGui::TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column) +{ + const float content_width_body = ImMax(column->ContentMaxXFrozen, column->ContentMaxXUnfrozen) - column->WorkMinX; + const float content_width_headers = column->ContentMaxXHeadersIdeal - column->WorkMinX; + float width_auto = content_width_body; + if (!(column->Flags & ImGuiTableColumnFlags_NoHeaderWidth)) + width_auto = ImMax(width_auto, content_width_headers); + + // Non-resizable fixed columns preserve their requested width + if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f) + if (!(table->Flags & ImGuiTableFlags_Resizable) || (column->Flags & ImGuiTableColumnFlags_NoResize)) + width_auto = column->InitStretchWeightOrWidth; + + return ImMax(width_auto, table->MinColumnWidth); +} + +// 'width' = inner column width, without padding +void ImGui::TableSetColumnWidth(int column_n, float width) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && table->IsLayoutLocked == false); + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiTableColumn* column_0 = &table->Columns[column_n]; + float column_0_width = width; + + // Apply constraints early + // Compare both requested and actual given width to avoid overwriting requested width when column is stuck (minimum size, bounded) + IM_ASSERT(table->MinColumnWidth > 0.0f); + const float min_width = table->MinColumnWidth; + const float max_width = ImMax(min_width, TableGetMaxColumnWidth(table, column_n)); + column_0_width = ImClamp(column_0_width, min_width, max_width); + if (column_0->WidthGiven == column_0_width || column_0->WidthRequest == column_0_width) + return; + + //IMGUI_DEBUG_PRINT("TableSetColumnWidth(%d, %.1f->%.1f)\n", column_0_idx, column_0->WidthGiven, column_0_width); + ImGuiTableColumn* column_1 = (column_0->NextEnabledColumn != -1) ? &table->Columns[column_0->NextEnabledColumn] : NULL; + + // In this surprisingly not simple because of how we support mixing Fixed and multiple Stretch columns. + // - All fixed: easy. + // - All stretch: easy. + // - One or more fixed + one stretch: easy. + // - One or more fixed + more than one stretch: tricky. + // Qt when manual resize is enabled only support a single _trailing_ stretch column. + + // When forwarding resize from Wn| to Fn+1| we need to be considerate of the _NoResize flag on Fn+1. + // FIXME-TABLE: Find a way to rewrite all of this so interactions feel more consistent for the user. + // Scenarios: + // - F1 F2 F3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. Subsequent columns will be offset. + // - F1 F2 F3 resize from F3| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered. + // - F1 F2 W3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered, but it doesn't make much sense as the Stretch column will always be minimal size. + // - F1 F2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 W2 W3 resize from W1| or W2| --> ok + // - W1 W2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 F2 F3 resize from F3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 F2 resize from F2| --> ok: no-op (disabled by Resize Rule 1) + // - W1 W2 F3 resize from W1| or W2| --> ok + // - W1 F2 W3 resize from W1| or F2| --> ok + // - F1 W2 F3 resize from W2| --> ok + // - F1 W3 F2 resize from W3| --> ok + // - W1 F2 F3 resize from W1| --> ok: equivalent to resizing |F2. F3 will not move. + // - W1 F2 F3 resize from F2| --> ok + // All resizes from a Wx columns are locking other columns. + + // Possible improvements: + // - W1 W2 W3 resize W1| --> to not be stuck, both W2 and W3 would stretch down. Seems possible to fix. Would be most beneficial to simplify resize of all-weighted columns. + // - W3 F1 F2 resize W3| --> to not be stuck past F1|, both F1 and F2 would need to stretch down, which would be lossy or ambiguous. Seems hard to fix. + + // [Resize Rule 1] Can't resize from right of right-most visible column if there is any Stretch column. Implemented in TableUpdateLayout(). + + // If we have all Fixed columns OR resizing a Fixed column that doesn't come after a Stretch one, we can do an offsetting resize. + // This is the preferred resize path + if (column_0->Flags & ImGuiTableColumnFlags_WidthFixed) + if (!column_1 || table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder >= column_0->DisplayOrder) + { + column_0->WidthRequest = column_0_width; + table->IsSettingsDirty = true; + return; + } + + // We can also use previous column if there's no next one (this is used when doing an auto-fit on the right-most stretch column) + if (column_1 == NULL) + column_1 = (column_0->PrevEnabledColumn != -1) ? &table->Columns[column_0->PrevEnabledColumn] : NULL; + if (column_1 == NULL) + return; + + // Resizing from right-side of a Stretch column before a Fixed column forward sizing to left-side of fixed column. + // (old_a + old_b == new_a + new_b) --> (new_a == old_a + old_b - new_b) + float column_1_width = ImMax(column_1->WidthRequest - (column_0_width - column_0->WidthRequest), min_width); + column_0_width = column_0->WidthRequest + column_1->WidthRequest - column_1_width; + IM_ASSERT(column_0_width > 0.0f && column_1_width > 0.0f); + column_0->WidthRequest = column_0_width; + column_1->WidthRequest = column_1_width; + if ((column_0->Flags | column_1->Flags) & ImGuiTableColumnFlags_WidthStretch) + TableUpdateColumnsWeightFromWidth(table); + table->IsSettingsDirty = true; +} + +// Disable clipping then auto-fit, will take 2 frames +// (we don't take a shortcut for unclipped columns to reduce inconsistencies when e.g. resizing multiple columns) +void ImGui::TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n) +{ + // Single auto width uses auto-fit + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled) + return; + column->CannotSkipItemsQueue = (1 << 0); + table->AutoFitSingleColumn = (ImGuiTableColumnIdx)column_n; +} + +void ImGui::TableSetColumnWidthAutoAll(ImGuiTable* table) +{ + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) // Cannot reset weight of hidden stretch column + continue; + column->CannotSkipItemsQueue = (1 << 0); + column->AutoFitQueue = (1 << 1); + } +} + +void ImGui::TableUpdateColumnsWeightFromWidth(ImGuiTable* table) +{ + IM_ASSERT(table->LeftMostStretchedColumn != -1 && table->RightMostStretchedColumn != -1); + + // Measure existing quantity + float visible_weight = 0.0f; + float visible_width = 0.0f; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + IM_ASSERT(column->StretchWeight > 0.0f); + visible_weight += column->StretchWeight; + visible_width += column->WidthRequest; + } + IM_ASSERT(visible_weight > 0.0f && visible_width > 0.0f); + + // Apply new weights + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + column->StretchWeight = (column->WidthRequest / visible_width) * visible_weight; + IM_ASSERT(column->StretchWeight > 0.0f); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Drawing +//------------------------------------------------------------------------- +// - TablePushBackgroundChannel() [Internal] +// - TablePopBackgroundChannel() [Internal] +// - TableSetupDrawChannels() [Internal] +// - TableMergeDrawChannels() [Internal] +// - TableDrawBorders() [Internal] +//------------------------------------------------------------------------- + +// Bg2 is used by Selectable (and possibly other widgets) to render to the background. +// Unlike our Bg0/1 channel which we uses for RowBg/CellBg/Borders and where we guarantee all shapes to be CPU-clipped, the Bg2 channel being widgets-facing will rely on regular ClipRect. +void ImGui::TablePushBackgroundChannel() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiTable* table = g.CurrentTable; + + // Optimization: avoid SetCurrentChannel() + PushClipRect() + table->HostBackupInnerClipRect = window->ClipRect; + SetWindowClipRectBeforeSetChannel(window, table->Bg2ClipRectForDrawCmd); + table->DrawSplitter->SetCurrentChannel(window->DrawList, table->Bg2DrawChannelCurrent); +} + +void ImGui::TablePopBackgroundChannel() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiTable* table = g.CurrentTable; + ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + SetWindowClipRectBeforeSetChannel(window, table->HostBackupInnerClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); +} + +// Allocate draw channels. Called by TableUpdateLayout() +// - We allocate them following storage order instead of display order so reordering columns won't needlessly +// increase overall dormant memory cost. +// - We isolate headers draw commands in their own channels instead of just altering clip rects. +// This is in order to facilitate merging of draw commands. +// - After crossing FreezeRowsCount, all columns see their current draw channel changed to a second set of channels. +// - We only use the dummy draw channel so we can push a null clipping rectangle into it without affecting other +// channels, while simplifying per-row/per-cell overhead. It will be empty and discarded when merged. +// - We allocate 1 or 2 background draw channels. This is because we know TablePushBackgroundChannel() is only used for +// horizontal spanning. If we allowed vertical spanning we'd need one background draw channel per merge group (1-4). +// Draw channel allocation (before merging): +// - NoClip --> 2+D+1 channels: bg0/1 + bg2 + foreground (same clip rect == always 1 draw call) +// - Clip --> 2+D+N channels +// - FreezeRows --> 2+D+N*2 (unless scrolling value is zero) +// - FreezeRows || FreezeColunns --> 3+D+N*2 (unless scrolling value is zero) +// Where D is 1 if any column is clipped or hidden (dummy channel) otherwise 0. +void ImGui::TableSetupDrawChannels(ImGuiTable* table) +{ + const int freeze_row_multiplier = (table->FreezeRowsCount > 0) ? 2 : 1; + const int channels_for_row = (table->Flags & ImGuiTableFlags_NoClip) ? 1 : table->ColumnsEnabledCount; + const int channels_for_bg = 1 + 1 * freeze_row_multiplier; + const int channels_for_dummy = (table->ColumnsEnabledCount < table->ColumnsCount || table->VisibleMaskByIndex != table->EnabledMaskByIndex) ? +1 : 0; + const int channels_total = channels_for_bg + (channels_for_row * freeze_row_multiplier) + channels_for_dummy; + table->DrawSplitter->Split(table->InnerWindow->DrawList, channels_total); + table->DummyDrawChannel = (ImGuiTableDrawChannelIdx)((channels_for_dummy > 0) ? channels_total - 1 : -1); + table->Bg2DrawChannelCurrent = TABLE_DRAW_CHANNEL_BG2_FROZEN; + table->Bg2DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)((table->FreezeRowsCount > 0) ? 2 + channels_for_row : TABLE_DRAW_CHANNEL_BG2_FROZEN); + + int draw_channel_current = 2; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->IsVisibleX && column->IsVisibleY) + { + column->DrawChannelFrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current); + column->DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current + (table->FreezeRowsCount > 0 ? channels_for_row + 1 : 0)); + if (!(table->Flags & ImGuiTableFlags_NoClip)) + draw_channel_current++; + } + else + { + column->DrawChannelFrozen = column->DrawChannelUnfrozen = table->DummyDrawChannel; + } + column->DrawChannelCurrent = column->DrawChannelFrozen; + } + + // Initial draw cmd starts with a BgClipRect that matches the one of its host, to facilitate merge draw commands by default. + // All our cell highlight are manually clipped with BgClipRect. When unfreezing it will be made smaller to fit scrolling rect. + // (This technically isn't part of setting up draw channels, but is reasonably related to be done here) + table->BgClipRect = table->InnerClipRect; + table->Bg0ClipRectForDrawCmd = table->OuterWindow->ClipRect; + table->Bg2ClipRectForDrawCmd = table->HostClipRect; + IM_ASSERT(table->BgClipRect.Min.y <= table->BgClipRect.Max.y); +} + +// This function reorder draw channels based on matching clip rectangle, to facilitate merging them. Called by EndTable(). +// For simplicity we call it TableMergeDrawChannels() but in fact it only reorder channels + overwrite ClipRect, +// actual merging is done by table->DrawSplitter.Merge() which is called right after TableMergeDrawChannels(). +// +// Columns where the contents didn't stray off their local clip rectangle can be merged. To achieve +// this we merge their clip rect and make them contiguous in the channel list, so they can be merged +// by the call to DrawSplitter.Merge() following to the call to this function. +// We reorder draw commands by arranging them into a maximum of 4 distinct groups: +// +// 1 group: 2 groups: 2 groups: 4 groups: +// [ 0. ] no freeze [ 0. ] row freeze [ 01 ] col freeze [ 01 ] row+col freeze +// [ .. ] or no scroll [ 2. ] and v-scroll [ .. ] and h-scroll [ 23 ] and v+h-scroll +// +// Each column itself can use 1 channel (row freeze disabled) or 2 channels (row freeze enabled). +// When the contents of a column didn't stray off its limit, we move its channels into the corresponding group +// based on its position (within frozen rows/columns groups or not). +// At the end of the operation our 1-4 groups will each have a ImDrawCmd using the same ClipRect. +// This function assume that each column are pointing to a distinct draw channel, +// otherwise merge_group->ChannelsCount will not match set bit count of merge_group->ChannelsMask. +// +// Column channels will not be merged into one of the 1-4 groups in the following cases: +// - The contents stray off its clipping rectangle (we only compare the MaxX value, not the MinX value). +// Direct ImDrawList calls won't be taken into account by default, if you use them make sure the ImGui:: bounds +// matches, by e.g. calling SetCursorScreenPos(). +// - The channel uses more than one draw command itself. We drop all our attempt at merging stuff here.. +// we could do better but it's going to be rare and probably not worth the hassle. +// Columns for which the draw channel(s) haven't been merged with other will use their own ImDrawCmd. +// +// This function is particularly tricky to understand.. take a breath. +void ImGui::TableMergeDrawChannels(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImDrawListSplitter* splitter = table->DrawSplitter; + const bool has_freeze_v = (table->FreezeRowsCount > 0); + const bool has_freeze_h = (table->FreezeColumnsCount > 0); + IM_ASSERT(splitter->_Current == 0); + + // Track which groups we are going to attempt to merge, and which channels goes into each group. + struct MergeGroup + { + ImRect ClipRect; + int ChannelsCount; + ImBitArray ChannelsMask; + + MergeGroup() { ChannelsCount = 0; } + }; + int merge_group_mask = 0x00; + MergeGroup merge_groups[4]; + + // 1. Scan channels and take note of those which can be merged + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if ((table->VisibleMaskByIndex & ((ImU64)1 << column_n)) == 0) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + const int merge_group_sub_count = has_freeze_v ? 2 : 1; + for (int merge_group_sub_n = 0; merge_group_sub_n < merge_group_sub_count; merge_group_sub_n++) + { + const int channel_no = (merge_group_sub_n == 0) ? column->DrawChannelFrozen : column->DrawChannelUnfrozen; + + // Don't attempt to merge if there are multiple draw calls within the column + ImDrawChannel* src_channel = &splitter->_Channels[channel_no]; + if (src_channel->_CmdBuffer.Size > 0 && src_channel->_CmdBuffer.back().ElemCount == 0 && src_channel->_CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() + src_channel->_CmdBuffer.pop_back(); + if (src_channel->_CmdBuffer.Size != 1) + continue; + + // Find out the width of this merge group and check if it will fit in our column + // (note that we assume that rendering didn't stray on the left direction. we should need a CursorMinPos to detect it) + if (!(column->Flags & ImGuiTableColumnFlags_NoClip)) + { + float content_max_x; + if (!has_freeze_v) + content_max_x = ImMax(column->ContentMaxXUnfrozen, column->ContentMaxXHeadersUsed); // No row freeze + else if (merge_group_sub_n == 0) + content_max_x = ImMax(column->ContentMaxXFrozen, column->ContentMaxXHeadersUsed); // Row freeze: use width before freeze + else + content_max_x = column->ContentMaxXUnfrozen; // Row freeze: use width after freeze + if (content_max_x > column->ClipRect.Max.x) + continue; + } + + const int merge_group_n = (has_freeze_h && column_n < table->FreezeColumnsCount ? 0 : 1) + (has_freeze_v && merge_group_sub_n == 0 ? 0 : 2); + IM_ASSERT(channel_no < IMGUI_TABLE_MAX_DRAW_CHANNELS); + MergeGroup* merge_group = &merge_groups[merge_group_n]; + if (merge_group->ChannelsCount == 0) + merge_group->ClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); + merge_group->ChannelsMask.SetBit(channel_no); + merge_group->ChannelsCount++; + merge_group->ClipRect.Add(src_channel->_CmdBuffer[0].ClipRect); + merge_group_mask |= (1 << merge_group_n); + } + + // Invalidate current draw channel + // (we don't clear DrawChannelFrozen/DrawChannelUnfrozen solely to facilitate debugging/later inspection of data) + column->DrawChannelCurrent = (ImGuiTableDrawChannelIdx)-1; + } + + // [DEBUG] Display merge groups +#if 0 + if (g.IO.KeyShift) + for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) + { + MergeGroup* merge_group = &merge_groups[merge_group_n]; + if (merge_group->ChannelsCount == 0) + continue; + char buf[32]; + ImFormatString(buf, 32, "MG%d:%d", merge_group_n, merge_group->ChannelsCount); + ImVec2 text_pos = merge_group->ClipRect.Min + ImVec2(4, 4); + ImVec2 text_size = CalcTextSize(buf, NULL); + GetForegroundDrawList()->AddRectFilled(text_pos, text_pos + text_size, IM_COL32(0, 0, 0, 255)); + GetForegroundDrawList()->AddText(text_pos, IM_COL32(255, 255, 0, 255), buf, NULL); + GetForegroundDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 255, 0, 255)); + } +#endif + + // 2. Rewrite channel list in our preferred order + if (merge_group_mask != 0) + { + // We skip channel 0 (Bg0/Bg1) and 1 (Bg2 frozen) from the shuffling since they won't move - see channels allocation in TableSetupDrawChannels(). + const int LEADING_DRAW_CHANNELS = 2; + g.DrawChannelsTempMergeBuffer.resize(splitter->_Count - LEADING_DRAW_CHANNELS); // Use shared temporary storage so the allocation gets amortized + ImDrawChannel* dst_tmp = g.DrawChannelsTempMergeBuffer.Data; + ImBitArray remaining_mask; // We need 132-bit of storage + remaining_mask.SetBitRange(LEADING_DRAW_CHANNELS, splitter->_Count); + remaining_mask.ClearBit(table->Bg2DrawChannelUnfrozen); + IM_ASSERT(has_freeze_v == false || table->Bg2DrawChannelUnfrozen != TABLE_DRAW_CHANNEL_BG2_FROZEN); + int remaining_count = splitter->_Count - (has_freeze_v ? LEADING_DRAW_CHANNELS + 1 : LEADING_DRAW_CHANNELS); + //ImRect host_rect = (table->InnerWindow == table->OuterWindow) ? table->InnerClipRect : table->HostClipRect; + ImRect host_rect = table->HostClipRect; + for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) + { + if (int merge_channels_count = merge_groups[merge_group_n].ChannelsCount) + { + MergeGroup* merge_group = &merge_groups[merge_group_n]; + ImRect merge_clip_rect = merge_group->ClipRect; + + // Extend outer-most clip limits to match those of host, so draw calls can be merged even if + // outer-most columns have some outer padding offsetting them from their parent ClipRect. + // The principal cases this is dealing with are: + // - On a same-window table (not scrolling = single group), all fitting columns ClipRect -> will extend and match host ClipRect -> will merge + // - Columns can use padding and have left-most ClipRect.Min.x and right-most ClipRect.Max.x != from host ClipRect -> will extend and match host ClipRect -> will merge + // FIXME-TABLE FIXME-WORKRECT: We are wasting a merge opportunity on tables without scrolling if column doesn't fit + // within host clip rect, solely because of the half-padding difference between window->WorkRect and window->InnerClipRect. + if ((merge_group_n & 1) == 0 || !has_freeze_h) + merge_clip_rect.Min.x = ImMin(merge_clip_rect.Min.x, host_rect.Min.x); + if ((merge_group_n & 2) == 0 || !has_freeze_v) + merge_clip_rect.Min.y = ImMin(merge_clip_rect.Min.y, host_rect.Min.y); + if ((merge_group_n & 1) != 0) + merge_clip_rect.Max.x = ImMax(merge_clip_rect.Max.x, host_rect.Max.x); + if ((merge_group_n & 2) != 0 && (table->Flags & ImGuiTableFlags_NoHostExtendY) == 0) + merge_clip_rect.Max.y = ImMax(merge_clip_rect.Max.y, host_rect.Max.y); +#if 0 + GetOverlayDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 0, 0, 200), 0.0f, 0, 1.0f); + GetOverlayDrawList()->AddLine(merge_group->ClipRect.Min, merge_clip_rect.Min, IM_COL32(255, 100, 0, 200)); + GetOverlayDrawList()->AddLine(merge_group->ClipRect.Max, merge_clip_rect.Max, IM_COL32(255, 100, 0, 200)); +#endif + remaining_count -= merge_group->ChannelsCount; + for (int n = 0; n < IM_ARRAYSIZE(remaining_mask.Storage); n++) + remaining_mask.Storage[n] &= ~merge_group->ChannelsMask.Storage[n]; + for (int n = 0; n < splitter->_Count && merge_channels_count != 0; n++) + { + // Copy + overwrite new clip rect + if (!merge_group->ChannelsMask.TestBit(n)) + continue; + merge_group->ChannelsMask.ClearBit(n); + merge_channels_count--; + + ImDrawChannel* channel = &splitter->_Channels[n]; + IM_ASSERT(channel->_CmdBuffer.Size == 1 && merge_clip_rect.Contains(ImRect(channel->_CmdBuffer[0].ClipRect))); + channel->_CmdBuffer[0].ClipRect = merge_clip_rect.ToVec4(); + memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); + } + } + + // Make sure Bg2DrawChannelUnfrozen appears in the middle of our groups (whereas Bg0/Bg1 and Bg2 frozen are fixed to 0 and 1) + if (merge_group_n == 1 && has_freeze_v) + memcpy(dst_tmp++, &splitter->_Channels[table->Bg2DrawChannelUnfrozen], sizeof(ImDrawChannel)); + } + + // Append unmergeable channels that we didn't reorder at the end of the list + for (int n = 0; n < splitter->_Count && remaining_count != 0; n++) + { + if (!remaining_mask.TestBit(n)) + continue; + ImDrawChannel* channel = &splitter->_Channels[n]; + memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); + remaining_count--; + } + IM_ASSERT(dst_tmp == g.DrawChannelsTempMergeBuffer.Data + g.DrawChannelsTempMergeBuffer.Size); + memcpy(splitter->_Channels.Data + LEADING_DRAW_CHANNELS, g.DrawChannelsTempMergeBuffer.Data, (splitter->_Count - LEADING_DRAW_CHANNELS) * sizeof(ImDrawChannel)); + } +} + +// FIXME-TABLE: This is a mess, need to redesign how we render borders (as some are also done in TableEndRow) +void ImGui::TableDrawBorders(ImGuiTable* table) +{ + ImGuiWindow* inner_window = table->InnerWindow; + if (!table->OuterWindow->ClipRect.Overlaps(table->OuterRect)) + return; + + ImDrawList* inner_drawlist = inner_window->DrawList; + table->DrawSplitter->SetCurrentChannel(inner_drawlist, TABLE_DRAW_CHANNEL_BG0); + inner_drawlist->PushClipRect(table->Bg0ClipRectForDrawCmd.Min, table->Bg0ClipRectForDrawCmd.Max, false); + + // Draw inner border and resizing feedback + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + const float border_size = TABLE_BORDER_SIZE; + const float draw_y1 = table->InnerRect.Min.y; + const float draw_y2_body = table->InnerRect.Max.y; + const float draw_y2_head = table->IsUsingHeaders ? ImMin(table->InnerRect.Max.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table_instance->LastFirstRowHeight) : draw_y1; + if (table->Flags & ImGuiTableFlags_BordersInnerV) + { + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + if (!(table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n))) + continue; + + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + const bool is_hovered = (table->HoveredColumnBorder == column_n); + const bool is_resized = (table->ResizedColumn == column_n) && (table->InstanceInteracted == table->InstanceCurrent); + const bool is_resizable = (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) == 0; + const bool is_frozen_separator = (table->FreezeColumnsCount == order_n + 1); + if (column->MaxX > table->InnerClipRect.Max.x && !is_resized) + continue; + + // Decide whether right-most column is visible + if (column->NextEnabledColumn == -1 && !is_resizable) + if ((table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame || (table->Flags & ImGuiTableFlags_NoHostExtendX)) + continue; + if (column->MaxX <= column->ClipRect.Min.x) // FIXME-TABLE FIXME-STYLE: Assume BorderSize==1, this is problematic if we want to increase the border size.. + continue; + + // Draw in outer window so right-most column won't be clipped + // Always draw full height border when being resized/hovered, or on the delimitation of frozen column scrolling. + ImU32 col; + float draw_y2; + if (is_hovered || is_resized || is_frozen_separator) + { + draw_y2 = draw_y2_body; + col = is_resized ? GetColorU32(ImGuiCol_SeparatorActive) : is_hovered ? GetColorU32(ImGuiCol_SeparatorHovered) : table->BorderColorStrong; + } + else + { + draw_y2 = (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)) ? draw_y2_head : draw_y2_body; + col = (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)) ? table->BorderColorStrong : table->BorderColorLight; + } + + if (draw_y2 > draw_y1) + inner_drawlist->AddLine(ImVec2(column->MaxX, draw_y1), ImVec2(column->MaxX, draw_y2), col, border_size); + } + } + + // Draw outer border + // FIXME: could use AddRect or explicit VLine/HLine helper? + if (table->Flags & ImGuiTableFlags_BordersOuter) + { + // Display outer border offset by 1 which is a simple way to display it without adding an extra draw call + // (Without the offset, in outer_window it would be rendered behind cells, because child windows are above their + // parent. In inner_window, it won't reach out over scrollbars. Another weird solution would be to display part + // of it in inner window, and the part that's over scrollbars in the outer window..) + // Either solution currently won't allow us to use a larger border size: the border would clipped. + const ImRect outer_border = table->OuterRect; + const ImU32 outer_col = table->BorderColorStrong; + if ((table->Flags & ImGuiTableFlags_BordersOuter) == ImGuiTableFlags_BordersOuter) + { + inner_drawlist->AddRect(outer_border.Min, outer_border.Max, outer_col, 0.0f, 0, border_size); + } + else if (table->Flags & ImGuiTableFlags_BordersOuterV) + { + inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Min.x, outer_border.Max.y), outer_col, border_size); + inner_drawlist->AddLine(ImVec2(outer_border.Max.x, outer_border.Min.y), outer_border.Max, outer_col, border_size); + } + else if (table->Flags & ImGuiTableFlags_BordersOuterH) + { + inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Max.x, outer_border.Min.y), outer_col, border_size); + inner_drawlist->AddLine(ImVec2(outer_border.Min.x, outer_border.Max.y), outer_border.Max, outer_col, border_size); + } + } + if ((table->Flags & ImGuiTableFlags_BordersInnerH) && table->RowPosY2 < table->OuterRect.Max.y) + { + // Draw bottom-most row border + const float border_y = table->RowPosY2; + if (border_y >= table->BgClipRect.Min.y && border_y < table->BgClipRect.Max.y) + inner_drawlist->AddLine(ImVec2(table->BorderX1, border_y), ImVec2(table->BorderX2, border_y), table->BorderColorLight, border_size); + } + + inner_drawlist->PopClipRect(); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Sorting +//------------------------------------------------------------------------- +// - TableGetSortSpecs() +// - TableFixColumnSortDirection() [Internal] +// - TableGetColumnNextSortDirection() [Internal] +// - TableSetColumnSortDirection() [Internal] +// - TableSortSpecsSanitize() [Internal] +// - TableSortSpecsBuild() [Internal] +//------------------------------------------------------------------------- + +// Return NULL if no sort specs (most often when ImGuiTableFlags_Sortable is not set) +// You can sort your data again when 'SpecsChanged == true'. It will be true with sorting specs have changed since +// last call, or the first time. +// Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable()! +ImGuiTableSortSpecs* ImGui::TableGetSortSpecs() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL); + + if (!(table->Flags & ImGuiTableFlags_Sortable)) + return NULL; + + // Require layout (in case TableHeadersRow() hasn't been called) as it may alter IsSortSpecsDirty in some paths. + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + TableSortSpecsBuild(table); + + return &table->SortSpecs; +} + +static inline ImGuiSortDirection TableGetColumnAvailSortDirection(ImGuiTableColumn* column, int n) +{ + IM_ASSERT(n < column->SortDirectionsAvailCount); + return (column->SortDirectionsAvailList >> (n << 1)) & 0x03; +} + +// Fix sort direction if currently set on a value which is unavailable (e.g. activating NoSortAscending/NoSortDescending) +void ImGui::TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column) +{ + if (column->SortOrder == -1 || (column->SortDirectionsAvailMask & (1 << column->SortDirection)) != 0) + return; + column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); + table->IsSortSpecsDirty = true; +} + +// Calculate next sort direction that would be set after clicking the column +// - If the PreferSortDescending flag is set, we will default to a Descending direction on the first click. +// - Note that the PreferSortAscending flag is never checked, it is essentially the default and therefore a no-op. +IM_STATIC_ASSERT(ImGuiSortDirection_None == 0 && ImGuiSortDirection_Ascending == 1 && ImGuiSortDirection_Descending == 2); +ImGuiSortDirection ImGui::TableGetColumnNextSortDirection(ImGuiTableColumn* column) +{ + IM_ASSERT(column->SortDirectionsAvailCount > 0); + if (column->SortOrder == -1) + return TableGetColumnAvailSortDirection(column, 0); + for (int n = 0; n < 3; n++) + if (column->SortDirection == TableGetColumnAvailSortDirection(column, n)) + return TableGetColumnAvailSortDirection(column, (n + 1) % column->SortDirectionsAvailCount); + IM_ASSERT(0); + return ImGuiSortDirection_None; +} + +// Note that the NoSortAscending/NoSortDescending flags are processed in TableSortSpecsSanitize(), and they may change/revert +// the value of SortDirection. We could technically also do it here but it would be unnecessary and duplicate code. +void ImGui::TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + + if (!(table->Flags & ImGuiTableFlags_SortMulti)) + append_to_sort_specs = false; + if (!(table->Flags & ImGuiTableFlags_SortTristate)) + IM_ASSERT(sort_direction != ImGuiSortDirection_None); + + ImGuiTableColumnIdx sort_order_max = 0; + if (append_to_sort_specs) + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + sort_order_max = ImMax(sort_order_max, table->Columns[other_column_n].SortOrder); + + ImGuiTableColumn* column = &table->Columns[column_n]; + column->SortDirection = (ImU8)sort_direction; + if (column->SortDirection == ImGuiSortDirection_None) + column->SortOrder = -1; + else if (column->SortOrder == -1 || !append_to_sort_specs) + column->SortOrder = append_to_sort_specs ? sort_order_max + 1 : 0; + + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + { + ImGuiTableColumn* other_column = &table->Columns[other_column_n]; + if (other_column != column && !append_to_sort_specs) + other_column->SortOrder = -1; + TableFixColumnSortDirection(table, other_column); + } + table->IsSettingsDirty = true; + table->IsSortSpecsDirty = true; +} + +void ImGui::TableSortSpecsSanitize(ImGuiTable* table) +{ + IM_ASSERT(table->Flags & ImGuiTableFlags_Sortable); + + // Clear SortOrder from hidden column and verify that there's no gap or duplicate. + int sort_order_count = 0; + ImU64 sort_order_mask = 0x00; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->SortOrder != -1 && !column->IsEnabled) + column->SortOrder = -1; + if (column->SortOrder == -1) + continue; + sort_order_count++; + sort_order_mask |= ((ImU64)1 << column->SortOrder); + IM_ASSERT(sort_order_count < (int)sizeof(sort_order_mask) * 8); + } + + const bool need_fix_linearize = ((ImU64)1 << sort_order_count) != (sort_order_mask + 1); + const bool need_fix_single_sort_order = (sort_order_count > 1) && !(table->Flags & ImGuiTableFlags_SortMulti); + if (need_fix_linearize || need_fix_single_sort_order) + { + ImU64 fixed_mask = 0x00; + for (int sort_n = 0; sort_n < sort_order_count; sort_n++) + { + // Fix: Rewrite sort order fields if needed so they have no gap or duplicate. + // (e.g. SortOrder 0 disappeared, SortOrder 1..2 exists --> rewrite then as SortOrder 0..1) + int column_with_smallest_sort_order = -1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if ((fixed_mask & ((ImU64)1 << (ImU64)column_n)) == 0 && table->Columns[column_n].SortOrder != -1) + if (column_with_smallest_sort_order == -1 || table->Columns[column_n].SortOrder < table->Columns[column_with_smallest_sort_order].SortOrder) + column_with_smallest_sort_order = column_n; + IM_ASSERT(column_with_smallest_sort_order != -1); + fixed_mask |= ((ImU64)1 << column_with_smallest_sort_order); + table->Columns[column_with_smallest_sort_order].SortOrder = (ImGuiTableColumnIdx)sort_n; + + // Fix: Make sure only one column has a SortOrder if ImGuiTableFlags_MultiSortable is not set. + if (need_fix_single_sort_order) + { + sort_order_count = 1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (column_n != column_with_smallest_sort_order) + table->Columns[column_n].SortOrder = -1; + break; + } + } + } + + // Fallback default sort order (if no column had the ImGuiTableColumnFlags_DefaultSort flag) + if (sort_order_count == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + sort_order_count = 1; + column->SortOrder = 0; + column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); + break; + } + } + + table->SortSpecsCount = (ImGuiTableColumnIdx)sort_order_count; +} + +void ImGui::TableSortSpecsBuild(ImGuiTable* table) +{ + bool dirty = table->IsSortSpecsDirty; + if (dirty) + { + TableSortSpecsSanitize(table); + table->SortSpecsMulti.resize(table->SortSpecsCount <= 1 ? 0 : table->SortSpecsCount); + table->SortSpecs.SpecsDirty = true; // Mark as dirty for user + table->IsSortSpecsDirty = false; // Mark as not dirty for us + } + + // Write output + ImGuiTableColumnSortSpecs* sort_specs = (table->SortSpecsCount == 0) ? NULL : (table->SortSpecsCount == 1) ? &table->SortSpecsSingle : table->SortSpecsMulti.Data; + if (dirty && sort_specs != NULL) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->SortOrder == -1) + continue; + IM_ASSERT(column->SortOrder < table->SortSpecsCount); + ImGuiTableColumnSortSpecs* sort_spec = &sort_specs[column->SortOrder]; + sort_spec->ColumnUserID = column->UserID; + sort_spec->ColumnIndex = (ImGuiTableColumnIdx)column_n; + sort_spec->SortOrder = (ImGuiTableColumnIdx)column->SortOrder; + sort_spec->SortDirection = column->SortDirection; + } + + table->SortSpecs.Specs = sort_specs; + table->SortSpecs.SpecsCount = table->SortSpecsCount; +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Headers +//------------------------------------------------------------------------- +// - TableGetHeaderRowHeight() [Internal] +// - TableHeadersRow() +// - TableHeader() +//------------------------------------------------------------------------- + +float ImGui::TableGetHeaderRowHeight() +{ + // Caring for a minor edge case: + // Calculate row height, for the unlikely case that some labels may be taller than others. + // If we didn't do that, uneven header height would highlight but smaller one before the tallest wouldn't catch input for all height. + // In your custom header row you may omit this all together and just call TableNextRow() without a height... + float row_height = GetTextLineHeight(); + int columns_count = TableGetColumnCount(); + for (int column_n = 0; column_n < columns_count; column_n++) + { + ImGuiTableColumnFlags flags = TableGetColumnFlags(column_n); + if ((flags & ImGuiTableColumnFlags_IsEnabled) && !(flags & ImGuiTableColumnFlags_NoHeaderLabel)) + row_height = ImMax(row_height, CalcTextSize(TableGetColumnName(column_n)).y); + } + row_height += GetStyle().CellPadding.y * 2.0f; + return row_height; +} + +// [Public] This is a helper to output TableHeader() calls based on the column names declared in TableSetupColumn(). +// The intent is that advanced users willing to create customized headers would not need to use this helper +// and can create their own! For example: TableHeader() may be preceeded by Checkbox() or other custom widgets. +// See 'Demo->Tables->Custom headers' for a demonstration of implementing a custom version of this. +// This code is constructed to not make much use of internal functions, as it is intended to be a template to copy. +// FIXME-TABLE: TableOpenContextMenu() and TableGetHeaderRowHeight() are not public. +void ImGui::TableHeadersRow() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableHeadersRow() after BeginTable()!"); + + // Layout if not already done (this is automatically done by TableNextRow, we do it here solely to facilitate stepping in debugger as it is frequent to step in TableUpdateLayout) + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + // Open row + const float row_y1 = GetCursorScreenPos().y; + const float row_height = TableGetHeaderRowHeight(); + TableNextRow(ImGuiTableRowFlags_Headers, row_height); + if (table->HostSkipItems) // Merely an optimization, you may skip in your own code. + return; + + const int columns_count = TableGetColumnCount(); + for (int column_n = 0; column_n < columns_count; column_n++) + { + if (!TableSetColumnIndex(column_n)) + continue; + + // Push an id to allow unnamed labels (generally accidental, but let's behave nicely with them) + // - in your own code you may omit the PushID/PopID all-together, provided you know they won't collide + // - table->InstanceCurrent is only >0 when we use multiple BeginTable/EndTable calls with same identifier. + const char* name = (TableGetColumnFlags(column_n) & ImGuiTableColumnFlags_NoHeaderLabel) ? "" : TableGetColumnName(column_n); + PushID(table->InstanceCurrent * table->ColumnsCount + column_n); + TableHeader(name); + PopID(); + } + + // Allow opening popup from the right-most section after the last column. + ImVec2 mouse_pos = ImGui::GetMousePos(); + if (IsMouseReleased(1) && TableGetHoveredColumn() == columns_count) + if (mouse_pos.y >= row_y1 && mouse_pos.y < row_y1 + row_height) + TableOpenContextMenu(-1); // Will open a non-column-specific popup. +} + +// Emit a column header (text + optional sort order) +// We cpu-clip text here so that all columns headers can be merged into a same draw call. +// Note that because of how we cpu-clip and display sorting indicators, you _cannot_ use SameLine() after a TableHeader() +void ImGui::TableHeader(const char* label) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableHeader() after BeginTable()!"); + IM_ASSERT(table->CurrentColumn != -1); + const int column_n = table->CurrentColumn; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Label + if (label == NULL) + label = ""; + const char* label_end = FindRenderedTextEnd(label); + ImVec2 label_size = CalcTextSize(label, label_end, true); + ImVec2 label_pos = window->DC.CursorPos; + + // If we already got a row height, there's use that. + // FIXME-TABLE: Padding problem if the correct outer-padding CellBgRect strays off our ClipRect? + ImRect cell_r = TableGetCellBgRect(table, column_n); + float label_height = ImMax(label_size.y, table->RowMinHeight - table->CellPaddingY * 2.0f); + + // Calculate ideal size for sort order arrow + float w_arrow = 0.0f; + float w_sort_text = 0.0f; + char sort_order_suf[4] = ""; + const float ARROW_SCALE = 0.65f; + if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + w_arrow = ImFloor(g.FontSize * ARROW_SCALE + g.Style.FramePadding.x); + if (column->SortOrder > 0) + { + ImFormatString(sort_order_suf, IM_ARRAYSIZE(sort_order_suf), "%d", column->SortOrder + 1); + w_sort_text = g.Style.ItemInnerSpacing.x + CalcTextSize(sort_order_suf).x; + } + } + + // We feed our unclipped width to the column without writing on CursorMaxPos, so that column is still considering for merging. + float max_pos_x = label_pos.x + label_size.x + w_sort_text + w_arrow; + column->ContentMaxXHeadersUsed = ImMax(column->ContentMaxXHeadersUsed, column->WorkMaxX); + column->ContentMaxXHeadersIdeal = ImMax(column->ContentMaxXHeadersIdeal, max_pos_x); + + // Keep header highlighted when context menu is open. + const bool selected = (table->IsContextPopupOpen && table->ContextPopupColumn == column_n && table->InstanceInteracted == table->InstanceCurrent); + ImGuiID id = window->GetID(label); + ImRect bb(cell_r.Min.x, cell_r.Min.y, cell_r.Max.x, ImMax(cell_r.Max.y, cell_r.Min.y + label_height + g.Style.CellPadding.y * 2.0f)); + ItemSize(ImVec2(0.0f, label_height)); // Don't declare unclipped width, it'll be fed ContentMaxPosHeadersIdeal + if (!ItemAdd(bb, id)) + return; + + //GetForegroundDrawList()->AddRect(cell_r.Min, cell_r.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] + //GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] + + // Using AllowItemOverlap mode because we cover the whole cell, and we want user to be able to submit subsequent items. + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_AllowItemOverlap); + if (g.ActiveId != id) + SetItemAllowOverlap(); + if (held || hovered || selected) + { + const ImU32 col = GetColorU32(held ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + //RenderFrame(bb.Min, bb.Max, col, false, 0.0f); + TableSetBgColor(ImGuiTableBgTarget_CellBg, col, table->CurrentColumn); + } + else + { + // Submit single cell bg color in the case we didn't submit a full header row + if ((table->RowFlags & ImGuiTableRowFlags_Headers) == 0) + TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_TableHeaderBg), table->CurrentColumn); + } + RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); + if (held) + table->HeldHeaderColumn = (ImGuiTableColumnIdx)column_n; + window->DC.CursorPos.y -= g.Style.ItemSpacing.y * 0.5f; + + // Drag and drop to re-order columns. + // FIXME-TABLE: Scroll request while reordering a column and it lands out of the scrolling zone. + if (held && (table->Flags & ImGuiTableFlags_Reorderable) && IsMouseDragging(0) && !g.DragDropActive) + { + // While moving a column it will jump on the other side of the mouse, so we also test for MouseDelta.x + table->ReorderColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + + // We don't reorder: through the frozen<>unfrozen line, or through a column that is marked with ImGuiTableColumnFlags_NoReorder. + if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < cell_r.Min.x) + if (ImGuiTableColumn* prev_column = (column->PrevEnabledColumn != -1) ? &table->Columns[column->PrevEnabledColumn] : NULL) + if (!((column->Flags | prev_column->Flags) & ImGuiTableColumnFlags_NoReorder)) + if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (prev_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) + table->ReorderColumnDir = -1; + if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > cell_r.Max.x) + if (ImGuiTableColumn* next_column = (column->NextEnabledColumn != -1) ? &table->Columns[column->NextEnabledColumn] : NULL) + if (!((column->Flags | next_column->Flags) & ImGuiTableColumnFlags_NoReorder)) + if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (next_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) + table->ReorderColumnDir = +1; + } + + // Sort order arrow + const float ellipsis_max = cell_r.Max.x - w_arrow - w_sort_text; + if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + if (column->SortOrder != -1) + { + float x = ImMax(cell_r.Min.x, cell_r.Max.x - w_arrow - w_sort_text); + float y = label_pos.y; + if (column->SortOrder > 0) + { + PushStyleColor(ImGuiCol_Text, GetColorU32(ImGuiCol_Text, 0.70f)); + RenderText(ImVec2(x + g.Style.ItemInnerSpacing.x, y), sort_order_suf); + PopStyleColor(); + x += w_sort_text; + } + RenderArrow(window->DrawList, ImVec2(x, y), GetColorU32(ImGuiCol_Text), column->SortDirection == ImGuiSortDirection_Ascending ? ImGuiDir_Up : ImGuiDir_Down, ARROW_SCALE); + } + + // Handle clicking on column header to adjust Sort Order + if (pressed && table->ReorderColumn != column_n) + { + ImGuiSortDirection sort_direction = TableGetColumnNextSortDirection(column); + TableSetColumnSortDirection(column_n, sort_direction, g.IO.KeyShift); + } + } + + // Render clipped label. Clipping here ensure that in the majority of situations, all our header cells will + // be merged into a single draw call. + //window->DrawList->AddCircleFilled(ImVec2(ellipsis_max, label_pos.y), 40, IM_COL32_WHITE); + RenderTextEllipsis(window->DrawList, label_pos, ImVec2(ellipsis_max, label_pos.y + label_height + g.Style.FramePadding.y), ellipsis_max, ellipsis_max, label, label_end, &label_size); + + const bool text_clipped = label_size.x > (ellipsis_max - label_pos.x); + if (text_clipped && hovered && g.ActiveId == 0 && IsItemHovered(ImGuiHoveredFlags_DelayNormal)) + SetTooltip("%.*s", (int)(label_end - label), label); + + // We don't use BeginPopupContextItem() because we want the popup to stay up even after the column is hidden + if (IsMouseReleased(1) && IsItemHovered()) + TableOpenContextMenu(column_n); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Context Menu +//------------------------------------------------------------------------- +// - TableOpenContextMenu() [Internal] +// - TableDrawContextMenu() [Internal] +//------------------------------------------------------------------------- + +// Use -1 to open menu not specific to a given column. +void ImGui::TableOpenContextMenu(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (column_n == -1 && table->CurrentColumn != -1) // When called within a column automatically use this one (for consistency) + column_n = table->CurrentColumn; + if (column_n == table->ColumnsCount) // To facilitate using with TableGetHoveredColumn() + column_n = -1; + IM_ASSERT(column_n >= -1 && column_n < table->ColumnsCount); + if (table->Flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + table->IsContextPopupOpen = true; + table->ContextPopupColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + OpenPopupEx(context_menu_id, ImGuiPopupFlags_None); + } +} + +bool ImGui::TableBeginContextMenuPopup(ImGuiTable* table) +{ + if (!table->IsContextPopupOpen || table->InstanceCurrent != table->InstanceInteracted) + return false; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings)) + return true; + table->IsContextPopupOpen = false; + return false; +} + +// Output context menu into current window (generally a popup) +// FIXME-TABLE: Ideally this should be writable by the user. Full programmatic access to that data? +void ImGui::TableDrawContextMenu(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + bool want_separator = false; + const int column_n = (table->ContextPopupColumn >= 0 && table->ContextPopupColumn < table->ColumnsCount) ? table->ContextPopupColumn : -1; + ImGuiTableColumn* column = (column_n != -1) ? &table->Columns[column_n] : NULL; + + // Sizing + if (table->Flags & ImGuiTableFlags_Resizable) + { + if (column != NULL) + { + const bool can_resize = !(column->Flags & ImGuiTableColumnFlags_NoResize) && column->IsEnabled; + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableSizeOne), NULL, false, can_resize)) // "###SizeOne" + TableSetColumnWidthAutoSingle(table, column_n); + } + + const char* size_all_desc; + if (table->ColumnsEnabledFixedCount == table->ColumnsEnabledCount && (table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame) + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllFit); // "###SizeAll" All fixed + else + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllDefault); // "###SizeAll" All stretch or mixed + if (MenuItem(size_all_desc, NULL)) + TableSetColumnWidthAutoAll(table); + want_separator = true; + } + + // Ordering + if (table->Flags & ImGuiTableFlags_Reorderable) + { + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableResetOrder), NULL, false, !table->IsDefaultDisplayOrder)) + table->IsResetDisplayOrderRequest = true; + want_separator = true; + } + + // Reset all (should work but seems unnecessary/noisy to expose?) + //if (MenuItem("Reset all")) + // table->IsResetAllRequest = true; + + // Sorting + // (modify TableOpenContextMenu() to add _Sortable flag if enabling this) +#if 0 + if ((table->Flags & ImGuiTableFlags_Sortable) && column != NULL && (column->Flags & ImGuiTableColumnFlags_NoSort) == 0) + { + if (want_separator) + Separator(); + want_separator = true; + + bool append_to_sort_specs = g.IO.KeyShift; + if (MenuItem("Sort in Ascending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Ascending, (column->Flags & ImGuiTableColumnFlags_NoSortAscending) == 0)) + TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Ascending, append_to_sort_specs); + if (MenuItem("Sort in Descending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Descending, (column->Flags & ImGuiTableColumnFlags_NoSortDescending) == 0)) + TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Descending, append_to_sort_specs); + } +#endif + + // Hiding / Visibility + if (table->Flags & ImGuiTableFlags_Hideable) + { + if (want_separator) + Separator(); + want_separator = true; + + PushItemFlag(ImGuiItemFlags_SelectableDontClosePopup, true); + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + { + ImGuiTableColumn* other_column = &table->Columns[other_column_n]; + if (other_column->Flags & ImGuiTableColumnFlags_Disabled) + continue; + + const char* name = TableGetColumnName(table, other_column_n); + if (name == NULL || name[0] == 0) + name = ""; + + // Make sure we can't hide the last active column + bool menu_item_active = (other_column->Flags & ImGuiTableColumnFlags_NoHide) ? false : true; + if (other_column->IsUserEnabled && table->ColumnsEnabledCount <= 1) + menu_item_active = false; + if (MenuItem(name, NULL, other_column->IsUserEnabled, menu_item_active)) + other_column->IsUserEnabledNextFrame = !other_column->IsUserEnabled; + } + PopItemFlag(); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Settings (.ini data) +//------------------------------------------------------------------------- +// FIXME: The binding/finding/creating flow are too confusing. +//------------------------------------------------------------------------- +// - TableSettingsInit() [Internal] +// - TableSettingsCalcChunkSize() [Internal] +// - TableSettingsCreate() [Internal] +// - TableSettingsFindByID() [Internal] +// - TableGetBoundSettings() [Internal] +// - TableResetSettings() +// - TableSaveSettings() [Internal] +// - TableLoadSettings() [Internal] +// - TableSettingsHandler_ClearAll() [Internal] +// - TableSettingsHandler_ApplyAll() [Internal] +// - TableSettingsHandler_ReadOpen() [Internal] +// - TableSettingsHandler_ReadLine() [Internal] +// - TableSettingsHandler_WriteAll() [Internal] +// - TableSettingsInstallHandler() [Internal] +//------------------------------------------------------------------------- +// [Init] 1: TableSettingsHandler_ReadXXXX() Load and parse .ini file into TableSettings. +// [Main] 2: TableLoadSettings() When table is created, bind Table to TableSettings, serialize TableSettings data into Table. +// [Main] 3: TableSaveSettings() When table properties are modified, serialize Table data into bound or new TableSettings, mark .ini as dirty. +// [Main] 4: TableSettingsHandler_WriteAll() When .ini file is dirty (which can come from other source), save TableSettings into .ini file. +//------------------------------------------------------------------------- + +// Clear and initialize empty settings instance +static void TableSettingsInit(ImGuiTableSettings* settings, ImGuiID id, int columns_count, int columns_count_max) +{ + IM_PLACEMENT_NEW(settings) ImGuiTableSettings(); + ImGuiTableColumnSettings* settings_column = settings->GetColumnSettings(); + for (int n = 0; n < columns_count_max; n++, settings_column++) + IM_PLACEMENT_NEW(settings_column) ImGuiTableColumnSettings(); + settings->ID = id; + settings->ColumnsCount = (ImGuiTableColumnIdx)columns_count; + settings->ColumnsCountMax = (ImGuiTableColumnIdx)columns_count_max; + settings->WantApply = true; +} + +static size_t TableSettingsCalcChunkSize(int columns_count) +{ + return sizeof(ImGuiTableSettings) + (size_t)columns_count * sizeof(ImGuiTableColumnSettings); +} + +ImGuiTableSettings* ImGui::TableSettingsCreate(ImGuiID id, int columns_count) +{ + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = g.SettingsTables.alloc_chunk(TableSettingsCalcChunkSize(columns_count)); + TableSettingsInit(settings, id, columns_count, columns_count); + return settings; +} + +// Find existing settings +ImGuiTableSettings* ImGui::TableSettingsFindByID(ImGuiID id) +{ + // FIXME-OPT: Might want to store a lookup map for this? + ImGuiContext& g = *GImGui; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID == id) + return settings; + return NULL; +} + +// Get settings for a given table, NULL if none +ImGuiTableSettings* ImGui::TableGetBoundSettings(ImGuiTable* table) +{ + if (table->SettingsOffset != -1) + { + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = g.SettingsTables.ptr_from_offset(table->SettingsOffset); + IM_ASSERT(settings->ID == table->ID); + if (settings->ColumnsCountMax >= table->ColumnsCount) + return settings; // OK + settings->ID = 0; // Invalidate storage, we won't fit because of a count change + } + return NULL; +} + +// Restore initial state of table (with or without saved settings) +void ImGui::TableResetSettings(ImGuiTable* table) +{ + table->IsInitializing = table->IsSettingsDirty = true; + table->IsResetAllRequest = false; + table->IsSettingsRequestLoad = false; // Don't reload from ini + table->SettingsLoadedFlags = ImGuiTableFlags_None; // Mark as nothing loaded so our initialized data becomes authoritative +} + +void ImGui::TableSaveSettings(ImGuiTable* table) +{ + table->IsSettingsDirty = false; + if (table->Flags & ImGuiTableFlags_NoSavedSettings) + return; + + // Bind or create settings data + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = TableGetBoundSettings(table); + if (settings == NULL) + { + settings = TableSettingsCreate(table->ID, table->ColumnsCount); + table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); + } + settings->ColumnsCount = (ImGuiTableColumnIdx)table->ColumnsCount; + + // Serialize ImGuiTable/ImGuiTableColumn into ImGuiTableSettings/ImGuiTableColumnSettings + IM_ASSERT(settings->ID == table->ID); + IM_ASSERT(settings->ColumnsCount == table->ColumnsCount && settings->ColumnsCountMax >= settings->ColumnsCount); + ImGuiTableColumn* column = table->Columns.Data; + ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); + + bool save_ref_scale = false; + settings->SaveFlags = ImGuiTableFlags_None; + for (int n = 0; n < table->ColumnsCount; n++, column++, column_settings++) + { + const float width_or_weight = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? column->StretchWeight : column->WidthRequest; + column_settings->WidthOrWeight = width_or_weight; + column_settings->Index = (ImGuiTableColumnIdx)n; + column_settings->DisplayOrder = column->DisplayOrder; + column_settings->SortOrder = column->SortOrder; + column_settings->SortDirection = column->SortDirection; + column_settings->IsEnabled = column->IsUserEnabled; + column_settings->IsStretch = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? 1 : 0; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) == 0) + save_ref_scale = true; + + // We skip saving some data in the .ini file when they are unnecessary to restore our state. + // Note that fixed width where initial width was derived from auto-fit will always be saved as InitStretchWeightOrWidth will be 0.0f. + // FIXME-TABLE: We don't have logic to easily compare SortOrder to DefaultSortOrder yet so it's always saved when present. + if (width_or_weight != column->InitStretchWeightOrWidth) + settings->SaveFlags |= ImGuiTableFlags_Resizable; + if (column->DisplayOrder != n) + settings->SaveFlags |= ImGuiTableFlags_Reorderable; + if (column->SortOrder != -1) + settings->SaveFlags |= ImGuiTableFlags_Sortable; + if (column->IsUserEnabled != ((column->Flags & ImGuiTableColumnFlags_DefaultHide) == 0)) + settings->SaveFlags |= ImGuiTableFlags_Hideable; + } + settings->SaveFlags &= table->Flags; + settings->RefScale = save_ref_scale ? table->RefScale : 0.0f; + + MarkIniSettingsDirty(); +} + +void ImGui::TableLoadSettings(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + table->IsSettingsRequestLoad = false; + if (table->Flags & ImGuiTableFlags_NoSavedSettings) + return; + + // Bind settings + ImGuiTableSettings* settings; + if (table->SettingsOffset == -1) + { + settings = TableSettingsFindByID(table->ID); + if (settings == NULL) + return; + if (settings->ColumnsCount != table->ColumnsCount) // Allow settings if columns count changed. We could otherwise decide to return... + table->IsSettingsDirty = true; + table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); + } + else + { + settings = TableGetBoundSettings(table); + } + + table->SettingsLoadedFlags = settings->SaveFlags; + table->RefScale = settings->RefScale; + + // Serialize ImGuiTableSettings/ImGuiTableColumnSettings into ImGuiTable/ImGuiTableColumn + ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); + ImU64 display_order_mask = 0; + for (int data_n = 0; data_n < settings->ColumnsCount; data_n++, column_settings++) + { + int column_n = column_settings->Index; + if (column_n < 0 || column_n >= table->ColumnsCount) + continue; + + ImGuiTableColumn* column = &table->Columns[column_n]; + if (settings->SaveFlags & ImGuiTableFlags_Resizable) + { + if (column_settings->IsStretch) + column->StretchWeight = column_settings->WidthOrWeight; + else + column->WidthRequest = column_settings->WidthOrWeight; + column->AutoFitQueue = 0x00; + } + if (settings->SaveFlags & ImGuiTableFlags_Reorderable) + column->DisplayOrder = column_settings->DisplayOrder; + else + column->DisplayOrder = (ImGuiTableColumnIdx)column_n; + display_order_mask |= (ImU64)1 << column->DisplayOrder; + column->IsUserEnabled = column->IsUserEnabledNextFrame = column_settings->IsEnabled; + column->SortOrder = column_settings->SortOrder; + column->SortDirection = column_settings->SortDirection; + } + + // Validate and fix invalid display order data + const ImU64 expected_display_order_mask = (settings->ColumnsCount == 64) ? ~0 : ((ImU64)1 << settings->ColumnsCount) - 1; + if (display_order_mask != expected_display_order_mask) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->Columns[column_n].DisplayOrder = (ImGuiTableColumnIdx)column_n; + + // Rebuild index + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; +} + +static void TableSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Tables.GetMapSize(); i++) + if (ImGuiTable* table = g.Tables.TryGetMapData(i)) + table->SettingsOffset = -1; + g.SettingsTables.clear(); +} + +// Apply to existing windows (if any) +static void TableSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Tables.GetMapSize(); i++) + if (ImGuiTable* table = g.Tables.TryGetMapData(i)) + { + table->IsSettingsRequestLoad = true; + table->SettingsOffset = -1; + } +} + +static void* TableSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + ImGuiID id = 0; + int columns_count = 0; + if (sscanf(name, "0x%08X,%d", &id, &columns_count) < 2) + return NULL; + + if (ImGuiTableSettings* settings = ImGui::TableSettingsFindByID(id)) + { + if (settings->ColumnsCountMax >= columns_count) + { + TableSettingsInit(settings, id, columns_count, settings->ColumnsCountMax); // Recycle + return settings; + } + settings->ID = 0; // Invalidate storage, we won't fit because of a count change + } + return ImGui::TableSettingsCreate(id, columns_count); +} + +static void TableSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +{ + // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" + ImGuiTableSettings* settings = (ImGuiTableSettings*)entry; + float f = 0.0f; + int column_n = 0, r = 0, n = 0; + + if (sscanf(line, "RefScale=%f", &f) == 1) { settings->RefScale = f; return; } + + if (sscanf(line, "Column %d%n", &column_n, &r) == 1) + { + if (column_n < 0 || column_n >= settings->ColumnsCount) + return; + line = ImStrSkipBlank(line + r); + char c = 0; + ImGuiTableColumnSettings* column = settings->GetColumnSettings() + column_n; + column->Index = (ImGuiTableColumnIdx)column_n; + if (sscanf(line, "UserID=0x%08X%n", (ImU32*)&n, &r)==1) { line = ImStrSkipBlank(line + r); column->UserID = (ImGuiID)n; } + if (sscanf(line, "Width=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = (float)n; column->IsStretch = 0; settings->SaveFlags |= ImGuiTableFlags_Resizable; } + if (sscanf(line, "Weight=%f%n", &f, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = f; column->IsStretch = 1; settings->SaveFlags |= ImGuiTableFlags_Resizable; } + if (sscanf(line, "Visible=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->IsEnabled = (ImU8)n; settings->SaveFlags |= ImGuiTableFlags_Hideable; } + if (sscanf(line, "Order=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->DisplayOrder = (ImGuiTableColumnIdx)n; settings->SaveFlags |= ImGuiTableFlags_Reorderable; } + if (sscanf(line, "Sort=%d%c%n", &n, &c, &r) == 2) { line = ImStrSkipBlank(line + r); column->SortOrder = (ImGuiTableColumnIdx)n; column->SortDirection = (c == '^') ? ImGuiSortDirection_Descending : ImGuiSortDirection_Ascending; settings->SaveFlags |= ImGuiTableFlags_Sortable; } + } +} + +static void TableSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + ImGuiContext& g = *ctx; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + { + if (settings->ID == 0) // Skip ditched settings + continue; + + // TableSaveSettings() may clear some of those flags when we establish that the data can be stripped + // (e.g. Order was unchanged) + const bool save_size = (settings->SaveFlags & ImGuiTableFlags_Resizable) != 0; + const bool save_visible = (settings->SaveFlags & ImGuiTableFlags_Hideable) != 0; + const bool save_order = (settings->SaveFlags & ImGuiTableFlags_Reorderable) != 0; + const bool save_sort = (settings->SaveFlags & ImGuiTableFlags_Sortable) != 0; + if (!save_size && !save_visible && !save_order && !save_sort) + continue; + + buf->reserve(buf->size() + 30 + settings->ColumnsCount * 50); // ballpark reserve + buf->appendf("[%s][0x%08X,%d]\n", handler->TypeName, settings->ID, settings->ColumnsCount); + if (settings->RefScale != 0.0f) + buf->appendf("RefScale=%g\n", settings->RefScale); + ImGuiTableColumnSettings* column = settings->GetColumnSettings(); + for (int column_n = 0; column_n < settings->ColumnsCount; column_n++, column++) + { + // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" + bool save_column = column->UserID != 0 || save_size || save_visible || save_order || (save_sort && column->SortOrder != -1); + if (!save_column) + continue; + buf->appendf("Column %-2d", column_n); + if (column->UserID != 0) buf->appendf(" UserID=%08X", column->UserID); + if (save_size && column->IsStretch) buf->appendf(" Weight=%.4f", column->WidthOrWeight); + if (save_size && !column->IsStretch) buf->appendf(" Width=%d", (int)column->WidthOrWeight); + if (save_visible) buf->appendf(" Visible=%d", column->IsEnabled); + if (save_order) buf->appendf(" Order=%d", column->DisplayOrder); + if (save_sort && column->SortOrder != -1) buf->appendf(" Sort=%d%c", column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? 'v' : '^'); + buf->append("\n"); + } + buf->append("\n"); + } +} + +void ImGui::TableSettingsAddSettingsHandler() +{ + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Table"; + ini_handler.TypeHash = ImHashStr("Table"); + ini_handler.ClearAllFn = TableSettingsHandler_ClearAll; + ini_handler.ReadOpenFn = TableSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = TableSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = TableSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = TableSettingsHandler_WriteAll; + AddSettingsHandler(&ini_handler); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Garbage Collection +//------------------------------------------------------------------------- +// - TableRemove() [Internal] +// - TableGcCompactTransientBuffers() [Internal] +// - TableGcCompactSettings() [Internal] +//------------------------------------------------------------------------- + +// Remove Table (currently only used by TestEngine) +void ImGui::TableRemove(ImGuiTable* table) +{ + //IMGUI_DEBUG_PRINT("TableRemove() id=0x%08X\n", table->ID); + ImGuiContext& g = *GImGui; + int table_idx = g.Tables.GetIndex(table); + //memset(table->RawData.Data, 0, table->RawData.size_in_bytes()); + //memset(table, 0, sizeof(ImGuiTable)); + g.Tables.Remove(table->ID, table); + g.TablesLastTimeActive[table_idx] = -1.0f; +} + +// Free up/compact internal Table buffers for when it gets unused +void ImGui::TableGcCompactTransientBuffers(ImGuiTable* table) +{ + //IMGUI_DEBUG_PRINT("TableGcCompactTransientBuffers() id=0x%08X\n", table->ID); + ImGuiContext& g = *GImGui; + IM_ASSERT(table->MemoryCompacted == false); + table->SortSpecs.Specs = NULL; + table->SortSpecsMulti.clear(); + table->IsSortSpecsDirty = true; // FIXME: shouldn't have to leak into user performing a sort + table->ColumnsNames.clear(); + table->MemoryCompacted = true; + for (int n = 0; n < table->ColumnsCount; n++) + table->Columns[n].NameOffset = -1; + g.TablesLastTimeActive[g.Tables.GetIndex(table)] = -1.0f; +} + +void ImGui::TableGcCompactTransientBuffers(ImGuiTableTempData* temp_data) +{ + temp_data->DrawSplitter.ClearFreeMemory(); + temp_data->LastTimeActive = -1.0f; +} + +// Compact and remove unused settings data (currently only used by TestEngine) +void ImGui::TableGcCompactSettings() +{ + ImGuiContext& g = *GImGui; + int required_memory = 0; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID != 0) + required_memory += (int)TableSettingsCalcChunkSize(settings->ColumnsCount); + if (required_memory == g.SettingsTables.Buf.Size) + return; + ImChunkStream new_chunk_stream; + new_chunk_stream.Buf.reserve(required_memory); + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID != 0) + memcpy(new_chunk_stream.alloc_chunk(TableSettingsCalcChunkSize(settings->ColumnsCount)), settings, TableSettingsCalcChunkSize(settings->ColumnsCount)); + g.SettingsTables.swap(new_chunk_stream); +} + + +//------------------------------------------------------------------------- +// [SECTION] Tables: Debugging +//------------------------------------------------------------------------- +// - DebugNodeTable() [Internal] +//------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + +static const char* DebugNodeTableGetSizingPolicyDesc(ImGuiTableFlags sizing_policy) +{ + sizing_policy &= ImGuiTableFlags_SizingMask_; + if (sizing_policy == ImGuiTableFlags_SizingFixedFit) { return "FixedFit"; } + if (sizing_policy == ImGuiTableFlags_SizingFixedSame) { return "FixedSame"; } + if (sizing_policy == ImGuiTableFlags_SizingStretchProp) { return "StretchProp"; } + if (sizing_policy == ImGuiTableFlags_SizingStretchSame) { return "StretchSame"; } + return "N/A"; +} + +void ImGui::DebugNodeTable(ImGuiTable* table) +{ + char buf[512]; + char* p = buf; + const char* buf_end = buf + IM_ARRAYSIZE(buf); + const bool is_active = (table->LastFrameActive >= ImGui::GetFrameCount() - 2); // Note that fully clipped early out scrolling tables will appear as inactive here. + ImFormatString(p, buf_end - p, "Table 0x%08X (%d columns, in '%s')%s", table->ID, table->ColumnsCount, table->OuterWindow->Name, is_active ? "" : " *Inactive*"); + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open = TreeNode(table, "%s", buf); + if (!is_active) { PopStyleColor(); } + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(table->OuterRect.Min, table->OuterRect.Max, IM_COL32(255, 255, 0, 255)); + if (IsItemVisible() && table->HoveredColumnBody != -1) + GetForegroundDrawList()->AddRect(GetItemRectMin(), GetItemRectMax(), IM_COL32(255, 255, 0, 255)); + if (!open) + return; + if (table->InstanceCurrent > 0) + ImGui::Text("** %d instances of same table! Some data below will refer to last instance.", table->InstanceCurrent + 1); + bool clear_settings = SmallButton("Clear settings"); + BulletText("OuterRect: Pos: (%.1f,%.1f) Size: (%.1f,%.1f) Sizing: '%s'", table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.GetWidth(), table->OuterRect.GetHeight(), DebugNodeTableGetSizingPolicyDesc(table->Flags)); + BulletText("ColumnsGivenWidth: %.1f, ColumnsAutoFitWidth: %.1f, InnerWidth: %.1f%s", table->ColumnsGivenWidth, table->ColumnsAutoFitWidth, table->InnerWidth, table->InnerWidth == 0.0f ? " (auto)" : ""); + BulletText("CellPaddingX: %.1f, CellSpacingX: %.1f/%.1f, OuterPaddingX: %.1f", table->CellPaddingX, table->CellSpacingX1, table->CellSpacingX2, table->OuterPaddingX); + BulletText("HoveredColumnBody: %d, HoveredColumnBorder: %d", table->HoveredColumnBody, table->HoveredColumnBorder); + BulletText("ResizedColumn: %d, ReorderColumn: %d, HeldHeaderColumn: %d", table->ResizedColumn, table->ReorderColumn, table->HeldHeaderColumn); + //BulletText("BgDrawChannels: %d/%d", 0, table->BgDrawChannelUnfrozen); + float sum_weights = 0.0f; + for (int n = 0; n < table->ColumnsCount; n++) + if (table->Columns[n].Flags & ImGuiTableColumnFlags_WidthStretch) + sum_weights += table->Columns[n].StretchWeight; + for (int n = 0; n < table->ColumnsCount; n++) + { + ImGuiTableColumn* column = &table->Columns[n]; + const char* name = TableGetColumnName(table, n); + ImFormatString(buf, IM_ARRAYSIZE(buf), + "Column %d order %d '%s': offset %+.2f to %+.2f%s\n" + "Enabled: %d, VisibleX/Y: %d/%d, RequestOutput: %d, SkipItems: %d, DrawChannels: %d,%d\n" + "WidthGiven: %.1f, Request/Auto: %.1f/%.1f, StretchWeight: %.3f (%.1f%%)\n" + "MinX: %.1f, MaxX: %.1f (%+.1f), ClipRect: %.1f to %.1f (+%.1f)\n" + "ContentWidth: %.1f,%.1f, HeadersUsed/Ideal %.1f/%.1f\n" + "Sort: %d%s, UserID: 0x%08X, Flags: 0x%04X: %s%s%s..", + n, column->DisplayOrder, name, column->MinX - table->WorkRect.Min.x, column->MaxX - table->WorkRect.Min.x, (n < table->FreezeColumnsRequest) ? " (Frozen)" : "", + column->IsEnabled, column->IsVisibleX, column->IsVisibleY, column->IsRequestOutput, column->IsSkipItems, column->DrawChannelFrozen, column->DrawChannelUnfrozen, + column->WidthGiven, column->WidthRequest, column->WidthAuto, column->StretchWeight, column->StretchWeight > 0.0f ? (column->StretchWeight / sum_weights) * 100.0f : 0.0f, + column->MinX, column->MaxX, column->MaxX - column->MinX, column->ClipRect.Min.x, column->ClipRect.Max.x, column->ClipRect.Max.x - column->ClipRect.Min.x, + column->ContentMaxXFrozen - column->WorkMinX, column->ContentMaxXUnfrozen - column->WorkMinX, column->ContentMaxXHeadersUsed - column->WorkMinX, column->ContentMaxXHeadersIdeal - column->WorkMinX, + column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? " (Asc)" : (column->SortDirection == ImGuiSortDirection_Descending) ? " (Des)" : "", column->UserID, column->Flags, + (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? "WidthStretch " : "", + (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? "WidthFixed " : "", + (column->Flags & ImGuiTableColumnFlags_NoResize) ? "NoResize " : ""); + Bullet(); + Selectable(buf); + if (IsItemHovered()) + { + ImRect r(column->MinX, table->OuterRect.Min.y, column->MaxX, table->OuterRect.Max.y); + GetForegroundDrawList()->AddRect(r.Min, r.Max, IM_COL32(255, 255, 0, 255)); + } + } + if (ImGuiTableSettings* settings = TableGetBoundSettings(table)) + DebugNodeTableSettings(settings); + if (clear_settings) + table->IsResetAllRequest = true; + TreePop(); +} + +void ImGui::DebugNodeTableSettings(ImGuiTableSettings* settings) +{ + if (!TreeNode((void*)(intptr_t)settings->ID, "Settings 0x%08X (%d columns)", settings->ID, settings->ColumnsCount)) + return; + BulletText("SaveFlags: 0x%08X", settings->SaveFlags); + BulletText("ColumnsCount: %d (max %d)", settings->ColumnsCount, settings->ColumnsCountMax); + for (int n = 0; n < settings->ColumnsCount; n++) + { + ImGuiTableColumnSettings* column_settings = &settings->GetColumnSettings()[n]; + ImGuiSortDirection sort_dir = (column_settings->SortOrder != -1) ? (ImGuiSortDirection)column_settings->SortDirection : ImGuiSortDirection_None; + BulletText("Column %d Order %d SortOrder %d %s Vis %d %s %7.3f UserID 0x%08X", + n, column_settings->DisplayOrder, column_settings->SortOrder, + (sort_dir == ImGuiSortDirection_Ascending) ? "Asc" : (sort_dir == ImGuiSortDirection_Descending) ? "Des" : "---", + column_settings->IsEnabled, column_settings->IsStretch ? "Weight" : "Width ", column_settings->WidthOrWeight, column_settings->UserID); + } + TreePop(); +} + +#else // #ifndef IMGUI_DISABLE_DEBUG_TOOLS + +void ImGui::DebugNodeTable(ImGuiTable*) {} +void ImGui::DebugNodeTableSettings(ImGuiTableSettings*) {} + +#endif + + +//------------------------------------------------------------------------- +// [SECTION] Columns, BeginColumns, EndColumns, etc. +// (This is a legacy API, prefer using BeginTable/EndTable!) +//------------------------------------------------------------------------- +// FIXME: sizing is lossy when columns width is very small (default width may turn negative etc.) +//------------------------------------------------------------------------- +// - SetWindowClipRectBeforeSetChannel() [Internal] +// - GetColumnIndex() +// - GetColumnsCount() +// - GetColumnOffset() +// - GetColumnWidth() +// - SetColumnOffset() +// - SetColumnWidth() +// - PushColumnClipRect() [Internal] +// - PushColumnsBackground() [Internal] +// - PopColumnsBackground() [Internal] +// - FindOrCreateColumns() [Internal] +// - GetColumnsID() [Internal] +// - BeginColumns() +// - NextColumn() +// - EndColumns() +// - Columns() +//------------------------------------------------------------------------- + +// [Internal] Small optimization to avoid calls to PopClipRect/SetCurrentChannel/PushClipRect in sequences, +// they would meddle many times with the underlying ImDrawCmd. +// Instead, we do a preemptive overwrite of clipping rectangle _without_ altering the command-buffer and let +// the subsequent single call to SetCurrentChannel() does it things once. +void ImGui::SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect) +{ + ImVec4 clip_rect_vec4 = clip_rect.ToVec4(); + window->ClipRect = clip_rect; + window->DrawList->_CmdHeader.ClipRect = clip_rect_vec4; + window->DrawList->_ClipRectStack.Data[window->DrawList->_ClipRectStack.Size - 1] = clip_rect_vec4; +} + +int ImGui::GetColumnIndex() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Current : 0; +} + +int ImGui::GetColumnsCount() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Count : 1; +} + +float ImGui::GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm) +{ + return offset_norm * (columns->OffMaxX - columns->OffMinX); +} + +float ImGui::GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset) +{ + return offset / (columns->OffMaxX - columns->OffMinX); +} + +static const float COLUMNS_HIT_RECT_HALF_WIDTH = 4.0f; + +static float GetDraggedColumnOffset(ImGuiOldColumns* columns, int column_index) +{ + // Active (dragged) column always follow mouse. The reason we need this is that dragging a column to the right edge of an auto-resizing + // window creates a feedback loop because we store normalized positions. So while dragging we enforce absolute positioning. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(column_index > 0); // We are not supposed to drag column 0. + IM_ASSERT(g.ActiveId == columns->ID + ImGuiID(column_index)); + + float x = g.IO.MousePos.x - g.ActiveIdClickOffset.x + COLUMNS_HIT_RECT_HALF_WIDTH - window->Pos.x; + x = ImMax(x, ImGui::GetColumnOffset(column_index - 1) + g.Style.ColumnsMinSpacing); + if ((columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths)) + x = ImMin(x, ImGui::GetColumnOffset(column_index + 1) - g.Style.ColumnsMinSpacing); + + return x; +} + +float ImGui::GetColumnOffset(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return 0.0f; + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const float t = columns->Columns[column_index].OffsetNorm; + const float x_offset = ImLerp(columns->OffMinX, columns->OffMaxX, t); + return x_offset; +} + +static float GetColumnWidthEx(ImGuiOldColumns* columns, int column_index, bool before_resize = false) +{ + if (column_index < 0) + column_index = columns->Current; + + float offset_norm; + if (before_resize) + offset_norm = columns->Columns[column_index + 1].OffsetNormBeforeResize - columns->Columns[column_index].OffsetNormBeforeResize; + else + offset_norm = columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm; + return ImGui::GetColumnOffsetFromNorm(columns, offset_norm); +} + +float ImGui::GetColumnWidth(int column_index) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return GetContentRegionAvail().x; + + if (column_index < 0) + column_index = columns->Current; + return GetColumnOffsetFromNorm(columns, columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm); +} + +void ImGui::SetColumnOffset(int column_index, float offset) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const bool preserve_width = !(columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths) && (column_index < columns->Count - 1); + const float width = preserve_width ? GetColumnWidthEx(columns, column_index, columns->IsBeingResized) : 0.0f; + + if (!(columns->Flags & ImGuiOldColumnFlags_NoForceWithinWindow)) + offset = ImMin(offset, columns->OffMaxX - g.Style.ColumnsMinSpacing * (columns->Count - column_index)); + columns->Columns[column_index].OffsetNorm = GetColumnNormFromOffset(columns, offset - columns->OffMinX); + + if (preserve_width) + SetColumnOffset(column_index + 1, offset + ImMax(g.Style.ColumnsMinSpacing, width)); +} + +void ImGui::SetColumnWidth(int column_index, float width) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + SetColumnOffset(column_index + 1, GetColumnOffset(column_index) + width); +} + +void ImGui::PushColumnClipRect(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (column_index < 0) + column_index = columns->Current; + + ImGuiOldColumnData* column = &columns->Columns[column_index]; + PushClipRect(column->ClipRect.Min, column->ClipRect.Max, false); +} + +// Get into the columns background draw command (which is generally the same draw command as before we called BeginColumns) +void ImGui::PushColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid SetCurrentChannel() + PushClipRect() + columns->HostBackupClipRect = window->ClipRect; + SetWindowClipRectBeforeSetChannel(window, columns->HostInitialClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, 0); +} + +void ImGui::PopColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + SetWindowClipRectBeforeSetChannel(window, columns->HostBackupClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); +} + +ImGuiOldColumns* ImGui::FindOrCreateColumns(ImGuiWindow* window, ImGuiID id) +{ + // We have few columns per window so for now we don't need bother much with turning this into a faster lookup. + for (int n = 0; n < window->ColumnsStorage.Size; n++) + if (window->ColumnsStorage[n].ID == id) + return &window->ColumnsStorage[n]; + + window->ColumnsStorage.push_back(ImGuiOldColumns()); + ImGuiOldColumns* columns = &window->ColumnsStorage.back(); + columns->ID = id; + return columns; +} + +ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count) +{ + ImGuiWindow* window = GetCurrentWindow(); + + // Differentiate column ID with an arbitrary prefix for cases where users name their columns set the same as another widget. + // In addition, when an identifier isn't explicitly provided we include the number of columns in the hash to make it uniquer. + PushID(0x11223347 + (str_id ? 0 : columns_count)); + ImGuiID id = window->GetID(str_id ? str_id : "columns"); + PopID(); + + return id; +} + +void ImGui::BeginColumns(const char* str_id, int columns_count, ImGuiOldColumnFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + IM_ASSERT(columns_count >= 1); + IM_ASSERT(window->DC.CurrentColumns == NULL); // Nested columns are currently not supported + + // Acquire storage for the columns set + ImGuiID id = GetColumnsID(str_id, columns_count); + ImGuiOldColumns* columns = FindOrCreateColumns(window, id); + IM_ASSERT(columns->ID == id); + columns->Current = 0; + columns->Count = columns_count; + columns->Flags = flags; + window->DC.CurrentColumns = columns; + + columns->HostCursorPosY = window->DC.CursorPos.y; + columns->HostCursorMaxPosX = window->DC.CursorMaxPos.x; + columns->HostInitialClipRect = window->ClipRect; + columns->HostBackupParentWorkRect = window->ParentWorkRect; + window->ParentWorkRect = window->WorkRect; + + // Set state for first column + // We aim so that the right-most column will have the same clipping width as other after being clipped by parent ClipRect + const float column_padding = g.Style.ItemSpacing.x; + const float half_clip_extend_x = ImFloor(ImMax(window->WindowPadding.x * 0.5f, window->WindowBorderSize)); + const float max_1 = window->WorkRect.Max.x + column_padding - ImMax(column_padding - window->WindowPadding.x, 0.0f); + const float max_2 = window->WorkRect.Max.x + half_clip_extend_x; + columns->OffMinX = window->DC.Indent.x - column_padding + ImMax(column_padding - window->WindowPadding.x, 0.0f); + columns->OffMaxX = ImMax(ImMin(max_1, max_2) - window->Pos.x, columns->OffMinX + 1.0f); + columns->LineMinY = columns->LineMaxY = window->DC.CursorPos.y; + + // Clear data if columns count changed + if (columns->Columns.Size != 0 && columns->Columns.Size != columns_count + 1) + columns->Columns.resize(0); + + // Initialize default widths + columns->IsFirstFrame = (columns->Columns.Size == 0); + if (columns->Columns.Size == 0) + { + columns->Columns.reserve(columns_count + 1); + for (int n = 0; n < columns_count + 1; n++) + { + ImGuiOldColumnData column; + column.OffsetNorm = n / (float)columns_count; + columns->Columns.push_back(column); + } + } + + for (int n = 0; n < columns_count; n++) + { + // Compute clipping rectangle + ImGuiOldColumnData* column = &columns->Columns[n]; + float clip_x1 = IM_ROUND(window->Pos.x + GetColumnOffset(n)); + float clip_x2 = IM_ROUND(window->Pos.x + GetColumnOffset(n + 1) - 1.0f); + column->ClipRect = ImRect(clip_x1, -FLT_MAX, clip_x2, +FLT_MAX); + column->ClipRect.ClipWithFull(window->ClipRect); + } + + if (columns->Count > 1) + { + columns->Splitter.Split(window->DrawList, 1 + columns->Count); + columns->Splitter.SetCurrentChannel(window->DrawList, 1); + PushColumnClipRect(0); + } + + // We don't generally store Indent.x inside ColumnsOffset because it may be manipulated by the user. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; +} + +void ImGui::NextColumn() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems || window->DC.CurrentColumns == NULL) + return; + + ImGuiContext& g = *GImGui; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + + if (columns->Count == 1) + { + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + IM_ASSERT(columns->Current == 0); + return; + } + + // Next column + if (++columns->Current == columns->Count) + columns->Current = 0; + + PopItemWidth(); + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + PushClipRect() + // (which would needlessly attempt to update commands in the wrong channel, then pop or overwrite them), + ImGuiOldColumnData* column = &columns->Columns[columns->Current]; + SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); + + const float column_padding = g.Style.ItemSpacing.x; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + if (columns->Current > 0) + { + // Columns 1+ ignore IndentX (by canceling it out) + // FIXME-COLUMNS: Unnecessary, could be locked? + window->DC.ColumnsOffset.x = GetColumnOffset(columns->Current) - window->DC.Indent.x + column_padding; + } + else + { + // New row/line: column 0 honor IndentX. + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.IsSameLine = false; + columns->LineMinY = columns->LineMaxY; + } + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->DC.CursorPos.y = columns->LineMinY; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = 0.0f; + + // FIXME-COLUMNS: Share code with BeginColumns() - move code on columns setup. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; +} + +void ImGui::EndColumns() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + PopItemWidth(); + if (columns->Count > 1) + { + PopClipRect(); + columns->Splitter.Merge(window->DrawList); + } + + const ImGuiOldColumnFlags flags = columns->Flags; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + window->DC.CursorPos.y = columns->LineMaxY; + if (!(flags & ImGuiOldColumnFlags_GrowParentContentsSize)) + window->DC.CursorMaxPos.x = columns->HostCursorMaxPosX; // Restore cursor max pos, as columns don't grow parent + + // Draw columns borders and handle resize + // The IsBeingResized flag ensure we preserve pre-resize columns width so back-and-forth are not lossy + bool is_being_resized = false; + if (!(flags & ImGuiOldColumnFlags_NoBorder) && !window->SkipItems) + { + // We clip Y boundaries CPU side because very long triangles are mishandled by some GPU drivers. + const float y1 = ImMax(columns->HostCursorPosY, window->ClipRect.Min.y); + const float y2 = ImMin(window->DC.CursorPos.y, window->ClipRect.Max.y); + int dragging_column = -1; + for (int n = 1; n < columns->Count; n++) + { + ImGuiOldColumnData* column = &columns->Columns[n]; + float x = window->Pos.x + GetColumnOffset(n); + const ImGuiID column_id = columns->ID + ImGuiID(n); + const float column_hit_hw = COLUMNS_HIT_RECT_HALF_WIDTH; + const ImRect column_hit_rect(ImVec2(x - column_hit_hw, y1), ImVec2(x + column_hit_hw, y2)); + if (!ItemAdd(column_hit_rect, column_id, NULL, ImGuiItemFlags_NoNav)) + continue; + + bool hovered = false, held = false; + if (!(flags & ImGuiOldColumnFlags_NoResize)) + { + ButtonBehavior(column_hit_rect, column_id, &hovered, &held); + if (hovered || held) + g.MouseCursor = ImGuiMouseCursor_ResizeEW; + if (held && !(column->Flags & ImGuiOldColumnFlags_NoResize)) + dragging_column = n; + } + + // Draw column + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : hovered ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + const float xi = IM_FLOOR(x); + window->DrawList->AddLine(ImVec2(xi, y1 + 1.0f), ImVec2(xi, y2), col); + } + + // Apply dragging after drawing the column lines, so our rendered lines are in sync with how items were displayed during the frame. + if (dragging_column != -1) + { + if (!columns->IsBeingResized) + for (int n = 0; n < columns->Count + 1; n++) + columns->Columns[n].OffsetNormBeforeResize = columns->Columns[n].OffsetNorm; + columns->IsBeingResized = is_being_resized = true; + float x = GetDraggedColumnOffset(columns, dragging_column); + SetColumnOffset(dragging_column, x); + } + } + columns->IsBeingResized = is_being_resized; + + window->WorkRect = window->ParentWorkRect; + window->ParentWorkRect = columns->HostBackupParentWorkRect; + window->DC.CurrentColumns = NULL; + window->DC.ColumnsOffset.x = 0.0f; + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); +} + +void ImGui::Columns(int columns_count, const char* id, bool border) +{ + ImGuiWindow* window = GetCurrentWindow(); + IM_ASSERT(columns_count >= 1); + + ImGuiOldColumnFlags flags = (border ? 0 : ImGuiOldColumnFlags_NoBorder); + //flags |= ImGuiOldColumnFlags_NoPreserveWidths; // NB: Legacy behavior + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns != NULL && columns->Count == columns_count && columns->Flags == flags) + return; + + if (columns != NULL) + EndColumns(); + + if (columns_count != 1) + BeginColumns(id, columns_count, flags); +} + +//------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_widgets.cpp b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_widgets.cpp new file mode 100644 index 000000000..28f8e894a --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imgui_widgets.cpp @@ -0,0 +1,8562 @@ +// dear imgui, v1.89.1 +// (widgets code) + +/* + +Index of this file: + +// [SECTION] Forward Declarations +// [SECTION] Widgets: Text, etc. +// [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.) +// [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, etc.) +// [SECTION] Widgets: ComboBox +// [SECTION] Data Type and Data Formatting Helpers +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +// [SECTION] Widgets: InputText, InputTextMultiline +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +// [SECTION] Widgets: Selectable +// [SECTION] Widgets: ListBox +// [SECTION] Widgets: PlotLines, PlotHistogram +// [SECTION] Widgets: Value helpers +// [SECTION] Widgets: MenuItem, BeginMenu, EndMenu, etc. +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +// [SECTION] Widgets: Columns, BeginColumns, EndColumns, etc. + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif +#include "imgui_internal.h" + +// System includes +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +//------------------------------------------------------------------------- +// Warnings +//------------------------------------------------------------------------- + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') +#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#endif + +//------------------------------------------------------------------------- +// Data +//------------------------------------------------------------------------- + +// Widgets +static const float DRAGDROP_HOLD_TO_OPEN_TIMER = 0.70f; // Time for drag-hold to activate items accepting the ImGuiButtonFlags_PressedOnDragDropHold button behavior. +static const float DRAG_MOUSE_THRESHOLD_FACTOR = 0.50f; // Multiplier for the default value of io.MouseDragThreshold to make DragFloat/DragInt react faster to mouse drags. + +// Those MIN/MAX values are not define because we need to point to them +static const signed char IM_S8_MIN = -128; +static const signed char IM_S8_MAX = 127; +static const unsigned char IM_U8_MIN = 0; +static const unsigned char IM_U8_MAX = 0xFF; +static const signed short IM_S16_MIN = -32768; +static const signed short IM_S16_MAX = 32767; +static const unsigned short IM_U16_MIN = 0; +static const unsigned short IM_U16_MAX = 0xFFFF; +static const ImS32 IM_S32_MIN = INT_MIN; // (-2147483647 - 1), (0x80000000); +static const ImS32 IM_S32_MAX = INT_MAX; // (2147483647), (0x7FFFFFFF) +static const ImU32 IM_U32_MIN = 0; +static const ImU32 IM_U32_MAX = UINT_MAX; // (0xFFFFFFFF) +#ifdef LLONG_MIN +static const ImS64 IM_S64_MIN = LLONG_MIN; // (-9223372036854775807ll - 1ll); +static const ImS64 IM_S64_MAX = LLONG_MAX; // (9223372036854775807ll); +#else +static const ImS64 IM_S64_MIN = -9223372036854775807LL - 1; +static const ImS64 IM_S64_MAX = 9223372036854775807LL; +#endif +static const ImU64 IM_U64_MIN = 0; +#ifdef ULLONG_MAX +static const ImU64 IM_U64_MAX = ULLONG_MAX; // (0xFFFFFFFFFFFFFFFFull); +#else +static const ImU64 IM_U64_MAX = (2ULL * 9223372036854775807LL + 1); +#endif + +//------------------------------------------------------------------------- +// [SECTION] Forward Declarations +//------------------------------------------------------------------------- + +// For InputTextEx() +static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data, ImGuiInputSource input_source); +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end); +static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining = NULL, ImVec2* out_offset = NULL, bool stop_on_new_line = false); + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Text, etc. +//------------------------------------------------------------------------- +// - TextEx() [Internal] +// - TextUnformatted() +// - Text() +// - TextV() +// - TextColored() +// - TextColoredV() +// - TextDisabled() +// - TextDisabledV() +// - TextWrapped() +// - TextWrappedV() +// - LabelText() +// - LabelTextV() +// - BulletText() +// - BulletTextV() +//------------------------------------------------------------------------- + +void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ImGuiContext& g = *GImGui; + + // Accept null ranges + if (text == text_end) + text = text_end = ""; + + // Calculate length + const char* text_begin = text; + if (text_end == NULL) + text_end = text + strlen(text); // FIXME-OPT + + const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + const float wrap_pos_x = window->DC.TextWrapPos; + const bool wrap_enabled = (wrap_pos_x >= 0.0f); + if (text_end - text <= 2000 || wrap_enabled) + { + // Common case + const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; + const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + if (!ItemAdd(bb, 0)) + return; + + // Render (we don't hide text after ## in this end-user function) + RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); + } + else + { + // Long text! + // Perform manual coarse clipping to optimize for long multi-line text + // - From this point we will only compute the width of lines that are visible. Optimization only available when word-wrapping is disabled. + // - We also don't vertically center the text within the line full height, which is unlikely to matter because we are likely the biggest and only item on the line. + // - We use memchr(), pay attention that well optimized versions of those str/mem functions are much faster than a casually written loop. + const char* line = text; + const float line_height = GetTextLineHeight(); + ImVec2 text_size(0, 0); + + // Lines to skip (can't skip when logging text) + ImVec2 pos = text_pos; + if (!g.LogEnabled) + { + int lines_skippable = (int)((window->ClipRect.Min.y - text_pos.y) / line_height); + if (lines_skippable > 0) + { + int lines_skipped = 0; + while (line < text_end && lines_skipped < lines_skippable) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + } + + // Lines to render + if (line < text_end) + { + ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); + while (line < text_end) + { + if (IsClippedEx(line_rect, 0)) + break; + + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + RenderText(pos, line, line_end, false); + line = line_end + 1; + line_rect.Min.y += line_height; + line_rect.Max.y += line_height; + pos.y += line_height; + } + + // Count remaining lines + int lines_skipped = 0; + while (line < text_end) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + text_size.y = (pos - text_pos).y; + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + ItemAdd(bb, 0); + } +} + +void ImGui::TextUnformatted(const char* text, const char* text_end) +{ + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::Text(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextV(fmt, args); + va_end(args); +} + +void ImGui::TextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + // FIXME-OPT: Handle the %s shortcut? + const char* text, *text_end; + ImFormatStringToTempBufferV(&text, &text_end, fmt, args); + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::TextColored(const ImVec4& col, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextColoredV(col, fmt, args); + va_end(args); +} + +void ImGui::TextColoredV(const ImVec4& col, const char* fmt, va_list args) +{ + PushStyleColor(ImGuiCol_Text, col); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting + else + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextDisabled(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextDisabledV(fmt, args); + va_end(args); +} + +void ImGui::TextDisabledV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting + else + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextWrapped(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextWrappedV(fmt, args); + va_end(args); +} + +void ImGui::TextWrappedV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + bool need_backup = (g.CurrentWindow->DC.TextWrapPos < 0.0f); // Keep existing wrap position if one is already set + if (need_backup) + PushTextWrapPos(0.0f); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting + else + TextV(fmt, args); + if (need_backup) + PopTextWrapPos(); +} + +void ImGui::LabelText(const char* label, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + LabelTextV(label, fmt, args); + va_end(args); +} + +// Add a label+text combo aligned to other label+value widgets +void ImGui::LabelTextV(const char* label, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float w = CalcItemWidth(); + + const char* value_text_begin, *value_text_end; + ImFormatStringToTempBufferV(&value_text_begin, &value_text_end, fmt, args); + const ImVec2 value_size = CalcTextSize(value_text_begin, value_text_end, false); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const ImVec2 pos = window->DC.CursorPos; + const ImRect value_bb(pos, pos + ImVec2(w, value_size.y + style.FramePadding.y * 2)); + const ImRect total_bb(pos, pos + ImVec2(w + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), ImMax(value_size.y, label_size.y) + style.FramePadding.y * 2)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0)) + return; + + // Render + RenderTextClipped(value_bb.Min + style.FramePadding, value_bb.Max, value_text_begin, value_text_end, &value_size, ImVec2(0.0f, 0.0f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(value_bb.Max.x + style.ItemInnerSpacing.x, value_bb.Min.y + style.FramePadding.y), label); +} + +void ImGui::BulletText(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + BulletTextV(fmt, args); + va_end(args); +} + +// Text with a little bullet aligned to the typical tree node. +void ImGui::BulletTextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const char* text_begin, *text_end; + ImFormatStringToTempBufferV(&text_begin, &text_end, fmt, args); + const ImVec2 label_size = CalcTextSize(text_begin, text_end, false); + const ImVec2 total_size = ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x * 2) : 0.0f), label_size.y); // Empty text doesn't add padding + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(total_size, 0.0f); + const ImRect bb(pos, pos + total_size); + if (!ItemAdd(bb, 0)) + return; + + // Render + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, g.FontSize * 0.5f), text_col); + RenderText(bb.Min + ImVec2(g.FontSize + style.FramePadding.x * 2, 0.0f), text_begin, text_end, false); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Main +//------------------------------------------------------------------------- +// - ButtonBehavior() [Internal] +// - Button() +// - SmallButton() +// - InvisibleButton() +// - ArrowButton() +// - CloseButton() [Internal] +// - CollapseButton() [Internal] +// - GetWindowScrollbarID() [Internal] +// - GetWindowScrollbarRect() [Internal] +// - Scrollbar() [Internal] +// - ScrollbarEx() [Internal] +// - Image() +// - ImageButton() +// - Checkbox() +// - CheckboxFlagsT() [Internal] +// - CheckboxFlags() +// - RadioButton() +// - ProgressBar() +// - Bullet() +//------------------------------------------------------------------------- + +// The ButtonBehavior() function is key to many interactions and used by many/most widgets. +// Because we handle so many cases (keyboard/gamepad navigation, drag and drop) and many specific behavior (via ImGuiButtonFlags_), +// this code is a little complex. +// By far the most common path is interacting with the Mouse using the default ImGuiButtonFlags_PressedOnClickRelease button behavior. +// See the series of events below and the corresponding state reported by dear imgui: +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClickRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse is outside bb) - - - - - - +// Frame N+1 (mouse moves inside bb) - true - - - - +// Frame N+2 (mouse button is down) - true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+4 (mouse moves outside bb) - - true - - - +// Frame N+5 (mouse moves inside bb) - true true - - - +// Frame N+6 (mouse button is released) true true - - true - +// Frame N+7 (mouse button is released) - true - - - - +// Frame N+8 (mouse moves outside bb) - - - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) true true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) - true - - - true +// Frame N+3 (mouse button is down) - true - - - - +// Frame N+6 (mouse button is released) true true - - - - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnDoubleClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse button is down) - true - - - true +// Frame N+1 (mouse button is down) - true - - - - +// Frame N+2 (mouse button is released) - true - - - - +// Frame N+3 (mouse button is released) - true - - - - +// Frame N+4 (mouse button is down) true true true true - true +// Frame N+5 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// Note that some combinations are supported, +// - PressedOnDragDropHold can generally be associated with any flag. +// - PressedOnDoubleClick can be associated by PressedOnClickRelease/PressedOnRelease, in which case the second release event won't be reported. +//------------------------------------------------------------------------------------------------------------------------------------------------ +// The behavior of the return-value changes when ImGuiButtonFlags_Repeat is set: +// Repeat+ Repeat+ Repeat+ Repeat+ +// PressedOnClickRelease PressedOnClick PressedOnRelease PressedOnDoubleClick +//------------------------------------------------------------------------------------------------------------------------------------------------- +// Frame N+0 (mouse button is down) - true - true +// ... - - - - +// Frame N + RepeatDelay true true - true +// ... - - - - +// Frame N + RepeatDelay + RepeatRate*N true true - true +//------------------------------------------------------------------------------------------------------------------------------------------------- + +bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + // Default only reacts to left mouse button + if ((flags & ImGuiButtonFlags_MouseButtonMask_) == 0) + flags |= ImGuiButtonFlags_MouseButtonDefault_; + + // Default behavior requires click + release inside bounding box + if ((flags & ImGuiButtonFlags_PressedOnMask_) == 0) + flags |= ImGuiButtonFlags_PressedOnDefault_; + + ImGuiWindow* backup_hovered_window = g.HoveredWindow; + const bool flatten_hovered_children = (flags & ImGuiButtonFlags_FlattenChildren) && g.HoveredWindow && g.HoveredWindow->RootWindowDockTree == window->RootWindowDockTree; + if (flatten_hovered_children) + g.HoveredWindow = window; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (id != 0 && g.LastItemData.ID != id) + IMGUI_TEST_ENGINE_ITEM_ADD(bb, id); +#endif + + bool pressed = false; + bool hovered = ItemHoverable(bb, id); + + // Drag source doesn't report as hovered + if (hovered && g.DragDropActive && g.DragDropPayload.SourceId == id && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoDisableHover)) + hovered = false; + + // Special mode for Drag and Drop where holding button pressed for a long time while dragging another item triggers the button + if (g.DragDropActive && (flags & ImGuiButtonFlags_PressedOnDragDropHold) && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoHoldToOpenOthers)) + if (IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + { + hovered = true; + SetHoveredID(id); + if (g.HoveredIdTimer - g.IO.DeltaTime <= DRAGDROP_HOLD_TO_OPEN_TIMER && g.HoveredIdTimer >= DRAGDROP_HOLD_TO_OPEN_TIMER) + { + pressed = true; + g.DragDropHoldJustPressedId = id; + FocusWindow(window); + } + } + + if (flatten_hovered_children) + g.HoveredWindow = backup_hovered_window; + + // AllowOverlap mode (rarely used) requires previous frame HoveredId to be null or to match. This allows using patterns where a later submitted widget overlaps a previous one. + if (hovered && (flags & ImGuiButtonFlags_AllowItemOverlap) && (g.HoveredIdPreviousFrame != id && g.HoveredIdPreviousFrame != 0)) + hovered = false; + + // Mouse handling + const ImGuiID test_owner_id = (flags & ImGuiButtonFlags_NoTestKeyOwner) ? ImGuiKeyOwner_Any : id; + if (hovered) + { + if (!(flags & ImGuiButtonFlags_NoKeyModifiers) || (!g.IO.KeyCtrl && !g.IO.KeyShift && !g.IO.KeyAlt)) + { + // Poll buttons + int mouse_button_clicked = -1; + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && IsMouseClicked(0, test_owner_id)) { mouse_button_clicked = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && IsMouseClicked(1, test_owner_id)) { mouse_button_clicked = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && IsMouseClicked(2, test_owner_id)) { mouse_button_clicked = 2; } + if (mouse_button_clicked != -1 && g.ActiveId != id) + { + if (!(flags & ImGuiButtonFlags_NoSetKeyOwner)) + SetKeyOwner(MouseButtonToKey(mouse_button_clicked), id); + if (flags & (ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere)) + { + SetActiveID(id, window); + g.ActiveIdMouseButton = mouse_button_clicked; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + FocusWindow(window); + } + if ((flags & ImGuiButtonFlags_PressedOnClick) || ((flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseClickedCount[mouse_button_clicked] == 2)) + { + pressed = true; + if (flags & ImGuiButtonFlags_NoHoldingActiveId) + ClearActiveID(); + else + SetActiveID(id, window); // Hold on ID + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + g.ActiveIdMouseButton = mouse_button_clicked; + FocusWindow(window); + } + } + if (flags & ImGuiButtonFlags_PressedOnRelease) + { + int mouse_button_released = -1; + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && IsMouseReleased(0, test_owner_id)) { mouse_button_released = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && IsMouseReleased(1, test_owner_id)) { mouse_button_released = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && IsMouseReleased(2, test_owner_id)) { mouse_button_released = 2; } + if (mouse_button_released != -1) + { + const bool has_repeated_at_least_once = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; // Repeat mode trumps on release behavior + if (!has_repeated_at_least_once) + pressed = true; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + ClearActiveID(); + } + } + + // 'Repeat' mode acts when held regardless of _PressedOn flags (see table above). + // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. + if (g.ActiveId == id && (flags & ImGuiButtonFlags_Repeat)) + if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, test_owner_id, ImGuiInputFlags_Repeat)) + pressed = true; + } + + if (pressed) + g.NavDisableHighlight = true; + } + + // Gamepad/Keyboard navigation + // We report navigated item as hovered but we don't set g.HoveredId to not interfere with mouse. + if (g.NavId == id && !g.NavDisableHighlight && g.NavDisableMouseHover && (g.ActiveId == 0 || g.ActiveId == id || g.ActiveId == window->MoveId)) + if (!(flags & ImGuiButtonFlags_NoHoveredOnFocus)) + hovered = true; + if (g.NavActivateDownId == id) + { + bool nav_activated_by_code = (g.NavActivateId == id); + bool nav_activated_by_inputs = (g.NavActivatePressedId == id); + if (!nav_activated_by_inputs && (flags & ImGuiButtonFlags_Repeat)) + { + // Avoid pressing both keys from triggering double amount of repeat events + const ImGuiKeyData* key1 = GetKeyData(ImGuiKey_Space); + const ImGuiKeyData* key2 = GetKeyData(ImGuiKey_NavGamepadActivate); + const float t1 = ImMax(key1->DownDuration, key2->DownDuration); + nav_activated_by_inputs = CalcTypematicRepeatAmount(t1 - g.IO.DeltaTime, t1, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; + } + if (nav_activated_by_code || nav_activated_by_inputs) + { + // Set active id so it can be queried by user via IsItemActive(), equivalent of holding the mouse button. + pressed = true; + SetActiveID(id, window); + g.ActiveIdSource = ImGuiInputSource_Nav; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + } + } + + // Process while held + bool held = false; + if (g.ActiveId == id) + { + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (g.ActiveIdIsJustActivated) + g.ActiveIdClickOffset = g.IO.MousePos - bb.Min; + + const int mouse_button = g.ActiveIdMouseButton; + if (IsMouseDown(mouse_button, test_owner_id)) + { + held = true; + } + else + { + bool release_in = hovered && (flags & ImGuiButtonFlags_PressedOnClickRelease) != 0; + bool release_anywhere = (flags & ImGuiButtonFlags_PressedOnClickReleaseAnywhere) != 0; + if ((release_in || release_anywhere) && !g.DragDropActive) + { + // Report as pressed when releasing the mouse (this is the most common path) + bool is_double_click_release = (flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseReleased[mouse_button] && g.IO.MouseClickedLastCount[mouse_button] == 2; + bool is_repeating_already = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button] >= g.IO.KeyRepeatDelay; // Repeat mode trumps + bool is_button_avail_or_owned = TestKeyOwner(MouseButtonToKey(mouse_button), test_owner_id); + if (!is_double_click_release && !is_repeating_already && is_button_avail_or_owned) + pressed = true; + } + ClearActiveID(); + } + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + g.NavDisableHighlight = true; + } + else if (g.ActiveIdSource == ImGuiInputSource_Nav) + { + // When activated using Nav, we hold on the ActiveID until activation button is released + if (g.NavActivateDownId != id) + ClearActiveID(); + } + if (pressed) + g.ActiveIdHasBeenPressedBefore = true; + } + + if (out_hovered) *out_hovered = hovered; + if (out_held) *out_held = held; + + return pressed; +} + +bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + ImVec2 pos = window->DC.CursorPos; + if ((flags & ImGuiButtonFlags_AlignTextBaseLine) && style.FramePadding.y < window->DC.CurrLineTextBaseOffset) // Try to vertically align buttons that are smaller/have no padding so that text baseline matches (bit hacky, since it shouldn't be a flag) + pos.y += window->DC.CurrLineTextBaseOffset - style.FramePadding.y; + ImVec2 size = CalcItemSize(size_arg, label_size.x + style.FramePadding.x * 2.0f, label_size.y + style.FramePadding.y * 2.0f); + + const ImRect bb(pos, pos + size); + ItemSize(size, style.FramePadding.y); + if (!ItemAdd(bb, id)) + return false; + + if (g.LastItemData.InFlags & ImGuiItemFlags_ButtonRepeat) + flags |= ImGuiButtonFlags_Repeat; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding); + + if (g.LogEnabled) + LogSetNextTextDecoration("[", "]"); + RenderTextClipped(bb.Min + style.FramePadding, bb.Max - style.FramePadding, label, NULL, &label_size, style.ButtonTextAlign, &bb); + + // Automatically close popups + //if (pressed && !(flags & ImGuiButtonFlags_DontClosePopups) && (window->Flags & ImGuiWindowFlags_Popup)) + // CloseCurrentPopup(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::Button(const char* label, const ImVec2& size_arg) +{ + return ButtonEx(label, size_arg, ImGuiButtonFlags_None); +} + +// Small buttons fits within text without additional vertical spacing. +bool ImGui::SmallButton(const char* label) +{ + ImGuiContext& g = *GImGui; + float backup_padding_y = g.Style.FramePadding.y; + g.Style.FramePadding.y = 0.0f; + bool pressed = ButtonEx(label, ImVec2(0, 0), ImGuiButtonFlags_AlignTextBaseLine); + g.Style.FramePadding.y = backup_padding_y; + return pressed; +} + +// Tip: use ImGui::PushID()/PopID() to push indices or pointers in the ID stack. +// Then you can keep 'str_id' empty or the same for all your buttons (instead of creating a string based on a non-string id) +bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + // Cannot use zero-size for InvisibleButton(). Unlike Button() there is not way to fallback using the label size. + IM_ASSERT(size_arg.x != 0.0f && size_arg.y != 0.0f); + + const ImGuiID id = window->GetID(str_id); + ImVec2 size = CalcItemSize(size_arg, 0.0f, 0.0f); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(size); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImGuiID id = window->GetID(str_id); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + const float default_size = GetFrameHeight(); + ItemSize(size, (size.y >= default_size) ? g.Style.FramePadding.y : -1.0f); + if (!ItemAdd(bb, id)) + return false; + + if (g.LastItemData.InFlags & ImGuiItemFlags_ButtonRepeat) + flags |= ImGuiButtonFlags_Repeat; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding); + RenderArrow(window->DrawList, bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.FontSize) * 0.5f)), text_col, dir); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir) +{ + float sz = GetFrameHeight(); + return ArrowButtonEx(str_id, dir, ImVec2(sz, sz), ImGuiButtonFlags_None); +} + +// Button to close a window +bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Tweak 1: Shrink hit-testing area if button covers an abnormally large proportion of the visible region. That's in order to facilitate moving the window away. (#3825) + // This may better be applied as a general hit-rect reduction mechanism for all widgets to ensure the area to move window is always accessible? + const ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f); + ImRect bb_interact = bb; + const float area_to_visible_ratio = window->OuterRectClipped.GetArea() / bb.GetArea(); + if (area_to_visible_ratio < 1.5f) + bb_interact.Expand(ImFloor(bb_interact.GetSize() * -0.25f)); + + // Tweak 2: We intentionally allow interaction when clipped so that a mechanical Alt,Right,Activate sequence can always close a window. + // (this isn't the regular behavior of buttons, but it doesn't affect the user much because navigation tends to keep items visible). + bool is_clipped = !ItemAdd(bb_interact, id); + + bool hovered, held; + bool pressed = ButtonBehavior(bb_interact, id, &hovered, &held); + if (is_clipped) + return pressed; + + // Render + // FIXME: Clarify this mess + ImU32 col = GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered); + ImVec2 center = bb.GetCenter(); + if (hovered) + window->DrawList->AddCircleFilled(center, ImMax(2.0f, g.FontSize * 0.5f + 1.0f), col, 12); + + float cross_extent = g.FontSize * 0.5f * 0.7071f - 1.0f; + ImU32 cross_col = GetColorU32(ImGuiCol_Text); + center -= ImVec2(0.5f, 0.5f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, +cross_extent), center + ImVec2(-cross_extent, -cross_extent), cross_col, 1.0f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, -cross_extent), center + ImVec2(-cross_extent, +cross_extent), cross_col, 1.0f); + + return pressed; +} + +// The Collapse button also functions as a Dock Menu button. +bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_node) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f); + ItemAdd(bb, id); + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_None); + + // Render + //bool is_dock_menu = (window->DockNodeAsHost && !window->Collapsed); + ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + if (hovered || held) + window->DrawList->AddCircleFilled(bb.GetCenter() + ImVec2(0,-0.5f), g.FontSize * 0.5f + 1.0f, bg_col, 12); + + if (dock_node) + RenderArrowDockMenu(window->DrawList, bb.Min + g.Style.FramePadding, g.FontSize, text_col); + else + RenderArrow(window->DrawList, bb.Min + g.Style.FramePadding, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f); + + // Switch to moving the window after mouse is moved beyond the initial drag threshold + if (IsItemActive() && IsMouseDragging(0)) + StartMouseMovingWindowOrNode(window, dock_node, true); + + return pressed; +} + +ImGuiID ImGui::GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) +{ + return window->GetID(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); +} + +// Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is set. +ImRect ImGui::GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis) +{ + const ImRect outer_rect = window->Rect(); + const ImRect inner_rect = window->InnerRect; + const float border_size = window->WindowBorderSize; + const float scrollbar_size = window->ScrollbarSizes[axis ^ 1]; // (ScrollbarSizes.x = width of Y scrollbar; ScrollbarSizes.y = height of X scrollbar) + IM_ASSERT(scrollbar_size > 0.0f); + if (axis == ImGuiAxis_X) + return ImRect(inner_rect.Min.x, ImMax(outer_rect.Min.y, outer_rect.Max.y - border_size - scrollbar_size), inner_rect.Max.x, outer_rect.Max.y); + else + return ImRect(ImMax(outer_rect.Min.x, outer_rect.Max.x - border_size - scrollbar_size), inner_rect.Min.y, outer_rect.Max.x, inner_rect.Max.y); +} + +void ImGui::Scrollbar(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = GetWindowScrollbarID(window, axis); + + // Calculate scrollbar bounding box + ImRect bb = GetWindowScrollbarRect(window, axis); + ImDrawFlags rounding_corners = ImDrawFlags_RoundCornersNone; + if (axis == ImGuiAxis_X) + { + rounding_corners |= ImDrawFlags_RoundCornersBottomLeft; + if (!window->ScrollbarY) + rounding_corners |= ImDrawFlags_RoundCornersBottomRight; + } + else + { + if ((window->Flags & ImGuiWindowFlags_NoTitleBar) && !(window->Flags & ImGuiWindowFlags_MenuBar)) + rounding_corners |= ImDrawFlags_RoundCornersTopRight; + if (!window->ScrollbarX) + rounding_corners |= ImDrawFlags_RoundCornersBottomRight; + } + float size_avail = window->InnerRect.Max[axis] - window->InnerRect.Min[axis]; + float size_contents = window->ContentSize[axis] + window->WindowPadding[axis] * 2.0f; + ImS64 scroll = (ImS64)window->Scroll[axis]; + ScrollbarEx(bb, id, axis, &scroll, (ImS64)size_avail, (ImS64)size_contents, rounding_corners); + window->Scroll[axis] = (float)scroll; +} + +// Vertical/Horizontal scrollbar +// The entire piece of code below is rather confusing because: +// - We handle absolute seeking (when first clicking outside the grab) and relative manipulation (afterward or when clicking inside the grab) +// - We store values as normalized ratio and in a form that allows the window content to change while we are holding on a scrollbar +// - We handle both horizontal and vertical scrollbars, which makes the terminology not ideal. +// Still, the code should probably be made simpler.. +bool ImGui::ScrollbarEx(const ImRect& bb_frame, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 size_avail_v, ImS64 size_contents_v, ImDrawFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const float bb_frame_width = bb_frame.GetWidth(); + const float bb_frame_height = bb_frame.GetHeight(); + if (bb_frame_width <= 0.0f || bb_frame_height <= 0.0f) + return false; + + // When we are too small, start hiding and disabling the grab (this reduce visual noise on very small window and facilitate using the window resize grab) + float alpha = 1.0f; + if ((axis == ImGuiAxis_Y) && bb_frame_height < g.FontSize + g.Style.FramePadding.y * 2.0f) + alpha = ImSaturate((bb_frame_height - g.FontSize) / (g.Style.FramePadding.y * 2.0f)); + if (alpha <= 0.0f) + return false; + + const ImGuiStyle& style = g.Style; + const bool allow_interaction = (alpha >= 1.0f); + + ImRect bb = bb_frame; + bb.Expand(ImVec2(-ImClamp(IM_FLOOR((bb_frame_width - 2.0f) * 0.5f), 0.0f, 3.0f), -ImClamp(IM_FLOOR((bb_frame_height - 2.0f) * 0.5f), 0.0f, 3.0f))); + + // V denote the main, longer axis of the scrollbar (= height for a vertical scrollbar) + const float scrollbar_size_v = (axis == ImGuiAxis_X) ? bb.GetWidth() : bb.GetHeight(); + + // Calculate the height of our grabbable box. It generally represent the amount visible (vs the total scrollable amount) + // But we maintain a minimum size in pixel to allow for the user to still aim inside. + IM_ASSERT(ImMax(size_contents_v, size_avail_v) > 0.0f); // Adding this assert to check if the ImMax(XXX,1.0f) is still needed. PLEASE CONTACT ME if this triggers. + const ImS64 win_size_v = ImMax(ImMax(size_contents_v, size_avail_v), (ImS64)1); + const float grab_h_pixels = ImClamp(scrollbar_size_v * ((float)size_avail_v / (float)win_size_v), style.GrabMinSize, scrollbar_size_v); + const float grab_h_norm = grab_h_pixels / scrollbar_size_v; + + // Handle input right away. None of the code of Begin() is relying on scrolling position before calling Scrollbar(). + bool held = false; + bool hovered = false; + ItemAdd(bb_frame, id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus); + + const ImS64 scroll_max = ImMax((ImS64)1, size_contents_v - size_avail_v); + float scroll_ratio = ImSaturate((float)*p_scroll_v / (float)scroll_max); + float grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; // Grab position in normalized space + if (held && allow_interaction && grab_h_norm < 1.0f) + { + const float scrollbar_pos_v = bb.Min[axis]; + const float mouse_pos_v = g.IO.MousePos[axis]; + + // Click position in scrollbar normalized space (0.0f->1.0f) + const float clicked_v_norm = ImSaturate((mouse_pos_v - scrollbar_pos_v) / scrollbar_size_v); + SetHoveredID(id); + + bool seek_absolute = false; + if (g.ActiveIdIsJustActivated) + { + // On initial click calculate the distance between mouse and the center of the grab + seek_absolute = (clicked_v_norm < grab_v_norm || clicked_v_norm > grab_v_norm + grab_h_norm); + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = 0.0f; + else + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Apply scroll (p_scroll_v will generally point on one member of window->Scroll) + // It is ok to modify Scroll here because we are being called in Begin() after the calculation of ContentSize and before setting up our starting position + const float scroll_v_norm = ImSaturate((clicked_v_norm - g.ScrollbarClickDeltaToGrabCenter - grab_h_norm * 0.5f) / (1.0f - grab_h_norm)); + *p_scroll_v = (ImS64)(scroll_v_norm * scroll_max); + + // Update values for rendering + scroll_ratio = ImSaturate((float)*p_scroll_v / (float)scroll_max); + grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; + + // Update distance to grab now that we have seeked and saturated + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Render + const ImU32 bg_col = GetColorU32(ImGuiCol_ScrollbarBg); + const ImU32 grab_col = GetColorU32(held ? ImGuiCol_ScrollbarGrabActive : hovered ? ImGuiCol_ScrollbarGrabHovered : ImGuiCol_ScrollbarGrab, alpha); + window->DrawList->AddRectFilled(bb_frame.Min, bb_frame.Max, bg_col, window->WindowRounding, flags); + ImRect grab_rect; + if (axis == ImGuiAxis_X) + grab_rect = ImRect(ImLerp(bb.Min.x, bb.Max.x, grab_v_norm), bb.Min.y, ImLerp(bb.Min.x, bb.Max.x, grab_v_norm) + grab_h_pixels, bb.Max.y); + else + grab_rect = ImRect(bb.Min.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm), bb.Max.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm) + grab_h_pixels); + window->DrawList->AddRectFilled(grab_rect.Min, grab_rect.Max, grab_col, style.ScrollbarRounding); + + return held; +} + +void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + if (border_col.w > 0.0f) + bb.Max += ImVec2(2, 2); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + return; + + if (border_col.w > 0.0f) + { + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(border_col), 0.0f); + window->DrawList->AddImage(user_texture_id, bb.Min + ImVec2(1, 1), bb.Max - ImVec2(1, 1), uv0, uv1, GetColorU32(tint_col)); + } + else + { + window->DrawList->AddImage(user_texture_id, bb.Min, bb.Max, uv0, uv1, GetColorU32(tint_col)); + } +} + +// ImageButton() is flawed as 'id' is always derived from 'texture_id' (see #2464 #1390) +// We provide this internal helper to write your own variant while we figure out how to redesign the public ImageButton() API. +bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImVec2 padding = g.Style.FramePadding; + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2.0f); + ItemSize(bb); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, ImClamp((float)ImMin(padding.x, padding.y), 0.0f, g.Style.FrameRounding)); + if (bg_col.w > 0.0f) + window->DrawList->AddRectFilled(bb.Min + padding, bb.Max - padding, GetColorU32(bg_col)); + window->DrawList->AddImage(texture_id, bb.Min + padding, bb.Max - padding, uv0, uv1, GetColorU32(tint_col)); + + return pressed; +} + +bool ImGui::ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + return ImageButtonEx(window->GetID(str_id), user_texture_id, size, uv0, uv1, bg_col, tint_col); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy API obsoleted in 1.89. Two differences with new ImageButton() +// - new ImageButton() requires an explicit 'const char* str_id' Old ImageButton() used opaque imTextureId (created issue with: multiple buttons with same image, transient texture id values, opaque computation of ID) +// - new ImageButton() always use style.FramePadding Old ImageButton() had an override argument. +// If you need to change padding with new ImageButton() you can use PushStyleVar(ImGuiStyleVar_FramePadding, value), consistent with other Button functions. +bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + // Default to using texture ID as ID. User can still push string/integer prefixes. + PushID((void*)(intptr_t)user_texture_id); + const ImGuiID id = window->GetID("#image"); + PopID(); + + if (frame_padding >= 0) + PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2((float)frame_padding, (float)frame_padding)); + bool ret = ImageButtonEx(id, user_texture_id, size, uv0, uv1, bg_col, tint_col); + if (frame_padding >= 0) + PopStyleVar(); + return ret; +} +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +bool ImGui::Checkbox(const char* label, bool* v) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + { + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); + return false; + } + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + { + *v = !(*v); + MarkItemEdited(id); + } + + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + RenderNavHighlight(total_bb, id); + RenderFrame(check_bb.Min, check_bb.Max, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), true, style.FrameRounding); + ImU32 check_col = GetColorU32(ImGuiCol_CheckMark); + bool mixed_value = (g.LastItemData.InFlags & ImGuiItemFlags_MixedValue) != 0; + if (mixed_value) + { + // Undocumented tristate/mixed/indeterminate checkbox (#2644) + // This may seem awkwardly designed because the aim is to make ImGuiItemFlags_MixedValue supported by all widgets (not just checkbox) + ImVec2 pad(ImMax(1.0f, IM_FLOOR(square_sz / 3.6f)), ImMax(1.0f, IM_FLOOR(square_sz / 3.6f))); + window->DrawList->AddRectFilled(check_bb.Min + pad, check_bb.Max - pad, check_col, style.FrameRounding); + } + else if (*v) + { + const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); + RenderCheckMark(window->DrawList, check_bb.Min + ImVec2(pad, pad), check_col, square_sz - pad * 2.0f); + } + + ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); + if (g.LogEnabled) + LogRenderedText(&label_pos, mixed_value ? "[~]" : *v ? "[x]" : "[ ]"); + if (label_size.x > 0.0f) + RenderText(label_pos, label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); + return pressed; +} + +template +bool ImGui::CheckboxFlagsT(const char* label, T* flags, T flags_value) +{ + bool all_on = (*flags & flags_value) == flags_value; + bool any_on = (*flags & flags_value) != 0; + bool pressed; + if (!all_on && any_on) + { + ImGuiContext& g = *GImGui; + ImGuiItemFlags backup_item_flags = g.CurrentItemFlags; + g.CurrentItemFlags |= ImGuiItemFlags_MixedValue; + pressed = Checkbox(label, &all_on); + g.CurrentItemFlags = backup_item_flags; + } + else + { + pressed = Checkbox(label, &all_on); + + } + if (pressed) + { + if (all_on) + *flags |= flags_value; + else + *flags &= ~flags_value; + } + return pressed; +} + +bool ImGui::CheckboxFlags(const char* label, int* flags, int flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::RadioButton(const char* label, bool active) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + return false; + + ImVec2 center = check_bb.GetCenter(); + center.x = IM_ROUND(center.x); + center.y = IM_ROUND(center.y); + const float radius = (square_sz - 1.0f) * 0.5f; + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + MarkItemEdited(id); + + RenderNavHighlight(total_bb, id); + window->DrawList->AddCircleFilled(center, radius, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), 16); + if (active) + { + const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); + window->DrawList->AddCircleFilled(center, radius - pad, GetColorU32(ImGuiCol_CheckMark), 16); + } + + if (style.FrameBorderSize > 0.0f) + { + window->DrawList->AddCircle(center + ImVec2(1, 1), radius, GetColorU32(ImGuiCol_BorderShadow), 16, style.FrameBorderSize); + window->DrawList->AddCircle(center, radius, GetColorU32(ImGuiCol_Border), 16, style.FrameBorderSize); + } + + ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); + if (g.LogEnabled) + LogRenderedText(&label_pos, active ? "(x)" : "( )"); + if (label_size.x > 0.0f) + RenderText(label_pos, label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; +} + +// FIXME: This would work nicely if it was a public template, e.g. 'template RadioButton(const char* label, T* v, T v_button)', but I'm not sure how we would expose it.. +bool ImGui::RadioButton(const char* label, int* v, int v_button) +{ + const bool pressed = RadioButton(label, *v == v_button); + if (pressed) + *v = v_button; + return pressed; +} + +// size_arg (for each axis) < 0.0f: align to end, 0.0f: auto, > 0.0f: specified size +void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + ImVec2 pos = window->DC.CursorPos; + ImVec2 size = CalcItemSize(size_arg, CalcItemWidth(), g.FontSize + style.FramePadding.y * 2.0f); + ImRect bb(pos, pos + size); + ItemSize(size, style.FramePadding.y); + if (!ItemAdd(bb, 0)) + return; + + // Render + fraction = ImSaturate(fraction); + RenderFrame(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + bb.Expand(ImVec2(-style.FrameBorderSize, -style.FrameBorderSize)); + const ImVec2 fill_br = ImVec2(ImLerp(bb.Min.x, bb.Max.x, fraction), bb.Max.y); + RenderRectFilledRangeH(window->DrawList, bb, GetColorU32(ImGuiCol_PlotHistogram), 0.0f, fraction, style.FrameRounding); + + // Default displaying the fraction as percentage string, but user can override it + char overlay_buf[32]; + if (!overlay) + { + ImFormatString(overlay_buf, IM_ARRAYSIZE(overlay_buf), "%.0f%%", fraction * 100 + 0.01f); + overlay = overlay_buf; + } + + ImVec2 overlay_size = CalcTextSize(overlay, NULL); + if (overlay_size.x > 0.0f) + RenderTextClipped(ImVec2(ImClamp(fill_br.x + style.ItemSpacing.x, bb.Min.x, bb.Max.x - overlay_size.x - style.ItemInnerSpacing.x), bb.Min.y), bb.Max, overlay, NULL, &overlay_size, ImVec2(0.0f, 0.5f), &bb); +} + +void ImGui::Bullet() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), g.FontSize); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + { + SameLine(0, style.FramePadding.x * 2); + return; + } + + // Render and stay on same line + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, line_height * 0.5f), text_col); + SameLine(0, style.FramePadding.x * 2.0f); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Low-level Layout helpers +//------------------------------------------------------------------------- +// - Spacing() +// - Dummy() +// - NewLine() +// - AlignTextToFramePadding() +// - SeparatorEx() [Internal] +// - Separator() +// - SplitterBehavior() [Internal] +// - ShrinkWidths() [Internal] +//------------------------------------------------------------------------- + +void ImGui::Spacing() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ItemSize(ImVec2(0, 0)); +} + +void ImGui::Dummy(const ImVec2& size) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(size); + ItemAdd(bb, 0); +} + +void ImGui::NewLine() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiLayoutType backup_layout_type = window->DC.LayoutType; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; + if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height. + ItemSize(ImVec2(0, 0)); + else + ItemSize(ImVec2(0.0f, g.FontSize)); + window->DC.LayoutType = backup_layout_type; +} + +void ImGui::AlignTextToFramePadding() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2); + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y); +} + +// Horizontal/vertical separating line +void ImGui::SeparatorEx(ImGuiSeparatorFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + IM_ASSERT(ImIsPowerOfTwo(flags & (ImGuiSeparatorFlags_Horizontal | ImGuiSeparatorFlags_Vertical))); // Check that only 1 option is selected + + float thickness_draw = 1.0f; + float thickness_layout = 0.0f; + if (flags & ImGuiSeparatorFlags_Vertical) + { + // Vertical separator, for menu bars (use current line height). Not exposed because it is misleading and it doesn't have an effect on regular layout. + float y1 = window->DC.CursorPos.y; + float y2 = window->DC.CursorPos.y + window->DC.CurrLineSize.y; + const ImRect bb(ImVec2(window->DC.CursorPos.x, y1), ImVec2(window->DC.CursorPos.x + thickness_draw, y2)); + ItemSize(ImVec2(thickness_layout, 0.0f)); + if (!ItemAdd(bb, 0)) + return; + + // Draw + window->DrawList->AddLine(ImVec2(bb.Min.x, bb.Min.y), ImVec2(bb.Min.x, bb.Max.y), GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogText(" |"); + } + else if (flags & ImGuiSeparatorFlags_Horizontal) + { + // Horizontal Separator + float x1 = window->Pos.x; + float x2 = window->Pos.x + window->Size.x; + + // FIXME-WORKRECT: old hack (#205) until we decide of consistent behavior with WorkRect/Indent and Separator + if (g.GroupStack.Size > 0 && g.GroupStack.back().WindowID == window->ID) + x1 += window->DC.Indent.x; + + // FIXME-WORKRECT: In theory we should simply be using WorkRect.Min.x/Max.x everywhere but it isn't aesthetically what we want, + // need to introduce a variant of WorkRect for that purpose. (#4787) + if (ImGuiTable* table = g.CurrentTable) + { + x1 = table->Columns[table->CurrentColumn].MinX; + x2 = table->Columns[table->CurrentColumn].MaxX; + } + + ImGuiOldColumns* columns = (flags & ImGuiSeparatorFlags_SpanAllColumns) ? window->DC.CurrentColumns : NULL; + if (columns) + PushColumnsBackground(); + + // We don't provide our width to the layout so that it doesn't get feed back into AutoFit + // FIXME: This prevents ->CursorMaxPos based bounding box evaluation from working (e.g. TableEndCell) + const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y + thickness_draw)); + ItemSize(ImVec2(0.0f, thickness_layout)); + const bool item_visible = ItemAdd(bb, 0); + if (item_visible) + { + // Draw + window->DrawList->AddLine(bb.Min, ImVec2(bb.Max.x, bb.Min.y), GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogRenderedText(&bb.Min, "--------------------------------\n"); + + } + if (columns) + { + PopColumnsBackground(); + columns->LineMinY = window->DC.CursorPos.y; + } + } +} + +void ImGui::Separator() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // Those flags should eventually be overridable by the user + ImGuiSeparatorFlags flags = (window->DC.LayoutType == ImGuiLayoutType_Horizontal) ? ImGuiSeparatorFlags_Vertical : ImGuiSeparatorFlags_Horizontal; + flags |= ImGuiSeparatorFlags_SpanAllColumns; // NB: this only applies to legacy Columns() api as they relied on Separator() a lot. + SeparatorEx(flags); +} + +// Using 'hover_visibility_delay' allows us to hide the highlight and mouse cursor for a short time, which can be convenient to reduce visual noise. +bool ImGui::SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay, ImU32 bg_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!ItemAdd(bb, id, NULL, ImGuiItemFlags_NoNav)) + return false; + + bool hovered, held; + ImRect bb_interact = bb; + bb_interact.Expand(axis == ImGuiAxis_Y ? ImVec2(0.0f, hover_extend) : ImVec2(hover_extend, 0.0f)); + ButtonBehavior(bb_interact, id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap); + if (hovered) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; // for IsItemHovered(), because bb_interact is larger than bb + if (g.ActiveId != id) + SetItemAllowOverlap(); + + if (held || (hovered && g.HoveredIdPreviousFrame == id && g.HoveredIdTimer >= hover_visibility_delay)) + SetMouseCursor(axis == ImGuiAxis_Y ? ImGuiMouseCursor_ResizeNS : ImGuiMouseCursor_ResizeEW); + + ImRect bb_render = bb; + if (held) + { + ImVec2 mouse_delta_2d = g.IO.MousePos - g.ActiveIdClickOffset - bb_interact.Min; + float mouse_delta = (axis == ImGuiAxis_Y) ? mouse_delta_2d.y : mouse_delta_2d.x; + + // Minimum pane size + float size_1_maximum_delta = ImMax(0.0f, *size1 - min_size1); + float size_2_maximum_delta = ImMax(0.0f, *size2 - min_size2); + if (mouse_delta < -size_1_maximum_delta) + mouse_delta = -size_1_maximum_delta; + if (mouse_delta > size_2_maximum_delta) + mouse_delta = size_2_maximum_delta; + + // Apply resize + if (mouse_delta != 0.0f) + { + if (mouse_delta < 0.0f) + IM_ASSERT(*size1 + mouse_delta >= min_size1); + if (mouse_delta > 0.0f) + IM_ASSERT(*size2 - mouse_delta >= min_size2); + *size1 += mouse_delta; + *size2 -= mouse_delta; + bb_render.Translate((axis == ImGuiAxis_X) ? ImVec2(mouse_delta, 0.0f) : ImVec2(0.0f, mouse_delta)); + MarkItemEdited(id); + } + } + + // Render at new position + if (bg_col & IM_COL32_A_MASK) + window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, bg_col, 0.0f); + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, col, 0.0f); + + return held; +} + +static int IMGUI_CDECL ShrinkWidthItemComparer(const void* lhs, const void* rhs) +{ + const ImGuiShrinkWidthItem* a = (const ImGuiShrinkWidthItem*)lhs; + const ImGuiShrinkWidthItem* b = (const ImGuiShrinkWidthItem*)rhs; + if (int d = (int)(b->Width - a->Width)) + return d; + return (b->Index - a->Index); +} + +// Shrink excess width from a set of item, by removing width from the larger items first. +// Set items Width to -1.0f to disable shrinking this item. +void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess) +{ + if (count == 1) + { + if (items[0].Width >= 0.0f) + items[0].Width = ImMax(items[0].Width - width_excess, 1.0f); + return; + } + ImQsort(items, (size_t)count, sizeof(ImGuiShrinkWidthItem), ShrinkWidthItemComparer); + int count_same_width = 1; + while (width_excess > 0.0f && count_same_width < count) + { + while (count_same_width < count && items[0].Width <= items[count_same_width].Width) + count_same_width++; + float max_width_to_remove_per_item = (count_same_width < count && items[count_same_width].Width >= 0.0f) ? (items[0].Width - items[count_same_width].Width) : (items[0].Width - 1.0f); + if (max_width_to_remove_per_item <= 0.0f) + break; + float width_to_remove_per_item = ImMin(width_excess / count_same_width, max_width_to_remove_per_item); + for (int item_n = 0; item_n < count_same_width; item_n++) + items[item_n].Width -= width_to_remove_per_item; + width_excess -= width_to_remove_per_item * count_same_width; + } + + // Round width and redistribute remainder + // Ensure that e.g. the right-most tab of a shrunk tab-bar always reaches exactly at the same distance from the right-most edge of the tab bar separator. + width_excess = 0.0f; + for (int n = 0; n < count; n++) + { + float width_rounded = ImFloor(items[n].Width); + width_excess += items[n].Width - width_rounded; + items[n].Width = width_rounded; + } + while (width_excess > 0.0f) + for (int n = 0; n < count && width_excess > 0.0f; n++) + { + float width_to_add = ImMin(items[n].InitialWidth - items[n].Width, 1.0f); + items[n].Width += width_to_add; + width_excess -= width_to_add; + } +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ComboBox +//------------------------------------------------------------------------- +// - CalcMaxPopupHeightFromItemCount() [Internal] +// - BeginCombo() +// - BeginComboPopup() [Internal] +// - EndCombo() +// - BeginComboPreview() [Internal] +// - EndComboPreview() [Internal] +// - Combo() +//------------------------------------------------------------------------- + +static float CalcMaxPopupHeightFromItemCount(int items_count) +{ + ImGuiContext& g = *GImGui; + if (items_count <= 0) + return FLT_MAX; + return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2); +} + +bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + ImGuiNextWindowDataFlags backup_next_window_data_flags = g.NextWindowData.Flags; + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + IM_ASSERT((flags & (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)) != (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)); // Can't use both flags together + + const float arrow_size = (flags & ImGuiComboFlags_NoArrowButton) ? 0.0f : GetFrameHeight(); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const float w = (flags & ImGuiComboFlags_NoPreview) ? arrow_size : CalcItemWidth(); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(bb.Min, bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &bb)) + return false; + + // Open on click + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + const ImGuiID popup_id = ImHashStr("##ComboPopup", 0, id); + bool popup_open = IsPopupOpen(popup_id, ImGuiPopupFlags_None); + if (pressed && !popup_open) + { + OpenPopupEx(popup_id, ImGuiPopupFlags_None); + popup_open = true; + } + + // Render shape + const ImU32 frame_col = GetColorU32(hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + const float value_x2 = ImMax(bb.Min.x, bb.Max.x - arrow_size); + RenderNavHighlight(bb, id); + if (!(flags & ImGuiComboFlags_NoPreview)) + window->DrawList->AddRectFilled(bb.Min, ImVec2(value_x2, bb.Max.y), frame_col, style.FrameRounding, (flags & ImGuiComboFlags_NoArrowButton) ? ImDrawFlags_RoundCornersAll : ImDrawFlags_RoundCornersLeft); + if (!(flags & ImGuiComboFlags_NoArrowButton)) + { + ImU32 bg_col = GetColorU32((popup_open || hovered) ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + window->DrawList->AddRectFilled(ImVec2(value_x2, bb.Min.y), bb.Max, bg_col, style.FrameRounding, (w <= arrow_size) ? ImDrawFlags_RoundCornersAll : ImDrawFlags_RoundCornersRight); + if (value_x2 + arrow_size - style.FramePadding.x <= bb.Max.x) + RenderArrow(window->DrawList, ImVec2(value_x2 + style.FramePadding.y, bb.Min.y + style.FramePadding.y), text_col, ImGuiDir_Down, 1.0f); + } + RenderFrameBorder(bb.Min, bb.Max, style.FrameRounding); + + // Custom preview + if (flags & ImGuiComboFlags_CustomPreview) + { + g.ComboPreviewData.PreviewRect = ImRect(bb.Min.x, bb.Min.y, value_x2, bb.Max.y); + IM_ASSERT(preview_value == NULL || preview_value[0] == 0); + preview_value = NULL; + } + + // Render preview and label + if (preview_value != NULL && !(flags & ImGuiComboFlags_NoPreview)) + { + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(bb.Min + style.FramePadding, ImVec2(value_x2, bb.Max.y), preview_value, NULL, NULL); + } + if (label_size.x > 0) + RenderText(ImVec2(bb.Max.x + style.ItemInnerSpacing.x, bb.Min.y + style.FramePadding.y), label); + + if (!popup_open) + return false; + + g.NextWindowData.Flags = backup_next_window_data_flags; + return BeginComboPopup(popup_id, bb, flags); +} + +bool ImGui::BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags) +{ + ImGuiContext& g = *GImGui; + if (!IsPopupOpen(popup_id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); + return false; + } + + // Set popup size + float w = bb.GetWidth(); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) + { + g.NextWindowData.SizeConstraintRect.Min.x = ImMax(g.NextWindowData.SizeConstraintRect.Min.x, w); + } + else + { + if ((flags & ImGuiComboFlags_HeightMask_) == 0) + flags |= ImGuiComboFlags_HeightRegular; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiComboFlags_HeightMask_)); // Only one + int popup_max_height_in_items = -1; + if (flags & ImGuiComboFlags_HeightRegular) popup_max_height_in_items = 8; + else if (flags & ImGuiComboFlags_HeightSmall) popup_max_height_in_items = 4; + else if (flags & ImGuiComboFlags_HeightLarge) popup_max_height_in_items = 20; + SetNextWindowSizeConstraints(ImVec2(w, 0.0f), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); + } + + // This is essentially a specialized version of BeginPopupEx() + char name[16]; + ImFormatString(name, IM_ARRAYSIZE(name), "##Combo_%02d", g.BeginPopupStack.Size); // Recycle windows based on depth + + // Set position given a custom constraint (peak into expected window size so we can position it) + // FIXME: This might be easier to express with an hypothetical SetNextWindowPosConstraints() function? + // FIXME: This might be moved to Begin() or at least around the same spot where Tooltips and other Popups are calling FindBestWindowPosForPopupEx()? + if (ImGuiWindow* popup_window = FindWindowByName(name)) + if (popup_window->WasActive) + { + // Always override 'AutoPosLastDirection' to not leave a chance for a past value to affect us. + ImVec2 size_expected = CalcWindowNextAutoFitSize(popup_window); + popup_window->AutoPosLastDirection = (flags & ImGuiComboFlags_PopupAlignLeft) ? ImGuiDir_Left : ImGuiDir_Down; // Left = "Below, Toward Left", Down = "Below, Toward Right (default)" + ImRect r_outer = GetPopupAllowedExtentRect(popup_window); + ImVec2 pos = FindBestWindowPosForPopupEx(bb.GetBL(), size_expected, &popup_window->AutoPosLastDirection, r_outer, bb, ImGuiPopupPositionPolicy_ComboBox); + SetNextWindowPos(pos); + } + + // We don't use BeginPopupEx() solely because we have a custom name string, which we could make an argument to BeginPopupEx() + ImGuiWindowFlags window_flags = ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoMove; + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(g.Style.FramePadding.x, g.Style.WindowPadding.y)); // Horizontally align ourselves with the framed text + bool ret = Begin(name, NULL, window_flags); + PopStyleVar(); + if (!ret) + { + EndPopup(); + IM_ASSERT(0); // This should never happen as we tested for IsPopupOpen() above + return false; + } + return true; +} + +void ImGui::EndCombo() +{ + EndPopup(); +} + +// Call directly after the BeginCombo/EndCombo block. The preview is designed to only host non-interactive elements +// (Experimental, see GitHub issues: #1658, #4168) +bool ImGui::BeginComboPreview() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; + + if (window->SkipItems || !(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible)) + return false; + IM_ASSERT(g.LastItemData.Rect.Min.x == preview_data->PreviewRect.Min.x && g.LastItemData.Rect.Min.y == preview_data->PreviewRect.Min.y); // Didn't call after BeginCombo/EndCombo block or forgot to pass ImGuiComboFlags_CustomPreview flag? + if (!window->ClipRect.Contains(preview_data->PreviewRect)) // Narrower test (optional) + return false; + + // FIXME: This could be contained in a PushWorkRect() api + preview_data->BackupCursorPos = window->DC.CursorPos; + preview_data->BackupCursorMaxPos = window->DC.CursorMaxPos; + preview_data->BackupCursorPosPrevLine = window->DC.CursorPosPrevLine; + preview_data->BackupPrevLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + preview_data->BackupLayout = window->DC.LayoutType; + window->DC.CursorPos = preview_data->PreviewRect.Min + g.Style.FramePadding; + window->DC.CursorMaxPos = window->DC.CursorPos; + window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; + PushClipRect(preview_data->PreviewRect.Min, preview_data->PreviewRect.Max, true); + + return true; +} + +void ImGui::EndComboPreview() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; + + // FIXME: Using CursorMaxPos approximation instead of correct AABB which we will store in ImDrawCmd in the future + ImDrawList* draw_list = window->DrawList; + if (window->DC.CursorMaxPos.x < preview_data->PreviewRect.Max.x && window->DC.CursorMaxPos.y < preview_data->PreviewRect.Max.y) + if (draw_list->CmdBuffer.Size > 1) // Unlikely case that the PushClipRect() didn't create a command + { + draw_list->_CmdHeader.ClipRect = draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ClipRect = draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 2].ClipRect; + draw_list->_TryMergeDrawCmds(); + } + PopClipRect(); + window->DC.CursorPos = preview_data->BackupCursorPos; + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, preview_data->BackupCursorMaxPos); + window->DC.CursorPosPrevLine = preview_data->BackupCursorPosPrevLine; + window->DC.PrevLineTextBaseOffset = preview_data->BackupPrevLineTextBaseOffset; + window->DC.LayoutType = preview_data->BackupLayout; + window->DC.IsSameLine = false; + preview_data->PreviewRect = ImRect(); +} + +// Getter for the old Combo() API: const char*[] +static bool Items_ArrayGetter(void* data, int idx, const char** out_text) +{ + const char* const* items = (const char* const*)data; + if (out_text) + *out_text = items[idx]; + return true; +} + +// Getter for the old Combo() API: "item1\0item2\0item3\0" +static bool Items_SingleStringGetter(void* data, int idx, const char** out_text) +{ + // FIXME-OPT: we could pre-compute the indices to fasten this. But only 1 active combo means the waste is limited. + const char* items_separated_by_zeros = (const char*)data; + int items_count = 0; + const char* p = items_separated_by_zeros; + while (*p) + { + if (idx == items_count) + break; + p += strlen(p) + 1; + items_count++; + } + if (!*p) + return false; + if (out_text) + *out_text = p; + return true; +} + +// Old API, prefer using BeginCombo() nowadays if you can. +bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int popup_max_height_in_items) +{ + ImGuiContext& g = *GImGui; + + // Call the getter to obtain the preview string which is a parameter to BeginCombo() + const char* preview_value = NULL; + if (*current_item >= 0 && *current_item < items_count) + items_getter(data, *current_item, &preview_value); + + // The old Combo() API exposed "popup_max_height_in_items". The new more general BeginCombo() API doesn't have/need it, but we emulate it here. + if (popup_max_height_in_items != -1 && !(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint)) + SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); + + if (!BeginCombo(label, preview_value, ImGuiComboFlags_None)) + return false; + + // Display items + // FIXME-OPT: Use clipper (but we need to disable it on the appearing frame to make sure our call to SetItemDefaultFocus() is processed) + bool value_changed = false; + for (int i = 0; i < items_count; i++) + { + PushID(i); + const bool item_selected = (i == *current_item); + const char* item_text; + if (!items_getter(data, i, &item_text)) + item_text = "*Unknown item*"; + if (Selectable(item_text, item_selected)) + { + value_changed = true; + *current_item = i; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + + EndCombo(); + + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +// Combo box helper allowing to pass an array of strings. +bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items) +{ + const bool value_changed = Combo(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_in_items); + return value_changed; +} + +// Combo box helper allowing to pass all items in a single string literal holding multiple zero-terminated items "item1\0item2\0" +bool ImGui::Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int height_in_items) +{ + int items_count = 0; + const char* p = items_separated_by_zeros; // FIXME-OPT: Avoid computing this, or at least only when combo is open + while (*p) + { + p += strlen(p) + 1; + items_count++; + } + bool value_changed = Combo(label, current_item, Items_SingleStringGetter, (void*)items_separated_by_zeros, items_count, height_in_items); + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Data Type and Data Formatting Helpers [Internal] +//------------------------------------------------------------------------- +// - DataTypeGetInfo() +// - DataTypeFormatString() +// - DataTypeApplyOp() +// - DataTypeApplyOpFromText() +// - DataTypeCompare() +// - DataTypeClamp() +// - GetMinimumStepAtDecimalPrecision +// - RoundScalarWithFormat<>() +//------------------------------------------------------------------------- + +static const ImGuiDataTypeInfo GDataTypeInfo[] = +{ + { sizeof(char), "S8", "%d", "%d" }, // ImGuiDataType_S8 + { sizeof(unsigned char), "U8", "%u", "%u" }, + { sizeof(short), "S16", "%d", "%d" }, // ImGuiDataType_S16 + { sizeof(unsigned short), "U16", "%u", "%u" }, + { sizeof(int), "S32", "%d", "%d" }, // ImGuiDataType_S32 + { sizeof(unsigned int), "U32", "%u", "%u" }, +#ifdef _MSC_VER + { sizeof(ImS64), "S64", "%I64d","%I64d" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%I64u","%I64u" }, +#else + { sizeof(ImS64), "S64", "%lld", "%lld" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%llu", "%llu" }, +#endif + { sizeof(float), "float", "%.3f","%f" }, // ImGuiDataType_Float (float are promoted to double in va_arg) + { sizeof(double), "double","%f", "%lf" }, // ImGuiDataType_Double +}; +IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT); + +const ImGuiDataTypeInfo* ImGui::DataTypeGetInfo(ImGuiDataType data_type) +{ + IM_ASSERT(data_type >= 0 && data_type < ImGuiDataType_COUNT); + return &GDataTypeInfo[data_type]; +} + +int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format) +{ + // Signedness doesn't matter when pushing integer arguments + if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32) + return ImFormatString(buf, buf_size, format, *(const ImU32*)p_data); + if (data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) + return ImFormatString(buf, buf_size, format, *(const ImU64*)p_data); + if (data_type == ImGuiDataType_Float) + return ImFormatString(buf, buf_size, format, *(const float*)p_data); + if (data_type == ImGuiDataType_Double) + return ImFormatString(buf, buf_size, format, *(const double*)p_data); + if (data_type == ImGuiDataType_S8) + return ImFormatString(buf, buf_size, format, *(const ImS8*)p_data); + if (data_type == ImGuiDataType_U8) + return ImFormatString(buf, buf_size, format, *(const ImU8*)p_data); + if (data_type == ImGuiDataType_S16) + return ImFormatString(buf, buf_size, format, *(const ImS16*)p_data); + if (data_type == ImGuiDataType_U16) + return ImFormatString(buf, buf_size, format, *(const ImU16*)p_data); + IM_ASSERT(0); + return 0; +} + +void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg1, const void* arg2) +{ + IM_ASSERT(op == '+' || op == '-'); + switch (data_type) + { + case ImGuiDataType_S8: + if (op == '+') { *(ImS8*)output = ImAddClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + if (op == '-') { *(ImS8*)output = ImSubClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + return; + case ImGuiDataType_U8: + if (op == '+') { *(ImU8*)output = ImAddClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + if (op == '-') { *(ImU8*)output = ImSubClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + return; + case ImGuiDataType_S16: + if (op == '+') { *(ImS16*)output = ImAddClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + if (op == '-') { *(ImS16*)output = ImSubClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + return; + case ImGuiDataType_U16: + if (op == '+') { *(ImU16*)output = ImAddClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + if (op == '-') { *(ImU16*)output = ImSubClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + return; + case ImGuiDataType_S32: + if (op == '+') { *(ImS32*)output = ImAddClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + if (op == '-') { *(ImS32*)output = ImSubClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + return; + case ImGuiDataType_U32: + if (op == '+') { *(ImU32*)output = ImAddClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + if (op == '-') { *(ImU32*)output = ImSubClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + return; + case ImGuiDataType_S64: + if (op == '+') { *(ImS64*)output = ImAddClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + if (op == '-') { *(ImS64*)output = ImSubClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + return; + case ImGuiDataType_U64: + if (op == '+') { *(ImU64*)output = ImAddClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + if (op == '-') { *(ImU64*)output = ImSubClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + return; + case ImGuiDataType_Float: + if (op == '+') { *(float*)output = *(const float*)arg1 + *(const float*)arg2; } + if (op == '-') { *(float*)output = *(const float*)arg1 - *(const float*)arg2; } + return; + case ImGuiDataType_Double: + if (op == '+') { *(double*)output = *(const double*)arg1 + *(const double*)arg2; } + if (op == '-') { *(double*)output = *(const double*)arg1 - *(const double*)arg2; } + return; + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); +} + +// User can input math operators (e.g. +100) to edit a numerical values. +// NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess.. +bool ImGui::DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format) +{ + while (ImCharIsBlankA(*buf)) + buf++; + if (!buf[0]) + return false; + + // Copy the value in an opaque buffer so we can compare at the end of the function if it changed at all. + const ImGuiDataTypeInfo* type_info = DataTypeGetInfo(data_type); + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, type_info->Size); + + // Sanitize format + // For float/double we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in, so force them into %f and %lf + char format_sanitized[32]; + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + format = type_info->ScanFmt; + else + format = ImParseFormatSanitizeForScanning(format, format_sanitized, IM_ARRAYSIZE(format_sanitized)); + + // Small types need a 32-bit buffer to receive the result from scanf() + int v32 = 0; + if (sscanf(buf, format, type_info->Size >= 4 ? p_data : &v32) < 1) + return false; + if (type_info->Size < 4) + { + if (data_type == ImGuiDataType_S8) + *(ImS8*)p_data = (ImS8)ImClamp(v32, (int)IM_S8_MIN, (int)IM_S8_MAX); + else if (data_type == ImGuiDataType_U8) + *(ImU8*)p_data = (ImU8)ImClamp(v32, (int)IM_U8_MIN, (int)IM_U8_MAX); + else if (data_type == ImGuiDataType_S16) + *(ImS16*)p_data = (ImS16)ImClamp(v32, (int)IM_S16_MIN, (int)IM_S16_MAX); + else if (data_type == ImGuiDataType_U16) + *(ImU16*)p_data = (ImU16)ImClamp(v32, (int)IM_U16_MIN, (int)IM_U16_MAX); + else + IM_ASSERT(0); + } + + return memcmp(&data_backup, p_data, type_info->Size) != 0; +} + +template +static int DataTypeCompareT(const T* lhs, const T* rhs) +{ + if (*lhs < *rhs) return -1; + if (*lhs > *rhs) return +1; + return 0; +} + +int ImGui::DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeCompareT((const ImS8* )arg_1, (const ImS8* )arg_2); + case ImGuiDataType_U8: return DataTypeCompareT((const ImU8* )arg_1, (const ImU8* )arg_2); + case ImGuiDataType_S16: return DataTypeCompareT((const ImS16* )arg_1, (const ImS16* )arg_2); + case ImGuiDataType_U16: return DataTypeCompareT((const ImU16* )arg_1, (const ImU16* )arg_2); + case ImGuiDataType_S32: return DataTypeCompareT((const ImS32* )arg_1, (const ImS32* )arg_2); + case ImGuiDataType_U32: return DataTypeCompareT((const ImU32* )arg_1, (const ImU32* )arg_2); + case ImGuiDataType_S64: return DataTypeCompareT((const ImS64* )arg_1, (const ImS64* )arg_2); + case ImGuiDataType_U64: return DataTypeCompareT((const ImU64* )arg_1, (const ImU64* )arg_2); + case ImGuiDataType_Float: return DataTypeCompareT((const float* )arg_1, (const float* )arg_2); + case ImGuiDataType_Double: return DataTypeCompareT((const double*)arg_1, (const double*)arg_2); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return 0; +} + +template +static bool DataTypeClampT(T* v, const T* v_min, const T* v_max) +{ + // Clamp, both sides are optional, return true if modified + if (v_min && *v < *v_min) { *v = *v_min; return true; } + if (v_max && *v > *v_max) { *v = *v_max; return true; } + return false; +} + +bool ImGui::DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeClampT((ImS8* )p_data, (const ImS8* )p_min, (const ImS8* )p_max); + case ImGuiDataType_U8: return DataTypeClampT((ImU8* )p_data, (const ImU8* )p_min, (const ImU8* )p_max); + case ImGuiDataType_S16: return DataTypeClampT((ImS16* )p_data, (const ImS16* )p_min, (const ImS16* )p_max); + case ImGuiDataType_U16: return DataTypeClampT((ImU16* )p_data, (const ImU16* )p_min, (const ImU16* )p_max); + case ImGuiDataType_S32: return DataTypeClampT((ImS32* )p_data, (const ImS32* )p_min, (const ImS32* )p_max); + case ImGuiDataType_U32: return DataTypeClampT((ImU32* )p_data, (const ImU32* )p_min, (const ImU32* )p_max); + case ImGuiDataType_S64: return DataTypeClampT((ImS64* )p_data, (const ImS64* )p_min, (const ImS64* )p_max); + case ImGuiDataType_U64: return DataTypeClampT((ImU64* )p_data, (const ImU64* )p_min, (const ImU64* )p_max); + case ImGuiDataType_Float: return DataTypeClampT((float* )p_data, (const float* )p_min, (const float* )p_max); + case ImGuiDataType_Double: return DataTypeClampT((double*)p_data, (const double*)p_min, (const double*)p_max); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +static float GetMinimumStepAtDecimalPrecision(int decimal_precision) +{ + static const float min_steps[10] = { 1.0f, 0.1f, 0.01f, 0.001f, 0.0001f, 0.00001f, 0.000001f, 0.0000001f, 0.00000001f, 0.000000001f }; + if (decimal_precision < 0) + return FLT_MIN; + return (decimal_precision < IM_ARRAYSIZE(min_steps)) ? min_steps[decimal_precision] : ImPow(10.0f, (float)-decimal_precision); +} + +template +TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v) +{ + IM_UNUSED(data_type); + IM_ASSERT(data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double); + const char* fmt_start = ImParseFormatFindStart(format); + if (fmt_start[0] != '%' || fmt_start[1] == '%') // Don't apply if the value is not visible in the format string + return v; + + // Sanitize format + char fmt_sanitized[32]; + ImParseFormatSanitizeForPrinting(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); + fmt_start = fmt_sanitized; + + // Format value with our rounding, and read back + char v_str[64]; + ImFormatString(v_str, IM_ARRAYSIZE(v_str), fmt_start, v); + const char* p = v_str; + while (*p == ' ') + p++; + v = (TYPE)ImAtof(p); + + return v; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +//------------------------------------------------------------------------- +// - DragBehaviorT<>() [Internal] +// - DragBehavior() [Internal] +// - DragScalar() +// - DragScalarN() +// - DragFloat() +// - DragFloat2() +// - DragFloat3() +// - DragFloat4() +// - DragFloatRange2() +// - DragInt() +// - DragInt2() +// - DragInt3() +// - DragInt4() +// - DragIntRange2() +//------------------------------------------------------------------------- + +// This is called by DragBehavior() when the widget is active (held by mouse or being manipulated with Nav controls) +template +bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_clamped = (v_min < v_max); + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + + // Default tweak speed + if (v_speed == 0.0f && is_clamped && (v_max - v_min < FLT_MAX)) + v_speed = (float)((v_max - v_min) * g.DragSpeedDefaultRatio); + + // Inputs accumulates into g.DragCurrentAccum, which is flushed into the current value as soon as it makes a difference with our precision settings + float adjust_delta = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse && IsMousePosValid() && IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) + { + adjust_delta = g.IO.MouseDelta[axis]; + if (g.IO.KeyAlt) + adjust_delta *= 1.0f / 100.0f; + if (g.IO.KeyShift) + adjust_delta *= 10.0f; + } + else if (g.ActiveIdSource == ImGuiInputSource_Nav) + { + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const float tweak_factor = tweak_slow ? 1.0f / 1.0f : tweak_fast ? 10.0f : 1.0f; + adjust_delta = GetNavTweakPressedAmount(axis) * tweak_factor; + v_speed = ImMax(v_speed, GetMinimumStepAtDecimalPrecision(decimal_precision)); + } + adjust_delta *= v_speed; + + // For vertical drag we currently assume that Up=higher value (like we do with vertical sliders). This may become a parameter. + if (axis == ImGuiAxis_Y) + adjust_delta = -adjust_delta; + + // For logarithmic use our range is effectively 0..1 so scale the delta into that range + if (is_logarithmic && (v_max - v_min < FLT_MAX) && ((v_max - v_min) > 0.000001f)) // Epsilon to avoid /0 + adjust_delta /= (float)(v_max - v_min); + + // Clear current value on activation + // Avoid altering values and clamping when we are _already_ past the limits and heading in the same direction, so e.g. if range is 0..255, current value is 300 and we are pushing to the right side, keep the 300. + bool is_just_activated = g.ActiveIdIsJustActivated; + bool is_already_past_limits_and_pushing_outward = is_clamped && ((*v >= v_max && adjust_delta > 0.0f) || (*v <= v_min && adjust_delta < 0.0f)); + if (is_just_activated || is_already_past_limits_and_pushing_outward) + { + g.DragCurrentAccum = 0.0f; + g.DragCurrentAccumDirty = false; + } + else if (adjust_delta != 0.0f) + { + g.DragCurrentAccum += adjust_delta; + g.DragCurrentAccumDirty = true; + } + + if (!g.DragCurrentAccumDirty) + return false; + + TYPE v_cur = *v; + FLOATTYPE v_old_ref_for_accum_remainder = (FLOATTYPE)0.0f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + const float zero_deadzone_halfsize = 0.0f; // Drag widgets have no deadzone (as it doesn't make sense) + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + + // Convert to parametric space, apply delta, convert back + float v_old_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + float v_new_parametric = v_old_parametric + g.DragCurrentAccum; + v_cur = ScaleValueFromRatioT(data_type, v_new_parametric, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + v_old_ref_for_accum_remainder = v_old_parametric; + } + else + { + v_cur += (SIGNEDTYPE)g.DragCurrentAccum; + } + + // Round to user desired precision based on format string + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_cur = RoundScalarWithFormatT(format, data_type, v_cur); + + // Preserve remainder after rounding has been applied. This also allow slow tweaking of values. + g.DragCurrentAccumDirty = false; + if (is_logarithmic) + { + // Convert to parametric space, apply delta, convert back + float v_new_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + g.DragCurrentAccum -= (float)(v_new_parametric - v_old_ref_for_accum_remainder); + } + else + { + g.DragCurrentAccum -= (float)((SIGNEDTYPE)v_cur - (SIGNEDTYPE)*v); + } + + // Lose zero sign for float/double + if (v_cur == (TYPE)-0) + v_cur = (TYPE)0; + + // Clamp values (+ handle overflow/wrap-around for integer types) + if (*v != v_cur && is_clamped) + { + if (v_cur < v_min || (v_cur > *v && adjust_delta < 0.0f && !is_floating_point)) + v_cur = v_min; + if (v_cur > v_max || (v_cur < *v && adjust_delta > 0.0f && !is_floating_point)) + v_cur = v_max; + } + + // Apply result + if (*v == v_cur) + return false; + *v = v_cur; + return true; +} + +bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flags! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + { + // Those are the things we can do easily outside the DragBehaviorT<> template, saves code generation. + if (g.ActiveIdSource == ImGuiInputSource_Mouse && !g.IO.MouseDown[0]) + ClearActiveID(); + else if (g.ActiveIdSource == ImGuiInputSource_Nav && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + ClearActiveID(); + } + if (g.ActiveId != id) + return false; + if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + return false; + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS8*) p_min : IM_S8_MIN, p_max ? *(const ImS8*)p_max : IM_S8_MAX, format, flags); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU8*) p_min : IM_U8_MIN, p_max ? *(const ImU8*)p_max : IM_U8_MAX, format, flags); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS16*)p_min : IM_S16_MIN, p_max ? *(const ImS16*)p_max : IM_S16_MAX, format, flags); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU16*)p_min : IM_U16_MIN, p_max ? *(const ImU16*)p_max : IM_U16_MAX, format, flags); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: return DragBehaviorT(data_type, (ImS32*)p_v, v_speed, p_min ? *(const ImS32* )p_min : IM_S32_MIN, p_max ? *(const ImS32* )p_max : IM_S32_MAX, format, flags); + case ImGuiDataType_U32: return DragBehaviorT(data_type, (ImU32*)p_v, v_speed, p_min ? *(const ImU32* )p_min : IM_U32_MIN, p_max ? *(const ImU32* )p_max : IM_U32_MAX, format, flags); + case ImGuiDataType_S64: return DragBehaviorT(data_type, (ImS64*)p_v, v_speed, p_min ? *(const ImS64* )p_min : IM_S64_MIN, p_max ? *(const ImS64* )p_max : IM_S64_MAX, format, flags); + case ImGuiDataType_U64: return DragBehaviorT(data_type, (ImU64*)p_v, v_speed, p_min ? *(const ImU64* )p_min : IM_U64_MIN, p_max ? *(const ImU64* )p_max : IM_U64_MAX, format, flags); + case ImGuiDataType_Float: return DragBehaviorT(data_type, (float*)p_v, v_speed, p_min ? *(const float* )p_min : -FLT_MAX, p_max ? *(const float* )p_max : FLT_MAX, format, flags); + case ImGuiDataType_Double: return DragBehaviorT(data_type, (double*)p_v, v_speed, p_min ? *(const double*)p_min : -DBL_MAX, p_max ? *(const double*)p_max : DBL_MAX, format, flags); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a Drag widget, p_min and p_max are optional. +// Read code of e.g. DragFloat(), DragInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::DragScalar(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, temp_input_allowed ? ImGuiItemFlags_Inputable : 0)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id); + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + // Tabbing or CTRL-clicking on Drag turns it into an InputText + const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool clicked = hovered && IsMouseClicked(0, id); + const bool double_clicked = (hovered && g.IO.MouseClickedCount[0] == 2 && TestKeyOwner(ImGuiKey_MouseLeft, id)); + const bool make_active = (input_requested_by_tabbing || clicked || double_clicked || g.NavActivateId == id || g.NavActivateInputId == id); + if (make_active && (clicked || double_clicked)) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || double_clicked || g.NavActivateInputId == id) + temp_input_is_active = true; + + // (Optional) simple click (without moving) turns Drag into an InputText + if (g.IO.ConfigDragClickToInputText && temp_input_allowed && !temp_input_is_active) + if (g.ActiveId == id && hovered && g.IO.MouseReleased[0] && !IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) + { + g.NavActivateId = g.NavActivateInputId = id; + g.NavActivateFlags = ImGuiActivateFlags_PreferInput; + temp_input_is_active = true; + } + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0 && (p_min == NULL || p_max == NULL || DataTypeCompare(data_type, p_min, p_max) < 0); + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, style.FrameRounding); + + // Drag behavior + const bool value_changed = DragBehavior(id, data_type, p_data, v_speed, p_min, p_max, format, flags); + if (value_changed) + MarkItemEdited(id); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return value_changed; +} + +bool ImGui::DragScalarN(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= DragScalar("", data_type, p_data, v_speed, p_min, p_max, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragFloatRange2(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + float min_min = (v_min >= v_max) ? -FLT_MAX : v_min; + float min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragScalar("##min", ImGuiDataType_Float, v_current_min, v_speed, &min_min, &min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + float max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + float max_max = (v_min >= v_max) ? FLT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragScalar("##max", ImGuiDataType_Float, v_current_max, v_speed, &max_min, &max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + + return value_changed; +} + +// NB: v_speed is float to allow adjusting the drag speed with more precision +bool ImGui::DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_S32, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragIntRange2(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + int min_min = (v_min >= v_max) ? INT_MIN : v_min; + int min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragInt("##min", v_current_min, v_speed, min_min, min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + int max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + int max_max = (v_min >= v_max) ? INT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragInt("##max", v_current_max, v_speed, max_min, max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +//------------------------------------------------------------------------- +// - ScaleRatioFromValueT<> [Internal] +// - ScaleValueFromRatioT<> [Internal] +// - SliderBehaviorT<>() [Internal] +// - SliderBehavior() [Internal] +// - SliderScalar() +// - SliderScalarN() +// - SliderFloat() +// - SliderFloat2() +// - SliderFloat3() +// - SliderFloat4() +// - SliderAngle() +// - SliderInt() +// - SliderInt2() +// - SliderInt3() +// - SliderInt4() +// - VSliderScalar() +// - VSliderFloat() +// - VSliderInt() +//------------------------------------------------------------------------- + +// Convert a value v in the output space of a slider into a parametric position on the slider itself (the logical opposite of ScaleValueFromRatioT) +template +float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + if (v_min == v_max) + return 0.0f; + IM_UNUSED(data_type); + + const TYPE v_clamped = (v_min < v_max) ? ImClamp(v, v_min, v_max) : ImClamp(v, v_max, v_min); + if (is_logarithmic) + { + bool flipped = v_max < v_min; + + if (flipped) // Handle the case where the range is backwards + ImSwap(v_min, v_max); + + // Fudge min/max to avoid getting close to log(0) + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + // Awkward special cases - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_min == 0.0f) && (v_max < 0.0f)) + v_min_fudged = -logarithmic_zero_epsilon; + else if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float result; + if (v_clamped <= v_min_fudged) + result = 0.0f; // Workaround for values that are in-range but below our fudge + else if (v_clamped >= v_max_fudged) + result = 1.0f; // Workaround for values that are in-range but above our fudge + else if ((v_min * v_max) < 0.0f) // Range crosses zero, so split into two portions + { + float zero_point_center = (-(float)v_min) / ((float)v_max - (float)v_min); // The zero point in parametric space. There's an argument we should take the logarithmic nature into account when calculating this, but for now this should do (and the most common case of a symmetrical range works fine) + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (v == 0.0f) + result = zero_point_center; // Special case for exactly zero + else if (v < 0.0f) + result = (1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(-v_min_fudged / logarithmic_zero_epsilon))) * zero_point_snap_L; + else + result = zero_point_snap_R + ((float)(ImLog((FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(v_max_fudged / logarithmic_zero_epsilon)) * (1.0f - zero_point_snap_R)); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = 1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / -v_max_fudged) / ImLog(-v_min_fudged / -v_max_fudged)); + else + result = (float)(ImLog((FLOATTYPE)v_clamped / v_min_fudged) / ImLog(v_max_fudged / v_min_fudged)); + + return flipped ? (1.0f - result) : result; + } + else + { + // Linear slider + return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); + } +} + +// Convert a parametric position on a slider into a value v in the output space (the logical opposite of ScaleRatioFromValueT) +template +TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + // We special-case the extents because otherwise our logarithmic fudging can lead to "mathematically correct" + // but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value. Also generally simpler. + if (t <= 0.0f || v_min == v_max) + return v_min; + if (t >= 1.0f) + return v_max; + + TYPE result = (TYPE)0; + if (is_logarithmic) + { + // Fudge min/max to avoid getting silly results close to zero + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + const bool flipped = v_max < v_min; // Check if range is "backwards" + if (flipped) + ImSwap(v_min_fudged, v_max_fudged); + + // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range + + if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts + { + float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) + result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) + else if (t_with_flip < zero_point_center) + result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); + else + result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); + else + result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); + } + else + { + // Linear slider + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + if (is_floating_point) + { + result = ImLerp(v_min, v_max, t); + } + else if (t < 1.0) + { + // - For integer values we want the clicking position to match the grab box so we round above + // This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property.. + // - Not doing a *1.0 multiply at the end of a range as it tends to be lossy. While absolute aiming at a large s64/u64 + // range is going to be imprecise anyway, with this check we at least make the edge values matches expected limits. + FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; + result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); + } + } + + return result; +} + +// FIXME: Try to move more of the code into shared SliderBehavior() +template +bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + const SIGNEDTYPE v_range = (v_min < v_max ? v_max - v_min : v_min - v_max); + + // Calculate bounds + const float grab_padding = 2.0f; // FIXME: Should be part of style. + const float slider_sz = (bb.Max[axis] - bb.Min[axis]) - grab_padding * 2.0f; + float grab_sz = style.GrabMinSize; + if (!is_floating_point && v_range >= 0) // v_range < 0 may happen on integer overflows + grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit + grab_sz = ImMin(grab_sz, slider_sz); + const float slider_usable_sz = slider_sz - grab_sz; + const float slider_usable_pos_min = bb.Min[axis] + grab_padding + grab_sz * 0.5f; + const float slider_usable_pos_max = bb.Max[axis] - grab_padding - grab_sz * 0.5f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + float zero_deadzone_halfsize = 0.0f; // Only valid when is_logarithmic is true + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + zero_deadzone_halfsize = (style.LogSliderDeadzone * 0.5f) / ImMax(slider_usable_sz, 1.0f); + } + + // Process interacting with the slider + bool value_changed = false; + if (g.ActiveId == id) + { + bool set_new_value = false; + float clicked_t = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (!g.IO.MouseDown[0]) + { + ClearActiveID(); + } + else + { + const float mouse_abs_pos = g.IO.MousePos[axis]; + if (g.ActiveIdIsJustActivated) + { + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + const bool clicked_around_grab = (mouse_abs_pos >= grab_pos - grab_sz * 0.5f - 1.0f) && (mouse_abs_pos <= grab_pos + grab_sz * 0.5f + 1.0f); // No harm being extra generous here. + g.SliderGrabClickOffset = (clicked_around_grab && is_floating_point) ? mouse_abs_pos - grab_pos : 0.0f; + } + if (slider_usable_sz > 0.0f) + clicked_t = ImSaturate((mouse_abs_pos - g.SliderGrabClickOffset - slider_usable_pos_min) / slider_usable_sz); + if (axis == ImGuiAxis_Y) + clicked_t = 1.0f - clicked_t; + set_new_value = true; + } + } + else if (g.ActiveIdSource == ImGuiInputSource_Nav) + { + if (g.ActiveIdIsJustActivated) + { + g.SliderCurrentAccum = 0.0f; // Reset any stored nav delta upon activation + g.SliderCurrentAccumDirty = false; + } + + float input_delta = (axis == ImGuiAxis_X) ? GetNavTweakPressedAmount(axis) : -GetNavTweakPressedAmount(axis); + if (input_delta != 0.0f) + { + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; + if (decimal_precision > 0) + { + input_delta /= 100.0f; // Gamepad/keyboard tweak speeds in % of slider bounds + if (tweak_slow) + input_delta /= 10.0f; + } + else + { + if ((v_range >= -100.0f && v_range <= 100.0f) || tweak_slow) + input_delta = ((input_delta < 0.0f) ? -1.0f : +1.0f) / (float)v_range; // Gamepad/keyboard tweak speeds in integer steps + else + input_delta /= 100.0f; + } + if (tweak_fast) + input_delta *= 10.0f; + + g.SliderCurrentAccum += input_delta; + g.SliderCurrentAccumDirty = true; + } + + float delta = g.SliderCurrentAccum; + if (g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + { + ClearActiveID(); + } + else if (g.SliderCurrentAccumDirty) + { + clicked_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if ((clicked_t >= 1.0f && delta > 0.0f) || (clicked_t <= 0.0f && delta < 0.0f)) // This is to avoid applying the saturation when already past the limits + { + set_new_value = false; + g.SliderCurrentAccum = 0.0f; // If pushing up against the limits, don't continue to accumulate + } + else + { + set_new_value = true; + float old_clicked_t = clicked_t; + clicked_t = ImSaturate(clicked_t + delta); + + // Calculate what our "new" clicked_t will be, and thus how far we actually moved the slider, and subtract this from the accumulator + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + float new_clicked_t = ScaleRatioFromValueT(data_type, v_new, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if (delta > 0) + g.SliderCurrentAccum -= ImMin(new_clicked_t - old_clicked_t, delta); + else + g.SliderCurrentAccum -= ImMax(new_clicked_t - old_clicked_t, delta); + } + + g.SliderCurrentAccumDirty = false; + } + } + + if (set_new_value) + { + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + // Round to user desired precision based on format string + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + + // Apply result + if (*v != v_new) + { + *v = v_new; + value_changed = true; + } + } + } + + if (slider_sz < 1.0f) + { + *out_grab_bb = ImRect(bb.Min, bb.Min); + } + else + { + // Output grab position so it can be displayed by the caller + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + if (axis == ImGuiAxis_X) + *out_grab_bb = ImRect(grab_pos - grab_sz * 0.5f, bb.Min.y + grab_padding, grab_pos + grab_sz * 0.5f, bb.Max.y - grab_padding); + else + *out_grab_bb = ImRect(bb.Min.x + grab_padding, grab_pos - grab_sz * 0.5f, bb.Max.x - grab_padding, grab_pos + grab_sz * 0.5f); + } + + return value_changed; +} + +// For 32-bit and larger types, slider bounds are limited to half the natural type range. +// So e.g. an integer Slider between INT_MAX-10 and INT_MAX will fail, but an integer Slider between INT_MAX/2-10 and INT_MAX/2 will be ok. +// It would be possible to lift that limitation with some work but it doesn't seem to be worth it for sliders. +bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flag! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + // Those are the things we can do easily outside the SliderBehaviorT<> template, saves code generation. + ImGuiContext& g = *GImGui; + if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + return false; + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS8*)p_min, *(const ImS8*)p_max, format, flags, out_grab_bb); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU8*)p_min, *(const ImU8*)p_max, format, flags, out_grab_bb); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS16*)p_min, *(const ImS16*)p_max, format, flags, out_grab_bb); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU16*)p_min, *(const ImU16*)p_max, format, flags, out_grab_bb); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: + IM_ASSERT(*(const ImS32*)p_min >= IM_S32_MIN / 2 && *(const ImS32*)p_max <= IM_S32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS32*)p_v, *(const ImS32*)p_min, *(const ImS32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U32: + IM_ASSERT(*(const ImU32*)p_max <= IM_U32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU32*)p_v, *(const ImU32*)p_min, *(const ImU32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_S64: + IM_ASSERT(*(const ImS64*)p_min >= IM_S64_MIN / 2 && *(const ImS64*)p_max <= IM_S64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS64*)p_v, *(const ImS64*)p_min, *(const ImS64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U64: + IM_ASSERT(*(const ImU64*)p_max <= IM_U64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU64*)p_v, *(const ImU64*)p_min, *(const ImU64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Float: + IM_ASSERT(*(const float*)p_min >= -FLT_MAX / 2.0f && *(const float*)p_max <= FLT_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (float*)p_v, *(const float*)p_min, *(const float*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Double: + IM_ASSERT(*(const double*)p_min >= -DBL_MAX / 2.0f && *(const double*)p_max <= DBL_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (double*)p_v, *(const double*)p_min, *(const double*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a slider, they are all required. +// Read code of e.g. SliderFloat(), SliderInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, temp_input_allowed ? ImGuiItemFlags_Inputable : 0)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id); + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + // Tabbing or CTRL-clicking on Slider turns it into an input box + const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool clicked = hovered && IsMouseClicked(0, id); + const bool make_active = (input_requested_by_tabbing || clicked || g.NavActivateId == id || g.NavActivateInputId == id); + if (make_active && clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || g.NavActivateInputId == id) + temp_input_is_active = true; + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0; + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.x > grab_bb.Min.x) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return value_changed; +} + +// Add multiple sliders on 1 line for compact edition of multiple components +bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= SliderScalar("", data_type, v, v_min, v_max, format, flags); + PopID(); + PopItemWidth(); + v = (void*)((char*)v + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags) +{ + if (format == NULL) + format = "%.0f deg"; + float v_deg = (*v_rad) * 360.0f / (2 * IM_PI); + bool value_changed = SliderFloat(label, &v_deg, v_degrees_min, v_degrees_max, format, flags); + *v_rad = v_deg * (2 * IM_PI) / 360.0f; + return value_changed; +} + +bool ImGui::SliderInt(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + size); + const ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + ItemSize(bb, style.FramePadding.y); + if (!ItemAdd(frame_bb, id)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id); + const bool clicked = hovered && IsMouseClicked(0, id); + if (clicked || g.NavActivateId == id || g.NavActivateInputId == id) + { + if (clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags | ImGuiSliderFlags_Vertical, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.y > grab_bb.Min.y) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + // For the vertical slider we allow centered text to overlap the frame padding + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.0f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + return value_changed; +} + +bool ImGui::VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, size, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, size, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +//------------------------------------------------------------------------- +// - ImParseFormatFindStart() [Internal] +// - ImParseFormatFindEnd() [Internal] +// - ImParseFormatTrimDecorations() [Internal] +// - ImParseFormatSanitizeForPrinting() [Internal] +// - ImParseFormatSanitizeForScanning() [Internal] +// - ImParseFormatPrecision() [Internal] +// - TempInputTextScalar() [Internal] +// - InputScalar() +// - InputScalarN() +// - InputFloat() +// - InputFloat2() +// - InputFloat3() +// - InputFloat4() +// - InputInt() +// - InputInt2() +// - InputInt3() +// - InputInt4() +// - InputDouble() +//------------------------------------------------------------------------- + +// We don't use strchr() because our strings are usually very short and often start with '%' +const char* ImParseFormatFindStart(const char* fmt) +{ + while (char c = fmt[0]) + { + if (c == '%' && fmt[1] != '%') + return fmt; + else if (c == '%') + fmt++; + fmt++; + } + return fmt; +} + +const char* ImParseFormatFindEnd(const char* fmt) +{ + // Printf/scanf types modifiers: I/L/h/j/l/t/w/z. Other uppercase letters qualify as types aka end of the format. + if (fmt[0] != '%') + return fmt; + const unsigned int ignored_uppercase_mask = (1 << ('I'-'A')) | (1 << ('L'-'A')); + const unsigned int ignored_lowercase_mask = (1 << ('h'-'a')) | (1 << ('j'-'a')) | (1 << ('l'-'a')) | (1 << ('t'-'a')) | (1 << ('w'-'a')) | (1 << ('z'-'a')); + for (char c; (c = *fmt) != 0; fmt++) + { + if (c >= 'A' && c <= 'Z' && ((1 << (c - 'A')) & ignored_uppercase_mask) == 0) + return fmt + 1; + if (c >= 'a' && c <= 'z' && ((1 << (c - 'a')) & ignored_lowercase_mask) == 0) + return fmt + 1; + } + return fmt; +} + +// Extract the format out of a format string with leading or trailing decorations +// fmt = "blah blah" -> return fmt +// fmt = "%.3f" -> return fmt +// fmt = "hello %.3f" -> return fmt + 6 +// fmt = "%.3f hello" -> return buf written with "%.3f" +const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_size) +{ + const char* fmt_start = ImParseFormatFindStart(fmt); + if (fmt_start[0] != '%') + return fmt; + const char* fmt_end = ImParseFormatFindEnd(fmt_start); + if (fmt_end[0] == 0) // If we only have leading decoration, we don't need to copy the data. + return fmt_start; + ImStrncpy(buf, fmt_start, ImMin((size_t)(fmt_end - fmt_start) + 1, buf_size)); + return buf; +} + +// Sanitize format +// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi +// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi. +void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate +} + +// - For scanning we need to remove all width and precision fields "%3.7f" -> "%f". BUT don't strip types like "%I64d" which includes digits. ! "%07I64d" -> "%I64d" +const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + const char* fmt_out_begin = fmt_out; + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + bool has_type = false; + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (!has_type && ((c >= '0' && c <= '9') || c == '.')) + continue; + has_type |= ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')); // Stop skipping digits + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate + return fmt_out_begin; +} + +template +static const char* ImAtoi(const char* src, TYPE* output) +{ + int negative = 0; + if (*src == '-') { negative = 1; src++; } + if (*src == '+') { src++; } + TYPE v = 0; + while (*src >= '0' && *src <= '9') + v = (v * 10) + (*src++ - '0'); + *output = negative ? -v : v; + return src; +} + +// Parse display precision back from the display format string +// FIXME: This is still used by some navigation code path to infer a minimum tweak step, but we should aim to rework widgets so it isn't needed. +int ImParseFormatPrecision(const char* fmt, int default_precision) +{ + fmt = ImParseFormatFindStart(fmt); + if (fmt[0] != '%') + return default_precision; + fmt++; + while (*fmt >= '0' && *fmt <= '9') + fmt++; + int precision = INT_MAX; + if (*fmt == '.') + { + fmt = ImAtoi(fmt + 1, &precision); + if (precision < 0 || precision > 99) + precision = default_precision; + } + if (*fmt == 'e' || *fmt == 'E') // Maximum precision with scientific notation + precision = -1; + if ((*fmt == 'g' || *fmt == 'G') && precision == INT_MAX) + precision = -1; + return (precision == INT_MAX) ? default_precision : precision; +} + +// Create text input in place of another active widget (e.g. used when doing a CTRL+Click on drag/slider widgets) +// FIXME: Facilitate using this in variety of other situations. +bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags) +{ + // On the first frame, g.TempInputTextId == 0, then on subsequent frames it becomes == id. + // We clear ActiveID on the first frame to allow the InputText() taking it back. + ImGuiContext& g = *GImGui; + const bool init = (g.TempInputId != id); + if (init) + ClearActiveID(); + + g.CurrentWindow->DC.CursorPos = bb.Min; + bool value_changed = InputTextEx(label, NULL, buf, buf_size, bb.GetSize(), flags | ImGuiInputTextFlags_MergedItem); + if (init) + { + // First frame we started displaying the InputText widget, we expect it to take the active id. + IM_ASSERT(g.ActiveId == id); + g.TempInputId = g.ActiveId; + } + return value_changed; +} + +static inline ImGuiInputTextFlags InputScalar_DefaultCharsFilter(ImGuiDataType data_type, const char* format) +{ + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + return ImGuiInputTextFlags_CharsScientific; + const char format_last_char = format[0] ? format[strlen(format) - 1] : 0; + return (format_last_char == 'x' || format_last_char == 'X') ? ImGuiInputTextFlags_CharsHexadecimal : ImGuiInputTextFlags_CharsDecimal; +} + +// Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set! +// This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility. +// However this may not be ideal for all uses, as some user code may break on out of bound values. +bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max) +{ + char fmt_buf[32]; + char data_buf[32]; + format = ImParseFormatTrimDecorations(format, fmt_buf, IM_ARRAYSIZE(fmt_buf)); + DataTypeFormatString(data_buf, IM_ARRAYSIZE(data_buf), data_type, p_data, format); + ImStrTrimBlanks(data_buf); + + ImGuiInputTextFlags flags = ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; + flags |= InputScalar_DefaultCharsFilter(data_type, format); + + bool value_changed = false; + if (TempInputText(bb, id, label, data_buf, IM_ARRAYSIZE(data_buf), flags)) + { + // Backup old value + size_t data_type_size = DataTypeGetInfo(data_type)->Size; + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, data_type_size); + + // Apply new value (or operations) then clamp + DataTypeApplyFromText(data_buf, data_type, p_data, format); + if (p_clamp_min || p_clamp_max) + { + if (p_clamp_min && p_clamp_max && DataTypeCompare(data_type, p_clamp_min, p_clamp_max) > 0) + ImSwap(p_clamp_min, p_clamp_max); + DataTypeClamp(data_type, p_data, p_clamp_min, p_clamp_max); + } + + // Only mark as edited if new value is different + value_changed = memcmp(&data_backup, p_data, data_type_size) != 0; + if (value_changed) + MarkItemEdited(id); + } + return value_changed; +} + +// Note: p_data, p_step, p_step_fast are _pointers_ to a memory address holding the data. For an Input widget, p_step and p_step_fast are optional. +// Read code of e.g. InputFloat(), InputInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + char buf[64]; + DataTypeFormatString(buf, IM_ARRAYSIZE(buf), data_type, p_data, format); + + // Testing ActiveId as a minor optimization as filtering is not needed until active + if (g.ActiveId == 0 && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) + flags |= InputScalar_DefaultCharsFilter(data_type, format); + flags |= ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. + + bool value_changed = false; + if (p_step != NULL) + { + const float button_size = GetFrameHeight(); + + BeginGroup(); // The only purpose of the group here is to allow the caller to query item data e.g. IsItemActive() + PushID(label); + SetNextItemWidth(ImMax(1.0f, CalcItemWidth() - (button_size + style.ItemInnerSpacing.x) * 2)); + if (InputText("", buf, IM_ARRAYSIZE(buf), flags)) // PushId(label) + "" gives us the expected ID from outside point of view + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags); + + // Step buttons + const ImVec2 backup_frame_padding = style.FramePadding; + style.FramePadding.x = style.FramePadding.y; + ImGuiButtonFlags button_flags = ImGuiButtonFlags_Repeat | ImGuiButtonFlags_DontClosePopups; + if (flags & ImGuiInputTextFlags_ReadOnly) + BeginDisabled(); + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("-", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '-', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("+", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '+', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + if (flags & ImGuiInputTextFlags_ReadOnly) + EndDisabled(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + style.FramePadding = backup_frame_padding; + + PopID(); + EndGroup(); + } + else + { + if (InputText(label, buf, IM_ARRAYSIZE(buf), flags)) + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + } + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +bool ImGui::InputScalarN(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= InputScalar("", data_type, p_data, p_step, p_step_fast, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0.0f, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Float, (void*)v, (void*)(step > 0.0f ? &step : NULL), (void*)(step_fast > 0.0f ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputFloat2(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 2, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat3(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 3, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat4(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 4, NULL, NULL, format, flags); +} + +bool ImGui::InputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags) +{ + // Hexadecimal input provided as a convenience but the flag name is awkward. Typically you'd use InputText() to parse your own data, if you want to handle prefixes. + const char* format = (flags & ImGuiInputTextFlags_CharsHexadecimal) ? "%08X" : "%d"; + return InputScalar(label, ImGuiDataType_S32, (void*)v, (void*)(step > 0 ? &step : NULL), (void*)(step_fast > 0 ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 2, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 3, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 4, NULL, NULL, "%d", flags); +} + +bool ImGui::InputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Double, (void*)v, (void*)(step > 0.0 ? &step : NULL), (void*)(step_fast > 0.0 ? &step_fast : NULL), format, flags); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputText, InputTextMultiline, InputTextWithHint +//------------------------------------------------------------------------- +// - InputText() +// - InputTextWithHint() +// - InputTextMultiline() +// - InputTextGetCharInfo() [Internal] +// - InputTextReindexLines() [Internal] +// - InputTextReindexLinesRange() [Internal] +// - InputTextEx() [Internal] +// - DebugNodeInputTextState() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() + return InputTextEx(label, NULL, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + return InputTextEx(label, NULL, buf, (int)buf_size, size, flags | ImGuiInputTextFlags_Multiline, callback, user_data); +} + +bool ImGui::InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() or InputTextEx() manually if you need multi-line + hint. + return InputTextEx(label, hint, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end) +{ + int line_count = 0; + const char* s = text_begin; + while (char c = *s++) // We are only matching for \n so we can ignore UTF-8 decoding + if (c == '\n') + line_count++; + s--; + if (s[0] != '\n' && s[0] != '\r') + line_count++; + *out_text_end = s; + return line_count; +} + +static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining, ImVec2* out_offset, bool stop_on_new_line) +{ + ImGuiContext& g = *GImGui; + ImFont* font = g.Font; + const float line_height = g.FontSize; + const float scale = line_height / font->FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const ImWchar* s = text_begin; + while (s < text_end) + { + unsigned int c = (unsigned int)(*s++); + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + if (stop_on_new_line) + break; + continue; + } + if (c == '\r') + continue; + + const float char_width = font->GetCharAdvance((ImWchar)c) * scale; + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (out_offset) + *out_offset = ImVec2(line_width, text_size.y + line_height); // offset allow for the possibility of sitting after a trailing \n + + if (line_width > 0 || text_size.y == 0.0f) // whereas size.y will ignore the trailing \n + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +// Wrapper for stb_textedit.h to edit text (our wrapper is for: statically sized buffer, single-line, wchar characters. InputText converts between UTF-8 and wchar) +namespace ImStb +{ + +static int STB_TEXTEDIT_STRINGLEN(const ImGuiInputTextState* obj) { return obj->CurLenW; } +static ImWchar STB_TEXTEDIT_GETCHAR(const ImGuiInputTextState* obj, int idx) { return obj->TextW[idx]; } +static float STB_TEXTEDIT_GETWIDTH(ImGuiInputTextState* obj, int line_start_idx, int char_idx) { ImWchar c = obj->TextW[line_start_idx + char_idx]; if (c == '\n') return STB_TEXTEDIT_GETWIDTH_NEWLINE; ImGuiContext& g = *GImGui; return g.Font->GetCharAdvance(c) * (g.FontSize / g.Font->FontSize); } +static int STB_TEXTEDIT_KEYTOTEXT(int key) { return key >= 0x200000 ? 0 : key; } +static ImWchar STB_TEXTEDIT_NEWLINE = '\n'; +static void STB_TEXTEDIT_LAYOUTROW(StbTexteditRow* r, ImGuiInputTextState* obj, int line_start_idx) +{ + const ImWchar* text = obj->TextW.Data; + const ImWchar* text_remaining = NULL; + const ImVec2 size = InputTextCalcTextSizeW(text + line_start_idx, text + obj->CurLenW, &text_remaining, NULL, true); + r->x0 = 0.0f; + r->x1 = size.x; + r->baseline_y_delta = size.y; + r->ymin = 0.0f; + r->ymax = size.y; + r->num_chars = (int)(text_remaining - (text + line_start_idx)); +} + +// When ImGuiInputTextFlags_Password is set, we don't want actions such as CTRL+Arrow to leak the fact that underlying data are blanks or separators. +static bool is_separator(unsigned int c) { return ImCharIsBlankW(c) || c==',' || c==';' || c=='(' || c==')' || c=='{' || c=='}' || c=='[' || c==']' || c=='|' || c=='\n' || c=='\r'; } +static int is_word_boundary_from_right(ImGuiInputTextState* obj, int idx) { if (obj->Flags & ImGuiInputTextFlags_Password) return 0; return idx > 0 ? (is_separator(obj->TextW[idx - 1]) && !is_separator(obj->TextW[idx]) ) : 1; } +static int is_word_boundary_from_left(ImGuiInputTextState* obj, int idx) { if (obj->Flags & ImGuiInputTextFlags_Password) return 0; return idx > 0 ? (!is_separator(obj->TextW[idx - 1]) && is_separator(obj->TextW[idx])) : 1; } +static int STB_TEXTEDIT_MOVEWORDLEFT_IMPL(ImGuiInputTextState* obj, int idx) { idx--; while (idx >= 0 && !is_word_boundary_from_right(obj, idx)) idx--; return idx < 0 ? 0 : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_MAC(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_left(obj, idx)) idx++; return idx > len ? len : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_WIN(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_right(obj, idx)) idx++; return idx > len ? len : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(ImGuiInputTextState* obj, int idx) { if (ImGui::GetIO().ConfigMacOSXBehaviors) return STB_TEXTEDIT_MOVEWORDRIGHT_MAC(obj, idx); else return STB_TEXTEDIT_MOVEWORDRIGHT_WIN(obj, idx); } +#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h +#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_IMPL + +static void STB_TEXTEDIT_DELETECHARS(ImGuiInputTextState* obj, int pos, int n) +{ + ImWchar* dst = obj->TextW.Data + pos; + + // We maintain our buffer length in both UTF-8 and wchar formats + obj->Edited = true; + obj->CurLenA -= ImTextCountUtf8BytesFromStr(dst, dst + n); + obj->CurLenW -= n; + + // Offset remaining text (FIXME-OPT: Use memmove) + const ImWchar* src = obj->TextW.Data + pos + n; + while (ImWchar c = *src++) + *dst++ = c; + *dst = '\0'; +} + +static bool STB_TEXTEDIT_INSERTCHARS(ImGuiInputTextState* obj, int pos, const ImWchar* new_text, int new_text_len) +{ + const bool is_resizable = (obj->Flags & ImGuiInputTextFlags_CallbackResize) != 0; + const int text_len = obj->CurLenW; + IM_ASSERT(pos <= text_len); + + const int new_text_len_utf8 = ImTextCountUtf8BytesFromStr(new_text, new_text + new_text_len); + if (!is_resizable && (new_text_len_utf8 + obj->CurLenA + 1 > obj->BufCapacityA)) + return false; + + // Grow internal buffer if needed + if (new_text_len + text_len + 1 > obj->TextW.Size) + { + if (!is_resizable) + return false; + IM_ASSERT(text_len < obj->TextW.Size); + obj->TextW.resize(text_len + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1); + } + + ImWchar* text = obj->TextW.Data; + if (pos != text_len) + memmove(text + pos + new_text_len, text + pos, (size_t)(text_len - pos) * sizeof(ImWchar)); + memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar)); + + obj->Edited = true; + obj->CurLenW += new_text_len; + obj->CurLenA += new_text_len_utf8; + obj->TextW[obj->CurLenW] = '\0'; + + return true; +} + +// We don't use an enum so we can build even with conflicting symbols (if another user of stb_textedit.h leak their STB_TEXTEDIT_K_* symbols) +#define STB_TEXTEDIT_K_LEFT 0x200000 // keyboard input to move cursor left +#define STB_TEXTEDIT_K_RIGHT 0x200001 // keyboard input to move cursor right +#define STB_TEXTEDIT_K_UP 0x200002 // keyboard input to move cursor up +#define STB_TEXTEDIT_K_DOWN 0x200003 // keyboard input to move cursor down +#define STB_TEXTEDIT_K_LINESTART 0x200004 // keyboard input to move cursor to start of line +#define STB_TEXTEDIT_K_LINEEND 0x200005 // keyboard input to move cursor to end of line +#define STB_TEXTEDIT_K_TEXTSTART 0x200006 // keyboard input to move cursor to start of text +#define STB_TEXTEDIT_K_TEXTEND 0x200007 // keyboard input to move cursor to end of text +#define STB_TEXTEDIT_K_DELETE 0x200008 // keyboard input to delete selection or character under cursor +#define STB_TEXTEDIT_K_BACKSPACE 0x200009 // keyboard input to delete selection or character left of cursor +#define STB_TEXTEDIT_K_UNDO 0x20000A // keyboard input to perform undo +#define STB_TEXTEDIT_K_REDO 0x20000B // keyboard input to perform redo +#define STB_TEXTEDIT_K_WORDLEFT 0x20000C // keyboard input to move cursor left one word +#define STB_TEXTEDIT_K_WORDRIGHT 0x20000D // keyboard input to move cursor right one word +#define STB_TEXTEDIT_K_PGUP 0x20000E // keyboard input to move cursor up a page +#define STB_TEXTEDIT_K_PGDOWN 0x20000F // keyboard input to move cursor down a page +#define STB_TEXTEDIT_K_SHIFT 0x400000 + +#define STB_TEXTEDIT_IMPLEMENTATION +#include "imstb_textedit.h" + +// stb_textedit internally allows for a single undo record to do addition and deletion, but somehow, calling +// the stb_textedit_paste() function creates two separate records, so we perform it manually. (FIXME: Report to nothings/stb?) +static void stb_textedit_replace(ImGuiInputTextState* str, STB_TexteditState* state, const STB_TEXTEDIT_CHARTYPE* text, int text_len) +{ + stb_text_makeundo_replace(str, state, 0, str->CurLenW, text_len); + ImStb::STB_TEXTEDIT_DELETECHARS(str, 0, str->CurLenW); + state->cursor = state->select_start = state->select_end = 0; + if (text_len <= 0) + return; + if (ImStb::STB_TEXTEDIT_INSERTCHARS(str, 0, text, text_len)) + { + state->cursor = state->select_start = state->select_end = text_len; + state->has_preferred_x = 0; + return; + } + IM_ASSERT(0); // Failed to insert character, normally shouldn't happen because of how we currently use stb_textedit_replace() +} + +} // namespace ImStb + +void ImGuiInputTextState::OnKeyPressed(int key) +{ + stb_textedit_key(this, &Stb, key); + CursorFollow = true; + CursorAnimReset(); +} + +ImGuiInputTextCallbackData::ImGuiInputTextCallbackData() +{ + memset(this, 0, sizeof(*this)); +} + +// Public API to manipulate UTF-8 text +// We expose UTF-8 to the user (unlike the STB_TEXTEDIT_* functions which are manipulating wchar) +// FIXME: The existence of this rarely exercised code path is a bit of a nuisance. +void ImGuiInputTextCallbackData::DeleteChars(int pos, int bytes_count) +{ + IM_ASSERT(pos + bytes_count <= BufTextLen); + char* dst = Buf + pos; + const char* src = Buf + pos + bytes_count; + while (char c = *src++) + *dst++ = c; + *dst = '\0'; + + if (CursorPos >= pos + bytes_count) + CursorPos -= bytes_count; + else if (CursorPos >= pos) + CursorPos = pos; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen -= bytes_count; +} + +void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_end) +{ + const bool is_resizable = (Flags & ImGuiInputTextFlags_CallbackResize) != 0; + const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text); + if (new_text_len + BufTextLen >= BufSize) + { + if (!is_resizable) + return; + + // Contrary to STB_TEXTEDIT_INSERTCHARS() this is working in the UTF8 buffer, hence the mildly similar code (until we remove the U16 buffer altogether!) + ImGuiContext& g = *GImGui; + ImGuiInputTextState* edit_state = &g.InputTextState; + IM_ASSERT(edit_state->ID != 0 && g.ActiveId == edit_state->ID); + IM_ASSERT(Buf == edit_state->TextA.Data); + int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; + edit_state->TextA.reserve(new_buf_size + 1); + Buf = edit_state->TextA.Data; + BufSize = edit_state->BufCapacityA = new_buf_size; + } + + if (BufTextLen != pos) + memmove(Buf + pos + new_text_len, Buf + pos, (size_t)(BufTextLen - pos)); + memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char)); + Buf[BufTextLen + new_text_len] = '\0'; + + if (CursorPos >= pos) + CursorPos += new_text_len; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen += new_text_len; +} + +// Return false to discard a character. +static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data, ImGuiInputSource input_source) +{ + IM_ASSERT(input_source == ImGuiInputSource_Keyboard || input_source == ImGuiInputSource_Clipboard); + unsigned int c = *p_char; + + // Filter non-printable (NB: isprint is unreliable! see #2467) + bool apply_named_filters = true; + if (c < 0x20) + { + bool pass = false; + pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); // Note that an Enter KEY will emit \r and be ignored (we poll for KEY in InputText() code) + pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput)); + if (!pass) + return false; + apply_named_filters = false; // Override named filters below so newline and tabs can still be inserted. + } + + if (input_source != ImGuiInputSource_Clipboard) + { + // We ignore Ascii representation of delete (emitted from Backspace on OSX, see #2578, #2817) + if (c == 127) + return false; + + // Filter private Unicode range. GLFW on OSX seems to send private characters for special keys like arrow keys (FIXME) + if (c >= 0xE000 && c <= 0xF8FF) + return false; + } + + // Filter Unicode ranges we are not handling in this build + if (c > IM_UNICODE_CODEPOINT_MAX) + return false; + + // Generic named filters + if (apply_named_filters && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase | ImGuiInputTextFlags_CharsNoBlank | ImGuiInputTextFlags_CharsScientific))) + { + // The libc allows overriding locale, with e.g. 'setlocale(LC_NUMERIC, "de_DE.UTF-8");' which affect the output/input of printf/scanf to use e.g. ',' instead of '.'. + // The standard mandate that programs starts in the "C" locale where the decimal point is '.'. + // We don't really intend to provide widespread support for it, but out of empathy for people stuck with using odd API, we support the bare minimum aka overriding the decimal point. + // Change the default decimal_point with: + // ImGui::GetCurrentContext()->PlatformLocaleDecimalPoint = *localeconv()->decimal_point; + // Users of non-default decimal point (in particular ',') may be affected by word-selection logic (is_word_boundary_from_right/is_word_boundary_from_left) functions. + ImGuiContext& g = *GImGui; + const unsigned c_decimal_point = (unsigned int)g.PlatformLocaleDecimalPoint; + + // Full-width -> half-width conversion for numeric fields (https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block) + // While this is mostly convenient, this has the side-effect for uninformed users accidentally inputting full-width characters that they may + // scratch their head as to why it works in numerical fields vs in generic text fields it would require support in the font. + if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsScientific | ImGuiInputTextFlags_CharsHexadecimal)) + if (c >= 0xFF01 && c <= 0xFF5E) + c = c - 0xFF01 + 0x21; + + // Allow 0-9 . - + * / + if (flags & ImGuiInputTextFlags_CharsDecimal) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/')) + return false; + + // Allow 0-9 . - + * / e E + if (flags & ImGuiInputTextFlags_CharsScientific) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/') && (c != 'e') && (c != 'E')) + return false; + + // Allow 0-9 a-F A-F + if (flags & ImGuiInputTextFlags_CharsHexadecimal) + if (!(c >= '0' && c <= '9') && !(c >= 'a' && c <= 'f') && !(c >= 'A' && c <= 'F')) + return false; + + // Turn a-z into A-Z + if (flags & ImGuiInputTextFlags_CharsUppercase) + if (c >= 'a' && c <= 'z') + c += (unsigned int)('A' - 'a'); + + if (flags & ImGuiInputTextFlags_CharsNoBlank) + if (ImCharIsBlankW(c)) + return false; + + *p_char = c; + } + + // Custom callback filter + if (flags & ImGuiInputTextFlags_CallbackCharFilter) + { + ImGuiInputTextCallbackData callback_data; + memset(&callback_data, 0, sizeof(ImGuiInputTextCallbackData)); + callback_data.EventFlag = ImGuiInputTextFlags_CallbackCharFilter; + callback_data.EventChar = (ImWchar)c; + callback_data.Flags = flags; + callback_data.UserData = user_data; + if (callback(&callback_data) != 0) + return false; + *p_char = callback_data.EventChar; + if (!callback_data.EventChar) + return false; + } + + return true; +} + +// Find the shortest single replacement we can make to get the new text from the old text. +// Important: needs to be run before TextW is rewritten with the new characters because calling STB_TEXTEDIT_GETCHAR() at the end. +// FIXME: Ideally we should transition toward (1) making InsertChars()/DeleteChars() update undo-stack (2) discourage (and keep reconcile) or obsolete (and remove reconcile) accessing buffer directly. +static void InputTextReconcileUndoStateAfterUserCallback(ImGuiInputTextState* state, const char* new_buf_a, int new_length_a) +{ + ImGuiContext& g = *GImGui; + const ImWchar* old_buf = state->TextW.Data; + const int old_length = state->CurLenW; + const int new_length = ImTextCountCharsFromUtf8(new_buf_a, new_buf_a + new_length_a); + g.TempBuffer.reserve_discard((new_length + 1) * sizeof(ImWchar)); + ImWchar* new_buf = (ImWchar*)(void*)g.TempBuffer.Data; + ImTextStrFromUtf8(new_buf, new_length + 1, new_buf_a, new_buf_a + new_length_a); + + const int shorter_length = ImMin(old_length, new_length); + int first_diff; + for (first_diff = 0; first_diff < shorter_length; first_diff++) + if (old_buf[first_diff] != new_buf[first_diff]) + break; + if (first_diff == old_length && first_diff == new_length) + return; + + int old_last_diff = old_length - 1; + int new_last_diff = new_length - 1; + for (; old_last_diff >= first_diff && new_last_diff >= first_diff; old_last_diff--, new_last_diff--) + if (old_buf[old_last_diff] != new_buf[new_last_diff]) + break; + + const int insert_len = new_last_diff - first_diff + 1; + const int delete_len = old_last_diff - first_diff + 1; + if (insert_len > 0 || delete_len > 0) + if (STB_TEXTEDIT_CHARTYPE* p = stb_text_createundo(&state->Stb.undostate, first_diff, delete_len, insert_len)) + for (int i = 0; i < delete_len; i++) + p[i] = ImStb::STB_TEXTEDIT_GETCHAR(state, first_diff + i); +} + +// Edit a string of text +// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". +// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match +// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator. +// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect. +// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h +// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are +// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188) +bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* callback_user_data) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + IM_ASSERT(buf != NULL && buf_size >= 0); + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackHistory) && (flags & ImGuiInputTextFlags_Multiline))); // Can't use both together (they both use up/down keys) + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackCompletion) && (flags & ImGuiInputTextFlags_AllowTabInput))); // Can't use both together (they both use tab key) + + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + const ImGuiStyle& style = g.Style; + + const bool RENDER_SELECTION_WHEN_INACTIVE = false; + const bool is_multiline = (flags & ImGuiInputTextFlags_Multiline) != 0; + const bool is_readonly = (flags & ImGuiInputTextFlags_ReadOnly) != 0; + const bool is_password = (flags & ImGuiInputTextFlags_Password) != 0; + const bool is_undoable = (flags & ImGuiInputTextFlags_NoUndoRedo) == 0; + const bool is_resizable = (flags & ImGuiInputTextFlags_CallbackResize) != 0; + if (is_resizable) + IM_ASSERT(callback != NULL); // Must provide a callback if you set the ImGuiInputTextFlags_CallbackResize flag! + + if (is_multiline) // Open group before calling GetID() because groups tracks id created within their scope (including the scrollbar) + BeginGroup(); + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImVec2 frame_size = CalcItemSize(size_arg, CalcItemWidth(), (is_multiline ? g.FontSize * 8.0f : label_size.y) + style.FramePadding.y * 2.0f); // Arbitrary default of 8 lines high for multi-line + const ImVec2 total_size = ImVec2(frame_size.x + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), frame_size.y); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect total_bb(frame_bb.Min, frame_bb.Min + total_size); + + ImGuiWindow* draw_window = window; + ImVec2 inner_size = frame_size; + ImGuiItemStatusFlags item_status_flags = 0; + ImGuiLastItemData item_data_backup; + if (is_multiline) + { + ImVec2 backup_pos = window->DC.CursorPos; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, ImGuiItemFlags_Inputable)) + { + EndGroup(); + return false; + } + item_status_flags = g.LastItemData.StatusFlags; + item_data_backup = g.LastItemData; + window->DC.CursorPos = backup_pos; + + // We reproduce the contents of BeginChildFrame() in order to provide 'label' so our window internal data are easier to read/debug. + // FIXME-NAV: Pressing NavActivate will trigger general child activation right before triggering our own below. Harmless but bizarre. + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); // Ensure no clip rect so mouse hover can reach FramePadding edges + bool child_visible = BeginChildEx(label, id, frame_bb.GetSize(), true, ImGuiWindowFlags_NoMove); + PopStyleVar(3); + PopStyleColor(); + if (!child_visible) + { + EndChild(); + EndGroup(); + return false; + } + draw_window = g.CurrentWindow; // Child window + draw_window->DC.NavLayersActiveMaskNext |= (1 << draw_window->DC.NavLayerCurrent); // This is to ensure that EndChild() will display a navigation highlight so we can "enter" into it. + draw_window->DC.CursorPos += style.FramePadding; + inner_size.x -= draw_window->ScrollbarSizes.x; + } + else + { + // Support for internal ImGuiInputTextFlags_MergedItem flag, which could be redesigned as an ItemFlags if needed (with test performed in ItemAdd) + ItemSize(total_bb, style.FramePadding.y); + if (!(flags & ImGuiInputTextFlags_MergedItem)) + if (!ItemAdd(total_bb, id, &frame_bb, ImGuiItemFlags_Inputable)) + return false; + item_status_flags = g.LastItemData.StatusFlags; + } + const bool hovered = ItemHoverable(frame_bb, id); + if (hovered) + g.MouseCursor = ImGuiMouseCursor_TextInput; + + // We are only allowed to access the state if we are already the active widget. + ImGuiInputTextState* state = GetInputTextState(id); + + const bool input_requested_by_tabbing = (item_status_flags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool input_requested_by_nav = (g.ActiveId != id) && ((g.NavActivateInputId == id) || (g.NavActivateId == id && g.NavInputSource == ImGuiInputSource_Keyboard)); + + const bool user_clicked = hovered && io.MouseClicked[0]; + const bool user_scroll_finish = is_multiline && state != NULL && g.ActiveId == 0 && g.ActiveIdPreviousFrame == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + const bool user_scroll_active = is_multiline && state != NULL && g.ActiveId == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + bool clear_active_id = false; + bool select_all = false; + + float scroll_y = is_multiline ? draw_window->Scroll.y : FLT_MAX; + + const bool init_changed_specs = (state != NULL && state->Stb.single_line != !is_multiline); + const bool init_make_active = (user_clicked || user_scroll_finish || input_requested_by_nav || input_requested_by_tabbing); + const bool init_state = (init_make_active || user_scroll_active); + if ((init_state && g.ActiveId != id) || init_changed_specs) + { + // Access state even if we don't own it yet. + state = &g.InputTextState; + state->CursorAnimReset(); + + // Take a copy of the initial buffer value (both in original UTF-8 format and converted to wchar) + // From the moment we focused we are ignoring the content of 'buf' (unless we are in read-only mode) + const int buf_len = (int)strlen(buf); + state->InitialTextA.resize(buf_len + 1); // UTF-8. we use +1 to make sure that .Data is always pointing to at least an empty string. + memcpy(state->InitialTextA.Data, buf, buf_len + 1); + + // Preserve cursor position and undo/redo stack if we come back to same widget + // FIXME: Since we reworked this on 2022/06, may want to differenciate recycle_cursor vs recycle_undostate? + bool recycle_state = (state->ID == id && !init_changed_specs); + if (recycle_state && (state->CurLenA != buf_len || (state->TextAIsValid && strncmp(state->TextA.Data, buf, buf_len) != 0))) + recycle_state = false; + + // Start edition + const char* buf_end = NULL; + state->ID = id; + state->TextW.resize(buf_size + 1); // wchar count <= UTF-8 count. we use +1 to make sure that .Data is always pointing to at least an empty string. + state->TextA.resize(0); + state->TextAIsValid = false; // TextA is not valid yet (we will display buf until then) + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, buf_size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); // We can't get the result from ImStrncpy() above because it is not UTF-8 aware. Here we'll cut off malformed UTF-8. + + if (recycle_state) + { + // Recycle existing cursor/selection/undo stack but clamp position + // Note a single mouse click will override the cursor/position immediately by calling stb_textedit_click handler. + state->CursorClamp(); + } + else + { + state->ScrollX = 0.0f; + stb_textedit_initialize_state(&state->Stb, !is_multiline); + } + + if (!is_multiline) + { + if (flags & ImGuiInputTextFlags_AutoSelectAll) + select_all = true; + if (input_requested_by_nav && (!recycle_state || !(g.NavActivateFlags & ImGuiActivateFlags_TryToPreserveState))) + select_all = true; + if (input_requested_by_tabbing || (user_clicked && io.KeyCtrl)) + select_all = true; + } + + if (flags & ImGuiInputTextFlags_AlwaysOverwrite) + state->Stb.insert_mode = 1; // stb field name is indeed incorrect (see #2863) + } + + if (g.ActiveId != id && init_make_active) + { + IM_ASSERT(state && state->ID == id); + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + } + if (g.ActiveId == id) + { + // Declare some inputs, the other are registered and polled via Shortcut() routing system. + if (user_clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + if (is_multiline || (flags & ImGuiInputTextFlags_CallbackHistory)) + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + SetKeyOwner(ImGuiKey_Home, id); + SetKeyOwner(ImGuiKey_End, id); + if (is_multiline) + { + SetKeyOwner(ImGuiKey_PageUp, id); + SetKeyOwner(ImGuiKey_PageDown, id); + } + if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. + SetKeyOwner(ImGuiKey_Tab, id); + } + + // We have an edge case if ActiveId was set through another widget (e.g. widget being swapped), clear id immediately (don't wait until the end of the function) + if (g.ActiveId == id && state == NULL) + ClearActiveID(); + + // Release focus when we click outside + if (g.ActiveId == id && io.MouseClicked[0] && !init_state && !init_make_active) //-V560 + clear_active_id = true; + + // Lock the decision of whether we are going to take the path displaying the cursor or selection + bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); + bool render_selection = state && (state->HasSelection() || select_all) && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + bool value_changed = false; + bool validated = false; + + // When read-only we always use the live data passed to the function + // FIXME-OPT: Because our selection/cursor code currently needs the wide text we need to convert it when active, which is not ideal :( + if (is_readonly && state != NULL && (render_cursor || render_selection)) + { + const char* buf_end = NULL; + state->TextW.resize(buf_size + 1); + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); + state->CursorClamp(); + render_selection &= state->HasSelection(); + } + + // Select the buffer to render. + const bool buf_display_from_state = (render_cursor || render_selection || g.ActiveId == id) && !is_readonly && state && state->TextAIsValid; + const bool is_displaying_hint = (hint != NULL && (buf_display_from_state ? state->TextA.Data : buf)[0] == 0); + + // Password pushes a temporary font with only a fallback glyph + if (is_password && !is_displaying_hint) + { + const ImFontGlyph* glyph = g.Font->FindGlyph('*'); + ImFont* password_font = &g.InputTextPasswordFont; + password_font->FontSize = g.Font->FontSize; + password_font->Scale = g.Font->Scale; + password_font->Ascent = g.Font->Ascent; + password_font->Descent = g.Font->Descent; + password_font->ContainerAtlas = g.Font->ContainerAtlas; + password_font->FallbackGlyph = glyph; + password_font->FallbackAdvanceX = glyph->AdvanceX; + IM_ASSERT(password_font->Glyphs.empty() && password_font->IndexAdvanceX.empty() && password_font->IndexLookup.empty()); + PushFont(password_font); + } + + // Process mouse inputs and character inputs + int backup_current_text_length = 0; + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + backup_current_text_length = state->CurLenA; + state->Edited = false; + state->BufCapacityA = buf_size; + state->Flags = flags; + + // Although we are active we don't prevent mouse from hovering other elements unless we are interacting right now with the widget. + // Down the line we should have a cleaner library-wide concept of Selected vs Active. + g.ActiveIdAllowOverlap = !io.MouseDown[0]; + g.WantTextInputNextFrame = 1; + + // Edit in progress + const float mouse_x = (io.MousePos.x - frame_bb.Min.x - style.FramePadding.x) + state->ScrollX; + const float mouse_y = (is_multiline ? (io.MousePos.y - draw_window->DC.CursorPos.y) : (g.FontSize * 0.5f)); + + const bool is_osx = io.ConfigMacOSXBehaviors; + if (select_all) + { + state->SelectAll(); + state->SelectedAllMouseLock = true; + } + else if (hovered && io.MouseClickedCount[0] >= 2 && !io.KeyShift) + { + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + const int multiclick_count = (io.MouseClickedCount[0] - 2); + if ((multiclick_count % 2) == 0) + { + // Double-click: Select word + // We always use the "Mac" word advance for double-click select vs CTRL+Right which use the platform dependent variant: + // FIXME: There are likely many ways to improve this behavior, but there's no "right" behavior (depends on use-case, software, OS) + const bool is_bol = (state->Stb.cursor == 0) || ImStb::STB_TEXTEDIT_GETCHAR(state, state->Stb.cursor - 1) == '\n'; + if (STB_TEXT_HAS_SELECTION(&state->Stb) || !is_bol) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT); + //state->OnKeyPressed(STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT); + if (!STB_TEXT_HAS_SELECTION(&state->Stb)) + ImStb::stb_textedit_prep_selection_at_cursor(&state->Stb); + state->Stb.cursor = ImStb::STB_TEXTEDIT_MOVEWORDRIGHT_MAC(state, state->Stb.cursor); + state->Stb.select_end = state->Stb.cursor; + ImStb::stb_textedit_clamp(state, &state->Stb); + } + else + { + // Triple-click: Select line + const bool is_eol = ImStb::STB_TEXTEDIT_GETCHAR(state, state->Stb.cursor) == '\n'; + state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART); + state->OnKeyPressed(STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT); + state->OnKeyPressed(STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT); + if (!is_eol && is_multiline) + { + ImSwap(state->Stb.select_start, state->Stb.select_end); + state->Stb.cursor = state->Stb.select_end; + } + state->CursorFollow = false; + } + state->CursorAnimReset(); + } + else if (io.MouseClicked[0] && !state->SelectedAllMouseLock) + { + if (hovered) + { + if (io.KeyShift) + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + else + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + } + } + else if (io.MouseDown[0] && !state->SelectedAllMouseLock && (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f)) + { + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + state->CursorFollow = true; + } + if (state->SelectedAllMouseLock && !io.MouseDown[0]) + state->SelectedAllMouseLock = false; + + // We expect backends to emit a Tab key but some also emit a Tab character which we ignore (#2467, #1336) + // (For Tab and Enter: Win32/SFML/Allegro are sending both keys and chars, GLFW and SDL are only sending keys. For Space they all send all threes) + const bool ignore_char_inputs = (io.KeyCtrl && !io.KeyAlt) || (is_osx && io.KeySuper); + if ((flags & ImGuiInputTextFlags_AllowTabInput) && IsKeyPressed(ImGuiKey_Tab) && !ignore_char_inputs && !io.KeyShift && !is_readonly) + { + unsigned int c = '\t'; // Insert TAB + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + + // Process regular text input (before we check for Return because using some IME will effectively send a Return?) + // We ignore CTRL inputs, but need to allow ALT+CTRL as some keyboards (e.g. German) use AltGR (which _is_ Alt+Ctrl) to input certain characters. + if (io.InputQueueCharacters.Size > 0) + { + if (!ignore_char_inputs && !is_readonly && !input_requested_by_nav) + for (int n = 0; n < io.InputQueueCharacters.Size; n++) + { + // Insert character if they pass filtering + unsigned int c = (unsigned int)io.InputQueueCharacters[n]; + if (c == '\t') // Skip Tab, see above. + continue; + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + + // Consume characters + io.InputQueueCharacters.resize(0); + } + } + + // Process other shortcuts/key-presses + bool revert_edit = false; + if (g.ActiveId == id && !g.ActiveIdIsJustActivated && !clear_active_id) + { + IM_ASSERT(state != NULL); + + const int row_count_per_page = ImMax((int)((inner_size.y - style.FramePadding.y) / g.FontSize), 1); + state->Stb.row_count_per_page = row_count_per_page; + + const int k_mask = (io.KeyShift ? STB_TEXTEDIT_K_SHIFT : 0); + const bool is_osx = io.ConfigMacOSXBehaviors; + const bool is_wordmove_key_down = is_osx ? io.KeyAlt : io.KeyCtrl; // OS X style: Text editing cursor movement using Alt instead of Ctrl + const bool is_startend_key_down = is_osx && io.KeySuper && !io.KeyCtrl && !io.KeyAlt; // OS X style: Line/Text Start and End using Cmd+Arrows instead of Home/End + + // Using Shortcut() with ImGuiInputFlags_RouteFocused (default policy) to allow routing operations for other code (e.g. calling window trying to use CTRL+A and CTRL+B: formet would be handled by InputText) + // Otherwise we could simply assume that we own the keys as we are active. + const ImGuiInputFlags f_repeat = ImGuiInputFlags_Repeat; + const bool is_cut = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_X, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Delete, id, f_repeat)) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); + const bool is_copy = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_C, id) || Shortcut(ImGuiMod_Ctrl | ImGuiKey_Insert, id)) && !is_password && (!is_multiline || state->HasSelection()); + const bool is_paste = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_V, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Insert, id, f_repeat)) && !is_readonly; + const bool is_undo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Z, id, f_repeat)) && !is_readonly && is_undoable; + const bool is_redo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Y, id, f_repeat) || (is_osx && Shortcut(ImGuiMod_Shortcut | ImGuiMod_Shift | ImGuiKey_Z, id, f_repeat))) && !is_readonly && is_undoable; + const bool is_select_all = Shortcut(ImGuiMod_Shortcut | ImGuiKey_A, id); + + // We allow validate/cancel with Nav source (gamepad) to makes it easier to undo an accidental NavInput press with no keyboard wired, but otherwise it isn't very useful. + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool is_enter_pressed = IsKeyPressed(ImGuiKey_Enter, true) || IsKeyPressed(ImGuiKey_KeypadEnter, true); + const bool is_gamepad_validate = nav_gamepad_active && (IsKeyPressed(ImGuiKey_NavGamepadActivate, false) || IsKeyPressed(ImGuiKey_NavGamepadInput, false)); + const bool is_cancel = Shortcut(ImGuiKey_Escape, id, f_repeat) || (nav_gamepad_active && Shortcut(ImGuiKey_NavGamepadCancel, id, f_repeat)); + + // FIXME: Should use more Shortcut() and reduce IsKeyPressed()+SetKeyOwner(), but requires modifiers combination to be taken account of. + if (IsKeyPressed(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } + else if (IsKeyPressed(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } + else if (IsKeyPressed(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } + else if (IsKeyPressed(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } + else if (IsKeyPressed(ImGuiKey_Delete) && !is_readonly && !is_cut) { state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); } + else if (IsKeyPressed(ImGuiKey_Backspace) && !is_readonly) + { + if (!state->HasSelection()) + { + if (is_wordmove_key_down) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT); + else if (is_osx && io.KeySuper && !io.KeyAlt && !io.KeyCtrl) + state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT); + } + state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE | k_mask); + } + else if (is_enter_pressed || is_gamepad_validate) + { + // Determine if we turn Enter into a \n character + bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0; + if (!is_multiline || is_gamepad_validate || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) + { + validated = true; + if (io.ConfigInputTextEnterKeepActive && !is_multiline) + state->SelectAll(); // No need to scroll + else + clear_active_id = true; + } + else if (!is_readonly) + { + unsigned int c = '\n'; // Insert new line + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + } + else if (is_cancel) + { + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + if (state->CurLenA > 0) + { + revert_edit = true; + } + else + { + render_cursor = render_selection = false; + clear_active_id = true; + } + } + else + { + clear_active_id = revert_edit = true; + render_cursor = render_selection = false; + } + } + else if (is_undo || is_redo) + { + state->OnKeyPressed(is_undo ? STB_TEXTEDIT_K_UNDO : STB_TEXTEDIT_K_REDO); + state->ClearSelection(); + } + else if (is_select_all) + { + state->SelectAll(); + state->CursorFollow = true; + } + else if (is_cut || is_copy) + { + // Cut, Copy + if (io.SetClipboardTextFn) + { + const int ib = state->HasSelection() ? ImMin(state->Stb.select_start, state->Stb.select_end) : 0; + const int ie = state->HasSelection() ? ImMax(state->Stb.select_start, state->Stb.select_end) : state->CurLenW; + const int clipboard_data_len = ImTextCountUtf8BytesFromStr(state->TextW.Data + ib, state->TextW.Data + ie) + 1; + char* clipboard_data = (char*)IM_ALLOC(clipboard_data_len * sizeof(char)); + ImTextStrToUtf8(clipboard_data, clipboard_data_len, state->TextW.Data + ib, state->TextW.Data + ie); + SetClipboardText(clipboard_data); + MemFree(clipboard_data); + } + if (is_cut) + { + if (!state->HasSelection()) + state->SelectAll(); + state->CursorFollow = true; + stb_textedit_cut(state, &state->Stb); + } + } + else if (is_paste) + { + if (const char* clipboard = GetClipboardText()) + { + // Filter pasted buffer + const int clipboard_len = (int)strlen(clipboard); + ImWchar* clipboard_filtered = (ImWchar*)IM_ALLOC((clipboard_len + 1) * sizeof(ImWchar)); + int clipboard_filtered_len = 0; + for (const char* s = clipboard; *s; ) + { + unsigned int c; + s += ImTextCharFromUtf8(&c, s, NULL); + if (c == 0) + break; + if (!InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Clipboard)) + continue; + clipboard_filtered[clipboard_filtered_len++] = (ImWchar)c; + } + clipboard_filtered[clipboard_filtered_len] = 0; + if (clipboard_filtered_len > 0) // If everything was filtered, ignore the pasting operation + { + stb_textedit_paste(state, &state->Stb, clipboard_filtered, clipboard_filtered_len); + state->CursorFollow = true; + } + MemFree(clipboard_filtered); + } + } + + // Update render selection flag after events have been handled, so selection highlight can be displayed during the same frame. + render_selection |= state->HasSelection() && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + } + + // Process callbacks and apply result back to user's buffer. + const char* apply_new_text = NULL; + int apply_new_text_length = 0; + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + if (revert_edit && !is_readonly) + { + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + // Clear input + apply_new_text = ""; + apply_new_text_length = 0; + STB_TEXTEDIT_CHARTYPE empty_string; + stb_textedit_replace(state, &state->Stb, &empty_string, 0); + } + else if (strcmp(buf, state->InitialTextA.Data) != 0) + { + // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. + // Push records into the undo stack so we can CTRL+Z the revert operation itself + apply_new_text = state->InitialTextA.Data; + apply_new_text_length = state->InitialTextA.Size - 1; + ImVector w_text; + if (apply_new_text_length > 0) + { + w_text.resize(ImTextCountCharsFromUtf8(apply_new_text, apply_new_text + apply_new_text_length) + 1); + ImTextStrFromUtf8(w_text.Data, w_text.Size, apply_new_text, apply_new_text + apply_new_text_length); + } + stb_textedit_replace(state, &state->Stb, w_text.Data, (apply_new_text_length > 0) ? (w_text.Size - 1) : 0); + } + } + + // Apply ASCII value + if (!is_readonly) + { + state->TextAIsValid = true; + state->TextA.resize(state->TextW.Size * 4 + 1); + ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); + } + + // When using 'ImGuiInputTextFlags_EnterReturnsTrue' as a special case we reapply the live buffer back to the input buffer before clearing ActiveId, even though strictly speaking it wasn't modified on this frame. + // If we didn't do that, code like InputInt() with ImGuiInputTextFlags_EnterReturnsTrue would fail. + // This also allows the user to use InputText() with ImGuiInputTextFlags_EnterReturnsTrue without maintaining any user-side storage (please note that if you use this property along ImGuiInputTextFlags_CallbackResize you can end up with your temporary string object unnecessarily allocating once a frame, either store your string data, either if you don't then don't use ImGuiInputTextFlags_CallbackResize). + const bool apply_edit_back_to_user_buffer = !revert_edit || (validated && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); + if (apply_edit_back_to_user_buffer) + { + // Apply new value immediately - copy modified buffer back + // Note that as soon as the input box is active, the in-widget value gets priority over any underlying modification of the input buffer + // FIXME: We actually always render 'buf' when calling DrawList->AddText, making the comment above incorrect. + // FIXME-OPT: CPU waste to do this every time the widget is active, should mark dirty state from the stb_textedit callbacks. + + // User callback + if ((flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackEdit | ImGuiInputTextFlags_CallbackAlways)) != 0) + { + IM_ASSERT(callback != NULL); + + // The reason we specify the usage semantic (Completion/History) is that Completion needs to disable keyboard TABBING at the moment. + ImGuiInputTextFlags event_flag = 0; + ImGuiKey event_key = ImGuiKey_None; + if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && IsKeyPressed(ImGuiKey_Tab)) + { + event_flag = ImGuiInputTextFlags_CallbackCompletion; + event_key = ImGuiKey_Tab; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_UpArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_UpArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_DownArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_DownArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackEdit) && state->Edited) + { + event_flag = ImGuiInputTextFlags_CallbackEdit; + } + else if (flags & ImGuiInputTextFlags_CallbackAlways) + { + event_flag = ImGuiInputTextFlags_CallbackAlways; + } + + if (event_flag) + { + ImGuiInputTextCallbackData callback_data; + memset(&callback_data, 0, sizeof(ImGuiInputTextCallbackData)); + callback_data.EventFlag = event_flag; + callback_data.Flags = flags; + callback_data.UserData = callback_user_data; + + char* callback_buf = is_readonly ? buf : state->TextA.Data; + callback_data.EventKey = event_key; + callback_data.Buf = callback_buf; + callback_data.BufTextLen = state->CurLenA; + callback_data.BufSize = state->BufCapacityA; + callback_data.BufDirty = false; + + // We have to convert from wchar-positions to UTF-8-positions, which can be pretty slow (an incentive to ditch the ImWchar buffer, see https://github.com/nothings/stb/issues/188) + ImWchar* text = state->TextW.Data; + const int utf8_cursor_pos = callback_data.CursorPos = ImTextCountUtf8BytesFromStr(text, text + state->Stb.cursor); + const int utf8_selection_start = callback_data.SelectionStart = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_start); + const int utf8_selection_end = callback_data.SelectionEnd = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_end); + + // Call user code + callback(&callback_data); + + // Read back what user may have modified + callback_buf = is_readonly ? buf : state->TextA.Data; // Pointer may have been invalidated by a resize callback + IM_ASSERT(callback_data.Buf == callback_buf); // Invalid to modify those fields + IM_ASSERT(callback_data.BufSize == state->BufCapacityA); + IM_ASSERT(callback_data.Flags == flags); + const bool buf_dirty = callback_data.BufDirty; + if (callback_data.CursorPos != utf8_cursor_pos || buf_dirty) { state->Stb.cursor = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.CursorPos); state->CursorFollow = true; } + if (callback_data.SelectionStart != utf8_selection_start || buf_dirty) { state->Stb.select_start = (callback_data.SelectionStart == callback_data.CursorPos) ? state->Stb.cursor : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionStart); } + if (callback_data.SelectionEnd != utf8_selection_end || buf_dirty) { state->Stb.select_end = (callback_data.SelectionEnd == callback_data.SelectionStart) ? state->Stb.select_start : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); } + if (buf_dirty) + { + IM_ASSERT((flags & ImGuiInputTextFlags_ReadOnly) == 0); + IM_ASSERT(callback_data.BufTextLen == (int)strlen(callback_data.Buf)); // You need to maintain BufTextLen if you change the text! + InputTextReconcileUndoStateAfterUserCallback(state, callback_data.Buf, callback_data.BufTextLen); // FIXME: Move the rest of this block inside function and rename to InputTextReconcileStateAfterUserCallback() ? + if (callback_data.BufTextLen > backup_current_text_length && is_resizable) + state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); // Worse case scenario resize + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, callback_data.Buf, NULL); + state->CurLenA = callback_data.BufTextLen; // Assume correct length and valid UTF-8 from user, saves us an extra strlen() + state->CursorAnimReset(); + } + } + } + + // Will copy result string if modified + if (!is_readonly && strcmp(state->TextA.Data, buf) != 0) + { + apply_new_text = state->TextA.Data; + apply_new_text_length = state->CurLenA; + } + } + } + + // Copy result to user buffer. This can currently only happen when (g.ActiveId == id) + if (apply_new_text != NULL) + { + // We cannot test for 'backup_current_text_length != apply_new_text_length' here because we have no guarantee that the size + // of our owned buffer matches the size of the string object held by the user, and by design we allow InputText() to be used + // without any storage on user's side. + IM_ASSERT(apply_new_text_length >= 0); + if (is_resizable) + { + ImGuiInputTextCallbackData callback_data; + callback_data.EventFlag = ImGuiInputTextFlags_CallbackResize; + callback_data.Flags = flags; + callback_data.Buf = buf; + callback_data.BufTextLen = apply_new_text_length; + callback_data.BufSize = ImMax(buf_size, apply_new_text_length + 1); + callback_data.UserData = callback_user_data; + callback(&callback_data); + buf = callback_data.Buf; + buf_size = callback_data.BufSize; + apply_new_text_length = ImMin(callback_data.BufTextLen, buf_size - 1); + IM_ASSERT(apply_new_text_length <= buf_size); + } + //IMGUI_DEBUG_PRINT("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); + + // If the underlying buffer resize was denied or not carried to the next frame, apply_new_text_length+1 may be >= buf_size. + ImStrncpy(buf, apply_new_text, ImMin(apply_new_text_length + 1, buf_size)); + value_changed = true; + } + + // Release active ID at the end of the function (so e.g. pressing Return still does a final application of the value) + if (clear_active_id && g.ActiveId == id) + ClearActiveID(); + + // Render frame + if (!is_multiline) + { + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + } + + const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + inner_size.x, frame_bb.Min.y + inner_size.y); // Not using frame_bb.Max because we have adjusted size + ImVec2 draw_pos = is_multiline ? draw_window->DC.CursorPos : frame_bb.Min + style.FramePadding; + ImVec2 text_size(0.0f, 0.0f); + + // Set upper limit of single-line InputTextEx() at 2 million characters strings. The current pathological worst case is a long line + // without any carriage return, which would makes ImFont::RenderText() reserve too many vertices and probably crash. Avoid it altogether. + // Note that we only use this limit on single-line InputText(), so a pathologically large line on a InputTextMultiline() would still crash. + const int buf_display_max_length = 2 * 1024 * 1024; + const char* buf_display = buf_display_from_state ? state->TextA.Data : buf; //-V595 + const char* buf_display_end = NULL; // We have specialized paths below for setting the length + if (is_displaying_hint) + { + buf_display = hint; + buf_display_end = hint + strlen(hint); + } + + // Render text. We currently only render selection when the widget is active or while scrolling. + // FIXME: We could remove the '&& render_cursor' to keep rendering selection when inactive. + if (render_cursor || render_selection) + { + IM_ASSERT(state != NULL); + if (!is_displaying_hint) + buf_display_end = buf_display + state->CurLenA; + + // Render text (with cursor and selection) + // This is going to be messy. We need to: + // - Display the text (this alone can be more easily clipped) + // - Handle scrolling, highlight selection, display cursor (those all requires some form of 1d->2d cursor position calculation) + // - Measure text height (for scrollbar) + // We are attempting to do most of that in **one main pass** to minimize the computation cost (non-negligible for large amount of text) + 2nd pass for selection rendering (we could merge them by an extra refactoring effort) + // FIXME: This should occur on buf_display but we'd need to maintain cursor/select_start/select_end for UTF-8. + const ImWchar* text_begin = state->TextW.Data; + ImVec2 cursor_offset, select_start_offset; + + { + // Find lines numbers straddling 'cursor' (slot 0) and 'select_start' (slot 1) positions. + const ImWchar* searches_input_ptr[2] = { NULL, NULL }; + int searches_result_line_no[2] = { -1000, -1000 }; + int searches_remaining = 0; + if (render_cursor) + { + searches_input_ptr[0] = text_begin + state->Stb.cursor; + searches_result_line_no[0] = -1; + searches_remaining++; + } + if (render_selection) + { + searches_input_ptr[1] = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + searches_result_line_no[1] = -1; + searches_remaining++; + } + + // Iterate all lines to find our line numbers + // In multi-line mode, we never exit the loop until all lines are counted, so add one extra to the searches_remaining counter. + searches_remaining += is_multiline ? 1 : 0; + int line_count = 0; + //for (const ImWchar* s = text_begin; (s = (const ImWchar*)wcschr((const wchar_t*)s, (wchar_t)'\n')) != NULL; s++) // FIXME-OPT: Could use this when wchar_t are 16-bit + for (const ImWchar* s = text_begin; *s != 0; s++) + if (*s == '\n') + { + line_count++; + if (searches_result_line_no[0] == -1 && s >= searches_input_ptr[0]) { searches_result_line_no[0] = line_count; if (--searches_remaining <= 0) break; } + if (searches_result_line_no[1] == -1 && s >= searches_input_ptr[1]) { searches_result_line_no[1] = line_count; if (--searches_remaining <= 0) break; } + } + line_count++; + if (searches_result_line_no[0] == -1) + searches_result_line_no[0] = line_count; + if (searches_result_line_no[1] == -1) + searches_result_line_no[1] = line_count; + + // Calculate 2d position by finding the beginning of the line and measuring distance + cursor_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[0], text_begin), searches_input_ptr[0]).x; + cursor_offset.y = searches_result_line_no[0] * g.FontSize; + if (searches_result_line_no[1] >= 0) + { + select_start_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[1], text_begin), searches_input_ptr[1]).x; + select_start_offset.y = searches_result_line_no[1] * g.FontSize; + } + + // Store text height (note that we haven't calculated text width at all, see GitHub issues #383, #1224) + if (is_multiline) + text_size = ImVec2(inner_size.x, line_count * g.FontSize); + } + + // Scroll + if (render_cursor && state->CursorFollow) + { + // Horizontal scroll in chunks of quarter width + if (!(flags & ImGuiInputTextFlags_NoHorizontalScroll)) + { + const float scroll_increment_x = inner_size.x * 0.25f; + const float visible_width = inner_size.x - style.FramePadding.x; + if (cursor_offset.x < state->ScrollX) + state->ScrollX = IM_FLOOR(ImMax(0.0f, cursor_offset.x - scroll_increment_x)); + else if (cursor_offset.x - visible_width >= state->ScrollX) + state->ScrollX = IM_FLOOR(cursor_offset.x - visible_width + scroll_increment_x); + } + else + { + state->ScrollX = 0.0f; + } + + // Vertical scroll + if (is_multiline) + { + // Test if cursor is vertically visible + if (cursor_offset.y - g.FontSize < scroll_y) + scroll_y = ImMax(0.0f, cursor_offset.y - g.FontSize); + else if (cursor_offset.y - (inner_size.y - style.FramePadding.y * 2.0f) >= scroll_y) + scroll_y = cursor_offset.y - inner_size.y + style.FramePadding.y * 2.0f; + const float scroll_max_y = ImMax((text_size.y + style.FramePadding.y * 2.0f) - inner_size.y, 0.0f); + scroll_y = ImClamp(scroll_y, 0.0f, scroll_max_y); + draw_pos.y += (draw_window->Scroll.y - scroll_y); // Manipulate cursor pos immediately avoid a frame of lag + draw_window->Scroll.y = scroll_y; + } + + state->CursorFollow = false; + } + + // Draw selection + const ImVec2 draw_scroll = ImVec2(state->ScrollX, 0.0f); + if (render_selection) + { + const ImWchar* text_selected_begin = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + const ImWchar* text_selected_end = text_begin + ImMax(state->Stb.select_start, state->Stb.select_end); + + ImU32 bg_color = GetColorU32(ImGuiCol_TextSelectedBg, render_cursor ? 1.0f : 0.6f); // FIXME: current code flow mandate that render_cursor is always true here, we are leaving the transparent one for tests. + float bg_offy_up = is_multiline ? 0.0f : -1.0f; // FIXME: those offsets should be part of the style? they don't play so well with multi-line selection. + float bg_offy_dn = is_multiline ? 0.0f : 2.0f; + ImVec2 rect_pos = draw_pos + select_start_offset - draw_scroll; + for (const ImWchar* p = text_selected_begin; p < text_selected_end; ) + { + if (rect_pos.y > clip_rect.w + g.FontSize) + break; + if (rect_pos.y < clip_rect.y) + { + //p = (const ImWchar*)wmemchr((const wchar_t*)p, '\n', text_selected_end - p); // FIXME-OPT: Could use this when wchar_t are 16-bit + //p = p ? p + 1 : text_selected_end; + while (p < text_selected_end) + if (*p++ == '\n') + break; + } + else + { + ImVec2 rect_size = InputTextCalcTextSizeW(p, text_selected_end, &p, NULL, true); + if (rect_size.x <= 0.0f) rect_size.x = IM_FLOOR(g.Font->GetCharAdvance((ImWchar)' ') * 0.50f); // So we can see selected empty lines + ImRect rect(rect_pos + ImVec2(0.0f, bg_offy_up - g.FontSize), rect_pos + ImVec2(rect_size.x, bg_offy_dn)); + rect.ClipWith(clip_rect); + if (rect.Overlaps(clip_rect)) + draw_window->DrawList->AddRectFilled(rect.Min, rect.Max, bg_color); + } + rect_pos.x = draw_pos.x - draw_scroll.x; + rect_pos.y += g.FontSize; + } + } + + // We test for 'buf_display_max_length' as a way to avoid some pathological cases (e.g. single-line 1 MB string) which would make ImDrawList crash. + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos - draw_scroll, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + + // Draw blinking cursor + if (render_cursor) + { + state->CursorAnim += io.DeltaTime; + bool cursor_is_visible = (!g.IO.ConfigInputTextCursorBlink) || (state->CursorAnim <= 0.0f) || ImFmod(state->CursorAnim, 1.20f) <= 0.80f; + ImVec2 cursor_screen_pos = ImFloor(draw_pos + cursor_offset - draw_scroll); + ImRect cursor_screen_rect(cursor_screen_pos.x, cursor_screen_pos.y - g.FontSize + 0.5f, cursor_screen_pos.x + 1.0f, cursor_screen_pos.y - 1.5f); + if (cursor_is_visible && cursor_screen_rect.Overlaps(clip_rect)) + draw_window->DrawList->AddLine(cursor_screen_rect.Min, cursor_screen_rect.GetBL(), GetColorU32(ImGuiCol_Text)); + + // Notify OS of text input position for advanced IME (-1 x offset so that Windows IME can cover our cursor. Bit of an extra nicety.) + if (!is_readonly) + { + g.PlatformImeData.WantVisible = true; + g.PlatformImeData.InputPos = ImVec2(cursor_screen_pos.x - 1.0f, cursor_screen_pos.y - g.FontSize); + g.PlatformImeData.InputLineHeight = g.FontSize; + g.PlatformImeViewport = window->Viewport->ID; + } + } + } + else + { + // Render text only (no selection, no cursor) + if (is_multiline) + text_size = ImVec2(inner_size.x, InputTextCalcTextLenAndLineCount(buf_display, &buf_display_end) * g.FontSize); // We don't need width + else if (!is_displaying_hint && g.ActiveId == id) + buf_display_end = buf_display + state->CurLenA; + else if (!is_displaying_hint) + buf_display_end = buf_display + strlen(buf_display); + + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + } + + if (is_password && !is_displaying_hint) + PopFont(); + + if (is_multiline) + { + // For focus requests to work on our multiline we need to ensure our child ItemAdd() call specifies the ImGuiItemFlags_Inputable (ref issue #4761)... + Dummy(ImVec2(text_size.x, text_size.y + style.FramePadding.y)); + ImGuiItemFlags backup_item_flags = g.CurrentItemFlags; + g.CurrentItemFlags |= ImGuiItemFlags_Inputable | ImGuiItemFlags_NoTabStop; + EndChild(); + item_data_backup.StatusFlags |= (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredWindow); + g.CurrentItemFlags = backup_item_flags; + + // ...and then we need to undo the group overriding last item data, which gets a bit messy as EndGroup() tries to forward scrollbar being active... + // FIXME: This quite messy/tricky, should attempt to get rid of the child window. + EndGroup(); + if (g.LastItemData.ID == 0) + { + g.LastItemData.ID = id; + g.LastItemData.InFlags = item_data_backup.InFlags; + g.LastItemData.StatusFlags = item_data_backup.StatusFlags; + } + } + + // Log as text + if (g.LogEnabled && (!is_password || is_displaying_hint)) + { + LogSetNextTextDecoration("{", "}"); + LogRenderedText(&draw_pos, buf_display, buf_display_end); + } + + if (label_size.x > 0) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + if (value_changed && !(flags & ImGuiInputTextFlags_NoMarkEdited)) + MarkItemEdited(id); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + if ((flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0) + return validated; + else + return value_changed; +} + +void ImGui::DebugNodeInputTextState(ImGuiInputTextState* state) +{ +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + ImGuiContext& g = *GImGui; + ImStb::STB_TexteditState* stb_state = &state->Stb; + ImStb::StbUndoState* undo_state = &stb_state->undostate; + Text("ID: 0x%08X, ActiveID: 0x%08X", state->ID, g.ActiveId); + DebugLocateItemOnHover(state->ID); + Text("CurLenW: %d, CurLenA: %d, Cursor: %d, Selection: %d..%d", state->CurLenA, state->CurLenW, stb_state->cursor, stb_state->select_start, stb_state->select_end); + Text("undo_point: %d, redo_point: %d, undo_char_point: %d, redo_char_point: %d", undo_state->undo_point, undo_state->redo_point, undo_state->undo_char_point, undo_state->redo_char_point); + if (BeginChild("undopoints", ImVec2(0.0f, GetTextLineHeight() * 15), true)) // Visualize undo state + { + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int n = 0; n < STB_TEXTEDIT_UNDOSTATECOUNT; n++) + { + ImStb::StbUndoRecord* undo_rec = &undo_state->undo_rec[n]; + const char undo_rec_type = (n < undo_state->undo_point) ? 'u' : (n >= undo_state->redo_point) ? 'r' : ' '; + if (undo_rec_type == ' ') + BeginDisabled(); + char buf[64] = ""; + if (undo_rec_type != ' ' && undo_rec->char_storage != -1) + ImTextStrToUtf8(buf, IM_ARRAYSIZE(buf), undo_state->undo_char + undo_rec->char_storage, undo_state->undo_char + undo_rec->char_storage + undo_rec->insert_length); + Text("%c [%02d] where %03d, insert %03d, delete %03d, char_storage %03d \"%s\"", + undo_rec_type, n, undo_rec->where, undo_rec->insert_length, undo_rec->delete_length, undo_rec->char_storage, buf); + if (undo_rec_type == ' ') + EndDisabled(); + } + PopStyleVar(); + } + EndChild(); +#else + IM_UNUSED(state); +#endif +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +//------------------------------------------------------------------------- +// - ColorEdit3() +// - ColorEdit4() +// - ColorPicker3() +// - RenderColorRectWithAlphaCheckerboard() [Internal] +// - ColorPicker4() +// - ColorButton() +// - SetColorEditOptions() +// - ColorTooltip() [Internal] +// - ColorEditOptionsPopup() [Internal] +// - ColorPickerOptionsPopup() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + return ColorEdit4(label, col, flags | ImGuiColorEditFlags_NoAlpha); +} + +// ColorEdit supports RGB and HSV inputs. In case of RGB input resulting color may have undefined hue and/or saturation. +// Since widget displays both RGB and HSV values we must preserve hue and saturation to prevent these values resetting. +static void ColorEditRestoreHS(const float* col, float* H, float* S, float* V) +{ + // This check is optional. Suppose we have two color widgets side by side, both widgets display different colors, but both colors have hue and/or saturation undefined. + // With color check: hue/saturation is preserved in one widget. Editing color in one widget would reset hue/saturation in another one. + // Without color check: common hue/saturation would be displayed in all widgets that have hue/saturation undefined. + // g.ColorEditLastColor is stored as ImU32 RGB value: this essentially gives us color equality check with reduced precision. + // Tiny external color changes would not be detected and this check would still pass. This is OK, since we only restore hue/saturation _only_ if they are undefined, + // therefore this change flipping hue/saturation from undefined to a very tiny value would still be represented in color picker. + ImGuiContext& g = *GImGui; + if (g.ColorEditLastColor != ImGui::ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0))) + return; + + // When S == 0, H is undefined. + // When H == 1 it wraps around to 0. + if (*S == 0.0f || (*H == 0.0f && g.ColorEditLastHue == 1)) + *H = g.ColorEditLastHue; + + // When V == 0, S is undefined. + if (*V == 0.0f) + *S = g.ColorEditLastSat; +} + +// Edit colors components (each component in 0.0f..1.0f range). +// See enum ImGuiColorEditFlags_ for available options. e.g. Only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// With typical options: Left-click on color square to open color picker. Right-click to open option menu. CTRL-Click over input fields to edit them and TAB to go to next item. +bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float square_sz = GetFrameHeight(); + const float w_full = CalcItemWidth(); + const float w_button = (flags & ImGuiColorEditFlags_NoSmallPreview) ? 0.0f : (square_sz + style.ItemInnerSpacing.x); + const float w_inputs = w_full - w_button; + const char* label_display_end = FindRenderedTextEnd(label); + g.NextItemData.ClearFlags(); + + BeginGroup(); + PushID(label); + + // If we're not showing any slider there's no point in doing any HSV conversions + const ImGuiColorEditFlags flags_untouched = flags; + if (flags & ImGuiColorEditFlags_NoInputs) + flags = (flags & (~ImGuiColorEditFlags_DisplayMask_)) | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_NoOptions; + + // Context menu: display and modify options (before defaults are applied) + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorEditOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags_DisplayMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_DisplayMask_); + if (!(flags & ImGuiColorEditFlags_DataTypeMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_DataTypeMask_); + if (!(flags & ImGuiColorEditFlags_PickerMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_PickerMask_); + if (!(flags & ImGuiColorEditFlags_InputMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_InputMask_); + flags |= (g.ColorEditOptions & ~(ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_)); + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DisplayMask_)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check that only 1 is selected + + const bool alpha = (flags & ImGuiColorEditFlags_NoAlpha) == 0; + const bool hdr = (flags & ImGuiColorEditFlags_HDR) != 0; + const int components = alpha ? 4 : 3; + + // Convert to the formats we need + float f[4] = { col[0], col[1], col[2], alpha ? col[3] : 1.0f }; + if ((flags & ImGuiColorEditFlags_InputHSV) && (flags & ImGuiColorEditFlags_DisplayRGB)) + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + else if ((flags & ImGuiColorEditFlags_InputRGB) && (flags & ImGuiColorEditFlags_DisplayHSV)) + { + // Hue is lost when converting from greyscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + ColorEditRestoreHS(col, &f[0], &f[1], &f[2]); + } + int i[4] = { IM_F32_TO_INT8_UNBOUND(f[0]), IM_F32_TO_INT8_UNBOUND(f[1]), IM_F32_TO_INT8_UNBOUND(f[2]), IM_F32_TO_INT8_UNBOUND(f[3]) }; + + bool value_changed = false; + bool value_changed_as_float = false; + + const ImVec2 pos = window->DC.CursorPos; + const float inputs_offset_x = (style.ColorButtonPosition == ImGuiDir_Left) ? w_button : 0.0f; + window->DC.CursorPos.x = pos.x + inputs_offset_x; + + if ((flags & (ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV)) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB/HSV 0..255 Sliders + const float w_item_one = ImMax(1.0f, IM_FLOOR((w_inputs - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_FLOOR(w_inputs - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + + const bool hide_prefix = (w_item_one <= CalcTextSize((flags & ImGuiColorEditFlags_Float) ? "M:0.000" : "M:000").x); + static const char* ids[4] = { "##X", "##Y", "##Z", "##W" }; + static const char* fmt_table_int[3][4] = + { + { "%3d", "%3d", "%3d", "%3d" }, // Short display + { "R:%3d", "G:%3d", "B:%3d", "A:%3d" }, // Long display for RGBA + { "H:%3d", "S:%3d", "V:%3d", "A:%3d" } // Long display for HSVA + }; + static const char* fmt_table_float[3][4] = + { + { "%0.3f", "%0.3f", "%0.3f", "%0.3f" }, // Short display + { "R:%0.3f", "G:%0.3f", "B:%0.3f", "A:%0.3f" }, // Long display for RGBA + { "H:%0.3f", "S:%0.3f", "V:%0.3f", "A:%0.3f" } // Long display for HSVA + }; + const int fmt_idx = hide_prefix ? 0 : (flags & ImGuiColorEditFlags_DisplayHSV) ? 2 : 1; + + for (int n = 0; n < components; n++) + { + if (n > 0) + SameLine(0, style.ItemInnerSpacing.x); + SetNextItemWidth((n + 1 < components) ? w_item_one : w_item_last); + + // FIXME: When ImGuiColorEditFlags_HDR flag is passed HS values snap in weird ways when SV values go below 0. + if (flags & ImGuiColorEditFlags_Float) + { + value_changed |= DragFloat(ids[n], &f[n], 1.0f / 255.0f, 0.0f, hdr ? 0.0f : 1.0f, fmt_table_float[fmt_idx][n]); + value_changed_as_float |= value_changed; + } + else + { + value_changed |= DragInt(ids[n], &i[n], 1.0f, 0, hdr ? 0 : 255, fmt_table_int[fmt_idx][n]); + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + } + else if ((flags & ImGuiColorEditFlags_DisplayHex) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB Hexadecimal Input + char buf[64]; + if (alpha) + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255), ImClamp(i[3], 0, 255)); + else + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255)); + SetNextItemWidth(w_inputs); + if (InputText("##Text", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase)) + { + value_changed = true; + char* p = buf; + while (*p == '#' || ImCharIsBlankA(*p)) + p++; + i[0] = i[1] = i[2] = 0; + i[3] = 0xFF; // alpha default to 255 is not parsed by scanf (e.g. inputting #FFFFFF omitting alpha) + int r; + if (alpha) + r = sscanf(p, "%02X%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2], (unsigned int*)&i[3]); // Treat at unsigned (%X is unsigned) + else + r = sscanf(p, "%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2]); + IM_UNUSED(r); // Fixes C6031: Return value ignored: 'sscanf'. + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + + ImGuiWindow* picker_active_window = NULL; + if (!(flags & ImGuiColorEditFlags_NoSmallPreview)) + { + const float button_offset_x = ((flags & ImGuiColorEditFlags_NoInputs) || (style.ColorButtonPosition == ImGuiDir_Left)) ? 0.0f : w_inputs + style.ItemInnerSpacing.x; + window->DC.CursorPos = ImVec2(pos.x + button_offset_x, pos.y); + + const ImVec4 col_v4(col[0], col[1], col[2], alpha ? col[3] : 1.0f); + if (ColorButton("##ColorButton", col_v4, flags)) + { + if (!(flags & ImGuiColorEditFlags_NoPicker)) + { + // Store current color and open a picker + g.ColorPickerRef = col_v4; + OpenPopup("picker"); + SetNextWindowPos(g.LastItemData.Rect.GetBL() + ImVec2(0.0f, style.ItemSpacing.y)); + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + + if (BeginPopup("picker")) + { + if (g.CurrentWindow->BeginCount == 1) + { + picker_active_window = g.CurrentWindow; + if (label != label_display_end) + { + TextEx(label, label_display_end); + Spacing(); + } + ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; + ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; + SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? + value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); + } + EndPopup(); + } + } + + if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) + { + // Position not necessarily next to last submitted button (e.g. if style.ColorButtonPosition == ImGuiDir_Left), + // but we need to use SameLine() to setup baseline correctly. Might want to refactor SameLine() to simplify this. + SameLine(0.0f, style.ItemInnerSpacing.x); + window->DC.CursorPos.x = pos.x + ((flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x); + TextEx(label, label_display_end); + } + + // Convert back + if (value_changed && picker_active_window == NULL) + { + if (!value_changed_as_float) + for (int n = 0; n < 4; n++) + f[n] = i[n] / 255.0f; + if ((flags & ImGuiColorEditFlags_DisplayHSV) && (flags & ImGuiColorEditFlags_InputRGB)) + { + g.ColorEditLastHue = f[0]; + g.ColorEditLastSat = f[1]; + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + g.ColorEditLastColor = ColorConvertFloat4ToU32(ImVec4(f[0], f[1], f[2], 0)); + } + if ((flags & ImGuiColorEditFlags_DisplayRGB) && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + + col[0] = f[0]; + col[1] = f[1]; + col[2] = f[2]; + if (alpha) + col[3] = f[3]; + } + + PopID(); + EndGroup(); + + // Drag and Drop Target + // NB: The flag test is merely an optional micro-optimization, BeginDragDropTarget() does the same test. + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropTarget()) + { + bool accepted_drag_drop = false; + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 //-V1086 + value_changed = accepted_drag_drop = true; + } + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * components); + value_changed = accepted_drag_drop = true; + } + + // Drag-drop payloads are always RGB + if (accepted_drag_drop && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(col[0], col[1], col[2], col[0], col[1], col[2]); + EndDragDropTarget(); + } + + // When picker is being actively used, use its active id so IsItemActive() will function on ColorEdit4(). + if (picker_active_window && g.ActiveId != 0 && g.ActiveIdWindow == picker_active_window) + g.LastItemData.ID = g.ActiveId; + + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + float col4[4] = { col[0], col[1], col[2], 1.0f }; + if (!ColorPicker4(label, col4, flags | ImGuiColorEditFlags_NoAlpha)) + return false; + col[0] = col4[0]; col[1] = col4[1]; col[2] = col4[2]; + return true; +} + +// Helper for ColorPicker4() +static void RenderArrowsForVerticalBar(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, float bar_w, float alpha) +{ + ImU32 alpha8 = IM_F32_TO_INT8_SAT(alpha); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x + 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Right, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x, pos.y), half_sz, ImGuiDir_Right, IM_COL32(255,255,255,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x - 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Left, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x, pos.y), half_sz, ImGuiDir_Left, IM_COL32(255,255,255,alpha8)); +} + +// Note: ColorPicker4() only accesses 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// (In C++ the 'float col[4]' notation for a function argument is equivalent to 'float* col', we only specify a size to facilitate understanding of the code.) +// FIXME: we adjust the big color square height based on item width, which may cause a flickering feedback loop (if automatic height makes a vertical scrollbar appears, affecting automatic width..) +// FIXME: this is trying to be aware of style.Alpha but not fully correct. Also, the color wheel will have overlapping glitches with (style.Alpha < 1.0) +bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImDrawList* draw_list = window->DrawList; + ImGuiStyle& style = g.Style; + ImGuiIO& io = g.IO; + + const float width = CalcItemWidth(); + g.NextItemData.ClearFlags(); + + PushID(label); + BeginGroup(); + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + flags |= ImGuiColorEditFlags_NoSmallPreview; + + // Context menu: display and store options. + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorPickerOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags_PickerMask_)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags_PickerMask_) ? g.ColorEditOptions : ImGuiColorEditFlags_DefaultOptions_) & ImGuiColorEditFlags_PickerMask_; + if (!(flags & ImGuiColorEditFlags_InputMask_)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags_InputMask_) ? g.ColorEditOptions : ImGuiColorEditFlags_DefaultOptions_) & ImGuiColorEditFlags_InputMask_; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_PickerMask_)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check that only 1 is selected + if (!(flags & ImGuiColorEditFlags_NoOptions)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_AlphaBar); + + // Setup + int components = (flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4; + bool alpha_bar = (flags & ImGuiColorEditFlags_AlphaBar) && !(flags & ImGuiColorEditFlags_NoAlpha); + ImVec2 picker_pos = window->DC.CursorPos; + float square_sz = GetFrameHeight(); + float bars_width = square_sz; // Arbitrary smallish width of Hue/Alpha picking bars + float sv_picker_size = ImMax(bars_width * 1, width - (alpha_bar ? 2 : 1) * (bars_width + style.ItemInnerSpacing.x)); // Saturation/Value picking box + float bar0_pos_x = picker_pos.x + sv_picker_size + style.ItemInnerSpacing.x; + float bar1_pos_x = bar0_pos_x + bars_width + style.ItemInnerSpacing.x; + float bars_triangles_half_sz = IM_FLOOR(bars_width * 0.20f); + + float backup_initial_col[4]; + memcpy(backup_initial_col, col, components * sizeof(float)); + + float wheel_thickness = sv_picker_size * 0.08f; + float wheel_r_outer = sv_picker_size * 0.50f; + float wheel_r_inner = wheel_r_outer - wheel_thickness; + ImVec2 wheel_center(picker_pos.x + (sv_picker_size + bars_width)*0.5f, picker_pos.y + sv_picker_size * 0.5f); + + // Note: the triangle is displayed rotated with triangle_pa pointing to Hue, but most coordinates stays unrotated for logic. + float triangle_r = wheel_r_inner - (int)(sv_picker_size * 0.027f); + ImVec2 triangle_pa = ImVec2(triangle_r, 0.0f); // Hue point. + ImVec2 triangle_pb = ImVec2(triangle_r * -0.5f, triangle_r * -0.866025f); // Black point. + ImVec2 triangle_pc = ImVec2(triangle_r * -0.5f, triangle_r * +0.866025f); // White point. + + float H = col[0], S = col[1], V = col[2]; + float R = col[0], G = col[1], B = col[2]; + if (flags & ImGuiColorEditFlags_InputRGB) + { + // Hue is lost when converting from greyscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(R, G, B, H, S, V); + ColorEditRestoreHS(col, &H, &S, &V); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + + bool value_changed = false, value_changed_h = false, value_changed_sv = false; + + PushItemFlag(ImGuiItemFlags_NoNav, true); + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Hue wheel + SV triangle logic + InvisibleButton("hsv", ImVec2(sv_picker_size + style.ItemInnerSpacing.x + bars_width, sv_picker_size)); + if (IsItemActive()) + { + ImVec2 initial_off = g.IO.MouseClickedPos[0] - wheel_center; + ImVec2 current_off = g.IO.MousePos - wheel_center; + float initial_dist2 = ImLengthSqr(initial_off); + if (initial_dist2 >= (wheel_r_inner - 1) * (wheel_r_inner - 1) && initial_dist2 <= (wheel_r_outer + 1) * (wheel_r_outer + 1)) + { + // Interactive with Hue wheel + H = ImAtan2(current_off.y, current_off.x) / IM_PI * 0.5f; + if (H < 0.0f) + H += 1.0f; + value_changed = value_changed_h = true; + } + float cos_hue_angle = ImCos(-H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(-H * 2.0f * IM_PI); + if (ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, ImRotate(initial_off, cos_hue_angle, sin_hue_angle))) + { + // Interacting with SV triangle + ImVec2 current_off_unrotated = ImRotate(current_off, cos_hue_angle, sin_hue_angle); + if (!ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated)) + current_off_unrotated = ImTriangleClosestPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated); + float uu, vv, ww; + ImTriangleBarycentricCoords(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated, uu, vv, ww); + V = ImClamp(1.0f - vv, 0.0001f, 1.0f); + S = ImClamp(uu / V, 0.0001f, 1.0f); + value_changed = value_changed_sv = true; + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // SV rectangle logic + InvisibleButton("sv", ImVec2(sv_picker_size, sv_picker_size)); + if (IsItemActive()) + { + S = ImSaturate((io.MousePos.x - picker_pos.x) / (sv_picker_size - 1)); + V = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + + // Greatly reduces hue jitter and reset to 0 when hue == 255 and color is rapidly modified using SV square. + if (g.ColorEditLastColor == ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0))) + H = g.ColorEditLastHue; + value_changed = value_changed_sv = true; + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + + // Hue bar logic + SetCursorScreenPos(ImVec2(bar0_pos_x, picker_pos.y)); + InvisibleButton("hue", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + H = ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = value_changed_h = true; + } + } + + // Alpha bar logic + if (alpha_bar) + { + SetCursorScreenPos(ImVec2(bar1_pos_x, picker_pos.y)); + InvisibleButton("alpha", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + col[3] = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = true; + } + } + PopItemFlag(); // ImGuiItemFlags_NoNav + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + SameLine(0, style.ItemInnerSpacing.x); + BeginGroup(); + } + + if (!(flags & ImGuiColorEditFlags_NoLabel)) + { + const char* label_display_end = FindRenderedTextEnd(label); + if (label != label_display_end) + { + if ((flags & ImGuiColorEditFlags_NoSidePreview)) + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_display_end); + } + } + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + PushItemFlag(ImGuiItemFlags_NoNavDefaultFocus, true); + ImVec4 col_v4(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if ((flags & ImGuiColorEditFlags_NoLabel)) + Text("Current"); + + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_NoTooltip; + ColorButton("##current", col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2)); + if (ref_col != NULL) + { + Text("Original"); + ImVec4 ref_col_v4(ref_col[0], ref_col[1], ref_col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : ref_col[3]); + if (ColorButton("##original", ref_col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2))) + { + memcpy(col, ref_col, components * sizeof(float)); + value_changed = true; + } + } + PopItemFlag(); + EndGroup(); + } + + // Convert back color to RGB + if (value_changed_h || value_changed_sv) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + ColorConvertHSVtoRGB(H, S, V, col[0], col[1], col[2]); + g.ColorEditLastHue = H; + g.ColorEditLastSat = S; + g.ColorEditLastColor = ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0)); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + col[0] = H; + col[1] = S; + col[2] = V; + } + } + + // R,G,B and H,S,V slider color editor + bool value_changed_fix_hue_wrap = false; + if ((flags & ImGuiColorEditFlags_NoInputs) == 0) + { + PushItemWidth((alpha_bar ? bar1_pos_x : bar0_pos_x) + bars_width - picker_pos.x); + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoSmallPreview | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf; + ImGuiColorEditFlags sub_flags = (flags & sub_flags_to_forward) | ImGuiColorEditFlags_NoPicker; + if (flags & ImGuiColorEditFlags_DisplayRGB || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + if (ColorEdit4("##rgb", col, sub_flags | ImGuiColorEditFlags_DisplayRGB)) + { + // FIXME: Hackily differentiating using the DragInt (ActiveId != 0 && !ActiveIdAllowOverlap) vs. using the InputText or DropTarget. + // For the later we don't want to run the hue-wrap canceling code. If you are well versed in HSV picker please provide your input! (See #2050) + value_changed_fix_hue_wrap = (g.ActiveId != 0 && !g.ActiveIdAllowOverlap); + value_changed = true; + } + if (flags & ImGuiColorEditFlags_DisplayHSV || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + value_changed |= ColorEdit4("##hsv", col, sub_flags | ImGuiColorEditFlags_DisplayHSV); + if (flags & ImGuiColorEditFlags_DisplayHex || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + value_changed |= ColorEdit4("##hex", col, sub_flags | ImGuiColorEditFlags_DisplayHex); + PopItemWidth(); + } + + // Try to cancel hue wrap (after ColorEdit4 call), if any + if (value_changed_fix_hue_wrap && (flags & ImGuiColorEditFlags_InputRGB)) + { + float new_H, new_S, new_V; + ColorConvertRGBtoHSV(col[0], col[1], col[2], new_H, new_S, new_V); + if (new_H <= 0 && H > 0) + { + if (new_V <= 0 && V != new_V) + ColorConvertHSVtoRGB(H, S, new_V <= 0 ? V * 0.5f : new_V, col[0], col[1], col[2]); + else if (new_S <= 0) + ColorConvertHSVtoRGB(H, new_S <= 0 ? S * 0.5f : new_S, new_V, col[0], col[1], col[2]); + } + } + + if (value_changed) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + R = col[0]; + G = col[1]; + B = col[2]; + ColorConvertRGBtoHSV(R, G, B, H, S, V); + ColorEditRestoreHS(col, &H, &S, &V); // Fix local Hue as display below will use it immediately. + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + H = col[0]; + S = col[1]; + V = col[2]; + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + } + + const int style_alpha8 = IM_F32_TO_INT8_SAT(style.Alpha); + const ImU32 col_black = IM_COL32(0,0,0,style_alpha8); + const ImU32 col_white = IM_COL32(255,255,255,style_alpha8); + const ImU32 col_midgrey = IM_COL32(128,128,128,style_alpha8); + const ImU32 col_hues[6 + 1] = { IM_COL32(255,0,0,style_alpha8), IM_COL32(255,255,0,style_alpha8), IM_COL32(0,255,0,style_alpha8), IM_COL32(0,255,255,style_alpha8), IM_COL32(0,0,255,style_alpha8), IM_COL32(255,0,255,style_alpha8), IM_COL32(255,0,0,style_alpha8) }; + + ImVec4 hue_color_f(1, 1, 1, style.Alpha); ColorConvertHSVtoRGB(H, 1, 1, hue_color_f.x, hue_color_f.y, hue_color_f.z); + ImU32 hue_color32 = ColorConvertFloat4ToU32(hue_color_f); + ImU32 user_col32_striped_of_alpha = ColorConvertFloat4ToU32(ImVec4(R, G, B, style.Alpha)); // Important: this is still including the main rendering/style alpha!! + + ImVec2 sv_cursor_pos; + + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Render Hue Wheel + const float aeps = 0.5f / wheel_r_outer; // Half a pixel arc length in radians (2pi cancels out). + const int segment_per_arc = ImMax(4, (int)wheel_r_outer / 12); + for (int n = 0; n < 6; n++) + { + const float a0 = (n) /6.0f * 2.0f * IM_PI - aeps; + const float a1 = (n+1.0f)/6.0f * 2.0f * IM_PI + aeps; + const int vert_start_idx = draw_list->VtxBuffer.Size; + draw_list->PathArcTo(wheel_center, (wheel_r_inner + wheel_r_outer)*0.5f, a0, a1, segment_per_arc); + draw_list->PathStroke(col_white, 0, wheel_thickness); + const int vert_end_idx = draw_list->VtxBuffer.Size; + + // Paint colors over existing vertices + ImVec2 gradient_p0(wheel_center.x + ImCos(a0) * wheel_r_inner, wheel_center.y + ImSin(a0) * wheel_r_inner); + ImVec2 gradient_p1(wheel_center.x + ImCos(a1) * wheel_r_inner, wheel_center.y + ImSin(a1) * wheel_r_inner); + ShadeVertsLinearColorGradientKeepAlpha(draw_list, vert_start_idx, vert_end_idx, gradient_p0, gradient_p1, col_hues[n], col_hues[n + 1]); + } + + // Render Cursor + preview on Hue Wheel + float cos_hue_angle = ImCos(H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(H * 2.0f * IM_PI); + ImVec2 hue_cursor_pos(wheel_center.x + cos_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f, wheel_center.y + sin_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f); + float hue_cursor_rad = value_changed_h ? wheel_thickness * 0.65f : wheel_thickness * 0.55f; + int hue_cursor_segments = ImClamp((int)(hue_cursor_rad / 1.4f), 9, 32); + draw_list->AddCircleFilled(hue_cursor_pos, hue_cursor_rad, hue_color32, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad + 1, col_midgrey, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad, col_white, hue_cursor_segments); + + // Render SV triangle (rotated according to hue) + ImVec2 tra = wheel_center + ImRotate(triangle_pa, cos_hue_angle, sin_hue_angle); + ImVec2 trb = wheel_center + ImRotate(triangle_pb, cos_hue_angle, sin_hue_angle); + ImVec2 trc = wheel_center + ImRotate(triangle_pc, cos_hue_angle, sin_hue_angle); + ImVec2 uv_white = GetFontTexUvWhitePixel(); + draw_list->PrimReserve(6, 6); + draw_list->PrimVtx(tra, uv_white, hue_color32); + draw_list->PrimVtx(trb, uv_white, hue_color32); + draw_list->PrimVtx(trc, uv_white, col_white); + draw_list->PrimVtx(tra, uv_white, 0); + draw_list->PrimVtx(trb, uv_white, col_black); + draw_list->PrimVtx(trc, uv_white, 0); + draw_list->AddTriangle(tra, trb, trc, col_midgrey, 1.5f); + sv_cursor_pos = ImLerp(ImLerp(trc, tra, ImSaturate(S)), trb, ImSaturate(1 - V)); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // Render SV Square + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), col_white, hue_color32, hue_color32, col_white); + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0, 0, col_black, col_black); + RenderFrameBorder(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0.0f); + sv_cursor_pos.x = ImClamp(IM_ROUND(picker_pos.x + ImSaturate(S) * sv_picker_size), picker_pos.x + 2, picker_pos.x + sv_picker_size - 2); // Sneakily prevent the circle to stick out too much + sv_cursor_pos.y = ImClamp(IM_ROUND(picker_pos.y + ImSaturate(1 - V) * sv_picker_size), picker_pos.y + 2, picker_pos.y + sv_picker_size - 2); + + // Render Hue Bar + for (int i = 0; i < 6; ++i) + draw_list->AddRectFilledMultiColor(ImVec2(bar0_pos_x, picker_pos.y + i * (sv_picker_size / 6)), ImVec2(bar0_pos_x + bars_width, picker_pos.y + (i + 1) * (sv_picker_size / 6)), col_hues[i], col_hues[i], col_hues[i + 1], col_hues[i + 1]); + float bar0_line_y = IM_ROUND(picker_pos.y + H * sv_picker_size); + RenderFrameBorder(ImVec2(bar0_pos_x, picker_pos.y), ImVec2(bar0_pos_x + bars_width, picker_pos.y + sv_picker_size), 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar0_pos_x - 1, bar0_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + // Render cursor/preview circle (clamp S/V within 0..1 range because floating points colors may lead HSV values to be out of range) + float sv_cursor_rad = value_changed_sv ? 10.0f : 6.0f; + draw_list->AddCircleFilled(sv_cursor_pos, sv_cursor_rad, user_col32_striped_of_alpha, 12); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad + 1, col_midgrey, 12); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad, col_white, 12); + + // Render alpha bar + if (alpha_bar) + { + float alpha = ImSaturate(col[3]); + ImRect bar1_bb(bar1_pos_x, picker_pos.y, bar1_pos_x + bars_width, picker_pos.y + sv_picker_size); + RenderColorRectWithAlphaCheckerboard(draw_list, bar1_bb.Min, bar1_bb.Max, 0, bar1_bb.GetWidth() / 2.0f, ImVec2(0.0f, 0.0f)); + draw_list->AddRectFilledMultiColor(bar1_bb.Min, bar1_bb.Max, user_col32_striped_of_alpha, user_col32_striped_of_alpha, user_col32_striped_of_alpha & ~IM_COL32_A_MASK, user_col32_striped_of_alpha & ~IM_COL32_A_MASK); + float bar1_line_y = IM_ROUND(picker_pos.y + (1.0f - alpha) * sv_picker_size); + RenderFrameBorder(bar1_bb.Min, bar1_bb.Max, 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar1_pos_x - 1, bar1_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + EndGroup(); + + if (value_changed && memcmp(backup_initial_col, col, components * sizeof(float)) == 0) + value_changed = false; + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId + MarkItemEdited(g.LastItemData.ID); + + PopID(); + + return value_changed; +} + +// A little color square. Return true when clicked. +// FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip. +// 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip. +// Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set. +bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, const ImVec2& size_arg) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiID id = window->GetID(desc_id); + const float default_size = GetFrameHeight(); + const ImVec2 size(size_arg.x == 0.0f ? default_size : size_arg.x, size_arg.y == 0.0f ? default_size : size_arg.y); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + + if (flags & ImGuiColorEditFlags_NoAlpha) + flags &= ~(ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf); + + ImVec4 col_rgb = col; + if (flags & ImGuiColorEditFlags_InputHSV) + ColorConvertHSVtoRGB(col_rgb.x, col_rgb.y, col_rgb.z, col_rgb.x, col_rgb.y, col_rgb.z); + + ImVec4 col_rgb_without_alpha(col_rgb.x, col_rgb.y, col_rgb.z, 1.0f); + float grid_step = ImMin(size.x, size.y) / 2.99f; + float rounding = ImMin(g.Style.FrameRounding, grid_step * 0.5f); + ImRect bb_inner = bb; + float off = 0.0f; + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + off = -0.75f; // The border (using Col_FrameBg) tends to look off when color is near-opaque and rounding is enabled. This offset seemed like a good middle ground to reduce those artifacts. + bb_inner.Expand(off); + } + if ((flags & ImGuiColorEditFlags_AlphaPreviewHalf) && col_rgb.w < 1.0f) + { + float mid_x = IM_ROUND((bb_inner.Min.x + bb_inner.Max.x) * 0.5f); + RenderColorRectWithAlphaCheckerboard(window->DrawList, ImVec2(bb_inner.Min.x + grid_step, bb_inner.Min.y), bb_inner.Max, GetColorU32(col_rgb), grid_step, ImVec2(-grid_step + off, off), rounding, ImDrawFlags_RoundCornersRight); + window->DrawList->AddRectFilled(bb_inner.Min, ImVec2(mid_x, bb_inner.Max.y), GetColorU32(col_rgb_without_alpha), rounding, ImDrawFlags_RoundCornersLeft); + } + else + { + // Because GetColorU32() multiplies by the global style Alpha and we don't want to display a checkerboard if the source code had no alpha + ImVec4 col_source = (flags & ImGuiColorEditFlags_AlphaPreview) ? col_rgb : col_rgb_without_alpha; + if (col_source.w < 1.0f) + RenderColorRectWithAlphaCheckerboard(window->DrawList, bb_inner.Min, bb_inner.Max, GetColorU32(col_source), grid_step, ImVec2(off, off), rounding); + else + window->DrawList->AddRectFilled(bb_inner.Min, bb_inner.Max, GetColorU32(col_source), rounding); + } + RenderNavHighlight(bb, id); + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + if (g.Style.FrameBorderSize > 0.0f) + RenderFrameBorder(bb.Min, bb.Max, rounding); + else + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), rounding); // Color button are often in need of some sort of border + } + + // Drag and Drop Source + // NB: The ActiveId test is merely an optional micro-optimization, BeginDragDropSource() does the same test. + if (g.ActiveId == id && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropSource()) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F, &col_rgb, sizeof(float) * 3, ImGuiCond_Once); + else + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F, &col_rgb, sizeof(float) * 4, ImGuiCond_Once); + ColorButton(desc_id, col, flags); + SameLine(); + TextEx("Color"); + EndDragDropSource(); + } + + // Tooltip + if (!(flags & ImGuiColorEditFlags_NoTooltip) && hovered) + ColorTooltip(desc_id, &col.x, flags & (ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)); + + return pressed; +} + +// Initialize/override default color options +void ImGui::SetColorEditOptions(ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiColorEditFlags_DisplayMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_DisplayMask_; + if ((flags & ImGuiColorEditFlags_DataTypeMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_DataTypeMask_; + if ((flags & ImGuiColorEditFlags_PickerMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_PickerMask_; + if ((flags & ImGuiColorEditFlags_InputMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_InputMask_; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DisplayMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DataTypeMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_PickerMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check only 1 option is selected + g.ColorEditOptions = flags; +} + +// Note: only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +void ImGui::ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + + BeginTooltipEx(ImGuiTooltipFlags_OverridePreviousTooltip, ImGuiWindowFlags_None); + const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text; + if (text_end > text) + { + TextEx(text, text_end); + Separator(); + } + + ImVec2 sz(g.FontSize * 3 + g.Style.FramePadding.y * 2, g.FontSize * 3 + g.Style.FramePadding.y * 2); + ImVec4 cf(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + ColorButton("##preview", cf, (flags & (ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)) | ImGuiColorEditFlags_NoTooltip, sz); + SameLine(); + if ((flags & ImGuiColorEditFlags_InputRGB) || !(flags & ImGuiColorEditFlags_InputMask_)) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("#%02X%02X%02X\nR: %d, G: %d, B: %d\n(%.3f, %.3f, %.3f)", cr, cg, cb, cr, cg, cb, col[0], col[1], col[2]); + else + Text("#%02X%02X%02X%02X\nR:%d, G:%d, B:%d, A:%d\n(%.3f, %.3f, %.3f, %.3f)", cr, cg, cb, ca, cr, cg, cb, ca, col[0], col[1], col[2], col[3]); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("H: %.3f, S: %.3f, V: %.3f", col[0], col[1], col[2]); + else + Text("H: %.3f, S: %.3f, V: %.3f, A: %.3f", col[0], col[1], col[2], col[3]); + } + EndTooltip(); +} + +void ImGui::ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags) +{ + bool allow_opt_inputs = !(flags & ImGuiColorEditFlags_DisplayMask_); + bool allow_opt_datatype = !(flags & ImGuiColorEditFlags_DataTypeMask_); + if ((!allow_opt_inputs && !allow_opt_datatype) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + ImGuiColorEditFlags opts = g.ColorEditOptions; + if (allow_opt_inputs) + { + if (RadioButton("RGB", (opts & ImGuiColorEditFlags_DisplayRGB) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayRGB; + if (RadioButton("HSV", (opts & ImGuiColorEditFlags_DisplayHSV) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayHSV; + if (RadioButton("Hex", (opts & ImGuiColorEditFlags_DisplayHex) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayHex; + } + if (allow_opt_datatype) + { + if (allow_opt_inputs) Separator(); + if (RadioButton("0..255", (opts & ImGuiColorEditFlags_Uint8) != 0)) opts = (opts & ~ImGuiColorEditFlags_DataTypeMask_) | ImGuiColorEditFlags_Uint8; + if (RadioButton("0.00..1.00", (opts & ImGuiColorEditFlags_Float) != 0)) opts = (opts & ~ImGuiColorEditFlags_DataTypeMask_) | ImGuiColorEditFlags_Float; + } + + if (allow_opt_inputs || allow_opt_datatype) + Separator(); + if (Button("Copy as..", ImVec2(-1, 0))) + OpenPopup("Copy"); + if (BeginPopup("Copy")) + { + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + char buf[64]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%.3ff, %.3ff, %.3ff, %.3ff)", col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%d,%d,%d,%d)", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", cr, cg, cb); + if (Selectable(buf)) + SetClipboardText(buf); + if (!(flags & ImGuiColorEditFlags_NoAlpha)) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + } + EndPopup(); + } + + g.ColorEditOptions = opts; + EndPopup(); +} + +void ImGui::ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags) +{ + bool allow_opt_picker = !(flags & ImGuiColorEditFlags_PickerMask_); + bool allow_opt_alpha_bar = !(flags & ImGuiColorEditFlags_NoAlpha) && !(flags & ImGuiColorEditFlags_AlphaBar); + if ((!allow_opt_picker && !allow_opt_alpha_bar) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + if (allow_opt_picker) + { + ImVec2 picker_size(g.FontSize * 8, ImMax(g.FontSize * 8 - (GetFrameHeight() + g.Style.ItemInnerSpacing.x), 1.0f)); // FIXME: Picker size copied from main picker function + PushItemWidth(picker_size.x); + for (int picker_type = 0; picker_type < 2; picker_type++) + { + // Draw small/thumbnail version of each picker type (over an invisible button for selection) + if (picker_type > 0) Separator(); + PushID(picker_type); + ImGuiColorEditFlags picker_flags = ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_NoSidePreview | (flags & ImGuiColorEditFlags_NoAlpha); + if (picker_type == 0) picker_flags |= ImGuiColorEditFlags_PickerHueBar; + if (picker_type == 1) picker_flags |= ImGuiColorEditFlags_PickerHueWheel; + ImVec2 backup_pos = GetCursorScreenPos(); + if (Selectable("##selectable", false, 0, picker_size)) // By default, Selectable() is closing popup + g.ColorEditOptions = (g.ColorEditOptions & ~ImGuiColorEditFlags_PickerMask_) | (picker_flags & ImGuiColorEditFlags_PickerMask_); + SetCursorScreenPos(backup_pos); + ImVec4 previewing_ref_col; + memcpy(&previewing_ref_col, ref_col, sizeof(float) * ((picker_flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4)); + ColorPicker4("##previewing_picker", &previewing_ref_col.x, picker_flags); + PopID(); + } + PopItemWidth(); + } + if (allow_opt_alpha_bar) + { + if (allow_opt_picker) Separator(); + CheckboxFlags("Alpha Bar", &g.ColorEditOptions, ImGuiColorEditFlags_AlphaBar); + } + EndPopup(); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +//------------------------------------------------------------------------- +// - TreeNode() +// - TreeNodeV() +// - TreeNodeEx() +// - TreeNodeExV() +// - TreeNodeBehavior() [Internal] +// - TreePush() +// - TreePop() +// - GetTreeNodeToLabelSpacing() +// - SetNextItemOpen() +// - CollapsingHeader() +//------------------------------------------------------------------------- + +bool ImGui::TreeNode(const char* str_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const void* ptr_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const char* label) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + return TreeNodeBehavior(window->GetID(label), 0, label, NULL); +} + +bool ImGui::TreeNodeV(const char* str_id, const char* fmt, va_list args) +{ + return TreeNodeExV(str_id, 0, fmt, args); +} + +bool ImGui::TreeNodeV(const void* ptr_id, const char* fmt, va_list args) +{ + return TreeNodeExV(ptr_id, 0, fmt, args); +} + +bool ImGui::TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags, label, NULL); +} + +bool ImGui::TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(str_id), flags, label, label_end); +} + +bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(ptr_id), flags, label, label_end); +} + +void ImGui::TreeNodeSetOpen(ImGuiID id, bool open) +{ + ImGuiContext& g = *GImGui; + ImGuiStorage* storage = g.CurrentWindow->DC.StateStorage; + storage->SetInt(id, open ? 1 : 0); +} + +bool ImGui::TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags) +{ + if (flags & ImGuiTreeNodeFlags_Leaf) + return true; + + // We only write to the tree storage if the user clicks (or explicitly use the SetNextItemOpen function) + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStorage* storage = window->DC.StateStorage; + + bool is_open; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasOpen) + { + if (g.NextItemData.OpenCond & ImGuiCond_Always) + { + is_open = g.NextItemData.OpenVal; + TreeNodeSetOpen(id, is_open); + } + else + { + // We treat ImGuiCond_Once and ImGuiCond_FirstUseEver the same because tree node state are not saved persistently. + const int stored_value = storage->GetInt(id, -1); + if (stored_value == -1) + { + is_open = g.NextItemData.OpenVal; + TreeNodeSetOpen(id, is_open); + } + else + { + is_open = stored_value != 0; + } + } + } + else + { + is_open = storage->GetInt(id, (flags & ImGuiTreeNodeFlags_DefaultOpen) ? 1 : 0) != 0; + } + + // When logging is enabled, we automatically expand tree nodes (but *NOT* collapsing headers.. seems like sensible behavior). + // NB- If we are above max depth we still allow manually opened nodes to be logged. + if (g.LogEnabled && !(flags & ImGuiTreeNodeFlags_NoAutoOpenOnLog) && (window->DC.TreeDepth - g.LogDepthRef) < g.LogDepthToExpand) + is_open = true; + + return is_open; +} + +bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const bool display_frame = (flags & ImGuiTreeNodeFlags_Framed) != 0; + const ImVec2 padding = (display_frame || (flags & ImGuiTreeNodeFlags_FramePadding)) ? style.FramePadding : ImVec2(style.FramePadding.x, ImMin(window->DC.CurrLineTextBaseOffset, style.FramePadding.y)); + + if (!label_end) + label_end = FindRenderedTextEnd(label); + const ImVec2 label_size = CalcTextSize(label, label_end, false); + + // We vertically grow up to current line height up the typical widget height. + const float frame_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), label_size.y + padding.y * 2); + ImRect frame_bb; + frame_bb.Min.x = (flags & ImGuiTreeNodeFlags_SpanFullWidth) ? window->WorkRect.Min.x : window->DC.CursorPos.x; + frame_bb.Min.y = window->DC.CursorPos.y; + frame_bb.Max.x = window->WorkRect.Max.x; + frame_bb.Max.y = window->DC.CursorPos.y + frame_height; + if (display_frame) + { + // Framed header expand a little outside the default padding, to the edge of InnerClipRect + // (FIXME: May remove this at some point and make InnerClipRect align with WindowPadding.x instead of WindowPadding.x*0.5f) + frame_bb.Min.x -= IM_FLOOR(window->WindowPadding.x * 0.5f - 1.0f); + frame_bb.Max.x += IM_FLOOR(window->WindowPadding.x * 0.5f); + } + + const float text_offset_x = g.FontSize + (display_frame ? padding.x * 3 : padding.x * 2); // Collapser arrow width + Spacing + const float text_offset_y = ImMax(padding.y, window->DC.CurrLineTextBaseOffset); // Latch before ItemSize changes it + const float text_width = g.FontSize + (label_size.x > 0.0f ? label_size.x + padding.x * 2 : 0.0f); // Include collapser + ImVec2 text_pos(window->DC.CursorPos.x + text_offset_x, window->DC.CursorPos.y + text_offset_y); + ItemSize(ImVec2(text_width, frame_height), padding.y); + + // For regular tree nodes, we arbitrary allow to click past 2 worth of ItemSpacing + ImRect interact_bb = frame_bb; + if (!display_frame && (flags & (ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth)) == 0) + interact_bb.Max.x = frame_bb.Min.x + text_width + style.ItemSpacing.x * 2.0f; + + // Store a flag for the current depth to tell if we will allow closing this node when navigating one of its child. + // For this purpose we essentially compare if g.NavIdIsAlive went from 0 to 1 between TreeNode() and TreePop(). + // This is currently only support 32 level deep and we are fine with (1 << Depth) overflowing into a zero. + const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0; + bool is_open = TreeNodeUpdateNextOpen(id, flags); + if (is_open && !g.NavIdIsAlive && (flags & ImGuiTreeNodeFlags_NavLeftJumpsBackHere) && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + window->DC.TreeJumpToParentOnPopMask |= (1 << window->DC.TreeDepth); + + bool item_add = ItemAdd(interact_bb, id); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HasDisplayRect; + g.LastItemData.DisplayRect = frame_bb; + + if (!item_add) + { + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; + } + + ImGuiButtonFlags button_flags = ImGuiTreeNodeFlags_None; + if (flags & ImGuiTreeNodeFlags_AllowItemOverlap) + button_flags |= ImGuiButtonFlags_AllowItemOverlap; + if (!is_leaf) + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + + // We allow clicking on the arrow section with keyboard modifiers held, in order to easily + // allow browsing a tree while preserving selection with code implementing multi-selection patterns. + // When clicking on the rest of the tree node we always disallow keyboard modifiers. + const float arrow_hit_x1 = (text_pos.x - text_offset_x) - style.TouchExtraPadding.x; + const float arrow_hit_x2 = (text_pos.x - text_offset_x) + (g.FontSize + padding.x * 2.0f) + style.TouchExtraPadding.x; + const bool is_mouse_x_over_arrow = (g.IO.MousePos.x >= arrow_hit_x1 && g.IO.MousePos.x < arrow_hit_x2); + if (window != g.HoveredWindow || !is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_NoKeyModifiers; + + // Open behaviors can be altered with the _OpenOnArrow and _OnOnDoubleClick flags. + // Some alteration have subtle effects (e.g. toggle on MouseUp vs MouseDown events) due to requirements for multi-selection and drag and drop support. + // - Single-click on label = Toggle on MouseUp (default, when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=1) + // - Double-click on label = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1) + // - Double-click on arrow = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1 and _OpenOnArrow=0) + // It is rather standard that arrow click react on Down rather than Up. + // We set ImGuiButtonFlags_PressedOnClickRelease on OpenOnDoubleClick because we want the item to be active on the initial MouseDown in order for drag and drop to work. + if (is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_PressedOnClick; + else if (flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) + button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; + else + button_flags |= ImGuiButtonFlags_PressedOnClickRelease; + + bool selected = (flags & ImGuiTreeNodeFlags_Selected) != 0; + const bool was_selected = selected; + + bool hovered, held; + bool pressed = ButtonBehavior(interact_bb, id, &hovered, &held, button_flags); + bool toggled = false; + if (!is_leaf) + { + if (pressed && g.DragDropHoldJustPressedId != id) + { + if ((flags & (ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick)) == 0 || (g.NavActivateId == id)) + toggled = true; + if (flags & ImGuiTreeNodeFlags_OpenOnArrow) + toggled |= is_mouse_x_over_arrow && !g.NavDisableMouseHover; // Lightweight equivalent of IsMouseHoveringRect() since ButtonBehavior() already did the job + if ((flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) && g.IO.MouseClickedCount[0] == 2) + toggled = true; + } + else if (pressed && g.DragDropHoldJustPressedId == id) + { + IM_ASSERT(button_flags & ImGuiButtonFlags_PressedOnDragDropHold); + if (!is_open) // When using Drag and Drop "hold to open" we keep the node highlighted after opening, but never close it again. + toggled = true; + } + + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Left && is_open) + { + toggled = true; + NavMoveRequestCancel(); + } + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right && !is_open) // If there's something upcoming on the line we may want to give it the priority? + { + toggled = true; + NavMoveRequestCancel(); + } + + if (toggled) + { + is_open = !is_open; + window->DC.StateStorage->SetInt(id, is_open); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledOpen; + } + } + if (flags & ImGuiTreeNodeFlags_AllowItemOverlap) + SetItemAllowOverlap(); + + // In this branch, TreeNodeBehavior() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + ImGuiNavHighlightFlags nav_highlight_flags = ImGuiNavHighlightFlags_TypeThin; + if (display_frame) + { + // Framed type + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, true, style.FrameRounding); + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.60f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 1.0f); + else // Leaf without bullet, left-adjusted text + text_pos.x -= text_offset_x; + if (flags & ImGuiTreeNodeFlags_ClipLabelForTrailingButton) + frame_bb.Max.x -= g.FontSize + style.FramePadding.x; + + if (g.LogEnabled) + LogSetNextTextDecoration("###", "###"); + RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size); + } + else + { + // Unframed typed for tree nodes + if (hovered || selected) + { + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false); + } + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.5f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y + g.FontSize * 0.15f), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 0.70f); + if (g.LogEnabled) + LogSetNextTextDecoration(">", NULL); + RenderText(text_pos, label, label_end, false); + } + + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; +} + +void ImGui::TreePush(const char* str_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(str_id); +} + +void ImGui::TreePush(const void* ptr_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(ptr_id); +} + +void ImGui::TreePushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Indent(); + window->DC.TreeDepth++; + PushOverrideID(id); +} + +void ImGui::TreePop() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Unindent(); + + window->DC.TreeDepth--; + ImU32 tree_depth_mask = (1 << window->DC.TreeDepth); + + // Handle Left arrow to move to parent tree node (when ImGuiTreeNodeFlags_NavLeftJumpsBackHere is enabled) + if (g.NavMoveDir == ImGuiDir_Left && g.NavWindow == window && NavMoveRequestButNoResultYet()) + if (g.NavIdIsAlive && (window->DC.TreeJumpToParentOnPopMask & tree_depth_mask)) + { + SetNavID(window->IDStack.back(), g.NavLayer, 0, ImRect()); + NavMoveRequestCancel(); + } + window->DC.TreeJumpToParentOnPopMask &= tree_depth_mask - 1; + + IM_ASSERT(window->IDStack.Size > 1); // There should always be 1 element in the IDStack (pushed during window creation). If this triggers you called TreePop/PopID too much. + PopID(); +} + +// Horizontal distance preceding label when using TreeNode() or Bullet() +float ImGui::GetTreeNodeToLabelSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + (g.Style.FramePadding.x * 2.0f); +} + +// Set next TreeNode/CollapsingHeader open state. +void ImGui::SetNextItemOpen(bool is_open, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + if (g.CurrentWindow->SkipItems) + return; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasOpen; + g.NextItemData.OpenVal = is_open; + g.NextItemData.OpenCond = cond ? cond : ImGuiCond_Always; +} + +// CollapsingHeader returns true when opened but do not indent nor push into the ID stack (because of the ImGuiTreeNodeFlags_NoTreePushOnOpen flag). +// This is basically the same as calling TreeNodeEx(label, ImGuiTreeNodeFlags_CollapsingHeader). You can remove the _NoTreePushOnOpen flag if you want behavior closer to normal TreeNode(). +bool ImGui::CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags | ImGuiTreeNodeFlags_CollapsingHeader, label); +} + +// p_visible == NULL : regular collapsing header +// p_visible != NULL && *p_visible == true : show a small close button on the corner of the header, clicking the button will set *p_visible = false +// p_visible != NULL && *p_visible == false : do not show the header at all +// Do not mistake this with the Open state of the header itself, which you can adjust with SetNextItemOpen() or ImGuiTreeNodeFlags_DefaultOpen. +bool ImGui::CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + if (p_visible && !*p_visible) + return false; + + ImGuiID id = window->GetID(label); + flags |= ImGuiTreeNodeFlags_CollapsingHeader; + if (p_visible) + flags |= ImGuiTreeNodeFlags_AllowItemOverlap | ImGuiTreeNodeFlags_ClipLabelForTrailingButton; + bool is_open = TreeNodeBehavior(id, flags, label); + if (p_visible != NULL) + { + // Create a small overlapping close button + // FIXME: We can evolve this into user accessible helpers to add extra buttons on title bars, headers, etc. + // FIXME: CloseButton can overlap into text, need find a way to clip the text somehow. + ImGuiContext& g = *GImGui; + ImGuiLastItemData last_item_backup = g.LastItemData; + float button_size = g.FontSize; + float button_x = ImMax(g.LastItemData.Rect.Min.x, g.LastItemData.Rect.Max.x - g.Style.FramePadding.x * 2.0f - button_size); + float button_y = g.LastItemData.Rect.Min.y; + ImGuiID close_button_id = GetIDWithSeed("#CLOSE", NULL, id); + if (CloseButton(close_button_id, ImVec2(button_x, button_y))) + *p_visible = false; + g.LastItemData = last_item_backup; + } + + return is_open; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Selectable +//------------------------------------------------------------------------- +// - Selectable() +//------------------------------------------------------------------------- + +// Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image. +// But you need to make sure the ID is unique, e.g. enclose calls in PushID/PopID or use ##unique_id. +// With this scheme, ImGuiSelectableFlags_SpanAllColumns and ImGuiSelectableFlags_AllowItemOverlap are also frequently used flags. +// FIXME: Selectable() with (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported. +bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + // Submit label or explicit size to ItemSize(), whereas ItemAdd() will submit a larger/spanning rectangle. + ImGuiID id = window->GetID(label); + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 size(size_arg.x != 0.0f ? size_arg.x : label_size.x, size_arg.y != 0.0f ? size_arg.y : label_size.y); + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(size, 0.0f); + + // Fill horizontal space + // We don't support (size < 0.0f) in Selectable() because the ItemSpacing extension would make explicitly right-aligned sizes not visibly match other widgets. + const bool span_all_columns = (flags & ImGuiSelectableFlags_SpanAllColumns) != 0; + const float min_x = span_all_columns ? window->ParentWorkRect.Min.x : pos.x; + const float max_x = span_all_columns ? window->ParentWorkRect.Max.x : window->WorkRect.Max.x; + if (size_arg.x == 0.0f || (flags & ImGuiSelectableFlags_SpanAvailWidth)) + size.x = ImMax(label_size.x, max_x - min_x); + + // Text stays at the submission position, but bounding box may be extended on both sides + const ImVec2 text_min = pos; + const ImVec2 text_max(min_x + size.x, pos.y + size.y); + + // Selectables are meant to be tightly packed together with no click-gap, so we extend their box to cover spacing between selectable. + ImRect bb(min_x, pos.y, text_max.x, text_max.y); + if ((flags & ImGuiSelectableFlags_NoPadWithHalfSpacing) == 0) + { + const float spacing_x = span_all_columns ? 0.0f : style.ItemSpacing.x; + const float spacing_y = style.ItemSpacing.y; + const float spacing_L = IM_FLOOR(spacing_x * 0.50f); + const float spacing_U = IM_FLOOR(spacing_y * 0.50f); + bb.Min.x -= spacing_L; + bb.Min.y -= spacing_U; + bb.Max.x += (spacing_x - spacing_L); + bb.Max.y += (spacing_y - spacing_U); + } + //if (g.IO.KeyCtrl) { GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(0, 255, 0, 255)); } + + // Modify ClipRect for the ItemAdd(), faster than doing a PushColumnsBackground/PushTableBackground for every Selectable.. + const float backup_clip_rect_min_x = window->ClipRect.Min.x; + const float backup_clip_rect_max_x = window->ClipRect.Max.x; + if (span_all_columns) + { + window->ClipRect.Min.x = window->ParentWorkRect.Min.x; + window->ClipRect.Max.x = window->ParentWorkRect.Max.x; + } + + const bool disabled_item = (flags & ImGuiSelectableFlags_Disabled) != 0; + const bool item_add = ItemAdd(bb, id, NULL, disabled_item ? ImGuiItemFlags_Disabled : ImGuiItemFlags_None); + if (span_all_columns) + { + window->ClipRect.Min.x = backup_clip_rect_min_x; + window->ClipRect.Max.x = backup_clip_rect_max_x; + } + + if (!item_add) + return false; + + const bool disabled_global = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + if (disabled_item && !disabled_global) // Only testing this as an optimization + BeginDisabled(); + + // FIXME: We can standardize the behavior of those two, we could also keep the fast path of override ClipRect + full push on render only, + // which would be advantageous since most selectable are not selected. + if (span_all_columns && window->DC.CurrentColumns) + PushColumnsBackground(); + else if (span_all_columns && g.CurrentTable) + TablePushBackgroundChannel(); + + // We use NoHoldingActiveID on menus so user can click and _hold_ on a menu then drag to browse child entries + ImGuiButtonFlags button_flags = 0; + if (flags & ImGuiSelectableFlags_NoHoldingActiveID) { button_flags |= ImGuiButtonFlags_NoHoldingActiveId; } + if (flags & ImGuiSelectableFlags_NoSetKeyOwner) { button_flags |= ImGuiButtonFlags_NoSetKeyOwner; } + if (flags & ImGuiSelectableFlags_SelectOnClick) { button_flags |= ImGuiButtonFlags_PressedOnClick; } + if (flags & ImGuiSelectableFlags_SelectOnRelease) { button_flags |= ImGuiButtonFlags_PressedOnRelease; } + if (flags & ImGuiSelectableFlags_AllowDoubleClick) { button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; } + if (flags & ImGuiSelectableFlags_AllowItemOverlap) { button_flags |= ImGuiButtonFlags_AllowItemOverlap; } + + const bool was_selected = selected; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + + // Auto-select when moved into + // - This will be more fully fleshed in the range-select branch + // - This is not exposed as it won't nicely work with some user side handling of shift/control + // - We cannot do 'if (g.NavJustMovedToId != id) { selected = false; pressed = was_selected; }' for two reasons + // - (1) it would require focus scope to be set, need exposing PushFocusScope() or equivalent (e.g. BeginSelection() calling PushFocusScope()) + // - (2) usage will fail with clipped items + // The multi-select API aim to fix those issues, e.g. may be replaced with a BeginSelection() API. + if ((flags & ImGuiSelectableFlags_SelectOnNav) && g.NavJustMovedToId != 0 && g.NavJustMovedToFocusScopeId == g.CurrentFocusScopeId) + if (g.NavJustMovedToId == id) + selected = pressed = true; + + // Update NavId when clicking or when Hovering (this doesn't happen on most widgets), so navigation can be resumed with gamepad/keyboard + if (pressed || (hovered && (flags & ImGuiSelectableFlags_SetNavIdOnHover))) + { + if (!g.NavDisableMouseHover && g.NavWindow == window && g.NavLayer == window->DC.NavLayerCurrent) + { + SetNavID(id, window->DC.NavLayerCurrent, g.CurrentFocusScopeId, WindowRectAbsToRel(window, bb)); // (bb == NavRect) + g.NavDisableHighlight = true; + } + } + if (pressed) + MarkItemEdited(id); + + if (flags & ImGuiSelectableFlags_AllowItemOverlap) + SetItemAllowOverlap(); + + // In this branch, Selectable() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + if (held && (flags & ImGuiSelectableFlags_DrawHoveredWhenHeld)) + hovered = true; + if (hovered || selected) + { + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(bb.Min, bb.Max, col, false, 0.0f); + } + RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); + + if (span_all_columns && window->DC.CurrentColumns) + PopColumnsBackground(); + else if (span_all_columns && g.CurrentTable) + TablePopBackgroundChannel(); + + RenderTextClipped(text_min, text_max, label, NULL, &label_size, style.SelectableTextAlign, &bb); + + // Automatically close popups + if (pressed && (window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiSelectableFlags_DontClosePopups) && !(g.LastItemData.InFlags & ImGuiItemFlags_SelectableDontClosePopup)) + CloseCurrentPopup(); + + if (disabled_item && !disabled_global) + EndDisabled(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; //-V1020 +} + +bool ImGui::Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + if (Selectable(label, *p_selected, flags, size_arg)) + { + *p_selected = !*p_selected; + return true; + } + return false; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ListBox +//------------------------------------------------------------------------- +// - BeginListBox() +// - EndListBox() +// - ListBox() +//------------------------------------------------------------------------- + +// Tip: To have a list filling the entire window width, use size.x = -FLT_MIN and pass an non-visible label e.g. "##empty" +// Tip: If your vertical size is calculated from an item count (e.g. 10 * item_height) consider adding a fractional part to facilitate seeing scrolling boundaries (e.g. 10.25 * item_height). +bool ImGui::BeginListBox(const char* label, const ImVec2& size_arg) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + // Size default to hold ~7.25 items. + // Fractional number of items helps seeing that we can scroll down/up without looking at scrollbar. + ImVec2 size = ImFloor(CalcItemSize(size_arg, CalcItemWidth(), GetTextLineHeightWithSpacing() * 7.25f + style.FramePadding.y * 2.0f)); + ImVec2 frame_size = ImVec2(size.x, ImMax(size.y, label_size.y)); + ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + g.NextItemData.ClearFlags(); + + if (!IsRectVisible(bb.Min, bb.Max)) + { + ItemSize(bb.GetSize(), style.FramePadding.y); + ItemAdd(bb, 0, &frame_bb); + return false; + } + + // FIXME-OPT: We could omit the BeginGroup() if label_size.x but would need to omit the EndGroup() as well. + BeginGroup(); + if (label_size.x > 0.0f) + { + ImVec2 label_pos = ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y); + RenderText(label_pos, label); + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, label_pos + label_size); + } + + BeginChildFrame(id, frame_bb.GetSize()); + return true; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// OBSOLETED in 1.81 (from February 2021) +bool ImGui::ListBoxHeader(const char* label, int items_count, int height_in_items) +{ + // If height_in_items == -1, default height is maximum 7. + ImGuiContext& g = *GImGui; + float height_in_items_f = (height_in_items < 0 ? ImMin(items_count, 7) : height_in_items) + 0.25f; + ImVec2 size; + size.x = 0.0f; + size.y = GetTextLineHeightWithSpacing() * height_in_items_f + g.Style.FramePadding.y * 2.0f; + return BeginListBox(label, size); +} +#endif + +void ImGui::EndListBox() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) && "Mismatched BeginListBox/EndListBox calls. Did you test the return value of BeginListBox?"); + IM_UNUSED(window); + + EndChildFrame(); + EndGroup(); // This is only required to be able to do IsItemXXX query on the whole ListBox including label +} + +bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items) +{ + const bool value_changed = ListBox(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_items); + return value_changed; +} + +// This is merely a helper around BeginListBox(), EndListBox(). +// Considering using those directly to submit custom data or store selection differently. +bool ImGui::ListBox(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int height_in_items) +{ + ImGuiContext& g = *GImGui; + + // Calculate size from "height_in_items" + if (height_in_items < 0) + height_in_items = ImMin(items_count, 7); + float height_in_items_f = height_in_items + 0.25f; + ImVec2 size(0.0f, ImFloor(GetTextLineHeightWithSpacing() * height_in_items_f + g.Style.FramePadding.y * 2.0f)); + + if (!BeginListBox(label, size)) + return false; + + // Assume all items have even height (= 1 line of text). If you need items of different height, + // you can create a custom version of ListBox() in your code without using the clipper. + bool value_changed = false; + ImGuiListClipper clipper; + clipper.Begin(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to. + while (clipper.Step()) + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + { + const char* item_text; + if (!items_getter(data, i, &item_text)) + item_text = "*Unknown item*"; + + PushID(i); + const bool item_selected = (i == *current_item); + if (Selectable(item_text, item_selected)) + { + *current_item = i; + value_changed = true; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + EndListBox(); + + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: PlotLines, PlotHistogram +//------------------------------------------------------------------------- +// - PlotEx() [Internal] +// - PlotLines() +// - PlotHistogram() +//------------------------------------------------------------------------- +// Plot/Graph widgets are not very good. +// Consider writing your own, or using a third-party one, see: +// - ImPlot https://github.com/epezent/implot +// - others https://github.com/ocornut/imgui/wiki/Useful-Extensions +//------------------------------------------------------------------------- + +int ImGui::PlotEx(ImGuiPlotType plot_type, 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 frame_size) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return -1; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + if (frame_size.x == 0.0f) + frame_size.x = CalcItemWidth(); + if (frame_size.y == 0.0f) + frame_size.y = label_size.y + (style.FramePadding.y * 2); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect inner_bb(frame_bb.Min + style.FramePadding, frame_bb.Max - style.FramePadding); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0, &frame_bb)) + return -1; + const bool hovered = ItemHoverable(frame_bb, id); + + // Determine scale from values if not specified + if (scale_min == FLT_MAX || scale_max == FLT_MAX) + { + float v_min = FLT_MAX; + float v_max = -FLT_MAX; + for (int i = 0; i < values_count; i++) + { + const float v = values_getter(data, i); + if (v != v) // Ignore NaN values + continue; + v_min = ImMin(v_min, v); + v_max = ImMax(v_max, v); + } + if (scale_min == FLT_MAX) + scale_min = v_min; + if (scale_max == FLT_MAX) + scale_max = v_max; + } + + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + + const int values_count_min = (plot_type == ImGuiPlotType_Lines) ? 2 : 1; + int idx_hovered = -1; + if (values_count >= values_count_min) + { + int res_w = ImMin((int)frame_size.x, values_count) + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + int item_count = values_count + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + + // Tooltip on hover + if (hovered && inner_bb.Contains(g.IO.MousePos)) + { + const float t = ImClamp((g.IO.MousePos.x - inner_bb.Min.x) / (inner_bb.Max.x - inner_bb.Min.x), 0.0f, 0.9999f); + const int v_idx = (int)(t * item_count); + IM_ASSERT(v_idx >= 0 && v_idx < values_count); + + const float v0 = values_getter(data, (v_idx + values_offset) % values_count); + const float v1 = values_getter(data, (v_idx + 1 + values_offset) % values_count); + if (plot_type == ImGuiPlotType_Lines) + SetTooltip("%d: %8.4g\n%d: %8.4g", v_idx, v0, v_idx + 1, v1); + else if (plot_type == ImGuiPlotType_Histogram) + SetTooltip("%d: %8.4g", v_idx, v0); + idx_hovered = v_idx; + } + + const float t_step = 1.0f / (float)res_w; + const float inv_scale = (scale_min == scale_max) ? 0.0f : (1.0f / (scale_max - scale_min)); + + float v0 = values_getter(data, (0 + values_offset) % values_count); + float t0 = 0.0f; + ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) ); // Point in the normalized space of our target rectangle + float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (1 + scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f); // Where does the zero line stands + + const ImU32 col_base = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLines : ImGuiCol_PlotHistogram); + const ImU32 col_hovered = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLinesHovered : ImGuiCol_PlotHistogramHovered); + + for (int n = 0; n < res_w; n++) + { + const float t1 = t0 + t_step; + const int v1_idx = (int)(t0 * item_count + 0.5f); + IM_ASSERT(v1_idx >= 0 && v1_idx < values_count); + const float v1 = values_getter(data, (v1_idx + values_offset + 1) % values_count); + const ImVec2 tp1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) * inv_scale) ); + + // NB: Draw calls are merged together by the DrawList system. Still, we should render our batch are lower level to save a bit of CPU. + ImVec2 pos0 = ImLerp(inner_bb.Min, inner_bb.Max, tp0); + ImVec2 pos1 = ImLerp(inner_bb.Min, inner_bb.Max, (plot_type == ImGuiPlotType_Lines) ? tp1 : ImVec2(tp1.x, histogram_zero_line_t)); + if (plot_type == ImGuiPlotType_Lines) + { + window->DrawList->AddLine(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + else if (plot_type == ImGuiPlotType_Histogram) + { + if (pos1.x >= pos0.x + 2.0f) + pos1.x -= 1.0f; + window->DrawList->AddRectFilled(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + + t0 = t1; + tp0 = tp1; + } + } + + // Text overlay + if (overlay_text) + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, overlay_text, NULL, NULL, ImVec2(0.5f, 0.0f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, inner_bb.Min.y), label); + + // Return hovered index or -1 if none are hovered. + // This is currently not exposed in the public API because we need a larger redesign of the whole thing, but in the short-term we are making it available in PlotEx(). + return idx_hovered; +} + +struct ImGuiPlotArrayGetterData +{ + const float* Values; + int Stride; + + ImGuiPlotArrayGetterData(const float* values, int stride) { Values = values; Stride = stride; } +}; + +static float Plot_ArrayGetter(void* data, int idx) +{ + ImGuiPlotArrayGetterData* plot_data = (ImGuiPlotArrayGetterData*)data; + const float v = *(const float*)(const void*)((const unsigned char*)plot_data->Values + (size_t)idx * plot_data->Stride); + return v; +} + +void ImGui::PlotLines(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) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Lines, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotLines(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) +{ + PlotEx(ImGuiPlotType_Lines, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(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) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Histogram, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(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) +{ + PlotEx(ImGuiPlotType_Histogram, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Value helpers +// Those is not very useful, legacy API. +//------------------------------------------------------------------------- +// - Value() +//------------------------------------------------------------------------- + +void ImGui::Value(const char* prefix, bool b) +{ + Text("%s: %s", prefix, (b ? "true" : "false")); +} + +void ImGui::Value(const char* prefix, int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, unsigned int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, float v, const char* float_format) +{ + if (float_format) + { + char fmt[64]; + ImFormatString(fmt, IM_ARRAYSIZE(fmt), "%%s: %s", float_format); + Text(fmt, prefix, v); + } + else + { + Text("%s: %.3f", prefix, v); + } +} + +//------------------------------------------------------------------------- +// [SECTION] MenuItem, BeginMenu, EndMenu, etc. +//------------------------------------------------------------------------- +// - ImGuiMenuColumns [Internal] +// - BeginMenuBar() +// - EndMenuBar() +// - BeginMainMenuBar() +// - EndMainMenuBar() +// - BeginMenu() +// - EndMenu() +// - MenuItemEx() [Internal] +// - MenuItem() +//------------------------------------------------------------------------- + +// Helpers for internal use +void ImGuiMenuColumns::Update(float spacing, bool window_reappearing) +{ + if (window_reappearing) + memset(Widths, 0, sizeof(Widths)); + Spacing = (ImU16)spacing; + CalcNextTotalWidth(true); + memset(Widths, 0, sizeof(Widths)); + TotalWidth = NextTotalWidth; + NextTotalWidth = 0; +} + +void ImGuiMenuColumns::CalcNextTotalWidth(bool update_offsets) +{ + ImU16 offset = 0; + bool want_spacing = false; + for (int i = 0; i < IM_ARRAYSIZE(Widths); i++) + { + ImU16 width = Widths[i]; + if (want_spacing && width > 0) + offset += Spacing; + want_spacing |= (width > 0); + if (update_offsets) + { + if (i == 1) { OffsetLabel = offset; } + if (i == 2) { OffsetShortcut = offset; } + if (i == 3) { OffsetMark = offset; } + } + offset += width; + } + NextTotalWidth = offset; +} + +float ImGuiMenuColumns::DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark) +{ + Widths[0] = ImMax(Widths[0], (ImU16)w_icon); + Widths[1] = ImMax(Widths[1], (ImU16)w_label); + Widths[2] = ImMax(Widths[2], (ImU16)w_shortcut); + Widths[3] = ImMax(Widths[3], (ImU16)w_mark); + CalcNextTotalWidth(false); + return (float)ImMax(TotalWidth, NextTotalWidth); +} + +// FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere.. +// Currently the main responsibility of this function being to setup clip-rect + horizontal layout + menu navigation layer. +// Ideally we also want this to be responsible for claiming space out of the main window scrolling rectangle, in which case ImGuiWindowFlags_MenuBar will become unnecessary. +// Then later the same system could be used for multiple menu-bars, scrollbars, side-bars. +bool ImGui::BeginMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + if (!(window->Flags & ImGuiWindowFlags_MenuBar)) + return false; + + IM_ASSERT(!window->DC.MenuBarAppending); + BeginGroup(); // Backup position on layer 0 // FIXME: Misleading to use a group for that backup/restore + PushID("##menubar"); + + // We don't clip with current window clipping rectangle as it is already set to the area below. However we clip with window full rect. + // We remove 1 worth of rounding to Max.x to that text in long menus and small windows don't tend to display over the lower-right rounded area, which looks particularly glitchy. + ImRect bar_rect = window->MenuBarRect(); + ImRect clip_rect(IM_ROUND(bar_rect.Min.x + window->WindowBorderSize), IM_ROUND(bar_rect.Min.y + window->WindowBorderSize), IM_ROUND(ImMax(bar_rect.Min.x, bar_rect.Max.x - ImMax(window->WindowRounding, window->WindowBorderSize))), IM_ROUND(bar_rect.Max.y)); + clip_rect.ClipWith(window->OuterRectClipped); + PushClipRect(clip_rect.Min, clip_rect.Max, false); + + // We overwrite CursorMaxPos because BeginGroup sets it to CursorPos (essentially the .EmitItem hack in EndMenuBar() would need something analogous here, maybe a BeginGroupEx() with flags). + window->DC.CursorPos = window->DC.CursorMaxPos = ImVec2(bar_rect.Min.x + window->DC.MenuBarOffset.x, bar_rect.Min.y + window->DC.MenuBarOffset.y); + window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + window->DC.MenuBarAppending = true; + AlignTextToFramePadding(); + return true; +} + +void ImGui::EndMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ImGuiContext& g = *GImGui; + + // Nav: When a move request within one of our child menu failed, capture the request to navigate among our siblings. + if (NavMoveRequestButNoResultYet() && (g.NavMoveDir == ImGuiDir_Left || g.NavMoveDir == ImGuiDir_Right) && (g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + { + // Try to find out if the request is for one of our child menu + ImGuiWindow* nav_earliest_child = g.NavWindow; + while (nav_earliest_child->ParentWindow && (nav_earliest_child->ParentWindow->Flags & ImGuiWindowFlags_ChildMenu)) + nav_earliest_child = nav_earliest_child->ParentWindow; + if (nav_earliest_child->ParentWindow == window && nav_earliest_child->DC.ParentLayoutType == ImGuiLayoutType_Horizontal && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded) == 0) + { + // To do so we claim focus back, restore NavId and then process the movement request for yet another frame. + // This involve a one-frame delay which isn't very problematic in this situation. We could remove it by scoring in advance for multiple window (probably not worth bothering) + const ImGuiNavLayer layer = ImGuiNavLayer_Menu; + IM_ASSERT(window->DC.NavLayersActiveMaskNext & (1 << layer)); // Sanity check (FIXME: Seems unnecessary) + FocusWindow(window); + SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); + g.NavDisableHighlight = true; // Hide highlight for the current frame so we don't see the intermediary selection. + g.NavDisableMouseHover = g.NavMousePosDirty = true; + NavMoveRequestForward(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); // Repeat + } + } + + IM_MSVC_WARNING_SUPPRESS(6011); // Static Analysis false positive "warning C6011: Dereferencing NULL pointer 'window'" + IM_ASSERT(window->Flags & ImGuiWindowFlags_MenuBar); + IM_ASSERT(window->DC.MenuBarAppending); + PopClipRect(); + PopID(); + window->DC.MenuBarOffset.x = window->DC.CursorPos.x - window->Pos.x; // Save horizontal position so next append can reuse it. This is kinda equivalent to a per-layer CursorPos. + g.GroupStack.back().EmitItem = false; + EndGroup(); // Restore position on layer 0 + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.MenuBarAppending = false; +} + +// Important: calling order matters! +// FIXME: Somehow overlapping with docking tech. +// FIXME: The "rect-cut" aspect of this could be formalized into a lower-level helper (rect-cut: https://halt.software/dead-simple-layouts) +bool ImGui::BeginViewportSideBar(const char* name, ImGuiViewport* viewport_p, ImGuiDir dir, float axis_size, ImGuiWindowFlags window_flags) +{ + IM_ASSERT(dir != ImGuiDir_None); + + ImGuiWindow* bar_window = FindWindowByName(name); + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)(viewport_p ? viewport_p : GetMainViewport()); + if (bar_window == NULL || bar_window->BeginCount == 0) + { + // Calculate and set window size/position + ImRect avail_rect = viewport->GetBuildWorkRect(); + ImGuiAxis axis = (dir == ImGuiDir_Up || dir == ImGuiDir_Down) ? ImGuiAxis_Y : ImGuiAxis_X; + ImVec2 pos = avail_rect.Min; + if (dir == ImGuiDir_Right || dir == ImGuiDir_Down) + pos[axis] = avail_rect.Max[axis] - axis_size; + ImVec2 size = avail_rect.GetSize(); + size[axis] = axis_size; + SetNextWindowPos(pos); + SetNextWindowSize(size); + + // Report our size into work area (for next frame) using actual window size + if (dir == ImGuiDir_Up || dir == ImGuiDir_Left) + viewport->BuildWorkOffsetMin[axis] += axis_size; + else if (dir == ImGuiDir_Down || dir == ImGuiDir_Right) + viewport->BuildWorkOffsetMax[axis] -= axis_size; + } + + window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoDocking; + SetNextWindowViewport(viewport->ID); // Enforce viewport so we don't create our own viewport when ImGuiConfigFlags_ViewportsNoMerge is set. + PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowMinSize, ImVec2(0, 0)); // Lift normal size constraint + bool is_open = Begin(name, NULL, window_flags); + PopStyleVar(2); + + return is_open; +} + +bool ImGui::BeginMainMenuBar() +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)GetMainViewport(); + + // Notify of viewport change so GetFrameHeight() can be accurate in case of DPI change + SetCurrentViewport(NULL, viewport); + + // For the main menu bar, which cannot be moved, we honor g.Style.DisplaySafeAreaPadding to ensure text can be visible on a TV set. + // FIXME: This could be generalized as an opt-in way to clamp window->DC.CursorStartPos to avoid SafeArea? + // FIXME: Consider removing support for safe area down the line... it's messy. Nowadays consoles have support for TV calibration in OS settings. + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(g.Style.DisplaySafeAreaPadding.x, ImMax(g.Style.DisplaySafeAreaPadding.y - g.Style.FramePadding.y, 0.0f)); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_MenuBar; + float height = GetFrameHeight(); + bool is_open = BeginViewportSideBar("##MainMenuBar", viewport, ImGuiDir_Up, height, window_flags); + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(0.0f, 0.0f); + + if (is_open) + BeginMenuBar(); + else + End(); + return is_open; +} + +void ImGui::EndMainMenuBar() +{ + EndMenuBar(); + + // When the user has left the menu layer (typically: closed menus through activation of an item), we restore focus to the previous window + // FIXME: With this strategy we won't be able to restore a NULL focus. + ImGuiContext& g = *GImGui; + if (g.CurrentWindow == g.NavWindow && g.NavLayer == ImGuiNavLayer_Main && !g.NavAnyRequest) + FocusTopMostWindowUnderOne(g.NavWindow, NULL); + + End(); +} + +static bool IsRootOfOpenMenuSet() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if ((g.OpenPopupStack.Size <= g.BeginPopupStack.Size) || (window->Flags & ImGuiWindowFlags_ChildMenu)) + return false; + + // Initially we used 'upper_popup->OpenParentId == window->IDStack.back()' to differentiate multiple menu sets from each others + // (e.g. inside menu bar vs loose menu items) based on parent ID. + // This would however prevent the use of e.g. PuhsID() user code submitting menus. + // Previously this worked between popup and a first child menu because the first child menu always had the _ChildWindow flag, + // making hovering on parent popup possible while first child menu was focused - but this was generally a bug with other side effects. + // Instead we don't treat Popup specifically (in order to consistently support menu features in them), maybe the first child menu of a Popup + // doesn't have the _ChildWindow flag, and we rely on this IsRootOfOpenMenuSet() check to allow hovering between root window/popup and first child menu. + // In the end, lack of ID check made it so we could no longer differentiate between separate menu sets. To compensate for that, we at least check parent window nav layer. + // This fixes the most common case of menu opening on hover when moving between window content and menu bar. Multiple different menu sets in same nav layer would still + // open on hover, but that should be a lesser problem, because if such menus are close in proximity in window content then it won't feel weird and if they are far apart + // it likely won't be a problem anyone runs into. + const ImGuiPopupData* upper_popup = &g.OpenPopupStack[g.BeginPopupStack.Size]; + return (window->DC.NavLayerCurrent == upper_popup->ParentNavLayer && upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu)); +} + +bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + bool menu_is_open = IsPopupOpen(id, ImGuiPopupFlags_None); + + // Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu) + // The first menu in a hierarchy isn't so hovering doesn't get across (otherwise e.g. resizing borders with ImGuiButtonFlags_FlattenChildren would react), but top-most BeginMenu() will bypass that limitation. + ImGuiWindowFlags window_flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; + if (window->Flags & ImGuiWindowFlags_ChildMenu) + window_flags |= ImGuiWindowFlags_ChildWindow; + + // If a menu with same the ID was already submitted, we will append to it, matching the behavior of Begin(). + // We are relying on a O(N) search - so O(N log N) over the frame - which seems like the most efficient for the expected small amount of BeginMenu() calls per frame. + // If somehow this is ever becoming a problem we can switch to use e.g. ImGuiStorage mapping key to last frame used. + if (g.MenusIdSubmittedThisFrame.contains(id)) + { + if (menu_is_open) + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + else + g.NextWindowData.ClearFlags(); // we behave like Begin() and need to consume those values + return menu_is_open; + } + + // Tag menu as used. Next time BeginMenu() with same ID is called it will append to existing menu + g.MenusIdSubmittedThisFrame.push_back(id); + + ImVec2 label_size = CalcTextSize(label, NULL, true); + + // Odd hack to allow hovering across menus of a same menu-set (otherwise we wouldn't be able to hover parent without always being a Child window) + // This is only done for items for the menu set and not the full parent window. + const bool menuset_is_open = IsRootOfOpenMenuSet(); + if (menuset_is_open) + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); + + // The reference position stored in popup_pos will be used by Begin() to find a suitable position for the child menu, + // However the final position is going to be different! It is chosen by FindBestWindowPosForPopup(). + // e.g. Menus tend to overlap each other horizontally to amplify relative Z-ordering. + ImVec2 popup_pos, pos = window->DC.CursorPos; + PushID(label); + if (!enabled) + BeginDisabled(); + const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; + bool pressed; + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Menu inside an horizontal menu bar + // Selectable extend their highlight by half ItemSpacing in each direction. + // For ChildMenu, the popup position will be overwritten by the call to FindBestWindowPosForPopup() in Begin() + popup_pos = ImVec2(pos.x - 1.0f - IM_FLOOR(style.ItemSpacing.x * 0.5f), pos.y - style.FramePadding.y + window->MenuBarHeight()); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + float w = label_size.x; + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + pressed = Selectable("", menu_is_open, selectable_flags, ImVec2(w, 0.0f)); + RenderText(text_pos, label); + PopStyleVar(); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu inside a regular/vertical menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + popup_pos = ImVec2(pos.x, pos.y - style.WindowPadding.y); + float icon_w = (icon && icon[0]) ? CalcTextSize(icon, NULL).x : 0.0f; + float checkmark_w = IM_FLOOR(g.FontSize * 1.20f); + float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, 0.0f, checkmark_w); // Feedback to next frame + float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + pressed = Selectable("", menu_is_open, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); + RenderText(text_pos, label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + RenderArrow(window->DrawList, pos + ImVec2(offsets->OffsetMark + extra_w + g.FontSize * 0.30f, 0.0f), GetColorU32(ImGuiCol_Text), ImGuiDir_Right); + } + if (!enabled) + EndDisabled(); + + const bool hovered = (g.HoveredId == id) && enabled && !g.NavDisableMouseHover; + if (menuset_is_open) + PopItemFlag(); + + bool want_open = false; + bool want_close = false; + if (window->DC.LayoutType == ImGuiLayoutType_Vertical) // (window->Flags & (ImGuiWindowFlags_Popup|ImGuiWindowFlags_ChildMenu)) + { + // Close menu when not hovering it anymore unless we are moving roughly in the direction of the menu + // Implement http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown to avoid using timers, so menus feels more reactive. + bool moving_toward_child_menu = false; + ImGuiPopupData* child_popup = (g.BeginPopupStack.Size < g.OpenPopupStack.Size) ? &g.OpenPopupStack[g.BeginPopupStack.Size] : NULL; // Popup candidate (testing below) + ImGuiWindow* child_menu_window = (child_popup && child_popup->Window && child_popup->Window->ParentWindow == window) ? child_popup->Window : NULL; + if (g.HoveredWindow == window && child_menu_window != NULL) + { + float ref_unit = g.FontSize; // FIXME-DPI + float child_dir = (window->Pos.x < child_menu_window->Pos.x) ? 1.0f : -1.0f; + ImRect next_window_rect = child_menu_window->Rect(); + ImVec2 ta = (g.IO.MousePos - g.IO.MouseDelta); + ImVec2 tb = (child_dir > 0.0f) ? next_window_rect.GetTL() : next_window_rect.GetTR(); + ImVec2 tc = (child_dir > 0.0f) ? next_window_rect.GetBL() : next_window_rect.GetBR(); + float extra = ImClamp(ImFabs(ta.x - tb.x) * 0.30f, ref_unit * 0.5f, ref_unit * 2.5f); // add a bit of extra slack. + ta.x += child_dir * -0.5f; + tb.x += child_dir * ref_unit; + tc.x += child_dir * ref_unit; + tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -ref_unit * 8.0f); // triangle has maximum height to limit the slope and the bias toward large sub-menus + tc.y = ta.y + ImMin((tc.y + extra) - ta.y, +ref_unit * 8.0f); + moving_toward_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); + //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_toward_child_menu ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] + } + + // The 'HovereWindow == window' check creates an inconsistency (e.g. moving away from menu slowly tends to hit same window, whereas moving away fast does not) + // But we also need to not close the top-menu menu when moving over void. Perhaps we should extend the triangle check to a larger polygon. + // (Remember to test this on BeginPopup("A")->BeginMenu("B") sequence which behaves slightly differently as B isn't a Child of A and hovering isn't shared.) + if (menu_is_open && !hovered && g.HoveredWindow == window && !moving_toward_child_menu && !g.NavDisableMouseHover) + want_close = true; + + // Open + if (!menu_is_open && pressed) // Click/activate to open + want_open = true; + else if (!menu_is_open && hovered && !moving_toward_child_menu) // Hover to open + want_open = true; + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right) // Nav-Right to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + else + { + // Menu bar + if (menu_is_open && pressed && menuset_is_open) // Click an open menu again to close it + { + want_close = true; + want_open = menu_is_open = false; + } + else if (pressed || (hovered && menuset_is_open && !menu_is_open)) // First click to open, then hover to open others + { + want_open = true; + } + else if (g.NavId == id && g.NavMoveDir == ImGuiDir_Down) // Nav-Down to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + + if (!enabled) // explicitly close if an open menu becomes disabled, facilitate users code a lot in pattern such as 'if (BeginMenu("options", has_object)) { ..use object.. }' + want_close = true; + if (want_close && IsPopupOpen(id, ImGuiPopupFlags_None)) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Openable | (menu_is_open ? ImGuiItemStatusFlags_Opened : 0)); + PopID(); + + if (want_open && !menu_is_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) + { + // Don't reopen/recycle same menu level in the same frame, first close the other menu and yield for a frame. + OpenPopup(label); + } + else if (want_open) + { + menu_is_open = true; + OpenPopup(label); + } + + if (menu_is_open) + { + ImGuiLastItemData last_item_in_parent = g.LastItemData; + SetNextWindowPos(popup_pos, ImGuiCond_Always); // Note: misleading: the value will serve as reference for FindBestWindowPosForPopup(), not actual pos. + PushStyleVar(ImGuiStyleVar_ChildRounding, style.PopupRounding); // First level will use _PopupRounding, subsequent will use _ChildRounding + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + PopStyleVar(); + if (menu_is_open) + { + // Restore LastItemData so IsItemXXXX functions can work after BeginMenu()/EndMenu() + // (This fixes using IsItemClicked() and IsItemHovered(), but IsItemHovered() also relies on its support for ImGuiItemFlags_NoWindowHoverableCheck) + g.LastItemData = last_item_in_parent; + if (g.HoveredWindow == window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } + } + else + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + } + + return menu_is_open; +} + +bool ImGui::BeginMenu(const char* label, bool enabled) +{ + return BeginMenuEx(label, NULL, enabled); +} + +void ImGui::EndMenu() +{ + // Nav: When a left move request our menu failed, close ourselves. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginMenu()/EndMenu() calls + ImGuiWindow* parent_window = window->ParentWindow; // Should always be != NULL is we passed assert. + if (window->BeginCount == window->BeginCountPreviousFrame) + if (g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet()) + if (g.NavWindow && (g.NavWindow->RootWindowForNav == window) && parent_window->DC.LayoutType == ImGuiLayoutType_Vertical) + { + ClosePopupToLevel(g.BeginPopupStack.Size - 1, true); + NavMoveRequestCancel(); + } + + EndPopup(); +} + +bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut, bool selected, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImVec2 pos = window->DC.CursorPos; + ImVec2 label_size = CalcTextSize(label, NULL, true); + + // See BeginMenuEx() for comments about this. + const bool menuset_is_open = IsRootOfOpenMenuSet(); + if (menuset_is_open) + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); + + // We've been using the equivalent of ImGuiSelectableFlags_SetNavIdOnHover on all Selectable() since early Nav system days (commit 43ee5d73), + // but I am unsure whether this should be kept at all. For now moved it to be an opt-in feature used by menus only. + bool pressed; + PushID(label); + if (!enabled) + BeginDisabled(); + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SetNavIdOnHover; + const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Mimic the exact layout spacing of BeginMenu() to allow MenuItem() inside a menu bar, which is a little misleading but may be useful + // Note that in this situation: we don't render the shortcut, we render a highlight instead of the selected tick mark. + float w = label_size.x; + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + pressed = Selectable("", selected, selectable_flags, ImVec2(w, 0.0f)); + PopStyleVar(); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + RenderText(text_pos, label); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu item inside a vertical menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + float icon_w = (icon && icon[0]) ? CalcTextSize(icon, NULL).x : 0.0f; + float shortcut_w = (shortcut && shortcut[0]) ? CalcTextSize(shortcut, NULL).x : 0.0f; + float checkmark_w = IM_FLOOR(g.FontSize * 1.20f); + float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, shortcut_w, checkmark_w); // Feedback for next frame + float stretch_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + pressed = Selectable("", false, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + { + RenderText(pos + ImVec2(offsets->OffsetLabel, 0.0f), label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + if (shortcut_w > 0.0f) + { + PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); + RenderText(pos + ImVec2(offsets->OffsetShortcut + stretch_w, 0.0f), shortcut, NULL, false); + PopStyleColor(); + } + if (selected) + RenderCheckMark(window->DrawList, pos + ImVec2(offsets->OffsetMark + stretch_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(ImGuiCol_Text), g.FontSize * 0.866f); + } + } + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (selected ? ImGuiItemStatusFlags_Checked : 0)); + if (!enabled) + EndDisabled(); + PopID(); + if (menuset_is_open) + PopItemFlag(); + + return pressed; +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled) +{ + return MenuItemEx(label, NULL, shortcut, selected, enabled); +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled) +{ + if (MenuItemEx(label, NULL, shortcut, p_selected ? *p_selected : false, enabled)) + { + if (p_selected) + *p_selected = !*p_selected; + return true; + } + return false; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +//------------------------------------------------------------------------- +// - BeginTabBar() +// - BeginTabBarEx() [Internal] +// - EndTabBar() +// - TabBarLayout() [Internal] +// - TabBarCalcTabID() [Internal] +// - TabBarCalcMaxTabWidth() [Internal] +// - TabBarFindTabById() [Internal] +// - TabBarAddTab() [Internal] +// - TabBarRemoveTab() [Internal] +// - TabBarCloseTab() [Internal] +// - TabBarScrollClamp() [Internal] +// - TabBarScrollToTab() [Internal] +// - TabBarQueueChangeTabOrder() [Internal] +// - TabBarScrollingButtons() [Internal] +// - TabBarTabListPopupButton() [Internal] +//------------------------------------------------------------------------- + +struct ImGuiTabBarSection +{ + int TabCount; // Number of tabs in this section. + float Width; // Sum of width of tabs in this section (after shrinking down) + float Spacing; // Horizontal spacing at the end of the section. + + ImGuiTabBarSection() { memset(this, 0, sizeof(*this)); } +}; + +namespace ImGui +{ + static void TabBarLayout(ImGuiTabBar* tab_bar); + static ImU32 TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label, ImGuiWindow* docked_window); + static float TabBarCalcMaxTabWidth(); + static float TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling); + static void TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections); + static ImGuiTabItem* TabBarScrollingButtons(ImGuiTabBar* tab_bar); + static ImGuiTabItem* TabBarTabListPopupButton(ImGuiTabBar* tab_bar); +} + +ImGuiTabBar::ImGuiTabBar() +{ + memset(this, 0, sizeof(*this)); + CurrFrameVisible = PrevFrameVisible = -1; + LastTabItemIdx = -1; +} + +static inline int TabItemGetSectionIdx(const ImGuiTabItem* tab) +{ + return (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; +} + +static int IMGUI_CDECL TabItemComparerBySection(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + const int a_section = TabItemGetSectionIdx(a); + const int b_section = TabItemGetSectionIdx(b); + if (a_section != b_section) + return a_section - b_section; + return (int)(a->IndexDuringLayout - b->IndexDuringLayout); +} + +static int IMGUI_CDECL TabItemComparerByBeginOrder(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + return (int)(a->BeginOrder - b->BeginOrder); +} + +static ImGuiTabBar* GetTabBarFromTabBarRef(const ImGuiPtrOrIndex& ref) +{ + ImGuiContext& g = *GImGui; + return ref.Ptr ? (ImGuiTabBar*)ref.Ptr : g.TabBars.GetByIndex(ref.Index); +} + +static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + if (g.TabBars.Contains(tab_bar)) + return ImGuiPtrOrIndex(g.TabBars.GetIndex(tab_bar)); + return ImGuiPtrOrIndex(tab_bar); +} + +bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiID id = window->GetID(str_id); + ImGuiTabBar* tab_bar = g.TabBars.GetOrAddByKey(id); + ImRect tab_bar_bb = ImRect(window->DC.CursorPos.x, window->DC.CursorPos.y, window->WorkRect.Max.x, window->DC.CursorPos.y + g.FontSize + g.Style.FramePadding.y * 2); + tab_bar->ID = id; + return BeginTabBarEx(tab_bar, tab_bar_bb, flags | ImGuiTabBarFlags_IsFocused, NULL); +} + +bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags, ImGuiDockNode* dock_node) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + if ((flags & ImGuiTabBarFlags_DockNode) == 0) + PushOverrideID(tab_bar->ID); + + // Add to stack + g.CurrentTabBarStack.push_back(GetTabBarRefFromTabBar(tab_bar)); + g.CurrentTabBar = tab_bar; + + // Append with multiple BeginTabBar()/EndTabBar() pairs. + tab_bar->BackupCursorPos = window->DC.CursorPos; + if (tab_bar->CurrFrameVisible == g.FrameCount) + { + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); + tab_bar->BeginCount++; + return true; + } + + // Ensure correct ordering when toggling ImGuiTabBarFlags_Reorderable flag, or when a new tab was added while being not reorderable + if ((flags & ImGuiTabBarFlags_Reorderable) != (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) || (tab_bar->TabsAddedNew && !(flags & ImGuiTabBarFlags_Reorderable))) + if ((flags & ImGuiTabBarFlags_DockNode) == 0) // FIXME: TabBar with DockNode can now be hybrid + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerByBeginOrder); + tab_bar->TabsAddedNew = false; + + // Flags + if ((flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) + flags |= ImGuiTabBarFlags_FittingPolicyDefault_; + + tab_bar->Flags = flags; + tab_bar->BarRect = tab_bar_bb; + tab_bar->WantLayout = true; // Layout will be done on the first call to ItemTab() + tab_bar->PrevFrameVisible = tab_bar->CurrFrameVisible; + tab_bar->CurrFrameVisible = g.FrameCount; + tab_bar->PrevTabsContentsHeight = tab_bar->CurrTabsContentsHeight; + tab_bar->CurrTabsContentsHeight = 0.0f; + tab_bar->ItemSpacingY = g.Style.ItemSpacing.y; + tab_bar->FramePadding = g.Style.FramePadding; + tab_bar->TabsActiveCount = 0; + tab_bar->BeginCount = 1; + + // Set cursor pos in a way which only be used in the off-chance the user erroneously submits item before BeginTabItem(): items will overlap + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); + + // Draw separator + const ImU32 col = GetColorU32((flags & ImGuiTabBarFlags_IsFocused) ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive); + const float y = tab_bar->BarRect.Max.y - 1.0f; + if (dock_node != NULL) + { + const float separator_min_x = dock_node->Pos.x + window->WindowBorderSize; + const float separator_max_x = dock_node->Pos.x + dock_node->Size.x - window->WindowBorderSize; + window->DrawList->AddLine(ImVec2(separator_min_x, y), ImVec2(separator_max_x, y), col, 1.0f); + } + else + { + const float separator_min_x = tab_bar->BarRect.Min.x - IM_FLOOR(window->WindowPadding.x * 0.5f); + const float separator_max_x = tab_bar->BarRect.Max.x + IM_FLOOR(window->WindowPadding.x * 0.5f); + window->DrawList->AddLine(ImVec2(separator_min_x, y), ImVec2(separator_max_x, y), col, 1.0f); + } + return true; +} + +void ImGui::EndTabBar() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Mismatched BeginTabBar()/EndTabBar()!"); + return; + } + + // Fallback in case no TabItem have been submitted + if (tab_bar->WantLayout) + TabBarLayout(tab_bar); + + // Restore the last visible height if no tab is visible, this reduce vertical flicker/movement when a tabs gets removed without calling SetTabItemClosed(). + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + if (tab_bar->VisibleTabWasSubmitted || tab_bar->VisibleTabId == 0 || tab_bar_appearing) + { + tab_bar->CurrTabsContentsHeight = ImMax(window->DC.CursorPos.y - tab_bar->BarRect.Max.y, tab_bar->CurrTabsContentsHeight); + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->CurrTabsContentsHeight; + } + else + { + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->PrevTabsContentsHeight; + } + if (tab_bar->BeginCount > 1) + window->DC.CursorPos = tab_bar->BackupCursorPos; + + if ((tab_bar->Flags & ImGuiTabBarFlags_DockNode) == 0) + PopID(); + + g.CurrentTabBarStack.pop_back(); + g.CurrentTabBar = g.CurrentTabBarStack.empty() ? NULL : GetTabBarFromTabBarRef(g.CurrentTabBarStack.back()); +} + +// This is called only once a frame before by the first call to ItemTab() +// The reason we're not calling it in BeginTabBar() is to leave a chance to the user to call the SetTabItemClosed() functions. +static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + tab_bar->WantLayout = false; + + // Garbage collect by compacting list + // Detect if we need to sort out tab list (e.g. in rare case where a tab changed section) + int tab_dst_n = 0; + bool need_sort_by_section = false; + ImGuiTabBarSection sections[3]; // Layout sections: Leading, Central, Trailing + for (int tab_src_n = 0; tab_src_n < tab_bar->Tabs.Size; tab_src_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_src_n]; + if (tab->LastFrameVisible < tab_bar->PrevFrameVisible || tab->WantClose) + { + // Remove tab + if (tab_bar->VisibleTabId == tab->ID) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab->ID) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab->ID) { tab_bar->NextSelectedTabId = 0; } + continue; + } + if (tab_dst_n != tab_src_n) + tab_bar->Tabs[tab_dst_n] = tab_bar->Tabs[tab_src_n]; + + tab = &tab_bar->Tabs[tab_dst_n]; + tab->IndexDuringLayout = (ImS16)tab_dst_n; + + // We will need sorting if tabs have changed section (e.g. moved from one of Leading/Central/Trailing to another) + int curr_tab_section_n = TabItemGetSectionIdx(tab); + if (tab_dst_n > 0) + { + ImGuiTabItem* prev_tab = &tab_bar->Tabs[tab_dst_n - 1]; + int prev_tab_section_n = TabItemGetSectionIdx(prev_tab); + if (curr_tab_section_n == 0 && prev_tab_section_n != 0) + need_sort_by_section = true; + if (prev_tab_section_n == 2 && curr_tab_section_n != 2) + need_sort_by_section = true; + } + + sections[curr_tab_section_n].TabCount++; + tab_dst_n++; + } + if (tab_bar->Tabs.Size != tab_dst_n) + tab_bar->Tabs.resize(tab_dst_n); + + if (need_sort_by_section) + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerBySection); + + // Calculate spacing between sections + sections[0].Spacing = sections[0].TabCount > 0 && (sections[1].TabCount + sections[2].TabCount) > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + sections[1].Spacing = sections[1].TabCount > 0 && sections[2].TabCount > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + + // Setup next selected tab + ImGuiID scroll_to_tab_id = 0; + if (tab_bar->NextSelectedTabId) + { + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId; + tab_bar->NextSelectedTabId = 0; + scroll_to_tab_id = tab_bar->SelectedTabId; + } + + // Process order change request (we could probably process it when requested but it's just saner to do it in a single spot). + if (tab_bar->ReorderRequestTabId != 0) + { + if (TabBarProcessReorder(tab_bar)) + if (tab_bar->ReorderRequestTabId == tab_bar->SelectedTabId) + scroll_to_tab_id = tab_bar->ReorderRequestTabId; + tab_bar->ReorderRequestTabId = 0; + } + + // Tab List Popup (will alter tab_bar->BarRect and therefore the available width!) + const bool tab_list_popup_button = (tab_bar->Flags & ImGuiTabBarFlags_TabListPopupButton) != 0; + if (tab_list_popup_button) + if (ImGuiTabItem* tab_to_select = TabBarTabListPopupButton(tab_bar)) // NB: Will alter BarRect.Min.x! + scroll_to_tab_id = tab_bar->SelectedTabId = tab_to_select->ID; + + // Leading/Trailing tabs will be shrink only if central one aren't visible anymore, so layout the shrink data as: leading, trailing, central + // (whereas our tabs are stored as: leading, central, trailing) + int shrink_buffer_indexes[3] = { 0, sections[0].TabCount + sections[2].TabCount, sections[0].TabCount }; + g.ShrinkWidthBuffer.resize(tab_bar->Tabs.Size); + + // Compute ideal tabs widths + store them into shrink buffer + ImGuiTabItem* most_recently_selected_tab = NULL; + int curr_section_n = -1; + bool found_selected_tab_id = false; + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + IM_ASSERT(tab->LastFrameVisible >= tab_bar->PrevFrameVisible); + + if ((most_recently_selected_tab == NULL || most_recently_selected_tab->LastFrameSelected < tab->LastFrameSelected) && !(tab->Flags & ImGuiTabItemFlags_Button)) + most_recently_selected_tab = tab; + if (tab->ID == tab_bar->SelectedTabId) + found_selected_tab_id = true; + if (scroll_to_tab_id == 0 && g.NavJustMovedToId == tab->ID) + scroll_to_tab_id = tab->ID; + + // Refresh tab width immediately, otherwise changes of style e.g. style.FramePadding.x would noticeably lag in the tab bar. + // Additionally, when using TabBarAddTab() to manipulate tab bar order we occasionally insert new tabs that don't have a width yet, + // and we cannot wait for the next BeginTabItem() call. We cannot compute this width within TabBarAddTab() because font size depends on the active window. + const char* tab_name = tab_bar->GetTabName(tab); + const bool has_close_button_or_unsaved_marker = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) == 0 || (tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + tab->ContentWidth = (tab->RequestedWidth >= 0.0f) ? tab->RequestedWidth : TabItemCalcSize(tab_name, has_close_button_or_unsaved_marker).x; + + int section_n = TabItemGetSectionIdx(tab); + ImGuiTabBarSection* section = §ions[section_n]; + section->Width += tab->ContentWidth + (section_n == curr_section_n ? g.Style.ItemInnerSpacing.x : 0.0f); + curr_section_n = section_n; + + // Store data so we can build an array sorted by width if we need to shrink tabs down + IM_MSVC_WARNING_SUPPRESS(6385); + ImGuiShrinkWidthItem* shrink_width_item = &g.ShrinkWidthBuffer[shrink_buffer_indexes[section_n]++]; + shrink_width_item->Index = tab_n; + shrink_width_item->Width = shrink_width_item->InitialWidth = tab->ContentWidth; + tab->Width = ImMax(tab->ContentWidth, 1.0f); + } + + // Compute total ideal width (used for e.g. auto-resizing a window) + tab_bar->WidthAllTabsIdeal = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + tab_bar->WidthAllTabsIdeal += sections[section_n].Width + sections[section_n].Spacing; + + // Horizontal scrolling buttons + // (note that TabBarScrollButtons() will alter BarRect.Max.x) + if ((tab_bar->WidthAllTabsIdeal > tab_bar->BarRect.GetWidth() && tab_bar->Tabs.Size > 1) && !(tab_bar->Flags & ImGuiTabBarFlags_NoTabListScrollingButtons) && (tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyScroll)) + if (ImGuiTabItem* scroll_and_select_tab = TabBarScrollingButtons(tab_bar)) + { + scroll_to_tab_id = scroll_and_select_tab->ID; + if ((scroll_and_select_tab->Flags & ImGuiTabItemFlags_Button) == 0) + tab_bar->SelectedTabId = scroll_to_tab_id; + } + + // Shrink widths if full tabs don't fit in their allocated space + float section_0_w = sections[0].Width + sections[0].Spacing; + float section_1_w = sections[1].Width + sections[1].Spacing; + float section_2_w = sections[2].Width + sections[2].Spacing; + bool central_section_is_visible = (section_0_w + section_2_w) < tab_bar->BarRect.GetWidth(); + float width_excess; + if (central_section_is_visible) + width_excess = ImMax(section_1_w - (tab_bar->BarRect.GetWidth() - section_0_w - section_2_w), 0.0f); // Excess used to shrink central section + else + width_excess = (section_0_w + section_2_w) - tab_bar->BarRect.GetWidth(); // Excess used to shrink leading/trailing section + + // With ImGuiTabBarFlags_FittingPolicyScroll policy, we will only shrink leading/trailing if the central section is not visible anymore + if (width_excess >= 1.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) + { + int shrink_data_count = (central_section_is_visible ? sections[1].TabCount : sections[0].TabCount + sections[2].TabCount); + int shrink_data_offset = (central_section_is_visible ? sections[0].TabCount + sections[2].TabCount : 0); + ShrinkWidths(g.ShrinkWidthBuffer.Data + shrink_data_offset, shrink_data_count, width_excess); + + // Apply shrunk values into tabs and sections + for (int tab_n = shrink_data_offset; tab_n < shrink_data_offset + shrink_data_count; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[g.ShrinkWidthBuffer[tab_n].Index]; + float shrinked_width = IM_FLOOR(g.ShrinkWidthBuffer[tab_n].Width); + if (shrinked_width < 0.0f) + continue; + + shrinked_width = ImMax(1.0f, shrinked_width); + int section_n = TabItemGetSectionIdx(tab); + sections[section_n].Width -= (tab->Width - shrinked_width); + tab->Width = shrinked_width; + } + } + + // Layout all active tabs + int section_tab_index = 0; + float tab_offset = 0.0f; + tab_bar->WidthAllTabs = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + { + ImGuiTabBarSection* section = §ions[section_n]; + if (section_n == 2) + tab_offset = ImMin(ImMax(0.0f, tab_bar->BarRect.GetWidth() - section->Width), tab_offset); + + for (int tab_n = 0; tab_n < section->TabCount; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[section_tab_index + tab_n]; + tab->Offset = tab_offset; + tab->NameOffset = -1; + tab_offset += tab->Width + (tab_n < section->TabCount - 1 ? g.Style.ItemInnerSpacing.x : 0.0f); + } + tab_bar->WidthAllTabs += ImMax(section->Width + section->Spacing, 0.0f); + tab_offset += section->Spacing; + section_tab_index += section->TabCount; + } + + // Clear name buffers + tab_bar->TabsNames.Buf.resize(0); + + // If we have lost the selected tab, select the next most recently active one + if (found_selected_tab_id == false) + tab_bar->SelectedTabId = 0; + if (tab_bar->SelectedTabId == 0 && tab_bar->NextSelectedTabId == 0 && most_recently_selected_tab != NULL) + scroll_to_tab_id = tab_bar->SelectedTabId = most_recently_selected_tab->ID; + + // Lock in visible tab + tab_bar->VisibleTabId = tab_bar->SelectedTabId; + tab_bar->VisibleTabWasSubmitted = false; + + // CTRL+TAB can override visible tab temporarily + if (g.NavWindowingTarget != NULL && g.NavWindowingTarget->DockNode && g.NavWindowingTarget->DockNode->TabBar == tab_bar) + tab_bar->VisibleTabId = scroll_to_tab_id = g.NavWindowingTarget->TabId; + + // Update scrolling + if (scroll_to_tab_id != 0) + TabBarScrollToTab(tab_bar, scroll_to_tab_id, sections); + tab_bar->ScrollingAnim = TabBarScrollClamp(tab_bar, tab_bar->ScrollingAnim); + tab_bar->ScrollingTarget = TabBarScrollClamp(tab_bar, tab_bar->ScrollingTarget); + if (tab_bar->ScrollingAnim != tab_bar->ScrollingTarget) + { + // Scrolling speed adjust itself so we can always reach our target in 1/3 seconds. + // Teleport if we are aiming far off the visible line + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, 70.0f * g.FontSize); + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, ImFabs(tab_bar->ScrollingTarget - tab_bar->ScrollingAnim) / 0.3f); + const bool teleport = (tab_bar->PrevFrameVisible + 1 < g.FrameCount) || (tab_bar->ScrollingTargetDistToVisibility > 10.0f * g.FontSize); + tab_bar->ScrollingAnim = teleport ? tab_bar->ScrollingTarget : ImLinearSweep(tab_bar->ScrollingAnim, tab_bar->ScrollingTarget, g.IO.DeltaTime * tab_bar->ScrollingSpeed); + } + else + { + tab_bar->ScrollingSpeed = 0.0f; + } + tab_bar->ScrollingRectMinX = tab_bar->BarRect.Min.x + sections[0].Width + sections[0].Spacing; + tab_bar->ScrollingRectMaxX = tab_bar->BarRect.Max.x - sections[2].Width - sections[1].Spacing; + + // Actual layout in host window (we don't do it in BeginTabBar() so as not to waste an extra frame) + ImGuiWindow* window = g.CurrentWindow; + window->DC.CursorPos = tab_bar->BarRect.Min; + ItemSize(ImVec2(tab_bar->WidthAllTabs, tab_bar->BarRect.GetHeight()), tab_bar->FramePadding.y); + window->DC.IdealMaxPos.x = ImMax(window->DC.IdealMaxPos.x, tab_bar->BarRect.Min.x + tab_bar->WidthAllTabsIdeal); +} + +// Dockable uses Name/ID in the global namespace. Non-dockable items use the ID stack. +static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label, ImGuiWindow* docked_window) +{ + if (docked_window != NULL) + { + IM_UNUSED(tab_bar); + IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_DockNode); + ImGuiID id = docked_window->TabId; + KeepAliveID(id); + return id; + } + else + { + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(label); + } +} + +static float ImGui::TabBarCalcMaxTabWidth() +{ + ImGuiContext& g = *GImGui; + return g.FontSize * 20.0f; +} + +ImGuiTabItem* ImGui::TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (tab_id != 0) + for (int n = 0; n < tab_bar->Tabs.Size; n++) + if (tab_bar->Tabs[n].ID == tab_id) + return &tab_bar->Tabs[n]; + return NULL; +} + +// FIXME: See references to #2304 in TODO.txt +ImGuiTabItem* ImGui::TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar) +{ + ImGuiTabItem* most_recently_selected_tab = NULL; + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (most_recently_selected_tab == NULL || most_recently_selected_tab->LastFrameSelected < tab->LastFrameSelected) + if (tab->Window && tab->Window->WasActive) + most_recently_selected_tab = tab; + } + return most_recently_selected_tab; +} + +// The purpose of this call is to register tab in advance so we can control their order at the time they appear. +// Otherwise calling this is unnecessary as tabs are appending as needed by the BeginTabItem() function. +void ImGui::TabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(TabBarFindTabByID(tab_bar, window->TabId) == NULL); + IM_ASSERT(g.CurrentTabBar != tab_bar); // Can't work while the tab bar is active as our tab doesn't have an X offset yet, in theory we could/should test something like (tab_bar->CurrFrameVisible < g.FrameCount) but we'd need to solve why triggers the commented early-out assert in BeginTabBarEx() (probably dock node going from implicit to explicit in same frame) + + if (!window->HasCloseButton) + tab_flags |= ImGuiTabItemFlags_NoCloseButton; // Set _NoCloseButton immediately because it will be used for first-frame width calculation. + + ImGuiTabItem new_tab; + new_tab.ID = window->TabId; + new_tab.Flags = tab_flags; + new_tab.LastFrameVisible = tab_bar->CurrFrameVisible; // Required so BeginTabBar() doesn't ditch the tab + if (new_tab.LastFrameVisible == -1) + new_tab.LastFrameVisible = g.FrameCount - 1; + new_tab.Window = window; // Required so tab bar layout can compute the tab width before tab submission + tab_bar->Tabs.push_back(new_tab); +} + +// The *TabId fields be already set by the docking system _before_ the actual TabItem was created, so we clear them regardless. +void ImGui::TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab_bar->Tabs.erase(tab); + if (tab_bar->VisibleTabId == tab_id) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab_id) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab_id) { tab_bar->NextSelectedTabId = 0; } +} + +// Called on manual closure attempt +void ImGui::TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) +{ + if (tab->Flags & ImGuiTabItemFlags_Button) + return; // A button appended with TabItemButton(). + + if (!(tab->Flags & ImGuiTabItemFlags_UnsavedDocument)) + { + // This will remove a frame of lag for selecting another tab on closure. + // However we don't run it in the case where the 'Unsaved' flag is set, so user gets a chance to fully undo the closure + tab->WantClose = true; + if (tab_bar->VisibleTabId == tab->ID) + { + tab->LastFrameVisible = -1; + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = 0; + } + } + else + { + // Actually select before expecting closure attempt (on an UnsavedDocument tab user is expect to e.g. show a popup) + if (tab_bar->VisibleTabId != tab->ID) + tab_bar->NextSelectedTabId = tab->ID; + } +} + +static float ImGui::TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling) +{ + scrolling = ImMin(scrolling, tab_bar->WidthAllTabs - tab_bar->BarRect.GetWidth()); + return ImMax(scrolling, 0.0f); +} + +// Note: we may scroll to tab that are not selected! e.g. using keyboard arrow keys +static void ImGui::TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections) +{ + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id); + if (tab == NULL) + return; + if (tab->Flags & ImGuiTabItemFlags_SectionMask_) + return; + + ImGuiContext& g = *GImGui; + float margin = g.FontSize * 1.0f; // When to scroll to make Tab N+1 visible always make a bit of N visible to suggest more scrolling area (since we don't have a scrollbar) + int order = tab_bar->GetTabOrder(tab); + + // Scrolling happens only in the central section (leading/trailing sections are not scrolling) + // FIXME: This is all confusing. + float scrollable_width = tab_bar->BarRect.GetWidth() - sections[0].Width - sections[2].Width - sections[1].Spacing; + + // We make all tabs positions all relative Sections[0].Width to make code simpler + float tab_x1 = tab->Offset - sections[0].Width + (order > sections[0].TabCount - 1 ? -margin : 0.0f); + float tab_x2 = tab->Offset - sections[0].Width + tab->Width + (order + 1 < tab_bar->Tabs.Size - sections[2].TabCount ? margin : 1.0f); + tab_bar->ScrollingTargetDistToVisibility = 0.0f; + if (tab_bar->ScrollingTarget > tab_x1 || (tab_x2 - tab_x1 >= scrollable_width)) + { + // Scroll to the left + tab_bar->ScrollingTargetDistToVisibility = ImMax(tab_bar->ScrollingAnim - tab_x2, 0.0f); + tab_bar->ScrollingTarget = tab_x1; + } + else if (tab_bar->ScrollingTarget < tab_x2 - scrollable_width) + { + // Scroll to the right + tab_bar->ScrollingTargetDistToVisibility = ImMax((tab_x1 - scrollable_width) - tab_bar->ScrollingAnim, 0.0f); + tab_bar->ScrollingTarget = tab_x2 - scrollable_width; + } +} + +void ImGui::TabBarQueueReorder(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int offset) +{ + IM_ASSERT(offset != 0); + IM_ASSERT(tab_bar->ReorderRequestTabId == 0); + tab_bar->ReorderRequestTabId = tab->ID; + tab_bar->ReorderRequestOffset = (ImS16)offset; +} + +void ImGui::TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, const ImGuiTabItem* src_tab, ImVec2 mouse_pos) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(tab_bar->ReorderRequestTabId == 0); + if ((tab_bar->Flags & ImGuiTabBarFlags_Reorderable) == 0) + return; + + const bool is_central_section = (src_tab->Flags & ImGuiTabItemFlags_SectionMask_) == 0; + const float bar_offset = tab_bar->BarRect.Min.x - (is_central_section ? tab_bar->ScrollingTarget : 0); + + // Count number of contiguous tabs we are crossing over + const int dir = (bar_offset + src_tab->Offset) > mouse_pos.x ? -1 : +1; + const int src_idx = tab_bar->Tabs.index_from_ptr(src_tab); + int dst_idx = src_idx; + for (int i = src_idx; i >= 0 && i < tab_bar->Tabs.Size; i += dir) + { + // Reordered tabs must share the same section + const ImGuiTabItem* dst_tab = &tab_bar->Tabs[i]; + if (dst_tab->Flags & ImGuiTabItemFlags_NoReorder) + break; + if ((dst_tab->Flags & ImGuiTabItemFlags_SectionMask_) != (src_tab->Flags & ImGuiTabItemFlags_SectionMask_)) + break; + dst_idx = i; + + // Include spacing after tab, so when mouse cursor is between tabs we would not continue checking further tabs that are not hovered. + const float x1 = bar_offset + dst_tab->Offset - g.Style.ItemInnerSpacing.x; + const float x2 = bar_offset + dst_tab->Offset + dst_tab->Width + g.Style.ItemInnerSpacing.x; + //GetForegroundDrawList()->AddRect(ImVec2(x1, tab_bar->BarRect.Min.y), ImVec2(x2, tab_bar->BarRect.Max.y), IM_COL32(255, 0, 0, 255)); + if ((dir < 0 && mouse_pos.x > x1) || (dir > 0 && mouse_pos.x < x2)) + break; + } + + if (dst_idx != src_idx) + TabBarQueueReorder(tab_bar, src_tab, dst_idx - src_idx); +} + +bool ImGui::TabBarProcessReorder(ImGuiTabBar* tab_bar) +{ + ImGuiTabItem* tab1 = TabBarFindTabByID(tab_bar, tab_bar->ReorderRequestTabId); + if (tab1 == NULL || (tab1->Flags & ImGuiTabItemFlags_NoReorder)) + return false; + + //IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_Reorderable); // <- this may happen when using debug tools + int tab2_order = tab_bar->GetTabOrder(tab1) + tab_bar->ReorderRequestOffset; + if (tab2_order < 0 || tab2_order >= tab_bar->Tabs.Size) + return false; + + // Reordered tabs must share the same section + // (Note: TabBarQueueReorderFromMousePos() also has a similar test but since we allow direct calls to TabBarQueueReorder() we do it here too) + ImGuiTabItem* tab2 = &tab_bar->Tabs[tab2_order]; + if (tab2->Flags & ImGuiTabItemFlags_NoReorder) + return false; + if ((tab1->Flags & ImGuiTabItemFlags_SectionMask_) != (tab2->Flags & ImGuiTabItemFlags_SectionMask_)) + return false; + + ImGuiTabItem item_tmp = *tab1; + ImGuiTabItem* src_tab = (tab_bar->ReorderRequestOffset > 0) ? tab1 + 1 : tab2; + ImGuiTabItem* dst_tab = (tab_bar->ReorderRequestOffset > 0) ? tab1 : tab2 + 1; + const int move_count = (tab_bar->ReorderRequestOffset > 0) ? tab_bar->ReorderRequestOffset : -tab_bar->ReorderRequestOffset; + memmove(dst_tab, src_tab, move_count * sizeof(ImGuiTabItem)); + *tab2 = item_tmp; + + if (tab_bar->Flags & ImGuiTabBarFlags_SaveSettings) + MarkIniSettingsDirty(); + return true; +} + +static ImGuiTabItem* ImGui::TabBarScrollingButtons(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const ImVec2 arrow_button_size(g.FontSize - 2.0f, g.FontSize + g.Style.FramePadding.y * 2.0f); + const float scrolling_buttons_width = arrow_button_size.x * 2.0f; + + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + //window->DrawList->AddRect(ImVec2(tab_bar->BarRect.Max.x - scrolling_buttons_width, tab_bar->BarRect.Min.y), ImVec2(tab_bar->BarRect.Max.x, tab_bar->BarRect.Max.y), IM_COL32(255,0,0,255)); + + int select_dir = 0; + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + const float backup_repeat_delay = g.IO.KeyRepeatDelay; + const float backup_repeat_rate = g.IO.KeyRepeatRate; + g.IO.KeyRepeatDelay = 0.250f; + g.IO.KeyRepeatRate = 0.200f; + float x = ImMax(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.x - scrolling_buttons_width); + window->DC.CursorPos = ImVec2(x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##<", ImGuiDir_Left, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = -1; + window->DC.CursorPos = ImVec2(x + arrow_button_size.x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##>", ImGuiDir_Right, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = +1; + PopStyleColor(2); + g.IO.KeyRepeatRate = backup_repeat_rate; + g.IO.KeyRepeatDelay = backup_repeat_delay; + + ImGuiTabItem* tab_to_scroll_to = NULL; + if (select_dir != 0) + if (ImGuiTabItem* tab_item = TabBarFindTabByID(tab_bar, tab_bar->SelectedTabId)) + { + int selected_order = tab_bar->GetTabOrder(tab_item); + int target_order = selected_order + select_dir; + + // Skip tab item buttons until another tab item is found or end is reached + while (tab_to_scroll_to == NULL) + { + // If we are at the end of the list, still scroll to make our tab visible + tab_to_scroll_to = &tab_bar->Tabs[(target_order >= 0 && target_order < tab_bar->Tabs.Size) ? target_order : selected_order]; + + // Cross through buttons + // (even if first/last item is a button, return it so we can update the scroll) + if (tab_to_scroll_to->Flags & ImGuiTabItemFlags_Button) + { + target_order += select_dir; + selected_order += select_dir; + tab_to_scroll_to = (target_order < 0 || target_order >= tab_bar->Tabs.Size) ? tab_to_scroll_to : NULL; + } + } + } + window->DC.CursorPos = backup_cursor_pos; + tab_bar->BarRect.Max.x -= scrolling_buttons_width + 1.0f; + + return tab_to_scroll_to; +} + +static ImGuiTabItem* ImGui::TabBarTabListPopupButton(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We use g.Style.FramePadding.y to match the square ArrowButton size + const float tab_list_popup_button_width = g.FontSize + g.Style.FramePadding.y; + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x - g.Style.FramePadding.y, tab_bar->BarRect.Min.y); + tab_bar->BarRect.Min.x += tab_list_popup_button_width; + + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + bool open = BeginCombo("##v", NULL, ImGuiComboFlags_NoPreview | ImGuiComboFlags_HeightLargest); + PopStyleColor(2); + + ImGuiTabItem* tab_to_select = NULL; + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (tab->Flags & ImGuiTabItemFlags_Button) + continue; + + const char* tab_name = tab_bar->GetTabName(tab); + if (Selectable(tab_name, tab_bar->SelectedTabId == tab->ID)) + tab_to_select = tab; + } + EndCombo(); + } + + window->DC.CursorPos = backup_cursor_pos; + return tab_to_select; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +//------------------------------------------------------------------------- +// - BeginTabItem() +// - EndTabItem() +// - TabItemButton() +// - TabItemEx() [Internal] +// - SetTabItemClosed() +// - TabItemCalcSize() [Internal] +// - TabItemBackground() [Internal] +// - TabItemLabelAndCloseButton() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::BeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + IM_ASSERT((flags & ImGuiTabItemFlags_Button) == 0); // BeginTabItem() Can't be used with button flags, use TabItemButton() instead! + + bool ret = TabItemEx(tab_bar, label, p_open, flags, NULL); + if (ret && !(flags & ImGuiTabItemFlags_NoPushId)) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + PushOverrideID(tab->ID); // We already hashed 'label' so push into the ID stack directly instead of doing another hash through PushID(label) + } + return ret; +} + +void ImGui::EndTabItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return; + } + IM_ASSERT(tab_bar->LastTabItemIdx >= 0); + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + if (!(tab->Flags & ImGuiTabItemFlags_NoPushId)) + PopID(); +} + +bool ImGui::TabItemButton(const char* label, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + return TabItemEx(tab_bar, label, NULL, flags | ImGuiTabItemFlags_Button | ImGuiTabItemFlags_NoReorder, NULL); +} + +bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window) +{ + // Layout whole tab bar if not already done + ImGuiContext& g = *GImGui; + if (tab_bar->WantLayout) + { + ImGuiNextItemData backup_next_item_data = g.NextItemData; + TabBarLayout(tab_bar); + g.NextItemData = backup_next_item_data; + } + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = TabBarCalcTabID(tab_bar, label, docked_window); + + // If the user called us with *p_open == false, we early out and don't render. + // We make a call to ItemAdd() so that attempts to use a contextual popup menu with an implicit ID won't use an older ID. + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + if (p_open && !*p_open) + { + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); + return false; + } + + IM_ASSERT(!p_open || !(flags & ImGuiTabItemFlags_Button)); + IM_ASSERT((flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) != (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)); // Can't use both Leading and Trailing + + // Store into ImGuiTabItemFlags_NoCloseButton, also honor ImGuiTabItemFlags_NoCloseButton passed by user (although not documented) + if (flags & ImGuiTabItemFlags_NoCloseButton) + p_open = NULL; + else if (p_open == NULL) + flags |= ImGuiTabItemFlags_NoCloseButton; + + // Acquire tab data + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, id); + bool tab_is_new = false; + if (tab == NULL) + { + tab_bar->Tabs.push_back(ImGuiTabItem()); + tab = &tab_bar->Tabs.back(); + tab->ID = id; + tab_bar->TabsAddedNew = tab_is_new = true; + } + tab_bar->LastTabItemIdx = (ImS16)tab_bar->Tabs.index_from_ptr(tab); + + // Calculate tab contents size + ImVec2 size = TabItemCalcSize(label, (p_open != NULL) || (flags & ImGuiTabItemFlags_UnsavedDocument)); + tab->RequestedWidth = -1.0f; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + size.x = tab->RequestedWidth = g.NextItemData.Width; + if (tab_is_new) + tab->Width = ImMax(1.0f, size.x); + tab->ContentWidth = size.x; + tab->BeginOrder = tab_bar->TabsActiveCount++; + + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + const bool tab_bar_focused = (tab_bar->Flags & ImGuiTabBarFlags_IsFocused) != 0; + const bool tab_appearing = (tab->LastFrameVisible + 1 < g.FrameCount); + const bool tab_just_unsaved = (flags & ImGuiTabItemFlags_UnsavedDocument) && !(tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + const bool is_tab_button = (flags & ImGuiTabItemFlags_Button) != 0; + tab->LastFrameVisible = g.FrameCount; + tab->Flags = flags; + tab->Window = docked_window; + + // Append name with zero-terminator + // (regular tabs are permitted in a DockNode tab bar, but window tabs not permitted in a non-DockNode tab bar) + if (tab->Window != NULL) + { + IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_DockNode); + tab->NameOffset = -1; + } + else + { + IM_ASSERT(tab->Window == NULL); + tab->NameOffset = (ImS32)tab_bar->TabsNames.size(); + tab_bar->TabsNames.append(label, label + strlen(label) + 1); // Append name _with_ the zero-terminator. + } + + // Update selected tab + if (!is_tab_button) + { + if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) + if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) + tab_bar->NextSelectedTabId = id; // New tabs gets activated + if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // _SetSelected can only be passed on explicit tab bar + tab_bar->NextSelectedTabId = id; + } + + // Lock visibility + // (Note: tab_contents_visible != tab_selected... because CTRL+TAB operations may preview some tabs without selecting them!) + bool tab_contents_visible = (tab_bar->VisibleTabId == id); + if (tab_contents_visible) + tab_bar->VisibleTabWasSubmitted = true; + + // On the very first frame of a tab bar we let first tab contents be visible to minimize appearing glitches + if (!tab_contents_visible && tab_bar->SelectedTabId == 0 && tab_bar_appearing && docked_window == NULL) + if (tab_bar->Tabs.Size == 1 && !(tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs)) + tab_contents_visible = true; + + // Note that tab_is_new is not necessarily the same as tab_appearing! When a tab bar stops being submitted + // and then gets submitted again, the tabs will have 'tab_appearing=true' but 'tab_is_new=false'. + if (tab_appearing && (!tab_bar_appearing || tab_is_new)) + { + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); + if (is_tab_button) + return false; + return tab_contents_visible; + } + + if (tab_bar->SelectedTabId == id) + tab->LastFrameSelected = g.FrameCount; + + // Backup current layout position + const ImVec2 backup_main_cursor_pos = window->DC.CursorPos; + + // Layout + const bool is_central_section = (tab->Flags & ImGuiTabItemFlags_SectionMask_) == 0; + size.x = tab->Width; + if (is_central_section) + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(IM_FLOOR(tab->Offset - tab_bar->ScrollingAnim), 0.0f); + else + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(tab->Offset, 0.0f); + ImVec2 pos = window->DC.CursorPos; + ImRect bb(pos, pos + size); + + // We don't have CPU clipping primitives to clip the CloseButton (until it becomes a texture), so need to add an extra draw call (temporary in the case of vertical animation) + const bool want_clip_rect = is_central_section && (bb.Min.x < tab_bar->ScrollingRectMinX || bb.Max.x > tab_bar->ScrollingRectMaxX); + if (want_clip_rect) + PushClipRect(ImVec2(ImMax(bb.Min.x, tab_bar->ScrollingRectMinX), bb.Min.y - 1), ImVec2(tab_bar->ScrollingRectMaxX, bb.Max.y), true); + + ImVec2 backup_cursor_max_pos = window->DC.CursorMaxPos; + ItemSize(bb.GetSize(), style.FramePadding.y); + window->DC.CursorMaxPos = backup_cursor_max_pos; + + if (!ItemAdd(bb, id)) + { + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + return tab_contents_visible; + } + + // Click to Select a tab + ImGuiButtonFlags button_flags = ((is_tab_button ? ImGuiButtonFlags_PressedOnClickRelease : ImGuiButtonFlags_PressedOnClick) | ImGuiButtonFlags_AllowItemOverlap); + if (g.DragDropActive && !g.DragDropPayload.IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW)) // FIXME: May be an opt-in property of the payload to disable this + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + if (pressed && !is_tab_button) + tab_bar->NextSelectedTabId = id; + + // Transfer active id window so the active id is not owned by the dock host (as StartMouseMovingWindow() + // will only do it on the drag). This allows FocusWindow() to be more conservative in how it clears active id. + if (held && docked_window && g.ActiveId == id && g.ActiveIdIsJustActivated) + g.ActiveIdWindow = docked_window; + + // Allow the close button to overlap unless we are dragging (in which case we don't want any overlapping tabs to be hovered) + if (g.ActiveId != id) + SetItemAllowOverlap(); + + // Drag and drop a single floating window node moves it + ImGuiDockNode* node = docked_window ? docked_window->DockNode : NULL; + const bool single_floating_window_node = node && node->IsFloatingNode() && (node->Windows.Size == 1); + if (held && single_floating_window_node && IsMouseDragging(0, 0.0f)) + { + // Move + StartMouseMovingWindow(docked_window); + } + else if (held && !tab_appearing && IsMouseDragging(0)) + { + // Drag and drop: re-order tabs + int drag_dir = 0; + float drag_distance_from_edge_x = 0.0f; + if (!g.DragDropActive && ((tab_bar->Flags & ImGuiTabBarFlags_Reorderable) || (docked_window != NULL))) + { + // While moving a tab it will jump on the other side of the mouse, so we also test for MouseDelta.x + if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < bb.Min.x) + { + drag_dir = -1; + drag_distance_from_edge_x = bb.Min.x - g.IO.MousePos.x; + TabBarQueueReorderFromMousePos(tab_bar, tab, g.IO.MousePos); + } + else if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > bb.Max.x) + { + drag_dir = +1; + drag_distance_from_edge_x = g.IO.MousePos.x - bb.Max.x; + TabBarQueueReorderFromMousePos(tab_bar, tab, g.IO.MousePos); + } + } + + // Extract a Dockable window out of it's tab bar + if (docked_window != NULL && !(docked_window->Flags & ImGuiWindowFlags_NoMove)) + { + // We use a variable threshold to distinguish dragging tabs within a tab bar and extracting them out of the tab bar + bool undocking_tab = (g.DragDropActive && g.DragDropPayload.SourceId == id); + if (!undocking_tab) //&& (!g.IO.ConfigDockingWithShift || g.IO.KeyShift) + { + float threshold_base = g.FontSize; + float threshold_x = (threshold_base * 2.2f); + float threshold_y = (threshold_base * 1.5f) + ImClamp((ImFabs(g.IO.MouseDragMaxDistanceAbs[0].x) - threshold_base * 2.0f) * 0.20f, 0.0f, threshold_base * 4.0f); + //GetForegroundDrawList()->AddRect(ImVec2(bb.Min.x - threshold_x, bb.Min.y - threshold_y), ImVec2(bb.Max.x + threshold_x, bb.Max.y + threshold_y), IM_COL32_WHITE); // [DEBUG] + + float distance_from_edge_y = ImMax(bb.Min.y - g.IO.MousePos.y, g.IO.MousePos.y - bb.Max.y); + if (distance_from_edge_y >= threshold_y) + undocking_tab = true; + if (drag_distance_from_edge_x > threshold_x) + if ((drag_dir < 0 && tab_bar->GetTabOrder(tab) == 0) || (drag_dir > 0 && tab_bar->GetTabOrder(tab) == tab_bar->Tabs.Size - 1)) + undocking_tab = true; + } + + if (undocking_tab) + { + // Undock + // FIXME: refactor to share more code with e.g. StartMouseMovingWindow + DockContextQueueUndockWindow(&g, docked_window); + g.MovingWindow = docked_window; + SetActiveID(g.MovingWindow->MoveId, g.MovingWindow); + g.ActiveIdClickOffset -= g.MovingWindow->Pos - bb.Min; + g.ActiveIdNoClearOnFocusLoss = true; + SetActiveIdUsingAllKeyboardKeys(); + } + } + } + +#if 0 + if (hovered && g.HoveredIdNotActiveTimer > TOOLTIP_DELAY && bb.GetWidth() < tab->ContentWidth) + { + // Enlarge tab display when hovering + bb.Max.x = bb.Min.x + IM_FLOOR(ImLerp(bb.GetWidth(), tab->ContentWidth, ImSaturate((g.HoveredIdNotActiveTimer - 0.40f) * 6.0f))); + display_draw_list = GetForegroundDrawList(window); + TabItemBackground(display_draw_list, bb, flags, GetColorU32(ImGuiCol_TitleBgActive)); + } +#endif + + // Render tab shape + ImDrawList* display_draw_list = window->DrawList; + const ImU32 tab_col = GetColorU32((held || hovered) ? ImGuiCol_TabHovered : tab_contents_visible ? (tab_bar_focused ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive) : (tab_bar_focused ? ImGuiCol_Tab : ImGuiCol_TabUnfocused)); + TabItemBackground(display_draw_list, bb, flags, tab_col); + RenderNavHighlight(bb, id); + + // Select with right mouse button. This is so the common idiom for context menu automatically highlight the current widget. + const bool hovered_unblocked = IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup); + if (hovered_unblocked && (IsMouseClicked(1) || IsMouseReleased(1))) + if (!is_tab_button) + tab_bar->NextSelectedTabId = id; + + if (tab_bar->Flags & ImGuiTabBarFlags_NoCloseWithMiddleMouseButton) + flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; + + // Render tab label, process close button + const ImGuiID close_button_id = p_open ? GetIDWithSeed("#CLOSE", NULL, docked_window ? docked_window->ID : id) : 0; + bool just_closed; + bool text_clipped; + TabItemLabelAndCloseButton(display_draw_list, bb, tab_just_unsaved ? (flags & ~ImGuiTabItemFlags_UnsavedDocument) : flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible, &just_closed, &text_clipped); + if (just_closed && p_open != NULL) + { + *p_open = false; + TabBarCloseTab(tab_bar, tab); + } + + // Forward Hovered state so IsItemHovered() after Begin() can work (even though we are technically hovering our parent) + // That state is copied to window->DockTabItemStatusFlags by our caller. + if (docked_window && (hovered || g.HoveredId == close_button_id)) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + + // Restore main window position so user can draw there + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + + // Tooltip + // (Won't work over the close button because ItemOverlap systems messes up with HoveredIdTimer-> seems ok) + // (We test IsItemHovered() to discard e.g. when another item is active or drag and drop over the tab bar, which g.HoveredId ignores) + // FIXME: This is a mess. + // FIXME: We may want disabled tab to still display the tooltip? + if (text_clipped && g.HoveredId == id && !held) + if (!(tab_bar->Flags & ImGuiTabBarFlags_NoTooltip) && !(tab->Flags & ImGuiTabItemFlags_NoTooltip)) + if (IsItemHovered(ImGuiHoveredFlags_DelayNormal)) + SetTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); + + IM_ASSERT(!is_tab_button || !(tab_bar->SelectedTabId == tab->ID && is_tab_button)); // TabItemButton should not be selected + if (is_tab_button) + return pressed; + return tab_contents_visible; +} + +// [Public] This is call is 100% optional but it allows to remove some one-frame glitches when a tab has been unexpectedly removed. +// To use it to need to call the function SetTabItemClosed() between BeginTabBar() and EndTabBar(). +// Tabs closed by the close button will automatically be flagged to avoid this issue. +void ImGui::SetTabItemClosed(const char* label) +{ + ImGuiContext& g = *GImGui; + bool is_within_manual_tab_bar = g.CurrentTabBar && !(g.CurrentTabBar->Flags & ImGuiTabBarFlags_DockNode); + if (is_within_manual_tab_bar) + { + ImGuiTabBar* tab_bar = g.CurrentTabBar; + ImGuiID tab_id = TabBarCalcTabID(tab_bar, label, NULL); + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab->WantClose = true; // Will be processed by next call to TabBarLayout() + } + else if (ImGuiWindow* window = FindWindowByName(label)) + { + if (window->DockIsActive) + if (ImGuiDockNode* node = window->DockNode) + { + ImGuiID tab_id = TabBarCalcTabID(node->TabBar, label, window); + TabBarRemoveTab(node->TabBar, tab_id); + window->DockTabWantClose = true; + } + } +} + +ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f); + if (has_close_button_or_unsaved_marker) + size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle. + else + size.x += g.Style.FramePadding.x + 1.0f; + return ImVec2(ImMin(size.x, TabBarCalcMaxTabWidth()), size.y); +} + +ImVec2 ImGui::TabItemCalcSize(ImGuiWindow* window) +{ + return TabItemCalcSize(window->Name, window->HasCloseButton || (window->Flags & ImGuiWindowFlags_UnsavedDocument)); +} + +void ImGui::TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col) +{ + // While rendering tabs, we trim 1 pixel off the top of our bounding box so they can fit within a regular frame height while looking "detached" from it. + ImGuiContext& g = *GImGui; + const float width = bb.GetWidth(); + IM_UNUSED(flags); + IM_ASSERT(width > 0.0f); + const float rounding = ImMax(0.0f, ImMin((flags & ImGuiTabItemFlags_Button) ? g.Style.FrameRounding : g.Style.TabRounding, width * 0.5f - 1.0f)); + const float y1 = bb.Min.y + 1.0f; + const float y2 = bb.Max.y + ((flags & ImGuiTabItemFlags_Preview) ? 0.0f : -1.0f); + draw_list->PathLineTo(ImVec2(bb.Min.x, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding, y1 + rounding), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding, y1 + rounding), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x, y2)); + draw_list->PathFillConvex(col); + if (g.Style.TabBorderSize > 0.0f) + { + draw_list->PathLineTo(ImVec2(bb.Min.x + 0.5f, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding + 0.5f, y1 + rounding + 0.5f), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding - 0.5f, y1 + rounding + 0.5f), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x - 0.5f, y2)); + draw_list->PathStroke(GetColorU32(ImGuiCol_Border), 0, g.Style.TabBorderSize); + } +} + +// Render text label (with custom clipping) + Unsaved Document marker + Close Button logic +// We tend to lock style.FramePadding for a given tab-bar, hence the 'frame_padding' parameter. +void ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + + if (out_just_closed) + *out_just_closed = false; + if (out_text_clipped) + *out_text_clipped = false; + + if (bb.GetWidth() <= 1.0f) + return; + + // In Style V2 we'll have full override of all colors per state (e.g. focused, selected) + // But right now if you want to alter text color of tabs this is what you need to do. +#if 0 + const float backup_alpha = g.Style.Alpha; + if (!is_contents_visible) + g.Style.Alpha *= 0.7f; +#endif + + // Render text label (with clipping + alpha gradient) + unsaved marker + ImRect text_pixel_clip_bb(bb.Min.x + frame_padding.x, bb.Min.y + frame_padding.y, bb.Max.x - frame_padding.x, bb.Max.y); + ImRect text_ellipsis_clip_bb = text_pixel_clip_bb; + + // Return clipped state ignoring the close button + if (out_text_clipped) + { + *out_text_clipped = (text_ellipsis_clip_bb.Min.x + label_size.x) > text_pixel_clip_bb.Max.x; + //draw_list->AddCircle(text_ellipsis_clip_bb.Min, 3.0f, *out_text_clipped ? IM_COL32(255, 0, 0, 255) : IM_COL32(0, 255, 0, 255)); + } + + const float button_sz = g.FontSize; + const ImVec2 button_pos(ImMax(bb.Min.x, bb.Max.x - frame_padding.x * 2.0f - button_sz), bb.Min.y); + + // Close Button & Unsaved Marker + // We are relying on a subtle and confusing distinction between 'hovered' and 'g.HoveredId' which happens because we are using ImGuiButtonFlags_AllowOverlapMode + SetItemAllowOverlap() + // 'hovered' will be true when hovering the Tab but NOT when hovering the close button + // 'g.HoveredId==id' will be true when hovering the Tab including when hovering the close button + // 'g.ActiveId==close_button_id' will be true when we are holding on the close button, in which case both hovered booleans are false + bool close_button_pressed = false; + bool close_button_visible = false; + if (close_button_id != 0) + if (is_contents_visible || bb.GetWidth() >= ImMax(button_sz, g.Style.TabMinWidthForCloseButton)) + if (g.HoveredId == tab_id || g.HoveredId == close_button_id || g.ActiveId == tab_id || g.ActiveId == close_button_id) + close_button_visible = true; + bool unsaved_marker_visible = (flags & ImGuiTabItemFlags_UnsavedDocument) != 0 && (button_pos.x + button_sz <= bb.Max.x); + + if (close_button_visible) + { + ImGuiLastItemData last_item_backup = g.LastItemData; + PushStyleVar(ImGuiStyleVar_FramePadding, frame_padding); + if (CloseButton(close_button_id, button_pos)) + close_button_pressed = true; + PopStyleVar(); + g.LastItemData = last_item_backup; + + // Close with middle mouse button + if (!(flags & ImGuiTabItemFlags_NoCloseWithMiddleMouseButton) && IsMouseClicked(2)) + close_button_pressed = true; + } + else if (unsaved_marker_visible) + { + const ImRect bullet_bb(button_pos, button_pos + ImVec2(button_sz, button_sz) + g.Style.FramePadding * 2.0f); + RenderBullet(draw_list, bullet_bb.GetCenter(), GetColorU32(ImGuiCol_Text)); + } + + // This is all rather complicated + // (the main idea is that because the close button only appears on hover, we don't want it to alter the ellipsis position) + // FIXME: if FramePadding is noticeably large, ellipsis_max_x will be wrong here (e.g. #3497), maybe for consistency that parameter of RenderTextEllipsis() shouldn't exist.. + float ellipsis_max_x = close_button_visible ? text_pixel_clip_bb.Max.x : bb.Max.x - 1.0f; + if (close_button_visible || unsaved_marker_visible) + { + text_pixel_clip_bb.Max.x -= close_button_visible ? (button_sz) : (button_sz * 0.80f); + text_ellipsis_clip_bb.Max.x -= unsaved_marker_visible ? (button_sz * 0.80f) : 0.0f; + ellipsis_max_x = text_pixel_clip_bb.Max.x; + } + RenderTextEllipsis(draw_list, text_ellipsis_clip_bb.Min, text_ellipsis_clip_bb.Max, text_pixel_clip_bb.Max.x, ellipsis_max_x, label, NULL, &label_size); + +#if 0 + if (!is_contents_visible) + g.Style.Alpha = backup_alpha; +#endif + + if (out_just_closed) + *out_just_closed = close_button_pressed; +} + + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_rectpack.h b/imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_rectpack.h new file mode 100644 index 000000000..f6917e7a6 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_rectpack.h @@ -0,0 +1,627 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_rect_pack.h 1.01. +// Grep for [DEAR IMGUI] to find the changes. +// +// stb_rect_pack.h - v1.01 - public domain - rectangle packing +// Sean Barrett 2014 +// +// Useful for e.g. packing rectangular textures into an atlas. +// Does not do rotation. +// +// Before #including, +// +// #define STB_RECT_PACK_IMPLEMENTATION +// +// in the file that you want to have the implementation. +// +// Not necessarily the awesomest packing method, but better than +// the totally naive one in stb_truetype (which is primarily what +// this is meant to replace). +// +// Has only had a few tests run, may have issues. +// +// More docs to come. +// +// No memory allocations; uses qsort() and assert() from stdlib. +// Can override those by defining STBRP_SORT and STBRP_ASSERT. +// +// This library currently uses the Skyline Bottom-Left algorithm. +// +// Please note: better rectangle packers are welcome! Please +// implement them to the same API, but with a different init +// function. +// +// Credits +// +// Library +// Sean Barrett +// Minor features +// Martins Mozeiko +// github:IntellectualKitty +// +// Bugfixes / warning fixes +// Jeremy Jaussaud +// Fabian Giesen +// +// Version history: +// +// 1.01 (2021-07-11) always use large rect mode, expose STBRP__MAXVAL in public section +// 1.00 (2019-02-25) avoid small space waste; gracefully fail too-wide rectangles +// 0.99 (2019-02-07) warning fixes +// 0.11 (2017-03-03) return packing success/fail result +// 0.10 (2016-10-25) remove cast-away-const to avoid warnings +// 0.09 (2016-08-27) fix compiler warnings +// 0.08 (2015-09-13) really fix bug with empty rects (w=0 or h=0) +// 0.07 (2015-09-13) fix bug with empty rects (w=0 or h=0) +// 0.06 (2015-04-15) added STBRP_SORT to allow replacing qsort +// 0.05: added STBRP_ASSERT to allow replacing assert +// 0.04: fixed minor bug in STBRP_LARGE_RECTS support +// 0.01: initial release +// +// LICENSE +// +// See end of file for license information. + +////////////////////////////////////////////////////////////////////////////// +// +// INCLUDE SECTION +// + +#ifndef STB_INCLUDE_STB_RECT_PACK_H +#define STB_INCLUDE_STB_RECT_PACK_H + +#define STB_RECT_PACK_VERSION 1 + +#ifdef STBRP_STATIC +#define STBRP_DEF static +#else +#define STBRP_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct stbrp_context stbrp_context; +typedef struct stbrp_node stbrp_node; +typedef struct stbrp_rect stbrp_rect; + +typedef int stbrp_coord; + +#define STBRP__MAXVAL 0x7fffffff +// Mostly for internal use, but this is the maximum supported coordinate value. + +STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); +// Assign packed locations to rectangles. The rectangles are of type +// 'stbrp_rect' defined below, stored in the array 'rects', and there +// are 'num_rects' many of them. +// +// Rectangles which are successfully packed have the 'was_packed' flag +// set to a non-zero value and 'x' and 'y' store the minimum location +// on each axis (i.e. bottom-left in cartesian coordinates, top-left +// if you imagine y increasing downwards). Rectangles which do not fit +// have the 'was_packed' flag set to 0. +// +// You should not try to access the 'rects' array from another thread +// while this function is running, as the function temporarily reorders +// the array while it executes. +// +// To pack into another rectangle, you need to call stbrp_init_target +// again. To continue packing into the same rectangle, you can call +// this function again. Calling this multiple times with multiple rect +// arrays will probably produce worse packing results than calling it +// a single time with the full rectangle array, but the option is +// available. +// +// The function returns 1 if all of the rectangles were successfully +// packed and 0 otherwise. + +struct stbrp_rect +{ + // reserved for your use: + int id; + + // input: + stbrp_coord w, h; + + // output: + stbrp_coord x, y; + int was_packed; // non-zero if valid packing + +}; // 16 bytes, nominally + + +STBRP_DEF void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes); +// Initialize a rectangle packer to: +// pack a rectangle that is 'width' by 'height' in dimensions +// using temporary storage provided by the array 'nodes', which is 'num_nodes' long +// +// You must call this function every time you start packing into a new target. +// +// There is no "shutdown" function. The 'nodes' memory must stay valid for +// the following stbrp_pack_rects() call (or calls), but can be freed after +// the call (or calls) finish. +// +// Note: to guarantee best results, either: +// 1. make sure 'num_nodes' >= 'width' +// or 2. call stbrp_allow_out_of_mem() defined below with 'allow_out_of_mem = 1' +// +// If you don't do either of the above things, widths will be quantized to multiples +// of small integers to guarantee the algorithm doesn't run out of temporary storage. +// +// If you do #2, then the non-quantized algorithm will be used, but the algorithm +// may run out of temporary storage and be unable to pack some rectangles. + +STBRP_DEF void stbrp_setup_allow_out_of_mem (stbrp_context *context, int allow_out_of_mem); +// Optionally call this function after init but before doing any packing to +// change the handling of the out-of-temp-memory scenario, described above. +// If you call init again, this will be reset to the default (false). + + +STBRP_DEF void stbrp_setup_heuristic (stbrp_context *context, int heuristic); +// Optionally select which packing heuristic the library should use. Different +// heuristics will produce better/worse results for different data sets. +// If you call init again, this will be reset to the default. + +enum +{ + STBRP_HEURISTIC_Skyline_default=0, + STBRP_HEURISTIC_Skyline_BL_sortHeight = STBRP_HEURISTIC_Skyline_default, + STBRP_HEURISTIC_Skyline_BF_sortHeight +}; + + +////////////////////////////////////////////////////////////////////////////// +// +// the details of the following structures don't matter to you, but they must +// be visible so you can handle the memory allocations for them + +struct stbrp_node +{ + stbrp_coord x,y; + stbrp_node *next; +}; + +struct stbrp_context +{ + int width; + int height; + int align; + int init_mode; + int heuristic; + int num_nodes; + stbrp_node *active_head; + stbrp_node *free_head; + stbrp_node extra[2]; // we allocate two extra nodes so optimal user-node-count is 'width' not 'width+2' +}; + +#ifdef __cplusplus +} +#endif + +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// IMPLEMENTATION SECTION +// + +#ifdef STB_RECT_PACK_IMPLEMENTATION +#ifndef STBRP_SORT +#include +#define STBRP_SORT qsort +#endif + +#ifndef STBRP_ASSERT +#include +#define STBRP_ASSERT assert +#endif + +#ifdef _MSC_VER +#define STBRP__NOTUSED(v) (void)(v) +#define STBRP__CDECL __cdecl +#else +#define STBRP__NOTUSED(v) (void)sizeof(v) +#define STBRP__CDECL +#endif + +enum +{ + STBRP__INIT_skyline = 1 +}; + +STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic) +{ + switch (context->init_mode) { + case STBRP__INIT_skyline: + STBRP_ASSERT(heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight || heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight); + context->heuristic = heuristic; + break; + default: + STBRP_ASSERT(0); + } +} + +STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem) +{ + if (allow_out_of_mem) + // if it's ok to run out of memory, then don't bother aligning them; + // this gives better packing, but may fail due to OOM (even though + // the rectangles easily fit). @TODO a smarter approach would be to only + // quantize once we've hit OOM, then we could get rid of this parameter. + context->align = 1; + else { + // if it's not ok to run out of memory, then quantize the widths + // so that num_nodes is always enough nodes. + // + // I.e. num_nodes * align >= width + // align >= width / num_nodes + // align = ceil(width/num_nodes) + + context->align = (context->width + context->num_nodes-1) / context->num_nodes; + } +} + +STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) +{ + int i; + + for (i=0; i < num_nodes-1; ++i) + nodes[i].next = &nodes[i+1]; + nodes[i].next = NULL; + context->init_mode = STBRP__INIT_skyline; + context->heuristic = STBRP_HEURISTIC_Skyline_default; + context->free_head = &nodes[0]; + context->active_head = &context->extra[0]; + context->width = width; + context->height = height; + context->num_nodes = num_nodes; + stbrp_setup_allow_out_of_mem(context, 0); + + // node 0 is the full width, node 1 is the sentinel (lets us not store width explicitly) + context->extra[0].x = 0; + context->extra[0].y = 0; + context->extra[0].next = &context->extra[1]; + context->extra[1].x = (stbrp_coord) width; + context->extra[1].y = (1<<30); + context->extra[1].next = NULL; +} + +// find minimum y position if it starts at x1 +static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste) +{ + stbrp_node *node = first; + int x1 = x0 + width; + int min_y, visited_width, waste_area; + + STBRP__NOTUSED(c); + + STBRP_ASSERT(first->x <= x0); + + #if 0 + // skip in case we're past the node + while (node->next->x <= x0) + ++node; + #else + STBRP_ASSERT(node->next->x > x0); // we ended up handling this in the caller for efficiency + #endif + + STBRP_ASSERT(node->x <= x0); + + min_y = 0; + waste_area = 0; + visited_width = 0; + while (node->x < x1) { + if (node->y > min_y) { + // raise min_y higher. + // we've accounted for all waste up to min_y, + // but we'll now add more waste for everything we've visted + waste_area += visited_width * (node->y - min_y); + min_y = node->y; + // the first time through, visited_width might be reduced + if (node->x < x0) + visited_width += node->next->x - x0; + else + visited_width += node->next->x - node->x; + } else { + // add waste area + int under_width = node->next->x - node->x; + if (under_width + visited_width > width) + under_width = width - visited_width; + waste_area += under_width * (min_y - node->y); + visited_width += under_width; + } + node = node->next; + } + + *pwaste = waste_area; + return min_y; +} + +typedef struct +{ + int x,y; + stbrp_node **prev_link; +} stbrp__findresult; + +static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height) +{ + int best_waste = (1<<30), best_x, best_y = (1 << 30); + stbrp__findresult fr; + stbrp_node **prev, *node, *tail, **best = NULL; + + // align to multiple of c->align + width = (width + c->align - 1); + width -= width % c->align; + STBRP_ASSERT(width % c->align == 0); + + // if it can't possibly fit, bail immediately + if (width > c->width || height > c->height) { + fr.prev_link = NULL; + fr.x = fr.y = 0; + return fr; + } + + node = c->active_head; + prev = &c->active_head; + while (node->x + width <= c->width) { + int y,waste; + y = stbrp__skyline_find_min_y(c, node, node->x, width, &waste); + if (c->heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight) { // actually just want to test BL + // bottom left + if (y < best_y) { + best_y = y; + best = prev; + } + } else { + // best-fit + if (y + height <= c->height) { + // can only use it if it first vertically + if (y < best_y || (y == best_y && waste < best_waste)) { + best_y = y; + best_waste = waste; + best = prev; + } + } + } + prev = &node->next; + node = node->next; + } + + best_x = (best == NULL) ? 0 : (*best)->x; + + // if doing best-fit (BF), we also have to try aligning right edge to each node position + // + // e.g, if fitting + // + // ____________________ + // |____________________| + // + // into + // + // | | + // | ____________| + // |____________| + // + // then right-aligned reduces waste, but bottom-left BL is always chooses left-aligned + // + // This makes BF take about 2x the time + + if (c->heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight) { + tail = c->active_head; + node = c->active_head; + prev = &c->active_head; + // find first node that's admissible + while (tail->x < width) + tail = tail->next; + while (tail) { + int xpos = tail->x - width; + int y,waste; + STBRP_ASSERT(xpos >= 0); + // find the left position that matches this + while (node->next->x <= xpos) { + prev = &node->next; + node = node->next; + } + STBRP_ASSERT(node->next->x > xpos && node->x <= xpos); + y = stbrp__skyline_find_min_y(c, node, xpos, width, &waste); + if (y + height <= c->height) { + if (y <= best_y) { + if (y < best_y || waste < best_waste || (waste==best_waste && xpos < best_x)) { + best_x = xpos; + //STBRP_ASSERT(y <= best_y); [DEAR IMGUI] + best_y = y; + best_waste = waste; + best = prev; + } + } + } + tail = tail->next; + } + } + + fr.prev_link = best; + fr.x = best_x; + fr.y = best_y; + return fr; +} + +static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height) +{ + // find best position according to heuristic + stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height); + stbrp_node *node, *cur; + + // bail if: + // 1. it failed + // 2. the best node doesn't fit (we don't always check this) + // 3. we're out of memory + if (res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) { + res.prev_link = NULL; + return res; + } + + // on success, create new node + node = context->free_head; + node->x = (stbrp_coord) res.x; + node->y = (stbrp_coord) (res.y + height); + + context->free_head = node->next; + + // insert the new node into the right starting point, and + // let 'cur' point to the remaining nodes needing to be + // stiched back in + + cur = *res.prev_link; + if (cur->x < res.x) { + // preserve the existing one, so start testing with the next one + stbrp_node *next = cur->next; + cur->next = node; + cur = next; + } else { + *res.prev_link = node; + } + + // from here, traverse cur and free the nodes, until we get to one + // that shouldn't be freed + while (cur->next && cur->next->x <= res.x + width) { + stbrp_node *next = cur->next; + // move the current node to the free list + cur->next = context->free_head; + context->free_head = cur; + cur = next; + } + + // stitch the list back in + node->next = cur; + + if (cur->x < res.x + width) + cur->x = (stbrp_coord) (res.x + width); + +#ifdef _DEBUG + cur = context->active_head; + while (cur->x < context->width) { + STBRP_ASSERT(cur->x < cur->next->x); + cur = cur->next; + } + STBRP_ASSERT(cur->next == NULL); + + { + int count=0; + cur = context->active_head; + while (cur) { + cur = cur->next; + ++count; + } + cur = context->free_head; + while (cur) { + cur = cur->next; + ++count; + } + STBRP_ASSERT(count == context->num_nodes+2); + } +#endif + + return res; +} + +static int STBRP__CDECL rect_height_compare(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + if (p->h > q->h) + return -1; + if (p->h < q->h) + return 1; + return (p->w > q->w) ? -1 : (p->w < q->w); +} + +static int STBRP__CDECL rect_original_order(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); +} + +STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) +{ + int i, all_rects_packed = 1; + + // we use the 'was_packed' field internally to allow sorting/unsorting + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = i; + } + + // sort according to heuristic + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); + + for (i=0; i < num_rects; ++i) { + if (rects[i].w == 0 || rects[i].h == 0) { + rects[i].x = rects[i].y = 0; // empty rect needs no space + } else { + stbrp__findresult fr = stbrp__skyline_pack_rectangle(context, rects[i].w, rects[i].h); + if (fr.prev_link) { + rects[i].x = (stbrp_coord) fr.x; + rects[i].y = (stbrp_coord) fr.y; + } else { + rects[i].x = rects[i].y = STBRP__MAXVAL; + } + } + } + + // unsort + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_original_order); + + // set was_packed flags and all_rects_packed status + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = !(rects[i].x == STBRP__MAXVAL && rects[i].y == STBRP__MAXVAL); + if (!rects[i].was_packed) + all_rects_packed = 0; + } + + // return the all_rects_packed status + return all_rects_packed; +} +#endif + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_textedit.h b/imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_textedit.h new file mode 100644 index 000000000..75a159dac --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_textedit.h @@ -0,0 +1,1447 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_textedit.h 1.14. +// Those changes would need to be pushed into nothings/stb: +// - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321) +// Grep for [DEAR IMGUI] to find the changes. + +// stb_textedit.h - v1.14 - public domain - Sean Barrett +// Development of this library was sponsored by RAD Game Tools +// +// This C header file implements the guts of a multi-line text-editing +// widget; you implement display, word-wrapping, and low-level string +// insertion/deletion, and stb_textedit will map user inputs into +// insertions & deletions, plus updates to the cursor position, +// selection state, and undo state. +// +// It is intended for use in games and other systems that need to build +// their own custom widgets and which do not have heavy text-editing +// requirements (this library is not recommended for use for editing large +// texts, as its performance does not scale and it has limited undo). +// +// Non-trivial behaviors are modelled after Windows text controls. +// +// +// LICENSE +// +// See end of file for license information. +// +// +// DEPENDENCIES +// +// Uses the C runtime function 'memmove', which you can override +// by defining STB_TEXTEDIT_memmove before the implementation. +// Uses no other functions. Performs no runtime allocations. +// +// +// VERSION HISTORY +// +// 1.14 (2021-07-11) page up/down, various fixes +// 1.13 (2019-02-07) fix bug in undo size management +// 1.12 (2018-01-29) user can change STB_TEXTEDIT_KEYTYPE, fix redo to avoid crash +// 1.11 (2017-03-03) fix HOME on last line, dragging off single-line textfield +// 1.10 (2016-10-25) supress warnings about casting away const with -Wcast-qual +// 1.9 (2016-08-27) customizable move-by-word +// 1.8 (2016-04-02) better keyboard handling when mouse button is down +// 1.7 (2015-09-13) change y range handling in case baseline is non-0 +// 1.6 (2015-04-15) allow STB_TEXTEDIT_memmove +// 1.5 (2014-09-10) add support for secondary keys for OS X +// 1.4 (2014-08-17) fix signed/unsigned warnings +// 1.3 (2014-06-19) fix mouse clicking to round to nearest char boundary +// 1.2 (2014-05-27) fix some RAD types that had crept into the new code +// 1.1 (2013-12-15) move-by-word (requires STB_TEXTEDIT_IS_SPACE ) +// 1.0 (2012-07-26) improve documentation, initial public release +// 0.3 (2012-02-24) bugfixes, single-line mode; insert mode +// 0.2 (2011-11-28) fixes to undo/redo +// 0.1 (2010-07-08) initial version +// +// ADDITIONAL CONTRIBUTORS +// +// Ulf Winklemann: move-by-word in 1.1 +// Fabian Giesen: secondary key inputs in 1.5 +// Martins Mozeiko: STB_TEXTEDIT_memmove in 1.6 +// Louis Schnellbach: page up/down in 1.14 +// +// Bugfixes: +// Scott Graham +// Daniel Keller +// Omar Cornut +// Dan Thompson +// +// USAGE +// +// This file behaves differently depending on what symbols you define +// before including it. +// +// +// Header-file mode: +// +// If you do not define STB_TEXTEDIT_IMPLEMENTATION before including this, +// it will operate in "header file" mode. In this mode, it declares a +// single public symbol, STB_TexteditState, which encapsulates the current +// state of a text widget (except for the string, which you will store +// separately). +// +// To compile in this mode, you must define STB_TEXTEDIT_CHARTYPE to a +// primitive type that defines a single character (e.g. char, wchar_t, etc). +// +// To save space or increase undo-ability, you can optionally define the +// following things that are used by the undo system: +// +// STB_TEXTEDIT_POSITIONTYPE small int type encoding a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// If you don't define these, they are set to permissive types and +// moderate sizes. The undo system does no memory allocations, so +// it grows STB_TexteditState by the worst-case storage which is (in bytes): +// +// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATECOUNT +// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHARCOUNT +// +// +// Implementation mode: +// +// If you define STB_TEXTEDIT_IMPLEMENTATION before including this, it +// will compile the implementation of the text edit widget, depending +// on a large number of symbols which must be defined before the include. +// +// The implementation is defined only as static functions. You will then +// need to provide your own APIs in the same file which will access the +// static functions. +// +// The basic concept is that you provide a "string" object which +// behaves like an array of characters. stb_textedit uses indices to +// refer to positions in the string, implicitly representing positions +// in the displayed textedit. This is true for both plain text and +// rich text; even with rich text stb_truetype interacts with your +// code as if there was an array of all the displayed characters. +// +// Symbols that must be the same in header-file and implementation mode: +// +// STB_TEXTEDIT_CHARTYPE the character type +// STB_TEXTEDIT_POSITIONTYPE small type that is a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// Symbols you must define for implementation mode: +// +// STB_TEXTEDIT_STRING the type of object representing a string being edited, +// typically this is a wrapper object with other data you need +// +// STB_TEXTEDIT_STRINGLEN(obj) the length of the string (ideally O(1)) +// STB_TEXTEDIT_LAYOUTROW(&r,obj,n) returns the results of laying out a line of characters +// starting from character #n (see discussion below) +// STB_TEXTEDIT_GETWIDTH(obj,n,i) returns the pixel delta from the xpos of the i'th character +// to the xpos of the i+1'th char for a line of characters +// starting at character #n (i.e. accounts for kerning +// with previous char) +// STB_TEXTEDIT_KEYTOTEXT(k) maps a keyboard input to an insertable character +// (return type is int, -1 means not valid to insert) +// STB_TEXTEDIT_GETCHAR(obj,i) returns the i'th character of obj, 0-based +// STB_TEXTEDIT_NEWLINE the character returned by _GETCHAR() we recognize +// as manually wordwrapping for end-of-line positioning +// +// STB_TEXTEDIT_DELETECHARS(obj,i,n) delete n characters starting at i +// STB_TEXTEDIT_INSERTCHARS(obj,i,c*,n) insert n characters at i (pointed to by STB_TEXTEDIT_CHARTYPE*) +// +// STB_TEXTEDIT_K_SHIFT a power of two that is or'd in to a keyboard input to represent the shift key +// +// STB_TEXTEDIT_K_LEFT keyboard input to move cursor left +// STB_TEXTEDIT_K_RIGHT keyboard input to move cursor right +// STB_TEXTEDIT_K_UP keyboard input to move cursor up +// STB_TEXTEDIT_K_DOWN keyboard input to move cursor down +// STB_TEXTEDIT_K_PGUP keyboard input to move cursor up a page +// STB_TEXTEDIT_K_PGDOWN keyboard input to move cursor down a page +// STB_TEXTEDIT_K_LINESTART keyboard input to move cursor to start of line // e.g. HOME +// STB_TEXTEDIT_K_LINEEND keyboard input to move cursor to end of line // e.g. END +// STB_TEXTEDIT_K_TEXTSTART keyboard input to move cursor to start of text // e.g. ctrl-HOME +// STB_TEXTEDIT_K_TEXTEND keyboard input to move cursor to end of text // e.g. ctrl-END +// STB_TEXTEDIT_K_DELETE keyboard input to delete selection or character under cursor +// STB_TEXTEDIT_K_BACKSPACE keyboard input to delete selection or character left of cursor +// STB_TEXTEDIT_K_UNDO keyboard input to perform undo +// STB_TEXTEDIT_K_REDO keyboard input to perform redo +// +// Optional: +// STB_TEXTEDIT_K_INSERT keyboard input to toggle insert mode +// STB_TEXTEDIT_IS_SPACE(ch) true if character is whitespace (e.g. 'isspace'), +// required for default WORDLEFT/WORDRIGHT handlers +// STB_TEXTEDIT_MOVEWORDLEFT(obj,i) custom handler for WORDLEFT, returns index to move cursor to +// STB_TEXTEDIT_MOVEWORDRIGHT(obj,i) custom handler for WORDRIGHT, returns index to move cursor to +// STB_TEXTEDIT_K_WORDLEFT keyboard input to move cursor left one word // e.g. ctrl-LEFT +// STB_TEXTEDIT_K_WORDRIGHT keyboard input to move cursor right one word // e.g. ctrl-RIGHT +// STB_TEXTEDIT_K_LINESTART2 secondary keyboard input to move cursor to start of line +// STB_TEXTEDIT_K_LINEEND2 secondary keyboard input to move cursor to end of line +// STB_TEXTEDIT_K_TEXTSTART2 secondary keyboard input to move cursor to start of text +// STB_TEXTEDIT_K_TEXTEND2 secondary keyboard input to move cursor to end of text +// +// Keyboard input must be encoded as a single integer value; e.g. a character code +// and some bitflags that represent shift states. to simplify the interface, SHIFT must +// be a bitflag, so we can test the shifted state of cursor movements to allow selection, +// i.e. (STB_TEXTEDIT_K_RIGHT|STB_TEXTEDIT_K_SHIFT) should be shifted right-arrow. +// +// You can encode other things, such as CONTROL or ALT, in additional bits, and +// then test for their presence in e.g. STB_TEXTEDIT_K_WORDLEFT. For example, +// my Windows implementations add an additional CONTROL bit, and an additional KEYDOWN +// bit. Then all of the STB_TEXTEDIT_K_ values bitwise-or in the KEYDOWN bit, +// and I pass both WM_KEYDOWN and WM_CHAR events to the "key" function in the +// API below. The control keys will only match WM_KEYDOWN events because of the +// keydown bit I add, and STB_TEXTEDIT_KEYTOTEXT only tests for the KEYDOWN +// bit so it only decodes WM_CHAR events. +// +// STB_TEXTEDIT_LAYOUTROW returns information about the shape of one displayed +// row of characters assuming they start on the i'th character--the width and +// the height and the number of characters consumed. This allows this library +// to traverse the entire layout incrementally. You need to compute word-wrapping +// here. +// +// Each textfield keeps its own insert mode state, which is not how normal +// applications work. To keep an app-wide insert mode, update/copy the +// "insert_mode" field of STB_TexteditState before/after calling API functions. +// +// API +// +// void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +// +// void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +// int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +// void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXEDIT_KEYTYPE key) +// +// Each of these functions potentially updates the string and updates the +// state. +// +// initialize_state: +// set the textedit state to a known good default state when initially +// constructing the textedit. +// +// click: +// call this with the mouse x,y on a mouse down; it will update the cursor +// and reset the selection start/end to the cursor point. the x,y must +// be relative to the text widget, with (0,0) being the top left. +// +// drag: +// call this with the mouse x,y on a mouse drag/up; it will update the +// cursor and the selection end point +// +// cut: +// call this to delete the current selection; returns true if there was +// one. you should FIRST copy the current selection to the system paste buffer. +// (To copy, just copy the current selection out of the string yourself.) +// +// paste: +// call this to paste text at the current cursor point or over the current +// selection if there is one. +// +// key: +// call this for keyboard inputs sent to the textfield. you can use it +// for "key down" events or for "translated" key events. if you need to +// do both (as in Win32), or distinguish Unicode characters from control +// inputs, set a high bit to distinguish the two; then you can define the +// various definitions like STB_TEXTEDIT_K_LEFT have the is-key-event bit +// set, and make STB_TEXTEDIT_KEYTOCHAR check that the is-key-event bit is +// clear. STB_TEXTEDIT_KEYTYPE defaults to int, but you can #define it to +// anything other type you wante before including. +// +// +// When rendering, you can read the cursor position and selection state from +// the STB_TexteditState. +// +// +// Notes: +// +// This is designed to be usable in IMGUI, so it allows for the possibility of +// running in an IMGUI that has NOT cached the multi-line layout. For this +// reason, it provides an interface that is compatible with computing the +// layout incrementally--we try to make sure we make as few passes through +// as possible. (For example, to locate the mouse pointer in the text, we +// could define functions that return the X and Y positions of characters +// and binary search Y and then X, but if we're doing dynamic layout this +// will run the layout algorithm many times, so instead we manually search +// forward in one pass. Similar logic applies to e.g. up-arrow and +// down-arrow movement.) +// +// If it's run in a widget that *has* cached the layout, then this is less +// efficient, but it's not horrible on modern computers. But you wouldn't +// want to edit million-line files with it. + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Header-file mode +//// +//// + +#ifndef INCLUDE_STB_TEXTEDIT_H +#define INCLUDE_STB_TEXTEDIT_H + +//////////////////////////////////////////////////////////////////////// +// +// STB_TexteditState +// +// Definition of STB_TexteditState which you should store +// per-textfield; it includes cursor position, selection state, +// and undo state. +// + +#ifndef STB_TEXTEDIT_UNDOSTATECOUNT +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#endif +#ifndef STB_TEXTEDIT_UNDOCHARCOUNT +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#endif +#ifndef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_CHARTYPE int +#endif +#ifndef STB_TEXTEDIT_POSITIONTYPE +#define STB_TEXTEDIT_POSITIONTYPE int +#endif + +typedef struct +{ + // private data + STB_TEXTEDIT_POSITIONTYPE where; + STB_TEXTEDIT_POSITIONTYPE insert_length; + STB_TEXTEDIT_POSITIONTYPE delete_length; + int char_storage; +} StbUndoRecord; + +typedef struct +{ + // private data + StbUndoRecord undo_rec [STB_TEXTEDIT_UNDOSTATECOUNT]; + STB_TEXTEDIT_CHARTYPE undo_char[STB_TEXTEDIT_UNDOCHARCOUNT]; + short undo_point, redo_point; + int undo_char_point, redo_char_point; +} StbUndoState; + +typedef struct +{ + ///////////////////// + // + // public data + // + + int cursor; + // position of the text cursor within the string + + int select_start; // selection start point + int select_end; + // selection start and end point in characters; if equal, no selection. + // note that start may be less than or greater than end (e.g. when + // dragging the mouse, start is where the initial click was, and you + // can drag in either direction) + + unsigned char insert_mode; + // each textfield keeps its own insert mode state. to keep an app-wide + // insert mode, copy this value in/out of the app state + + int row_count_per_page; + // page size in number of row. + // this value MUST be set to >0 for pageup or pagedown in multilines documents. + + ///////////////////// + // + // private data + // + unsigned char cursor_at_end_of_line; // not implemented yet + unsigned char initialized; + unsigned char has_preferred_x; + unsigned char single_line; + unsigned char padding1, padding2, padding3; + float preferred_x; // this determines where the cursor up/down tries to seek to along x + StbUndoState undostate; +} STB_TexteditState; + + +//////////////////////////////////////////////////////////////////////// +// +// StbTexteditRow +// +// Result of layout query, used by stb_textedit to determine where +// the text in each row is. + +// result of layout query +typedef struct +{ + float x0,x1; // starting x location, end x location (allows for align=right, etc) + float baseline_y_delta; // position of baseline relative to previous row's baseline + float ymin,ymax; // height of row above and below baseline + int num_chars; +} StbTexteditRow; +#endif //INCLUDE_STB_TEXTEDIT_H + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Implementation mode +//// +//// + + +// implementation isn't include-guarded, since it might have indirectly +// included just the "header" portion +#ifdef STB_TEXTEDIT_IMPLEMENTATION + +#ifndef STB_TEXTEDIT_memmove +#include +#define STB_TEXTEDIT_memmove memmove +#endif + + +///////////////////////////////////////////////////////////////////////////// +// +// Mouse input handling +// + +// traverse the layout to locate the nearest character to a display position +static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y) +{ + StbTexteditRow r; + int n = STB_TEXTEDIT_STRINGLEN(str); + float base_y = 0, prev_x; + int i=0, k; + + r.x0 = r.x1 = 0; + r.ymin = r.ymax = 0; + r.num_chars = 0; + + // search rows to find one that straddles 'y' + while (i < n) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (r.num_chars <= 0) + return n; + + if (i==0 && y < base_y + r.ymin) + return 0; + + if (y < base_y + r.ymax) + break; + + i += r.num_chars; + base_y += r.baseline_y_delta; + } + + // below all text, return 'after' last character + if (i >= n) + return n; + + // check if it's before the beginning of the line + if (x < r.x0) + return i; + + // check if it's before the end of the line + if (x < r.x1) { + // search characters in row for one that straddles 'x' + prev_x = r.x0; + for (k=0; k < r.num_chars; ++k) { + float w = STB_TEXTEDIT_GETWIDTH(str, i, k); + if (x < prev_x+w) { + if (x < prev_x+w/2) + return k+i; + else + return k+i+1; + } + prev_x += w; + } + // shouldn't happen, but if it does, fall through to end-of-line case + } + + // if the last character is a newline, return that. otherwise return 'after' the last character + if (STB_TEXTEDIT_GETCHAR(str, i+r.num_chars-1) == STB_TEXTEDIT_NEWLINE) + return i+r.num_chars-1; + else + return i+r.num_chars; +} + +// API click: on mouse down, move the cursor to the clicked location, and reset the selection +static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + state->cursor = stb_text_locate_coord(str, x, y); + state->select_start = state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; +} + +// API drag: on mouse drag, move the cursor and selection endpoint to the clicked location +static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + int p = 0; + + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + if (state->select_start == state->select_end) + state->select_start = state->cursor; + + p = stb_text_locate_coord(str, x, y); + state->cursor = state->select_end = p; +} + +///////////////////////////////////////////////////////////////////////////// +// +// Keyboard input handling +// + +// forward declarations +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length); + +typedef struct +{ + float x,y; // position of n'th character + float height; // height of line + int first_char, length; // first char of row, and length + int prev_first; // first char of previous row +} StbFindState; + +// find the x/y location of a character, and remember info about the previous row in +// case we get a move-up event (for page up, we'll have to rescan) +static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line) +{ + StbTexteditRow r; + int prev_start = 0; + int z = STB_TEXTEDIT_STRINGLEN(str); + int i=0, first; + + if (n == z) { + // if it's at the end, then find the last line -- simpler than trying to + // explicitly handle this case in the regular code + if (single_line) { + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + find->y = 0; + find->first_char = 0; + find->length = z; + find->height = r.ymax - r.ymin; + find->x = r.x1; + } else { + find->y = 0; + find->x = 0; + find->height = 1; + while (i < z) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + prev_start = i; + i += r.num_chars; + } + find->first_char = i; + find->length = 0; + find->prev_first = prev_start; + } + return; + } + + // search rows to find the one that straddles character n + find->y = 0; + + for(;;) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (n < i + r.num_chars) + break; + prev_start = i; + i += r.num_chars; + find->y += r.baseline_y_delta; + } + + find->first_char = first = i; + find->length = r.num_chars; + find->height = r.ymax - r.ymin; + find->prev_first = prev_start; + + // now scan to find xpos + find->x = r.x0; + for (i=0; first+i < n; ++i) + find->x += STB_TEXTEDIT_GETWIDTH(str, first, i); +} + +#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end) + +// make the selection/cursor state valid if client altered the string +static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + int n = STB_TEXTEDIT_STRINGLEN(str); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start > n) state->select_start = n; + if (state->select_end > n) state->select_end = n; + // if clamping forced them to be equal, move the cursor to match + if (state->select_start == state->select_end) + state->cursor = state->select_start; + } + if (state->cursor > n) state->cursor = n; +} + +// delete characters while updating undo +static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len) +{ + stb_text_makeundo_delete(str, state, where, len); + STB_TEXTEDIT_DELETECHARS(str, where, len); + state->has_preferred_x = 0; +} + +// delete the section +static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + stb_textedit_clamp(str, state); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start < state->select_end) { + stb_textedit_delete(str, state, state->select_start, state->select_end - state->select_start); + state->select_end = state->cursor = state->select_start; + } else { + stb_textedit_delete(str, state, state->select_end, state->select_start - state->select_end); + state->select_start = state->cursor = state->select_end; + } + state->has_preferred_x = 0; + } +} + +// canoncialize the selection so start <= end +static void stb_textedit_sortselection(STB_TexteditState *state) +{ + if (state->select_end < state->select_start) { + int temp = state->select_end; + state->select_end = state->select_start; + state->select_start = temp; + } +} + +// move cursor to first character of selection +static void stb_textedit_move_to_first(STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + state->cursor = state->select_start; + state->select_end = state->select_start; + state->has_preferred_x = 0; + } +} + +// move cursor to last character of selection +static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->select_start = state->select_end; + state->has_preferred_x = 0; + } +} + +#ifdef STB_TEXTEDIT_IS_SPACE +static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx ) +{ + return idx > 0 ? (STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str,idx-1) ) && !STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str, idx) ) ) : 1; +} + +#ifndef STB_TEXTEDIT_MOVEWORDLEFT +static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c ) +{ + --c; // always move at least one character + while( c >= 0 && !is_word_boundary( str, c ) ) + --c; + + if( c < 0 ) + c = 0; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDLEFT stb_textedit_move_to_word_previous +#endif + +#ifndef STB_TEXTEDIT_MOVEWORDRIGHT +static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c ) +{ + const int len = STB_TEXTEDIT_STRINGLEN(str); + ++c; // always move at least one character + while( c < len && !is_word_boundary( str, c ) ) + ++c; + + if( c > len ) + c = len; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDRIGHT stb_textedit_move_to_word_next +#endif + +#endif + +// update selection and cursor to match each other +static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state) +{ + if (!STB_TEXT_HAS_SELECTION(state)) + state->select_start = state->select_end = state->cursor; + else + state->cursor = state->select_end; +} + +// API cut: delete selection +static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_delete_selection(str,state); // implicitly clamps + state->has_preferred_x = 0; + return 1; + } + return 0; +} + +// API paste: replace existing selection with passed-in text +static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +{ + // if there's a selection, the paste should delete it + stb_textedit_clamp(str, state); + stb_textedit_delete_selection(str,state); + // try to insert the characters + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, text, len)) { + stb_text_makeundo_insert(state, state->cursor, len); + state->cursor += len; + state->has_preferred_x = 0; + return 1; + } + // note: paste failure will leave deleted selection, may be restored with an undo (see https://github.com/nothings/stb/issues/734 for details) + return 0; +} + +#ifndef STB_TEXTEDIT_KEYTYPE +#define STB_TEXTEDIT_KEYTYPE int +#endif + +// API key: process a keyboard input +static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key) +{ +retry: + switch (key) { + default: { + int c = STB_TEXTEDIT_KEYTOTEXT(key); + if (c > 0) { + STB_TEXTEDIT_CHARTYPE ch = (STB_TEXTEDIT_CHARTYPE) c; + + // can't add newline in single-line mode + if (c == '\n' && state->single_line) + break; + + if (state->insert_mode && !STB_TEXT_HAS_SELECTION(state) && state->cursor < STB_TEXTEDIT_STRINGLEN(str)) { + stb_text_makeundo_replace(str, state, state->cursor, 1, 1); + STB_TEXTEDIT_DELETECHARS(str, state->cursor, 1); + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + ++state->cursor; + state->has_preferred_x = 0; + } + } else { + stb_textedit_delete_selection(str,state); // implicitly clamps + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + stb_text_makeundo_insert(state, state->cursor, 1); + ++state->cursor; + state->has_preferred_x = 0; + } + } + } + break; + } + +#ifdef STB_TEXTEDIT_K_INSERT + case STB_TEXTEDIT_K_INSERT: + state->insert_mode = !state->insert_mode; + break; +#endif + + case STB_TEXTEDIT_K_UNDO: + stb_text_undo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_REDO: + stb_text_redo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT: + // if currently there's a selection, move cursor to start of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else + if (state->cursor > 0) + --state->cursor; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_RIGHT: + // if currently there's a selection, move cursor to end of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else + ++state->cursor; + stb_textedit_clamp(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + // move selection left + if (state->select_end > 0) + --state->select_end; + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_MOVEWORDLEFT + case STB_TEXTEDIT_K_WORDLEFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + +#ifdef STB_TEXTEDIT_MOVEWORDRIGHT + case STB_TEXTEDIT_K_WORDRIGHT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + + case STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + // move selection right + ++state->select_end; + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_DOWN: + case STB_TEXTEDIT_K_DOWN | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGDOWN: + case STB_TEXTEDIT_K_PGDOWN | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGDOWN; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down in single-line behave like left&right + key = STB_TEXTEDIT_K_RIGHT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + int start = find.first_char + find.length; + + if (find.length == 0) + break; + + // [DEAR IMGUI] + // going down while being on the last line shouldn't bring us to that line end + if (STB_TEXTEDIT_GETCHAR(str, find.first_char + find.length - 1) != STB_TEXTEDIT_NEWLINE) + break; + + // now find character position down a row + state->cursor = start; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, start, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to next line + find.first_char = find.first_char + find.length; + find.length = row.num_chars; + } + break; + } + + case STB_TEXTEDIT_K_UP: + case STB_TEXTEDIT_K_UP | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGUP: + case STB_TEXTEDIT_K_PGUP | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, prev_scan, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGUP; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down become left&right + key = STB_TEXTEDIT_K_LEFT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + + // can only go up if there's a previous row + if (find.prev_first == find.first_char) + break; + + // now find character position up a row + state->cursor = find.prev_first; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, find.prev_first, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to previous line + // (we need to scan previous line the hard way. maybe we could expose this as a new API function?) + prev_scan = find.prev_first > 0 ? find.prev_first - 1 : 0; + while (prev_scan > 0 && STB_TEXTEDIT_GETCHAR(str, prev_scan - 1) != STB_TEXTEDIT_NEWLINE) + --prev_scan; + find.first_char = find.prev_first; + find.prev_first = prev_scan; + } + break; + } + + case STB_TEXTEDIT_K_DELETE: + case STB_TEXTEDIT_K_DELETE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + int n = STB_TEXTEDIT_STRINGLEN(str); + if (state->cursor < n) + stb_textedit_delete(str, state, state->cursor, 1); + } + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_BACKSPACE: + case STB_TEXTEDIT_K_BACKSPACE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + stb_textedit_clamp(str, state); + if (state->cursor > 0) { + stb_textedit_delete(str, state, state->cursor-1, 1); + --state->cursor; + } + } + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2: +#endif + case STB_TEXTEDIT_K_TEXTSTART: + state->cursor = state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2: +#endif + case STB_TEXTEDIT_K_TEXTEND: + state->cursor = STB_TEXTEDIT_STRINGLEN(str); + state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTSTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTEND | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = STB_TEXTEDIT_STRINGLEN(str); + state->has_preferred_x = 0; + break; + + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2: +#endif + case STB_TEXTEDIT_K_LINESTART: + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2: +#endif + case STB_TEXTEDIT_K_LINEEND: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->has_preferred_x = 0; + break; + } + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + } + } +} + +///////////////////////////////////////////////////////////////////////////// +// +// Undo processing +// +// @OPTIMIZE: the undo/redo buffer should be circular + +static void stb_textedit_flush_redo(StbUndoState *state) +{ + state->redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; +} + +// discard the oldest entry in the undo list +static void stb_textedit_discard_undo(StbUndoState *state) +{ + if (state->undo_point > 0) { + // if the 0th undo state has characters, clean those up + if (state->undo_rec[0].char_storage >= 0) { + int n = state->undo_rec[0].insert_length, i; + // delete n characters from all other records + state->undo_char_point -= n; + STB_TEXTEDIT_memmove(state->undo_char, state->undo_char + n, (size_t) (state->undo_char_point*sizeof(STB_TEXTEDIT_CHARTYPE))); + for (i=0; i < state->undo_point; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage -= n; // @OPTIMIZE: get rid of char_storage and infer it + } + --state->undo_point; + STB_TEXTEDIT_memmove(state->undo_rec, state->undo_rec+1, (size_t) (state->undo_point*sizeof(state->undo_rec[0]))); + } +} + +// discard the oldest entry in the redo list--it's bad if this +// ever happens, but because undo & redo have to store the actual +// characters in different cases, the redo character buffer can +// fill up even though the undo buffer didn't +static void stb_textedit_discard_redo(StbUndoState *state) +{ + int k = STB_TEXTEDIT_UNDOSTATECOUNT-1; + + if (state->redo_point <= k) { + // if the k'th undo state has characters, clean those up + if (state->undo_rec[k].char_storage >= 0) { + int n = state->undo_rec[k].insert_length, i; + // move the remaining redo character data to the end of the buffer + state->redo_char_point += n; + STB_TEXTEDIT_memmove(state->undo_char + state->redo_char_point, state->undo_char + state->redo_char_point-n, (size_t) ((STB_TEXTEDIT_UNDOCHARCOUNT - state->redo_char_point)*sizeof(STB_TEXTEDIT_CHARTYPE))); + // adjust the position of all the other records to account for above memmove + for (i=state->redo_point; i < k; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage += n; + } + // now move all the redo records towards the end of the buffer; the first one is at 'redo_point' + // [DEAR IMGUI] + size_t move_size = (size_t)((STB_TEXTEDIT_UNDOSTATECOUNT - state->redo_point - 1) * sizeof(state->undo_rec[0])); + const char* buf_begin = (char*)state->undo_rec; (void)buf_begin; + const char* buf_end = (char*)state->undo_rec + sizeof(state->undo_rec); (void)buf_end; + IM_ASSERT(((char*)(state->undo_rec + state->redo_point)) >= buf_begin); + IM_ASSERT(((char*)(state->undo_rec + state->redo_point + 1) + move_size) <= buf_end); + STB_TEXTEDIT_memmove(state->undo_rec + state->redo_point+1, state->undo_rec + state->redo_point, move_size); + + // now move redo_point to point to the new one + ++state->redo_point; + } +} + +static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars) +{ + // any time we create a new undo record, we discard redo + stb_textedit_flush_redo(state); + + // if we have no free records, we have to make room, by sliding the + // existing records down + if (state->undo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + stb_textedit_discard_undo(state); + + // if the characters to store won't possibly fit in the buffer, we can't undo + if (numchars > STB_TEXTEDIT_UNDOCHARCOUNT) { + state->undo_point = 0; + state->undo_char_point = 0; + return NULL; + } + + // if we don't have enough free characters in the buffer, we have to make room + while (state->undo_char_point + numchars > STB_TEXTEDIT_UNDOCHARCOUNT) + stb_textedit_discard_undo(state); + + return &state->undo_rec[state->undo_point++]; +} + +static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len) +{ + StbUndoRecord *r = stb_text_create_undo_record(state, insert_len); + if (r == NULL) + return NULL; + + r->where = pos; + r->insert_length = (STB_TEXTEDIT_POSITIONTYPE) insert_len; + r->delete_length = (STB_TEXTEDIT_POSITIONTYPE) delete_len; + + if (insert_len == 0) { + r->char_storage = -1; + return NULL; + } else { + r->char_storage = state->undo_char_point; + state->undo_char_point += insert_len; + return &state->undo_char[r->char_storage]; + } +} + +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord u, *r; + if (s->undo_point == 0) + return; + + // we need to do two things: apply the undo record, and create a redo record + u = s->undo_rec[s->undo_point-1]; + r = &s->undo_rec[s->redo_point-1]; + r->char_storage = -1; + + r->insert_length = u.delete_length; + r->delete_length = u.insert_length; + r->where = u.where; + + if (u.delete_length) { + // if the undo record says to delete characters, then the redo record will + // need to re-insert the characters that get deleted, so we need to store + // them. + + // there are three cases: + // there's enough room to store the characters + // characters stored for *redoing* don't leave room for redo + // characters stored for *undoing* don't leave room for redo + // if the last is true, we have to bail + + if (s->undo_char_point + u.delete_length >= STB_TEXTEDIT_UNDOCHARCOUNT) { + // the undo records take up too much character space; there's no space to store the redo characters + r->insert_length = 0; + } else { + int i; + + // there's definitely room to store the characters eventually + while (s->undo_char_point + u.delete_length > s->redo_char_point) { + // should never happen: + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + // there's currently not enough room, so discard a redo record + stb_textedit_discard_redo(s); + } + r = &s->undo_rec[s->redo_point-1]; + + r->char_storage = s->redo_char_point - u.delete_length; + s->redo_char_point = s->redo_char_point - u.delete_length; + + // now save the characters + for (i=0; i < u.delete_length; ++i) + s->undo_char[r->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u.where + i); + } + + // now we can carry out the deletion + STB_TEXTEDIT_DELETECHARS(str, u.where, u.delete_length); + } + + // check type of recorded action: + if (u.insert_length) { + // easy case: was a deletion, so we need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, u.where, &s->undo_char[u.char_storage], u.insert_length); + s->undo_char_point -= u.insert_length; + } + + state->cursor = u.where + u.insert_length; + + s->undo_point--; + s->redo_point--; +} + +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord *u, r; + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + + // we need to do two things: apply the redo record, and create an undo record + u = &s->undo_rec[s->undo_point]; + r = s->undo_rec[s->redo_point]; + + // we KNOW there must be room for the undo record, because the redo record + // was derived from an undo record + + u->delete_length = r.insert_length; + u->insert_length = r.delete_length; + u->where = r.where; + u->char_storage = -1; + + if (r.delete_length) { + // the redo record requires us to delete characters, so the undo record + // needs to store the characters + + if (s->undo_char_point + u->insert_length > s->redo_char_point) { + u->insert_length = 0; + u->delete_length = 0; + } else { + int i; + u->char_storage = s->undo_char_point; + s->undo_char_point = s->undo_char_point + u->insert_length; + + // now save the characters + for (i=0; i < u->insert_length; ++i) + s->undo_char[u->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u->where + i); + } + + STB_TEXTEDIT_DELETECHARS(str, r.where, r.delete_length); + } + + if (r.insert_length) { + // easy case: need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, r.where, &s->undo_char[r.char_storage], r.insert_length); + s->redo_char_point += r.insert_length; + } + + state->cursor = r.where + r.insert_length; + + s->undo_point++; + s->redo_point++; +} + +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length) +{ + stb_text_createundo(&state->undostate, where, 0, length); +} + +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, length, 0); + if (p) { + for (i=0; i < length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, old_length, new_length); + if (p) { + for (i=0; i < old_length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +// reset the state to default +static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line) +{ + state->undostate.undo_point = 0; + state->undostate.undo_char_point = 0; + state->undostate.redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->undostate.redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; + state->select_end = state->select_start = 0; + state->cursor = 0; + state->has_preferred_x = 0; + state->preferred_x = 0; + state->cursor_at_end_of_line = 0; + state->initialized = 1; + state->single_line = (unsigned char) is_single_line; + state->insert_mode = 0; + state->row_count_per_page = 0; +} + +// API initialize +static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +{ + stb_textedit_clear_state(state, is_single_line); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len) +{ + return stb_textedit_paste_internal(str, state, (STB_TEXTEDIT_CHARTYPE *) ctext, len); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif//STB_TEXTEDIT_IMPLEMENTATION + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_truetype.h b/imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_truetype.h new file mode 100644 index 000000000..643d37899 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/imstb_truetype.h @@ -0,0 +1,5085 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_truetype.h 1.26. +// Mostly fixing for compiler and static analyzer warnings. +// Grep for [DEAR IMGUI] to find the changes. + +// stb_truetype.h - v1.26 - public domain +// authored from 2009-2021 by Sean Barrett / RAD Game Tools +// +// ======================================================================= +// +// NO SECURITY GUARANTEE -- DO NOT USE THIS ON UNTRUSTED FONT FILES +// +// This library does no range checking of the offsets found in the file, +// meaning an attacker can use it to read arbitrary memory. +// +// ======================================================================= +// +// This library processes TrueType files: +// parse files +// extract glyph metrics +// extract glyph shapes +// render glyphs to one-channel bitmaps with antialiasing (box filter) +// render glyphs to one-channel SDF bitmaps (signed-distance field/function) +// +// Todo: +// non-MS cmaps +// crashproof on bad data +// hinting? (no longer patented) +// cleartype-style AA? +// optimize: use simple memory allocator for intermediates +// optimize: build edge-list directly from curves +// optimize: rasterize directly from curves? +// +// ADDITIONAL CONTRIBUTORS +// +// Mikko Mononen: compound shape support, more cmap formats +// Tor Andersson: kerning, subpixel rendering +// Dougall Johnson: OpenType / Type 2 font handling +// Daniel Ribeiro Maciel: basic GPOS-based kerning +// +// Misc other: +// Ryan Gordon +// Simon Glass +// github:IntellectualKitty +// Imanol Celaya +// Daniel Ribeiro Maciel +// +// Bug/warning reports/fixes: +// "Zer" on mollyrocket Fabian "ryg" Giesen github:NiLuJe +// Cass Everitt Martins Mozeiko github:aloucks +// stoiko (Haemimont Games) Cap Petschulat github:oyvindjam +// Brian Hook Omar Cornut github:vassvik +// Walter van Niftrik Ryan Griege +// David Gow Peter LaValle +// David Given Sergey Popov +// Ivan-Assen Ivanov Giumo X. Clanjor +// Anthony Pesch Higor Euripedes +// Johan Duparc Thomas Fields +// Hou Qiming Derek Vinyard +// Rob Loach Cort Stratton +// Kenney Phillis Jr. Brian Costabile +// Ken Voskuil (kaesve) +// +// VERSION HISTORY +// +// 1.26 (2021-08-28) fix broken rasterizer +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() +// 1.19 (2018-02-11) GPOS kerning, STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) user-defined fabs(); rare memory leak; remove duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use allocation userdata properly +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// variant PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// +// Full history can be found at the end of this file. +// +// LICENSE +// +// See end of file for license information. +// +// USAGE +// +// Include this file in whatever places need to refer to it. In ONE C/C++ +// file, write: +// #define STB_TRUETYPE_IMPLEMENTATION +// before the #include of this file. This expands out the actual +// implementation into that C/C++ file. +// +// To make the implementation private to the file that generates the implementation, +// #define STBTT_STATIC +// +// Simple 3D API (don't ship this, but it's fine for tools and quick start) +// stbtt_BakeFontBitmap() -- bake a font to a bitmap for use as texture +// stbtt_GetBakedQuad() -- compute quad to draw for a given char +// +// Improved 3D API (more shippable): +// #include "stb_rect_pack.h" -- optional, but you really want it +// stbtt_PackBegin() +// stbtt_PackSetOversampling() -- for improved quality on small fonts +// stbtt_PackFontRanges() -- pack and renders +// stbtt_PackEnd() +// stbtt_GetPackedQuad() +// +// "Load" a font file from a memory buffer (you have to keep the buffer loaded) +// stbtt_InitFont() +// stbtt_GetFontOffsetForIndex() -- indexing for TTC font collections +// stbtt_GetNumberOfFonts() -- number of fonts for TTC font collections +// +// Render a unicode codepoint to a bitmap +// stbtt_GetCodepointBitmap() -- allocates and returns a bitmap +// stbtt_MakeCodepointBitmap() -- renders into bitmap you provide +// stbtt_GetCodepointBitmapBox() -- how big the bitmap must be +// +// Character advance/positioning +// stbtt_GetCodepointHMetrics() +// stbtt_GetFontVMetrics() +// stbtt_GetFontVMetricsOS2() +// stbtt_GetCodepointKernAdvance() +// +// Starting with version 1.06, the rasterizer was replaced with a new, +// faster and generally-more-precise rasterizer. The new rasterizer more +// accurately measures pixel coverage for anti-aliasing, except in the case +// where multiple shapes overlap, in which case it overestimates the AA pixel +// coverage. Thus, anti-aliasing of intersecting shapes may look wrong. If +// this turns out to be a problem, you can re-enable the old rasterizer with +// #define STBTT_RASTERIZER_VERSION 1 +// which will incur about a 15% speed hit. +// +// ADDITIONAL DOCUMENTATION +// +// Immediately after this block comment are a series of sample programs. +// +// After the sample programs is the "header file" section. This section +// includes documentation for each API function. +// +// Some important concepts to understand to use this library: +// +// Codepoint +// Characters are defined by unicode codepoints, e.g. 65 is +// uppercase A, 231 is lowercase c with a cedilla, 0x7e30 is +// the hiragana for "ma". +// +// Glyph +// A visual character shape (every codepoint is rendered as +// some glyph) +// +// Glyph index +// A font-specific integer ID representing a glyph +// +// Baseline +// Glyph shapes are defined relative to a baseline, which is the +// bottom of uppercase characters. Characters extend both above +// and below the baseline. +// +// Current Point +// As you draw text to the screen, you keep track of a "current point" +// which is the origin of each character. The current point's vertical +// position is the baseline. Even "baked fonts" use this model. +// +// Vertical Font Metrics +// The vertical qualities of the font, used to vertically position +// and space the characters. See docs for stbtt_GetFontVMetrics. +// +// Font Size in Pixels or Points +// The preferred interface for specifying font sizes in stb_truetype +// is to specify how tall the font's vertical extent should be in pixels. +// If that sounds good enough, skip the next paragraph. +// +// Most font APIs instead use "points", which are a common typographic +// measurement for describing font size, defined as 72 points per inch. +// stb_truetype provides a point API for compatibility. However, true +// "per inch" conventions don't make much sense on computer displays +// since different monitors have different number of pixels per +// inch. For example, Windows traditionally uses a convention that +// there are 96 pixels per inch, thus making 'inch' measurements have +// nothing to do with inches, and thus effectively defining a point to +// be 1.333 pixels. Additionally, the TrueType font data provides +// an explicit scale factor to scale a given font's glyphs to points, +// but the author has observed that this scale factor is often wrong +// for non-commercial fonts, thus making fonts scaled in points +// according to the TrueType spec incoherently sized in practice. +// +// DETAILED USAGE: +// +// Scale: +// Select how high you want the font to be, in points or pixels. +// Call ScaleForPixelHeight or ScaleForMappingEmToPixels to compute +// a scale factor SF that will be used by all other functions. +// +// Baseline: +// You need to select a y-coordinate that is the baseline of where +// your text will appear. Call GetFontBoundingBox to get the baseline-relative +// bounding box for all characters. SF*-y0 will be the distance in pixels +// that the worst-case character could extend above the baseline, so if +// you want the top edge of characters to appear at the top of the +// screen where y=0, then you would set the baseline to SF*-y0. +// +// Current point: +// Set the current point where the first character will appear. The +// first character could extend left of the current point; this is font +// dependent. You can either choose a current point that is the leftmost +// point and hope, or add some padding, or check the bounding box or +// left-side-bearing of the first character to be displayed and set +// the current point based on that. +// +// Displaying a character: +// Compute the bounding box of the character. It will contain signed values +// relative to . I.e. if it returns x0,y0,x1,y1, +// then the character should be displayed in the rectangle from +// to = 32 && *text < 128) { + stbtt_aligned_quad q; + stbtt_GetBakedQuad(cdata, 512,512, *text-32, &x,&y,&q,1);//1=opengl & d3d10+,0=d3d9 + glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y0); + glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y0); + glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y1); + glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y1); + } + ++text; + } + glEnd(); +} +#endif +// +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program (this compiles): get a single bitmap, print as ASCII art +// +#if 0 +#include +#define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation +#include "stb_truetype.h" + +char ttf_buffer[1<<25]; + +int main(int argc, char **argv) +{ + stbtt_fontinfo font; + unsigned char *bitmap; + int w,h,i,j,c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20); + + fread(ttf_buffer, 1, 1<<25, fopen(argc > 3 ? argv[3] : "c:/windows/fonts/arialbd.ttf", "rb")); + + stbtt_InitFont(&font, ttf_buffer, stbtt_GetFontOffsetForIndex(ttf_buffer,0)); + bitmap = stbtt_GetCodepointBitmap(&font, 0,stbtt_ScaleForPixelHeight(&font, s), c, &w, &h, 0,0); + + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) + putchar(" .:ioVM@"[bitmap[j*w+i]>>5]); + putchar('\n'); + } + return 0; +} +#endif +// +// Output: +// +// .ii. +// @@@@@@. +// V@Mio@@o +// :i. V@V +// :oM@@M +// :@@@MM@M +// @@o o@M +// :@@. M@M +// @@@o@@@@ +// :M@@V:@@. +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program: print "Hello World!" banner, with bugs +// +#if 0 +char buffer[24<<20]; +unsigned char screen[20][79]; + +int main(int arg, char **argv) +{ + stbtt_fontinfo font; + int i,j,ascent,baseline,ch=0; + float scale, xpos=2; // leave a little padding in case the character extends left + char *text = "Heljo World!"; // intentionally misspelled to show 'lj' brokenness + + fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb")); + stbtt_InitFont(&font, buffer, 0); + + scale = stbtt_ScaleForPixelHeight(&font, 15); + stbtt_GetFontVMetrics(&font, &ascent,0,0); + baseline = (int) (ascent*scale); + + while (text[ch]) { + int advance,lsb,x0,y0,x1,y1; + float x_shift = xpos - (float) floor(xpos); + stbtt_GetCodepointHMetrics(&font, text[ch], &advance, &lsb); + stbtt_GetCodepointBitmapBoxSubpixel(&font, text[ch], scale,scale,x_shift,0, &x0,&y0,&x1,&y1); + stbtt_MakeCodepointBitmapSubpixel(&font, &screen[baseline + y0][(int) xpos + x0], x1-x0,y1-y0, 79, scale,scale,x_shift,0, text[ch]); + // note that this stomps the old data, so where character boxes overlap (e.g. 'lj') it's wrong + // because this API is really for baking character bitmaps into textures. if you want to render + // a sequence of characters, you really need to render each bitmap to a temp buffer, then + // "alpha blend" that into the working buffer + xpos += (advance * scale); + if (text[ch+1]) + xpos += scale*stbtt_GetCodepointKernAdvance(&font, text[ch],text[ch+1]); + ++ch; + } + + for (j=0; j < 20; ++j) { + for (i=0; i < 78; ++i) + putchar(" .:ioVM@"[screen[j][i]>>5]); + putchar('\n'); + } + + return 0; +} +#endif + + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// +//// +//// INTEGRATION WITH YOUR CODEBASE +//// +//// The following sections allow you to supply alternate definitions +//// of C library functions used by stb_truetype, e.g. if you don't +//// link with the C runtime library. + +#ifdef STB_TRUETYPE_IMPLEMENTATION + // #define your own (u)stbtt_int8/16/32 before including to override this + #ifndef stbtt_uint8 + typedef unsigned char stbtt_uint8; + typedef signed char stbtt_int8; + typedef unsigned short stbtt_uint16; + typedef signed short stbtt_int16; + typedef unsigned int stbtt_uint32; + typedef signed int stbtt_int32; + #endif + + typedef char stbtt__check_size32[sizeof(stbtt_int32)==4 ? 1 : -1]; + typedef char stbtt__check_size16[sizeof(stbtt_int16)==2 ? 1 : -1]; + + // e.g. #define your own STBTT_ifloor/STBTT_iceil() to avoid math.h + #ifndef STBTT_ifloor + #include + #define STBTT_ifloor(x) ((int) floor(x)) + #define STBTT_iceil(x) ((int) ceil(x)) + #endif + + #ifndef STBTT_sqrt + #include + #define STBTT_sqrt(x) sqrt(x) + #define STBTT_pow(x,y) pow(x,y) + #endif + + #ifndef STBTT_fmod + #include + #define STBTT_fmod(x,y) fmod(x,y) + #endif + + #ifndef STBTT_cos + #include + #define STBTT_cos(x) cos(x) + #define STBTT_acos(x) acos(x) + #endif + + #ifndef STBTT_fabs + #include + #define STBTT_fabs(x) fabs(x) + #endif + + // #define your own functions "STBTT_malloc" / "STBTT_free" to avoid malloc.h + #ifndef STBTT_malloc + #include + #define STBTT_malloc(x,u) ((void)(u),malloc(x)) + #define STBTT_free(x,u) ((void)(u),free(x)) + #endif + + #ifndef STBTT_assert + #include + #define STBTT_assert(x) assert(x) + #endif + + #ifndef STBTT_strlen + #include + #define STBTT_strlen(x) strlen(x) + #endif + + #ifndef STBTT_memcpy + #include + #define STBTT_memcpy memcpy + #define STBTT_memset memset + #endif +#endif + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// INTERFACE +//// +//// + +#ifndef __STB_INCLUDE_STB_TRUETYPE_H__ +#define __STB_INCLUDE_STB_TRUETYPE_H__ + +#ifdef STBTT_STATIC +#define STBTT_DEF static +#else +#define STBTT_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +// private structure +typedef struct +{ + unsigned char *data; + int cursor; + int size; +} stbtt__buf; + +////////////////////////////////////////////////////////////////////////////// +// +// TEXTURE BAKING API +// +// If you use this API, you only have to call two functions ever. +// + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; +} stbtt_bakedchar; + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata); // you allocate this, it's num_chars long +// if return is positive, the first unused row of the bitmap +// if return is negative, returns the negative of the number of characters that fit +// if return is 0, no characters fit and no rows were used +// This uses a very crappy packing. + +typedef struct +{ + float x0,y0,s0,t0; // top-left + float x1,y1,s1,t1; // bottom-right +} stbtt_aligned_quad; + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int opengl_fillrule); // true if opengl fill rule; false if DX9 or earlier +// Call GetBakedQuad with char_index = 'character - first_char', and it +// creates the quad you need to draw and advances the current position. +// +// The coordinate system used assumes y increases downwards. +// +// Characters will extend both above and below the current position; +// see discussion of "BASELINE" above. +// +// It's inefficient; you might want to c&p it and optimize it. + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap); +// Query the font vertical metrics without having to create a font first. + + +////////////////////////////////////////////////////////////////////////////// +// +// NEW TEXTURE BAKING API +// +// This provides options for packing multiple fonts into one atlas, not +// perfectly but better than nothing. + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; + float xoff2,yoff2; +} stbtt_packedchar; + +typedef struct stbtt_pack_context stbtt_pack_context; +typedef struct stbtt_fontinfo stbtt_fontinfo; +#ifndef STB_RECT_PACK_VERSION +typedef struct stbrp_rect stbrp_rect; +#endif + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context); +// Initializes a packing context stored in the passed-in stbtt_pack_context. +// Future calls using this context will pack characters into the bitmap passed +// in here: a 1-channel bitmap that is width * height. stride_in_bytes is +// the distance from one row to the next (or 0 to mean they are packed tightly +// together). "padding" is the amount of padding to leave between each +// character (normally you want '1' for bitmaps you'll use as textures with +// bilinear filtering). +// +// Returns 0 on failure, 1 on success. + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc); +// Cleans up the packing context and frees all memory. + +#define STBTT_POINT_SIZE(x) (-(x)) + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_char_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range); +// Creates character bitmaps from the font_index'th font found in fontdata (use +// font_index=0 if you don't know what that is). It creates num_chars_in_range +// bitmaps for characters with unicode values starting at first_unicode_char_in_range +// and increasing. Data for how to render them is stored in chardata_for_range; +// pass these to stbtt_GetPackedQuad to get back renderable quads. +// +// font_size is the full height of the character from ascender to descender, +// as computed by stbtt_ScaleForPixelHeight. To use a point size as computed +// by stbtt_ScaleForMappingEmToPixels, wrap the point size in STBTT_POINT_SIZE() +// and pass that result as 'font_size': +// ..., 20 , ... // font max minus min y is 20 pixels tall +// ..., STBTT_POINT_SIZE(20), ... // 'M' is 20 pixels tall + +typedef struct +{ + float font_size; + int first_unicode_codepoint_in_range; // if non-zero, then the chars are continuous, and this is the first codepoint + int *array_of_unicode_codepoints; // if non-zero, then this is an array of unicode codepoints + int num_chars; + stbtt_packedchar *chardata_for_range; // output + unsigned char h_oversample, v_oversample; // don't set these, they're used internally +} stbtt_pack_range; + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges); +// Creates character bitmaps from multiple ranges of characters stored in +// ranges. This will usually create a better-packed bitmap than multiple +// calls to stbtt_PackFontRange. Note that you can call this multiple +// times within a single PackBegin/PackEnd. + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample); +// Oversampling a font increases the quality by allowing higher-quality subpixel +// positioning, and is especially valuable at smaller text sizes. +// +// This function sets the amount of oversampling for all following calls to +// stbtt_PackFontRange(s) or stbtt_PackFontRangesGatherRects for a given +// pack context. The default (no oversampling) is achieved by h_oversample=1 +// and v_oversample=1. The total number of pixels required is +// h_oversample*v_oversample larger than the default; for example, 2x2 +// oversampling requires 4x the storage of 1x1. For best results, render +// oversampled textures with bilinear filtering. Look at the readme in +// stb/tests/oversample for information about oversampled fonts +// +// To use with PackFontRangesGather etc., you must set it before calls +// call to PackFontRangesGatherRects. + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip); +// If skip != 0, this tells stb_truetype to skip any codepoints for which +// there is no corresponding glyph. If skip=0, which is the default, then +// codepoints without a glyph recived the font's "missing character" glyph, +// typically an empty box by convention. + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int align_to_integer); + +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects); +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +// Calling these functions in sequence is roughly equivalent to calling +// stbtt_PackFontRanges(). If you more control over the packing of multiple +// fonts, or if you want to pack custom data into a font texture, take a look +// at the source to of stbtt_PackFontRanges() and create a custom version +// using these functions, e.g. call GatherRects multiple times, +// building up a single array of rects, then call PackRects once, +// then call RenderIntoRects repeatedly. This may result in a +// better packing than calling PackFontRanges multiple times +// (or it may not). + +// this is an opaque structure that you shouldn't mess with which holds +// all the context needed from PackBegin to PackEnd. +struct stbtt_pack_context { + void *user_allocator_context; + void *pack_info; + int width; + int height; + int stride_in_bytes; + int padding; + int skip_missing; + unsigned int h_oversample, v_oversample; + unsigned char *pixels; + void *nodes; +}; + +////////////////////////////////////////////////////////////////////////////// +// +// FONT LOADING +// +// + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data); +// This function will determine the number of fonts in a font file. TrueType +// collection (.ttc) files may contain multiple fonts, while TrueType font +// (.ttf) files only contain one font. The number of fonts can be used for +// indexing with the previous function where the index is between zero and one +// less than the total fonts. If an error occurs, -1 is returned. + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index); +// Each .ttf/.ttc file may have more than one font. Each font has a sequential +// index number starting from 0. Call this function to get the font offset for +// a given index; it returns -1 if the index is out of range. A regular .ttf +// file will only define one font and it always be at offset 0, so it will +// return '0' for index 0, and -1 for all other indices. + +// The following structure is defined publicly so you can declare one on +// the stack or as a global or etc, but you should treat it as opaque. +struct stbtt_fontinfo +{ + void * userdata; + unsigned char * data; // pointer to .ttf file + int fontstart; // offset of start of font + + int numGlyphs; // number of glyphs, needed for range checking + + int loca,head,glyf,hhea,hmtx,kern,gpos,svg; // table locations as offset from start of .ttf + int index_map; // a cmap mapping for our chosen character encoding + int indexToLocFormat; // format needed to map from glyph index to glyph + + stbtt__buf cff; // cff font data + stbtt__buf charstrings; // the charstring index + stbtt__buf gsubrs; // global charstring subroutines index + stbtt__buf subrs; // private charstring subroutines index + stbtt__buf fontdicts; // array of font dicts + stbtt__buf fdselect; // map from glyph to fontdict +}; + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset); +// Given an offset into the file that defines a font, this function builds +// the necessary cached info for the rest of the system. You must allocate +// the stbtt_fontinfo yourself, and stbtt_InitFont will fill it out. You don't +// need to do anything special to free it, because the contents are pure +// value data with no additional data structures. Returns 0 on failure. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER TO GLYPH-INDEX CONVERSIOn + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint); +// If you're going to perform multiple operations on the same character +// and you want a speed-up, call this function with the character you're +// going to process, then use glyph-based functions instead of the +// codepoint-based functions. +// Returns 0 if the character codepoint is not defined in the font. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER PROPERTIES +// + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose "height" is 'pixels' tall. +// Height is measured as the distance from the highest ascender to the lowest +// descender; in other words, it's equivalent to calling stbtt_GetFontVMetrics +// and computing: +// scale = pixels / (ascent - descent) +// so if you prefer to measure height by the ascent only, use a similar calculation. + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose EM size is mapped to +// 'pixels' tall. This is probably what traditional APIs compute, but +// I'm not positive. + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap); +// ascent is the coordinate above the baseline the font extends; descent +// is the coordinate below the baseline the font extends (i.e. it is typically negative) +// lineGap is the spacing between one row's descent and the next row's ascent... +// so you should advance the vertical position by "*ascent - *descent + *lineGap" +// these are expressed in unscaled coordinates, so you must multiply by +// the scale factor for a given size + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap); +// analogous to GetFontVMetrics, but returns the "typographic" values from the OS/2 +// table (specific to MS/Windows TTF files). +// +// Returns 1 on success (table present), 0 on failure. + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1); +// the bounding box around all possible characters + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing); +// leftSideBearing is the offset from the current horizontal position to the left edge of the character +// advanceWidth is the offset from the current horizontal position to the next horizontal position +// these are expressed in unscaled coordinates + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2); +// an additional amount to add to the 'advance' value between ch1 and ch2 + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1); +// Gets the bounding box of the visible part of the glyph, in unscaled coordinates + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing); +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2); +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); +// as above, but takes one or more glyph indices for greater efficiency + +typedef struct stbtt_kerningentry +{ + int glyph1; // use stbtt_FindGlyphIndex + int glyph2; + int advance; +} stbtt_kerningentry; + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info); +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length); +// Retrieves a complete list of all of the kerning pairs provided by the font +// stbtt_GetKerningTable never writes more than table_length entries and returns how many entries it did write. +// The table will be sorted by (a.glyph1 == b.glyph1)?(a.glyph2 < b.glyph2):(a.glyph1 < b.glyph1) + +////////////////////////////////////////////////////////////////////////////// +// +// GLYPH SHAPES (you probably don't need these, but they have to go before +// the bitmaps for C declaration-order reasons) +// + +#ifndef STBTT_vmove // you can predefine these to use different values (but why?) + enum { + STBTT_vmove=1, + STBTT_vline, + STBTT_vcurve, + STBTT_vcubic + }; +#endif + +#ifndef stbtt_vertex // you can predefine this to use different values + // (we share this with other code at RAD) + #define stbtt_vertex_type short // can't use stbtt_int16 because that's not visible in the header file + typedef struct + { + stbtt_vertex_type x,y,cx,cy,cx1,cy1; + unsigned char type,padding; + } stbtt_vertex; +#endif + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index); +// returns non-zero if nothing is drawn for this glyph + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices); +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices); +// returns # of vertices and fills *vertices with the pointer to them +// these are expressed in "unscaled" coordinates +// +// The shape is a series of contours. Each one starts with +// a STBTT_moveto, then consists of a series of mixed +// STBTT_lineto and STBTT_curveto segments. A lineto +// draws a line from previous endpoint to its x,y; a curveto +// draws a quadratic bezier from previous endpoint to +// its x,y, using cx,cy as the bezier control point. + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices); +// frees the data allocated above + +STBTT_DEF unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl); +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg); +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg); +// fills svg with the character's SVG data. +// returns data size or 0 if SVG not found. + +////////////////////////////////////////////////////////////////////////////// +// +// BITMAP RENDERING +// + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata); +// frees the bitmap allocated below + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// allocates a large-enough single-channel 8bpp bitmap and renders the +// specified character/glyph at the specified scale into it, with +// antialiasing. 0 is no coverage (transparent), 255 is fully covered (opaque). +// *width & *height are filled out with the width & height of the bitmap, +// which is stored left-to-right, top-to-bottom. +// +// xoff/yoff are the offset it pixel space from the glyph origin to the top-left of the bitmap + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// the same as stbtt_GetCodepoitnBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint); +// the same as stbtt_GetCodepointBitmap, but you pass in storage for the bitmap +// in the form of 'output', with row spacing of 'out_stride' bytes. the bitmap +// is clipped to out_w/out_h bytes. Call stbtt_GetCodepointBitmapBox to get the +// width and height and positioning info for it first. + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint); +// same as stbtt_MakeCodepointBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint); +// same as stbtt_MakeCodepointBitmapSubpixel, but prefiltering +// is performed (see stbtt_PackSetOversampling) + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +// get the bbox of the bitmap centered around the glyph origin; so the +// bitmap width is ix1-ix0, height is iy1-iy0, and location to place +// the bitmap top left is (leftSideBearing*scale,iy0). +// (Note that the bitmap uses y-increases-down, but the shape uses +// y-increases-up, so CodepointBitmapBox and CodepointBox are inverted.) + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); +// same as stbtt_GetCodepointBitmapBox, but you can specify a subpixel +// shift for the character + +// the following functions are equivalent to the above functions, but operate +// on glyph indices instead of Unicode codepoints (for efficiency) +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph); +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); + + +// @TODO: don't expose this structure +typedef struct +{ + int w,h,stride; + unsigned char *pixels; +} stbtt__bitmap; + +// rasterize a shape with quadratic beziers into a bitmap +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, // 1-channel bitmap to draw into + float flatness_in_pixels, // allowable error of curve in pixels + stbtt_vertex *vertices, // array of vertices defining shape + int num_verts, // number of vertices in above array + float scale_x, float scale_y, // scale applied to input vertices + float shift_x, float shift_y, // translation applied to input vertices + int x_off, int y_off, // another translation applied to input + int invert, // if non-zero, vertically flip shape + void *userdata); // context for to STBTT_MALLOC + +////////////////////////////////////////////////////////////////////////////// +// +// Signed Distance Function (or Field) rendering + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata); +// frees the SDF bitmap allocated below + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +// These functions compute a discretized SDF field for a single character, suitable for storing +// in a single-channel texture, sampling with bilinear filtering, and testing against +// larger than some threshold to produce scalable fonts. +// info -- the font +// scale -- controls the size of the resulting SDF bitmap, same as it would be creating a regular bitmap +// glyph/codepoint -- the character to generate the SDF for +// padding -- extra "pixels" around the character which are filled with the distance to the character (not 0), +// which allows effects like bit outlines +// onedge_value -- value 0-255 to test the SDF against to reconstruct the character (i.e. the isocontour of the character) +// pixel_dist_scale -- what value the SDF should increase by when moving one SDF "pixel" away from the edge (on the 0..255 scale) +// if positive, > onedge_value is inside; if negative, < onedge_value is inside +// width,height -- output height & width of the SDF bitmap (including padding) +// xoff,yoff -- output origin of the character +// return value -- a 2D array of bytes 0..255, width*height in size +// +// pixel_dist_scale & onedge_value are a scale & bias that allows you to make +// optimal use of the limited 0..255 for your application, trading off precision +// and special effects. SDF values outside the range 0..255 are clamped to 0..255. +// +// Example: +// scale = stbtt_ScaleForPixelHeight(22) +// padding = 5 +// onedge_value = 180 +// pixel_dist_scale = 180/5.0 = 36.0 +// +// This will create an SDF bitmap in which the character is about 22 pixels +// high but the whole bitmap is about 22+5+5=32 pixels high. To produce a filled +// shape, sample the SDF at each pixel and fill the pixel if the SDF value +// is greater than or equal to 180/255. (You'll actually want to antialias, +// which is beyond the scope of this example.) Additionally, you can compute +// offset outlines (e.g. to stroke the character border inside & outside, +// or only outside). For example, to fill outside the character up to 3 SDF +// pixels, you would compare against (180-36.0*3)/255 = 72/255. The above +// choice of variables maps a range from 5 pixels outside the shape to +// 2 pixels inside the shape to 0..255; this is intended primarily for apply +// outside effects only (the interior range is needed to allow proper +// antialiasing of the font at *smaller* sizes) +// +// The function computes the SDF analytically at each SDF pixel, not by e.g. +// building a higher-res bitmap and approximating it. In theory the quality +// should be as high as possible for an SDF of this size & representation, but +// unclear if this is true in practice (perhaps building a higher-res bitmap +// and computing from that can allow drop-out prevention). +// +// The algorithm has not been optimized at all, so expect it to be slow +// if computing lots of characters or very large sizes. + + + +////////////////////////////////////////////////////////////////////////////// +// +// Finding the right font... +// +// You should really just solve this offline, keep your own tables +// of what font is what, and don't try to get it out of the .ttf file. +// That's because getting it out of the .ttf file is really hard, because +// the names in the file can appear in many possible encodings, in many +// possible languages, and e.g. if you need a case-insensitive comparison, +// the details of that depend on the encoding & language in a complex way +// (actually underspecified in truetype, but also gigantic). +// +// But you can use the provided functions in two possible ways: +// stbtt_FindMatchingFont() will use *case-sensitive* comparisons on +// unicode-encoded names to try to find the font you want; +// you can run this before calling stbtt_InitFont() +// +// stbtt_GetFontNameString() lets you get any of the various strings +// from the file yourself and do your own comparisons on them. +// You have to have called stbtt_InitFont() first. + + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags); +// returns the offset (not index) of the font that matches, or -1 if none +// if you use STBTT_MACSTYLE_DONTCARE, use a font name like "Arial Bold". +// if you use any other flag, use a font name like "Arial"; this checks +// the 'macStyle' header field; i don't know if fonts set this consistently +#define STBTT_MACSTYLE_DONTCARE 0 +#define STBTT_MACSTYLE_BOLD 1 +#define STBTT_MACSTYLE_ITALIC 2 +#define STBTT_MACSTYLE_UNDERSCORE 4 +#define STBTT_MACSTYLE_NONE 8 // <= not same as 0, this makes us check the bitfield is 0 + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2); +// returns 1/0 whether the first string interpreted as utf8 is identical to +// the second string interpreted as big-endian utf16... useful for strings from next func + +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID); +// returns the string (which may be big-endian double byte, e.g. for unicode) +// and puts the length in bytes in *length. +// +// some of the values for the IDs are below; for more see the truetype spec: +// http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6name.html +// http://www.microsoft.com/typography/otspec/name.htm + +enum { // platformID + STBTT_PLATFORM_ID_UNICODE =0, + STBTT_PLATFORM_ID_MAC =1, + STBTT_PLATFORM_ID_ISO =2, + STBTT_PLATFORM_ID_MICROSOFT =3 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_UNICODE + STBTT_UNICODE_EID_UNICODE_1_0 =0, + STBTT_UNICODE_EID_UNICODE_1_1 =1, + STBTT_UNICODE_EID_ISO_10646 =2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP=3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL=4 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MICROSOFT + STBTT_MS_EID_SYMBOL =0, + STBTT_MS_EID_UNICODE_BMP =1, + STBTT_MS_EID_SHIFTJIS =2, + STBTT_MS_EID_UNICODE_FULL =10 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MAC; same as Script Manager codes + STBTT_MAC_EID_ROMAN =0, STBTT_MAC_EID_ARABIC =4, + STBTT_MAC_EID_JAPANESE =1, STBTT_MAC_EID_HEBREW =5, + STBTT_MAC_EID_CHINESE_TRAD =2, STBTT_MAC_EID_GREEK =6, + STBTT_MAC_EID_KOREAN =3, STBTT_MAC_EID_RUSSIAN =7 +}; + +enum { // languageID for STBTT_PLATFORM_ID_MICROSOFT; same as LCID... + // problematic because there are e.g. 16 english LCIDs and 16 arabic LCIDs + STBTT_MS_LANG_ENGLISH =0x0409, STBTT_MS_LANG_ITALIAN =0x0410, + STBTT_MS_LANG_CHINESE =0x0804, STBTT_MS_LANG_JAPANESE =0x0411, + STBTT_MS_LANG_DUTCH =0x0413, STBTT_MS_LANG_KOREAN =0x0412, + STBTT_MS_LANG_FRENCH =0x040c, STBTT_MS_LANG_RUSSIAN =0x0419, + STBTT_MS_LANG_GERMAN =0x0407, STBTT_MS_LANG_SPANISH =0x0409, + STBTT_MS_LANG_HEBREW =0x040d, STBTT_MS_LANG_SWEDISH =0x041D +}; + +enum { // languageID for STBTT_PLATFORM_ID_MAC + STBTT_MAC_LANG_ENGLISH =0 , STBTT_MAC_LANG_JAPANESE =11, + STBTT_MAC_LANG_ARABIC =12, STBTT_MAC_LANG_KOREAN =23, + STBTT_MAC_LANG_DUTCH =4 , STBTT_MAC_LANG_RUSSIAN =32, + STBTT_MAC_LANG_FRENCH =1 , STBTT_MAC_LANG_SPANISH =6 , + STBTT_MAC_LANG_GERMAN =2 , STBTT_MAC_LANG_SWEDISH =5 , + STBTT_MAC_LANG_HEBREW =10, STBTT_MAC_LANG_CHINESE_SIMPLIFIED =33, + STBTT_MAC_LANG_ITALIAN =3 , STBTT_MAC_LANG_CHINESE_TRAD =19 +}; + +#ifdef __cplusplus +} +#endif + +#endif // __STB_INCLUDE_STB_TRUETYPE_H__ + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// IMPLEMENTATION +//// +//// + +#ifdef STB_TRUETYPE_IMPLEMENTATION + +#ifndef STBTT_MAX_OVERSAMPLE +#define STBTT_MAX_OVERSAMPLE 8 +#endif + +#if STBTT_MAX_OVERSAMPLE > 255 +#error "STBTT_MAX_OVERSAMPLE cannot be > 255" +#endif + +typedef int stbtt__test_oversample_pow2[(STBTT_MAX_OVERSAMPLE & (STBTT_MAX_OVERSAMPLE-1)) == 0 ? 1 : -1]; + +#ifndef STBTT_RASTERIZER_VERSION +#define STBTT_RASTERIZER_VERSION 2 +#endif + +#ifdef _MSC_VER +#define STBTT__NOTUSED(v) (void)(v) +#else +#define STBTT__NOTUSED(v) (void)sizeof(v) +#endif + +////////////////////////////////////////////////////////////////////////// +// +// stbtt__buf helpers to parse data from file +// + +static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b) +{ + if (b->cursor >= b->size) + return 0; + return b->data[b->cursor++]; +} + +static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b) +{ + if (b->cursor >= b->size) + return 0; + return b->data[b->cursor]; +} + +static void stbtt__buf_seek(stbtt__buf *b, int o) +{ + STBTT_assert(!(o > b->size || o < 0)); + b->cursor = (o > b->size || o < 0) ? b->size : o; +} + +static void stbtt__buf_skip(stbtt__buf *b, int o) +{ + stbtt__buf_seek(b, b->cursor + o); +} + +static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n) +{ + stbtt_uint32 v = 0; + int i; + STBTT_assert(n >= 1 && n <= 4); + for (i = 0; i < n; i++) + v = (v << 8) | stbtt__buf_get8(b); + return v; +} + +static stbtt__buf stbtt__new_buf(const void *p, size_t size) +{ + stbtt__buf r; + STBTT_assert(size < 0x40000000); + r.data = (stbtt_uint8*) p; + r.size = (int) size; + r.cursor = 0; + return r; +} + +#define stbtt__buf_get16(b) stbtt__buf_get((b), 2) +#define stbtt__buf_get32(b) stbtt__buf_get((b), 4) + +static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s) +{ + stbtt__buf r = stbtt__new_buf(NULL, 0); + if (o < 0 || s < 0 || o > b->size || s > b->size - o) return r; + r.data = b->data + o; + r.size = s; + return r; +} + +static stbtt__buf stbtt__cff_get_index(stbtt__buf *b) +{ + int count, start, offsize; + start = b->cursor; + count = stbtt__buf_get16(b); + if (count) { + offsize = stbtt__buf_get8(b); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(b, offsize * count); + stbtt__buf_skip(b, stbtt__buf_get(b, offsize) - 1); + } + return stbtt__buf_range(b, start, b->cursor - start); +} + +static stbtt_uint32 stbtt__cff_int(stbtt__buf *b) +{ + int b0 = stbtt__buf_get8(b); + if (b0 >= 32 && b0 <= 246) return b0 - 139; + else if (b0 >= 247 && b0 <= 250) return (b0 - 247)*256 + stbtt__buf_get8(b) + 108; + else if (b0 >= 251 && b0 <= 254) return -(b0 - 251)*256 - stbtt__buf_get8(b) - 108; + else if (b0 == 28) return stbtt__buf_get16(b); + else if (b0 == 29) return stbtt__buf_get32(b); + STBTT_assert(0); + return 0; +} + +static void stbtt__cff_skip_operand(stbtt__buf *b) { + int v, b0 = stbtt__buf_peek8(b); + STBTT_assert(b0 >= 28); + if (b0 == 30) { + stbtt__buf_skip(b, 1); + while (b->cursor < b->size) { + v = stbtt__buf_get8(b); + if ((v & 0xF) == 0xF || (v >> 4) == 0xF) + break; + } + } else { + stbtt__cff_int(b); + } +} + +static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key) +{ + stbtt__buf_seek(b, 0); + while (b->cursor < b->size) { + int start = b->cursor, end, op; + while (stbtt__buf_peek8(b) >= 28) + stbtt__cff_skip_operand(b); + end = b->cursor; + op = stbtt__buf_get8(b); + if (op == 12) op = stbtt__buf_get8(b) | 0x100; + if (op == key) return stbtt__buf_range(b, start, end-start); + } + return stbtt__buf_range(b, 0, 0); +} + +static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out) +{ + int i; + stbtt__buf operands = stbtt__dict_get(b, key); + for (i = 0; i < outcount && operands.cursor < operands.size; i++) + out[i] = stbtt__cff_int(&operands); +} + +static int stbtt__cff_index_count(stbtt__buf *b) +{ + stbtt__buf_seek(b, 0); + return stbtt__buf_get16(b); +} + +static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i) +{ + int count, offsize, start, end; + stbtt__buf_seek(&b, 0); + count = stbtt__buf_get16(&b); + offsize = stbtt__buf_get8(&b); + STBTT_assert(i >= 0 && i < count); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(&b, i*offsize); + start = stbtt__buf_get(&b, offsize); + end = stbtt__buf_get(&b, offsize); + return stbtt__buf_range(&b, 2+(count+1)*offsize+start, end - start); +} + +////////////////////////////////////////////////////////////////////////// +// +// accessors to parse data from file +// + +// on platforms that don't allow misaligned reads, if we want to allow +// truetype fonts that aren't padded to alignment, define ALLOW_UNALIGNED_TRUETYPE + +#define ttBYTE(p) (* (stbtt_uint8 *) (p)) +#define ttCHAR(p) (* (stbtt_int8 *) (p)) +#define ttFixed(p) ttLONG(p) + +static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } +static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } + +#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3)) +#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3]) + +static int stbtt__isfont(stbtt_uint8 *font) +{ + // check the version number + if (stbtt_tag4(font, '1',0,0,0)) return 1; // TrueType 1 + if (stbtt_tag(font, "typ1")) return 1; // TrueType with type 1 font -- we don't support this! + if (stbtt_tag(font, "OTTO")) return 1; // OpenType with CFF + if (stbtt_tag4(font, 0,1,0,0)) return 1; // OpenType 1.0 + if (stbtt_tag(font, "true")) return 1; // Apple specification for TrueType fonts + return 0; +} + +// @OPTIMIZE: binary search +static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag) +{ + stbtt_int32 num_tables = ttUSHORT(data+fontstart+4); + stbtt_uint32 tabledir = fontstart + 12; + stbtt_int32 i; + for (i=0; i < num_tables; ++i) { + stbtt_uint32 loc = tabledir + 16*i; + if (stbtt_tag(data+loc+0, tag)) + return ttULONG(data+loc+8); + } + return 0; +} + +static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index) +{ + // if it's just a font, there's only one valid index + if (stbtt__isfont(font_collection)) + return index == 0 ? 0 : -1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + stbtt_int32 n = ttLONG(font_collection+8); + if (index >= n) + return -1; + return ttULONG(font_collection+12+index*4); + } + } + return -1; +} + +static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection) +{ + // if it's just a font, there's only one valid font + if (stbtt__isfont(font_collection)) + return 1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + return ttLONG(font_collection+8); + } + } + return 0; +} + +static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict) +{ + stbtt_uint32 subrsoff = 0, private_loc[2] = { 0, 0 }; + stbtt__buf pdict; + stbtt__dict_get_ints(&fontdict, 18, 2, private_loc); + if (!private_loc[1] || !private_loc[0]) return stbtt__new_buf(NULL, 0); + pdict = stbtt__buf_range(&cff, private_loc[1], private_loc[0]); + stbtt__dict_get_ints(&pdict, 19, 1, &subrsoff); + if (!subrsoff) return stbtt__new_buf(NULL, 0); + stbtt__buf_seek(&cff, private_loc[1]+subrsoff); + return stbtt__cff_get_index(&cff); +} + +// since most people won't use this, find this table the first time it's needed +static int stbtt__get_svg(stbtt_fontinfo *info) +{ + stbtt_uint32 t; + if (info->svg < 0) { + t = stbtt__find_table(info->data, info->fontstart, "SVG "); + if (t) { + stbtt_uint32 offset = ttULONG(info->data + t + 2); + info->svg = t + offset; + } else { + info->svg = 0; + } + } + return info->svg; +} + +static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart) +{ + stbtt_uint32 cmap, t; + stbtt_int32 i,numTables; + + info->data = data; + info->fontstart = fontstart; + info->cff = stbtt__new_buf(NULL, 0); + + cmap = stbtt__find_table(data, fontstart, "cmap"); // required + info->loca = stbtt__find_table(data, fontstart, "loca"); // required + info->head = stbtt__find_table(data, fontstart, "head"); // required + info->glyf = stbtt__find_table(data, fontstart, "glyf"); // required + info->hhea = stbtt__find_table(data, fontstart, "hhea"); // required + info->hmtx = stbtt__find_table(data, fontstart, "hmtx"); // required + info->kern = stbtt__find_table(data, fontstart, "kern"); // not required + info->gpos = stbtt__find_table(data, fontstart, "GPOS"); // not required + + if (!cmap || !info->head || !info->hhea || !info->hmtx) + return 0; + if (info->glyf) { + // required for truetype + if (!info->loca) return 0; + } else { + // initialization for CFF / Type2 fonts (OTF) + stbtt__buf b, topdict, topdictidx; + stbtt_uint32 cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + stbtt_uint32 cff; + + cff = stbtt__find_table(data, fontstart, "CFF "); + if (!cff) return 0; + + info->fontdicts = stbtt__new_buf(NULL, 0); + info->fdselect = stbtt__new_buf(NULL, 0); + + // @TODO this should use size from table (not 512MB) + info->cff = stbtt__new_buf(data+cff, 512*1024*1024); + b = info->cff; + + // read the header + stbtt__buf_skip(&b, 2); + stbtt__buf_seek(&b, stbtt__buf_get8(&b)); // hdrsize + + // @TODO the name INDEX could list multiple fonts, + // but we just use the first one. + stbtt__cff_get_index(&b); // name INDEX + topdictidx = stbtt__cff_get_index(&b); + topdict = stbtt__cff_index_get(topdictidx, 0); + stbtt__cff_get_index(&b); // string INDEX + info->gsubrs = stbtt__cff_get_index(&b); + + stbtt__dict_get_ints(&topdict, 17, 1, &charstrings); + stbtt__dict_get_ints(&topdict, 0x100 | 6, 1, &cstype); + stbtt__dict_get_ints(&topdict, 0x100 | 36, 1, &fdarrayoff); + stbtt__dict_get_ints(&topdict, 0x100 | 37, 1, &fdselectoff); + info->subrs = stbtt__get_subrs(b, topdict); + + // we only support Type 2 charstrings + if (cstype != 2) return 0; + if (charstrings == 0) return 0; + + if (fdarrayoff) { + // looks like a CID font + if (!fdselectoff) return 0; + stbtt__buf_seek(&b, fdarrayoff); + info->fontdicts = stbtt__cff_get_index(&b); + info->fdselect = stbtt__buf_range(&b, fdselectoff, b.size-fdselectoff); + } + + stbtt__buf_seek(&b, charstrings); + info->charstrings = stbtt__cff_get_index(&b); + } + + t = stbtt__find_table(data, fontstart, "maxp"); + if (t) + info->numGlyphs = ttUSHORT(data+t+4); + else + info->numGlyphs = 0xffff; + + info->svg = -1; + + // find a cmap encoding table we understand *now* to avoid searching + // later. (todo: could make this installable) + // the same regardless of glyph. + numTables = ttUSHORT(data + cmap + 2); + info->index_map = 0; + for (i=0; i < numTables; ++i) { + stbtt_uint32 encoding_record = cmap + 4 + 8 * i; + // find an encoding we understand: + switch(ttUSHORT(data+encoding_record)) { + case STBTT_PLATFORM_ID_MICROSOFT: + switch (ttUSHORT(data+encoding_record+2)) { + case STBTT_MS_EID_UNICODE_BMP: + case STBTT_MS_EID_UNICODE_FULL: + // MS/Unicode + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + break; + case STBTT_PLATFORM_ID_UNICODE: + // Mac/iOS has these + // all the encodingIDs are unicode, so we don't bother to check it + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + } + if (info->index_map == 0) + return 0; + + info->indexToLocFormat = ttUSHORT(data+info->head + 50); + return 1; +} + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint) +{ + stbtt_uint8 *data = info->data; + stbtt_uint32 index_map = info->index_map; + + stbtt_uint16 format = ttUSHORT(data + index_map + 0); + if (format == 0) { // apple byte encoding + stbtt_int32 bytes = ttUSHORT(data + index_map + 2); + if (unicode_codepoint < bytes-6) + return ttBYTE(data + index_map + 6 + unicode_codepoint); + return 0; + } else if (format == 6) { + stbtt_uint32 first = ttUSHORT(data + index_map + 6); + stbtt_uint32 count = ttUSHORT(data + index_map + 8); + if ((stbtt_uint32) unicode_codepoint >= first && (stbtt_uint32) unicode_codepoint < first+count) + return ttUSHORT(data + index_map + 10 + (unicode_codepoint - first)*2); + return 0; + } else if (format == 2) { + STBTT_assert(0); // @TODO: high-byte mapping for japanese/chinese/korean + return 0; + } else if (format == 4) { // standard mapping for windows fonts: binary search collection of ranges + stbtt_uint16 segcount = ttUSHORT(data+index_map+6) >> 1; + stbtt_uint16 searchRange = ttUSHORT(data+index_map+8) >> 1; + stbtt_uint16 entrySelector = ttUSHORT(data+index_map+10); + stbtt_uint16 rangeShift = ttUSHORT(data+index_map+12) >> 1; + + // do a binary search of the segments + stbtt_uint32 endCount = index_map + 14; + stbtt_uint32 search = endCount; + + if (unicode_codepoint > 0xffff) + return 0; + + // they lie from endCount .. endCount + segCount + // but searchRange is the nearest power of two, so... + if (unicode_codepoint >= ttUSHORT(data + search + rangeShift*2)) + search += rangeShift*2; + + // now decrement to bias correctly to find smallest + search -= 2; + while (entrySelector) { + stbtt_uint16 end; + searchRange >>= 1; + end = ttUSHORT(data + search + searchRange*2); + if (unicode_codepoint > end) + search += searchRange*2; + --entrySelector; + } + search += 2; + + { + stbtt_uint16 offset, start, last; + stbtt_uint16 item = (stbtt_uint16) ((search - endCount) >> 1); + + start = ttUSHORT(data + index_map + 14 + segcount*2 + 2 + 2*item); + last = ttUSHORT(data + endCount + 2*item); + if (unicode_codepoint < start || unicode_codepoint > last) + return 0; + + offset = ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item); + if (offset == 0) + return (stbtt_uint16) (unicode_codepoint + ttSHORT(data + index_map + 14 + segcount*4 + 2 + 2*item)); + + return ttUSHORT(data + offset + (unicode_codepoint-start)*2 + index_map + 14 + segcount*6 + 2 + 2*item); + } + } else if (format == 12 || format == 13) { + stbtt_uint32 ngroups = ttULONG(data+index_map+12); + stbtt_int32 low,high; + low = 0; high = (stbtt_int32)ngroups; + // Binary search the right group. + while (low < high) { + stbtt_int32 mid = low + ((high-low) >> 1); // rounds down, so low <= mid < high + stbtt_uint32 start_char = ttULONG(data+index_map+16+mid*12); + stbtt_uint32 end_char = ttULONG(data+index_map+16+mid*12+4); + if ((stbtt_uint32) unicode_codepoint < start_char) + high = mid; + else if ((stbtt_uint32) unicode_codepoint > end_char) + low = mid+1; + else { + stbtt_uint32 start_glyph = ttULONG(data+index_map+16+mid*12+8); + if (format == 12) + return start_glyph + unicode_codepoint-start_char; + else // format == 13 + return start_glyph; + } + } + return 0; // not found + } + // @TODO + STBTT_assert(0); + return 0; +} + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices) +{ + return stbtt_GetGlyphShape(info, stbtt_FindGlyphIndex(info, unicode_codepoint), vertices); +} + +static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy) +{ + v->type = type; + v->x = (stbtt_int16) x; + v->y = (stbtt_int16) y; + v->cx = (stbtt_int16) cx; + v->cy = (stbtt_int16) cy; +} + +static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index) +{ + int g1,g2; + + STBTT_assert(!info->cff.size); + + if (glyph_index >= info->numGlyphs) return -1; // glyph index out of range + if (info->indexToLocFormat >= 2) return -1; // unknown index->glyph map format + + if (info->indexToLocFormat == 0) { + g1 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2) * 2; + g2 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2 + 2) * 2; + } else { + g1 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4); + g2 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4 + 4); + } + + return g1==g2 ? -1 : g1; // if length is 0, return -1 +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); + +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + if (info->cff.size) { + stbtt__GetGlyphInfoT2(info, glyph_index, x0, y0, x1, y1); + } else { + int g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 0; + + if (x0) *x0 = ttSHORT(info->data + g + 2); + if (y0) *y0 = ttSHORT(info->data + g + 4); + if (x1) *x1 = ttSHORT(info->data + g + 6); + if (y1) *y1 = ttSHORT(info->data + g + 8); + } + return 1; +} + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1) +{ + return stbtt_GetGlyphBox(info, stbtt_FindGlyphIndex(info,codepoint), x0,y0,x1,y1); +} + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt_int16 numberOfContours; + int g; + if (info->cff.size) + return stbtt__GetGlyphInfoT2(info, glyph_index, NULL, NULL, NULL, NULL) == 0; + g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 1; + numberOfContours = ttSHORT(info->data + g); + return numberOfContours == 0; +} + +static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off, + stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy) +{ + if (start_off) { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+scx)>>1, (cy+scy)>>1, cx,cy); + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx,sy,scx,scy); + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve,sx,sy,cx,cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline,sx,sy,0,0); + } + return num_vertices; +} + +static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + stbtt_int16 numberOfContours; + stbtt_uint8 *endPtsOfContours; + stbtt_uint8 *data = info->data; + stbtt_vertex *vertices=0; + int num_vertices=0; + int g = stbtt__GetGlyfOffset(info, glyph_index); + + *pvertices = NULL; + + if (g < 0) return 0; + + numberOfContours = ttSHORT(data + g); + + if (numberOfContours > 0) { + stbtt_uint8 flags=0,flagcount; + stbtt_int32 ins, i,j=0,m,n, next_move, was_off=0, off, start_off=0; + stbtt_int32 x,y,cx,cy,sx,sy, scx,scy; + stbtt_uint8 *points; + endPtsOfContours = (data + g + 10); + ins = ttUSHORT(data + g + 10 + numberOfContours * 2); + points = data + g + 10 + numberOfContours * 2 + 2 + ins; + + n = 1+ttUSHORT(endPtsOfContours + numberOfContours*2-2); + + m = n + 2*numberOfContours; // a loose bound on how many vertices we might need + vertices = (stbtt_vertex *) STBTT_malloc(m * sizeof(vertices[0]), info->userdata); + if (vertices == 0) + return 0; + + next_move = 0; + flagcount=0; + + // in first pass, we load uninterpreted data into the allocated array + // above, shifted to the end of the array so we won't overwrite it when + // we create our final data starting from the front + + off = m - n; // starting offset for uninterpreted data, regardless of how m ends up being calculated + + // first load flags + + for (i=0; i < n; ++i) { + if (flagcount == 0) { + flags = *points++; + if (flags & 8) + flagcount = *points++; + } else + --flagcount; + vertices[off+i].type = flags; + } + + // now load x coordinates + x=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 2) { + stbtt_int16 dx = *points++; + x += (flags & 16) ? dx : -dx; // ??? + } else { + if (!(flags & 16)) { + x = x + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].x = (stbtt_int16) x; + } + + // now load y coordinates + y=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 4) { + stbtt_int16 dy = *points++; + y += (flags & 32) ? dy : -dy; // ??? + } else { + if (!(flags & 32)) { + y = y + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].y = (stbtt_int16) y; + } + + // now convert them to our format + num_vertices=0; + sx = sy = cx = cy = scx = scy = 0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + x = (stbtt_int16) vertices[off+i].x; + y = (stbtt_int16) vertices[off+i].y; + + if (next_move == i) { + if (i != 0) + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + + // now start the new one + start_off = !(flags & 1); + if (start_off) { + // if we start off with an off-curve point, then when we need to find a point on the curve + // where we can start, and we need to save some state for when we wraparound. + scx = x; + scy = y; + if (!(vertices[off+i+1].type & 1)) { + // next point is also a curve point, so interpolate an on-point curve + sx = (x + (stbtt_int32) vertices[off+i+1].x) >> 1; + sy = (y + (stbtt_int32) vertices[off+i+1].y) >> 1; + } else { + // otherwise just use the next point as our start point + sx = (stbtt_int32) vertices[off+i+1].x; + sy = (stbtt_int32) vertices[off+i+1].y; + ++i; // we're using point i+1 as the starting point, so skip it + } + } else { + sx = x; + sy = y; + } + stbtt_setvertex(&vertices[num_vertices++], STBTT_vmove,sx,sy,0,0); + was_off = 0; + next_move = 1 + ttUSHORT(endPtsOfContours+j*2); + ++j; + } else { + if (!(flags & 1)) { // if it's a curve + if (was_off) // two off-curve control points in a row means interpolate an on-curve midpoint + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+x)>>1, (cy+y)>>1, cx, cy); + cx = x; + cy = y; + was_off = 1; + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, x,y, cx, cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline, x,y,0,0); + was_off = 0; + } + } + } + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + } else if (numberOfContours < 0) { + // Compound shapes. + int more = 1; + stbtt_uint8 *comp = data + g + 10; + num_vertices = 0; + vertices = 0; + while (more) { + stbtt_uint16 flags, gidx; + int comp_num_verts = 0, i; + stbtt_vertex *comp_verts = 0, *tmp = 0; + float mtx[6] = {1,0,0,1,0,0}, m, n; + + flags = ttSHORT(comp); comp+=2; + gidx = ttSHORT(comp); comp+=2; + + if (flags & 2) { // XY values + if (flags & 1) { // shorts + mtx[4] = ttSHORT(comp); comp+=2; + mtx[5] = ttSHORT(comp); comp+=2; + } else { + mtx[4] = ttCHAR(comp); comp+=1; + mtx[5] = ttCHAR(comp); comp+=1; + } + } + else { + // @TODO handle matching point + STBTT_assert(0); + } + if (flags & (1<<3)) { // WE_HAVE_A_SCALE + mtx[0] = mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + } else if (flags & (1<<6)) { // WE_HAVE_AN_X_AND_YSCALE + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } else if (flags & (1<<7)) { // WE_HAVE_A_TWO_BY_TWO + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[2] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } + + // Find transformation scales. + m = (float) STBTT_sqrt(mtx[0]*mtx[0] + mtx[1]*mtx[1]); + n = (float) STBTT_sqrt(mtx[2]*mtx[2] + mtx[3]*mtx[3]); + + // Get indexed glyph. + comp_num_verts = stbtt_GetGlyphShape(info, gidx, &comp_verts); + if (comp_num_verts > 0) { + // Transform vertices. + for (i = 0; i < comp_num_verts; ++i) { + stbtt_vertex* v = &comp_verts[i]; + stbtt_vertex_type x,y; + x=v->x; y=v->y; + v->x = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->y = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + x=v->cx; y=v->cy; + v->cx = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->cy = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + } + // Append vertices. + tmp = (stbtt_vertex*)STBTT_malloc((num_vertices+comp_num_verts)*sizeof(stbtt_vertex), info->userdata); + if (!tmp) { + if (vertices) STBTT_free(vertices, info->userdata); + if (comp_verts) STBTT_free(comp_verts, info->userdata); + return 0; + } + if (num_vertices > 0 && vertices) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); + STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex)); + if (vertices) STBTT_free(vertices, info->userdata); + vertices = tmp; + STBTT_free(comp_verts, info->userdata); + num_vertices += comp_num_verts; + } + // More components ? + more = flags & (1<<5); + } + } else { + // numberOfCounters == 0, do nothing + } + + *pvertices = vertices; + return num_vertices; +} + +typedef struct +{ + int bounds; + int started; + float first_x, first_y; + float x, y; + stbtt_int32 min_x, max_x, min_y, max_y; + + stbtt_vertex *pvertices; + int num_vertices; +} stbtt__csctx; + +#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0} + +static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y) +{ + if (x > c->max_x || !c->started) c->max_x = x; + if (y > c->max_y || !c->started) c->max_y = y; + if (x < c->min_x || !c->started) c->min_x = x; + if (y < c->min_y || !c->started) c->min_y = y; + c->started = 1; +} + +static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1) +{ + if (c->bounds) { + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + } else { + stbtt_setvertex(&c->pvertices[c->num_vertices], type, x, y, cx, cy); + c->pvertices[c->num_vertices].cx1 = (stbtt_int16) cx1; + c->pvertices[c->num_vertices].cy1 = (stbtt_int16) cy1; + } + c->num_vertices++; +} + +static void stbtt__csctx_close_shape(stbtt__csctx *ctx) +{ + if (ctx->first_x != ctx->x || ctx->first_y != ctx->y) + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->first_x, (int)ctx->first_y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy) +{ + stbtt__csctx_close_shape(ctx); + ctx->first_x = ctx->x = ctx->x + dx; + ctx->first_y = ctx->y = ctx->y + dy; + stbtt__csctx_v(ctx, STBTT_vmove, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy) +{ + ctx->x += dx; + ctx->y += dy; + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3) +{ + float cx1 = ctx->x + dx1; + float cy1 = ctx->y + dy1; + float cx2 = cx1 + dx2; + float cy2 = cy1 + dy2; + ctx->x = cx2 + dx3; + ctx->y = cy2 + dy3; + stbtt__csctx_v(ctx, STBTT_vcubic, (int)ctx->x, (int)ctx->y, (int)cx1, (int)cy1, (int)cx2, (int)cy2); +} + +static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n) +{ + int count = stbtt__cff_index_count(&idx); + int bias = 107; + if (count >= 33900) + bias = 32768; + else if (count >= 1240) + bias = 1131; + n += bias; + if (n < 0 || n >= count) + return stbtt__new_buf(NULL, 0); + return stbtt__cff_index_get(idx, n); +} + +static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt__buf fdselect = info->fdselect; + int nranges, start, end, v, fmt, fdselector = -1, i; + + stbtt__buf_seek(&fdselect, 0); + fmt = stbtt__buf_get8(&fdselect); + if (fmt == 0) { + // untested + stbtt__buf_skip(&fdselect, glyph_index); + fdselector = stbtt__buf_get8(&fdselect); + } else if (fmt == 3) { + nranges = stbtt__buf_get16(&fdselect); + start = stbtt__buf_get16(&fdselect); + for (i = 0; i < nranges; i++) { + v = stbtt__buf_get8(&fdselect); + end = stbtt__buf_get16(&fdselect); + if (glyph_index >= start && glyph_index < end) { + fdselector = v; + break; + } + start = end; + } + } + if (fdselector == -1) stbtt__new_buf(NULL, 0); + return stbtt__get_subrs(info->cff, stbtt__cff_index_get(info->fontdicts, fdselector)); +} + +static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c) +{ + int in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0; + int has_subrs = 0, clear_stack; + float s[48]; + stbtt__buf subr_stack[10], subrs = info->subrs, b; + float f; + +#define STBTT__CSERR(s) (0) + + // this currently ignores the initial width value, which isn't needed if we have hmtx + b = stbtt__cff_index_get(info->charstrings, glyph_index); + while (b.cursor < b.size) { + i = 0; + clear_stack = 1; + b0 = stbtt__buf_get8(&b); + switch (b0) { + // @TODO implement hinting + case 0x13: // hintmask + case 0x14: // cntrmask + if (in_header) + maskbits += (sp / 2); // implicit "vstem" + in_header = 0; + stbtt__buf_skip(&b, (maskbits + 7) / 8); + break; + + case 0x01: // hstem + case 0x03: // vstem + case 0x12: // hstemhm + case 0x17: // vstemhm + maskbits += (sp / 2); + break; + + case 0x15: // rmoveto + in_header = 0; + if (sp < 2) return STBTT__CSERR("rmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-2], s[sp-1]); + break; + case 0x04: // vmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("vmoveto stack"); + stbtt__csctx_rmove_to(c, 0, s[sp-1]); + break; + case 0x16: // hmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("hmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-1], 0); + break; + + case 0x05: // rlineto + if (sp < 2) return STBTT__CSERR("rlineto stack"); + for (; i + 1 < sp; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + // hlineto/vlineto and vhcurveto/hvcurveto alternate horizontal and vertical + // starting from a different place. + + case 0x07: // vlineto + if (sp < 1) return STBTT__CSERR("vlineto stack"); + goto vlineto; + case 0x06: // hlineto + if (sp < 1) return STBTT__CSERR("hlineto stack"); + for (;;) { + if (i >= sp) break; + stbtt__csctx_rline_to(c, s[i], 0); + i++; + vlineto: + if (i >= sp) break; + stbtt__csctx_rline_to(c, 0, s[i]); + i++; + } + break; + + case 0x1F: // hvcurveto + if (sp < 4) return STBTT__CSERR("hvcurveto stack"); + goto hvcurveto; + case 0x1E: // vhcurveto + if (sp < 4) return STBTT__CSERR("vhcurveto stack"); + for (;;) { + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, 0, s[i], s[i+1], s[i+2], s[i+3], (sp - i == 5) ? s[i + 4] : 0.0f); + i += 4; + hvcurveto: + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, s[i], 0, s[i+1], s[i+2], (sp - i == 5) ? s[i+4] : 0.0f, s[i+3]); + i += 4; + } + break; + + case 0x08: // rrcurveto + if (sp < 6) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x18: // rcurveline + if (sp < 8) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp - 2; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + if (i + 1 >= sp) return STBTT__CSERR("rcurveline stack"); + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + case 0x19: // rlinecurve + if (sp < 8) return STBTT__CSERR("rlinecurve stack"); + for (; i + 1 < sp - 6; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + if (i + 5 >= sp) return STBTT__CSERR("rlinecurve stack"); + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x1A: // vvcurveto + case 0x1B: // hhcurveto + if (sp < 4) return STBTT__CSERR("(vv|hh)curveto stack"); + f = 0.0; + if (sp & 1) { f = s[i]; i++; } + for (; i + 3 < sp; i += 4) { + if (b0 == 0x1B) + stbtt__csctx_rccurve_to(c, s[i], f, s[i+1], s[i+2], s[i+3], 0.0); + else + stbtt__csctx_rccurve_to(c, f, s[i], s[i+1], s[i+2], 0.0, s[i+3]); + f = 0.0; + } + break; + + case 0x0A: // callsubr + if (!has_subrs) { + if (info->fdselect.size) + subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); + has_subrs = 1; + } + // FALLTHROUGH + case 0x1D: // callgsubr + if (sp < 1) return STBTT__CSERR("call(g|)subr stack"); + v = (int) s[--sp]; + if (subr_stack_height >= 10) return STBTT__CSERR("recursion limit"); + subr_stack[subr_stack_height++] = b; + b = stbtt__get_subr(b0 == 0x0A ? subrs : info->gsubrs, v); + if (b.size == 0) return STBTT__CSERR("subr not found"); + b.cursor = 0; + clear_stack = 0; + break; + + case 0x0B: // return + if (subr_stack_height <= 0) return STBTT__CSERR("return outside subr"); + b = subr_stack[--subr_stack_height]; + clear_stack = 0; + break; + + case 0x0E: // endchar + stbtt__csctx_close_shape(c); + return 1; + + case 0x0C: { // two-byte escape + float dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6; + float dx, dy; + int b1 = stbtt__buf_get8(&b); + switch (b1) { + // @TODO These "flex" implementations ignore the flex-depth and resolution, + // and always draw beziers. + case 0x22: // hflex + if (sp < 7) return STBTT__CSERR("hflex stack"); + dx1 = s[0]; + dx2 = s[1]; + dy2 = s[2]; + dx3 = s[3]; + dx4 = s[4]; + dx5 = s[5]; + dx6 = s[6]; + stbtt__csctx_rccurve_to(c, dx1, 0, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, -dy2, dx6, 0); + break; + + case 0x23: // flex + if (sp < 13) return STBTT__CSERR("flex stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = s[10]; + dy6 = s[11]; + //fd is s[12] + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + case 0x24: // hflex1 + if (sp < 9) return STBTT__CSERR("hflex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dx4 = s[5]; + dx5 = s[6]; + dy5 = s[7]; + dx6 = s[8]; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, dy5, dx6, -(dy1+dy2+dy5)); + break; + + case 0x25: // flex1 + if (sp < 11) return STBTT__CSERR("flex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = dy6 = s[10]; + dx = dx1+dx2+dx3+dx4+dx5; + dy = dy1+dy2+dy3+dy4+dy5; + if (STBTT_fabs(dx) > STBTT_fabs(dy)) + dy6 = -dy; + else + dx6 = -dx; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + default: + return STBTT__CSERR("unimplemented"); + } + } break; + + default: + if (b0 != 255 && b0 != 28 && b0 < 32) + return STBTT__CSERR("reserved operator"); + + // push immediate + if (b0 == 255) { + f = (float)(stbtt_int32)stbtt__buf_get32(&b) / 0x10000; + } else { + stbtt__buf_skip(&b, -1); + f = (float)(stbtt_int16)stbtt__cff_int(&b); + } + if (sp >= 48) return STBTT__CSERR("push stack overflow"); + s[sp++] = f; + clear_stack = 0; + break; + } + if (clear_stack) sp = 0; + } + return STBTT__CSERR("no endchar"); + +#undef STBTT__CSERR +} + +static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + // runs the charstring twice, once to count and once to output (to avoid realloc) + stbtt__csctx count_ctx = STBTT__CSCTX_INIT(1); + stbtt__csctx output_ctx = STBTT__CSCTX_INIT(0); + if (stbtt__run_charstring(info, glyph_index, &count_ctx)) { + *pvertices = (stbtt_vertex*)STBTT_malloc(count_ctx.num_vertices*sizeof(stbtt_vertex), info->userdata); + output_ctx.pvertices = *pvertices; + if (stbtt__run_charstring(info, glyph_index, &output_ctx)) { + STBTT_assert(output_ctx.num_vertices == count_ctx.num_vertices); + return output_ctx.num_vertices; + } + } + *pvertices = NULL; + return 0; +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + stbtt__csctx c = STBTT__CSCTX_INIT(1); + int r = stbtt__run_charstring(info, glyph_index, &c); + if (x0) *x0 = r ? c.min_x : 0; + if (y0) *y0 = r ? c.min_y : 0; + if (x1) *x1 = r ? c.max_x : 0; + if (y1) *y1 = r ? c.max_y : 0; + return r ? c.num_vertices : 0; +} + +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + if (!info->cff.size) + return stbtt__GetGlyphShapeTT(info, glyph_index, pvertices); + else + return stbtt__GetGlyphShapeT2(info, glyph_index, pvertices); +} + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing) +{ + stbtt_uint16 numOfLongHorMetrics = ttUSHORT(info->data+info->hhea + 34); + if (glyph_index < numOfLongHorMetrics) { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*glyph_index); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*glyph_index + 2); + } else { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*(numOfLongHorMetrics-1)); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics + 2*(glyph_index - numOfLongHorMetrics)); + } +} + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info) +{ + stbtt_uint8 *data = info->data + info->kern; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + return ttUSHORT(data+10); +} + +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length) +{ + stbtt_uint8 *data = info->data + info->kern; + int k, length; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + length = ttUSHORT(data+10); + if (table_length < length) + length = table_length; + + for (k = 0; k < length; k++) + { + table[k].glyph1 = ttUSHORT(data+18+(k*6)); + table[k].glyph2 = ttUSHORT(data+20+(k*6)); + table[k].advance = ttSHORT(data+22+(k*6)); + } + + return length; +} + +static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint8 *data = info->data + info->kern; + stbtt_uint32 needle, straw; + int l, r, m; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + l = 0; + r = ttUSHORT(data+10) - 1; + needle = glyph1 << 16 | glyph2; + while (l <= r) { + m = (l + r) >> 1; + straw = ttULONG(data+18+(m*6)); // note: unaligned read + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else + return ttSHORT(data+22+(m*6)); + } + return 0; +} + +static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) +{ + stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); + switch (coverageFormat) { + case 1: { + stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); + + // Binary search. + stbtt_int32 l=0, r=glyphCount-1, m; + int straw, needle=glyph; + while (l <= r) { + stbtt_uint8 *glyphArray = coverageTable + 4; + stbtt_uint16 glyphID; + m = (l + r) >> 1; + glyphID = ttUSHORT(glyphArray + 2 * m); + straw = glyphID; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + return m; + } + } + break; + } + + case 2: { + stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); + stbtt_uint8 *rangeArray = coverageTable + 4; + + // Binary search. + stbtt_int32 l=0, r=rangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *rangeRecord; + m = (l + r) >> 1; + rangeRecord = rangeArray + 6 * m; + strawStart = ttUSHORT(rangeRecord); + strawEnd = ttUSHORT(rangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else { + stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); + return startCoverageIndex + glyph - strawStart; + } + } + break; + } + + default: return -1; // unsupported + } + + return -1; +} + +static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph) +{ + stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); + switch (classDefFormat) + { + case 1: { + stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); + stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); + stbtt_uint8 *classDef1ValueArray = classDefTable + 6; + + if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) + return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); + break; + } + + case 2: { + stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); + stbtt_uint8 *classRangeRecords = classDefTable + 4; + + // Binary search. + stbtt_int32 l=0, r=classRangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *classRangeRecord; + m = (l + r) >> 1; + classRangeRecord = classRangeRecords + 6 * m; + strawStart = ttUSHORT(classRangeRecord); + strawEnd = ttUSHORT(classRangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else + return (stbtt_int32)ttUSHORT(classRangeRecord + 4); + } + break; + } + + default: + return -1; // Unsupported definition type, return an error. + } + + // "All glyphs not assigned to a class fall into class 0". (OpenType spec) + return 0; +} + +// Define to STBTT_assert(x) if you want to break on unimplemented formats. +#define STBTT_GPOS_TODO_assert(x) + +static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint16 lookupListOffset; + stbtt_uint8 *lookupList; + stbtt_uint16 lookupCount; + stbtt_uint8 *data; + stbtt_int32 i, sti; + + if (!info->gpos) return 0; + + data = info->data + info->gpos; + + if (ttUSHORT(data+0) != 1) return 0; // Major version 1 + if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 + + lookupListOffset = ttUSHORT(data+8); + lookupList = data + lookupListOffset; + lookupCount = ttUSHORT(lookupList); + + for (i=0; i= pairSetCount) return 0; + + needle=glyph2; + r=pairValueCount-1; + l=0; + + // Binary search. + while (l <= r) { + stbtt_uint16 secondGlyph; + stbtt_uint8 *pairValue; + m = (l + r) >> 1; + pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; + secondGlyph = ttUSHORT(pairValue); + straw = secondGlyph; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + stbtt_int16 xAdvance = ttSHORT(pairValue + 2); + return xAdvance; + } + } + } else + return 0; + break; + } + + case 2: { + stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); + stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); + if (valueFormat1 == 4 && valueFormat2 == 0) { // Support more formats? + stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); + stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); + int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); + int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); + + stbtt_uint16 class1Count = ttUSHORT(table + 12); + stbtt_uint16 class2Count = ttUSHORT(table + 14); + stbtt_uint8 *class1Records, *class2Records; + stbtt_int16 xAdvance; + + if (glyph1class < 0 || glyph1class >= class1Count) return 0; // malformed + if (glyph2class < 0 || glyph2class >= class2Count) return 0; // malformed + + class1Records = table + 16; + class2Records = class1Records + 2 * (glyph1class * class2Count); + xAdvance = ttSHORT(class2Records + 2 * glyph2class); + return xAdvance; + } else + return 0; + break; + } + + default: + return 0; // Unsupported position format + } + } + } + + return 0; +} + +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2) +{ + int xAdvance = 0; + + if (info->gpos) + xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2); + else if (info->kern) + xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2); + + return xAdvance; +} + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2) +{ + if (!info->kern && !info->gpos) // if no kerning table, don't waste time looking up both codepoint->glyphs + return 0; + return stbtt_GetGlyphKernAdvance(info, stbtt_FindGlyphIndex(info,ch1), stbtt_FindGlyphIndex(info,ch2)); +} + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing) +{ + stbtt_GetGlyphHMetrics(info, stbtt_FindGlyphIndex(info,codepoint), advanceWidth, leftSideBearing); +} + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap) +{ + if (ascent ) *ascent = ttSHORT(info->data+info->hhea + 4); + if (descent) *descent = ttSHORT(info->data+info->hhea + 6); + if (lineGap) *lineGap = ttSHORT(info->data+info->hhea + 8); +} + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap) +{ + int tab = stbtt__find_table(info->data, info->fontstart, "OS/2"); + if (!tab) + return 0; + if (typoAscent ) *typoAscent = ttSHORT(info->data+tab + 68); + if (typoDescent) *typoDescent = ttSHORT(info->data+tab + 70); + if (typoLineGap) *typoLineGap = ttSHORT(info->data+tab + 72); + return 1; +} + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1) +{ + *x0 = ttSHORT(info->data + info->head + 36); + *y0 = ttSHORT(info->data + info->head + 38); + *x1 = ttSHORT(info->data + info->head + 40); + *y1 = ttSHORT(info->data + info->head + 42); +} + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height) +{ + int fheight = ttSHORT(info->data + info->hhea + 4) - ttSHORT(info->data + info->hhea + 6); + return (float) height / fheight; +} + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels) +{ + int unitsPerEm = ttUSHORT(info->data + info->head + 18); + return pixels / unitsPerEm; +} + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v) +{ + STBTT_free(v, info->userdata); +} + +STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl) +{ + int i; + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc_list = data + stbtt__get_svg((stbtt_fontinfo *) info); + + int numEntries = ttUSHORT(svg_doc_list); + stbtt_uint8 *svg_docs = svg_doc_list + 2; + + for(i=0; i= ttUSHORT(svg_doc)) && (gl <= ttUSHORT(svg_doc + 2))) + return svg_doc; + } + return 0; +} + +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg) +{ + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc; + + if (info->svg == 0) + return 0; + + svg_doc = stbtt_FindSVGDoc(info, gl); + if (svg_doc != NULL) { + *svg = (char *) data + info->svg + ttULONG(svg_doc + 4); + return ttULONG(svg_doc + 8); + } else { + return 0; + } +} + +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg) +{ + return stbtt_GetGlyphSVG(info, stbtt_FindGlyphIndex(info, unicode_codepoint), svg); +} + +////////////////////////////////////////////////////////////////////////////// +// +// antialiasing software rasterizer +// + +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + int x0=0,y0=0,x1,y1; // =0 suppresses compiler warning + if (!stbtt_GetGlyphBox(font, glyph, &x0,&y0,&x1,&y1)) { + // e.g. space character + if (ix0) *ix0 = 0; + if (iy0) *iy0 = 0; + if (ix1) *ix1 = 0; + if (iy1) *iy1 = 0; + } else { + // move to integral bboxes (treating pixels as little squares, what pixels get touched)? + if (ix0) *ix0 = STBTT_ifloor( x0 * scale_x + shift_x); + if (iy0) *iy0 = STBTT_ifloor(-y1 * scale_y + shift_y); + if (ix1) *ix1 = STBTT_iceil ( x1 * scale_x + shift_x); + if (iy1) *iy1 = STBTT_iceil (-y0 * scale_y + shift_y); + } +} + +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y,0.0f,0.0f, ix0, iy0, ix1, iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font,codepoint), scale_x, scale_y,shift_x,shift_y, ix0,iy0,ix1,iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y,0.0f,0.0f, ix0,iy0,ix1,iy1); +} + +////////////////////////////////////////////////////////////////////////////// +// +// Rasterizer + +typedef struct stbtt__hheap_chunk +{ + struct stbtt__hheap_chunk *next; +} stbtt__hheap_chunk; + +typedef struct stbtt__hheap +{ + struct stbtt__hheap_chunk *head; + void *first_free; + int num_remaining_in_head_chunk; +} stbtt__hheap; + +static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t size, void *userdata) +{ + if (hh->first_free) { + void *p = hh->first_free; + hh->first_free = * (void **) p; + return p; + } else { + if (hh->num_remaining_in_head_chunk == 0) { + int count = (size < 32 ? 2000 : size < 128 ? 800 : 100); + stbtt__hheap_chunk *c = (stbtt__hheap_chunk *) STBTT_malloc(sizeof(stbtt__hheap_chunk) + size * count, userdata); + if (c == NULL) + return NULL; + c->next = hh->head; + hh->head = c; + hh->num_remaining_in_head_chunk = count; + } + --hh->num_remaining_in_head_chunk; + return (char *) (hh->head) + sizeof(stbtt__hheap_chunk) + size * hh->num_remaining_in_head_chunk; + } +} + +static void stbtt__hheap_free(stbtt__hheap *hh, void *p) +{ + *(void **) p = hh->first_free; + hh->first_free = p; +} + +static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata) +{ + stbtt__hheap_chunk *c = hh->head; + while (c) { + stbtt__hheap_chunk *n = c->next; + STBTT_free(c, userdata); + c = n; + } +} + +typedef struct stbtt__edge { + float x0,y0, x1,y1; + int invert; +} stbtt__edge; + + +typedef struct stbtt__active_edge +{ + struct stbtt__active_edge *next; + #if STBTT_RASTERIZER_VERSION==1 + int x,dx; + float ey; + int direction; + #elif STBTT_RASTERIZER_VERSION==2 + float fx,fdx,fdy; + float direction; + float sy; + float ey; + #else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" + #endif +} stbtt__active_edge; + +#if STBTT_RASTERIZER_VERSION == 1 +#define STBTT_FIXSHIFT 10 +#define STBTT_FIX (1 << STBTT_FIXSHIFT) +#define STBTT_FIXMASK (STBTT_FIX-1) + +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + if (!z) return z; + + // round dx down to avoid overshooting + if (dxdy < 0) + z->dx = -STBTT_ifloor(STBTT_FIX * -dxdy); + else + z->dx = STBTT_ifloor(STBTT_FIX * dxdy); + + z->x = STBTT_ifloor(STBTT_FIX * e->x0 + z->dx * (start_point - e->y0)); // use z->dx so when we offset later it's by the same amount + z->x -= off_x * STBTT_FIX; + + z->ey = e->y1; + z->next = 0; + z->direction = e->invert ? 1 : -1; + return z; +} +#elif STBTT_RASTERIZER_VERSION == 2 +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + //STBTT_assert(e->y0 <= start_point); + if (!z) return z; + z->fdx = dxdy; + z->fdy = dxdy != 0.0f ? (1.0f/dxdy) : 0.0f; + z->fx = e->x0 + dxdy * (start_point - e->y0); + z->fx -= off_x; + z->direction = e->invert ? 1.0f : -1.0f; + z->sy = e->y0; + z->ey = e->y1; + z->next = 0; + return z; +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#if STBTT_RASTERIZER_VERSION == 1 +// note: this routine clips fills that extend off the edges... ideally this +// wouldn't happen, but it could happen if the truetype glyph bounding boxes +// are wrong, or if the user supplies a too-small bitmap +static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight) +{ + // non-zero winding fill + int x0=0, w=0; + + while (e) { + if (w == 0) { + // if we're currently at zero, we need to record the edge start point + x0 = e->x; w += e->direction; + } else { + int x1 = e->x; w += e->direction; + // if we went to zero, we need to draw + if (w == 0) { + int i = x0 >> STBTT_FIXSHIFT; + int j = x1 >> STBTT_FIXSHIFT; + + if (i < len && j >= 0) { + if (i == j) { + // x0,x1 are the same pixel, so compute combined coverage + scanline[i] = scanline[i] + (stbtt_uint8) ((x1 - x0) * max_weight >> STBTT_FIXSHIFT); + } else { + if (i >= 0) // add antialiasing for x0 + scanline[i] = scanline[i] + (stbtt_uint8) (((STBTT_FIX - (x0 & STBTT_FIXMASK)) * max_weight) >> STBTT_FIXSHIFT); + else + i = -1; // clip + + if (j < len) // add antialiasing for x1 + scanline[j] = scanline[j] + (stbtt_uint8) (((x1 & STBTT_FIXMASK) * max_weight) >> STBTT_FIXSHIFT); + else + j = len; // clip + + for (++i; i < j; ++i) // fill pixels between x0 and x1 + scanline[i] = scanline[i] + (stbtt_uint8) max_weight; + } + } + } + } + + e = e->next; + } +} + +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0; + int max_weight = (255 / vsubsample); // weight per vertical scanline + int s; // vertical subsample index + unsigned char scanline_data[512], *scanline; + + if (result->w > 512) + scanline = (unsigned char *) STBTT_malloc(result->w, userdata); + else + scanline = scanline_data; + + y = off_y * vsubsample; + e[n].y0 = (off_y + result->h) * (float) vsubsample + 1; + + while (j < result->h) { + STBTT_memset(scanline, 0, result->w); + for (s=0; s < vsubsample; ++s) { + // find center of pixel for this scanline + float scan_y = y + 0.5f; + stbtt__active_edge **step = &active; + + // update all active edges; + // remove all active edges that terminate before the center of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + z->x += z->dx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + } + + // resort the list if needed + for(;;) { + int changed=0; + step = &active; + while (*step && (*step)->next) { + if ((*step)->x > (*step)->next->x) { + stbtt__active_edge *t = *step; + stbtt__active_edge *q = t->next; + + t->next = q->next; + q->next = t; + *step = q; + changed = 1; + } + step = &(*step)->next; + } + if (!changed) break; + } + + // insert all edges that start before the center of this scanline -- omit ones that also end on this scanline + while (e->y0 <= scan_y) { + if (e->y1 > scan_y) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y, userdata); + if (z != NULL) { + // find insertion point + if (active == NULL) + active = z; + else if (z->x < active->x) { + // insert at front + z->next = active; + active = z; + } else { + // find thing to insert AFTER + stbtt__active_edge *p = active; + while (p->next && p->next->x < z->x) + p = p->next; + // at this point, p->next->x is NOT < z->x + z->next = p->next; + p->next = z; + } + } + } + ++e; + } + + // now process all active edges in XOR fashion + if (active) + stbtt__fill_active_edges(scanline, result->w, active, max_weight); + + ++y; + } + STBTT_memcpy(result->pixels + j * result->stride, scanline, result->w); + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} + +#elif STBTT_RASTERIZER_VERSION == 2 + +// the edge passed in here does not cross the vertical line at x or the vertical line at x+1 +// (i.e. it has already been clipped to those) +static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1) +{ + if (y0 == y1) return; + STBTT_assert(y0 < y1); + STBTT_assert(e->sy <= e->ey); + if (y0 > e->ey) return; + if (y1 < e->sy) return; + if (y0 < e->sy) { + x0 += (x1-x0) * (e->sy - y0) / (y1-y0); + y0 = e->sy; + } + if (y1 > e->ey) { + x1 += (x1-x0) * (e->ey - y1) / (y1-y0); + y1 = e->ey; + } + + if (x0 == x) + STBTT_assert(x1 <= x+1); + else if (x0 == x+1) + STBTT_assert(x1 >= x); + else if (x0 <= x) + STBTT_assert(x1 <= x); + else if (x0 >= x+1) + STBTT_assert(x1 >= x+1); + else + STBTT_assert(x1 >= x && x1 <= x+1); + + if (x0 <= x && x1 <= x) + scanline[x] += e->direction * (y1-y0); + else if (x0 >= x+1 && x1 >= x+1) + ; + else { + STBTT_assert(x0 >= x && x0 <= x+1 && x1 >= x && x1 <= x+1); + scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); // coverage = 1 - average x position + } +} + +static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width) +{ + STBTT_assert(top_width >= 0); + STBTT_assert(bottom_width >= 0); + return (top_width + bottom_width) / 2.0f * height; +} + +static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1) +{ + return stbtt__sized_trapezoid_area(height, tx1 - tx0, bx1 - bx0); +} + +static float stbtt__sized_triangle_area(float height, float width) +{ + return height * width / 2; +} + +static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top) +{ + float y_bottom = y_top+1; + + while (e) { + // brute force every pixel + + // compute intersection points with top & bottom + STBTT_assert(e->ey >= y_top); + + if (e->fdx == 0) { + float x0 = e->fx; + if (x0 < len) { + if (x0 >= 0) { + stbtt__handle_clipped_edge(scanline,(int) x0,e, x0,y_top, x0,y_bottom); + stbtt__handle_clipped_edge(scanline_fill-1,(int) x0+1,e, x0,y_top, x0,y_bottom); + } else { + stbtt__handle_clipped_edge(scanline_fill-1,0,e, x0,y_top, x0,y_bottom); + } + } + } else { + float x0 = e->fx; + float dx = e->fdx; + float xb = x0 + dx; + float x_top, x_bottom; + float sy0,sy1; + float dy = e->fdy; + STBTT_assert(e->sy <= y_bottom && e->ey >= y_top); + + // compute endpoints of line segment clipped to this scanline (if the + // line segment starts on this scanline. x0 is the intersection of the + // line with y_top, but that may be off the line segment. + if (e->sy > y_top) { + x_top = x0 + dx * (e->sy - y_top); + sy0 = e->sy; + } else { + x_top = x0; + sy0 = y_top; + } + if (e->ey < y_bottom) { + x_bottom = x0 + dx * (e->ey - y_top); + sy1 = e->ey; + } else { + x_bottom = xb; + sy1 = y_bottom; + } + + if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { + // from here on, we don't have to range check x values + + if ((int) x_top == (int) x_bottom) { + float height; + // simple case, only spans one pixel + int x = (int) x_top; + height = (sy1 - sy0) * e->direction; + STBTT_assert(x >= 0 && x < len); + scanline[x] += stbtt__position_trapezoid_area(height, x_top, x+1.0f, x_bottom, x+1.0f); + scanline_fill[x] += height; // everything right of this pixel is filled + } else { + int x,x1,x2; + float y_crossing, y_final, step, sign, area; + // covers 2+ pixels + if (x_top > x_bottom) { + // flip scanline vertically; signed area is the same + float t; + sy0 = y_bottom - (sy0 - y_top); + sy1 = y_bottom - (sy1 - y_top); + t = sy0, sy0 = sy1, sy1 = t; + t = x_bottom, x_bottom = x_top, x_top = t; + dx = -dx; + dy = -dy; + t = x0, x0 = xb, xb = t; + } + STBTT_assert(dy >= 0); + STBTT_assert(dx >= 0); + + x1 = (int) x_top; + x2 = (int) x_bottom; + // compute intersection with y axis at x1+1 + y_crossing = y_top + dy * (x1+1 - x0); + + // compute intersection with y axis at x2 + y_final = y_top + dy * (x2 - x0); + + // x1 x_top x2 x_bottom + // y_top +------|-----+------------+------------+--------|---+------------+ + // | | | | | | + // | | | | | | + // sy0 | Txxxxx|............|............|............|............| + // y_crossing | *xxxxx.......|............|............|............| + // | | xxxxx..|............|............|............| + // | | /- xx*xxxx........|............|............| + // | | dy < | xxxxxx..|............|............| + // y_final | | \- | xx*xxx.........|............| + // sy1 | | | | xxxxxB...|............| + // | | | | | | + // | | | | | | + // y_bottom +------------+------------+------------+------------+------------+ + // + // goal is to measure the area covered by '.' in each pixel + + // if x2 is right at the right edge of x1, y_crossing can blow up, github #1057 + // @TODO: maybe test against sy1 rather than y_bottom? + if (y_crossing > y_bottom) + y_crossing = y_bottom; + + sign = e->direction; + + // area of the rectangle covered from sy0..y_crossing + area = sign * (y_crossing-sy0); + + // area of the triangle (x_top,sy0), (x1+1,sy0), (x1+1,y_crossing) + scanline[x1] += stbtt__sized_triangle_area(area, x1+1 - x_top); + + // check if final y_crossing is blown up; no test case for this + if (y_final > y_bottom) { + int denom = (x2 - (x1+1)); + y_final = y_bottom; + if (denom != 0) { // [DEAR IMGUI] Avoid div by zero (https://github.com/nothings/stb/issues/1316) + dy = (y_final - y_crossing ) / denom; // if denom=0, y_final = y_crossing, so y_final <= y_bottom + } + } + + // in second pixel, area covered by line segment found in first pixel + // is always a rectangle 1 wide * the height of that line segment; this + // is exactly what the variable 'area' stores. it also gets a contribution + // from the line segment within it. the THIRD pixel will get the first + // pixel's rectangle contribution, the second pixel's rectangle contribution, + // and its own contribution. the 'own contribution' is the same in every pixel except + // the leftmost and rightmost, a trapezoid that slides down in each pixel. + // the second pixel's contribution to the third pixel will be the + // rectangle 1 wide times the height change in the second pixel, which is dy. + + step = sign * dy * 1; // dy is dy/dx, change in y for every 1 change in x, + // which multiplied by 1-pixel-width is how much pixel area changes for each step in x + // so the area advances by 'step' every time + + for (x = x1+1; x < x2; ++x) { + scanline[x] += area + step/2; // area of trapezoid is 1*step/2 + area += step; + } + STBTT_assert(STBTT_fabs(area) <= 1.01f); // accumulated error from area += step unless we round step down + STBTT_assert(sy1 > y_final-0.01f); + + // area covered in the last pixel is the rectangle from all the pixels to the left, + // plus the trapezoid filled by the line segment in this pixel all the way to the right edge + scanline[x2] += area + sign * stbtt__position_trapezoid_area(sy1-y_final, (float) x2, x2+1.0f, x_bottom, x2+1.0f); + + // the rest of the line is filled based on the total height of the line segment in this pixel + scanline_fill[x2] += sign * (sy1-sy0); + } + } else { + // if edge goes outside of box we're drawing, we require + // clipping logic. since this does not match the intended use + // of this library, we use a different, very slow brute + // force implementation + // note though that this does happen some of the time because + // x_top and x_bottom can be extrapolated at the top & bottom of + // the shape and actually lie outside the bounding box + int x; + for (x=0; x < len; ++x) { + // cases: + // + // there can be up to two intersections with the pixel. any intersection + // with left or right edges can be handled by splitting into two (or three) + // regions. intersections with top & bottom do not necessitate case-wise logic. + // + // the old way of doing this found the intersections with the left & right edges, + // then used some simple logic to produce up to three segments in sorted order + // from top-to-bottom. however, this had a problem: if an x edge was epsilon + // across the x border, then the corresponding y position might not be distinct + // from the other y segment, and it might ignored as an empty segment. to avoid + // that, we need to explicitly produce segments based on x positions. + + // rename variables to clearly-defined pairs + float y0 = y_top; + float x1 = (float) (x); + float x2 = (float) (x+1); + float x3 = xb; + float y3 = y_bottom; + + // x = e->x + e->dx * (y-y_top) + // (y-y_top) = (x - e->x) / e->dx + // y = (x - e->x) / e->dx + y_top + float y1 = (x - x0) / dx + y_top; + float y2 = (x+1 - x0) / dx + y_top; + + if (x0 < x1 && x3 > x2) { // three segments descending down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x1 && x0 > x2) { // three segments descending down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x1 && x3 > x1) { // two segments across x, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x3 < x1 && x0 > x1) { // two segments across x, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x2 && x3 > x2) { // two segments across x+1, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x2 && x0 > x2) { // two segments across x+1, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else { // one segment + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x3,y3); + } + } + } + } + e = e->next; + } +} + +// directly AA rasterize edges w/o supersampling +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0, i; + float scanline_data[129], *scanline, *scanline2; + + STBTT__NOTUSED(vsubsample); + + if (result->w > 64) + scanline = (float *) STBTT_malloc((result->w*2+1) * sizeof(float), userdata); + else + scanline = scanline_data; + + scanline2 = scanline + result->w; + + y = off_y; + e[n].y0 = (float) (off_y + result->h) + 1; + + while (j < result->h) { + // find center of pixel for this scanline + float scan_y_top = y + 0.0f; + float scan_y_bottom = y + 1.0f; + stbtt__active_edge **step = &active; + + STBTT_memset(scanline , 0, result->w*sizeof(scanline[0])); + STBTT_memset(scanline2, 0, (result->w+1)*sizeof(scanline[0])); + + // update all active edges; + // remove all active edges that terminate before the top of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y_top) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + step = &((*step)->next); // advance through list + } + } + + // insert all edges that start before the bottom of this scanline + while (e->y0 <= scan_y_bottom) { + if (e->y0 != e->y1) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y_top, userdata); + if (z != NULL) { + if (j == 0 && off_y != 0) { + if (z->ey < scan_y_top) { + // this can happen due to subpixel positioning and some kind of fp rounding error i think + z->ey = scan_y_top; + } + } + STBTT_assert(z->ey >= scan_y_top); // if we get really unlucky a tiny bit of an edge can be out of bounds + // insert at front + z->next = active; + active = z; + } + } + ++e; + } + + // now process all active edges + if (active) + stbtt__fill_active_edges_new(scanline, scanline2+1, result->w, active, scan_y_top); + + { + float sum = 0; + for (i=0; i < result->w; ++i) { + float k; + int m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = (float) STBTT_fabs(k)*255 + 0.5f; + m = (int) k; + if (m > 255) m = 255; + result->pixels[j*result->stride + i] = (unsigned char) m; + } + } + // advance all the edges + step = &active; + while (*step) { + stbtt__active_edge *z = *step; + z->fx += z->fdx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + + ++y; + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0) + +static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n) +{ + int i,j; + for (i=1; i < n; ++i) { + stbtt__edge t = p[i], *a = &t; + j = i; + while (j > 0) { + stbtt__edge *b = &p[j-1]; + int c = STBTT__COMPARE(a,b); + if (!c) break; + p[j] = p[j-1]; + --j; + } + if (i != j) + p[j] = t; + } +} + +static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n) +{ + /* threshold for transitioning to insertion sort */ + while (n > 12) { + stbtt__edge t; + int c01,c12,c,m,i,j; + + /* compute median of three */ + m = n >> 1; + c01 = STBTT__COMPARE(&p[0],&p[m]); + c12 = STBTT__COMPARE(&p[m],&p[n-1]); + /* if 0 >= mid >= end, or 0 < mid < end, then use mid */ + if (c01 != c12) { + /* otherwise, we'll need to swap something else to middle */ + int z; + c = STBTT__COMPARE(&p[0],&p[n-1]); + /* 0>mid && midn => n; 0 0 */ + /* 0n: 0>n => 0; 0 n */ + z = (c == c12) ? 0 : n-1; + t = p[z]; + p[z] = p[m]; + p[m] = t; + } + /* now p[m] is the median-of-three */ + /* swap it to the beginning so it won't move around */ + t = p[0]; + p[0] = p[m]; + p[m] = t; + + /* partition loop */ + i=1; + j=n-1; + for(;;) { + /* handling of equality is crucial here */ + /* for sentinels & efficiency with duplicates */ + for (;;++i) { + if (!STBTT__COMPARE(&p[i], &p[0])) break; + } + for (;;--j) { + if (!STBTT__COMPARE(&p[0], &p[j])) break; + } + /* make sure we haven't crossed */ + if (i >= j) break; + t = p[i]; + p[i] = p[j]; + p[j] = t; + + ++i; + --j; + } + /* recurse on smaller side, iterate on larger */ + if (j < (n-i)) { + stbtt__sort_edges_quicksort(p,j); + p = p+i; + n = n-i; + } else { + stbtt__sort_edges_quicksort(p+i, n-i); + n = j; + } + } +} + +static void stbtt__sort_edges(stbtt__edge *p, int n) +{ + stbtt__sort_edges_quicksort(p, n); + stbtt__sort_edges_ins_sort(p, n); +} + +typedef struct +{ + float x,y; +} stbtt__point; + +static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata) +{ + float y_scale_inv = invert ? -scale_y : scale_y; + stbtt__edge *e; + int n,i,j,k,m; +#if STBTT_RASTERIZER_VERSION == 1 + int vsubsample = result->h < 8 ? 15 : 5; +#elif STBTT_RASTERIZER_VERSION == 2 + int vsubsample = 1; +#else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + // vsubsample should divide 255 evenly; otherwise we won't reach full opacity + + // now we have to blow out the windings into explicit edge lists + n = 0; + for (i=0; i < windings; ++i) + n += wcount[i]; + + e = (stbtt__edge *) STBTT_malloc(sizeof(*e) * (n+1), userdata); // add an extra one as a sentinel + if (e == 0) return; + n = 0; + + m=0; + for (i=0; i < windings; ++i) { + stbtt__point *p = pts + m; + m += wcount[i]; + j = wcount[i]-1; + for (k=0; k < wcount[i]; j=k++) { + int a=k,b=j; + // skip the edge if horizontal + if (p[j].y == p[k].y) + continue; + // add edge from j to k to the list + e[n].invert = 0; + if (invert ? p[j].y > p[k].y : p[j].y < p[k].y) { + e[n].invert = 1; + a=j,b=k; + } + e[n].x0 = p[a].x * scale_x + shift_x; + e[n].y0 = (p[a].y * y_scale_inv + shift_y) * vsubsample; + e[n].x1 = p[b].x * scale_x + shift_x; + e[n].y1 = (p[b].y * y_scale_inv + shift_y) * vsubsample; + ++n; + } + } + + // now sort the edges by their highest point (should snap to integer, and then by x) + //STBTT_sort(e, n, sizeof(e[0]), stbtt__edge_compare); + stbtt__sort_edges(e, n); + + // now, traverse the scanlines and find the intersections on each scanline, use xor winding rule + stbtt__rasterize_sorted_edges(result, e, n, vsubsample, off_x, off_y, userdata); + + STBTT_free(e, userdata); +} + +static void stbtt__add_point(stbtt__point *points, int n, float x, float y) +{ + if (!points) return; // during first pass, it's unallocated + points[n].x = x; + points[n].y = y; +} + +// tessellate until threshold p is happy... @TODO warped to compensate for non-linear stretching +static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n) +{ + // midpoint + float mx = (x0 + 2*x1 + x2)/4; + float my = (y0 + 2*y1 + y2)/4; + // versus directly drawn line + float dx = (x0+x2)/2 - mx; + float dy = (y0+y2)/2 - my; + if (n > 16) // 65536 segments on one curve better be enough! + return 1; + if (dx*dx+dy*dy > objspace_flatness_squared) { // half-pixel error allowed... need to be smaller if AA + stbtt__tesselate_curve(points, num_points, x0,y0, (x0+x1)/2.0f,(y0+y1)/2.0f, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_curve(points, num_points, mx,my, (x1+x2)/2.0f,(y1+y2)/2.0f, x2,y2, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x2,y2); + *num_points = *num_points+1; + } + return 1; +} + +static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n) +{ + // @TODO this "flatness" calculation is just made-up nonsense that seems to work well enough + float dx0 = x1-x0; + float dy0 = y1-y0; + float dx1 = x2-x1; + float dy1 = y2-y1; + float dx2 = x3-x2; + float dy2 = y3-y2; + float dx = x3-x0; + float dy = y3-y0; + float longlen = (float) (STBTT_sqrt(dx0*dx0+dy0*dy0)+STBTT_sqrt(dx1*dx1+dy1*dy1)+STBTT_sqrt(dx2*dx2+dy2*dy2)); + float shortlen = (float) STBTT_sqrt(dx*dx+dy*dy); + float flatness_squared = longlen*longlen-shortlen*shortlen; + + if (n > 16) // 65536 segments on one curve better be enough! + return; + + if (flatness_squared > objspace_flatness_squared) { + float x01 = (x0+x1)/2; + float y01 = (y0+y1)/2; + float x12 = (x1+x2)/2; + float y12 = (y1+y2)/2; + float x23 = (x2+x3)/2; + float y23 = (y2+y3)/2; + + float xa = (x01+x12)/2; + float ya = (y01+y12)/2; + float xb = (x12+x23)/2; + float yb = (y12+y23)/2; + + float mx = (xa+xb)/2; + float my = (ya+yb)/2; + + stbtt__tesselate_cubic(points, num_points, x0,y0, x01,y01, xa,ya, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_cubic(points, num_points, mx,my, xb,yb, x23,y23, x3,y3, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x3,y3); + *num_points = *num_points+1; + } +} + +// returns number of contours +static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) +{ + stbtt__point *points=0; + int num_points=0; + + float objspace_flatness_squared = objspace_flatness * objspace_flatness; + int i,n=0,start=0, pass; + + // count how many "moves" there are to get the contour count + for (i=0; i < num_verts; ++i) + if (vertices[i].type == STBTT_vmove) + ++n; + + *num_contours = n; + if (n == 0) return 0; + + *contour_lengths = (int *) STBTT_malloc(sizeof(**contour_lengths) * n, userdata); + + if (*contour_lengths == 0) { + *num_contours = 0; + return 0; + } + + // make two passes through the points so we don't need to realloc + for (pass=0; pass < 2; ++pass) { + float x=0,y=0; + if (pass == 1) { + points = (stbtt__point *) STBTT_malloc(num_points * sizeof(points[0]), userdata); + if (points == NULL) goto error; + } + num_points = 0; + n= -1; + for (i=0; i < num_verts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + // start the next contour + if (n >= 0) + (*contour_lengths)[n] = num_points - start; + ++n; + start = num_points; + + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x,y); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x, y); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + (*contour_lengths)[n] = num_points - start; + } + + return points; +error: + STBTT_free(points, userdata); + STBTT_free(*contour_lengths, userdata); + *contour_lengths = 0; + *num_contours = 0; + return NULL; +} + +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata) +{ + float scale = scale_x > scale_y ? scale_y : scale_x; + int winding_count = 0; + int *winding_lengths = NULL; + stbtt__point *windings = stbtt_FlattenCurves(vertices, num_verts, flatness_in_pixels / scale, &winding_lengths, &winding_count, userdata); + if (windings) { + stbtt__rasterize(result, windings, winding_lengths, winding_count, scale_x, scale_y, shift_x, shift_y, x_off, y_off, invert, userdata); + STBTT_free(winding_lengths, userdata); + STBTT_free(windings, userdata); + } +} + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + int ix0,iy0,ix1,iy1; + stbtt__bitmap gbm; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + + if (scale_x == 0) scale_x = scale_y; + if (scale_y == 0) { + if (scale_x == 0) { + STBTT_free(vertices, info->userdata); + return NULL; + } + scale_y = scale_x; + } + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,&ix1,&iy1); + + // now we get the size + gbm.w = (ix1 - ix0); + gbm.h = (iy1 - iy0); + gbm.pixels = NULL; // in case we error + + if (width ) *width = gbm.w; + if (height) *height = gbm.h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + if (gbm.w && gbm.h) { + gbm.pixels = (unsigned char *) STBTT_malloc(gbm.w * gbm.h, info->userdata); + if (gbm.pixels) { + gbm.stride = gbm.w; + + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0, iy0, 1, info->userdata); + } + } + STBTT_free(vertices, info->userdata); + return gbm.pixels; +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y, 0.0f, 0.0f, glyph, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph) +{ + int ix0,iy0; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + stbtt__bitmap gbm; + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,0,0); + gbm.pixels = output; + gbm.w = out_w; + gbm.h = out_h; + gbm.stride = out_stride; + + if (gbm.w && gbm.h) + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0,iy0, 1, info->userdata); + + STBTT_free(vertices, info->userdata); +} + +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, glyph); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y,shift_x,shift_y, stbtt_FindGlyphIndex(info,codepoint), width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixelPrefilter(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, oversample_x, oversample_y, sub_x, sub_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetCodepointBitmapSubpixel(info, scale_x, scale_y, 0.0f,0.0f, codepoint, width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint) +{ + stbtt_MakeCodepointBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, codepoint); +} + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-CRAPPY packing to keep source code small + +static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata) +{ + float scale; + int x,y,bottom_y, i; + stbtt_fontinfo f; + f.userdata = NULL; + if (!stbtt_InitFont(&f, data, offset)) + return -1; + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + x=y=1; + bottom_y = 1; + + scale = stbtt_ScaleForPixelHeight(&f, pixel_height); + + for (i=0; i < num_chars; ++i) { + int advance, lsb, x0,y0,x1,y1,gw,gh; + int g = stbtt_FindGlyphIndex(&f, first_char + i); + stbtt_GetGlyphHMetrics(&f, g, &advance, &lsb); + stbtt_GetGlyphBitmapBox(&f, g, scale,scale, &x0,&y0,&x1,&y1); + gw = x1-x0; + gh = y1-y0; + if (x + gw + 1 >= pw) + y = bottom_y, x = 1; // advance to next row + if (y + gh + 1 >= ph) // check if it fits vertically AFTER potentially moving to next row + return -i; + STBTT_assert(x+gw < pw); + STBTT_assert(y+gh < ph); + stbtt_MakeGlyphBitmap(&f, pixels+x+y*pw, gw,gh,pw, scale,scale, g); + chardata[i].x0 = (stbtt_int16) x; + chardata[i].y0 = (stbtt_int16) y; + chardata[i].x1 = (stbtt_int16) (x + gw); + chardata[i].y1 = (stbtt_int16) (y + gh); + chardata[i].xadvance = scale * advance; + chardata[i].xoff = (float) x0; + chardata[i].yoff = (float) y0; + x = x + gw + 1; + if (y+gh+1 > bottom_y) + bottom_y = y+gh+1; + } + return bottom_y; +} + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule) +{ + float d3d_bias = opengl_fillrule ? 0 : -0.5f; + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_bakedchar *b = chardata + char_index; + int round_x = STBTT_ifloor((*xpos + b->xoff) + 0.5f); + int round_y = STBTT_ifloor((*ypos + b->yoff) + 0.5f); + + q->x0 = round_x + d3d_bias; + q->y0 = round_y + d3d_bias; + q->x1 = round_x + b->x1 - b->x0 + d3d_bias; + q->y1 = round_y + b->y1 - b->y0 + d3d_bias; + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// rectangle packing replacement routines if you don't have stb_rect_pack.h +// + +#ifndef STB_RECT_PACK_VERSION + +typedef int stbrp_coord; + +//////////////////////////////////////////////////////////////////////////////////// +// // +// // +// COMPILER WARNING ?!?!? // +// // +// // +// if you get a compile warning due to these symbols being defined more than // +// once, move #include "stb_rect_pack.h" before #include "stb_truetype.h" // +// // +//////////////////////////////////////////////////////////////////////////////////// + +typedef struct +{ + int width,height; + int x,y,bottom_y; +} stbrp_context; + +typedef struct +{ + unsigned char x; +} stbrp_node; + +struct stbrp_rect +{ + stbrp_coord x,y; + int id,w,h,was_packed; +}; + +static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes) +{ + con->width = pw; + con->height = ph; + con->x = 0; + con->y = 0; + con->bottom_y = 0; + STBTT__NOTUSED(nodes); + STBTT__NOTUSED(num_nodes); +} + +static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects) +{ + int i; + for (i=0; i < num_rects; ++i) { + if (con->x + rects[i].w > con->width) { + con->x = 0; + con->y = con->bottom_y; + } + if (con->y + rects[i].h > con->height) + break; + rects[i].x = con->x; + rects[i].y = con->y; + rects[i].was_packed = 1; + con->x += rects[i].w; + if (con->y + rects[i].h > con->bottom_y) + con->bottom_y = con->y + rects[i].h; + } + for ( ; i < num_rects; ++i) + rects[i].was_packed = 0; +} +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-AWESOME (tm Ryan Gordon) packing using stb_rect_pack.h. If +// stb_rect_pack.h isn't available, it uses the BakeFontBitmap strategy. + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context) +{ + stbrp_context *context = (stbrp_context *) STBTT_malloc(sizeof(*context) ,alloc_context); + int num_nodes = pw - padding; + stbrp_node *nodes = (stbrp_node *) STBTT_malloc(sizeof(*nodes ) * num_nodes,alloc_context); + + if (context == NULL || nodes == NULL) { + if (context != NULL) STBTT_free(context, alloc_context); + if (nodes != NULL) STBTT_free(nodes , alloc_context); + return 0; + } + + spc->user_allocator_context = alloc_context; + spc->width = pw; + spc->height = ph; + spc->pixels = pixels; + spc->pack_info = context; + spc->nodes = nodes; + spc->padding = padding; + spc->stride_in_bytes = stride_in_bytes != 0 ? stride_in_bytes : pw; + spc->h_oversample = 1; + spc->v_oversample = 1; + spc->skip_missing = 0; + + stbrp_init_target(context, pw-padding, ph-padding, nodes, num_nodes); + + if (pixels) + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + + return 1; +} + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc) +{ + STBTT_free(spc->nodes , spc->user_allocator_context); + STBTT_free(spc->pack_info, spc->user_allocator_context); +} + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample) +{ + STBTT_assert(h_oversample <= STBTT_MAX_OVERSAMPLE); + STBTT_assert(v_oversample <= STBTT_MAX_OVERSAMPLE); + if (h_oversample <= STBTT_MAX_OVERSAMPLE) + spc->h_oversample = h_oversample; + if (v_oversample <= STBTT_MAX_OVERSAMPLE) + spc->v_oversample = v_oversample; +} + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip) +{ + spc->skip_missing = skip; +} + +#define STBTT__OVER_MASK (STBTT_MAX_OVERSAMPLE-1) + +static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_w = w - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < h; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < w; ++i) { + STBTT_assert(pixels[i] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i] = (unsigned char) (total / kernel_width); + } + + pixels += stride_in_bytes; + } +} + +static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_h = h - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < w; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < h; ++i) { + STBTT_assert(pixels[i*stride_in_bytes] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + + pixels += 1; + } +} + +static float stbtt__oversample_shift(int oversample) +{ + if (!oversample) + return 0.0f; + + // The prefilter is a box filter of width "oversample", + // which shifts phase by (oversample - 1)/2 pixels in + // oversampled space. We want to shift in the opposite + // direction to counter this. + return (float)-(oversample - 1) / (2.0f * (float)oversample); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k; + int missing_glyph_added = 0; + + k=0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + ranges[i].h_oversample = (unsigned char) spc->h_oversample; + ranges[i].v_oversample = (unsigned char) spc->v_oversample; + for (j=0; j < ranges[i].num_chars; ++j) { + int x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + if (glyph == 0 && (spc->skip_missing || missing_glyph_added)) { + rects[k].w = rects[k].h = 0; + } else { + stbtt_GetGlyphBitmapBoxSubpixel(info,glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + &x0,&y0,&x1,&y1); + rects[k].w = (stbrp_coord) (x1-x0 + spc->padding + spc->h_oversample-1); + rects[k].h = (stbrp_coord) (y1-y0 + spc->padding + spc->v_oversample-1); + if (glyph == 0) + missing_glyph_added = 1; + } + ++k; + } + } + + return k; +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, + output, + out_w - (prefilter_x - 1), + out_h - (prefilter_y - 1), + out_stride, + scale_x, + scale_y, + shift_x, + shift_y, + glyph); + + if (prefilter_x > 1) + stbtt__h_prefilter(output, out_w, out_h, out_stride, prefilter_x); + + if (prefilter_y > 1) + stbtt__v_prefilter(output, out_w, out_h, out_stride, prefilter_y); + + *sub_x = stbtt__oversample_shift(prefilter_x); + *sub_y = stbtt__oversample_shift(prefilter_y); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k, missing_glyph = -1, return_value = 1; + + // save current values + int old_h_over = spc->h_oversample; + int old_v_over = spc->v_oversample; + + k = 0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + float recip_h,recip_v,sub_x,sub_y; + spc->h_oversample = ranges[i].h_oversample; + spc->v_oversample = ranges[i].v_oversample; + recip_h = 1.0f / spc->h_oversample; + recip_v = 1.0f / spc->v_oversample; + sub_x = stbtt__oversample_shift(spc->h_oversample); + sub_y = stbtt__oversample_shift(spc->v_oversample); + for (j=0; j < ranges[i].num_chars; ++j) { + stbrp_rect *r = &rects[k]; + if (r->was_packed && r->w != 0 && r->h != 0) { + stbtt_packedchar *bc = &ranges[i].chardata_for_range[j]; + int advance, lsb, x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + stbrp_coord pad = (stbrp_coord) spc->padding; + + // pad on left and top + r->x += pad; + r->y += pad; + r->w -= pad; + r->h -= pad; + stbtt_GetGlyphHMetrics(info, glyph, &advance, &lsb); + stbtt_GetGlyphBitmapBox(info, glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + &x0,&y0,&x1,&y1); + stbtt_MakeGlyphBitmapSubpixel(info, + spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w - spc->h_oversample+1, + r->h - spc->v_oversample+1, + spc->stride_in_bytes, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + glyph); + + if (spc->h_oversample > 1) + stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->h_oversample); + + if (spc->v_oversample > 1) + stbtt__v_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->v_oversample); + + bc->x0 = (stbtt_int16) r->x; + bc->y0 = (stbtt_int16) r->y; + bc->x1 = (stbtt_int16) (r->x + r->w); + bc->y1 = (stbtt_int16) (r->y + r->h); + bc->xadvance = scale * advance; + bc->xoff = (float) x0 * recip_h + sub_x; + bc->yoff = (float) y0 * recip_v + sub_y; + bc->xoff2 = (x0 + r->w) * recip_h + sub_x; + bc->yoff2 = (y0 + r->h) * recip_v + sub_y; + + if (glyph == 0) + missing_glyph = j; + } else if (spc->skip_missing) { + return_value = 0; + } else if (r->was_packed && r->w == 0 && r->h == 0 && missing_glyph >= 0) { + ranges[i].chardata_for_range[j] = ranges[i].chardata_for_range[missing_glyph]; + } else { + return_value = 0; // if any fail, report failure + } + + ++k; + } + } + + // restore original values + spc->h_oversample = old_h_over; + spc->v_oversample = old_v_over; + + return return_value; +} + +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects) +{ + stbrp_pack_rects((stbrp_context *) spc->pack_info, rects, num_rects); +} + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) +{ + stbtt_fontinfo info; + int i, j, n, return_value; // [DEAR IMGUI] removed = 1; + //stbrp_context *context = (stbrp_context *) spc->pack_info; + stbrp_rect *rects; + + // flag all characters as NOT packed + for (i=0; i < num_ranges; ++i) + for (j=0; j < ranges[i].num_chars; ++j) + ranges[i].chardata_for_range[j].x0 = + ranges[i].chardata_for_range[j].y0 = + ranges[i].chardata_for_range[j].x1 = + ranges[i].chardata_for_range[j].y1 = 0; + + n = 0; + for (i=0; i < num_ranges; ++i) + n += ranges[i].num_chars; + + rects = (stbrp_rect *) STBTT_malloc(sizeof(*rects) * n, spc->user_allocator_context); + if (rects == NULL) + return 0; + + info.userdata = spc->user_allocator_context; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata,font_index)); + + n = stbtt_PackFontRangesGatherRects(spc, &info, ranges, num_ranges, rects); + + stbtt_PackFontRangesPackRects(spc, rects, n); + + return_value = stbtt_PackFontRangesRenderIntoRects(spc, &info, ranges, num_ranges, rects); + + STBTT_free(rects, spc->user_allocator_context); + return return_value; +} + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) +{ + stbtt_pack_range range; + range.first_unicode_codepoint_in_range = first_unicode_codepoint_in_range; + range.array_of_unicode_codepoints = NULL; + range.num_chars = num_chars_in_range; + range.chardata_for_range = chardata_for_range; + range.font_size = font_size; + return stbtt_PackFontRanges(spc, fontdata, font_index, &range, 1); +} + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap) +{ + int i_ascent, i_descent, i_lineGap; + float scale; + stbtt_fontinfo info; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata, index)); + scale = size > 0 ? stbtt_ScaleForPixelHeight(&info, size) : stbtt_ScaleForMappingEmToPixels(&info, -size); + stbtt_GetFontVMetrics(&info, &i_ascent, &i_descent, &i_lineGap); + *ascent = (float) i_ascent * scale; + *descent = (float) i_descent * scale; + *lineGap = (float) i_lineGap * scale; +} + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer) +{ + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_packedchar *b = chardata + char_index; + + if (align_to_integer) { + float x = (float) STBTT_ifloor((*xpos + b->xoff) + 0.5f); + float y = (float) STBTT_ifloor((*ypos + b->yoff) + 0.5f); + q->x0 = x; + q->y0 = y; + q->x1 = x + b->xoff2 - b->xoff; + q->y1 = y + b->yoff2 - b->yoff; + } else { + q->x0 = *xpos + b->xoff; + q->y0 = *ypos + b->yoff; + q->x1 = *xpos + b->xoff2; + q->y1 = *ypos + b->yoff2; + } + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// sdf computation +// + +#define STBTT_min(a,b) ((a) < (b) ? (a) : (b)) +#define STBTT_max(a,b) ((a) < (b) ? (b) : (a)) + +static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2]) +{ + float q0perp = q0[1]*ray[0] - q0[0]*ray[1]; + float q1perp = q1[1]*ray[0] - q1[0]*ray[1]; + float q2perp = q2[1]*ray[0] - q2[0]*ray[1]; + float roperp = orig[1]*ray[0] - orig[0]*ray[1]; + + float a = q0perp - 2*q1perp + q2perp; + float b = q1perp - q0perp; + float c = q0perp - roperp; + + float s0 = 0., s1 = 0.; + int num_s = 0; + + if (a != 0.0) { + float discr = b*b - a*c; + if (discr > 0.0) { + float rcpna = -1 / a; + float d = (float) STBTT_sqrt(discr); + s0 = (b+d) * rcpna; + s1 = (b-d) * rcpna; + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + if (d > 0.0 && s1 >= 0.0 && s1 <= 1.0) { + if (num_s == 0) s0 = s1; + ++num_s; + } + } + } else { + // 2*b*s + c = 0 + // s = -c / (2*b) + s0 = c / (-2 * b); + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + } + + if (num_s == 0) + return 0; + else { + float rcp_len2 = 1 / (ray[0]*ray[0] + ray[1]*ray[1]); + float rayn_x = ray[0] * rcp_len2, rayn_y = ray[1] * rcp_len2; + + float q0d = q0[0]*rayn_x + q0[1]*rayn_y; + float q1d = q1[0]*rayn_x + q1[1]*rayn_y; + float q2d = q2[0]*rayn_x + q2[1]*rayn_y; + float rod = orig[0]*rayn_x + orig[1]*rayn_y; + + float q10d = q1d - q0d; + float q20d = q2d - q0d; + float q0rd = q0d - rod; + + hits[0][0] = q0rd + s0*(2.0f - 2.0f*s0)*q10d + s0*s0*q20d; + hits[0][1] = a*s0+b; + + if (num_s > 1) { + hits[1][0] = q0rd + s1*(2.0f - 2.0f*s1)*q10d + s1*s1*q20d; + hits[1][1] = a*s1+b; + return 2; + } else { + return 1; + } + } +} + +static int equal(float *a, float *b) +{ + return (a[0] == b[0] && a[1] == b[1]); +} + +static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts) +{ + int i; + float orig[2], ray[2] = { 1, 0 }; + float y_frac; + int winding = 0; + + // make sure y never passes through a vertex of the shape + y_frac = (float) STBTT_fmod(y, 1.0f); + if (y_frac < 0.01f) + y += 0.01f; + else if (y_frac > 0.99f) + y -= 0.01f; + + orig[0] = x; + orig[1] = y; + + // test a ray from (-infinity,y) to (x,y) + for (i=0; i < nverts; ++i) { + if (verts[i].type == STBTT_vline) { + int x0 = (int) verts[i-1].x, y0 = (int) verts[i-1].y; + int x1 = (int) verts[i ].x, y1 = (int) verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } + if (verts[i].type == STBTT_vcurve) { + int x0 = (int) verts[i-1].x , y0 = (int) verts[i-1].y ; + int x1 = (int) verts[i ].cx, y1 = (int) verts[i ].cy; + int x2 = (int) verts[i ].x , y2 = (int) verts[i ].y ; + int ax = STBTT_min(x0,STBTT_min(x1,x2)), ay = STBTT_min(y0,STBTT_min(y1,y2)); + int by = STBTT_max(y0,STBTT_max(y1,y2)); + if (y > ay && y < by && x > ax) { + float q0[2],q1[2],q2[2]; + float hits[2][2]; + q0[0] = (float)x0; + q0[1] = (float)y0; + q1[0] = (float)x1; + q1[1] = (float)y1; + q2[0] = (float)x2; + q2[1] = (float)y2; + if (equal(q0,q1) || equal(q1,q2)) { + x0 = (int)verts[i-1].x; + y0 = (int)verts[i-1].y; + x1 = (int)verts[i ].x; + y1 = (int)verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } else { + int num_hits = stbtt__ray_intersect_bezier(orig, ray, q0, q1, q2, hits); + if (num_hits >= 1) + if (hits[0][0] < 0) + winding += (hits[0][1] < 0 ? -1 : 1); + if (num_hits >= 2) + if (hits[1][0] < 0) + winding += (hits[1][1] < 0 ? -1 : 1); + } + } + } + } + return winding; +} + +static float stbtt__cuberoot( float x ) +{ + if (x<0) + return -(float) STBTT_pow(-x,1.0f/3.0f); + else + return (float) STBTT_pow( x,1.0f/3.0f); +} + +// x^3 + a*x^2 + b*x + c = 0 +static int stbtt__solve_cubic(float a, float b, float c, float* r) +{ + float s = -a / 3; + float p = b - a*a / 3; + float q = a * (2*a*a - 9*b) / 27 + c; + float p3 = p*p*p; + float d = q*q + 4*p3 / 27; + if (d >= 0) { + float z = (float) STBTT_sqrt(d); + float u = (-q + z) / 2; + float v = (-q - z) / 2; + u = stbtt__cuberoot(u); + v = stbtt__cuberoot(v); + r[0] = s + u + v; + return 1; + } else { + float u = (float) STBTT_sqrt(-p/3); + float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative + float m = (float) STBTT_cos(v); + float n = (float) STBTT_cos(v-3.141592/2)*1.732050808f; + r[0] = s + u * 2 * m; + r[1] = s - u * (m + n); + r[2] = s - u * (m - n); + + //STBTT_assert( STBTT_fabs(((r[0]+a)*r[0]+b)*r[0]+c) < 0.05f); // these asserts may not be safe at all scales, though they're in bezier t parameter units so maybe? + //STBTT_assert( STBTT_fabs(((r[1]+a)*r[1]+b)*r[1]+c) < 0.05f); + //STBTT_assert( STBTT_fabs(((r[2]+a)*r[2]+b)*r[2]+c) < 0.05f); + return 3; + } +} + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + float scale_x = scale, scale_y = scale; + int ix0,iy0,ix1,iy1; + int w,h; + unsigned char *data; + + if (scale == 0) return NULL; + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale, scale, 0.0f,0.0f, &ix0,&iy0,&ix1,&iy1); + + // if empty, return NULL + if (ix0 == ix1 || iy0 == iy1) + return NULL; + + ix0 -= padding; + iy0 -= padding; + ix1 += padding; + iy1 += padding; + + w = (ix1 - ix0); + h = (iy1 - iy0); + + if (width ) *width = w; + if (height) *height = h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + // invert for y-downwards bitmaps + scale_y = -scale_y; + + { + int x,y,i,j; + float *precompute; + stbtt_vertex *verts; + int num_verts = stbtt_GetGlyphShape(info, glyph, &verts); + data = (unsigned char *) STBTT_malloc(w * h, info->userdata); + precompute = (float *) STBTT_malloc(num_verts * sizeof(float), info->userdata); + + for (i=0,j=num_verts-1; i < num_verts; j=i++) { + if (verts[i].type == STBTT_vline) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + float x1 = verts[j].x*scale_x, y1 = verts[j].y*scale_y; + float dist = (float) STBTT_sqrt((x1-x0)*(x1-x0) + (y1-y0)*(y1-y0)); + precompute[i] = (dist == 0) ? 0.0f : 1.0f / dist; + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[j].x *scale_x, y2 = verts[j].y *scale_y; + float x1 = verts[i].cx*scale_x, y1 = verts[i].cy*scale_y; + float x0 = verts[i].x *scale_x, y0 = verts[i].y *scale_y; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float len2 = bx*bx + by*by; + if (len2 != 0.0f) + precompute[i] = 1.0f / (bx*bx + by*by); + else + precompute[i] = 0.0f; + } else + precompute[i] = 0.0f; + } + + for (y=iy0; y < iy1; ++y) { + for (x=ix0; x < ix1; ++x) { + float val; + float min_dist = 999999.0f; + float sx = (float) x + 0.5f; + float sy = (float) y + 0.5f; + float x_gspace = (sx / scale_x); + float y_gspace = (sy / scale_y); + + int winding = stbtt__compute_crossings_x(x_gspace, y_gspace, num_verts, verts); // @OPTIMIZE: this could just be a rasterization, but needs to be line vs. non-tesselated curves so a new path + + for (i=0; i < num_verts; ++i) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + + if (verts[i].type == STBTT_vline && precompute[i] != 0.0f) { + float x1 = verts[i-1].x*scale_x, y1 = verts[i-1].y*scale_y; + + float dist,dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + + // coarse culling against bbox + //if (sx > STBTT_min(x0,x1)-min_dist && sx < STBTT_max(x0,x1)+min_dist && + // sy > STBTT_min(y0,y1)-min_dist && sy < STBTT_max(y0,y1)+min_dist) + dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; + STBTT_assert(i != 0); + if (dist < min_dist) { + // check position along line + // x' = x0 + t*(x1-x0), y' = y0 + t*(y1-y0) + // minimize (x'-sx)*(x'-sx)+(y'-sy)*(y'-sy) + float dx = x1-x0, dy = y1-y0; + float px = x0-sx, py = y0-sy; + // minimize (px+t*dx)^2 + (py+t*dy)^2 = px*px + 2*px*dx*t + t^2*dx*dx + py*py + 2*py*dy*t + t^2*dy*dy + // derivative: 2*px*dx + 2*py*dy + (2*dx*dx+2*dy*dy)*t, set to 0 and solve + float t = -(px*dx + py*dy) / (dx*dx + dy*dy); + if (t >= 0.0f && t <= 1.0f) + min_dist = dist; + } + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[i-1].x *scale_x, y2 = verts[i-1].y *scale_y; + float x1 = verts[i ].cx*scale_x, y1 = verts[i ].cy*scale_y; + float box_x0 = STBTT_min(STBTT_min(x0,x1),x2); + float box_y0 = STBTT_min(STBTT_min(y0,y1),y2); + float box_x1 = STBTT_max(STBTT_max(x0,x1),x2); + float box_y1 = STBTT_max(STBTT_max(y0,y1),y2); + // coarse culling against bbox to avoid computing cubic unnecessarily + if (sx > box_x0-min_dist && sx < box_x1+min_dist && sy > box_y0-min_dist && sy < box_y1+min_dist) { + int num=0; + float ax = x1-x0, ay = y1-y0; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float mx = x0 - sx, my = y0 - sy; + float res[3] = {0.f,0.f,0.f}; + float px,py,t,it,dist2; + float a_inv = precompute[i]; + if (a_inv == 0.0) { // if a_inv is 0, it's 2nd degree so use quadratic formula + float a = 3*(ax*bx + ay*by); + float b = 2*(ax*ax + ay*ay) + (mx*bx+my*by); + float c = mx*ax+my*ay; + if (a == 0.0) { // if a is 0, it's linear + if (b != 0.0) { + res[num++] = -c/b; + } + } else { + float discriminant = b*b - 4*a*c; + if (discriminant < 0) + num = 0; + else { + float root = (float) STBTT_sqrt(discriminant); + res[0] = (-b - root)/(2*a); + res[1] = (-b + root)/(2*a); + num = 2; // don't bother distinguishing 1-solution case, as code below will still work + } + } + } else { + float b = 3*(ax*bx + ay*by) * a_inv; // could precompute this as it doesn't depend on sample point + float c = (2*(ax*ax + ay*ay) + (mx*bx+my*by)) * a_inv; + float d = (mx*ax+my*ay) * a_inv; + num = stbtt__solve_cubic(b, c, d, res); + } + dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + + if (num >= 1 && res[0] >= 0.0f && res[0] <= 1.0f) { + t = res[0], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 2 && res[1] >= 0.0f && res[1] <= 1.0f) { + t = res[1], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 3 && res[2] >= 0.0f && res[2] <= 1.0f) { + t = res[2], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + } + } + } + if (winding == 0) + min_dist = -min_dist; // if outside the shape, value is negative + val = onedge_value + pixel_dist_scale * min_dist; + if (val < 0) + val = 0; + else if (val > 255) + val = 255; + data[(y-iy0)*w+(x-ix0)] = (unsigned char) val; + } + } + STBTT_free(precompute, info->userdata); + STBTT_free(verts, info->userdata); + } + return data; +} + +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphSDF(info, scale, stbtt_FindGlyphIndex(info, codepoint), padding, onedge_value, pixel_dist_scale, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +////////////////////////////////////////////////////////////////////////////// +// +// font name matching -- recommended not to use this +// + +// check if a utf8 string contains a prefix which is the utf16 string; if so return length of matching utf8 string +static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2) +{ + stbtt_int32 i=0; + + // convert utf16 to utf8 and compare the results while converting + while (len2) { + stbtt_uint16 ch = s2[0]*256 + s2[1]; + if (ch < 0x80) { + if (i >= len1) return -1; + if (s1[i++] != ch) return -1; + } else if (ch < 0x800) { + if (i+1 >= len1) return -1; + if (s1[i++] != 0xc0 + (ch >> 6)) return -1; + if (s1[i++] != 0x80 + (ch & 0x3f)) return -1; + } else if (ch >= 0xd800 && ch < 0xdc00) { + stbtt_uint32 c; + stbtt_uint16 ch2 = s2[2]*256 + s2[3]; + if (i+3 >= len1) return -1; + c = ((ch - 0xd800) << 10) + (ch2 - 0xdc00) + 0x10000; + if (s1[i++] != 0xf0 + (c >> 18)) return -1; + if (s1[i++] != 0x80 + ((c >> 12) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c ) & 0x3f)) return -1; + s2 += 2; // plus another 2 below + len2 -= 2; + } else if (ch >= 0xdc00 && ch < 0xe000) { + return -1; + } else { + if (i+2 >= len1) return -1; + if (s1[i++] != 0xe0 + (ch >> 12)) return -1; + if (s1[i++] != 0x80 + ((ch >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((ch ) & 0x3f)) return -1; + } + s2 += 2; + len2 -= 2; + } + return i; +} + +static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2) +{ + return len1 == stbtt__CompareUTF8toUTF16_bigendian_prefix((stbtt_uint8*) s1, len1, (stbtt_uint8*) s2, len2); +} + +// returns results in whatever encoding you request... but note that 2-byte encodings +// will be BIG-ENDIAN... use stbtt_CompareUTF8toUTF16_bigendian() to compare +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID) +{ + stbtt_int32 i,count,stringOffset; + stbtt_uint8 *fc = font->data; + stbtt_uint32 offset = font->fontstart; + stbtt_uint32 nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return NULL; + + count = ttUSHORT(fc+nm+2); + stringOffset = nm + ttUSHORT(fc+nm+4); + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + if (platformID == ttUSHORT(fc+loc+0) && encodingID == ttUSHORT(fc+loc+2) + && languageID == ttUSHORT(fc+loc+4) && nameID == ttUSHORT(fc+loc+6)) { + *length = ttUSHORT(fc+loc+8); + return (const char *) (fc+stringOffset+ttUSHORT(fc+loc+10)); + } + } + return NULL; +} + +static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id) +{ + stbtt_int32 i; + stbtt_int32 count = ttUSHORT(fc+nm+2); + stbtt_int32 stringOffset = nm + ttUSHORT(fc+nm+4); + + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + stbtt_int32 id = ttUSHORT(fc+loc+6); + if (id == target_id) { + // find the encoding + stbtt_int32 platform = ttUSHORT(fc+loc+0), encoding = ttUSHORT(fc+loc+2), language = ttUSHORT(fc+loc+4); + + // is this a Unicode encoding? + if (platform == 0 || (platform == 3 && encoding == 1) || (platform == 3 && encoding == 10)) { + stbtt_int32 slen = ttUSHORT(fc+loc+8); + stbtt_int32 off = ttUSHORT(fc+loc+10); + + // check if there's a prefix match + stbtt_int32 matchlen = stbtt__CompareUTF8toUTF16_bigendian_prefix(name, nlen, fc+stringOffset+off,slen); + if (matchlen >= 0) { + // check for target_id+1 immediately following, with same encoding & language + if (i+1 < count && ttUSHORT(fc+loc+12+6) == next_id && ttUSHORT(fc+loc+12) == platform && ttUSHORT(fc+loc+12+2) == encoding && ttUSHORT(fc+loc+12+4) == language) { + slen = ttUSHORT(fc+loc+12+8); + off = ttUSHORT(fc+loc+12+10); + if (slen == 0) { + if (matchlen == nlen) + return 1; + } else if (matchlen < nlen && name[matchlen] == ' ') { + ++matchlen; + if (stbtt_CompareUTF8toUTF16_bigendian_internal((char*) (name+matchlen), nlen-matchlen, (char*)(fc+stringOffset+off),slen)) + return 1; + } + } else { + // if nothing immediately following + if (matchlen == nlen) + return 1; + } + } + } + + // @TODO handle other encodings + } + } + return 0; +} + +static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags) +{ + stbtt_int32 nlen = (stbtt_int32) STBTT_strlen((char *) name); + stbtt_uint32 nm,hd; + if (!stbtt__isfont(fc+offset)) return 0; + + // check italics/bold/underline flags in macStyle... + if (flags) { + hd = stbtt__find_table(fc, offset, "head"); + if ((ttUSHORT(fc+hd+44) & 7) != (flags & 7)) return 0; + } + + nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return 0; + + if (flags) { + // if we checked the macStyle flags, then just check the family and ignore the subfamily + if (stbtt__matchpair(fc, nm, name, nlen, 16, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } else { + if (stbtt__matchpair(fc, nm, name, nlen, 16, 17)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, 2)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } + + return 0; +} + +static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags) +{ + stbtt_int32 i; + for (i=0;;++i) { + stbtt_int32 off = stbtt_GetFontOffsetForIndex(font_collection, i); + if (off < 0) return off; + if (stbtt__matches((stbtt_uint8 *) font_collection, off, (stbtt_uint8*) name_utf8, flags)) + return off; + } +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, + float pixel_height, unsigned char *pixels, int pw, int ph, + int first_char, int num_chars, stbtt_bakedchar *chardata) +{ + return stbtt_BakeFontBitmap_internal((unsigned char *) data, offset, pixel_height, pixels, pw, ph, first_char, num_chars, chardata); +} + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index) +{ + return stbtt_GetFontOffsetForIndex_internal((unsigned char *) data, index); +} + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data) +{ + return stbtt_GetNumberOfFonts_internal((unsigned char *) data); +} + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset) +{ + return stbtt_InitFont_internal(info, (unsigned char *) data, offset); +} + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags) +{ + return stbtt_FindMatchingFont_internal((unsigned char *) fontdata, (char *) name, flags); +} + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2) +{ + return stbtt_CompareUTF8toUTF16_bigendian_internal((char *) s1, len1, (char *) s2, len2); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif // STB_TRUETYPE_IMPLEMENTATION + + +// FULL VERSION HISTORY +// +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() +// 1.19 (2018-02-11) OpenType GPOS kerning (horizontal only), STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) allow user-defined fabs() replacement +// fix memory leak if fontsize=0.0 +// fix warning from duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use alloc userdata for PackFontRanges +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// allow PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// 1.06 (2015-07-14) performance improvements (~35% faster on x86 and x64 on test machine) +// also more precise AA rasterizer, except if shapes overlap +// remove need for STBTT_sort +// 1.05 (2015-04-15) fix misplaced definitions for STBTT_STATIC +// 1.04 (2015-04-15) typo in example +// 1.03 (2015-04-12) STBTT_STATIC, fix memory leak in new packing, various fixes +// 1.02 (2014-12-10) fix various warnings & compile issues w/ stb_rect_pack, C++ +// 1.01 (2014-12-08) fix subpixel position when oversampling to exactly match +// non-oversampled; STBTT_POINT_SIZE for packed case only +// 1.00 (2014-12-06) add new PackBegin etc. API, w/ support for oversampling +// 0.99 (2014-09-18) fix multiple bugs with subpixel rendering (ryg) +// 0.9 (2014-08-07) support certain mac/iOS fonts without an MS platformID +// 0.8b (2014-07-07) fix a warning +// 0.8 (2014-05-25) fix a few more warnings +// 0.7 (2013-09-25) bugfix: subpixel glyph bug fixed in 0.5 had come back +// 0.6c (2012-07-24) improve documentation +// 0.6b (2012-07-20) fix a few more warnings +// 0.6 (2012-07-17) fix warnings; added stbtt_ScaleForMappingEmToPixels, +// stbtt_GetFontBoundingBox, stbtt_IsGlyphEmpty +// 0.5 (2011-12-09) bugfixes: +// subpixel glyph renderer computed wrong bounding box +// first vertex of shape can be off-curve (FreeSans) +// 0.4b (2011-12-03) fixed an error in the font baking example +// 0.4 (2011-12-01) kerning, subpixel rendering (tor) +// bugfixes for: +// codepoint-to-glyph conversion using table fmt=12 +// codepoint-to-glyph conversion using table fmt=4 +// stbtt_GetBakedQuad with non-square texture (Zer) +// updated Hello World! sample to use kerning and subpixel +// fixed some warnings +// 0.3 (2009-06-24) cmap fmt=12, compound shapes (MM) +// userdata, malloc-from-userdata, non-zero fill (stb) +// 0.2 (2009-03-11) Fix unsigned/signed char warnings +// 0.1 (2009-03-09) First public release +// + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/README.md b/imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/README.md new file mode 100644 index 000000000..5fcfc2d79 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/README.md @@ -0,0 +1,37 @@ +# imgui_freetype + +Build font atlases using FreeType instead of stb_truetype (which is the default font rasterizer). +
by @vuhdo, @mikesart, @ocornut. + +### Usage + +1. Get latest FreeType binaries or build yourself (under Windows you may use vcpkg with `vcpkg install freetype --triplet=x64-windows`, `vcpkg integrate install`). +2. Add imgui_freetype.h/cpp alongside your project files. +3. Add `#define IMGUI_ENABLE_FREETYPE` in your [imconfig.h](https://github.com/ocornut/imgui/blob/master/imconfig.h) file + +### About Gamma Correct Blending + +FreeType assumes blending in linear space rather than gamma space. +See FreeType note for [FT_Render_Glyph](https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Glyph). +For correct results you need to be using sRGB and convert to linear space in the pixel shader output. +The default Dear ImGui styles will be impacted by this change (alpha values will need tweaking). + +### Testbed for toying with settings (for developers) + +See https://gist.github.com/ocornut/b3a9ecf13502fd818799a452969649ad + +### Known issues + +- Oversampling settins are ignored but also not so much necessary with the higher quality rendering. + +### Comparaison + +Small, thin anti-aliased fonts typically benefit a lot from FreeType's hinting: +![comparing_font_rasterizers](https://user-images.githubusercontent.com/8225057/107550178-fef87f00-6bd0-11eb-8d09-e2edb2f0ccfc.gif) + +### Colorful glyphs/emojis + +You can use the `ImGuiFreeTypeBuilderFlags_LoadColor` flag to load certain colorful glyphs. See the +["Using Colorful Glyphs/Emojis"](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md#using-colorful-glyphsemojis) section of FONTS.md. + +![colored glyphs](https://user-images.githubusercontent.com/8225057/106171241-9dc4ba80-6191-11eb-8a69-ca1467b206d1.png) diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/imgui_freetype.cpp b/imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/imgui_freetype.cpp new file mode 100644 index 000000000..03255326b --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/imgui_freetype.cpp @@ -0,0 +1,780 @@ +// dear imgui: FreeType font builder (used as a replacement for the stb_truetype builder) +// (code) + +// Get the latest version at https://github.com/ocornut/imgui/tree/master/misc/freetype +// Original code by @vuhdo (Aleksei Skriabin). Improvements by @mikesart. Maintained since 2019 by @ocornut. + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2021/08/23: fixed crash when FT_Render_Glyph() fails to render a glyph and returns NULL. +// 2021/03/05: added ImGuiFreeTypeBuilderFlags_Bitmap to load bitmap glyphs. +// 2021/03/02: set 'atlas->TexPixelsUseColors = true' to help some backends with deciding of a prefered texture format. +// 2021/01/28: added support for color-layered glyphs via ImGuiFreeTypeBuilderFlags_LoadColor (require Freetype 2.10+). +// 2021/01/26: simplified integration by using '#define IMGUI_ENABLE_FREETYPE'. +// renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. removed ImGuiFreeType::BuildFontAtlas(). +// 2020/06/04: fix for rare case where FT_Get_Char_Index() succeed but FT_Load_Glyph() fails. +// 2019/02/09: added RasterizerFlags::Monochrome flag to disable font anti-aliasing (combine with ::MonoHinting for best results!) +// 2019/01/15: added support for imgui allocators + added FreeType only override function SetAllocatorFunctions(). +// 2019/01/10: re-factored to match big update in STB builder. fixed texture height waste. fixed redundant glyphs when merging. support for glyph padding. +// 2018/06/08: added support for ImFontConfig::GlyphMinAdvanceX, GlyphMaxAdvanceX. +// 2018/02/04: moved to main imgui repository (away from http://www.github.com/ocornut/imgui_club) +// 2018/01/22: fix for addition of ImFontAtlas::TexUvscale member. +// 2017/10/22: minor inconsequential change to match change in master (removed an unnecessary statement). +// 2017/09/26: fixes for imgui internal changes. +// 2017/08/26: cleanup, optimizations, support for ImFontConfig::RasterizerFlags, ImFontConfig::RasterizerMultiply. +// 2017/08/16: imported from https://github.com/Vuhdo/imgui_freetype into http://www.github.com/ocornut/imgui_club, updated for latest changes in ImFontAtlas, minor tweaks. + +// About Gamma Correct Blending: +// - FreeType assumes blending in linear space rather than gamma space. +// - See https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Glyph +// - For correct results you need to be using sRGB and convert to linear space in the pixel shader output. +// - The default dear imgui styles will be impacted by this change (alpha values will need tweaking). + +// FIXME: cfg.OversampleH, OversampleV are not supported (but perhaps not so necessary with this rasterizer). + +#include "imgui_freetype.h" +#include "imgui_internal.h" // ImMin,ImMax,ImFontAtlasBuild*, +#include +#include +#include FT_FREETYPE_H // +#include FT_MODULE_H // +#include FT_GLYPH_H // +#include FT_SYNTHESIS_H // + +#ifdef _MSC_VER +#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +#if defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#endif + +//------------------------------------------------------------------------- +// Data +//------------------------------------------------------------------------- + +// Default memory allocators +static void* ImGuiFreeTypeDefaultAllocFunc(size_t size, void* user_data) { IM_UNUSED(user_data); return IM_ALLOC(size); } +static void ImGuiFreeTypeDefaultFreeFunc(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_FREE(ptr); } + +// Current memory allocators +static void* (*GImGuiFreeTypeAllocFunc)(size_t size, void* user_data) = ImGuiFreeTypeDefaultAllocFunc; +static void (*GImGuiFreeTypeFreeFunc)(void* ptr, void* user_data) = ImGuiFreeTypeDefaultFreeFunc; +static void* GImGuiFreeTypeAllocatorUserData = NULL; + +//------------------------------------------------------------------------- +// Code +//------------------------------------------------------------------------- + +namespace +{ + // Glyph metrics: + // -------------- + // + // xmin xmax + // | | + // |<-------- width -------->| + // | | + // | +-------------------------+----------------- ymax + // | | ggggggggg ggggg | ^ ^ + // | | g:::::::::ggg::::g | | | + // | | g:::::::::::::::::g | | | + // | | g::::::ggggg::::::gg | | | + // | | g:::::g g:::::g | | | + // offsetX -|-------->| g:::::g g:::::g | offsetY | + // | | g:::::g g:::::g | | | + // | | g::::::g g:::::g | | | + // | | g:::::::ggggg:::::g | | | + // | | g::::::::::::::::g | | height + // | | gg::::::::::::::g | | | + // baseline ---*---------|---- gggggggg::::::g-----*-------- | + // / | | g:::::g | | + // origin | | gggggg g:::::g | | + // | | g:::::gg gg:::::g | | + // | | g::::::ggg:::::::g | | + // | | gg:::::::::::::g | | + // | | ggg::::::ggg | | + // | | gggggg | v + // | +-------------------------+----------------- ymin + // | | + // |------------- advanceX ----------->| + + // A structure that describe a glyph. + struct GlyphInfo + { + int Width; // Glyph's width in pixels. + int Height; // Glyph's height in pixels. + FT_Int OffsetX; // The distance from the origin ("pen position") to the left of the glyph. + FT_Int OffsetY; // The distance from the origin to the top of the glyph. This is usually a value < 0. + float AdvanceX; // The distance from the origin to the origin of the next glyph. This is usually a value > 0. + bool IsColored; // The glyph is colored + }; + + // Font parameters and metrics. + struct FontInfo + { + uint32_t PixelHeight; // Size this font was generated with. + float Ascender; // The pixel extents above the baseline in pixels (typically positive). + float Descender; // The extents below the baseline in pixels (typically negative). + float LineSpacing; // The baseline-to-baseline distance. Note that it usually is larger than the sum of the ascender and descender taken as absolute values. There is also no guarantee that no glyphs extend above or below subsequent baselines when using this distance. Think of it as a value the designer of the font finds appropriate. + float LineGap; // The spacing in pixels between one row's descent and the next row's ascent. + float MaxAdvanceWidth; // This field gives the maximum horizontal cursor advance for all glyphs in the font. + }; + + // FreeType glyph rasterizer. + // NB: No ctor/dtor, explicitly call Init()/Shutdown() + struct FreeTypeFont + { + bool InitFont(FT_Library ft_library, const ImFontConfig& cfg, unsigned int extra_user_flags); // Initialize from an external data buffer. Doesn't copy data, and you must ensure it stays valid up to this object lifetime. + void CloseFont(); + void SetPixelHeight(int pixel_height); // Change font pixel size. All following calls to RasterizeGlyph() will use this size + const FT_Glyph_Metrics* LoadGlyph(uint32_t in_codepoint); + const FT_Bitmap* RenderGlyphAndGetInfo(GlyphInfo* out_glyph_info); + void BlitGlyph(const FT_Bitmap* ft_bitmap, uint32_t* dst, uint32_t dst_pitch, unsigned char* multiply_table = NULL); + ~FreeTypeFont() { CloseFont(); } + + // [Internals] + FontInfo Info; // Font descriptor of the current font. + FT_Face Face; + unsigned int UserFlags; // = ImFontConfig::RasterizerFlags + FT_Int32 LoadFlags; + FT_Render_Mode RenderMode; + }; + + // From SDL_ttf: Handy routines for converting from fixed point + #define FT_CEIL(X) (((X + 63) & -64) / 64) + + bool FreeTypeFont::InitFont(FT_Library ft_library, const ImFontConfig& cfg, unsigned int extra_font_builder_flags) + { + FT_Error error = FT_New_Memory_Face(ft_library, (uint8_t*)cfg.FontData, (uint32_t)cfg.FontDataSize, (uint32_t)cfg.FontNo, &Face); + if (error != 0) + return false; + error = FT_Select_Charmap(Face, FT_ENCODING_UNICODE); + if (error != 0) + return false; + + // Convert to FreeType flags (NB: Bold and Oblique are processed separately) + UserFlags = cfg.FontBuilderFlags | extra_font_builder_flags; + + LoadFlags = 0; + if ((UserFlags & ImGuiFreeTypeBuilderFlags_Bitmap) == 0) + LoadFlags |= FT_LOAD_NO_BITMAP; + + if (UserFlags & ImGuiFreeTypeBuilderFlags_NoHinting) + LoadFlags |= FT_LOAD_NO_HINTING; + if (UserFlags & ImGuiFreeTypeBuilderFlags_NoAutoHint) + LoadFlags |= FT_LOAD_NO_AUTOHINT; + if (UserFlags & ImGuiFreeTypeBuilderFlags_ForceAutoHint) + LoadFlags |= FT_LOAD_FORCE_AUTOHINT; + if (UserFlags & ImGuiFreeTypeBuilderFlags_LightHinting) + LoadFlags |= FT_LOAD_TARGET_LIGHT; + else if (UserFlags & ImGuiFreeTypeBuilderFlags_MonoHinting) + LoadFlags |= FT_LOAD_TARGET_MONO; + else + LoadFlags |= FT_LOAD_TARGET_NORMAL; + + if (UserFlags & ImGuiFreeTypeBuilderFlags_Monochrome) + RenderMode = FT_RENDER_MODE_MONO; + else + RenderMode = FT_RENDER_MODE_NORMAL; + + if (UserFlags & ImGuiFreeTypeBuilderFlags_LoadColor) + LoadFlags |= FT_LOAD_COLOR; + + memset(&Info, 0, sizeof(Info)); + SetPixelHeight((uint32_t)cfg.SizePixels); + + return true; + } + + void FreeTypeFont::CloseFont() + { + if (Face) + { + FT_Done_Face(Face); + Face = NULL; + } + } + + void FreeTypeFont::SetPixelHeight(int pixel_height) + { + // Vuhdo: I'm not sure how to deal with font sizes properly. As far as I understand, currently ImGui assumes that the 'pixel_height' + // is a maximum height of an any given glyph, i.e. it's the sum of font's ascender and descender. Seems strange to me. + // NB: FT_Set_Pixel_Sizes() doesn't seem to get us the same result. + FT_Size_RequestRec req; + req.type = (UserFlags & ImGuiFreeTypeBuilderFlags_Bitmap) ? FT_SIZE_REQUEST_TYPE_NOMINAL : FT_SIZE_REQUEST_TYPE_REAL_DIM; + req.width = 0; + req.height = (uint32_t)pixel_height * 64; + req.horiResolution = 0; + req.vertResolution = 0; + FT_Request_Size(Face, &req); + + // Update font info + FT_Size_Metrics metrics = Face->size->metrics; + Info.PixelHeight = (uint32_t)pixel_height; + Info.Ascender = (float)FT_CEIL(metrics.ascender); + Info.Descender = (float)FT_CEIL(metrics.descender); + Info.LineSpacing = (float)FT_CEIL(metrics.height); + Info.LineGap = (float)FT_CEIL(metrics.height - metrics.ascender + metrics.descender); + Info.MaxAdvanceWidth = (float)FT_CEIL(metrics.max_advance); + } + + const FT_Glyph_Metrics* FreeTypeFont::LoadGlyph(uint32_t codepoint) + { + uint32_t glyph_index = FT_Get_Char_Index(Face, codepoint); + if (glyph_index == 0) + return NULL; + + // If this crash for you: FreeType 2.11.0 has a crash bug on some bitmap/colored fonts. + // - https://gitlab.freedesktop.org/freetype/freetype/-/issues/1076 + // - https://github.com/ocornut/imgui/issues/4567 + // - https://github.com/ocornut/imgui/issues/4566 + // You can use FreeType 2.10, or the patched version of 2.11.0 in VcPkg, or probably any upcoming FreeType version. + FT_Error error = FT_Load_Glyph(Face, glyph_index, LoadFlags); + if (error) + return NULL; + + // Need an outline for this to work + FT_GlyphSlot slot = Face->glyph; + IM_ASSERT(slot->format == FT_GLYPH_FORMAT_OUTLINE || slot->format == FT_GLYPH_FORMAT_BITMAP); + + // Apply convenience transform (this is not picking from real "Bold"/"Italic" fonts! Merely applying FreeType helper transform. Oblique == Slanting) + if (UserFlags & ImGuiFreeTypeBuilderFlags_Bold) + FT_GlyphSlot_Embolden(slot); + if (UserFlags & ImGuiFreeTypeBuilderFlags_Oblique) + { + FT_GlyphSlot_Oblique(slot); + //FT_BBox bbox; + //FT_Outline_Get_BBox(&slot->outline, &bbox); + //slot->metrics.width = bbox.xMax - bbox.xMin; + //slot->metrics.height = bbox.yMax - bbox.yMin; + } + + return &slot->metrics; + } + + const FT_Bitmap* FreeTypeFont::RenderGlyphAndGetInfo(GlyphInfo* out_glyph_info) + { + FT_GlyphSlot slot = Face->glyph; + FT_Error error = FT_Render_Glyph(slot, RenderMode); + if (error != 0) + return NULL; + + FT_Bitmap* ft_bitmap = &Face->glyph->bitmap; + out_glyph_info->Width = (int)ft_bitmap->width; + out_glyph_info->Height = (int)ft_bitmap->rows; + out_glyph_info->OffsetX = Face->glyph->bitmap_left; + out_glyph_info->OffsetY = -Face->glyph->bitmap_top; + out_glyph_info->AdvanceX = (float)FT_CEIL(slot->advance.x); + out_glyph_info->IsColored = (ft_bitmap->pixel_mode == FT_PIXEL_MODE_BGRA); + + return ft_bitmap; + } + + void FreeTypeFont::BlitGlyph(const FT_Bitmap* ft_bitmap, uint32_t* dst, uint32_t dst_pitch, unsigned char* multiply_table) + { + IM_ASSERT(ft_bitmap != NULL); + const uint32_t w = ft_bitmap->width; + const uint32_t h = ft_bitmap->rows; + const uint8_t* src = ft_bitmap->buffer; + const uint32_t src_pitch = ft_bitmap->pitch; + + switch (ft_bitmap->pixel_mode) + { + case FT_PIXEL_MODE_GRAY: // Grayscale image, 1 byte per pixel. + { + if (multiply_table == NULL) + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + for (uint32_t x = 0; x < w; x++) + dst[x] = IM_COL32(255, 255, 255, src[x]); + } + else + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + for (uint32_t x = 0; x < w; x++) + dst[x] = IM_COL32(255, 255, 255, multiply_table[src[x]]); + } + break; + } + case FT_PIXEL_MODE_MONO: // Monochrome image, 1 bit per pixel. The bits in each byte are ordered from MSB to LSB. + { + uint8_t color0 = multiply_table ? multiply_table[0] : 0; + uint8_t color1 = multiply_table ? multiply_table[255] : 255; + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + { + uint8_t bits = 0; + const uint8_t* bits_ptr = src; + for (uint32_t x = 0; x < w; x++, bits <<= 1) + { + if ((x & 7) == 0) + bits = *bits_ptr++; + dst[x] = IM_COL32(255, 255, 255, (bits & 0x80) ? color1 : color0); + } + } + break; + } + case FT_PIXEL_MODE_BGRA: + { + // FIXME: Converting pre-multiplied alpha to straight. Doesn't smell good. + #define DE_MULTIPLY(color, alpha) (ImU32)(255.0f * (float)color / (float)alpha + 0.5f) + if (multiply_table == NULL) + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + for (uint32_t x = 0; x < w; x++) + { + uint8_t r = src[x * 4 + 2], g = src[x * 4 + 1], b = src[x * 4], a = src[x * 4 + 3]; + dst[x] = IM_COL32(DE_MULTIPLY(r, a), DE_MULTIPLY(g, a), DE_MULTIPLY(b, a), a); + } + } + else + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + { + for (uint32_t x = 0; x < w; x++) + { + uint8_t r = src[x * 4 + 2], g = src[x * 4 + 1], b = src[x * 4], a = src[x * 4 + 3]; + dst[x] = IM_COL32(multiply_table[DE_MULTIPLY(r, a)], multiply_table[DE_MULTIPLY(g, a)], multiply_table[DE_MULTIPLY(b, a)], multiply_table[a]); + } + } + } + #undef DE_MULTIPLY + break; + } + default: + IM_ASSERT(0 && "FreeTypeFont::BlitGlyph(): Unknown bitmap pixel mode!"); + } + } +} + +#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION +#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) +#define STBRP_STATIC +#define STB_RECT_PACK_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_RECT_PACK_FILENAME +#include IMGUI_STB_RECT_PACK_FILENAME +#else +#include "imstb_rectpack.h" +#endif +#endif + +struct ImFontBuildSrcGlyphFT +{ + GlyphInfo Info; + uint32_t Codepoint; + unsigned int* BitmapData; // Point within one of the dst_tmp_bitmap_buffers[] array + + ImFontBuildSrcGlyphFT() { memset((void*)this, 0, sizeof(*this)); } +}; + +struct ImFontBuildSrcDataFT +{ + FreeTypeFont Font; + stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. + const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) + int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] + int GlyphsHighest; // Highest requested codepoint + int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) + ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) + ImVector GlyphsList; +}; + +// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) +struct ImFontBuildDstDataFT +{ + int SrcCount; // Number of source fonts targeting this destination font. + int GlyphsHighest; + int GlyphsCount; + ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. +}; + +bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, unsigned int extra_flags) +{ + IM_ASSERT(atlas->ConfigData.Size > 0); + + ImFontAtlasBuildInit(atlas); + + // Clear atlas + atlas->TexID = (ImTextureID)NULL; + atlas->TexWidth = atlas->TexHeight = 0; + atlas->TexUvScale = ImVec2(0.0f, 0.0f); + atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); + atlas->ClearTexData(); + + // Temporary storage for building + bool src_load_color = false; + ImVector src_tmp_array; + ImVector dst_tmp_array; + src_tmp_array.resize(atlas->ConfigData.Size); + dst_tmp_array.resize(atlas->Fonts.Size); + memset((void*)src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); + memset((void*)dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); + + // 1. Initialize font loading structure, check font data validity + for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + FreeTypeFont& font_face = src_tmp.Font; + IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); + + // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) + src_tmp.DstIndex = -1; + for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) + if (cfg.DstFont == atlas->Fonts[output_i]) + src_tmp.DstIndex = output_i; + IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? + if (src_tmp.DstIndex == -1) + return false; + + // Load font + if (!font_face.InitFont(ft_library, cfg, extra_flags)) + return false; + + // Measure highest codepoints + src_load_color |= (cfg.FontBuilderFlags & ImGuiFreeTypeBuilderFlags_LoadColor) != 0; + ImFontBuildDstDataFT& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); + dst_tmp.SrcCount++; + dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); + } + + // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. + int total_glyphs_count = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + ImFontBuildDstDataFT& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); + if (dst_tmp.GlyphsSet.Storage.empty()) + dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); + + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + for (int codepoint = src_range[0]; codepoint <= (int)src_range[1]; codepoint++) + { + if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option (e.g. MergeOverwrite) + continue; + uint32_t glyph_index = FT_Get_Char_Index(src_tmp.Font.Face, codepoint); // It is actually in the font? (FIXME-OPT: We are not storing the glyph_index..) + if (glyph_index == 0) + continue; + + // Add to avail set/counters + src_tmp.GlyphsCount++; + dst_tmp.GlyphsCount++; + src_tmp.GlyphsSet.SetBit(codepoint); + dst_tmp.GlyphsSet.SetBit(codepoint); + total_glyphs_count++; + } + } + + // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); + + IM_ASSERT(sizeof(src_tmp.GlyphsSet.Storage.Data[0]) == sizeof(ImU32)); + const ImU32* it_begin = src_tmp.GlyphsSet.Storage.begin(); + const ImU32* it_end = src_tmp.GlyphsSet.Storage.end(); + for (const ImU32* it = it_begin; it < it_end; it++) + if (ImU32 entries_32 = *it) + for (ImU32 bit_n = 0; bit_n < 32; bit_n++) + if (entries_32 & ((ImU32)1 << bit_n)) + { + ImFontBuildSrcGlyphFT src_glyph; + src_glyph.Codepoint = (ImWchar)(((it - it_begin) << 5) + bit_n); + //src_glyph.GlyphIndex = 0; // FIXME-OPT: We had this info in the previous step and lost it.. + src_tmp.GlyphsList.push_back(src_glyph); + } + src_tmp.GlyphsSet.Clear(); + IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); + } + for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) + dst_tmp_array[dst_i].GlyphsSet.Clear(); + dst_tmp_array.clear(); + + // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) + // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) + ImVector buf_rects; + buf_rects.resize(total_glyphs_count); + memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); + + // Allocate temporary rasterization data buffers. + // We could not find a way to retrieve accurate glyph size without rendering them. + // (e.g. slot->metrics->width not always matching bitmap->width, especially considering the Oblique transform) + // We allocate in chunks of 256 KB to not waste too much extra memory ahead. Hopefully users of FreeType won't mind the temporary allocations. + const int BITMAP_BUFFERS_CHUNK_SIZE = 256 * 1024; + int buf_bitmap_current_used_bytes = 0; + ImVector buf_bitmap_buffers; + buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); + + // 4. Gather glyphs sizes so we can pack them in our virtual canvas. + // 8. Render/rasterize font characters into the texture + int total_surface = 0; + int buf_rects_out_n = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + src_tmp.Rects = &buf_rects[buf_rects_out_n]; + buf_rects_out_n += src_tmp.GlyphsCount; + + // Compute multiply table if requested + const bool multiply_enabled = (cfg.RasterizerMultiply != 1.0f); + unsigned char multiply_table[256]; + if (multiply_enabled) + ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); + + // Gather the sizes of all rectangles we will need to pack + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) + { + ImFontBuildSrcGlyphFT& src_glyph = src_tmp.GlyphsList[glyph_i]; + + const FT_Glyph_Metrics* metrics = src_tmp.Font.LoadGlyph(src_glyph.Codepoint); + if (metrics == NULL) + continue; + + // Render glyph into a bitmap (currently held by FreeType) + const FT_Bitmap* ft_bitmap = src_tmp.Font.RenderGlyphAndGetInfo(&src_glyph.Info); + if (ft_bitmap == NULL) + continue; + + // Allocate new temporary chunk if needed + const int bitmap_size_in_bytes = src_glyph.Info.Width * src_glyph.Info.Height * 4; + if (buf_bitmap_current_used_bytes + bitmap_size_in_bytes > BITMAP_BUFFERS_CHUNK_SIZE) + { + buf_bitmap_current_used_bytes = 0; + buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); + } + IM_ASSERT(buf_bitmap_current_used_bytes + bitmap_size_in_bytes <= BITMAP_BUFFERS_CHUNK_SIZE); // We could probably allocate custom-sized buffer instead. + + // Blit rasterized pixels to our temporary buffer and keep a pointer to it. + src_glyph.BitmapData = (unsigned int*)(buf_bitmap_buffers.back() + buf_bitmap_current_used_bytes); + buf_bitmap_current_used_bytes += bitmap_size_in_bytes; + src_tmp.Font.BlitGlyph(ft_bitmap, src_glyph.BitmapData, src_glyph.Info.Width, multiply_enabled ? multiply_table : NULL); + + src_tmp.Rects[glyph_i].w = (stbrp_coord)(src_glyph.Info.Width + padding); + src_tmp.Rects[glyph_i].h = (stbrp_coord)(src_glyph.Info.Height + padding); + total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; + } + } + + // We need a width for the skyline algorithm, any width! + // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. + // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. + const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; + atlas->TexHeight = 0; + if (atlas->TexDesiredWidth > 0) + atlas->TexWidth = atlas->TexDesiredWidth; + else + atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; + + // 5. Start packing + // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). + const int TEX_HEIGHT_MAX = 1024 * 32; + const int num_nodes_for_packing_algorithm = atlas->TexWidth - atlas->TexGlyphPadding; + ImVector pack_nodes; + pack_nodes.resize(num_nodes_for_packing_algorithm); + stbrp_context pack_context; + stbrp_init_target(&pack_context, atlas->TexWidth, TEX_HEIGHT_MAX, pack_nodes.Data, pack_nodes.Size); + ImFontAtlasBuildPackCustomRects(atlas, &pack_context); + + // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbrp_pack_rects(&pack_context, src_tmp.Rects, src_tmp.GlyphsCount); + + // Extend texture height and mark missing glyphs as non-packed so we won't render them. + // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + if (src_tmp.Rects[glyph_i].was_packed) + atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); + } + + // 7. Allocate texture + atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); + atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); + if (src_load_color) + { + size_t tex_size = (size_t)atlas->TexWidth * atlas->TexHeight * 4; + atlas->TexPixelsRGBA32 = (unsigned int*)IM_ALLOC(tex_size); + memset(atlas->TexPixelsRGBA32, 0, tex_size); + } + else + { + size_t tex_size = (size_t)atlas->TexWidth * atlas->TexHeight * 1; + atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(tex_size); + memset(atlas->TexPixelsAlpha8, 0, tex_size); + } + + // 8. Copy rasterized font characters back into the main texture + // 9. Setup ImFont and glyphs for runtime + bool tex_use_colors = false; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + // When merging fonts with MergeMode=true: + // - We can have multiple input fonts writing into a same destination font. + // - dst_font->ConfigData is != from cfg which is our source configuration. + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFont* dst_font = cfg.DstFont; + + const float ascent = src_tmp.Font.Info.Ascender; + const float descent = src_tmp.Font.Info.Descender; + ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); + const float font_off_x = cfg.GlyphOffset.x; + const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); + + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + { + ImFontBuildSrcGlyphFT& src_glyph = src_tmp.GlyphsList[glyph_i]; + stbrp_rect& pack_rect = src_tmp.Rects[glyph_i]; + IM_ASSERT(pack_rect.was_packed); + if (pack_rect.w == 0 && pack_rect.h == 0) + continue; + + GlyphInfo& info = src_glyph.Info; + IM_ASSERT(info.Width + padding <= pack_rect.w); + IM_ASSERT(info.Height + padding <= pack_rect.h); + const int tx = pack_rect.x + padding; + const int ty = pack_rect.y + padding; + + // Register glyph + float x0 = info.OffsetX + font_off_x; + float y0 = info.OffsetY + font_off_y; + float x1 = x0 + info.Width; + float y1 = y0 + info.Height; + float u0 = (tx) / (float)atlas->TexWidth; + float v0 = (ty) / (float)atlas->TexHeight; + float u1 = (tx + info.Width) / (float)atlas->TexWidth; + float v1 = (ty + info.Height) / (float)atlas->TexHeight; + dst_font->AddGlyph(&cfg, (ImWchar)src_glyph.Codepoint, x0, y0, x1, y1, u0, v0, u1, v1, info.AdvanceX); + + ImFontGlyph* dst_glyph = &dst_font->Glyphs.back(); + IM_ASSERT(dst_glyph->Codepoint == src_glyph.Codepoint); + if (src_glyph.Info.IsColored) + dst_glyph->Colored = tex_use_colors = true; + + // Blit from temporary buffer to final texture + size_t blit_src_stride = (size_t)src_glyph.Info.Width; + size_t blit_dst_stride = (size_t)atlas->TexWidth; + unsigned int* blit_src = src_glyph.BitmapData; + if (atlas->TexPixelsAlpha8 != NULL) + { + unsigned char* blit_dst = atlas->TexPixelsAlpha8 + (ty * blit_dst_stride) + tx; + for (int y = 0; y < info.Height; y++, blit_dst += blit_dst_stride, blit_src += blit_src_stride) + for (int x = 0; x < info.Width; x++) + blit_dst[x] = (unsigned char)((blit_src[x] >> IM_COL32_A_SHIFT) & 0xFF); + } + else + { + unsigned int* blit_dst = atlas->TexPixelsRGBA32 + (ty * blit_dst_stride) + tx; + for (int y = 0; y < info.Height; y++, blit_dst += blit_dst_stride, blit_src += blit_src_stride) + for (int x = 0; x < info.Width; x++) + blit_dst[x] = blit_src[x]; + } + } + + src_tmp.Rects = NULL; + } + atlas->TexPixelsUseColors = tex_use_colors; + + // Cleanup + for (int buf_i = 0; buf_i < buf_bitmap_buffers.Size; buf_i++) + IM_FREE(buf_bitmap_buffers[buf_i]); + src_tmp_array.clear_destruct(); + + ImFontAtlasBuildFinish(atlas); + + return true; +} + +// FreeType memory allocation callbacks +static void* FreeType_Alloc(FT_Memory /*memory*/, long size) +{ + return GImGuiFreeTypeAllocFunc((size_t)size, GImGuiFreeTypeAllocatorUserData); +} + +static void FreeType_Free(FT_Memory /*memory*/, void* block) +{ + GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); +} + +static void* FreeType_Realloc(FT_Memory /*memory*/, long cur_size, long new_size, void* block) +{ + // Implement realloc() as we don't ask user to provide it. + if (block == NULL) + return GImGuiFreeTypeAllocFunc((size_t)new_size, GImGuiFreeTypeAllocatorUserData); + + if (new_size == 0) + { + GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); + return NULL; + } + + if (new_size > cur_size) + { + void* new_block = GImGuiFreeTypeAllocFunc((size_t)new_size, GImGuiFreeTypeAllocatorUserData); + memcpy(new_block, block, (size_t)cur_size); + GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); + return new_block; + } + + return block; +} + +static bool ImFontAtlasBuildWithFreeType(ImFontAtlas* atlas) +{ + // FreeType memory management: https://www.freetype.org/freetype2/docs/design/design-4.html + FT_MemoryRec_ memory_rec = {}; + memory_rec.user = NULL; + memory_rec.alloc = &FreeType_Alloc; + memory_rec.free = &FreeType_Free; + memory_rec.realloc = &FreeType_Realloc; + + // https://www.freetype.org/freetype2/docs/reference/ft2-module_management.html#FT_New_Library + FT_Library ft_library; + FT_Error error = FT_New_Library(&memory_rec, &ft_library); + if (error != 0) + return false; + + // If you don't call FT_Add_Default_Modules() the rest of code may work, but FreeType won't use our custom allocator. + FT_Add_Default_Modules(ft_library); + + bool ret = ImFontAtlasBuildWithFreeTypeEx(ft_library, atlas, atlas->FontBuilderFlags); + FT_Done_Library(ft_library); + + return ret; +} + +const ImFontBuilderIO* ImGuiFreeType::GetBuilderForFreeType() +{ + static ImFontBuilderIO io; + io.FontBuilder_Build = ImFontAtlasBuildWithFreeType; + return &io; +} + +void ImGuiFreeType::SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data) +{ + GImGuiFreeTypeAllocFunc = alloc_func; + GImGuiFreeTypeFreeFunc = free_func; + GImGuiFreeTypeAllocatorUserData = user_data; +} diff --git a/imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/imgui_freetype.h b/imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/imgui_freetype.h new file mode 100644 index 000000000..713e4639e --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/imgui/misc/freetype/imgui_freetype.h @@ -0,0 +1,50 @@ +// dear imgui: FreeType font builder (used as a replacement for the stb_truetype builder) +// (headers) + +#pragma once + +#include "imgui.h" // IMGUI_API + +// Forward declarations +struct ImFontAtlas; +struct ImFontBuilderIO; + +// Hinting greatly impacts visuals (and glyph sizes). +// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter. +// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h +// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way. +// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer. +// You can set those flags globaly in ImFontAtlas::FontBuilderFlags +// You can set those flags on a per font basis in ImFontConfig::FontBuilderFlags +enum ImGuiFreeTypeBuilderFlags +{ + ImGuiFreeTypeBuilderFlags_NoHinting = 1 << 0, // Disable hinting. This generally generates 'blurrier' bitmap glyphs when the glyph are rendered in any of the anti-aliased modes. + ImGuiFreeTypeBuilderFlags_NoAutoHint = 1 << 1, // Disable auto-hinter. + ImGuiFreeTypeBuilderFlags_ForceAutoHint = 1 << 2, // Indicates that the auto-hinter is preferred over the font's native hinter. + ImGuiFreeTypeBuilderFlags_LightHinting = 1 << 3, // A lighter hinting algorithm for gray-level modes. Many generated glyphs are fuzzier but better resemble their original shape. This is achieved by snapping glyphs to the pixel grid only vertically (Y-axis), as is done by Microsoft's ClearType and Adobe's proprietary font renderer. This preserves inter-glyph spacing in horizontal text. + ImGuiFreeTypeBuilderFlags_MonoHinting = 1 << 4, // Strong hinting algorithm that should only be used for monochrome output. + ImGuiFreeTypeBuilderFlags_Bold = 1 << 5, // Styling: Should we artificially embolden the font? + ImGuiFreeTypeBuilderFlags_Oblique = 1 << 6, // Styling: Should we slant the font, emulating italic style? + ImGuiFreeTypeBuilderFlags_Monochrome = 1 << 7, // Disable anti-aliasing. Combine this with MonoHinting for best results! + ImGuiFreeTypeBuilderFlags_LoadColor = 1 << 8, // Enable FreeType color-layered glyphs + ImGuiFreeTypeBuilderFlags_Bitmap = 1 << 9 // Enable FreeType bitmap glyphs +}; + +namespace ImGuiFreeType +{ + // This is automatically assigned when using '#define IMGUI_ENABLE_FREETYPE'. + // If you need to dynamically select between multiple builders: + // - you can manually assign this builder with 'atlas->FontBuilderIO = ImGuiFreeType::GetBuilderForFreeType()' + // - prefer deep-copying this into your own ImFontBuilderIO instance if you use hot-reloading that messes up static data. + IMGUI_API const ImFontBuilderIO* GetBuilderForFreeType(); + + // Override allocators. By default ImGuiFreeType will use IM_ALLOC()/IM_FREE() + // However, as FreeType does lots of allocations we provide a way for the user to redirect it to a separate memory heap if desired. + IMGUI_API void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = NULL); + + // Obsolete names (will be removed soon) + // Prefer using '#define IMGUI_ENABLE_FREETYPE' +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + static inline bool BuildFontAtlas(ImFontAtlas* atlas, unsigned int flags = 0) { atlas->FontBuilderIO = GetBuilderForFreeType(); atlas->FontBuilderFlags = flags; return atlas->Build(); } +#endif +} diff --git a/imgui-sys/third-party/imgui-docking-freetype/impl_definitions.json b/imgui-sys/third-party/imgui-docking-freetype/impl_definitions.json new file mode 100644 index 000000000..3597665b4 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/impl_definitions.json @@ -0,0 +1,818 @@ +{ + "ImGui_ImplGlfw_CharCallback": [ + { + "args": "(GLFWwindow* window,unsigned int c)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "c", + "type": "unsigned int" + } + ], + "argsoriginal": "(GLFWwindow* window,unsigned int c)", + "call_args": "(window,c)", + "cimguiname": "ImGui_ImplGlfw_CharCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CharCallback", + "location": "imgui_impl_glfw:41", + "ov_cimguiname": "ImGui_ImplGlfw_CharCallback", + "ret": "void", + "signature": "(GLFWwindow*,unsigned int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_CursorEnterCallback": [ + { + "args": "(GLFWwindow* window,int entered)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "entered", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int entered)", + "call_args": "(window,entered)", + "cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CursorEnterCallback", + "location": "imgui_impl_glfw:36", + "ov_cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", + "ret": "void", + "signature": "(GLFWwindow*,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_CursorPosCallback": [ + { + "args": "(GLFWwindow* window,double x,double y)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "x", + "type": "double" + }, + { + "name": "y", + "type": "double" + } + ], + "argsoriginal": "(GLFWwindow* window,double x,double y)", + "call_args": "(window,x,y)", + "cimguiname": "ImGui_ImplGlfw_CursorPosCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CursorPosCallback", + "location": "imgui_impl_glfw:37", + "ov_cimguiname": "ImGui_ImplGlfw_CursorPosCallback", + "ret": "void", + "signature": "(GLFWwindow*,double,double)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForOpenGL": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForOpenGL", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForOpenGL", + "location": "imgui_impl_glfw:22", + "ov_cimguiname": "ImGui_ImplGlfw_InitForOpenGL", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForOther": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForOther", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForOther", + "location": "imgui_impl_glfw:24", + "ov_cimguiname": "ImGui_ImplGlfw_InitForOther", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForVulkan": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForVulkan", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForVulkan", + "location": "imgui_impl_glfw:23", + "ov_cimguiname": "ImGui_ImplGlfw_InitForVulkan", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InstallCallbacks": [ + { + "args": "(GLFWwindow* window)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + } + ], + "argsoriginal": "(GLFWwindow* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplGlfw_InstallCallbacks", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InstallCallbacks", + "location": "imgui_impl_glfw:31", + "ov_cimguiname": "ImGui_ImplGlfw_InstallCallbacks", + "ret": "void", + "signature": "(GLFWwindow*)", + "stname": "" + } + ], + "ImGui_ImplGlfw_KeyCallback": [ + { + "args": "(GLFWwindow* window,int key,int scancode,int action,int mods)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "key", + "type": "int" + }, + { + "name": "scancode", + "type": "int" + }, + { + "name": "action", + "type": "int" + }, + { + "name": "mods", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int key,int scancode,int action,int mods)", + "call_args": "(window,key,scancode,action,mods)", + "cimguiname": "ImGui_ImplGlfw_KeyCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_KeyCallback", + "location": "imgui_impl_glfw:40", + "ov_cimguiname": "ImGui_ImplGlfw_KeyCallback", + "ret": "void", + "signature": "(GLFWwindow*,int,int,int,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_MonitorCallback": [ + { + "args": "(GLFWmonitor* monitor,int event)", + "argsT": [ + { + "name": "monitor", + "type": "GLFWmonitor*" + }, + { + "name": "event", + "type": "int" + } + ], + "argsoriginal": "(GLFWmonitor* monitor,int event)", + "call_args": "(monitor,event)", + "cimguiname": "ImGui_ImplGlfw_MonitorCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_MonitorCallback", + "location": "imgui_impl_glfw:42", + "ov_cimguiname": "ImGui_ImplGlfw_MonitorCallback", + "ret": "void", + "signature": "(GLFWmonitor*,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_MouseButtonCallback": [ + { + "args": "(GLFWwindow* window,int button,int action,int mods)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "button", + "type": "int" + }, + { + "name": "action", + "type": "int" + }, + { + "name": "mods", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int button,int action,int mods)", + "call_args": "(window,button,action,mods)", + "cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_MouseButtonCallback", + "location": "imgui_impl_glfw:38", + "ov_cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", + "ret": "void", + "signature": "(GLFWwindow*,int,int,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplGlfw_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_NewFrame", + "location": "imgui_impl_glfw:26", + "ov_cimguiname": "ImGui_ImplGlfw_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplGlfw_RestoreCallbacks": [ + { + "args": "(GLFWwindow* window)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + } + ], + "argsoriginal": "(GLFWwindow* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_RestoreCallbacks", + "location": "imgui_impl_glfw:32", + "ov_cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", + "ret": "void", + "signature": "(GLFWwindow*)", + "stname": "" + } + ], + "ImGui_ImplGlfw_ScrollCallback": [ + { + "args": "(GLFWwindow* window,double xoffset,double yoffset)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "xoffset", + "type": "double" + }, + { + "name": "yoffset", + "type": "double" + } + ], + "argsoriginal": "(GLFWwindow* window,double xoffset,double yoffset)", + "call_args": "(window,xoffset,yoffset)", + "cimguiname": "ImGui_ImplGlfw_ScrollCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_ScrollCallback", + "location": "imgui_impl_glfw:39", + "ov_cimguiname": "ImGui_ImplGlfw_ScrollCallback", + "ret": "void", + "signature": "(GLFWwindow*,double,double)", + "stname": "" + } + ], + "ImGui_ImplGlfw_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplGlfw_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_Shutdown", + "location": "imgui_impl_glfw:25", + "ov_cimguiname": "ImGui_ImplGlfw_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplGlfw_WindowFocusCallback": [ + { + "args": "(GLFWwindow* window,int focused)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "focused", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int focused)", + "call_args": "(window,focused)", + "cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_WindowFocusCallback", + "location": "imgui_impl_glfw:35", + "ov_cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", + "ret": "void", + "signature": "(GLFWwindow*,int)", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_CreateDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "location": "imgui_impl_opengl2:31", + "ov_cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_CreateFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "location": "imgui_impl_opengl2:29", + "ov_cimguiname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_DestroyDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "location": "imgui_impl_opengl2:32", + "ov_cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_DestroyFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "location": "imgui_impl_opengl2:30", + "ov_cimguiname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_Init": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_Init", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_Init", + "location": "imgui_impl_opengl2:23", + "ov_cimguiname": "ImGui_ImplOpenGL2_Init", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_NewFrame", + "location": "imgui_impl_opengl2:25", + "ov_cimguiname": "ImGui_ImplOpenGL2_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_RenderDrawData": [ + { + "args": "(ImDrawData* draw_data)", + "argsT": [ + { + "name": "draw_data", + "type": "ImDrawData*" + } + ], + "argsoriginal": "(ImDrawData* draw_data)", + "call_args": "(draw_data)", + "cimguiname": "ImGui_ImplOpenGL2_RenderDrawData", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_RenderDrawData", + "location": "imgui_impl_opengl2:26", + "ov_cimguiname": "ImGui_ImplOpenGL2_RenderDrawData", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_Shutdown", + "location": "imgui_impl_opengl2:24", + "ov_cimguiname": "ImGui_ImplOpenGL2_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_CreateDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "location": "imgui_impl_opengl3:32", + "ov_cimguiname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_CreateFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "location": "imgui_impl_opengl3:30", + "ov_cimguiname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_DestroyDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "location": "imgui_impl_opengl3:33", + "ov_cimguiname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_DestroyFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "location": "imgui_impl_opengl3:31", + "ov_cimguiname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_Init": [ + { + "args": "(const char* glsl_version)", + "argsT": [ + { + "name": "glsl_version", + "type": "const char*" + } + ], + "argsoriginal": "(const char* glsl_version=nullptr)", + "call_args": "(glsl_version)", + "cimguiname": "ImGui_ImplOpenGL3_Init", + "defaults": { + "glsl_version": "nullptr" + }, + "funcname": "ImGui_ImplOpenGL3_Init", + "location": "imgui_impl_opengl3:24", + "ov_cimguiname": "ImGui_ImplOpenGL3_Init", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_NewFrame", + "location": "imgui_impl_opengl3:26", + "ov_cimguiname": "ImGui_ImplOpenGL3_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_RenderDrawData": [ + { + "args": "(ImDrawData* draw_data)", + "argsT": [ + { + "name": "draw_data", + "type": "ImDrawData*" + } + ], + "argsoriginal": "(ImDrawData* draw_data)", + "call_args": "(draw_data)", + "cimguiname": "ImGui_ImplOpenGL3_RenderDrawData", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_RenderDrawData", + "location": "imgui_impl_opengl3:27", + "ov_cimguiname": "ImGui_ImplOpenGL3_RenderDrawData", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_Shutdown", + "location": "imgui_impl_opengl3:25", + "ov_cimguiname": "ImGui_ImplOpenGL3_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForD3D": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForD3D", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForD3D", + "location": "imgui_impl_sdl:27", + "ov_cimguiname": "ImGui_ImplSDL2_InitForD3D", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForMetal": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForMetal", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForMetal", + "location": "imgui_impl_sdl:28", + "ov_cimguiname": "ImGui_ImplSDL2_InitForMetal", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForOpenGL": [ + { + "args": "(SDL_Window* window,void* sdl_gl_context)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + }, + { + "name": "sdl_gl_context", + "type": "void*" + } + ], + "argsoriginal": "(SDL_Window* window,void* sdl_gl_context)", + "call_args": "(window,sdl_gl_context)", + "cimguiname": "ImGui_ImplSDL2_InitForOpenGL", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForOpenGL", + "location": "imgui_impl_sdl:25", + "ov_cimguiname": "ImGui_ImplSDL2_InitForOpenGL", + "ret": "bool", + "signature": "(SDL_Window*,void*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForSDLRenderer": [ + { + "args": "(SDL_Window* window,SDL_Renderer* renderer)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + }, + { + "name": "renderer", + "type": "SDL_Renderer*" + } + ], + "argsoriginal": "(SDL_Window* window,SDL_Renderer* renderer)", + "call_args": "(window,renderer)", + "cimguiname": "ImGui_ImplSDL2_InitForSDLRenderer", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForSDLRenderer", + "location": "imgui_impl_sdl:29", + "ov_cimguiname": "ImGui_ImplSDL2_InitForSDLRenderer", + "ret": "bool", + "signature": "(SDL_Window*,SDL_Renderer*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForVulkan": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForVulkan", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForVulkan", + "location": "imgui_impl_sdl:26", + "ov_cimguiname": "ImGui_ImplSDL2_InitForVulkan", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplSDL2_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_NewFrame", + "location": "imgui_impl_sdl:31", + "ov_cimguiname": "ImGui_ImplSDL2_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplSDL2_ProcessEvent": [ + { + "args": "(const SDL_Event* event)", + "argsT": [ + { + "name": "event", + "type": "const SDL_Event*" + } + ], + "argsoriginal": "(const SDL_Event* event)", + "call_args": "(event)", + "cimguiname": "ImGui_ImplSDL2_ProcessEvent", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_ProcessEvent", + "location": "imgui_impl_sdl:32", + "ov_cimguiname": "ImGui_ImplSDL2_ProcessEvent", + "ret": "bool", + "signature": "(const SDL_Event*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplSDL2_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_Shutdown", + "location": "imgui_impl_sdl:30", + "ov_cimguiname": "ImGui_ImplSDL2_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ] +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/impl_definitions.lua b/imgui-sys/third-party/imgui-docking-freetype/impl_definitions.lua new file mode 100644 index 000000000..fbc6a4c9d --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/impl_definitions.lua @@ -0,0 +1,715 @@ +local defs = {} +defs["ImGui_ImplGlfw_CharCallback"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["args"] = "(GLFWwindow* window,unsigned int c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["name"] = "c" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["type"] = "unsigned int" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsoriginal"] = "(GLFWwindow* window,unsigned int c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["call_args"] = "(window,c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["funcname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["location"] = "imgui_impl_glfw:41" +defs["ImGui_ImplGlfw_CharCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CharCallback"][1]["signature"] = "(GLFWwindow*,unsigned int)" +defs["ImGui_ImplGlfw_CharCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CharCallback"]["(GLFWwindow*,unsigned int)"] = defs["ImGui_ImplGlfw_CharCallback"][1] +defs["ImGui_ImplGlfw_CursorEnterCallback"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["args"] = "(GLFWwindow* window,int entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2]["name"] = "entered" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["call_args"] = "(window,entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["funcname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["location"] = "imgui_impl_glfw:36" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["signature"] = "(GLFWwindow*,int)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CursorEnterCallback"]["(GLFWwindow*,int)"] = defs["ImGui_ImplGlfw_CursorEnterCallback"][1] +defs["ImGui_ImplGlfw_CursorPosCallback"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["args"] = "(GLFWwindow* window,double x,double y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2]["name"] = "x" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2]["type"] = "double" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3]["name"] = "y" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3]["type"] = "double" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsoriginal"] = "(GLFWwindow* window,double x,double y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["call_args"] = "(window,x,y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["funcname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["location"] = "imgui_impl_glfw:37" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["signature"] = "(GLFWwindow*,double,double)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CursorPosCallback"]["(GLFWwindow*,double,double)"] = defs["ImGui_ImplGlfw_CursorPosCallback"][1] +defs["ImGui_ImplGlfw_InitForOpenGL"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["funcname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["location"] = "imgui_impl_glfw:22" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForOpenGL"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOpenGL"][1] +defs["ImGui_ImplGlfw_InitForOther"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["funcname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["location"] = "imgui_impl_glfw:24" +defs["ImGui_ImplGlfw_InitForOther"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForOther"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForOther"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForOther"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOther"][1] +defs["ImGui_ImplGlfw_InitForVulkan"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["funcname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["location"] = "imgui_impl_glfw:23" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForVulkan"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForVulkan"][1] +defs["ImGui_ImplGlfw_InstallCallbacks"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["args"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsoriginal"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["call_args"] = "(window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["cimguiname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["funcname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["location"] = "imgui_impl_glfw:31" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["signature"] = "(GLFWwindow*)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InstallCallbacks"]["(GLFWwindow*)"] = defs["ImGui_ImplGlfw_InstallCallbacks"][1] +defs["ImGui_ImplGlfw_KeyCallback"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["args"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["name"] = "key" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["name"] = "scancode" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["name"] = "action" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["name"] = "mods" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["call_args"] = "(window,key,scancode,action,mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["funcname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["location"] = "imgui_impl_glfw:40" +defs["ImGui_ImplGlfw_KeyCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_KeyCallback"][1]["signature"] = "(GLFWwindow*,int,int,int,int)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_KeyCallback"]["(GLFWwindow*,int,int,int,int)"] = defs["ImGui_ImplGlfw_KeyCallback"][1] +defs["ImGui_ImplGlfw_MonitorCallback"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["args"] = "(GLFWmonitor* monitor,int event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1]["name"] = "monitor" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1]["type"] = "GLFWmonitor*" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2]["name"] = "event" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsoriginal"] = "(GLFWmonitor* monitor,int event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["call_args"] = "(monitor,event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["funcname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["location"] = "imgui_impl_glfw:42" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["signature"] = "(GLFWmonitor*,int)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_MonitorCallback"]["(GLFWmonitor*,int)"] = defs["ImGui_ImplGlfw_MonitorCallback"][1] +defs["ImGui_ImplGlfw_MouseButtonCallback"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["args"] = "(GLFWwindow* window,int button,int action,int mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["name"] = "button" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["name"] = "action" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["name"] = "mods" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int button,int action,int mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["call_args"] = "(window,button,action,mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["funcname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["location"] = "imgui_impl_glfw:38" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["signature"] = "(GLFWwindow*,int,int,int)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_MouseButtonCallback"]["(GLFWwindow*,int,int,int)"] = defs["ImGui_ImplGlfw_MouseButtonCallback"][1] +defs["ImGui_ImplGlfw_NewFrame"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["cimguiname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["funcname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["location"] = "imgui_impl_glfw:26" +defs["ImGui_ImplGlfw_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplGlfw_NewFrame"]["()"] = defs["ImGui_ImplGlfw_NewFrame"][1] +defs["ImGui_ImplGlfw_RestoreCallbacks"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["args"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsoriginal"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["call_args"] = "(window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["cimguiname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["funcname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["location"] = "imgui_impl_glfw:32" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["signature"] = "(GLFWwindow*)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["stname"] = "" +defs["ImGui_ImplGlfw_RestoreCallbacks"]["(GLFWwindow*)"] = defs["ImGui_ImplGlfw_RestoreCallbacks"][1] +defs["ImGui_ImplGlfw_ScrollCallback"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["args"] = "(GLFWwindow* window,double xoffset,double yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["name"] = "xoffset" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["type"] = "double" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["name"] = "yoffset" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["type"] = "double" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsoriginal"] = "(GLFWwindow* window,double xoffset,double yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["call_args"] = "(window,xoffset,yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["funcname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["location"] = "imgui_impl_glfw:39" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["signature"] = "(GLFWwindow*,double,double)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_ScrollCallback"]["(GLFWwindow*,double,double)"] = defs["ImGui_ImplGlfw_ScrollCallback"][1] +defs["ImGui_ImplGlfw_Shutdown"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["cimguiname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["funcname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["location"] = "imgui_impl_glfw:25" +defs["ImGui_ImplGlfw_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplGlfw_Shutdown"]["()"] = defs["ImGui_ImplGlfw_Shutdown"][1] +defs["ImGui_ImplGlfw_WindowFocusCallback"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["args"] = "(GLFWwindow* window,int focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2]["name"] = "focused" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["call_args"] = "(window,focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["funcname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["location"] = "imgui_impl_glfw:35" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["signature"] = "(GLFWwindow*,int)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_WindowFocusCallback"]["(GLFWwindow*,int)"] = defs["ImGui_ImplGlfw_WindowFocusCallback"][1] +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl2:31" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1] +defs["ImGui_ImplOpenGL2_CreateFontsTexture"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl2:29" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"]["()"] = defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1] +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl2:32" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1] +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl2:30" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"]["()"] = defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1] +defs["ImGui_ImplOpenGL2_Init"] = {} +defs["ImGui_ImplOpenGL2_Init"][1] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["cimguiname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["funcname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["location"] = "imgui_impl_opengl2:23" +defs["ImGui_ImplOpenGL2_Init"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_Init"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_Init"]["()"] = defs["ImGui_ImplOpenGL2_Init"][1] +defs["ImGui_ImplOpenGL2_NewFrame"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["cimguiname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["location"] = "imgui_impl_opengl2:25" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_NewFrame"]["()"] = defs["ImGui_ImplOpenGL2_NewFrame"][1] +defs["ImGui_ImplOpenGL2_RenderDrawData"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["call_args"] = "(draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["cimguiname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["location"] = "imgui_impl_opengl2:26" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["signature"] = "(ImDrawData*)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_RenderDrawData"]["(ImDrawData*)"] = defs["ImGui_ImplOpenGL2_RenderDrawData"][1] +defs["ImGui_ImplOpenGL2_Shutdown"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["cimguiname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["location"] = "imgui_impl_opengl2:24" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_Shutdown"]["()"] = defs["ImGui_ImplOpenGL2_Shutdown"][1] +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl3:32" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1] +defs["ImGui_ImplOpenGL3_CreateFontsTexture"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl3:30" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"]["()"] = defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1] +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl3:33" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1] +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl3:31" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"]["()"] = defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1] +defs["ImGui_ImplOpenGL3_Init"] = {} +defs["ImGui_ImplOpenGL3_Init"][1] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["args"] = "(const char* glsl_version)" +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["name"] = "glsl_version" +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["type"] = "const char*" +defs["ImGui_ImplOpenGL3_Init"][1]["argsoriginal"] = "(const char* glsl_version=nullptr)" +defs["ImGui_ImplOpenGL3_Init"][1]["call_args"] = "(glsl_version)" +defs["ImGui_ImplOpenGL3_Init"][1]["cimguiname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["defaults"]["glsl_version"] = "nullptr" +defs["ImGui_ImplOpenGL3_Init"][1]["funcname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["location"] = "imgui_impl_opengl3:24" +defs["ImGui_ImplOpenGL3_Init"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_Init"][1]["signature"] = "(const char*)" +defs["ImGui_ImplOpenGL3_Init"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_Init"]["(const char*)"] = defs["ImGui_ImplOpenGL3_Init"][1] +defs["ImGui_ImplOpenGL3_NewFrame"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["cimguiname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["location"] = "imgui_impl_opengl3:26" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_NewFrame"]["()"] = defs["ImGui_ImplOpenGL3_NewFrame"][1] +defs["ImGui_ImplOpenGL3_RenderDrawData"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["call_args"] = "(draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["cimguiname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["location"] = "imgui_impl_opengl3:27" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["signature"] = "(ImDrawData*)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_RenderDrawData"]["(ImDrawData*)"] = defs["ImGui_ImplOpenGL3_RenderDrawData"][1] +defs["ImGui_ImplOpenGL3_Shutdown"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["cimguiname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["location"] = "imgui_impl_opengl3:25" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_Shutdown"]["()"] = defs["ImGui_ImplOpenGL3_Shutdown"][1] +defs["ImGui_ImplSDL2_InitForD3D"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["funcname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["location"] = "imgui_impl_sdl:27" +defs["ImGui_ImplSDL2_InitForD3D"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForD3D"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForD3D"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForD3D"][1] +defs["ImGui_ImplSDL2_InitForMetal"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["funcname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["location"] = "imgui_impl_sdl:28" +defs["ImGui_ImplSDL2_InitForMetal"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForMetal"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForMetal"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForMetal"][1] +defs["ImGui_ImplSDL2_InitForOpenGL"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["args"] = "(SDL_Window* window,void* sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["name"] = "sdl_gl_context" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["type"] = "void*" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsoriginal"] = "(SDL_Window* window,void* sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["call_args"] = "(window,sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["funcname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["location"] = "imgui_impl_sdl:25" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["signature"] = "(SDL_Window*,void*)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForOpenGL"]["(SDL_Window*,void*)"] = defs["ImGui_ImplSDL2_InitForOpenGL"][1] +defs["ImGui_ImplSDL2_InitForSDLRenderer"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["args"] = "(SDL_Window* window,SDL_Renderer* renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2]["name"] = "renderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2]["type"] = "SDL_Renderer*" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsoriginal"] = "(SDL_Window* window,SDL_Renderer* renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["call_args"] = "(window,renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["funcname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["location"] = "imgui_impl_sdl:29" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["signature"] = "(SDL_Window*,SDL_Renderer*)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForSDLRenderer"]["(SDL_Window*,SDL_Renderer*)"] = defs["ImGui_ImplSDL2_InitForSDLRenderer"][1] +defs["ImGui_ImplSDL2_InitForVulkan"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["funcname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["location"] = "imgui_impl_sdl:26" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForVulkan"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForVulkan"][1] +defs["ImGui_ImplSDL2_NewFrame"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["cimguiname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["funcname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["location"] = "imgui_impl_sdl:31" +defs["ImGui_ImplSDL2_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplSDL2_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplSDL2_NewFrame"]["()"] = defs["ImGui_ImplSDL2_NewFrame"][1] +defs["ImGui_ImplSDL2_ProcessEvent"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["args"] = "(const SDL_Event* event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["name"] = "event" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["type"] = "const SDL_Event*" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsoriginal"] = "(const SDL_Event* event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["call_args"] = "(event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["cimguiname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["funcname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["location"] = "imgui_impl_sdl:32" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["signature"] = "(const SDL_Event*)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["stname"] = "" +defs["ImGui_ImplSDL2_ProcessEvent"]["(const SDL_Event*)"] = defs["ImGui_ImplSDL2_ProcessEvent"][1] +defs["ImGui_ImplSDL2_Shutdown"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["cimguiname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["funcname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["location"] = "imgui_impl_sdl:30" +defs["ImGui_ImplSDL2_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplSDL2_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplSDL2_Shutdown"]["()"] = defs["ImGui_ImplSDL2_Shutdown"][1] + +return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/overloads.txt b/imgui-sys/third-party/imgui-docking-freetype/overloads.txt new file mode 100644 index 000000000..c0ff42abc --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/overloads.txt @@ -0,0 +1,144 @@ +----------------overloadings--------------------------- +ImColor_ImColor 5 +1 nil ImColor_ImColor_Nil () +2 nil ImColor_ImColor_Float (float,float,float,float) +3 nil ImColor_ImColor_Vec4 (const ImVec4) +4 nil ImColor_ImColor_Int (int,int,int,int) +5 nil ImColor_ImColor_U32 (ImU32) +ImDrawList_AddText 2 +1 void ImDrawList_AddText_Vec2 (const ImVec2,ImU32,const char*,const char*) +2 void ImDrawList_AddText_FontPtr (const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*) +ImGuiStoragePair_ImGuiStoragePair 3 +1 nil ImGuiStoragePair_ImGuiStoragePair_Int (ImGuiID,int) +2 nil ImGuiStoragePair_ImGuiStoragePair_Float (ImGuiID,float) +3 nil ImGuiStoragePair_ImGuiStoragePair_Ptr (ImGuiID,void*) +ImGuiTextRange_ImGuiTextRange 2 +1 nil ImGuiTextRange_ImGuiTextRange_Nil () +2 nil ImGuiTextRange_ImGuiTextRange_Str (const char*,const char*) +ImVec2_ImVec2 2 +1 nil ImVec2_ImVec2_Nil () +2 nil ImVec2_ImVec2_Float (float,float) +ImVec4_ImVec4 2 +1 nil ImVec4_ImVec4_Nil () +2 nil ImVec4_ImVec4_Float (float,float,float,float) +ImVector_ImVector 2 +1 nil ImVector_ImVector_Nil () +2 nil ImVector_ImVector_Vector_T_ (const ImVector_T ) +ImVector_back 2 +1 T* ImVector_back_Nil () +2 const T* ImVector_back__const ()const +ImVector_begin 2 +1 T* ImVector_begin_Nil () +2 const T* ImVector_begin__const ()const +ImVector_end 2 +1 T* ImVector_end_Nil () +2 const T* ImVector_end__const ()const +ImVector_erase 2 +1 T* ImVector_erase_Nil (const T*) +2 T* ImVector_erase_TPtr (const T*,const T*) +ImVector_find 2 +1 T* ImVector_find_Nil (const T) +2 const T* ImVector_find__const (const T)const +ImVector_front 2 +1 T* ImVector_front_Nil () +2 const T* ImVector_front__const ()const +ImVector_resize 2 +1 void ImVector_resize_Nil (int) +2 void ImVector_resize_T (int,const T) +igBeginChild 2 +1 bool igBeginChild_Str (const char*,const ImVec2,bool,ImGuiWindowFlags) +2 bool igBeginChild_ID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags) +igCheckboxFlags 2 +1 bool igCheckboxFlags_IntPtr (const char*,int*,int) +2 bool igCheckboxFlags_UintPtr (const char*,unsigned int*,unsigned int) +igCollapsingHeader 2 +1 bool igCollapsingHeader_TreeNodeFlags (const char*,ImGuiTreeNodeFlags) +2 bool igCollapsingHeader_BoolPtr (const char*,bool*,ImGuiTreeNodeFlags) +igCombo 3 +1 bool igCombo_Str_arr (const char*,int*,const char* const[],int,int) +2 bool igCombo_Str (const char*,int*,const char*,int) +3 bool igCombo_FnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) +igGetBackgroundDrawList 2 +1 ImDrawList* igGetBackgroundDrawList_Nil () +2 ImDrawList* igGetBackgroundDrawList_ViewportPtr (ImGuiViewport*) +igGetColorU32 3 +1 ImU32 igGetColorU32_Col (ImGuiCol,float) +2 ImU32 igGetColorU32_Vec4 (const ImVec4) +3 ImU32 igGetColorU32_U32 (ImU32) +igGetForegroundDrawList 2 +1 ImDrawList* igGetForegroundDrawList_Nil () +2 ImDrawList* igGetForegroundDrawList_ViewportPtr (ImGuiViewport*) +igGetID 3 +1 ImGuiID igGetID_Str (const char*) +2 ImGuiID igGetID_StrStr (const char*,const char*) +3 ImGuiID igGetID_Ptr (const void*) +igIsRectVisible 2 +1 bool igIsRectVisible_Nil (const ImVec2) +2 bool igIsRectVisible_Vec2 (const ImVec2,const ImVec2) +igListBox 2 +1 bool igListBox_Str_arr (const char*,int*,const char* const[],int,int) +2 bool igListBox_FnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) +igMenuItem 2 +1 bool igMenuItem_Bool (const char*,const char*,bool,bool) +2 bool igMenuItem_BoolPtr (const char*,const char*,bool*,bool) +igOpenPopup 2 +1 void igOpenPopup_Str (const char*,ImGuiPopupFlags) +2 void igOpenPopup_ID (ImGuiID,ImGuiPopupFlags) +igPlotHistogram 2 +1 void igPlotHistogram_FloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) +2 void igPlotHistogram_FnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) +igPlotLines 2 +1 void igPlotLines_FloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) +2 void igPlotLines_FnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) +igPushID 4 +1 void igPushID_Str (const char*) +2 void igPushID_StrStr (const char*,const char*) +3 void igPushID_Ptr (const void*) +4 void igPushID_Int (int) +igPushStyleColor 2 +1 void igPushStyleColor_U32 (ImGuiCol,ImU32) +2 void igPushStyleColor_Vec4 (ImGuiCol,const ImVec4) +igPushStyleVar 2 +1 void igPushStyleVar_Float (ImGuiStyleVar,float) +2 void igPushStyleVar_Vec2 (ImGuiStyleVar,const ImVec2) +igRadioButton 2 +1 bool igRadioButton_Bool (const char*,bool) +2 bool igRadioButton_IntPtr (const char*,int*,int) +igSelectable 2 +1 bool igSelectable_Bool (const char*,bool,ImGuiSelectableFlags,const ImVec2) +2 bool igSelectable_BoolPtr (const char*,bool*,ImGuiSelectableFlags,const ImVec2) +igSetWindowCollapsed 2 +1 void igSetWindowCollapsed_Bool (bool,ImGuiCond) +2 void igSetWindowCollapsed_Str (const char*,bool,ImGuiCond) +igSetWindowFocus 2 +1 void igSetWindowFocus_Nil () +2 void igSetWindowFocus_Str (const char*) +igSetWindowPos 2 +1 void igSetWindowPos_Vec2 (const ImVec2,ImGuiCond) +2 void igSetWindowPos_Str (const char*,const ImVec2,ImGuiCond) +igSetWindowSize 2 +1 void igSetWindowSize_Vec2 (const ImVec2,ImGuiCond) +2 void igSetWindowSize_Str (const char*,const ImVec2,ImGuiCond) +igTreeNode 3 +1 bool igTreeNode_Str (const char*) +2 bool igTreeNode_StrStr (const char*,const char*,...) +3 bool igTreeNode_Ptr (const void*,const char*,...) +igTreeNodeEx 3 +1 bool igTreeNodeEx_Str (const char*,ImGuiTreeNodeFlags) +2 bool igTreeNodeEx_StrStr (const char*,ImGuiTreeNodeFlags,const char*,...) +3 bool igTreeNodeEx_Ptr (const void*,ImGuiTreeNodeFlags,const char*,...) +igTreeNodeExV 2 +1 bool igTreeNodeExV_Str (const char*,ImGuiTreeNodeFlags,const char*,va_list) +2 bool igTreeNodeExV_Ptr (const void*,ImGuiTreeNodeFlags,const char*,va_list) +igTreeNodeV 2 +1 bool igTreeNodeV_Str (const char*,const char*,va_list) +2 bool igTreeNodeV_Ptr (const void*,const char*,va_list) +igTreePush 2 +1 void igTreePush_Str (const char*) +2 void igTreePush_Ptr (const void*) +igValue 4 +1 void igValue_Bool (const char*,bool) +2 void igValue_Int (const char*,int) +3 void igValue_Uint (const char*,unsigned int) +4 void igValue_Float (const char*,float,const char*) +99 overloaded \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.json b/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.json new file mode 100644 index 000000000..81caefffa --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.json @@ -0,0 +1,4917 @@ +{ + "enums": { + "ImDrawFlags_": [ + { + "calc_value": 0, + "name": "ImDrawFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImDrawFlags_Closed", + "value": "1 << 0" + }, + { + "calc_value": 16, + "name": "ImDrawFlags_RoundCornersTopLeft", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImDrawFlags_RoundCornersTopRight", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImDrawFlags_RoundCornersBottomLeft", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImDrawFlags_RoundCornersBottomRight", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImDrawFlags_RoundCornersNone", + "value": "1 << 8" + }, + { + "calc_value": 48, + "name": "ImDrawFlags_RoundCornersTop", + "value": "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight" + }, + { + "calc_value": 192, + "name": "ImDrawFlags_RoundCornersBottom", + "value": "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight" + }, + { + "calc_value": 80, + "name": "ImDrawFlags_RoundCornersLeft", + "value": "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft" + }, + { + "calc_value": 160, + "name": "ImDrawFlags_RoundCornersRight", + "value": "ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight" + }, + { + "calc_value": 240, + "name": "ImDrawFlags_RoundCornersAll", + "value": "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight" + }, + { + "calc_value": 240, + "name": "ImDrawFlags_RoundCornersDefault_", + "value": "ImDrawFlags_RoundCornersAll" + }, + { + "calc_value": 496, + "name": "ImDrawFlags_RoundCornersMask_", + "value": "ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone" + } + ], + "ImDrawListFlags_": [ + { + "calc_value": 0, + "name": "ImDrawListFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImDrawListFlags_AntiAliasedLines", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImDrawListFlags_AntiAliasedLinesUseTex", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImDrawListFlags_AntiAliasedFill", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImDrawListFlags_AllowVtxOffset", + "value": "1 << 3" + } + ], + "ImFontAtlasFlags_": [ + { + "calc_value": 0, + "name": "ImFontAtlasFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImFontAtlasFlags_NoPowerOfTwoHeight", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImFontAtlasFlags_NoMouseCursors", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImFontAtlasFlags_NoBakedLines", + "value": "1 << 2" + } + ], + "ImGuiBackendFlags_": [ + { + "calc_value": 0, + "name": "ImGuiBackendFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiBackendFlags_HasGamepad", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiBackendFlags_HasMouseCursors", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiBackendFlags_HasSetMousePos", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiBackendFlags_RendererHasVtxOffset", + "value": "1 << 3" + }, + { + "calc_value": 1024, + "name": "ImGuiBackendFlags_PlatformHasViewports", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiBackendFlags_HasMouseHoveredViewport", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiBackendFlags_RendererHasViewports", + "value": "1 << 12" + } + ], + "ImGuiButtonFlags_": [ + { + "calc_value": 0, + "name": "ImGuiButtonFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiButtonFlags_MouseButtonLeft", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiButtonFlags_MouseButtonRight", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiButtonFlags_MouseButtonMiddle", + "value": "1 << 2" + }, + { + "calc_value": 7, + "name": "ImGuiButtonFlags_MouseButtonMask_", + "value": "ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle" + }, + { + "calc_value": 1, + "name": "ImGuiButtonFlags_MouseButtonDefault_", + "value": "ImGuiButtonFlags_MouseButtonLeft" + } + ], + "ImGuiCol_": [ + { + "calc_value": 0, + "name": "ImGuiCol_Text", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiCol_TextDisabled", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiCol_WindowBg", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiCol_ChildBg", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiCol_PopupBg", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiCol_Border", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiCol_BorderShadow", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiCol_FrameBg", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiCol_FrameBgHovered", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiCol_FrameBgActive", + "value": "9" + }, + { + "calc_value": 10, + "name": "ImGuiCol_TitleBg", + "value": "10" + }, + { + "calc_value": 11, + "name": "ImGuiCol_TitleBgActive", + "value": "11" + }, + { + "calc_value": 12, + "name": "ImGuiCol_TitleBgCollapsed", + "value": "12" + }, + { + "calc_value": 13, + "name": "ImGuiCol_MenuBarBg", + "value": "13" + }, + { + "calc_value": 14, + "name": "ImGuiCol_ScrollbarBg", + "value": "14" + }, + { + "calc_value": 15, + "name": "ImGuiCol_ScrollbarGrab", + "value": "15" + }, + { + "calc_value": 16, + "name": "ImGuiCol_ScrollbarGrabHovered", + "value": "16" + }, + { + "calc_value": 17, + "name": "ImGuiCol_ScrollbarGrabActive", + "value": "17" + }, + { + "calc_value": 18, + "name": "ImGuiCol_CheckMark", + "value": "18" + }, + { + "calc_value": 19, + "name": "ImGuiCol_SliderGrab", + "value": "19" + }, + { + "calc_value": 20, + "name": "ImGuiCol_SliderGrabActive", + "value": "20" + }, + { + "calc_value": 21, + "name": "ImGuiCol_Button", + "value": "21" + }, + { + "calc_value": 22, + "name": "ImGuiCol_ButtonHovered", + "value": "22" + }, + { + "calc_value": 23, + "name": "ImGuiCol_ButtonActive", + "value": "23" + }, + { + "calc_value": 24, + "name": "ImGuiCol_Header", + "value": "24" + }, + { + "calc_value": 25, + "name": "ImGuiCol_HeaderHovered", + "value": "25" + }, + { + "calc_value": 26, + "name": "ImGuiCol_HeaderActive", + "value": "26" + }, + { + "calc_value": 27, + "name": "ImGuiCol_Separator", + "value": "27" + }, + { + "calc_value": 28, + "name": "ImGuiCol_SeparatorHovered", + "value": "28" + }, + { + "calc_value": 29, + "name": "ImGuiCol_SeparatorActive", + "value": "29" + }, + { + "calc_value": 30, + "name": "ImGuiCol_ResizeGrip", + "value": "30" + }, + { + "calc_value": 31, + "name": "ImGuiCol_ResizeGripHovered", + "value": "31" + }, + { + "calc_value": 32, + "name": "ImGuiCol_ResizeGripActive", + "value": "32" + }, + { + "calc_value": 33, + "name": "ImGuiCol_Tab", + "value": "33" + }, + { + "calc_value": 34, + "name": "ImGuiCol_TabHovered", + "value": "34" + }, + { + "calc_value": 35, + "name": "ImGuiCol_TabActive", + "value": "35" + }, + { + "calc_value": 36, + "name": "ImGuiCol_TabUnfocused", + "value": "36" + }, + { + "calc_value": 37, + "name": "ImGuiCol_TabUnfocusedActive", + "value": "37" + }, + { + "calc_value": 38, + "name": "ImGuiCol_DockingPreview", + "value": "38" + }, + { + "calc_value": 39, + "name": "ImGuiCol_DockingEmptyBg", + "value": "39" + }, + { + "calc_value": 40, + "name": "ImGuiCol_PlotLines", + "value": "40" + }, + { + "calc_value": 41, + "name": "ImGuiCol_PlotLinesHovered", + "value": "41" + }, + { + "calc_value": 42, + "name": "ImGuiCol_PlotHistogram", + "value": "42" + }, + { + "calc_value": 43, + "name": "ImGuiCol_PlotHistogramHovered", + "value": "43" + }, + { + "calc_value": 44, + "name": "ImGuiCol_TableHeaderBg", + "value": "44" + }, + { + "calc_value": 45, + "name": "ImGuiCol_TableBorderStrong", + "value": "45" + }, + { + "calc_value": 46, + "name": "ImGuiCol_TableBorderLight", + "value": "46" + }, + { + "calc_value": 47, + "name": "ImGuiCol_TableRowBg", + "value": "47" + }, + { + "calc_value": 48, + "name": "ImGuiCol_TableRowBgAlt", + "value": "48" + }, + { + "calc_value": 49, + "name": "ImGuiCol_TextSelectedBg", + "value": "49" + }, + { + "calc_value": 50, + "name": "ImGuiCol_DragDropTarget", + "value": "50" + }, + { + "calc_value": 51, + "name": "ImGuiCol_NavHighlight", + "value": "51" + }, + { + "calc_value": 52, + "name": "ImGuiCol_NavWindowingHighlight", + "value": "52" + }, + { + "calc_value": 53, + "name": "ImGuiCol_NavWindowingDimBg", + "value": "53" + }, + { + "calc_value": 54, + "name": "ImGuiCol_ModalWindowDimBg", + "value": "54" + }, + { + "calc_value": 55, + "name": "ImGuiCol_COUNT", + "value": "55" + } + ], + "ImGuiColorEditFlags_": [ + { + "calc_value": 0, + "name": "ImGuiColorEditFlags_None", + "value": "0" + }, + { + "calc_value": 2, + "name": "ImGuiColorEditFlags_NoAlpha", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiColorEditFlags_NoPicker", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiColorEditFlags_NoOptions", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiColorEditFlags_NoSmallPreview", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiColorEditFlags_NoInputs", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiColorEditFlags_NoTooltip", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiColorEditFlags_NoLabel", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiColorEditFlags_NoSidePreview", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiColorEditFlags_NoDragDrop", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiColorEditFlags_NoBorder", + "value": "1 << 10" + }, + { + "calc_value": 65536, + "name": "ImGuiColorEditFlags_AlphaBar", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiColorEditFlags_AlphaPreview", + "value": "1 << 17" + }, + { + "calc_value": 262144, + "name": "ImGuiColorEditFlags_AlphaPreviewHalf", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiColorEditFlags_HDR", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiColorEditFlags_DisplayRGB", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiColorEditFlags_DisplayHSV", + "value": "1 << 21" + }, + { + "calc_value": 4194304, + "name": "ImGuiColorEditFlags_DisplayHex", + "value": "1 << 22" + }, + { + "calc_value": 8388608, + "name": "ImGuiColorEditFlags_Uint8", + "value": "1 << 23" + }, + { + "calc_value": 16777216, + "name": "ImGuiColorEditFlags_Float", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiColorEditFlags_PickerHueBar", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiColorEditFlags_PickerHueWheel", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiColorEditFlags_InputRGB", + "value": "1 << 27" + }, + { + "calc_value": 268435456, + "name": "ImGuiColorEditFlags_InputHSV", + "value": "1 << 28" + }, + { + "calc_value": 177209344, + "name": "ImGuiColorEditFlags_DefaultOptions_", + "value": "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar" + }, + { + "calc_value": 7340032, + "name": "ImGuiColorEditFlags_DisplayMask_", + "value": "ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex" + }, + { + "calc_value": 25165824, + "name": "ImGuiColorEditFlags_DataTypeMask_", + "value": "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float" + }, + { + "calc_value": 100663296, + "name": "ImGuiColorEditFlags_PickerMask_", + "value": "ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar" + }, + { + "calc_value": 402653184, + "name": "ImGuiColorEditFlags_InputMask_", + "value": "ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV" + } + ], + "ImGuiComboFlags_": [ + { + "calc_value": 0, + "name": "ImGuiComboFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiComboFlags_PopupAlignLeft", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiComboFlags_HeightSmall", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiComboFlags_HeightRegular", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiComboFlags_HeightLarge", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiComboFlags_HeightLargest", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiComboFlags_NoArrowButton", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiComboFlags_NoPreview", + "value": "1 << 6" + }, + { + "calc_value": 30, + "name": "ImGuiComboFlags_HeightMask_", + "value": "ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest" + } + ], + "ImGuiCond_": [ + { + "calc_value": 0, + "name": "ImGuiCond_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiCond_Always", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiCond_Once", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiCond_FirstUseEver", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiCond_Appearing", + "value": "1 << 3" + } + ], + "ImGuiConfigFlags_": [ + { + "calc_value": 0, + "name": "ImGuiConfigFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiConfigFlags_NavEnableKeyboard", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiConfigFlags_NavEnableGamepad", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiConfigFlags_NavEnableSetMousePos", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiConfigFlags_NavNoCaptureKeyboard", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiConfigFlags_NoMouse", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiConfigFlags_NoMouseCursorChange", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiConfigFlags_DockingEnable", + "value": "1 << 6" + }, + { + "calc_value": 1024, + "name": "ImGuiConfigFlags_ViewportsEnable", + "value": "1 << 10" + }, + { + "calc_value": 16384, + "name": "ImGuiConfigFlags_DpiEnableScaleViewports", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiConfigFlags_DpiEnableScaleFonts", + "value": "1 << 15" + }, + { + "calc_value": 1048576, + "name": "ImGuiConfigFlags_IsSRGB", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiConfigFlags_IsTouchScreen", + "value": "1 << 21" + } + ], + "ImGuiDataType_": [ + { + "calc_value": 0, + "name": "ImGuiDataType_S8", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDataType_U8", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiDataType_S16", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiDataType_U16", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiDataType_S32", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiDataType_U32", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiDataType_S64", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiDataType_U64", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiDataType_Float", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiDataType_Double", + "value": "9" + }, + { + "calc_value": 10, + "name": "ImGuiDataType_COUNT", + "value": "10" + } + ], + "ImGuiDir_": [ + { + "calc_value": -1, + "name": "ImGuiDir_None", + "value": "-1" + }, + { + "calc_value": 0, + "name": "ImGuiDir_Left", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDir_Right", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiDir_Up", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiDir_Down", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiDir_COUNT", + "value": "4" + } + ], + "ImGuiDockNodeFlags_": [ + { + "calc_value": 0, + "name": "ImGuiDockNodeFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDockNodeFlags_KeepAliveOnly", + "value": "1 << 0" + }, + { + "calc_value": 4, + "name": "ImGuiDockNodeFlags_NoDockingInCentralNode", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiDockNodeFlags_PassthruCentralNode", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiDockNodeFlags_NoSplit", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiDockNodeFlags_NoResize", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiDockNodeFlags_AutoHideTabBar", + "value": "1 << 6" + } + ], + "ImGuiDragDropFlags_": [ + { + "calc_value": 0, + "name": "ImGuiDragDropFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDragDropFlags_SourceNoPreviewTooltip", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiDragDropFlags_SourceNoDisableHover", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiDragDropFlags_SourceNoHoldToOpenOthers", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiDragDropFlags_SourceAllowNullID", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiDragDropFlags_SourceExtern", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiDragDropFlags_SourceAutoExpirePayload", + "value": "1 << 5" + }, + { + "calc_value": 1024, + "name": "ImGuiDragDropFlags_AcceptBeforeDelivery", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiDragDropFlags_AcceptNoDrawDefaultRect", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiDragDropFlags_AcceptNoPreviewTooltip", + "value": "1 << 12" + }, + { + "calc_value": 3072, + "name": "ImGuiDragDropFlags_AcceptPeekOnly", + "value": "ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect" + } + ], + "ImGuiFocusedFlags_": [ + { + "calc_value": 0, + "name": "ImGuiFocusedFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiFocusedFlags_ChildWindows", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiFocusedFlags_RootWindow", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiFocusedFlags_AnyWindow", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiFocusedFlags_NoPopupHierarchy", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiFocusedFlags_DockHierarchy", + "value": "1 << 4" + }, + { + "calc_value": 3, + "name": "ImGuiFocusedFlags_RootAndChildWindows", + "value": "ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows" + } + ], + "ImGuiFreeTypeBuilderFlags": [ + { + "calc_value": 1, + "name": "ImGuiFreeTypeBuilderFlags_NoHinting", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiFreeTypeBuilderFlags_NoAutoHint", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiFreeTypeBuilderFlags_ForceAutoHint", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiFreeTypeBuilderFlags_LightHinting", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiFreeTypeBuilderFlags_MonoHinting", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiFreeTypeBuilderFlags_Bold", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiFreeTypeBuilderFlags_Oblique", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiFreeTypeBuilderFlags_Monochrome", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiFreeTypeBuilderFlags_LoadColor", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiFreeTypeBuilderFlags_Bitmap", + "value": "1 << 9" + } + ], + "ImGuiHoveredFlags_": [ + { + "calc_value": 0, + "name": "ImGuiHoveredFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiHoveredFlags_ChildWindows", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiHoveredFlags_RootWindow", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiHoveredFlags_AnyWindow", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiHoveredFlags_NoPopupHierarchy", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiHoveredFlags_DockHierarchy", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiHoveredFlags_AllowWhenBlockedByPopup", + "value": "1 << 5" + }, + { + "calc_value": 128, + "name": "ImGuiHoveredFlags_AllowWhenBlockedByActiveItem", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiHoveredFlags_AllowWhenOverlapped", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiHoveredFlags_AllowWhenDisabled", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiHoveredFlags_NoNavOverride", + "value": "1 << 10" + }, + { + "calc_value": 416, + "name": "ImGuiHoveredFlags_RectOnly", + "value": "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped" + }, + { + "calc_value": 3, + "name": "ImGuiHoveredFlags_RootAndChildWindows", + "value": "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" + }, + { + "calc_value": 2048, + "name": "ImGuiHoveredFlags_DelayNormal", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiHoveredFlags_DelayShort", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiHoveredFlags_NoSharedDelay", + "value": "1 << 13" + } + ], + "ImGuiInputTextFlags_": [ + { + "calc_value": 0, + "name": "ImGuiInputTextFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiInputTextFlags_CharsDecimal", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiInputTextFlags_CharsHexadecimal", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiInputTextFlags_CharsUppercase", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiInputTextFlags_CharsNoBlank", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiInputTextFlags_AutoSelectAll", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiInputTextFlags_EnterReturnsTrue", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiInputTextFlags_CallbackCompletion", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiInputTextFlags_CallbackHistory", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiInputTextFlags_CallbackAlways", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiInputTextFlags_CallbackCharFilter", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiInputTextFlags_AllowTabInput", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiInputTextFlags_CtrlEnterForNewLine", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiInputTextFlags_NoHorizontalScroll", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiInputTextFlags_AlwaysOverwrite", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiInputTextFlags_ReadOnly", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiInputTextFlags_Password", + "value": "1 << 15" + }, + { + "calc_value": 65536, + "name": "ImGuiInputTextFlags_NoUndoRedo", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiInputTextFlags_CharsScientific", + "value": "1 << 17" + }, + { + "calc_value": 262144, + "name": "ImGuiInputTextFlags_CallbackResize", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiInputTextFlags_CallbackEdit", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiInputTextFlags_EscapeClearsAll", + "value": "1 << 20" + } + ], + "ImGuiKey": [ + { + "calc_value": 0, + "name": "ImGuiKey_None", + "value": "0" + }, + { + "calc_value": 512, + "name": "ImGuiKey_Tab", + "value": "512" + }, + { + "calc_value": 513, + "name": "ImGuiKey_LeftArrow", + "value": "513" + }, + { + "calc_value": 514, + "name": "ImGuiKey_RightArrow", + "value": "514" + }, + { + "calc_value": 515, + "name": "ImGuiKey_UpArrow", + "value": "515" + }, + { + "calc_value": 516, + "name": "ImGuiKey_DownArrow", + "value": "516" + }, + { + "calc_value": 517, + "name": "ImGuiKey_PageUp", + "value": "517" + }, + { + "calc_value": 518, + "name": "ImGuiKey_PageDown", + "value": "518" + }, + { + "calc_value": 519, + "name": "ImGuiKey_Home", + "value": "519" + }, + { + "calc_value": 520, + "name": "ImGuiKey_End", + "value": "520" + }, + { + "calc_value": 521, + "name": "ImGuiKey_Insert", + "value": "521" + }, + { + "calc_value": 522, + "name": "ImGuiKey_Delete", + "value": "522" + }, + { + "calc_value": 523, + "name": "ImGuiKey_Backspace", + "value": "523" + }, + { + "calc_value": 524, + "name": "ImGuiKey_Space", + "value": "524" + }, + { + "calc_value": 525, + "name": "ImGuiKey_Enter", + "value": "525" + }, + { + "calc_value": 526, + "name": "ImGuiKey_Escape", + "value": "526" + }, + { + "calc_value": 527, + "name": "ImGuiKey_LeftCtrl", + "value": "527" + }, + { + "calc_value": 528, + "name": "ImGuiKey_LeftShift", + "value": "528" + }, + { + "calc_value": 529, + "name": "ImGuiKey_LeftAlt", + "value": "529" + }, + { + "calc_value": 530, + "name": "ImGuiKey_LeftSuper", + "value": "530" + }, + { + "calc_value": 531, + "name": "ImGuiKey_RightCtrl", + "value": "531" + }, + { + "calc_value": 532, + "name": "ImGuiKey_RightShift", + "value": "532" + }, + { + "calc_value": 533, + "name": "ImGuiKey_RightAlt", + "value": "533" + }, + { + "calc_value": 534, + "name": "ImGuiKey_RightSuper", + "value": "534" + }, + { + "calc_value": 535, + "name": "ImGuiKey_Menu", + "value": "535" + }, + { + "calc_value": 536, + "name": "ImGuiKey_0", + "value": "536" + }, + { + "calc_value": 537, + "name": "ImGuiKey_1", + "value": "537" + }, + { + "calc_value": 538, + "name": "ImGuiKey_2", + "value": "538" + }, + { + "calc_value": 539, + "name": "ImGuiKey_3", + "value": "539" + }, + { + "calc_value": 540, + "name": "ImGuiKey_4", + "value": "540" + }, + { + "calc_value": 541, + "name": "ImGuiKey_5", + "value": "541" + }, + { + "calc_value": 542, + "name": "ImGuiKey_6", + "value": "542" + }, + { + "calc_value": 543, + "name": "ImGuiKey_7", + "value": "543" + }, + { + "calc_value": 544, + "name": "ImGuiKey_8", + "value": "544" + }, + { + "calc_value": 545, + "name": "ImGuiKey_9", + "value": "545" + }, + { + "calc_value": 546, + "name": "ImGuiKey_A", + "value": "546" + }, + { + "calc_value": 547, + "name": "ImGuiKey_B", + "value": "547" + }, + { + "calc_value": 548, + "name": "ImGuiKey_C", + "value": "548" + }, + { + "calc_value": 549, + "name": "ImGuiKey_D", + "value": "549" + }, + { + "calc_value": 550, + "name": "ImGuiKey_E", + "value": "550" + }, + { + "calc_value": 551, + "name": "ImGuiKey_F", + "value": "551" + }, + { + "calc_value": 552, + "name": "ImGuiKey_G", + "value": "552" + }, + { + "calc_value": 553, + "name": "ImGuiKey_H", + "value": "553" + }, + { + "calc_value": 554, + "name": "ImGuiKey_I", + "value": "554" + }, + { + "calc_value": 555, + "name": "ImGuiKey_J", + "value": "555" + }, + { + "calc_value": 556, + "name": "ImGuiKey_K", + "value": "556" + }, + { + "calc_value": 557, + "name": "ImGuiKey_L", + "value": "557" + }, + { + "calc_value": 558, + "name": "ImGuiKey_M", + "value": "558" + }, + { + "calc_value": 559, + "name": "ImGuiKey_N", + "value": "559" + }, + { + "calc_value": 560, + "name": "ImGuiKey_O", + "value": "560" + }, + { + "calc_value": 561, + "name": "ImGuiKey_P", + "value": "561" + }, + { + "calc_value": 562, + "name": "ImGuiKey_Q", + "value": "562" + }, + { + "calc_value": 563, + "name": "ImGuiKey_R", + "value": "563" + }, + { + "calc_value": 564, + "name": "ImGuiKey_S", + "value": "564" + }, + { + "calc_value": 565, + "name": "ImGuiKey_T", + "value": "565" + }, + { + "calc_value": 566, + "name": "ImGuiKey_U", + "value": "566" + }, + { + "calc_value": 567, + "name": "ImGuiKey_V", + "value": "567" + }, + { + "calc_value": 568, + "name": "ImGuiKey_W", + "value": "568" + }, + { + "calc_value": 569, + "name": "ImGuiKey_X", + "value": "569" + }, + { + "calc_value": 570, + "name": "ImGuiKey_Y", + "value": "570" + }, + { + "calc_value": 571, + "name": "ImGuiKey_Z", + "value": "571" + }, + { + "calc_value": 572, + "name": "ImGuiKey_F1", + "value": "572" + }, + { + "calc_value": 573, + "name": "ImGuiKey_F2", + "value": "573" + }, + { + "calc_value": 574, + "name": "ImGuiKey_F3", + "value": "574" + }, + { + "calc_value": 575, + "name": "ImGuiKey_F4", + "value": "575" + }, + { + "calc_value": 576, + "name": "ImGuiKey_F5", + "value": "576" + }, + { + "calc_value": 577, + "name": "ImGuiKey_F6", + "value": "577" + }, + { + "calc_value": 578, + "name": "ImGuiKey_F7", + "value": "578" + }, + { + "calc_value": 579, + "name": "ImGuiKey_F8", + "value": "579" + }, + { + "calc_value": 580, + "name": "ImGuiKey_F9", + "value": "580" + }, + { + "calc_value": 581, + "name": "ImGuiKey_F10", + "value": "581" + }, + { + "calc_value": 582, + "name": "ImGuiKey_F11", + "value": "582" + }, + { + "calc_value": 583, + "name": "ImGuiKey_F12", + "value": "583" + }, + { + "calc_value": 584, + "name": "ImGuiKey_Apostrophe", + "value": "584" + }, + { + "calc_value": 585, + "name": "ImGuiKey_Comma", + "value": "585" + }, + { + "calc_value": 586, + "name": "ImGuiKey_Minus", + "value": "586" + }, + { + "calc_value": 587, + "name": "ImGuiKey_Period", + "value": "587" + }, + { + "calc_value": 588, + "name": "ImGuiKey_Slash", + "value": "588" + }, + { + "calc_value": 589, + "name": "ImGuiKey_Semicolon", + "value": "589" + }, + { + "calc_value": 590, + "name": "ImGuiKey_Equal", + "value": "590" + }, + { + "calc_value": 591, + "name": "ImGuiKey_LeftBracket", + "value": "591" + }, + { + "calc_value": 592, + "name": "ImGuiKey_Backslash", + "value": "592" + }, + { + "calc_value": 593, + "name": "ImGuiKey_RightBracket", + "value": "593" + }, + { + "calc_value": 594, + "name": "ImGuiKey_GraveAccent", + "value": "594" + }, + { + "calc_value": 595, + "name": "ImGuiKey_CapsLock", + "value": "595" + }, + { + "calc_value": 596, + "name": "ImGuiKey_ScrollLock", + "value": "596" + }, + { + "calc_value": 597, + "name": "ImGuiKey_NumLock", + "value": "597" + }, + { + "calc_value": 598, + "name": "ImGuiKey_PrintScreen", + "value": "598" + }, + { + "calc_value": 599, + "name": "ImGuiKey_Pause", + "value": "599" + }, + { + "calc_value": 600, + "name": "ImGuiKey_Keypad0", + "value": "600" + }, + { + "calc_value": 601, + "name": "ImGuiKey_Keypad1", + "value": "601" + }, + { + "calc_value": 602, + "name": "ImGuiKey_Keypad2", + "value": "602" + }, + { + "calc_value": 603, + "name": "ImGuiKey_Keypad3", + "value": "603" + }, + { + "calc_value": 604, + "name": "ImGuiKey_Keypad4", + "value": "604" + }, + { + "calc_value": 605, + "name": "ImGuiKey_Keypad5", + "value": "605" + }, + { + "calc_value": 606, + "name": "ImGuiKey_Keypad6", + "value": "606" + }, + { + "calc_value": 607, + "name": "ImGuiKey_Keypad7", + "value": "607" + }, + { + "calc_value": 608, + "name": "ImGuiKey_Keypad8", + "value": "608" + }, + { + "calc_value": 609, + "name": "ImGuiKey_Keypad9", + "value": "609" + }, + { + "calc_value": 610, + "name": "ImGuiKey_KeypadDecimal", + "value": "610" + }, + { + "calc_value": 611, + "name": "ImGuiKey_KeypadDivide", + "value": "611" + }, + { + "calc_value": 612, + "name": "ImGuiKey_KeypadMultiply", + "value": "612" + }, + { + "calc_value": 613, + "name": "ImGuiKey_KeypadSubtract", + "value": "613" + }, + { + "calc_value": 614, + "name": "ImGuiKey_KeypadAdd", + "value": "614" + }, + { + "calc_value": 615, + "name": "ImGuiKey_KeypadEnter", + "value": "615" + }, + { + "calc_value": 616, + "name": "ImGuiKey_KeypadEqual", + "value": "616" + }, + { + "calc_value": 617, + "name": "ImGuiKey_GamepadStart", + "value": "617" + }, + { + "calc_value": 618, + "name": "ImGuiKey_GamepadBack", + "value": "618" + }, + { + "calc_value": 619, + "name": "ImGuiKey_GamepadFaceLeft", + "value": "619" + }, + { + "calc_value": 620, + "name": "ImGuiKey_GamepadFaceRight", + "value": "620" + }, + { + "calc_value": 621, + "name": "ImGuiKey_GamepadFaceUp", + "value": "621" + }, + { + "calc_value": 622, + "name": "ImGuiKey_GamepadFaceDown", + "value": "622" + }, + { + "calc_value": 623, + "name": "ImGuiKey_GamepadDpadLeft", + "value": "623" + }, + { + "calc_value": 624, + "name": "ImGuiKey_GamepadDpadRight", + "value": "624" + }, + { + "calc_value": 625, + "name": "ImGuiKey_GamepadDpadUp", + "value": "625" + }, + { + "calc_value": 626, + "name": "ImGuiKey_GamepadDpadDown", + "value": "626" + }, + { + "calc_value": 627, + "name": "ImGuiKey_GamepadL1", + "value": "627" + }, + { + "calc_value": 628, + "name": "ImGuiKey_GamepadR1", + "value": "628" + }, + { + "calc_value": 629, + "name": "ImGuiKey_GamepadL2", + "value": "629" + }, + { + "calc_value": 630, + "name": "ImGuiKey_GamepadR2", + "value": "630" + }, + { + "calc_value": 631, + "name": "ImGuiKey_GamepadL3", + "value": "631" + }, + { + "calc_value": 632, + "name": "ImGuiKey_GamepadR3", + "value": "632" + }, + { + "calc_value": 633, + "name": "ImGuiKey_GamepadLStickLeft", + "value": "633" + }, + { + "calc_value": 634, + "name": "ImGuiKey_GamepadLStickRight", + "value": "634" + }, + { + "calc_value": 635, + "name": "ImGuiKey_GamepadLStickUp", + "value": "635" + }, + { + "calc_value": 636, + "name": "ImGuiKey_GamepadLStickDown", + "value": "636" + }, + { + "calc_value": 637, + "name": "ImGuiKey_GamepadRStickLeft", + "value": "637" + }, + { + "calc_value": 638, + "name": "ImGuiKey_GamepadRStickRight", + "value": "638" + }, + { + "calc_value": 639, + "name": "ImGuiKey_GamepadRStickUp", + "value": "639" + }, + { + "calc_value": 640, + "name": "ImGuiKey_GamepadRStickDown", + "value": "640" + }, + { + "calc_value": 641, + "name": "ImGuiKey_MouseLeft", + "value": "641" + }, + { + "calc_value": 642, + "name": "ImGuiKey_MouseRight", + "value": "642" + }, + { + "calc_value": 643, + "name": "ImGuiKey_MouseMiddle", + "value": "643" + }, + { + "calc_value": 644, + "name": "ImGuiKey_MouseX1", + "value": "644" + }, + { + "calc_value": 645, + "name": "ImGuiKey_MouseX2", + "value": "645" + }, + { + "calc_value": 646, + "name": "ImGuiKey_MouseWheelX", + "value": "646" + }, + { + "calc_value": 647, + "name": "ImGuiKey_MouseWheelY", + "value": "647" + }, + { + "calc_value": 648, + "name": "ImGuiKey_ReservedForModCtrl", + "value": "648" + }, + { + "calc_value": 649, + "name": "ImGuiKey_ReservedForModShift", + "value": "649" + }, + { + "calc_value": 650, + "name": "ImGuiKey_ReservedForModAlt", + "value": "650" + }, + { + "calc_value": 651, + "name": "ImGuiKey_ReservedForModSuper", + "value": "651" + }, + { + "calc_value": 652, + "name": "ImGuiKey_COUNT", + "value": "652" + }, + { + "calc_value": 0, + "name": "ImGuiMod_None", + "value": "0" + }, + { + "calc_value": 4096, + "name": "ImGuiMod_Ctrl", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiMod_Shift", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiMod_Alt", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiMod_Super", + "value": "1 << 15" + }, + { + "calc_value": 61440, + "name": "ImGuiMod_Mask_", + "value": "0xF000" + }, + { + "calc_value": 4096, + "name": "ImGuiMod_Shortcut", + "value": "ImGuiMod_Ctrl" + }, + { + "calc_value": 512, + "name": "ImGuiKey_NamedKey_BEGIN", + "value": "512" + }, + { + "calc_value": 652, + "name": "ImGuiKey_NamedKey_END", + "value": "ImGuiKey_COUNT" + }, + { + "calc_value": 140, + "name": "ImGuiKey_NamedKey_COUNT", + "value": "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN" + }, + { + "calc_value": 652, + "name": "ImGuiKey_KeysData_SIZE", + "value": "ImGuiKey_COUNT" + }, + { + "calc_value": 0, + "name": "ImGuiKey_KeysData_OFFSET", + "value": "0" + } + ], + "ImGuiMouseButton_": [ + { + "calc_value": 0, + "name": "ImGuiMouseButton_Left", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiMouseButton_Right", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiMouseButton_Middle", + "value": "2" + }, + { + "calc_value": 5, + "name": "ImGuiMouseButton_COUNT", + "value": "5" + } + ], + "ImGuiMouseCursor_": [ + { + "calc_value": -1, + "name": "ImGuiMouseCursor_None", + "value": "-1" + }, + { + "calc_value": 0, + "name": "ImGuiMouseCursor_Arrow", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiMouseCursor_TextInput", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiMouseCursor_ResizeAll", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiMouseCursor_ResizeNS", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiMouseCursor_ResizeEW", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiMouseCursor_ResizeNESW", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiMouseCursor_ResizeNWSE", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiMouseCursor_Hand", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiMouseCursor_NotAllowed", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiMouseCursor_COUNT", + "value": "9" + } + ], + "ImGuiNavInput": [ + { + "calc_value": 0, + "name": "ImGuiNavInput_Activate", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiNavInput_Cancel", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiNavInput_Input", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiNavInput_Menu", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiNavInput_DpadLeft", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiNavInput_DpadRight", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiNavInput_DpadUp", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiNavInput_DpadDown", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiNavInput_LStickLeft", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiNavInput_LStickRight", + "value": "9" + }, + { + "calc_value": 10, + "name": "ImGuiNavInput_LStickUp", + "value": "10" + }, + { + "calc_value": 11, + "name": "ImGuiNavInput_LStickDown", + "value": "11" + }, + { + "calc_value": 12, + "name": "ImGuiNavInput_FocusPrev", + "value": "12" + }, + { + "calc_value": 13, + "name": "ImGuiNavInput_FocusNext", + "value": "13" + }, + { + "calc_value": 14, + "name": "ImGuiNavInput_TweakSlow", + "value": "14" + }, + { + "calc_value": 15, + "name": "ImGuiNavInput_TweakFast", + "value": "15" + }, + { + "calc_value": 16, + "name": "ImGuiNavInput_COUNT", + "value": "16" + } + ], + "ImGuiPopupFlags_": [ + { + "calc_value": 0, + "name": "ImGuiPopupFlags_None", + "value": "0" + }, + { + "calc_value": 0, + "name": "ImGuiPopupFlags_MouseButtonLeft", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiPopupFlags_MouseButtonRight", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiPopupFlags_MouseButtonMiddle", + "value": "2" + }, + { + "calc_value": 31, + "name": "ImGuiPopupFlags_MouseButtonMask_", + "value": "0x1F" + }, + { + "calc_value": 1, + "name": "ImGuiPopupFlags_MouseButtonDefault_", + "value": "1" + }, + { + "calc_value": 32, + "name": "ImGuiPopupFlags_NoOpenOverExistingPopup", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiPopupFlags_NoOpenOverItems", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiPopupFlags_AnyPopupId", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiPopupFlags_AnyPopupLevel", + "value": "1 << 8" + }, + { + "calc_value": 384, + "name": "ImGuiPopupFlags_AnyPopup", + "value": "ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel" + } + ], + "ImGuiSelectableFlags_": [ + { + "calc_value": 0, + "name": "ImGuiSelectableFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiSelectableFlags_DontClosePopups", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiSelectableFlags_SpanAllColumns", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiSelectableFlags_AllowDoubleClick", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiSelectableFlags_Disabled", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiSelectableFlags_AllowItemOverlap", + "value": "1 << 4" + } + ], + "ImGuiSliderFlags_": [ + { + "calc_value": 0, + "name": "ImGuiSliderFlags_None", + "value": "0" + }, + { + "calc_value": 16, + "name": "ImGuiSliderFlags_AlwaysClamp", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiSliderFlags_Logarithmic", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiSliderFlags_NoRoundToFormat", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiSliderFlags_NoInput", + "value": "1 << 7" + }, + { + "calc_value": 1879048207, + "name": "ImGuiSliderFlags_InvalidMask_", + "value": "0x7000000F" + } + ], + "ImGuiSortDirection_": [ + { + "calc_value": 0, + "name": "ImGuiSortDirection_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiSortDirection_Ascending", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiSortDirection_Descending", + "value": "2" + } + ], + "ImGuiStyleVar_": [ + { + "calc_value": 0, + "name": "ImGuiStyleVar_Alpha", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiStyleVar_DisabledAlpha", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiStyleVar_WindowPadding", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiStyleVar_WindowRounding", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiStyleVar_WindowBorderSize", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiStyleVar_WindowMinSize", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiStyleVar_WindowTitleAlign", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiStyleVar_ChildRounding", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiStyleVar_ChildBorderSize", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiStyleVar_PopupRounding", + "value": "9" + }, + { + "calc_value": 10, + "name": "ImGuiStyleVar_PopupBorderSize", + "value": "10" + }, + { + "calc_value": 11, + "name": "ImGuiStyleVar_FramePadding", + "value": "11" + }, + { + "calc_value": 12, + "name": "ImGuiStyleVar_FrameRounding", + "value": "12" + }, + { + "calc_value": 13, + "name": "ImGuiStyleVar_FrameBorderSize", + "value": "13" + }, + { + "calc_value": 14, + "name": "ImGuiStyleVar_ItemSpacing", + "value": "14" + }, + { + "calc_value": 15, + "name": "ImGuiStyleVar_ItemInnerSpacing", + "value": "15" + }, + { + "calc_value": 16, + "name": "ImGuiStyleVar_IndentSpacing", + "value": "16" + }, + { + "calc_value": 17, + "name": "ImGuiStyleVar_CellPadding", + "value": "17" + }, + { + "calc_value": 18, + "name": "ImGuiStyleVar_ScrollbarSize", + "value": "18" + }, + { + "calc_value": 19, + "name": "ImGuiStyleVar_ScrollbarRounding", + "value": "19" + }, + { + "calc_value": 20, + "name": "ImGuiStyleVar_GrabMinSize", + "value": "20" + }, + { + "calc_value": 21, + "name": "ImGuiStyleVar_GrabRounding", + "value": "21" + }, + { + "calc_value": 22, + "name": "ImGuiStyleVar_TabRounding", + "value": "22" + }, + { + "calc_value": 23, + "name": "ImGuiStyleVar_ButtonTextAlign", + "value": "23" + }, + { + "calc_value": 24, + "name": "ImGuiStyleVar_SelectableTextAlign", + "value": "24" + }, + { + "calc_value": 25, + "name": "ImGuiStyleVar_COUNT", + "value": "25" + } + ], + "ImGuiTabBarFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTabBarFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTabBarFlags_Reorderable", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTabBarFlags_AutoSelectNewTabs", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTabBarFlags_TabListPopupButton", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTabBarFlags_NoTabListScrollingButtons", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTabBarFlags_NoTooltip", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTabBarFlags_FittingPolicyResizeDown", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTabBarFlags_FittingPolicyScroll", + "value": "1 << 7" + }, + { + "calc_value": 192, + "name": "ImGuiTabBarFlags_FittingPolicyMask_", + "value": "ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll" + }, + { + "calc_value": 64, + "name": "ImGuiTabBarFlags_FittingPolicyDefault_", + "value": "ImGuiTabBarFlags_FittingPolicyResizeDown" + } + ], + "ImGuiTabItemFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTabItemFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTabItemFlags_UnsavedDocument", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTabItemFlags_SetSelected", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTabItemFlags_NoCloseWithMiddleMouseButton", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTabItemFlags_NoPushId", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTabItemFlags_NoTooltip", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTabItemFlags_NoReorder", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTabItemFlags_Leading", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTabItemFlags_Trailing", + "value": "1 << 7" + } + ], + "ImGuiTableBgTarget_": [ + { + "calc_value": 0, + "name": "ImGuiTableBgTarget_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTableBgTarget_RowBg0", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiTableBgTarget_RowBg1", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiTableBgTarget_CellBg", + "value": "3" + } + ], + "ImGuiTableColumnFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTableColumnFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTableColumnFlags_Disabled", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTableColumnFlags_DefaultHide", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTableColumnFlags_DefaultSort", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTableColumnFlags_WidthStretch", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTableColumnFlags_WidthFixed", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTableColumnFlags_NoResize", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTableColumnFlags_NoReorder", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTableColumnFlags_NoHide", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiTableColumnFlags_NoClip", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiTableColumnFlags_NoSort", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiTableColumnFlags_NoSortAscending", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiTableColumnFlags_NoSortDescending", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiTableColumnFlags_NoHeaderLabel", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiTableColumnFlags_NoHeaderWidth", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiTableColumnFlags_PreferSortAscending", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiTableColumnFlags_PreferSortDescending", + "value": "1 << 15" + }, + { + "calc_value": 65536, + "name": "ImGuiTableColumnFlags_IndentEnable", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiTableColumnFlags_IndentDisable", + "value": "1 << 17" + }, + { + "calc_value": 16777216, + "name": "ImGuiTableColumnFlags_IsEnabled", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiTableColumnFlags_IsVisible", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiTableColumnFlags_IsSorted", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiTableColumnFlags_IsHovered", + "value": "1 << 27" + }, + { + "calc_value": 24, + "name": "ImGuiTableColumnFlags_WidthMask_", + "value": "ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed" + }, + { + "calc_value": 196608, + "name": "ImGuiTableColumnFlags_IndentMask_", + "value": "ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable" + }, + { + "calc_value": 251658240, + "name": "ImGuiTableColumnFlags_StatusMask_", + "value": "ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered" + }, + { + "calc_value": 1073741824, + "name": "ImGuiTableColumnFlags_NoDirectResize_", + "value": "1 << 30" + } + ], + "ImGuiTableFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTableFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTableFlags_Resizable", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTableFlags_Reorderable", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTableFlags_Hideable", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTableFlags_Sortable", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTableFlags_NoSavedSettings", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTableFlags_ContextMenuInBody", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTableFlags_RowBg", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTableFlags_BordersInnerH", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiTableFlags_BordersOuterH", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiTableFlags_BordersInnerV", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiTableFlags_BordersOuterV", + "value": "1 << 10" + }, + { + "calc_value": 384, + "name": "ImGuiTableFlags_BordersH", + "value": "ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH" + }, + { + "calc_value": 1536, + "name": "ImGuiTableFlags_BordersV", + "value": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV" + }, + { + "calc_value": 640, + "name": "ImGuiTableFlags_BordersInner", + "value": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH" + }, + { + "calc_value": 1280, + "name": "ImGuiTableFlags_BordersOuter", + "value": "ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH" + }, + { + "calc_value": 1920, + "name": "ImGuiTableFlags_Borders", + "value": "ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter" + }, + { + "calc_value": 2048, + "name": "ImGuiTableFlags_NoBordersInBody", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiTableFlags_NoBordersInBodyUntilResize", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiTableFlags_SizingFixedFit", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiTableFlags_SizingFixedSame", + "value": "2 << 13" + }, + { + "calc_value": 24576, + "name": "ImGuiTableFlags_SizingStretchProp", + "value": "3 << 13" + }, + { + "calc_value": 32768, + "name": "ImGuiTableFlags_SizingStretchSame", + "value": "4 << 13" + }, + { + "calc_value": 65536, + "name": "ImGuiTableFlags_NoHostExtendX", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiTableFlags_NoHostExtendY", + "value": "1 << 17" + }, + { + "calc_value": 262144, + "name": "ImGuiTableFlags_NoKeepColumnsVisible", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiTableFlags_PreciseWidths", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiTableFlags_NoClip", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiTableFlags_PadOuterX", + "value": "1 << 21" + }, + { + "calc_value": 4194304, + "name": "ImGuiTableFlags_NoPadOuterX", + "value": "1 << 22" + }, + { + "calc_value": 8388608, + "name": "ImGuiTableFlags_NoPadInnerX", + "value": "1 << 23" + }, + { + "calc_value": 16777216, + "name": "ImGuiTableFlags_ScrollX", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiTableFlags_ScrollY", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiTableFlags_SortMulti", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiTableFlags_SortTristate", + "value": "1 << 27" + }, + { + "calc_value": 57344, + "name": "ImGuiTableFlags_SizingMask_", + "value": "ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame" + } + ], + "ImGuiTableRowFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTableRowFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTableRowFlags_Headers", + "value": "1 << 0" + } + ], + "ImGuiTreeNodeFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTreeNodeFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTreeNodeFlags_Selected", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTreeNodeFlags_Framed", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTreeNodeFlags_AllowItemOverlap", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTreeNodeFlags_NoTreePushOnOpen", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTreeNodeFlags_NoAutoOpenOnLog", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTreeNodeFlags_DefaultOpen", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTreeNodeFlags_OpenOnDoubleClick", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTreeNodeFlags_OpenOnArrow", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiTreeNodeFlags_Leaf", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiTreeNodeFlags_Bullet", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiTreeNodeFlags_FramePadding", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiTreeNodeFlags_SpanAvailWidth", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiTreeNodeFlags_SpanFullWidth", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiTreeNodeFlags_NavLeftJumpsBackHere", + "value": "1 << 13" + }, + { + "calc_value": 26, + "name": "ImGuiTreeNodeFlags_CollapsingHeader", + "value": "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog" + } + ], + "ImGuiViewportFlags_": [ + { + "calc_value": 0, + "name": "ImGuiViewportFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiViewportFlags_IsPlatformWindow", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiViewportFlags_IsPlatformMonitor", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiViewportFlags_OwnedByApp", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiViewportFlags_NoDecoration", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiViewportFlags_NoTaskBarIcon", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiViewportFlags_NoFocusOnAppearing", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiViewportFlags_NoFocusOnClick", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiViewportFlags_NoInputs", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiViewportFlags_NoRendererClear", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiViewportFlags_TopMost", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiViewportFlags_Minimized", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiViewportFlags_NoAutoMerge", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiViewportFlags_CanHostOtherWindows", + "value": "1 << 12" + } + ], + "ImGuiWindowFlags_": [ + { + "calc_value": 0, + "name": "ImGuiWindowFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiWindowFlags_NoTitleBar", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiWindowFlags_NoResize", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiWindowFlags_NoMove", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiWindowFlags_NoScrollbar", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiWindowFlags_NoScrollWithMouse", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiWindowFlags_NoCollapse", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiWindowFlags_AlwaysAutoResize", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiWindowFlags_NoBackground", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiWindowFlags_NoSavedSettings", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiWindowFlags_NoMouseInputs", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiWindowFlags_MenuBar", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiWindowFlags_HorizontalScrollbar", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiWindowFlags_NoFocusOnAppearing", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiWindowFlags_NoBringToFrontOnFocus", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiWindowFlags_AlwaysVerticalScrollbar", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiWindowFlags_AlwaysHorizontalScrollbar", + "value": "1<< 15" + }, + { + "calc_value": 65536, + "name": "ImGuiWindowFlags_AlwaysUseWindowPadding", + "value": "1 << 16" + }, + { + "calc_value": 262144, + "name": "ImGuiWindowFlags_NoNavInputs", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiWindowFlags_NoNavFocus", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiWindowFlags_UnsavedDocument", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiWindowFlags_NoDocking", + "value": "1 << 21" + }, + { + "calc_value": 786432, + "name": "ImGuiWindowFlags_NoNav", + "value": "ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" + }, + { + "calc_value": 43, + "name": "ImGuiWindowFlags_NoDecoration", + "value": "ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse" + }, + { + "calc_value": 786944, + "name": "ImGuiWindowFlags_NoInputs", + "value": "ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" + }, + { + "calc_value": 8388608, + "name": "ImGuiWindowFlags_NavFlattened", + "value": "1 << 23" + }, + { + "calc_value": 16777216, + "name": "ImGuiWindowFlags_ChildWindow", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiWindowFlags_Tooltip", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiWindowFlags_Popup", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiWindowFlags_Modal", + "value": "1 << 27" + }, + { + "calc_value": 268435456, + "name": "ImGuiWindowFlags_ChildMenu", + "value": "1 << 28" + }, + { + "calc_value": 536870912, + "name": "ImGuiWindowFlags_DockNodeHost", + "value": "1 << 29" + } + ] + }, + "enumtypes": { + "ImGuiKey": "int" + }, + "locations": { + "ImColor": "imgui:2458", + "ImDrawChannel": "imgui:2548", + "ImDrawCmd": "imgui:2507", + "ImDrawCmdHeader": "imgui:2540", + "ImDrawData": "imgui:2740", + "ImDrawFlags_": "imgui:2574", + "ImDrawList": "imgui:2612", + "ImDrawListFlags_": "imgui:2594", + "ImDrawListSplitter": "imgui:2557", + "ImDrawVert": "imgui:2525", + "ImFont": "imgui:2959", + "ImFontAtlas": "imgui:2857", + "ImFontAtlasCustomRect": "imgui:2819", + "ImFontAtlasFlags_": "imgui:2832", + "ImFontConfig": "imgui:2763", + "ImFontGlyph": "imgui:2792", + "ImFontGlyphRangesBuilder": "imgui:2804", + "ImGuiBackendFlags_": "imgui:1579", + "ImGuiButtonFlags_": "imgui:1693", + "ImGuiCol_": "imgui:1594", + "ImGuiColorEditFlags_": "imgui:1706", + "ImGuiComboFlags_": "imgui:1124", + "ImGuiCond_": "imgui:1797", + "ImGuiConfigFlags_": "imgui:1554", + "ImGuiDataType_": "imgui:1376", + "ImGuiDir_": "imgui:1392", + "ImGuiDockNodeFlags_": "imgui:1341", + "ImGuiDragDropFlags_": "imgui:1354", + "ImGuiFocusedFlags_": "imgui:1301", + "ImGuiFreeTypeBuilderFlags": "imgui_freetype:19", + "ImGuiHoveredFlags_": "imgui:1315", + "ImGuiIO": "imgui:1974", + "ImGuiInputTextCallbackData": "imgui:2162", + "ImGuiInputTextFlags_": "imgui:1036", + "ImGuiKey": "imgui:1413", + "ImGuiKeyData": "imgui:1966", + "ImGuiListClipper": "imgui:2407", + "ImGuiMouseButton_": "imgui:1769", + "ImGuiMouseCursor_": "imgui:1779", + "ImGuiNavInput": "imgui:1545", + "ImGuiOnceUponAFrame": "imgui:2282", + "ImGuiPayload": "imgui:2223", + "ImGuiPlatformIO": "imgui:3124", + "ImGuiPlatformImeData": "imgui:3196", + "ImGuiPlatformMonitor": "imgui:3187", + "ImGuiPopupFlags_": "imgui:1097", + "ImGuiSelectableFlags_": "imgui:1113", + "ImGuiSizeCallbackData": "imgui:2193", + "ImGuiSliderFlags_": "imgui:1752", + "ImGuiSortDirection_": "imgui:1403", + "ImGuiStorage": "imgui:2344", + "ImGuiStoragePair": "imgui:2347", + "ImGuiStyle": "imgui:1909", + "ImGuiStyleVar_": "imgui:1661", + "ImGuiTabBarFlags_": "imgui:1138", + "ImGuiTabItemFlags_": "imgui:1154", + "ImGuiTableBgTarget_": "imgui:1292", + "ImGuiTableColumnFlags_": "imgui:1240", + "ImGuiTableColumnSortSpecs": "imgui:2245", + "ImGuiTableFlags_": "imgui:1189", + "ImGuiTableRowFlags_": "imgui:1277", + "ImGuiTableSortSpecs": "imgui:2259", + "ImGuiTextBuffer": "imgui:2317", + "ImGuiTextFilter": "imgui:2290", + "ImGuiTextRange": "imgui:2300", + "ImGuiTreeNodeFlags_": "imgui:1068", + "ImGuiViewport": "imgui:3040", + "ImGuiViewportFlags_": "imgui:3015", + "ImGuiWindowClass": "imgui:2208", + "ImGuiWindowFlags_": "imgui:995", + "ImVec2": "imgui:259", + "ImVec4": "imgui:272" + }, + "structs": { + "ImColor": [ + { + "name": "Value", + "type": "ImVec4" + } + ], + "ImDrawChannel": [ + { + "name": "_CmdBuffer", + "template_type": "ImDrawCmd", + "type": "ImVector_ImDrawCmd" + }, + { + "name": "_IdxBuffer", + "template_type": "ImDrawIdx", + "type": "ImVector_ImDrawIdx" + } + ], + "ImDrawCmd": [ + { + "name": "ClipRect", + "type": "ImVec4" + }, + { + "name": "TextureId", + "type": "ImTextureID" + }, + { + "name": "VtxOffset", + "type": "unsigned int" + }, + { + "name": "IdxOffset", + "type": "unsigned int" + }, + { + "name": "ElemCount", + "type": "unsigned int" + }, + { + "name": "UserCallback", + "type": "ImDrawCallback" + }, + { + "name": "UserCallbackData", + "type": "void*" + } + ], + "ImDrawCmdHeader": [ + { + "name": "ClipRect", + "type": "ImVec4" + }, + { + "name": "TextureId", + "type": "ImTextureID" + }, + { + "name": "VtxOffset", + "type": "unsigned int" + } + ], + "ImDrawData": [ + { + "name": "Valid", + "type": "bool" + }, + { + "name": "CmdListsCount", + "type": "int" + }, + { + "name": "TotalIdxCount", + "type": "int" + }, + { + "name": "TotalVtxCount", + "type": "int" + }, + { + "name": "CmdLists", + "type": "ImDrawList**" + }, + { + "name": "DisplayPos", + "type": "ImVec2" + }, + { + "name": "DisplaySize", + "type": "ImVec2" + }, + { + "name": "FramebufferScale", + "type": "ImVec2" + }, + { + "name": "OwnerViewport", + "type": "ImGuiViewport*" + } + ], + "ImDrawList": [ + { + "name": "CmdBuffer", + "template_type": "ImDrawCmd", + "type": "ImVector_ImDrawCmd" + }, + { + "name": "IdxBuffer", + "template_type": "ImDrawIdx", + "type": "ImVector_ImDrawIdx" + }, + { + "name": "VtxBuffer", + "template_type": "ImDrawVert", + "type": "ImVector_ImDrawVert" + }, + { + "name": "Flags", + "type": "ImDrawListFlags" + }, + { + "name": "_VtxCurrentIdx", + "type": "unsigned int" + }, + { + "name": "_Data", + "type": "ImDrawListSharedData*" + }, + { + "name": "_OwnerName", + "type": "const char*" + }, + { + "name": "_VtxWritePtr", + "type": "ImDrawVert*" + }, + { + "name": "_IdxWritePtr", + "type": "ImDrawIdx*" + }, + { + "name": "_ClipRectStack", + "template_type": "ImVec4", + "type": "ImVector_ImVec4" + }, + { + "name": "_TextureIdStack", + "template_type": "ImTextureID", + "type": "ImVector_ImTextureID" + }, + { + "name": "_Path", + "template_type": "ImVec2", + "type": "ImVector_ImVec2" + }, + { + "name": "_CmdHeader", + "type": "ImDrawCmdHeader" + }, + { + "name": "_Splitter", + "type": "ImDrawListSplitter" + }, + { + "name": "_FringeScale", + "type": "float" + } + ], + "ImDrawListSplitter": [ + { + "name": "_Current", + "type": "int" + }, + { + "name": "_Count", + "type": "int" + }, + { + "name": "_Channels", + "template_type": "ImDrawChannel", + "type": "ImVector_ImDrawChannel" + } + ], + "ImDrawVert": [ + { + "name": "pos", + "type": "ImVec2" + }, + { + "name": "uv", + "type": "ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "ImFont": [ + { + "name": "IndexAdvanceX", + "template_type": "float", + "type": "ImVector_float" + }, + { + "name": "FallbackAdvanceX", + "type": "float" + }, + { + "name": "FontSize", + "type": "float" + }, + { + "name": "IndexLookup", + "template_type": "ImWchar", + "type": "ImVector_ImWchar" + }, + { + "name": "Glyphs", + "template_type": "ImFontGlyph", + "type": "ImVector_ImFontGlyph" + }, + { + "name": "FallbackGlyph", + "type": "const ImFontGlyph*" + }, + { + "name": "ContainerAtlas", + "type": "ImFontAtlas*" + }, + { + "name": "ConfigData", + "type": "const ImFontConfig*" + }, + { + "name": "ConfigDataCount", + "type": "short" + }, + { + "name": "FallbackChar", + "type": "ImWchar" + }, + { + "name": "EllipsisChar", + "type": "ImWchar" + }, + { + "name": "DotChar", + "type": "ImWchar" + }, + { + "name": "DirtyLookupTables", + "type": "bool" + }, + { + "name": "Scale", + "type": "float" + }, + { + "name": "Ascent", + "type": "float" + }, + { + "name": "Descent", + "type": "float" + }, + { + "name": "MetricsTotalSurface", + "type": "int" + }, + { + "name": "Used4kPagesMap[(0x10FFFF+1)/4096/8]", + "size": 34, + "type": "ImU8" + } + ], + "ImFontAtlas": [ + { + "name": "Flags", + "type": "ImFontAtlasFlags" + }, + { + "name": "TexID", + "type": "ImTextureID" + }, + { + "name": "TexDesiredWidth", + "type": "int" + }, + { + "name": "TexGlyphPadding", + "type": "int" + }, + { + "name": "Locked", + "type": "bool" + }, + { + "name": "TexReady", + "type": "bool" + }, + { + "name": "TexPixelsUseColors", + "type": "bool" + }, + { + "name": "TexPixelsAlpha8", + "type": "unsigned char*" + }, + { + "name": "TexPixelsRGBA32", + "type": "unsigned int*" + }, + { + "name": "TexWidth", + "type": "int" + }, + { + "name": "TexHeight", + "type": "int" + }, + { + "name": "TexUvScale", + "type": "ImVec2" + }, + { + "name": "TexUvWhitePixel", + "type": "ImVec2" + }, + { + "name": "Fonts", + "template_type": "ImFont*", + "type": "ImVector_ImFontPtr" + }, + { + "name": "CustomRects", + "template_type": "ImFontAtlasCustomRect", + "type": "ImVector_ImFontAtlasCustomRect" + }, + { + "name": "ConfigData", + "template_type": "ImFontConfig", + "type": "ImVector_ImFontConfig" + }, + { + "name": "TexUvLines[(63)+1]", + "size": 64, + "type": "ImVec4" + }, + { + "name": "FontBuilderIO", + "type": "const ImFontBuilderIO*" + }, + { + "name": "FontBuilderFlags", + "type": "unsigned int" + }, + { + "name": "PackIdMouseCursors", + "type": "int" + }, + { + "name": "PackIdLines", + "type": "int" + } + ], + "ImFontAtlasCustomRect": [ + { + "name": "Width", + "type": "unsigned short" + }, + { + "name": "Height", + "type": "unsigned short" + }, + { + "name": "X", + "type": "unsigned short" + }, + { + "name": "Y", + "type": "unsigned short" + }, + { + "name": "GlyphID", + "type": "unsigned int" + }, + { + "name": "GlyphAdvanceX", + "type": "float" + }, + { + "name": "GlyphOffset", + "type": "ImVec2" + }, + { + "name": "Font", + "type": "ImFont*" + } + ], + "ImFontConfig": [ + { + "name": "FontData", + "type": "void*" + }, + { + "name": "FontDataSize", + "type": "int" + }, + { + "name": "FontDataOwnedByAtlas", + "type": "bool" + }, + { + "name": "FontNo", + "type": "int" + }, + { + "name": "SizePixels", + "type": "float" + }, + { + "name": "OversampleH", + "type": "int" + }, + { + "name": "OversampleV", + "type": "int" + }, + { + "name": "PixelSnapH", + "type": "bool" + }, + { + "name": "GlyphExtraSpacing", + "type": "ImVec2" + }, + { + "name": "GlyphOffset", + "type": "ImVec2" + }, + { + "name": "GlyphRanges", + "type": "const ImWchar*" + }, + { + "name": "GlyphMinAdvanceX", + "type": "float" + }, + { + "name": "GlyphMaxAdvanceX", + "type": "float" + }, + { + "name": "MergeMode", + "type": "bool" + }, + { + "name": "FontBuilderFlags", + "type": "unsigned int" + }, + { + "name": "RasterizerMultiply", + "type": "float" + }, + { + "name": "EllipsisChar", + "type": "ImWchar" + }, + { + "name": "Name[40]", + "size": 40, + "type": "char" + }, + { + "name": "DstFont", + "type": "ImFont*" + } + ], + "ImFontGlyph": [ + { + "bitfield": "1", + "name": "Colored", + "type": "unsigned int" + }, + { + "bitfield": "1", + "name": "Visible", + "type": "unsigned int" + }, + { + "bitfield": "30", + "name": "Codepoint", + "type": "unsigned int" + }, + { + "name": "AdvanceX", + "type": "float" + }, + { + "name": "X0", + "type": "float" + }, + { + "name": "Y0", + "type": "float" + }, + { + "name": "X1", + "type": "float" + }, + { + "name": "Y1", + "type": "float" + }, + { + "name": "U0", + "type": "float" + }, + { + "name": "V0", + "type": "float" + }, + { + "name": "U1", + "type": "float" + }, + { + "name": "V1", + "type": "float" + } + ], + "ImFontGlyphRangesBuilder": [ + { + "name": "UsedChars", + "template_type": "ImU32", + "type": "ImVector_ImU32" + } + ], + "ImGuiIO": [ + { + "name": "ConfigFlags", + "type": "ImGuiConfigFlags" + }, + { + "name": "BackendFlags", + "type": "ImGuiBackendFlags" + }, + { + "name": "DisplaySize", + "type": "ImVec2" + }, + { + "name": "DeltaTime", + "type": "float" + }, + { + "name": "IniSavingRate", + "type": "float" + }, + { + "name": "IniFilename", + "type": "const char*" + }, + { + "name": "LogFilename", + "type": "const char*" + }, + { + "name": "MouseDoubleClickTime", + "type": "float" + }, + { + "name": "MouseDoubleClickMaxDist", + "type": "float" + }, + { + "name": "MouseDragThreshold", + "type": "float" + }, + { + "name": "KeyRepeatDelay", + "type": "float" + }, + { + "name": "KeyRepeatRate", + "type": "float" + }, + { + "name": "HoverDelayNormal", + "type": "float" + }, + { + "name": "HoverDelayShort", + "type": "float" + }, + { + "name": "UserData", + "type": "void*" + }, + { + "name": "Fonts", + "type": "ImFontAtlas*" + }, + { + "name": "FontGlobalScale", + "type": "float" + }, + { + "name": "FontAllowUserScaling", + "type": "bool" + }, + { + "name": "FontDefault", + "type": "ImFont*" + }, + { + "name": "DisplayFramebufferScale", + "type": "ImVec2" + }, + { + "name": "ConfigDockingNoSplit", + "type": "bool" + }, + { + "name": "ConfigDockingWithShift", + "type": "bool" + }, + { + "name": "ConfigDockingAlwaysTabBar", + "type": "bool" + }, + { + "name": "ConfigDockingTransparentPayload", + "type": "bool" + }, + { + "name": "ConfigViewportsNoAutoMerge", + "type": "bool" + }, + { + "name": "ConfigViewportsNoTaskBarIcon", + "type": "bool" + }, + { + "name": "ConfigViewportsNoDecoration", + "type": "bool" + }, + { + "name": "ConfigViewportsNoDefaultParent", + "type": "bool" + }, + { + "name": "MouseDrawCursor", + "type": "bool" + }, + { + "name": "ConfigMacOSXBehaviors", + "type": "bool" + }, + { + "name": "ConfigInputTrickleEventQueue", + "type": "bool" + }, + { + "name": "ConfigInputTextCursorBlink", + "type": "bool" + }, + { + "name": "ConfigInputTextEnterKeepActive", + "type": "bool" + }, + { + "name": "ConfigDragClickToInputText", + "type": "bool" + }, + { + "name": "ConfigWindowsResizeFromEdges", + "type": "bool" + }, + { + "name": "ConfigWindowsMoveFromTitleBarOnly", + "type": "bool" + }, + { + "name": "ConfigMemoryCompactTimer", + "type": "float" + }, + { + "name": "BackendPlatformName", + "type": "const char*" + }, + { + "name": "BackendRendererName", + "type": "const char*" + }, + { + "name": "BackendPlatformUserData", + "type": "void*" + }, + { + "name": "BackendRendererUserData", + "type": "void*" + }, + { + "name": "BackendLanguageUserData", + "type": "void*" + }, + { + "name": "GetClipboardTextFn", + "type": "const char*(*)(void* user_data)" + }, + { + "name": "SetClipboardTextFn", + "type": "void(*)(void* user_data,const char* text)" + }, + { + "name": "ClipboardUserData", + "type": "void*" + }, + { + "name": "SetPlatformImeDataFn", + "type": "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" + }, + { + "name": "_UnusedPadding", + "type": "void*" + }, + { + "name": "WantCaptureMouse", + "type": "bool" + }, + { + "name": "WantCaptureKeyboard", + "type": "bool" + }, + { + "name": "WantTextInput", + "type": "bool" + }, + { + "name": "WantSetMousePos", + "type": "bool" + }, + { + "name": "WantSaveIniSettings", + "type": "bool" + }, + { + "name": "NavActive", + "type": "bool" + }, + { + "name": "NavVisible", + "type": "bool" + }, + { + "name": "Framerate", + "type": "float" + }, + { + "name": "MetricsRenderVertices", + "type": "int" + }, + { + "name": "MetricsRenderIndices", + "type": "int" + }, + { + "name": "MetricsRenderWindows", + "type": "int" + }, + { + "name": "MetricsActiveWindows", + "type": "int" + }, + { + "name": "MetricsActiveAllocations", + "type": "int" + }, + { + "name": "MouseDelta", + "type": "ImVec2" + }, + { + "name": "KeyMap[ImGuiKey_COUNT]", + "size": 652, + "type": "int" + }, + { + "name": "KeysDown[ImGuiKey_COUNT]", + "size": 652, + "type": "bool" + }, + { + "name": "NavInputs[ImGuiNavInput_COUNT]", + "size": 16, + "type": "float" + }, + { + "name": "MousePos", + "type": "ImVec2" + }, + { + "name": "MouseDown[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseWheel", + "type": "float" + }, + { + "name": "MouseWheelH", + "type": "float" + }, + { + "name": "MouseHoveredViewport", + "type": "ImGuiID" + }, + { + "name": "KeyCtrl", + "type": "bool" + }, + { + "name": "KeyShift", + "type": "bool" + }, + { + "name": "KeyAlt", + "type": "bool" + }, + { + "name": "KeySuper", + "type": "bool" + }, + { + "name": "KeyMods", + "type": "ImGuiKeyChord" + }, + { + "name": "KeysData[ImGuiKey_KeysData_SIZE]", + "size": 652, + "type": "ImGuiKeyData" + }, + { + "name": "WantCaptureMouseUnlessPopupClose", + "type": "bool" + }, + { + "name": "MousePosPrev", + "type": "ImVec2" + }, + { + "name": "MouseClickedPos[5]", + "size": 5, + "type": "ImVec2" + }, + { + "name": "MouseClickedTime[5]", + "size": 5, + "type": "double" + }, + { + "name": "MouseClicked[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDoubleClicked[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseClickedCount[5]", + "size": 5, + "type": "ImU16" + }, + { + "name": "MouseClickedLastCount[5]", + "size": 5, + "type": "ImU16" + }, + { + "name": "MouseReleased[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDownOwned[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDownOwnedUnlessPopupClose[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDownDuration[5]", + "size": 5, + "type": "float" + }, + { + "name": "MouseDownDurationPrev[5]", + "size": 5, + "type": "float" + }, + { + "name": "MouseDragMaxDistanceAbs[5]", + "size": 5, + "type": "ImVec2" + }, + { + "name": "MouseDragMaxDistanceSqr[5]", + "size": 5, + "type": "float" + }, + { + "name": "PenPressure", + "type": "float" + }, + { + "name": "AppFocusLost", + "type": "bool" + }, + { + "name": "AppAcceptingEvents", + "type": "bool" + }, + { + "name": "BackendUsingLegacyKeyArrays", + "type": "ImS8" + }, + { + "name": "BackendUsingLegacyNavInputArray", + "type": "bool" + }, + { + "name": "InputQueueSurrogate", + "type": "ImWchar16" + }, + { + "name": "InputQueueCharacters", + "template_type": "ImWchar", + "type": "ImVector_ImWchar" + } + ], + "ImGuiInputTextCallbackData": [ + { + "name": "EventFlag", + "type": "ImGuiInputTextFlags" + }, + { + "name": "Flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "UserData", + "type": "void*" + }, + { + "name": "EventChar", + "type": "ImWchar" + }, + { + "name": "EventKey", + "type": "ImGuiKey" + }, + { + "name": "Buf", + "type": "char*" + }, + { + "name": "BufTextLen", + "type": "int" + }, + { + "name": "BufSize", + "type": "int" + }, + { + "name": "BufDirty", + "type": "bool" + }, + { + "name": "CursorPos", + "type": "int" + }, + { + "name": "SelectionStart", + "type": "int" + }, + { + "name": "SelectionEnd", + "type": "int" + } + ], + "ImGuiKeyData": [ + { + "name": "Down", + "type": "bool" + }, + { + "name": "DownDuration", + "type": "float" + }, + { + "name": "DownDurationPrev", + "type": "float" + }, + { + "name": "AnalogValue", + "type": "float" + } + ], + "ImGuiListClipper": [ + { + "name": "DisplayStart", + "type": "int" + }, + { + "name": "DisplayEnd", + "type": "int" + }, + { + "name": "ItemsCount", + "type": "int" + }, + { + "name": "ItemsHeight", + "type": "float" + }, + { + "name": "StartPosY", + "type": "float" + }, + { + "name": "TempData", + "type": "void*" + } + ], + "ImGuiOnceUponAFrame": [ + { + "name": "RefFrame", + "type": "int" + } + ], + "ImGuiPayload": [ + { + "name": "Data", + "type": "void*" + }, + { + "name": "DataSize", + "type": "int" + }, + { + "name": "SourceId", + "type": "ImGuiID" + }, + { + "name": "SourceParentId", + "type": "ImGuiID" + }, + { + "name": "DataFrameCount", + "type": "int" + }, + { + "name": "DataType[32+1]", + "size": 33, + "type": "char" + }, + { + "name": "Preview", + "type": "bool" + }, + { + "name": "Delivery", + "type": "bool" + } + ], + "ImGuiPlatformIO": [ + { + "name": "Platform_CreateWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_DestroyWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_ShowWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_SetWindowPos", + "type": "void(*)(ImGuiViewport* vp,ImVec2 pos)" + }, + { + "name": "Platform_GetWindowPos", + "type": "ImVec2(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_SetWindowSize", + "type": "void(*)(ImGuiViewport* vp,ImVec2 size)" + }, + { + "name": "Platform_GetWindowSize", + "type": "ImVec2(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_SetWindowFocus", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_GetWindowFocus", + "type": "bool(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_GetWindowMinimized", + "type": "bool(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_SetWindowTitle", + "type": "void(*)(ImGuiViewport* vp,const char* str)" + }, + { + "name": "Platform_SetWindowAlpha", + "type": "void(*)(ImGuiViewport* vp,float alpha)" + }, + { + "name": "Platform_UpdateWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_RenderWindow", + "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + }, + { + "name": "Platform_SwapBuffers", + "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + }, + { + "name": "Platform_GetWindowDpiScale", + "type": "float(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_OnChangedViewport", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_CreateVkSurface", + "type": "int(*)(ImGuiViewport* vp,ImU64 vk_inst,const void* vk_allocators,ImU64* out_vk_surface)" + }, + { + "name": "Renderer_CreateWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Renderer_DestroyWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Renderer_SetWindowSize", + "type": "void(*)(ImGuiViewport* vp,ImVec2 size)" + }, + { + "name": "Renderer_RenderWindow", + "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + }, + { + "name": "Renderer_SwapBuffers", + "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + }, + { + "name": "Monitors", + "template_type": "ImGuiPlatformMonitor", + "type": "ImVector_ImGuiPlatformMonitor" + }, + { + "name": "Viewports", + "template_type": "ImGuiViewport*", + "type": "ImVector_ImGuiViewportPtr" + } + ], + "ImGuiPlatformImeData": [ + { + "name": "WantVisible", + "type": "bool" + }, + { + "name": "InputPos", + "type": "ImVec2" + }, + { + "name": "InputLineHeight", + "type": "float" + } + ], + "ImGuiPlatformMonitor": [ + { + "name": "MainPos", + "type": "ImVec2" + }, + { + "name": "MainSize", + "type": "ImVec2" + }, + { + "name": "WorkPos", + "type": "ImVec2" + }, + { + "name": "WorkSize", + "type": "ImVec2" + }, + { + "name": "DpiScale", + "type": "float" + } + ], + "ImGuiSizeCallbackData": [ + { + "name": "UserData", + "type": "void*" + }, + { + "name": "Pos", + "type": "ImVec2" + }, + { + "name": "CurrentSize", + "type": "ImVec2" + }, + { + "name": "DesiredSize", + "type": "ImVec2" + } + ], + "ImGuiStorage": [ + { + "name": "Data", + "template_type": "ImGuiStoragePair", + "type": "ImVector_ImGuiStoragePair" + } + ], + "ImGuiStoragePair": [ + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "", + "type": "union { int val_i; float val_f; void* val_p;}" + } + ], + "ImGuiStyle": [ + { + "name": "Alpha", + "type": "float" + }, + { + "name": "DisabledAlpha", + "type": "float" + }, + { + "name": "WindowPadding", + "type": "ImVec2" + }, + { + "name": "WindowRounding", + "type": "float" + }, + { + "name": "WindowBorderSize", + "type": "float" + }, + { + "name": "WindowMinSize", + "type": "ImVec2" + }, + { + "name": "WindowTitleAlign", + "type": "ImVec2" + }, + { + "name": "WindowMenuButtonPosition", + "type": "ImGuiDir" + }, + { + "name": "ChildRounding", + "type": "float" + }, + { + "name": "ChildBorderSize", + "type": "float" + }, + { + "name": "PopupRounding", + "type": "float" + }, + { + "name": "PopupBorderSize", + "type": "float" + }, + { + "name": "FramePadding", + "type": "ImVec2" + }, + { + "name": "FrameRounding", + "type": "float" + }, + { + "name": "FrameBorderSize", + "type": "float" + }, + { + "name": "ItemSpacing", + "type": "ImVec2" + }, + { + "name": "ItemInnerSpacing", + "type": "ImVec2" + }, + { + "name": "CellPadding", + "type": "ImVec2" + }, + { + "name": "TouchExtraPadding", + "type": "ImVec2" + }, + { + "name": "IndentSpacing", + "type": "float" + }, + { + "name": "ColumnsMinSpacing", + "type": "float" + }, + { + "name": "ScrollbarSize", + "type": "float" + }, + { + "name": "ScrollbarRounding", + "type": "float" + }, + { + "name": "GrabMinSize", + "type": "float" + }, + { + "name": "GrabRounding", + "type": "float" + }, + { + "name": "LogSliderDeadzone", + "type": "float" + }, + { + "name": "TabRounding", + "type": "float" + }, + { + "name": "TabBorderSize", + "type": "float" + }, + { + "name": "TabMinWidthForCloseButton", + "type": "float" + }, + { + "name": "ColorButtonPosition", + "type": "ImGuiDir" + }, + { + "name": "ButtonTextAlign", + "type": "ImVec2" + }, + { + "name": "SelectableTextAlign", + "type": "ImVec2" + }, + { + "name": "DisplayWindowPadding", + "type": "ImVec2" + }, + { + "name": "DisplaySafeAreaPadding", + "type": "ImVec2" + }, + { + "name": "MouseCursorScale", + "type": "float" + }, + { + "name": "AntiAliasedLines", + "type": "bool" + }, + { + "name": "AntiAliasedLinesUseTex", + "type": "bool" + }, + { + "name": "AntiAliasedFill", + "type": "bool" + }, + { + "name": "CurveTessellationTol", + "type": "float" + }, + { + "name": "CircleTessellationMaxError", + "type": "float" + }, + { + "name": "Colors[ImGuiCol_COUNT]", + "size": 55, + "type": "ImVec4" + } + ], + "ImGuiTableColumnSortSpecs": [ + { + "name": "ColumnUserID", + "type": "ImGuiID" + }, + { + "name": "ColumnIndex", + "type": "ImS16" + }, + { + "name": "SortOrder", + "type": "ImS16" + }, + { + "bitfield": "8", + "name": "SortDirection", + "type": "ImGuiSortDirection" + } + ], + "ImGuiTableSortSpecs": [ + { + "name": "Specs", + "type": "const ImGuiTableColumnSortSpecs*" + }, + { + "name": "SpecsCount", + "type": "int" + }, + { + "name": "SpecsDirty", + "type": "bool" + } + ], + "ImGuiTextBuffer": [ + { + "name": "Buf", + "template_type": "char", + "type": "ImVector_char" + } + ], + "ImGuiTextFilter": [ + { + "name": "InputBuf[256]", + "size": 256, + "type": "char" + }, + { + "name": "Filters", + "template_type": "ImGuiTextRange", + "type": "ImVector_ImGuiTextRange" + }, + { + "name": "CountGrep", + "type": "int" + } + ], + "ImGuiTextRange": [ + { + "name": "b", + "type": "const char*" + }, + { + "name": "e", + "type": "const char*" + } + ], + "ImGuiViewport": [ + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "Flags", + "type": "ImGuiViewportFlags" + }, + { + "name": "Pos", + "type": "ImVec2" + }, + { + "name": "Size", + "type": "ImVec2" + }, + { + "name": "WorkPos", + "type": "ImVec2" + }, + { + "name": "WorkSize", + "type": "ImVec2" + }, + { + "name": "DpiScale", + "type": "float" + }, + { + "name": "ParentViewportId", + "type": "ImGuiID" + }, + { + "name": "DrawData", + "type": "ImDrawData*" + }, + { + "name": "RendererUserData", + "type": "void*" + }, + { + "name": "PlatformUserData", + "type": "void*" + }, + { + "name": "PlatformHandle", + "type": "void*" + }, + { + "name": "PlatformHandleRaw", + "type": "void*" + }, + { + "name": "PlatformWindowCreated", + "type": "bool" + }, + { + "name": "PlatformRequestMove", + "type": "bool" + }, + { + "name": "PlatformRequestResize", + "type": "bool" + }, + { + "name": "PlatformRequestClose", + "type": "bool" + } + ], + "ImGuiWindowClass": [ + { + "name": "ClassId", + "type": "ImGuiID" + }, + { + "name": "ParentViewportId", + "type": "ImGuiID" + }, + { + "name": "ViewportFlagsOverrideSet", + "type": "ImGuiViewportFlags" + }, + { + "name": "ViewportFlagsOverrideClear", + "type": "ImGuiViewportFlags" + }, + { + "name": "TabItemFlagsOverrideSet", + "type": "ImGuiTabItemFlags" + }, + { + "name": "DockNodeFlagsOverrideSet", + "type": "ImGuiDockNodeFlags" + }, + { + "name": "DockingAlwaysTabBar", + "type": "bool" + }, + { + "name": "DockingAllowUnclassed", + "type": "bool" + } + ], + "ImVec2": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ], + "ImVec4": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "z", + "type": "float" + }, + { + "name": "w", + "type": "float" + } + ] + } +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.lua b/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.lua new file mode 100644 index 000000000..c8ac47a4e --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.lua @@ -0,0 +1,3873 @@ +local defs = {} +defs["enums"] = {} +defs["enums"]["ImDrawFlags_"] = {} +defs["enums"]["ImDrawFlags_"][1] = {} +defs["enums"]["ImDrawFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImDrawFlags_"][1]["name"] = "ImDrawFlags_None" +defs["enums"]["ImDrawFlags_"][1]["value"] = "0" +defs["enums"]["ImDrawFlags_"][2] = {} +defs["enums"]["ImDrawFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImDrawFlags_"][2]["name"] = "ImDrawFlags_Closed" +defs["enums"]["ImDrawFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImDrawFlags_"][3] = {} +defs["enums"]["ImDrawFlags_"][3]["calc_value"] = 16 +defs["enums"]["ImDrawFlags_"][3]["name"] = "ImDrawFlags_RoundCornersTopLeft" +defs["enums"]["ImDrawFlags_"][3]["value"] = "1 << 4" +defs["enums"]["ImDrawFlags_"][4] = {} +defs["enums"]["ImDrawFlags_"][4]["calc_value"] = 32 +defs["enums"]["ImDrawFlags_"][4]["name"] = "ImDrawFlags_RoundCornersTopRight" +defs["enums"]["ImDrawFlags_"][4]["value"] = "1 << 5" +defs["enums"]["ImDrawFlags_"][5] = {} +defs["enums"]["ImDrawFlags_"][5]["calc_value"] = 64 +defs["enums"]["ImDrawFlags_"][5]["name"] = "ImDrawFlags_RoundCornersBottomLeft" +defs["enums"]["ImDrawFlags_"][5]["value"] = "1 << 6" +defs["enums"]["ImDrawFlags_"][6] = {} +defs["enums"]["ImDrawFlags_"][6]["calc_value"] = 128 +defs["enums"]["ImDrawFlags_"][6]["name"] = "ImDrawFlags_RoundCornersBottomRight" +defs["enums"]["ImDrawFlags_"][6]["value"] = "1 << 7" +defs["enums"]["ImDrawFlags_"][7] = {} +defs["enums"]["ImDrawFlags_"][7]["calc_value"] = 256 +defs["enums"]["ImDrawFlags_"][7]["name"] = "ImDrawFlags_RoundCornersNone" +defs["enums"]["ImDrawFlags_"][7]["value"] = "1 << 8" +defs["enums"]["ImDrawFlags_"][8] = {} +defs["enums"]["ImDrawFlags_"][8]["calc_value"] = 48 +defs["enums"]["ImDrawFlags_"][8]["name"] = "ImDrawFlags_RoundCornersTop" +defs["enums"]["ImDrawFlags_"][8]["value"] = "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight" +defs["enums"]["ImDrawFlags_"][9] = {} +defs["enums"]["ImDrawFlags_"][9]["calc_value"] = 192 +defs["enums"]["ImDrawFlags_"][9]["name"] = "ImDrawFlags_RoundCornersBottom" +defs["enums"]["ImDrawFlags_"][9]["value"] = "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight" +defs["enums"]["ImDrawFlags_"][10] = {} +defs["enums"]["ImDrawFlags_"][10]["calc_value"] = 80 +defs["enums"]["ImDrawFlags_"][10]["name"] = "ImDrawFlags_RoundCornersLeft" +defs["enums"]["ImDrawFlags_"][10]["value"] = "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft" +defs["enums"]["ImDrawFlags_"][11] = {} +defs["enums"]["ImDrawFlags_"][11]["calc_value"] = 160 +defs["enums"]["ImDrawFlags_"][11]["name"] = "ImDrawFlags_RoundCornersRight" +defs["enums"]["ImDrawFlags_"][11]["value"] = "ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight" +defs["enums"]["ImDrawFlags_"][12] = {} +defs["enums"]["ImDrawFlags_"][12]["calc_value"] = 240 +defs["enums"]["ImDrawFlags_"][12]["name"] = "ImDrawFlags_RoundCornersAll" +defs["enums"]["ImDrawFlags_"][12]["value"] = "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight" +defs["enums"]["ImDrawFlags_"][13] = {} +defs["enums"]["ImDrawFlags_"][13]["calc_value"] = 240 +defs["enums"]["ImDrawFlags_"][13]["name"] = "ImDrawFlags_RoundCornersDefault_" +defs["enums"]["ImDrawFlags_"][13]["value"] = "ImDrawFlags_RoundCornersAll" +defs["enums"]["ImDrawFlags_"][14] = {} +defs["enums"]["ImDrawFlags_"][14]["calc_value"] = 496 +defs["enums"]["ImDrawFlags_"][14]["name"] = "ImDrawFlags_RoundCornersMask_" +defs["enums"]["ImDrawFlags_"][14]["value"] = "ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone" +defs["enums"]["ImDrawListFlags_"] = {} +defs["enums"]["ImDrawListFlags_"][1] = {} +defs["enums"]["ImDrawListFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImDrawListFlags_"][1]["name"] = "ImDrawListFlags_None" +defs["enums"]["ImDrawListFlags_"][1]["value"] = "0" +defs["enums"]["ImDrawListFlags_"][2] = {} +defs["enums"]["ImDrawListFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImDrawListFlags_"][2]["name"] = "ImDrawListFlags_AntiAliasedLines" +defs["enums"]["ImDrawListFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImDrawListFlags_"][3] = {} +defs["enums"]["ImDrawListFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImDrawListFlags_"][3]["name"] = "ImDrawListFlags_AntiAliasedLinesUseTex" +defs["enums"]["ImDrawListFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImDrawListFlags_"][4] = {} +defs["enums"]["ImDrawListFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImDrawListFlags_"][4]["name"] = "ImDrawListFlags_AntiAliasedFill" +defs["enums"]["ImDrawListFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImDrawListFlags_"][5] = {} +defs["enums"]["ImDrawListFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImDrawListFlags_"][5]["name"] = "ImDrawListFlags_AllowVtxOffset" +defs["enums"]["ImDrawListFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImFontAtlasFlags_"] = {} +defs["enums"]["ImFontAtlasFlags_"][1] = {} +defs["enums"]["ImFontAtlasFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImFontAtlasFlags_"][1]["name"] = "ImFontAtlasFlags_None" +defs["enums"]["ImFontAtlasFlags_"][1]["value"] = "0" +defs["enums"]["ImFontAtlasFlags_"][2] = {} +defs["enums"]["ImFontAtlasFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImFontAtlasFlags_"][2]["name"] = "ImFontAtlasFlags_NoPowerOfTwoHeight" +defs["enums"]["ImFontAtlasFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImFontAtlasFlags_"][3] = {} +defs["enums"]["ImFontAtlasFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImFontAtlasFlags_"][3]["name"] = "ImFontAtlasFlags_NoMouseCursors" +defs["enums"]["ImFontAtlasFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImFontAtlasFlags_"][4] = {} +defs["enums"]["ImFontAtlasFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImFontAtlasFlags_"][4]["name"] = "ImFontAtlasFlags_NoBakedLines" +defs["enums"]["ImFontAtlasFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiBackendFlags_"] = {} +defs["enums"]["ImGuiBackendFlags_"][1] = {} +defs["enums"]["ImGuiBackendFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiBackendFlags_"][1]["name"] = "ImGuiBackendFlags_None" +defs["enums"]["ImGuiBackendFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiBackendFlags_"][2] = {} +defs["enums"]["ImGuiBackendFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiBackendFlags_"][2]["name"] = "ImGuiBackendFlags_HasGamepad" +defs["enums"]["ImGuiBackendFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiBackendFlags_"][3] = {} +defs["enums"]["ImGuiBackendFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiBackendFlags_"][3]["name"] = "ImGuiBackendFlags_HasMouseCursors" +defs["enums"]["ImGuiBackendFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiBackendFlags_"][4] = {} +defs["enums"]["ImGuiBackendFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiBackendFlags_"][4]["name"] = "ImGuiBackendFlags_HasSetMousePos" +defs["enums"]["ImGuiBackendFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiBackendFlags_"][5] = {} +defs["enums"]["ImGuiBackendFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiBackendFlags_"][5]["name"] = "ImGuiBackendFlags_RendererHasVtxOffset" +defs["enums"]["ImGuiBackendFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiBackendFlags_"][6] = {} +defs["enums"]["ImGuiBackendFlags_"][6]["calc_value"] = 1024 +defs["enums"]["ImGuiBackendFlags_"][6]["name"] = "ImGuiBackendFlags_PlatformHasViewports" +defs["enums"]["ImGuiBackendFlags_"][6]["value"] = "1 << 10" +defs["enums"]["ImGuiBackendFlags_"][7] = {} +defs["enums"]["ImGuiBackendFlags_"][7]["calc_value"] = 2048 +defs["enums"]["ImGuiBackendFlags_"][7]["name"] = "ImGuiBackendFlags_HasMouseHoveredViewport" +defs["enums"]["ImGuiBackendFlags_"][7]["value"] = "1 << 11" +defs["enums"]["ImGuiBackendFlags_"][8] = {} +defs["enums"]["ImGuiBackendFlags_"][8]["calc_value"] = 4096 +defs["enums"]["ImGuiBackendFlags_"][8]["name"] = "ImGuiBackendFlags_RendererHasViewports" +defs["enums"]["ImGuiBackendFlags_"][8]["value"] = "1 << 12" +defs["enums"]["ImGuiButtonFlags_"] = {} +defs["enums"]["ImGuiButtonFlags_"][1] = {} +defs["enums"]["ImGuiButtonFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiButtonFlags_"][1]["name"] = "ImGuiButtonFlags_None" +defs["enums"]["ImGuiButtonFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiButtonFlags_"][2] = {} +defs["enums"]["ImGuiButtonFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiButtonFlags_"][2]["name"] = "ImGuiButtonFlags_MouseButtonLeft" +defs["enums"]["ImGuiButtonFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiButtonFlags_"][3] = {} +defs["enums"]["ImGuiButtonFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiButtonFlags_"][3]["name"] = "ImGuiButtonFlags_MouseButtonRight" +defs["enums"]["ImGuiButtonFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiButtonFlags_"][4] = {} +defs["enums"]["ImGuiButtonFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiButtonFlags_"][4]["name"] = "ImGuiButtonFlags_MouseButtonMiddle" +defs["enums"]["ImGuiButtonFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiButtonFlags_"][5] = {} +defs["enums"]["ImGuiButtonFlags_"][5]["calc_value"] = 7 +defs["enums"]["ImGuiButtonFlags_"][5]["name"] = "ImGuiButtonFlags_MouseButtonMask_" +defs["enums"]["ImGuiButtonFlags_"][5]["value"] = "ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle" +defs["enums"]["ImGuiButtonFlags_"][6] = {} +defs["enums"]["ImGuiButtonFlags_"][6]["calc_value"] = 1 +defs["enums"]["ImGuiButtonFlags_"][6]["name"] = "ImGuiButtonFlags_MouseButtonDefault_" +defs["enums"]["ImGuiButtonFlags_"][6]["value"] = "ImGuiButtonFlags_MouseButtonLeft" +defs["enums"]["ImGuiCol_"] = {} +defs["enums"]["ImGuiCol_"][1] = {} +defs["enums"]["ImGuiCol_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiCol_"][1]["name"] = "ImGuiCol_Text" +defs["enums"]["ImGuiCol_"][1]["value"] = "0" +defs["enums"]["ImGuiCol_"][2] = {} +defs["enums"]["ImGuiCol_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiCol_"][2]["name"] = "ImGuiCol_TextDisabled" +defs["enums"]["ImGuiCol_"][2]["value"] = "1" +defs["enums"]["ImGuiCol_"][3] = {} +defs["enums"]["ImGuiCol_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiCol_"][3]["name"] = "ImGuiCol_WindowBg" +defs["enums"]["ImGuiCol_"][3]["value"] = "2" +defs["enums"]["ImGuiCol_"][4] = {} +defs["enums"]["ImGuiCol_"][4]["calc_value"] = 3 +defs["enums"]["ImGuiCol_"][4]["name"] = "ImGuiCol_ChildBg" +defs["enums"]["ImGuiCol_"][4]["value"] = "3" +defs["enums"]["ImGuiCol_"][5] = {} +defs["enums"]["ImGuiCol_"][5]["calc_value"] = 4 +defs["enums"]["ImGuiCol_"][5]["name"] = "ImGuiCol_PopupBg" +defs["enums"]["ImGuiCol_"][5]["value"] = "4" +defs["enums"]["ImGuiCol_"][6] = {} +defs["enums"]["ImGuiCol_"][6]["calc_value"] = 5 +defs["enums"]["ImGuiCol_"][6]["name"] = "ImGuiCol_Border" +defs["enums"]["ImGuiCol_"][6]["value"] = "5" +defs["enums"]["ImGuiCol_"][7] = {} +defs["enums"]["ImGuiCol_"][7]["calc_value"] = 6 +defs["enums"]["ImGuiCol_"][7]["name"] = "ImGuiCol_BorderShadow" +defs["enums"]["ImGuiCol_"][7]["value"] = "6" +defs["enums"]["ImGuiCol_"][8] = {} +defs["enums"]["ImGuiCol_"][8]["calc_value"] = 7 +defs["enums"]["ImGuiCol_"][8]["name"] = "ImGuiCol_FrameBg" +defs["enums"]["ImGuiCol_"][8]["value"] = "7" +defs["enums"]["ImGuiCol_"][9] = {} +defs["enums"]["ImGuiCol_"][9]["calc_value"] = 8 +defs["enums"]["ImGuiCol_"][9]["name"] = "ImGuiCol_FrameBgHovered" +defs["enums"]["ImGuiCol_"][9]["value"] = "8" +defs["enums"]["ImGuiCol_"][10] = {} +defs["enums"]["ImGuiCol_"][10]["calc_value"] = 9 +defs["enums"]["ImGuiCol_"][10]["name"] = "ImGuiCol_FrameBgActive" +defs["enums"]["ImGuiCol_"][10]["value"] = "9" +defs["enums"]["ImGuiCol_"][11] = {} +defs["enums"]["ImGuiCol_"][11]["calc_value"] = 10 +defs["enums"]["ImGuiCol_"][11]["name"] = "ImGuiCol_TitleBg" +defs["enums"]["ImGuiCol_"][11]["value"] = "10" +defs["enums"]["ImGuiCol_"][12] = {} +defs["enums"]["ImGuiCol_"][12]["calc_value"] = 11 +defs["enums"]["ImGuiCol_"][12]["name"] = "ImGuiCol_TitleBgActive" +defs["enums"]["ImGuiCol_"][12]["value"] = "11" +defs["enums"]["ImGuiCol_"][13] = {} +defs["enums"]["ImGuiCol_"][13]["calc_value"] = 12 +defs["enums"]["ImGuiCol_"][13]["name"] = "ImGuiCol_TitleBgCollapsed" +defs["enums"]["ImGuiCol_"][13]["value"] = "12" +defs["enums"]["ImGuiCol_"][14] = {} +defs["enums"]["ImGuiCol_"][14]["calc_value"] = 13 +defs["enums"]["ImGuiCol_"][14]["name"] = "ImGuiCol_MenuBarBg" +defs["enums"]["ImGuiCol_"][14]["value"] = "13" +defs["enums"]["ImGuiCol_"][15] = {} +defs["enums"]["ImGuiCol_"][15]["calc_value"] = 14 +defs["enums"]["ImGuiCol_"][15]["name"] = "ImGuiCol_ScrollbarBg" +defs["enums"]["ImGuiCol_"][15]["value"] = "14" +defs["enums"]["ImGuiCol_"][16] = {} +defs["enums"]["ImGuiCol_"][16]["calc_value"] = 15 +defs["enums"]["ImGuiCol_"][16]["name"] = "ImGuiCol_ScrollbarGrab" +defs["enums"]["ImGuiCol_"][16]["value"] = "15" +defs["enums"]["ImGuiCol_"][17] = {} +defs["enums"]["ImGuiCol_"][17]["calc_value"] = 16 +defs["enums"]["ImGuiCol_"][17]["name"] = "ImGuiCol_ScrollbarGrabHovered" +defs["enums"]["ImGuiCol_"][17]["value"] = "16" +defs["enums"]["ImGuiCol_"][18] = {} +defs["enums"]["ImGuiCol_"][18]["calc_value"] = 17 +defs["enums"]["ImGuiCol_"][18]["name"] = "ImGuiCol_ScrollbarGrabActive" +defs["enums"]["ImGuiCol_"][18]["value"] = "17" +defs["enums"]["ImGuiCol_"][19] = {} +defs["enums"]["ImGuiCol_"][19]["calc_value"] = 18 +defs["enums"]["ImGuiCol_"][19]["name"] = "ImGuiCol_CheckMark" +defs["enums"]["ImGuiCol_"][19]["value"] = "18" +defs["enums"]["ImGuiCol_"][20] = {} +defs["enums"]["ImGuiCol_"][20]["calc_value"] = 19 +defs["enums"]["ImGuiCol_"][20]["name"] = "ImGuiCol_SliderGrab" +defs["enums"]["ImGuiCol_"][20]["value"] = "19" +defs["enums"]["ImGuiCol_"][21] = {} +defs["enums"]["ImGuiCol_"][21]["calc_value"] = 20 +defs["enums"]["ImGuiCol_"][21]["name"] = "ImGuiCol_SliderGrabActive" +defs["enums"]["ImGuiCol_"][21]["value"] = "20" +defs["enums"]["ImGuiCol_"][22] = {} +defs["enums"]["ImGuiCol_"][22]["calc_value"] = 21 +defs["enums"]["ImGuiCol_"][22]["name"] = "ImGuiCol_Button" +defs["enums"]["ImGuiCol_"][22]["value"] = "21" +defs["enums"]["ImGuiCol_"][23] = {} +defs["enums"]["ImGuiCol_"][23]["calc_value"] = 22 +defs["enums"]["ImGuiCol_"][23]["name"] = "ImGuiCol_ButtonHovered" +defs["enums"]["ImGuiCol_"][23]["value"] = "22" +defs["enums"]["ImGuiCol_"][24] = {} +defs["enums"]["ImGuiCol_"][24]["calc_value"] = 23 +defs["enums"]["ImGuiCol_"][24]["name"] = "ImGuiCol_ButtonActive" +defs["enums"]["ImGuiCol_"][24]["value"] = "23" +defs["enums"]["ImGuiCol_"][25] = {} +defs["enums"]["ImGuiCol_"][25]["calc_value"] = 24 +defs["enums"]["ImGuiCol_"][25]["name"] = "ImGuiCol_Header" +defs["enums"]["ImGuiCol_"][25]["value"] = "24" +defs["enums"]["ImGuiCol_"][26] = {} +defs["enums"]["ImGuiCol_"][26]["calc_value"] = 25 +defs["enums"]["ImGuiCol_"][26]["name"] = "ImGuiCol_HeaderHovered" +defs["enums"]["ImGuiCol_"][26]["value"] = "25" +defs["enums"]["ImGuiCol_"][27] = {} +defs["enums"]["ImGuiCol_"][27]["calc_value"] = 26 +defs["enums"]["ImGuiCol_"][27]["name"] = "ImGuiCol_HeaderActive" +defs["enums"]["ImGuiCol_"][27]["value"] = "26" +defs["enums"]["ImGuiCol_"][28] = {} +defs["enums"]["ImGuiCol_"][28]["calc_value"] = 27 +defs["enums"]["ImGuiCol_"][28]["name"] = "ImGuiCol_Separator" +defs["enums"]["ImGuiCol_"][28]["value"] = "27" +defs["enums"]["ImGuiCol_"][29] = {} +defs["enums"]["ImGuiCol_"][29]["calc_value"] = 28 +defs["enums"]["ImGuiCol_"][29]["name"] = "ImGuiCol_SeparatorHovered" +defs["enums"]["ImGuiCol_"][29]["value"] = "28" +defs["enums"]["ImGuiCol_"][30] = {} +defs["enums"]["ImGuiCol_"][30]["calc_value"] = 29 +defs["enums"]["ImGuiCol_"][30]["name"] = "ImGuiCol_SeparatorActive" +defs["enums"]["ImGuiCol_"][30]["value"] = "29" +defs["enums"]["ImGuiCol_"][31] = {} +defs["enums"]["ImGuiCol_"][31]["calc_value"] = 30 +defs["enums"]["ImGuiCol_"][31]["name"] = "ImGuiCol_ResizeGrip" +defs["enums"]["ImGuiCol_"][31]["value"] = "30" +defs["enums"]["ImGuiCol_"][32] = {} +defs["enums"]["ImGuiCol_"][32]["calc_value"] = 31 +defs["enums"]["ImGuiCol_"][32]["name"] = "ImGuiCol_ResizeGripHovered" +defs["enums"]["ImGuiCol_"][32]["value"] = "31" +defs["enums"]["ImGuiCol_"][33] = {} +defs["enums"]["ImGuiCol_"][33]["calc_value"] = 32 +defs["enums"]["ImGuiCol_"][33]["name"] = "ImGuiCol_ResizeGripActive" +defs["enums"]["ImGuiCol_"][33]["value"] = "32" +defs["enums"]["ImGuiCol_"][34] = {} +defs["enums"]["ImGuiCol_"][34]["calc_value"] = 33 +defs["enums"]["ImGuiCol_"][34]["name"] = "ImGuiCol_Tab" +defs["enums"]["ImGuiCol_"][34]["value"] = "33" +defs["enums"]["ImGuiCol_"][35] = {} +defs["enums"]["ImGuiCol_"][35]["calc_value"] = 34 +defs["enums"]["ImGuiCol_"][35]["name"] = "ImGuiCol_TabHovered" +defs["enums"]["ImGuiCol_"][35]["value"] = "34" +defs["enums"]["ImGuiCol_"][36] = {} +defs["enums"]["ImGuiCol_"][36]["calc_value"] = 35 +defs["enums"]["ImGuiCol_"][36]["name"] = "ImGuiCol_TabActive" +defs["enums"]["ImGuiCol_"][36]["value"] = "35" +defs["enums"]["ImGuiCol_"][37] = {} +defs["enums"]["ImGuiCol_"][37]["calc_value"] = 36 +defs["enums"]["ImGuiCol_"][37]["name"] = "ImGuiCol_TabUnfocused" +defs["enums"]["ImGuiCol_"][37]["value"] = "36" +defs["enums"]["ImGuiCol_"][38] = {} +defs["enums"]["ImGuiCol_"][38]["calc_value"] = 37 +defs["enums"]["ImGuiCol_"][38]["name"] = "ImGuiCol_TabUnfocusedActive" +defs["enums"]["ImGuiCol_"][38]["value"] = "37" +defs["enums"]["ImGuiCol_"][39] = {} +defs["enums"]["ImGuiCol_"][39]["calc_value"] = 38 +defs["enums"]["ImGuiCol_"][39]["name"] = "ImGuiCol_DockingPreview" +defs["enums"]["ImGuiCol_"][39]["value"] = "38" +defs["enums"]["ImGuiCol_"][40] = {} +defs["enums"]["ImGuiCol_"][40]["calc_value"] = 39 +defs["enums"]["ImGuiCol_"][40]["name"] = "ImGuiCol_DockingEmptyBg" +defs["enums"]["ImGuiCol_"][40]["value"] = "39" +defs["enums"]["ImGuiCol_"][41] = {} +defs["enums"]["ImGuiCol_"][41]["calc_value"] = 40 +defs["enums"]["ImGuiCol_"][41]["name"] = "ImGuiCol_PlotLines" +defs["enums"]["ImGuiCol_"][41]["value"] = "40" +defs["enums"]["ImGuiCol_"][42] = {} +defs["enums"]["ImGuiCol_"][42]["calc_value"] = 41 +defs["enums"]["ImGuiCol_"][42]["name"] = "ImGuiCol_PlotLinesHovered" +defs["enums"]["ImGuiCol_"][42]["value"] = "41" +defs["enums"]["ImGuiCol_"][43] = {} +defs["enums"]["ImGuiCol_"][43]["calc_value"] = 42 +defs["enums"]["ImGuiCol_"][43]["name"] = "ImGuiCol_PlotHistogram" +defs["enums"]["ImGuiCol_"][43]["value"] = "42" +defs["enums"]["ImGuiCol_"][44] = {} +defs["enums"]["ImGuiCol_"][44]["calc_value"] = 43 +defs["enums"]["ImGuiCol_"][44]["name"] = "ImGuiCol_PlotHistogramHovered" +defs["enums"]["ImGuiCol_"][44]["value"] = "43" +defs["enums"]["ImGuiCol_"][45] = {} +defs["enums"]["ImGuiCol_"][45]["calc_value"] = 44 +defs["enums"]["ImGuiCol_"][45]["name"] = "ImGuiCol_TableHeaderBg" +defs["enums"]["ImGuiCol_"][45]["value"] = "44" +defs["enums"]["ImGuiCol_"][46] = {} +defs["enums"]["ImGuiCol_"][46]["calc_value"] = 45 +defs["enums"]["ImGuiCol_"][46]["name"] = "ImGuiCol_TableBorderStrong" +defs["enums"]["ImGuiCol_"][46]["value"] = "45" +defs["enums"]["ImGuiCol_"][47] = {} +defs["enums"]["ImGuiCol_"][47]["calc_value"] = 46 +defs["enums"]["ImGuiCol_"][47]["name"] = "ImGuiCol_TableBorderLight" +defs["enums"]["ImGuiCol_"][47]["value"] = "46" +defs["enums"]["ImGuiCol_"][48] = {} +defs["enums"]["ImGuiCol_"][48]["calc_value"] = 47 +defs["enums"]["ImGuiCol_"][48]["name"] = "ImGuiCol_TableRowBg" +defs["enums"]["ImGuiCol_"][48]["value"] = "47" +defs["enums"]["ImGuiCol_"][49] = {} +defs["enums"]["ImGuiCol_"][49]["calc_value"] = 48 +defs["enums"]["ImGuiCol_"][49]["name"] = "ImGuiCol_TableRowBgAlt" +defs["enums"]["ImGuiCol_"][49]["value"] = "48" +defs["enums"]["ImGuiCol_"][50] = {} +defs["enums"]["ImGuiCol_"][50]["calc_value"] = 49 +defs["enums"]["ImGuiCol_"][50]["name"] = "ImGuiCol_TextSelectedBg" +defs["enums"]["ImGuiCol_"][50]["value"] = "49" +defs["enums"]["ImGuiCol_"][51] = {} +defs["enums"]["ImGuiCol_"][51]["calc_value"] = 50 +defs["enums"]["ImGuiCol_"][51]["name"] = "ImGuiCol_DragDropTarget" +defs["enums"]["ImGuiCol_"][51]["value"] = "50" +defs["enums"]["ImGuiCol_"][52] = {} +defs["enums"]["ImGuiCol_"][52]["calc_value"] = 51 +defs["enums"]["ImGuiCol_"][52]["name"] = "ImGuiCol_NavHighlight" +defs["enums"]["ImGuiCol_"][52]["value"] = "51" +defs["enums"]["ImGuiCol_"][53] = {} +defs["enums"]["ImGuiCol_"][53]["calc_value"] = 52 +defs["enums"]["ImGuiCol_"][53]["name"] = "ImGuiCol_NavWindowingHighlight" +defs["enums"]["ImGuiCol_"][53]["value"] = "52" +defs["enums"]["ImGuiCol_"][54] = {} +defs["enums"]["ImGuiCol_"][54]["calc_value"] = 53 +defs["enums"]["ImGuiCol_"][54]["name"] = "ImGuiCol_NavWindowingDimBg" +defs["enums"]["ImGuiCol_"][54]["value"] = "53" +defs["enums"]["ImGuiCol_"][55] = {} +defs["enums"]["ImGuiCol_"][55]["calc_value"] = 54 +defs["enums"]["ImGuiCol_"][55]["name"] = "ImGuiCol_ModalWindowDimBg" +defs["enums"]["ImGuiCol_"][55]["value"] = "54" +defs["enums"]["ImGuiCol_"][56] = {} +defs["enums"]["ImGuiCol_"][56]["calc_value"] = 55 +defs["enums"]["ImGuiCol_"][56]["name"] = "ImGuiCol_COUNT" +defs["enums"]["ImGuiCol_"][56]["value"] = "55" +defs["enums"]["ImGuiColorEditFlags_"] = {} +defs["enums"]["ImGuiColorEditFlags_"][1] = {} +defs["enums"]["ImGuiColorEditFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiColorEditFlags_"][1]["name"] = "ImGuiColorEditFlags_None" +defs["enums"]["ImGuiColorEditFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiColorEditFlags_"][2] = {} +defs["enums"]["ImGuiColorEditFlags_"][2]["calc_value"] = 2 +defs["enums"]["ImGuiColorEditFlags_"][2]["name"] = "ImGuiColorEditFlags_NoAlpha" +defs["enums"]["ImGuiColorEditFlags_"][2]["value"] = "1 << 1" +defs["enums"]["ImGuiColorEditFlags_"][3] = {} +defs["enums"]["ImGuiColorEditFlags_"][3]["calc_value"] = 4 +defs["enums"]["ImGuiColorEditFlags_"][3]["name"] = "ImGuiColorEditFlags_NoPicker" +defs["enums"]["ImGuiColorEditFlags_"][3]["value"] = "1 << 2" +defs["enums"]["ImGuiColorEditFlags_"][4] = {} +defs["enums"]["ImGuiColorEditFlags_"][4]["calc_value"] = 8 +defs["enums"]["ImGuiColorEditFlags_"][4]["name"] = "ImGuiColorEditFlags_NoOptions" +defs["enums"]["ImGuiColorEditFlags_"][4]["value"] = "1 << 3" +defs["enums"]["ImGuiColorEditFlags_"][5] = {} +defs["enums"]["ImGuiColorEditFlags_"][5]["calc_value"] = 16 +defs["enums"]["ImGuiColorEditFlags_"][5]["name"] = "ImGuiColorEditFlags_NoSmallPreview" +defs["enums"]["ImGuiColorEditFlags_"][5]["value"] = "1 << 4" +defs["enums"]["ImGuiColorEditFlags_"][6] = {} +defs["enums"]["ImGuiColorEditFlags_"][6]["calc_value"] = 32 +defs["enums"]["ImGuiColorEditFlags_"][6]["name"] = "ImGuiColorEditFlags_NoInputs" +defs["enums"]["ImGuiColorEditFlags_"][6]["value"] = "1 << 5" +defs["enums"]["ImGuiColorEditFlags_"][7] = {} +defs["enums"]["ImGuiColorEditFlags_"][7]["calc_value"] = 64 +defs["enums"]["ImGuiColorEditFlags_"][7]["name"] = "ImGuiColorEditFlags_NoTooltip" +defs["enums"]["ImGuiColorEditFlags_"][7]["value"] = "1 << 6" +defs["enums"]["ImGuiColorEditFlags_"][8] = {} +defs["enums"]["ImGuiColorEditFlags_"][8]["calc_value"] = 128 +defs["enums"]["ImGuiColorEditFlags_"][8]["name"] = "ImGuiColorEditFlags_NoLabel" +defs["enums"]["ImGuiColorEditFlags_"][8]["value"] = "1 << 7" +defs["enums"]["ImGuiColorEditFlags_"][9] = {} +defs["enums"]["ImGuiColorEditFlags_"][9]["calc_value"] = 256 +defs["enums"]["ImGuiColorEditFlags_"][9]["name"] = "ImGuiColorEditFlags_NoSidePreview" +defs["enums"]["ImGuiColorEditFlags_"][9]["value"] = "1 << 8" +defs["enums"]["ImGuiColorEditFlags_"][10] = {} +defs["enums"]["ImGuiColorEditFlags_"][10]["calc_value"] = 512 +defs["enums"]["ImGuiColorEditFlags_"][10]["name"] = "ImGuiColorEditFlags_NoDragDrop" +defs["enums"]["ImGuiColorEditFlags_"][10]["value"] = "1 << 9" +defs["enums"]["ImGuiColorEditFlags_"][11] = {} +defs["enums"]["ImGuiColorEditFlags_"][11]["calc_value"] = 1024 +defs["enums"]["ImGuiColorEditFlags_"][11]["name"] = "ImGuiColorEditFlags_NoBorder" +defs["enums"]["ImGuiColorEditFlags_"][11]["value"] = "1 << 10" +defs["enums"]["ImGuiColorEditFlags_"][12] = {} +defs["enums"]["ImGuiColorEditFlags_"][12]["calc_value"] = 65536 +defs["enums"]["ImGuiColorEditFlags_"][12]["name"] = "ImGuiColorEditFlags_AlphaBar" +defs["enums"]["ImGuiColorEditFlags_"][12]["value"] = "1 << 16" +defs["enums"]["ImGuiColorEditFlags_"][13] = {} +defs["enums"]["ImGuiColorEditFlags_"][13]["calc_value"] = 131072 +defs["enums"]["ImGuiColorEditFlags_"][13]["name"] = "ImGuiColorEditFlags_AlphaPreview" +defs["enums"]["ImGuiColorEditFlags_"][13]["value"] = "1 << 17" +defs["enums"]["ImGuiColorEditFlags_"][14] = {} +defs["enums"]["ImGuiColorEditFlags_"][14]["calc_value"] = 262144 +defs["enums"]["ImGuiColorEditFlags_"][14]["name"] = "ImGuiColorEditFlags_AlphaPreviewHalf" +defs["enums"]["ImGuiColorEditFlags_"][14]["value"] = "1 << 18" +defs["enums"]["ImGuiColorEditFlags_"][15] = {} +defs["enums"]["ImGuiColorEditFlags_"][15]["calc_value"] = 524288 +defs["enums"]["ImGuiColorEditFlags_"][15]["name"] = "ImGuiColorEditFlags_HDR" +defs["enums"]["ImGuiColorEditFlags_"][15]["value"] = "1 << 19" +defs["enums"]["ImGuiColorEditFlags_"][16] = {} +defs["enums"]["ImGuiColorEditFlags_"][16]["calc_value"] = 1048576 +defs["enums"]["ImGuiColorEditFlags_"][16]["name"] = "ImGuiColorEditFlags_DisplayRGB" +defs["enums"]["ImGuiColorEditFlags_"][16]["value"] = "1 << 20" +defs["enums"]["ImGuiColorEditFlags_"][17] = {} +defs["enums"]["ImGuiColorEditFlags_"][17]["calc_value"] = 2097152 +defs["enums"]["ImGuiColorEditFlags_"][17]["name"] = "ImGuiColorEditFlags_DisplayHSV" +defs["enums"]["ImGuiColorEditFlags_"][17]["value"] = "1 << 21" +defs["enums"]["ImGuiColorEditFlags_"][18] = {} +defs["enums"]["ImGuiColorEditFlags_"][18]["calc_value"] = 4194304 +defs["enums"]["ImGuiColorEditFlags_"][18]["name"] = "ImGuiColorEditFlags_DisplayHex" +defs["enums"]["ImGuiColorEditFlags_"][18]["value"] = "1 << 22" +defs["enums"]["ImGuiColorEditFlags_"][19] = {} +defs["enums"]["ImGuiColorEditFlags_"][19]["calc_value"] = 8388608 +defs["enums"]["ImGuiColorEditFlags_"][19]["name"] = "ImGuiColorEditFlags_Uint8" +defs["enums"]["ImGuiColorEditFlags_"][19]["value"] = "1 << 23" +defs["enums"]["ImGuiColorEditFlags_"][20] = {} +defs["enums"]["ImGuiColorEditFlags_"][20]["calc_value"] = 16777216 +defs["enums"]["ImGuiColorEditFlags_"][20]["name"] = "ImGuiColorEditFlags_Float" +defs["enums"]["ImGuiColorEditFlags_"][20]["value"] = "1 << 24" +defs["enums"]["ImGuiColorEditFlags_"][21] = {} +defs["enums"]["ImGuiColorEditFlags_"][21]["calc_value"] = 33554432 +defs["enums"]["ImGuiColorEditFlags_"][21]["name"] = "ImGuiColorEditFlags_PickerHueBar" +defs["enums"]["ImGuiColorEditFlags_"][21]["value"] = "1 << 25" +defs["enums"]["ImGuiColorEditFlags_"][22] = {} +defs["enums"]["ImGuiColorEditFlags_"][22]["calc_value"] = 67108864 +defs["enums"]["ImGuiColorEditFlags_"][22]["name"] = "ImGuiColorEditFlags_PickerHueWheel" +defs["enums"]["ImGuiColorEditFlags_"][22]["value"] = "1 << 26" +defs["enums"]["ImGuiColorEditFlags_"][23] = {} +defs["enums"]["ImGuiColorEditFlags_"][23]["calc_value"] = 134217728 +defs["enums"]["ImGuiColorEditFlags_"][23]["name"] = "ImGuiColorEditFlags_InputRGB" +defs["enums"]["ImGuiColorEditFlags_"][23]["value"] = "1 << 27" +defs["enums"]["ImGuiColorEditFlags_"][24] = {} +defs["enums"]["ImGuiColorEditFlags_"][24]["calc_value"] = 268435456 +defs["enums"]["ImGuiColorEditFlags_"][24]["name"] = "ImGuiColorEditFlags_InputHSV" +defs["enums"]["ImGuiColorEditFlags_"][24]["value"] = "1 << 28" +defs["enums"]["ImGuiColorEditFlags_"][25] = {} +defs["enums"]["ImGuiColorEditFlags_"][25]["calc_value"] = 177209344 +defs["enums"]["ImGuiColorEditFlags_"][25]["name"] = "ImGuiColorEditFlags_DefaultOptions_" +defs["enums"]["ImGuiColorEditFlags_"][25]["value"] = "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar" +defs["enums"]["ImGuiColorEditFlags_"][26] = {} +defs["enums"]["ImGuiColorEditFlags_"][26]["calc_value"] = 7340032 +defs["enums"]["ImGuiColorEditFlags_"][26]["name"] = "ImGuiColorEditFlags_DisplayMask_" +defs["enums"]["ImGuiColorEditFlags_"][26]["value"] = "ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex" +defs["enums"]["ImGuiColorEditFlags_"][27] = {} +defs["enums"]["ImGuiColorEditFlags_"][27]["calc_value"] = 25165824 +defs["enums"]["ImGuiColorEditFlags_"][27]["name"] = "ImGuiColorEditFlags_DataTypeMask_" +defs["enums"]["ImGuiColorEditFlags_"][27]["value"] = "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float" +defs["enums"]["ImGuiColorEditFlags_"][28] = {} +defs["enums"]["ImGuiColorEditFlags_"][28]["calc_value"] = 100663296 +defs["enums"]["ImGuiColorEditFlags_"][28]["name"] = "ImGuiColorEditFlags_PickerMask_" +defs["enums"]["ImGuiColorEditFlags_"][28]["value"] = "ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar" +defs["enums"]["ImGuiColorEditFlags_"][29] = {} +defs["enums"]["ImGuiColorEditFlags_"][29]["calc_value"] = 402653184 +defs["enums"]["ImGuiColorEditFlags_"][29]["name"] = "ImGuiColorEditFlags_InputMask_" +defs["enums"]["ImGuiColorEditFlags_"][29]["value"] = "ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV" +defs["enums"]["ImGuiComboFlags_"] = {} +defs["enums"]["ImGuiComboFlags_"][1] = {} +defs["enums"]["ImGuiComboFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiComboFlags_"][1]["name"] = "ImGuiComboFlags_None" +defs["enums"]["ImGuiComboFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiComboFlags_"][2] = {} +defs["enums"]["ImGuiComboFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiComboFlags_"][2]["name"] = "ImGuiComboFlags_PopupAlignLeft" +defs["enums"]["ImGuiComboFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiComboFlags_"][3] = {} +defs["enums"]["ImGuiComboFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiComboFlags_"][3]["name"] = "ImGuiComboFlags_HeightSmall" +defs["enums"]["ImGuiComboFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiComboFlags_"][4] = {} +defs["enums"]["ImGuiComboFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiComboFlags_"][4]["name"] = "ImGuiComboFlags_HeightRegular" +defs["enums"]["ImGuiComboFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiComboFlags_"][5] = {} +defs["enums"]["ImGuiComboFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiComboFlags_"][5]["name"] = "ImGuiComboFlags_HeightLarge" +defs["enums"]["ImGuiComboFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiComboFlags_"][6] = {} +defs["enums"]["ImGuiComboFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiComboFlags_"][6]["name"] = "ImGuiComboFlags_HeightLargest" +defs["enums"]["ImGuiComboFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiComboFlags_"][7] = {} +defs["enums"]["ImGuiComboFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiComboFlags_"][7]["name"] = "ImGuiComboFlags_NoArrowButton" +defs["enums"]["ImGuiComboFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiComboFlags_"][8] = {} +defs["enums"]["ImGuiComboFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiComboFlags_"][8]["name"] = "ImGuiComboFlags_NoPreview" +defs["enums"]["ImGuiComboFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiComboFlags_"][9] = {} +defs["enums"]["ImGuiComboFlags_"][9]["calc_value"] = 30 +defs["enums"]["ImGuiComboFlags_"][9]["name"] = "ImGuiComboFlags_HeightMask_" +defs["enums"]["ImGuiComboFlags_"][9]["value"] = "ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest" +defs["enums"]["ImGuiCond_"] = {} +defs["enums"]["ImGuiCond_"][1] = {} +defs["enums"]["ImGuiCond_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiCond_"][1]["name"] = "ImGuiCond_None" +defs["enums"]["ImGuiCond_"][1]["value"] = "0" +defs["enums"]["ImGuiCond_"][2] = {} +defs["enums"]["ImGuiCond_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiCond_"][2]["name"] = "ImGuiCond_Always" +defs["enums"]["ImGuiCond_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiCond_"][3] = {} +defs["enums"]["ImGuiCond_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiCond_"][3]["name"] = "ImGuiCond_Once" +defs["enums"]["ImGuiCond_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiCond_"][4] = {} +defs["enums"]["ImGuiCond_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiCond_"][4]["name"] = "ImGuiCond_FirstUseEver" +defs["enums"]["ImGuiCond_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiCond_"][5] = {} +defs["enums"]["ImGuiCond_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiCond_"][5]["name"] = "ImGuiCond_Appearing" +defs["enums"]["ImGuiCond_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiConfigFlags_"] = {} +defs["enums"]["ImGuiConfigFlags_"][1] = {} +defs["enums"]["ImGuiConfigFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiConfigFlags_"][1]["name"] = "ImGuiConfigFlags_None" +defs["enums"]["ImGuiConfigFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiConfigFlags_"][2] = {} +defs["enums"]["ImGuiConfigFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiConfigFlags_"][2]["name"] = "ImGuiConfigFlags_NavEnableKeyboard" +defs["enums"]["ImGuiConfigFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiConfigFlags_"][3] = {} +defs["enums"]["ImGuiConfigFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiConfigFlags_"][3]["name"] = "ImGuiConfigFlags_NavEnableGamepad" +defs["enums"]["ImGuiConfigFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiConfigFlags_"][4] = {} +defs["enums"]["ImGuiConfigFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiConfigFlags_"][4]["name"] = "ImGuiConfigFlags_NavEnableSetMousePos" +defs["enums"]["ImGuiConfigFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiConfigFlags_"][5] = {} +defs["enums"]["ImGuiConfigFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiConfigFlags_"][5]["name"] = "ImGuiConfigFlags_NavNoCaptureKeyboard" +defs["enums"]["ImGuiConfigFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiConfigFlags_"][6] = {} +defs["enums"]["ImGuiConfigFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiConfigFlags_"][6]["name"] = "ImGuiConfigFlags_NoMouse" +defs["enums"]["ImGuiConfigFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiConfigFlags_"][7] = {} +defs["enums"]["ImGuiConfigFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiConfigFlags_"][7]["name"] = "ImGuiConfigFlags_NoMouseCursorChange" +defs["enums"]["ImGuiConfigFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiConfigFlags_"][8] = {} +defs["enums"]["ImGuiConfigFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiConfigFlags_"][8]["name"] = "ImGuiConfigFlags_DockingEnable" +defs["enums"]["ImGuiConfigFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiConfigFlags_"][9] = {} +defs["enums"]["ImGuiConfigFlags_"][9]["calc_value"] = 1024 +defs["enums"]["ImGuiConfigFlags_"][9]["name"] = "ImGuiConfigFlags_ViewportsEnable" +defs["enums"]["ImGuiConfigFlags_"][9]["value"] = "1 << 10" +defs["enums"]["ImGuiConfigFlags_"][10] = {} +defs["enums"]["ImGuiConfigFlags_"][10]["calc_value"] = 16384 +defs["enums"]["ImGuiConfigFlags_"][10]["name"] = "ImGuiConfigFlags_DpiEnableScaleViewports" +defs["enums"]["ImGuiConfigFlags_"][10]["value"] = "1 << 14" +defs["enums"]["ImGuiConfigFlags_"][11] = {} +defs["enums"]["ImGuiConfigFlags_"][11]["calc_value"] = 32768 +defs["enums"]["ImGuiConfigFlags_"][11]["name"] = "ImGuiConfigFlags_DpiEnableScaleFonts" +defs["enums"]["ImGuiConfigFlags_"][11]["value"] = "1 << 15" +defs["enums"]["ImGuiConfigFlags_"][12] = {} +defs["enums"]["ImGuiConfigFlags_"][12]["calc_value"] = 1048576 +defs["enums"]["ImGuiConfigFlags_"][12]["name"] = "ImGuiConfigFlags_IsSRGB" +defs["enums"]["ImGuiConfigFlags_"][12]["value"] = "1 << 20" +defs["enums"]["ImGuiConfigFlags_"][13] = {} +defs["enums"]["ImGuiConfigFlags_"][13]["calc_value"] = 2097152 +defs["enums"]["ImGuiConfigFlags_"][13]["name"] = "ImGuiConfigFlags_IsTouchScreen" +defs["enums"]["ImGuiConfigFlags_"][13]["value"] = "1 << 21" +defs["enums"]["ImGuiDataType_"] = {} +defs["enums"]["ImGuiDataType_"][1] = {} +defs["enums"]["ImGuiDataType_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiDataType_"][1]["name"] = "ImGuiDataType_S8" +defs["enums"]["ImGuiDataType_"][1]["value"] = "0" +defs["enums"]["ImGuiDataType_"][2] = {} +defs["enums"]["ImGuiDataType_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiDataType_"][2]["name"] = "ImGuiDataType_U8" +defs["enums"]["ImGuiDataType_"][2]["value"] = "1" +defs["enums"]["ImGuiDataType_"][3] = {} +defs["enums"]["ImGuiDataType_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiDataType_"][3]["name"] = "ImGuiDataType_S16" +defs["enums"]["ImGuiDataType_"][3]["value"] = "2" +defs["enums"]["ImGuiDataType_"][4] = {} +defs["enums"]["ImGuiDataType_"][4]["calc_value"] = 3 +defs["enums"]["ImGuiDataType_"][4]["name"] = "ImGuiDataType_U16" +defs["enums"]["ImGuiDataType_"][4]["value"] = "3" +defs["enums"]["ImGuiDataType_"][5] = {} +defs["enums"]["ImGuiDataType_"][5]["calc_value"] = 4 +defs["enums"]["ImGuiDataType_"][5]["name"] = "ImGuiDataType_S32" +defs["enums"]["ImGuiDataType_"][5]["value"] = "4" +defs["enums"]["ImGuiDataType_"][6] = {} +defs["enums"]["ImGuiDataType_"][6]["calc_value"] = 5 +defs["enums"]["ImGuiDataType_"][6]["name"] = "ImGuiDataType_U32" +defs["enums"]["ImGuiDataType_"][6]["value"] = "5" +defs["enums"]["ImGuiDataType_"][7] = {} +defs["enums"]["ImGuiDataType_"][7]["calc_value"] = 6 +defs["enums"]["ImGuiDataType_"][7]["name"] = "ImGuiDataType_S64" +defs["enums"]["ImGuiDataType_"][7]["value"] = "6" +defs["enums"]["ImGuiDataType_"][8] = {} +defs["enums"]["ImGuiDataType_"][8]["calc_value"] = 7 +defs["enums"]["ImGuiDataType_"][8]["name"] = "ImGuiDataType_U64" +defs["enums"]["ImGuiDataType_"][8]["value"] = "7" +defs["enums"]["ImGuiDataType_"][9] = {} +defs["enums"]["ImGuiDataType_"][9]["calc_value"] = 8 +defs["enums"]["ImGuiDataType_"][9]["name"] = "ImGuiDataType_Float" +defs["enums"]["ImGuiDataType_"][9]["value"] = "8" +defs["enums"]["ImGuiDataType_"][10] = {} +defs["enums"]["ImGuiDataType_"][10]["calc_value"] = 9 +defs["enums"]["ImGuiDataType_"][10]["name"] = "ImGuiDataType_Double" +defs["enums"]["ImGuiDataType_"][10]["value"] = "9" +defs["enums"]["ImGuiDataType_"][11] = {} +defs["enums"]["ImGuiDataType_"][11]["calc_value"] = 10 +defs["enums"]["ImGuiDataType_"][11]["name"] = "ImGuiDataType_COUNT" +defs["enums"]["ImGuiDataType_"][11]["value"] = "10" +defs["enums"]["ImGuiDir_"] = {} +defs["enums"]["ImGuiDir_"][1] = {} +defs["enums"]["ImGuiDir_"][1]["calc_value"] = -1 +defs["enums"]["ImGuiDir_"][1]["name"] = "ImGuiDir_None" +defs["enums"]["ImGuiDir_"][1]["value"] = "-1" +defs["enums"]["ImGuiDir_"][2] = {} +defs["enums"]["ImGuiDir_"][2]["calc_value"] = 0 +defs["enums"]["ImGuiDir_"][2]["name"] = "ImGuiDir_Left" +defs["enums"]["ImGuiDir_"][2]["value"] = "0" +defs["enums"]["ImGuiDir_"][3] = {} +defs["enums"]["ImGuiDir_"][3]["calc_value"] = 1 +defs["enums"]["ImGuiDir_"][3]["name"] = "ImGuiDir_Right" +defs["enums"]["ImGuiDir_"][3]["value"] = "1" +defs["enums"]["ImGuiDir_"][4] = {} +defs["enums"]["ImGuiDir_"][4]["calc_value"] = 2 +defs["enums"]["ImGuiDir_"][4]["name"] = "ImGuiDir_Up" +defs["enums"]["ImGuiDir_"][4]["value"] = "2" +defs["enums"]["ImGuiDir_"][5] = {} +defs["enums"]["ImGuiDir_"][5]["calc_value"] = 3 +defs["enums"]["ImGuiDir_"][5]["name"] = "ImGuiDir_Down" +defs["enums"]["ImGuiDir_"][5]["value"] = "3" +defs["enums"]["ImGuiDir_"][6] = {} +defs["enums"]["ImGuiDir_"][6]["calc_value"] = 4 +defs["enums"]["ImGuiDir_"][6]["name"] = "ImGuiDir_COUNT" +defs["enums"]["ImGuiDir_"][6]["value"] = "4" +defs["enums"]["ImGuiDockNodeFlags_"] = {} +defs["enums"]["ImGuiDockNodeFlags_"][1] = {} +defs["enums"]["ImGuiDockNodeFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiDockNodeFlags_"][1]["name"] = "ImGuiDockNodeFlags_None" +defs["enums"]["ImGuiDockNodeFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiDockNodeFlags_"][2] = {} +defs["enums"]["ImGuiDockNodeFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiDockNodeFlags_"][2]["name"] = "ImGuiDockNodeFlags_KeepAliveOnly" +defs["enums"]["ImGuiDockNodeFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiDockNodeFlags_"][3] = {} +defs["enums"]["ImGuiDockNodeFlags_"][3]["calc_value"] = 4 +defs["enums"]["ImGuiDockNodeFlags_"][3]["name"] = "ImGuiDockNodeFlags_NoDockingInCentralNode" +defs["enums"]["ImGuiDockNodeFlags_"][3]["value"] = "1 << 2" +defs["enums"]["ImGuiDockNodeFlags_"][4] = {} +defs["enums"]["ImGuiDockNodeFlags_"][4]["calc_value"] = 8 +defs["enums"]["ImGuiDockNodeFlags_"][4]["name"] = "ImGuiDockNodeFlags_PassthruCentralNode" +defs["enums"]["ImGuiDockNodeFlags_"][4]["value"] = "1 << 3" +defs["enums"]["ImGuiDockNodeFlags_"][5] = {} +defs["enums"]["ImGuiDockNodeFlags_"][5]["calc_value"] = 16 +defs["enums"]["ImGuiDockNodeFlags_"][5]["name"] = "ImGuiDockNodeFlags_NoSplit" +defs["enums"]["ImGuiDockNodeFlags_"][5]["value"] = "1 << 4" +defs["enums"]["ImGuiDockNodeFlags_"][6] = {} +defs["enums"]["ImGuiDockNodeFlags_"][6]["calc_value"] = 32 +defs["enums"]["ImGuiDockNodeFlags_"][6]["name"] = "ImGuiDockNodeFlags_NoResize" +defs["enums"]["ImGuiDockNodeFlags_"][6]["value"] = "1 << 5" +defs["enums"]["ImGuiDockNodeFlags_"][7] = {} +defs["enums"]["ImGuiDockNodeFlags_"][7]["calc_value"] = 64 +defs["enums"]["ImGuiDockNodeFlags_"][7]["name"] = "ImGuiDockNodeFlags_AutoHideTabBar" +defs["enums"]["ImGuiDockNodeFlags_"][7]["value"] = "1 << 6" +defs["enums"]["ImGuiDragDropFlags_"] = {} +defs["enums"]["ImGuiDragDropFlags_"][1] = {} +defs["enums"]["ImGuiDragDropFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiDragDropFlags_"][1]["name"] = "ImGuiDragDropFlags_None" +defs["enums"]["ImGuiDragDropFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiDragDropFlags_"][2] = {} +defs["enums"]["ImGuiDragDropFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiDragDropFlags_"][2]["name"] = "ImGuiDragDropFlags_SourceNoPreviewTooltip" +defs["enums"]["ImGuiDragDropFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiDragDropFlags_"][3] = {} +defs["enums"]["ImGuiDragDropFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiDragDropFlags_"][3]["name"] = "ImGuiDragDropFlags_SourceNoDisableHover" +defs["enums"]["ImGuiDragDropFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiDragDropFlags_"][4] = {} +defs["enums"]["ImGuiDragDropFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiDragDropFlags_"][4]["name"] = "ImGuiDragDropFlags_SourceNoHoldToOpenOthers" +defs["enums"]["ImGuiDragDropFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiDragDropFlags_"][5] = {} +defs["enums"]["ImGuiDragDropFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiDragDropFlags_"][5]["name"] = "ImGuiDragDropFlags_SourceAllowNullID" +defs["enums"]["ImGuiDragDropFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiDragDropFlags_"][6] = {} +defs["enums"]["ImGuiDragDropFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiDragDropFlags_"][6]["name"] = "ImGuiDragDropFlags_SourceExtern" +defs["enums"]["ImGuiDragDropFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiDragDropFlags_"][7] = {} +defs["enums"]["ImGuiDragDropFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiDragDropFlags_"][7]["name"] = "ImGuiDragDropFlags_SourceAutoExpirePayload" +defs["enums"]["ImGuiDragDropFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiDragDropFlags_"][8] = {} +defs["enums"]["ImGuiDragDropFlags_"][8]["calc_value"] = 1024 +defs["enums"]["ImGuiDragDropFlags_"][8]["name"] = "ImGuiDragDropFlags_AcceptBeforeDelivery" +defs["enums"]["ImGuiDragDropFlags_"][8]["value"] = "1 << 10" +defs["enums"]["ImGuiDragDropFlags_"][9] = {} +defs["enums"]["ImGuiDragDropFlags_"][9]["calc_value"] = 2048 +defs["enums"]["ImGuiDragDropFlags_"][9]["name"] = "ImGuiDragDropFlags_AcceptNoDrawDefaultRect" +defs["enums"]["ImGuiDragDropFlags_"][9]["value"] = "1 << 11" +defs["enums"]["ImGuiDragDropFlags_"][10] = {} +defs["enums"]["ImGuiDragDropFlags_"][10]["calc_value"] = 4096 +defs["enums"]["ImGuiDragDropFlags_"][10]["name"] = "ImGuiDragDropFlags_AcceptNoPreviewTooltip" +defs["enums"]["ImGuiDragDropFlags_"][10]["value"] = "1 << 12" +defs["enums"]["ImGuiDragDropFlags_"][11] = {} +defs["enums"]["ImGuiDragDropFlags_"][11]["calc_value"] = 3072 +defs["enums"]["ImGuiDragDropFlags_"][11]["name"] = "ImGuiDragDropFlags_AcceptPeekOnly" +defs["enums"]["ImGuiDragDropFlags_"][11]["value"] = "ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect" +defs["enums"]["ImGuiFocusedFlags_"] = {} +defs["enums"]["ImGuiFocusedFlags_"][1] = {} +defs["enums"]["ImGuiFocusedFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiFocusedFlags_"][1]["name"] = "ImGuiFocusedFlags_None" +defs["enums"]["ImGuiFocusedFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiFocusedFlags_"][2] = {} +defs["enums"]["ImGuiFocusedFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiFocusedFlags_"][2]["name"] = "ImGuiFocusedFlags_ChildWindows" +defs["enums"]["ImGuiFocusedFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiFocusedFlags_"][3] = {} +defs["enums"]["ImGuiFocusedFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiFocusedFlags_"][3]["name"] = "ImGuiFocusedFlags_RootWindow" +defs["enums"]["ImGuiFocusedFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiFocusedFlags_"][4] = {} +defs["enums"]["ImGuiFocusedFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiFocusedFlags_"][4]["name"] = "ImGuiFocusedFlags_AnyWindow" +defs["enums"]["ImGuiFocusedFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiFocusedFlags_"][5] = {} +defs["enums"]["ImGuiFocusedFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiFocusedFlags_"][5]["name"] = "ImGuiFocusedFlags_NoPopupHierarchy" +defs["enums"]["ImGuiFocusedFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiFocusedFlags_"][6] = {} +defs["enums"]["ImGuiFocusedFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiFocusedFlags_"][6]["name"] = "ImGuiFocusedFlags_DockHierarchy" +defs["enums"]["ImGuiFocusedFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiFocusedFlags_"][7] = {} +defs["enums"]["ImGuiFocusedFlags_"][7]["calc_value"] = 3 +defs["enums"]["ImGuiFocusedFlags_"][7]["name"] = "ImGuiFocusedFlags_RootAndChildWindows" +defs["enums"]["ImGuiFocusedFlags_"][7]["value"] = "ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows" +defs["enums"]["ImGuiFreeTypeBuilderFlags"] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][1] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][1]["calc_value"] = 1 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][1]["name"] = "ImGuiFreeTypeBuilderFlags_NoHinting" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][1]["value"] = "1 << 0" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][2] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][2]["calc_value"] = 2 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][2]["name"] = "ImGuiFreeTypeBuilderFlags_NoAutoHint" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][2]["value"] = "1 << 1" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][3] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][3]["calc_value"] = 4 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][3]["name"] = "ImGuiFreeTypeBuilderFlags_ForceAutoHint" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][3]["value"] = "1 << 2" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][4] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][4]["calc_value"] = 8 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][4]["name"] = "ImGuiFreeTypeBuilderFlags_LightHinting" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][4]["value"] = "1 << 3" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][5] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][5]["calc_value"] = 16 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][5]["name"] = "ImGuiFreeTypeBuilderFlags_MonoHinting" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][5]["value"] = "1 << 4" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][6] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][6]["calc_value"] = 32 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][6]["name"] = "ImGuiFreeTypeBuilderFlags_Bold" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][6]["value"] = "1 << 5" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][7] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][7]["calc_value"] = 64 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][7]["name"] = "ImGuiFreeTypeBuilderFlags_Oblique" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][7]["value"] = "1 << 6" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][8] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][8]["calc_value"] = 128 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][8]["name"] = "ImGuiFreeTypeBuilderFlags_Monochrome" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][8]["value"] = "1 << 7" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][9] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][9]["calc_value"] = 256 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][9]["name"] = "ImGuiFreeTypeBuilderFlags_LoadColor" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][9]["value"] = "1 << 8" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][10] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][10]["calc_value"] = 512 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][10]["name"] = "ImGuiFreeTypeBuilderFlags_Bitmap" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][10]["value"] = "1 << 9" +defs["enums"]["ImGuiHoveredFlags_"] = {} +defs["enums"]["ImGuiHoveredFlags_"][1] = {} +defs["enums"]["ImGuiHoveredFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiHoveredFlags_"][1]["name"] = "ImGuiHoveredFlags_None" +defs["enums"]["ImGuiHoveredFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiHoveredFlags_"][2] = {} +defs["enums"]["ImGuiHoveredFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiHoveredFlags_"][2]["name"] = "ImGuiHoveredFlags_ChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiHoveredFlags_"][3] = {} +defs["enums"]["ImGuiHoveredFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiHoveredFlags_"][3]["name"] = "ImGuiHoveredFlags_RootWindow" +defs["enums"]["ImGuiHoveredFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiHoveredFlags_"][4] = {} +defs["enums"]["ImGuiHoveredFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiHoveredFlags_"][4]["name"] = "ImGuiHoveredFlags_AnyWindow" +defs["enums"]["ImGuiHoveredFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiHoveredFlags_"][5] = {} +defs["enums"]["ImGuiHoveredFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiHoveredFlags_"][5]["name"] = "ImGuiHoveredFlags_NoPopupHierarchy" +defs["enums"]["ImGuiHoveredFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiHoveredFlags_"][6] = {} +defs["enums"]["ImGuiHoveredFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiHoveredFlags_"][6]["name"] = "ImGuiHoveredFlags_DockHierarchy" +defs["enums"]["ImGuiHoveredFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiHoveredFlags_"][7] = {} +defs["enums"]["ImGuiHoveredFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiHoveredFlags_"][7]["name"] = "ImGuiHoveredFlags_AllowWhenBlockedByPopup" +defs["enums"]["ImGuiHoveredFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiHoveredFlags_"][8] = {} +defs["enums"]["ImGuiHoveredFlags_"][8]["calc_value"] = 128 +defs["enums"]["ImGuiHoveredFlags_"][8]["name"] = "ImGuiHoveredFlags_AllowWhenBlockedByActiveItem" +defs["enums"]["ImGuiHoveredFlags_"][8]["value"] = "1 << 7" +defs["enums"]["ImGuiHoveredFlags_"][9] = {} +defs["enums"]["ImGuiHoveredFlags_"][9]["calc_value"] = 256 +defs["enums"]["ImGuiHoveredFlags_"][9]["name"] = "ImGuiHoveredFlags_AllowWhenOverlapped" +defs["enums"]["ImGuiHoveredFlags_"][9]["value"] = "1 << 8" +defs["enums"]["ImGuiHoveredFlags_"][10] = {} +defs["enums"]["ImGuiHoveredFlags_"][10]["calc_value"] = 512 +defs["enums"]["ImGuiHoveredFlags_"][10]["name"] = "ImGuiHoveredFlags_AllowWhenDisabled" +defs["enums"]["ImGuiHoveredFlags_"][10]["value"] = "1 << 9" +defs["enums"]["ImGuiHoveredFlags_"][11] = {} +defs["enums"]["ImGuiHoveredFlags_"][11]["calc_value"] = 1024 +defs["enums"]["ImGuiHoveredFlags_"][11]["name"] = "ImGuiHoveredFlags_NoNavOverride" +defs["enums"]["ImGuiHoveredFlags_"][11]["value"] = "1 << 10" +defs["enums"]["ImGuiHoveredFlags_"][12] = {} +defs["enums"]["ImGuiHoveredFlags_"][12]["calc_value"] = 416 +defs["enums"]["ImGuiHoveredFlags_"][12]["name"] = "ImGuiHoveredFlags_RectOnly" +defs["enums"]["ImGuiHoveredFlags_"][12]["value"] = "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped" +defs["enums"]["ImGuiHoveredFlags_"][13] = {} +defs["enums"]["ImGuiHoveredFlags_"][13]["calc_value"] = 3 +defs["enums"]["ImGuiHoveredFlags_"][13]["name"] = "ImGuiHoveredFlags_RootAndChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][13]["value"] = "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][14] = {} +defs["enums"]["ImGuiHoveredFlags_"][14]["calc_value"] = 2048 +defs["enums"]["ImGuiHoveredFlags_"][14]["name"] = "ImGuiHoveredFlags_DelayNormal" +defs["enums"]["ImGuiHoveredFlags_"][14]["value"] = "1 << 11" +defs["enums"]["ImGuiHoveredFlags_"][15] = {} +defs["enums"]["ImGuiHoveredFlags_"][15]["calc_value"] = 4096 +defs["enums"]["ImGuiHoveredFlags_"][15]["name"] = "ImGuiHoveredFlags_DelayShort" +defs["enums"]["ImGuiHoveredFlags_"][15]["value"] = "1 << 12" +defs["enums"]["ImGuiHoveredFlags_"][16] = {} +defs["enums"]["ImGuiHoveredFlags_"][16]["calc_value"] = 8192 +defs["enums"]["ImGuiHoveredFlags_"][16]["name"] = "ImGuiHoveredFlags_NoSharedDelay" +defs["enums"]["ImGuiHoveredFlags_"][16]["value"] = "1 << 13" +defs["enums"]["ImGuiInputTextFlags_"] = {} +defs["enums"]["ImGuiInputTextFlags_"][1] = {} +defs["enums"]["ImGuiInputTextFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiInputTextFlags_"][1]["name"] = "ImGuiInputTextFlags_None" +defs["enums"]["ImGuiInputTextFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiInputTextFlags_"][2] = {} +defs["enums"]["ImGuiInputTextFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiInputTextFlags_"][2]["name"] = "ImGuiInputTextFlags_CharsDecimal" +defs["enums"]["ImGuiInputTextFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiInputTextFlags_"][3] = {} +defs["enums"]["ImGuiInputTextFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiInputTextFlags_"][3]["name"] = "ImGuiInputTextFlags_CharsHexadecimal" +defs["enums"]["ImGuiInputTextFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiInputTextFlags_"][4] = {} +defs["enums"]["ImGuiInputTextFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiInputTextFlags_"][4]["name"] = "ImGuiInputTextFlags_CharsUppercase" +defs["enums"]["ImGuiInputTextFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiInputTextFlags_"][5] = {} +defs["enums"]["ImGuiInputTextFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiInputTextFlags_"][5]["name"] = "ImGuiInputTextFlags_CharsNoBlank" +defs["enums"]["ImGuiInputTextFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiInputTextFlags_"][6] = {} +defs["enums"]["ImGuiInputTextFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiInputTextFlags_"][6]["name"] = "ImGuiInputTextFlags_AutoSelectAll" +defs["enums"]["ImGuiInputTextFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiInputTextFlags_"][7] = {} +defs["enums"]["ImGuiInputTextFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiInputTextFlags_"][7]["name"] = "ImGuiInputTextFlags_EnterReturnsTrue" +defs["enums"]["ImGuiInputTextFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiInputTextFlags_"][8] = {} +defs["enums"]["ImGuiInputTextFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiInputTextFlags_"][8]["name"] = "ImGuiInputTextFlags_CallbackCompletion" +defs["enums"]["ImGuiInputTextFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiInputTextFlags_"][9] = {} +defs["enums"]["ImGuiInputTextFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiInputTextFlags_"][9]["name"] = "ImGuiInputTextFlags_CallbackHistory" +defs["enums"]["ImGuiInputTextFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiInputTextFlags_"][10] = {} +defs["enums"]["ImGuiInputTextFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiInputTextFlags_"][10]["name"] = "ImGuiInputTextFlags_CallbackAlways" +defs["enums"]["ImGuiInputTextFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiInputTextFlags_"][11] = {} +defs["enums"]["ImGuiInputTextFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiInputTextFlags_"][11]["name"] = "ImGuiInputTextFlags_CallbackCharFilter" +defs["enums"]["ImGuiInputTextFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiInputTextFlags_"][12] = {} +defs["enums"]["ImGuiInputTextFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiInputTextFlags_"][12]["name"] = "ImGuiInputTextFlags_AllowTabInput" +defs["enums"]["ImGuiInputTextFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiInputTextFlags_"][13] = {} +defs["enums"]["ImGuiInputTextFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiInputTextFlags_"][13]["name"] = "ImGuiInputTextFlags_CtrlEnterForNewLine" +defs["enums"]["ImGuiInputTextFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiInputTextFlags_"][14] = {} +defs["enums"]["ImGuiInputTextFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiInputTextFlags_"][14]["name"] = "ImGuiInputTextFlags_NoHorizontalScroll" +defs["enums"]["ImGuiInputTextFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiInputTextFlags_"][15] = {} +defs["enums"]["ImGuiInputTextFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiInputTextFlags_"][15]["name"] = "ImGuiInputTextFlags_AlwaysOverwrite" +defs["enums"]["ImGuiInputTextFlags_"][15]["value"] = "1 << 13" +defs["enums"]["ImGuiInputTextFlags_"][16] = {} +defs["enums"]["ImGuiInputTextFlags_"][16]["calc_value"] = 16384 +defs["enums"]["ImGuiInputTextFlags_"][16]["name"] = "ImGuiInputTextFlags_ReadOnly" +defs["enums"]["ImGuiInputTextFlags_"][16]["value"] = "1 << 14" +defs["enums"]["ImGuiInputTextFlags_"][17] = {} +defs["enums"]["ImGuiInputTextFlags_"][17]["calc_value"] = 32768 +defs["enums"]["ImGuiInputTextFlags_"][17]["name"] = "ImGuiInputTextFlags_Password" +defs["enums"]["ImGuiInputTextFlags_"][17]["value"] = "1 << 15" +defs["enums"]["ImGuiInputTextFlags_"][18] = {} +defs["enums"]["ImGuiInputTextFlags_"][18]["calc_value"] = 65536 +defs["enums"]["ImGuiInputTextFlags_"][18]["name"] = "ImGuiInputTextFlags_NoUndoRedo" +defs["enums"]["ImGuiInputTextFlags_"][18]["value"] = "1 << 16" +defs["enums"]["ImGuiInputTextFlags_"][19] = {} +defs["enums"]["ImGuiInputTextFlags_"][19]["calc_value"] = 131072 +defs["enums"]["ImGuiInputTextFlags_"][19]["name"] = "ImGuiInputTextFlags_CharsScientific" +defs["enums"]["ImGuiInputTextFlags_"][19]["value"] = "1 << 17" +defs["enums"]["ImGuiInputTextFlags_"][20] = {} +defs["enums"]["ImGuiInputTextFlags_"][20]["calc_value"] = 262144 +defs["enums"]["ImGuiInputTextFlags_"][20]["name"] = "ImGuiInputTextFlags_CallbackResize" +defs["enums"]["ImGuiInputTextFlags_"][20]["value"] = "1 << 18" +defs["enums"]["ImGuiInputTextFlags_"][21] = {} +defs["enums"]["ImGuiInputTextFlags_"][21]["calc_value"] = 524288 +defs["enums"]["ImGuiInputTextFlags_"][21]["name"] = "ImGuiInputTextFlags_CallbackEdit" +defs["enums"]["ImGuiInputTextFlags_"][21]["value"] = "1 << 19" +defs["enums"]["ImGuiInputTextFlags_"][22] = {} +defs["enums"]["ImGuiInputTextFlags_"][22]["calc_value"] = 1048576 +defs["enums"]["ImGuiInputTextFlags_"][22]["name"] = "ImGuiInputTextFlags_EscapeClearsAll" +defs["enums"]["ImGuiInputTextFlags_"][22]["value"] = "1 << 20" +defs["enums"]["ImGuiKey"] = {} +defs["enums"]["ImGuiKey"][1] = {} +defs["enums"]["ImGuiKey"][1]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][1]["name"] = "ImGuiKey_None" +defs["enums"]["ImGuiKey"][1]["value"] = "0" +defs["enums"]["ImGuiKey"][2] = {} +defs["enums"]["ImGuiKey"][2]["calc_value"] = 512 +defs["enums"]["ImGuiKey"][2]["name"] = "ImGuiKey_Tab" +defs["enums"]["ImGuiKey"][2]["value"] = "512" +defs["enums"]["ImGuiKey"][3] = {} +defs["enums"]["ImGuiKey"][3]["calc_value"] = 513 +defs["enums"]["ImGuiKey"][3]["name"] = "ImGuiKey_LeftArrow" +defs["enums"]["ImGuiKey"][3]["value"] = "513" +defs["enums"]["ImGuiKey"][4] = {} +defs["enums"]["ImGuiKey"][4]["calc_value"] = 514 +defs["enums"]["ImGuiKey"][4]["name"] = "ImGuiKey_RightArrow" +defs["enums"]["ImGuiKey"][4]["value"] = "514" +defs["enums"]["ImGuiKey"][5] = {} +defs["enums"]["ImGuiKey"][5]["calc_value"] = 515 +defs["enums"]["ImGuiKey"][5]["name"] = "ImGuiKey_UpArrow" +defs["enums"]["ImGuiKey"][5]["value"] = "515" +defs["enums"]["ImGuiKey"][6] = {} +defs["enums"]["ImGuiKey"][6]["calc_value"] = 516 +defs["enums"]["ImGuiKey"][6]["name"] = "ImGuiKey_DownArrow" +defs["enums"]["ImGuiKey"][6]["value"] = "516" +defs["enums"]["ImGuiKey"][7] = {} +defs["enums"]["ImGuiKey"][7]["calc_value"] = 517 +defs["enums"]["ImGuiKey"][7]["name"] = "ImGuiKey_PageUp" +defs["enums"]["ImGuiKey"][7]["value"] = "517" +defs["enums"]["ImGuiKey"][8] = {} +defs["enums"]["ImGuiKey"][8]["calc_value"] = 518 +defs["enums"]["ImGuiKey"][8]["name"] = "ImGuiKey_PageDown" +defs["enums"]["ImGuiKey"][8]["value"] = "518" +defs["enums"]["ImGuiKey"][9] = {} +defs["enums"]["ImGuiKey"][9]["calc_value"] = 519 +defs["enums"]["ImGuiKey"][9]["name"] = "ImGuiKey_Home" +defs["enums"]["ImGuiKey"][9]["value"] = "519" +defs["enums"]["ImGuiKey"][10] = {} +defs["enums"]["ImGuiKey"][10]["calc_value"] = 520 +defs["enums"]["ImGuiKey"][10]["name"] = "ImGuiKey_End" +defs["enums"]["ImGuiKey"][10]["value"] = "520" +defs["enums"]["ImGuiKey"][11] = {} +defs["enums"]["ImGuiKey"][11]["calc_value"] = 521 +defs["enums"]["ImGuiKey"][11]["name"] = "ImGuiKey_Insert" +defs["enums"]["ImGuiKey"][11]["value"] = "521" +defs["enums"]["ImGuiKey"][12] = {} +defs["enums"]["ImGuiKey"][12]["calc_value"] = 522 +defs["enums"]["ImGuiKey"][12]["name"] = "ImGuiKey_Delete" +defs["enums"]["ImGuiKey"][12]["value"] = "522" +defs["enums"]["ImGuiKey"][13] = {} +defs["enums"]["ImGuiKey"][13]["calc_value"] = 523 +defs["enums"]["ImGuiKey"][13]["name"] = "ImGuiKey_Backspace" +defs["enums"]["ImGuiKey"][13]["value"] = "523" +defs["enums"]["ImGuiKey"][14] = {} +defs["enums"]["ImGuiKey"][14]["calc_value"] = 524 +defs["enums"]["ImGuiKey"][14]["name"] = "ImGuiKey_Space" +defs["enums"]["ImGuiKey"][14]["value"] = "524" +defs["enums"]["ImGuiKey"][15] = {} +defs["enums"]["ImGuiKey"][15]["calc_value"] = 525 +defs["enums"]["ImGuiKey"][15]["name"] = "ImGuiKey_Enter" +defs["enums"]["ImGuiKey"][15]["value"] = "525" +defs["enums"]["ImGuiKey"][16] = {} +defs["enums"]["ImGuiKey"][16]["calc_value"] = 526 +defs["enums"]["ImGuiKey"][16]["name"] = "ImGuiKey_Escape" +defs["enums"]["ImGuiKey"][16]["value"] = "526" +defs["enums"]["ImGuiKey"][17] = {} +defs["enums"]["ImGuiKey"][17]["calc_value"] = 527 +defs["enums"]["ImGuiKey"][17]["name"] = "ImGuiKey_LeftCtrl" +defs["enums"]["ImGuiKey"][17]["value"] = "527" +defs["enums"]["ImGuiKey"][18] = {} +defs["enums"]["ImGuiKey"][18]["calc_value"] = 528 +defs["enums"]["ImGuiKey"][18]["name"] = "ImGuiKey_LeftShift" +defs["enums"]["ImGuiKey"][18]["value"] = "528" +defs["enums"]["ImGuiKey"][19] = {} +defs["enums"]["ImGuiKey"][19]["calc_value"] = 529 +defs["enums"]["ImGuiKey"][19]["name"] = "ImGuiKey_LeftAlt" +defs["enums"]["ImGuiKey"][19]["value"] = "529" +defs["enums"]["ImGuiKey"][20] = {} +defs["enums"]["ImGuiKey"][20]["calc_value"] = 530 +defs["enums"]["ImGuiKey"][20]["name"] = "ImGuiKey_LeftSuper" +defs["enums"]["ImGuiKey"][20]["value"] = "530" +defs["enums"]["ImGuiKey"][21] = {} +defs["enums"]["ImGuiKey"][21]["calc_value"] = 531 +defs["enums"]["ImGuiKey"][21]["name"] = "ImGuiKey_RightCtrl" +defs["enums"]["ImGuiKey"][21]["value"] = "531" +defs["enums"]["ImGuiKey"][22] = {} +defs["enums"]["ImGuiKey"][22]["calc_value"] = 532 +defs["enums"]["ImGuiKey"][22]["name"] = "ImGuiKey_RightShift" +defs["enums"]["ImGuiKey"][22]["value"] = "532" +defs["enums"]["ImGuiKey"][23] = {} +defs["enums"]["ImGuiKey"][23]["calc_value"] = 533 +defs["enums"]["ImGuiKey"][23]["name"] = "ImGuiKey_RightAlt" +defs["enums"]["ImGuiKey"][23]["value"] = "533" +defs["enums"]["ImGuiKey"][24] = {} +defs["enums"]["ImGuiKey"][24]["calc_value"] = 534 +defs["enums"]["ImGuiKey"][24]["name"] = "ImGuiKey_RightSuper" +defs["enums"]["ImGuiKey"][24]["value"] = "534" +defs["enums"]["ImGuiKey"][25] = {} +defs["enums"]["ImGuiKey"][25]["calc_value"] = 535 +defs["enums"]["ImGuiKey"][25]["name"] = "ImGuiKey_Menu" +defs["enums"]["ImGuiKey"][25]["value"] = "535" +defs["enums"]["ImGuiKey"][26] = {} +defs["enums"]["ImGuiKey"][26]["calc_value"] = 536 +defs["enums"]["ImGuiKey"][26]["name"] = "ImGuiKey_0" +defs["enums"]["ImGuiKey"][26]["value"] = "536" +defs["enums"]["ImGuiKey"][27] = {} +defs["enums"]["ImGuiKey"][27]["calc_value"] = 537 +defs["enums"]["ImGuiKey"][27]["name"] = "ImGuiKey_1" +defs["enums"]["ImGuiKey"][27]["value"] = "537" +defs["enums"]["ImGuiKey"][28] = {} +defs["enums"]["ImGuiKey"][28]["calc_value"] = 538 +defs["enums"]["ImGuiKey"][28]["name"] = "ImGuiKey_2" +defs["enums"]["ImGuiKey"][28]["value"] = "538" +defs["enums"]["ImGuiKey"][29] = {} +defs["enums"]["ImGuiKey"][29]["calc_value"] = 539 +defs["enums"]["ImGuiKey"][29]["name"] = "ImGuiKey_3" +defs["enums"]["ImGuiKey"][29]["value"] = "539" +defs["enums"]["ImGuiKey"][30] = {} +defs["enums"]["ImGuiKey"][30]["calc_value"] = 540 +defs["enums"]["ImGuiKey"][30]["name"] = "ImGuiKey_4" +defs["enums"]["ImGuiKey"][30]["value"] = "540" +defs["enums"]["ImGuiKey"][31] = {} +defs["enums"]["ImGuiKey"][31]["calc_value"] = 541 +defs["enums"]["ImGuiKey"][31]["name"] = "ImGuiKey_5" +defs["enums"]["ImGuiKey"][31]["value"] = "541" +defs["enums"]["ImGuiKey"][32] = {} +defs["enums"]["ImGuiKey"][32]["calc_value"] = 542 +defs["enums"]["ImGuiKey"][32]["name"] = "ImGuiKey_6" +defs["enums"]["ImGuiKey"][32]["value"] = "542" +defs["enums"]["ImGuiKey"][33] = {} +defs["enums"]["ImGuiKey"][33]["calc_value"] = 543 +defs["enums"]["ImGuiKey"][33]["name"] = "ImGuiKey_7" +defs["enums"]["ImGuiKey"][33]["value"] = "543" +defs["enums"]["ImGuiKey"][34] = {} +defs["enums"]["ImGuiKey"][34]["calc_value"] = 544 +defs["enums"]["ImGuiKey"][34]["name"] = "ImGuiKey_8" +defs["enums"]["ImGuiKey"][34]["value"] = "544" +defs["enums"]["ImGuiKey"][35] = {} +defs["enums"]["ImGuiKey"][35]["calc_value"] = 545 +defs["enums"]["ImGuiKey"][35]["name"] = "ImGuiKey_9" +defs["enums"]["ImGuiKey"][35]["value"] = "545" +defs["enums"]["ImGuiKey"][36] = {} +defs["enums"]["ImGuiKey"][36]["calc_value"] = 546 +defs["enums"]["ImGuiKey"][36]["name"] = "ImGuiKey_A" +defs["enums"]["ImGuiKey"][36]["value"] = "546" +defs["enums"]["ImGuiKey"][37] = {} +defs["enums"]["ImGuiKey"][37]["calc_value"] = 547 +defs["enums"]["ImGuiKey"][37]["name"] = "ImGuiKey_B" +defs["enums"]["ImGuiKey"][37]["value"] = "547" +defs["enums"]["ImGuiKey"][38] = {} +defs["enums"]["ImGuiKey"][38]["calc_value"] = 548 +defs["enums"]["ImGuiKey"][38]["name"] = "ImGuiKey_C" +defs["enums"]["ImGuiKey"][38]["value"] = "548" +defs["enums"]["ImGuiKey"][39] = {} +defs["enums"]["ImGuiKey"][39]["calc_value"] = 549 +defs["enums"]["ImGuiKey"][39]["name"] = "ImGuiKey_D" +defs["enums"]["ImGuiKey"][39]["value"] = "549" +defs["enums"]["ImGuiKey"][40] = {} +defs["enums"]["ImGuiKey"][40]["calc_value"] = 550 +defs["enums"]["ImGuiKey"][40]["name"] = "ImGuiKey_E" +defs["enums"]["ImGuiKey"][40]["value"] = "550" +defs["enums"]["ImGuiKey"][41] = {} +defs["enums"]["ImGuiKey"][41]["calc_value"] = 551 +defs["enums"]["ImGuiKey"][41]["name"] = "ImGuiKey_F" +defs["enums"]["ImGuiKey"][41]["value"] = "551" +defs["enums"]["ImGuiKey"][42] = {} +defs["enums"]["ImGuiKey"][42]["calc_value"] = 552 +defs["enums"]["ImGuiKey"][42]["name"] = "ImGuiKey_G" +defs["enums"]["ImGuiKey"][42]["value"] = "552" +defs["enums"]["ImGuiKey"][43] = {} +defs["enums"]["ImGuiKey"][43]["calc_value"] = 553 +defs["enums"]["ImGuiKey"][43]["name"] = "ImGuiKey_H" +defs["enums"]["ImGuiKey"][43]["value"] = "553" +defs["enums"]["ImGuiKey"][44] = {} +defs["enums"]["ImGuiKey"][44]["calc_value"] = 554 +defs["enums"]["ImGuiKey"][44]["name"] = "ImGuiKey_I" +defs["enums"]["ImGuiKey"][44]["value"] = "554" +defs["enums"]["ImGuiKey"][45] = {} +defs["enums"]["ImGuiKey"][45]["calc_value"] = 555 +defs["enums"]["ImGuiKey"][45]["name"] = "ImGuiKey_J" +defs["enums"]["ImGuiKey"][45]["value"] = "555" +defs["enums"]["ImGuiKey"][46] = {} +defs["enums"]["ImGuiKey"][46]["calc_value"] = 556 +defs["enums"]["ImGuiKey"][46]["name"] = "ImGuiKey_K" +defs["enums"]["ImGuiKey"][46]["value"] = "556" +defs["enums"]["ImGuiKey"][47] = {} +defs["enums"]["ImGuiKey"][47]["calc_value"] = 557 +defs["enums"]["ImGuiKey"][47]["name"] = "ImGuiKey_L" +defs["enums"]["ImGuiKey"][47]["value"] = "557" +defs["enums"]["ImGuiKey"][48] = {} +defs["enums"]["ImGuiKey"][48]["calc_value"] = 558 +defs["enums"]["ImGuiKey"][48]["name"] = "ImGuiKey_M" +defs["enums"]["ImGuiKey"][48]["value"] = "558" +defs["enums"]["ImGuiKey"][49] = {} +defs["enums"]["ImGuiKey"][49]["calc_value"] = 559 +defs["enums"]["ImGuiKey"][49]["name"] = "ImGuiKey_N" +defs["enums"]["ImGuiKey"][49]["value"] = "559" +defs["enums"]["ImGuiKey"][50] = {} +defs["enums"]["ImGuiKey"][50]["calc_value"] = 560 +defs["enums"]["ImGuiKey"][50]["name"] = "ImGuiKey_O" +defs["enums"]["ImGuiKey"][50]["value"] = "560" +defs["enums"]["ImGuiKey"][51] = {} +defs["enums"]["ImGuiKey"][51]["calc_value"] = 561 +defs["enums"]["ImGuiKey"][51]["name"] = "ImGuiKey_P" +defs["enums"]["ImGuiKey"][51]["value"] = "561" +defs["enums"]["ImGuiKey"][52] = {} +defs["enums"]["ImGuiKey"][52]["calc_value"] = 562 +defs["enums"]["ImGuiKey"][52]["name"] = "ImGuiKey_Q" +defs["enums"]["ImGuiKey"][52]["value"] = "562" +defs["enums"]["ImGuiKey"][53] = {} +defs["enums"]["ImGuiKey"][53]["calc_value"] = 563 +defs["enums"]["ImGuiKey"][53]["name"] = "ImGuiKey_R" +defs["enums"]["ImGuiKey"][53]["value"] = "563" +defs["enums"]["ImGuiKey"][54] = {} +defs["enums"]["ImGuiKey"][54]["calc_value"] = 564 +defs["enums"]["ImGuiKey"][54]["name"] = "ImGuiKey_S" +defs["enums"]["ImGuiKey"][54]["value"] = "564" +defs["enums"]["ImGuiKey"][55] = {} +defs["enums"]["ImGuiKey"][55]["calc_value"] = 565 +defs["enums"]["ImGuiKey"][55]["name"] = "ImGuiKey_T" +defs["enums"]["ImGuiKey"][55]["value"] = "565" +defs["enums"]["ImGuiKey"][56] = {} +defs["enums"]["ImGuiKey"][56]["calc_value"] = 566 +defs["enums"]["ImGuiKey"][56]["name"] = "ImGuiKey_U" +defs["enums"]["ImGuiKey"][56]["value"] = "566" +defs["enums"]["ImGuiKey"][57] = {} +defs["enums"]["ImGuiKey"][57]["calc_value"] = 567 +defs["enums"]["ImGuiKey"][57]["name"] = "ImGuiKey_V" +defs["enums"]["ImGuiKey"][57]["value"] = "567" +defs["enums"]["ImGuiKey"][58] = {} +defs["enums"]["ImGuiKey"][58]["calc_value"] = 568 +defs["enums"]["ImGuiKey"][58]["name"] = "ImGuiKey_W" +defs["enums"]["ImGuiKey"][58]["value"] = "568" +defs["enums"]["ImGuiKey"][59] = {} +defs["enums"]["ImGuiKey"][59]["calc_value"] = 569 +defs["enums"]["ImGuiKey"][59]["name"] = "ImGuiKey_X" +defs["enums"]["ImGuiKey"][59]["value"] = "569" +defs["enums"]["ImGuiKey"][60] = {} +defs["enums"]["ImGuiKey"][60]["calc_value"] = 570 +defs["enums"]["ImGuiKey"][60]["name"] = "ImGuiKey_Y" +defs["enums"]["ImGuiKey"][60]["value"] = "570" +defs["enums"]["ImGuiKey"][61] = {} +defs["enums"]["ImGuiKey"][61]["calc_value"] = 571 +defs["enums"]["ImGuiKey"][61]["name"] = "ImGuiKey_Z" +defs["enums"]["ImGuiKey"][61]["value"] = "571" +defs["enums"]["ImGuiKey"][62] = {} +defs["enums"]["ImGuiKey"][62]["calc_value"] = 572 +defs["enums"]["ImGuiKey"][62]["name"] = "ImGuiKey_F1" +defs["enums"]["ImGuiKey"][62]["value"] = "572" +defs["enums"]["ImGuiKey"][63] = {} +defs["enums"]["ImGuiKey"][63]["calc_value"] = 573 +defs["enums"]["ImGuiKey"][63]["name"] = "ImGuiKey_F2" +defs["enums"]["ImGuiKey"][63]["value"] = "573" +defs["enums"]["ImGuiKey"][64] = {} +defs["enums"]["ImGuiKey"][64]["calc_value"] = 574 +defs["enums"]["ImGuiKey"][64]["name"] = "ImGuiKey_F3" +defs["enums"]["ImGuiKey"][64]["value"] = "574" +defs["enums"]["ImGuiKey"][65] = {} +defs["enums"]["ImGuiKey"][65]["calc_value"] = 575 +defs["enums"]["ImGuiKey"][65]["name"] = "ImGuiKey_F4" +defs["enums"]["ImGuiKey"][65]["value"] = "575" +defs["enums"]["ImGuiKey"][66] = {} +defs["enums"]["ImGuiKey"][66]["calc_value"] = 576 +defs["enums"]["ImGuiKey"][66]["name"] = "ImGuiKey_F5" +defs["enums"]["ImGuiKey"][66]["value"] = "576" +defs["enums"]["ImGuiKey"][67] = {} +defs["enums"]["ImGuiKey"][67]["calc_value"] = 577 +defs["enums"]["ImGuiKey"][67]["name"] = "ImGuiKey_F6" +defs["enums"]["ImGuiKey"][67]["value"] = "577" +defs["enums"]["ImGuiKey"][68] = {} +defs["enums"]["ImGuiKey"][68]["calc_value"] = 578 +defs["enums"]["ImGuiKey"][68]["name"] = "ImGuiKey_F7" +defs["enums"]["ImGuiKey"][68]["value"] = "578" +defs["enums"]["ImGuiKey"][69] = {} +defs["enums"]["ImGuiKey"][69]["calc_value"] = 579 +defs["enums"]["ImGuiKey"][69]["name"] = "ImGuiKey_F8" +defs["enums"]["ImGuiKey"][69]["value"] = "579" +defs["enums"]["ImGuiKey"][70] = {} +defs["enums"]["ImGuiKey"][70]["calc_value"] = 580 +defs["enums"]["ImGuiKey"][70]["name"] = "ImGuiKey_F9" +defs["enums"]["ImGuiKey"][70]["value"] = "580" +defs["enums"]["ImGuiKey"][71] = {} +defs["enums"]["ImGuiKey"][71]["calc_value"] = 581 +defs["enums"]["ImGuiKey"][71]["name"] = "ImGuiKey_F10" +defs["enums"]["ImGuiKey"][71]["value"] = "581" +defs["enums"]["ImGuiKey"][72] = {} +defs["enums"]["ImGuiKey"][72]["calc_value"] = 582 +defs["enums"]["ImGuiKey"][72]["name"] = "ImGuiKey_F11" +defs["enums"]["ImGuiKey"][72]["value"] = "582" +defs["enums"]["ImGuiKey"][73] = {} +defs["enums"]["ImGuiKey"][73]["calc_value"] = 583 +defs["enums"]["ImGuiKey"][73]["name"] = "ImGuiKey_F12" +defs["enums"]["ImGuiKey"][73]["value"] = "583" +defs["enums"]["ImGuiKey"][74] = {} +defs["enums"]["ImGuiKey"][74]["calc_value"] = 584 +defs["enums"]["ImGuiKey"][74]["name"] = "ImGuiKey_Apostrophe" +defs["enums"]["ImGuiKey"][74]["value"] = "584" +defs["enums"]["ImGuiKey"][75] = {} +defs["enums"]["ImGuiKey"][75]["calc_value"] = 585 +defs["enums"]["ImGuiKey"][75]["name"] = "ImGuiKey_Comma" +defs["enums"]["ImGuiKey"][75]["value"] = "585" +defs["enums"]["ImGuiKey"][76] = {} +defs["enums"]["ImGuiKey"][76]["calc_value"] = 586 +defs["enums"]["ImGuiKey"][76]["name"] = "ImGuiKey_Minus" +defs["enums"]["ImGuiKey"][76]["value"] = "586" +defs["enums"]["ImGuiKey"][77] = {} +defs["enums"]["ImGuiKey"][77]["calc_value"] = 587 +defs["enums"]["ImGuiKey"][77]["name"] = "ImGuiKey_Period" +defs["enums"]["ImGuiKey"][77]["value"] = "587" +defs["enums"]["ImGuiKey"][78] = {} +defs["enums"]["ImGuiKey"][78]["calc_value"] = 588 +defs["enums"]["ImGuiKey"][78]["name"] = "ImGuiKey_Slash" +defs["enums"]["ImGuiKey"][78]["value"] = "588" +defs["enums"]["ImGuiKey"][79] = {} +defs["enums"]["ImGuiKey"][79]["calc_value"] = 589 +defs["enums"]["ImGuiKey"][79]["name"] = "ImGuiKey_Semicolon" +defs["enums"]["ImGuiKey"][79]["value"] = "589" +defs["enums"]["ImGuiKey"][80] = {} +defs["enums"]["ImGuiKey"][80]["calc_value"] = 590 +defs["enums"]["ImGuiKey"][80]["name"] = "ImGuiKey_Equal" +defs["enums"]["ImGuiKey"][80]["value"] = "590" +defs["enums"]["ImGuiKey"][81] = {} +defs["enums"]["ImGuiKey"][81]["calc_value"] = 591 +defs["enums"]["ImGuiKey"][81]["name"] = "ImGuiKey_LeftBracket" +defs["enums"]["ImGuiKey"][81]["value"] = "591" +defs["enums"]["ImGuiKey"][82] = {} +defs["enums"]["ImGuiKey"][82]["calc_value"] = 592 +defs["enums"]["ImGuiKey"][82]["name"] = "ImGuiKey_Backslash" +defs["enums"]["ImGuiKey"][82]["value"] = "592" +defs["enums"]["ImGuiKey"][83] = {} +defs["enums"]["ImGuiKey"][83]["calc_value"] = 593 +defs["enums"]["ImGuiKey"][83]["name"] = "ImGuiKey_RightBracket" +defs["enums"]["ImGuiKey"][83]["value"] = "593" +defs["enums"]["ImGuiKey"][84] = {} +defs["enums"]["ImGuiKey"][84]["calc_value"] = 594 +defs["enums"]["ImGuiKey"][84]["name"] = "ImGuiKey_GraveAccent" +defs["enums"]["ImGuiKey"][84]["value"] = "594" +defs["enums"]["ImGuiKey"][85] = {} +defs["enums"]["ImGuiKey"][85]["calc_value"] = 595 +defs["enums"]["ImGuiKey"][85]["name"] = "ImGuiKey_CapsLock" +defs["enums"]["ImGuiKey"][85]["value"] = "595" +defs["enums"]["ImGuiKey"][86] = {} +defs["enums"]["ImGuiKey"][86]["calc_value"] = 596 +defs["enums"]["ImGuiKey"][86]["name"] = "ImGuiKey_ScrollLock" +defs["enums"]["ImGuiKey"][86]["value"] = "596" +defs["enums"]["ImGuiKey"][87] = {} +defs["enums"]["ImGuiKey"][87]["calc_value"] = 597 +defs["enums"]["ImGuiKey"][87]["name"] = "ImGuiKey_NumLock" +defs["enums"]["ImGuiKey"][87]["value"] = "597" +defs["enums"]["ImGuiKey"][88] = {} +defs["enums"]["ImGuiKey"][88]["calc_value"] = 598 +defs["enums"]["ImGuiKey"][88]["name"] = "ImGuiKey_PrintScreen" +defs["enums"]["ImGuiKey"][88]["value"] = "598" +defs["enums"]["ImGuiKey"][89] = {} +defs["enums"]["ImGuiKey"][89]["calc_value"] = 599 +defs["enums"]["ImGuiKey"][89]["name"] = "ImGuiKey_Pause" +defs["enums"]["ImGuiKey"][89]["value"] = "599" +defs["enums"]["ImGuiKey"][90] = {} +defs["enums"]["ImGuiKey"][90]["calc_value"] = 600 +defs["enums"]["ImGuiKey"][90]["name"] = "ImGuiKey_Keypad0" +defs["enums"]["ImGuiKey"][90]["value"] = "600" +defs["enums"]["ImGuiKey"][91] = {} +defs["enums"]["ImGuiKey"][91]["calc_value"] = 601 +defs["enums"]["ImGuiKey"][91]["name"] = "ImGuiKey_Keypad1" +defs["enums"]["ImGuiKey"][91]["value"] = "601" +defs["enums"]["ImGuiKey"][92] = {} +defs["enums"]["ImGuiKey"][92]["calc_value"] = 602 +defs["enums"]["ImGuiKey"][92]["name"] = "ImGuiKey_Keypad2" +defs["enums"]["ImGuiKey"][92]["value"] = "602" +defs["enums"]["ImGuiKey"][93] = {} +defs["enums"]["ImGuiKey"][93]["calc_value"] = 603 +defs["enums"]["ImGuiKey"][93]["name"] = "ImGuiKey_Keypad3" +defs["enums"]["ImGuiKey"][93]["value"] = "603" +defs["enums"]["ImGuiKey"][94] = {} +defs["enums"]["ImGuiKey"][94]["calc_value"] = 604 +defs["enums"]["ImGuiKey"][94]["name"] = "ImGuiKey_Keypad4" +defs["enums"]["ImGuiKey"][94]["value"] = "604" +defs["enums"]["ImGuiKey"][95] = {} +defs["enums"]["ImGuiKey"][95]["calc_value"] = 605 +defs["enums"]["ImGuiKey"][95]["name"] = "ImGuiKey_Keypad5" +defs["enums"]["ImGuiKey"][95]["value"] = "605" +defs["enums"]["ImGuiKey"][96] = {} +defs["enums"]["ImGuiKey"][96]["calc_value"] = 606 +defs["enums"]["ImGuiKey"][96]["name"] = "ImGuiKey_Keypad6" +defs["enums"]["ImGuiKey"][96]["value"] = "606" +defs["enums"]["ImGuiKey"][97] = {} +defs["enums"]["ImGuiKey"][97]["calc_value"] = 607 +defs["enums"]["ImGuiKey"][97]["name"] = "ImGuiKey_Keypad7" +defs["enums"]["ImGuiKey"][97]["value"] = "607" +defs["enums"]["ImGuiKey"][98] = {} +defs["enums"]["ImGuiKey"][98]["calc_value"] = 608 +defs["enums"]["ImGuiKey"][98]["name"] = "ImGuiKey_Keypad8" +defs["enums"]["ImGuiKey"][98]["value"] = "608" +defs["enums"]["ImGuiKey"][99] = {} +defs["enums"]["ImGuiKey"][99]["calc_value"] = 609 +defs["enums"]["ImGuiKey"][99]["name"] = "ImGuiKey_Keypad9" +defs["enums"]["ImGuiKey"][99]["value"] = "609" +defs["enums"]["ImGuiKey"][100] = {} +defs["enums"]["ImGuiKey"][100]["calc_value"] = 610 +defs["enums"]["ImGuiKey"][100]["name"] = "ImGuiKey_KeypadDecimal" +defs["enums"]["ImGuiKey"][100]["value"] = "610" +defs["enums"]["ImGuiKey"][101] = {} +defs["enums"]["ImGuiKey"][101]["calc_value"] = 611 +defs["enums"]["ImGuiKey"][101]["name"] = "ImGuiKey_KeypadDivide" +defs["enums"]["ImGuiKey"][101]["value"] = "611" +defs["enums"]["ImGuiKey"][102] = {} +defs["enums"]["ImGuiKey"][102]["calc_value"] = 612 +defs["enums"]["ImGuiKey"][102]["name"] = "ImGuiKey_KeypadMultiply" +defs["enums"]["ImGuiKey"][102]["value"] = "612" +defs["enums"]["ImGuiKey"][103] = {} +defs["enums"]["ImGuiKey"][103]["calc_value"] = 613 +defs["enums"]["ImGuiKey"][103]["name"] = "ImGuiKey_KeypadSubtract" +defs["enums"]["ImGuiKey"][103]["value"] = "613" +defs["enums"]["ImGuiKey"][104] = {} +defs["enums"]["ImGuiKey"][104]["calc_value"] = 614 +defs["enums"]["ImGuiKey"][104]["name"] = "ImGuiKey_KeypadAdd" +defs["enums"]["ImGuiKey"][104]["value"] = "614" +defs["enums"]["ImGuiKey"][105] = {} +defs["enums"]["ImGuiKey"][105]["calc_value"] = 615 +defs["enums"]["ImGuiKey"][105]["name"] = "ImGuiKey_KeypadEnter" +defs["enums"]["ImGuiKey"][105]["value"] = "615" +defs["enums"]["ImGuiKey"][106] = {} +defs["enums"]["ImGuiKey"][106]["calc_value"] = 616 +defs["enums"]["ImGuiKey"][106]["name"] = "ImGuiKey_KeypadEqual" +defs["enums"]["ImGuiKey"][106]["value"] = "616" +defs["enums"]["ImGuiKey"][107] = {} +defs["enums"]["ImGuiKey"][107]["calc_value"] = 617 +defs["enums"]["ImGuiKey"][107]["name"] = "ImGuiKey_GamepadStart" +defs["enums"]["ImGuiKey"][107]["value"] = "617" +defs["enums"]["ImGuiKey"][108] = {} +defs["enums"]["ImGuiKey"][108]["calc_value"] = 618 +defs["enums"]["ImGuiKey"][108]["name"] = "ImGuiKey_GamepadBack" +defs["enums"]["ImGuiKey"][108]["value"] = "618" +defs["enums"]["ImGuiKey"][109] = {} +defs["enums"]["ImGuiKey"][109]["calc_value"] = 619 +defs["enums"]["ImGuiKey"][109]["name"] = "ImGuiKey_GamepadFaceLeft" +defs["enums"]["ImGuiKey"][109]["value"] = "619" +defs["enums"]["ImGuiKey"][110] = {} +defs["enums"]["ImGuiKey"][110]["calc_value"] = 620 +defs["enums"]["ImGuiKey"][110]["name"] = "ImGuiKey_GamepadFaceRight" +defs["enums"]["ImGuiKey"][110]["value"] = "620" +defs["enums"]["ImGuiKey"][111] = {} +defs["enums"]["ImGuiKey"][111]["calc_value"] = 621 +defs["enums"]["ImGuiKey"][111]["name"] = "ImGuiKey_GamepadFaceUp" +defs["enums"]["ImGuiKey"][111]["value"] = "621" +defs["enums"]["ImGuiKey"][112] = {} +defs["enums"]["ImGuiKey"][112]["calc_value"] = 622 +defs["enums"]["ImGuiKey"][112]["name"] = "ImGuiKey_GamepadFaceDown" +defs["enums"]["ImGuiKey"][112]["value"] = "622" +defs["enums"]["ImGuiKey"][113] = {} +defs["enums"]["ImGuiKey"][113]["calc_value"] = 623 +defs["enums"]["ImGuiKey"][113]["name"] = "ImGuiKey_GamepadDpadLeft" +defs["enums"]["ImGuiKey"][113]["value"] = "623" +defs["enums"]["ImGuiKey"][114] = {} +defs["enums"]["ImGuiKey"][114]["calc_value"] = 624 +defs["enums"]["ImGuiKey"][114]["name"] = "ImGuiKey_GamepadDpadRight" +defs["enums"]["ImGuiKey"][114]["value"] = "624" +defs["enums"]["ImGuiKey"][115] = {} +defs["enums"]["ImGuiKey"][115]["calc_value"] = 625 +defs["enums"]["ImGuiKey"][115]["name"] = "ImGuiKey_GamepadDpadUp" +defs["enums"]["ImGuiKey"][115]["value"] = "625" +defs["enums"]["ImGuiKey"][116] = {} +defs["enums"]["ImGuiKey"][116]["calc_value"] = 626 +defs["enums"]["ImGuiKey"][116]["name"] = "ImGuiKey_GamepadDpadDown" +defs["enums"]["ImGuiKey"][116]["value"] = "626" +defs["enums"]["ImGuiKey"][117] = {} +defs["enums"]["ImGuiKey"][117]["calc_value"] = 627 +defs["enums"]["ImGuiKey"][117]["name"] = "ImGuiKey_GamepadL1" +defs["enums"]["ImGuiKey"][117]["value"] = "627" +defs["enums"]["ImGuiKey"][118] = {} +defs["enums"]["ImGuiKey"][118]["calc_value"] = 628 +defs["enums"]["ImGuiKey"][118]["name"] = "ImGuiKey_GamepadR1" +defs["enums"]["ImGuiKey"][118]["value"] = "628" +defs["enums"]["ImGuiKey"][119] = {} +defs["enums"]["ImGuiKey"][119]["calc_value"] = 629 +defs["enums"]["ImGuiKey"][119]["name"] = "ImGuiKey_GamepadL2" +defs["enums"]["ImGuiKey"][119]["value"] = "629" +defs["enums"]["ImGuiKey"][120] = {} +defs["enums"]["ImGuiKey"][120]["calc_value"] = 630 +defs["enums"]["ImGuiKey"][120]["name"] = "ImGuiKey_GamepadR2" +defs["enums"]["ImGuiKey"][120]["value"] = "630" +defs["enums"]["ImGuiKey"][121] = {} +defs["enums"]["ImGuiKey"][121]["calc_value"] = 631 +defs["enums"]["ImGuiKey"][121]["name"] = "ImGuiKey_GamepadL3" +defs["enums"]["ImGuiKey"][121]["value"] = "631" +defs["enums"]["ImGuiKey"][122] = {} +defs["enums"]["ImGuiKey"][122]["calc_value"] = 632 +defs["enums"]["ImGuiKey"][122]["name"] = "ImGuiKey_GamepadR3" +defs["enums"]["ImGuiKey"][122]["value"] = "632" +defs["enums"]["ImGuiKey"][123] = {} +defs["enums"]["ImGuiKey"][123]["calc_value"] = 633 +defs["enums"]["ImGuiKey"][123]["name"] = "ImGuiKey_GamepadLStickLeft" +defs["enums"]["ImGuiKey"][123]["value"] = "633" +defs["enums"]["ImGuiKey"][124] = {} +defs["enums"]["ImGuiKey"][124]["calc_value"] = 634 +defs["enums"]["ImGuiKey"][124]["name"] = "ImGuiKey_GamepadLStickRight" +defs["enums"]["ImGuiKey"][124]["value"] = "634" +defs["enums"]["ImGuiKey"][125] = {} +defs["enums"]["ImGuiKey"][125]["calc_value"] = 635 +defs["enums"]["ImGuiKey"][125]["name"] = "ImGuiKey_GamepadLStickUp" +defs["enums"]["ImGuiKey"][125]["value"] = "635" +defs["enums"]["ImGuiKey"][126] = {} +defs["enums"]["ImGuiKey"][126]["calc_value"] = 636 +defs["enums"]["ImGuiKey"][126]["name"] = "ImGuiKey_GamepadLStickDown" +defs["enums"]["ImGuiKey"][126]["value"] = "636" +defs["enums"]["ImGuiKey"][127] = {} +defs["enums"]["ImGuiKey"][127]["calc_value"] = 637 +defs["enums"]["ImGuiKey"][127]["name"] = "ImGuiKey_GamepadRStickLeft" +defs["enums"]["ImGuiKey"][127]["value"] = "637" +defs["enums"]["ImGuiKey"][128] = {} +defs["enums"]["ImGuiKey"][128]["calc_value"] = 638 +defs["enums"]["ImGuiKey"][128]["name"] = "ImGuiKey_GamepadRStickRight" +defs["enums"]["ImGuiKey"][128]["value"] = "638" +defs["enums"]["ImGuiKey"][129] = {} +defs["enums"]["ImGuiKey"][129]["calc_value"] = 639 +defs["enums"]["ImGuiKey"][129]["name"] = "ImGuiKey_GamepadRStickUp" +defs["enums"]["ImGuiKey"][129]["value"] = "639" +defs["enums"]["ImGuiKey"][130] = {} +defs["enums"]["ImGuiKey"][130]["calc_value"] = 640 +defs["enums"]["ImGuiKey"][130]["name"] = "ImGuiKey_GamepadRStickDown" +defs["enums"]["ImGuiKey"][130]["value"] = "640" +defs["enums"]["ImGuiKey"][131] = {} +defs["enums"]["ImGuiKey"][131]["calc_value"] = 641 +defs["enums"]["ImGuiKey"][131]["name"] = "ImGuiKey_MouseLeft" +defs["enums"]["ImGuiKey"][131]["value"] = "641" +defs["enums"]["ImGuiKey"][132] = {} +defs["enums"]["ImGuiKey"][132]["calc_value"] = 642 +defs["enums"]["ImGuiKey"][132]["name"] = "ImGuiKey_MouseRight" +defs["enums"]["ImGuiKey"][132]["value"] = "642" +defs["enums"]["ImGuiKey"][133] = {} +defs["enums"]["ImGuiKey"][133]["calc_value"] = 643 +defs["enums"]["ImGuiKey"][133]["name"] = "ImGuiKey_MouseMiddle" +defs["enums"]["ImGuiKey"][133]["value"] = "643" +defs["enums"]["ImGuiKey"][134] = {} +defs["enums"]["ImGuiKey"][134]["calc_value"] = 644 +defs["enums"]["ImGuiKey"][134]["name"] = "ImGuiKey_MouseX1" +defs["enums"]["ImGuiKey"][134]["value"] = "644" +defs["enums"]["ImGuiKey"][135] = {} +defs["enums"]["ImGuiKey"][135]["calc_value"] = 645 +defs["enums"]["ImGuiKey"][135]["name"] = "ImGuiKey_MouseX2" +defs["enums"]["ImGuiKey"][135]["value"] = "645" +defs["enums"]["ImGuiKey"][136] = {} +defs["enums"]["ImGuiKey"][136]["calc_value"] = 646 +defs["enums"]["ImGuiKey"][136]["name"] = "ImGuiKey_MouseWheelX" +defs["enums"]["ImGuiKey"][136]["value"] = "646" +defs["enums"]["ImGuiKey"][137] = {} +defs["enums"]["ImGuiKey"][137]["calc_value"] = 647 +defs["enums"]["ImGuiKey"][137]["name"] = "ImGuiKey_MouseWheelY" +defs["enums"]["ImGuiKey"][137]["value"] = "647" +defs["enums"]["ImGuiKey"][138] = {} +defs["enums"]["ImGuiKey"][138]["calc_value"] = 648 +defs["enums"]["ImGuiKey"][138]["name"] = "ImGuiKey_ReservedForModCtrl" +defs["enums"]["ImGuiKey"][138]["value"] = "648" +defs["enums"]["ImGuiKey"][139] = {} +defs["enums"]["ImGuiKey"][139]["calc_value"] = 649 +defs["enums"]["ImGuiKey"][139]["name"] = "ImGuiKey_ReservedForModShift" +defs["enums"]["ImGuiKey"][139]["value"] = "649" +defs["enums"]["ImGuiKey"][140] = {} +defs["enums"]["ImGuiKey"][140]["calc_value"] = 650 +defs["enums"]["ImGuiKey"][140]["name"] = "ImGuiKey_ReservedForModAlt" +defs["enums"]["ImGuiKey"][140]["value"] = "650" +defs["enums"]["ImGuiKey"][141] = {} +defs["enums"]["ImGuiKey"][141]["calc_value"] = 651 +defs["enums"]["ImGuiKey"][141]["name"] = "ImGuiKey_ReservedForModSuper" +defs["enums"]["ImGuiKey"][141]["value"] = "651" +defs["enums"]["ImGuiKey"][142] = {} +defs["enums"]["ImGuiKey"][142]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][142]["name"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][142]["value"] = "652" +defs["enums"]["ImGuiKey"][143] = {} +defs["enums"]["ImGuiKey"][143]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][143]["name"] = "ImGuiMod_None" +defs["enums"]["ImGuiKey"][143]["value"] = "0" +defs["enums"]["ImGuiKey"][144] = {} +defs["enums"]["ImGuiKey"][144]["calc_value"] = 4096 +defs["enums"]["ImGuiKey"][144]["name"] = "ImGuiMod_Ctrl" +defs["enums"]["ImGuiKey"][144]["value"] = "1 << 12" +defs["enums"]["ImGuiKey"][145] = {} +defs["enums"]["ImGuiKey"][145]["calc_value"] = 8192 +defs["enums"]["ImGuiKey"][145]["name"] = "ImGuiMod_Shift" +defs["enums"]["ImGuiKey"][145]["value"] = "1 << 13" +defs["enums"]["ImGuiKey"][146] = {} +defs["enums"]["ImGuiKey"][146]["calc_value"] = 16384 +defs["enums"]["ImGuiKey"][146]["name"] = "ImGuiMod_Alt" +defs["enums"]["ImGuiKey"][146]["value"] = "1 << 14" +defs["enums"]["ImGuiKey"][147] = {} +defs["enums"]["ImGuiKey"][147]["calc_value"] = 32768 +defs["enums"]["ImGuiKey"][147]["name"] = "ImGuiMod_Super" +defs["enums"]["ImGuiKey"][147]["value"] = "1 << 15" +defs["enums"]["ImGuiKey"][148] = {} +defs["enums"]["ImGuiKey"][148]["calc_value"] = 61440 +defs["enums"]["ImGuiKey"][148]["name"] = "ImGuiMod_Mask_" +defs["enums"]["ImGuiKey"][148]["value"] = "0xF000" +defs["enums"]["ImGuiKey"][149] = {} +defs["enums"]["ImGuiKey"][149]["calc_value"] = 4096 +defs["enums"]["ImGuiKey"][149]["name"] = "ImGuiMod_Shortcut" +defs["enums"]["ImGuiKey"][149]["value"] = "ImGuiMod_Ctrl" +defs["enums"]["ImGuiKey"][150] = {} +defs["enums"]["ImGuiKey"][150]["calc_value"] = 512 +defs["enums"]["ImGuiKey"][150]["name"] = "ImGuiKey_NamedKey_BEGIN" +defs["enums"]["ImGuiKey"][150]["value"] = "512" +defs["enums"]["ImGuiKey"][151] = {} +defs["enums"]["ImGuiKey"][151]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][151]["name"] = "ImGuiKey_NamedKey_END" +defs["enums"]["ImGuiKey"][151]["value"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][152] = {} +defs["enums"]["ImGuiKey"][152]["calc_value"] = 140 +defs["enums"]["ImGuiKey"][152]["name"] = "ImGuiKey_NamedKey_COUNT" +defs["enums"]["ImGuiKey"][152]["value"] = "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN" +defs["enums"]["ImGuiKey"][153] = {} +defs["enums"]["ImGuiKey"][153]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][153]["name"] = "ImGuiKey_KeysData_SIZE" +defs["enums"]["ImGuiKey"][153]["value"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][154] = {} +defs["enums"]["ImGuiKey"][154]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][154]["name"] = "ImGuiKey_KeysData_OFFSET" +defs["enums"]["ImGuiKey"][154]["value"] = "0" +defs["enums"]["ImGuiMouseButton_"] = {} +defs["enums"]["ImGuiMouseButton_"][1] = {} +defs["enums"]["ImGuiMouseButton_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiMouseButton_"][1]["name"] = "ImGuiMouseButton_Left" +defs["enums"]["ImGuiMouseButton_"][1]["value"] = "0" +defs["enums"]["ImGuiMouseButton_"][2] = {} +defs["enums"]["ImGuiMouseButton_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiMouseButton_"][2]["name"] = "ImGuiMouseButton_Right" +defs["enums"]["ImGuiMouseButton_"][2]["value"] = "1" +defs["enums"]["ImGuiMouseButton_"][3] = {} +defs["enums"]["ImGuiMouseButton_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiMouseButton_"][3]["name"] = "ImGuiMouseButton_Middle" +defs["enums"]["ImGuiMouseButton_"][3]["value"] = "2" +defs["enums"]["ImGuiMouseButton_"][4] = {} +defs["enums"]["ImGuiMouseButton_"][4]["calc_value"] = 5 +defs["enums"]["ImGuiMouseButton_"][4]["name"] = "ImGuiMouseButton_COUNT" +defs["enums"]["ImGuiMouseButton_"][4]["value"] = "5" +defs["enums"]["ImGuiMouseCursor_"] = {} +defs["enums"]["ImGuiMouseCursor_"][1] = {} +defs["enums"]["ImGuiMouseCursor_"][1]["calc_value"] = -1 +defs["enums"]["ImGuiMouseCursor_"][1]["name"] = "ImGuiMouseCursor_None" +defs["enums"]["ImGuiMouseCursor_"][1]["value"] = "-1" +defs["enums"]["ImGuiMouseCursor_"][2] = {} +defs["enums"]["ImGuiMouseCursor_"][2]["calc_value"] = 0 +defs["enums"]["ImGuiMouseCursor_"][2]["name"] = "ImGuiMouseCursor_Arrow" +defs["enums"]["ImGuiMouseCursor_"][2]["value"] = "0" +defs["enums"]["ImGuiMouseCursor_"][3] = {} +defs["enums"]["ImGuiMouseCursor_"][3]["calc_value"] = 1 +defs["enums"]["ImGuiMouseCursor_"][3]["name"] = "ImGuiMouseCursor_TextInput" +defs["enums"]["ImGuiMouseCursor_"][3]["value"] = "1" +defs["enums"]["ImGuiMouseCursor_"][4] = {} +defs["enums"]["ImGuiMouseCursor_"][4]["calc_value"] = 2 +defs["enums"]["ImGuiMouseCursor_"][4]["name"] = "ImGuiMouseCursor_ResizeAll" +defs["enums"]["ImGuiMouseCursor_"][4]["value"] = "2" +defs["enums"]["ImGuiMouseCursor_"][5] = {} +defs["enums"]["ImGuiMouseCursor_"][5]["calc_value"] = 3 +defs["enums"]["ImGuiMouseCursor_"][5]["name"] = "ImGuiMouseCursor_ResizeNS" +defs["enums"]["ImGuiMouseCursor_"][5]["value"] = "3" +defs["enums"]["ImGuiMouseCursor_"][6] = {} +defs["enums"]["ImGuiMouseCursor_"][6]["calc_value"] = 4 +defs["enums"]["ImGuiMouseCursor_"][6]["name"] = "ImGuiMouseCursor_ResizeEW" +defs["enums"]["ImGuiMouseCursor_"][6]["value"] = "4" +defs["enums"]["ImGuiMouseCursor_"][7] = {} +defs["enums"]["ImGuiMouseCursor_"][7]["calc_value"] = 5 +defs["enums"]["ImGuiMouseCursor_"][7]["name"] = "ImGuiMouseCursor_ResizeNESW" +defs["enums"]["ImGuiMouseCursor_"][7]["value"] = "5" +defs["enums"]["ImGuiMouseCursor_"][8] = {} +defs["enums"]["ImGuiMouseCursor_"][8]["calc_value"] = 6 +defs["enums"]["ImGuiMouseCursor_"][8]["name"] = "ImGuiMouseCursor_ResizeNWSE" +defs["enums"]["ImGuiMouseCursor_"][8]["value"] = "6" +defs["enums"]["ImGuiMouseCursor_"][9] = {} +defs["enums"]["ImGuiMouseCursor_"][9]["calc_value"] = 7 +defs["enums"]["ImGuiMouseCursor_"][9]["name"] = "ImGuiMouseCursor_Hand" +defs["enums"]["ImGuiMouseCursor_"][9]["value"] = "7" +defs["enums"]["ImGuiMouseCursor_"][10] = {} +defs["enums"]["ImGuiMouseCursor_"][10]["calc_value"] = 8 +defs["enums"]["ImGuiMouseCursor_"][10]["name"] = "ImGuiMouseCursor_NotAllowed" +defs["enums"]["ImGuiMouseCursor_"][10]["value"] = "8" +defs["enums"]["ImGuiMouseCursor_"][11] = {} +defs["enums"]["ImGuiMouseCursor_"][11]["calc_value"] = 9 +defs["enums"]["ImGuiMouseCursor_"][11]["name"] = "ImGuiMouseCursor_COUNT" +defs["enums"]["ImGuiMouseCursor_"][11]["value"] = "9" +defs["enums"]["ImGuiNavInput"] = {} +defs["enums"]["ImGuiNavInput"][1] = {} +defs["enums"]["ImGuiNavInput"][1]["calc_value"] = 0 +defs["enums"]["ImGuiNavInput"][1]["name"] = "ImGuiNavInput_Activate" +defs["enums"]["ImGuiNavInput"][1]["value"] = "0" +defs["enums"]["ImGuiNavInput"][2] = {} +defs["enums"]["ImGuiNavInput"][2]["calc_value"] = 1 +defs["enums"]["ImGuiNavInput"][2]["name"] = "ImGuiNavInput_Cancel" +defs["enums"]["ImGuiNavInput"][2]["value"] = "1" +defs["enums"]["ImGuiNavInput"][3] = {} +defs["enums"]["ImGuiNavInput"][3]["calc_value"] = 2 +defs["enums"]["ImGuiNavInput"][3]["name"] = "ImGuiNavInput_Input" +defs["enums"]["ImGuiNavInput"][3]["value"] = "2" +defs["enums"]["ImGuiNavInput"][4] = {} +defs["enums"]["ImGuiNavInput"][4]["calc_value"] = 3 +defs["enums"]["ImGuiNavInput"][4]["name"] = "ImGuiNavInput_Menu" +defs["enums"]["ImGuiNavInput"][4]["value"] = "3" +defs["enums"]["ImGuiNavInput"][5] = {} +defs["enums"]["ImGuiNavInput"][5]["calc_value"] = 4 +defs["enums"]["ImGuiNavInput"][5]["name"] = "ImGuiNavInput_DpadLeft" +defs["enums"]["ImGuiNavInput"][5]["value"] = "4" +defs["enums"]["ImGuiNavInput"][6] = {} +defs["enums"]["ImGuiNavInput"][6]["calc_value"] = 5 +defs["enums"]["ImGuiNavInput"][6]["name"] = "ImGuiNavInput_DpadRight" +defs["enums"]["ImGuiNavInput"][6]["value"] = "5" +defs["enums"]["ImGuiNavInput"][7] = {} +defs["enums"]["ImGuiNavInput"][7]["calc_value"] = 6 +defs["enums"]["ImGuiNavInput"][7]["name"] = "ImGuiNavInput_DpadUp" +defs["enums"]["ImGuiNavInput"][7]["value"] = "6" +defs["enums"]["ImGuiNavInput"][8] = {} +defs["enums"]["ImGuiNavInput"][8]["calc_value"] = 7 +defs["enums"]["ImGuiNavInput"][8]["name"] = "ImGuiNavInput_DpadDown" +defs["enums"]["ImGuiNavInput"][8]["value"] = "7" +defs["enums"]["ImGuiNavInput"][9] = {} +defs["enums"]["ImGuiNavInput"][9]["calc_value"] = 8 +defs["enums"]["ImGuiNavInput"][9]["name"] = "ImGuiNavInput_LStickLeft" +defs["enums"]["ImGuiNavInput"][9]["value"] = "8" +defs["enums"]["ImGuiNavInput"][10] = {} +defs["enums"]["ImGuiNavInput"][10]["calc_value"] = 9 +defs["enums"]["ImGuiNavInput"][10]["name"] = "ImGuiNavInput_LStickRight" +defs["enums"]["ImGuiNavInput"][10]["value"] = "9" +defs["enums"]["ImGuiNavInput"][11] = {} +defs["enums"]["ImGuiNavInput"][11]["calc_value"] = 10 +defs["enums"]["ImGuiNavInput"][11]["name"] = "ImGuiNavInput_LStickUp" +defs["enums"]["ImGuiNavInput"][11]["value"] = "10" +defs["enums"]["ImGuiNavInput"][12] = {} +defs["enums"]["ImGuiNavInput"][12]["calc_value"] = 11 +defs["enums"]["ImGuiNavInput"][12]["name"] = "ImGuiNavInput_LStickDown" +defs["enums"]["ImGuiNavInput"][12]["value"] = "11" +defs["enums"]["ImGuiNavInput"][13] = {} +defs["enums"]["ImGuiNavInput"][13]["calc_value"] = 12 +defs["enums"]["ImGuiNavInput"][13]["name"] = "ImGuiNavInput_FocusPrev" +defs["enums"]["ImGuiNavInput"][13]["value"] = "12" +defs["enums"]["ImGuiNavInput"][14] = {} +defs["enums"]["ImGuiNavInput"][14]["calc_value"] = 13 +defs["enums"]["ImGuiNavInput"][14]["name"] = "ImGuiNavInput_FocusNext" +defs["enums"]["ImGuiNavInput"][14]["value"] = "13" +defs["enums"]["ImGuiNavInput"][15] = {} +defs["enums"]["ImGuiNavInput"][15]["calc_value"] = 14 +defs["enums"]["ImGuiNavInput"][15]["name"] = "ImGuiNavInput_TweakSlow" +defs["enums"]["ImGuiNavInput"][15]["value"] = "14" +defs["enums"]["ImGuiNavInput"][16] = {} +defs["enums"]["ImGuiNavInput"][16]["calc_value"] = 15 +defs["enums"]["ImGuiNavInput"][16]["name"] = "ImGuiNavInput_TweakFast" +defs["enums"]["ImGuiNavInput"][16]["value"] = "15" +defs["enums"]["ImGuiNavInput"][17] = {} +defs["enums"]["ImGuiNavInput"][17]["calc_value"] = 16 +defs["enums"]["ImGuiNavInput"][17]["name"] = "ImGuiNavInput_COUNT" +defs["enums"]["ImGuiNavInput"][17]["value"] = "16" +defs["enums"]["ImGuiPopupFlags_"] = {} +defs["enums"]["ImGuiPopupFlags_"][1] = {} +defs["enums"]["ImGuiPopupFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiPopupFlags_"][1]["name"] = "ImGuiPopupFlags_None" +defs["enums"]["ImGuiPopupFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiPopupFlags_"][2] = {} +defs["enums"]["ImGuiPopupFlags_"][2]["calc_value"] = 0 +defs["enums"]["ImGuiPopupFlags_"][2]["name"] = "ImGuiPopupFlags_MouseButtonLeft" +defs["enums"]["ImGuiPopupFlags_"][2]["value"] = "0" +defs["enums"]["ImGuiPopupFlags_"][3] = {} +defs["enums"]["ImGuiPopupFlags_"][3]["calc_value"] = 1 +defs["enums"]["ImGuiPopupFlags_"][3]["name"] = "ImGuiPopupFlags_MouseButtonRight" +defs["enums"]["ImGuiPopupFlags_"][3]["value"] = "1" +defs["enums"]["ImGuiPopupFlags_"][4] = {} +defs["enums"]["ImGuiPopupFlags_"][4]["calc_value"] = 2 +defs["enums"]["ImGuiPopupFlags_"][4]["name"] = "ImGuiPopupFlags_MouseButtonMiddle" +defs["enums"]["ImGuiPopupFlags_"][4]["value"] = "2" +defs["enums"]["ImGuiPopupFlags_"][5] = {} +defs["enums"]["ImGuiPopupFlags_"][5]["calc_value"] = 31 +defs["enums"]["ImGuiPopupFlags_"][5]["name"] = "ImGuiPopupFlags_MouseButtonMask_" +defs["enums"]["ImGuiPopupFlags_"][5]["value"] = "0x1F" +defs["enums"]["ImGuiPopupFlags_"][6] = {} +defs["enums"]["ImGuiPopupFlags_"][6]["calc_value"] = 1 +defs["enums"]["ImGuiPopupFlags_"][6]["name"] = "ImGuiPopupFlags_MouseButtonDefault_" +defs["enums"]["ImGuiPopupFlags_"][6]["value"] = "1" +defs["enums"]["ImGuiPopupFlags_"][7] = {} +defs["enums"]["ImGuiPopupFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiPopupFlags_"][7]["name"] = "ImGuiPopupFlags_NoOpenOverExistingPopup" +defs["enums"]["ImGuiPopupFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiPopupFlags_"][8] = {} +defs["enums"]["ImGuiPopupFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiPopupFlags_"][8]["name"] = "ImGuiPopupFlags_NoOpenOverItems" +defs["enums"]["ImGuiPopupFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiPopupFlags_"][9] = {} +defs["enums"]["ImGuiPopupFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiPopupFlags_"][9]["name"] = "ImGuiPopupFlags_AnyPopupId" +defs["enums"]["ImGuiPopupFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiPopupFlags_"][10] = {} +defs["enums"]["ImGuiPopupFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiPopupFlags_"][10]["name"] = "ImGuiPopupFlags_AnyPopupLevel" +defs["enums"]["ImGuiPopupFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiPopupFlags_"][11] = {} +defs["enums"]["ImGuiPopupFlags_"][11]["calc_value"] = 384 +defs["enums"]["ImGuiPopupFlags_"][11]["name"] = "ImGuiPopupFlags_AnyPopup" +defs["enums"]["ImGuiPopupFlags_"][11]["value"] = "ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel" +defs["enums"]["ImGuiSelectableFlags_"] = {} +defs["enums"]["ImGuiSelectableFlags_"][1] = {} +defs["enums"]["ImGuiSelectableFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiSelectableFlags_"][1]["name"] = "ImGuiSelectableFlags_None" +defs["enums"]["ImGuiSelectableFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiSelectableFlags_"][2] = {} +defs["enums"]["ImGuiSelectableFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiSelectableFlags_"][2]["name"] = "ImGuiSelectableFlags_DontClosePopups" +defs["enums"]["ImGuiSelectableFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiSelectableFlags_"][3] = {} +defs["enums"]["ImGuiSelectableFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiSelectableFlags_"][3]["name"] = "ImGuiSelectableFlags_SpanAllColumns" +defs["enums"]["ImGuiSelectableFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiSelectableFlags_"][4] = {} +defs["enums"]["ImGuiSelectableFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiSelectableFlags_"][4]["name"] = "ImGuiSelectableFlags_AllowDoubleClick" +defs["enums"]["ImGuiSelectableFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiSelectableFlags_"][5] = {} +defs["enums"]["ImGuiSelectableFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiSelectableFlags_"][5]["name"] = "ImGuiSelectableFlags_Disabled" +defs["enums"]["ImGuiSelectableFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiSelectableFlags_"][6] = {} +defs["enums"]["ImGuiSelectableFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiSelectableFlags_"][6]["name"] = "ImGuiSelectableFlags_AllowItemOverlap" +defs["enums"]["ImGuiSelectableFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiSliderFlags_"] = {} +defs["enums"]["ImGuiSliderFlags_"][1] = {} +defs["enums"]["ImGuiSliderFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiSliderFlags_"][1]["name"] = "ImGuiSliderFlags_None" +defs["enums"]["ImGuiSliderFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiSliderFlags_"][2] = {} +defs["enums"]["ImGuiSliderFlags_"][2]["calc_value"] = 16 +defs["enums"]["ImGuiSliderFlags_"][2]["name"] = "ImGuiSliderFlags_AlwaysClamp" +defs["enums"]["ImGuiSliderFlags_"][2]["value"] = "1 << 4" +defs["enums"]["ImGuiSliderFlags_"][3] = {} +defs["enums"]["ImGuiSliderFlags_"][3]["calc_value"] = 32 +defs["enums"]["ImGuiSliderFlags_"][3]["name"] = "ImGuiSliderFlags_Logarithmic" +defs["enums"]["ImGuiSliderFlags_"][3]["value"] = "1 << 5" +defs["enums"]["ImGuiSliderFlags_"][4] = {} +defs["enums"]["ImGuiSliderFlags_"][4]["calc_value"] = 64 +defs["enums"]["ImGuiSliderFlags_"][4]["name"] = "ImGuiSliderFlags_NoRoundToFormat" +defs["enums"]["ImGuiSliderFlags_"][4]["value"] = "1 << 6" +defs["enums"]["ImGuiSliderFlags_"][5] = {} +defs["enums"]["ImGuiSliderFlags_"][5]["calc_value"] = 128 +defs["enums"]["ImGuiSliderFlags_"][5]["name"] = "ImGuiSliderFlags_NoInput" +defs["enums"]["ImGuiSliderFlags_"][5]["value"] = "1 << 7" +defs["enums"]["ImGuiSliderFlags_"][6] = {} +defs["enums"]["ImGuiSliderFlags_"][6]["calc_value"] = 1879048207 +defs["enums"]["ImGuiSliderFlags_"][6]["name"] = "ImGuiSliderFlags_InvalidMask_" +defs["enums"]["ImGuiSliderFlags_"][6]["value"] = "0x7000000F" +defs["enums"]["ImGuiSortDirection_"] = {} +defs["enums"]["ImGuiSortDirection_"][1] = {} +defs["enums"]["ImGuiSortDirection_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiSortDirection_"][1]["name"] = "ImGuiSortDirection_None" +defs["enums"]["ImGuiSortDirection_"][1]["value"] = "0" +defs["enums"]["ImGuiSortDirection_"][2] = {} +defs["enums"]["ImGuiSortDirection_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiSortDirection_"][2]["name"] = "ImGuiSortDirection_Ascending" +defs["enums"]["ImGuiSortDirection_"][2]["value"] = "1" +defs["enums"]["ImGuiSortDirection_"][3] = {} +defs["enums"]["ImGuiSortDirection_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiSortDirection_"][3]["name"] = "ImGuiSortDirection_Descending" +defs["enums"]["ImGuiSortDirection_"][3]["value"] = "2" +defs["enums"]["ImGuiStyleVar_"] = {} +defs["enums"]["ImGuiStyleVar_"][1] = {} +defs["enums"]["ImGuiStyleVar_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiStyleVar_"][1]["name"] = "ImGuiStyleVar_Alpha" +defs["enums"]["ImGuiStyleVar_"][1]["value"] = "0" +defs["enums"]["ImGuiStyleVar_"][2] = {} +defs["enums"]["ImGuiStyleVar_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiStyleVar_"][2]["name"] = "ImGuiStyleVar_DisabledAlpha" +defs["enums"]["ImGuiStyleVar_"][2]["value"] = "1" +defs["enums"]["ImGuiStyleVar_"][3] = {} +defs["enums"]["ImGuiStyleVar_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiStyleVar_"][3]["name"] = "ImGuiStyleVar_WindowPadding" +defs["enums"]["ImGuiStyleVar_"][3]["value"] = "2" +defs["enums"]["ImGuiStyleVar_"][4] = {} +defs["enums"]["ImGuiStyleVar_"][4]["calc_value"] = 3 +defs["enums"]["ImGuiStyleVar_"][4]["name"] = "ImGuiStyleVar_WindowRounding" +defs["enums"]["ImGuiStyleVar_"][4]["value"] = "3" +defs["enums"]["ImGuiStyleVar_"][5] = {} +defs["enums"]["ImGuiStyleVar_"][5]["calc_value"] = 4 +defs["enums"]["ImGuiStyleVar_"][5]["name"] = "ImGuiStyleVar_WindowBorderSize" +defs["enums"]["ImGuiStyleVar_"][5]["value"] = "4" +defs["enums"]["ImGuiStyleVar_"][6] = {} +defs["enums"]["ImGuiStyleVar_"][6]["calc_value"] = 5 +defs["enums"]["ImGuiStyleVar_"][6]["name"] = "ImGuiStyleVar_WindowMinSize" +defs["enums"]["ImGuiStyleVar_"][6]["value"] = "5" +defs["enums"]["ImGuiStyleVar_"][7] = {} +defs["enums"]["ImGuiStyleVar_"][7]["calc_value"] = 6 +defs["enums"]["ImGuiStyleVar_"][7]["name"] = "ImGuiStyleVar_WindowTitleAlign" +defs["enums"]["ImGuiStyleVar_"][7]["value"] = "6" +defs["enums"]["ImGuiStyleVar_"][8] = {} +defs["enums"]["ImGuiStyleVar_"][8]["calc_value"] = 7 +defs["enums"]["ImGuiStyleVar_"][8]["name"] = "ImGuiStyleVar_ChildRounding" +defs["enums"]["ImGuiStyleVar_"][8]["value"] = "7" +defs["enums"]["ImGuiStyleVar_"][9] = {} +defs["enums"]["ImGuiStyleVar_"][9]["calc_value"] = 8 +defs["enums"]["ImGuiStyleVar_"][9]["name"] = "ImGuiStyleVar_ChildBorderSize" +defs["enums"]["ImGuiStyleVar_"][9]["value"] = "8" +defs["enums"]["ImGuiStyleVar_"][10] = {} +defs["enums"]["ImGuiStyleVar_"][10]["calc_value"] = 9 +defs["enums"]["ImGuiStyleVar_"][10]["name"] = "ImGuiStyleVar_PopupRounding" +defs["enums"]["ImGuiStyleVar_"][10]["value"] = "9" +defs["enums"]["ImGuiStyleVar_"][11] = {} +defs["enums"]["ImGuiStyleVar_"][11]["calc_value"] = 10 +defs["enums"]["ImGuiStyleVar_"][11]["name"] = "ImGuiStyleVar_PopupBorderSize" +defs["enums"]["ImGuiStyleVar_"][11]["value"] = "10" +defs["enums"]["ImGuiStyleVar_"][12] = {} +defs["enums"]["ImGuiStyleVar_"][12]["calc_value"] = 11 +defs["enums"]["ImGuiStyleVar_"][12]["name"] = "ImGuiStyleVar_FramePadding" +defs["enums"]["ImGuiStyleVar_"][12]["value"] = "11" +defs["enums"]["ImGuiStyleVar_"][13] = {} +defs["enums"]["ImGuiStyleVar_"][13]["calc_value"] = 12 +defs["enums"]["ImGuiStyleVar_"][13]["name"] = "ImGuiStyleVar_FrameRounding" +defs["enums"]["ImGuiStyleVar_"][13]["value"] = "12" +defs["enums"]["ImGuiStyleVar_"][14] = {} +defs["enums"]["ImGuiStyleVar_"][14]["calc_value"] = 13 +defs["enums"]["ImGuiStyleVar_"][14]["name"] = "ImGuiStyleVar_FrameBorderSize" +defs["enums"]["ImGuiStyleVar_"][14]["value"] = "13" +defs["enums"]["ImGuiStyleVar_"][15] = {} +defs["enums"]["ImGuiStyleVar_"][15]["calc_value"] = 14 +defs["enums"]["ImGuiStyleVar_"][15]["name"] = "ImGuiStyleVar_ItemSpacing" +defs["enums"]["ImGuiStyleVar_"][15]["value"] = "14" +defs["enums"]["ImGuiStyleVar_"][16] = {} +defs["enums"]["ImGuiStyleVar_"][16]["calc_value"] = 15 +defs["enums"]["ImGuiStyleVar_"][16]["name"] = "ImGuiStyleVar_ItemInnerSpacing" +defs["enums"]["ImGuiStyleVar_"][16]["value"] = "15" +defs["enums"]["ImGuiStyleVar_"][17] = {} +defs["enums"]["ImGuiStyleVar_"][17]["calc_value"] = 16 +defs["enums"]["ImGuiStyleVar_"][17]["name"] = "ImGuiStyleVar_IndentSpacing" +defs["enums"]["ImGuiStyleVar_"][17]["value"] = "16" +defs["enums"]["ImGuiStyleVar_"][18] = {} +defs["enums"]["ImGuiStyleVar_"][18]["calc_value"] = 17 +defs["enums"]["ImGuiStyleVar_"][18]["name"] = "ImGuiStyleVar_CellPadding" +defs["enums"]["ImGuiStyleVar_"][18]["value"] = "17" +defs["enums"]["ImGuiStyleVar_"][19] = {} +defs["enums"]["ImGuiStyleVar_"][19]["calc_value"] = 18 +defs["enums"]["ImGuiStyleVar_"][19]["name"] = "ImGuiStyleVar_ScrollbarSize" +defs["enums"]["ImGuiStyleVar_"][19]["value"] = "18" +defs["enums"]["ImGuiStyleVar_"][20] = {} +defs["enums"]["ImGuiStyleVar_"][20]["calc_value"] = 19 +defs["enums"]["ImGuiStyleVar_"][20]["name"] = "ImGuiStyleVar_ScrollbarRounding" +defs["enums"]["ImGuiStyleVar_"][20]["value"] = "19" +defs["enums"]["ImGuiStyleVar_"][21] = {} +defs["enums"]["ImGuiStyleVar_"][21]["calc_value"] = 20 +defs["enums"]["ImGuiStyleVar_"][21]["name"] = "ImGuiStyleVar_GrabMinSize" +defs["enums"]["ImGuiStyleVar_"][21]["value"] = "20" +defs["enums"]["ImGuiStyleVar_"][22] = {} +defs["enums"]["ImGuiStyleVar_"][22]["calc_value"] = 21 +defs["enums"]["ImGuiStyleVar_"][22]["name"] = "ImGuiStyleVar_GrabRounding" +defs["enums"]["ImGuiStyleVar_"][22]["value"] = "21" +defs["enums"]["ImGuiStyleVar_"][23] = {} +defs["enums"]["ImGuiStyleVar_"][23]["calc_value"] = 22 +defs["enums"]["ImGuiStyleVar_"][23]["name"] = "ImGuiStyleVar_TabRounding" +defs["enums"]["ImGuiStyleVar_"][23]["value"] = "22" +defs["enums"]["ImGuiStyleVar_"][24] = {} +defs["enums"]["ImGuiStyleVar_"][24]["calc_value"] = 23 +defs["enums"]["ImGuiStyleVar_"][24]["name"] = "ImGuiStyleVar_ButtonTextAlign" +defs["enums"]["ImGuiStyleVar_"][24]["value"] = "23" +defs["enums"]["ImGuiStyleVar_"][25] = {} +defs["enums"]["ImGuiStyleVar_"][25]["calc_value"] = 24 +defs["enums"]["ImGuiStyleVar_"][25]["name"] = "ImGuiStyleVar_SelectableTextAlign" +defs["enums"]["ImGuiStyleVar_"][25]["value"] = "24" +defs["enums"]["ImGuiStyleVar_"][26] = {} +defs["enums"]["ImGuiStyleVar_"][26]["calc_value"] = 25 +defs["enums"]["ImGuiStyleVar_"][26]["name"] = "ImGuiStyleVar_COUNT" +defs["enums"]["ImGuiStyleVar_"][26]["value"] = "25" +defs["enums"]["ImGuiTabBarFlags_"] = {} +defs["enums"]["ImGuiTabBarFlags_"][1] = {} +defs["enums"]["ImGuiTabBarFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTabBarFlags_"][1]["name"] = "ImGuiTabBarFlags_None" +defs["enums"]["ImGuiTabBarFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTabBarFlags_"][2] = {} +defs["enums"]["ImGuiTabBarFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTabBarFlags_"][2]["name"] = "ImGuiTabBarFlags_Reorderable" +defs["enums"]["ImGuiTabBarFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTabBarFlags_"][3] = {} +defs["enums"]["ImGuiTabBarFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTabBarFlags_"][3]["name"] = "ImGuiTabBarFlags_AutoSelectNewTabs" +defs["enums"]["ImGuiTabBarFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTabBarFlags_"][4] = {} +defs["enums"]["ImGuiTabBarFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTabBarFlags_"][4]["name"] = "ImGuiTabBarFlags_TabListPopupButton" +defs["enums"]["ImGuiTabBarFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTabBarFlags_"][5] = {} +defs["enums"]["ImGuiTabBarFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTabBarFlags_"][5]["name"] = "ImGuiTabBarFlags_NoCloseWithMiddleMouseButton" +defs["enums"]["ImGuiTabBarFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTabBarFlags_"][6] = {} +defs["enums"]["ImGuiTabBarFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTabBarFlags_"][6]["name"] = "ImGuiTabBarFlags_NoTabListScrollingButtons" +defs["enums"]["ImGuiTabBarFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTabBarFlags_"][7] = {} +defs["enums"]["ImGuiTabBarFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTabBarFlags_"][7]["name"] = "ImGuiTabBarFlags_NoTooltip" +defs["enums"]["ImGuiTabBarFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTabBarFlags_"][8] = {} +defs["enums"]["ImGuiTabBarFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTabBarFlags_"][8]["name"] = "ImGuiTabBarFlags_FittingPolicyResizeDown" +defs["enums"]["ImGuiTabBarFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTabBarFlags_"][9] = {} +defs["enums"]["ImGuiTabBarFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTabBarFlags_"][9]["name"] = "ImGuiTabBarFlags_FittingPolicyScroll" +defs["enums"]["ImGuiTabBarFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTabBarFlags_"][10] = {} +defs["enums"]["ImGuiTabBarFlags_"][10]["calc_value"] = 192 +defs["enums"]["ImGuiTabBarFlags_"][10]["name"] = "ImGuiTabBarFlags_FittingPolicyMask_" +defs["enums"]["ImGuiTabBarFlags_"][10]["value"] = "ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll" +defs["enums"]["ImGuiTabBarFlags_"][11] = {} +defs["enums"]["ImGuiTabBarFlags_"][11]["calc_value"] = 64 +defs["enums"]["ImGuiTabBarFlags_"][11]["name"] = "ImGuiTabBarFlags_FittingPolicyDefault_" +defs["enums"]["ImGuiTabBarFlags_"][11]["value"] = "ImGuiTabBarFlags_FittingPolicyResizeDown" +defs["enums"]["ImGuiTabItemFlags_"] = {} +defs["enums"]["ImGuiTabItemFlags_"][1] = {} +defs["enums"]["ImGuiTabItemFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTabItemFlags_"][1]["name"] = "ImGuiTabItemFlags_None" +defs["enums"]["ImGuiTabItemFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTabItemFlags_"][2] = {} +defs["enums"]["ImGuiTabItemFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTabItemFlags_"][2]["name"] = "ImGuiTabItemFlags_UnsavedDocument" +defs["enums"]["ImGuiTabItemFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTabItemFlags_"][3] = {} +defs["enums"]["ImGuiTabItemFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTabItemFlags_"][3]["name"] = "ImGuiTabItemFlags_SetSelected" +defs["enums"]["ImGuiTabItemFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTabItemFlags_"][4] = {} +defs["enums"]["ImGuiTabItemFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTabItemFlags_"][4]["name"] = "ImGuiTabItemFlags_NoCloseWithMiddleMouseButton" +defs["enums"]["ImGuiTabItemFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTabItemFlags_"][5] = {} +defs["enums"]["ImGuiTabItemFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTabItemFlags_"][5]["name"] = "ImGuiTabItemFlags_NoPushId" +defs["enums"]["ImGuiTabItemFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTabItemFlags_"][6] = {} +defs["enums"]["ImGuiTabItemFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTabItemFlags_"][6]["name"] = "ImGuiTabItemFlags_NoTooltip" +defs["enums"]["ImGuiTabItemFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTabItemFlags_"][7] = {} +defs["enums"]["ImGuiTabItemFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTabItemFlags_"][7]["name"] = "ImGuiTabItemFlags_NoReorder" +defs["enums"]["ImGuiTabItemFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTabItemFlags_"][8] = {} +defs["enums"]["ImGuiTabItemFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTabItemFlags_"][8]["name"] = "ImGuiTabItemFlags_Leading" +defs["enums"]["ImGuiTabItemFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTabItemFlags_"][9] = {} +defs["enums"]["ImGuiTabItemFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTabItemFlags_"][9]["name"] = "ImGuiTabItemFlags_Trailing" +defs["enums"]["ImGuiTabItemFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTableBgTarget_"] = {} +defs["enums"]["ImGuiTableBgTarget_"][1] = {} +defs["enums"]["ImGuiTableBgTarget_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTableBgTarget_"][1]["name"] = "ImGuiTableBgTarget_None" +defs["enums"]["ImGuiTableBgTarget_"][1]["value"] = "0" +defs["enums"]["ImGuiTableBgTarget_"][2] = {} +defs["enums"]["ImGuiTableBgTarget_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTableBgTarget_"][2]["name"] = "ImGuiTableBgTarget_RowBg0" +defs["enums"]["ImGuiTableBgTarget_"][2]["value"] = "1" +defs["enums"]["ImGuiTableBgTarget_"][3] = {} +defs["enums"]["ImGuiTableBgTarget_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTableBgTarget_"][3]["name"] = "ImGuiTableBgTarget_RowBg1" +defs["enums"]["ImGuiTableBgTarget_"][3]["value"] = "2" +defs["enums"]["ImGuiTableBgTarget_"][4] = {} +defs["enums"]["ImGuiTableBgTarget_"][4]["calc_value"] = 3 +defs["enums"]["ImGuiTableBgTarget_"][4]["name"] = "ImGuiTableBgTarget_CellBg" +defs["enums"]["ImGuiTableBgTarget_"][4]["value"] = "3" +defs["enums"]["ImGuiTableColumnFlags_"] = {} +defs["enums"]["ImGuiTableColumnFlags_"][1] = {} +defs["enums"]["ImGuiTableColumnFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTableColumnFlags_"][1]["name"] = "ImGuiTableColumnFlags_None" +defs["enums"]["ImGuiTableColumnFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTableColumnFlags_"][2] = {} +defs["enums"]["ImGuiTableColumnFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTableColumnFlags_"][2]["name"] = "ImGuiTableColumnFlags_Disabled" +defs["enums"]["ImGuiTableColumnFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTableColumnFlags_"][3] = {} +defs["enums"]["ImGuiTableColumnFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTableColumnFlags_"][3]["name"] = "ImGuiTableColumnFlags_DefaultHide" +defs["enums"]["ImGuiTableColumnFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTableColumnFlags_"][4] = {} +defs["enums"]["ImGuiTableColumnFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTableColumnFlags_"][4]["name"] = "ImGuiTableColumnFlags_DefaultSort" +defs["enums"]["ImGuiTableColumnFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTableColumnFlags_"][5] = {} +defs["enums"]["ImGuiTableColumnFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTableColumnFlags_"][5]["name"] = "ImGuiTableColumnFlags_WidthStretch" +defs["enums"]["ImGuiTableColumnFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTableColumnFlags_"][6] = {} +defs["enums"]["ImGuiTableColumnFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTableColumnFlags_"][6]["name"] = "ImGuiTableColumnFlags_WidthFixed" +defs["enums"]["ImGuiTableColumnFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTableColumnFlags_"][7] = {} +defs["enums"]["ImGuiTableColumnFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTableColumnFlags_"][7]["name"] = "ImGuiTableColumnFlags_NoResize" +defs["enums"]["ImGuiTableColumnFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTableColumnFlags_"][8] = {} +defs["enums"]["ImGuiTableColumnFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTableColumnFlags_"][8]["name"] = "ImGuiTableColumnFlags_NoReorder" +defs["enums"]["ImGuiTableColumnFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTableColumnFlags_"][9] = {} +defs["enums"]["ImGuiTableColumnFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTableColumnFlags_"][9]["name"] = "ImGuiTableColumnFlags_NoHide" +defs["enums"]["ImGuiTableColumnFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTableColumnFlags_"][10] = {} +defs["enums"]["ImGuiTableColumnFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiTableColumnFlags_"][10]["name"] = "ImGuiTableColumnFlags_NoClip" +defs["enums"]["ImGuiTableColumnFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiTableColumnFlags_"][11] = {} +defs["enums"]["ImGuiTableColumnFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiTableColumnFlags_"][11]["name"] = "ImGuiTableColumnFlags_NoSort" +defs["enums"]["ImGuiTableColumnFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiTableColumnFlags_"][12] = {} +defs["enums"]["ImGuiTableColumnFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiTableColumnFlags_"][12]["name"] = "ImGuiTableColumnFlags_NoSortAscending" +defs["enums"]["ImGuiTableColumnFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiTableColumnFlags_"][13] = {} +defs["enums"]["ImGuiTableColumnFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiTableColumnFlags_"][13]["name"] = "ImGuiTableColumnFlags_NoSortDescending" +defs["enums"]["ImGuiTableColumnFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiTableColumnFlags_"][14] = {} +defs["enums"]["ImGuiTableColumnFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiTableColumnFlags_"][14]["name"] = "ImGuiTableColumnFlags_NoHeaderLabel" +defs["enums"]["ImGuiTableColumnFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiTableColumnFlags_"][15] = {} +defs["enums"]["ImGuiTableColumnFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiTableColumnFlags_"][15]["name"] = "ImGuiTableColumnFlags_NoHeaderWidth" +defs["enums"]["ImGuiTableColumnFlags_"][15]["value"] = "1 << 13" +defs["enums"]["ImGuiTableColumnFlags_"][16] = {} +defs["enums"]["ImGuiTableColumnFlags_"][16]["calc_value"] = 16384 +defs["enums"]["ImGuiTableColumnFlags_"][16]["name"] = "ImGuiTableColumnFlags_PreferSortAscending" +defs["enums"]["ImGuiTableColumnFlags_"][16]["value"] = "1 << 14" +defs["enums"]["ImGuiTableColumnFlags_"][17] = {} +defs["enums"]["ImGuiTableColumnFlags_"][17]["calc_value"] = 32768 +defs["enums"]["ImGuiTableColumnFlags_"][17]["name"] = "ImGuiTableColumnFlags_PreferSortDescending" +defs["enums"]["ImGuiTableColumnFlags_"][17]["value"] = "1 << 15" +defs["enums"]["ImGuiTableColumnFlags_"][18] = {} +defs["enums"]["ImGuiTableColumnFlags_"][18]["calc_value"] = 65536 +defs["enums"]["ImGuiTableColumnFlags_"][18]["name"] = "ImGuiTableColumnFlags_IndentEnable" +defs["enums"]["ImGuiTableColumnFlags_"][18]["value"] = "1 << 16" +defs["enums"]["ImGuiTableColumnFlags_"][19] = {} +defs["enums"]["ImGuiTableColumnFlags_"][19]["calc_value"] = 131072 +defs["enums"]["ImGuiTableColumnFlags_"][19]["name"] = "ImGuiTableColumnFlags_IndentDisable" +defs["enums"]["ImGuiTableColumnFlags_"][19]["value"] = "1 << 17" +defs["enums"]["ImGuiTableColumnFlags_"][20] = {} +defs["enums"]["ImGuiTableColumnFlags_"][20]["calc_value"] = 16777216 +defs["enums"]["ImGuiTableColumnFlags_"][20]["name"] = "ImGuiTableColumnFlags_IsEnabled" +defs["enums"]["ImGuiTableColumnFlags_"][20]["value"] = "1 << 24" +defs["enums"]["ImGuiTableColumnFlags_"][21] = {} +defs["enums"]["ImGuiTableColumnFlags_"][21]["calc_value"] = 33554432 +defs["enums"]["ImGuiTableColumnFlags_"][21]["name"] = "ImGuiTableColumnFlags_IsVisible" +defs["enums"]["ImGuiTableColumnFlags_"][21]["value"] = "1 << 25" +defs["enums"]["ImGuiTableColumnFlags_"][22] = {} +defs["enums"]["ImGuiTableColumnFlags_"][22]["calc_value"] = 67108864 +defs["enums"]["ImGuiTableColumnFlags_"][22]["name"] = "ImGuiTableColumnFlags_IsSorted" +defs["enums"]["ImGuiTableColumnFlags_"][22]["value"] = "1 << 26" +defs["enums"]["ImGuiTableColumnFlags_"][23] = {} +defs["enums"]["ImGuiTableColumnFlags_"][23]["calc_value"] = 134217728 +defs["enums"]["ImGuiTableColumnFlags_"][23]["name"] = "ImGuiTableColumnFlags_IsHovered" +defs["enums"]["ImGuiTableColumnFlags_"][23]["value"] = "1 << 27" +defs["enums"]["ImGuiTableColumnFlags_"][24] = {} +defs["enums"]["ImGuiTableColumnFlags_"][24]["calc_value"] = 24 +defs["enums"]["ImGuiTableColumnFlags_"][24]["name"] = "ImGuiTableColumnFlags_WidthMask_" +defs["enums"]["ImGuiTableColumnFlags_"][24]["value"] = "ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed" +defs["enums"]["ImGuiTableColumnFlags_"][25] = {} +defs["enums"]["ImGuiTableColumnFlags_"][25]["calc_value"] = 196608 +defs["enums"]["ImGuiTableColumnFlags_"][25]["name"] = "ImGuiTableColumnFlags_IndentMask_" +defs["enums"]["ImGuiTableColumnFlags_"][25]["value"] = "ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable" +defs["enums"]["ImGuiTableColumnFlags_"][26] = {} +defs["enums"]["ImGuiTableColumnFlags_"][26]["calc_value"] = 251658240 +defs["enums"]["ImGuiTableColumnFlags_"][26]["name"] = "ImGuiTableColumnFlags_StatusMask_" +defs["enums"]["ImGuiTableColumnFlags_"][26]["value"] = "ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered" +defs["enums"]["ImGuiTableColumnFlags_"][27] = {} +defs["enums"]["ImGuiTableColumnFlags_"][27]["calc_value"] = 1073741824 +defs["enums"]["ImGuiTableColumnFlags_"][27]["name"] = "ImGuiTableColumnFlags_NoDirectResize_" +defs["enums"]["ImGuiTableColumnFlags_"][27]["value"] = "1 << 30" +defs["enums"]["ImGuiTableFlags_"] = {} +defs["enums"]["ImGuiTableFlags_"][1] = {} +defs["enums"]["ImGuiTableFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTableFlags_"][1]["name"] = "ImGuiTableFlags_None" +defs["enums"]["ImGuiTableFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTableFlags_"][2] = {} +defs["enums"]["ImGuiTableFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTableFlags_"][2]["name"] = "ImGuiTableFlags_Resizable" +defs["enums"]["ImGuiTableFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTableFlags_"][3] = {} +defs["enums"]["ImGuiTableFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTableFlags_"][3]["name"] = "ImGuiTableFlags_Reorderable" +defs["enums"]["ImGuiTableFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTableFlags_"][4] = {} +defs["enums"]["ImGuiTableFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTableFlags_"][4]["name"] = "ImGuiTableFlags_Hideable" +defs["enums"]["ImGuiTableFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTableFlags_"][5] = {} +defs["enums"]["ImGuiTableFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTableFlags_"][5]["name"] = "ImGuiTableFlags_Sortable" +defs["enums"]["ImGuiTableFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTableFlags_"][6] = {} +defs["enums"]["ImGuiTableFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTableFlags_"][6]["name"] = "ImGuiTableFlags_NoSavedSettings" +defs["enums"]["ImGuiTableFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTableFlags_"][7] = {} +defs["enums"]["ImGuiTableFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTableFlags_"][7]["name"] = "ImGuiTableFlags_ContextMenuInBody" +defs["enums"]["ImGuiTableFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTableFlags_"][8] = {} +defs["enums"]["ImGuiTableFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTableFlags_"][8]["name"] = "ImGuiTableFlags_RowBg" +defs["enums"]["ImGuiTableFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTableFlags_"][9] = {} +defs["enums"]["ImGuiTableFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTableFlags_"][9]["name"] = "ImGuiTableFlags_BordersInnerH" +defs["enums"]["ImGuiTableFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTableFlags_"][10] = {} +defs["enums"]["ImGuiTableFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiTableFlags_"][10]["name"] = "ImGuiTableFlags_BordersOuterH" +defs["enums"]["ImGuiTableFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiTableFlags_"][11] = {} +defs["enums"]["ImGuiTableFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiTableFlags_"][11]["name"] = "ImGuiTableFlags_BordersInnerV" +defs["enums"]["ImGuiTableFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiTableFlags_"][12] = {} +defs["enums"]["ImGuiTableFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiTableFlags_"][12]["name"] = "ImGuiTableFlags_BordersOuterV" +defs["enums"]["ImGuiTableFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiTableFlags_"][13] = {} +defs["enums"]["ImGuiTableFlags_"][13]["calc_value"] = 384 +defs["enums"]["ImGuiTableFlags_"][13]["name"] = "ImGuiTableFlags_BordersH" +defs["enums"]["ImGuiTableFlags_"][13]["value"] = "ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH" +defs["enums"]["ImGuiTableFlags_"][14] = {} +defs["enums"]["ImGuiTableFlags_"][14]["calc_value"] = 1536 +defs["enums"]["ImGuiTableFlags_"][14]["name"] = "ImGuiTableFlags_BordersV" +defs["enums"]["ImGuiTableFlags_"][14]["value"] = "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV" +defs["enums"]["ImGuiTableFlags_"][15] = {} +defs["enums"]["ImGuiTableFlags_"][15]["calc_value"] = 640 +defs["enums"]["ImGuiTableFlags_"][15]["name"] = "ImGuiTableFlags_BordersInner" +defs["enums"]["ImGuiTableFlags_"][15]["value"] = "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH" +defs["enums"]["ImGuiTableFlags_"][16] = {} +defs["enums"]["ImGuiTableFlags_"][16]["calc_value"] = 1280 +defs["enums"]["ImGuiTableFlags_"][16]["name"] = "ImGuiTableFlags_BordersOuter" +defs["enums"]["ImGuiTableFlags_"][16]["value"] = "ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH" +defs["enums"]["ImGuiTableFlags_"][17] = {} +defs["enums"]["ImGuiTableFlags_"][17]["calc_value"] = 1920 +defs["enums"]["ImGuiTableFlags_"][17]["name"] = "ImGuiTableFlags_Borders" +defs["enums"]["ImGuiTableFlags_"][17]["value"] = "ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter" +defs["enums"]["ImGuiTableFlags_"][18] = {} +defs["enums"]["ImGuiTableFlags_"][18]["calc_value"] = 2048 +defs["enums"]["ImGuiTableFlags_"][18]["name"] = "ImGuiTableFlags_NoBordersInBody" +defs["enums"]["ImGuiTableFlags_"][18]["value"] = "1 << 11" +defs["enums"]["ImGuiTableFlags_"][19] = {} +defs["enums"]["ImGuiTableFlags_"][19]["calc_value"] = 4096 +defs["enums"]["ImGuiTableFlags_"][19]["name"] = "ImGuiTableFlags_NoBordersInBodyUntilResize" +defs["enums"]["ImGuiTableFlags_"][19]["value"] = "1 << 12" +defs["enums"]["ImGuiTableFlags_"][20] = {} +defs["enums"]["ImGuiTableFlags_"][20]["calc_value"] = 8192 +defs["enums"]["ImGuiTableFlags_"][20]["name"] = "ImGuiTableFlags_SizingFixedFit" +defs["enums"]["ImGuiTableFlags_"][20]["value"] = "1 << 13" +defs["enums"]["ImGuiTableFlags_"][21] = {} +defs["enums"]["ImGuiTableFlags_"][21]["calc_value"] = 16384 +defs["enums"]["ImGuiTableFlags_"][21]["name"] = "ImGuiTableFlags_SizingFixedSame" +defs["enums"]["ImGuiTableFlags_"][21]["value"] = "2 << 13" +defs["enums"]["ImGuiTableFlags_"][22] = {} +defs["enums"]["ImGuiTableFlags_"][22]["calc_value"] = 24576 +defs["enums"]["ImGuiTableFlags_"][22]["name"] = "ImGuiTableFlags_SizingStretchProp" +defs["enums"]["ImGuiTableFlags_"][22]["value"] = "3 << 13" +defs["enums"]["ImGuiTableFlags_"][23] = {} +defs["enums"]["ImGuiTableFlags_"][23]["calc_value"] = 32768 +defs["enums"]["ImGuiTableFlags_"][23]["name"] = "ImGuiTableFlags_SizingStretchSame" +defs["enums"]["ImGuiTableFlags_"][23]["value"] = "4 << 13" +defs["enums"]["ImGuiTableFlags_"][24] = {} +defs["enums"]["ImGuiTableFlags_"][24]["calc_value"] = 65536 +defs["enums"]["ImGuiTableFlags_"][24]["name"] = "ImGuiTableFlags_NoHostExtendX" +defs["enums"]["ImGuiTableFlags_"][24]["value"] = "1 << 16" +defs["enums"]["ImGuiTableFlags_"][25] = {} +defs["enums"]["ImGuiTableFlags_"][25]["calc_value"] = 131072 +defs["enums"]["ImGuiTableFlags_"][25]["name"] = "ImGuiTableFlags_NoHostExtendY" +defs["enums"]["ImGuiTableFlags_"][25]["value"] = "1 << 17" +defs["enums"]["ImGuiTableFlags_"][26] = {} +defs["enums"]["ImGuiTableFlags_"][26]["calc_value"] = 262144 +defs["enums"]["ImGuiTableFlags_"][26]["name"] = "ImGuiTableFlags_NoKeepColumnsVisible" +defs["enums"]["ImGuiTableFlags_"][26]["value"] = "1 << 18" +defs["enums"]["ImGuiTableFlags_"][27] = {} +defs["enums"]["ImGuiTableFlags_"][27]["calc_value"] = 524288 +defs["enums"]["ImGuiTableFlags_"][27]["name"] = "ImGuiTableFlags_PreciseWidths" +defs["enums"]["ImGuiTableFlags_"][27]["value"] = "1 << 19" +defs["enums"]["ImGuiTableFlags_"][28] = {} +defs["enums"]["ImGuiTableFlags_"][28]["calc_value"] = 1048576 +defs["enums"]["ImGuiTableFlags_"][28]["name"] = "ImGuiTableFlags_NoClip" +defs["enums"]["ImGuiTableFlags_"][28]["value"] = "1 << 20" +defs["enums"]["ImGuiTableFlags_"][29] = {} +defs["enums"]["ImGuiTableFlags_"][29]["calc_value"] = 2097152 +defs["enums"]["ImGuiTableFlags_"][29]["name"] = "ImGuiTableFlags_PadOuterX" +defs["enums"]["ImGuiTableFlags_"][29]["value"] = "1 << 21" +defs["enums"]["ImGuiTableFlags_"][30] = {} +defs["enums"]["ImGuiTableFlags_"][30]["calc_value"] = 4194304 +defs["enums"]["ImGuiTableFlags_"][30]["name"] = "ImGuiTableFlags_NoPadOuterX" +defs["enums"]["ImGuiTableFlags_"][30]["value"] = "1 << 22" +defs["enums"]["ImGuiTableFlags_"][31] = {} +defs["enums"]["ImGuiTableFlags_"][31]["calc_value"] = 8388608 +defs["enums"]["ImGuiTableFlags_"][31]["name"] = "ImGuiTableFlags_NoPadInnerX" +defs["enums"]["ImGuiTableFlags_"][31]["value"] = "1 << 23" +defs["enums"]["ImGuiTableFlags_"][32] = {} +defs["enums"]["ImGuiTableFlags_"][32]["calc_value"] = 16777216 +defs["enums"]["ImGuiTableFlags_"][32]["name"] = "ImGuiTableFlags_ScrollX" +defs["enums"]["ImGuiTableFlags_"][32]["value"] = "1 << 24" +defs["enums"]["ImGuiTableFlags_"][33] = {} +defs["enums"]["ImGuiTableFlags_"][33]["calc_value"] = 33554432 +defs["enums"]["ImGuiTableFlags_"][33]["name"] = "ImGuiTableFlags_ScrollY" +defs["enums"]["ImGuiTableFlags_"][33]["value"] = "1 << 25" +defs["enums"]["ImGuiTableFlags_"][34] = {} +defs["enums"]["ImGuiTableFlags_"][34]["calc_value"] = 67108864 +defs["enums"]["ImGuiTableFlags_"][34]["name"] = "ImGuiTableFlags_SortMulti" +defs["enums"]["ImGuiTableFlags_"][34]["value"] = "1 << 26" +defs["enums"]["ImGuiTableFlags_"][35] = {} +defs["enums"]["ImGuiTableFlags_"][35]["calc_value"] = 134217728 +defs["enums"]["ImGuiTableFlags_"][35]["name"] = "ImGuiTableFlags_SortTristate" +defs["enums"]["ImGuiTableFlags_"][35]["value"] = "1 << 27" +defs["enums"]["ImGuiTableFlags_"][36] = {} +defs["enums"]["ImGuiTableFlags_"][36]["calc_value"] = 57344 +defs["enums"]["ImGuiTableFlags_"][36]["name"] = "ImGuiTableFlags_SizingMask_" +defs["enums"]["ImGuiTableFlags_"][36]["value"] = "ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame" +defs["enums"]["ImGuiTableRowFlags_"] = {} +defs["enums"]["ImGuiTableRowFlags_"][1] = {} +defs["enums"]["ImGuiTableRowFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTableRowFlags_"][1]["name"] = "ImGuiTableRowFlags_None" +defs["enums"]["ImGuiTableRowFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTableRowFlags_"][2] = {} +defs["enums"]["ImGuiTableRowFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTableRowFlags_"][2]["name"] = "ImGuiTableRowFlags_Headers" +defs["enums"]["ImGuiTableRowFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTreeNodeFlags_"] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][1] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTreeNodeFlags_"][1]["name"] = "ImGuiTreeNodeFlags_None" +defs["enums"]["ImGuiTreeNodeFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTreeNodeFlags_"][2] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTreeNodeFlags_"][2]["name"] = "ImGuiTreeNodeFlags_Selected" +defs["enums"]["ImGuiTreeNodeFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTreeNodeFlags_"][3] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTreeNodeFlags_"][3]["name"] = "ImGuiTreeNodeFlags_Framed" +defs["enums"]["ImGuiTreeNodeFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTreeNodeFlags_"][4] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTreeNodeFlags_"][4]["name"] = "ImGuiTreeNodeFlags_AllowItemOverlap" +defs["enums"]["ImGuiTreeNodeFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTreeNodeFlags_"][5] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTreeNodeFlags_"][5]["name"] = "ImGuiTreeNodeFlags_NoTreePushOnOpen" +defs["enums"]["ImGuiTreeNodeFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTreeNodeFlags_"][6] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTreeNodeFlags_"][6]["name"] = "ImGuiTreeNodeFlags_NoAutoOpenOnLog" +defs["enums"]["ImGuiTreeNodeFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTreeNodeFlags_"][7] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTreeNodeFlags_"][7]["name"] = "ImGuiTreeNodeFlags_DefaultOpen" +defs["enums"]["ImGuiTreeNodeFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTreeNodeFlags_"][8] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTreeNodeFlags_"][8]["name"] = "ImGuiTreeNodeFlags_OpenOnDoubleClick" +defs["enums"]["ImGuiTreeNodeFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTreeNodeFlags_"][9] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTreeNodeFlags_"][9]["name"] = "ImGuiTreeNodeFlags_OpenOnArrow" +defs["enums"]["ImGuiTreeNodeFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTreeNodeFlags_"][10] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiTreeNodeFlags_"][10]["name"] = "ImGuiTreeNodeFlags_Leaf" +defs["enums"]["ImGuiTreeNodeFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiTreeNodeFlags_"][11] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiTreeNodeFlags_"][11]["name"] = "ImGuiTreeNodeFlags_Bullet" +defs["enums"]["ImGuiTreeNodeFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiTreeNodeFlags_"][12] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiTreeNodeFlags_"][12]["name"] = "ImGuiTreeNodeFlags_FramePadding" +defs["enums"]["ImGuiTreeNodeFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiTreeNodeFlags_"][13] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiTreeNodeFlags_"][13]["name"] = "ImGuiTreeNodeFlags_SpanAvailWidth" +defs["enums"]["ImGuiTreeNodeFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiTreeNodeFlags_"][14] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiTreeNodeFlags_"][14]["name"] = "ImGuiTreeNodeFlags_SpanFullWidth" +defs["enums"]["ImGuiTreeNodeFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiTreeNodeFlags_"][15] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiTreeNodeFlags_"][15]["name"] = "ImGuiTreeNodeFlags_NavLeftJumpsBackHere" +defs["enums"]["ImGuiTreeNodeFlags_"][15]["value"] = "1 << 13" +defs["enums"]["ImGuiTreeNodeFlags_"][16] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][16]["calc_value"] = 26 +defs["enums"]["ImGuiTreeNodeFlags_"][16]["name"] = "ImGuiTreeNodeFlags_CollapsingHeader" +defs["enums"]["ImGuiTreeNodeFlags_"][16]["value"] = "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog" +defs["enums"]["ImGuiViewportFlags_"] = {} +defs["enums"]["ImGuiViewportFlags_"][1] = {} +defs["enums"]["ImGuiViewportFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiViewportFlags_"][1]["name"] = "ImGuiViewportFlags_None" +defs["enums"]["ImGuiViewportFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiViewportFlags_"][2] = {} +defs["enums"]["ImGuiViewportFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiViewportFlags_"][2]["name"] = "ImGuiViewportFlags_IsPlatformWindow" +defs["enums"]["ImGuiViewportFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiViewportFlags_"][3] = {} +defs["enums"]["ImGuiViewportFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiViewportFlags_"][3]["name"] = "ImGuiViewportFlags_IsPlatformMonitor" +defs["enums"]["ImGuiViewportFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiViewportFlags_"][4] = {} +defs["enums"]["ImGuiViewportFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiViewportFlags_"][4]["name"] = "ImGuiViewportFlags_OwnedByApp" +defs["enums"]["ImGuiViewportFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiViewportFlags_"][5] = {} +defs["enums"]["ImGuiViewportFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiViewportFlags_"][5]["name"] = "ImGuiViewportFlags_NoDecoration" +defs["enums"]["ImGuiViewportFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiViewportFlags_"][6] = {} +defs["enums"]["ImGuiViewportFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiViewportFlags_"][6]["name"] = "ImGuiViewportFlags_NoTaskBarIcon" +defs["enums"]["ImGuiViewportFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiViewportFlags_"][7] = {} +defs["enums"]["ImGuiViewportFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiViewportFlags_"][7]["name"] = "ImGuiViewportFlags_NoFocusOnAppearing" +defs["enums"]["ImGuiViewportFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiViewportFlags_"][8] = {} +defs["enums"]["ImGuiViewportFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiViewportFlags_"][8]["name"] = "ImGuiViewportFlags_NoFocusOnClick" +defs["enums"]["ImGuiViewportFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiViewportFlags_"][9] = {} +defs["enums"]["ImGuiViewportFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiViewportFlags_"][9]["name"] = "ImGuiViewportFlags_NoInputs" +defs["enums"]["ImGuiViewportFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiViewportFlags_"][10] = {} +defs["enums"]["ImGuiViewportFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiViewportFlags_"][10]["name"] = "ImGuiViewportFlags_NoRendererClear" +defs["enums"]["ImGuiViewportFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiViewportFlags_"][11] = {} +defs["enums"]["ImGuiViewportFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiViewportFlags_"][11]["name"] = "ImGuiViewportFlags_TopMost" +defs["enums"]["ImGuiViewportFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiViewportFlags_"][12] = {} +defs["enums"]["ImGuiViewportFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiViewportFlags_"][12]["name"] = "ImGuiViewportFlags_Minimized" +defs["enums"]["ImGuiViewportFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiViewportFlags_"][13] = {} +defs["enums"]["ImGuiViewportFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiViewportFlags_"][13]["name"] = "ImGuiViewportFlags_NoAutoMerge" +defs["enums"]["ImGuiViewportFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiViewportFlags_"][14] = {} +defs["enums"]["ImGuiViewportFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiViewportFlags_"][14]["name"] = "ImGuiViewportFlags_CanHostOtherWindows" +defs["enums"]["ImGuiViewportFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiWindowFlags_"] = {} +defs["enums"]["ImGuiWindowFlags_"][1] = {} +defs["enums"]["ImGuiWindowFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiWindowFlags_"][1]["name"] = "ImGuiWindowFlags_None" +defs["enums"]["ImGuiWindowFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiWindowFlags_"][2] = {} +defs["enums"]["ImGuiWindowFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiWindowFlags_"][2]["name"] = "ImGuiWindowFlags_NoTitleBar" +defs["enums"]["ImGuiWindowFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiWindowFlags_"][3] = {} +defs["enums"]["ImGuiWindowFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiWindowFlags_"][3]["name"] = "ImGuiWindowFlags_NoResize" +defs["enums"]["ImGuiWindowFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiWindowFlags_"][4] = {} +defs["enums"]["ImGuiWindowFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiWindowFlags_"][4]["name"] = "ImGuiWindowFlags_NoMove" +defs["enums"]["ImGuiWindowFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiWindowFlags_"][5] = {} +defs["enums"]["ImGuiWindowFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiWindowFlags_"][5]["name"] = "ImGuiWindowFlags_NoScrollbar" +defs["enums"]["ImGuiWindowFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiWindowFlags_"][6] = {} +defs["enums"]["ImGuiWindowFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiWindowFlags_"][6]["name"] = "ImGuiWindowFlags_NoScrollWithMouse" +defs["enums"]["ImGuiWindowFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiWindowFlags_"][7] = {} +defs["enums"]["ImGuiWindowFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiWindowFlags_"][7]["name"] = "ImGuiWindowFlags_NoCollapse" +defs["enums"]["ImGuiWindowFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiWindowFlags_"][8] = {} +defs["enums"]["ImGuiWindowFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiWindowFlags_"][8]["name"] = "ImGuiWindowFlags_AlwaysAutoResize" +defs["enums"]["ImGuiWindowFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiWindowFlags_"][9] = {} +defs["enums"]["ImGuiWindowFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiWindowFlags_"][9]["name"] = "ImGuiWindowFlags_NoBackground" +defs["enums"]["ImGuiWindowFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiWindowFlags_"][10] = {} +defs["enums"]["ImGuiWindowFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiWindowFlags_"][10]["name"] = "ImGuiWindowFlags_NoSavedSettings" +defs["enums"]["ImGuiWindowFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiWindowFlags_"][11] = {} +defs["enums"]["ImGuiWindowFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiWindowFlags_"][11]["name"] = "ImGuiWindowFlags_NoMouseInputs" +defs["enums"]["ImGuiWindowFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiWindowFlags_"][12] = {} +defs["enums"]["ImGuiWindowFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiWindowFlags_"][12]["name"] = "ImGuiWindowFlags_MenuBar" +defs["enums"]["ImGuiWindowFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiWindowFlags_"][13] = {} +defs["enums"]["ImGuiWindowFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiWindowFlags_"][13]["name"] = "ImGuiWindowFlags_HorizontalScrollbar" +defs["enums"]["ImGuiWindowFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiWindowFlags_"][14] = {} +defs["enums"]["ImGuiWindowFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiWindowFlags_"][14]["name"] = "ImGuiWindowFlags_NoFocusOnAppearing" +defs["enums"]["ImGuiWindowFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiWindowFlags_"][15] = {} +defs["enums"]["ImGuiWindowFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiWindowFlags_"][15]["name"] = "ImGuiWindowFlags_NoBringToFrontOnFocus" +defs["enums"]["ImGuiWindowFlags_"][15]["value"] = "1 << 13" +defs["enums"]["ImGuiWindowFlags_"][16] = {} +defs["enums"]["ImGuiWindowFlags_"][16]["calc_value"] = 16384 +defs["enums"]["ImGuiWindowFlags_"][16]["name"] = "ImGuiWindowFlags_AlwaysVerticalScrollbar" +defs["enums"]["ImGuiWindowFlags_"][16]["value"] = "1 << 14" +defs["enums"]["ImGuiWindowFlags_"][17] = {} +defs["enums"]["ImGuiWindowFlags_"][17]["calc_value"] = 32768 +defs["enums"]["ImGuiWindowFlags_"][17]["name"] = "ImGuiWindowFlags_AlwaysHorizontalScrollbar" +defs["enums"]["ImGuiWindowFlags_"][17]["value"] = "1<< 15" +defs["enums"]["ImGuiWindowFlags_"][18] = {} +defs["enums"]["ImGuiWindowFlags_"][18]["calc_value"] = 65536 +defs["enums"]["ImGuiWindowFlags_"][18]["name"] = "ImGuiWindowFlags_AlwaysUseWindowPadding" +defs["enums"]["ImGuiWindowFlags_"][18]["value"] = "1 << 16" +defs["enums"]["ImGuiWindowFlags_"][19] = {} +defs["enums"]["ImGuiWindowFlags_"][19]["calc_value"] = 262144 +defs["enums"]["ImGuiWindowFlags_"][19]["name"] = "ImGuiWindowFlags_NoNavInputs" +defs["enums"]["ImGuiWindowFlags_"][19]["value"] = "1 << 18" +defs["enums"]["ImGuiWindowFlags_"][20] = {} +defs["enums"]["ImGuiWindowFlags_"][20]["calc_value"] = 524288 +defs["enums"]["ImGuiWindowFlags_"][20]["name"] = "ImGuiWindowFlags_NoNavFocus" +defs["enums"]["ImGuiWindowFlags_"][20]["value"] = "1 << 19" +defs["enums"]["ImGuiWindowFlags_"][21] = {} +defs["enums"]["ImGuiWindowFlags_"][21]["calc_value"] = 1048576 +defs["enums"]["ImGuiWindowFlags_"][21]["name"] = "ImGuiWindowFlags_UnsavedDocument" +defs["enums"]["ImGuiWindowFlags_"][21]["value"] = "1 << 20" +defs["enums"]["ImGuiWindowFlags_"][22] = {} +defs["enums"]["ImGuiWindowFlags_"][22]["calc_value"] = 2097152 +defs["enums"]["ImGuiWindowFlags_"][22]["name"] = "ImGuiWindowFlags_NoDocking" +defs["enums"]["ImGuiWindowFlags_"][22]["value"] = "1 << 21" +defs["enums"]["ImGuiWindowFlags_"][23] = {} +defs["enums"]["ImGuiWindowFlags_"][23]["calc_value"] = 786432 +defs["enums"]["ImGuiWindowFlags_"][23]["name"] = "ImGuiWindowFlags_NoNav" +defs["enums"]["ImGuiWindowFlags_"][23]["value"] = "ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" +defs["enums"]["ImGuiWindowFlags_"][24] = {} +defs["enums"]["ImGuiWindowFlags_"][24]["calc_value"] = 43 +defs["enums"]["ImGuiWindowFlags_"][24]["name"] = "ImGuiWindowFlags_NoDecoration" +defs["enums"]["ImGuiWindowFlags_"][24]["value"] = "ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse" +defs["enums"]["ImGuiWindowFlags_"][25] = {} +defs["enums"]["ImGuiWindowFlags_"][25]["calc_value"] = 786944 +defs["enums"]["ImGuiWindowFlags_"][25]["name"] = "ImGuiWindowFlags_NoInputs" +defs["enums"]["ImGuiWindowFlags_"][25]["value"] = "ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" +defs["enums"]["ImGuiWindowFlags_"][26] = {} +defs["enums"]["ImGuiWindowFlags_"][26]["calc_value"] = 8388608 +defs["enums"]["ImGuiWindowFlags_"][26]["name"] = "ImGuiWindowFlags_NavFlattened" +defs["enums"]["ImGuiWindowFlags_"][26]["value"] = "1 << 23" +defs["enums"]["ImGuiWindowFlags_"][27] = {} +defs["enums"]["ImGuiWindowFlags_"][27]["calc_value"] = 16777216 +defs["enums"]["ImGuiWindowFlags_"][27]["name"] = "ImGuiWindowFlags_ChildWindow" +defs["enums"]["ImGuiWindowFlags_"][27]["value"] = "1 << 24" +defs["enums"]["ImGuiWindowFlags_"][28] = {} +defs["enums"]["ImGuiWindowFlags_"][28]["calc_value"] = 33554432 +defs["enums"]["ImGuiWindowFlags_"][28]["name"] = "ImGuiWindowFlags_Tooltip" +defs["enums"]["ImGuiWindowFlags_"][28]["value"] = "1 << 25" +defs["enums"]["ImGuiWindowFlags_"][29] = {} +defs["enums"]["ImGuiWindowFlags_"][29]["calc_value"] = 67108864 +defs["enums"]["ImGuiWindowFlags_"][29]["name"] = "ImGuiWindowFlags_Popup" +defs["enums"]["ImGuiWindowFlags_"][29]["value"] = "1 << 26" +defs["enums"]["ImGuiWindowFlags_"][30] = {} +defs["enums"]["ImGuiWindowFlags_"][30]["calc_value"] = 134217728 +defs["enums"]["ImGuiWindowFlags_"][30]["name"] = "ImGuiWindowFlags_Modal" +defs["enums"]["ImGuiWindowFlags_"][30]["value"] = "1 << 27" +defs["enums"]["ImGuiWindowFlags_"][31] = {} +defs["enums"]["ImGuiWindowFlags_"][31]["calc_value"] = 268435456 +defs["enums"]["ImGuiWindowFlags_"][31]["name"] = "ImGuiWindowFlags_ChildMenu" +defs["enums"]["ImGuiWindowFlags_"][31]["value"] = "1 << 28" +defs["enums"]["ImGuiWindowFlags_"][32] = {} +defs["enums"]["ImGuiWindowFlags_"][32]["calc_value"] = 536870912 +defs["enums"]["ImGuiWindowFlags_"][32]["name"] = "ImGuiWindowFlags_DockNodeHost" +defs["enums"]["ImGuiWindowFlags_"][32]["value"] = "1 << 29" +defs["enumtypes"] = {} +defs["enumtypes"]["ImGuiKey"] = "int" +defs["locations"] = {} +defs["locations"]["ImColor"] = "imgui:2458" +defs["locations"]["ImDrawChannel"] = "imgui:2548" +defs["locations"]["ImDrawCmd"] = "imgui:2507" +defs["locations"]["ImDrawCmdHeader"] = "imgui:2540" +defs["locations"]["ImDrawData"] = "imgui:2740" +defs["locations"]["ImDrawFlags_"] = "imgui:2574" +defs["locations"]["ImDrawList"] = "imgui:2612" +defs["locations"]["ImDrawListFlags_"] = "imgui:2594" +defs["locations"]["ImDrawListSplitter"] = "imgui:2557" +defs["locations"]["ImDrawVert"] = "imgui:2525" +defs["locations"]["ImFont"] = "imgui:2959" +defs["locations"]["ImFontAtlas"] = "imgui:2857" +defs["locations"]["ImFontAtlasCustomRect"] = "imgui:2819" +defs["locations"]["ImFontAtlasFlags_"] = "imgui:2832" +defs["locations"]["ImFontConfig"] = "imgui:2763" +defs["locations"]["ImFontGlyph"] = "imgui:2792" +defs["locations"]["ImFontGlyphRangesBuilder"] = "imgui:2804" +defs["locations"]["ImGuiBackendFlags_"] = "imgui:1579" +defs["locations"]["ImGuiButtonFlags_"] = "imgui:1693" +defs["locations"]["ImGuiCol_"] = "imgui:1594" +defs["locations"]["ImGuiColorEditFlags_"] = "imgui:1706" +defs["locations"]["ImGuiComboFlags_"] = "imgui:1124" +defs["locations"]["ImGuiCond_"] = "imgui:1797" +defs["locations"]["ImGuiConfigFlags_"] = "imgui:1554" +defs["locations"]["ImGuiDataType_"] = "imgui:1376" +defs["locations"]["ImGuiDir_"] = "imgui:1392" +defs["locations"]["ImGuiDockNodeFlags_"] = "imgui:1341" +defs["locations"]["ImGuiDragDropFlags_"] = "imgui:1354" +defs["locations"]["ImGuiFocusedFlags_"] = "imgui:1301" +defs["locations"]["ImGuiFreeTypeBuilderFlags"] = "imgui_freetype:19" +defs["locations"]["ImGuiHoveredFlags_"] = "imgui:1315" +defs["locations"]["ImGuiIO"] = "imgui:1974" +defs["locations"]["ImGuiInputTextCallbackData"] = "imgui:2162" +defs["locations"]["ImGuiInputTextFlags_"] = "imgui:1036" +defs["locations"]["ImGuiKey"] = "imgui:1413" +defs["locations"]["ImGuiKeyData"] = "imgui:1966" +defs["locations"]["ImGuiListClipper"] = "imgui:2407" +defs["locations"]["ImGuiMouseButton_"] = "imgui:1769" +defs["locations"]["ImGuiMouseCursor_"] = "imgui:1779" +defs["locations"]["ImGuiNavInput"] = "imgui:1545" +defs["locations"]["ImGuiOnceUponAFrame"] = "imgui:2282" +defs["locations"]["ImGuiPayload"] = "imgui:2223" +defs["locations"]["ImGuiPlatformIO"] = "imgui:3124" +defs["locations"]["ImGuiPlatformImeData"] = "imgui:3196" +defs["locations"]["ImGuiPlatformMonitor"] = "imgui:3187" +defs["locations"]["ImGuiPopupFlags_"] = "imgui:1097" +defs["locations"]["ImGuiSelectableFlags_"] = "imgui:1113" +defs["locations"]["ImGuiSizeCallbackData"] = "imgui:2193" +defs["locations"]["ImGuiSliderFlags_"] = "imgui:1752" +defs["locations"]["ImGuiSortDirection_"] = "imgui:1403" +defs["locations"]["ImGuiStorage"] = "imgui:2344" +defs["locations"]["ImGuiStoragePair"] = "imgui:2347" +defs["locations"]["ImGuiStyle"] = "imgui:1909" +defs["locations"]["ImGuiStyleVar_"] = "imgui:1661" +defs["locations"]["ImGuiTabBarFlags_"] = "imgui:1138" +defs["locations"]["ImGuiTabItemFlags_"] = "imgui:1154" +defs["locations"]["ImGuiTableBgTarget_"] = "imgui:1292" +defs["locations"]["ImGuiTableColumnFlags_"] = "imgui:1240" +defs["locations"]["ImGuiTableColumnSortSpecs"] = "imgui:2245" +defs["locations"]["ImGuiTableFlags_"] = "imgui:1189" +defs["locations"]["ImGuiTableRowFlags_"] = "imgui:1277" +defs["locations"]["ImGuiTableSortSpecs"] = "imgui:2259" +defs["locations"]["ImGuiTextBuffer"] = "imgui:2317" +defs["locations"]["ImGuiTextFilter"] = "imgui:2290" +defs["locations"]["ImGuiTextRange"] = "imgui:2300" +defs["locations"]["ImGuiTreeNodeFlags_"] = "imgui:1068" +defs["locations"]["ImGuiViewport"] = "imgui:3040" +defs["locations"]["ImGuiViewportFlags_"] = "imgui:3015" +defs["locations"]["ImGuiWindowClass"] = "imgui:2208" +defs["locations"]["ImGuiWindowFlags_"] = "imgui:995" +defs["locations"]["ImVec2"] = "imgui:259" +defs["locations"]["ImVec4"] = "imgui:272" +defs["structs"] = {} +defs["structs"]["ImColor"] = {} +defs["structs"]["ImColor"][1] = {} +defs["structs"]["ImColor"][1]["name"] = "Value" +defs["structs"]["ImColor"][1]["type"] = "ImVec4" +defs["structs"]["ImDrawChannel"] = {} +defs["structs"]["ImDrawChannel"][1] = {} +defs["structs"]["ImDrawChannel"][1]["name"] = "_CmdBuffer" +defs["structs"]["ImDrawChannel"][1]["template_type"] = "ImDrawCmd" +defs["structs"]["ImDrawChannel"][1]["type"] = "ImVector_ImDrawCmd" +defs["structs"]["ImDrawChannel"][2] = {} +defs["structs"]["ImDrawChannel"][2]["name"] = "_IdxBuffer" +defs["structs"]["ImDrawChannel"][2]["template_type"] = "ImDrawIdx" +defs["structs"]["ImDrawChannel"][2]["type"] = "ImVector_ImDrawIdx" +defs["structs"]["ImDrawCmd"] = {} +defs["structs"]["ImDrawCmd"][1] = {} +defs["structs"]["ImDrawCmd"][1]["name"] = "ClipRect" +defs["structs"]["ImDrawCmd"][1]["type"] = "ImVec4" +defs["structs"]["ImDrawCmd"][2] = {} +defs["structs"]["ImDrawCmd"][2]["name"] = "TextureId" +defs["structs"]["ImDrawCmd"][2]["type"] = "ImTextureID" +defs["structs"]["ImDrawCmd"][3] = {} +defs["structs"]["ImDrawCmd"][3]["name"] = "VtxOffset" +defs["structs"]["ImDrawCmd"][3]["type"] = "unsigned int" +defs["structs"]["ImDrawCmd"][4] = {} +defs["structs"]["ImDrawCmd"][4]["name"] = "IdxOffset" +defs["structs"]["ImDrawCmd"][4]["type"] = "unsigned int" +defs["structs"]["ImDrawCmd"][5] = {} +defs["structs"]["ImDrawCmd"][5]["name"] = "ElemCount" +defs["structs"]["ImDrawCmd"][5]["type"] = "unsigned int" +defs["structs"]["ImDrawCmd"][6] = {} +defs["structs"]["ImDrawCmd"][6]["name"] = "UserCallback" +defs["structs"]["ImDrawCmd"][6]["type"] = "ImDrawCallback" +defs["structs"]["ImDrawCmd"][7] = {} +defs["structs"]["ImDrawCmd"][7]["name"] = "UserCallbackData" +defs["structs"]["ImDrawCmd"][7]["type"] = "void*" +defs["structs"]["ImDrawCmdHeader"] = {} +defs["structs"]["ImDrawCmdHeader"][1] = {} +defs["structs"]["ImDrawCmdHeader"][1]["name"] = "ClipRect" +defs["structs"]["ImDrawCmdHeader"][1]["type"] = "ImVec4" +defs["structs"]["ImDrawCmdHeader"][2] = {} +defs["structs"]["ImDrawCmdHeader"][2]["name"] = "TextureId" +defs["structs"]["ImDrawCmdHeader"][2]["type"] = "ImTextureID" +defs["structs"]["ImDrawCmdHeader"][3] = {} +defs["structs"]["ImDrawCmdHeader"][3]["name"] = "VtxOffset" +defs["structs"]["ImDrawCmdHeader"][3]["type"] = "unsigned int" +defs["structs"]["ImDrawData"] = {} +defs["structs"]["ImDrawData"][1] = {} +defs["structs"]["ImDrawData"][1]["name"] = "Valid" +defs["structs"]["ImDrawData"][1]["type"] = "bool" +defs["structs"]["ImDrawData"][2] = {} +defs["structs"]["ImDrawData"][2]["name"] = "CmdListsCount" +defs["structs"]["ImDrawData"][2]["type"] = "int" +defs["structs"]["ImDrawData"][3] = {} +defs["structs"]["ImDrawData"][3]["name"] = "TotalIdxCount" +defs["structs"]["ImDrawData"][3]["type"] = "int" +defs["structs"]["ImDrawData"][4] = {} +defs["structs"]["ImDrawData"][4]["name"] = "TotalVtxCount" +defs["structs"]["ImDrawData"][4]["type"] = "int" +defs["structs"]["ImDrawData"][5] = {} +defs["structs"]["ImDrawData"][5]["name"] = "CmdLists" +defs["structs"]["ImDrawData"][5]["type"] = "ImDrawList**" +defs["structs"]["ImDrawData"][6] = {} +defs["structs"]["ImDrawData"][6]["name"] = "DisplayPos" +defs["structs"]["ImDrawData"][6]["type"] = "ImVec2" +defs["structs"]["ImDrawData"][7] = {} +defs["structs"]["ImDrawData"][7]["name"] = "DisplaySize" +defs["structs"]["ImDrawData"][7]["type"] = "ImVec2" +defs["structs"]["ImDrawData"][8] = {} +defs["structs"]["ImDrawData"][8]["name"] = "FramebufferScale" +defs["structs"]["ImDrawData"][8]["type"] = "ImVec2" +defs["structs"]["ImDrawData"][9] = {} +defs["structs"]["ImDrawData"][9]["name"] = "OwnerViewport" +defs["structs"]["ImDrawData"][9]["type"] = "ImGuiViewport*" +defs["structs"]["ImDrawList"] = {} +defs["structs"]["ImDrawList"][1] = {} +defs["structs"]["ImDrawList"][1]["name"] = "CmdBuffer" +defs["structs"]["ImDrawList"][1]["template_type"] = "ImDrawCmd" +defs["structs"]["ImDrawList"][1]["type"] = "ImVector_ImDrawCmd" +defs["structs"]["ImDrawList"][2] = {} +defs["structs"]["ImDrawList"][2]["name"] = "IdxBuffer" +defs["structs"]["ImDrawList"][2]["template_type"] = "ImDrawIdx" +defs["structs"]["ImDrawList"][2]["type"] = "ImVector_ImDrawIdx" +defs["structs"]["ImDrawList"][3] = {} +defs["structs"]["ImDrawList"][3]["name"] = "VtxBuffer" +defs["structs"]["ImDrawList"][3]["template_type"] = "ImDrawVert" +defs["structs"]["ImDrawList"][3]["type"] = "ImVector_ImDrawVert" +defs["structs"]["ImDrawList"][4] = {} +defs["structs"]["ImDrawList"][4]["name"] = "Flags" +defs["structs"]["ImDrawList"][4]["type"] = "ImDrawListFlags" +defs["structs"]["ImDrawList"][5] = {} +defs["structs"]["ImDrawList"][5]["name"] = "_VtxCurrentIdx" +defs["structs"]["ImDrawList"][5]["type"] = "unsigned int" +defs["structs"]["ImDrawList"][6] = {} +defs["structs"]["ImDrawList"][6]["name"] = "_Data" +defs["structs"]["ImDrawList"][6]["type"] = "ImDrawListSharedData*" +defs["structs"]["ImDrawList"][7] = {} +defs["structs"]["ImDrawList"][7]["name"] = "_OwnerName" +defs["structs"]["ImDrawList"][7]["type"] = "const char*" +defs["structs"]["ImDrawList"][8] = {} +defs["structs"]["ImDrawList"][8]["name"] = "_VtxWritePtr" +defs["structs"]["ImDrawList"][8]["type"] = "ImDrawVert*" +defs["structs"]["ImDrawList"][9] = {} +defs["structs"]["ImDrawList"][9]["name"] = "_IdxWritePtr" +defs["structs"]["ImDrawList"][9]["type"] = "ImDrawIdx*" +defs["structs"]["ImDrawList"][10] = {} +defs["structs"]["ImDrawList"][10]["name"] = "_ClipRectStack" +defs["structs"]["ImDrawList"][10]["template_type"] = "ImVec4" +defs["structs"]["ImDrawList"][10]["type"] = "ImVector_ImVec4" +defs["structs"]["ImDrawList"][11] = {} +defs["structs"]["ImDrawList"][11]["name"] = "_TextureIdStack" +defs["structs"]["ImDrawList"][11]["template_type"] = "ImTextureID" +defs["structs"]["ImDrawList"][11]["type"] = "ImVector_ImTextureID" +defs["structs"]["ImDrawList"][12] = {} +defs["structs"]["ImDrawList"][12]["name"] = "_Path" +defs["structs"]["ImDrawList"][12]["template_type"] = "ImVec2" +defs["structs"]["ImDrawList"][12]["type"] = "ImVector_ImVec2" +defs["structs"]["ImDrawList"][13] = {} +defs["structs"]["ImDrawList"][13]["name"] = "_CmdHeader" +defs["structs"]["ImDrawList"][13]["type"] = "ImDrawCmdHeader" +defs["structs"]["ImDrawList"][14] = {} +defs["structs"]["ImDrawList"][14]["name"] = "_Splitter" +defs["structs"]["ImDrawList"][14]["type"] = "ImDrawListSplitter" +defs["structs"]["ImDrawList"][15] = {} +defs["structs"]["ImDrawList"][15]["name"] = "_FringeScale" +defs["structs"]["ImDrawList"][15]["type"] = "float" +defs["structs"]["ImDrawListSplitter"] = {} +defs["structs"]["ImDrawListSplitter"][1] = {} +defs["structs"]["ImDrawListSplitter"][1]["name"] = "_Current" +defs["structs"]["ImDrawListSplitter"][1]["type"] = "int" +defs["structs"]["ImDrawListSplitter"][2] = {} +defs["structs"]["ImDrawListSplitter"][2]["name"] = "_Count" +defs["structs"]["ImDrawListSplitter"][2]["type"] = "int" +defs["structs"]["ImDrawListSplitter"][3] = {} +defs["structs"]["ImDrawListSplitter"][3]["name"] = "_Channels" +defs["structs"]["ImDrawListSplitter"][3]["template_type"] = "ImDrawChannel" +defs["structs"]["ImDrawListSplitter"][3]["type"] = "ImVector_ImDrawChannel" +defs["structs"]["ImDrawVert"] = {} +defs["structs"]["ImDrawVert"][1] = {} +defs["structs"]["ImDrawVert"][1]["name"] = "pos" +defs["structs"]["ImDrawVert"][1]["type"] = "ImVec2" +defs["structs"]["ImDrawVert"][2] = {} +defs["structs"]["ImDrawVert"][2]["name"] = "uv" +defs["structs"]["ImDrawVert"][2]["type"] = "ImVec2" +defs["structs"]["ImDrawVert"][3] = {} +defs["structs"]["ImDrawVert"][3]["name"] = "col" +defs["structs"]["ImDrawVert"][3]["type"] = "ImU32" +defs["structs"]["ImFont"] = {} +defs["structs"]["ImFont"][1] = {} +defs["structs"]["ImFont"][1]["name"] = "IndexAdvanceX" +defs["structs"]["ImFont"][1]["template_type"] = "float" +defs["structs"]["ImFont"][1]["type"] = "ImVector_float" +defs["structs"]["ImFont"][2] = {} +defs["structs"]["ImFont"][2]["name"] = "FallbackAdvanceX" +defs["structs"]["ImFont"][2]["type"] = "float" +defs["structs"]["ImFont"][3] = {} +defs["structs"]["ImFont"][3]["name"] = "FontSize" +defs["structs"]["ImFont"][3]["type"] = "float" +defs["structs"]["ImFont"][4] = {} +defs["structs"]["ImFont"][4]["name"] = "IndexLookup" +defs["structs"]["ImFont"][4]["template_type"] = "ImWchar" +defs["structs"]["ImFont"][4]["type"] = "ImVector_ImWchar" +defs["structs"]["ImFont"][5] = {} +defs["structs"]["ImFont"][5]["name"] = "Glyphs" +defs["structs"]["ImFont"][5]["template_type"] = "ImFontGlyph" +defs["structs"]["ImFont"][5]["type"] = "ImVector_ImFontGlyph" +defs["structs"]["ImFont"][6] = {} +defs["structs"]["ImFont"][6]["name"] = "FallbackGlyph" +defs["structs"]["ImFont"][6]["type"] = "const ImFontGlyph*" +defs["structs"]["ImFont"][7] = {} +defs["structs"]["ImFont"][7]["name"] = "ContainerAtlas" +defs["structs"]["ImFont"][7]["type"] = "ImFontAtlas*" +defs["structs"]["ImFont"][8] = {} +defs["structs"]["ImFont"][8]["name"] = "ConfigData" +defs["structs"]["ImFont"][8]["type"] = "const ImFontConfig*" +defs["structs"]["ImFont"][9] = {} +defs["structs"]["ImFont"][9]["name"] = "ConfigDataCount" +defs["structs"]["ImFont"][9]["type"] = "short" +defs["structs"]["ImFont"][10] = {} +defs["structs"]["ImFont"][10]["name"] = "FallbackChar" +defs["structs"]["ImFont"][10]["type"] = "ImWchar" +defs["structs"]["ImFont"][11] = {} +defs["structs"]["ImFont"][11]["name"] = "EllipsisChar" +defs["structs"]["ImFont"][11]["type"] = "ImWchar" +defs["structs"]["ImFont"][12] = {} +defs["structs"]["ImFont"][12]["name"] = "DotChar" +defs["structs"]["ImFont"][12]["type"] = "ImWchar" +defs["structs"]["ImFont"][13] = {} +defs["structs"]["ImFont"][13]["name"] = "DirtyLookupTables" +defs["structs"]["ImFont"][13]["type"] = "bool" +defs["structs"]["ImFont"][14] = {} +defs["structs"]["ImFont"][14]["name"] = "Scale" +defs["structs"]["ImFont"][14]["type"] = "float" +defs["structs"]["ImFont"][15] = {} +defs["structs"]["ImFont"][15]["name"] = "Ascent" +defs["structs"]["ImFont"][15]["type"] = "float" +defs["structs"]["ImFont"][16] = {} +defs["structs"]["ImFont"][16]["name"] = "Descent" +defs["structs"]["ImFont"][16]["type"] = "float" +defs["structs"]["ImFont"][17] = {} +defs["structs"]["ImFont"][17]["name"] = "MetricsTotalSurface" +defs["structs"]["ImFont"][17]["type"] = "int" +defs["structs"]["ImFont"][18] = {} +defs["structs"]["ImFont"][18]["name"] = "Used4kPagesMap[(0x10FFFF+1)/4096/8]" +defs["structs"]["ImFont"][18]["size"] = 34 +defs["structs"]["ImFont"][18]["type"] = "ImU8" +defs["structs"]["ImFontAtlas"] = {} +defs["structs"]["ImFontAtlas"][1] = {} +defs["structs"]["ImFontAtlas"][1]["name"] = "Flags" +defs["structs"]["ImFontAtlas"][1]["type"] = "ImFontAtlasFlags" +defs["structs"]["ImFontAtlas"][2] = {} +defs["structs"]["ImFontAtlas"][2]["name"] = "TexID" +defs["structs"]["ImFontAtlas"][2]["type"] = "ImTextureID" +defs["structs"]["ImFontAtlas"][3] = {} +defs["structs"]["ImFontAtlas"][3]["name"] = "TexDesiredWidth" +defs["structs"]["ImFontAtlas"][3]["type"] = "int" +defs["structs"]["ImFontAtlas"][4] = {} +defs["structs"]["ImFontAtlas"][4]["name"] = "TexGlyphPadding" +defs["structs"]["ImFontAtlas"][4]["type"] = "int" +defs["structs"]["ImFontAtlas"][5] = {} +defs["structs"]["ImFontAtlas"][5]["name"] = "Locked" +defs["structs"]["ImFontAtlas"][5]["type"] = "bool" +defs["structs"]["ImFontAtlas"][6] = {} +defs["structs"]["ImFontAtlas"][6]["name"] = "TexReady" +defs["structs"]["ImFontAtlas"][6]["type"] = "bool" +defs["structs"]["ImFontAtlas"][7] = {} +defs["structs"]["ImFontAtlas"][7]["name"] = "TexPixelsUseColors" +defs["structs"]["ImFontAtlas"][7]["type"] = "bool" +defs["structs"]["ImFontAtlas"][8] = {} +defs["structs"]["ImFontAtlas"][8]["name"] = "TexPixelsAlpha8" +defs["structs"]["ImFontAtlas"][8]["type"] = "unsigned char*" +defs["structs"]["ImFontAtlas"][9] = {} +defs["structs"]["ImFontAtlas"][9]["name"] = "TexPixelsRGBA32" +defs["structs"]["ImFontAtlas"][9]["type"] = "unsigned int*" +defs["structs"]["ImFontAtlas"][10] = {} +defs["structs"]["ImFontAtlas"][10]["name"] = "TexWidth" +defs["structs"]["ImFontAtlas"][10]["type"] = "int" +defs["structs"]["ImFontAtlas"][11] = {} +defs["structs"]["ImFontAtlas"][11]["name"] = "TexHeight" +defs["structs"]["ImFontAtlas"][11]["type"] = "int" +defs["structs"]["ImFontAtlas"][12] = {} +defs["structs"]["ImFontAtlas"][12]["name"] = "TexUvScale" +defs["structs"]["ImFontAtlas"][12]["type"] = "ImVec2" +defs["structs"]["ImFontAtlas"][13] = {} +defs["structs"]["ImFontAtlas"][13]["name"] = "TexUvWhitePixel" +defs["structs"]["ImFontAtlas"][13]["type"] = "ImVec2" +defs["structs"]["ImFontAtlas"][14] = {} +defs["structs"]["ImFontAtlas"][14]["name"] = "Fonts" +defs["structs"]["ImFontAtlas"][14]["template_type"] = "ImFont*" +defs["structs"]["ImFontAtlas"][14]["type"] = "ImVector_ImFontPtr" +defs["structs"]["ImFontAtlas"][15] = {} +defs["structs"]["ImFontAtlas"][15]["name"] = "CustomRects" +defs["structs"]["ImFontAtlas"][15]["template_type"] = "ImFontAtlasCustomRect" +defs["structs"]["ImFontAtlas"][15]["type"] = "ImVector_ImFontAtlasCustomRect" +defs["structs"]["ImFontAtlas"][16] = {} +defs["structs"]["ImFontAtlas"][16]["name"] = "ConfigData" +defs["structs"]["ImFontAtlas"][16]["template_type"] = "ImFontConfig" +defs["structs"]["ImFontAtlas"][16]["type"] = "ImVector_ImFontConfig" +defs["structs"]["ImFontAtlas"][17] = {} +defs["structs"]["ImFontAtlas"][17]["name"] = "TexUvLines[(63)+1]" +defs["structs"]["ImFontAtlas"][17]["size"] = 64 +defs["structs"]["ImFontAtlas"][17]["type"] = "ImVec4" +defs["structs"]["ImFontAtlas"][18] = {} +defs["structs"]["ImFontAtlas"][18]["name"] = "FontBuilderIO" +defs["structs"]["ImFontAtlas"][18]["type"] = "const ImFontBuilderIO*" +defs["structs"]["ImFontAtlas"][19] = {} +defs["structs"]["ImFontAtlas"][19]["name"] = "FontBuilderFlags" +defs["structs"]["ImFontAtlas"][19]["type"] = "unsigned int" +defs["structs"]["ImFontAtlas"][20] = {} +defs["structs"]["ImFontAtlas"][20]["name"] = "PackIdMouseCursors" +defs["structs"]["ImFontAtlas"][20]["type"] = "int" +defs["structs"]["ImFontAtlas"][21] = {} +defs["structs"]["ImFontAtlas"][21]["name"] = "PackIdLines" +defs["structs"]["ImFontAtlas"][21]["type"] = "int" +defs["structs"]["ImFontAtlasCustomRect"] = {} +defs["structs"]["ImFontAtlasCustomRect"][1] = {} +defs["structs"]["ImFontAtlasCustomRect"][1]["name"] = "Width" +defs["structs"]["ImFontAtlasCustomRect"][1]["type"] = "unsigned short" +defs["structs"]["ImFontAtlasCustomRect"][2] = {} +defs["structs"]["ImFontAtlasCustomRect"][2]["name"] = "Height" +defs["structs"]["ImFontAtlasCustomRect"][2]["type"] = "unsigned short" +defs["structs"]["ImFontAtlasCustomRect"][3] = {} +defs["structs"]["ImFontAtlasCustomRect"][3]["name"] = "X" +defs["structs"]["ImFontAtlasCustomRect"][3]["type"] = "unsigned short" +defs["structs"]["ImFontAtlasCustomRect"][4] = {} +defs["structs"]["ImFontAtlasCustomRect"][4]["name"] = "Y" +defs["structs"]["ImFontAtlasCustomRect"][4]["type"] = "unsigned short" +defs["structs"]["ImFontAtlasCustomRect"][5] = {} +defs["structs"]["ImFontAtlasCustomRect"][5]["name"] = "GlyphID" +defs["structs"]["ImFontAtlasCustomRect"][5]["type"] = "unsigned int" +defs["structs"]["ImFontAtlasCustomRect"][6] = {} +defs["structs"]["ImFontAtlasCustomRect"][6]["name"] = "GlyphAdvanceX" +defs["structs"]["ImFontAtlasCustomRect"][6]["type"] = "float" +defs["structs"]["ImFontAtlasCustomRect"][7] = {} +defs["structs"]["ImFontAtlasCustomRect"][7]["name"] = "GlyphOffset" +defs["structs"]["ImFontAtlasCustomRect"][7]["type"] = "ImVec2" +defs["structs"]["ImFontAtlasCustomRect"][8] = {} +defs["structs"]["ImFontAtlasCustomRect"][8]["name"] = "Font" +defs["structs"]["ImFontAtlasCustomRect"][8]["type"] = "ImFont*" +defs["structs"]["ImFontConfig"] = {} +defs["structs"]["ImFontConfig"][1] = {} +defs["structs"]["ImFontConfig"][1]["name"] = "FontData" +defs["structs"]["ImFontConfig"][1]["type"] = "void*" +defs["structs"]["ImFontConfig"][2] = {} +defs["structs"]["ImFontConfig"][2]["name"] = "FontDataSize" +defs["structs"]["ImFontConfig"][2]["type"] = "int" +defs["structs"]["ImFontConfig"][3] = {} +defs["structs"]["ImFontConfig"][3]["name"] = "FontDataOwnedByAtlas" +defs["structs"]["ImFontConfig"][3]["type"] = "bool" +defs["structs"]["ImFontConfig"][4] = {} +defs["structs"]["ImFontConfig"][4]["name"] = "FontNo" +defs["structs"]["ImFontConfig"][4]["type"] = "int" +defs["structs"]["ImFontConfig"][5] = {} +defs["structs"]["ImFontConfig"][5]["name"] = "SizePixels" +defs["structs"]["ImFontConfig"][5]["type"] = "float" +defs["structs"]["ImFontConfig"][6] = {} +defs["structs"]["ImFontConfig"][6]["name"] = "OversampleH" +defs["structs"]["ImFontConfig"][6]["type"] = "int" +defs["structs"]["ImFontConfig"][7] = {} +defs["structs"]["ImFontConfig"][7]["name"] = "OversampleV" +defs["structs"]["ImFontConfig"][7]["type"] = "int" +defs["structs"]["ImFontConfig"][8] = {} +defs["structs"]["ImFontConfig"][8]["name"] = "PixelSnapH" +defs["structs"]["ImFontConfig"][8]["type"] = "bool" +defs["structs"]["ImFontConfig"][9] = {} +defs["structs"]["ImFontConfig"][9]["name"] = "GlyphExtraSpacing" +defs["structs"]["ImFontConfig"][9]["type"] = "ImVec2" +defs["structs"]["ImFontConfig"][10] = {} +defs["structs"]["ImFontConfig"][10]["name"] = "GlyphOffset" +defs["structs"]["ImFontConfig"][10]["type"] = "ImVec2" +defs["structs"]["ImFontConfig"][11] = {} +defs["structs"]["ImFontConfig"][11]["name"] = "GlyphRanges" +defs["structs"]["ImFontConfig"][11]["type"] = "const ImWchar*" +defs["structs"]["ImFontConfig"][12] = {} +defs["structs"]["ImFontConfig"][12]["name"] = "GlyphMinAdvanceX" +defs["structs"]["ImFontConfig"][12]["type"] = "float" +defs["structs"]["ImFontConfig"][13] = {} +defs["structs"]["ImFontConfig"][13]["name"] = "GlyphMaxAdvanceX" +defs["structs"]["ImFontConfig"][13]["type"] = "float" +defs["structs"]["ImFontConfig"][14] = {} +defs["structs"]["ImFontConfig"][14]["name"] = "MergeMode" +defs["structs"]["ImFontConfig"][14]["type"] = "bool" +defs["structs"]["ImFontConfig"][15] = {} +defs["structs"]["ImFontConfig"][15]["name"] = "FontBuilderFlags" +defs["structs"]["ImFontConfig"][15]["type"] = "unsigned int" +defs["structs"]["ImFontConfig"][16] = {} +defs["structs"]["ImFontConfig"][16]["name"] = "RasterizerMultiply" +defs["structs"]["ImFontConfig"][16]["type"] = "float" +defs["structs"]["ImFontConfig"][17] = {} +defs["structs"]["ImFontConfig"][17]["name"] = "EllipsisChar" +defs["structs"]["ImFontConfig"][17]["type"] = "ImWchar" +defs["structs"]["ImFontConfig"][18] = {} +defs["structs"]["ImFontConfig"][18]["name"] = "Name[40]" +defs["structs"]["ImFontConfig"][18]["size"] = 40 +defs["structs"]["ImFontConfig"][18]["type"] = "char" +defs["structs"]["ImFontConfig"][19] = {} +defs["structs"]["ImFontConfig"][19]["name"] = "DstFont" +defs["structs"]["ImFontConfig"][19]["type"] = "ImFont*" +defs["structs"]["ImFontGlyph"] = {} +defs["structs"]["ImFontGlyph"][1] = {} +defs["structs"]["ImFontGlyph"][1]["bitfield"] = "1" +defs["structs"]["ImFontGlyph"][1]["name"] = "Colored" +defs["structs"]["ImFontGlyph"][1]["type"] = "unsigned int" +defs["structs"]["ImFontGlyph"][2] = {} +defs["structs"]["ImFontGlyph"][2]["bitfield"] = "1" +defs["structs"]["ImFontGlyph"][2]["name"] = "Visible" +defs["structs"]["ImFontGlyph"][2]["type"] = "unsigned int" +defs["structs"]["ImFontGlyph"][3] = {} +defs["structs"]["ImFontGlyph"][3]["bitfield"] = "30" +defs["structs"]["ImFontGlyph"][3]["name"] = "Codepoint" +defs["structs"]["ImFontGlyph"][3]["type"] = "unsigned int" +defs["structs"]["ImFontGlyph"][4] = {} +defs["structs"]["ImFontGlyph"][4]["name"] = "AdvanceX" +defs["structs"]["ImFontGlyph"][4]["type"] = "float" +defs["structs"]["ImFontGlyph"][5] = {} +defs["structs"]["ImFontGlyph"][5]["name"] = "X0" +defs["structs"]["ImFontGlyph"][5]["type"] = "float" +defs["structs"]["ImFontGlyph"][6] = {} +defs["structs"]["ImFontGlyph"][6]["name"] = "Y0" +defs["structs"]["ImFontGlyph"][6]["type"] = "float" +defs["structs"]["ImFontGlyph"][7] = {} +defs["structs"]["ImFontGlyph"][7]["name"] = "X1" +defs["structs"]["ImFontGlyph"][7]["type"] = "float" +defs["structs"]["ImFontGlyph"][8] = {} +defs["structs"]["ImFontGlyph"][8]["name"] = "Y1" +defs["structs"]["ImFontGlyph"][8]["type"] = "float" +defs["structs"]["ImFontGlyph"][9] = {} +defs["structs"]["ImFontGlyph"][9]["name"] = "U0" +defs["structs"]["ImFontGlyph"][9]["type"] = "float" +defs["structs"]["ImFontGlyph"][10] = {} +defs["structs"]["ImFontGlyph"][10]["name"] = "V0" +defs["structs"]["ImFontGlyph"][10]["type"] = "float" +defs["structs"]["ImFontGlyph"][11] = {} +defs["structs"]["ImFontGlyph"][11]["name"] = "U1" +defs["structs"]["ImFontGlyph"][11]["type"] = "float" +defs["structs"]["ImFontGlyph"][12] = {} +defs["structs"]["ImFontGlyph"][12]["name"] = "V1" +defs["structs"]["ImFontGlyph"][12]["type"] = "float" +defs["structs"]["ImFontGlyphRangesBuilder"] = {} +defs["structs"]["ImFontGlyphRangesBuilder"][1] = {} +defs["structs"]["ImFontGlyphRangesBuilder"][1]["name"] = "UsedChars" +defs["structs"]["ImFontGlyphRangesBuilder"][1]["template_type"] = "ImU32" +defs["structs"]["ImFontGlyphRangesBuilder"][1]["type"] = "ImVector_ImU32" +defs["structs"]["ImGuiIO"] = {} +defs["structs"]["ImGuiIO"][1] = {} +defs["structs"]["ImGuiIO"][1]["name"] = "ConfigFlags" +defs["structs"]["ImGuiIO"][1]["type"] = "ImGuiConfigFlags" +defs["structs"]["ImGuiIO"][2] = {} +defs["structs"]["ImGuiIO"][2]["name"] = "BackendFlags" +defs["structs"]["ImGuiIO"][2]["type"] = "ImGuiBackendFlags" +defs["structs"]["ImGuiIO"][3] = {} +defs["structs"]["ImGuiIO"][3]["name"] = "DisplaySize" +defs["structs"]["ImGuiIO"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][4] = {} +defs["structs"]["ImGuiIO"][4]["name"] = "DeltaTime" +defs["structs"]["ImGuiIO"][4]["type"] = "float" +defs["structs"]["ImGuiIO"][5] = {} +defs["structs"]["ImGuiIO"][5]["name"] = "IniSavingRate" +defs["structs"]["ImGuiIO"][5]["type"] = "float" +defs["structs"]["ImGuiIO"][6] = {} +defs["structs"]["ImGuiIO"][6]["name"] = "IniFilename" +defs["structs"]["ImGuiIO"][6]["type"] = "const char*" +defs["structs"]["ImGuiIO"][7] = {} +defs["structs"]["ImGuiIO"][7]["name"] = "LogFilename" +defs["structs"]["ImGuiIO"][7]["type"] = "const char*" +defs["structs"]["ImGuiIO"][8] = {} +defs["structs"]["ImGuiIO"][8]["name"] = "MouseDoubleClickTime" +defs["structs"]["ImGuiIO"][8]["type"] = "float" +defs["structs"]["ImGuiIO"][9] = {} +defs["structs"]["ImGuiIO"][9]["name"] = "MouseDoubleClickMaxDist" +defs["structs"]["ImGuiIO"][9]["type"] = "float" +defs["structs"]["ImGuiIO"][10] = {} +defs["structs"]["ImGuiIO"][10]["name"] = "MouseDragThreshold" +defs["structs"]["ImGuiIO"][10]["type"] = "float" +defs["structs"]["ImGuiIO"][11] = {} +defs["structs"]["ImGuiIO"][11]["name"] = "KeyRepeatDelay" +defs["structs"]["ImGuiIO"][11]["type"] = "float" +defs["structs"]["ImGuiIO"][12] = {} +defs["structs"]["ImGuiIO"][12]["name"] = "KeyRepeatRate" +defs["structs"]["ImGuiIO"][12]["type"] = "float" +defs["structs"]["ImGuiIO"][13] = {} +defs["structs"]["ImGuiIO"][13]["name"] = "HoverDelayNormal" +defs["structs"]["ImGuiIO"][13]["type"] = "float" +defs["structs"]["ImGuiIO"][14] = {} +defs["structs"]["ImGuiIO"][14]["name"] = "HoverDelayShort" +defs["structs"]["ImGuiIO"][14]["type"] = "float" +defs["structs"]["ImGuiIO"][15] = {} +defs["structs"]["ImGuiIO"][15]["name"] = "UserData" +defs["structs"]["ImGuiIO"][15]["type"] = "void*" +defs["structs"]["ImGuiIO"][16] = {} +defs["structs"]["ImGuiIO"][16]["name"] = "Fonts" +defs["structs"]["ImGuiIO"][16]["type"] = "ImFontAtlas*" +defs["structs"]["ImGuiIO"][17] = {} +defs["structs"]["ImGuiIO"][17]["name"] = "FontGlobalScale" +defs["structs"]["ImGuiIO"][17]["type"] = "float" +defs["structs"]["ImGuiIO"][18] = {} +defs["structs"]["ImGuiIO"][18]["name"] = "FontAllowUserScaling" +defs["structs"]["ImGuiIO"][18]["type"] = "bool" +defs["structs"]["ImGuiIO"][19] = {} +defs["structs"]["ImGuiIO"][19]["name"] = "FontDefault" +defs["structs"]["ImGuiIO"][19]["type"] = "ImFont*" +defs["structs"]["ImGuiIO"][20] = {} +defs["structs"]["ImGuiIO"][20]["name"] = "DisplayFramebufferScale" +defs["structs"]["ImGuiIO"][20]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][21] = {} +defs["structs"]["ImGuiIO"][21]["name"] = "ConfigDockingNoSplit" +defs["structs"]["ImGuiIO"][21]["type"] = "bool" +defs["structs"]["ImGuiIO"][22] = {} +defs["structs"]["ImGuiIO"][22]["name"] = "ConfigDockingWithShift" +defs["structs"]["ImGuiIO"][22]["type"] = "bool" +defs["structs"]["ImGuiIO"][23] = {} +defs["structs"]["ImGuiIO"][23]["name"] = "ConfigDockingAlwaysTabBar" +defs["structs"]["ImGuiIO"][23]["type"] = "bool" +defs["structs"]["ImGuiIO"][24] = {} +defs["structs"]["ImGuiIO"][24]["name"] = "ConfigDockingTransparentPayload" +defs["structs"]["ImGuiIO"][24]["type"] = "bool" +defs["structs"]["ImGuiIO"][25] = {} +defs["structs"]["ImGuiIO"][25]["name"] = "ConfigViewportsNoAutoMerge" +defs["structs"]["ImGuiIO"][25]["type"] = "bool" +defs["structs"]["ImGuiIO"][26] = {} +defs["structs"]["ImGuiIO"][26]["name"] = "ConfigViewportsNoTaskBarIcon" +defs["structs"]["ImGuiIO"][26]["type"] = "bool" +defs["structs"]["ImGuiIO"][27] = {} +defs["structs"]["ImGuiIO"][27]["name"] = "ConfigViewportsNoDecoration" +defs["structs"]["ImGuiIO"][27]["type"] = "bool" +defs["structs"]["ImGuiIO"][28] = {} +defs["structs"]["ImGuiIO"][28]["name"] = "ConfigViewportsNoDefaultParent" +defs["structs"]["ImGuiIO"][28]["type"] = "bool" +defs["structs"]["ImGuiIO"][29] = {} +defs["structs"]["ImGuiIO"][29]["name"] = "MouseDrawCursor" +defs["structs"]["ImGuiIO"][29]["type"] = "bool" +defs["structs"]["ImGuiIO"][30] = {} +defs["structs"]["ImGuiIO"][30]["name"] = "ConfigMacOSXBehaviors" +defs["structs"]["ImGuiIO"][30]["type"] = "bool" +defs["structs"]["ImGuiIO"][31] = {} +defs["structs"]["ImGuiIO"][31]["name"] = "ConfigInputTrickleEventQueue" +defs["structs"]["ImGuiIO"][31]["type"] = "bool" +defs["structs"]["ImGuiIO"][32] = {} +defs["structs"]["ImGuiIO"][32]["name"] = "ConfigInputTextCursorBlink" +defs["structs"]["ImGuiIO"][32]["type"] = "bool" +defs["structs"]["ImGuiIO"][33] = {} +defs["structs"]["ImGuiIO"][33]["name"] = "ConfigInputTextEnterKeepActive" +defs["structs"]["ImGuiIO"][33]["type"] = "bool" +defs["structs"]["ImGuiIO"][34] = {} +defs["structs"]["ImGuiIO"][34]["name"] = "ConfigDragClickToInputText" +defs["structs"]["ImGuiIO"][34]["type"] = "bool" +defs["structs"]["ImGuiIO"][35] = {} +defs["structs"]["ImGuiIO"][35]["name"] = "ConfigWindowsResizeFromEdges" +defs["structs"]["ImGuiIO"][35]["type"] = "bool" +defs["structs"]["ImGuiIO"][36] = {} +defs["structs"]["ImGuiIO"][36]["name"] = "ConfigWindowsMoveFromTitleBarOnly" +defs["structs"]["ImGuiIO"][36]["type"] = "bool" +defs["structs"]["ImGuiIO"][37] = {} +defs["structs"]["ImGuiIO"][37]["name"] = "ConfigMemoryCompactTimer" +defs["structs"]["ImGuiIO"][37]["type"] = "float" +defs["structs"]["ImGuiIO"][38] = {} +defs["structs"]["ImGuiIO"][38]["name"] = "BackendPlatformName" +defs["structs"]["ImGuiIO"][38]["type"] = "const char*" +defs["structs"]["ImGuiIO"][39] = {} +defs["structs"]["ImGuiIO"][39]["name"] = "BackendRendererName" +defs["structs"]["ImGuiIO"][39]["type"] = "const char*" +defs["structs"]["ImGuiIO"][40] = {} +defs["structs"]["ImGuiIO"][40]["name"] = "BackendPlatformUserData" +defs["structs"]["ImGuiIO"][40]["type"] = "void*" +defs["structs"]["ImGuiIO"][41] = {} +defs["structs"]["ImGuiIO"][41]["name"] = "BackendRendererUserData" +defs["structs"]["ImGuiIO"][41]["type"] = "void*" +defs["structs"]["ImGuiIO"][42] = {} +defs["structs"]["ImGuiIO"][42]["name"] = "BackendLanguageUserData" +defs["structs"]["ImGuiIO"][42]["type"] = "void*" +defs["structs"]["ImGuiIO"][43] = {} +defs["structs"]["ImGuiIO"][43]["name"] = "GetClipboardTextFn" +defs["structs"]["ImGuiIO"][43]["type"] = "const char*(*)(void* user_data)" +defs["structs"]["ImGuiIO"][44] = {} +defs["structs"]["ImGuiIO"][44]["name"] = "SetClipboardTextFn" +defs["structs"]["ImGuiIO"][44]["type"] = "void(*)(void* user_data,const char* text)" +defs["structs"]["ImGuiIO"][45] = {} +defs["structs"]["ImGuiIO"][45]["name"] = "ClipboardUserData" +defs["structs"]["ImGuiIO"][45]["type"] = "void*" +defs["structs"]["ImGuiIO"][46] = {} +defs["structs"]["ImGuiIO"][46]["name"] = "SetPlatformImeDataFn" +defs["structs"]["ImGuiIO"][46]["type"] = "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" +defs["structs"]["ImGuiIO"][47] = {} +defs["structs"]["ImGuiIO"][47]["name"] = "_UnusedPadding" +defs["structs"]["ImGuiIO"][47]["type"] = "void*" +defs["structs"]["ImGuiIO"][48] = {} +defs["structs"]["ImGuiIO"][48]["name"] = "WantCaptureMouse" +defs["structs"]["ImGuiIO"][48]["type"] = "bool" +defs["structs"]["ImGuiIO"][49] = {} +defs["structs"]["ImGuiIO"][49]["name"] = "WantCaptureKeyboard" +defs["structs"]["ImGuiIO"][49]["type"] = "bool" +defs["structs"]["ImGuiIO"][50] = {} +defs["structs"]["ImGuiIO"][50]["name"] = "WantTextInput" +defs["structs"]["ImGuiIO"][50]["type"] = "bool" +defs["structs"]["ImGuiIO"][51] = {} +defs["structs"]["ImGuiIO"][51]["name"] = "WantSetMousePos" +defs["structs"]["ImGuiIO"][51]["type"] = "bool" +defs["structs"]["ImGuiIO"][52] = {} +defs["structs"]["ImGuiIO"][52]["name"] = "WantSaveIniSettings" +defs["structs"]["ImGuiIO"][52]["type"] = "bool" +defs["structs"]["ImGuiIO"][53] = {} +defs["structs"]["ImGuiIO"][53]["name"] = "NavActive" +defs["structs"]["ImGuiIO"][53]["type"] = "bool" +defs["structs"]["ImGuiIO"][54] = {} +defs["structs"]["ImGuiIO"][54]["name"] = "NavVisible" +defs["structs"]["ImGuiIO"][54]["type"] = "bool" +defs["structs"]["ImGuiIO"][55] = {} +defs["structs"]["ImGuiIO"][55]["name"] = "Framerate" +defs["structs"]["ImGuiIO"][55]["type"] = "float" +defs["structs"]["ImGuiIO"][56] = {} +defs["structs"]["ImGuiIO"][56]["name"] = "MetricsRenderVertices" +defs["structs"]["ImGuiIO"][56]["type"] = "int" +defs["structs"]["ImGuiIO"][57] = {} +defs["structs"]["ImGuiIO"][57]["name"] = "MetricsRenderIndices" +defs["structs"]["ImGuiIO"][57]["type"] = "int" +defs["structs"]["ImGuiIO"][58] = {} +defs["structs"]["ImGuiIO"][58]["name"] = "MetricsRenderWindows" +defs["structs"]["ImGuiIO"][58]["type"] = "int" +defs["structs"]["ImGuiIO"][59] = {} +defs["structs"]["ImGuiIO"][59]["name"] = "MetricsActiveWindows" +defs["structs"]["ImGuiIO"][59]["type"] = "int" +defs["structs"]["ImGuiIO"][60] = {} +defs["structs"]["ImGuiIO"][60]["name"] = "MetricsActiveAllocations" +defs["structs"]["ImGuiIO"][60]["type"] = "int" +defs["structs"]["ImGuiIO"][61] = {} +defs["structs"]["ImGuiIO"][61]["name"] = "MouseDelta" +defs["structs"]["ImGuiIO"][61]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][62] = {} +defs["structs"]["ImGuiIO"][62]["name"] = "KeyMap[ImGuiKey_COUNT]" +defs["structs"]["ImGuiIO"][62]["size"] = 652 +defs["structs"]["ImGuiIO"][62]["type"] = "int" +defs["structs"]["ImGuiIO"][63] = {} +defs["structs"]["ImGuiIO"][63]["name"] = "KeysDown[ImGuiKey_COUNT]" +defs["structs"]["ImGuiIO"][63]["size"] = 652 +defs["structs"]["ImGuiIO"][63]["type"] = "bool" +defs["structs"]["ImGuiIO"][64] = {} +defs["structs"]["ImGuiIO"][64]["name"] = "NavInputs[ImGuiNavInput_COUNT]" +defs["structs"]["ImGuiIO"][64]["size"] = 16 +defs["structs"]["ImGuiIO"][64]["type"] = "float" +defs["structs"]["ImGuiIO"][65] = {} +defs["structs"]["ImGuiIO"][65]["name"] = "MousePos" +defs["structs"]["ImGuiIO"][65]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][66] = {} +defs["structs"]["ImGuiIO"][66]["name"] = "MouseDown[5]" +defs["structs"]["ImGuiIO"][66]["size"] = 5 +defs["structs"]["ImGuiIO"][66]["type"] = "bool" +defs["structs"]["ImGuiIO"][67] = {} +defs["structs"]["ImGuiIO"][67]["name"] = "MouseWheel" +defs["structs"]["ImGuiIO"][67]["type"] = "float" +defs["structs"]["ImGuiIO"][68] = {} +defs["structs"]["ImGuiIO"][68]["name"] = "MouseWheelH" +defs["structs"]["ImGuiIO"][68]["type"] = "float" +defs["structs"]["ImGuiIO"][69] = {} +defs["structs"]["ImGuiIO"][69]["name"] = "MouseHoveredViewport" +defs["structs"]["ImGuiIO"][69]["type"] = "ImGuiID" +defs["structs"]["ImGuiIO"][70] = {} +defs["structs"]["ImGuiIO"][70]["name"] = "KeyCtrl" +defs["structs"]["ImGuiIO"][70]["type"] = "bool" +defs["structs"]["ImGuiIO"][71] = {} +defs["structs"]["ImGuiIO"][71]["name"] = "KeyShift" +defs["structs"]["ImGuiIO"][71]["type"] = "bool" +defs["structs"]["ImGuiIO"][72] = {} +defs["structs"]["ImGuiIO"][72]["name"] = "KeyAlt" +defs["structs"]["ImGuiIO"][72]["type"] = "bool" +defs["structs"]["ImGuiIO"][73] = {} +defs["structs"]["ImGuiIO"][73]["name"] = "KeySuper" +defs["structs"]["ImGuiIO"][73]["type"] = "bool" +defs["structs"]["ImGuiIO"][74] = {} +defs["structs"]["ImGuiIO"][74]["name"] = "KeyMods" +defs["structs"]["ImGuiIO"][74]["type"] = "ImGuiKeyChord" +defs["structs"]["ImGuiIO"][75] = {} +defs["structs"]["ImGuiIO"][75]["name"] = "KeysData[ImGuiKey_KeysData_SIZE]" +defs["structs"]["ImGuiIO"][75]["size"] = 652 +defs["structs"]["ImGuiIO"][75]["type"] = "ImGuiKeyData" +defs["structs"]["ImGuiIO"][76] = {} +defs["structs"]["ImGuiIO"][76]["name"] = "WantCaptureMouseUnlessPopupClose" +defs["structs"]["ImGuiIO"][76]["type"] = "bool" +defs["structs"]["ImGuiIO"][77] = {} +defs["structs"]["ImGuiIO"][77]["name"] = "MousePosPrev" +defs["structs"]["ImGuiIO"][77]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][78] = {} +defs["structs"]["ImGuiIO"][78]["name"] = "MouseClickedPos[5]" +defs["structs"]["ImGuiIO"][78]["size"] = 5 +defs["structs"]["ImGuiIO"][78]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][79] = {} +defs["structs"]["ImGuiIO"][79]["name"] = "MouseClickedTime[5]" +defs["structs"]["ImGuiIO"][79]["size"] = 5 +defs["structs"]["ImGuiIO"][79]["type"] = "double" +defs["structs"]["ImGuiIO"][80] = {} +defs["structs"]["ImGuiIO"][80]["name"] = "MouseClicked[5]" +defs["structs"]["ImGuiIO"][80]["size"] = 5 +defs["structs"]["ImGuiIO"][80]["type"] = "bool" +defs["structs"]["ImGuiIO"][81] = {} +defs["structs"]["ImGuiIO"][81]["name"] = "MouseDoubleClicked[5]" +defs["structs"]["ImGuiIO"][81]["size"] = 5 +defs["structs"]["ImGuiIO"][81]["type"] = "bool" +defs["structs"]["ImGuiIO"][82] = {} +defs["structs"]["ImGuiIO"][82]["name"] = "MouseClickedCount[5]" +defs["structs"]["ImGuiIO"][82]["size"] = 5 +defs["structs"]["ImGuiIO"][82]["type"] = "ImU16" +defs["structs"]["ImGuiIO"][83] = {} +defs["structs"]["ImGuiIO"][83]["name"] = "MouseClickedLastCount[5]" +defs["structs"]["ImGuiIO"][83]["size"] = 5 +defs["structs"]["ImGuiIO"][83]["type"] = "ImU16" +defs["structs"]["ImGuiIO"][84] = {} +defs["structs"]["ImGuiIO"][84]["name"] = "MouseReleased[5]" +defs["structs"]["ImGuiIO"][84]["size"] = 5 +defs["structs"]["ImGuiIO"][84]["type"] = "bool" +defs["structs"]["ImGuiIO"][85] = {} +defs["structs"]["ImGuiIO"][85]["name"] = "MouseDownOwned[5]" +defs["structs"]["ImGuiIO"][85]["size"] = 5 +defs["structs"]["ImGuiIO"][85]["type"] = "bool" +defs["structs"]["ImGuiIO"][86] = {} +defs["structs"]["ImGuiIO"][86]["name"] = "MouseDownOwnedUnlessPopupClose[5]" +defs["structs"]["ImGuiIO"][86]["size"] = 5 +defs["structs"]["ImGuiIO"][86]["type"] = "bool" +defs["structs"]["ImGuiIO"][87] = {} +defs["structs"]["ImGuiIO"][87]["name"] = "MouseDownDuration[5]" +defs["structs"]["ImGuiIO"][87]["size"] = 5 +defs["structs"]["ImGuiIO"][87]["type"] = "float" +defs["structs"]["ImGuiIO"][88] = {} +defs["structs"]["ImGuiIO"][88]["name"] = "MouseDownDurationPrev[5]" +defs["structs"]["ImGuiIO"][88]["size"] = 5 +defs["structs"]["ImGuiIO"][88]["type"] = "float" +defs["structs"]["ImGuiIO"][89] = {} +defs["structs"]["ImGuiIO"][89]["name"] = "MouseDragMaxDistanceAbs[5]" +defs["structs"]["ImGuiIO"][89]["size"] = 5 +defs["structs"]["ImGuiIO"][89]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][90] = {} +defs["structs"]["ImGuiIO"][90]["name"] = "MouseDragMaxDistanceSqr[5]" +defs["structs"]["ImGuiIO"][90]["size"] = 5 +defs["structs"]["ImGuiIO"][90]["type"] = "float" +defs["structs"]["ImGuiIO"][91] = {} +defs["structs"]["ImGuiIO"][91]["name"] = "PenPressure" +defs["structs"]["ImGuiIO"][91]["type"] = "float" +defs["structs"]["ImGuiIO"][92] = {} +defs["structs"]["ImGuiIO"][92]["name"] = "AppFocusLost" +defs["structs"]["ImGuiIO"][92]["type"] = "bool" +defs["structs"]["ImGuiIO"][93] = {} +defs["structs"]["ImGuiIO"][93]["name"] = "AppAcceptingEvents" +defs["structs"]["ImGuiIO"][93]["type"] = "bool" +defs["structs"]["ImGuiIO"][94] = {} +defs["structs"]["ImGuiIO"][94]["name"] = "BackendUsingLegacyKeyArrays" +defs["structs"]["ImGuiIO"][94]["type"] = "ImS8" +defs["structs"]["ImGuiIO"][95] = {} +defs["structs"]["ImGuiIO"][95]["name"] = "BackendUsingLegacyNavInputArray" +defs["structs"]["ImGuiIO"][95]["type"] = "bool" +defs["structs"]["ImGuiIO"][96] = {} +defs["structs"]["ImGuiIO"][96]["name"] = "InputQueueSurrogate" +defs["structs"]["ImGuiIO"][96]["type"] = "ImWchar16" +defs["structs"]["ImGuiIO"][97] = {} +defs["structs"]["ImGuiIO"][97]["name"] = "InputQueueCharacters" +defs["structs"]["ImGuiIO"][97]["template_type"] = "ImWchar" +defs["structs"]["ImGuiIO"][97]["type"] = "ImVector_ImWchar" +defs["structs"]["ImGuiInputTextCallbackData"] = {} +defs["structs"]["ImGuiInputTextCallbackData"][1] = {} +defs["structs"]["ImGuiInputTextCallbackData"][1]["name"] = "EventFlag" +defs["structs"]["ImGuiInputTextCallbackData"][1]["type"] = "ImGuiInputTextFlags" +defs["structs"]["ImGuiInputTextCallbackData"][2] = {} +defs["structs"]["ImGuiInputTextCallbackData"][2]["name"] = "Flags" +defs["structs"]["ImGuiInputTextCallbackData"][2]["type"] = "ImGuiInputTextFlags" +defs["structs"]["ImGuiInputTextCallbackData"][3] = {} +defs["structs"]["ImGuiInputTextCallbackData"][3]["name"] = "UserData" +defs["structs"]["ImGuiInputTextCallbackData"][3]["type"] = "void*" +defs["structs"]["ImGuiInputTextCallbackData"][4] = {} +defs["structs"]["ImGuiInputTextCallbackData"][4]["name"] = "EventChar" +defs["structs"]["ImGuiInputTextCallbackData"][4]["type"] = "ImWchar" +defs["structs"]["ImGuiInputTextCallbackData"][5] = {} +defs["structs"]["ImGuiInputTextCallbackData"][5]["name"] = "EventKey" +defs["structs"]["ImGuiInputTextCallbackData"][5]["type"] = "ImGuiKey" +defs["structs"]["ImGuiInputTextCallbackData"][6] = {} +defs["structs"]["ImGuiInputTextCallbackData"][6]["name"] = "Buf" +defs["structs"]["ImGuiInputTextCallbackData"][6]["type"] = "char*" +defs["structs"]["ImGuiInputTextCallbackData"][7] = {} +defs["structs"]["ImGuiInputTextCallbackData"][7]["name"] = "BufTextLen" +defs["structs"]["ImGuiInputTextCallbackData"][7]["type"] = "int" +defs["structs"]["ImGuiInputTextCallbackData"][8] = {} +defs["structs"]["ImGuiInputTextCallbackData"][8]["name"] = "BufSize" +defs["structs"]["ImGuiInputTextCallbackData"][8]["type"] = "int" +defs["structs"]["ImGuiInputTextCallbackData"][9] = {} +defs["structs"]["ImGuiInputTextCallbackData"][9]["name"] = "BufDirty" +defs["structs"]["ImGuiInputTextCallbackData"][9]["type"] = "bool" +defs["structs"]["ImGuiInputTextCallbackData"][10] = {} +defs["structs"]["ImGuiInputTextCallbackData"][10]["name"] = "CursorPos" +defs["structs"]["ImGuiInputTextCallbackData"][10]["type"] = "int" +defs["structs"]["ImGuiInputTextCallbackData"][11] = {} +defs["structs"]["ImGuiInputTextCallbackData"][11]["name"] = "SelectionStart" +defs["structs"]["ImGuiInputTextCallbackData"][11]["type"] = "int" +defs["structs"]["ImGuiInputTextCallbackData"][12] = {} +defs["structs"]["ImGuiInputTextCallbackData"][12]["name"] = "SelectionEnd" +defs["structs"]["ImGuiInputTextCallbackData"][12]["type"] = "int" +defs["structs"]["ImGuiKeyData"] = {} +defs["structs"]["ImGuiKeyData"][1] = {} +defs["structs"]["ImGuiKeyData"][1]["name"] = "Down" +defs["structs"]["ImGuiKeyData"][1]["type"] = "bool" +defs["structs"]["ImGuiKeyData"][2] = {} +defs["structs"]["ImGuiKeyData"][2]["name"] = "DownDuration" +defs["structs"]["ImGuiKeyData"][2]["type"] = "float" +defs["structs"]["ImGuiKeyData"][3] = {} +defs["structs"]["ImGuiKeyData"][3]["name"] = "DownDurationPrev" +defs["structs"]["ImGuiKeyData"][3]["type"] = "float" +defs["structs"]["ImGuiKeyData"][4] = {} +defs["structs"]["ImGuiKeyData"][4]["name"] = "AnalogValue" +defs["structs"]["ImGuiKeyData"][4]["type"] = "float" +defs["structs"]["ImGuiListClipper"] = {} +defs["structs"]["ImGuiListClipper"][1] = {} +defs["structs"]["ImGuiListClipper"][1]["name"] = "DisplayStart" +defs["structs"]["ImGuiListClipper"][1]["type"] = "int" +defs["structs"]["ImGuiListClipper"][2] = {} +defs["structs"]["ImGuiListClipper"][2]["name"] = "DisplayEnd" +defs["structs"]["ImGuiListClipper"][2]["type"] = "int" +defs["structs"]["ImGuiListClipper"][3] = {} +defs["structs"]["ImGuiListClipper"][3]["name"] = "ItemsCount" +defs["structs"]["ImGuiListClipper"][3]["type"] = "int" +defs["structs"]["ImGuiListClipper"][4] = {} +defs["structs"]["ImGuiListClipper"][4]["name"] = "ItemsHeight" +defs["structs"]["ImGuiListClipper"][4]["type"] = "float" +defs["structs"]["ImGuiListClipper"][5] = {} +defs["structs"]["ImGuiListClipper"][5]["name"] = "StartPosY" +defs["structs"]["ImGuiListClipper"][5]["type"] = "float" +defs["structs"]["ImGuiListClipper"][6] = {} +defs["structs"]["ImGuiListClipper"][6]["name"] = "TempData" +defs["structs"]["ImGuiListClipper"][6]["type"] = "void*" +defs["structs"]["ImGuiOnceUponAFrame"] = {} +defs["structs"]["ImGuiOnceUponAFrame"][1] = {} +defs["structs"]["ImGuiOnceUponAFrame"][1]["name"] = "RefFrame" +defs["structs"]["ImGuiOnceUponAFrame"][1]["type"] = "int" +defs["structs"]["ImGuiPayload"] = {} +defs["structs"]["ImGuiPayload"][1] = {} +defs["structs"]["ImGuiPayload"][1]["name"] = "Data" +defs["structs"]["ImGuiPayload"][1]["type"] = "void*" +defs["structs"]["ImGuiPayload"][2] = {} +defs["structs"]["ImGuiPayload"][2]["name"] = "DataSize" +defs["structs"]["ImGuiPayload"][2]["type"] = "int" +defs["structs"]["ImGuiPayload"][3] = {} +defs["structs"]["ImGuiPayload"][3]["name"] = "SourceId" +defs["structs"]["ImGuiPayload"][3]["type"] = "ImGuiID" +defs["structs"]["ImGuiPayload"][4] = {} +defs["structs"]["ImGuiPayload"][4]["name"] = "SourceParentId" +defs["structs"]["ImGuiPayload"][4]["type"] = "ImGuiID" +defs["structs"]["ImGuiPayload"][5] = {} +defs["structs"]["ImGuiPayload"][5]["name"] = "DataFrameCount" +defs["structs"]["ImGuiPayload"][5]["type"] = "int" +defs["structs"]["ImGuiPayload"][6] = {} +defs["structs"]["ImGuiPayload"][6]["name"] = "DataType[32+1]" +defs["structs"]["ImGuiPayload"][6]["size"] = 33 +defs["structs"]["ImGuiPayload"][6]["type"] = "char" +defs["structs"]["ImGuiPayload"][7] = {} +defs["structs"]["ImGuiPayload"][7]["name"] = "Preview" +defs["structs"]["ImGuiPayload"][7]["type"] = "bool" +defs["structs"]["ImGuiPayload"][8] = {} +defs["structs"]["ImGuiPayload"][8]["name"] = "Delivery" +defs["structs"]["ImGuiPayload"][8]["type"] = "bool" +defs["structs"]["ImGuiPlatformIO"] = {} +defs["structs"]["ImGuiPlatformIO"][1] = {} +defs["structs"]["ImGuiPlatformIO"][1]["name"] = "Platform_CreateWindow" +defs["structs"]["ImGuiPlatformIO"][1]["type"] = "void(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][2] = {} +defs["structs"]["ImGuiPlatformIO"][2]["name"] = "Platform_DestroyWindow" +defs["structs"]["ImGuiPlatformIO"][2]["type"] = "void(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][3] = {} +defs["structs"]["ImGuiPlatformIO"][3]["name"] = "Platform_ShowWindow" +defs["structs"]["ImGuiPlatformIO"][3]["type"] = "void(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][4] = {} +defs["structs"]["ImGuiPlatformIO"][4]["name"] = "Platform_SetWindowPos" +defs["structs"]["ImGuiPlatformIO"][4]["type"] = "void(*)(ImGuiViewport* vp,ImVec2 pos)" +defs["structs"]["ImGuiPlatformIO"][5] = {} +defs["structs"]["ImGuiPlatformIO"][5]["name"] = "Platform_GetWindowPos" +defs["structs"]["ImGuiPlatformIO"][5]["type"] = "ImVec2(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][6] = {} +defs["structs"]["ImGuiPlatformIO"][6]["name"] = "Platform_SetWindowSize" +defs["structs"]["ImGuiPlatformIO"][6]["type"] = "void(*)(ImGuiViewport* vp,ImVec2 size)" +defs["structs"]["ImGuiPlatformIO"][7] = {} +defs["structs"]["ImGuiPlatformIO"][7]["name"] = "Platform_GetWindowSize" +defs["structs"]["ImGuiPlatformIO"][7]["type"] = "ImVec2(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][8] = {} +defs["structs"]["ImGuiPlatformIO"][8]["name"] = "Platform_SetWindowFocus" +defs["structs"]["ImGuiPlatformIO"][8]["type"] = "void(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][9] = {} +defs["structs"]["ImGuiPlatformIO"][9]["name"] = "Platform_GetWindowFocus" +defs["structs"]["ImGuiPlatformIO"][9]["type"] = "bool(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][10] = {} +defs["structs"]["ImGuiPlatformIO"][10]["name"] = "Platform_GetWindowMinimized" +defs["structs"]["ImGuiPlatformIO"][10]["type"] = "bool(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][11] = {} +defs["structs"]["ImGuiPlatformIO"][11]["name"] = "Platform_SetWindowTitle" +defs["structs"]["ImGuiPlatformIO"][11]["type"] = "void(*)(ImGuiViewport* vp,const char* str)" +defs["structs"]["ImGuiPlatformIO"][12] = {} +defs["structs"]["ImGuiPlatformIO"][12]["name"] = "Platform_SetWindowAlpha" +defs["structs"]["ImGuiPlatformIO"][12]["type"] = "void(*)(ImGuiViewport* vp,float alpha)" +defs["structs"]["ImGuiPlatformIO"][13] = {} +defs["structs"]["ImGuiPlatformIO"][13]["name"] = "Platform_UpdateWindow" +defs["structs"]["ImGuiPlatformIO"][13]["type"] = "void(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][14] = {} +defs["structs"]["ImGuiPlatformIO"][14]["name"] = "Platform_RenderWindow" +defs["structs"]["ImGuiPlatformIO"][14]["type"] = "void(*)(ImGuiViewport* vp,void* render_arg)" +defs["structs"]["ImGuiPlatformIO"][15] = {} +defs["structs"]["ImGuiPlatformIO"][15]["name"] = "Platform_SwapBuffers" +defs["structs"]["ImGuiPlatformIO"][15]["type"] = "void(*)(ImGuiViewport* vp,void* render_arg)" +defs["structs"]["ImGuiPlatformIO"][16] = {} +defs["structs"]["ImGuiPlatformIO"][16]["name"] = "Platform_GetWindowDpiScale" +defs["structs"]["ImGuiPlatformIO"][16]["type"] = "float(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][17] = {} +defs["structs"]["ImGuiPlatformIO"][17]["name"] = "Platform_OnChangedViewport" +defs["structs"]["ImGuiPlatformIO"][17]["type"] = "void(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][18] = {} +defs["structs"]["ImGuiPlatformIO"][18]["name"] = "Platform_CreateVkSurface" +defs["structs"]["ImGuiPlatformIO"][18]["type"] = "int(*)(ImGuiViewport* vp,ImU64 vk_inst,const void* vk_allocators,ImU64* out_vk_surface)" +defs["structs"]["ImGuiPlatformIO"][19] = {} +defs["structs"]["ImGuiPlatformIO"][19]["name"] = "Renderer_CreateWindow" +defs["structs"]["ImGuiPlatformIO"][19]["type"] = "void(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][20] = {} +defs["structs"]["ImGuiPlatformIO"][20]["name"] = "Renderer_DestroyWindow" +defs["structs"]["ImGuiPlatformIO"][20]["type"] = "void(*)(ImGuiViewport* vp)" +defs["structs"]["ImGuiPlatformIO"][21] = {} +defs["structs"]["ImGuiPlatformIO"][21]["name"] = "Renderer_SetWindowSize" +defs["structs"]["ImGuiPlatformIO"][21]["type"] = "void(*)(ImGuiViewport* vp,ImVec2 size)" +defs["structs"]["ImGuiPlatformIO"][22] = {} +defs["structs"]["ImGuiPlatformIO"][22]["name"] = "Renderer_RenderWindow" +defs["structs"]["ImGuiPlatformIO"][22]["type"] = "void(*)(ImGuiViewport* vp,void* render_arg)" +defs["structs"]["ImGuiPlatformIO"][23] = {} +defs["structs"]["ImGuiPlatformIO"][23]["name"] = "Renderer_SwapBuffers" +defs["structs"]["ImGuiPlatformIO"][23]["type"] = "void(*)(ImGuiViewport* vp,void* render_arg)" +defs["structs"]["ImGuiPlatformIO"][24] = {} +defs["structs"]["ImGuiPlatformIO"][24]["name"] = "Monitors" +defs["structs"]["ImGuiPlatformIO"][24]["template_type"] = "ImGuiPlatformMonitor" +defs["structs"]["ImGuiPlatformIO"][24]["type"] = "ImVector_ImGuiPlatformMonitor" +defs["structs"]["ImGuiPlatformIO"][25] = {} +defs["structs"]["ImGuiPlatformIO"][25]["name"] = "Viewports" +defs["structs"]["ImGuiPlatformIO"][25]["template_type"] = "ImGuiViewport*" +defs["structs"]["ImGuiPlatformIO"][25]["type"] = "ImVector_ImGuiViewportPtr" +defs["structs"]["ImGuiPlatformImeData"] = {} +defs["structs"]["ImGuiPlatformImeData"][1] = {} +defs["structs"]["ImGuiPlatformImeData"][1]["name"] = "WantVisible" +defs["structs"]["ImGuiPlatformImeData"][1]["type"] = "bool" +defs["structs"]["ImGuiPlatformImeData"][2] = {} +defs["structs"]["ImGuiPlatformImeData"][2]["name"] = "InputPos" +defs["structs"]["ImGuiPlatformImeData"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiPlatformImeData"][3] = {} +defs["structs"]["ImGuiPlatformImeData"][3]["name"] = "InputLineHeight" +defs["structs"]["ImGuiPlatformImeData"][3]["type"] = "float" +defs["structs"]["ImGuiPlatformMonitor"] = {} +defs["structs"]["ImGuiPlatformMonitor"][1] = {} +defs["structs"]["ImGuiPlatformMonitor"][1]["name"] = "MainPos" +defs["structs"]["ImGuiPlatformMonitor"][1]["type"] = "ImVec2" +defs["structs"]["ImGuiPlatformMonitor"][2] = {} +defs["structs"]["ImGuiPlatformMonitor"][2]["name"] = "MainSize" +defs["structs"]["ImGuiPlatformMonitor"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiPlatformMonitor"][3] = {} +defs["structs"]["ImGuiPlatformMonitor"][3]["name"] = "WorkPos" +defs["structs"]["ImGuiPlatformMonitor"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiPlatformMonitor"][4] = {} +defs["structs"]["ImGuiPlatformMonitor"][4]["name"] = "WorkSize" +defs["structs"]["ImGuiPlatformMonitor"][4]["type"] = "ImVec2" +defs["structs"]["ImGuiPlatformMonitor"][5] = {} +defs["structs"]["ImGuiPlatformMonitor"][5]["name"] = "DpiScale" +defs["structs"]["ImGuiPlatformMonitor"][5]["type"] = "float" +defs["structs"]["ImGuiSizeCallbackData"] = {} +defs["structs"]["ImGuiSizeCallbackData"][1] = {} +defs["structs"]["ImGuiSizeCallbackData"][1]["name"] = "UserData" +defs["structs"]["ImGuiSizeCallbackData"][1]["type"] = "void*" +defs["structs"]["ImGuiSizeCallbackData"][2] = {} +defs["structs"]["ImGuiSizeCallbackData"][2]["name"] = "Pos" +defs["structs"]["ImGuiSizeCallbackData"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiSizeCallbackData"][3] = {} +defs["structs"]["ImGuiSizeCallbackData"][3]["name"] = "CurrentSize" +defs["structs"]["ImGuiSizeCallbackData"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiSizeCallbackData"][4] = {} +defs["structs"]["ImGuiSizeCallbackData"][4]["name"] = "DesiredSize" +defs["structs"]["ImGuiSizeCallbackData"][4]["type"] = "ImVec2" +defs["structs"]["ImGuiStorage"] = {} +defs["structs"]["ImGuiStorage"][1] = {} +defs["structs"]["ImGuiStorage"][1]["name"] = "Data" +defs["structs"]["ImGuiStorage"][1]["template_type"] = "ImGuiStoragePair" +defs["structs"]["ImGuiStorage"][1]["type"] = "ImVector_ImGuiStoragePair" +defs["structs"]["ImGuiStoragePair"] = {} +defs["structs"]["ImGuiStoragePair"][1] = {} +defs["structs"]["ImGuiStoragePair"][1]["name"] = "key" +defs["structs"]["ImGuiStoragePair"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiStoragePair"][2] = {} +defs["structs"]["ImGuiStoragePair"][2]["name"] = "" +defs["structs"]["ImGuiStoragePair"][2]["type"] = "union { int val_i; float val_f; void* val_p;}" +defs["structs"]["ImGuiStyle"] = {} +defs["structs"]["ImGuiStyle"][1] = {} +defs["structs"]["ImGuiStyle"][1]["name"] = "Alpha" +defs["structs"]["ImGuiStyle"][1]["type"] = "float" +defs["structs"]["ImGuiStyle"][2] = {} +defs["structs"]["ImGuiStyle"][2]["name"] = "DisabledAlpha" +defs["structs"]["ImGuiStyle"][2]["type"] = "float" +defs["structs"]["ImGuiStyle"][3] = {} +defs["structs"]["ImGuiStyle"][3]["name"] = "WindowPadding" +defs["structs"]["ImGuiStyle"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][4] = {} +defs["structs"]["ImGuiStyle"][4]["name"] = "WindowRounding" +defs["structs"]["ImGuiStyle"][4]["type"] = "float" +defs["structs"]["ImGuiStyle"][5] = {} +defs["structs"]["ImGuiStyle"][5]["name"] = "WindowBorderSize" +defs["structs"]["ImGuiStyle"][5]["type"] = "float" +defs["structs"]["ImGuiStyle"][6] = {} +defs["structs"]["ImGuiStyle"][6]["name"] = "WindowMinSize" +defs["structs"]["ImGuiStyle"][6]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][7] = {} +defs["structs"]["ImGuiStyle"][7]["name"] = "WindowTitleAlign" +defs["structs"]["ImGuiStyle"][7]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][8] = {} +defs["structs"]["ImGuiStyle"][8]["name"] = "WindowMenuButtonPosition" +defs["structs"]["ImGuiStyle"][8]["type"] = "ImGuiDir" +defs["structs"]["ImGuiStyle"][9] = {} +defs["structs"]["ImGuiStyle"][9]["name"] = "ChildRounding" +defs["structs"]["ImGuiStyle"][9]["type"] = "float" +defs["structs"]["ImGuiStyle"][10] = {} +defs["structs"]["ImGuiStyle"][10]["name"] = "ChildBorderSize" +defs["structs"]["ImGuiStyle"][10]["type"] = "float" +defs["structs"]["ImGuiStyle"][11] = {} +defs["structs"]["ImGuiStyle"][11]["name"] = "PopupRounding" +defs["structs"]["ImGuiStyle"][11]["type"] = "float" +defs["structs"]["ImGuiStyle"][12] = {} +defs["structs"]["ImGuiStyle"][12]["name"] = "PopupBorderSize" +defs["structs"]["ImGuiStyle"][12]["type"] = "float" +defs["structs"]["ImGuiStyle"][13] = {} +defs["structs"]["ImGuiStyle"][13]["name"] = "FramePadding" +defs["structs"]["ImGuiStyle"][13]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][14] = {} +defs["structs"]["ImGuiStyle"][14]["name"] = "FrameRounding" +defs["structs"]["ImGuiStyle"][14]["type"] = "float" +defs["structs"]["ImGuiStyle"][15] = {} +defs["structs"]["ImGuiStyle"][15]["name"] = "FrameBorderSize" +defs["structs"]["ImGuiStyle"][15]["type"] = "float" +defs["structs"]["ImGuiStyle"][16] = {} +defs["structs"]["ImGuiStyle"][16]["name"] = "ItemSpacing" +defs["structs"]["ImGuiStyle"][16]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][17] = {} +defs["structs"]["ImGuiStyle"][17]["name"] = "ItemInnerSpacing" +defs["structs"]["ImGuiStyle"][17]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][18] = {} +defs["structs"]["ImGuiStyle"][18]["name"] = "CellPadding" +defs["structs"]["ImGuiStyle"][18]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][19] = {} +defs["structs"]["ImGuiStyle"][19]["name"] = "TouchExtraPadding" +defs["structs"]["ImGuiStyle"][19]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][20] = {} +defs["structs"]["ImGuiStyle"][20]["name"] = "IndentSpacing" +defs["structs"]["ImGuiStyle"][20]["type"] = "float" +defs["structs"]["ImGuiStyle"][21] = {} +defs["structs"]["ImGuiStyle"][21]["name"] = "ColumnsMinSpacing" +defs["structs"]["ImGuiStyle"][21]["type"] = "float" +defs["structs"]["ImGuiStyle"][22] = {} +defs["structs"]["ImGuiStyle"][22]["name"] = "ScrollbarSize" +defs["structs"]["ImGuiStyle"][22]["type"] = "float" +defs["structs"]["ImGuiStyle"][23] = {} +defs["structs"]["ImGuiStyle"][23]["name"] = "ScrollbarRounding" +defs["structs"]["ImGuiStyle"][23]["type"] = "float" +defs["structs"]["ImGuiStyle"][24] = {} +defs["structs"]["ImGuiStyle"][24]["name"] = "GrabMinSize" +defs["structs"]["ImGuiStyle"][24]["type"] = "float" +defs["structs"]["ImGuiStyle"][25] = {} +defs["structs"]["ImGuiStyle"][25]["name"] = "GrabRounding" +defs["structs"]["ImGuiStyle"][25]["type"] = "float" +defs["structs"]["ImGuiStyle"][26] = {} +defs["structs"]["ImGuiStyle"][26]["name"] = "LogSliderDeadzone" +defs["structs"]["ImGuiStyle"][26]["type"] = "float" +defs["structs"]["ImGuiStyle"][27] = {} +defs["structs"]["ImGuiStyle"][27]["name"] = "TabRounding" +defs["structs"]["ImGuiStyle"][27]["type"] = "float" +defs["structs"]["ImGuiStyle"][28] = {} +defs["structs"]["ImGuiStyle"][28]["name"] = "TabBorderSize" +defs["structs"]["ImGuiStyle"][28]["type"] = "float" +defs["structs"]["ImGuiStyle"][29] = {} +defs["structs"]["ImGuiStyle"][29]["name"] = "TabMinWidthForCloseButton" +defs["structs"]["ImGuiStyle"][29]["type"] = "float" +defs["structs"]["ImGuiStyle"][30] = {} +defs["structs"]["ImGuiStyle"][30]["name"] = "ColorButtonPosition" +defs["structs"]["ImGuiStyle"][30]["type"] = "ImGuiDir" +defs["structs"]["ImGuiStyle"][31] = {} +defs["structs"]["ImGuiStyle"][31]["name"] = "ButtonTextAlign" +defs["structs"]["ImGuiStyle"][31]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][32] = {} +defs["structs"]["ImGuiStyle"][32]["name"] = "SelectableTextAlign" +defs["structs"]["ImGuiStyle"][32]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][33] = {} +defs["structs"]["ImGuiStyle"][33]["name"] = "DisplayWindowPadding" +defs["structs"]["ImGuiStyle"][33]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][34] = {} +defs["structs"]["ImGuiStyle"][34]["name"] = "DisplaySafeAreaPadding" +defs["structs"]["ImGuiStyle"][34]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][35] = {} +defs["structs"]["ImGuiStyle"][35]["name"] = "MouseCursorScale" +defs["structs"]["ImGuiStyle"][35]["type"] = "float" +defs["structs"]["ImGuiStyle"][36] = {} +defs["structs"]["ImGuiStyle"][36]["name"] = "AntiAliasedLines" +defs["structs"]["ImGuiStyle"][36]["type"] = "bool" +defs["structs"]["ImGuiStyle"][37] = {} +defs["structs"]["ImGuiStyle"][37]["name"] = "AntiAliasedLinesUseTex" +defs["structs"]["ImGuiStyle"][37]["type"] = "bool" +defs["structs"]["ImGuiStyle"][38] = {} +defs["structs"]["ImGuiStyle"][38]["name"] = "AntiAliasedFill" +defs["structs"]["ImGuiStyle"][38]["type"] = "bool" +defs["structs"]["ImGuiStyle"][39] = {} +defs["structs"]["ImGuiStyle"][39]["name"] = "CurveTessellationTol" +defs["structs"]["ImGuiStyle"][39]["type"] = "float" +defs["structs"]["ImGuiStyle"][40] = {} +defs["structs"]["ImGuiStyle"][40]["name"] = "CircleTessellationMaxError" +defs["structs"]["ImGuiStyle"][40]["type"] = "float" +defs["structs"]["ImGuiStyle"][41] = {} +defs["structs"]["ImGuiStyle"][41]["name"] = "Colors[ImGuiCol_COUNT]" +defs["structs"]["ImGuiStyle"][41]["size"] = 55 +defs["structs"]["ImGuiStyle"][41]["type"] = "ImVec4" +defs["structs"]["ImGuiTableColumnSortSpecs"] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][1] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][1]["name"] = "ColumnUserID" +defs["structs"]["ImGuiTableColumnSortSpecs"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiTableColumnSortSpecs"][2] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][2]["name"] = "ColumnIndex" +defs["structs"]["ImGuiTableColumnSortSpecs"][2]["type"] = "ImS16" +defs["structs"]["ImGuiTableColumnSortSpecs"][3] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][3]["name"] = "SortOrder" +defs["structs"]["ImGuiTableColumnSortSpecs"][3]["type"] = "ImS16" +defs["structs"]["ImGuiTableColumnSortSpecs"][4] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][4]["bitfield"] = "8" +defs["structs"]["ImGuiTableColumnSortSpecs"][4]["name"] = "SortDirection" +defs["structs"]["ImGuiTableColumnSortSpecs"][4]["type"] = "ImGuiSortDirection" +defs["structs"]["ImGuiTableSortSpecs"] = {} +defs["structs"]["ImGuiTableSortSpecs"][1] = {} +defs["structs"]["ImGuiTableSortSpecs"][1]["name"] = "Specs" +defs["structs"]["ImGuiTableSortSpecs"][1]["type"] = "const ImGuiTableColumnSortSpecs*" +defs["structs"]["ImGuiTableSortSpecs"][2] = {} +defs["structs"]["ImGuiTableSortSpecs"][2]["name"] = "SpecsCount" +defs["structs"]["ImGuiTableSortSpecs"][2]["type"] = "int" +defs["structs"]["ImGuiTableSortSpecs"][3] = {} +defs["structs"]["ImGuiTableSortSpecs"][3]["name"] = "SpecsDirty" +defs["structs"]["ImGuiTableSortSpecs"][3]["type"] = "bool" +defs["structs"]["ImGuiTextBuffer"] = {} +defs["structs"]["ImGuiTextBuffer"][1] = {} +defs["structs"]["ImGuiTextBuffer"][1]["name"] = "Buf" +defs["structs"]["ImGuiTextBuffer"][1]["template_type"] = "char" +defs["structs"]["ImGuiTextBuffer"][1]["type"] = "ImVector_char" +defs["structs"]["ImGuiTextFilter"] = {} +defs["structs"]["ImGuiTextFilter"][1] = {} +defs["structs"]["ImGuiTextFilter"][1]["name"] = "InputBuf[256]" +defs["structs"]["ImGuiTextFilter"][1]["size"] = 256 +defs["structs"]["ImGuiTextFilter"][1]["type"] = "char" +defs["structs"]["ImGuiTextFilter"][2] = {} +defs["structs"]["ImGuiTextFilter"][2]["name"] = "Filters" +defs["structs"]["ImGuiTextFilter"][2]["template_type"] = "ImGuiTextRange" +defs["structs"]["ImGuiTextFilter"][2]["type"] = "ImVector_ImGuiTextRange" +defs["structs"]["ImGuiTextFilter"][3] = {} +defs["structs"]["ImGuiTextFilter"][3]["name"] = "CountGrep" +defs["structs"]["ImGuiTextFilter"][3]["type"] = "int" +defs["structs"]["ImGuiTextRange"] = {} +defs["structs"]["ImGuiTextRange"][1] = {} +defs["structs"]["ImGuiTextRange"][1]["name"] = "b" +defs["structs"]["ImGuiTextRange"][1]["type"] = "const char*" +defs["structs"]["ImGuiTextRange"][2] = {} +defs["structs"]["ImGuiTextRange"][2]["name"] = "e" +defs["structs"]["ImGuiTextRange"][2]["type"] = "const char*" +defs["structs"]["ImGuiViewport"] = {} +defs["structs"]["ImGuiViewport"][1] = {} +defs["structs"]["ImGuiViewport"][1]["name"] = "ID" +defs["structs"]["ImGuiViewport"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiViewport"][2] = {} +defs["structs"]["ImGuiViewport"][2]["name"] = "Flags" +defs["structs"]["ImGuiViewport"][2]["type"] = "ImGuiViewportFlags" +defs["structs"]["ImGuiViewport"][3] = {} +defs["structs"]["ImGuiViewport"][3]["name"] = "Pos" +defs["structs"]["ImGuiViewport"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiViewport"][4] = {} +defs["structs"]["ImGuiViewport"][4]["name"] = "Size" +defs["structs"]["ImGuiViewport"][4]["type"] = "ImVec2" +defs["structs"]["ImGuiViewport"][5] = {} +defs["structs"]["ImGuiViewport"][5]["name"] = "WorkPos" +defs["structs"]["ImGuiViewport"][5]["type"] = "ImVec2" +defs["structs"]["ImGuiViewport"][6] = {} +defs["structs"]["ImGuiViewport"][6]["name"] = "WorkSize" +defs["structs"]["ImGuiViewport"][6]["type"] = "ImVec2" +defs["structs"]["ImGuiViewport"][7] = {} +defs["structs"]["ImGuiViewport"][7]["name"] = "DpiScale" +defs["structs"]["ImGuiViewport"][7]["type"] = "float" +defs["structs"]["ImGuiViewport"][8] = {} +defs["structs"]["ImGuiViewport"][8]["name"] = "ParentViewportId" +defs["structs"]["ImGuiViewport"][8]["type"] = "ImGuiID" +defs["structs"]["ImGuiViewport"][9] = {} +defs["structs"]["ImGuiViewport"][9]["name"] = "DrawData" +defs["structs"]["ImGuiViewport"][9]["type"] = "ImDrawData*" +defs["structs"]["ImGuiViewport"][10] = {} +defs["structs"]["ImGuiViewport"][10]["name"] = "RendererUserData" +defs["structs"]["ImGuiViewport"][10]["type"] = "void*" +defs["structs"]["ImGuiViewport"][11] = {} +defs["structs"]["ImGuiViewport"][11]["name"] = "PlatformUserData" +defs["structs"]["ImGuiViewport"][11]["type"] = "void*" +defs["structs"]["ImGuiViewport"][12] = {} +defs["structs"]["ImGuiViewport"][12]["name"] = "PlatformHandle" +defs["structs"]["ImGuiViewport"][12]["type"] = "void*" +defs["structs"]["ImGuiViewport"][13] = {} +defs["structs"]["ImGuiViewport"][13]["name"] = "PlatformHandleRaw" +defs["structs"]["ImGuiViewport"][13]["type"] = "void*" +defs["structs"]["ImGuiViewport"][14] = {} +defs["structs"]["ImGuiViewport"][14]["name"] = "PlatformWindowCreated" +defs["structs"]["ImGuiViewport"][14]["type"] = "bool" +defs["structs"]["ImGuiViewport"][15] = {} +defs["structs"]["ImGuiViewport"][15]["name"] = "PlatformRequestMove" +defs["structs"]["ImGuiViewport"][15]["type"] = "bool" +defs["structs"]["ImGuiViewport"][16] = {} +defs["structs"]["ImGuiViewport"][16]["name"] = "PlatformRequestResize" +defs["structs"]["ImGuiViewport"][16]["type"] = "bool" +defs["structs"]["ImGuiViewport"][17] = {} +defs["structs"]["ImGuiViewport"][17]["name"] = "PlatformRequestClose" +defs["structs"]["ImGuiViewport"][17]["type"] = "bool" +defs["structs"]["ImGuiWindowClass"] = {} +defs["structs"]["ImGuiWindowClass"][1] = {} +defs["structs"]["ImGuiWindowClass"][1]["name"] = "ClassId" +defs["structs"]["ImGuiWindowClass"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindowClass"][2] = {} +defs["structs"]["ImGuiWindowClass"][2]["name"] = "ParentViewportId" +defs["structs"]["ImGuiWindowClass"][2]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindowClass"][3] = {} +defs["structs"]["ImGuiWindowClass"][3]["name"] = "ViewportFlagsOverrideSet" +defs["structs"]["ImGuiWindowClass"][3]["type"] = "ImGuiViewportFlags" +defs["structs"]["ImGuiWindowClass"][4] = {} +defs["structs"]["ImGuiWindowClass"][4]["name"] = "ViewportFlagsOverrideClear" +defs["structs"]["ImGuiWindowClass"][4]["type"] = "ImGuiViewportFlags" +defs["structs"]["ImGuiWindowClass"][5] = {} +defs["structs"]["ImGuiWindowClass"][5]["name"] = "TabItemFlagsOverrideSet" +defs["structs"]["ImGuiWindowClass"][5]["type"] = "ImGuiTabItemFlags" +defs["structs"]["ImGuiWindowClass"][6] = {} +defs["structs"]["ImGuiWindowClass"][6]["name"] = "DockNodeFlagsOverrideSet" +defs["structs"]["ImGuiWindowClass"][6]["type"] = "ImGuiDockNodeFlags" +defs["structs"]["ImGuiWindowClass"][7] = {} +defs["structs"]["ImGuiWindowClass"][7]["name"] = "DockingAlwaysTabBar" +defs["structs"]["ImGuiWindowClass"][7]["type"] = "bool" +defs["structs"]["ImGuiWindowClass"][8] = {} +defs["structs"]["ImGuiWindowClass"][8]["name"] = "DockingAllowUnclassed" +defs["structs"]["ImGuiWindowClass"][8]["type"] = "bool" +defs["structs"]["ImVec2"] = {} +defs["structs"]["ImVec2"][1] = {} +defs["structs"]["ImVec2"][1]["name"] = "x" +defs["structs"]["ImVec2"][1]["type"] = "float" +defs["structs"]["ImVec2"][2] = {} +defs["structs"]["ImVec2"][2]["name"] = "y" +defs["structs"]["ImVec2"][2]["type"] = "float" +defs["structs"]["ImVec4"] = {} +defs["structs"]["ImVec4"][1] = {} +defs["structs"]["ImVec4"][1]["name"] = "x" +defs["structs"]["ImVec4"][1]["type"] = "float" +defs["structs"]["ImVec4"][2] = {} +defs["structs"]["ImVec4"][2]["name"] = "y" +defs["structs"]["ImVec4"][2]["type"] = "float" +defs["structs"]["ImVec4"][3] = {} +defs["structs"]["ImVec4"][3]["name"] = "z" +defs["structs"]["ImVec4"][3]["type"] = "float" +defs["structs"]["ImVec4"][4] = {} +defs["structs"]["ImVec4"][4]["name"] = "w" +defs["structs"]["ImVec4"][4]["type"] = "float" +defs["templated_structs"] = {} +defs["templated_structs"]["ImVector"] = {} +defs["templated_structs"]["ImVector"][1] = {} +defs["templated_structs"]["ImVector"][1]["name"] = "Size" +defs["templated_structs"]["ImVector"][1]["type"] = "int" +defs["templated_structs"]["ImVector"][2] = {} +defs["templated_structs"]["ImVector"][2]["name"] = "Capacity" +defs["templated_structs"]["ImVector"][2]["type"] = "int" +defs["templated_structs"]["ImVector"][3] = {} +defs["templated_structs"]["ImVector"][3]["name"] = "Data" +defs["templated_structs"]["ImVector"][3]["type"] = "T*" +defs["templates_done"] = {} +defs["templates_done"]["ImVector"] = {} +defs["templates_done"]["ImVector"]["ImDrawChannel"] = true +defs["templates_done"]["ImVector"]["ImDrawCmd"] = true +defs["templates_done"]["ImVector"]["ImDrawIdx"] = true +defs["templates_done"]["ImVector"]["ImDrawVert"] = true +defs["templates_done"]["ImVector"]["ImFont*"] = true +defs["templates_done"]["ImVector"]["ImFontAtlasCustomRect"] = true +defs["templates_done"]["ImVector"]["ImFontConfig"] = true +defs["templates_done"]["ImVector"]["ImFontGlyph"] = true +defs["templates_done"]["ImVector"]["ImGuiPlatformMonitor"] = true +defs["templates_done"]["ImVector"]["ImGuiStoragePair"] = true +defs["templates_done"]["ImVector"]["ImGuiTextRange"] = true +defs["templates_done"]["ImVector"]["ImGuiViewport*"] = true +defs["templates_done"]["ImVector"]["ImTextureID"] = true +defs["templates_done"]["ImVector"]["ImU32"] = true +defs["templates_done"]["ImVector"]["ImVec2"] = true +defs["templates_done"]["ImVector"]["ImVec4"] = true +defs["templates_done"]["ImVector"]["ImWchar"] = true +defs["templates_done"]["ImVector"]["char"] = true +defs["templates_done"]["ImVector"]["float"] = true +defs["typenames"] = {} +defs["typenames"]["ImVector"] = "T" + +return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.json b/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.json new file mode 100644 index 000000000..ff1b3335a --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.json @@ -0,0 +1,97 @@ +{ + "ImColor": "struct ImColor", + "ImDrawCallback": "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);", + "ImDrawChannel": "struct ImDrawChannel", + "ImDrawCmd": "struct ImDrawCmd", + "ImDrawCmdHeader": "struct ImDrawCmdHeader", + "ImDrawData": "struct ImDrawData", + "ImDrawFlags": "int", + "ImDrawIdx": "unsigned short", + "ImDrawList": "struct ImDrawList", + "ImDrawListFlags": "int", + "ImDrawListSharedData": "struct ImDrawListSharedData", + "ImDrawListSplitter": "struct ImDrawListSplitter", + "ImDrawVert": "struct ImDrawVert", + "ImFont": "struct ImFont", + "ImFontAtlas": "struct ImFontAtlas", + "ImFontAtlasCustomRect": "struct ImFontAtlasCustomRect", + "ImFontAtlasFlags": "int", + "ImFontBuilderIO": "struct ImFontBuilderIO", + "ImFontConfig": "struct ImFontConfig", + "ImFontGlyph": "struct ImFontGlyph", + "ImFontGlyphRangesBuilder": "struct ImFontGlyphRangesBuilder", + "ImGuiBackendFlags": "int", + "ImGuiButtonFlags": "int", + "ImGuiCol": "int", + "ImGuiColorEditFlags": "int", + "ImGuiComboFlags": "int", + "ImGuiCond": "int", + "ImGuiConfigFlags": "int", + "ImGuiContext": "struct ImGuiContext", + "ImGuiDataType": "int", + "ImGuiDir": "int", + "ImGuiDockNodeFlags": "int", + "ImGuiDragDropFlags": "int", + "ImGuiFocusedFlags": "int", + "ImGuiHoveredFlags": "int", + "ImGuiID": "unsigned int", + "ImGuiIO": "struct ImGuiIO", + "ImGuiInputTextCallback": "int(*)(ImGuiInputTextCallbackData* data);", + "ImGuiInputTextCallbackData": "struct ImGuiInputTextCallbackData", + "ImGuiInputTextFlags": "int", + "ImGuiKeyChord": "int", + "ImGuiKeyData": "struct ImGuiKeyData", + "ImGuiListClipper": "struct ImGuiListClipper", + "ImGuiMemAllocFunc": "void*(*)(size_t sz,void* user_data);", + "ImGuiMemFreeFunc": "void(*)(void* ptr,void* user_data);", + "ImGuiMouseButton": "int", + "ImGuiMouseCursor": "int", + "ImGuiOnceUponAFrame": "struct ImGuiOnceUponAFrame", + "ImGuiPayload": "struct ImGuiPayload", + "ImGuiPlatformIO": "struct ImGuiPlatformIO", + "ImGuiPlatformImeData": "struct ImGuiPlatformImeData", + "ImGuiPlatformMonitor": "struct ImGuiPlatformMonitor", + "ImGuiPopupFlags": "int", + "ImGuiSelectableFlags": "int", + "ImGuiSizeCallback": "void(*)(ImGuiSizeCallbackData* data);", + "ImGuiSizeCallbackData": "struct ImGuiSizeCallbackData", + "ImGuiSliderFlags": "int", + "ImGuiSortDirection": "int", + "ImGuiStorage": "struct ImGuiStorage", + "ImGuiStoragePair": "struct ImGuiStoragePair", + "ImGuiStyle": "struct ImGuiStyle", + "ImGuiStyleVar": "int", + "ImGuiTabBarFlags": "int", + "ImGuiTabItemFlags": "int", + "ImGuiTableBgTarget": "int", + "ImGuiTableColumnFlags": "int", + "ImGuiTableColumnSortSpecs": "struct ImGuiTableColumnSortSpecs", + "ImGuiTableFlags": "int", + "ImGuiTableRowFlags": "int", + "ImGuiTableSortSpecs": "struct ImGuiTableSortSpecs", + "ImGuiTextBuffer": "struct ImGuiTextBuffer", + "ImGuiTextFilter": "struct ImGuiTextFilter", + "ImGuiTextRange": "struct ImGuiTextRange", + "ImGuiTreeNodeFlags": "int", + "ImGuiViewport": "struct ImGuiViewport", + "ImGuiViewportFlags": "int", + "ImGuiWindowClass": "struct ImGuiWindowClass", + "ImGuiWindowFlags": "int", + "ImS16": "signed short", + "ImS32": "signed int", + "ImS64": "signed long long", + "ImS8": "signed char", + "ImTextureID": "void*", + "ImU16": "unsigned short", + "ImU32": "unsigned int", + "ImU64": "unsigned long long", + "ImU8": "unsigned char", + "ImVec2": "struct ImVec2", + "ImVec4": "struct ImVec4", + "ImWchar": "ImWchar32", + "ImWchar16": "unsigned short", + "ImWchar32": "unsigned int", + "const_iterator": "const value_type*", + "iterator": "value_type*", + "value_type": "T" +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.lua b/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.lua new file mode 100644 index 000000000..76de713ae --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.lua @@ -0,0 +1,98 @@ +local defs = {} +defs["ImColor"] = "struct ImColor" +defs["ImDrawCallback"] = "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);" +defs["ImDrawChannel"] = "struct ImDrawChannel" +defs["ImDrawCmd"] = "struct ImDrawCmd" +defs["ImDrawCmdHeader"] = "struct ImDrawCmdHeader" +defs["ImDrawData"] = "struct ImDrawData" +defs["ImDrawFlags"] = "int" +defs["ImDrawIdx"] = "unsigned short" +defs["ImDrawList"] = "struct ImDrawList" +defs["ImDrawListFlags"] = "int" +defs["ImDrawListSharedData"] = "struct ImDrawListSharedData" +defs["ImDrawListSplitter"] = "struct ImDrawListSplitter" +defs["ImDrawVert"] = "struct ImDrawVert" +defs["ImFont"] = "struct ImFont" +defs["ImFontAtlas"] = "struct ImFontAtlas" +defs["ImFontAtlasCustomRect"] = "struct ImFontAtlasCustomRect" +defs["ImFontAtlasFlags"] = "int" +defs["ImFontBuilderIO"] = "struct ImFontBuilderIO" +defs["ImFontConfig"] = "struct ImFontConfig" +defs["ImFontGlyph"] = "struct ImFontGlyph" +defs["ImFontGlyphRangesBuilder"] = "struct ImFontGlyphRangesBuilder" +defs["ImGuiBackendFlags"] = "int" +defs["ImGuiButtonFlags"] = "int" +defs["ImGuiCol"] = "int" +defs["ImGuiColorEditFlags"] = "int" +defs["ImGuiComboFlags"] = "int" +defs["ImGuiCond"] = "int" +defs["ImGuiConfigFlags"] = "int" +defs["ImGuiContext"] = "struct ImGuiContext" +defs["ImGuiDataType"] = "int" +defs["ImGuiDir"] = "int" +defs["ImGuiDockNodeFlags"] = "int" +defs["ImGuiDragDropFlags"] = "int" +defs["ImGuiFocusedFlags"] = "int" +defs["ImGuiHoveredFlags"] = "int" +defs["ImGuiID"] = "unsigned int" +defs["ImGuiIO"] = "struct ImGuiIO" +defs["ImGuiInputTextCallback"] = "int(*)(ImGuiInputTextCallbackData* data);" +defs["ImGuiInputTextCallbackData"] = "struct ImGuiInputTextCallbackData" +defs["ImGuiInputTextFlags"] = "int" +defs["ImGuiKeyChord"] = "int" +defs["ImGuiKeyData"] = "struct ImGuiKeyData" +defs["ImGuiListClipper"] = "struct ImGuiListClipper" +defs["ImGuiMemAllocFunc"] = "void*(*)(size_t sz,void* user_data);" +defs["ImGuiMemFreeFunc"] = "void(*)(void* ptr,void* user_data);" +defs["ImGuiMouseButton"] = "int" +defs["ImGuiMouseCursor"] = "int" +defs["ImGuiOnceUponAFrame"] = "struct ImGuiOnceUponAFrame" +defs["ImGuiPayload"] = "struct ImGuiPayload" +defs["ImGuiPlatformIO"] = "struct ImGuiPlatformIO" +defs["ImGuiPlatformImeData"] = "struct ImGuiPlatformImeData" +defs["ImGuiPlatformMonitor"] = "struct ImGuiPlatformMonitor" +defs["ImGuiPopupFlags"] = "int" +defs["ImGuiSelectableFlags"] = "int" +defs["ImGuiSizeCallback"] = "void(*)(ImGuiSizeCallbackData* data);" +defs["ImGuiSizeCallbackData"] = "struct ImGuiSizeCallbackData" +defs["ImGuiSliderFlags"] = "int" +defs["ImGuiSortDirection"] = "int" +defs["ImGuiStorage"] = "struct ImGuiStorage" +defs["ImGuiStoragePair"] = "struct ImGuiStoragePair" +defs["ImGuiStyle"] = "struct ImGuiStyle" +defs["ImGuiStyleVar"] = "int" +defs["ImGuiTabBarFlags"] = "int" +defs["ImGuiTabItemFlags"] = "int" +defs["ImGuiTableBgTarget"] = "int" +defs["ImGuiTableColumnFlags"] = "int" +defs["ImGuiTableColumnSortSpecs"] = "struct ImGuiTableColumnSortSpecs" +defs["ImGuiTableFlags"] = "int" +defs["ImGuiTableRowFlags"] = "int" +defs["ImGuiTableSortSpecs"] = "struct ImGuiTableSortSpecs" +defs["ImGuiTextBuffer"] = "struct ImGuiTextBuffer" +defs["ImGuiTextFilter"] = "struct ImGuiTextFilter" +defs["ImGuiTextRange"] = "struct ImGuiTextRange" +defs["ImGuiTreeNodeFlags"] = "int" +defs["ImGuiViewport"] = "struct ImGuiViewport" +defs["ImGuiViewportFlags"] = "int" +defs["ImGuiWindowClass"] = "struct ImGuiWindowClass" +defs["ImGuiWindowFlags"] = "int" +defs["ImS16"] = "signed short" +defs["ImS32"] = "signed int" +defs["ImS64"] = "signed long long" +defs["ImS8"] = "signed char" +defs["ImTextureID"] = "void*" +defs["ImU16"] = "unsigned short" +defs["ImU32"] = "unsigned int" +defs["ImU64"] = "unsigned long long" +defs["ImU8"] = "unsigned char" +defs["ImVec2"] = "struct ImVec2" +defs["ImVec4"] = "struct ImVec4" +defs["ImWchar"] = "ImWchar32" +defs["ImWchar16"] = "unsigned short" +defs["ImWchar32"] = "unsigned int" +defs["const_iterator"] = "const value_type*" +defs["iterator"] = "value_type*" +defs["value_type"] = "T" + +return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/update-cimgui-output.sh b/imgui-sys/third-party/imgui-docking-freetype/update-cimgui-output.sh new file mode 100755 index 000000000..e90099fe6 --- /dev/null +++ b/imgui-sys/third-party/imgui-docking-freetype/update-cimgui-output.sh @@ -0,0 +1,35 @@ +#!/bin/bash +set -euo pipefail + +# No good cross-platform 'readlink -f', so I apologise +SCRIPT_DIR=$(dirname ${0} | python3 -c 'import os, sys; print(os.path.abspath(sys.stdin.read().strip()))' ) +CIMGUI_DIR=${1:?} + +echo "${SCRIPT_DIR}" + +pushd "${CIMGUI_DIR}"/generator > /dev/null + +# Check if ${CIMGUI_DIR}/link exists as a symlink. +# If so, good, and we can tinker with it. +# Otherwise, ask user to remove it for us. +if [ -e ${CIMGUI_DIR}/imgui ] && [ ! -h ${CIMGUI_DIR}/imgui ]; then + echo "Please remove ${CIMGUI_DIR}/imgui so this script can link it to correct imgui version" + exit 1 +fi + +# Remove old symlink +rm ${CIMGUI_DIR}/imgui || : + +# Link to C++ code contained in imgui-rs, not whatever if in cimgui's repo +ln -s ${SCRIPT_DIR}/imgui ${CIMGUI_DIR}/imgui + +# Run the generator +luajit generator.lua gcc freetype -DIMGUI_USE_WCHAR32 + +# Tidy up +rm ${CIMGUI_DIR}/imgui # Remove symlink (no recursive rm) + +popd > /dev/null + +cp "${CIMGUI_DIR}"/cimgui.{h,cpp} "${SCRIPT_DIR}"/ +cp "${CIMGUI_DIR}"/generator/output/* "${SCRIPT_DIR}"/ diff --git a/imgui-sys/third-party/imgui-master-freetype/cimgui.cpp b/imgui-sys/third-party/imgui-master-freetype/cimgui.cpp new file mode 100644 index 000000000..116489677 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/cimgui.cpp @@ -0,0 +1,2667 @@ +//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui +//based on imgui.h file version "1.89.1 WIP" 18910 from Dear ImGui https://github.com/ocornut/imgui +//with imgui_freetype.h api +#define IMGUI_ENABLE_FREETYPE +#ifdef IMGUI_ENABLE_FREETYPE +#ifndef CIMGUI_FREETYPE +#error "IMGUI_FREETYPE should be defined for Freetype linking" +#endif +#else +#ifdef CIMGUI_FREETYPE +#error "IMGUI_FREETYPE should not be defined without freetype generated cimgui" +#endif +#endif +#include "./imgui/imgui.h" +#ifdef IMGUI_ENABLE_FREETYPE +#include "./imgui/misc/freetype/imgui_freetype.h" +#endif +#include "./imgui/imgui_internal.h" +#include "cimgui.h" + + + +CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void) +{ + return IM_NEW(ImVec2)(); +} +CIMGUI_API void ImVec2_destroy(ImVec2* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x,float _y) +{ + return IM_NEW(ImVec2)(_x,_y); +} +CIMGUI_API ImVec4* ImVec4_ImVec4_Nil(void) +{ + return IM_NEW(ImVec4)(); +} +CIMGUI_API void ImVec4_destroy(ImVec4* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x,float _y,float _z,float _w) +{ + return IM_NEW(ImVec4)(_x,_y,_z,_w); +} +CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas) +{ + return ImGui::CreateContext(shared_font_atlas); +} +CIMGUI_API void igDestroyContext(ImGuiContext* ctx) +{ + return ImGui::DestroyContext(ctx); +} +CIMGUI_API ImGuiContext* igGetCurrentContext() +{ + return ImGui::GetCurrentContext(); +} +CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx) +{ + return ImGui::SetCurrentContext(ctx); +} +CIMGUI_API ImGuiIO* igGetIO() +{ + return &ImGui::GetIO(); +} +CIMGUI_API ImGuiStyle* igGetStyle() +{ + return &ImGui::GetStyle(); +} +CIMGUI_API void igNewFrame() +{ + return ImGui::NewFrame(); +} +CIMGUI_API void igEndFrame() +{ + return ImGui::EndFrame(); +} +CIMGUI_API void igRender() +{ + return ImGui::Render(); +} +CIMGUI_API ImDrawData* igGetDrawData() +{ + return ImGui::GetDrawData(); +} +CIMGUI_API void igShowDemoWindow(bool* p_open) +{ + return ImGui::ShowDemoWindow(p_open); +} +CIMGUI_API void igShowMetricsWindow(bool* p_open) +{ + return ImGui::ShowMetricsWindow(p_open); +} +CIMGUI_API void igShowDebugLogWindow(bool* p_open) +{ + return ImGui::ShowDebugLogWindow(p_open); +} +CIMGUI_API void igShowStackToolWindow(bool* p_open) +{ + return ImGui::ShowStackToolWindow(p_open); +} +CIMGUI_API void igShowAboutWindow(bool* p_open) +{ + return ImGui::ShowAboutWindow(p_open); +} +CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref) +{ + return ImGui::ShowStyleEditor(ref); +} +CIMGUI_API bool igShowStyleSelector(const char* label) +{ + return ImGui::ShowStyleSelector(label); +} +CIMGUI_API void igShowFontSelector(const char* label) +{ + return ImGui::ShowFontSelector(label); +} +CIMGUI_API void igShowUserGuide() +{ + return ImGui::ShowUserGuide(); +} +CIMGUI_API const char* igGetVersion() +{ + return ImGui::GetVersion(); +} +CIMGUI_API void igStyleColorsDark(ImGuiStyle* dst) +{ + return ImGui::StyleColorsDark(dst); +} +CIMGUI_API void igStyleColorsLight(ImGuiStyle* dst) +{ + return ImGui::StyleColorsLight(dst); +} +CIMGUI_API void igStyleColorsClassic(ImGuiStyle* dst) +{ + return ImGui::StyleColorsClassic(dst); +} +CIMGUI_API bool igBegin(const char* name,bool* p_open,ImGuiWindowFlags flags) +{ + return ImGui::Begin(name,p_open,flags); +} +CIMGUI_API void igEnd() +{ + return ImGui::End(); +} +CIMGUI_API bool igBeginChild_Str(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags) +{ + return ImGui::BeginChild(str_id,size,border,flags); +} +CIMGUI_API bool igBeginChild_ID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags) +{ + return ImGui::BeginChild(id,size,border,flags); +} +CIMGUI_API void igEndChild() +{ + return ImGui::EndChild(); +} +CIMGUI_API bool igIsWindowAppearing() +{ + return ImGui::IsWindowAppearing(); +} +CIMGUI_API bool igIsWindowCollapsed() +{ + return ImGui::IsWindowCollapsed(); +} +CIMGUI_API bool igIsWindowFocused(ImGuiFocusedFlags flags) +{ + return ImGui::IsWindowFocused(flags); +} +CIMGUI_API bool igIsWindowHovered(ImGuiHoveredFlags flags) +{ + return ImGui::IsWindowHovered(flags); +} +CIMGUI_API ImDrawList* igGetWindowDrawList() +{ + return ImGui::GetWindowDrawList(); +} +CIMGUI_API void igGetWindowPos(ImVec2 *pOut) +{ + *pOut = ImGui::GetWindowPos(); +} +CIMGUI_API void igGetWindowSize(ImVec2 *pOut) +{ + *pOut = ImGui::GetWindowSize(); +} +CIMGUI_API float igGetWindowWidth() +{ + return ImGui::GetWindowWidth(); +} +CIMGUI_API float igGetWindowHeight() +{ + return ImGui::GetWindowHeight(); +} +CIMGUI_API void igSetNextWindowPos(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot) +{ + return ImGui::SetNextWindowPos(pos,cond,pivot); +} +CIMGUI_API void igSetNextWindowSize(const ImVec2 size,ImGuiCond cond) +{ + return ImGui::SetNextWindowSize(size,cond); +} +CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data) +{ + return ImGui::SetNextWindowSizeConstraints(size_min,size_max,custom_callback,custom_callback_data); +} +CIMGUI_API void igSetNextWindowContentSize(const ImVec2 size) +{ + return ImGui::SetNextWindowContentSize(size); +} +CIMGUI_API void igSetNextWindowCollapsed(bool collapsed,ImGuiCond cond) +{ + return ImGui::SetNextWindowCollapsed(collapsed,cond); +} +CIMGUI_API void igSetNextWindowFocus() +{ + return ImGui::SetNextWindowFocus(); +} +CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll) +{ + return ImGui::SetNextWindowScroll(scroll); +} +CIMGUI_API void igSetNextWindowBgAlpha(float alpha) +{ + return ImGui::SetNextWindowBgAlpha(alpha); +} +CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos,ImGuiCond cond) +{ + return ImGui::SetWindowPos(pos,cond); +} +CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size,ImGuiCond cond) +{ + return ImGui::SetWindowSize(size,cond); +} +CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed,ImGuiCond cond) +{ + return ImGui::SetWindowCollapsed(collapsed,cond); +} +CIMGUI_API void igSetWindowFocus_Nil() +{ + return ImGui::SetWindowFocus(); +} +CIMGUI_API void igSetWindowFontScale(float scale) +{ + return ImGui::SetWindowFontScale(scale); +} +CIMGUI_API void igSetWindowPos_Str(const char* name,const ImVec2 pos,ImGuiCond cond) +{ + return ImGui::SetWindowPos(name,pos,cond); +} +CIMGUI_API void igSetWindowSize_Str(const char* name,const ImVec2 size,ImGuiCond cond) +{ + return ImGui::SetWindowSize(name,size,cond); +} +CIMGUI_API void igSetWindowCollapsed_Str(const char* name,bool collapsed,ImGuiCond cond) +{ + return ImGui::SetWindowCollapsed(name,collapsed,cond); +} +CIMGUI_API void igSetWindowFocus_Str(const char* name) +{ + return ImGui::SetWindowFocus(name); +} +CIMGUI_API void igGetContentRegionAvail(ImVec2 *pOut) +{ + *pOut = ImGui::GetContentRegionAvail(); +} +CIMGUI_API void igGetContentRegionMax(ImVec2 *pOut) +{ + *pOut = ImGui::GetContentRegionMax(); +} +CIMGUI_API void igGetWindowContentRegionMin(ImVec2 *pOut) +{ + *pOut = ImGui::GetWindowContentRegionMin(); +} +CIMGUI_API void igGetWindowContentRegionMax(ImVec2 *pOut) +{ + *pOut = ImGui::GetWindowContentRegionMax(); +} +CIMGUI_API float igGetScrollX() +{ + return ImGui::GetScrollX(); +} +CIMGUI_API float igGetScrollY() +{ + return ImGui::GetScrollY(); +} +CIMGUI_API void igSetScrollX(float scroll_x) +{ + return ImGui::SetScrollX(scroll_x); +} +CIMGUI_API void igSetScrollY(float scroll_y) +{ + return ImGui::SetScrollY(scroll_y); +} +CIMGUI_API float igGetScrollMaxX() +{ + return ImGui::GetScrollMaxX(); +} +CIMGUI_API float igGetScrollMaxY() +{ + return ImGui::GetScrollMaxY(); +} +CIMGUI_API void igSetScrollHereX(float center_x_ratio) +{ + return ImGui::SetScrollHereX(center_x_ratio); +} +CIMGUI_API void igSetScrollHereY(float center_y_ratio) +{ + return ImGui::SetScrollHereY(center_y_ratio); +} +CIMGUI_API void igSetScrollFromPosX(float local_x,float center_x_ratio) +{ + return ImGui::SetScrollFromPosX(local_x,center_x_ratio); +} +CIMGUI_API void igSetScrollFromPosY(float local_y,float center_y_ratio) +{ + return ImGui::SetScrollFromPosY(local_y,center_y_ratio); +} +CIMGUI_API void igPushFont(ImFont* font) +{ + return ImGui::PushFont(font); +} +CIMGUI_API void igPopFont() +{ + return ImGui::PopFont(); +} +CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col) +{ + return ImGui::PushStyleColor(idx,col); +} +CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx,const ImVec4 col) +{ + return ImGui::PushStyleColor(idx,col); +} +CIMGUI_API void igPopStyleColor(int count) +{ + return ImGui::PopStyleColor(count); +} +CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx,float val) +{ + return ImGui::PushStyleVar(idx,val); +} +CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx,const ImVec2 val) +{ + return ImGui::PushStyleVar(idx,val); +} +CIMGUI_API void igPopStyleVar(int count) +{ + return ImGui::PopStyleVar(count); +} +CIMGUI_API void igPushAllowKeyboardFocus(bool allow_keyboard_focus) +{ + return ImGui::PushAllowKeyboardFocus(allow_keyboard_focus); +} +CIMGUI_API void igPopAllowKeyboardFocus() +{ + return ImGui::PopAllowKeyboardFocus(); +} +CIMGUI_API void igPushButtonRepeat(bool repeat) +{ + return ImGui::PushButtonRepeat(repeat); +} +CIMGUI_API void igPopButtonRepeat() +{ + return ImGui::PopButtonRepeat(); +} +CIMGUI_API void igPushItemWidth(float item_width) +{ + return ImGui::PushItemWidth(item_width); +} +CIMGUI_API void igPopItemWidth() +{ + return ImGui::PopItemWidth(); +} +CIMGUI_API void igSetNextItemWidth(float item_width) +{ + return ImGui::SetNextItemWidth(item_width); +} +CIMGUI_API float igCalcItemWidth() +{ + return ImGui::CalcItemWidth(); +} +CIMGUI_API void igPushTextWrapPos(float wrap_local_pos_x) +{ + return ImGui::PushTextWrapPos(wrap_local_pos_x); +} +CIMGUI_API void igPopTextWrapPos() +{ + return ImGui::PopTextWrapPos(); +} +CIMGUI_API ImFont* igGetFont() +{ + return ImGui::GetFont(); +} +CIMGUI_API float igGetFontSize() +{ + return ImGui::GetFontSize(); +} +CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut) +{ + *pOut = ImGui::GetFontTexUvWhitePixel(); +} +CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul) +{ + return ImGui::GetColorU32(idx,alpha_mul); +} +CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col) +{ + return ImGui::GetColorU32(col); +} +CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col) +{ + return ImGui::GetColorU32(col); +} +CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx) +{ + return &ImGui::GetStyleColorVec4(idx); +} +CIMGUI_API void igSeparator() +{ + return ImGui::Separator(); +} +CIMGUI_API void igSameLine(float offset_from_start_x,float spacing) +{ + return ImGui::SameLine(offset_from_start_x,spacing); +} +CIMGUI_API void igNewLine() +{ + return ImGui::NewLine(); +} +CIMGUI_API void igSpacing() +{ + return ImGui::Spacing(); +} +CIMGUI_API void igDummy(const ImVec2 size) +{ + return ImGui::Dummy(size); +} +CIMGUI_API void igIndent(float indent_w) +{ + return ImGui::Indent(indent_w); +} +CIMGUI_API void igUnindent(float indent_w) +{ + return ImGui::Unindent(indent_w); +} +CIMGUI_API void igBeginGroup() +{ + return ImGui::BeginGroup(); +} +CIMGUI_API void igEndGroup() +{ + return ImGui::EndGroup(); +} +CIMGUI_API void igGetCursorPos(ImVec2 *pOut) +{ + *pOut = ImGui::GetCursorPos(); +} +CIMGUI_API float igGetCursorPosX() +{ + return ImGui::GetCursorPosX(); +} +CIMGUI_API float igGetCursorPosY() +{ + return ImGui::GetCursorPosY(); +} +CIMGUI_API void igSetCursorPos(const ImVec2 local_pos) +{ + return ImGui::SetCursorPos(local_pos); +} +CIMGUI_API void igSetCursorPosX(float local_x) +{ + return ImGui::SetCursorPosX(local_x); +} +CIMGUI_API void igSetCursorPosY(float local_y) +{ + return ImGui::SetCursorPosY(local_y); +} +CIMGUI_API void igGetCursorStartPos(ImVec2 *pOut) +{ + *pOut = ImGui::GetCursorStartPos(); +} +CIMGUI_API void igGetCursorScreenPos(ImVec2 *pOut) +{ + *pOut = ImGui::GetCursorScreenPos(); +} +CIMGUI_API void igSetCursorScreenPos(const ImVec2 pos) +{ + return ImGui::SetCursorScreenPos(pos); +} +CIMGUI_API void igAlignTextToFramePadding() +{ + return ImGui::AlignTextToFramePadding(); +} +CIMGUI_API float igGetTextLineHeight() +{ + return ImGui::GetTextLineHeight(); +} +CIMGUI_API float igGetTextLineHeightWithSpacing() +{ + return ImGui::GetTextLineHeightWithSpacing(); +} +CIMGUI_API float igGetFrameHeight() +{ + return ImGui::GetFrameHeight(); +} +CIMGUI_API float igGetFrameHeightWithSpacing() +{ + return ImGui::GetFrameHeightWithSpacing(); +} +CIMGUI_API void igPushID_Str(const char* str_id) +{ + return ImGui::PushID(str_id); +} +CIMGUI_API void igPushID_StrStr(const char* str_id_begin,const char* str_id_end) +{ + return ImGui::PushID(str_id_begin,str_id_end); +} +CIMGUI_API void igPushID_Ptr(const void* ptr_id) +{ + return ImGui::PushID(ptr_id); +} +CIMGUI_API void igPushID_Int(int int_id) +{ + return ImGui::PushID(int_id); +} +CIMGUI_API void igPopID() +{ + return ImGui::PopID(); +} +CIMGUI_API ImGuiID igGetID_Str(const char* str_id) +{ + return ImGui::GetID(str_id); +} +CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin,const char* str_id_end) +{ + return ImGui::GetID(str_id_begin,str_id_end); +} +CIMGUI_API ImGuiID igGetID_Ptr(const void* ptr_id) +{ + return ImGui::GetID(ptr_id); +} +CIMGUI_API void igTextUnformatted(const char* text,const char* text_end) +{ + return ImGui::TextUnformatted(text,text_end); +} +CIMGUI_API void igText(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::TextV(fmt,args); + va_end(args); +} +CIMGUI_API void igTextV(const char* fmt,va_list args) +{ + return ImGui::TextV(fmt,args); +} +CIMGUI_API void igTextColored(const ImVec4 col,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::TextColoredV(col,fmt,args); + va_end(args); +} +CIMGUI_API void igTextColoredV(const ImVec4 col,const char* fmt,va_list args) +{ + return ImGui::TextColoredV(col,fmt,args); +} +CIMGUI_API void igTextDisabled(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::TextDisabledV(fmt,args); + va_end(args); +} +CIMGUI_API void igTextDisabledV(const char* fmt,va_list args) +{ + return ImGui::TextDisabledV(fmt,args); +} +CIMGUI_API void igTextWrapped(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::TextWrappedV(fmt,args); + va_end(args); +} +CIMGUI_API void igTextWrappedV(const char* fmt,va_list args) +{ + return ImGui::TextWrappedV(fmt,args); +} +CIMGUI_API void igLabelText(const char* label,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::LabelTextV(label,fmt,args); + va_end(args); +} +CIMGUI_API void igLabelTextV(const char* label,const char* fmt,va_list args) +{ + return ImGui::LabelTextV(label,fmt,args); +} +CIMGUI_API void igBulletText(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::BulletTextV(fmt,args); + va_end(args); +} +CIMGUI_API void igBulletTextV(const char* fmt,va_list args) +{ + return ImGui::BulletTextV(fmt,args); +} +CIMGUI_API bool igButton(const char* label,const ImVec2 size) +{ + return ImGui::Button(label,size); +} +CIMGUI_API bool igSmallButton(const char* label) +{ + return ImGui::SmallButton(label); +} +CIMGUI_API bool igInvisibleButton(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags) +{ + return ImGui::InvisibleButton(str_id,size,flags); +} +CIMGUI_API bool igArrowButton(const char* str_id,ImGuiDir dir) +{ + return ImGui::ArrowButton(str_id,dir); +} +CIMGUI_API bool igCheckbox(const char* label,bool* v) +{ + return ImGui::Checkbox(label,v); +} +CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label,int* flags,int flags_value) +{ + return ImGui::CheckboxFlags(label,flags,flags_value); +} +CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label,unsigned int* flags,unsigned int flags_value) +{ + return ImGui::CheckboxFlags(label,flags,flags_value); +} +CIMGUI_API bool igRadioButton_Bool(const char* label,bool active) +{ + return ImGui::RadioButton(label,active); +} +CIMGUI_API bool igRadioButton_IntPtr(const char* label,int* v,int v_button) +{ + return ImGui::RadioButton(label,v,v_button); +} +CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay) +{ + return ImGui::ProgressBar(fraction,size_arg,overlay); +} +CIMGUI_API void igBullet() +{ + return ImGui::Bullet(); +} +CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col) +{ + return ImGui::Image(user_texture_id,size,uv0,uv1,tint_col,border_col); +} +CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col) +{ + return ImGui::ImageButton(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col); +} +CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags) +{ + return ImGui::BeginCombo(label,preview_value,flags); +} +CIMGUI_API void igEndCombo() +{ + return ImGui::EndCombo(); +} +CIMGUI_API bool igCombo_Str_arr(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 igCombo_Str(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 igCombo_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items) +{ + return ImGui::Combo(label,current_item,items_getter,data,items_count,popup_max_height_in_items); +} +CIMGUI_API bool igDragFloat(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 igDragFloat2(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 igDragFloat3(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 igDragFloat4(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 igDragFloatRange2(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 igDragInt(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 igDragInt2(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 igDragInt3(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 igDragInt4(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 igDragIntRange2(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 igDragScalar(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 igDragScalarN(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 igSliderFloat(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 igSliderFloat2(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 igSliderFloat3(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 igSliderFloat4(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 igSliderAngle(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 igSliderInt(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 igSliderInt2(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 igSliderInt3(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 igSliderInt4(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 igSliderScalar(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 igSliderScalarN(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 igVSliderFloat(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags) +{ + return ImGui::VSliderFloat(label,size,v,v_min,v_max,format,flags); +} +CIMGUI_API bool igVSliderInt(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags) +{ + return ImGui::VSliderInt(label,size,v,v_min,v_max,format,flags); +} +CIMGUI_API bool igVSliderScalar(const char* label,const 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,size,data_type,p_data,p_min,p_max,format,flags); +} +CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data) +{ + return ImGui::InputText(label,buf,buf_size,flags,callback,user_data); +} +CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data) +{ + return ImGui::InputTextMultiline(label,buf,buf_size,size,flags,callback,user_data); +} +CIMGUI_API bool igInputTextWithHint(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,callback,user_data); +} +CIMGUI_API bool igInputFloat(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 igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags) +{ + return ImGui::InputFloat2(label,v,format,flags); +} +CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags) +{ + return ImGui::InputFloat3(label,v,format,flags); +} +CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags) +{ + return ImGui::InputFloat4(label,v,format,flags); +} +CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags) +{ + return ImGui::InputInt(label,v,step,step_fast,flags); +} +CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags flags) +{ + return ImGui::InputInt2(label,v,flags); +} +CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags flags) +{ + return ImGui::InputInt3(label,v,flags); +} +CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags flags) +{ + return ImGui::InputInt4(label,v,flags); +} +CIMGUI_API bool igInputDouble(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 igInputScalar(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 igInputScalarN(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 igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags) +{ + return ImGui::ColorEdit3(label,col,flags); +} +CIMGUI_API bool igColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags) +{ + return ImGui::ColorEdit4(label,col,flags); +} +CIMGUI_API bool igColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags) +{ + return ImGui::ColorPicker3(label,col,flags); +} +CIMGUI_API bool igColorPicker4(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col) +{ + return ImGui::ColorPicker4(label,col,flags,ref_col); +} +CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size) +{ + return ImGui::ColorButton(desc_id,col,flags,size); +} +CIMGUI_API void igSetColorEditOptions(ImGuiColorEditFlags flags) +{ + return ImGui::SetColorEditOptions(flags); +} +CIMGUI_API bool igTreeNode_Str(const char* label) +{ + return ImGui::TreeNode(label); +} +CIMGUI_API bool igTreeNode_StrStr(const char* str_id,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + bool ret = ImGui::TreeNodeV(str_id,fmt,args); + va_end(args); + return ret; +} +CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + bool ret = ImGui::TreeNodeV(ptr_id,fmt,args); + va_end(args); + return ret; +} +CIMGUI_API bool igTreeNodeV_Str(const char* str_id,const char* fmt,va_list args) +{ + return ImGui::TreeNodeV(str_id,fmt,args); +} +CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id,const char* fmt,va_list args) +{ + return ImGui::TreeNodeV(ptr_id,fmt,args); +} +CIMGUI_API bool igTreeNodeEx_Str(const char* label,ImGuiTreeNodeFlags flags) +{ + return ImGui::TreeNodeEx(label,flags); +} +CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + bool ret = ImGui::TreeNodeExV(str_id,flags,fmt,args); + va_end(args); + return ret; +} +CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + bool ret = ImGui::TreeNodeExV(ptr_id,flags,fmt,args); + va_end(args); + return ret; +} +CIMGUI_API bool igTreeNodeExV_Str(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) +{ + return ImGui::TreeNodeExV(str_id,flags,fmt,args); +} +CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args) +{ + return ImGui::TreeNodeExV(ptr_id,flags,fmt,args); +} +CIMGUI_API void igTreePush_Str(const char* str_id) +{ + return ImGui::TreePush(str_id); +} +CIMGUI_API void igTreePush_Ptr(const void* ptr_id) +{ + return ImGui::TreePush(ptr_id); +} +CIMGUI_API void igTreePop() +{ + return ImGui::TreePop(); +} +CIMGUI_API float igGetTreeNodeToLabelSpacing() +{ + return ImGui::GetTreeNodeToLabelSpacing(); +} +CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags) +{ + return ImGui::CollapsingHeader(label,flags); +} +CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags) +{ + return ImGui::CollapsingHeader(label,p_visible,flags); +} +CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond) +{ + return ImGui::SetNextItemOpen(is_open,cond); +} +CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size) +{ + return ImGui::Selectable(label,selected,flags,size); +} +CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size) +{ + return ImGui::Selectable(label,p_selected,flags,size); +} +CIMGUI_API bool igBeginListBox(const char* label,const ImVec2 size) +{ + return ImGui::BeginListBox(label,size); +} +CIMGUI_API void igEndListBox() +{ + return ImGui::EndListBox(); +} +CIMGUI_API bool igListBox_Str_arr(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 igListBox_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items) +{ + return ImGui::ListBox(label,current_item,items_getter,data,items_count,height_in_items); +} +CIMGUI_API void igPlotLines_FloatPtr(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) +{ + return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride); +} +CIMGUI_API void igPlotLines_FnFloatPtr(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) +{ + return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size); +} +CIMGUI_API void igPlotHistogram_FloatPtr(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) +{ + return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride); +} +CIMGUI_API void igPlotHistogram_FnFloatPtr(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) +{ + return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size); +} +CIMGUI_API void igValue_Bool(const char* prefix,bool b) +{ + return ImGui::Value(prefix,b); +} +CIMGUI_API void igValue_Int(const char* prefix,int v) +{ + return ImGui::Value(prefix,v); +} +CIMGUI_API void igValue_Uint(const char* prefix,unsigned int v) +{ + return ImGui::Value(prefix,v); +} +CIMGUI_API void igValue_Float(const char* prefix,float v,const char* float_format) +{ + return ImGui::Value(prefix,v,float_format); +} +CIMGUI_API bool igBeginMenuBar() +{ + return ImGui::BeginMenuBar(); +} +CIMGUI_API void igEndMenuBar() +{ + return ImGui::EndMenuBar(); +} +CIMGUI_API bool igBeginMainMenuBar() +{ + return ImGui::BeginMainMenuBar(); +} +CIMGUI_API void igEndMainMenuBar() +{ + return ImGui::EndMainMenuBar(); +} +CIMGUI_API bool igBeginMenu(const char* label,bool enabled) +{ + return ImGui::BeginMenu(label,enabled); +} +CIMGUI_API void igEndMenu() +{ + return ImGui::EndMenu(); +} +CIMGUI_API bool igMenuItem_Bool(const char* label,const char* shortcut,bool selected,bool enabled) +{ + return ImGui::MenuItem(label,shortcut,selected,enabled); +} +CIMGUI_API bool igMenuItem_BoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled) +{ + return ImGui::MenuItem(label,shortcut,p_selected,enabled); +} +CIMGUI_API void igBeginTooltip() +{ + return ImGui::BeginTooltip(); +} +CIMGUI_API void igEndTooltip() +{ + return ImGui::EndTooltip(); +} +CIMGUI_API void igSetTooltip(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::SetTooltipV(fmt,args); + va_end(args); +} +CIMGUI_API void igSetTooltipV(const char* fmt,va_list args) +{ + return ImGui::SetTooltipV(fmt,args); +} +CIMGUI_API bool igBeginPopup(const char* str_id,ImGuiWindowFlags flags) +{ + return ImGui::BeginPopup(str_id,flags); +} +CIMGUI_API bool igBeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags) +{ + return ImGui::BeginPopupModal(name,p_open,flags); +} +CIMGUI_API void igEndPopup() +{ + return ImGui::EndPopup(); +} +CIMGUI_API void igOpenPopup_Str(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::OpenPopup(str_id,popup_flags); +} +CIMGUI_API void igOpenPopup_ID(ImGuiID id,ImGuiPopupFlags popup_flags) +{ + return ImGui::OpenPopup(id,popup_flags); +} +CIMGUI_API void igOpenPopupOnItemClick(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::OpenPopupOnItemClick(str_id,popup_flags); +} +CIMGUI_API void igCloseCurrentPopup() +{ + return ImGui::CloseCurrentPopup(); +} +CIMGUI_API bool igBeginPopupContextItem(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::BeginPopupContextItem(str_id,popup_flags); +} +CIMGUI_API bool igBeginPopupContextWindow(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::BeginPopupContextWindow(str_id,popup_flags); +} +CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,ImGuiPopupFlags popup_flags) +{ + return ImGui::BeginPopupContextVoid(str_id,popup_flags); +} +CIMGUI_API bool igIsPopupOpen(const char* str_id,ImGuiPopupFlags flags) +{ + return ImGui::IsPopupOpen(str_id,flags); +} +CIMGUI_API bool igBeginTable(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width) +{ + return ImGui::BeginTable(str_id,column,flags,outer_size,inner_width); +} +CIMGUI_API void igEndTable() +{ + return ImGui::EndTable(); +} +CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags,float min_row_height) +{ + return ImGui::TableNextRow(row_flags,min_row_height); +} +CIMGUI_API bool igTableNextColumn() +{ + return ImGui::TableNextColumn(); +} +CIMGUI_API bool igTableSetColumnIndex(int column_n) +{ + return ImGui::TableSetColumnIndex(column_n); +} +CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id) +{ + return ImGui::TableSetupColumn(label,flags,init_width_or_weight,user_id); +} +CIMGUI_API void igTableSetupScrollFreeze(int cols,int rows) +{ + return ImGui::TableSetupScrollFreeze(cols,rows); +} +CIMGUI_API void igTableHeadersRow() +{ + return ImGui::TableHeadersRow(); +} +CIMGUI_API void igTableHeader(const char* label) +{ + return ImGui::TableHeader(label); +} +CIMGUI_API ImGuiTableSortSpecs* igTableGetSortSpecs() +{ + return ImGui::TableGetSortSpecs(); +} +CIMGUI_API int igTableGetColumnCount() +{ + return ImGui::TableGetColumnCount(); +} +CIMGUI_API int igTableGetColumnIndex() +{ + return ImGui::TableGetColumnIndex(); +} +CIMGUI_API int igTableGetRowIndex() +{ + return ImGui::TableGetRowIndex(); +} +CIMGUI_API const char* igTableGetColumnName(int column_n) +{ + return ImGui::TableGetColumnName(column_n); +} +CIMGUI_API ImGuiTableColumnFlags igTableGetColumnFlags(int column_n) +{ + return ImGui::TableGetColumnFlags(column_n); +} +CIMGUI_API void igTableSetColumnEnabled(int column_n,bool v) +{ + return ImGui::TableSetColumnEnabled(column_n,v); +} +CIMGUI_API void igTableSetBgColor(ImGuiTableBgTarget target,ImU32 color,int column_n) +{ + return ImGui::TableSetBgColor(target,color,column_n); +} +CIMGUI_API void igColumns(int count,const char* id,bool border) +{ + return ImGui::Columns(count,id,border); +} +CIMGUI_API void igNextColumn() +{ + return ImGui::NextColumn(); +} +CIMGUI_API int igGetColumnIndex() +{ + return ImGui::GetColumnIndex(); +} +CIMGUI_API float igGetColumnWidth(int column_index) +{ + return ImGui::GetColumnWidth(column_index); +} +CIMGUI_API void igSetColumnWidth(int column_index,float width) +{ + return ImGui::SetColumnWidth(column_index,width); +} +CIMGUI_API float igGetColumnOffset(int column_index) +{ + return ImGui::GetColumnOffset(column_index); +} +CIMGUI_API void igSetColumnOffset(int column_index,float offset_x) +{ + return ImGui::SetColumnOffset(column_index,offset_x); +} +CIMGUI_API int igGetColumnsCount() +{ + return ImGui::GetColumnsCount(); +} +CIMGUI_API bool igBeginTabBar(const char* str_id,ImGuiTabBarFlags flags) +{ + return ImGui::BeginTabBar(str_id,flags); +} +CIMGUI_API void igEndTabBar() +{ + return ImGui::EndTabBar(); +} +CIMGUI_API bool igBeginTabItem(const char* label,bool* p_open,ImGuiTabItemFlags flags) +{ + return ImGui::BeginTabItem(label,p_open,flags); +} +CIMGUI_API void igEndTabItem() +{ + return ImGui::EndTabItem(); +} +CIMGUI_API bool igTabItemButton(const char* label,ImGuiTabItemFlags flags) +{ + return ImGui::TabItemButton(label,flags); +} +CIMGUI_API void igSetTabItemClosed(const char* tab_or_docked_window_label) +{ + return ImGui::SetTabItemClosed(tab_or_docked_window_label); +} +CIMGUI_API void igLogToTTY(int auto_open_depth) +{ + return ImGui::LogToTTY(auto_open_depth); +} +CIMGUI_API void igLogToFile(int auto_open_depth,const char* filename) +{ + return ImGui::LogToFile(auto_open_depth,filename); +} +CIMGUI_API void igLogToClipboard(int auto_open_depth) +{ + return ImGui::LogToClipboard(auto_open_depth); +} +CIMGUI_API void igLogFinish() +{ + return ImGui::LogFinish(); +} +CIMGUI_API void igLogButtons() +{ + return ImGui::LogButtons(); +} +CIMGUI_API void igLogTextV(const char* fmt,va_list args) +{ + return ImGui::LogTextV(fmt,args); +} +CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags) +{ + return ImGui::BeginDragDropSource(flags); +} +CIMGUI_API bool igSetDragDropPayload(const char* type,const void* data,size_t sz,ImGuiCond cond) +{ + return ImGui::SetDragDropPayload(type,data,sz,cond); +} +CIMGUI_API void igEndDragDropSource() +{ + return ImGui::EndDragDropSource(); +} +CIMGUI_API bool igBeginDragDropTarget() +{ + return ImGui::BeginDragDropTarget(); +} +CIMGUI_API const ImGuiPayload* igAcceptDragDropPayload(const char* type,ImGuiDragDropFlags flags) +{ + return ImGui::AcceptDragDropPayload(type,flags); +} +CIMGUI_API void igEndDragDropTarget() +{ + return ImGui::EndDragDropTarget(); +} +CIMGUI_API const ImGuiPayload* igGetDragDropPayload() +{ + return ImGui::GetDragDropPayload(); +} +CIMGUI_API void igBeginDisabled(bool disabled) +{ + return ImGui::BeginDisabled(disabled); +} +CIMGUI_API void igEndDisabled() +{ + return ImGui::EndDisabled(); +} +CIMGUI_API void igPushClipRect(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect) +{ + return ImGui::PushClipRect(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect); +} +CIMGUI_API void igPopClipRect() +{ + return ImGui::PopClipRect(); +} +CIMGUI_API void igSetItemDefaultFocus() +{ + return ImGui::SetItemDefaultFocus(); +} +CIMGUI_API void igSetKeyboardFocusHere(int offset) +{ + return ImGui::SetKeyboardFocusHere(offset); +} +CIMGUI_API bool igIsItemHovered(ImGuiHoveredFlags flags) +{ + return ImGui::IsItemHovered(flags); +} +CIMGUI_API bool igIsItemActive() +{ + return ImGui::IsItemActive(); +} +CIMGUI_API bool igIsItemFocused() +{ + return ImGui::IsItemFocused(); +} +CIMGUI_API bool igIsItemClicked(ImGuiMouseButton mouse_button) +{ + return ImGui::IsItemClicked(mouse_button); +} +CIMGUI_API bool igIsItemVisible() +{ + return ImGui::IsItemVisible(); +} +CIMGUI_API bool igIsItemEdited() +{ + return ImGui::IsItemEdited(); +} +CIMGUI_API bool igIsItemActivated() +{ + return ImGui::IsItemActivated(); +} +CIMGUI_API bool igIsItemDeactivated() +{ + return ImGui::IsItemDeactivated(); +} +CIMGUI_API bool igIsItemDeactivatedAfterEdit() +{ + return ImGui::IsItemDeactivatedAfterEdit(); +} +CIMGUI_API bool igIsItemToggledOpen() +{ + return ImGui::IsItemToggledOpen(); +} +CIMGUI_API bool igIsAnyItemHovered() +{ + return ImGui::IsAnyItemHovered(); +} +CIMGUI_API bool igIsAnyItemActive() +{ + return ImGui::IsAnyItemActive(); +} +CIMGUI_API bool igIsAnyItemFocused() +{ + return ImGui::IsAnyItemFocused(); +} +CIMGUI_API void igGetItemRectMin(ImVec2 *pOut) +{ + *pOut = ImGui::GetItemRectMin(); +} +CIMGUI_API void igGetItemRectMax(ImVec2 *pOut) +{ + *pOut = ImGui::GetItemRectMax(); +} +CIMGUI_API void igGetItemRectSize(ImVec2 *pOut) +{ + *pOut = ImGui::GetItemRectSize(); +} +CIMGUI_API void igSetItemAllowOverlap() +{ + return ImGui::SetItemAllowOverlap(); +} +CIMGUI_API ImGuiViewport* igGetMainViewport() +{ + return ImGui::GetMainViewport(); +} +CIMGUI_API ImDrawList* igGetBackgroundDrawList() +{ + return ImGui::GetBackgroundDrawList(); +} +CIMGUI_API ImDrawList* igGetForegroundDrawList() +{ + return ImGui::GetForegroundDrawList(); +} +CIMGUI_API bool igIsRectVisible_Nil(const ImVec2 size) +{ + return ImGui::IsRectVisible(size); +} +CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min,const ImVec2 rect_max) +{ + return ImGui::IsRectVisible(rect_min,rect_max); +} +CIMGUI_API double igGetTime() +{ + return ImGui::GetTime(); +} +CIMGUI_API int igGetFrameCount() +{ + return ImGui::GetFrameCount(); +} +CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData() +{ + return ImGui::GetDrawListSharedData(); +} +CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx) +{ + return ImGui::GetStyleColorName(idx); +} +CIMGUI_API void igSetStateStorage(ImGuiStorage* storage) +{ + return ImGui::SetStateStorage(storage); +} +CIMGUI_API ImGuiStorage* igGetStateStorage() +{ + return ImGui::GetStateStorage(); +} +CIMGUI_API bool igBeginChildFrame(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags) +{ + return ImGui::BeginChildFrame(id,size,flags); +} +CIMGUI_API void igEndChildFrame() +{ + return ImGui::EndChildFrame(); +} +CIMGUI_API void igCalcTextSize(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width) +{ + *pOut = ImGui::CalcTextSize(text,text_end,hide_text_after_double_hash,wrap_width); +} +CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in) +{ + *pOut = ImGui::ColorConvertU32ToFloat4(in); +} +CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in) +{ + return ImGui::ColorConvertFloat4ToU32(in); +} +CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v) +{ + return ImGui::ColorConvertRGBtoHSV(r,g,b,*out_h,*out_s,*out_v); +} +CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,float* out_g,float* out_b) +{ + return ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b); +} +CIMGUI_API bool igIsKeyDown(ImGuiKey key) +{ + return ImGui::IsKeyDown(key); +} +CIMGUI_API bool igIsKeyPressed(ImGuiKey key,bool repeat) +{ + return ImGui::IsKeyPressed(key,repeat); +} +CIMGUI_API bool igIsKeyReleased(ImGuiKey key) +{ + return ImGui::IsKeyReleased(key); +} +CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate) +{ + return ImGui::GetKeyPressedAmount(key,repeat_delay,rate); +} +CIMGUI_API const char* igGetKeyName(ImGuiKey key) +{ + return ImGui::GetKeyName(key); +} +CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) +{ + return ImGui::SetNextFrameWantCaptureKeyboard(want_capture_keyboard); +} +CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button) +{ + return ImGui::IsMouseDown(button); +} +CIMGUI_API bool igIsMouseClicked(ImGuiMouseButton button,bool repeat) +{ + return ImGui::IsMouseClicked(button,repeat); +} +CIMGUI_API bool igIsMouseReleased(ImGuiMouseButton button) +{ + return ImGui::IsMouseReleased(button); +} +CIMGUI_API bool igIsMouseDoubleClicked(ImGuiMouseButton button) +{ + return ImGui::IsMouseDoubleClicked(button); +} +CIMGUI_API int igGetMouseClickedCount(ImGuiMouseButton button) +{ + return ImGui::GetMouseClickedCount(button); +} +CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip) +{ + return ImGui::IsMouseHoveringRect(r_min,r_max,clip); +} +CIMGUI_API bool igIsMousePosValid(const ImVec2* mouse_pos) +{ + return ImGui::IsMousePosValid(mouse_pos); +} +CIMGUI_API bool igIsAnyMouseDown() +{ + return ImGui::IsAnyMouseDown(); +} +CIMGUI_API void igGetMousePos(ImVec2 *pOut) +{ + *pOut = ImGui::GetMousePos(); +} +CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(ImVec2 *pOut) +{ + *pOut = ImGui::GetMousePosOnOpeningCurrentPopup(); +} +CIMGUI_API bool igIsMouseDragging(ImGuiMouseButton button,float lock_threshold) +{ + return ImGui::IsMouseDragging(button,lock_threshold); +} +CIMGUI_API void igGetMouseDragDelta(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold) +{ + *pOut = ImGui::GetMouseDragDelta(button,lock_threshold); +} +CIMGUI_API void igResetMouseDragDelta(ImGuiMouseButton button) +{ + return ImGui::ResetMouseDragDelta(button); +} +CIMGUI_API ImGuiMouseCursor igGetMouseCursor() +{ + return ImGui::GetMouseCursor(); +} +CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type) +{ + return ImGui::SetMouseCursor(cursor_type); +} +CIMGUI_API void igSetNextFrameWantCaptureMouse(bool want_capture_mouse) +{ + return ImGui::SetNextFrameWantCaptureMouse(want_capture_mouse); +} +CIMGUI_API const char* igGetClipboardText() +{ + return ImGui::GetClipboardText(); +} +CIMGUI_API void igSetClipboardText(const char* text) +{ + return ImGui::SetClipboardText(text); +} +CIMGUI_API void igLoadIniSettingsFromDisk(const char* ini_filename) +{ + return ImGui::LoadIniSettingsFromDisk(ini_filename); +} +CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size) +{ + return ImGui::LoadIniSettingsFromMemory(ini_data,ini_size); +} +CIMGUI_API void igSaveIniSettingsToDisk(const char* ini_filename) +{ + return ImGui::SaveIniSettingsToDisk(ini_filename); +} +CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size) +{ + return ImGui::SaveIniSettingsToMemory(out_ini_size); +} +CIMGUI_API void igDebugTextEncoding(const char* text) +{ + return ImGui::DebugTextEncoding(text); +} +CIMGUI_API bool igDebugCheckVersionAndDataLayout(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 igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data) +{ + return ImGui::SetAllocatorFunctions(alloc_func,free_func,user_data); +} +CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data) +{ + return ImGui::GetAllocatorFunctions(p_alloc_func,p_free_func,p_user_data); +} +CIMGUI_API void* igMemAlloc(size_t size) +{ + return ImGui::MemAlloc(size); +} +CIMGUI_API void igMemFree(void* ptr) +{ + return ImGui::MemFree(ptr); +} +CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void) +{ + return IM_NEW(ImGuiStyle)(); +} +CIMGUI_API void ImGuiStyle_destroy(ImGuiStyle* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor) +{ + return self->ScaleAllSizes(scale_factor); +} +CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self,ImGuiKey key,bool down) +{ + return self->AddKeyEvent(key,down); +} +CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self,ImGuiKey key,bool down,float v) +{ + return self->AddKeyAnalogEvent(key,down,v); +} +CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self,float x,float y) +{ + return self->AddMousePosEvent(x,y); +} +CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self,int button,bool down) +{ + return self->AddMouseButtonEvent(button,down); +} +CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self,float wh_x,float wh_y) +{ + return self->AddMouseWheelEvent(wh_x,wh_y); +} +CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused) +{ + return self->AddFocusEvent(focused); +} +CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self,unsigned int c) +{ + return self->AddInputCharacter(c); +} +CIMGUI_API void ImGuiIO_AddInputCharacterUTF16(ImGuiIO* self,ImWchar16 c) +{ + return self->AddInputCharacterUTF16(c); +} +CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* str) +{ + return self->AddInputCharactersUTF8(str); +} +CIMGUI_API void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index) +{ + return self->SetKeyEventNativeData(key,native_keycode,native_scancode,native_legacy_index); +} +CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self,bool accepting_events) +{ + return self->SetAppAcceptingEvents(accepting_events); +} +CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self) +{ + return self->ClearInputCharacters(); +} +CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self) +{ + return self->ClearInputKeys(); +} +CIMGUI_API ImGuiIO* ImGuiIO_ImGuiIO(void) +{ + return IM_NEW(ImGuiIO)(); +} +CIMGUI_API void ImGuiIO_destroy(ImGuiIO* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiInputTextCallbackData* ImGuiInputTextCallbackData_ImGuiInputTextCallbackData(void) +{ + return IM_NEW(ImGuiInputTextCallbackData)(); +} +CIMGUI_API void ImGuiInputTextCallbackData_destroy(ImGuiInputTextCallbackData* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count) +{ + return self->DeleteChars(pos,bytes_count); +} +CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end) +{ + return self->InsertChars(pos,text,text_end); +} +CIMGUI_API void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self) +{ + return self->SelectAll(); +} +CIMGUI_API void ImGuiInputTextCallbackData_ClearSelection(ImGuiInputTextCallbackData* self) +{ + return self->ClearSelection(); +} +CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self) +{ + return self->HasSelection(); +} +CIMGUI_API ImGuiPayload* ImGuiPayload_ImGuiPayload(void) +{ + return IM_NEW(ImGuiPayload)(); +} +CIMGUI_API void ImGuiPayload_destroy(ImGuiPayload* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self) +{ + return self->Clear(); +} +CIMGUI_API bool ImGuiPayload_IsDataType(ImGuiPayload* self,const char* type) +{ + return self->IsDataType(type); +} +CIMGUI_API bool ImGuiPayload_IsPreview(ImGuiPayload* self) +{ + return self->IsPreview(); +} +CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self) +{ + return self->IsDelivery(); +} +CIMGUI_API ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs(void) +{ + return IM_NEW(ImGuiTableColumnSortSpecs)(); +} +CIMGUI_API void ImGuiTableColumnSortSpecs_destroy(ImGuiTableColumnSortSpecs* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTableSortSpecs* ImGuiTableSortSpecs_ImGuiTableSortSpecs(void) +{ + return IM_NEW(ImGuiTableSortSpecs)(); +} +CIMGUI_API void ImGuiTableSortSpecs_destroy(ImGuiTableSortSpecs* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiOnceUponAFrame* ImGuiOnceUponAFrame_ImGuiOnceUponAFrame(void) +{ + return IM_NEW(ImGuiOnceUponAFrame)(); +} +CIMGUI_API void ImGuiOnceUponAFrame_destroy(ImGuiOnceUponAFrame* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_ImGuiTextFilter(const char* default_filter) +{ + return IM_NEW(ImGuiTextFilter)(default_filter); +} +CIMGUI_API void ImGuiTextFilter_destroy(ImGuiTextFilter* self) +{ + IM_DELETE(self); +} +CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width) +{ + return self->Draw(label,width); +} +CIMGUI_API bool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self,const char* text,const char* text_end) +{ + return self->PassFilter(text,text_end); +} +CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self) +{ + return self->Build(); +} +CIMGUI_API void ImGuiTextFilter_Clear(ImGuiTextFilter* self) +{ + return self->Clear(); +} +CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self) +{ + return self->IsActive(); +} +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(void) +{ + return IM_NEW(ImGuiTextRange)(); +} +CIMGUI_API void ImGuiTextRange_destroy(ImGuiTextRange* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b,const char* _e) +{ + return IM_NEW(ImGuiTextRange)(_b,_e); +} +CIMGUI_API bool ImGuiTextRange_empty(ImGuiTextRange* self) +{ + return self->empty(); +} +CIMGUI_API void ImGuiTextRange_split(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out) +{ + return self->split(separator,out); +} +CIMGUI_API ImGuiTextBuffer* ImGuiTextBuffer_ImGuiTextBuffer(void) +{ + return IM_NEW(ImGuiTextBuffer)(); +} +CIMGUI_API void ImGuiTextBuffer_destroy(ImGuiTextBuffer* self) +{ + IM_DELETE(self); +} +CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self) +{ + return self->begin(); +} +CIMGUI_API const char* ImGuiTextBuffer_end(ImGuiTextBuffer* self) +{ + return self->end(); +} +CIMGUI_API int ImGuiTextBuffer_size(ImGuiTextBuffer* self) +{ + return self->size(); +} +CIMGUI_API bool ImGuiTextBuffer_empty(ImGuiTextBuffer* self) +{ + return self->empty(); +} +CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self) +{ + return self->clear(); +} +CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity) +{ + return self->reserve(capacity); +} +CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self) +{ + return self->c_str(); +} +CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end) +{ + return self->append(str,str_end); +} +CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,va_list args) +{ + return self->appendfv(fmt,args); +} +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key,int _val_i) +{ + return IM_NEW(ImGuiStoragePair)(_key,_val_i); +} +CIMGUI_API void ImGuiStoragePair_destroy(ImGuiStoragePair* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key,float _val_f) +{ + return IM_NEW(ImGuiStoragePair)(_key,_val_f); +} +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key,void* _val_p) +{ + return IM_NEW(ImGuiStoragePair)(_key,_val_p); +} +CIMGUI_API void ImGuiStorage_Clear(ImGuiStorage* self) +{ + return self->Clear(); +} +CIMGUI_API int ImGuiStorage_GetInt(ImGuiStorage* self,ImGuiID key,int default_val) +{ + return self->GetInt(key,default_val); +} +CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self,ImGuiID key,int val) +{ + return self->SetInt(key,val); +} +CIMGUI_API bool ImGuiStorage_GetBool(ImGuiStorage* self,ImGuiID key,bool default_val) +{ + return self->GetBool(key,default_val); +} +CIMGUI_API void ImGuiStorage_SetBool(ImGuiStorage* self,ImGuiID key,bool val) +{ + return self->SetBool(key,val); +} +CIMGUI_API float ImGuiStorage_GetFloat(ImGuiStorage* self,ImGuiID key,float default_val) +{ + return self->GetFloat(key,default_val); +} +CIMGUI_API void ImGuiStorage_SetFloat(ImGuiStorage* self,ImGuiID key,float val) +{ + return self->SetFloat(key,val); +} +CIMGUI_API void* ImGuiStorage_GetVoidPtr(ImGuiStorage* self,ImGuiID key) +{ + return self->GetVoidPtr(key); +} +CIMGUI_API void ImGuiStorage_SetVoidPtr(ImGuiStorage* self,ImGuiID key,void* val) +{ + return self->SetVoidPtr(key,val); +} +CIMGUI_API int* ImGuiStorage_GetIntRef(ImGuiStorage* self,ImGuiID key,int default_val) +{ + return self->GetIntRef(key,default_val); +} +CIMGUI_API bool* ImGuiStorage_GetBoolRef(ImGuiStorage* self,ImGuiID key,bool default_val) +{ + return self->GetBoolRef(key,default_val); +} +CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self,ImGuiID key,float default_val) +{ + return self->GetFloatRef(key,default_val); +} +CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self,ImGuiID key,void* default_val) +{ + return self->GetVoidPtrRef(key,default_val); +} +CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self,int val) +{ + return self->SetAllInt(val); +} +CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self) +{ + return self->BuildSortByKey(); +} +CIMGUI_API ImGuiListClipper* ImGuiListClipper_ImGuiListClipper(void) +{ + return IM_NEW(ImGuiListClipper)(); +} +CIMGUI_API void ImGuiListClipper_destroy(ImGuiListClipper* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self,int items_count,float items_height) +{ + return self->Begin(items_count,items_height); +} +CIMGUI_API void ImGuiListClipper_End(ImGuiListClipper* self) +{ + return self->End(); +} +CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self) +{ + return self->Step(); +} +CIMGUI_API void ImGuiListClipper_ForceDisplayRangeByIndices(ImGuiListClipper* self,int item_min,int item_max) +{ + return self->ForceDisplayRangeByIndices(item_min,item_max); +} +CIMGUI_API ImColor* ImColor_ImColor_Nil(void) +{ + return IM_NEW(ImColor)(); +} +CIMGUI_API void ImColor_destroy(ImColor* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImColor* ImColor_ImColor_Float(float r,float g,float b,float a) +{ + return IM_NEW(ImColor)(r,g,b,a); +} +CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col) +{ + return IM_NEW(ImColor)(col); +} +CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a) +{ + return IM_NEW(ImColor)(r,g,b,a); +} +CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba) +{ + return IM_NEW(ImColor)(rgba); +} +CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a) +{ + return self->SetHSV(h,s,v,a); +} +CIMGUI_API void ImColor_HSV(ImColor *pOut,float h,float s,float v,float a) +{ + *pOut = ImColor::HSV(h,s,v,a); +} +CIMGUI_API ImDrawCmd* ImDrawCmd_ImDrawCmd(void) +{ + return IM_NEW(ImDrawCmd)(); +} +CIMGUI_API void ImDrawCmd_destroy(ImDrawCmd* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImTextureID ImDrawCmd_GetTexID(ImDrawCmd* self) +{ + return self->GetTexID(); +} +CIMGUI_API ImDrawListSplitter* ImDrawListSplitter_ImDrawListSplitter(void) +{ + return IM_NEW(ImDrawListSplitter)(); +} +CIMGUI_API void ImDrawListSplitter_destroy(ImDrawListSplitter* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImDrawListSplitter_Clear(ImDrawListSplitter* self) +{ + return self->Clear(); +} +CIMGUI_API void ImDrawListSplitter_ClearFreeMemory(ImDrawListSplitter* self) +{ + return self->ClearFreeMemory(); +} +CIMGUI_API void ImDrawListSplitter_Split(ImDrawListSplitter* self,ImDrawList* draw_list,int count) +{ + return self->Split(draw_list,count); +} +CIMGUI_API void ImDrawListSplitter_Merge(ImDrawListSplitter* self,ImDrawList* draw_list) +{ + return self->Merge(draw_list); +} +CIMGUI_API void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self,ImDrawList* draw_list,int channel_idx) +{ + return self->SetCurrentChannel(draw_list,channel_idx); +} +CIMGUI_API ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data) +{ + return IM_NEW(ImDrawList)(shared_data); +} +CIMGUI_API void ImDrawList_destroy(ImDrawList* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect) +{ + return self->PushClipRect(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect); +} +CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* self) +{ + return self->PushClipRectFullScreen(); +} +CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* self) +{ + return self->PopClipRect(); +} +CIMGUI_API void ImDrawList_PushTextureID(ImDrawList* self,ImTextureID texture_id) +{ + return self->PushTextureID(texture_id); +} +CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self) +{ + return self->PopTextureID(); +} +CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2 *pOut,ImDrawList* self) +{ + *pOut = self->GetClipRectMin(); +} +CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2 *pOut,ImDrawList* self) +{ + *pOut = self->GetClipRectMax(); +} +CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness) +{ + return self->AddLine(p1,p2,col,thickness); +} +CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness) +{ + return self->AddRect(p_min,p_max,col,rounding,flags,thickness); +} +CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags) +{ + return self->AddRectFilled(p_min,p_max,col,rounding,flags); +} +CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left) +{ + return self->AddRectFilledMultiColor(p_min,p_max,col_upr_left,col_upr_right,col_bot_right,col_bot_left); +} +CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness) +{ + return self->AddQuad(p1,p2,p3,p4,col,thickness); +} +CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col) +{ + return self->AddQuadFilled(p1,p2,p3,p4,col); +} +CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness) +{ + return self->AddTriangle(p1,p2,p3,col,thickness); +} +CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col) +{ + return self->AddTriangleFilled(p1,p2,p3,col); +} +CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness) +{ + return self->AddCircle(center,radius,col,num_segments,thickness); +} +CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments) +{ + return self->AddCircleFilled(center,radius,col,num_segments); +} +CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness) +{ + return self->AddNgon(center,radius,col,num_segments,thickness); +} +CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments) +{ + return self->AddNgonFilled(center,radius,col,num_segments); +} +CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end) +{ + return self->AddText(pos,col,text_begin,text_end); +} +CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect) +{ + return self->AddText(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect); +} +CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness) +{ + return self->AddPolyline(points,num_points,col,flags,thickness); +} +CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col) +{ + return self->AddConvexPolyFilled(points,num_points,col); +} +CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments) +{ + return self->AddBezierCubic(p1,p2,p3,p4,col,thickness,num_segments); +} +CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments) +{ + return self->AddBezierQuadratic(p1,p2,p3,col,thickness,num_segments); +} +CIMGUI_API void ImDrawList_AddImage(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col) +{ + return self->AddImage(user_texture_id,p_min,p_max,uv_min,uv_max,col); +} +CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col) +{ + return self->AddImageQuad(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col); +} +CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags) +{ + return self->AddImageRounded(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags); +} +CIMGUI_API void ImDrawList_PathClear(ImDrawList* self) +{ + return self->PathClear(); +} +CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos) +{ + return self->PathLineTo(pos); +} +CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos) +{ + return self->PathLineToMergeDuplicate(pos); +} +CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col) +{ + return self->PathFillConvex(col); +} +CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness) +{ + return self->PathStroke(col,flags,thickness); +} +CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments) +{ + return self->PathArcTo(center,radius,a_min,a_max,num_segments); +} +CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12) +{ + return self->PathArcToFast(center,radius,a_min_of_12,a_max_of_12); +} +CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments) +{ + return self->PathBezierCubicCurveTo(p2,p3,p4,num_segments); +} +CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments) +{ + return self->PathBezierQuadraticCurveTo(p2,p3,num_segments); +} +CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags) +{ + return self->PathRect(rect_min,rect_max,rounding,flags); +} +CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self,ImDrawCallback callback,void* callback_data) +{ + return self->AddCallback(callback,callback_data); +} +CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self) +{ + return self->AddDrawCmd(); +} +CIMGUI_API ImDrawList* ImDrawList_CloneOutput(ImDrawList* self) +{ + return self->CloneOutput(); +} +CIMGUI_API void ImDrawList_ChannelsSplit(ImDrawList* self,int count) +{ + return self->ChannelsSplit(count); +} +CIMGUI_API void ImDrawList_ChannelsMerge(ImDrawList* self) +{ + return self->ChannelsMerge(); +} +CIMGUI_API void ImDrawList_ChannelsSetCurrent(ImDrawList* self,int n) +{ + return self->ChannelsSetCurrent(n); +} +CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* self,int idx_count,int vtx_count) +{ + return self->PrimReserve(idx_count,vtx_count); +} +CIMGUI_API void ImDrawList_PrimUnreserve(ImDrawList* self,int idx_count,int vtx_count) +{ + return self->PrimUnreserve(idx_count,vtx_count); +} +CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col) +{ + return self->PrimRect(a,b,col); +} +CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col) +{ + return self->PrimRectUV(a,b,uv_a,uv_b,col); +} +CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col) +{ + return self->PrimQuadUV(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col); +} +CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col) +{ + return self->PrimWriteVtx(pos,uv,col); +} +CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx) +{ + return self->PrimWriteIdx(idx); +} +CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col) +{ + return self->PrimVtx(pos,uv,col); +} +CIMGUI_API void ImDrawList__ResetForNewFrame(ImDrawList* self) +{ + return self->_ResetForNewFrame(); +} +CIMGUI_API void ImDrawList__ClearFreeMemory(ImDrawList* self) +{ + return self->_ClearFreeMemory(); +} +CIMGUI_API void ImDrawList__PopUnusedDrawCmd(ImDrawList* self) +{ + return self->_PopUnusedDrawCmd(); +} +CIMGUI_API void ImDrawList__TryMergeDrawCmds(ImDrawList* self) +{ + return self->_TryMergeDrawCmds(); +} +CIMGUI_API void ImDrawList__OnChangedClipRect(ImDrawList* self) +{ + return self->_OnChangedClipRect(); +} +CIMGUI_API void ImDrawList__OnChangedTextureID(ImDrawList* self) +{ + return self->_OnChangedTextureID(); +} +CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self) +{ + return self->_OnChangedVtxOffset(); +} +CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self,float radius) +{ + return self->_CalcCircleAutoSegmentCount(radius); +} +CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step) +{ + return self->_PathArcToFastEx(center,radius,a_min_sample,a_max_sample,a_step); +} +CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments) +{ + return self->_PathArcToN(center,radius,a_min,a_max,num_segments); +} +CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void) +{ + return IM_NEW(ImDrawData)(); +} +CIMGUI_API void ImDrawData_destroy(ImDrawData* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImDrawData_Clear(ImDrawData* self) +{ + return self->Clear(); +} +CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* self) +{ + return self->DeIndexAllBuffers(); +} +CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self,const ImVec2 fb_scale) +{ + return self->ScaleClipRects(fb_scale); +} +CIMGUI_API ImFontConfig* ImFontConfig_ImFontConfig(void) +{ + return IM_NEW(ImFontConfig)(); +} +CIMGUI_API void ImFontConfig_destroy(ImFontConfig* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder(void) +{ + return IM_NEW(ImFontGlyphRangesBuilder)(); +} +CIMGUI_API void ImFontGlyphRangesBuilder_destroy(ImFontGlyphRangesBuilder* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self) +{ + return self->Clear(); +} +CIMGUI_API bool ImFontGlyphRangesBuilder_GetBit(ImFontGlyphRangesBuilder* self,size_t n) +{ + return self->GetBit(n); +} +CIMGUI_API void ImFontGlyphRangesBuilder_SetBit(ImFontGlyphRangesBuilder* self,size_t n) +{ + return self->SetBit(n); +} +CIMGUI_API void ImFontGlyphRangesBuilder_AddChar(ImFontGlyphRangesBuilder* self,ImWchar c) +{ + return self->AddChar(c); +} +CIMGUI_API void ImFontGlyphRangesBuilder_AddText(ImFontGlyphRangesBuilder* self,const char* text,const char* text_end) +{ + return self->AddText(text,text_end); +} +CIMGUI_API void ImFontGlyphRangesBuilder_AddRanges(ImFontGlyphRangesBuilder* self,const ImWchar* ranges) +{ + return self->AddRanges(ranges); +} +CIMGUI_API void ImFontGlyphRangesBuilder_BuildRanges(ImFontGlyphRangesBuilder* self,ImVector_ImWchar* out_ranges) +{ + return self->BuildRanges(out_ranges); +} +CIMGUI_API ImFontAtlasCustomRect* ImFontAtlasCustomRect_ImFontAtlasCustomRect(void) +{ + return IM_NEW(ImFontAtlasCustomRect)(); +} +CIMGUI_API void ImFontAtlasCustomRect_destroy(ImFontAtlasCustomRect* self) +{ + IM_DELETE(self); +} +CIMGUI_API bool ImFontAtlasCustomRect_IsPacked(ImFontAtlasCustomRect* self) +{ + return self->IsPacked(); +} +CIMGUI_API ImFontAtlas* ImFontAtlas_ImFontAtlas(void) +{ + return IM_NEW(ImFontAtlas)(); +} +CIMGUI_API void ImFontAtlas_destroy(ImFontAtlas* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self,const ImFontConfig* font_cfg) +{ + return self->AddFont(font_cfg); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self,const ImFontConfig* font_cfg) +{ + return self->AddFontDefault(font_cfg); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self,const char* filename,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges) +{ + return self->AddFontFromFileTTF(filename,size_pixels,font_cfg,glyph_ranges); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self,void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges) +{ + return self->AddFontFromMemoryTTF(font_data,font_size,size_pixels,font_cfg,glyph_ranges); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges) +{ + return self->AddFontFromMemoryCompressedTTF(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges); +} +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges) +{ + return self->AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges); +} +CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self) +{ + return self->ClearInputData(); +} +CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self) +{ + return self->ClearTexData(); +} +CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self) +{ + return self->ClearFonts(); +} +CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self) +{ + return self->Clear(); +} +CIMGUI_API bool ImFontAtlas_Build(ImFontAtlas* self) +{ + return self->Build(); +} +CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel) +{ + return self->GetTexDataAsAlpha8(out_pixels,out_width,out_height,out_bytes_per_pixel); +} +CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel) +{ + return self->GetTexDataAsRGBA32(out_pixels,out_width,out_height,out_bytes_per_pixel); +} +CIMGUI_API bool ImFontAtlas_IsBuilt(ImFontAtlas* self) +{ + return self->IsBuilt(); +} +CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self,ImTextureID id) +{ + return self->SetTexID(id); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self) +{ + return self->GetGlyphRangesDefault(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self) +{ + return self->GetGlyphRangesGreek(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self) +{ + return self->GetGlyphRangesKorean(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self) +{ + return self->GetGlyphRangesJapanese(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self) +{ + return self->GetGlyphRangesChineseFull(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self) +{ + return self->GetGlyphRangesChineseSimplifiedCommon(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(ImFontAtlas* self) +{ + return self->GetGlyphRangesCyrillic(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesThai(ImFontAtlas* self) +{ + return self->GetGlyphRangesThai(); +} +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesVietnamese(ImFontAtlas* self) +{ + return self->GetGlyphRangesVietnamese(); +} +CIMGUI_API int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self,int width,int height) +{ + return self->AddCustomRectRegular(width,height); +} +CIMGUI_API int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset) +{ + return self->AddCustomRectFontGlyph(font,id,width,height,advance_x,offset); +} +CIMGUI_API ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self,int index) +{ + return self->GetCustomRectByIndex(index); +} +CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max) +{ + return self->CalcCustomRectUV(rect,out_uv_min,out_uv_max); +} +CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2]) +{ + return self->GetMouseCursorTexData(cursor,out_offset,out_size,out_uv_border,out_uv_fill); +} +CIMGUI_API ImFont* ImFont_ImFont(void) +{ + return IM_NEW(ImFont)(); +} +CIMGUI_API void ImFont_destroy(ImFont* self) +{ + IM_DELETE(self); +} +CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c) +{ + return self->FindGlyph(c); +} +CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c) +{ + return self->FindGlyphNoFallback(c); +} +CIMGUI_API float ImFont_GetCharAdvance(ImFont* self,ImWchar c) +{ + return self->GetCharAdvance(c); +} +CIMGUI_API bool ImFont_IsLoaded(ImFont* self) +{ + return self->IsLoaded(); +} +CIMGUI_API const char* ImFont_GetDebugName(ImFont* self) +{ + return self->GetDebugName(); +} +CIMGUI_API void ImFont_CalcTextSizeA(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining) +{ + *pOut = self->CalcTextSizeA(size,max_width,wrap_width,text_begin,text_end,remaining); +} +CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width) +{ + return self->CalcWordWrapPositionA(scale,text,text_end,wrap_width); +} +CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c) +{ + return self->RenderChar(draw_list,size,pos,col,c); +} +CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip) +{ + return self->RenderText(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip); +} +CIMGUI_API void ImFont_BuildLookupTable(ImFont* self) +{ + return self->BuildLookupTable(); +} +CIMGUI_API void ImFont_ClearOutputData(ImFont* self) +{ + return self->ClearOutputData(); +} +CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size) +{ + return self->GrowIndex(new_size); +} +CIMGUI_API void ImFont_AddGlyph(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x) +{ + return self->AddGlyph(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,advance_x); +} +CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst) +{ + return self->AddRemapChar(dst,src,overwrite_dst); +} +CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self,ImWchar c,bool visible) +{ + return self->SetGlyphVisible(c,visible); +} +CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last) +{ + return self->IsGlyphRangeUnused(c_begin,c_last); +} +CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void) +{ + return IM_NEW(ImGuiViewport)(); +} +CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self) +{ + *pOut = self->GetCenter(); +} +CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self) +{ + *pOut = self->GetWorkCenter(); +} +CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void) +{ + return IM_NEW(ImGuiPlatformImeData)(); +} +CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key) +{ + return ImGui::GetKeyIndex(key); +} +CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType() +{ + return ImGuiFreeType::GetBuilderForFreeType(); +} +CIMGUI_API void ImGuiFreeType_SetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data) +{ + return ImGuiFreeType::SetAllocatorFunctions(alloc_func,free_func,user_data); +} + + + +/////////////////////////////manual written functions +CIMGUI_API void igLogText(CONST char *fmt, ...) +{ + char buffer[256]; + va_list args; + va_start(args, fmt); + vsnprintf(buffer, 256, fmt, args); + va_end(args); + + ImGui::LogText("%s", buffer); +} +CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + buffer->appendfv(fmt, args); + va_end(args); +} + +CIMGUI_API float igGET_FLT_MAX() +{ + return FLT_MAX; +} + +CIMGUI_API float igGET_FLT_MIN() +{ + return FLT_MIN; +} + + +CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create() +{ + return IM_NEW(ImVector) (); +} + +CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self) +{ + IM_DELETE(self); +} + +CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p) +{ + IM_PLACEMENT_NEW(p) ImVector(); +} +CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p) +{ + p->~ImVector(); +} + + +#ifdef IMGUI_HAS_DOCK + +// NOTE: Some function pointers in the ImGuiPlatformIO structure are not C-compatible because of their +// use of a complex return type. To work around this, we store a custom CimguiStorage object inside +// ImGuiIO::BackendLanguageUserData, which contains C-compatible function pointer variants for these +// functions. When a user function pointer is provided, we hook up the underlying ImGuiPlatformIO +// function pointer to a thunk which accesses the user function pointer through CimguiStorage. + +struct CimguiStorage +{ + void(*Platform_GetWindowPos)(ImGuiViewport* vp, ImVec2* out_pos); + void(*Platform_GetWindowSize)(ImGuiViewport* vp, ImVec2* out_pos); +}; + +// Gets a reference to the CimguiStorage object stored in the current ImGui context's BackendLanguageUserData. +CimguiStorage& GetCimguiStorage() +{ + ImGuiIO& io = ImGui::GetIO(); + if (io.BackendLanguageUserData == NULL) + { + io.BackendLanguageUserData = new CimguiStorage(); + } + + return *(CimguiStorage*)io.BackendLanguageUserData; +} + +// Thunk satisfying the signature of ImGuiPlatformIO::Platform_GetWindowPos. +ImVec2 Platform_GetWindowPos_hook(ImGuiViewport* vp) +{ + ImVec2 pos; + GetCimguiStorage().Platform_GetWindowPos(vp, &pos); + return pos; +}; + +// Fully C-compatible function pointer setter for ImGuiPlatformIO::Platform_GetWindowPos. +CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowPos(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_pos)) +{ + CimguiStorage& storage = GetCimguiStorage(); + storage.Platform_GetWindowPos = user_callback; + platform_io->Platform_GetWindowPos = &Platform_GetWindowPos_hook; +} + +// Thunk satisfying the signature of ImGuiPlatformIO::Platform_GetWindowSize. +ImVec2 Platform_GetWindowSize_hook(ImGuiViewport* vp) +{ + ImVec2 size; + GetCimguiStorage().Platform_GetWindowSize(vp, &size); + return size; +}; + +// Fully C-compatible function pointer setter for ImGuiPlatformIO::Platform_GetWindowSize. +CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowSize(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_size)) +{ + CimguiStorage& storage = GetCimguiStorage(); + storage.Platform_GetWindowSize = user_callback; + platform_io->Platform_GetWindowSize = &Platform_GetWindowSize_hook; +} + +#endif diff --git a/imgui-sys/third-party/imgui-master-freetype/cimgui.h b/imgui-sys/third-party/imgui-master-freetype/cimgui.h new file mode 100644 index 000000000..b6129be42 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/cimgui.h @@ -0,0 +1,1930 @@ +//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui +//based on imgui.h file version "1.89.1 WIP" 18910 from Dear ImGui https://github.com/ocornut/imgui +//with imgui_freetype.h api +#ifndef CIMGUI_INCLUDED +#define CIMGUI_INCLUDED +#include +#include +#if defined _WIN32 || defined __CYGWIN__ + #ifdef CIMGUI_NO_EXPORT + #define API + #else + #define API __declspec(dllexport) + #endif +#else + #ifdef __GNUC__ + #define API __attribute__((__visibility__("default"))) + #else + #define API + #endif +#endif + +#if defined __cplusplus + #define EXTERN extern "C" +#else + #include + #include + #define EXTERN extern +#endif + +#define CIMGUI_API EXTERN API +#define CONST const + + +#ifdef _MSC_VER +typedef unsigned __int64 ImU64; +#else +//typedef unsigned long long ImU64; +#endif + + +#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS + +typedef struct ImDrawChannel ImDrawChannel; +typedef struct ImDrawCmd ImDrawCmd; +typedef struct ImDrawData ImDrawData; +typedef struct ImDrawList ImDrawList; +typedef struct ImDrawListSharedData ImDrawListSharedData; +typedef struct ImDrawListSplitter ImDrawListSplitter; +typedef struct ImDrawVert ImDrawVert; +typedef struct ImFont ImFont; +typedef struct ImFontAtlas ImFontAtlas; +typedef struct ImFontBuilderIO ImFontBuilderIO; +typedef struct ImFontConfig ImFontConfig; +typedef struct ImFontGlyph ImFontGlyph; +typedef struct ImFontGlyphRangesBuilder ImFontGlyphRangesBuilder; +typedef struct ImColor ImColor; +typedef struct ImGuiContext ImGuiContext; +typedef struct ImGuiIO ImGuiIO; +typedef struct ImGuiInputTextCallbackData ImGuiInputTextCallbackData; +typedef struct ImGuiKeyData ImGuiKeyData; +typedef struct ImGuiListClipper ImGuiListClipper; +typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame; +typedef struct ImGuiPayload ImGuiPayload; +typedef struct ImGuiPlatformImeData ImGuiPlatformImeData; +typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData; +typedef struct ImGuiStorage ImGuiStorage; +typedef struct ImGuiStyle ImGuiStyle; +typedef struct ImGuiTableSortSpecs ImGuiTableSortSpecs; +typedef struct ImGuiTableColumnSortSpecs ImGuiTableColumnSortSpecs; +typedef struct ImGuiTextBuffer ImGuiTextBuffer; +typedef struct ImGuiTextFilter ImGuiTextFilter; +typedef struct ImGuiViewport ImGuiViewport; +struct ImDrawChannel; +struct ImDrawCmd; +struct ImDrawData; +struct ImDrawList; +struct ImDrawListSharedData; +struct ImDrawListSplitter; +struct ImDrawVert; +struct ImFont; +struct ImFontAtlas; +struct ImFontBuilderIO; +struct ImFontConfig; +struct ImFontGlyph; +struct ImFontGlyphRangesBuilder; +struct ImColor; +struct ImGuiContext; +struct ImGuiIO; +struct ImGuiInputTextCallbackData; +struct ImGuiKeyData; +struct ImGuiListClipper; +struct ImGuiOnceUponAFrame; +struct ImGuiPayload; +struct ImGuiPlatformImeData; +struct ImGuiSizeCallbackData; +struct ImGuiStorage; +struct ImGuiStyle; +struct ImGuiTableSortSpecs; +struct ImGuiTableColumnSortSpecs; +struct ImGuiTextBuffer; +struct ImGuiTextFilter; +struct ImGuiViewport; +typedef int ImGuiCol; +typedef int ImGuiCond; +typedef int ImGuiDataType; +typedef int ImGuiDir; +typedef int ImGuiMouseButton; +typedef int ImGuiMouseCursor; +typedef int ImGuiSortDirection; +typedef int ImGuiStyleVar; +typedef int ImGuiTableBgTarget; +typedef int ImDrawFlags; +typedef int ImDrawListFlags; +typedef int ImFontAtlasFlags; +typedef int ImGuiBackendFlags; +typedef int ImGuiButtonFlags; +typedef int ImGuiColorEditFlags; +typedef int ImGuiConfigFlags; +typedef int ImGuiComboFlags; +typedef int ImGuiDragDropFlags; +typedef int ImGuiFocusedFlags; +typedef int ImGuiHoveredFlags; +typedef int ImGuiInputTextFlags; +typedef int ImGuiKeyChord; +typedef int ImGuiPopupFlags; +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 void* ImTextureID; +typedef unsigned short ImDrawIdx; +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 unsigned short ImWchar16; +typedef unsigned int ImWchar32; +typedef ImWchar32 ImWchar; +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 struct ImVec2 ImVec2; +struct ImVec2 +{ + float x, y; +}; +typedef struct ImVec4 ImVec4; +struct ImVec4 +{ + float x, y, z, w; +}; +typedef enum { + ImGuiWindowFlags_None = 0, + ImGuiWindowFlags_NoTitleBar = 1 << 0, + ImGuiWindowFlags_NoResize = 1 << 1, + ImGuiWindowFlags_NoMove = 1 << 2, + ImGuiWindowFlags_NoScrollbar = 1 << 3, + ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, + ImGuiWindowFlags_NoCollapse = 1 << 5, + ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, + ImGuiWindowFlags_NoBackground = 1 << 7, + ImGuiWindowFlags_NoSavedSettings = 1 << 8, + ImGuiWindowFlags_NoMouseInputs = 1 << 9, + ImGuiWindowFlags_MenuBar = 1 << 10, + ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, + ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, + ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, + ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, + ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, + ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, + ImGuiWindowFlags_NoNavInputs = 1 << 18, + ImGuiWindowFlags_NoNavFocus = 1 << 19, + ImGuiWindowFlags_UnsavedDocument = 1 << 20, + ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, + ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NavFlattened = 1 << 23, + ImGuiWindowFlags_ChildWindow = 1 << 24, + ImGuiWindowFlags_Tooltip = 1 << 25, + ImGuiWindowFlags_Popup = 1 << 26, + ImGuiWindowFlags_Modal = 1 << 27, + ImGuiWindowFlags_ChildMenu = 1 << 28, +}ImGuiWindowFlags_; +typedef enum { + ImGuiInputTextFlags_None = 0, + ImGuiInputTextFlags_CharsDecimal = 1 << 0, + ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, + ImGuiInputTextFlags_CharsUppercase = 1 << 2, + ImGuiInputTextFlags_CharsNoBlank = 1 << 3, + ImGuiInputTextFlags_AutoSelectAll = 1 << 4, + ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, + ImGuiInputTextFlags_CallbackCompletion = 1 << 6, + ImGuiInputTextFlags_CallbackHistory = 1 << 7, + ImGuiInputTextFlags_CallbackAlways = 1 << 8, + ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, + ImGuiInputTextFlags_AllowTabInput = 1 << 10, + ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, + ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, + ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13, + ImGuiInputTextFlags_ReadOnly = 1 << 14, + ImGuiInputTextFlags_Password = 1 << 15, + ImGuiInputTextFlags_NoUndoRedo = 1 << 16, + ImGuiInputTextFlags_CharsScientific = 1 << 17, + ImGuiInputTextFlags_CallbackResize = 1 << 18, + ImGuiInputTextFlags_CallbackEdit = 1 << 19, + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, +}ImGuiInputTextFlags_; +typedef enum { + ImGuiTreeNodeFlags_None = 0, + ImGuiTreeNodeFlags_Selected = 1 << 0, + ImGuiTreeNodeFlags_Framed = 1 << 1, + ImGuiTreeNodeFlags_AllowItemOverlap = 1 << 2, + ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, + ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, + ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, + ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, + ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, + ImGuiTreeNodeFlags_Leaf = 1 << 8, + ImGuiTreeNodeFlags_Bullet = 1 << 9, + ImGuiTreeNodeFlags_FramePadding = 1 << 10, + ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, + ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, + ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, +}ImGuiTreeNodeFlags_; +typedef enum { + ImGuiPopupFlags_None = 0, + ImGuiPopupFlags_MouseButtonLeft = 0, + ImGuiPopupFlags_MouseButtonRight = 1, + ImGuiPopupFlags_MouseButtonMiddle = 2, + ImGuiPopupFlags_MouseButtonMask_ = 0x1F, + ImGuiPopupFlags_MouseButtonDefault_ = 1, + ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, + ImGuiPopupFlags_NoOpenOverItems = 1 << 6, + ImGuiPopupFlags_AnyPopupId = 1 << 7, + ImGuiPopupFlags_AnyPopupLevel = 1 << 8, + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, +}ImGuiPopupFlags_; +typedef enum { + ImGuiSelectableFlags_None = 0, + ImGuiSelectableFlags_DontClosePopups = 1 << 0, + ImGuiSelectableFlags_SpanAllColumns = 1 << 1, + ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, + ImGuiSelectableFlags_Disabled = 1 << 3, + ImGuiSelectableFlags_AllowItemOverlap = 1 << 4, +}ImGuiSelectableFlags_; +typedef enum { + ImGuiComboFlags_None = 0, + ImGuiComboFlags_PopupAlignLeft = 1 << 0, + ImGuiComboFlags_HeightSmall = 1 << 1, + ImGuiComboFlags_HeightRegular = 1 << 2, + ImGuiComboFlags_HeightLarge = 1 << 3, + ImGuiComboFlags_HeightLargest = 1 << 4, + ImGuiComboFlags_NoArrowButton = 1 << 5, + ImGuiComboFlags_NoPreview = 1 << 6, + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, +}ImGuiComboFlags_; +typedef enum { + ImGuiTabBarFlags_None = 0, + ImGuiTabBarFlags_Reorderable = 1 << 0, + ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, + ImGuiTabBarFlags_TabListPopupButton = 1 << 2, + ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, + ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, + ImGuiTabBarFlags_NoTooltip = 1 << 5, + ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, + ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, + ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, +}ImGuiTabBarFlags_; +typedef enum { + ImGuiTabItemFlags_None = 0, + ImGuiTabItemFlags_UnsavedDocument = 1 << 0, + ImGuiTabItemFlags_SetSelected = 1 << 1, + ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, + ImGuiTabItemFlags_NoPushId = 1 << 3, + ImGuiTabItemFlags_NoTooltip = 1 << 4, + ImGuiTabItemFlags_NoReorder = 1 << 5, + ImGuiTabItemFlags_Leading = 1 << 6, + ImGuiTabItemFlags_Trailing = 1 << 7, +}ImGuiTabItemFlags_; +typedef enum { + ImGuiTableFlags_None = 0, + ImGuiTableFlags_Resizable = 1 << 0, + ImGuiTableFlags_Reorderable = 1 << 1, + ImGuiTableFlags_Hideable = 1 << 2, + ImGuiTableFlags_Sortable = 1 << 3, + ImGuiTableFlags_NoSavedSettings = 1 << 4, + ImGuiTableFlags_ContextMenuInBody = 1 << 5, + ImGuiTableFlags_RowBg = 1 << 6, + ImGuiTableFlags_BordersInnerH = 1 << 7, + ImGuiTableFlags_BordersOuterH = 1 << 8, + ImGuiTableFlags_BordersInnerV = 1 << 9, + ImGuiTableFlags_BordersOuterV = 1 << 10, + ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, + ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, + ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, + ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, + ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, + ImGuiTableFlags_NoBordersInBody = 1 << 11, + ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, + ImGuiTableFlags_SizingFixedFit = 1 << 13, + ImGuiTableFlags_SizingFixedSame = 2 << 13, + ImGuiTableFlags_SizingStretchProp = 3 << 13, + ImGuiTableFlags_SizingStretchSame = 4 << 13, + ImGuiTableFlags_NoHostExtendX = 1 << 16, + ImGuiTableFlags_NoHostExtendY = 1 << 17, + ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, + ImGuiTableFlags_PreciseWidths = 1 << 19, + ImGuiTableFlags_NoClip = 1 << 20, + ImGuiTableFlags_PadOuterX = 1 << 21, + ImGuiTableFlags_NoPadOuterX = 1 << 22, + ImGuiTableFlags_NoPadInnerX = 1 << 23, + ImGuiTableFlags_ScrollX = 1 << 24, + ImGuiTableFlags_ScrollY = 1 << 25, + ImGuiTableFlags_SortMulti = 1 << 26, + ImGuiTableFlags_SortTristate = 1 << 27, + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, +}ImGuiTableFlags_; +typedef enum { + ImGuiTableColumnFlags_None = 0, + ImGuiTableColumnFlags_Disabled = 1 << 0, + ImGuiTableColumnFlags_DefaultHide = 1 << 1, + ImGuiTableColumnFlags_DefaultSort = 1 << 2, + ImGuiTableColumnFlags_WidthStretch = 1 << 3, + ImGuiTableColumnFlags_WidthFixed = 1 << 4, + ImGuiTableColumnFlags_NoResize = 1 << 5, + ImGuiTableColumnFlags_NoReorder = 1 << 6, + ImGuiTableColumnFlags_NoHide = 1 << 7, + ImGuiTableColumnFlags_NoClip = 1 << 8, + ImGuiTableColumnFlags_NoSort = 1 << 9, + ImGuiTableColumnFlags_NoSortAscending = 1 << 10, + ImGuiTableColumnFlags_NoSortDescending = 1 << 11, + ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, + ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, + ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, + ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, + ImGuiTableColumnFlags_IndentEnable = 1 << 16, + ImGuiTableColumnFlags_IndentDisable = 1 << 17, + ImGuiTableColumnFlags_IsEnabled = 1 << 24, + ImGuiTableColumnFlags_IsVisible = 1 << 25, + ImGuiTableColumnFlags_IsSorted = 1 << 26, + ImGuiTableColumnFlags_IsHovered = 1 << 27, + ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, + ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, + ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, +}ImGuiTableColumnFlags_; +typedef enum { + ImGuiTableRowFlags_None = 0, + ImGuiTableRowFlags_Headers = 1 << 0, +}ImGuiTableRowFlags_; +typedef enum { + ImGuiTableBgTarget_None = 0, + ImGuiTableBgTarget_RowBg0 = 1, + ImGuiTableBgTarget_RowBg1 = 2, + ImGuiTableBgTarget_CellBg = 3, +}ImGuiTableBgTarget_; +typedef enum { + ImGuiFocusedFlags_None = 0, + ImGuiFocusedFlags_ChildWindows = 1 << 0, + ImGuiFocusedFlags_RootWindow = 1 << 1, + ImGuiFocusedFlags_AnyWindow = 1 << 2, + ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, +}ImGuiFocusedFlags_; +typedef enum { + ImGuiHoveredFlags_None = 0, + ImGuiHoveredFlags_ChildWindows = 1 << 0, + ImGuiHoveredFlags_RootWindow = 1 << 1, + ImGuiHoveredFlags_AnyWindow = 1 << 2, + ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3, + ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5, + ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, + ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 8, + ImGuiHoveredFlags_AllowWhenDisabled = 1 << 9, + ImGuiHoveredFlags_NoNavOverride = 1 << 10, + ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + ImGuiHoveredFlags_DelayNormal = 1 << 11, + ImGuiHoveredFlags_DelayShort = 1 << 12, + ImGuiHoveredFlags_NoSharedDelay = 1 << 13, +}ImGuiHoveredFlags_; +typedef enum { + ImGuiDragDropFlags_None = 0, + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, + ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, + ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, + ImGuiDragDropFlags_SourceExtern = 1 << 4, + ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, + ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, + ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, + ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, +}ImGuiDragDropFlags_; +typedef enum { + ImGuiDataType_S8, + ImGuiDataType_U8, + ImGuiDataType_S16, + ImGuiDataType_U16, + ImGuiDataType_S32, + ImGuiDataType_U32, + ImGuiDataType_S64, + ImGuiDataType_U64, + ImGuiDataType_Float, + ImGuiDataType_Double, + ImGuiDataType_COUNT +}ImGuiDataType_; +typedef enum { + ImGuiDir_None = -1, + ImGuiDir_Left = 0, + ImGuiDir_Right = 1, + ImGuiDir_Up = 2, + ImGuiDir_Down = 3, + ImGuiDir_COUNT +}ImGuiDir_; +typedef enum { + ImGuiSortDirection_None = 0, + ImGuiSortDirection_Ascending = 1, + ImGuiSortDirection_Descending = 2 +}ImGuiSortDirection_; +typedef enum { +ImGuiKey_None=0, +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_Apostrophe=584, +ImGuiKey_Comma=585, +ImGuiKey_Minus=586, +ImGuiKey_Period=587, +ImGuiKey_Slash=588, +ImGuiKey_Semicolon=589, +ImGuiKey_Equal=590, +ImGuiKey_LeftBracket=591, +ImGuiKey_Backslash=592, +ImGuiKey_RightBracket=593, +ImGuiKey_GraveAccent=594, +ImGuiKey_CapsLock=595, +ImGuiKey_ScrollLock=596, +ImGuiKey_NumLock=597, +ImGuiKey_PrintScreen=598, +ImGuiKey_Pause=599, +ImGuiKey_Keypad0=600, +ImGuiKey_Keypad1=601, +ImGuiKey_Keypad2=602, +ImGuiKey_Keypad3=603, +ImGuiKey_Keypad4=604, +ImGuiKey_Keypad5=605, +ImGuiKey_Keypad6=606, +ImGuiKey_Keypad7=607, +ImGuiKey_Keypad8=608, +ImGuiKey_Keypad9=609, +ImGuiKey_KeypadDecimal=610, +ImGuiKey_KeypadDivide=611, +ImGuiKey_KeypadMultiply=612, +ImGuiKey_KeypadSubtract=613, +ImGuiKey_KeypadAdd=614, +ImGuiKey_KeypadEnter=615, +ImGuiKey_KeypadEqual=616, +ImGuiKey_GamepadStart=617, +ImGuiKey_GamepadBack=618, +ImGuiKey_GamepadFaceLeft=619, +ImGuiKey_GamepadFaceRight=620, +ImGuiKey_GamepadFaceUp=621, +ImGuiKey_GamepadFaceDown=622, +ImGuiKey_GamepadDpadLeft=623, +ImGuiKey_GamepadDpadRight=624, +ImGuiKey_GamepadDpadUp=625, +ImGuiKey_GamepadDpadDown=626, +ImGuiKey_GamepadL1=627, +ImGuiKey_GamepadR1=628, +ImGuiKey_GamepadL2=629, +ImGuiKey_GamepadR2=630, +ImGuiKey_GamepadL3=631, +ImGuiKey_GamepadR3=632, +ImGuiKey_GamepadLStickLeft=633, +ImGuiKey_GamepadLStickRight=634, +ImGuiKey_GamepadLStickUp=635, +ImGuiKey_GamepadLStickDown=636, +ImGuiKey_GamepadRStickLeft=637, +ImGuiKey_GamepadRStickRight=638, +ImGuiKey_GamepadRStickUp=639, +ImGuiKey_GamepadRStickDown=640, +ImGuiKey_MouseLeft=641, +ImGuiKey_MouseRight=642, +ImGuiKey_MouseMiddle=643, +ImGuiKey_MouseX1=644, +ImGuiKey_MouseX2=645, +ImGuiKey_MouseWheelX=646, +ImGuiKey_MouseWheelY=647, +ImGuiKey_ReservedForModCtrl=648, +ImGuiKey_ReservedForModShift=649, +ImGuiKey_ReservedForModAlt=650, +ImGuiKey_ReservedForModSuper=651, +ImGuiKey_COUNT=652, +ImGuiMod_None=0, +ImGuiMod_Ctrl=1 << 12, +ImGuiMod_Shift=1 << 13, +ImGuiMod_Alt=1 << 14, +ImGuiMod_Super=1 << 15, +ImGuiMod_Mask_=0xF000, +ImGuiMod_Shortcut=ImGuiMod_Ctrl, +ImGuiKey_NamedKey_BEGIN=512, +ImGuiKey_NamedKey_END=ImGuiKey_COUNT, +ImGuiKey_NamedKey_COUNT=ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +ImGuiKey_KeysData_SIZE=ImGuiKey_COUNT, +ImGuiKey_KeysData_OFFSET=0, +}ImGuiKey; +typedef enum { + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, + ImGuiNavInput_COUNT, +}ImGuiNavInput; +typedef enum { + ImGuiConfigFlags_None = 0, + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, + ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, + ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, + ImGuiConfigFlags_NoMouse = 1 << 4, + ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, + ImGuiConfigFlags_IsSRGB = 1 << 20, + ImGuiConfigFlags_IsTouchScreen = 1 << 21, +}ImGuiConfigFlags_; +typedef enum { + ImGuiBackendFlags_None = 0, + ImGuiBackendFlags_HasGamepad = 1 << 0, + ImGuiBackendFlags_HasMouseCursors = 1 << 1, + ImGuiBackendFlags_HasSetMousePos = 1 << 2, + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, +}ImGuiBackendFlags_; +typedef enum { + ImGuiCol_Text, + ImGuiCol_TextDisabled, + ImGuiCol_WindowBg, + ImGuiCol_ChildBg, + ImGuiCol_PopupBg, + ImGuiCol_Border, + ImGuiCol_BorderShadow, + ImGuiCol_FrameBg, + ImGuiCol_FrameBgHovered, + ImGuiCol_FrameBgActive, + ImGuiCol_TitleBg, + ImGuiCol_TitleBgActive, + ImGuiCol_TitleBgCollapsed, + ImGuiCol_MenuBarBg, + ImGuiCol_ScrollbarBg, + ImGuiCol_ScrollbarGrab, + ImGuiCol_ScrollbarGrabHovered, + ImGuiCol_ScrollbarGrabActive, + ImGuiCol_CheckMark, + ImGuiCol_SliderGrab, + ImGuiCol_SliderGrabActive, + ImGuiCol_Button, + ImGuiCol_ButtonHovered, + ImGuiCol_ButtonActive, + ImGuiCol_Header, + ImGuiCol_HeaderHovered, + ImGuiCol_HeaderActive, + ImGuiCol_Separator, + ImGuiCol_SeparatorHovered, + ImGuiCol_SeparatorActive, + ImGuiCol_ResizeGrip, + ImGuiCol_ResizeGripHovered, + ImGuiCol_ResizeGripActive, + ImGuiCol_Tab, + ImGuiCol_TabHovered, + ImGuiCol_TabActive, + ImGuiCol_TabUnfocused, + ImGuiCol_TabUnfocusedActive, + ImGuiCol_PlotLines, + ImGuiCol_PlotLinesHovered, + ImGuiCol_PlotHistogram, + ImGuiCol_PlotHistogramHovered, + ImGuiCol_TableHeaderBg, + ImGuiCol_TableBorderStrong, + ImGuiCol_TableBorderLight, + ImGuiCol_TableRowBg, + ImGuiCol_TableRowBgAlt, + ImGuiCol_TextSelectedBg, + ImGuiCol_DragDropTarget, + ImGuiCol_NavHighlight, + ImGuiCol_NavWindowingHighlight, + ImGuiCol_NavWindowingDimBg, + ImGuiCol_ModalWindowDimBg, + ImGuiCol_COUNT +}ImGuiCol_; +typedef enum { + ImGuiStyleVar_Alpha, + ImGuiStyleVar_DisabledAlpha, + ImGuiStyleVar_WindowPadding, + ImGuiStyleVar_WindowRounding, + ImGuiStyleVar_WindowBorderSize, + ImGuiStyleVar_WindowMinSize, + ImGuiStyleVar_WindowTitleAlign, + ImGuiStyleVar_ChildRounding, + ImGuiStyleVar_ChildBorderSize, + ImGuiStyleVar_PopupRounding, + ImGuiStyleVar_PopupBorderSize, + ImGuiStyleVar_FramePadding, + ImGuiStyleVar_FrameRounding, + ImGuiStyleVar_FrameBorderSize, + ImGuiStyleVar_ItemSpacing, + ImGuiStyleVar_ItemInnerSpacing, + ImGuiStyleVar_IndentSpacing, + ImGuiStyleVar_CellPadding, + ImGuiStyleVar_ScrollbarSize, + ImGuiStyleVar_ScrollbarRounding, + ImGuiStyleVar_GrabMinSize, + ImGuiStyleVar_GrabRounding, + ImGuiStyleVar_TabRounding, + ImGuiStyleVar_ButtonTextAlign, + ImGuiStyleVar_SelectableTextAlign, + ImGuiStyleVar_COUNT +}ImGuiStyleVar_; +typedef enum { + ImGuiButtonFlags_None = 0, + ImGuiButtonFlags_MouseButtonLeft = 1 << 0, + ImGuiButtonFlags_MouseButtonRight = 1 << 1, + ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, + ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, +}ImGuiButtonFlags_; +typedef enum { + ImGuiColorEditFlags_None = 0, + ImGuiColorEditFlags_NoAlpha = 1 << 1, + ImGuiColorEditFlags_NoPicker = 1 << 2, + ImGuiColorEditFlags_NoOptions = 1 << 3, + ImGuiColorEditFlags_NoSmallPreview = 1 << 4, + ImGuiColorEditFlags_NoInputs = 1 << 5, + ImGuiColorEditFlags_NoTooltip = 1 << 6, + ImGuiColorEditFlags_NoLabel = 1 << 7, + ImGuiColorEditFlags_NoSidePreview = 1 << 8, + ImGuiColorEditFlags_NoDragDrop = 1 << 9, + ImGuiColorEditFlags_NoBorder = 1 << 10, + ImGuiColorEditFlags_AlphaBar = 1 << 16, + ImGuiColorEditFlags_AlphaPreview = 1 << 17, + ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18, + ImGuiColorEditFlags_HDR = 1 << 19, + ImGuiColorEditFlags_DisplayRGB = 1 << 20, + ImGuiColorEditFlags_DisplayHSV = 1 << 21, + ImGuiColorEditFlags_DisplayHex = 1 << 22, + ImGuiColorEditFlags_Uint8 = 1 << 23, + ImGuiColorEditFlags_Float = 1 << 24, + ImGuiColorEditFlags_PickerHueBar = 1 << 25, + ImGuiColorEditFlags_PickerHueWheel = 1 << 26, + ImGuiColorEditFlags_InputRGB = 1 << 27, + ImGuiColorEditFlags_InputHSV = 1 << 28, + ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, + ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, + ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, +}ImGuiColorEditFlags_; +typedef enum { + ImGuiSliderFlags_None = 0, + ImGuiSliderFlags_AlwaysClamp = 1 << 4, + ImGuiSliderFlags_Logarithmic = 1 << 5, + ImGuiSliderFlags_NoRoundToFormat = 1 << 6, + ImGuiSliderFlags_NoInput = 1 << 7, + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, +}ImGuiSliderFlags_; +typedef enum { + ImGuiMouseButton_Left = 0, + ImGuiMouseButton_Right = 1, + ImGuiMouseButton_Middle = 2, + ImGuiMouseButton_COUNT = 5 +}ImGuiMouseButton_; +typedef enum { + ImGuiMouseCursor_None = -1, + ImGuiMouseCursor_Arrow = 0, + ImGuiMouseCursor_TextInput, + ImGuiMouseCursor_ResizeAll, + ImGuiMouseCursor_ResizeNS, + ImGuiMouseCursor_ResizeEW, + ImGuiMouseCursor_ResizeNESW, + ImGuiMouseCursor_ResizeNWSE, + ImGuiMouseCursor_Hand, + ImGuiMouseCursor_NotAllowed, + ImGuiMouseCursor_COUNT +}ImGuiMouseCursor_; +typedef enum { + ImGuiCond_None = 0, + ImGuiCond_Always = 1 << 0, + ImGuiCond_Once = 1 << 1, + ImGuiCond_FirstUseEver = 1 << 2, + ImGuiCond_Appearing = 1 << 3, +}ImGuiCond_; +struct ImGuiStyle +{ + float Alpha; + float DisabledAlpha; + ImVec2 WindowPadding; + float WindowRounding; + float WindowBorderSize; + 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 GrabMinSize; + float GrabRounding; + float LogSliderDeadzone; + float TabRounding; + float TabBorderSize; + float TabMinWidthForCloseButton; + ImGuiDir ColorButtonPosition; + ImVec2 ButtonTextAlign; + ImVec2 SelectableTextAlign; + ImVec2 DisplayWindowPadding; + ImVec2 DisplaySafeAreaPadding; + float MouseCursorScale; + bool AntiAliasedLines; + bool AntiAliasedLinesUseTex; + bool AntiAliasedFill; + float CurveTessellationTol; + float CircleTessellationMaxError; + ImVec4 Colors[ImGuiCol_COUNT]; +}; +struct ImGuiKeyData +{ + bool Down; + float DownDuration; + float DownDurationPrev; + float AnalogValue; +}; +typedef struct ImVector_ImWchar {int Size;int Capacity;ImWchar* Data;} ImVector_ImWchar; + +struct ImGuiIO +{ + ImGuiConfigFlags ConfigFlags; + ImGuiBackendFlags BackendFlags; + ImVec2 DisplaySize; + float DeltaTime; + float IniSavingRate; + const char* IniFilename; + const char* LogFilename; + float MouseDoubleClickTime; + float MouseDoubleClickMaxDist; + float MouseDragThreshold; + float KeyRepeatDelay; + float KeyRepeatRate; + float HoverDelayNormal; + float HoverDelayShort; + void* UserData; + ImFontAtlas*Fonts; + float FontGlobalScale; + bool FontAllowUserScaling; + ImFont* FontDefault; + ImVec2 DisplayFramebufferScale; + bool MouseDrawCursor; + bool ConfigMacOSXBehaviors; + bool ConfigInputTrickleEventQueue; + bool ConfigInputTextCursorBlink; + bool ConfigInputTextEnterKeepActive; + bool ConfigDragClickToInputText; + bool ConfigWindowsResizeFromEdges; + bool ConfigWindowsMoveFromTitleBarOnly; + float ConfigMemoryCompactTimer; + const char* BackendPlatformName; + const char* BackendRendererName; + void* BackendPlatformUserData; + void* BackendRendererUserData; + void* BackendLanguageUserData; + const char* (*GetClipboardTextFn)(void* user_data); + void (*SetClipboardTextFn)(void* user_data, const char* text); + void* ClipboardUserData; + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + void* _UnusedPadding; + bool WantCaptureMouse; + bool WantCaptureKeyboard; + bool WantTextInput; + bool WantSetMousePos; + bool WantSaveIniSettings; + bool NavActive; + bool NavVisible; + float Framerate; + int MetricsRenderVertices; + int MetricsRenderIndices; + int MetricsRenderWindows; + int MetricsActiveWindows; + int MetricsActiveAllocations; + ImVec2 MouseDelta; + int KeyMap[ImGuiKey_COUNT]; + bool KeysDown[ImGuiKey_COUNT]; + float NavInputs[ImGuiNavInput_COUNT]; + ImVec2 MousePos; + bool MouseDown[5]; + float MouseWheel; + float MouseWheelH; + bool KeyCtrl; + bool KeyShift; + bool KeyAlt; + bool KeySuper; + ImGuiKeyChord KeyMods; + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; + 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]; + bool MouseDownOwned[5]; + bool MouseDownOwnedUnlessPopupClose[5]; + float MouseDownDuration[5]; + float MouseDownDurationPrev[5]; + float MouseDragMaxDistanceSqr[5]; + float PenPressure; + bool AppFocusLost; + bool AppAcceptingEvents; + ImS8 BackendUsingLegacyKeyArrays; + bool BackendUsingLegacyNavInputArray; + ImWchar16 InputQueueSurrogate; + ImVector_ImWchar InputQueueCharacters; +}; +struct ImGuiInputTextCallbackData +{ + ImGuiInputTextFlags EventFlag; + ImGuiInputTextFlags Flags; + void* UserData; + ImWchar EventChar; + ImGuiKey EventKey; + char* Buf; + int BufTextLen; + int BufSize; + bool BufDirty; + 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[32 + 1]; + bool Preview; + bool Delivery; +}; +struct ImGuiTableColumnSortSpecs +{ + ImGuiID ColumnUserID; + ImS16 ColumnIndex; + ImS16 SortOrder; + ImGuiSortDirection SortDirection : 8; +}; +struct ImGuiTableSortSpecs +{ + const ImGuiTableColumnSortSpecs* Specs; + int SpecsCount; + bool SpecsDirty; +}; +struct ImGuiOnceUponAFrame +{ + int RefFrame; +}; +struct ImGuiTextRange +{ + const char* b; + const char* e; +}; +typedef struct ImGuiTextRange ImGuiTextRange; + +typedef struct ImVector_ImGuiTextRange {int Size;int Capacity;ImGuiTextRange* Data;} ImVector_ImGuiTextRange; + +struct ImGuiTextFilter +{ + char InputBuf[256]; + ImVector_ImGuiTextRange Filters; + int CountGrep; +}; +typedef struct ImGuiTextRange ImGuiTextRange; +typedef struct ImVector_char {int Size;int Capacity;char* Data;} ImVector_char; + +struct ImGuiTextBuffer +{ + ImVector_char Buf; +}; +struct ImGuiStoragePair +{ + ImGuiID key; + union { int val_i; float val_f; void* val_p; }; +}; +typedef struct ImGuiStoragePair ImGuiStoragePair; + +typedef struct ImVector_ImGuiStoragePair {int Size;int Capacity;ImGuiStoragePair* Data;} ImVector_ImGuiStoragePair; + +struct ImGuiStorage +{ + ImVector_ImGuiStoragePair Data; +}; +typedef struct ImGuiStoragePair ImGuiStoragePair; +struct ImGuiListClipper +{ + int DisplayStart; + int DisplayEnd; + int ItemsCount; + float ItemsHeight; + float StartPosY; + void* TempData; +}; +struct ImColor +{ + ImVec4 Value; +}; +typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); +struct ImDrawCmd +{ + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; + unsigned int IdxOffset; + unsigned int ElemCount; + ImDrawCallback UserCallback; + void* UserCallbackData; +}; +struct ImDrawVert +{ + ImVec2 pos; + ImVec2 uv; + ImU32 col; +}; +typedef struct ImDrawCmdHeader ImDrawCmdHeader; +struct ImDrawCmdHeader +{ + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; +}; +typedef struct ImVector_ImDrawCmd {int Size;int Capacity;ImDrawCmd* Data;} ImVector_ImDrawCmd; + +typedef struct ImVector_ImDrawIdx {int Size;int Capacity;ImDrawIdx* Data;} ImVector_ImDrawIdx; + +struct ImDrawChannel +{ + ImVector_ImDrawCmd _CmdBuffer; + ImVector_ImDrawIdx _IdxBuffer; +}; +typedef struct ImVector_ImDrawChannel {int Size;int Capacity;ImDrawChannel* Data;} ImVector_ImDrawChannel; + +struct ImDrawListSplitter +{ + int _Current; + int _Count; + ImVector_ImDrawChannel _Channels; +}; +typedef enum { + ImDrawFlags_None = 0, + ImDrawFlags_Closed = 1 << 0, + ImDrawFlags_RoundCornersTopLeft = 1 << 4, + ImDrawFlags_RoundCornersTopRight = 1 << 5, + ImDrawFlags_RoundCornersBottomLeft = 1 << 6, + ImDrawFlags_RoundCornersBottomRight = 1 << 7, + ImDrawFlags_RoundCornersNone = 1 << 8, + ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft, + ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, +}ImDrawFlags_; +typedef enum { + ImDrawListFlags_None = 0, + ImDrawListFlags_AntiAliasedLines = 1 << 0, + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, + ImDrawListFlags_AntiAliasedFill = 1 << 2, + ImDrawListFlags_AllowVtxOffset = 1 << 3, +}ImDrawListFlags_; +typedef struct ImVector_ImDrawVert {int Size;int Capacity;ImDrawVert* Data;} ImVector_ImDrawVert; + +typedef struct ImVector_ImVec4 {int Size;int Capacity;ImVec4* Data;} ImVector_ImVec4; + +typedef struct ImVector_ImTextureID {int Size;int Capacity;ImTextureID* Data;} ImVector_ImTextureID; + +typedef struct ImVector_ImVec2 {int Size;int Capacity;ImVec2* Data;} ImVector_ImVec2; + +struct ImDrawList +{ + ImVector_ImDrawCmd CmdBuffer; + ImVector_ImDrawIdx IdxBuffer; + ImVector_ImDrawVert VtxBuffer; + ImDrawListFlags Flags; + unsigned int _VtxCurrentIdx; + ImDrawListSharedData* _Data; + const char* _OwnerName; + ImDrawVert* _VtxWritePtr; + ImDrawIdx* _IdxWritePtr; + ImVector_ImVec4 _ClipRectStack; + ImVector_ImTextureID _TextureIdStack; + ImVector_ImVec2 _Path; + ImDrawCmdHeader _CmdHeader; + ImDrawListSplitter _Splitter; + float _FringeScale; +}; +struct ImDrawData +{ + bool Valid; + int CmdListsCount; + int TotalIdxCount; + int TotalVtxCount; + ImDrawList** CmdLists; + ImVec2 DisplayPos; + ImVec2 DisplaySize; + ImVec2 FramebufferScale; +}; +struct ImFontConfig +{ + void* FontData; + int FontDataSize; + bool FontDataOwnedByAtlas; + int FontNo; + float SizePixels; + int OversampleH; + int OversampleV; + bool PixelSnapH; + ImVec2 GlyphExtraSpacing; + ImVec2 GlyphOffset; + const ImWchar* GlyphRanges; + float GlyphMinAdvanceX; + float GlyphMaxAdvanceX; + bool MergeMode; + unsigned int FontBuilderFlags; + float RasterizerMultiply; + ImWchar EllipsisChar; + char Name[40]; + ImFont* DstFont; +}; +struct ImFontGlyph +{ + unsigned int Colored : 1; + unsigned int Visible : 1; + unsigned int Codepoint : 30; + float AdvanceX; + float X0, Y0, X1, Y1; + float U0, V0, U1, V1; +}; +typedef struct ImVector_ImU32 {int Size;int Capacity;ImU32* Data;} ImVector_ImU32; + +struct ImFontGlyphRangesBuilder +{ + ImVector_ImU32 UsedChars; +}; +typedef struct ImFontAtlasCustomRect ImFontAtlasCustomRect; +struct ImFontAtlasCustomRect +{ + unsigned short Width, Height; + unsigned short X, Y; + unsigned int GlyphID; + float GlyphAdvanceX; + ImVec2 GlyphOffset; + ImFont* Font; +}; +typedef enum { + ImFontAtlasFlags_None = 0, + ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, + ImFontAtlasFlags_NoMouseCursors = 1 << 1, + ImFontAtlasFlags_NoBakedLines = 1 << 2, +}ImFontAtlasFlags_; +typedef struct ImVector_ImFontPtr {int Size;int Capacity;ImFont** Data;} ImVector_ImFontPtr; + +typedef struct ImVector_ImFontAtlasCustomRect {int Size;int Capacity;ImFontAtlasCustomRect* Data;} ImVector_ImFontAtlasCustomRect; + +typedef struct ImVector_ImFontConfig {int Size;int Capacity;ImFontConfig* Data;} ImVector_ImFontConfig; + +struct ImFontAtlas +{ + ImFontAtlasFlags Flags; + ImTextureID TexID; + int TexDesiredWidth; + int TexGlyphPadding; + bool Locked; + bool TexReady; + bool TexPixelsUseColors; + unsigned char* TexPixelsAlpha8; + unsigned int* TexPixelsRGBA32; + int TexWidth; + int TexHeight; + ImVec2 TexUvScale; + ImVec2 TexUvWhitePixel; + ImVector_ImFontPtr Fonts; + ImVector_ImFontAtlasCustomRect CustomRects; + ImVector_ImFontConfig ConfigData; + ImVec4 TexUvLines[(63) + 1]; + const ImFontBuilderIO* FontBuilderIO; + unsigned int FontBuilderFlags; + int PackIdMouseCursors; + int PackIdLines; +}; +typedef struct ImVector_float {int Size;int Capacity;float* Data;} ImVector_float; + +typedef struct ImVector_ImFontGlyph {int Size;int Capacity;ImFontGlyph* Data;} ImVector_ImFontGlyph; + +struct ImFont +{ + ImVector_float IndexAdvanceX; + float FallbackAdvanceX; + float FontSize; + ImVector_ImWchar IndexLookup; + ImVector_ImFontGlyph Glyphs; + const ImFontGlyph* FallbackGlyph; + ImFontAtlas* ContainerAtlas; + const ImFontConfig* ConfigData; + short ConfigDataCount; + ImWchar FallbackChar; + ImWchar EllipsisChar; + ImWchar DotChar; + bool DirtyLookupTables; + float Scale; + float Ascent, Descent; + int MetricsTotalSurface; + ImU8 Used4kPagesMap[(0x10FFFF +1)/4096/8]; +}; +typedef enum { + ImGuiViewportFlags_None = 0, + ImGuiViewportFlags_IsPlatformWindow = 1 << 0, + ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, + ImGuiViewportFlags_OwnedByApp = 1 << 2, +}ImGuiViewportFlags_; +struct ImGuiViewport +{ + ImGuiViewportFlags Flags; + ImVec2 Pos; + ImVec2 Size; + ImVec2 WorkPos; + ImVec2 WorkSize; + void* PlatformHandleRaw; +}; +struct ImGuiPlatformImeData +{ + bool WantVisible; + ImVec2 InputPos; + float InputLineHeight; +}; +struct ImFontAtlas; +struct ImFontBuilderIO; +typedef enum { + ImGuiFreeTypeBuilderFlags_NoHinting = 1 << 0, + ImGuiFreeTypeBuilderFlags_NoAutoHint = 1 << 1, + ImGuiFreeTypeBuilderFlags_ForceAutoHint = 1 << 2, + ImGuiFreeTypeBuilderFlags_LightHinting = 1 << 3, + ImGuiFreeTypeBuilderFlags_MonoHinting = 1 << 4, + ImGuiFreeTypeBuilderFlags_Bold = 1 << 5, + ImGuiFreeTypeBuilderFlags_Oblique = 1 << 6, + ImGuiFreeTypeBuilderFlags_Monochrome = 1 << 7, + ImGuiFreeTypeBuilderFlags_LoadColor = 1 << 8, + ImGuiFreeTypeBuilderFlags_Bitmap = 1 << 9 +}ImGuiFreeTypeBuilderFlags; +#else +struct GLFWwindow; +struct SDL_Window; +typedef union SDL_Event SDL_Event; +#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS + +#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS +typedef struct ImGuiStorage::ImGuiStoragePair ImGuiStoragePair; +typedef struct ImGuiTextFilter::ImGuiTextRange ImGuiTextRange; +typedef ImVector ImVector_ImDrawChannel; +typedef ImVector ImVector_ImDrawCmd; +typedef ImVector ImVector_ImDrawIdx; +typedef ImVector ImVector_ImDrawVert; +typedef ImVector ImVector_ImFontPtr; +typedef ImVector ImVector_ImFontAtlasCustomRect; +typedef ImVector ImVector_ImFontConfig; +typedef ImVector ImVector_ImFontGlyph; +typedef ImVector ImVector_ImGuiStoragePair; +typedef ImVector ImVector_ImGuiTextRange; +typedef ImVector ImVector_ImTextureID; +typedef ImVector ImVector_ImU32; +typedef ImVector ImVector_ImVec2; +typedef ImVector ImVector_ImVec4; +typedef ImVector ImVector_ImWchar; +typedef ImVector ImVector_char; +typedef ImVector ImVector_float; +#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS +CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void); +CIMGUI_API void ImVec2_destroy(ImVec2* self); +CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x,float _y); +CIMGUI_API ImVec4* ImVec4_ImVec4_Nil(void); +CIMGUI_API void ImVec4_destroy(ImVec4* self); +CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x,float _y,float _z,float _w); +CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas); +CIMGUI_API void igDestroyContext(ImGuiContext* ctx); +CIMGUI_API ImGuiContext* igGetCurrentContext(void); +CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx); +CIMGUI_API ImGuiIO* igGetIO(void); +CIMGUI_API ImGuiStyle* igGetStyle(void); +CIMGUI_API void igNewFrame(void); +CIMGUI_API void igEndFrame(void); +CIMGUI_API void igRender(void); +CIMGUI_API ImDrawData* igGetDrawData(void); +CIMGUI_API void igShowDemoWindow(bool* p_open); +CIMGUI_API void igShowMetricsWindow(bool* p_open); +CIMGUI_API void igShowDebugLogWindow(bool* p_open); +CIMGUI_API void igShowStackToolWindow(bool* p_open); +CIMGUI_API void igShowAboutWindow(bool* p_open); +CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref); +CIMGUI_API bool igShowStyleSelector(const char* label); +CIMGUI_API void igShowFontSelector(const char* label); +CIMGUI_API void igShowUserGuide(void); +CIMGUI_API const char* igGetVersion(void); +CIMGUI_API void igStyleColorsDark(ImGuiStyle* dst); +CIMGUI_API void igStyleColorsLight(ImGuiStyle* dst); +CIMGUI_API void igStyleColorsClassic(ImGuiStyle* dst); +CIMGUI_API bool igBegin(const char* name,bool* p_open,ImGuiWindowFlags flags); +CIMGUI_API void igEnd(void); +CIMGUI_API bool igBeginChild_Str(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags); +CIMGUI_API bool igBeginChild_ID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags); +CIMGUI_API void igEndChild(void); +CIMGUI_API bool igIsWindowAppearing(void); +CIMGUI_API bool igIsWindowCollapsed(void); +CIMGUI_API bool igIsWindowFocused(ImGuiFocusedFlags flags); +CIMGUI_API bool igIsWindowHovered(ImGuiHoveredFlags flags); +CIMGUI_API ImDrawList* igGetWindowDrawList(void); +CIMGUI_API void igGetWindowPos(ImVec2 *pOut); +CIMGUI_API void igGetWindowSize(ImVec2 *pOut); +CIMGUI_API float igGetWindowWidth(void); +CIMGUI_API float igGetWindowHeight(void); +CIMGUI_API void igSetNextWindowPos(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot); +CIMGUI_API void igSetNextWindowSize(const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data); +CIMGUI_API void igSetNextWindowContentSize(const ImVec2 size); +CIMGUI_API void igSetNextWindowCollapsed(bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetNextWindowFocus(void); +CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll); +CIMGUI_API void igSetNextWindowBgAlpha(float alpha); +CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowFocus_Nil(void); +CIMGUI_API void igSetWindowFontScale(float scale); +CIMGUI_API void igSetWindowPos_Str(const char* name,const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Str(const char* name,const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Str(const char* name,bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowFocus_Str(const char* name); +CIMGUI_API void igGetContentRegionAvail(ImVec2 *pOut); +CIMGUI_API void igGetContentRegionMax(ImVec2 *pOut); +CIMGUI_API void igGetWindowContentRegionMin(ImVec2 *pOut); +CIMGUI_API void igGetWindowContentRegionMax(ImVec2 *pOut); +CIMGUI_API float igGetScrollX(void); +CIMGUI_API float igGetScrollY(void); +CIMGUI_API void igSetScrollX(float scroll_x); +CIMGUI_API void igSetScrollY(float scroll_y); +CIMGUI_API float igGetScrollMaxX(void); +CIMGUI_API float igGetScrollMaxY(void); +CIMGUI_API void igSetScrollHereX(float center_x_ratio); +CIMGUI_API void igSetScrollHereY(float center_y_ratio); +CIMGUI_API void igSetScrollFromPosX(float local_x,float center_x_ratio); +CIMGUI_API void igSetScrollFromPosY(float local_y,float center_y_ratio); +CIMGUI_API void igPushFont(ImFont* font); +CIMGUI_API void igPopFont(void); +CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col); +CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx,const ImVec4 col); +CIMGUI_API void igPopStyleColor(int count); +CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx,float val); +CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx,const ImVec2 val); +CIMGUI_API void igPopStyleVar(int count); +CIMGUI_API void igPushAllowKeyboardFocus(bool allow_keyboard_focus); +CIMGUI_API void igPopAllowKeyboardFocus(void); +CIMGUI_API void igPushButtonRepeat(bool repeat); +CIMGUI_API void igPopButtonRepeat(void); +CIMGUI_API void igPushItemWidth(float item_width); +CIMGUI_API void igPopItemWidth(void); +CIMGUI_API void igSetNextItemWidth(float item_width); +CIMGUI_API float igCalcItemWidth(void); +CIMGUI_API void igPushTextWrapPos(float wrap_local_pos_x); +CIMGUI_API void igPopTextWrapPos(void); +CIMGUI_API ImFont* igGetFont(void); +CIMGUI_API float igGetFontSize(void); +CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut); +CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul); +CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col); +CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col); +CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx); +CIMGUI_API void igSeparator(void); +CIMGUI_API void igSameLine(float offset_from_start_x,float spacing); +CIMGUI_API void igNewLine(void); +CIMGUI_API void igSpacing(void); +CIMGUI_API void igDummy(const ImVec2 size); +CIMGUI_API void igIndent(float indent_w); +CIMGUI_API void igUnindent(float indent_w); +CIMGUI_API void igBeginGroup(void); +CIMGUI_API void igEndGroup(void); +CIMGUI_API void igGetCursorPos(ImVec2 *pOut); +CIMGUI_API float igGetCursorPosX(void); +CIMGUI_API float igGetCursorPosY(void); +CIMGUI_API void igSetCursorPos(const ImVec2 local_pos); +CIMGUI_API void igSetCursorPosX(float local_x); +CIMGUI_API void igSetCursorPosY(float local_y); +CIMGUI_API void igGetCursorStartPos(ImVec2 *pOut); +CIMGUI_API void igGetCursorScreenPos(ImVec2 *pOut); +CIMGUI_API void igSetCursorScreenPos(const ImVec2 pos); +CIMGUI_API void igAlignTextToFramePadding(void); +CIMGUI_API float igGetTextLineHeight(void); +CIMGUI_API float igGetTextLineHeightWithSpacing(void); +CIMGUI_API float igGetFrameHeight(void); +CIMGUI_API float igGetFrameHeightWithSpacing(void); +CIMGUI_API void igPushID_Str(const char* str_id); +CIMGUI_API void igPushID_StrStr(const char* str_id_begin,const char* str_id_end); +CIMGUI_API void igPushID_Ptr(const void* ptr_id); +CIMGUI_API void igPushID_Int(int int_id); +CIMGUI_API void igPopID(void); +CIMGUI_API ImGuiID igGetID_Str(const char* str_id); +CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin,const char* str_id_end); +CIMGUI_API ImGuiID igGetID_Ptr(const void* ptr_id); +CIMGUI_API void igTextUnformatted(const char* text,const char* text_end); +CIMGUI_API void igText(const char* fmt,...); +CIMGUI_API void igTextV(const char* fmt,va_list args); +CIMGUI_API void igTextColored(const ImVec4 col,const char* fmt,...); +CIMGUI_API void igTextColoredV(const ImVec4 col,const char* fmt,va_list args); +CIMGUI_API void igTextDisabled(const char* fmt,...); +CIMGUI_API void igTextDisabledV(const char* fmt,va_list args); +CIMGUI_API void igTextWrapped(const char* fmt,...); +CIMGUI_API void igTextWrappedV(const char* fmt,va_list args); +CIMGUI_API void igLabelText(const char* label,const char* fmt,...); +CIMGUI_API void igLabelTextV(const char* label,const char* fmt,va_list args); +CIMGUI_API void igBulletText(const char* fmt,...); +CIMGUI_API void igBulletTextV(const char* fmt,va_list args); +CIMGUI_API bool igButton(const char* label,const ImVec2 size); +CIMGUI_API bool igSmallButton(const char* label); +CIMGUI_API bool igInvisibleButton(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags); +CIMGUI_API bool igArrowButton(const char* str_id,ImGuiDir dir); +CIMGUI_API bool igCheckbox(const char* label,bool* v); +CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label,int* flags,int flags_value); +CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label,unsigned int* flags,unsigned int flags_value); +CIMGUI_API bool igRadioButton_Bool(const char* label,bool active); +CIMGUI_API bool igRadioButton_IntPtr(const char* label,int* v,int v_button); +CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay); +CIMGUI_API void igBullet(void); +CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col); +CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col); +CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags); +CIMGUI_API void igEndCombo(void); +CIMGUI_API bool igCombo_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items); +CIMGUI_API bool igCombo_Str(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items); +CIMGUI_API bool igCombo_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items); +CIMGUI_API bool igDragFloat(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloat2(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloat3(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloat4(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloatRange2(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 igDragInt(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt2(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt3(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt4(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragIntRange2(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 igDragScalar(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 igDragScalarN(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 igSliderFloat(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat2(const char* label,float v[2],float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat3(const char* label,float v[3],float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat4(const char* label,float v[4],float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderAngle(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt(const char* label,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt2(const char* label,int v[2],int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt3(const char* label,int v[3],int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt4(const char* label,int v[4],int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderScalar(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 igSliderScalarN(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 igVSliderFloat(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igVSliderInt(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igVSliderScalar(const char* label,const ImVec2 size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igInputTextWithHint(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags flags); +CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputScalar(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 igInputScalarN(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 igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags); +CIMGUI_API bool igColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags); +CIMGUI_API bool igColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags); +CIMGUI_API bool igColorPicker4(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col); +CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size); +CIMGUI_API void igSetColorEditOptions(ImGuiColorEditFlags flags); +CIMGUI_API bool igTreeNode_Str(const char* label); +CIMGUI_API bool igTreeNode_StrStr(const char* str_id,const char* fmt,...); +CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id,const char* fmt,...); +CIMGUI_API bool igTreeNodeV_Str(const char* str_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeEx_Str(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeExV_Str(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); +CIMGUI_API void igTreePush_Str(const char* str_id); +CIMGUI_API void igTreePush_Ptr(const void* ptr_id); +CIMGUI_API void igTreePop(void); +CIMGUI_API float igGetTreeNodeToLabelSpacing(void); +CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags); +CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond); +CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igBeginListBox(const char* label,const ImVec2 size); +CIMGUI_API void igEndListBox(void); +CIMGUI_API bool igListBox_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items); +CIMGUI_API bool igListBox_FnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items); +CIMGUI_API void igPlotLines_FloatPtr(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 igPlotLines_FnFloatPtr(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 igPlotHistogram_FloatPtr(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 igPlotHistogram_FnFloatPtr(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 igValue_Bool(const char* prefix,bool b); +CIMGUI_API void igValue_Int(const char* prefix,int v); +CIMGUI_API void igValue_Uint(const char* prefix,unsigned int v); +CIMGUI_API void igValue_Float(const char* prefix,float v,const char* float_format); +CIMGUI_API bool igBeginMenuBar(void); +CIMGUI_API void igEndMenuBar(void); +CIMGUI_API bool igBeginMainMenuBar(void); +CIMGUI_API void igEndMainMenuBar(void); +CIMGUI_API bool igBeginMenu(const char* label,bool enabled); +CIMGUI_API void igEndMenu(void); +CIMGUI_API bool igMenuItem_Bool(const char* label,const char* shortcut,bool selected,bool enabled); +CIMGUI_API bool igMenuItem_BoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled); +CIMGUI_API void igBeginTooltip(void); +CIMGUI_API void igEndTooltip(void); +CIMGUI_API void igSetTooltip(const char* fmt,...); +CIMGUI_API void igSetTooltipV(const char* fmt,va_list args); +CIMGUI_API bool igBeginPopup(const char* str_id,ImGuiWindowFlags flags); +CIMGUI_API bool igBeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags); +CIMGUI_API void igEndPopup(void); +CIMGUI_API void igOpenPopup_Str(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopup_ID(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopupOnItemClick(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igCloseCurrentPopup(void); +CIMGUI_API bool igBeginPopupContextItem(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igBeginPopupContextWindow(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igIsPopupOpen(const char* str_id,ImGuiPopupFlags flags); +CIMGUI_API bool igBeginTable(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width); +CIMGUI_API void igEndTable(void); +CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags,float min_row_height); +CIMGUI_API bool igTableNextColumn(void); +CIMGUI_API bool igTableSetColumnIndex(int column_n); +CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id); +CIMGUI_API void igTableSetupScrollFreeze(int cols,int rows); +CIMGUI_API void igTableHeadersRow(void); +CIMGUI_API void igTableHeader(const char* label); +CIMGUI_API ImGuiTableSortSpecs* igTableGetSortSpecs(void); +CIMGUI_API int igTableGetColumnCount(void); +CIMGUI_API int igTableGetColumnIndex(void); +CIMGUI_API int igTableGetRowIndex(void); +CIMGUI_API const char* igTableGetColumnName(int column_n); +CIMGUI_API ImGuiTableColumnFlags igTableGetColumnFlags(int column_n); +CIMGUI_API void igTableSetColumnEnabled(int column_n,bool v); +CIMGUI_API void igTableSetBgColor(ImGuiTableBgTarget target,ImU32 color,int column_n); +CIMGUI_API void igColumns(int count,const char* id,bool border); +CIMGUI_API void igNextColumn(void); +CIMGUI_API int igGetColumnIndex(void); +CIMGUI_API float igGetColumnWidth(int column_index); +CIMGUI_API void igSetColumnWidth(int column_index,float width); +CIMGUI_API float igGetColumnOffset(int column_index); +CIMGUI_API void igSetColumnOffset(int column_index,float offset_x); +CIMGUI_API int igGetColumnsCount(void); +CIMGUI_API bool igBeginTabBar(const char* str_id,ImGuiTabBarFlags flags); +CIMGUI_API void igEndTabBar(void); +CIMGUI_API bool igBeginTabItem(const char* label,bool* p_open,ImGuiTabItemFlags flags); +CIMGUI_API void igEndTabItem(void); +CIMGUI_API bool igTabItemButton(const char* label,ImGuiTabItemFlags flags); +CIMGUI_API void igSetTabItemClosed(const char* tab_or_docked_window_label); +CIMGUI_API void igLogToTTY(int auto_open_depth); +CIMGUI_API void igLogToFile(int auto_open_depth,const char* filename); +CIMGUI_API void igLogToClipboard(int auto_open_depth); +CIMGUI_API void igLogFinish(void); +CIMGUI_API void igLogButtons(void); +CIMGUI_API void igLogTextV(const char* fmt,va_list args); +CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags); +CIMGUI_API bool igSetDragDropPayload(const char* type,const void* data,size_t sz,ImGuiCond cond); +CIMGUI_API void igEndDragDropSource(void); +CIMGUI_API bool igBeginDragDropTarget(void); +CIMGUI_API const ImGuiPayload* igAcceptDragDropPayload(const char* type,ImGuiDragDropFlags flags); +CIMGUI_API void igEndDragDropTarget(void); +CIMGUI_API const ImGuiPayload* igGetDragDropPayload(void); +CIMGUI_API void igBeginDisabled(bool disabled); +CIMGUI_API void igEndDisabled(void); +CIMGUI_API void igPushClipRect(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect); +CIMGUI_API void igPopClipRect(void); +CIMGUI_API void igSetItemDefaultFocus(void); +CIMGUI_API void igSetKeyboardFocusHere(int offset); +CIMGUI_API bool igIsItemHovered(ImGuiHoveredFlags flags); +CIMGUI_API bool igIsItemActive(void); +CIMGUI_API bool igIsItemFocused(void); +CIMGUI_API bool igIsItemClicked(ImGuiMouseButton mouse_button); +CIMGUI_API bool igIsItemVisible(void); +CIMGUI_API bool igIsItemEdited(void); +CIMGUI_API bool igIsItemActivated(void); +CIMGUI_API bool igIsItemDeactivated(void); +CIMGUI_API bool igIsItemDeactivatedAfterEdit(void); +CIMGUI_API bool igIsItemToggledOpen(void); +CIMGUI_API bool igIsAnyItemHovered(void); +CIMGUI_API bool igIsAnyItemActive(void); +CIMGUI_API bool igIsAnyItemFocused(void); +CIMGUI_API void igGetItemRectMin(ImVec2 *pOut); +CIMGUI_API void igGetItemRectMax(ImVec2 *pOut); +CIMGUI_API void igGetItemRectSize(ImVec2 *pOut); +CIMGUI_API void igSetItemAllowOverlap(void); +CIMGUI_API ImGuiViewport* igGetMainViewport(void); +CIMGUI_API ImDrawList* igGetBackgroundDrawList(void); +CIMGUI_API ImDrawList* igGetForegroundDrawList(void); +CIMGUI_API bool igIsRectVisible_Nil(const ImVec2 size); +CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min,const ImVec2 rect_max); +CIMGUI_API double igGetTime(void); +CIMGUI_API int igGetFrameCount(void); +CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData(void); +CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx); +CIMGUI_API void igSetStateStorage(ImGuiStorage* storage); +CIMGUI_API ImGuiStorage* igGetStateStorage(void); +CIMGUI_API bool igBeginChildFrame(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags); +CIMGUI_API void igEndChildFrame(void); +CIMGUI_API void igCalcTextSize(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width); +CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in); +CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in); +CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v); +CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,float* out_g,float* out_b); +CIMGUI_API bool igIsKeyDown(ImGuiKey key); +CIMGUI_API bool igIsKeyPressed(ImGuiKey key,bool repeat); +CIMGUI_API bool igIsKeyReleased(ImGuiKey key); +CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate); +CIMGUI_API const char* igGetKeyName(ImGuiKey key); +CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); +CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseClicked(ImGuiMouseButton button,bool repeat); +CIMGUI_API bool igIsMouseReleased(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseDoubleClicked(ImGuiMouseButton button); +CIMGUI_API int igGetMouseClickedCount(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip); +CIMGUI_API bool igIsMousePosValid(const ImVec2* mouse_pos); +CIMGUI_API bool igIsAnyMouseDown(void); +CIMGUI_API void igGetMousePos(ImVec2 *pOut); +CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(ImVec2 *pOut); +CIMGUI_API bool igIsMouseDragging(ImGuiMouseButton button,float lock_threshold); +CIMGUI_API void igGetMouseDragDelta(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold); +CIMGUI_API void igResetMouseDragDelta(ImGuiMouseButton button); +CIMGUI_API ImGuiMouseCursor igGetMouseCursor(void); +CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type); +CIMGUI_API void igSetNextFrameWantCaptureMouse(bool want_capture_mouse); +CIMGUI_API const char* igGetClipboardText(void); +CIMGUI_API void igSetClipboardText(const char* text); +CIMGUI_API void igLoadIniSettingsFromDisk(const char* ini_filename); +CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size); +CIMGUI_API void igSaveIniSettingsToDisk(const char* ini_filename); +CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size); +CIMGUI_API void igDebugTextEncoding(const char* text); +CIMGUI_API bool igDebugCheckVersionAndDataLayout(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 igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data); +CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data); +CIMGUI_API void* igMemAlloc(size_t size); +CIMGUI_API void igMemFree(void* ptr); +CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void); +CIMGUI_API void ImGuiStyle_destroy(ImGuiStyle* self); +CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor); +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 wh_x,float wh_y); +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,int native_legacy_index); +CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self,bool accepting_events); +CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self); +CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self); +CIMGUI_API ImGuiIO* ImGuiIO_ImGuiIO(void); +CIMGUI_API void ImGuiIO_destroy(ImGuiIO* self); +CIMGUI_API ImGuiInputTextCallbackData* ImGuiInputTextCallbackData_ImGuiInputTextCallbackData(void); +CIMGUI_API void ImGuiInputTextCallbackData_destroy(ImGuiInputTextCallbackData* self); +CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count); +CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end); +CIMGUI_API void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self); +CIMGUI_API void ImGuiInputTextCallbackData_ClearSelection(ImGuiInputTextCallbackData* self); +CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self); +CIMGUI_API ImGuiPayload* ImGuiPayload_ImGuiPayload(void); +CIMGUI_API void ImGuiPayload_destroy(ImGuiPayload* self); +CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self); +CIMGUI_API bool ImGuiPayload_IsDataType(ImGuiPayload* self,const char* type); +CIMGUI_API bool ImGuiPayload_IsPreview(ImGuiPayload* self); +CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self); +CIMGUI_API ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs(void); +CIMGUI_API void ImGuiTableColumnSortSpecs_destroy(ImGuiTableColumnSortSpecs* self); +CIMGUI_API ImGuiTableSortSpecs* ImGuiTableSortSpecs_ImGuiTableSortSpecs(void); +CIMGUI_API void ImGuiTableSortSpecs_destroy(ImGuiTableSortSpecs* self); +CIMGUI_API ImGuiOnceUponAFrame* ImGuiOnceUponAFrame_ImGuiOnceUponAFrame(void); +CIMGUI_API void ImGuiOnceUponAFrame_destroy(ImGuiOnceUponAFrame* self); +CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_ImGuiTextFilter(const char* default_filter); +CIMGUI_API void ImGuiTextFilter_destroy(ImGuiTextFilter* self); +CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width); +CIMGUI_API bool ImGuiTextFilter_PassFilter(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(ImGuiTextFilter* self); +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(void); +CIMGUI_API void ImGuiTextRange_destroy(ImGuiTextRange* self); +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b,const char* _e); +CIMGUI_API bool ImGuiTextRange_empty(ImGuiTextRange* self); +CIMGUI_API void ImGuiTextRange_split(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out); +CIMGUI_API ImGuiTextBuffer* ImGuiTextBuffer_ImGuiTextBuffer(void); +CIMGUI_API void ImGuiTextBuffer_destroy(ImGuiTextBuffer* self); +CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self); +CIMGUI_API const char* ImGuiTextBuffer_end(ImGuiTextBuffer* self); +CIMGUI_API int ImGuiTextBuffer_size(ImGuiTextBuffer* self); +CIMGUI_API bool ImGuiTextBuffer_empty(ImGuiTextBuffer* self); +CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self); +CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity); +CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self); +CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end); +CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,va_list args); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key,int _val_i); +CIMGUI_API void ImGuiStoragePair_destroy(ImGuiStoragePair* self); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key,float _val_f); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key,void* _val_p); +CIMGUI_API void ImGuiStorage_Clear(ImGuiStorage* self); +CIMGUI_API int ImGuiStorage_GetInt(ImGuiStorage* self,ImGuiID key,int default_val); +CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self,ImGuiID key,int val); +CIMGUI_API bool ImGuiStorage_GetBool(ImGuiStorage* self,ImGuiID key,bool default_val); +CIMGUI_API void ImGuiStorage_SetBool(ImGuiStorage* self,ImGuiID key,bool val); +CIMGUI_API float ImGuiStorage_GetFloat(ImGuiStorage* self,ImGuiID key,float default_val); +CIMGUI_API void ImGuiStorage_SetFloat(ImGuiStorage* self,ImGuiID key,float val); +CIMGUI_API void* ImGuiStorage_GetVoidPtr(ImGuiStorage* self,ImGuiID key); +CIMGUI_API void ImGuiStorage_SetVoidPtr(ImGuiStorage* self,ImGuiID key,void* val); +CIMGUI_API int* ImGuiStorage_GetIntRef(ImGuiStorage* self,ImGuiID key,int default_val); +CIMGUI_API bool* ImGuiStorage_GetBoolRef(ImGuiStorage* self,ImGuiID key,bool default_val); +CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self,ImGuiID key,float default_val); +CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self,ImGuiID key,void* default_val); +CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self,int val); +CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self); +CIMGUI_API ImGuiListClipper* ImGuiListClipper_ImGuiListClipper(void); +CIMGUI_API void ImGuiListClipper_destroy(ImGuiListClipper* self); +CIMGUI_API void ImGuiListClipper_Begin(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_ForceDisplayRangeByIndices(ImGuiListClipper* self,int item_min,int item_max); +CIMGUI_API ImColor* ImColor_ImColor_Nil(void); +CIMGUI_API void ImColor_destroy(ImColor* self); +CIMGUI_API ImColor* ImColor_ImColor_Float(float r,float g,float b,float a); +CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col); +CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a); +CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba); +CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a); +CIMGUI_API void ImColor_HSV(ImColor *pOut,float h,float s,float v,float a); +CIMGUI_API ImDrawCmd* ImDrawCmd_ImDrawCmd(void); +CIMGUI_API void ImDrawCmd_destroy(ImDrawCmd* self); +CIMGUI_API ImTextureID ImDrawCmd_GetTexID(ImDrawCmd* self); +CIMGUI_API ImDrawListSplitter* ImDrawListSplitter_ImDrawListSplitter(void); +CIMGUI_API void ImDrawListSplitter_destroy(ImDrawListSplitter* self); +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); +CIMGUI_API ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data); +CIMGUI_API void ImDrawList_destroy(ImDrawList* self); +CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,const ImVec2 clip_rect_min,const 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_PushTextureID(ImDrawList* self,ImTextureID texture_id); +CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self); +CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2 *pOut,ImDrawList* self); +CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2 *pOut,ImDrawList* self); +CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness); +CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness); +CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags); +CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2 p_min,const 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,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness); +CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col); +CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness); +CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col); +CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness); +CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); +CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness); +CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); +CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end); +CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const 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_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness); +CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col); +CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments); +CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments); +CIMGUI_API void ImDrawList_AddImage(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col); +CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col); +CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags); +CIMGUI_API void ImDrawList_PathClear(ImDrawList* self); +CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos); +CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos); +CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col); +CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness); +CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments); +CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12); +CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments); +CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments); +CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags); +CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self,ImDrawCallback callback,void* callback_data); +CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self); +CIMGUI_API ImDrawList* ImDrawList_CloneOutput(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,const ImVec2 a,const ImVec2 b,ImU32 col); +CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col); +CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col); +CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col); +CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx); +CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col); +CIMGUI_API void ImDrawList__ResetForNewFrame(ImDrawList* self); +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__OnChangedTextureID(ImDrawList* self); +CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self); +CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self,float radius); +CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step); +CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments); +CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void); +CIMGUI_API void ImDrawData_destroy(ImDrawData* self); +CIMGUI_API void ImDrawData_Clear(ImDrawData* self); +CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* self); +CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self,const ImVec2 fb_scale); +CIMGUI_API ImFontConfig* ImFontConfig_ImFontConfig(void); +CIMGUI_API void ImFontConfig_destroy(ImFontConfig* self); +CIMGUI_API ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder(void); +CIMGUI_API void ImFontGlyphRangesBuilder_destroy(ImFontGlyphRangesBuilder* self); +CIMGUI_API void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self); +CIMGUI_API bool ImFontGlyphRangesBuilder_GetBit(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,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); +CIMGUI_API ImFontAtlasCustomRect* ImFontAtlasCustomRect_ImFontAtlasCustomRect(void); +CIMGUI_API void ImFontAtlasCustomRect_destroy(ImFontAtlasCustomRect* self); +CIMGUI_API bool ImFontAtlasCustomRect_IsPacked(ImFontAtlasCustomRect* self); +CIMGUI_API ImFontAtlas* ImFontAtlas_ImFontAtlas(void); +CIMGUI_API void ImFontAtlas_destroy(ImFontAtlas* self); +CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self,const ImFontConfig* font_cfg); +CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self,const ImFontConfig* font_cfg); +CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(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_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_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,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges); +CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self); +CIMGUI_API bool ImFontAtlas_Build(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel); +CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel); +CIMGUI_API bool ImFontAtlas_IsBuilt(ImFontAtlas* self); +CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self,ImTextureID id); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesThai(ImFontAtlas* self); +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesVietnamese(ImFontAtlas* self); +CIMGUI_API int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self,int width,int height); +CIMGUI_API int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset); +CIMGUI_API ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self,int index); +CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max); +CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2]); +CIMGUI_API ImFont* ImFont_ImFont(void); +CIMGUI_API void ImFont_destroy(ImFont* self); +CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c); +CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c); +CIMGUI_API float ImFont_GetCharAdvance(ImFont* self,ImWchar c); +CIMGUI_API bool ImFont_IsLoaded(ImFont* self); +CIMGUI_API const char* ImFont_GetDebugName(ImFont* self); +CIMGUI_API void ImFont_CalcTextSizeA(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining); +CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width); +CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c); +CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip); +CIMGUI_API void ImFont_BuildLookupTable(ImFont* self); +CIMGUI_API void ImFont_ClearOutputData(ImFont* self); +CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size); +CIMGUI_API void ImFont_AddGlyph(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x); +CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst); +CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self,ImWchar c,bool visible); +CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last); +CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void); +CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self); +CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self); +CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self); +CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void); +CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self); +CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key); +CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType(void); +CIMGUI_API void ImGuiFreeType_SetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data); + + +/////////////////////////hand written functions +//no LogTextV +CIMGUI_API void igLogText(CONST char *fmt, ...); +//no appendfV +CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...); +//for getting FLT_MAX in bindings +CIMGUI_API float igGET_FLT_MAX(void); +//for getting FLT_MIN in bindings +CIMGUI_API float igGET_FLT_MIN(void); + + +CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create(void); +CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self); +CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p); +CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p); + + +#endif //CIMGUI_INCLUDED + + + + diff --git a/imgui-sys/third-party/imgui-master-freetype/cimgui_impl.h b/imgui-sys/third-party/imgui-master-freetype/cimgui_impl.h new file mode 100644 index 000000000..597cca0c7 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/cimgui_impl.h @@ -0,0 +1,60 @@ +#ifdef CIMGUI_USE_GLFW + +typedef struct GLFWwindow GLFWwindow; +typedef struct GLFWmonitor GLFWmonitor; +struct GLFWwindow; +struct GLFWmonitor;CIMGUI_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window,bool install_callbacks); +CIMGUI_API void ImGui_ImplGlfw_Shutdown(void); +CIMGUI_API void ImGui_ImplGlfw_NewFrame(void); +CIMGUI_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window,int focused); +CIMGUI_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window,int entered); +CIMGUI_API void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window,double x,double y); +CIMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window,int button,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window,double xoffset,double yoffset); +CIMGUI_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window,int key,int scancode,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window,unsigned int c); +CIMGUI_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor,int event); + +#endif +#ifdef CIMGUI_USE_OPENGL3 +CIMGUI_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version); +CIMGUI_API void ImGui_ImplOpenGL3_Shutdown(void); +CIMGUI_API void ImGui_ImplOpenGL3_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API bool ImGui_ImplOpenGL3_CreateFontsTexture(void); +CIMGUI_API void ImGui_ImplOpenGL3_DestroyFontsTexture(void); +CIMGUI_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(void); +CIMGUI_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(void); + +#endif +#ifdef CIMGUI_USE_OPENGL2 +CIMGUI_API bool ImGui_ImplOpenGL2_Init(void); +CIMGUI_API void ImGui_ImplOpenGL2_Shutdown(void); +CIMGUI_API void ImGui_ImplOpenGL2_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API bool ImGui_ImplOpenGL2_CreateFontsTexture(void); +CIMGUI_API void ImGui_ImplOpenGL2_DestroyFontsTexture(void); +CIMGUI_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(void); +CIMGUI_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(void); + +#endif +#ifdef CIMGUI_USE_SDL + +typedef struct SDL_Window SDL_Window; +typedef struct SDL_Renderer SDL_Renderer; +struct SDL_Window; +struct SDL_Renderer; +typedef union SDL_Event SDL_Event;CIMGUI_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window,void* sdl_gl_context); +CIMGUI_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer); +CIMGUI_API void ImGui_ImplSDL2_Shutdown(void); +CIMGUI_API void ImGui_ImplSDL2_NewFrame(void); +CIMGUI_API bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event); + +#endif diff --git a/imgui-sys/third-party/imgui-master-freetype/definitions.json b/imgui-sys/third-party/imgui-master-freetype/definitions.json new file mode 100644 index 000000000..9dc6684fe --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/definitions.json @@ -0,0 +1,17822 @@ +{ + "ImColor_HSV": [ + { + "args": "(ImColor *pOut,float h,float s,float v,float a)", + "argsT": [ + { + "name": "pOut", + "type": "ImColor*" + }, + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "a", + "type": "float" + } + ], + "argsoriginal": "(float h,float s,float v,float a=1.0f)", + "call_args": "(h,s,v,a)", + "cimguiname": "ImColor_HSV", + "defaults": { + "a": "1.0f" + }, + "funcname": "HSV", + "is_static_function": true, + "location": "imgui:2360", + "nonUDT": 1, + "ov_cimguiname": "ImColor_HSV", + "ret": "void", + "signature": "(float,float,float,float)", + "stname": "ImColor" + } + ], + "ImColor_ImColor": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": {}, + "funcname": "ImColor", + "location": "imgui:2350", + "ov_cimguiname": "ImColor_ImColor_Nil", + "signature": "()", + "stname": "ImColor" + }, + { + "args": "(float r,float g,float b,float a)", + "argsT": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "a", + "type": "float" + } + ], + "argsoriginal": "(float r,float g,float b,float a=1.0f)", + "call_args": "(r,g,b,a)", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": { + "a": "1.0f" + }, + "funcname": "ImColor", + "location": "imgui:2351", + "ov_cimguiname": "ImColor_ImColor_Float", + "signature": "(float,float,float,float)", + "stname": "ImColor" + }, + { + "args": "(const ImVec4 col)", + "argsT": [ + { + "name": "col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& col)", + "call_args": "(col)", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": {}, + "funcname": "ImColor", + "location": "imgui:2352", + "ov_cimguiname": "ImColor_ImColor_Vec4", + "signature": "(const ImVec4)", + "stname": "ImColor" + }, + { + "args": "(int r,int g,int b,int a)", + "argsT": [ + { + "name": "r", + "type": "int" + }, + { + "name": "g", + "type": "int" + }, + { + "name": "b", + "type": "int" + }, + { + "name": "a", + "type": "int" + } + ], + "argsoriginal": "(int r,int g,int b,int a=255)", + "call_args": "(r,g,b,a)", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": { + "a": "255" + }, + "funcname": "ImColor", + "location": "imgui:2353", + "ov_cimguiname": "ImColor_ImColor_Int", + "signature": "(int,int,int,int)", + "stname": "ImColor" + }, + { + "args": "(ImU32 rgba)", + "argsT": [ + { + "name": "rgba", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 rgba)", + "call_args": "(rgba)", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": {}, + "funcname": "ImColor", + "location": "imgui:2354", + "ov_cimguiname": "ImColor_ImColor_U32", + "signature": "(ImU32)", + "stname": "ImColor" + } + ], + "ImColor_SetHSV": [ + { + "args": "(ImColor* self,float h,float s,float v,float a)", + "argsT": [ + { + "name": "self", + "type": "ImColor*" + }, + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "a", + "type": "float" + } + ], + "argsoriginal": "(float h,float s,float v,float a=1.0f)", + "call_args": "(h,s,v,a)", + "cimguiname": "ImColor_SetHSV", + "defaults": { + "a": "1.0f" + }, + "funcname": "SetHSV", + "location": "imgui:2359", + "ov_cimguiname": "ImColor_SetHSV", + "ret": "void", + "signature": "(float,float,float,float)", + "stname": "ImColor" + } + ], + "ImColor_destroy": [ + { + "args": "(ImColor* self)", + "argsT": [ + { + "name": "self", + "type": "ImColor*" + } + ], + "call_args": "(self)", + "cimguiname": "ImColor_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImColor_destroy", + "ret": "void", + "signature": "(ImColor*)", + "stname": "ImColor" + } + ], + "ImDrawCmd_GetTexID": [ + { + "args": "(ImDrawCmd* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawCmd*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawCmd_GetTexID", + "defaults": {}, + "funcname": "GetTexID", + "location": "imgui:2408", + "ov_cimguiname": "ImDrawCmd_GetTexID", + "ret": "ImTextureID", + "signature": "()const", + "stname": "ImDrawCmd" + } + ], + "ImDrawCmd_ImDrawCmd": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawCmd_ImDrawCmd", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawCmd", + "location": "imgui:2405", + "ov_cimguiname": "ImDrawCmd_ImDrawCmd", + "signature": "()", + "stname": "ImDrawCmd" + } + ], + "ImDrawCmd_destroy": [ + { + "args": "(ImDrawCmd* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawCmd*" + } + ], + "call_args": "(self)", + "cimguiname": "ImDrawCmd_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImDrawCmd_destroy", + "ret": "void", + "signature": "(ImDrawCmd*)", + "stname": "ImDrawCmd" + } + ], + "ImDrawData_Clear": [ + { + "args": "(ImDrawData* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawData_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2641", + "ov_cimguiname": "ImDrawData_Clear", + "ret": "void", + "signature": "()", + "stname": "ImDrawData" + } + ], + "ImDrawData_DeIndexAllBuffers": [ + { + "args": "(ImDrawData* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawData_DeIndexAllBuffers", + "defaults": {}, + "funcname": "DeIndexAllBuffers", + "location": "imgui:2642", + "ov_cimguiname": "ImDrawData_DeIndexAllBuffers", + "ret": "void", + "signature": "()", + "stname": "ImDrawData" + } + ], + "ImDrawData_ImDrawData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawData_ImDrawData", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawData", + "location": "imgui:2640", + "ov_cimguiname": "ImDrawData_ImDrawData", + "signature": "()", + "stname": "ImDrawData" + } + ], + "ImDrawData_ScaleClipRects": [ + { + "args": "(ImDrawData* self,const ImVec2 fb_scale)", + "argsT": [ + { + "name": "self", + "type": "ImDrawData*" + }, + { + "name": "fb_scale", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& fb_scale)", + "call_args": "(fb_scale)", + "cimguiname": "ImDrawData_ScaleClipRects", + "defaults": {}, + "funcname": "ScaleClipRects", + "location": "imgui:2643", + "ov_cimguiname": "ImDrawData_ScaleClipRects", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImDrawData" + } + ], + "ImDrawData_destroy": [ + { + "args": "(ImDrawData* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImDrawData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImDrawData_destroy", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "ImDrawData" + } + ], + "ImDrawListSplitter_Clear": [ + { + "args": "(ImDrawListSplitter* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSplitter_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2453", + "ov_cimguiname": "ImDrawListSplitter_Clear", + "ret": "void", + "signature": "()", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_ClearFreeMemory": [ + { + "args": "(ImDrawListSplitter* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSplitter_ClearFreeMemory", + "defaults": {}, + "funcname": "ClearFreeMemory", + "location": "imgui:2454", + "ov_cimguiname": "ImDrawListSplitter_ClearFreeMemory", + "ret": "void", + "signature": "()", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_ImDrawListSplitter": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSplitter_ImDrawListSplitter", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawListSplitter", + "location": "imgui:2451", + "ov_cimguiname": "ImDrawListSplitter_ImDrawListSplitter", + "signature": "()", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_Merge": [ + { + "args": "(ImDrawListSplitter* self,ImDrawList* draw_list)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + } + ], + "argsoriginal": "(ImDrawList* draw_list)", + "call_args": "(draw_list)", + "cimguiname": "ImDrawListSplitter_Merge", + "defaults": {}, + "funcname": "Merge", + "location": "imgui:2456", + "ov_cimguiname": "ImDrawListSplitter_Merge", + "ret": "void", + "signature": "(ImDrawList*)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_SetCurrentChannel": [ + { + "args": "(ImDrawListSplitter* self,ImDrawList* draw_list,int channel_idx)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "channel_idx", + "type": "int" + } + ], + "argsoriginal": "(ImDrawList* draw_list,int channel_idx)", + "call_args": "(draw_list,channel_idx)", + "cimguiname": "ImDrawListSplitter_SetCurrentChannel", + "defaults": {}, + "funcname": "SetCurrentChannel", + "location": "imgui:2457", + "ov_cimguiname": "ImDrawListSplitter_SetCurrentChannel", + "ret": "void", + "signature": "(ImDrawList*,int)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_Split": [ + { + "args": "(ImDrawListSplitter* self,ImDrawList* draw_list,int count)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(ImDrawList* draw_list,int count)", + "call_args": "(draw_list,count)", + "cimguiname": "ImDrawListSplitter_Split", + "defaults": {}, + "funcname": "Split", + "location": "imgui:2455", + "ov_cimguiname": "ImDrawListSplitter_Split", + "ret": "void", + "signature": "(ImDrawList*,int)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_destroy": [ + { + "args": "(ImDrawListSplitter* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + } + ], + "call_args": "(self)", + "cimguiname": "ImDrawListSplitter_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2452", + "ov_cimguiname": "ImDrawListSplitter_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImDrawListSplitter*)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawList_AddBezierCubic": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness,int num_segments=0)", + "call_args": "(p1,p2,p3,p4,col,thickness,num_segments)", + "cimguiname": "ImDrawList_AddBezierCubic", + "defaults": { + "num_segments": "0" + }, + "funcname": "AddBezierCubic", + "location": "imgui:2556", + "ov_cimguiname": "ImDrawList_AddBezierCubic", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddBezierQuadratic": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness,int num_segments=0)", + "call_args": "(p1,p2,p3,col,thickness,num_segments)", + "cimguiname": "ImDrawList_AddBezierQuadratic", + "defaults": { + "num_segments": "0" + }, + "funcname": "AddBezierQuadratic", + "location": "imgui:2557", + "ov_cimguiname": "ImDrawList_AddBezierQuadratic", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddCallback": [ + { + "args": "(ImDrawList* self,ImDrawCallback callback,void* callback_data)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "callback", + "type": "ImDrawCallback" + }, + { + "name": "callback_data", + "type": "void*" + } + ], + "argsoriginal": "(ImDrawCallback callback,void* callback_data)", + "call_args": "(callback,callback_data)", + "cimguiname": "ImDrawList_AddCallback", + "defaults": {}, + "funcname": "AddCallback", + "location": "imgui:2581", + "ov_cimguiname": "ImDrawList_AddCallback", + "ret": "void", + "signature": "(ImDrawCallback,void*)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddCircle": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "num_segments", + "type": "int" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments=0,float thickness=1.0f)", + "call_args": "(center,radius,col,num_segments,thickness)", + "cimguiname": "ImDrawList_AddCircle", + "defaults": { + "num_segments": "0", + "thickness": "1.0f" + }, + "funcname": "AddCircle", + "location": "imgui:2548", + "ov_cimguiname": "ImDrawList_AddCircle", + "ret": "void", + "signature": "(const ImVec2,float,ImU32,int,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddCircleFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments=0)", + "call_args": "(center,radius,col,num_segments)", + "cimguiname": "ImDrawList_AddCircleFilled", + "defaults": { + "num_segments": "0" + }, + "funcname": "AddCircleFilled", + "location": "imgui:2549", + "ov_cimguiname": "ImDrawList_AddCircleFilled", + "ret": "void", + "signature": "(const ImVec2,float,ImU32,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddConvexPolyFilled": [ + { + "args": "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "points", + "type": "const ImVec2*" + }, + { + "name": "num_points", + "type": "int" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2* points,int num_points,ImU32 col)", + "call_args": "(points,num_points,col)", + "cimguiname": "ImDrawList_AddConvexPolyFilled", + "defaults": {}, + "funcname": "AddConvexPolyFilled", + "location": "imgui:2555", + "ov_cimguiname": "ImDrawList_AddConvexPolyFilled", + "ret": "void", + "signature": "(const ImVec2*,int,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddDrawCmd": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_AddDrawCmd", + "defaults": {}, + "funcname": "AddDrawCmd", + "location": "imgui:2582", + "ov_cimguiname": "ImDrawList_AddDrawCmd", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddImage": [ + { + "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "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" + } + ], + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min=ImVec2(0,0),const ImVec2& uv_max=ImVec2(1,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))", + "call_args": "(user_texture_id,p_min,p_max,uv_min,uv_max,col)", + "cimguiname": "ImDrawList_AddImage", + "defaults": { + "col": "4294967295", + "uv_max": "ImVec2(1,1)", + "uv_min": "ImVec2(0,0)" + }, + "funcname": "AddImage", + "location": "imgui:2563", + "ov_cimguiname": "ImDrawList_AddImage", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddImageQuad": [ + { + "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "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" + }, + { + "name": "uv2", + "type": "const ImVec2" + }, + { + "name": "uv3", + "type": "const ImVec2" + }, + { + "name": "uv4", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& uv1=ImVec2(0,0),const ImVec2& uv2=ImVec2(1,0),const ImVec2& uv3=ImVec2(1,1),const ImVec2& uv4=ImVec2(0,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))", + "call_args": "(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col)", + "cimguiname": "ImDrawList_AddImageQuad", + "defaults": { + "col": "4294967295", + "uv1": "ImVec2(0,0)", + "uv2": "ImVec2(1,0)", + "uv3": "ImVec2(1,1)", + "uv4": "ImVec2(0,1)" + }, + "funcname": "AddImageQuad", + "location": "imgui:2564", + "ov_cimguiname": "ImDrawList_AddImageQuad", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddImageRounded": [ + { + "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "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" + } + ], + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min,const ImVec2& uv_max,ImU32 col,float rounding,ImDrawFlags flags=0)", + "call_args": "(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags)", + "cimguiname": "ImDrawList_AddImageRounded", + "defaults": { + "flags": "0" + }, + "funcname": "AddImageRounded", + "location": "imgui:2565", + "ov_cimguiname": "ImDrawList_AddImageRounded", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddLine": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,ImU32 col,float thickness=1.0f)", + "call_args": "(p1,p2,col,thickness)", + "cimguiname": "ImDrawList_AddLine", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddLine", + "location": "imgui:2540", + "ov_cimguiname": "ImDrawList_AddLine", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddNgon": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "num_segments", + "type": "int" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments,float thickness=1.0f)", + "call_args": "(center,radius,col,num_segments,thickness)", + "cimguiname": "ImDrawList_AddNgon", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddNgon", + "location": "imgui:2550", + "ov_cimguiname": "ImDrawList_AddNgon", + "ret": "void", + "signature": "(const ImVec2,float,ImU32,int,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddNgonFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments)", + "call_args": "(center,radius,col,num_segments)", + "cimguiname": "ImDrawList_AddNgonFilled", + "defaults": {}, + "funcname": "AddNgonFilled", + "location": "imgui:2551", + "ov_cimguiname": "ImDrawList_AddNgonFilled", + "ret": "void", + "signature": "(const ImVec2,float,ImU32,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddPolyline": [ + { + "args": "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "points", + "type": "const ImVec2*" + }, + { + "name": "num_points", + "type": "int" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "flags", + "type": "ImDrawFlags" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)", + "call_args": "(points,num_points,col,flags,thickness)", + "cimguiname": "ImDrawList_AddPolyline", + "defaults": {}, + "funcname": "AddPolyline", + "location": "imgui:2554", + "ov_cimguiname": "ImDrawList_AddPolyline", + "ret": "void", + "signature": "(const ImVec2*,int,ImU32,ImDrawFlags,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddQuad": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness=1.0f)", + "call_args": "(p1,p2,p3,p4,col,thickness)", + "cimguiname": "ImDrawList_AddQuad", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddQuad", + "location": "imgui:2544", + "ov_cimguiname": "ImDrawList_AddQuad", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddQuadFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col)", + "call_args": "(p1,p2,p3,p4,col)", + "cimguiname": "ImDrawList_AddQuadFilled", + "defaults": {}, + "funcname": "AddQuadFilled", + "location": "imgui:2545", + "ov_cimguiname": "ImDrawList_AddQuadFilled", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddRect": [ + { + "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0,float thickness=1.0f)", + "call_args": "(p_min,p_max,col,rounding,flags,thickness)", + "cimguiname": "ImDrawList_AddRect", + "defaults": { + "flags": "0", + "rounding": "0.0f", + "thickness": "1.0f" + }, + "funcname": "AddRect", + "location": "imgui:2541", + "ov_cimguiname": "ImDrawList_AddRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddRectFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p_min", + "type": "const ImVec2" + }, + { + "name": "p_max", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "rounding", + "type": "float" + }, + { + "name": "flags", + "type": "ImDrawFlags" + } + ], + "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0)", + "call_args": "(p_min,p_max,col,rounding,flags)", + "cimguiname": "ImDrawList_AddRectFilled", + "defaults": { + "flags": "0", + "rounding": "0.0f" + }, + "funcname": "AddRectFilled", + "location": "imgui:2542", + "ov_cimguiname": "ImDrawList_AddRectFilled", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddRectFilledMultiColor": [ + { + "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)", + "call_args": "(p_min,p_max,col_upr_left,col_upr_right,col_bot_right,col_bot_left)", + "cimguiname": "ImDrawList_AddRectFilledMultiColor", + "defaults": {}, + "funcname": "AddRectFilledMultiColor", + "location": "imgui:2543", + "ov_cimguiname": "ImDrawList_AddRectFilledMultiColor", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddText": [ + { + "args": "(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "text_begin", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0))", + "call_args": "(pos,col,text_begin,text_end)", + "cimguiname": "ImDrawList_AddText", + "defaults": { + "text_end": "NULL" + }, + "funcname": "AddText", + "location": "imgui:2552", + "ov_cimguiname": "ImDrawList_AddText_Vec2", + "ret": "void", + "signature": "(const ImVec2,ImU32,const char*,const char*)", + "stname": "ImDrawList" + }, + { + "args": "(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "font", + "type": "const 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*" + }, + { + "name": "wrap_width", + "type": "float" + }, + { + "name": "cpu_fine_clip_rect", + "type": "const ImVec4*" + } + ], + "argsoriginal": "(const ImFont* font,float font_size,const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0),float wrap_width=0.0f,const ImVec4* cpu_fine_clip_rect=((void*)0))", + "call_args": "(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect)", + "cimguiname": "ImDrawList_AddText", + "defaults": { + "cpu_fine_clip_rect": "NULL", + "text_end": "NULL", + "wrap_width": "0.0f" + }, + "funcname": "AddText", + "location": "imgui:2553", + "ov_cimguiname": "ImDrawList_AddText_FontPtr", + "ret": "void", + "signature": "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddTriangle": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness=1.0f)", + "call_args": "(p1,p2,p3,col,thickness)", + "cimguiname": "ImDrawList_AddTriangle", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddTriangle", + "location": "imgui:2546", + "ov_cimguiname": "ImDrawList_AddTriangle", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddTriangleFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col)", + "call_args": "(p1,p2,p3,col)", + "cimguiname": "ImDrawList_AddTriangleFilled", + "defaults": {}, + "funcname": "AddTriangleFilled", + "location": "imgui:2547", + "ov_cimguiname": "ImDrawList_AddTriangleFilled", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_ChannelsMerge": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_ChannelsMerge", + "defaults": {}, + "funcname": "ChannelsMerge", + "location": "imgui:2592", + "ov_cimguiname": "ImDrawList_ChannelsMerge", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_ChannelsSetCurrent": [ + { + "args": "(ImDrawList* self,int n)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImDrawList_ChannelsSetCurrent", + "defaults": {}, + "funcname": "ChannelsSetCurrent", + "location": "imgui:2593", + "ov_cimguiname": "ImDrawList_ChannelsSetCurrent", + "ret": "void", + "signature": "(int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_ChannelsSplit": [ + { + "args": "(ImDrawList* self,int count)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(int count)", + "call_args": "(count)", + "cimguiname": "ImDrawList_ChannelsSplit", + "defaults": {}, + "funcname": "ChannelsSplit", + "location": "imgui:2591", + "ov_cimguiname": "ImDrawList_ChannelsSplit", + "ret": "void", + "signature": "(int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_CloneOutput": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_CloneOutput", + "defaults": {}, + "funcname": "CloneOutput", + "location": "imgui:2583", + "ov_cimguiname": "ImDrawList_CloneOutput", + "ret": "ImDrawList*", + "signature": "()const", + "stname": "ImDrawList" + } + ], + "ImDrawList_GetClipRectMax": [ + { + "args": "(ImVec2 *pOut,ImDrawList* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_GetClipRectMax", + "defaults": {}, + "funcname": "GetClipRectMax", + "location": "imgui:2531", + "nonUDT": 1, + "ov_cimguiname": "ImDrawList_GetClipRectMax", + "ret": "void", + "signature": "()const", + "stname": "ImDrawList" + } + ], + "ImDrawList_GetClipRectMin": [ + { + "args": "(ImVec2 *pOut,ImDrawList* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_GetClipRectMin", + "defaults": {}, + "funcname": "GetClipRectMin", + "location": "imgui:2530", + "nonUDT": 1, + "ov_cimguiname": "ImDrawList_GetClipRectMin", + "ret": "void", + "signature": "()const", + "stname": "ImDrawList" + } + ], + "ImDrawList_ImDrawList": [ + { + "args": "(ImDrawListSharedData* shared_data)", + "argsT": [ + { + "name": "shared_data", + "type": "ImDrawListSharedData*" + } + ], + "argsoriginal": "(ImDrawListSharedData* shared_data)", + "call_args": "(shared_data)", + "cimguiname": "ImDrawList_ImDrawList", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawList", + "location": "imgui:2522", + "ov_cimguiname": "ImDrawList_ImDrawList", + "signature": "(ImDrawListSharedData*)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathArcTo": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "a_min", + "type": "float" + }, + { + "name": "a_max", + "type": "float" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments=0)", + "call_args": "(center,radius,a_min,a_max,num_segments)", + "cimguiname": "ImDrawList_PathArcTo", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathArcTo", + "location": "imgui:2574", + "ov_cimguiname": "ImDrawList_PathArcTo", + "ret": "void", + "signature": "(const ImVec2,float,float,float,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathArcToFast": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "a_min_of_12", + "type": "int" + }, + { + "name": "a_max_of_12", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,int a_min_of_12,int a_max_of_12)", + "call_args": "(center,radius,a_min_of_12,a_max_of_12)", + "cimguiname": "ImDrawList_PathArcToFast", + "defaults": {}, + "funcname": "PathArcToFast", + "location": "imgui:2575", + "ov_cimguiname": "ImDrawList_PathArcToFast", + "ret": "void", + "signature": "(const ImVec2,float,int,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathBezierCubicCurveTo": [ + { + "args": "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", + "type": "const ImVec2" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,int num_segments=0)", + "call_args": "(p2,p3,p4,num_segments)", + "cimguiname": "ImDrawList_PathBezierCubicCurveTo", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathBezierCubicCurveTo", + "location": "imgui:2576", + "ov_cimguiname": "ImDrawList_PathBezierCubicCurveTo", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathBezierQuadraticCurveTo": [ + { + "args": "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& p2,const ImVec2& p3,int num_segments=0)", + "call_args": "(p2,p3,num_segments)", + "cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathBezierQuadraticCurveTo", + "location": "imgui:2577", + "ov_cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathClear": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_PathClear", + "defaults": {}, + "funcname": "PathClear", + "location": "imgui:2569", + "ov_cimguiname": "ImDrawList_PathClear", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathFillConvex": [ + { + "args": "(ImDrawList* self,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 col)", + "call_args": "(col)", + "cimguiname": "ImDrawList_PathFillConvex", + "defaults": {}, + "funcname": "PathFillConvex", + "location": "imgui:2572", + "ov_cimguiname": "ImDrawList_PathFillConvex", + "ret": "void", + "signature": "(ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathLineTo": [ + { + "args": "(ImDrawList* self,const ImVec2 pos)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "ImDrawList_PathLineTo", + "defaults": {}, + "funcname": "PathLineTo", + "location": "imgui:2570", + "ov_cimguiname": "ImDrawList_PathLineTo", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathLineToMergeDuplicate": [ + { + "args": "(ImDrawList* self,const ImVec2 pos)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "ImDrawList_PathLineToMergeDuplicate", + "defaults": {}, + "funcname": "PathLineToMergeDuplicate", + "location": "imgui:2571", + "ov_cimguiname": "ImDrawList_PathLineToMergeDuplicate", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathRect": [ + { + "args": "(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "rect_min", + "type": "const ImVec2" + }, + { + "name": "rect_max", + "type": "const ImVec2" + }, + { + "name": "rounding", + "type": "float" + }, + { + "name": "flags", + "type": "ImDrawFlags" + } + ], + "argsoriginal": "(const ImVec2& rect_min,const ImVec2& rect_max,float rounding=0.0f,ImDrawFlags flags=0)", + "call_args": "(rect_min,rect_max,rounding,flags)", + "cimguiname": "ImDrawList_PathRect", + "defaults": { + "flags": "0", + "rounding": "0.0f" + }, + "funcname": "PathRect", + "location": "imgui:2578", + "ov_cimguiname": "ImDrawList_PathRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,float,ImDrawFlags)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathStroke": [ + { + "args": "(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "flags", + "type": "ImDrawFlags" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(ImU32 col,ImDrawFlags flags=0,float thickness=1.0f)", + "call_args": "(col,flags,thickness)", + "cimguiname": "ImDrawList_PathStroke", + "defaults": { + "flags": "0", + "thickness": "1.0f" + }, + "funcname": "PathStroke", + "location": "imgui:2573", + "ov_cimguiname": "ImDrawList_PathStroke", + "ret": "void", + "signature": "(ImU32,ImDrawFlags,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PopClipRect": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_PopClipRect", + "defaults": {}, + "funcname": "PopClipRect", + "location": "imgui:2527", + "ov_cimguiname": "ImDrawList_PopClipRect", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_PopTextureID": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_PopTextureID", + "defaults": {}, + "funcname": "PopTextureID", + "location": "imgui:2529", + "ov_cimguiname": "ImDrawList_PopTextureID", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimQuadUV": [ + { + "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,const ImVec2& uv_a,const ImVec2& uv_b,const ImVec2& uv_c,const ImVec2& uv_d,ImU32 col)", + "call_args": "(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col)", + "cimguiname": "ImDrawList_PrimQuadUV", + "defaults": {}, + "funcname": "PrimQuadUV", + "location": "imgui:2602", + "ov_cimguiname": "ImDrawList_PrimQuadUV", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimRect": [ + { + "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,ImU32 col)", + "call_args": "(a,b,col)", + "cimguiname": "ImDrawList_PrimRect", + "defaults": {}, + "funcname": "PrimRect", + "location": "imgui:2600", + "ov_cimguiname": "ImDrawList_PrimRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimRectUV": [ + { + "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,ImU32 col)", + "call_args": "(a,b,uv_a,uv_b,col)", + "cimguiname": "ImDrawList_PrimRectUV", + "defaults": {}, + "funcname": "PrimRectUV", + "location": "imgui:2601", + "ov_cimguiname": "ImDrawList_PrimRectUV", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimReserve": [ + { + "args": "(ImDrawList* self,int idx_count,int vtx_count)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "idx_count", + "type": "int" + }, + { + "name": "vtx_count", + "type": "int" + } + ], + "argsoriginal": "(int idx_count,int vtx_count)", + "call_args": "(idx_count,vtx_count)", + "cimguiname": "ImDrawList_PrimReserve", + "defaults": {}, + "funcname": "PrimReserve", + "location": "imgui:2598", + "ov_cimguiname": "ImDrawList_PrimReserve", + "ret": "void", + "signature": "(int,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimUnreserve": [ + { + "args": "(ImDrawList* self,int idx_count,int vtx_count)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "idx_count", + "type": "int" + }, + { + "name": "vtx_count", + "type": "int" + } + ], + "argsoriginal": "(int idx_count,int vtx_count)", + "call_args": "(idx_count,vtx_count)", + "cimguiname": "ImDrawList_PrimUnreserve", + "defaults": {}, + "funcname": "PrimUnreserve", + "location": "imgui:2599", + "ov_cimguiname": "ImDrawList_PrimUnreserve", + "ret": "void", + "signature": "(int,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimVtx": [ + { + "args": "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "uv", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& pos,const ImVec2& uv,ImU32 col)", + "call_args": "(pos,uv,col)", + "cimguiname": "ImDrawList_PrimVtx", + "defaults": {}, + "funcname": "PrimVtx", + "location": "imgui:2605", + "ov_cimguiname": "ImDrawList_PrimVtx", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimWriteIdx": [ + { + "args": "(ImDrawList* self,ImDrawIdx idx)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "idx", + "type": "ImDrawIdx" + } + ], + "argsoriginal": "(ImDrawIdx idx)", + "call_args": "(idx)", + "cimguiname": "ImDrawList_PrimWriteIdx", + "defaults": {}, + "funcname": "PrimWriteIdx", + "location": "imgui:2604", + "ov_cimguiname": "ImDrawList_PrimWriteIdx", + "ret": "void", + "signature": "(ImDrawIdx)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PrimWriteVtx": [ + { + "args": "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "uv", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& pos,const ImVec2& uv,ImU32 col)", + "call_args": "(pos,uv,col)", + "cimguiname": "ImDrawList_PrimWriteVtx", + "defaults": {}, + "funcname": "PrimWriteVtx", + "location": "imgui:2603", + "ov_cimguiname": "ImDrawList_PrimWriteVtx", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PushClipRect": [ + { + "args": "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "clip_rect_min", + "type": "const ImVec2" + }, + { + "name": "clip_rect_max", + "type": "const ImVec2" + }, + { + "name": "intersect_with_current_clip_rect", + "type": "bool" + } + ], + "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)", + "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", + "cimguiname": "ImDrawList_PushClipRect", + "defaults": { + "intersect_with_current_clip_rect": "false" + }, + "funcname": "PushClipRect", + "location": "imgui:2525", + "ov_cimguiname": "ImDrawList_PushClipRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,bool)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PushClipRectFullScreen": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_PushClipRectFullScreen", + "defaults": {}, + "funcname": "PushClipRectFullScreen", + "location": "imgui:2526", + "ov_cimguiname": "ImDrawList_PushClipRectFullScreen", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_PushTextureID": [ + { + "args": "(ImDrawList* self,ImTextureID texture_id)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "texture_id", + "type": "ImTextureID" + } + ], + "argsoriginal": "(ImTextureID texture_id)", + "call_args": "(texture_id)", + "cimguiname": "ImDrawList_PushTextureID", + "defaults": {}, + "funcname": "PushTextureID", + "location": "imgui:2528", + "ov_cimguiname": "ImDrawList_PushTextureID", + "ret": "void", + "signature": "(ImTextureID)", + "stname": "ImDrawList" + } + ], + "ImDrawList__CalcCircleAutoSegmentCount": [ + { + "args": "(ImDrawList* self,float radius)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "radius", + "type": "float" + } + ], + "argsoriginal": "(float radius)", + "call_args": "(radius)", + "cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", + "defaults": {}, + "funcname": "_CalcCircleAutoSegmentCount", + "location": "imgui:2620", + "ov_cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", + "ret": "int", + "signature": "(float)const", + "stname": "ImDrawList" + } + ], + "ImDrawList__ClearFreeMemory": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__ClearFreeMemory", + "defaults": {}, + "funcname": "_ClearFreeMemory", + "location": "imgui:2614", + "ov_cimguiname": "ImDrawList__ClearFreeMemory", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__OnChangedClipRect": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__OnChangedClipRect", + "defaults": {}, + "funcname": "_OnChangedClipRect", + "location": "imgui:2617", + "ov_cimguiname": "ImDrawList__OnChangedClipRect", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__OnChangedTextureID": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__OnChangedTextureID", + "defaults": {}, + "funcname": "_OnChangedTextureID", + "location": "imgui:2618", + "ov_cimguiname": "ImDrawList__OnChangedTextureID", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__OnChangedVtxOffset": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__OnChangedVtxOffset", + "defaults": {}, + "funcname": "_OnChangedVtxOffset", + "location": "imgui:2619", + "ov_cimguiname": "ImDrawList__OnChangedVtxOffset", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__PathArcToFastEx": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "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" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,int a_min_sample,int a_max_sample,int a_step)", + "call_args": "(center,radius,a_min_sample,a_max_sample,a_step)", + "cimguiname": "ImDrawList__PathArcToFastEx", + "defaults": {}, + "funcname": "_PathArcToFastEx", + "location": "imgui:2621", + "ov_cimguiname": "ImDrawList__PathArcToFastEx", + "ret": "void", + "signature": "(const ImVec2,float,int,int,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList__PathArcToN": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "a_min", + "type": "float" + }, + { + "name": "a_max", + "type": "float" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments)", + "call_args": "(center,radius,a_min,a_max,num_segments)", + "cimguiname": "ImDrawList__PathArcToN", + "defaults": {}, + "funcname": "_PathArcToN", + "location": "imgui:2622", + "ov_cimguiname": "ImDrawList__PathArcToN", + "ret": "void", + "signature": "(const ImVec2,float,float,float,int)", + "stname": "ImDrawList" + } + ], + "ImDrawList__PopUnusedDrawCmd": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__PopUnusedDrawCmd", + "defaults": {}, + "funcname": "_PopUnusedDrawCmd", + "location": "imgui:2615", + "ov_cimguiname": "ImDrawList__PopUnusedDrawCmd", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__ResetForNewFrame": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__ResetForNewFrame", + "defaults": {}, + "funcname": "_ResetForNewFrame", + "location": "imgui:2613", + "ov_cimguiname": "ImDrawList__ResetForNewFrame", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList__TryMergeDrawCmds": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList__TryMergeDrawCmds", + "defaults": {}, + "funcname": "_TryMergeDrawCmds", + "location": "imgui:2616", + "ov_cimguiname": "ImDrawList__TryMergeDrawCmds", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" + } + ], + "ImDrawList_destroy": [ + { + "args": "(ImDrawList* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + } + ], + "call_args": "(self)", + "cimguiname": "ImDrawList_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2524", + "ov_cimguiname": "ImDrawList_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImDrawList*)", + "stname": "ImDrawList" + } + ], + "ImFontAtlasCustomRect_ImFontAtlasCustomRect": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", + "constructor": true, + "defaults": {}, + "funcname": "ImFontAtlasCustomRect", + "location": "imgui:2714", + "ov_cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", + "signature": "()", + "stname": "ImFontAtlasCustomRect" + } + ], + "ImFontAtlasCustomRect_IsPacked": [ + { + "args": "(ImFontAtlasCustomRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlasCustomRect*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlasCustomRect_IsPacked", + "defaults": {}, + "funcname": "IsPacked", + "location": "imgui:2715", + "ov_cimguiname": "ImFontAtlasCustomRect_IsPacked", + "ret": "bool", + "signature": "()const", + "stname": "ImFontAtlasCustomRect" + } + ], + "ImFontAtlasCustomRect_destroy": [ + { + "args": "(ImFontAtlasCustomRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlasCustomRect*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFontAtlasCustomRect_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImFontAtlasCustomRect_destroy", + "ret": "void", + "signature": "(ImFontAtlasCustomRect*)", + "stname": "ImFontAtlasCustomRect" + } + ], + "ImFontAtlas_AddCustomRectFontGlyph": [ + { + "args": "(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "font", + "type": "ImFont*" + }, + { + "name": "id", + "type": "ImWchar" + }, + { + "name": "width", + "type": "int" + }, + { + "name": "height", + "type": "int" + }, + { + "name": "advance_x", + "type": "float" + }, + { + "name": "offset", + "type": "const ImVec2" + } + ], + "argsoriginal": "(ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2& offset=ImVec2(0,0))", + "call_args": "(font,id,width,height,advance_x,offset)", + "cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", + "defaults": { + "offset": "ImVec2(0,0)" + }, + "funcname": "AddCustomRectFontGlyph", + "location": "imgui:2799", + "ov_cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", + "ret": "int", + "signature": "(ImFont*,ImWchar,int,int,float,const ImVec2)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddCustomRectRegular": [ + { + "args": "(ImFontAtlas* self,int width,int height)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "width", + "type": "int" + }, + { + "name": "height", + "type": "int" + } + ], + "argsoriginal": "(int width,int height)", + "call_args": "(width,height)", + "cimguiname": "ImFontAtlas_AddCustomRectRegular", + "defaults": {}, + "funcname": "AddCustomRectRegular", + "location": "imgui:2798", + "ov_cimguiname": "ImFontAtlas_AddCustomRectRegular", + "ret": "int", + "signature": "(int,int)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFont": [ + { + "args": "(ImFontAtlas* self,const ImFontConfig* font_cfg)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + } + ], + "argsoriginal": "(const ImFontConfig* font_cfg)", + "call_args": "(font_cfg)", + "cimguiname": "ImFontAtlas_AddFont", + "defaults": {}, + "funcname": "AddFont", + "location": "imgui:2748", + "ov_cimguiname": "ImFontAtlas_AddFont", + "ret": "ImFont*", + "signature": "(const ImFontConfig*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontDefault": [ + { + "args": "(ImFontAtlas* self,const ImFontConfig* font_cfg)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + } + ], + "argsoriginal": "(const ImFontConfig* font_cfg=((void*)0))", + "call_args": "(font_cfg)", + "cimguiname": "ImFontAtlas_AddFontDefault", + "defaults": { + "font_cfg": "NULL" + }, + "funcname": "AddFontDefault", + "location": "imgui:2749", + "ov_cimguiname": "ImFontAtlas_AddFontDefault", + "ret": "ImFont*", + "signature": "(const ImFontConfig*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontFromFileTTF": [ + { + "args": "(ImFontAtlas* self,const char* filename,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "filename", + "type": "const char*" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const char* filename,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(filename,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromFileTTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromFileTTF", + "location": "imgui:2750", + "ov_cimguiname": "ImFontAtlas_AddFontFromFileTTF", + "ret": "ImFont*", + "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF": [ + { + "args": "(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "compressed_font_data_base85", + "type": "const char*" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromMemoryCompressedBase85TTF", + "location": "imgui:2753", + "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", + "ret": "ImFont*", + "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontFromMemoryCompressedTTF": [ + { + "args": "(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "compressed_font_data", + "type": "const void*" + }, + { + "name": "compressed_font_size", + "type": "int" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromMemoryCompressedTTF", + "location": "imgui:2752", + "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", + "ret": "ImFont*", + "signature": "(const void*,int,float,const ImFontConfig*,const ImWchar*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontFromMemoryTTF": [ + { + "args": "(ImFontAtlas* self,void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "font_data", + "type": "void*" + }, + { + "name": "font_size", + "type": "int" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(font_data,font_size,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromMemoryTTF", + "location": "imgui:2751", + "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", + "ret": "ImFont*", + "signature": "(void*,int,float,const ImFontConfig*,const ImWchar*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_Build": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_Build", + "defaults": {}, + "funcname": "Build", + "location": "imgui:2764", + "ov_cimguiname": "ImFontAtlas_Build", + "ret": "bool", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_CalcCustomRectUV": [ + { + "args": "(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "rect", + "type": "const ImFontAtlasCustomRect*" + }, + { + "name": "out_uv_min", + "type": "ImVec2*" + }, + { + "name": "out_uv_max", + "type": "ImVec2*" + } + ], + "argsoriginal": "(const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)", + "call_args": "(rect,out_uv_min,out_uv_max)", + "cimguiname": "ImFontAtlas_CalcCustomRectUV", + "defaults": {}, + "funcname": "CalcCustomRectUV", + "location": "imgui:2803", + "ov_cimguiname": "ImFontAtlas_CalcCustomRectUV", + "ret": "void", + "signature": "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_Clear": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2757", + "ov_cimguiname": "ImFontAtlas_Clear", + "ret": "void", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_ClearFonts": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ClearFonts", + "defaults": {}, + "funcname": "ClearFonts", + "location": "imgui:2756", + "ov_cimguiname": "ImFontAtlas_ClearFonts", + "ret": "void", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_ClearInputData": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ClearInputData", + "defaults": {}, + "funcname": "ClearInputData", + "location": "imgui:2754", + "ov_cimguiname": "ImFontAtlas_ClearInputData", + "ret": "void", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_ClearTexData": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ClearTexData", + "defaults": {}, + "funcname": "ClearTexData", + "location": "imgui:2755", + "ov_cimguiname": "ImFontAtlas_ClearTexData", + "ret": "void", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetCustomRectByIndex": [ + { + "args": "(ImFontAtlas* self,int index)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "index", + "type": "int" + } + ], + "argsoriginal": "(int index)", + "call_args": "(index)", + "cimguiname": "ImFontAtlas_GetCustomRectByIndex", + "defaults": {}, + "funcname": "GetCustomRectByIndex", + "location": "imgui:2800", + "ov_cimguiname": "ImFontAtlas_GetCustomRectByIndex", + "ret": "ImFontAtlasCustomRect*", + "signature": "(int)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesChineseFull": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", + "defaults": {}, + "funcname": "GetGlyphRangesChineseFull", + "location": "imgui:2781", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", + "defaults": {}, + "funcname": "GetGlyphRangesChineseSimplifiedCommon", + "location": "imgui:2782", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesCyrillic": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", + "defaults": {}, + "funcname": "GetGlyphRangesCyrillic", + "location": "imgui:2783", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesDefault": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesDefault", + "defaults": {}, + "funcname": "GetGlyphRangesDefault", + "location": "imgui:2777", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesDefault", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesGreek": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "defaults": {}, + "funcname": "GetGlyphRangesGreek", + "location": "imgui:2778", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesJapanese": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", + "defaults": {}, + "funcname": "GetGlyphRangesJapanese", + "location": "imgui:2780", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesKorean": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesKorean", + "defaults": {}, + "funcname": "GetGlyphRangesKorean", + "location": "imgui:2779", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesKorean", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesThai": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesThai", + "defaults": {}, + "funcname": "GetGlyphRangesThai", + "location": "imgui:2784", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesThai", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetGlyphRangesVietnamese": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", + "defaults": {}, + "funcname": "GetGlyphRangesVietnamese", + "location": "imgui:2785", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetMouseCursorTexData": [ + { + "args": "(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "cursor", + "type": "ImGuiMouseCursor" + }, + { + "name": "out_offset", + "type": "ImVec2*" + }, + { + "name": "out_size", + "type": "ImVec2*" + }, + { + "name": "out_uv_border", + "type": "ImVec2[2]" + }, + { + "name": "out_uv_fill", + "type": "ImVec2[2]" + } + ], + "argsoriginal": "(ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])", + "call_args": "(cursor,out_offset,out_size,out_uv_border,out_uv_fill)", + "cimguiname": "ImFontAtlas_GetMouseCursorTexData", + "defaults": {}, + "funcname": "GetMouseCursorTexData", + "location": "imgui:2804", + "ov_cimguiname": "ImFontAtlas_GetMouseCursorTexData", + "ret": "bool", + "signature": "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetTexDataAsAlpha8": [ + { + "args": "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "out_pixels", + "type": "unsigned char**" + }, + { + "name": "out_width", + "type": "int*" + }, + { + "name": "out_height", + "type": "int*" + }, + { + "name": "out_bytes_per_pixel", + "type": "int*" + } + ], + "argsoriginal": "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))", + "call_args": "(out_pixels,out_width,out_height,out_bytes_per_pixel)", + "cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", + "defaults": { + "out_bytes_per_pixel": "NULL" + }, + "funcname": "GetTexDataAsAlpha8", + "location": "imgui:2765", + "ov_cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", + "ret": "void", + "signature": "(unsigned char**,int*,int*,int*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_GetTexDataAsRGBA32": [ + { + "args": "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "out_pixels", + "type": "unsigned char**" + }, + { + "name": "out_width", + "type": "int*" + }, + { + "name": "out_height", + "type": "int*" + }, + { + "name": "out_bytes_per_pixel", + "type": "int*" + } + ], + "argsoriginal": "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))", + "call_args": "(out_pixels,out_width,out_height,out_bytes_per_pixel)", + "cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", + "defaults": { + "out_bytes_per_pixel": "NULL" + }, + "funcname": "GetTexDataAsRGBA32", + "location": "imgui:2766", + "ov_cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", + "ret": "void", + "signature": "(unsigned char**,int*,int*,int*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_ImFontAtlas": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ImFontAtlas", + "constructor": true, + "defaults": {}, + "funcname": "ImFontAtlas", + "location": "imgui:2746", + "ov_cimguiname": "ImFontAtlas_ImFontAtlas", + "signature": "()", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_IsBuilt": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_IsBuilt", + "defaults": {}, + "funcname": "IsBuilt", + "location": "imgui:2767", + "ov_cimguiname": "ImFontAtlas_IsBuilt", + "ret": "bool", + "signature": "()const", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_SetTexID": [ + { + "args": "(ImFontAtlas* self,ImTextureID id)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + }, + { + "name": "id", + "type": "ImTextureID" + } + ], + "argsoriginal": "(ImTextureID id)", + "call_args": "(id)", + "cimguiname": "ImFontAtlas_SetTexID", + "defaults": {}, + "funcname": "SetTexID", + "location": "imgui:2768", + "ov_cimguiname": "ImFontAtlas_SetTexID", + "ret": "void", + "signature": "(ImTextureID)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_destroy": [ + { + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFontAtlas_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2747", + "ov_cimguiname": "ImFontAtlas_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImFontAtlas*)", + "stname": "ImFontAtlas" + } + ], + "ImFontConfig_ImFontConfig": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontConfig_ImFontConfig", + "constructor": true, + "defaults": {}, + "funcname": "ImFontConfig", + "location": "imgui:2674", + "ov_cimguiname": "ImFontConfig_ImFontConfig", + "signature": "()", + "stname": "ImFontConfig" + } + ], + "ImFontConfig_destroy": [ + { + "args": "(ImFontConfig* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontConfig*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFontConfig_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImFontConfig_destroy", + "ret": "void", + "signature": "(ImFontConfig*)", + "stname": "ImFontConfig" + } + ], + "ImFontGlyphRangesBuilder_AddChar": [ + { + "args": "(ImFontGlyphRangesBuilder* self,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFontGlyphRangesBuilder_AddChar", + "defaults": {}, + "funcname": "AddChar", + "location": "imgui:2699", + "ov_cimguiname": "ImFontGlyphRangesBuilder_AddChar", + "ret": "void", + "signature": "(ImWchar)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_AddRanges": [ + { + "args": "(ImFontGlyphRangesBuilder* self,const ImWchar* ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const ImWchar* ranges)", + "call_args": "(ranges)", + "cimguiname": "ImFontGlyphRangesBuilder_AddRanges", + "defaults": {}, + "funcname": "AddRanges", + "location": "imgui:2701", + "ov_cimguiname": "ImFontGlyphRangesBuilder_AddRanges", + "ret": "void", + "signature": "(const ImWchar*)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_AddText": [ + { + "args": "(ImFontGlyphRangesBuilder* self,const char* text,const char* text_end)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0))", + "call_args": "(text,text_end)", + "cimguiname": "ImFontGlyphRangesBuilder_AddText", + "defaults": { + "text_end": "NULL" + }, + "funcname": "AddText", + "location": "imgui:2700", + "ov_cimguiname": "ImFontGlyphRangesBuilder_AddText", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_BuildRanges": [ + { + "args": "(ImFontGlyphRangesBuilder* self,ImVector_ImWchar* out_ranges)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "out_ranges", + "type": "ImVector_ImWchar*" + } + ], + "argsoriginal": "(ImVector* out_ranges)", + "call_args": "(out_ranges)", + "cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", + "defaults": {}, + "funcname": "BuildRanges", + "location": "imgui:2702", + "ov_cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", + "ret": "void", + "signature": "(ImVector_ImWchar*)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_Clear": [ + { + "args": "(ImFontGlyphRangesBuilder* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontGlyphRangesBuilder_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2696", + "ov_cimguiname": "ImFontGlyphRangesBuilder_Clear", + "ret": "void", + "signature": "()", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_GetBit": [ + { + "args": "(ImFontGlyphRangesBuilder* self,size_t n)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "n", + "type": "size_t" + } + ], + "argsoriginal": "(size_t n)", + "call_args": "(n)", + "cimguiname": "ImFontGlyphRangesBuilder_GetBit", + "defaults": {}, + "funcname": "GetBit", + "location": "imgui:2697", + "ov_cimguiname": "ImFontGlyphRangesBuilder_GetBit", + "ret": "bool", + "signature": "(size_t)const", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", + "constructor": true, + "defaults": {}, + "funcname": "ImFontGlyphRangesBuilder", + "location": "imgui:2695", + "ov_cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", + "signature": "()", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_SetBit": [ + { + "args": "(ImFontGlyphRangesBuilder* self,size_t n)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + }, + { + "name": "n", + "type": "size_t" + } + ], + "argsoriginal": "(size_t n)", + "call_args": "(n)", + "cimguiname": "ImFontGlyphRangesBuilder_SetBit", + "defaults": {}, + "funcname": "SetBit", + "location": "imgui:2698", + "ov_cimguiname": "ImFontGlyphRangesBuilder_SetBit", + "ret": "void", + "signature": "(size_t)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_destroy": [ + { + "args": "(ImFontGlyphRangesBuilder* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontGlyphRangesBuilder*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFontGlyphRangesBuilder_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImFontGlyphRangesBuilder_destroy", + "ret": "void", + "signature": "(ImFontGlyphRangesBuilder*)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFont_AddGlyph": [ + { + "args": "(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "src_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "c", + "type": "ImWchar" + }, + { + "name": "x0", + "type": "float" + }, + { + "name": "y0", + "type": "float" + }, + { + "name": "x1", + "type": "float" + }, + { + "name": "y1", + "type": "float" + }, + { + "name": "u0", + "type": "float" + }, + { + "name": "v0", + "type": "float" + }, + { + "name": "u1", + "type": "float" + }, + { + "name": "v1", + "type": "float" + }, + { + "name": "advance_x", + "type": "float" + } + ], + "argsoriginal": "(const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)", + "call_args": "(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,advance_x)", + "cimguiname": "ImFont_AddGlyph", + "defaults": {}, + "funcname": "AddGlyph", + "location": "imgui:2891", + "ov_cimguiname": "ImFont_AddGlyph", + "ret": "void", + "signature": "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)", + "stname": "ImFont" + } + ], + "ImFont_AddRemapChar": [ + { + "args": "(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "dst", + "type": "ImWchar" + }, + { + "name": "src", + "type": "ImWchar" + }, + { + "name": "overwrite_dst", + "type": "bool" + } + ], + "argsoriginal": "(ImWchar dst,ImWchar src,bool overwrite_dst=true)", + "call_args": "(dst,src,overwrite_dst)", + "cimguiname": "ImFont_AddRemapChar", + "defaults": { + "overwrite_dst": "true" + }, + "funcname": "AddRemapChar", + "location": "imgui:2892", + "ov_cimguiname": "ImFont_AddRemapChar", + "ret": "void", + "signature": "(ImWchar,ImWchar,bool)", + "stname": "ImFont" + } + ], + "ImFont_BuildLookupTable": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_BuildLookupTable", + "defaults": {}, + "funcname": "BuildLookupTable", + "location": "imgui:2888", + "ov_cimguiname": "ImFont_BuildLookupTable", + "ret": "void", + "signature": "()", + "stname": "ImFont" + } + ], + "ImFont_CalcTextSizeA": [ + { + "args": "(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImFont*" + }, + { + "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*" + }, + { + "name": "remaining", + "type": "const char**" + } + ], + "argsoriginal": "(float size,float max_width,float wrap_width,const char* text_begin,const char* text_end=((void*)0),const char** remaining=((void*)0))", + "call_args": "(size,max_width,wrap_width,text_begin,text_end,remaining)", + "cimguiname": "ImFont_CalcTextSizeA", + "defaults": { + "remaining": "NULL", + "text_end": "NULL" + }, + "funcname": "CalcTextSizeA", + "location": "imgui:2882", + "nonUDT": 1, + "ov_cimguiname": "ImFont_CalcTextSizeA", + "ret": "void", + "signature": "(float,float,float,const char*,const char*,const char**)const", + "stname": "ImFont" + } + ], + "ImFont_CalcWordWrapPositionA": [ + { + "args": "(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "scale", + "type": "float" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + }, + { + "name": "wrap_width", + "type": "float" + } + ], + "argsoriginal": "(float scale,const char* text,const char* text_end,float wrap_width)", + "call_args": "(scale,text,text_end,wrap_width)", + "cimguiname": "ImFont_CalcWordWrapPositionA", + "defaults": {}, + "funcname": "CalcWordWrapPositionA", + "location": "imgui:2883", + "ov_cimguiname": "ImFont_CalcWordWrapPositionA", + "ret": "const char*", + "signature": "(float,const char*,const char*,float)const", + "stname": "ImFont" + } + ], + "ImFont_ClearOutputData": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_ClearOutputData", + "defaults": {}, + "funcname": "ClearOutputData", + "location": "imgui:2889", + "ov_cimguiname": "ImFont_ClearOutputData", + "ret": "void", + "signature": "()", + "stname": "ImFont" + } + ], + "ImFont_FindGlyph": [ + { + "args": "(ImFont* self,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFont_FindGlyph", + "defaults": {}, + "funcname": "FindGlyph", + "location": "imgui:2874", + "ov_cimguiname": "ImFont_FindGlyph", + "ret": "const ImFontGlyph*", + "signature": "(ImWchar)const", + "stname": "ImFont" + } + ], + "ImFont_FindGlyphNoFallback": [ + { + "args": "(ImFont* self,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFont_FindGlyphNoFallback", + "defaults": {}, + "funcname": "FindGlyphNoFallback", + "location": "imgui:2875", + "ov_cimguiname": "ImFont_FindGlyphNoFallback", + "ret": "const ImFontGlyph*", + "signature": "(ImWchar)const", + "stname": "ImFont" + } + ], + "ImFont_GetCharAdvance": [ + { + "args": "(ImFont* self,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFont_GetCharAdvance", + "defaults": {}, + "funcname": "GetCharAdvance", + "location": "imgui:2876", + "ov_cimguiname": "ImFont_GetCharAdvance", + "ret": "float", + "signature": "(ImWchar)const", + "stname": "ImFont" + } + ], + "ImFont_GetDebugName": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_GetDebugName", + "defaults": {}, + "funcname": "GetDebugName", + "location": "imgui:2878", + "ov_cimguiname": "ImFont_GetDebugName", + "ret": "const char*", + "signature": "()const", + "stname": "ImFont" + } + ], + "ImFont_GrowIndex": [ + { + "args": "(ImFont* self,int new_size)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "new_size", + "type": "int" + } + ], + "argsoriginal": "(int new_size)", + "call_args": "(new_size)", + "cimguiname": "ImFont_GrowIndex", + "defaults": {}, + "funcname": "GrowIndex", + "location": "imgui:2890", + "ov_cimguiname": "ImFont_GrowIndex", + "ret": "void", + "signature": "(int)", + "stname": "ImFont" + } + ], + "ImFont_ImFont": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_ImFont", + "constructor": true, + "defaults": {}, + "funcname": "ImFont", + "location": "imgui:2872", + "ov_cimguiname": "ImFont_ImFont", + "signature": "()", + "stname": "ImFont" + } + ], + "ImFont_IsGlyphRangeUnused": [ + { + "args": "(ImFont* self,unsigned int c_begin,unsigned int c_last)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c_begin", + "type": "unsigned int" + }, + { + "name": "c_last", + "type": "unsigned int" + } + ], + "argsoriginal": "(unsigned int c_begin,unsigned int c_last)", + "call_args": "(c_begin,c_last)", + "cimguiname": "ImFont_IsGlyphRangeUnused", + "defaults": {}, + "funcname": "IsGlyphRangeUnused", + "location": "imgui:2894", + "ov_cimguiname": "ImFont_IsGlyphRangeUnused", + "ret": "bool", + "signature": "(unsigned int,unsigned int)", + "stname": "ImFont" + } + ], + "ImFont_IsLoaded": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_IsLoaded", + "defaults": {}, + "funcname": "IsLoaded", + "location": "imgui:2877", + "ov_cimguiname": "ImFont_IsLoaded", + "ret": "bool", + "signature": "()const", + "stname": "ImFont" + } + ], + "ImFont_RenderChar": [ + { + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "size", + "type": "float" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)", + "call_args": "(draw_list,size,pos,col,c)", + "cimguiname": "ImFont_RenderChar", + "defaults": {}, + "funcname": "RenderChar", + "location": "imgui:2884", + "ov_cimguiname": "ImFont_RenderChar", + "ret": "void", + "signature": "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const", + "stname": "ImFont" + } + ], + "ImFont_RenderText": [ + { + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "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" + }, + { + "name": "cpu_fine_clip", + "type": "bool" + } + ], + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)", + "call_args": "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)", + "cimguiname": "ImFont_RenderText", + "defaults": { + "cpu_fine_clip": "false", + "wrap_width": "0.0f" + }, + "funcname": "RenderText", + "location": "imgui:2885", + "ov_cimguiname": "ImFont_RenderText", + "ret": "void", + "signature": "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const", + "stname": "ImFont" + } + ], + "ImFont_SetGlyphVisible": [ + { + "args": "(ImFont* self,ImWchar c,bool visible)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" + }, + { + "name": "visible", + "type": "bool" + } + ], + "argsoriginal": "(ImWchar c,bool visible)", + "call_args": "(c,visible)", + "cimguiname": "ImFont_SetGlyphVisible", + "defaults": {}, + "funcname": "SetGlyphVisible", + "location": "imgui:2893", + "ov_cimguiname": "ImFont_SetGlyphVisible", + "ret": "void", + "signature": "(ImWchar,bool)", + "stname": "ImFont" + } + ], + "ImFont_destroy": [ + { + "args": "(ImFont* self)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + } + ], + "call_args": "(self)", + "cimguiname": "ImFont_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2873", + "ov_cimguiname": "ImFont_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImFont*)", + "stname": "ImFont" + } + ], + "ImGuiFreeType_GetBuilderForFreeType": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiFreeType_GetBuilderForFreeType", + "defaults": {}, + "funcname": "GetBuilderForFreeType", + "location": "imgui_freetype:39", + "namespace": "ImGuiFreeType", + "ov_cimguiname": "ImGuiFreeType_GetBuilderForFreeType", + "ret": "const ImFontBuilderIO*", + "signature": "()", + "stname": "" + } + ], + "ImGuiFreeType_SetAllocatorFunctions": [ + { + "args": "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data)", + "argsT": [ + { + "name": "alloc_func", + "ret": "void*", + "signature": "(size_t sz,void* user_data)", + "type": "void*(*)(size_t sz,void* user_data)" + }, + { + "name": "free_func", + "ret": "void", + "signature": "(void* ptr,void* user_data)", + "type": "void(*)(void* ptr,void* user_data)" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data=((void*)0))", + "call_args": "(alloc_func,free_func,user_data)", + "cimguiname": "ImGuiFreeType_SetAllocatorFunctions", + "defaults": { + "user_data": "NULL" + }, + "funcname": "SetAllocatorFunctions", + "location": "imgui_freetype:43", + "namespace": "ImGuiFreeType", + "ov_cimguiname": "ImGuiFreeType_SetAllocatorFunctions", + "ret": "void", + "signature": "(void*(*)(size_t,void*),void(*)(void*,void*),void*)", + "stname": "" + } + ], + "ImGuiIO_AddFocusEvent": [ + { + "args": "(ImGuiIO* self,bool focused)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "focused", + "type": "bool" + } + ], + "argsoriginal": "(bool focused)", + "call_args": "(focused)", + "cimguiname": "ImGuiIO_AddFocusEvent", + "defaults": {}, + "funcname": "AddFocusEvent", + "location": "imgui:1974", + "ov_cimguiname": "ImGuiIO_AddFocusEvent", + "ret": "void", + "signature": "(bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddInputCharacter": [ + { + "args": "(ImGuiIO* self,unsigned int c)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "c", + "type": "unsigned int" + } + ], + "argsoriginal": "(unsigned int c)", + "call_args": "(c)", + "cimguiname": "ImGuiIO_AddInputCharacter", + "defaults": {}, + "funcname": "AddInputCharacter", + "location": "imgui:1975", + "ov_cimguiname": "ImGuiIO_AddInputCharacter", + "ret": "void", + "signature": "(unsigned int)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddInputCharacterUTF16": [ + { + "args": "(ImGuiIO* self,ImWchar16 c)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "c", + "type": "ImWchar16" + } + ], + "argsoriginal": "(ImWchar16 c)", + "call_args": "(c)", + "cimguiname": "ImGuiIO_AddInputCharacterUTF16", + "defaults": {}, + "funcname": "AddInputCharacterUTF16", + "location": "imgui:1976", + "ov_cimguiname": "ImGuiIO_AddInputCharacterUTF16", + "ret": "void", + "signature": "(ImWchar16)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddInputCharactersUTF8": [ + { + "args": "(ImGuiIO* self,const char* str)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "str", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str)", + "call_args": "(str)", + "cimguiname": "ImGuiIO_AddInputCharactersUTF8", + "defaults": {}, + "funcname": "AddInputCharactersUTF8", + "location": "imgui:1977", + "ov_cimguiname": "ImGuiIO_AddInputCharactersUTF8", + "ret": "void", + "signature": "(const char*)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddKeyAnalogEvent": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,bool down,float v)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "down", + "type": "bool" + }, + { + "name": "v", + "type": "float" + } + ], + "argsoriginal": "(ImGuiKey key,bool down,float v)", + "call_args": "(key,down,v)", + "cimguiname": "ImGuiIO_AddKeyAnalogEvent", + "defaults": {}, + "funcname": "AddKeyAnalogEvent", + "location": "imgui:1970", + "ov_cimguiname": "ImGuiIO_AddKeyAnalogEvent", + "ret": "void", + "signature": "(ImGuiKey,bool,float)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddKeyEvent": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,bool down)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "down", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiKey key,bool down)", + "call_args": "(key,down)", + "cimguiname": "ImGuiIO_AddKeyEvent", + "defaults": {}, + "funcname": "AddKeyEvent", + "location": "imgui:1969", + "ov_cimguiname": "ImGuiIO_AddKeyEvent", + "ret": "void", + "signature": "(ImGuiKey,bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMouseButtonEvent": [ + { + "args": "(ImGuiIO* self,int button,bool down)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "button", + "type": "int" + }, + { + "name": "down", + "type": "bool" + } + ], + "argsoriginal": "(int button,bool down)", + "call_args": "(button,down)", + "cimguiname": "ImGuiIO_AddMouseButtonEvent", + "defaults": {}, + "funcname": "AddMouseButtonEvent", + "location": "imgui:1972", + "ov_cimguiname": "ImGuiIO_AddMouseButtonEvent", + "ret": "void", + "signature": "(int,bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMousePosEvent": [ + { + "args": "(ImGuiIO* self,float x,float y)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ], + "argsoriginal": "(float x,float y)", + "call_args": "(x,y)", + "cimguiname": "ImGuiIO_AddMousePosEvent", + "defaults": {}, + "funcname": "AddMousePosEvent", + "location": "imgui:1971", + "ov_cimguiname": "ImGuiIO_AddMousePosEvent", + "ret": "void", + "signature": "(float,float)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_AddMouseWheelEvent": [ + { + "args": "(ImGuiIO* self,float wh_x,float wh_y)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "wh_x", + "type": "float" + }, + { + "name": "wh_y", + "type": "float" + } + ], + "argsoriginal": "(float wh_x,float wh_y)", + "call_args": "(wh_x,wh_y)", + "cimguiname": "ImGuiIO_AddMouseWheelEvent", + "defaults": {}, + "funcname": "AddMouseWheelEvent", + "location": "imgui:1973", + "ov_cimguiname": "ImGuiIO_AddMouseWheelEvent", + "ret": "void", + "signature": "(float,float)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_ClearInputCharacters": [ + { + "args": "(ImGuiIO* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ClearInputCharacters", + "defaults": {}, + "funcname": "ClearInputCharacters", + "location": "imgui:1981", + "ov_cimguiname": "ImGuiIO_ClearInputCharacters", + "ret": "void", + "signature": "()", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_ClearInputKeys": [ + { + "args": "(ImGuiIO* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ClearInputKeys", + "defaults": {}, + "funcname": "ClearInputKeys", + "location": "imgui:1982", + "ov_cimguiname": "ImGuiIO_ClearInputKeys", + "ret": "void", + "signature": "()", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_ImGuiIO": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ImGuiIO", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiIO", + "location": "imgui:2055", + "ov_cimguiname": "ImGuiIO_ImGuiIO", + "signature": "()", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_SetAppAcceptingEvents": [ + { + "args": "(ImGuiIO* self,bool accepting_events)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "accepting_events", + "type": "bool" + } + ], + "argsoriginal": "(bool accepting_events)", + "call_args": "(accepting_events)", + "cimguiname": "ImGuiIO_SetAppAcceptingEvents", + "defaults": {}, + "funcname": "SetAppAcceptingEvents", + "location": "imgui:1980", + "ov_cimguiname": "ImGuiIO_SetAppAcceptingEvents", + "ret": "void", + "signature": "(bool)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_SetKeyEventNativeData": [ + { + "args": "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "native_keycode", + "type": "int" + }, + { + "name": "native_scancode", + "type": "int" + }, + { + "name": "native_legacy_index", + "type": "int" + } + ], + "argsoriginal": "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)", + "call_args": "(key,native_keycode,native_scancode,native_legacy_index)", + "cimguiname": "ImGuiIO_SetKeyEventNativeData", + "defaults": { + "native_legacy_index": "-1" + }, + "funcname": "SetKeyEventNativeData", + "location": "imgui:1979", + "ov_cimguiname": "ImGuiIO_SetKeyEventNativeData", + "ret": "void", + "signature": "(ImGuiKey,int,int,int)", + "stname": "ImGuiIO" + } + ], + "ImGuiIO_destroy": [ + { + "args": "(ImGuiIO* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIO*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiIO_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiIO_destroy", + "ret": "void", + "signature": "(ImGuiIO*)", + "stname": "ImGuiIO" + } + ], + "ImGuiInputTextCallbackData_ClearSelection": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "defaults": {}, + "funcname": "ClearSelection", + "location": "imgui:2096", + "ov_cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "ret": "void", + "signature": "()", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_DeleteChars": [ + { + "args": "(ImGuiInputTextCallbackData* self,int pos,int bytes_count)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + }, + { + "name": "pos", + "type": "int" + }, + { + "name": "bytes_count", + "type": "int" + } + ], + "argsoriginal": "(int pos,int bytes_count)", + "call_args": "(pos,bytes_count)", + "cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "defaults": {}, + "funcname": "DeleteChars", + "location": "imgui:2093", + "ov_cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "ret": "void", + "signature": "(int,int)", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_HasSelection": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "defaults": {}, + "funcname": "HasSelection", + "location": "imgui:2097", + "ov_cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiInputTextCallbackData", + "location": "imgui:2092", + "ov_cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", + "signature": "()", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_InsertChars": [ + { + "args": "(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + }, + { + "name": "pos", + "type": "int" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(int pos,const char* text,const char* text_end=((void*)0))", + "call_args": "(pos,text,text_end)", + "cimguiname": "ImGuiInputTextCallbackData_InsertChars", + "defaults": { + "text_end": "NULL" + }, + "funcname": "InsertChars", + "location": "imgui:2094", + "ov_cimguiname": "ImGuiInputTextCallbackData_InsertChars", + "ret": "void", + "signature": "(int,const char*,const char*)", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_SelectAll": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_SelectAll", + "defaults": {}, + "funcname": "SelectAll", + "location": "imgui:2095", + "ov_cimguiname": "ImGuiInputTextCallbackData_SelectAll", + "ret": "void", + "signature": "()", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_destroy": [ + { + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiInputTextCallbackData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiInputTextCallbackData_destroy", + "ret": "void", + "signature": "(ImGuiInputTextCallbackData*)", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiListClipper_Begin": [ + { + "args": "(ImGuiListClipper* self,int items_count,float items_height)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "items_height", + "type": "float" + } + ], + "argsoriginal": "(int items_count,float items_height=-1.0f)", + "call_args": "(items_count,items_height)", + "cimguiname": "ImGuiListClipper_Begin", + "defaults": { + "items_height": "-1.0f" + }, + "funcname": "Begin", + "location": "imgui:2308", + "ov_cimguiname": "ImGuiListClipper_Begin", + "ret": "void", + "signature": "(int,float)", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_End": [ + { + "args": "(ImGuiListClipper* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiListClipper_End", + "defaults": {}, + "funcname": "End", + "location": "imgui:2309", + "ov_cimguiname": "ImGuiListClipper_End", + "ret": "void", + "signature": "()", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_ForceDisplayRangeByIndices": [ + { + "args": "(ImGuiListClipper* self,int item_min,int item_max)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + }, + { + "name": "item_min", + "type": "int" + }, + { + "name": "item_max", + "type": "int" + } + ], + "argsoriginal": "(int item_min,int item_max)", + "call_args": "(item_min,item_max)", + "cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", + "defaults": {}, + "funcname": "ForceDisplayRangeByIndices", + "location": "imgui:2313", + "ov_cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", + "ret": "void", + "signature": "(int,int)", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_ImGuiListClipper": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiListClipper_ImGuiListClipper", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiListClipper", + "location": "imgui:2306", + "ov_cimguiname": "ImGuiListClipper_ImGuiListClipper", + "signature": "()", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_Step": [ + { + "args": "(ImGuiListClipper* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiListClipper_Step", + "defaults": {}, + "funcname": "Step", + "location": "imgui:2310", + "ov_cimguiname": "ImGuiListClipper_Step", + "ret": "bool", + "signature": "()", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_destroy": [ + { + "args": "(ImGuiListClipper* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiListClipper_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2307", + "ov_cimguiname": "ImGuiListClipper_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImGuiListClipper*)", + "stname": "ImGuiListClipper" + } + ], + "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiOnceUponAFrame", + "location": "imgui:2172", + "ov_cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", + "signature": "()", + "stname": "ImGuiOnceUponAFrame" + } + ], + "ImGuiOnceUponAFrame_destroy": [ + { + "args": "(ImGuiOnceUponAFrame* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiOnceUponAFrame*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiOnceUponAFrame_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiOnceUponAFrame_destroy", + "ret": "void", + "signature": "(ImGuiOnceUponAFrame*)", + "stname": "ImGuiOnceUponAFrame" + } + ], + "ImGuiPayload_Clear": [ + { + "args": "(ImGuiPayload* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2126", + "ov_cimguiname": "ImGuiPayload_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_ImGuiPayload": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_ImGuiPayload", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPayload", + "location": "imgui:2125", + "ov_cimguiname": "ImGuiPayload_ImGuiPayload", + "signature": "()", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_IsDataType": [ + { + "args": "(ImGuiPayload* self,const char* type)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + }, + { + "name": "type", + "type": "const char*" + } + ], + "argsoriginal": "(const char* type)", + "call_args": "(type)", + "cimguiname": "ImGuiPayload_IsDataType", + "defaults": {}, + "funcname": "IsDataType", + "location": "imgui:2127", + "ov_cimguiname": "ImGuiPayload_IsDataType", + "ret": "bool", + "signature": "(const char*)const", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_IsDelivery": [ + { + "args": "(ImGuiPayload* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_IsDelivery", + "defaults": {}, + "funcname": "IsDelivery", + "location": "imgui:2129", + "ov_cimguiname": "ImGuiPayload_IsDelivery", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_IsPreview": [ + { + "args": "(ImGuiPayload* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_IsPreview", + "defaults": {}, + "funcname": "IsPreview", + "location": "imgui:2128", + "ov_cimguiname": "ImGuiPayload_IsPreview", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_destroy": [ + { + "args": "(ImGuiPayload* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPayload*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiPayload_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPayload_destroy", + "ret": "void", + "signature": "(ImGuiPayload*)", + "stname": "ImGuiPayload" + } + ], + "ImGuiPlatformImeData_ImGuiPlatformImeData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPlatformImeData", + "location": "imgui:2946", + "ov_cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "signature": "()", + "stname": "ImGuiPlatformImeData" + } + ], + "ImGuiPlatformImeData_destroy": [ + { + "args": "(ImGuiPlatformImeData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiPlatformImeData*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiPlatformImeData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPlatformImeData_destroy", + "ret": "void", + "signature": "(ImGuiPlatformImeData*)", + "stname": "ImGuiPlatformImeData" + } + ], + "ImGuiStoragePair_ImGuiStoragePair": [ + { + "args": "(ImGuiID _key,int _val_i)", + "argsT": [ + { + "name": "_key", + "type": "ImGuiID" + }, + { + "name": "_val_i", + "type": "int" + } + ], + "argsoriginal": "(ImGuiID _key,int _val_i)", + "call_args": "(_key,_val_i)", + "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStoragePair", + "location": "imgui:2239", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Int", + "signature": "(ImGuiID,int)", + "stname": "ImGuiStoragePair" + }, + { + "args": "(ImGuiID _key,float _val_f)", + "argsT": [ + { + "name": "_key", + "type": "ImGuiID" + }, + { + "name": "_val_f", + "type": "float" + } + ], + "argsoriginal": "(ImGuiID _key,float _val_f)", + "call_args": "(_key,_val_f)", + "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStoragePair", + "location": "imgui:2240", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Float", + "signature": "(ImGuiID,float)", + "stname": "ImGuiStoragePair" + }, + { + "args": "(ImGuiID _key,void* _val_p)", + "argsT": [ + { + "name": "_key", + "type": "ImGuiID" + }, + { + "name": "_val_p", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiID _key,void* _val_p)", + "call_args": "(_key,_val_p)", + "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStoragePair", + "location": "imgui:2241", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Ptr", + "signature": "(ImGuiID,void*)", + "stname": "ImGuiStoragePair" + } + ], + "ImGuiStoragePair_destroy": [ + { + "args": "(ImGuiStoragePair* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStoragePair*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiStoragePair_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiStoragePair_destroy", + "ret": "void", + "signature": "(ImGuiStoragePair*)", + "stname": "ImGuiStoragePair" + } + ], + "ImGuiStorage_BuildSortByKey": [ + { + "args": "(ImGuiStorage* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStorage_BuildSortByKey", + "defaults": {}, + "funcname": "BuildSortByKey", + "location": "imgui:2272", + "ov_cimguiname": "ImGuiStorage_BuildSortByKey", + "ret": "void", + "signature": "()", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_Clear": [ + { + "args": "(ImGuiStorage* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStorage_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2249", + "ov_cimguiname": "ImGuiStorage_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetBool": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,bool default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiID key,bool default_val=false)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetBool", + "defaults": { + "default_val": "false" + }, + "funcname": "GetBool", + "location": "imgui:2252", + "ov_cimguiname": "ImGuiStorage_GetBool", + "ret": "bool", + "signature": "(ImGuiID,bool)const", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetBoolRef": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,bool default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiID key,bool default_val=false)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetBoolRef", + "defaults": { + "default_val": "false" + }, + "funcname": "GetBoolRef", + "location": "imgui:2264", + "ov_cimguiname": "ImGuiStorage_GetBoolRef", + "ret": "bool*", + "signature": "(ImGuiID,bool)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetFloat": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,float default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "float" + } + ], + "argsoriginal": "(ImGuiID key,float default_val=0.0f)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetFloat", + "defaults": { + "default_val": "0.0f" + }, + "funcname": "GetFloat", + "location": "imgui:2254", + "ov_cimguiname": "ImGuiStorage_GetFloat", + "ret": "float", + "signature": "(ImGuiID,float)const", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetFloatRef": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,float default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "float" + } + ], + "argsoriginal": "(ImGuiID key,float default_val=0.0f)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetFloatRef", + "defaults": { + "default_val": "0.0f" + }, + "funcname": "GetFloatRef", + "location": "imgui:2265", + "ov_cimguiname": "ImGuiStorage_GetFloatRef", + "ret": "float*", + "signature": "(ImGuiID,float)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetInt": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,int default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "int" + } + ], + "argsoriginal": "(ImGuiID key,int default_val=0)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetInt", + "defaults": { + "default_val": "0" + }, + "funcname": "GetInt", + "location": "imgui:2250", + "ov_cimguiname": "ImGuiStorage_GetInt", + "ret": "int", + "signature": "(ImGuiID,int)const", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetIntRef": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,int default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "int" + } + ], + "argsoriginal": "(ImGuiID key,int default_val=0)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetIntRef", + "defaults": { + "default_val": "0" + }, + "funcname": "GetIntRef", + "location": "imgui:2263", + "ov_cimguiname": "ImGuiStorage_GetIntRef", + "ret": "int*", + "signature": "(ImGuiID,int)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetVoidPtr": [ + { + "args": "(ImGuiStorage* self,ImGuiID key)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID key)", + "call_args": "(key)", + "cimguiname": "ImGuiStorage_GetVoidPtr", + "defaults": {}, + "funcname": "GetVoidPtr", + "location": "imgui:2256", + "ov_cimguiname": "ImGuiStorage_GetVoidPtr", + "ret": "void*", + "signature": "(ImGuiID)const", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetVoidPtrRef": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,void* default_val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiID key,void* default_val=((void*)0))", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetVoidPtrRef", + "defaults": { + "default_val": "NULL" + }, + "funcname": "GetVoidPtrRef", + "location": "imgui:2266", + "ov_cimguiname": "ImGuiStorage_GetVoidPtrRef", + "ret": "void**", + "signature": "(ImGuiID,void*)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetAllInt": [ + { + "args": "(ImGuiStorage* self,int val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "val", + "type": "int" + } + ], + "argsoriginal": "(int val)", + "call_args": "(val)", + "cimguiname": "ImGuiStorage_SetAllInt", + "defaults": {}, + "funcname": "SetAllInt", + "location": "imgui:2269", + "ov_cimguiname": "ImGuiStorage_SetAllInt", + "ret": "void", + "signature": "(int)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetBool": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,bool val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiID key,bool val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetBool", + "defaults": {}, + "funcname": "SetBool", + "location": "imgui:2253", + "ov_cimguiname": "ImGuiStorage_SetBool", + "ret": "void", + "signature": "(ImGuiID,bool)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetFloat": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,float val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "float" + } + ], + "argsoriginal": "(ImGuiID key,float val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetFloat", + "defaults": {}, + "funcname": "SetFloat", + "location": "imgui:2255", + "ov_cimguiname": "ImGuiStorage_SetFloat", + "ret": "void", + "signature": "(ImGuiID,float)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetInt": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,int val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "int" + } + ], + "argsoriginal": "(ImGuiID key,int val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetInt", + "defaults": {}, + "funcname": "SetInt", + "location": "imgui:2251", + "ov_cimguiname": "ImGuiStorage_SetInt", + "ret": "void", + "signature": "(ImGuiID,int)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_SetVoidPtr": [ + { + "args": "(ImGuiStorage* self,ImGuiID key,void* val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiID key,void* val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetVoidPtr", + "defaults": {}, + "funcname": "SetVoidPtr", + "location": "imgui:2257", + "ov_cimguiname": "ImGuiStorage_SetVoidPtr", + "ret": "void", + "signature": "(ImGuiID,void*)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStyle_ImGuiStyle": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStyle_ImGuiStyle", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStyle", + "location": "imgui:1877", + "ov_cimguiname": "ImGuiStyle_ImGuiStyle", + "signature": "()", + "stname": "ImGuiStyle" + } + ], + "ImGuiStyle_ScaleAllSizes": [ + { + "args": "(ImGuiStyle* self,float scale_factor)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStyle*" + }, + { + "name": "scale_factor", + "type": "float" + } + ], + "argsoriginal": "(float scale_factor)", + "call_args": "(scale_factor)", + "cimguiname": "ImGuiStyle_ScaleAllSizes", + "defaults": {}, + "funcname": "ScaleAllSizes", + "location": "imgui:1878", + "ov_cimguiname": "ImGuiStyle_ScaleAllSizes", + "ret": "void", + "signature": "(float)", + "stname": "ImGuiStyle" + } + ], + "ImGuiStyle_destroy": [ + { + "args": "(ImGuiStyle* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStyle*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiStyle_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiStyle_destroy", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "ImGuiStyle" + } + ], + "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTableColumnSortSpecs", + "location": "imgui:2140", + "ov_cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", + "signature": "()", + "stname": "ImGuiTableColumnSortSpecs" + } + ], + "ImGuiTableColumnSortSpecs_destroy": [ + { + "args": "(ImGuiTableColumnSortSpecs* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTableColumnSortSpecs*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTableColumnSortSpecs_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableColumnSortSpecs_destroy", + "ret": "void", + "signature": "(ImGuiTableColumnSortSpecs*)", + "stname": "ImGuiTableColumnSortSpecs" + } + ], + "ImGuiTableSortSpecs_ImGuiTableSortSpecs": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTableSortSpecs", + "location": "imgui:2153", + "ov_cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", + "signature": "()", + "stname": "ImGuiTableSortSpecs" + } + ], + "ImGuiTableSortSpecs_destroy": [ + { + "args": "(ImGuiTableSortSpecs* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTableSortSpecs*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTableSortSpecs_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableSortSpecs_destroy", + "ret": "void", + "signature": "(ImGuiTableSortSpecs*)", + "stname": "ImGuiTableSortSpecs" + } + ], + "ImGuiTextBuffer_ImGuiTextBuffer": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTextBuffer", + "location": "imgui:2210", + "ov_cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", + "signature": "()", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_append": [ + { + "args": "(ImGuiTextBuffer* self,const char* str,const char* str_end)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + }, + { + "name": "str", + "type": "const char*" + }, + { + "name": "str_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str,const char* str_end=((void*)0))", + "call_args": "(str,str_end)", + "cimguiname": "ImGuiTextBuffer_append", + "defaults": { + "str_end": "NULL" + }, + "funcname": "append", + "location": "imgui:2219", + "ov_cimguiname": "ImGuiTextBuffer_append", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_appendf": [ + { + "args": "(ImGuiTextBuffer* self,const char* fmt,...)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "ImGuiTextBuffer_appendf", + "defaults": {}, + "funcname": "appendf", + "isvararg": "...)", + "location": "imgui:2220", + "manual": true, + "ov_cimguiname": "ImGuiTextBuffer_appendf", + "ret": "void", + "signature": "(const char*,...)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_appendfv": [ + { + "args": "(ImGuiTextBuffer* self,const char* fmt,va_list args)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "ImGuiTextBuffer_appendfv", + "defaults": {}, + "funcname": "appendfv", + "location": "imgui:2221", + "ov_cimguiname": "ImGuiTextBuffer_appendfv", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_begin": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui:2212", + "ov_cimguiname": "ImGuiTextBuffer_begin", + "ret": "const char*", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_c_str": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_c_str", + "defaults": {}, + "funcname": "c_str", + "location": "imgui:2218", + "ov_cimguiname": "ImGuiTextBuffer_c_str", + "ret": "const char*", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_clear": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_clear", + "defaults": {}, + "funcname": "clear", + "location": "imgui:2216", + "ov_cimguiname": "ImGuiTextBuffer_clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_destroy": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTextBuffer_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTextBuffer_destroy", + "ret": "void", + "signature": "(ImGuiTextBuffer*)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_empty": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_empty", + "defaults": {}, + "funcname": "empty", + "location": "imgui:2215", + "ov_cimguiname": "ImGuiTextBuffer_empty", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_end": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_end", + "defaults": {}, + "funcname": "end", + "location": "imgui:2213", + "ov_cimguiname": "ImGuiTextBuffer_end", + "ret": "const char*", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_reserve": [ + { + "args": "(ImGuiTextBuffer* self,int capacity)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + }, + { + "name": "capacity", + "type": "int" + } + ], + "argsoriginal": "(int capacity)", + "call_args": "(capacity)", + "cimguiname": "ImGuiTextBuffer_reserve", + "defaults": {}, + "funcname": "reserve", + "location": "imgui:2217", + "ov_cimguiname": "ImGuiTextBuffer_reserve", + "ret": "void", + "signature": "(int)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_size": [ + { + "args": "(ImGuiTextBuffer* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextBuffer*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_size", + "defaults": {}, + "funcname": "size", + "location": "imgui:2214", + "ov_cimguiname": "ImGuiTextBuffer_size", + "ret": "int", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextFilter_Build": [ + { + "args": "(ImGuiTextFilter* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextFilter_Build", + "defaults": {}, + "funcname": "Build", + "location": "imgui:2183", + "ov_cimguiname": "ImGuiTextFilter_Build", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_Clear": [ + { + "args": "(ImGuiTextFilter* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextFilter_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2184", + "ov_cimguiname": "ImGuiTextFilter_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_Draw": [ + { + "args": "(ImGuiTextFilter* self,const char* label,float width)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + }, + { + "name": "label", + "type": "const char*" + }, + { + "name": "width", + "type": "float" + } + ], + "argsoriginal": "(const char* label=\"Filter(inc,-exc)\",float width=0.0f)", + "call_args": "(label,width)", + "cimguiname": "ImGuiTextFilter_Draw", + "defaults": { + "label": "\"Filter(inc,-exc)\"", + "width": "0.0f" + }, + "funcname": "Draw", + "location": "imgui:2181", + "ov_cimguiname": "ImGuiTextFilter_Draw", + "ret": "bool", + "signature": "(const char*,float)", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_ImGuiTextFilter": [ + { + "args": "(const char* default_filter)", + "argsT": [ + { + "name": "default_filter", + "type": "const char*" + } + ], + "argsoriginal": "(const char* default_filter=\"\")", + "call_args": "(default_filter)", + "cimguiname": "ImGuiTextFilter_ImGuiTextFilter", + "constructor": true, + "defaults": { + "default_filter": "\"\"" + }, + "funcname": "ImGuiTextFilter", + "location": "imgui:2180", + "ov_cimguiname": "ImGuiTextFilter_ImGuiTextFilter", + "signature": "(const char*)", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_IsActive": [ + { + "args": "(ImGuiTextFilter* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextFilter_IsActive", + "defaults": {}, + "funcname": "IsActive", + "location": "imgui:2185", + "ov_cimguiname": "ImGuiTextFilter_IsActive", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_PassFilter": [ + { + "args": "(ImGuiTextFilter* self,const char* text,const char* text_end)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0))", + "call_args": "(text,text_end)", + "cimguiname": "ImGuiTextFilter_PassFilter", + "defaults": { + "text_end": "NULL" + }, + "funcname": "PassFilter", + "location": "imgui:2182", + "ov_cimguiname": "ImGuiTextFilter_PassFilter", + "ret": "bool", + "signature": "(const char*,const char*)const", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextFilter_destroy": [ + { + "args": "(ImGuiTextFilter* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextFilter*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTextFilter_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTextFilter_destroy", + "ret": "void", + "signature": "(ImGuiTextFilter*)", + "stname": "ImGuiTextFilter" + } + ], + "ImGuiTextRange_ImGuiTextRange": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextRange_ImGuiTextRange", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTextRange", + "location": "imgui:2193", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Nil", + "signature": "()", + "stname": "ImGuiTextRange" + }, + { + "args": "(const char* _b,const char* _e)", + "argsT": [ + { + "name": "_b", + "type": "const char*" + }, + { + "name": "_e", + "type": "const char*" + } + ], + "argsoriginal": "(const char* _b,const char* _e)", + "call_args": "(_b,_e)", + "cimguiname": "ImGuiTextRange_ImGuiTextRange", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTextRange", + "location": "imgui:2194", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Str", + "signature": "(const char*,const char*)", + "stname": "ImGuiTextRange" + } + ], + "ImGuiTextRange_destroy": [ + { + "args": "(ImGuiTextRange* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextRange*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTextRange_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTextRange_destroy", + "ret": "void", + "signature": "(ImGuiTextRange*)", + "stname": "ImGuiTextRange" + } + ], + "ImGuiTextRange_empty": [ + { + "args": "(ImGuiTextRange* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextRange*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextRange_empty", + "defaults": {}, + "funcname": "empty", + "location": "imgui:2195", + "ov_cimguiname": "ImGuiTextRange_empty", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiTextRange" + } + ], + "ImGuiTextRange_split": [ + { + "args": "(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTextRange*" + }, + { + "name": "separator", + "type": "char" + }, + { + "name": "out", + "type": "ImVector_ImGuiTextRange*" + } + ], + "argsoriginal": "(char separator,ImVector* out)", + "call_args": "(separator,out)", + "cimguiname": "ImGuiTextRange_split", + "defaults": {}, + "funcname": "split", + "location": "imgui:2196", + "ov_cimguiname": "ImGuiTextRange_split", + "ret": "void", + "signature": "(char,ImVector_ImGuiTextRange*)const", + "stname": "ImGuiTextRange" + } + ], + "ImGuiViewport_GetCenter": [ + { + "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImGuiViewport*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewport_GetCenter", + "defaults": {}, + "funcname": "GetCenter", + "location": "imgui:2931", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewport_GetCenter", + "ret": "void", + "signature": "()const", + "stname": "ImGuiViewport" + } + ], + "ImGuiViewport_GetWorkCenter": [ + { + "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImGuiViewport*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewport_GetWorkCenter", + "defaults": {}, + "funcname": "GetWorkCenter", + "location": "imgui:2932", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewport_GetWorkCenter", + "ret": "void", + "signature": "()const", + "stname": "ImGuiViewport" + } + ], + "ImGuiViewport_ImGuiViewport": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewport_ImGuiViewport", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiViewport", + "location": "imgui:2928", + "ov_cimguiname": "ImGuiViewport_ImGuiViewport", + "signature": "()", + "stname": "ImGuiViewport" + } + ], + "ImGuiViewport_destroy": [ + { + "args": "(ImGuiViewport* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiViewport*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiViewport_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiViewport_destroy", + "ret": "void", + "signature": "(ImGuiViewport*)", + "stname": "ImGuiViewport" + } + ], + "ImVec2_ImVec2": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVec2_ImVec2", + "constructor": true, + "defaults": {}, + "funcname": "ImVec2", + "location": "imgui:256", + "ov_cimguiname": "ImVec2_ImVec2_Nil", + "signature": "()", + "stname": "ImVec2" + }, + { + "args": "(float _x,float _y)", + "argsT": [ + { + "name": "_x", + "type": "float" + }, + { + "name": "_y", + "type": "float" + } + ], + "argsoriginal": "(float _x,float _y)", + "call_args": "(_x,_y)", + "cimguiname": "ImVec2_ImVec2", + "constructor": true, + "defaults": {}, + "funcname": "ImVec2", + "location": "imgui:257", + "ov_cimguiname": "ImVec2_ImVec2_Float", + "signature": "(float,float)", + "stname": "ImVec2" + } + ], + "ImVec2_destroy": [ + { + "args": "(ImVec2* self)", + "argsT": [ + { + "name": "self", + "type": "ImVec2*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVec2_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImVec2_destroy", + "ret": "void", + "signature": "(ImVec2*)", + "stname": "ImVec2" + } + ], + "ImVec4_ImVec4": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVec4_ImVec4", + "constructor": true, + "defaults": {}, + "funcname": "ImVec4", + "location": "imgui:269", + "ov_cimguiname": "ImVec4_ImVec4_Nil", + "signature": "()", + "stname": "ImVec4" + }, + { + "args": "(float _x,float _y,float _z,float _w)", + "argsT": [ + { + "name": "_x", + "type": "float" + }, + { + "name": "_y", + "type": "float" + }, + { + "name": "_z", + "type": "float" + }, + { + "name": "_w", + "type": "float" + } + ], + "argsoriginal": "(float _x,float _y,float _z,float _w)", + "call_args": "(_x,_y,_z,_w)", + "cimguiname": "ImVec4_ImVec4", + "constructor": true, + "defaults": {}, + "funcname": "ImVec4", + "location": "imgui:270", + "ov_cimguiname": "ImVec4_ImVec4_Float", + "signature": "(float,float,float,float)", + "stname": "ImVec4" + } + ], + "ImVec4_destroy": [ + { + "args": "(ImVec4* self)", + "argsT": [ + { + "name": "self", + "type": "ImVec4*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVec4_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImVec4_destroy", + "ret": "void", + "signature": "(ImVec4*)", + "stname": "ImVec4" + } + ], + "ImVector_ImVector": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_ImVector", + "constructor": true, + "defaults": {}, + "funcname": "ImVector", + "location": "imgui:1774", + "ov_cimguiname": "ImVector_ImVector_Nil", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(const ImVector_T src)", + "argsT": [ + { + "name": "src", + "type": "const ImVector_T " + } + ], + "argsoriginal": "(const ImVector& src)", + "call_args": "(src)", + "cimguiname": "ImVector_ImVector", + "constructor": true, + "defaults": {}, + "funcname": "ImVector", + "location": "imgui:1775", + "ov_cimguiname": "ImVector_ImVector_Vector_T_", + "signature": "(const ImVector_T )", + "stname": "ImVector", + "templated": true + } + ], + "ImVector__grow_capacity": [ + { + "args": "(ImVector* self,int sz)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "sz", + "type": "int" + } + ], + "argsoriginal": "(int sz)", + "call_args": "(sz)", + "cimguiname": "ImVector__grow_capacity", + "defaults": {}, + "funcname": "_grow_capacity", + "location": "imgui:1801", + "ov_cimguiname": "ImVector__grow_capacity", + "ret": "int", + "signature": "(int)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_back": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_back", + "defaults": {}, + "funcname": "back", + "location": "imgui:1797", + "ov_cimguiname": "ImVector_back_Nil", + "ret": "T*", + "retref": "&", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_back", + "defaults": {}, + "funcname": "back", + "location": "imgui:1798", + "ov_cimguiname": "ImVector_back__const", + "ret": "const T*", + "retref": "&", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_begin": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui:1791", + "ov_cimguiname": "ImVector_begin_Nil", + "ret": "T*", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui:1792", + "ov_cimguiname": "ImVector_begin__const", + "ret": "const T*", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_capacity": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_capacity", + "defaults": {}, + "funcname": "capacity", + "location": "imgui:1787", + "ov_cimguiname": "ImVector_capacity", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_clear": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_clear", + "defaults": {}, + "funcname": "clear", + "location": "imgui:1779", + "ov_cimguiname": "ImVector_clear", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_clear_delete": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_clear_delete", + "defaults": {}, + "funcname": "clear_delete", + "location": "imgui:1780", + "ov_cimguiname": "ImVector_clear_delete", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_clear_destruct": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_clear_destruct", + "defaults": {}, + "funcname": "clear_destruct", + "location": "imgui:1781", + "ov_cimguiname": "ImVector_clear_destruct", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_contains": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_contains", + "defaults": {}, + "funcname": "contains", + "location": "imgui:1816", + "ov_cimguiname": "ImVector_contains", + "ret": "bool", + "signature": "(const T)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_destroy": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVector_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:1777", + "ov_cimguiname": "ImVector_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImVector*)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_empty": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_empty", + "defaults": {}, + "funcname": "empty", + "location": "imgui:1783", + "ov_cimguiname": "ImVector_empty", + "ret": "bool", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_end": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_end", + "defaults": {}, + "funcname": "end", + "location": "imgui:1793", + "ov_cimguiname": "ImVector_end_Nil", + "ret": "T*", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_end", + "defaults": {}, + "funcname": "end", + "location": "imgui:1794", + "ov_cimguiname": "ImVector_end__const", + "ret": "const T*", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_erase": [ + { + "args": "(ImVector* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImVector_erase", + "defaults": {}, + "funcname": "erase", + "location": "imgui:1812", + "ov_cimguiname": "ImVector_erase_Nil", + "ret": "T*", + "signature": "(const T*)", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self,const T* it,const T* it_last)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + }, + { + "name": "it_last", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it,const T* it_last)", + "call_args": "(it,it_last)", + "cimguiname": "ImVector_erase", + "defaults": {}, + "funcname": "erase", + "location": "imgui:1813", + "ov_cimguiname": "ImVector_erase_TPtr", + "ret": "T*", + "signature": "(const T*,const T*)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_erase_unsorted": [ + { + "args": "(ImVector* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImVector_erase_unsorted", + "defaults": {}, + "funcname": "erase_unsorted", + "location": "imgui:1814", + "ov_cimguiname": "ImVector_erase_unsorted", + "ret": "T*", + "signature": "(const T*)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_find": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find", + "defaults": {}, + "funcname": "find", + "location": "imgui:1817", + "ov_cimguiname": "ImVector_find_Nil", + "ret": "T*", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find", + "defaults": {}, + "funcname": "find", + "location": "imgui:1818", + "ov_cimguiname": "ImVector_find__const", + "ret": "const T*", + "signature": "(const T)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_find_erase": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find_erase", + "defaults": {}, + "funcname": "find_erase", + "location": "imgui:1819", + "ov_cimguiname": "ImVector_find_erase", + "ret": "bool", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_find_erase_unsorted": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find_erase_unsorted", + "defaults": {}, + "funcname": "find_erase_unsorted", + "location": "imgui:1820", + "ov_cimguiname": "ImVector_find_erase_unsorted", + "ret": "bool", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_front": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_front", + "defaults": {}, + "funcname": "front", + "location": "imgui:1795", + "ov_cimguiname": "ImVector_front_Nil", + "ret": "T*", + "retref": "&", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_front", + "defaults": {}, + "funcname": "front", + "location": "imgui:1796", + "ov_cimguiname": "ImVector_front__const", + "ret": "const T*", + "retref": "&", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_index_from_ptr": [ + { + "args": "(ImVector* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImVector_index_from_ptr", + "defaults": {}, + "funcname": "index_from_ptr", + "location": "imgui:1821", + "ov_cimguiname": "ImVector_index_from_ptr", + "ret": "int", + "signature": "(const T*)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_insert": [ + { + "args": "(ImVector* self,const T* it,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T* it,const T& v)", + "call_args": "(it,v)", + "cimguiname": "ImVector_insert", + "defaults": {}, + "funcname": "insert", + "location": "imgui:1815", + "ov_cimguiname": "ImVector_insert", + "ret": "T*", + "signature": "(const T*,const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_max_size": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_max_size", + "defaults": {}, + "funcname": "max_size", + "location": "imgui:1786", + "ov_cimguiname": "ImVector_max_size", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_pop_back": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_pop_back", + "defaults": {}, + "funcname": "pop_back", + "location": "imgui:1810", + "ov_cimguiname": "ImVector_pop_back", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_push_back": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_push_back", + "defaults": {}, + "funcname": "push_back", + "location": "imgui:1809", + "ov_cimguiname": "ImVector_push_back", + "ret": "void", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_push_front": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_push_front", + "defaults": {}, + "funcname": "push_front", + "location": "imgui:1811", + "ov_cimguiname": "ImVector_push_front", + "ret": "void", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_reserve": [ + { + "args": "(ImVector* self,int new_capacity)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_capacity", + "type": "int" + } + ], + "argsoriginal": "(int new_capacity)", + "call_args": "(new_capacity)", + "cimguiname": "ImVector_reserve", + "defaults": {}, + "funcname": "reserve", + "location": "imgui:1805", + "ov_cimguiname": "ImVector_reserve", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_reserve_discard": [ + { + "args": "(ImVector* self,int new_capacity)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_capacity", + "type": "int" + } + ], + "argsoriginal": "(int new_capacity)", + "call_args": "(new_capacity)", + "cimguiname": "ImVector_reserve_discard", + "defaults": {}, + "funcname": "reserve_discard", + "location": "imgui:1806", + "ov_cimguiname": "ImVector_reserve_discard", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_resize": [ + { + "args": "(ImVector* self,int new_size)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_size", + "type": "int" + } + ], + "argsoriginal": "(int new_size)", + "call_args": "(new_size)", + "cimguiname": "ImVector_resize", + "defaults": {}, + "funcname": "resize", + "location": "imgui:1802", + "ov_cimguiname": "ImVector_resize_Nil", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self,int new_size,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_size", + "type": "int" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(int new_size,const T& v)", + "call_args": "(new_size,v)", + "cimguiname": "ImVector_resize", + "defaults": {}, + "funcname": "resize", + "location": "imgui:1803", + "ov_cimguiname": "ImVector_resize_T", + "ret": "void", + "signature": "(int,const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_shrink": [ + { + "args": "(ImVector* self,int new_size)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_size", + "type": "int" + } + ], + "argsoriginal": "(int new_size)", + "call_args": "(new_size)", + "cimguiname": "ImVector_shrink", + "defaults": {}, + "funcname": "shrink", + "location": "imgui:1804", + "ov_cimguiname": "ImVector_shrink", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_size": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_size", + "defaults": {}, + "funcname": "size", + "location": "imgui:1784", + "ov_cimguiname": "ImVector_size", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_size_in_bytes": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_size_in_bytes", + "defaults": {}, + "funcname": "size_in_bytes", + "location": "imgui:1785", + "ov_cimguiname": "ImVector_size_in_bytes", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_swap": [ + { + "args": "(ImVector* self,ImVector_T * rhs)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "rhs", + "reftoptr": true, + "type": "ImVector_T *" + } + ], + "argsoriginal": "(ImVector& rhs)", + "call_args": "(*rhs)", + "cimguiname": "ImVector_swap", + "defaults": {}, + "funcname": "swap", + "location": "imgui:1799", + "ov_cimguiname": "ImVector_swap", + "ret": "void", + "signature": "(ImVector_T *)", + "stname": "ImVector", + "templated": true + } + ], + "igAcceptDragDropPayload": [ + { + "args": "(const char* type,ImGuiDragDropFlags flags)", + "argsT": [ + { + "name": "type", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiDragDropFlags" + } + ], + "argsoriginal": "(const char* type,ImGuiDragDropFlags flags=0)", + "call_args": "(type,flags)", + "cimguiname": "igAcceptDragDropPayload", + "defaults": { + "flags": "0" + }, + "funcname": "AcceptDragDropPayload", + "location": "imgui:811", + "namespace": "ImGui", + "ov_cimguiname": "igAcceptDragDropPayload", + "ret": "const ImGuiPayload*", + "signature": "(const char*,ImGuiDragDropFlags)", + "stname": "" + } + ], + "igAlignTextToFramePadding": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igAlignTextToFramePadding", + "defaults": {}, + "funcname": "AlignTextToFramePadding", + "location": "imgui:456", + "namespace": "ImGui", + "ov_cimguiname": "igAlignTextToFramePadding", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igArrowButton": [ + { + "args": "(const char* str_id,ImGuiDir dir)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "dir", + "type": "ImGuiDir" + } + ], + "argsoriginal": "(const char* str_id,ImGuiDir dir)", + "call_args": "(str_id,dir)", + "cimguiname": "igArrowButton", + "defaults": {}, + "funcname": "ArrowButton", + "location": "imgui:503", + "namespace": "ImGui", + "ov_cimguiname": "igArrowButton", + "ret": "bool", + "signature": "(const char*,ImGuiDir)", + "stname": "" + } + ], + "igBegin": [ + { + "args": "(const char* name,bool* p_open,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)", + "call_args": "(name,p_open,flags)", + "cimguiname": "igBegin", + "defaults": { + "flags": "0", + "p_open": "NULL" + }, + "funcname": "Begin", + "location": "imgui:330", + "namespace": "ImGui", + "ov_cimguiname": "igBegin", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginChild": [ + { + "args": "(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "border", + "type": "bool" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* str_id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", + "call_args": "(str_id,size,border,flags)", + "cimguiname": "igBeginChild", + "defaults": { + "border": "false", + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "BeginChild", + "location": "imgui:341", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChild_Str", + "ret": "bool", + "signature": "(const char*,const ImVec2,bool,ImGuiWindowFlags)", + "stname": "" + }, + { + "args": "(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "border", + "type": "bool" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", + "call_args": "(id,size,border,flags)", + "cimguiname": "igBeginChild", + "defaults": { + "border": "false", + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "BeginChild", + "location": "imgui:342", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChild_ID", + "ret": "bool", + "signature": "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginChildFrame": [ + { + "args": "(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& size,ImGuiWindowFlags flags=0)", + "call_args": "(id,size,flags)", + "cimguiname": "igBeginChildFrame", + "defaults": { + "flags": "0" + }, + "funcname": "BeginChildFrame", + "location": "imgui:872", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChildFrame", + "ret": "bool", + "signature": "(ImGuiID,const ImVec2,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginCombo": [ + { + "args": "(const char* label,const char* preview_value,ImGuiComboFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "preview_value", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiComboFlags" + } + ], + "argsoriginal": "(const char* label,const char* preview_value,ImGuiComboFlags flags=0)", + "call_args": "(label,preview_value,flags)", + "cimguiname": "igBeginCombo", + "defaults": { + "flags": "0" + }, + "funcname": "BeginCombo", + "location": "imgui:520", + "namespace": "ImGui", + "ov_cimguiname": "igBeginCombo", + "ret": "bool", + "signature": "(const char*,const char*,ImGuiComboFlags)", + "stname": "" + } + ], + "igBeginDisabled": [ + { + "args": "(bool disabled)", + "argsT": [ + { + "name": "disabled", + "type": "bool" + } + ], + "argsoriginal": "(bool disabled=true)", + "call_args": "(disabled)", + "cimguiname": "igBeginDisabled", + "defaults": { + "disabled": "true" + }, + "funcname": "BeginDisabled", + "location": "imgui:819", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDisabled", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igBeginDragDropSource": [ + { + "args": "(ImGuiDragDropFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiDragDropFlags" + } + ], + "argsoriginal": "(ImGuiDragDropFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igBeginDragDropSource", + "defaults": { + "flags": "0" + }, + "funcname": "BeginDragDropSource", + "location": "imgui:807", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDragDropSource", + "ret": "bool", + "signature": "(ImGuiDragDropFlags)", + "stname": "" + } + ], + "igBeginDragDropTarget": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginDragDropTarget", + "defaults": {}, + "funcname": "BeginDragDropTarget", + "location": "imgui:810", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDragDropTarget", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginGroup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginGroup", + "defaults": {}, + "funcname": "BeginGroup", + "location": "imgui:445", + "namespace": "ImGui", + "ov_cimguiname": "igBeginGroup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igBeginListBox": [ + { + "args": "(const char* label,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,size)", + "cimguiname": "igBeginListBox", + "defaults": { + "size": "ImVec2(0,0)" + }, + "funcname": "BeginListBox", + "location": "imgui:632", + "namespace": "ImGui", + "ov_cimguiname": "igBeginListBox", + "ret": "bool", + "signature": "(const char*,const ImVec2)", + "stname": "" + } + ], + "igBeginMainMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginMainMenuBar", + "defaults": {}, + "funcname": "BeginMainMenuBar", + "location": "imgui:658", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMainMenuBar", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginMenu": [ + { + "args": "(const char* label,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,bool enabled=true)", + "call_args": "(label,enabled)", + "cimguiname": "igBeginMenu", + "defaults": { + "enabled": "true" + }, + "funcname": "BeginMenu", + "location": "imgui:660", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMenu", + "ret": "bool", + "signature": "(const char*,bool)", + "stname": "" + } + ], + "igBeginMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginMenuBar", + "defaults": {}, + "funcname": "BeginMenuBar", + "location": "imgui:656", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMenuBar", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginPopup": [ + { + "args": "(const char* str_id,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiWindowFlags flags=0)", + "call_args": "(str_id,flags)", + "cimguiname": "igBeginPopup", + "defaults": { + "flags": "0" + }, + "funcname": "BeginPopup", + "location": "imgui:684", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopup", + "ret": "bool", + "signature": "(const char*,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginPopupContextItem": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igBeginPopupContextItem", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "BeginPopupContextItem", + "location": "imgui:706", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupContextItem", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igBeginPopupContextVoid": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igBeginPopupContextVoid", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "BeginPopupContextVoid", + "location": "imgui:708", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupContextVoid", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igBeginPopupContextWindow": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igBeginPopupContextWindow", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "BeginPopupContextWindow", + "location": "imgui:707", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupContextWindow", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igBeginPopupModal": [ + { + "args": "(const char* name,bool* p_open,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)", + "call_args": "(name,p_open,flags)", + "cimguiname": "igBeginPopupModal", + "defaults": { + "flags": "0", + "p_open": "NULL" + }, + "funcname": "BeginPopupModal", + "location": "imgui:685", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupModal", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginTabBar": [ + { + "args": "(const char* str_id,ImGuiTabBarFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTabBarFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiTabBarFlags flags=0)", + "call_args": "(str_id,flags)", + "cimguiname": "igBeginTabBar", + "defaults": { + "flags": "0" + }, + "funcname": "BeginTabBar", + "location": "imgui:785", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTabBar", + "ret": "bool", + "signature": "(const char*,ImGuiTabBarFlags)", + "stname": "" + } + ], + "igBeginTabItem": [ + { + "args": "(const char* label,bool* p_open,ImGuiTabItemFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiTabItemFlags" + } + ], + "argsoriginal": "(const char* label,bool* p_open=((void*)0),ImGuiTabItemFlags flags=0)", + "call_args": "(label,p_open,flags)", + "cimguiname": "igBeginTabItem", + "defaults": { + "flags": "0", + "p_open": "NULL" + }, + "funcname": "BeginTabItem", + "location": "imgui:787", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTabItem", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiTabItemFlags)", + "stname": "" + } + ], + "igBeginTable": [ + { + "args": "(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "column", + "type": "int" + }, + { + "name": "flags", + "type": "ImGuiTableFlags" + }, + { + "name": "outer_size", + "type": "const ImVec2" + }, + { + "name": "inner_width", + "type": "float" + } + ], + "argsoriginal": "(const char* str_id,int column,ImGuiTableFlags flags=0,const ImVec2& outer_size=ImVec2(0.0f,0.0f),float inner_width=0.0f)", + "call_args": "(str_id,column,flags,outer_size,inner_width)", + "cimguiname": "igBeginTable", + "defaults": { + "flags": "0", + "inner_width": "0.0f", + "outer_size": "ImVec2(0.0f,0.0f)" + }, + "funcname": "BeginTable", + "location": "imgui:739", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTable", + "ret": "bool", + "signature": "(const char*,int,ImGuiTableFlags,const ImVec2,float)", + "stname": "" + } + ], + "igBeginTooltip": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginTooltip", + "defaults": {}, + "funcname": "BeginTooltip", + "location": "imgui:667", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTooltip", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igBullet": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBullet", + "defaults": {}, + "funcname": "Bullet", + "location": "imgui:510", + "namespace": "ImGui", + "ov_cimguiname": "igBullet", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igBulletText": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igBulletText", + "defaults": {}, + "funcname": "BulletText", + "isvararg": "...)", + "location": "imgui:494", + "namespace": "ImGui", + "ov_cimguiname": "igBulletText", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igBulletTextV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igBulletTextV", + "defaults": {}, + "funcname": "BulletTextV", + "location": "imgui:495", + "namespace": "ImGui", + "ov_cimguiname": "igBulletTextV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igButton": [ + { + "args": "(const char* label,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,size)", + "cimguiname": "igButton", + "defaults": { + "size": "ImVec2(0,0)" + }, + "funcname": "Button", + "location": "imgui:500", + "namespace": "ImGui", + "ov_cimguiname": "igButton", + "ret": "bool", + "signature": "(const char*,const ImVec2)", + "stname": "" + } + ], + "igCalcItemWidth": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igCalcItemWidth", + "defaults": {}, + "funcname": "CalcItemWidth", + "location": "imgui:417", + "namespace": "ImGui", + "ov_cimguiname": "igCalcItemWidth", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igCalcTextSize": [ + { + "args": "(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + }, + { + "name": "hide_text_after_double_hash", + "type": "bool" + }, + { + "name": "wrap_width", + "type": "float" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0),bool hide_text_after_double_hash=false,float wrap_width=-1.0f)", + "call_args": "(text,text_end,hide_text_after_double_hash,wrap_width)", + "cimguiname": "igCalcTextSize", + "defaults": { + "hide_text_after_double_hash": "false", + "text_end": "NULL", + "wrap_width": "-1.0f" + }, + "funcname": "CalcTextSize", + "location": "imgui:876", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igCalcTextSize", + "ret": "void", + "signature": "(const char*,const char*,bool,float)", + "stname": "" + } + ], + "igCheckbox": [ + { + "args": "(const char* label,bool* v)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "bool*" + } + ], + "argsoriginal": "(const char* label,bool* v)", + "call_args": "(label,v)", + "cimguiname": "igCheckbox", + "defaults": {}, + "funcname": "Checkbox", + "location": "imgui:504", + "namespace": "ImGui", + "ov_cimguiname": "igCheckbox", + "ret": "bool", + "signature": "(const char*,bool*)", + "stname": "" + } + ], + "igCheckboxFlags": [ + { + "args": "(const char* label,int* flags,int flags_value)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "int*" + }, + { + "name": "flags_value", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* flags,int flags_value)", + "call_args": "(label,flags,flags_value)", + "cimguiname": "igCheckboxFlags", + "defaults": {}, + "funcname": "CheckboxFlags", + "location": "imgui:505", + "namespace": "ImGui", + "ov_cimguiname": "igCheckboxFlags_IntPtr", + "ret": "bool", + "signature": "(const char*,int*,int)", + "stname": "" + }, + { + "args": "(const char* label,unsigned int* flags,unsigned int flags_value)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "unsigned int*" + }, + { + "name": "flags_value", + "type": "unsigned int" + } + ], + "argsoriginal": "(const char* label,unsigned int* flags,unsigned int flags_value)", + "call_args": "(label,flags,flags_value)", + "cimguiname": "igCheckboxFlags", + "defaults": {}, + "funcname": "CheckboxFlags", + "location": "imgui:506", + "namespace": "ImGui", + "ov_cimguiname": "igCheckboxFlags_UintPtr", + "ret": "bool", + "signature": "(const char*,unsigned int*,unsigned int)", + "stname": "" + } + ], + "igCloseCurrentPopup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igCloseCurrentPopup", + "defaults": {}, + "funcname": "CloseCurrentPopup", + "location": "imgui:699", + "namespace": "ImGui", + "ov_cimguiname": "igCloseCurrentPopup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igCollapsingHeader": [ + { + "args": "(const char* label,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiTreeNodeFlags flags=0)", + "call_args": "(label,flags)", + "cimguiname": "igCollapsingHeader", + "defaults": { + "flags": "0" + }, + "funcname": "CollapsingHeader", + "location": "imgui:616", + "namespace": "ImGui", + "ov_cimguiname": "igCollapsingHeader_TreeNodeFlags", + "ret": "bool", + "signature": "(const char*,ImGuiTreeNodeFlags)", + "stname": "" + }, + { + "args": "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_visible", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags=0)", + "call_args": "(label,p_visible,flags)", + "cimguiname": "igCollapsingHeader", + "defaults": { + "flags": "0" + }, + "funcname": "CollapsingHeader", + "location": "imgui:617", + "namespace": "ImGui", + "ov_cimguiname": "igCollapsingHeader_BoolPtr", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiTreeNodeFlags)", + "stname": "" + } + ], + "igColorButton": [ + { + "args": "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)", + "argsT": [ + { + "name": "desc_id", + "type": "const char*" + }, + { + "name": "col", + "type": "const ImVec4" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))", + "call_args": "(desc_id,col,flags,size)", + "cimguiname": "igColorButton", + "defaults": { + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "ColorButton", + "location": "imgui:597", + "namespace": "ImGui", + "ov_cimguiname": "igColorButton", + "ret": "bool", + "signature": "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)", + "stname": "" + } + ], + "igColorConvertFloat4ToU32": [ + { + "args": "(const ImVec4 in)", + "argsT": [ + { + "name": "in", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& in)", + "call_args": "(in)", + "cimguiname": "igColorConvertFloat4ToU32", + "defaults": {}, + "funcname": "ColorConvertFloat4ToU32", + "location": "imgui:880", + "namespace": "ImGui", + "ov_cimguiname": "igColorConvertFloat4ToU32", + "ret": "ImU32", + "signature": "(const ImVec4)", + "stname": "" + } + ], + "igColorConvertHSVtoRGB": [ + { + "args": "(float h,float s,float v,float* out_r,float* out_g,float* out_b)", + "argsT": [ + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "out_r", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_g", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_b", + "reftoptr": true, + "type": "float*" + } + ], + "argsoriginal": "(float h,float s,float v,float& out_r,float& out_g,float& out_b)", + "call_args": "(h,s,v,*out_r,*out_g,*out_b)", + "cimguiname": "igColorConvertHSVtoRGB", + "defaults": {}, + "funcname": "ColorConvertHSVtoRGB", + "location": "imgui:882", + "namespace": "ImGui", + "ov_cimguiname": "igColorConvertHSVtoRGB", + "ret": "void", + "signature": "(float,float,float,float*,float*,float*)", + "stname": "" + } + ], + "igColorConvertRGBtoHSV": [ + { + "args": "(float r,float g,float b,float* out_h,float* out_s,float* out_v)", + "argsT": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "out_h", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_s", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_v", + "reftoptr": true, + "type": "float*" + } + ], + "argsoriginal": "(float r,float g,float b,float& out_h,float& out_s,float& out_v)", + "call_args": "(r,g,b,*out_h,*out_s,*out_v)", + "cimguiname": "igColorConvertRGBtoHSV", + "defaults": {}, + "funcname": "ColorConvertRGBtoHSV", + "location": "imgui:881", + "namespace": "ImGui", + "ov_cimguiname": "igColorConvertRGBtoHSV", + "ret": "void", + "signature": "(float,float,float,float*,float*,float*)", + "stname": "" + } + ], + "igColorConvertU32ToFloat4": [ + { + "args": "(ImVec4 *pOut,ImU32 in)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec4*" + }, + { + "name": "in", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 in)", + "call_args": "(in)", + "cimguiname": "igColorConvertU32ToFloat4", + "defaults": {}, + "funcname": "ColorConvertU32ToFloat4", + "location": "imgui:879", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igColorConvertU32ToFloat4", + "ret": "void", + "signature": "(ImU32)", + "stname": "" + } + ], + "igColorEdit3": [ + { + "args": "(const char* label,float col[3],ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[3]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* label,float col[3],ImGuiColorEditFlags flags=0)", + "call_args": "(label,col,flags)", + "cimguiname": "igColorEdit3", + "defaults": { + "flags": "0" + }, + "funcname": "ColorEdit3", + "location": "imgui:593", + "namespace": "ImGui", + "ov_cimguiname": "igColorEdit3", + "ret": "bool", + "signature": "(const char*,float[3],ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorEdit4": [ + { + "args": "(const char* label,float col[4],ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[4]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* label,float col[4],ImGuiColorEditFlags flags=0)", + "call_args": "(label,col,flags)", + "cimguiname": "igColorEdit4", + "defaults": { + "flags": "0" + }, + "funcname": "ColorEdit4", + "location": "imgui:594", + "namespace": "ImGui", + "ov_cimguiname": "igColorEdit4", + "ret": "bool", + "signature": "(const char*,float[4],ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorPicker3": [ + { + "args": "(const char* label,float col[3],ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[3]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* label,float col[3],ImGuiColorEditFlags flags=0)", + "call_args": "(label,col,flags)", + "cimguiname": "igColorPicker3", + "defaults": { + "flags": "0" + }, + "funcname": "ColorPicker3", + "location": "imgui:595", + "namespace": "ImGui", + "ov_cimguiname": "igColorPicker3", + "ret": "bool", + "signature": "(const char*,float[3],ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorPicker4": [ + { + "args": "(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[4]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + }, + { + "name": "ref_col", + "type": "const float*" + } + ], + "argsoriginal": "(const char* label,float col[4],ImGuiColorEditFlags flags=0,const float* ref_col=((void*)0))", + "call_args": "(label,col,flags,ref_col)", + "cimguiname": "igColorPicker4", + "defaults": { + "flags": "0", + "ref_col": "NULL" + }, + "funcname": "ColorPicker4", + "location": "imgui:596", + "namespace": "ImGui", + "ov_cimguiname": "igColorPicker4", + "ret": "bool", + "signature": "(const char*,float[4],ImGuiColorEditFlags,const float*)", + "stname": "" + } + ], + "igColumns": [ + { + "args": "(int count,const char* id,bool border)", + "argsT": [ + { + "name": "count", + "type": "int" + }, + { + "name": "id", + "type": "const char*" + }, + { + "name": "border", + "type": "bool" + } + ], + "argsoriginal": "(int count=1,const char* id=((void*)0),bool border=true)", + "call_args": "(count,id,border)", + "cimguiname": "igColumns", + "defaults": { + "border": "true", + "count": "1", + "id": "NULL" + }, + "funcname": "Columns", + "location": "imgui:775", + "namespace": "ImGui", + "ov_cimguiname": "igColumns", + "ret": "void", + "signature": "(int,const char*,bool)", + "stname": "" + } + ], + "igCombo": [ + { + "args": "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items", + "type": "const char* const[]" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "popup_max_height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,items,items_count,popup_max_height_in_items)", + "cimguiname": "igCombo", + "defaults": { + "popup_max_height_in_items": "-1" + }, + "funcname": "Combo", + "location": "imgui:522", + "namespace": "ImGui", + "ov_cimguiname": "igCombo_Str_arr", + "ret": "bool", + "signature": "(const char*,int*,const char* const[],int,int)", + "stname": "" + }, + { + "args": "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items)", + "argsT": [ + { + "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" + } + ], + "argsoriginal": "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,items_separated_by_zeros,popup_max_height_in_items)", + "cimguiname": "igCombo", + "defaults": { + "popup_max_height_in_items": "-1" + }, + "funcname": "Combo", + "location": "imgui:523", + "namespace": "ImGui", + "ov_cimguiname": "igCombo_Str", + "ret": "bool", + "signature": "(const char*,int*,const char*,int)", + "stname": "" + }, + { + "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items_getter", + "ret": "bool", + "signature": "(void* data,int idx,const char** out_text)", + "type": "bool(*)(void* data,int idx,const char** out_text)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "popup_max_height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,items_getter,data,items_count,popup_max_height_in_items)", + "cimguiname": "igCombo", + "defaults": { + "popup_max_height_in_items": "-1" + }, + "funcname": "Combo", + "location": "imgui:524", + "namespace": "ImGui", + "ov_cimguiname": "igCombo_FnBoolPtr", + "ret": "bool", + "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", + "stname": "" + } + ], + "igCreateContext": [ + { + "args": "(ImFontAtlas* shared_font_atlas)", + "argsT": [ + { + "name": "shared_font_atlas", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "(ImFontAtlas* shared_font_atlas=((void*)0))", + "call_args": "(shared_font_atlas)", + "cimguiname": "igCreateContext", + "defaults": { + "shared_font_atlas": "NULL" + }, + "funcname": "CreateContext", + "location": "imgui:288", + "namespace": "ImGui", + "ov_cimguiname": "igCreateContext", + "ret": "ImGuiContext*", + "signature": "(ImFontAtlas*)", + "stname": "" + } + ], + "igDebugCheckVersionAndDataLayout": [ + { + "args": "(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)", + "argsT": [ + { + "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" + } + ], + "argsoriginal": "(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)", + "call_args": "(version_str,sz_io,sz_style,sz_vec2,sz_vec4,sz_drawvert,sz_drawidx)", + "cimguiname": "igDebugCheckVersionAndDataLayout", + "defaults": {}, + "funcname": "DebugCheckVersionAndDataLayout", + "location": "imgui:934", + "namespace": "ImGui", + "ov_cimguiname": "igDebugCheckVersionAndDataLayout", + "ret": "bool", + "signature": "(const char*,size_t,size_t,size_t,size_t,size_t,size_t)", + "stname": "" + } + ], + "igDebugTextEncoding": [ + { + "args": "(const char* text)", + "argsT": [ + { + "name": "text", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text)", + "call_args": "(text)", + "cimguiname": "igDebugTextEncoding", + "defaults": {}, + "funcname": "DebugTextEncoding", + "location": "imgui:933", + "namespace": "ImGui", + "ov_cimguiname": "igDebugTextEncoding", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igDestroyContext": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx=((void*)0))", + "call_args": "(ctx)", + "cimguiname": "igDestroyContext", + "defaults": { + "ctx": "NULL" + }, + "funcname": "DestroyContext", + "location": "imgui:289", + "namespace": "ImGui", + "ov_cimguiname": "igDestroyContext", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDragFloat": [ + { + "args": "(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat", + "location": "imgui:538", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat", + "ret": "bool", + "signature": "(const char*,float*,float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat2": [ + { + "args": "(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[2]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[2],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat2", + "location": "imgui:539", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat2", + "ret": "bool", + "signature": "(const char*,float[2],float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat3": [ + { + "args": "(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[3]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[3],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat3", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat3", + "location": "imgui:540", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat3", + "ret": "bool", + "signature": "(const char*,float[3],float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat4": [ + { + "args": "(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[4]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[4],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat4", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat4", + "location": "imgui:541", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat4", + "ret": "bool", + "signature": "(const char*,float[4],float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloatRange2": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v_current_min", + "type": "float*" + }, + { + "name": "v_current_max", + "type": "float*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "format_max", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v_current_min,float* v_current_max,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)", + "cimguiname": "igDragFloatRange2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "format_max": "NULL", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloatRange2", + "location": "imgui:542", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloatRange2", + "ret": "bool", + "signature": "(const char*,float*,float*,float,float,float,const char*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt": [ + { + "args": "(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int* v,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt", + "location": "imgui:543", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt", + "ret": "bool", + "signature": "(const char*,int*,float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt2": [ + { + "args": "(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[2]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[2],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt2", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt2", + "location": "imgui:544", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt2", + "ret": "bool", + "signature": "(const char*,int[2],float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt3": [ + { + "args": "(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[3]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[3],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt3", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt3", + "location": "imgui:545", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt3", + "ret": "bool", + "signature": "(const char*,int[3],float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt4": [ + { + "args": "(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[4]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[4],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt4", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt4", + "location": "imgui:546", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt4", + "ret": "bool", + "signature": "(const char*,int[4],float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragIntRange2": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v_current_min", + "type": "int*" + }, + { + "name": "v_current_max", + "type": "int*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "format_max", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int* v_current_min,int* v_current_max,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)", + "cimguiname": "igDragIntRange2", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "format_max": "NULL", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragIntRange2", + "location": "imgui:547", + "namespace": "ImGui", + "ov_cimguiname": "igDragIntRange2", + "ret": "bool", + "signature": "(const char*,int*,int*,float,int,int,const char*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragScalar": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "p_min", + "type": "const void*" + }, + { + "name": "p_max", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,v_speed,p_min,p_max,format,flags)", + "cimguiname": "igDragScalar", + "defaults": { + "flags": "0", + "format": "NULL", + "p_max": "NULL", + "p_min": "NULL", + "v_speed": "1.0f" + }, + "funcname": "DragScalar", + "location": "imgui:548", + "namespace": "ImGui", + "ov_cimguiname": "igDragScalar", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragScalarN": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "components", + "type": "int" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "p_min", + "type": "const void*" + }, + { + "name": "p_max", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,components,v_speed,p_min,p_max,format,flags)", + "cimguiname": "igDragScalarN", + "defaults": { + "flags": "0", + "format": "NULL", + "p_max": "NULL", + "p_min": "NULL", + "v_speed": "1.0f" + }, + "funcname": "DragScalarN", + "location": "imgui:549", + "namespace": "ImGui", + "ov_cimguiname": "igDragScalarN", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,int,float,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDummy": [ + { + "args": "(const ImVec2 size)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& size)", + "call_args": "(size)", + "cimguiname": "igDummy", + "defaults": {}, + "funcname": "Dummy", + "location": "imgui:442", + "namespace": "ImGui", + "ov_cimguiname": "igDummy", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igEnd": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEnd", + "defaults": {}, + "funcname": "End", + "location": "imgui:331", + "namespace": "ImGui", + "ov_cimguiname": "igEnd", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndChild": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndChild", + "defaults": {}, + "funcname": "EndChild", + "location": "imgui:343", + "namespace": "ImGui", + "ov_cimguiname": "igEndChild", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndChildFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndChildFrame", + "defaults": {}, + "funcname": "EndChildFrame", + "location": "imgui:873", + "namespace": "ImGui", + "ov_cimguiname": "igEndChildFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndCombo": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndCombo", + "defaults": {}, + "funcname": "EndCombo", + "location": "imgui:521", + "namespace": "ImGui", + "ov_cimguiname": "igEndCombo", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndDisabled": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndDisabled", + "defaults": {}, + "funcname": "EndDisabled", + "location": "imgui:820", + "namespace": "ImGui", + "ov_cimguiname": "igEndDisabled", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndDragDropSource": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndDragDropSource", + "defaults": {}, + "funcname": "EndDragDropSource", + "location": "imgui:809", + "namespace": "ImGui", + "ov_cimguiname": "igEndDragDropSource", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndDragDropTarget": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndDragDropTarget", + "defaults": {}, + "funcname": "EndDragDropTarget", + "location": "imgui:812", + "namespace": "ImGui", + "ov_cimguiname": "igEndDragDropTarget", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndFrame", + "defaults": {}, + "funcname": "EndFrame", + "location": "imgui:297", + "namespace": "ImGui", + "ov_cimguiname": "igEndFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndGroup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndGroup", + "defaults": {}, + "funcname": "EndGroup", + "location": "imgui:446", + "namespace": "ImGui", + "ov_cimguiname": "igEndGroup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndListBox": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndListBox", + "defaults": {}, + "funcname": "EndListBox", + "location": "imgui:633", + "namespace": "ImGui", + "ov_cimguiname": "igEndListBox", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndMainMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndMainMenuBar", + "defaults": {}, + "funcname": "EndMainMenuBar", + "location": "imgui:659", + "namespace": "ImGui", + "ov_cimguiname": "igEndMainMenuBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndMenu": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndMenu", + "defaults": {}, + "funcname": "EndMenu", + "location": "imgui:661", + "namespace": "ImGui", + "ov_cimguiname": "igEndMenu", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndMenuBar", + "defaults": {}, + "funcname": "EndMenuBar", + "location": "imgui:657", + "namespace": "ImGui", + "ov_cimguiname": "igEndMenuBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndPopup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndPopup", + "defaults": {}, + "funcname": "EndPopup", + "location": "imgui:686", + "namespace": "ImGui", + "ov_cimguiname": "igEndPopup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTabBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTabBar", + "defaults": {}, + "funcname": "EndTabBar", + "location": "imgui:786", + "namespace": "ImGui", + "ov_cimguiname": "igEndTabBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTabItem": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTabItem", + "defaults": {}, + "funcname": "EndTabItem", + "location": "imgui:788", + "namespace": "ImGui", + "ov_cimguiname": "igEndTabItem", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTable": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTable", + "defaults": {}, + "funcname": "EndTable", + "location": "imgui:740", + "namespace": "ImGui", + "ov_cimguiname": "igEndTable", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTooltip": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTooltip", + "defaults": {}, + "funcname": "EndTooltip", + "location": "imgui:668", + "namespace": "ImGui", + "ov_cimguiname": "igEndTooltip", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetAllocatorFunctions": [ + { + "args": "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)", + "argsT": [ + { + "name": "p_alloc_func", + "type": "ImGuiMemAllocFunc*" + }, + { + "name": "p_free_func", + "type": "ImGuiMemFreeFunc*" + }, + { + "name": "p_user_data", + "type": "void**" + } + ], + "argsoriginal": "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)", + "call_args": "(p_alloc_func,p_free_func,p_user_data)", + "cimguiname": "igGetAllocatorFunctions", + "defaults": {}, + "funcname": "GetAllocatorFunctions", + "location": "imgui:941", + "namespace": "ImGui", + "ov_cimguiname": "igGetAllocatorFunctions", + "ret": "void", + "signature": "(ImGuiMemAllocFunc*,ImGuiMemFreeFunc*,void**)", + "stname": "" + } + ], + "igGetBackgroundDrawList": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetBackgroundDrawList", + "defaults": {}, + "funcname": "GetBackgroundDrawList", + "location": "imgui:860", + "namespace": "ImGui", + "ov_cimguiname": "igGetBackgroundDrawList", + "ret": "ImDrawList*", + "signature": "()", + "stname": "" + } + ], + "igGetClipboardText": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetClipboardText", + "defaults": {}, + "funcname": "GetClipboardText", + "location": "imgui:920", + "namespace": "ImGui", + "ov_cimguiname": "igGetClipboardText", + "ret": "const char*", + "signature": "()", + "stname": "" + } + ], + "igGetColorU32": [ + { + "args": "(ImGuiCol idx,float alpha_mul)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + }, + { + "name": "alpha_mul", + "type": "float" + } + ], + "argsoriginal": "(ImGuiCol idx,float alpha_mul=1.0f)", + "call_args": "(idx,alpha_mul)", + "cimguiname": "igGetColorU32", + "defaults": { + "alpha_mul": "1.0f" + }, + "funcname": "GetColorU32", + "location": "imgui:426", + "namespace": "ImGui", + "ov_cimguiname": "igGetColorU32_Col", + "ret": "ImU32", + "signature": "(ImGuiCol,float)", + "stname": "" + }, + { + "args": "(const ImVec4 col)", + "argsT": [ + { + "name": "col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& col)", + "call_args": "(col)", + "cimguiname": "igGetColorU32", + "defaults": {}, + "funcname": "GetColorU32", + "location": "imgui:427", + "namespace": "ImGui", + "ov_cimguiname": "igGetColorU32_Vec4", + "ret": "ImU32", + "signature": "(const ImVec4)", + "stname": "" + }, + { + "args": "(ImU32 col)", + "argsT": [ + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 col)", + "call_args": "(col)", + "cimguiname": "igGetColorU32", + "defaults": {}, + "funcname": "GetColorU32", + "location": "imgui:428", + "namespace": "ImGui", + "ov_cimguiname": "igGetColorU32_U32", + "ret": "ImU32", + "signature": "(ImU32)", + "stname": "" + } + ], + "igGetColumnIndex": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetColumnIndex", + "defaults": {}, + "funcname": "GetColumnIndex", + "location": "imgui:777", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnIndex", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igGetColumnOffset": [ + { + "args": "(int column_index)", + "argsT": [ + { + "name": "column_index", + "type": "int" + } + ], + "argsoriginal": "(int column_index=-1)", + "call_args": "(column_index)", + "cimguiname": "igGetColumnOffset", + "defaults": { + "column_index": "-1" + }, + "funcname": "GetColumnOffset", + "location": "imgui:780", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnOffset", + "ret": "float", + "signature": "(int)", + "stname": "" + } + ], + "igGetColumnWidth": [ + { + "args": "(int column_index)", + "argsT": [ + { + "name": "column_index", + "type": "int" + } + ], + "argsoriginal": "(int column_index=-1)", + "call_args": "(column_index)", + "cimguiname": "igGetColumnWidth", + "defaults": { + "column_index": "-1" + }, + "funcname": "GetColumnWidth", + "location": "imgui:778", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnWidth", + "ret": "float", + "signature": "(int)", + "stname": "" + } + ], + "igGetColumnsCount": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetColumnsCount", + "defaults": {}, + "funcname": "GetColumnsCount", + "location": "imgui:782", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnsCount", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igGetContentRegionAvail": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetContentRegionAvail", + "defaults": {}, + "funcname": "GetContentRegionAvail", + "location": "imgui:380", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetContentRegionAvail", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetContentRegionMax": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetContentRegionMax", + "defaults": {}, + "funcname": "GetContentRegionMax", + "location": "imgui:381", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetContentRegionMax", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetCurrentContext": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCurrentContext", + "defaults": {}, + "funcname": "GetCurrentContext", + "location": "imgui:290", + "namespace": "ImGui", + "ov_cimguiname": "igGetCurrentContext", + "ret": "ImGuiContext*", + "signature": "()", + "stname": "" + } + ], + "igGetCursorPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorPos", + "defaults": {}, + "funcname": "GetCursorPos", + "location": "imgui:447", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetCursorPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetCursorPosX": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorPosX", + "defaults": {}, + "funcname": "GetCursorPosX", + "location": "imgui:448", + "namespace": "ImGui", + "ov_cimguiname": "igGetCursorPosX", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetCursorPosY": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorPosY", + "defaults": {}, + "funcname": "GetCursorPosY", + "location": "imgui:449", + "namespace": "ImGui", + "ov_cimguiname": "igGetCursorPosY", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetCursorScreenPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorScreenPos", + "defaults": {}, + "funcname": "GetCursorScreenPos", + "location": "imgui:454", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetCursorScreenPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetCursorStartPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorStartPos", + "defaults": {}, + "funcname": "GetCursorStartPos", + "location": "imgui:453", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetCursorStartPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetDragDropPayload": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDragDropPayload", + "defaults": {}, + "funcname": "GetDragDropPayload", + "location": "imgui:813", + "namespace": "ImGui", + "ov_cimguiname": "igGetDragDropPayload", + "ret": "const ImGuiPayload*", + "signature": "()", + "stname": "" + } + ], + "igGetDrawData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDrawData", + "defaults": {}, + "funcname": "GetDrawData", + "location": "imgui:299", + "namespace": "ImGui", + "ov_cimguiname": "igGetDrawData", + "ret": "ImDrawData*", + "signature": "()", + "stname": "" + } + ], + "igGetDrawListSharedData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDrawListSharedData", + "defaults": {}, + "funcname": "GetDrawListSharedData", + "location": "imgui:868", + "namespace": "ImGui", + "ov_cimguiname": "igGetDrawListSharedData", + "ret": "ImDrawListSharedData*", + "signature": "()", + "stname": "" + } + ], + "igGetFont": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFont", + "defaults": {}, + "funcname": "GetFont", + "location": "imgui:423", + "namespace": "ImGui", + "ov_cimguiname": "igGetFont", + "ret": "ImFont*", + "signature": "()", + "stname": "" + } + ], + "igGetFontSize": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFontSize", + "defaults": {}, + "funcname": "GetFontSize", + "location": "imgui:424", + "namespace": "ImGui", + "ov_cimguiname": "igGetFontSize", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetFontTexUvWhitePixel": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFontTexUvWhitePixel", + "defaults": {}, + "funcname": "GetFontTexUvWhitePixel", + "location": "imgui:425", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetFontTexUvWhitePixel", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetForegroundDrawList": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetForegroundDrawList", + "defaults": {}, + "funcname": "GetForegroundDrawList", + "location": "imgui:861", + "namespace": "ImGui", + "ov_cimguiname": "igGetForegroundDrawList", + "ret": "ImDrawList*", + "signature": "()", + "stname": "" + } + ], + "igGetFrameCount": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFrameCount", + "defaults": {}, + "funcname": "GetFrameCount", + "location": "imgui:867", + "namespace": "ImGui", + "ov_cimguiname": "igGetFrameCount", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igGetFrameHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFrameHeight", + "defaults": {}, + "funcname": "GetFrameHeight", + "location": "imgui:459", + "namespace": "ImGui", + "ov_cimguiname": "igGetFrameHeight", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetFrameHeightWithSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFrameHeightWithSpacing", + "defaults": {}, + "funcname": "GetFrameHeightWithSpacing", + "location": "imgui:460", + "namespace": "ImGui", + "ov_cimguiname": "igGetFrameHeightWithSpacing", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetID": [ + { + "args": "(const char* str_id)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id)", + "call_args": "(str_id)", + "cimguiname": "igGetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui:478", + "namespace": "ImGui", + "ov_cimguiname": "igGetID_Str", + "ret": "ImGuiID", + "signature": "(const char*)", + "stname": "" + }, + { + "args": "(const char* str_id_begin,const char* str_id_end)", + "argsT": [ + { + "name": "str_id_begin", + "type": "const char*" + }, + { + "name": "str_id_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id_begin,const char* str_id_end)", + "call_args": "(str_id_begin,str_id_end)", + "cimguiname": "igGetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui:479", + "namespace": "ImGui", + "ov_cimguiname": "igGetID_StrStr", + "ret": "ImGuiID", + "signature": "(const char*,const char*)", + "stname": "" + }, + { + "args": "(const void* ptr_id)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + } + ], + "argsoriginal": "(const void* ptr_id)", + "call_args": "(ptr_id)", + "cimguiname": "igGetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui:480", + "namespace": "ImGui", + "ov_cimguiname": "igGetID_Ptr", + "ret": "ImGuiID", + "signature": "(const void*)", + "stname": "" + } + ], + "igGetIO": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetIO", + "defaults": {}, + "funcname": "GetIO", + "location": "imgui:294", + "namespace": "ImGui", + "ov_cimguiname": "igGetIO", + "ret": "ImGuiIO*", + "retref": "&", + "signature": "()", + "stname": "" + } + ], + "igGetItemRectMax": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemRectMax", + "defaults": {}, + "funcname": "GetItemRectMax", + "location": "imgui:849", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetItemRectMax", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetItemRectMin": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemRectMin", + "defaults": {}, + "funcname": "GetItemRectMin", + "location": "imgui:848", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetItemRectMin", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetItemRectSize": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemRectSize", + "defaults": {}, + "funcname": "GetItemRectSize", + "location": "imgui:850", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetItemRectSize", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetKeyIndex": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyIndex", + "defaults": {}, + "funcname": "GetKeyIndex", + "location": "imgui:2958", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyIndex", + "ret": "ImGuiKey", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyName": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyName", + "defaults": {}, + "funcname": "GetKeyName", + "location": "imgui:894", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyName", + "ret": "const char*", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyPressedAmount": [ + { + "args": "(ImGuiKey key,float repeat_delay,float rate)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "repeat_delay", + "type": "float" + }, + { + "name": "rate", + "type": "float" + } + ], + "argsoriginal": "(ImGuiKey key,float repeat_delay,float rate)", + "call_args": "(key,repeat_delay,rate)", + "cimguiname": "igGetKeyPressedAmount", + "defaults": {}, + "funcname": "GetKeyPressedAmount", + "location": "imgui:893", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyPressedAmount", + "ret": "int", + "signature": "(ImGuiKey,float,float)", + "stname": "" + } + ], + "igGetMainViewport": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMainViewport", + "defaults": {}, + "funcname": "GetMainViewport", + "location": "imgui:857", + "namespace": "ImGui", + "ov_cimguiname": "igGetMainViewport", + "ret": "ImGuiViewport*", + "signature": "()", + "stname": "" + } + ], + "igGetMouseClickedCount": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igGetMouseClickedCount", + "defaults": {}, + "funcname": "GetMouseClickedCount", + "location": "imgui:905", + "namespace": "ImGui", + "ov_cimguiname": "igGetMouseClickedCount", + "ret": "int", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igGetMouseCursor": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMouseCursor", + "defaults": {}, + "funcname": "GetMouseCursor", + "location": "imgui:914", + "namespace": "ImGui", + "ov_cimguiname": "igGetMouseCursor", + "ret": "ImGuiMouseCursor", + "signature": "()", + "stname": "" + } + ], + "igGetMouseDragDelta": [ + { + "args": "(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "lock_threshold", + "type": "float" + } + ], + "argsoriginal": "(ImGuiMouseButton button=0,float lock_threshold=-1.0f)", + "call_args": "(button,lock_threshold)", + "cimguiname": "igGetMouseDragDelta", + "defaults": { + "button": "0", + "lock_threshold": "-1.0f" + }, + "funcname": "GetMouseDragDelta", + "location": "imgui:912", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetMouseDragDelta", + "ret": "void", + "signature": "(ImGuiMouseButton,float)", + "stname": "" + } + ], + "igGetMousePos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMousePos", + "defaults": {}, + "funcname": "GetMousePos", + "location": "imgui:909", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetMousePos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetMousePosOnOpeningCurrentPopup": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMousePosOnOpeningCurrentPopup", + "defaults": {}, + "funcname": "GetMousePosOnOpeningCurrentPopup", + "location": "imgui:910", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetMousePosOnOpeningCurrentPopup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetScrollMaxX": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollMaxX", + "defaults": {}, + "funcname": "GetScrollMaxX", + "location": "imgui:392", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollMaxX", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetScrollMaxY": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollMaxY", + "defaults": {}, + "funcname": "GetScrollMaxY", + "location": "imgui:393", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollMaxY", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetScrollX": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollX", + "defaults": {}, + "funcname": "GetScrollX", + "location": "imgui:388", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollX", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetScrollY": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollY", + "defaults": {}, + "funcname": "GetScrollY", + "location": "imgui:389", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollY", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetStateStorage": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetStateStorage", + "defaults": {}, + "funcname": "GetStateStorage", + "location": "imgui:871", + "namespace": "ImGui", + "ov_cimguiname": "igGetStateStorage", + "ret": "ImGuiStorage*", + "signature": "()", + "stname": "" + } + ], + "igGetStyle": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetStyle", + "defaults": {}, + "funcname": "GetStyle", + "location": "imgui:295", + "namespace": "ImGui", + "ov_cimguiname": "igGetStyle", + "ret": "ImGuiStyle*", + "retref": "&", + "signature": "()", + "stname": "" + } + ], + "igGetStyleColorName": [ + { + "args": "(ImGuiCol idx)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + } + ], + "argsoriginal": "(ImGuiCol idx)", + "call_args": "(idx)", + "cimguiname": "igGetStyleColorName", + "defaults": {}, + "funcname": "GetStyleColorName", + "location": "imgui:869", + "namespace": "ImGui", + "ov_cimguiname": "igGetStyleColorName", + "ret": "const char*", + "signature": "(ImGuiCol)", + "stname": "" + } + ], + "igGetStyleColorVec4": [ + { + "args": "(ImGuiCol idx)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + } + ], + "argsoriginal": "(ImGuiCol idx)", + "call_args": "(idx)", + "cimguiname": "igGetStyleColorVec4", + "defaults": {}, + "funcname": "GetStyleColorVec4", + "location": "imgui:429", + "namespace": "ImGui", + "ov_cimguiname": "igGetStyleColorVec4", + "ret": "const ImVec4*", + "retref": "&", + "signature": "(ImGuiCol)", + "stname": "" + } + ], + "igGetTextLineHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTextLineHeight", + "defaults": {}, + "funcname": "GetTextLineHeight", + "location": "imgui:457", + "namespace": "ImGui", + "ov_cimguiname": "igGetTextLineHeight", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetTextLineHeightWithSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTextLineHeightWithSpacing", + "defaults": {}, + "funcname": "GetTextLineHeightWithSpacing", + "location": "imgui:458", + "namespace": "ImGui", + "ov_cimguiname": "igGetTextLineHeightWithSpacing", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetTime": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTime", + "defaults": {}, + "funcname": "GetTime", + "location": "imgui:866", + "namespace": "ImGui", + "ov_cimguiname": "igGetTime", + "ret": "double", + "signature": "()", + "stname": "" + } + ], + "igGetTreeNodeToLabelSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTreeNodeToLabelSpacing", + "defaults": {}, + "funcname": "GetTreeNodeToLabelSpacing", + "location": "imgui:615", + "namespace": "ImGui", + "ov_cimguiname": "igGetTreeNodeToLabelSpacing", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetVersion": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetVersion", + "defaults": {}, + "funcname": "GetVersion", + "location": "imgui:311", + "namespace": "ImGui", + "ov_cimguiname": "igGetVersion", + "ret": "const char*", + "signature": "()", + "stname": "" + } + ], + "igGetWindowContentRegionMax": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowContentRegionMax", + "defaults": {}, + "funcname": "GetWindowContentRegionMax", + "location": "imgui:383", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowContentRegionMax", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowContentRegionMin": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowContentRegionMin", + "defaults": {}, + "funcname": "GetWindowContentRegionMin", + "location": "imgui:382", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowContentRegionMin", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowDrawList": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowDrawList", + "defaults": {}, + "funcname": "GetWindowDrawList", + "location": "imgui:351", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowDrawList", + "ret": "ImDrawList*", + "signature": "()", + "stname": "" + } + ], + "igGetWindowHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowHeight", + "defaults": {}, + "funcname": "GetWindowHeight", + "location": "imgui:355", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowHeight", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetWindowPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowPos", + "defaults": {}, + "funcname": "GetWindowPos", + "location": "imgui:352", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowSize": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowSize", + "defaults": {}, + "funcname": "GetWindowSize", + "location": "imgui:353", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowSize", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowWidth": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowWidth", + "defaults": {}, + "funcname": "GetWindowWidth", + "location": "imgui:354", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowWidth", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igImage": [ + { + "args": "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col)", + "argsT": [ + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "name": "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" + } + ], + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& tint_col=ImVec4(1,1,1,1),const ImVec4& border_col=ImVec4(0,0,0,0))", + "call_args": "(user_texture_id,size,uv0,uv1,tint_col,border_col)", + "cimguiname": "igImage", + "defaults": { + "border_col": "ImVec4(0,0,0,0)", + "tint_col": "ImVec4(1,1,1,1)", + "uv0": "ImVec2(0,0)", + "uv1": "ImVec2(1,1)" + }, + "funcname": "Image", + "location": "imgui:514", + "namespace": "ImGui", + "ov_cimguiname": "igImage", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "stname": "" + } + ], + "igImageButton": [ + { + "args": "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "uv0", + "type": "const ImVec2" + }, + { + "name": "uv1", + "type": "const ImVec2" + }, + { + "name": "bg_col", + "type": "const ImVec4" + }, + { + "name": "tint_col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", + "call_args": "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)", + "cimguiname": "igImageButton", + "defaults": { + "bg_col": "ImVec4(0,0,0,0)", + "tint_col": "ImVec4(1,1,1,1)", + "uv0": "ImVec2(0,0)", + "uv1": "ImVec2(1,1)" + }, + "funcname": "ImageButton", + "location": "imgui:515", + "namespace": "ImGui", + "ov_cimguiname": "igImageButton", + "ret": "bool", + "signature": "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "stname": "" + } + ], + "igIndent": [ + { + "args": "(float indent_w)", + "argsT": [ + { + "name": "indent_w", + "type": "float" + } + ], + "argsoriginal": "(float indent_w=0.0f)", + "call_args": "(indent_w)", + "cimguiname": "igIndent", + "defaults": { + "indent_w": "0.0f" + }, + "funcname": "Indent", + "location": "imgui:443", + "namespace": "ImGui", + "ov_cimguiname": "igIndent", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igInputDouble": [ + { + "args": "(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "double*" + }, + { + "name": "step", + "type": "double" + }, + { + "name": "step_fast", + "type": "double" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,double* v,double step=0.0,double step_fast=0.0,const char* format=\"%.6f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,step,step_fast,format,flags)", + "cimguiname": "igInputDouble", + "defaults": { + "flags": "0", + "format": "\"%.6f\"", + "step": "0.0", + "step_fast": "0.0" + }, + "funcname": "InputDouble", + "location": "imgui:586", + "namespace": "ImGui", + "ov_cimguiname": "igInputDouble", + "ret": "bool", + "signature": "(const char*,double*,double,double,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat": [ + { + "args": "(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float*" + }, + { + "name": "step", + "type": "float" + }, + { + "name": "step_fast", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float* v,float step=0.0f,float step_fast=0.0f,const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,step,step_fast,format,flags)", + "cimguiname": "igInputFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "step": "0.0f", + "step_fast": "0.0f" + }, + "funcname": "InputFloat", + "location": "imgui:578", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat", + "ret": "bool", + "signature": "(const char*,float*,float,float,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat2": [ + { + "args": "(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[2]" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float v[2],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,format,flags)", + "cimguiname": "igInputFloat2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "InputFloat2", + "location": "imgui:579", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat2", + "ret": "bool", + "signature": "(const char*,float[2],const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat3": [ + { + "args": "(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[3]" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float v[3],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,format,flags)", + "cimguiname": "igInputFloat3", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "InputFloat3", + "location": "imgui:580", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat3", + "ret": "bool", + "signature": "(const char*,float[3],const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat4": [ + { + "args": "(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[4]" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float v[4],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,format,flags)", + "cimguiname": "igInputFloat4", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "InputFloat4", + "location": "imgui:581", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat4", + "ret": "bool", + "signature": "(const char*,float[4],const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt": [ + { + "args": "(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "step", + "type": "int" + }, + { + "name": "step_fast", + "type": "int" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int* v,int step=1,int step_fast=100,ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,step,step_fast,flags)", + "cimguiname": "igInputInt", + "defaults": { + "flags": "0", + "step": "1", + "step_fast": "100" + }, + "funcname": "InputInt", + "location": "imgui:582", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt", + "ret": "bool", + "signature": "(const char*,int*,int,int,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt2": [ + { + "args": "(const char* label,int v[2],ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[2]" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int v[2],ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,flags)", + "cimguiname": "igInputInt2", + "defaults": { + "flags": "0" + }, + "funcname": "InputInt2", + "location": "imgui:583", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt2", + "ret": "bool", + "signature": "(const char*,int[2],ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt3": [ + { + "args": "(const char* label,int v[3],ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[3]" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int v[3],ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,flags)", + "cimguiname": "igInputInt3", + "defaults": { + "flags": "0" + }, + "funcname": "InputInt3", + "location": "imgui:584", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt3", + "ret": "bool", + "signature": "(const char*,int[3],ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt4": [ + { + "args": "(const char* label,int v[4],ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[4]" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int v[4],ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,flags)", + "cimguiname": "igInputInt4", + "defaults": { + "flags": "0" + }, + "funcname": "InputInt4", + "location": "imgui:585", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt4", + "ret": "bool", + "signature": "(const char*,int[4],ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputScalar": [ + { + "args": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step,const void* p_step_fast,const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "p_step", + "type": "const void*" + }, + { + "name": "p_step_fast", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)", + "call_args": "(label,data_type,p_data,p_step,p_step_fast,format,flags)", + "cimguiname": "igInputScalar", + "defaults": { + "flags": "0", + "format": "NULL", + "p_step": "NULL", + "p_step_fast": "NULL" + }, + "funcname": "InputScalar", + "location": "imgui:587", + "namespace": "ImGui", + "ov_cimguiname": "igInputScalar", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputScalarN": [ + { + "args": "(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)", + "argsT": [ + { + "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*" + }, + { + "name": "p_step_fast", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)", + "call_args": "(label,data_type,p_data,components,p_step,p_step_fast,format,flags)", + "cimguiname": "igInputScalarN", + "defaults": { + "flags": "0", + "format": "NULL", + "p_step": "NULL", + "p_step_fast": "NULL" + }, + "funcname": "InputScalarN", + "location": "imgui:588", + "namespace": "ImGui", + "ov_cimguiname": "igInputScalarN", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputText": [ + { + "args": "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,buf,buf_size,flags,callback,user_data)", + "cimguiname": "igInputText", + "defaults": { + "callback": "NULL", + "flags": "0", + "user_data": "NULL" + }, + "funcname": "InputText", + "location": "imgui:575", + "namespace": "ImGui", + "ov_cimguiname": "igInputText", + "ret": "bool", + "signature": "(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInputTextMultiline": [ + { + "args": "(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,char* buf,size_t buf_size,const ImVec2& size=ImVec2(0,0),ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,buf,buf_size,size,flags,callback,user_data)", + "cimguiname": "igInputTextMultiline", + "defaults": { + "callback": "NULL", + "flags": "0", + "size": "ImVec2(0,0)", + "user_data": "NULL" + }, + "funcname": "InputTextMultiline", + "location": "imgui:576", + "namespace": "ImGui", + "ov_cimguiname": "igInputTextMultiline", + "ret": "bool", + "signature": "(const char*,char*,size_t,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInputTextWithHint": [ + { + "args": "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "hint", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,hint,buf,buf_size,flags,callback,user_data)", + "cimguiname": "igInputTextWithHint", + "defaults": { + "callback": "NULL", + "flags": "0", + "user_data": "NULL" + }, + "funcname": "InputTextWithHint", + "location": "imgui:577", + "namespace": "ImGui", + "ov_cimguiname": "igInputTextWithHint", + "ret": "bool", + "signature": "(const char*,const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInvisibleButton": [ + { + "args": "(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiButtonFlags" + } + ], + "argsoriginal": "(const char* str_id,const ImVec2& size,ImGuiButtonFlags flags=0)", + "call_args": "(str_id,size,flags)", + "cimguiname": "igInvisibleButton", + "defaults": { + "flags": "0" + }, + "funcname": "InvisibleButton", + "location": "imgui:502", + "namespace": "ImGui", + "ov_cimguiname": "igInvisibleButton", + "ret": "bool", + "signature": "(const char*,const ImVec2,ImGuiButtonFlags)", + "stname": "" + } + ], + "igIsAnyItemActive": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyItemActive", + "defaults": {}, + "funcname": "IsAnyItemActive", + "location": "imgui:846", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyItemActive", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsAnyItemFocused": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyItemFocused", + "defaults": {}, + "funcname": "IsAnyItemFocused", + "location": "imgui:847", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyItemFocused", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsAnyItemHovered": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyItemHovered", + "defaults": {}, + "funcname": "IsAnyItemHovered", + "location": "imgui:845", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyItemHovered", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsAnyMouseDown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyMouseDown", + "defaults": {}, + "funcname": "IsAnyMouseDown", + "location": "imgui:908", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyMouseDown", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemActivated": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemActivated", + "defaults": {}, + "funcname": "IsItemActivated", + "location": "imgui:841", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemActivated", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemActive": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemActive", + "defaults": {}, + "funcname": "IsItemActive", + "location": "imgui:836", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemActive", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemClicked": [ + { + "args": "(ImGuiMouseButton mouse_button)", + "argsT": [ + { + "name": "mouse_button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton mouse_button=0)", + "call_args": "(mouse_button)", + "cimguiname": "igIsItemClicked", + "defaults": { + "mouse_button": "0" + }, + "funcname": "IsItemClicked", + "location": "imgui:838", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemClicked", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsItemDeactivated": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemDeactivated", + "defaults": {}, + "funcname": "IsItemDeactivated", + "location": "imgui:842", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemDeactivated", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemDeactivatedAfterEdit": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemDeactivatedAfterEdit", + "defaults": {}, + "funcname": "IsItemDeactivatedAfterEdit", + "location": "imgui:843", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemDeactivatedAfterEdit", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemEdited": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemEdited", + "defaults": {}, + "funcname": "IsItemEdited", + "location": "imgui:840", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemEdited", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemFocused": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemFocused", + "defaults": {}, + "funcname": "IsItemFocused", + "location": "imgui:837", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemFocused", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemHovered": [ + { + "args": "(ImGuiHoveredFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiHoveredFlags" + } + ], + "argsoriginal": "(ImGuiHoveredFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igIsItemHovered", + "defaults": { + "flags": "0" + }, + "funcname": "IsItemHovered", + "location": "imgui:835", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemHovered", + "ret": "bool", + "signature": "(ImGuiHoveredFlags)", + "stname": "" + } + ], + "igIsItemToggledOpen": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemToggledOpen", + "defaults": {}, + "funcname": "IsItemToggledOpen", + "location": "imgui:844", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemToggledOpen", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemVisible": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemVisible", + "defaults": {}, + "funcname": "IsItemVisible", + "location": "imgui:839", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemVisible", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsKeyDown": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsKeyDown", + "defaults": {}, + "funcname": "IsKeyDown", + "location": "imgui:890", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyDown", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsKeyPressed": [ + { + "args": "(ImGuiKey key,bool repeat)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiKey key,bool repeat=true)", + "call_args": "(key,repeat)", + "cimguiname": "igIsKeyPressed", + "defaults": { + "repeat": "true" + }, + "funcname": "IsKeyPressed", + "location": "imgui:891", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyPressed", + "ret": "bool", + "signature": "(ImGuiKey,bool)", + "stname": "" + } + ], + "igIsKeyReleased": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsKeyReleased", + "defaults": {}, + "funcname": "IsKeyReleased", + "location": "imgui:892", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyReleased", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsMouseClicked": [ + { + "args": "(ImGuiMouseButton button,bool repeat)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiMouseButton button,bool repeat=false)", + "call_args": "(button,repeat)", + "cimguiname": "igIsMouseClicked", + "defaults": { + "repeat": "false" + }, + "funcname": "IsMouseClicked", + "location": "imgui:902", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseClicked", + "ret": "bool", + "signature": "(ImGuiMouseButton,bool)", + "stname": "" + } + ], + "igIsMouseDoubleClicked": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igIsMouseDoubleClicked", + "defaults": {}, + "funcname": "IsMouseDoubleClicked", + "location": "imgui:904", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDoubleClicked", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsMouseDown": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igIsMouseDown", + "defaults": {}, + "funcname": "IsMouseDown", + "location": "imgui:901", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDown", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsMouseDragging": [ + { + "args": "(ImGuiMouseButton button,float lock_threshold)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "lock_threshold", + "type": "float" + } + ], + "argsoriginal": "(ImGuiMouseButton button,float lock_threshold=-1.0f)", + "call_args": "(button,lock_threshold)", + "cimguiname": "igIsMouseDragging", + "defaults": { + "lock_threshold": "-1.0f" + }, + "funcname": "IsMouseDragging", + "location": "imgui:911", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDragging", + "ret": "bool", + "signature": "(ImGuiMouseButton,float)", + "stname": "" + } + ], + "igIsMouseHoveringRect": [ + { + "args": "(const ImVec2 r_min,const ImVec2 r_max,bool clip)", + "argsT": [ + { + "name": "r_min", + "type": "const ImVec2" + }, + { + "name": "r_max", + "type": "const ImVec2" + }, + { + "name": "clip", + "type": "bool" + } + ], + "argsoriginal": "(const ImVec2& r_min,const ImVec2& r_max,bool clip=true)", + "call_args": "(r_min,r_max,clip)", + "cimguiname": "igIsMouseHoveringRect", + "defaults": { + "clip": "true" + }, + "funcname": "IsMouseHoveringRect", + "location": "imgui:906", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseHoveringRect", + "ret": "bool", + "signature": "(const ImVec2,const ImVec2,bool)", + "stname": "" + } + ], + "igIsMousePosValid": [ + { + "args": "(const ImVec2* mouse_pos)", + "argsT": [ + { + "name": "mouse_pos", + "type": "const ImVec2*" + } + ], + "argsoriginal": "(const ImVec2* mouse_pos=((void*)0))", + "call_args": "(mouse_pos)", + "cimguiname": "igIsMousePosValid", + "defaults": { + "mouse_pos": "NULL" + }, + "funcname": "IsMousePosValid", + "location": "imgui:907", + "namespace": "ImGui", + "ov_cimguiname": "igIsMousePosValid", + "ret": "bool", + "signature": "(const ImVec2*)", + "stname": "" + } + ], + "igIsMouseReleased": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igIsMouseReleased", + "defaults": {}, + "funcname": "IsMouseReleased", + "location": "imgui:903", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseReleased", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsPopupOpen": [ + { + "args": "(const char* str_id,ImGuiPopupFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiPopupFlags flags=0)", + "call_args": "(str_id,flags)", + "cimguiname": "igIsPopupOpen", + "defaults": { + "flags": "0" + }, + "funcname": "IsPopupOpen", + "location": "imgui:714", + "namespace": "ImGui", + "ov_cimguiname": "igIsPopupOpen", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igIsRectVisible": [ + { + "args": "(const ImVec2 size)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& size)", + "call_args": "(size)", + "cimguiname": "igIsRectVisible", + "defaults": {}, + "funcname": "IsRectVisible", + "location": "imgui:864", + "namespace": "ImGui", + "ov_cimguiname": "igIsRectVisible_Nil", + "ret": "bool", + "signature": "(const ImVec2)", + "stname": "" + }, + { + "args": "(const ImVec2 rect_min,const ImVec2 rect_max)", + "argsT": [ + { + "name": "rect_min", + "type": "const ImVec2" + }, + { + "name": "rect_max", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& rect_min,const ImVec2& rect_max)", + "call_args": "(rect_min,rect_max)", + "cimguiname": "igIsRectVisible", + "defaults": {}, + "funcname": "IsRectVisible", + "location": "imgui:865", + "namespace": "ImGui", + "ov_cimguiname": "igIsRectVisible_Vec2", + "ret": "bool", + "signature": "(const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igIsWindowAppearing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsWindowAppearing", + "defaults": {}, + "funcname": "IsWindowAppearing", + "location": "imgui:347", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowAppearing", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsWindowCollapsed": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsWindowCollapsed", + "defaults": {}, + "funcname": "IsWindowCollapsed", + "location": "imgui:348", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowCollapsed", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsWindowFocused": [ + { + "args": "(ImGuiFocusedFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiFocusedFlags" + } + ], + "argsoriginal": "(ImGuiFocusedFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igIsWindowFocused", + "defaults": { + "flags": "0" + }, + "funcname": "IsWindowFocused", + "location": "imgui:349", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowFocused", + "ret": "bool", + "signature": "(ImGuiFocusedFlags)", + "stname": "" + } + ], + "igIsWindowHovered": [ + { + "args": "(ImGuiHoveredFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiHoveredFlags" + } + ], + "argsoriginal": "(ImGuiHoveredFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igIsWindowHovered", + "defaults": { + "flags": "0" + }, + "funcname": "IsWindowHovered", + "location": "imgui:350", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowHovered", + "ret": "bool", + "signature": "(ImGuiHoveredFlags)", + "stname": "" + } + ], + "igLabelText": [ + { + "args": "(const char* label,const char* fmt,...)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* label,const char* fmt,...)", + "call_args": "(label,fmt,...)", + "cimguiname": "igLabelText", + "defaults": {}, + "funcname": "LabelText", + "isvararg": "...)", + "location": "imgui:492", + "namespace": "ImGui", + "ov_cimguiname": "igLabelText", + "ret": "void", + "signature": "(const char*,const char*,...)", + "stname": "" + } + ], + "igLabelTextV": [ + { + "args": "(const char* label,const char* fmt,va_list args)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* label,const char* fmt,va_list args)", + "call_args": "(label,fmt,args)", + "cimguiname": "igLabelTextV", + "defaults": {}, + "funcname": "LabelTextV", + "location": "imgui:493", + "namespace": "ImGui", + "ov_cimguiname": "igLabelTextV", + "ret": "void", + "signature": "(const char*,const char*,va_list)", + "stname": "" + } + ], + "igListBox": [ + { + "args": "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items", + "type": "const char* const[]" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items=-1)", + "call_args": "(label,current_item,items,items_count,height_in_items)", + "cimguiname": "igListBox", + "defaults": { + "height_in_items": "-1" + }, + "funcname": "ListBox", + "location": "imgui:634", + "namespace": "ImGui", + "ov_cimguiname": "igListBox_Str_arr", + "ret": "bool", + "signature": "(const char*,int*,const char* const[],int,int)", + "stname": "" + }, + { + "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items_getter", + "ret": "bool", + "signature": "(void* data,int idx,const char** out_text)", + "type": "bool(*)(void* data,int idx,const char** out_text)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items=-1)", + "call_args": "(label,current_item,items_getter,data,items_count,height_in_items)", + "cimguiname": "igListBox", + "defaults": { + "height_in_items": "-1" + }, + "funcname": "ListBox", + "location": "imgui:635", + "namespace": "ImGui", + "ov_cimguiname": "igListBox_FnBoolPtr", + "ret": "bool", + "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", + "stname": "" + } + ], + "igLoadIniSettingsFromDisk": [ + { + "args": "(const char* ini_filename)", + "argsT": [ + { + "name": "ini_filename", + "type": "const char*" + } + ], + "argsoriginal": "(const char* ini_filename)", + "call_args": "(ini_filename)", + "cimguiname": "igLoadIniSettingsFromDisk", + "defaults": {}, + "funcname": "LoadIniSettingsFromDisk", + "location": "imgui:927", + "namespace": "ImGui", + "ov_cimguiname": "igLoadIniSettingsFromDisk", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igLoadIniSettingsFromMemory": [ + { + "args": "(const char* ini_data,size_t ini_size)", + "argsT": [ + { + "name": "ini_data", + "type": "const char*" + }, + { + "name": "ini_size", + "type": "size_t" + } + ], + "argsoriginal": "(const char* ini_data,size_t ini_size=0)", + "call_args": "(ini_data,ini_size)", + "cimguiname": "igLoadIniSettingsFromMemory", + "defaults": { + "ini_size": "0" + }, + "funcname": "LoadIniSettingsFromMemory", + "location": "imgui:928", + "namespace": "ImGui", + "ov_cimguiname": "igLoadIniSettingsFromMemory", + "ret": "void", + "signature": "(const char*,size_t)", + "stname": "" + } + ], + "igLogButtons": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igLogButtons", + "defaults": {}, + "funcname": "LogButtons", + "location": "imgui:798", + "namespace": "ImGui", + "ov_cimguiname": "igLogButtons", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igLogFinish": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igLogFinish", + "defaults": {}, + "funcname": "LogFinish", + "location": "imgui:797", + "namespace": "ImGui", + "ov_cimguiname": "igLogFinish", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igLogText": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igLogText", + "defaults": {}, + "funcname": "LogText", + "isvararg": "...)", + "location": "imgui:799", + "manual": true, + "namespace": "ImGui", + "ov_cimguiname": "igLogText", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igLogTextV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igLogTextV", + "defaults": {}, + "funcname": "LogTextV", + "location": "imgui:800", + "namespace": "ImGui", + "ov_cimguiname": "igLogTextV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igLogToClipboard": [ + { + "args": "(int auto_open_depth)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + } + ], + "argsoriginal": "(int auto_open_depth=-1)", + "call_args": "(auto_open_depth)", + "cimguiname": "igLogToClipboard", + "defaults": { + "auto_open_depth": "-1" + }, + "funcname": "LogToClipboard", + "location": "imgui:796", + "namespace": "ImGui", + "ov_cimguiname": "igLogToClipboard", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igLogToFile": [ + { + "args": "(int auto_open_depth,const char* filename)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + }, + { + "name": "filename", + "type": "const char*" + } + ], + "argsoriginal": "(int auto_open_depth=-1,const char* filename=((void*)0))", + "call_args": "(auto_open_depth,filename)", + "cimguiname": "igLogToFile", + "defaults": { + "auto_open_depth": "-1", + "filename": "NULL" + }, + "funcname": "LogToFile", + "location": "imgui:795", + "namespace": "ImGui", + "ov_cimguiname": "igLogToFile", + "ret": "void", + "signature": "(int,const char*)", + "stname": "" + } + ], + "igLogToTTY": [ + { + "args": "(int auto_open_depth)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + } + ], + "argsoriginal": "(int auto_open_depth=-1)", + "call_args": "(auto_open_depth)", + "cimguiname": "igLogToTTY", + "defaults": { + "auto_open_depth": "-1" + }, + "funcname": "LogToTTY", + "location": "imgui:794", + "namespace": "ImGui", + "ov_cimguiname": "igLogToTTY", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igMemAlloc": [ + { + "args": "(size_t size)", + "argsT": [ + { + "name": "size", + "type": "size_t" + } + ], + "argsoriginal": "(size_t size)", + "call_args": "(size)", + "cimguiname": "igMemAlloc", + "defaults": {}, + "funcname": "MemAlloc", + "location": "imgui:942", + "namespace": "ImGui", + "ov_cimguiname": "igMemAlloc", + "ret": "void*", + "signature": "(size_t)", + "stname": "" + } + ], + "igMemFree": [ + { + "args": "(void* ptr)", + "argsT": [ + { + "name": "ptr", + "type": "void*" + } + ], + "argsoriginal": "(void* ptr)", + "call_args": "(ptr)", + "cimguiname": "igMemFree", + "defaults": {}, + "funcname": "MemFree", + "location": "imgui:943", + "namespace": "ImGui", + "ov_cimguiname": "igMemFree", + "ret": "void", + "signature": "(void*)", + "stname": "" + } + ], + "igMenuItem": [ + { + "args": "(const char* label,const char* shortcut,bool selected,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "shortcut", + "type": "const char*" + }, + { + "name": "selected", + "type": "bool" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,const char* shortcut=((void*)0),bool selected=false,bool enabled=true)", + "call_args": "(label,shortcut,selected,enabled)", + "cimguiname": "igMenuItem", + "defaults": { + "enabled": "true", + "selected": "false", + "shortcut": "NULL" + }, + "funcname": "MenuItem", + "location": "imgui:662", + "namespace": "ImGui", + "ov_cimguiname": "igMenuItem_Bool", + "ret": "bool", + "signature": "(const char*,const char*,bool,bool)", + "stname": "" + }, + { + "args": "(const char* label,const char* shortcut,bool* p_selected,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "shortcut", + "type": "const char*" + }, + { + "name": "p_selected", + "type": "bool*" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,const char* shortcut,bool* p_selected,bool enabled=true)", + "call_args": "(label,shortcut,p_selected,enabled)", + "cimguiname": "igMenuItem", + "defaults": { + "enabled": "true" + }, + "funcname": "MenuItem", + "location": "imgui:663", + "namespace": "ImGui", + "ov_cimguiname": "igMenuItem_BoolPtr", + "ret": "bool", + "signature": "(const char*,const char*,bool*,bool)", + "stname": "" + } + ], + "igNewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNewFrame", + "defaults": {}, + "funcname": "NewFrame", + "location": "imgui:296", + "namespace": "ImGui", + "ov_cimguiname": "igNewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igNewLine": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNewLine", + "defaults": {}, + "funcname": "NewLine", + "location": "imgui:440", + "namespace": "ImGui", + "ov_cimguiname": "igNewLine", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igNextColumn": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNextColumn", + "defaults": {}, + "funcname": "NextColumn", + "location": "imgui:776", + "namespace": "ImGui", + "ov_cimguiname": "igNextColumn", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igOpenPopup": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiPopupFlags popup_flags=0)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igOpenPopup", + "defaults": { + "popup_flags": "0" + }, + "funcname": "OpenPopup", + "location": "imgui:696", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopup_Str", + "ret": "void", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + }, + { + "args": "(ImGuiID id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiPopupFlags popup_flags=0)", + "call_args": "(id,popup_flags)", + "cimguiname": "igOpenPopup", + "defaults": { + "popup_flags": "0" + }, + "funcname": "OpenPopup", + "location": "imgui:697", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopup_ID", + "ret": "void", + "signature": "(ImGuiID,ImGuiPopupFlags)", + "stname": "" + } + ], + "igOpenPopupOnItemClick": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igOpenPopupOnItemClick", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "OpenPopupOnItemClick", + "location": "imgui:698", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopupOnItemClick", + "ret": "void", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igPlotHistogram": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values", + "type": "const float*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + }, + { + "name": "stride", + "type": "int" + } + ], + "argsoriginal": "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))", + "call_args": "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)", + "cimguiname": "igPlotHistogram", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "stride": "sizeof(float)", + "values_offset": "0" + }, + "funcname": "PlotHistogram", + "location": "imgui:641", + "namespace": "ImGui", + "ov_cimguiname": "igPlotHistogram_FloatPtr", + "ret": "void", + "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", + "stname": "" + }, + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values_getter", + "ret": "float", + "signature": "(void* data,int idx)", + "type": "float(*)(void* data,int idx)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + } + ], + "argsoriginal": "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))", + "call_args": "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)", + "cimguiname": "igPlotHistogram", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "values_offset": "0" + }, + "funcname": "PlotHistogram", + "location": "imgui:642", + "namespace": "ImGui", + "ov_cimguiname": "igPlotHistogram_FnFloatPtr", + "ret": "void", + "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", + "stname": "" + } + ], + "igPlotLines": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values", + "type": "const float*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + }, + { + "name": "stride", + "type": "int" + } + ], + "argsoriginal": "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))", + "call_args": "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)", + "cimguiname": "igPlotLines", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "stride": "sizeof(float)", + "values_offset": "0" + }, + "funcname": "PlotLines", + "location": "imgui:639", + "namespace": "ImGui", + "ov_cimguiname": "igPlotLines_FloatPtr", + "ret": "void", + "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", + "stname": "" + }, + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values_getter", + "ret": "float", + "signature": "(void* data,int idx)", + "type": "float(*)(void* data,int idx)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + } + ], + "argsoriginal": "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))", + "call_args": "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)", + "cimguiname": "igPlotLines", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "values_offset": "0" + }, + "funcname": "PlotLines", + "location": "imgui:640", + "namespace": "ImGui", + "ov_cimguiname": "igPlotLines_FnFloatPtr", + "ret": "void", + "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", + "stname": "" + } + ], + "igPopAllowKeyboardFocus": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopAllowKeyboardFocus", + "defaults": {}, + "funcname": "PopAllowKeyboardFocus", + "location": "imgui:409", + "namespace": "ImGui", + "ov_cimguiname": "igPopAllowKeyboardFocus", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopButtonRepeat": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopButtonRepeat", + "defaults": {}, + "funcname": "PopButtonRepeat", + "location": "imgui:411", + "namespace": "ImGui", + "ov_cimguiname": "igPopButtonRepeat", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopClipRect": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopClipRect", + "defaults": {}, + "funcname": "PopClipRect", + "location": "imgui:825", + "namespace": "ImGui", + "ov_cimguiname": "igPopClipRect", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopFont": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopFont", + "defaults": {}, + "funcname": "PopFont", + "location": "imgui:401", + "namespace": "ImGui", + "ov_cimguiname": "igPopFont", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopID": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopID", + "defaults": {}, + "funcname": "PopID", + "location": "imgui:477", + "namespace": "ImGui", + "ov_cimguiname": "igPopID", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopItemWidth": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopItemWidth", + "defaults": {}, + "funcname": "PopItemWidth", + "location": "imgui:415", + "namespace": "ImGui", + "ov_cimguiname": "igPopItemWidth", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igPopStyleColor": [ + { + "args": "(int count)", + "argsT": [ + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(int count=1)", + "call_args": "(count)", + "cimguiname": "igPopStyleColor", + "defaults": { + "count": "1" + }, + "funcname": "PopStyleColor", + "location": "imgui:404", + "namespace": "ImGui", + "ov_cimguiname": "igPopStyleColor", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igPopStyleVar": [ + { + "args": "(int count)", + "argsT": [ + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(int count=1)", + "call_args": "(count)", + "cimguiname": "igPopStyleVar", + "defaults": { + "count": "1" + }, + "funcname": "PopStyleVar", + "location": "imgui:407", + "namespace": "ImGui", + "ov_cimguiname": "igPopStyleVar", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igPopTextWrapPos": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopTextWrapPos", + "defaults": {}, + "funcname": "PopTextWrapPos", + "location": "imgui:419", + "namespace": "ImGui", + "ov_cimguiname": "igPopTextWrapPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igProgressBar": [ + { + "args": "(float fraction,const ImVec2 size_arg,const char* overlay)", + "argsT": [ + { + "name": "fraction", + "type": "float" + }, + { + "name": "size_arg", + "type": "const ImVec2" + }, + { + "name": "overlay", + "type": "const char*" + } + ], + "argsoriginal": "(float fraction,const ImVec2& size_arg=ImVec2(-1.17549435082228750796873653722224568e-38F,0),const char* overlay=((void*)0))", + "call_args": "(fraction,size_arg,overlay)", + "cimguiname": "igProgressBar", + "defaults": { + "overlay": "NULL", + "size_arg": "ImVec2(-FLT_MIN,0)" + }, + "funcname": "ProgressBar", + "location": "imgui:509", + "namespace": "ImGui", + "ov_cimguiname": "igProgressBar", + "ret": "void", + "signature": "(float,const ImVec2,const char*)", + "stname": "" + } + ], + "igPushAllowKeyboardFocus": [ + { + "args": "(bool allow_keyboard_focus)", + "argsT": [ + { + "name": "allow_keyboard_focus", + "type": "bool" + } + ], + "argsoriginal": "(bool allow_keyboard_focus)", + "call_args": "(allow_keyboard_focus)", + "cimguiname": "igPushAllowKeyboardFocus", + "defaults": {}, + "funcname": "PushAllowKeyboardFocus", + "location": "imgui:408", + "namespace": "ImGui", + "ov_cimguiname": "igPushAllowKeyboardFocus", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igPushButtonRepeat": [ + { + "args": "(bool repeat)", + "argsT": [ + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(bool repeat)", + "call_args": "(repeat)", + "cimguiname": "igPushButtonRepeat", + "defaults": {}, + "funcname": "PushButtonRepeat", + "location": "imgui:410", + "namespace": "ImGui", + "ov_cimguiname": "igPushButtonRepeat", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igPushClipRect": [ + { + "args": "(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", + "argsT": [ + { + "name": "clip_rect_min", + "type": "const ImVec2" + }, + { + "name": "clip_rect_max", + "type": "const ImVec2" + }, + { + "name": "intersect_with_current_clip_rect", + "type": "bool" + } + ], + "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect)", + "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", + "cimguiname": "igPushClipRect", + "defaults": {}, + "funcname": "PushClipRect", + "location": "imgui:824", + "namespace": "ImGui", + "ov_cimguiname": "igPushClipRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,bool)", + "stname": "" + } + ], + "igPushFont": [ + { + "args": "(ImFont* font)", + "argsT": [ + { + "name": "font", + "type": "ImFont*" + } + ], + "argsoriginal": "(ImFont* font)", + "call_args": "(font)", + "cimguiname": "igPushFont", + "defaults": {}, + "funcname": "PushFont", + "location": "imgui:400", + "namespace": "ImGui", + "ov_cimguiname": "igPushFont", + "ret": "void", + "signature": "(ImFont*)", + "stname": "" + } + ], + "igPushID": [ + { + "args": "(const char* str_id)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id)", + "call_args": "(str_id)", + "cimguiname": "igPushID", + "defaults": {}, + "funcname": "PushID", + "location": "imgui:473", + "namespace": "ImGui", + "ov_cimguiname": "igPushID_Str", + "ret": "void", + "signature": "(const char*)", + "stname": "" + }, + { + "args": "(const char* str_id_begin,const char* str_id_end)", + "argsT": [ + { + "name": "str_id_begin", + "type": "const char*" + }, + { + "name": "str_id_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id_begin,const char* str_id_end)", + "call_args": "(str_id_begin,str_id_end)", + "cimguiname": "igPushID", + "defaults": {}, + "funcname": "PushID", + "location": "imgui:474", + "namespace": "ImGui", + "ov_cimguiname": "igPushID_StrStr", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "" + }, + { + "args": "(const void* ptr_id)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + } + ], + "argsoriginal": "(const void* ptr_id)", + "call_args": "(ptr_id)", + "cimguiname": "igPushID", + "defaults": {}, + "funcname": "PushID", + "location": "imgui:475", + "namespace": "ImGui", + "ov_cimguiname": "igPushID_Ptr", + "ret": "void", + "signature": "(const void*)", + "stname": "" + }, + { + "args": "(int int_id)", + "argsT": [ + { + "name": "int_id", + "type": "int" + } + ], + "argsoriginal": "(int int_id)", + "call_args": "(int_id)", + "cimguiname": "igPushID", + "defaults": {}, + "funcname": "PushID", + "location": "imgui:476", + "namespace": "ImGui", + "ov_cimguiname": "igPushID_Int", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igPushItemWidth": [ + { + "args": "(float item_width)", + "argsT": [ + { + "name": "item_width", + "type": "float" + } + ], + "argsoriginal": "(float item_width)", + "call_args": "(item_width)", + "cimguiname": "igPushItemWidth", + "defaults": {}, + "funcname": "PushItemWidth", + "location": "imgui:414", + "namespace": "ImGui", + "ov_cimguiname": "igPushItemWidth", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igPushStyleColor": [ + { + "args": "(ImGuiCol idx,ImU32 col)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImGuiCol idx,ImU32 col)", + "call_args": "(idx,col)", + "cimguiname": "igPushStyleColor", + "defaults": {}, + "funcname": "PushStyleColor", + "location": "imgui:402", + "namespace": "ImGui", + "ov_cimguiname": "igPushStyleColor_U32", + "ret": "void", + "signature": "(ImGuiCol,ImU32)", + "stname": "" + }, + { + "args": "(ImGuiCol idx,const ImVec4 col)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + }, + { + "name": "col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(ImGuiCol idx,const ImVec4& col)", + "call_args": "(idx,col)", + "cimguiname": "igPushStyleColor", + "defaults": {}, + "funcname": "PushStyleColor", + "location": "imgui:403", + "namespace": "ImGui", + "ov_cimguiname": "igPushStyleColor_Vec4", + "ret": "void", + "signature": "(ImGuiCol,const ImVec4)", + "stname": "" + } + ], + "igPushStyleVar": [ + { + "args": "(ImGuiStyleVar idx,float val)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiStyleVar" + }, + { + "name": "val", + "type": "float" + } + ], + "argsoriginal": "(ImGuiStyleVar idx,float val)", + "call_args": "(idx,val)", + "cimguiname": "igPushStyleVar", + "defaults": {}, + "funcname": "PushStyleVar", + "location": "imgui:405", + "namespace": "ImGui", + "ov_cimguiname": "igPushStyleVar_Float", + "ret": "void", + "signature": "(ImGuiStyleVar,float)", + "stname": "" + }, + { + "args": "(ImGuiStyleVar idx,const ImVec2 val)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiStyleVar" + }, + { + "name": "val", + "type": "const ImVec2" + } + ], + "argsoriginal": "(ImGuiStyleVar idx,const ImVec2& val)", + "call_args": "(idx,val)", + "cimguiname": "igPushStyleVar", + "defaults": {}, + "funcname": "PushStyleVar", + "location": "imgui:406", + "namespace": "ImGui", + "ov_cimguiname": "igPushStyleVar_Vec2", + "ret": "void", + "signature": "(ImGuiStyleVar,const ImVec2)", + "stname": "" + } + ], + "igPushTextWrapPos": [ + { + "args": "(float wrap_local_pos_x)", + "argsT": [ + { + "name": "wrap_local_pos_x", + "type": "float" + } + ], + "argsoriginal": "(float wrap_local_pos_x=0.0f)", + "call_args": "(wrap_local_pos_x)", + "cimguiname": "igPushTextWrapPos", + "defaults": { + "wrap_local_pos_x": "0.0f" + }, + "funcname": "PushTextWrapPos", + "location": "imgui:418", + "namespace": "ImGui", + "ov_cimguiname": "igPushTextWrapPos", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igRadioButton": [ + { + "args": "(const char* label,bool active)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "active", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,bool active)", + "call_args": "(label,active)", + "cimguiname": "igRadioButton", + "defaults": {}, + "funcname": "RadioButton", + "location": "imgui:507", + "namespace": "ImGui", + "ov_cimguiname": "igRadioButton_Bool", + "ret": "bool", + "signature": "(const char*,bool)", + "stname": "" + }, + { + "args": "(const char* label,int* v,int v_button)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "v_button", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* v,int v_button)", + "call_args": "(label,v,v_button)", + "cimguiname": "igRadioButton", + "defaults": {}, + "funcname": "RadioButton", + "location": "imgui:508", + "namespace": "ImGui", + "ov_cimguiname": "igRadioButton_IntPtr", + "ret": "bool", + "signature": "(const char*,int*,int)", + "stname": "" + } + ], + "igRender": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igRender", + "defaults": {}, + "funcname": "Render", + "location": "imgui:298", + "namespace": "ImGui", + "ov_cimguiname": "igRender", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igResetMouseDragDelta": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button=0)", + "call_args": "(button)", + "cimguiname": "igResetMouseDragDelta", + "defaults": { + "button": "0" + }, + "funcname": "ResetMouseDragDelta", + "location": "imgui:913", + "namespace": "ImGui", + "ov_cimguiname": "igResetMouseDragDelta", + "ret": "void", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igSameLine": [ + { + "args": "(float offset_from_start_x,float spacing)", + "argsT": [ + { + "name": "offset_from_start_x", + "type": "float" + }, + { + "name": "spacing", + "type": "float" + } + ], + "argsoriginal": "(float offset_from_start_x=0.0f,float spacing=-1.0f)", + "call_args": "(offset_from_start_x,spacing)", + "cimguiname": "igSameLine", + "defaults": { + "offset_from_start_x": "0.0f", + "spacing": "-1.0f" + }, + "funcname": "SameLine", + "location": "imgui:439", + "namespace": "ImGui", + "ov_cimguiname": "igSameLine", + "ret": "void", + "signature": "(float,float)", + "stname": "" + } + ], + "igSaveIniSettingsToDisk": [ + { + "args": "(const char* ini_filename)", + "argsT": [ + { + "name": "ini_filename", + "type": "const char*" + } + ], + "argsoriginal": "(const char* ini_filename)", + "call_args": "(ini_filename)", + "cimguiname": "igSaveIniSettingsToDisk", + "defaults": {}, + "funcname": "SaveIniSettingsToDisk", + "location": "imgui:929", + "namespace": "ImGui", + "ov_cimguiname": "igSaveIniSettingsToDisk", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igSaveIniSettingsToMemory": [ + { + "args": "(size_t* out_ini_size)", + "argsT": [ + { + "name": "out_ini_size", + "type": "size_t*" + } + ], + "argsoriginal": "(size_t* out_ini_size=((void*)0))", + "call_args": "(out_ini_size)", + "cimguiname": "igSaveIniSettingsToMemory", + "defaults": { + "out_ini_size": "NULL" + }, + "funcname": "SaveIniSettingsToMemory", + "location": "imgui:930", + "namespace": "ImGui", + "ov_cimguiname": "igSaveIniSettingsToMemory", + "ret": "const char*", + "signature": "(size_t*)", + "stname": "" + } + ], + "igSelectable": [ + { + "args": "(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "selected", + "type": "bool" + }, + { + "name": "flags", + "type": "ImGuiSelectableFlags" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,bool selected=false,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,selected,flags,size)", + "cimguiname": "igSelectable", + "defaults": { + "flags": "0", + "selected": "false", + "size": "ImVec2(0,0)" + }, + "funcname": "Selectable", + "location": "imgui:623", + "namespace": "ImGui", + "ov_cimguiname": "igSelectable_Bool", + "ret": "bool", + "signature": "(const char*,bool,ImGuiSelectableFlags,const ImVec2)", + "stname": "" + }, + { + "args": "(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_selected", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiSelectableFlags" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,bool* p_selected,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,p_selected,flags,size)", + "cimguiname": "igSelectable", + "defaults": { + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "Selectable", + "location": "imgui:624", + "namespace": "ImGui", + "ov_cimguiname": "igSelectable_BoolPtr", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)", + "stname": "" + } + ], + "igSeparator": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSeparator", + "defaults": {}, + "funcname": "Separator", + "location": "imgui:438", + "namespace": "ImGui", + "ov_cimguiname": "igSeparator", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetAllocatorFunctions": [ + { + "args": "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)", + "argsT": [ + { + "name": "alloc_func", + "type": "ImGuiMemAllocFunc" + }, + { + "name": "free_func", + "type": "ImGuiMemFreeFunc" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data=((void*)0))", + "call_args": "(alloc_func,free_func,user_data)", + "cimguiname": "igSetAllocatorFunctions", + "defaults": { + "user_data": "NULL" + }, + "funcname": "SetAllocatorFunctions", + "location": "imgui:940", + "namespace": "ImGui", + "ov_cimguiname": "igSetAllocatorFunctions", + "ret": "void", + "signature": "(ImGuiMemAllocFunc,ImGuiMemFreeFunc,void*)", + "stname": "" + } + ], + "igSetClipboardText": [ + { + "args": "(const char* text)", + "argsT": [ + { + "name": "text", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text)", + "call_args": "(text)", + "cimguiname": "igSetClipboardText", + "defaults": {}, + "funcname": "SetClipboardText", + "location": "imgui:921", + "namespace": "ImGui", + "ov_cimguiname": "igSetClipboardText", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igSetColorEditOptions": [ + { + "args": "(ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(ImGuiColorEditFlags flags)", + "call_args": "(flags)", + "cimguiname": "igSetColorEditOptions", + "defaults": {}, + "funcname": "SetColorEditOptions", + "location": "imgui:598", + "namespace": "ImGui", + "ov_cimguiname": "igSetColorEditOptions", + "ret": "void", + "signature": "(ImGuiColorEditFlags)", + "stname": "" + } + ], + "igSetColumnOffset": [ + { + "args": "(int column_index,float offset_x)", + "argsT": [ + { + "name": "column_index", + "type": "int" + }, + { + "name": "offset_x", + "type": "float" + } + ], + "argsoriginal": "(int column_index,float offset_x)", + "call_args": "(column_index,offset_x)", + "cimguiname": "igSetColumnOffset", + "defaults": {}, + "funcname": "SetColumnOffset", + "location": "imgui:781", + "namespace": "ImGui", + "ov_cimguiname": "igSetColumnOffset", + "ret": "void", + "signature": "(int,float)", + "stname": "" + } + ], + "igSetColumnWidth": [ + { + "args": "(int column_index,float width)", + "argsT": [ + { + "name": "column_index", + "type": "int" + }, + { + "name": "width", + "type": "float" + } + ], + "argsoriginal": "(int column_index,float width)", + "call_args": "(column_index,width)", + "cimguiname": "igSetColumnWidth", + "defaults": {}, + "funcname": "SetColumnWidth", + "location": "imgui:779", + "namespace": "ImGui", + "ov_cimguiname": "igSetColumnWidth", + "ret": "void", + "signature": "(int,float)", + "stname": "" + } + ], + "igSetCurrentContext": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igSetCurrentContext", + "defaults": {}, + "funcname": "SetCurrentContext", + "location": "imgui:291", + "namespace": "ImGui", + "ov_cimguiname": "igSetCurrentContext", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igSetCursorPos": [ + { + "args": "(const ImVec2 local_pos)", + "argsT": [ + { + "name": "local_pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& local_pos)", + "call_args": "(local_pos)", + "cimguiname": "igSetCursorPos", + "defaults": {}, + "funcname": "SetCursorPos", + "location": "imgui:450", + "namespace": "ImGui", + "ov_cimguiname": "igSetCursorPos", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igSetCursorPosX": [ + { + "args": "(float local_x)", + "argsT": [ + { + "name": "local_x", + "type": "float" + } + ], + "argsoriginal": "(float local_x)", + "call_args": "(local_x)", + "cimguiname": "igSetCursorPosX", + "defaults": {}, + "funcname": "SetCursorPosX", + "location": "imgui:451", + "namespace": "ImGui", + "ov_cimguiname": "igSetCursorPosX", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetCursorPosY": [ + { + "args": "(float local_y)", + "argsT": [ + { + "name": "local_y", + "type": "float" + } + ], + "argsoriginal": "(float local_y)", + "call_args": "(local_y)", + "cimguiname": "igSetCursorPosY", + "defaults": {}, + "funcname": "SetCursorPosY", + "location": "imgui:452", + "namespace": "ImGui", + "ov_cimguiname": "igSetCursorPosY", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetCursorScreenPos": [ + { + "args": "(const ImVec2 pos)", + "argsT": [ + { + "name": "pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "igSetCursorScreenPos", + "defaults": {}, + "funcname": "SetCursorScreenPos", + "location": "imgui:455", + "namespace": "ImGui", + "ov_cimguiname": "igSetCursorScreenPos", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igSetDragDropPayload": [ + { + "args": "(const char* type,const void* data,size_t sz,ImGuiCond cond)", + "argsT": [ + { + "name": "type", + "type": "const char*" + }, + { + "name": "data", + "type": "const void*" + }, + { + "name": "sz", + "type": "size_t" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const char* type,const void* data,size_t sz,ImGuiCond cond=0)", + "call_args": "(type,data,sz,cond)", + "cimguiname": "igSetDragDropPayload", + "defaults": { + "cond": "0" + }, + "funcname": "SetDragDropPayload", + "location": "imgui:808", + "namespace": "ImGui", + "ov_cimguiname": "igSetDragDropPayload", + "ret": "bool", + "signature": "(const char*,const void*,size_t,ImGuiCond)", + "stname": "" + } + ], + "igSetItemAllowOverlap": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetItemAllowOverlap", + "defaults": {}, + "funcname": "SetItemAllowOverlap", + "location": "imgui:851", + "namespace": "ImGui", + "ov_cimguiname": "igSetItemAllowOverlap", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetItemDefaultFocus": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetItemDefaultFocus", + "defaults": {}, + "funcname": "SetItemDefaultFocus", + "location": "imgui:829", + "namespace": "ImGui", + "ov_cimguiname": "igSetItemDefaultFocus", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetKeyboardFocusHere": [ + { + "args": "(int offset)", + "argsT": [ + { + "name": "offset", + "type": "int" + } + ], + "argsoriginal": "(int offset=0)", + "call_args": "(offset)", + "cimguiname": "igSetKeyboardFocusHere", + "defaults": { + "offset": "0" + }, + "funcname": "SetKeyboardFocusHere", + "location": "imgui:830", + "namespace": "ImGui", + "ov_cimguiname": "igSetKeyboardFocusHere", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igSetMouseCursor": [ + { + "args": "(ImGuiMouseCursor cursor_type)", + "argsT": [ + { + "name": "cursor_type", + "type": "ImGuiMouseCursor" + } + ], + "argsoriginal": "(ImGuiMouseCursor cursor_type)", + "call_args": "(cursor_type)", + "cimguiname": "igSetMouseCursor", + "defaults": {}, + "funcname": "SetMouseCursor", + "location": "imgui:915", + "namespace": "ImGui", + "ov_cimguiname": "igSetMouseCursor", + "ret": "void", + "signature": "(ImGuiMouseCursor)", + "stname": "" + } + ], + "igSetNextFrameWantCaptureKeyboard": [ + { + "args": "(bool want_capture_keyboard)", + "argsT": [ + { + "name": "want_capture_keyboard", + "type": "bool" + } + ], + "argsoriginal": "(bool want_capture_keyboard)", + "call_args": "(want_capture_keyboard)", + "cimguiname": "igSetNextFrameWantCaptureKeyboard", + "defaults": {}, + "funcname": "SetNextFrameWantCaptureKeyboard", + "location": "imgui:895", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextFrameWantCaptureKeyboard", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igSetNextFrameWantCaptureMouse": [ + { + "args": "(bool want_capture_mouse)", + "argsT": [ + { + "name": "want_capture_mouse", + "type": "bool" + } + ], + "argsoriginal": "(bool want_capture_mouse)", + "call_args": "(want_capture_mouse)", + "cimguiname": "igSetNextFrameWantCaptureMouse", + "defaults": {}, + "funcname": "SetNextFrameWantCaptureMouse", + "location": "imgui:916", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextFrameWantCaptureMouse", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igSetNextItemOpen": [ + { + "args": "(bool is_open,ImGuiCond cond)", + "argsT": [ + { + "name": "is_open", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(bool is_open,ImGuiCond cond=0)", + "call_args": "(is_open,cond)", + "cimguiname": "igSetNextItemOpen", + "defaults": { + "cond": "0" + }, + "funcname": "SetNextItemOpen", + "location": "imgui:618", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextItemOpen", + "ret": "void", + "signature": "(bool,ImGuiCond)", + "stname": "" + } + ], + "igSetNextItemWidth": [ + { + "args": "(float item_width)", + "argsT": [ + { + "name": "item_width", + "type": "float" + } + ], + "argsoriginal": "(float item_width)", + "call_args": "(item_width)", + "cimguiname": "igSetNextItemWidth", + "defaults": {}, + "funcname": "SetNextItemWidth", + "location": "imgui:416", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextItemWidth", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetNextWindowBgAlpha": [ + { + "args": "(float alpha)", + "argsT": [ + { + "name": "alpha", + "type": "float" + } + ], + "argsoriginal": "(float alpha)", + "call_args": "(alpha)", + "cimguiname": "igSetNextWindowBgAlpha", + "defaults": {}, + "funcname": "SetNextWindowBgAlpha", + "location": "imgui:366", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowBgAlpha", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetNextWindowCollapsed": [ + { + "args": "(bool collapsed,ImGuiCond cond)", + "argsT": [ + { + "name": "collapsed", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(bool collapsed,ImGuiCond cond=0)", + "call_args": "(collapsed,cond)", + "cimguiname": "igSetNextWindowCollapsed", + "defaults": { + "cond": "0" + }, + "funcname": "SetNextWindowCollapsed", + "location": "imgui:363", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowCollapsed", + "ret": "void", + "signature": "(bool,ImGuiCond)", + "stname": "" + } + ], + "igSetNextWindowContentSize": [ + { + "args": "(const ImVec2 size)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& size)", + "call_args": "(size)", + "cimguiname": "igSetNextWindowContentSize", + "defaults": {}, + "funcname": "SetNextWindowContentSize", + "location": "imgui:362", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowContentSize", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igSetNextWindowFocus": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetNextWindowFocus", + "defaults": {}, + "funcname": "SetNextWindowFocus", + "location": "imgui:364", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowFocus", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetNextWindowPos": [ + { + "args": "(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot)", + "argsT": [ + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + }, + { + "name": "pivot", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos,ImGuiCond cond=0,const ImVec2& pivot=ImVec2(0,0))", + "call_args": "(pos,cond,pivot)", + "cimguiname": "igSetNextWindowPos", + "defaults": { + "cond": "0", + "pivot": "ImVec2(0,0)" + }, + "funcname": "SetNextWindowPos", + "location": "imgui:359", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowPos", + "ret": "void", + "signature": "(const ImVec2,ImGuiCond,const ImVec2)", + "stname": "" + } + ], + "igSetNextWindowScroll": [ + { + "args": "(const ImVec2 scroll)", + "argsT": [ + { + "name": "scroll", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& scroll)", + "call_args": "(scroll)", + "cimguiname": "igSetNextWindowScroll", + "defaults": {}, + "funcname": "SetNextWindowScroll", + "location": "imgui:365", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowScroll", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igSetNextWindowSize": [ + { + "args": "(const ImVec2 size,ImGuiCond cond)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(size,cond)", + "cimguiname": "igSetNextWindowSize", + "defaults": { + "cond": "0" + }, + "funcname": "SetNextWindowSize", + "location": "imgui:360", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowSize", + "ret": "void", + "signature": "(const ImVec2,ImGuiCond)", + "stname": "" + } + ], + "igSetNextWindowSizeConstraints": [ + { + "args": "(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data)", + "argsT": [ + { + "name": "size_min", + "type": "const ImVec2" + }, + { + "name": "size_max", + "type": "const ImVec2" + }, + { + "name": "custom_callback", + "type": "ImGuiSizeCallback" + }, + { + "name": "custom_callback_data", + "type": "void*" + } + ], + "argsoriginal": "(const ImVec2& size_min,const ImVec2& size_max,ImGuiSizeCallback custom_callback=((void*)0),void* custom_callback_data=((void*)0))", + "call_args": "(size_min,size_max,custom_callback,custom_callback_data)", + "cimguiname": "igSetNextWindowSizeConstraints", + "defaults": { + "custom_callback": "NULL", + "custom_callback_data": "NULL" + }, + "funcname": "SetNextWindowSizeConstraints", + "location": "imgui:361", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowSizeConstraints", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImGuiSizeCallback,void*)", + "stname": "" + } + ], + "igSetScrollFromPosX": [ + { + "args": "(float local_x,float center_x_ratio)", + "argsT": [ + { + "name": "local_x", + "type": "float" + }, + { + "name": "center_x_ratio", + "type": "float" + } + ], + "argsoriginal": "(float local_x,float center_x_ratio=0.5f)", + "call_args": "(local_x,center_x_ratio)", + "cimguiname": "igSetScrollFromPosX", + "defaults": { + "center_x_ratio": "0.5f" + }, + "funcname": "SetScrollFromPosX", + "location": "imgui:396", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollFromPosX", + "ret": "void", + "signature": "(float,float)", + "stname": "" + } + ], + "igSetScrollFromPosY": [ + { + "args": "(float local_y,float center_y_ratio)", + "argsT": [ + { + "name": "local_y", + "type": "float" + }, + { + "name": "center_y_ratio", + "type": "float" + } + ], + "argsoriginal": "(float local_y,float center_y_ratio=0.5f)", + "call_args": "(local_y,center_y_ratio)", + "cimguiname": "igSetScrollFromPosY", + "defaults": { + "center_y_ratio": "0.5f" + }, + "funcname": "SetScrollFromPosY", + "location": "imgui:397", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollFromPosY", + "ret": "void", + "signature": "(float,float)", + "stname": "" + } + ], + "igSetScrollHereX": [ + { + "args": "(float center_x_ratio)", + "argsT": [ + { + "name": "center_x_ratio", + "type": "float" + } + ], + "argsoriginal": "(float center_x_ratio=0.5f)", + "call_args": "(center_x_ratio)", + "cimguiname": "igSetScrollHereX", + "defaults": { + "center_x_ratio": "0.5f" + }, + "funcname": "SetScrollHereX", + "location": "imgui:394", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollHereX", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetScrollHereY": [ + { + "args": "(float center_y_ratio)", + "argsT": [ + { + "name": "center_y_ratio", + "type": "float" + } + ], + "argsoriginal": "(float center_y_ratio=0.5f)", + "call_args": "(center_y_ratio)", + "cimguiname": "igSetScrollHereY", + "defaults": { + "center_y_ratio": "0.5f" + }, + "funcname": "SetScrollHereY", + "location": "imgui:395", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollHereY", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetScrollX": [ + { + "args": "(float scroll_x)", + "argsT": [ + { + "name": "scroll_x", + "type": "float" + } + ], + "argsoriginal": "(float scroll_x)", + "call_args": "(scroll_x)", + "cimguiname": "igSetScrollX", + "defaults": {}, + "funcname": "SetScrollX", + "location": "imgui:390", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollX", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetScrollY": [ + { + "args": "(float scroll_y)", + "argsT": [ + { + "name": "scroll_y", + "type": "float" + } + ], + "argsoriginal": "(float scroll_y)", + "call_args": "(scroll_y)", + "cimguiname": "igSetScrollY", + "defaults": {}, + "funcname": "SetScrollY", + "location": "imgui:391", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollY", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetStateStorage": [ + { + "args": "(ImGuiStorage* storage)", + "argsT": [ + { + "name": "storage", + "type": "ImGuiStorage*" + } + ], + "argsoriginal": "(ImGuiStorage* storage)", + "call_args": "(storage)", + "cimguiname": "igSetStateStorage", + "defaults": {}, + "funcname": "SetStateStorage", + "location": "imgui:870", + "namespace": "ImGui", + "ov_cimguiname": "igSetStateStorage", + "ret": "void", + "signature": "(ImGuiStorage*)", + "stname": "" + } + ], + "igSetTabItemClosed": [ + { + "args": "(const char* tab_or_docked_window_label)", + "argsT": [ + { + "name": "tab_or_docked_window_label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* tab_or_docked_window_label)", + "call_args": "(tab_or_docked_window_label)", + "cimguiname": "igSetTabItemClosed", + "defaults": {}, + "funcname": "SetTabItemClosed", + "location": "imgui:790", + "namespace": "ImGui", + "ov_cimguiname": "igSetTabItemClosed", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igSetTooltip": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igSetTooltip", + "defaults": {}, + "funcname": "SetTooltip", + "isvararg": "...)", + "location": "imgui:669", + "namespace": "ImGui", + "ov_cimguiname": "igSetTooltip", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igSetTooltipV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igSetTooltipV", + "defaults": {}, + "funcname": "SetTooltipV", + "location": "imgui:670", + "namespace": "ImGui", + "ov_cimguiname": "igSetTooltipV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igSetWindowCollapsed": [ + { + "args": "(bool collapsed,ImGuiCond cond)", + "argsT": [ + { + "name": "collapsed", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(bool collapsed,ImGuiCond cond=0)", + "call_args": "(collapsed,cond)", + "cimguiname": "igSetWindowCollapsed", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowCollapsed", + "location": "imgui:369", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowCollapsed_Bool", + "ret": "void", + "signature": "(bool,ImGuiCond)", + "stname": "" + }, + { + "args": "(const char* name,bool collapsed,ImGuiCond cond)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "collapsed", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const char* name,bool collapsed,ImGuiCond cond=0)", + "call_args": "(name,collapsed,cond)", + "cimguiname": "igSetWindowCollapsed", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowCollapsed", + "location": "imgui:374", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowCollapsed_Str", + "ret": "void", + "signature": "(const char*,bool,ImGuiCond)", + "stname": "" + } + ], + "igSetWindowFocus": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetWindowFocus", + "defaults": {}, + "funcname": "SetWindowFocus", + "location": "imgui:370", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowFocus_Nil", + "ret": "void", + "signature": "()", + "stname": "" + }, + { + "args": "(const char* name)", + "argsT": [ + { + "name": "name", + "type": "const char*" + } + ], + "argsoriginal": "(const char* name)", + "call_args": "(name)", + "cimguiname": "igSetWindowFocus", + "defaults": {}, + "funcname": "SetWindowFocus", + "location": "imgui:375", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowFocus_Str", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igSetWindowFontScale": [ + { + "args": "(float scale)", + "argsT": [ + { + "name": "scale", + "type": "float" + } + ], + "argsoriginal": "(float scale)", + "call_args": "(scale)", + "cimguiname": "igSetWindowFontScale", + "defaults": {}, + "funcname": "SetWindowFontScale", + "location": "imgui:371", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowFontScale", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igSetWindowPos": [ + { + "args": "(const ImVec2 pos,ImGuiCond cond)", + "argsT": [ + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const ImVec2& pos,ImGuiCond cond=0)", + "call_args": "(pos,cond)", + "cimguiname": "igSetWindowPos", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowPos", + "location": "imgui:367", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowPos_Vec2", + "ret": "void", + "signature": "(const ImVec2,ImGuiCond)", + "stname": "" + }, + { + "args": "(const char* name,const ImVec2 pos,ImGuiCond cond)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const char* name,const ImVec2& pos,ImGuiCond cond=0)", + "call_args": "(name,pos,cond)", + "cimguiname": "igSetWindowPos", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowPos", + "location": "imgui:372", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowPos_Str", + "ret": "void", + "signature": "(const char*,const ImVec2,ImGuiCond)", + "stname": "" + } + ], + "igSetWindowSize": [ + { + "args": "(const ImVec2 size,ImGuiCond cond)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(size,cond)", + "cimguiname": "igSetWindowSize", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowSize", + "location": "imgui:368", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowSize_Vec2", + "ret": "void", + "signature": "(const ImVec2,ImGuiCond)", + "stname": "" + }, + { + "args": "(const char* name,const ImVec2 size,ImGuiCond cond)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const char* name,const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(name,size,cond)", + "cimguiname": "igSetWindowSize", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowSize", + "location": "imgui:373", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowSize_Str", + "ret": "void", + "signature": "(const char*,const ImVec2,ImGuiCond)", + "stname": "" + } + ], + "igShowAboutWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowAboutWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowAboutWindow", + "location": "imgui:306", + "namespace": "ImGui", + "ov_cimguiname": "igShowAboutWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowDebugLogWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowDebugLogWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowDebugLogWindow", + "location": "imgui:304", + "namespace": "ImGui", + "ov_cimguiname": "igShowDebugLogWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowDemoWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowDemoWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowDemoWindow", + "location": "imgui:302", + "namespace": "ImGui", + "ov_cimguiname": "igShowDemoWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowFontSelector": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igShowFontSelector", + "defaults": {}, + "funcname": "ShowFontSelector", + "location": "imgui:309", + "namespace": "ImGui", + "ov_cimguiname": "igShowFontSelector", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igShowMetricsWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowMetricsWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowMetricsWindow", + "location": "imgui:303", + "namespace": "ImGui", + "ov_cimguiname": "igShowMetricsWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowStackToolWindow": [ + { + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowStackToolWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowStackToolWindow", + "location": "imgui:305", + "namespace": "ImGui", + "ov_cimguiname": "igShowStackToolWindow", + "ret": "void", + "signature": "(bool*)", + "stname": "" + } + ], + "igShowStyleEditor": [ + { + "args": "(ImGuiStyle* ref)", + "argsT": [ + { + "name": "ref", + "type": "ImGuiStyle*" + } + ], + "argsoriginal": "(ImGuiStyle* ref=((void*)0))", + "call_args": "(ref)", + "cimguiname": "igShowStyleEditor", + "defaults": { + "ref": "NULL" + }, + "funcname": "ShowStyleEditor", + "location": "imgui:307", + "namespace": "ImGui", + "ov_cimguiname": "igShowStyleEditor", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "" + } + ], + "igShowStyleSelector": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igShowStyleSelector", + "defaults": {}, + "funcname": "ShowStyleSelector", + "location": "imgui:308", + "namespace": "ImGui", + "ov_cimguiname": "igShowStyleSelector", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + } + ], + "igShowUserGuide": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igShowUserGuide", + "defaults": {}, + "funcname": "ShowUserGuide", + "location": "imgui:310", + "namespace": "ImGui", + "ov_cimguiname": "igShowUserGuide", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSliderAngle": [ + { + "args": "(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v_rad", + "type": "float*" + }, + { + "name": "v_degrees_min", + "type": "float" + }, + { + "name": "v_degrees_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v_rad,float v_degrees_min=-360.0f,float v_degrees_max=+360.0f,const char* format=\"%.0f deg\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v_rad,v_degrees_min,v_degrees_max,format,flags)", + "cimguiname": "igSliderAngle", + "defaults": { + "flags": "0", + "format": "\"%.0f deg\"", + "v_degrees_max": "+360.0f", + "v_degrees_min": "-360.0f" + }, + "funcname": "SliderAngle", + "location": "imgui:561", + "namespace": "ImGui", + "ov_cimguiname": "igSliderAngle", + "ret": "bool", + "signature": "(const char*,float*,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderFloat": [ + { + "args": "(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float*" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat", + "location": "imgui:557", + "namespace": "ImGui", + "ov_cimguiname": "igSliderFloat", + "ret": "bool", + "signature": "(const char*,float*,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderFloat2": [ + { + "args": "(const char* label,float v[2],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[2]" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[2],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat2", + "location": "imgui:558", + "namespace": "ImGui", + "ov_cimguiname": "igSliderFloat2", + "ret": "bool", + "signature": "(const char*,float[2],float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderFloat3": [ + { + "args": "(const char* label,float v[3],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[3]" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[3],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat3", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat3", + "location": "imgui:559", + "namespace": "ImGui", + "ov_cimguiname": "igSliderFloat3", + "ret": "bool", + "signature": "(const char*,float[3],float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderFloat4": [ + { + "args": "(const char* label,float v[4],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[4]" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[4],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat4", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat4", + "location": "imgui:560", + "namespace": "ImGui", + "ov_cimguiname": "igSliderFloat4", + "ret": "bool", + "signature": "(const char*,float[4],float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderInt": [ + { + "args": "(const char* label,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt", + "location": "imgui:562", + "namespace": "ImGui", + "ov_cimguiname": "igSliderInt", + "ret": "bool", + "signature": "(const char*,int*,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderInt2": [ + { + "args": "(const char* label,int v[2],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[2]" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[2],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt2", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt2", + "location": "imgui:563", + "namespace": "ImGui", + "ov_cimguiname": "igSliderInt2", + "ret": "bool", + "signature": "(const char*,int[2],int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderInt3": [ + { + "args": "(const char* label,int v[3],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[3]" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[3],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt3", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt3", + "location": "imgui:564", + "namespace": "ImGui", + "ov_cimguiname": "igSliderInt3", + "ret": "bool", + "signature": "(const char*,int[3],int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderInt4": [ + { + "args": "(const char* label,int v[4],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[4]" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[4],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt4", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt4", + "location": "imgui:565", + "namespace": "ImGui", + "ov_cimguiname": "igSliderInt4", + "ret": "bool", + "signature": "(const char*,int[4],int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderScalar": [ + { + "args": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,p_min,p_max,format,flags)", + "cimguiname": "igSliderScalar", + "defaults": { + "flags": "0", + "format": "NULL" + }, + "funcname": "SliderScalar", + "location": "imgui:566", + "namespace": "ImGui", + "ov_cimguiname": "igSliderScalar", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSliderScalarN": [ + { + "args": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,components,p_min,p_max,format,flags)", + "cimguiname": "igSliderScalarN", + "defaults": { + "flags": "0", + "format": "NULL" + }, + "funcname": "SliderScalarN", + "location": "imgui:567", + "namespace": "ImGui", + "ov_cimguiname": "igSliderScalarN", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igSmallButton": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igSmallButton", + "defaults": {}, + "funcname": "SmallButton", + "location": "imgui:501", + "namespace": "ImGui", + "ov_cimguiname": "igSmallButton", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + } + ], + "igSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSpacing", + "defaults": {}, + "funcname": "Spacing", + "location": "imgui:441", + "namespace": "ImGui", + "ov_cimguiname": "igSpacing", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igStyleColorsClassic": [ + { + "args": "(ImGuiStyle* dst)", + "argsT": [ + { + "name": "dst", + "type": "ImGuiStyle*" + } + ], + "argsoriginal": "(ImGuiStyle* dst=((void*)0))", + "call_args": "(dst)", + "cimguiname": "igStyleColorsClassic", + "defaults": { + "dst": "NULL" + }, + "funcname": "StyleColorsClassic", + "location": "imgui:316", + "namespace": "ImGui", + "ov_cimguiname": "igStyleColorsClassic", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "" + } + ], + "igStyleColorsDark": [ + { + "args": "(ImGuiStyle* dst)", + "argsT": [ + { + "name": "dst", + "type": "ImGuiStyle*" + } + ], + "argsoriginal": "(ImGuiStyle* dst=((void*)0))", + "call_args": "(dst)", + "cimguiname": "igStyleColorsDark", + "defaults": { + "dst": "NULL" + }, + "funcname": "StyleColorsDark", + "location": "imgui:314", + "namespace": "ImGui", + "ov_cimguiname": "igStyleColorsDark", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "" + } + ], + "igStyleColorsLight": [ + { + "args": "(ImGuiStyle* dst)", + "argsT": [ + { + "name": "dst", + "type": "ImGuiStyle*" + } + ], + "argsoriginal": "(ImGuiStyle* dst=((void*)0))", + "call_args": "(dst)", + "cimguiname": "igStyleColorsLight", + "defaults": { + "dst": "NULL" + }, + "funcname": "StyleColorsLight", + "location": "imgui:315", + "namespace": "ImGui", + "ov_cimguiname": "igStyleColorsLight", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "" + } + ], + "igTabItemButton": [ + { + "args": "(const char* label,ImGuiTabItemFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTabItemFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiTabItemFlags flags=0)", + "call_args": "(label,flags)", + "cimguiname": "igTabItemButton", + "defaults": { + "flags": "0" + }, + "funcname": "TabItemButton", + "location": "imgui:789", + "namespace": "ImGui", + "ov_cimguiname": "igTabItemButton", + "ret": "bool", + "signature": "(const char*,ImGuiTabItemFlags)", + "stname": "" + } + ], + "igTableGetColumnCount": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetColumnCount", + "defaults": {}, + "funcname": "TableGetColumnCount", + "location": "imgui:765", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnCount", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igTableGetColumnFlags": [ + { + "args": "(int column_n)", + "argsT": [ + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(int column_n=-1)", + "call_args": "(column_n)", + "cimguiname": "igTableGetColumnFlags", + "defaults": { + "column_n": "-1" + }, + "funcname": "TableGetColumnFlags", + "location": "imgui:769", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnFlags", + "ret": "ImGuiTableColumnFlags", + "signature": "(int)", + "stname": "" + } + ], + "igTableGetColumnIndex": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetColumnIndex", + "defaults": {}, + "funcname": "TableGetColumnIndex", + "location": "imgui:766", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnIndex", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igTableGetColumnName": [ + { + "args": "(int column_n)", + "argsT": [ + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(int column_n=-1)", + "call_args": "(column_n)", + "cimguiname": "igTableGetColumnName", + "defaults": { + "column_n": "-1" + }, + "funcname": "TableGetColumnName", + "location": "imgui:768", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnName", + "ret": "const char*", + "signature": "(int)", + "stname": "" + } + ], + "igTableGetRowIndex": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetRowIndex", + "defaults": {}, + "funcname": "TableGetRowIndex", + "location": "imgui:767", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetRowIndex", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igTableGetSortSpecs": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetSortSpecs", + "defaults": {}, + "funcname": "TableGetSortSpecs", + "location": "imgui:764", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetSortSpecs", + "ret": "ImGuiTableSortSpecs*", + "signature": "()", + "stname": "" + } + ], + "igTableHeader": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igTableHeader", + "defaults": {}, + "funcname": "TableHeader", + "location": "imgui:756", + "namespace": "ImGui", + "ov_cimguiname": "igTableHeader", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igTableHeadersRow": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableHeadersRow", + "defaults": {}, + "funcname": "TableHeadersRow", + "location": "imgui:755", + "namespace": "ImGui", + "ov_cimguiname": "igTableHeadersRow", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igTableNextColumn": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableNextColumn", + "defaults": {}, + "funcname": "TableNextColumn", + "location": "imgui:742", + "namespace": "ImGui", + "ov_cimguiname": "igTableNextColumn", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igTableNextRow": [ + { + "args": "(ImGuiTableRowFlags row_flags,float min_row_height)", + "argsT": [ + { + "name": "row_flags", + "type": "ImGuiTableRowFlags" + }, + { + "name": "min_row_height", + "type": "float" + } + ], + "argsoriginal": "(ImGuiTableRowFlags row_flags=0,float min_row_height=0.0f)", + "call_args": "(row_flags,min_row_height)", + "cimguiname": "igTableNextRow", + "defaults": { + "min_row_height": "0.0f", + "row_flags": "0" + }, + "funcname": "TableNextRow", + "location": "imgui:741", + "namespace": "ImGui", + "ov_cimguiname": "igTableNextRow", + "ret": "void", + "signature": "(ImGuiTableRowFlags,float)", + "stname": "" + } + ], + "igTableSetBgColor": [ + { + "args": "(ImGuiTableBgTarget target,ImU32 color,int column_n)", + "argsT": [ + { + "name": "target", + "type": "ImGuiTableBgTarget" + }, + { + "name": "color", + "type": "ImU32" + }, + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(ImGuiTableBgTarget target,ImU32 color,int column_n=-1)", + "call_args": "(target,color,column_n)", + "cimguiname": "igTableSetBgColor", + "defaults": { + "column_n": "-1" + }, + "funcname": "TableSetBgColor", + "location": "imgui:771", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetBgColor", + "ret": "void", + "signature": "(ImGuiTableBgTarget,ImU32,int)", + "stname": "" + } + ], + "igTableSetColumnEnabled": [ + { + "args": "(int column_n,bool v)", + "argsT": [ + { + "name": "column_n", + "type": "int" + }, + { + "name": "v", + "type": "bool" + } + ], + "argsoriginal": "(int column_n,bool v)", + "call_args": "(column_n,v)", + "cimguiname": "igTableSetColumnEnabled", + "defaults": {}, + "funcname": "TableSetColumnEnabled", + "location": "imgui:770", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetColumnEnabled", + "ret": "void", + "signature": "(int,bool)", + "stname": "" + } + ], + "igTableSetColumnIndex": [ + { + "args": "(int column_n)", + "argsT": [ + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(int column_n)", + "call_args": "(column_n)", + "cimguiname": "igTableSetColumnIndex", + "defaults": {}, + "funcname": "TableSetColumnIndex", + "location": "imgui:743", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetColumnIndex", + "ret": "bool", + "signature": "(int)", + "stname": "" + } + ], + "igTableSetupColumn": [ + { + "args": "(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTableColumnFlags" + }, + { + "name": "init_width_or_weight", + "type": "float" + }, + { + "name": "user_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(const char* label,ImGuiTableColumnFlags flags=0,float init_width_or_weight=0.0f,ImGuiID user_id=0)", + "call_args": "(label,flags,init_width_or_weight,user_id)", + "cimguiname": "igTableSetupColumn", + "defaults": { + "flags": "0", + "init_width_or_weight": "0.0f", + "user_id": "0" + }, + "funcname": "TableSetupColumn", + "location": "imgui:753", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetupColumn", + "ret": "void", + "signature": "(const char*,ImGuiTableColumnFlags,float,ImGuiID)", + "stname": "" + } + ], + "igTableSetupScrollFreeze": [ + { + "args": "(int cols,int rows)", + "argsT": [ + { + "name": "cols", + "type": "int" + }, + { + "name": "rows", + "type": "int" + } + ], + "argsoriginal": "(int cols,int rows)", + "call_args": "(cols,rows)", + "cimguiname": "igTableSetupScrollFreeze", + "defaults": {}, + "funcname": "TableSetupScrollFreeze", + "location": "imgui:754", + "namespace": "ImGui", + "ov_cimguiname": "igTableSetupScrollFreeze", + "ret": "void", + "signature": "(int,int)", + "stname": "" + } + ], + "igText": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igText", + "defaults": {}, + "funcname": "Text", + "isvararg": "...)", + "location": "imgui:484", + "namespace": "ImGui", + "ov_cimguiname": "igText", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igTextColored": [ + { + "args": "(const ImVec4 col,const char* fmt,...)", + "argsT": [ + { + "name": "col", + "type": "const ImVec4" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const ImVec4& col,const char* fmt,...)", + "call_args": "(col,fmt,...)", + "cimguiname": "igTextColored", + "defaults": {}, + "funcname": "TextColored", + "isvararg": "...)", + "location": "imgui:486", + "namespace": "ImGui", + "ov_cimguiname": "igTextColored", + "ret": "void", + "signature": "(const ImVec4,const char*,...)", + "stname": "" + } + ], + "igTextColoredV": [ + { + "args": "(const ImVec4 col,const char* fmt,va_list args)", + "argsT": [ + { + "name": "col", + "type": "const ImVec4" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const ImVec4& col,const char* fmt,va_list args)", + "call_args": "(col,fmt,args)", + "cimguiname": "igTextColoredV", + "defaults": {}, + "funcname": "TextColoredV", + "location": "imgui:487", + "namespace": "ImGui", + "ov_cimguiname": "igTextColoredV", + "ret": "void", + "signature": "(const ImVec4,const char*,va_list)", + "stname": "" + } + ], + "igTextDisabled": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igTextDisabled", + "defaults": {}, + "funcname": "TextDisabled", + "isvararg": "...)", + "location": "imgui:488", + "namespace": "ImGui", + "ov_cimguiname": "igTextDisabled", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igTextDisabledV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igTextDisabledV", + "defaults": {}, + "funcname": "TextDisabledV", + "location": "imgui:489", + "namespace": "ImGui", + "ov_cimguiname": "igTextDisabledV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igTextUnformatted": [ + { + "args": "(const char* text,const char* text_end)", + "argsT": [ + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0))", + "call_args": "(text,text_end)", + "cimguiname": "igTextUnformatted", + "defaults": { + "text_end": "NULL" + }, + "funcname": "TextUnformatted", + "location": "imgui:483", + "namespace": "ImGui", + "ov_cimguiname": "igTextUnformatted", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igTextV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igTextV", + "defaults": {}, + "funcname": "TextV", + "location": "imgui:485", + "namespace": "ImGui", + "ov_cimguiname": "igTextV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igTextWrapped": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igTextWrapped", + "defaults": {}, + "funcname": "TextWrapped", + "isvararg": "...)", + "location": "imgui:490", + "namespace": "ImGui", + "ov_cimguiname": "igTextWrapped", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igTextWrappedV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igTextWrappedV", + "defaults": {}, + "funcname": "TextWrappedV", + "location": "imgui:491", + "namespace": "ImGui", + "ov_cimguiname": "igTextWrappedV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igTreeNode": [ + { + "args": "(const char* label)", + "argsT": [ + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igTreeNode", + "defaults": {}, + "funcname": "TreeNode", + "location": "imgui:602", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNode_Str", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + }, + { + "args": "(const char* str_id,const char* fmt,...)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* str_id,const char* fmt,...)", + "call_args": "(str_id,fmt,...)", + "cimguiname": "igTreeNode", + "defaults": {}, + "funcname": "TreeNode", + "isvararg": "...)", + "location": "imgui:603", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNode_StrStr", + "ret": "bool", + "signature": "(const char*,const char*,...)", + "stname": "" + }, + { + "args": "(const void* ptr_id,const char* fmt,...)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const void* ptr_id,const char* fmt,...)", + "call_args": "(ptr_id,fmt,...)", + "cimguiname": "igTreeNode", + "defaults": {}, + "funcname": "TreeNode", + "isvararg": "...)", + "location": "imgui:604", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNode_Ptr", + "ret": "bool", + "signature": "(const void*,const char*,...)", + "stname": "" + } + ], + "igTreeNodeEx": [ + { + "args": "(const char* label,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiTreeNodeFlags flags=0)", + "call_args": "(label,flags)", + "cimguiname": "igTreeNodeEx", + "defaults": { + "flags": "0" + }, + "funcname": "TreeNodeEx", + "location": "imgui:607", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeEx_Str", + "ret": "bool", + "signature": "(const char*,ImGuiTreeNodeFlags)", + "stname": "" + }, + { + "args": "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...)", + "call_args": "(str_id,flags,fmt,...)", + "cimguiname": "igTreeNodeEx", + "defaults": {}, + "funcname": "TreeNodeEx", + "isvararg": "...)", + "location": "imgui:608", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeEx_StrStr", + "ret": "bool", + "signature": "(const char*,ImGuiTreeNodeFlags,const char*,...)", + "stname": "" + }, + { + "args": "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)", + "call_args": "(ptr_id,flags,fmt,...)", + "cimguiname": "igTreeNodeEx", + "defaults": {}, + "funcname": "TreeNodeEx", + "isvararg": "...)", + "location": "imgui:609", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeEx_Ptr", + "ret": "bool", + "signature": "(const void*,ImGuiTreeNodeFlags,const char*,...)", + "stname": "" + } + ], + "igTreeNodeExV": [ + { + "args": "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)", + "call_args": "(str_id,flags,fmt,args)", + "cimguiname": "igTreeNodeExV", + "defaults": {}, + "funcname": "TreeNodeExV", + "location": "imgui:610", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeExV_Str", + "ret": "bool", + "signature": "(const char*,ImGuiTreeNodeFlags,const char*,va_list)", + "stname": "" + }, + { + "args": "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)", + "call_args": "(ptr_id,flags,fmt,args)", + "cimguiname": "igTreeNodeExV", + "defaults": {}, + "funcname": "TreeNodeExV", + "location": "imgui:611", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeExV_Ptr", + "ret": "bool", + "signature": "(const void*,ImGuiTreeNodeFlags,const char*,va_list)", + "stname": "" + } + ], + "igTreeNodeV": [ + { + "args": "(const char* str_id,const char* fmt,va_list args)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* str_id,const char* fmt,va_list args)", + "call_args": "(str_id,fmt,args)", + "cimguiname": "igTreeNodeV", + "defaults": {}, + "funcname": "TreeNodeV", + "location": "imgui:605", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeV_Str", + "ret": "bool", + "signature": "(const char*,const char*,va_list)", + "stname": "" + }, + { + "args": "(const void* ptr_id,const char* fmt,va_list args)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const void* ptr_id,const char* fmt,va_list args)", + "call_args": "(ptr_id,fmt,args)", + "cimguiname": "igTreeNodeV", + "defaults": {}, + "funcname": "TreeNodeV", + "location": "imgui:606", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeV_Ptr", + "ret": "bool", + "signature": "(const void*,const char*,va_list)", + "stname": "" + } + ], + "igTreePop": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTreePop", + "defaults": {}, + "funcname": "TreePop", + "location": "imgui:614", + "namespace": "ImGui", + "ov_cimguiname": "igTreePop", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igTreePush": [ + { + "args": "(const char* str_id)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id)", + "call_args": "(str_id)", + "cimguiname": "igTreePush", + "defaults": {}, + "funcname": "TreePush", + "location": "imgui:612", + "namespace": "ImGui", + "ov_cimguiname": "igTreePush_Str", + "ret": "void", + "signature": "(const char*)", + "stname": "" + }, + { + "args": "(const void* ptr_id)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + } + ], + "argsoriginal": "(const void* ptr_id)", + "call_args": "(ptr_id)", + "cimguiname": "igTreePush", + "defaults": {}, + "funcname": "TreePush", + "location": "imgui:613", + "namespace": "ImGui", + "ov_cimguiname": "igTreePush_Ptr", + "ret": "void", + "signature": "(const void*)", + "stname": "" + } + ], + "igUnindent": [ + { + "args": "(float indent_w)", + "argsT": [ + { + "name": "indent_w", + "type": "float" + } + ], + "argsoriginal": "(float indent_w=0.0f)", + "call_args": "(indent_w)", + "cimguiname": "igUnindent", + "defaults": { + "indent_w": "0.0f" + }, + "funcname": "Unindent", + "location": "imgui:444", + "namespace": "ImGui", + "ov_cimguiname": "igUnindent", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igVSliderFloat": [ + { + "args": "(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,size,v,v_min,v_max,format,flags)", + "cimguiname": "igVSliderFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "VSliderFloat", + "location": "imgui:568", + "namespace": "ImGui", + "ov_cimguiname": "igVSliderFloat", + "ret": "bool", + "signature": "(const char*,const ImVec2,float*,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igVSliderInt": [ + { + "args": "(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,size,v,v_min,v_max,format,flags)", + "cimguiname": "igVSliderInt", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "VSliderInt", + "location": "imgui:569", + "namespace": "ImGui", + "ov_cimguiname": "igVSliderInt", + "ret": "bool", + "signature": "(const char*,const ImVec2,int*,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igVSliderScalar": [ + { + "args": "(const char* label,const ImVec2 size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,size,data_type,p_data,p_min,p_max,format,flags)", + "cimguiname": "igVSliderScalar", + "defaults": { + "flags": "0", + "format": "NULL" + }, + "funcname": "VSliderScalar", + "location": "imgui:570", + "namespace": "ImGui", + "ov_cimguiname": "igVSliderScalar", + "ret": "bool", + "signature": "(const char*,const ImVec2,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igValue": [ + { + "args": "(const char* prefix,bool b)", + "argsT": [ + { + "name": "prefix", + "type": "const char*" + }, + { + "name": "b", + "type": "bool" + } + ], + "argsoriginal": "(const char* prefix,bool b)", + "call_args": "(prefix,b)", + "cimguiname": "igValue", + "defaults": {}, + "funcname": "Value", + "location": "imgui:646", + "namespace": "ImGui", + "ov_cimguiname": "igValue_Bool", + "ret": "void", + "signature": "(const char*,bool)", + "stname": "" + }, + { + "args": "(const char* prefix,int v)", + "argsT": [ + { + "name": "prefix", + "type": "const char*" + }, + { + "name": "v", + "type": "int" + } + ], + "argsoriginal": "(const char* prefix,int v)", + "call_args": "(prefix,v)", + "cimguiname": "igValue", + "defaults": {}, + "funcname": "Value", + "location": "imgui:647", + "namespace": "ImGui", + "ov_cimguiname": "igValue_Int", + "ret": "void", + "signature": "(const char*,int)", + "stname": "" + }, + { + "args": "(const char* prefix,unsigned int v)", + "argsT": [ + { + "name": "prefix", + "type": "const char*" + }, + { + "name": "v", + "type": "unsigned int" + } + ], + "argsoriginal": "(const char* prefix,unsigned int v)", + "call_args": "(prefix,v)", + "cimguiname": "igValue", + "defaults": {}, + "funcname": "Value", + "location": "imgui:648", + "namespace": "ImGui", + "ov_cimguiname": "igValue_Uint", + "ret": "void", + "signature": "(const char*,unsigned int)", + "stname": "" + }, + { + "args": "(const char* prefix,float v,const char* float_format)", + "argsT": [ + { + "name": "prefix", + "type": "const char*" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "float_format", + "type": "const char*" + } + ], + "argsoriginal": "(const char* prefix,float v,const char* float_format=((void*)0))", + "call_args": "(prefix,v,float_format)", + "cimguiname": "igValue", + "defaults": { + "float_format": "NULL" + }, + "funcname": "Value", + "location": "imgui:649", + "namespace": "ImGui", + "ov_cimguiname": "igValue_Float", + "ret": "void", + "signature": "(const char*,float,const char*)", + "stname": "" + } + ] +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master-freetype/definitions.lua b/imgui-sys/third-party/imgui-master-freetype/definitions.lua new file mode 100644 index 000000000..eb9489dea --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/definitions.lua @@ -0,0 +1,15036 @@ +local defs = {} +defs["ImColor_HSV"] = {} +defs["ImColor_HSV"][1] = {} +defs["ImColor_HSV"][1]["args"] = "(ImColor *pOut,float h,float s,float v,float a)" +defs["ImColor_HSV"][1]["argsT"] = {} +defs["ImColor_HSV"][1]["argsT"][1] = {} +defs["ImColor_HSV"][1]["argsT"][1]["name"] = "pOut" +defs["ImColor_HSV"][1]["argsT"][1]["type"] = "ImColor*" +defs["ImColor_HSV"][1]["argsT"][2] = {} +defs["ImColor_HSV"][1]["argsT"][2]["name"] = "h" +defs["ImColor_HSV"][1]["argsT"][2]["type"] = "float" +defs["ImColor_HSV"][1]["argsT"][3] = {} +defs["ImColor_HSV"][1]["argsT"][3]["name"] = "s" +defs["ImColor_HSV"][1]["argsT"][3]["type"] = "float" +defs["ImColor_HSV"][1]["argsT"][4] = {} +defs["ImColor_HSV"][1]["argsT"][4]["name"] = "v" +defs["ImColor_HSV"][1]["argsT"][4]["type"] = "float" +defs["ImColor_HSV"][1]["argsT"][5] = {} +defs["ImColor_HSV"][1]["argsT"][5]["name"] = "a" +defs["ImColor_HSV"][1]["argsT"][5]["type"] = "float" +defs["ImColor_HSV"][1]["argsoriginal"] = "(float h,float s,float v,float a=1.0f)" +defs["ImColor_HSV"][1]["call_args"] = "(h,s,v,a)" +defs["ImColor_HSV"][1]["cimguiname"] = "ImColor_HSV" +defs["ImColor_HSV"][1]["defaults"] = {} +defs["ImColor_HSV"][1]["defaults"]["a"] = "1.0f" +defs["ImColor_HSV"][1]["funcname"] = "HSV" +defs["ImColor_HSV"][1]["is_static_function"] = true +defs["ImColor_HSV"][1]["location"] = "imgui:2360" +defs["ImColor_HSV"][1]["nonUDT"] = 1 +defs["ImColor_HSV"][1]["ov_cimguiname"] = "ImColor_HSV" +defs["ImColor_HSV"][1]["ret"] = "void" +defs["ImColor_HSV"][1]["signature"] = "(float,float,float,float)" +defs["ImColor_HSV"][1]["stname"] = "ImColor" +defs["ImColor_HSV"]["(float,float,float,float)"] = defs["ImColor_HSV"][1] +defs["ImColor_ImColor"] = {} +defs["ImColor_ImColor"][1] = {} +defs["ImColor_ImColor"][1]["args"] = "()" +defs["ImColor_ImColor"][1]["argsT"] = {} +defs["ImColor_ImColor"][1]["argsoriginal"] = "()" +defs["ImColor_ImColor"][1]["call_args"] = "()" +defs["ImColor_ImColor"][1]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][1]["constructor"] = true +defs["ImColor_ImColor"][1]["defaults"] = {} +defs["ImColor_ImColor"][1]["funcname"] = "ImColor" +defs["ImColor_ImColor"][1]["location"] = "imgui:2350" +defs["ImColor_ImColor"][1]["ov_cimguiname"] = "ImColor_ImColor_Nil" +defs["ImColor_ImColor"][1]["signature"] = "()" +defs["ImColor_ImColor"][1]["stname"] = "ImColor" +defs["ImColor_ImColor"][2] = {} +defs["ImColor_ImColor"][2]["args"] = "(float r,float g,float b,float a)" +defs["ImColor_ImColor"][2]["argsT"] = {} +defs["ImColor_ImColor"][2]["argsT"][1] = {} +defs["ImColor_ImColor"][2]["argsT"][1]["name"] = "r" +defs["ImColor_ImColor"][2]["argsT"][1]["type"] = "float" +defs["ImColor_ImColor"][2]["argsT"][2] = {} +defs["ImColor_ImColor"][2]["argsT"][2]["name"] = "g" +defs["ImColor_ImColor"][2]["argsT"][2]["type"] = "float" +defs["ImColor_ImColor"][2]["argsT"][3] = {} +defs["ImColor_ImColor"][2]["argsT"][3]["name"] = "b" +defs["ImColor_ImColor"][2]["argsT"][3]["type"] = "float" +defs["ImColor_ImColor"][2]["argsT"][4] = {} +defs["ImColor_ImColor"][2]["argsT"][4]["name"] = "a" +defs["ImColor_ImColor"][2]["argsT"][4]["type"] = "float" +defs["ImColor_ImColor"][2]["argsoriginal"] = "(float r,float g,float b,float a=1.0f)" +defs["ImColor_ImColor"][2]["call_args"] = "(r,g,b,a)" +defs["ImColor_ImColor"][2]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][2]["constructor"] = true +defs["ImColor_ImColor"][2]["defaults"] = {} +defs["ImColor_ImColor"][2]["defaults"]["a"] = "1.0f" +defs["ImColor_ImColor"][2]["funcname"] = "ImColor" +defs["ImColor_ImColor"][2]["location"] = "imgui:2351" +defs["ImColor_ImColor"][2]["ov_cimguiname"] = "ImColor_ImColor_Float" +defs["ImColor_ImColor"][2]["signature"] = "(float,float,float,float)" +defs["ImColor_ImColor"][2]["stname"] = "ImColor" +defs["ImColor_ImColor"][3] = {} +defs["ImColor_ImColor"][3]["args"] = "(const ImVec4 col)" +defs["ImColor_ImColor"][3]["argsT"] = {} +defs["ImColor_ImColor"][3]["argsT"][1] = {} +defs["ImColor_ImColor"][3]["argsT"][1]["name"] = "col" +defs["ImColor_ImColor"][3]["argsT"][1]["type"] = "const ImVec4" +defs["ImColor_ImColor"][3]["argsoriginal"] = "(const ImVec4& col)" +defs["ImColor_ImColor"][3]["call_args"] = "(col)" +defs["ImColor_ImColor"][3]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][3]["constructor"] = true +defs["ImColor_ImColor"][3]["defaults"] = {} +defs["ImColor_ImColor"][3]["funcname"] = "ImColor" +defs["ImColor_ImColor"][3]["location"] = "imgui:2352" +defs["ImColor_ImColor"][3]["ov_cimguiname"] = "ImColor_ImColor_Vec4" +defs["ImColor_ImColor"][3]["signature"] = "(const ImVec4)" +defs["ImColor_ImColor"][3]["stname"] = "ImColor" +defs["ImColor_ImColor"][4] = {} +defs["ImColor_ImColor"][4]["args"] = "(int r,int g,int b,int a)" +defs["ImColor_ImColor"][4]["argsT"] = {} +defs["ImColor_ImColor"][4]["argsT"][1] = {} +defs["ImColor_ImColor"][4]["argsT"][1]["name"] = "r" +defs["ImColor_ImColor"][4]["argsT"][1]["type"] = "int" +defs["ImColor_ImColor"][4]["argsT"][2] = {} +defs["ImColor_ImColor"][4]["argsT"][2]["name"] = "g" +defs["ImColor_ImColor"][4]["argsT"][2]["type"] = "int" +defs["ImColor_ImColor"][4]["argsT"][3] = {} +defs["ImColor_ImColor"][4]["argsT"][3]["name"] = "b" +defs["ImColor_ImColor"][4]["argsT"][3]["type"] = "int" +defs["ImColor_ImColor"][4]["argsT"][4] = {} +defs["ImColor_ImColor"][4]["argsT"][4]["name"] = "a" +defs["ImColor_ImColor"][4]["argsT"][4]["type"] = "int" +defs["ImColor_ImColor"][4]["argsoriginal"] = "(int r,int g,int b,int a=255)" +defs["ImColor_ImColor"][4]["call_args"] = "(r,g,b,a)" +defs["ImColor_ImColor"][4]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][4]["constructor"] = true +defs["ImColor_ImColor"][4]["defaults"] = {} +defs["ImColor_ImColor"][4]["defaults"]["a"] = "255" +defs["ImColor_ImColor"][4]["funcname"] = "ImColor" +defs["ImColor_ImColor"][4]["location"] = "imgui:2353" +defs["ImColor_ImColor"][4]["ov_cimguiname"] = "ImColor_ImColor_Int" +defs["ImColor_ImColor"][4]["signature"] = "(int,int,int,int)" +defs["ImColor_ImColor"][4]["stname"] = "ImColor" +defs["ImColor_ImColor"][5] = {} +defs["ImColor_ImColor"][5]["args"] = "(ImU32 rgba)" +defs["ImColor_ImColor"][5]["argsT"] = {} +defs["ImColor_ImColor"][5]["argsT"][1] = {} +defs["ImColor_ImColor"][5]["argsT"][1]["name"] = "rgba" +defs["ImColor_ImColor"][5]["argsT"][1]["type"] = "ImU32" +defs["ImColor_ImColor"][5]["argsoriginal"] = "(ImU32 rgba)" +defs["ImColor_ImColor"][5]["call_args"] = "(rgba)" +defs["ImColor_ImColor"][5]["cimguiname"] = "ImColor_ImColor" +defs["ImColor_ImColor"][5]["constructor"] = true +defs["ImColor_ImColor"][5]["defaults"] = {} +defs["ImColor_ImColor"][5]["funcname"] = "ImColor" +defs["ImColor_ImColor"][5]["location"] = "imgui:2354" +defs["ImColor_ImColor"][5]["ov_cimguiname"] = "ImColor_ImColor_U32" +defs["ImColor_ImColor"][5]["signature"] = "(ImU32)" +defs["ImColor_ImColor"][5]["stname"] = "ImColor" +defs["ImColor_ImColor"]["()"] = defs["ImColor_ImColor"][1] +defs["ImColor_ImColor"]["(ImU32)"] = defs["ImColor_ImColor"][5] +defs["ImColor_ImColor"]["(const ImVec4)"] = defs["ImColor_ImColor"][3] +defs["ImColor_ImColor"]["(float,float,float,float)"] = defs["ImColor_ImColor"][2] +defs["ImColor_ImColor"]["(int,int,int,int)"] = defs["ImColor_ImColor"][4] +defs["ImColor_SetHSV"] = {} +defs["ImColor_SetHSV"][1] = {} +defs["ImColor_SetHSV"][1]["args"] = "(ImColor* self,float h,float s,float v,float a)" +defs["ImColor_SetHSV"][1]["argsT"] = {} +defs["ImColor_SetHSV"][1]["argsT"][1] = {} +defs["ImColor_SetHSV"][1]["argsT"][1]["name"] = "self" +defs["ImColor_SetHSV"][1]["argsT"][1]["type"] = "ImColor*" +defs["ImColor_SetHSV"][1]["argsT"][2] = {} +defs["ImColor_SetHSV"][1]["argsT"][2]["name"] = "h" +defs["ImColor_SetHSV"][1]["argsT"][2]["type"] = "float" +defs["ImColor_SetHSV"][1]["argsT"][3] = {} +defs["ImColor_SetHSV"][1]["argsT"][3]["name"] = "s" +defs["ImColor_SetHSV"][1]["argsT"][3]["type"] = "float" +defs["ImColor_SetHSV"][1]["argsT"][4] = {} +defs["ImColor_SetHSV"][1]["argsT"][4]["name"] = "v" +defs["ImColor_SetHSV"][1]["argsT"][4]["type"] = "float" +defs["ImColor_SetHSV"][1]["argsT"][5] = {} +defs["ImColor_SetHSV"][1]["argsT"][5]["name"] = "a" +defs["ImColor_SetHSV"][1]["argsT"][5]["type"] = "float" +defs["ImColor_SetHSV"][1]["argsoriginal"] = "(float h,float s,float v,float a=1.0f)" +defs["ImColor_SetHSV"][1]["call_args"] = "(h,s,v,a)" +defs["ImColor_SetHSV"][1]["cimguiname"] = "ImColor_SetHSV" +defs["ImColor_SetHSV"][1]["defaults"] = {} +defs["ImColor_SetHSV"][1]["defaults"]["a"] = "1.0f" +defs["ImColor_SetHSV"][1]["funcname"] = "SetHSV" +defs["ImColor_SetHSV"][1]["location"] = "imgui:2359" +defs["ImColor_SetHSV"][1]["ov_cimguiname"] = "ImColor_SetHSV" +defs["ImColor_SetHSV"][1]["ret"] = "void" +defs["ImColor_SetHSV"][1]["signature"] = "(float,float,float,float)" +defs["ImColor_SetHSV"][1]["stname"] = "ImColor" +defs["ImColor_SetHSV"]["(float,float,float,float)"] = defs["ImColor_SetHSV"][1] +defs["ImColor_destroy"] = {} +defs["ImColor_destroy"][1] = {} +defs["ImColor_destroy"][1]["args"] = "(ImColor* self)" +defs["ImColor_destroy"][1]["argsT"] = {} +defs["ImColor_destroy"][1]["argsT"][1] = {} +defs["ImColor_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImColor_destroy"][1]["argsT"][1]["type"] = "ImColor*" +defs["ImColor_destroy"][1]["call_args"] = "(self)" +defs["ImColor_destroy"][1]["cimguiname"] = "ImColor_destroy" +defs["ImColor_destroy"][1]["defaults"] = {} +defs["ImColor_destroy"][1]["destructor"] = true +defs["ImColor_destroy"][1]["ov_cimguiname"] = "ImColor_destroy" +defs["ImColor_destroy"][1]["ret"] = "void" +defs["ImColor_destroy"][1]["signature"] = "(ImColor*)" +defs["ImColor_destroy"][1]["stname"] = "ImColor" +defs["ImColor_destroy"]["(ImColor*)"] = defs["ImColor_destroy"][1] +defs["ImDrawCmd_GetTexID"] = {} +defs["ImDrawCmd_GetTexID"][1] = {} +defs["ImDrawCmd_GetTexID"][1]["args"] = "(ImDrawCmd* self)" +defs["ImDrawCmd_GetTexID"][1]["argsT"] = {} +defs["ImDrawCmd_GetTexID"][1]["argsT"][1] = {} +defs["ImDrawCmd_GetTexID"][1]["argsT"][1]["name"] = "self" +defs["ImDrawCmd_GetTexID"][1]["argsT"][1]["type"] = "ImDrawCmd*" +defs["ImDrawCmd_GetTexID"][1]["argsoriginal"] = "()" +defs["ImDrawCmd_GetTexID"][1]["call_args"] = "()" +defs["ImDrawCmd_GetTexID"][1]["cimguiname"] = "ImDrawCmd_GetTexID" +defs["ImDrawCmd_GetTexID"][1]["defaults"] = {} +defs["ImDrawCmd_GetTexID"][1]["funcname"] = "GetTexID" +defs["ImDrawCmd_GetTexID"][1]["location"] = "imgui:2408" +defs["ImDrawCmd_GetTexID"][1]["ov_cimguiname"] = "ImDrawCmd_GetTexID" +defs["ImDrawCmd_GetTexID"][1]["ret"] = "ImTextureID" +defs["ImDrawCmd_GetTexID"][1]["signature"] = "()const" +defs["ImDrawCmd_GetTexID"][1]["stname"] = "ImDrawCmd" +defs["ImDrawCmd_GetTexID"]["()const"] = defs["ImDrawCmd_GetTexID"][1] +defs["ImDrawCmd_ImDrawCmd"] = {} +defs["ImDrawCmd_ImDrawCmd"][1] = {} +defs["ImDrawCmd_ImDrawCmd"][1]["args"] = "()" +defs["ImDrawCmd_ImDrawCmd"][1]["argsT"] = {} +defs["ImDrawCmd_ImDrawCmd"][1]["argsoriginal"] = "()" +defs["ImDrawCmd_ImDrawCmd"][1]["call_args"] = "()" +defs["ImDrawCmd_ImDrawCmd"][1]["cimguiname"] = "ImDrawCmd_ImDrawCmd" +defs["ImDrawCmd_ImDrawCmd"][1]["constructor"] = true +defs["ImDrawCmd_ImDrawCmd"][1]["defaults"] = {} +defs["ImDrawCmd_ImDrawCmd"][1]["funcname"] = "ImDrawCmd" +defs["ImDrawCmd_ImDrawCmd"][1]["location"] = "imgui:2405" +defs["ImDrawCmd_ImDrawCmd"][1]["ov_cimguiname"] = "ImDrawCmd_ImDrawCmd" +defs["ImDrawCmd_ImDrawCmd"][1]["signature"] = "()" +defs["ImDrawCmd_ImDrawCmd"][1]["stname"] = "ImDrawCmd" +defs["ImDrawCmd_ImDrawCmd"]["()"] = defs["ImDrawCmd_ImDrawCmd"][1] +defs["ImDrawCmd_destroy"] = {} +defs["ImDrawCmd_destroy"][1] = {} +defs["ImDrawCmd_destroy"][1]["args"] = "(ImDrawCmd* self)" +defs["ImDrawCmd_destroy"][1]["argsT"] = {} +defs["ImDrawCmd_destroy"][1]["argsT"][1] = {} +defs["ImDrawCmd_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImDrawCmd_destroy"][1]["argsT"][1]["type"] = "ImDrawCmd*" +defs["ImDrawCmd_destroy"][1]["call_args"] = "(self)" +defs["ImDrawCmd_destroy"][1]["cimguiname"] = "ImDrawCmd_destroy" +defs["ImDrawCmd_destroy"][1]["defaults"] = {} +defs["ImDrawCmd_destroy"][1]["destructor"] = true +defs["ImDrawCmd_destroy"][1]["ov_cimguiname"] = "ImDrawCmd_destroy" +defs["ImDrawCmd_destroy"][1]["ret"] = "void" +defs["ImDrawCmd_destroy"][1]["signature"] = "(ImDrawCmd*)" +defs["ImDrawCmd_destroy"][1]["stname"] = "ImDrawCmd" +defs["ImDrawCmd_destroy"]["(ImDrawCmd*)"] = defs["ImDrawCmd_destroy"][1] +defs["ImDrawData_Clear"] = {} +defs["ImDrawData_Clear"][1] = {} +defs["ImDrawData_Clear"][1]["args"] = "(ImDrawData* self)" +defs["ImDrawData_Clear"][1]["argsT"] = {} +defs["ImDrawData_Clear"][1]["argsT"][1] = {} +defs["ImDrawData_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImDrawData_Clear"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImDrawData_Clear"][1]["argsoriginal"] = "()" +defs["ImDrawData_Clear"][1]["call_args"] = "()" +defs["ImDrawData_Clear"][1]["cimguiname"] = "ImDrawData_Clear" +defs["ImDrawData_Clear"][1]["defaults"] = {} +defs["ImDrawData_Clear"][1]["funcname"] = "Clear" +defs["ImDrawData_Clear"][1]["location"] = "imgui:2641" +defs["ImDrawData_Clear"][1]["ov_cimguiname"] = "ImDrawData_Clear" +defs["ImDrawData_Clear"][1]["ret"] = "void" +defs["ImDrawData_Clear"][1]["signature"] = "()" +defs["ImDrawData_Clear"][1]["stname"] = "ImDrawData" +defs["ImDrawData_Clear"]["()"] = defs["ImDrawData_Clear"][1] +defs["ImDrawData_DeIndexAllBuffers"] = {} +defs["ImDrawData_DeIndexAllBuffers"][1] = {} +defs["ImDrawData_DeIndexAllBuffers"][1]["args"] = "(ImDrawData* self)" +defs["ImDrawData_DeIndexAllBuffers"][1]["argsT"] = {} +defs["ImDrawData_DeIndexAllBuffers"][1]["argsT"][1] = {} +defs["ImDrawData_DeIndexAllBuffers"][1]["argsT"][1]["name"] = "self" +defs["ImDrawData_DeIndexAllBuffers"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImDrawData_DeIndexAllBuffers"][1]["argsoriginal"] = "()" +defs["ImDrawData_DeIndexAllBuffers"][1]["call_args"] = "()" +defs["ImDrawData_DeIndexAllBuffers"][1]["cimguiname"] = "ImDrawData_DeIndexAllBuffers" +defs["ImDrawData_DeIndexAllBuffers"][1]["defaults"] = {} +defs["ImDrawData_DeIndexAllBuffers"][1]["funcname"] = "DeIndexAllBuffers" +defs["ImDrawData_DeIndexAllBuffers"][1]["location"] = "imgui:2642" +defs["ImDrawData_DeIndexAllBuffers"][1]["ov_cimguiname"] = "ImDrawData_DeIndexAllBuffers" +defs["ImDrawData_DeIndexAllBuffers"][1]["ret"] = "void" +defs["ImDrawData_DeIndexAllBuffers"][1]["signature"] = "()" +defs["ImDrawData_DeIndexAllBuffers"][1]["stname"] = "ImDrawData" +defs["ImDrawData_DeIndexAllBuffers"]["()"] = defs["ImDrawData_DeIndexAllBuffers"][1] +defs["ImDrawData_ImDrawData"] = {} +defs["ImDrawData_ImDrawData"][1] = {} +defs["ImDrawData_ImDrawData"][1]["args"] = "()" +defs["ImDrawData_ImDrawData"][1]["argsT"] = {} +defs["ImDrawData_ImDrawData"][1]["argsoriginal"] = "()" +defs["ImDrawData_ImDrawData"][1]["call_args"] = "()" +defs["ImDrawData_ImDrawData"][1]["cimguiname"] = "ImDrawData_ImDrawData" +defs["ImDrawData_ImDrawData"][1]["constructor"] = true +defs["ImDrawData_ImDrawData"][1]["defaults"] = {} +defs["ImDrawData_ImDrawData"][1]["funcname"] = "ImDrawData" +defs["ImDrawData_ImDrawData"][1]["location"] = "imgui:2640" +defs["ImDrawData_ImDrawData"][1]["ov_cimguiname"] = "ImDrawData_ImDrawData" +defs["ImDrawData_ImDrawData"][1]["signature"] = "()" +defs["ImDrawData_ImDrawData"][1]["stname"] = "ImDrawData" +defs["ImDrawData_ImDrawData"]["()"] = defs["ImDrawData_ImDrawData"][1] +defs["ImDrawData_ScaleClipRects"] = {} +defs["ImDrawData_ScaleClipRects"][1] = {} +defs["ImDrawData_ScaleClipRects"][1]["args"] = "(ImDrawData* self,const ImVec2 fb_scale)" +defs["ImDrawData_ScaleClipRects"][1]["argsT"] = {} +defs["ImDrawData_ScaleClipRects"][1]["argsT"][1] = {} +defs["ImDrawData_ScaleClipRects"][1]["argsT"][1]["name"] = "self" +defs["ImDrawData_ScaleClipRects"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImDrawData_ScaleClipRects"][1]["argsT"][2] = {} +defs["ImDrawData_ScaleClipRects"][1]["argsT"][2]["name"] = "fb_scale" +defs["ImDrawData_ScaleClipRects"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawData_ScaleClipRects"][1]["argsoriginal"] = "(const ImVec2& fb_scale)" +defs["ImDrawData_ScaleClipRects"][1]["call_args"] = "(fb_scale)" +defs["ImDrawData_ScaleClipRects"][1]["cimguiname"] = "ImDrawData_ScaleClipRects" +defs["ImDrawData_ScaleClipRects"][1]["defaults"] = {} +defs["ImDrawData_ScaleClipRects"][1]["funcname"] = "ScaleClipRects" +defs["ImDrawData_ScaleClipRects"][1]["location"] = "imgui:2643" +defs["ImDrawData_ScaleClipRects"][1]["ov_cimguiname"] = "ImDrawData_ScaleClipRects" +defs["ImDrawData_ScaleClipRects"][1]["ret"] = "void" +defs["ImDrawData_ScaleClipRects"][1]["signature"] = "(const ImVec2)" +defs["ImDrawData_ScaleClipRects"][1]["stname"] = "ImDrawData" +defs["ImDrawData_ScaleClipRects"]["(const ImVec2)"] = defs["ImDrawData_ScaleClipRects"][1] +defs["ImDrawData_destroy"] = {} +defs["ImDrawData_destroy"][1] = {} +defs["ImDrawData_destroy"][1]["args"] = "(ImDrawData* self)" +defs["ImDrawData_destroy"][1]["argsT"] = {} +defs["ImDrawData_destroy"][1]["argsT"][1] = {} +defs["ImDrawData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImDrawData_destroy"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImDrawData_destroy"][1]["call_args"] = "(self)" +defs["ImDrawData_destroy"][1]["cimguiname"] = "ImDrawData_destroy" +defs["ImDrawData_destroy"][1]["defaults"] = {} +defs["ImDrawData_destroy"][1]["destructor"] = true +defs["ImDrawData_destroy"][1]["ov_cimguiname"] = "ImDrawData_destroy" +defs["ImDrawData_destroy"][1]["ret"] = "void" +defs["ImDrawData_destroy"][1]["signature"] = "(ImDrawData*)" +defs["ImDrawData_destroy"][1]["stname"] = "ImDrawData" +defs["ImDrawData_destroy"]["(ImDrawData*)"] = defs["ImDrawData_destroy"][1] +defs["ImDrawListSplitter_Clear"] = {} +defs["ImDrawListSplitter_Clear"][1] = {} +defs["ImDrawListSplitter_Clear"][1]["args"] = "(ImDrawListSplitter* self)" +defs["ImDrawListSplitter_Clear"][1]["argsT"] = {} +defs["ImDrawListSplitter_Clear"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_Clear"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_Clear"][1]["argsoriginal"] = "()" +defs["ImDrawListSplitter_Clear"][1]["call_args"] = "()" +defs["ImDrawListSplitter_Clear"][1]["cimguiname"] = "ImDrawListSplitter_Clear" +defs["ImDrawListSplitter_Clear"][1]["defaults"] = {} +defs["ImDrawListSplitter_Clear"][1]["funcname"] = "Clear" +defs["ImDrawListSplitter_Clear"][1]["location"] = "imgui:2453" +defs["ImDrawListSplitter_Clear"][1]["ov_cimguiname"] = "ImDrawListSplitter_Clear" +defs["ImDrawListSplitter_Clear"][1]["ret"] = "void" +defs["ImDrawListSplitter_Clear"][1]["signature"] = "()" +defs["ImDrawListSplitter_Clear"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_Clear"]["()"] = defs["ImDrawListSplitter_Clear"][1] +defs["ImDrawListSplitter_ClearFreeMemory"] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1]["args"] = "(ImDrawListSplitter* self)" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsT"] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["argsoriginal"] = "()" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["call_args"] = "()" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["cimguiname"] = "ImDrawListSplitter_ClearFreeMemory" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["defaults"] = {} +defs["ImDrawListSplitter_ClearFreeMemory"][1]["funcname"] = "ClearFreeMemory" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["location"] = "imgui:2454" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawListSplitter_ClearFreeMemory" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["ret"] = "void" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["signature"] = "()" +defs["ImDrawListSplitter_ClearFreeMemory"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_ClearFreeMemory"]["()"] = defs["ImDrawListSplitter_ClearFreeMemory"][1] +defs["ImDrawListSplitter_ImDrawListSplitter"] = {} +defs["ImDrawListSplitter_ImDrawListSplitter"][1] = {} +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["args"] = "()" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["argsT"] = {} +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["argsoriginal"] = "()" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["call_args"] = "()" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["cimguiname"] = "ImDrawListSplitter_ImDrawListSplitter" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["constructor"] = true +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["defaults"] = {} +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["funcname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["location"] = "imgui:2451" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["ov_cimguiname"] = "ImDrawListSplitter_ImDrawListSplitter" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["signature"] = "()" +defs["ImDrawListSplitter_ImDrawListSplitter"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_ImDrawListSplitter"]["()"] = defs["ImDrawListSplitter_ImDrawListSplitter"][1] +defs["ImDrawListSplitter_Merge"] = {} +defs["ImDrawListSplitter_Merge"][1] = {} +defs["ImDrawListSplitter_Merge"][1]["args"] = "(ImDrawListSplitter* self,ImDrawList* draw_list)" +defs["ImDrawListSplitter_Merge"][1]["argsT"] = {} +defs["ImDrawListSplitter_Merge"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_Merge"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_Merge"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_Merge"][1]["argsT"][2] = {} +defs["ImDrawListSplitter_Merge"][1]["argsT"][2]["name"] = "draw_list" +defs["ImDrawListSplitter_Merge"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawListSplitter_Merge"][1]["argsoriginal"] = "(ImDrawList* draw_list)" +defs["ImDrawListSplitter_Merge"][1]["call_args"] = "(draw_list)" +defs["ImDrawListSplitter_Merge"][1]["cimguiname"] = "ImDrawListSplitter_Merge" +defs["ImDrawListSplitter_Merge"][1]["defaults"] = {} +defs["ImDrawListSplitter_Merge"][1]["funcname"] = "Merge" +defs["ImDrawListSplitter_Merge"][1]["location"] = "imgui:2456" +defs["ImDrawListSplitter_Merge"][1]["ov_cimguiname"] = "ImDrawListSplitter_Merge" +defs["ImDrawListSplitter_Merge"][1]["ret"] = "void" +defs["ImDrawListSplitter_Merge"][1]["signature"] = "(ImDrawList*)" +defs["ImDrawListSplitter_Merge"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_Merge"]["(ImDrawList*)"] = defs["ImDrawListSplitter_Merge"][1] +defs["ImDrawListSplitter_SetCurrentChannel"] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["args"] = "(ImDrawListSplitter* self,ImDrawList* draw_list,int channel_idx)" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][2] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][2]["name"] = "draw_list" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][3] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][3]["name"] = "channel_idx" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsT"][3]["type"] = "int" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["argsoriginal"] = "(ImDrawList* draw_list,int channel_idx)" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["call_args"] = "(draw_list,channel_idx)" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["cimguiname"] = "ImDrawListSplitter_SetCurrentChannel" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["defaults"] = {} +defs["ImDrawListSplitter_SetCurrentChannel"][1]["funcname"] = "SetCurrentChannel" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["location"] = "imgui:2457" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["ov_cimguiname"] = "ImDrawListSplitter_SetCurrentChannel" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["ret"] = "void" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["signature"] = "(ImDrawList*,int)" +defs["ImDrawListSplitter_SetCurrentChannel"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_SetCurrentChannel"]["(ImDrawList*,int)"] = defs["ImDrawListSplitter_SetCurrentChannel"][1] +defs["ImDrawListSplitter_Split"] = {} +defs["ImDrawListSplitter_Split"][1] = {} +defs["ImDrawListSplitter_Split"][1]["args"] = "(ImDrawListSplitter* self,ImDrawList* draw_list,int count)" +defs["ImDrawListSplitter_Split"][1]["argsT"] = {} +defs["ImDrawListSplitter_Split"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_Split"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_Split"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_Split"][1]["argsT"][2] = {} +defs["ImDrawListSplitter_Split"][1]["argsT"][2]["name"] = "draw_list" +defs["ImDrawListSplitter_Split"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawListSplitter_Split"][1]["argsT"][3] = {} +defs["ImDrawListSplitter_Split"][1]["argsT"][3]["name"] = "count" +defs["ImDrawListSplitter_Split"][1]["argsT"][3]["type"] = "int" +defs["ImDrawListSplitter_Split"][1]["argsoriginal"] = "(ImDrawList* draw_list,int count)" +defs["ImDrawListSplitter_Split"][1]["call_args"] = "(draw_list,count)" +defs["ImDrawListSplitter_Split"][1]["cimguiname"] = "ImDrawListSplitter_Split" +defs["ImDrawListSplitter_Split"][1]["defaults"] = {} +defs["ImDrawListSplitter_Split"][1]["funcname"] = "Split" +defs["ImDrawListSplitter_Split"][1]["location"] = "imgui:2455" +defs["ImDrawListSplitter_Split"][1]["ov_cimguiname"] = "ImDrawListSplitter_Split" +defs["ImDrawListSplitter_Split"][1]["ret"] = "void" +defs["ImDrawListSplitter_Split"][1]["signature"] = "(ImDrawList*,int)" +defs["ImDrawListSplitter_Split"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_Split"]["(ImDrawList*,int)"] = defs["ImDrawListSplitter_Split"][1] +defs["ImDrawListSplitter_destroy"] = {} +defs["ImDrawListSplitter_destroy"][1] = {} +defs["ImDrawListSplitter_destroy"][1]["args"] = "(ImDrawListSplitter* self)" +defs["ImDrawListSplitter_destroy"][1]["argsT"] = {} +defs["ImDrawListSplitter_destroy"][1]["argsT"][1] = {} +defs["ImDrawListSplitter_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSplitter_destroy"][1]["argsT"][1]["type"] = "ImDrawListSplitter*" +defs["ImDrawListSplitter_destroy"][1]["call_args"] = "(self)" +defs["ImDrawListSplitter_destroy"][1]["cimguiname"] = "ImDrawListSplitter_destroy" +defs["ImDrawListSplitter_destroy"][1]["defaults"] = {} +defs["ImDrawListSplitter_destroy"][1]["destructor"] = true +defs["ImDrawListSplitter_destroy"][1]["location"] = "imgui:2452" +defs["ImDrawListSplitter_destroy"][1]["ov_cimguiname"] = "ImDrawListSplitter_destroy" +defs["ImDrawListSplitter_destroy"][1]["realdestructor"] = true +defs["ImDrawListSplitter_destroy"][1]["ret"] = "void" +defs["ImDrawListSplitter_destroy"][1]["signature"] = "(ImDrawListSplitter*)" +defs["ImDrawListSplitter_destroy"][1]["stname"] = "ImDrawListSplitter" +defs["ImDrawListSplitter_destroy"]["(ImDrawListSplitter*)"] = defs["ImDrawListSplitter_destroy"][1] +defs["ImDrawList_AddBezierCubic"] = {} +defs["ImDrawList_AddBezierCubic"][1] = {} +defs["ImDrawList_AddBezierCubic"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments)" +defs["ImDrawList_AddBezierCubic"][1]["argsT"] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][1] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][2] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][3] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][4] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][5] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][5]["name"] = "p4" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][6] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][6]["name"] = "col" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][7] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][7]["name"] = "thickness" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][7]["type"] = "float" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][8] = {} +defs["ImDrawList_AddBezierCubic"][1]["argsT"][8]["name"] = "num_segments" +defs["ImDrawList_AddBezierCubic"][1]["argsT"][8]["type"] = "int" +defs["ImDrawList_AddBezierCubic"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness,int num_segments=0)" +defs["ImDrawList_AddBezierCubic"][1]["call_args"] = "(p1,p2,p3,p4,col,thickness,num_segments)" +defs["ImDrawList_AddBezierCubic"][1]["cimguiname"] = "ImDrawList_AddBezierCubic" +defs["ImDrawList_AddBezierCubic"][1]["defaults"] = {} +defs["ImDrawList_AddBezierCubic"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_AddBezierCubic"][1]["funcname"] = "AddBezierCubic" +defs["ImDrawList_AddBezierCubic"][1]["location"] = "imgui:2556" +defs["ImDrawList_AddBezierCubic"][1]["ov_cimguiname"] = "ImDrawList_AddBezierCubic" +defs["ImDrawList_AddBezierCubic"][1]["ret"] = "void" +defs["ImDrawList_AddBezierCubic"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)" +defs["ImDrawList_AddBezierCubic"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddBezierCubic"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)"] = defs["ImDrawList_AddBezierCubic"][1] +defs["ImDrawList_AddBezierQuadratic"] = {} +defs["ImDrawList_AddBezierQuadratic"][1] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments)" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][1] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][2] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][3] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][4] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][5] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][5]["name"] = "col" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][6] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][7] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][7]["name"] = "num_segments" +defs["ImDrawList_AddBezierQuadratic"][1]["argsT"][7]["type"] = "int" +defs["ImDrawList_AddBezierQuadratic"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness,int num_segments=0)" +defs["ImDrawList_AddBezierQuadratic"][1]["call_args"] = "(p1,p2,p3,col,thickness,num_segments)" +defs["ImDrawList_AddBezierQuadratic"][1]["cimguiname"] = "ImDrawList_AddBezierQuadratic" +defs["ImDrawList_AddBezierQuadratic"][1]["defaults"] = {} +defs["ImDrawList_AddBezierQuadratic"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_AddBezierQuadratic"][1]["funcname"] = "AddBezierQuadratic" +defs["ImDrawList_AddBezierQuadratic"][1]["location"] = "imgui:2557" +defs["ImDrawList_AddBezierQuadratic"][1]["ov_cimguiname"] = "ImDrawList_AddBezierQuadratic" +defs["ImDrawList_AddBezierQuadratic"][1]["ret"] = "void" +defs["ImDrawList_AddBezierQuadratic"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)" +defs["ImDrawList_AddBezierQuadratic"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddBezierQuadratic"]["(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)"] = defs["ImDrawList_AddBezierQuadratic"][1] +defs["ImDrawList_AddCallback"] = {} +defs["ImDrawList_AddCallback"][1] = {} +defs["ImDrawList_AddCallback"][1]["args"] = "(ImDrawList* self,ImDrawCallback callback,void* callback_data)" +defs["ImDrawList_AddCallback"][1]["argsT"] = {} +defs["ImDrawList_AddCallback"][1]["argsT"][1] = {} +defs["ImDrawList_AddCallback"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddCallback"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddCallback"][1]["argsT"][2] = {} +defs["ImDrawList_AddCallback"][1]["argsT"][2]["name"] = "callback" +defs["ImDrawList_AddCallback"][1]["argsT"][2]["type"] = "ImDrawCallback" +defs["ImDrawList_AddCallback"][1]["argsT"][3] = {} +defs["ImDrawList_AddCallback"][1]["argsT"][3]["name"] = "callback_data" +defs["ImDrawList_AddCallback"][1]["argsT"][3]["type"] = "void*" +defs["ImDrawList_AddCallback"][1]["argsoriginal"] = "(ImDrawCallback callback,void* callback_data)" +defs["ImDrawList_AddCallback"][1]["call_args"] = "(callback,callback_data)" +defs["ImDrawList_AddCallback"][1]["cimguiname"] = "ImDrawList_AddCallback" +defs["ImDrawList_AddCallback"][1]["defaults"] = {} +defs["ImDrawList_AddCallback"][1]["funcname"] = "AddCallback" +defs["ImDrawList_AddCallback"][1]["location"] = "imgui:2581" +defs["ImDrawList_AddCallback"][1]["ov_cimguiname"] = "ImDrawList_AddCallback" +defs["ImDrawList_AddCallback"][1]["ret"] = "void" +defs["ImDrawList_AddCallback"][1]["signature"] = "(ImDrawCallback,void*)" +defs["ImDrawList_AddCallback"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddCallback"]["(ImDrawCallback,void*)"] = defs["ImDrawList_AddCallback"][1] +defs["ImDrawList_AddCircle"] = {} +defs["ImDrawList_AddCircle"][1] = {} +defs["ImDrawList_AddCircle"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)" +defs["ImDrawList_AddCircle"][1]["argsT"] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][1] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddCircle"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddCircle"][1]["argsT"][2] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_AddCircle"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddCircle"][1]["argsT"][3] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_AddCircle"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddCircle"][1]["argsT"][4] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddCircle"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddCircle"][1]["argsT"][5] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_AddCircle"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_AddCircle"][1]["argsT"][6] = {} +defs["ImDrawList_AddCircle"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddCircle"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddCircle"][1]["argsoriginal"] = "(const ImVec2& center,float radius,ImU32 col,int num_segments=0,float thickness=1.0f)" +defs["ImDrawList_AddCircle"][1]["call_args"] = "(center,radius,col,num_segments,thickness)" +defs["ImDrawList_AddCircle"][1]["cimguiname"] = "ImDrawList_AddCircle" +defs["ImDrawList_AddCircle"][1]["defaults"] = {} +defs["ImDrawList_AddCircle"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_AddCircle"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddCircle"][1]["funcname"] = "AddCircle" +defs["ImDrawList_AddCircle"][1]["location"] = "imgui:2548" +defs["ImDrawList_AddCircle"][1]["ov_cimguiname"] = "ImDrawList_AddCircle" +defs["ImDrawList_AddCircle"][1]["ret"] = "void" +defs["ImDrawList_AddCircle"][1]["signature"] = "(const ImVec2,float,ImU32,int,float)" +defs["ImDrawList_AddCircle"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddCircle"]["(const ImVec2,float,ImU32,int,float)"] = defs["ImDrawList_AddCircle"][1] +defs["ImDrawList_AddCircleFilled"] = {} +defs["ImDrawList_AddCircleFilled"][1] = {} +defs["ImDrawList_AddCircleFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)" +defs["ImDrawList_AddCircleFilled"][1]["argsT"] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddCircleFilled"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_AddCircleFilled"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_AddCircleFilled"][1]["argsoriginal"] = "(const ImVec2& center,float radius,ImU32 col,int num_segments=0)" +defs["ImDrawList_AddCircleFilled"][1]["call_args"] = "(center,radius,col,num_segments)" +defs["ImDrawList_AddCircleFilled"][1]["cimguiname"] = "ImDrawList_AddCircleFilled" +defs["ImDrawList_AddCircleFilled"][1]["defaults"] = {} +defs["ImDrawList_AddCircleFilled"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_AddCircleFilled"][1]["funcname"] = "AddCircleFilled" +defs["ImDrawList_AddCircleFilled"][1]["location"] = "imgui:2549" +defs["ImDrawList_AddCircleFilled"][1]["ov_cimguiname"] = "ImDrawList_AddCircleFilled" +defs["ImDrawList_AddCircleFilled"][1]["ret"] = "void" +defs["ImDrawList_AddCircleFilled"][1]["signature"] = "(const ImVec2,float,ImU32,int)" +defs["ImDrawList_AddCircleFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddCircleFilled"]["(const ImVec2,float,ImU32,int)"] = defs["ImDrawList_AddCircleFilled"][1] +defs["ImDrawList_AddConvexPolyFilled"] = {} +defs["ImDrawList_AddConvexPolyFilled"][1] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["args"] = "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col)" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][2]["name"] = "points" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][2]["type"] = "const ImVec2*" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][3]["name"] = "num_points" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][3]["type"] = "int" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddConvexPolyFilled"][1]["argsoriginal"] = "(const ImVec2* points,int num_points,ImU32 col)" +defs["ImDrawList_AddConvexPolyFilled"][1]["call_args"] = "(points,num_points,col)" +defs["ImDrawList_AddConvexPolyFilled"][1]["cimguiname"] = "ImDrawList_AddConvexPolyFilled" +defs["ImDrawList_AddConvexPolyFilled"][1]["defaults"] = {} +defs["ImDrawList_AddConvexPolyFilled"][1]["funcname"] = "AddConvexPolyFilled" +defs["ImDrawList_AddConvexPolyFilled"][1]["location"] = "imgui:2555" +defs["ImDrawList_AddConvexPolyFilled"][1]["ov_cimguiname"] = "ImDrawList_AddConvexPolyFilled" +defs["ImDrawList_AddConvexPolyFilled"][1]["ret"] = "void" +defs["ImDrawList_AddConvexPolyFilled"][1]["signature"] = "(const ImVec2*,int,ImU32)" +defs["ImDrawList_AddConvexPolyFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddConvexPolyFilled"]["(const ImVec2*,int,ImU32)"] = defs["ImDrawList_AddConvexPolyFilled"][1] +defs["ImDrawList_AddDrawCmd"] = {} +defs["ImDrawList_AddDrawCmd"][1] = {} +defs["ImDrawList_AddDrawCmd"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_AddDrawCmd"][1]["argsT"] = {} +defs["ImDrawList_AddDrawCmd"][1]["argsT"][1] = {} +defs["ImDrawList_AddDrawCmd"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddDrawCmd"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddDrawCmd"][1]["argsoriginal"] = "()" +defs["ImDrawList_AddDrawCmd"][1]["call_args"] = "()" +defs["ImDrawList_AddDrawCmd"][1]["cimguiname"] = "ImDrawList_AddDrawCmd" +defs["ImDrawList_AddDrawCmd"][1]["defaults"] = {} +defs["ImDrawList_AddDrawCmd"][1]["funcname"] = "AddDrawCmd" +defs["ImDrawList_AddDrawCmd"][1]["location"] = "imgui:2582" +defs["ImDrawList_AddDrawCmd"][1]["ov_cimguiname"] = "ImDrawList_AddDrawCmd" +defs["ImDrawList_AddDrawCmd"][1]["ret"] = "void" +defs["ImDrawList_AddDrawCmd"][1]["signature"] = "()" +defs["ImDrawList_AddDrawCmd"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddDrawCmd"]["()"] = defs["ImDrawList_AddDrawCmd"][1] +defs["ImDrawList_AddImage"] = {} +defs["ImDrawList_AddImage"][1] = {} +defs["ImDrawList_AddImage"][1]["args"] = "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col)" +defs["ImDrawList_AddImage"][1]["argsT"] = {} +defs["ImDrawList_AddImage"][1]["argsT"][1] = {} +defs["ImDrawList_AddImage"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddImage"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddImage"][1]["argsT"][2] = {} +defs["ImDrawList_AddImage"][1]["argsT"][2]["name"] = "user_texture_id" +defs["ImDrawList_AddImage"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImDrawList_AddImage"][1]["argsT"][3] = {} +defs["ImDrawList_AddImage"][1]["argsT"][3]["name"] = "p_min" +defs["ImDrawList_AddImage"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddImage"][1]["argsT"][4] = {} +defs["ImDrawList_AddImage"][1]["argsT"][4]["name"] = "p_max" +defs["ImDrawList_AddImage"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddImage"][1]["argsT"][5] = {} +defs["ImDrawList_AddImage"][1]["argsT"][5]["name"] = "uv_min" +defs["ImDrawList_AddImage"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddImage"][1]["argsT"][6] = {} +defs["ImDrawList_AddImage"][1]["argsT"][6]["name"] = "uv_max" +defs["ImDrawList_AddImage"][1]["argsT"][6]["type"] = "const ImVec2" +defs["ImDrawList_AddImage"][1]["argsT"][7] = {} +defs["ImDrawList_AddImage"][1]["argsT"][7]["name"] = "col" +defs["ImDrawList_AddImage"][1]["argsT"][7]["type"] = "ImU32" +defs["ImDrawList_AddImage"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min=ImVec2(0,0),const ImVec2& uv_max=ImVec2(1,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))" +defs["ImDrawList_AddImage"][1]["call_args"] = "(user_texture_id,p_min,p_max,uv_min,uv_max,col)" +defs["ImDrawList_AddImage"][1]["cimguiname"] = "ImDrawList_AddImage" +defs["ImDrawList_AddImage"][1]["defaults"] = {} +defs["ImDrawList_AddImage"][1]["defaults"]["col"] = "4294967295" +defs["ImDrawList_AddImage"][1]["defaults"]["uv_max"] = "ImVec2(1,1)" +defs["ImDrawList_AddImage"][1]["defaults"]["uv_min"] = "ImVec2(0,0)" +defs["ImDrawList_AddImage"][1]["funcname"] = "AddImage" +defs["ImDrawList_AddImage"][1]["location"] = "imgui:2563" +defs["ImDrawList_AddImage"][1]["ov_cimguiname"] = "ImDrawList_AddImage" +defs["ImDrawList_AddImage"][1]["ret"] = "void" +defs["ImDrawList_AddImage"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_AddImage"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddImage"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_AddImage"][1] +defs["ImDrawList_AddImageQuad"] = {} +defs["ImDrawList_AddImageQuad"][1] = {} +defs["ImDrawList_AddImageQuad"][1]["args"] = "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col)" +defs["ImDrawList_AddImageQuad"][1]["argsT"] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][1] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddImageQuad"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddImageQuad"][1]["argsT"][2] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][2]["name"] = "user_texture_id" +defs["ImDrawList_AddImageQuad"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImDrawList_AddImageQuad"][1]["argsT"][3] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][3]["name"] = "p1" +defs["ImDrawList_AddImageQuad"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][4] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][4]["name"] = "p2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][5] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][5]["name"] = "p3" +defs["ImDrawList_AddImageQuad"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][6] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][6]["name"] = "p4" +defs["ImDrawList_AddImageQuad"][1]["argsT"][6]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][7] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][7]["name"] = "uv1" +defs["ImDrawList_AddImageQuad"][1]["argsT"][7]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][8] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][8]["name"] = "uv2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][8]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][9] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][9]["name"] = "uv3" +defs["ImDrawList_AddImageQuad"][1]["argsT"][9]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][10] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][10]["name"] = "uv4" +defs["ImDrawList_AddImageQuad"][1]["argsT"][10]["type"] = "const ImVec2" +defs["ImDrawList_AddImageQuad"][1]["argsT"][11] = {} +defs["ImDrawList_AddImageQuad"][1]["argsT"][11]["name"] = "col" +defs["ImDrawList_AddImageQuad"][1]["argsT"][11]["type"] = "ImU32" +defs["ImDrawList_AddImageQuad"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& uv1=ImVec2(0,0),const ImVec2& uv2=ImVec2(1,0),const ImVec2& uv3=ImVec2(1,1),const ImVec2& uv4=ImVec2(0,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))" +defs["ImDrawList_AddImageQuad"][1]["call_args"] = "(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col)" +defs["ImDrawList_AddImageQuad"][1]["cimguiname"] = "ImDrawList_AddImageQuad" +defs["ImDrawList_AddImageQuad"][1]["defaults"] = {} +defs["ImDrawList_AddImageQuad"][1]["defaults"]["col"] = "4294967295" +defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv1"] = "ImVec2(0,0)" +defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv2"] = "ImVec2(1,0)" +defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv3"] = "ImVec2(1,1)" +defs["ImDrawList_AddImageQuad"][1]["defaults"]["uv4"] = "ImVec2(0,1)" +defs["ImDrawList_AddImageQuad"][1]["funcname"] = "AddImageQuad" +defs["ImDrawList_AddImageQuad"][1]["location"] = "imgui:2564" +defs["ImDrawList_AddImageQuad"][1]["ov_cimguiname"] = "ImDrawList_AddImageQuad" +defs["ImDrawList_AddImageQuad"][1]["ret"] = "void" +defs["ImDrawList_AddImageQuad"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_AddImageQuad"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddImageQuad"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_AddImageQuad"][1] +defs["ImDrawList_AddImageRounded"] = {} +defs["ImDrawList_AddImageRounded"][1] = {} +defs["ImDrawList_AddImageRounded"][1]["args"] = "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags)" +defs["ImDrawList_AddImageRounded"][1]["argsT"] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][1] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddImageRounded"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddImageRounded"][1]["argsT"][2] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][2]["name"] = "user_texture_id" +defs["ImDrawList_AddImageRounded"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImDrawList_AddImageRounded"][1]["argsT"][3] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][3]["name"] = "p_min" +defs["ImDrawList_AddImageRounded"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddImageRounded"][1]["argsT"][4] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][4]["name"] = "p_max" +defs["ImDrawList_AddImageRounded"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddImageRounded"][1]["argsT"][5] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][5]["name"] = "uv_min" +defs["ImDrawList_AddImageRounded"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddImageRounded"][1]["argsT"][6] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][6]["name"] = "uv_max" +defs["ImDrawList_AddImageRounded"][1]["argsT"][6]["type"] = "const ImVec2" +defs["ImDrawList_AddImageRounded"][1]["argsT"][7] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][7]["name"] = "col" +defs["ImDrawList_AddImageRounded"][1]["argsT"][7]["type"] = "ImU32" +defs["ImDrawList_AddImageRounded"][1]["argsT"][8] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][8]["name"] = "rounding" +defs["ImDrawList_AddImageRounded"][1]["argsT"][8]["type"] = "float" +defs["ImDrawList_AddImageRounded"][1]["argsT"][9] = {} +defs["ImDrawList_AddImageRounded"][1]["argsT"][9]["name"] = "flags" +defs["ImDrawList_AddImageRounded"][1]["argsT"][9]["type"] = "ImDrawFlags" +defs["ImDrawList_AddImageRounded"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min,const ImVec2& uv_max,ImU32 col,float rounding,ImDrawFlags flags=0)" +defs["ImDrawList_AddImageRounded"][1]["call_args"] = "(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags)" +defs["ImDrawList_AddImageRounded"][1]["cimguiname"] = "ImDrawList_AddImageRounded" +defs["ImDrawList_AddImageRounded"][1]["defaults"] = {} +defs["ImDrawList_AddImageRounded"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_AddImageRounded"][1]["funcname"] = "AddImageRounded" +defs["ImDrawList_AddImageRounded"][1]["location"] = "imgui:2565" +defs["ImDrawList_AddImageRounded"][1]["ov_cimguiname"] = "ImDrawList_AddImageRounded" +defs["ImDrawList_AddImageRounded"][1]["ret"] = "void" +defs["ImDrawList_AddImageRounded"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)" +defs["ImDrawList_AddImageRounded"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddImageRounded"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)"] = defs["ImDrawList_AddImageRounded"][1] +defs["ImDrawList_AddLine"] = {} +defs["ImDrawList_AddLine"][1] = {} +defs["ImDrawList_AddLine"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness)" +defs["ImDrawList_AddLine"][1]["argsT"] = {} +defs["ImDrawList_AddLine"][1]["argsT"][1] = {} +defs["ImDrawList_AddLine"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddLine"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddLine"][1]["argsT"][2] = {} +defs["ImDrawList_AddLine"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddLine"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddLine"][1]["argsT"][3] = {} +defs["ImDrawList_AddLine"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddLine"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddLine"][1]["argsT"][4] = {} +defs["ImDrawList_AddLine"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddLine"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddLine"][1]["argsT"][5] = {} +defs["ImDrawList_AddLine"][1]["argsT"][5]["name"] = "thickness" +defs["ImDrawList_AddLine"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList_AddLine"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,ImU32 col,float thickness=1.0f)" +defs["ImDrawList_AddLine"][1]["call_args"] = "(p1,p2,col,thickness)" +defs["ImDrawList_AddLine"][1]["cimguiname"] = "ImDrawList_AddLine" +defs["ImDrawList_AddLine"][1]["defaults"] = {} +defs["ImDrawList_AddLine"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddLine"][1]["funcname"] = "AddLine" +defs["ImDrawList_AddLine"][1]["location"] = "imgui:2540" +defs["ImDrawList_AddLine"][1]["ov_cimguiname"] = "ImDrawList_AddLine" +defs["ImDrawList_AddLine"][1]["ret"] = "void" +defs["ImDrawList_AddLine"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float)" +defs["ImDrawList_AddLine"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddLine"]["(const ImVec2,const ImVec2,ImU32,float)"] = defs["ImDrawList_AddLine"][1] +defs["ImDrawList_AddNgon"] = {} +defs["ImDrawList_AddNgon"][1] = {} +defs["ImDrawList_AddNgon"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)" +defs["ImDrawList_AddNgon"][1]["argsT"] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][1] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddNgon"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddNgon"][1]["argsT"][2] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_AddNgon"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddNgon"][1]["argsT"][3] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_AddNgon"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddNgon"][1]["argsT"][4] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddNgon"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddNgon"][1]["argsT"][5] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_AddNgon"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_AddNgon"][1]["argsT"][6] = {} +defs["ImDrawList_AddNgon"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddNgon"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddNgon"][1]["argsoriginal"] = "(const ImVec2& center,float radius,ImU32 col,int num_segments,float thickness=1.0f)" +defs["ImDrawList_AddNgon"][1]["call_args"] = "(center,radius,col,num_segments,thickness)" +defs["ImDrawList_AddNgon"][1]["cimguiname"] = "ImDrawList_AddNgon" +defs["ImDrawList_AddNgon"][1]["defaults"] = {} +defs["ImDrawList_AddNgon"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddNgon"][1]["funcname"] = "AddNgon" +defs["ImDrawList_AddNgon"][1]["location"] = "imgui:2550" +defs["ImDrawList_AddNgon"][1]["ov_cimguiname"] = "ImDrawList_AddNgon" +defs["ImDrawList_AddNgon"][1]["ret"] = "void" +defs["ImDrawList_AddNgon"][1]["signature"] = "(const ImVec2,float,ImU32,int,float)" +defs["ImDrawList_AddNgon"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddNgon"]["(const ImVec2,float,ImU32,int,float)"] = defs["ImDrawList_AddNgon"][1] +defs["ImDrawList_AddNgonFilled"] = {} +defs["ImDrawList_AddNgonFilled"][1] = {} +defs["ImDrawList_AddNgonFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)" +defs["ImDrawList_AddNgonFilled"][1]["argsT"] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddNgonFilled"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_AddNgonFilled"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_AddNgonFilled"][1]["argsoriginal"] = "(const ImVec2& center,float radius,ImU32 col,int num_segments)" +defs["ImDrawList_AddNgonFilled"][1]["call_args"] = "(center,radius,col,num_segments)" +defs["ImDrawList_AddNgonFilled"][1]["cimguiname"] = "ImDrawList_AddNgonFilled" +defs["ImDrawList_AddNgonFilled"][1]["defaults"] = {} +defs["ImDrawList_AddNgonFilled"][1]["funcname"] = "AddNgonFilled" +defs["ImDrawList_AddNgonFilled"][1]["location"] = "imgui:2551" +defs["ImDrawList_AddNgonFilled"][1]["ov_cimguiname"] = "ImDrawList_AddNgonFilled" +defs["ImDrawList_AddNgonFilled"][1]["ret"] = "void" +defs["ImDrawList_AddNgonFilled"][1]["signature"] = "(const ImVec2,float,ImU32,int)" +defs["ImDrawList_AddNgonFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddNgonFilled"]["(const ImVec2,float,ImU32,int)"] = defs["ImDrawList_AddNgonFilled"][1] +defs["ImDrawList_AddPolyline"] = {} +defs["ImDrawList_AddPolyline"][1] = {} +defs["ImDrawList_AddPolyline"][1]["args"] = "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)" +defs["ImDrawList_AddPolyline"][1]["argsT"] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][1] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddPolyline"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddPolyline"][1]["argsT"][2] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][2]["name"] = "points" +defs["ImDrawList_AddPolyline"][1]["argsT"][2]["type"] = "const ImVec2*" +defs["ImDrawList_AddPolyline"][1]["argsT"][3] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][3]["name"] = "num_points" +defs["ImDrawList_AddPolyline"][1]["argsT"][3]["type"] = "int" +defs["ImDrawList_AddPolyline"][1]["argsT"][4] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddPolyline"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddPolyline"][1]["argsT"][5] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][5]["name"] = "flags" +defs["ImDrawList_AddPolyline"][1]["argsT"][5]["type"] = "ImDrawFlags" +defs["ImDrawList_AddPolyline"][1]["argsT"][6] = {} +defs["ImDrawList_AddPolyline"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddPolyline"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddPolyline"][1]["argsoriginal"] = "(const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)" +defs["ImDrawList_AddPolyline"][1]["call_args"] = "(points,num_points,col,flags,thickness)" +defs["ImDrawList_AddPolyline"][1]["cimguiname"] = "ImDrawList_AddPolyline" +defs["ImDrawList_AddPolyline"][1]["defaults"] = {} +defs["ImDrawList_AddPolyline"][1]["funcname"] = "AddPolyline" +defs["ImDrawList_AddPolyline"][1]["location"] = "imgui:2554" +defs["ImDrawList_AddPolyline"][1]["ov_cimguiname"] = "ImDrawList_AddPolyline" +defs["ImDrawList_AddPolyline"][1]["ret"] = "void" +defs["ImDrawList_AddPolyline"][1]["signature"] = "(const ImVec2*,int,ImU32,ImDrawFlags,float)" +defs["ImDrawList_AddPolyline"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddPolyline"]["(const ImVec2*,int,ImU32,ImDrawFlags,float)"] = defs["ImDrawList_AddPolyline"][1] +defs["ImDrawList_AddQuad"] = {} +defs["ImDrawList_AddQuad"][1] = {} +defs["ImDrawList_AddQuad"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness)" +defs["ImDrawList_AddQuad"][1]["argsT"] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][1] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddQuad"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddQuad"][1]["argsT"][2] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddQuad"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddQuad"][1]["argsT"][3] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddQuad"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddQuad"][1]["argsT"][4] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddQuad"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddQuad"][1]["argsT"][5] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][5]["name"] = "p4" +defs["ImDrawList_AddQuad"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddQuad"][1]["argsT"][6] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][6]["name"] = "col" +defs["ImDrawList_AddQuad"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_AddQuad"][1]["argsT"][7] = {} +defs["ImDrawList_AddQuad"][1]["argsT"][7]["name"] = "thickness" +defs["ImDrawList_AddQuad"][1]["argsT"][7]["type"] = "float" +defs["ImDrawList_AddQuad"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness=1.0f)" +defs["ImDrawList_AddQuad"][1]["call_args"] = "(p1,p2,p3,p4,col,thickness)" +defs["ImDrawList_AddQuad"][1]["cimguiname"] = "ImDrawList_AddQuad" +defs["ImDrawList_AddQuad"][1]["defaults"] = {} +defs["ImDrawList_AddQuad"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddQuad"][1]["funcname"] = "AddQuad" +defs["ImDrawList_AddQuad"][1]["location"] = "imgui:2544" +defs["ImDrawList_AddQuad"][1]["ov_cimguiname"] = "ImDrawList_AddQuad" +defs["ImDrawList_AddQuad"][1]["ret"] = "void" +defs["ImDrawList_AddQuad"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)" +defs["ImDrawList_AddQuad"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddQuad"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)"] = defs["ImDrawList_AddQuad"][1] +defs["ImDrawList_AddQuadFilled"] = {} +defs["ImDrawList_AddQuadFilled"][1] = {} +defs["ImDrawList_AddQuadFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col)" +defs["ImDrawList_AddQuadFilled"][1]["argsT"] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][5]["name"] = "p4" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][6] = {} +defs["ImDrawList_AddQuadFilled"][1]["argsT"][6]["name"] = "col" +defs["ImDrawList_AddQuadFilled"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_AddQuadFilled"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col)" +defs["ImDrawList_AddQuadFilled"][1]["call_args"] = "(p1,p2,p3,p4,col)" +defs["ImDrawList_AddQuadFilled"][1]["cimguiname"] = "ImDrawList_AddQuadFilled" +defs["ImDrawList_AddQuadFilled"][1]["defaults"] = {} +defs["ImDrawList_AddQuadFilled"][1]["funcname"] = "AddQuadFilled" +defs["ImDrawList_AddQuadFilled"][1]["location"] = "imgui:2545" +defs["ImDrawList_AddQuadFilled"][1]["ov_cimguiname"] = "ImDrawList_AddQuadFilled" +defs["ImDrawList_AddQuadFilled"][1]["ret"] = "void" +defs["ImDrawList_AddQuadFilled"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_AddQuadFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddQuadFilled"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_AddQuadFilled"][1] +defs["ImDrawList_AddRect"] = {} +defs["ImDrawList_AddRect"][1] = {} +defs["ImDrawList_AddRect"][1]["args"] = "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness)" +defs["ImDrawList_AddRect"][1]["argsT"] = {} +defs["ImDrawList_AddRect"][1]["argsT"][1] = {} +defs["ImDrawList_AddRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddRect"][1]["argsT"][2] = {} +defs["ImDrawList_AddRect"][1]["argsT"][2]["name"] = "p_min" +defs["ImDrawList_AddRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddRect"][1]["argsT"][3] = {} +defs["ImDrawList_AddRect"][1]["argsT"][3]["name"] = "p_max" +defs["ImDrawList_AddRect"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddRect"][1]["argsT"][4] = {} +defs["ImDrawList_AddRect"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddRect"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddRect"][1]["argsT"][5] = {} +defs["ImDrawList_AddRect"][1]["argsT"][5]["name"] = "rounding" +defs["ImDrawList_AddRect"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList_AddRect"][1]["argsT"][6] = {} +defs["ImDrawList_AddRect"][1]["argsT"][6]["name"] = "flags" +defs["ImDrawList_AddRect"][1]["argsT"][6]["type"] = "ImDrawFlags" +defs["ImDrawList_AddRect"][1]["argsT"][7] = {} +defs["ImDrawList_AddRect"][1]["argsT"][7]["name"] = "thickness" +defs["ImDrawList_AddRect"][1]["argsT"][7]["type"] = "float" +defs["ImDrawList_AddRect"][1]["argsoriginal"] = "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0,float thickness=1.0f)" +defs["ImDrawList_AddRect"][1]["call_args"] = "(p_min,p_max,col,rounding,flags,thickness)" +defs["ImDrawList_AddRect"][1]["cimguiname"] = "ImDrawList_AddRect" +defs["ImDrawList_AddRect"][1]["defaults"] = {} +defs["ImDrawList_AddRect"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_AddRect"][1]["defaults"]["rounding"] = "0.0f" +defs["ImDrawList_AddRect"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddRect"][1]["funcname"] = "AddRect" +defs["ImDrawList_AddRect"][1]["location"] = "imgui:2541" +defs["ImDrawList_AddRect"][1]["ov_cimguiname"] = "ImDrawList_AddRect" +defs["ImDrawList_AddRect"][1]["ret"] = "void" +defs["ImDrawList_AddRect"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)" +defs["ImDrawList_AddRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddRect"]["(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)"] = defs["ImDrawList_AddRect"][1] +defs["ImDrawList_AddRectFilled"] = {} +defs["ImDrawList_AddRectFilled"][1] = {} +defs["ImDrawList_AddRectFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags)" +defs["ImDrawList_AddRectFilled"][1]["argsT"] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddRectFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddRectFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][2]["name"] = "p_min" +defs["ImDrawList_AddRectFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddRectFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][3]["name"] = "p_max" +defs["ImDrawList_AddRectFilled"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddRectFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_AddRectFilled"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddRectFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][5]["name"] = "rounding" +defs["ImDrawList_AddRectFilled"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList_AddRectFilled"][1]["argsT"][6] = {} +defs["ImDrawList_AddRectFilled"][1]["argsT"][6]["name"] = "flags" +defs["ImDrawList_AddRectFilled"][1]["argsT"][6]["type"] = "ImDrawFlags" +defs["ImDrawList_AddRectFilled"][1]["argsoriginal"] = "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0)" +defs["ImDrawList_AddRectFilled"][1]["call_args"] = "(p_min,p_max,col,rounding,flags)" +defs["ImDrawList_AddRectFilled"][1]["cimguiname"] = "ImDrawList_AddRectFilled" +defs["ImDrawList_AddRectFilled"][1]["defaults"] = {} +defs["ImDrawList_AddRectFilled"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_AddRectFilled"][1]["defaults"]["rounding"] = "0.0f" +defs["ImDrawList_AddRectFilled"][1]["funcname"] = "AddRectFilled" +defs["ImDrawList_AddRectFilled"][1]["location"] = "imgui:2542" +defs["ImDrawList_AddRectFilled"][1]["ov_cimguiname"] = "ImDrawList_AddRectFilled" +defs["ImDrawList_AddRectFilled"][1]["ret"] = "void" +defs["ImDrawList_AddRectFilled"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)" +defs["ImDrawList_AddRectFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddRectFilled"]["(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)"] = defs["ImDrawList_AddRectFilled"][1] +defs["ImDrawList_AddRectFilledMultiColor"] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["args"] = "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][1] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][2] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][2]["name"] = "p_min" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][3] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][3]["name"] = "p_max" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][4] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][4]["name"] = "col_upr_left" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][5] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][5]["name"] = "col_upr_right" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][6] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][6]["name"] = "col_bot_right" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][7] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][7]["name"] = "col_bot_left" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsT"][7]["type"] = "ImU32" +defs["ImDrawList_AddRectFilledMultiColor"][1]["argsoriginal"] = "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)" +defs["ImDrawList_AddRectFilledMultiColor"][1]["call_args"] = "(p_min,p_max,col_upr_left,col_upr_right,col_bot_right,col_bot_left)" +defs["ImDrawList_AddRectFilledMultiColor"][1]["cimguiname"] = "ImDrawList_AddRectFilledMultiColor" +defs["ImDrawList_AddRectFilledMultiColor"][1]["defaults"] = {} +defs["ImDrawList_AddRectFilledMultiColor"][1]["funcname"] = "AddRectFilledMultiColor" +defs["ImDrawList_AddRectFilledMultiColor"][1]["location"] = "imgui:2543" +defs["ImDrawList_AddRectFilledMultiColor"][1]["ov_cimguiname"] = "ImDrawList_AddRectFilledMultiColor" +defs["ImDrawList_AddRectFilledMultiColor"][1]["ret"] = "void" +defs["ImDrawList_AddRectFilledMultiColor"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)" +defs["ImDrawList_AddRectFilledMultiColor"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddRectFilledMultiColor"]["(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)"] = defs["ImDrawList_AddRectFilledMultiColor"][1] +defs["ImDrawList_AddText"] = {} +defs["ImDrawList_AddText"][1] = {} +defs["ImDrawList_AddText"][1]["args"] = "(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end)" +defs["ImDrawList_AddText"][1]["argsT"] = {} +defs["ImDrawList_AddText"][1]["argsT"][1] = {} +defs["ImDrawList_AddText"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddText"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddText"][1]["argsT"][2] = {} +defs["ImDrawList_AddText"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_AddText"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddText"][1]["argsT"][3] = {} +defs["ImDrawList_AddText"][1]["argsT"][3]["name"] = "col" +defs["ImDrawList_AddText"][1]["argsT"][3]["type"] = "ImU32" +defs["ImDrawList_AddText"][1]["argsT"][4] = {} +defs["ImDrawList_AddText"][1]["argsT"][4]["name"] = "text_begin" +defs["ImDrawList_AddText"][1]["argsT"][4]["type"] = "const char*" +defs["ImDrawList_AddText"][1]["argsT"][5] = {} +defs["ImDrawList_AddText"][1]["argsT"][5]["name"] = "text_end" +defs["ImDrawList_AddText"][1]["argsT"][5]["type"] = "const char*" +defs["ImDrawList_AddText"][1]["argsoriginal"] = "(const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0))" +defs["ImDrawList_AddText"][1]["call_args"] = "(pos,col,text_begin,text_end)" +defs["ImDrawList_AddText"][1]["cimguiname"] = "ImDrawList_AddText" +defs["ImDrawList_AddText"][1]["defaults"] = {} +defs["ImDrawList_AddText"][1]["defaults"]["text_end"] = "NULL" +defs["ImDrawList_AddText"][1]["funcname"] = "AddText" +defs["ImDrawList_AddText"][1]["location"] = "imgui:2552" +defs["ImDrawList_AddText"][1]["ov_cimguiname"] = "ImDrawList_AddText_Vec2" +defs["ImDrawList_AddText"][1]["ret"] = "void" +defs["ImDrawList_AddText"][1]["signature"] = "(const ImVec2,ImU32,const char*,const char*)" +defs["ImDrawList_AddText"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddText"][2] = {} +defs["ImDrawList_AddText"][2]["args"] = "(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect)" +defs["ImDrawList_AddText"][2]["argsT"] = {} +defs["ImDrawList_AddText"][2]["argsT"][1] = {} +defs["ImDrawList_AddText"][2]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddText"][2]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddText"][2]["argsT"][2] = {} +defs["ImDrawList_AddText"][2]["argsT"][2]["name"] = "font" +defs["ImDrawList_AddText"][2]["argsT"][2]["type"] = "const ImFont*" +defs["ImDrawList_AddText"][2]["argsT"][3] = {} +defs["ImDrawList_AddText"][2]["argsT"][3]["name"] = "font_size" +defs["ImDrawList_AddText"][2]["argsT"][3]["type"] = "float" +defs["ImDrawList_AddText"][2]["argsT"][4] = {} +defs["ImDrawList_AddText"][2]["argsT"][4]["name"] = "pos" +defs["ImDrawList_AddText"][2]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddText"][2]["argsT"][5] = {} +defs["ImDrawList_AddText"][2]["argsT"][5]["name"] = "col" +defs["ImDrawList_AddText"][2]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddText"][2]["argsT"][6] = {} +defs["ImDrawList_AddText"][2]["argsT"][6]["name"] = "text_begin" +defs["ImDrawList_AddText"][2]["argsT"][6]["type"] = "const char*" +defs["ImDrawList_AddText"][2]["argsT"][7] = {} +defs["ImDrawList_AddText"][2]["argsT"][7]["name"] = "text_end" +defs["ImDrawList_AddText"][2]["argsT"][7]["type"] = "const char*" +defs["ImDrawList_AddText"][2]["argsT"][8] = {} +defs["ImDrawList_AddText"][2]["argsT"][8]["name"] = "wrap_width" +defs["ImDrawList_AddText"][2]["argsT"][8]["type"] = "float" +defs["ImDrawList_AddText"][2]["argsT"][9] = {} +defs["ImDrawList_AddText"][2]["argsT"][9]["name"] = "cpu_fine_clip_rect" +defs["ImDrawList_AddText"][2]["argsT"][9]["type"] = "const ImVec4*" +defs["ImDrawList_AddText"][2]["argsoriginal"] = "(const ImFont* font,float font_size,const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0),float wrap_width=0.0f,const ImVec4* cpu_fine_clip_rect=((void*)0))" +defs["ImDrawList_AddText"][2]["call_args"] = "(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect)" +defs["ImDrawList_AddText"][2]["cimguiname"] = "ImDrawList_AddText" +defs["ImDrawList_AddText"][2]["defaults"] = {} +defs["ImDrawList_AddText"][2]["defaults"]["cpu_fine_clip_rect"] = "NULL" +defs["ImDrawList_AddText"][2]["defaults"]["text_end"] = "NULL" +defs["ImDrawList_AddText"][2]["defaults"]["wrap_width"] = "0.0f" +defs["ImDrawList_AddText"][2]["funcname"] = "AddText" +defs["ImDrawList_AddText"][2]["location"] = "imgui:2553" +defs["ImDrawList_AddText"][2]["ov_cimguiname"] = "ImDrawList_AddText_FontPtr" +defs["ImDrawList_AddText"][2]["ret"] = "void" +defs["ImDrawList_AddText"][2]["signature"] = "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)" +defs["ImDrawList_AddText"][2]["stname"] = "ImDrawList" +defs["ImDrawList_AddText"]["(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)"] = defs["ImDrawList_AddText"][2] +defs["ImDrawList_AddText"]["(const ImVec2,ImU32,const char*,const char*)"] = defs["ImDrawList_AddText"][1] +defs["ImDrawList_AddTriangle"] = {} +defs["ImDrawList_AddTriangle"][1] = {} +defs["ImDrawList_AddTriangle"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness)" +defs["ImDrawList_AddTriangle"][1]["argsT"] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][1] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddTriangle"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddTriangle"][1]["argsT"][2] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddTriangle"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangle"][1]["argsT"][3] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddTriangle"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangle"][1]["argsT"][4] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddTriangle"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangle"][1]["argsT"][5] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][5]["name"] = "col" +defs["ImDrawList_AddTriangle"][1]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddTriangle"][1]["argsT"][6] = {} +defs["ImDrawList_AddTriangle"][1]["argsT"][6]["name"] = "thickness" +defs["ImDrawList_AddTriangle"][1]["argsT"][6]["type"] = "float" +defs["ImDrawList_AddTriangle"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness=1.0f)" +defs["ImDrawList_AddTriangle"][1]["call_args"] = "(p1,p2,p3,col,thickness)" +defs["ImDrawList_AddTriangle"][1]["cimguiname"] = "ImDrawList_AddTriangle" +defs["ImDrawList_AddTriangle"][1]["defaults"] = {} +defs["ImDrawList_AddTriangle"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_AddTriangle"][1]["funcname"] = "AddTriangle" +defs["ImDrawList_AddTriangle"][1]["location"] = "imgui:2546" +defs["ImDrawList_AddTriangle"][1]["ov_cimguiname"] = "ImDrawList_AddTriangle" +defs["ImDrawList_AddTriangle"][1]["ret"] = "void" +defs["ImDrawList_AddTriangle"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)" +defs["ImDrawList_AddTriangle"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddTriangle"]["(const ImVec2,const ImVec2,const ImVec2,ImU32,float)"] = defs["ImDrawList_AddTriangle"][1] +defs["ImDrawList_AddTriangleFilled"] = {} +defs["ImDrawList_AddTriangleFilled"][1] = {} +defs["ImDrawList_AddTriangleFilled"][1]["args"] = "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col)" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][1] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][2] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][2]["name"] = "p1" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][3] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][3]["name"] = "p2" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][4] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][4]["name"] = "p3" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][5] = {} +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][5]["name"] = "col" +defs["ImDrawList_AddTriangleFilled"][1]["argsT"][5]["type"] = "ImU32" +defs["ImDrawList_AddTriangleFilled"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col)" +defs["ImDrawList_AddTriangleFilled"][1]["call_args"] = "(p1,p2,p3,col)" +defs["ImDrawList_AddTriangleFilled"][1]["cimguiname"] = "ImDrawList_AddTriangleFilled" +defs["ImDrawList_AddTriangleFilled"][1]["defaults"] = {} +defs["ImDrawList_AddTriangleFilled"][1]["funcname"] = "AddTriangleFilled" +defs["ImDrawList_AddTriangleFilled"][1]["location"] = "imgui:2547" +defs["ImDrawList_AddTriangleFilled"][1]["ov_cimguiname"] = "ImDrawList_AddTriangleFilled" +defs["ImDrawList_AddTriangleFilled"][1]["ret"] = "void" +defs["ImDrawList_AddTriangleFilled"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_AddTriangleFilled"][1]["stname"] = "ImDrawList" +defs["ImDrawList_AddTriangleFilled"]["(const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_AddTriangleFilled"][1] +defs["ImDrawList_ChannelsMerge"] = {} +defs["ImDrawList_ChannelsMerge"][1] = {} +defs["ImDrawList_ChannelsMerge"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_ChannelsMerge"][1]["argsT"] = {} +defs["ImDrawList_ChannelsMerge"][1]["argsT"][1] = {} +defs["ImDrawList_ChannelsMerge"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_ChannelsMerge"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_ChannelsMerge"][1]["argsoriginal"] = "()" +defs["ImDrawList_ChannelsMerge"][1]["call_args"] = "()" +defs["ImDrawList_ChannelsMerge"][1]["cimguiname"] = "ImDrawList_ChannelsMerge" +defs["ImDrawList_ChannelsMerge"][1]["defaults"] = {} +defs["ImDrawList_ChannelsMerge"][1]["funcname"] = "ChannelsMerge" +defs["ImDrawList_ChannelsMerge"][1]["location"] = "imgui:2592" +defs["ImDrawList_ChannelsMerge"][1]["ov_cimguiname"] = "ImDrawList_ChannelsMerge" +defs["ImDrawList_ChannelsMerge"][1]["ret"] = "void" +defs["ImDrawList_ChannelsMerge"][1]["signature"] = "()" +defs["ImDrawList_ChannelsMerge"][1]["stname"] = "ImDrawList" +defs["ImDrawList_ChannelsMerge"]["()"] = defs["ImDrawList_ChannelsMerge"][1] +defs["ImDrawList_ChannelsSetCurrent"] = {} +defs["ImDrawList_ChannelsSetCurrent"][1] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["args"] = "(ImDrawList* self,int n)" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][1] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][2] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][2]["name"] = "n" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsT"][2]["type"] = "int" +defs["ImDrawList_ChannelsSetCurrent"][1]["argsoriginal"] = "(int n)" +defs["ImDrawList_ChannelsSetCurrent"][1]["call_args"] = "(n)" +defs["ImDrawList_ChannelsSetCurrent"][1]["cimguiname"] = "ImDrawList_ChannelsSetCurrent" +defs["ImDrawList_ChannelsSetCurrent"][1]["defaults"] = {} +defs["ImDrawList_ChannelsSetCurrent"][1]["funcname"] = "ChannelsSetCurrent" +defs["ImDrawList_ChannelsSetCurrent"][1]["location"] = "imgui:2593" +defs["ImDrawList_ChannelsSetCurrent"][1]["ov_cimguiname"] = "ImDrawList_ChannelsSetCurrent" +defs["ImDrawList_ChannelsSetCurrent"][1]["ret"] = "void" +defs["ImDrawList_ChannelsSetCurrent"][1]["signature"] = "(int)" +defs["ImDrawList_ChannelsSetCurrent"][1]["stname"] = "ImDrawList" +defs["ImDrawList_ChannelsSetCurrent"]["(int)"] = defs["ImDrawList_ChannelsSetCurrent"][1] +defs["ImDrawList_ChannelsSplit"] = {} +defs["ImDrawList_ChannelsSplit"][1] = {} +defs["ImDrawList_ChannelsSplit"][1]["args"] = "(ImDrawList* self,int count)" +defs["ImDrawList_ChannelsSplit"][1]["argsT"] = {} +defs["ImDrawList_ChannelsSplit"][1]["argsT"][1] = {} +defs["ImDrawList_ChannelsSplit"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_ChannelsSplit"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_ChannelsSplit"][1]["argsT"][2] = {} +defs["ImDrawList_ChannelsSplit"][1]["argsT"][2]["name"] = "count" +defs["ImDrawList_ChannelsSplit"][1]["argsT"][2]["type"] = "int" +defs["ImDrawList_ChannelsSplit"][1]["argsoriginal"] = "(int count)" +defs["ImDrawList_ChannelsSplit"][1]["call_args"] = "(count)" +defs["ImDrawList_ChannelsSplit"][1]["cimguiname"] = "ImDrawList_ChannelsSplit" +defs["ImDrawList_ChannelsSplit"][1]["defaults"] = {} +defs["ImDrawList_ChannelsSplit"][1]["funcname"] = "ChannelsSplit" +defs["ImDrawList_ChannelsSplit"][1]["location"] = "imgui:2591" +defs["ImDrawList_ChannelsSplit"][1]["ov_cimguiname"] = "ImDrawList_ChannelsSplit" +defs["ImDrawList_ChannelsSplit"][1]["ret"] = "void" +defs["ImDrawList_ChannelsSplit"][1]["signature"] = "(int)" +defs["ImDrawList_ChannelsSplit"][1]["stname"] = "ImDrawList" +defs["ImDrawList_ChannelsSplit"]["(int)"] = defs["ImDrawList_ChannelsSplit"][1] +defs["ImDrawList_CloneOutput"] = {} +defs["ImDrawList_CloneOutput"][1] = {} +defs["ImDrawList_CloneOutput"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_CloneOutput"][1]["argsT"] = {} +defs["ImDrawList_CloneOutput"][1]["argsT"][1] = {} +defs["ImDrawList_CloneOutput"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_CloneOutput"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_CloneOutput"][1]["argsoriginal"] = "()" +defs["ImDrawList_CloneOutput"][1]["call_args"] = "()" +defs["ImDrawList_CloneOutput"][1]["cimguiname"] = "ImDrawList_CloneOutput" +defs["ImDrawList_CloneOutput"][1]["defaults"] = {} +defs["ImDrawList_CloneOutput"][1]["funcname"] = "CloneOutput" +defs["ImDrawList_CloneOutput"][1]["location"] = "imgui:2583" +defs["ImDrawList_CloneOutput"][1]["ov_cimguiname"] = "ImDrawList_CloneOutput" +defs["ImDrawList_CloneOutput"][1]["ret"] = "ImDrawList*" +defs["ImDrawList_CloneOutput"][1]["signature"] = "()const" +defs["ImDrawList_CloneOutput"][1]["stname"] = "ImDrawList" +defs["ImDrawList_CloneOutput"]["()const"] = defs["ImDrawList_CloneOutput"][1] +defs["ImDrawList_GetClipRectMax"] = {} +defs["ImDrawList_GetClipRectMax"][1] = {} +defs["ImDrawList_GetClipRectMax"][1]["args"] = "(ImVec2 *pOut,ImDrawList* self)" +defs["ImDrawList_GetClipRectMax"][1]["argsT"] = {} +defs["ImDrawList_GetClipRectMax"][1]["argsT"][1] = {} +defs["ImDrawList_GetClipRectMax"][1]["argsT"][1]["name"] = "pOut" +defs["ImDrawList_GetClipRectMax"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImDrawList_GetClipRectMax"][1]["argsT"][2] = {} +defs["ImDrawList_GetClipRectMax"][1]["argsT"][2]["name"] = "self" +defs["ImDrawList_GetClipRectMax"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawList_GetClipRectMax"][1]["argsoriginal"] = "()" +defs["ImDrawList_GetClipRectMax"][1]["call_args"] = "()" +defs["ImDrawList_GetClipRectMax"][1]["cimguiname"] = "ImDrawList_GetClipRectMax" +defs["ImDrawList_GetClipRectMax"][1]["defaults"] = {} +defs["ImDrawList_GetClipRectMax"][1]["funcname"] = "GetClipRectMax" +defs["ImDrawList_GetClipRectMax"][1]["location"] = "imgui:2531" +defs["ImDrawList_GetClipRectMax"][1]["nonUDT"] = 1 +defs["ImDrawList_GetClipRectMax"][1]["ov_cimguiname"] = "ImDrawList_GetClipRectMax" +defs["ImDrawList_GetClipRectMax"][1]["ret"] = "void" +defs["ImDrawList_GetClipRectMax"][1]["signature"] = "()const" +defs["ImDrawList_GetClipRectMax"][1]["stname"] = "ImDrawList" +defs["ImDrawList_GetClipRectMax"]["()const"] = defs["ImDrawList_GetClipRectMax"][1] +defs["ImDrawList_GetClipRectMin"] = {} +defs["ImDrawList_GetClipRectMin"][1] = {} +defs["ImDrawList_GetClipRectMin"][1]["args"] = "(ImVec2 *pOut,ImDrawList* self)" +defs["ImDrawList_GetClipRectMin"][1]["argsT"] = {} +defs["ImDrawList_GetClipRectMin"][1]["argsT"][1] = {} +defs["ImDrawList_GetClipRectMin"][1]["argsT"][1]["name"] = "pOut" +defs["ImDrawList_GetClipRectMin"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImDrawList_GetClipRectMin"][1]["argsT"][2] = {} +defs["ImDrawList_GetClipRectMin"][1]["argsT"][2]["name"] = "self" +defs["ImDrawList_GetClipRectMin"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImDrawList_GetClipRectMin"][1]["argsoriginal"] = "()" +defs["ImDrawList_GetClipRectMin"][1]["call_args"] = "()" +defs["ImDrawList_GetClipRectMin"][1]["cimguiname"] = "ImDrawList_GetClipRectMin" +defs["ImDrawList_GetClipRectMin"][1]["defaults"] = {} +defs["ImDrawList_GetClipRectMin"][1]["funcname"] = "GetClipRectMin" +defs["ImDrawList_GetClipRectMin"][1]["location"] = "imgui:2530" +defs["ImDrawList_GetClipRectMin"][1]["nonUDT"] = 1 +defs["ImDrawList_GetClipRectMin"][1]["ov_cimguiname"] = "ImDrawList_GetClipRectMin" +defs["ImDrawList_GetClipRectMin"][1]["ret"] = "void" +defs["ImDrawList_GetClipRectMin"][1]["signature"] = "()const" +defs["ImDrawList_GetClipRectMin"][1]["stname"] = "ImDrawList" +defs["ImDrawList_GetClipRectMin"]["()const"] = defs["ImDrawList_GetClipRectMin"][1] +defs["ImDrawList_ImDrawList"] = {} +defs["ImDrawList_ImDrawList"][1] = {} +defs["ImDrawList_ImDrawList"][1]["args"] = "(ImDrawListSharedData* shared_data)" +defs["ImDrawList_ImDrawList"][1]["argsT"] = {} +defs["ImDrawList_ImDrawList"][1]["argsT"][1] = {} +defs["ImDrawList_ImDrawList"][1]["argsT"][1]["name"] = "shared_data" +defs["ImDrawList_ImDrawList"][1]["argsT"][1]["type"] = "ImDrawListSharedData*" +defs["ImDrawList_ImDrawList"][1]["argsoriginal"] = "(ImDrawListSharedData* shared_data)" +defs["ImDrawList_ImDrawList"][1]["call_args"] = "(shared_data)" +defs["ImDrawList_ImDrawList"][1]["cimguiname"] = "ImDrawList_ImDrawList" +defs["ImDrawList_ImDrawList"][1]["constructor"] = true +defs["ImDrawList_ImDrawList"][1]["defaults"] = {} +defs["ImDrawList_ImDrawList"][1]["funcname"] = "ImDrawList" +defs["ImDrawList_ImDrawList"][1]["location"] = "imgui:2522" +defs["ImDrawList_ImDrawList"][1]["ov_cimguiname"] = "ImDrawList_ImDrawList" +defs["ImDrawList_ImDrawList"][1]["signature"] = "(ImDrawListSharedData*)" +defs["ImDrawList_ImDrawList"][1]["stname"] = "ImDrawList" +defs["ImDrawList_ImDrawList"]["(ImDrawListSharedData*)"] = defs["ImDrawList_ImDrawList"][1] +defs["ImDrawList_PathArcTo"] = {} +defs["ImDrawList_PathArcTo"][1] = {} +defs["ImDrawList_PathArcTo"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)" +defs["ImDrawList_PathArcTo"][1]["argsT"] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][1] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathArcTo"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathArcTo"][1]["argsT"][2] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_PathArcTo"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathArcTo"][1]["argsT"][3] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_PathArcTo"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_PathArcTo"][1]["argsT"][4] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][4]["name"] = "a_min" +defs["ImDrawList_PathArcTo"][1]["argsT"][4]["type"] = "float" +defs["ImDrawList_PathArcTo"][1]["argsT"][5] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][5]["name"] = "a_max" +defs["ImDrawList_PathArcTo"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList_PathArcTo"][1]["argsT"][6] = {} +defs["ImDrawList_PathArcTo"][1]["argsT"][6]["name"] = "num_segments" +defs["ImDrawList_PathArcTo"][1]["argsT"][6]["type"] = "int" +defs["ImDrawList_PathArcTo"][1]["argsoriginal"] = "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments=0)" +defs["ImDrawList_PathArcTo"][1]["call_args"] = "(center,radius,a_min,a_max,num_segments)" +defs["ImDrawList_PathArcTo"][1]["cimguiname"] = "ImDrawList_PathArcTo" +defs["ImDrawList_PathArcTo"][1]["defaults"] = {} +defs["ImDrawList_PathArcTo"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_PathArcTo"][1]["funcname"] = "PathArcTo" +defs["ImDrawList_PathArcTo"][1]["location"] = "imgui:2574" +defs["ImDrawList_PathArcTo"][1]["ov_cimguiname"] = "ImDrawList_PathArcTo" +defs["ImDrawList_PathArcTo"][1]["ret"] = "void" +defs["ImDrawList_PathArcTo"][1]["signature"] = "(const ImVec2,float,float,float,int)" +defs["ImDrawList_PathArcTo"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathArcTo"]["(const ImVec2,float,float,float,int)"] = defs["ImDrawList_PathArcTo"][1] +defs["ImDrawList_PathArcToFast"] = {} +defs["ImDrawList_PathArcToFast"][1] = {} +defs["ImDrawList_PathArcToFast"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12)" +defs["ImDrawList_PathArcToFast"][1]["argsT"] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][1] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathArcToFast"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathArcToFast"][1]["argsT"][2] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList_PathArcToFast"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathArcToFast"][1]["argsT"][3] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList_PathArcToFast"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList_PathArcToFast"][1]["argsT"][4] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][4]["name"] = "a_min_of_12" +defs["ImDrawList_PathArcToFast"][1]["argsT"][4]["type"] = "int" +defs["ImDrawList_PathArcToFast"][1]["argsT"][5] = {} +defs["ImDrawList_PathArcToFast"][1]["argsT"][5]["name"] = "a_max_of_12" +defs["ImDrawList_PathArcToFast"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_PathArcToFast"][1]["argsoriginal"] = "(const ImVec2& center,float radius,int a_min_of_12,int a_max_of_12)" +defs["ImDrawList_PathArcToFast"][1]["call_args"] = "(center,radius,a_min_of_12,a_max_of_12)" +defs["ImDrawList_PathArcToFast"][1]["cimguiname"] = "ImDrawList_PathArcToFast" +defs["ImDrawList_PathArcToFast"][1]["defaults"] = {} +defs["ImDrawList_PathArcToFast"][1]["funcname"] = "PathArcToFast" +defs["ImDrawList_PathArcToFast"][1]["location"] = "imgui:2575" +defs["ImDrawList_PathArcToFast"][1]["ov_cimguiname"] = "ImDrawList_PathArcToFast" +defs["ImDrawList_PathArcToFast"][1]["ret"] = "void" +defs["ImDrawList_PathArcToFast"][1]["signature"] = "(const ImVec2,float,int,int)" +defs["ImDrawList_PathArcToFast"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathArcToFast"]["(const ImVec2,float,int,int)"] = defs["ImDrawList_PathArcToFast"][1] +defs["ImDrawList_PathBezierCubicCurveTo"] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["args"] = "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments)" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][1] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][2] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][2]["name"] = "p2" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][3] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][3]["name"] = "p3" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][4] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][4]["name"] = "p4" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][5] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][5]["name"] = "num_segments" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["argsoriginal"] = "(const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,int num_segments=0)" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["call_args"] = "(p2,p3,p4,num_segments)" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["cimguiname"] = "ImDrawList_PathBezierCubicCurveTo" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["defaults"] = {} +defs["ImDrawList_PathBezierCubicCurveTo"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["funcname"] = "PathBezierCubicCurveTo" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["location"] = "imgui:2576" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["ov_cimguiname"] = "ImDrawList_PathBezierCubicCurveTo" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["ret"] = "void" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,int)" +defs["ImDrawList_PathBezierCubicCurveTo"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathBezierCubicCurveTo"]["(const ImVec2,const ImVec2,const ImVec2,int)"] = defs["ImDrawList_PathBezierCubicCurveTo"][1] +defs["ImDrawList_PathBezierQuadraticCurveTo"] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["args"] = "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments)" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][1] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][2] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][2]["name"] = "p2" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][3] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][3]["name"] = "p3" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][4] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][4]["name"] = "num_segments" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsT"][4]["type"] = "int" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["argsoriginal"] = "(const ImVec2& p2,const ImVec2& p3,int num_segments=0)" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["call_args"] = "(p2,p3,num_segments)" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["cimguiname"] = "ImDrawList_PathBezierQuadraticCurveTo" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["defaults"] = {} +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["defaults"]["num_segments"] = "0" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["funcname"] = "PathBezierQuadraticCurveTo" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["location"] = "imgui:2577" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["ov_cimguiname"] = "ImDrawList_PathBezierQuadraticCurveTo" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["ret"] = "void" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["signature"] = "(const ImVec2,const ImVec2,int)" +defs["ImDrawList_PathBezierQuadraticCurveTo"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathBezierQuadraticCurveTo"]["(const ImVec2,const ImVec2,int)"] = defs["ImDrawList_PathBezierQuadraticCurveTo"][1] +defs["ImDrawList_PathClear"] = {} +defs["ImDrawList_PathClear"][1] = {} +defs["ImDrawList_PathClear"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_PathClear"][1]["argsT"] = {} +defs["ImDrawList_PathClear"][1]["argsT"][1] = {} +defs["ImDrawList_PathClear"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathClear"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathClear"][1]["argsoriginal"] = "()" +defs["ImDrawList_PathClear"][1]["call_args"] = "()" +defs["ImDrawList_PathClear"][1]["cimguiname"] = "ImDrawList_PathClear" +defs["ImDrawList_PathClear"][1]["defaults"] = {} +defs["ImDrawList_PathClear"][1]["funcname"] = "PathClear" +defs["ImDrawList_PathClear"][1]["location"] = "imgui:2569" +defs["ImDrawList_PathClear"][1]["ov_cimguiname"] = "ImDrawList_PathClear" +defs["ImDrawList_PathClear"][1]["ret"] = "void" +defs["ImDrawList_PathClear"][1]["signature"] = "()" +defs["ImDrawList_PathClear"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathClear"]["()"] = defs["ImDrawList_PathClear"][1] +defs["ImDrawList_PathFillConvex"] = {} +defs["ImDrawList_PathFillConvex"][1] = {} +defs["ImDrawList_PathFillConvex"][1]["args"] = "(ImDrawList* self,ImU32 col)" +defs["ImDrawList_PathFillConvex"][1]["argsT"] = {} +defs["ImDrawList_PathFillConvex"][1]["argsT"][1] = {} +defs["ImDrawList_PathFillConvex"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathFillConvex"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathFillConvex"][1]["argsT"][2] = {} +defs["ImDrawList_PathFillConvex"][1]["argsT"][2]["name"] = "col" +defs["ImDrawList_PathFillConvex"][1]["argsT"][2]["type"] = "ImU32" +defs["ImDrawList_PathFillConvex"][1]["argsoriginal"] = "(ImU32 col)" +defs["ImDrawList_PathFillConvex"][1]["call_args"] = "(col)" +defs["ImDrawList_PathFillConvex"][1]["cimguiname"] = "ImDrawList_PathFillConvex" +defs["ImDrawList_PathFillConvex"][1]["defaults"] = {} +defs["ImDrawList_PathFillConvex"][1]["funcname"] = "PathFillConvex" +defs["ImDrawList_PathFillConvex"][1]["location"] = "imgui:2572" +defs["ImDrawList_PathFillConvex"][1]["ov_cimguiname"] = "ImDrawList_PathFillConvex" +defs["ImDrawList_PathFillConvex"][1]["ret"] = "void" +defs["ImDrawList_PathFillConvex"][1]["signature"] = "(ImU32)" +defs["ImDrawList_PathFillConvex"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathFillConvex"]["(ImU32)"] = defs["ImDrawList_PathFillConvex"][1] +defs["ImDrawList_PathLineTo"] = {} +defs["ImDrawList_PathLineTo"][1] = {} +defs["ImDrawList_PathLineTo"][1]["args"] = "(ImDrawList* self,const ImVec2 pos)" +defs["ImDrawList_PathLineTo"][1]["argsT"] = {} +defs["ImDrawList_PathLineTo"][1]["argsT"][1] = {} +defs["ImDrawList_PathLineTo"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathLineTo"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathLineTo"][1]["argsT"][2] = {} +defs["ImDrawList_PathLineTo"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_PathLineTo"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathLineTo"][1]["argsoriginal"] = "(const ImVec2& pos)" +defs["ImDrawList_PathLineTo"][1]["call_args"] = "(pos)" +defs["ImDrawList_PathLineTo"][1]["cimguiname"] = "ImDrawList_PathLineTo" +defs["ImDrawList_PathLineTo"][1]["defaults"] = {} +defs["ImDrawList_PathLineTo"][1]["funcname"] = "PathLineTo" +defs["ImDrawList_PathLineTo"][1]["location"] = "imgui:2570" +defs["ImDrawList_PathLineTo"][1]["ov_cimguiname"] = "ImDrawList_PathLineTo" +defs["ImDrawList_PathLineTo"][1]["ret"] = "void" +defs["ImDrawList_PathLineTo"][1]["signature"] = "(const ImVec2)" +defs["ImDrawList_PathLineTo"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathLineTo"]["(const ImVec2)"] = defs["ImDrawList_PathLineTo"][1] +defs["ImDrawList_PathLineToMergeDuplicate"] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["args"] = "(ImDrawList* self,const ImVec2 pos)" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][1] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][2] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["argsoriginal"] = "(const ImVec2& pos)" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["call_args"] = "(pos)" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["cimguiname"] = "ImDrawList_PathLineToMergeDuplicate" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["defaults"] = {} +defs["ImDrawList_PathLineToMergeDuplicate"][1]["funcname"] = "PathLineToMergeDuplicate" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["location"] = "imgui:2571" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["ov_cimguiname"] = "ImDrawList_PathLineToMergeDuplicate" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["ret"] = "void" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["signature"] = "(const ImVec2)" +defs["ImDrawList_PathLineToMergeDuplicate"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathLineToMergeDuplicate"]["(const ImVec2)"] = defs["ImDrawList_PathLineToMergeDuplicate"][1] +defs["ImDrawList_PathRect"] = {} +defs["ImDrawList_PathRect"][1] = {} +defs["ImDrawList_PathRect"][1]["args"] = "(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags)" +defs["ImDrawList_PathRect"][1]["argsT"] = {} +defs["ImDrawList_PathRect"][1]["argsT"][1] = {} +defs["ImDrawList_PathRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathRect"][1]["argsT"][2] = {} +defs["ImDrawList_PathRect"][1]["argsT"][2]["name"] = "rect_min" +defs["ImDrawList_PathRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PathRect"][1]["argsT"][3] = {} +defs["ImDrawList_PathRect"][1]["argsT"][3]["name"] = "rect_max" +defs["ImDrawList_PathRect"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PathRect"][1]["argsT"][4] = {} +defs["ImDrawList_PathRect"][1]["argsT"][4]["name"] = "rounding" +defs["ImDrawList_PathRect"][1]["argsT"][4]["type"] = "float" +defs["ImDrawList_PathRect"][1]["argsT"][5] = {} +defs["ImDrawList_PathRect"][1]["argsT"][5]["name"] = "flags" +defs["ImDrawList_PathRect"][1]["argsT"][5]["type"] = "ImDrawFlags" +defs["ImDrawList_PathRect"][1]["argsoriginal"] = "(const ImVec2& rect_min,const ImVec2& rect_max,float rounding=0.0f,ImDrawFlags flags=0)" +defs["ImDrawList_PathRect"][1]["call_args"] = "(rect_min,rect_max,rounding,flags)" +defs["ImDrawList_PathRect"][1]["cimguiname"] = "ImDrawList_PathRect" +defs["ImDrawList_PathRect"][1]["defaults"] = {} +defs["ImDrawList_PathRect"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_PathRect"][1]["defaults"]["rounding"] = "0.0f" +defs["ImDrawList_PathRect"][1]["funcname"] = "PathRect" +defs["ImDrawList_PathRect"][1]["location"] = "imgui:2578" +defs["ImDrawList_PathRect"][1]["ov_cimguiname"] = "ImDrawList_PathRect" +defs["ImDrawList_PathRect"][1]["ret"] = "void" +defs["ImDrawList_PathRect"][1]["signature"] = "(const ImVec2,const ImVec2,float,ImDrawFlags)" +defs["ImDrawList_PathRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathRect"]["(const ImVec2,const ImVec2,float,ImDrawFlags)"] = defs["ImDrawList_PathRect"][1] +defs["ImDrawList_PathStroke"] = {} +defs["ImDrawList_PathStroke"][1] = {} +defs["ImDrawList_PathStroke"][1]["args"] = "(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness)" +defs["ImDrawList_PathStroke"][1]["argsT"] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][1] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PathStroke"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PathStroke"][1]["argsT"][2] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][2]["name"] = "col" +defs["ImDrawList_PathStroke"][1]["argsT"][2]["type"] = "ImU32" +defs["ImDrawList_PathStroke"][1]["argsT"][3] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][3]["name"] = "flags" +defs["ImDrawList_PathStroke"][1]["argsT"][3]["type"] = "ImDrawFlags" +defs["ImDrawList_PathStroke"][1]["argsT"][4] = {} +defs["ImDrawList_PathStroke"][1]["argsT"][4]["name"] = "thickness" +defs["ImDrawList_PathStroke"][1]["argsT"][4]["type"] = "float" +defs["ImDrawList_PathStroke"][1]["argsoriginal"] = "(ImU32 col,ImDrawFlags flags=0,float thickness=1.0f)" +defs["ImDrawList_PathStroke"][1]["call_args"] = "(col,flags,thickness)" +defs["ImDrawList_PathStroke"][1]["cimguiname"] = "ImDrawList_PathStroke" +defs["ImDrawList_PathStroke"][1]["defaults"] = {} +defs["ImDrawList_PathStroke"][1]["defaults"]["flags"] = "0" +defs["ImDrawList_PathStroke"][1]["defaults"]["thickness"] = "1.0f" +defs["ImDrawList_PathStroke"][1]["funcname"] = "PathStroke" +defs["ImDrawList_PathStroke"][1]["location"] = "imgui:2573" +defs["ImDrawList_PathStroke"][1]["ov_cimguiname"] = "ImDrawList_PathStroke" +defs["ImDrawList_PathStroke"][1]["ret"] = "void" +defs["ImDrawList_PathStroke"][1]["signature"] = "(ImU32,ImDrawFlags,float)" +defs["ImDrawList_PathStroke"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PathStroke"]["(ImU32,ImDrawFlags,float)"] = defs["ImDrawList_PathStroke"][1] +defs["ImDrawList_PopClipRect"] = {} +defs["ImDrawList_PopClipRect"][1] = {} +defs["ImDrawList_PopClipRect"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_PopClipRect"][1]["argsT"] = {} +defs["ImDrawList_PopClipRect"][1]["argsT"][1] = {} +defs["ImDrawList_PopClipRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PopClipRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PopClipRect"][1]["argsoriginal"] = "()" +defs["ImDrawList_PopClipRect"][1]["call_args"] = "()" +defs["ImDrawList_PopClipRect"][1]["cimguiname"] = "ImDrawList_PopClipRect" +defs["ImDrawList_PopClipRect"][1]["defaults"] = {} +defs["ImDrawList_PopClipRect"][1]["funcname"] = "PopClipRect" +defs["ImDrawList_PopClipRect"][1]["location"] = "imgui:2527" +defs["ImDrawList_PopClipRect"][1]["ov_cimguiname"] = "ImDrawList_PopClipRect" +defs["ImDrawList_PopClipRect"][1]["ret"] = "void" +defs["ImDrawList_PopClipRect"][1]["signature"] = "()" +defs["ImDrawList_PopClipRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PopClipRect"]["()"] = defs["ImDrawList_PopClipRect"][1] +defs["ImDrawList_PopTextureID"] = {} +defs["ImDrawList_PopTextureID"][1] = {} +defs["ImDrawList_PopTextureID"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_PopTextureID"][1]["argsT"] = {} +defs["ImDrawList_PopTextureID"][1]["argsT"][1] = {} +defs["ImDrawList_PopTextureID"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PopTextureID"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PopTextureID"][1]["argsoriginal"] = "()" +defs["ImDrawList_PopTextureID"][1]["call_args"] = "()" +defs["ImDrawList_PopTextureID"][1]["cimguiname"] = "ImDrawList_PopTextureID" +defs["ImDrawList_PopTextureID"][1]["defaults"] = {} +defs["ImDrawList_PopTextureID"][1]["funcname"] = "PopTextureID" +defs["ImDrawList_PopTextureID"][1]["location"] = "imgui:2529" +defs["ImDrawList_PopTextureID"][1]["ov_cimguiname"] = "ImDrawList_PopTextureID" +defs["ImDrawList_PopTextureID"][1]["ret"] = "void" +defs["ImDrawList_PopTextureID"][1]["signature"] = "()" +defs["ImDrawList_PopTextureID"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PopTextureID"]["()"] = defs["ImDrawList_PopTextureID"][1] +defs["ImDrawList_PrimQuadUV"] = {} +defs["ImDrawList_PrimQuadUV"][1] = {} +defs["ImDrawList_PrimQuadUV"][1]["args"] = "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col)" +defs["ImDrawList_PrimQuadUV"][1]["argsT"] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][1] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][2] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][2]["name"] = "a" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][3] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][3]["name"] = "b" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][4] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][4]["name"] = "c" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][5] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][5]["name"] = "d" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][6] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][6]["name"] = "uv_a" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][6]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][7] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][7]["name"] = "uv_b" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][7]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][8] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][8]["name"] = "uv_c" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][8]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][9] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][9]["name"] = "uv_d" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][9]["type"] = "const ImVec2" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][10] = {} +defs["ImDrawList_PrimQuadUV"][1]["argsT"][10]["name"] = "col" +defs["ImDrawList_PrimQuadUV"][1]["argsT"][10]["type"] = "ImU32" +defs["ImDrawList_PrimQuadUV"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,const ImVec2& uv_a,const ImVec2& uv_b,const ImVec2& uv_c,const ImVec2& uv_d,ImU32 col)" +defs["ImDrawList_PrimQuadUV"][1]["call_args"] = "(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col)" +defs["ImDrawList_PrimQuadUV"][1]["cimguiname"] = "ImDrawList_PrimQuadUV" +defs["ImDrawList_PrimQuadUV"][1]["defaults"] = {} +defs["ImDrawList_PrimQuadUV"][1]["funcname"] = "PrimQuadUV" +defs["ImDrawList_PrimQuadUV"][1]["location"] = "imgui:2602" +defs["ImDrawList_PrimQuadUV"][1]["ov_cimguiname"] = "ImDrawList_PrimQuadUV" +defs["ImDrawList_PrimQuadUV"][1]["ret"] = "void" +defs["ImDrawList_PrimQuadUV"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimQuadUV"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimQuadUV"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimQuadUV"][1] +defs["ImDrawList_PrimRect"] = {} +defs["ImDrawList_PrimRect"][1] = {} +defs["ImDrawList_PrimRect"][1]["args"] = "(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col)" +defs["ImDrawList_PrimRect"][1]["argsT"] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][1] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimRect"][1]["argsT"][2] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][2]["name"] = "a" +defs["ImDrawList_PrimRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimRect"][1]["argsT"][3] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][3]["name"] = "b" +defs["ImDrawList_PrimRect"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimRect"][1]["argsT"][4] = {} +defs["ImDrawList_PrimRect"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_PrimRect"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_PrimRect"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,ImU32 col)" +defs["ImDrawList_PrimRect"][1]["call_args"] = "(a,b,col)" +defs["ImDrawList_PrimRect"][1]["cimguiname"] = "ImDrawList_PrimRect" +defs["ImDrawList_PrimRect"][1]["defaults"] = {} +defs["ImDrawList_PrimRect"][1]["funcname"] = "PrimRect" +defs["ImDrawList_PrimRect"][1]["location"] = "imgui:2600" +defs["ImDrawList_PrimRect"][1]["ov_cimguiname"] = "ImDrawList_PrimRect" +defs["ImDrawList_PrimRect"][1]["ret"] = "void" +defs["ImDrawList_PrimRect"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimRect"]["(const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimRect"][1] +defs["ImDrawList_PrimRectUV"] = {} +defs["ImDrawList_PrimRectUV"][1] = {} +defs["ImDrawList_PrimRectUV"][1]["args"] = "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col)" +defs["ImDrawList_PrimRectUV"][1]["argsT"] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][1] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimRectUV"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimRectUV"][1]["argsT"][2] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][2]["name"] = "a" +defs["ImDrawList_PrimRectUV"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimRectUV"][1]["argsT"][3] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][3]["name"] = "b" +defs["ImDrawList_PrimRectUV"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimRectUV"][1]["argsT"][4] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][4]["name"] = "uv_a" +defs["ImDrawList_PrimRectUV"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImDrawList_PrimRectUV"][1]["argsT"][5] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][5]["name"] = "uv_b" +defs["ImDrawList_PrimRectUV"][1]["argsT"][5]["type"] = "const ImVec2" +defs["ImDrawList_PrimRectUV"][1]["argsT"][6] = {} +defs["ImDrawList_PrimRectUV"][1]["argsT"][6]["name"] = "col" +defs["ImDrawList_PrimRectUV"][1]["argsT"][6]["type"] = "ImU32" +defs["ImDrawList_PrimRectUV"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,ImU32 col)" +defs["ImDrawList_PrimRectUV"][1]["call_args"] = "(a,b,uv_a,uv_b,col)" +defs["ImDrawList_PrimRectUV"][1]["cimguiname"] = "ImDrawList_PrimRectUV" +defs["ImDrawList_PrimRectUV"][1]["defaults"] = {} +defs["ImDrawList_PrimRectUV"][1]["funcname"] = "PrimRectUV" +defs["ImDrawList_PrimRectUV"][1]["location"] = "imgui:2601" +defs["ImDrawList_PrimRectUV"][1]["ov_cimguiname"] = "ImDrawList_PrimRectUV" +defs["ImDrawList_PrimRectUV"][1]["ret"] = "void" +defs["ImDrawList_PrimRectUV"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimRectUV"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimRectUV"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimRectUV"][1] +defs["ImDrawList_PrimReserve"] = {} +defs["ImDrawList_PrimReserve"][1] = {} +defs["ImDrawList_PrimReserve"][1]["args"] = "(ImDrawList* self,int idx_count,int vtx_count)" +defs["ImDrawList_PrimReserve"][1]["argsT"] = {} +defs["ImDrawList_PrimReserve"][1]["argsT"][1] = {} +defs["ImDrawList_PrimReserve"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimReserve"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimReserve"][1]["argsT"][2] = {} +defs["ImDrawList_PrimReserve"][1]["argsT"][2]["name"] = "idx_count" +defs["ImDrawList_PrimReserve"][1]["argsT"][2]["type"] = "int" +defs["ImDrawList_PrimReserve"][1]["argsT"][3] = {} +defs["ImDrawList_PrimReserve"][1]["argsT"][3]["name"] = "vtx_count" +defs["ImDrawList_PrimReserve"][1]["argsT"][3]["type"] = "int" +defs["ImDrawList_PrimReserve"][1]["argsoriginal"] = "(int idx_count,int vtx_count)" +defs["ImDrawList_PrimReserve"][1]["call_args"] = "(idx_count,vtx_count)" +defs["ImDrawList_PrimReserve"][1]["cimguiname"] = "ImDrawList_PrimReserve" +defs["ImDrawList_PrimReserve"][1]["defaults"] = {} +defs["ImDrawList_PrimReserve"][1]["funcname"] = "PrimReserve" +defs["ImDrawList_PrimReserve"][1]["location"] = "imgui:2598" +defs["ImDrawList_PrimReserve"][1]["ov_cimguiname"] = "ImDrawList_PrimReserve" +defs["ImDrawList_PrimReserve"][1]["ret"] = "void" +defs["ImDrawList_PrimReserve"][1]["signature"] = "(int,int)" +defs["ImDrawList_PrimReserve"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimReserve"]["(int,int)"] = defs["ImDrawList_PrimReserve"][1] +defs["ImDrawList_PrimUnreserve"] = {} +defs["ImDrawList_PrimUnreserve"][1] = {} +defs["ImDrawList_PrimUnreserve"][1]["args"] = "(ImDrawList* self,int idx_count,int vtx_count)" +defs["ImDrawList_PrimUnreserve"][1]["argsT"] = {} +defs["ImDrawList_PrimUnreserve"][1]["argsT"][1] = {} +defs["ImDrawList_PrimUnreserve"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][2] = {} +defs["ImDrawList_PrimUnreserve"][1]["argsT"][2]["name"] = "idx_count" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][2]["type"] = "int" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][3] = {} +defs["ImDrawList_PrimUnreserve"][1]["argsT"][3]["name"] = "vtx_count" +defs["ImDrawList_PrimUnreserve"][1]["argsT"][3]["type"] = "int" +defs["ImDrawList_PrimUnreserve"][1]["argsoriginal"] = "(int idx_count,int vtx_count)" +defs["ImDrawList_PrimUnreserve"][1]["call_args"] = "(idx_count,vtx_count)" +defs["ImDrawList_PrimUnreserve"][1]["cimguiname"] = "ImDrawList_PrimUnreserve" +defs["ImDrawList_PrimUnreserve"][1]["defaults"] = {} +defs["ImDrawList_PrimUnreserve"][1]["funcname"] = "PrimUnreserve" +defs["ImDrawList_PrimUnreserve"][1]["location"] = "imgui:2599" +defs["ImDrawList_PrimUnreserve"][1]["ov_cimguiname"] = "ImDrawList_PrimUnreserve" +defs["ImDrawList_PrimUnreserve"][1]["ret"] = "void" +defs["ImDrawList_PrimUnreserve"][1]["signature"] = "(int,int)" +defs["ImDrawList_PrimUnreserve"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimUnreserve"]["(int,int)"] = defs["ImDrawList_PrimUnreserve"][1] +defs["ImDrawList_PrimVtx"] = {} +defs["ImDrawList_PrimVtx"][1] = {} +defs["ImDrawList_PrimVtx"][1]["args"] = "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)" +defs["ImDrawList_PrimVtx"][1]["argsT"] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][1] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimVtx"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimVtx"][1]["argsT"][2] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_PrimVtx"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimVtx"][1]["argsT"][3] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][3]["name"] = "uv" +defs["ImDrawList_PrimVtx"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimVtx"][1]["argsT"][4] = {} +defs["ImDrawList_PrimVtx"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_PrimVtx"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_PrimVtx"][1]["argsoriginal"] = "(const ImVec2& pos,const ImVec2& uv,ImU32 col)" +defs["ImDrawList_PrimVtx"][1]["call_args"] = "(pos,uv,col)" +defs["ImDrawList_PrimVtx"][1]["cimguiname"] = "ImDrawList_PrimVtx" +defs["ImDrawList_PrimVtx"][1]["defaults"] = {} +defs["ImDrawList_PrimVtx"][1]["funcname"] = "PrimVtx" +defs["ImDrawList_PrimVtx"][1]["location"] = "imgui:2605" +defs["ImDrawList_PrimVtx"][1]["ov_cimguiname"] = "ImDrawList_PrimVtx" +defs["ImDrawList_PrimVtx"][1]["ret"] = "void" +defs["ImDrawList_PrimVtx"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimVtx"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimVtx"]["(const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimVtx"][1] +defs["ImDrawList_PrimWriteIdx"] = {} +defs["ImDrawList_PrimWriteIdx"][1] = {} +defs["ImDrawList_PrimWriteIdx"][1]["args"] = "(ImDrawList* self,ImDrawIdx idx)" +defs["ImDrawList_PrimWriteIdx"][1]["argsT"] = {} +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][1] = {} +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][2] = {} +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][2]["name"] = "idx" +defs["ImDrawList_PrimWriteIdx"][1]["argsT"][2]["type"] = "ImDrawIdx" +defs["ImDrawList_PrimWriteIdx"][1]["argsoriginal"] = "(ImDrawIdx idx)" +defs["ImDrawList_PrimWriteIdx"][1]["call_args"] = "(idx)" +defs["ImDrawList_PrimWriteIdx"][1]["cimguiname"] = "ImDrawList_PrimWriteIdx" +defs["ImDrawList_PrimWriteIdx"][1]["defaults"] = {} +defs["ImDrawList_PrimWriteIdx"][1]["funcname"] = "PrimWriteIdx" +defs["ImDrawList_PrimWriteIdx"][1]["location"] = "imgui:2604" +defs["ImDrawList_PrimWriteIdx"][1]["ov_cimguiname"] = "ImDrawList_PrimWriteIdx" +defs["ImDrawList_PrimWriteIdx"][1]["ret"] = "void" +defs["ImDrawList_PrimWriteIdx"][1]["signature"] = "(ImDrawIdx)" +defs["ImDrawList_PrimWriteIdx"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimWriteIdx"]["(ImDrawIdx)"] = defs["ImDrawList_PrimWriteIdx"][1] +defs["ImDrawList_PrimWriteVtx"] = {} +defs["ImDrawList_PrimWriteVtx"][1] = {} +defs["ImDrawList_PrimWriteVtx"][1]["args"] = "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][1] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][2] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][2]["name"] = "pos" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][3] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][3]["name"] = "uv" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][4] = {} +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][4]["name"] = "col" +defs["ImDrawList_PrimWriteVtx"][1]["argsT"][4]["type"] = "ImU32" +defs["ImDrawList_PrimWriteVtx"][1]["argsoriginal"] = "(const ImVec2& pos,const ImVec2& uv,ImU32 col)" +defs["ImDrawList_PrimWriteVtx"][1]["call_args"] = "(pos,uv,col)" +defs["ImDrawList_PrimWriteVtx"][1]["cimguiname"] = "ImDrawList_PrimWriteVtx" +defs["ImDrawList_PrimWriteVtx"][1]["defaults"] = {} +defs["ImDrawList_PrimWriteVtx"][1]["funcname"] = "PrimWriteVtx" +defs["ImDrawList_PrimWriteVtx"][1]["location"] = "imgui:2603" +defs["ImDrawList_PrimWriteVtx"][1]["ov_cimguiname"] = "ImDrawList_PrimWriteVtx" +defs["ImDrawList_PrimWriteVtx"][1]["ret"] = "void" +defs["ImDrawList_PrimWriteVtx"][1]["signature"] = "(const ImVec2,const ImVec2,ImU32)" +defs["ImDrawList_PrimWriteVtx"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PrimWriteVtx"]["(const ImVec2,const ImVec2,ImU32)"] = defs["ImDrawList_PrimWriteVtx"][1] +defs["ImDrawList_PushClipRect"] = {} +defs["ImDrawList_PushClipRect"][1] = {} +defs["ImDrawList_PushClipRect"][1]["args"] = "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)" +defs["ImDrawList_PushClipRect"][1]["argsT"] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][1] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PushClipRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PushClipRect"][1]["argsT"][2] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][2]["name"] = "clip_rect_min" +defs["ImDrawList_PushClipRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList_PushClipRect"][1]["argsT"][3] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][3]["name"] = "clip_rect_max" +defs["ImDrawList_PushClipRect"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImDrawList_PushClipRect"][1]["argsT"][4] = {} +defs["ImDrawList_PushClipRect"][1]["argsT"][4]["name"] = "intersect_with_current_clip_rect" +defs["ImDrawList_PushClipRect"][1]["argsT"][4]["type"] = "bool" +defs["ImDrawList_PushClipRect"][1]["argsoriginal"] = "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)" +defs["ImDrawList_PushClipRect"][1]["call_args"] = "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)" +defs["ImDrawList_PushClipRect"][1]["cimguiname"] = "ImDrawList_PushClipRect" +defs["ImDrawList_PushClipRect"][1]["defaults"] = {} +defs["ImDrawList_PushClipRect"][1]["defaults"]["intersect_with_current_clip_rect"] = "false" +defs["ImDrawList_PushClipRect"][1]["funcname"] = "PushClipRect" +defs["ImDrawList_PushClipRect"][1]["location"] = "imgui:2525" +defs["ImDrawList_PushClipRect"][1]["ov_cimguiname"] = "ImDrawList_PushClipRect" +defs["ImDrawList_PushClipRect"][1]["ret"] = "void" +defs["ImDrawList_PushClipRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" +defs["ImDrawList_PushClipRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PushClipRect"]["(const ImVec2,const ImVec2,bool)"] = defs["ImDrawList_PushClipRect"][1] +defs["ImDrawList_PushClipRectFullScreen"] = {} +defs["ImDrawList_PushClipRectFullScreen"][1] = {} +defs["ImDrawList_PushClipRectFullScreen"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_PushClipRectFullScreen"][1]["argsT"] = {} +defs["ImDrawList_PushClipRectFullScreen"][1]["argsT"][1] = {} +defs["ImDrawList_PushClipRectFullScreen"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PushClipRectFullScreen"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PushClipRectFullScreen"][1]["argsoriginal"] = "()" +defs["ImDrawList_PushClipRectFullScreen"][1]["call_args"] = "()" +defs["ImDrawList_PushClipRectFullScreen"][1]["cimguiname"] = "ImDrawList_PushClipRectFullScreen" +defs["ImDrawList_PushClipRectFullScreen"][1]["defaults"] = {} +defs["ImDrawList_PushClipRectFullScreen"][1]["funcname"] = "PushClipRectFullScreen" +defs["ImDrawList_PushClipRectFullScreen"][1]["location"] = "imgui:2526" +defs["ImDrawList_PushClipRectFullScreen"][1]["ov_cimguiname"] = "ImDrawList_PushClipRectFullScreen" +defs["ImDrawList_PushClipRectFullScreen"][1]["ret"] = "void" +defs["ImDrawList_PushClipRectFullScreen"][1]["signature"] = "()" +defs["ImDrawList_PushClipRectFullScreen"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PushClipRectFullScreen"]["()"] = defs["ImDrawList_PushClipRectFullScreen"][1] +defs["ImDrawList_PushTextureID"] = {} +defs["ImDrawList_PushTextureID"][1] = {} +defs["ImDrawList_PushTextureID"][1]["args"] = "(ImDrawList* self,ImTextureID texture_id)" +defs["ImDrawList_PushTextureID"][1]["argsT"] = {} +defs["ImDrawList_PushTextureID"][1]["argsT"][1] = {} +defs["ImDrawList_PushTextureID"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_PushTextureID"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_PushTextureID"][1]["argsT"][2] = {} +defs["ImDrawList_PushTextureID"][1]["argsT"][2]["name"] = "texture_id" +defs["ImDrawList_PushTextureID"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImDrawList_PushTextureID"][1]["argsoriginal"] = "(ImTextureID texture_id)" +defs["ImDrawList_PushTextureID"][1]["call_args"] = "(texture_id)" +defs["ImDrawList_PushTextureID"][1]["cimguiname"] = "ImDrawList_PushTextureID" +defs["ImDrawList_PushTextureID"][1]["defaults"] = {} +defs["ImDrawList_PushTextureID"][1]["funcname"] = "PushTextureID" +defs["ImDrawList_PushTextureID"][1]["location"] = "imgui:2528" +defs["ImDrawList_PushTextureID"][1]["ov_cimguiname"] = "ImDrawList_PushTextureID" +defs["ImDrawList_PushTextureID"][1]["ret"] = "void" +defs["ImDrawList_PushTextureID"][1]["signature"] = "(ImTextureID)" +defs["ImDrawList_PushTextureID"][1]["stname"] = "ImDrawList" +defs["ImDrawList_PushTextureID"]["(ImTextureID)"] = defs["ImDrawList_PushTextureID"][1] +defs["ImDrawList__CalcCircleAutoSegmentCount"] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["args"] = "(ImDrawList* self,float radius)" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][1] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][2] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][2]["name"] = "radius" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsT"][2]["type"] = "float" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["argsoriginal"] = "(float radius)" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["call_args"] = "(radius)" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["cimguiname"] = "ImDrawList__CalcCircleAutoSegmentCount" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["defaults"] = {} +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["funcname"] = "_CalcCircleAutoSegmentCount" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["location"] = "imgui:2620" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["ov_cimguiname"] = "ImDrawList__CalcCircleAutoSegmentCount" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["ret"] = "int" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["signature"] = "(float)const" +defs["ImDrawList__CalcCircleAutoSegmentCount"][1]["stname"] = "ImDrawList" +defs["ImDrawList__CalcCircleAutoSegmentCount"]["(float)const"] = defs["ImDrawList__CalcCircleAutoSegmentCount"][1] +defs["ImDrawList__ClearFreeMemory"] = {} +defs["ImDrawList__ClearFreeMemory"][1] = {} +defs["ImDrawList__ClearFreeMemory"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__ClearFreeMemory"][1]["argsT"] = {} +defs["ImDrawList__ClearFreeMemory"][1]["argsT"][1] = {} +defs["ImDrawList__ClearFreeMemory"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__ClearFreeMemory"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__ClearFreeMemory"][1]["argsoriginal"] = "()" +defs["ImDrawList__ClearFreeMemory"][1]["call_args"] = "()" +defs["ImDrawList__ClearFreeMemory"][1]["cimguiname"] = "ImDrawList__ClearFreeMemory" +defs["ImDrawList__ClearFreeMemory"][1]["defaults"] = {} +defs["ImDrawList__ClearFreeMemory"][1]["funcname"] = "_ClearFreeMemory" +defs["ImDrawList__ClearFreeMemory"][1]["location"] = "imgui:2614" +defs["ImDrawList__ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawList__ClearFreeMemory" +defs["ImDrawList__ClearFreeMemory"][1]["ret"] = "void" +defs["ImDrawList__ClearFreeMemory"][1]["signature"] = "()" +defs["ImDrawList__ClearFreeMemory"][1]["stname"] = "ImDrawList" +defs["ImDrawList__ClearFreeMemory"]["()"] = defs["ImDrawList__ClearFreeMemory"][1] +defs["ImDrawList__OnChangedClipRect"] = {} +defs["ImDrawList__OnChangedClipRect"][1] = {} +defs["ImDrawList__OnChangedClipRect"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__OnChangedClipRect"][1]["argsT"] = {} +defs["ImDrawList__OnChangedClipRect"][1]["argsT"][1] = {} +defs["ImDrawList__OnChangedClipRect"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__OnChangedClipRect"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__OnChangedClipRect"][1]["argsoriginal"] = "()" +defs["ImDrawList__OnChangedClipRect"][1]["call_args"] = "()" +defs["ImDrawList__OnChangedClipRect"][1]["cimguiname"] = "ImDrawList__OnChangedClipRect" +defs["ImDrawList__OnChangedClipRect"][1]["defaults"] = {} +defs["ImDrawList__OnChangedClipRect"][1]["funcname"] = "_OnChangedClipRect" +defs["ImDrawList__OnChangedClipRect"][1]["location"] = "imgui:2617" +defs["ImDrawList__OnChangedClipRect"][1]["ov_cimguiname"] = "ImDrawList__OnChangedClipRect" +defs["ImDrawList__OnChangedClipRect"][1]["ret"] = "void" +defs["ImDrawList__OnChangedClipRect"][1]["signature"] = "()" +defs["ImDrawList__OnChangedClipRect"][1]["stname"] = "ImDrawList" +defs["ImDrawList__OnChangedClipRect"]["()"] = defs["ImDrawList__OnChangedClipRect"][1] +defs["ImDrawList__OnChangedTextureID"] = {} +defs["ImDrawList__OnChangedTextureID"][1] = {} +defs["ImDrawList__OnChangedTextureID"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__OnChangedTextureID"][1]["argsT"] = {} +defs["ImDrawList__OnChangedTextureID"][1]["argsT"][1] = {} +defs["ImDrawList__OnChangedTextureID"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__OnChangedTextureID"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__OnChangedTextureID"][1]["argsoriginal"] = "()" +defs["ImDrawList__OnChangedTextureID"][1]["call_args"] = "()" +defs["ImDrawList__OnChangedTextureID"][1]["cimguiname"] = "ImDrawList__OnChangedTextureID" +defs["ImDrawList__OnChangedTextureID"][1]["defaults"] = {} +defs["ImDrawList__OnChangedTextureID"][1]["funcname"] = "_OnChangedTextureID" +defs["ImDrawList__OnChangedTextureID"][1]["location"] = "imgui:2618" +defs["ImDrawList__OnChangedTextureID"][1]["ov_cimguiname"] = "ImDrawList__OnChangedTextureID" +defs["ImDrawList__OnChangedTextureID"][1]["ret"] = "void" +defs["ImDrawList__OnChangedTextureID"][1]["signature"] = "()" +defs["ImDrawList__OnChangedTextureID"][1]["stname"] = "ImDrawList" +defs["ImDrawList__OnChangedTextureID"]["()"] = defs["ImDrawList__OnChangedTextureID"][1] +defs["ImDrawList__OnChangedVtxOffset"] = {} +defs["ImDrawList__OnChangedVtxOffset"][1] = {} +defs["ImDrawList__OnChangedVtxOffset"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__OnChangedVtxOffset"][1]["argsT"] = {} +defs["ImDrawList__OnChangedVtxOffset"][1]["argsT"][1] = {} +defs["ImDrawList__OnChangedVtxOffset"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__OnChangedVtxOffset"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__OnChangedVtxOffset"][1]["argsoriginal"] = "()" +defs["ImDrawList__OnChangedVtxOffset"][1]["call_args"] = "()" +defs["ImDrawList__OnChangedVtxOffset"][1]["cimguiname"] = "ImDrawList__OnChangedVtxOffset" +defs["ImDrawList__OnChangedVtxOffset"][1]["defaults"] = {} +defs["ImDrawList__OnChangedVtxOffset"][1]["funcname"] = "_OnChangedVtxOffset" +defs["ImDrawList__OnChangedVtxOffset"][1]["location"] = "imgui:2619" +defs["ImDrawList__OnChangedVtxOffset"][1]["ov_cimguiname"] = "ImDrawList__OnChangedVtxOffset" +defs["ImDrawList__OnChangedVtxOffset"][1]["ret"] = "void" +defs["ImDrawList__OnChangedVtxOffset"][1]["signature"] = "()" +defs["ImDrawList__OnChangedVtxOffset"][1]["stname"] = "ImDrawList" +defs["ImDrawList__OnChangedVtxOffset"]["()"] = defs["ImDrawList__OnChangedVtxOffset"][1] +defs["ImDrawList__PathArcToFastEx"] = {} +defs["ImDrawList__PathArcToFastEx"][1] = {} +defs["ImDrawList__PathArcToFastEx"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step)" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][1] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][2] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][3] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][4] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][4]["name"] = "a_min_sample" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][4]["type"] = "int" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][5] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][5]["name"] = "a_max_sample" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][5]["type"] = "int" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][6] = {} +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][6]["name"] = "a_step" +defs["ImDrawList__PathArcToFastEx"][1]["argsT"][6]["type"] = "int" +defs["ImDrawList__PathArcToFastEx"][1]["argsoriginal"] = "(const ImVec2& center,float radius,int a_min_sample,int a_max_sample,int a_step)" +defs["ImDrawList__PathArcToFastEx"][1]["call_args"] = "(center,radius,a_min_sample,a_max_sample,a_step)" +defs["ImDrawList__PathArcToFastEx"][1]["cimguiname"] = "ImDrawList__PathArcToFastEx" +defs["ImDrawList__PathArcToFastEx"][1]["defaults"] = {} +defs["ImDrawList__PathArcToFastEx"][1]["funcname"] = "_PathArcToFastEx" +defs["ImDrawList__PathArcToFastEx"][1]["location"] = "imgui:2621" +defs["ImDrawList__PathArcToFastEx"][1]["ov_cimguiname"] = "ImDrawList__PathArcToFastEx" +defs["ImDrawList__PathArcToFastEx"][1]["ret"] = "void" +defs["ImDrawList__PathArcToFastEx"][1]["signature"] = "(const ImVec2,float,int,int,int)" +defs["ImDrawList__PathArcToFastEx"][1]["stname"] = "ImDrawList" +defs["ImDrawList__PathArcToFastEx"]["(const ImVec2,float,int,int,int)"] = defs["ImDrawList__PathArcToFastEx"][1] +defs["ImDrawList__PathArcToN"] = {} +defs["ImDrawList__PathArcToN"][1] = {} +defs["ImDrawList__PathArcToN"][1]["args"] = "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)" +defs["ImDrawList__PathArcToN"][1]["argsT"] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][1] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__PathArcToN"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__PathArcToN"][1]["argsT"][2] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][2]["name"] = "center" +defs["ImDrawList__PathArcToN"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImDrawList__PathArcToN"][1]["argsT"][3] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][3]["name"] = "radius" +defs["ImDrawList__PathArcToN"][1]["argsT"][3]["type"] = "float" +defs["ImDrawList__PathArcToN"][1]["argsT"][4] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][4]["name"] = "a_min" +defs["ImDrawList__PathArcToN"][1]["argsT"][4]["type"] = "float" +defs["ImDrawList__PathArcToN"][1]["argsT"][5] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][5]["name"] = "a_max" +defs["ImDrawList__PathArcToN"][1]["argsT"][5]["type"] = "float" +defs["ImDrawList__PathArcToN"][1]["argsT"][6] = {} +defs["ImDrawList__PathArcToN"][1]["argsT"][6]["name"] = "num_segments" +defs["ImDrawList__PathArcToN"][1]["argsT"][6]["type"] = "int" +defs["ImDrawList__PathArcToN"][1]["argsoriginal"] = "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments)" +defs["ImDrawList__PathArcToN"][1]["call_args"] = "(center,radius,a_min,a_max,num_segments)" +defs["ImDrawList__PathArcToN"][1]["cimguiname"] = "ImDrawList__PathArcToN" +defs["ImDrawList__PathArcToN"][1]["defaults"] = {} +defs["ImDrawList__PathArcToN"][1]["funcname"] = "_PathArcToN" +defs["ImDrawList__PathArcToN"][1]["location"] = "imgui:2622" +defs["ImDrawList__PathArcToN"][1]["ov_cimguiname"] = "ImDrawList__PathArcToN" +defs["ImDrawList__PathArcToN"][1]["ret"] = "void" +defs["ImDrawList__PathArcToN"][1]["signature"] = "(const ImVec2,float,float,float,int)" +defs["ImDrawList__PathArcToN"][1]["stname"] = "ImDrawList" +defs["ImDrawList__PathArcToN"]["(const ImVec2,float,float,float,int)"] = defs["ImDrawList__PathArcToN"][1] +defs["ImDrawList__PopUnusedDrawCmd"] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsT"] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsT"][1] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__PopUnusedDrawCmd"][1]["argsoriginal"] = "()" +defs["ImDrawList__PopUnusedDrawCmd"][1]["call_args"] = "()" +defs["ImDrawList__PopUnusedDrawCmd"][1]["cimguiname"] = "ImDrawList__PopUnusedDrawCmd" +defs["ImDrawList__PopUnusedDrawCmd"][1]["defaults"] = {} +defs["ImDrawList__PopUnusedDrawCmd"][1]["funcname"] = "_PopUnusedDrawCmd" +defs["ImDrawList__PopUnusedDrawCmd"][1]["location"] = "imgui:2615" +defs["ImDrawList__PopUnusedDrawCmd"][1]["ov_cimguiname"] = "ImDrawList__PopUnusedDrawCmd" +defs["ImDrawList__PopUnusedDrawCmd"][1]["ret"] = "void" +defs["ImDrawList__PopUnusedDrawCmd"][1]["signature"] = "()" +defs["ImDrawList__PopUnusedDrawCmd"][1]["stname"] = "ImDrawList" +defs["ImDrawList__PopUnusedDrawCmd"]["()"] = defs["ImDrawList__PopUnusedDrawCmd"][1] +defs["ImDrawList__ResetForNewFrame"] = {} +defs["ImDrawList__ResetForNewFrame"][1] = {} +defs["ImDrawList__ResetForNewFrame"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__ResetForNewFrame"][1]["argsT"] = {} +defs["ImDrawList__ResetForNewFrame"][1]["argsT"][1] = {} +defs["ImDrawList__ResetForNewFrame"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__ResetForNewFrame"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__ResetForNewFrame"][1]["argsoriginal"] = "()" +defs["ImDrawList__ResetForNewFrame"][1]["call_args"] = "()" +defs["ImDrawList__ResetForNewFrame"][1]["cimguiname"] = "ImDrawList__ResetForNewFrame" +defs["ImDrawList__ResetForNewFrame"][1]["defaults"] = {} +defs["ImDrawList__ResetForNewFrame"][1]["funcname"] = "_ResetForNewFrame" +defs["ImDrawList__ResetForNewFrame"][1]["location"] = "imgui:2613" +defs["ImDrawList__ResetForNewFrame"][1]["ov_cimguiname"] = "ImDrawList__ResetForNewFrame" +defs["ImDrawList__ResetForNewFrame"][1]["ret"] = "void" +defs["ImDrawList__ResetForNewFrame"][1]["signature"] = "()" +defs["ImDrawList__ResetForNewFrame"][1]["stname"] = "ImDrawList" +defs["ImDrawList__ResetForNewFrame"]["()"] = defs["ImDrawList__ResetForNewFrame"][1] +defs["ImDrawList__TryMergeDrawCmds"] = {} +defs["ImDrawList__TryMergeDrawCmds"][1] = {} +defs["ImDrawList__TryMergeDrawCmds"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList__TryMergeDrawCmds"][1]["argsT"] = {} +defs["ImDrawList__TryMergeDrawCmds"][1]["argsT"][1] = {} +defs["ImDrawList__TryMergeDrawCmds"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList__TryMergeDrawCmds"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList__TryMergeDrawCmds"][1]["argsoriginal"] = "()" +defs["ImDrawList__TryMergeDrawCmds"][1]["call_args"] = "()" +defs["ImDrawList__TryMergeDrawCmds"][1]["cimguiname"] = "ImDrawList__TryMergeDrawCmds" +defs["ImDrawList__TryMergeDrawCmds"][1]["defaults"] = {} +defs["ImDrawList__TryMergeDrawCmds"][1]["funcname"] = "_TryMergeDrawCmds" +defs["ImDrawList__TryMergeDrawCmds"][1]["location"] = "imgui:2616" +defs["ImDrawList__TryMergeDrawCmds"][1]["ov_cimguiname"] = "ImDrawList__TryMergeDrawCmds" +defs["ImDrawList__TryMergeDrawCmds"][1]["ret"] = "void" +defs["ImDrawList__TryMergeDrawCmds"][1]["signature"] = "()" +defs["ImDrawList__TryMergeDrawCmds"][1]["stname"] = "ImDrawList" +defs["ImDrawList__TryMergeDrawCmds"]["()"] = defs["ImDrawList__TryMergeDrawCmds"][1] +defs["ImDrawList_destroy"] = {} +defs["ImDrawList_destroy"][1] = {} +defs["ImDrawList_destroy"][1]["args"] = "(ImDrawList* self)" +defs["ImDrawList_destroy"][1]["argsT"] = {} +defs["ImDrawList_destroy"][1]["argsT"][1] = {} +defs["ImDrawList_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImDrawList_destroy"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["ImDrawList_destroy"][1]["call_args"] = "(self)" +defs["ImDrawList_destroy"][1]["cimguiname"] = "ImDrawList_destroy" +defs["ImDrawList_destroy"][1]["defaults"] = {} +defs["ImDrawList_destroy"][1]["destructor"] = true +defs["ImDrawList_destroy"][1]["location"] = "imgui:2524" +defs["ImDrawList_destroy"][1]["ov_cimguiname"] = "ImDrawList_destroy" +defs["ImDrawList_destroy"][1]["realdestructor"] = true +defs["ImDrawList_destroy"][1]["ret"] = "void" +defs["ImDrawList_destroy"][1]["signature"] = "(ImDrawList*)" +defs["ImDrawList_destroy"][1]["stname"] = "ImDrawList" +defs["ImDrawList_destroy"]["(ImDrawList*)"] = defs["ImDrawList_destroy"][1] +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"] = {} +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1] = {} +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["args"] = "()" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["argsT"] = {} +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["argsoriginal"] = "()" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["call_args"] = "()" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["cimguiname"] = "ImFontAtlasCustomRect_ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["constructor"] = true +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["defaults"] = {} +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["funcname"] = "ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["location"] = "imgui:2714" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["signature"] = "()" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1]["stname"] = "ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"]["()"] = defs["ImFontAtlasCustomRect_ImFontAtlasCustomRect"][1] +defs["ImFontAtlasCustomRect_IsPacked"] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1]["args"] = "(ImFontAtlasCustomRect* self)" +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsT"] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsT"][1] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsT"][1]["type"] = "ImFontAtlasCustomRect*" +defs["ImFontAtlasCustomRect_IsPacked"][1]["argsoriginal"] = "()" +defs["ImFontAtlasCustomRect_IsPacked"][1]["call_args"] = "()" +defs["ImFontAtlasCustomRect_IsPacked"][1]["cimguiname"] = "ImFontAtlasCustomRect_IsPacked" +defs["ImFontAtlasCustomRect_IsPacked"][1]["defaults"] = {} +defs["ImFontAtlasCustomRect_IsPacked"][1]["funcname"] = "IsPacked" +defs["ImFontAtlasCustomRect_IsPacked"][1]["location"] = "imgui:2715" +defs["ImFontAtlasCustomRect_IsPacked"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_IsPacked" +defs["ImFontAtlasCustomRect_IsPacked"][1]["ret"] = "bool" +defs["ImFontAtlasCustomRect_IsPacked"][1]["signature"] = "()const" +defs["ImFontAtlasCustomRect_IsPacked"][1]["stname"] = "ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_IsPacked"]["()const"] = defs["ImFontAtlasCustomRect_IsPacked"][1] +defs["ImFontAtlasCustomRect_destroy"] = {} +defs["ImFontAtlasCustomRect_destroy"][1] = {} +defs["ImFontAtlasCustomRect_destroy"][1]["args"] = "(ImFontAtlasCustomRect* self)" +defs["ImFontAtlasCustomRect_destroy"][1]["argsT"] = {} +defs["ImFontAtlasCustomRect_destroy"][1]["argsT"][1] = {} +defs["ImFontAtlasCustomRect_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlasCustomRect_destroy"][1]["argsT"][1]["type"] = "ImFontAtlasCustomRect*" +defs["ImFontAtlasCustomRect_destroy"][1]["call_args"] = "(self)" +defs["ImFontAtlasCustomRect_destroy"][1]["cimguiname"] = "ImFontAtlasCustomRect_destroy" +defs["ImFontAtlasCustomRect_destroy"][1]["defaults"] = {} +defs["ImFontAtlasCustomRect_destroy"][1]["destructor"] = true +defs["ImFontAtlasCustomRect_destroy"][1]["ov_cimguiname"] = "ImFontAtlasCustomRect_destroy" +defs["ImFontAtlasCustomRect_destroy"][1]["ret"] = "void" +defs["ImFontAtlasCustomRect_destroy"][1]["signature"] = "(ImFontAtlasCustomRect*)" +defs["ImFontAtlasCustomRect_destroy"][1]["stname"] = "ImFontAtlasCustomRect" +defs["ImFontAtlasCustomRect_destroy"]["(ImFontAtlasCustomRect*)"] = defs["ImFontAtlasCustomRect_destroy"][1] +defs["ImFontAtlas_AddCustomRectFontGlyph"] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["args"] = "(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset)" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][2]["name"] = "font" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][2]["type"] = "ImFont*" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][3]["name"] = "id" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][3]["type"] = "ImWchar" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][4]["name"] = "width" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][4]["type"] = "int" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][5]["name"] = "height" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][5]["type"] = "int" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][6] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][6]["name"] = "advance_x" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][6]["type"] = "float" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][7] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][7]["name"] = "offset" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsT"][7]["type"] = "const ImVec2" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["argsoriginal"] = "(ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2& offset=ImVec2(0,0))" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["call_args"] = "(font,id,width,height,advance_x,offset)" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["cimguiname"] = "ImFontAtlas_AddCustomRectFontGlyph" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["defaults"] = {} +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["defaults"]["offset"] = "ImVec2(0,0)" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["funcname"] = "AddCustomRectFontGlyph" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["location"] = "imgui:2799" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["ov_cimguiname"] = "ImFontAtlas_AddCustomRectFontGlyph" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["ret"] = "int" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["signature"] = "(ImFont*,ImWchar,int,int,float,const ImVec2)" +defs["ImFontAtlas_AddCustomRectFontGlyph"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddCustomRectFontGlyph"]["(ImFont*,ImWchar,int,int,float,const ImVec2)"] = defs["ImFontAtlas_AddCustomRectFontGlyph"][1] +defs["ImFontAtlas_AddCustomRectRegular"] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["args"] = "(ImFontAtlas* self,int width,int height)" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][2]["name"] = "width" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][2]["type"] = "int" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][3]["name"] = "height" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsT"][3]["type"] = "int" +defs["ImFontAtlas_AddCustomRectRegular"][1]["argsoriginal"] = "(int width,int height)" +defs["ImFontAtlas_AddCustomRectRegular"][1]["call_args"] = "(width,height)" +defs["ImFontAtlas_AddCustomRectRegular"][1]["cimguiname"] = "ImFontAtlas_AddCustomRectRegular" +defs["ImFontAtlas_AddCustomRectRegular"][1]["defaults"] = {} +defs["ImFontAtlas_AddCustomRectRegular"][1]["funcname"] = "AddCustomRectRegular" +defs["ImFontAtlas_AddCustomRectRegular"][1]["location"] = "imgui:2798" +defs["ImFontAtlas_AddCustomRectRegular"][1]["ov_cimguiname"] = "ImFontAtlas_AddCustomRectRegular" +defs["ImFontAtlas_AddCustomRectRegular"][1]["ret"] = "int" +defs["ImFontAtlas_AddCustomRectRegular"][1]["signature"] = "(int,int)" +defs["ImFontAtlas_AddCustomRectRegular"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddCustomRectRegular"]["(int,int)"] = defs["ImFontAtlas_AddCustomRectRegular"][1] +defs["ImFontAtlas_AddFont"] = {} +defs["ImFontAtlas_AddFont"][1] = {} +defs["ImFontAtlas_AddFont"][1]["args"] = "(ImFontAtlas* self,const ImFontConfig* font_cfg)" +defs["ImFontAtlas_AddFont"][1]["argsT"] = {} +defs["ImFontAtlas_AddFont"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFont"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFont"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFont"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFont"][1]["argsT"][2]["name"] = "font_cfg" +defs["ImFontAtlas_AddFont"][1]["argsT"][2]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFont"][1]["argsoriginal"] = "(const ImFontConfig* font_cfg)" +defs["ImFontAtlas_AddFont"][1]["call_args"] = "(font_cfg)" +defs["ImFontAtlas_AddFont"][1]["cimguiname"] = "ImFontAtlas_AddFont" +defs["ImFontAtlas_AddFont"][1]["defaults"] = {} +defs["ImFontAtlas_AddFont"][1]["funcname"] = "AddFont" +defs["ImFontAtlas_AddFont"][1]["location"] = "imgui:2748" +defs["ImFontAtlas_AddFont"][1]["ov_cimguiname"] = "ImFontAtlas_AddFont" +defs["ImFontAtlas_AddFont"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFont"][1]["signature"] = "(const ImFontConfig*)" +defs["ImFontAtlas_AddFont"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFont"]["(const ImFontConfig*)"] = defs["ImFontAtlas_AddFont"][1] +defs["ImFontAtlas_AddFontDefault"] = {} +defs["ImFontAtlas_AddFontDefault"][1] = {} +defs["ImFontAtlas_AddFontDefault"][1]["args"] = "(ImFontAtlas* self,const ImFontConfig* font_cfg)" +defs["ImFontAtlas_AddFontDefault"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][2]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontDefault"][1]["argsT"][2]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontDefault"][1]["argsoriginal"] = "(const ImFontConfig* font_cfg=((void*)0))" +defs["ImFontAtlas_AddFontDefault"][1]["call_args"] = "(font_cfg)" +defs["ImFontAtlas_AddFontDefault"][1]["cimguiname"] = "ImFontAtlas_AddFontDefault" +defs["ImFontAtlas_AddFontDefault"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontDefault"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontDefault"][1]["funcname"] = "AddFontDefault" +defs["ImFontAtlas_AddFontDefault"][1]["location"] = "imgui:2749" +defs["ImFontAtlas_AddFontDefault"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontDefault" +defs["ImFontAtlas_AddFontDefault"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontDefault"][1]["signature"] = "(const ImFontConfig*)" +defs["ImFontAtlas_AddFontDefault"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontDefault"]["(const ImFontConfig*)"] = defs["ImFontAtlas_AddFontDefault"][1] +defs["ImFontAtlas_AddFontFromFileTTF"] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["args"] = "(ImFontAtlas* self,const char* filename,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][2]["name"] = "filename" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][2]["type"] = "const char*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][3]["name"] = "size_pixels" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][3]["type"] = "float" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][4]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][4]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][5]["name"] = "glyph_ranges" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsT"][5]["type"] = "const ImWchar*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["argsoriginal"] = "(const char* filename,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["call_args"] = "(filename,size_pixels,font_cfg,glyph_ranges)" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["cimguiname"] = "ImFontAtlas_AddFontFromFileTTF" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["defaults"]["glyph_ranges"] = "NULL" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["funcname"] = "AddFontFromFileTTF" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["location"] = "imgui:2750" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromFileTTF" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["signature"] = "(const char*,float,const ImFontConfig*,const ImWchar*)" +defs["ImFontAtlas_AddFontFromFileTTF"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontFromFileTTF"]["(const char*,float,const ImFontConfig*,const ImWchar*)"] = defs["ImFontAtlas_AddFontFromFileTTF"][1] +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["args"] = "(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][2]["name"] = "compressed_font_data_base85" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][2]["type"] = "const char*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][3]["name"] = "size_pixels" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][3]["type"] = "float" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][4]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][4]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][5]["name"] = "glyph_ranges" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsT"][5]["type"] = "const ImWchar*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["argsoriginal"] = "(const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["call_args"] = "(compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["defaults"]["glyph_ranges"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["funcname"] = "AddFontFromMemoryCompressedBase85TTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["location"] = "imgui:2753" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["signature"] = "(const char*,float,const ImFontConfig*,const ImWchar*)" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"]["(const char*,float,const ImFontConfig*,const ImWchar*)"] = defs["ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"][1] +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["args"] = "(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][2]["name"] = "compressed_font_data" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][2]["type"] = "const void*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][3]["name"] = "compressed_font_size" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][3]["type"] = "int" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][4]["name"] = "size_pixels" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][4]["type"] = "float" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][5]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][5]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][6] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][6]["name"] = "glyph_ranges" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsT"][6]["type"] = "const ImWchar*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["argsoriginal"] = "(const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["call_args"] = "(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedTTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["defaults"]["glyph_ranges"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["funcname"] = "AddFontFromMemoryCompressedTTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["location"] = "imgui:2752" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryCompressedTTF" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["signature"] = "(const void*,int,float,const ImFontConfig*,const ImWchar*)" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"]["(const void*,int,float,const ImFontConfig*,const ImWchar*)"] = defs["ImFontAtlas_AddFontFromMemoryCompressedTTF"][1] +defs["ImFontAtlas_AddFontFromMemoryTTF"] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["args"] = "(ImFontAtlas* self,void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][1] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][2] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][2]["name"] = "font_data" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][2]["type"] = "void*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][3] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][3]["name"] = "font_size" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][3]["type"] = "int" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][4] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][4]["name"] = "size_pixels" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][4]["type"] = "float" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][5] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][5]["name"] = "font_cfg" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][5]["type"] = "const ImFontConfig*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][6] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][6]["name"] = "glyph_ranges" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsT"][6]["type"] = "const ImWchar*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["argsoriginal"] = "(void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["call_args"] = "(font_data,font_size,size_pixels,font_cfg,glyph_ranges)" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["cimguiname"] = "ImFontAtlas_AddFontFromMemoryTTF" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"] = {} +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"]["font_cfg"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["defaults"]["glyph_ranges"] = "NULL" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["funcname"] = "AddFontFromMemoryTTF" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["location"] = "imgui:2751" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["ov_cimguiname"] = "ImFontAtlas_AddFontFromMemoryTTF" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["ret"] = "ImFont*" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["signature"] = "(void*,int,float,const ImFontConfig*,const ImWchar*)" +defs["ImFontAtlas_AddFontFromMemoryTTF"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_AddFontFromMemoryTTF"]["(void*,int,float,const ImFontConfig*,const ImWchar*)"] = defs["ImFontAtlas_AddFontFromMemoryTTF"][1] +defs["ImFontAtlas_Build"] = {} +defs["ImFontAtlas_Build"][1] = {} +defs["ImFontAtlas_Build"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_Build"][1]["argsT"] = {} +defs["ImFontAtlas_Build"][1]["argsT"][1] = {} +defs["ImFontAtlas_Build"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_Build"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_Build"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_Build"][1]["call_args"] = "()" +defs["ImFontAtlas_Build"][1]["cimguiname"] = "ImFontAtlas_Build" +defs["ImFontAtlas_Build"][1]["defaults"] = {} +defs["ImFontAtlas_Build"][1]["funcname"] = "Build" +defs["ImFontAtlas_Build"][1]["location"] = "imgui:2764" +defs["ImFontAtlas_Build"][1]["ov_cimguiname"] = "ImFontAtlas_Build" +defs["ImFontAtlas_Build"][1]["ret"] = "bool" +defs["ImFontAtlas_Build"][1]["signature"] = "()" +defs["ImFontAtlas_Build"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_Build"]["()"] = defs["ImFontAtlas_Build"][1] +defs["ImFontAtlas_CalcCustomRectUV"] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["args"] = "(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][1] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][2] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][2]["name"] = "rect" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][2]["type"] = "const ImFontAtlasCustomRect*" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][3] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][3]["name"] = "out_uv_min" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][3]["type"] = "ImVec2*" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][4] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][4]["name"] = "out_uv_max" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsT"][4]["type"] = "ImVec2*" +defs["ImFontAtlas_CalcCustomRectUV"][1]["argsoriginal"] = "(const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)" +defs["ImFontAtlas_CalcCustomRectUV"][1]["call_args"] = "(rect,out_uv_min,out_uv_max)" +defs["ImFontAtlas_CalcCustomRectUV"][1]["cimguiname"] = "ImFontAtlas_CalcCustomRectUV" +defs["ImFontAtlas_CalcCustomRectUV"][1]["defaults"] = {} +defs["ImFontAtlas_CalcCustomRectUV"][1]["funcname"] = "CalcCustomRectUV" +defs["ImFontAtlas_CalcCustomRectUV"][1]["location"] = "imgui:2803" +defs["ImFontAtlas_CalcCustomRectUV"][1]["ov_cimguiname"] = "ImFontAtlas_CalcCustomRectUV" +defs["ImFontAtlas_CalcCustomRectUV"][1]["ret"] = "void" +defs["ImFontAtlas_CalcCustomRectUV"][1]["signature"] = "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const" +defs["ImFontAtlas_CalcCustomRectUV"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_CalcCustomRectUV"]["(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const"] = defs["ImFontAtlas_CalcCustomRectUV"][1] +defs["ImFontAtlas_Clear"] = {} +defs["ImFontAtlas_Clear"][1] = {} +defs["ImFontAtlas_Clear"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_Clear"][1]["argsT"] = {} +defs["ImFontAtlas_Clear"][1]["argsT"][1] = {} +defs["ImFontAtlas_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_Clear"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_Clear"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_Clear"][1]["call_args"] = "()" +defs["ImFontAtlas_Clear"][1]["cimguiname"] = "ImFontAtlas_Clear" +defs["ImFontAtlas_Clear"][1]["defaults"] = {} +defs["ImFontAtlas_Clear"][1]["funcname"] = "Clear" +defs["ImFontAtlas_Clear"][1]["location"] = "imgui:2757" +defs["ImFontAtlas_Clear"][1]["ov_cimguiname"] = "ImFontAtlas_Clear" +defs["ImFontAtlas_Clear"][1]["ret"] = "void" +defs["ImFontAtlas_Clear"][1]["signature"] = "()" +defs["ImFontAtlas_Clear"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_Clear"]["()"] = defs["ImFontAtlas_Clear"][1] +defs["ImFontAtlas_ClearFonts"] = {} +defs["ImFontAtlas_ClearFonts"][1] = {} +defs["ImFontAtlas_ClearFonts"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_ClearFonts"][1]["argsT"] = {} +defs["ImFontAtlas_ClearFonts"][1]["argsT"][1] = {} +defs["ImFontAtlas_ClearFonts"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_ClearFonts"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_ClearFonts"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_ClearFonts"][1]["call_args"] = "()" +defs["ImFontAtlas_ClearFonts"][1]["cimguiname"] = "ImFontAtlas_ClearFonts" +defs["ImFontAtlas_ClearFonts"][1]["defaults"] = {} +defs["ImFontAtlas_ClearFonts"][1]["funcname"] = "ClearFonts" +defs["ImFontAtlas_ClearFonts"][1]["location"] = "imgui:2756" +defs["ImFontAtlas_ClearFonts"][1]["ov_cimguiname"] = "ImFontAtlas_ClearFonts" +defs["ImFontAtlas_ClearFonts"][1]["ret"] = "void" +defs["ImFontAtlas_ClearFonts"][1]["signature"] = "()" +defs["ImFontAtlas_ClearFonts"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_ClearFonts"]["()"] = defs["ImFontAtlas_ClearFonts"][1] +defs["ImFontAtlas_ClearInputData"] = {} +defs["ImFontAtlas_ClearInputData"][1] = {} +defs["ImFontAtlas_ClearInputData"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_ClearInputData"][1]["argsT"] = {} +defs["ImFontAtlas_ClearInputData"][1]["argsT"][1] = {} +defs["ImFontAtlas_ClearInputData"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_ClearInputData"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_ClearInputData"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_ClearInputData"][1]["call_args"] = "()" +defs["ImFontAtlas_ClearInputData"][1]["cimguiname"] = "ImFontAtlas_ClearInputData" +defs["ImFontAtlas_ClearInputData"][1]["defaults"] = {} +defs["ImFontAtlas_ClearInputData"][1]["funcname"] = "ClearInputData" +defs["ImFontAtlas_ClearInputData"][1]["location"] = "imgui:2754" +defs["ImFontAtlas_ClearInputData"][1]["ov_cimguiname"] = "ImFontAtlas_ClearInputData" +defs["ImFontAtlas_ClearInputData"][1]["ret"] = "void" +defs["ImFontAtlas_ClearInputData"][1]["signature"] = "()" +defs["ImFontAtlas_ClearInputData"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_ClearInputData"]["()"] = defs["ImFontAtlas_ClearInputData"][1] +defs["ImFontAtlas_ClearTexData"] = {} +defs["ImFontAtlas_ClearTexData"][1] = {} +defs["ImFontAtlas_ClearTexData"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_ClearTexData"][1]["argsT"] = {} +defs["ImFontAtlas_ClearTexData"][1]["argsT"][1] = {} +defs["ImFontAtlas_ClearTexData"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_ClearTexData"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_ClearTexData"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_ClearTexData"][1]["call_args"] = "()" +defs["ImFontAtlas_ClearTexData"][1]["cimguiname"] = "ImFontAtlas_ClearTexData" +defs["ImFontAtlas_ClearTexData"][1]["defaults"] = {} +defs["ImFontAtlas_ClearTexData"][1]["funcname"] = "ClearTexData" +defs["ImFontAtlas_ClearTexData"][1]["location"] = "imgui:2755" +defs["ImFontAtlas_ClearTexData"][1]["ov_cimguiname"] = "ImFontAtlas_ClearTexData" +defs["ImFontAtlas_ClearTexData"][1]["ret"] = "void" +defs["ImFontAtlas_ClearTexData"][1]["signature"] = "()" +defs["ImFontAtlas_ClearTexData"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_ClearTexData"]["()"] = defs["ImFontAtlas_ClearTexData"][1] +defs["ImFontAtlas_GetCustomRectByIndex"] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["args"] = "(ImFontAtlas* self,int index)" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][2] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][2]["name"] = "index" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsT"][2]["type"] = "int" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["argsoriginal"] = "(int index)" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["call_args"] = "(index)" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["cimguiname"] = "ImFontAtlas_GetCustomRectByIndex" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["defaults"] = {} +defs["ImFontAtlas_GetCustomRectByIndex"][1]["funcname"] = "GetCustomRectByIndex" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["location"] = "imgui:2800" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["ov_cimguiname"] = "ImFontAtlas_GetCustomRectByIndex" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["ret"] = "ImFontAtlasCustomRect*" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["signature"] = "(int)" +defs["ImFontAtlas_GetCustomRectByIndex"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetCustomRectByIndex"]["(int)"] = defs["ImFontAtlas_GetCustomRectByIndex"][1] +defs["ImFontAtlas_GetGlyphRangesChineseFull"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseFull" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["funcname"] = "GetGlyphRangesChineseFull" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["location"] = "imgui:2781" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseFull" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseFull"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesChineseFull"]["()"] = defs["ImFontAtlas_GetGlyphRangesChineseFull"][1] +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["funcname"] = "GetGlyphRangesChineseSimplifiedCommon" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["location"] = "imgui:2782" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"]["()"] = defs["ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"][1] +defs["ImFontAtlas_GetGlyphRangesCyrillic"] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesCyrillic" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["funcname"] = "GetGlyphRangesCyrillic" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["location"] = "imgui:2783" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesCyrillic" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesCyrillic"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesCyrillic"]["()"] = defs["ImFontAtlas_GetGlyphRangesCyrillic"][1] +defs["ImFontAtlas_GetGlyphRangesDefault"] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesDefault" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["funcname"] = "GetGlyphRangesDefault" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["location"] = "imgui:2777" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesDefault" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesDefault"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesDefault"]["()"] = defs["ImFontAtlas_GetGlyphRangesDefault"][1] +defs["ImFontAtlas_GetGlyphRangesGreek"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["funcname"] = "GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["location"] = "imgui:2778" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesGreek" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesGreek"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesGreek"]["()"] = defs["ImFontAtlas_GetGlyphRangesGreek"][1] +defs["ImFontAtlas_GetGlyphRangesJapanese"] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesJapanese" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["funcname"] = "GetGlyphRangesJapanese" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["location"] = "imgui:2780" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesJapanese" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesJapanese"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesJapanese"]["()"] = defs["ImFontAtlas_GetGlyphRangesJapanese"][1] +defs["ImFontAtlas_GetGlyphRangesKorean"] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesKorean" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["funcname"] = "GetGlyphRangesKorean" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["location"] = "imgui:2779" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesKorean" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesKorean"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesKorean"]["()"] = defs["ImFontAtlas_GetGlyphRangesKorean"][1] +defs["ImFontAtlas_GetGlyphRangesThai"] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesThai" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesThai"][1]["funcname"] = "GetGlyphRangesThai" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["location"] = "imgui:2784" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesThai" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesThai"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesThai"]["()"] = defs["ImFontAtlas_GetGlyphRangesThai"][1] +defs["ImFontAtlas_GetGlyphRangesVietnamese"] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsT"] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["call_args"] = "()" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["cimguiname"] = "ImFontAtlas_GetGlyphRangesVietnamese" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["defaults"] = {} +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["funcname"] = "GetGlyphRangesVietnamese" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["location"] = "imgui:2785" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["ov_cimguiname"] = "ImFontAtlas_GetGlyphRangesVietnamese" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["ret"] = "const ImWchar*" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["signature"] = "()" +defs["ImFontAtlas_GetGlyphRangesVietnamese"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetGlyphRangesVietnamese"]["()"] = defs["ImFontAtlas_GetGlyphRangesVietnamese"][1] +defs["ImFontAtlas_GetMouseCursorTexData"] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["args"] = "(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][2] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][2]["name"] = "cursor" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][2]["type"] = "ImGuiMouseCursor" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][3] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][3]["name"] = "out_offset" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][3]["type"] = "ImVec2*" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][4] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][4]["name"] = "out_size" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][4]["type"] = "ImVec2*" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][5] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][5]["name"] = "out_uv_border" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][5]["type"] = "ImVec2[2]" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][6] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][6]["name"] = "out_uv_fill" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsT"][6]["type"] = "ImVec2[2]" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["argsoriginal"] = "(ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["call_args"] = "(cursor,out_offset,out_size,out_uv_border,out_uv_fill)" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["cimguiname"] = "ImFontAtlas_GetMouseCursorTexData" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["defaults"] = {} +defs["ImFontAtlas_GetMouseCursorTexData"][1]["funcname"] = "GetMouseCursorTexData" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["location"] = "imgui:2804" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["ov_cimguiname"] = "ImFontAtlas_GetMouseCursorTexData" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["ret"] = "bool" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["signature"] = "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])" +defs["ImFontAtlas_GetMouseCursorTexData"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetMouseCursorTexData"]["(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])"] = defs["ImFontAtlas_GetMouseCursorTexData"][1] +defs["ImFontAtlas_GetTexDataAsAlpha8"] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["args"] = "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][2] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][2]["name"] = "out_pixels" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][2]["type"] = "unsigned char**" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][3] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][3]["name"] = "out_width" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][3]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][4] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][4]["name"] = "out_height" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][4]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][5] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][5]["name"] = "out_bytes_per_pixel" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsT"][5]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["argsoriginal"] = "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["call_args"] = "(out_pixels,out_width,out_height,out_bytes_per_pixel)" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["cimguiname"] = "ImFontAtlas_GetTexDataAsAlpha8" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["defaults"] = {} +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["defaults"]["out_bytes_per_pixel"] = "NULL" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["funcname"] = "GetTexDataAsAlpha8" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["location"] = "imgui:2765" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["ov_cimguiname"] = "ImFontAtlas_GetTexDataAsAlpha8" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["ret"] = "void" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["signature"] = "(unsigned char**,int*,int*,int*)" +defs["ImFontAtlas_GetTexDataAsAlpha8"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetTexDataAsAlpha8"]["(unsigned char**,int*,int*,int*)"] = defs["ImFontAtlas_GetTexDataAsAlpha8"][1] +defs["ImFontAtlas_GetTexDataAsRGBA32"] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["args"] = "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][1] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][2] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][2]["name"] = "out_pixels" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][2]["type"] = "unsigned char**" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][3] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][3]["name"] = "out_width" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][3]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][4] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][4]["name"] = "out_height" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][4]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][5] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][5]["name"] = "out_bytes_per_pixel" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsT"][5]["type"] = "int*" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["argsoriginal"] = "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["call_args"] = "(out_pixels,out_width,out_height,out_bytes_per_pixel)" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["cimguiname"] = "ImFontAtlas_GetTexDataAsRGBA32" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["defaults"] = {} +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["defaults"]["out_bytes_per_pixel"] = "NULL" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["funcname"] = "GetTexDataAsRGBA32" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["location"] = "imgui:2766" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["ov_cimguiname"] = "ImFontAtlas_GetTexDataAsRGBA32" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["ret"] = "void" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["signature"] = "(unsigned char**,int*,int*,int*)" +defs["ImFontAtlas_GetTexDataAsRGBA32"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_GetTexDataAsRGBA32"]["(unsigned char**,int*,int*,int*)"] = defs["ImFontAtlas_GetTexDataAsRGBA32"][1] +defs["ImFontAtlas_ImFontAtlas"] = {} +defs["ImFontAtlas_ImFontAtlas"][1] = {} +defs["ImFontAtlas_ImFontAtlas"][1]["args"] = "()" +defs["ImFontAtlas_ImFontAtlas"][1]["argsT"] = {} +defs["ImFontAtlas_ImFontAtlas"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_ImFontAtlas"][1]["call_args"] = "()" +defs["ImFontAtlas_ImFontAtlas"][1]["cimguiname"] = "ImFontAtlas_ImFontAtlas" +defs["ImFontAtlas_ImFontAtlas"][1]["constructor"] = true +defs["ImFontAtlas_ImFontAtlas"][1]["defaults"] = {} +defs["ImFontAtlas_ImFontAtlas"][1]["funcname"] = "ImFontAtlas" +defs["ImFontAtlas_ImFontAtlas"][1]["location"] = "imgui:2746" +defs["ImFontAtlas_ImFontAtlas"][1]["ov_cimguiname"] = "ImFontAtlas_ImFontAtlas" +defs["ImFontAtlas_ImFontAtlas"][1]["signature"] = "()" +defs["ImFontAtlas_ImFontAtlas"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_ImFontAtlas"]["()"] = defs["ImFontAtlas_ImFontAtlas"][1] +defs["ImFontAtlas_IsBuilt"] = {} +defs["ImFontAtlas_IsBuilt"][1] = {} +defs["ImFontAtlas_IsBuilt"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_IsBuilt"][1]["argsT"] = {} +defs["ImFontAtlas_IsBuilt"][1]["argsT"][1] = {} +defs["ImFontAtlas_IsBuilt"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_IsBuilt"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_IsBuilt"][1]["argsoriginal"] = "()" +defs["ImFontAtlas_IsBuilt"][1]["call_args"] = "()" +defs["ImFontAtlas_IsBuilt"][1]["cimguiname"] = "ImFontAtlas_IsBuilt" +defs["ImFontAtlas_IsBuilt"][1]["defaults"] = {} +defs["ImFontAtlas_IsBuilt"][1]["funcname"] = "IsBuilt" +defs["ImFontAtlas_IsBuilt"][1]["location"] = "imgui:2767" +defs["ImFontAtlas_IsBuilt"][1]["ov_cimguiname"] = "ImFontAtlas_IsBuilt" +defs["ImFontAtlas_IsBuilt"][1]["ret"] = "bool" +defs["ImFontAtlas_IsBuilt"][1]["signature"] = "()const" +defs["ImFontAtlas_IsBuilt"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_IsBuilt"]["()const"] = defs["ImFontAtlas_IsBuilt"][1] +defs["ImFontAtlas_SetTexID"] = {} +defs["ImFontAtlas_SetTexID"][1] = {} +defs["ImFontAtlas_SetTexID"][1]["args"] = "(ImFontAtlas* self,ImTextureID id)" +defs["ImFontAtlas_SetTexID"][1]["argsT"] = {} +defs["ImFontAtlas_SetTexID"][1]["argsT"][1] = {} +defs["ImFontAtlas_SetTexID"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_SetTexID"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_SetTexID"][1]["argsT"][2] = {} +defs["ImFontAtlas_SetTexID"][1]["argsT"][2]["name"] = "id" +defs["ImFontAtlas_SetTexID"][1]["argsT"][2]["type"] = "ImTextureID" +defs["ImFontAtlas_SetTexID"][1]["argsoriginal"] = "(ImTextureID id)" +defs["ImFontAtlas_SetTexID"][1]["call_args"] = "(id)" +defs["ImFontAtlas_SetTexID"][1]["cimguiname"] = "ImFontAtlas_SetTexID" +defs["ImFontAtlas_SetTexID"][1]["defaults"] = {} +defs["ImFontAtlas_SetTexID"][1]["funcname"] = "SetTexID" +defs["ImFontAtlas_SetTexID"][1]["location"] = "imgui:2768" +defs["ImFontAtlas_SetTexID"][1]["ov_cimguiname"] = "ImFontAtlas_SetTexID" +defs["ImFontAtlas_SetTexID"][1]["ret"] = "void" +defs["ImFontAtlas_SetTexID"][1]["signature"] = "(ImTextureID)" +defs["ImFontAtlas_SetTexID"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_SetTexID"]["(ImTextureID)"] = defs["ImFontAtlas_SetTexID"][1] +defs["ImFontAtlas_destroy"] = {} +defs["ImFontAtlas_destroy"][1] = {} +defs["ImFontAtlas_destroy"][1]["args"] = "(ImFontAtlas* self)" +defs["ImFontAtlas_destroy"][1]["argsT"] = {} +defs["ImFontAtlas_destroy"][1]["argsT"][1] = {} +defs["ImFontAtlas_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFontAtlas_destroy"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImFontAtlas_destroy"][1]["call_args"] = "(self)" +defs["ImFontAtlas_destroy"][1]["cimguiname"] = "ImFontAtlas_destroy" +defs["ImFontAtlas_destroy"][1]["defaults"] = {} +defs["ImFontAtlas_destroy"][1]["destructor"] = true +defs["ImFontAtlas_destroy"][1]["location"] = "imgui:2747" +defs["ImFontAtlas_destroy"][1]["ov_cimguiname"] = "ImFontAtlas_destroy" +defs["ImFontAtlas_destroy"][1]["realdestructor"] = true +defs["ImFontAtlas_destroy"][1]["ret"] = "void" +defs["ImFontAtlas_destroy"][1]["signature"] = "(ImFontAtlas*)" +defs["ImFontAtlas_destroy"][1]["stname"] = "ImFontAtlas" +defs["ImFontAtlas_destroy"]["(ImFontAtlas*)"] = defs["ImFontAtlas_destroy"][1] +defs["ImFontConfig_ImFontConfig"] = {} +defs["ImFontConfig_ImFontConfig"][1] = {} +defs["ImFontConfig_ImFontConfig"][1]["args"] = "()" +defs["ImFontConfig_ImFontConfig"][1]["argsT"] = {} +defs["ImFontConfig_ImFontConfig"][1]["argsoriginal"] = "()" +defs["ImFontConfig_ImFontConfig"][1]["call_args"] = "()" +defs["ImFontConfig_ImFontConfig"][1]["cimguiname"] = "ImFontConfig_ImFontConfig" +defs["ImFontConfig_ImFontConfig"][1]["constructor"] = true +defs["ImFontConfig_ImFontConfig"][1]["defaults"] = {} +defs["ImFontConfig_ImFontConfig"][1]["funcname"] = "ImFontConfig" +defs["ImFontConfig_ImFontConfig"][1]["location"] = "imgui:2674" +defs["ImFontConfig_ImFontConfig"][1]["ov_cimguiname"] = "ImFontConfig_ImFontConfig" +defs["ImFontConfig_ImFontConfig"][1]["signature"] = "()" +defs["ImFontConfig_ImFontConfig"][1]["stname"] = "ImFontConfig" +defs["ImFontConfig_ImFontConfig"]["()"] = defs["ImFontConfig_ImFontConfig"][1] +defs["ImFontConfig_destroy"] = {} +defs["ImFontConfig_destroy"][1] = {} +defs["ImFontConfig_destroy"][1]["args"] = "(ImFontConfig* self)" +defs["ImFontConfig_destroy"][1]["argsT"] = {} +defs["ImFontConfig_destroy"][1]["argsT"][1] = {} +defs["ImFontConfig_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFontConfig_destroy"][1]["argsT"][1]["type"] = "ImFontConfig*" +defs["ImFontConfig_destroy"][1]["call_args"] = "(self)" +defs["ImFontConfig_destroy"][1]["cimguiname"] = "ImFontConfig_destroy" +defs["ImFontConfig_destroy"][1]["defaults"] = {} +defs["ImFontConfig_destroy"][1]["destructor"] = true +defs["ImFontConfig_destroy"][1]["ov_cimguiname"] = "ImFontConfig_destroy" +defs["ImFontConfig_destroy"][1]["ret"] = "void" +defs["ImFontConfig_destroy"][1]["signature"] = "(ImFontConfig*)" +defs["ImFontConfig_destroy"][1]["stname"] = "ImFontConfig" +defs["ImFontConfig_destroy"]["(ImFontConfig*)"] = defs["ImFontConfig_destroy"][1] +defs["ImFontGlyphRangesBuilder_AddChar"] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["args"] = "(ImFontGlyphRangesBuilder* self,ImWchar c)" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][2]["name"] = "c" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["argsoriginal"] = "(ImWchar c)" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["call_args"] = "(c)" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddChar" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_AddChar"][1]["funcname"] = "AddChar" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["location"] = "imgui:2699" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddChar" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["signature"] = "(ImWchar)" +defs["ImFontGlyphRangesBuilder_AddChar"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_AddChar"]["(ImWchar)"] = defs["ImFontGlyphRangesBuilder_AddChar"][1] +defs["ImFontGlyphRangesBuilder_AddRanges"] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["args"] = "(ImFontGlyphRangesBuilder* self,const ImWchar* ranges)" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][2]["name"] = "ranges" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsT"][2]["type"] = "const ImWchar*" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["argsoriginal"] = "(const ImWchar* ranges)" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["call_args"] = "(ranges)" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddRanges" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["funcname"] = "AddRanges" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["location"] = "imgui:2701" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddRanges" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["signature"] = "(const ImWchar*)" +defs["ImFontGlyphRangesBuilder_AddRanges"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_AddRanges"]["(const ImWchar*)"] = defs["ImFontGlyphRangesBuilder_AddRanges"][1] +defs["ImFontGlyphRangesBuilder_AddText"] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["args"] = "(ImFontGlyphRangesBuilder* self,const char* text,const char* text_end)" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][2]["name"] = "text" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][2]["type"] = "const char*" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][3] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][3]["name"] = "text_end" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsT"][3]["type"] = "const char*" +defs["ImFontGlyphRangesBuilder_AddText"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0))" +defs["ImFontGlyphRangesBuilder_AddText"][1]["call_args"] = "(text,text_end)" +defs["ImFontGlyphRangesBuilder_AddText"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_AddText" +defs["ImFontGlyphRangesBuilder_AddText"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_AddText"][1]["defaults"]["text_end"] = "NULL" +defs["ImFontGlyphRangesBuilder_AddText"][1]["funcname"] = "AddText" +defs["ImFontGlyphRangesBuilder_AddText"][1]["location"] = "imgui:2700" +defs["ImFontGlyphRangesBuilder_AddText"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_AddText" +defs["ImFontGlyphRangesBuilder_AddText"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_AddText"][1]["signature"] = "(const char*,const char*)" +defs["ImFontGlyphRangesBuilder_AddText"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_AddText"]["(const char*,const char*)"] = defs["ImFontGlyphRangesBuilder_AddText"][1] +defs["ImFontGlyphRangesBuilder_BuildRanges"] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["args"] = "(ImFontGlyphRangesBuilder* self,ImVector_ImWchar* out_ranges)" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][2]["name"] = "out_ranges" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsT"][2]["type"] = "ImVector_ImWchar*" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["argsoriginal"] = "(ImVector* out_ranges)" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["call_args"] = "(out_ranges)" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_BuildRanges" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["funcname"] = "BuildRanges" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["location"] = "imgui:2702" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_BuildRanges" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["signature"] = "(ImVector_ImWchar*)" +defs["ImFontGlyphRangesBuilder_BuildRanges"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_BuildRanges"]["(ImVector_ImWchar*)"] = defs["ImFontGlyphRangesBuilder_BuildRanges"][1] +defs["ImFontGlyphRangesBuilder_Clear"] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1]["args"] = "(ImFontGlyphRangesBuilder* self)" +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_Clear"][1]["argsoriginal"] = "()" +defs["ImFontGlyphRangesBuilder_Clear"][1]["call_args"] = "()" +defs["ImFontGlyphRangesBuilder_Clear"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_Clear" +defs["ImFontGlyphRangesBuilder_Clear"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_Clear"][1]["funcname"] = "Clear" +defs["ImFontGlyphRangesBuilder_Clear"][1]["location"] = "imgui:2696" +defs["ImFontGlyphRangesBuilder_Clear"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_Clear" +defs["ImFontGlyphRangesBuilder_Clear"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_Clear"][1]["signature"] = "()" +defs["ImFontGlyphRangesBuilder_Clear"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_Clear"]["()"] = defs["ImFontGlyphRangesBuilder_Clear"][1] +defs["ImFontGlyphRangesBuilder_GetBit"] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["args"] = "(ImFontGlyphRangesBuilder* self,size_t n)" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][2]["name"] = "n" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsT"][2]["type"] = "size_t" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["argsoriginal"] = "(size_t n)" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["call_args"] = "(n)" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_GetBit" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_GetBit"][1]["funcname"] = "GetBit" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["location"] = "imgui:2697" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_GetBit" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["ret"] = "bool" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["signature"] = "(size_t)const" +defs["ImFontGlyphRangesBuilder_GetBit"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_GetBit"]["(size_t)const"] = defs["ImFontGlyphRangesBuilder_GetBit"][1] +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"] = {} +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1] = {} +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["args"] = "()" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["argsoriginal"] = "()" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["call_args"] = "()" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["constructor"] = true +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["funcname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["location"] = "imgui:2695" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["signature"] = "()" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"]["()"] = defs["ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"][1] +defs["ImFontGlyphRangesBuilder_SetBit"] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["args"] = "(ImFontGlyphRangesBuilder* self,size_t n)" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][2] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][2]["name"] = "n" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsT"][2]["type"] = "size_t" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["argsoriginal"] = "(size_t n)" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["call_args"] = "(n)" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_SetBit" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_SetBit"][1]["funcname"] = "SetBit" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["location"] = "imgui:2698" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_SetBit" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["signature"] = "(size_t)" +defs["ImFontGlyphRangesBuilder_SetBit"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_SetBit"]["(size_t)"] = defs["ImFontGlyphRangesBuilder_SetBit"][1] +defs["ImFontGlyphRangesBuilder_destroy"] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1]["args"] = "(ImFontGlyphRangesBuilder* self)" +defs["ImFontGlyphRangesBuilder_destroy"][1]["argsT"] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1]["argsT"][1] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFontGlyphRangesBuilder_destroy"][1]["argsT"][1]["type"] = "ImFontGlyphRangesBuilder*" +defs["ImFontGlyphRangesBuilder_destroy"][1]["call_args"] = "(self)" +defs["ImFontGlyphRangesBuilder_destroy"][1]["cimguiname"] = "ImFontGlyphRangesBuilder_destroy" +defs["ImFontGlyphRangesBuilder_destroy"][1]["defaults"] = {} +defs["ImFontGlyphRangesBuilder_destroy"][1]["destructor"] = true +defs["ImFontGlyphRangesBuilder_destroy"][1]["ov_cimguiname"] = "ImFontGlyphRangesBuilder_destroy" +defs["ImFontGlyphRangesBuilder_destroy"][1]["ret"] = "void" +defs["ImFontGlyphRangesBuilder_destroy"][1]["signature"] = "(ImFontGlyphRangesBuilder*)" +defs["ImFontGlyphRangesBuilder_destroy"][1]["stname"] = "ImFontGlyphRangesBuilder" +defs["ImFontGlyphRangesBuilder_destroy"]["(ImFontGlyphRangesBuilder*)"] = defs["ImFontGlyphRangesBuilder_destroy"][1] +defs["ImFont_AddGlyph"] = {} +defs["ImFont_AddGlyph"][1] = {} +defs["ImFont_AddGlyph"][1]["args"] = "(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)" +defs["ImFont_AddGlyph"][1]["argsT"] = {} +defs["ImFont_AddGlyph"][1]["argsT"][1] = {} +defs["ImFont_AddGlyph"][1]["argsT"][1]["name"] = "self" +defs["ImFont_AddGlyph"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_AddGlyph"][1]["argsT"][2] = {} +defs["ImFont_AddGlyph"][1]["argsT"][2]["name"] = "src_cfg" +defs["ImFont_AddGlyph"][1]["argsT"][2]["type"] = "const ImFontConfig*" +defs["ImFont_AddGlyph"][1]["argsT"][3] = {} +defs["ImFont_AddGlyph"][1]["argsT"][3]["name"] = "c" +defs["ImFont_AddGlyph"][1]["argsT"][3]["type"] = "ImWchar" +defs["ImFont_AddGlyph"][1]["argsT"][4] = {} +defs["ImFont_AddGlyph"][1]["argsT"][4]["name"] = "x0" +defs["ImFont_AddGlyph"][1]["argsT"][4]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][5] = {} +defs["ImFont_AddGlyph"][1]["argsT"][5]["name"] = "y0" +defs["ImFont_AddGlyph"][1]["argsT"][5]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][6] = {} +defs["ImFont_AddGlyph"][1]["argsT"][6]["name"] = "x1" +defs["ImFont_AddGlyph"][1]["argsT"][6]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][7] = {} +defs["ImFont_AddGlyph"][1]["argsT"][7]["name"] = "y1" +defs["ImFont_AddGlyph"][1]["argsT"][7]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][8] = {} +defs["ImFont_AddGlyph"][1]["argsT"][8]["name"] = "u0" +defs["ImFont_AddGlyph"][1]["argsT"][8]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][9] = {} +defs["ImFont_AddGlyph"][1]["argsT"][9]["name"] = "v0" +defs["ImFont_AddGlyph"][1]["argsT"][9]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][10] = {} +defs["ImFont_AddGlyph"][1]["argsT"][10]["name"] = "u1" +defs["ImFont_AddGlyph"][1]["argsT"][10]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][11] = {} +defs["ImFont_AddGlyph"][1]["argsT"][11]["name"] = "v1" +defs["ImFont_AddGlyph"][1]["argsT"][11]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsT"][12] = {} +defs["ImFont_AddGlyph"][1]["argsT"][12]["name"] = "advance_x" +defs["ImFont_AddGlyph"][1]["argsT"][12]["type"] = "float" +defs["ImFont_AddGlyph"][1]["argsoriginal"] = "(const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)" +defs["ImFont_AddGlyph"][1]["call_args"] = "(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,advance_x)" +defs["ImFont_AddGlyph"][1]["cimguiname"] = "ImFont_AddGlyph" +defs["ImFont_AddGlyph"][1]["defaults"] = {} +defs["ImFont_AddGlyph"][1]["funcname"] = "AddGlyph" +defs["ImFont_AddGlyph"][1]["location"] = "imgui:2891" +defs["ImFont_AddGlyph"][1]["ov_cimguiname"] = "ImFont_AddGlyph" +defs["ImFont_AddGlyph"][1]["ret"] = "void" +defs["ImFont_AddGlyph"][1]["signature"] = "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)" +defs["ImFont_AddGlyph"][1]["stname"] = "ImFont" +defs["ImFont_AddGlyph"]["(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)"] = defs["ImFont_AddGlyph"][1] +defs["ImFont_AddRemapChar"] = {} +defs["ImFont_AddRemapChar"][1] = {} +defs["ImFont_AddRemapChar"][1]["args"] = "(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst)" +defs["ImFont_AddRemapChar"][1]["argsT"] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][1] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][1]["name"] = "self" +defs["ImFont_AddRemapChar"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_AddRemapChar"][1]["argsT"][2] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][2]["name"] = "dst" +defs["ImFont_AddRemapChar"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_AddRemapChar"][1]["argsT"][3] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][3]["name"] = "src" +defs["ImFont_AddRemapChar"][1]["argsT"][3]["type"] = "ImWchar" +defs["ImFont_AddRemapChar"][1]["argsT"][4] = {} +defs["ImFont_AddRemapChar"][1]["argsT"][4]["name"] = "overwrite_dst" +defs["ImFont_AddRemapChar"][1]["argsT"][4]["type"] = "bool" +defs["ImFont_AddRemapChar"][1]["argsoriginal"] = "(ImWchar dst,ImWchar src,bool overwrite_dst=true)" +defs["ImFont_AddRemapChar"][1]["call_args"] = "(dst,src,overwrite_dst)" +defs["ImFont_AddRemapChar"][1]["cimguiname"] = "ImFont_AddRemapChar" +defs["ImFont_AddRemapChar"][1]["defaults"] = {} +defs["ImFont_AddRemapChar"][1]["defaults"]["overwrite_dst"] = "true" +defs["ImFont_AddRemapChar"][1]["funcname"] = "AddRemapChar" +defs["ImFont_AddRemapChar"][1]["location"] = "imgui:2892" +defs["ImFont_AddRemapChar"][1]["ov_cimguiname"] = "ImFont_AddRemapChar" +defs["ImFont_AddRemapChar"][1]["ret"] = "void" +defs["ImFont_AddRemapChar"][1]["signature"] = "(ImWchar,ImWchar,bool)" +defs["ImFont_AddRemapChar"][1]["stname"] = "ImFont" +defs["ImFont_AddRemapChar"]["(ImWchar,ImWchar,bool)"] = defs["ImFont_AddRemapChar"][1] +defs["ImFont_BuildLookupTable"] = {} +defs["ImFont_BuildLookupTable"][1] = {} +defs["ImFont_BuildLookupTable"][1]["args"] = "(ImFont* self)" +defs["ImFont_BuildLookupTable"][1]["argsT"] = {} +defs["ImFont_BuildLookupTable"][1]["argsT"][1] = {} +defs["ImFont_BuildLookupTable"][1]["argsT"][1]["name"] = "self" +defs["ImFont_BuildLookupTable"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_BuildLookupTable"][1]["argsoriginal"] = "()" +defs["ImFont_BuildLookupTable"][1]["call_args"] = "()" +defs["ImFont_BuildLookupTable"][1]["cimguiname"] = "ImFont_BuildLookupTable" +defs["ImFont_BuildLookupTable"][1]["defaults"] = {} +defs["ImFont_BuildLookupTable"][1]["funcname"] = "BuildLookupTable" +defs["ImFont_BuildLookupTable"][1]["location"] = "imgui:2888" +defs["ImFont_BuildLookupTable"][1]["ov_cimguiname"] = "ImFont_BuildLookupTable" +defs["ImFont_BuildLookupTable"][1]["ret"] = "void" +defs["ImFont_BuildLookupTable"][1]["signature"] = "()" +defs["ImFont_BuildLookupTable"][1]["stname"] = "ImFont" +defs["ImFont_BuildLookupTable"]["()"] = defs["ImFont_BuildLookupTable"][1] +defs["ImFont_CalcTextSizeA"] = {} +defs["ImFont_CalcTextSizeA"][1] = {} +defs["ImFont_CalcTextSizeA"][1]["args"] = "(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)" +defs["ImFont_CalcTextSizeA"][1]["argsT"] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][1] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][1]["name"] = "pOut" +defs["ImFont_CalcTextSizeA"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImFont_CalcTextSizeA"][1]["argsT"][2] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][2]["name"] = "self" +defs["ImFont_CalcTextSizeA"][1]["argsT"][2]["type"] = "ImFont*" +defs["ImFont_CalcTextSizeA"][1]["argsT"][3] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][3]["name"] = "size" +defs["ImFont_CalcTextSizeA"][1]["argsT"][3]["type"] = "float" +defs["ImFont_CalcTextSizeA"][1]["argsT"][4] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][4]["name"] = "max_width" +defs["ImFont_CalcTextSizeA"][1]["argsT"][4]["type"] = "float" +defs["ImFont_CalcTextSizeA"][1]["argsT"][5] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][5]["name"] = "wrap_width" +defs["ImFont_CalcTextSizeA"][1]["argsT"][5]["type"] = "float" +defs["ImFont_CalcTextSizeA"][1]["argsT"][6] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][6]["name"] = "text_begin" +defs["ImFont_CalcTextSizeA"][1]["argsT"][6]["type"] = "const char*" +defs["ImFont_CalcTextSizeA"][1]["argsT"][7] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][7]["name"] = "text_end" +defs["ImFont_CalcTextSizeA"][1]["argsT"][7]["type"] = "const char*" +defs["ImFont_CalcTextSizeA"][1]["argsT"][8] = {} +defs["ImFont_CalcTextSizeA"][1]["argsT"][8]["name"] = "remaining" +defs["ImFont_CalcTextSizeA"][1]["argsT"][8]["type"] = "const char**" +defs["ImFont_CalcTextSizeA"][1]["argsoriginal"] = "(float size,float max_width,float wrap_width,const char* text_begin,const char* text_end=((void*)0),const char** remaining=((void*)0))" +defs["ImFont_CalcTextSizeA"][1]["call_args"] = "(size,max_width,wrap_width,text_begin,text_end,remaining)" +defs["ImFont_CalcTextSizeA"][1]["cimguiname"] = "ImFont_CalcTextSizeA" +defs["ImFont_CalcTextSizeA"][1]["defaults"] = {} +defs["ImFont_CalcTextSizeA"][1]["defaults"]["remaining"] = "NULL" +defs["ImFont_CalcTextSizeA"][1]["defaults"]["text_end"] = "NULL" +defs["ImFont_CalcTextSizeA"][1]["funcname"] = "CalcTextSizeA" +defs["ImFont_CalcTextSizeA"][1]["location"] = "imgui:2882" +defs["ImFont_CalcTextSizeA"][1]["nonUDT"] = 1 +defs["ImFont_CalcTextSizeA"][1]["ov_cimguiname"] = "ImFont_CalcTextSizeA" +defs["ImFont_CalcTextSizeA"][1]["ret"] = "void" +defs["ImFont_CalcTextSizeA"][1]["signature"] = "(float,float,float,const char*,const char*,const char**)const" +defs["ImFont_CalcTextSizeA"][1]["stname"] = "ImFont" +defs["ImFont_CalcTextSizeA"]["(float,float,float,const char*,const char*,const char**)const"] = defs["ImFont_CalcTextSizeA"][1] +defs["ImFont_CalcWordWrapPositionA"] = {} +defs["ImFont_CalcWordWrapPositionA"][1] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["args"] = "(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width)" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][1] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][1]["name"] = "self" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][2] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][2]["name"] = "scale" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][2]["type"] = "float" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][3] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][3]["name"] = "text" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][3]["type"] = "const char*" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][4] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][4]["name"] = "text_end" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][4]["type"] = "const char*" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][5] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][5]["name"] = "wrap_width" +defs["ImFont_CalcWordWrapPositionA"][1]["argsT"][5]["type"] = "float" +defs["ImFont_CalcWordWrapPositionA"][1]["argsoriginal"] = "(float scale,const char* text,const char* text_end,float wrap_width)" +defs["ImFont_CalcWordWrapPositionA"][1]["call_args"] = "(scale,text,text_end,wrap_width)" +defs["ImFont_CalcWordWrapPositionA"][1]["cimguiname"] = "ImFont_CalcWordWrapPositionA" +defs["ImFont_CalcWordWrapPositionA"][1]["defaults"] = {} +defs["ImFont_CalcWordWrapPositionA"][1]["funcname"] = "CalcWordWrapPositionA" +defs["ImFont_CalcWordWrapPositionA"][1]["location"] = "imgui:2883" +defs["ImFont_CalcWordWrapPositionA"][1]["ov_cimguiname"] = "ImFont_CalcWordWrapPositionA" +defs["ImFont_CalcWordWrapPositionA"][1]["ret"] = "const char*" +defs["ImFont_CalcWordWrapPositionA"][1]["signature"] = "(float,const char*,const char*,float)const" +defs["ImFont_CalcWordWrapPositionA"][1]["stname"] = "ImFont" +defs["ImFont_CalcWordWrapPositionA"]["(float,const char*,const char*,float)const"] = defs["ImFont_CalcWordWrapPositionA"][1] +defs["ImFont_ClearOutputData"] = {} +defs["ImFont_ClearOutputData"][1] = {} +defs["ImFont_ClearOutputData"][1]["args"] = "(ImFont* self)" +defs["ImFont_ClearOutputData"][1]["argsT"] = {} +defs["ImFont_ClearOutputData"][1]["argsT"][1] = {} +defs["ImFont_ClearOutputData"][1]["argsT"][1]["name"] = "self" +defs["ImFont_ClearOutputData"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_ClearOutputData"][1]["argsoriginal"] = "()" +defs["ImFont_ClearOutputData"][1]["call_args"] = "()" +defs["ImFont_ClearOutputData"][1]["cimguiname"] = "ImFont_ClearOutputData" +defs["ImFont_ClearOutputData"][1]["defaults"] = {} +defs["ImFont_ClearOutputData"][1]["funcname"] = "ClearOutputData" +defs["ImFont_ClearOutputData"][1]["location"] = "imgui:2889" +defs["ImFont_ClearOutputData"][1]["ov_cimguiname"] = "ImFont_ClearOutputData" +defs["ImFont_ClearOutputData"][1]["ret"] = "void" +defs["ImFont_ClearOutputData"][1]["signature"] = "()" +defs["ImFont_ClearOutputData"][1]["stname"] = "ImFont" +defs["ImFont_ClearOutputData"]["()"] = defs["ImFont_ClearOutputData"][1] +defs["ImFont_FindGlyph"] = {} +defs["ImFont_FindGlyph"][1] = {} +defs["ImFont_FindGlyph"][1]["args"] = "(ImFont* self,ImWchar c)" +defs["ImFont_FindGlyph"][1]["argsT"] = {} +defs["ImFont_FindGlyph"][1]["argsT"][1] = {} +defs["ImFont_FindGlyph"][1]["argsT"][1]["name"] = "self" +defs["ImFont_FindGlyph"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_FindGlyph"][1]["argsT"][2] = {} +defs["ImFont_FindGlyph"][1]["argsT"][2]["name"] = "c" +defs["ImFont_FindGlyph"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_FindGlyph"][1]["argsoriginal"] = "(ImWchar c)" +defs["ImFont_FindGlyph"][1]["call_args"] = "(c)" +defs["ImFont_FindGlyph"][1]["cimguiname"] = "ImFont_FindGlyph" +defs["ImFont_FindGlyph"][1]["defaults"] = {} +defs["ImFont_FindGlyph"][1]["funcname"] = "FindGlyph" +defs["ImFont_FindGlyph"][1]["location"] = "imgui:2874" +defs["ImFont_FindGlyph"][1]["ov_cimguiname"] = "ImFont_FindGlyph" +defs["ImFont_FindGlyph"][1]["ret"] = "const ImFontGlyph*" +defs["ImFont_FindGlyph"][1]["signature"] = "(ImWchar)const" +defs["ImFont_FindGlyph"][1]["stname"] = "ImFont" +defs["ImFont_FindGlyph"]["(ImWchar)const"] = defs["ImFont_FindGlyph"][1] +defs["ImFont_FindGlyphNoFallback"] = {} +defs["ImFont_FindGlyphNoFallback"][1] = {} +defs["ImFont_FindGlyphNoFallback"][1]["args"] = "(ImFont* self,ImWchar c)" +defs["ImFont_FindGlyphNoFallback"][1]["argsT"] = {} +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][1] = {} +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][1]["name"] = "self" +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][2] = {} +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][2]["name"] = "c" +defs["ImFont_FindGlyphNoFallback"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_FindGlyphNoFallback"][1]["argsoriginal"] = "(ImWchar c)" +defs["ImFont_FindGlyphNoFallback"][1]["call_args"] = "(c)" +defs["ImFont_FindGlyphNoFallback"][1]["cimguiname"] = "ImFont_FindGlyphNoFallback" +defs["ImFont_FindGlyphNoFallback"][1]["defaults"] = {} +defs["ImFont_FindGlyphNoFallback"][1]["funcname"] = "FindGlyphNoFallback" +defs["ImFont_FindGlyphNoFallback"][1]["location"] = "imgui:2875" +defs["ImFont_FindGlyphNoFallback"][1]["ov_cimguiname"] = "ImFont_FindGlyphNoFallback" +defs["ImFont_FindGlyphNoFallback"][1]["ret"] = "const ImFontGlyph*" +defs["ImFont_FindGlyphNoFallback"][1]["signature"] = "(ImWchar)const" +defs["ImFont_FindGlyphNoFallback"][1]["stname"] = "ImFont" +defs["ImFont_FindGlyphNoFallback"]["(ImWchar)const"] = defs["ImFont_FindGlyphNoFallback"][1] +defs["ImFont_GetCharAdvance"] = {} +defs["ImFont_GetCharAdvance"][1] = {} +defs["ImFont_GetCharAdvance"][1]["args"] = "(ImFont* self,ImWchar c)" +defs["ImFont_GetCharAdvance"][1]["argsT"] = {} +defs["ImFont_GetCharAdvance"][1]["argsT"][1] = {} +defs["ImFont_GetCharAdvance"][1]["argsT"][1]["name"] = "self" +defs["ImFont_GetCharAdvance"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_GetCharAdvance"][1]["argsT"][2] = {} +defs["ImFont_GetCharAdvance"][1]["argsT"][2]["name"] = "c" +defs["ImFont_GetCharAdvance"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_GetCharAdvance"][1]["argsoriginal"] = "(ImWchar c)" +defs["ImFont_GetCharAdvance"][1]["call_args"] = "(c)" +defs["ImFont_GetCharAdvance"][1]["cimguiname"] = "ImFont_GetCharAdvance" +defs["ImFont_GetCharAdvance"][1]["defaults"] = {} +defs["ImFont_GetCharAdvance"][1]["funcname"] = "GetCharAdvance" +defs["ImFont_GetCharAdvance"][1]["location"] = "imgui:2876" +defs["ImFont_GetCharAdvance"][1]["ov_cimguiname"] = "ImFont_GetCharAdvance" +defs["ImFont_GetCharAdvance"][1]["ret"] = "float" +defs["ImFont_GetCharAdvance"][1]["signature"] = "(ImWchar)const" +defs["ImFont_GetCharAdvance"][1]["stname"] = "ImFont" +defs["ImFont_GetCharAdvance"]["(ImWchar)const"] = defs["ImFont_GetCharAdvance"][1] +defs["ImFont_GetDebugName"] = {} +defs["ImFont_GetDebugName"][1] = {} +defs["ImFont_GetDebugName"][1]["args"] = "(ImFont* self)" +defs["ImFont_GetDebugName"][1]["argsT"] = {} +defs["ImFont_GetDebugName"][1]["argsT"][1] = {} +defs["ImFont_GetDebugName"][1]["argsT"][1]["name"] = "self" +defs["ImFont_GetDebugName"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_GetDebugName"][1]["argsoriginal"] = "()" +defs["ImFont_GetDebugName"][1]["call_args"] = "()" +defs["ImFont_GetDebugName"][1]["cimguiname"] = "ImFont_GetDebugName" +defs["ImFont_GetDebugName"][1]["defaults"] = {} +defs["ImFont_GetDebugName"][1]["funcname"] = "GetDebugName" +defs["ImFont_GetDebugName"][1]["location"] = "imgui:2878" +defs["ImFont_GetDebugName"][1]["ov_cimguiname"] = "ImFont_GetDebugName" +defs["ImFont_GetDebugName"][1]["ret"] = "const char*" +defs["ImFont_GetDebugName"][1]["signature"] = "()const" +defs["ImFont_GetDebugName"][1]["stname"] = "ImFont" +defs["ImFont_GetDebugName"]["()const"] = defs["ImFont_GetDebugName"][1] +defs["ImFont_GrowIndex"] = {} +defs["ImFont_GrowIndex"][1] = {} +defs["ImFont_GrowIndex"][1]["args"] = "(ImFont* self,int new_size)" +defs["ImFont_GrowIndex"][1]["argsT"] = {} +defs["ImFont_GrowIndex"][1]["argsT"][1] = {} +defs["ImFont_GrowIndex"][1]["argsT"][1]["name"] = "self" +defs["ImFont_GrowIndex"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_GrowIndex"][1]["argsT"][2] = {} +defs["ImFont_GrowIndex"][1]["argsT"][2]["name"] = "new_size" +defs["ImFont_GrowIndex"][1]["argsT"][2]["type"] = "int" +defs["ImFont_GrowIndex"][1]["argsoriginal"] = "(int new_size)" +defs["ImFont_GrowIndex"][1]["call_args"] = "(new_size)" +defs["ImFont_GrowIndex"][1]["cimguiname"] = "ImFont_GrowIndex" +defs["ImFont_GrowIndex"][1]["defaults"] = {} +defs["ImFont_GrowIndex"][1]["funcname"] = "GrowIndex" +defs["ImFont_GrowIndex"][1]["location"] = "imgui:2890" +defs["ImFont_GrowIndex"][1]["ov_cimguiname"] = "ImFont_GrowIndex" +defs["ImFont_GrowIndex"][1]["ret"] = "void" +defs["ImFont_GrowIndex"][1]["signature"] = "(int)" +defs["ImFont_GrowIndex"][1]["stname"] = "ImFont" +defs["ImFont_GrowIndex"]["(int)"] = defs["ImFont_GrowIndex"][1] +defs["ImFont_ImFont"] = {} +defs["ImFont_ImFont"][1] = {} +defs["ImFont_ImFont"][1]["args"] = "()" +defs["ImFont_ImFont"][1]["argsT"] = {} +defs["ImFont_ImFont"][1]["argsoriginal"] = "()" +defs["ImFont_ImFont"][1]["call_args"] = "()" +defs["ImFont_ImFont"][1]["cimguiname"] = "ImFont_ImFont" +defs["ImFont_ImFont"][1]["constructor"] = true +defs["ImFont_ImFont"][1]["defaults"] = {} +defs["ImFont_ImFont"][1]["funcname"] = "ImFont" +defs["ImFont_ImFont"][1]["location"] = "imgui:2872" +defs["ImFont_ImFont"][1]["ov_cimguiname"] = "ImFont_ImFont" +defs["ImFont_ImFont"][1]["signature"] = "()" +defs["ImFont_ImFont"][1]["stname"] = "ImFont" +defs["ImFont_ImFont"]["()"] = defs["ImFont_ImFont"][1] +defs["ImFont_IsGlyphRangeUnused"] = {} +defs["ImFont_IsGlyphRangeUnused"][1] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["args"] = "(ImFont* self,unsigned int c_begin,unsigned int c_last)" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][1] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][1]["name"] = "self" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][2] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][2]["name"] = "c_begin" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][2]["type"] = "unsigned int" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][3] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][3]["name"] = "c_last" +defs["ImFont_IsGlyphRangeUnused"][1]["argsT"][3]["type"] = "unsigned int" +defs["ImFont_IsGlyphRangeUnused"][1]["argsoriginal"] = "(unsigned int c_begin,unsigned int c_last)" +defs["ImFont_IsGlyphRangeUnused"][1]["call_args"] = "(c_begin,c_last)" +defs["ImFont_IsGlyphRangeUnused"][1]["cimguiname"] = "ImFont_IsGlyphRangeUnused" +defs["ImFont_IsGlyphRangeUnused"][1]["defaults"] = {} +defs["ImFont_IsGlyphRangeUnused"][1]["funcname"] = "IsGlyphRangeUnused" +defs["ImFont_IsGlyphRangeUnused"][1]["location"] = "imgui:2894" +defs["ImFont_IsGlyphRangeUnused"][1]["ov_cimguiname"] = "ImFont_IsGlyphRangeUnused" +defs["ImFont_IsGlyphRangeUnused"][1]["ret"] = "bool" +defs["ImFont_IsGlyphRangeUnused"][1]["signature"] = "(unsigned int,unsigned int)" +defs["ImFont_IsGlyphRangeUnused"][1]["stname"] = "ImFont" +defs["ImFont_IsGlyphRangeUnused"]["(unsigned int,unsigned int)"] = defs["ImFont_IsGlyphRangeUnused"][1] +defs["ImFont_IsLoaded"] = {} +defs["ImFont_IsLoaded"][1] = {} +defs["ImFont_IsLoaded"][1]["args"] = "(ImFont* self)" +defs["ImFont_IsLoaded"][1]["argsT"] = {} +defs["ImFont_IsLoaded"][1]["argsT"][1] = {} +defs["ImFont_IsLoaded"][1]["argsT"][1]["name"] = "self" +defs["ImFont_IsLoaded"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_IsLoaded"][1]["argsoriginal"] = "()" +defs["ImFont_IsLoaded"][1]["call_args"] = "()" +defs["ImFont_IsLoaded"][1]["cimguiname"] = "ImFont_IsLoaded" +defs["ImFont_IsLoaded"][1]["defaults"] = {} +defs["ImFont_IsLoaded"][1]["funcname"] = "IsLoaded" +defs["ImFont_IsLoaded"][1]["location"] = "imgui:2877" +defs["ImFont_IsLoaded"][1]["ov_cimguiname"] = "ImFont_IsLoaded" +defs["ImFont_IsLoaded"][1]["ret"] = "bool" +defs["ImFont_IsLoaded"][1]["signature"] = "()const" +defs["ImFont_IsLoaded"][1]["stname"] = "ImFont" +defs["ImFont_IsLoaded"]["()const"] = defs["ImFont_IsLoaded"][1] +defs["ImFont_RenderChar"] = {} +defs["ImFont_RenderChar"][1] = {} +defs["ImFont_RenderChar"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)" +defs["ImFont_RenderChar"][1]["argsT"] = {} +defs["ImFont_RenderChar"][1]["argsT"][1] = {} +defs["ImFont_RenderChar"][1]["argsT"][1]["name"] = "self" +defs["ImFont_RenderChar"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_RenderChar"][1]["argsT"][2] = {} +defs["ImFont_RenderChar"][1]["argsT"][2]["name"] = "draw_list" +defs["ImFont_RenderChar"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImFont_RenderChar"][1]["argsT"][3] = {} +defs["ImFont_RenderChar"][1]["argsT"][3]["name"] = "size" +defs["ImFont_RenderChar"][1]["argsT"][3]["type"] = "float" +defs["ImFont_RenderChar"][1]["argsT"][4] = {} +defs["ImFont_RenderChar"][1]["argsT"][4]["name"] = "pos" +defs["ImFont_RenderChar"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImFont_RenderChar"][1]["argsT"][5] = {} +defs["ImFont_RenderChar"][1]["argsT"][5]["name"] = "col" +defs["ImFont_RenderChar"][1]["argsT"][5]["type"] = "ImU32" +defs["ImFont_RenderChar"][1]["argsT"][6] = {} +defs["ImFont_RenderChar"][1]["argsT"][6]["name"] = "c" +defs["ImFont_RenderChar"][1]["argsT"][6]["type"] = "ImWchar" +defs["ImFont_RenderChar"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)" +defs["ImFont_RenderChar"][1]["call_args"] = "(draw_list,size,pos,col,c)" +defs["ImFont_RenderChar"][1]["cimguiname"] = "ImFont_RenderChar" +defs["ImFont_RenderChar"][1]["defaults"] = {} +defs["ImFont_RenderChar"][1]["funcname"] = "RenderChar" +defs["ImFont_RenderChar"][1]["location"] = "imgui:2884" +defs["ImFont_RenderChar"][1]["ov_cimguiname"] = "ImFont_RenderChar" +defs["ImFont_RenderChar"][1]["ret"] = "void" +defs["ImFont_RenderChar"][1]["signature"] = "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const" +defs["ImFont_RenderChar"][1]["stname"] = "ImFont" +defs["ImFont_RenderChar"]["(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const"] = defs["ImFont_RenderChar"][1] +defs["ImFont_RenderText"] = {} +defs["ImFont_RenderText"][1] = {} +defs["ImFont_RenderText"][1]["args"] = "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)" +defs["ImFont_RenderText"][1]["argsT"] = {} +defs["ImFont_RenderText"][1]["argsT"][1] = {} +defs["ImFont_RenderText"][1]["argsT"][1]["name"] = "self" +defs["ImFont_RenderText"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_RenderText"][1]["argsT"][2] = {} +defs["ImFont_RenderText"][1]["argsT"][2]["name"] = "draw_list" +defs["ImFont_RenderText"][1]["argsT"][2]["type"] = "ImDrawList*" +defs["ImFont_RenderText"][1]["argsT"][3] = {} +defs["ImFont_RenderText"][1]["argsT"][3]["name"] = "size" +defs["ImFont_RenderText"][1]["argsT"][3]["type"] = "float" +defs["ImFont_RenderText"][1]["argsT"][4] = {} +defs["ImFont_RenderText"][1]["argsT"][4]["name"] = "pos" +defs["ImFont_RenderText"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImFont_RenderText"][1]["argsT"][5] = {} +defs["ImFont_RenderText"][1]["argsT"][5]["name"] = "col" +defs["ImFont_RenderText"][1]["argsT"][5]["type"] = "ImU32" +defs["ImFont_RenderText"][1]["argsT"][6] = {} +defs["ImFont_RenderText"][1]["argsT"][6]["name"] = "clip_rect" +defs["ImFont_RenderText"][1]["argsT"][6]["type"] = "const ImVec4" +defs["ImFont_RenderText"][1]["argsT"][7] = {} +defs["ImFont_RenderText"][1]["argsT"][7]["name"] = "text_begin" +defs["ImFont_RenderText"][1]["argsT"][7]["type"] = "const char*" +defs["ImFont_RenderText"][1]["argsT"][8] = {} +defs["ImFont_RenderText"][1]["argsT"][8]["name"] = "text_end" +defs["ImFont_RenderText"][1]["argsT"][8]["type"] = "const char*" +defs["ImFont_RenderText"][1]["argsT"][9] = {} +defs["ImFont_RenderText"][1]["argsT"][9]["name"] = "wrap_width" +defs["ImFont_RenderText"][1]["argsT"][9]["type"] = "float" +defs["ImFont_RenderText"][1]["argsT"][10] = {} +defs["ImFont_RenderText"][1]["argsT"][10]["name"] = "cpu_fine_clip" +defs["ImFont_RenderText"][1]["argsT"][10]["type"] = "bool" +defs["ImFont_RenderText"][1]["argsoriginal"] = "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)" +defs["ImFont_RenderText"][1]["call_args"] = "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)" +defs["ImFont_RenderText"][1]["cimguiname"] = "ImFont_RenderText" +defs["ImFont_RenderText"][1]["defaults"] = {} +defs["ImFont_RenderText"][1]["defaults"]["cpu_fine_clip"] = "false" +defs["ImFont_RenderText"][1]["defaults"]["wrap_width"] = "0.0f" +defs["ImFont_RenderText"][1]["funcname"] = "RenderText" +defs["ImFont_RenderText"][1]["location"] = "imgui:2885" +defs["ImFont_RenderText"][1]["ov_cimguiname"] = "ImFont_RenderText" +defs["ImFont_RenderText"][1]["ret"] = "void" +defs["ImFont_RenderText"][1]["signature"] = "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const" +defs["ImFont_RenderText"][1]["stname"] = "ImFont" +defs["ImFont_RenderText"]["(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const"] = defs["ImFont_RenderText"][1] +defs["ImFont_SetGlyphVisible"] = {} +defs["ImFont_SetGlyphVisible"][1] = {} +defs["ImFont_SetGlyphVisible"][1]["args"] = "(ImFont* self,ImWchar c,bool visible)" +defs["ImFont_SetGlyphVisible"][1]["argsT"] = {} +defs["ImFont_SetGlyphVisible"][1]["argsT"][1] = {} +defs["ImFont_SetGlyphVisible"][1]["argsT"][1]["name"] = "self" +defs["ImFont_SetGlyphVisible"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_SetGlyphVisible"][1]["argsT"][2] = {} +defs["ImFont_SetGlyphVisible"][1]["argsT"][2]["name"] = "c" +defs["ImFont_SetGlyphVisible"][1]["argsT"][2]["type"] = "ImWchar" +defs["ImFont_SetGlyphVisible"][1]["argsT"][3] = {} +defs["ImFont_SetGlyphVisible"][1]["argsT"][3]["name"] = "visible" +defs["ImFont_SetGlyphVisible"][1]["argsT"][3]["type"] = "bool" +defs["ImFont_SetGlyphVisible"][1]["argsoriginal"] = "(ImWchar c,bool visible)" +defs["ImFont_SetGlyphVisible"][1]["call_args"] = "(c,visible)" +defs["ImFont_SetGlyphVisible"][1]["cimguiname"] = "ImFont_SetGlyphVisible" +defs["ImFont_SetGlyphVisible"][1]["defaults"] = {} +defs["ImFont_SetGlyphVisible"][1]["funcname"] = "SetGlyphVisible" +defs["ImFont_SetGlyphVisible"][1]["location"] = "imgui:2893" +defs["ImFont_SetGlyphVisible"][1]["ov_cimguiname"] = "ImFont_SetGlyphVisible" +defs["ImFont_SetGlyphVisible"][1]["ret"] = "void" +defs["ImFont_SetGlyphVisible"][1]["signature"] = "(ImWchar,bool)" +defs["ImFont_SetGlyphVisible"][1]["stname"] = "ImFont" +defs["ImFont_SetGlyphVisible"]["(ImWchar,bool)"] = defs["ImFont_SetGlyphVisible"][1] +defs["ImFont_destroy"] = {} +defs["ImFont_destroy"][1] = {} +defs["ImFont_destroy"][1]["args"] = "(ImFont* self)" +defs["ImFont_destroy"][1]["argsT"] = {} +defs["ImFont_destroy"][1]["argsT"][1] = {} +defs["ImFont_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImFont_destroy"][1]["argsT"][1]["type"] = "ImFont*" +defs["ImFont_destroy"][1]["call_args"] = "(self)" +defs["ImFont_destroy"][1]["cimguiname"] = "ImFont_destroy" +defs["ImFont_destroy"][1]["defaults"] = {} +defs["ImFont_destroy"][1]["destructor"] = true +defs["ImFont_destroy"][1]["location"] = "imgui:2873" +defs["ImFont_destroy"][1]["ov_cimguiname"] = "ImFont_destroy" +defs["ImFont_destroy"][1]["realdestructor"] = true +defs["ImFont_destroy"][1]["ret"] = "void" +defs["ImFont_destroy"][1]["signature"] = "(ImFont*)" +defs["ImFont_destroy"][1]["stname"] = "ImFont" +defs["ImFont_destroy"]["(ImFont*)"] = defs["ImFont_destroy"][1] +defs["ImGuiFreeType_GetBuilderForFreeType"] = {} +defs["ImGuiFreeType_GetBuilderForFreeType"][1] = {} +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["args"] = "()" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["argsT"] = {} +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["argsoriginal"] = "()" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["call_args"] = "()" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["cimguiname"] = "ImGuiFreeType_GetBuilderForFreeType" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["defaults"] = {} +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["funcname"] = "GetBuilderForFreeType" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["location"] = "imgui_freetype:39" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["namespace"] = "ImGuiFreeType" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["ov_cimguiname"] = "ImGuiFreeType_GetBuilderForFreeType" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["ret"] = "const ImFontBuilderIO*" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["signature"] = "()" +defs["ImGuiFreeType_GetBuilderForFreeType"][1]["stname"] = "" +defs["ImGuiFreeType_GetBuilderForFreeType"]["()"] = defs["ImGuiFreeType_GetBuilderForFreeType"][1] +defs["ImGuiFreeType_SetAllocatorFunctions"] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["args"] = "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1]["name"] = "alloc_func" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1]["ret"] = "void*" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1]["signature"] = "(size_t sz,void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][1]["type"] = "void*(*)(size_t sz,void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2]["name"] = "free_func" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2]["ret"] = "void" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2]["signature"] = "(void* ptr,void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][2]["type"] = "void(*)(void* ptr,void* user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][3] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][3]["name"] = "user_data" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsT"][3]["type"] = "void*" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["argsoriginal"] = "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data=((void*)0))" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["call_args"] = "(alloc_func,free_func,user_data)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["cimguiname"] = "ImGuiFreeType_SetAllocatorFunctions" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["defaults"] = {} +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["defaults"]["user_data"] = "NULL" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["funcname"] = "SetAllocatorFunctions" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["location"] = "imgui_freetype:43" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["namespace"] = "ImGuiFreeType" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["ov_cimguiname"] = "ImGuiFreeType_SetAllocatorFunctions" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["ret"] = "void" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["signature"] = "(void*(*)(size_t,void*),void(*)(void*,void*),void*)" +defs["ImGuiFreeType_SetAllocatorFunctions"][1]["stname"] = "" +defs["ImGuiFreeType_SetAllocatorFunctions"]["(void*(*)(size_t,void*),void(*)(void*,void*),void*)"] = defs["ImGuiFreeType_SetAllocatorFunctions"][1] +defs["ImGuiIO_AddFocusEvent"] = {} +defs["ImGuiIO_AddFocusEvent"][1] = {} +defs["ImGuiIO_AddFocusEvent"][1]["args"] = "(ImGuiIO* self,bool focused)" +defs["ImGuiIO_AddFocusEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][2]["name"] = "focused" +defs["ImGuiIO_AddFocusEvent"][1]["argsT"][2]["type"] = "bool" +defs["ImGuiIO_AddFocusEvent"][1]["argsoriginal"] = "(bool focused)" +defs["ImGuiIO_AddFocusEvent"][1]["call_args"] = "(focused)" +defs["ImGuiIO_AddFocusEvent"][1]["cimguiname"] = "ImGuiIO_AddFocusEvent" +defs["ImGuiIO_AddFocusEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddFocusEvent"][1]["funcname"] = "AddFocusEvent" +defs["ImGuiIO_AddFocusEvent"][1]["location"] = "imgui:1974" +defs["ImGuiIO_AddFocusEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddFocusEvent" +defs["ImGuiIO_AddFocusEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddFocusEvent"][1]["signature"] = "(bool)" +defs["ImGuiIO_AddFocusEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddFocusEvent"]["(bool)"] = defs["ImGuiIO_AddFocusEvent"][1] +defs["ImGuiIO_AddInputCharacter"] = {} +defs["ImGuiIO_AddInputCharacter"][1] = {} +defs["ImGuiIO_AddInputCharacter"][1]["args"] = "(ImGuiIO* self,unsigned int c)" +defs["ImGuiIO_AddInputCharacter"][1]["argsT"] = {} +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][1] = {} +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][2] = {} +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][2]["name"] = "c" +defs["ImGuiIO_AddInputCharacter"][1]["argsT"][2]["type"] = "unsigned int" +defs["ImGuiIO_AddInputCharacter"][1]["argsoriginal"] = "(unsigned int c)" +defs["ImGuiIO_AddInputCharacter"][1]["call_args"] = "(c)" +defs["ImGuiIO_AddInputCharacter"][1]["cimguiname"] = "ImGuiIO_AddInputCharacter" +defs["ImGuiIO_AddInputCharacter"][1]["defaults"] = {} +defs["ImGuiIO_AddInputCharacter"][1]["funcname"] = "AddInputCharacter" +defs["ImGuiIO_AddInputCharacter"][1]["location"] = "imgui:1975" +defs["ImGuiIO_AddInputCharacter"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharacter" +defs["ImGuiIO_AddInputCharacter"][1]["ret"] = "void" +defs["ImGuiIO_AddInputCharacter"][1]["signature"] = "(unsigned int)" +defs["ImGuiIO_AddInputCharacter"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddInputCharacter"]["(unsigned int)"] = defs["ImGuiIO_AddInputCharacter"][1] +defs["ImGuiIO_AddInputCharacterUTF16"] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["args"] = "(ImGuiIO* self,ImWchar16 c)" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][1] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][2] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][2]["name"] = "c" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsT"][2]["type"] = "ImWchar16" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["argsoriginal"] = "(ImWchar16 c)" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["call_args"] = "(c)" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["cimguiname"] = "ImGuiIO_AddInputCharacterUTF16" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["defaults"] = {} +defs["ImGuiIO_AddInputCharacterUTF16"][1]["funcname"] = "AddInputCharacterUTF16" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["location"] = "imgui:1976" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharacterUTF16" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["ret"] = "void" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["signature"] = "(ImWchar16)" +defs["ImGuiIO_AddInputCharacterUTF16"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddInputCharacterUTF16"]["(ImWchar16)"] = defs["ImGuiIO_AddInputCharacterUTF16"][1] +defs["ImGuiIO_AddInputCharactersUTF8"] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["args"] = "(ImGuiIO* self,const char* str)" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][1] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][2] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][2]["name"] = "str" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["argsoriginal"] = "(const char* str)" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["call_args"] = "(str)" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["cimguiname"] = "ImGuiIO_AddInputCharactersUTF8" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["defaults"] = {} +defs["ImGuiIO_AddInputCharactersUTF8"][1]["funcname"] = "AddInputCharactersUTF8" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["location"] = "imgui:1977" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["ov_cimguiname"] = "ImGuiIO_AddInputCharactersUTF8" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["ret"] = "void" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["signature"] = "(const char*)" +defs["ImGuiIO_AddInputCharactersUTF8"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddInputCharactersUTF8"]["(const char*)"] = defs["ImGuiIO_AddInputCharactersUTF8"][1] +defs["ImGuiIO_AddKeyAnalogEvent"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,bool down,float v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4]["name"] = "v" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsT"][4]["type"] = "float" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["argsoriginal"] = "(ImGuiKey key,bool down,float v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["call_args"] = "(key,down,v)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["cimguiname"] = "ImGuiIO_AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddKeyAnalogEvent"][1]["funcname"] = "AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["location"] = "imgui:1970" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddKeyAnalogEvent" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["signature"] = "(ImGuiKey,bool,float)" +defs["ImGuiIO_AddKeyAnalogEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddKeyAnalogEvent"]["(ImGuiKey,bool,float)"] = defs["ImGuiIO_AddKeyAnalogEvent"][1] +defs["ImGuiIO_AddKeyEvent"] = {} +defs["ImGuiIO_AddKeyEvent"][1] = {} +defs["ImGuiIO_AddKeyEvent"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,bool down)" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddKeyEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddKeyEvent"][1]["argsoriginal"] = "(ImGuiKey key,bool down)" +defs["ImGuiIO_AddKeyEvent"][1]["call_args"] = "(key,down)" +defs["ImGuiIO_AddKeyEvent"][1]["cimguiname"] = "ImGuiIO_AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddKeyEvent"][1]["funcname"] = "AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["location"] = "imgui:1969" +defs["ImGuiIO_AddKeyEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddKeyEvent" +defs["ImGuiIO_AddKeyEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddKeyEvent"][1]["signature"] = "(ImGuiKey,bool)" +defs["ImGuiIO_AddKeyEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddKeyEvent"]["(ImGuiKey,bool)"] = defs["ImGuiIO_AddKeyEvent"][1] +defs["ImGuiIO_AddMouseButtonEvent"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["args"] = "(ImGuiIO* self,int button,bool down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2]["name"] = "button" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][2]["type"] = "int" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3]["name"] = "down" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiIO_AddMouseButtonEvent"][1]["argsoriginal"] = "(int button,bool down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["call_args"] = "(button,down)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseButtonEvent"][1]["funcname"] = "AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["location"] = "imgui:1972" +defs["ImGuiIO_AddMouseButtonEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseButtonEvent" +defs["ImGuiIO_AddMouseButtonEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseButtonEvent"][1]["signature"] = "(int,bool)" +defs["ImGuiIO_AddMouseButtonEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseButtonEvent"]["(int,bool)"] = defs["ImGuiIO_AddMouseButtonEvent"][1] +defs["ImGuiIO_AddMousePosEvent"] = {} +defs["ImGuiIO_AddMousePosEvent"][1] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["args"] = "(ImGuiIO* self,float x,float y)" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2]["name"] = "x" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][2]["type"] = "float" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3]["name"] = "y" +defs["ImGuiIO_AddMousePosEvent"][1]["argsT"][3]["type"] = "float" +defs["ImGuiIO_AddMousePosEvent"][1]["argsoriginal"] = "(float x,float y)" +defs["ImGuiIO_AddMousePosEvent"][1]["call_args"] = "(x,y)" +defs["ImGuiIO_AddMousePosEvent"][1]["cimguiname"] = "ImGuiIO_AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMousePosEvent"][1]["funcname"] = "AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["location"] = "imgui:1971" +defs["ImGuiIO_AddMousePosEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMousePosEvent" +defs["ImGuiIO_AddMousePosEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMousePosEvent"][1]["signature"] = "(float,float)" +defs["ImGuiIO_AddMousePosEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMousePosEvent"]["(float,float)"] = defs["ImGuiIO_AddMousePosEvent"][1] +defs["ImGuiIO_AddMouseWheelEvent"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["args"] = "(ImGuiIO* self,float wh_x,float wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2]["name"] = "wh_x" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][2]["type"] = "float" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3]["name"] = "wh_y" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsT"][3]["type"] = "float" +defs["ImGuiIO_AddMouseWheelEvent"][1]["argsoriginal"] = "(float wh_x,float wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["call_args"] = "(wh_x,wh_y)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["cimguiname"] = "ImGuiIO_AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["defaults"] = {} +defs["ImGuiIO_AddMouseWheelEvent"][1]["funcname"] = "AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["location"] = "imgui:1973" +defs["ImGuiIO_AddMouseWheelEvent"][1]["ov_cimguiname"] = "ImGuiIO_AddMouseWheelEvent" +defs["ImGuiIO_AddMouseWheelEvent"][1]["ret"] = "void" +defs["ImGuiIO_AddMouseWheelEvent"][1]["signature"] = "(float,float)" +defs["ImGuiIO_AddMouseWheelEvent"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_AddMouseWheelEvent"]["(float,float)"] = defs["ImGuiIO_AddMouseWheelEvent"][1] +defs["ImGuiIO_ClearInputCharacters"] = {} +defs["ImGuiIO_ClearInputCharacters"][1] = {} +defs["ImGuiIO_ClearInputCharacters"][1]["args"] = "(ImGuiIO* self)" +defs["ImGuiIO_ClearInputCharacters"][1]["argsT"] = {} +defs["ImGuiIO_ClearInputCharacters"][1]["argsT"][1] = {} +defs["ImGuiIO_ClearInputCharacters"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_ClearInputCharacters"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_ClearInputCharacters"][1]["argsoriginal"] = "()" +defs["ImGuiIO_ClearInputCharacters"][1]["call_args"] = "()" +defs["ImGuiIO_ClearInputCharacters"][1]["cimguiname"] = "ImGuiIO_ClearInputCharacters" +defs["ImGuiIO_ClearInputCharacters"][1]["defaults"] = {} +defs["ImGuiIO_ClearInputCharacters"][1]["funcname"] = "ClearInputCharacters" +defs["ImGuiIO_ClearInputCharacters"][1]["location"] = "imgui:1981" +defs["ImGuiIO_ClearInputCharacters"][1]["ov_cimguiname"] = "ImGuiIO_ClearInputCharacters" +defs["ImGuiIO_ClearInputCharacters"][1]["ret"] = "void" +defs["ImGuiIO_ClearInputCharacters"][1]["signature"] = "()" +defs["ImGuiIO_ClearInputCharacters"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_ClearInputCharacters"]["()"] = defs["ImGuiIO_ClearInputCharacters"][1] +defs["ImGuiIO_ClearInputKeys"] = {} +defs["ImGuiIO_ClearInputKeys"][1] = {} +defs["ImGuiIO_ClearInputKeys"][1]["args"] = "(ImGuiIO* self)" +defs["ImGuiIO_ClearInputKeys"][1]["argsT"] = {} +defs["ImGuiIO_ClearInputKeys"][1]["argsT"][1] = {} +defs["ImGuiIO_ClearInputKeys"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_ClearInputKeys"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_ClearInputKeys"][1]["argsoriginal"] = "()" +defs["ImGuiIO_ClearInputKeys"][1]["call_args"] = "()" +defs["ImGuiIO_ClearInputKeys"][1]["cimguiname"] = "ImGuiIO_ClearInputKeys" +defs["ImGuiIO_ClearInputKeys"][1]["defaults"] = {} +defs["ImGuiIO_ClearInputKeys"][1]["funcname"] = "ClearInputKeys" +defs["ImGuiIO_ClearInputKeys"][1]["location"] = "imgui:1982" +defs["ImGuiIO_ClearInputKeys"][1]["ov_cimguiname"] = "ImGuiIO_ClearInputKeys" +defs["ImGuiIO_ClearInputKeys"][1]["ret"] = "void" +defs["ImGuiIO_ClearInputKeys"][1]["signature"] = "()" +defs["ImGuiIO_ClearInputKeys"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_ClearInputKeys"]["()"] = defs["ImGuiIO_ClearInputKeys"][1] +defs["ImGuiIO_ImGuiIO"] = {} +defs["ImGuiIO_ImGuiIO"][1] = {} +defs["ImGuiIO_ImGuiIO"][1]["args"] = "()" +defs["ImGuiIO_ImGuiIO"][1]["argsT"] = {} +defs["ImGuiIO_ImGuiIO"][1]["argsoriginal"] = "()" +defs["ImGuiIO_ImGuiIO"][1]["call_args"] = "()" +defs["ImGuiIO_ImGuiIO"][1]["cimguiname"] = "ImGuiIO_ImGuiIO" +defs["ImGuiIO_ImGuiIO"][1]["constructor"] = true +defs["ImGuiIO_ImGuiIO"][1]["defaults"] = {} +defs["ImGuiIO_ImGuiIO"][1]["funcname"] = "ImGuiIO" +defs["ImGuiIO_ImGuiIO"][1]["location"] = "imgui:2055" +defs["ImGuiIO_ImGuiIO"][1]["ov_cimguiname"] = "ImGuiIO_ImGuiIO" +defs["ImGuiIO_ImGuiIO"][1]["signature"] = "()" +defs["ImGuiIO_ImGuiIO"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_ImGuiIO"]["()"] = defs["ImGuiIO_ImGuiIO"][1] +defs["ImGuiIO_SetAppAcceptingEvents"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["args"] = "(ImGuiIO* self,bool accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2]["name"] = "accepting_events" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsT"][2]["type"] = "bool" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["argsoriginal"] = "(bool accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["call_args"] = "(accepting_events)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["cimguiname"] = "ImGuiIO_SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["defaults"] = {} +defs["ImGuiIO_SetAppAcceptingEvents"][1]["funcname"] = "SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["location"] = "imgui:1980" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["ov_cimguiname"] = "ImGuiIO_SetAppAcceptingEvents" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["ret"] = "void" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["signature"] = "(bool)" +defs["ImGuiIO_SetAppAcceptingEvents"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_SetAppAcceptingEvents"]["(bool)"] = defs["ImGuiIO_SetAppAcceptingEvents"][1] +defs["ImGuiIO_SetKeyEventNativeData"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["args"] = "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2]["name"] = "key" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3]["name"] = "native_keycode" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][3]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4]["name"] = "native_scancode" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][4]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5]["name"] = "native_legacy_index" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsT"][5]["type"] = "int" +defs["ImGuiIO_SetKeyEventNativeData"][1]["argsoriginal"] = "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["call_args"] = "(key,native_keycode,native_scancode,native_legacy_index)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["cimguiname"] = "ImGuiIO_SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["defaults"] = {} +defs["ImGuiIO_SetKeyEventNativeData"][1]["defaults"]["native_legacy_index"] = "-1" +defs["ImGuiIO_SetKeyEventNativeData"][1]["funcname"] = "SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["location"] = "imgui:1979" +defs["ImGuiIO_SetKeyEventNativeData"][1]["ov_cimguiname"] = "ImGuiIO_SetKeyEventNativeData" +defs["ImGuiIO_SetKeyEventNativeData"][1]["ret"] = "void" +defs["ImGuiIO_SetKeyEventNativeData"][1]["signature"] = "(ImGuiKey,int,int,int)" +defs["ImGuiIO_SetKeyEventNativeData"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_SetKeyEventNativeData"]["(ImGuiKey,int,int,int)"] = defs["ImGuiIO_SetKeyEventNativeData"][1] +defs["ImGuiIO_destroy"] = {} +defs["ImGuiIO_destroy"][1] = {} +defs["ImGuiIO_destroy"][1]["args"] = "(ImGuiIO* self)" +defs["ImGuiIO_destroy"][1]["argsT"] = {} +defs["ImGuiIO_destroy"][1]["argsT"][1] = {} +defs["ImGuiIO_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiIO_destroy"][1]["argsT"][1]["type"] = "ImGuiIO*" +defs["ImGuiIO_destroy"][1]["call_args"] = "(self)" +defs["ImGuiIO_destroy"][1]["cimguiname"] = "ImGuiIO_destroy" +defs["ImGuiIO_destroy"][1]["defaults"] = {} +defs["ImGuiIO_destroy"][1]["destructor"] = true +defs["ImGuiIO_destroy"][1]["ov_cimguiname"] = "ImGuiIO_destroy" +defs["ImGuiIO_destroy"][1]["ret"] = "void" +defs["ImGuiIO_destroy"][1]["signature"] = "(ImGuiIO*)" +defs["ImGuiIO_destroy"][1]["stname"] = "ImGuiIO" +defs["ImGuiIO_destroy"]["(ImGuiIO*)"] = defs["ImGuiIO_destroy"][1] +defs["ImGuiInputTextCallbackData_ClearSelection"] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["args"] = "(ImGuiInputTextCallbackData* self)" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["call_args"] = "()" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["cimguiname"] = "ImGuiInputTextCallbackData_ClearSelection" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["funcname"] = "ClearSelection" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["location"] = "imgui:2096" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_ClearSelection" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["signature"] = "()" +defs["ImGuiInputTextCallbackData_ClearSelection"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ClearSelection"]["()"] = defs["ImGuiInputTextCallbackData_ClearSelection"][1] +defs["ImGuiInputTextCallbackData_DeleteChars"] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["args"] = "(ImGuiInputTextCallbackData* self,int pos,int bytes_count)" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][2] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][2]["name"] = "pos" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][2]["type"] = "int" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][3] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][3]["name"] = "bytes_count" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsT"][3]["type"] = "int" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["argsoriginal"] = "(int pos,int bytes_count)" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["call_args"] = "(pos,bytes_count)" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["cimguiname"] = "ImGuiInputTextCallbackData_DeleteChars" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["funcname"] = "DeleteChars" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["location"] = "imgui:2093" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_DeleteChars" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["signature"] = "(int,int)" +defs["ImGuiInputTextCallbackData_DeleteChars"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_DeleteChars"]["(int,int)"] = defs["ImGuiInputTextCallbackData_DeleteChars"][1] +defs["ImGuiInputTextCallbackData_HasSelection"] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1]["args"] = "(ImGuiInputTextCallbackData* self)" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["call_args"] = "()" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["cimguiname"] = "ImGuiInputTextCallbackData_HasSelection" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_HasSelection"][1]["funcname"] = "HasSelection" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["location"] = "imgui:2097" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_HasSelection" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["ret"] = "bool" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["signature"] = "()const" +defs["ImGuiInputTextCallbackData_HasSelection"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_HasSelection"]["()const"] = defs["ImGuiInputTextCallbackData_HasSelection"][1] +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"] = {} +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1] = {} +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["args"] = "()" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["call_args"] = "()" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["cimguiname"] = "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["constructor"] = true +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["funcname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["location"] = "imgui:2092" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["signature"] = "()" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"]["()"] = defs["ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"][1] +defs["ImGuiInputTextCallbackData_InsertChars"] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["args"] = "(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end)" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][2] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][2]["name"] = "pos" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][2]["type"] = "int" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][3] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][3]["name"] = "text" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][3]["type"] = "const char*" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][4] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][4]["name"] = "text_end" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsT"][4]["type"] = "const char*" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["argsoriginal"] = "(int pos,const char* text,const char* text_end=((void*)0))" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["call_args"] = "(pos,text,text_end)" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["cimguiname"] = "ImGuiInputTextCallbackData_InsertChars" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_InsertChars"][1]["defaults"]["text_end"] = "NULL" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["funcname"] = "InsertChars" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["location"] = "imgui:2094" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_InsertChars" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["signature"] = "(int,const char*,const char*)" +defs["ImGuiInputTextCallbackData_InsertChars"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_InsertChars"]["(int,const char*,const char*)"] = defs["ImGuiInputTextCallbackData_InsertChars"][1] +defs["ImGuiInputTextCallbackData_SelectAll"] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1]["args"] = "(ImGuiInputTextCallbackData* self)" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["call_args"] = "()" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["cimguiname"] = "ImGuiInputTextCallbackData_SelectAll" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_SelectAll"][1]["funcname"] = "SelectAll" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["location"] = "imgui:2095" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_SelectAll" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["signature"] = "()" +defs["ImGuiInputTextCallbackData_SelectAll"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_SelectAll"]["()"] = defs["ImGuiInputTextCallbackData_SelectAll"][1] +defs["ImGuiInputTextCallbackData_destroy"] = {} +defs["ImGuiInputTextCallbackData_destroy"][1] = {} +defs["ImGuiInputTextCallbackData_destroy"][1]["args"] = "(ImGuiInputTextCallbackData* self)" +defs["ImGuiInputTextCallbackData_destroy"][1]["argsT"] = {} +defs["ImGuiInputTextCallbackData_destroy"][1]["argsT"][1] = {} +defs["ImGuiInputTextCallbackData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextCallbackData_destroy"][1]["argsT"][1]["type"] = "ImGuiInputTextCallbackData*" +defs["ImGuiInputTextCallbackData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiInputTextCallbackData_destroy"][1]["cimguiname"] = "ImGuiInputTextCallbackData_destroy" +defs["ImGuiInputTextCallbackData_destroy"][1]["defaults"] = {} +defs["ImGuiInputTextCallbackData_destroy"][1]["destructor"] = true +defs["ImGuiInputTextCallbackData_destroy"][1]["ov_cimguiname"] = "ImGuiInputTextCallbackData_destroy" +defs["ImGuiInputTextCallbackData_destroy"][1]["ret"] = "void" +defs["ImGuiInputTextCallbackData_destroy"][1]["signature"] = "(ImGuiInputTextCallbackData*)" +defs["ImGuiInputTextCallbackData_destroy"][1]["stname"] = "ImGuiInputTextCallbackData" +defs["ImGuiInputTextCallbackData_destroy"]["(ImGuiInputTextCallbackData*)"] = defs["ImGuiInputTextCallbackData_destroy"][1] +defs["ImGuiListClipper_Begin"] = {} +defs["ImGuiListClipper_Begin"][1] = {} +defs["ImGuiListClipper_Begin"][1]["args"] = "(ImGuiListClipper* self,int items_count,float items_height)" +defs["ImGuiListClipper_Begin"][1]["argsT"] = {} +defs["ImGuiListClipper_Begin"][1]["argsT"][1] = {} +defs["ImGuiListClipper_Begin"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_Begin"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_Begin"][1]["argsT"][2] = {} +defs["ImGuiListClipper_Begin"][1]["argsT"][2]["name"] = "items_count" +defs["ImGuiListClipper_Begin"][1]["argsT"][2]["type"] = "int" +defs["ImGuiListClipper_Begin"][1]["argsT"][3] = {} +defs["ImGuiListClipper_Begin"][1]["argsT"][3]["name"] = "items_height" +defs["ImGuiListClipper_Begin"][1]["argsT"][3]["type"] = "float" +defs["ImGuiListClipper_Begin"][1]["argsoriginal"] = "(int items_count,float items_height=-1.0f)" +defs["ImGuiListClipper_Begin"][1]["call_args"] = "(items_count,items_height)" +defs["ImGuiListClipper_Begin"][1]["cimguiname"] = "ImGuiListClipper_Begin" +defs["ImGuiListClipper_Begin"][1]["defaults"] = {} +defs["ImGuiListClipper_Begin"][1]["defaults"]["items_height"] = "-1.0f" +defs["ImGuiListClipper_Begin"][1]["funcname"] = "Begin" +defs["ImGuiListClipper_Begin"][1]["location"] = "imgui:2308" +defs["ImGuiListClipper_Begin"][1]["ov_cimguiname"] = "ImGuiListClipper_Begin" +defs["ImGuiListClipper_Begin"][1]["ret"] = "void" +defs["ImGuiListClipper_Begin"][1]["signature"] = "(int,float)" +defs["ImGuiListClipper_Begin"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_Begin"]["(int,float)"] = defs["ImGuiListClipper_Begin"][1] +defs["ImGuiListClipper_End"] = {} +defs["ImGuiListClipper_End"][1] = {} +defs["ImGuiListClipper_End"][1]["args"] = "(ImGuiListClipper* self)" +defs["ImGuiListClipper_End"][1]["argsT"] = {} +defs["ImGuiListClipper_End"][1]["argsT"][1] = {} +defs["ImGuiListClipper_End"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_End"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_End"][1]["argsoriginal"] = "()" +defs["ImGuiListClipper_End"][1]["call_args"] = "()" +defs["ImGuiListClipper_End"][1]["cimguiname"] = "ImGuiListClipper_End" +defs["ImGuiListClipper_End"][1]["defaults"] = {} +defs["ImGuiListClipper_End"][1]["funcname"] = "End" +defs["ImGuiListClipper_End"][1]["location"] = "imgui:2309" +defs["ImGuiListClipper_End"][1]["ov_cimguiname"] = "ImGuiListClipper_End" +defs["ImGuiListClipper_End"][1]["ret"] = "void" +defs["ImGuiListClipper_End"][1]["signature"] = "()" +defs["ImGuiListClipper_End"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_End"]["()"] = defs["ImGuiListClipper_End"][1] +defs["ImGuiListClipper_ForceDisplayRangeByIndices"] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["args"] = "(ImGuiListClipper* self,int item_min,int item_max)" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][1] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][2] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][2]["name"] = "item_min" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][2]["type"] = "int" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][3] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][3]["name"] = "item_max" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsT"][3]["type"] = "int" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["argsoriginal"] = "(int item_min,int item_max)" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["call_args"] = "(item_min,item_max)" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["cimguiname"] = "ImGuiListClipper_ForceDisplayRangeByIndices" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["defaults"] = {} +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["funcname"] = "ForceDisplayRangeByIndices" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["location"] = "imgui:2313" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["ov_cimguiname"] = "ImGuiListClipper_ForceDisplayRangeByIndices" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["ret"] = "void" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["signature"] = "(int,int)" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_ForceDisplayRangeByIndices"]["(int,int)"] = defs["ImGuiListClipper_ForceDisplayRangeByIndices"][1] +defs["ImGuiListClipper_ImGuiListClipper"] = {} +defs["ImGuiListClipper_ImGuiListClipper"][1] = {} +defs["ImGuiListClipper_ImGuiListClipper"][1]["args"] = "()" +defs["ImGuiListClipper_ImGuiListClipper"][1]["argsT"] = {} +defs["ImGuiListClipper_ImGuiListClipper"][1]["argsoriginal"] = "()" +defs["ImGuiListClipper_ImGuiListClipper"][1]["call_args"] = "()" +defs["ImGuiListClipper_ImGuiListClipper"][1]["cimguiname"] = "ImGuiListClipper_ImGuiListClipper" +defs["ImGuiListClipper_ImGuiListClipper"][1]["constructor"] = true +defs["ImGuiListClipper_ImGuiListClipper"][1]["defaults"] = {} +defs["ImGuiListClipper_ImGuiListClipper"][1]["funcname"] = "ImGuiListClipper" +defs["ImGuiListClipper_ImGuiListClipper"][1]["location"] = "imgui:2306" +defs["ImGuiListClipper_ImGuiListClipper"][1]["ov_cimguiname"] = "ImGuiListClipper_ImGuiListClipper" +defs["ImGuiListClipper_ImGuiListClipper"][1]["signature"] = "()" +defs["ImGuiListClipper_ImGuiListClipper"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_ImGuiListClipper"]["()"] = defs["ImGuiListClipper_ImGuiListClipper"][1] +defs["ImGuiListClipper_Step"] = {} +defs["ImGuiListClipper_Step"][1] = {} +defs["ImGuiListClipper_Step"][1]["args"] = "(ImGuiListClipper* self)" +defs["ImGuiListClipper_Step"][1]["argsT"] = {} +defs["ImGuiListClipper_Step"][1]["argsT"][1] = {} +defs["ImGuiListClipper_Step"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_Step"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_Step"][1]["argsoriginal"] = "()" +defs["ImGuiListClipper_Step"][1]["call_args"] = "()" +defs["ImGuiListClipper_Step"][1]["cimguiname"] = "ImGuiListClipper_Step" +defs["ImGuiListClipper_Step"][1]["defaults"] = {} +defs["ImGuiListClipper_Step"][1]["funcname"] = "Step" +defs["ImGuiListClipper_Step"][1]["location"] = "imgui:2310" +defs["ImGuiListClipper_Step"][1]["ov_cimguiname"] = "ImGuiListClipper_Step" +defs["ImGuiListClipper_Step"][1]["ret"] = "bool" +defs["ImGuiListClipper_Step"][1]["signature"] = "()" +defs["ImGuiListClipper_Step"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_Step"]["()"] = defs["ImGuiListClipper_Step"][1] +defs["ImGuiListClipper_destroy"] = {} +defs["ImGuiListClipper_destroy"][1] = {} +defs["ImGuiListClipper_destroy"][1]["args"] = "(ImGuiListClipper* self)" +defs["ImGuiListClipper_destroy"][1]["argsT"] = {} +defs["ImGuiListClipper_destroy"][1]["argsT"][1] = {} +defs["ImGuiListClipper_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipper_destroy"][1]["argsT"][1]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipper_destroy"][1]["call_args"] = "(self)" +defs["ImGuiListClipper_destroy"][1]["cimguiname"] = "ImGuiListClipper_destroy" +defs["ImGuiListClipper_destroy"][1]["defaults"] = {} +defs["ImGuiListClipper_destroy"][1]["destructor"] = true +defs["ImGuiListClipper_destroy"][1]["location"] = "imgui:2307" +defs["ImGuiListClipper_destroy"][1]["ov_cimguiname"] = "ImGuiListClipper_destroy" +defs["ImGuiListClipper_destroy"][1]["realdestructor"] = true +defs["ImGuiListClipper_destroy"][1]["ret"] = "void" +defs["ImGuiListClipper_destroy"][1]["signature"] = "(ImGuiListClipper*)" +defs["ImGuiListClipper_destroy"][1]["stname"] = "ImGuiListClipper" +defs["ImGuiListClipper_destroy"]["(ImGuiListClipper*)"] = defs["ImGuiListClipper_destroy"][1] +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"] = {} +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1] = {} +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["args"] = "()" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["argsT"] = {} +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["argsoriginal"] = "()" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["call_args"] = "()" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["cimguiname"] = "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["constructor"] = true +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["defaults"] = {} +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["funcname"] = "ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["location"] = "imgui:2172" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["ov_cimguiname"] = "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["signature"] = "()" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["stname"] = "ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"]["()"] = defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1] +defs["ImGuiOnceUponAFrame_destroy"] = {} +defs["ImGuiOnceUponAFrame_destroy"][1] = {} +defs["ImGuiOnceUponAFrame_destroy"][1]["args"] = "(ImGuiOnceUponAFrame* self)" +defs["ImGuiOnceUponAFrame_destroy"][1]["argsT"] = {} +defs["ImGuiOnceUponAFrame_destroy"][1]["argsT"][1] = {} +defs["ImGuiOnceUponAFrame_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiOnceUponAFrame_destroy"][1]["argsT"][1]["type"] = "ImGuiOnceUponAFrame*" +defs["ImGuiOnceUponAFrame_destroy"][1]["call_args"] = "(self)" +defs["ImGuiOnceUponAFrame_destroy"][1]["cimguiname"] = "ImGuiOnceUponAFrame_destroy" +defs["ImGuiOnceUponAFrame_destroy"][1]["defaults"] = {} +defs["ImGuiOnceUponAFrame_destroy"][1]["destructor"] = true +defs["ImGuiOnceUponAFrame_destroy"][1]["ov_cimguiname"] = "ImGuiOnceUponAFrame_destroy" +defs["ImGuiOnceUponAFrame_destroy"][1]["ret"] = "void" +defs["ImGuiOnceUponAFrame_destroy"][1]["signature"] = "(ImGuiOnceUponAFrame*)" +defs["ImGuiOnceUponAFrame_destroy"][1]["stname"] = "ImGuiOnceUponAFrame" +defs["ImGuiOnceUponAFrame_destroy"]["(ImGuiOnceUponAFrame*)"] = defs["ImGuiOnceUponAFrame_destroy"][1] +defs["ImGuiPayload_Clear"] = {} +defs["ImGuiPayload_Clear"][1] = {} +defs["ImGuiPayload_Clear"][1]["args"] = "(ImGuiPayload* self)" +defs["ImGuiPayload_Clear"][1]["argsT"] = {} +defs["ImGuiPayload_Clear"][1]["argsT"][1] = {} +defs["ImGuiPayload_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_Clear"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_Clear"][1]["argsoriginal"] = "()" +defs["ImGuiPayload_Clear"][1]["call_args"] = "()" +defs["ImGuiPayload_Clear"][1]["cimguiname"] = "ImGuiPayload_Clear" +defs["ImGuiPayload_Clear"][1]["defaults"] = {} +defs["ImGuiPayload_Clear"][1]["funcname"] = "Clear" +defs["ImGuiPayload_Clear"][1]["location"] = "imgui:2126" +defs["ImGuiPayload_Clear"][1]["ov_cimguiname"] = "ImGuiPayload_Clear" +defs["ImGuiPayload_Clear"][1]["ret"] = "void" +defs["ImGuiPayload_Clear"][1]["signature"] = "()" +defs["ImGuiPayload_Clear"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_Clear"]["()"] = defs["ImGuiPayload_Clear"][1] +defs["ImGuiPayload_ImGuiPayload"] = {} +defs["ImGuiPayload_ImGuiPayload"][1] = {} +defs["ImGuiPayload_ImGuiPayload"][1]["args"] = "()" +defs["ImGuiPayload_ImGuiPayload"][1]["argsT"] = {} +defs["ImGuiPayload_ImGuiPayload"][1]["argsoriginal"] = "()" +defs["ImGuiPayload_ImGuiPayload"][1]["call_args"] = "()" +defs["ImGuiPayload_ImGuiPayload"][1]["cimguiname"] = "ImGuiPayload_ImGuiPayload" +defs["ImGuiPayload_ImGuiPayload"][1]["constructor"] = true +defs["ImGuiPayload_ImGuiPayload"][1]["defaults"] = {} +defs["ImGuiPayload_ImGuiPayload"][1]["funcname"] = "ImGuiPayload" +defs["ImGuiPayload_ImGuiPayload"][1]["location"] = "imgui:2125" +defs["ImGuiPayload_ImGuiPayload"][1]["ov_cimguiname"] = "ImGuiPayload_ImGuiPayload" +defs["ImGuiPayload_ImGuiPayload"][1]["signature"] = "()" +defs["ImGuiPayload_ImGuiPayload"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_ImGuiPayload"]["()"] = defs["ImGuiPayload_ImGuiPayload"][1] +defs["ImGuiPayload_IsDataType"] = {} +defs["ImGuiPayload_IsDataType"][1] = {} +defs["ImGuiPayload_IsDataType"][1]["args"] = "(ImGuiPayload* self,const char* type)" +defs["ImGuiPayload_IsDataType"][1]["argsT"] = {} +defs["ImGuiPayload_IsDataType"][1]["argsT"][1] = {} +defs["ImGuiPayload_IsDataType"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_IsDataType"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_IsDataType"][1]["argsT"][2] = {} +defs["ImGuiPayload_IsDataType"][1]["argsT"][2]["name"] = "type" +defs["ImGuiPayload_IsDataType"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiPayload_IsDataType"][1]["argsoriginal"] = "(const char* type)" +defs["ImGuiPayload_IsDataType"][1]["call_args"] = "(type)" +defs["ImGuiPayload_IsDataType"][1]["cimguiname"] = "ImGuiPayload_IsDataType" +defs["ImGuiPayload_IsDataType"][1]["defaults"] = {} +defs["ImGuiPayload_IsDataType"][1]["funcname"] = "IsDataType" +defs["ImGuiPayload_IsDataType"][1]["location"] = "imgui:2127" +defs["ImGuiPayload_IsDataType"][1]["ov_cimguiname"] = "ImGuiPayload_IsDataType" +defs["ImGuiPayload_IsDataType"][1]["ret"] = "bool" +defs["ImGuiPayload_IsDataType"][1]["signature"] = "(const char*)const" +defs["ImGuiPayload_IsDataType"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_IsDataType"]["(const char*)const"] = defs["ImGuiPayload_IsDataType"][1] +defs["ImGuiPayload_IsDelivery"] = {} +defs["ImGuiPayload_IsDelivery"][1] = {} +defs["ImGuiPayload_IsDelivery"][1]["args"] = "(ImGuiPayload* self)" +defs["ImGuiPayload_IsDelivery"][1]["argsT"] = {} +defs["ImGuiPayload_IsDelivery"][1]["argsT"][1] = {} +defs["ImGuiPayload_IsDelivery"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_IsDelivery"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_IsDelivery"][1]["argsoriginal"] = "()" +defs["ImGuiPayload_IsDelivery"][1]["call_args"] = "()" +defs["ImGuiPayload_IsDelivery"][1]["cimguiname"] = "ImGuiPayload_IsDelivery" +defs["ImGuiPayload_IsDelivery"][1]["defaults"] = {} +defs["ImGuiPayload_IsDelivery"][1]["funcname"] = "IsDelivery" +defs["ImGuiPayload_IsDelivery"][1]["location"] = "imgui:2129" +defs["ImGuiPayload_IsDelivery"][1]["ov_cimguiname"] = "ImGuiPayload_IsDelivery" +defs["ImGuiPayload_IsDelivery"][1]["ret"] = "bool" +defs["ImGuiPayload_IsDelivery"][1]["signature"] = "()const" +defs["ImGuiPayload_IsDelivery"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_IsDelivery"]["()const"] = defs["ImGuiPayload_IsDelivery"][1] +defs["ImGuiPayload_IsPreview"] = {} +defs["ImGuiPayload_IsPreview"][1] = {} +defs["ImGuiPayload_IsPreview"][1]["args"] = "(ImGuiPayload* self)" +defs["ImGuiPayload_IsPreview"][1]["argsT"] = {} +defs["ImGuiPayload_IsPreview"][1]["argsT"][1] = {} +defs["ImGuiPayload_IsPreview"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_IsPreview"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_IsPreview"][1]["argsoriginal"] = "()" +defs["ImGuiPayload_IsPreview"][1]["call_args"] = "()" +defs["ImGuiPayload_IsPreview"][1]["cimguiname"] = "ImGuiPayload_IsPreview" +defs["ImGuiPayload_IsPreview"][1]["defaults"] = {} +defs["ImGuiPayload_IsPreview"][1]["funcname"] = "IsPreview" +defs["ImGuiPayload_IsPreview"][1]["location"] = "imgui:2128" +defs["ImGuiPayload_IsPreview"][1]["ov_cimguiname"] = "ImGuiPayload_IsPreview" +defs["ImGuiPayload_IsPreview"][1]["ret"] = "bool" +defs["ImGuiPayload_IsPreview"][1]["signature"] = "()const" +defs["ImGuiPayload_IsPreview"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_IsPreview"]["()const"] = defs["ImGuiPayload_IsPreview"][1] +defs["ImGuiPayload_destroy"] = {} +defs["ImGuiPayload_destroy"][1] = {} +defs["ImGuiPayload_destroy"][1]["args"] = "(ImGuiPayload* self)" +defs["ImGuiPayload_destroy"][1]["argsT"] = {} +defs["ImGuiPayload_destroy"][1]["argsT"][1] = {} +defs["ImGuiPayload_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPayload_destroy"][1]["argsT"][1]["type"] = "ImGuiPayload*" +defs["ImGuiPayload_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPayload_destroy"][1]["cimguiname"] = "ImGuiPayload_destroy" +defs["ImGuiPayload_destroy"][1]["defaults"] = {} +defs["ImGuiPayload_destroy"][1]["destructor"] = true +defs["ImGuiPayload_destroy"][1]["ov_cimguiname"] = "ImGuiPayload_destroy" +defs["ImGuiPayload_destroy"][1]["ret"] = "void" +defs["ImGuiPayload_destroy"][1]["signature"] = "(ImGuiPayload*)" +defs["ImGuiPayload_destroy"][1]["stname"] = "ImGuiPayload" +defs["ImGuiPayload_destroy"]["(ImGuiPayload*)"] = defs["ImGuiPayload_destroy"][1] +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["args"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["argsT"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["argsoriginal"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["call_args"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["cimguiname"] = "ImGuiPlatformImeData_ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["constructor"] = true +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["defaults"] = {} +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["funcname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["location"] = "imgui:2946" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["ov_cimguiname"] = "ImGuiPlatformImeData_ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["signature"] = "()" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1]["stname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_ImGuiPlatformImeData"]["()"] = defs["ImGuiPlatformImeData_ImGuiPlatformImeData"][1] +defs["ImGuiPlatformImeData_destroy"] = {} +defs["ImGuiPlatformImeData_destroy"][1] = {} +defs["ImGuiPlatformImeData_destroy"][1]["args"] = "(ImGuiPlatformImeData* self)" +defs["ImGuiPlatformImeData_destroy"][1]["argsT"] = {} +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1] = {} +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPlatformImeData_destroy"][1]["argsT"][1]["type"] = "ImGuiPlatformImeData*" +defs["ImGuiPlatformImeData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPlatformImeData_destroy"][1]["cimguiname"] = "ImGuiPlatformImeData_destroy" +defs["ImGuiPlatformImeData_destroy"][1]["defaults"] = {} +defs["ImGuiPlatformImeData_destroy"][1]["destructor"] = true +defs["ImGuiPlatformImeData_destroy"][1]["ov_cimguiname"] = "ImGuiPlatformImeData_destroy" +defs["ImGuiPlatformImeData_destroy"][1]["ret"] = "void" +defs["ImGuiPlatformImeData_destroy"][1]["signature"] = "(ImGuiPlatformImeData*)" +defs["ImGuiPlatformImeData_destroy"][1]["stname"] = "ImGuiPlatformImeData" +defs["ImGuiPlatformImeData_destroy"]["(ImGuiPlatformImeData*)"] = defs["ImGuiPlatformImeData_destroy"][1] +defs["ImGuiStoragePair_ImGuiStoragePair"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["args"] = "(ImGuiID _key,int _val_i)" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][1] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][1]["name"] = "_key" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][1]["type"] = "ImGuiID" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][2] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][2]["name"] = "_val_i" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsT"][2]["type"] = "int" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["argsoriginal"] = "(ImGuiID _key,int _val_i)" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["call_args"] = "(_key,_val_i)" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["constructor"] = true +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["defaults"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["funcname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["location"] = "imgui:2239" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Int" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["signature"] = "(ImGuiID,int)" +defs["ImGuiStoragePair_ImGuiStoragePair"][1]["stname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][2] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["args"] = "(ImGuiID _key,float _val_f)" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][1] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][1]["name"] = "_key" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][1]["type"] = "ImGuiID" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][2] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][2]["name"] = "_val_f" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsT"][2]["type"] = "float" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["argsoriginal"] = "(ImGuiID _key,float _val_f)" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["call_args"] = "(_key,_val_f)" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["constructor"] = true +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["defaults"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["funcname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["location"] = "imgui:2240" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Float" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["signature"] = "(ImGuiID,float)" +defs["ImGuiStoragePair_ImGuiStoragePair"][2]["stname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][3] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["args"] = "(ImGuiID _key,void* _val_p)" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][1] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][1]["name"] = "_key" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][1]["type"] = "ImGuiID" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][2] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][2]["name"] = "_val_p" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsT"][2]["type"] = "void*" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["argsoriginal"] = "(ImGuiID _key,void* _val_p)" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["call_args"] = "(_key,_val_p)" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["constructor"] = true +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["defaults"] = {} +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["funcname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["location"] = "imgui:2241" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["ov_cimguiname"] = "ImGuiStoragePair_ImGuiStoragePair_Ptr" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["signature"] = "(ImGuiID,void*)" +defs["ImGuiStoragePair_ImGuiStoragePair"][3]["stname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_ImGuiStoragePair"]["(ImGuiID,float)"] = defs["ImGuiStoragePair_ImGuiStoragePair"][2] +defs["ImGuiStoragePair_ImGuiStoragePair"]["(ImGuiID,int)"] = defs["ImGuiStoragePair_ImGuiStoragePair"][1] +defs["ImGuiStoragePair_ImGuiStoragePair"]["(ImGuiID,void*)"] = defs["ImGuiStoragePair_ImGuiStoragePair"][3] +defs["ImGuiStoragePair_destroy"] = {} +defs["ImGuiStoragePair_destroy"][1] = {} +defs["ImGuiStoragePair_destroy"][1]["args"] = "(ImGuiStoragePair* self)" +defs["ImGuiStoragePair_destroy"][1]["argsT"] = {} +defs["ImGuiStoragePair_destroy"][1]["argsT"][1] = {} +defs["ImGuiStoragePair_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStoragePair_destroy"][1]["argsT"][1]["type"] = "ImGuiStoragePair*" +defs["ImGuiStoragePair_destroy"][1]["call_args"] = "(self)" +defs["ImGuiStoragePair_destroy"][1]["cimguiname"] = "ImGuiStoragePair_destroy" +defs["ImGuiStoragePair_destroy"][1]["defaults"] = {} +defs["ImGuiStoragePair_destroy"][1]["destructor"] = true +defs["ImGuiStoragePair_destroy"][1]["ov_cimguiname"] = "ImGuiStoragePair_destroy" +defs["ImGuiStoragePair_destroy"][1]["ret"] = "void" +defs["ImGuiStoragePair_destroy"][1]["signature"] = "(ImGuiStoragePair*)" +defs["ImGuiStoragePair_destroy"][1]["stname"] = "ImGuiStoragePair" +defs["ImGuiStoragePair_destroy"]["(ImGuiStoragePair*)"] = defs["ImGuiStoragePair_destroy"][1] +defs["ImGuiStorage_BuildSortByKey"] = {} +defs["ImGuiStorage_BuildSortByKey"][1] = {} +defs["ImGuiStorage_BuildSortByKey"][1]["args"] = "(ImGuiStorage* self)" +defs["ImGuiStorage_BuildSortByKey"][1]["argsT"] = {} +defs["ImGuiStorage_BuildSortByKey"][1]["argsT"][1] = {} +defs["ImGuiStorage_BuildSortByKey"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_BuildSortByKey"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_BuildSortByKey"][1]["argsoriginal"] = "()" +defs["ImGuiStorage_BuildSortByKey"][1]["call_args"] = "()" +defs["ImGuiStorage_BuildSortByKey"][1]["cimguiname"] = "ImGuiStorage_BuildSortByKey" +defs["ImGuiStorage_BuildSortByKey"][1]["defaults"] = {} +defs["ImGuiStorage_BuildSortByKey"][1]["funcname"] = "BuildSortByKey" +defs["ImGuiStorage_BuildSortByKey"][1]["location"] = "imgui:2272" +defs["ImGuiStorage_BuildSortByKey"][1]["ov_cimguiname"] = "ImGuiStorage_BuildSortByKey" +defs["ImGuiStorage_BuildSortByKey"][1]["ret"] = "void" +defs["ImGuiStorage_BuildSortByKey"][1]["signature"] = "()" +defs["ImGuiStorage_BuildSortByKey"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_BuildSortByKey"]["()"] = defs["ImGuiStorage_BuildSortByKey"][1] +defs["ImGuiStorage_Clear"] = {} +defs["ImGuiStorage_Clear"][1] = {} +defs["ImGuiStorage_Clear"][1]["args"] = "(ImGuiStorage* self)" +defs["ImGuiStorage_Clear"][1]["argsT"] = {} +defs["ImGuiStorage_Clear"][1]["argsT"][1] = {} +defs["ImGuiStorage_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_Clear"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_Clear"][1]["argsoriginal"] = "()" +defs["ImGuiStorage_Clear"][1]["call_args"] = "()" +defs["ImGuiStorage_Clear"][1]["cimguiname"] = "ImGuiStorage_Clear" +defs["ImGuiStorage_Clear"][1]["defaults"] = {} +defs["ImGuiStorage_Clear"][1]["funcname"] = "Clear" +defs["ImGuiStorage_Clear"][1]["location"] = "imgui:2249" +defs["ImGuiStorage_Clear"][1]["ov_cimguiname"] = "ImGuiStorage_Clear" +defs["ImGuiStorage_Clear"][1]["ret"] = "void" +defs["ImGuiStorage_Clear"][1]["signature"] = "()" +defs["ImGuiStorage_Clear"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_Clear"]["()"] = defs["ImGuiStorage_Clear"][1] +defs["ImGuiStorage_GetBool"] = {} +defs["ImGuiStorage_GetBool"][1] = {} +defs["ImGuiStorage_GetBool"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,bool default_val)" +defs["ImGuiStorage_GetBool"][1]["argsT"] = {} +defs["ImGuiStorage_GetBool"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetBool"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetBool"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetBool"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetBool"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetBool"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetBool"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetBool"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetBool"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiStorage_GetBool"][1]["argsoriginal"] = "(ImGuiID key,bool default_val=false)" +defs["ImGuiStorage_GetBool"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetBool"][1]["cimguiname"] = "ImGuiStorage_GetBool" +defs["ImGuiStorage_GetBool"][1]["defaults"] = {} +defs["ImGuiStorage_GetBool"][1]["defaults"]["default_val"] = "false" +defs["ImGuiStorage_GetBool"][1]["funcname"] = "GetBool" +defs["ImGuiStorage_GetBool"][1]["location"] = "imgui:2252" +defs["ImGuiStorage_GetBool"][1]["ov_cimguiname"] = "ImGuiStorage_GetBool" +defs["ImGuiStorage_GetBool"][1]["ret"] = "bool" +defs["ImGuiStorage_GetBool"][1]["signature"] = "(ImGuiID,bool)const" +defs["ImGuiStorage_GetBool"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetBool"]["(ImGuiID,bool)const"] = defs["ImGuiStorage_GetBool"][1] +defs["ImGuiStorage_GetBoolRef"] = {} +defs["ImGuiStorage_GetBoolRef"][1] = {} +defs["ImGuiStorage_GetBoolRef"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,bool default_val)" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"] = {} +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetBoolRef"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiStorage_GetBoolRef"][1]["argsoriginal"] = "(ImGuiID key,bool default_val=false)" +defs["ImGuiStorage_GetBoolRef"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetBoolRef"][1]["cimguiname"] = "ImGuiStorage_GetBoolRef" +defs["ImGuiStorage_GetBoolRef"][1]["defaults"] = {} +defs["ImGuiStorage_GetBoolRef"][1]["defaults"]["default_val"] = "false" +defs["ImGuiStorage_GetBoolRef"][1]["funcname"] = "GetBoolRef" +defs["ImGuiStorage_GetBoolRef"][1]["location"] = "imgui:2264" +defs["ImGuiStorage_GetBoolRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetBoolRef" +defs["ImGuiStorage_GetBoolRef"][1]["ret"] = "bool*" +defs["ImGuiStorage_GetBoolRef"][1]["signature"] = "(ImGuiID,bool)" +defs["ImGuiStorage_GetBoolRef"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetBoolRef"]["(ImGuiID,bool)"] = defs["ImGuiStorage_GetBoolRef"][1] +defs["ImGuiStorage_GetFloat"] = {} +defs["ImGuiStorage_GetFloat"][1] = {} +defs["ImGuiStorage_GetFloat"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,float default_val)" +defs["ImGuiStorage_GetFloat"][1]["argsT"] = {} +defs["ImGuiStorage_GetFloat"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetFloat"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetFloat"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetFloat"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetFloat"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetFloat"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetFloat"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetFloat"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetFloat"][1]["argsT"][3]["type"] = "float" +defs["ImGuiStorage_GetFloat"][1]["argsoriginal"] = "(ImGuiID key,float default_val=0.0f)" +defs["ImGuiStorage_GetFloat"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetFloat"][1]["cimguiname"] = "ImGuiStorage_GetFloat" +defs["ImGuiStorage_GetFloat"][1]["defaults"] = {} +defs["ImGuiStorage_GetFloat"][1]["defaults"]["default_val"] = "0.0f" +defs["ImGuiStorage_GetFloat"][1]["funcname"] = "GetFloat" +defs["ImGuiStorage_GetFloat"][1]["location"] = "imgui:2254" +defs["ImGuiStorage_GetFloat"][1]["ov_cimguiname"] = "ImGuiStorage_GetFloat" +defs["ImGuiStorage_GetFloat"][1]["ret"] = "float" +defs["ImGuiStorage_GetFloat"][1]["signature"] = "(ImGuiID,float)const" +defs["ImGuiStorage_GetFloat"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetFloat"]["(ImGuiID,float)const"] = defs["ImGuiStorage_GetFloat"][1] +defs["ImGuiStorage_GetFloatRef"] = {} +defs["ImGuiStorage_GetFloatRef"][1] = {} +defs["ImGuiStorage_GetFloatRef"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,float default_val)" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"] = {} +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetFloatRef"][1]["argsT"][3]["type"] = "float" +defs["ImGuiStorage_GetFloatRef"][1]["argsoriginal"] = "(ImGuiID key,float default_val=0.0f)" +defs["ImGuiStorage_GetFloatRef"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetFloatRef"][1]["cimguiname"] = "ImGuiStorage_GetFloatRef" +defs["ImGuiStorage_GetFloatRef"][1]["defaults"] = {} +defs["ImGuiStorage_GetFloatRef"][1]["defaults"]["default_val"] = "0.0f" +defs["ImGuiStorage_GetFloatRef"][1]["funcname"] = "GetFloatRef" +defs["ImGuiStorage_GetFloatRef"][1]["location"] = "imgui:2265" +defs["ImGuiStorage_GetFloatRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetFloatRef" +defs["ImGuiStorage_GetFloatRef"][1]["ret"] = "float*" +defs["ImGuiStorage_GetFloatRef"][1]["signature"] = "(ImGuiID,float)" +defs["ImGuiStorage_GetFloatRef"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetFloatRef"]["(ImGuiID,float)"] = defs["ImGuiStorage_GetFloatRef"][1] +defs["ImGuiStorage_GetInt"] = {} +defs["ImGuiStorage_GetInt"][1] = {} +defs["ImGuiStorage_GetInt"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,int default_val)" +defs["ImGuiStorage_GetInt"][1]["argsT"] = {} +defs["ImGuiStorage_GetInt"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetInt"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetInt"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetInt"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetInt"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetInt"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetInt"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetInt"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetInt"][1]["argsT"][3]["type"] = "int" +defs["ImGuiStorage_GetInt"][1]["argsoriginal"] = "(ImGuiID key,int default_val=0)" +defs["ImGuiStorage_GetInt"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetInt"][1]["cimguiname"] = "ImGuiStorage_GetInt" +defs["ImGuiStorage_GetInt"][1]["defaults"] = {} +defs["ImGuiStorage_GetInt"][1]["defaults"]["default_val"] = "0" +defs["ImGuiStorage_GetInt"][1]["funcname"] = "GetInt" +defs["ImGuiStorage_GetInt"][1]["location"] = "imgui:2250" +defs["ImGuiStorage_GetInt"][1]["ov_cimguiname"] = "ImGuiStorage_GetInt" +defs["ImGuiStorage_GetInt"][1]["ret"] = "int" +defs["ImGuiStorage_GetInt"][1]["signature"] = "(ImGuiID,int)const" +defs["ImGuiStorage_GetInt"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetInt"]["(ImGuiID,int)const"] = defs["ImGuiStorage_GetInt"][1] +defs["ImGuiStorage_GetIntRef"] = {} +defs["ImGuiStorage_GetIntRef"][1] = {} +defs["ImGuiStorage_GetIntRef"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,int default_val)" +defs["ImGuiStorage_GetIntRef"][1]["argsT"] = {} +defs["ImGuiStorage_GetIntRef"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetIntRef"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetIntRef"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetIntRef"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetIntRef"][1]["argsT"][3]["type"] = "int" +defs["ImGuiStorage_GetIntRef"][1]["argsoriginal"] = "(ImGuiID key,int default_val=0)" +defs["ImGuiStorage_GetIntRef"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetIntRef"][1]["cimguiname"] = "ImGuiStorage_GetIntRef" +defs["ImGuiStorage_GetIntRef"][1]["defaults"] = {} +defs["ImGuiStorage_GetIntRef"][1]["defaults"]["default_val"] = "0" +defs["ImGuiStorage_GetIntRef"][1]["funcname"] = "GetIntRef" +defs["ImGuiStorage_GetIntRef"][1]["location"] = "imgui:2263" +defs["ImGuiStorage_GetIntRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetIntRef" +defs["ImGuiStorage_GetIntRef"][1]["ret"] = "int*" +defs["ImGuiStorage_GetIntRef"][1]["signature"] = "(ImGuiID,int)" +defs["ImGuiStorage_GetIntRef"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetIntRef"]["(ImGuiID,int)"] = defs["ImGuiStorage_GetIntRef"][1] +defs["ImGuiStorage_GetVoidPtr"] = {} +defs["ImGuiStorage_GetVoidPtr"][1] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["args"] = "(ImGuiStorage* self,ImGuiID key)" +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetVoidPtr"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetVoidPtr"][1]["argsoriginal"] = "(ImGuiID key)" +defs["ImGuiStorage_GetVoidPtr"][1]["call_args"] = "(key)" +defs["ImGuiStorage_GetVoidPtr"][1]["cimguiname"] = "ImGuiStorage_GetVoidPtr" +defs["ImGuiStorage_GetVoidPtr"][1]["defaults"] = {} +defs["ImGuiStorage_GetVoidPtr"][1]["funcname"] = "GetVoidPtr" +defs["ImGuiStorage_GetVoidPtr"][1]["location"] = "imgui:2256" +defs["ImGuiStorage_GetVoidPtr"][1]["ov_cimguiname"] = "ImGuiStorage_GetVoidPtr" +defs["ImGuiStorage_GetVoidPtr"][1]["ret"] = "void*" +defs["ImGuiStorage_GetVoidPtr"][1]["signature"] = "(ImGuiID)const" +defs["ImGuiStorage_GetVoidPtr"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetVoidPtr"]["(ImGuiID)const"] = defs["ImGuiStorage_GetVoidPtr"][1] +defs["ImGuiStorage_GetVoidPtrRef"] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,void* default_val)" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][1] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][2] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][3] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][3]["name"] = "default_val" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsT"][3]["type"] = "void*" +defs["ImGuiStorage_GetVoidPtrRef"][1]["argsoriginal"] = "(ImGuiID key,void* default_val=((void*)0))" +defs["ImGuiStorage_GetVoidPtrRef"][1]["call_args"] = "(key,default_val)" +defs["ImGuiStorage_GetVoidPtrRef"][1]["cimguiname"] = "ImGuiStorage_GetVoidPtrRef" +defs["ImGuiStorage_GetVoidPtrRef"][1]["defaults"] = {} +defs["ImGuiStorage_GetVoidPtrRef"][1]["defaults"]["default_val"] = "NULL" +defs["ImGuiStorage_GetVoidPtrRef"][1]["funcname"] = "GetVoidPtrRef" +defs["ImGuiStorage_GetVoidPtrRef"][1]["location"] = "imgui:2266" +defs["ImGuiStorage_GetVoidPtrRef"][1]["ov_cimguiname"] = "ImGuiStorage_GetVoidPtrRef" +defs["ImGuiStorage_GetVoidPtrRef"][1]["ret"] = "void**" +defs["ImGuiStorage_GetVoidPtrRef"][1]["signature"] = "(ImGuiID,void*)" +defs["ImGuiStorage_GetVoidPtrRef"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_GetVoidPtrRef"]["(ImGuiID,void*)"] = defs["ImGuiStorage_GetVoidPtrRef"][1] +defs["ImGuiStorage_SetAllInt"] = {} +defs["ImGuiStorage_SetAllInt"][1] = {} +defs["ImGuiStorage_SetAllInt"][1]["args"] = "(ImGuiStorage* self,int val)" +defs["ImGuiStorage_SetAllInt"][1]["argsT"] = {} +defs["ImGuiStorage_SetAllInt"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetAllInt"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetAllInt"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetAllInt"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetAllInt"][1]["argsT"][2]["name"] = "val" +defs["ImGuiStorage_SetAllInt"][1]["argsT"][2]["type"] = "int" +defs["ImGuiStorage_SetAllInt"][1]["argsoriginal"] = "(int val)" +defs["ImGuiStorage_SetAllInt"][1]["call_args"] = "(val)" +defs["ImGuiStorage_SetAllInt"][1]["cimguiname"] = "ImGuiStorage_SetAllInt" +defs["ImGuiStorage_SetAllInt"][1]["defaults"] = {} +defs["ImGuiStorage_SetAllInt"][1]["funcname"] = "SetAllInt" +defs["ImGuiStorage_SetAllInt"][1]["location"] = "imgui:2269" +defs["ImGuiStorage_SetAllInt"][1]["ov_cimguiname"] = "ImGuiStorage_SetAllInt" +defs["ImGuiStorage_SetAllInt"][1]["ret"] = "void" +defs["ImGuiStorage_SetAllInt"][1]["signature"] = "(int)" +defs["ImGuiStorage_SetAllInt"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetAllInt"]["(int)"] = defs["ImGuiStorage_SetAllInt"][1] +defs["ImGuiStorage_SetBool"] = {} +defs["ImGuiStorage_SetBool"][1] = {} +defs["ImGuiStorage_SetBool"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,bool val)" +defs["ImGuiStorage_SetBool"][1]["argsT"] = {} +defs["ImGuiStorage_SetBool"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetBool"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetBool"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetBool"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetBool"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_SetBool"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_SetBool"][1]["argsT"][3] = {} +defs["ImGuiStorage_SetBool"][1]["argsT"][3]["name"] = "val" +defs["ImGuiStorage_SetBool"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiStorage_SetBool"][1]["argsoriginal"] = "(ImGuiID key,bool val)" +defs["ImGuiStorage_SetBool"][1]["call_args"] = "(key,val)" +defs["ImGuiStorage_SetBool"][1]["cimguiname"] = "ImGuiStorage_SetBool" +defs["ImGuiStorage_SetBool"][1]["defaults"] = {} +defs["ImGuiStorage_SetBool"][1]["funcname"] = "SetBool" +defs["ImGuiStorage_SetBool"][1]["location"] = "imgui:2253" +defs["ImGuiStorage_SetBool"][1]["ov_cimguiname"] = "ImGuiStorage_SetBool" +defs["ImGuiStorage_SetBool"][1]["ret"] = "void" +defs["ImGuiStorage_SetBool"][1]["signature"] = "(ImGuiID,bool)" +defs["ImGuiStorage_SetBool"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetBool"]["(ImGuiID,bool)"] = defs["ImGuiStorage_SetBool"][1] +defs["ImGuiStorage_SetFloat"] = {} +defs["ImGuiStorage_SetFloat"][1] = {} +defs["ImGuiStorage_SetFloat"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,float val)" +defs["ImGuiStorage_SetFloat"][1]["argsT"] = {} +defs["ImGuiStorage_SetFloat"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetFloat"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetFloat"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetFloat"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetFloat"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_SetFloat"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_SetFloat"][1]["argsT"][3] = {} +defs["ImGuiStorage_SetFloat"][1]["argsT"][3]["name"] = "val" +defs["ImGuiStorage_SetFloat"][1]["argsT"][3]["type"] = "float" +defs["ImGuiStorage_SetFloat"][1]["argsoriginal"] = "(ImGuiID key,float val)" +defs["ImGuiStorage_SetFloat"][1]["call_args"] = "(key,val)" +defs["ImGuiStorage_SetFloat"][1]["cimguiname"] = "ImGuiStorage_SetFloat" +defs["ImGuiStorage_SetFloat"][1]["defaults"] = {} +defs["ImGuiStorage_SetFloat"][1]["funcname"] = "SetFloat" +defs["ImGuiStorage_SetFloat"][1]["location"] = "imgui:2255" +defs["ImGuiStorage_SetFloat"][1]["ov_cimguiname"] = "ImGuiStorage_SetFloat" +defs["ImGuiStorage_SetFloat"][1]["ret"] = "void" +defs["ImGuiStorage_SetFloat"][1]["signature"] = "(ImGuiID,float)" +defs["ImGuiStorage_SetFloat"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetFloat"]["(ImGuiID,float)"] = defs["ImGuiStorage_SetFloat"][1] +defs["ImGuiStorage_SetInt"] = {} +defs["ImGuiStorage_SetInt"][1] = {} +defs["ImGuiStorage_SetInt"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,int val)" +defs["ImGuiStorage_SetInt"][1]["argsT"] = {} +defs["ImGuiStorage_SetInt"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetInt"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetInt"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetInt"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetInt"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_SetInt"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_SetInt"][1]["argsT"][3] = {} +defs["ImGuiStorage_SetInt"][1]["argsT"][3]["name"] = "val" +defs["ImGuiStorage_SetInt"][1]["argsT"][3]["type"] = "int" +defs["ImGuiStorage_SetInt"][1]["argsoriginal"] = "(ImGuiID key,int val)" +defs["ImGuiStorage_SetInt"][1]["call_args"] = "(key,val)" +defs["ImGuiStorage_SetInt"][1]["cimguiname"] = "ImGuiStorage_SetInt" +defs["ImGuiStorage_SetInt"][1]["defaults"] = {} +defs["ImGuiStorage_SetInt"][1]["funcname"] = "SetInt" +defs["ImGuiStorage_SetInt"][1]["location"] = "imgui:2251" +defs["ImGuiStorage_SetInt"][1]["ov_cimguiname"] = "ImGuiStorage_SetInt" +defs["ImGuiStorage_SetInt"][1]["ret"] = "void" +defs["ImGuiStorage_SetInt"][1]["signature"] = "(ImGuiID,int)" +defs["ImGuiStorage_SetInt"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetInt"]["(ImGuiID,int)"] = defs["ImGuiStorage_SetInt"][1] +defs["ImGuiStorage_SetVoidPtr"] = {} +defs["ImGuiStorage_SetVoidPtr"][1] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["args"] = "(ImGuiStorage* self,ImGuiID key,void* val)" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][1] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][2] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][2]["name"] = "key" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][3] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][3]["name"] = "val" +defs["ImGuiStorage_SetVoidPtr"][1]["argsT"][3]["type"] = "void*" +defs["ImGuiStorage_SetVoidPtr"][1]["argsoriginal"] = "(ImGuiID key,void* val)" +defs["ImGuiStorage_SetVoidPtr"][1]["call_args"] = "(key,val)" +defs["ImGuiStorage_SetVoidPtr"][1]["cimguiname"] = "ImGuiStorage_SetVoidPtr" +defs["ImGuiStorage_SetVoidPtr"][1]["defaults"] = {} +defs["ImGuiStorage_SetVoidPtr"][1]["funcname"] = "SetVoidPtr" +defs["ImGuiStorage_SetVoidPtr"][1]["location"] = "imgui:2257" +defs["ImGuiStorage_SetVoidPtr"][1]["ov_cimguiname"] = "ImGuiStorage_SetVoidPtr" +defs["ImGuiStorage_SetVoidPtr"][1]["ret"] = "void" +defs["ImGuiStorage_SetVoidPtr"][1]["signature"] = "(ImGuiID,void*)" +defs["ImGuiStorage_SetVoidPtr"][1]["stname"] = "ImGuiStorage" +defs["ImGuiStorage_SetVoidPtr"]["(ImGuiID,void*)"] = defs["ImGuiStorage_SetVoidPtr"][1] +defs["ImGuiStyle_ImGuiStyle"] = {} +defs["ImGuiStyle_ImGuiStyle"][1] = {} +defs["ImGuiStyle_ImGuiStyle"][1]["args"] = "()" +defs["ImGuiStyle_ImGuiStyle"][1]["argsT"] = {} +defs["ImGuiStyle_ImGuiStyle"][1]["argsoriginal"] = "()" +defs["ImGuiStyle_ImGuiStyle"][1]["call_args"] = "()" +defs["ImGuiStyle_ImGuiStyle"][1]["cimguiname"] = "ImGuiStyle_ImGuiStyle" +defs["ImGuiStyle_ImGuiStyle"][1]["constructor"] = true +defs["ImGuiStyle_ImGuiStyle"][1]["defaults"] = {} +defs["ImGuiStyle_ImGuiStyle"][1]["funcname"] = "ImGuiStyle" +defs["ImGuiStyle_ImGuiStyle"][1]["location"] = "imgui:1877" +defs["ImGuiStyle_ImGuiStyle"][1]["ov_cimguiname"] = "ImGuiStyle_ImGuiStyle" +defs["ImGuiStyle_ImGuiStyle"][1]["signature"] = "()" +defs["ImGuiStyle_ImGuiStyle"][1]["stname"] = "ImGuiStyle" +defs["ImGuiStyle_ImGuiStyle"]["()"] = defs["ImGuiStyle_ImGuiStyle"][1] +defs["ImGuiStyle_ScaleAllSizes"] = {} +defs["ImGuiStyle_ScaleAllSizes"][1] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["args"] = "(ImGuiStyle* self,float scale_factor)" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][1] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][2] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][2]["name"] = "scale_factor" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsT"][2]["type"] = "float" +defs["ImGuiStyle_ScaleAllSizes"][1]["argsoriginal"] = "(float scale_factor)" +defs["ImGuiStyle_ScaleAllSizes"][1]["call_args"] = "(scale_factor)" +defs["ImGuiStyle_ScaleAllSizes"][1]["cimguiname"] = "ImGuiStyle_ScaleAllSizes" +defs["ImGuiStyle_ScaleAllSizes"][1]["defaults"] = {} +defs["ImGuiStyle_ScaleAllSizes"][1]["funcname"] = "ScaleAllSizes" +defs["ImGuiStyle_ScaleAllSizes"][1]["location"] = "imgui:1878" +defs["ImGuiStyle_ScaleAllSizes"][1]["ov_cimguiname"] = "ImGuiStyle_ScaleAllSizes" +defs["ImGuiStyle_ScaleAllSizes"][1]["ret"] = "void" +defs["ImGuiStyle_ScaleAllSizes"][1]["signature"] = "(float)" +defs["ImGuiStyle_ScaleAllSizes"][1]["stname"] = "ImGuiStyle" +defs["ImGuiStyle_ScaleAllSizes"]["(float)"] = defs["ImGuiStyle_ScaleAllSizes"][1] +defs["ImGuiStyle_destroy"] = {} +defs["ImGuiStyle_destroy"][1] = {} +defs["ImGuiStyle_destroy"][1]["args"] = "(ImGuiStyle* self)" +defs["ImGuiStyle_destroy"][1]["argsT"] = {} +defs["ImGuiStyle_destroy"][1]["argsT"][1] = {} +defs["ImGuiStyle_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStyle_destroy"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["ImGuiStyle_destroy"][1]["call_args"] = "(self)" +defs["ImGuiStyle_destroy"][1]["cimguiname"] = "ImGuiStyle_destroy" +defs["ImGuiStyle_destroy"][1]["defaults"] = {} +defs["ImGuiStyle_destroy"][1]["destructor"] = true +defs["ImGuiStyle_destroy"][1]["ov_cimguiname"] = "ImGuiStyle_destroy" +defs["ImGuiStyle_destroy"][1]["ret"] = "void" +defs["ImGuiStyle_destroy"][1]["signature"] = "(ImGuiStyle*)" +defs["ImGuiStyle_destroy"][1]["stname"] = "ImGuiStyle" +defs["ImGuiStyle_destroy"]["(ImGuiStyle*)"] = defs["ImGuiStyle_destroy"][1] +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"] = {} +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1] = {} +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["args"] = "()" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["argsT"] = {} +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["argsoriginal"] = "()" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["call_args"] = "()" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["cimguiname"] = "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["constructor"] = true +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["defaults"] = {} +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["funcname"] = "ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["location"] = "imgui:2140" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["ov_cimguiname"] = "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["signature"] = "()" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["stname"] = "ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"]["()"] = defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1] +defs["ImGuiTableColumnSortSpecs_destroy"] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1]["args"] = "(ImGuiTableColumnSortSpecs* self)" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["argsT"] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["argsT"][1]["type"] = "ImGuiTableColumnSortSpecs*" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["cimguiname"] = "ImGuiTableColumnSortSpecs_destroy" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["defaults"] = {} +defs["ImGuiTableColumnSortSpecs_destroy"][1]["destructor"] = true +defs["ImGuiTableColumnSortSpecs_destroy"][1]["ov_cimguiname"] = "ImGuiTableColumnSortSpecs_destroy" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["ret"] = "void" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["signature"] = "(ImGuiTableColumnSortSpecs*)" +defs["ImGuiTableColumnSortSpecs_destroy"][1]["stname"] = "ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnSortSpecs_destroy"]["(ImGuiTableColumnSortSpecs*)"] = defs["ImGuiTableColumnSortSpecs_destroy"][1] +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"] = {} +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1] = {} +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["args"] = "()" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["argsT"] = {} +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["argsoriginal"] = "()" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["call_args"] = "()" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["cimguiname"] = "ImGuiTableSortSpecs_ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["constructor"] = true +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["defaults"] = {} +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["funcname"] = "ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["location"] = "imgui:2153" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["ov_cimguiname"] = "ImGuiTableSortSpecs_ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["signature"] = "()" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["stname"] = "ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"]["()"] = defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1] +defs["ImGuiTableSortSpecs_destroy"] = {} +defs["ImGuiTableSortSpecs_destroy"][1] = {} +defs["ImGuiTableSortSpecs_destroy"][1]["args"] = "(ImGuiTableSortSpecs* self)" +defs["ImGuiTableSortSpecs_destroy"][1]["argsT"] = {} +defs["ImGuiTableSortSpecs_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableSortSpecs_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableSortSpecs_destroy"][1]["argsT"][1]["type"] = "ImGuiTableSortSpecs*" +defs["ImGuiTableSortSpecs_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableSortSpecs_destroy"][1]["cimguiname"] = "ImGuiTableSortSpecs_destroy" +defs["ImGuiTableSortSpecs_destroy"][1]["defaults"] = {} +defs["ImGuiTableSortSpecs_destroy"][1]["destructor"] = true +defs["ImGuiTableSortSpecs_destroy"][1]["ov_cimguiname"] = "ImGuiTableSortSpecs_destroy" +defs["ImGuiTableSortSpecs_destroy"][1]["ret"] = "void" +defs["ImGuiTableSortSpecs_destroy"][1]["signature"] = "(ImGuiTableSortSpecs*)" +defs["ImGuiTableSortSpecs_destroy"][1]["stname"] = "ImGuiTableSortSpecs" +defs["ImGuiTableSortSpecs_destroy"]["(ImGuiTableSortSpecs*)"] = defs["ImGuiTableSortSpecs_destroy"][1] +defs["ImGuiTextBuffer_ImGuiTextBuffer"] = {} +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1] = {} +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["args"] = "()" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["argsT"] = {} +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["cimguiname"] = "ImGuiTextBuffer_ImGuiTextBuffer" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["constructor"] = true +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["defaults"] = {} +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["funcname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["location"] = "imgui:2210" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["ov_cimguiname"] = "ImGuiTextBuffer_ImGuiTextBuffer" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["signature"] = "()" +defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_ImGuiTextBuffer"]["()"] = defs["ImGuiTextBuffer_ImGuiTextBuffer"][1] +defs["ImGuiTextBuffer_append"] = {} +defs["ImGuiTextBuffer_append"][1] = {} +defs["ImGuiTextBuffer_append"][1]["args"] = "(ImGuiTextBuffer* self,const char* str,const char* str_end)" +defs["ImGuiTextBuffer_append"][1]["argsT"] = {} +defs["ImGuiTextBuffer_append"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_append"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_append"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_append"][1]["argsT"][2] = {} +defs["ImGuiTextBuffer_append"][1]["argsT"][2]["name"] = "str" +defs["ImGuiTextBuffer_append"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextBuffer_append"][1]["argsT"][3] = {} +defs["ImGuiTextBuffer_append"][1]["argsT"][3]["name"] = "str_end" +defs["ImGuiTextBuffer_append"][1]["argsT"][3]["type"] = "const char*" +defs["ImGuiTextBuffer_append"][1]["argsoriginal"] = "(const char* str,const char* str_end=((void*)0))" +defs["ImGuiTextBuffer_append"][1]["call_args"] = "(str,str_end)" +defs["ImGuiTextBuffer_append"][1]["cimguiname"] = "ImGuiTextBuffer_append" +defs["ImGuiTextBuffer_append"][1]["defaults"] = {} +defs["ImGuiTextBuffer_append"][1]["defaults"]["str_end"] = "NULL" +defs["ImGuiTextBuffer_append"][1]["funcname"] = "append" +defs["ImGuiTextBuffer_append"][1]["location"] = "imgui:2219" +defs["ImGuiTextBuffer_append"][1]["ov_cimguiname"] = "ImGuiTextBuffer_append" +defs["ImGuiTextBuffer_append"][1]["ret"] = "void" +defs["ImGuiTextBuffer_append"][1]["signature"] = "(const char*,const char*)" +defs["ImGuiTextBuffer_append"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_append"]["(const char*,const char*)"] = defs["ImGuiTextBuffer_append"][1] +defs["ImGuiTextBuffer_appendf"] = {} +defs["ImGuiTextBuffer_appendf"][1] = {} +defs["ImGuiTextBuffer_appendf"][1]["args"] = "(ImGuiTextBuffer* self,const char* fmt,...)" +defs["ImGuiTextBuffer_appendf"][1]["argsT"] = {} +defs["ImGuiTextBuffer_appendf"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_appendf"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_appendf"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_appendf"][1]["argsT"][2] = {} +defs["ImGuiTextBuffer_appendf"][1]["argsT"][2]["name"] = "fmt" +defs["ImGuiTextBuffer_appendf"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextBuffer_appendf"][1]["argsT"][3] = {} +defs["ImGuiTextBuffer_appendf"][1]["argsT"][3]["name"] = "..." +defs["ImGuiTextBuffer_appendf"][1]["argsT"][3]["type"] = "..." +defs["ImGuiTextBuffer_appendf"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["ImGuiTextBuffer_appendf"][1]["call_args"] = "(fmt,...)" +defs["ImGuiTextBuffer_appendf"][1]["cimguiname"] = "ImGuiTextBuffer_appendf" +defs["ImGuiTextBuffer_appendf"][1]["defaults"] = {} +defs["ImGuiTextBuffer_appendf"][1]["funcname"] = "appendf" +defs["ImGuiTextBuffer_appendf"][1]["isvararg"] = "...)" +defs["ImGuiTextBuffer_appendf"][1]["location"] = "imgui:2220" +defs["ImGuiTextBuffer_appendf"][1]["manual"] = true +defs["ImGuiTextBuffer_appendf"][1]["ov_cimguiname"] = "ImGuiTextBuffer_appendf" +defs["ImGuiTextBuffer_appendf"][1]["ret"] = "void" +defs["ImGuiTextBuffer_appendf"][1]["signature"] = "(const char*,...)" +defs["ImGuiTextBuffer_appendf"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_appendf"]["(const char*,...)"] = defs["ImGuiTextBuffer_appendf"][1] +defs["ImGuiTextBuffer_appendfv"] = {} +defs["ImGuiTextBuffer_appendfv"][1] = {} +defs["ImGuiTextBuffer_appendfv"][1]["args"] = "(ImGuiTextBuffer* self,const char* fmt,va_list args)" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"] = {} +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][2] = {} +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][2]["name"] = "fmt" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][3] = {} +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][3]["name"] = "args" +defs["ImGuiTextBuffer_appendfv"][1]["argsT"][3]["type"] = "va_list" +defs["ImGuiTextBuffer_appendfv"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["ImGuiTextBuffer_appendfv"][1]["call_args"] = "(fmt,args)" +defs["ImGuiTextBuffer_appendfv"][1]["cimguiname"] = "ImGuiTextBuffer_appendfv" +defs["ImGuiTextBuffer_appendfv"][1]["defaults"] = {} +defs["ImGuiTextBuffer_appendfv"][1]["funcname"] = "appendfv" +defs["ImGuiTextBuffer_appendfv"][1]["location"] = "imgui:2221" +defs["ImGuiTextBuffer_appendfv"][1]["ov_cimguiname"] = "ImGuiTextBuffer_appendfv" +defs["ImGuiTextBuffer_appendfv"][1]["ret"] = "void" +defs["ImGuiTextBuffer_appendfv"][1]["signature"] = "(const char*,va_list)" +defs["ImGuiTextBuffer_appendfv"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_appendfv"]["(const char*,va_list)"] = defs["ImGuiTextBuffer_appendfv"][1] +defs["ImGuiTextBuffer_begin"] = {} +defs["ImGuiTextBuffer_begin"][1] = {} +defs["ImGuiTextBuffer_begin"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_begin"][1]["argsT"] = {} +defs["ImGuiTextBuffer_begin"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_begin"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_begin"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_begin"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_begin"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_begin"][1]["cimguiname"] = "ImGuiTextBuffer_begin" +defs["ImGuiTextBuffer_begin"][1]["defaults"] = {} +defs["ImGuiTextBuffer_begin"][1]["funcname"] = "begin" +defs["ImGuiTextBuffer_begin"][1]["location"] = "imgui:2212" +defs["ImGuiTextBuffer_begin"][1]["ov_cimguiname"] = "ImGuiTextBuffer_begin" +defs["ImGuiTextBuffer_begin"][1]["ret"] = "const char*" +defs["ImGuiTextBuffer_begin"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_begin"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_begin"]["()const"] = defs["ImGuiTextBuffer_begin"][1] +defs["ImGuiTextBuffer_c_str"] = {} +defs["ImGuiTextBuffer_c_str"][1] = {} +defs["ImGuiTextBuffer_c_str"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_c_str"][1]["argsT"] = {} +defs["ImGuiTextBuffer_c_str"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_c_str"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_c_str"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_c_str"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_c_str"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_c_str"][1]["cimguiname"] = "ImGuiTextBuffer_c_str" +defs["ImGuiTextBuffer_c_str"][1]["defaults"] = {} +defs["ImGuiTextBuffer_c_str"][1]["funcname"] = "c_str" +defs["ImGuiTextBuffer_c_str"][1]["location"] = "imgui:2218" +defs["ImGuiTextBuffer_c_str"][1]["ov_cimguiname"] = "ImGuiTextBuffer_c_str" +defs["ImGuiTextBuffer_c_str"][1]["ret"] = "const char*" +defs["ImGuiTextBuffer_c_str"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_c_str"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_c_str"]["()const"] = defs["ImGuiTextBuffer_c_str"][1] +defs["ImGuiTextBuffer_clear"] = {} +defs["ImGuiTextBuffer_clear"][1] = {} +defs["ImGuiTextBuffer_clear"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_clear"][1]["argsT"] = {} +defs["ImGuiTextBuffer_clear"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_clear"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_clear"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_clear"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_clear"][1]["cimguiname"] = "ImGuiTextBuffer_clear" +defs["ImGuiTextBuffer_clear"][1]["defaults"] = {} +defs["ImGuiTextBuffer_clear"][1]["funcname"] = "clear" +defs["ImGuiTextBuffer_clear"][1]["location"] = "imgui:2216" +defs["ImGuiTextBuffer_clear"][1]["ov_cimguiname"] = "ImGuiTextBuffer_clear" +defs["ImGuiTextBuffer_clear"][1]["ret"] = "void" +defs["ImGuiTextBuffer_clear"][1]["signature"] = "()" +defs["ImGuiTextBuffer_clear"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_clear"]["()"] = defs["ImGuiTextBuffer_clear"][1] +defs["ImGuiTextBuffer_destroy"] = {} +defs["ImGuiTextBuffer_destroy"][1] = {} +defs["ImGuiTextBuffer_destroy"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_destroy"][1]["argsT"] = {} +defs["ImGuiTextBuffer_destroy"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_destroy"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTextBuffer_destroy"][1]["cimguiname"] = "ImGuiTextBuffer_destroy" +defs["ImGuiTextBuffer_destroy"][1]["defaults"] = {} +defs["ImGuiTextBuffer_destroy"][1]["destructor"] = true +defs["ImGuiTextBuffer_destroy"][1]["ov_cimguiname"] = "ImGuiTextBuffer_destroy" +defs["ImGuiTextBuffer_destroy"][1]["ret"] = "void" +defs["ImGuiTextBuffer_destroy"][1]["signature"] = "(ImGuiTextBuffer*)" +defs["ImGuiTextBuffer_destroy"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_destroy"]["(ImGuiTextBuffer*)"] = defs["ImGuiTextBuffer_destroy"][1] +defs["ImGuiTextBuffer_empty"] = {} +defs["ImGuiTextBuffer_empty"][1] = {} +defs["ImGuiTextBuffer_empty"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_empty"][1]["argsT"] = {} +defs["ImGuiTextBuffer_empty"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_empty"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_empty"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_empty"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_empty"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_empty"][1]["cimguiname"] = "ImGuiTextBuffer_empty" +defs["ImGuiTextBuffer_empty"][1]["defaults"] = {} +defs["ImGuiTextBuffer_empty"][1]["funcname"] = "empty" +defs["ImGuiTextBuffer_empty"][1]["location"] = "imgui:2215" +defs["ImGuiTextBuffer_empty"][1]["ov_cimguiname"] = "ImGuiTextBuffer_empty" +defs["ImGuiTextBuffer_empty"][1]["ret"] = "bool" +defs["ImGuiTextBuffer_empty"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_empty"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_empty"]["()const"] = defs["ImGuiTextBuffer_empty"][1] +defs["ImGuiTextBuffer_end"] = {} +defs["ImGuiTextBuffer_end"][1] = {} +defs["ImGuiTextBuffer_end"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_end"][1]["argsT"] = {} +defs["ImGuiTextBuffer_end"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_end"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_end"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_end"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_end"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_end"][1]["cimguiname"] = "ImGuiTextBuffer_end" +defs["ImGuiTextBuffer_end"][1]["defaults"] = {} +defs["ImGuiTextBuffer_end"][1]["funcname"] = "end" +defs["ImGuiTextBuffer_end"][1]["location"] = "imgui:2213" +defs["ImGuiTextBuffer_end"][1]["ov_cimguiname"] = "ImGuiTextBuffer_end" +defs["ImGuiTextBuffer_end"][1]["ret"] = "const char*" +defs["ImGuiTextBuffer_end"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_end"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_end"]["()const"] = defs["ImGuiTextBuffer_end"][1] +defs["ImGuiTextBuffer_reserve"] = {} +defs["ImGuiTextBuffer_reserve"][1] = {} +defs["ImGuiTextBuffer_reserve"][1]["args"] = "(ImGuiTextBuffer* self,int capacity)" +defs["ImGuiTextBuffer_reserve"][1]["argsT"] = {} +defs["ImGuiTextBuffer_reserve"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_reserve"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_reserve"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_reserve"][1]["argsT"][2] = {} +defs["ImGuiTextBuffer_reserve"][1]["argsT"][2]["name"] = "capacity" +defs["ImGuiTextBuffer_reserve"][1]["argsT"][2]["type"] = "int" +defs["ImGuiTextBuffer_reserve"][1]["argsoriginal"] = "(int capacity)" +defs["ImGuiTextBuffer_reserve"][1]["call_args"] = "(capacity)" +defs["ImGuiTextBuffer_reserve"][1]["cimguiname"] = "ImGuiTextBuffer_reserve" +defs["ImGuiTextBuffer_reserve"][1]["defaults"] = {} +defs["ImGuiTextBuffer_reserve"][1]["funcname"] = "reserve" +defs["ImGuiTextBuffer_reserve"][1]["location"] = "imgui:2217" +defs["ImGuiTextBuffer_reserve"][1]["ov_cimguiname"] = "ImGuiTextBuffer_reserve" +defs["ImGuiTextBuffer_reserve"][1]["ret"] = "void" +defs["ImGuiTextBuffer_reserve"][1]["signature"] = "(int)" +defs["ImGuiTextBuffer_reserve"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_reserve"]["(int)"] = defs["ImGuiTextBuffer_reserve"][1] +defs["ImGuiTextBuffer_size"] = {} +defs["ImGuiTextBuffer_size"][1] = {} +defs["ImGuiTextBuffer_size"][1]["args"] = "(ImGuiTextBuffer* self)" +defs["ImGuiTextBuffer_size"][1]["argsT"] = {} +defs["ImGuiTextBuffer_size"][1]["argsT"][1] = {} +defs["ImGuiTextBuffer_size"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextBuffer_size"][1]["argsT"][1]["type"] = "ImGuiTextBuffer*" +defs["ImGuiTextBuffer_size"][1]["argsoriginal"] = "()" +defs["ImGuiTextBuffer_size"][1]["call_args"] = "()" +defs["ImGuiTextBuffer_size"][1]["cimguiname"] = "ImGuiTextBuffer_size" +defs["ImGuiTextBuffer_size"][1]["defaults"] = {} +defs["ImGuiTextBuffer_size"][1]["funcname"] = "size" +defs["ImGuiTextBuffer_size"][1]["location"] = "imgui:2214" +defs["ImGuiTextBuffer_size"][1]["ov_cimguiname"] = "ImGuiTextBuffer_size" +defs["ImGuiTextBuffer_size"][1]["ret"] = "int" +defs["ImGuiTextBuffer_size"][1]["signature"] = "()const" +defs["ImGuiTextBuffer_size"][1]["stname"] = "ImGuiTextBuffer" +defs["ImGuiTextBuffer_size"]["()const"] = defs["ImGuiTextBuffer_size"][1] +defs["ImGuiTextFilter_Build"] = {} +defs["ImGuiTextFilter_Build"][1] = {} +defs["ImGuiTextFilter_Build"][1]["args"] = "(ImGuiTextFilter* self)" +defs["ImGuiTextFilter_Build"][1]["argsT"] = {} +defs["ImGuiTextFilter_Build"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_Build"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_Build"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_Build"][1]["argsoriginal"] = "()" +defs["ImGuiTextFilter_Build"][1]["call_args"] = "()" +defs["ImGuiTextFilter_Build"][1]["cimguiname"] = "ImGuiTextFilter_Build" +defs["ImGuiTextFilter_Build"][1]["defaults"] = {} +defs["ImGuiTextFilter_Build"][1]["funcname"] = "Build" +defs["ImGuiTextFilter_Build"][1]["location"] = "imgui:2183" +defs["ImGuiTextFilter_Build"][1]["ov_cimguiname"] = "ImGuiTextFilter_Build" +defs["ImGuiTextFilter_Build"][1]["ret"] = "void" +defs["ImGuiTextFilter_Build"][1]["signature"] = "()" +defs["ImGuiTextFilter_Build"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_Build"]["()"] = defs["ImGuiTextFilter_Build"][1] +defs["ImGuiTextFilter_Clear"] = {} +defs["ImGuiTextFilter_Clear"][1] = {} +defs["ImGuiTextFilter_Clear"][1]["args"] = "(ImGuiTextFilter* self)" +defs["ImGuiTextFilter_Clear"][1]["argsT"] = {} +defs["ImGuiTextFilter_Clear"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_Clear"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_Clear"][1]["argsoriginal"] = "()" +defs["ImGuiTextFilter_Clear"][1]["call_args"] = "()" +defs["ImGuiTextFilter_Clear"][1]["cimguiname"] = "ImGuiTextFilter_Clear" +defs["ImGuiTextFilter_Clear"][1]["defaults"] = {} +defs["ImGuiTextFilter_Clear"][1]["funcname"] = "Clear" +defs["ImGuiTextFilter_Clear"][1]["location"] = "imgui:2184" +defs["ImGuiTextFilter_Clear"][1]["ov_cimguiname"] = "ImGuiTextFilter_Clear" +defs["ImGuiTextFilter_Clear"][1]["ret"] = "void" +defs["ImGuiTextFilter_Clear"][1]["signature"] = "()" +defs["ImGuiTextFilter_Clear"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_Clear"]["()"] = defs["ImGuiTextFilter_Clear"][1] +defs["ImGuiTextFilter_Draw"] = {} +defs["ImGuiTextFilter_Draw"][1] = {} +defs["ImGuiTextFilter_Draw"][1]["args"] = "(ImGuiTextFilter* self,const char* label,float width)" +defs["ImGuiTextFilter_Draw"][1]["argsT"] = {} +defs["ImGuiTextFilter_Draw"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_Draw"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_Draw"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_Draw"][1]["argsT"][2] = {} +defs["ImGuiTextFilter_Draw"][1]["argsT"][2]["name"] = "label" +defs["ImGuiTextFilter_Draw"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextFilter_Draw"][1]["argsT"][3] = {} +defs["ImGuiTextFilter_Draw"][1]["argsT"][3]["name"] = "width" +defs["ImGuiTextFilter_Draw"][1]["argsT"][3]["type"] = "float" +defs["ImGuiTextFilter_Draw"][1]["argsoriginal"] = "(const char* label=\"Filter(inc,-exc)\",float width=0.0f)" +defs["ImGuiTextFilter_Draw"][1]["call_args"] = "(label,width)" +defs["ImGuiTextFilter_Draw"][1]["cimguiname"] = "ImGuiTextFilter_Draw" +defs["ImGuiTextFilter_Draw"][1]["defaults"] = {} +defs["ImGuiTextFilter_Draw"][1]["defaults"]["label"] = "\"Filter(inc,-exc)\"" +defs["ImGuiTextFilter_Draw"][1]["defaults"]["width"] = "0.0f" +defs["ImGuiTextFilter_Draw"][1]["funcname"] = "Draw" +defs["ImGuiTextFilter_Draw"][1]["location"] = "imgui:2181" +defs["ImGuiTextFilter_Draw"][1]["ov_cimguiname"] = "ImGuiTextFilter_Draw" +defs["ImGuiTextFilter_Draw"][1]["ret"] = "bool" +defs["ImGuiTextFilter_Draw"][1]["signature"] = "(const char*,float)" +defs["ImGuiTextFilter_Draw"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_Draw"]["(const char*,float)"] = defs["ImGuiTextFilter_Draw"][1] +defs["ImGuiTextFilter_ImGuiTextFilter"] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["args"] = "(const char* default_filter)" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsT"] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsT"][1]["name"] = "default_filter" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsT"][1]["type"] = "const char*" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["argsoriginal"] = "(const char* default_filter=\"\")" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["call_args"] = "(default_filter)" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["cimguiname"] = "ImGuiTextFilter_ImGuiTextFilter" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["constructor"] = true +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["defaults"] = {} +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["defaults"]["default_filter"] = "\"\"" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["funcname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["location"] = "imgui:2180" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["ov_cimguiname"] = "ImGuiTextFilter_ImGuiTextFilter" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["signature"] = "(const char*)" +defs["ImGuiTextFilter_ImGuiTextFilter"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_ImGuiTextFilter"]["(const char*)"] = defs["ImGuiTextFilter_ImGuiTextFilter"][1] +defs["ImGuiTextFilter_IsActive"] = {} +defs["ImGuiTextFilter_IsActive"][1] = {} +defs["ImGuiTextFilter_IsActive"][1]["args"] = "(ImGuiTextFilter* self)" +defs["ImGuiTextFilter_IsActive"][1]["argsT"] = {} +defs["ImGuiTextFilter_IsActive"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_IsActive"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_IsActive"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_IsActive"][1]["argsoriginal"] = "()" +defs["ImGuiTextFilter_IsActive"][1]["call_args"] = "()" +defs["ImGuiTextFilter_IsActive"][1]["cimguiname"] = "ImGuiTextFilter_IsActive" +defs["ImGuiTextFilter_IsActive"][1]["defaults"] = {} +defs["ImGuiTextFilter_IsActive"][1]["funcname"] = "IsActive" +defs["ImGuiTextFilter_IsActive"][1]["location"] = "imgui:2185" +defs["ImGuiTextFilter_IsActive"][1]["ov_cimguiname"] = "ImGuiTextFilter_IsActive" +defs["ImGuiTextFilter_IsActive"][1]["ret"] = "bool" +defs["ImGuiTextFilter_IsActive"][1]["signature"] = "()const" +defs["ImGuiTextFilter_IsActive"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_IsActive"]["()const"] = defs["ImGuiTextFilter_IsActive"][1] +defs["ImGuiTextFilter_PassFilter"] = {} +defs["ImGuiTextFilter_PassFilter"][1] = {} +defs["ImGuiTextFilter_PassFilter"][1]["args"] = "(ImGuiTextFilter* self,const char* text,const char* text_end)" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"] = {} +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][2] = {} +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][2]["name"] = "text" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][3] = {} +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][3]["name"] = "text_end" +defs["ImGuiTextFilter_PassFilter"][1]["argsT"][3]["type"] = "const char*" +defs["ImGuiTextFilter_PassFilter"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0))" +defs["ImGuiTextFilter_PassFilter"][1]["call_args"] = "(text,text_end)" +defs["ImGuiTextFilter_PassFilter"][1]["cimguiname"] = "ImGuiTextFilter_PassFilter" +defs["ImGuiTextFilter_PassFilter"][1]["defaults"] = {} +defs["ImGuiTextFilter_PassFilter"][1]["defaults"]["text_end"] = "NULL" +defs["ImGuiTextFilter_PassFilter"][1]["funcname"] = "PassFilter" +defs["ImGuiTextFilter_PassFilter"][1]["location"] = "imgui:2182" +defs["ImGuiTextFilter_PassFilter"][1]["ov_cimguiname"] = "ImGuiTextFilter_PassFilter" +defs["ImGuiTextFilter_PassFilter"][1]["ret"] = "bool" +defs["ImGuiTextFilter_PassFilter"][1]["signature"] = "(const char*,const char*)const" +defs["ImGuiTextFilter_PassFilter"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_PassFilter"]["(const char*,const char*)const"] = defs["ImGuiTextFilter_PassFilter"][1] +defs["ImGuiTextFilter_destroy"] = {} +defs["ImGuiTextFilter_destroy"][1] = {} +defs["ImGuiTextFilter_destroy"][1]["args"] = "(ImGuiTextFilter* self)" +defs["ImGuiTextFilter_destroy"][1]["argsT"] = {} +defs["ImGuiTextFilter_destroy"][1]["argsT"][1] = {} +defs["ImGuiTextFilter_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextFilter_destroy"][1]["argsT"][1]["type"] = "ImGuiTextFilter*" +defs["ImGuiTextFilter_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTextFilter_destroy"][1]["cimguiname"] = "ImGuiTextFilter_destroy" +defs["ImGuiTextFilter_destroy"][1]["defaults"] = {} +defs["ImGuiTextFilter_destroy"][1]["destructor"] = true +defs["ImGuiTextFilter_destroy"][1]["ov_cimguiname"] = "ImGuiTextFilter_destroy" +defs["ImGuiTextFilter_destroy"][1]["ret"] = "void" +defs["ImGuiTextFilter_destroy"][1]["signature"] = "(ImGuiTextFilter*)" +defs["ImGuiTextFilter_destroy"][1]["stname"] = "ImGuiTextFilter" +defs["ImGuiTextFilter_destroy"]["(ImGuiTextFilter*)"] = defs["ImGuiTextFilter_destroy"][1] +defs["ImGuiTextRange_ImGuiTextRange"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][1] = {} +defs["ImGuiTextRange_ImGuiTextRange"][1]["args"] = "()" +defs["ImGuiTextRange_ImGuiTextRange"][1]["argsT"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][1]["argsoriginal"] = "()" +defs["ImGuiTextRange_ImGuiTextRange"][1]["call_args"] = "()" +defs["ImGuiTextRange_ImGuiTextRange"][1]["cimguiname"] = "ImGuiTextRange_ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][1]["constructor"] = true +defs["ImGuiTextRange_ImGuiTextRange"][1]["defaults"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][1]["funcname"] = "ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][1]["location"] = "imgui:2193" +defs["ImGuiTextRange_ImGuiTextRange"][1]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRange_Nil" +defs["ImGuiTextRange_ImGuiTextRange"][1]["signature"] = "()" +defs["ImGuiTextRange_ImGuiTextRange"][1]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][2] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["args"] = "(const char* _b,const char* _e)" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][1] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][1]["name"] = "_b" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][1]["type"] = "const char*" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][2] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][2]["name"] = "_e" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextRange_ImGuiTextRange"][2]["argsoriginal"] = "(const char* _b,const char* _e)" +defs["ImGuiTextRange_ImGuiTextRange"][2]["call_args"] = "(_b,_e)" +defs["ImGuiTextRange_ImGuiTextRange"][2]["cimguiname"] = "ImGuiTextRange_ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][2]["constructor"] = true +defs["ImGuiTextRange_ImGuiTextRange"][2]["defaults"] = {} +defs["ImGuiTextRange_ImGuiTextRange"][2]["funcname"] = "ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"][2]["location"] = "imgui:2194" +defs["ImGuiTextRange_ImGuiTextRange"][2]["ov_cimguiname"] = "ImGuiTextRange_ImGuiTextRange_Str" +defs["ImGuiTextRange_ImGuiTextRange"][2]["signature"] = "(const char*,const char*)" +defs["ImGuiTextRange_ImGuiTextRange"][2]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_ImGuiTextRange"]["()"] = defs["ImGuiTextRange_ImGuiTextRange"][1] +defs["ImGuiTextRange_ImGuiTextRange"]["(const char*,const char*)"] = defs["ImGuiTextRange_ImGuiTextRange"][2] +defs["ImGuiTextRange_destroy"] = {} +defs["ImGuiTextRange_destroy"][1] = {} +defs["ImGuiTextRange_destroy"][1]["args"] = "(ImGuiTextRange* self)" +defs["ImGuiTextRange_destroy"][1]["argsT"] = {} +defs["ImGuiTextRange_destroy"][1]["argsT"][1] = {} +defs["ImGuiTextRange_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextRange_destroy"][1]["argsT"][1]["type"] = "ImGuiTextRange*" +defs["ImGuiTextRange_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTextRange_destroy"][1]["cimguiname"] = "ImGuiTextRange_destroy" +defs["ImGuiTextRange_destroy"][1]["defaults"] = {} +defs["ImGuiTextRange_destroy"][1]["destructor"] = true +defs["ImGuiTextRange_destroy"][1]["ov_cimguiname"] = "ImGuiTextRange_destroy" +defs["ImGuiTextRange_destroy"][1]["ret"] = "void" +defs["ImGuiTextRange_destroy"][1]["signature"] = "(ImGuiTextRange*)" +defs["ImGuiTextRange_destroy"][1]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_destroy"]["(ImGuiTextRange*)"] = defs["ImGuiTextRange_destroy"][1] +defs["ImGuiTextRange_empty"] = {} +defs["ImGuiTextRange_empty"][1] = {} +defs["ImGuiTextRange_empty"][1]["args"] = "(ImGuiTextRange* self)" +defs["ImGuiTextRange_empty"][1]["argsT"] = {} +defs["ImGuiTextRange_empty"][1]["argsT"][1] = {} +defs["ImGuiTextRange_empty"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextRange_empty"][1]["argsT"][1]["type"] = "ImGuiTextRange*" +defs["ImGuiTextRange_empty"][1]["argsoriginal"] = "()" +defs["ImGuiTextRange_empty"][1]["call_args"] = "()" +defs["ImGuiTextRange_empty"][1]["cimguiname"] = "ImGuiTextRange_empty" +defs["ImGuiTextRange_empty"][1]["defaults"] = {} +defs["ImGuiTextRange_empty"][1]["funcname"] = "empty" +defs["ImGuiTextRange_empty"][1]["location"] = "imgui:2195" +defs["ImGuiTextRange_empty"][1]["ov_cimguiname"] = "ImGuiTextRange_empty" +defs["ImGuiTextRange_empty"][1]["ret"] = "bool" +defs["ImGuiTextRange_empty"][1]["signature"] = "()const" +defs["ImGuiTextRange_empty"][1]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_empty"]["()const"] = defs["ImGuiTextRange_empty"][1] +defs["ImGuiTextRange_split"] = {} +defs["ImGuiTextRange_split"][1] = {} +defs["ImGuiTextRange_split"][1]["args"] = "(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out)" +defs["ImGuiTextRange_split"][1]["argsT"] = {} +defs["ImGuiTextRange_split"][1]["argsT"][1] = {} +defs["ImGuiTextRange_split"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextRange_split"][1]["argsT"][1]["type"] = "ImGuiTextRange*" +defs["ImGuiTextRange_split"][1]["argsT"][2] = {} +defs["ImGuiTextRange_split"][1]["argsT"][2]["name"] = "separator" +defs["ImGuiTextRange_split"][1]["argsT"][2]["type"] = "char" +defs["ImGuiTextRange_split"][1]["argsT"][3] = {} +defs["ImGuiTextRange_split"][1]["argsT"][3]["name"] = "out" +defs["ImGuiTextRange_split"][1]["argsT"][3]["type"] = "ImVector_ImGuiTextRange*" +defs["ImGuiTextRange_split"][1]["argsoriginal"] = "(char separator,ImVector* out)" +defs["ImGuiTextRange_split"][1]["call_args"] = "(separator,out)" +defs["ImGuiTextRange_split"][1]["cimguiname"] = "ImGuiTextRange_split" +defs["ImGuiTextRange_split"][1]["defaults"] = {} +defs["ImGuiTextRange_split"][1]["funcname"] = "split" +defs["ImGuiTextRange_split"][1]["location"] = "imgui:2196" +defs["ImGuiTextRange_split"][1]["ov_cimguiname"] = "ImGuiTextRange_split" +defs["ImGuiTextRange_split"][1]["ret"] = "void" +defs["ImGuiTextRange_split"][1]["signature"] = "(char,ImVector_ImGuiTextRange*)const" +defs["ImGuiTextRange_split"][1]["stname"] = "ImGuiTextRange" +defs["ImGuiTextRange_split"]["(char,ImVector_ImGuiTextRange*)const"] = defs["ImGuiTextRange_split"][1] +defs["ImGuiViewport_GetCenter"] = {} +defs["ImGuiViewport_GetCenter"][1] = {} +defs["ImGuiViewport_GetCenter"][1]["args"] = "(ImVec2 *pOut,ImGuiViewport* self)" +defs["ImGuiViewport_GetCenter"][1]["argsT"] = {} +defs["ImGuiViewport_GetCenter"][1]["argsT"][1] = {} +defs["ImGuiViewport_GetCenter"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiViewport_GetCenter"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImGuiViewport_GetCenter"][1]["argsT"][2] = {} +defs["ImGuiViewport_GetCenter"][1]["argsT"][2]["name"] = "self" +defs["ImGuiViewport_GetCenter"][1]["argsT"][2]["type"] = "ImGuiViewport*" +defs["ImGuiViewport_GetCenter"][1]["argsoriginal"] = "()" +defs["ImGuiViewport_GetCenter"][1]["call_args"] = "()" +defs["ImGuiViewport_GetCenter"][1]["cimguiname"] = "ImGuiViewport_GetCenter" +defs["ImGuiViewport_GetCenter"][1]["defaults"] = {} +defs["ImGuiViewport_GetCenter"][1]["funcname"] = "GetCenter" +defs["ImGuiViewport_GetCenter"][1]["location"] = "imgui:2931" +defs["ImGuiViewport_GetCenter"][1]["nonUDT"] = 1 +defs["ImGuiViewport_GetCenter"][1]["ov_cimguiname"] = "ImGuiViewport_GetCenter" +defs["ImGuiViewport_GetCenter"][1]["ret"] = "void" +defs["ImGuiViewport_GetCenter"][1]["signature"] = "()const" +defs["ImGuiViewport_GetCenter"][1]["stname"] = "ImGuiViewport" +defs["ImGuiViewport_GetCenter"]["()const"] = defs["ImGuiViewport_GetCenter"][1] +defs["ImGuiViewport_GetWorkCenter"] = {} +defs["ImGuiViewport_GetWorkCenter"][1] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["args"] = "(ImVec2 *pOut,ImGuiViewport* self)" +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][1] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][2] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][2]["name"] = "self" +defs["ImGuiViewport_GetWorkCenter"][1]["argsT"][2]["type"] = "ImGuiViewport*" +defs["ImGuiViewport_GetWorkCenter"][1]["argsoriginal"] = "()" +defs["ImGuiViewport_GetWorkCenter"][1]["call_args"] = "()" +defs["ImGuiViewport_GetWorkCenter"][1]["cimguiname"] = "ImGuiViewport_GetWorkCenter" +defs["ImGuiViewport_GetWorkCenter"][1]["defaults"] = {} +defs["ImGuiViewport_GetWorkCenter"][1]["funcname"] = "GetWorkCenter" +defs["ImGuiViewport_GetWorkCenter"][1]["location"] = "imgui:2932" +defs["ImGuiViewport_GetWorkCenter"][1]["nonUDT"] = 1 +defs["ImGuiViewport_GetWorkCenter"][1]["ov_cimguiname"] = "ImGuiViewport_GetWorkCenter" +defs["ImGuiViewport_GetWorkCenter"][1]["ret"] = "void" +defs["ImGuiViewport_GetWorkCenter"][1]["signature"] = "()const" +defs["ImGuiViewport_GetWorkCenter"][1]["stname"] = "ImGuiViewport" +defs["ImGuiViewport_GetWorkCenter"]["()const"] = defs["ImGuiViewport_GetWorkCenter"][1] +defs["ImGuiViewport_ImGuiViewport"] = {} +defs["ImGuiViewport_ImGuiViewport"][1] = {} +defs["ImGuiViewport_ImGuiViewport"][1]["args"] = "()" +defs["ImGuiViewport_ImGuiViewport"][1]["argsT"] = {} +defs["ImGuiViewport_ImGuiViewport"][1]["argsoriginal"] = "()" +defs["ImGuiViewport_ImGuiViewport"][1]["call_args"] = "()" +defs["ImGuiViewport_ImGuiViewport"][1]["cimguiname"] = "ImGuiViewport_ImGuiViewport" +defs["ImGuiViewport_ImGuiViewport"][1]["constructor"] = true +defs["ImGuiViewport_ImGuiViewport"][1]["defaults"] = {} +defs["ImGuiViewport_ImGuiViewport"][1]["funcname"] = "ImGuiViewport" +defs["ImGuiViewport_ImGuiViewport"][1]["location"] = "imgui:2928" +defs["ImGuiViewport_ImGuiViewport"][1]["ov_cimguiname"] = "ImGuiViewport_ImGuiViewport" +defs["ImGuiViewport_ImGuiViewport"][1]["signature"] = "()" +defs["ImGuiViewport_ImGuiViewport"][1]["stname"] = "ImGuiViewport" +defs["ImGuiViewport_ImGuiViewport"]["()"] = defs["ImGuiViewport_ImGuiViewport"][1] +defs["ImGuiViewport_destroy"] = {} +defs["ImGuiViewport_destroy"][1] = {} +defs["ImGuiViewport_destroy"][1]["args"] = "(ImGuiViewport* self)" +defs["ImGuiViewport_destroy"][1]["argsT"] = {} +defs["ImGuiViewport_destroy"][1]["argsT"][1] = {} +defs["ImGuiViewport_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiViewport_destroy"][1]["argsT"][1]["type"] = "ImGuiViewport*" +defs["ImGuiViewport_destroy"][1]["call_args"] = "(self)" +defs["ImGuiViewport_destroy"][1]["cimguiname"] = "ImGuiViewport_destroy" +defs["ImGuiViewport_destroy"][1]["defaults"] = {} +defs["ImGuiViewport_destroy"][1]["destructor"] = true +defs["ImGuiViewport_destroy"][1]["ov_cimguiname"] = "ImGuiViewport_destroy" +defs["ImGuiViewport_destroy"][1]["ret"] = "void" +defs["ImGuiViewport_destroy"][1]["signature"] = "(ImGuiViewport*)" +defs["ImGuiViewport_destroy"][1]["stname"] = "ImGuiViewport" +defs["ImGuiViewport_destroy"]["(ImGuiViewport*)"] = defs["ImGuiViewport_destroy"][1] +defs["ImVec2_ImVec2"] = {} +defs["ImVec2_ImVec2"][1] = {} +defs["ImVec2_ImVec2"][1]["args"] = "()" +defs["ImVec2_ImVec2"][1]["argsT"] = {} +defs["ImVec2_ImVec2"][1]["argsoriginal"] = "()" +defs["ImVec2_ImVec2"][1]["call_args"] = "()" +defs["ImVec2_ImVec2"][1]["cimguiname"] = "ImVec2_ImVec2" +defs["ImVec2_ImVec2"][1]["constructor"] = true +defs["ImVec2_ImVec2"][1]["defaults"] = {} +defs["ImVec2_ImVec2"][1]["funcname"] = "ImVec2" +defs["ImVec2_ImVec2"][1]["location"] = "imgui:256" +defs["ImVec2_ImVec2"][1]["ov_cimguiname"] = "ImVec2_ImVec2_Nil" +defs["ImVec2_ImVec2"][1]["signature"] = "()" +defs["ImVec2_ImVec2"][1]["stname"] = "ImVec2" +defs["ImVec2_ImVec2"][2] = {} +defs["ImVec2_ImVec2"][2]["args"] = "(float _x,float _y)" +defs["ImVec2_ImVec2"][2]["argsT"] = {} +defs["ImVec2_ImVec2"][2]["argsT"][1] = {} +defs["ImVec2_ImVec2"][2]["argsT"][1]["name"] = "_x" +defs["ImVec2_ImVec2"][2]["argsT"][1]["type"] = "float" +defs["ImVec2_ImVec2"][2]["argsT"][2] = {} +defs["ImVec2_ImVec2"][2]["argsT"][2]["name"] = "_y" +defs["ImVec2_ImVec2"][2]["argsT"][2]["type"] = "float" +defs["ImVec2_ImVec2"][2]["argsoriginal"] = "(float _x,float _y)" +defs["ImVec2_ImVec2"][2]["call_args"] = "(_x,_y)" +defs["ImVec2_ImVec2"][2]["cimguiname"] = "ImVec2_ImVec2" +defs["ImVec2_ImVec2"][2]["constructor"] = true +defs["ImVec2_ImVec2"][2]["defaults"] = {} +defs["ImVec2_ImVec2"][2]["funcname"] = "ImVec2" +defs["ImVec2_ImVec2"][2]["location"] = "imgui:257" +defs["ImVec2_ImVec2"][2]["ov_cimguiname"] = "ImVec2_ImVec2_Float" +defs["ImVec2_ImVec2"][2]["signature"] = "(float,float)" +defs["ImVec2_ImVec2"][2]["stname"] = "ImVec2" +defs["ImVec2_ImVec2"]["()"] = defs["ImVec2_ImVec2"][1] +defs["ImVec2_ImVec2"]["(float,float)"] = defs["ImVec2_ImVec2"][2] +defs["ImVec2_destroy"] = {} +defs["ImVec2_destroy"][1] = {} +defs["ImVec2_destroy"][1]["args"] = "(ImVec2* self)" +defs["ImVec2_destroy"][1]["argsT"] = {} +defs["ImVec2_destroy"][1]["argsT"][1] = {} +defs["ImVec2_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImVec2_destroy"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImVec2_destroy"][1]["call_args"] = "(self)" +defs["ImVec2_destroy"][1]["cimguiname"] = "ImVec2_destroy" +defs["ImVec2_destroy"][1]["defaults"] = {} +defs["ImVec2_destroy"][1]["destructor"] = true +defs["ImVec2_destroy"][1]["ov_cimguiname"] = "ImVec2_destroy" +defs["ImVec2_destroy"][1]["ret"] = "void" +defs["ImVec2_destroy"][1]["signature"] = "(ImVec2*)" +defs["ImVec2_destroy"][1]["stname"] = "ImVec2" +defs["ImVec2_destroy"]["(ImVec2*)"] = defs["ImVec2_destroy"][1] +defs["ImVec4_ImVec4"] = {} +defs["ImVec4_ImVec4"][1] = {} +defs["ImVec4_ImVec4"][1]["args"] = "()" +defs["ImVec4_ImVec4"][1]["argsT"] = {} +defs["ImVec4_ImVec4"][1]["argsoriginal"] = "()" +defs["ImVec4_ImVec4"][1]["call_args"] = "()" +defs["ImVec4_ImVec4"][1]["cimguiname"] = "ImVec4_ImVec4" +defs["ImVec4_ImVec4"][1]["constructor"] = true +defs["ImVec4_ImVec4"][1]["defaults"] = {} +defs["ImVec4_ImVec4"][1]["funcname"] = "ImVec4" +defs["ImVec4_ImVec4"][1]["location"] = "imgui:269" +defs["ImVec4_ImVec4"][1]["ov_cimguiname"] = "ImVec4_ImVec4_Nil" +defs["ImVec4_ImVec4"][1]["signature"] = "()" +defs["ImVec4_ImVec4"][1]["stname"] = "ImVec4" +defs["ImVec4_ImVec4"][2] = {} +defs["ImVec4_ImVec4"][2]["args"] = "(float _x,float _y,float _z,float _w)" +defs["ImVec4_ImVec4"][2]["argsT"] = {} +defs["ImVec4_ImVec4"][2]["argsT"][1] = {} +defs["ImVec4_ImVec4"][2]["argsT"][1]["name"] = "_x" +defs["ImVec4_ImVec4"][2]["argsT"][1]["type"] = "float" +defs["ImVec4_ImVec4"][2]["argsT"][2] = {} +defs["ImVec4_ImVec4"][2]["argsT"][2]["name"] = "_y" +defs["ImVec4_ImVec4"][2]["argsT"][2]["type"] = "float" +defs["ImVec4_ImVec4"][2]["argsT"][3] = {} +defs["ImVec4_ImVec4"][2]["argsT"][3]["name"] = "_z" +defs["ImVec4_ImVec4"][2]["argsT"][3]["type"] = "float" +defs["ImVec4_ImVec4"][2]["argsT"][4] = {} +defs["ImVec4_ImVec4"][2]["argsT"][4]["name"] = "_w" +defs["ImVec4_ImVec4"][2]["argsT"][4]["type"] = "float" +defs["ImVec4_ImVec4"][2]["argsoriginal"] = "(float _x,float _y,float _z,float _w)" +defs["ImVec4_ImVec4"][2]["call_args"] = "(_x,_y,_z,_w)" +defs["ImVec4_ImVec4"][2]["cimguiname"] = "ImVec4_ImVec4" +defs["ImVec4_ImVec4"][2]["constructor"] = true +defs["ImVec4_ImVec4"][2]["defaults"] = {} +defs["ImVec4_ImVec4"][2]["funcname"] = "ImVec4" +defs["ImVec4_ImVec4"][2]["location"] = "imgui:270" +defs["ImVec4_ImVec4"][2]["ov_cimguiname"] = "ImVec4_ImVec4_Float" +defs["ImVec4_ImVec4"][2]["signature"] = "(float,float,float,float)" +defs["ImVec4_ImVec4"][2]["stname"] = "ImVec4" +defs["ImVec4_ImVec4"]["()"] = defs["ImVec4_ImVec4"][1] +defs["ImVec4_ImVec4"]["(float,float,float,float)"] = defs["ImVec4_ImVec4"][2] +defs["ImVec4_destroy"] = {} +defs["ImVec4_destroy"][1] = {} +defs["ImVec4_destroy"][1]["args"] = "(ImVec4* self)" +defs["ImVec4_destroy"][1]["argsT"] = {} +defs["ImVec4_destroy"][1]["argsT"][1] = {} +defs["ImVec4_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImVec4_destroy"][1]["argsT"][1]["type"] = "ImVec4*" +defs["ImVec4_destroy"][1]["call_args"] = "(self)" +defs["ImVec4_destroy"][1]["cimguiname"] = "ImVec4_destroy" +defs["ImVec4_destroy"][1]["defaults"] = {} +defs["ImVec4_destroy"][1]["destructor"] = true +defs["ImVec4_destroy"][1]["ov_cimguiname"] = "ImVec4_destroy" +defs["ImVec4_destroy"][1]["ret"] = "void" +defs["ImVec4_destroy"][1]["signature"] = "(ImVec4*)" +defs["ImVec4_destroy"][1]["stname"] = "ImVec4" +defs["ImVec4_destroy"]["(ImVec4*)"] = defs["ImVec4_destroy"][1] +defs["ImVector_ImVector"] = {} +defs["ImVector_ImVector"][1] = {} +defs["ImVector_ImVector"][1]["args"] = "()" +defs["ImVector_ImVector"][1]["argsT"] = {} +defs["ImVector_ImVector"][1]["argsoriginal"] = "()" +defs["ImVector_ImVector"][1]["call_args"] = "()" +defs["ImVector_ImVector"][1]["cimguiname"] = "ImVector_ImVector" +defs["ImVector_ImVector"][1]["constructor"] = true +defs["ImVector_ImVector"][1]["defaults"] = {} +defs["ImVector_ImVector"][1]["funcname"] = "ImVector" +defs["ImVector_ImVector"][1]["location"] = "imgui:1774" +defs["ImVector_ImVector"][1]["ov_cimguiname"] = "ImVector_ImVector_Nil" +defs["ImVector_ImVector"][1]["signature"] = "()" +defs["ImVector_ImVector"][1]["stname"] = "ImVector" +defs["ImVector_ImVector"][1]["templated"] = true +defs["ImVector_ImVector"][2] = {} +defs["ImVector_ImVector"][2]["args"] = "(const ImVector_T src)" +defs["ImVector_ImVector"][2]["argsT"] = {} +defs["ImVector_ImVector"][2]["argsT"][1] = {} +defs["ImVector_ImVector"][2]["argsT"][1]["name"] = "src" +defs["ImVector_ImVector"][2]["argsT"][1]["type"] = "const ImVector_T " +defs["ImVector_ImVector"][2]["argsoriginal"] = "(const ImVector& src)" +defs["ImVector_ImVector"][2]["call_args"] = "(src)" +defs["ImVector_ImVector"][2]["cimguiname"] = "ImVector_ImVector" +defs["ImVector_ImVector"][2]["constructor"] = true +defs["ImVector_ImVector"][2]["defaults"] = {} +defs["ImVector_ImVector"][2]["funcname"] = "ImVector" +defs["ImVector_ImVector"][2]["location"] = "imgui:1775" +defs["ImVector_ImVector"][2]["ov_cimguiname"] = "ImVector_ImVector_Vector_T_" +defs["ImVector_ImVector"][2]["signature"] = "(const ImVector_T )" +defs["ImVector_ImVector"][2]["stname"] = "ImVector" +defs["ImVector_ImVector"][2]["templated"] = true +defs["ImVector_ImVector"]["()"] = defs["ImVector_ImVector"][1] +defs["ImVector_ImVector"]["(const ImVector_T )"] = defs["ImVector_ImVector"][2] +defs["ImVector__grow_capacity"] = {} +defs["ImVector__grow_capacity"][1] = {} +defs["ImVector__grow_capacity"][1]["args"] = "(ImVector* self,int sz)" +defs["ImVector__grow_capacity"][1]["argsT"] = {} +defs["ImVector__grow_capacity"][1]["argsT"][1] = {} +defs["ImVector__grow_capacity"][1]["argsT"][1]["name"] = "self" +defs["ImVector__grow_capacity"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector__grow_capacity"][1]["argsT"][2] = {} +defs["ImVector__grow_capacity"][1]["argsT"][2]["name"] = "sz" +defs["ImVector__grow_capacity"][1]["argsT"][2]["type"] = "int" +defs["ImVector__grow_capacity"][1]["argsoriginal"] = "(int sz)" +defs["ImVector__grow_capacity"][1]["call_args"] = "(sz)" +defs["ImVector__grow_capacity"][1]["cimguiname"] = "ImVector__grow_capacity" +defs["ImVector__grow_capacity"][1]["defaults"] = {} +defs["ImVector__grow_capacity"][1]["funcname"] = "_grow_capacity" +defs["ImVector__grow_capacity"][1]["location"] = "imgui:1801" +defs["ImVector__grow_capacity"][1]["ov_cimguiname"] = "ImVector__grow_capacity" +defs["ImVector__grow_capacity"][1]["ret"] = "int" +defs["ImVector__grow_capacity"][1]["signature"] = "(int)const" +defs["ImVector__grow_capacity"][1]["stname"] = "ImVector" +defs["ImVector__grow_capacity"][1]["templated"] = true +defs["ImVector__grow_capacity"]["(int)const"] = defs["ImVector__grow_capacity"][1] +defs["ImVector_back"] = {} +defs["ImVector_back"][1] = {} +defs["ImVector_back"][1]["args"] = "(ImVector* self)" +defs["ImVector_back"][1]["argsT"] = {} +defs["ImVector_back"][1]["argsT"][1] = {} +defs["ImVector_back"][1]["argsT"][1]["name"] = "self" +defs["ImVector_back"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_back"][1]["argsoriginal"] = "()" +defs["ImVector_back"][1]["call_args"] = "()" +defs["ImVector_back"][1]["cimguiname"] = "ImVector_back" +defs["ImVector_back"][1]["defaults"] = {} +defs["ImVector_back"][1]["funcname"] = "back" +defs["ImVector_back"][1]["location"] = "imgui:1797" +defs["ImVector_back"][1]["ov_cimguiname"] = "ImVector_back_Nil" +defs["ImVector_back"][1]["ret"] = "T*" +defs["ImVector_back"][1]["retref"] = "&" +defs["ImVector_back"][1]["signature"] = "()" +defs["ImVector_back"][1]["stname"] = "ImVector" +defs["ImVector_back"][1]["templated"] = true +defs["ImVector_back"][2] = {} +defs["ImVector_back"][2]["args"] = "(ImVector* self)" +defs["ImVector_back"][2]["argsT"] = {} +defs["ImVector_back"][2]["argsT"][1] = {} +defs["ImVector_back"][2]["argsT"][1]["name"] = "self" +defs["ImVector_back"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_back"][2]["argsoriginal"] = "()" +defs["ImVector_back"][2]["call_args"] = "()" +defs["ImVector_back"][2]["cimguiname"] = "ImVector_back" +defs["ImVector_back"][2]["defaults"] = {} +defs["ImVector_back"][2]["funcname"] = "back" +defs["ImVector_back"][2]["location"] = "imgui:1798" +defs["ImVector_back"][2]["ov_cimguiname"] = "ImVector_back__const" +defs["ImVector_back"][2]["ret"] = "const T*" +defs["ImVector_back"][2]["retref"] = "&" +defs["ImVector_back"][2]["signature"] = "()const" +defs["ImVector_back"][2]["stname"] = "ImVector" +defs["ImVector_back"][2]["templated"] = true +defs["ImVector_back"]["()"] = defs["ImVector_back"][1] +defs["ImVector_back"]["()const"] = defs["ImVector_back"][2] +defs["ImVector_begin"] = {} +defs["ImVector_begin"][1] = {} +defs["ImVector_begin"][1]["args"] = "(ImVector* self)" +defs["ImVector_begin"][1]["argsT"] = {} +defs["ImVector_begin"][1]["argsT"][1] = {} +defs["ImVector_begin"][1]["argsT"][1]["name"] = "self" +defs["ImVector_begin"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_begin"][1]["argsoriginal"] = "()" +defs["ImVector_begin"][1]["call_args"] = "()" +defs["ImVector_begin"][1]["cimguiname"] = "ImVector_begin" +defs["ImVector_begin"][1]["defaults"] = {} +defs["ImVector_begin"][1]["funcname"] = "begin" +defs["ImVector_begin"][1]["location"] = "imgui:1791" +defs["ImVector_begin"][1]["ov_cimguiname"] = "ImVector_begin_Nil" +defs["ImVector_begin"][1]["ret"] = "T*" +defs["ImVector_begin"][1]["signature"] = "()" +defs["ImVector_begin"][1]["stname"] = "ImVector" +defs["ImVector_begin"][1]["templated"] = true +defs["ImVector_begin"][2] = {} +defs["ImVector_begin"][2]["args"] = "(ImVector* self)" +defs["ImVector_begin"][2]["argsT"] = {} +defs["ImVector_begin"][2]["argsT"][1] = {} +defs["ImVector_begin"][2]["argsT"][1]["name"] = "self" +defs["ImVector_begin"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_begin"][2]["argsoriginal"] = "()" +defs["ImVector_begin"][2]["call_args"] = "()" +defs["ImVector_begin"][2]["cimguiname"] = "ImVector_begin" +defs["ImVector_begin"][2]["defaults"] = {} +defs["ImVector_begin"][2]["funcname"] = "begin" +defs["ImVector_begin"][2]["location"] = "imgui:1792" +defs["ImVector_begin"][2]["ov_cimguiname"] = "ImVector_begin__const" +defs["ImVector_begin"][2]["ret"] = "const T*" +defs["ImVector_begin"][2]["signature"] = "()const" +defs["ImVector_begin"][2]["stname"] = "ImVector" +defs["ImVector_begin"][2]["templated"] = true +defs["ImVector_begin"]["()"] = defs["ImVector_begin"][1] +defs["ImVector_begin"]["()const"] = defs["ImVector_begin"][2] +defs["ImVector_capacity"] = {} +defs["ImVector_capacity"][1] = {} +defs["ImVector_capacity"][1]["args"] = "(ImVector* self)" +defs["ImVector_capacity"][1]["argsT"] = {} +defs["ImVector_capacity"][1]["argsT"][1] = {} +defs["ImVector_capacity"][1]["argsT"][1]["name"] = "self" +defs["ImVector_capacity"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_capacity"][1]["argsoriginal"] = "()" +defs["ImVector_capacity"][1]["call_args"] = "()" +defs["ImVector_capacity"][1]["cimguiname"] = "ImVector_capacity" +defs["ImVector_capacity"][1]["defaults"] = {} +defs["ImVector_capacity"][1]["funcname"] = "capacity" +defs["ImVector_capacity"][1]["location"] = "imgui:1787" +defs["ImVector_capacity"][1]["ov_cimguiname"] = "ImVector_capacity" +defs["ImVector_capacity"][1]["ret"] = "int" +defs["ImVector_capacity"][1]["signature"] = "()const" +defs["ImVector_capacity"][1]["stname"] = "ImVector" +defs["ImVector_capacity"][1]["templated"] = true +defs["ImVector_capacity"]["()const"] = defs["ImVector_capacity"][1] +defs["ImVector_clear"] = {} +defs["ImVector_clear"][1] = {} +defs["ImVector_clear"][1]["args"] = "(ImVector* self)" +defs["ImVector_clear"][1]["argsT"] = {} +defs["ImVector_clear"][1]["argsT"][1] = {} +defs["ImVector_clear"][1]["argsT"][1]["name"] = "self" +defs["ImVector_clear"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_clear"][1]["argsoriginal"] = "()" +defs["ImVector_clear"][1]["call_args"] = "()" +defs["ImVector_clear"][1]["cimguiname"] = "ImVector_clear" +defs["ImVector_clear"][1]["defaults"] = {} +defs["ImVector_clear"][1]["funcname"] = "clear" +defs["ImVector_clear"][1]["location"] = "imgui:1779" +defs["ImVector_clear"][1]["ov_cimguiname"] = "ImVector_clear" +defs["ImVector_clear"][1]["ret"] = "void" +defs["ImVector_clear"][1]["signature"] = "()" +defs["ImVector_clear"][1]["stname"] = "ImVector" +defs["ImVector_clear"][1]["templated"] = true +defs["ImVector_clear"]["()"] = defs["ImVector_clear"][1] +defs["ImVector_clear_delete"] = {} +defs["ImVector_clear_delete"][1] = {} +defs["ImVector_clear_delete"][1]["args"] = "(ImVector* self)" +defs["ImVector_clear_delete"][1]["argsT"] = {} +defs["ImVector_clear_delete"][1]["argsT"][1] = {} +defs["ImVector_clear_delete"][1]["argsT"][1]["name"] = "self" +defs["ImVector_clear_delete"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_clear_delete"][1]["argsoriginal"] = "()" +defs["ImVector_clear_delete"][1]["call_args"] = "()" +defs["ImVector_clear_delete"][1]["cimguiname"] = "ImVector_clear_delete" +defs["ImVector_clear_delete"][1]["defaults"] = {} +defs["ImVector_clear_delete"][1]["funcname"] = "clear_delete" +defs["ImVector_clear_delete"][1]["location"] = "imgui:1780" +defs["ImVector_clear_delete"][1]["ov_cimguiname"] = "ImVector_clear_delete" +defs["ImVector_clear_delete"][1]["ret"] = "void" +defs["ImVector_clear_delete"][1]["signature"] = "()" +defs["ImVector_clear_delete"][1]["stname"] = "ImVector" +defs["ImVector_clear_delete"][1]["templated"] = true +defs["ImVector_clear_delete"]["()"] = defs["ImVector_clear_delete"][1] +defs["ImVector_clear_destruct"] = {} +defs["ImVector_clear_destruct"][1] = {} +defs["ImVector_clear_destruct"][1]["args"] = "(ImVector* self)" +defs["ImVector_clear_destruct"][1]["argsT"] = {} +defs["ImVector_clear_destruct"][1]["argsT"][1] = {} +defs["ImVector_clear_destruct"][1]["argsT"][1]["name"] = "self" +defs["ImVector_clear_destruct"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_clear_destruct"][1]["argsoriginal"] = "()" +defs["ImVector_clear_destruct"][1]["call_args"] = "()" +defs["ImVector_clear_destruct"][1]["cimguiname"] = "ImVector_clear_destruct" +defs["ImVector_clear_destruct"][1]["defaults"] = {} +defs["ImVector_clear_destruct"][1]["funcname"] = "clear_destruct" +defs["ImVector_clear_destruct"][1]["location"] = "imgui:1781" +defs["ImVector_clear_destruct"][1]["ov_cimguiname"] = "ImVector_clear_destruct" +defs["ImVector_clear_destruct"][1]["ret"] = "void" +defs["ImVector_clear_destruct"][1]["signature"] = "()" +defs["ImVector_clear_destruct"][1]["stname"] = "ImVector" +defs["ImVector_clear_destruct"][1]["templated"] = true +defs["ImVector_clear_destruct"]["()"] = defs["ImVector_clear_destruct"][1] +defs["ImVector_contains"] = {} +defs["ImVector_contains"][1] = {} +defs["ImVector_contains"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_contains"][1]["argsT"] = {} +defs["ImVector_contains"][1]["argsT"][1] = {} +defs["ImVector_contains"][1]["argsT"][1]["name"] = "self" +defs["ImVector_contains"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_contains"][1]["argsT"][2] = {} +defs["ImVector_contains"][1]["argsT"][2]["name"] = "v" +defs["ImVector_contains"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_contains"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_contains"][1]["call_args"] = "(v)" +defs["ImVector_contains"][1]["cimguiname"] = "ImVector_contains" +defs["ImVector_contains"][1]["defaults"] = {} +defs["ImVector_contains"][1]["funcname"] = "contains" +defs["ImVector_contains"][1]["location"] = "imgui:1816" +defs["ImVector_contains"][1]["ov_cimguiname"] = "ImVector_contains" +defs["ImVector_contains"][1]["ret"] = "bool" +defs["ImVector_contains"][1]["signature"] = "(const T)const" +defs["ImVector_contains"][1]["stname"] = "ImVector" +defs["ImVector_contains"][1]["templated"] = true +defs["ImVector_contains"]["(const T)const"] = defs["ImVector_contains"][1] +defs["ImVector_destroy"] = {} +defs["ImVector_destroy"][1] = {} +defs["ImVector_destroy"][1]["args"] = "(ImVector* self)" +defs["ImVector_destroy"][1]["argsT"] = {} +defs["ImVector_destroy"][1]["argsT"][1] = {} +defs["ImVector_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImVector_destroy"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_destroy"][1]["call_args"] = "(self)" +defs["ImVector_destroy"][1]["cimguiname"] = "ImVector_destroy" +defs["ImVector_destroy"][1]["defaults"] = {} +defs["ImVector_destroy"][1]["destructor"] = true +defs["ImVector_destroy"][1]["location"] = "imgui:1777" +defs["ImVector_destroy"][1]["ov_cimguiname"] = "ImVector_destroy" +defs["ImVector_destroy"][1]["realdestructor"] = true +defs["ImVector_destroy"][1]["ret"] = "void" +defs["ImVector_destroy"][1]["signature"] = "(ImVector*)" +defs["ImVector_destroy"][1]["stname"] = "ImVector" +defs["ImVector_destroy"][1]["templated"] = true +defs["ImVector_destroy"]["(ImVector*)"] = defs["ImVector_destroy"][1] +defs["ImVector_empty"] = {} +defs["ImVector_empty"][1] = {} +defs["ImVector_empty"][1]["args"] = "(ImVector* self)" +defs["ImVector_empty"][1]["argsT"] = {} +defs["ImVector_empty"][1]["argsT"][1] = {} +defs["ImVector_empty"][1]["argsT"][1]["name"] = "self" +defs["ImVector_empty"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_empty"][1]["argsoriginal"] = "()" +defs["ImVector_empty"][1]["call_args"] = "()" +defs["ImVector_empty"][1]["cimguiname"] = "ImVector_empty" +defs["ImVector_empty"][1]["defaults"] = {} +defs["ImVector_empty"][1]["funcname"] = "empty" +defs["ImVector_empty"][1]["location"] = "imgui:1783" +defs["ImVector_empty"][1]["ov_cimguiname"] = "ImVector_empty" +defs["ImVector_empty"][1]["ret"] = "bool" +defs["ImVector_empty"][1]["signature"] = "()const" +defs["ImVector_empty"][1]["stname"] = "ImVector" +defs["ImVector_empty"][1]["templated"] = true +defs["ImVector_empty"]["()const"] = defs["ImVector_empty"][1] +defs["ImVector_end"] = {} +defs["ImVector_end"][1] = {} +defs["ImVector_end"][1]["args"] = "(ImVector* self)" +defs["ImVector_end"][1]["argsT"] = {} +defs["ImVector_end"][1]["argsT"][1] = {} +defs["ImVector_end"][1]["argsT"][1]["name"] = "self" +defs["ImVector_end"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_end"][1]["argsoriginal"] = "()" +defs["ImVector_end"][1]["call_args"] = "()" +defs["ImVector_end"][1]["cimguiname"] = "ImVector_end" +defs["ImVector_end"][1]["defaults"] = {} +defs["ImVector_end"][1]["funcname"] = "end" +defs["ImVector_end"][1]["location"] = "imgui:1793" +defs["ImVector_end"][1]["ov_cimguiname"] = "ImVector_end_Nil" +defs["ImVector_end"][1]["ret"] = "T*" +defs["ImVector_end"][1]["signature"] = "()" +defs["ImVector_end"][1]["stname"] = "ImVector" +defs["ImVector_end"][1]["templated"] = true +defs["ImVector_end"][2] = {} +defs["ImVector_end"][2]["args"] = "(ImVector* self)" +defs["ImVector_end"][2]["argsT"] = {} +defs["ImVector_end"][2]["argsT"][1] = {} +defs["ImVector_end"][2]["argsT"][1]["name"] = "self" +defs["ImVector_end"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_end"][2]["argsoriginal"] = "()" +defs["ImVector_end"][2]["call_args"] = "()" +defs["ImVector_end"][2]["cimguiname"] = "ImVector_end" +defs["ImVector_end"][2]["defaults"] = {} +defs["ImVector_end"][2]["funcname"] = "end" +defs["ImVector_end"][2]["location"] = "imgui:1794" +defs["ImVector_end"][2]["ov_cimguiname"] = "ImVector_end__const" +defs["ImVector_end"][2]["ret"] = "const T*" +defs["ImVector_end"][2]["signature"] = "()const" +defs["ImVector_end"][2]["stname"] = "ImVector" +defs["ImVector_end"][2]["templated"] = true +defs["ImVector_end"]["()"] = defs["ImVector_end"][1] +defs["ImVector_end"]["()const"] = defs["ImVector_end"][2] +defs["ImVector_erase"] = {} +defs["ImVector_erase"][1] = {} +defs["ImVector_erase"][1]["args"] = "(ImVector* self,const T* it)" +defs["ImVector_erase"][1]["argsT"] = {} +defs["ImVector_erase"][1]["argsT"][1] = {} +defs["ImVector_erase"][1]["argsT"][1]["name"] = "self" +defs["ImVector_erase"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_erase"][1]["argsT"][2] = {} +defs["ImVector_erase"][1]["argsT"][2]["name"] = "it" +defs["ImVector_erase"][1]["argsT"][2]["type"] = "const T*" +defs["ImVector_erase"][1]["argsoriginal"] = "(const T* it)" +defs["ImVector_erase"][1]["call_args"] = "(it)" +defs["ImVector_erase"][1]["cimguiname"] = "ImVector_erase" +defs["ImVector_erase"][1]["defaults"] = {} +defs["ImVector_erase"][1]["funcname"] = "erase" +defs["ImVector_erase"][1]["location"] = "imgui:1812" +defs["ImVector_erase"][1]["ov_cimguiname"] = "ImVector_erase_Nil" +defs["ImVector_erase"][1]["ret"] = "T*" +defs["ImVector_erase"][1]["signature"] = "(const T*)" +defs["ImVector_erase"][1]["stname"] = "ImVector" +defs["ImVector_erase"][1]["templated"] = true +defs["ImVector_erase"][2] = {} +defs["ImVector_erase"][2]["args"] = "(ImVector* self,const T* it,const T* it_last)" +defs["ImVector_erase"][2]["argsT"] = {} +defs["ImVector_erase"][2]["argsT"][1] = {} +defs["ImVector_erase"][2]["argsT"][1]["name"] = "self" +defs["ImVector_erase"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_erase"][2]["argsT"][2] = {} +defs["ImVector_erase"][2]["argsT"][2]["name"] = "it" +defs["ImVector_erase"][2]["argsT"][2]["type"] = "const T*" +defs["ImVector_erase"][2]["argsT"][3] = {} +defs["ImVector_erase"][2]["argsT"][3]["name"] = "it_last" +defs["ImVector_erase"][2]["argsT"][3]["type"] = "const T*" +defs["ImVector_erase"][2]["argsoriginal"] = "(const T* it,const T* it_last)" +defs["ImVector_erase"][2]["call_args"] = "(it,it_last)" +defs["ImVector_erase"][2]["cimguiname"] = "ImVector_erase" +defs["ImVector_erase"][2]["defaults"] = {} +defs["ImVector_erase"][2]["funcname"] = "erase" +defs["ImVector_erase"][2]["location"] = "imgui:1813" +defs["ImVector_erase"][2]["ov_cimguiname"] = "ImVector_erase_TPtr" +defs["ImVector_erase"][2]["ret"] = "T*" +defs["ImVector_erase"][2]["signature"] = "(const T*,const T*)" +defs["ImVector_erase"][2]["stname"] = "ImVector" +defs["ImVector_erase"][2]["templated"] = true +defs["ImVector_erase"]["(const T*)"] = defs["ImVector_erase"][1] +defs["ImVector_erase"]["(const T*,const T*)"] = defs["ImVector_erase"][2] +defs["ImVector_erase_unsorted"] = {} +defs["ImVector_erase_unsorted"][1] = {} +defs["ImVector_erase_unsorted"][1]["args"] = "(ImVector* self,const T* it)" +defs["ImVector_erase_unsorted"][1]["argsT"] = {} +defs["ImVector_erase_unsorted"][1]["argsT"][1] = {} +defs["ImVector_erase_unsorted"][1]["argsT"][1]["name"] = "self" +defs["ImVector_erase_unsorted"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_erase_unsorted"][1]["argsT"][2] = {} +defs["ImVector_erase_unsorted"][1]["argsT"][2]["name"] = "it" +defs["ImVector_erase_unsorted"][1]["argsT"][2]["type"] = "const T*" +defs["ImVector_erase_unsorted"][1]["argsoriginal"] = "(const T* it)" +defs["ImVector_erase_unsorted"][1]["call_args"] = "(it)" +defs["ImVector_erase_unsorted"][1]["cimguiname"] = "ImVector_erase_unsorted" +defs["ImVector_erase_unsorted"][1]["defaults"] = {} +defs["ImVector_erase_unsorted"][1]["funcname"] = "erase_unsorted" +defs["ImVector_erase_unsorted"][1]["location"] = "imgui:1814" +defs["ImVector_erase_unsorted"][1]["ov_cimguiname"] = "ImVector_erase_unsorted" +defs["ImVector_erase_unsorted"][1]["ret"] = "T*" +defs["ImVector_erase_unsorted"][1]["signature"] = "(const T*)" +defs["ImVector_erase_unsorted"][1]["stname"] = "ImVector" +defs["ImVector_erase_unsorted"][1]["templated"] = true +defs["ImVector_erase_unsorted"]["(const T*)"] = defs["ImVector_erase_unsorted"][1] +defs["ImVector_find"] = {} +defs["ImVector_find"][1] = {} +defs["ImVector_find"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_find"][1]["argsT"] = {} +defs["ImVector_find"][1]["argsT"][1] = {} +defs["ImVector_find"][1]["argsT"][1]["name"] = "self" +defs["ImVector_find"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_find"][1]["argsT"][2] = {} +defs["ImVector_find"][1]["argsT"][2]["name"] = "v" +defs["ImVector_find"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_find"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_find"][1]["call_args"] = "(v)" +defs["ImVector_find"][1]["cimguiname"] = "ImVector_find" +defs["ImVector_find"][1]["defaults"] = {} +defs["ImVector_find"][1]["funcname"] = "find" +defs["ImVector_find"][1]["location"] = "imgui:1817" +defs["ImVector_find"][1]["ov_cimguiname"] = "ImVector_find_Nil" +defs["ImVector_find"][1]["ret"] = "T*" +defs["ImVector_find"][1]["signature"] = "(const T)" +defs["ImVector_find"][1]["stname"] = "ImVector" +defs["ImVector_find"][1]["templated"] = true +defs["ImVector_find"][2] = {} +defs["ImVector_find"][2]["args"] = "(ImVector* self,const T v)" +defs["ImVector_find"][2]["argsT"] = {} +defs["ImVector_find"][2]["argsT"][1] = {} +defs["ImVector_find"][2]["argsT"][1]["name"] = "self" +defs["ImVector_find"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_find"][2]["argsT"][2] = {} +defs["ImVector_find"][2]["argsT"][2]["name"] = "v" +defs["ImVector_find"][2]["argsT"][2]["type"] = "const T" +defs["ImVector_find"][2]["argsoriginal"] = "(const T& v)" +defs["ImVector_find"][2]["call_args"] = "(v)" +defs["ImVector_find"][2]["cimguiname"] = "ImVector_find" +defs["ImVector_find"][2]["defaults"] = {} +defs["ImVector_find"][2]["funcname"] = "find" +defs["ImVector_find"][2]["location"] = "imgui:1818" +defs["ImVector_find"][2]["ov_cimguiname"] = "ImVector_find__const" +defs["ImVector_find"][2]["ret"] = "const T*" +defs["ImVector_find"][2]["signature"] = "(const T)const" +defs["ImVector_find"][2]["stname"] = "ImVector" +defs["ImVector_find"][2]["templated"] = true +defs["ImVector_find"]["(const T)"] = defs["ImVector_find"][1] +defs["ImVector_find"]["(const T)const"] = defs["ImVector_find"][2] +defs["ImVector_find_erase"] = {} +defs["ImVector_find_erase"][1] = {} +defs["ImVector_find_erase"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_find_erase"][1]["argsT"] = {} +defs["ImVector_find_erase"][1]["argsT"][1] = {} +defs["ImVector_find_erase"][1]["argsT"][1]["name"] = "self" +defs["ImVector_find_erase"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_find_erase"][1]["argsT"][2] = {} +defs["ImVector_find_erase"][1]["argsT"][2]["name"] = "v" +defs["ImVector_find_erase"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_find_erase"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_find_erase"][1]["call_args"] = "(v)" +defs["ImVector_find_erase"][1]["cimguiname"] = "ImVector_find_erase" +defs["ImVector_find_erase"][1]["defaults"] = {} +defs["ImVector_find_erase"][1]["funcname"] = "find_erase" +defs["ImVector_find_erase"][1]["location"] = "imgui:1819" +defs["ImVector_find_erase"][1]["ov_cimguiname"] = "ImVector_find_erase" +defs["ImVector_find_erase"][1]["ret"] = "bool" +defs["ImVector_find_erase"][1]["signature"] = "(const T)" +defs["ImVector_find_erase"][1]["stname"] = "ImVector" +defs["ImVector_find_erase"][1]["templated"] = true +defs["ImVector_find_erase"]["(const T)"] = defs["ImVector_find_erase"][1] +defs["ImVector_find_erase_unsorted"] = {} +defs["ImVector_find_erase_unsorted"][1] = {} +defs["ImVector_find_erase_unsorted"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_find_erase_unsorted"][1]["argsT"] = {} +defs["ImVector_find_erase_unsorted"][1]["argsT"][1] = {} +defs["ImVector_find_erase_unsorted"][1]["argsT"][1]["name"] = "self" +defs["ImVector_find_erase_unsorted"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_find_erase_unsorted"][1]["argsT"][2] = {} +defs["ImVector_find_erase_unsorted"][1]["argsT"][2]["name"] = "v" +defs["ImVector_find_erase_unsorted"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_find_erase_unsorted"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_find_erase_unsorted"][1]["call_args"] = "(v)" +defs["ImVector_find_erase_unsorted"][1]["cimguiname"] = "ImVector_find_erase_unsorted" +defs["ImVector_find_erase_unsorted"][1]["defaults"] = {} +defs["ImVector_find_erase_unsorted"][1]["funcname"] = "find_erase_unsorted" +defs["ImVector_find_erase_unsorted"][1]["location"] = "imgui:1820" +defs["ImVector_find_erase_unsorted"][1]["ov_cimguiname"] = "ImVector_find_erase_unsorted" +defs["ImVector_find_erase_unsorted"][1]["ret"] = "bool" +defs["ImVector_find_erase_unsorted"][1]["signature"] = "(const T)" +defs["ImVector_find_erase_unsorted"][1]["stname"] = "ImVector" +defs["ImVector_find_erase_unsorted"][1]["templated"] = true +defs["ImVector_find_erase_unsorted"]["(const T)"] = defs["ImVector_find_erase_unsorted"][1] +defs["ImVector_front"] = {} +defs["ImVector_front"][1] = {} +defs["ImVector_front"][1]["args"] = "(ImVector* self)" +defs["ImVector_front"][1]["argsT"] = {} +defs["ImVector_front"][1]["argsT"][1] = {} +defs["ImVector_front"][1]["argsT"][1]["name"] = "self" +defs["ImVector_front"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_front"][1]["argsoriginal"] = "()" +defs["ImVector_front"][1]["call_args"] = "()" +defs["ImVector_front"][1]["cimguiname"] = "ImVector_front" +defs["ImVector_front"][1]["defaults"] = {} +defs["ImVector_front"][1]["funcname"] = "front" +defs["ImVector_front"][1]["location"] = "imgui:1795" +defs["ImVector_front"][1]["ov_cimguiname"] = "ImVector_front_Nil" +defs["ImVector_front"][1]["ret"] = "T*" +defs["ImVector_front"][1]["retref"] = "&" +defs["ImVector_front"][1]["signature"] = "()" +defs["ImVector_front"][1]["stname"] = "ImVector" +defs["ImVector_front"][1]["templated"] = true +defs["ImVector_front"][2] = {} +defs["ImVector_front"][2]["args"] = "(ImVector* self)" +defs["ImVector_front"][2]["argsT"] = {} +defs["ImVector_front"][2]["argsT"][1] = {} +defs["ImVector_front"][2]["argsT"][1]["name"] = "self" +defs["ImVector_front"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_front"][2]["argsoriginal"] = "()" +defs["ImVector_front"][2]["call_args"] = "()" +defs["ImVector_front"][2]["cimguiname"] = "ImVector_front" +defs["ImVector_front"][2]["defaults"] = {} +defs["ImVector_front"][2]["funcname"] = "front" +defs["ImVector_front"][2]["location"] = "imgui:1796" +defs["ImVector_front"][2]["ov_cimguiname"] = "ImVector_front__const" +defs["ImVector_front"][2]["ret"] = "const T*" +defs["ImVector_front"][2]["retref"] = "&" +defs["ImVector_front"][2]["signature"] = "()const" +defs["ImVector_front"][2]["stname"] = "ImVector" +defs["ImVector_front"][2]["templated"] = true +defs["ImVector_front"]["()"] = defs["ImVector_front"][1] +defs["ImVector_front"]["()const"] = defs["ImVector_front"][2] +defs["ImVector_index_from_ptr"] = {} +defs["ImVector_index_from_ptr"][1] = {} +defs["ImVector_index_from_ptr"][1]["args"] = "(ImVector* self,const T* it)" +defs["ImVector_index_from_ptr"][1]["argsT"] = {} +defs["ImVector_index_from_ptr"][1]["argsT"][1] = {} +defs["ImVector_index_from_ptr"][1]["argsT"][1]["name"] = "self" +defs["ImVector_index_from_ptr"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_index_from_ptr"][1]["argsT"][2] = {} +defs["ImVector_index_from_ptr"][1]["argsT"][2]["name"] = "it" +defs["ImVector_index_from_ptr"][1]["argsT"][2]["type"] = "const T*" +defs["ImVector_index_from_ptr"][1]["argsoriginal"] = "(const T* it)" +defs["ImVector_index_from_ptr"][1]["call_args"] = "(it)" +defs["ImVector_index_from_ptr"][1]["cimguiname"] = "ImVector_index_from_ptr" +defs["ImVector_index_from_ptr"][1]["defaults"] = {} +defs["ImVector_index_from_ptr"][1]["funcname"] = "index_from_ptr" +defs["ImVector_index_from_ptr"][1]["location"] = "imgui:1821" +defs["ImVector_index_from_ptr"][1]["ov_cimguiname"] = "ImVector_index_from_ptr" +defs["ImVector_index_from_ptr"][1]["ret"] = "int" +defs["ImVector_index_from_ptr"][1]["signature"] = "(const T*)const" +defs["ImVector_index_from_ptr"][1]["stname"] = "ImVector" +defs["ImVector_index_from_ptr"][1]["templated"] = true +defs["ImVector_index_from_ptr"]["(const T*)const"] = defs["ImVector_index_from_ptr"][1] +defs["ImVector_insert"] = {} +defs["ImVector_insert"][1] = {} +defs["ImVector_insert"][1]["args"] = "(ImVector* self,const T* it,const T v)" +defs["ImVector_insert"][1]["argsT"] = {} +defs["ImVector_insert"][1]["argsT"][1] = {} +defs["ImVector_insert"][1]["argsT"][1]["name"] = "self" +defs["ImVector_insert"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_insert"][1]["argsT"][2] = {} +defs["ImVector_insert"][1]["argsT"][2]["name"] = "it" +defs["ImVector_insert"][1]["argsT"][2]["type"] = "const T*" +defs["ImVector_insert"][1]["argsT"][3] = {} +defs["ImVector_insert"][1]["argsT"][3]["name"] = "v" +defs["ImVector_insert"][1]["argsT"][3]["type"] = "const T" +defs["ImVector_insert"][1]["argsoriginal"] = "(const T* it,const T& v)" +defs["ImVector_insert"][1]["call_args"] = "(it,v)" +defs["ImVector_insert"][1]["cimguiname"] = "ImVector_insert" +defs["ImVector_insert"][1]["defaults"] = {} +defs["ImVector_insert"][1]["funcname"] = "insert" +defs["ImVector_insert"][1]["location"] = "imgui:1815" +defs["ImVector_insert"][1]["ov_cimguiname"] = "ImVector_insert" +defs["ImVector_insert"][1]["ret"] = "T*" +defs["ImVector_insert"][1]["signature"] = "(const T*,const T)" +defs["ImVector_insert"][1]["stname"] = "ImVector" +defs["ImVector_insert"][1]["templated"] = true +defs["ImVector_insert"]["(const T*,const T)"] = defs["ImVector_insert"][1] +defs["ImVector_max_size"] = {} +defs["ImVector_max_size"][1] = {} +defs["ImVector_max_size"][1]["args"] = "(ImVector* self)" +defs["ImVector_max_size"][1]["argsT"] = {} +defs["ImVector_max_size"][1]["argsT"][1] = {} +defs["ImVector_max_size"][1]["argsT"][1]["name"] = "self" +defs["ImVector_max_size"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_max_size"][1]["argsoriginal"] = "()" +defs["ImVector_max_size"][1]["call_args"] = "()" +defs["ImVector_max_size"][1]["cimguiname"] = "ImVector_max_size" +defs["ImVector_max_size"][1]["defaults"] = {} +defs["ImVector_max_size"][1]["funcname"] = "max_size" +defs["ImVector_max_size"][1]["location"] = "imgui:1786" +defs["ImVector_max_size"][1]["ov_cimguiname"] = "ImVector_max_size" +defs["ImVector_max_size"][1]["ret"] = "int" +defs["ImVector_max_size"][1]["signature"] = "()const" +defs["ImVector_max_size"][1]["stname"] = "ImVector" +defs["ImVector_max_size"][1]["templated"] = true +defs["ImVector_max_size"]["()const"] = defs["ImVector_max_size"][1] +defs["ImVector_pop_back"] = {} +defs["ImVector_pop_back"][1] = {} +defs["ImVector_pop_back"][1]["args"] = "(ImVector* self)" +defs["ImVector_pop_back"][1]["argsT"] = {} +defs["ImVector_pop_back"][1]["argsT"][1] = {} +defs["ImVector_pop_back"][1]["argsT"][1]["name"] = "self" +defs["ImVector_pop_back"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_pop_back"][1]["argsoriginal"] = "()" +defs["ImVector_pop_back"][1]["call_args"] = "()" +defs["ImVector_pop_back"][1]["cimguiname"] = "ImVector_pop_back" +defs["ImVector_pop_back"][1]["defaults"] = {} +defs["ImVector_pop_back"][1]["funcname"] = "pop_back" +defs["ImVector_pop_back"][1]["location"] = "imgui:1810" +defs["ImVector_pop_back"][1]["ov_cimguiname"] = "ImVector_pop_back" +defs["ImVector_pop_back"][1]["ret"] = "void" +defs["ImVector_pop_back"][1]["signature"] = "()" +defs["ImVector_pop_back"][1]["stname"] = "ImVector" +defs["ImVector_pop_back"][1]["templated"] = true +defs["ImVector_pop_back"]["()"] = defs["ImVector_pop_back"][1] +defs["ImVector_push_back"] = {} +defs["ImVector_push_back"][1] = {} +defs["ImVector_push_back"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_push_back"][1]["argsT"] = {} +defs["ImVector_push_back"][1]["argsT"][1] = {} +defs["ImVector_push_back"][1]["argsT"][1]["name"] = "self" +defs["ImVector_push_back"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_push_back"][1]["argsT"][2] = {} +defs["ImVector_push_back"][1]["argsT"][2]["name"] = "v" +defs["ImVector_push_back"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_push_back"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_push_back"][1]["call_args"] = "(v)" +defs["ImVector_push_back"][1]["cimguiname"] = "ImVector_push_back" +defs["ImVector_push_back"][1]["defaults"] = {} +defs["ImVector_push_back"][1]["funcname"] = "push_back" +defs["ImVector_push_back"][1]["location"] = "imgui:1809" +defs["ImVector_push_back"][1]["ov_cimguiname"] = "ImVector_push_back" +defs["ImVector_push_back"][1]["ret"] = "void" +defs["ImVector_push_back"][1]["signature"] = "(const T)" +defs["ImVector_push_back"][1]["stname"] = "ImVector" +defs["ImVector_push_back"][1]["templated"] = true +defs["ImVector_push_back"]["(const T)"] = defs["ImVector_push_back"][1] +defs["ImVector_push_front"] = {} +defs["ImVector_push_front"][1] = {} +defs["ImVector_push_front"][1]["args"] = "(ImVector* self,const T v)" +defs["ImVector_push_front"][1]["argsT"] = {} +defs["ImVector_push_front"][1]["argsT"][1] = {} +defs["ImVector_push_front"][1]["argsT"][1]["name"] = "self" +defs["ImVector_push_front"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_push_front"][1]["argsT"][2] = {} +defs["ImVector_push_front"][1]["argsT"][2]["name"] = "v" +defs["ImVector_push_front"][1]["argsT"][2]["type"] = "const T" +defs["ImVector_push_front"][1]["argsoriginal"] = "(const T& v)" +defs["ImVector_push_front"][1]["call_args"] = "(v)" +defs["ImVector_push_front"][1]["cimguiname"] = "ImVector_push_front" +defs["ImVector_push_front"][1]["defaults"] = {} +defs["ImVector_push_front"][1]["funcname"] = "push_front" +defs["ImVector_push_front"][1]["location"] = "imgui:1811" +defs["ImVector_push_front"][1]["ov_cimguiname"] = "ImVector_push_front" +defs["ImVector_push_front"][1]["ret"] = "void" +defs["ImVector_push_front"][1]["signature"] = "(const T)" +defs["ImVector_push_front"][1]["stname"] = "ImVector" +defs["ImVector_push_front"][1]["templated"] = true +defs["ImVector_push_front"]["(const T)"] = defs["ImVector_push_front"][1] +defs["ImVector_reserve"] = {} +defs["ImVector_reserve"][1] = {} +defs["ImVector_reserve"][1]["args"] = "(ImVector* self,int new_capacity)" +defs["ImVector_reserve"][1]["argsT"] = {} +defs["ImVector_reserve"][1]["argsT"][1] = {} +defs["ImVector_reserve"][1]["argsT"][1]["name"] = "self" +defs["ImVector_reserve"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_reserve"][1]["argsT"][2] = {} +defs["ImVector_reserve"][1]["argsT"][2]["name"] = "new_capacity" +defs["ImVector_reserve"][1]["argsT"][2]["type"] = "int" +defs["ImVector_reserve"][1]["argsoriginal"] = "(int new_capacity)" +defs["ImVector_reserve"][1]["call_args"] = "(new_capacity)" +defs["ImVector_reserve"][1]["cimguiname"] = "ImVector_reserve" +defs["ImVector_reserve"][1]["defaults"] = {} +defs["ImVector_reserve"][1]["funcname"] = "reserve" +defs["ImVector_reserve"][1]["location"] = "imgui:1805" +defs["ImVector_reserve"][1]["ov_cimguiname"] = "ImVector_reserve" +defs["ImVector_reserve"][1]["ret"] = "void" +defs["ImVector_reserve"][1]["signature"] = "(int)" +defs["ImVector_reserve"][1]["stname"] = "ImVector" +defs["ImVector_reserve"][1]["templated"] = true +defs["ImVector_reserve"]["(int)"] = defs["ImVector_reserve"][1] +defs["ImVector_reserve_discard"] = {} +defs["ImVector_reserve_discard"][1] = {} +defs["ImVector_reserve_discard"][1]["args"] = "(ImVector* self,int new_capacity)" +defs["ImVector_reserve_discard"][1]["argsT"] = {} +defs["ImVector_reserve_discard"][1]["argsT"][1] = {} +defs["ImVector_reserve_discard"][1]["argsT"][1]["name"] = "self" +defs["ImVector_reserve_discard"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_reserve_discard"][1]["argsT"][2] = {} +defs["ImVector_reserve_discard"][1]["argsT"][2]["name"] = "new_capacity" +defs["ImVector_reserve_discard"][1]["argsT"][2]["type"] = "int" +defs["ImVector_reserve_discard"][1]["argsoriginal"] = "(int new_capacity)" +defs["ImVector_reserve_discard"][1]["call_args"] = "(new_capacity)" +defs["ImVector_reserve_discard"][1]["cimguiname"] = "ImVector_reserve_discard" +defs["ImVector_reserve_discard"][1]["defaults"] = {} +defs["ImVector_reserve_discard"][1]["funcname"] = "reserve_discard" +defs["ImVector_reserve_discard"][1]["location"] = "imgui:1806" +defs["ImVector_reserve_discard"][1]["ov_cimguiname"] = "ImVector_reserve_discard" +defs["ImVector_reserve_discard"][1]["ret"] = "void" +defs["ImVector_reserve_discard"][1]["signature"] = "(int)" +defs["ImVector_reserve_discard"][1]["stname"] = "ImVector" +defs["ImVector_reserve_discard"][1]["templated"] = true +defs["ImVector_reserve_discard"]["(int)"] = defs["ImVector_reserve_discard"][1] +defs["ImVector_resize"] = {} +defs["ImVector_resize"][1] = {} +defs["ImVector_resize"][1]["args"] = "(ImVector* self,int new_size)" +defs["ImVector_resize"][1]["argsT"] = {} +defs["ImVector_resize"][1]["argsT"][1] = {} +defs["ImVector_resize"][1]["argsT"][1]["name"] = "self" +defs["ImVector_resize"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_resize"][1]["argsT"][2] = {} +defs["ImVector_resize"][1]["argsT"][2]["name"] = "new_size" +defs["ImVector_resize"][1]["argsT"][2]["type"] = "int" +defs["ImVector_resize"][1]["argsoriginal"] = "(int new_size)" +defs["ImVector_resize"][1]["call_args"] = "(new_size)" +defs["ImVector_resize"][1]["cimguiname"] = "ImVector_resize" +defs["ImVector_resize"][1]["defaults"] = {} +defs["ImVector_resize"][1]["funcname"] = "resize" +defs["ImVector_resize"][1]["location"] = "imgui:1802" +defs["ImVector_resize"][1]["ov_cimguiname"] = "ImVector_resize_Nil" +defs["ImVector_resize"][1]["ret"] = "void" +defs["ImVector_resize"][1]["signature"] = "(int)" +defs["ImVector_resize"][1]["stname"] = "ImVector" +defs["ImVector_resize"][1]["templated"] = true +defs["ImVector_resize"][2] = {} +defs["ImVector_resize"][2]["args"] = "(ImVector* self,int new_size,const T v)" +defs["ImVector_resize"][2]["argsT"] = {} +defs["ImVector_resize"][2]["argsT"][1] = {} +defs["ImVector_resize"][2]["argsT"][1]["name"] = "self" +defs["ImVector_resize"][2]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_resize"][2]["argsT"][2] = {} +defs["ImVector_resize"][2]["argsT"][2]["name"] = "new_size" +defs["ImVector_resize"][2]["argsT"][2]["type"] = "int" +defs["ImVector_resize"][2]["argsT"][3] = {} +defs["ImVector_resize"][2]["argsT"][3]["name"] = "v" +defs["ImVector_resize"][2]["argsT"][3]["type"] = "const T" +defs["ImVector_resize"][2]["argsoriginal"] = "(int new_size,const T& v)" +defs["ImVector_resize"][2]["call_args"] = "(new_size,v)" +defs["ImVector_resize"][2]["cimguiname"] = "ImVector_resize" +defs["ImVector_resize"][2]["defaults"] = {} +defs["ImVector_resize"][2]["funcname"] = "resize" +defs["ImVector_resize"][2]["location"] = "imgui:1803" +defs["ImVector_resize"][2]["ov_cimguiname"] = "ImVector_resize_T" +defs["ImVector_resize"][2]["ret"] = "void" +defs["ImVector_resize"][2]["signature"] = "(int,const T)" +defs["ImVector_resize"][2]["stname"] = "ImVector" +defs["ImVector_resize"][2]["templated"] = true +defs["ImVector_resize"]["(int)"] = defs["ImVector_resize"][1] +defs["ImVector_resize"]["(int,const T)"] = defs["ImVector_resize"][2] +defs["ImVector_shrink"] = {} +defs["ImVector_shrink"][1] = {} +defs["ImVector_shrink"][1]["args"] = "(ImVector* self,int new_size)" +defs["ImVector_shrink"][1]["argsT"] = {} +defs["ImVector_shrink"][1]["argsT"][1] = {} +defs["ImVector_shrink"][1]["argsT"][1]["name"] = "self" +defs["ImVector_shrink"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_shrink"][1]["argsT"][2] = {} +defs["ImVector_shrink"][1]["argsT"][2]["name"] = "new_size" +defs["ImVector_shrink"][1]["argsT"][2]["type"] = "int" +defs["ImVector_shrink"][1]["argsoriginal"] = "(int new_size)" +defs["ImVector_shrink"][1]["call_args"] = "(new_size)" +defs["ImVector_shrink"][1]["cimguiname"] = "ImVector_shrink" +defs["ImVector_shrink"][1]["defaults"] = {} +defs["ImVector_shrink"][1]["funcname"] = "shrink" +defs["ImVector_shrink"][1]["location"] = "imgui:1804" +defs["ImVector_shrink"][1]["ov_cimguiname"] = "ImVector_shrink" +defs["ImVector_shrink"][1]["ret"] = "void" +defs["ImVector_shrink"][1]["signature"] = "(int)" +defs["ImVector_shrink"][1]["stname"] = "ImVector" +defs["ImVector_shrink"][1]["templated"] = true +defs["ImVector_shrink"]["(int)"] = defs["ImVector_shrink"][1] +defs["ImVector_size"] = {} +defs["ImVector_size"][1] = {} +defs["ImVector_size"][1]["args"] = "(ImVector* self)" +defs["ImVector_size"][1]["argsT"] = {} +defs["ImVector_size"][1]["argsT"][1] = {} +defs["ImVector_size"][1]["argsT"][1]["name"] = "self" +defs["ImVector_size"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_size"][1]["argsoriginal"] = "()" +defs["ImVector_size"][1]["call_args"] = "()" +defs["ImVector_size"][1]["cimguiname"] = "ImVector_size" +defs["ImVector_size"][1]["defaults"] = {} +defs["ImVector_size"][1]["funcname"] = "size" +defs["ImVector_size"][1]["location"] = "imgui:1784" +defs["ImVector_size"][1]["ov_cimguiname"] = "ImVector_size" +defs["ImVector_size"][1]["ret"] = "int" +defs["ImVector_size"][1]["signature"] = "()const" +defs["ImVector_size"][1]["stname"] = "ImVector" +defs["ImVector_size"][1]["templated"] = true +defs["ImVector_size"]["()const"] = defs["ImVector_size"][1] +defs["ImVector_size_in_bytes"] = {} +defs["ImVector_size_in_bytes"][1] = {} +defs["ImVector_size_in_bytes"][1]["args"] = "(ImVector* self)" +defs["ImVector_size_in_bytes"][1]["argsT"] = {} +defs["ImVector_size_in_bytes"][1]["argsT"][1] = {} +defs["ImVector_size_in_bytes"][1]["argsT"][1]["name"] = "self" +defs["ImVector_size_in_bytes"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_size_in_bytes"][1]["argsoriginal"] = "()" +defs["ImVector_size_in_bytes"][1]["call_args"] = "()" +defs["ImVector_size_in_bytes"][1]["cimguiname"] = "ImVector_size_in_bytes" +defs["ImVector_size_in_bytes"][1]["defaults"] = {} +defs["ImVector_size_in_bytes"][1]["funcname"] = "size_in_bytes" +defs["ImVector_size_in_bytes"][1]["location"] = "imgui:1785" +defs["ImVector_size_in_bytes"][1]["ov_cimguiname"] = "ImVector_size_in_bytes" +defs["ImVector_size_in_bytes"][1]["ret"] = "int" +defs["ImVector_size_in_bytes"][1]["signature"] = "()const" +defs["ImVector_size_in_bytes"][1]["stname"] = "ImVector" +defs["ImVector_size_in_bytes"][1]["templated"] = true +defs["ImVector_size_in_bytes"]["()const"] = defs["ImVector_size_in_bytes"][1] +defs["ImVector_swap"] = {} +defs["ImVector_swap"][1] = {} +defs["ImVector_swap"][1]["args"] = "(ImVector* self,ImVector_T * rhs)" +defs["ImVector_swap"][1]["argsT"] = {} +defs["ImVector_swap"][1]["argsT"][1] = {} +defs["ImVector_swap"][1]["argsT"][1]["name"] = "self" +defs["ImVector_swap"][1]["argsT"][1]["type"] = "ImVector*" +defs["ImVector_swap"][1]["argsT"][2] = {} +defs["ImVector_swap"][1]["argsT"][2]["name"] = "rhs" +defs["ImVector_swap"][1]["argsT"][2]["reftoptr"] = true +defs["ImVector_swap"][1]["argsT"][2]["type"] = "ImVector_T *" +defs["ImVector_swap"][1]["argsoriginal"] = "(ImVector& rhs)" +defs["ImVector_swap"][1]["call_args"] = "(*rhs)" +defs["ImVector_swap"][1]["cimguiname"] = "ImVector_swap" +defs["ImVector_swap"][1]["defaults"] = {} +defs["ImVector_swap"][1]["funcname"] = "swap" +defs["ImVector_swap"][1]["location"] = "imgui:1799" +defs["ImVector_swap"][1]["ov_cimguiname"] = "ImVector_swap" +defs["ImVector_swap"][1]["ret"] = "void" +defs["ImVector_swap"][1]["signature"] = "(ImVector_T *)" +defs["ImVector_swap"][1]["stname"] = "ImVector" +defs["ImVector_swap"][1]["templated"] = true +defs["ImVector_swap"]["(ImVector_T *)"] = defs["ImVector_swap"][1] +defs["igAcceptDragDropPayload"] = {} +defs["igAcceptDragDropPayload"][1] = {} +defs["igAcceptDragDropPayload"][1]["args"] = "(const char* type,ImGuiDragDropFlags flags)" +defs["igAcceptDragDropPayload"][1]["argsT"] = {} +defs["igAcceptDragDropPayload"][1]["argsT"][1] = {} +defs["igAcceptDragDropPayload"][1]["argsT"][1]["name"] = "type" +defs["igAcceptDragDropPayload"][1]["argsT"][1]["type"] = "const char*" +defs["igAcceptDragDropPayload"][1]["argsT"][2] = {} +defs["igAcceptDragDropPayload"][1]["argsT"][2]["name"] = "flags" +defs["igAcceptDragDropPayload"][1]["argsT"][2]["type"] = "ImGuiDragDropFlags" +defs["igAcceptDragDropPayload"][1]["argsoriginal"] = "(const char* type,ImGuiDragDropFlags flags=0)" +defs["igAcceptDragDropPayload"][1]["call_args"] = "(type,flags)" +defs["igAcceptDragDropPayload"][1]["cimguiname"] = "igAcceptDragDropPayload" +defs["igAcceptDragDropPayload"][1]["defaults"] = {} +defs["igAcceptDragDropPayload"][1]["defaults"]["flags"] = "0" +defs["igAcceptDragDropPayload"][1]["funcname"] = "AcceptDragDropPayload" +defs["igAcceptDragDropPayload"][1]["location"] = "imgui:811" +defs["igAcceptDragDropPayload"][1]["namespace"] = "ImGui" +defs["igAcceptDragDropPayload"][1]["ov_cimguiname"] = "igAcceptDragDropPayload" +defs["igAcceptDragDropPayload"][1]["ret"] = "const ImGuiPayload*" +defs["igAcceptDragDropPayload"][1]["signature"] = "(const char*,ImGuiDragDropFlags)" +defs["igAcceptDragDropPayload"][1]["stname"] = "" +defs["igAcceptDragDropPayload"]["(const char*,ImGuiDragDropFlags)"] = defs["igAcceptDragDropPayload"][1] +defs["igAlignTextToFramePadding"] = {} +defs["igAlignTextToFramePadding"][1] = {} +defs["igAlignTextToFramePadding"][1]["args"] = "()" +defs["igAlignTextToFramePadding"][1]["argsT"] = {} +defs["igAlignTextToFramePadding"][1]["argsoriginal"] = "()" +defs["igAlignTextToFramePadding"][1]["call_args"] = "()" +defs["igAlignTextToFramePadding"][1]["cimguiname"] = "igAlignTextToFramePadding" +defs["igAlignTextToFramePadding"][1]["defaults"] = {} +defs["igAlignTextToFramePadding"][1]["funcname"] = "AlignTextToFramePadding" +defs["igAlignTextToFramePadding"][1]["location"] = "imgui:456" +defs["igAlignTextToFramePadding"][1]["namespace"] = "ImGui" +defs["igAlignTextToFramePadding"][1]["ov_cimguiname"] = "igAlignTextToFramePadding" +defs["igAlignTextToFramePadding"][1]["ret"] = "void" +defs["igAlignTextToFramePadding"][1]["signature"] = "()" +defs["igAlignTextToFramePadding"][1]["stname"] = "" +defs["igAlignTextToFramePadding"]["()"] = defs["igAlignTextToFramePadding"][1] +defs["igArrowButton"] = {} +defs["igArrowButton"][1] = {} +defs["igArrowButton"][1]["args"] = "(const char* str_id,ImGuiDir dir)" +defs["igArrowButton"][1]["argsT"] = {} +defs["igArrowButton"][1]["argsT"][1] = {} +defs["igArrowButton"][1]["argsT"][1]["name"] = "str_id" +defs["igArrowButton"][1]["argsT"][1]["type"] = "const char*" +defs["igArrowButton"][1]["argsT"][2] = {} +defs["igArrowButton"][1]["argsT"][2]["name"] = "dir" +defs["igArrowButton"][1]["argsT"][2]["type"] = "ImGuiDir" +defs["igArrowButton"][1]["argsoriginal"] = "(const char* str_id,ImGuiDir dir)" +defs["igArrowButton"][1]["call_args"] = "(str_id,dir)" +defs["igArrowButton"][1]["cimguiname"] = "igArrowButton" +defs["igArrowButton"][1]["defaults"] = {} +defs["igArrowButton"][1]["funcname"] = "ArrowButton" +defs["igArrowButton"][1]["location"] = "imgui:503" +defs["igArrowButton"][1]["namespace"] = "ImGui" +defs["igArrowButton"][1]["ov_cimguiname"] = "igArrowButton" +defs["igArrowButton"][1]["ret"] = "bool" +defs["igArrowButton"][1]["signature"] = "(const char*,ImGuiDir)" +defs["igArrowButton"][1]["stname"] = "" +defs["igArrowButton"]["(const char*,ImGuiDir)"] = defs["igArrowButton"][1] +defs["igBegin"] = {} +defs["igBegin"][1] = {} +defs["igBegin"][1]["args"] = "(const char* name,bool* p_open,ImGuiWindowFlags flags)" +defs["igBegin"][1]["argsT"] = {} +defs["igBegin"][1]["argsT"][1] = {} +defs["igBegin"][1]["argsT"][1]["name"] = "name" +defs["igBegin"][1]["argsT"][1]["type"] = "const char*" +defs["igBegin"][1]["argsT"][2] = {} +defs["igBegin"][1]["argsT"][2]["name"] = "p_open" +defs["igBegin"][1]["argsT"][2]["type"] = "bool*" +defs["igBegin"][1]["argsT"][3] = {} +defs["igBegin"][1]["argsT"][3]["name"] = "flags" +defs["igBegin"][1]["argsT"][3]["type"] = "ImGuiWindowFlags" +defs["igBegin"][1]["argsoriginal"] = "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)" +defs["igBegin"][1]["call_args"] = "(name,p_open,flags)" +defs["igBegin"][1]["cimguiname"] = "igBegin" +defs["igBegin"][1]["defaults"] = {} +defs["igBegin"][1]["defaults"]["flags"] = "0" +defs["igBegin"][1]["defaults"]["p_open"] = "NULL" +defs["igBegin"][1]["funcname"] = "Begin" +defs["igBegin"][1]["location"] = "imgui:330" +defs["igBegin"][1]["namespace"] = "ImGui" +defs["igBegin"][1]["ov_cimguiname"] = "igBegin" +defs["igBegin"][1]["ret"] = "bool" +defs["igBegin"][1]["signature"] = "(const char*,bool*,ImGuiWindowFlags)" +defs["igBegin"][1]["stname"] = "" +defs["igBegin"]["(const char*,bool*,ImGuiWindowFlags)"] = defs["igBegin"][1] +defs["igBeginChild"] = {} +defs["igBeginChild"][1] = {} +defs["igBeginChild"][1]["args"] = "(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags)" +defs["igBeginChild"][1]["argsT"] = {} +defs["igBeginChild"][1]["argsT"][1] = {} +defs["igBeginChild"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginChild"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginChild"][1]["argsT"][2] = {} +defs["igBeginChild"][1]["argsT"][2]["name"] = "size" +defs["igBeginChild"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igBeginChild"][1]["argsT"][3] = {} +defs["igBeginChild"][1]["argsT"][3]["name"] = "border" +defs["igBeginChild"][1]["argsT"][3]["type"] = "bool" +defs["igBeginChild"][1]["argsT"][4] = {} +defs["igBeginChild"][1]["argsT"][4]["name"] = "flags" +defs["igBeginChild"][1]["argsT"][4]["type"] = "ImGuiWindowFlags" +defs["igBeginChild"][1]["argsoriginal"] = "(const char* str_id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)" +defs["igBeginChild"][1]["call_args"] = "(str_id,size,border,flags)" +defs["igBeginChild"][1]["cimguiname"] = "igBeginChild" +defs["igBeginChild"][1]["defaults"] = {} +defs["igBeginChild"][1]["defaults"]["border"] = "false" +defs["igBeginChild"][1]["defaults"]["flags"] = "0" +defs["igBeginChild"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igBeginChild"][1]["funcname"] = "BeginChild" +defs["igBeginChild"][1]["location"] = "imgui:341" +defs["igBeginChild"][1]["namespace"] = "ImGui" +defs["igBeginChild"][1]["ov_cimguiname"] = "igBeginChild_Str" +defs["igBeginChild"][1]["ret"] = "bool" +defs["igBeginChild"][1]["signature"] = "(const char*,const ImVec2,bool,ImGuiWindowFlags)" +defs["igBeginChild"][1]["stname"] = "" +defs["igBeginChild"][2] = {} +defs["igBeginChild"][2]["args"] = "(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags)" +defs["igBeginChild"][2]["argsT"] = {} +defs["igBeginChild"][2]["argsT"][1] = {} +defs["igBeginChild"][2]["argsT"][1]["name"] = "id" +defs["igBeginChild"][2]["argsT"][1]["type"] = "ImGuiID" +defs["igBeginChild"][2]["argsT"][2] = {} +defs["igBeginChild"][2]["argsT"][2]["name"] = "size" +defs["igBeginChild"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igBeginChild"][2]["argsT"][3] = {} +defs["igBeginChild"][2]["argsT"][3]["name"] = "border" +defs["igBeginChild"][2]["argsT"][3]["type"] = "bool" +defs["igBeginChild"][2]["argsT"][4] = {} +defs["igBeginChild"][2]["argsT"][4]["name"] = "flags" +defs["igBeginChild"][2]["argsT"][4]["type"] = "ImGuiWindowFlags" +defs["igBeginChild"][2]["argsoriginal"] = "(ImGuiID id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)" +defs["igBeginChild"][2]["call_args"] = "(id,size,border,flags)" +defs["igBeginChild"][2]["cimguiname"] = "igBeginChild" +defs["igBeginChild"][2]["defaults"] = {} +defs["igBeginChild"][2]["defaults"]["border"] = "false" +defs["igBeginChild"][2]["defaults"]["flags"] = "0" +defs["igBeginChild"][2]["defaults"]["size"] = "ImVec2(0,0)" +defs["igBeginChild"][2]["funcname"] = "BeginChild" +defs["igBeginChild"][2]["location"] = "imgui:342" +defs["igBeginChild"][2]["namespace"] = "ImGui" +defs["igBeginChild"][2]["ov_cimguiname"] = "igBeginChild_ID" +defs["igBeginChild"][2]["ret"] = "bool" +defs["igBeginChild"][2]["signature"] = "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)" +defs["igBeginChild"][2]["stname"] = "" +defs["igBeginChild"]["(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)"] = defs["igBeginChild"][2] +defs["igBeginChild"]["(const char*,const ImVec2,bool,ImGuiWindowFlags)"] = defs["igBeginChild"][1] +defs["igBeginChildFrame"] = {} +defs["igBeginChildFrame"][1] = {} +defs["igBeginChildFrame"][1]["args"] = "(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags)" +defs["igBeginChildFrame"][1]["argsT"] = {} +defs["igBeginChildFrame"][1]["argsT"][1] = {} +defs["igBeginChildFrame"][1]["argsT"][1]["name"] = "id" +defs["igBeginChildFrame"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igBeginChildFrame"][1]["argsT"][2] = {} +defs["igBeginChildFrame"][1]["argsT"][2]["name"] = "size" +defs["igBeginChildFrame"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igBeginChildFrame"][1]["argsT"][3] = {} +defs["igBeginChildFrame"][1]["argsT"][3]["name"] = "flags" +defs["igBeginChildFrame"][1]["argsT"][3]["type"] = "ImGuiWindowFlags" +defs["igBeginChildFrame"][1]["argsoriginal"] = "(ImGuiID id,const ImVec2& size,ImGuiWindowFlags flags=0)" +defs["igBeginChildFrame"][1]["call_args"] = "(id,size,flags)" +defs["igBeginChildFrame"][1]["cimguiname"] = "igBeginChildFrame" +defs["igBeginChildFrame"][1]["defaults"] = {} +defs["igBeginChildFrame"][1]["defaults"]["flags"] = "0" +defs["igBeginChildFrame"][1]["funcname"] = "BeginChildFrame" +defs["igBeginChildFrame"][1]["location"] = "imgui:872" +defs["igBeginChildFrame"][1]["namespace"] = "ImGui" +defs["igBeginChildFrame"][1]["ov_cimguiname"] = "igBeginChildFrame" +defs["igBeginChildFrame"][1]["ret"] = "bool" +defs["igBeginChildFrame"][1]["signature"] = "(ImGuiID,const ImVec2,ImGuiWindowFlags)" +defs["igBeginChildFrame"][1]["stname"] = "" +defs["igBeginChildFrame"]["(ImGuiID,const ImVec2,ImGuiWindowFlags)"] = defs["igBeginChildFrame"][1] +defs["igBeginCombo"] = {} +defs["igBeginCombo"][1] = {} +defs["igBeginCombo"][1]["args"] = "(const char* label,const char* preview_value,ImGuiComboFlags flags)" +defs["igBeginCombo"][1]["argsT"] = {} +defs["igBeginCombo"][1]["argsT"][1] = {} +defs["igBeginCombo"][1]["argsT"][1]["name"] = "label" +defs["igBeginCombo"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginCombo"][1]["argsT"][2] = {} +defs["igBeginCombo"][1]["argsT"][2]["name"] = "preview_value" +defs["igBeginCombo"][1]["argsT"][2]["type"] = "const char*" +defs["igBeginCombo"][1]["argsT"][3] = {} +defs["igBeginCombo"][1]["argsT"][3]["name"] = "flags" +defs["igBeginCombo"][1]["argsT"][3]["type"] = "ImGuiComboFlags" +defs["igBeginCombo"][1]["argsoriginal"] = "(const char* label,const char* preview_value,ImGuiComboFlags flags=0)" +defs["igBeginCombo"][1]["call_args"] = "(label,preview_value,flags)" +defs["igBeginCombo"][1]["cimguiname"] = "igBeginCombo" +defs["igBeginCombo"][1]["defaults"] = {} +defs["igBeginCombo"][1]["defaults"]["flags"] = "0" +defs["igBeginCombo"][1]["funcname"] = "BeginCombo" +defs["igBeginCombo"][1]["location"] = "imgui:520" +defs["igBeginCombo"][1]["namespace"] = "ImGui" +defs["igBeginCombo"][1]["ov_cimguiname"] = "igBeginCombo" +defs["igBeginCombo"][1]["ret"] = "bool" +defs["igBeginCombo"][1]["signature"] = "(const char*,const char*,ImGuiComboFlags)" +defs["igBeginCombo"][1]["stname"] = "" +defs["igBeginCombo"]["(const char*,const char*,ImGuiComboFlags)"] = defs["igBeginCombo"][1] +defs["igBeginDisabled"] = {} +defs["igBeginDisabled"][1] = {} +defs["igBeginDisabled"][1]["args"] = "(bool disabled)" +defs["igBeginDisabled"][1]["argsT"] = {} +defs["igBeginDisabled"][1]["argsT"][1] = {} +defs["igBeginDisabled"][1]["argsT"][1]["name"] = "disabled" +defs["igBeginDisabled"][1]["argsT"][1]["type"] = "bool" +defs["igBeginDisabled"][1]["argsoriginal"] = "(bool disabled=true)" +defs["igBeginDisabled"][1]["call_args"] = "(disabled)" +defs["igBeginDisabled"][1]["cimguiname"] = "igBeginDisabled" +defs["igBeginDisabled"][1]["defaults"] = {} +defs["igBeginDisabled"][1]["defaults"]["disabled"] = "true" +defs["igBeginDisabled"][1]["funcname"] = "BeginDisabled" +defs["igBeginDisabled"][1]["location"] = "imgui:819" +defs["igBeginDisabled"][1]["namespace"] = "ImGui" +defs["igBeginDisabled"][1]["ov_cimguiname"] = "igBeginDisabled" +defs["igBeginDisabled"][1]["ret"] = "void" +defs["igBeginDisabled"][1]["signature"] = "(bool)" +defs["igBeginDisabled"][1]["stname"] = "" +defs["igBeginDisabled"]["(bool)"] = defs["igBeginDisabled"][1] +defs["igBeginDragDropSource"] = {} +defs["igBeginDragDropSource"][1] = {} +defs["igBeginDragDropSource"][1]["args"] = "(ImGuiDragDropFlags flags)" +defs["igBeginDragDropSource"][1]["argsT"] = {} +defs["igBeginDragDropSource"][1]["argsT"][1] = {} +defs["igBeginDragDropSource"][1]["argsT"][1]["name"] = "flags" +defs["igBeginDragDropSource"][1]["argsT"][1]["type"] = "ImGuiDragDropFlags" +defs["igBeginDragDropSource"][1]["argsoriginal"] = "(ImGuiDragDropFlags flags=0)" +defs["igBeginDragDropSource"][1]["call_args"] = "(flags)" +defs["igBeginDragDropSource"][1]["cimguiname"] = "igBeginDragDropSource" +defs["igBeginDragDropSource"][1]["defaults"] = {} +defs["igBeginDragDropSource"][1]["defaults"]["flags"] = "0" +defs["igBeginDragDropSource"][1]["funcname"] = "BeginDragDropSource" +defs["igBeginDragDropSource"][1]["location"] = "imgui:807" +defs["igBeginDragDropSource"][1]["namespace"] = "ImGui" +defs["igBeginDragDropSource"][1]["ov_cimguiname"] = "igBeginDragDropSource" +defs["igBeginDragDropSource"][1]["ret"] = "bool" +defs["igBeginDragDropSource"][1]["signature"] = "(ImGuiDragDropFlags)" +defs["igBeginDragDropSource"][1]["stname"] = "" +defs["igBeginDragDropSource"]["(ImGuiDragDropFlags)"] = defs["igBeginDragDropSource"][1] +defs["igBeginDragDropTarget"] = {} +defs["igBeginDragDropTarget"][1] = {} +defs["igBeginDragDropTarget"][1]["args"] = "()" +defs["igBeginDragDropTarget"][1]["argsT"] = {} +defs["igBeginDragDropTarget"][1]["argsoriginal"] = "()" +defs["igBeginDragDropTarget"][1]["call_args"] = "()" +defs["igBeginDragDropTarget"][1]["cimguiname"] = "igBeginDragDropTarget" +defs["igBeginDragDropTarget"][1]["defaults"] = {} +defs["igBeginDragDropTarget"][1]["funcname"] = "BeginDragDropTarget" +defs["igBeginDragDropTarget"][1]["location"] = "imgui:810" +defs["igBeginDragDropTarget"][1]["namespace"] = "ImGui" +defs["igBeginDragDropTarget"][1]["ov_cimguiname"] = "igBeginDragDropTarget" +defs["igBeginDragDropTarget"][1]["ret"] = "bool" +defs["igBeginDragDropTarget"][1]["signature"] = "()" +defs["igBeginDragDropTarget"][1]["stname"] = "" +defs["igBeginDragDropTarget"]["()"] = defs["igBeginDragDropTarget"][1] +defs["igBeginGroup"] = {} +defs["igBeginGroup"][1] = {} +defs["igBeginGroup"][1]["args"] = "()" +defs["igBeginGroup"][1]["argsT"] = {} +defs["igBeginGroup"][1]["argsoriginal"] = "()" +defs["igBeginGroup"][1]["call_args"] = "()" +defs["igBeginGroup"][1]["cimguiname"] = "igBeginGroup" +defs["igBeginGroup"][1]["defaults"] = {} +defs["igBeginGroup"][1]["funcname"] = "BeginGroup" +defs["igBeginGroup"][1]["location"] = "imgui:445" +defs["igBeginGroup"][1]["namespace"] = "ImGui" +defs["igBeginGroup"][1]["ov_cimguiname"] = "igBeginGroup" +defs["igBeginGroup"][1]["ret"] = "void" +defs["igBeginGroup"][1]["signature"] = "()" +defs["igBeginGroup"][1]["stname"] = "" +defs["igBeginGroup"]["()"] = defs["igBeginGroup"][1] +defs["igBeginListBox"] = {} +defs["igBeginListBox"][1] = {} +defs["igBeginListBox"][1]["args"] = "(const char* label,const ImVec2 size)" +defs["igBeginListBox"][1]["argsT"] = {} +defs["igBeginListBox"][1]["argsT"][1] = {} +defs["igBeginListBox"][1]["argsT"][1]["name"] = "label" +defs["igBeginListBox"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginListBox"][1]["argsT"][2] = {} +defs["igBeginListBox"][1]["argsT"][2]["name"] = "size" +defs["igBeginListBox"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igBeginListBox"][1]["argsoriginal"] = "(const char* label,const ImVec2& size=ImVec2(0,0))" +defs["igBeginListBox"][1]["call_args"] = "(label,size)" +defs["igBeginListBox"][1]["cimguiname"] = "igBeginListBox" +defs["igBeginListBox"][1]["defaults"] = {} +defs["igBeginListBox"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igBeginListBox"][1]["funcname"] = "BeginListBox" +defs["igBeginListBox"][1]["location"] = "imgui:632" +defs["igBeginListBox"][1]["namespace"] = "ImGui" +defs["igBeginListBox"][1]["ov_cimguiname"] = "igBeginListBox" +defs["igBeginListBox"][1]["ret"] = "bool" +defs["igBeginListBox"][1]["signature"] = "(const char*,const ImVec2)" +defs["igBeginListBox"][1]["stname"] = "" +defs["igBeginListBox"]["(const char*,const ImVec2)"] = defs["igBeginListBox"][1] +defs["igBeginMainMenuBar"] = {} +defs["igBeginMainMenuBar"][1] = {} +defs["igBeginMainMenuBar"][1]["args"] = "()" +defs["igBeginMainMenuBar"][1]["argsT"] = {} +defs["igBeginMainMenuBar"][1]["argsoriginal"] = "()" +defs["igBeginMainMenuBar"][1]["call_args"] = "()" +defs["igBeginMainMenuBar"][1]["cimguiname"] = "igBeginMainMenuBar" +defs["igBeginMainMenuBar"][1]["defaults"] = {} +defs["igBeginMainMenuBar"][1]["funcname"] = "BeginMainMenuBar" +defs["igBeginMainMenuBar"][1]["location"] = "imgui:658" +defs["igBeginMainMenuBar"][1]["namespace"] = "ImGui" +defs["igBeginMainMenuBar"][1]["ov_cimguiname"] = "igBeginMainMenuBar" +defs["igBeginMainMenuBar"][1]["ret"] = "bool" +defs["igBeginMainMenuBar"][1]["signature"] = "()" +defs["igBeginMainMenuBar"][1]["stname"] = "" +defs["igBeginMainMenuBar"]["()"] = defs["igBeginMainMenuBar"][1] +defs["igBeginMenu"] = {} +defs["igBeginMenu"][1] = {} +defs["igBeginMenu"][1]["args"] = "(const char* label,bool enabled)" +defs["igBeginMenu"][1]["argsT"] = {} +defs["igBeginMenu"][1]["argsT"][1] = {} +defs["igBeginMenu"][1]["argsT"][1]["name"] = "label" +defs["igBeginMenu"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginMenu"][1]["argsT"][2] = {} +defs["igBeginMenu"][1]["argsT"][2]["name"] = "enabled" +defs["igBeginMenu"][1]["argsT"][2]["type"] = "bool" +defs["igBeginMenu"][1]["argsoriginal"] = "(const char* label,bool enabled=true)" +defs["igBeginMenu"][1]["call_args"] = "(label,enabled)" +defs["igBeginMenu"][1]["cimguiname"] = "igBeginMenu" +defs["igBeginMenu"][1]["defaults"] = {} +defs["igBeginMenu"][1]["defaults"]["enabled"] = "true" +defs["igBeginMenu"][1]["funcname"] = "BeginMenu" +defs["igBeginMenu"][1]["location"] = "imgui:660" +defs["igBeginMenu"][1]["namespace"] = "ImGui" +defs["igBeginMenu"][1]["ov_cimguiname"] = "igBeginMenu" +defs["igBeginMenu"][1]["ret"] = "bool" +defs["igBeginMenu"][1]["signature"] = "(const char*,bool)" +defs["igBeginMenu"][1]["stname"] = "" +defs["igBeginMenu"]["(const char*,bool)"] = defs["igBeginMenu"][1] +defs["igBeginMenuBar"] = {} +defs["igBeginMenuBar"][1] = {} +defs["igBeginMenuBar"][1]["args"] = "()" +defs["igBeginMenuBar"][1]["argsT"] = {} +defs["igBeginMenuBar"][1]["argsoriginal"] = "()" +defs["igBeginMenuBar"][1]["call_args"] = "()" +defs["igBeginMenuBar"][1]["cimguiname"] = "igBeginMenuBar" +defs["igBeginMenuBar"][1]["defaults"] = {} +defs["igBeginMenuBar"][1]["funcname"] = "BeginMenuBar" +defs["igBeginMenuBar"][1]["location"] = "imgui:656" +defs["igBeginMenuBar"][1]["namespace"] = "ImGui" +defs["igBeginMenuBar"][1]["ov_cimguiname"] = "igBeginMenuBar" +defs["igBeginMenuBar"][1]["ret"] = "bool" +defs["igBeginMenuBar"][1]["signature"] = "()" +defs["igBeginMenuBar"][1]["stname"] = "" +defs["igBeginMenuBar"]["()"] = defs["igBeginMenuBar"][1] +defs["igBeginPopup"] = {} +defs["igBeginPopup"][1] = {} +defs["igBeginPopup"][1]["args"] = "(const char* str_id,ImGuiWindowFlags flags)" +defs["igBeginPopup"][1]["argsT"] = {} +defs["igBeginPopup"][1]["argsT"][1] = {} +defs["igBeginPopup"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginPopup"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopup"][1]["argsT"][2] = {} +defs["igBeginPopup"][1]["argsT"][2]["name"] = "flags" +defs["igBeginPopup"][1]["argsT"][2]["type"] = "ImGuiWindowFlags" +defs["igBeginPopup"][1]["argsoriginal"] = "(const char* str_id,ImGuiWindowFlags flags=0)" +defs["igBeginPopup"][1]["call_args"] = "(str_id,flags)" +defs["igBeginPopup"][1]["cimguiname"] = "igBeginPopup" +defs["igBeginPopup"][1]["defaults"] = {} +defs["igBeginPopup"][1]["defaults"]["flags"] = "0" +defs["igBeginPopup"][1]["funcname"] = "BeginPopup" +defs["igBeginPopup"][1]["location"] = "imgui:684" +defs["igBeginPopup"][1]["namespace"] = "ImGui" +defs["igBeginPopup"][1]["ov_cimguiname"] = "igBeginPopup" +defs["igBeginPopup"][1]["ret"] = "bool" +defs["igBeginPopup"][1]["signature"] = "(const char*,ImGuiWindowFlags)" +defs["igBeginPopup"][1]["stname"] = "" +defs["igBeginPopup"]["(const char*,ImGuiWindowFlags)"] = defs["igBeginPopup"][1] +defs["igBeginPopupContextItem"] = {} +defs["igBeginPopupContextItem"][1] = {} +defs["igBeginPopupContextItem"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igBeginPopupContextItem"][1]["argsT"] = {} +defs["igBeginPopupContextItem"][1]["argsT"][1] = {} +defs["igBeginPopupContextItem"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginPopupContextItem"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopupContextItem"][1]["argsT"][2] = {} +defs["igBeginPopupContextItem"][1]["argsT"][2]["name"] = "popup_flags" +defs["igBeginPopupContextItem"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igBeginPopupContextItem"][1]["argsoriginal"] = "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)" +defs["igBeginPopupContextItem"][1]["call_args"] = "(str_id,popup_flags)" +defs["igBeginPopupContextItem"][1]["cimguiname"] = "igBeginPopupContextItem" +defs["igBeginPopupContextItem"][1]["defaults"] = {} +defs["igBeginPopupContextItem"][1]["defaults"]["popup_flags"] = "1" +defs["igBeginPopupContextItem"][1]["defaults"]["str_id"] = "NULL" +defs["igBeginPopupContextItem"][1]["funcname"] = "BeginPopupContextItem" +defs["igBeginPopupContextItem"][1]["location"] = "imgui:706" +defs["igBeginPopupContextItem"][1]["namespace"] = "ImGui" +defs["igBeginPopupContextItem"][1]["ov_cimguiname"] = "igBeginPopupContextItem" +defs["igBeginPopupContextItem"][1]["ret"] = "bool" +defs["igBeginPopupContextItem"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igBeginPopupContextItem"][1]["stname"] = "" +defs["igBeginPopupContextItem"]["(const char*,ImGuiPopupFlags)"] = defs["igBeginPopupContextItem"][1] +defs["igBeginPopupContextVoid"] = {} +defs["igBeginPopupContextVoid"][1] = {} +defs["igBeginPopupContextVoid"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igBeginPopupContextVoid"][1]["argsT"] = {} +defs["igBeginPopupContextVoid"][1]["argsT"][1] = {} +defs["igBeginPopupContextVoid"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginPopupContextVoid"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopupContextVoid"][1]["argsT"][2] = {} +defs["igBeginPopupContextVoid"][1]["argsT"][2]["name"] = "popup_flags" +defs["igBeginPopupContextVoid"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igBeginPopupContextVoid"][1]["argsoriginal"] = "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)" +defs["igBeginPopupContextVoid"][1]["call_args"] = "(str_id,popup_flags)" +defs["igBeginPopupContextVoid"][1]["cimguiname"] = "igBeginPopupContextVoid" +defs["igBeginPopupContextVoid"][1]["defaults"] = {} +defs["igBeginPopupContextVoid"][1]["defaults"]["popup_flags"] = "1" +defs["igBeginPopupContextVoid"][1]["defaults"]["str_id"] = "NULL" +defs["igBeginPopupContextVoid"][1]["funcname"] = "BeginPopupContextVoid" +defs["igBeginPopupContextVoid"][1]["location"] = "imgui:708" +defs["igBeginPopupContextVoid"][1]["namespace"] = "ImGui" +defs["igBeginPopupContextVoid"][1]["ov_cimguiname"] = "igBeginPopupContextVoid" +defs["igBeginPopupContextVoid"][1]["ret"] = "bool" +defs["igBeginPopupContextVoid"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igBeginPopupContextVoid"][1]["stname"] = "" +defs["igBeginPopupContextVoid"]["(const char*,ImGuiPopupFlags)"] = defs["igBeginPopupContextVoid"][1] +defs["igBeginPopupContextWindow"] = {} +defs["igBeginPopupContextWindow"][1] = {} +defs["igBeginPopupContextWindow"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igBeginPopupContextWindow"][1]["argsT"] = {} +defs["igBeginPopupContextWindow"][1]["argsT"][1] = {} +defs["igBeginPopupContextWindow"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginPopupContextWindow"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopupContextWindow"][1]["argsT"][2] = {} +defs["igBeginPopupContextWindow"][1]["argsT"][2]["name"] = "popup_flags" +defs["igBeginPopupContextWindow"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igBeginPopupContextWindow"][1]["argsoriginal"] = "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)" +defs["igBeginPopupContextWindow"][1]["call_args"] = "(str_id,popup_flags)" +defs["igBeginPopupContextWindow"][1]["cimguiname"] = "igBeginPopupContextWindow" +defs["igBeginPopupContextWindow"][1]["defaults"] = {} +defs["igBeginPopupContextWindow"][1]["defaults"]["popup_flags"] = "1" +defs["igBeginPopupContextWindow"][1]["defaults"]["str_id"] = "NULL" +defs["igBeginPopupContextWindow"][1]["funcname"] = "BeginPopupContextWindow" +defs["igBeginPopupContextWindow"][1]["location"] = "imgui:707" +defs["igBeginPopupContextWindow"][1]["namespace"] = "ImGui" +defs["igBeginPopupContextWindow"][1]["ov_cimguiname"] = "igBeginPopupContextWindow" +defs["igBeginPopupContextWindow"][1]["ret"] = "bool" +defs["igBeginPopupContextWindow"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igBeginPopupContextWindow"][1]["stname"] = "" +defs["igBeginPopupContextWindow"]["(const char*,ImGuiPopupFlags)"] = defs["igBeginPopupContextWindow"][1] +defs["igBeginPopupModal"] = {} +defs["igBeginPopupModal"][1] = {} +defs["igBeginPopupModal"][1]["args"] = "(const char* name,bool* p_open,ImGuiWindowFlags flags)" +defs["igBeginPopupModal"][1]["argsT"] = {} +defs["igBeginPopupModal"][1]["argsT"][1] = {} +defs["igBeginPopupModal"][1]["argsT"][1]["name"] = "name" +defs["igBeginPopupModal"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginPopupModal"][1]["argsT"][2] = {} +defs["igBeginPopupModal"][1]["argsT"][2]["name"] = "p_open" +defs["igBeginPopupModal"][1]["argsT"][2]["type"] = "bool*" +defs["igBeginPopupModal"][1]["argsT"][3] = {} +defs["igBeginPopupModal"][1]["argsT"][3]["name"] = "flags" +defs["igBeginPopupModal"][1]["argsT"][3]["type"] = "ImGuiWindowFlags" +defs["igBeginPopupModal"][1]["argsoriginal"] = "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)" +defs["igBeginPopupModal"][1]["call_args"] = "(name,p_open,flags)" +defs["igBeginPopupModal"][1]["cimguiname"] = "igBeginPopupModal" +defs["igBeginPopupModal"][1]["defaults"] = {} +defs["igBeginPopupModal"][1]["defaults"]["flags"] = "0" +defs["igBeginPopupModal"][1]["defaults"]["p_open"] = "NULL" +defs["igBeginPopupModal"][1]["funcname"] = "BeginPopupModal" +defs["igBeginPopupModal"][1]["location"] = "imgui:685" +defs["igBeginPopupModal"][1]["namespace"] = "ImGui" +defs["igBeginPopupModal"][1]["ov_cimguiname"] = "igBeginPopupModal" +defs["igBeginPopupModal"][1]["ret"] = "bool" +defs["igBeginPopupModal"][1]["signature"] = "(const char*,bool*,ImGuiWindowFlags)" +defs["igBeginPopupModal"][1]["stname"] = "" +defs["igBeginPopupModal"]["(const char*,bool*,ImGuiWindowFlags)"] = defs["igBeginPopupModal"][1] +defs["igBeginTabBar"] = {} +defs["igBeginTabBar"][1] = {} +defs["igBeginTabBar"][1]["args"] = "(const char* str_id,ImGuiTabBarFlags flags)" +defs["igBeginTabBar"][1]["argsT"] = {} +defs["igBeginTabBar"][1]["argsT"][1] = {} +defs["igBeginTabBar"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginTabBar"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginTabBar"][1]["argsT"][2] = {} +defs["igBeginTabBar"][1]["argsT"][2]["name"] = "flags" +defs["igBeginTabBar"][1]["argsT"][2]["type"] = "ImGuiTabBarFlags" +defs["igBeginTabBar"][1]["argsoriginal"] = "(const char* str_id,ImGuiTabBarFlags flags=0)" +defs["igBeginTabBar"][1]["call_args"] = "(str_id,flags)" +defs["igBeginTabBar"][1]["cimguiname"] = "igBeginTabBar" +defs["igBeginTabBar"][1]["defaults"] = {} +defs["igBeginTabBar"][1]["defaults"]["flags"] = "0" +defs["igBeginTabBar"][1]["funcname"] = "BeginTabBar" +defs["igBeginTabBar"][1]["location"] = "imgui:785" +defs["igBeginTabBar"][1]["namespace"] = "ImGui" +defs["igBeginTabBar"][1]["ov_cimguiname"] = "igBeginTabBar" +defs["igBeginTabBar"][1]["ret"] = "bool" +defs["igBeginTabBar"][1]["signature"] = "(const char*,ImGuiTabBarFlags)" +defs["igBeginTabBar"][1]["stname"] = "" +defs["igBeginTabBar"]["(const char*,ImGuiTabBarFlags)"] = defs["igBeginTabBar"][1] +defs["igBeginTabItem"] = {} +defs["igBeginTabItem"][1] = {} +defs["igBeginTabItem"][1]["args"] = "(const char* label,bool* p_open,ImGuiTabItemFlags flags)" +defs["igBeginTabItem"][1]["argsT"] = {} +defs["igBeginTabItem"][1]["argsT"][1] = {} +defs["igBeginTabItem"][1]["argsT"][1]["name"] = "label" +defs["igBeginTabItem"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginTabItem"][1]["argsT"][2] = {} +defs["igBeginTabItem"][1]["argsT"][2]["name"] = "p_open" +defs["igBeginTabItem"][1]["argsT"][2]["type"] = "bool*" +defs["igBeginTabItem"][1]["argsT"][3] = {} +defs["igBeginTabItem"][1]["argsT"][3]["name"] = "flags" +defs["igBeginTabItem"][1]["argsT"][3]["type"] = "ImGuiTabItemFlags" +defs["igBeginTabItem"][1]["argsoriginal"] = "(const char* label,bool* p_open=((void*)0),ImGuiTabItemFlags flags=0)" +defs["igBeginTabItem"][1]["call_args"] = "(label,p_open,flags)" +defs["igBeginTabItem"][1]["cimguiname"] = "igBeginTabItem" +defs["igBeginTabItem"][1]["defaults"] = {} +defs["igBeginTabItem"][1]["defaults"]["flags"] = "0" +defs["igBeginTabItem"][1]["defaults"]["p_open"] = "NULL" +defs["igBeginTabItem"][1]["funcname"] = "BeginTabItem" +defs["igBeginTabItem"][1]["location"] = "imgui:787" +defs["igBeginTabItem"][1]["namespace"] = "ImGui" +defs["igBeginTabItem"][1]["ov_cimguiname"] = "igBeginTabItem" +defs["igBeginTabItem"][1]["ret"] = "bool" +defs["igBeginTabItem"][1]["signature"] = "(const char*,bool*,ImGuiTabItemFlags)" +defs["igBeginTabItem"][1]["stname"] = "" +defs["igBeginTabItem"]["(const char*,bool*,ImGuiTabItemFlags)"] = defs["igBeginTabItem"][1] +defs["igBeginTable"] = {} +defs["igBeginTable"][1] = {} +defs["igBeginTable"][1]["args"] = "(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width)" +defs["igBeginTable"][1]["argsT"] = {} +defs["igBeginTable"][1]["argsT"][1] = {} +defs["igBeginTable"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginTable"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginTable"][1]["argsT"][2] = {} +defs["igBeginTable"][1]["argsT"][2]["name"] = "column" +defs["igBeginTable"][1]["argsT"][2]["type"] = "int" +defs["igBeginTable"][1]["argsT"][3] = {} +defs["igBeginTable"][1]["argsT"][3]["name"] = "flags" +defs["igBeginTable"][1]["argsT"][3]["type"] = "ImGuiTableFlags" +defs["igBeginTable"][1]["argsT"][4] = {} +defs["igBeginTable"][1]["argsT"][4]["name"] = "outer_size" +defs["igBeginTable"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igBeginTable"][1]["argsT"][5] = {} +defs["igBeginTable"][1]["argsT"][5]["name"] = "inner_width" +defs["igBeginTable"][1]["argsT"][5]["type"] = "float" +defs["igBeginTable"][1]["argsoriginal"] = "(const char* str_id,int column,ImGuiTableFlags flags=0,const ImVec2& outer_size=ImVec2(0.0f,0.0f),float inner_width=0.0f)" +defs["igBeginTable"][1]["call_args"] = "(str_id,column,flags,outer_size,inner_width)" +defs["igBeginTable"][1]["cimguiname"] = "igBeginTable" +defs["igBeginTable"][1]["defaults"] = {} +defs["igBeginTable"][1]["defaults"]["flags"] = "0" +defs["igBeginTable"][1]["defaults"]["inner_width"] = "0.0f" +defs["igBeginTable"][1]["defaults"]["outer_size"] = "ImVec2(0.0f,0.0f)" +defs["igBeginTable"][1]["funcname"] = "BeginTable" +defs["igBeginTable"][1]["location"] = "imgui:739" +defs["igBeginTable"][1]["namespace"] = "ImGui" +defs["igBeginTable"][1]["ov_cimguiname"] = "igBeginTable" +defs["igBeginTable"][1]["ret"] = "bool" +defs["igBeginTable"][1]["signature"] = "(const char*,int,ImGuiTableFlags,const ImVec2,float)" +defs["igBeginTable"][1]["stname"] = "" +defs["igBeginTable"]["(const char*,int,ImGuiTableFlags,const ImVec2,float)"] = defs["igBeginTable"][1] +defs["igBeginTooltip"] = {} +defs["igBeginTooltip"][1] = {} +defs["igBeginTooltip"][1]["args"] = "()" +defs["igBeginTooltip"][1]["argsT"] = {} +defs["igBeginTooltip"][1]["argsoriginal"] = "()" +defs["igBeginTooltip"][1]["call_args"] = "()" +defs["igBeginTooltip"][1]["cimguiname"] = "igBeginTooltip" +defs["igBeginTooltip"][1]["defaults"] = {} +defs["igBeginTooltip"][1]["funcname"] = "BeginTooltip" +defs["igBeginTooltip"][1]["location"] = "imgui:667" +defs["igBeginTooltip"][1]["namespace"] = "ImGui" +defs["igBeginTooltip"][1]["ov_cimguiname"] = "igBeginTooltip" +defs["igBeginTooltip"][1]["ret"] = "void" +defs["igBeginTooltip"][1]["signature"] = "()" +defs["igBeginTooltip"][1]["stname"] = "" +defs["igBeginTooltip"]["()"] = defs["igBeginTooltip"][1] +defs["igBullet"] = {} +defs["igBullet"][1] = {} +defs["igBullet"][1]["args"] = "()" +defs["igBullet"][1]["argsT"] = {} +defs["igBullet"][1]["argsoriginal"] = "()" +defs["igBullet"][1]["call_args"] = "()" +defs["igBullet"][1]["cimguiname"] = "igBullet" +defs["igBullet"][1]["defaults"] = {} +defs["igBullet"][1]["funcname"] = "Bullet" +defs["igBullet"][1]["location"] = "imgui:510" +defs["igBullet"][1]["namespace"] = "ImGui" +defs["igBullet"][1]["ov_cimguiname"] = "igBullet" +defs["igBullet"][1]["ret"] = "void" +defs["igBullet"][1]["signature"] = "()" +defs["igBullet"][1]["stname"] = "" +defs["igBullet"]["()"] = defs["igBullet"][1] +defs["igBulletText"] = {} +defs["igBulletText"][1] = {} +defs["igBulletText"][1]["args"] = "(const char* fmt,...)" +defs["igBulletText"][1]["argsT"] = {} +defs["igBulletText"][1]["argsT"][1] = {} +defs["igBulletText"][1]["argsT"][1]["name"] = "fmt" +defs["igBulletText"][1]["argsT"][1]["type"] = "const char*" +defs["igBulletText"][1]["argsT"][2] = {} +defs["igBulletText"][1]["argsT"][2]["name"] = "..." +defs["igBulletText"][1]["argsT"][2]["type"] = "..." +defs["igBulletText"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igBulletText"][1]["call_args"] = "(fmt,...)" +defs["igBulletText"][1]["cimguiname"] = "igBulletText" +defs["igBulletText"][1]["defaults"] = {} +defs["igBulletText"][1]["funcname"] = "BulletText" +defs["igBulletText"][1]["isvararg"] = "...)" +defs["igBulletText"][1]["location"] = "imgui:494" +defs["igBulletText"][1]["namespace"] = "ImGui" +defs["igBulletText"][1]["ov_cimguiname"] = "igBulletText" +defs["igBulletText"][1]["ret"] = "void" +defs["igBulletText"][1]["signature"] = "(const char*,...)" +defs["igBulletText"][1]["stname"] = "" +defs["igBulletText"]["(const char*,...)"] = defs["igBulletText"][1] +defs["igBulletTextV"] = {} +defs["igBulletTextV"][1] = {} +defs["igBulletTextV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igBulletTextV"][1]["argsT"] = {} +defs["igBulletTextV"][1]["argsT"][1] = {} +defs["igBulletTextV"][1]["argsT"][1]["name"] = "fmt" +defs["igBulletTextV"][1]["argsT"][1]["type"] = "const char*" +defs["igBulletTextV"][1]["argsT"][2] = {} +defs["igBulletTextV"][1]["argsT"][2]["name"] = "args" +defs["igBulletTextV"][1]["argsT"][2]["type"] = "va_list" +defs["igBulletTextV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igBulletTextV"][1]["call_args"] = "(fmt,args)" +defs["igBulletTextV"][1]["cimguiname"] = "igBulletTextV" +defs["igBulletTextV"][1]["defaults"] = {} +defs["igBulletTextV"][1]["funcname"] = "BulletTextV" +defs["igBulletTextV"][1]["location"] = "imgui:495" +defs["igBulletTextV"][1]["namespace"] = "ImGui" +defs["igBulletTextV"][1]["ov_cimguiname"] = "igBulletTextV" +defs["igBulletTextV"][1]["ret"] = "void" +defs["igBulletTextV"][1]["signature"] = "(const char*,va_list)" +defs["igBulletTextV"][1]["stname"] = "" +defs["igBulletTextV"]["(const char*,va_list)"] = defs["igBulletTextV"][1] +defs["igButton"] = {} +defs["igButton"][1] = {} +defs["igButton"][1]["args"] = "(const char* label,const ImVec2 size)" +defs["igButton"][1]["argsT"] = {} +defs["igButton"][1]["argsT"][1] = {} +defs["igButton"][1]["argsT"][1]["name"] = "label" +defs["igButton"][1]["argsT"][1]["type"] = "const char*" +defs["igButton"][1]["argsT"][2] = {} +defs["igButton"][1]["argsT"][2]["name"] = "size" +defs["igButton"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igButton"][1]["argsoriginal"] = "(const char* label,const ImVec2& size=ImVec2(0,0))" +defs["igButton"][1]["call_args"] = "(label,size)" +defs["igButton"][1]["cimguiname"] = "igButton" +defs["igButton"][1]["defaults"] = {} +defs["igButton"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igButton"][1]["funcname"] = "Button" +defs["igButton"][1]["location"] = "imgui:500" +defs["igButton"][1]["namespace"] = "ImGui" +defs["igButton"][1]["ov_cimguiname"] = "igButton" +defs["igButton"][1]["ret"] = "bool" +defs["igButton"][1]["signature"] = "(const char*,const ImVec2)" +defs["igButton"][1]["stname"] = "" +defs["igButton"]["(const char*,const ImVec2)"] = defs["igButton"][1] +defs["igCalcItemWidth"] = {} +defs["igCalcItemWidth"][1] = {} +defs["igCalcItemWidth"][1]["args"] = "()" +defs["igCalcItemWidth"][1]["argsT"] = {} +defs["igCalcItemWidth"][1]["argsoriginal"] = "()" +defs["igCalcItemWidth"][1]["call_args"] = "()" +defs["igCalcItemWidth"][1]["cimguiname"] = "igCalcItemWidth" +defs["igCalcItemWidth"][1]["defaults"] = {} +defs["igCalcItemWidth"][1]["funcname"] = "CalcItemWidth" +defs["igCalcItemWidth"][1]["location"] = "imgui:417" +defs["igCalcItemWidth"][1]["namespace"] = "ImGui" +defs["igCalcItemWidth"][1]["ov_cimguiname"] = "igCalcItemWidth" +defs["igCalcItemWidth"][1]["ret"] = "float" +defs["igCalcItemWidth"][1]["signature"] = "()" +defs["igCalcItemWidth"][1]["stname"] = "" +defs["igCalcItemWidth"]["()"] = defs["igCalcItemWidth"][1] +defs["igCalcTextSize"] = {} +defs["igCalcTextSize"][1] = {} +defs["igCalcTextSize"][1]["args"] = "(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)" +defs["igCalcTextSize"][1]["argsT"] = {} +defs["igCalcTextSize"][1]["argsT"][1] = {} +defs["igCalcTextSize"][1]["argsT"][1]["name"] = "pOut" +defs["igCalcTextSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igCalcTextSize"][1]["argsT"][2] = {} +defs["igCalcTextSize"][1]["argsT"][2]["name"] = "text" +defs["igCalcTextSize"][1]["argsT"][2]["type"] = "const char*" +defs["igCalcTextSize"][1]["argsT"][3] = {} +defs["igCalcTextSize"][1]["argsT"][3]["name"] = "text_end" +defs["igCalcTextSize"][1]["argsT"][3]["type"] = "const char*" +defs["igCalcTextSize"][1]["argsT"][4] = {} +defs["igCalcTextSize"][1]["argsT"][4]["name"] = "hide_text_after_double_hash" +defs["igCalcTextSize"][1]["argsT"][4]["type"] = "bool" +defs["igCalcTextSize"][1]["argsT"][5] = {} +defs["igCalcTextSize"][1]["argsT"][5]["name"] = "wrap_width" +defs["igCalcTextSize"][1]["argsT"][5]["type"] = "float" +defs["igCalcTextSize"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0),bool hide_text_after_double_hash=false,float wrap_width=-1.0f)" +defs["igCalcTextSize"][1]["call_args"] = "(text,text_end,hide_text_after_double_hash,wrap_width)" +defs["igCalcTextSize"][1]["cimguiname"] = "igCalcTextSize" +defs["igCalcTextSize"][1]["defaults"] = {} +defs["igCalcTextSize"][1]["defaults"]["hide_text_after_double_hash"] = "false" +defs["igCalcTextSize"][1]["defaults"]["text_end"] = "NULL" +defs["igCalcTextSize"][1]["defaults"]["wrap_width"] = "-1.0f" +defs["igCalcTextSize"][1]["funcname"] = "CalcTextSize" +defs["igCalcTextSize"][1]["location"] = "imgui:876" +defs["igCalcTextSize"][1]["namespace"] = "ImGui" +defs["igCalcTextSize"][1]["nonUDT"] = 1 +defs["igCalcTextSize"][1]["ov_cimguiname"] = "igCalcTextSize" +defs["igCalcTextSize"][1]["ret"] = "void" +defs["igCalcTextSize"][1]["signature"] = "(const char*,const char*,bool,float)" +defs["igCalcTextSize"][1]["stname"] = "" +defs["igCalcTextSize"]["(const char*,const char*,bool,float)"] = defs["igCalcTextSize"][1] +defs["igCheckbox"] = {} +defs["igCheckbox"][1] = {} +defs["igCheckbox"][1]["args"] = "(const char* label,bool* v)" +defs["igCheckbox"][1]["argsT"] = {} +defs["igCheckbox"][1]["argsT"][1] = {} +defs["igCheckbox"][1]["argsT"][1]["name"] = "label" +defs["igCheckbox"][1]["argsT"][1]["type"] = "const char*" +defs["igCheckbox"][1]["argsT"][2] = {} +defs["igCheckbox"][1]["argsT"][2]["name"] = "v" +defs["igCheckbox"][1]["argsT"][2]["type"] = "bool*" +defs["igCheckbox"][1]["argsoriginal"] = "(const char* label,bool* v)" +defs["igCheckbox"][1]["call_args"] = "(label,v)" +defs["igCheckbox"][1]["cimguiname"] = "igCheckbox" +defs["igCheckbox"][1]["defaults"] = {} +defs["igCheckbox"][1]["funcname"] = "Checkbox" +defs["igCheckbox"][1]["location"] = "imgui:504" +defs["igCheckbox"][1]["namespace"] = "ImGui" +defs["igCheckbox"][1]["ov_cimguiname"] = "igCheckbox" +defs["igCheckbox"][1]["ret"] = "bool" +defs["igCheckbox"][1]["signature"] = "(const char*,bool*)" +defs["igCheckbox"][1]["stname"] = "" +defs["igCheckbox"]["(const char*,bool*)"] = defs["igCheckbox"][1] +defs["igCheckboxFlags"] = {} +defs["igCheckboxFlags"][1] = {} +defs["igCheckboxFlags"][1]["args"] = "(const char* label,int* flags,int flags_value)" +defs["igCheckboxFlags"][1]["argsT"] = {} +defs["igCheckboxFlags"][1]["argsT"][1] = {} +defs["igCheckboxFlags"][1]["argsT"][1]["name"] = "label" +defs["igCheckboxFlags"][1]["argsT"][1]["type"] = "const char*" +defs["igCheckboxFlags"][1]["argsT"][2] = {} +defs["igCheckboxFlags"][1]["argsT"][2]["name"] = "flags" +defs["igCheckboxFlags"][1]["argsT"][2]["type"] = "int*" +defs["igCheckboxFlags"][1]["argsT"][3] = {} +defs["igCheckboxFlags"][1]["argsT"][3]["name"] = "flags_value" +defs["igCheckboxFlags"][1]["argsT"][3]["type"] = "int" +defs["igCheckboxFlags"][1]["argsoriginal"] = "(const char* label,int* flags,int flags_value)" +defs["igCheckboxFlags"][1]["call_args"] = "(label,flags,flags_value)" +defs["igCheckboxFlags"][1]["cimguiname"] = "igCheckboxFlags" +defs["igCheckboxFlags"][1]["defaults"] = {} +defs["igCheckboxFlags"][1]["funcname"] = "CheckboxFlags" +defs["igCheckboxFlags"][1]["location"] = "imgui:505" +defs["igCheckboxFlags"][1]["namespace"] = "ImGui" +defs["igCheckboxFlags"][1]["ov_cimguiname"] = "igCheckboxFlags_IntPtr" +defs["igCheckboxFlags"][1]["ret"] = "bool" +defs["igCheckboxFlags"][1]["signature"] = "(const char*,int*,int)" +defs["igCheckboxFlags"][1]["stname"] = "" +defs["igCheckboxFlags"][2] = {} +defs["igCheckboxFlags"][2]["args"] = "(const char* label,unsigned int* flags,unsigned int flags_value)" +defs["igCheckboxFlags"][2]["argsT"] = {} +defs["igCheckboxFlags"][2]["argsT"][1] = {} +defs["igCheckboxFlags"][2]["argsT"][1]["name"] = "label" +defs["igCheckboxFlags"][2]["argsT"][1]["type"] = "const char*" +defs["igCheckboxFlags"][2]["argsT"][2] = {} +defs["igCheckboxFlags"][2]["argsT"][2]["name"] = "flags" +defs["igCheckboxFlags"][2]["argsT"][2]["type"] = "unsigned int*" +defs["igCheckboxFlags"][2]["argsT"][3] = {} +defs["igCheckboxFlags"][2]["argsT"][3]["name"] = "flags_value" +defs["igCheckboxFlags"][2]["argsT"][3]["type"] = "unsigned int" +defs["igCheckboxFlags"][2]["argsoriginal"] = "(const char* label,unsigned int* flags,unsigned int flags_value)" +defs["igCheckboxFlags"][2]["call_args"] = "(label,flags,flags_value)" +defs["igCheckboxFlags"][2]["cimguiname"] = "igCheckboxFlags" +defs["igCheckboxFlags"][2]["defaults"] = {} +defs["igCheckboxFlags"][2]["funcname"] = "CheckboxFlags" +defs["igCheckboxFlags"][2]["location"] = "imgui:506" +defs["igCheckboxFlags"][2]["namespace"] = "ImGui" +defs["igCheckboxFlags"][2]["ov_cimguiname"] = "igCheckboxFlags_UintPtr" +defs["igCheckboxFlags"][2]["ret"] = "bool" +defs["igCheckboxFlags"][2]["signature"] = "(const char*,unsigned int*,unsigned int)" +defs["igCheckboxFlags"][2]["stname"] = "" +defs["igCheckboxFlags"]["(const char*,int*,int)"] = defs["igCheckboxFlags"][1] +defs["igCheckboxFlags"]["(const char*,unsigned int*,unsigned int)"] = defs["igCheckboxFlags"][2] +defs["igCloseCurrentPopup"] = {} +defs["igCloseCurrentPopup"][1] = {} +defs["igCloseCurrentPopup"][1]["args"] = "()" +defs["igCloseCurrentPopup"][1]["argsT"] = {} +defs["igCloseCurrentPopup"][1]["argsoriginal"] = "()" +defs["igCloseCurrentPopup"][1]["call_args"] = "()" +defs["igCloseCurrentPopup"][1]["cimguiname"] = "igCloseCurrentPopup" +defs["igCloseCurrentPopup"][1]["defaults"] = {} +defs["igCloseCurrentPopup"][1]["funcname"] = "CloseCurrentPopup" +defs["igCloseCurrentPopup"][1]["location"] = "imgui:699" +defs["igCloseCurrentPopup"][1]["namespace"] = "ImGui" +defs["igCloseCurrentPopup"][1]["ov_cimguiname"] = "igCloseCurrentPopup" +defs["igCloseCurrentPopup"][1]["ret"] = "void" +defs["igCloseCurrentPopup"][1]["signature"] = "()" +defs["igCloseCurrentPopup"][1]["stname"] = "" +defs["igCloseCurrentPopup"]["()"] = defs["igCloseCurrentPopup"][1] +defs["igCollapsingHeader"] = {} +defs["igCollapsingHeader"][1] = {} +defs["igCollapsingHeader"][1]["args"] = "(const char* label,ImGuiTreeNodeFlags flags)" +defs["igCollapsingHeader"][1]["argsT"] = {} +defs["igCollapsingHeader"][1]["argsT"][1] = {} +defs["igCollapsingHeader"][1]["argsT"][1]["name"] = "label" +defs["igCollapsingHeader"][1]["argsT"][1]["type"] = "const char*" +defs["igCollapsingHeader"][1]["argsT"][2] = {} +defs["igCollapsingHeader"][1]["argsT"][2]["name"] = "flags" +defs["igCollapsingHeader"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igCollapsingHeader"][1]["argsoriginal"] = "(const char* label,ImGuiTreeNodeFlags flags=0)" +defs["igCollapsingHeader"][1]["call_args"] = "(label,flags)" +defs["igCollapsingHeader"][1]["cimguiname"] = "igCollapsingHeader" +defs["igCollapsingHeader"][1]["defaults"] = {} +defs["igCollapsingHeader"][1]["defaults"]["flags"] = "0" +defs["igCollapsingHeader"][1]["funcname"] = "CollapsingHeader" +defs["igCollapsingHeader"][1]["location"] = "imgui:616" +defs["igCollapsingHeader"][1]["namespace"] = "ImGui" +defs["igCollapsingHeader"][1]["ov_cimguiname"] = "igCollapsingHeader_TreeNodeFlags" +defs["igCollapsingHeader"][1]["ret"] = "bool" +defs["igCollapsingHeader"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags)" +defs["igCollapsingHeader"][1]["stname"] = "" +defs["igCollapsingHeader"][2] = {} +defs["igCollapsingHeader"][2]["args"] = "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags)" +defs["igCollapsingHeader"][2]["argsT"] = {} +defs["igCollapsingHeader"][2]["argsT"][1] = {} +defs["igCollapsingHeader"][2]["argsT"][1]["name"] = "label" +defs["igCollapsingHeader"][2]["argsT"][1]["type"] = "const char*" +defs["igCollapsingHeader"][2]["argsT"][2] = {} +defs["igCollapsingHeader"][2]["argsT"][2]["name"] = "p_visible" +defs["igCollapsingHeader"][2]["argsT"][2]["type"] = "bool*" +defs["igCollapsingHeader"][2]["argsT"][3] = {} +defs["igCollapsingHeader"][2]["argsT"][3]["name"] = "flags" +defs["igCollapsingHeader"][2]["argsT"][3]["type"] = "ImGuiTreeNodeFlags" +defs["igCollapsingHeader"][2]["argsoriginal"] = "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags=0)" +defs["igCollapsingHeader"][2]["call_args"] = "(label,p_visible,flags)" +defs["igCollapsingHeader"][2]["cimguiname"] = "igCollapsingHeader" +defs["igCollapsingHeader"][2]["defaults"] = {} +defs["igCollapsingHeader"][2]["defaults"]["flags"] = "0" +defs["igCollapsingHeader"][2]["funcname"] = "CollapsingHeader" +defs["igCollapsingHeader"][2]["location"] = "imgui:617" +defs["igCollapsingHeader"][2]["namespace"] = "ImGui" +defs["igCollapsingHeader"][2]["ov_cimguiname"] = "igCollapsingHeader_BoolPtr" +defs["igCollapsingHeader"][2]["ret"] = "bool" +defs["igCollapsingHeader"][2]["signature"] = "(const char*,bool*,ImGuiTreeNodeFlags)" +defs["igCollapsingHeader"][2]["stname"] = "" +defs["igCollapsingHeader"]["(const char*,ImGuiTreeNodeFlags)"] = defs["igCollapsingHeader"][1] +defs["igCollapsingHeader"]["(const char*,bool*,ImGuiTreeNodeFlags)"] = defs["igCollapsingHeader"][2] +defs["igColorButton"] = {} +defs["igColorButton"][1] = {} +defs["igColorButton"][1]["args"] = "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)" +defs["igColorButton"][1]["argsT"] = {} +defs["igColorButton"][1]["argsT"][1] = {} +defs["igColorButton"][1]["argsT"][1]["name"] = "desc_id" +defs["igColorButton"][1]["argsT"][1]["type"] = "const char*" +defs["igColorButton"][1]["argsT"][2] = {} +defs["igColorButton"][1]["argsT"][2]["name"] = "col" +defs["igColorButton"][1]["argsT"][2]["type"] = "const ImVec4" +defs["igColorButton"][1]["argsT"][3] = {} +defs["igColorButton"][1]["argsT"][3]["name"] = "flags" +defs["igColorButton"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorButton"][1]["argsT"][4] = {} +defs["igColorButton"][1]["argsT"][4]["name"] = "size" +defs["igColorButton"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igColorButton"][1]["argsoriginal"] = "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))" +defs["igColorButton"][1]["call_args"] = "(desc_id,col,flags,size)" +defs["igColorButton"][1]["cimguiname"] = "igColorButton" +defs["igColorButton"][1]["defaults"] = {} +defs["igColorButton"][1]["defaults"]["flags"] = "0" +defs["igColorButton"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igColorButton"][1]["funcname"] = "ColorButton" +defs["igColorButton"][1]["location"] = "imgui:597" +defs["igColorButton"][1]["namespace"] = "ImGui" +defs["igColorButton"][1]["ov_cimguiname"] = "igColorButton" +defs["igColorButton"][1]["ret"] = "bool" +defs["igColorButton"][1]["signature"] = "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)" +defs["igColorButton"][1]["stname"] = "" +defs["igColorButton"]["(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)"] = defs["igColorButton"][1] +defs["igColorConvertFloat4ToU32"] = {} +defs["igColorConvertFloat4ToU32"][1] = {} +defs["igColorConvertFloat4ToU32"][1]["args"] = "(const ImVec4 in)" +defs["igColorConvertFloat4ToU32"][1]["argsT"] = {} +defs["igColorConvertFloat4ToU32"][1]["argsT"][1] = {} +defs["igColorConvertFloat4ToU32"][1]["argsT"][1]["name"] = "in" +defs["igColorConvertFloat4ToU32"][1]["argsT"][1]["type"] = "const ImVec4" +defs["igColorConvertFloat4ToU32"][1]["argsoriginal"] = "(const ImVec4& in)" +defs["igColorConvertFloat4ToU32"][1]["call_args"] = "(in)" +defs["igColorConvertFloat4ToU32"][1]["cimguiname"] = "igColorConvertFloat4ToU32" +defs["igColorConvertFloat4ToU32"][1]["defaults"] = {} +defs["igColorConvertFloat4ToU32"][1]["funcname"] = "ColorConvertFloat4ToU32" +defs["igColorConvertFloat4ToU32"][1]["location"] = "imgui:880" +defs["igColorConvertFloat4ToU32"][1]["namespace"] = "ImGui" +defs["igColorConvertFloat4ToU32"][1]["ov_cimguiname"] = "igColorConvertFloat4ToU32" +defs["igColorConvertFloat4ToU32"][1]["ret"] = "ImU32" +defs["igColorConvertFloat4ToU32"][1]["signature"] = "(const ImVec4)" +defs["igColorConvertFloat4ToU32"][1]["stname"] = "" +defs["igColorConvertFloat4ToU32"]["(const ImVec4)"] = defs["igColorConvertFloat4ToU32"][1] +defs["igColorConvertHSVtoRGB"] = {} +defs["igColorConvertHSVtoRGB"][1] = {} +defs["igColorConvertHSVtoRGB"][1]["args"] = "(float h,float s,float v,float* out_r,float* out_g,float* out_b)" +defs["igColorConvertHSVtoRGB"][1]["argsT"] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][1] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][1]["name"] = "h" +defs["igColorConvertHSVtoRGB"][1]["argsT"][1]["type"] = "float" +defs["igColorConvertHSVtoRGB"][1]["argsT"][2] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][2]["name"] = "s" +defs["igColorConvertHSVtoRGB"][1]["argsT"][2]["type"] = "float" +defs["igColorConvertHSVtoRGB"][1]["argsT"][3] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][3]["name"] = "v" +defs["igColorConvertHSVtoRGB"][1]["argsT"][3]["type"] = "float" +defs["igColorConvertHSVtoRGB"][1]["argsT"][4] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][4]["name"] = "out_r" +defs["igColorConvertHSVtoRGB"][1]["argsT"][4]["reftoptr"] = true +defs["igColorConvertHSVtoRGB"][1]["argsT"][4]["type"] = "float*" +defs["igColorConvertHSVtoRGB"][1]["argsT"][5] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][5]["name"] = "out_g" +defs["igColorConvertHSVtoRGB"][1]["argsT"][5]["reftoptr"] = true +defs["igColorConvertHSVtoRGB"][1]["argsT"][5]["type"] = "float*" +defs["igColorConvertHSVtoRGB"][1]["argsT"][6] = {} +defs["igColorConvertHSVtoRGB"][1]["argsT"][6]["name"] = "out_b" +defs["igColorConvertHSVtoRGB"][1]["argsT"][6]["reftoptr"] = true +defs["igColorConvertHSVtoRGB"][1]["argsT"][6]["type"] = "float*" +defs["igColorConvertHSVtoRGB"][1]["argsoriginal"] = "(float h,float s,float v,float& out_r,float& out_g,float& out_b)" +defs["igColorConvertHSVtoRGB"][1]["call_args"] = "(h,s,v,*out_r,*out_g,*out_b)" +defs["igColorConvertHSVtoRGB"][1]["cimguiname"] = "igColorConvertHSVtoRGB" +defs["igColorConvertHSVtoRGB"][1]["defaults"] = {} +defs["igColorConvertHSVtoRGB"][1]["funcname"] = "ColorConvertHSVtoRGB" +defs["igColorConvertHSVtoRGB"][1]["location"] = "imgui:882" +defs["igColorConvertHSVtoRGB"][1]["namespace"] = "ImGui" +defs["igColorConvertHSVtoRGB"][1]["ov_cimguiname"] = "igColorConvertHSVtoRGB" +defs["igColorConvertHSVtoRGB"][1]["ret"] = "void" +defs["igColorConvertHSVtoRGB"][1]["signature"] = "(float,float,float,float*,float*,float*)" +defs["igColorConvertHSVtoRGB"][1]["stname"] = "" +defs["igColorConvertHSVtoRGB"]["(float,float,float,float*,float*,float*)"] = defs["igColorConvertHSVtoRGB"][1] +defs["igColorConvertRGBtoHSV"] = {} +defs["igColorConvertRGBtoHSV"][1] = {} +defs["igColorConvertRGBtoHSV"][1]["args"] = "(float r,float g,float b,float* out_h,float* out_s,float* out_v)" +defs["igColorConvertRGBtoHSV"][1]["argsT"] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][1] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][1]["name"] = "r" +defs["igColorConvertRGBtoHSV"][1]["argsT"][1]["type"] = "float" +defs["igColorConvertRGBtoHSV"][1]["argsT"][2] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][2]["name"] = "g" +defs["igColorConvertRGBtoHSV"][1]["argsT"][2]["type"] = "float" +defs["igColorConvertRGBtoHSV"][1]["argsT"][3] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][3]["name"] = "b" +defs["igColorConvertRGBtoHSV"][1]["argsT"][3]["type"] = "float" +defs["igColorConvertRGBtoHSV"][1]["argsT"][4] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][4]["name"] = "out_h" +defs["igColorConvertRGBtoHSV"][1]["argsT"][4]["reftoptr"] = true +defs["igColorConvertRGBtoHSV"][1]["argsT"][4]["type"] = "float*" +defs["igColorConvertRGBtoHSV"][1]["argsT"][5] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][5]["name"] = "out_s" +defs["igColorConvertRGBtoHSV"][1]["argsT"][5]["reftoptr"] = true +defs["igColorConvertRGBtoHSV"][1]["argsT"][5]["type"] = "float*" +defs["igColorConvertRGBtoHSV"][1]["argsT"][6] = {} +defs["igColorConvertRGBtoHSV"][1]["argsT"][6]["name"] = "out_v" +defs["igColorConvertRGBtoHSV"][1]["argsT"][6]["reftoptr"] = true +defs["igColorConvertRGBtoHSV"][1]["argsT"][6]["type"] = "float*" +defs["igColorConvertRGBtoHSV"][1]["argsoriginal"] = "(float r,float g,float b,float& out_h,float& out_s,float& out_v)" +defs["igColorConvertRGBtoHSV"][1]["call_args"] = "(r,g,b,*out_h,*out_s,*out_v)" +defs["igColorConvertRGBtoHSV"][1]["cimguiname"] = "igColorConvertRGBtoHSV" +defs["igColorConvertRGBtoHSV"][1]["defaults"] = {} +defs["igColorConvertRGBtoHSV"][1]["funcname"] = "ColorConvertRGBtoHSV" +defs["igColorConvertRGBtoHSV"][1]["location"] = "imgui:881" +defs["igColorConvertRGBtoHSV"][1]["namespace"] = "ImGui" +defs["igColorConvertRGBtoHSV"][1]["ov_cimguiname"] = "igColorConvertRGBtoHSV" +defs["igColorConvertRGBtoHSV"][1]["ret"] = "void" +defs["igColorConvertRGBtoHSV"][1]["signature"] = "(float,float,float,float*,float*,float*)" +defs["igColorConvertRGBtoHSV"][1]["stname"] = "" +defs["igColorConvertRGBtoHSV"]["(float,float,float,float*,float*,float*)"] = defs["igColorConvertRGBtoHSV"][1] +defs["igColorConvertU32ToFloat4"] = {} +defs["igColorConvertU32ToFloat4"][1] = {} +defs["igColorConvertU32ToFloat4"][1]["args"] = "(ImVec4 *pOut,ImU32 in)" +defs["igColorConvertU32ToFloat4"][1]["argsT"] = {} +defs["igColorConvertU32ToFloat4"][1]["argsT"][1] = {} +defs["igColorConvertU32ToFloat4"][1]["argsT"][1]["name"] = "pOut" +defs["igColorConvertU32ToFloat4"][1]["argsT"][1]["type"] = "ImVec4*" +defs["igColorConvertU32ToFloat4"][1]["argsT"][2] = {} +defs["igColorConvertU32ToFloat4"][1]["argsT"][2]["name"] = "in" +defs["igColorConvertU32ToFloat4"][1]["argsT"][2]["type"] = "ImU32" +defs["igColorConvertU32ToFloat4"][1]["argsoriginal"] = "(ImU32 in)" +defs["igColorConvertU32ToFloat4"][1]["call_args"] = "(in)" +defs["igColorConvertU32ToFloat4"][1]["cimguiname"] = "igColorConvertU32ToFloat4" +defs["igColorConvertU32ToFloat4"][1]["defaults"] = {} +defs["igColorConvertU32ToFloat4"][1]["funcname"] = "ColorConvertU32ToFloat4" +defs["igColorConvertU32ToFloat4"][1]["location"] = "imgui:879" +defs["igColorConvertU32ToFloat4"][1]["namespace"] = "ImGui" +defs["igColorConvertU32ToFloat4"][1]["nonUDT"] = 1 +defs["igColorConvertU32ToFloat4"][1]["ov_cimguiname"] = "igColorConvertU32ToFloat4" +defs["igColorConvertU32ToFloat4"][1]["ret"] = "void" +defs["igColorConvertU32ToFloat4"][1]["signature"] = "(ImU32)" +defs["igColorConvertU32ToFloat4"][1]["stname"] = "" +defs["igColorConvertU32ToFloat4"]["(ImU32)"] = defs["igColorConvertU32ToFloat4"][1] +defs["igColorEdit3"] = {} +defs["igColorEdit3"][1] = {} +defs["igColorEdit3"][1]["args"] = "(const char* label,float col[3],ImGuiColorEditFlags flags)" +defs["igColorEdit3"][1]["argsT"] = {} +defs["igColorEdit3"][1]["argsT"][1] = {} +defs["igColorEdit3"][1]["argsT"][1]["name"] = "label" +defs["igColorEdit3"][1]["argsT"][1]["type"] = "const char*" +defs["igColorEdit3"][1]["argsT"][2] = {} +defs["igColorEdit3"][1]["argsT"][2]["name"] = "col" +defs["igColorEdit3"][1]["argsT"][2]["type"] = "float[3]" +defs["igColorEdit3"][1]["argsT"][3] = {} +defs["igColorEdit3"][1]["argsT"][3]["name"] = "flags" +defs["igColorEdit3"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorEdit3"][1]["argsoriginal"] = "(const char* label,float col[3],ImGuiColorEditFlags flags=0)" +defs["igColorEdit3"][1]["call_args"] = "(label,col,flags)" +defs["igColorEdit3"][1]["cimguiname"] = "igColorEdit3" +defs["igColorEdit3"][1]["defaults"] = {} +defs["igColorEdit3"][1]["defaults"]["flags"] = "0" +defs["igColorEdit3"][1]["funcname"] = "ColorEdit3" +defs["igColorEdit3"][1]["location"] = "imgui:593" +defs["igColorEdit3"][1]["namespace"] = "ImGui" +defs["igColorEdit3"][1]["ov_cimguiname"] = "igColorEdit3" +defs["igColorEdit3"][1]["ret"] = "bool" +defs["igColorEdit3"][1]["signature"] = "(const char*,float[3],ImGuiColorEditFlags)" +defs["igColorEdit3"][1]["stname"] = "" +defs["igColorEdit3"]["(const char*,float[3],ImGuiColorEditFlags)"] = defs["igColorEdit3"][1] +defs["igColorEdit4"] = {} +defs["igColorEdit4"][1] = {} +defs["igColorEdit4"][1]["args"] = "(const char* label,float col[4],ImGuiColorEditFlags flags)" +defs["igColorEdit4"][1]["argsT"] = {} +defs["igColorEdit4"][1]["argsT"][1] = {} +defs["igColorEdit4"][1]["argsT"][1]["name"] = "label" +defs["igColorEdit4"][1]["argsT"][1]["type"] = "const char*" +defs["igColorEdit4"][1]["argsT"][2] = {} +defs["igColorEdit4"][1]["argsT"][2]["name"] = "col" +defs["igColorEdit4"][1]["argsT"][2]["type"] = "float[4]" +defs["igColorEdit4"][1]["argsT"][3] = {} +defs["igColorEdit4"][1]["argsT"][3]["name"] = "flags" +defs["igColorEdit4"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorEdit4"][1]["argsoriginal"] = "(const char* label,float col[4],ImGuiColorEditFlags flags=0)" +defs["igColorEdit4"][1]["call_args"] = "(label,col,flags)" +defs["igColorEdit4"][1]["cimguiname"] = "igColorEdit4" +defs["igColorEdit4"][1]["defaults"] = {} +defs["igColorEdit4"][1]["defaults"]["flags"] = "0" +defs["igColorEdit4"][1]["funcname"] = "ColorEdit4" +defs["igColorEdit4"][1]["location"] = "imgui:594" +defs["igColorEdit4"][1]["namespace"] = "ImGui" +defs["igColorEdit4"][1]["ov_cimguiname"] = "igColorEdit4" +defs["igColorEdit4"][1]["ret"] = "bool" +defs["igColorEdit4"][1]["signature"] = "(const char*,float[4],ImGuiColorEditFlags)" +defs["igColorEdit4"][1]["stname"] = "" +defs["igColorEdit4"]["(const char*,float[4],ImGuiColorEditFlags)"] = defs["igColorEdit4"][1] +defs["igColorPicker3"] = {} +defs["igColorPicker3"][1] = {} +defs["igColorPicker3"][1]["args"] = "(const char* label,float col[3],ImGuiColorEditFlags flags)" +defs["igColorPicker3"][1]["argsT"] = {} +defs["igColorPicker3"][1]["argsT"][1] = {} +defs["igColorPicker3"][1]["argsT"][1]["name"] = "label" +defs["igColorPicker3"][1]["argsT"][1]["type"] = "const char*" +defs["igColorPicker3"][1]["argsT"][2] = {} +defs["igColorPicker3"][1]["argsT"][2]["name"] = "col" +defs["igColorPicker3"][1]["argsT"][2]["type"] = "float[3]" +defs["igColorPicker3"][1]["argsT"][3] = {} +defs["igColorPicker3"][1]["argsT"][3]["name"] = "flags" +defs["igColorPicker3"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorPicker3"][1]["argsoriginal"] = "(const char* label,float col[3],ImGuiColorEditFlags flags=0)" +defs["igColorPicker3"][1]["call_args"] = "(label,col,flags)" +defs["igColorPicker3"][1]["cimguiname"] = "igColorPicker3" +defs["igColorPicker3"][1]["defaults"] = {} +defs["igColorPicker3"][1]["defaults"]["flags"] = "0" +defs["igColorPicker3"][1]["funcname"] = "ColorPicker3" +defs["igColorPicker3"][1]["location"] = "imgui:595" +defs["igColorPicker3"][1]["namespace"] = "ImGui" +defs["igColorPicker3"][1]["ov_cimguiname"] = "igColorPicker3" +defs["igColorPicker3"][1]["ret"] = "bool" +defs["igColorPicker3"][1]["signature"] = "(const char*,float[3],ImGuiColorEditFlags)" +defs["igColorPicker3"][1]["stname"] = "" +defs["igColorPicker3"]["(const char*,float[3],ImGuiColorEditFlags)"] = defs["igColorPicker3"][1] +defs["igColorPicker4"] = {} +defs["igColorPicker4"][1] = {} +defs["igColorPicker4"][1]["args"] = "(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col)" +defs["igColorPicker4"][1]["argsT"] = {} +defs["igColorPicker4"][1]["argsT"][1] = {} +defs["igColorPicker4"][1]["argsT"][1]["name"] = "label" +defs["igColorPicker4"][1]["argsT"][1]["type"] = "const char*" +defs["igColorPicker4"][1]["argsT"][2] = {} +defs["igColorPicker4"][1]["argsT"][2]["name"] = "col" +defs["igColorPicker4"][1]["argsT"][2]["type"] = "float[4]" +defs["igColorPicker4"][1]["argsT"][3] = {} +defs["igColorPicker4"][1]["argsT"][3]["name"] = "flags" +defs["igColorPicker4"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorPicker4"][1]["argsT"][4] = {} +defs["igColorPicker4"][1]["argsT"][4]["name"] = "ref_col" +defs["igColorPicker4"][1]["argsT"][4]["type"] = "const float*" +defs["igColorPicker4"][1]["argsoriginal"] = "(const char* label,float col[4],ImGuiColorEditFlags flags=0,const float* ref_col=((void*)0))" +defs["igColorPicker4"][1]["call_args"] = "(label,col,flags,ref_col)" +defs["igColorPicker4"][1]["cimguiname"] = "igColorPicker4" +defs["igColorPicker4"][1]["defaults"] = {} +defs["igColorPicker4"][1]["defaults"]["flags"] = "0" +defs["igColorPicker4"][1]["defaults"]["ref_col"] = "NULL" +defs["igColorPicker4"][1]["funcname"] = "ColorPicker4" +defs["igColorPicker4"][1]["location"] = "imgui:596" +defs["igColorPicker4"][1]["namespace"] = "ImGui" +defs["igColorPicker4"][1]["ov_cimguiname"] = "igColorPicker4" +defs["igColorPicker4"][1]["ret"] = "bool" +defs["igColorPicker4"][1]["signature"] = "(const char*,float[4],ImGuiColorEditFlags,const float*)" +defs["igColorPicker4"][1]["stname"] = "" +defs["igColorPicker4"]["(const char*,float[4],ImGuiColorEditFlags,const float*)"] = defs["igColorPicker4"][1] +defs["igColumns"] = {} +defs["igColumns"][1] = {} +defs["igColumns"][1]["args"] = "(int count,const char* id,bool border)" +defs["igColumns"][1]["argsT"] = {} +defs["igColumns"][1]["argsT"][1] = {} +defs["igColumns"][1]["argsT"][1]["name"] = "count" +defs["igColumns"][1]["argsT"][1]["type"] = "int" +defs["igColumns"][1]["argsT"][2] = {} +defs["igColumns"][1]["argsT"][2]["name"] = "id" +defs["igColumns"][1]["argsT"][2]["type"] = "const char*" +defs["igColumns"][1]["argsT"][3] = {} +defs["igColumns"][1]["argsT"][3]["name"] = "border" +defs["igColumns"][1]["argsT"][3]["type"] = "bool" +defs["igColumns"][1]["argsoriginal"] = "(int count=1,const char* id=((void*)0),bool border=true)" +defs["igColumns"][1]["call_args"] = "(count,id,border)" +defs["igColumns"][1]["cimguiname"] = "igColumns" +defs["igColumns"][1]["defaults"] = {} +defs["igColumns"][1]["defaults"]["border"] = "true" +defs["igColumns"][1]["defaults"]["count"] = "1" +defs["igColumns"][1]["defaults"]["id"] = "NULL" +defs["igColumns"][1]["funcname"] = "Columns" +defs["igColumns"][1]["location"] = "imgui:775" +defs["igColumns"][1]["namespace"] = "ImGui" +defs["igColumns"][1]["ov_cimguiname"] = "igColumns" +defs["igColumns"][1]["ret"] = "void" +defs["igColumns"][1]["signature"] = "(int,const char*,bool)" +defs["igColumns"][1]["stname"] = "" +defs["igColumns"]["(int,const char*,bool)"] = defs["igColumns"][1] +defs["igCombo"] = {} +defs["igCombo"][1] = {} +defs["igCombo"][1]["args"] = "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items)" +defs["igCombo"][1]["argsT"] = {} +defs["igCombo"][1]["argsT"][1] = {} +defs["igCombo"][1]["argsT"][1]["name"] = "label" +defs["igCombo"][1]["argsT"][1]["type"] = "const char*" +defs["igCombo"][1]["argsT"][2] = {} +defs["igCombo"][1]["argsT"][2]["name"] = "current_item" +defs["igCombo"][1]["argsT"][2]["type"] = "int*" +defs["igCombo"][1]["argsT"][3] = {} +defs["igCombo"][1]["argsT"][3]["name"] = "items" +defs["igCombo"][1]["argsT"][3]["type"] = "const char* const[]" +defs["igCombo"][1]["argsT"][4] = {} +defs["igCombo"][1]["argsT"][4]["name"] = "items_count" +defs["igCombo"][1]["argsT"][4]["type"] = "int" +defs["igCombo"][1]["argsT"][5] = {} +defs["igCombo"][1]["argsT"][5]["name"] = "popup_max_height_in_items" +defs["igCombo"][1]["argsT"][5]["type"] = "int" +defs["igCombo"][1]["argsoriginal"] = "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items=-1)" +defs["igCombo"][1]["call_args"] = "(label,current_item,items,items_count,popup_max_height_in_items)" +defs["igCombo"][1]["cimguiname"] = "igCombo" +defs["igCombo"][1]["defaults"] = {} +defs["igCombo"][1]["defaults"]["popup_max_height_in_items"] = "-1" +defs["igCombo"][1]["funcname"] = "Combo" +defs["igCombo"][1]["location"] = "imgui:522" +defs["igCombo"][1]["namespace"] = "ImGui" +defs["igCombo"][1]["ov_cimguiname"] = "igCombo_Str_arr" +defs["igCombo"][1]["ret"] = "bool" +defs["igCombo"][1]["signature"] = "(const char*,int*,const char* const[],int,int)" +defs["igCombo"][1]["stname"] = "" +defs["igCombo"][2] = {} +defs["igCombo"][2]["args"] = "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items)" +defs["igCombo"][2]["argsT"] = {} +defs["igCombo"][2]["argsT"][1] = {} +defs["igCombo"][2]["argsT"][1]["name"] = "label" +defs["igCombo"][2]["argsT"][1]["type"] = "const char*" +defs["igCombo"][2]["argsT"][2] = {} +defs["igCombo"][2]["argsT"][2]["name"] = "current_item" +defs["igCombo"][2]["argsT"][2]["type"] = "int*" +defs["igCombo"][2]["argsT"][3] = {} +defs["igCombo"][2]["argsT"][3]["name"] = "items_separated_by_zeros" +defs["igCombo"][2]["argsT"][3]["type"] = "const char*" +defs["igCombo"][2]["argsT"][4] = {} +defs["igCombo"][2]["argsT"][4]["name"] = "popup_max_height_in_items" +defs["igCombo"][2]["argsT"][4]["type"] = "int" +defs["igCombo"][2]["argsoriginal"] = "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items=-1)" +defs["igCombo"][2]["call_args"] = "(label,current_item,items_separated_by_zeros,popup_max_height_in_items)" +defs["igCombo"][2]["cimguiname"] = "igCombo" +defs["igCombo"][2]["defaults"] = {} +defs["igCombo"][2]["defaults"]["popup_max_height_in_items"] = "-1" +defs["igCombo"][2]["funcname"] = "Combo" +defs["igCombo"][2]["location"] = "imgui:523" +defs["igCombo"][2]["namespace"] = "ImGui" +defs["igCombo"][2]["ov_cimguiname"] = "igCombo_Str" +defs["igCombo"][2]["ret"] = "bool" +defs["igCombo"][2]["signature"] = "(const char*,int*,const char*,int)" +defs["igCombo"][2]["stname"] = "" +defs["igCombo"][3] = {} +defs["igCombo"][3]["args"] = "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items)" +defs["igCombo"][3]["argsT"] = {} +defs["igCombo"][3]["argsT"][1] = {} +defs["igCombo"][3]["argsT"][1]["name"] = "label" +defs["igCombo"][3]["argsT"][1]["type"] = "const char*" +defs["igCombo"][3]["argsT"][2] = {} +defs["igCombo"][3]["argsT"][2]["name"] = "current_item" +defs["igCombo"][3]["argsT"][2]["type"] = "int*" +defs["igCombo"][3]["argsT"][3] = {} +defs["igCombo"][3]["argsT"][3]["name"] = "items_getter" +defs["igCombo"][3]["argsT"][3]["ret"] = "bool" +defs["igCombo"][3]["argsT"][3]["signature"] = "(void* data,int idx,const char** out_text)" +defs["igCombo"][3]["argsT"][3]["type"] = "bool(*)(void* data,int idx,const char** out_text)" +defs["igCombo"][3]["argsT"][4] = {} +defs["igCombo"][3]["argsT"][4]["name"] = "data" +defs["igCombo"][3]["argsT"][4]["type"] = "void*" +defs["igCombo"][3]["argsT"][5] = {} +defs["igCombo"][3]["argsT"][5]["name"] = "items_count" +defs["igCombo"][3]["argsT"][5]["type"] = "int" +defs["igCombo"][3]["argsT"][6] = {} +defs["igCombo"][3]["argsT"][6]["name"] = "popup_max_height_in_items" +defs["igCombo"][3]["argsT"][6]["type"] = "int" +defs["igCombo"][3]["argsoriginal"] = "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items=-1)" +defs["igCombo"][3]["call_args"] = "(label,current_item,items_getter,data,items_count,popup_max_height_in_items)" +defs["igCombo"][3]["cimguiname"] = "igCombo" +defs["igCombo"][3]["defaults"] = {} +defs["igCombo"][3]["defaults"]["popup_max_height_in_items"] = "-1" +defs["igCombo"][3]["funcname"] = "Combo" +defs["igCombo"][3]["location"] = "imgui:524" +defs["igCombo"][3]["namespace"] = "ImGui" +defs["igCombo"][3]["ov_cimguiname"] = "igCombo_FnBoolPtr" +defs["igCombo"][3]["ret"] = "bool" +defs["igCombo"][3]["signature"] = "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)" +defs["igCombo"][3]["stname"] = "" +defs["igCombo"]["(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)"] = defs["igCombo"][3] +defs["igCombo"]["(const char*,int*,const char* const[],int,int)"] = defs["igCombo"][1] +defs["igCombo"]["(const char*,int*,const char*,int)"] = defs["igCombo"][2] +defs["igCreateContext"] = {} +defs["igCreateContext"][1] = {} +defs["igCreateContext"][1]["args"] = "(ImFontAtlas* shared_font_atlas)" +defs["igCreateContext"][1]["argsT"] = {} +defs["igCreateContext"][1]["argsT"][1] = {} +defs["igCreateContext"][1]["argsT"][1]["name"] = "shared_font_atlas" +defs["igCreateContext"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["igCreateContext"][1]["argsoriginal"] = "(ImFontAtlas* shared_font_atlas=((void*)0))" +defs["igCreateContext"][1]["call_args"] = "(shared_font_atlas)" +defs["igCreateContext"][1]["cimguiname"] = "igCreateContext" +defs["igCreateContext"][1]["defaults"] = {} +defs["igCreateContext"][1]["defaults"]["shared_font_atlas"] = "NULL" +defs["igCreateContext"][1]["funcname"] = "CreateContext" +defs["igCreateContext"][1]["location"] = "imgui:288" +defs["igCreateContext"][1]["namespace"] = "ImGui" +defs["igCreateContext"][1]["ov_cimguiname"] = "igCreateContext" +defs["igCreateContext"][1]["ret"] = "ImGuiContext*" +defs["igCreateContext"][1]["signature"] = "(ImFontAtlas*)" +defs["igCreateContext"][1]["stname"] = "" +defs["igCreateContext"]["(ImFontAtlas*)"] = defs["igCreateContext"][1] +defs["igDebugCheckVersionAndDataLayout"] = {} +defs["igDebugCheckVersionAndDataLayout"][1] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["args"] = "(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)" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][1] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][1]["name"] = "version_str" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][2] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][2]["name"] = "sz_io" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][2]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][3] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][3]["name"] = "sz_style" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][3]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][4] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][4]["name"] = "sz_vec2" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][4]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][5] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][5]["name"] = "sz_vec4" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][5]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][6] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][6]["name"] = "sz_drawvert" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][6]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][7] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][7]["name"] = "sz_drawidx" +defs["igDebugCheckVersionAndDataLayout"][1]["argsT"][7]["type"] = "size_t" +defs["igDebugCheckVersionAndDataLayout"][1]["argsoriginal"] = "(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)" +defs["igDebugCheckVersionAndDataLayout"][1]["call_args"] = "(version_str,sz_io,sz_style,sz_vec2,sz_vec4,sz_drawvert,sz_drawidx)" +defs["igDebugCheckVersionAndDataLayout"][1]["cimguiname"] = "igDebugCheckVersionAndDataLayout" +defs["igDebugCheckVersionAndDataLayout"][1]["defaults"] = {} +defs["igDebugCheckVersionAndDataLayout"][1]["funcname"] = "DebugCheckVersionAndDataLayout" +defs["igDebugCheckVersionAndDataLayout"][1]["location"] = "imgui:934" +defs["igDebugCheckVersionAndDataLayout"][1]["namespace"] = "ImGui" +defs["igDebugCheckVersionAndDataLayout"][1]["ov_cimguiname"] = "igDebugCheckVersionAndDataLayout" +defs["igDebugCheckVersionAndDataLayout"][1]["ret"] = "bool" +defs["igDebugCheckVersionAndDataLayout"][1]["signature"] = "(const char*,size_t,size_t,size_t,size_t,size_t,size_t)" +defs["igDebugCheckVersionAndDataLayout"][1]["stname"] = "" +defs["igDebugCheckVersionAndDataLayout"]["(const char*,size_t,size_t,size_t,size_t,size_t,size_t)"] = defs["igDebugCheckVersionAndDataLayout"][1] +defs["igDebugTextEncoding"] = {} +defs["igDebugTextEncoding"][1] = {} +defs["igDebugTextEncoding"][1]["args"] = "(const char* text)" +defs["igDebugTextEncoding"][1]["argsT"] = {} +defs["igDebugTextEncoding"][1]["argsT"][1] = {} +defs["igDebugTextEncoding"][1]["argsT"][1]["name"] = "text" +defs["igDebugTextEncoding"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugTextEncoding"][1]["argsoriginal"] = "(const char* text)" +defs["igDebugTextEncoding"][1]["call_args"] = "(text)" +defs["igDebugTextEncoding"][1]["cimguiname"] = "igDebugTextEncoding" +defs["igDebugTextEncoding"][1]["defaults"] = {} +defs["igDebugTextEncoding"][1]["funcname"] = "DebugTextEncoding" +defs["igDebugTextEncoding"][1]["location"] = "imgui:933" +defs["igDebugTextEncoding"][1]["namespace"] = "ImGui" +defs["igDebugTextEncoding"][1]["ov_cimguiname"] = "igDebugTextEncoding" +defs["igDebugTextEncoding"][1]["ret"] = "void" +defs["igDebugTextEncoding"][1]["signature"] = "(const char*)" +defs["igDebugTextEncoding"][1]["stname"] = "" +defs["igDebugTextEncoding"]["(const char*)"] = defs["igDebugTextEncoding"][1] +defs["igDestroyContext"] = {} +defs["igDestroyContext"][1] = {} +defs["igDestroyContext"][1]["args"] = "(ImGuiContext* ctx)" +defs["igDestroyContext"][1]["argsT"] = {} +defs["igDestroyContext"][1]["argsT"][1] = {} +defs["igDestroyContext"][1]["argsT"][1]["name"] = "ctx" +defs["igDestroyContext"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDestroyContext"][1]["argsoriginal"] = "(ImGuiContext* ctx=((void*)0))" +defs["igDestroyContext"][1]["call_args"] = "(ctx)" +defs["igDestroyContext"][1]["cimguiname"] = "igDestroyContext" +defs["igDestroyContext"][1]["defaults"] = {} +defs["igDestroyContext"][1]["defaults"]["ctx"] = "NULL" +defs["igDestroyContext"][1]["funcname"] = "DestroyContext" +defs["igDestroyContext"][1]["location"] = "imgui:289" +defs["igDestroyContext"][1]["namespace"] = "ImGui" +defs["igDestroyContext"][1]["ov_cimguiname"] = "igDestroyContext" +defs["igDestroyContext"][1]["ret"] = "void" +defs["igDestroyContext"][1]["signature"] = "(ImGuiContext*)" +defs["igDestroyContext"][1]["stname"] = "" +defs["igDestroyContext"]["(ImGuiContext*)"] = defs["igDestroyContext"][1] +defs["igDragFloat"] = {} +defs["igDragFloat"][1] = {} +defs["igDragFloat"][1]["args"] = "(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragFloat"][1]["argsT"] = {} +defs["igDragFloat"][1]["argsT"][1] = {} +defs["igDragFloat"][1]["argsT"][1]["name"] = "label" +defs["igDragFloat"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloat"][1]["argsT"][2] = {} +defs["igDragFloat"][1]["argsT"][2]["name"] = "v" +defs["igDragFloat"][1]["argsT"][2]["type"] = "float*" +defs["igDragFloat"][1]["argsT"][3] = {} +defs["igDragFloat"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragFloat"][1]["argsT"][3]["type"] = "float" +defs["igDragFloat"][1]["argsT"][4] = {} +defs["igDragFloat"][1]["argsT"][4]["name"] = "v_min" +defs["igDragFloat"][1]["argsT"][4]["type"] = "float" +defs["igDragFloat"][1]["argsT"][5] = {} +defs["igDragFloat"][1]["argsT"][5]["name"] = "v_max" +defs["igDragFloat"][1]["argsT"][5]["type"] = "float" +defs["igDragFloat"][1]["argsT"][6] = {} +defs["igDragFloat"][1]["argsT"][6]["name"] = "format" +defs["igDragFloat"][1]["argsT"][6]["type"] = "const char*" +defs["igDragFloat"][1]["argsT"][7] = {} +defs["igDragFloat"][1]["argsT"][7]["name"] = "flags" +defs["igDragFloat"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragFloat"][1]["argsoriginal"] = "(const char* label,float* v,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igDragFloat"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragFloat"][1]["cimguiname"] = "igDragFloat" +defs["igDragFloat"][1]["defaults"] = {} +defs["igDragFloat"][1]["defaults"]["flags"] = "0" +defs["igDragFloat"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloat"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloat"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloat"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloat"][1]["funcname"] = "DragFloat" +defs["igDragFloat"][1]["location"] = "imgui:538" +defs["igDragFloat"][1]["namespace"] = "ImGui" +defs["igDragFloat"][1]["ov_cimguiname"] = "igDragFloat" +defs["igDragFloat"][1]["ret"] = "bool" +defs["igDragFloat"][1]["signature"] = "(const char*,float*,float,float,float,const char*,ImGuiSliderFlags)" +defs["igDragFloat"][1]["stname"] = "" +defs["igDragFloat"]["(const char*,float*,float,float,float,const char*,ImGuiSliderFlags)"] = defs["igDragFloat"][1] +defs["igDragFloat2"] = {} +defs["igDragFloat2"][1] = {} +defs["igDragFloat2"][1]["args"] = "(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragFloat2"][1]["argsT"] = {} +defs["igDragFloat2"][1]["argsT"][1] = {} +defs["igDragFloat2"][1]["argsT"][1]["name"] = "label" +defs["igDragFloat2"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloat2"][1]["argsT"][2] = {} +defs["igDragFloat2"][1]["argsT"][2]["name"] = "v" +defs["igDragFloat2"][1]["argsT"][2]["type"] = "float[2]" +defs["igDragFloat2"][1]["argsT"][3] = {} +defs["igDragFloat2"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragFloat2"][1]["argsT"][3]["type"] = "float" +defs["igDragFloat2"][1]["argsT"][4] = {} +defs["igDragFloat2"][1]["argsT"][4]["name"] = "v_min" +defs["igDragFloat2"][1]["argsT"][4]["type"] = "float" +defs["igDragFloat2"][1]["argsT"][5] = {} +defs["igDragFloat2"][1]["argsT"][5]["name"] = "v_max" +defs["igDragFloat2"][1]["argsT"][5]["type"] = "float" +defs["igDragFloat2"][1]["argsT"][6] = {} +defs["igDragFloat2"][1]["argsT"][6]["name"] = "format" +defs["igDragFloat2"][1]["argsT"][6]["type"] = "const char*" +defs["igDragFloat2"][1]["argsT"][7] = {} +defs["igDragFloat2"][1]["argsT"][7]["name"] = "flags" +defs["igDragFloat2"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragFloat2"][1]["argsoriginal"] = "(const char* label,float v[2],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igDragFloat2"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragFloat2"][1]["cimguiname"] = "igDragFloat2" +defs["igDragFloat2"][1]["defaults"] = {} +defs["igDragFloat2"][1]["defaults"]["flags"] = "0" +defs["igDragFloat2"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloat2"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloat2"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloat2"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloat2"][1]["funcname"] = "DragFloat2" +defs["igDragFloat2"][1]["location"] = "imgui:539" +defs["igDragFloat2"][1]["namespace"] = "ImGui" +defs["igDragFloat2"][1]["ov_cimguiname"] = "igDragFloat2" +defs["igDragFloat2"][1]["ret"] = "bool" +defs["igDragFloat2"][1]["signature"] = "(const char*,float[2],float,float,float,const char*,ImGuiSliderFlags)" +defs["igDragFloat2"][1]["stname"] = "" +defs["igDragFloat2"]["(const char*,float[2],float,float,float,const char*,ImGuiSliderFlags)"] = defs["igDragFloat2"][1] +defs["igDragFloat3"] = {} +defs["igDragFloat3"][1] = {} +defs["igDragFloat3"][1]["args"] = "(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragFloat3"][1]["argsT"] = {} +defs["igDragFloat3"][1]["argsT"][1] = {} +defs["igDragFloat3"][1]["argsT"][1]["name"] = "label" +defs["igDragFloat3"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloat3"][1]["argsT"][2] = {} +defs["igDragFloat3"][1]["argsT"][2]["name"] = "v" +defs["igDragFloat3"][1]["argsT"][2]["type"] = "float[3]" +defs["igDragFloat3"][1]["argsT"][3] = {} +defs["igDragFloat3"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragFloat3"][1]["argsT"][3]["type"] = "float" +defs["igDragFloat3"][1]["argsT"][4] = {} +defs["igDragFloat3"][1]["argsT"][4]["name"] = "v_min" +defs["igDragFloat3"][1]["argsT"][4]["type"] = "float" +defs["igDragFloat3"][1]["argsT"][5] = {} +defs["igDragFloat3"][1]["argsT"][5]["name"] = "v_max" +defs["igDragFloat3"][1]["argsT"][5]["type"] = "float" +defs["igDragFloat3"][1]["argsT"][6] = {} +defs["igDragFloat3"][1]["argsT"][6]["name"] = "format" +defs["igDragFloat3"][1]["argsT"][6]["type"] = "const char*" +defs["igDragFloat3"][1]["argsT"][7] = {} +defs["igDragFloat3"][1]["argsT"][7]["name"] = "flags" +defs["igDragFloat3"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragFloat3"][1]["argsoriginal"] = "(const char* label,float v[3],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igDragFloat3"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragFloat3"][1]["cimguiname"] = "igDragFloat3" +defs["igDragFloat3"][1]["defaults"] = {} +defs["igDragFloat3"][1]["defaults"]["flags"] = "0" +defs["igDragFloat3"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloat3"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloat3"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloat3"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloat3"][1]["funcname"] = "DragFloat3" +defs["igDragFloat3"][1]["location"] = "imgui:540" +defs["igDragFloat3"][1]["namespace"] = "ImGui" +defs["igDragFloat3"][1]["ov_cimguiname"] = "igDragFloat3" +defs["igDragFloat3"][1]["ret"] = "bool" +defs["igDragFloat3"][1]["signature"] = "(const char*,float[3],float,float,float,const char*,ImGuiSliderFlags)" +defs["igDragFloat3"][1]["stname"] = "" +defs["igDragFloat3"]["(const char*,float[3],float,float,float,const char*,ImGuiSliderFlags)"] = defs["igDragFloat3"][1] +defs["igDragFloat4"] = {} +defs["igDragFloat4"][1] = {} +defs["igDragFloat4"][1]["args"] = "(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragFloat4"][1]["argsT"] = {} +defs["igDragFloat4"][1]["argsT"][1] = {} +defs["igDragFloat4"][1]["argsT"][1]["name"] = "label" +defs["igDragFloat4"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloat4"][1]["argsT"][2] = {} +defs["igDragFloat4"][1]["argsT"][2]["name"] = "v" +defs["igDragFloat4"][1]["argsT"][2]["type"] = "float[4]" +defs["igDragFloat4"][1]["argsT"][3] = {} +defs["igDragFloat4"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragFloat4"][1]["argsT"][3]["type"] = "float" +defs["igDragFloat4"][1]["argsT"][4] = {} +defs["igDragFloat4"][1]["argsT"][4]["name"] = "v_min" +defs["igDragFloat4"][1]["argsT"][4]["type"] = "float" +defs["igDragFloat4"][1]["argsT"][5] = {} +defs["igDragFloat4"][1]["argsT"][5]["name"] = "v_max" +defs["igDragFloat4"][1]["argsT"][5]["type"] = "float" +defs["igDragFloat4"][1]["argsT"][6] = {} +defs["igDragFloat4"][1]["argsT"][6]["name"] = "format" +defs["igDragFloat4"][1]["argsT"][6]["type"] = "const char*" +defs["igDragFloat4"][1]["argsT"][7] = {} +defs["igDragFloat4"][1]["argsT"][7]["name"] = "flags" +defs["igDragFloat4"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragFloat4"][1]["argsoriginal"] = "(const char* label,float v[4],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igDragFloat4"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragFloat4"][1]["cimguiname"] = "igDragFloat4" +defs["igDragFloat4"][1]["defaults"] = {} +defs["igDragFloat4"][1]["defaults"]["flags"] = "0" +defs["igDragFloat4"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloat4"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloat4"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloat4"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloat4"][1]["funcname"] = "DragFloat4" +defs["igDragFloat4"][1]["location"] = "imgui:541" +defs["igDragFloat4"][1]["namespace"] = "ImGui" +defs["igDragFloat4"][1]["ov_cimguiname"] = "igDragFloat4" +defs["igDragFloat4"][1]["ret"] = "bool" +defs["igDragFloat4"][1]["signature"] = "(const char*,float[4],float,float,float,const char*,ImGuiSliderFlags)" +defs["igDragFloat4"][1]["stname"] = "" +defs["igDragFloat4"]["(const char*,float[4],float,float,float,const char*,ImGuiSliderFlags)"] = defs["igDragFloat4"][1] +defs["igDragFloatRange2"] = {} +defs["igDragFloatRange2"][1] = {} +defs["igDragFloatRange2"][1]["args"] = "(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)" +defs["igDragFloatRange2"][1]["argsT"] = {} +defs["igDragFloatRange2"][1]["argsT"][1] = {} +defs["igDragFloatRange2"][1]["argsT"][1]["name"] = "label" +defs["igDragFloatRange2"][1]["argsT"][1]["type"] = "const char*" +defs["igDragFloatRange2"][1]["argsT"][2] = {} +defs["igDragFloatRange2"][1]["argsT"][2]["name"] = "v_current_min" +defs["igDragFloatRange2"][1]["argsT"][2]["type"] = "float*" +defs["igDragFloatRange2"][1]["argsT"][3] = {} +defs["igDragFloatRange2"][1]["argsT"][3]["name"] = "v_current_max" +defs["igDragFloatRange2"][1]["argsT"][3]["type"] = "float*" +defs["igDragFloatRange2"][1]["argsT"][4] = {} +defs["igDragFloatRange2"][1]["argsT"][4]["name"] = "v_speed" +defs["igDragFloatRange2"][1]["argsT"][4]["type"] = "float" +defs["igDragFloatRange2"][1]["argsT"][5] = {} +defs["igDragFloatRange2"][1]["argsT"][5]["name"] = "v_min" +defs["igDragFloatRange2"][1]["argsT"][5]["type"] = "float" +defs["igDragFloatRange2"][1]["argsT"][6] = {} +defs["igDragFloatRange2"][1]["argsT"][6]["name"] = "v_max" +defs["igDragFloatRange2"][1]["argsT"][6]["type"] = "float" +defs["igDragFloatRange2"][1]["argsT"][7] = {} +defs["igDragFloatRange2"][1]["argsT"][7]["name"] = "format" +defs["igDragFloatRange2"][1]["argsT"][7]["type"] = "const char*" +defs["igDragFloatRange2"][1]["argsT"][8] = {} +defs["igDragFloatRange2"][1]["argsT"][8]["name"] = "format_max" +defs["igDragFloatRange2"][1]["argsT"][8]["type"] = "const char*" +defs["igDragFloatRange2"][1]["argsT"][9] = {} +defs["igDragFloatRange2"][1]["argsT"][9]["name"] = "flags" +defs["igDragFloatRange2"][1]["argsT"][9]["type"] = "ImGuiSliderFlags" +defs["igDragFloatRange2"][1]["argsoriginal"] = "(const char* label,float* v_current_min,float* v_current_max,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)" +defs["igDragFloatRange2"][1]["call_args"] = "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)" +defs["igDragFloatRange2"][1]["cimguiname"] = "igDragFloatRange2" +defs["igDragFloatRange2"][1]["defaults"] = {} +defs["igDragFloatRange2"][1]["defaults"]["flags"] = "0" +defs["igDragFloatRange2"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igDragFloatRange2"][1]["defaults"]["format_max"] = "NULL" +defs["igDragFloatRange2"][1]["defaults"]["v_max"] = "0.0f" +defs["igDragFloatRange2"][1]["defaults"]["v_min"] = "0.0f" +defs["igDragFloatRange2"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragFloatRange2"][1]["funcname"] = "DragFloatRange2" +defs["igDragFloatRange2"][1]["location"] = "imgui:542" +defs["igDragFloatRange2"][1]["namespace"] = "ImGui" +defs["igDragFloatRange2"][1]["ov_cimguiname"] = "igDragFloatRange2" +defs["igDragFloatRange2"][1]["ret"] = "bool" +defs["igDragFloatRange2"][1]["signature"] = "(const char*,float*,float*,float,float,float,const char*,const char*,ImGuiSliderFlags)" +defs["igDragFloatRange2"][1]["stname"] = "" +defs["igDragFloatRange2"]["(const char*,float*,float*,float,float,float,const char*,const char*,ImGuiSliderFlags)"] = defs["igDragFloatRange2"][1] +defs["igDragInt"] = {} +defs["igDragInt"][1] = {} +defs["igDragInt"][1]["args"] = "(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragInt"][1]["argsT"] = {} +defs["igDragInt"][1]["argsT"][1] = {} +defs["igDragInt"][1]["argsT"][1]["name"] = "label" +defs["igDragInt"][1]["argsT"][1]["type"] = "const char*" +defs["igDragInt"][1]["argsT"][2] = {} +defs["igDragInt"][1]["argsT"][2]["name"] = "v" +defs["igDragInt"][1]["argsT"][2]["type"] = "int*" +defs["igDragInt"][1]["argsT"][3] = {} +defs["igDragInt"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragInt"][1]["argsT"][3]["type"] = "float" +defs["igDragInt"][1]["argsT"][4] = {} +defs["igDragInt"][1]["argsT"][4]["name"] = "v_min" +defs["igDragInt"][1]["argsT"][4]["type"] = "int" +defs["igDragInt"][1]["argsT"][5] = {} +defs["igDragInt"][1]["argsT"][5]["name"] = "v_max" +defs["igDragInt"][1]["argsT"][5]["type"] = "int" +defs["igDragInt"][1]["argsT"][6] = {} +defs["igDragInt"][1]["argsT"][6]["name"] = "format" +defs["igDragInt"][1]["argsT"][6]["type"] = "const char*" +defs["igDragInt"][1]["argsT"][7] = {} +defs["igDragInt"][1]["argsT"][7]["name"] = "flags" +defs["igDragInt"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragInt"][1]["argsoriginal"] = "(const char* label,int* v,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igDragInt"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragInt"][1]["cimguiname"] = "igDragInt" +defs["igDragInt"][1]["defaults"] = {} +defs["igDragInt"][1]["defaults"]["flags"] = "0" +defs["igDragInt"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragInt"][1]["defaults"]["v_max"] = "0" +defs["igDragInt"][1]["defaults"]["v_min"] = "0" +defs["igDragInt"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragInt"][1]["funcname"] = "DragInt" +defs["igDragInt"][1]["location"] = "imgui:543" +defs["igDragInt"][1]["namespace"] = "ImGui" +defs["igDragInt"][1]["ov_cimguiname"] = "igDragInt" +defs["igDragInt"][1]["ret"] = "bool" +defs["igDragInt"][1]["signature"] = "(const char*,int*,float,int,int,const char*,ImGuiSliderFlags)" +defs["igDragInt"][1]["stname"] = "" +defs["igDragInt"]["(const char*,int*,float,int,int,const char*,ImGuiSliderFlags)"] = defs["igDragInt"][1] +defs["igDragInt2"] = {} +defs["igDragInt2"][1] = {} +defs["igDragInt2"][1]["args"] = "(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragInt2"][1]["argsT"] = {} +defs["igDragInt2"][1]["argsT"][1] = {} +defs["igDragInt2"][1]["argsT"][1]["name"] = "label" +defs["igDragInt2"][1]["argsT"][1]["type"] = "const char*" +defs["igDragInt2"][1]["argsT"][2] = {} +defs["igDragInt2"][1]["argsT"][2]["name"] = "v" +defs["igDragInt2"][1]["argsT"][2]["type"] = "int[2]" +defs["igDragInt2"][1]["argsT"][3] = {} +defs["igDragInt2"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragInt2"][1]["argsT"][3]["type"] = "float" +defs["igDragInt2"][1]["argsT"][4] = {} +defs["igDragInt2"][1]["argsT"][4]["name"] = "v_min" +defs["igDragInt2"][1]["argsT"][4]["type"] = "int" +defs["igDragInt2"][1]["argsT"][5] = {} +defs["igDragInt2"][1]["argsT"][5]["name"] = "v_max" +defs["igDragInt2"][1]["argsT"][5]["type"] = "int" +defs["igDragInt2"][1]["argsT"][6] = {} +defs["igDragInt2"][1]["argsT"][6]["name"] = "format" +defs["igDragInt2"][1]["argsT"][6]["type"] = "const char*" +defs["igDragInt2"][1]["argsT"][7] = {} +defs["igDragInt2"][1]["argsT"][7]["name"] = "flags" +defs["igDragInt2"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragInt2"][1]["argsoriginal"] = "(const char* label,int v[2],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igDragInt2"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragInt2"][1]["cimguiname"] = "igDragInt2" +defs["igDragInt2"][1]["defaults"] = {} +defs["igDragInt2"][1]["defaults"]["flags"] = "0" +defs["igDragInt2"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragInt2"][1]["defaults"]["v_max"] = "0" +defs["igDragInt2"][1]["defaults"]["v_min"] = "0" +defs["igDragInt2"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragInt2"][1]["funcname"] = "DragInt2" +defs["igDragInt2"][1]["location"] = "imgui:544" +defs["igDragInt2"][1]["namespace"] = "ImGui" +defs["igDragInt2"][1]["ov_cimguiname"] = "igDragInt2" +defs["igDragInt2"][1]["ret"] = "bool" +defs["igDragInt2"][1]["signature"] = "(const char*,int[2],float,int,int,const char*,ImGuiSliderFlags)" +defs["igDragInt2"][1]["stname"] = "" +defs["igDragInt2"]["(const char*,int[2],float,int,int,const char*,ImGuiSliderFlags)"] = defs["igDragInt2"][1] +defs["igDragInt3"] = {} +defs["igDragInt3"][1] = {} +defs["igDragInt3"][1]["args"] = "(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragInt3"][1]["argsT"] = {} +defs["igDragInt3"][1]["argsT"][1] = {} +defs["igDragInt3"][1]["argsT"][1]["name"] = "label" +defs["igDragInt3"][1]["argsT"][1]["type"] = "const char*" +defs["igDragInt3"][1]["argsT"][2] = {} +defs["igDragInt3"][1]["argsT"][2]["name"] = "v" +defs["igDragInt3"][1]["argsT"][2]["type"] = "int[3]" +defs["igDragInt3"][1]["argsT"][3] = {} +defs["igDragInt3"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragInt3"][1]["argsT"][3]["type"] = "float" +defs["igDragInt3"][1]["argsT"][4] = {} +defs["igDragInt3"][1]["argsT"][4]["name"] = "v_min" +defs["igDragInt3"][1]["argsT"][4]["type"] = "int" +defs["igDragInt3"][1]["argsT"][5] = {} +defs["igDragInt3"][1]["argsT"][5]["name"] = "v_max" +defs["igDragInt3"][1]["argsT"][5]["type"] = "int" +defs["igDragInt3"][1]["argsT"][6] = {} +defs["igDragInt3"][1]["argsT"][6]["name"] = "format" +defs["igDragInt3"][1]["argsT"][6]["type"] = "const char*" +defs["igDragInt3"][1]["argsT"][7] = {} +defs["igDragInt3"][1]["argsT"][7]["name"] = "flags" +defs["igDragInt3"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragInt3"][1]["argsoriginal"] = "(const char* label,int v[3],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igDragInt3"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragInt3"][1]["cimguiname"] = "igDragInt3" +defs["igDragInt3"][1]["defaults"] = {} +defs["igDragInt3"][1]["defaults"]["flags"] = "0" +defs["igDragInt3"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragInt3"][1]["defaults"]["v_max"] = "0" +defs["igDragInt3"][1]["defaults"]["v_min"] = "0" +defs["igDragInt3"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragInt3"][1]["funcname"] = "DragInt3" +defs["igDragInt3"][1]["location"] = "imgui:545" +defs["igDragInt3"][1]["namespace"] = "ImGui" +defs["igDragInt3"][1]["ov_cimguiname"] = "igDragInt3" +defs["igDragInt3"][1]["ret"] = "bool" +defs["igDragInt3"][1]["signature"] = "(const char*,int[3],float,int,int,const char*,ImGuiSliderFlags)" +defs["igDragInt3"][1]["stname"] = "" +defs["igDragInt3"]["(const char*,int[3],float,int,int,const char*,ImGuiSliderFlags)"] = defs["igDragInt3"][1] +defs["igDragInt4"] = {} +defs["igDragInt4"][1] = {} +defs["igDragInt4"][1]["args"] = "(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragInt4"][1]["argsT"] = {} +defs["igDragInt4"][1]["argsT"][1] = {} +defs["igDragInt4"][1]["argsT"][1]["name"] = "label" +defs["igDragInt4"][1]["argsT"][1]["type"] = "const char*" +defs["igDragInt4"][1]["argsT"][2] = {} +defs["igDragInt4"][1]["argsT"][2]["name"] = "v" +defs["igDragInt4"][1]["argsT"][2]["type"] = "int[4]" +defs["igDragInt4"][1]["argsT"][3] = {} +defs["igDragInt4"][1]["argsT"][3]["name"] = "v_speed" +defs["igDragInt4"][1]["argsT"][3]["type"] = "float" +defs["igDragInt4"][1]["argsT"][4] = {} +defs["igDragInt4"][1]["argsT"][4]["name"] = "v_min" +defs["igDragInt4"][1]["argsT"][4]["type"] = "int" +defs["igDragInt4"][1]["argsT"][5] = {} +defs["igDragInt4"][1]["argsT"][5]["name"] = "v_max" +defs["igDragInt4"][1]["argsT"][5]["type"] = "int" +defs["igDragInt4"][1]["argsT"][6] = {} +defs["igDragInt4"][1]["argsT"][6]["name"] = "format" +defs["igDragInt4"][1]["argsT"][6]["type"] = "const char*" +defs["igDragInt4"][1]["argsT"][7] = {} +defs["igDragInt4"][1]["argsT"][7]["name"] = "flags" +defs["igDragInt4"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igDragInt4"][1]["argsoriginal"] = "(const char* label,int v[4],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igDragInt4"][1]["call_args"] = "(label,v,v_speed,v_min,v_max,format,flags)" +defs["igDragInt4"][1]["cimguiname"] = "igDragInt4" +defs["igDragInt4"][1]["defaults"] = {} +defs["igDragInt4"][1]["defaults"]["flags"] = "0" +defs["igDragInt4"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragInt4"][1]["defaults"]["v_max"] = "0" +defs["igDragInt4"][1]["defaults"]["v_min"] = "0" +defs["igDragInt4"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragInt4"][1]["funcname"] = "DragInt4" +defs["igDragInt4"][1]["location"] = "imgui:546" +defs["igDragInt4"][1]["namespace"] = "ImGui" +defs["igDragInt4"][1]["ov_cimguiname"] = "igDragInt4" +defs["igDragInt4"][1]["ret"] = "bool" +defs["igDragInt4"][1]["signature"] = "(const char*,int[4],float,int,int,const char*,ImGuiSliderFlags)" +defs["igDragInt4"][1]["stname"] = "" +defs["igDragInt4"]["(const char*,int[4],float,int,int,const char*,ImGuiSliderFlags)"] = defs["igDragInt4"][1] +defs["igDragIntRange2"] = {} +defs["igDragIntRange2"][1] = {} +defs["igDragIntRange2"][1]["args"] = "(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)" +defs["igDragIntRange2"][1]["argsT"] = {} +defs["igDragIntRange2"][1]["argsT"][1] = {} +defs["igDragIntRange2"][1]["argsT"][1]["name"] = "label" +defs["igDragIntRange2"][1]["argsT"][1]["type"] = "const char*" +defs["igDragIntRange2"][1]["argsT"][2] = {} +defs["igDragIntRange2"][1]["argsT"][2]["name"] = "v_current_min" +defs["igDragIntRange2"][1]["argsT"][2]["type"] = "int*" +defs["igDragIntRange2"][1]["argsT"][3] = {} +defs["igDragIntRange2"][1]["argsT"][3]["name"] = "v_current_max" +defs["igDragIntRange2"][1]["argsT"][3]["type"] = "int*" +defs["igDragIntRange2"][1]["argsT"][4] = {} +defs["igDragIntRange2"][1]["argsT"][4]["name"] = "v_speed" +defs["igDragIntRange2"][1]["argsT"][4]["type"] = "float" +defs["igDragIntRange2"][1]["argsT"][5] = {} +defs["igDragIntRange2"][1]["argsT"][5]["name"] = "v_min" +defs["igDragIntRange2"][1]["argsT"][5]["type"] = "int" +defs["igDragIntRange2"][1]["argsT"][6] = {} +defs["igDragIntRange2"][1]["argsT"][6]["name"] = "v_max" +defs["igDragIntRange2"][1]["argsT"][6]["type"] = "int" +defs["igDragIntRange2"][1]["argsT"][7] = {} +defs["igDragIntRange2"][1]["argsT"][7]["name"] = "format" +defs["igDragIntRange2"][1]["argsT"][7]["type"] = "const char*" +defs["igDragIntRange2"][1]["argsT"][8] = {} +defs["igDragIntRange2"][1]["argsT"][8]["name"] = "format_max" +defs["igDragIntRange2"][1]["argsT"][8]["type"] = "const char*" +defs["igDragIntRange2"][1]["argsT"][9] = {} +defs["igDragIntRange2"][1]["argsT"][9]["name"] = "flags" +defs["igDragIntRange2"][1]["argsT"][9]["type"] = "ImGuiSliderFlags" +defs["igDragIntRange2"][1]["argsoriginal"] = "(const char* label,int* v_current_min,int* v_current_max,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)" +defs["igDragIntRange2"][1]["call_args"] = "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)" +defs["igDragIntRange2"][1]["cimguiname"] = "igDragIntRange2" +defs["igDragIntRange2"][1]["defaults"] = {} +defs["igDragIntRange2"][1]["defaults"]["flags"] = "0" +defs["igDragIntRange2"][1]["defaults"]["format"] = "\"%d\"" +defs["igDragIntRange2"][1]["defaults"]["format_max"] = "NULL" +defs["igDragIntRange2"][1]["defaults"]["v_max"] = "0" +defs["igDragIntRange2"][1]["defaults"]["v_min"] = "0" +defs["igDragIntRange2"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragIntRange2"][1]["funcname"] = "DragIntRange2" +defs["igDragIntRange2"][1]["location"] = "imgui:547" +defs["igDragIntRange2"][1]["namespace"] = "ImGui" +defs["igDragIntRange2"][1]["ov_cimguiname"] = "igDragIntRange2" +defs["igDragIntRange2"][1]["ret"] = "bool" +defs["igDragIntRange2"][1]["signature"] = "(const char*,int*,int*,float,int,int,const char*,const char*,ImGuiSliderFlags)" +defs["igDragIntRange2"][1]["stname"] = "" +defs["igDragIntRange2"]["(const char*,int*,int*,float,int,int,const char*,const char*,ImGuiSliderFlags)"] = defs["igDragIntRange2"][1] +defs["igDragScalar"] = {} +defs["igDragScalar"][1] = {} +defs["igDragScalar"][1]["args"] = "(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)" +defs["igDragScalar"][1]["argsT"] = {} +defs["igDragScalar"][1]["argsT"][1] = {} +defs["igDragScalar"][1]["argsT"][1]["name"] = "label" +defs["igDragScalar"][1]["argsT"][1]["type"] = "const char*" +defs["igDragScalar"][1]["argsT"][2] = {} +defs["igDragScalar"][1]["argsT"][2]["name"] = "data_type" +defs["igDragScalar"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igDragScalar"][1]["argsT"][3] = {} +defs["igDragScalar"][1]["argsT"][3]["name"] = "p_data" +defs["igDragScalar"][1]["argsT"][3]["type"] = "void*" +defs["igDragScalar"][1]["argsT"][4] = {} +defs["igDragScalar"][1]["argsT"][4]["name"] = "v_speed" +defs["igDragScalar"][1]["argsT"][4]["type"] = "float" +defs["igDragScalar"][1]["argsT"][5] = {} +defs["igDragScalar"][1]["argsT"][5]["name"] = "p_min" +defs["igDragScalar"][1]["argsT"][5]["type"] = "const void*" +defs["igDragScalar"][1]["argsT"][6] = {} +defs["igDragScalar"][1]["argsT"][6]["name"] = "p_max" +defs["igDragScalar"][1]["argsT"][6]["type"] = "const void*" +defs["igDragScalar"][1]["argsT"][7] = {} +defs["igDragScalar"][1]["argsT"][7]["name"] = "format" +defs["igDragScalar"][1]["argsT"][7]["type"] = "const char*" +defs["igDragScalar"][1]["argsT"][8] = {} +defs["igDragScalar"][1]["argsT"][8]["name"] = "flags" +defs["igDragScalar"][1]["argsT"][8]["type"] = "ImGuiSliderFlags" +defs["igDragScalar"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igDragScalar"][1]["call_args"] = "(label,data_type,p_data,v_speed,p_min,p_max,format,flags)" +defs["igDragScalar"][1]["cimguiname"] = "igDragScalar" +defs["igDragScalar"][1]["defaults"] = {} +defs["igDragScalar"][1]["defaults"]["flags"] = "0" +defs["igDragScalar"][1]["defaults"]["format"] = "NULL" +defs["igDragScalar"][1]["defaults"]["p_max"] = "NULL" +defs["igDragScalar"][1]["defaults"]["p_min"] = "NULL" +defs["igDragScalar"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragScalar"][1]["funcname"] = "DragScalar" +defs["igDragScalar"][1]["location"] = "imgui:548" +defs["igDragScalar"][1]["namespace"] = "ImGui" +defs["igDragScalar"][1]["ov_cimguiname"] = "igDragScalar" +defs["igDragScalar"][1]["ret"] = "bool" +defs["igDragScalar"][1]["signature"] = "(const char*,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igDragScalar"][1]["stname"] = "" +defs["igDragScalar"]["(const char*,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igDragScalar"][1] +defs["igDragScalarN"] = {} +defs["igDragScalarN"][1] = {} +defs["igDragScalarN"][1]["args"] = "(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)" +defs["igDragScalarN"][1]["argsT"] = {} +defs["igDragScalarN"][1]["argsT"][1] = {} +defs["igDragScalarN"][1]["argsT"][1]["name"] = "label" +defs["igDragScalarN"][1]["argsT"][1]["type"] = "const char*" +defs["igDragScalarN"][1]["argsT"][2] = {} +defs["igDragScalarN"][1]["argsT"][2]["name"] = "data_type" +defs["igDragScalarN"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igDragScalarN"][1]["argsT"][3] = {} +defs["igDragScalarN"][1]["argsT"][3]["name"] = "p_data" +defs["igDragScalarN"][1]["argsT"][3]["type"] = "void*" +defs["igDragScalarN"][1]["argsT"][4] = {} +defs["igDragScalarN"][1]["argsT"][4]["name"] = "components" +defs["igDragScalarN"][1]["argsT"][4]["type"] = "int" +defs["igDragScalarN"][1]["argsT"][5] = {} +defs["igDragScalarN"][1]["argsT"][5]["name"] = "v_speed" +defs["igDragScalarN"][1]["argsT"][5]["type"] = "float" +defs["igDragScalarN"][1]["argsT"][6] = {} +defs["igDragScalarN"][1]["argsT"][6]["name"] = "p_min" +defs["igDragScalarN"][1]["argsT"][6]["type"] = "const void*" +defs["igDragScalarN"][1]["argsT"][7] = {} +defs["igDragScalarN"][1]["argsT"][7]["name"] = "p_max" +defs["igDragScalarN"][1]["argsT"][7]["type"] = "const void*" +defs["igDragScalarN"][1]["argsT"][8] = {} +defs["igDragScalarN"][1]["argsT"][8]["name"] = "format" +defs["igDragScalarN"][1]["argsT"][8]["type"] = "const char*" +defs["igDragScalarN"][1]["argsT"][9] = {} +defs["igDragScalarN"][1]["argsT"][9]["name"] = "flags" +defs["igDragScalarN"][1]["argsT"][9]["type"] = "ImGuiSliderFlags" +defs["igDragScalarN"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,int components,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igDragScalarN"][1]["call_args"] = "(label,data_type,p_data,components,v_speed,p_min,p_max,format,flags)" +defs["igDragScalarN"][1]["cimguiname"] = "igDragScalarN" +defs["igDragScalarN"][1]["defaults"] = {} +defs["igDragScalarN"][1]["defaults"]["flags"] = "0" +defs["igDragScalarN"][1]["defaults"]["format"] = "NULL" +defs["igDragScalarN"][1]["defaults"]["p_max"] = "NULL" +defs["igDragScalarN"][1]["defaults"]["p_min"] = "NULL" +defs["igDragScalarN"][1]["defaults"]["v_speed"] = "1.0f" +defs["igDragScalarN"][1]["funcname"] = "DragScalarN" +defs["igDragScalarN"][1]["location"] = "imgui:549" +defs["igDragScalarN"][1]["namespace"] = "ImGui" +defs["igDragScalarN"][1]["ov_cimguiname"] = "igDragScalarN" +defs["igDragScalarN"][1]["ret"] = "bool" +defs["igDragScalarN"][1]["signature"] = "(const char*,ImGuiDataType,void*,int,float,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igDragScalarN"][1]["stname"] = "" +defs["igDragScalarN"]["(const char*,ImGuiDataType,void*,int,float,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igDragScalarN"][1] +defs["igDummy"] = {} +defs["igDummy"][1] = {} +defs["igDummy"][1]["args"] = "(const ImVec2 size)" +defs["igDummy"][1]["argsT"] = {} +defs["igDummy"][1]["argsT"][1] = {} +defs["igDummy"][1]["argsT"][1]["name"] = "size" +defs["igDummy"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igDummy"][1]["argsoriginal"] = "(const ImVec2& size)" +defs["igDummy"][1]["call_args"] = "(size)" +defs["igDummy"][1]["cimguiname"] = "igDummy" +defs["igDummy"][1]["defaults"] = {} +defs["igDummy"][1]["funcname"] = "Dummy" +defs["igDummy"][1]["location"] = "imgui:442" +defs["igDummy"][1]["namespace"] = "ImGui" +defs["igDummy"][1]["ov_cimguiname"] = "igDummy" +defs["igDummy"][1]["ret"] = "void" +defs["igDummy"][1]["signature"] = "(const ImVec2)" +defs["igDummy"][1]["stname"] = "" +defs["igDummy"]["(const ImVec2)"] = defs["igDummy"][1] +defs["igEnd"] = {} +defs["igEnd"][1] = {} +defs["igEnd"][1]["args"] = "()" +defs["igEnd"][1]["argsT"] = {} +defs["igEnd"][1]["argsoriginal"] = "()" +defs["igEnd"][1]["call_args"] = "()" +defs["igEnd"][1]["cimguiname"] = "igEnd" +defs["igEnd"][1]["defaults"] = {} +defs["igEnd"][1]["funcname"] = "End" +defs["igEnd"][1]["location"] = "imgui:331" +defs["igEnd"][1]["namespace"] = "ImGui" +defs["igEnd"][1]["ov_cimguiname"] = "igEnd" +defs["igEnd"][1]["ret"] = "void" +defs["igEnd"][1]["signature"] = "()" +defs["igEnd"][1]["stname"] = "" +defs["igEnd"]["()"] = defs["igEnd"][1] +defs["igEndChild"] = {} +defs["igEndChild"][1] = {} +defs["igEndChild"][1]["args"] = "()" +defs["igEndChild"][1]["argsT"] = {} +defs["igEndChild"][1]["argsoriginal"] = "()" +defs["igEndChild"][1]["call_args"] = "()" +defs["igEndChild"][1]["cimguiname"] = "igEndChild" +defs["igEndChild"][1]["defaults"] = {} +defs["igEndChild"][1]["funcname"] = "EndChild" +defs["igEndChild"][1]["location"] = "imgui:343" +defs["igEndChild"][1]["namespace"] = "ImGui" +defs["igEndChild"][1]["ov_cimguiname"] = "igEndChild" +defs["igEndChild"][1]["ret"] = "void" +defs["igEndChild"][1]["signature"] = "()" +defs["igEndChild"][1]["stname"] = "" +defs["igEndChild"]["()"] = defs["igEndChild"][1] +defs["igEndChildFrame"] = {} +defs["igEndChildFrame"][1] = {} +defs["igEndChildFrame"][1]["args"] = "()" +defs["igEndChildFrame"][1]["argsT"] = {} +defs["igEndChildFrame"][1]["argsoriginal"] = "()" +defs["igEndChildFrame"][1]["call_args"] = "()" +defs["igEndChildFrame"][1]["cimguiname"] = "igEndChildFrame" +defs["igEndChildFrame"][1]["defaults"] = {} +defs["igEndChildFrame"][1]["funcname"] = "EndChildFrame" +defs["igEndChildFrame"][1]["location"] = "imgui:873" +defs["igEndChildFrame"][1]["namespace"] = "ImGui" +defs["igEndChildFrame"][1]["ov_cimguiname"] = "igEndChildFrame" +defs["igEndChildFrame"][1]["ret"] = "void" +defs["igEndChildFrame"][1]["signature"] = "()" +defs["igEndChildFrame"][1]["stname"] = "" +defs["igEndChildFrame"]["()"] = defs["igEndChildFrame"][1] +defs["igEndCombo"] = {} +defs["igEndCombo"][1] = {} +defs["igEndCombo"][1]["args"] = "()" +defs["igEndCombo"][1]["argsT"] = {} +defs["igEndCombo"][1]["argsoriginal"] = "()" +defs["igEndCombo"][1]["call_args"] = "()" +defs["igEndCombo"][1]["cimguiname"] = "igEndCombo" +defs["igEndCombo"][1]["defaults"] = {} +defs["igEndCombo"][1]["funcname"] = "EndCombo" +defs["igEndCombo"][1]["location"] = "imgui:521" +defs["igEndCombo"][1]["namespace"] = "ImGui" +defs["igEndCombo"][1]["ov_cimguiname"] = "igEndCombo" +defs["igEndCombo"][1]["ret"] = "void" +defs["igEndCombo"][1]["signature"] = "()" +defs["igEndCombo"][1]["stname"] = "" +defs["igEndCombo"]["()"] = defs["igEndCombo"][1] +defs["igEndDisabled"] = {} +defs["igEndDisabled"][1] = {} +defs["igEndDisabled"][1]["args"] = "()" +defs["igEndDisabled"][1]["argsT"] = {} +defs["igEndDisabled"][1]["argsoriginal"] = "()" +defs["igEndDisabled"][1]["call_args"] = "()" +defs["igEndDisabled"][1]["cimguiname"] = "igEndDisabled" +defs["igEndDisabled"][1]["defaults"] = {} +defs["igEndDisabled"][1]["funcname"] = "EndDisabled" +defs["igEndDisabled"][1]["location"] = "imgui:820" +defs["igEndDisabled"][1]["namespace"] = "ImGui" +defs["igEndDisabled"][1]["ov_cimguiname"] = "igEndDisabled" +defs["igEndDisabled"][1]["ret"] = "void" +defs["igEndDisabled"][1]["signature"] = "()" +defs["igEndDisabled"][1]["stname"] = "" +defs["igEndDisabled"]["()"] = defs["igEndDisabled"][1] +defs["igEndDragDropSource"] = {} +defs["igEndDragDropSource"][1] = {} +defs["igEndDragDropSource"][1]["args"] = "()" +defs["igEndDragDropSource"][1]["argsT"] = {} +defs["igEndDragDropSource"][1]["argsoriginal"] = "()" +defs["igEndDragDropSource"][1]["call_args"] = "()" +defs["igEndDragDropSource"][1]["cimguiname"] = "igEndDragDropSource" +defs["igEndDragDropSource"][1]["defaults"] = {} +defs["igEndDragDropSource"][1]["funcname"] = "EndDragDropSource" +defs["igEndDragDropSource"][1]["location"] = "imgui:809" +defs["igEndDragDropSource"][1]["namespace"] = "ImGui" +defs["igEndDragDropSource"][1]["ov_cimguiname"] = "igEndDragDropSource" +defs["igEndDragDropSource"][1]["ret"] = "void" +defs["igEndDragDropSource"][1]["signature"] = "()" +defs["igEndDragDropSource"][1]["stname"] = "" +defs["igEndDragDropSource"]["()"] = defs["igEndDragDropSource"][1] +defs["igEndDragDropTarget"] = {} +defs["igEndDragDropTarget"][1] = {} +defs["igEndDragDropTarget"][1]["args"] = "()" +defs["igEndDragDropTarget"][1]["argsT"] = {} +defs["igEndDragDropTarget"][1]["argsoriginal"] = "()" +defs["igEndDragDropTarget"][1]["call_args"] = "()" +defs["igEndDragDropTarget"][1]["cimguiname"] = "igEndDragDropTarget" +defs["igEndDragDropTarget"][1]["defaults"] = {} +defs["igEndDragDropTarget"][1]["funcname"] = "EndDragDropTarget" +defs["igEndDragDropTarget"][1]["location"] = "imgui:812" +defs["igEndDragDropTarget"][1]["namespace"] = "ImGui" +defs["igEndDragDropTarget"][1]["ov_cimguiname"] = "igEndDragDropTarget" +defs["igEndDragDropTarget"][1]["ret"] = "void" +defs["igEndDragDropTarget"][1]["signature"] = "()" +defs["igEndDragDropTarget"][1]["stname"] = "" +defs["igEndDragDropTarget"]["()"] = defs["igEndDragDropTarget"][1] +defs["igEndFrame"] = {} +defs["igEndFrame"][1] = {} +defs["igEndFrame"][1]["args"] = "()" +defs["igEndFrame"][1]["argsT"] = {} +defs["igEndFrame"][1]["argsoriginal"] = "()" +defs["igEndFrame"][1]["call_args"] = "()" +defs["igEndFrame"][1]["cimguiname"] = "igEndFrame" +defs["igEndFrame"][1]["defaults"] = {} +defs["igEndFrame"][1]["funcname"] = "EndFrame" +defs["igEndFrame"][1]["location"] = "imgui:297" +defs["igEndFrame"][1]["namespace"] = "ImGui" +defs["igEndFrame"][1]["ov_cimguiname"] = "igEndFrame" +defs["igEndFrame"][1]["ret"] = "void" +defs["igEndFrame"][1]["signature"] = "()" +defs["igEndFrame"][1]["stname"] = "" +defs["igEndFrame"]["()"] = defs["igEndFrame"][1] +defs["igEndGroup"] = {} +defs["igEndGroup"][1] = {} +defs["igEndGroup"][1]["args"] = "()" +defs["igEndGroup"][1]["argsT"] = {} +defs["igEndGroup"][1]["argsoriginal"] = "()" +defs["igEndGroup"][1]["call_args"] = "()" +defs["igEndGroup"][1]["cimguiname"] = "igEndGroup" +defs["igEndGroup"][1]["defaults"] = {} +defs["igEndGroup"][1]["funcname"] = "EndGroup" +defs["igEndGroup"][1]["location"] = "imgui:446" +defs["igEndGroup"][1]["namespace"] = "ImGui" +defs["igEndGroup"][1]["ov_cimguiname"] = "igEndGroup" +defs["igEndGroup"][1]["ret"] = "void" +defs["igEndGroup"][1]["signature"] = "()" +defs["igEndGroup"][1]["stname"] = "" +defs["igEndGroup"]["()"] = defs["igEndGroup"][1] +defs["igEndListBox"] = {} +defs["igEndListBox"][1] = {} +defs["igEndListBox"][1]["args"] = "()" +defs["igEndListBox"][1]["argsT"] = {} +defs["igEndListBox"][1]["argsoriginal"] = "()" +defs["igEndListBox"][1]["call_args"] = "()" +defs["igEndListBox"][1]["cimguiname"] = "igEndListBox" +defs["igEndListBox"][1]["defaults"] = {} +defs["igEndListBox"][1]["funcname"] = "EndListBox" +defs["igEndListBox"][1]["location"] = "imgui:633" +defs["igEndListBox"][1]["namespace"] = "ImGui" +defs["igEndListBox"][1]["ov_cimguiname"] = "igEndListBox" +defs["igEndListBox"][1]["ret"] = "void" +defs["igEndListBox"][1]["signature"] = "()" +defs["igEndListBox"][1]["stname"] = "" +defs["igEndListBox"]["()"] = defs["igEndListBox"][1] +defs["igEndMainMenuBar"] = {} +defs["igEndMainMenuBar"][1] = {} +defs["igEndMainMenuBar"][1]["args"] = "()" +defs["igEndMainMenuBar"][1]["argsT"] = {} +defs["igEndMainMenuBar"][1]["argsoriginal"] = "()" +defs["igEndMainMenuBar"][1]["call_args"] = "()" +defs["igEndMainMenuBar"][1]["cimguiname"] = "igEndMainMenuBar" +defs["igEndMainMenuBar"][1]["defaults"] = {} +defs["igEndMainMenuBar"][1]["funcname"] = "EndMainMenuBar" +defs["igEndMainMenuBar"][1]["location"] = "imgui:659" +defs["igEndMainMenuBar"][1]["namespace"] = "ImGui" +defs["igEndMainMenuBar"][1]["ov_cimguiname"] = "igEndMainMenuBar" +defs["igEndMainMenuBar"][1]["ret"] = "void" +defs["igEndMainMenuBar"][1]["signature"] = "()" +defs["igEndMainMenuBar"][1]["stname"] = "" +defs["igEndMainMenuBar"]["()"] = defs["igEndMainMenuBar"][1] +defs["igEndMenu"] = {} +defs["igEndMenu"][1] = {} +defs["igEndMenu"][1]["args"] = "()" +defs["igEndMenu"][1]["argsT"] = {} +defs["igEndMenu"][1]["argsoriginal"] = "()" +defs["igEndMenu"][1]["call_args"] = "()" +defs["igEndMenu"][1]["cimguiname"] = "igEndMenu" +defs["igEndMenu"][1]["defaults"] = {} +defs["igEndMenu"][1]["funcname"] = "EndMenu" +defs["igEndMenu"][1]["location"] = "imgui:661" +defs["igEndMenu"][1]["namespace"] = "ImGui" +defs["igEndMenu"][1]["ov_cimguiname"] = "igEndMenu" +defs["igEndMenu"][1]["ret"] = "void" +defs["igEndMenu"][1]["signature"] = "()" +defs["igEndMenu"][1]["stname"] = "" +defs["igEndMenu"]["()"] = defs["igEndMenu"][1] +defs["igEndMenuBar"] = {} +defs["igEndMenuBar"][1] = {} +defs["igEndMenuBar"][1]["args"] = "()" +defs["igEndMenuBar"][1]["argsT"] = {} +defs["igEndMenuBar"][1]["argsoriginal"] = "()" +defs["igEndMenuBar"][1]["call_args"] = "()" +defs["igEndMenuBar"][1]["cimguiname"] = "igEndMenuBar" +defs["igEndMenuBar"][1]["defaults"] = {} +defs["igEndMenuBar"][1]["funcname"] = "EndMenuBar" +defs["igEndMenuBar"][1]["location"] = "imgui:657" +defs["igEndMenuBar"][1]["namespace"] = "ImGui" +defs["igEndMenuBar"][1]["ov_cimguiname"] = "igEndMenuBar" +defs["igEndMenuBar"][1]["ret"] = "void" +defs["igEndMenuBar"][1]["signature"] = "()" +defs["igEndMenuBar"][1]["stname"] = "" +defs["igEndMenuBar"]["()"] = defs["igEndMenuBar"][1] +defs["igEndPopup"] = {} +defs["igEndPopup"][1] = {} +defs["igEndPopup"][1]["args"] = "()" +defs["igEndPopup"][1]["argsT"] = {} +defs["igEndPopup"][1]["argsoriginal"] = "()" +defs["igEndPopup"][1]["call_args"] = "()" +defs["igEndPopup"][1]["cimguiname"] = "igEndPopup" +defs["igEndPopup"][1]["defaults"] = {} +defs["igEndPopup"][1]["funcname"] = "EndPopup" +defs["igEndPopup"][1]["location"] = "imgui:686" +defs["igEndPopup"][1]["namespace"] = "ImGui" +defs["igEndPopup"][1]["ov_cimguiname"] = "igEndPopup" +defs["igEndPopup"][1]["ret"] = "void" +defs["igEndPopup"][1]["signature"] = "()" +defs["igEndPopup"][1]["stname"] = "" +defs["igEndPopup"]["()"] = defs["igEndPopup"][1] +defs["igEndTabBar"] = {} +defs["igEndTabBar"][1] = {} +defs["igEndTabBar"][1]["args"] = "()" +defs["igEndTabBar"][1]["argsT"] = {} +defs["igEndTabBar"][1]["argsoriginal"] = "()" +defs["igEndTabBar"][1]["call_args"] = "()" +defs["igEndTabBar"][1]["cimguiname"] = "igEndTabBar" +defs["igEndTabBar"][1]["defaults"] = {} +defs["igEndTabBar"][1]["funcname"] = "EndTabBar" +defs["igEndTabBar"][1]["location"] = "imgui:786" +defs["igEndTabBar"][1]["namespace"] = "ImGui" +defs["igEndTabBar"][1]["ov_cimguiname"] = "igEndTabBar" +defs["igEndTabBar"][1]["ret"] = "void" +defs["igEndTabBar"][1]["signature"] = "()" +defs["igEndTabBar"][1]["stname"] = "" +defs["igEndTabBar"]["()"] = defs["igEndTabBar"][1] +defs["igEndTabItem"] = {} +defs["igEndTabItem"][1] = {} +defs["igEndTabItem"][1]["args"] = "()" +defs["igEndTabItem"][1]["argsT"] = {} +defs["igEndTabItem"][1]["argsoriginal"] = "()" +defs["igEndTabItem"][1]["call_args"] = "()" +defs["igEndTabItem"][1]["cimguiname"] = "igEndTabItem" +defs["igEndTabItem"][1]["defaults"] = {} +defs["igEndTabItem"][1]["funcname"] = "EndTabItem" +defs["igEndTabItem"][1]["location"] = "imgui:788" +defs["igEndTabItem"][1]["namespace"] = "ImGui" +defs["igEndTabItem"][1]["ov_cimguiname"] = "igEndTabItem" +defs["igEndTabItem"][1]["ret"] = "void" +defs["igEndTabItem"][1]["signature"] = "()" +defs["igEndTabItem"][1]["stname"] = "" +defs["igEndTabItem"]["()"] = defs["igEndTabItem"][1] +defs["igEndTable"] = {} +defs["igEndTable"][1] = {} +defs["igEndTable"][1]["args"] = "()" +defs["igEndTable"][1]["argsT"] = {} +defs["igEndTable"][1]["argsoriginal"] = "()" +defs["igEndTable"][1]["call_args"] = "()" +defs["igEndTable"][1]["cimguiname"] = "igEndTable" +defs["igEndTable"][1]["defaults"] = {} +defs["igEndTable"][1]["funcname"] = "EndTable" +defs["igEndTable"][1]["location"] = "imgui:740" +defs["igEndTable"][1]["namespace"] = "ImGui" +defs["igEndTable"][1]["ov_cimguiname"] = "igEndTable" +defs["igEndTable"][1]["ret"] = "void" +defs["igEndTable"][1]["signature"] = "()" +defs["igEndTable"][1]["stname"] = "" +defs["igEndTable"]["()"] = defs["igEndTable"][1] +defs["igEndTooltip"] = {} +defs["igEndTooltip"][1] = {} +defs["igEndTooltip"][1]["args"] = "()" +defs["igEndTooltip"][1]["argsT"] = {} +defs["igEndTooltip"][1]["argsoriginal"] = "()" +defs["igEndTooltip"][1]["call_args"] = "()" +defs["igEndTooltip"][1]["cimguiname"] = "igEndTooltip" +defs["igEndTooltip"][1]["defaults"] = {} +defs["igEndTooltip"][1]["funcname"] = "EndTooltip" +defs["igEndTooltip"][1]["location"] = "imgui:668" +defs["igEndTooltip"][1]["namespace"] = "ImGui" +defs["igEndTooltip"][1]["ov_cimguiname"] = "igEndTooltip" +defs["igEndTooltip"][1]["ret"] = "void" +defs["igEndTooltip"][1]["signature"] = "()" +defs["igEndTooltip"][1]["stname"] = "" +defs["igEndTooltip"]["()"] = defs["igEndTooltip"][1] +defs["igGetAllocatorFunctions"] = {} +defs["igGetAllocatorFunctions"][1] = {} +defs["igGetAllocatorFunctions"][1]["args"] = "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)" +defs["igGetAllocatorFunctions"][1]["argsT"] = {} +defs["igGetAllocatorFunctions"][1]["argsT"][1] = {} +defs["igGetAllocatorFunctions"][1]["argsT"][1]["name"] = "p_alloc_func" +defs["igGetAllocatorFunctions"][1]["argsT"][1]["type"] = "ImGuiMemAllocFunc*" +defs["igGetAllocatorFunctions"][1]["argsT"][2] = {} +defs["igGetAllocatorFunctions"][1]["argsT"][2]["name"] = "p_free_func" +defs["igGetAllocatorFunctions"][1]["argsT"][2]["type"] = "ImGuiMemFreeFunc*" +defs["igGetAllocatorFunctions"][1]["argsT"][3] = {} +defs["igGetAllocatorFunctions"][1]["argsT"][3]["name"] = "p_user_data" +defs["igGetAllocatorFunctions"][1]["argsT"][3]["type"] = "void**" +defs["igGetAllocatorFunctions"][1]["argsoriginal"] = "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)" +defs["igGetAllocatorFunctions"][1]["call_args"] = "(p_alloc_func,p_free_func,p_user_data)" +defs["igGetAllocatorFunctions"][1]["cimguiname"] = "igGetAllocatorFunctions" +defs["igGetAllocatorFunctions"][1]["defaults"] = {} +defs["igGetAllocatorFunctions"][1]["funcname"] = "GetAllocatorFunctions" +defs["igGetAllocatorFunctions"][1]["location"] = "imgui:941" +defs["igGetAllocatorFunctions"][1]["namespace"] = "ImGui" +defs["igGetAllocatorFunctions"][1]["ov_cimguiname"] = "igGetAllocatorFunctions" +defs["igGetAllocatorFunctions"][1]["ret"] = "void" +defs["igGetAllocatorFunctions"][1]["signature"] = "(ImGuiMemAllocFunc*,ImGuiMemFreeFunc*,void**)" +defs["igGetAllocatorFunctions"][1]["stname"] = "" +defs["igGetAllocatorFunctions"]["(ImGuiMemAllocFunc*,ImGuiMemFreeFunc*,void**)"] = defs["igGetAllocatorFunctions"][1] +defs["igGetBackgroundDrawList"] = {} +defs["igGetBackgroundDrawList"][1] = {} +defs["igGetBackgroundDrawList"][1]["args"] = "()" +defs["igGetBackgroundDrawList"][1]["argsT"] = {} +defs["igGetBackgroundDrawList"][1]["argsoriginal"] = "()" +defs["igGetBackgroundDrawList"][1]["call_args"] = "()" +defs["igGetBackgroundDrawList"][1]["cimguiname"] = "igGetBackgroundDrawList" +defs["igGetBackgroundDrawList"][1]["defaults"] = {} +defs["igGetBackgroundDrawList"][1]["funcname"] = "GetBackgroundDrawList" +defs["igGetBackgroundDrawList"][1]["location"] = "imgui:860" +defs["igGetBackgroundDrawList"][1]["namespace"] = "ImGui" +defs["igGetBackgroundDrawList"][1]["ov_cimguiname"] = "igGetBackgroundDrawList" +defs["igGetBackgroundDrawList"][1]["ret"] = "ImDrawList*" +defs["igGetBackgroundDrawList"][1]["signature"] = "()" +defs["igGetBackgroundDrawList"][1]["stname"] = "" +defs["igGetBackgroundDrawList"]["()"] = defs["igGetBackgroundDrawList"][1] +defs["igGetClipboardText"] = {} +defs["igGetClipboardText"][1] = {} +defs["igGetClipboardText"][1]["args"] = "()" +defs["igGetClipboardText"][1]["argsT"] = {} +defs["igGetClipboardText"][1]["argsoriginal"] = "()" +defs["igGetClipboardText"][1]["call_args"] = "()" +defs["igGetClipboardText"][1]["cimguiname"] = "igGetClipboardText" +defs["igGetClipboardText"][1]["defaults"] = {} +defs["igGetClipboardText"][1]["funcname"] = "GetClipboardText" +defs["igGetClipboardText"][1]["location"] = "imgui:920" +defs["igGetClipboardText"][1]["namespace"] = "ImGui" +defs["igGetClipboardText"][1]["ov_cimguiname"] = "igGetClipboardText" +defs["igGetClipboardText"][1]["ret"] = "const char*" +defs["igGetClipboardText"][1]["signature"] = "()" +defs["igGetClipboardText"][1]["stname"] = "" +defs["igGetClipboardText"]["()"] = defs["igGetClipboardText"][1] +defs["igGetColorU32"] = {} +defs["igGetColorU32"][1] = {} +defs["igGetColorU32"][1]["args"] = "(ImGuiCol idx,float alpha_mul)" +defs["igGetColorU32"][1]["argsT"] = {} +defs["igGetColorU32"][1]["argsT"][1] = {} +defs["igGetColorU32"][1]["argsT"][1]["name"] = "idx" +defs["igGetColorU32"][1]["argsT"][1]["type"] = "ImGuiCol" +defs["igGetColorU32"][1]["argsT"][2] = {} +defs["igGetColorU32"][1]["argsT"][2]["name"] = "alpha_mul" +defs["igGetColorU32"][1]["argsT"][2]["type"] = "float" +defs["igGetColorU32"][1]["argsoriginal"] = "(ImGuiCol idx,float alpha_mul=1.0f)" +defs["igGetColorU32"][1]["call_args"] = "(idx,alpha_mul)" +defs["igGetColorU32"][1]["cimguiname"] = "igGetColorU32" +defs["igGetColorU32"][1]["defaults"] = {} +defs["igGetColorU32"][1]["defaults"]["alpha_mul"] = "1.0f" +defs["igGetColorU32"][1]["funcname"] = "GetColorU32" +defs["igGetColorU32"][1]["location"] = "imgui:426" +defs["igGetColorU32"][1]["namespace"] = "ImGui" +defs["igGetColorU32"][1]["ov_cimguiname"] = "igGetColorU32_Col" +defs["igGetColorU32"][1]["ret"] = "ImU32" +defs["igGetColorU32"][1]["signature"] = "(ImGuiCol,float)" +defs["igGetColorU32"][1]["stname"] = "" +defs["igGetColorU32"][2] = {} +defs["igGetColorU32"][2]["args"] = "(const ImVec4 col)" +defs["igGetColorU32"][2]["argsT"] = {} +defs["igGetColorU32"][2]["argsT"][1] = {} +defs["igGetColorU32"][2]["argsT"][1]["name"] = "col" +defs["igGetColorU32"][2]["argsT"][1]["type"] = "const ImVec4" +defs["igGetColorU32"][2]["argsoriginal"] = "(const ImVec4& col)" +defs["igGetColorU32"][2]["call_args"] = "(col)" +defs["igGetColorU32"][2]["cimguiname"] = "igGetColorU32" +defs["igGetColorU32"][2]["defaults"] = {} +defs["igGetColorU32"][2]["funcname"] = "GetColorU32" +defs["igGetColorU32"][2]["location"] = "imgui:427" +defs["igGetColorU32"][2]["namespace"] = "ImGui" +defs["igGetColorU32"][2]["ov_cimguiname"] = "igGetColorU32_Vec4" +defs["igGetColorU32"][2]["ret"] = "ImU32" +defs["igGetColorU32"][2]["signature"] = "(const ImVec4)" +defs["igGetColorU32"][2]["stname"] = "" +defs["igGetColorU32"][3] = {} +defs["igGetColorU32"][3]["args"] = "(ImU32 col)" +defs["igGetColorU32"][3]["argsT"] = {} +defs["igGetColorU32"][3]["argsT"][1] = {} +defs["igGetColorU32"][3]["argsT"][1]["name"] = "col" +defs["igGetColorU32"][3]["argsT"][1]["type"] = "ImU32" +defs["igGetColorU32"][3]["argsoriginal"] = "(ImU32 col)" +defs["igGetColorU32"][3]["call_args"] = "(col)" +defs["igGetColorU32"][3]["cimguiname"] = "igGetColorU32" +defs["igGetColorU32"][3]["defaults"] = {} +defs["igGetColorU32"][3]["funcname"] = "GetColorU32" +defs["igGetColorU32"][3]["location"] = "imgui:428" +defs["igGetColorU32"][3]["namespace"] = "ImGui" +defs["igGetColorU32"][3]["ov_cimguiname"] = "igGetColorU32_U32" +defs["igGetColorU32"][3]["ret"] = "ImU32" +defs["igGetColorU32"][3]["signature"] = "(ImU32)" +defs["igGetColorU32"][3]["stname"] = "" +defs["igGetColorU32"]["(ImGuiCol,float)"] = defs["igGetColorU32"][1] +defs["igGetColorU32"]["(ImU32)"] = defs["igGetColorU32"][3] +defs["igGetColorU32"]["(const ImVec4)"] = defs["igGetColorU32"][2] +defs["igGetColumnIndex"] = {} +defs["igGetColumnIndex"][1] = {} +defs["igGetColumnIndex"][1]["args"] = "()" +defs["igGetColumnIndex"][1]["argsT"] = {} +defs["igGetColumnIndex"][1]["argsoriginal"] = "()" +defs["igGetColumnIndex"][1]["call_args"] = "()" +defs["igGetColumnIndex"][1]["cimguiname"] = "igGetColumnIndex" +defs["igGetColumnIndex"][1]["defaults"] = {} +defs["igGetColumnIndex"][1]["funcname"] = "GetColumnIndex" +defs["igGetColumnIndex"][1]["location"] = "imgui:777" +defs["igGetColumnIndex"][1]["namespace"] = "ImGui" +defs["igGetColumnIndex"][1]["ov_cimguiname"] = "igGetColumnIndex" +defs["igGetColumnIndex"][1]["ret"] = "int" +defs["igGetColumnIndex"][1]["signature"] = "()" +defs["igGetColumnIndex"][1]["stname"] = "" +defs["igGetColumnIndex"]["()"] = defs["igGetColumnIndex"][1] +defs["igGetColumnOffset"] = {} +defs["igGetColumnOffset"][1] = {} +defs["igGetColumnOffset"][1]["args"] = "(int column_index)" +defs["igGetColumnOffset"][1]["argsT"] = {} +defs["igGetColumnOffset"][1]["argsT"][1] = {} +defs["igGetColumnOffset"][1]["argsT"][1]["name"] = "column_index" +defs["igGetColumnOffset"][1]["argsT"][1]["type"] = "int" +defs["igGetColumnOffset"][1]["argsoriginal"] = "(int column_index=-1)" +defs["igGetColumnOffset"][1]["call_args"] = "(column_index)" +defs["igGetColumnOffset"][1]["cimguiname"] = "igGetColumnOffset" +defs["igGetColumnOffset"][1]["defaults"] = {} +defs["igGetColumnOffset"][1]["defaults"]["column_index"] = "-1" +defs["igGetColumnOffset"][1]["funcname"] = "GetColumnOffset" +defs["igGetColumnOffset"][1]["location"] = "imgui:780" +defs["igGetColumnOffset"][1]["namespace"] = "ImGui" +defs["igGetColumnOffset"][1]["ov_cimguiname"] = "igGetColumnOffset" +defs["igGetColumnOffset"][1]["ret"] = "float" +defs["igGetColumnOffset"][1]["signature"] = "(int)" +defs["igGetColumnOffset"][1]["stname"] = "" +defs["igGetColumnOffset"]["(int)"] = defs["igGetColumnOffset"][1] +defs["igGetColumnWidth"] = {} +defs["igGetColumnWidth"][1] = {} +defs["igGetColumnWidth"][1]["args"] = "(int column_index)" +defs["igGetColumnWidth"][1]["argsT"] = {} +defs["igGetColumnWidth"][1]["argsT"][1] = {} +defs["igGetColumnWidth"][1]["argsT"][1]["name"] = "column_index" +defs["igGetColumnWidth"][1]["argsT"][1]["type"] = "int" +defs["igGetColumnWidth"][1]["argsoriginal"] = "(int column_index=-1)" +defs["igGetColumnWidth"][1]["call_args"] = "(column_index)" +defs["igGetColumnWidth"][1]["cimguiname"] = "igGetColumnWidth" +defs["igGetColumnWidth"][1]["defaults"] = {} +defs["igGetColumnWidth"][1]["defaults"]["column_index"] = "-1" +defs["igGetColumnWidth"][1]["funcname"] = "GetColumnWidth" +defs["igGetColumnWidth"][1]["location"] = "imgui:778" +defs["igGetColumnWidth"][1]["namespace"] = "ImGui" +defs["igGetColumnWidth"][1]["ov_cimguiname"] = "igGetColumnWidth" +defs["igGetColumnWidth"][1]["ret"] = "float" +defs["igGetColumnWidth"][1]["signature"] = "(int)" +defs["igGetColumnWidth"][1]["stname"] = "" +defs["igGetColumnWidth"]["(int)"] = defs["igGetColumnWidth"][1] +defs["igGetColumnsCount"] = {} +defs["igGetColumnsCount"][1] = {} +defs["igGetColumnsCount"][1]["args"] = "()" +defs["igGetColumnsCount"][1]["argsT"] = {} +defs["igGetColumnsCount"][1]["argsoriginal"] = "()" +defs["igGetColumnsCount"][1]["call_args"] = "()" +defs["igGetColumnsCount"][1]["cimguiname"] = "igGetColumnsCount" +defs["igGetColumnsCount"][1]["defaults"] = {} +defs["igGetColumnsCount"][1]["funcname"] = "GetColumnsCount" +defs["igGetColumnsCount"][1]["location"] = "imgui:782" +defs["igGetColumnsCount"][1]["namespace"] = "ImGui" +defs["igGetColumnsCount"][1]["ov_cimguiname"] = "igGetColumnsCount" +defs["igGetColumnsCount"][1]["ret"] = "int" +defs["igGetColumnsCount"][1]["signature"] = "()" +defs["igGetColumnsCount"][1]["stname"] = "" +defs["igGetColumnsCount"]["()"] = defs["igGetColumnsCount"][1] +defs["igGetContentRegionAvail"] = {} +defs["igGetContentRegionAvail"][1] = {} +defs["igGetContentRegionAvail"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetContentRegionAvail"][1]["argsT"] = {} +defs["igGetContentRegionAvail"][1]["argsT"][1] = {} +defs["igGetContentRegionAvail"][1]["argsT"][1]["name"] = "pOut" +defs["igGetContentRegionAvail"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetContentRegionAvail"][1]["argsoriginal"] = "()" +defs["igGetContentRegionAvail"][1]["call_args"] = "()" +defs["igGetContentRegionAvail"][1]["cimguiname"] = "igGetContentRegionAvail" +defs["igGetContentRegionAvail"][1]["defaults"] = {} +defs["igGetContentRegionAvail"][1]["funcname"] = "GetContentRegionAvail" +defs["igGetContentRegionAvail"][1]["location"] = "imgui:380" +defs["igGetContentRegionAvail"][1]["namespace"] = "ImGui" +defs["igGetContentRegionAvail"][1]["nonUDT"] = 1 +defs["igGetContentRegionAvail"][1]["ov_cimguiname"] = "igGetContentRegionAvail" +defs["igGetContentRegionAvail"][1]["ret"] = "void" +defs["igGetContentRegionAvail"][1]["signature"] = "()" +defs["igGetContentRegionAvail"][1]["stname"] = "" +defs["igGetContentRegionAvail"]["()"] = defs["igGetContentRegionAvail"][1] +defs["igGetContentRegionMax"] = {} +defs["igGetContentRegionMax"][1] = {} +defs["igGetContentRegionMax"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetContentRegionMax"][1]["argsT"] = {} +defs["igGetContentRegionMax"][1]["argsT"][1] = {} +defs["igGetContentRegionMax"][1]["argsT"][1]["name"] = "pOut" +defs["igGetContentRegionMax"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetContentRegionMax"][1]["argsoriginal"] = "()" +defs["igGetContentRegionMax"][1]["call_args"] = "()" +defs["igGetContentRegionMax"][1]["cimguiname"] = "igGetContentRegionMax" +defs["igGetContentRegionMax"][1]["defaults"] = {} +defs["igGetContentRegionMax"][1]["funcname"] = "GetContentRegionMax" +defs["igGetContentRegionMax"][1]["location"] = "imgui:381" +defs["igGetContentRegionMax"][1]["namespace"] = "ImGui" +defs["igGetContentRegionMax"][1]["nonUDT"] = 1 +defs["igGetContentRegionMax"][1]["ov_cimguiname"] = "igGetContentRegionMax" +defs["igGetContentRegionMax"][1]["ret"] = "void" +defs["igGetContentRegionMax"][1]["signature"] = "()" +defs["igGetContentRegionMax"][1]["stname"] = "" +defs["igGetContentRegionMax"]["()"] = defs["igGetContentRegionMax"][1] +defs["igGetCurrentContext"] = {} +defs["igGetCurrentContext"][1] = {} +defs["igGetCurrentContext"][1]["args"] = "()" +defs["igGetCurrentContext"][1]["argsT"] = {} +defs["igGetCurrentContext"][1]["argsoriginal"] = "()" +defs["igGetCurrentContext"][1]["call_args"] = "()" +defs["igGetCurrentContext"][1]["cimguiname"] = "igGetCurrentContext" +defs["igGetCurrentContext"][1]["defaults"] = {} +defs["igGetCurrentContext"][1]["funcname"] = "GetCurrentContext" +defs["igGetCurrentContext"][1]["location"] = "imgui:290" +defs["igGetCurrentContext"][1]["namespace"] = "ImGui" +defs["igGetCurrentContext"][1]["ov_cimguiname"] = "igGetCurrentContext" +defs["igGetCurrentContext"][1]["ret"] = "ImGuiContext*" +defs["igGetCurrentContext"][1]["signature"] = "()" +defs["igGetCurrentContext"][1]["stname"] = "" +defs["igGetCurrentContext"]["()"] = defs["igGetCurrentContext"][1] +defs["igGetCursorPos"] = {} +defs["igGetCursorPos"][1] = {} +defs["igGetCursorPos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetCursorPos"][1]["argsT"] = {} +defs["igGetCursorPos"][1]["argsT"][1] = {} +defs["igGetCursorPos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetCursorPos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetCursorPos"][1]["argsoriginal"] = "()" +defs["igGetCursorPos"][1]["call_args"] = "()" +defs["igGetCursorPos"][1]["cimguiname"] = "igGetCursorPos" +defs["igGetCursorPos"][1]["defaults"] = {} +defs["igGetCursorPos"][1]["funcname"] = "GetCursorPos" +defs["igGetCursorPos"][1]["location"] = "imgui:447" +defs["igGetCursorPos"][1]["namespace"] = "ImGui" +defs["igGetCursorPos"][1]["nonUDT"] = 1 +defs["igGetCursorPos"][1]["ov_cimguiname"] = "igGetCursorPos" +defs["igGetCursorPos"][1]["ret"] = "void" +defs["igGetCursorPos"][1]["signature"] = "()" +defs["igGetCursorPos"][1]["stname"] = "" +defs["igGetCursorPos"]["()"] = defs["igGetCursorPos"][1] +defs["igGetCursorPosX"] = {} +defs["igGetCursorPosX"][1] = {} +defs["igGetCursorPosX"][1]["args"] = "()" +defs["igGetCursorPosX"][1]["argsT"] = {} +defs["igGetCursorPosX"][1]["argsoriginal"] = "()" +defs["igGetCursorPosX"][1]["call_args"] = "()" +defs["igGetCursorPosX"][1]["cimguiname"] = "igGetCursorPosX" +defs["igGetCursorPosX"][1]["defaults"] = {} +defs["igGetCursorPosX"][1]["funcname"] = "GetCursorPosX" +defs["igGetCursorPosX"][1]["location"] = "imgui:448" +defs["igGetCursorPosX"][1]["namespace"] = "ImGui" +defs["igGetCursorPosX"][1]["ov_cimguiname"] = "igGetCursorPosX" +defs["igGetCursorPosX"][1]["ret"] = "float" +defs["igGetCursorPosX"][1]["signature"] = "()" +defs["igGetCursorPosX"][1]["stname"] = "" +defs["igGetCursorPosX"]["()"] = defs["igGetCursorPosX"][1] +defs["igGetCursorPosY"] = {} +defs["igGetCursorPosY"][1] = {} +defs["igGetCursorPosY"][1]["args"] = "()" +defs["igGetCursorPosY"][1]["argsT"] = {} +defs["igGetCursorPosY"][1]["argsoriginal"] = "()" +defs["igGetCursorPosY"][1]["call_args"] = "()" +defs["igGetCursorPosY"][1]["cimguiname"] = "igGetCursorPosY" +defs["igGetCursorPosY"][1]["defaults"] = {} +defs["igGetCursorPosY"][1]["funcname"] = "GetCursorPosY" +defs["igGetCursorPosY"][1]["location"] = "imgui:449" +defs["igGetCursorPosY"][1]["namespace"] = "ImGui" +defs["igGetCursorPosY"][1]["ov_cimguiname"] = "igGetCursorPosY" +defs["igGetCursorPosY"][1]["ret"] = "float" +defs["igGetCursorPosY"][1]["signature"] = "()" +defs["igGetCursorPosY"][1]["stname"] = "" +defs["igGetCursorPosY"]["()"] = defs["igGetCursorPosY"][1] +defs["igGetCursorScreenPos"] = {} +defs["igGetCursorScreenPos"][1] = {} +defs["igGetCursorScreenPos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetCursorScreenPos"][1]["argsT"] = {} +defs["igGetCursorScreenPos"][1]["argsT"][1] = {} +defs["igGetCursorScreenPos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetCursorScreenPos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetCursorScreenPos"][1]["argsoriginal"] = "()" +defs["igGetCursorScreenPos"][1]["call_args"] = "()" +defs["igGetCursorScreenPos"][1]["cimguiname"] = "igGetCursorScreenPos" +defs["igGetCursorScreenPos"][1]["defaults"] = {} +defs["igGetCursorScreenPos"][1]["funcname"] = "GetCursorScreenPos" +defs["igGetCursorScreenPos"][1]["location"] = "imgui:454" +defs["igGetCursorScreenPos"][1]["namespace"] = "ImGui" +defs["igGetCursorScreenPos"][1]["nonUDT"] = 1 +defs["igGetCursorScreenPos"][1]["ov_cimguiname"] = "igGetCursorScreenPos" +defs["igGetCursorScreenPos"][1]["ret"] = "void" +defs["igGetCursorScreenPos"][1]["signature"] = "()" +defs["igGetCursorScreenPos"][1]["stname"] = "" +defs["igGetCursorScreenPos"]["()"] = defs["igGetCursorScreenPos"][1] +defs["igGetCursorStartPos"] = {} +defs["igGetCursorStartPos"][1] = {} +defs["igGetCursorStartPos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetCursorStartPos"][1]["argsT"] = {} +defs["igGetCursorStartPos"][1]["argsT"][1] = {} +defs["igGetCursorStartPos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetCursorStartPos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetCursorStartPos"][1]["argsoriginal"] = "()" +defs["igGetCursorStartPos"][1]["call_args"] = "()" +defs["igGetCursorStartPos"][1]["cimguiname"] = "igGetCursorStartPos" +defs["igGetCursorStartPos"][1]["defaults"] = {} +defs["igGetCursorStartPos"][1]["funcname"] = "GetCursorStartPos" +defs["igGetCursorStartPos"][1]["location"] = "imgui:453" +defs["igGetCursorStartPos"][1]["namespace"] = "ImGui" +defs["igGetCursorStartPos"][1]["nonUDT"] = 1 +defs["igGetCursorStartPos"][1]["ov_cimguiname"] = "igGetCursorStartPos" +defs["igGetCursorStartPos"][1]["ret"] = "void" +defs["igGetCursorStartPos"][1]["signature"] = "()" +defs["igGetCursorStartPos"][1]["stname"] = "" +defs["igGetCursorStartPos"]["()"] = defs["igGetCursorStartPos"][1] +defs["igGetDragDropPayload"] = {} +defs["igGetDragDropPayload"][1] = {} +defs["igGetDragDropPayload"][1]["args"] = "()" +defs["igGetDragDropPayload"][1]["argsT"] = {} +defs["igGetDragDropPayload"][1]["argsoriginal"] = "()" +defs["igGetDragDropPayload"][1]["call_args"] = "()" +defs["igGetDragDropPayload"][1]["cimguiname"] = "igGetDragDropPayload" +defs["igGetDragDropPayload"][1]["defaults"] = {} +defs["igGetDragDropPayload"][1]["funcname"] = "GetDragDropPayload" +defs["igGetDragDropPayload"][1]["location"] = "imgui:813" +defs["igGetDragDropPayload"][1]["namespace"] = "ImGui" +defs["igGetDragDropPayload"][1]["ov_cimguiname"] = "igGetDragDropPayload" +defs["igGetDragDropPayload"][1]["ret"] = "const ImGuiPayload*" +defs["igGetDragDropPayload"][1]["signature"] = "()" +defs["igGetDragDropPayload"][1]["stname"] = "" +defs["igGetDragDropPayload"]["()"] = defs["igGetDragDropPayload"][1] +defs["igGetDrawData"] = {} +defs["igGetDrawData"][1] = {} +defs["igGetDrawData"][1]["args"] = "()" +defs["igGetDrawData"][1]["argsT"] = {} +defs["igGetDrawData"][1]["argsoriginal"] = "()" +defs["igGetDrawData"][1]["call_args"] = "()" +defs["igGetDrawData"][1]["cimguiname"] = "igGetDrawData" +defs["igGetDrawData"][1]["defaults"] = {} +defs["igGetDrawData"][1]["funcname"] = "GetDrawData" +defs["igGetDrawData"][1]["location"] = "imgui:299" +defs["igGetDrawData"][1]["namespace"] = "ImGui" +defs["igGetDrawData"][1]["ov_cimguiname"] = "igGetDrawData" +defs["igGetDrawData"][1]["ret"] = "ImDrawData*" +defs["igGetDrawData"][1]["signature"] = "()" +defs["igGetDrawData"][1]["stname"] = "" +defs["igGetDrawData"]["()"] = defs["igGetDrawData"][1] +defs["igGetDrawListSharedData"] = {} +defs["igGetDrawListSharedData"][1] = {} +defs["igGetDrawListSharedData"][1]["args"] = "()" +defs["igGetDrawListSharedData"][1]["argsT"] = {} +defs["igGetDrawListSharedData"][1]["argsoriginal"] = "()" +defs["igGetDrawListSharedData"][1]["call_args"] = "()" +defs["igGetDrawListSharedData"][1]["cimguiname"] = "igGetDrawListSharedData" +defs["igGetDrawListSharedData"][1]["defaults"] = {} +defs["igGetDrawListSharedData"][1]["funcname"] = "GetDrawListSharedData" +defs["igGetDrawListSharedData"][1]["location"] = "imgui:868" +defs["igGetDrawListSharedData"][1]["namespace"] = "ImGui" +defs["igGetDrawListSharedData"][1]["ov_cimguiname"] = "igGetDrawListSharedData" +defs["igGetDrawListSharedData"][1]["ret"] = "ImDrawListSharedData*" +defs["igGetDrawListSharedData"][1]["signature"] = "()" +defs["igGetDrawListSharedData"][1]["stname"] = "" +defs["igGetDrawListSharedData"]["()"] = defs["igGetDrawListSharedData"][1] +defs["igGetFont"] = {} +defs["igGetFont"][1] = {} +defs["igGetFont"][1]["args"] = "()" +defs["igGetFont"][1]["argsT"] = {} +defs["igGetFont"][1]["argsoriginal"] = "()" +defs["igGetFont"][1]["call_args"] = "()" +defs["igGetFont"][1]["cimguiname"] = "igGetFont" +defs["igGetFont"][1]["defaults"] = {} +defs["igGetFont"][1]["funcname"] = "GetFont" +defs["igGetFont"][1]["location"] = "imgui:423" +defs["igGetFont"][1]["namespace"] = "ImGui" +defs["igGetFont"][1]["ov_cimguiname"] = "igGetFont" +defs["igGetFont"][1]["ret"] = "ImFont*" +defs["igGetFont"][1]["signature"] = "()" +defs["igGetFont"][1]["stname"] = "" +defs["igGetFont"]["()"] = defs["igGetFont"][1] +defs["igGetFontSize"] = {} +defs["igGetFontSize"][1] = {} +defs["igGetFontSize"][1]["args"] = "()" +defs["igGetFontSize"][1]["argsT"] = {} +defs["igGetFontSize"][1]["argsoriginal"] = "()" +defs["igGetFontSize"][1]["call_args"] = "()" +defs["igGetFontSize"][1]["cimguiname"] = "igGetFontSize" +defs["igGetFontSize"][1]["defaults"] = {} +defs["igGetFontSize"][1]["funcname"] = "GetFontSize" +defs["igGetFontSize"][1]["location"] = "imgui:424" +defs["igGetFontSize"][1]["namespace"] = "ImGui" +defs["igGetFontSize"][1]["ov_cimguiname"] = "igGetFontSize" +defs["igGetFontSize"][1]["ret"] = "float" +defs["igGetFontSize"][1]["signature"] = "()" +defs["igGetFontSize"][1]["stname"] = "" +defs["igGetFontSize"]["()"] = defs["igGetFontSize"][1] +defs["igGetFontTexUvWhitePixel"] = {} +defs["igGetFontTexUvWhitePixel"][1] = {} +defs["igGetFontTexUvWhitePixel"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetFontTexUvWhitePixel"][1]["argsT"] = {} +defs["igGetFontTexUvWhitePixel"][1]["argsT"][1] = {} +defs["igGetFontTexUvWhitePixel"][1]["argsT"][1]["name"] = "pOut" +defs["igGetFontTexUvWhitePixel"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetFontTexUvWhitePixel"][1]["argsoriginal"] = "()" +defs["igGetFontTexUvWhitePixel"][1]["call_args"] = "()" +defs["igGetFontTexUvWhitePixel"][1]["cimguiname"] = "igGetFontTexUvWhitePixel" +defs["igGetFontTexUvWhitePixel"][1]["defaults"] = {} +defs["igGetFontTexUvWhitePixel"][1]["funcname"] = "GetFontTexUvWhitePixel" +defs["igGetFontTexUvWhitePixel"][1]["location"] = "imgui:425" +defs["igGetFontTexUvWhitePixel"][1]["namespace"] = "ImGui" +defs["igGetFontTexUvWhitePixel"][1]["nonUDT"] = 1 +defs["igGetFontTexUvWhitePixel"][1]["ov_cimguiname"] = "igGetFontTexUvWhitePixel" +defs["igGetFontTexUvWhitePixel"][1]["ret"] = "void" +defs["igGetFontTexUvWhitePixel"][1]["signature"] = "()" +defs["igGetFontTexUvWhitePixel"][1]["stname"] = "" +defs["igGetFontTexUvWhitePixel"]["()"] = defs["igGetFontTexUvWhitePixel"][1] +defs["igGetForegroundDrawList"] = {} +defs["igGetForegroundDrawList"][1] = {} +defs["igGetForegroundDrawList"][1]["args"] = "()" +defs["igGetForegroundDrawList"][1]["argsT"] = {} +defs["igGetForegroundDrawList"][1]["argsoriginal"] = "()" +defs["igGetForegroundDrawList"][1]["call_args"] = "()" +defs["igGetForegroundDrawList"][1]["cimguiname"] = "igGetForegroundDrawList" +defs["igGetForegroundDrawList"][1]["defaults"] = {} +defs["igGetForegroundDrawList"][1]["funcname"] = "GetForegroundDrawList" +defs["igGetForegroundDrawList"][1]["location"] = "imgui:861" +defs["igGetForegroundDrawList"][1]["namespace"] = "ImGui" +defs["igGetForegroundDrawList"][1]["ov_cimguiname"] = "igGetForegroundDrawList" +defs["igGetForegroundDrawList"][1]["ret"] = "ImDrawList*" +defs["igGetForegroundDrawList"][1]["signature"] = "()" +defs["igGetForegroundDrawList"][1]["stname"] = "" +defs["igGetForegroundDrawList"]["()"] = defs["igGetForegroundDrawList"][1] +defs["igGetFrameCount"] = {} +defs["igGetFrameCount"][1] = {} +defs["igGetFrameCount"][1]["args"] = "()" +defs["igGetFrameCount"][1]["argsT"] = {} +defs["igGetFrameCount"][1]["argsoriginal"] = "()" +defs["igGetFrameCount"][1]["call_args"] = "()" +defs["igGetFrameCount"][1]["cimguiname"] = "igGetFrameCount" +defs["igGetFrameCount"][1]["defaults"] = {} +defs["igGetFrameCount"][1]["funcname"] = "GetFrameCount" +defs["igGetFrameCount"][1]["location"] = "imgui:867" +defs["igGetFrameCount"][1]["namespace"] = "ImGui" +defs["igGetFrameCount"][1]["ov_cimguiname"] = "igGetFrameCount" +defs["igGetFrameCount"][1]["ret"] = "int" +defs["igGetFrameCount"][1]["signature"] = "()" +defs["igGetFrameCount"][1]["stname"] = "" +defs["igGetFrameCount"]["()"] = defs["igGetFrameCount"][1] +defs["igGetFrameHeight"] = {} +defs["igGetFrameHeight"][1] = {} +defs["igGetFrameHeight"][1]["args"] = "()" +defs["igGetFrameHeight"][1]["argsT"] = {} +defs["igGetFrameHeight"][1]["argsoriginal"] = "()" +defs["igGetFrameHeight"][1]["call_args"] = "()" +defs["igGetFrameHeight"][1]["cimguiname"] = "igGetFrameHeight" +defs["igGetFrameHeight"][1]["defaults"] = {} +defs["igGetFrameHeight"][1]["funcname"] = "GetFrameHeight" +defs["igGetFrameHeight"][1]["location"] = "imgui:459" +defs["igGetFrameHeight"][1]["namespace"] = "ImGui" +defs["igGetFrameHeight"][1]["ov_cimguiname"] = "igGetFrameHeight" +defs["igGetFrameHeight"][1]["ret"] = "float" +defs["igGetFrameHeight"][1]["signature"] = "()" +defs["igGetFrameHeight"][1]["stname"] = "" +defs["igGetFrameHeight"]["()"] = defs["igGetFrameHeight"][1] +defs["igGetFrameHeightWithSpacing"] = {} +defs["igGetFrameHeightWithSpacing"][1] = {} +defs["igGetFrameHeightWithSpacing"][1]["args"] = "()" +defs["igGetFrameHeightWithSpacing"][1]["argsT"] = {} +defs["igGetFrameHeightWithSpacing"][1]["argsoriginal"] = "()" +defs["igGetFrameHeightWithSpacing"][1]["call_args"] = "()" +defs["igGetFrameHeightWithSpacing"][1]["cimguiname"] = "igGetFrameHeightWithSpacing" +defs["igGetFrameHeightWithSpacing"][1]["defaults"] = {} +defs["igGetFrameHeightWithSpacing"][1]["funcname"] = "GetFrameHeightWithSpacing" +defs["igGetFrameHeightWithSpacing"][1]["location"] = "imgui:460" +defs["igGetFrameHeightWithSpacing"][1]["namespace"] = "ImGui" +defs["igGetFrameHeightWithSpacing"][1]["ov_cimguiname"] = "igGetFrameHeightWithSpacing" +defs["igGetFrameHeightWithSpacing"][1]["ret"] = "float" +defs["igGetFrameHeightWithSpacing"][1]["signature"] = "()" +defs["igGetFrameHeightWithSpacing"][1]["stname"] = "" +defs["igGetFrameHeightWithSpacing"]["()"] = defs["igGetFrameHeightWithSpacing"][1] +defs["igGetID"] = {} +defs["igGetID"][1] = {} +defs["igGetID"][1]["args"] = "(const char* str_id)" +defs["igGetID"][1]["argsT"] = {} +defs["igGetID"][1]["argsT"][1] = {} +defs["igGetID"][1]["argsT"][1]["name"] = "str_id" +defs["igGetID"][1]["argsT"][1]["type"] = "const char*" +defs["igGetID"][1]["argsoriginal"] = "(const char* str_id)" +defs["igGetID"][1]["call_args"] = "(str_id)" +defs["igGetID"][1]["cimguiname"] = "igGetID" +defs["igGetID"][1]["defaults"] = {} +defs["igGetID"][1]["funcname"] = "GetID" +defs["igGetID"][1]["location"] = "imgui:478" +defs["igGetID"][1]["namespace"] = "ImGui" +defs["igGetID"][1]["ov_cimguiname"] = "igGetID_Str" +defs["igGetID"][1]["ret"] = "ImGuiID" +defs["igGetID"][1]["signature"] = "(const char*)" +defs["igGetID"][1]["stname"] = "" +defs["igGetID"][2] = {} +defs["igGetID"][2]["args"] = "(const char* str_id_begin,const char* str_id_end)" +defs["igGetID"][2]["argsT"] = {} +defs["igGetID"][2]["argsT"][1] = {} +defs["igGetID"][2]["argsT"][1]["name"] = "str_id_begin" +defs["igGetID"][2]["argsT"][1]["type"] = "const char*" +defs["igGetID"][2]["argsT"][2] = {} +defs["igGetID"][2]["argsT"][2]["name"] = "str_id_end" +defs["igGetID"][2]["argsT"][2]["type"] = "const char*" +defs["igGetID"][2]["argsoriginal"] = "(const char* str_id_begin,const char* str_id_end)" +defs["igGetID"][2]["call_args"] = "(str_id_begin,str_id_end)" +defs["igGetID"][2]["cimguiname"] = "igGetID" +defs["igGetID"][2]["defaults"] = {} +defs["igGetID"][2]["funcname"] = "GetID" +defs["igGetID"][2]["location"] = "imgui:479" +defs["igGetID"][2]["namespace"] = "ImGui" +defs["igGetID"][2]["ov_cimguiname"] = "igGetID_StrStr" +defs["igGetID"][2]["ret"] = "ImGuiID" +defs["igGetID"][2]["signature"] = "(const char*,const char*)" +defs["igGetID"][2]["stname"] = "" +defs["igGetID"][3] = {} +defs["igGetID"][3]["args"] = "(const void* ptr_id)" +defs["igGetID"][3]["argsT"] = {} +defs["igGetID"][3]["argsT"][1] = {} +defs["igGetID"][3]["argsT"][1]["name"] = "ptr_id" +defs["igGetID"][3]["argsT"][1]["type"] = "const void*" +defs["igGetID"][3]["argsoriginal"] = "(const void* ptr_id)" +defs["igGetID"][3]["call_args"] = "(ptr_id)" +defs["igGetID"][3]["cimguiname"] = "igGetID" +defs["igGetID"][3]["defaults"] = {} +defs["igGetID"][3]["funcname"] = "GetID" +defs["igGetID"][3]["location"] = "imgui:480" +defs["igGetID"][3]["namespace"] = "ImGui" +defs["igGetID"][3]["ov_cimguiname"] = "igGetID_Ptr" +defs["igGetID"][3]["ret"] = "ImGuiID" +defs["igGetID"][3]["signature"] = "(const void*)" +defs["igGetID"][3]["stname"] = "" +defs["igGetID"]["(const char*)"] = defs["igGetID"][1] +defs["igGetID"]["(const char*,const char*)"] = defs["igGetID"][2] +defs["igGetID"]["(const void*)"] = defs["igGetID"][3] +defs["igGetIO"] = {} +defs["igGetIO"][1] = {} +defs["igGetIO"][1]["args"] = "()" +defs["igGetIO"][1]["argsT"] = {} +defs["igGetIO"][1]["argsoriginal"] = "()" +defs["igGetIO"][1]["call_args"] = "()" +defs["igGetIO"][1]["cimguiname"] = "igGetIO" +defs["igGetIO"][1]["defaults"] = {} +defs["igGetIO"][1]["funcname"] = "GetIO" +defs["igGetIO"][1]["location"] = "imgui:294" +defs["igGetIO"][1]["namespace"] = "ImGui" +defs["igGetIO"][1]["ov_cimguiname"] = "igGetIO" +defs["igGetIO"][1]["ret"] = "ImGuiIO*" +defs["igGetIO"][1]["retref"] = "&" +defs["igGetIO"][1]["signature"] = "()" +defs["igGetIO"][1]["stname"] = "" +defs["igGetIO"]["()"] = defs["igGetIO"][1] +defs["igGetItemRectMax"] = {} +defs["igGetItemRectMax"][1] = {} +defs["igGetItemRectMax"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetItemRectMax"][1]["argsT"] = {} +defs["igGetItemRectMax"][1]["argsT"][1] = {} +defs["igGetItemRectMax"][1]["argsT"][1]["name"] = "pOut" +defs["igGetItemRectMax"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetItemRectMax"][1]["argsoriginal"] = "()" +defs["igGetItemRectMax"][1]["call_args"] = "()" +defs["igGetItemRectMax"][1]["cimguiname"] = "igGetItemRectMax" +defs["igGetItemRectMax"][1]["defaults"] = {} +defs["igGetItemRectMax"][1]["funcname"] = "GetItemRectMax" +defs["igGetItemRectMax"][1]["location"] = "imgui:849" +defs["igGetItemRectMax"][1]["namespace"] = "ImGui" +defs["igGetItemRectMax"][1]["nonUDT"] = 1 +defs["igGetItemRectMax"][1]["ov_cimguiname"] = "igGetItemRectMax" +defs["igGetItemRectMax"][1]["ret"] = "void" +defs["igGetItemRectMax"][1]["signature"] = "()" +defs["igGetItemRectMax"][1]["stname"] = "" +defs["igGetItemRectMax"]["()"] = defs["igGetItemRectMax"][1] +defs["igGetItemRectMin"] = {} +defs["igGetItemRectMin"][1] = {} +defs["igGetItemRectMin"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetItemRectMin"][1]["argsT"] = {} +defs["igGetItemRectMin"][1]["argsT"][1] = {} +defs["igGetItemRectMin"][1]["argsT"][1]["name"] = "pOut" +defs["igGetItemRectMin"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetItemRectMin"][1]["argsoriginal"] = "()" +defs["igGetItemRectMin"][1]["call_args"] = "()" +defs["igGetItemRectMin"][1]["cimguiname"] = "igGetItemRectMin" +defs["igGetItemRectMin"][1]["defaults"] = {} +defs["igGetItemRectMin"][1]["funcname"] = "GetItemRectMin" +defs["igGetItemRectMin"][1]["location"] = "imgui:848" +defs["igGetItemRectMin"][1]["namespace"] = "ImGui" +defs["igGetItemRectMin"][1]["nonUDT"] = 1 +defs["igGetItemRectMin"][1]["ov_cimguiname"] = "igGetItemRectMin" +defs["igGetItemRectMin"][1]["ret"] = "void" +defs["igGetItemRectMin"][1]["signature"] = "()" +defs["igGetItemRectMin"][1]["stname"] = "" +defs["igGetItemRectMin"]["()"] = defs["igGetItemRectMin"][1] +defs["igGetItemRectSize"] = {} +defs["igGetItemRectSize"][1] = {} +defs["igGetItemRectSize"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetItemRectSize"][1]["argsT"] = {} +defs["igGetItemRectSize"][1]["argsT"][1] = {} +defs["igGetItemRectSize"][1]["argsT"][1]["name"] = "pOut" +defs["igGetItemRectSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetItemRectSize"][1]["argsoriginal"] = "()" +defs["igGetItemRectSize"][1]["call_args"] = "()" +defs["igGetItemRectSize"][1]["cimguiname"] = "igGetItemRectSize" +defs["igGetItemRectSize"][1]["defaults"] = {} +defs["igGetItemRectSize"][1]["funcname"] = "GetItemRectSize" +defs["igGetItemRectSize"][1]["location"] = "imgui:850" +defs["igGetItemRectSize"][1]["namespace"] = "ImGui" +defs["igGetItemRectSize"][1]["nonUDT"] = 1 +defs["igGetItemRectSize"][1]["ov_cimguiname"] = "igGetItemRectSize" +defs["igGetItemRectSize"][1]["ret"] = "void" +defs["igGetItemRectSize"][1]["signature"] = "()" +defs["igGetItemRectSize"][1]["stname"] = "" +defs["igGetItemRectSize"]["()"] = defs["igGetItemRectSize"][1] +defs["igGetKeyIndex"] = {} +defs["igGetKeyIndex"][1] = {} +defs["igGetKeyIndex"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyIndex"][1]["argsT"] = {} +defs["igGetKeyIndex"][1]["argsT"][1] = {} +defs["igGetKeyIndex"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyIndex"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyIndex"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyIndex"][1]["call_args"] = "(key)" +defs["igGetKeyIndex"][1]["cimguiname"] = "igGetKeyIndex" +defs["igGetKeyIndex"][1]["defaults"] = {} +defs["igGetKeyIndex"][1]["funcname"] = "GetKeyIndex" +defs["igGetKeyIndex"][1]["location"] = "imgui:2958" +defs["igGetKeyIndex"][1]["namespace"] = "ImGui" +defs["igGetKeyIndex"][1]["ov_cimguiname"] = "igGetKeyIndex" +defs["igGetKeyIndex"][1]["ret"] = "ImGuiKey" +defs["igGetKeyIndex"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyIndex"][1]["stname"] = "" +defs["igGetKeyIndex"]["(ImGuiKey)"] = defs["igGetKeyIndex"][1] +defs["igGetKeyName"] = {} +defs["igGetKeyName"][1] = {} +defs["igGetKeyName"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyName"][1]["argsT"] = {} +defs["igGetKeyName"][1]["argsT"][1] = {} +defs["igGetKeyName"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyName"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyName"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyName"][1]["call_args"] = "(key)" +defs["igGetKeyName"][1]["cimguiname"] = "igGetKeyName" +defs["igGetKeyName"][1]["defaults"] = {} +defs["igGetKeyName"][1]["funcname"] = "GetKeyName" +defs["igGetKeyName"][1]["location"] = "imgui:894" +defs["igGetKeyName"][1]["namespace"] = "ImGui" +defs["igGetKeyName"][1]["ov_cimguiname"] = "igGetKeyName" +defs["igGetKeyName"][1]["ret"] = "const char*" +defs["igGetKeyName"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyName"][1]["stname"] = "" +defs["igGetKeyName"]["(ImGuiKey)"] = defs["igGetKeyName"][1] +defs["igGetKeyPressedAmount"] = {} +defs["igGetKeyPressedAmount"][1] = {} +defs["igGetKeyPressedAmount"][1]["args"] = "(ImGuiKey key,float repeat_delay,float rate)" +defs["igGetKeyPressedAmount"][1]["argsT"] = {} +defs["igGetKeyPressedAmount"][1]["argsT"][1] = {} +defs["igGetKeyPressedAmount"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyPressedAmount"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyPressedAmount"][1]["argsT"][2] = {} +defs["igGetKeyPressedAmount"][1]["argsT"][2]["name"] = "repeat_delay" +defs["igGetKeyPressedAmount"][1]["argsT"][2]["type"] = "float" +defs["igGetKeyPressedAmount"][1]["argsT"][3] = {} +defs["igGetKeyPressedAmount"][1]["argsT"][3]["name"] = "rate" +defs["igGetKeyPressedAmount"][1]["argsT"][3]["type"] = "float" +defs["igGetKeyPressedAmount"][1]["argsoriginal"] = "(ImGuiKey key,float repeat_delay,float rate)" +defs["igGetKeyPressedAmount"][1]["call_args"] = "(key,repeat_delay,rate)" +defs["igGetKeyPressedAmount"][1]["cimguiname"] = "igGetKeyPressedAmount" +defs["igGetKeyPressedAmount"][1]["defaults"] = {} +defs["igGetKeyPressedAmount"][1]["funcname"] = "GetKeyPressedAmount" +defs["igGetKeyPressedAmount"][1]["location"] = "imgui:893" +defs["igGetKeyPressedAmount"][1]["namespace"] = "ImGui" +defs["igGetKeyPressedAmount"][1]["ov_cimguiname"] = "igGetKeyPressedAmount" +defs["igGetKeyPressedAmount"][1]["ret"] = "int" +defs["igGetKeyPressedAmount"][1]["signature"] = "(ImGuiKey,float,float)" +defs["igGetKeyPressedAmount"][1]["stname"] = "" +defs["igGetKeyPressedAmount"]["(ImGuiKey,float,float)"] = defs["igGetKeyPressedAmount"][1] +defs["igGetMainViewport"] = {} +defs["igGetMainViewport"][1] = {} +defs["igGetMainViewport"][1]["args"] = "()" +defs["igGetMainViewport"][1]["argsT"] = {} +defs["igGetMainViewport"][1]["argsoriginal"] = "()" +defs["igGetMainViewport"][1]["call_args"] = "()" +defs["igGetMainViewport"][1]["cimguiname"] = "igGetMainViewport" +defs["igGetMainViewport"][1]["defaults"] = {} +defs["igGetMainViewport"][1]["funcname"] = "GetMainViewport" +defs["igGetMainViewport"][1]["location"] = "imgui:857" +defs["igGetMainViewport"][1]["namespace"] = "ImGui" +defs["igGetMainViewport"][1]["ov_cimguiname"] = "igGetMainViewport" +defs["igGetMainViewport"][1]["ret"] = "ImGuiViewport*" +defs["igGetMainViewport"][1]["signature"] = "()" +defs["igGetMainViewport"][1]["stname"] = "" +defs["igGetMainViewport"]["()"] = defs["igGetMainViewport"][1] +defs["igGetMouseClickedCount"] = {} +defs["igGetMouseClickedCount"][1] = {} +defs["igGetMouseClickedCount"][1]["args"] = "(ImGuiMouseButton button)" +defs["igGetMouseClickedCount"][1]["argsT"] = {} +defs["igGetMouseClickedCount"][1]["argsT"][1] = {} +defs["igGetMouseClickedCount"][1]["argsT"][1]["name"] = "button" +defs["igGetMouseClickedCount"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igGetMouseClickedCount"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igGetMouseClickedCount"][1]["call_args"] = "(button)" +defs["igGetMouseClickedCount"][1]["cimguiname"] = "igGetMouseClickedCount" +defs["igGetMouseClickedCount"][1]["defaults"] = {} +defs["igGetMouseClickedCount"][1]["funcname"] = "GetMouseClickedCount" +defs["igGetMouseClickedCount"][1]["location"] = "imgui:905" +defs["igGetMouseClickedCount"][1]["namespace"] = "ImGui" +defs["igGetMouseClickedCount"][1]["ov_cimguiname"] = "igGetMouseClickedCount" +defs["igGetMouseClickedCount"][1]["ret"] = "int" +defs["igGetMouseClickedCount"][1]["signature"] = "(ImGuiMouseButton)" +defs["igGetMouseClickedCount"][1]["stname"] = "" +defs["igGetMouseClickedCount"]["(ImGuiMouseButton)"] = defs["igGetMouseClickedCount"][1] +defs["igGetMouseCursor"] = {} +defs["igGetMouseCursor"][1] = {} +defs["igGetMouseCursor"][1]["args"] = "()" +defs["igGetMouseCursor"][1]["argsT"] = {} +defs["igGetMouseCursor"][1]["argsoriginal"] = "()" +defs["igGetMouseCursor"][1]["call_args"] = "()" +defs["igGetMouseCursor"][1]["cimguiname"] = "igGetMouseCursor" +defs["igGetMouseCursor"][1]["defaults"] = {} +defs["igGetMouseCursor"][1]["funcname"] = "GetMouseCursor" +defs["igGetMouseCursor"][1]["location"] = "imgui:914" +defs["igGetMouseCursor"][1]["namespace"] = "ImGui" +defs["igGetMouseCursor"][1]["ov_cimguiname"] = "igGetMouseCursor" +defs["igGetMouseCursor"][1]["ret"] = "ImGuiMouseCursor" +defs["igGetMouseCursor"][1]["signature"] = "()" +defs["igGetMouseCursor"][1]["stname"] = "" +defs["igGetMouseCursor"]["()"] = defs["igGetMouseCursor"][1] +defs["igGetMouseDragDelta"] = {} +defs["igGetMouseDragDelta"][1] = {} +defs["igGetMouseDragDelta"][1]["args"] = "(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold)" +defs["igGetMouseDragDelta"][1]["argsT"] = {} +defs["igGetMouseDragDelta"][1]["argsT"][1] = {} +defs["igGetMouseDragDelta"][1]["argsT"][1]["name"] = "pOut" +defs["igGetMouseDragDelta"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetMouseDragDelta"][1]["argsT"][2] = {} +defs["igGetMouseDragDelta"][1]["argsT"][2]["name"] = "button" +defs["igGetMouseDragDelta"][1]["argsT"][2]["type"] = "ImGuiMouseButton" +defs["igGetMouseDragDelta"][1]["argsT"][3] = {} +defs["igGetMouseDragDelta"][1]["argsT"][3]["name"] = "lock_threshold" +defs["igGetMouseDragDelta"][1]["argsT"][3]["type"] = "float" +defs["igGetMouseDragDelta"][1]["argsoriginal"] = "(ImGuiMouseButton button=0,float lock_threshold=-1.0f)" +defs["igGetMouseDragDelta"][1]["call_args"] = "(button,lock_threshold)" +defs["igGetMouseDragDelta"][1]["cimguiname"] = "igGetMouseDragDelta" +defs["igGetMouseDragDelta"][1]["defaults"] = {} +defs["igGetMouseDragDelta"][1]["defaults"]["button"] = "0" +defs["igGetMouseDragDelta"][1]["defaults"]["lock_threshold"] = "-1.0f" +defs["igGetMouseDragDelta"][1]["funcname"] = "GetMouseDragDelta" +defs["igGetMouseDragDelta"][1]["location"] = "imgui:912" +defs["igGetMouseDragDelta"][1]["namespace"] = "ImGui" +defs["igGetMouseDragDelta"][1]["nonUDT"] = 1 +defs["igGetMouseDragDelta"][1]["ov_cimguiname"] = "igGetMouseDragDelta" +defs["igGetMouseDragDelta"][1]["ret"] = "void" +defs["igGetMouseDragDelta"][1]["signature"] = "(ImGuiMouseButton,float)" +defs["igGetMouseDragDelta"][1]["stname"] = "" +defs["igGetMouseDragDelta"]["(ImGuiMouseButton,float)"] = defs["igGetMouseDragDelta"][1] +defs["igGetMousePos"] = {} +defs["igGetMousePos"][1] = {} +defs["igGetMousePos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetMousePos"][1]["argsT"] = {} +defs["igGetMousePos"][1]["argsT"][1] = {} +defs["igGetMousePos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetMousePos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetMousePos"][1]["argsoriginal"] = "()" +defs["igGetMousePos"][1]["call_args"] = "()" +defs["igGetMousePos"][1]["cimguiname"] = "igGetMousePos" +defs["igGetMousePos"][1]["defaults"] = {} +defs["igGetMousePos"][1]["funcname"] = "GetMousePos" +defs["igGetMousePos"][1]["location"] = "imgui:909" +defs["igGetMousePos"][1]["namespace"] = "ImGui" +defs["igGetMousePos"][1]["nonUDT"] = 1 +defs["igGetMousePos"][1]["ov_cimguiname"] = "igGetMousePos" +defs["igGetMousePos"][1]["ret"] = "void" +defs["igGetMousePos"][1]["signature"] = "()" +defs["igGetMousePos"][1]["stname"] = "" +defs["igGetMousePos"]["()"] = defs["igGetMousePos"][1] +defs["igGetMousePosOnOpeningCurrentPopup"] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsT"] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsT"][1] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsT"][1]["name"] = "pOut" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["argsoriginal"] = "()" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["call_args"] = "()" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["cimguiname"] = "igGetMousePosOnOpeningCurrentPopup" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["defaults"] = {} +defs["igGetMousePosOnOpeningCurrentPopup"][1]["funcname"] = "GetMousePosOnOpeningCurrentPopup" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["location"] = "imgui:910" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["namespace"] = "ImGui" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["nonUDT"] = 1 +defs["igGetMousePosOnOpeningCurrentPopup"][1]["ov_cimguiname"] = "igGetMousePosOnOpeningCurrentPopup" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["ret"] = "void" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["signature"] = "()" +defs["igGetMousePosOnOpeningCurrentPopup"][1]["stname"] = "" +defs["igGetMousePosOnOpeningCurrentPopup"]["()"] = defs["igGetMousePosOnOpeningCurrentPopup"][1] +defs["igGetScrollMaxX"] = {} +defs["igGetScrollMaxX"][1] = {} +defs["igGetScrollMaxX"][1]["args"] = "()" +defs["igGetScrollMaxX"][1]["argsT"] = {} +defs["igGetScrollMaxX"][1]["argsoriginal"] = "()" +defs["igGetScrollMaxX"][1]["call_args"] = "()" +defs["igGetScrollMaxX"][1]["cimguiname"] = "igGetScrollMaxX" +defs["igGetScrollMaxX"][1]["defaults"] = {} +defs["igGetScrollMaxX"][1]["funcname"] = "GetScrollMaxX" +defs["igGetScrollMaxX"][1]["location"] = "imgui:392" +defs["igGetScrollMaxX"][1]["namespace"] = "ImGui" +defs["igGetScrollMaxX"][1]["ov_cimguiname"] = "igGetScrollMaxX" +defs["igGetScrollMaxX"][1]["ret"] = "float" +defs["igGetScrollMaxX"][1]["signature"] = "()" +defs["igGetScrollMaxX"][1]["stname"] = "" +defs["igGetScrollMaxX"]["()"] = defs["igGetScrollMaxX"][1] +defs["igGetScrollMaxY"] = {} +defs["igGetScrollMaxY"][1] = {} +defs["igGetScrollMaxY"][1]["args"] = "()" +defs["igGetScrollMaxY"][1]["argsT"] = {} +defs["igGetScrollMaxY"][1]["argsoriginal"] = "()" +defs["igGetScrollMaxY"][1]["call_args"] = "()" +defs["igGetScrollMaxY"][1]["cimguiname"] = "igGetScrollMaxY" +defs["igGetScrollMaxY"][1]["defaults"] = {} +defs["igGetScrollMaxY"][1]["funcname"] = "GetScrollMaxY" +defs["igGetScrollMaxY"][1]["location"] = "imgui:393" +defs["igGetScrollMaxY"][1]["namespace"] = "ImGui" +defs["igGetScrollMaxY"][1]["ov_cimguiname"] = "igGetScrollMaxY" +defs["igGetScrollMaxY"][1]["ret"] = "float" +defs["igGetScrollMaxY"][1]["signature"] = "()" +defs["igGetScrollMaxY"][1]["stname"] = "" +defs["igGetScrollMaxY"]["()"] = defs["igGetScrollMaxY"][1] +defs["igGetScrollX"] = {} +defs["igGetScrollX"][1] = {} +defs["igGetScrollX"][1]["args"] = "()" +defs["igGetScrollX"][1]["argsT"] = {} +defs["igGetScrollX"][1]["argsoriginal"] = "()" +defs["igGetScrollX"][1]["call_args"] = "()" +defs["igGetScrollX"][1]["cimguiname"] = "igGetScrollX" +defs["igGetScrollX"][1]["defaults"] = {} +defs["igGetScrollX"][1]["funcname"] = "GetScrollX" +defs["igGetScrollX"][1]["location"] = "imgui:388" +defs["igGetScrollX"][1]["namespace"] = "ImGui" +defs["igGetScrollX"][1]["ov_cimguiname"] = "igGetScrollX" +defs["igGetScrollX"][1]["ret"] = "float" +defs["igGetScrollX"][1]["signature"] = "()" +defs["igGetScrollX"][1]["stname"] = "" +defs["igGetScrollX"]["()"] = defs["igGetScrollX"][1] +defs["igGetScrollY"] = {} +defs["igGetScrollY"][1] = {} +defs["igGetScrollY"][1]["args"] = "()" +defs["igGetScrollY"][1]["argsT"] = {} +defs["igGetScrollY"][1]["argsoriginal"] = "()" +defs["igGetScrollY"][1]["call_args"] = "()" +defs["igGetScrollY"][1]["cimguiname"] = "igGetScrollY" +defs["igGetScrollY"][1]["defaults"] = {} +defs["igGetScrollY"][1]["funcname"] = "GetScrollY" +defs["igGetScrollY"][1]["location"] = "imgui:389" +defs["igGetScrollY"][1]["namespace"] = "ImGui" +defs["igGetScrollY"][1]["ov_cimguiname"] = "igGetScrollY" +defs["igGetScrollY"][1]["ret"] = "float" +defs["igGetScrollY"][1]["signature"] = "()" +defs["igGetScrollY"][1]["stname"] = "" +defs["igGetScrollY"]["()"] = defs["igGetScrollY"][1] +defs["igGetStateStorage"] = {} +defs["igGetStateStorage"][1] = {} +defs["igGetStateStorage"][1]["args"] = "()" +defs["igGetStateStorage"][1]["argsT"] = {} +defs["igGetStateStorage"][1]["argsoriginal"] = "()" +defs["igGetStateStorage"][1]["call_args"] = "()" +defs["igGetStateStorage"][1]["cimguiname"] = "igGetStateStorage" +defs["igGetStateStorage"][1]["defaults"] = {} +defs["igGetStateStorage"][1]["funcname"] = "GetStateStorage" +defs["igGetStateStorage"][1]["location"] = "imgui:871" +defs["igGetStateStorage"][1]["namespace"] = "ImGui" +defs["igGetStateStorage"][1]["ov_cimguiname"] = "igGetStateStorage" +defs["igGetStateStorage"][1]["ret"] = "ImGuiStorage*" +defs["igGetStateStorage"][1]["signature"] = "()" +defs["igGetStateStorage"][1]["stname"] = "" +defs["igGetStateStorage"]["()"] = defs["igGetStateStorage"][1] +defs["igGetStyle"] = {} +defs["igGetStyle"][1] = {} +defs["igGetStyle"][1]["args"] = "()" +defs["igGetStyle"][1]["argsT"] = {} +defs["igGetStyle"][1]["argsoriginal"] = "()" +defs["igGetStyle"][1]["call_args"] = "()" +defs["igGetStyle"][1]["cimguiname"] = "igGetStyle" +defs["igGetStyle"][1]["defaults"] = {} +defs["igGetStyle"][1]["funcname"] = "GetStyle" +defs["igGetStyle"][1]["location"] = "imgui:295" +defs["igGetStyle"][1]["namespace"] = "ImGui" +defs["igGetStyle"][1]["ov_cimguiname"] = "igGetStyle" +defs["igGetStyle"][1]["ret"] = "ImGuiStyle*" +defs["igGetStyle"][1]["retref"] = "&" +defs["igGetStyle"][1]["signature"] = "()" +defs["igGetStyle"][1]["stname"] = "" +defs["igGetStyle"]["()"] = defs["igGetStyle"][1] +defs["igGetStyleColorName"] = {} +defs["igGetStyleColorName"][1] = {} +defs["igGetStyleColorName"][1]["args"] = "(ImGuiCol idx)" +defs["igGetStyleColorName"][1]["argsT"] = {} +defs["igGetStyleColorName"][1]["argsT"][1] = {} +defs["igGetStyleColorName"][1]["argsT"][1]["name"] = "idx" +defs["igGetStyleColorName"][1]["argsT"][1]["type"] = "ImGuiCol" +defs["igGetStyleColorName"][1]["argsoriginal"] = "(ImGuiCol idx)" +defs["igGetStyleColorName"][1]["call_args"] = "(idx)" +defs["igGetStyleColorName"][1]["cimguiname"] = "igGetStyleColorName" +defs["igGetStyleColorName"][1]["defaults"] = {} +defs["igGetStyleColorName"][1]["funcname"] = "GetStyleColorName" +defs["igGetStyleColorName"][1]["location"] = "imgui:869" +defs["igGetStyleColorName"][1]["namespace"] = "ImGui" +defs["igGetStyleColorName"][1]["ov_cimguiname"] = "igGetStyleColorName" +defs["igGetStyleColorName"][1]["ret"] = "const char*" +defs["igGetStyleColorName"][1]["signature"] = "(ImGuiCol)" +defs["igGetStyleColorName"][1]["stname"] = "" +defs["igGetStyleColorName"]["(ImGuiCol)"] = defs["igGetStyleColorName"][1] +defs["igGetStyleColorVec4"] = {} +defs["igGetStyleColorVec4"][1] = {} +defs["igGetStyleColorVec4"][1]["args"] = "(ImGuiCol idx)" +defs["igGetStyleColorVec4"][1]["argsT"] = {} +defs["igGetStyleColorVec4"][1]["argsT"][1] = {} +defs["igGetStyleColorVec4"][1]["argsT"][1]["name"] = "idx" +defs["igGetStyleColorVec4"][1]["argsT"][1]["type"] = "ImGuiCol" +defs["igGetStyleColorVec4"][1]["argsoriginal"] = "(ImGuiCol idx)" +defs["igGetStyleColorVec4"][1]["call_args"] = "(idx)" +defs["igGetStyleColorVec4"][1]["cimguiname"] = "igGetStyleColorVec4" +defs["igGetStyleColorVec4"][1]["defaults"] = {} +defs["igGetStyleColorVec4"][1]["funcname"] = "GetStyleColorVec4" +defs["igGetStyleColorVec4"][1]["location"] = "imgui:429" +defs["igGetStyleColorVec4"][1]["namespace"] = "ImGui" +defs["igGetStyleColorVec4"][1]["ov_cimguiname"] = "igGetStyleColorVec4" +defs["igGetStyleColorVec4"][1]["ret"] = "const ImVec4*" +defs["igGetStyleColorVec4"][1]["retref"] = "&" +defs["igGetStyleColorVec4"][1]["signature"] = "(ImGuiCol)" +defs["igGetStyleColorVec4"][1]["stname"] = "" +defs["igGetStyleColorVec4"]["(ImGuiCol)"] = defs["igGetStyleColorVec4"][1] +defs["igGetTextLineHeight"] = {} +defs["igGetTextLineHeight"][1] = {} +defs["igGetTextLineHeight"][1]["args"] = "()" +defs["igGetTextLineHeight"][1]["argsT"] = {} +defs["igGetTextLineHeight"][1]["argsoriginal"] = "()" +defs["igGetTextLineHeight"][1]["call_args"] = "()" +defs["igGetTextLineHeight"][1]["cimguiname"] = "igGetTextLineHeight" +defs["igGetTextLineHeight"][1]["defaults"] = {} +defs["igGetTextLineHeight"][1]["funcname"] = "GetTextLineHeight" +defs["igGetTextLineHeight"][1]["location"] = "imgui:457" +defs["igGetTextLineHeight"][1]["namespace"] = "ImGui" +defs["igGetTextLineHeight"][1]["ov_cimguiname"] = "igGetTextLineHeight" +defs["igGetTextLineHeight"][1]["ret"] = "float" +defs["igGetTextLineHeight"][1]["signature"] = "()" +defs["igGetTextLineHeight"][1]["stname"] = "" +defs["igGetTextLineHeight"]["()"] = defs["igGetTextLineHeight"][1] +defs["igGetTextLineHeightWithSpacing"] = {} +defs["igGetTextLineHeightWithSpacing"][1] = {} +defs["igGetTextLineHeightWithSpacing"][1]["args"] = "()" +defs["igGetTextLineHeightWithSpacing"][1]["argsT"] = {} +defs["igGetTextLineHeightWithSpacing"][1]["argsoriginal"] = "()" +defs["igGetTextLineHeightWithSpacing"][1]["call_args"] = "()" +defs["igGetTextLineHeightWithSpacing"][1]["cimguiname"] = "igGetTextLineHeightWithSpacing" +defs["igGetTextLineHeightWithSpacing"][1]["defaults"] = {} +defs["igGetTextLineHeightWithSpacing"][1]["funcname"] = "GetTextLineHeightWithSpacing" +defs["igGetTextLineHeightWithSpacing"][1]["location"] = "imgui:458" +defs["igGetTextLineHeightWithSpacing"][1]["namespace"] = "ImGui" +defs["igGetTextLineHeightWithSpacing"][1]["ov_cimguiname"] = "igGetTextLineHeightWithSpacing" +defs["igGetTextLineHeightWithSpacing"][1]["ret"] = "float" +defs["igGetTextLineHeightWithSpacing"][1]["signature"] = "()" +defs["igGetTextLineHeightWithSpacing"][1]["stname"] = "" +defs["igGetTextLineHeightWithSpacing"]["()"] = defs["igGetTextLineHeightWithSpacing"][1] +defs["igGetTime"] = {} +defs["igGetTime"][1] = {} +defs["igGetTime"][1]["args"] = "()" +defs["igGetTime"][1]["argsT"] = {} +defs["igGetTime"][1]["argsoriginal"] = "()" +defs["igGetTime"][1]["call_args"] = "()" +defs["igGetTime"][1]["cimguiname"] = "igGetTime" +defs["igGetTime"][1]["defaults"] = {} +defs["igGetTime"][1]["funcname"] = "GetTime" +defs["igGetTime"][1]["location"] = "imgui:866" +defs["igGetTime"][1]["namespace"] = "ImGui" +defs["igGetTime"][1]["ov_cimguiname"] = "igGetTime" +defs["igGetTime"][1]["ret"] = "double" +defs["igGetTime"][1]["signature"] = "()" +defs["igGetTime"][1]["stname"] = "" +defs["igGetTime"]["()"] = defs["igGetTime"][1] +defs["igGetTreeNodeToLabelSpacing"] = {} +defs["igGetTreeNodeToLabelSpacing"][1] = {} +defs["igGetTreeNodeToLabelSpacing"][1]["args"] = "()" +defs["igGetTreeNodeToLabelSpacing"][1]["argsT"] = {} +defs["igGetTreeNodeToLabelSpacing"][1]["argsoriginal"] = "()" +defs["igGetTreeNodeToLabelSpacing"][1]["call_args"] = "()" +defs["igGetTreeNodeToLabelSpacing"][1]["cimguiname"] = "igGetTreeNodeToLabelSpacing" +defs["igGetTreeNodeToLabelSpacing"][1]["defaults"] = {} +defs["igGetTreeNodeToLabelSpacing"][1]["funcname"] = "GetTreeNodeToLabelSpacing" +defs["igGetTreeNodeToLabelSpacing"][1]["location"] = "imgui:615" +defs["igGetTreeNodeToLabelSpacing"][1]["namespace"] = "ImGui" +defs["igGetTreeNodeToLabelSpacing"][1]["ov_cimguiname"] = "igGetTreeNodeToLabelSpacing" +defs["igGetTreeNodeToLabelSpacing"][1]["ret"] = "float" +defs["igGetTreeNodeToLabelSpacing"][1]["signature"] = "()" +defs["igGetTreeNodeToLabelSpacing"][1]["stname"] = "" +defs["igGetTreeNodeToLabelSpacing"]["()"] = defs["igGetTreeNodeToLabelSpacing"][1] +defs["igGetVersion"] = {} +defs["igGetVersion"][1] = {} +defs["igGetVersion"][1]["args"] = "()" +defs["igGetVersion"][1]["argsT"] = {} +defs["igGetVersion"][1]["argsoriginal"] = "()" +defs["igGetVersion"][1]["call_args"] = "()" +defs["igGetVersion"][1]["cimguiname"] = "igGetVersion" +defs["igGetVersion"][1]["defaults"] = {} +defs["igGetVersion"][1]["funcname"] = "GetVersion" +defs["igGetVersion"][1]["location"] = "imgui:311" +defs["igGetVersion"][1]["namespace"] = "ImGui" +defs["igGetVersion"][1]["ov_cimguiname"] = "igGetVersion" +defs["igGetVersion"][1]["ret"] = "const char*" +defs["igGetVersion"][1]["signature"] = "()" +defs["igGetVersion"][1]["stname"] = "" +defs["igGetVersion"]["()"] = defs["igGetVersion"][1] +defs["igGetWindowContentRegionMax"] = {} +defs["igGetWindowContentRegionMax"][1] = {} +defs["igGetWindowContentRegionMax"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetWindowContentRegionMax"][1]["argsT"] = {} +defs["igGetWindowContentRegionMax"][1]["argsT"][1] = {} +defs["igGetWindowContentRegionMax"][1]["argsT"][1]["name"] = "pOut" +defs["igGetWindowContentRegionMax"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetWindowContentRegionMax"][1]["argsoriginal"] = "()" +defs["igGetWindowContentRegionMax"][1]["call_args"] = "()" +defs["igGetWindowContentRegionMax"][1]["cimguiname"] = "igGetWindowContentRegionMax" +defs["igGetWindowContentRegionMax"][1]["defaults"] = {} +defs["igGetWindowContentRegionMax"][1]["funcname"] = "GetWindowContentRegionMax" +defs["igGetWindowContentRegionMax"][1]["location"] = "imgui:383" +defs["igGetWindowContentRegionMax"][1]["namespace"] = "ImGui" +defs["igGetWindowContentRegionMax"][1]["nonUDT"] = 1 +defs["igGetWindowContentRegionMax"][1]["ov_cimguiname"] = "igGetWindowContentRegionMax" +defs["igGetWindowContentRegionMax"][1]["ret"] = "void" +defs["igGetWindowContentRegionMax"][1]["signature"] = "()" +defs["igGetWindowContentRegionMax"][1]["stname"] = "" +defs["igGetWindowContentRegionMax"]["()"] = defs["igGetWindowContentRegionMax"][1] +defs["igGetWindowContentRegionMin"] = {} +defs["igGetWindowContentRegionMin"][1] = {} +defs["igGetWindowContentRegionMin"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetWindowContentRegionMin"][1]["argsT"] = {} +defs["igGetWindowContentRegionMin"][1]["argsT"][1] = {} +defs["igGetWindowContentRegionMin"][1]["argsT"][1]["name"] = "pOut" +defs["igGetWindowContentRegionMin"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetWindowContentRegionMin"][1]["argsoriginal"] = "()" +defs["igGetWindowContentRegionMin"][1]["call_args"] = "()" +defs["igGetWindowContentRegionMin"][1]["cimguiname"] = "igGetWindowContentRegionMin" +defs["igGetWindowContentRegionMin"][1]["defaults"] = {} +defs["igGetWindowContentRegionMin"][1]["funcname"] = "GetWindowContentRegionMin" +defs["igGetWindowContentRegionMin"][1]["location"] = "imgui:382" +defs["igGetWindowContentRegionMin"][1]["namespace"] = "ImGui" +defs["igGetWindowContentRegionMin"][1]["nonUDT"] = 1 +defs["igGetWindowContentRegionMin"][1]["ov_cimguiname"] = "igGetWindowContentRegionMin" +defs["igGetWindowContentRegionMin"][1]["ret"] = "void" +defs["igGetWindowContentRegionMin"][1]["signature"] = "()" +defs["igGetWindowContentRegionMin"][1]["stname"] = "" +defs["igGetWindowContentRegionMin"]["()"] = defs["igGetWindowContentRegionMin"][1] +defs["igGetWindowDrawList"] = {} +defs["igGetWindowDrawList"][1] = {} +defs["igGetWindowDrawList"][1]["args"] = "()" +defs["igGetWindowDrawList"][1]["argsT"] = {} +defs["igGetWindowDrawList"][1]["argsoriginal"] = "()" +defs["igGetWindowDrawList"][1]["call_args"] = "()" +defs["igGetWindowDrawList"][1]["cimguiname"] = "igGetWindowDrawList" +defs["igGetWindowDrawList"][1]["defaults"] = {} +defs["igGetWindowDrawList"][1]["funcname"] = "GetWindowDrawList" +defs["igGetWindowDrawList"][1]["location"] = "imgui:351" +defs["igGetWindowDrawList"][1]["namespace"] = "ImGui" +defs["igGetWindowDrawList"][1]["ov_cimguiname"] = "igGetWindowDrawList" +defs["igGetWindowDrawList"][1]["ret"] = "ImDrawList*" +defs["igGetWindowDrawList"][1]["signature"] = "()" +defs["igGetWindowDrawList"][1]["stname"] = "" +defs["igGetWindowDrawList"]["()"] = defs["igGetWindowDrawList"][1] +defs["igGetWindowHeight"] = {} +defs["igGetWindowHeight"][1] = {} +defs["igGetWindowHeight"][1]["args"] = "()" +defs["igGetWindowHeight"][1]["argsT"] = {} +defs["igGetWindowHeight"][1]["argsoriginal"] = "()" +defs["igGetWindowHeight"][1]["call_args"] = "()" +defs["igGetWindowHeight"][1]["cimguiname"] = "igGetWindowHeight" +defs["igGetWindowHeight"][1]["defaults"] = {} +defs["igGetWindowHeight"][1]["funcname"] = "GetWindowHeight" +defs["igGetWindowHeight"][1]["location"] = "imgui:355" +defs["igGetWindowHeight"][1]["namespace"] = "ImGui" +defs["igGetWindowHeight"][1]["ov_cimguiname"] = "igGetWindowHeight" +defs["igGetWindowHeight"][1]["ret"] = "float" +defs["igGetWindowHeight"][1]["signature"] = "()" +defs["igGetWindowHeight"][1]["stname"] = "" +defs["igGetWindowHeight"]["()"] = defs["igGetWindowHeight"][1] +defs["igGetWindowPos"] = {} +defs["igGetWindowPos"][1] = {} +defs["igGetWindowPos"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetWindowPos"][1]["argsT"] = {} +defs["igGetWindowPos"][1]["argsT"][1] = {} +defs["igGetWindowPos"][1]["argsT"][1]["name"] = "pOut" +defs["igGetWindowPos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetWindowPos"][1]["argsoriginal"] = "()" +defs["igGetWindowPos"][1]["call_args"] = "()" +defs["igGetWindowPos"][1]["cimguiname"] = "igGetWindowPos" +defs["igGetWindowPos"][1]["defaults"] = {} +defs["igGetWindowPos"][1]["funcname"] = "GetWindowPos" +defs["igGetWindowPos"][1]["location"] = "imgui:352" +defs["igGetWindowPos"][1]["namespace"] = "ImGui" +defs["igGetWindowPos"][1]["nonUDT"] = 1 +defs["igGetWindowPos"][1]["ov_cimguiname"] = "igGetWindowPos" +defs["igGetWindowPos"][1]["ret"] = "void" +defs["igGetWindowPos"][1]["signature"] = "()" +defs["igGetWindowPos"][1]["stname"] = "" +defs["igGetWindowPos"]["()"] = defs["igGetWindowPos"][1] +defs["igGetWindowSize"] = {} +defs["igGetWindowSize"][1] = {} +defs["igGetWindowSize"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetWindowSize"][1]["argsT"] = {} +defs["igGetWindowSize"][1]["argsT"][1] = {} +defs["igGetWindowSize"][1]["argsT"][1]["name"] = "pOut" +defs["igGetWindowSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetWindowSize"][1]["argsoriginal"] = "()" +defs["igGetWindowSize"][1]["call_args"] = "()" +defs["igGetWindowSize"][1]["cimguiname"] = "igGetWindowSize" +defs["igGetWindowSize"][1]["defaults"] = {} +defs["igGetWindowSize"][1]["funcname"] = "GetWindowSize" +defs["igGetWindowSize"][1]["location"] = "imgui:353" +defs["igGetWindowSize"][1]["namespace"] = "ImGui" +defs["igGetWindowSize"][1]["nonUDT"] = 1 +defs["igGetWindowSize"][1]["ov_cimguiname"] = "igGetWindowSize" +defs["igGetWindowSize"][1]["ret"] = "void" +defs["igGetWindowSize"][1]["signature"] = "()" +defs["igGetWindowSize"][1]["stname"] = "" +defs["igGetWindowSize"]["()"] = defs["igGetWindowSize"][1] +defs["igGetWindowWidth"] = {} +defs["igGetWindowWidth"][1] = {} +defs["igGetWindowWidth"][1]["args"] = "()" +defs["igGetWindowWidth"][1]["argsT"] = {} +defs["igGetWindowWidth"][1]["argsoriginal"] = "()" +defs["igGetWindowWidth"][1]["call_args"] = "()" +defs["igGetWindowWidth"][1]["cimguiname"] = "igGetWindowWidth" +defs["igGetWindowWidth"][1]["defaults"] = {} +defs["igGetWindowWidth"][1]["funcname"] = "GetWindowWidth" +defs["igGetWindowWidth"][1]["location"] = "imgui:354" +defs["igGetWindowWidth"][1]["namespace"] = "ImGui" +defs["igGetWindowWidth"][1]["ov_cimguiname"] = "igGetWindowWidth" +defs["igGetWindowWidth"][1]["ret"] = "float" +defs["igGetWindowWidth"][1]["signature"] = "()" +defs["igGetWindowWidth"][1]["stname"] = "" +defs["igGetWindowWidth"]["()"] = defs["igGetWindowWidth"][1] +defs["igImage"] = {} +defs["igImage"][1] = {} +defs["igImage"][1]["args"] = "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col)" +defs["igImage"][1]["argsT"] = {} +defs["igImage"][1]["argsT"][1] = {} +defs["igImage"][1]["argsT"][1]["name"] = "user_texture_id" +defs["igImage"][1]["argsT"][1]["type"] = "ImTextureID" +defs["igImage"][1]["argsT"][2] = {} +defs["igImage"][1]["argsT"][2]["name"] = "size" +defs["igImage"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImage"][1]["argsT"][3] = {} +defs["igImage"][1]["argsT"][3]["name"] = "uv0" +defs["igImage"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImage"][1]["argsT"][4] = {} +defs["igImage"][1]["argsT"][4]["name"] = "uv1" +defs["igImage"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImage"][1]["argsT"][5] = {} +defs["igImage"][1]["argsT"][5]["name"] = "tint_col" +defs["igImage"][1]["argsT"][5]["type"] = "const ImVec4" +defs["igImage"][1]["argsT"][6] = {} +defs["igImage"][1]["argsT"][6]["name"] = "border_col" +defs["igImage"][1]["argsT"][6]["type"] = "const ImVec4" +defs["igImage"][1]["argsoriginal"] = "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& tint_col=ImVec4(1,1,1,1),const ImVec4& border_col=ImVec4(0,0,0,0))" +defs["igImage"][1]["call_args"] = "(user_texture_id,size,uv0,uv1,tint_col,border_col)" +defs["igImage"][1]["cimguiname"] = "igImage" +defs["igImage"][1]["defaults"] = {} +defs["igImage"][1]["defaults"]["border_col"] = "ImVec4(0,0,0,0)" +defs["igImage"][1]["defaults"]["tint_col"] = "ImVec4(1,1,1,1)" +defs["igImage"][1]["defaults"]["uv0"] = "ImVec2(0,0)" +defs["igImage"][1]["defaults"]["uv1"] = "ImVec2(1,1)" +defs["igImage"][1]["funcname"] = "Image" +defs["igImage"][1]["location"] = "imgui:514" +defs["igImage"][1]["namespace"] = "ImGui" +defs["igImage"][1]["ov_cimguiname"] = "igImage" +defs["igImage"][1]["ret"] = "void" +defs["igImage"][1]["signature"] = "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" +defs["igImage"][1]["stname"] = "" +defs["igImage"]["(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImage"][1] +defs["igImageButton"] = {} +defs["igImageButton"][1] = {} +defs["igImageButton"][1]["args"] = "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)" +defs["igImageButton"][1]["argsT"] = {} +defs["igImageButton"][1]["argsT"][1] = {} +defs["igImageButton"][1]["argsT"][1]["name"] = "str_id" +defs["igImageButton"][1]["argsT"][1]["type"] = "const char*" +defs["igImageButton"][1]["argsT"][2] = {} +defs["igImageButton"][1]["argsT"][2]["name"] = "user_texture_id" +defs["igImageButton"][1]["argsT"][2]["type"] = "ImTextureID" +defs["igImageButton"][1]["argsT"][3] = {} +defs["igImageButton"][1]["argsT"][3]["name"] = "size" +defs["igImageButton"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImageButton"][1]["argsT"][4] = {} +defs["igImageButton"][1]["argsT"][4]["name"] = "uv0" +defs["igImageButton"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImageButton"][1]["argsT"][5] = {} +defs["igImageButton"][1]["argsT"][5]["name"] = "uv1" +defs["igImageButton"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igImageButton"][1]["argsT"][6] = {} +defs["igImageButton"][1]["argsT"][6]["name"] = "bg_col" +defs["igImageButton"][1]["argsT"][6]["type"] = "const ImVec4" +defs["igImageButton"][1]["argsT"][7] = {} +defs["igImageButton"][1]["argsT"][7]["name"] = "tint_col" +defs["igImageButton"][1]["argsT"][7]["type"] = "const ImVec4" +defs["igImageButton"][1]["argsoriginal"] = "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))" +defs["igImageButton"][1]["call_args"] = "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)" +defs["igImageButton"][1]["cimguiname"] = "igImageButton" +defs["igImageButton"][1]["defaults"] = {} +defs["igImageButton"][1]["defaults"]["bg_col"] = "ImVec4(0,0,0,0)" +defs["igImageButton"][1]["defaults"]["tint_col"] = "ImVec4(1,1,1,1)" +defs["igImageButton"][1]["defaults"]["uv0"] = "ImVec2(0,0)" +defs["igImageButton"][1]["defaults"]["uv1"] = "ImVec2(1,1)" +defs["igImageButton"][1]["funcname"] = "ImageButton" +defs["igImageButton"][1]["location"] = "imgui:515" +defs["igImageButton"][1]["namespace"] = "ImGui" +defs["igImageButton"][1]["ov_cimguiname"] = "igImageButton" +defs["igImageButton"][1]["ret"] = "bool" +defs["igImageButton"][1]["signature"] = "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" +defs["igImageButton"][1]["stname"] = "" +defs["igImageButton"]["(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImageButton"][1] +defs["igIndent"] = {} +defs["igIndent"][1] = {} +defs["igIndent"][1]["args"] = "(float indent_w)" +defs["igIndent"][1]["argsT"] = {} +defs["igIndent"][1]["argsT"][1] = {} +defs["igIndent"][1]["argsT"][1]["name"] = "indent_w" +defs["igIndent"][1]["argsT"][1]["type"] = "float" +defs["igIndent"][1]["argsoriginal"] = "(float indent_w=0.0f)" +defs["igIndent"][1]["call_args"] = "(indent_w)" +defs["igIndent"][1]["cimguiname"] = "igIndent" +defs["igIndent"][1]["defaults"] = {} +defs["igIndent"][1]["defaults"]["indent_w"] = "0.0f" +defs["igIndent"][1]["funcname"] = "Indent" +defs["igIndent"][1]["location"] = "imgui:443" +defs["igIndent"][1]["namespace"] = "ImGui" +defs["igIndent"][1]["ov_cimguiname"] = "igIndent" +defs["igIndent"][1]["ret"] = "void" +defs["igIndent"][1]["signature"] = "(float)" +defs["igIndent"][1]["stname"] = "" +defs["igIndent"]["(float)"] = defs["igIndent"][1] +defs["igInputDouble"] = {} +defs["igInputDouble"][1] = {} +defs["igInputDouble"][1]["args"] = "(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags)" +defs["igInputDouble"][1]["argsT"] = {} +defs["igInputDouble"][1]["argsT"][1] = {} +defs["igInputDouble"][1]["argsT"][1]["name"] = "label" +defs["igInputDouble"][1]["argsT"][1]["type"] = "const char*" +defs["igInputDouble"][1]["argsT"][2] = {} +defs["igInputDouble"][1]["argsT"][2]["name"] = "v" +defs["igInputDouble"][1]["argsT"][2]["type"] = "double*" +defs["igInputDouble"][1]["argsT"][3] = {} +defs["igInputDouble"][1]["argsT"][3]["name"] = "step" +defs["igInputDouble"][1]["argsT"][3]["type"] = "double" +defs["igInputDouble"][1]["argsT"][4] = {} +defs["igInputDouble"][1]["argsT"][4]["name"] = "step_fast" +defs["igInputDouble"][1]["argsT"][4]["type"] = "double" +defs["igInputDouble"][1]["argsT"][5] = {} +defs["igInputDouble"][1]["argsT"][5]["name"] = "format" +defs["igInputDouble"][1]["argsT"][5]["type"] = "const char*" +defs["igInputDouble"][1]["argsT"][6] = {} +defs["igInputDouble"][1]["argsT"][6]["name"] = "flags" +defs["igInputDouble"][1]["argsT"][6]["type"] = "ImGuiInputTextFlags" +defs["igInputDouble"][1]["argsoriginal"] = "(const char* label,double* v,double step=0.0,double step_fast=0.0,const char* format=\"%.6f\",ImGuiInputTextFlags flags=0)" +defs["igInputDouble"][1]["call_args"] = "(label,v,step,step_fast,format,flags)" +defs["igInputDouble"][1]["cimguiname"] = "igInputDouble" +defs["igInputDouble"][1]["defaults"] = {} +defs["igInputDouble"][1]["defaults"]["flags"] = "0" +defs["igInputDouble"][1]["defaults"]["format"] = "\"%.6f\"" +defs["igInputDouble"][1]["defaults"]["step"] = "0.0" +defs["igInputDouble"][1]["defaults"]["step_fast"] = "0.0" +defs["igInputDouble"][1]["funcname"] = "InputDouble" +defs["igInputDouble"][1]["location"] = "imgui:586" +defs["igInputDouble"][1]["namespace"] = "ImGui" +defs["igInputDouble"][1]["ov_cimguiname"] = "igInputDouble" +defs["igInputDouble"][1]["ret"] = "bool" +defs["igInputDouble"][1]["signature"] = "(const char*,double*,double,double,const char*,ImGuiInputTextFlags)" +defs["igInputDouble"][1]["stname"] = "" +defs["igInputDouble"]["(const char*,double*,double,double,const char*,ImGuiInputTextFlags)"] = defs["igInputDouble"][1] +defs["igInputFloat"] = {} +defs["igInputFloat"][1] = {} +defs["igInputFloat"][1]["args"] = "(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags flags)" +defs["igInputFloat"][1]["argsT"] = {} +defs["igInputFloat"][1]["argsT"][1] = {} +defs["igInputFloat"][1]["argsT"][1]["name"] = "label" +defs["igInputFloat"][1]["argsT"][1]["type"] = "const char*" +defs["igInputFloat"][1]["argsT"][2] = {} +defs["igInputFloat"][1]["argsT"][2]["name"] = "v" +defs["igInputFloat"][1]["argsT"][2]["type"] = "float*" +defs["igInputFloat"][1]["argsT"][3] = {} +defs["igInputFloat"][1]["argsT"][3]["name"] = "step" +defs["igInputFloat"][1]["argsT"][3]["type"] = "float" +defs["igInputFloat"][1]["argsT"][4] = {} +defs["igInputFloat"][1]["argsT"][4]["name"] = "step_fast" +defs["igInputFloat"][1]["argsT"][4]["type"] = "float" +defs["igInputFloat"][1]["argsT"][5] = {} +defs["igInputFloat"][1]["argsT"][5]["name"] = "format" +defs["igInputFloat"][1]["argsT"][5]["type"] = "const char*" +defs["igInputFloat"][1]["argsT"][6] = {} +defs["igInputFloat"][1]["argsT"][6]["name"] = "flags" +defs["igInputFloat"][1]["argsT"][6]["type"] = "ImGuiInputTextFlags" +defs["igInputFloat"][1]["argsoriginal"] = "(const char* label,float* v,float step=0.0f,float step_fast=0.0f,const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)" +defs["igInputFloat"][1]["call_args"] = "(label,v,step,step_fast,format,flags)" +defs["igInputFloat"][1]["cimguiname"] = "igInputFloat" +defs["igInputFloat"][1]["defaults"] = {} +defs["igInputFloat"][1]["defaults"]["flags"] = "0" +defs["igInputFloat"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igInputFloat"][1]["defaults"]["step"] = "0.0f" +defs["igInputFloat"][1]["defaults"]["step_fast"] = "0.0f" +defs["igInputFloat"][1]["funcname"] = "InputFloat" +defs["igInputFloat"][1]["location"] = "imgui:578" +defs["igInputFloat"][1]["namespace"] = "ImGui" +defs["igInputFloat"][1]["ov_cimguiname"] = "igInputFloat" +defs["igInputFloat"][1]["ret"] = "bool" +defs["igInputFloat"][1]["signature"] = "(const char*,float*,float,float,const char*,ImGuiInputTextFlags)" +defs["igInputFloat"][1]["stname"] = "" +defs["igInputFloat"]["(const char*,float*,float,float,const char*,ImGuiInputTextFlags)"] = defs["igInputFloat"][1] +defs["igInputFloat2"] = {} +defs["igInputFloat2"][1] = {} +defs["igInputFloat2"][1]["args"] = "(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags)" +defs["igInputFloat2"][1]["argsT"] = {} +defs["igInputFloat2"][1]["argsT"][1] = {} +defs["igInputFloat2"][1]["argsT"][1]["name"] = "label" +defs["igInputFloat2"][1]["argsT"][1]["type"] = "const char*" +defs["igInputFloat2"][1]["argsT"][2] = {} +defs["igInputFloat2"][1]["argsT"][2]["name"] = "v" +defs["igInputFloat2"][1]["argsT"][2]["type"] = "float[2]" +defs["igInputFloat2"][1]["argsT"][3] = {} +defs["igInputFloat2"][1]["argsT"][3]["name"] = "format" +defs["igInputFloat2"][1]["argsT"][3]["type"] = "const char*" +defs["igInputFloat2"][1]["argsT"][4] = {} +defs["igInputFloat2"][1]["argsT"][4]["name"] = "flags" +defs["igInputFloat2"][1]["argsT"][4]["type"] = "ImGuiInputTextFlags" +defs["igInputFloat2"][1]["argsoriginal"] = "(const char* label,float v[2],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)" +defs["igInputFloat2"][1]["call_args"] = "(label,v,format,flags)" +defs["igInputFloat2"][1]["cimguiname"] = "igInputFloat2" +defs["igInputFloat2"][1]["defaults"] = {} +defs["igInputFloat2"][1]["defaults"]["flags"] = "0" +defs["igInputFloat2"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igInputFloat2"][1]["funcname"] = "InputFloat2" +defs["igInputFloat2"][1]["location"] = "imgui:579" +defs["igInputFloat2"][1]["namespace"] = "ImGui" +defs["igInputFloat2"][1]["ov_cimguiname"] = "igInputFloat2" +defs["igInputFloat2"][1]["ret"] = "bool" +defs["igInputFloat2"][1]["signature"] = "(const char*,float[2],const char*,ImGuiInputTextFlags)" +defs["igInputFloat2"][1]["stname"] = "" +defs["igInputFloat2"]["(const char*,float[2],const char*,ImGuiInputTextFlags)"] = defs["igInputFloat2"][1] +defs["igInputFloat3"] = {} +defs["igInputFloat3"][1] = {} +defs["igInputFloat3"][1]["args"] = "(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags)" +defs["igInputFloat3"][1]["argsT"] = {} +defs["igInputFloat3"][1]["argsT"][1] = {} +defs["igInputFloat3"][1]["argsT"][1]["name"] = "label" +defs["igInputFloat3"][1]["argsT"][1]["type"] = "const char*" +defs["igInputFloat3"][1]["argsT"][2] = {} +defs["igInputFloat3"][1]["argsT"][2]["name"] = "v" +defs["igInputFloat3"][1]["argsT"][2]["type"] = "float[3]" +defs["igInputFloat3"][1]["argsT"][3] = {} +defs["igInputFloat3"][1]["argsT"][3]["name"] = "format" +defs["igInputFloat3"][1]["argsT"][3]["type"] = "const char*" +defs["igInputFloat3"][1]["argsT"][4] = {} +defs["igInputFloat3"][1]["argsT"][4]["name"] = "flags" +defs["igInputFloat3"][1]["argsT"][4]["type"] = "ImGuiInputTextFlags" +defs["igInputFloat3"][1]["argsoriginal"] = "(const char* label,float v[3],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)" +defs["igInputFloat3"][1]["call_args"] = "(label,v,format,flags)" +defs["igInputFloat3"][1]["cimguiname"] = "igInputFloat3" +defs["igInputFloat3"][1]["defaults"] = {} +defs["igInputFloat3"][1]["defaults"]["flags"] = "0" +defs["igInputFloat3"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igInputFloat3"][1]["funcname"] = "InputFloat3" +defs["igInputFloat3"][1]["location"] = "imgui:580" +defs["igInputFloat3"][1]["namespace"] = "ImGui" +defs["igInputFloat3"][1]["ov_cimguiname"] = "igInputFloat3" +defs["igInputFloat3"][1]["ret"] = "bool" +defs["igInputFloat3"][1]["signature"] = "(const char*,float[3],const char*,ImGuiInputTextFlags)" +defs["igInputFloat3"][1]["stname"] = "" +defs["igInputFloat3"]["(const char*,float[3],const char*,ImGuiInputTextFlags)"] = defs["igInputFloat3"][1] +defs["igInputFloat4"] = {} +defs["igInputFloat4"][1] = {} +defs["igInputFloat4"][1]["args"] = "(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags)" +defs["igInputFloat4"][1]["argsT"] = {} +defs["igInputFloat4"][1]["argsT"][1] = {} +defs["igInputFloat4"][1]["argsT"][1]["name"] = "label" +defs["igInputFloat4"][1]["argsT"][1]["type"] = "const char*" +defs["igInputFloat4"][1]["argsT"][2] = {} +defs["igInputFloat4"][1]["argsT"][2]["name"] = "v" +defs["igInputFloat4"][1]["argsT"][2]["type"] = "float[4]" +defs["igInputFloat4"][1]["argsT"][3] = {} +defs["igInputFloat4"][1]["argsT"][3]["name"] = "format" +defs["igInputFloat4"][1]["argsT"][3]["type"] = "const char*" +defs["igInputFloat4"][1]["argsT"][4] = {} +defs["igInputFloat4"][1]["argsT"][4]["name"] = "flags" +defs["igInputFloat4"][1]["argsT"][4]["type"] = "ImGuiInputTextFlags" +defs["igInputFloat4"][1]["argsoriginal"] = "(const char* label,float v[4],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)" +defs["igInputFloat4"][1]["call_args"] = "(label,v,format,flags)" +defs["igInputFloat4"][1]["cimguiname"] = "igInputFloat4" +defs["igInputFloat4"][1]["defaults"] = {} +defs["igInputFloat4"][1]["defaults"]["flags"] = "0" +defs["igInputFloat4"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igInputFloat4"][1]["funcname"] = "InputFloat4" +defs["igInputFloat4"][1]["location"] = "imgui:581" +defs["igInputFloat4"][1]["namespace"] = "ImGui" +defs["igInputFloat4"][1]["ov_cimguiname"] = "igInputFloat4" +defs["igInputFloat4"][1]["ret"] = "bool" +defs["igInputFloat4"][1]["signature"] = "(const char*,float[4],const char*,ImGuiInputTextFlags)" +defs["igInputFloat4"][1]["stname"] = "" +defs["igInputFloat4"]["(const char*,float[4],const char*,ImGuiInputTextFlags)"] = defs["igInputFloat4"][1] +defs["igInputInt"] = {} +defs["igInputInt"][1] = {} +defs["igInputInt"][1]["args"] = "(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags)" +defs["igInputInt"][1]["argsT"] = {} +defs["igInputInt"][1]["argsT"][1] = {} +defs["igInputInt"][1]["argsT"][1]["name"] = "label" +defs["igInputInt"][1]["argsT"][1]["type"] = "const char*" +defs["igInputInt"][1]["argsT"][2] = {} +defs["igInputInt"][1]["argsT"][2]["name"] = "v" +defs["igInputInt"][1]["argsT"][2]["type"] = "int*" +defs["igInputInt"][1]["argsT"][3] = {} +defs["igInputInt"][1]["argsT"][3]["name"] = "step" +defs["igInputInt"][1]["argsT"][3]["type"] = "int" +defs["igInputInt"][1]["argsT"][4] = {} +defs["igInputInt"][1]["argsT"][4]["name"] = "step_fast" +defs["igInputInt"][1]["argsT"][4]["type"] = "int" +defs["igInputInt"][1]["argsT"][5] = {} +defs["igInputInt"][1]["argsT"][5]["name"] = "flags" +defs["igInputInt"][1]["argsT"][5]["type"] = "ImGuiInputTextFlags" +defs["igInputInt"][1]["argsoriginal"] = "(const char* label,int* v,int step=1,int step_fast=100,ImGuiInputTextFlags flags=0)" +defs["igInputInt"][1]["call_args"] = "(label,v,step,step_fast,flags)" +defs["igInputInt"][1]["cimguiname"] = "igInputInt" +defs["igInputInt"][1]["defaults"] = {} +defs["igInputInt"][1]["defaults"]["flags"] = "0" +defs["igInputInt"][1]["defaults"]["step"] = "1" +defs["igInputInt"][1]["defaults"]["step_fast"] = "100" +defs["igInputInt"][1]["funcname"] = "InputInt" +defs["igInputInt"][1]["location"] = "imgui:582" +defs["igInputInt"][1]["namespace"] = "ImGui" +defs["igInputInt"][1]["ov_cimguiname"] = "igInputInt" +defs["igInputInt"][1]["ret"] = "bool" +defs["igInputInt"][1]["signature"] = "(const char*,int*,int,int,ImGuiInputTextFlags)" +defs["igInputInt"][1]["stname"] = "" +defs["igInputInt"]["(const char*,int*,int,int,ImGuiInputTextFlags)"] = defs["igInputInt"][1] +defs["igInputInt2"] = {} +defs["igInputInt2"][1] = {} +defs["igInputInt2"][1]["args"] = "(const char* label,int v[2],ImGuiInputTextFlags flags)" +defs["igInputInt2"][1]["argsT"] = {} +defs["igInputInt2"][1]["argsT"][1] = {} +defs["igInputInt2"][1]["argsT"][1]["name"] = "label" +defs["igInputInt2"][1]["argsT"][1]["type"] = "const char*" +defs["igInputInt2"][1]["argsT"][2] = {} +defs["igInputInt2"][1]["argsT"][2]["name"] = "v" +defs["igInputInt2"][1]["argsT"][2]["type"] = "int[2]" +defs["igInputInt2"][1]["argsT"][3] = {} +defs["igInputInt2"][1]["argsT"][3]["name"] = "flags" +defs["igInputInt2"][1]["argsT"][3]["type"] = "ImGuiInputTextFlags" +defs["igInputInt2"][1]["argsoriginal"] = "(const char* label,int v[2],ImGuiInputTextFlags flags=0)" +defs["igInputInt2"][1]["call_args"] = "(label,v,flags)" +defs["igInputInt2"][1]["cimguiname"] = "igInputInt2" +defs["igInputInt2"][1]["defaults"] = {} +defs["igInputInt2"][1]["defaults"]["flags"] = "0" +defs["igInputInt2"][1]["funcname"] = "InputInt2" +defs["igInputInt2"][1]["location"] = "imgui:583" +defs["igInputInt2"][1]["namespace"] = "ImGui" +defs["igInputInt2"][1]["ov_cimguiname"] = "igInputInt2" +defs["igInputInt2"][1]["ret"] = "bool" +defs["igInputInt2"][1]["signature"] = "(const char*,int[2],ImGuiInputTextFlags)" +defs["igInputInt2"][1]["stname"] = "" +defs["igInputInt2"]["(const char*,int[2],ImGuiInputTextFlags)"] = defs["igInputInt2"][1] +defs["igInputInt3"] = {} +defs["igInputInt3"][1] = {} +defs["igInputInt3"][1]["args"] = "(const char* label,int v[3],ImGuiInputTextFlags flags)" +defs["igInputInt3"][1]["argsT"] = {} +defs["igInputInt3"][1]["argsT"][1] = {} +defs["igInputInt3"][1]["argsT"][1]["name"] = "label" +defs["igInputInt3"][1]["argsT"][1]["type"] = "const char*" +defs["igInputInt3"][1]["argsT"][2] = {} +defs["igInputInt3"][1]["argsT"][2]["name"] = "v" +defs["igInputInt3"][1]["argsT"][2]["type"] = "int[3]" +defs["igInputInt3"][1]["argsT"][3] = {} +defs["igInputInt3"][1]["argsT"][3]["name"] = "flags" +defs["igInputInt3"][1]["argsT"][3]["type"] = "ImGuiInputTextFlags" +defs["igInputInt3"][1]["argsoriginal"] = "(const char* label,int v[3],ImGuiInputTextFlags flags=0)" +defs["igInputInt3"][1]["call_args"] = "(label,v,flags)" +defs["igInputInt3"][1]["cimguiname"] = "igInputInt3" +defs["igInputInt3"][1]["defaults"] = {} +defs["igInputInt3"][1]["defaults"]["flags"] = "0" +defs["igInputInt3"][1]["funcname"] = "InputInt3" +defs["igInputInt3"][1]["location"] = "imgui:584" +defs["igInputInt3"][1]["namespace"] = "ImGui" +defs["igInputInt3"][1]["ov_cimguiname"] = "igInputInt3" +defs["igInputInt3"][1]["ret"] = "bool" +defs["igInputInt3"][1]["signature"] = "(const char*,int[3],ImGuiInputTextFlags)" +defs["igInputInt3"][1]["stname"] = "" +defs["igInputInt3"]["(const char*,int[3],ImGuiInputTextFlags)"] = defs["igInputInt3"][1] +defs["igInputInt4"] = {} +defs["igInputInt4"][1] = {} +defs["igInputInt4"][1]["args"] = "(const char* label,int v[4],ImGuiInputTextFlags flags)" +defs["igInputInt4"][1]["argsT"] = {} +defs["igInputInt4"][1]["argsT"][1] = {} +defs["igInputInt4"][1]["argsT"][1]["name"] = "label" +defs["igInputInt4"][1]["argsT"][1]["type"] = "const char*" +defs["igInputInt4"][1]["argsT"][2] = {} +defs["igInputInt4"][1]["argsT"][2]["name"] = "v" +defs["igInputInt4"][1]["argsT"][2]["type"] = "int[4]" +defs["igInputInt4"][1]["argsT"][3] = {} +defs["igInputInt4"][1]["argsT"][3]["name"] = "flags" +defs["igInputInt4"][1]["argsT"][3]["type"] = "ImGuiInputTextFlags" +defs["igInputInt4"][1]["argsoriginal"] = "(const char* label,int v[4],ImGuiInputTextFlags flags=0)" +defs["igInputInt4"][1]["call_args"] = "(label,v,flags)" +defs["igInputInt4"][1]["cimguiname"] = "igInputInt4" +defs["igInputInt4"][1]["defaults"] = {} +defs["igInputInt4"][1]["defaults"]["flags"] = "0" +defs["igInputInt4"][1]["funcname"] = "InputInt4" +defs["igInputInt4"][1]["location"] = "imgui:585" +defs["igInputInt4"][1]["namespace"] = "ImGui" +defs["igInputInt4"][1]["ov_cimguiname"] = "igInputInt4" +defs["igInputInt4"][1]["ret"] = "bool" +defs["igInputInt4"][1]["signature"] = "(const char*,int[4],ImGuiInputTextFlags)" +defs["igInputInt4"][1]["stname"] = "" +defs["igInputInt4"]["(const char*,int[4],ImGuiInputTextFlags)"] = defs["igInputInt4"][1] +defs["igInputScalar"] = {} +defs["igInputScalar"][1] = {} +defs["igInputScalar"][1]["args"] = "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step,const void* p_step_fast,const char* format,ImGuiInputTextFlags flags)" +defs["igInputScalar"][1]["argsT"] = {} +defs["igInputScalar"][1]["argsT"][1] = {} +defs["igInputScalar"][1]["argsT"][1]["name"] = "label" +defs["igInputScalar"][1]["argsT"][1]["type"] = "const char*" +defs["igInputScalar"][1]["argsT"][2] = {} +defs["igInputScalar"][1]["argsT"][2]["name"] = "data_type" +defs["igInputScalar"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igInputScalar"][1]["argsT"][3] = {} +defs["igInputScalar"][1]["argsT"][3]["name"] = "p_data" +defs["igInputScalar"][1]["argsT"][3]["type"] = "void*" +defs["igInputScalar"][1]["argsT"][4] = {} +defs["igInputScalar"][1]["argsT"][4]["name"] = "p_step" +defs["igInputScalar"][1]["argsT"][4]["type"] = "const void*" +defs["igInputScalar"][1]["argsT"][5] = {} +defs["igInputScalar"][1]["argsT"][5]["name"] = "p_step_fast" +defs["igInputScalar"][1]["argsT"][5]["type"] = "const void*" +defs["igInputScalar"][1]["argsT"][6] = {} +defs["igInputScalar"][1]["argsT"][6]["name"] = "format" +defs["igInputScalar"][1]["argsT"][6]["type"] = "const char*" +defs["igInputScalar"][1]["argsT"][7] = {} +defs["igInputScalar"][1]["argsT"][7]["name"] = "flags" +defs["igInputScalar"][1]["argsT"][7]["type"] = "ImGuiInputTextFlags" +defs["igInputScalar"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)" +defs["igInputScalar"][1]["call_args"] = "(label,data_type,p_data,p_step,p_step_fast,format,flags)" +defs["igInputScalar"][1]["cimguiname"] = "igInputScalar" +defs["igInputScalar"][1]["defaults"] = {} +defs["igInputScalar"][1]["defaults"]["flags"] = "0" +defs["igInputScalar"][1]["defaults"]["format"] = "NULL" +defs["igInputScalar"][1]["defaults"]["p_step"] = "NULL" +defs["igInputScalar"][1]["defaults"]["p_step_fast"] = "NULL" +defs["igInputScalar"][1]["funcname"] = "InputScalar" +defs["igInputScalar"][1]["location"] = "imgui:587" +defs["igInputScalar"][1]["namespace"] = "ImGui" +defs["igInputScalar"][1]["ov_cimguiname"] = "igInputScalar" +defs["igInputScalar"][1]["ret"] = "bool" +defs["igInputScalar"][1]["signature"] = "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiInputTextFlags)" +defs["igInputScalar"][1]["stname"] = "" +defs["igInputScalar"]["(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiInputTextFlags)"] = defs["igInputScalar"][1] +defs["igInputScalarN"] = {} +defs["igInputScalarN"][1] = {} +defs["igInputScalarN"][1]["args"] = "(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)" +defs["igInputScalarN"][1]["argsT"] = {} +defs["igInputScalarN"][1]["argsT"][1] = {} +defs["igInputScalarN"][1]["argsT"][1]["name"] = "label" +defs["igInputScalarN"][1]["argsT"][1]["type"] = "const char*" +defs["igInputScalarN"][1]["argsT"][2] = {} +defs["igInputScalarN"][1]["argsT"][2]["name"] = "data_type" +defs["igInputScalarN"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igInputScalarN"][1]["argsT"][3] = {} +defs["igInputScalarN"][1]["argsT"][3]["name"] = "p_data" +defs["igInputScalarN"][1]["argsT"][3]["type"] = "void*" +defs["igInputScalarN"][1]["argsT"][4] = {} +defs["igInputScalarN"][1]["argsT"][4]["name"] = "components" +defs["igInputScalarN"][1]["argsT"][4]["type"] = "int" +defs["igInputScalarN"][1]["argsT"][5] = {} +defs["igInputScalarN"][1]["argsT"][5]["name"] = "p_step" +defs["igInputScalarN"][1]["argsT"][5]["type"] = "const void*" +defs["igInputScalarN"][1]["argsT"][6] = {} +defs["igInputScalarN"][1]["argsT"][6]["name"] = "p_step_fast" +defs["igInputScalarN"][1]["argsT"][6]["type"] = "const void*" +defs["igInputScalarN"][1]["argsT"][7] = {} +defs["igInputScalarN"][1]["argsT"][7]["name"] = "format" +defs["igInputScalarN"][1]["argsT"][7]["type"] = "const char*" +defs["igInputScalarN"][1]["argsT"][8] = {} +defs["igInputScalarN"][1]["argsT"][8]["name"] = "flags" +defs["igInputScalarN"][1]["argsT"][8]["type"] = "ImGuiInputTextFlags" +defs["igInputScalarN"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)" +defs["igInputScalarN"][1]["call_args"] = "(label,data_type,p_data,components,p_step,p_step_fast,format,flags)" +defs["igInputScalarN"][1]["cimguiname"] = "igInputScalarN" +defs["igInputScalarN"][1]["defaults"] = {} +defs["igInputScalarN"][1]["defaults"]["flags"] = "0" +defs["igInputScalarN"][1]["defaults"]["format"] = "NULL" +defs["igInputScalarN"][1]["defaults"]["p_step"] = "NULL" +defs["igInputScalarN"][1]["defaults"]["p_step_fast"] = "NULL" +defs["igInputScalarN"][1]["funcname"] = "InputScalarN" +defs["igInputScalarN"][1]["location"] = "imgui:588" +defs["igInputScalarN"][1]["namespace"] = "ImGui" +defs["igInputScalarN"][1]["ov_cimguiname"] = "igInputScalarN" +defs["igInputScalarN"][1]["ret"] = "bool" +defs["igInputScalarN"][1]["signature"] = "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiInputTextFlags)" +defs["igInputScalarN"][1]["stname"] = "" +defs["igInputScalarN"]["(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiInputTextFlags)"] = defs["igInputScalarN"][1] +defs["igInputText"] = {} +defs["igInputText"][1] = {} +defs["igInputText"][1]["args"] = "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)" +defs["igInputText"][1]["argsT"] = {} +defs["igInputText"][1]["argsT"][1] = {} +defs["igInputText"][1]["argsT"][1]["name"] = "label" +defs["igInputText"][1]["argsT"][1]["type"] = "const char*" +defs["igInputText"][1]["argsT"][2] = {} +defs["igInputText"][1]["argsT"][2]["name"] = "buf" +defs["igInputText"][1]["argsT"][2]["type"] = "char*" +defs["igInputText"][1]["argsT"][3] = {} +defs["igInputText"][1]["argsT"][3]["name"] = "buf_size" +defs["igInputText"][1]["argsT"][3]["type"] = "size_t" +defs["igInputText"][1]["argsT"][4] = {} +defs["igInputText"][1]["argsT"][4]["name"] = "flags" +defs["igInputText"][1]["argsT"][4]["type"] = "ImGuiInputTextFlags" +defs["igInputText"][1]["argsT"][5] = {} +defs["igInputText"][1]["argsT"][5]["name"] = "callback" +defs["igInputText"][1]["argsT"][5]["type"] = "ImGuiInputTextCallback" +defs["igInputText"][1]["argsT"][6] = {} +defs["igInputText"][1]["argsT"][6]["name"] = "user_data" +defs["igInputText"][1]["argsT"][6]["type"] = "void*" +defs["igInputText"][1]["argsoriginal"] = "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))" +defs["igInputText"][1]["call_args"] = "(label,buf,buf_size,flags,callback,user_data)" +defs["igInputText"][1]["cimguiname"] = "igInputText" +defs["igInputText"][1]["defaults"] = {} +defs["igInputText"][1]["defaults"]["callback"] = "NULL" +defs["igInputText"][1]["defaults"]["flags"] = "0" +defs["igInputText"][1]["defaults"]["user_data"] = "NULL" +defs["igInputText"][1]["funcname"] = "InputText" +defs["igInputText"][1]["location"] = "imgui:575" +defs["igInputText"][1]["namespace"] = "ImGui" +defs["igInputText"][1]["ov_cimguiname"] = "igInputText" +defs["igInputText"][1]["ret"] = "bool" +defs["igInputText"][1]["signature"] = "(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)" +defs["igInputText"][1]["stname"] = "" +defs["igInputText"]["(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)"] = defs["igInputText"][1] +defs["igInputTextMultiline"] = {} +defs["igInputTextMultiline"][1] = {} +defs["igInputTextMultiline"][1]["args"] = "(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)" +defs["igInputTextMultiline"][1]["argsT"] = {} +defs["igInputTextMultiline"][1]["argsT"][1] = {} +defs["igInputTextMultiline"][1]["argsT"][1]["name"] = "label" +defs["igInputTextMultiline"][1]["argsT"][1]["type"] = "const char*" +defs["igInputTextMultiline"][1]["argsT"][2] = {} +defs["igInputTextMultiline"][1]["argsT"][2]["name"] = "buf" +defs["igInputTextMultiline"][1]["argsT"][2]["type"] = "char*" +defs["igInputTextMultiline"][1]["argsT"][3] = {} +defs["igInputTextMultiline"][1]["argsT"][3]["name"] = "buf_size" +defs["igInputTextMultiline"][1]["argsT"][3]["type"] = "size_t" +defs["igInputTextMultiline"][1]["argsT"][4] = {} +defs["igInputTextMultiline"][1]["argsT"][4]["name"] = "size" +defs["igInputTextMultiline"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igInputTextMultiline"][1]["argsT"][5] = {} +defs["igInputTextMultiline"][1]["argsT"][5]["name"] = "flags" +defs["igInputTextMultiline"][1]["argsT"][5]["type"] = "ImGuiInputTextFlags" +defs["igInputTextMultiline"][1]["argsT"][6] = {} +defs["igInputTextMultiline"][1]["argsT"][6]["name"] = "callback" +defs["igInputTextMultiline"][1]["argsT"][6]["type"] = "ImGuiInputTextCallback" +defs["igInputTextMultiline"][1]["argsT"][7] = {} +defs["igInputTextMultiline"][1]["argsT"][7]["name"] = "user_data" +defs["igInputTextMultiline"][1]["argsT"][7]["type"] = "void*" +defs["igInputTextMultiline"][1]["argsoriginal"] = "(const char* label,char* buf,size_t buf_size,const ImVec2& size=ImVec2(0,0),ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))" +defs["igInputTextMultiline"][1]["call_args"] = "(label,buf,buf_size,size,flags,callback,user_data)" +defs["igInputTextMultiline"][1]["cimguiname"] = "igInputTextMultiline" +defs["igInputTextMultiline"][1]["defaults"] = {} +defs["igInputTextMultiline"][1]["defaults"]["callback"] = "NULL" +defs["igInputTextMultiline"][1]["defaults"]["flags"] = "0" +defs["igInputTextMultiline"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igInputTextMultiline"][1]["defaults"]["user_data"] = "NULL" +defs["igInputTextMultiline"][1]["funcname"] = "InputTextMultiline" +defs["igInputTextMultiline"][1]["location"] = "imgui:576" +defs["igInputTextMultiline"][1]["namespace"] = "ImGui" +defs["igInputTextMultiline"][1]["ov_cimguiname"] = "igInputTextMultiline" +defs["igInputTextMultiline"][1]["ret"] = "bool" +defs["igInputTextMultiline"][1]["signature"] = "(const char*,char*,size_t,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)" +defs["igInputTextMultiline"][1]["stname"] = "" +defs["igInputTextMultiline"]["(const char*,char*,size_t,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)"] = defs["igInputTextMultiline"][1] +defs["igInputTextWithHint"] = {} +defs["igInputTextWithHint"][1] = {} +defs["igInputTextWithHint"][1]["args"] = "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)" +defs["igInputTextWithHint"][1]["argsT"] = {} +defs["igInputTextWithHint"][1]["argsT"][1] = {} +defs["igInputTextWithHint"][1]["argsT"][1]["name"] = "label" +defs["igInputTextWithHint"][1]["argsT"][1]["type"] = "const char*" +defs["igInputTextWithHint"][1]["argsT"][2] = {} +defs["igInputTextWithHint"][1]["argsT"][2]["name"] = "hint" +defs["igInputTextWithHint"][1]["argsT"][2]["type"] = "const char*" +defs["igInputTextWithHint"][1]["argsT"][3] = {} +defs["igInputTextWithHint"][1]["argsT"][3]["name"] = "buf" +defs["igInputTextWithHint"][1]["argsT"][3]["type"] = "char*" +defs["igInputTextWithHint"][1]["argsT"][4] = {} +defs["igInputTextWithHint"][1]["argsT"][4]["name"] = "buf_size" +defs["igInputTextWithHint"][1]["argsT"][4]["type"] = "size_t" +defs["igInputTextWithHint"][1]["argsT"][5] = {} +defs["igInputTextWithHint"][1]["argsT"][5]["name"] = "flags" +defs["igInputTextWithHint"][1]["argsT"][5]["type"] = "ImGuiInputTextFlags" +defs["igInputTextWithHint"][1]["argsT"][6] = {} +defs["igInputTextWithHint"][1]["argsT"][6]["name"] = "callback" +defs["igInputTextWithHint"][1]["argsT"][6]["type"] = "ImGuiInputTextCallback" +defs["igInputTextWithHint"][1]["argsT"][7] = {} +defs["igInputTextWithHint"][1]["argsT"][7]["name"] = "user_data" +defs["igInputTextWithHint"][1]["argsT"][7]["type"] = "void*" +defs["igInputTextWithHint"][1]["argsoriginal"] = "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))" +defs["igInputTextWithHint"][1]["call_args"] = "(label,hint,buf,buf_size,flags,callback,user_data)" +defs["igInputTextWithHint"][1]["cimguiname"] = "igInputTextWithHint" +defs["igInputTextWithHint"][1]["defaults"] = {} +defs["igInputTextWithHint"][1]["defaults"]["callback"] = "NULL" +defs["igInputTextWithHint"][1]["defaults"]["flags"] = "0" +defs["igInputTextWithHint"][1]["defaults"]["user_data"] = "NULL" +defs["igInputTextWithHint"][1]["funcname"] = "InputTextWithHint" +defs["igInputTextWithHint"][1]["location"] = "imgui:577" +defs["igInputTextWithHint"][1]["namespace"] = "ImGui" +defs["igInputTextWithHint"][1]["ov_cimguiname"] = "igInputTextWithHint" +defs["igInputTextWithHint"][1]["ret"] = "bool" +defs["igInputTextWithHint"][1]["signature"] = "(const char*,const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)" +defs["igInputTextWithHint"][1]["stname"] = "" +defs["igInputTextWithHint"]["(const char*,const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)"] = defs["igInputTextWithHint"][1] +defs["igInvisibleButton"] = {} +defs["igInvisibleButton"][1] = {} +defs["igInvisibleButton"][1]["args"] = "(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags)" +defs["igInvisibleButton"][1]["argsT"] = {} +defs["igInvisibleButton"][1]["argsT"][1] = {} +defs["igInvisibleButton"][1]["argsT"][1]["name"] = "str_id" +defs["igInvisibleButton"][1]["argsT"][1]["type"] = "const char*" +defs["igInvisibleButton"][1]["argsT"][2] = {} +defs["igInvisibleButton"][1]["argsT"][2]["name"] = "size" +defs["igInvisibleButton"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igInvisibleButton"][1]["argsT"][3] = {} +defs["igInvisibleButton"][1]["argsT"][3]["name"] = "flags" +defs["igInvisibleButton"][1]["argsT"][3]["type"] = "ImGuiButtonFlags" +defs["igInvisibleButton"][1]["argsoriginal"] = "(const char* str_id,const ImVec2& size,ImGuiButtonFlags flags=0)" +defs["igInvisibleButton"][1]["call_args"] = "(str_id,size,flags)" +defs["igInvisibleButton"][1]["cimguiname"] = "igInvisibleButton" +defs["igInvisibleButton"][1]["defaults"] = {} +defs["igInvisibleButton"][1]["defaults"]["flags"] = "0" +defs["igInvisibleButton"][1]["funcname"] = "InvisibleButton" +defs["igInvisibleButton"][1]["location"] = "imgui:502" +defs["igInvisibleButton"][1]["namespace"] = "ImGui" +defs["igInvisibleButton"][1]["ov_cimguiname"] = "igInvisibleButton" +defs["igInvisibleButton"][1]["ret"] = "bool" +defs["igInvisibleButton"][1]["signature"] = "(const char*,const ImVec2,ImGuiButtonFlags)" +defs["igInvisibleButton"][1]["stname"] = "" +defs["igInvisibleButton"]["(const char*,const ImVec2,ImGuiButtonFlags)"] = defs["igInvisibleButton"][1] +defs["igIsAnyItemActive"] = {} +defs["igIsAnyItemActive"][1] = {} +defs["igIsAnyItemActive"][1]["args"] = "()" +defs["igIsAnyItemActive"][1]["argsT"] = {} +defs["igIsAnyItemActive"][1]["argsoriginal"] = "()" +defs["igIsAnyItemActive"][1]["call_args"] = "()" +defs["igIsAnyItemActive"][1]["cimguiname"] = "igIsAnyItemActive" +defs["igIsAnyItemActive"][1]["defaults"] = {} +defs["igIsAnyItemActive"][1]["funcname"] = "IsAnyItemActive" +defs["igIsAnyItemActive"][1]["location"] = "imgui:846" +defs["igIsAnyItemActive"][1]["namespace"] = "ImGui" +defs["igIsAnyItemActive"][1]["ov_cimguiname"] = "igIsAnyItemActive" +defs["igIsAnyItemActive"][1]["ret"] = "bool" +defs["igIsAnyItemActive"][1]["signature"] = "()" +defs["igIsAnyItemActive"][1]["stname"] = "" +defs["igIsAnyItemActive"]["()"] = defs["igIsAnyItemActive"][1] +defs["igIsAnyItemFocused"] = {} +defs["igIsAnyItemFocused"][1] = {} +defs["igIsAnyItemFocused"][1]["args"] = "()" +defs["igIsAnyItemFocused"][1]["argsT"] = {} +defs["igIsAnyItemFocused"][1]["argsoriginal"] = "()" +defs["igIsAnyItemFocused"][1]["call_args"] = "()" +defs["igIsAnyItemFocused"][1]["cimguiname"] = "igIsAnyItemFocused" +defs["igIsAnyItemFocused"][1]["defaults"] = {} +defs["igIsAnyItemFocused"][1]["funcname"] = "IsAnyItemFocused" +defs["igIsAnyItemFocused"][1]["location"] = "imgui:847" +defs["igIsAnyItemFocused"][1]["namespace"] = "ImGui" +defs["igIsAnyItemFocused"][1]["ov_cimguiname"] = "igIsAnyItemFocused" +defs["igIsAnyItemFocused"][1]["ret"] = "bool" +defs["igIsAnyItemFocused"][1]["signature"] = "()" +defs["igIsAnyItemFocused"][1]["stname"] = "" +defs["igIsAnyItemFocused"]["()"] = defs["igIsAnyItemFocused"][1] +defs["igIsAnyItemHovered"] = {} +defs["igIsAnyItemHovered"][1] = {} +defs["igIsAnyItemHovered"][1]["args"] = "()" +defs["igIsAnyItemHovered"][1]["argsT"] = {} +defs["igIsAnyItemHovered"][1]["argsoriginal"] = "()" +defs["igIsAnyItemHovered"][1]["call_args"] = "()" +defs["igIsAnyItemHovered"][1]["cimguiname"] = "igIsAnyItemHovered" +defs["igIsAnyItemHovered"][1]["defaults"] = {} +defs["igIsAnyItemHovered"][1]["funcname"] = "IsAnyItemHovered" +defs["igIsAnyItemHovered"][1]["location"] = "imgui:845" +defs["igIsAnyItemHovered"][1]["namespace"] = "ImGui" +defs["igIsAnyItemHovered"][1]["ov_cimguiname"] = "igIsAnyItemHovered" +defs["igIsAnyItemHovered"][1]["ret"] = "bool" +defs["igIsAnyItemHovered"][1]["signature"] = "()" +defs["igIsAnyItemHovered"][1]["stname"] = "" +defs["igIsAnyItemHovered"]["()"] = defs["igIsAnyItemHovered"][1] +defs["igIsAnyMouseDown"] = {} +defs["igIsAnyMouseDown"][1] = {} +defs["igIsAnyMouseDown"][1]["args"] = "()" +defs["igIsAnyMouseDown"][1]["argsT"] = {} +defs["igIsAnyMouseDown"][1]["argsoriginal"] = "()" +defs["igIsAnyMouseDown"][1]["call_args"] = "()" +defs["igIsAnyMouseDown"][1]["cimguiname"] = "igIsAnyMouseDown" +defs["igIsAnyMouseDown"][1]["defaults"] = {} +defs["igIsAnyMouseDown"][1]["funcname"] = "IsAnyMouseDown" +defs["igIsAnyMouseDown"][1]["location"] = "imgui:908" +defs["igIsAnyMouseDown"][1]["namespace"] = "ImGui" +defs["igIsAnyMouseDown"][1]["ov_cimguiname"] = "igIsAnyMouseDown" +defs["igIsAnyMouseDown"][1]["ret"] = "bool" +defs["igIsAnyMouseDown"][1]["signature"] = "()" +defs["igIsAnyMouseDown"][1]["stname"] = "" +defs["igIsAnyMouseDown"]["()"] = defs["igIsAnyMouseDown"][1] +defs["igIsItemActivated"] = {} +defs["igIsItemActivated"][1] = {} +defs["igIsItemActivated"][1]["args"] = "()" +defs["igIsItemActivated"][1]["argsT"] = {} +defs["igIsItemActivated"][1]["argsoriginal"] = "()" +defs["igIsItemActivated"][1]["call_args"] = "()" +defs["igIsItemActivated"][1]["cimguiname"] = "igIsItemActivated" +defs["igIsItemActivated"][1]["defaults"] = {} +defs["igIsItemActivated"][1]["funcname"] = "IsItemActivated" +defs["igIsItemActivated"][1]["location"] = "imgui:841" +defs["igIsItemActivated"][1]["namespace"] = "ImGui" +defs["igIsItemActivated"][1]["ov_cimguiname"] = "igIsItemActivated" +defs["igIsItemActivated"][1]["ret"] = "bool" +defs["igIsItemActivated"][1]["signature"] = "()" +defs["igIsItemActivated"][1]["stname"] = "" +defs["igIsItemActivated"]["()"] = defs["igIsItemActivated"][1] +defs["igIsItemActive"] = {} +defs["igIsItemActive"][1] = {} +defs["igIsItemActive"][1]["args"] = "()" +defs["igIsItemActive"][1]["argsT"] = {} +defs["igIsItemActive"][1]["argsoriginal"] = "()" +defs["igIsItemActive"][1]["call_args"] = "()" +defs["igIsItemActive"][1]["cimguiname"] = "igIsItemActive" +defs["igIsItemActive"][1]["defaults"] = {} +defs["igIsItemActive"][1]["funcname"] = "IsItemActive" +defs["igIsItemActive"][1]["location"] = "imgui:836" +defs["igIsItemActive"][1]["namespace"] = "ImGui" +defs["igIsItemActive"][1]["ov_cimguiname"] = "igIsItemActive" +defs["igIsItemActive"][1]["ret"] = "bool" +defs["igIsItemActive"][1]["signature"] = "()" +defs["igIsItemActive"][1]["stname"] = "" +defs["igIsItemActive"]["()"] = defs["igIsItemActive"][1] +defs["igIsItemClicked"] = {} +defs["igIsItemClicked"][1] = {} +defs["igIsItemClicked"][1]["args"] = "(ImGuiMouseButton mouse_button)" +defs["igIsItemClicked"][1]["argsT"] = {} +defs["igIsItemClicked"][1]["argsT"][1] = {} +defs["igIsItemClicked"][1]["argsT"][1]["name"] = "mouse_button" +defs["igIsItemClicked"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsItemClicked"][1]["argsoriginal"] = "(ImGuiMouseButton mouse_button=0)" +defs["igIsItemClicked"][1]["call_args"] = "(mouse_button)" +defs["igIsItemClicked"][1]["cimguiname"] = "igIsItemClicked" +defs["igIsItemClicked"][1]["defaults"] = {} +defs["igIsItemClicked"][1]["defaults"]["mouse_button"] = "0" +defs["igIsItemClicked"][1]["funcname"] = "IsItemClicked" +defs["igIsItemClicked"][1]["location"] = "imgui:838" +defs["igIsItemClicked"][1]["namespace"] = "ImGui" +defs["igIsItemClicked"][1]["ov_cimguiname"] = "igIsItemClicked" +defs["igIsItemClicked"][1]["ret"] = "bool" +defs["igIsItemClicked"][1]["signature"] = "(ImGuiMouseButton)" +defs["igIsItemClicked"][1]["stname"] = "" +defs["igIsItemClicked"]["(ImGuiMouseButton)"] = defs["igIsItemClicked"][1] +defs["igIsItemDeactivated"] = {} +defs["igIsItemDeactivated"][1] = {} +defs["igIsItemDeactivated"][1]["args"] = "()" +defs["igIsItemDeactivated"][1]["argsT"] = {} +defs["igIsItemDeactivated"][1]["argsoriginal"] = "()" +defs["igIsItemDeactivated"][1]["call_args"] = "()" +defs["igIsItemDeactivated"][1]["cimguiname"] = "igIsItemDeactivated" +defs["igIsItemDeactivated"][1]["defaults"] = {} +defs["igIsItemDeactivated"][1]["funcname"] = "IsItemDeactivated" +defs["igIsItemDeactivated"][1]["location"] = "imgui:842" +defs["igIsItemDeactivated"][1]["namespace"] = "ImGui" +defs["igIsItemDeactivated"][1]["ov_cimguiname"] = "igIsItemDeactivated" +defs["igIsItemDeactivated"][1]["ret"] = "bool" +defs["igIsItemDeactivated"][1]["signature"] = "()" +defs["igIsItemDeactivated"][1]["stname"] = "" +defs["igIsItemDeactivated"]["()"] = defs["igIsItemDeactivated"][1] +defs["igIsItemDeactivatedAfterEdit"] = {} +defs["igIsItemDeactivatedAfterEdit"][1] = {} +defs["igIsItemDeactivatedAfterEdit"][1]["args"] = "()" +defs["igIsItemDeactivatedAfterEdit"][1]["argsT"] = {} +defs["igIsItemDeactivatedAfterEdit"][1]["argsoriginal"] = "()" +defs["igIsItemDeactivatedAfterEdit"][1]["call_args"] = "()" +defs["igIsItemDeactivatedAfterEdit"][1]["cimguiname"] = "igIsItemDeactivatedAfterEdit" +defs["igIsItemDeactivatedAfterEdit"][1]["defaults"] = {} +defs["igIsItemDeactivatedAfterEdit"][1]["funcname"] = "IsItemDeactivatedAfterEdit" +defs["igIsItemDeactivatedAfterEdit"][1]["location"] = "imgui:843" +defs["igIsItemDeactivatedAfterEdit"][1]["namespace"] = "ImGui" +defs["igIsItemDeactivatedAfterEdit"][1]["ov_cimguiname"] = "igIsItemDeactivatedAfterEdit" +defs["igIsItemDeactivatedAfterEdit"][1]["ret"] = "bool" +defs["igIsItemDeactivatedAfterEdit"][1]["signature"] = "()" +defs["igIsItemDeactivatedAfterEdit"][1]["stname"] = "" +defs["igIsItemDeactivatedAfterEdit"]["()"] = defs["igIsItemDeactivatedAfterEdit"][1] +defs["igIsItemEdited"] = {} +defs["igIsItemEdited"][1] = {} +defs["igIsItemEdited"][1]["args"] = "()" +defs["igIsItemEdited"][1]["argsT"] = {} +defs["igIsItemEdited"][1]["argsoriginal"] = "()" +defs["igIsItemEdited"][1]["call_args"] = "()" +defs["igIsItemEdited"][1]["cimguiname"] = "igIsItemEdited" +defs["igIsItemEdited"][1]["defaults"] = {} +defs["igIsItemEdited"][1]["funcname"] = "IsItemEdited" +defs["igIsItemEdited"][1]["location"] = "imgui:840" +defs["igIsItemEdited"][1]["namespace"] = "ImGui" +defs["igIsItemEdited"][1]["ov_cimguiname"] = "igIsItemEdited" +defs["igIsItemEdited"][1]["ret"] = "bool" +defs["igIsItemEdited"][1]["signature"] = "()" +defs["igIsItemEdited"][1]["stname"] = "" +defs["igIsItemEdited"]["()"] = defs["igIsItemEdited"][1] +defs["igIsItemFocused"] = {} +defs["igIsItemFocused"][1] = {} +defs["igIsItemFocused"][1]["args"] = "()" +defs["igIsItemFocused"][1]["argsT"] = {} +defs["igIsItemFocused"][1]["argsoriginal"] = "()" +defs["igIsItemFocused"][1]["call_args"] = "()" +defs["igIsItemFocused"][1]["cimguiname"] = "igIsItemFocused" +defs["igIsItemFocused"][1]["defaults"] = {} +defs["igIsItemFocused"][1]["funcname"] = "IsItemFocused" +defs["igIsItemFocused"][1]["location"] = "imgui:837" +defs["igIsItemFocused"][1]["namespace"] = "ImGui" +defs["igIsItemFocused"][1]["ov_cimguiname"] = "igIsItemFocused" +defs["igIsItemFocused"][1]["ret"] = "bool" +defs["igIsItemFocused"][1]["signature"] = "()" +defs["igIsItemFocused"][1]["stname"] = "" +defs["igIsItemFocused"]["()"] = defs["igIsItemFocused"][1] +defs["igIsItemHovered"] = {} +defs["igIsItemHovered"][1] = {} +defs["igIsItemHovered"][1]["args"] = "(ImGuiHoveredFlags flags)" +defs["igIsItemHovered"][1]["argsT"] = {} +defs["igIsItemHovered"][1]["argsT"][1] = {} +defs["igIsItemHovered"][1]["argsT"][1]["name"] = "flags" +defs["igIsItemHovered"][1]["argsT"][1]["type"] = "ImGuiHoveredFlags" +defs["igIsItemHovered"][1]["argsoriginal"] = "(ImGuiHoveredFlags flags=0)" +defs["igIsItemHovered"][1]["call_args"] = "(flags)" +defs["igIsItemHovered"][1]["cimguiname"] = "igIsItemHovered" +defs["igIsItemHovered"][1]["defaults"] = {} +defs["igIsItemHovered"][1]["defaults"]["flags"] = "0" +defs["igIsItemHovered"][1]["funcname"] = "IsItemHovered" +defs["igIsItemHovered"][1]["location"] = "imgui:835" +defs["igIsItemHovered"][1]["namespace"] = "ImGui" +defs["igIsItemHovered"][1]["ov_cimguiname"] = "igIsItemHovered" +defs["igIsItemHovered"][1]["ret"] = "bool" +defs["igIsItemHovered"][1]["signature"] = "(ImGuiHoveredFlags)" +defs["igIsItemHovered"][1]["stname"] = "" +defs["igIsItemHovered"]["(ImGuiHoveredFlags)"] = defs["igIsItemHovered"][1] +defs["igIsItemToggledOpen"] = {} +defs["igIsItemToggledOpen"][1] = {} +defs["igIsItemToggledOpen"][1]["args"] = "()" +defs["igIsItemToggledOpen"][1]["argsT"] = {} +defs["igIsItemToggledOpen"][1]["argsoriginal"] = "()" +defs["igIsItemToggledOpen"][1]["call_args"] = "()" +defs["igIsItemToggledOpen"][1]["cimguiname"] = "igIsItemToggledOpen" +defs["igIsItemToggledOpen"][1]["defaults"] = {} +defs["igIsItemToggledOpen"][1]["funcname"] = "IsItemToggledOpen" +defs["igIsItemToggledOpen"][1]["location"] = "imgui:844" +defs["igIsItemToggledOpen"][1]["namespace"] = "ImGui" +defs["igIsItemToggledOpen"][1]["ov_cimguiname"] = "igIsItemToggledOpen" +defs["igIsItemToggledOpen"][1]["ret"] = "bool" +defs["igIsItemToggledOpen"][1]["signature"] = "()" +defs["igIsItemToggledOpen"][1]["stname"] = "" +defs["igIsItemToggledOpen"]["()"] = defs["igIsItemToggledOpen"][1] +defs["igIsItemVisible"] = {} +defs["igIsItemVisible"][1] = {} +defs["igIsItemVisible"][1]["args"] = "()" +defs["igIsItemVisible"][1]["argsT"] = {} +defs["igIsItemVisible"][1]["argsoriginal"] = "()" +defs["igIsItemVisible"][1]["call_args"] = "()" +defs["igIsItemVisible"][1]["cimguiname"] = "igIsItemVisible" +defs["igIsItemVisible"][1]["defaults"] = {} +defs["igIsItemVisible"][1]["funcname"] = "IsItemVisible" +defs["igIsItemVisible"][1]["location"] = "imgui:839" +defs["igIsItemVisible"][1]["namespace"] = "ImGui" +defs["igIsItemVisible"][1]["ov_cimguiname"] = "igIsItemVisible" +defs["igIsItemVisible"][1]["ret"] = "bool" +defs["igIsItemVisible"][1]["signature"] = "()" +defs["igIsItemVisible"][1]["stname"] = "" +defs["igIsItemVisible"]["()"] = defs["igIsItemVisible"][1] +defs["igIsKeyDown"] = {} +defs["igIsKeyDown"][1] = {} +defs["igIsKeyDown"][1]["args"] = "(ImGuiKey key)" +defs["igIsKeyDown"][1]["argsT"] = {} +defs["igIsKeyDown"][1]["argsT"][1] = {} +defs["igIsKeyDown"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyDown"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyDown"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyDown"][1]["call_args"] = "(key)" +defs["igIsKeyDown"][1]["cimguiname"] = "igIsKeyDown" +defs["igIsKeyDown"][1]["defaults"] = {} +defs["igIsKeyDown"][1]["funcname"] = "IsKeyDown" +defs["igIsKeyDown"][1]["location"] = "imgui:890" +defs["igIsKeyDown"][1]["namespace"] = "ImGui" +defs["igIsKeyDown"][1]["ov_cimguiname"] = "igIsKeyDown" +defs["igIsKeyDown"][1]["ret"] = "bool" +defs["igIsKeyDown"][1]["signature"] = "(ImGuiKey)" +defs["igIsKeyDown"][1]["stname"] = "" +defs["igIsKeyDown"]["(ImGuiKey)"] = defs["igIsKeyDown"][1] +defs["igIsKeyPressed"] = {} +defs["igIsKeyPressed"][1] = {} +defs["igIsKeyPressed"][1]["args"] = "(ImGuiKey key,bool repeat)" +defs["igIsKeyPressed"][1]["argsT"] = {} +defs["igIsKeyPressed"][1]["argsT"][1] = {} +defs["igIsKeyPressed"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyPressed"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyPressed"][1]["argsT"][2] = {} +defs["igIsKeyPressed"][1]["argsT"][2]["name"] = "repeat" +defs["igIsKeyPressed"][1]["argsT"][2]["type"] = "bool" +defs["igIsKeyPressed"][1]["argsoriginal"] = "(ImGuiKey key,bool repeat=true)" +defs["igIsKeyPressed"][1]["call_args"] = "(key,repeat)" +defs["igIsKeyPressed"][1]["cimguiname"] = "igIsKeyPressed" +defs["igIsKeyPressed"][1]["defaults"] = {} +defs["igIsKeyPressed"][1]["defaults"]["repeat"] = "true" +defs["igIsKeyPressed"][1]["funcname"] = "IsKeyPressed" +defs["igIsKeyPressed"][1]["location"] = "imgui:891" +defs["igIsKeyPressed"][1]["namespace"] = "ImGui" +defs["igIsKeyPressed"][1]["ov_cimguiname"] = "igIsKeyPressed" +defs["igIsKeyPressed"][1]["ret"] = "bool" +defs["igIsKeyPressed"][1]["signature"] = "(ImGuiKey,bool)" +defs["igIsKeyPressed"][1]["stname"] = "" +defs["igIsKeyPressed"]["(ImGuiKey,bool)"] = defs["igIsKeyPressed"][1] +defs["igIsKeyReleased"] = {} +defs["igIsKeyReleased"][1] = {} +defs["igIsKeyReleased"][1]["args"] = "(ImGuiKey key)" +defs["igIsKeyReleased"][1]["argsT"] = {} +defs["igIsKeyReleased"][1]["argsT"][1] = {} +defs["igIsKeyReleased"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyReleased"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyReleased"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyReleased"][1]["call_args"] = "(key)" +defs["igIsKeyReleased"][1]["cimguiname"] = "igIsKeyReleased" +defs["igIsKeyReleased"][1]["defaults"] = {} +defs["igIsKeyReleased"][1]["funcname"] = "IsKeyReleased" +defs["igIsKeyReleased"][1]["location"] = "imgui:892" +defs["igIsKeyReleased"][1]["namespace"] = "ImGui" +defs["igIsKeyReleased"][1]["ov_cimguiname"] = "igIsKeyReleased" +defs["igIsKeyReleased"][1]["ret"] = "bool" +defs["igIsKeyReleased"][1]["signature"] = "(ImGuiKey)" +defs["igIsKeyReleased"][1]["stname"] = "" +defs["igIsKeyReleased"]["(ImGuiKey)"] = defs["igIsKeyReleased"][1] +defs["igIsMouseClicked"] = {} +defs["igIsMouseClicked"][1] = {} +defs["igIsMouseClicked"][1]["args"] = "(ImGuiMouseButton button,bool repeat)" +defs["igIsMouseClicked"][1]["argsT"] = {} +defs["igIsMouseClicked"][1]["argsT"][1] = {} +defs["igIsMouseClicked"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseClicked"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseClicked"][1]["argsT"][2] = {} +defs["igIsMouseClicked"][1]["argsT"][2]["name"] = "repeat" +defs["igIsMouseClicked"][1]["argsT"][2]["type"] = "bool" +defs["igIsMouseClicked"][1]["argsoriginal"] = "(ImGuiMouseButton button,bool repeat=false)" +defs["igIsMouseClicked"][1]["call_args"] = "(button,repeat)" +defs["igIsMouseClicked"][1]["cimguiname"] = "igIsMouseClicked" +defs["igIsMouseClicked"][1]["defaults"] = {} +defs["igIsMouseClicked"][1]["defaults"]["repeat"] = "false" +defs["igIsMouseClicked"][1]["funcname"] = "IsMouseClicked" +defs["igIsMouseClicked"][1]["location"] = "imgui:902" +defs["igIsMouseClicked"][1]["namespace"] = "ImGui" +defs["igIsMouseClicked"][1]["ov_cimguiname"] = "igIsMouseClicked" +defs["igIsMouseClicked"][1]["ret"] = "bool" +defs["igIsMouseClicked"][1]["signature"] = "(ImGuiMouseButton,bool)" +defs["igIsMouseClicked"][1]["stname"] = "" +defs["igIsMouseClicked"]["(ImGuiMouseButton,bool)"] = defs["igIsMouseClicked"][1] +defs["igIsMouseDoubleClicked"] = {} +defs["igIsMouseDoubleClicked"][1] = {} +defs["igIsMouseDoubleClicked"][1]["args"] = "(ImGuiMouseButton button)" +defs["igIsMouseDoubleClicked"][1]["argsT"] = {} +defs["igIsMouseDoubleClicked"][1]["argsT"][1] = {} +defs["igIsMouseDoubleClicked"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseDoubleClicked"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseDoubleClicked"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igIsMouseDoubleClicked"][1]["call_args"] = "(button)" +defs["igIsMouseDoubleClicked"][1]["cimguiname"] = "igIsMouseDoubleClicked" +defs["igIsMouseDoubleClicked"][1]["defaults"] = {} +defs["igIsMouseDoubleClicked"][1]["funcname"] = "IsMouseDoubleClicked" +defs["igIsMouseDoubleClicked"][1]["location"] = "imgui:904" +defs["igIsMouseDoubleClicked"][1]["namespace"] = "ImGui" +defs["igIsMouseDoubleClicked"][1]["ov_cimguiname"] = "igIsMouseDoubleClicked" +defs["igIsMouseDoubleClicked"][1]["ret"] = "bool" +defs["igIsMouseDoubleClicked"][1]["signature"] = "(ImGuiMouseButton)" +defs["igIsMouseDoubleClicked"][1]["stname"] = "" +defs["igIsMouseDoubleClicked"]["(ImGuiMouseButton)"] = defs["igIsMouseDoubleClicked"][1] +defs["igIsMouseDown"] = {} +defs["igIsMouseDown"][1] = {} +defs["igIsMouseDown"][1]["args"] = "(ImGuiMouseButton button)" +defs["igIsMouseDown"][1]["argsT"] = {} +defs["igIsMouseDown"][1]["argsT"][1] = {} +defs["igIsMouseDown"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseDown"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseDown"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igIsMouseDown"][1]["call_args"] = "(button)" +defs["igIsMouseDown"][1]["cimguiname"] = "igIsMouseDown" +defs["igIsMouseDown"][1]["defaults"] = {} +defs["igIsMouseDown"][1]["funcname"] = "IsMouseDown" +defs["igIsMouseDown"][1]["location"] = "imgui:901" +defs["igIsMouseDown"][1]["namespace"] = "ImGui" +defs["igIsMouseDown"][1]["ov_cimguiname"] = "igIsMouseDown" +defs["igIsMouseDown"][1]["ret"] = "bool" +defs["igIsMouseDown"][1]["signature"] = "(ImGuiMouseButton)" +defs["igIsMouseDown"][1]["stname"] = "" +defs["igIsMouseDown"]["(ImGuiMouseButton)"] = defs["igIsMouseDown"][1] +defs["igIsMouseDragging"] = {} +defs["igIsMouseDragging"][1] = {} +defs["igIsMouseDragging"][1]["args"] = "(ImGuiMouseButton button,float lock_threshold)" +defs["igIsMouseDragging"][1]["argsT"] = {} +defs["igIsMouseDragging"][1]["argsT"][1] = {} +defs["igIsMouseDragging"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseDragging"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseDragging"][1]["argsT"][2] = {} +defs["igIsMouseDragging"][1]["argsT"][2]["name"] = "lock_threshold" +defs["igIsMouseDragging"][1]["argsT"][2]["type"] = "float" +defs["igIsMouseDragging"][1]["argsoriginal"] = "(ImGuiMouseButton button,float lock_threshold=-1.0f)" +defs["igIsMouseDragging"][1]["call_args"] = "(button,lock_threshold)" +defs["igIsMouseDragging"][1]["cimguiname"] = "igIsMouseDragging" +defs["igIsMouseDragging"][1]["defaults"] = {} +defs["igIsMouseDragging"][1]["defaults"]["lock_threshold"] = "-1.0f" +defs["igIsMouseDragging"][1]["funcname"] = "IsMouseDragging" +defs["igIsMouseDragging"][1]["location"] = "imgui:911" +defs["igIsMouseDragging"][1]["namespace"] = "ImGui" +defs["igIsMouseDragging"][1]["ov_cimguiname"] = "igIsMouseDragging" +defs["igIsMouseDragging"][1]["ret"] = "bool" +defs["igIsMouseDragging"][1]["signature"] = "(ImGuiMouseButton,float)" +defs["igIsMouseDragging"][1]["stname"] = "" +defs["igIsMouseDragging"]["(ImGuiMouseButton,float)"] = defs["igIsMouseDragging"][1] +defs["igIsMouseHoveringRect"] = {} +defs["igIsMouseHoveringRect"][1] = {} +defs["igIsMouseHoveringRect"][1]["args"] = "(const ImVec2 r_min,const ImVec2 r_max,bool clip)" +defs["igIsMouseHoveringRect"][1]["argsT"] = {} +defs["igIsMouseHoveringRect"][1]["argsT"][1] = {} +defs["igIsMouseHoveringRect"][1]["argsT"][1]["name"] = "r_min" +defs["igIsMouseHoveringRect"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igIsMouseHoveringRect"][1]["argsT"][2] = {} +defs["igIsMouseHoveringRect"][1]["argsT"][2]["name"] = "r_max" +defs["igIsMouseHoveringRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igIsMouseHoveringRect"][1]["argsT"][3] = {} +defs["igIsMouseHoveringRect"][1]["argsT"][3]["name"] = "clip" +defs["igIsMouseHoveringRect"][1]["argsT"][3]["type"] = "bool" +defs["igIsMouseHoveringRect"][1]["argsoriginal"] = "(const ImVec2& r_min,const ImVec2& r_max,bool clip=true)" +defs["igIsMouseHoveringRect"][1]["call_args"] = "(r_min,r_max,clip)" +defs["igIsMouseHoveringRect"][1]["cimguiname"] = "igIsMouseHoveringRect" +defs["igIsMouseHoveringRect"][1]["defaults"] = {} +defs["igIsMouseHoveringRect"][1]["defaults"]["clip"] = "true" +defs["igIsMouseHoveringRect"][1]["funcname"] = "IsMouseHoveringRect" +defs["igIsMouseHoveringRect"][1]["location"] = "imgui:906" +defs["igIsMouseHoveringRect"][1]["namespace"] = "ImGui" +defs["igIsMouseHoveringRect"][1]["ov_cimguiname"] = "igIsMouseHoveringRect" +defs["igIsMouseHoveringRect"][1]["ret"] = "bool" +defs["igIsMouseHoveringRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" +defs["igIsMouseHoveringRect"][1]["stname"] = "" +defs["igIsMouseHoveringRect"]["(const ImVec2,const ImVec2,bool)"] = defs["igIsMouseHoveringRect"][1] +defs["igIsMousePosValid"] = {} +defs["igIsMousePosValid"][1] = {} +defs["igIsMousePosValid"][1]["args"] = "(const ImVec2* mouse_pos)" +defs["igIsMousePosValid"][1]["argsT"] = {} +defs["igIsMousePosValid"][1]["argsT"][1] = {} +defs["igIsMousePosValid"][1]["argsT"][1]["name"] = "mouse_pos" +defs["igIsMousePosValid"][1]["argsT"][1]["type"] = "const ImVec2*" +defs["igIsMousePosValid"][1]["argsoriginal"] = "(const ImVec2* mouse_pos=((void*)0))" +defs["igIsMousePosValid"][1]["call_args"] = "(mouse_pos)" +defs["igIsMousePosValid"][1]["cimguiname"] = "igIsMousePosValid" +defs["igIsMousePosValid"][1]["defaults"] = {} +defs["igIsMousePosValid"][1]["defaults"]["mouse_pos"] = "NULL" +defs["igIsMousePosValid"][1]["funcname"] = "IsMousePosValid" +defs["igIsMousePosValid"][1]["location"] = "imgui:907" +defs["igIsMousePosValid"][1]["namespace"] = "ImGui" +defs["igIsMousePosValid"][1]["ov_cimguiname"] = "igIsMousePosValid" +defs["igIsMousePosValid"][1]["ret"] = "bool" +defs["igIsMousePosValid"][1]["signature"] = "(const ImVec2*)" +defs["igIsMousePosValid"][1]["stname"] = "" +defs["igIsMousePosValid"]["(const ImVec2*)"] = defs["igIsMousePosValid"][1] +defs["igIsMouseReleased"] = {} +defs["igIsMouseReleased"][1] = {} +defs["igIsMouseReleased"][1]["args"] = "(ImGuiMouseButton button)" +defs["igIsMouseReleased"][1]["argsT"] = {} +defs["igIsMouseReleased"][1]["argsT"][1] = {} +defs["igIsMouseReleased"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseReleased"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseReleased"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igIsMouseReleased"][1]["call_args"] = "(button)" +defs["igIsMouseReleased"][1]["cimguiname"] = "igIsMouseReleased" +defs["igIsMouseReleased"][1]["defaults"] = {} +defs["igIsMouseReleased"][1]["funcname"] = "IsMouseReleased" +defs["igIsMouseReleased"][1]["location"] = "imgui:903" +defs["igIsMouseReleased"][1]["namespace"] = "ImGui" +defs["igIsMouseReleased"][1]["ov_cimguiname"] = "igIsMouseReleased" +defs["igIsMouseReleased"][1]["ret"] = "bool" +defs["igIsMouseReleased"][1]["signature"] = "(ImGuiMouseButton)" +defs["igIsMouseReleased"][1]["stname"] = "" +defs["igIsMouseReleased"]["(ImGuiMouseButton)"] = defs["igIsMouseReleased"][1] +defs["igIsPopupOpen"] = {} +defs["igIsPopupOpen"][1] = {} +defs["igIsPopupOpen"][1]["args"] = "(const char* str_id,ImGuiPopupFlags flags)" +defs["igIsPopupOpen"][1]["argsT"] = {} +defs["igIsPopupOpen"][1]["argsT"][1] = {} +defs["igIsPopupOpen"][1]["argsT"][1]["name"] = "str_id" +defs["igIsPopupOpen"][1]["argsT"][1]["type"] = "const char*" +defs["igIsPopupOpen"][1]["argsT"][2] = {} +defs["igIsPopupOpen"][1]["argsT"][2]["name"] = "flags" +defs["igIsPopupOpen"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igIsPopupOpen"][1]["argsoriginal"] = "(const char* str_id,ImGuiPopupFlags flags=0)" +defs["igIsPopupOpen"][1]["call_args"] = "(str_id,flags)" +defs["igIsPopupOpen"][1]["cimguiname"] = "igIsPopupOpen" +defs["igIsPopupOpen"][1]["defaults"] = {} +defs["igIsPopupOpen"][1]["defaults"]["flags"] = "0" +defs["igIsPopupOpen"][1]["funcname"] = "IsPopupOpen" +defs["igIsPopupOpen"][1]["location"] = "imgui:714" +defs["igIsPopupOpen"][1]["namespace"] = "ImGui" +defs["igIsPopupOpen"][1]["ov_cimguiname"] = "igIsPopupOpen" +defs["igIsPopupOpen"][1]["ret"] = "bool" +defs["igIsPopupOpen"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igIsPopupOpen"][1]["stname"] = "" +defs["igIsPopupOpen"]["(const char*,ImGuiPopupFlags)"] = defs["igIsPopupOpen"][1] +defs["igIsRectVisible"] = {} +defs["igIsRectVisible"][1] = {} +defs["igIsRectVisible"][1]["args"] = "(const ImVec2 size)" +defs["igIsRectVisible"][1]["argsT"] = {} +defs["igIsRectVisible"][1]["argsT"][1] = {} +defs["igIsRectVisible"][1]["argsT"][1]["name"] = "size" +defs["igIsRectVisible"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igIsRectVisible"][1]["argsoriginal"] = "(const ImVec2& size)" +defs["igIsRectVisible"][1]["call_args"] = "(size)" +defs["igIsRectVisible"][1]["cimguiname"] = "igIsRectVisible" +defs["igIsRectVisible"][1]["defaults"] = {} +defs["igIsRectVisible"][1]["funcname"] = "IsRectVisible" +defs["igIsRectVisible"][1]["location"] = "imgui:864" +defs["igIsRectVisible"][1]["namespace"] = "ImGui" +defs["igIsRectVisible"][1]["ov_cimguiname"] = "igIsRectVisible_Nil" +defs["igIsRectVisible"][1]["ret"] = "bool" +defs["igIsRectVisible"][1]["signature"] = "(const ImVec2)" +defs["igIsRectVisible"][1]["stname"] = "" +defs["igIsRectVisible"][2] = {} +defs["igIsRectVisible"][2]["args"] = "(const ImVec2 rect_min,const ImVec2 rect_max)" +defs["igIsRectVisible"][2]["argsT"] = {} +defs["igIsRectVisible"][2]["argsT"][1] = {} +defs["igIsRectVisible"][2]["argsT"][1]["name"] = "rect_min" +defs["igIsRectVisible"][2]["argsT"][1]["type"] = "const ImVec2" +defs["igIsRectVisible"][2]["argsT"][2] = {} +defs["igIsRectVisible"][2]["argsT"][2]["name"] = "rect_max" +defs["igIsRectVisible"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igIsRectVisible"][2]["argsoriginal"] = "(const ImVec2& rect_min,const ImVec2& rect_max)" +defs["igIsRectVisible"][2]["call_args"] = "(rect_min,rect_max)" +defs["igIsRectVisible"][2]["cimguiname"] = "igIsRectVisible" +defs["igIsRectVisible"][2]["defaults"] = {} +defs["igIsRectVisible"][2]["funcname"] = "IsRectVisible" +defs["igIsRectVisible"][2]["location"] = "imgui:865" +defs["igIsRectVisible"][2]["namespace"] = "ImGui" +defs["igIsRectVisible"][2]["ov_cimguiname"] = "igIsRectVisible_Vec2" +defs["igIsRectVisible"][2]["ret"] = "bool" +defs["igIsRectVisible"][2]["signature"] = "(const ImVec2,const ImVec2)" +defs["igIsRectVisible"][2]["stname"] = "" +defs["igIsRectVisible"]["(const ImVec2)"] = defs["igIsRectVisible"][1] +defs["igIsRectVisible"]["(const ImVec2,const ImVec2)"] = defs["igIsRectVisible"][2] +defs["igIsWindowAppearing"] = {} +defs["igIsWindowAppearing"][1] = {} +defs["igIsWindowAppearing"][1]["args"] = "()" +defs["igIsWindowAppearing"][1]["argsT"] = {} +defs["igIsWindowAppearing"][1]["argsoriginal"] = "()" +defs["igIsWindowAppearing"][1]["call_args"] = "()" +defs["igIsWindowAppearing"][1]["cimguiname"] = "igIsWindowAppearing" +defs["igIsWindowAppearing"][1]["defaults"] = {} +defs["igIsWindowAppearing"][1]["funcname"] = "IsWindowAppearing" +defs["igIsWindowAppearing"][1]["location"] = "imgui:347" +defs["igIsWindowAppearing"][1]["namespace"] = "ImGui" +defs["igIsWindowAppearing"][1]["ov_cimguiname"] = "igIsWindowAppearing" +defs["igIsWindowAppearing"][1]["ret"] = "bool" +defs["igIsWindowAppearing"][1]["signature"] = "()" +defs["igIsWindowAppearing"][1]["stname"] = "" +defs["igIsWindowAppearing"]["()"] = defs["igIsWindowAppearing"][1] +defs["igIsWindowCollapsed"] = {} +defs["igIsWindowCollapsed"][1] = {} +defs["igIsWindowCollapsed"][1]["args"] = "()" +defs["igIsWindowCollapsed"][1]["argsT"] = {} +defs["igIsWindowCollapsed"][1]["argsoriginal"] = "()" +defs["igIsWindowCollapsed"][1]["call_args"] = "()" +defs["igIsWindowCollapsed"][1]["cimguiname"] = "igIsWindowCollapsed" +defs["igIsWindowCollapsed"][1]["defaults"] = {} +defs["igIsWindowCollapsed"][1]["funcname"] = "IsWindowCollapsed" +defs["igIsWindowCollapsed"][1]["location"] = "imgui:348" +defs["igIsWindowCollapsed"][1]["namespace"] = "ImGui" +defs["igIsWindowCollapsed"][1]["ov_cimguiname"] = "igIsWindowCollapsed" +defs["igIsWindowCollapsed"][1]["ret"] = "bool" +defs["igIsWindowCollapsed"][1]["signature"] = "()" +defs["igIsWindowCollapsed"][1]["stname"] = "" +defs["igIsWindowCollapsed"]["()"] = defs["igIsWindowCollapsed"][1] +defs["igIsWindowFocused"] = {} +defs["igIsWindowFocused"][1] = {} +defs["igIsWindowFocused"][1]["args"] = "(ImGuiFocusedFlags flags)" +defs["igIsWindowFocused"][1]["argsT"] = {} +defs["igIsWindowFocused"][1]["argsT"][1] = {} +defs["igIsWindowFocused"][1]["argsT"][1]["name"] = "flags" +defs["igIsWindowFocused"][1]["argsT"][1]["type"] = "ImGuiFocusedFlags" +defs["igIsWindowFocused"][1]["argsoriginal"] = "(ImGuiFocusedFlags flags=0)" +defs["igIsWindowFocused"][1]["call_args"] = "(flags)" +defs["igIsWindowFocused"][1]["cimguiname"] = "igIsWindowFocused" +defs["igIsWindowFocused"][1]["defaults"] = {} +defs["igIsWindowFocused"][1]["defaults"]["flags"] = "0" +defs["igIsWindowFocused"][1]["funcname"] = "IsWindowFocused" +defs["igIsWindowFocused"][1]["location"] = "imgui:349" +defs["igIsWindowFocused"][1]["namespace"] = "ImGui" +defs["igIsWindowFocused"][1]["ov_cimguiname"] = "igIsWindowFocused" +defs["igIsWindowFocused"][1]["ret"] = "bool" +defs["igIsWindowFocused"][1]["signature"] = "(ImGuiFocusedFlags)" +defs["igIsWindowFocused"][1]["stname"] = "" +defs["igIsWindowFocused"]["(ImGuiFocusedFlags)"] = defs["igIsWindowFocused"][1] +defs["igIsWindowHovered"] = {} +defs["igIsWindowHovered"][1] = {} +defs["igIsWindowHovered"][1]["args"] = "(ImGuiHoveredFlags flags)" +defs["igIsWindowHovered"][1]["argsT"] = {} +defs["igIsWindowHovered"][1]["argsT"][1] = {} +defs["igIsWindowHovered"][1]["argsT"][1]["name"] = "flags" +defs["igIsWindowHovered"][1]["argsT"][1]["type"] = "ImGuiHoveredFlags" +defs["igIsWindowHovered"][1]["argsoriginal"] = "(ImGuiHoveredFlags flags=0)" +defs["igIsWindowHovered"][1]["call_args"] = "(flags)" +defs["igIsWindowHovered"][1]["cimguiname"] = "igIsWindowHovered" +defs["igIsWindowHovered"][1]["defaults"] = {} +defs["igIsWindowHovered"][1]["defaults"]["flags"] = "0" +defs["igIsWindowHovered"][1]["funcname"] = "IsWindowHovered" +defs["igIsWindowHovered"][1]["location"] = "imgui:350" +defs["igIsWindowHovered"][1]["namespace"] = "ImGui" +defs["igIsWindowHovered"][1]["ov_cimguiname"] = "igIsWindowHovered" +defs["igIsWindowHovered"][1]["ret"] = "bool" +defs["igIsWindowHovered"][1]["signature"] = "(ImGuiHoveredFlags)" +defs["igIsWindowHovered"][1]["stname"] = "" +defs["igIsWindowHovered"]["(ImGuiHoveredFlags)"] = defs["igIsWindowHovered"][1] +defs["igLabelText"] = {} +defs["igLabelText"][1] = {} +defs["igLabelText"][1]["args"] = "(const char* label,const char* fmt,...)" +defs["igLabelText"][1]["argsT"] = {} +defs["igLabelText"][1]["argsT"][1] = {} +defs["igLabelText"][1]["argsT"][1]["name"] = "label" +defs["igLabelText"][1]["argsT"][1]["type"] = "const char*" +defs["igLabelText"][1]["argsT"][2] = {} +defs["igLabelText"][1]["argsT"][2]["name"] = "fmt" +defs["igLabelText"][1]["argsT"][2]["type"] = "const char*" +defs["igLabelText"][1]["argsT"][3] = {} +defs["igLabelText"][1]["argsT"][3]["name"] = "..." +defs["igLabelText"][1]["argsT"][3]["type"] = "..." +defs["igLabelText"][1]["argsoriginal"] = "(const char* label,const char* fmt,...)" +defs["igLabelText"][1]["call_args"] = "(label,fmt,...)" +defs["igLabelText"][1]["cimguiname"] = "igLabelText" +defs["igLabelText"][1]["defaults"] = {} +defs["igLabelText"][1]["funcname"] = "LabelText" +defs["igLabelText"][1]["isvararg"] = "...)" +defs["igLabelText"][1]["location"] = "imgui:492" +defs["igLabelText"][1]["namespace"] = "ImGui" +defs["igLabelText"][1]["ov_cimguiname"] = "igLabelText" +defs["igLabelText"][1]["ret"] = "void" +defs["igLabelText"][1]["signature"] = "(const char*,const char*,...)" +defs["igLabelText"][1]["stname"] = "" +defs["igLabelText"]["(const char*,const char*,...)"] = defs["igLabelText"][1] +defs["igLabelTextV"] = {} +defs["igLabelTextV"][1] = {} +defs["igLabelTextV"][1]["args"] = "(const char* label,const char* fmt,va_list args)" +defs["igLabelTextV"][1]["argsT"] = {} +defs["igLabelTextV"][1]["argsT"][1] = {} +defs["igLabelTextV"][1]["argsT"][1]["name"] = "label" +defs["igLabelTextV"][1]["argsT"][1]["type"] = "const char*" +defs["igLabelTextV"][1]["argsT"][2] = {} +defs["igLabelTextV"][1]["argsT"][2]["name"] = "fmt" +defs["igLabelTextV"][1]["argsT"][2]["type"] = "const char*" +defs["igLabelTextV"][1]["argsT"][3] = {} +defs["igLabelTextV"][1]["argsT"][3]["name"] = "args" +defs["igLabelTextV"][1]["argsT"][3]["type"] = "va_list" +defs["igLabelTextV"][1]["argsoriginal"] = "(const char* label,const char* fmt,va_list args)" +defs["igLabelTextV"][1]["call_args"] = "(label,fmt,args)" +defs["igLabelTextV"][1]["cimguiname"] = "igLabelTextV" +defs["igLabelTextV"][1]["defaults"] = {} +defs["igLabelTextV"][1]["funcname"] = "LabelTextV" +defs["igLabelTextV"][1]["location"] = "imgui:493" +defs["igLabelTextV"][1]["namespace"] = "ImGui" +defs["igLabelTextV"][1]["ov_cimguiname"] = "igLabelTextV" +defs["igLabelTextV"][1]["ret"] = "void" +defs["igLabelTextV"][1]["signature"] = "(const char*,const char*,va_list)" +defs["igLabelTextV"][1]["stname"] = "" +defs["igLabelTextV"]["(const char*,const char*,va_list)"] = defs["igLabelTextV"][1] +defs["igListBox"] = {} +defs["igListBox"][1] = {} +defs["igListBox"][1]["args"] = "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items)" +defs["igListBox"][1]["argsT"] = {} +defs["igListBox"][1]["argsT"][1] = {} +defs["igListBox"][1]["argsT"][1]["name"] = "label" +defs["igListBox"][1]["argsT"][1]["type"] = "const char*" +defs["igListBox"][1]["argsT"][2] = {} +defs["igListBox"][1]["argsT"][2]["name"] = "current_item" +defs["igListBox"][1]["argsT"][2]["type"] = "int*" +defs["igListBox"][1]["argsT"][3] = {} +defs["igListBox"][1]["argsT"][3]["name"] = "items" +defs["igListBox"][1]["argsT"][3]["type"] = "const char* const[]" +defs["igListBox"][1]["argsT"][4] = {} +defs["igListBox"][1]["argsT"][4]["name"] = "items_count" +defs["igListBox"][1]["argsT"][4]["type"] = "int" +defs["igListBox"][1]["argsT"][5] = {} +defs["igListBox"][1]["argsT"][5]["name"] = "height_in_items" +defs["igListBox"][1]["argsT"][5]["type"] = "int" +defs["igListBox"][1]["argsoriginal"] = "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items=-1)" +defs["igListBox"][1]["call_args"] = "(label,current_item,items,items_count,height_in_items)" +defs["igListBox"][1]["cimguiname"] = "igListBox" +defs["igListBox"][1]["defaults"] = {} +defs["igListBox"][1]["defaults"]["height_in_items"] = "-1" +defs["igListBox"][1]["funcname"] = "ListBox" +defs["igListBox"][1]["location"] = "imgui:634" +defs["igListBox"][1]["namespace"] = "ImGui" +defs["igListBox"][1]["ov_cimguiname"] = "igListBox_Str_arr" +defs["igListBox"][1]["ret"] = "bool" +defs["igListBox"][1]["signature"] = "(const char*,int*,const char* const[],int,int)" +defs["igListBox"][1]["stname"] = "" +defs["igListBox"][2] = {} +defs["igListBox"][2]["args"] = "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items)" +defs["igListBox"][2]["argsT"] = {} +defs["igListBox"][2]["argsT"][1] = {} +defs["igListBox"][2]["argsT"][1]["name"] = "label" +defs["igListBox"][2]["argsT"][1]["type"] = "const char*" +defs["igListBox"][2]["argsT"][2] = {} +defs["igListBox"][2]["argsT"][2]["name"] = "current_item" +defs["igListBox"][2]["argsT"][2]["type"] = "int*" +defs["igListBox"][2]["argsT"][3] = {} +defs["igListBox"][2]["argsT"][3]["name"] = "items_getter" +defs["igListBox"][2]["argsT"][3]["ret"] = "bool" +defs["igListBox"][2]["argsT"][3]["signature"] = "(void* data,int idx,const char** out_text)" +defs["igListBox"][2]["argsT"][3]["type"] = "bool(*)(void* data,int idx,const char** out_text)" +defs["igListBox"][2]["argsT"][4] = {} +defs["igListBox"][2]["argsT"][4]["name"] = "data" +defs["igListBox"][2]["argsT"][4]["type"] = "void*" +defs["igListBox"][2]["argsT"][5] = {} +defs["igListBox"][2]["argsT"][5]["name"] = "items_count" +defs["igListBox"][2]["argsT"][5]["type"] = "int" +defs["igListBox"][2]["argsT"][6] = {} +defs["igListBox"][2]["argsT"][6]["name"] = "height_in_items" +defs["igListBox"][2]["argsT"][6]["type"] = "int" +defs["igListBox"][2]["argsoriginal"] = "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items=-1)" +defs["igListBox"][2]["call_args"] = "(label,current_item,items_getter,data,items_count,height_in_items)" +defs["igListBox"][2]["cimguiname"] = "igListBox" +defs["igListBox"][2]["defaults"] = {} +defs["igListBox"][2]["defaults"]["height_in_items"] = "-1" +defs["igListBox"][2]["funcname"] = "ListBox" +defs["igListBox"][2]["location"] = "imgui:635" +defs["igListBox"][2]["namespace"] = "ImGui" +defs["igListBox"][2]["ov_cimguiname"] = "igListBox_FnBoolPtr" +defs["igListBox"][2]["ret"] = "bool" +defs["igListBox"][2]["signature"] = "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)" +defs["igListBox"][2]["stname"] = "" +defs["igListBox"]["(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)"] = defs["igListBox"][2] +defs["igListBox"]["(const char*,int*,const char* const[],int,int)"] = defs["igListBox"][1] +defs["igLoadIniSettingsFromDisk"] = {} +defs["igLoadIniSettingsFromDisk"][1] = {} +defs["igLoadIniSettingsFromDisk"][1]["args"] = "(const char* ini_filename)" +defs["igLoadIniSettingsFromDisk"][1]["argsT"] = {} +defs["igLoadIniSettingsFromDisk"][1]["argsT"][1] = {} +defs["igLoadIniSettingsFromDisk"][1]["argsT"][1]["name"] = "ini_filename" +defs["igLoadIniSettingsFromDisk"][1]["argsT"][1]["type"] = "const char*" +defs["igLoadIniSettingsFromDisk"][1]["argsoriginal"] = "(const char* ini_filename)" +defs["igLoadIniSettingsFromDisk"][1]["call_args"] = "(ini_filename)" +defs["igLoadIniSettingsFromDisk"][1]["cimguiname"] = "igLoadIniSettingsFromDisk" +defs["igLoadIniSettingsFromDisk"][1]["defaults"] = {} +defs["igLoadIniSettingsFromDisk"][1]["funcname"] = "LoadIniSettingsFromDisk" +defs["igLoadIniSettingsFromDisk"][1]["location"] = "imgui:927" +defs["igLoadIniSettingsFromDisk"][1]["namespace"] = "ImGui" +defs["igLoadIniSettingsFromDisk"][1]["ov_cimguiname"] = "igLoadIniSettingsFromDisk" +defs["igLoadIniSettingsFromDisk"][1]["ret"] = "void" +defs["igLoadIniSettingsFromDisk"][1]["signature"] = "(const char*)" +defs["igLoadIniSettingsFromDisk"][1]["stname"] = "" +defs["igLoadIniSettingsFromDisk"]["(const char*)"] = defs["igLoadIniSettingsFromDisk"][1] +defs["igLoadIniSettingsFromMemory"] = {} +defs["igLoadIniSettingsFromMemory"][1] = {} +defs["igLoadIniSettingsFromMemory"][1]["args"] = "(const char* ini_data,size_t ini_size)" +defs["igLoadIniSettingsFromMemory"][1]["argsT"] = {} +defs["igLoadIniSettingsFromMemory"][1]["argsT"][1] = {} +defs["igLoadIniSettingsFromMemory"][1]["argsT"][1]["name"] = "ini_data" +defs["igLoadIniSettingsFromMemory"][1]["argsT"][1]["type"] = "const char*" +defs["igLoadIniSettingsFromMemory"][1]["argsT"][2] = {} +defs["igLoadIniSettingsFromMemory"][1]["argsT"][2]["name"] = "ini_size" +defs["igLoadIniSettingsFromMemory"][1]["argsT"][2]["type"] = "size_t" +defs["igLoadIniSettingsFromMemory"][1]["argsoriginal"] = "(const char* ini_data,size_t ini_size=0)" +defs["igLoadIniSettingsFromMemory"][1]["call_args"] = "(ini_data,ini_size)" +defs["igLoadIniSettingsFromMemory"][1]["cimguiname"] = "igLoadIniSettingsFromMemory" +defs["igLoadIniSettingsFromMemory"][1]["defaults"] = {} +defs["igLoadIniSettingsFromMemory"][1]["defaults"]["ini_size"] = "0" +defs["igLoadIniSettingsFromMemory"][1]["funcname"] = "LoadIniSettingsFromMemory" +defs["igLoadIniSettingsFromMemory"][1]["location"] = "imgui:928" +defs["igLoadIniSettingsFromMemory"][1]["namespace"] = "ImGui" +defs["igLoadIniSettingsFromMemory"][1]["ov_cimguiname"] = "igLoadIniSettingsFromMemory" +defs["igLoadIniSettingsFromMemory"][1]["ret"] = "void" +defs["igLoadIniSettingsFromMemory"][1]["signature"] = "(const char*,size_t)" +defs["igLoadIniSettingsFromMemory"][1]["stname"] = "" +defs["igLoadIniSettingsFromMemory"]["(const char*,size_t)"] = defs["igLoadIniSettingsFromMemory"][1] +defs["igLogButtons"] = {} +defs["igLogButtons"][1] = {} +defs["igLogButtons"][1]["args"] = "()" +defs["igLogButtons"][1]["argsT"] = {} +defs["igLogButtons"][1]["argsoriginal"] = "()" +defs["igLogButtons"][1]["call_args"] = "()" +defs["igLogButtons"][1]["cimguiname"] = "igLogButtons" +defs["igLogButtons"][1]["defaults"] = {} +defs["igLogButtons"][1]["funcname"] = "LogButtons" +defs["igLogButtons"][1]["location"] = "imgui:798" +defs["igLogButtons"][1]["namespace"] = "ImGui" +defs["igLogButtons"][1]["ov_cimguiname"] = "igLogButtons" +defs["igLogButtons"][1]["ret"] = "void" +defs["igLogButtons"][1]["signature"] = "()" +defs["igLogButtons"][1]["stname"] = "" +defs["igLogButtons"]["()"] = defs["igLogButtons"][1] +defs["igLogFinish"] = {} +defs["igLogFinish"][1] = {} +defs["igLogFinish"][1]["args"] = "()" +defs["igLogFinish"][1]["argsT"] = {} +defs["igLogFinish"][1]["argsoriginal"] = "()" +defs["igLogFinish"][1]["call_args"] = "()" +defs["igLogFinish"][1]["cimguiname"] = "igLogFinish" +defs["igLogFinish"][1]["defaults"] = {} +defs["igLogFinish"][1]["funcname"] = "LogFinish" +defs["igLogFinish"][1]["location"] = "imgui:797" +defs["igLogFinish"][1]["namespace"] = "ImGui" +defs["igLogFinish"][1]["ov_cimguiname"] = "igLogFinish" +defs["igLogFinish"][1]["ret"] = "void" +defs["igLogFinish"][1]["signature"] = "()" +defs["igLogFinish"][1]["stname"] = "" +defs["igLogFinish"]["()"] = defs["igLogFinish"][1] +defs["igLogText"] = {} +defs["igLogText"][1] = {} +defs["igLogText"][1]["args"] = "(const char* fmt,...)" +defs["igLogText"][1]["argsT"] = {} +defs["igLogText"][1]["argsT"][1] = {} +defs["igLogText"][1]["argsT"][1]["name"] = "fmt" +defs["igLogText"][1]["argsT"][1]["type"] = "const char*" +defs["igLogText"][1]["argsT"][2] = {} +defs["igLogText"][1]["argsT"][2]["name"] = "..." +defs["igLogText"][1]["argsT"][2]["type"] = "..." +defs["igLogText"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igLogText"][1]["call_args"] = "(fmt,...)" +defs["igLogText"][1]["cimguiname"] = "igLogText" +defs["igLogText"][1]["defaults"] = {} +defs["igLogText"][1]["funcname"] = "LogText" +defs["igLogText"][1]["isvararg"] = "...)" +defs["igLogText"][1]["location"] = "imgui:799" +defs["igLogText"][1]["manual"] = true +defs["igLogText"][1]["namespace"] = "ImGui" +defs["igLogText"][1]["ov_cimguiname"] = "igLogText" +defs["igLogText"][1]["ret"] = "void" +defs["igLogText"][1]["signature"] = "(const char*,...)" +defs["igLogText"][1]["stname"] = "" +defs["igLogText"]["(const char*,...)"] = defs["igLogText"][1] +defs["igLogTextV"] = {} +defs["igLogTextV"][1] = {} +defs["igLogTextV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igLogTextV"][1]["argsT"] = {} +defs["igLogTextV"][1]["argsT"][1] = {} +defs["igLogTextV"][1]["argsT"][1]["name"] = "fmt" +defs["igLogTextV"][1]["argsT"][1]["type"] = "const char*" +defs["igLogTextV"][1]["argsT"][2] = {} +defs["igLogTextV"][1]["argsT"][2]["name"] = "args" +defs["igLogTextV"][1]["argsT"][2]["type"] = "va_list" +defs["igLogTextV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igLogTextV"][1]["call_args"] = "(fmt,args)" +defs["igLogTextV"][1]["cimguiname"] = "igLogTextV" +defs["igLogTextV"][1]["defaults"] = {} +defs["igLogTextV"][1]["funcname"] = "LogTextV" +defs["igLogTextV"][1]["location"] = "imgui:800" +defs["igLogTextV"][1]["namespace"] = "ImGui" +defs["igLogTextV"][1]["ov_cimguiname"] = "igLogTextV" +defs["igLogTextV"][1]["ret"] = "void" +defs["igLogTextV"][1]["signature"] = "(const char*,va_list)" +defs["igLogTextV"][1]["stname"] = "" +defs["igLogTextV"]["(const char*,va_list)"] = defs["igLogTextV"][1] +defs["igLogToClipboard"] = {} +defs["igLogToClipboard"][1] = {} +defs["igLogToClipboard"][1]["args"] = "(int auto_open_depth)" +defs["igLogToClipboard"][1]["argsT"] = {} +defs["igLogToClipboard"][1]["argsT"][1] = {} +defs["igLogToClipboard"][1]["argsT"][1]["name"] = "auto_open_depth" +defs["igLogToClipboard"][1]["argsT"][1]["type"] = "int" +defs["igLogToClipboard"][1]["argsoriginal"] = "(int auto_open_depth=-1)" +defs["igLogToClipboard"][1]["call_args"] = "(auto_open_depth)" +defs["igLogToClipboard"][1]["cimguiname"] = "igLogToClipboard" +defs["igLogToClipboard"][1]["defaults"] = {} +defs["igLogToClipboard"][1]["defaults"]["auto_open_depth"] = "-1" +defs["igLogToClipboard"][1]["funcname"] = "LogToClipboard" +defs["igLogToClipboard"][1]["location"] = "imgui:796" +defs["igLogToClipboard"][1]["namespace"] = "ImGui" +defs["igLogToClipboard"][1]["ov_cimguiname"] = "igLogToClipboard" +defs["igLogToClipboard"][1]["ret"] = "void" +defs["igLogToClipboard"][1]["signature"] = "(int)" +defs["igLogToClipboard"][1]["stname"] = "" +defs["igLogToClipboard"]["(int)"] = defs["igLogToClipboard"][1] +defs["igLogToFile"] = {} +defs["igLogToFile"][1] = {} +defs["igLogToFile"][1]["args"] = "(int auto_open_depth,const char* filename)" +defs["igLogToFile"][1]["argsT"] = {} +defs["igLogToFile"][1]["argsT"][1] = {} +defs["igLogToFile"][1]["argsT"][1]["name"] = "auto_open_depth" +defs["igLogToFile"][1]["argsT"][1]["type"] = "int" +defs["igLogToFile"][1]["argsT"][2] = {} +defs["igLogToFile"][1]["argsT"][2]["name"] = "filename" +defs["igLogToFile"][1]["argsT"][2]["type"] = "const char*" +defs["igLogToFile"][1]["argsoriginal"] = "(int auto_open_depth=-1,const char* filename=((void*)0))" +defs["igLogToFile"][1]["call_args"] = "(auto_open_depth,filename)" +defs["igLogToFile"][1]["cimguiname"] = "igLogToFile" +defs["igLogToFile"][1]["defaults"] = {} +defs["igLogToFile"][1]["defaults"]["auto_open_depth"] = "-1" +defs["igLogToFile"][1]["defaults"]["filename"] = "NULL" +defs["igLogToFile"][1]["funcname"] = "LogToFile" +defs["igLogToFile"][1]["location"] = "imgui:795" +defs["igLogToFile"][1]["namespace"] = "ImGui" +defs["igLogToFile"][1]["ov_cimguiname"] = "igLogToFile" +defs["igLogToFile"][1]["ret"] = "void" +defs["igLogToFile"][1]["signature"] = "(int,const char*)" +defs["igLogToFile"][1]["stname"] = "" +defs["igLogToFile"]["(int,const char*)"] = defs["igLogToFile"][1] +defs["igLogToTTY"] = {} +defs["igLogToTTY"][1] = {} +defs["igLogToTTY"][1]["args"] = "(int auto_open_depth)" +defs["igLogToTTY"][1]["argsT"] = {} +defs["igLogToTTY"][1]["argsT"][1] = {} +defs["igLogToTTY"][1]["argsT"][1]["name"] = "auto_open_depth" +defs["igLogToTTY"][1]["argsT"][1]["type"] = "int" +defs["igLogToTTY"][1]["argsoriginal"] = "(int auto_open_depth=-1)" +defs["igLogToTTY"][1]["call_args"] = "(auto_open_depth)" +defs["igLogToTTY"][1]["cimguiname"] = "igLogToTTY" +defs["igLogToTTY"][1]["defaults"] = {} +defs["igLogToTTY"][1]["defaults"]["auto_open_depth"] = "-1" +defs["igLogToTTY"][1]["funcname"] = "LogToTTY" +defs["igLogToTTY"][1]["location"] = "imgui:794" +defs["igLogToTTY"][1]["namespace"] = "ImGui" +defs["igLogToTTY"][1]["ov_cimguiname"] = "igLogToTTY" +defs["igLogToTTY"][1]["ret"] = "void" +defs["igLogToTTY"][1]["signature"] = "(int)" +defs["igLogToTTY"][1]["stname"] = "" +defs["igLogToTTY"]["(int)"] = defs["igLogToTTY"][1] +defs["igMemAlloc"] = {} +defs["igMemAlloc"][1] = {} +defs["igMemAlloc"][1]["args"] = "(size_t size)" +defs["igMemAlloc"][1]["argsT"] = {} +defs["igMemAlloc"][1]["argsT"][1] = {} +defs["igMemAlloc"][1]["argsT"][1]["name"] = "size" +defs["igMemAlloc"][1]["argsT"][1]["type"] = "size_t" +defs["igMemAlloc"][1]["argsoriginal"] = "(size_t size)" +defs["igMemAlloc"][1]["call_args"] = "(size)" +defs["igMemAlloc"][1]["cimguiname"] = "igMemAlloc" +defs["igMemAlloc"][1]["defaults"] = {} +defs["igMemAlloc"][1]["funcname"] = "MemAlloc" +defs["igMemAlloc"][1]["location"] = "imgui:942" +defs["igMemAlloc"][1]["namespace"] = "ImGui" +defs["igMemAlloc"][1]["ov_cimguiname"] = "igMemAlloc" +defs["igMemAlloc"][1]["ret"] = "void*" +defs["igMemAlloc"][1]["signature"] = "(size_t)" +defs["igMemAlloc"][1]["stname"] = "" +defs["igMemAlloc"]["(size_t)"] = defs["igMemAlloc"][1] +defs["igMemFree"] = {} +defs["igMemFree"][1] = {} +defs["igMemFree"][1]["args"] = "(void* ptr)" +defs["igMemFree"][1]["argsT"] = {} +defs["igMemFree"][1]["argsT"][1] = {} +defs["igMemFree"][1]["argsT"][1]["name"] = "ptr" +defs["igMemFree"][1]["argsT"][1]["type"] = "void*" +defs["igMemFree"][1]["argsoriginal"] = "(void* ptr)" +defs["igMemFree"][1]["call_args"] = "(ptr)" +defs["igMemFree"][1]["cimguiname"] = "igMemFree" +defs["igMemFree"][1]["defaults"] = {} +defs["igMemFree"][1]["funcname"] = "MemFree" +defs["igMemFree"][1]["location"] = "imgui:943" +defs["igMemFree"][1]["namespace"] = "ImGui" +defs["igMemFree"][1]["ov_cimguiname"] = "igMemFree" +defs["igMemFree"][1]["ret"] = "void" +defs["igMemFree"][1]["signature"] = "(void*)" +defs["igMemFree"][1]["stname"] = "" +defs["igMemFree"]["(void*)"] = defs["igMemFree"][1] +defs["igMenuItem"] = {} +defs["igMenuItem"][1] = {} +defs["igMenuItem"][1]["args"] = "(const char* label,const char* shortcut,bool selected,bool enabled)" +defs["igMenuItem"][1]["argsT"] = {} +defs["igMenuItem"][1]["argsT"][1] = {} +defs["igMenuItem"][1]["argsT"][1]["name"] = "label" +defs["igMenuItem"][1]["argsT"][1]["type"] = "const char*" +defs["igMenuItem"][1]["argsT"][2] = {} +defs["igMenuItem"][1]["argsT"][2]["name"] = "shortcut" +defs["igMenuItem"][1]["argsT"][2]["type"] = "const char*" +defs["igMenuItem"][1]["argsT"][3] = {} +defs["igMenuItem"][1]["argsT"][3]["name"] = "selected" +defs["igMenuItem"][1]["argsT"][3]["type"] = "bool" +defs["igMenuItem"][1]["argsT"][4] = {} +defs["igMenuItem"][1]["argsT"][4]["name"] = "enabled" +defs["igMenuItem"][1]["argsT"][4]["type"] = "bool" +defs["igMenuItem"][1]["argsoriginal"] = "(const char* label,const char* shortcut=((void*)0),bool selected=false,bool enabled=true)" +defs["igMenuItem"][1]["call_args"] = "(label,shortcut,selected,enabled)" +defs["igMenuItem"][1]["cimguiname"] = "igMenuItem" +defs["igMenuItem"][1]["defaults"] = {} +defs["igMenuItem"][1]["defaults"]["enabled"] = "true" +defs["igMenuItem"][1]["defaults"]["selected"] = "false" +defs["igMenuItem"][1]["defaults"]["shortcut"] = "NULL" +defs["igMenuItem"][1]["funcname"] = "MenuItem" +defs["igMenuItem"][1]["location"] = "imgui:662" +defs["igMenuItem"][1]["namespace"] = "ImGui" +defs["igMenuItem"][1]["ov_cimguiname"] = "igMenuItem_Bool" +defs["igMenuItem"][1]["ret"] = "bool" +defs["igMenuItem"][1]["signature"] = "(const char*,const char*,bool,bool)" +defs["igMenuItem"][1]["stname"] = "" +defs["igMenuItem"][2] = {} +defs["igMenuItem"][2]["args"] = "(const char* label,const char* shortcut,bool* p_selected,bool enabled)" +defs["igMenuItem"][2]["argsT"] = {} +defs["igMenuItem"][2]["argsT"][1] = {} +defs["igMenuItem"][2]["argsT"][1]["name"] = "label" +defs["igMenuItem"][2]["argsT"][1]["type"] = "const char*" +defs["igMenuItem"][2]["argsT"][2] = {} +defs["igMenuItem"][2]["argsT"][2]["name"] = "shortcut" +defs["igMenuItem"][2]["argsT"][2]["type"] = "const char*" +defs["igMenuItem"][2]["argsT"][3] = {} +defs["igMenuItem"][2]["argsT"][3]["name"] = "p_selected" +defs["igMenuItem"][2]["argsT"][3]["type"] = "bool*" +defs["igMenuItem"][2]["argsT"][4] = {} +defs["igMenuItem"][2]["argsT"][4]["name"] = "enabled" +defs["igMenuItem"][2]["argsT"][4]["type"] = "bool" +defs["igMenuItem"][2]["argsoriginal"] = "(const char* label,const char* shortcut,bool* p_selected,bool enabled=true)" +defs["igMenuItem"][2]["call_args"] = "(label,shortcut,p_selected,enabled)" +defs["igMenuItem"][2]["cimguiname"] = "igMenuItem" +defs["igMenuItem"][2]["defaults"] = {} +defs["igMenuItem"][2]["defaults"]["enabled"] = "true" +defs["igMenuItem"][2]["funcname"] = "MenuItem" +defs["igMenuItem"][2]["location"] = "imgui:663" +defs["igMenuItem"][2]["namespace"] = "ImGui" +defs["igMenuItem"][2]["ov_cimguiname"] = "igMenuItem_BoolPtr" +defs["igMenuItem"][2]["ret"] = "bool" +defs["igMenuItem"][2]["signature"] = "(const char*,const char*,bool*,bool)" +defs["igMenuItem"][2]["stname"] = "" +defs["igMenuItem"]["(const char*,const char*,bool*,bool)"] = defs["igMenuItem"][2] +defs["igMenuItem"]["(const char*,const char*,bool,bool)"] = defs["igMenuItem"][1] +defs["igNewFrame"] = {} +defs["igNewFrame"][1] = {} +defs["igNewFrame"][1]["args"] = "()" +defs["igNewFrame"][1]["argsT"] = {} +defs["igNewFrame"][1]["argsoriginal"] = "()" +defs["igNewFrame"][1]["call_args"] = "()" +defs["igNewFrame"][1]["cimguiname"] = "igNewFrame" +defs["igNewFrame"][1]["defaults"] = {} +defs["igNewFrame"][1]["funcname"] = "NewFrame" +defs["igNewFrame"][1]["location"] = "imgui:296" +defs["igNewFrame"][1]["namespace"] = "ImGui" +defs["igNewFrame"][1]["ov_cimguiname"] = "igNewFrame" +defs["igNewFrame"][1]["ret"] = "void" +defs["igNewFrame"][1]["signature"] = "()" +defs["igNewFrame"][1]["stname"] = "" +defs["igNewFrame"]["()"] = defs["igNewFrame"][1] +defs["igNewLine"] = {} +defs["igNewLine"][1] = {} +defs["igNewLine"][1]["args"] = "()" +defs["igNewLine"][1]["argsT"] = {} +defs["igNewLine"][1]["argsoriginal"] = "()" +defs["igNewLine"][1]["call_args"] = "()" +defs["igNewLine"][1]["cimguiname"] = "igNewLine" +defs["igNewLine"][1]["defaults"] = {} +defs["igNewLine"][1]["funcname"] = "NewLine" +defs["igNewLine"][1]["location"] = "imgui:440" +defs["igNewLine"][1]["namespace"] = "ImGui" +defs["igNewLine"][1]["ov_cimguiname"] = "igNewLine" +defs["igNewLine"][1]["ret"] = "void" +defs["igNewLine"][1]["signature"] = "()" +defs["igNewLine"][1]["stname"] = "" +defs["igNewLine"]["()"] = defs["igNewLine"][1] +defs["igNextColumn"] = {} +defs["igNextColumn"][1] = {} +defs["igNextColumn"][1]["args"] = "()" +defs["igNextColumn"][1]["argsT"] = {} +defs["igNextColumn"][1]["argsoriginal"] = "()" +defs["igNextColumn"][1]["call_args"] = "()" +defs["igNextColumn"][1]["cimguiname"] = "igNextColumn" +defs["igNextColumn"][1]["defaults"] = {} +defs["igNextColumn"][1]["funcname"] = "NextColumn" +defs["igNextColumn"][1]["location"] = "imgui:776" +defs["igNextColumn"][1]["namespace"] = "ImGui" +defs["igNextColumn"][1]["ov_cimguiname"] = "igNextColumn" +defs["igNextColumn"][1]["ret"] = "void" +defs["igNextColumn"][1]["signature"] = "()" +defs["igNextColumn"][1]["stname"] = "" +defs["igNextColumn"]["()"] = defs["igNextColumn"][1] +defs["igOpenPopup"] = {} +defs["igOpenPopup"][1] = {} +defs["igOpenPopup"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igOpenPopup"][1]["argsT"] = {} +defs["igOpenPopup"][1]["argsT"][1] = {} +defs["igOpenPopup"][1]["argsT"][1]["name"] = "str_id" +defs["igOpenPopup"][1]["argsT"][1]["type"] = "const char*" +defs["igOpenPopup"][1]["argsT"][2] = {} +defs["igOpenPopup"][1]["argsT"][2]["name"] = "popup_flags" +defs["igOpenPopup"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igOpenPopup"][1]["argsoriginal"] = "(const char* str_id,ImGuiPopupFlags popup_flags=0)" +defs["igOpenPopup"][1]["call_args"] = "(str_id,popup_flags)" +defs["igOpenPopup"][1]["cimguiname"] = "igOpenPopup" +defs["igOpenPopup"][1]["defaults"] = {} +defs["igOpenPopup"][1]["defaults"]["popup_flags"] = "0" +defs["igOpenPopup"][1]["funcname"] = "OpenPopup" +defs["igOpenPopup"][1]["location"] = "imgui:696" +defs["igOpenPopup"][1]["namespace"] = "ImGui" +defs["igOpenPopup"][1]["ov_cimguiname"] = "igOpenPopup_Str" +defs["igOpenPopup"][1]["ret"] = "void" +defs["igOpenPopup"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igOpenPopup"][1]["stname"] = "" +defs["igOpenPopup"][2] = {} +defs["igOpenPopup"][2]["args"] = "(ImGuiID id,ImGuiPopupFlags popup_flags)" +defs["igOpenPopup"][2]["argsT"] = {} +defs["igOpenPopup"][2]["argsT"][1] = {} +defs["igOpenPopup"][2]["argsT"][1]["name"] = "id" +defs["igOpenPopup"][2]["argsT"][1]["type"] = "ImGuiID" +defs["igOpenPopup"][2]["argsT"][2] = {} +defs["igOpenPopup"][2]["argsT"][2]["name"] = "popup_flags" +defs["igOpenPopup"][2]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igOpenPopup"][2]["argsoriginal"] = "(ImGuiID id,ImGuiPopupFlags popup_flags=0)" +defs["igOpenPopup"][2]["call_args"] = "(id,popup_flags)" +defs["igOpenPopup"][2]["cimguiname"] = "igOpenPopup" +defs["igOpenPopup"][2]["defaults"] = {} +defs["igOpenPopup"][2]["defaults"]["popup_flags"] = "0" +defs["igOpenPopup"][2]["funcname"] = "OpenPopup" +defs["igOpenPopup"][2]["location"] = "imgui:697" +defs["igOpenPopup"][2]["namespace"] = "ImGui" +defs["igOpenPopup"][2]["ov_cimguiname"] = "igOpenPopup_ID" +defs["igOpenPopup"][2]["ret"] = "void" +defs["igOpenPopup"][2]["signature"] = "(ImGuiID,ImGuiPopupFlags)" +defs["igOpenPopup"][2]["stname"] = "" +defs["igOpenPopup"]["(ImGuiID,ImGuiPopupFlags)"] = defs["igOpenPopup"][2] +defs["igOpenPopup"]["(const char*,ImGuiPopupFlags)"] = defs["igOpenPopup"][1] +defs["igOpenPopupOnItemClick"] = {} +defs["igOpenPopupOnItemClick"][1] = {} +defs["igOpenPopupOnItemClick"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" +defs["igOpenPopupOnItemClick"][1]["argsT"] = {} +defs["igOpenPopupOnItemClick"][1]["argsT"][1] = {} +defs["igOpenPopupOnItemClick"][1]["argsT"][1]["name"] = "str_id" +defs["igOpenPopupOnItemClick"][1]["argsT"][1]["type"] = "const char*" +defs["igOpenPopupOnItemClick"][1]["argsT"][2] = {} +defs["igOpenPopupOnItemClick"][1]["argsT"][2]["name"] = "popup_flags" +defs["igOpenPopupOnItemClick"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igOpenPopupOnItemClick"][1]["argsoriginal"] = "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)" +defs["igOpenPopupOnItemClick"][1]["call_args"] = "(str_id,popup_flags)" +defs["igOpenPopupOnItemClick"][1]["cimguiname"] = "igOpenPopupOnItemClick" +defs["igOpenPopupOnItemClick"][1]["defaults"] = {} +defs["igOpenPopupOnItemClick"][1]["defaults"]["popup_flags"] = "1" +defs["igOpenPopupOnItemClick"][1]["defaults"]["str_id"] = "NULL" +defs["igOpenPopupOnItemClick"][1]["funcname"] = "OpenPopupOnItemClick" +defs["igOpenPopupOnItemClick"][1]["location"] = "imgui:698" +defs["igOpenPopupOnItemClick"][1]["namespace"] = "ImGui" +defs["igOpenPopupOnItemClick"][1]["ov_cimguiname"] = "igOpenPopupOnItemClick" +defs["igOpenPopupOnItemClick"][1]["ret"] = "void" +defs["igOpenPopupOnItemClick"][1]["signature"] = "(const char*,ImGuiPopupFlags)" +defs["igOpenPopupOnItemClick"][1]["stname"] = "" +defs["igOpenPopupOnItemClick"]["(const char*,ImGuiPopupFlags)"] = defs["igOpenPopupOnItemClick"][1] +defs["igPlotHistogram"] = {} +defs["igPlotHistogram"][1] = {} +defs["igPlotHistogram"][1]["args"] = "(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)" +defs["igPlotHistogram"][1]["argsT"] = {} +defs["igPlotHistogram"][1]["argsT"][1] = {} +defs["igPlotHistogram"][1]["argsT"][1]["name"] = "label" +defs["igPlotHistogram"][1]["argsT"][1]["type"] = "const char*" +defs["igPlotHistogram"][1]["argsT"][2] = {} +defs["igPlotHistogram"][1]["argsT"][2]["name"] = "values" +defs["igPlotHistogram"][1]["argsT"][2]["type"] = "const float*" +defs["igPlotHistogram"][1]["argsT"][3] = {} +defs["igPlotHistogram"][1]["argsT"][3]["name"] = "values_count" +defs["igPlotHistogram"][1]["argsT"][3]["type"] = "int" +defs["igPlotHistogram"][1]["argsT"][4] = {} +defs["igPlotHistogram"][1]["argsT"][4]["name"] = "values_offset" +defs["igPlotHistogram"][1]["argsT"][4]["type"] = "int" +defs["igPlotHistogram"][1]["argsT"][5] = {} +defs["igPlotHistogram"][1]["argsT"][5]["name"] = "overlay_text" +defs["igPlotHistogram"][1]["argsT"][5]["type"] = "const char*" +defs["igPlotHistogram"][1]["argsT"][6] = {} +defs["igPlotHistogram"][1]["argsT"][6]["name"] = "scale_min" +defs["igPlotHistogram"][1]["argsT"][6]["type"] = "float" +defs["igPlotHistogram"][1]["argsT"][7] = {} +defs["igPlotHistogram"][1]["argsT"][7]["name"] = "scale_max" +defs["igPlotHistogram"][1]["argsT"][7]["type"] = "float" +defs["igPlotHistogram"][1]["argsT"][8] = {} +defs["igPlotHistogram"][1]["argsT"][8]["name"] = "graph_size" +defs["igPlotHistogram"][1]["argsT"][8]["type"] = "ImVec2" +defs["igPlotHistogram"][1]["argsT"][9] = {} +defs["igPlotHistogram"][1]["argsT"][9]["name"] = "stride" +defs["igPlotHistogram"][1]["argsT"][9]["type"] = "int" +defs["igPlotHistogram"][1]["argsoriginal"] = "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))" +defs["igPlotHistogram"][1]["call_args"] = "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)" +defs["igPlotHistogram"][1]["cimguiname"] = "igPlotHistogram" +defs["igPlotHistogram"][1]["defaults"] = {} +defs["igPlotHistogram"][1]["defaults"]["graph_size"] = "ImVec2(0,0)" +defs["igPlotHistogram"][1]["defaults"]["overlay_text"] = "NULL" +defs["igPlotHistogram"][1]["defaults"]["scale_max"] = "FLT_MAX" +defs["igPlotHistogram"][1]["defaults"]["scale_min"] = "FLT_MAX" +defs["igPlotHistogram"][1]["defaults"]["stride"] = "sizeof(float)" +defs["igPlotHistogram"][1]["defaults"]["values_offset"] = "0" +defs["igPlotHistogram"][1]["funcname"] = "PlotHistogram" +defs["igPlotHistogram"][1]["location"] = "imgui:641" +defs["igPlotHistogram"][1]["namespace"] = "ImGui" +defs["igPlotHistogram"][1]["ov_cimguiname"] = "igPlotHistogram_FloatPtr" +defs["igPlotHistogram"][1]["ret"] = "void" +defs["igPlotHistogram"][1]["signature"] = "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)" +defs["igPlotHistogram"][1]["stname"] = "" +defs["igPlotHistogram"][2] = {} +defs["igPlotHistogram"][2]["args"] = "(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)" +defs["igPlotHistogram"][2]["argsT"] = {} +defs["igPlotHistogram"][2]["argsT"][1] = {} +defs["igPlotHistogram"][2]["argsT"][1]["name"] = "label" +defs["igPlotHistogram"][2]["argsT"][1]["type"] = "const char*" +defs["igPlotHistogram"][2]["argsT"][2] = {} +defs["igPlotHistogram"][2]["argsT"][2]["name"] = "values_getter" +defs["igPlotHistogram"][2]["argsT"][2]["ret"] = "float" +defs["igPlotHistogram"][2]["argsT"][2]["signature"] = "(void* data,int idx)" +defs["igPlotHistogram"][2]["argsT"][2]["type"] = "float(*)(void* data,int idx)" +defs["igPlotHistogram"][2]["argsT"][3] = {} +defs["igPlotHistogram"][2]["argsT"][3]["name"] = "data" +defs["igPlotHistogram"][2]["argsT"][3]["type"] = "void*" +defs["igPlotHistogram"][2]["argsT"][4] = {} +defs["igPlotHistogram"][2]["argsT"][4]["name"] = "values_count" +defs["igPlotHistogram"][2]["argsT"][4]["type"] = "int" +defs["igPlotHistogram"][2]["argsT"][5] = {} +defs["igPlotHistogram"][2]["argsT"][5]["name"] = "values_offset" +defs["igPlotHistogram"][2]["argsT"][5]["type"] = "int" +defs["igPlotHistogram"][2]["argsT"][6] = {} +defs["igPlotHistogram"][2]["argsT"][6]["name"] = "overlay_text" +defs["igPlotHistogram"][2]["argsT"][6]["type"] = "const char*" +defs["igPlotHistogram"][2]["argsT"][7] = {} +defs["igPlotHistogram"][2]["argsT"][7]["name"] = "scale_min" +defs["igPlotHistogram"][2]["argsT"][7]["type"] = "float" +defs["igPlotHistogram"][2]["argsT"][8] = {} +defs["igPlotHistogram"][2]["argsT"][8]["name"] = "scale_max" +defs["igPlotHistogram"][2]["argsT"][8]["type"] = "float" +defs["igPlotHistogram"][2]["argsT"][9] = {} +defs["igPlotHistogram"][2]["argsT"][9]["name"] = "graph_size" +defs["igPlotHistogram"][2]["argsT"][9]["type"] = "ImVec2" +defs["igPlotHistogram"][2]["argsoriginal"] = "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))" +defs["igPlotHistogram"][2]["call_args"] = "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)" +defs["igPlotHistogram"][2]["cimguiname"] = "igPlotHistogram" +defs["igPlotHistogram"][2]["defaults"] = {} +defs["igPlotHistogram"][2]["defaults"]["graph_size"] = "ImVec2(0,0)" +defs["igPlotHistogram"][2]["defaults"]["overlay_text"] = "NULL" +defs["igPlotHistogram"][2]["defaults"]["scale_max"] = "FLT_MAX" +defs["igPlotHistogram"][2]["defaults"]["scale_min"] = "FLT_MAX" +defs["igPlotHistogram"][2]["defaults"]["values_offset"] = "0" +defs["igPlotHistogram"][2]["funcname"] = "PlotHistogram" +defs["igPlotHistogram"][2]["location"] = "imgui:642" +defs["igPlotHistogram"][2]["namespace"] = "ImGui" +defs["igPlotHistogram"][2]["ov_cimguiname"] = "igPlotHistogram_FnFloatPtr" +defs["igPlotHistogram"][2]["ret"] = "void" +defs["igPlotHistogram"][2]["signature"] = "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)" +defs["igPlotHistogram"][2]["stname"] = "" +defs["igPlotHistogram"]["(const char*,const float*,int,int,const char*,float,float,ImVec2,int)"] = defs["igPlotHistogram"][1] +defs["igPlotHistogram"]["(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)"] = defs["igPlotHistogram"][2] +defs["igPlotLines"] = {} +defs["igPlotLines"][1] = {} +defs["igPlotLines"][1]["args"] = "(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)" +defs["igPlotLines"][1]["argsT"] = {} +defs["igPlotLines"][1]["argsT"][1] = {} +defs["igPlotLines"][1]["argsT"][1]["name"] = "label" +defs["igPlotLines"][1]["argsT"][1]["type"] = "const char*" +defs["igPlotLines"][1]["argsT"][2] = {} +defs["igPlotLines"][1]["argsT"][2]["name"] = "values" +defs["igPlotLines"][1]["argsT"][2]["type"] = "const float*" +defs["igPlotLines"][1]["argsT"][3] = {} +defs["igPlotLines"][1]["argsT"][3]["name"] = "values_count" +defs["igPlotLines"][1]["argsT"][3]["type"] = "int" +defs["igPlotLines"][1]["argsT"][4] = {} +defs["igPlotLines"][1]["argsT"][4]["name"] = "values_offset" +defs["igPlotLines"][1]["argsT"][4]["type"] = "int" +defs["igPlotLines"][1]["argsT"][5] = {} +defs["igPlotLines"][1]["argsT"][5]["name"] = "overlay_text" +defs["igPlotLines"][1]["argsT"][5]["type"] = "const char*" +defs["igPlotLines"][1]["argsT"][6] = {} +defs["igPlotLines"][1]["argsT"][6]["name"] = "scale_min" +defs["igPlotLines"][1]["argsT"][6]["type"] = "float" +defs["igPlotLines"][1]["argsT"][7] = {} +defs["igPlotLines"][1]["argsT"][7]["name"] = "scale_max" +defs["igPlotLines"][1]["argsT"][7]["type"] = "float" +defs["igPlotLines"][1]["argsT"][8] = {} +defs["igPlotLines"][1]["argsT"][8]["name"] = "graph_size" +defs["igPlotLines"][1]["argsT"][8]["type"] = "ImVec2" +defs["igPlotLines"][1]["argsT"][9] = {} +defs["igPlotLines"][1]["argsT"][9]["name"] = "stride" +defs["igPlotLines"][1]["argsT"][9]["type"] = "int" +defs["igPlotLines"][1]["argsoriginal"] = "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))" +defs["igPlotLines"][1]["call_args"] = "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)" +defs["igPlotLines"][1]["cimguiname"] = "igPlotLines" +defs["igPlotLines"][1]["defaults"] = {} +defs["igPlotLines"][1]["defaults"]["graph_size"] = "ImVec2(0,0)" +defs["igPlotLines"][1]["defaults"]["overlay_text"] = "NULL" +defs["igPlotLines"][1]["defaults"]["scale_max"] = "FLT_MAX" +defs["igPlotLines"][1]["defaults"]["scale_min"] = "FLT_MAX" +defs["igPlotLines"][1]["defaults"]["stride"] = "sizeof(float)" +defs["igPlotLines"][1]["defaults"]["values_offset"] = "0" +defs["igPlotLines"][1]["funcname"] = "PlotLines" +defs["igPlotLines"][1]["location"] = "imgui:639" +defs["igPlotLines"][1]["namespace"] = "ImGui" +defs["igPlotLines"][1]["ov_cimguiname"] = "igPlotLines_FloatPtr" +defs["igPlotLines"][1]["ret"] = "void" +defs["igPlotLines"][1]["signature"] = "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)" +defs["igPlotLines"][1]["stname"] = "" +defs["igPlotLines"][2] = {} +defs["igPlotLines"][2]["args"] = "(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)" +defs["igPlotLines"][2]["argsT"] = {} +defs["igPlotLines"][2]["argsT"][1] = {} +defs["igPlotLines"][2]["argsT"][1]["name"] = "label" +defs["igPlotLines"][2]["argsT"][1]["type"] = "const char*" +defs["igPlotLines"][2]["argsT"][2] = {} +defs["igPlotLines"][2]["argsT"][2]["name"] = "values_getter" +defs["igPlotLines"][2]["argsT"][2]["ret"] = "float" +defs["igPlotLines"][2]["argsT"][2]["signature"] = "(void* data,int idx)" +defs["igPlotLines"][2]["argsT"][2]["type"] = "float(*)(void* data,int idx)" +defs["igPlotLines"][2]["argsT"][3] = {} +defs["igPlotLines"][2]["argsT"][3]["name"] = "data" +defs["igPlotLines"][2]["argsT"][3]["type"] = "void*" +defs["igPlotLines"][2]["argsT"][4] = {} +defs["igPlotLines"][2]["argsT"][4]["name"] = "values_count" +defs["igPlotLines"][2]["argsT"][4]["type"] = "int" +defs["igPlotLines"][2]["argsT"][5] = {} +defs["igPlotLines"][2]["argsT"][5]["name"] = "values_offset" +defs["igPlotLines"][2]["argsT"][5]["type"] = "int" +defs["igPlotLines"][2]["argsT"][6] = {} +defs["igPlotLines"][2]["argsT"][6]["name"] = "overlay_text" +defs["igPlotLines"][2]["argsT"][6]["type"] = "const char*" +defs["igPlotLines"][2]["argsT"][7] = {} +defs["igPlotLines"][2]["argsT"][7]["name"] = "scale_min" +defs["igPlotLines"][2]["argsT"][7]["type"] = "float" +defs["igPlotLines"][2]["argsT"][8] = {} +defs["igPlotLines"][2]["argsT"][8]["name"] = "scale_max" +defs["igPlotLines"][2]["argsT"][8]["type"] = "float" +defs["igPlotLines"][2]["argsT"][9] = {} +defs["igPlotLines"][2]["argsT"][9]["name"] = "graph_size" +defs["igPlotLines"][2]["argsT"][9]["type"] = "ImVec2" +defs["igPlotLines"][2]["argsoriginal"] = "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))" +defs["igPlotLines"][2]["call_args"] = "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)" +defs["igPlotLines"][2]["cimguiname"] = "igPlotLines" +defs["igPlotLines"][2]["defaults"] = {} +defs["igPlotLines"][2]["defaults"]["graph_size"] = "ImVec2(0,0)" +defs["igPlotLines"][2]["defaults"]["overlay_text"] = "NULL" +defs["igPlotLines"][2]["defaults"]["scale_max"] = "FLT_MAX" +defs["igPlotLines"][2]["defaults"]["scale_min"] = "FLT_MAX" +defs["igPlotLines"][2]["defaults"]["values_offset"] = "0" +defs["igPlotLines"][2]["funcname"] = "PlotLines" +defs["igPlotLines"][2]["location"] = "imgui:640" +defs["igPlotLines"][2]["namespace"] = "ImGui" +defs["igPlotLines"][2]["ov_cimguiname"] = "igPlotLines_FnFloatPtr" +defs["igPlotLines"][2]["ret"] = "void" +defs["igPlotLines"][2]["signature"] = "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)" +defs["igPlotLines"][2]["stname"] = "" +defs["igPlotLines"]["(const char*,const float*,int,int,const char*,float,float,ImVec2,int)"] = defs["igPlotLines"][1] +defs["igPlotLines"]["(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)"] = defs["igPlotLines"][2] +defs["igPopAllowKeyboardFocus"] = {} +defs["igPopAllowKeyboardFocus"][1] = {} +defs["igPopAllowKeyboardFocus"][1]["args"] = "()" +defs["igPopAllowKeyboardFocus"][1]["argsT"] = {} +defs["igPopAllowKeyboardFocus"][1]["argsoriginal"] = "()" +defs["igPopAllowKeyboardFocus"][1]["call_args"] = "()" +defs["igPopAllowKeyboardFocus"][1]["cimguiname"] = "igPopAllowKeyboardFocus" +defs["igPopAllowKeyboardFocus"][1]["defaults"] = {} +defs["igPopAllowKeyboardFocus"][1]["funcname"] = "PopAllowKeyboardFocus" +defs["igPopAllowKeyboardFocus"][1]["location"] = "imgui:409" +defs["igPopAllowKeyboardFocus"][1]["namespace"] = "ImGui" +defs["igPopAllowKeyboardFocus"][1]["ov_cimguiname"] = "igPopAllowKeyboardFocus" +defs["igPopAllowKeyboardFocus"][1]["ret"] = "void" +defs["igPopAllowKeyboardFocus"][1]["signature"] = "()" +defs["igPopAllowKeyboardFocus"][1]["stname"] = "" +defs["igPopAllowKeyboardFocus"]["()"] = defs["igPopAllowKeyboardFocus"][1] +defs["igPopButtonRepeat"] = {} +defs["igPopButtonRepeat"][1] = {} +defs["igPopButtonRepeat"][1]["args"] = "()" +defs["igPopButtonRepeat"][1]["argsT"] = {} +defs["igPopButtonRepeat"][1]["argsoriginal"] = "()" +defs["igPopButtonRepeat"][1]["call_args"] = "()" +defs["igPopButtonRepeat"][1]["cimguiname"] = "igPopButtonRepeat" +defs["igPopButtonRepeat"][1]["defaults"] = {} +defs["igPopButtonRepeat"][1]["funcname"] = "PopButtonRepeat" +defs["igPopButtonRepeat"][1]["location"] = "imgui:411" +defs["igPopButtonRepeat"][1]["namespace"] = "ImGui" +defs["igPopButtonRepeat"][1]["ov_cimguiname"] = "igPopButtonRepeat" +defs["igPopButtonRepeat"][1]["ret"] = "void" +defs["igPopButtonRepeat"][1]["signature"] = "()" +defs["igPopButtonRepeat"][1]["stname"] = "" +defs["igPopButtonRepeat"]["()"] = defs["igPopButtonRepeat"][1] +defs["igPopClipRect"] = {} +defs["igPopClipRect"][1] = {} +defs["igPopClipRect"][1]["args"] = "()" +defs["igPopClipRect"][1]["argsT"] = {} +defs["igPopClipRect"][1]["argsoriginal"] = "()" +defs["igPopClipRect"][1]["call_args"] = "()" +defs["igPopClipRect"][1]["cimguiname"] = "igPopClipRect" +defs["igPopClipRect"][1]["defaults"] = {} +defs["igPopClipRect"][1]["funcname"] = "PopClipRect" +defs["igPopClipRect"][1]["location"] = "imgui:825" +defs["igPopClipRect"][1]["namespace"] = "ImGui" +defs["igPopClipRect"][1]["ov_cimguiname"] = "igPopClipRect" +defs["igPopClipRect"][1]["ret"] = "void" +defs["igPopClipRect"][1]["signature"] = "()" +defs["igPopClipRect"][1]["stname"] = "" +defs["igPopClipRect"]["()"] = defs["igPopClipRect"][1] +defs["igPopFont"] = {} +defs["igPopFont"][1] = {} +defs["igPopFont"][1]["args"] = "()" +defs["igPopFont"][1]["argsT"] = {} +defs["igPopFont"][1]["argsoriginal"] = "()" +defs["igPopFont"][1]["call_args"] = "()" +defs["igPopFont"][1]["cimguiname"] = "igPopFont" +defs["igPopFont"][1]["defaults"] = {} +defs["igPopFont"][1]["funcname"] = "PopFont" +defs["igPopFont"][1]["location"] = "imgui:401" +defs["igPopFont"][1]["namespace"] = "ImGui" +defs["igPopFont"][1]["ov_cimguiname"] = "igPopFont" +defs["igPopFont"][1]["ret"] = "void" +defs["igPopFont"][1]["signature"] = "()" +defs["igPopFont"][1]["stname"] = "" +defs["igPopFont"]["()"] = defs["igPopFont"][1] +defs["igPopID"] = {} +defs["igPopID"][1] = {} +defs["igPopID"][1]["args"] = "()" +defs["igPopID"][1]["argsT"] = {} +defs["igPopID"][1]["argsoriginal"] = "()" +defs["igPopID"][1]["call_args"] = "()" +defs["igPopID"][1]["cimguiname"] = "igPopID" +defs["igPopID"][1]["defaults"] = {} +defs["igPopID"][1]["funcname"] = "PopID" +defs["igPopID"][1]["location"] = "imgui:477" +defs["igPopID"][1]["namespace"] = "ImGui" +defs["igPopID"][1]["ov_cimguiname"] = "igPopID" +defs["igPopID"][1]["ret"] = "void" +defs["igPopID"][1]["signature"] = "()" +defs["igPopID"][1]["stname"] = "" +defs["igPopID"]["()"] = defs["igPopID"][1] +defs["igPopItemWidth"] = {} +defs["igPopItemWidth"][1] = {} +defs["igPopItemWidth"][1]["args"] = "()" +defs["igPopItemWidth"][1]["argsT"] = {} +defs["igPopItemWidth"][1]["argsoriginal"] = "()" +defs["igPopItemWidth"][1]["call_args"] = "()" +defs["igPopItemWidth"][1]["cimguiname"] = "igPopItemWidth" +defs["igPopItemWidth"][1]["defaults"] = {} +defs["igPopItemWidth"][1]["funcname"] = "PopItemWidth" +defs["igPopItemWidth"][1]["location"] = "imgui:415" +defs["igPopItemWidth"][1]["namespace"] = "ImGui" +defs["igPopItemWidth"][1]["ov_cimguiname"] = "igPopItemWidth" +defs["igPopItemWidth"][1]["ret"] = "void" +defs["igPopItemWidth"][1]["signature"] = "()" +defs["igPopItemWidth"][1]["stname"] = "" +defs["igPopItemWidth"]["()"] = defs["igPopItemWidth"][1] +defs["igPopStyleColor"] = {} +defs["igPopStyleColor"][1] = {} +defs["igPopStyleColor"][1]["args"] = "(int count)" +defs["igPopStyleColor"][1]["argsT"] = {} +defs["igPopStyleColor"][1]["argsT"][1] = {} +defs["igPopStyleColor"][1]["argsT"][1]["name"] = "count" +defs["igPopStyleColor"][1]["argsT"][1]["type"] = "int" +defs["igPopStyleColor"][1]["argsoriginal"] = "(int count=1)" +defs["igPopStyleColor"][1]["call_args"] = "(count)" +defs["igPopStyleColor"][1]["cimguiname"] = "igPopStyleColor" +defs["igPopStyleColor"][1]["defaults"] = {} +defs["igPopStyleColor"][1]["defaults"]["count"] = "1" +defs["igPopStyleColor"][1]["funcname"] = "PopStyleColor" +defs["igPopStyleColor"][1]["location"] = "imgui:404" +defs["igPopStyleColor"][1]["namespace"] = "ImGui" +defs["igPopStyleColor"][1]["ov_cimguiname"] = "igPopStyleColor" +defs["igPopStyleColor"][1]["ret"] = "void" +defs["igPopStyleColor"][1]["signature"] = "(int)" +defs["igPopStyleColor"][1]["stname"] = "" +defs["igPopStyleColor"]["(int)"] = defs["igPopStyleColor"][1] +defs["igPopStyleVar"] = {} +defs["igPopStyleVar"][1] = {} +defs["igPopStyleVar"][1]["args"] = "(int count)" +defs["igPopStyleVar"][1]["argsT"] = {} +defs["igPopStyleVar"][1]["argsT"][1] = {} +defs["igPopStyleVar"][1]["argsT"][1]["name"] = "count" +defs["igPopStyleVar"][1]["argsT"][1]["type"] = "int" +defs["igPopStyleVar"][1]["argsoriginal"] = "(int count=1)" +defs["igPopStyleVar"][1]["call_args"] = "(count)" +defs["igPopStyleVar"][1]["cimguiname"] = "igPopStyleVar" +defs["igPopStyleVar"][1]["defaults"] = {} +defs["igPopStyleVar"][1]["defaults"]["count"] = "1" +defs["igPopStyleVar"][1]["funcname"] = "PopStyleVar" +defs["igPopStyleVar"][1]["location"] = "imgui:407" +defs["igPopStyleVar"][1]["namespace"] = "ImGui" +defs["igPopStyleVar"][1]["ov_cimguiname"] = "igPopStyleVar" +defs["igPopStyleVar"][1]["ret"] = "void" +defs["igPopStyleVar"][1]["signature"] = "(int)" +defs["igPopStyleVar"][1]["stname"] = "" +defs["igPopStyleVar"]["(int)"] = defs["igPopStyleVar"][1] +defs["igPopTextWrapPos"] = {} +defs["igPopTextWrapPos"][1] = {} +defs["igPopTextWrapPos"][1]["args"] = "()" +defs["igPopTextWrapPos"][1]["argsT"] = {} +defs["igPopTextWrapPos"][1]["argsoriginal"] = "()" +defs["igPopTextWrapPos"][1]["call_args"] = "()" +defs["igPopTextWrapPos"][1]["cimguiname"] = "igPopTextWrapPos" +defs["igPopTextWrapPos"][1]["defaults"] = {} +defs["igPopTextWrapPos"][1]["funcname"] = "PopTextWrapPos" +defs["igPopTextWrapPos"][1]["location"] = "imgui:419" +defs["igPopTextWrapPos"][1]["namespace"] = "ImGui" +defs["igPopTextWrapPos"][1]["ov_cimguiname"] = "igPopTextWrapPos" +defs["igPopTextWrapPos"][1]["ret"] = "void" +defs["igPopTextWrapPos"][1]["signature"] = "()" +defs["igPopTextWrapPos"][1]["stname"] = "" +defs["igPopTextWrapPos"]["()"] = defs["igPopTextWrapPos"][1] +defs["igProgressBar"] = {} +defs["igProgressBar"][1] = {} +defs["igProgressBar"][1]["args"] = "(float fraction,const ImVec2 size_arg,const char* overlay)" +defs["igProgressBar"][1]["argsT"] = {} +defs["igProgressBar"][1]["argsT"][1] = {} +defs["igProgressBar"][1]["argsT"][1]["name"] = "fraction" +defs["igProgressBar"][1]["argsT"][1]["type"] = "float" +defs["igProgressBar"][1]["argsT"][2] = {} +defs["igProgressBar"][1]["argsT"][2]["name"] = "size_arg" +defs["igProgressBar"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igProgressBar"][1]["argsT"][3] = {} +defs["igProgressBar"][1]["argsT"][3]["name"] = "overlay" +defs["igProgressBar"][1]["argsT"][3]["type"] = "const char*" +defs["igProgressBar"][1]["argsoriginal"] = "(float fraction,const ImVec2& size_arg=ImVec2(-1.17549435082228750796873653722224568e-38F,0),const char* overlay=((void*)0))" +defs["igProgressBar"][1]["call_args"] = "(fraction,size_arg,overlay)" +defs["igProgressBar"][1]["cimguiname"] = "igProgressBar" +defs["igProgressBar"][1]["defaults"] = {} +defs["igProgressBar"][1]["defaults"]["overlay"] = "NULL" +defs["igProgressBar"][1]["defaults"]["size_arg"] = "ImVec2(-FLT_MIN,0)" +defs["igProgressBar"][1]["funcname"] = "ProgressBar" +defs["igProgressBar"][1]["location"] = "imgui:509" +defs["igProgressBar"][1]["namespace"] = "ImGui" +defs["igProgressBar"][1]["ov_cimguiname"] = "igProgressBar" +defs["igProgressBar"][1]["ret"] = "void" +defs["igProgressBar"][1]["signature"] = "(float,const ImVec2,const char*)" +defs["igProgressBar"][1]["stname"] = "" +defs["igProgressBar"]["(float,const ImVec2,const char*)"] = defs["igProgressBar"][1] +defs["igPushAllowKeyboardFocus"] = {} +defs["igPushAllowKeyboardFocus"][1] = {} +defs["igPushAllowKeyboardFocus"][1]["args"] = "(bool allow_keyboard_focus)" +defs["igPushAllowKeyboardFocus"][1]["argsT"] = {} +defs["igPushAllowKeyboardFocus"][1]["argsT"][1] = {} +defs["igPushAllowKeyboardFocus"][1]["argsT"][1]["name"] = "allow_keyboard_focus" +defs["igPushAllowKeyboardFocus"][1]["argsT"][1]["type"] = "bool" +defs["igPushAllowKeyboardFocus"][1]["argsoriginal"] = "(bool allow_keyboard_focus)" +defs["igPushAllowKeyboardFocus"][1]["call_args"] = "(allow_keyboard_focus)" +defs["igPushAllowKeyboardFocus"][1]["cimguiname"] = "igPushAllowKeyboardFocus" +defs["igPushAllowKeyboardFocus"][1]["defaults"] = {} +defs["igPushAllowKeyboardFocus"][1]["funcname"] = "PushAllowKeyboardFocus" +defs["igPushAllowKeyboardFocus"][1]["location"] = "imgui:408" +defs["igPushAllowKeyboardFocus"][1]["namespace"] = "ImGui" +defs["igPushAllowKeyboardFocus"][1]["ov_cimguiname"] = "igPushAllowKeyboardFocus" +defs["igPushAllowKeyboardFocus"][1]["ret"] = "void" +defs["igPushAllowKeyboardFocus"][1]["signature"] = "(bool)" +defs["igPushAllowKeyboardFocus"][1]["stname"] = "" +defs["igPushAllowKeyboardFocus"]["(bool)"] = defs["igPushAllowKeyboardFocus"][1] +defs["igPushButtonRepeat"] = {} +defs["igPushButtonRepeat"][1] = {} +defs["igPushButtonRepeat"][1]["args"] = "(bool repeat)" +defs["igPushButtonRepeat"][1]["argsT"] = {} +defs["igPushButtonRepeat"][1]["argsT"][1] = {} +defs["igPushButtonRepeat"][1]["argsT"][1]["name"] = "repeat" +defs["igPushButtonRepeat"][1]["argsT"][1]["type"] = "bool" +defs["igPushButtonRepeat"][1]["argsoriginal"] = "(bool repeat)" +defs["igPushButtonRepeat"][1]["call_args"] = "(repeat)" +defs["igPushButtonRepeat"][1]["cimguiname"] = "igPushButtonRepeat" +defs["igPushButtonRepeat"][1]["defaults"] = {} +defs["igPushButtonRepeat"][1]["funcname"] = "PushButtonRepeat" +defs["igPushButtonRepeat"][1]["location"] = "imgui:410" +defs["igPushButtonRepeat"][1]["namespace"] = "ImGui" +defs["igPushButtonRepeat"][1]["ov_cimguiname"] = "igPushButtonRepeat" +defs["igPushButtonRepeat"][1]["ret"] = "void" +defs["igPushButtonRepeat"][1]["signature"] = "(bool)" +defs["igPushButtonRepeat"][1]["stname"] = "" +defs["igPushButtonRepeat"]["(bool)"] = defs["igPushButtonRepeat"][1] +defs["igPushClipRect"] = {} +defs["igPushClipRect"][1] = {} +defs["igPushClipRect"][1]["args"] = "(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)" +defs["igPushClipRect"][1]["argsT"] = {} +defs["igPushClipRect"][1]["argsT"][1] = {} +defs["igPushClipRect"][1]["argsT"][1]["name"] = "clip_rect_min" +defs["igPushClipRect"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igPushClipRect"][1]["argsT"][2] = {} +defs["igPushClipRect"][1]["argsT"][2]["name"] = "clip_rect_max" +defs["igPushClipRect"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igPushClipRect"][1]["argsT"][3] = {} +defs["igPushClipRect"][1]["argsT"][3]["name"] = "intersect_with_current_clip_rect" +defs["igPushClipRect"][1]["argsT"][3]["type"] = "bool" +defs["igPushClipRect"][1]["argsoriginal"] = "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect)" +defs["igPushClipRect"][1]["call_args"] = "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)" +defs["igPushClipRect"][1]["cimguiname"] = "igPushClipRect" +defs["igPushClipRect"][1]["defaults"] = {} +defs["igPushClipRect"][1]["funcname"] = "PushClipRect" +defs["igPushClipRect"][1]["location"] = "imgui:824" +defs["igPushClipRect"][1]["namespace"] = "ImGui" +defs["igPushClipRect"][1]["ov_cimguiname"] = "igPushClipRect" +defs["igPushClipRect"][1]["ret"] = "void" +defs["igPushClipRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" +defs["igPushClipRect"][1]["stname"] = "" +defs["igPushClipRect"]["(const ImVec2,const ImVec2,bool)"] = defs["igPushClipRect"][1] +defs["igPushFont"] = {} +defs["igPushFont"][1] = {} +defs["igPushFont"][1]["args"] = "(ImFont* font)" +defs["igPushFont"][1]["argsT"] = {} +defs["igPushFont"][1]["argsT"][1] = {} +defs["igPushFont"][1]["argsT"][1]["name"] = "font" +defs["igPushFont"][1]["argsT"][1]["type"] = "ImFont*" +defs["igPushFont"][1]["argsoriginal"] = "(ImFont* font)" +defs["igPushFont"][1]["call_args"] = "(font)" +defs["igPushFont"][1]["cimguiname"] = "igPushFont" +defs["igPushFont"][1]["defaults"] = {} +defs["igPushFont"][1]["funcname"] = "PushFont" +defs["igPushFont"][1]["location"] = "imgui:400" +defs["igPushFont"][1]["namespace"] = "ImGui" +defs["igPushFont"][1]["ov_cimguiname"] = "igPushFont" +defs["igPushFont"][1]["ret"] = "void" +defs["igPushFont"][1]["signature"] = "(ImFont*)" +defs["igPushFont"][1]["stname"] = "" +defs["igPushFont"]["(ImFont*)"] = defs["igPushFont"][1] +defs["igPushID"] = {} +defs["igPushID"][1] = {} +defs["igPushID"][1]["args"] = "(const char* str_id)" +defs["igPushID"][1]["argsT"] = {} +defs["igPushID"][1]["argsT"][1] = {} +defs["igPushID"][1]["argsT"][1]["name"] = "str_id" +defs["igPushID"][1]["argsT"][1]["type"] = "const char*" +defs["igPushID"][1]["argsoriginal"] = "(const char* str_id)" +defs["igPushID"][1]["call_args"] = "(str_id)" +defs["igPushID"][1]["cimguiname"] = "igPushID" +defs["igPushID"][1]["defaults"] = {} +defs["igPushID"][1]["funcname"] = "PushID" +defs["igPushID"][1]["location"] = "imgui:473" +defs["igPushID"][1]["namespace"] = "ImGui" +defs["igPushID"][1]["ov_cimguiname"] = "igPushID_Str" +defs["igPushID"][1]["ret"] = "void" +defs["igPushID"][1]["signature"] = "(const char*)" +defs["igPushID"][1]["stname"] = "" +defs["igPushID"][2] = {} +defs["igPushID"][2]["args"] = "(const char* str_id_begin,const char* str_id_end)" +defs["igPushID"][2]["argsT"] = {} +defs["igPushID"][2]["argsT"][1] = {} +defs["igPushID"][2]["argsT"][1]["name"] = "str_id_begin" +defs["igPushID"][2]["argsT"][1]["type"] = "const char*" +defs["igPushID"][2]["argsT"][2] = {} +defs["igPushID"][2]["argsT"][2]["name"] = "str_id_end" +defs["igPushID"][2]["argsT"][2]["type"] = "const char*" +defs["igPushID"][2]["argsoriginal"] = "(const char* str_id_begin,const char* str_id_end)" +defs["igPushID"][2]["call_args"] = "(str_id_begin,str_id_end)" +defs["igPushID"][2]["cimguiname"] = "igPushID" +defs["igPushID"][2]["defaults"] = {} +defs["igPushID"][2]["funcname"] = "PushID" +defs["igPushID"][2]["location"] = "imgui:474" +defs["igPushID"][2]["namespace"] = "ImGui" +defs["igPushID"][2]["ov_cimguiname"] = "igPushID_StrStr" +defs["igPushID"][2]["ret"] = "void" +defs["igPushID"][2]["signature"] = "(const char*,const char*)" +defs["igPushID"][2]["stname"] = "" +defs["igPushID"][3] = {} +defs["igPushID"][3]["args"] = "(const void* ptr_id)" +defs["igPushID"][3]["argsT"] = {} +defs["igPushID"][3]["argsT"][1] = {} +defs["igPushID"][3]["argsT"][1]["name"] = "ptr_id" +defs["igPushID"][3]["argsT"][1]["type"] = "const void*" +defs["igPushID"][3]["argsoriginal"] = "(const void* ptr_id)" +defs["igPushID"][3]["call_args"] = "(ptr_id)" +defs["igPushID"][3]["cimguiname"] = "igPushID" +defs["igPushID"][3]["defaults"] = {} +defs["igPushID"][3]["funcname"] = "PushID" +defs["igPushID"][3]["location"] = "imgui:475" +defs["igPushID"][3]["namespace"] = "ImGui" +defs["igPushID"][3]["ov_cimguiname"] = "igPushID_Ptr" +defs["igPushID"][3]["ret"] = "void" +defs["igPushID"][3]["signature"] = "(const void*)" +defs["igPushID"][3]["stname"] = "" +defs["igPushID"][4] = {} +defs["igPushID"][4]["args"] = "(int int_id)" +defs["igPushID"][4]["argsT"] = {} +defs["igPushID"][4]["argsT"][1] = {} +defs["igPushID"][4]["argsT"][1]["name"] = "int_id" +defs["igPushID"][4]["argsT"][1]["type"] = "int" +defs["igPushID"][4]["argsoriginal"] = "(int int_id)" +defs["igPushID"][4]["call_args"] = "(int_id)" +defs["igPushID"][4]["cimguiname"] = "igPushID" +defs["igPushID"][4]["defaults"] = {} +defs["igPushID"][4]["funcname"] = "PushID" +defs["igPushID"][4]["location"] = "imgui:476" +defs["igPushID"][4]["namespace"] = "ImGui" +defs["igPushID"][4]["ov_cimguiname"] = "igPushID_Int" +defs["igPushID"][4]["ret"] = "void" +defs["igPushID"][4]["signature"] = "(int)" +defs["igPushID"][4]["stname"] = "" +defs["igPushID"]["(const char*)"] = defs["igPushID"][1] +defs["igPushID"]["(const char*,const char*)"] = defs["igPushID"][2] +defs["igPushID"]["(const void*)"] = defs["igPushID"][3] +defs["igPushID"]["(int)"] = defs["igPushID"][4] +defs["igPushItemWidth"] = {} +defs["igPushItemWidth"][1] = {} +defs["igPushItemWidth"][1]["args"] = "(float item_width)" +defs["igPushItemWidth"][1]["argsT"] = {} +defs["igPushItemWidth"][1]["argsT"][1] = {} +defs["igPushItemWidth"][1]["argsT"][1]["name"] = "item_width" +defs["igPushItemWidth"][1]["argsT"][1]["type"] = "float" +defs["igPushItemWidth"][1]["argsoriginal"] = "(float item_width)" +defs["igPushItemWidth"][1]["call_args"] = "(item_width)" +defs["igPushItemWidth"][1]["cimguiname"] = "igPushItemWidth" +defs["igPushItemWidth"][1]["defaults"] = {} +defs["igPushItemWidth"][1]["funcname"] = "PushItemWidth" +defs["igPushItemWidth"][1]["location"] = "imgui:414" +defs["igPushItemWidth"][1]["namespace"] = "ImGui" +defs["igPushItemWidth"][1]["ov_cimguiname"] = "igPushItemWidth" +defs["igPushItemWidth"][1]["ret"] = "void" +defs["igPushItemWidth"][1]["signature"] = "(float)" +defs["igPushItemWidth"][1]["stname"] = "" +defs["igPushItemWidth"]["(float)"] = defs["igPushItemWidth"][1] +defs["igPushStyleColor"] = {} +defs["igPushStyleColor"][1] = {} +defs["igPushStyleColor"][1]["args"] = "(ImGuiCol idx,ImU32 col)" +defs["igPushStyleColor"][1]["argsT"] = {} +defs["igPushStyleColor"][1]["argsT"][1] = {} +defs["igPushStyleColor"][1]["argsT"][1]["name"] = "idx" +defs["igPushStyleColor"][1]["argsT"][1]["type"] = "ImGuiCol" +defs["igPushStyleColor"][1]["argsT"][2] = {} +defs["igPushStyleColor"][1]["argsT"][2]["name"] = "col" +defs["igPushStyleColor"][1]["argsT"][2]["type"] = "ImU32" +defs["igPushStyleColor"][1]["argsoriginal"] = "(ImGuiCol idx,ImU32 col)" +defs["igPushStyleColor"][1]["call_args"] = "(idx,col)" +defs["igPushStyleColor"][1]["cimguiname"] = "igPushStyleColor" +defs["igPushStyleColor"][1]["defaults"] = {} +defs["igPushStyleColor"][1]["funcname"] = "PushStyleColor" +defs["igPushStyleColor"][1]["location"] = "imgui:402" +defs["igPushStyleColor"][1]["namespace"] = "ImGui" +defs["igPushStyleColor"][1]["ov_cimguiname"] = "igPushStyleColor_U32" +defs["igPushStyleColor"][1]["ret"] = "void" +defs["igPushStyleColor"][1]["signature"] = "(ImGuiCol,ImU32)" +defs["igPushStyleColor"][1]["stname"] = "" +defs["igPushStyleColor"][2] = {} +defs["igPushStyleColor"][2]["args"] = "(ImGuiCol idx,const ImVec4 col)" +defs["igPushStyleColor"][2]["argsT"] = {} +defs["igPushStyleColor"][2]["argsT"][1] = {} +defs["igPushStyleColor"][2]["argsT"][1]["name"] = "idx" +defs["igPushStyleColor"][2]["argsT"][1]["type"] = "ImGuiCol" +defs["igPushStyleColor"][2]["argsT"][2] = {} +defs["igPushStyleColor"][2]["argsT"][2]["name"] = "col" +defs["igPushStyleColor"][2]["argsT"][2]["type"] = "const ImVec4" +defs["igPushStyleColor"][2]["argsoriginal"] = "(ImGuiCol idx,const ImVec4& col)" +defs["igPushStyleColor"][2]["call_args"] = "(idx,col)" +defs["igPushStyleColor"][2]["cimguiname"] = "igPushStyleColor" +defs["igPushStyleColor"][2]["defaults"] = {} +defs["igPushStyleColor"][2]["funcname"] = "PushStyleColor" +defs["igPushStyleColor"][2]["location"] = "imgui:403" +defs["igPushStyleColor"][2]["namespace"] = "ImGui" +defs["igPushStyleColor"][2]["ov_cimguiname"] = "igPushStyleColor_Vec4" +defs["igPushStyleColor"][2]["ret"] = "void" +defs["igPushStyleColor"][2]["signature"] = "(ImGuiCol,const ImVec4)" +defs["igPushStyleColor"][2]["stname"] = "" +defs["igPushStyleColor"]["(ImGuiCol,ImU32)"] = defs["igPushStyleColor"][1] +defs["igPushStyleColor"]["(ImGuiCol,const ImVec4)"] = defs["igPushStyleColor"][2] +defs["igPushStyleVar"] = {} +defs["igPushStyleVar"][1] = {} +defs["igPushStyleVar"][1]["args"] = "(ImGuiStyleVar idx,float val)" +defs["igPushStyleVar"][1]["argsT"] = {} +defs["igPushStyleVar"][1]["argsT"][1] = {} +defs["igPushStyleVar"][1]["argsT"][1]["name"] = "idx" +defs["igPushStyleVar"][1]["argsT"][1]["type"] = "ImGuiStyleVar" +defs["igPushStyleVar"][1]["argsT"][2] = {} +defs["igPushStyleVar"][1]["argsT"][2]["name"] = "val" +defs["igPushStyleVar"][1]["argsT"][2]["type"] = "float" +defs["igPushStyleVar"][1]["argsoriginal"] = "(ImGuiStyleVar idx,float val)" +defs["igPushStyleVar"][1]["call_args"] = "(idx,val)" +defs["igPushStyleVar"][1]["cimguiname"] = "igPushStyleVar" +defs["igPushStyleVar"][1]["defaults"] = {} +defs["igPushStyleVar"][1]["funcname"] = "PushStyleVar" +defs["igPushStyleVar"][1]["location"] = "imgui:405" +defs["igPushStyleVar"][1]["namespace"] = "ImGui" +defs["igPushStyleVar"][1]["ov_cimguiname"] = "igPushStyleVar_Float" +defs["igPushStyleVar"][1]["ret"] = "void" +defs["igPushStyleVar"][1]["signature"] = "(ImGuiStyleVar,float)" +defs["igPushStyleVar"][1]["stname"] = "" +defs["igPushStyleVar"][2] = {} +defs["igPushStyleVar"][2]["args"] = "(ImGuiStyleVar idx,const ImVec2 val)" +defs["igPushStyleVar"][2]["argsT"] = {} +defs["igPushStyleVar"][2]["argsT"][1] = {} +defs["igPushStyleVar"][2]["argsT"][1]["name"] = "idx" +defs["igPushStyleVar"][2]["argsT"][1]["type"] = "ImGuiStyleVar" +defs["igPushStyleVar"][2]["argsT"][2] = {} +defs["igPushStyleVar"][2]["argsT"][2]["name"] = "val" +defs["igPushStyleVar"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igPushStyleVar"][2]["argsoriginal"] = "(ImGuiStyleVar idx,const ImVec2& val)" +defs["igPushStyleVar"][2]["call_args"] = "(idx,val)" +defs["igPushStyleVar"][2]["cimguiname"] = "igPushStyleVar" +defs["igPushStyleVar"][2]["defaults"] = {} +defs["igPushStyleVar"][2]["funcname"] = "PushStyleVar" +defs["igPushStyleVar"][2]["location"] = "imgui:406" +defs["igPushStyleVar"][2]["namespace"] = "ImGui" +defs["igPushStyleVar"][2]["ov_cimguiname"] = "igPushStyleVar_Vec2" +defs["igPushStyleVar"][2]["ret"] = "void" +defs["igPushStyleVar"][2]["signature"] = "(ImGuiStyleVar,const ImVec2)" +defs["igPushStyleVar"][2]["stname"] = "" +defs["igPushStyleVar"]["(ImGuiStyleVar,const ImVec2)"] = defs["igPushStyleVar"][2] +defs["igPushStyleVar"]["(ImGuiStyleVar,float)"] = defs["igPushStyleVar"][1] +defs["igPushTextWrapPos"] = {} +defs["igPushTextWrapPos"][1] = {} +defs["igPushTextWrapPos"][1]["args"] = "(float wrap_local_pos_x)" +defs["igPushTextWrapPos"][1]["argsT"] = {} +defs["igPushTextWrapPos"][1]["argsT"][1] = {} +defs["igPushTextWrapPos"][1]["argsT"][1]["name"] = "wrap_local_pos_x" +defs["igPushTextWrapPos"][1]["argsT"][1]["type"] = "float" +defs["igPushTextWrapPos"][1]["argsoriginal"] = "(float wrap_local_pos_x=0.0f)" +defs["igPushTextWrapPos"][1]["call_args"] = "(wrap_local_pos_x)" +defs["igPushTextWrapPos"][1]["cimguiname"] = "igPushTextWrapPos" +defs["igPushTextWrapPos"][1]["defaults"] = {} +defs["igPushTextWrapPos"][1]["defaults"]["wrap_local_pos_x"] = "0.0f" +defs["igPushTextWrapPos"][1]["funcname"] = "PushTextWrapPos" +defs["igPushTextWrapPos"][1]["location"] = "imgui:418" +defs["igPushTextWrapPos"][1]["namespace"] = "ImGui" +defs["igPushTextWrapPos"][1]["ov_cimguiname"] = "igPushTextWrapPos" +defs["igPushTextWrapPos"][1]["ret"] = "void" +defs["igPushTextWrapPos"][1]["signature"] = "(float)" +defs["igPushTextWrapPos"][1]["stname"] = "" +defs["igPushTextWrapPos"]["(float)"] = defs["igPushTextWrapPos"][1] +defs["igRadioButton"] = {} +defs["igRadioButton"][1] = {} +defs["igRadioButton"][1]["args"] = "(const char* label,bool active)" +defs["igRadioButton"][1]["argsT"] = {} +defs["igRadioButton"][1]["argsT"][1] = {} +defs["igRadioButton"][1]["argsT"][1]["name"] = "label" +defs["igRadioButton"][1]["argsT"][1]["type"] = "const char*" +defs["igRadioButton"][1]["argsT"][2] = {} +defs["igRadioButton"][1]["argsT"][2]["name"] = "active" +defs["igRadioButton"][1]["argsT"][2]["type"] = "bool" +defs["igRadioButton"][1]["argsoriginal"] = "(const char* label,bool active)" +defs["igRadioButton"][1]["call_args"] = "(label,active)" +defs["igRadioButton"][1]["cimguiname"] = "igRadioButton" +defs["igRadioButton"][1]["defaults"] = {} +defs["igRadioButton"][1]["funcname"] = "RadioButton" +defs["igRadioButton"][1]["location"] = "imgui:507" +defs["igRadioButton"][1]["namespace"] = "ImGui" +defs["igRadioButton"][1]["ov_cimguiname"] = "igRadioButton_Bool" +defs["igRadioButton"][1]["ret"] = "bool" +defs["igRadioButton"][1]["signature"] = "(const char*,bool)" +defs["igRadioButton"][1]["stname"] = "" +defs["igRadioButton"][2] = {} +defs["igRadioButton"][2]["args"] = "(const char* label,int* v,int v_button)" +defs["igRadioButton"][2]["argsT"] = {} +defs["igRadioButton"][2]["argsT"][1] = {} +defs["igRadioButton"][2]["argsT"][1]["name"] = "label" +defs["igRadioButton"][2]["argsT"][1]["type"] = "const char*" +defs["igRadioButton"][2]["argsT"][2] = {} +defs["igRadioButton"][2]["argsT"][2]["name"] = "v" +defs["igRadioButton"][2]["argsT"][2]["type"] = "int*" +defs["igRadioButton"][2]["argsT"][3] = {} +defs["igRadioButton"][2]["argsT"][3]["name"] = "v_button" +defs["igRadioButton"][2]["argsT"][3]["type"] = "int" +defs["igRadioButton"][2]["argsoriginal"] = "(const char* label,int* v,int v_button)" +defs["igRadioButton"][2]["call_args"] = "(label,v,v_button)" +defs["igRadioButton"][2]["cimguiname"] = "igRadioButton" +defs["igRadioButton"][2]["defaults"] = {} +defs["igRadioButton"][2]["funcname"] = "RadioButton" +defs["igRadioButton"][2]["location"] = "imgui:508" +defs["igRadioButton"][2]["namespace"] = "ImGui" +defs["igRadioButton"][2]["ov_cimguiname"] = "igRadioButton_IntPtr" +defs["igRadioButton"][2]["ret"] = "bool" +defs["igRadioButton"][2]["signature"] = "(const char*,int*,int)" +defs["igRadioButton"][2]["stname"] = "" +defs["igRadioButton"]["(const char*,bool)"] = defs["igRadioButton"][1] +defs["igRadioButton"]["(const char*,int*,int)"] = defs["igRadioButton"][2] +defs["igRender"] = {} +defs["igRender"][1] = {} +defs["igRender"][1]["args"] = "()" +defs["igRender"][1]["argsT"] = {} +defs["igRender"][1]["argsoriginal"] = "()" +defs["igRender"][1]["call_args"] = "()" +defs["igRender"][1]["cimguiname"] = "igRender" +defs["igRender"][1]["defaults"] = {} +defs["igRender"][1]["funcname"] = "Render" +defs["igRender"][1]["location"] = "imgui:298" +defs["igRender"][1]["namespace"] = "ImGui" +defs["igRender"][1]["ov_cimguiname"] = "igRender" +defs["igRender"][1]["ret"] = "void" +defs["igRender"][1]["signature"] = "()" +defs["igRender"][1]["stname"] = "" +defs["igRender"]["()"] = defs["igRender"][1] +defs["igResetMouseDragDelta"] = {} +defs["igResetMouseDragDelta"][1] = {} +defs["igResetMouseDragDelta"][1]["args"] = "(ImGuiMouseButton button)" +defs["igResetMouseDragDelta"][1]["argsT"] = {} +defs["igResetMouseDragDelta"][1]["argsT"][1] = {} +defs["igResetMouseDragDelta"][1]["argsT"][1]["name"] = "button" +defs["igResetMouseDragDelta"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igResetMouseDragDelta"][1]["argsoriginal"] = "(ImGuiMouseButton button=0)" +defs["igResetMouseDragDelta"][1]["call_args"] = "(button)" +defs["igResetMouseDragDelta"][1]["cimguiname"] = "igResetMouseDragDelta" +defs["igResetMouseDragDelta"][1]["defaults"] = {} +defs["igResetMouseDragDelta"][1]["defaults"]["button"] = "0" +defs["igResetMouseDragDelta"][1]["funcname"] = "ResetMouseDragDelta" +defs["igResetMouseDragDelta"][1]["location"] = "imgui:913" +defs["igResetMouseDragDelta"][1]["namespace"] = "ImGui" +defs["igResetMouseDragDelta"][1]["ov_cimguiname"] = "igResetMouseDragDelta" +defs["igResetMouseDragDelta"][1]["ret"] = "void" +defs["igResetMouseDragDelta"][1]["signature"] = "(ImGuiMouseButton)" +defs["igResetMouseDragDelta"][1]["stname"] = "" +defs["igResetMouseDragDelta"]["(ImGuiMouseButton)"] = defs["igResetMouseDragDelta"][1] +defs["igSameLine"] = {} +defs["igSameLine"][1] = {} +defs["igSameLine"][1]["args"] = "(float offset_from_start_x,float spacing)" +defs["igSameLine"][1]["argsT"] = {} +defs["igSameLine"][1]["argsT"][1] = {} +defs["igSameLine"][1]["argsT"][1]["name"] = "offset_from_start_x" +defs["igSameLine"][1]["argsT"][1]["type"] = "float" +defs["igSameLine"][1]["argsT"][2] = {} +defs["igSameLine"][1]["argsT"][2]["name"] = "spacing" +defs["igSameLine"][1]["argsT"][2]["type"] = "float" +defs["igSameLine"][1]["argsoriginal"] = "(float offset_from_start_x=0.0f,float spacing=-1.0f)" +defs["igSameLine"][1]["call_args"] = "(offset_from_start_x,spacing)" +defs["igSameLine"][1]["cimguiname"] = "igSameLine" +defs["igSameLine"][1]["defaults"] = {} +defs["igSameLine"][1]["defaults"]["offset_from_start_x"] = "0.0f" +defs["igSameLine"][1]["defaults"]["spacing"] = "-1.0f" +defs["igSameLine"][1]["funcname"] = "SameLine" +defs["igSameLine"][1]["location"] = "imgui:439" +defs["igSameLine"][1]["namespace"] = "ImGui" +defs["igSameLine"][1]["ov_cimguiname"] = "igSameLine" +defs["igSameLine"][1]["ret"] = "void" +defs["igSameLine"][1]["signature"] = "(float,float)" +defs["igSameLine"][1]["stname"] = "" +defs["igSameLine"]["(float,float)"] = defs["igSameLine"][1] +defs["igSaveIniSettingsToDisk"] = {} +defs["igSaveIniSettingsToDisk"][1] = {} +defs["igSaveIniSettingsToDisk"][1]["args"] = "(const char* ini_filename)" +defs["igSaveIniSettingsToDisk"][1]["argsT"] = {} +defs["igSaveIniSettingsToDisk"][1]["argsT"][1] = {} +defs["igSaveIniSettingsToDisk"][1]["argsT"][1]["name"] = "ini_filename" +defs["igSaveIniSettingsToDisk"][1]["argsT"][1]["type"] = "const char*" +defs["igSaveIniSettingsToDisk"][1]["argsoriginal"] = "(const char* ini_filename)" +defs["igSaveIniSettingsToDisk"][1]["call_args"] = "(ini_filename)" +defs["igSaveIniSettingsToDisk"][1]["cimguiname"] = "igSaveIniSettingsToDisk" +defs["igSaveIniSettingsToDisk"][1]["defaults"] = {} +defs["igSaveIniSettingsToDisk"][1]["funcname"] = "SaveIniSettingsToDisk" +defs["igSaveIniSettingsToDisk"][1]["location"] = "imgui:929" +defs["igSaveIniSettingsToDisk"][1]["namespace"] = "ImGui" +defs["igSaveIniSettingsToDisk"][1]["ov_cimguiname"] = "igSaveIniSettingsToDisk" +defs["igSaveIniSettingsToDisk"][1]["ret"] = "void" +defs["igSaveIniSettingsToDisk"][1]["signature"] = "(const char*)" +defs["igSaveIniSettingsToDisk"][1]["stname"] = "" +defs["igSaveIniSettingsToDisk"]["(const char*)"] = defs["igSaveIniSettingsToDisk"][1] +defs["igSaveIniSettingsToMemory"] = {} +defs["igSaveIniSettingsToMemory"][1] = {} +defs["igSaveIniSettingsToMemory"][1]["args"] = "(size_t* out_ini_size)" +defs["igSaveIniSettingsToMemory"][1]["argsT"] = {} +defs["igSaveIniSettingsToMemory"][1]["argsT"][1] = {} +defs["igSaveIniSettingsToMemory"][1]["argsT"][1]["name"] = "out_ini_size" +defs["igSaveIniSettingsToMemory"][1]["argsT"][1]["type"] = "size_t*" +defs["igSaveIniSettingsToMemory"][1]["argsoriginal"] = "(size_t* out_ini_size=((void*)0))" +defs["igSaveIniSettingsToMemory"][1]["call_args"] = "(out_ini_size)" +defs["igSaveIniSettingsToMemory"][1]["cimguiname"] = "igSaveIniSettingsToMemory" +defs["igSaveIniSettingsToMemory"][1]["defaults"] = {} +defs["igSaveIniSettingsToMemory"][1]["defaults"]["out_ini_size"] = "NULL" +defs["igSaveIniSettingsToMemory"][1]["funcname"] = "SaveIniSettingsToMemory" +defs["igSaveIniSettingsToMemory"][1]["location"] = "imgui:930" +defs["igSaveIniSettingsToMemory"][1]["namespace"] = "ImGui" +defs["igSaveIniSettingsToMemory"][1]["ov_cimguiname"] = "igSaveIniSettingsToMemory" +defs["igSaveIniSettingsToMemory"][1]["ret"] = "const char*" +defs["igSaveIniSettingsToMemory"][1]["signature"] = "(size_t*)" +defs["igSaveIniSettingsToMemory"][1]["stname"] = "" +defs["igSaveIniSettingsToMemory"]["(size_t*)"] = defs["igSaveIniSettingsToMemory"][1] +defs["igSelectable"] = {} +defs["igSelectable"][1] = {} +defs["igSelectable"][1]["args"] = "(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size)" +defs["igSelectable"][1]["argsT"] = {} +defs["igSelectable"][1]["argsT"][1] = {} +defs["igSelectable"][1]["argsT"][1]["name"] = "label" +defs["igSelectable"][1]["argsT"][1]["type"] = "const char*" +defs["igSelectable"][1]["argsT"][2] = {} +defs["igSelectable"][1]["argsT"][2]["name"] = "selected" +defs["igSelectable"][1]["argsT"][2]["type"] = "bool" +defs["igSelectable"][1]["argsT"][3] = {} +defs["igSelectable"][1]["argsT"][3]["name"] = "flags" +defs["igSelectable"][1]["argsT"][3]["type"] = "ImGuiSelectableFlags" +defs["igSelectable"][1]["argsT"][4] = {} +defs["igSelectable"][1]["argsT"][4]["name"] = "size" +defs["igSelectable"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igSelectable"][1]["argsoriginal"] = "(const char* label,bool selected=false,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))" +defs["igSelectable"][1]["call_args"] = "(label,selected,flags,size)" +defs["igSelectable"][1]["cimguiname"] = "igSelectable" +defs["igSelectable"][1]["defaults"] = {} +defs["igSelectable"][1]["defaults"]["flags"] = "0" +defs["igSelectable"][1]["defaults"]["selected"] = "false" +defs["igSelectable"][1]["defaults"]["size"] = "ImVec2(0,0)" +defs["igSelectable"][1]["funcname"] = "Selectable" +defs["igSelectable"][1]["location"] = "imgui:623" +defs["igSelectable"][1]["namespace"] = "ImGui" +defs["igSelectable"][1]["ov_cimguiname"] = "igSelectable_Bool" +defs["igSelectable"][1]["ret"] = "bool" +defs["igSelectable"][1]["signature"] = "(const char*,bool,ImGuiSelectableFlags,const ImVec2)" +defs["igSelectable"][1]["stname"] = "" +defs["igSelectable"][2] = {} +defs["igSelectable"][2]["args"] = "(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size)" +defs["igSelectable"][2]["argsT"] = {} +defs["igSelectable"][2]["argsT"][1] = {} +defs["igSelectable"][2]["argsT"][1]["name"] = "label" +defs["igSelectable"][2]["argsT"][1]["type"] = "const char*" +defs["igSelectable"][2]["argsT"][2] = {} +defs["igSelectable"][2]["argsT"][2]["name"] = "p_selected" +defs["igSelectable"][2]["argsT"][2]["type"] = "bool*" +defs["igSelectable"][2]["argsT"][3] = {} +defs["igSelectable"][2]["argsT"][3]["name"] = "flags" +defs["igSelectable"][2]["argsT"][3]["type"] = "ImGuiSelectableFlags" +defs["igSelectable"][2]["argsT"][4] = {} +defs["igSelectable"][2]["argsT"][4]["name"] = "size" +defs["igSelectable"][2]["argsT"][4]["type"] = "const ImVec2" +defs["igSelectable"][2]["argsoriginal"] = "(const char* label,bool* p_selected,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))" +defs["igSelectable"][2]["call_args"] = "(label,p_selected,flags,size)" +defs["igSelectable"][2]["cimguiname"] = "igSelectable" +defs["igSelectable"][2]["defaults"] = {} +defs["igSelectable"][2]["defaults"]["flags"] = "0" +defs["igSelectable"][2]["defaults"]["size"] = "ImVec2(0,0)" +defs["igSelectable"][2]["funcname"] = "Selectable" +defs["igSelectable"][2]["location"] = "imgui:624" +defs["igSelectable"][2]["namespace"] = "ImGui" +defs["igSelectable"][2]["ov_cimguiname"] = "igSelectable_BoolPtr" +defs["igSelectable"][2]["ret"] = "bool" +defs["igSelectable"][2]["signature"] = "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)" +defs["igSelectable"][2]["stname"] = "" +defs["igSelectable"]["(const char*,bool*,ImGuiSelectableFlags,const ImVec2)"] = defs["igSelectable"][2] +defs["igSelectable"]["(const char*,bool,ImGuiSelectableFlags,const ImVec2)"] = defs["igSelectable"][1] +defs["igSeparator"] = {} +defs["igSeparator"][1] = {} +defs["igSeparator"][1]["args"] = "()" +defs["igSeparator"][1]["argsT"] = {} +defs["igSeparator"][1]["argsoriginal"] = "()" +defs["igSeparator"][1]["call_args"] = "()" +defs["igSeparator"][1]["cimguiname"] = "igSeparator" +defs["igSeparator"][1]["defaults"] = {} +defs["igSeparator"][1]["funcname"] = "Separator" +defs["igSeparator"][1]["location"] = "imgui:438" +defs["igSeparator"][1]["namespace"] = "ImGui" +defs["igSeparator"][1]["ov_cimguiname"] = "igSeparator" +defs["igSeparator"][1]["ret"] = "void" +defs["igSeparator"][1]["signature"] = "()" +defs["igSeparator"][1]["stname"] = "" +defs["igSeparator"]["()"] = defs["igSeparator"][1] +defs["igSetAllocatorFunctions"] = {} +defs["igSetAllocatorFunctions"][1] = {} +defs["igSetAllocatorFunctions"][1]["args"] = "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)" +defs["igSetAllocatorFunctions"][1]["argsT"] = {} +defs["igSetAllocatorFunctions"][1]["argsT"][1] = {} +defs["igSetAllocatorFunctions"][1]["argsT"][1]["name"] = "alloc_func" +defs["igSetAllocatorFunctions"][1]["argsT"][1]["type"] = "ImGuiMemAllocFunc" +defs["igSetAllocatorFunctions"][1]["argsT"][2] = {} +defs["igSetAllocatorFunctions"][1]["argsT"][2]["name"] = "free_func" +defs["igSetAllocatorFunctions"][1]["argsT"][2]["type"] = "ImGuiMemFreeFunc" +defs["igSetAllocatorFunctions"][1]["argsT"][3] = {} +defs["igSetAllocatorFunctions"][1]["argsT"][3]["name"] = "user_data" +defs["igSetAllocatorFunctions"][1]["argsT"][3]["type"] = "void*" +defs["igSetAllocatorFunctions"][1]["argsoriginal"] = "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data=((void*)0))" +defs["igSetAllocatorFunctions"][1]["call_args"] = "(alloc_func,free_func,user_data)" +defs["igSetAllocatorFunctions"][1]["cimguiname"] = "igSetAllocatorFunctions" +defs["igSetAllocatorFunctions"][1]["defaults"] = {} +defs["igSetAllocatorFunctions"][1]["defaults"]["user_data"] = "NULL" +defs["igSetAllocatorFunctions"][1]["funcname"] = "SetAllocatorFunctions" +defs["igSetAllocatorFunctions"][1]["location"] = "imgui:940" +defs["igSetAllocatorFunctions"][1]["namespace"] = "ImGui" +defs["igSetAllocatorFunctions"][1]["ov_cimguiname"] = "igSetAllocatorFunctions" +defs["igSetAllocatorFunctions"][1]["ret"] = "void" +defs["igSetAllocatorFunctions"][1]["signature"] = "(ImGuiMemAllocFunc,ImGuiMemFreeFunc,void*)" +defs["igSetAllocatorFunctions"][1]["stname"] = "" +defs["igSetAllocatorFunctions"]["(ImGuiMemAllocFunc,ImGuiMemFreeFunc,void*)"] = defs["igSetAllocatorFunctions"][1] +defs["igSetClipboardText"] = {} +defs["igSetClipboardText"][1] = {} +defs["igSetClipboardText"][1]["args"] = "(const char* text)" +defs["igSetClipboardText"][1]["argsT"] = {} +defs["igSetClipboardText"][1]["argsT"][1] = {} +defs["igSetClipboardText"][1]["argsT"][1]["name"] = "text" +defs["igSetClipboardText"][1]["argsT"][1]["type"] = "const char*" +defs["igSetClipboardText"][1]["argsoriginal"] = "(const char* text)" +defs["igSetClipboardText"][1]["call_args"] = "(text)" +defs["igSetClipboardText"][1]["cimguiname"] = "igSetClipboardText" +defs["igSetClipboardText"][1]["defaults"] = {} +defs["igSetClipboardText"][1]["funcname"] = "SetClipboardText" +defs["igSetClipboardText"][1]["location"] = "imgui:921" +defs["igSetClipboardText"][1]["namespace"] = "ImGui" +defs["igSetClipboardText"][1]["ov_cimguiname"] = "igSetClipboardText" +defs["igSetClipboardText"][1]["ret"] = "void" +defs["igSetClipboardText"][1]["signature"] = "(const char*)" +defs["igSetClipboardText"][1]["stname"] = "" +defs["igSetClipboardText"]["(const char*)"] = defs["igSetClipboardText"][1] +defs["igSetColorEditOptions"] = {} +defs["igSetColorEditOptions"][1] = {} +defs["igSetColorEditOptions"][1]["args"] = "(ImGuiColorEditFlags flags)" +defs["igSetColorEditOptions"][1]["argsT"] = {} +defs["igSetColorEditOptions"][1]["argsT"][1] = {} +defs["igSetColorEditOptions"][1]["argsT"][1]["name"] = "flags" +defs["igSetColorEditOptions"][1]["argsT"][1]["type"] = "ImGuiColorEditFlags" +defs["igSetColorEditOptions"][1]["argsoriginal"] = "(ImGuiColorEditFlags flags)" +defs["igSetColorEditOptions"][1]["call_args"] = "(flags)" +defs["igSetColorEditOptions"][1]["cimguiname"] = "igSetColorEditOptions" +defs["igSetColorEditOptions"][1]["defaults"] = {} +defs["igSetColorEditOptions"][1]["funcname"] = "SetColorEditOptions" +defs["igSetColorEditOptions"][1]["location"] = "imgui:598" +defs["igSetColorEditOptions"][1]["namespace"] = "ImGui" +defs["igSetColorEditOptions"][1]["ov_cimguiname"] = "igSetColorEditOptions" +defs["igSetColorEditOptions"][1]["ret"] = "void" +defs["igSetColorEditOptions"][1]["signature"] = "(ImGuiColorEditFlags)" +defs["igSetColorEditOptions"][1]["stname"] = "" +defs["igSetColorEditOptions"]["(ImGuiColorEditFlags)"] = defs["igSetColorEditOptions"][1] +defs["igSetColumnOffset"] = {} +defs["igSetColumnOffset"][1] = {} +defs["igSetColumnOffset"][1]["args"] = "(int column_index,float offset_x)" +defs["igSetColumnOffset"][1]["argsT"] = {} +defs["igSetColumnOffset"][1]["argsT"][1] = {} +defs["igSetColumnOffset"][1]["argsT"][1]["name"] = "column_index" +defs["igSetColumnOffset"][1]["argsT"][1]["type"] = "int" +defs["igSetColumnOffset"][1]["argsT"][2] = {} +defs["igSetColumnOffset"][1]["argsT"][2]["name"] = "offset_x" +defs["igSetColumnOffset"][1]["argsT"][2]["type"] = "float" +defs["igSetColumnOffset"][1]["argsoriginal"] = "(int column_index,float offset_x)" +defs["igSetColumnOffset"][1]["call_args"] = "(column_index,offset_x)" +defs["igSetColumnOffset"][1]["cimguiname"] = "igSetColumnOffset" +defs["igSetColumnOffset"][1]["defaults"] = {} +defs["igSetColumnOffset"][1]["funcname"] = "SetColumnOffset" +defs["igSetColumnOffset"][1]["location"] = "imgui:781" +defs["igSetColumnOffset"][1]["namespace"] = "ImGui" +defs["igSetColumnOffset"][1]["ov_cimguiname"] = "igSetColumnOffset" +defs["igSetColumnOffset"][1]["ret"] = "void" +defs["igSetColumnOffset"][1]["signature"] = "(int,float)" +defs["igSetColumnOffset"][1]["stname"] = "" +defs["igSetColumnOffset"]["(int,float)"] = defs["igSetColumnOffset"][1] +defs["igSetColumnWidth"] = {} +defs["igSetColumnWidth"][1] = {} +defs["igSetColumnWidth"][1]["args"] = "(int column_index,float width)" +defs["igSetColumnWidth"][1]["argsT"] = {} +defs["igSetColumnWidth"][1]["argsT"][1] = {} +defs["igSetColumnWidth"][1]["argsT"][1]["name"] = "column_index" +defs["igSetColumnWidth"][1]["argsT"][1]["type"] = "int" +defs["igSetColumnWidth"][1]["argsT"][2] = {} +defs["igSetColumnWidth"][1]["argsT"][2]["name"] = "width" +defs["igSetColumnWidth"][1]["argsT"][2]["type"] = "float" +defs["igSetColumnWidth"][1]["argsoriginal"] = "(int column_index,float width)" +defs["igSetColumnWidth"][1]["call_args"] = "(column_index,width)" +defs["igSetColumnWidth"][1]["cimguiname"] = "igSetColumnWidth" +defs["igSetColumnWidth"][1]["defaults"] = {} +defs["igSetColumnWidth"][1]["funcname"] = "SetColumnWidth" +defs["igSetColumnWidth"][1]["location"] = "imgui:779" +defs["igSetColumnWidth"][1]["namespace"] = "ImGui" +defs["igSetColumnWidth"][1]["ov_cimguiname"] = "igSetColumnWidth" +defs["igSetColumnWidth"][1]["ret"] = "void" +defs["igSetColumnWidth"][1]["signature"] = "(int,float)" +defs["igSetColumnWidth"][1]["stname"] = "" +defs["igSetColumnWidth"]["(int,float)"] = defs["igSetColumnWidth"][1] +defs["igSetCurrentContext"] = {} +defs["igSetCurrentContext"][1] = {} +defs["igSetCurrentContext"][1]["args"] = "(ImGuiContext* ctx)" +defs["igSetCurrentContext"][1]["argsT"] = {} +defs["igSetCurrentContext"][1]["argsT"][1] = {} +defs["igSetCurrentContext"][1]["argsT"][1]["name"] = "ctx" +defs["igSetCurrentContext"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igSetCurrentContext"][1]["argsoriginal"] = "(ImGuiContext* ctx)" +defs["igSetCurrentContext"][1]["call_args"] = "(ctx)" +defs["igSetCurrentContext"][1]["cimguiname"] = "igSetCurrentContext" +defs["igSetCurrentContext"][1]["defaults"] = {} +defs["igSetCurrentContext"][1]["funcname"] = "SetCurrentContext" +defs["igSetCurrentContext"][1]["location"] = "imgui:291" +defs["igSetCurrentContext"][1]["namespace"] = "ImGui" +defs["igSetCurrentContext"][1]["ov_cimguiname"] = "igSetCurrentContext" +defs["igSetCurrentContext"][1]["ret"] = "void" +defs["igSetCurrentContext"][1]["signature"] = "(ImGuiContext*)" +defs["igSetCurrentContext"][1]["stname"] = "" +defs["igSetCurrentContext"]["(ImGuiContext*)"] = defs["igSetCurrentContext"][1] +defs["igSetCursorPos"] = {} +defs["igSetCursorPos"][1] = {} +defs["igSetCursorPos"][1]["args"] = "(const ImVec2 local_pos)" +defs["igSetCursorPos"][1]["argsT"] = {} +defs["igSetCursorPos"][1]["argsT"][1] = {} +defs["igSetCursorPos"][1]["argsT"][1]["name"] = "local_pos" +defs["igSetCursorPos"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetCursorPos"][1]["argsoriginal"] = "(const ImVec2& local_pos)" +defs["igSetCursorPos"][1]["call_args"] = "(local_pos)" +defs["igSetCursorPos"][1]["cimguiname"] = "igSetCursorPos" +defs["igSetCursorPos"][1]["defaults"] = {} +defs["igSetCursorPos"][1]["funcname"] = "SetCursorPos" +defs["igSetCursorPos"][1]["location"] = "imgui:450" +defs["igSetCursorPos"][1]["namespace"] = "ImGui" +defs["igSetCursorPos"][1]["ov_cimguiname"] = "igSetCursorPos" +defs["igSetCursorPos"][1]["ret"] = "void" +defs["igSetCursorPos"][1]["signature"] = "(const ImVec2)" +defs["igSetCursorPos"][1]["stname"] = "" +defs["igSetCursorPos"]["(const ImVec2)"] = defs["igSetCursorPos"][1] +defs["igSetCursorPosX"] = {} +defs["igSetCursorPosX"][1] = {} +defs["igSetCursorPosX"][1]["args"] = "(float local_x)" +defs["igSetCursorPosX"][1]["argsT"] = {} +defs["igSetCursorPosX"][1]["argsT"][1] = {} +defs["igSetCursorPosX"][1]["argsT"][1]["name"] = "local_x" +defs["igSetCursorPosX"][1]["argsT"][1]["type"] = "float" +defs["igSetCursorPosX"][1]["argsoriginal"] = "(float local_x)" +defs["igSetCursorPosX"][1]["call_args"] = "(local_x)" +defs["igSetCursorPosX"][1]["cimguiname"] = "igSetCursorPosX" +defs["igSetCursorPosX"][1]["defaults"] = {} +defs["igSetCursorPosX"][1]["funcname"] = "SetCursorPosX" +defs["igSetCursorPosX"][1]["location"] = "imgui:451" +defs["igSetCursorPosX"][1]["namespace"] = "ImGui" +defs["igSetCursorPosX"][1]["ov_cimguiname"] = "igSetCursorPosX" +defs["igSetCursorPosX"][1]["ret"] = "void" +defs["igSetCursorPosX"][1]["signature"] = "(float)" +defs["igSetCursorPosX"][1]["stname"] = "" +defs["igSetCursorPosX"]["(float)"] = defs["igSetCursorPosX"][1] +defs["igSetCursorPosY"] = {} +defs["igSetCursorPosY"][1] = {} +defs["igSetCursorPosY"][1]["args"] = "(float local_y)" +defs["igSetCursorPosY"][1]["argsT"] = {} +defs["igSetCursorPosY"][1]["argsT"][1] = {} +defs["igSetCursorPosY"][1]["argsT"][1]["name"] = "local_y" +defs["igSetCursorPosY"][1]["argsT"][1]["type"] = "float" +defs["igSetCursorPosY"][1]["argsoriginal"] = "(float local_y)" +defs["igSetCursorPosY"][1]["call_args"] = "(local_y)" +defs["igSetCursorPosY"][1]["cimguiname"] = "igSetCursorPosY" +defs["igSetCursorPosY"][1]["defaults"] = {} +defs["igSetCursorPosY"][1]["funcname"] = "SetCursorPosY" +defs["igSetCursorPosY"][1]["location"] = "imgui:452" +defs["igSetCursorPosY"][1]["namespace"] = "ImGui" +defs["igSetCursorPosY"][1]["ov_cimguiname"] = "igSetCursorPosY" +defs["igSetCursorPosY"][1]["ret"] = "void" +defs["igSetCursorPosY"][1]["signature"] = "(float)" +defs["igSetCursorPosY"][1]["stname"] = "" +defs["igSetCursorPosY"]["(float)"] = defs["igSetCursorPosY"][1] +defs["igSetCursorScreenPos"] = {} +defs["igSetCursorScreenPos"][1] = {} +defs["igSetCursorScreenPos"][1]["args"] = "(const ImVec2 pos)" +defs["igSetCursorScreenPos"][1]["argsT"] = {} +defs["igSetCursorScreenPos"][1]["argsT"][1] = {} +defs["igSetCursorScreenPos"][1]["argsT"][1]["name"] = "pos" +defs["igSetCursorScreenPos"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetCursorScreenPos"][1]["argsoriginal"] = "(const ImVec2& pos)" +defs["igSetCursorScreenPos"][1]["call_args"] = "(pos)" +defs["igSetCursorScreenPos"][1]["cimguiname"] = "igSetCursorScreenPos" +defs["igSetCursorScreenPos"][1]["defaults"] = {} +defs["igSetCursorScreenPos"][1]["funcname"] = "SetCursorScreenPos" +defs["igSetCursorScreenPos"][1]["location"] = "imgui:455" +defs["igSetCursorScreenPos"][1]["namespace"] = "ImGui" +defs["igSetCursorScreenPos"][1]["ov_cimguiname"] = "igSetCursorScreenPos" +defs["igSetCursorScreenPos"][1]["ret"] = "void" +defs["igSetCursorScreenPos"][1]["signature"] = "(const ImVec2)" +defs["igSetCursorScreenPos"][1]["stname"] = "" +defs["igSetCursorScreenPos"]["(const ImVec2)"] = defs["igSetCursorScreenPos"][1] +defs["igSetDragDropPayload"] = {} +defs["igSetDragDropPayload"][1] = {} +defs["igSetDragDropPayload"][1]["args"] = "(const char* type,const void* data,size_t sz,ImGuiCond cond)" +defs["igSetDragDropPayload"][1]["argsT"] = {} +defs["igSetDragDropPayload"][1]["argsT"][1] = {} +defs["igSetDragDropPayload"][1]["argsT"][1]["name"] = "type" +defs["igSetDragDropPayload"][1]["argsT"][1]["type"] = "const char*" +defs["igSetDragDropPayload"][1]["argsT"][2] = {} +defs["igSetDragDropPayload"][1]["argsT"][2]["name"] = "data" +defs["igSetDragDropPayload"][1]["argsT"][2]["type"] = "const void*" +defs["igSetDragDropPayload"][1]["argsT"][3] = {} +defs["igSetDragDropPayload"][1]["argsT"][3]["name"] = "sz" +defs["igSetDragDropPayload"][1]["argsT"][3]["type"] = "size_t" +defs["igSetDragDropPayload"][1]["argsT"][4] = {} +defs["igSetDragDropPayload"][1]["argsT"][4]["name"] = "cond" +defs["igSetDragDropPayload"][1]["argsT"][4]["type"] = "ImGuiCond" +defs["igSetDragDropPayload"][1]["argsoriginal"] = "(const char* type,const void* data,size_t sz,ImGuiCond cond=0)" +defs["igSetDragDropPayload"][1]["call_args"] = "(type,data,sz,cond)" +defs["igSetDragDropPayload"][1]["cimguiname"] = "igSetDragDropPayload" +defs["igSetDragDropPayload"][1]["defaults"] = {} +defs["igSetDragDropPayload"][1]["defaults"]["cond"] = "0" +defs["igSetDragDropPayload"][1]["funcname"] = "SetDragDropPayload" +defs["igSetDragDropPayload"][1]["location"] = "imgui:808" +defs["igSetDragDropPayload"][1]["namespace"] = "ImGui" +defs["igSetDragDropPayload"][1]["ov_cimguiname"] = "igSetDragDropPayload" +defs["igSetDragDropPayload"][1]["ret"] = "bool" +defs["igSetDragDropPayload"][1]["signature"] = "(const char*,const void*,size_t,ImGuiCond)" +defs["igSetDragDropPayload"][1]["stname"] = "" +defs["igSetDragDropPayload"]["(const char*,const void*,size_t,ImGuiCond)"] = defs["igSetDragDropPayload"][1] +defs["igSetItemAllowOverlap"] = {} +defs["igSetItemAllowOverlap"][1] = {} +defs["igSetItemAllowOverlap"][1]["args"] = "()" +defs["igSetItemAllowOverlap"][1]["argsT"] = {} +defs["igSetItemAllowOverlap"][1]["argsoriginal"] = "()" +defs["igSetItemAllowOverlap"][1]["call_args"] = "()" +defs["igSetItemAllowOverlap"][1]["cimguiname"] = "igSetItemAllowOverlap" +defs["igSetItemAllowOverlap"][1]["defaults"] = {} +defs["igSetItemAllowOverlap"][1]["funcname"] = "SetItemAllowOverlap" +defs["igSetItemAllowOverlap"][1]["location"] = "imgui:851" +defs["igSetItemAllowOverlap"][1]["namespace"] = "ImGui" +defs["igSetItemAllowOverlap"][1]["ov_cimguiname"] = "igSetItemAllowOverlap" +defs["igSetItemAllowOverlap"][1]["ret"] = "void" +defs["igSetItemAllowOverlap"][1]["signature"] = "()" +defs["igSetItemAllowOverlap"][1]["stname"] = "" +defs["igSetItemAllowOverlap"]["()"] = defs["igSetItemAllowOverlap"][1] +defs["igSetItemDefaultFocus"] = {} +defs["igSetItemDefaultFocus"][1] = {} +defs["igSetItemDefaultFocus"][1]["args"] = "()" +defs["igSetItemDefaultFocus"][1]["argsT"] = {} +defs["igSetItemDefaultFocus"][1]["argsoriginal"] = "()" +defs["igSetItemDefaultFocus"][1]["call_args"] = "()" +defs["igSetItemDefaultFocus"][1]["cimguiname"] = "igSetItemDefaultFocus" +defs["igSetItemDefaultFocus"][1]["defaults"] = {} +defs["igSetItemDefaultFocus"][1]["funcname"] = "SetItemDefaultFocus" +defs["igSetItemDefaultFocus"][1]["location"] = "imgui:829" +defs["igSetItemDefaultFocus"][1]["namespace"] = "ImGui" +defs["igSetItemDefaultFocus"][1]["ov_cimguiname"] = "igSetItemDefaultFocus" +defs["igSetItemDefaultFocus"][1]["ret"] = "void" +defs["igSetItemDefaultFocus"][1]["signature"] = "()" +defs["igSetItemDefaultFocus"][1]["stname"] = "" +defs["igSetItemDefaultFocus"]["()"] = defs["igSetItemDefaultFocus"][1] +defs["igSetKeyboardFocusHere"] = {} +defs["igSetKeyboardFocusHere"][1] = {} +defs["igSetKeyboardFocusHere"][1]["args"] = "(int offset)" +defs["igSetKeyboardFocusHere"][1]["argsT"] = {} +defs["igSetKeyboardFocusHere"][1]["argsT"][1] = {} +defs["igSetKeyboardFocusHere"][1]["argsT"][1]["name"] = "offset" +defs["igSetKeyboardFocusHere"][1]["argsT"][1]["type"] = "int" +defs["igSetKeyboardFocusHere"][1]["argsoriginal"] = "(int offset=0)" +defs["igSetKeyboardFocusHere"][1]["call_args"] = "(offset)" +defs["igSetKeyboardFocusHere"][1]["cimguiname"] = "igSetKeyboardFocusHere" +defs["igSetKeyboardFocusHere"][1]["defaults"] = {} +defs["igSetKeyboardFocusHere"][1]["defaults"]["offset"] = "0" +defs["igSetKeyboardFocusHere"][1]["funcname"] = "SetKeyboardFocusHere" +defs["igSetKeyboardFocusHere"][1]["location"] = "imgui:830" +defs["igSetKeyboardFocusHere"][1]["namespace"] = "ImGui" +defs["igSetKeyboardFocusHere"][1]["ov_cimguiname"] = "igSetKeyboardFocusHere" +defs["igSetKeyboardFocusHere"][1]["ret"] = "void" +defs["igSetKeyboardFocusHere"][1]["signature"] = "(int)" +defs["igSetKeyboardFocusHere"][1]["stname"] = "" +defs["igSetKeyboardFocusHere"]["(int)"] = defs["igSetKeyboardFocusHere"][1] +defs["igSetMouseCursor"] = {} +defs["igSetMouseCursor"][1] = {} +defs["igSetMouseCursor"][1]["args"] = "(ImGuiMouseCursor cursor_type)" +defs["igSetMouseCursor"][1]["argsT"] = {} +defs["igSetMouseCursor"][1]["argsT"][1] = {} +defs["igSetMouseCursor"][1]["argsT"][1]["name"] = "cursor_type" +defs["igSetMouseCursor"][1]["argsT"][1]["type"] = "ImGuiMouseCursor" +defs["igSetMouseCursor"][1]["argsoriginal"] = "(ImGuiMouseCursor cursor_type)" +defs["igSetMouseCursor"][1]["call_args"] = "(cursor_type)" +defs["igSetMouseCursor"][1]["cimguiname"] = "igSetMouseCursor" +defs["igSetMouseCursor"][1]["defaults"] = {} +defs["igSetMouseCursor"][1]["funcname"] = "SetMouseCursor" +defs["igSetMouseCursor"][1]["location"] = "imgui:915" +defs["igSetMouseCursor"][1]["namespace"] = "ImGui" +defs["igSetMouseCursor"][1]["ov_cimguiname"] = "igSetMouseCursor" +defs["igSetMouseCursor"][1]["ret"] = "void" +defs["igSetMouseCursor"][1]["signature"] = "(ImGuiMouseCursor)" +defs["igSetMouseCursor"][1]["stname"] = "" +defs["igSetMouseCursor"]["(ImGuiMouseCursor)"] = defs["igSetMouseCursor"][1] +defs["igSetNextFrameWantCaptureKeyboard"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["args"] = "(bool want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1]["name"] = "want_capture_keyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextFrameWantCaptureKeyboard"][1]["argsoriginal"] = "(bool want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["call_args"] = "(want_capture_keyboard)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["cimguiname"] = "igSetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["defaults"] = {} +defs["igSetNextFrameWantCaptureKeyboard"][1]["funcname"] = "SetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["location"] = "imgui:895" +defs["igSetNextFrameWantCaptureKeyboard"][1]["namespace"] = "ImGui" +defs["igSetNextFrameWantCaptureKeyboard"][1]["ov_cimguiname"] = "igSetNextFrameWantCaptureKeyboard" +defs["igSetNextFrameWantCaptureKeyboard"][1]["ret"] = "void" +defs["igSetNextFrameWantCaptureKeyboard"][1]["signature"] = "(bool)" +defs["igSetNextFrameWantCaptureKeyboard"][1]["stname"] = "" +defs["igSetNextFrameWantCaptureKeyboard"]["(bool)"] = defs["igSetNextFrameWantCaptureKeyboard"][1] +defs["igSetNextFrameWantCaptureMouse"] = {} +defs["igSetNextFrameWantCaptureMouse"][1] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["args"] = "(bool want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1]["name"] = "want_capture_mouse" +defs["igSetNextFrameWantCaptureMouse"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextFrameWantCaptureMouse"][1]["argsoriginal"] = "(bool want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["call_args"] = "(want_capture_mouse)" +defs["igSetNextFrameWantCaptureMouse"][1]["cimguiname"] = "igSetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["defaults"] = {} +defs["igSetNextFrameWantCaptureMouse"][1]["funcname"] = "SetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["location"] = "imgui:916" +defs["igSetNextFrameWantCaptureMouse"][1]["namespace"] = "ImGui" +defs["igSetNextFrameWantCaptureMouse"][1]["ov_cimguiname"] = "igSetNextFrameWantCaptureMouse" +defs["igSetNextFrameWantCaptureMouse"][1]["ret"] = "void" +defs["igSetNextFrameWantCaptureMouse"][1]["signature"] = "(bool)" +defs["igSetNextFrameWantCaptureMouse"][1]["stname"] = "" +defs["igSetNextFrameWantCaptureMouse"]["(bool)"] = defs["igSetNextFrameWantCaptureMouse"][1] +defs["igSetNextItemOpen"] = {} +defs["igSetNextItemOpen"][1] = {} +defs["igSetNextItemOpen"][1]["args"] = "(bool is_open,ImGuiCond cond)" +defs["igSetNextItemOpen"][1]["argsT"] = {} +defs["igSetNextItemOpen"][1]["argsT"][1] = {} +defs["igSetNextItemOpen"][1]["argsT"][1]["name"] = "is_open" +defs["igSetNextItemOpen"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextItemOpen"][1]["argsT"][2] = {} +defs["igSetNextItemOpen"][1]["argsT"][2]["name"] = "cond" +defs["igSetNextItemOpen"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetNextItemOpen"][1]["argsoriginal"] = "(bool is_open,ImGuiCond cond=0)" +defs["igSetNextItemOpen"][1]["call_args"] = "(is_open,cond)" +defs["igSetNextItemOpen"][1]["cimguiname"] = "igSetNextItemOpen" +defs["igSetNextItemOpen"][1]["defaults"] = {} +defs["igSetNextItemOpen"][1]["defaults"]["cond"] = "0" +defs["igSetNextItemOpen"][1]["funcname"] = "SetNextItemOpen" +defs["igSetNextItemOpen"][1]["location"] = "imgui:618" +defs["igSetNextItemOpen"][1]["namespace"] = "ImGui" +defs["igSetNextItemOpen"][1]["ov_cimguiname"] = "igSetNextItemOpen" +defs["igSetNextItemOpen"][1]["ret"] = "void" +defs["igSetNextItemOpen"][1]["signature"] = "(bool,ImGuiCond)" +defs["igSetNextItemOpen"][1]["stname"] = "" +defs["igSetNextItemOpen"]["(bool,ImGuiCond)"] = defs["igSetNextItemOpen"][1] +defs["igSetNextItemWidth"] = {} +defs["igSetNextItemWidth"][1] = {} +defs["igSetNextItemWidth"][1]["args"] = "(float item_width)" +defs["igSetNextItemWidth"][1]["argsT"] = {} +defs["igSetNextItemWidth"][1]["argsT"][1] = {} +defs["igSetNextItemWidth"][1]["argsT"][1]["name"] = "item_width" +defs["igSetNextItemWidth"][1]["argsT"][1]["type"] = "float" +defs["igSetNextItemWidth"][1]["argsoriginal"] = "(float item_width)" +defs["igSetNextItemWidth"][1]["call_args"] = "(item_width)" +defs["igSetNextItemWidth"][1]["cimguiname"] = "igSetNextItemWidth" +defs["igSetNextItemWidth"][1]["defaults"] = {} +defs["igSetNextItemWidth"][1]["funcname"] = "SetNextItemWidth" +defs["igSetNextItemWidth"][1]["location"] = "imgui:416" +defs["igSetNextItemWidth"][1]["namespace"] = "ImGui" +defs["igSetNextItemWidth"][1]["ov_cimguiname"] = "igSetNextItemWidth" +defs["igSetNextItemWidth"][1]["ret"] = "void" +defs["igSetNextItemWidth"][1]["signature"] = "(float)" +defs["igSetNextItemWidth"][1]["stname"] = "" +defs["igSetNextItemWidth"]["(float)"] = defs["igSetNextItemWidth"][1] +defs["igSetNextWindowBgAlpha"] = {} +defs["igSetNextWindowBgAlpha"][1] = {} +defs["igSetNextWindowBgAlpha"][1]["args"] = "(float alpha)" +defs["igSetNextWindowBgAlpha"][1]["argsT"] = {} +defs["igSetNextWindowBgAlpha"][1]["argsT"][1] = {} +defs["igSetNextWindowBgAlpha"][1]["argsT"][1]["name"] = "alpha" +defs["igSetNextWindowBgAlpha"][1]["argsT"][1]["type"] = "float" +defs["igSetNextWindowBgAlpha"][1]["argsoriginal"] = "(float alpha)" +defs["igSetNextWindowBgAlpha"][1]["call_args"] = "(alpha)" +defs["igSetNextWindowBgAlpha"][1]["cimguiname"] = "igSetNextWindowBgAlpha" +defs["igSetNextWindowBgAlpha"][1]["defaults"] = {} +defs["igSetNextWindowBgAlpha"][1]["funcname"] = "SetNextWindowBgAlpha" +defs["igSetNextWindowBgAlpha"][1]["location"] = "imgui:366" +defs["igSetNextWindowBgAlpha"][1]["namespace"] = "ImGui" +defs["igSetNextWindowBgAlpha"][1]["ov_cimguiname"] = "igSetNextWindowBgAlpha" +defs["igSetNextWindowBgAlpha"][1]["ret"] = "void" +defs["igSetNextWindowBgAlpha"][1]["signature"] = "(float)" +defs["igSetNextWindowBgAlpha"][1]["stname"] = "" +defs["igSetNextWindowBgAlpha"]["(float)"] = defs["igSetNextWindowBgAlpha"][1] +defs["igSetNextWindowCollapsed"] = {} +defs["igSetNextWindowCollapsed"][1] = {} +defs["igSetNextWindowCollapsed"][1]["args"] = "(bool collapsed,ImGuiCond cond)" +defs["igSetNextWindowCollapsed"][1]["argsT"] = {} +defs["igSetNextWindowCollapsed"][1]["argsT"][1] = {} +defs["igSetNextWindowCollapsed"][1]["argsT"][1]["name"] = "collapsed" +defs["igSetNextWindowCollapsed"][1]["argsT"][1]["type"] = "bool" +defs["igSetNextWindowCollapsed"][1]["argsT"][2] = {} +defs["igSetNextWindowCollapsed"][1]["argsT"][2]["name"] = "cond" +defs["igSetNextWindowCollapsed"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetNextWindowCollapsed"][1]["argsoriginal"] = "(bool collapsed,ImGuiCond cond=0)" +defs["igSetNextWindowCollapsed"][1]["call_args"] = "(collapsed,cond)" +defs["igSetNextWindowCollapsed"][1]["cimguiname"] = "igSetNextWindowCollapsed" +defs["igSetNextWindowCollapsed"][1]["defaults"] = {} +defs["igSetNextWindowCollapsed"][1]["defaults"]["cond"] = "0" +defs["igSetNextWindowCollapsed"][1]["funcname"] = "SetNextWindowCollapsed" +defs["igSetNextWindowCollapsed"][1]["location"] = "imgui:363" +defs["igSetNextWindowCollapsed"][1]["namespace"] = "ImGui" +defs["igSetNextWindowCollapsed"][1]["ov_cimguiname"] = "igSetNextWindowCollapsed" +defs["igSetNextWindowCollapsed"][1]["ret"] = "void" +defs["igSetNextWindowCollapsed"][1]["signature"] = "(bool,ImGuiCond)" +defs["igSetNextWindowCollapsed"][1]["stname"] = "" +defs["igSetNextWindowCollapsed"]["(bool,ImGuiCond)"] = defs["igSetNextWindowCollapsed"][1] +defs["igSetNextWindowContentSize"] = {} +defs["igSetNextWindowContentSize"][1] = {} +defs["igSetNextWindowContentSize"][1]["args"] = "(const ImVec2 size)" +defs["igSetNextWindowContentSize"][1]["argsT"] = {} +defs["igSetNextWindowContentSize"][1]["argsT"][1] = {} +defs["igSetNextWindowContentSize"][1]["argsT"][1]["name"] = "size" +defs["igSetNextWindowContentSize"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowContentSize"][1]["argsoriginal"] = "(const ImVec2& size)" +defs["igSetNextWindowContentSize"][1]["call_args"] = "(size)" +defs["igSetNextWindowContentSize"][1]["cimguiname"] = "igSetNextWindowContentSize" +defs["igSetNextWindowContentSize"][1]["defaults"] = {} +defs["igSetNextWindowContentSize"][1]["funcname"] = "SetNextWindowContentSize" +defs["igSetNextWindowContentSize"][1]["location"] = "imgui:362" +defs["igSetNextWindowContentSize"][1]["namespace"] = "ImGui" +defs["igSetNextWindowContentSize"][1]["ov_cimguiname"] = "igSetNextWindowContentSize" +defs["igSetNextWindowContentSize"][1]["ret"] = "void" +defs["igSetNextWindowContentSize"][1]["signature"] = "(const ImVec2)" +defs["igSetNextWindowContentSize"][1]["stname"] = "" +defs["igSetNextWindowContentSize"]["(const ImVec2)"] = defs["igSetNextWindowContentSize"][1] +defs["igSetNextWindowFocus"] = {} +defs["igSetNextWindowFocus"][1] = {} +defs["igSetNextWindowFocus"][1]["args"] = "()" +defs["igSetNextWindowFocus"][1]["argsT"] = {} +defs["igSetNextWindowFocus"][1]["argsoriginal"] = "()" +defs["igSetNextWindowFocus"][1]["call_args"] = "()" +defs["igSetNextWindowFocus"][1]["cimguiname"] = "igSetNextWindowFocus" +defs["igSetNextWindowFocus"][1]["defaults"] = {} +defs["igSetNextWindowFocus"][1]["funcname"] = "SetNextWindowFocus" +defs["igSetNextWindowFocus"][1]["location"] = "imgui:364" +defs["igSetNextWindowFocus"][1]["namespace"] = "ImGui" +defs["igSetNextWindowFocus"][1]["ov_cimguiname"] = "igSetNextWindowFocus" +defs["igSetNextWindowFocus"][1]["ret"] = "void" +defs["igSetNextWindowFocus"][1]["signature"] = "()" +defs["igSetNextWindowFocus"][1]["stname"] = "" +defs["igSetNextWindowFocus"]["()"] = defs["igSetNextWindowFocus"][1] +defs["igSetNextWindowPos"] = {} +defs["igSetNextWindowPos"][1] = {} +defs["igSetNextWindowPos"][1]["args"] = "(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot)" +defs["igSetNextWindowPos"][1]["argsT"] = {} +defs["igSetNextWindowPos"][1]["argsT"][1] = {} +defs["igSetNextWindowPos"][1]["argsT"][1]["name"] = "pos" +defs["igSetNextWindowPos"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowPos"][1]["argsT"][2] = {} +defs["igSetNextWindowPos"][1]["argsT"][2]["name"] = "cond" +defs["igSetNextWindowPos"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetNextWindowPos"][1]["argsT"][3] = {} +defs["igSetNextWindowPos"][1]["argsT"][3]["name"] = "pivot" +defs["igSetNextWindowPos"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igSetNextWindowPos"][1]["argsoriginal"] = "(const ImVec2& pos,ImGuiCond cond=0,const ImVec2& pivot=ImVec2(0,0))" +defs["igSetNextWindowPos"][1]["call_args"] = "(pos,cond,pivot)" +defs["igSetNextWindowPos"][1]["cimguiname"] = "igSetNextWindowPos" +defs["igSetNextWindowPos"][1]["defaults"] = {} +defs["igSetNextWindowPos"][1]["defaults"]["cond"] = "0" +defs["igSetNextWindowPos"][1]["defaults"]["pivot"] = "ImVec2(0,0)" +defs["igSetNextWindowPos"][1]["funcname"] = "SetNextWindowPos" +defs["igSetNextWindowPos"][1]["location"] = "imgui:359" +defs["igSetNextWindowPos"][1]["namespace"] = "ImGui" +defs["igSetNextWindowPos"][1]["ov_cimguiname"] = "igSetNextWindowPos" +defs["igSetNextWindowPos"][1]["ret"] = "void" +defs["igSetNextWindowPos"][1]["signature"] = "(const ImVec2,ImGuiCond,const ImVec2)" +defs["igSetNextWindowPos"][1]["stname"] = "" +defs["igSetNextWindowPos"]["(const ImVec2,ImGuiCond,const ImVec2)"] = defs["igSetNextWindowPos"][1] +defs["igSetNextWindowScroll"] = {} +defs["igSetNextWindowScroll"][1] = {} +defs["igSetNextWindowScroll"][1]["args"] = "(const ImVec2 scroll)" +defs["igSetNextWindowScroll"][1]["argsT"] = {} +defs["igSetNextWindowScroll"][1]["argsT"][1] = {} +defs["igSetNextWindowScroll"][1]["argsT"][1]["name"] = "scroll" +defs["igSetNextWindowScroll"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowScroll"][1]["argsoriginal"] = "(const ImVec2& scroll)" +defs["igSetNextWindowScroll"][1]["call_args"] = "(scroll)" +defs["igSetNextWindowScroll"][1]["cimguiname"] = "igSetNextWindowScroll" +defs["igSetNextWindowScroll"][1]["defaults"] = {} +defs["igSetNextWindowScroll"][1]["funcname"] = "SetNextWindowScroll" +defs["igSetNextWindowScroll"][1]["location"] = "imgui:365" +defs["igSetNextWindowScroll"][1]["namespace"] = "ImGui" +defs["igSetNextWindowScroll"][1]["ov_cimguiname"] = "igSetNextWindowScroll" +defs["igSetNextWindowScroll"][1]["ret"] = "void" +defs["igSetNextWindowScroll"][1]["signature"] = "(const ImVec2)" +defs["igSetNextWindowScroll"][1]["stname"] = "" +defs["igSetNextWindowScroll"]["(const ImVec2)"] = defs["igSetNextWindowScroll"][1] +defs["igSetNextWindowSize"] = {} +defs["igSetNextWindowSize"][1] = {} +defs["igSetNextWindowSize"][1]["args"] = "(const ImVec2 size,ImGuiCond cond)" +defs["igSetNextWindowSize"][1]["argsT"] = {} +defs["igSetNextWindowSize"][1]["argsT"][1] = {} +defs["igSetNextWindowSize"][1]["argsT"][1]["name"] = "size" +defs["igSetNextWindowSize"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowSize"][1]["argsT"][2] = {} +defs["igSetNextWindowSize"][1]["argsT"][2]["name"] = "cond" +defs["igSetNextWindowSize"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetNextWindowSize"][1]["argsoriginal"] = "(const ImVec2& size,ImGuiCond cond=0)" +defs["igSetNextWindowSize"][1]["call_args"] = "(size,cond)" +defs["igSetNextWindowSize"][1]["cimguiname"] = "igSetNextWindowSize" +defs["igSetNextWindowSize"][1]["defaults"] = {} +defs["igSetNextWindowSize"][1]["defaults"]["cond"] = "0" +defs["igSetNextWindowSize"][1]["funcname"] = "SetNextWindowSize" +defs["igSetNextWindowSize"][1]["location"] = "imgui:360" +defs["igSetNextWindowSize"][1]["namespace"] = "ImGui" +defs["igSetNextWindowSize"][1]["ov_cimguiname"] = "igSetNextWindowSize" +defs["igSetNextWindowSize"][1]["ret"] = "void" +defs["igSetNextWindowSize"][1]["signature"] = "(const ImVec2,ImGuiCond)" +defs["igSetNextWindowSize"][1]["stname"] = "" +defs["igSetNextWindowSize"]["(const ImVec2,ImGuiCond)"] = defs["igSetNextWindowSize"][1] +defs["igSetNextWindowSizeConstraints"] = {} +defs["igSetNextWindowSizeConstraints"][1] = {} +defs["igSetNextWindowSizeConstraints"][1]["args"] = "(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data)" +defs["igSetNextWindowSizeConstraints"][1]["argsT"] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][1] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][1]["name"] = "size_min" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][2] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][2]["name"] = "size_max" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][3] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][3]["name"] = "custom_callback" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][3]["type"] = "ImGuiSizeCallback" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][4] = {} +defs["igSetNextWindowSizeConstraints"][1]["argsT"][4]["name"] = "custom_callback_data" +defs["igSetNextWindowSizeConstraints"][1]["argsT"][4]["type"] = "void*" +defs["igSetNextWindowSizeConstraints"][1]["argsoriginal"] = "(const ImVec2& size_min,const ImVec2& size_max,ImGuiSizeCallback custom_callback=((void*)0),void* custom_callback_data=((void*)0))" +defs["igSetNextWindowSizeConstraints"][1]["call_args"] = "(size_min,size_max,custom_callback,custom_callback_data)" +defs["igSetNextWindowSizeConstraints"][1]["cimguiname"] = "igSetNextWindowSizeConstraints" +defs["igSetNextWindowSizeConstraints"][1]["defaults"] = {} +defs["igSetNextWindowSizeConstraints"][1]["defaults"]["custom_callback"] = "NULL" +defs["igSetNextWindowSizeConstraints"][1]["defaults"]["custom_callback_data"] = "NULL" +defs["igSetNextWindowSizeConstraints"][1]["funcname"] = "SetNextWindowSizeConstraints" +defs["igSetNextWindowSizeConstraints"][1]["location"] = "imgui:361" +defs["igSetNextWindowSizeConstraints"][1]["namespace"] = "ImGui" +defs["igSetNextWindowSizeConstraints"][1]["ov_cimguiname"] = "igSetNextWindowSizeConstraints" +defs["igSetNextWindowSizeConstraints"][1]["ret"] = "void" +defs["igSetNextWindowSizeConstraints"][1]["signature"] = "(const ImVec2,const ImVec2,ImGuiSizeCallback,void*)" +defs["igSetNextWindowSizeConstraints"][1]["stname"] = "" +defs["igSetNextWindowSizeConstraints"]["(const ImVec2,const ImVec2,ImGuiSizeCallback,void*)"] = defs["igSetNextWindowSizeConstraints"][1] +defs["igSetScrollFromPosX"] = {} +defs["igSetScrollFromPosX"][1] = {} +defs["igSetScrollFromPosX"][1]["args"] = "(float local_x,float center_x_ratio)" +defs["igSetScrollFromPosX"][1]["argsT"] = {} +defs["igSetScrollFromPosX"][1]["argsT"][1] = {} +defs["igSetScrollFromPosX"][1]["argsT"][1]["name"] = "local_x" +defs["igSetScrollFromPosX"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollFromPosX"][1]["argsT"][2] = {} +defs["igSetScrollFromPosX"][1]["argsT"][2]["name"] = "center_x_ratio" +defs["igSetScrollFromPosX"][1]["argsT"][2]["type"] = "float" +defs["igSetScrollFromPosX"][1]["argsoriginal"] = "(float local_x,float center_x_ratio=0.5f)" +defs["igSetScrollFromPosX"][1]["call_args"] = "(local_x,center_x_ratio)" +defs["igSetScrollFromPosX"][1]["cimguiname"] = "igSetScrollFromPosX" +defs["igSetScrollFromPosX"][1]["defaults"] = {} +defs["igSetScrollFromPosX"][1]["defaults"]["center_x_ratio"] = "0.5f" +defs["igSetScrollFromPosX"][1]["funcname"] = "SetScrollFromPosX" +defs["igSetScrollFromPosX"][1]["location"] = "imgui:396" +defs["igSetScrollFromPosX"][1]["namespace"] = "ImGui" +defs["igSetScrollFromPosX"][1]["ov_cimguiname"] = "igSetScrollFromPosX" +defs["igSetScrollFromPosX"][1]["ret"] = "void" +defs["igSetScrollFromPosX"][1]["signature"] = "(float,float)" +defs["igSetScrollFromPosX"][1]["stname"] = "" +defs["igSetScrollFromPosX"]["(float,float)"] = defs["igSetScrollFromPosX"][1] +defs["igSetScrollFromPosY"] = {} +defs["igSetScrollFromPosY"][1] = {} +defs["igSetScrollFromPosY"][1]["args"] = "(float local_y,float center_y_ratio)" +defs["igSetScrollFromPosY"][1]["argsT"] = {} +defs["igSetScrollFromPosY"][1]["argsT"][1] = {} +defs["igSetScrollFromPosY"][1]["argsT"][1]["name"] = "local_y" +defs["igSetScrollFromPosY"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollFromPosY"][1]["argsT"][2] = {} +defs["igSetScrollFromPosY"][1]["argsT"][2]["name"] = "center_y_ratio" +defs["igSetScrollFromPosY"][1]["argsT"][2]["type"] = "float" +defs["igSetScrollFromPosY"][1]["argsoriginal"] = "(float local_y,float center_y_ratio=0.5f)" +defs["igSetScrollFromPosY"][1]["call_args"] = "(local_y,center_y_ratio)" +defs["igSetScrollFromPosY"][1]["cimguiname"] = "igSetScrollFromPosY" +defs["igSetScrollFromPosY"][1]["defaults"] = {} +defs["igSetScrollFromPosY"][1]["defaults"]["center_y_ratio"] = "0.5f" +defs["igSetScrollFromPosY"][1]["funcname"] = "SetScrollFromPosY" +defs["igSetScrollFromPosY"][1]["location"] = "imgui:397" +defs["igSetScrollFromPosY"][1]["namespace"] = "ImGui" +defs["igSetScrollFromPosY"][1]["ov_cimguiname"] = "igSetScrollFromPosY" +defs["igSetScrollFromPosY"][1]["ret"] = "void" +defs["igSetScrollFromPosY"][1]["signature"] = "(float,float)" +defs["igSetScrollFromPosY"][1]["stname"] = "" +defs["igSetScrollFromPosY"]["(float,float)"] = defs["igSetScrollFromPosY"][1] +defs["igSetScrollHereX"] = {} +defs["igSetScrollHereX"][1] = {} +defs["igSetScrollHereX"][1]["args"] = "(float center_x_ratio)" +defs["igSetScrollHereX"][1]["argsT"] = {} +defs["igSetScrollHereX"][1]["argsT"][1] = {} +defs["igSetScrollHereX"][1]["argsT"][1]["name"] = "center_x_ratio" +defs["igSetScrollHereX"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollHereX"][1]["argsoriginal"] = "(float center_x_ratio=0.5f)" +defs["igSetScrollHereX"][1]["call_args"] = "(center_x_ratio)" +defs["igSetScrollHereX"][1]["cimguiname"] = "igSetScrollHereX" +defs["igSetScrollHereX"][1]["defaults"] = {} +defs["igSetScrollHereX"][1]["defaults"]["center_x_ratio"] = "0.5f" +defs["igSetScrollHereX"][1]["funcname"] = "SetScrollHereX" +defs["igSetScrollHereX"][1]["location"] = "imgui:394" +defs["igSetScrollHereX"][1]["namespace"] = "ImGui" +defs["igSetScrollHereX"][1]["ov_cimguiname"] = "igSetScrollHereX" +defs["igSetScrollHereX"][1]["ret"] = "void" +defs["igSetScrollHereX"][1]["signature"] = "(float)" +defs["igSetScrollHereX"][1]["stname"] = "" +defs["igSetScrollHereX"]["(float)"] = defs["igSetScrollHereX"][1] +defs["igSetScrollHereY"] = {} +defs["igSetScrollHereY"][1] = {} +defs["igSetScrollHereY"][1]["args"] = "(float center_y_ratio)" +defs["igSetScrollHereY"][1]["argsT"] = {} +defs["igSetScrollHereY"][1]["argsT"][1] = {} +defs["igSetScrollHereY"][1]["argsT"][1]["name"] = "center_y_ratio" +defs["igSetScrollHereY"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollHereY"][1]["argsoriginal"] = "(float center_y_ratio=0.5f)" +defs["igSetScrollHereY"][1]["call_args"] = "(center_y_ratio)" +defs["igSetScrollHereY"][1]["cimguiname"] = "igSetScrollHereY" +defs["igSetScrollHereY"][1]["defaults"] = {} +defs["igSetScrollHereY"][1]["defaults"]["center_y_ratio"] = "0.5f" +defs["igSetScrollHereY"][1]["funcname"] = "SetScrollHereY" +defs["igSetScrollHereY"][1]["location"] = "imgui:395" +defs["igSetScrollHereY"][1]["namespace"] = "ImGui" +defs["igSetScrollHereY"][1]["ov_cimguiname"] = "igSetScrollHereY" +defs["igSetScrollHereY"][1]["ret"] = "void" +defs["igSetScrollHereY"][1]["signature"] = "(float)" +defs["igSetScrollHereY"][1]["stname"] = "" +defs["igSetScrollHereY"]["(float)"] = defs["igSetScrollHereY"][1] +defs["igSetScrollX"] = {} +defs["igSetScrollX"][1] = {} +defs["igSetScrollX"][1]["args"] = "(float scroll_x)" +defs["igSetScrollX"][1]["argsT"] = {} +defs["igSetScrollX"][1]["argsT"][1] = {} +defs["igSetScrollX"][1]["argsT"][1]["name"] = "scroll_x" +defs["igSetScrollX"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollX"][1]["argsoriginal"] = "(float scroll_x)" +defs["igSetScrollX"][1]["call_args"] = "(scroll_x)" +defs["igSetScrollX"][1]["cimguiname"] = "igSetScrollX" +defs["igSetScrollX"][1]["defaults"] = {} +defs["igSetScrollX"][1]["funcname"] = "SetScrollX" +defs["igSetScrollX"][1]["location"] = "imgui:390" +defs["igSetScrollX"][1]["namespace"] = "ImGui" +defs["igSetScrollX"][1]["ov_cimguiname"] = "igSetScrollX" +defs["igSetScrollX"][1]["ret"] = "void" +defs["igSetScrollX"][1]["signature"] = "(float)" +defs["igSetScrollX"][1]["stname"] = "" +defs["igSetScrollX"]["(float)"] = defs["igSetScrollX"][1] +defs["igSetScrollY"] = {} +defs["igSetScrollY"][1] = {} +defs["igSetScrollY"][1]["args"] = "(float scroll_y)" +defs["igSetScrollY"][1]["argsT"] = {} +defs["igSetScrollY"][1]["argsT"][1] = {} +defs["igSetScrollY"][1]["argsT"][1]["name"] = "scroll_y" +defs["igSetScrollY"][1]["argsT"][1]["type"] = "float" +defs["igSetScrollY"][1]["argsoriginal"] = "(float scroll_y)" +defs["igSetScrollY"][1]["call_args"] = "(scroll_y)" +defs["igSetScrollY"][1]["cimguiname"] = "igSetScrollY" +defs["igSetScrollY"][1]["defaults"] = {} +defs["igSetScrollY"][1]["funcname"] = "SetScrollY" +defs["igSetScrollY"][1]["location"] = "imgui:391" +defs["igSetScrollY"][1]["namespace"] = "ImGui" +defs["igSetScrollY"][1]["ov_cimguiname"] = "igSetScrollY" +defs["igSetScrollY"][1]["ret"] = "void" +defs["igSetScrollY"][1]["signature"] = "(float)" +defs["igSetScrollY"][1]["stname"] = "" +defs["igSetScrollY"]["(float)"] = defs["igSetScrollY"][1] +defs["igSetStateStorage"] = {} +defs["igSetStateStorage"][1] = {} +defs["igSetStateStorage"][1]["args"] = "(ImGuiStorage* storage)" +defs["igSetStateStorage"][1]["argsT"] = {} +defs["igSetStateStorage"][1]["argsT"][1] = {} +defs["igSetStateStorage"][1]["argsT"][1]["name"] = "storage" +defs["igSetStateStorage"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["igSetStateStorage"][1]["argsoriginal"] = "(ImGuiStorage* storage)" +defs["igSetStateStorage"][1]["call_args"] = "(storage)" +defs["igSetStateStorage"][1]["cimguiname"] = "igSetStateStorage" +defs["igSetStateStorage"][1]["defaults"] = {} +defs["igSetStateStorage"][1]["funcname"] = "SetStateStorage" +defs["igSetStateStorage"][1]["location"] = "imgui:870" +defs["igSetStateStorage"][1]["namespace"] = "ImGui" +defs["igSetStateStorage"][1]["ov_cimguiname"] = "igSetStateStorage" +defs["igSetStateStorage"][1]["ret"] = "void" +defs["igSetStateStorage"][1]["signature"] = "(ImGuiStorage*)" +defs["igSetStateStorage"][1]["stname"] = "" +defs["igSetStateStorage"]["(ImGuiStorage*)"] = defs["igSetStateStorage"][1] +defs["igSetTabItemClosed"] = {} +defs["igSetTabItemClosed"][1] = {} +defs["igSetTabItemClosed"][1]["args"] = "(const char* tab_or_docked_window_label)" +defs["igSetTabItemClosed"][1]["argsT"] = {} +defs["igSetTabItemClosed"][1]["argsT"][1] = {} +defs["igSetTabItemClosed"][1]["argsT"][1]["name"] = "tab_or_docked_window_label" +defs["igSetTabItemClosed"][1]["argsT"][1]["type"] = "const char*" +defs["igSetTabItemClosed"][1]["argsoriginal"] = "(const char* tab_or_docked_window_label)" +defs["igSetTabItemClosed"][1]["call_args"] = "(tab_or_docked_window_label)" +defs["igSetTabItemClosed"][1]["cimguiname"] = "igSetTabItemClosed" +defs["igSetTabItemClosed"][1]["defaults"] = {} +defs["igSetTabItemClosed"][1]["funcname"] = "SetTabItemClosed" +defs["igSetTabItemClosed"][1]["location"] = "imgui:790" +defs["igSetTabItemClosed"][1]["namespace"] = "ImGui" +defs["igSetTabItemClosed"][1]["ov_cimguiname"] = "igSetTabItemClosed" +defs["igSetTabItemClosed"][1]["ret"] = "void" +defs["igSetTabItemClosed"][1]["signature"] = "(const char*)" +defs["igSetTabItemClosed"][1]["stname"] = "" +defs["igSetTabItemClosed"]["(const char*)"] = defs["igSetTabItemClosed"][1] +defs["igSetTooltip"] = {} +defs["igSetTooltip"][1] = {} +defs["igSetTooltip"][1]["args"] = "(const char* fmt,...)" +defs["igSetTooltip"][1]["argsT"] = {} +defs["igSetTooltip"][1]["argsT"][1] = {} +defs["igSetTooltip"][1]["argsT"][1]["name"] = "fmt" +defs["igSetTooltip"][1]["argsT"][1]["type"] = "const char*" +defs["igSetTooltip"][1]["argsT"][2] = {} +defs["igSetTooltip"][1]["argsT"][2]["name"] = "..." +defs["igSetTooltip"][1]["argsT"][2]["type"] = "..." +defs["igSetTooltip"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igSetTooltip"][1]["call_args"] = "(fmt,...)" +defs["igSetTooltip"][1]["cimguiname"] = "igSetTooltip" +defs["igSetTooltip"][1]["defaults"] = {} +defs["igSetTooltip"][1]["funcname"] = "SetTooltip" +defs["igSetTooltip"][1]["isvararg"] = "...)" +defs["igSetTooltip"][1]["location"] = "imgui:669" +defs["igSetTooltip"][1]["namespace"] = "ImGui" +defs["igSetTooltip"][1]["ov_cimguiname"] = "igSetTooltip" +defs["igSetTooltip"][1]["ret"] = "void" +defs["igSetTooltip"][1]["signature"] = "(const char*,...)" +defs["igSetTooltip"][1]["stname"] = "" +defs["igSetTooltip"]["(const char*,...)"] = defs["igSetTooltip"][1] +defs["igSetTooltipV"] = {} +defs["igSetTooltipV"][1] = {} +defs["igSetTooltipV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igSetTooltipV"][1]["argsT"] = {} +defs["igSetTooltipV"][1]["argsT"][1] = {} +defs["igSetTooltipV"][1]["argsT"][1]["name"] = "fmt" +defs["igSetTooltipV"][1]["argsT"][1]["type"] = "const char*" +defs["igSetTooltipV"][1]["argsT"][2] = {} +defs["igSetTooltipV"][1]["argsT"][2]["name"] = "args" +defs["igSetTooltipV"][1]["argsT"][2]["type"] = "va_list" +defs["igSetTooltipV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igSetTooltipV"][1]["call_args"] = "(fmt,args)" +defs["igSetTooltipV"][1]["cimguiname"] = "igSetTooltipV" +defs["igSetTooltipV"][1]["defaults"] = {} +defs["igSetTooltipV"][1]["funcname"] = "SetTooltipV" +defs["igSetTooltipV"][1]["location"] = "imgui:670" +defs["igSetTooltipV"][1]["namespace"] = "ImGui" +defs["igSetTooltipV"][1]["ov_cimguiname"] = "igSetTooltipV" +defs["igSetTooltipV"][1]["ret"] = "void" +defs["igSetTooltipV"][1]["signature"] = "(const char*,va_list)" +defs["igSetTooltipV"][1]["stname"] = "" +defs["igSetTooltipV"]["(const char*,va_list)"] = defs["igSetTooltipV"][1] +defs["igSetWindowCollapsed"] = {} +defs["igSetWindowCollapsed"][1] = {} +defs["igSetWindowCollapsed"][1]["args"] = "(bool collapsed,ImGuiCond cond)" +defs["igSetWindowCollapsed"][1]["argsT"] = {} +defs["igSetWindowCollapsed"][1]["argsT"][1] = {} +defs["igSetWindowCollapsed"][1]["argsT"][1]["name"] = "collapsed" +defs["igSetWindowCollapsed"][1]["argsT"][1]["type"] = "bool" +defs["igSetWindowCollapsed"][1]["argsT"][2] = {} +defs["igSetWindowCollapsed"][1]["argsT"][2]["name"] = "cond" +defs["igSetWindowCollapsed"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetWindowCollapsed"][1]["argsoriginal"] = "(bool collapsed,ImGuiCond cond=0)" +defs["igSetWindowCollapsed"][1]["call_args"] = "(collapsed,cond)" +defs["igSetWindowCollapsed"][1]["cimguiname"] = "igSetWindowCollapsed" +defs["igSetWindowCollapsed"][1]["defaults"] = {} +defs["igSetWindowCollapsed"][1]["defaults"]["cond"] = "0" +defs["igSetWindowCollapsed"][1]["funcname"] = "SetWindowCollapsed" +defs["igSetWindowCollapsed"][1]["location"] = "imgui:369" +defs["igSetWindowCollapsed"][1]["namespace"] = "ImGui" +defs["igSetWindowCollapsed"][1]["ov_cimguiname"] = "igSetWindowCollapsed_Bool" +defs["igSetWindowCollapsed"][1]["ret"] = "void" +defs["igSetWindowCollapsed"][1]["signature"] = "(bool,ImGuiCond)" +defs["igSetWindowCollapsed"][1]["stname"] = "" +defs["igSetWindowCollapsed"][2] = {} +defs["igSetWindowCollapsed"][2]["args"] = "(const char* name,bool collapsed,ImGuiCond cond)" +defs["igSetWindowCollapsed"][2]["argsT"] = {} +defs["igSetWindowCollapsed"][2]["argsT"][1] = {} +defs["igSetWindowCollapsed"][2]["argsT"][1]["name"] = "name" +defs["igSetWindowCollapsed"][2]["argsT"][1]["type"] = "const char*" +defs["igSetWindowCollapsed"][2]["argsT"][2] = {} +defs["igSetWindowCollapsed"][2]["argsT"][2]["name"] = "collapsed" +defs["igSetWindowCollapsed"][2]["argsT"][2]["type"] = "bool" +defs["igSetWindowCollapsed"][2]["argsT"][3] = {} +defs["igSetWindowCollapsed"][2]["argsT"][3]["name"] = "cond" +defs["igSetWindowCollapsed"][2]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowCollapsed"][2]["argsoriginal"] = "(const char* name,bool collapsed,ImGuiCond cond=0)" +defs["igSetWindowCollapsed"][2]["call_args"] = "(name,collapsed,cond)" +defs["igSetWindowCollapsed"][2]["cimguiname"] = "igSetWindowCollapsed" +defs["igSetWindowCollapsed"][2]["defaults"] = {} +defs["igSetWindowCollapsed"][2]["defaults"]["cond"] = "0" +defs["igSetWindowCollapsed"][2]["funcname"] = "SetWindowCollapsed" +defs["igSetWindowCollapsed"][2]["location"] = "imgui:374" +defs["igSetWindowCollapsed"][2]["namespace"] = "ImGui" +defs["igSetWindowCollapsed"][2]["ov_cimguiname"] = "igSetWindowCollapsed_Str" +defs["igSetWindowCollapsed"][2]["ret"] = "void" +defs["igSetWindowCollapsed"][2]["signature"] = "(const char*,bool,ImGuiCond)" +defs["igSetWindowCollapsed"][2]["stname"] = "" +defs["igSetWindowCollapsed"]["(bool,ImGuiCond)"] = defs["igSetWindowCollapsed"][1] +defs["igSetWindowCollapsed"]["(const char*,bool,ImGuiCond)"] = defs["igSetWindowCollapsed"][2] +defs["igSetWindowFocus"] = {} +defs["igSetWindowFocus"][1] = {} +defs["igSetWindowFocus"][1]["args"] = "()" +defs["igSetWindowFocus"][1]["argsT"] = {} +defs["igSetWindowFocus"][1]["argsoriginal"] = "()" +defs["igSetWindowFocus"][1]["call_args"] = "()" +defs["igSetWindowFocus"][1]["cimguiname"] = "igSetWindowFocus" +defs["igSetWindowFocus"][1]["defaults"] = {} +defs["igSetWindowFocus"][1]["funcname"] = "SetWindowFocus" +defs["igSetWindowFocus"][1]["location"] = "imgui:370" +defs["igSetWindowFocus"][1]["namespace"] = "ImGui" +defs["igSetWindowFocus"][1]["ov_cimguiname"] = "igSetWindowFocus_Nil" +defs["igSetWindowFocus"][1]["ret"] = "void" +defs["igSetWindowFocus"][1]["signature"] = "()" +defs["igSetWindowFocus"][1]["stname"] = "" +defs["igSetWindowFocus"][2] = {} +defs["igSetWindowFocus"][2]["args"] = "(const char* name)" +defs["igSetWindowFocus"][2]["argsT"] = {} +defs["igSetWindowFocus"][2]["argsT"][1] = {} +defs["igSetWindowFocus"][2]["argsT"][1]["name"] = "name" +defs["igSetWindowFocus"][2]["argsT"][1]["type"] = "const char*" +defs["igSetWindowFocus"][2]["argsoriginal"] = "(const char* name)" +defs["igSetWindowFocus"][2]["call_args"] = "(name)" +defs["igSetWindowFocus"][2]["cimguiname"] = "igSetWindowFocus" +defs["igSetWindowFocus"][2]["defaults"] = {} +defs["igSetWindowFocus"][2]["funcname"] = "SetWindowFocus" +defs["igSetWindowFocus"][2]["location"] = "imgui:375" +defs["igSetWindowFocus"][2]["namespace"] = "ImGui" +defs["igSetWindowFocus"][2]["ov_cimguiname"] = "igSetWindowFocus_Str" +defs["igSetWindowFocus"][2]["ret"] = "void" +defs["igSetWindowFocus"][2]["signature"] = "(const char*)" +defs["igSetWindowFocus"][2]["stname"] = "" +defs["igSetWindowFocus"]["()"] = defs["igSetWindowFocus"][1] +defs["igSetWindowFocus"]["(const char*)"] = defs["igSetWindowFocus"][2] +defs["igSetWindowFontScale"] = {} +defs["igSetWindowFontScale"][1] = {} +defs["igSetWindowFontScale"][1]["args"] = "(float scale)" +defs["igSetWindowFontScale"][1]["argsT"] = {} +defs["igSetWindowFontScale"][1]["argsT"][1] = {} +defs["igSetWindowFontScale"][1]["argsT"][1]["name"] = "scale" +defs["igSetWindowFontScale"][1]["argsT"][1]["type"] = "float" +defs["igSetWindowFontScale"][1]["argsoriginal"] = "(float scale)" +defs["igSetWindowFontScale"][1]["call_args"] = "(scale)" +defs["igSetWindowFontScale"][1]["cimguiname"] = "igSetWindowFontScale" +defs["igSetWindowFontScale"][1]["defaults"] = {} +defs["igSetWindowFontScale"][1]["funcname"] = "SetWindowFontScale" +defs["igSetWindowFontScale"][1]["location"] = "imgui:371" +defs["igSetWindowFontScale"][1]["namespace"] = "ImGui" +defs["igSetWindowFontScale"][1]["ov_cimguiname"] = "igSetWindowFontScale" +defs["igSetWindowFontScale"][1]["ret"] = "void" +defs["igSetWindowFontScale"][1]["signature"] = "(float)" +defs["igSetWindowFontScale"][1]["stname"] = "" +defs["igSetWindowFontScale"]["(float)"] = defs["igSetWindowFontScale"][1] +defs["igSetWindowPos"] = {} +defs["igSetWindowPos"][1] = {} +defs["igSetWindowPos"][1]["args"] = "(const ImVec2 pos,ImGuiCond cond)" +defs["igSetWindowPos"][1]["argsT"] = {} +defs["igSetWindowPos"][1]["argsT"][1] = {} +defs["igSetWindowPos"][1]["argsT"][1]["name"] = "pos" +defs["igSetWindowPos"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetWindowPos"][1]["argsT"][2] = {} +defs["igSetWindowPos"][1]["argsT"][2]["name"] = "cond" +defs["igSetWindowPos"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetWindowPos"][1]["argsoriginal"] = "(const ImVec2& pos,ImGuiCond cond=0)" +defs["igSetWindowPos"][1]["call_args"] = "(pos,cond)" +defs["igSetWindowPos"][1]["cimguiname"] = "igSetWindowPos" +defs["igSetWindowPos"][1]["defaults"] = {} +defs["igSetWindowPos"][1]["defaults"]["cond"] = "0" +defs["igSetWindowPos"][1]["funcname"] = "SetWindowPos" +defs["igSetWindowPos"][1]["location"] = "imgui:367" +defs["igSetWindowPos"][1]["namespace"] = "ImGui" +defs["igSetWindowPos"][1]["ov_cimguiname"] = "igSetWindowPos_Vec2" +defs["igSetWindowPos"][1]["ret"] = "void" +defs["igSetWindowPos"][1]["signature"] = "(const ImVec2,ImGuiCond)" +defs["igSetWindowPos"][1]["stname"] = "" +defs["igSetWindowPos"][2] = {} +defs["igSetWindowPos"][2]["args"] = "(const char* name,const ImVec2 pos,ImGuiCond cond)" +defs["igSetWindowPos"][2]["argsT"] = {} +defs["igSetWindowPos"][2]["argsT"][1] = {} +defs["igSetWindowPos"][2]["argsT"][1]["name"] = "name" +defs["igSetWindowPos"][2]["argsT"][1]["type"] = "const char*" +defs["igSetWindowPos"][2]["argsT"][2] = {} +defs["igSetWindowPos"][2]["argsT"][2]["name"] = "pos" +defs["igSetWindowPos"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igSetWindowPos"][2]["argsT"][3] = {} +defs["igSetWindowPos"][2]["argsT"][3]["name"] = "cond" +defs["igSetWindowPos"][2]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowPos"][2]["argsoriginal"] = "(const char* name,const ImVec2& pos,ImGuiCond cond=0)" +defs["igSetWindowPos"][2]["call_args"] = "(name,pos,cond)" +defs["igSetWindowPos"][2]["cimguiname"] = "igSetWindowPos" +defs["igSetWindowPos"][2]["defaults"] = {} +defs["igSetWindowPos"][2]["defaults"]["cond"] = "0" +defs["igSetWindowPos"][2]["funcname"] = "SetWindowPos" +defs["igSetWindowPos"][2]["location"] = "imgui:372" +defs["igSetWindowPos"][2]["namespace"] = "ImGui" +defs["igSetWindowPos"][2]["ov_cimguiname"] = "igSetWindowPos_Str" +defs["igSetWindowPos"][2]["ret"] = "void" +defs["igSetWindowPos"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" +defs["igSetWindowPos"][2]["stname"] = "" +defs["igSetWindowPos"]["(const ImVec2,ImGuiCond)"] = defs["igSetWindowPos"][1] +defs["igSetWindowPos"]["(const char*,const ImVec2,ImGuiCond)"] = defs["igSetWindowPos"][2] +defs["igSetWindowSize"] = {} +defs["igSetWindowSize"][1] = {} +defs["igSetWindowSize"][1]["args"] = "(const ImVec2 size,ImGuiCond cond)" +defs["igSetWindowSize"][1]["argsT"] = {} +defs["igSetWindowSize"][1]["argsT"][1] = {} +defs["igSetWindowSize"][1]["argsT"][1]["name"] = "size" +defs["igSetWindowSize"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igSetWindowSize"][1]["argsT"][2] = {} +defs["igSetWindowSize"][1]["argsT"][2]["name"] = "cond" +defs["igSetWindowSize"][1]["argsT"][2]["type"] = "ImGuiCond" +defs["igSetWindowSize"][1]["argsoriginal"] = "(const ImVec2& size,ImGuiCond cond=0)" +defs["igSetWindowSize"][1]["call_args"] = "(size,cond)" +defs["igSetWindowSize"][1]["cimguiname"] = "igSetWindowSize" +defs["igSetWindowSize"][1]["defaults"] = {} +defs["igSetWindowSize"][1]["defaults"]["cond"] = "0" +defs["igSetWindowSize"][1]["funcname"] = "SetWindowSize" +defs["igSetWindowSize"][1]["location"] = "imgui:368" +defs["igSetWindowSize"][1]["namespace"] = "ImGui" +defs["igSetWindowSize"][1]["ov_cimguiname"] = "igSetWindowSize_Vec2" +defs["igSetWindowSize"][1]["ret"] = "void" +defs["igSetWindowSize"][1]["signature"] = "(const ImVec2,ImGuiCond)" +defs["igSetWindowSize"][1]["stname"] = "" +defs["igSetWindowSize"][2] = {} +defs["igSetWindowSize"][2]["args"] = "(const char* name,const ImVec2 size,ImGuiCond cond)" +defs["igSetWindowSize"][2]["argsT"] = {} +defs["igSetWindowSize"][2]["argsT"][1] = {} +defs["igSetWindowSize"][2]["argsT"][1]["name"] = "name" +defs["igSetWindowSize"][2]["argsT"][1]["type"] = "const char*" +defs["igSetWindowSize"][2]["argsT"][2] = {} +defs["igSetWindowSize"][2]["argsT"][2]["name"] = "size" +defs["igSetWindowSize"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igSetWindowSize"][2]["argsT"][3] = {} +defs["igSetWindowSize"][2]["argsT"][3]["name"] = "cond" +defs["igSetWindowSize"][2]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowSize"][2]["argsoriginal"] = "(const char* name,const ImVec2& size,ImGuiCond cond=0)" +defs["igSetWindowSize"][2]["call_args"] = "(name,size,cond)" +defs["igSetWindowSize"][2]["cimguiname"] = "igSetWindowSize" +defs["igSetWindowSize"][2]["defaults"] = {} +defs["igSetWindowSize"][2]["defaults"]["cond"] = "0" +defs["igSetWindowSize"][2]["funcname"] = "SetWindowSize" +defs["igSetWindowSize"][2]["location"] = "imgui:373" +defs["igSetWindowSize"][2]["namespace"] = "ImGui" +defs["igSetWindowSize"][2]["ov_cimguiname"] = "igSetWindowSize_Str" +defs["igSetWindowSize"][2]["ret"] = "void" +defs["igSetWindowSize"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" +defs["igSetWindowSize"][2]["stname"] = "" +defs["igSetWindowSize"]["(const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][1] +defs["igSetWindowSize"]["(const char*,const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][2] +defs["igShowAboutWindow"] = {} +defs["igShowAboutWindow"][1] = {} +defs["igShowAboutWindow"][1]["args"] = "(bool* p_open)" +defs["igShowAboutWindow"][1]["argsT"] = {} +defs["igShowAboutWindow"][1]["argsT"][1] = {} +defs["igShowAboutWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowAboutWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowAboutWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowAboutWindow"][1]["call_args"] = "(p_open)" +defs["igShowAboutWindow"][1]["cimguiname"] = "igShowAboutWindow" +defs["igShowAboutWindow"][1]["defaults"] = {} +defs["igShowAboutWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowAboutWindow"][1]["funcname"] = "ShowAboutWindow" +defs["igShowAboutWindow"][1]["location"] = "imgui:306" +defs["igShowAboutWindow"][1]["namespace"] = "ImGui" +defs["igShowAboutWindow"][1]["ov_cimguiname"] = "igShowAboutWindow" +defs["igShowAboutWindow"][1]["ret"] = "void" +defs["igShowAboutWindow"][1]["signature"] = "(bool*)" +defs["igShowAboutWindow"][1]["stname"] = "" +defs["igShowAboutWindow"]["(bool*)"] = defs["igShowAboutWindow"][1] +defs["igShowDebugLogWindow"] = {} +defs["igShowDebugLogWindow"][1] = {} +defs["igShowDebugLogWindow"][1]["args"] = "(bool* p_open)" +defs["igShowDebugLogWindow"][1]["argsT"] = {} +defs["igShowDebugLogWindow"][1]["argsT"][1] = {} +defs["igShowDebugLogWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowDebugLogWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowDebugLogWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowDebugLogWindow"][1]["call_args"] = "(p_open)" +defs["igShowDebugLogWindow"][1]["cimguiname"] = "igShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["defaults"] = {} +defs["igShowDebugLogWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowDebugLogWindow"][1]["funcname"] = "ShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["location"] = "imgui:304" +defs["igShowDebugLogWindow"][1]["namespace"] = "ImGui" +defs["igShowDebugLogWindow"][1]["ov_cimguiname"] = "igShowDebugLogWindow" +defs["igShowDebugLogWindow"][1]["ret"] = "void" +defs["igShowDebugLogWindow"][1]["signature"] = "(bool*)" +defs["igShowDebugLogWindow"][1]["stname"] = "" +defs["igShowDebugLogWindow"]["(bool*)"] = defs["igShowDebugLogWindow"][1] +defs["igShowDemoWindow"] = {} +defs["igShowDemoWindow"][1] = {} +defs["igShowDemoWindow"][1]["args"] = "(bool* p_open)" +defs["igShowDemoWindow"][1]["argsT"] = {} +defs["igShowDemoWindow"][1]["argsT"][1] = {} +defs["igShowDemoWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowDemoWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowDemoWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowDemoWindow"][1]["call_args"] = "(p_open)" +defs["igShowDemoWindow"][1]["cimguiname"] = "igShowDemoWindow" +defs["igShowDemoWindow"][1]["defaults"] = {} +defs["igShowDemoWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowDemoWindow"][1]["funcname"] = "ShowDemoWindow" +defs["igShowDemoWindow"][1]["location"] = "imgui:302" +defs["igShowDemoWindow"][1]["namespace"] = "ImGui" +defs["igShowDemoWindow"][1]["ov_cimguiname"] = "igShowDemoWindow" +defs["igShowDemoWindow"][1]["ret"] = "void" +defs["igShowDemoWindow"][1]["signature"] = "(bool*)" +defs["igShowDemoWindow"][1]["stname"] = "" +defs["igShowDemoWindow"]["(bool*)"] = defs["igShowDemoWindow"][1] +defs["igShowFontSelector"] = {} +defs["igShowFontSelector"][1] = {} +defs["igShowFontSelector"][1]["args"] = "(const char* label)" +defs["igShowFontSelector"][1]["argsT"] = {} +defs["igShowFontSelector"][1]["argsT"][1] = {} +defs["igShowFontSelector"][1]["argsT"][1]["name"] = "label" +defs["igShowFontSelector"][1]["argsT"][1]["type"] = "const char*" +defs["igShowFontSelector"][1]["argsoriginal"] = "(const char* label)" +defs["igShowFontSelector"][1]["call_args"] = "(label)" +defs["igShowFontSelector"][1]["cimguiname"] = "igShowFontSelector" +defs["igShowFontSelector"][1]["defaults"] = {} +defs["igShowFontSelector"][1]["funcname"] = "ShowFontSelector" +defs["igShowFontSelector"][1]["location"] = "imgui:309" +defs["igShowFontSelector"][1]["namespace"] = "ImGui" +defs["igShowFontSelector"][1]["ov_cimguiname"] = "igShowFontSelector" +defs["igShowFontSelector"][1]["ret"] = "void" +defs["igShowFontSelector"][1]["signature"] = "(const char*)" +defs["igShowFontSelector"][1]["stname"] = "" +defs["igShowFontSelector"]["(const char*)"] = defs["igShowFontSelector"][1] +defs["igShowMetricsWindow"] = {} +defs["igShowMetricsWindow"][1] = {} +defs["igShowMetricsWindow"][1]["args"] = "(bool* p_open)" +defs["igShowMetricsWindow"][1]["argsT"] = {} +defs["igShowMetricsWindow"][1]["argsT"][1] = {} +defs["igShowMetricsWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowMetricsWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowMetricsWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowMetricsWindow"][1]["call_args"] = "(p_open)" +defs["igShowMetricsWindow"][1]["cimguiname"] = "igShowMetricsWindow" +defs["igShowMetricsWindow"][1]["defaults"] = {} +defs["igShowMetricsWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowMetricsWindow"][1]["funcname"] = "ShowMetricsWindow" +defs["igShowMetricsWindow"][1]["location"] = "imgui:303" +defs["igShowMetricsWindow"][1]["namespace"] = "ImGui" +defs["igShowMetricsWindow"][1]["ov_cimguiname"] = "igShowMetricsWindow" +defs["igShowMetricsWindow"][1]["ret"] = "void" +defs["igShowMetricsWindow"][1]["signature"] = "(bool*)" +defs["igShowMetricsWindow"][1]["stname"] = "" +defs["igShowMetricsWindow"]["(bool*)"] = defs["igShowMetricsWindow"][1] +defs["igShowStackToolWindow"] = {} +defs["igShowStackToolWindow"][1] = {} +defs["igShowStackToolWindow"][1]["args"] = "(bool* p_open)" +defs["igShowStackToolWindow"][1]["argsT"] = {} +defs["igShowStackToolWindow"][1]["argsT"][1] = {} +defs["igShowStackToolWindow"][1]["argsT"][1]["name"] = "p_open" +defs["igShowStackToolWindow"][1]["argsT"][1]["type"] = "bool*" +defs["igShowStackToolWindow"][1]["argsoriginal"] = "(bool* p_open=((void*)0))" +defs["igShowStackToolWindow"][1]["call_args"] = "(p_open)" +defs["igShowStackToolWindow"][1]["cimguiname"] = "igShowStackToolWindow" +defs["igShowStackToolWindow"][1]["defaults"] = {} +defs["igShowStackToolWindow"][1]["defaults"]["p_open"] = "NULL" +defs["igShowStackToolWindow"][1]["funcname"] = "ShowStackToolWindow" +defs["igShowStackToolWindow"][1]["location"] = "imgui:305" +defs["igShowStackToolWindow"][1]["namespace"] = "ImGui" +defs["igShowStackToolWindow"][1]["ov_cimguiname"] = "igShowStackToolWindow" +defs["igShowStackToolWindow"][1]["ret"] = "void" +defs["igShowStackToolWindow"][1]["signature"] = "(bool*)" +defs["igShowStackToolWindow"][1]["stname"] = "" +defs["igShowStackToolWindow"]["(bool*)"] = defs["igShowStackToolWindow"][1] +defs["igShowStyleEditor"] = {} +defs["igShowStyleEditor"][1] = {} +defs["igShowStyleEditor"][1]["args"] = "(ImGuiStyle* ref)" +defs["igShowStyleEditor"][1]["argsT"] = {} +defs["igShowStyleEditor"][1]["argsT"][1] = {} +defs["igShowStyleEditor"][1]["argsT"][1]["name"] = "ref" +defs["igShowStyleEditor"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["igShowStyleEditor"][1]["argsoriginal"] = "(ImGuiStyle* ref=((void*)0))" +defs["igShowStyleEditor"][1]["call_args"] = "(ref)" +defs["igShowStyleEditor"][1]["cimguiname"] = "igShowStyleEditor" +defs["igShowStyleEditor"][1]["defaults"] = {} +defs["igShowStyleEditor"][1]["defaults"]["ref"] = "NULL" +defs["igShowStyleEditor"][1]["funcname"] = "ShowStyleEditor" +defs["igShowStyleEditor"][1]["location"] = "imgui:307" +defs["igShowStyleEditor"][1]["namespace"] = "ImGui" +defs["igShowStyleEditor"][1]["ov_cimguiname"] = "igShowStyleEditor" +defs["igShowStyleEditor"][1]["ret"] = "void" +defs["igShowStyleEditor"][1]["signature"] = "(ImGuiStyle*)" +defs["igShowStyleEditor"][1]["stname"] = "" +defs["igShowStyleEditor"]["(ImGuiStyle*)"] = defs["igShowStyleEditor"][1] +defs["igShowStyleSelector"] = {} +defs["igShowStyleSelector"][1] = {} +defs["igShowStyleSelector"][1]["args"] = "(const char* label)" +defs["igShowStyleSelector"][1]["argsT"] = {} +defs["igShowStyleSelector"][1]["argsT"][1] = {} +defs["igShowStyleSelector"][1]["argsT"][1]["name"] = "label" +defs["igShowStyleSelector"][1]["argsT"][1]["type"] = "const char*" +defs["igShowStyleSelector"][1]["argsoriginal"] = "(const char* label)" +defs["igShowStyleSelector"][1]["call_args"] = "(label)" +defs["igShowStyleSelector"][1]["cimguiname"] = "igShowStyleSelector" +defs["igShowStyleSelector"][1]["defaults"] = {} +defs["igShowStyleSelector"][1]["funcname"] = "ShowStyleSelector" +defs["igShowStyleSelector"][1]["location"] = "imgui:308" +defs["igShowStyleSelector"][1]["namespace"] = "ImGui" +defs["igShowStyleSelector"][1]["ov_cimguiname"] = "igShowStyleSelector" +defs["igShowStyleSelector"][1]["ret"] = "bool" +defs["igShowStyleSelector"][1]["signature"] = "(const char*)" +defs["igShowStyleSelector"][1]["stname"] = "" +defs["igShowStyleSelector"]["(const char*)"] = defs["igShowStyleSelector"][1] +defs["igShowUserGuide"] = {} +defs["igShowUserGuide"][1] = {} +defs["igShowUserGuide"][1]["args"] = "()" +defs["igShowUserGuide"][1]["argsT"] = {} +defs["igShowUserGuide"][1]["argsoriginal"] = "()" +defs["igShowUserGuide"][1]["call_args"] = "()" +defs["igShowUserGuide"][1]["cimguiname"] = "igShowUserGuide" +defs["igShowUserGuide"][1]["defaults"] = {} +defs["igShowUserGuide"][1]["funcname"] = "ShowUserGuide" +defs["igShowUserGuide"][1]["location"] = "imgui:310" +defs["igShowUserGuide"][1]["namespace"] = "ImGui" +defs["igShowUserGuide"][1]["ov_cimguiname"] = "igShowUserGuide" +defs["igShowUserGuide"][1]["ret"] = "void" +defs["igShowUserGuide"][1]["signature"] = "()" +defs["igShowUserGuide"][1]["stname"] = "" +defs["igShowUserGuide"]["()"] = defs["igShowUserGuide"][1] +defs["igSliderAngle"] = {} +defs["igSliderAngle"][1] = {} +defs["igSliderAngle"][1]["args"] = "(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderAngle"][1]["argsT"] = {} +defs["igSliderAngle"][1]["argsT"][1] = {} +defs["igSliderAngle"][1]["argsT"][1]["name"] = "label" +defs["igSliderAngle"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderAngle"][1]["argsT"][2] = {} +defs["igSliderAngle"][1]["argsT"][2]["name"] = "v_rad" +defs["igSliderAngle"][1]["argsT"][2]["type"] = "float*" +defs["igSliderAngle"][1]["argsT"][3] = {} +defs["igSliderAngle"][1]["argsT"][3]["name"] = "v_degrees_min" +defs["igSliderAngle"][1]["argsT"][3]["type"] = "float" +defs["igSliderAngle"][1]["argsT"][4] = {} +defs["igSliderAngle"][1]["argsT"][4]["name"] = "v_degrees_max" +defs["igSliderAngle"][1]["argsT"][4]["type"] = "float" +defs["igSliderAngle"][1]["argsT"][5] = {} +defs["igSliderAngle"][1]["argsT"][5]["name"] = "format" +defs["igSliderAngle"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderAngle"][1]["argsT"][6] = {} +defs["igSliderAngle"][1]["argsT"][6]["name"] = "flags" +defs["igSliderAngle"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderAngle"][1]["argsoriginal"] = "(const char* label,float* v_rad,float v_degrees_min=-360.0f,float v_degrees_max=+360.0f,const char* format=\"%.0f deg\",ImGuiSliderFlags flags=0)" +defs["igSliderAngle"][1]["call_args"] = "(label,v_rad,v_degrees_min,v_degrees_max,format,flags)" +defs["igSliderAngle"][1]["cimguiname"] = "igSliderAngle" +defs["igSliderAngle"][1]["defaults"] = {} +defs["igSliderAngle"][1]["defaults"]["flags"] = "0" +defs["igSliderAngle"][1]["defaults"]["format"] = "\"%.0f deg\"" +defs["igSliderAngle"][1]["defaults"]["v_degrees_max"] = "+360.0f" +defs["igSliderAngle"][1]["defaults"]["v_degrees_min"] = "-360.0f" +defs["igSliderAngle"][1]["funcname"] = "SliderAngle" +defs["igSliderAngle"][1]["location"] = "imgui:561" +defs["igSliderAngle"][1]["namespace"] = "ImGui" +defs["igSliderAngle"][1]["ov_cimguiname"] = "igSliderAngle" +defs["igSliderAngle"][1]["ret"] = "bool" +defs["igSliderAngle"][1]["signature"] = "(const char*,float*,float,float,const char*,ImGuiSliderFlags)" +defs["igSliderAngle"][1]["stname"] = "" +defs["igSliderAngle"]["(const char*,float*,float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderAngle"][1] +defs["igSliderFloat"] = {} +defs["igSliderFloat"][1] = {} +defs["igSliderFloat"][1]["args"] = "(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderFloat"][1]["argsT"] = {} +defs["igSliderFloat"][1]["argsT"][1] = {} +defs["igSliderFloat"][1]["argsT"][1]["name"] = "label" +defs["igSliderFloat"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderFloat"][1]["argsT"][2] = {} +defs["igSliderFloat"][1]["argsT"][2]["name"] = "v" +defs["igSliderFloat"][1]["argsT"][2]["type"] = "float*" +defs["igSliderFloat"][1]["argsT"][3] = {} +defs["igSliderFloat"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderFloat"][1]["argsT"][3]["type"] = "float" +defs["igSliderFloat"][1]["argsT"][4] = {} +defs["igSliderFloat"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderFloat"][1]["argsT"][4]["type"] = "float" +defs["igSliderFloat"][1]["argsT"][5] = {} +defs["igSliderFloat"][1]["argsT"][5]["name"] = "format" +defs["igSliderFloat"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderFloat"][1]["argsT"][6] = {} +defs["igSliderFloat"][1]["argsT"][6]["name"] = "flags" +defs["igSliderFloat"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderFloat"][1]["argsoriginal"] = "(const char* label,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igSliderFloat"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderFloat"][1]["cimguiname"] = "igSliderFloat" +defs["igSliderFloat"][1]["defaults"] = {} +defs["igSliderFloat"][1]["defaults"]["flags"] = "0" +defs["igSliderFloat"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igSliderFloat"][1]["funcname"] = "SliderFloat" +defs["igSliderFloat"][1]["location"] = "imgui:557" +defs["igSliderFloat"][1]["namespace"] = "ImGui" +defs["igSliderFloat"][1]["ov_cimguiname"] = "igSliderFloat" +defs["igSliderFloat"][1]["ret"] = "bool" +defs["igSliderFloat"][1]["signature"] = "(const char*,float*,float,float,const char*,ImGuiSliderFlags)" +defs["igSliderFloat"][1]["stname"] = "" +defs["igSliderFloat"]["(const char*,float*,float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderFloat"][1] +defs["igSliderFloat2"] = {} +defs["igSliderFloat2"][1] = {} +defs["igSliderFloat2"][1]["args"] = "(const char* label,float v[2],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderFloat2"][1]["argsT"] = {} +defs["igSliderFloat2"][1]["argsT"][1] = {} +defs["igSliderFloat2"][1]["argsT"][1]["name"] = "label" +defs["igSliderFloat2"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderFloat2"][1]["argsT"][2] = {} +defs["igSliderFloat2"][1]["argsT"][2]["name"] = "v" +defs["igSliderFloat2"][1]["argsT"][2]["type"] = "float[2]" +defs["igSliderFloat2"][1]["argsT"][3] = {} +defs["igSliderFloat2"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderFloat2"][1]["argsT"][3]["type"] = "float" +defs["igSliderFloat2"][1]["argsT"][4] = {} +defs["igSliderFloat2"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderFloat2"][1]["argsT"][4]["type"] = "float" +defs["igSliderFloat2"][1]["argsT"][5] = {} +defs["igSliderFloat2"][1]["argsT"][5]["name"] = "format" +defs["igSliderFloat2"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderFloat2"][1]["argsT"][6] = {} +defs["igSliderFloat2"][1]["argsT"][6]["name"] = "flags" +defs["igSliderFloat2"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderFloat2"][1]["argsoriginal"] = "(const char* label,float v[2],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igSliderFloat2"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderFloat2"][1]["cimguiname"] = "igSliderFloat2" +defs["igSliderFloat2"][1]["defaults"] = {} +defs["igSliderFloat2"][1]["defaults"]["flags"] = "0" +defs["igSliderFloat2"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igSliderFloat2"][1]["funcname"] = "SliderFloat2" +defs["igSliderFloat2"][1]["location"] = "imgui:558" +defs["igSliderFloat2"][1]["namespace"] = "ImGui" +defs["igSliderFloat2"][1]["ov_cimguiname"] = "igSliderFloat2" +defs["igSliderFloat2"][1]["ret"] = "bool" +defs["igSliderFloat2"][1]["signature"] = "(const char*,float[2],float,float,const char*,ImGuiSliderFlags)" +defs["igSliderFloat2"][1]["stname"] = "" +defs["igSliderFloat2"]["(const char*,float[2],float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderFloat2"][1] +defs["igSliderFloat3"] = {} +defs["igSliderFloat3"][1] = {} +defs["igSliderFloat3"][1]["args"] = "(const char* label,float v[3],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderFloat3"][1]["argsT"] = {} +defs["igSliderFloat3"][1]["argsT"][1] = {} +defs["igSliderFloat3"][1]["argsT"][1]["name"] = "label" +defs["igSliderFloat3"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderFloat3"][1]["argsT"][2] = {} +defs["igSliderFloat3"][1]["argsT"][2]["name"] = "v" +defs["igSliderFloat3"][1]["argsT"][2]["type"] = "float[3]" +defs["igSliderFloat3"][1]["argsT"][3] = {} +defs["igSliderFloat3"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderFloat3"][1]["argsT"][3]["type"] = "float" +defs["igSliderFloat3"][1]["argsT"][4] = {} +defs["igSliderFloat3"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderFloat3"][1]["argsT"][4]["type"] = "float" +defs["igSliderFloat3"][1]["argsT"][5] = {} +defs["igSliderFloat3"][1]["argsT"][5]["name"] = "format" +defs["igSliderFloat3"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderFloat3"][1]["argsT"][6] = {} +defs["igSliderFloat3"][1]["argsT"][6]["name"] = "flags" +defs["igSliderFloat3"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderFloat3"][1]["argsoriginal"] = "(const char* label,float v[3],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igSliderFloat3"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderFloat3"][1]["cimguiname"] = "igSliderFloat3" +defs["igSliderFloat3"][1]["defaults"] = {} +defs["igSliderFloat3"][1]["defaults"]["flags"] = "0" +defs["igSliderFloat3"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igSliderFloat3"][1]["funcname"] = "SliderFloat3" +defs["igSliderFloat3"][1]["location"] = "imgui:559" +defs["igSliderFloat3"][1]["namespace"] = "ImGui" +defs["igSliderFloat3"][1]["ov_cimguiname"] = "igSliderFloat3" +defs["igSliderFloat3"][1]["ret"] = "bool" +defs["igSliderFloat3"][1]["signature"] = "(const char*,float[3],float,float,const char*,ImGuiSliderFlags)" +defs["igSliderFloat3"][1]["stname"] = "" +defs["igSliderFloat3"]["(const char*,float[3],float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderFloat3"][1] +defs["igSliderFloat4"] = {} +defs["igSliderFloat4"][1] = {} +defs["igSliderFloat4"][1]["args"] = "(const char* label,float v[4],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderFloat4"][1]["argsT"] = {} +defs["igSliderFloat4"][1]["argsT"][1] = {} +defs["igSliderFloat4"][1]["argsT"][1]["name"] = "label" +defs["igSliderFloat4"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderFloat4"][1]["argsT"][2] = {} +defs["igSliderFloat4"][1]["argsT"][2]["name"] = "v" +defs["igSliderFloat4"][1]["argsT"][2]["type"] = "float[4]" +defs["igSliderFloat4"][1]["argsT"][3] = {} +defs["igSliderFloat4"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderFloat4"][1]["argsT"][3]["type"] = "float" +defs["igSliderFloat4"][1]["argsT"][4] = {} +defs["igSliderFloat4"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderFloat4"][1]["argsT"][4]["type"] = "float" +defs["igSliderFloat4"][1]["argsT"][5] = {} +defs["igSliderFloat4"][1]["argsT"][5]["name"] = "format" +defs["igSliderFloat4"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderFloat4"][1]["argsT"][6] = {} +defs["igSliderFloat4"][1]["argsT"][6]["name"] = "flags" +defs["igSliderFloat4"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderFloat4"][1]["argsoriginal"] = "(const char* label,float v[4],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igSliderFloat4"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderFloat4"][1]["cimguiname"] = "igSliderFloat4" +defs["igSliderFloat4"][1]["defaults"] = {} +defs["igSliderFloat4"][1]["defaults"]["flags"] = "0" +defs["igSliderFloat4"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igSliderFloat4"][1]["funcname"] = "SliderFloat4" +defs["igSliderFloat4"][1]["location"] = "imgui:560" +defs["igSliderFloat4"][1]["namespace"] = "ImGui" +defs["igSliderFloat4"][1]["ov_cimguiname"] = "igSliderFloat4" +defs["igSliderFloat4"][1]["ret"] = "bool" +defs["igSliderFloat4"][1]["signature"] = "(const char*,float[4],float,float,const char*,ImGuiSliderFlags)" +defs["igSliderFloat4"][1]["stname"] = "" +defs["igSliderFloat4"]["(const char*,float[4],float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderFloat4"][1] +defs["igSliderInt"] = {} +defs["igSliderInt"][1] = {} +defs["igSliderInt"][1]["args"] = "(const char* label,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderInt"][1]["argsT"] = {} +defs["igSliderInt"][1]["argsT"][1] = {} +defs["igSliderInt"][1]["argsT"][1]["name"] = "label" +defs["igSliderInt"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderInt"][1]["argsT"][2] = {} +defs["igSliderInt"][1]["argsT"][2]["name"] = "v" +defs["igSliderInt"][1]["argsT"][2]["type"] = "int*" +defs["igSliderInt"][1]["argsT"][3] = {} +defs["igSliderInt"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderInt"][1]["argsT"][3]["type"] = "int" +defs["igSliderInt"][1]["argsT"][4] = {} +defs["igSliderInt"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderInt"][1]["argsT"][4]["type"] = "int" +defs["igSliderInt"][1]["argsT"][5] = {} +defs["igSliderInt"][1]["argsT"][5]["name"] = "format" +defs["igSliderInt"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderInt"][1]["argsT"][6] = {} +defs["igSliderInt"][1]["argsT"][6]["name"] = "flags" +defs["igSliderInt"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderInt"][1]["argsoriginal"] = "(const char* label,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igSliderInt"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderInt"][1]["cimguiname"] = "igSliderInt" +defs["igSliderInt"][1]["defaults"] = {} +defs["igSliderInt"][1]["defaults"]["flags"] = "0" +defs["igSliderInt"][1]["defaults"]["format"] = "\"%d\"" +defs["igSliderInt"][1]["funcname"] = "SliderInt" +defs["igSliderInt"][1]["location"] = "imgui:562" +defs["igSliderInt"][1]["namespace"] = "ImGui" +defs["igSliderInt"][1]["ov_cimguiname"] = "igSliderInt" +defs["igSliderInt"][1]["ret"] = "bool" +defs["igSliderInt"][1]["signature"] = "(const char*,int*,int,int,const char*,ImGuiSliderFlags)" +defs["igSliderInt"][1]["stname"] = "" +defs["igSliderInt"]["(const char*,int*,int,int,const char*,ImGuiSliderFlags)"] = defs["igSliderInt"][1] +defs["igSliderInt2"] = {} +defs["igSliderInt2"][1] = {} +defs["igSliderInt2"][1]["args"] = "(const char* label,int v[2],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderInt2"][1]["argsT"] = {} +defs["igSliderInt2"][1]["argsT"][1] = {} +defs["igSliderInt2"][1]["argsT"][1]["name"] = "label" +defs["igSliderInt2"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderInt2"][1]["argsT"][2] = {} +defs["igSliderInt2"][1]["argsT"][2]["name"] = "v" +defs["igSliderInt2"][1]["argsT"][2]["type"] = "int[2]" +defs["igSliderInt2"][1]["argsT"][3] = {} +defs["igSliderInt2"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderInt2"][1]["argsT"][3]["type"] = "int" +defs["igSliderInt2"][1]["argsT"][4] = {} +defs["igSliderInt2"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderInt2"][1]["argsT"][4]["type"] = "int" +defs["igSliderInt2"][1]["argsT"][5] = {} +defs["igSliderInt2"][1]["argsT"][5]["name"] = "format" +defs["igSliderInt2"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderInt2"][1]["argsT"][6] = {} +defs["igSliderInt2"][1]["argsT"][6]["name"] = "flags" +defs["igSliderInt2"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderInt2"][1]["argsoriginal"] = "(const char* label,int v[2],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igSliderInt2"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderInt2"][1]["cimguiname"] = "igSliderInt2" +defs["igSliderInt2"][1]["defaults"] = {} +defs["igSliderInt2"][1]["defaults"]["flags"] = "0" +defs["igSliderInt2"][1]["defaults"]["format"] = "\"%d\"" +defs["igSliderInt2"][1]["funcname"] = "SliderInt2" +defs["igSliderInt2"][1]["location"] = "imgui:563" +defs["igSliderInt2"][1]["namespace"] = "ImGui" +defs["igSliderInt2"][1]["ov_cimguiname"] = "igSliderInt2" +defs["igSliderInt2"][1]["ret"] = "bool" +defs["igSliderInt2"][1]["signature"] = "(const char*,int[2],int,int,const char*,ImGuiSliderFlags)" +defs["igSliderInt2"][1]["stname"] = "" +defs["igSliderInt2"]["(const char*,int[2],int,int,const char*,ImGuiSliderFlags)"] = defs["igSliderInt2"][1] +defs["igSliderInt3"] = {} +defs["igSliderInt3"][1] = {} +defs["igSliderInt3"][1]["args"] = "(const char* label,int v[3],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderInt3"][1]["argsT"] = {} +defs["igSliderInt3"][1]["argsT"][1] = {} +defs["igSliderInt3"][1]["argsT"][1]["name"] = "label" +defs["igSliderInt3"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderInt3"][1]["argsT"][2] = {} +defs["igSliderInt3"][1]["argsT"][2]["name"] = "v" +defs["igSliderInt3"][1]["argsT"][2]["type"] = "int[3]" +defs["igSliderInt3"][1]["argsT"][3] = {} +defs["igSliderInt3"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderInt3"][1]["argsT"][3]["type"] = "int" +defs["igSliderInt3"][1]["argsT"][4] = {} +defs["igSliderInt3"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderInt3"][1]["argsT"][4]["type"] = "int" +defs["igSliderInt3"][1]["argsT"][5] = {} +defs["igSliderInt3"][1]["argsT"][5]["name"] = "format" +defs["igSliderInt3"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderInt3"][1]["argsT"][6] = {} +defs["igSliderInt3"][1]["argsT"][6]["name"] = "flags" +defs["igSliderInt3"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderInt3"][1]["argsoriginal"] = "(const char* label,int v[3],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igSliderInt3"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderInt3"][1]["cimguiname"] = "igSliderInt3" +defs["igSliderInt3"][1]["defaults"] = {} +defs["igSliderInt3"][1]["defaults"]["flags"] = "0" +defs["igSliderInt3"][1]["defaults"]["format"] = "\"%d\"" +defs["igSliderInt3"][1]["funcname"] = "SliderInt3" +defs["igSliderInt3"][1]["location"] = "imgui:564" +defs["igSliderInt3"][1]["namespace"] = "ImGui" +defs["igSliderInt3"][1]["ov_cimguiname"] = "igSliderInt3" +defs["igSliderInt3"][1]["ret"] = "bool" +defs["igSliderInt3"][1]["signature"] = "(const char*,int[3],int,int,const char*,ImGuiSliderFlags)" +defs["igSliderInt3"][1]["stname"] = "" +defs["igSliderInt3"]["(const char*,int[3],int,int,const char*,ImGuiSliderFlags)"] = defs["igSliderInt3"][1] +defs["igSliderInt4"] = {} +defs["igSliderInt4"][1] = {} +defs["igSliderInt4"][1]["args"] = "(const char* label,int v[4],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderInt4"][1]["argsT"] = {} +defs["igSliderInt4"][1]["argsT"][1] = {} +defs["igSliderInt4"][1]["argsT"][1]["name"] = "label" +defs["igSliderInt4"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderInt4"][1]["argsT"][2] = {} +defs["igSliderInt4"][1]["argsT"][2]["name"] = "v" +defs["igSliderInt4"][1]["argsT"][2]["type"] = "int[4]" +defs["igSliderInt4"][1]["argsT"][3] = {} +defs["igSliderInt4"][1]["argsT"][3]["name"] = "v_min" +defs["igSliderInt4"][1]["argsT"][3]["type"] = "int" +defs["igSliderInt4"][1]["argsT"][4] = {} +defs["igSliderInt4"][1]["argsT"][4]["name"] = "v_max" +defs["igSliderInt4"][1]["argsT"][4]["type"] = "int" +defs["igSliderInt4"][1]["argsT"][5] = {} +defs["igSliderInt4"][1]["argsT"][5]["name"] = "format" +defs["igSliderInt4"][1]["argsT"][5]["type"] = "const char*" +defs["igSliderInt4"][1]["argsT"][6] = {} +defs["igSliderInt4"][1]["argsT"][6]["name"] = "flags" +defs["igSliderInt4"][1]["argsT"][6]["type"] = "ImGuiSliderFlags" +defs["igSliderInt4"][1]["argsoriginal"] = "(const char* label,int v[4],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igSliderInt4"][1]["call_args"] = "(label,v,v_min,v_max,format,flags)" +defs["igSliderInt4"][1]["cimguiname"] = "igSliderInt4" +defs["igSliderInt4"][1]["defaults"] = {} +defs["igSliderInt4"][1]["defaults"]["flags"] = "0" +defs["igSliderInt4"][1]["defaults"]["format"] = "\"%d\"" +defs["igSliderInt4"][1]["funcname"] = "SliderInt4" +defs["igSliderInt4"][1]["location"] = "imgui:565" +defs["igSliderInt4"][1]["namespace"] = "ImGui" +defs["igSliderInt4"][1]["ov_cimguiname"] = "igSliderInt4" +defs["igSliderInt4"][1]["ret"] = "bool" +defs["igSliderInt4"][1]["signature"] = "(const char*,int[4],int,int,const char*,ImGuiSliderFlags)" +defs["igSliderInt4"][1]["stname"] = "" +defs["igSliderInt4"]["(const char*,int[4],int,int,const char*,ImGuiSliderFlags)"] = defs["igSliderInt4"][1] +defs["igSliderScalar"] = {} +defs["igSliderScalar"][1] = {} +defs["igSliderScalar"][1]["args"] = "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderScalar"][1]["argsT"] = {} +defs["igSliderScalar"][1]["argsT"][1] = {} +defs["igSliderScalar"][1]["argsT"][1]["name"] = "label" +defs["igSliderScalar"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderScalar"][1]["argsT"][2] = {} +defs["igSliderScalar"][1]["argsT"][2]["name"] = "data_type" +defs["igSliderScalar"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igSliderScalar"][1]["argsT"][3] = {} +defs["igSliderScalar"][1]["argsT"][3]["name"] = "p_data" +defs["igSliderScalar"][1]["argsT"][3]["type"] = "void*" +defs["igSliderScalar"][1]["argsT"][4] = {} +defs["igSliderScalar"][1]["argsT"][4]["name"] = "p_min" +defs["igSliderScalar"][1]["argsT"][4]["type"] = "const void*" +defs["igSliderScalar"][1]["argsT"][5] = {} +defs["igSliderScalar"][1]["argsT"][5]["name"] = "p_max" +defs["igSliderScalar"][1]["argsT"][5]["type"] = "const void*" +defs["igSliderScalar"][1]["argsT"][6] = {} +defs["igSliderScalar"][1]["argsT"][6]["name"] = "format" +defs["igSliderScalar"][1]["argsT"][6]["type"] = "const char*" +defs["igSliderScalar"][1]["argsT"][7] = {} +defs["igSliderScalar"][1]["argsT"][7]["name"] = "flags" +defs["igSliderScalar"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igSliderScalar"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igSliderScalar"][1]["call_args"] = "(label,data_type,p_data,p_min,p_max,format,flags)" +defs["igSliderScalar"][1]["cimguiname"] = "igSliderScalar" +defs["igSliderScalar"][1]["defaults"] = {} +defs["igSliderScalar"][1]["defaults"]["flags"] = "0" +defs["igSliderScalar"][1]["defaults"]["format"] = "NULL" +defs["igSliderScalar"][1]["funcname"] = "SliderScalar" +defs["igSliderScalar"][1]["location"] = "imgui:566" +defs["igSliderScalar"][1]["namespace"] = "ImGui" +defs["igSliderScalar"][1]["ov_cimguiname"] = "igSliderScalar" +defs["igSliderScalar"][1]["ret"] = "bool" +defs["igSliderScalar"][1]["signature"] = "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igSliderScalar"][1]["stname"] = "" +defs["igSliderScalar"]["(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igSliderScalar"][1] +defs["igSliderScalarN"] = {} +defs["igSliderScalarN"][1] = {} +defs["igSliderScalarN"][1]["args"] = "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)" +defs["igSliderScalarN"][1]["argsT"] = {} +defs["igSliderScalarN"][1]["argsT"][1] = {} +defs["igSliderScalarN"][1]["argsT"][1]["name"] = "label" +defs["igSliderScalarN"][1]["argsT"][1]["type"] = "const char*" +defs["igSliderScalarN"][1]["argsT"][2] = {} +defs["igSliderScalarN"][1]["argsT"][2]["name"] = "data_type" +defs["igSliderScalarN"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igSliderScalarN"][1]["argsT"][3] = {} +defs["igSliderScalarN"][1]["argsT"][3]["name"] = "p_data" +defs["igSliderScalarN"][1]["argsT"][3]["type"] = "void*" +defs["igSliderScalarN"][1]["argsT"][4] = {} +defs["igSliderScalarN"][1]["argsT"][4]["name"] = "components" +defs["igSliderScalarN"][1]["argsT"][4]["type"] = "int" +defs["igSliderScalarN"][1]["argsT"][5] = {} +defs["igSliderScalarN"][1]["argsT"][5]["name"] = "p_min" +defs["igSliderScalarN"][1]["argsT"][5]["type"] = "const void*" +defs["igSliderScalarN"][1]["argsT"][6] = {} +defs["igSliderScalarN"][1]["argsT"][6]["name"] = "p_max" +defs["igSliderScalarN"][1]["argsT"][6]["type"] = "const void*" +defs["igSliderScalarN"][1]["argsT"][7] = {} +defs["igSliderScalarN"][1]["argsT"][7]["name"] = "format" +defs["igSliderScalarN"][1]["argsT"][7]["type"] = "const char*" +defs["igSliderScalarN"][1]["argsT"][8] = {} +defs["igSliderScalarN"][1]["argsT"][8]["name"] = "flags" +defs["igSliderScalarN"][1]["argsT"][8]["type"] = "ImGuiSliderFlags" +defs["igSliderScalarN"][1]["argsoriginal"] = "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igSliderScalarN"][1]["call_args"] = "(label,data_type,p_data,components,p_min,p_max,format,flags)" +defs["igSliderScalarN"][1]["cimguiname"] = "igSliderScalarN" +defs["igSliderScalarN"][1]["defaults"] = {} +defs["igSliderScalarN"][1]["defaults"]["flags"] = "0" +defs["igSliderScalarN"][1]["defaults"]["format"] = "NULL" +defs["igSliderScalarN"][1]["funcname"] = "SliderScalarN" +defs["igSliderScalarN"][1]["location"] = "imgui:567" +defs["igSliderScalarN"][1]["namespace"] = "ImGui" +defs["igSliderScalarN"][1]["ov_cimguiname"] = "igSliderScalarN" +defs["igSliderScalarN"][1]["ret"] = "bool" +defs["igSliderScalarN"][1]["signature"] = "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igSliderScalarN"][1]["stname"] = "" +defs["igSliderScalarN"]["(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igSliderScalarN"][1] +defs["igSmallButton"] = {} +defs["igSmallButton"][1] = {} +defs["igSmallButton"][1]["args"] = "(const char* label)" +defs["igSmallButton"][1]["argsT"] = {} +defs["igSmallButton"][1]["argsT"][1] = {} +defs["igSmallButton"][1]["argsT"][1]["name"] = "label" +defs["igSmallButton"][1]["argsT"][1]["type"] = "const char*" +defs["igSmallButton"][1]["argsoriginal"] = "(const char* label)" +defs["igSmallButton"][1]["call_args"] = "(label)" +defs["igSmallButton"][1]["cimguiname"] = "igSmallButton" +defs["igSmallButton"][1]["defaults"] = {} +defs["igSmallButton"][1]["funcname"] = "SmallButton" +defs["igSmallButton"][1]["location"] = "imgui:501" +defs["igSmallButton"][1]["namespace"] = "ImGui" +defs["igSmallButton"][1]["ov_cimguiname"] = "igSmallButton" +defs["igSmallButton"][1]["ret"] = "bool" +defs["igSmallButton"][1]["signature"] = "(const char*)" +defs["igSmallButton"][1]["stname"] = "" +defs["igSmallButton"]["(const char*)"] = defs["igSmallButton"][1] +defs["igSpacing"] = {} +defs["igSpacing"][1] = {} +defs["igSpacing"][1]["args"] = "()" +defs["igSpacing"][1]["argsT"] = {} +defs["igSpacing"][1]["argsoriginal"] = "()" +defs["igSpacing"][1]["call_args"] = "()" +defs["igSpacing"][1]["cimguiname"] = "igSpacing" +defs["igSpacing"][1]["defaults"] = {} +defs["igSpacing"][1]["funcname"] = "Spacing" +defs["igSpacing"][1]["location"] = "imgui:441" +defs["igSpacing"][1]["namespace"] = "ImGui" +defs["igSpacing"][1]["ov_cimguiname"] = "igSpacing" +defs["igSpacing"][1]["ret"] = "void" +defs["igSpacing"][1]["signature"] = "()" +defs["igSpacing"][1]["stname"] = "" +defs["igSpacing"]["()"] = defs["igSpacing"][1] +defs["igStyleColorsClassic"] = {} +defs["igStyleColorsClassic"][1] = {} +defs["igStyleColorsClassic"][1]["args"] = "(ImGuiStyle* dst)" +defs["igStyleColorsClassic"][1]["argsT"] = {} +defs["igStyleColorsClassic"][1]["argsT"][1] = {} +defs["igStyleColorsClassic"][1]["argsT"][1]["name"] = "dst" +defs["igStyleColorsClassic"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["igStyleColorsClassic"][1]["argsoriginal"] = "(ImGuiStyle* dst=((void*)0))" +defs["igStyleColorsClassic"][1]["call_args"] = "(dst)" +defs["igStyleColorsClassic"][1]["cimguiname"] = "igStyleColorsClassic" +defs["igStyleColorsClassic"][1]["defaults"] = {} +defs["igStyleColorsClassic"][1]["defaults"]["dst"] = "NULL" +defs["igStyleColorsClassic"][1]["funcname"] = "StyleColorsClassic" +defs["igStyleColorsClassic"][1]["location"] = "imgui:316" +defs["igStyleColorsClassic"][1]["namespace"] = "ImGui" +defs["igStyleColorsClassic"][1]["ov_cimguiname"] = "igStyleColorsClassic" +defs["igStyleColorsClassic"][1]["ret"] = "void" +defs["igStyleColorsClassic"][1]["signature"] = "(ImGuiStyle*)" +defs["igStyleColorsClassic"][1]["stname"] = "" +defs["igStyleColorsClassic"]["(ImGuiStyle*)"] = defs["igStyleColorsClassic"][1] +defs["igStyleColorsDark"] = {} +defs["igStyleColorsDark"][1] = {} +defs["igStyleColorsDark"][1]["args"] = "(ImGuiStyle* dst)" +defs["igStyleColorsDark"][1]["argsT"] = {} +defs["igStyleColorsDark"][1]["argsT"][1] = {} +defs["igStyleColorsDark"][1]["argsT"][1]["name"] = "dst" +defs["igStyleColorsDark"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["igStyleColorsDark"][1]["argsoriginal"] = "(ImGuiStyle* dst=((void*)0))" +defs["igStyleColorsDark"][1]["call_args"] = "(dst)" +defs["igStyleColorsDark"][1]["cimguiname"] = "igStyleColorsDark" +defs["igStyleColorsDark"][1]["defaults"] = {} +defs["igStyleColorsDark"][1]["defaults"]["dst"] = "NULL" +defs["igStyleColorsDark"][1]["funcname"] = "StyleColorsDark" +defs["igStyleColorsDark"][1]["location"] = "imgui:314" +defs["igStyleColorsDark"][1]["namespace"] = "ImGui" +defs["igStyleColorsDark"][1]["ov_cimguiname"] = "igStyleColorsDark" +defs["igStyleColorsDark"][1]["ret"] = "void" +defs["igStyleColorsDark"][1]["signature"] = "(ImGuiStyle*)" +defs["igStyleColorsDark"][1]["stname"] = "" +defs["igStyleColorsDark"]["(ImGuiStyle*)"] = defs["igStyleColorsDark"][1] +defs["igStyleColorsLight"] = {} +defs["igStyleColorsLight"][1] = {} +defs["igStyleColorsLight"][1]["args"] = "(ImGuiStyle* dst)" +defs["igStyleColorsLight"][1]["argsT"] = {} +defs["igStyleColorsLight"][1]["argsT"][1] = {} +defs["igStyleColorsLight"][1]["argsT"][1]["name"] = "dst" +defs["igStyleColorsLight"][1]["argsT"][1]["type"] = "ImGuiStyle*" +defs["igStyleColorsLight"][1]["argsoriginal"] = "(ImGuiStyle* dst=((void*)0))" +defs["igStyleColorsLight"][1]["call_args"] = "(dst)" +defs["igStyleColorsLight"][1]["cimguiname"] = "igStyleColorsLight" +defs["igStyleColorsLight"][1]["defaults"] = {} +defs["igStyleColorsLight"][1]["defaults"]["dst"] = "NULL" +defs["igStyleColorsLight"][1]["funcname"] = "StyleColorsLight" +defs["igStyleColorsLight"][1]["location"] = "imgui:315" +defs["igStyleColorsLight"][1]["namespace"] = "ImGui" +defs["igStyleColorsLight"][1]["ov_cimguiname"] = "igStyleColorsLight" +defs["igStyleColorsLight"][1]["ret"] = "void" +defs["igStyleColorsLight"][1]["signature"] = "(ImGuiStyle*)" +defs["igStyleColorsLight"][1]["stname"] = "" +defs["igStyleColorsLight"]["(ImGuiStyle*)"] = defs["igStyleColorsLight"][1] +defs["igTabItemButton"] = {} +defs["igTabItemButton"][1] = {} +defs["igTabItemButton"][1]["args"] = "(const char* label,ImGuiTabItemFlags flags)" +defs["igTabItemButton"][1]["argsT"] = {} +defs["igTabItemButton"][1]["argsT"][1] = {} +defs["igTabItemButton"][1]["argsT"][1]["name"] = "label" +defs["igTabItemButton"][1]["argsT"][1]["type"] = "const char*" +defs["igTabItemButton"][1]["argsT"][2] = {} +defs["igTabItemButton"][1]["argsT"][2]["name"] = "flags" +defs["igTabItemButton"][1]["argsT"][2]["type"] = "ImGuiTabItemFlags" +defs["igTabItemButton"][1]["argsoriginal"] = "(const char* label,ImGuiTabItemFlags flags=0)" +defs["igTabItemButton"][1]["call_args"] = "(label,flags)" +defs["igTabItemButton"][1]["cimguiname"] = "igTabItemButton" +defs["igTabItemButton"][1]["defaults"] = {} +defs["igTabItemButton"][1]["defaults"]["flags"] = "0" +defs["igTabItemButton"][1]["funcname"] = "TabItemButton" +defs["igTabItemButton"][1]["location"] = "imgui:789" +defs["igTabItemButton"][1]["namespace"] = "ImGui" +defs["igTabItemButton"][1]["ov_cimguiname"] = "igTabItemButton" +defs["igTabItemButton"][1]["ret"] = "bool" +defs["igTabItemButton"][1]["signature"] = "(const char*,ImGuiTabItemFlags)" +defs["igTabItemButton"][1]["stname"] = "" +defs["igTabItemButton"]["(const char*,ImGuiTabItemFlags)"] = defs["igTabItemButton"][1] +defs["igTableGetColumnCount"] = {} +defs["igTableGetColumnCount"][1] = {} +defs["igTableGetColumnCount"][1]["args"] = "()" +defs["igTableGetColumnCount"][1]["argsT"] = {} +defs["igTableGetColumnCount"][1]["argsoriginal"] = "()" +defs["igTableGetColumnCount"][1]["call_args"] = "()" +defs["igTableGetColumnCount"][1]["cimguiname"] = "igTableGetColumnCount" +defs["igTableGetColumnCount"][1]["defaults"] = {} +defs["igTableGetColumnCount"][1]["funcname"] = "TableGetColumnCount" +defs["igTableGetColumnCount"][1]["location"] = "imgui:765" +defs["igTableGetColumnCount"][1]["namespace"] = "ImGui" +defs["igTableGetColumnCount"][1]["ov_cimguiname"] = "igTableGetColumnCount" +defs["igTableGetColumnCount"][1]["ret"] = "int" +defs["igTableGetColumnCount"][1]["signature"] = "()" +defs["igTableGetColumnCount"][1]["stname"] = "" +defs["igTableGetColumnCount"]["()"] = defs["igTableGetColumnCount"][1] +defs["igTableGetColumnFlags"] = {} +defs["igTableGetColumnFlags"][1] = {} +defs["igTableGetColumnFlags"][1]["args"] = "(int column_n)" +defs["igTableGetColumnFlags"][1]["argsT"] = {} +defs["igTableGetColumnFlags"][1]["argsT"][1] = {} +defs["igTableGetColumnFlags"][1]["argsT"][1]["name"] = "column_n" +defs["igTableGetColumnFlags"][1]["argsT"][1]["type"] = "int" +defs["igTableGetColumnFlags"][1]["argsoriginal"] = "(int column_n=-1)" +defs["igTableGetColumnFlags"][1]["call_args"] = "(column_n)" +defs["igTableGetColumnFlags"][1]["cimguiname"] = "igTableGetColumnFlags" +defs["igTableGetColumnFlags"][1]["defaults"] = {} +defs["igTableGetColumnFlags"][1]["defaults"]["column_n"] = "-1" +defs["igTableGetColumnFlags"][1]["funcname"] = "TableGetColumnFlags" +defs["igTableGetColumnFlags"][1]["location"] = "imgui:769" +defs["igTableGetColumnFlags"][1]["namespace"] = "ImGui" +defs["igTableGetColumnFlags"][1]["ov_cimguiname"] = "igTableGetColumnFlags" +defs["igTableGetColumnFlags"][1]["ret"] = "ImGuiTableColumnFlags" +defs["igTableGetColumnFlags"][1]["signature"] = "(int)" +defs["igTableGetColumnFlags"][1]["stname"] = "" +defs["igTableGetColumnFlags"]["(int)"] = defs["igTableGetColumnFlags"][1] +defs["igTableGetColumnIndex"] = {} +defs["igTableGetColumnIndex"][1] = {} +defs["igTableGetColumnIndex"][1]["args"] = "()" +defs["igTableGetColumnIndex"][1]["argsT"] = {} +defs["igTableGetColumnIndex"][1]["argsoriginal"] = "()" +defs["igTableGetColumnIndex"][1]["call_args"] = "()" +defs["igTableGetColumnIndex"][1]["cimguiname"] = "igTableGetColumnIndex" +defs["igTableGetColumnIndex"][1]["defaults"] = {} +defs["igTableGetColumnIndex"][1]["funcname"] = "TableGetColumnIndex" +defs["igTableGetColumnIndex"][1]["location"] = "imgui:766" +defs["igTableGetColumnIndex"][1]["namespace"] = "ImGui" +defs["igTableGetColumnIndex"][1]["ov_cimguiname"] = "igTableGetColumnIndex" +defs["igTableGetColumnIndex"][1]["ret"] = "int" +defs["igTableGetColumnIndex"][1]["signature"] = "()" +defs["igTableGetColumnIndex"][1]["stname"] = "" +defs["igTableGetColumnIndex"]["()"] = defs["igTableGetColumnIndex"][1] +defs["igTableGetColumnName"] = {} +defs["igTableGetColumnName"][1] = {} +defs["igTableGetColumnName"][1]["args"] = "(int column_n)" +defs["igTableGetColumnName"][1]["argsT"] = {} +defs["igTableGetColumnName"][1]["argsT"][1] = {} +defs["igTableGetColumnName"][1]["argsT"][1]["name"] = "column_n" +defs["igTableGetColumnName"][1]["argsT"][1]["type"] = "int" +defs["igTableGetColumnName"][1]["argsoriginal"] = "(int column_n=-1)" +defs["igTableGetColumnName"][1]["call_args"] = "(column_n)" +defs["igTableGetColumnName"][1]["cimguiname"] = "igTableGetColumnName" +defs["igTableGetColumnName"][1]["defaults"] = {} +defs["igTableGetColumnName"][1]["defaults"]["column_n"] = "-1" +defs["igTableGetColumnName"][1]["funcname"] = "TableGetColumnName" +defs["igTableGetColumnName"][1]["location"] = "imgui:768" +defs["igTableGetColumnName"][1]["namespace"] = "ImGui" +defs["igTableGetColumnName"][1]["ov_cimguiname"] = "igTableGetColumnName" +defs["igTableGetColumnName"][1]["ret"] = "const char*" +defs["igTableGetColumnName"][1]["signature"] = "(int)" +defs["igTableGetColumnName"][1]["stname"] = "" +defs["igTableGetColumnName"]["(int)"] = defs["igTableGetColumnName"][1] +defs["igTableGetRowIndex"] = {} +defs["igTableGetRowIndex"][1] = {} +defs["igTableGetRowIndex"][1]["args"] = "()" +defs["igTableGetRowIndex"][1]["argsT"] = {} +defs["igTableGetRowIndex"][1]["argsoriginal"] = "()" +defs["igTableGetRowIndex"][1]["call_args"] = "()" +defs["igTableGetRowIndex"][1]["cimguiname"] = "igTableGetRowIndex" +defs["igTableGetRowIndex"][1]["defaults"] = {} +defs["igTableGetRowIndex"][1]["funcname"] = "TableGetRowIndex" +defs["igTableGetRowIndex"][1]["location"] = "imgui:767" +defs["igTableGetRowIndex"][1]["namespace"] = "ImGui" +defs["igTableGetRowIndex"][1]["ov_cimguiname"] = "igTableGetRowIndex" +defs["igTableGetRowIndex"][1]["ret"] = "int" +defs["igTableGetRowIndex"][1]["signature"] = "()" +defs["igTableGetRowIndex"][1]["stname"] = "" +defs["igTableGetRowIndex"]["()"] = defs["igTableGetRowIndex"][1] +defs["igTableGetSortSpecs"] = {} +defs["igTableGetSortSpecs"][1] = {} +defs["igTableGetSortSpecs"][1]["args"] = "()" +defs["igTableGetSortSpecs"][1]["argsT"] = {} +defs["igTableGetSortSpecs"][1]["argsoriginal"] = "()" +defs["igTableGetSortSpecs"][1]["call_args"] = "()" +defs["igTableGetSortSpecs"][1]["cimguiname"] = "igTableGetSortSpecs" +defs["igTableGetSortSpecs"][1]["defaults"] = {} +defs["igTableGetSortSpecs"][1]["funcname"] = "TableGetSortSpecs" +defs["igTableGetSortSpecs"][1]["location"] = "imgui:764" +defs["igTableGetSortSpecs"][1]["namespace"] = "ImGui" +defs["igTableGetSortSpecs"][1]["ov_cimguiname"] = "igTableGetSortSpecs" +defs["igTableGetSortSpecs"][1]["ret"] = "ImGuiTableSortSpecs*" +defs["igTableGetSortSpecs"][1]["signature"] = "()" +defs["igTableGetSortSpecs"][1]["stname"] = "" +defs["igTableGetSortSpecs"]["()"] = defs["igTableGetSortSpecs"][1] +defs["igTableHeader"] = {} +defs["igTableHeader"][1] = {} +defs["igTableHeader"][1]["args"] = "(const char* label)" +defs["igTableHeader"][1]["argsT"] = {} +defs["igTableHeader"][1]["argsT"][1] = {} +defs["igTableHeader"][1]["argsT"][1]["name"] = "label" +defs["igTableHeader"][1]["argsT"][1]["type"] = "const char*" +defs["igTableHeader"][1]["argsoriginal"] = "(const char* label)" +defs["igTableHeader"][1]["call_args"] = "(label)" +defs["igTableHeader"][1]["cimguiname"] = "igTableHeader" +defs["igTableHeader"][1]["defaults"] = {} +defs["igTableHeader"][1]["funcname"] = "TableHeader" +defs["igTableHeader"][1]["location"] = "imgui:756" +defs["igTableHeader"][1]["namespace"] = "ImGui" +defs["igTableHeader"][1]["ov_cimguiname"] = "igTableHeader" +defs["igTableHeader"][1]["ret"] = "void" +defs["igTableHeader"][1]["signature"] = "(const char*)" +defs["igTableHeader"][1]["stname"] = "" +defs["igTableHeader"]["(const char*)"] = defs["igTableHeader"][1] +defs["igTableHeadersRow"] = {} +defs["igTableHeadersRow"][1] = {} +defs["igTableHeadersRow"][1]["args"] = "()" +defs["igTableHeadersRow"][1]["argsT"] = {} +defs["igTableHeadersRow"][1]["argsoriginal"] = "()" +defs["igTableHeadersRow"][1]["call_args"] = "()" +defs["igTableHeadersRow"][1]["cimguiname"] = "igTableHeadersRow" +defs["igTableHeadersRow"][1]["defaults"] = {} +defs["igTableHeadersRow"][1]["funcname"] = "TableHeadersRow" +defs["igTableHeadersRow"][1]["location"] = "imgui:755" +defs["igTableHeadersRow"][1]["namespace"] = "ImGui" +defs["igTableHeadersRow"][1]["ov_cimguiname"] = "igTableHeadersRow" +defs["igTableHeadersRow"][1]["ret"] = "void" +defs["igTableHeadersRow"][1]["signature"] = "()" +defs["igTableHeadersRow"][1]["stname"] = "" +defs["igTableHeadersRow"]["()"] = defs["igTableHeadersRow"][1] +defs["igTableNextColumn"] = {} +defs["igTableNextColumn"][1] = {} +defs["igTableNextColumn"][1]["args"] = "()" +defs["igTableNextColumn"][1]["argsT"] = {} +defs["igTableNextColumn"][1]["argsoriginal"] = "()" +defs["igTableNextColumn"][1]["call_args"] = "()" +defs["igTableNextColumn"][1]["cimguiname"] = "igTableNextColumn" +defs["igTableNextColumn"][1]["defaults"] = {} +defs["igTableNextColumn"][1]["funcname"] = "TableNextColumn" +defs["igTableNextColumn"][1]["location"] = "imgui:742" +defs["igTableNextColumn"][1]["namespace"] = "ImGui" +defs["igTableNextColumn"][1]["ov_cimguiname"] = "igTableNextColumn" +defs["igTableNextColumn"][1]["ret"] = "bool" +defs["igTableNextColumn"][1]["signature"] = "()" +defs["igTableNextColumn"][1]["stname"] = "" +defs["igTableNextColumn"]["()"] = defs["igTableNextColumn"][1] +defs["igTableNextRow"] = {} +defs["igTableNextRow"][1] = {} +defs["igTableNextRow"][1]["args"] = "(ImGuiTableRowFlags row_flags,float min_row_height)" +defs["igTableNextRow"][1]["argsT"] = {} +defs["igTableNextRow"][1]["argsT"][1] = {} +defs["igTableNextRow"][1]["argsT"][1]["name"] = "row_flags" +defs["igTableNextRow"][1]["argsT"][1]["type"] = "ImGuiTableRowFlags" +defs["igTableNextRow"][1]["argsT"][2] = {} +defs["igTableNextRow"][1]["argsT"][2]["name"] = "min_row_height" +defs["igTableNextRow"][1]["argsT"][2]["type"] = "float" +defs["igTableNextRow"][1]["argsoriginal"] = "(ImGuiTableRowFlags row_flags=0,float min_row_height=0.0f)" +defs["igTableNextRow"][1]["call_args"] = "(row_flags,min_row_height)" +defs["igTableNextRow"][1]["cimguiname"] = "igTableNextRow" +defs["igTableNextRow"][1]["defaults"] = {} +defs["igTableNextRow"][1]["defaults"]["min_row_height"] = "0.0f" +defs["igTableNextRow"][1]["defaults"]["row_flags"] = "0" +defs["igTableNextRow"][1]["funcname"] = "TableNextRow" +defs["igTableNextRow"][1]["location"] = "imgui:741" +defs["igTableNextRow"][1]["namespace"] = "ImGui" +defs["igTableNextRow"][1]["ov_cimguiname"] = "igTableNextRow" +defs["igTableNextRow"][1]["ret"] = "void" +defs["igTableNextRow"][1]["signature"] = "(ImGuiTableRowFlags,float)" +defs["igTableNextRow"][1]["stname"] = "" +defs["igTableNextRow"]["(ImGuiTableRowFlags,float)"] = defs["igTableNextRow"][1] +defs["igTableSetBgColor"] = {} +defs["igTableSetBgColor"][1] = {} +defs["igTableSetBgColor"][1]["args"] = "(ImGuiTableBgTarget target,ImU32 color,int column_n)" +defs["igTableSetBgColor"][1]["argsT"] = {} +defs["igTableSetBgColor"][1]["argsT"][1] = {} +defs["igTableSetBgColor"][1]["argsT"][1]["name"] = "target" +defs["igTableSetBgColor"][1]["argsT"][1]["type"] = "ImGuiTableBgTarget" +defs["igTableSetBgColor"][1]["argsT"][2] = {} +defs["igTableSetBgColor"][1]["argsT"][2]["name"] = "color" +defs["igTableSetBgColor"][1]["argsT"][2]["type"] = "ImU32" +defs["igTableSetBgColor"][1]["argsT"][3] = {} +defs["igTableSetBgColor"][1]["argsT"][3]["name"] = "column_n" +defs["igTableSetBgColor"][1]["argsT"][3]["type"] = "int" +defs["igTableSetBgColor"][1]["argsoriginal"] = "(ImGuiTableBgTarget target,ImU32 color,int column_n=-1)" +defs["igTableSetBgColor"][1]["call_args"] = "(target,color,column_n)" +defs["igTableSetBgColor"][1]["cimguiname"] = "igTableSetBgColor" +defs["igTableSetBgColor"][1]["defaults"] = {} +defs["igTableSetBgColor"][1]["defaults"]["column_n"] = "-1" +defs["igTableSetBgColor"][1]["funcname"] = "TableSetBgColor" +defs["igTableSetBgColor"][1]["location"] = "imgui:771" +defs["igTableSetBgColor"][1]["namespace"] = "ImGui" +defs["igTableSetBgColor"][1]["ov_cimguiname"] = "igTableSetBgColor" +defs["igTableSetBgColor"][1]["ret"] = "void" +defs["igTableSetBgColor"][1]["signature"] = "(ImGuiTableBgTarget,ImU32,int)" +defs["igTableSetBgColor"][1]["stname"] = "" +defs["igTableSetBgColor"]["(ImGuiTableBgTarget,ImU32,int)"] = defs["igTableSetBgColor"][1] +defs["igTableSetColumnEnabled"] = {} +defs["igTableSetColumnEnabled"][1] = {} +defs["igTableSetColumnEnabled"][1]["args"] = "(int column_n,bool v)" +defs["igTableSetColumnEnabled"][1]["argsT"] = {} +defs["igTableSetColumnEnabled"][1]["argsT"][1] = {} +defs["igTableSetColumnEnabled"][1]["argsT"][1]["name"] = "column_n" +defs["igTableSetColumnEnabled"][1]["argsT"][1]["type"] = "int" +defs["igTableSetColumnEnabled"][1]["argsT"][2] = {} +defs["igTableSetColumnEnabled"][1]["argsT"][2]["name"] = "v" +defs["igTableSetColumnEnabled"][1]["argsT"][2]["type"] = "bool" +defs["igTableSetColumnEnabled"][1]["argsoriginal"] = "(int column_n,bool v)" +defs["igTableSetColumnEnabled"][1]["call_args"] = "(column_n,v)" +defs["igTableSetColumnEnabled"][1]["cimguiname"] = "igTableSetColumnEnabled" +defs["igTableSetColumnEnabled"][1]["defaults"] = {} +defs["igTableSetColumnEnabled"][1]["funcname"] = "TableSetColumnEnabled" +defs["igTableSetColumnEnabled"][1]["location"] = "imgui:770" +defs["igTableSetColumnEnabled"][1]["namespace"] = "ImGui" +defs["igTableSetColumnEnabled"][1]["ov_cimguiname"] = "igTableSetColumnEnabled" +defs["igTableSetColumnEnabled"][1]["ret"] = "void" +defs["igTableSetColumnEnabled"][1]["signature"] = "(int,bool)" +defs["igTableSetColumnEnabled"][1]["stname"] = "" +defs["igTableSetColumnEnabled"]["(int,bool)"] = defs["igTableSetColumnEnabled"][1] +defs["igTableSetColumnIndex"] = {} +defs["igTableSetColumnIndex"][1] = {} +defs["igTableSetColumnIndex"][1]["args"] = "(int column_n)" +defs["igTableSetColumnIndex"][1]["argsT"] = {} +defs["igTableSetColumnIndex"][1]["argsT"][1] = {} +defs["igTableSetColumnIndex"][1]["argsT"][1]["name"] = "column_n" +defs["igTableSetColumnIndex"][1]["argsT"][1]["type"] = "int" +defs["igTableSetColumnIndex"][1]["argsoriginal"] = "(int column_n)" +defs["igTableSetColumnIndex"][1]["call_args"] = "(column_n)" +defs["igTableSetColumnIndex"][1]["cimguiname"] = "igTableSetColumnIndex" +defs["igTableSetColumnIndex"][1]["defaults"] = {} +defs["igTableSetColumnIndex"][1]["funcname"] = "TableSetColumnIndex" +defs["igTableSetColumnIndex"][1]["location"] = "imgui:743" +defs["igTableSetColumnIndex"][1]["namespace"] = "ImGui" +defs["igTableSetColumnIndex"][1]["ov_cimguiname"] = "igTableSetColumnIndex" +defs["igTableSetColumnIndex"][1]["ret"] = "bool" +defs["igTableSetColumnIndex"][1]["signature"] = "(int)" +defs["igTableSetColumnIndex"][1]["stname"] = "" +defs["igTableSetColumnIndex"]["(int)"] = defs["igTableSetColumnIndex"][1] +defs["igTableSetupColumn"] = {} +defs["igTableSetupColumn"][1] = {} +defs["igTableSetupColumn"][1]["args"] = "(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)" +defs["igTableSetupColumn"][1]["argsT"] = {} +defs["igTableSetupColumn"][1]["argsT"][1] = {} +defs["igTableSetupColumn"][1]["argsT"][1]["name"] = "label" +defs["igTableSetupColumn"][1]["argsT"][1]["type"] = "const char*" +defs["igTableSetupColumn"][1]["argsT"][2] = {} +defs["igTableSetupColumn"][1]["argsT"][2]["name"] = "flags" +defs["igTableSetupColumn"][1]["argsT"][2]["type"] = "ImGuiTableColumnFlags" +defs["igTableSetupColumn"][1]["argsT"][3] = {} +defs["igTableSetupColumn"][1]["argsT"][3]["name"] = "init_width_or_weight" +defs["igTableSetupColumn"][1]["argsT"][3]["type"] = "float" +defs["igTableSetupColumn"][1]["argsT"][4] = {} +defs["igTableSetupColumn"][1]["argsT"][4]["name"] = "user_id" +defs["igTableSetupColumn"][1]["argsT"][4]["type"] = "ImGuiID" +defs["igTableSetupColumn"][1]["argsoriginal"] = "(const char* label,ImGuiTableColumnFlags flags=0,float init_width_or_weight=0.0f,ImGuiID user_id=0)" +defs["igTableSetupColumn"][1]["call_args"] = "(label,flags,init_width_or_weight,user_id)" +defs["igTableSetupColumn"][1]["cimguiname"] = "igTableSetupColumn" +defs["igTableSetupColumn"][1]["defaults"] = {} +defs["igTableSetupColumn"][1]["defaults"]["flags"] = "0" +defs["igTableSetupColumn"][1]["defaults"]["init_width_or_weight"] = "0.0f" +defs["igTableSetupColumn"][1]["defaults"]["user_id"] = "0" +defs["igTableSetupColumn"][1]["funcname"] = "TableSetupColumn" +defs["igTableSetupColumn"][1]["location"] = "imgui:753" +defs["igTableSetupColumn"][1]["namespace"] = "ImGui" +defs["igTableSetupColumn"][1]["ov_cimguiname"] = "igTableSetupColumn" +defs["igTableSetupColumn"][1]["ret"] = "void" +defs["igTableSetupColumn"][1]["signature"] = "(const char*,ImGuiTableColumnFlags,float,ImGuiID)" +defs["igTableSetupColumn"][1]["stname"] = "" +defs["igTableSetupColumn"]["(const char*,ImGuiTableColumnFlags,float,ImGuiID)"] = defs["igTableSetupColumn"][1] +defs["igTableSetupScrollFreeze"] = {} +defs["igTableSetupScrollFreeze"][1] = {} +defs["igTableSetupScrollFreeze"][1]["args"] = "(int cols,int rows)" +defs["igTableSetupScrollFreeze"][1]["argsT"] = {} +defs["igTableSetupScrollFreeze"][1]["argsT"][1] = {} +defs["igTableSetupScrollFreeze"][1]["argsT"][1]["name"] = "cols" +defs["igTableSetupScrollFreeze"][1]["argsT"][1]["type"] = "int" +defs["igTableSetupScrollFreeze"][1]["argsT"][2] = {} +defs["igTableSetupScrollFreeze"][1]["argsT"][2]["name"] = "rows" +defs["igTableSetupScrollFreeze"][1]["argsT"][2]["type"] = "int" +defs["igTableSetupScrollFreeze"][1]["argsoriginal"] = "(int cols,int rows)" +defs["igTableSetupScrollFreeze"][1]["call_args"] = "(cols,rows)" +defs["igTableSetupScrollFreeze"][1]["cimguiname"] = "igTableSetupScrollFreeze" +defs["igTableSetupScrollFreeze"][1]["defaults"] = {} +defs["igTableSetupScrollFreeze"][1]["funcname"] = "TableSetupScrollFreeze" +defs["igTableSetupScrollFreeze"][1]["location"] = "imgui:754" +defs["igTableSetupScrollFreeze"][1]["namespace"] = "ImGui" +defs["igTableSetupScrollFreeze"][1]["ov_cimguiname"] = "igTableSetupScrollFreeze" +defs["igTableSetupScrollFreeze"][1]["ret"] = "void" +defs["igTableSetupScrollFreeze"][1]["signature"] = "(int,int)" +defs["igTableSetupScrollFreeze"][1]["stname"] = "" +defs["igTableSetupScrollFreeze"]["(int,int)"] = defs["igTableSetupScrollFreeze"][1] +defs["igText"] = {} +defs["igText"][1] = {} +defs["igText"][1]["args"] = "(const char* fmt,...)" +defs["igText"][1]["argsT"] = {} +defs["igText"][1]["argsT"][1] = {} +defs["igText"][1]["argsT"][1]["name"] = "fmt" +defs["igText"][1]["argsT"][1]["type"] = "const char*" +defs["igText"][1]["argsT"][2] = {} +defs["igText"][1]["argsT"][2]["name"] = "..." +defs["igText"][1]["argsT"][2]["type"] = "..." +defs["igText"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igText"][1]["call_args"] = "(fmt,...)" +defs["igText"][1]["cimguiname"] = "igText" +defs["igText"][1]["defaults"] = {} +defs["igText"][1]["funcname"] = "Text" +defs["igText"][1]["isvararg"] = "...)" +defs["igText"][1]["location"] = "imgui:484" +defs["igText"][1]["namespace"] = "ImGui" +defs["igText"][1]["ov_cimguiname"] = "igText" +defs["igText"][1]["ret"] = "void" +defs["igText"][1]["signature"] = "(const char*,...)" +defs["igText"][1]["stname"] = "" +defs["igText"]["(const char*,...)"] = defs["igText"][1] +defs["igTextColored"] = {} +defs["igTextColored"][1] = {} +defs["igTextColored"][1]["args"] = "(const ImVec4 col,const char* fmt,...)" +defs["igTextColored"][1]["argsT"] = {} +defs["igTextColored"][1]["argsT"][1] = {} +defs["igTextColored"][1]["argsT"][1]["name"] = "col" +defs["igTextColored"][1]["argsT"][1]["type"] = "const ImVec4" +defs["igTextColored"][1]["argsT"][2] = {} +defs["igTextColored"][1]["argsT"][2]["name"] = "fmt" +defs["igTextColored"][1]["argsT"][2]["type"] = "const char*" +defs["igTextColored"][1]["argsT"][3] = {} +defs["igTextColored"][1]["argsT"][3]["name"] = "..." +defs["igTextColored"][1]["argsT"][3]["type"] = "..." +defs["igTextColored"][1]["argsoriginal"] = "(const ImVec4& col,const char* fmt,...)" +defs["igTextColored"][1]["call_args"] = "(col,fmt,...)" +defs["igTextColored"][1]["cimguiname"] = "igTextColored" +defs["igTextColored"][1]["defaults"] = {} +defs["igTextColored"][1]["funcname"] = "TextColored" +defs["igTextColored"][1]["isvararg"] = "...)" +defs["igTextColored"][1]["location"] = "imgui:486" +defs["igTextColored"][1]["namespace"] = "ImGui" +defs["igTextColored"][1]["ov_cimguiname"] = "igTextColored" +defs["igTextColored"][1]["ret"] = "void" +defs["igTextColored"][1]["signature"] = "(const ImVec4,const char*,...)" +defs["igTextColored"][1]["stname"] = "" +defs["igTextColored"]["(const ImVec4,const char*,...)"] = defs["igTextColored"][1] +defs["igTextColoredV"] = {} +defs["igTextColoredV"][1] = {} +defs["igTextColoredV"][1]["args"] = "(const ImVec4 col,const char* fmt,va_list args)" +defs["igTextColoredV"][1]["argsT"] = {} +defs["igTextColoredV"][1]["argsT"][1] = {} +defs["igTextColoredV"][1]["argsT"][1]["name"] = "col" +defs["igTextColoredV"][1]["argsT"][1]["type"] = "const ImVec4" +defs["igTextColoredV"][1]["argsT"][2] = {} +defs["igTextColoredV"][1]["argsT"][2]["name"] = "fmt" +defs["igTextColoredV"][1]["argsT"][2]["type"] = "const char*" +defs["igTextColoredV"][1]["argsT"][3] = {} +defs["igTextColoredV"][1]["argsT"][3]["name"] = "args" +defs["igTextColoredV"][1]["argsT"][3]["type"] = "va_list" +defs["igTextColoredV"][1]["argsoriginal"] = "(const ImVec4& col,const char* fmt,va_list args)" +defs["igTextColoredV"][1]["call_args"] = "(col,fmt,args)" +defs["igTextColoredV"][1]["cimguiname"] = "igTextColoredV" +defs["igTextColoredV"][1]["defaults"] = {} +defs["igTextColoredV"][1]["funcname"] = "TextColoredV" +defs["igTextColoredV"][1]["location"] = "imgui:487" +defs["igTextColoredV"][1]["namespace"] = "ImGui" +defs["igTextColoredV"][1]["ov_cimguiname"] = "igTextColoredV" +defs["igTextColoredV"][1]["ret"] = "void" +defs["igTextColoredV"][1]["signature"] = "(const ImVec4,const char*,va_list)" +defs["igTextColoredV"][1]["stname"] = "" +defs["igTextColoredV"]["(const ImVec4,const char*,va_list)"] = defs["igTextColoredV"][1] +defs["igTextDisabled"] = {} +defs["igTextDisabled"][1] = {} +defs["igTextDisabled"][1]["args"] = "(const char* fmt,...)" +defs["igTextDisabled"][1]["argsT"] = {} +defs["igTextDisabled"][1]["argsT"][1] = {} +defs["igTextDisabled"][1]["argsT"][1]["name"] = "fmt" +defs["igTextDisabled"][1]["argsT"][1]["type"] = "const char*" +defs["igTextDisabled"][1]["argsT"][2] = {} +defs["igTextDisabled"][1]["argsT"][2]["name"] = "..." +defs["igTextDisabled"][1]["argsT"][2]["type"] = "..." +defs["igTextDisabled"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igTextDisabled"][1]["call_args"] = "(fmt,...)" +defs["igTextDisabled"][1]["cimguiname"] = "igTextDisabled" +defs["igTextDisabled"][1]["defaults"] = {} +defs["igTextDisabled"][1]["funcname"] = "TextDisabled" +defs["igTextDisabled"][1]["isvararg"] = "...)" +defs["igTextDisabled"][1]["location"] = "imgui:488" +defs["igTextDisabled"][1]["namespace"] = "ImGui" +defs["igTextDisabled"][1]["ov_cimguiname"] = "igTextDisabled" +defs["igTextDisabled"][1]["ret"] = "void" +defs["igTextDisabled"][1]["signature"] = "(const char*,...)" +defs["igTextDisabled"][1]["stname"] = "" +defs["igTextDisabled"]["(const char*,...)"] = defs["igTextDisabled"][1] +defs["igTextDisabledV"] = {} +defs["igTextDisabledV"][1] = {} +defs["igTextDisabledV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igTextDisabledV"][1]["argsT"] = {} +defs["igTextDisabledV"][1]["argsT"][1] = {} +defs["igTextDisabledV"][1]["argsT"][1]["name"] = "fmt" +defs["igTextDisabledV"][1]["argsT"][1]["type"] = "const char*" +defs["igTextDisabledV"][1]["argsT"][2] = {} +defs["igTextDisabledV"][1]["argsT"][2]["name"] = "args" +defs["igTextDisabledV"][1]["argsT"][2]["type"] = "va_list" +defs["igTextDisabledV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igTextDisabledV"][1]["call_args"] = "(fmt,args)" +defs["igTextDisabledV"][1]["cimguiname"] = "igTextDisabledV" +defs["igTextDisabledV"][1]["defaults"] = {} +defs["igTextDisabledV"][1]["funcname"] = "TextDisabledV" +defs["igTextDisabledV"][1]["location"] = "imgui:489" +defs["igTextDisabledV"][1]["namespace"] = "ImGui" +defs["igTextDisabledV"][1]["ov_cimguiname"] = "igTextDisabledV" +defs["igTextDisabledV"][1]["ret"] = "void" +defs["igTextDisabledV"][1]["signature"] = "(const char*,va_list)" +defs["igTextDisabledV"][1]["stname"] = "" +defs["igTextDisabledV"]["(const char*,va_list)"] = defs["igTextDisabledV"][1] +defs["igTextUnformatted"] = {} +defs["igTextUnformatted"][1] = {} +defs["igTextUnformatted"][1]["args"] = "(const char* text,const char* text_end)" +defs["igTextUnformatted"][1]["argsT"] = {} +defs["igTextUnformatted"][1]["argsT"][1] = {} +defs["igTextUnformatted"][1]["argsT"][1]["name"] = "text" +defs["igTextUnformatted"][1]["argsT"][1]["type"] = "const char*" +defs["igTextUnformatted"][1]["argsT"][2] = {} +defs["igTextUnformatted"][1]["argsT"][2]["name"] = "text_end" +defs["igTextUnformatted"][1]["argsT"][2]["type"] = "const char*" +defs["igTextUnformatted"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0))" +defs["igTextUnformatted"][1]["call_args"] = "(text,text_end)" +defs["igTextUnformatted"][1]["cimguiname"] = "igTextUnformatted" +defs["igTextUnformatted"][1]["defaults"] = {} +defs["igTextUnformatted"][1]["defaults"]["text_end"] = "NULL" +defs["igTextUnformatted"][1]["funcname"] = "TextUnformatted" +defs["igTextUnformatted"][1]["location"] = "imgui:483" +defs["igTextUnformatted"][1]["namespace"] = "ImGui" +defs["igTextUnformatted"][1]["ov_cimguiname"] = "igTextUnformatted" +defs["igTextUnformatted"][1]["ret"] = "void" +defs["igTextUnformatted"][1]["signature"] = "(const char*,const char*)" +defs["igTextUnformatted"][1]["stname"] = "" +defs["igTextUnformatted"]["(const char*,const char*)"] = defs["igTextUnformatted"][1] +defs["igTextV"] = {} +defs["igTextV"][1] = {} +defs["igTextV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igTextV"][1]["argsT"] = {} +defs["igTextV"][1]["argsT"][1] = {} +defs["igTextV"][1]["argsT"][1]["name"] = "fmt" +defs["igTextV"][1]["argsT"][1]["type"] = "const char*" +defs["igTextV"][1]["argsT"][2] = {} +defs["igTextV"][1]["argsT"][2]["name"] = "args" +defs["igTextV"][1]["argsT"][2]["type"] = "va_list" +defs["igTextV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igTextV"][1]["call_args"] = "(fmt,args)" +defs["igTextV"][1]["cimguiname"] = "igTextV" +defs["igTextV"][1]["defaults"] = {} +defs["igTextV"][1]["funcname"] = "TextV" +defs["igTextV"][1]["location"] = "imgui:485" +defs["igTextV"][1]["namespace"] = "ImGui" +defs["igTextV"][1]["ov_cimguiname"] = "igTextV" +defs["igTextV"][1]["ret"] = "void" +defs["igTextV"][1]["signature"] = "(const char*,va_list)" +defs["igTextV"][1]["stname"] = "" +defs["igTextV"]["(const char*,va_list)"] = defs["igTextV"][1] +defs["igTextWrapped"] = {} +defs["igTextWrapped"][1] = {} +defs["igTextWrapped"][1]["args"] = "(const char* fmt,...)" +defs["igTextWrapped"][1]["argsT"] = {} +defs["igTextWrapped"][1]["argsT"][1] = {} +defs["igTextWrapped"][1]["argsT"][1]["name"] = "fmt" +defs["igTextWrapped"][1]["argsT"][1]["type"] = "const char*" +defs["igTextWrapped"][1]["argsT"][2] = {} +defs["igTextWrapped"][1]["argsT"][2]["name"] = "..." +defs["igTextWrapped"][1]["argsT"][2]["type"] = "..." +defs["igTextWrapped"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igTextWrapped"][1]["call_args"] = "(fmt,...)" +defs["igTextWrapped"][1]["cimguiname"] = "igTextWrapped" +defs["igTextWrapped"][1]["defaults"] = {} +defs["igTextWrapped"][1]["funcname"] = "TextWrapped" +defs["igTextWrapped"][1]["isvararg"] = "...)" +defs["igTextWrapped"][1]["location"] = "imgui:490" +defs["igTextWrapped"][1]["namespace"] = "ImGui" +defs["igTextWrapped"][1]["ov_cimguiname"] = "igTextWrapped" +defs["igTextWrapped"][1]["ret"] = "void" +defs["igTextWrapped"][1]["signature"] = "(const char*,...)" +defs["igTextWrapped"][1]["stname"] = "" +defs["igTextWrapped"]["(const char*,...)"] = defs["igTextWrapped"][1] +defs["igTextWrappedV"] = {} +defs["igTextWrappedV"][1] = {} +defs["igTextWrappedV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igTextWrappedV"][1]["argsT"] = {} +defs["igTextWrappedV"][1]["argsT"][1] = {} +defs["igTextWrappedV"][1]["argsT"][1]["name"] = "fmt" +defs["igTextWrappedV"][1]["argsT"][1]["type"] = "const char*" +defs["igTextWrappedV"][1]["argsT"][2] = {} +defs["igTextWrappedV"][1]["argsT"][2]["name"] = "args" +defs["igTextWrappedV"][1]["argsT"][2]["type"] = "va_list" +defs["igTextWrappedV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igTextWrappedV"][1]["call_args"] = "(fmt,args)" +defs["igTextWrappedV"][1]["cimguiname"] = "igTextWrappedV" +defs["igTextWrappedV"][1]["defaults"] = {} +defs["igTextWrappedV"][1]["funcname"] = "TextWrappedV" +defs["igTextWrappedV"][1]["location"] = "imgui:491" +defs["igTextWrappedV"][1]["namespace"] = "ImGui" +defs["igTextWrappedV"][1]["ov_cimguiname"] = "igTextWrappedV" +defs["igTextWrappedV"][1]["ret"] = "void" +defs["igTextWrappedV"][1]["signature"] = "(const char*,va_list)" +defs["igTextWrappedV"][1]["stname"] = "" +defs["igTextWrappedV"]["(const char*,va_list)"] = defs["igTextWrappedV"][1] +defs["igTreeNode"] = {} +defs["igTreeNode"][1] = {} +defs["igTreeNode"][1]["args"] = "(const char* label)" +defs["igTreeNode"][1]["argsT"] = {} +defs["igTreeNode"][1]["argsT"][1] = {} +defs["igTreeNode"][1]["argsT"][1]["name"] = "label" +defs["igTreeNode"][1]["argsT"][1]["type"] = "const char*" +defs["igTreeNode"][1]["argsoriginal"] = "(const char* label)" +defs["igTreeNode"][1]["call_args"] = "(label)" +defs["igTreeNode"][1]["cimguiname"] = "igTreeNode" +defs["igTreeNode"][1]["defaults"] = {} +defs["igTreeNode"][1]["funcname"] = "TreeNode" +defs["igTreeNode"][1]["location"] = "imgui:602" +defs["igTreeNode"][1]["namespace"] = "ImGui" +defs["igTreeNode"][1]["ov_cimguiname"] = "igTreeNode_Str" +defs["igTreeNode"][1]["ret"] = "bool" +defs["igTreeNode"][1]["signature"] = "(const char*)" +defs["igTreeNode"][1]["stname"] = "" +defs["igTreeNode"][2] = {} +defs["igTreeNode"][2]["args"] = "(const char* str_id,const char* fmt,...)" +defs["igTreeNode"][2]["argsT"] = {} +defs["igTreeNode"][2]["argsT"][1] = {} +defs["igTreeNode"][2]["argsT"][1]["name"] = "str_id" +defs["igTreeNode"][2]["argsT"][1]["type"] = "const char*" +defs["igTreeNode"][2]["argsT"][2] = {} +defs["igTreeNode"][2]["argsT"][2]["name"] = "fmt" +defs["igTreeNode"][2]["argsT"][2]["type"] = "const char*" +defs["igTreeNode"][2]["argsT"][3] = {} +defs["igTreeNode"][2]["argsT"][3]["name"] = "..." +defs["igTreeNode"][2]["argsT"][3]["type"] = "..." +defs["igTreeNode"][2]["argsoriginal"] = "(const char* str_id,const char* fmt,...)" +defs["igTreeNode"][2]["call_args"] = "(str_id,fmt,...)" +defs["igTreeNode"][2]["cimguiname"] = "igTreeNode" +defs["igTreeNode"][2]["defaults"] = {} +defs["igTreeNode"][2]["funcname"] = "TreeNode" +defs["igTreeNode"][2]["isvararg"] = "...)" +defs["igTreeNode"][2]["location"] = "imgui:603" +defs["igTreeNode"][2]["namespace"] = "ImGui" +defs["igTreeNode"][2]["ov_cimguiname"] = "igTreeNode_StrStr" +defs["igTreeNode"][2]["ret"] = "bool" +defs["igTreeNode"][2]["signature"] = "(const char*,const char*,...)" +defs["igTreeNode"][2]["stname"] = "" +defs["igTreeNode"][3] = {} +defs["igTreeNode"][3]["args"] = "(const void* ptr_id,const char* fmt,...)" +defs["igTreeNode"][3]["argsT"] = {} +defs["igTreeNode"][3]["argsT"][1] = {} +defs["igTreeNode"][3]["argsT"][1]["name"] = "ptr_id" +defs["igTreeNode"][3]["argsT"][1]["type"] = "const void*" +defs["igTreeNode"][3]["argsT"][2] = {} +defs["igTreeNode"][3]["argsT"][2]["name"] = "fmt" +defs["igTreeNode"][3]["argsT"][2]["type"] = "const char*" +defs["igTreeNode"][3]["argsT"][3] = {} +defs["igTreeNode"][3]["argsT"][3]["name"] = "..." +defs["igTreeNode"][3]["argsT"][3]["type"] = "..." +defs["igTreeNode"][3]["argsoriginal"] = "(const void* ptr_id,const char* fmt,...)" +defs["igTreeNode"][3]["call_args"] = "(ptr_id,fmt,...)" +defs["igTreeNode"][3]["cimguiname"] = "igTreeNode" +defs["igTreeNode"][3]["defaults"] = {} +defs["igTreeNode"][3]["funcname"] = "TreeNode" +defs["igTreeNode"][3]["isvararg"] = "...)" +defs["igTreeNode"][3]["location"] = "imgui:604" +defs["igTreeNode"][3]["namespace"] = "ImGui" +defs["igTreeNode"][3]["ov_cimguiname"] = "igTreeNode_Ptr" +defs["igTreeNode"][3]["ret"] = "bool" +defs["igTreeNode"][3]["signature"] = "(const void*,const char*,...)" +defs["igTreeNode"][3]["stname"] = "" +defs["igTreeNode"]["(const char*)"] = defs["igTreeNode"][1] +defs["igTreeNode"]["(const char*,const char*,...)"] = defs["igTreeNode"][2] +defs["igTreeNode"]["(const void*,const char*,...)"] = defs["igTreeNode"][3] +defs["igTreeNodeEx"] = {} +defs["igTreeNodeEx"][1] = {} +defs["igTreeNodeEx"][1]["args"] = "(const char* label,ImGuiTreeNodeFlags flags)" +defs["igTreeNodeEx"][1]["argsT"] = {} +defs["igTreeNodeEx"][1]["argsT"][1] = {} +defs["igTreeNodeEx"][1]["argsT"][1]["name"] = "label" +defs["igTreeNodeEx"][1]["argsT"][1]["type"] = "const char*" +defs["igTreeNodeEx"][1]["argsT"][2] = {} +defs["igTreeNodeEx"][1]["argsT"][2]["name"] = "flags" +defs["igTreeNodeEx"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeEx"][1]["argsoriginal"] = "(const char* label,ImGuiTreeNodeFlags flags=0)" +defs["igTreeNodeEx"][1]["call_args"] = "(label,flags)" +defs["igTreeNodeEx"][1]["cimguiname"] = "igTreeNodeEx" +defs["igTreeNodeEx"][1]["defaults"] = {} +defs["igTreeNodeEx"][1]["defaults"]["flags"] = "0" +defs["igTreeNodeEx"][1]["funcname"] = "TreeNodeEx" +defs["igTreeNodeEx"][1]["location"] = "imgui:607" +defs["igTreeNodeEx"][1]["namespace"] = "ImGui" +defs["igTreeNodeEx"][1]["ov_cimguiname"] = "igTreeNodeEx_Str" +defs["igTreeNodeEx"][1]["ret"] = "bool" +defs["igTreeNodeEx"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags)" +defs["igTreeNodeEx"][1]["stname"] = "" +defs["igTreeNodeEx"][2] = {} +defs["igTreeNodeEx"][2]["args"] = "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...)" +defs["igTreeNodeEx"][2]["argsT"] = {} +defs["igTreeNodeEx"][2]["argsT"][1] = {} +defs["igTreeNodeEx"][2]["argsT"][1]["name"] = "str_id" +defs["igTreeNodeEx"][2]["argsT"][1]["type"] = "const char*" +defs["igTreeNodeEx"][2]["argsT"][2] = {} +defs["igTreeNodeEx"][2]["argsT"][2]["name"] = "flags" +defs["igTreeNodeEx"][2]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeEx"][2]["argsT"][3] = {} +defs["igTreeNodeEx"][2]["argsT"][3]["name"] = "fmt" +defs["igTreeNodeEx"][2]["argsT"][3]["type"] = "const char*" +defs["igTreeNodeEx"][2]["argsT"][4] = {} +defs["igTreeNodeEx"][2]["argsT"][4]["name"] = "..." +defs["igTreeNodeEx"][2]["argsT"][4]["type"] = "..." +defs["igTreeNodeEx"][2]["argsoriginal"] = "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...)" +defs["igTreeNodeEx"][2]["call_args"] = "(str_id,flags,fmt,...)" +defs["igTreeNodeEx"][2]["cimguiname"] = "igTreeNodeEx" +defs["igTreeNodeEx"][2]["defaults"] = {} +defs["igTreeNodeEx"][2]["funcname"] = "TreeNodeEx" +defs["igTreeNodeEx"][2]["isvararg"] = "...)" +defs["igTreeNodeEx"][2]["location"] = "imgui:608" +defs["igTreeNodeEx"][2]["namespace"] = "ImGui" +defs["igTreeNodeEx"][2]["ov_cimguiname"] = "igTreeNodeEx_StrStr" +defs["igTreeNodeEx"][2]["ret"] = "bool" +defs["igTreeNodeEx"][2]["signature"] = "(const char*,ImGuiTreeNodeFlags,const char*,...)" +defs["igTreeNodeEx"][2]["stname"] = "" +defs["igTreeNodeEx"][3] = {} +defs["igTreeNodeEx"][3]["args"] = "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)" +defs["igTreeNodeEx"][3]["argsT"] = {} +defs["igTreeNodeEx"][3]["argsT"][1] = {} +defs["igTreeNodeEx"][3]["argsT"][1]["name"] = "ptr_id" +defs["igTreeNodeEx"][3]["argsT"][1]["type"] = "const void*" +defs["igTreeNodeEx"][3]["argsT"][2] = {} +defs["igTreeNodeEx"][3]["argsT"][2]["name"] = "flags" +defs["igTreeNodeEx"][3]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeEx"][3]["argsT"][3] = {} +defs["igTreeNodeEx"][3]["argsT"][3]["name"] = "fmt" +defs["igTreeNodeEx"][3]["argsT"][3]["type"] = "const char*" +defs["igTreeNodeEx"][3]["argsT"][4] = {} +defs["igTreeNodeEx"][3]["argsT"][4]["name"] = "..." +defs["igTreeNodeEx"][3]["argsT"][4]["type"] = "..." +defs["igTreeNodeEx"][3]["argsoriginal"] = "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)" +defs["igTreeNodeEx"][3]["call_args"] = "(ptr_id,flags,fmt,...)" +defs["igTreeNodeEx"][3]["cimguiname"] = "igTreeNodeEx" +defs["igTreeNodeEx"][3]["defaults"] = {} +defs["igTreeNodeEx"][3]["funcname"] = "TreeNodeEx" +defs["igTreeNodeEx"][3]["isvararg"] = "...)" +defs["igTreeNodeEx"][3]["location"] = "imgui:609" +defs["igTreeNodeEx"][3]["namespace"] = "ImGui" +defs["igTreeNodeEx"][3]["ov_cimguiname"] = "igTreeNodeEx_Ptr" +defs["igTreeNodeEx"][3]["ret"] = "bool" +defs["igTreeNodeEx"][3]["signature"] = "(const void*,ImGuiTreeNodeFlags,const char*,...)" +defs["igTreeNodeEx"][3]["stname"] = "" +defs["igTreeNodeEx"]["(const char*,ImGuiTreeNodeFlags)"] = defs["igTreeNodeEx"][1] +defs["igTreeNodeEx"]["(const char*,ImGuiTreeNodeFlags,const char*,...)"] = defs["igTreeNodeEx"][2] +defs["igTreeNodeEx"]["(const void*,ImGuiTreeNodeFlags,const char*,...)"] = defs["igTreeNodeEx"][3] +defs["igTreeNodeExV"] = {} +defs["igTreeNodeExV"][1] = {} +defs["igTreeNodeExV"][1]["args"] = "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)" +defs["igTreeNodeExV"][1]["argsT"] = {} +defs["igTreeNodeExV"][1]["argsT"][1] = {} +defs["igTreeNodeExV"][1]["argsT"][1]["name"] = "str_id" +defs["igTreeNodeExV"][1]["argsT"][1]["type"] = "const char*" +defs["igTreeNodeExV"][1]["argsT"][2] = {} +defs["igTreeNodeExV"][1]["argsT"][2]["name"] = "flags" +defs["igTreeNodeExV"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeExV"][1]["argsT"][3] = {} +defs["igTreeNodeExV"][1]["argsT"][3]["name"] = "fmt" +defs["igTreeNodeExV"][1]["argsT"][3]["type"] = "const char*" +defs["igTreeNodeExV"][1]["argsT"][4] = {} +defs["igTreeNodeExV"][1]["argsT"][4]["name"] = "args" +defs["igTreeNodeExV"][1]["argsT"][4]["type"] = "va_list" +defs["igTreeNodeExV"][1]["argsoriginal"] = "(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)" +defs["igTreeNodeExV"][1]["call_args"] = "(str_id,flags,fmt,args)" +defs["igTreeNodeExV"][1]["cimguiname"] = "igTreeNodeExV" +defs["igTreeNodeExV"][1]["defaults"] = {} +defs["igTreeNodeExV"][1]["funcname"] = "TreeNodeExV" +defs["igTreeNodeExV"][1]["location"] = "imgui:610" +defs["igTreeNodeExV"][1]["namespace"] = "ImGui" +defs["igTreeNodeExV"][1]["ov_cimguiname"] = "igTreeNodeExV_Str" +defs["igTreeNodeExV"][1]["ret"] = "bool" +defs["igTreeNodeExV"][1]["signature"] = "(const char*,ImGuiTreeNodeFlags,const char*,va_list)" +defs["igTreeNodeExV"][1]["stname"] = "" +defs["igTreeNodeExV"][2] = {} +defs["igTreeNodeExV"][2]["args"] = "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)" +defs["igTreeNodeExV"][2]["argsT"] = {} +defs["igTreeNodeExV"][2]["argsT"][1] = {} +defs["igTreeNodeExV"][2]["argsT"][1]["name"] = "ptr_id" +defs["igTreeNodeExV"][2]["argsT"][1]["type"] = "const void*" +defs["igTreeNodeExV"][2]["argsT"][2] = {} +defs["igTreeNodeExV"][2]["argsT"][2]["name"] = "flags" +defs["igTreeNodeExV"][2]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeExV"][2]["argsT"][3] = {} +defs["igTreeNodeExV"][2]["argsT"][3]["name"] = "fmt" +defs["igTreeNodeExV"][2]["argsT"][3]["type"] = "const char*" +defs["igTreeNodeExV"][2]["argsT"][4] = {} +defs["igTreeNodeExV"][2]["argsT"][4]["name"] = "args" +defs["igTreeNodeExV"][2]["argsT"][4]["type"] = "va_list" +defs["igTreeNodeExV"][2]["argsoriginal"] = "(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)" +defs["igTreeNodeExV"][2]["call_args"] = "(ptr_id,flags,fmt,args)" +defs["igTreeNodeExV"][2]["cimguiname"] = "igTreeNodeExV" +defs["igTreeNodeExV"][2]["defaults"] = {} +defs["igTreeNodeExV"][2]["funcname"] = "TreeNodeExV" +defs["igTreeNodeExV"][2]["location"] = "imgui:611" +defs["igTreeNodeExV"][2]["namespace"] = "ImGui" +defs["igTreeNodeExV"][2]["ov_cimguiname"] = "igTreeNodeExV_Ptr" +defs["igTreeNodeExV"][2]["ret"] = "bool" +defs["igTreeNodeExV"][2]["signature"] = "(const void*,ImGuiTreeNodeFlags,const char*,va_list)" +defs["igTreeNodeExV"][2]["stname"] = "" +defs["igTreeNodeExV"]["(const char*,ImGuiTreeNodeFlags,const char*,va_list)"] = defs["igTreeNodeExV"][1] +defs["igTreeNodeExV"]["(const void*,ImGuiTreeNodeFlags,const char*,va_list)"] = defs["igTreeNodeExV"][2] +defs["igTreeNodeV"] = {} +defs["igTreeNodeV"][1] = {} +defs["igTreeNodeV"][1]["args"] = "(const char* str_id,const char* fmt,va_list args)" +defs["igTreeNodeV"][1]["argsT"] = {} +defs["igTreeNodeV"][1]["argsT"][1] = {} +defs["igTreeNodeV"][1]["argsT"][1]["name"] = "str_id" +defs["igTreeNodeV"][1]["argsT"][1]["type"] = "const char*" +defs["igTreeNodeV"][1]["argsT"][2] = {} +defs["igTreeNodeV"][1]["argsT"][2]["name"] = "fmt" +defs["igTreeNodeV"][1]["argsT"][2]["type"] = "const char*" +defs["igTreeNodeV"][1]["argsT"][3] = {} +defs["igTreeNodeV"][1]["argsT"][3]["name"] = "args" +defs["igTreeNodeV"][1]["argsT"][3]["type"] = "va_list" +defs["igTreeNodeV"][1]["argsoriginal"] = "(const char* str_id,const char* fmt,va_list args)" +defs["igTreeNodeV"][1]["call_args"] = "(str_id,fmt,args)" +defs["igTreeNodeV"][1]["cimguiname"] = "igTreeNodeV" +defs["igTreeNodeV"][1]["defaults"] = {} +defs["igTreeNodeV"][1]["funcname"] = "TreeNodeV" +defs["igTreeNodeV"][1]["location"] = "imgui:605" +defs["igTreeNodeV"][1]["namespace"] = "ImGui" +defs["igTreeNodeV"][1]["ov_cimguiname"] = "igTreeNodeV_Str" +defs["igTreeNodeV"][1]["ret"] = "bool" +defs["igTreeNodeV"][1]["signature"] = "(const char*,const char*,va_list)" +defs["igTreeNodeV"][1]["stname"] = "" +defs["igTreeNodeV"][2] = {} +defs["igTreeNodeV"][2]["args"] = "(const void* ptr_id,const char* fmt,va_list args)" +defs["igTreeNodeV"][2]["argsT"] = {} +defs["igTreeNodeV"][2]["argsT"][1] = {} +defs["igTreeNodeV"][2]["argsT"][1]["name"] = "ptr_id" +defs["igTreeNodeV"][2]["argsT"][1]["type"] = "const void*" +defs["igTreeNodeV"][2]["argsT"][2] = {} +defs["igTreeNodeV"][2]["argsT"][2]["name"] = "fmt" +defs["igTreeNodeV"][2]["argsT"][2]["type"] = "const char*" +defs["igTreeNodeV"][2]["argsT"][3] = {} +defs["igTreeNodeV"][2]["argsT"][3]["name"] = "args" +defs["igTreeNodeV"][2]["argsT"][3]["type"] = "va_list" +defs["igTreeNodeV"][2]["argsoriginal"] = "(const void* ptr_id,const char* fmt,va_list args)" +defs["igTreeNodeV"][2]["call_args"] = "(ptr_id,fmt,args)" +defs["igTreeNodeV"][2]["cimguiname"] = "igTreeNodeV" +defs["igTreeNodeV"][2]["defaults"] = {} +defs["igTreeNodeV"][2]["funcname"] = "TreeNodeV" +defs["igTreeNodeV"][2]["location"] = "imgui:606" +defs["igTreeNodeV"][2]["namespace"] = "ImGui" +defs["igTreeNodeV"][2]["ov_cimguiname"] = "igTreeNodeV_Ptr" +defs["igTreeNodeV"][2]["ret"] = "bool" +defs["igTreeNodeV"][2]["signature"] = "(const void*,const char*,va_list)" +defs["igTreeNodeV"][2]["stname"] = "" +defs["igTreeNodeV"]["(const char*,const char*,va_list)"] = defs["igTreeNodeV"][1] +defs["igTreeNodeV"]["(const void*,const char*,va_list)"] = defs["igTreeNodeV"][2] +defs["igTreePop"] = {} +defs["igTreePop"][1] = {} +defs["igTreePop"][1]["args"] = "()" +defs["igTreePop"][1]["argsT"] = {} +defs["igTreePop"][1]["argsoriginal"] = "()" +defs["igTreePop"][1]["call_args"] = "()" +defs["igTreePop"][1]["cimguiname"] = "igTreePop" +defs["igTreePop"][1]["defaults"] = {} +defs["igTreePop"][1]["funcname"] = "TreePop" +defs["igTreePop"][1]["location"] = "imgui:614" +defs["igTreePop"][1]["namespace"] = "ImGui" +defs["igTreePop"][1]["ov_cimguiname"] = "igTreePop" +defs["igTreePop"][1]["ret"] = "void" +defs["igTreePop"][1]["signature"] = "()" +defs["igTreePop"][1]["stname"] = "" +defs["igTreePop"]["()"] = defs["igTreePop"][1] +defs["igTreePush"] = {} +defs["igTreePush"][1] = {} +defs["igTreePush"][1]["args"] = "(const char* str_id)" +defs["igTreePush"][1]["argsT"] = {} +defs["igTreePush"][1]["argsT"][1] = {} +defs["igTreePush"][1]["argsT"][1]["name"] = "str_id" +defs["igTreePush"][1]["argsT"][1]["type"] = "const char*" +defs["igTreePush"][1]["argsoriginal"] = "(const char* str_id)" +defs["igTreePush"][1]["call_args"] = "(str_id)" +defs["igTreePush"][1]["cimguiname"] = "igTreePush" +defs["igTreePush"][1]["defaults"] = {} +defs["igTreePush"][1]["funcname"] = "TreePush" +defs["igTreePush"][1]["location"] = "imgui:612" +defs["igTreePush"][1]["namespace"] = "ImGui" +defs["igTreePush"][1]["ov_cimguiname"] = "igTreePush_Str" +defs["igTreePush"][1]["ret"] = "void" +defs["igTreePush"][1]["signature"] = "(const char*)" +defs["igTreePush"][1]["stname"] = "" +defs["igTreePush"][2] = {} +defs["igTreePush"][2]["args"] = "(const void* ptr_id)" +defs["igTreePush"][2]["argsT"] = {} +defs["igTreePush"][2]["argsT"][1] = {} +defs["igTreePush"][2]["argsT"][1]["name"] = "ptr_id" +defs["igTreePush"][2]["argsT"][1]["type"] = "const void*" +defs["igTreePush"][2]["argsoriginal"] = "(const void* ptr_id)" +defs["igTreePush"][2]["call_args"] = "(ptr_id)" +defs["igTreePush"][2]["cimguiname"] = "igTreePush" +defs["igTreePush"][2]["defaults"] = {} +defs["igTreePush"][2]["funcname"] = "TreePush" +defs["igTreePush"][2]["location"] = "imgui:613" +defs["igTreePush"][2]["namespace"] = "ImGui" +defs["igTreePush"][2]["ov_cimguiname"] = "igTreePush_Ptr" +defs["igTreePush"][2]["ret"] = "void" +defs["igTreePush"][2]["signature"] = "(const void*)" +defs["igTreePush"][2]["stname"] = "" +defs["igTreePush"]["(const char*)"] = defs["igTreePush"][1] +defs["igTreePush"]["(const void*)"] = defs["igTreePush"][2] +defs["igUnindent"] = {} +defs["igUnindent"][1] = {} +defs["igUnindent"][1]["args"] = "(float indent_w)" +defs["igUnindent"][1]["argsT"] = {} +defs["igUnindent"][1]["argsT"][1] = {} +defs["igUnindent"][1]["argsT"][1]["name"] = "indent_w" +defs["igUnindent"][1]["argsT"][1]["type"] = "float" +defs["igUnindent"][1]["argsoriginal"] = "(float indent_w=0.0f)" +defs["igUnindent"][1]["call_args"] = "(indent_w)" +defs["igUnindent"][1]["cimguiname"] = "igUnindent" +defs["igUnindent"][1]["defaults"] = {} +defs["igUnindent"][1]["defaults"]["indent_w"] = "0.0f" +defs["igUnindent"][1]["funcname"] = "Unindent" +defs["igUnindent"][1]["location"] = "imgui:444" +defs["igUnindent"][1]["namespace"] = "ImGui" +defs["igUnindent"][1]["ov_cimguiname"] = "igUnindent" +defs["igUnindent"][1]["ret"] = "void" +defs["igUnindent"][1]["signature"] = "(float)" +defs["igUnindent"][1]["stname"] = "" +defs["igUnindent"]["(float)"] = defs["igUnindent"][1] +defs["igVSliderFloat"] = {} +defs["igVSliderFloat"][1] = {} +defs["igVSliderFloat"][1]["args"] = "(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" +defs["igVSliderFloat"][1]["argsT"] = {} +defs["igVSliderFloat"][1]["argsT"][1] = {} +defs["igVSliderFloat"][1]["argsT"][1]["name"] = "label" +defs["igVSliderFloat"][1]["argsT"][1]["type"] = "const char*" +defs["igVSliderFloat"][1]["argsT"][2] = {} +defs["igVSliderFloat"][1]["argsT"][2]["name"] = "size" +defs["igVSliderFloat"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igVSliderFloat"][1]["argsT"][3] = {} +defs["igVSliderFloat"][1]["argsT"][3]["name"] = "v" +defs["igVSliderFloat"][1]["argsT"][3]["type"] = "float*" +defs["igVSliderFloat"][1]["argsT"][4] = {} +defs["igVSliderFloat"][1]["argsT"][4]["name"] = "v_min" +defs["igVSliderFloat"][1]["argsT"][4]["type"] = "float" +defs["igVSliderFloat"][1]["argsT"][5] = {} +defs["igVSliderFloat"][1]["argsT"][5]["name"] = "v_max" +defs["igVSliderFloat"][1]["argsT"][5]["type"] = "float" +defs["igVSliderFloat"][1]["argsT"][6] = {} +defs["igVSliderFloat"][1]["argsT"][6]["name"] = "format" +defs["igVSliderFloat"][1]["argsT"][6]["type"] = "const char*" +defs["igVSliderFloat"][1]["argsT"][7] = {} +defs["igVSliderFloat"][1]["argsT"][7]["name"] = "flags" +defs["igVSliderFloat"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igVSliderFloat"][1]["argsoriginal"] = "(const char* label,const ImVec2& size,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)" +defs["igVSliderFloat"][1]["call_args"] = "(label,size,v,v_min,v_max,format,flags)" +defs["igVSliderFloat"][1]["cimguiname"] = "igVSliderFloat" +defs["igVSliderFloat"][1]["defaults"] = {} +defs["igVSliderFloat"][1]["defaults"]["flags"] = "0" +defs["igVSliderFloat"][1]["defaults"]["format"] = "\"%.3f\"" +defs["igVSliderFloat"][1]["funcname"] = "VSliderFloat" +defs["igVSliderFloat"][1]["location"] = "imgui:568" +defs["igVSliderFloat"][1]["namespace"] = "ImGui" +defs["igVSliderFloat"][1]["ov_cimguiname"] = "igVSliderFloat" +defs["igVSliderFloat"][1]["ret"] = "bool" +defs["igVSliderFloat"][1]["signature"] = "(const char*,const ImVec2,float*,float,float,const char*,ImGuiSliderFlags)" +defs["igVSliderFloat"][1]["stname"] = "" +defs["igVSliderFloat"]["(const char*,const ImVec2,float*,float,float,const char*,ImGuiSliderFlags)"] = defs["igVSliderFloat"][1] +defs["igVSliderInt"] = {} +defs["igVSliderInt"][1] = {} +defs["igVSliderInt"][1]["args"] = "(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)" +defs["igVSliderInt"][1]["argsT"] = {} +defs["igVSliderInt"][1]["argsT"][1] = {} +defs["igVSliderInt"][1]["argsT"][1]["name"] = "label" +defs["igVSliderInt"][1]["argsT"][1]["type"] = "const char*" +defs["igVSliderInt"][1]["argsT"][2] = {} +defs["igVSliderInt"][1]["argsT"][2]["name"] = "size" +defs["igVSliderInt"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igVSliderInt"][1]["argsT"][3] = {} +defs["igVSliderInt"][1]["argsT"][3]["name"] = "v" +defs["igVSliderInt"][1]["argsT"][3]["type"] = "int*" +defs["igVSliderInt"][1]["argsT"][4] = {} +defs["igVSliderInt"][1]["argsT"][4]["name"] = "v_min" +defs["igVSliderInt"][1]["argsT"][4]["type"] = "int" +defs["igVSliderInt"][1]["argsT"][5] = {} +defs["igVSliderInt"][1]["argsT"][5]["name"] = "v_max" +defs["igVSliderInt"][1]["argsT"][5]["type"] = "int" +defs["igVSliderInt"][1]["argsT"][6] = {} +defs["igVSliderInt"][1]["argsT"][6]["name"] = "format" +defs["igVSliderInt"][1]["argsT"][6]["type"] = "const char*" +defs["igVSliderInt"][1]["argsT"][7] = {} +defs["igVSliderInt"][1]["argsT"][7]["name"] = "flags" +defs["igVSliderInt"][1]["argsT"][7]["type"] = "ImGuiSliderFlags" +defs["igVSliderInt"][1]["argsoriginal"] = "(const char* label,const ImVec2& size,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)" +defs["igVSliderInt"][1]["call_args"] = "(label,size,v,v_min,v_max,format,flags)" +defs["igVSliderInt"][1]["cimguiname"] = "igVSliderInt" +defs["igVSliderInt"][1]["defaults"] = {} +defs["igVSliderInt"][1]["defaults"]["flags"] = "0" +defs["igVSliderInt"][1]["defaults"]["format"] = "\"%d\"" +defs["igVSliderInt"][1]["funcname"] = "VSliderInt" +defs["igVSliderInt"][1]["location"] = "imgui:569" +defs["igVSliderInt"][1]["namespace"] = "ImGui" +defs["igVSliderInt"][1]["ov_cimguiname"] = "igVSliderInt" +defs["igVSliderInt"][1]["ret"] = "bool" +defs["igVSliderInt"][1]["signature"] = "(const char*,const ImVec2,int*,int,int,const char*,ImGuiSliderFlags)" +defs["igVSliderInt"][1]["stname"] = "" +defs["igVSliderInt"]["(const char*,const ImVec2,int*,int,int,const char*,ImGuiSliderFlags)"] = defs["igVSliderInt"][1] +defs["igVSliderScalar"] = {} +defs["igVSliderScalar"][1] = {} +defs["igVSliderScalar"][1]["args"] = "(const char* label,const ImVec2 size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)" +defs["igVSliderScalar"][1]["argsT"] = {} +defs["igVSliderScalar"][1]["argsT"][1] = {} +defs["igVSliderScalar"][1]["argsT"][1]["name"] = "label" +defs["igVSliderScalar"][1]["argsT"][1]["type"] = "const char*" +defs["igVSliderScalar"][1]["argsT"][2] = {} +defs["igVSliderScalar"][1]["argsT"][2]["name"] = "size" +defs["igVSliderScalar"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igVSliderScalar"][1]["argsT"][3] = {} +defs["igVSliderScalar"][1]["argsT"][3]["name"] = "data_type" +defs["igVSliderScalar"][1]["argsT"][3]["type"] = "ImGuiDataType" +defs["igVSliderScalar"][1]["argsT"][4] = {} +defs["igVSliderScalar"][1]["argsT"][4]["name"] = "p_data" +defs["igVSliderScalar"][1]["argsT"][4]["type"] = "void*" +defs["igVSliderScalar"][1]["argsT"][5] = {} +defs["igVSliderScalar"][1]["argsT"][5]["name"] = "p_min" +defs["igVSliderScalar"][1]["argsT"][5]["type"] = "const void*" +defs["igVSliderScalar"][1]["argsT"][6] = {} +defs["igVSliderScalar"][1]["argsT"][6]["name"] = "p_max" +defs["igVSliderScalar"][1]["argsT"][6]["type"] = "const void*" +defs["igVSliderScalar"][1]["argsT"][7] = {} +defs["igVSliderScalar"][1]["argsT"][7]["name"] = "format" +defs["igVSliderScalar"][1]["argsT"][7]["type"] = "const char*" +defs["igVSliderScalar"][1]["argsT"][8] = {} +defs["igVSliderScalar"][1]["argsT"][8]["name"] = "flags" +defs["igVSliderScalar"][1]["argsT"][8]["type"] = "ImGuiSliderFlags" +defs["igVSliderScalar"][1]["argsoriginal"] = "(const char* label,const ImVec2& size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)" +defs["igVSliderScalar"][1]["call_args"] = "(label,size,data_type,p_data,p_min,p_max,format,flags)" +defs["igVSliderScalar"][1]["cimguiname"] = "igVSliderScalar" +defs["igVSliderScalar"][1]["defaults"] = {} +defs["igVSliderScalar"][1]["defaults"]["flags"] = "0" +defs["igVSliderScalar"][1]["defaults"]["format"] = "NULL" +defs["igVSliderScalar"][1]["funcname"] = "VSliderScalar" +defs["igVSliderScalar"][1]["location"] = "imgui:570" +defs["igVSliderScalar"][1]["namespace"] = "ImGui" +defs["igVSliderScalar"][1]["ov_cimguiname"] = "igVSliderScalar" +defs["igVSliderScalar"][1]["ret"] = "bool" +defs["igVSliderScalar"][1]["signature"] = "(const char*,const ImVec2,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igVSliderScalar"][1]["stname"] = "" +defs["igVSliderScalar"]["(const char*,const ImVec2,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igVSliderScalar"][1] +defs["igValue"] = {} +defs["igValue"][1] = {} +defs["igValue"][1]["args"] = "(const char* prefix,bool b)" +defs["igValue"][1]["argsT"] = {} +defs["igValue"][1]["argsT"][1] = {} +defs["igValue"][1]["argsT"][1]["name"] = "prefix" +defs["igValue"][1]["argsT"][1]["type"] = "const char*" +defs["igValue"][1]["argsT"][2] = {} +defs["igValue"][1]["argsT"][2]["name"] = "b" +defs["igValue"][1]["argsT"][2]["type"] = "bool" +defs["igValue"][1]["argsoriginal"] = "(const char* prefix,bool b)" +defs["igValue"][1]["call_args"] = "(prefix,b)" +defs["igValue"][1]["cimguiname"] = "igValue" +defs["igValue"][1]["defaults"] = {} +defs["igValue"][1]["funcname"] = "Value" +defs["igValue"][1]["location"] = "imgui:646" +defs["igValue"][1]["namespace"] = "ImGui" +defs["igValue"][1]["ov_cimguiname"] = "igValue_Bool" +defs["igValue"][1]["ret"] = "void" +defs["igValue"][1]["signature"] = "(const char*,bool)" +defs["igValue"][1]["stname"] = "" +defs["igValue"][2] = {} +defs["igValue"][2]["args"] = "(const char* prefix,int v)" +defs["igValue"][2]["argsT"] = {} +defs["igValue"][2]["argsT"][1] = {} +defs["igValue"][2]["argsT"][1]["name"] = "prefix" +defs["igValue"][2]["argsT"][1]["type"] = "const char*" +defs["igValue"][2]["argsT"][2] = {} +defs["igValue"][2]["argsT"][2]["name"] = "v" +defs["igValue"][2]["argsT"][2]["type"] = "int" +defs["igValue"][2]["argsoriginal"] = "(const char* prefix,int v)" +defs["igValue"][2]["call_args"] = "(prefix,v)" +defs["igValue"][2]["cimguiname"] = "igValue" +defs["igValue"][2]["defaults"] = {} +defs["igValue"][2]["funcname"] = "Value" +defs["igValue"][2]["location"] = "imgui:647" +defs["igValue"][2]["namespace"] = "ImGui" +defs["igValue"][2]["ov_cimguiname"] = "igValue_Int" +defs["igValue"][2]["ret"] = "void" +defs["igValue"][2]["signature"] = "(const char*,int)" +defs["igValue"][2]["stname"] = "" +defs["igValue"][3] = {} +defs["igValue"][3]["args"] = "(const char* prefix,unsigned int v)" +defs["igValue"][3]["argsT"] = {} +defs["igValue"][3]["argsT"][1] = {} +defs["igValue"][3]["argsT"][1]["name"] = "prefix" +defs["igValue"][3]["argsT"][1]["type"] = "const char*" +defs["igValue"][3]["argsT"][2] = {} +defs["igValue"][3]["argsT"][2]["name"] = "v" +defs["igValue"][3]["argsT"][2]["type"] = "unsigned int" +defs["igValue"][3]["argsoriginal"] = "(const char* prefix,unsigned int v)" +defs["igValue"][3]["call_args"] = "(prefix,v)" +defs["igValue"][3]["cimguiname"] = "igValue" +defs["igValue"][3]["defaults"] = {} +defs["igValue"][3]["funcname"] = "Value" +defs["igValue"][3]["location"] = "imgui:648" +defs["igValue"][3]["namespace"] = "ImGui" +defs["igValue"][3]["ov_cimguiname"] = "igValue_Uint" +defs["igValue"][3]["ret"] = "void" +defs["igValue"][3]["signature"] = "(const char*,unsigned int)" +defs["igValue"][3]["stname"] = "" +defs["igValue"][4] = {} +defs["igValue"][4]["args"] = "(const char* prefix,float v,const char* float_format)" +defs["igValue"][4]["argsT"] = {} +defs["igValue"][4]["argsT"][1] = {} +defs["igValue"][4]["argsT"][1]["name"] = "prefix" +defs["igValue"][4]["argsT"][1]["type"] = "const char*" +defs["igValue"][4]["argsT"][2] = {} +defs["igValue"][4]["argsT"][2]["name"] = "v" +defs["igValue"][4]["argsT"][2]["type"] = "float" +defs["igValue"][4]["argsT"][3] = {} +defs["igValue"][4]["argsT"][3]["name"] = "float_format" +defs["igValue"][4]["argsT"][3]["type"] = "const char*" +defs["igValue"][4]["argsoriginal"] = "(const char* prefix,float v,const char* float_format=((void*)0))" +defs["igValue"][4]["call_args"] = "(prefix,v,float_format)" +defs["igValue"][4]["cimguiname"] = "igValue" +defs["igValue"][4]["defaults"] = {} +defs["igValue"][4]["defaults"]["float_format"] = "NULL" +defs["igValue"][4]["funcname"] = "Value" +defs["igValue"][4]["location"] = "imgui:649" +defs["igValue"][4]["namespace"] = "ImGui" +defs["igValue"][4]["ov_cimguiname"] = "igValue_Float" +defs["igValue"][4]["ret"] = "void" +defs["igValue"][4]["signature"] = "(const char*,float,const char*)" +defs["igValue"][4]["stname"] = "" +defs["igValue"]["(const char*,bool)"] = defs["igValue"][1] +defs["igValue"]["(const char*,float,const char*)"] = defs["igValue"][4] +defs["igValue"]["(const char*,int)"] = defs["igValue"][2] +defs["igValue"]["(const char*,unsigned int)"] = defs["igValue"][3] + +return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/LICENSE.txt b/imgui-sys/third-party/imgui-master-freetype/imgui/LICENSE.txt new file mode 100644 index 000000000..4023e0caa --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-2022 Omar Cornut + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imconfig.h b/imgui-sys/third-party/imgui-master-freetype/imgui/imconfig.h new file mode 100644 index 000000000..ed265082d --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imconfig.h @@ -0,0 +1,120 @@ +//----------------------------------------------------------------------------- +// COMPILE-TIME OPTIONS FOR DEAR IMGUI +// Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure. +// You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext() to rewire memory allocation functions. +//----------------------------------------------------------------------------- +// A) You may edit imconfig.h (and not overwrite it when updating Dear ImGui, or maintain a patch/rebased branch with your modifications to it) +// B) or '#define IMGUI_USER_CONFIG "my_imgui_config.h"' in your project and then add directives in your own file without touching this template. +//----------------------------------------------------------------------------- +// You need to make sure that configuration settings are defined consistently _everywhere_ Dear ImGui is used, which include the imgui*.cpp +// files but also _any_ of your code that uses Dear ImGui. This is because some compile-time options have an affect on data structures. +// Defining those options in imconfig.h will ensure every compilation unit gets to see the same data structure layouts. +// Call IMGUI_CHECKVERSION() from your .cpp files to verify that the data structures your files are using are matching the ones imgui.cpp is using. +//----------------------------------------------------------------------------- + +#pragma once + +//---- Define assertion handler. Defaults to calling assert(). +// If your macro uses multiple statements, make sure is enclosed in a 'do { .. } while (0)' block so it can be used as a single statement. +//#define IM_ASSERT(_EXPR) MyAssert(_EXPR) +//#define IM_ASSERT(_EXPR) ((void)(_EXPR)) // Disable asserts + +//---- Define attributes of all API symbols declarations, e.g. for DLL under Windows +// Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. +// DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() +// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. +//#define IMGUI_API __declspec( dllexport ) +//#define IMGUI_API __declspec( dllimport ) + +//---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to avoid using soon-to-be obsolete function/names. +//#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS +//#define IMGUI_DISABLE_OBSOLETE_KEYIO // 1.87: disable legacy io.KeyMap[]+io.KeysDown[] in favor io.AddKeyEvent(). This will be folded into IMGUI_DISABLE_OBSOLETE_FUNCTIONS in a few versions. + +//---- Disable all of Dear ImGui or don't implement standard windows/tools. +// It is very strongly recommended to NOT disable the demo windows and debug tool during development. They are extremely useful in day to day work. Please read comments in imgui_demo.cpp. +//#define IMGUI_DISABLE // Disable everything: all headers and source files will be empty. +//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. +//#define IMGUI_DISABLE_DEBUG_TOOLS // Disable metrics/debugger and other debug tools: ShowMetricsWindow(), ShowDebugLogWindow() and ShowStackToolWindow() will be empty (this was called IMGUI_DISABLE_METRICS_WINDOW before 1.88). + +//---- Don't implement some functions to reduce linkage requirements. +//#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. (user32.lib/.a, kernel32.lib/.a) +//#define IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] [Default with Visual Studio] Implement default IME handler (require imm32.lib/.a, auto-link for Visual Studio, -limm32 on command-line for MinGW) +//#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] [Default with non-Visual Studio compilers] Don't implement default IME handler (won't require imm32.lib/.a) +//#define IMGUI_DISABLE_WIN32_FUNCTIONS // [Win32] Won't use and link with any Win32 function (clipboard, ime). +//#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS // [OSX] Implement default OSX clipboard handler (need to link with '-framework ApplicationServices', this is why this is not the default). +//#define IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS // Don't implement ImFormatString/ImFormatStringV so you can implement them yourself (e.g. if you don't want to link with vsnprintf) +//#define IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS // Don't implement ImFabs/ImSqrt/ImPow/ImFmod/ImCos/ImSin/ImAcos/ImAtan2 so you can implement them yourself. +//#define IMGUI_DISABLE_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle at all (replace them with dummies) +//#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle so you can implement them yourself if you don't want to link with fopen/fclose/fread/fwrite. This will also disable the LogToTTY() function. +//#define IMGUI_DISABLE_DEFAULT_ALLOCATORS // Don't implement default allocators calling malloc()/free() to avoid linking with them. You will need to call ImGui::SetAllocatorFunctions(). +//#define IMGUI_DISABLE_SSE // Disable use of SSE intrinsics even if available + +//---- Include imgui_user.h at the end of imgui.h as a convenience +//#define IMGUI_INCLUDE_IMGUI_USER_H + +//---- Pack colors to BGRA8 instead of RGBA8 (to avoid converting from one to another) +//#define IMGUI_USE_BGRA_PACKED_COLOR + +//---- Use 32-bit for ImWchar (default is 16-bit) to support unicode planes 1-16. (e.g. point beyond 0xFFFF like emoticons, dingbats, symbols, shapes, ancient languages, etc...) +//#define IMGUI_USE_WCHAR32 + +//---- Avoid multiple STB libraries implementations, or redefine path/filenames to prioritize another version +// By default the embedded implementations are declared static and not available outside of Dear ImGui sources files. +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_STB_SPRINTF_FILENAME "my_folder/stb_sprintf.h" // only used if enabled +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION + +//---- Use stb_sprintf.h for a faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined) +// Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by stb_sprintf.h. +//#define IMGUI_USE_STB_SPRINTF + +//---- Use FreeType to build and rasterize the font atlas (instead of stb_truetype which is embedded by default in Dear ImGui) +// Requires FreeType headers to be available in the include path. Requires program to be compiled with 'misc/freetype/imgui_freetype.cpp' (in this repository) + the FreeType library (not provided). +// On Windows you may use vcpkg with 'vcpkg install freetype --triplet=x64-windows' + 'vcpkg integrate install'. +//#define IMGUI_ENABLE_FREETYPE + +//---- Use stb_truetype to build and rasterize the font atlas (default) +// The only purpose of this define is if you want force compilation of the stb_truetype backend ALONG with the FreeType backend. +//#define IMGUI_ENABLE_STB_TRUETYPE + +//---- Define constructor and implicit cast operators to convert back<>forth between your math types and ImVec2/ImVec4. +// This will be inlined as part of ImVec2 and ImVec4 class declarations. +/* +#define IM_VEC2_CLASS_EXTRA \ + constexpr ImVec2(const MyVec2& f) : x(f.x), y(f.y) {} \ + operator MyVec2() const { return MyVec2(x,y); } + +#define IM_VEC4_CLASS_EXTRA \ + constexpr ImVec4(const MyVec4& f) : x(f.x), y(f.y), z(f.z), w(f.w) {} \ + operator MyVec4() const { return MyVec4(x,y,z,w); } +*/ + +//---- Use 32-bit vertex indices (default is 16-bit) is one way to allow large meshes with more than 64K vertices. +// Your renderer backend will need to support it (most example renderer backends support both 16/32-bit indices). +// Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd::VtxOffset in your renderer. +// Read about ImGuiBackendFlags_RendererHasVtxOffset for details. +//#define ImDrawIdx unsigned int + +//---- Override ImDrawCallback signature (will need to modify renderer backends accordingly) +//struct ImDrawList; +//struct ImDrawCmd; +//typedef void (*MyImDrawCallback)(const ImDrawList* draw_list, const ImDrawCmd* cmd, void* my_renderer_user_data); +//#define ImDrawCallback MyImDrawCallback + +//---- Debug Tools: Macro to break in Debugger +// (use 'Metrics->Tools->Item Picker' to pick widgets with the mouse and break into them for easy debugging.) +//#define IM_DEBUG_BREAK IM_ASSERT(0) +//#define IM_DEBUG_BREAK __debugbreak() + +//---- Debug Tools: Enable slower asserts +//#define IMGUI_DEBUG_PARANOID + +//---- Tip: You can add extra functions within the ImGui:: namespace, here or in your own headers files. +/* +namespace ImGui +{ + void MyFunction(const char* name, const MyMatrix44& v); +} +*/ diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imgui.cpp b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui.cpp new file mode 100644 index 000000000..d17903903 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui.cpp @@ -0,0 +1,14238 @@ +// dear imgui, v1.89.1 +// (main code and documentation) + +// Help: +// - Read FAQ at http://dearimgui.org/faq +// - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// Read imgui.cpp for details, links and comments. + +// Resources: +// - FAQ http://dearimgui.org/faq +// - Homepage & latest https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/5243 (please post your screenshots/video there!) +// - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Issues & support https://github.com/ocornut/imgui/issues + +// Getting Started? +// - For first-time users having issues compiling/linking/running or issues loading fonts: +// please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. + +// Developed by Omar Cornut and every direct or indirect contributors to the GitHub. +// See LICENSE.txt for copyright and licensing details (standard MIT License). +// This library is free but needs your support to sustain development and maintenance. +// Businesses: you can support continued development via invoiced technical support, maintenance and sponsoring contracts. Please reach out to "contact AT dearimgui.com". +// Individuals: you can support continued development via donations. See docs/README or web page. + +// It is recommended that you don't modify imgui.cpp! It will become difficult for you to update the library. +// Note that 'ImGui::' being a namespace, you can add functions into the namespace from your own source files, without +// modifying imgui.h or imgui.cpp. You may include imgui_internal.h to access internal data structures, but it doesn't +// come with any guarantee of forward compatibility. Discussing your changes on the GitHub Issue Tracker may lead you +// to a better solution or official support for them. + +/* + +Index of this file: + +DOCUMENTATION + +- MISSION STATEMENT +- END-USER GUIDE +- PROGRAMMER GUIDE + - READ FIRST + - HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + - GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + - HOW A SIMPLE APPLICATION MAY LOOK LIKE + - HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE + - USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS +- API BREAKING CHANGES (read me when you update!) +- FREQUENTLY ASKED QUESTIONS (FAQ) + - Read all answers online: https://www.dearimgui.org/faq, or in docs/FAQ.md (with a Markdown viewer) + +CODE +(search for "[SECTION]" in the code to find them) + +// [SECTION] INCLUDES +// [SECTION] FORWARD DECLARATIONS +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +// [SECTION] MISC HELPERS/UTILITIES (File functions) +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// [SECTION] ImGuiStorage +// [SECTION] ImGuiTextFilter +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex +// [SECTION] ImGuiListClipper +// [SECTION] STYLING +// [SECTION] RENDER HELPERS +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +// [SECTION] INPUTS +// [SECTION] ERROR CHECKING +// [SECTION] LAYOUT +// [SECTION] SCROLLING +// [SECTION] TOOLTIPS +// [SECTION] POPUPS +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +// [SECTION] DRAG AND DROP +// [SECTION] LOGGING/CAPTURING +// [SECTION] SETTINGS +// [SECTION] LOCALIZATION +// [SECTION] VIEWPORTS, PLATFORM WINDOWS +// [SECTION] PLATFORM DEPENDENT HELPERS +// [SECTION] METRICS/DEBUGGER WINDOW +// [SECTION] DEBUG LOG WINDOW +// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) + +*/ + +//----------------------------------------------------------------------------- +// DOCUMENTATION +//----------------------------------------------------------------------------- + +/* + + MISSION STATEMENT + ================= + + - Easy to use to create code-driven and data-driven tools. + - Easy to use to create ad hoc short-lived tools and long-lived, more elaborate tools. + - Easy to hack and improve. + - Minimize setup and maintenance. + - Minimize state storage on user side. + - Minimize state synchronization. + - Portable, minimize dependencies, run on target (consoles, phones, etc.). + - Efficient runtime and memory consumption. + + Designed for developers and content-creators, not the typical end-user! Some of the current weaknesses includes: + + - Doesn't look fancy, doesn't animate. + - Limited layout features, intricate layouts are typically crafted in code. + + + END-USER GUIDE + ============== + + - Double-click on title bar to collapse window. + - Click upper right corner to close a window, available when 'bool* p_open' is passed to ImGui::Begin(). + - Click and drag on lower right corner to resize window (double-click to auto fit window to its contents). + - Click and drag on any empty space to move window. + - TAB/SHIFT+TAB to cycle through keyboard editable fields. + - CTRL+Click on a slider or drag box to input value as text. + - Use mouse wheel to scroll. + - Text editor: + - Hold SHIFT or use mouse to select text. + - CTRL+Left/Right to word jump. + - CTRL+Shift+Left/Right to select words. + - CTRL+A or Double-Click to select all. + - CTRL+X,CTRL+C,CTRL+V to use OS clipboard/ + - CTRL+Z,CTRL+Y to undo/redo. + - ESCAPE to revert text to its original value. + - Controls are automatically adjusted for OSX to match standard OSX text editing operations. + - General Keyboard controls: enable with ImGuiConfigFlags_NavEnableKeyboard. + - General Gamepad controls: enable with ImGuiConfigFlags_NavEnableGamepad. Download controller mapping PNG/PSD at http://dearimgui.org/controls_sheets + + + PROGRAMMER GUIDE + ================ + + READ FIRST + ---------- + - Remember to check the wonderful Wiki (https://github.com/ocornut/imgui/wiki) + - Your code creates the UI, if your code doesn't run the UI is gone! The UI can be highly dynamic, there are no construction or + destruction steps, less superfluous data retention on your side, less state duplication, less state synchronization, fewer bugs. + - Call and read ImGui::ShowDemoWindow() for demo code demonstrating most features. + - The library is designed to be built from sources. Avoid pre-compiled binaries and packaged versions. See imconfig.h to configure your build. + - Dear ImGui is an implementation of the IMGUI paradigm (immediate-mode graphical user interface, a term coined by Casey Muratori). + You can learn about IMGUI principles at http://www.johno.se/book/imgui.html, http://mollyrocket.com/861 & more links in Wiki. + - Dear ImGui is a "single pass" rasterizing implementation of the IMGUI paradigm, aimed at ease of use and high-performances. + For every application frame, your UI code will be called only once. This is in contrast to e.g. Unity's implementation of an IMGUI, + where the UI code is called multiple times ("multiple passes") from a single entry point. There are pros and cons to both approaches. + - Our origin is on the top-left. In axis aligned bounding boxes, Min = top-left, Max = bottom-right. + - This codebase is also optimized to yield decent performances with typical "Debug" builds settings. + - Please make sure you have asserts enabled (IM_ASSERT redirects to assert() by default, but can be redirected). + If you get an assert, read the messages and comments around the assert. + - C++: this is a very C-ish codebase: we don't rely on C++11, we don't include any C++ headers, and ImGui:: is a namespace. + - C++: ImVec2/ImVec4 do not expose math operators by default, because it is expected that you use your own math types. + See FAQ "How can I use my own math types instead of ImVec2/ImVec4?" for details about setting up imconfig.h for that. + However, imgui_internal.h can optionally export math operators for ImVec2/ImVec4, which we use in this codebase. + - C++: pay attention that ImVector<> manipulates plain-old-data and does not honor construction/destruction (avoid using it in your code!). + + + HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + ---------------------------------------------- + - Overwrite all the sources files except for imconfig.h (if you have modified your copy of imconfig.h) + - Or maintain your own branch where you have imconfig.h modified as a top-most commit which you can regularly rebase over "master". + - You can also use '#define IMGUI_USER_CONFIG "my_config_file.h" to redirect configuration to your own file. + - Read the "API BREAKING CHANGES" section (below). This is where we list occasional API breaking changes. + If a function/type has been renamed / or marked obsolete, try to fix the name in your code before it is permanently removed + from the public API. If you have a problem with a missing function/symbols, search for its name in the code, there will + likely be a comment about it. Please report any issue to the GitHub page! + - To find out usage of old API, you can add '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in your configuration file. + - Try to keep your copy of Dear ImGui reasonably up to date. + + + GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + --------------------------------------------------------------- + - Run and study the examples and demo in imgui_demo.cpp to get acquainted with the library. + - In the majority of cases you should be able to use unmodified backends files available in the backends/ folder. + - Add the Dear ImGui source files + selected backend source files to your projects or using your preferred build system. + It is recommended you build and statically link the .cpp files as part of your project and NOT as a shared library (DLL). + - You can later customize the imconfig.h file to tweak some compile-time behavior, such as integrating Dear ImGui types with your own maths types. + - When using Dear ImGui, your programming IDE is your friend: follow the declaration of variables, functions and types to find comments about them. + - Dear ImGui never touches or knows about your GPU state. The only function that knows about GPU is the draw function that you provide. + Effectively it means you can create widgets at any time in your code, regardless of considerations of being in "update" vs "render" + phases of your own application. All rendering information is stored into command-lists that you will retrieve after calling ImGui::Render(). + - Refer to the backends and demo applications in the examples/ folder for instruction on how to setup your code. + - If you are running over a standard OS with a common graphics API, you should be able to use unmodified imgui_impl_*** files from the examples/ folder. + + + HOW A SIMPLE APPLICATION MAY LOOK LIKE + -------------------------------------- + EXHIBIT 1: USING THE EXAMPLE BACKENDS (= imgui_impl_XXX.cpp files from the backends/ folder). + The sub-folders in examples/ contain examples applications following this structure. + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Initialize helper Platform and Renderer backends (here we are using imgui_impl_win32.cpp and imgui_impl_dx11.cpp) + ImGui_ImplWin32_Init(hwnd); + ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); + + // Application main loop + while (true) + { + // Feed inputs to dear imgui, start new frame + ImGui_ImplDX11_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // Any application code here + ImGui::Text("Hello, world!"); + + // Render dear imgui into screen + ImGui::Render(); + ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); + g_pSwapChain->Present(1, 0); + } + + // Shutdown + ImGui_ImplDX11_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + EXHIBIT 2: IMPLEMENTING CUSTOM BACKEND / CUSTOM ENGINE + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Build and load the texture atlas into a texture + // (In the examples/ app this is usually done within the ImGui_ImplXXX_Init() function from one of the demo Renderer) + int width, height; + unsigned char* pixels = NULL; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // At this point you've got the texture data and you need to upload that to your graphic system: + // After we have created the texture, store its pointer/identifier (_in whichever format your engine uses_) in 'io.Fonts->TexID'. + // This will be passed back to your via the renderer. Basically ImTextureID == void*. Read FAQ for details about ImTextureID. + MyTexture* texture = MyEngine::CreateTextureFromMemoryPixels(pixels, width, height, TEXTURE_TYPE_RGBA32) + io.Fonts->SetTexID((void*)texture); + + // Application main loop + while (true) + { + // Setup low-level inputs, e.g. on Win32: calling GetKeyboardState(), or write to those fields from your Windows message handlers, etc. + // (In the examples/ app this is usually done within the ImGui_ImplXXX_NewFrame() function from one of the demo Platform Backends) + io.DeltaTime = 1.0f/60.0f; // set the time elapsed since the previous frame (in seconds) + io.DisplaySize.x = 1920.0f; // set the current display width + io.DisplaySize.y = 1280.0f; // set the current display height here + io.AddMousePosEvent(mouse_x, mouse_y); // update mouse position + io.AddMouseButtonEvent(0, mouse_b[0]); // update mouse button states + io.AddMouseButtonEvent(1, mouse_b[1]); // update mouse button states + + // Call NewFrame(), after this point you can use ImGui::* functions anytime + // (So you want to try calling NewFrame() as early as you can in your main loop to be able to use Dear ImGui everywhere) + ImGui::NewFrame(); + + // Most of your application code here + ImGui::Text("Hello, world!"); + MyGameUpdate(); // may use any Dear ImGui functions, e.g. ImGui::Begin("My window"); ImGui::Text("Hello, world!"); ImGui::End(); + MyGameRender(); // may use any Dear ImGui functions as well! + + // Render dear imgui, swap buffers + // (You want to try calling EndFrame/Render as late as you can, to be able to use Dear ImGui in your own game rendering code) + ImGui::EndFrame(); + ImGui::Render(); + ImDrawData* draw_data = ImGui::GetDrawData(); + MyImGuiRenderFunction(draw_data); + SwapBuffers(); + } + + // Shutdown + ImGui::DestroyContext(); + + To decide whether to dispatch mouse/keyboard inputs to Dear ImGui to the rest of your application, + you should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + Please read the FAQ and example applications for details about this! + + + HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE + --------------------------------------------- + The backends in impl_impl_XXX.cpp files contain many working implementations of a rendering function. + + void MyImGuiRenderFunction(ImDrawData* draw_data) + { + // TODO: Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled + // TODO: Setup texture sampling state: sample with bilinear filtering (NOT point/nearest filtering). Use 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines;' to allow point/nearest filtering. + // TODO: Setup viewport covering draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup orthographic projection matrix cover draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup shader: vertex { float2 pos, float2 uv, u32 color }, fragment shader sample color from 1 texture, multiply by vertex color. + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; // vertex buffer generated by Dear ImGui + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; // index buffer generated by Dear ImGui + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // We are using scissoring to clip some objects. All low-level graphics API should support it. + // - If your engine doesn't support scissoring yet, you may ignore this at first. You will get some small glitches + // (some elements visible outside their bounds) but you can fix that once everything else works! + // - Clipping coordinates are provided in imgui coordinates space: + // - For a given viewport, draw_data->DisplayPos == viewport->Pos and draw_data->DisplaySize == viewport->Size + // - In a single viewport application, draw_data->DisplayPos == (0,0) and draw_data->DisplaySize == io.DisplaySize, but always use GetMainViewport()->Pos/Size instead of hardcoding those values. + // - In the interest of supporting multi-viewport applications (see 'docking' branch on github), + // always subtract draw_data->DisplayPos from clipping bounds to convert them to your viewport space. + // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) + MyEngineSetScissor(clip_min.x, clip_min.y, clip_max.x, clip_max.y); + + // The texture for the draw call is specified by pcmd->GetTexID(). + // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. + MyEngineBindTexture((MyTexture*)pcmd->GetTexID()); + + // Render 'pcmd->ElemCount/3' indexed triangles. + // By default the indices ImDrawIdx are 16-bit, you can change them to 32-bit in imconfig.h if your engine doesn't support 16-bit indices. + MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer + pcmd->IdxOffset, vtx_buffer, pcmd->VtxOffset); + } + } + } + } + + + USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS + ------------------------------------------ + - The gamepad/keyboard navigation is fairly functional and keeps being improved. + - Gamepad support is particularly useful to use Dear ImGui on a console system (e.g. PlayStation, Switch, Xbox) without a mouse! + - The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. + - Keyboard: + - Application: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. + - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), + the io.WantCaptureKeyboard flag will be set. For more advanced uses, you may want to read from: + - io.NavActive: true when a window is focused and it doesn't have the ImGuiWindowFlags_NoNavInputs flag set. + - io.NavVisible: true when the navigation cursor is visible (and usually goes false when mouse is used). + - or query focus information with e.g. IsWindowFocused(ImGuiFocusedFlags_AnyWindow), IsItemFocused() etc. functions. + Please reach out if you think the game vs navigation input sharing could be improved. + - Gamepad: + - Application: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. + - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + call io.AddKeyEvent/AddKeyAnalogEvent() with ImGuiKey_Gamepad_XXX keys. + For analog values (0.0f to 1.0f), backend is responsible to handling a dead-zone and rescaling inputs accordingly. + Backend code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). + - BEFORE 1.87, BACKENDS USED TO WRITE TO io.NavInputs[]. This is now obsolete. Please call io functions instead! + - You can download PNG/PSD files depicting the gamepad controls for common controllers at: http://dearimgui.org/controls_sheets + - If you need to share inputs between your game and the Dear ImGui interface, the easiest approach is to go all-or-nothing, + with a buttons combo to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. + - Mouse: + - PS4/PS5 users: Consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. + - Consoles/Tablet/Phone users: Consider using a Synergy 1.x server (on your PC) + uSynergy.c (on your console/tablet/phone app) to share your PC mouse/keyboard. + - On a TV/console system where readability may be lower or mouse inputs may be awkward, you may want to set the ImGuiConfigFlags_NavEnableSetMousePos flag. + Enabling ImGuiConfigFlags_NavEnableSetMousePos + ImGuiBackendFlags_HasSetMousePos instructs dear imgui to move your mouse cursor along with navigation movements. + When enabled, the NewFrame() function may alter 'io.MousePos' and set 'io.WantSetMousePos' to notify you that it wants the mouse cursor to be moved. + When that happens your backend NEEDS to move the OS or underlying mouse cursor on the next frame. Some of the backends in examples/ do that. + (If you set the NavEnableSetMousePos flag but don't honor 'io.WantSetMousePos' properly, imgui will misbehave as it will see your mouse moving back and forth!) + (In a setup when you may not have easy control over the mouse cursor, e.g. uSynergy.c doesn't expose moving remote mouse cursor, you may want + to set a boolean to ignore your other external mouse positions until the external source is moved again.) + + + API BREAKING CHANGES + ==================== + + Occasionally introducing changes that are breaking the API. We try to make the breakage minor and easy to fix. + Below is a change-log of API breaking changes only. If you are using one of the functions listed, expect to have to fix some code. + When you are not sure about an old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files. + You can read releases logs https://github.com/ocornut/imgui/releases for more details. + + - 2022/10/26 (1.89) - commented out redirecting OpenPopupContextItem() which was briefly the name of OpenPopupOnItemClick() from 1.77 to 1.79. + - 2022/10/12 (1.89) - removed runtime patching of invalid "%f"/"%0.f" format strings for DragInt()/SliderInt(). This was obsoleted in 1.61 (May 2018). See 1.61 changelog for details. + - 2022/09/26 (1.89) - renamed and merged keyboard modifiers key enums and flags into a same set. Kept inline redirection enums (will obsolete). + - ImGuiKey_ModCtrl and ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl + - ImGuiKey_ModShift and ImGuiModFlags_Shift -> ImGuiMod_Shift + - ImGuiKey_ModAlt and ImGuiModFlags_Alt -> ImGuiMod_Alt + - ImGuiKey_ModSuper and ImGuiModFlags_Super -> ImGuiMod_Super + the ImGuiKey_ModXXX were introduced in 1.87 and mostly used by backends. + the ImGuiModFlags_XXX have been exposed in imgui.h but not really used by any public api only by third-party extensions. + exceptionally commenting out the older ImGuiKeyModFlags_XXX names ahead of obsolescence schedule to reduce confusion and because they were not meant to be used anyway. + - 2022/09/12 (1.89) - removed the bizarre legacy default argument for 'TreePush(const void* ptr = NULL)', always pass a pointer value explicitly. NULL/nullptr is ok but require cast, e.g. TreePush((void*)nullptr); + - 2022/09/05 (1.89) - commented out redirecting functions/enums names that were marked obsolete in 1.77 and 1.78 (June 2020): + - DragScalar(), DragScalarN(), DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - SliderScalar(), SliderScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - BeginPopupContextWindow(const char*, ImGuiMouseButton, bool) -> use BeginPopupContextWindow(const char*, ImGuiPopupFlags) + - 2022/09/02 (1.89) - obsoleted using SetCursorPos()/SetCursorScreenPos() to extend parent window/cell boundaries. + this relates to when moving the cursor position beyond current boundaries WITHOUT submitting an item. + - previously this would make the window content size ~200x200: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); + - instead, please submit an item: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); + - alternative: + Begin(...) + Dummy(ImVec2(200,200)) + End(); + - content size is now only extended when submitting an item! + - with '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will now be detected and assert. + - without '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will silently be fixed until we obsolete it. + - 2022/08/03 (1.89) - changed signature of ImageButton() function. Kept redirection function (will obsolete). + - added 'const char* str_id' parameter + removed 'int frame_padding = -1' parameter. + - old signature: bool ImageButton(ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), int frame_padding = -1, ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values. + - had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer. + - new signature: bool ImageButton(const char* str_id, ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - requires an explicit identifier. You may still use e.g. PushID() calls and then pass an empty identifier. + - always uses style.FramePadding for padding, to be consistent with other buttons. You may use PushStyleVar() to alter this. + - 2022/07/08 (1.89) - inputs: removed io.NavInputs[] and ImGuiNavInput enum (following 1.87 changes). + - Official backends from 1.87+ -> no issue. + - Official backends from 1.60 to 1.86 -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need updating! + - Custom backends not writing to io.NavInputs[] -> no issue. + - Custom backends writing to io.NavInputs[] -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need fixing! + - TL;DR: Backends should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values instead of filling io.NavInput[]. + - 2022/06/15 (1.88) - renamed IMGUI_DISABLE_METRICS_WINDOW to IMGUI_DISABLE_DEBUG_TOOLS for correctness. kept support for old define (will obsolete). + - 2022/05/03 (1.88) - backends: osx: removed ImGui_ImplOSX_HandleEvent() from backend API in favor of backend automatically handling event capture. All ImGui_ImplOSX_HandleEvent() calls should be removed as they are now unnecessary. + - 2022/04/05 (1.88) - inputs: renamed ImGuiKeyModFlags to ImGuiModFlags. Kept inline redirection enums (will obsolete). This was never used in public API functions but technically present in imgui.h and ImGuiIO. + - 2022/01/20 (1.87) - inputs: reworded gamepad IO. + - Backend writing to io.NavInputs[] -> backend should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values. + - 2022/01/19 (1.87) - sliders, drags: removed support for legacy arithmetic operators (+,+-,*,/) when inputing text. This doesn't break any api/code but a feature that used to be accessible by end-users (which seemingly no one used). + - 2022/01/17 (1.87) - inputs: reworked mouse IO. + - Backend writing to io.MousePos -> backend should call io.AddMousePosEvent() + - Backend writing to io.MouseDown[] -> backend should call io.AddMouseButtonEvent() + - Backend writing to io.MouseWheel -> backend should call io.AddMouseWheelEvent() + - Backend writing to io.MouseHoveredViewport -> backend should call io.AddMouseViewportEvent() [Docking branch w/ multi-viewports only] + note: for all calls to IO new functions, the Dear ImGui context should be bound/current. + read https://github.com/ocornut/imgui/issues/4921 for details. + - 2022/01/10 (1.87) - inputs: reworked keyboard IO. Removed io.KeyMap[], io.KeysDown[] in favor of calling io.AddKeyEvent(). Removed GetKeyIndex(), now unecessary. All IsKeyXXX() functions now take ImGuiKey values. All features are still functional until IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Read Changelog and Release Notes for details. + - IsKeyPressed(MY_NATIVE_KEY_XXX) -> use IsKeyPressed(ImGuiKey_XXX) + - IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) -> use IsKeyPressed(ImGuiKey_XXX) + - Backend writing to io.KeyMap[],io.KeysDown[] -> backend should call io.AddKeyEvent() (+ call io.SetKeyEventNativeData() if you want legacy user code to stil function with legacy key codes). + - Backend writing to io.KeyCtrl, io.KeyShift.. -> backend should call io.AddKeyEvent() with ImGuiMod_XXX values. *IF YOU PULLED CODE BETWEEN 2021/01/10 and 2021/01/27: We used to have a io.AddKeyModsEvent() function which was now replaced by io.AddKeyEvent() with ImGuiMod_XXX values.* + - one case won't work with backward compatibility: if your custom backend used ImGuiKey as mock native indices (e.g. "io.KeyMap[ImGuiKey_A] = ImGuiKey_A") because those values are now larger than the legacy KeyDown[] array. Will assert. + - inputs: added ImGuiKey_ModCtrl/ImGuiKey_ModShift/ImGuiKey_ModAlt/ImGuiKey_ModSuper values to submit keyboard modifiers using io.AddKeyEvent(), instead of writing directly to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper. + - 2022/01/05 (1.87) - inputs: renamed ImGuiKey_KeyPadEnter to ImGuiKey_KeypadEnter to align with new symbols. Kept redirection enum. + - 2022/01/05 (1.87) - removed io.ImeSetInputScreenPosFn() in favor of more flexible io.SetPlatformImeDataFn(). Removed 'void* io.ImeWindowHandle' in favor of writing to 'void* ImGuiViewport::PlatformHandleRaw'. + - 2022/01/01 (1.87) - commented out redirecting functions/enums names that were marked obsolete in 1.69, 1.70, 1.71, 1.72 (March-July 2019) + - ImGui::SetNextTreeNodeOpen() -> use ImGui::SetNextItemOpen() + - ImGui::GetContentRegionAvailWidth() -> use ImGui::GetContentRegionAvail().x + - ImGui::TreeAdvanceToLabelPos() -> use ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetTreeNodeToLabelSpacing()); + - ImFontAtlas::CustomRect -> use ImFontAtlasCustomRect + - ImGuiColorEditFlags_RGB/HSV/HEX -> use ImGuiColorEditFlags_DisplayRGB/HSV/Hex + - 2021/12/20 (1.86) - backends: removed obsolete Marmalade backend (imgui_impl_marmalade.cpp) + example. Find last supported version at https://github.com/ocornut/imgui/wiki/Bindings + - 2021/11/04 (1.86) - removed CalcListClipping() function. Prefer using ImGuiListClipper which can return non-contiguous ranges. Please open an issue if you think you really need this function. + - 2021/08/23 (1.85) - removed GetWindowContentRegionWidth() function. keep inline redirection helper. can use 'GetWindowContentRegionMax().x - GetWindowContentRegionMin().x' instead for generally 'GetContentRegionAvail().x' is more useful. + - 2021/07/26 (1.84) - commented out redirecting functions/enums names that were marked obsolete in 1.67 and 1.69 (March 2019): + - ImGui::GetOverlayDrawList() -> use ImGui::GetForegroundDrawList() + - ImFont::GlyphRangesBuilder -> use ImFontGlyphRangesBuilder + - 2021/05/19 (1.83) - backends: obsoleted direct access to ImDrawCmd::TextureId in favor of calling ImDrawCmd::GetTexID(). + - if you are using official backends from the source tree: you have nothing to do. + - if you have copied old backend code or using your own: change access to draw_cmd->TextureId to draw_cmd->GetTexID(). + - 2021/03/12 (1.82) - upgraded ImDrawList::AddRect(), AddRectFilled(), PathRect() to use ImDrawFlags instead of ImDrawCornersFlags. + - ImDrawCornerFlags_TopLeft -> use ImDrawFlags_RoundCornersTopLeft + - ImDrawCornerFlags_BotRight -> use ImDrawFlags_RoundCornersBottomRight + - ImDrawCornerFlags_None -> use ImDrawFlags_RoundCornersNone etc. + flags now sanely defaults to 0 instead of 0x0F, consistent with all other flags in the API. + breaking: the default with rounding > 0.0f is now "round all corners" vs old implicit "round no corners": + - rounding == 0.0f + flags == 0 --> meant no rounding --> unchanged (common use) + - rounding > 0.0f + flags != 0 --> meant rounding --> unchanged (common use) + - rounding == 0.0f + flags != 0 --> meant no rounding --> unchanged (unlikely use) + - rounding > 0.0f + flags == 0 --> meant no rounding --> BREAKING (unlikely use): will now round all corners --> use ImDrawFlags_RoundCornersNone or rounding == 0.0f. + this ONLY matters for hard coded use of 0 + rounding > 0.0f. Use of named ImDrawFlags_RoundCornersNone (new) or ImDrawCornerFlags_None (old) are ok. + the old ImDrawCornersFlags used awkward default values of ~0 or 0xF (4 lower bits set) to signify "round all corners" and we sometimes encouraged using them as shortcuts. + legacy path still support use of hard coded ~0 or any value from 0x1 or 0xF. They will behave the same with legacy paths enabled (will assert otherwise). + - 2021/03/11 (1.82) - removed redirecting functions/enums names that were marked obsolete in 1.66 (September 2018): + - ImGui::SetScrollHere() -> use ImGui::SetScrollHereY() + - 2021/03/11 (1.82) - clarified that ImDrawList::PathArcTo(), ImDrawList::PathArcToFast() won't render with radius < 0.0f. Previously it sorts of accidentally worked but would generally lead to counter-clockwise paths and have an effect on anti-aliasing. + - 2021/03/10 (1.82) - upgraded ImDrawList::AddPolyline() and PathStroke() "bool closed" parameter to "ImDrawFlags flags". The matching ImDrawFlags_Closed value is guaranteed to always stay == 1 in the future. + - 2021/02/22 (1.82) - (*undone in 1.84*) win32+mingw: Re-enabled IME functions by default even under MinGW. In July 2016, issue #738 had me incorrectly disable those default functions for MinGW. MinGW users should: either link with -limm32, either set their imconfig file with '#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS'. + - 2021/02/17 (1.82) - renamed rarely used style.CircleSegmentMaxError (old default = 1.60f) to style.CircleTessellationMaxError (new default = 0.30f) as the meaning of the value changed. + - 2021/02/03 (1.81) - renamed ListBoxHeader(const char* label, ImVec2 size) to BeginListBox(). Kept inline redirection function (will obsolete). + - removed ListBoxHeader(const char* label, int items_count, int height_in_items = -1) in favor of specifying size. Kept inline redirection function (will obsolete). + - renamed ListBoxFooter() to EndListBox(). Kept inline redirection function (will obsolete). + - 2021/01/26 (1.81) - removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function. Prefer using '#define IMGUI_ENABLE_FREETYPE', but there's a runtime selection path available too. The shared extra flags parameters (very rarely used) are now stored in ImFontAtlas::FontBuilderFlags. + - renamed ImFontConfig::RasterizerFlags (used by FreeType) to ImFontConfig::FontBuilderFlags. + - renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. + - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.63 (August 2018): + - ImGui::IsItemDeactivatedAfterChange() -> use ImGui::IsItemDeactivatedAfterEdit(). + - ImGuiCol_ModalWindowDarkening -> use ImGuiCol_ModalWindowDimBg + - ImGuiInputTextCallback -> use ImGuiTextEditCallback + - ImGuiInputTextCallbackData -> use ImGuiTextEditCallbackData + - 2020/12/21 (1.80) - renamed ImDrawList::AddBezierCurve() to AddBezierCubic(), and PathBezierCurveTo() to PathBezierCubicCurveTo(). Kept inline redirection function (will obsolete). + - 2020/12/04 (1.80) - added imgui_tables.cpp file! Manually constructed project files will need the new file added! + - 2020/11/18 (1.80) - renamed undocumented/internals ImGuiColumnsFlags_* to ImGuiOldColumnFlags_* in prevision of incoming Tables API. + - 2020/11/03 (1.80) - renamed io.ConfigWindowsMemoryCompactTimer to io.ConfigMemoryCompactTimer as the feature will apply to other data structures + - 2020/10/14 (1.80) - backends: moved all backends files (imgui_impl_XXXX.cpp, imgui_impl_XXXX.h) from examples/ to backends/. + - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.60 (April 2018): + - io.RenderDrawListsFn pointer -> use ImGui::GetDrawData() value and call the render function of your backend + - ImGui::IsAnyWindowFocused() -> use ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow) + - ImGui::IsAnyWindowHovered() -> use ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + - ImGuiStyleVar_Count_ -> use ImGuiStyleVar_COUNT + - ImGuiMouseCursor_Count_ -> use ImGuiMouseCursor_COUNT + - removed redirecting functions names that were marked obsolete in 1.61 (May 2018): + - InputFloat (... int decimal_precision ...) -> use InputFloat (... const char* format ...) with format = "%.Xf" where X is your value for decimal_precision. + - same for InputFloat2()/InputFloat3()/InputFloat4() variants taking a `int decimal_precision` parameter. + - 2020/10/05 (1.79) - removed ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using the ImGuiListClipper::Begin() function, with misleading edge cases (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed). + - 2020/09/25 (1.79) - renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete sooner because previous name was added recently). + - 2020/09/25 (1.79) - renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton. + - 2020/09/21 (1.79) - renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), reverting the change from 1.77. For varieties of reason this is more self-explanatory. + - 2020/09/21 (1.79) - removed return value from OpenPopupOnItemClick() - returned true on mouse release on an item - because it is inconsistent with other popup APIs and makes others misleading. It's also and unnecessary: you can use IsWindowAppearing() after BeginPopup() for a similar result. + - 2020/09/17 (1.79) - removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font. If you scaled this value after calling AddFontDefault(), this is now done automatically. It was also getting in the way of better font scaling, so let's get rid of it now! + - 2020/08/17 (1.78) - obsoleted use of the trailing 'float power=1.0f' parameter for DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN(), VSliderFloat() and VSliderScalar(). + replaced the 'float power=1.0f' argument with integer-based flags defaulting to 0 (as with all our flags). + worked out a backward-compatibility scheme so hopefully most C++ codebase should not be affected. in short, when calling those functions: + - if you omitted the 'power' parameter (likely!), you are not affected. + - if you set the 'power' parameter to 1.0f (same as previous default value): 1/ your compiler may warn on float>int conversion, 2/ everything else will work. 3/ you can replace the 1.0f value with 0 to fix the warning, and be technically correct. + - if you set the 'power' parameter to >1.0f (to enable non-linear editing): 1/ your compiler may warn on float>int conversion, 2/ code will assert at runtime, 3/ in case asserts are disabled, the code will not crash and enable the _Logarithmic flag. 4/ you can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the warning/assert and get a _similar_ effect as previous uses of power >1.0f. + see https://github.com/ocornut/imgui/issues/3361 for all details. + kept inline redirection functions (will obsolete) apart for: DragFloatRange2(), VSliderFloat(), VSliderScalar(). For those three the 'float power=1.0f' version was removed directly as they were most unlikely ever used. + for shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. + - obsoleted use of v_min > v_max in DragInt, DragFloat, DragScalar to lock edits (introduced in 1.73, was not demoed nor documented very), will be replaced by a more generic ReadOnly feature. You may use the ImGuiSliderFlags_ReadOnly internal flag in the meantime. + - 2020/06/23 (1.77) - removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. + - 2020/06/15 (1.77) - renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). [NOTE: THIS WAS REVERTED IN 1.79] + - 2020/06/15 (1.77) - removed CalcItemRectClosestPoint() entry point which was made obsolete and asserting in December 2017. + - 2020/04/23 (1.77) - removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular(). + - 2020/01/22 (1.75) - ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius any more. + - 2019/12/17 (1.75) - [undid this change in 1.76] made Columns() limited to 64 columns by asserting above that limit. While the current code technically supports it, future code may not so we're putting the restriction ahead. + - 2019/12/13 (1.75) - [imgui_internal.h] changed ImRect() default constructor initializes all fields to 0.0f instead of (FLT_MAX,FLT_MAX,-FLT_MAX,-FLT_MAX). If you used ImRect::Add() to create bounding boxes by adding multiple points into it, you may need to fix your initial value. + - 2019/12/08 (1.75) - removed redirecting functions/enums that were marked obsolete in 1.53 (December 2017): + - ShowTestWindow() -> use ShowDemoWindow() + - IsRootWindowFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootWindow) + - IsRootWindowOrAnyChildFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) + - SetNextWindowContentWidth(w) -> use SetNextWindowContentSize(ImVec2(w, 0.0f) + - GetItemsLineHeightWithSpacing() -> use GetFrameHeightWithSpacing() + - ImGuiCol_ChildWindowBg -> use ImGuiCol_ChildBg + - ImGuiStyleVar_ChildWindowRounding -> use ImGuiStyleVar_ChildRounding + - ImGuiTreeNodeFlags_AllowOverlapMode -> use ImGuiTreeNodeFlags_AllowItemOverlap + - IMGUI_DISABLE_TEST_WINDOWS -> use IMGUI_DISABLE_DEMO_WINDOWS + - 2019/12/08 (1.75) - obsoleted calling ImDrawList::PrimReserve() with a negative count (which was vaguely documented and rarely if ever used). Instead, we added an explicit PrimUnreserve() API. + - 2019/12/06 (1.75) - removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent with other mouse functions (none of the other functions have it). + - 2019/11/21 (1.74) - ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS for consistency. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS for consistency. + - 2019/10/22 (1.74) - removed redirecting functions/enums that were marked obsolete in 1.52 (October 2017): + - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed + - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) + - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding() + - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f) + - ImFont::Glyph -> use ImFontGlyph + - 2019/10/14 (1.74) - inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function. + if you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can add +io.KeyRepeatDelay to it to compensate for the fix. + The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0). Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay). + If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you. + - 2019/07/15 (1.72) - removed TreeAdvanceToLabelPos() which is rarely used and only does SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()). Kept redirection function (will obsolete). + - 2019/07/12 (1.72) - renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection typedef (will obsolete). + - 2019/06/14 (1.72) - removed redirecting functions/enums names that were marked obsolete in 1.51 (June 2017): ImGuiCol_Column*, ImGuiSetCond_*, IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(), IsMouseHoveringWindow(), IMGUI_ONCE_UPON_A_FRAME. Grep this log for details and new names, or see how they were implemented until 1.71. + - 2019/06/07 (1.71) - rendering of child window outer decorations (bg color, border, scrollbars) is now performed as part of the parent window. If you have + overlapping child windows in a same parent, and relied on their relative z-order to be mapped to their submission order, this will affect your rendering. + This optimization is disabled if the parent window has no visual output, because it appears to be the most common situation leading to the creation of overlapping child windows. + Please reach out if you are affected. + - 2019/05/13 (1.71) - renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Kept inline redirection function (will obsolete). + - 2019/05/11 (1.71) - changed io.AddInputCharacter(unsigned short c) signature to io.AddInputCharacter(unsigned int c). + - 2019/04/29 (1.70) - improved ImDrawList thick strokes (>1.0f) preserving correct thickness up to 90 degrees angles (e.g. rectangles). If you have custom rendering using thick lines, they will appear thicker now. + - 2019/04/29 (1.70) - removed GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead. Kept inline redirection function (will obsolete). + - 2019/03/04 (1.69) - renamed GetOverlayDrawList() to GetForegroundDrawList(). Kept redirection function (will obsolete). + - 2019/02/26 (1.69) - renamed ImGuiColorEditFlags_RGB/ImGuiColorEditFlags_HSV/ImGuiColorEditFlags_HEX to ImGuiColorEditFlags_DisplayRGB/ImGuiColorEditFlags_DisplayHSV/ImGuiColorEditFlags_DisplayHex. Kept redirection enums (will obsolete). + - 2019/02/14 (1.68) - made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame). If for some reason your time step calculation gives you a zero value, replace it with an arbitrarily small value! + - 2019/02/01 (1.68) - removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already). + - 2019/01/06 (1.67) - renamed io.InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead! + - 2019/01/06 (1.67) - renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept redirection typedef (will obsolete). + - 2018/12/20 (1.67) - made it illegal to call Begin("") with an empty string. This somehow half-worked before but had various undesirable side-effects. + - 2018/12/10 (1.67) - renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges as we are doing a large pass on configuration flags. + - 2018/10/12 (1.66) - renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files. + - 2018/09/28 (1.66) - renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete). + - 2018/09/06 (1.65) - renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and stb_rect_pack.h to imstb_rectpack.h. + If you were conveniently using the imgui copy of those STB headers in your project you will have to update your include paths. + - 2018/09/05 (1.65) - renamed io.OptCursorBlink/io.ConfigCursorBlink to io.ConfigInputTextCursorBlink. (#1427) + - 2018/08/31 (1.64) - added imgui_widgets.cpp file, extracted and moved widgets code out of imgui.cpp into imgui_widgets.cpp. Re-ordered some of the code remaining in imgui.cpp. + NONE OF THE FUNCTIONS HAVE CHANGED. THE CODE IS SEMANTICALLY 100% IDENTICAL, BUT _EVERY_ FUNCTION HAS BEEN MOVED. + Because of this, any local modifications to imgui.cpp will likely conflict when you update. Read docs/CHANGELOG.txt for suggestions. + - 2018/08/22 (1.63) - renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API. Kept redirection function (will obsolete soonish as IsItemDeactivatedAfterChange() is very recent). + - 2018/08/21 (1.63) - renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData for consistency. Kept redirection types (will obsolete). + - 2018/08/21 (1.63) - removed ImGuiInputTextCallbackData::ReadOnly since it is a duplication of (ImGuiInputTextCallbackData::Flags & ImGuiInputTextFlags_ReadOnly). + - 2018/08/01 (1.63) - removed per-window ImGuiWindowFlags_ResizeFromAnySide beta flag in favor of a global io.ConfigResizeWindowsFromEdges [update 1.67 renamed to ConfigWindowsResizeFromEdges] to enable the feature. + - 2018/08/01 (1.63) - renamed io.OptCursorBlink to io.ConfigCursorBlink [-> io.ConfigInputTextCursorBlink in 1.65], io.OptMacOSXBehaviors to ConfigMacOSXBehaviors for consistency. + - 2018/07/22 (1.63) - changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecisions over time. + - 2018/07/08 (1.63) - style: renamed ImGuiCol_ModalWindowDarkening to ImGuiCol_ModalWindowDimBg for consistency with other features. Kept redirection enum (will obsolete). + - 2018/06/08 (1.62) - examples: the imgui_impl_XXX files have been split to separate platform (Win32, GLFW, SDL2, etc.) from renderer (DX11, OpenGL, Vulkan, etc.). + old backends will still work as is, however prefer using the separated backends as they will be updated to support multi-viewports. + when adopting new backends follow the main.cpp code of your preferred examples/ folder to know which functions to call. + in particular, note that old backends called ImGui::NewFrame() at the end of their ImGui_ImplXXXX_NewFrame() function. + - 2018/06/06 (1.62) - renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish other variants and discourage using the full set. + - 2018/06/06 (1.62) - TreeNodeEx()/TreeNodeBehavior(): the ImGuiTreeNodeFlags_CollapsingHeader helper now include the ImGuiTreeNodeFlags_NoTreePushOnOpen flag. See Changelog for details. + - 2018/05/03 (1.61) - DragInt(): the default compile-time format string has been changed from "%.0f" to "%d", as we are not using integers internally any more. + If you used DragInt() with custom format strings, make sure you change them to use %d or an integer-compatible format. + To honor backward-compatibility, the DragInt() code will currently parse and modify format strings to replace %*f with %d, giving time to users to upgrade their code. + If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead assert! You may run a reg-exp search on your codebase for e.g. "DragInt.*%f" to help you find them. + - 2018/04/28 (1.61) - obsoleted InputFloat() functions taking an optional "int decimal_precision" in favor of an equivalent and more flexible "const char* format", + consistent with other functions. Kept redirection functions (will obsolete). + - 2018/04/09 (1.61) - IM_DELETE() helper function added in 1.60 doesn't clear the input _pointer_ reference, more consistent with expectation and allows passing r-value. + - 2018/03/20 (1.60) - renamed io.WantMoveMouse to io.WantSetMousePos for consistency and ease of understanding (was added in 1.52, _not_ used by core and only honored by some backend ahead of merging the Nav branch). + - 2018/03/12 (1.60) - removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered as the closing cross uses regular button colors now. + - 2018/03/08 (1.60) - changed ImFont::DisplayOffset.y to default to 0 instead of +1. Fixed rounding of Ascent/Descent to match TrueType renderer. If you were adding or subtracting to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. + - 2018/03/03 (1.60) - renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_ to ImGuiMouseCursor_COUNT for consistency with other public enums. + - 2018/02/18 (1.60) - BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. + - 2018/02/16 (1.60) - obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine render function after ImGui::Render(). Use ImGui::GetDrawData() to retrieve the ImDrawData* to display. + - 2018/02/07 (1.60) - reorganized context handling to be more explicit, + - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. + - removed Shutdown() function, as DestroyContext() serve this purpose. + - you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas between contexts. Otherwise CreateContext() will create its own font atlas instance. + - removed allocator parameters from CreateContext(), they are now setup with SetAllocatorFunctions(), and shared by all contexts. + - removed the default global context and font atlas instance, which were confusing for users of DLL reloading and users of multiple contexts. + - 2018/01/31 (1.60) - moved sample TTF files from extra_fonts/ to misc/fonts/. If you loaded files directly from the imgui repo you may need to update your paths. + - 2018/01/11 (1.60) - obsoleted IsAnyWindowHovered() in favor of IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/11 (1.60) - obsoleted IsAnyWindowFocused() in favor of IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/03 (1.60) - renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData. + - 2017/12/29 (1.60) - removed CalcItemRectClosestPoint() which was weird and not really used by anyone except demo code. If you need it it's easy to replicate on your side. + - 2017/12/24 (1.53) - renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). Kept redirection function (will obsolete). + - 2017/12/21 (1.53) - ImDrawList: renamed style.AntiAliasedShapes to style.AntiAliasedFill for consistency and as a way to explicitly break code that manipulate those flag at runtime. You can now manipulate ImDrawList::Flags + - 2017/12/21 (1.53) - ImDrawList: removed 'bool anti_aliased = true' final parameter of ImDrawList::AddPolyline() and ImDrawList::AddConvexPolyFilled(). Prefer manipulating ImDrawList::Flags if you need to toggle them during the frame. + - 2017/12/14 (1.53) - using the ImGuiWindowFlags_NoScrollWithMouse flag on a child window forwards the mouse wheel event to the parent window, unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar are also set. + - 2017/12/13 (1.53) - renamed GetItemsLineHeightWithSpacing() to GetFrameHeightWithSpacing(). Kept redirection function (will obsolete). + - 2017/12/13 (1.53) - obsoleted IsRootWindowFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootWindow). Kept redirection function (will obsolete). + - obsoleted IsRootWindowOrAnyChildFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows). Kept redirection function (will obsolete). + - 2017/12/12 (1.53) - renamed ImGuiTreeNodeFlags_AllowOverlapMode to ImGuiTreeNodeFlags_AllowItemOverlap. Kept redirection enum (will obsolete). + - 2017/12/10 (1.53) - removed SetNextWindowContentWidth(), prefer using SetNextWindowContentSize(). Kept redirection function (will obsolete). + - 2017/11/27 (1.53) - renamed ImGuiTextBuffer::append() helper to appendf(), appendv() to appendfv(). If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed. + - 2017/11/18 (1.53) - Style, Begin: removed ImGuiWindowFlags_ShowBorders window flag. Borders are now fully set up in the ImGuiStyle structure (see e.g. style.FrameBorderSize, style.WindowBorderSize). Use ImGui::ShowStyleEditor() to look them up. + Please note that the style system will keep evolving (hopefully stabilizing in Q1 2018), and so custom styles will probably subtly break over time. It is recommended you use the StyleColorsClassic(), StyleColorsDark(), StyleColorsLight() functions. + - 2017/11/18 (1.53) - Style: removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. + - 2017/11/18 (1.53) - Style: renamed ImGuiCol_ChildWindowBg to ImGuiCol_ChildBg. + - 2017/11/18 (1.53) - Style: renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding. + - 2017/11/02 (1.53) - obsoleted IsRootWindowOrAnyChildHovered() in favor of using IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); + - 2017/10/24 (1.52) - renamed IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS to IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS for consistency. + - 2017/10/20 (1.52) - changed IsWindowHovered() default parameters behavior to return false if an item is active in another window (e.g. click-dragging item from another window to this window). You can use the newly introduced IsWindowHovered() flags to requests this specific behavior if you need it. + - 2017/10/20 (1.52) - marked IsItemHoveredRect()/IsMouseHoveringWindow() as obsolete, in favor of using the newly introduced flags for IsItemHovered() and IsWindowHovered(). See https://github.com/ocornut/imgui/issues/1382 for details. + removed the IsItemRectHovered()/IsWindowRectHovered() names introduced in 1.51 since they were merely more consistent names for the two functions we are now obsoleting. + IsItemHoveredRect() --> IsItemHovered(ImGuiHoveredFlags_RectOnly) + IsMouseHoveringAnyWindow() --> IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + IsMouseHoveringWindow() --> IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) [weird, old behavior] + - 2017/10/17 (1.52) - marked the old 5-parameters version of Begin() as obsolete (still available). Use SetNextWindowSize()+Begin() instead! + - 2017/10/11 (1.52) - renamed AlignFirstTextHeightToWidgets() to AlignTextToFramePadding(). Kept inline redirection function (will obsolete). + - 2017/09/26 (1.52) - renamed ImFont::Glyph to ImFontGlyph. Kept redirection typedef (will obsolete). + - 2017/09/25 (1.52) - removed SetNextWindowPosCenter() because SetNextWindowPos() now has the optional pivot information to do the same and more. Kept redirection function (will obsolete). + - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previously ImVec2(-1,-1) was enough but we now accept negative mouse coordinates. In your backend if you need to support unavailable mouse, make sure to replace "io.MousePos = ImVec2(-1,-1)" with "io.MousePos = ImVec2(-FLT_MAX,-FLT_MAX)". + - 2017/08/22 (1.51) - renamed IsItemHoveredRect() to IsItemRectHovered(). Kept inline redirection function (will obsolete). -> (1.52) use IsItemHovered(ImGuiHoveredFlags_RectOnly)! + - renamed IsMouseHoveringAnyWindow() to IsAnyWindowHovered() for consistency. Kept inline redirection function (will obsolete). + - renamed IsMouseHoveringWindow() to IsWindowRectHovered() for consistency. Kept inline redirection function (will obsolete). + - 2017/08/20 (1.51) - renamed GetStyleColName() to GetStyleColorName() for consistency. + - 2017/08/20 (1.51) - added PushStyleColor(ImGuiCol idx, ImU32 col) overload, which _might_ cause an "ambiguous call" compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or ImVec4 explicily to fix. + - 2017/08/15 (1.51) - marked the weird IMGUI_ONCE_UPON_A_FRAME helper macro as obsolete. prefer using the more explicit ImGuiOnceUponAFrame type. + - 2017/08/15 (1.51) - changed parameter order for BeginPopupContextWindow() from (const char*,int buttons,bool also_over_items) to (const char*,int buttons,bool also_over_items). Note that most calls relied on default parameters completely. + - 2017/08/13 (1.51) - renamed ImGuiCol_Column to ImGuiCol_Separator, ImGuiCol_ColumnHovered to ImGuiCol_SeparatorHovered, ImGuiCol_ColumnActive to ImGuiCol_SeparatorActive. Kept redirection enums (will obsolete). + - 2017/08/11 (1.51) - renamed ImGuiSetCond_Always to ImGuiCond_Always, ImGuiSetCond_Once to ImGuiCond_Once, ImGuiSetCond_FirstUseEver to ImGuiCond_FirstUseEver, ImGuiSetCond_Appearing to ImGuiCond_Appearing. Kept redirection enums (will obsolete). + - 2017/08/09 (1.51) - removed ValueColor() helpers, they are equivalent to calling Text(label) + SameLine() + ColorButton(). + - 2017/08/08 (1.51) - removed ColorEditMode() and ImGuiColorEditMode in favor of ImGuiColorEditFlags and parameters to the various Color*() functions. The SetColorEditOptions() allows to initialize default but the user can still change them with right-click context menu. + - changed prototype of 'ColorEdit4(const char* label, float col[4], bool show_alpha = true)' to 'ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)', where passing flags = 0x01 is a safe no-op (hello dodgy backward compatibility!). - check and run the demo window, under "Color/Picker Widgets", to understand the various new options. + - changed prototype of rarely used 'ColorButton(ImVec4 col, bool small_height = false, bool outline_border = true)' to 'ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0, 0))' + - 2017/07/20 (1.51) - removed IsPosHoveringAnyWindow(ImVec2), which was partly broken and misleading. ASSERT + redirect user to io.WantCaptureMouse + - 2017/05/26 (1.50) - removed ImFontConfig::MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset. + - 2017/05/01 (1.50) - renamed ImDrawList::PathFill() (rarely used directly) to ImDrawList::PathFillConvex() for clarity. + - 2016/11/06 (1.50) - BeginChild(const char*) now applies the stack id to the provided label, consistently with other functions as it should always have been. It shouldn't affect you unless (extremely unlikely) you were appending multiple times to a same child from different locations of the stack id. If that's the case, generate an id with GetID() and use it instead of passing string to BeginChild(). + - 2016/10/15 (1.50) - avoid 'void* user_data' parameter to io.SetClipboardTextFn/io.GetClipboardTextFn pointers. We pass io.ClipboardUserData to it. + - 2016/09/25 (1.50) - style.WindowTitleAlign is now a ImVec2 (ImGuiAlign enum was removed). set to (0.5f,0.5f) for horizontal+vertical centering, (0.0f,0.0f) for upper-left, etc. + - 2016/07/30 (1.50) - SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully, breakage should be minimal. + - 2016/05/12 (1.49) - title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore. + If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you, otherwise if <1.0f you need to tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar. + This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color: + ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) { float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)), k = title_bg_col.w / new_a; return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); } + If this is confusing, pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color. + - 2016/05/07 (1.49) - removed confusing set of GetInternalState(), GetInternalStateSize(), SetInternalState() functions. Now using CreateContext(), DestroyContext(), GetCurrentContext(), SetCurrentContext(). + - 2016/05/02 (1.49) - renamed SetNextTreeNodeOpened() to SetNextTreeNodeOpen(), no redirection. + - 2016/05/01 (1.49) - obsoleted old signature of CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false) as extra parameters were badly designed and rarely used. You can replace the "default_open = true" flag in new API with CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen). + - 2016/04/26 (1.49) - changed ImDrawList::PushClipRect(ImVec4 rect) to ImDrawList::PushClipRect(Imvec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false). Note that higher-level ImGui::PushClipRect() is preferable because it will clip at logic/widget level, whereas ImDrawList::PushClipRect() only affect your renderer. + - 2016/04/03 (1.48) - removed style.WindowFillAlphaDefault setting which was redundant. Bake default BG alpha inside style.Colors[ImGuiCol_WindowBg] and all other Bg color values. (ref GitHub issue #337). + - 2016/04/03 (1.48) - renamed ImGuiCol_TooltipBg to ImGuiCol_PopupBg, used by popups/menus and tooltips. popups/menus were previously using ImGuiCol_WindowBg. (ref github issue #337) + - 2016/03/21 (1.48) - renamed GetWindowFont() to GetFont(), GetWindowFontSize() to GetFontSize(). Kept inline redirection function (will obsolete). + - 2016/03/02 (1.48) - InputText() completion/history/always callbacks: if you modify the text buffer manually (without using DeleteChars()/InsertChars() helper) you need to maintain the BufTextLen field. added an assert. + - 2016/01/23 (1.48) - fixed not honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. if you had manual pixel-perfect alignment in place it might affect you. + - 2015/12/27 (1.48) - fixed ImDrawList::AddRect() which used to render a rectangle 1 px too large on each axis. + - 2015/12/04 (1.47) - renamed Color() helpers to ValueColor() - dangerously named, rarely used and probably to be made obsolete. + - 2015/08/29 (1.45) - with the addition of horizontal scrollbar we made various fixes to inconsistencies with dealing with cursor position. + GetCursorPos()/SetCursorPos() functions now include the scrolled amount. It shouldn't affect the majority of users, but take note that SetCursorPosX(100.0f) puts you at +100 from the starting x position which may include scrolling, not at +100 from the window left side. + GetContentRegionMax()/GetWindowContentRegionMin()/GetWindowContentRegionMax() functions allow include the scrolled amount. Typically those were used in cases where no scrolling would happen so it may not be a problem, but watch out! + - 2015/08/29 (1.45) - renamed style.ScrollbarWidth to style.ScrollbarSize + - 2015/08/05 (1.44) - split imgui.cpp into extra files: imgui_demo.cpp imgui_draw.cpp imgui_internal.h that you need to add to your project. + - 2015/07/18 (1.44) - fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (introduced in 1.43) being off by an extra PI for no justifiable reason + - 2015/07/14 (1.43) - add new ImFontAtlas::AddFont() API. For the old AddFont***, moved the 'font_no' parameter of ImFontAtlas::AddFont** functions to the ImFontConfig structure. + you need to render your textured triangles with bilinear filtering to benefit from sub-pixel positioning of text. + - 2015/07/08 (1.43) - switched rendering data to use indexed rendering. this is saving a fair amount of CPU/GPU and enables us to get anti-aliasing for a marginal cost. + this necessary change will break your rendering function! the fix should be very easy. sorry for that :( + - if you are using a vanilla copy of one of the imgui_impl_XXX.cpp provided in the example, you just need to update your copy and you can ignore the rest. + - the signature of the io.RenderDrawListsFn handler has changed! + old: ImGui_XXXX_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_count) + new: ImGui_XXXX_RenderDrawLists(ImDrawData* draw_data). + parameters: 'cmd_lists' becomes 'draw_data->CmdLists', 'cmd_lists_count' becomes 'draw_data->CmdListsCount' + ImDrawList: 'commands' becomes 'CmdBuffer', 'vtx_buffer' becomes 'VtxBuffer', 'IdxBuffer' is new. + ImDrawCmd: 'vtx_count' becomes 'ElemCount', 'clip_rect' becomes 'ClipRect', 'user_callback' becomes 'UserCallback', 'texture_id' becomes 'TextureId'. + - each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles using indices from the index buffer. + - if you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index the buffers. This is slow and a waste of CPU/GPU. Prefer using indexed rendering! + - refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. please upgrade! + - 2015/07/10 (1.43) - changed SameLine() parameters from int to float. + - 2015/07/02 (1.42) - renamed SetScrollPosHere() to SetScrollFromCursorPos(). Kept inline redirection function (will obsolete). + - 2015/07/02 (1.42) - renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion along with other scrolling functions, because positions (e.g. cursor position) are not equivalent to scrolling amount. + - 2015/06/14 (1.41) - changed ImageButton() default bg_col parameter from (0,0,0,1) (black) to (0,0,0,0) (transparent) - makes a difference when texture have transparence + - 2015/06/14 (1.41) - changed Selectable() API from (label, selected, size) to (label, selected, flags, size). Size override should have been rarely used. Sorry! + - 2015/05/31 (1.40) - renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline redirection function (will obsolete). + - 2015/05/31 (1.40) - renamed IsRectClipped() to IsRectVisible() for consistency. Note that return value is opposite! Kept inline redirection function (will obsolete). + - 2015/05/27 (1.40) - removed the third 'repeat_if_held' parameter from Button() - sorry! it was rarely used and inconsistent. Use PushButtonRepeat(true) / PopButtonRepeat() to enable repeat on desired buttons. + - 2015/05/11 (1.40) - changed BeginPopup() API, takes a string identifier instead of a bool. ImGui needs to manage the open/closed state of popups. Call OpenPopup() to actually set the "open" state of a popup. BeginPopup() returns true if the popup is opened. + - 2015/05/03 (1.40) - removed style.AutoFitPadding, using style.WindowPadding makes more sense (the default values were already the same). + - 2015/04/13 (1.38) - renamed IsClipped() to IsRectClipped(). Kept inline redirection function until 1.50. + - 2015/04/09 (1.38) - renamed ImDrawList::AddArc() to ImDrawList::AddArcFast() for compatibility with future API + - 2015/04/03 (1.38) - removed ImGuiCol_CheckHovered, ImGuiCol_CheckActive, replaced with the more general ImGuiCol_FrameBgHovered, ImGuiCol_FrameBgActive. + - 2014/04/03 (1.38) - removed support for passing -FLT_MAX..+FLT_MAX as the range for a SliderFloat(). Use DragFloat() or Inputfloat() instead. + - 2015/03/17 (1.36) - renamed GetItemBoxMin()/GetItemBoxMax()/IsMouseHoveringBox() to GetItemRectMin()/GetItemRectMax()/IsMouseHoveringRect(). Kept inline redirection function until 1.50. + - 2015/03/15 (1.36) - renamed style.TreeNodeSpacing to style.IndentSpacing, ImGuiStyleVar_TreeNodeSpacing to ImGuiStyleVar_IndentSpacing + - 2015/03/13 (1.36) - renamed GetWindowIsFocused() to IsWindowFocused(). Kept inline redirection function until 1.50. + - 2015/03/08 (1.35) - renamed style.ScrollBarWidth to style.ScrollbarWidth (casing) + - 2015/02/27 (1.34) - renamed OpenNextNode(bool) to SetNextTreeNodeOpened(bool, ImGuiSetCond). Kept inline redirection function until 1.50. + - 2015/02/27 (1.34) - renamed ImGuiSetCondition_*** to ImGuiSetCond_***, and _FirstUseThisSession becomes _Once. + - 2015/02/11 (1.32) - changed text input callback ImGuiTextEditCallback return type from void-->int. reserved for future use, return 0 for now. + - 2015/02/10 (1.32) - renamed GetItemWidth() to CalcItemWidth() to clarify its evolving behavior + - 2015/02/08 (1.31) - renamed GetTextLineSpacing() to GetTextLineHeightWithSpacing() + - 2015/02/01 (1.31) - removed IO.MemReallocFn (unused) + - 2015/01/19 (1.30) - renamed ImGuiStorage::GetIntPtr()/GetFloatPtr() to GetIntRef()/GetIntRef() because Ptr was conflicting with actual pointer storage functions. + - 2015/01/11 (1.30) - big font/image API change! now loads TTF file. allow for multiple fonts. no need for a PNG loader. + - 2015/01/11 (1.30) - removed GetDefaultFontData(). uses io.Fonts->GetTextureData*() API to retrieve uncompressed pixels. + - old: const void* png_data; unsigned int png_size; ImGui::GetDefaultFontData(NULL, NULL, &png_data, &png_size); [..Upload texture to GPU..]; + - new: unsigned char* pixels; int width, height; io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); [..Upload texture to GPU..]; io.Fonts->SetTexID(YourTexIdentifier); + you now have more flexibility to load multiple TTF fonts and manage the texture buffer for internal needs. It is now recommended that you sample the font texture with bilinear interpolation. + - 2015/01/11 (1.30) - added texture identifier in ImDrawCmd passed to your render function (we can now render images). make sure to call io.Fonts->SetTexID() + - 2015/01/11 (1.30) - removed IO.PixelCenterOffset (unnecessary, can be handled in user projection matrix) + - 2015/01/11 (1.30) - removed ImGui::IsItemFocused() in favor of ImGui::IsItemActive() which handles all widgets + - 2014/12/10 (1.18) - removed SetNewWindowDefaultPos() in favor of new generic API SetNextWindowPos(pos, ImGuiSetCondition_FirstUseEver) + - 2014/11/28 (1.17) - moved IO.Font*** options to inside the IO.Font-> structure (FontYOffset, FontTexUvForWhite, FontBaseScale, FontFallbackGlyph) + - 2014/11/26 (1.17) - reworked syntax of IMGUI_ONCE_UPON_A_FRAME helper macro to increase compiler compatibility + - 2014/11/07 (1.15) - renamed IsHovered() to IsItemHovered() + - 2014/10/02 (1.14) - renamed IMGUI_INCLUDE_IMGUI_USER_CPP to IMGUI_INCLUDE_IMGUI_USER_INL and imgui_user.cpp to imgui_user.inl (more IDE friendly) + - 2014/09/25 (1.13) - removed 'text_end' parameter from IO.SetClipboardTextFn (the string is now always zero-terminated for simplicity) + - 2014/09/24 (1.12) - renamed SetFontScale() to SetWindowFontScale() + - 2014/09/24 (1.12) - moved IM_MALLOC/IM_REALLOC/IM_FREE preprocessor defines to IO.MemAllocFn/IO.MemReallocFn/IO.MemFreeFn + - 2014/08/30 (1.09) - removed IO.FontHeight (now computed automatically) + - 2014/08/30 (1.09) - moved IMGUI_FONT_TEX_UV_FOR_WHITE preprocessor define to IO.FontTexUvForWhite + - 2014/08/28 (1.09) - changed the behavior of IO.PixelCenterOffset following various rendering fixes + + + FREQUENTLY ASKED QUESTIONS (FAQ) + ================================ + + Read all answers online: + https://www.dearimgui.org/faq or https://github.com/ocornut/imgui/blob/master/docs/FAQ.md (same url) + Read all answers locally (with a text editor or ideally a Markdown viewer): + docs/FAQ.md + Some answers are copied down here to facilitate searching in code. + + Q&A: Basics + =========== + + Q: Where is the documentation? + A: This library is poorly documented at the moment and expects the user to be acquainted with C/C++. + - Run the examples/ and explore them. + - See demo code in imgui_demo.cpp and particularly the ImGui::ShowDemoWindow() function. + - The demo covers most features of Dear ImGui, so you can read the code and see its output. + - See documentation and comments at the top of imgui.cpp + effectively imgui.h. + - Dozens of standalone example applications using e.g. OpenGL/DirectX are provided in the + examples/ folder to explain how to integrate Dear ImGui with your own engine/application. + - The Wiki (https://github.com/ocornut/imgui/wiki) has many resources and links. + - The Glossary (https://github.com/ocornut/imgui/wiki/Glossary) page also may be useful. + - Your programming IDE is your friend, find the type or function declaration to find comments + associated with it. + + Q: What is this library called? + Q: Which version should I get? + >> This library is called "Dear ImGui", please don't call it "ImGui" :) + >> See https://www.dearimgui.org/faq for details. + + Q&A: Integration + ================ + + Q: How to get started? + A: Read 'PROGRAMMER GUIDE' above. Read examples/README.txt. + + Q: How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application? + A: You should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + >> See https://www.dearimgui.org/faq for a fully detailed answer. You really want to read this. + + Q. How can I enable keyboard controls? + Q: How can I use this without a mouse, without a keyboard or without a screen? (gamepad, input share, remote display) + Q: I integrated Dear ImGui in my engine and little squares are showing instead of text... + Q: I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around... + Q: I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries... + >> See https://www.dearimgui.org/faq + + Q&A: Usage + ---------- + + Q: About the ID Stack system.. + - Why is my widget not reacting when I click on it? + - How can I have widgets with an empty label? + - How can I have multiple widgets with the same label? + - How can I have multiple windows with the same label? + Q: How can I display an image? What is ImTextureID, how does it work? + Q: How can I use my own math types instead of ImVec2/ImVec4? + Q: How can I interact with standard C++ types (such as std::string and std::vector)? + Q: How can I display custom shapes? (using low-level ImDrawList API) + >> See https://www.dearimgui.org/faq + + Q&A: Fonts, Text + ================ + + Q: How should I handle DPI in my application? + Q: How can I load a different font than the default? + Q: How can I easily use icons in my application? + Q: How can I load multiple fonts? + Q: How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic? + >> See https://www.dearimgui.org/faq and https://github.com/ocornut/imgui/edit/master/docs/FONTS.md + + Q&A: Concerns + ============= + + Q: Who uses Dear ImGui? + Q: Can you create elaborate/serious tools with Dear ImGui? + Q: Can you reskin the look of Dear ImGui? + Q: Why using C++ (as opposed to C)? + >> See https://www.dearimgui.org/faq + + Q&A: Community + ============== + + Q: How can I help? + A: - Businesses: please reach out to "contact AT dearimgui.com" if you work in a place using Dear ImGui! + We can discuss ways for your company to fund development via invoiced technical support, maintenance or sponsoring contacts. + This is among the most useful thing you can do for Dear ImGui. With increased funding, we can hire more people working on this project. + - Individuals: you can support continued development via PayPal donations. See README. + - If you are experienced with Dear ImGui and C++, look at the GitHub issues, look at the Wiki, read docs/TODO.txt + and see how you want to help and can help! + - Disclose your usage of Dear ImGui via a dev blog post, a tweet, a screenshot, a mention somewhere etc. + You may post screenshot or links in the gallery threads. Visuals are ideal as they inspire other programmers. + But even without visuals, disclosing your use of dear imgui helps the library grow credibility, and help other teams and programmers with taking decisions. + - If you have issues or if you need to hack into the library, even if you don't expect any support it is useful that you share your issues (on GitHub or privately). + +*/ + +//------------------------------------------------------------------------- +// [SECTION] INCLUDES +//------------------------------------------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif +#include "imgui_internal.h" + +// System includes +#include // vsnprintf, sscanf, printf +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +// [Windows] On non-Visual Studio compilers, we default to IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS unless explicitly enabled +#if defined(_WIN32) && !defined(_MSC_VER) && !defined(IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) +#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS +#endif + +// [Windows] OS specific includes (optional) +#if defined(_WIN32) && defined(IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#define IMGUI_DISABLE_WIN32_FUNCTIONS +#endif +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#ifndef NOMINMAX +#define NOMINMAX +#endif +#ifndef __MINGW32__ +#include // _wfopen, OpenClipboard +#else +#include +#endif +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) // UWP doesn't have all Win32 functions +#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS +#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS +#endif +#endif + +// [Apple] OS specific includes +#if defined(__APPLE__) +#include +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wformat-pedantic" // warning: format specifies type 'void *' but the argument has type 'xxxx *' // unreasonable, would lead to casting every %p arg to void*. probably enabled by -pedantic. +#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type 'int' +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +// We disable -Wpragmas because GCC doesn't provide a has_warning equivalent and some forks/patches may not follow the warning/version association. +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wformat" // warning: format '%p' expects argument of type 'void*', but argument 6 has type 'ImGuiWindow*' +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wstrict-overflow" // warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// Debug options +#define IMGUI_DEBUG_NAV_SCORING 0 // Display navigation scoring preview when hovering items. Display last moving direction matches when holding CTRL +#define IMGUI_DEBUG_NAV_RECTS 0 // Display the reference navigation rectangle for each window +#define IMGUI_DEBUG_INI_SETTINGS 0 // Save additional comments in .ini file (particularly helps for Docking, but makes saving slower) + +// When using CTRL+TAB (or Gamepad Square+L/R) we delay the visual a little in order to reduce visual noise doing a fast switch. +static const float NAV_WINDOWING_HIGHLIGHT_DELAY = 0.20f; // Time before the highlight and screen dimming starts fading in +static const float NAV_WINDOWING_LIST_APPEAR_DELAY = 0.15f; // Time before the window list starts to appear + +// Window resizing from edges (when io.ConfigWindowsResizeFromEdges = true and ImGuiBackendFlags_HasMouseCursors is set in io.BackendFlags by backend) +static const float WINDOWS_HOVER_PADDING = 4.0f; // Extend outside window for hovering/resizing (maxxed with TouchPadding) and inside windows for borders. Affect FindHoveredWindow(). +static const float WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER = 0.04f; // Reduce visual noise by only highlighting the border after a certain time. +static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 0.70f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. + +//------------------------------------------------------------------------- +// [SECTION] FORWARD DECLARATIONS +//------------------------------------------------------------------------- + +static void SetCurrentWindow(ImGuiWindow* window); +static void FindHoveredWindow(); +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags); +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window); + +static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list); +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window); + +// Settings +static void WindowSettingsHandler_ClearAll(ImGuiContext*, ImGuiSettingsHandler*); +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name); +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line); +static void WindowSettingsHandler_ApplyAll(ImGuiContext*, ImGuiSettingsHandler*); +static void WindowSettingsHandler_WriteAll(ImGuiContext*, ImGuiSettingsHandler*, ImGuiTextBuffer* buf); + +// Platform Dependents default implementation for IO functions +static const char* GetClipboardTextFn_DefaultImpl(void* user_data); +static void SetClipboardTextFn_DefaultImpl(void* user_data, const char* text); +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + +namespace ImGui +{ +// Navigation +static void NavUpdate(); +static void NavUpdateWindowing(); +static void NavUpdateWindowingOverlay(); +static void NavUpdateCancelRequest(); +static void NavUpdateCreateMoveRequest(); +static void NavUpdateCreateTabbingRequest(); +static float NavUpdatePageUpPageDown(); +static inline void NavUpdateAnyRequestFlag(); +static void NavUpdateCreateWrappingRequest(); +static void NavEndFrame(); +static bool NavScoreItem(ImGuiNavItemData* result); +static void NavApplyItemToResult(ImGuiNavItemData* result); +static void NavProcessItem(); +static void NavProcessItemForTabbingRequest(ImGuiID id); +static ImVec2 NavCalcPreferredRefPos(); +static void NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window); +static ImGuiWindow* NavRestoreLastChildNavWindow(ImGuiWindow* window); +static void NavRestoreLayer(ImGuiNavLayer layer); +static void NavRestoreHighlightAfterMove(); +static int FindWindowFocusIndex(ImGuiWindow* window); + +// Error Checking and Debug Tools +static void ErrorCheckNewFrameSanityChecks(); +static void ErrorCheckEndFrameSanityChecks(); +static void UpdateDebugToolItemPicker(); +static void UpdateDebugToolStackQueries(); + +// Misc +static void UpdateSettings(); +static void UpdateKeyboardInputs(); +static void UpdateMouseInputs(); +static void UpdateMouseWheel(); +static bool UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect); +static void RenderWindowOuterBorders(ImGuiWindow* window); +static void RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size); +static void RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open); +static void RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 col); +static void RenderDimmedBackgrounds(); +static ImGuiWindow* FindBlockingModal(ImGuiWindow* window); + +// Viewports +static void UpdateViewportsNewFrame(); + +} + +//----------------------------------------------------------------------------- +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +//----------------------------------------------------------------------------- + +// DLL users: +// - Heaps and globals are not shared across DLL boundaries! +// - You will need to call SetCurrentContext() + SetAllocatorFunctions() for each static/DLL boundary you are calling from. +// - Same applies for hot-reloading mechanisms that are reliant on reloading DLL (note that many hot-reloading mechanisms work without DLL). +// - Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. +// - Confused? In a debugger: add GImGui to your watch window and notice how its value changes depending on your current location (which DLL boundary you are in). + +// Current context pointer. Implicitly used by all Dear ImGui functions. Always assumed to be != NULL. +// - ImGui::CreateContext() will automatically set this pointer if it is NULL. +// Change to a different context by calling ImGui::SetCurrentContext(). +// - Important: Dear ImGui functions are not thread-safe because of this pointer. +// If you want thread-safety to allow N threads to access N different contexts: +// - Change this variable to use thread local storage so each thread can refer to a different context, in your imconfig.h: +// struct ImGuiContext; +// extern thread_local ImGuiContext* MyImGuiTLS; +// #define GImGui MyImGuiTLS +// And then define MyImGuiTLS in one of your cpp files. Note that thread_local is a C++11 keyword, earlier C++ uses compiler-specific keyword. +// - Future development aims to make this context pointer explicit to all calls. Also read https://github.com/ocornut/imgui/issues/586 +// - If you need a finite number of contexts, you may compile and use multiple instances of the ImGui code from a different namespace. +// - DLL users: read comments above. +#ifndef GImGui +ImGuiContext* GImGui = NULL; +#endif + +// Memory Allocator functions. Use SetAllocatorFunctions() to change them. +// - You probably don't want to modify that mid-program, and if you use global/static e.g. ImVector<> instances you may need to keep them accessible during program destruction. +// - DLL users: read comments above. +#ifndef IMGUI_DISABLE_DEFAULT_ALLOCATORS +static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); return malloc(size); } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); } +#else +static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(size); IM_ASSERT(0); return NULL; } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(ptr); IM_ASSERT(0); } +#endif +static ImGuiMemAllocFunc GImAllocatorAllocFunc = MallocWrapper; +static ImGuiMemFreeFunc GImAllocatorFreeFunc = FreeWrapper; +static void* GImAllocatorUserData = NULL; + +//----------------------------------------------------------------------------- +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +//----------------------------------------------------------------------------- + +ImGuiStyle::ImGuiStyle() +{ + Alpha = 1.0f; // Global alpha applies to everything in Dear ImGui. + DisabledAlpha = 0.60f; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. + WindowPadding = ImVec2(8,8); // Padding within a window + WindowRounding = 0.0f; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + WindowBorderSize = 1.0f; // Thickness of border around windows. Generally set to 0.0f or 1.0f. Other values not well tested. + WindowMinSize = ImVec2(32,32); // Minimum window size + WindowTitleAlign = ImVec2(0.0f,0.5f);// Alignment for title bar text + WindowMenuButtonPosition= ImGuiDir_Left; // Position of the collapsing/docking button in the title bar (left/right). Defaults to ImGuiDir_Left. + ChildRounding = 0.0f; // Radius of child window corners rounding. Set to 0.0f to have rectangular child windows + ChildBorderSize = 1.0f; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. Other values not well tested. + PopupRounding = 0.0f; // Radius of popup window corners rounding. Set to 0.0f to have rectangular child windows + PopupBorderSize = 1.0f; // Thickness of border around popup or tooltip windows. Generally set to 0.0f or 1.0f. Other values not well tested. + FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most widgets) + FrameRounding = 0.0f; // Radius of frame corners rounding. Set to 0.0f to have rectangular frames (used by most widgets). + FrameBorderSize = 0.0f; // Thickness of border around frames. Generally set to 0.0f or 1.0f. Other values not well tested. + ItemSpacing = ImVec2(8,4); // Horizontal and vertical spacing between widgets/lines + ItemInnerSpacing = ImVec2(4,4); // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label) + CellPadding = ImVec2(4,2); // Padding within a table cell + TouchExtraPadding = ImVec2(0,0); // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + IndentSpacing = 21.0f; // Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + ColumnsMinSpacing = 6.0f; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + ScrollbarSize = 14.0f; // Width of the vertical scrollbar, Height of the horizontal scrollbar + ScrollbarRounding = 9.0f; // Radius of grab corners rounding for scrollbar + GrabMinSize = 12.0f; // Minimum width/height of a grab box for slider/scrollbar + GrabRounding = 0.0f; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + LogSliderDeadzone = 4.0f; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + TabRounding = 4.0f; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + TabBorderSize = 0.0f; // Thickness of border around tabs. + TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + ColorButtonPosition = ImGuiDir_Right; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text. + SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + DisplayWindowPadding = ImVec2(19,19); // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + DisplaySafeAreaPadding = ImVec2(3,3); // If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows. + MouseCursorScale = 1.0f; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. + AntiAliasedLines = true; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. + AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). + AntiAliasedFill = true; // Enable anti-aliased filled shapes (rounded rectangles, circles, etc.). + CurveTessellationTol = 1.25f; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + CircleTessellationMaxError = 0.30f; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + + // Default theme + ImGui::StyleColorsDark(this); +} + +// To scale your entire UI (e.g. if you want your app to use High DPI or generally be DPI aware) you may use this helper function. Scaling the fonts is done separately and is up to you. +// Important: This operation is lossy because we round all sizes to integer. If you need to change your scale multiples, call this over a freshly initialized ImGuiStyle structure rather than scaling multiple times. +void ImGuiStyle::ScaleAllSizes(float scale_factor) +{ + WindowPadding = ImFloor(WindowPadding * scale_factor); + WindowRounding = ImFloor(WindowRounding * scale_factor); + WindowMinSize = ImFloor(WindowMinSize * scale_factor); + ChildRounding = ImFloor(ChildRounding * scale_factor); + PopupRounding = ImFloor(PopupRounding * scale_factor); + FramePadding = ImFloor(FramePadding * scale_factor); + FrameRounding = ImFloor(FrameRounding * scale_factor); + ItemSpacing = ImFloor(ItemSpacing * scale_factor); + ItemInnerSpacing = ImFloor(ItemInnerSpacing * scale_factor); + CellPadding = ImFloor(CellPadding * scale_factor); + TouchExtraPadding = ImFloor(TouchExtraPadding * scale_factor); + IndentSpacing = ImFloor(IndentSpacing * scale_factor); + ColumnsMinSpacing = ImFloor(ColumnsMinSpacing * scale_factor); + ScrollbarSize = ImFloor(ScrollbarSize * scale_factor); + ScrollbarRounding = ImFloor(ScrollbarRounding * scale_factor); + GrabMinSize = ImFloor(GrabMinSize * scale_factor); + GrabRounding = ImFloor(GrabRounding * scale_factor); + LogSliderDeadzone = ImFloor(LogSliderDeadzone * scale_factor); + TabRounding = ImFloor(TabRounding * scale_factor); + TabMinWidthForCloseButton = (TabMinWidthForCloseButton != FLT_MAX) ? ImFloor(TabMinWidthForCloseButton * scale_factor) : FLT_MAX; + DisplayWindowPadding = ImFloor(DisplayWindowPadding * scale_factor); + DisplaySafeAreaPadding = ImFloor(DisplaySafeAreaPadding * scale_factor); + MouseCursorScale = ImFloor(MouseCursorScale * scale_factor); +} + +ImGuiIO::ImGuiIO() +{ + // Most fields are initialized with zero + memset(this, 0, sizeof(*this)); + IM_STATIC_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); + + // Settings + ConfigFlags = ImGuiConfigFlags_None; + BackendFlags = ImGuiBackendFlags_None; + DisplaySize = ImVec2(-1.0f, -1.0f); + DeltaTime = 1.0f / 60.0f; + IniSavingRate = 5.0f; + IniFilename = "imgui.ini"; // Important: "imgui.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables). + LogFilename = "imgui_log.txt"; + MouseDoubleClickTime = 0.30f; + MouseDoubleClickMaxDist = 6.0f; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int i = 0; i < ImGuiKey_COUNT; i++) + KeyMap[i] = -1; +#endif + KeyRepeatDelay = 0.275f; + KeyRepeatRate = 0.050f; + HoverDelayNormal = 0.30f; + HoverDelayShort = 0.10f; + UserData = NULL; + + Fonts = NULL; + FontGlobalScale = 1.0f; + FontDefault = NULL; + FontAllowUserScaling = false; + DisplayFramebufferScale = ImVec2(1.0f, 1.0f); + + // Miscellaneous options + MouseDrawCursor = false; +#ifdef __APPLE__ + ConfigMacOSXBehaviors = true; // Set Mac OS X style defaults based on __APPLE__ compile time flag +#else + ConfigMacOSXBehaviors = false; +#endif + ConfigInputTrickleEventQueue = true; + ConfigInputTextCursorBlink = true; + ConfigInputTextEnterKeepActive = false; + ConfigDragClickToInputText = false; + ConfigWindowsResizeFromEdges = true; + ConfigWindowsMoveFromTitleBarOnly = false; + ConfigMemoryCompactTimer = 60.0f; + + // Platform Functions + BackendPlatformName = BackendRendererName = NULL; + BackendPlatformUserData = BackendRendererUserData = BackendLanguageUserData = NULL; + GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations + SetClipboardTextFn = SetClipboardTextFn_DefaultImpl; + ClipboardUserData = NULL; + SetPlatformImeDataFn = SetPlatformImeDataFn_DefaultImpl; + + // Input (NB: we already have memset zero the entire structure!) + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + MousePosPrev = ImVec2(-FLT_MAX, -FLT_MAX); + MouseDragThreshold = 6.0f; + for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDurationPrev[i] = -1.0f; + for (int i = 0; i < IM_ARRAYSIZE(KeysData); i++) { KeysData[i].DownDuration = KeysData[i].DownDurationPrev = -1.0f; } + AppAcceptingEvents = true; + BackendUsingLegacyKeyArrays = (ImS8)-1; + BackendUsingLegacyNavInputArray = true; // assume using legacy array until proven wrong +} + +// Pass in translated ASCII characters for text input. +// - with glfw you can get those from the callback set in glfwSetCharCallback() +// - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message +// FIXME: Should in theory be called "AddCharacterEvent()" to be consistent with new API +void ImGuiIO::AddInputCharacter(unsigned int c) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + if (c == 0 || !AppAcceptingEvents) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Text; + e.Source = ImGuiInputSource_Keyboard; + e.Text.Char = c; + g.InputEventsQueue.push_back(e); +} + +// UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so +// we should save the high surrogate. +void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) +{ + if ((c == 0 && InputQueueSurrogate == 0) || !AppAcceptingEvents) + return; + + if ((c & 0xFC00) == 0xD800) // High surrogate, must save + { + if (InputQueueSurrogate != 0) + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); + InputQueueSurrogate = c; + return; + } + + ImWchar cp = c; + if (InputQueueSurrogate != 0) + { + if ((c & 0xFC00) != 0xDC00) // Invalid low surrogate + { + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); + } + else + { +#if IM_UNICODE_CODEPOINT_MAX == 0xFFFF + cp = IM_UNICODE_CODEPOINT_INVALID; // Codepoint will not fit in ImWchar +#else + cp = (ImWchar)(((InputQueueSurrogate - 0xD800) << 10) + (c - 0xDC00) + 0x10000); +#endif + } + + InputQueueSurrogate = 0; + } + AddInputCharacter((unsigned)cp); +} + +void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) +{ + if (!AppAcceptingEvents) + return; + while (*utf8_chars != 0) + { + unsigned int c = 0; + utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL); + if (c != 0) + AddInputCharacter(c); + } +} + +// FIXME: Perhaps we could clear queued events as well? +void ImGuiIO::ClearInputCharacters() +{ + InputQueueCharacters.resize(0); +} + +// FIXME: Perhaps we could clear queued events as well? +void ImGuiIO::ClearInputKeys() +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + memset(KeysDown, 0, sizeof(KeysDown)); +#endif + for (int n = 0; n < IM_ARRAYSIZE(KeysData); n++) + { + KeysData[n].Down = false; + KeysData[n].DownDuration = -1.0f; + KeysData[n].DownDurationPrev = -1.0f; + } + KeyCtrl = KeyShift = KeyAlt = KeySuper = false; + KeyMods = ImGuiMod_None; + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + for (int n = 0; n < IM_ARRAYSIZE(MouseDown); n++) + { + MouseDown[n] = false; + MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f; + } + MouseWheel = MouseWheelH = 0.0f; +} + +static ImGuiInputEvent* FindLatestInputEvent(ImGuiInputEventType type, int arg = -1) +{ + ImGuiContext& g = *GImGui; + for (int n = g.InputEventsQueue.Size - 1; n >= 0; n--) + { + ImGuiInputEvent* e = &g.InputEventsQueue[n]; + if (e->Type != type) + continue; + if (type == ImGuiInputEventType_Key && e->Key.Key != arg) + continue; + if (type == ImGuiInputEventType_MouseButton && e->MouseButton.Button != arg) + continue; + return e; + } + return NULL; +} + +// Queue a new key down/up event. +// - ImGuiKey key: Translated key (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) +// - bool down: Is the key down? use false to signify a key release. +// - float analog_value: 0.0f..1.0f +void ImGuiIO::AddKeyAnalogEvent(ImGuiKey key, bool down, float analog_value) +{ + //if (e->Down) { IMGUI_DEBUG_LOG_IO("AddKeyEvent() Key='%s' %d, NativeKeycode = %d, NativeScancode = %d\n", ImGui::GetKeyName(e->Key), e->Down, e->NativeKeycode, e->NativeScancode); } + if (key == ImGuiKey_None || !AppAcceptingEvents) + return; + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(ImGui::IsNamedKeyOrModKey(key)); // Backend needs to pass a valid ImGuiKey_ constant. 0..511 values are legacy native key codes which are not accepted by this API. + IM_ASSERT(!ImGui::IsAliasKey(key)); // Backend cannot submit ImGuiKey_MouseXXX values they are automatically inferred from AddMouseXXX() events. + + // Verify that backend isn't mixing up using new io.AddKeyEvent() api and old io.KeysDown[] + io.KeyMap[] data. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((BackendUsingLegacyKeyArrays == -1 || BackendUsingLegacyKeyArrays == 0) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + if (BackendUsingLegacyKeyArrays == -1) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + IM_ASSERT(KeyMap[n] == -1 && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + BackendUsingLegacyKeyArrays = 0; +#endif + if (ImGui::IsGamepadKey(key)) + BackendUsingLegacyNavInputArray = false; + + // Filter duplicate (in particular: key mods and gamepad analog values are commonly spammed) + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_Key, (int)key); + const ImGuiKeyData* key_data = ImGui::GetKeyData(key); + const bool latest_key_down = latest_event ? latest_event->Key.Down : key_data->Down; + const float latest_key_analog = latest_event ? latest_event->Key.AnalogValue : key_data->AnalogValue; + if (latest_key_down == down && latest_key_analog == analog_value) + return; + + // Add event + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Key; + e.Source = ImGui::IsGamepadKey(key) ? ImGuiInputSource_Gamepad : ImGuiInputSource_Keyboard; + e.Key.Key = key; + e.Key.Down = down; + e.Key.AnalogValue = analog_value; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) +{ + if (!AppAcceptingEvents) + return; + AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); +} + +// [Optional] Call after AddKeyEvent(). +// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. +// If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this. +void ImGuiIO::SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index) +{ + if (key == ImGuiKey_None) + return; + IM_ASSERT(ImGui::IsNamedKey(key)); // >= 512 + IM_ASSERT(native_legacy_index == -1 || ImGui::IsLegacyKey((ImGuiKey)native_legacy_index)); // >= 0 && <= 511 + IM_UNUSED(native_keycode); // Yet unused + IM_UNUSED(native_scancode); // Yet unused + + // Build native->imgui map so old user code can still call key functions with native 0..511 values. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const int legacy_key = (native_legacy_index != -1) ? native_legacy_index : native_keycode; + if (!ImGui::IsLegacyKey((ImGuiKey)legacy_key)) + return; + KeyMap[legacy_key] = key; + KeyMap[key] = legacy_key; +#else + IM_UNUSED(key); + IM_UNUSED(native_legacy_index); +#endif +} + +// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. +void ImGuiIO::SetAppAcceptingEvents(bool accepting_events) +{ + AppAcceptingEvents = accepting_events; +} + +// Queue a mouse move event +void ImGuiIO::AddMousePosEvent(float x, float y) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + if (!AppAcceptingEvents) + return; + + // Apply same flooring as UpdateMouseInputs() + ImVec2 pos((x > -FLT_MAX) ? ImFloorSigned(x) : x, (y > -FLT_MAX) ? ImFloorSigned(y) : y); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MousePos); + const ImVec2 latest_pos = latest_event ? ImVec2(latest_event->MousePos.PosX, latest_event->MousePos.PosY) : g.IO.MousePos; + if (latest_pos.x == pos.x && latest_pos.y == pos.y) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MousePos; + e.Source = ImGuiInputSource_Mouse; + e.MousePos.PosX = pos.x; + e.MousePos.PosY = pos.y; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddMouseButtonEvent(int mouse_button, bool down) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_MouseButton, (int)mouse_button); + const bool latest_button_down = latest_event ? latest_event->MouseButton.Down : g.IO.MouseDown[mouse_button]; + if (latest_button_down == down) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseButton; + e.Source = ImGuiInputSource_Mouse; + e.MouseButton.Button = mouse_button; + e.MouseButton.Down = down; + g.InputEventsQueue.push_back(e); +} + +// Queue a mouse wheel event (most mouse/API will only have a Y component) +void ImGuiIO::AddMouseWheelEvent(float wheel_x, float wheel_y) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + + // Filter duplicate (unlike most events, wheel values are relative and easy to filter) + if (!AppAcceptingEvents || (wheel_x == 0.0f && wheel_y == 0.0f)) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseWheel; + e.Source = ImGuiInputSource_Mouse; + e.MouseWheel.WheelX = wheel_x; + e.MouseWheel.WheelY = wheel_y; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddFocusEvent(bool focused) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(&g.IO == this && "Can only add events to current context."); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(ImGuiInputEventType_Focus); + const bool latest_focused = latest_event ? latest_event->AppFocused.Focused : !g.IO.AppFocusLost; + if (latest_focused == focused) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Focus; + e.AppFocused.Focused = focused; + g.InputEventsQueue.push_back(e); +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +//----------------------------------------------------------------------------- + +ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments) +{ + IM_ASSERT(num_segments > 0); // Use ImBezierCubicClosestPointCasteljau() + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + { + ImVec2 p_current = ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + return p_closest; +} + +// Closely mimics PathBezierToCasteljau() in imgui_draw.cpp +static void ImBezierCubicClosestPointCasteljauStep(const ImVec2& p, ImVec2& p_closest, ImVec2& p_last, float& p_closest_dist2, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = ((x2 - x4) * dy - (y2 - y4) * dx); + float d3 = ((x3 - x4) * dy - (y3 - y4) * dx); + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + ImVec2 p_current(x4, y4); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + else if (level < 10) + { + float x12 = (x1 + x2)*0.5f, y12 = (y1 + y2)*0.5f; + float x23 = (x2 + x3)*0.5f, y23 = (y2 + y3)*0.5f; + float x34 = (x3 + x4)*0.5f, y34 = (y3 + y4)*0.5f; + float x123 = (x12 + x23)*0.5f, y123 = (y12 + y23)*0.5f; + float x234 = (x23 + x34)*0.5f, y234 = (y23 + y34)*0.5f; + float x1234 = (x123 + x234)*0.5f, y1234 = (y123 + y234)*0.5f; + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +// tess_tol is generally the same value you would find in ImGui::GetStyle().CurveTessellationTol +// Because those ImXXX functions are lower-level than ImGui:: we cannot access this value automatically. +ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol) +{ + IM_ASSERT(tess_tol > 0.0f); + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, tess_tol, 0); + return p_closest; +} + +ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p) +{ + ImVec2 ap = p - a; + ImVec2 ab_dir = b - a; + float dot = ap.x * ab_dir.x + ap.y * ab_dir.y; + if (dot < 0.0f) + return a; + float ab_len_sqr = ab_dir.x * ab_dir.x + ab_dir.y * ab_dir.y; + if (dot > ab_len_sqr) + return b; + return a + ab_dir * dot / ab_len_sqr; +} + +bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + bool b1 = ((p.x - b.x) * (a.y - b.y) - (p.y - b.y) * (a.x - b.x)) < 0.0f; + bool b2 = ((p.x - c.x) * (b.y - c.y) - (p.y - c.y) * (b.x - c.x)) < 0.0f; + bool b3 = ((p.x - a.x) * (c.y - a.y) - (p.y - a.y) * (c.x - a.x)) < 0.0f; + return ((b1 == b2) && (b2 == b3)); +} + +void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w) +{ + ImVec2 v0 = b - a; + ImVec2 v1 = c - a; + ImVec2 v2 = p - a; + const float denom = v0.x * v1.y - v1.x * v0.y; + out_v = (v2.x * v1.y - v1.x * v2.y) / denom; + out_w = (v0.x * v2.y - v2.x * v0.y) / denom; + out_u = 1.0f - out_v - out_w; +} + +ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + ImVec2 proj_ab = ImLineClosestPoint(a, b, p); + ImVec2 proj_bc = ImLineClosestPoint(b, c, p); + ImVec2 proj_ca = ImLineClosestPoint(c, a, p); + float dist2_ab = ImLengthSqr(p - proj_ab); + float dist2_bc = ImLengthSqr(p - proj_bc); + float dist2_ca = ImLengthSqr(p - proj_ca); + float m = ImMin(dist2_ab, ImMin(dist2_bc, dist2_ca)); + if (m == dist2_ab) + return proj_ab; + if (m == dist2_bc) + return proj_bc; + return proj_ca; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +//----------------------------------------------------------------------------- + +// Consider using _stricmp/_strnicmp under Windows or strcasecmp/strncasecmp. We don't actually use either ImStricmp/ImStrnicmp in the codebase any more. +int ImStricmp(const char* str1, const char* str2) +{ + int d; + while ((d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; } + return d; +} + +int ImStrnicmp(const char* str1, const char* str2, size_t count) +{ + int d = 0; + while (count > 0 && (d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; count--; } + return d; +} + +void ImStrncpy(char* dst, const char* src, size_t count) +{ + if (count < 1) + return; + if (count > 1) + strncpy(dst, src, count - 1); + dst[count - 1] = 0; +} + +char* ImStrdup(const char* str) +{ + size_t len = strlen(str); + void* buf = IM_ALLOC(len + 1); + return (char*)memcpy(buf, (const void*)str, len + 1); +} + +char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src) +{ + size_t dst_buf_size = p_dst_size ? *p_dst_size : strlen(dst) + 1; + size_t src_size = strlen(src) + 1; + if (dst_buf_size < src_size) + { + IM_FREE(dst); + dst = (char*)IM_ALLOC(src_size); + if (p_dst_size) + *p_dst_size = src_size; + } + return (char*)memcpy(dst, (const void*)src, src_size); +} + +const char* ImStrchrRange(const char* str, const char* str_end, char c) +{ + const char* p = (const char*)memchr(str, (int)c, str_end - str); + return p; +} + +int ImStrlenW(const ImWchar* str) +{ + //return (int)wcslen((const wchar_t*)str); // FIXME-OPT: Could use this when wchar_t are 16-bit + int n = 0; + while (*str++) n++; + return n; +} + +// Find end-of-line. Return pointer will point to either first \n, either str_end. +const char* ImStreolRange(const char* str, const char* str_end) +{ + const char* p = (const char*)memchr(str, '\n', str_end - str); + return p ? p : str_end; +} + +const ImWchar* ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin) // find beginning-of-line +{ + while (buf_mid_line > buf_begin && buf_mid_line[-1] != '\n') + buf_mid_line--; + return buf_mid_line; +} + +const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end) +{ + if (!needle_end) + needle_end = needle + strlen(needle); + + const char un0 = (char)ImToUpper(*needle); + while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end)) + { + if (ImToUpper(*haystack) == un0) + { + const char* b = needle + 1; + for (const char* a = haystack + 1; b < needle_end; a++, b++) + if (ImToUpper(*a) != ImToUpper(*b)) + break; + if (b == needle_end) + return haystack; + } + haystack++; + } + return NULL; +} + +// Trim str by offsetting contents when there's leading data + writing a \0 at the trailing position. We use this in situation where the cost is negligible. +void ImStrTrimBlanks(char* buf) +{ + char* p = buf; + while (p[0] == ' ' || p[0] == '\t') // Leading blanks + p++; + char* p_start = p; + while (*p != 0) // Find end of string + p++; + while (p > p_start && (p[-1] == ' ' || p[-1] == '\t')) // Trailing blanks + p--; + if (p_start != buf) // Copy memory if we had leading blanks + memmove(buf, p_start, p - p_start); + buf[p - p_start] = 0; // Zero terminate +} + +const char* ImStrSkipBlank(const char* str) +{ + while (str[0] == ' ' || str[0] == '\t') + str++; + return str; +} + +// A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size). +// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm. +// B) When buf==NULL vsnprintf() will return the output size. +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +// We support stb_sprintf which is much faster (see: https://github.com/nothings/stb/blob/master/stb_sprintf.h) +// You may set IMGUI_USE_STB_SPRINTF to use our default wrapper, or set IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +// and setup the wrapper yourself. (FIXME-OPT: Some of our high-level operations such as ImGuiTextBuffer::appendfv() are +// designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.) +#ifdef IMGUI_USE_STB_SPRINTF +#define STB_SPRINTF_IMPLEMENTATION +#ifdef IMGUI_STB_SPRINTF_FILENAME +#include IMGUI_STB_SPRINTF_FILENAME +#else +#include "stb_sprintf.h" +#endif +#endif + +#if defined(_MSC_VER) && !defined(vsnprintf) +#define vsnprintf _vsnprintf +#endif + +int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + va_end(args); + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} + +int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) +{ +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} +#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + va_list args; + va_start(args, fmt); + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } + va_end(args); +} + +void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } +} + +// CRC32 needs a 1KB lookup table (not cache friendly) +// Although the code to generate the table is simple and shorter than the table itself, using a const table allows us to easily: +// - avoid an unnecessary branch/memory tap, - keep the ImHashXXX functions usable by static constructors, - make it thread-safe. +static const ImU32 GCrc32LookupTable[256] = +{ + 0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F,0xE963A535,0x9E6495A3,0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988,0x09B64C2B,0x7EB17CBD,0xE7B82D07,0x90BF1D91, + 0x1DB71064,0x6AB020F2,0xF3B97148,0x84BE41DE,0x1ADAD47D,0x6DDDE4EB,0xF4D4B551,0x83D385C7,0x136C9856,0x646BA8C0,0xFD62F97A,0x8A65C9EC,0x14015C4F,0x63066CD9,0xFA0F3D63,0x8D080DF5, + 0x3B6E20C8,0x4C69105E,0xD56041E4,0xA2677172,0x3C03E4D1,0x4B04D447,0xD20D85FD,0xA50AB56B,0x35B5A8FA,0x42B2986C,0xDBBBC9D6,0xACBCF940,0x32D86CE3,0x45DF5C75,0xDCD60DCF,0xABD13D59, + 0x26D930AC,0x51DE003A,0xC8D75180,0xBFD06116,0x21B4F4B5,0x56B3C423,0xCFBA9599,0xB8BDA50F,0x2802B89E,0x5F058808,0xC60CD9B2,0xB10BE924,0x2F6F7C87,0x58684C11,0xC1611DAB,0xB6662D3D, + 0x76DC4190,0x01DB7106,0x98D220BC,0xEFD5102A,0x71B18589,0x06B6B51F,0x9FBFE4A5,0xE8B8D433,0x7807C9A2,0x0F00F934,0x9609A88E,0xE10E9818,0x7F6A0DBB,0x086D3D2D,0x91646C97,0xE6635C01, + 0x6B6B51F4,0x1C6C6162,0x856530D8,0xF262004E,0x6C0695ED,0x1B01A57B,0x8208F4C1,0xF50FC457,0x65B0D9C6,0x12B7E950,0x8BBEB8EA,0xFCB9887C,0x62DD1DDF,0x15DA2D49,0x8CD37CF3,0xFBD44C65, + 0x4DB26158,0x3AB551CE,0xA3BC0074,0xD4BB30E2,0x4ADFA541,0x3DD895D7,0xA4D1C46D,0xD3D6F4FB,0x4369E96A,0x346ED9FC,0xAD678846,0xDA60B8D0,0x44042D73,0x33031DE5,0xAA0A4C5F,0xDD0D7CC9, + 0x5005713C,0x270241AA,0xBE0B1010,0xC90C2086,0x5768B525,0x206F85B3,0xB966D409,0xCE61E49F,0x5EDEF90E,0x29D9C998,0xB0D09822,0xC7D7A8B4,0x59B33D17,0x2EB40D81,0xB7BD5C3B,0xC0BA6CAD, + 0xEDB88320,0x9ABFB3B6,0x03B6E20C,0x74B1D29A,0xEAD54739,0x9DD277AF,0x04DB2615,0x73DC1683,0xE3630B12,0x94643B84,0x0D6D6A3E,0x7A6A5AA8,0xE40ECF0B,0x9309FF9D,0x0A00AE27,0x7D079EB1, + 0xF00F9344,0x8708A3D2,0x1E01F268,0x6906C2FE,0xF762575D,0x806567CB,0x196C3671,0x6E6B06E7,0xFED41B76,0x89D32BE0,0x10DA7A5A,0x67DD4ACC,0xF9B9DF6F,0x8EBEEFF9,0x17B7BE43,0x60B08ED5, + 0xD6D6A3E8,0xA1D1937E,0x38D8C2C4,0x4FDFF252,0xD1BB67F1,0xA6BC5767,0x3FB506DD,0x48B2364B,0xD80D2BDA,0xAF0A1B4C,0x36034AF6,0x41047A60,0xDF60EFC3,0xA867DF55,0x316E8EEF,0x4669BE79, + 0xCB61B38C,0xBC66831A,0x256FD2A0,0x5268E236,0xCC0C7795,0xBB0B4703,0x220216B9,0x5505262F,0xC5BA3BBE,0xB2BD0B28,0x2BB45A92,0x5CB36A04,0xC2D7FFA7,0xB5D0CF31,0x2CD99E8B,0x5BDEAE1D, + 0x9B64C2B0,0xEC63F226,0x756AA39C,0x026D930A,0x9C0906A9,0xEB0E363F,0x72076785,0x05005713,0x95BF4A82,0xE2B87A14,0x7BB12BAE,0x0CB61B38,0x92D28E9B,0xE5D5BE0D,0x7CDCEFB7,0x0BDBDF21, + 0x86D3D2D4,0xF1D4E242,0x68DDB3F8,0x1FDA836E,0x81BE16CD,0xF6B9265B,0x6FB077E1,0x18B74777,0x88085AE6,0xFF0F6A70,0x66063BCA,0x11010B5C,0x8F659EFF,0xF862AE69,0x616BFFD3,0x166CCF45, + 0xA00AE278,0xD70DD2EE,0x4E048354,0x3903B3C2,0xA7672661,0xD06016F7,0x4969474D,0x3E6E77DB,0xAED16A4A,0xD9D65ADC,0x40DF0B66,0x37D83BF0,0xA9BCAE53,0xDEBB9EC5,0x47B2CF7F,0x30B5FFE9, + 0xBDBDF21C,0xCABAC28A,0x53B39330,0x24B4A3A6,0xBAD03605,0xCDD70693,0x54DE5729,0x23D967BF,0xB3667A2E,0xC4614AB8,0x5D681B02,0x2A6F2B94,0xB40BBE37,0xC30C8EA1,0x5A05DF1B,0x2D02EF8D, +}; + +// Known size hash +// It is ok to call ImHashData on a string with known length but the ### operator won't be supported. +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImGuiID ImHashData(const void* data_p, size_t data_size, ImU32 seed) +{ + ImU32 crc = ~seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + while (data_size-- != 0) + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ *data++]; + return ~crc; +} + +// Zero-terminated string hash, with support for ### to reset back to seed value +// We support a syntax of "label###id" where only "###id" is included in the hash, and only "label" gets displayed. +// Because this syntax is rarely used we are optimizing for the common case. +// - If we reach ### in the string we discard the hash so far and reset to the seed. +// - We don't do 'current += 2; continue;' after handling ### to keep the code smaller/faster (measured ~10% diff in Debug build) +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImGuiID ImHashStr(const char* data_p, size_t data_size, ImU32 seed) +{ + seed = ~seed; + ImU32 crc = seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + if (data_size != 0) + { + while (data_size-- != 0) + { + unsigned char c = *data++; + if (c == '#' && data_size >= 2 && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + else + { + while (unsigned char c = *data++) + { + if (c == '#' && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + return ~crc; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (File functions) +//----------------------------------------------------------------------------- + +// Default file functions +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +ImFileHandle ImFileOpen(const char* filename, const char* mode) +{ +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(__CYGWIN__) && !defined(__GNUC__) + // We need a fopen() wrapper because MSVC/Windows fopen doesn't handle UTF-8 filenames. + // Previously we used ImTextCountCharsFromUtf8/ImTextStrFromUtf8 here but we now need to support ImWchar16 and ImWchar32! + const int filename_wsize = ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0); + const int mode_wsize = ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, NULL, 0); + ImVector buf; + buf.resize(filename_wsize + mode_wsize); + ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, (wchar_t*)&buf[0], filename_wsize); + ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, (wchar_t*)&buf[filename_wsize], mode_wsize); + return ::_wfopen((const wchar_t*)&buf[0], (const wchar_t*)&buf[filename_wsize]); +#else + return fopen(filename, mode); +#endif +} + +// We should in theory be using fseeko()/ftello() with off_t and _fseeki64()/_ftelli64() with __int64, waiting for the PR that does that in a very portable pre-C++11 zero-warnings way. +bool ImFileClose(ImFileHandle f) { return fclose(f) == 0; } +ImU64 ImFileGetSize(ImFileHandle f) { long off = 0, sz = 0; return ((off = ftell(f)) != -1 && !fseek(f, 0, SEEK_END) && (sz = ftell(f)) != -1 && !fseek(f, off, SEEK_SET)) ? (ImU64)sz : (ImU64)-1; } +ImU64 ImFileRead(void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fread(data, (size_t)sz, (size_t)count, f); } +ImU64 ImFileWrite(const void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fwrite(data, (size_t)sz, (size_t)count, f); } +#endif // #ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +// Helper: Load file content into memory +// Memory allocated with IM_ALLOC(), must be freed by user using IM_FREE() == ImGui::MemFree() +// This can't really be used with "rt" because fseek size won't match read size. +void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes) +{ + IM_ASSERT(filename && mode); + if (out_file_size) + *out_file_size = 0; + + ImFileHandle f; + if ((f = ImFileOpen(filename, mode)) == NULL) + return NULL; + + size_t file_size = (size_t)ImFileGetSize(f); + if (file_size == (size_t)-1) + { + ImFileClose(f); + return NULL; + } + + void* file_data = IM_ALLOC(file_size + padding_bytes); + if (file_data == NULL) + { + ImFileClose(f); + return NULL; + } + if (ImFileRead(file_data, 1, file_size, f) != file_size) + { + ImFileClose(f); + IM_FREE(file_data); + return NULL; + } + if (padding_bytes > 0) + memset((void*)(((char*)file_data) + file_size), 0, (size_t)padding_bytes); + + ImFileClose(f); + if (out_file_size) + *out_file_size = file_size; + + return file_data; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +//----------------------------------------------------------------------------- + +// Convert UTF-8 to 32-bit character, process single character input. +// A nearly-branchless UTF-8 decoder, based on work of Christopher Wellons (https://github.com/skeeto/branchless-utf8). +// We handle UTF-8 decoding error by skipping forward. +int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end) +{ + static const char lengths[32] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 3, 3, 4, 0 }; + static const int masks[] = { 0x00, 0x7f, 0x1f, 0x0f, 0x07 }; + static const uint32_t mins[] = { 0x400000, 0, 0x80, 0x800, 0x10000 }; + static const int shiftc[] = { 0, 18, 12, 6, 0 }; + static const int shifte[] = { 0, 6, 4, 2, 0 }; + int len = lengths[*(const unsigned char*)in_text >> 3]; + int wanted = len + !len; + + if (in_text_end == NULL) + in_text_end = in_text + wanted; // Max length, nulls will be taken into account. + + // Copy at most 'len' bytes, stop copying at 0 or past in_text_end. Branch predictor does a good job here, + // so it is fast even with excessive branching. + unsigned char s[4]; + s[0] = in_text + 0 < in_text_end ? in_text[0] : 0; + s[1] = in_text + 1 < in_text_end ? in_text[1] : 0; + s[2] = in_text + 2 < in_text_end ? in_text[2] : 0; + s[3] = in_text + 3 < in_text_end ? in_text[3] : 0; + + // Assume a four-byte character and load four bytes. Unused bits are shifted out. + *out_char = (uint32_t)(s[0] & masks[len]) << 18; + *out_char |= (uint32_t)(s[1] & 0x3f) << 12; + *out_char |= (uint32_t)(s[2] & 0x3f) << 6; + *out_char |= (uint32_t)(s[3] & 0x3f) << 0; + *out_char >>= shiftc[len]; + + // Accumulate the various error conditions. + int e = 0; + e = (*out_char < mins[len]) << 6; // non-canonical encoding + e |= ((*out_char >> 11) == 0x1b) << 7; // surrogate half? + e |= (*out_char > IM_UNICODE_CODEPOINT_MAX) << 8; // out of range? + e |= (s[1] & 0xc0) >> 2; + e |= (s[2] & 0xc0) >> 4; + e |= (s[3] ) >> 6; + e ^= 0x2a; // top two bits of each tail byte correct? + e >>= shifte[len]; + + if (e) + { + // No bytes are consumed when *in_text == 0 || in_text == in_text_end. + // One byte is consumed in case of invalid first byte of in_text. + // All available bytes (at most `len` bytes) are consumed on incomplete/invalid second to last bytes. + // Invalid or incomplete input may consume less bytes than wanted, therefore every byte has to be inspected in s. + wanted = ImMin(wanted, !!s[0] + !!s[1] + !!s[2] + !!s[3]); + *out_char = IM_UNICODE_CODEPOINT_INVALID; + } + + return wanted; +} + +int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_text_remaining) +{ + ImWchar* buf_out = buf; + ImWchar* buf_end = buf + buf_size; + while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + if (c == 0) + break; + *buf_out++ = (ImWchar)c; + } + *buf_out = 0; + if (in_text_remaining) + *in_text_remaining = in_text; + return (int)(buf_out - buf); +} + +int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end) +{ + int char_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + if (c == 0) + break; + char_count++; + } + return char_count; +} + +// Based on stb_to_utf8() from github.com/nothings/stb/ +static inline int ImTextCharToUtf8_inline(char* buf, int buf_size, unsigned int c) +{ + if (c < 0x80) + { + buf[0] = (char)c; + return 1; + } + if (c < 0x800) + { + if (buf_size < 2) return 0; + buf[0] = (char)(0xc0 + (c >> 6)); + buf[1] = (char)(0x80 + (c & 0x3f)); + return 2; + } + if (c < 0x10000) + { + if (buf_size < 3) return 0; + buf[0] = (char)(0xe0 + (c >> 12)); + buf[1] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[2] = (char)(0x80 + ((c ) & 0x3f)); + return 3; + } + if (c <= 0x10FFFF) + { + if (buf_size < 4) return 0; + buf[0] = (char)(0xf0 + (c >> 18)); + buf[1] = (char)(0x80 + ((c >> 12) & 0x3f)); + buf[2] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[3] = (char)(0x80 + ((c ) & 0x3f)); + return 4; + } + // Invalid code point, the max unicode is 0x10FFFF + return 0; +} + +const char* ImTextCharToUtf8(char out_buf[5], unsigned int c) +{ + int count = ImTextCharToUtf8_inline(out_buf, 5, c); + out_buf[count] = 0; + return out_buf; +} + +// Not optimal but we very rarely use this function. +int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end) +{ + unsigned int unused = 0; + return ImTextCharFromUtf8(&unused, in_text, in_text_end); +} + +static inline int ImTextCountUtf8BytesFromChar(unsigned int c) +{ + if (c < 0x80) return 1; + if (c < 0x800) return 2; + if (c < 0x10000) return 3; + if (c <= 0x10FFFF) return 4; + return 3; +} + +int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end) +{ + char* buf_p = out_buf; + const char* buf_end = out_buf + out_buf_size; + while (buf_p < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + *buf_p++ = (char)c; + else + buf_p += ImTextCharToUtf8_inline(buf_p, (int)(buf_end - buf_p - 1), c); + } + *buf_p = 0; + return (int)(buf_p - out_buf); +} + +int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end) +{ + int bytes_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + bytes_count++; + else + bytes_count += ImTextCountUtf8BytesFromChar(c); + } + return bytes_count; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// Note: The Convert functions are early design which are not consistent with other API. +//----------------------------------------------------------------------------- + +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b) +{ + float t = ((col_b >> IM_COL32_A_SHIFT) & 0xFF) / 255.f; + int r = ImLerp((int)(col_a >> IM_COL32_R_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_R_SHIFT) & 0xFF, t); + int g = ImLerp((int)(col_a >> IM_COL32_G_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_G_SHIFT) & 0xFF, t); + int b = ImLerp((int)(col_a >> IM_COL32_B_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_B_SHIFT) & 0xFF, t); + return IM_COL32(r, g, b, 0xFF); +} + +ImVec4 ImGui::ColorConvertU32ToFloat4(ImU32 in) +{ + float s = 1.0f / 255.0f; + return ImVec4( + ((in >> IM_COL32_R_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_G_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_B_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_A_SHIFT) & 0xFF) * s); +} + +ImU32 ImGui::ColorConvertFloat4ToU32(const ImVec4& in) +{ + ImU32 out; + out = ((ImU32)IM_F32_TO_INT8_SAT(in.x)) << IM_COL32_R_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.y)) << IM_COL32_G_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.z)) << IM_COL32_B_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.w)) << IM_COL32_A_SHIFT; + return out; +} + +// Convert rgb floats ([0-1],[0-1],[0-1]) to hsv floats ([0-1],[0-1],[0-1]), from Foley & van Dam p592 +// Optimized http://lolengine.net/blog/2013/01/13/fast-rgb-to-hsv +void ImGui::ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v) +{ + float K = 0.f; + if (g < b) + { + ImSwap(g, b); + K = -1.f; + } + if (r < g) + { + ImSwap(r, g); + K = -2.f / 6.f - K; + } + + const float chroma = r - (g < b ? g : b); + out_h = ImFabs(K + (g - b) / (6.f * chroma + 1e-20f)); + out_s = chroma / (r + 1e-20f); + out_v = r; +} + +// Convert hsv floats ([0-1],[0-1],[0-1]) to rgb floats ([0-1],[0-1],[0-1]), from Foley & van Dam p593 +// also http://en.wikipedia.org/wiki/HSL_and_HSV +void ImGui::ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b) +{ + if (s == 0.0f) + { + // gray + out_r = out_g = out_b = v; + return; + } + + h = ImFmod(h, 1.0f) / (60.0f / 360.0f); + int i = (int)h; + float f = h - (float)i; + float p = v * (1.0f - s); + float q = v * (1.0f - s * f); + float t = v * (1.0f - s * (1.0f - f)); + + switch (i) + { + case 0: out_r = v; out_g = t; out_b = p; break; + case 1: out_r = q; out_g = v; out_b = p; break; + case 2: out_r = p; out_g = v; out_b = t; break; + case 3: out_r = p; out_g = q; out_b = v; break; + case 4: out_r = t; out_g = p; out_b = v; break; + case 5: default: out_r = v; out_g = p; out_b = q; break; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiStorage +// Helper: Key->value storage +//----------------------------------------------------------------------------- + +// std::lower_bound but without the bullshit +static ImGuiStorage::ImGuiStoragePair* LowerBound(ImVector& data, ImGuiID key) +{ + ImGuiStorage::ImGuiStoragePair* first = data.Data; + ImGuiStorage::ImGuiStoragePair* last = data.Data + data.Size; + size_t count = (size_t)(last - first); + while (count > 0) + { + size_t count2 = count >> 1; + ImGuiStorage::ImGuiStoragePair* mid = first + count2; + if (mid->key < key) + { + first = ++mid; + count -= count2 + 1; + } + else + { + count = count2; + } + } + return first; +} + +// For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. +void ImGuiStorage::BuildSortByKey() +{ + struct StaticFunc + { + static int IMGUI_CDECL PairComparerByID(const void* lhs, const void* rhs) + { + // We can't just do a subtraction because qsort uses signed integers and subtracting our ID doesn't play well with that. + if (((const ImGuiStoragePair*)lhs)->key > ((const ImGuiStoragePair*)rhs)->key) return +1; + if (((const ImGuiStoragePair*)lhs)->key < ((const ImGuiStoragePair*)rhs)->key) return -1; + return 0; + } + }; + ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), StaticFunc::PairComparerByID); +} + +int ImGuiStorage::GetInt(ImGuiID key, int default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_i; +} + +bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const +{ + return GetInt(key, default_val ? 1 : 0) != 0; +} + +float ImGuiStorage::GetFloat(ImGuiID key, float default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_f; +} + +void* ImGuiStorage::GetVoidPtr(ImGuiID key) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return NULL; + return it->val_p; +} + +// References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. +int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_i; +} + +bool* ImGuiStorage::GetBoolRef(ImGuiID key, bool default_val) +{ + return (bool*)GetIntRef(key, default_val ? 1 : 0); +} + +float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_f; +} + +void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_p; +} + +// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad because it only happens on explicit interaction (maximum one a frame) +void ImGuiStorage::SetInt(ImGuiID key, int val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_i = val; +} + +void ImGuiStorage::SetBool(ImGuiID key, bool val) +{ + SetInt(key, val ? 1 : 0); +} + +void ImGuiStorage::SetFloat(ImGuiID key, float val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_f = val; +} + +void ImGuiStorage::SetVoidPtr(ImGuiID key, void* val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_p = val; +} + +void ImGuiStorage::SetAllInt(int v) +{ + for (int i = 0; i < Data.Size; i++) + Data[i].val_i = v; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextFilter +//----------------------------------------------------------------------------- + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) //-V1077 +{ + InputBuf[0] = 0; + CountGrep = 0; + if (default_filter) + { + ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); + Build(); + } +} + +bool ImGuiTextFilter::Draw(const char* label, float width) +{ + if (width != 0.0f) + ImGui::SetNextItemWidth(width); + bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf)); + if (value_changed) + Build(); + return value_changed; +} + +void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector* out) const +{ + out->resize(0); + const char* wb = b; + const char* we = wb; + while (we < e) + { + if (*we == separator) + { + out->push_back(ImGuiTextRange(wb, we)); + wb = we + 1; + } + we++; + } + if (wb != we) + out->push_back(ImGuiTextRange(wb, we)); +} + +void ImGuiTextFilter::Build() +{ + Filters.resize(0); + ImGuiTextRange input_range(InputBuf, InputBuf + strlen(InputBuf)); + input_range.split(',', &Filters); + + CountGrep = 0; + for (int i = 0; i != Filters.Size; i++) + { + ImGuiTextRange& f = Filters[i]; + while (f.b < f.e && ImCharIsBlankA(f.b[0])) + f.b++; + while (f.e > f.b && ImCharIsBlankA(f.e[-1])) + f.e--; + if (f.empty()) + continue; + if (Filters[i].b[0] != '-') + CountGrep += 1; + } +} + +bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const +{ + if (Filters.empty()) + return true; + + if (text == NULL) + text = ""; + + for (int i = 0; i != Filters.Size; i++) + { + const ImGuiTextRange& f = Filters[i]; + if (f.empty()) + continue; + if (f.b[0] == '-') + { + // Subtract + if (ImStristr(text, text_end, f.b + 1, f.e) != NULL) + return false; + } + else + { + // Grep + if (ImStristr(text, text_end, f.b, f.e) != NULL) + return true; + } + } + + // Implicit * grep + if (CountGrep == 0) + return true; + + return false; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex +//----------------------------------------------------------------------------- + +// On some platform vsnprintf() takes va_list by reference and modifies it. +// va_copy is the 'correct' way to copy a va_list but Visual Studio prior to 2013 doesn't have it. +#ifndef va_copy +#if defined(__GNUC__) || defined(__clang__) +#define va_copy(dest, src) __builtin_va_copy(dest, src) +#else +#define va_copy(dest, src) (dest = src) +#endif +#endif + +char ImGuiTextBuffer::EmptyString[1] = { 0 }; + +void ImGuiTextBuffer::append(const char* str, const char* str_end) +{ + int len = str_end ? (int)(str_end - str) : (int)strlen(str); + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + memcpy(&Buf[write_off - 1], str, (size_t)len); + Buf[write_off - 1 + len] = 0; +} + +void ImGuiTextBuffer::appendf(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + appendfv(fmt, args); + va_end(args); +} + +// Helper: Text buffer for logging/accumulating text +void ImGuiTextBuffer::appendfv(const char* fmt, va_list args) +{ + va_list args_copy; + va_copy(args_copy, args); + + int len = ImFormatStringV(NULL, 0, fmt, args); // FIXME-OPT: could do a first pass write attempt, likely successful on first pass. + if (len <= 0) + { + va_end(args_copy); + return; + } + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + ImFormatStringV(&Buf[write_off - 1], (size_t)len + 1, fmt, args_copy); + va_end(args_copy); +} + +void ImGuiTextIndex::append(const char* base, int old_size, int new_size) +{ + IM_ASSERT(old_size >= 0 && new_size >= old_size && new_size >= EndOffset); + if (old_size == new_size) + return; + if (EndOffset == 0 || base[EndOffset - 1] == '\n') + LineOffsets.push_back(EndOffset); + const char* base_end = base + new_size; + for (const char* p = base + old_size; (p = (const char*)memchr(p, '\n', base_end - p)) != 0; ) + if (++p < base_end) // Don't push a trailing offset on last \n + LineOffsets.push_back((int)(intptr_t)(p - base)); + EndOffset = ImMax(EndOffset, new_size); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiListClipper +// This is currently not as flexible/powerful as it should be and really confusing/spaghetti, mostly because we changed +// the API mid-way through development and support two ways to using the clipper, needs some rework (see TODO) +//----------------------------------------------------------------------------- + +// FIXME-TABLE: This prevents us from using ImGuiListClipper _inside_ a table cell. +// The problem we have is that without a Begin/End scheme for rows using the clipper is ambiguous. +static bool GetSkipItemForListClipping() +{ + ImGuiContext& g = *GImGui; + return (g.CurrentTable ? g.CurrentTable->HostSkipItems : g.CurrentWindow->SkipItems); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy helper to calculate coarse clipping of large list of evenly sized items. +// This legacy API is not ideal because it assumes we will return a single contiguous rectangle. +// Prefer using ImGuiListClipper which can returns non-contiguous ranges. +void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.LogEnabled) + { + // If logging is active, do not perform any clipping + *out_items_display_start = 0; + *out_items_display_end = items_count; + return; + } + if (GetSkipItemForListClipping()) + { + *out_items_display_start = *out_items_display_end = 0; + return; + } + + // We create the union of the ClipRect and the scoring rect which at worst should be 1 page away from ClipRect + // We don't include g.NavId's rectangle in there (unless g.NavJustMovedToId is set) because the rectangle enlargement can get costly. + ImRect rect = window->ClipRect; + if (g.NavMoveScoringItems) + rect.Add(g.NavScoringNoClipRect); + if (g.NavJustMovedToId && window->NavLastIds[0] == g.NavJustMovedToId) + rect.Add(WindowRectRelToAbs(window, window->NavRectRel[0])); // Could store and use NavJustMovedToRectRel + + const ImVec2 pos = window->DC.CursorPos; + int start = (int)((rect.Min.y - pos.y) / items_height); + int end = (int)((rect.Max.y - pos.y) / items_height); + + // When performing a navigation request, ensure we have one item extra in the direction we are moving to + // FIXME: Verify this works with tabbing + const bool is_nav_request = (g.NavMoveScoringItems && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (is_nav_request && g.NavMoveClipDir == ImGuiDir_Up) + start--; + if (is_nav_request && g.NavMoveClipDir == ImGuiDir_Down) + end++; + + start = ImClamp(start, 0, items_count); + end = ImClamp(end + 1, start, items_count); + *out_items_display_start = start; + *out_items_display_end = end; +} +#endif + +static void ImGuiListClipper_SortAndFuseRanges(ImVector& ranges, int offset = 0) +{ + if (ranges.Size - offset <= 1) + return; + + // Helper to order ranges and fuse them together if possible (bubble sort is fine as we are only sorting 2-3 entries) + for (int sort_end = ranges.Size - offset - 1; sort_end > 0; --sort_end) + for (int i = offset; i < sort_end + offset; ++i) + if (ranges[i].Min > ranges[i + 1].Min) + ImSwap(ranges[i], ranges[i + 1]); + + // Now fuse ranges together as much as possible. + for (int i = 1 + offset; i < ranges.Size; i++) + { + IM_ASSERT(!ranges[i].PosToIndexConvert && !ranges[i - 1].PosToIndexConvert); + if (ranges[i - 1].Max < ranges[i].Min) + continue; + ranges[i - 1].Min = ImMin(ranges[i - 1].Min, ranges[i].Min); + ranges[i - 1].Max = ImMax(ranges[i - 1].Max, ranges[i].Max); + ranges.erase(ranges.Data + i); + i--; + } +} + +static void ImGuiListClipper_SeekCursorAndSetupPrevLine(float pos_y, float line_height) +{ + // Set cursor position and a few other things so that SetScrollHereY() and Columns() can work when seeking cursor. + // FIXME: It is problematic that we have to do that here, because custom/equivalent end-user code would stumble on the same issue. + // The clipper should probably have a final step to display the last item in a regular manner, maybe with an opt-out flag for data sets which may have costly seek? + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float off_y = pos_y - window->DC.CursorPos.y; + window->DC.CursorPos.y = pos_y; + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, pos_y - g.Style.ItemSpacing.y); + window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those fields so that SetScrollHereY() can properly function after the end of our clipper usage. + window->DC.PrevLineSize.y = (line_height - g.Style.ItemSpacing.y); // If we end up needing more accurate data (to e.g. use SameLine) we may as well make the clipper have a fourth step to let user process and display the last item in their list. + if (ImGuiOldColumns* columns = window->DC.CurrentColumns) + columns->LineMinY = window->DC.CursorPos.y; // Setting this so that cell Y position are set properly + if (ImGuiTable* table = g.CurrentTable) + { + if (table->IsInsideRow) + ImGui::TableEndRow(table); + table->RowPosY2 = window->DC.CursorPos.y; + const int row_increase = (int)((off_y / line_height) + 0.5f); + //table->CurrentRow += row_increase; // Can't do without fixing TableEndRow() + table->RowBgColorCounter += row_increase; + } +} + +static void ImGuiListClipper_SeekCursorForItem(ImGuiListClipper* clipper, int item_n) +{ + // StartPosY starts from ItemsFrozen hence the subtraction + // Perform the add and multiply with double to allow seeking through larger ranges + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + float pos_y = (float)((double)clipper->StartPosY + data->LossynessOffset + (double)(item_n - data->ItemsFrozen) * clipper->ItemsHeight); + ImGuiListClipper_SeekCursorAndSetupPrevLine(pos_y, clipper->ItemsHeight); +} + +ImGuiListClipper::ImGuiListClipper() +{ + memset(this, 0, sizeof(*this)); + ItemsCount = -1; +} + +ImGuiListClipper::~ImGuiListClipper() +{ + End(); +} + +void ImGuiListClipper::Begin(int items_count, float items_height) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Begin(%d,%.2f) in '%s'\n", items_count, items_height, window->Name); + + if (ImGuiTable* table = g.CurrentTable) + if (table->IsInsideRow) + ImGui::TableEndRow(table); + + StartPosY = window->DC.CursorPos.y; + ItemsHeight = items_height; + ItemsCount = items_count; + DisplayStart = -1; + DisplayEnd = 0; + + // Acquire temporary buffer + if (++g.ClipperTempDataStacked > g.ClipperTempData.Size) + g.ClipperTempData.resize(g.ClipperTempDataStacked, ImGuiListClipperData()); + ImGuiListClipperData* data = &g.ClipperTempData[g.ClipperTempDataStacked - 1]; + data->Reset(this); + data->LossynessOffset = window->DC.CursorStartPosLossyness.y; + TempData = data; +} + +void ImGuiListClipper::End() +{ + ImGuiContext& g = *GImGui; + if (ImGuiListClipperData* data = (ImGuiListClipperData*)TempData) + { + // In theory here we should assert that we are already at the right position, but it seems saner to just seek at the end and not assert/crash the user. + IMGUI_DEBUG_LOG_CLIPPER("Clipper: End() in '%s'\n", g.CurrentWindow->Name); + if (ItemsCount >= 0 && ItemsCount < INT_MAX && DisplayStart >= 0) + ImGuiListClipper_SeekCursorForItem(this, ItemsCount); + + // Restore temporary buffer and fix back pointers which may be invalidated when nesting + IM_ASSERT(data->ListClipper == this); + data->StepNo = data->Ranges.Size; + if (--g.ClipperTempDataStacked > 0) + { + data = &g.ClipperTempData[g.ClipperTempDataStacked - 1]; + data->ListClipper->TempData = data; + } + TempData = NULL; + } + ItemsCount = -1; +} + +void ImGuiListClipper::ForceDisplayRangeByIndices(int item_min, int item_max) +{ + ImGuiListClipperData* data = (ImGuiListClipperData*)TempData; + IM_ASSERT(DisplayStart < 0); // Only allowed after Begin() and if there has not been a specified range yet. + IM_ASSERT(item_min <= item_max); + if (item_min < item_max) + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(item_min, item_max)); +} + +static bool ImGuiListClipper_StepInternal(ImGuiListClipper* clipper) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + IM_ASSERT(data != NULL && "Called ImGuiListClipper::Step() too many times, or before ImGuiListClipper::Begin() ?"); + + ImGuiTable* table = g.CurrentTable; + if (table && table->IsInsideRow) + ImGui::TableEndRow(table); + + // No items + if (clipper->ItemsCount == 0 || GetSkipItemForListClipping()) + return false; + + // While we are in frozen row state, keep displaying items one by one, unclipped + // FIXME: Could be stored as a table-agnostic state. + if (data->StepNo == 0 && table != NULL && !table->IsUnfrozenRows) + { + clipper->DisplayStart = data->ItemsFrozen; + clipper->DisplayEnd = ImMin(data->ItemsFrozen + 1, clipper->ItemsCount); + if (clipper->DisplayStart < clipper->DisplayEnd) + data->ItemsFrozen++; + return true; + } + + // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element height) + bool calc_clipping = false; + if (data->StepNo == 0) + { + clipper->StartPosY = window->DC.CursorPos.y; + if (clipper->ItemsHeight <= 0.0f) + { + // Submit the first item (or range) so we can measure its height (generally the first range is 0..1) + data->Ranges.push_front(ImGuiListClipperRange::FromIndices(data->ItemsFrozen, data->ItemsFrozen + 1)); + clipper->DisplayStart = ImMax(data->Ranges[0].Min, data->ItemsFrozen); + clipper->DisplayEnd = ImMin(data->Ranges[0].Max, clipper->ItemsCount); + data->StepNo = 1; + return true; + } + calc_clipping = true; // If on the first step with known item height, calculate clipping. + } + + // Step 1: Let the clipper infer height from first range + if (clipper->ItemsHeight <= 0.0f) + { + IM_ASSERT(data->StepNo == 1); + if (table) + IM_ASSERT(table->RowPosY1 == clipper->StartPosY && table->RowPosY2 == window->DC.CursorPos.y); + + clipper->ItemsHeight = (window->DC.CursorPos.y - clipper->StartPosY) / (float)(clipper->DisplayEnd - clipper->DisplayStart); + bool affected_by_floating_point_precision = ImIsFloatAboveGuaranteedIntegerPrecision(clipper->StartPosY) || ImIsFloatAboveGuaranteedIntegerPrecision(window->DC.CursorPos.y); + if (affected_by_floating_point_precision) + clipper->ItemsHeight = window->DC.PrevLineSize.y + g.Style.ItemSpacing.y; // FIXME: Technically wouldn't allow multi-line entries. + + IM_ASSERT(clipper->ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); + calc_clipping = true; // If item height had to be calculated, calculate clipping afterwards. + } + + // Step 0 or 1: Calculate the actual ranges of visible elements. + const int already_submitted = clipper->DisplayEnd; + if (calc_clipping) + { + if (g.LogEnabled) + { + // If logging is active, do not perform any clipping + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(0, clipper->ItemsCount)); + } + else + { + // Add range selected to be included for navigation + const bool is_nav_request = (g.NavMoveScoringItems && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (is_nav_request) + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(g.NavScoringNoClipRect.Min.y, g.NavScoringNoClipRect.Max.y, 0, 0)); + if (is_nav_request && (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) && g.NavTabbingDir == -1) + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(clipper->ItemsCount - 1, clipper->ItemsCount)); + + // Add focused/active item + ImRect nav_rect_abs = ImGui::WindowRectRelToAbs(window, window->NavRectRel[0]); + if (g.NavId != 0 && window->NavLastIds[0] == g.NavId) + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(nav_rect_abs.Min.y, nav_rect_abs.Max.y, 0, 0)); + + // Add visible range + const int off_min = (is_nav_request && g.NavMoveClipDir == ImGuiDir_Up) ? -1 : 0; + const int off_max = (is_nav_request && g.NavMoveClipDir == ImGuiDir_Down) ? 1 : 0; + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(window->ClipRect.Min.y, window->ClipRect.Max.y, off_min, off_max)); + } + + // Convert position ranges to item index ranges + // - Very important: when a starting position is after our maximum item, we set Min to (ItemsCount - 1). This allows us to handle most forms of wrapping. + // - Due to how Selectable extra padding they tend to be "unaligned" with exact unit in the item list, + // which with the flooring/ceiling tend to lead to 2 items instead of one being submitted. + for (int i = 0; i < data->Ranges.Size; i++) + if (data->Ranges[i].PosToIndexConvert) + { + int m1 = (int)(((double)data->Ranges[i].Min - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight); + int m2 = (int)((((double)data->Ranges[i].Max - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight) + 0.999999f); + data->Ranges[i].Min = ImClamp(already_submitted + m1 + data->Ranges[i].PosToIndexOffsetMin, already_submitted, clipper->ItemsCount - 1); + data->Ranges[i].Max = ImClamp(already_submitted + m2 + data->Ranges[i].PosToIndexOffsetMax, data->Ranges[i].Min + 1, clipper->ItemsCount); + data->Ranges[i].PosToIndexConvert = false; + } + ImGuiListClipper_SortAndFuseRanges(data->Ranges, data->StepNo); + } + + // Step 0+ (if item height is given in advance) or 1+: Display the next range in line. + if (data->StepNo < data->Ranges.Size) + { + clipper->DisplayStart = ImMax(data->Ranges[data->StepNo].Min, already_submitted); + clipper->DisplayEnd = ImMin(data->Ranges[data->StepNo].Max, clipper->ItemsCount); + if (clipper->DisplayStart > already_submitted) //-V1051 + ImGuiListClipper_SeekCursorForItem(clipper, clipper->DisplayStart); + data->StepNo++; + return true; + } + + // After the last step: Let the clipper validate that we have reached the expected Y position (corresponding to element DisplayEnd), + // Advance the cursor to the end of the list and then returns 'false' to end the loop. + if (clipper->ItemsCount < INT_MAX) + ImGuiListClipper_SeekCursorForItem(clipper, clipper->ItemsCount); + + return false; +} + +bool ImGuiListClipper::Step() +{ + ImGuiContext& g = *GImGui; + bool need_items_height = (ItemsHeight <= 0.0f); + bool ret = ImGuiListClipper_StepInternal(this); + if (ret && (DisplayStart == DisplayEnd)) + ret = false; + if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); + if (need_items_height && ItemsHeight > 0.0f) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); + if (ret) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); + else + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); + if (!ret) + End(); + return ret; +} + +//----------------------------------------------------------------------------- +// [SECTION] STYLING +//----------------------------------------------------------------------------- + +ImGuiStyle& ImGui::GetStyle() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->Style; +} + +ImU32 ImGui::GetColorU32(ImGuiCol idx, float alpha_mul) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = style.Colors[idx]; + c.w *= style.Alpha * alpha_mul; + return ColorConvertFloat4ToU32(c); +} + +ImU32 ImGui::GetColorU32(const ImVec4& col) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = col; + c.w *= style.Alpha; + return ColorConvertFloat4ToU32(c); +} + +const ImVec4& ImGui::GetStyleColorVec4(ImGuiCol idx) +{ + ImGuiStyle& style = GImGui->Style; + return style.Colors[idx]; +} + +ImU32 ImGui::GetColorU32(ImU32 col) +{ + ImGuiStyle& style = GImGui->Style; + if (style.Alpha >= 1.0f) + return col; + ImU32 a = (col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT; + a = (ImU32)(a * style.Alpha); // We don't need to clamp 0..255 because Style.Alpha is in 0..1 range. + return (col & ~IM_COL32_A_MASK) | (a << IM_COL32_A_SHIFT); +} + +// FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32 +void ImGui::PushStyleColor(ImGuiCol idx, ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorStack.push_back(backup); + g.Style.Colors[idx] = ColorConvertU32ToFloat4(col); +} + +void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorStack.push_back(backup); + g.Style.Colors[idx] = col; +} + +void ImGui::PopStyleColor(int count) +{ + ImGuiContext& g = *GImGui; + if (g.ColorStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.ColorStack.Size > count, "Calling PopStyleColor() too many times: stack underflow."); + count = g.ColorStack.Size; + } + while (count > 0) + { + ImGuiColorMod& backup = g.ColorStack.back(); + g.Style.Colors[backup.Col] = backup.BackupValue; + g.ColorStack.pop_back(); + count--; + } +} + +struct ImGuiStyleVarInfo +{ + ImGuiDataType Type; + ImU32 Count; + ImU32 Offset; + void* GetVarPtr(ImGuiStyle* style) const { return (void*)((unsigned char*)style + Offset); } +}; + +static const ImGuiStyleVarInfo GStyleVarInfo[] = +{ + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, Alpha) }, // ImGuiStyleVar_Alpha + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, DisabledAlpha) }, // ImGuiStyleVar_DisabledAlpha + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowPadding) }, // ImGuiStyleVar_WindowPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowRounding) }, // ImGuiStyleVar_WindowRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowBorderSize) }, // ImGuiStyleVar_WindowBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowMinSize) }, // ImGuiStyleVar_WindowMinSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowTitleAlign) }, // ImGuiStyleVar_WindowTitleAlign + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildRounding) }, // ImGuiStyleVar_ChildRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildBorderSize) }, // ImGuiStyleVar_ChildBorderSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupRounding) }, // ImGuiStyleVar_PopupRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupBorderSize) }, // ImGuiStyleVar_PopupBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, FramePadding) }, // ImGuiStyleVar_FramePadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameRounding) }, // ImGuiStyleVar_FrameRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameBorderSize) }, // ImGuiStyleVar_FrameBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemSpacing) }, // ImGuiStyleVar_ItemSpacing + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemInnerSpacing) }, // ImGuiStyleVar_ItemInnerSpacing + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, IndentSpacing) }, // ImGuiStyleVar_IndentSpacing + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, CellPadding) }, // ImGuiStyleVar_CellPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarSize) }, // ImGuiStyleVar_ScrollbarSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarRounding) }, // ImGuiStyleVar_ScrollbarRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabMinSize) }, // ImGuiStyleVar_GrabMinSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabRounding) }, // ImGuiStyleVar_GrabRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, TabRounding) }, // ImGuiStyleVar_TabRounding + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ButtonTextAlign) }, // ImGuiStyleVar_ButtonTextAlign + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SelectableTextAlign) }, // ImGuiStyleVar_SelectableTextAlign +}; + +static const ImGuiStyleVarInfo* GetStyleVarInfo(ImGuiStyleVar idx) +{ + IM_ASSERT(idx >= 0 && idx < ImGuiStyleVar_COUNT); + IM_ASSERT(IM_ARRAYSIZE(GStyleVarInfo) == ImGuiStyleVar_COUNT); + return &GStyleVarInfo[idx]; +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, float val) +{ + const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1) + { + ImGuiContext& g = *GImGui; + float* pvar = (float*)var_info->GetVarPtr(&g.Style); + g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT(0 && "Called PushStyleVar() float variant but variable is not a float!"); +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val) +{ + const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 2) + { + ImGuiContext& g = *GImGui; + ImVec2* pvar = (ImVec2*)var_info->GetVarPtr(&g.Style); + g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT(0 && "Called PushStyleVar() ImVec2 variant but variable is not a ImVec2!"); +} + +void ImGui::PopStyleVar(int count) +{ + ImGuiContext& g = *GImGui; + if (g.StyleVarStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.StyleVarStack.Size > count, "Calling PopStyleVar() too many times: stack underflow."); + count = g.StyleVarStack.Size; + } + while (count > 0) + { + // We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it. + ImGuiStyleMod& backup = g.StyleVarStack.back(); + const ImGuiStyleVarInfo* info = GetStyleVarInfo(backup.VarIdx); + void* data = info->GetVarPtr(&g.Style); + if (info->Type == ImGuiDataType_Float && info->Count == 1) { ((float*)data)[0] = backup.BackupFloat[0]; } + else if (info->Type == ImGuiDataType_Float && info->Count == 2) { ((float*)data)[0] = backup.BackupFloat[0]; ((float*)data)[1] = backup.BackupFloat[1]; } + g.StyleVarStack.pop_back(); + count--; + } +} + +const char* ImGui::GetStyleColorName(ImGuiCol idx) +{ + // Create switch-case from enum with regexp: ImGuiCol_{.*}, --> case ImGuiCol_\1: return "\1"; + switch (idx) + { + case ImGuiCol_Text: return "Text"; + case ImGuiCol_TextDisabled: return "TextDisabled"; + case ImGuiCol_WindowBg: return "WindowBg"; + case ImGuiCol_ChildBg: return "ChildBg"; + case ImGuiCol_PopupBg: return "PopupBg"; + case ImGuiCol_Border: return "Border"; + case ImGuiCol_BorderShadow: return "BorderShadow"; + case ImGuiCol_FrameBg: return "FrameBg"; + case ImGuiCol_FrameBgHovered: return "FrameBgHovered"; + case ImGuiCol_FrameBgActive: return "FrameBgActive"; + case ImGuiCol_TitleBg: return "TitleBg"; + case ImGuiCol_TitleBgActive: return "TitleBgActive"; + case ImGuiCol_TitleBgCollapsed: return "TitleBgCollapsed"; + case ImGuiCol_MenuBarBg: return "MenuBarBg"; + case ImGuiCol_ScrollbarBg: return "ScrollbarBg"; + case ImGuiCol_ScrollbarGrab: return "ScrollbarGrab"; + case ImGuiCol_ScrollbarGrabHovered: return "ScrollbarGrabHovered"; + case ImGuiCol_ScrollbarGrabActive: return "ScrollbarGrabActive"; + case ImGuiCol_CheckMark: return "CheckMark"; + case ImGuiCol_SliderGrab: return "SliderGrab"; + case ImGuiCol_SliderGrabActive: return "SliderGrabActive"; + case ImGuiCol_Button: return "Button"; + case ImGuiCol_ButtonHovered: return "ButtonHovered"; + case ImGuiCol_ButtonActive: return "ButtonActive"; + case ImGuiCol_Header: return "Header"; + case ImGuiCol_HeaderHovered: return "HeaderHovered"; + case ImGuiCol_HeaderActive: return "HeaderActive"; + case ImGuiCol_Separator: return "Separator"; + case ImGuiCol_SeparatorHovered: return "SeparatorHovered"; + case ImGuiCol_SeparatorActive: return "SeparatorActive"; + case ImGuiCol_ResizeGrip: return "ResizeGrip"; + case ImGuiCol_ResizeGripHovered: return "ResizeGripHovered"; + case ImGuiCol_ResizeGripActive: return "ResizeGripActive"; + case ImGuiCol_Tab: return "Tab"; + case ImGuiCol_TabHovered: return "TabHovered"; + case ImGuiCol_TabActive: return "TabActive"; + case ImGuiCol_TabUnfocused: return "TabUnfocused"; + case ImGuiCol_TabUnfocusedActive: return "TabUnfocusedActive"; + case ImGuiCol_PlotLines: return "PlotLines"; + case ImGuiCol_PlotLinesHovered: return "PlotLinesHovered"; + case ImGuiCol_PlotHistogram: return "PlotHistogram"; + case ImGuiCol_PlotHistogramHovered: return "PlotHistogramHovered"; + case ImGuiCol_TableHeaderBg: return "TableHeaderBg"; + case ImGuiCol_TableBorderStrong: return "TableBorderStrong"; + case ImGuiCol_TableBorderLight: return "TableBorderLight"; + case ImGuiCol_TableRowBg: return "TableRowBg"; + case ImGuiCol_TableRowBgAlt: return "TableRowBgAlt"; + case ImGuiCol_TextSelectedBg: return "TextSelectedBg"; + case ImGuiCol_DragDropTarget: return "DragDropTarget"; + case ImGuiCol_NavHighlight: return "NavHighlight"; + case ImGuiCol_NavWindowingHighlight: return "NavWindowingHighlight"; + case ImGuiCol_NavWindowingDimBg: return "NavWindowingDimBg"; + case ImGuiCol_ModalWindowDimBg: return "ModalWindowDimBg"; + } + IM_ASSERT(0); + return "Unknown"; +} + + +//----------------------------------------------------------------------------- +// [SECTION] RENDER HELPERS +// Some of those (internal) functions are currently quite a legacy mess - their signature and behavior will change, +// we need a nicer separation between low-level functions and high-level functions relying on the ImGui context. +// Also see imgui_draw.cpp for some more which have been reworked to not rely on ImGui:: context. +//----------------------------------------------------------------------------- + +const char* ImGui::FindRenderedTextEnd(const char* text, const char* text_end) +{ + const char* text_display_end = text; + if (!text_end) + text_end = (const char*)-1; + + while (text_display_end < text_end && *text_display_end != '\0' && (text_display_end[0] != '#' || text_display_end[1] != '#')) + text_display_end++; + return text_display_end; +} + +// Internal ImGui functions to render text +// RenderText***() functions calls ImDrawList::AddText() calls ImBitmapFont::RenderText() +void ImGui::RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Hide anything after a '##' string + const char* text_display_end; + if (hide_text_after_hash) + { + text_display_end = FindRenderedTextEnd(text, text_end); + } + else + { + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + text_display_end = text_end; + } + + if (text != text_display_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_display_end); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_display_end); + } +} + +void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + + if (text != text_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_end); + } +} + +// Default clip_rect uses (pos_min,pos_max) +// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges) +void ImGui::RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_display_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Perform CPU side clipping for single clipped element to avoid using scissor state + ImVec2 pos = pos_min; + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_display_end, false, 0.0f); + + const ImVec2* clip_min = clip_rect ? &clip_rect->Min : &pos_min; + const ImVec2* clip_max = clip_rect ? &clip_rect->Max : &pos_max; + bool need_clipping = (pos.x + text_size.x >= clip_max->x) || (pos.y + text_size.y >= clip_max->y); + if (clip_rect) // If we had no explicit clipping rectangle then pos==clip_min + need_clipping |= (pos.x < clip_min->x) || (pos.y < clip_min->y); + + // Align whole block. We should defer that to the better rendering function when we'll have support for individual line alignment. + if (align.x > 0.0f) pos.x = ImMax(pos.x, pos.x + (pos_max.x - pos.x - text_size.x) * align.x); + if (align.y > 0.0f) pos.y = ImMax(pos.y, pos.y + (pos_max.y - pos.y - text_size.y) * align.y); + + // Render + if (need_clipping) + { + ImVec4 fine_clip_rect(clip_min->x, clip_min->y, clip_max->x, clip_max->y); + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, &fine_clip_rect); + } + else + { + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, NULL); + } +} + +void ImGui::RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Hide anything after a '##' string + const char* text_display_end = FindRenderedTextEnd(text, text_end); + const int text_len = (int)(text_display_end - text); + if (text_len == 0) + return; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + RenderTextClippedEx(window->DrawList, pos_min, pos_max, text, text_display_end, text_size_if_known, align, clip_rect); + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_display_end); +} + + +// Another overly complex function until we reorganize everything into a nice all-in-one helper. +// This is made more complex because we have dissociated the layout rectangle (pos_min..pos_max) which define _where_ the ellipsis is, from actual clipping of text and limit of the ellipsis display. +// This is because in the context of tabs we selectively hide part of the text when the Close Button appears, but we don't want the ellipsis to move. +void ImGui::RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end_full, const ImVec2* text_size_if_known) +{ + ImGuiContext& g = *GImGui; + if (text_end_full == NULL) + text_end_full = FindRenderedTextEnd(text); + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_end_full, false, 0.0f); + + //draw_list->AddLine(ImVec2(pos_max.x, pos_min.y - 4), ImVec2(pos_max.x, pos_max.y + 4), IM_COL32(0, 0, 255, 255)); + //draw_list->AddLine(ImVec2(ellipsis_max_x, pos_min.y-2), ImVec2(ellipsis_max_x, pos_max.y+2), IM_COL32(0, 255, 0, 255)); + //draw_list->AddLine(ImVec2(clip_max_x, pos_min.y), ImVec2(clip_max_x, pos_max.y), IM_COL32(255, 0, 0, 255)); + // FIXME: We could technically remove (last_glyph->AdvanceX - last_glyph->X1) from text_size.x here and save a few pixels. + if (text_size.x > pos_max.x - pos_min.x) + { + // Hello wo... + // | | | + // min max ellipsis_max + // <-> this is generally some padding value + + const ImFont* font = draw_list->_Data->Font; + const float font_size = draw_list->_Data->FontSize; + const char* text_end_ellipsis = NULL; + + ImWchar ellipsis_char = font->EllipsisChar; + int ellipsis_char_count = 1; + if (ellipsis_char == (ImWchar)-1) + { + ellipsis_char = font->DotChar; + ellipsis_char_count = 3; + } + const ImFontGlyph* glyph = font->FindGlyph(ellipsis_char); + + float ellipsis_glyph_width = glyph->X1; // Width of the glyph with no padding on either side + float ellipsis_total_width = ellipsis_glyph_width; // Full width of entire ellipsis + + if (ellipsis_char_count > 1) + { + // Full ellipsis size without free spacing after it. + const float spacing_between_dots = 1.0f * (draw_list->_Data->FontSize / font->FontSize); + ellipsis_glyph_width = glyph->X1 - glyph->X0 + spacing_between_dots; + ellipsis_total_width = ellipsis_glyph_width * (float)ellipsis_char_count - spacing_between_dots; + } + + // We can now claim the space between pos_max.x and ellipsis_max.x + const float text_avail_width = ImMax((ImMax(pos_max.x, ellipsis_max_x) - ellipsis_total_width) - pos_min.x, 1.0f); + float text_size_clipped_x = font->CalcTextSizeA(font_size, text_avail_width, 0.0f, text, text_end_full, &text_end_ellipsis).x; + if (text == text_end_ellipsis && text_end_ellipsis < text_end_full) + { + // Always display at least 1 character if there's no room for character + ellipsis + text_end_ellipsis = text + ImTextCountUtf8BytesFromChar(text, text_end_full); + text_size_clipped_x = font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text, text_end_ellipsis).x; + } + while (text_end_ellipsis > text && ImCharIsBlankA(text_end_ellipsis[-1])) + { + // Trim trailing space before ellipsis (FIXME: Supporting non-ascii blanks would be nice, for this we need a function to backtrack in UTF-8 text) + text_end_ellipsis--; + text_size_clipped_x -= font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text_end_ellipsis, text_end_ellipsis + 1).x; // Ascii blanks are always 1 byte + } + + // Render text, render ellipsis + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_ellipsis, &text_size, ImVec2(0.0f, 0.0f)); + float ellipsis_x = pos_min.x + text_size_clipped_x; + if (ellipsis_x + ellipsis_total_width <= ellipsis_max_x) + for (int i = 0; i < ellipsis_char_count; i++) + { + font->RenderChar(draw_list, font_size, ImVec2(ellipsis_x, pos_min.y), GetColorU32(ImGuiCol_Text), ellipsis_char); + ellipsis_x += ellipsis_glyph_width; + } + } + else + { + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_full, &text_size, ImVec2(0.0f, 0.0f)); + } + + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_end_full); +} + +// Render a rectangle shaped with optional rounding and borders +void ImGui::RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DrawList->AddRectFilled(p_min, p_max, fill_col, rounding); + const float border_size = g.Style.FrameBorderSize; + if (border && border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + } +} + +void ImGui::RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const float border_size = g.Style.FrameBorderSize; + if (border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + } +} + +void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags) +{ + ImGuiContext& g = *GImGui; + if (id != g.NavId) + return; + if (g.NavDisableHighlight && !(flags & ImGuiNavHighlightFlags_AlwaysDraw)) + return; + ImGuiWindow* window = g.CurrentWindow; + if (window->DC.NavHideHighlightOneFrame) + return; + + float rounding = (flags & ImGuiNavHighlightFlags_NoRounding) ? 0.0f : g.Style.FrameRounding; + ImRect display_rect = bb; + display_rect.ClipWith(window->ClipRect); + if (flags & ImGuiNavHighlightFlags_TypeDefault) + { + const float THICKNESS = 2.0f; + const float DISTANCE = 3.0f + THICKNESS * 0.5f; + display_rect.Expand(ImVec2(DISTANCE, DISTANCE)); + bool fully_visible = window->ClipRect.Contains(display_rect); + if (!fully_visible) + window->DrawList->PushClipRect(display_rect.Min, display_rect.Max); + window->DrawList->AddRect(display_rect.Min + ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), display_rect.Max - ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), GetColorU32(ImGuiCol_NavHighlight), rounding, 0, THICKNESS); + if (!fully_visible) + window->DrawList->PopClipRect(); + } + if (flags & ImGuiNavHighlightFlags_TypeThin) + { + window->DrawList->AddRect(display_rect.Min, display_rect.Max, GetColorU32(ImGuiCol_NavHighlight), rounding, 0, 1.0f); + } +} + +void ImGui::RenderMouseCursor(ImVec2 base_pos, float base_scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + ImDrawList* draw_list = GetForegroundDrawList(viewport); + ImFontAtlas* font_atlas = draw_list->_Data->Font->ContainerAtlas; + ImVec2 offset, size, uv[4]; + if (font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2])) + { + const ImVec2 pos = base_pos - offset; + const float scale = base_scale; + ImTextureID tex_id = font_atlas->TexID; + draw_list->PushTextureID(tex_id); + draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill); + draw_list->PopTextureID(); + } + } +} + + +//----------------------------------------------------------------------------- +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +//----------------------------------------------------------------------------- + +// ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods +ImGuiWindow::ImGuiWindow(ImGuiContext* context, const char* name) : DrawListInst(NULL) +{ + memset(this, 0, sizeof(*this)); + Name = ImStrdup(name); + NameBufLen = (int)strlen(name) + 1; + ID = ImHashStr(name); + IDStack.push_back(ID); + MoveId = GetID("#MOVE"); + ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f); + AutoFitFramesX = AutoFitFramesY = -1; + AutoPosLastDirection = ImGuiDir_None; + SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = ImGuiCond_Always | ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing; + SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX); + LastFrameActive = -1; + LastTimeActive = -1.0f; + FontWindowScale = 1.0f; + SettingsOffset = -1; + DrawList = &DrawListInst; + DrawList->_Data = &context->DrawListSharedData; + DrawList->_OwnerName = Name; +} + +ImGuiWindow::~ImGuiWindow() +{ + IM_ASSERT(DrawList == &DrawListInst); + IM_DELETE(Name); + ColumnsStorage.clear_destruct(); +} + +ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); + return id; +} + +ImGuiID ImGuiWindow::GetID(const void* ptr) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_Pointer, ptr, NULL); + return id; +} + +ImGuiID ImGuiWindow::GetID(int n) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&n, sizeof(n), seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_S32, (void*)(intptr_t)n, NULL); + return id; +} + +// This is only used in rare/specific situations to manufacture an ID out of nowhere. +ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs) +{ + ImGuiID seed = IDStack.back(); + ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs); + ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed); + return id; +} + +static void SetCurrentWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow = window; + g.CurrentTable = window && window->DC.CurrentTableIdx != -1 ? g.Tables.GetByIndex(window->DC.CurrentTableIdx) : NULL; + if (window) + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); +} + +void ImGui::GcCompactTransientMiscBuffers() +{ + ImGuiContext& g = *GImGui; + g.ItemFlagsStack.clear(); + g.GroupStack.clear(); + TableGcCompactSettings(); +} + +// Free up/compact internal window buffers, we can use this when a window becomes unused. +// Not freed: +// - ImGuiWindow, ImGuiWindowSettings, Name, StateStorage, ColumnsStorage (may hold useful data) +// This should have no noticeable visual effect. When the window reappear however, expect new allocation/buffer growth/copy cost. +void ImGui::GcCompactTransientWindowBuffers(ImGuiWindow* window) +{ + window->MemoryCompacted = true; + window->MemoryDrawListIdxCapacity = window->DrawList->IdxBuffer.Capacity; + window->MemoryDrawListVtxCapacity = window->DrawList->VtxBuffer.Capacity; + window->IDStack.clear(); + window->DrawList->_ClearFreeMemory(); + window->DC.ChildWindows.clear(); + window->DC.ItemWidthStack.clear(); + window->DC.TextWrapPosStack.clear(); +} + +void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window) +{ + // We stored capacity of the ImDrawList buffer to reduce growth-caused allocation/copy when awakening. + // The other buffers tends to amortize much faster. + window->MemoryCompacted = false; + window->DrawList->IdxBuffer.reserve(window->MemoryDrawListIdxCapacity); + window->DrawList->VtxBuffer.reserve(window->MemoryDrawListVtxCapacity); + window->MemoryDrawListIdxCapacity = window->MemoryDrawListVtxCapacity = 0; +} + +void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + // While most behaved code would make an effort to not steal active id during window move/drag operations, + // we at least need to be resilient to it. Cancelling the move is rather aggressive and users of 'master' branch + // may prefer the weird ill-defined half working situation ('docking' did assert), so may need to rework that. + if (g.MovingWindow != NULL && g.ActiveId == g.MovingWindow->MoveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() cancel MovingWindow\n"); + g.MovingWindow = NULL; + } + + // Set active id + g.ActiveIdIsJustActivated = (g.ActiveId != id); + if (g.ActiveIdIsJustActivated) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() old:0x%08X (window \"%s\") -> new:0x%08X (window \"%s\")\n", g.ActiveId, g.ActiveIdWindow ? g.ActiveIdWindow->Name : "", id, window ? window->Name : ""); + g.ActiveIdTimer = 0.0f; + g.ActiveIdHasBeenPressedBefore = false; + g.ActiveIdHasBeenEditedBefore = false; + g.ActiveIdMouseButton = -1; + if (id != 0) + { + g.LastActiveId = id; + g.LastActiveIdTimer = 0.0f; + } + } + g.ActiveId = id; + g.ActiveIdAllowOverlap = false; + g.ActiveIdNoClearOnFocusLoss = false; + g.ActiveIdWindow = window; + g.ActiveIdHasBeenEditedThisFrame = false; + if (id) + { + g.ActiveIdIsAlive = id; + g.ActiveIdSource = (g.NavActivateId == id || g.NavActivateInputId == id || g.NavJustMovedToId == id) ? (ImGuiInputSource)ImGuiInputSource_Nav : ImGuiInputSource_Mouse; + } + + // Clear declaration of inputs claimed by the widget + // (Please note that this is WIP and not all keys/inputs are thoroughly declared by all widgets yet) + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + g.ActiveIdUsingNavInputMask = 0x00; +#endif +} + +void ImGui::ClearActiveID() +{ + SetActiveID(0, NULL); // g.ActiveId = 0; +} + +void ImGui::SetHoveredID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.HoveredId = id; + g.HoveredIdAllowOverlap = false; + if (id != 0 && g.HoveredIdPreviousFrame != id) + g.HoveredIdTimer = g.HoveredIdNotActiveTimer = 0.0f; +} + +ImGuiID ImGui::GetHoveredID() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId ? g.HoveredId : g.HoveredIdPreviousFrame; +} + +// This is called by ItemAdd(). +// Code not using ItemAdd() may need to call this manually otherwise ActiveId will be cleared. In IMGUI_VERSION_NUM < 18717 this was called by GetID(). +void ImGui::KeepAliveID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + g.ActiveIdIsAlive = id; + if (g.ActiveIdPreviousFrame == id) + g.ActiveIdPreviousFrameIsAlive = true; +} + +void ImGui::MarkItemEdited(ImGuiID id) +{ + // This marking is solely to be able to provide info for IsItemDeactivatedAfterEdit(). + // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need to fill the data. + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId == id || g.ActiveId == 0 || g.DragDropActive); + IM_UNUSED(id); // Avoid unused variable warnings when asserts are compiled out. + //IM_ASSERT(g.CurrentWindow->DC.LastItemId == id); + g.ActiveIdHasBeenEditedThisFrame = true; + g.ActiveIdHasBeenEditedBefore = true; + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited; +} + +static inline bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags) +{ + // An active popup disable hovering on other windows (apart from its own children) + // FIXME-OPT: This could be cached/stored within the window. + ImGuiContext& g = *GImGui; + if (g.NavWindow) + if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindow) + if (focused_root_window->WasActive && focused_root_window != window->RootWindow) + { + // For the purpose of those flags we differentiate "standard popup" from "modal popup" + // NB: The 'else' is important because Modal windows are also Popups. + bool want_inhibit = false; + if (focused_root_window->Flags & ImGuiWindowFlags_Modal) + want_inhibit = true; + else if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + want_inhibit = true; + + // Inhibit hover unless the window is within the stack of our modal/popup + if (want_inhibit) + if (!ImGui::IsWindowWithinBeginStackOf(window->RootWindow, focused_root_window)) + return false; + } + return true; +} + +// This is roughly matching the behavior of internal-facing ItemHoverable() +// - we allow hovering to be true when ActiveId==window->MoveID, so that clicking on non-interactive items such as a Text() item still returns true with IsItemHovered() +// - this should work even for non-interactive items that have no ID, so we cannot use LastItemId +bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.NavDisableMouseHover && !g.NavDisableHighlight && !(flags & ImGuiHoveredFlags_NoNavOverride)) + { + if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) + return false; + if (!IsItemFocused()) + return false; + } + else + { + // Test for bounding box overlap, as updated as ItemAdd() + ImGuiItemStatusFlags status_flags = g.LastItemData.StatusFlags; + if (!(status_flags & ImGuiItemStatusFlags_HoveredRect)) + return false; + IM_ASSERT((flags & (ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_NoPopupHierarchy)) == 0); // Flags not supported by this function + + // Done with rectangle culling so we can perform heavier checks now + // Test if we are hovering the right window (our window could be behind another window) + // [2021/03/02] Reworked / reverted the revert, finally. Note we want e.g. BeginGroup/ItemAdd/EndGroup to work as well. (#3851) + // [2017/10/16] Reverted commit 344d48be3 and testing RootWindow instead. I believe it is correct to NOT test for RootWindow but this leaves us unable + // to use IsItemHovered() after EndChild() itself. Until a solution is found I believe reverting to the test from 2017/09/27 is safe since this was + // the test that has been running for a long while. + if (g.HoveredWindow != window && (status_flags & ImGuiItemStatusFlags_HoveredWindow) == 0) + if ((flags & ImGuiHoveredFlags_AllowWhenOverlapped) == 0) + return false; + + // Test if another item is active (e.g. being dragged) + if ((flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) == 0) + if (g.ActiveId != 0 && g.ActiveId != g.LastItemData.ID && !g.ActiveIdAllowOverlap && g.ActiveId != window->MoveId) + return false; + + // Test if interactions on this window are blocked by an active popup or modal. + // The ImGuiHoveredFlags_AllowWhenBlockedByPopup flag will be tested here. + if (!IsWindowContentHoverable(window, flags) && !(g.LastItemData.InFlags & ImGuiItemFlags_NoWindowHoverableCheck)) + return false; + + // Test if the item is disabled + if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) + return false; + + // Special handling for calling after Begin() which represent the title bar or tab. + // When the window is collapsed (SkipItems==true) that last item will never be overwritten so we need to detect the case. + if (g.LastItemData.ID == window->MoveId && window->WriteAccessed) + return false; + } + + // Handle hover delay + // (some ideas: https://www.nngroup.com/articles/timing-exposing-content) + float delay; + if (flags & ImGuiHoveredFlags_DelayNormal) + delay = g.IO.HoverDelayNormal; + else if (flags & ImGuiHoveredFlags_DelayShort) + delay = g.IO.HoverDelayShort; + else + delay = 0.0f; + if (delay > 0.0f) + { + ImGuiID hover_delay_id = (g.LastItemData.ID != 0) ? g.LastItemData.ID : window->GetIDFromRectangle(g.LastItemData.Rect); + if ((flags & ImGuiHoveredFlags_NoSharedDelay) && (g.HoverDelayIdPreviousFrame != hover_delay_id)) + g.HoverDelayTimer = 0.0f; + g.HoverDelayId = hover_delay_id; + return g.HoverDelayTimer >= delay; + } + + return true; +} + +// Internal facing ItemHoverable() used when submitting widgets. Differs slightly from IsItemHovered(). +bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (g.HoveredId != 0 && g.HoveredId != id && !g.HoveredIdAllowOverlap) + return false; + + ImGuiWindow* window = g.CurrentWindow; + if (g.HoveredWindow != window) + return false; + if (g.ActiveId != 0 && g.ActiveId != id && !g.ActiveIdAllowOverlap) + return false; + if (!IsMouseHoveringRect(bb.Min, bb.Max)) + return false; + + // Done with rectangle culling so we can perform heavier checks now. + ImGuiItemFlags item_flags = (g.LastItemData.ID == id ? g.LastItemData.InFlags : g.CurrentItemFlags); + if (!(item_flags & ImGuiItemFlags_NoWindowHoverableCheck) && !IsWindowContentHoverable(window, ImGuiHoveredFlags_None)) + { + g.HoveredIdDisabled = true; + return false; + } + + // We exceptionally allow this function to be called with id==0 to allow using it for easy high-level + // hover test in widgets code. We could also decide to split this function is two. + if (id != 0) + SetHoveredID(id); + + // When disabled we'll return false but still set HoveredId + if (item_flags & ImGuiItemFlags_Disabled) + { + // Release active id if turning disabled + if (g.ActiveId == id) + ClearActiveID(); + g.HoveredIdDisabled = true; + return false; + } + + if (id != 0) + { + // [DEBUG] Item Picker tool! + // We perform the check here because SetHoveredID() is not frequently called (1~ time a frame), making + // the cost of this tool near-zero. We can get slightly better call-stack and support picking non-hovered + // items if we performed the test in ItemAdd(), but that would incur a small runtime cost. + if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id) + GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255)); + if (g.DebugItemPickerBreakId == id) + IM_DEBUG_BREAK(); + } + + if (g.NavDisableMouseHover) + return false; + + return true; +} + +// FIXME: This is inlined/duplicated in ItemAdd() +bool ImGui::IsClippedEx(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!bb.Overlaps(window->ClipRect)) + if (id == 0 || (id != g.ActiveId && id != g.NavId)) + if (!g.LogEnabled) + return true; + return false; +} + +// This is also inlined in ItemAdd() +// Note: if ImGuiItemStatusFlags_HasDisplayRect is set, user needs to set window->DC.LastItemDisplayRect! +void ImGui::SetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags item_flags, const ImRect& item_rect) +{ + ImGuiContext& g = *GImGui; + g.LastItemData.ID = item_id; + g.LastItemData.InFlags = in_flags; + g.LastItemData.StatusFlags = item_flags; + g.LastItemData.Rect = item_rect; +} + +float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) +{ + if (wrap_pos_x < 0.0f) + return 0.0f; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (wrap_pos_x == 0.0f) + { + // We could decide to setup a default wrapping max point for auto-resizing windows, + // or have auto-wrap (with unspecified wrapping pos) behave as a ContentSize extending function? + //if (window->Hidden && (window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) + // wrap_pos_x = ImMax(window->WorkRect.Min.x + g.FontSize * 10.0f, window->WorkRect.Max.x); + //else + wrap_pos_x = window->WorkRect.Max.x; + } + else if (wrap_pos_x > 0.0f) + { + wrap_pos_x += window->Pos.x - window->Scroll.x; // wrap_pos_x is provided is window local space + } + + return ImMax(wrap_pos_x - pos.x, 1.0f); +} + +// IM_ALLOC() == ImGui::MemAlloc() +void* ImGui::MemAlloc(size_t size) +{ + if (ImGuiContext* ctx = GImGui) + ctx->IO.MetricsActiveAllocations++; + return (*GImAllocatorAllocFunc)(size, GImAllocatorUserData); +} + +// IM_FREE() == ImGui::MemFree() +void ImGui::MemFree(void* ptr) +{ + if (ptr) + if (ImGuiContext* ctx = GImGui) + ctx->IO.MetricsActiveAllocations--; + return (*GImAllocatorFreeFunc)(ptr, GImAllocatorUserData); +} + +const char* ImGui::GetClipboardText() +{ + ImGuiContext& g = *GImGui; + return g.IO.GetClipboardTextFn ? g.IO.GetClipboardTextFn(g.IO.ClipboardUserData) : ""; +} + +void ImGui::SetClipboardText(const char* text) +{ + ImGuiContext& g = *GImGui; + if (g.IO.SetClipboardTextFn) + g.IO.SetClipboardTextFn(g.IO.ClipboardUserData, text); +} + +const char* ImGui::GetVersion() +{ + return IMGUI_VERSION; +} + +// Internal state access - if you want to share Dear ImGui state between modules (e.g. DLL) or allocate it yourself +// Note that we still point to some static data and members (such as GFontAtlas), so the state instance you end up using will point to the static data within its module +ImGuiContext* ImGui::GetCurrentContext() +{ + return GImGui; +} + +void ImGui::SetCurrentContext(ImGuiContext* ctx) +{ +#ifdef IMGUI_SET_CURRENT_CONTEXT_FUNC + IMGUI_SET_CURRENT_CONTEXT_FUNC(ctx); // For custom thread-based hackery you may want to have control over this. +#else + GImGui = ctx; +#endif +} + +void ImGui::SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data) +{ + GImAllocatorAllocFunc = alloc_func; + GImAllocatorFreeFunc = free_func; + GImAllocatorUserData = user_data; +} + +// This is provided to facilitate copying allocators from one static/DLL boundary to another (e.g. retrieve default allocator of your executable address space) +void ImGui::GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data) +{ + *p_alloc_func = GImAllocatorAllocFunc; + *p_free_func = GImAllocatorFreeFunc; + *p_user_data = GImAllocatorUserData; +} + +ImGuiContext* ImGui::CreateContext(ImFontAtlas* shared_font_atlas) +{ + ImGuiContext* prev_ctx = GetCurrentContext(); + ImGuiContext* ctx = IM_NEW(ImGuiContext)(shared_font_atlas); + SetCurrentContext(ctx); + Initialize(); + if (prev_ctx != NULL) + SetCurrentContext(prev_ctx); // Restore previous context if any, else keep new one. + return ctx; +} + +void ImGui::DestroyContext(ImGuiContext* ctx) +{ + ImGuiContext* prev_ctx = GetCurrentContext(); + if (ctx == NULL) //-V1051 + ctx = prev_ctx; + SetCurrentContext(ctx); + Shutdown(); + SetCurrentContext((prev_ctx != ctx) ? prev_ctx : NULL); + IM_DELETE(ctx); +} + +// No specific ordering/dependency support, will see as needed +ImGuiID ImGui::AddContextHook(ImGuiContext* ctx, const ImGuiContextHook* hook) +{ + ImGuiContext& g = *ctx; + IM_ASSERT(hook->Callback != NULL && hook->HookId == 0 && hook->Type != ImGuiContextHookType_PendingRemoval_); + g.Hooks.push_back(*hook); + g.Hooks.back().HookId = ++g.HookIdNext; + return g.HookIdNext; +} + +// Deferred removal, avoiding issue with changing vector while iterating it +void ImGui::RemoveContextHook(ImGuiContext* ctx, ImGuiID hook_id) +{ + ImGuiContext& g = *ctx; + IM_ASSERT(hook_id != 0); + for (int n = 0; n < g.Hooks.Size; n++) + if (g.Hooks[n].HookId == hook_id) + g.Hooks[n].Type = ImGuiContextHookType_PendingRemoval_; +} + +// Call context hooks (used by e.g. test engine) +// We assume a small number of hooks so all stored in same array +void ImGui::CallContextHooks(ImGuiContext* ctx, ImGuiContextHookType hook_type) +{ + ImGuiContext& g = *ctx; + for (int n = 0; n < g.Hooks.Size; n++) + if (g.Hooks[n].Type == hook_type) + g.Hooks[n].Callback(&g, &g.Hooks[n]); +} + +ImGuiIO& ImGui::GetIO() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->IO; +} + +// Pass this to your backend rendering function! Valid after Render() and until the next call to NewFrame() +ImDrawData* ImGui::GetDrawData() +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = g.Viewports[0]; + return viewport->DrawDataP.Valid ? &viewport->DrawDataP : NULL; +} + +double ImGui::GetTime() +{ + return GImGui->Time; +} + +int ImGui::GetFrameCount() +{ + return GImGui->FrameCount; +} + +static ImDrawList* GetViewportDrawList(ImGuiViewportP* viewport, size_t drawlist_no, const char* drawlist_name) +{ + // Create the draw list on demand, because they are not frequently used for all viewports + ImGuiContext& g = *GImGui; + IM_ASSERT(drawlist_no < IM_ARRAYSIZE(viewport->DrawLists)); + ImDrawList* draw_list = viewport->DrawLists[drawlist_no]; + if (draw_list == NULL) + { + draw_list = IM_NEW(ImDrawList)(&g.DrawListSharedData); + draw_list->_OwnerName = drawlist_name; + viewport->DrawLists[drawlist_no] = draw_list; + } + + // Our ImDrawList system requires that there is always a command + if (viewport->DrawListsLastFrame[drawlist_no] != g.FrameCount) + { + draw_list->_ResetForNewFrame(); + draw_list->PushTextureID(g.IO.Fonts->TexID); + draw_list->PushClipRect(viewport->Pos, viewport->Pos + viewport->Size, false); + viewport->DrawListsLastFrame[drawlist_no] = g.FrameCount; + } + return draw_list; +} + +ImDrawList* ImGui::GetBackgroundDrawList(ImGuiViewport* viewport) +{ + return GetViewportDrawList((ImGuiViewportP*)viewport, 0, "##Background"); +} + +ImDrawList* ImGui::GetBackgroundDrawList() +{ + ImGuiContext& g = *GImGui; + return GetBackgroundDrawList(g.Viewports[0]); +} + +ImDrawList* ImGui::GetForegroundDrawList(ImGuiViewport* viewport) +{ + return GetViewportDrawList((ImGuiViewportP*)viewport, 1, "##Foreground"); +} + +ImDrawList* ImGui::GetForegroundDrawList() +{ + ImGuiContext& g = *GImGui; + return GetForegroundDrawList(g.Viewports[0]); +} + +ImDrawListSharedData* ImGui::GetDrawListSharedData() +{ + return &GImGui->DrawListSharedData; +} + +void ImGui::StartMouseMovingWindow(ImGuiWindow* window) +{ + // Set ActiveId even if the _NoMove flag is set. Without it, dragging away from a window with _NoMove would activate hover on other windows. + // We _also_ call this when clicking in a window empty space when io.ConfigWindowsMoveFromTitleBarOnly is set, but clear g.MovingWindow afterward. + // This is because we want ActiveId to be set even when the window is not permitted to move. + ImGuiContext& g = *GImGui; + FocusWindow(window); + SetActiveID(window->MoveId, window); + g.NavDisableHighlight = true; + g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - window->RootWindow->Pos; + g.ActiveIdNoClearOnFocusLoss = true; + SetActiveIdUsingAllKeyboardKeys(); + + bool can_move_window = true; + if ((window->Flags & ImGuiWindowFlags_NoMove) || (window->RootWindow->Flags & ImGuiWindowFlags_NoMove)) + can_move_window = false; + if (can_move_window) + g.MovingWindow = window; +} + +// Handle mouse moving window +// Note: moving window with the navigation keys (Square + d-pad / CTRL+TAB + Arrows) are processed in NavUpdateWindowing() +// FIXME: We don't have strong guarantee that g.MovingWindow stay synched with g.ActiveId == g.MovingWindow->MoveId. +// This is currently enforced by the fact that BeginDragDropSource() is setting all g.ActiveIdUsingXXXX flags to inhibit navigation inputs, +// but if we should more thoroughly test cases where g.ActiveId or g.MovingWindow gets changed and not the other. +void ImGui::UpdateMouseMovingWindowNewFrame() +{ + ImGuiContext& g = *GImGui; + if (g.MovingWindow != NULL) + { + // We actually want to move the root window. g.MovingWindow == window we clicked on (could be a child window). + // We track it to preserve Focus and so that generally ActiveIdWindow == MovingWindow and ActiveId == MovingWindow->MoveId for consistency. + KeepAliveID(g.ActiveId); + IM_ASSERT(g.MovingWindow && g.MovingWindow->RootWindow); + ImGuiWindow* moving_window = g.MovingWindow->RootWindow; + if (g.IO.MouseDown[0] && IsMousePosValid(&g.IO.MousePos)) + { + ImVec2 pos = g.IO.MousePos - g.ActiveIdClickOffset; + SetWindowPos(moving_window, pos, ImGuiCond_Always); + FocusWindow(g.MovingWindow); + } + else + { + g.MovingWindow = NULL; + ClearActiveID(); + } + } + else + { + // When clicking/dragging from a window that has the _NoMove flag, we still set the ActiveId in order to prevent hovering others. + if (g.ActiveIdWindow && g.ActiveIdWindow->MoveId == g.ActiveId) + { + KeepAliveID(g.ActiveId); + if (!g.IO.MouseDown[0]) + ClearActiveID(); + } + } +} + +// Initiate moving window when clicking on empty space or title bar. +// Handle left-click and right-click focus. +void ImGui::UpdateMouseMovingWindowEndFrame() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId != 0 || g.HoveredId != 0) + return; + + // Unless we just made a window/popup appear + if (g.NavWindow && g.NavWindow->Appearing) + return; + + // Click on empty space to focus window and start moving + // (after we're done with all our widgets) + if (g.IO.MouseClicked[0]) + { + // Handle the edge case of a popup being closed while clicking in its empty space. + // If we try to focus it, FocusWindow() > ClosePopupsOverWindow() will accidentally close any parent popups because they are not linked together any more. + ImGuiWindow* root_window = g.HoveredWindow ? g.HoveredWindow->RootWindow : NULL; + const bool is_closed_popup = root_window && (root_window->Flags & ImGuiWindowFlags_Popup) && !IsPopupOpen(root_window->PopupId, ImGuiPopupFlags_AnyPopupLevel); + + if (root_window != NULL && !is_closed_popup) + { + StartMouseMovingWindow(g.HoveredWindow); //-V595 + + // Cancel moving if clicked outside of title bar + if (g.IO.ConfigWindowsMoveFromTitleBarOnly && !(root_window->Flags & ImGuiWindowFlags_NoTitleBar)) + if (!root_window->TitleBarRect().Contains(g.IO.MouseClickedPos[0])) + g.MovingWindow = NULL; + + // Cancel moving if clicked over an item which was disabled or inhibited by popups (note that we know HoveredId == 0 already) + if (g.HoveredIdDisabled) + g.MovingWindow = NULL; + } + else if (root_window == NULL && g.NavWindow != NULL && GetTopMostPopupModal() == NULL) + { + // Clicking on void disable focus + FocusWindow(NULL); + } + } + + // With right mouse button we close popups without changing focus based on where the mouse is aimed + // Instead, focus will be restored to the window under the bottom-most closed popup. + // (The left mouse button path calls FocusWindow on the hovered window, which will lead NewFrame->ClosePopupsOverWindow to trigger) + if (g.IO.MouseClicked[1]) + { + // Find the top-most window between HoveredWindow and the top-most Modal Window. + // This is where we can trim the popup stack. + ImGuiWindow* modal = GetTopMostPopupModal(); + bool hovered_window_above_modal = g.HoveredWindow && (modal == NULL || IsWindowAbove(g.HoveredWindow, modal)); + ClosePopupsOverWindow(hovered_window_above_modal ? g.HoveredWindow : modal, true); + } +} + +static bool IsWindowActiveAndVisible(ImGuiWindow* window) +{ + return (window->Active) && (!window->Hidden); +} + +static void UpdateAliasKey(ImGuiKey key, bool v, float analog_value) +{ + IM_ASSERT(ImGui::IsAliasKey(key)); + ImGuiKeyData* key_data = ImGui::GetKeyData(key); + key_data->Down = v; + key_data->AnalogValue = analog_value; +} + +// Rewrite routing data buffers to strip old entries + sort by key to make queries not touch scattered data. +// Entries D,A,B,B,A,C,B --> A,A,B,B,B,C,D +// Index A:1 B:2 C:5 D:0 --> A:0 B:2 C:5 D:6 +// See 'Metrics->Key Owners & Shortcut Routing' to visualize the result of that operation. +static void UpdateKeyRoutingTable(ImGuiKeyRoutingTable* rt) +{ + ImGuiContext& g = *GImGui; + rt->EntriesNext.resize(0); + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + const int new_routing_start_idx = rt->EntriesNext.Size; + ImGuiKeyRoutingData* routing_entry; + for (int old_routing_idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; old_routing_idx != -1; old_routing_idx = routing_entry->NextEntryIndex) + { + routing_entry = &rt->Entries[old_routing_idx]; + routing_entry->RoutingCurr = routing_entry->RoutingNext; // Update entry + routing_entry->RoutingNext = ImGuiKeyOwner_None; + routing_entry->RoutingNextScore = 255; + if (routing_entry->RoutingCurr == ImGuiKeyOwner_None) + continue; + rt->EntriesNext.push_back(*routing_entry); // Write alive ones into new buffer + + // Apply routing to owner if there's no owner already (RoutingCurr == None at this point) + if (routing_entry->Mods == g.IO.KeyMods) + { + ImGuiKeyOwnerData* owner_data = ImGui::GetKeyOwnerData(key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + owner_data->OwnerCurr = routing_entry->RoutingCurr; + } + } + + // Rewrite linked-list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = (ImGuiKeyRoutingIndex)(new_routing_start_idx < rt->EntriesNext.Size ? new_routing_start_idx : -1); + for (int n = new_routing_start_idx; n < rt->EntriesNext.Size; n++) + rt->EntriesNext[n].NextEntryIndex = (ImGuiKeyRoutingIndex)((n + 1 < rt->EntriesNext.Size) ? n + 1 : -1); + } + rt->Entries.swap(rt->EntriesNext); // Swap new and old indexes +} + +// [Internal] Do not use directly (should read io.KeyMods instead) +static ImGuiKeyChord GetMergedModsFromBools() +{ + ImGuiContext& g = *GImGui; + ImGuiKeyChord key_chord = 0; + if (g.IO.KeyCtrl) { key_chord |= ImGuiMod_Ctrl; } + if (g.IO.KeyShift) { key_chord |= ImGuiMod_Shift; } + if (g.IO.KeyAlt) { key_chord |= ImGuiMod_Alt; } + if (g.IO.KeySuper) { key_chord |= ImGuiMod_Super; } + return key_chord; +} + +static void ImGui::UpdateKeyboardInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Import legacy keys or verify they are not used +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (io.BackendUsingLegacyKeyArrays == 0) + { + // Backend used new io.AddKeyEvent() API: Good! Verify that old arrays are never written to externally. + for (int n = 0; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT((io.KeysDown[n] == false || IsKeyDown((ImGuiKey)n)) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + } + else + { + if (g.FrameCount == 0) + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT(g.IO.KeyMap[n] == -1 && "Backend is not allowed to write to io.KeyMap[0..511]!"); + + // Build reverse KeyMap (Named -> Legacy) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + if (io.KeyMap[n] != -1) + { + IM_ASSERT(IsLegacyKey((ImGuiKey)io.KeyMap[n])); + io.KeyMap[io.KeyMap[n]] = n; + } + + // Import legacy keys into new ones + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + if (io.KeysDown[n] || io.BackendUsingLegacyKeyArrays == 1) + { + const ImGuiKey key = (ImGuiKey)(io.KeyMap[n] != -1 ? io.KeyMap[n] : n); + IM_ASSERT(io.KeyMap[n] == -1 || IsNamedKey(key)); + io.KeysData[key].Down = io.KeysDown[n]; + if (key != n) + io.KeysDown[key] = io.KeysDown[n]; // Allow legacy code using io.KeysDown[GetKeyIndex()] with old backends + io.BackendUsingLegacyKeyArrays = 1; + } + if (io.BackendUsingLegacyKeyArrays == 1) + { + GetKeyData(ImGuiMod_Ctrl)->Down = io.KeyCtrl; + GetKeyData(ImGuiMod_Shift)->Down = io.KeyShift; + GetKeyData(ImGuiMod_Alt)->Down = io.KeyAlt; + GetKeyData(ImGuiMod_Super)->Down = io.KeySuper; + } + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + if (io.BackendUsingLegacyNavInputArray && nav_gamepad_active) + { + #define MAP_LEGACY_NAV_INPUT_TO_KEY1(_KEY, _NAV1) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f); io.KeysData[_KEY].AnalogValue = io.NavInputs[_NAV1]; } while (0) + #define MAP_LEGACY_NAV_INPUT_TO_KEY2(_KEY, _NAV1, _NAV2) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f) || (io.NavInputs[_NAV2] > 0.0f); io.KeysData[_KEY].AnalogValue = ImMax(io.NavInputs[_NAV1], io.NavInputs[_NAV2]); } while (0) + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceDown, ImGuiNavInput_Activate); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceRight, ImGuiNavInput_Cancel); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceLeft, ImGuiNavInput_Menu); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceUp, ImGuiNavInput_Input); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadLeft, ImGuiNavInput_DpadLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadRight, ImGuiNavInput_DpadRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadUp, ImGuiNavInput_DpadUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadDown, ImGuiNavInput_DpadDown); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadL1, ImGuiNavInput_FocusPrev, ImGuiNavInput_TweakSlow); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadR1, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakFast); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickLeft, ImGuiNavInput_LStickLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickRight, ImGuiNavInput_LStickRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickUp, ImGuiNavInput_LStickUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickDown, ImGuiNavInput_LStickDown); + #undef NAV_MAP_KEY + } +#endif + +#endif + + // Synchronize io.KeyMods with individual modifiers io.KeyXXX bools, update aliases + io.KeyMods = GetMergedModsFromBools(); + for (int n = 0; n < ImGuiMouseButton_COUNT; n++) + UpdateAliasKey(MouseButtonToKey(n), io.MouseDown[n], io.MouseDown[n] ? 1.0f : 0.0f); + UpdateAliasKey(ImGuiKey_MouseWheelX, io.MouseWheelH != 0.0f, io.MouseWheelH); + UpdateAliasKey(ImGuiKey_MouseWheelY, io.MouseWheel != 0.0f, io.MouseWheel); + + // Clear gamepad data if disabled + if ((io.BackendFlags & ImGuiBackendFlags_HasGamepad) == 0) + for (int i = ImGuiKey_Gamepad_BEGIN; i < ImGuiKey_Gamepad_END; i++) + { + io.KeysData[i - ImGuiKey_KeysData_OFFSET].Down = false; + io.KeysData[i - ImGuiKey_KeysData_OFFSET].AnalogValue = 0.0f; + } + + // Update keys + for (int i = 0; i < ImGuiKey_KeysData_SIZE; i++) + { + ImGuiKeyData* key_data = &io.KeysData[i]; + key_data->DownDurationPrev = key_data->DownDuration; + key_data->DownDuration = key_data->Down ? (key_data->DownDuration < 0.0f ? 0.0f : key_data->DownDuration + io.DeltaTime) : -1.0f; + } + + // Update keys/input owner (named keys only): one entry per key + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyData* key_data = &io.KeysData[key - ImGuiKey_KeysData_OFFSET]; + ImGuiKeyOwnerData* owner_data = &g.KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; + owner_data->OwnerCurr = owner_data->OwnerNext; + if (!key_data->Down) // Important: ownership is released on the frame after a release. Ensure a 'MouseDown -> CloseWindow -> MouseUp' chain doesn't lead to someone else seeing the MouseUp. + owner_data->OwnerNext = ImGuiKeyOwner_None; + owner_data->LockThisFrame = owner_data->LockUntilRelease = owner_data->LockUntilRelease && key_data->Down; // Clear LockUntilRelease when key is not Down anymore + } + + UpdateKeyRoutingTable(&g.KeysRoutingTable); +} + +static void ImGui::UpdateMouseInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Round mouse position to avoid spreading non-rounded position (e.g. UpdateManualResize doesn't support them well) + if (IsMousePosValid(&io.MousePos)) + io.MousePos = g.MouseLastValidPos = ImFloorSigned(io.MousePos); + + // If mouse just appeared or disappeared (usually denoted by -FLT_MAX components) we cancel out movement in MouseDelta + if (IsMousePosValid(&io.MousePos) && IsMousePosValid(&io.MousePosPrev)) + io.MouseDelta = io.MousePos - io.MousePosPrev; + else + io.MouseDelta = ImVec2(0.0f, 0.0f); + + // If mouse moved we re-enable mouse hovering in case it was disabled by gamepad/keyboard. In theory should use a >0.0f threshold but would need to reset in everywhere we set this to true. + if (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f) + g.NavDisableMouseHover = false; + + io.MousePosPrev = io.MousePos; + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) + { + io.MouseClicked[i] = io.MouseDown[i] && io.MouseDownDuration[i] < 0.0f; + io.MouseClickedCount[i] = 0; // Will be filled below + io.MouseReleased[i] = !io.MouseDown[i] && io.MouseDownDuration[i] >= 0.0f; + io.MouseDownDurationPrev[i] = io.MouseDownDuration[i]; + io.MouseDownDuration[i] = io.MouseDown[i] ? (io.MouseDownDuration[i] < 0.0f ? 0.0f : io.MouseDownDuration[i] + io.DeltaTime) : -1.0f; + if (io.MouseClicked[i]) + { + bool is_repeated_click = false; + if ((float)(g.Time - io.MouseClickedTime[i]) < io.MouseDoubleClickTime) + { + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + if (ImLengthSqr(delta_from_click_pos) < io.MouseDoubleClickMaxDist * io.MouseDoubleClickMaxDist) + is_repeated_click = true; + } + if (is_repeated_click) + io.MouseClickedLastCount[i]++; + else + io.MouseClickedLastCount[i] = 1; + io.MouseClickedTime[i] = g.Time; + io.MouseClickedPos[i] = io.MousePos; + io.MouseClickedCount[i] = io.MouseClickedLastCount[i]; + io.MouseDragMaxDistanceSqr[i] = 0.0f; + } + else if (io.MouseDown[i]) + { + // Maintain the maximum distance we reaching from the initial click position, which is used with dragging threshold + float delta_sqr_click_pos = IsMousePosValid(&io.MousePos) ? ImLengthSqr(io.MousePos - io.MouseClickedPos[i]) : 0.0f; + io.MouseDragMaxDistanceSqr[i] = ImMax(io.MouseDragMaxDistanceSqr[i], delta_sqr_click_pos); + } + + // We provide io.MouseDoubleClicked[] as a legacy service + io.MouseDoubleClicked[i] = (io.MouseClickedCount[i] == 2); + + // Clicking any mouse button reactivate mouse hovering which may have been deactivated by gamepad/keyboard navigation + if (io.MouseClicked[i]) + g.NavDisableMouseHover = false; + } +} + +static void LockWheelingWindow(ImGuiWindow* window, float wheel_amount) +{ + ImGuiContext& g = *GImGui; + if (window) + g.WheelingWindowReleaseTimer = ImMin(g.WheelingWindowReleaseTimer + ImAbs(wheel_amount) * WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER, WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER); + else + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindow == window) + return; + IMGUI_DEBUG_LOG_IO("LockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL"); + g.WheelingWindow = window; + g.WheelingWindowRefMousePos = g.IO.MousePos; +} + +void ImGui::UpdateMouseWheel() +{ + ImGuiContext& g = *GImGui; + + // Reset the locked window if we move the mouse or after the timer elapses + if (g.WheelingWindow != NULL) + { + g.WheelingWindowReleaseTimer -= g.IO.DeltaTime; + if (IsMousePosValid() && ImLengthSqr(g.IO.MousePos - g.WheelingWindowRefMousePos) > g.IO.MouseDragThreshold * g.IO.MouseDragThreshold) + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindowReleaseTimer <= 0.0f) + LockWheelingWindow(NULL, 0.0f); + } + + ImVec2 wheel; + wheel.x = TestKeyOwner(ImGuiKey_MouseWheelX, ImGuiKeyOwner_None) ? g.IO.MouseWheelH : 0.0f; + wheel.y = TestKeyOwner(ImGuiKey_MouseWheelY, ImGuiKeyOwner_None) ? g.IO.MouseWheel : 0.0f; + if (wheel.x == 0.0f && wheel.y == 0.0f) + return; + + //IMGUI_DEBUG_LOG("MouseWheel X:%.3f Y:%.3f\n", wheel_x, wheel_y); + ImGuiWindow* mouse_window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; + if (!mouse_window || mouse_window->Collapsed) + return; + + // Zoom / Scale window + // FIXME-OBSOLETE: This is an old feature, it still works but pretty much nobody is using it and may be best redesigned. + if (wheel.y != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) + { + LockWheelingWindow(mouse_window, wheel.y); + ImGuiWindow* window = mouse_window; + const float new_font_scale = ImClamp(window->FontWindowScale + g.IO.MouseWheel * 0.10f, 0.50f, 2.50f); + const float scale = new_font_scale / window->FontWindowScale; + window->FontWindowScale = new_font_scale; + if (window == window->RootWindow) + { + const ImVec2 offset = window->Size * (1.0f - scale) * (g.IO.MousePos - window->Pos) / window->Size; + SetWindowPos(window, window->Pos + offset, 0); + window->Size = ImFloor(window->Size * scale); + window->SizeFull = ImFloor(window->SizeFull * scale); + } + return; + } + if (g.IO.KeyCtrl) + return; + + // Mouse wheel scrolling + // As a standard behavior holding SHIFT while using Vertical Mouse Wheel triggers Horizontal scroll instead + // (we avoid doing it on OSX as it the OS input layer handles this already) + const bool swap_axis = g.IO.KeyShift && !g.IO.ConfigMacOSXBehaviors; + if (swap_axis) + { + wheel.x = wheel.y; + wheel.y = 0.0f; + } + + // Vertical Mouse Wheel scrolling + // Bubble up into parent window if: + // - a child window doesn't allow any scrolling. + // - a child window doesn't need scrolling because it is already at the edge for the direction we are going in. + // - a child window has the ImGuiWindowFlags_NoScrollWithMouse flag. + if (wheel.y != 0.0f) + { + ImGuiWindow* window = mouse_window; + while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.y == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) + window = window->ParentWindow; + if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) + { + LockWheelingWindow(mouse_window, wheel.y); + float max_step = window->InnerRect.GetHeight() * 0.67f; + float scroll_step = ImFloor(ImMin(5 * window->CalcFontSize(), max_step)); + SetScrollY(window, window->Scroll.y - wheel.y * scroll_step); + } + } + + // Horizontal Mouse Wheel scrolling, or Vertical Mouse Wheel w/ Shift held + if (wheel.x != 0.0f) + { + ImGuiWindow* window = mouse_window; + while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.x == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) + window = window->ParentWindow; + if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) + { + LockWheelingWindow(mouse_window, wheel.x); + float max_step = window->InnerRect.GetWidth() * 0.67f; + float scroll_step = ImFloor(ImMin(2 * window->CalcFontSize(), max_step)); + SetScrollX(window, window->Scroll.x - wheel.x * scroll_step); + } + } +} + +// The reason this is exposed in imgui_internal.h is: on touch-based system that don't have hovering, we want to dispatch inputs to the right target (imgui vs imgui+app) +void ImGui::UpdateHoveredWindowAndCaptureFlags() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + g.WindowsHoverPadding = ImMax(g.Style.TouchExtraPadding, ImVec2(WINDOWS_HOVER_PADDING, WINDOWS_HOVER_PADDING)); + + // Find the window hovered by mouse: + // - Child windows can extend beyond the limit of their parent so we need to derive HoveredRootWindow from HoveredWindow. + // - When moving a window we can skip the search, which also conveniently bypasses the fact that window->WindowRectClipped is lagging as this point of the frame. + // - We also support the moved window toggling the NoInputs flag after moving has started in order to be able to detect windows below it, which is useful for e.g. docking mechanisms. + bool clear_hovered_windows = false; + FindHoveredWindow(); + + // Modal windows prevents mouse from hovering behind them. + ImGuiWindow* modal_window = GetTopMostPopupModal(); + if (modal_window && g.HoveredWindow && !IsWindowWithinBeginStackOf(g.HoveredWindow->RootWindow, modal_window)) + clear_hovered_windows = true; + + // Disabled mouse? + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) + clear_hovered_windows = true; + + // We track click ownership. When clicked outside of a window the click is owned by the application and + // won't report hovering nor request capture even while dragging over our windows afterward. + const bool has_open_popup = (g.OpenPopupStack.Size > 0); + const bool has_open_modal = (modal_window != NULL); + int mouse_earliest_down = -1; + bool mouse_any_down = false; + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) + { + if (io.MouseClicked[i]) + { + io.MouseDownOwned[i] = (g.HoveredWindow != NULL) || has_open_popup; + io.MouseDownOwnedUnlessPopupClose[i] = (g.HoveredWindow != NULL) || has_open_modal; + } + mouse_any_down |= io.MouseDown[i]; + if (io.MouseDown[i]) + if (mouse_earliest_down == -1 || io.MouseClickedTime[i] < io.MouseClickedTime[mouse_earliest_down]) + mouse_earliest_down = i; + } + const bool mouse_avail = (mouse_earliest_down == -1) || io.MouseDownOwned[mouse_earliest_down]; + const bool mouse_avail_unless_popup_close = (mouse_earliest_down == -1) || io.MouseDownOwnedUnlessPopupClose[mouse_earliest_down]; + + // If mouse was first clicked outside of ImGui bounds we also cancel out hovering. + // FIXME: For patterns of drag and drop across OS windows, we may need to rework/remove this test (first committed 311c0ca9 on 2015/02) + const bool mouse_dragging_extern_payload = g.DragDropActive && (g.DragDropSourceFlags & ImGuiDragDropFlags_SourceExtern) != 0; + if (!mouse_avail && !mouse_dragging_extern_payload) + clear_hovered_windows = true; + + if (clear_hovered_windows) + g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; + + // Update io.WantCaptureMouse for the user application (true = dispatch mouse info to Dear ImGui only, false = dispatch mouse to Dear ImGui + underlying app) + // Update io.WantCaptureMouseAllowPopupClose (experimental) to give a chance for app to react to popup closure with a drag + if (g.WantCaptureMouseNextFrame != -1) + { + io.WantCaptureMouse = io.WantCaptureMouseUnlessPopupClose = (g.WantCaptureMouseNextFrame != 0); + } + else + { + io.WantCaptureMouse = (mouse_avail && (g.HoveredWindow != NULL || mouse_any_down)) || has_open_popup; + io.WantCaptureMouseUnlessPopupClose = (mouse_avail_unless_popup_close && (g.HoveredWindow != NULL || mouse_any_down)) || has_open_modal; + } + + // Update io.WantCaptureKeyboard for the user application (true = dispatch keyboard info to Dear ImGui only, false = dispatch keyboard info to Dear ImGui + underlying app) + if (g.WantCaptureKeyboardNextFrame != -1) + io.WantCaptureKeyboard = (g.WantCaptureKeyboardNextFrame != 0); + else + io.WantCaptureKeyboard = (g.ActiveId != 0) || (modal_window != NULL); + if (io.NavActive && (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && !(io.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard)) + io.WantCaptureKeyboard = true; + + // Update io.WantTextInput flag, this is to allow systems without a keyboard (e.g. mobile, hand-held) to show a software keyboard if possible + io.WantTextInput = (g.WantTextInputNextFrame != -1) ? (g.WantTextInputNextFrame != 0) : false; +} + +void ImGui::NewFrame() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + ImGuiContext& g = *GImGui; + + // Remove pending delete hooks before frame start. + // This deferred removal avoid issues of removal while iterating the hook vector + for (int n = g.Hooks.Size - 1; n >= 0; n--) + if (g.Hooks[n].Type == ImGuiContextHookType_PendingRemoval_) + g.Hooks.erase(&g.Hooks[n]); + + CallContextHooks(&g, ImGuiContextHookType_NewFramePre); + + // Check and assert for various common IO and Configuration mistakes + ErrorCheckNewFrameSanityChecks(); + + // Load settings on first frame, save settings when modified (after a delay) + UpdateSettings(); + + g.Time += g.IO.DeltaTime; + g.WithinFrameScope = true; + g.FrameCount += 1; + g.TooltipOverrideCount = 0; + g.WindowsActiveCount = 0; + g.MenusIdSubmittedThisFrame.resize(0); + + // Calculate frame-rate for the user, as a purely luxurious feature + g.FramerateSecPerFrameAccum += g.IO.DeltaTime - g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx]; + g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx] = g.IO.DeltaTime; + g.FramerateSecPerFrameIdx = (g.FramerateSecPerFrameIdx + 1) % IM_ARRAYSIZE(g.FramerateSecPerFrame); + g.FramerateSecPerFrameCount = ImMin(g.FramerateSecPerFrameCount + 1, IM_ARRAYSIZE(g.FramerateSecPerFrame)); + g.IO.Framerate = (g.FramerateSecPerFrameAccum > 0.0f) ? (1.0f / (g.FramerateSecPerFrameAccum / (float)g.FramerateSecPerFrameCount)) : FLT_MAX; + + UpdateViewportsNewFrame(); + + // Setup current font and draw list shared data + g.IO.Fonts->Locked = true; + SetCurrentFont(GetDefaultFont()); + IM_ASSERT(g.Font->IsLoaded()); + ImRect virtual_space(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + for (int n = 0; n < g.Viewports.Size; n++) + virtual_space.Add(g.Viewports[n]->GetMainRect()); + g.DrawListSharedData.ClipRectFullscreen = virtual_space.ToVec4(); + g.DrawListSharedData.CurveTessellationTol = g.Style.CurveTessellationTol; + g.DrawListSharedData.SetCircleTessellationMaxError(g.Style.CircleTessellationMaxError); + g.DrawListSharedData.InitialFlags = ImDrawListFlags_None; + if (g.Style.AntiAliasedLines) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLines; + if (g.Style.AntiAliasedLinesUseTex && !(g.Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLinesUseTex; + if (g.Style.AntiAliasedFill) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedFill; + if (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AllowVtxOffset; + + // Mark rendering data as invalid to prevent user who may have a handle on it to use it. + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + viewport->DrawDataP.Clear(); + } + + // Drag and drop keep the source ID alive so even if the source disappear our state is consistent + if (g.DragDropActive && g.DragDropPayload.SourceId == g.ActiveId) + KeepAliveID(g.DragDropPayload.SourceId); + + // Update HoveredId data + if (!g.HoveredIdPreviousFrame) + g.HoveredIdTimer = 0.0f; + if (!g.HoveredIdPreviousFrame || (g.HoveredId && g.ActiveId == g.HoveredId)) + g.HoveredIdNotActiveTimer = 0.0f; + if (g.HoveredId) + g.HoveredIdTimer += g.IO.DeltaTime; + if (g.HoveredId && g.ActiveId != g.HoveredId) + g.HoveredIdNotActiveTimer += g.IO.DeltaTime; + g.HoveredIdPreviousFrame = g.HoveredId; + g.HoveredId = 0; + g.HoveredIdAllowOverlap = false; + g.HoveredIdDisabled = false; + + // Clear ActiveID if the item is not alive anymore. + // In 1.87, the common most call to KeepAliveID() was moved from GetID() to ItemAdd(). + // As a result, custom widget using ButtonBehavior() _without_ ItemAdd() need to call KeepAliveID() themselves. + if (g.ActiveId != 0 && g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("NewFrame(): ClearActiveID() because it isn't marked alive anymore!\n"); + ClearActiveID(); + } + + // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) + if (g.ActiveId) + g.ActiveIdTimer += g.IO.DeltaTime; + g.LastActiveIdTimer += g.IO.DeltaTime; + g.ActiveIdPreviousFrame = g.ActiveId; + g.ActiveIdPreviousFrameWindow = g.ActiveIdWindow; + g.ActiveIdPreviousFrameHasBeenEditedBefore = g.ActiveIdHasBeenEditedBefore; + g.ActiveIdIsAlive = 0; + g.ActiveIdHasBeenEditedThisFrame = false; + g.ActiveIdPreviousFrameIsAlive = false; + g.ActiveIdIsJustActivated = false; + if (g.TempInputId != 0 && g.ActiveId != g.TempInputId) + g.TempInputId = 0; + if (g.ActiveId == 0) + { + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + g.ActiveIdUsingNavInputMask = 0x00; +#endif + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (g.ActiveId == 0) + g.ActiveIdUsingNavInputMask = 0; + else if (g.ActiveIdUsingNavInputMask != 0) + { + // If your custom widget code used: { g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); } + // Since IMGUI_VERSION_NUM >= 18804 it should be: { SetKeyOwner(ImGuiKey_Escape, g.ActiveId); SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId); } + if (g.ActiveIdUsingNavInputMask & (1 << ImGuiNavInput_Cancel)) + SetKeyOwner(ImGuiKey_Escape, g.ActiveId); + if (g.ActiveIdUsingNavInputMask & ~(1 << ImGuiNavInput_Cancel)) + IM_ASSERT(0); // Other values unsupported + } +#endif + + // Update hover delay for IsItemHovered() with delays and tooltips + g.HoverDelayIdPreviousFrame = g.HoverDelayId; + if (g.HoverDelayId != 0) + { + //if (g.IO.MouseDelta.x == 0.0f && g.IO.MouseDelta.y == 0.0f) // Need design/flags + g.HoverDelayTimer += g.IO.DeltaTime; + g.HoverDelayClearTimer = 0.0f; + g.HoverDelayId = 0; + } + else if (g.HoverDelayTimer > 0.0f) + { + // This gives a little bit of leeway before clearing the hover timer, allowing mouse to cross gaps + g.HoverDelayClearTimer += g.IO.DeltaTime; + if (g.HoverDelayClearTimer >= ImMax(0.20f, g.IO.DeltaTime * 2.0f)) // ~6 frames at 30 Hz + allow for low framerate + g.HoverDelayTimer = g.HoverDelayClearTimer = 0.0f; // May want a decaying timer, in which case need to clamp at max first, based on max of caller last requested timer. + } + + // Drag and drop + g.DragDropAcceptIdPrev = g.DragDropAcceptIdCurr; + g.DragDropAcceptIdCurr = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropWithinSource = false; + g.DragDropWithinTarget = false; + g.DragDropHoldJustPressedId = 0; + + // Close popups on focus lost (currently wip/opt-in) + //if (g.IO.AppFocusLost) + // ClosePopupsExceptModals(); + + // Process input queue (trickle as many events as possible) + g.InputEventsTrail.resize(0); + UpdateInputEvents(g.IO.ConfigInputTrickleEventQueue); + + // Update keyboard input state + UpdateKeyboardInputs(); + + //IM_ASSERT(g.IO.KeyCtrl == IsKeyDown(ImGuiKey_LeftCtrl) || IsKeyDown(ImGuiKey_RightCtrl)); + //IM_ASSERT(g.IO.KeyShift == IsKeyDown(ImGuiKey_LeftShift) || IsKeyDown(ImGuiKey_RightShift)); + //IM_ASSERT(g.IO.KeyAlt == IsKeyDown(ImGuiKey_LeftAlt) || IsKeyDown(ImGuiKey_RightAlt)); + //IM_ASSERT(g.IO.KeySuper == IsKeyDown(ImGuiKey_LeftSuper) || IsKeyDown(ImGuiKey_RightSuper)); + + // Update gamepad/keyboard navigation + NavUpdate(); + + // Update mouse input state + UpdateMouseInputs(); + + // Find hovered window + // (needs to be before UpdateMouseMovingWindowNewFrame so we fill g.HoveredWindowUnderMovingWindow on the mouse release frame) + UpdateHoveredWindowAndCaptureFlags(); + + // Handle user moving window with mouse (at the beginning of the frame to avoid input lag or sheering) + UpdateMouseMovingWindowNewFrame(); + + // Background darkening/whitening + if (GetTopMostPopupModal() != NULL || (g.NavWindowingTarget != NULL && g.NavWindowingHighlightAlpha > 0.0f)) + g.DimBgRatio = ImMin(g.DimBgRatio + g.IO.DeltaTime * 6.0f, 1.0f); + else + g.DimBgRatio = ImMax(g.DimBgRatio - g.IO.DeltaTime * 10.0f, 0.0f); + + g.MouseCursor = ImGuiMouseCursor_Arrow; + g.WantCaptureMouseNextFrame = g.WantCaptureKeyboardNextFrame = g.WantTextInputNextFrame = -1; + + // Platform IME data: reset for the frame + g.PlatformImeDataPrev = g.PlatformImeData; + g.PlatformImeData.WantVisible = false; + + // Mouse wheel scrolling, scale + UpdateMouseWheel(); + + // Mark all windows as not visible and compact unused memory. + IM_ASSERT(g.WindowsFocusOrder.Size <= g.Windows.Size); + const float memory_compact_start_time = (g.GcCompactAll || g.IO.ConfigMemoryCompactTimer < 0.0f) ? FLT_MAX : (float)g.Time - g.IO.ConfigMemoryCompactTimer; + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* window = g.Windows[i]; + window->WasActive = window->Active; + window->Active = false; + window->WriteAccessed = false; + window->BeginCountPreviousFrame = window->BeginCount; + window->BeginCount = 0; + + // Garbage collect transient buffers of recently unused windows + if (!window->WasActive && !window->MemoryCompacted && window->LastTimeActive < memory_compact_start_time) + GcCompactTransientWindowBuffers(window); + } + + // Garbage collect transient buffers of recently unused tables + for (int i = 0; i < g.TablesLastTimeActive.Size; i++) + if (g.TablesLastTimeActive[i] >= 0.0f && g.TablesLastTimeActive[i] < memory_compact_start_time) + TableGcCompactTransientBuffers(g.Tables.GetByIndex(i)); + for (int i = 0; i < g.TablesTempData.Size; i++) + if (g.TablesTempData[i].LastTimeActive >= 0.0f && g.TablesTempData[i].LastTimeActive < memory_compact_start_time) + TableGcCompactTransientBuffers(&g.TablesTempData[i]); + if (g.GcCompactAll) + GcCompactTransientMiscBuffers(); + g.GcCompactAll = false; + + // Closing the focused window restore focus to the first active root window in descending z-order + if (g.NavWindow && !g.NavWindow->WasActive) + FocusTopMostWindowUnderOne(NULL, NULL); + + // No window should be open at the beginning of the frame. + // But in order to allow the user to call NewFrame() multiple times without calling Render(), we are doing an explicit clear. + g.CurrentWindowStack.resize(0); + g.BeginPopupStack.resize(0); + g.ItemFlagsStack.resize(0); + g.ItemFlagsStack.push_back(ImGuiItemFlags_None); + g.GroupStack.resize(0); + + // [DEBUG] Update debug features + UpdateDebugToolItemPicker(); + UpdateDebugToolStackQueries(); + if (g.DebugLocateFrames > 0 && --g.DebugLocateFrames == 0) + g.DebugLocateId = 0; + + // Create implicit/fallback window - which we will only render it if the user has added something to it. + // We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags. + // This fallback is particularly important as it prevents ImGui:: calls from crashing. + g.WithinFrameScopeWithImplicitWindow = true; + SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); + Begin("Debug##Default"); + IM_ASSERT(g.CurrentWindow->IsFallbackWindow == true); + + CallContextHooks(&g, ImGuiContextHookType_NewFramePost); +} + +// IMPORTANT: ###xxx suffixes must be same in ALL languages +static const ImGuiLocEntry GLocalizationEntriesEnUS[] = +{ + { ImGuiLocKey_TableSizeOne, "Size column to fit###SizeOne" }, + { ImGuiLocKey_TableSizeAllFit, "Size all columns to fit###SizeAll" }, + { ImGuiLocKey_TableSizeAllDefault, "Size all columns to default###SizeAll" }, + { ImGuiLocKey_TableResetOrder, "Reset order###ResetOrder" }, + { ImGuiLocKey_WindowingMainMenuBar, "(Main menu bar)" }, + { ImGuiLocKey_WindowingPopup, "(Popup)" }, + { ImGuiLocKey_WindowingUntitled, "(Untitled)" }, +}; + +void ImGui::Initialize() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(!g.Initialized && !g.SettingsLoaded); + + // Add .ini handle for ImGuiWindow and ImGuiTable types + { + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Window"; + ini_handler.TypeHash = ImHashStr("Window"); + ini_handler.ClearAllFn = WindowSettingsHandler_ClearAll; + ini_handler.ReadOpenFn = WindowSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = WindowSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll; + AddSettingsHandler(&ini_handler); + } + TableSettingsAddSettingsHandler(); + + // Setup default localization table + LocalizeRegisterEntries(GLocalizationEntriesEnUS, IM_ARRAYSIZE(GLocalizationEntriesEnUS)); + + // Create default viewport + ImGuiViewportP* viewport = IM_NEW(ImGuiViewportP)(); + g.Viewports.push_back(viewport); + g.TempBuffer.resize(1024 * 3 + 1, 0); + +#ifdef IMGUI_HAS_DOCK +#endif + + g.Initialized = true; +} + +// This function is merely here to free heap allocations. +void ImGui::Shutdown() +{ + // The fonts atlas can be used prior to calling NewFrame(), so we clear it even if g.Initialized is FALSE (which would happen if we never called NewFrame) + ImGuiContext& g = *GImGui; + if (g.IO.Fonts && g.FontAtlasOwnedByContext) + { + g.IO.Fonts->Locked = false; + IM_DELETE(g.IO.Fonts); + } + g.IO.Fonts = NULL; + g.DrawListSharedData.TempBuffer.clear(); + + // Cleanup of other data are conditional on actually having initialized Dear ImGui. + if (!g.Initialized) + return; + + // Save settings (unless we haven't attempted to load them: CreateContext/DestroyContext without a call to NewFrame shouldn't save an empty file) + if (g.SettingsLoaded && g.IO.IniFilename != NULL) + SaveIniSettingsToDisk(g.IO.IniFilename); + + CallContextHooks(&g, ImGuiContextHookType_Shutdown); + + // Clear everything else + g.Windows.clear_delete(); + g.WindowsFocusOrder.clear(); + g.WindowsTempSortBuffer.clear(); + g.CurrentWindow = NULL; + g.CurrentWindowStack.clear(); + g.WindowsById.Clear(); + g.NavWindow = NULL; + g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; + g.ActiveIdWindow = g.ActiveIdPreviousFrameWindow = NULL; + g.MovingWindow = NULL; + + g.KeysRoutingTable.Clear(); + + g.ColorStack.clear(); + g.StyleVarStack.clear(); + g.FontStack.clear(); + g.OpenPopupStack.clear(); + g.BeginPopupStack.clear(); + + g.Viewports.clear_delete(); + + g.TabBars.Clear(); + g.CurrentTabBarStack.clear(); + g.ShrinkWidthBuffer.clear(); + + g.ClipperTempData.clear_destruct(); + + g.Tables.Clear(); + g.TablesTempData.clear_destruct(); + g.DrawChannelsTempMergeBuffer.clear(); + + g.ClipboardHandlerData.clear(); + g.MenusIdSubmittedThisFrame.clear(); + g.InputTextState.ClearFreeMemory(); + + g.SettingsWindows.clear(); + g.SettingsHandlers.clear(); + + if (g.LogFile) + { +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + if (g.LogFile != stdout) +#endif + ImFileClose(g.LogFile); + g.LogFile = NULL; + } + g.LogBuffer.clear(); + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + + g.Initialized = false; +} + +// FIXME: Add a more explicit sort order in the window structure. +static int IMGUI_CDECL ChildWindowComparer(const void* lhs, const void* rhs) +{ + const ImGuiWindow* const a = *(const ImGuiWindow* const *)lhs; + const ImGuiWindow* const b = *(const ImGuiWindow* const *)rhs; + if (int d = (a->Flags & ImGuiWindowFlags_Popup) - (b->Flags & ImGuiWindowFlags_Popup)) + return d; + if (int d = (a->Flags & ImGuiWindowFlags_Tooltip) - (b->Flags & ImGuiWindowFlags_Tooltip)) + return d; + return (a->BeginOrderWithinParent - b->BeginOrderWithinParent); +} + +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window) +{ + out_sorted_windows->push_back(window); + if (window->Active) + { + int count = window->DC.ChildWindows.Size; + ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer); + for (int i = 0; i < count; i++) + { + ImGuiWindow* child = window->DC.ChildWindows[i]; + if (child->Active) + AddWindowToSortBuffer(out_sorted_windows, child); + } + } +} + +static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list) +{ + if (draw_list->CmdBuffer.Size == 0) + return; + if (draw_list->CmdBuffer.Size == 1 && draw_list->CmdBuffer[0].ElemCount == 0 && draw_list->CmdBuffer[0].UserCallback == NULL) + return; + + // Draw list sanity check. Detect mismatch between PrimReserve() calls and incrementing _VtxCurrentIdx, _VtxWritePtr etc. + // May trigger for you if you are using PrimXXX functions incorrectly. + IM_ASSERT(draw_list->VtxBuffer.Size == 0 || draw_list->_VtxWritePtr == draw_list->VtxBuffer.Data + draw_list->VtxBuffer.Size); + IM_ASSERT(draw_list->IdxBuffer.Size == 0 || draw_list->_IdxWritePtr == draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size); + if (!(draw_list->Flags & ImDrawListFlags_AllowVtxOffset)) + IM_ASSERT((int)draw_list->_VtxCurrentIdx == draw_list->VtxBuffer.Size); + + // Check that draw_list doesn't use more vertices than indexable (default ImDrawIdx = unsigned short = 2 bytes = 64K vertices per ImDrawList = per window) + // If this assert triggers because you are drawing lots of stuff manually: + // - First, make sure you are coarse clipping yourself and not trying to draw many things outside visible bounds. + // Be mindful that the ImDrawList API doesn't filter vertices. Use the Metrics/Debugger window to inspect draw list contents. + // - If you want large meshes with more than 64K vertices, you can either: + // (A) Handle the ImDrawCmd::VtxOffset value in your renderer backend, and set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset'. + // Most example backends already support this from 1.71. Pre-1.71 backends won't. + // Some graphics API such as GL ES 1/2 don't have a way to offset the starting vertex so it is not supported for them. + // (B) Or handle 32-bit indices in your renderer backend, and uncomment '#define ImDrawIdx unsigned int' line in imconfig.h. + // Most example backends already support this. For example, the OpenGL example code detect index size at compile-time: + // glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer_offset); + // Your own engine or render API may use different parameters or function calls to specify index sizes. + // 2 and 4 bytes indices are generally supported by most graphics API. + // - If for some reason neither of those solutions works for you, a workaround is to call BeginChild()/EndChild() before reaching + // the 64K limit to split your draw commands in multiple draw lists. + if (sizeof(ImDrawIdx) == 2) + IM_ASSERT(draw_list->_VtxCurrentIdx < (1 << 16) && "Too many vertices in ImDrawList using 16-bit indices. Read comment above"); + + out_list->push_back(draw_list); +} + +static void AddWindowToDrawData(ImGuiWindow* window, int layer) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = g.Viewports[0]; + g.IO.MetricsRenderWindows++; + AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[layer], window->DrawList); + for (int i = 0; i < window->DC.ChildWindows.Size; i++) + { + ImGuiWindow* child = window->DC.ChildWindows[i]; + if (IsWindowActiveAndVisible(child)) // Clipped children may have been marked not active + AddWindowToDrawData(child, layer); + } +} + +static inline int GetWindowDisplayLayer(ImGuiWindow* window) +{ + return (window->Flags & ImGuiWindowFlags_Tooltip) ? 1 : 0; +} + +// Layer is locked for the root window, however child windows may use a different viewport (e.g. extruding menu) +static inline void AddRootWindowToDrawData(ImGuiWindow* window) +{ + AddWindowToDrawData(window, GetWindowDisplayLayer(window)); +} + +void ImDrawDataBuilder::FlattenIntoSingleLayer() +{ + int n = Layers[0].Size; + int size = n; + for (int i = 1; i < IM_ARRAYSIZE(Layers); i++) + size += Layers[i].Size; + Layers[0].resize(size); + for (int layer_n = 1; layer_n < IM_ARRAYSIZE(Layers); layer_n++) + { + ImVector& layer = Layers[layer_n]; + if (layer.empty()) + continue; + memcpy(&Layers[0][n], &layer[0], layer.Size * sizeof(ImDrawList*)); + n += layer.Size; + layer.resize(0); + } +} + +static void SetupViewportDrawData(ImGuiViewportP* viewport, ImVector* draw_lists) +{ + ImGuiIO& io = ImGui::GetIO(); + ImDrawData* draw_data = &viewport->DrawDataP; + draw_data->Valid = true; + draw_data->CmdLists = (draw_lists->Size > 0) ? draw_lists->Data : NULL; + draw_data->CmdListsCount = draw_lists->Size; + draw_data->TotalVtxCount = draw_data->TotalIdxCount = 0; + draw_data->DisplayPos = viewport->Pos; + draw_data->DisplaySize = viewport->Size; + draw_data->FramebufferScale = io.DisplayFramebufferScale; + for (int n = 0; n < draw_lists->Size; n++) + { + ImDrawList* draw_list = draw_lists->Data[n]; + draw_list->_PopUnusedDrawCmd(); + draw_data->TotalVtxCount += draw_list->VtxBuffer.Size; + draw_data->TotalIdxCount += draw_list->IdxBuffer.Size; + } +} + +// Push a clipping rectangle for both ImGui logic (hit-testing etc.) and low-level ImDrawList rendering. +// - When using this function it is sane to ensure that float are perfectly rounded to integer values, +// so that e.g. (int)(max.x-min.x) in user's render produce correct result. +// - If the code here changes, may need to update code of functions like NextColumn() and PushColumnClipRect(): +// some frequently called functions which to modify both channels and clipping simultaneously tend to use the +// more specialized SetWindowClipRectBeforeSetChannel() to avoid extraneous updates of underlying ImDrawCmds. +void ImGui::PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +void ImGui::PopClipRect() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PopClipRect(); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +static void ImGui::RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + ImGuiViewportP* viewport = (ImGuiViewportP*)GetMainViewport(); + ImRect viewport_rect = viewport->GetMainRect(); + + // Draw behind window by moving the draw command at the FRONT of the draw list + { + // We've already called AddWindowToDrawData() which called DrawList->ChannelsMerge() on DockNodeHost windows, + // and draw list have been trimmed already, hence the explicit recreation of a draw command if missing. + // FIXME: This is creating complication, might be simpler if we could inject a drawlist in drawdata at a given position and not attempt to manipulate ImDrawCmd order. + ImDrawList* draw_list = window->RootWindow->DrawList; + if (draw_list->CmdBuffer.Size == 0) + draw_list->AddDrawCmd(); + draw_list->PushClipRect(viewport_rect.Min - ImVec2(1, 1), viewport_rect.Max + ImVec2(1, 1), false); // Ensure ImDrawCmd are not merged + draw_list->AddRectFilled(viewport_rect.Min, viewport_rect.Max, col); + ImDrawCmd cmd = draw_list->CmdBuffer.back(); + IM_ASSERT(cmd.ElemCount == 6); + draw_list->CmdBuffer.pop_back(); + draw_list->CmdBuffer.push_front(cmd); + draw_list->PopClipRect(); + draw_list->AddDrawCmd(); // We need to create a command as CmdBuffer.back().IdxOffset won't be correct if we append to same command. + } +} + +ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* bottom_most_visible_window = parent_window; + for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Flags & ImGuiWindowFlags_ChildWindow) + continue; + if (!IsWindowWithinBeginStackOf(window, parent_window)) + break; + if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window)) + bottom_most_visible_window = window; + } + return bottom_most_visible_window; +} + +static void ImGui::RenderDimmedBackgrounds() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* modal_window = GetTopMostAndVisiblePopupModal(); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + return; + const bool dim_bg_for_modal = (modal_window != NULL); + const bool dim_bg_for_window_list = (g.NavWindowingTargetAnim != NULL && g.NavWindowingTargetAnim->Active); + if (!dim_bg_for_modal && !dim_bg_for_window_list) + return; + + if (dim_bg_for_modal) + { + // Draw dimming behind modal or a begin stack child, whichever comes first in draw order. + ImGuiWindow* dim_behind_window = FindBottomMostVisibleWindowWithinBeginStack(modal_window); + RenderDimmedBackgroundBehindWindow(dim_behind_window, GetColorU32(ImGuiCol_ModalWindowDimBg, g.DimBgRatio)); + } + else if (dim_bg_for_window_list) + { + // Draw dimming behind CTRL+Tab target window + RenderDimmedBackgroundBehindWindow(g.NavWindowingTargetAnim, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio)); + + // Draw border around CTRL+Tab target window + ImGuiWindow* window = g.NavWindowingTargetAnim; + ImGuiViewport* viewport = GetMainViewport(); + float distance = g.FontSize; + ImRect bb = window->Rect(); + bb.Expand(distance); + if (bb.GetWidth() >= viewport->Size.x && bb.GetHeight() >= viewport->Size.y) + bb.Expand(-distance - 1.0f); // If a window fits the entire viewport, adjust its highlight inward + if (window->DrawList->CmdBuffer.Size == 0) + window->DrawList->AddDrawCmd(); + window->DrawList->PushClipRect(viewport->Pos, viewport->Pos + viewport->Size); + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_NavWindowingHighlight, g.NavWindowingHighlightAlpha), window->WindowRounding, 0, 3.0f); + window->DrawList->PopClipRect(); + } +} + +// This is normally called by Render(). You may want to call it directly if you want to avoid calling Render() but the gain will be very minimal. +void ImGui::EndFrame() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + // Don't process EndFrame() multiple times. + if (g.FrameCountEnded == g.FrameCount) + return; + IM_ASSERT(g.WithinFrameScope && "Forgot to call ImGui::NewFrame()?"); + + CallContextHooks(&g, ImGuiContextHookType_EndFramePre); + + ErrorCheckEndFrameSanityChecks(); + + // Notify Platform/OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) + if (g.IO.SetPlatformImeDataFn && memcmp(&g.PlatformImeData, &g.PlatformImeDataPrev, sizeof(ImGuiPlatformImeData)) != 0) + g.IO.SetPlatformImeDataFn(GetMainViewport(), &g.PlatformImeData); + + // Hide implicit/fallback "Debug" window if it hasn't been used + g.WithinFrameScopeWithImplicitWindow = false; + if (g.CurrentWindow && !g.CurrentWindow->WriteAccessed) + g.CurrentWindow->Active = false; + End(); + + // Update navigation: CTRL+Tab, wrap-around requests + NavEndFrame(); + + // Drag and Drop: Elapse payload (if delivered, or if source stops being submitted) + if (g.DragDropActive) + { + bool is_delivered = g.DragDropPayload.Delivery; + bool is_elapsed = (g.DragDropPayload.DataFrameCount + 1 < g.FrameCount) && ((g.DragDropSourceFlags & ImGuiDragDropFlags_SourceAutoExpirePayload) || !IsMouseDown(g.DragDropMouseButton)); + if (is_delivered || is_elapsed) + ClearDragDrop(); + } + + // Drag and Drop: Fallback for source tooltip. This is not ideal but better than nothing. + if (g.DragDropActive && g.DragDropSourceFrameCount < g.FrameCount && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + g.DragDropWithinSource = true; + SetTooltip("..."); + g.DragDropWithinSource = false; + } + + // End frame + g.WithinFrameScope = false; + g.FrameCountEnded = g.FrameCount; + + // Initiate moving window + handle left-click and right-click focus + UpdateMouseMovingWindowEndFrame(); + + // Sort the window list so that all child windows are after their parent + // We cannot do that on FocusWindow() because children may not exist yet + g.WindowsTempSortBuffer.resize(0); + g.WindowsTempSortBuffer.reserve(g.Windows.Size); + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Active && (window->Flags & ImGuiWindowFlags_ChildWindow)) // if a child is active its parent will add it + continue; + AddWindowToSortBuffer(&g.WindowsTempSortBuffer, window); + } + + // This usually assert if there is a mismatch between the ImGuiWindowFlags_ChildWindow / ParentWindow values and DC.ChildWindows[] in parents, aka we've done something wrong. + IM_ASSERT(g.Windows.Size == g.WindowsTempSortBuffer.Size); + g.Windows.swap(g.WindowsTempSortBuffer); + g.IO.MetricsActiveWindows = g.WindowsActiveCount; + + // Unlock font atlas + g.IO.Fonts->Locked = false; + + // Clear Input data for next frame + g.IO.AppFocusLost = false; + g.IO.MouseWheel = g.IO.MouseWheelH = 0.0f; + g.IO.InputQueueCharacters.resize(0); + + CallContextHooks(&g, ImGuiContextHookType_EndFramePost); +} + +// Prepare the data for rendering so you can call GetDrawData() +// (As with anything within the ImGui:: namspace this doesn't touch your GPU or graphics API at all: +// it is the role of the ImGui_ImplXXXX_RenderDrawData() function provided by the renderer backend) +void ImGui::Render() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + if (g.FrameCountEnded != g.FrameCount) + EndFrame(); + const bool first_render_of_frame = (g.FrameCountRendered != g.FrameCount); + g.FrameCountRendered = g.FrameCount; + g.IO.MetricsRenderWindows = 0; + + CallContextHooks(&g, ImGuiContextHookType_RenderPre); + + // Add background ImDrawList (for each active viewport) + for (int n = 0; n != g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + viewport->DrawDataBuilder.Clear(); + if (viewport->DrawLists[0] != NULL) + AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[0], GetBackgroundDrawList(viewport)); + } + + // Draw modal/window whitening backgrounds + if (first_render_of_frame) + RenderDimmedBackgrounds(); + + // Add ImDrawList to render + ImGuiWindow* windows_to_render_top_most[2]; + windows_to_render_top_most[0] = (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoBringToFrontOnFocus)) ? g.NavWindowingTarget->RootWindow : NULL; + windows_to_render_top_most[1] = (g.NavWindowingTarget ? g.NavWindowingListWindow : NULL); + for (int n = 0; n != g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + IM_MSVC_WARNING_SUPPRESS(6011); // Static Analysis false positive "warning C6011: Dereferencing NULL pointer 'window'" + if (IsWindowActiveAndVisible(window) && (window->Flags & ImGuiWindowFlags_ChildWindow) == 0 && window != windows_to_render_top_most[0] && window != windows_to_render_top_most[1]) + AddRootWindowToDrawData(window); + } + for (int n = 0; n < IM_ARRAYSIZE(windows_to_render_top_most); n++) + if (windows_to_render_top_most[n] && IsWindowActiveAndVisible(windows_to_render_top_most[n])) // NavWindowingTarget is always temporarily displayed as the top-most window + AddRootWindowToDrawData(windows_to_render_top_most[n]); + + // Draw software mouse cursor if requested by io.MouseDrawCursor flag + if (g.IO.MouseDrawCursor && first_render_of_frame && g.MouseCursor != ImGuiMouseCursor_None) + RenderMouseCursor(g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); + + // Setup ImDrawData structures for end-user + g.IO.MetricsRenderVertices = g.IO.MetricsRenderIndices = 0; + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + viewport->DrawDataBuilder.FlattenIntoSingleLayer(); + + // Add foreground ImDrawList (for each active viewport) + if (viewport->DrawLists[1] != NULL) + AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[0], GetForegroundDrawList(viewport)); + + SetupViewportDrawData(viewport, &viewport->DrawDataBuilder.Layers[0]); + ImDrawData* draw_data = &viewport->DrawDataP; + g.IO.MetricsRenderVertices += draw_data->TotalVtxCount; + g.IO.MetricsRenderIndices += draw_data->TotalIdxCount; + } + + CallContextHooks(&g, ImGuiContextHookType_RenderPost); +} + +// Calculate text size. Text can be multi-line. Optionally ignore text after a ## marker. +// CalcTextSize("") should return ImVec2(0.0f, g.FontSize) +ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) +{ + ImGuiContext& g = *GImGui; + + const char* text_display_end; + if (hide_text_after_double_hash) + text_display_end = FindRenderedTextEnd(text, text_end); // Hide anything after a '##' string + else + text_display_end = text_end; + + ImFont* font = g.Font; + const float font_size = g.FontSize; + if (text == text_display_end) + return ImVec2(0.0f, font_size); + ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX, wrap_width, text, text_display_end, NULL); + + // Round + // FIXME: This has been here since Dec 2015 (7b0bf230) but down the line we want this out. + // FIXME: Investigate using ceilf or e.g. + // - https://git.musl-libc.org/cgit/musl/tree/src/math/ceilf.c + // - https://embarkstudios.github.io/rust-gpu/api/src/libm/math/ceilf.rs.html + text_size.x = IM_FLOOR(text_size.x + 0.99999f); + + return text_size; +} + +// Find window given position, search front-to-back +// FIXME: Note that we have an inconsequential lag here: OuterRectClipped is updated in Begin(), so windows moved programmatically +// with SetWindowPos() and not SetNextWindowPos() will have that rectangle lagging by a frame at the time FindHoveredWindow() is +// called, aka before the next Begin(). Moving window isn't affected. +static void FindHoveredWindow() +{ + ImGuiContext& g = *GImGui; + + ImGuiWindow* hovered_window = NULL; + ImGuiWindow* hovered_window_ignoring_moving_window = NULL; + if (g.MovingWindow && !(g.MovingWindow->Flags & ImGuiWindowFlags_NoMouseInputs)) + hovered_window = g.MovingWindow; + + ImVec2 padding_regular = g.Style.TouchExtraPadding; + ImVec2 padding_for_resize = g.IO.ConfigWindowsResizeFromEdges ? g.WindowsHoverPadding : padding_regular; + for (int i = g.Windows.Size - 1; i >= 0; i--) + { + ImGuiWindow* window = g.Windows[i]; + IM_MSVC_WARNING_SUPPRESS(28182); // [Static Analyzer] Dereferencing NULL pointer. + if (!window->Active || window->Hidden) + continue; + if (window->Flags & ImGuiWindowFlags_NoMouseInputs) + continue; + + // Using the clipped AABB, a child window will typically be clipped by its parent (not always) + ImRect bb(window->OuterRectClipped); + if (window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize)) + bb.Expand(padding_regular); + else + bb.Expand(padding_for_resize); + if (!bb.Contains(g.IO.MousePos)) + continue; + + // Support for one rectangular hole in any given window + // FIXME: Consider generalizing hit-testing override (with more generic data, callback, etc.) (#1512) + if (window->HitTestHoleSize.x != 0) + { + ImVec2 hole_pos(window->Pos.x + (float)window->HitTestHoleOffset.x, window->Pos.y + (float)window->HitTestHoleOffset.y); + ImVec2 hole_size((float)window->HitTestHoleSize.x, (float)window->HitTestHoleSize.y); + if (ImRect(hole_pos, hole_pos + hole_size).Contains(g.IO.MousePos)) + continue; + } + + if (hovered_window == NULL) + hovered_window = window; + IM_MSVC_WARNING_SUPPRESS(28182); // [Static Analyzer] Dereferencing NULL pointer. + if (hovered_window_ignoring_moving_window == NULL && (!g.MovingWindow || window->RootWindow != g.MovingWindow->RootWindow)) + hovered_window_ignoring_moving_window = window; + if (hovered_window && hovered_window_ignoring_moving_window) + break; + } + + g.HoveredWindow = hovered_window; + g.HoveredWindowUnderMovingWindow = hovered_window_ignoring_moving_window; +} + +bool ImGui::IsItemActive() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + return g.ActiveId == g.LastItemData.ID; + return false; +} + +bool ImGui::IsItemActivated() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + if (g.ActiveId == g.LastItemData.ID && g.ActiveIdPreviousFrame != g.LastItemData.ID) + return true; + return false; +} + +bool ImGui::IsItemDeactivated() +{ + ImGuiContext& g = *GImGui; + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDeactivated) + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Deactivated) != 0; + return (g.ActiveIdPreviousFrame == g.LastItemData.ID && g.ActiveIdPreviousFrame != 0 && g.ActiveId != g.LastItemData.ID); +} + +bool ImGui::IsItemDeactivatedAfterEdit() +{ + ImGuiContext& g = *GImGui; + return IsItemDeactivated() && (g.ActiveIdPreviousFrameHasBeenEditedBefore || (g.ActiveId == 0 && g.ActiveIdHasBeenEditedBefore)); +} + +// == GetItemID() == GetFocusID() +bool ImGui::IsItemFocused() +{ + ImGuiContext& g = *GImGui; + if (g.NavId != g.LastItemData.ID || g.NavId == 0) + return false; + return true; +} + +// Important: this can be useful but it is NOT equivalent to the behavior of e.g.Button()! +// Most widgets have specific reactions based on mouse-up/down state, mouse position etc. +bool ImGui::IsItemClicked(ImGuiMouseButton mouse_button) +{ + return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); +} + +bool ImGui::IsItemToggledOpen() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledOpen) ? true : false; +} + +bool ImGui::IsItemToggledSelection() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledSelection) ? true : false; +} + +bool ImGui::IsAnyItemHovered() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId != 0 || g.HoveredIdPreviousFrame != 0; +} + +bool ImGui::IsAnyItemActive() +{ + ImGuiContext& g = *GImGui; + return g.ActiveId != 0; +} + +bool ImGui::IsAnyItemFocused() +{ + ImGuiContext& g = *GImGui; + return g.NavId != 0 && !g.NavDisableHighlight; +} + +bool ImGui::IsItemVisible() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) != 0; +} + +bool ImGui::IsItemEdited() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Edited) != 0; +} + +// Allow last item to be overlapped by a subsequent item. Both may be activated during the same frame before the later one takes priority. +// FIXME: Although this is exposed, its interaction and ideal idiom with using ImGuiButtonFlags_AllowItemOverlap flag are extremely confusing, need rework. +void ImGui::SetItemAllowOverlap() +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (g.HoveredId == id) + g.HoveredIdAllowOverlap = true; + if (g.ActiveId == id) + g.ActiveIdAllowOverlap = true; +} + +// FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version for the two users of this function. +void ImGui::SetActiveIdUsingAllKeyboardKeys() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId != 0); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_COUNT) - 1; + g.ActiveIdUsingAllKeyboardKeys = true; + NavMoveRequestCancel(); +} + +ImVec2 ImGui::GetItemRectMin() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.Min; +} + +ImVec2 ImGui::GetItemRectMax() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.Max; +} + +ImVec2 ImGui::GetItemRectSize() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.GetSize(); +} + +bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + + flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_ChildWindow; + flags |= (parent_window->Flags & ImGuiWindowFlags_NoMove); // Inherit the NoMove flag + + // Size + const ImVec2 content_avail = GetContentRegionAvail(); + ImVec2 size = ImFloor(size_arg); + const int auto_fit_axises = ((size.x == 0.0f) ? (1 << ImGuiAxis_X) : 0x00) | ((size.y == 0.0f) ? (1 << ImGuiAxis_Y) : 0x00); + if (size.x <= 0.0f) + size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too many issues) + if (size.y <= 0.0f) + size.y = ImMax(content_avail.y + size.y, 4.0f); + SetNextWindowSize(size); + + // Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value. + const char* temp_window_name; + if (name) + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%s_%08X", parent_window->Name, name, id); + else + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%08X", parent_window->Name, id); + + const float backup_border_size = g.Style.ChildBorderSize; + if (!border) + g.Style.ChildBorderSize = 0.0f; + bool ret = Begin(temp_window_name, NULL, flags); + g.Style.ChildBorderSize = backup_border_size; + + ImGuiWindow* child_window = g.CurrentWindow; + child_window->ChildId = id; + child_window->AutoFitChildAxises = (ImS8)auto_fit_axises; + + // Set the cursor to handle case where the user called SetNextWindowPos()+BeginChild() manually. + // While this is not really documented/defined, it seems that the expected thing to do. + if (child_window->BeginCount == 1) + parent_window->DC.CursorPos = child_window->Pos; + + // Process navigation-in immediately so NavInit can run on first frame + if (g.NavActivateId == id && !(flags & ImGuiWindowFlags_NavFlattened) && (child_window->DC.NavLayersActiveMask != 0 || child_window->DC.NavHasScroll)) + { + FocusWindow(child_window); + NavInitWindow(child_window, false); + SetActiveID(id + 1, child_window); // Steal ActiveId with another arbitrary id so that key-press won't activate child item + g.ActiveIdSource = ImGuiInputSource_Nav; + } + return ret; +} + +bool ImGui::BeginChild(const char* str_id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + return BeginChildEx(str_id, window->GetID(str_id), size_arg, border, extra_flags); +} + +bool ImGui::BeginChild(ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) +{ + IM_ASSERT(id != 0); + return BeginChildEx(NULL, id, size_arg, border, extra_flags); +} + +void ImGui::EndChild() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + IM_ASSERT(g.WithinEndChild == false); + IM_ASSERT(window->Flags & ImGuiWindowFlags_ChildWindow); // Mismatched BeginChild()/EndChild() calls + + g.WithinEndChild = true; + if (window->BeginCount > 1) + { + End(); + } + else + { + ImVec2 sz = window->Size; + if (window->AutoFitChildAxises & (1 << ImGuiAxis_X)) // Arbitrary minimum zero-ish child size of 4.0f causes less trouble than a 0.0f + sz.x = ImMax(4.0f, sz.x); + if (window->AutoFitChildAxises & (1 << ImGuiAxis_Y)) + sz.y = ImMax(4.0f, sz.y); + End(); + + ImGuiWindow* parent_window = g.CurrentWindow; + ImRect bb(parent_window->DC.CursorPos, parent_window->DC.CursorPos + sz); + ItemSize(sz); + if ((window->DC.NavLayersActiveMask != 0 || window->DC.NavHasScroll) && !(window->Flags & ImGuiWindowFlags_NavFlattened)) + { + ItemAdd(bb, window->ChildId); + RenderNavHighlight(bb, window->ChildId); + + // When browsing a window that has no activable items (scroll only) we keep a highlight on the child (pass g.NavId to trick into always displaying) + if (window->DC.NavLayersActiveMask == 0 && window == g.NavWindow) + RenderNavHighlight(ImRect(bb.Min - ImVec2(2, 2), bb.Max + ImVec2(2, 2)), g.NavId, ImGuiNavHighlightFlags_TypeThin); + } + else + { + // Not navigable into + ItemAdd(bb, 0); + } + if (g.HoveredWindow == window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } + g.WithinEndChild = false; + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return +} + +// Helper to create a child window / scrolling region that looks like a normal widget frame. +bool ImGui::BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags extra_flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding); + bool ret = BeginChild(id, size, true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysUseWindowPadding | extra_flags); + PopStyleVar(3); + PopStyleColor(); + return ret; +} + +void ImGui::EndChildFrame() +{ + EndChild(); +} + +static void SetWindowConditionAllowFlags(ImGuiWindow* window, ImGuiCond flags, bool enabled) +{ + window->SetWindowPosAllowFlags = enabled ? (window->SetWindowPosAllowFlags | flags) : (window->SetWindowPosAllowFlags & ~flags); + window->SetWindowSizeAllowFlags = enabled ? (window->SetWindowSizeAllowFlags | flags) : (window->SetWindowSizeAllowFlags & ~flags); + window->SetWindowCollapsedAllowFlags = enabled ? (window->SetWindowCollapsedAllowFlags | flags) : (window->SetWindowCollapsedAllowFlags & ~flags); +} + +ImGuiWindow* ImGui::FindWindowByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + return (ImGuiWindow*)g.WindowsById.GetVoidPtr(id); +} + +ImGuiWindow* ImGui::FindWindowByName(const char* name) +{ + ImGuiID id = ImHashStr(name); + return FindWindowByID(id); +} + +static void ApplyWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings) +{ + window->Pos = ImFloor(ImVec2(settings->Pos.x, settings->Pos.y)); + if (settings->Size.x > 0 && settings->Size.y > 0) + window->Size = window->SizeFull = ImFloor(ImVec2(settings->Size.x, settings->Size.y)); + window->Collapsed = settings->Collapsed; +} + +static void UpdateWindowInFocusOrderList(ImGuiWindow* window, bool just_created, ImGuiWindowFlags new_flags) +{ + ImGuiContext& g = *GImGui; + + const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0 && ((new_flags & ImGuiWindowFlags_Popup) == 0 || (new_flags & ImGuiWindowFlags_ChildMenu) != 0); + const bool child_flag_changed = new_is_explicit_child != window->IsExplicitChild; + if ((just_created || child_flag_changed) && !new_is_explicit_child) + { + IM_ASSERT(!g.WindowsFocusOrder.contains(window)); + g.WindowsFocusOrder.push_back(window); + window->FocusOrder = (short)(g.WindowsFocusOrder.Size - 1); + } + else if (!just_created && child_flag_changed && new_is_explicit_child) + { + IM_ASSERT(g.WindowsFocusOrder[window->FocusOrder] == window); + for (int n = window->FocusOrder + 1; n < g.WindowsFocusOrder.Size; n++) + g.WindowsFocusOrder[n]->FocusOrder--; + g.WindowsFocusOrder.erase(g.WindowsFocusOrder.Data + window->FocusOrder); + window->FocusOrder = -1; + } + window->IsExplicitChild = new_is_explicit_child; +} + +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + //IMGUI_DEBUG_LOG("CreateNewWindow '%s', flags = 0x%08X\n", name, flags); + + // Create window the first time + ImGuiWindow* window = IM_NEW(ImGuiWindow)(&g, name); + window->Flags = flags; + g.WindowsById.SetVoidPtr(window->ID, window); + + // Default/arbitrary window position. Use SetNextWindowPos() with the appropriate condition flag to change the initial position of a window. + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + window->Pos = main_viewport->Pos + ImVec2(60, 60); + + // User can disable loading and saving of settings. Tooltip and child windows also don't store settings. + if (!(flags & ImGuiWindowFlags_NoSavedSettings)) + if (ImGuiWindowSettings* settings = ImGui::FindWindowSettings(window->ID)) + { + // Retrieve settings from .ini file + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); + ApplyWindowSettings(window, settings); + } + window->DC.CursorStartPos = window->DC.CursorMaxPos = window->DC.IdealMaxPos = window->Pos; // So first call to CalcWindowContentSizes() doesn't return crazy values + + if ((flags & ImGuiWindowFlags_AlwaysAutoResize) != 0) + { + window->AutoFitFramesX = window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = false; + } + else + { + if (window->Size.x <= 0.0f) + window->AutoFitFramesX = 2; + if (window->Size.y <= 0.0f) + window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = (window->AutoFitFramesX > 0) || (window->AutoFitFramesY > 0); + } + + if (flags & ImGuiWindowFlags_NoBringToFrontOnFocus) + g.Windows.push_front(window); // Quite slow but rare and only once + else + g.Windows.push_back(window); + + return window; +} + +static ImVec2 CalcWindowSizeAfterConstraint(ImGuiWindow* window, const ImVec2& size_desired) +{ + ImGuiContext& g = *GImGui; + ImVec2 new_size = size_desired; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) + { + // Using -1,-1 on either X/Y axis to preserve the current size. + ImRect cr = g.NextWindowData.SizeConstraintRect; + new_size.x = (cr.Min.x >= 0 && cr.Max.x >= 0) ? ImClamp(new_size.x, cr.Min.x, cr.Max.x) : window->SizeFull.x; + new_size.y = (cr.Min.y >= 0 && cr.Max.y >= 0) ? ImClamp(new_size.y, cr.Min.y, cr.Max.y) : window->SizeFull.y; + if (g.NextWindowData.SizeCallback) + { + ImGuiSizeCallbackData data; + data.UserData = g.NextWindowData.SizeCallbackUserData; + data.Pos = window->Pos; + data.CurrentSize = window->SizeFull; + data.DesiredSize = new_size; + g.NextWindowData.SizeCallback(&data); + new_size = data.DesiredSize; + } + new_size.x = IM_FLOOR(new_size.x); + new_size.y = IM_FLOOR(new_size.y); + } + + // Minimum size + if (!(window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysAutoResize))) + { + ImGuiWindow* window_for_height = window; + const float decoration_up_height = window_for_height->TitleBarHeight() + window_for_height->MenuBarHeight(); + new_size = ImMax(new_size, g.Style.WindowMinSize); + new_size.y = ImMax(new_size.y, decoration_up_height + ImMax(0.0f, g.Style.WindowRounding - 1.0f)); // Reduce artifacts with very small windows + } + return new_size; +} + +static void CalcWindowContentSizes(ImGuiWindow* window, ImVec2* content_size_current, ImVec2* content_size_ideal) +{ + bool preserve_old_content_sizes = false; + if (window->Collapsed && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) + preserve_old_content_sizes = true; + else if (window->Hidden && window->HiddenFramesCannotSkipItems == 0 && window->HiddenFramesCanSkipItems > 0) + preserve_old_content_sizes = true; + if (preserve_old_content_sizes) + { + *content_size_current = window->ContentSize; + *content_size_ideal = window->ContentSizeIdeal; + return; + } + + content_size_current->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_FLOOR(window->DC.CursorMaxPos.x - window->DC.CursorStartPos.x); + content_size_current->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_FLOOR(window->DC.CursorMaxPos.y - window->DC.CursorStartPos.y); + content_size_ideal->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_FLOOR(ImMax(window->DC.CursorMaxPos.x, window->DC.IdealMaxPos.x) - window->DC.CursorStartPos.x); + content_size_ideal->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_FLOOR(ImMax(window->DC.CursorMaxPos.y, window->DC.IdealMaxPos.y) - window->DC.CursorStartPos.y); +} + +static ImVec2 CalcWindowAutoFitSize(ImGuiWindow* window, const ImVec2& size_contents) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + const float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); + ImVec2 size_pad = window->WindowPadding * 2.0f; + ImVec2 size_desired = size_contents + size_pad + ImVec2(0.0f, decoration_up_height); + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Tooltip always resize + return size_desired; + } + else + { + // Maximum window size is determined by the viewport size or monitor size + const bool is_popup = (window->Flags & ImGuiWindowFlags_Popup) != 0; + const bool is_menu = (window->Flags & ImGuiWindowFlags_ChildMenu) != 0; + ImVec2 size_min = style.WindowMinSize; + if (is_popup || is_menu) // Popups and menus bypass style.WindowMinSize by default, but we give then a non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups) + size_min = ImMin(size_min, ImVec2(4.0f, 4.0f)); + + ImVec2 avail_size = ImGui::GetMainViewport()->WorkSize; + ImVec2 size_auto_fit = ImClamp(size_desired, size_min, ImMax(size_min, avail_size - style.DisplaySafeAreaPadding * 2.0f)); + + // When the window cannot fit all contents (either because of constraints, either because screen is too small), + // we are growing the size on the other axis to compensate for expected scrollbar. FIXME: Might turn bigger than ViewportSize-WindowPadding. + ImVec2 size_auto_fit_after_constraint = CalcWindowSizeAfterConstraint(window, size_auto_fit); + bool will_have_scrollbar_x = (size_auto_fit_after_constraint.x - size_pad.x - 0.0f < size_contents.x && !(window->Flags & ImGuiWindowFlags_NoScrollbar) && (window->Flags & ImGuiWindowFlags_HorizontalScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar); + bool will_have_scrollbar_y = (size_auto_fit_after_constraint.y - size_pad.y - decoration_up_height < size_contents.y && !(window->Flags & ImGuiWindowFlags_NoScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysVerticalScrollbar); + if (will_have_scrollbar_x) + size_auto_fit.y += style.ScrollbarSize; + if (will_have_scrollbar_y) + size_auto_fit.x += style.ScrollbarSize; + return size_auto_fit; + } +} + +ImVec2 ImGui::CalcWindowNextAutoFitSize(ImGuiWindow* window) +{ + ImVec2 size_contents_current; + ImVec2 size_contents_ideal; + CalcWindowContentSizes(window, &size_contents_current, &size_contents_ideal); + ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents_ideal); + ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit); + return size_final; +} + +static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window) +{ + if (window->Flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) + return ImGuiCol_PopupBg; + if (window->Flags & ImGuiWindowFlags_ChildWindow) + return ImGuiCol_ChildBg; + return ImGuiCol_WindowBg; +} + +static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size) +{ + ImVec2 pos_min = ImLerp(corner_target, window->Pos, corner_norm); // Expected window upper-left + ImVec2 pos_max = ImLerp(window->Pos + window->Size, corner_target, corner_norm); // Expected window lower-right + ImVec2 size_expected = pos_max - pos_min; + ImVec2 size_constrained = CalcWindowSizeAfterConstraint(window, size_expected); + *out_pos = pos_min; + if (corner_norm.x == 0.0f) + out_pos->x -= (size_constrained.x - size_expected.x); + if (corner_norm.y == 0.0f) + out_pos->y -= (size_constrained.y - size_expected.y); + *out_size = size_constrained; +} + +// Data for resizing from corner +struct ImGuiResizeGripDef +{ + ImVec2 CornerPosN; + ImVec2 InnerDir; + int AngleMin12, AngleMax12; +}; +static const ImGuiResizeGripDef resize_grip_def[4] = +{ + { ImVec2(1, 1), ImVec2(-1, -1), 0, 3 }, // Lower-right + { ImVec2(0, 1), ImVec2(+1, -1), 3, 6 }, // Lower-left + { ImVec2(0, 0), ImVec2(+1, +1), 6, 9 }, // Upper-left (Unused) + { ImVec2(1, 0), ImVec2(-1, +1), 9, 12 } // Upper-right (Unused) +}; + +// Data for resizing from borders +struct ImGuiResizeBorderDef +{ + ImVec2 InnerDir; + ImVec2 SegmentN1, SegmentN2; + float OuterAngle; +}; +static const ImGuiResizeBorderDef resize_border_def[4] = +{ + { ImVec2(+1, 0), ImVec2(0, 1), ImVec2(0, 0), IM_PI * 1.00f }, // Left + { ImVec2(-1, 0), ImVec2(1, 0), ImVec2(1, 1), IM_PI * 0.00f }, // Right + { ImVec2(0, +1), ImVec2(0, 0), ImVec2(1, 0), IM_PI * 1.50f }, // Up + { ImVec2(0, -1), ImVec2(1, 1), ImVec2(0, 1), IM_PI * 0.50f } // Down +}; + +static ImRect GetResizeBorderRect(ImGuiWindow* window, int border_n, float perp_padding, float thickness) +{ + ImRect rect = window->Rect(); + if (thickness == 0.0f) + rect.Max -= ImVec2(1, 1); + if (border_n == ImGuiDir_Left) { return ImRect(rect.Min.x - thickness, rect.Min.y + perp_padding, rect.Min.x + thickness, rect.Max.y - perp_padding); } + if (border_n == ImGuiDir_Right) { return ImRect(rect.Max.x - thickness, rect.Min.y + perp_padding, rect.Max.x + thickness, rect.Max.y - perp_padding); } + if (border_n == ImGuiDir_Up) { return ImRect(rect.Min.x + perp_padding, rect.Min.y - thickness, rect.Max.x - perp_padding, rect.Min.y + thickness); } + if (border_n == ImGuiDir_Down) { return ImRect(rect.Min.x + perp_padding, rect.Max.y - thickness, rect.Max.x - perp_padding, rect.Max.y + thickness); } + IM_ASSERT(0); + return ImRect(); +} + +// 0..3: corners (Lower-right, Lower-left, Unused, Unused) +ImGuiID ImGui::GetWindowResizeCornerID(ImGuiWindow* window, int n) +{ + IM_ASSERT(n >= 0 && n < 4); + ImGuiID id = window->ID; + id = ImHashStr("#RESIZE", 0, id); + id = ImHashData(&n, sizeof(int), id); + return id; +} + +// Borders (Left, Right, Up, Down) +ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) +{ + IM_ASSERT(dir >= 0 && dir < 4); + int n = (int)dir + 4; + ImGuiID id = window->ID; + id = ImHashStr("#RESIZE", 0, id); + id = ImHashData(&n, sizeof(int), id); + return id; +} + +// Handle resize for: Resize Grips, Borders, Gamepad +// Return true when using auto-fit (double-click on resize grip) +static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImGuiWindowFlags flags = window->Flags; + + if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + return false; + if (window->WasActive == false) // Early out to avoid running this code for e.g. a hidden implicit/fallback Debug window. + return false; + + bool ret_auto_fit = false; + const int resize_border_count = g.IO.ConfigWindowsResizeFromEdges ? 4 : 0; + const float grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.35f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + const float grip_hover_inner_size = IM_FLOOR(grip_draw_size * 0.75f); + const float grip_hover_outer_size = g.IO.ConfigWindowsResizeFromEdges ? WINDOWS_HOVER_PADDING : 0.0f; + + ImVec2 pos_target(FLT_MAX, FLT_MAX); + ImVec2 size_target(FLT_MAX, FLT_MAX); + + // Resize grips and borders are on layer 1 + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Manual resize grips + PushID("#RESIZE"); + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImGuiResizeGripDef& def = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, def.CornerPosN); + + // Using the FlattenChilds button flag we make the resize button accessible even if we are hovering over a child window + bool hovered, held; + ImRect resize_rect(corner - def.InnerDir * grip_hover_outer_size, corner + def.InnerDir * grip_hover_inner_size); + if (resize_rect.Min.x > resize_rect.Max.x) ImSwap(resize_rect.Min.x, resize_rect.Max.x); + if (resize_rect.Min.y > resize_rect.Max.y) ImSwap(resize_rect.Min.y, resize_rect.Max.y); + ImGuiID resize_grip_id = window->GetID(resize_grip_n); // == GetWindowResizeCornerID() + ItemAdd(resize_rect, resize_grip_id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(resize_rect, resize_grip_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); + //GetForegroundDrawList(window)->AddRect(resize_rect.Min, resize_rect.Max, IM_COL32(255, 255, 0, 255)); + if (hovered || held) + g.MouseCursor = (resize_grip_n & 1) ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE; + + if (held && g.IO.MouseClickedCount[0] == 2 && resize_grip_n == 0) + { + // Manual auto-fit when double-clicking + size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit); + ret_auto_fit = true; + ClearActiveID(); + } + else if (held) + { + // Resize from any of the four corners + // We don't use an incremental MouseDelta but rather compute an absolute target size based on mouse position + ImVec2 clamp_min = ImVec2(def.CornerPosN.x == 1.0f ? visibility_rect.Min.x : -FLT_MAX, def.CornerPosN.y == 1.0f ? visibility_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max = ImVec2(def.CornerPosN.x == 0.0f ? visibility_rect.Max.x : +FLT_MAX, def.CornerPosN.y == 0.0f ? visibility_rect.Max.y : +FLT_MAX); + ImVec2 corner_target = g.IO.MousePos - g.ActiveIdClickOffset + ImLerp(def.InnerDir * grip_hover_outer_size, def.InnerDir * -grip_hover_inner_size, def.CornerPosN); // Corner of the window corresponding to our corner grip + corner_target = ImClamp(corner_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, corner_target, def.CornerPosN, &pos_target, &size_target); + } + + // Only lower-left grip is visible before hovering/activating + if (resize_grip_n == 0 || held || hovered) + resize_grip_col[resize_grip_n] = GetColorU32(held ? ImGuiCol_ResizeGripActive : hovered ? ImGuiCol_ResizeGripHovered : ImGuiCol_ResizeGrip); + } + for (int border_n = 0; border_n < resize_border_count; border_n++) + { + const ImGuiResizeBorderDef& def = resize_border_def[border_n]; + const ImGuiAxis axis = (border_n == ImGuiDir_Left || border_n == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + + bool hovered, held; + ImRect border_rect = GetResizeBorderRect(window, border_n, grip_hover_inner_size, WINDOWS_HOVER_PADDING); + ImGuiID border_id = window->GetID(border_n + 4); // == GetWindowResizeBorderID() + ItemAdd(border_rect, border_id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(border_rect, border_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); + //GetForegroundDrawLists(window)->AddRect(border_rect.Min, border_rect.Max, IM_COL32(255, 255, 0, 255)); + if ((hovered && g.HoveredIdTimer > WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER) || held) + { + g.MouseCursor = (axis == ImGuiAxis_X) ? ImGuiMouseCursor_ResizeEW : ImGuiMouseCursor_ResizeNS; + if (held) + *border_held = border_n; + } + if (held) + { + ImVec2 clamp_min(border_n == ImGuiDir_Right ? visibility_rect.Min.x : -FLT_MAX, border_n == ImGuiDir_Down ? visibility_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max(border_n == ImGuiDir_Left ? visibility_rect.Max.x : +FLT_MAX, border_n == ImGuiDir_Up ? visibility_rect.Max.y : +FLT_MAX); + ImVec2 border_target = window->Pos; + border_target[axis] = g.IO.MousePos[axis] - g.ActiveIdClickOffset[axis] + WINDOWS_HOVER_PADDING; + border_target = ImClamp(border_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, border_target, ImMin(def.SegmentN1, def.SegmentN2), &pos_target, &size_target); + } + } + PopID(); + + // Restore nav layer + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + + // Navigation resize (keyboard/gamepad) + // FIXME: This cannot be moved to NavUpdateWindowing() because CalcWindowSizeAfterConstraint() need to callback into user. + // Not even sure the callback works here. + if (g.NavWindowingTarget && g.NavWindowingTarget->RootWindow == window) + { + ImVec2 nav_resize_dir; + if (g.NavInputSource == ImGuiInputSource_Keyboard && g.IO.KeyShift) + nav_resize_dir = GetKeyVector2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); + if (g.NavInputSource == ImGuiInputSource_Gamepad) + nav_resize_dir = GetKeyVector2d(ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown); + if (nav_resize_dir.x != 0.0f || nav_resize_dir.y != 0.0f) + { + const float NAV_RESIZE_SPEED = 600.0f; + const float resize_step = NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaSize += nav_resize_dir * resize_step; + g.NavWindowingAccumDeltaSize = ImMax(g.NavWindowingAccumDeltaSize, visibility_rect.Min - window->Pos - window->Size); // We need Pos+Size >= visibility_rect.Min, so Size >= visibility_rect.Min - Pos, so size_delta >= visibility_rect.Min - window->Pos - window->Size + g.NavWindowingToggleLayer = false; + g.NavDisableMouseHover = true; + resize_grip_col[0] = GetColorU32(ImGuiCol_ResizeGripActive); + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaSize); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. + size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + accum_floored); + g.NavWindowingAccumDeltaSize -= accum_floored; + } + } + } + + // Apply back modified position/size to window + if (size_target.x != FLT_MAX) + { + window->SizeFull = size_target; + MarkIniSettingsDirty(window); + } + if (pos_target.x != FLT_MAX) + { + window->Pos = ImFloor(pos_target); + MarkIniSettingsDirty(window); + } + + window->Size = window->SizeFull; + return ret_auto_fit; +} + +static inline void ClampWindowPos(ImGuiWindow* window, const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImVec2 size_for_clamping = window->Size; + if (g.IO.ConfigWindowsMoveFromTitleBarOnly && !(window->Flags & ImGuiWindowFlags_NoTitleBar)) + size_for_clamping.y = window->TitleBarHeight(); + window->Pos = ImClamp(window->Pos, visibility_rect.Min - size_for_clamping, visibility_rect.Max); +} + +static void ImGui::RenderWindowOuterBorders(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + float rounding = window->WindowRounding; + float border_size = window->WindowBorderSize; + if (border_size > 0.0f && !(window->Flags & ImGuiWindowFlags_NoBackground)) + window->DrawList->AddRect(window->Pos, window->Pos + window->Size, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + + int border_held = window->ResizeBorderHeld; + if (border_held != -1) + { + const ImGuiResizeBorderDef& def = resize_border_def[border_held]; + ImRect border_r = GetResizeBorderRect(window, border_held, rounding, 0.0f); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN1) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle - IM_PI * 0.25f, def.OuterAngle); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN2) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle, def.OuterAngle + IM_PI * 0.25f); + window->DrawList->PathStroke(GetColorU32(ImGuiCol_SeparatorActive), 0, ImMax(2.0f, border_size)); // Thicker than usual + } + if (g.Style.FrameBorderSize > 0 && !(window->Flags & ImGuiWindowFlags_NoTitleBar)) + { + float y = window->Pos.y + window->TitleBarHeight() - 1; + window->DrawList->AddLine(ImVec2(window->Pos.x + border_size, y), ImVec2(window->Pos.x + window->Size.x - border_size, y), GetColorU32(ImGuiCol_Border), g.Style.FrameBorderSize); + } +} + +// Draw background and borders +// Draw and handle scrollbars +void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + // Ensure that ScrollBar doesn't read last frame's SkipItems + IM_ASSERT(window->BeginCount == 0); + window->SkipItems = false; + + // Draw window + handle manual resize + // As we highlight the title bar when want_focus is set, multiple reappearing windows will have their title bar highlighted on their reappearing frame. + const float window_rounding = window->WindowRounding; + const float window_border_size = window->WindowBorderSize; + if (window->Collapsed) + { + // Title bar only + float backup_border_size = style.FrameBorderSize; + g.Style.FrameBorderSize = window->WindowBorderSize; + ImU32 title_bar_col = GetColorU32((title_bar_is_highlight && !g.NavDisableHighlight) ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBgCollapsed); + RenderFrame(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, true, window_rounding); + g.Style.FrameBorderSize = backup_border_size; + } + else + { + // Window background + if (!(flags & ImGuiWindowFlags_NoBackground)) + { + ImU32 bg_col = GetColorU32(GetWindowBgColorIdx(window)); + bool override_alpha = false; + float alpha = 1.0f; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasBgAlpha) + { + alpha = g.NextWindowData.BgAlphaVal; + override_alpha = true; + } + if (override_alpha) + bg_col = (bg_col & ~IM_COL32_A_MASK) | (IM_F32_TO_INT8_SAT(alpha) << IM_COL32_A_SHIFT); + window->DrawList->AddRectFilled(window->Pos + ImVec2(0, window->TitleBarHeight()), window->Pos + window->Size, bg_col, window_rounding, (flags & ImGuiWindowFlags_NoTitleBar) ? 0 : ImDrawFlags_RoundCornersBottom); + } + + // Title bar + if (!(flags & ImGuiWindowFlags_NoTitleBar)) + { + ImU32 title_bar_col = GetColorU32(title_bar_is_highlight ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg); + window->DrawList->AddRectFilled(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, window_rounding, ImDrawFlags_RoundCornersTop); + } + + // Menu bar + if (flags & ImGuiWindowFlags_MenuBar) + { + ImRect menu_bar_rect = window->MenuBarRect(); + menu_bar_rect.ClipWith(window->Rect()); // Soft clipping, in particular child window don't have minimum size covering the menu bar so this is useful for them. + window->DrawList->AddRectFilled(menu_bar_rect.Min + ImVec2(window_border_size, 0), menu_bar_rect.Max - ImVec2(window_border_size, 0), GetColorU32(ImGuiCol_MenuBarBg), (flags & ImGuiWindowFlags_NoTitleBar) ? window_rounding : 0.0f, ImDrawFlags_RoundCornersTop); + if (style.FrameBorderSize > 0.0f && menu_bar_rect.Max.y < window->Pos.y + window->Size.y) + window->DrawList->AddLine(menu_bar_rect.GetBL(), menu_bar_rect.GetBR(), GetColorU32(ImGuiCol_Border), style.FrameBorderSize); + } + + // Scrollbars + if (window->ScrollbarX) + Scrollbar(ImGuiAxis_X); + if (window->ScrollbarY) + Scrollbar(ImGuiAxis_Y); + + // Render resize grips (after their input handling so we don't have a frame of latency) + if (!(flags & ImGuiWindowFlags_NoResize)) + { + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImGuiResizeGripDef& grip = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, grip.CornerPosN); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(window_border_size, resize_grip_draw_size) : ImVec2(resize_grip_draw_size, window_border_size))); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(resize_grip_draw_size, window_border_size) : ImVec2(window_border_size, resize_grip_draw_size))); + window->DrawList->PathArcToFast(ImVec2(corner.x + grip.InnerDir.x * (window_rounding + window_border_size), corner.y + grip.InnerDir.y * (window_rounding + window_border_size)), window_rounding, grip.AngleMin12, grip.AngleMax12); + window->DrawList->PathFillConvex(resize_grip_col[resize_grip_n]); + } + } + + // Borders + RenderWindowOuterBorders(window); + } +} + +// Render title text, collapse button, close button +void ImGui::RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + const bool has_close_button = (p_open != NULL); + const bool has_collapse_button = !(flags & ImGuiWindowFlags_NoCollapse) && (style.WindowMenuButtonPosition != ImGuiDir_None); + + // Close & Collapse button are on the Menu NavLayer and don't default focus (unless there's nothing else on that layer) + // FIXME-NAV: Might want (or not?) to set the equivalent of ImGuiButtonFlags_NoNavFocus so that mouse clicks on standard title bar items don't necessarily set nav/keyboard ref? + const ImGuiItemFlags item_flags_backup = g.CurrentItemFlags; + g.CurrentItemFlags |= ImGuiItemFlags_NoNavDefaultFocus; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Layout buttons + // FIXME: Would be nice to generalize the subtleties expressed here into reusable code. + float pad_l = style.FramePadding.x; + float pad_r = style.FramePadding.x; + float button_sz = g.FontSize; + ImVec2 close_button_pos; + ImVec2 collapse_button_pos; + if (has_close_button) + { + pad_r += button_sz; + close_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - style.FramePadding.x, title_bar_rect.Min.y); + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Right) + { + pad_r += button_sz; + collapse_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - style.FramePadding.x, title_bar_rect.Min.y); + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Left) + { + collapse_button_pos = ImVec2(title_bar_rect.Min.x + pad_l - style.FramePadding.x, title_bar_rect.Min.y); + pad_l += button_sz; + } + + // Collapse button (submitting first so it gets priority when choosing a navigation init fallback) + if (has_collapse_button) + if (CollapseButton(window->GetID("#COLLAPSE"), collapse_button_pos)) + window->WantCollapseToggle = true; // Defer actual collapsing to next frame as we are too far in the Begin() function + + // Close button + if (has_close_button) + if (CloseButton(window->GetID("#CLOSE"), close_button_pos)) + *p_open = false; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + g.CurrentItemFlags = item_flags_backup; + + // Title bar text (with: horizontal alignment, avoiding collapse/close button, optional "unsaved document" marker) + // FIXME: Refactor text alignment facilities along with RenderText helpers, this is WAY too much messy code.. + const float marker_size_x = (flags & ImGuiWindowFlags_UnsavedDocument) ? button_sz * 0.80f : 0.0f; + const ImVec2 text_size = CalcTextSize(name, NULL, true) + ImVec2(marker_size_x, 0.0f); + + // As a nice touch we try to ensure that centered title text doesn't get affected by visibility of Close/Collapse button, + // while uncentered title text will still reach edges correctly. + if (pad_l > style.FramePadding.x) + pad_l += g.Style.ItemInnerSpacing.x; + if (pad_r > style.FramePadding.x) + pad_r += g.Style.ItemInnerSpacing.x; + if (style.WindowTitleAlign.x > 0.0f && style.WindowTitleAlign.x < 1.0f) + { + float centerness = ImSaturate(1.0f - ImFabs(style.WindowTitleAlign.x - 0.5f) * 2.0f); // 0.0f on either edges, 1.0f on center + float pad_extend = ImMin(ImMax(pad_l, pad_r), title_bar_rect.GetWidth() - pad_l - pad_r - text_size.x); + pad_l = ImMax(pad_l, pad_extend * centerness); + pad_r = ImMax(pad_r, pad_extend * centerness); + } + + ImRect layout_r(title_bar_rect.Min.x + pad_l, title_bar_rect.Min.y, title_bar_rect.Max.x - pad_r, title_bar_rect.Max.y); + ImRect clip_r(layout_r.Min.x, layout_r.Min.y, ImMin(layout_r.Max.x + g.Style.ItemInnerSpacing.x, title_bar_rect.Max.x), layout_r.Max.y); + if (flags & ImGuiWindowFlags_UnsavedDocument) + { + ImVec2 marker_pos; + marker_pos.x = ImClamp(layout_r.Min.x + (layout_r.GetWidth() - text_size.x) * style.WindowTitleAlign.x + text_size.x, layout_r.Min.x, layout_r.Max.x); + marker_pos.y = (layout_r.Min.y + layout_r.Max.y) * 0.5f; + if (marker_pos.x > layout_r.Min.x) + { + RenderBullet(window->DrawList, marker_pos, GetColorU32(ImGuiCol_Text)); + clip_r.Max.x = ImMin(clip_r.Max.x, marker_pos.x - (int)(marker_size_x * 0.5f)); + } + } + //if (g.IO.KeyShift) window->DrawList->AddRect(layout_r.Min, layout_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] + //if (g.IO.KeyCtrl) window->DrawList->AddRect(clip_r.Min, clip_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] + RenderTextClipped(layout_r.Min, layout_r.Max, name, NULL, &text_size, style.WindowTitleAlign, &clip_r); +} + +void ImGui::UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window) +{ + window->ParentWindow = parent_window; + window->RootWindow = window->RootWindowPopupTree = window->RootWindowForTitleBarHighlight = window->RootWindowForNav = window; + if (parent_window && (flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Tooltip)) + window->RootWindow = parent_window->RootWindow; + if (parent_window && (flags & ImGuiWindowFlags_Popup)) + window->RootWindowPopupTree = parent_window->RootWindowPopupTree; + if (parent_window && !(flags & ImGuiWindowFlags_Modal) && (flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup))) + window->RootWindowForTitleBarHighlight = parent_window->RootWindowForTitleBarHighlight; + while (window->RootWindowForNav->Flags & ImGuiWindowFlags_NavFlattened) + { + IM_ASSERT(window->RootWindowForNav->ParentWindow != NULL); + window->RootWindowForNav = window->RootWindowForNav->ParentWindow; + } +} + +// When a modal popup is open, newly created windows that want focus (i.e. are not popups and do not specify ImGuiWindowFlags_NoFocusOnAppearing) +// should be positioned behind that modal window, unless the window was created inside the modal begin-stack. +// In case of multiple stacked modals newly created window honors begin stack order and does not go below its own modal parent. +// - Window // FindBlockingModal() returns Modal1 +// - Window // .. returns Modal1 +// - Modal1 // .. returns Modal2 +// - Window // .. returns Modal2 +// - Window // .. returns Modal2 +// - Modal2 // .. returns Modal2 +static ImGuiWindow* ImGui::FindBlockingModal(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size <= 0) + return NULL; + + // Find a modal that has common parent with specified window. Specified window should be positioned behind that modal. + for (int i = g.OpenPopupStack.Size - 1; i >= 0; i--) + { + ImGuiWindow* popup_window = g.OpenPopupStack.Data[i].Window; + if (popup_window == NULL || !(popup_window->Flags & ImGuiWindowFlags_Modal)) + continue; + if (!popup_window->Active && !popup_window->WasActive) // Check WasActive, because this code may run before popup renders on current frame, also check Active to handle newly created windows. + continue; + if (IsWindowWithinBeginStackOf(window, popup_window)) // Window is rendered over last modal, no render order change needed. + break; + for (ImGuiWindow* parent = popup_window->ParentWindowInBeginStack->RootWindow; parent != NULL; parent = parent->ParentWindowInBeginStack->RootWindow) + if (IsWindowWithinBeginStackOf(window, parent)) + return popup_window; // Place window above its begin stack parent. + } + return NULL; +} + +// Push a new Dear ImGui window to add widgets to. +// - A default window called "Debug" is automatically stacked at the beginning of every frame so you can use widgets without explicitly calling a Begin/End pair. +// - Begin/End can be called multiple times during the frame with the same window name to append content. +// - The window name is used as a unique identifier to preserve window information across frames (and save rudimentary information to the .ini file). +// You can use the "##" or "###" markers to use the same label with different id, or same id with different label. See documentation at the top of this file. +// - Return false when window is collapsed, so you can early out in your code. You always need to call ImGui::End() even if false is returned. +// - Passing 'bool* p_open' displays a Close button on the upper-right corner of the window, the pointed value will be set to false when the button is pressed. +bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + IM_ASSERT(name != NULL && name[0] != '\0'); // Window name required + IM_ASSERT(g.WithinFrameScope); // Forgot to call ImGui::NewFrame() + IM_ASSERT(g.FrameCountEnded != g.FrameCount); // Called ImGui::Render() or ImGui::EndFrame() and haven't called ImGui::NewFrame() again yet + + // Find or create + ImGuiWindow* window = FindWindowByName(name); + const bool window_just_created = (window == NULL); + if (window_just_created) + window = CreateNewWindow(name, flags); + + // Automatically disable manual moving/resizing when NoInputs is set + if ((flags & ImGuiWindowFlags_NoInputs) == ImGuiWindowFlags_NoInputs) + flags |= ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize; + + if (flags & ImGuiWindowFlags_NavFlattened) + IM_ASSERT(flags & ImGuiWindowFlags_ChildWindow); + + const int current_frame = g.FrameCount; + const bool first_begin_of_the_frame = (window->LastFrameActive != current_frame); + window->IsFallbackWindow = (g.CurrentWindowStack.Size == 0 && g.WithinFrameScopeWithImplicitWindow); + + // Update the Appearing flag + bool window_just_activated_by_user = (window->LastFrameActive < current_frame - 1); // Not using !WasActive because the implicit "Debug" window would always toggle off->on + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + window_just_activated_by_user |= (window->PopupId != popup_ref.PopupId); // We recycle popups so treat window as activated if popup id changed + window_just_activated_by_user |= (window != popup_ref.Window); + } + window->Appearing = window_just_activated_by_user; + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); + + // Update Flags, LastFrameActive, BeginOrderXXX fields + if (first_begin_of_the_frame) + { + UpdateWindowInFocusOrderList(window, window_just_created, flags); + window->Flags = (ImGuiWindowFlags)flags; + window->LastFrameActive = current_frame; + window->LastTimeActive = (float)g.Time; + window->BeginOrderWithinParent = 0; + window->BeginOrderWithinContext = (short)(g.WindowsActiveCount++); + } + else + { + flags = window->Flags; + } + + // Parent window is latched only on the first call to Begin() of the frame, so further append-calls can be done from a different window stack + ImGuiWindow* parent_window_in_stack = g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back().Window; + ImGuiWindow* parent_window = first_begin_of_the_frame ? ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup)) ? parent_window_in_stack : NULL) : window->ParentWindow; + IM_ASSERT(parent_window != NULL || !(flags & ImGuiWindowFlags_ChildWindow)); + + // We allow window memory to be compacted so recreate the base stack when needed. + if (window->IDStack.Size == 0) + window->IDStack.push_back(window->ID); + + // Add to stack + // We intentionally set g.CurrentWindow to NULL to prevent usage until when the viewport is set, then will call SetCurrentWindow() + g.CurrentWindow = window; + ImGuiWindowStackData window_stack_data; + window_stack_data.Window = window; + window_stack_data.ParentLastItemDataBackup = g.LastItemData; + window_stack_data.StackSizesOnBegin.SetToCurrentState(); + g.CurrentWindowStack.push_back(window_stack_data); + if (flags & ImGuiWindowFlags_ChildMenu) + g.BeginMenuCount++; + + // Update ->RootWindow and others pointers (before any possible call to FocusWindow) + if (first_begin_of_the_frame) + { + UpdateWindowParentAndRootLinks(window, flags, parent_window); + window->ParentWindowInBeginStack = parent_window_in_stack; + } + + // Add to focus scope stack + PushFocusScope(window->ID); + window->NavRootFocusScopeId = g.CurrentFocusScopeId; + g.CurrentWindow = NULL; + + // Add to popup stack + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + popup_ref.Window = window; + popup_ref.ParentNavLayer = parent_window_in_stack->DC.NavLayerCurrent; + g.BeginPopupStack.push_back(popup_ref); + window->PopupId = popup_ref.PopupId; + } + + // Process SetNextWindow***() calls + // (FIXME: Consider splitting the HasXXX flags into X/Y components + bool window_pos_set_by_api = false; + bool window_size_x_set_by_api = false, window_size_y_set_by_api = false; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) + { + window_pos_set_by_api = (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) != 0; + if (window_pos_set_by_api && ImLengthSqr(g.NextWindowData.PosPivotVal) > 0.00001f) + { + // May be processed on the next frame if this is our first frame and we are measuring size + // FIXME: Look into removing the branch so everything can go through this same code path for consistency. + window->SetWindowPosVal = g.NextWindowData.PosVal; + window->SetWindowPosPivot = g.NextWindowData.PosPivotVal; + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + } + else + { + SetWindowPos(window, g.NextWindowData.PosVal, g.NextWindowData.PosCond); + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) + { + window_size_x_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.x > 0.0f); + window_size_y_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.y > 0.0f); + SetWindowSize(window, g.NextWindowData.SizeVal, g.NextWindowData.SizeCond); + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasScroll) + { + if (g.NextWindowData.ScrollVal.x >= 0.0f) + { + window->ScrollTarget.x = g.NextWindowData.ScrollVal.x; + window->ScrollTargetCenterRatio.x = 0.0f; + } + if (g.NextWindowData.ScrollVal.y >= 0.0f) + { + window->ScrollTarget.y = g.NextWindowData.ScrollVal.y; + window->ScrollTargetCenterRatio.y = 0.0f; + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasContentSize) + window->ContentSizeExplicit = g.NextWindowData.ContentSizeVal; + else if (first_begin_of_the_frame) + window->ContentSizeExplicit = ImVec2(0.0f, 0.0f); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasCollapsed) + SetWindowCollapsed(window, g.NextWindowData.CollapsedVal, g.NextWindowData.CollapsedCond); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasFocus) + FocusWindow(window); + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, false); + + // When reusing window again multiple times a frame, just append content (don't need to setup again) + if (first_begin_of_the_frame) + { + // Initialize + const bool window_is_child_tooltip = (flags & ImGuiWindowFlags_ChildWindow) && (flags & ImGuiWindowFlags_Tooltip); // FIXME-WIP: Undocumented behavior of Child+Tooltip for pinned tooltip (#1345) + const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); + window->Active = true; + window->HasCloseButton = (p_open != NULL); + window->ClipRect = ImVec4(-FLT_MAX, -FLT_MAX, +FLT_MAX, +FLT_MAX); + window->IDStack.resize(1); + window->DrawList->_ResetForNewFrame(); + window->DC.CurrentTableIdx = -1; + + // Restore buffer capacity when woken from a compacted state, to avoid + if (window->MemoryCompacted) + GcAwakeTransientWindowBuffers(window); + + // Update stored window name when it changes (which can _only_ happen with the "###" operator, so the ID would stay unchanged). + // The title bar always display the 'name' parameter, so we only update the string storage if it needs to be visible to the end-user elsewhere. + bool window_title_visible_elsewhere = false; + if (g.NavWindowingListWindow != NULL && (window->Flags & ImGuiWindowFlags_NoNavFocus) == 0) // Window titles visible when using CTRL+TAB + window_title_visible_elsewhere = true; + if (window_title_visible_elsewhere && !window_just_created && strcmp(name, window->Name) != 0) + { + size_t buf_len = (size_t)window->NameBufLen; + window->Name = ImStrdupcpy(window->Name, &buf_len, name); + window->NameBufLen = (int)buf_len; + } + + // UPDATE CONTENTS SIZE, UPDATE HIDDEN STATUS + + // Update contents size from last frame for auto-fitting (or use explicit size) + CalcWindowContentSizes(window, &window->ContentSize, &window->ContentSizeIdeal); + if (window->HiddenFramesCanSkipItems > 0) + window->HiddenFramesCanSkipItems--; + if (window->HiddenFramesCannotSkipItems > 0) + window->HiddenFramesCannotSkipItems--; + if (window->HiddenFramesForRenderOnly > 0) + window->HiddenFramesForRenderOnly--; + + // Hide new windows for one frame until they calculate their size + if (window_just_created && (!window_size_x_set_by_api || !window_size_y_set_by_api)) + window->HiddenFramesCannotSkipItems = 1; + + // Hide popup/tooltip window when re-opening while we measure size (because we recycle the windows) + // We reset Size/ContentSize for reappearing popups/tooltips early in this function, so further code won't be tempted to use the old size. + if (window_just_activated_by_user && (flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) != 0) + { + window->HiddenFramesCannotSkipItems = 1; + if (flags & ImGuiWindowFlags_AlwaysAutoResize) + { + if (!window_size_x_set_by_api) + window->Size.x = window->SizeFull.x = 0.f; + if (!window_size_y_set_by_api) + window->Size.y = window->SizeFull.y = 0.f; + window->ContentSize = window->ContentSizeIdeal = ImVec2(0.f, 0.f); + } + } + + // SELECT VIEWPORT + // FIXME-VIEWPORT: In the docking/viewport branch, this is the point where we select the current viewport (which may affect the style) + + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)GetMainViewport(); + SetWindowViewport(window, viewport); + SetCurrentWindow(window); + + // LOCK BORDER SIZE AND PADDING FOR THE FRAME (so that altering them doesn't cause inconsistencies) + + if (flags & ImGuiWindowFlags_ChildWindow) + window->WindowBorderSize = style.ChildBorderSize; + else + window->WindowBorderSize = ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupBorderSize : style.WindowBorderSize; + window->WindowPadding = style.WindowPadding; + if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & (ImGuiWindowFlags_AlwaysUseWindowPadding | ImGuiWindowFlags_Popup)) && window->WindowBorderSize == 0.0f) + window->WindowPadding = ImVec2(0.0f, (flags & ImGuiWindowFlags_MenuBar) ? style.WindowPadding.y : 0.0f); + + // Lock menu offset so size calculation can use it as menu-bar windows need a minimum size. + window->DC.MenuBarOffset.x = ImMax(ImMax(window->WindowPadding.x, style.ItemSpacing.x), g.NextWindowData.MenuBarOffsetMinVal.x); + window->DC.MenuBarOffset.y = g.NextWindowData.MenuBarOffsetMinVal.y; + + bool use_current_size_for_scrollbar_x = window_just_created; + bool use_current_size_for_scrollbar_y = window_just_created; + + // Collapse window by double-clicking on title bar + // At this point we don't have a clipping rectangle setup yet, so we can use the title bar area for hit detection and drawing + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !(flags & ImGuiWindowFlags_NoCollapse)) + { + // We don't use a regular button+id to test for double-click on title bar (mostly due to legacy reason, could be fixed), so verify that we don't have items over the title bar. + ImRect title_bar_rect = window->TitleBarRect(); + if (g.HoveredWindow == window && g.HoveredId == 0 && g.HoveredIdPreviousFrame == 0 && IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max) && g.IO.MouseClickedCount[0] == 2) + window->WantCollapseToggle = true; + if (window->WantCollapseToggle) + { + window->Collapsed = !window->Collapsed; + if (!window->Collapsed) + use_current_size_for_scrollbar_y = true; + MarkIniSettingsDirty(window); + } + } + else + { + window->Collapsed = false; + } + window->WantCollapseToggle = false; + + // SIZE + + // Calculate auto-fit size, handle automatic resize + const ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, window->ContentSizeIdeal); + if ((flags & ImGuiWindowFlags_AlwaysAutoResize) && !window->Collapsed) + { + // Using SetNextWindowSize() overrides ImGuiWindowFlags_AlwaysAutoResize, so it can be used on tooltips/popups, etc. + if (!window_size_x_set_by_api) + { + window->SizeFull.x = size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api) + { + window->SizeFull.y = size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + } + else if (window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + { + // Auto-fit may only grow window during the first few frames + // We still process initial auto-fit on collapsed windows to get a window width, but otherwise don't honor ImGuiWindowFlags_AlwaysAutoResize when collapsed. + if (!window_size_x_set_by_api && window->AutoFitFramesX > 0) + { + window->SizeFull.x = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.x, size_auto_fit.x) : size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api && window->AutoFitFramesY > 0) + { + window->SizeFull.y = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.y, size_auto_fit.y) : size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + if (!window->Collapsed) + MarkIniSettingsDirty(window); + } + + // Apply minimum/maximum window size constraints and final size + window->SizeFull = CalcWindowSizeAfterConstraint(window, window->SizeFull); + window->Size = window->Collapsed && !(flags & ImGuiWindowFlags_ChildWindow) ? window->TitleBarRect().GetSize() : window->SizeFull; + + // Decoration size + const float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); + + // POSITION + + // Popup latch its initial position, will position itself when it appears next frame + if (window_just_activated_by_user) + { + window->AutoPosLastDirection = ImGuiDir_None; + if ((flags & ImGuiWindowFlags_Popup) != 0 && !(flags & ImGuiWindowFlags_Modal) && !window_pos_set_by_api) // FIXME: BeginPopup() could use SetNextWindowPos() + window->Pos = g.BeginPopupStack.back().OpenPopupPos; + } + + // Position child window + if (flags & ImGuiWindowFlags_ChildWindow) + { + IM_ASSERT(parent_window && parent_window->Active); + window->BeginOrderWithinParent = (short)parent_window->DC.ChildWindows.Size; + parent_window->DC.ChildWindows.push_back(window); + if (!(flags & ImGuiWindowFlags_Popup) && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = parent_window->DC.CursorPos; + } + + const bool window_pos_with_pivot = (window->SetWindowPosVal.x != FLT_MAX && window->HiddenFramesCannotSkipItems == 0); + if (window_pos_with_pivot) + SetWindowPos(window, window->SetWindowPosVal - window->Size * window->SetWindowPosPivot, 0); // Position given a pivot (e.g. for centering) + else if ((flags & ImGuiWindowFlags_ChildMenu) != 0) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Popup) != 0 && !window_pos_set_by_api && window_just_appearing_after_hidden_for_resize) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Tooltip) != 0 && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = FindBestWindowPosForPopup(window); + + // Calculate the range of allowed position for that window (to be movable and visible past safe area padding) + // When clamping to stay visible, we will enforce that window->Pos stays inside of visibility_rect. + ImRect viewport_rect(viewport->GetMainRect()); + ImRect viewport_work_rect(viewport->GetWorkRect()); + ImVec2 visibility_padding = ImMax(style.DisplayWindowPadding, style.DisplaySafeAreaPadding); + ImRect visibility_rect(viewport_work_rect.Min + visibility_padding, viewport_work_rect.Max - visibility_padding); + + // Clamp position/size so window stays visible within its viewport or monitor + // Ignore zero-sized display explicitly to avoid losing positions if a window manager reports zero-sized window when initializing or minimizing. + if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow)) + if (viewport_rect.GetWidth() > 0.0f && viewport_rect.GetHeight() > 0.0f) + ClampWindowPos(window, visibility_rect); + window->Pos = ImFloor(window->Pos); + + // Lock window rounding for the frame (so that altering them doesn't cause inconsistencies) + // Large values tend to lead to variety of artifacts and are not recommended. + window->WindowRounding = (flags & ImGuiWindowFlags_ChildWindow) ? style.ChildRounding : ((flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupRounding : style.WindowRounding; + + // For windows with title bar or menu bar, we clamp to FrameHeight(FontSize + FramePadding.y * 2.0f) to completely hide artifacts. + //if ((window->Flags & ImGuiWindowFlags_MenuBar) || !(window->Flags & ImGuiWindowFlags_NoTitleBar)) + // window->WindowRounding = ImMin(window->WindowRounding, g.FontSize + style.FramePadding.y * 2.0f); + + // Apply window focus (new and reactivated windows are moved to front) + bool want_focus = false; + if (window_just_activated_by_user && !(flags & ImGuiWindowFlags_NoFocusOnAppearing)) + { + if (flags & ImGuiWindowFlags_Popup) + want_focus = true; + else if ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Tooltip)) == 0) + want_focus = true; + + ImGuiWindow* modal = GetTopMostPopupModal(); + if (modal != NULL && !IsWindowWithinBeginStackOf(window, modal)) + { + // Avoid focusing a window that is created outside of active modal. This will prevent active modal from being closed. + // Since window is not focused it would reappear at the same display position like the last time it was visible. + // In case of completely new windows it would go to the top (over current modal), but input to such window would still be blocked by modal. + // Position window behind a modal that is not a begin-parent of this window. + want_focus = false; + if (window == window->RootWindow) + { + ImGuiWindow* blocking_modal = FindBlockingModal(window); + IM_ASSERT(blocking_modal != NULL); + BringWindowToDisplayBehind(window, blocking_modal); + } + } + } + + // [Test Engine] Register whole window in the item system +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (g.TestEngineHookItems) + { + IM_ASSERT(window->IDStack.Size == 1); + window->IDStack.Size = 0; // As window->IDStack[0] == window->ID here, make sure TestEngine doesn't erroneously see window as parent of itself. + IMGUI_TEST_ENGINE_ITEM_ADD(window->Rect(), window->ID); + IMGUI_TEST_ENGINE_ITEM_INFO(window->ID, window->Name, (g.HoveredWindow == window) ? ImGuiItemStatusFlags_HoveredRect : 0); + window->IDStack.Size = 1; + } +#endif + + // Handle manual resize: Resize Grips, Borders, Gamepad + int border_held = -1; + ImU32 resize_grip_col[4] = {}; + const int resize_grip_count = g.IO.ConfigWindowsResizeFromEdges ? 2 : 1; // Allow resize from lower-left if we have the mouse cursor feedback for it. + const float resize_grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.10f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + if (!window->Collapsed) + if (UpdateWindowManualResize(window, size_auto_fit, &border_held, resize_grip_count, &resize_grip_col[0], visibility_rect)) + use_current_size_for_scrollbar_x = use_current_size_for_scrollbar_y = true; + window->ResizeBorderHeld = (signed char)border_held; + + // SCROLLBAR VISIBILITY + + // Update scrollbar visibility (based on the Size that was effective during last frame or the auto-resized Size). + if (!window->Collapsed) + { + // When reading the current size we need to read it after size constraints have been applied. + // When we use InnerRect here we are intentionally reading last frame size, same for ScrollbarSizes values before we set them again. + ImVec2 avail_size_from_current_frame = ImVec2(window->SizeFull.x, window->SizeFull.y - decoration_up_height); + ImVec2 avail_size_from_last_frame = window->InnerRect.GetSize() + window->ScrollbarSizes; + ImVec2 needed_size_from_last_frame = window_just_created ? ImVec2(0, 0) : window->ContentSize + window->WindowPadding * 2.0f; + float size_x_for_scrollbars = use_current_size_for_scrollbar_x ? avail_size_from_current_frame.x : avail_size_from_last_frame.x; + float size_y_for_scrollbars = use_current_size_for_scrollbar_y ? avail_size_from_current_frame.y : avail_size_from_last_frame.y; + //bool scrollbar_y_from_last_frame = window->ScrollbarY; // FIXME: May want to use that in the ScrollbarX expression? How many pros vs cons? + window->ScrollbarY = (flags & ImGuiWindowFlags_AlwaysVerticalScrollbar) || ((needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar)); + window->ScrollbarX = (flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar) || ((needed_size_from_last_frame.x > size_x_for_scrollbars - (window->ScrollbarY ? style.ScrollbarSize : 0.0f)) && !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar)); + if (window->ScrollbarX && !window->ScrollbarY) + window->ScrollbarY = (needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar); + window->ScrollbarSizes = ImVec2(window->ScrollbarY ? style.ScrollbarSize : 0.0f, window->ScrollbarX ? style.ScrollbarSize : 0.0f); + } + + // UPDATE RECTANGLES (1- THOSE NOT AFFECTED BY SCROLLING) + // Update various regions. Variables they depend on should be set above in this function. + // We set this up after processing the resize grip so that our rectangles doesn't lag by a frame. + + // Outer rectangle + // Not affected by window border size. Used by: + // - FindHoveredWindow() (w/ extra padding when border resize is enabled) + // - Begin() initial clipping rect for drawing window background and borders. + // - Begin() clipping whole child + const ImRect host_rect = ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) ? parent_window->ClipRect : viewport_rect; + const ImRect outer_rect = window->Rect(); + const ImRect title_bar_rect = window->TitleBarRect(); + window->OuterRectClipped = outer_rect; + window->OuterRectClipped.ClipWith(host_rect); + + // Inner rectangle + // Not affected by window border size. Used by: + // - InnerClipRect + // - ScrollToRectEx() + // - NavUpdatePageUpPageDown() + // - Scrollbar() + window->InnerRect.Min.x = window->Pos.x; + window->InnerRect.Min.y = window->Pos.y + decoration_up_height; + window->InnerRect.Max.x = window->Pos.x + window->Size.x - window->ScrollbarSizes.x; + window->InnerRect.Max.y = window->Pos.y + window->Size.y - window->ScrollbarSizes.y; + + // Inner clipping rectangle. + // Will extend a little bit outside the normal work region. + // This is to allow e.g. Selectable or CollapsingHeader or some separators to cover that space. + // Force round operator last to ensure that e.g. (int)(max.x-min.x) in user's render code produce correct result. + // Note that if our window is collapsed we will end up with an inverted (~null) clipping rectangle which is the correct behavior. + // Affected by window/frame border size. Used by: + // - Begin() initial clip rect + float top_border_size = (((flags & ImGuiWindowFlags_MenuBar) || !(flags & ImGuiWindowFlags_NoTitleBar)) ? style.FrameBorderSize : window->WindowBorderSize); + window->InnerClipRect.Min.x = ImFloor(0.5f + window->InnerRect.Min.x + ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Min.y = ImFloor(0.5f + window->InnerRect.Min.y + top_border_size); + window->InnerClipRect.Max.x = ImFloor(0.5f + window->InnerRect.Max.x - ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Max.y = ImFloor(0.5f + window->InnerRect.Max.y - window->WindowBorderSize); + window->InnerClipRect.ClipWithFull(host_rect); + + // Default item width. Make it proportional to window size if window manually resizes + if (window->Size.x > 0.0f && !(flags & ImGuiWindowFlags_Tooltip) && !(flags & ImGuiWindowFlags_AlwaysAutoResize)) + window->ItemWidthDefault = ImFloor(window->Size.x * 0.65f); + else + window->ItemWidthDefault = ImFloor(g.FontSize * 16.0f); + + // SCROLLING + + // Lock down maximum scrolling + // The value of ScrollMax are ahead from ScrollbarX/ScrollbarY which is intentionally using InnerRect from previous rect in order to accommodate + // for right/bottom aligned items without creating a scrollbar. + window->ScrollMax.x = ImMax(0.0f, window->ContentSize.x + window->WindowPadding.x * 2.0f - window->InnerRect.GetWidth()); + window->ScrollMax.y = ImMax(0.0f, window->ContentSize.y + window->WindowPadding.y * 2.0f - window->InnerRect.GetHeight()); + + // Apply scrolling + window->Scroll = CalcNextScrollFromScrollTargetAndClamp(window); + window->ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + + // DRAWING + + // Setup draw list and outer clipping rectangle + IM_ASSERT(window->DrawList->CmdBuffer.Size == 1 && window->DrawList->CmdBuffer[0].ElemCount == 0); + window->DrawList->PushTextureID(g.Font->ContainerAtlas->TexID); + PushClipRect(host_rect.Min, host_rect.Max, false); + + // Child windows can render their decoration (bg color, border, scrollbars, etc.) within their parent to save a draw call (since 1.71) + // When using overlapping child windows, this will break the assumption that child z-order is mapped to submission order. + // FIXME: User code may rely on explicit sorting of overlapping child window and would need to disable this somehow. Please get in contact if you are affected (github #4493) + { + bool render_decorations_in_parent = false; + if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) + { + // - We test overlap with the previous child window only (testing all would end up being O(log N) not a good investment here) + // - We disable this when the parent window has zero vertices, which is a common pattern leading to laying out multiple overlapping childs + ImGuiWindow* previous_child = parent_window->DC.ChildWindows.Size >= 2 ? parent_window->DC.ChildWindows[parent_window->DC.ChildWindows.Size - 2] : NULL; + bool previous_child_overlapping = previous_child ? previous_child->Rect().Overlaps(window->Rect()) : false; + bool parent_is_empty = parent_window->DrawList->VtxBuffer.Size > 0; + if (window->DrawList->CmdBuffer.back().ElemCount == 0 && parent_is_empty && !previous_child_overlapping) + render_decorations_in_parent = true; + } + if (render_decorations_in_parent) + window->DrawList = parent_window->DrawList; + + // Handle title bar, scrollbar, resize grips and resize borders + const ImGuiWindow* window_to_highlight = g.NavWindowingTarget ? g.NavWindowingTarget : g.NavWindow; + const bool title_bar_is_highlight = want_focus || (window_to_highlight && window->RootWindowForTitleBarHighlight == window_to_highlight->RootWindowForTitleBarHighlight); + RenderWindowDecorations(window, title_bar_rect, title_bar_is_highlight, resize_grip_count, resize_grip_col, resize_grip_draw_size); + + if (render_decorations_in_parent) + window->DrawList = &window->DrawListInst; + } + + // UPDATE RECTANGLES (2- THOSE AFFECTED BY SCROLLING) + + // Work rectangle. + // Affected by window padding and border size. Used by: + // - Columns() for right-most edge + // - TreeNode(), CollapsingHeader() for right-most edge + // - BeginTabBar() for right-most edge + const bool allow_scrollbar_x = !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar); + const bool allow_scrollbar_y = !(flags & ImGuiWindowFlags_NoScrollbar); + const float work_rect_size_x = (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : ImMax(allow_scrollbar_x ? window->ContentSize.x : 0.0f, window->Size.x - window->WindowPadding.x * 2.0f - window->ScrollbarSizes.x)); + const float work_rect_size_y = (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : ImMax(allow_scrollbar_y ? window->ContentSize.y : 0.0f, window->Size.y - window->WindowPadding.y * 2.0f - decoration_up_height - window->ScrollbarSizes.y)); + window->WorkRect.Min.x = ImFloor(window->InnerRect.Min.x - window->Scroll.x + ImMax(window->WindowPadding.x, window->WindowBorderSize)); + window->WorkRect.Min.y = ImFloor(window->InnerRect.Min.y - window->Scroll.y + ImMax(window->WindowPadding.y, window->WindowBorderSize)); + window->WorkRect.Max.x = window->WorkRect.Min.x + work_rect_size_x; + window->WorkRect.Max.y = window->WorkRect.Min.y + work_rect_size_y; + window->ParentWorkRect = window->WorkRect; + + // [LEGACY] Content Region + // FIXME-OBSOLETE: window->ContentRegionRect.Max is currently very misleading / partly faulty, but some BeginChild() patterns relies on it. + // Used by: + // - Mouse wheel scrolling + many other things + window->ContentRegionRect.Min.x = window->Pos.x - window->Scroll.x + window->WindowPadding.x; + window->ContentRegionRect.Min.y = window->Pos.y - window->Scroll.y + window->WindowPadding.y + decoration_up_height; + window->ContentRegionRect.Max.x = window->ContentRegionRect.Min.x + (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : (window->Size.x - window->WindowPadding.x * 2.0f - window->ScrollbarSizes.x)); + window->ContentRegionRect.Max.y = window->ContentRegionRect.Min.y + (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : (window->Size.y - window->WindowPadding.y * 2.0f - decoration_up_height - window->ScrollbarSizes.y)); + + // Setup drawing context + // (NB: That term "drawing context / DC" lost its meaning a long time ago. Initially was meant to hold transient data only. Nowadays difference between window-> and window->DC-> is dubious.) + window->DC.Indent.x = 0.0f + window->WindowPadding.x - window->Scroll.x; + window->DC.GroupOffset.x = 0.0f; + window->DC.ColumnsOffset.x = 0.0f; + + // Record the loss of precision of CursorStartPos which can happen due to really large scrolling amount. + // This is used by clipper to compensate and fix the most common use case of large scroll area. Easy and cheap, next best thing compared to switching everything to double or ImU64. + double start_pos_highp_x = (double)window->Pos.x + window->WindowPadding.x - (double)window->Scroll.x + window->DC.ColumnsOffset.x; + double start_pos_highp_y = (double)window->Pos.y + window->WindowPadding.y - (double)window->Scroll.y + decoration_up_height; + window->DC.CursorStartPos = ImVec2((float)start_pos_highp_x, (float)start_pos_highp_y); + window->DC.CursorStartPosLossyness = ImVec2((float)(start_pos_highp_x - window->DC.CursorStartPos.x), (float)(start_pos_highp_y - window->DC.CursorStartPos.y)); + window->DC.CursorPos = window->DC.CursorStartPos; + window->DC.CursorPosPrevLine = window->DC.CursorPos; + window->DC.CursorMaxPos = window->DC.CursorStartPos; + window->DC.IdealMaxPos = window->DC.CursorStartPos; + window->DC.CurrLineSize = window->DC.PrevLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.NavLayersActiveMask = window->DC.NavLayersActiveMaskNext; + window->DC.NavLayersActiveMaskNext = 0x00; + window->DC.NavHideHighlightOneFrame = false; + window->DC.NavHasScroll = (window->ScrollMax.y > 0.0f); + + window->DC.MenuBarAppending = false; + window->DC.MenuColumns.Update(style.ItemSpacing.x, window_just_activated_by_user); + window->DC.TreeDepth = 0; + window->DC.TreeJumpToParentOnPopMask = 0x00; + window->DC.ChildWindows.resize(0); + window->DC.StateStorage = &window->StateStorage; + window->DC.CurrentColumns = NULL; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.ParentLayoutType = parent_window ? parent_window->DC.LayoutType : ImGuiLayoutType_Vertical; + + window->DC.ItemWidth = window->ItemWidthDefault; + window->DC.TextWrapPos = -1.0f; // disabled + window->DC.ItemWidthStack.resize(0); + window->DC.TextWrapPosStack.resize(0); + + if (window->AutoFitFramesX > 0) + window->AutoFitFramesX--; + if (window->AutoFitFramesY > 0) + window->AutoFitFramesY--; + + // Apply focus (we need to call FocusWindow() AFTER setting DC.CursorStartPos so our initial navigation reference rectangle can start around there) + if (want_focus) + { + FocusWindow(window); + NavInitWindow(window, false); // <-- this is in the way for us to be able to defer and sort reappearing FocusWindow() calls + } + + // Title bar + if (!(flags & ImGuiWindowFlags_NoTitleBar)) + RenderWindowTitleBarContents(window, ImRect(title_bar_rect.Min.x + window->WindowBorderSize, title_bar_rect.Min.y, title_bar_rect.Max.x - window->WindowBorderSize, title_bar_rect.Max.y), name, p_open); + + // Clear hit test shape every frame + window->HitTestHoleSize.x = window->HitTestHoleSize.y = 0; + + // Pressing CTRL+C while holding on a window copy its content to the clipboard + // This works but 1. doesn't handle multiple Begin/End pairs, 2. recursing into another Begin/End pair - so we need to work that out and add better logging scope. + // Maybe we can support CTRL+C on every element? + /* + //if (g.NavWindow == window && g.ActiveId == 0) + if (g.ActiveId == window->MoveId) + if (g.IO.KeyCtrl && IsKeyPressed(ImGuiKey_C)) + LogToClipboard(); + */ + + // We fill last item data based on Title Bar/Tab, in order for IsItemHovered() and IsItemActive() to be usable after Begin(). + // This is useful to allow creating context menus on title bar only, etc. + SetLastItemData(window->MoveId, g.CurrentItemFlags, IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max, false) ? ImGuiItemStatusFlags_HoveredRect : 0, title_bar_rect); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (g.DebugLocateId != 0 && (window->ID == g.DebugLocateId || window->MoveId == g.DebugLocateId)) + DebugLocateItemResolveWithLastItem(); +#endif + + // [Test Engine] Register title bar / tab +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (!(window->Flags & ImGuiWindowFlags_NoTitleBar)) + IMGUI_TEST_ENGINE_ITEM_ADD(g.LastItemData.Rect, g.LastItemData.ID); +#endif + } + else + { + // Append + SetCurrentWindow(window); + } + + PushClipRect(window->InnerClipRect.Min, window->InnerClipRect.Max, true); + + // Clear 'accessed' flag last thing (After PushClipRect which will set the flag. We want the flag to stay false when the default "Debug" window is unused) + window->WriteAccessed = false; + window->BeginCount++; + g.NextWindowData.ClearFlags(); + + // Update visibility + if (first_begin_of_the_frame) + { + if (flags & ImGuiWindowFlags_ChildWindow) + { + // Child window can be out of sight and have "negative" clip windows. + // Mark them as collapsed so commands are skipped earlier (we can't manually collapse them because they have no title bar). + IM_ASSERT((flags & ImGuiWindowFlags_NoTitleBar) != 0); + if (!(flags & ImGuiWindowFlags_AlwaysAutoResize) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) // FIXME: Doesn't make sense for ChildWindow?? + { + const bool nav_request = (flags & ImGuiWindowFlags_NavFlattened) && (g.NavAnyRequest && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (!g.LogEnabled && !nav_request) + if (window->OuterRectClipped.Min.x >= window->OuterRectClipped.Max.x || window->OuterRectClipped.Min.y >= window->OuterRectClipped.Max.y) + window->HiddenFramesCanSkipItems = 1; + } + + // Hide along with parent or if parent is collapsed + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCanSkipItems > 0)) + window->HiddenFramesCanSkipItems = 1; + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCannotSkipItems > 0)) + window->HiddenFramesCannotSkipItems = 1; + } + + // Don't render if style alpha is 0.0 at the time of Begin(). This is arbitrary and inconsistent but has been there for a long while (may remove at some point) + if (style.Alpha <= 0.0f) + window->HiddenFramesCanSkipItems = 1; + + // Update the Hidden flag + bool hidden_regular = (window->HiddenFramesCanSkipItems > 0) || (window->HiddenFramesCannotSkipItems > 0); + window->Hidden = hidden_regular || (window->HiddenFramesForRenderOnly > 0); + + // Disable inputs for requested number of frames + if (window->DisableInputsFrames > 0) + { + window->DisableInputsFrames--; + window->Flags |= ImGuiWindowFlags_NoInputs; + } + + // Update the SkipItems flag, used to early out of all items functions (no layout required) + bool skip_items = false; + if (window->Collapsed || !window->Active || hidden_regular) + if (window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0 && window->HiddenFramesCannotSkipItems <= 0) + skip_items = true; + window->SkipItems = skip_items; + } + + return !window->SkipItems; +} + +void ImGui::End() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Error checking: verify that user hasn't called End() too many times! + if (g.CurrentWindowStack.Size <= 1 && g.WithinFrameScopeWithImplicitWindow) + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size > 1, "Calling End() too many times!"); + return; + } + IM_ASSERT(g.CurrentWindowStack.Size > 0); + + // Error checking: verify that user doesn't directly call End() on a child window. + if (window->Flags & ImGuiWindowFlags_ChildWindow) + IM_ASSERT_USER_ERROR(g.WithinEndChild, "Must call EndChild() and not End()!"); + + // Close anything that is open + if (window->DC.CurrentColumns) + EndColumns(); + PopClipRect(); // Inner window clip rectangle + PopFocusScope(); + + // Stop logging + if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) // FIXME: add more options for scope of logging + LogFinish(); + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + // Pop from window stack + g.LastItemData = g.CurrentWindowStack.back().ParentLastItemDataBackup; + if (window->Flags & ImGuiWindowFlags_ChildMenu) + g.BeginMenuCount--; + if (window->Flags & ImGuiWindowFlags_Popup) + g.BeginPopupStack.pop_back(); + g.CurrentWindowStack.back().StackSizesOnBegin.CompareWithCurrentState(); + g.CurrentWindowStack.pop_back(); + SetCurrentWindow(g.CurrentWindowStack.Size == 0 ? NULL : g.CurrentWindowStack.back().Window); +} + +void ImGui::BringWindowToFocusFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(window == window->RootWindow); + + const int cur_order = window->FocusOrder; + IM_ASSERT(g.WindowsFocusOrder[cur_order] == window); + if (g.WindowsFocusOrder.back() == window) + return; + + const int new_order = g.WindowsFocusOrder.Size - 1; + for (int n = cur_order; n < new_order; n++) + { + g.WindowsFocusOrder[n] = g.WindowsFocusOrder[n + 1]; + g.WindowsFocusOrder[n]->FocusOrder--; + IM_ASSERT(g.WindowsFocusOrder[n]->FocusOrder == n); + } + g.WindowsFocusOrder[new_order] = window; + window->FocusOrder = (short)new_order; +} + +void ImGui::BringWindowToDisplayFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* current_front_window = g.Windows.back(); + if (current_front_window == window || current_front_window->RootWindow == window) // Cheap early out (could be better) + return; + for (int i = g.Windows.Size - 2; i >= 0; i--) // We can ignore the top-most window + if (g.Windows[i] == window) + { + memmove(&g.Windows[i], &g.Windows[i + 1], (size_t)(g.Windows.Size - i - 1) * sizeof(ImGuiWindow*)); + g.Windows[g.Windows.Size - 1] = window; + break; + } +} + +void ImGui::BringWindowToDisplayBack(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.Windows[0] == window) + return; + for (int i = 0; i < g.Windows.Size; i++) + if (g.Windows[i] == window) + { + memmove(&g.Windows[1], &g.Windows[0], (size_t)i * sizeof(ImGuiWindow*)); + g.Windows[0] = window; + break; + } +} + +void ImGui::BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* behind_window) +{ + IM_ASSERT(window != NULL && behind_window != NULL); + ImGuiContext& g = *GImGui; + window = window->RootWindow; + behind_window = behind_window->RootWindow; + int pos_wnd = FindWindowDisplayIndex(window); + int pos_beh = FindWindowDisplayIndex(behind_window); + if (pos_wnd < pos_beh) + { + size_t copy_bytes = (pos_beh - pos_wnd - 1) * sizeof(ImGuiWindow*); + memmove(&g.Windows.Data[pos_wnd], &g.Windows.Data[pos_wnd + 1], copy_bytes); + g.Windows[pos_beh - 1] = window; + } + else + { + size_t copy_bytes = (pos_wnd - pos_beh) * sizeof(ImGuiWindow*); + memmove(&g.Windows.Data[pos_beh + 1], &g.Windows.Data[pos_beh], copy_bytes); + g.Windows[pos_beh] = window; + } +} + +int ImGui::FindWindowDisplayIndex(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + return g.Windows.index_from_ptr(g.Windows.find(window)); +} + +// Moving window to front of display and set focus (which happens to be back of our sorted list) +void ImGui::FocusWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + if (g.NavWindow != window) + { + SetNavWindow(window); + if (window && g.NavDisableMouseHover) + g.NavMousePosDirty = true; + g.NavId = window ? window->NavLastIds[0] : 0; // Restore NavId + g.NavLayer = ImGuiNavLayer_Main; + g.NavFocusScopeId = window ? window->NavRootFocusScopeId : 0; + g.NavIdIsAlive = false; + + // Close popups if any + ClosePopupsOverWindow(window, false); + } + + // Move the root window to the top of the pile + IM_ASSERT(window == NULL || window->RootWindow != NULL); + ImGuiWindow* focus_front_window = window ? window->RootWindow : NULL; // NB: In docking branch this is window->RootWindowDockStop + ImGuiWindow* display_front_window = window ? window->RootWindow : NULL; + + // Steal active widgets. Some of the cases it triggers includes: + // - Focus a window while an InputText in another window is active, if focus happens before the old InputText can run. + // - When using Nav to activate menu items (due to timing of activating on press->new window appears->losing ActiveId) + if (g.ActiveId != 0 && g.ActiveIdWindow && g.ActiveIdWindow->RootWindow != focus_front_window) + if (!g.ActiveIdNoClearOnFocusLoss) + ClearActiveID(); + + // Passing NULL allow to disable keyboard focus + if (!window) + return; + + // Bring to front + BringWindowToFocusFront(focus_front_window); + if (((window->Flags | display_front_window->Flags) & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0) + BringWindowToDisplayFront(display_front_window); +} + +void ImGui::FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window) +{ + ImGuiContext& g = *GImGui; + int start_idx = g.WindowsFocusOrder.Size - 1; + if (under_this_window != NULL) + { + // Aim at root window behind us, if we are in a child window that's our own root (see #4640) + int offset = -1; + while (under_this_window->Flags & ImGuiWindowFlags_ChildWindow) + { + under_this_window = under_this_window->ParentWindow; + offset = 0; + } + start_idx = FindWindowFocusIndex(under_this_window) + offset; + } + for (int i = start_idx; i >= 0; i--) + { + // We may later decide to test for different NoXXXInputs based on the active navigation input (mouse vs nav) but that may feel more confusing to the user. + ImGuiWindow* window = g.WindowsFocusOrder[i]; + IM_ASSERT(window == window->RootWindow); + if (window != ignore_window && window->WasActive) + if ((window->Flags & (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) != (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) + { + ImGuiWindow* focus_window = NavRestoreLastChildNavWindow(window); + FocusWindow(focus_window); + return; + } + } + FocusWindow(NULL); +} + +// Important: this alone doesn't alter current ImDrawList state. This is called by PushFont/PopFont only. +void ImGui::SetCurrentFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(font && font->IsLoaded()); // Font Atlas not created. Did you call io.Fonts->GetTexDataAsRGBA32 / GetTexDataAsAlpha8 ? + IM_ASSERT(font->Scale > 0.0f); + g.Font = font; + g.FontBaseSize = ImMax(1.0f, g.IO.FontGlobalScale * g.Font->FontSize * g.Font->Scale); + g.FontSize = g.CurrentWindow ? g.CurrentWindow->CalcFontSize() : 0.0f; + + ImFontAtlas* atlas = g.Font->ContainerAtlas; + g.DrawListSharedData.TexUvWhitePixel = atlas->TexUvWhitePixel; + g.DrawListSharedData.TexUvLines = atlas->TexUvLines; + g.DrawListSharedData.Font = g.Font; + g.DrawListSharedData.FontSize = g.FontSize; +} + +void ImGui::PushFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + if (!font) + font = GetDefaultFont(); + SetCurrentFont(font); + g.FontStack.push_back(font); + g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID); +} + +void ImGui::PopFont() +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow->DrawList->PopTextureID(); + g.FontStack.pop_back(); + SetCurrentFont(g.FontStack.empty() ? GetDefaultFont() : g.FontStack.back()); +} + +void ImGui::PushItemFlag(ImGuiItemFlags option, bool enabled) +{ + ImGuiContext& g = *GImGui; + ImGuiItemFlags item_flags = g.CurrentItemFlags; + IM_ASSERT(item_flags == g.ItemFlagsStack.back()); + if (enabled) + item_flags |= option; + else + item_flags &= ~option; + g.CurrentItemFlags = item_flags; + g.ItemFlagsStack.push_back(item_flags); +} + +void ImGui::PopItemFlag() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ItemFlagsStack.Size > 1); // Too many calls to PopItemFlag() - we always leave a 0 at the bottom of the stack. + g.ItemFlagsStack.pop_back(); + g.CurrentItemFlags = g.ItemFlagsStack.back(); +} + +// BeginDisabled()/EndDisabled() +// - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) +// - Visually this is currently altering alpha, but it is expected that in a future styling system this would work differently. +// - Feedback welcome at https://github.com/ocornut/imgui/issues/211 +// - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it. +// - Optimized shortcuts instead of PushStyleVar() + PushItemFlag() +void ImGui::BeginDisabled(bool disabled) +{ + ImGuiContext& g = *GImGui; + bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + if (!was_disabled && disabled) + { + g.DisabledAlphaBackup = g.Style.Alpha; + g.Style.Alpha *= g.Style.DisabledAlpha; // PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * g.Style.DisabledAlpha); + } + if (was_disabled || disabled) + g.CurrentItemFlags |= ImGuiItemFlags_Disabled; + g.ItemFlagsStack.push_back(g.CurrentItemFlags); + g.DisabledStackSize++; +} + +void ImGui::EndDisabled() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DisabledStackSize > 0); + g.DisabledStackSize--; + bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + //PopItemFlag(); + g.ItemFlagsStack.pop_back(); + g.CurrentItemFlags = g.ItemFlagsStack.back(); + if (was_disabled && (g.CurrentItemFlags & ImGuiItemFlags_Disabled) == 0) + g.Style.Alpha = g.DisabledAlphaBackup; //PopStyleVar(); +} + +// FIXME: Look into renaming this once we have settled the new Focus/Activation/TabStop system. +void ImGui::PushAllowKeyboardFocus(bool allow_keyboard_focus) +{ + PushItemFlag(ImGuiItemFlags_NoTabStop, !allow_keyboard_focus); +} + +void ImGui::PopAllowKeyboardFocus() +{ + PopItemFlag(); +} + +void ImGui::PushButtonRepeat(bool repeat) +{ + PushItemFlag(ImGuiItemFlags_ButtonRepeat, repeat); +} + +void ImGui::PopButtonRepeat() +{ + PopItemFlag(); +} + +void ImGui::PushTextWrapPos(float wrap_pos_x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPosStack.push_back(window->DC.TextWrapPos); + window->DC.TextWrapPos = wrap_pos_x; +} + +void ImGui::PopTextWrapPos() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPos = window->DC.TextWrapPosStack.back(); + window->DC.TextWrapPosStack.pop_back(); +} + +static ImGuiWindow* GetCombinedRootWindow(ImGuiWindow* window, bool popup_hierarchy) +{ + ImGuiWindow* last_window = NULL; + while (last_window != window) + { + last_window = window; + window = window->RootWindow; + if (popup_hierarchy) + window = window->RootWindowPopupTree; + } + return window; +} + +bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy) +{ + ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy); + if (window_root == potential_parent) + return true; + while (window != NULL) + { + if (window == potential_parent) + return true; + if (window == window_root) // end of chain + return false; + window = window->ParentWindow; + } + return false; +} + +bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent) +{ + if (window->RootWindow == potential_parent) + return true; + while (window != NULL) + { + if (window == potential_parent) + return true; + window = window->ParentWindowInBeginStack; + } + return false; +} + +bool ImGui::IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below) +{ + ImGuiContext& g = *GImGui; + + // It would be saner to ensure that display layer is always reflected in the g.Windows[] order, which would likely requires altering all manipulations of that array + const int display_layer_delta = GetWindowDisplayLayer(potential_above) - GetWindowDisplayLayer(potential_below); + if (display_layer_delta != 0) + return display_layer_delta > 0; + + for (int i = g.Windows.Size - 1; i >= 0; i--) + { + ImGuiWindow* candidate_window = g.Windows[i]; + if (candidate_window == potential_above) + return true; + if (candidate_window == potential_below) + return false; + } + return false; +} + +bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags) +{ + IM_ASSERT((flags & (ImGuiHoveredFlags_AllowWhenOverlapped | ImGuiHoveredFlags_AllowWhenDisabled)) == 0); // Flags not supported by this function + ImGuiContext& g = *GImGui; + ImGuiWindow* ref_window = g.HoveredWindow; + ImGuiWindow* cur_window = g.CurrentWindow; + if (ref_window == NULL) + return false; + + if ((flags & ImGuiHoveredFlags_AnyWindow) == 0) + { + IM_ASSERT(cur_window); // Not inside a Begin()/End() + const bool popup_hierarchy = (flags & ImGuiHoveredFlags_NoPopupHierarchy) == 0; + if (flags & ImGuiHoveredFlags_RootWindow) + cur_window = GetCombinedRootWindow(cur_window, popup_hierarchy); + + bool result; + if (flags & ImGuiHoveredFlags_ChildWindows) + result = IsWindowChildOf(ref_window, cur_window, popup_hierarchy); + else + result = (ref_window == cur_window); + if (!result) + return false; + } + + if (!IsWindowContentHoverable(ref_window, flags)) + return false; + if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap && g.ActiveId != ref_window->MoveId) + return false; + return true; +} + +bool ImGui::IsWindowFocused(ImGuiFocusedFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* ref_window = g.NavWindow; + ImGuiWindow* cur_window = g.CurrentWindow; + + if (ref_window == NULL) + return false; + if (flags & ImGuiFocusedFlags_AnyWindow) + return true; + + IM_ASSERT(cur_window); // Not inside a Begin()/End() + const bool popup_hierarchy = (flags & ImGuiFocusedFlags_NoPopupHierarchy) == 0; + if (flags & ImGuiHoveredFlags_RootWindow) + cur_window = GetCombinedRootWindow(cur_window, popup_hierarchy); + + if (flags & ImGuiHoveredFlags_ChildWindows) + return IsWindowChildOf(ref_window, cur_window, popup_hierarchy); + else + return (ref_window == cur_window); +} + +// Can we focus this window with CTRL+TAB (or PadMenu + PadFocusPrev/PadFocusNext) +// Note that NoNavFocus makes the window not reachable with CTRL+TAB but it can still be focused with mouse or programmatically. +// If you want a window to never be focused, you may use the e.g. NoInputs flag. +bool ImGui::IsWindowNavFocusable(ImGuiWindow* window) +{ + return window->WasActive && window == window->RootWindow && !(window->Flags & ImGuiWindowFlags_NoNavFocus); +} + +float ImGui::GetWindowWidth() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.x; +} + +float ImGui::GetWindowHeight() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.y; +} + +ImVec2 ImGui::GetWindowPos() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + return window->Pos; +} + +void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowPosAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + window->SetWindowPosVal = ImVec2(FLT_MAX, FLT_MAX); + + // Set + const ImVec2 old_pos = window->Pos; + window->Pos = ImFloor(pos); + ImVec2 offset = window->Pos - old_pos; + if (offset.x == 0.0f && offset.y == 0.0f) + return; + MarkIniSettingsDirty(window); + window->DC.CursorPos += offset; // As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor + window->DC.CursorMaxPos += offset; // And more importantly we need to offset CursorMaxPos/CursorStartPos this so ContentSize calculation doesn't get affected. + window->DC.IdealMaxPos += offset; + window->DC.CursorStartPos += offset; +} + +void ImGui::SetWindowPos(const ImVec2& pos, ImGuiCond cond) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + SetWindowPos(window, pos, cond); +} + +void ImGui::SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowPos(window, pos, cond); +} + +ImVec2 ImGui::GetWindowSize() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Size; +} + +void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowSizeAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowSizeAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + ImVec2 old_size = window->SizeFull; + window->AutoFitFramesX = (size.x <= 0.0f) ? 2 : 0; + window->AutoFitFramesY = (size.y <= 0.0f) ? 2 : 0; + if (size.x <= 0.0f) + window->AutoFitOnlyGrows = false; + else + window->SizeFull.x = IM_FLOOR(size.x); + if (size.y <= 0.0f) + window->AutoFitOnlyGrows = false; + else + window->SizeFull.y = IM_FLOOR(size.y); + if (old_size.x != window->SizeFull.x || old_size.y != window->SizeFull.y) + MarkIniSettingsDirty(window); +} + +void ImGui::SetWindowSize(const ImVec2& size, ImGuiCond cond) +{ + SetWindowSize(GImGui->CurrentWindow, size, cond); +} + +void ImGui::SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowSize(window, size, cond); +} + +void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0) + return; + window->SetWindowCollapsedAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + window->Collapsed = collapsed; +} + +void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size) +{ + IM_ASSERT(window->HitTestHoleSize.x == 0); // We don't support multiple holes/hit test filters + window->HitTestHoleSize = ImVec2ih(size); + window->HitTestHoleOffset = ImVec2ih(pos - window->Pos); +} + +void ImGui::SetWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + SetWindowCollapsed(GImGui->CurrentWindow, collapsed, cond); +} + +bool ImGui::IsWindowCollapsed() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Collapsed; +} + +bool ImGui::IsWindowAppearing() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Appearing; +} + +void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowCollapsed(window, collapsed, cond); +} + +void ImGui::SetWindowFocus() +{ + FocusWindow(GImGui->CurrentWindow); +} + +void ImGui::SetWindowFocus(const char* name) +{ + if (name) + { + if (ImGuiWindow* window = FindWindowByName(name)) + FocusWindow(window); + } + else + { + FocusWindow(NULL); + } +} + +void ImGui::SetNextWindowPos(const ImVec2& pos, ImGuiCond cond, const ImVec2& pivot) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasPos; + g.NextWindowData.PosVal = pos; + g.NextWindowData.PosPivotVal = pivot; + g.NextWindowData.PosCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSize; + g.NextWindowData.SizeVal = size; + g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback, void* custom_callback_user_data) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSizeConstraint; + g.NextWindowData.SizeConstraintRect = ImRect(size_min, size_max); + g.NextWindowData.SizeCallback = custom_callback; + g.NextWindowData.SizeCallbackUserData = custom_callback_user_data; +} + +// Content size = inner scrollable rectangle, padded with WindowPadding. +// SetNextWindowContentSize(ImVec2(100,100) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item. +void ImGui::SetNextWindowContentSize(const ImVec2& size) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasContentSize; + g.NextWindowData.ContentSizeVal = ImFloor(size); +} + +void ImGui::SetNextWindowScroll(const ImVec2& scroll) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasScroll; + g.NextWindowData.ScrollVal = scroll; +} + +void ImGui::SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasCollapsed; + g.NextWindowData.CollapsedVal = collapsed; + g.NextWindowData.CollapsedCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowFocus() +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasFocus; +} + +void ImGui::SetNextWindowBgAlpha(float alpha) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasBgAlpha; + g.NextWindowData.BgAlphaVal = alpha; +} + +ImDrawList* ImGui::GetWindowDrawList() +{ + ImGuiWindow* window = GetCurrentWindow(); + return window->DrawList; +} + +ImFont* ImGui::GetFont() +{ + return GImGui->Font; +} + +float ImGui::GetFontSize() +{ + return GImGui->FontSize; +} + +ImVec2 ImGui::GetFontTexUvWhitePixel() +{ + return GImGui->DrawListSharedData.TexUvWhitePixel; +} + +void ImGui::SetWindowFontScale(float scale) +{ + IM_ASSERT(scale > 0.0f); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->FontWindowScale = scale; + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); +} + +void ImGui::ActivateItem(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.NavNextActivateId = id; + g.NavNextActivateFlags = ImGuiActivateFlags_None; +} + +void ImGui::PushFocusScope(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.FocusScopeStack.push_back(id); + g.CurrentFocusScopeId = id; +} + +void ImGui::PopFocusScope() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.FocusScopeStack.Size > 0); // Too many PopFocusScope() ? + g.FocusScopeStack.pop_back(); + g.CurrentFocusScopeId = g.FocusScopeStack.Size ? g.FocusScopeStack.back() : 0; +} + +// Note: this will likely be called ActivateItem() once we rework our Focus/Activation system! +void ImGui::SetKeyboardFocusHere(int offset) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(offset >= -1); // -1 is allowed but not below + IMGUI_DEBUG_LOG_ACTIVEID("SetKeyboardFocusHere(%d) in window \"%s\"\n", offset, window->Name); + + // It makes sense in the vast majority of cases to never interrupt a drag and drop. + // When we refactor this function into ActivateItem() we may want to make this an option. + // MovingWindow is protected from most user inputs using SetActiveIdUsingNavAndKeys(), but + // is also automatically dropped in the event g.ActiveId is stolen. + if (g.DragDropActive || g.MovingWindow != NULL) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetKeyboardFocusHere() ignored while DragDropActive!\n"); + return; + } + + SetNavWindow(window); + + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + NavMoveRequestSubmit(ImGuiDir_None, offset < 0 ? ImGuiDir_Up : ImGuiDir_Down, ImGuiNavMoveFlags_Tabbing | ImGuiNavMoveFlags_FocusApi, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. + if (offset == -1) + { + NavMoveRequestResolveWithLastItem(&g.NavMoveResultLocal); + } + else + { + g.NavTabbingDir = 1; + g.NavTabbingCounter = offset + 1; + } +} + +void ImGui::SetItemDefaultFocus() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!window->Appearing) + return; + if (g.NavWindow != window->RootWindowForNav || (!g.NavInitRequest && g.NavInitResultId == 0) || g.NavLayer != window->DC.NavLayerCurrent) + return; + + g.NavInitRequest = false; + g.NavInitResultId = g.LastItemData.ID; + g.NavInitResultRectRel = WindowRectAbsToRel(window, g.LastItemData.Rect); + NavUpdateAnyRequestFlag(); + + // Scroll could be done in NavInitRequestApplyResult() via an opt-in flag (we however don't want regular init requests to scroll) + if (!IsItemVisible()) + ScrollToRectEx(window, g.LastItemData.Rect, ImGuiScrollFlags_None); +} + +void ImGui::SetStateStorage(ImGuiStorage* tree) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + window->DC.StateStorage = tree ? tree : &window->StateStorage; +} + +ImGuiStorage* ImGui::GetStateStorage() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->DC.StateStorage; +} + +void ImGui::PushID(const char* str_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id_begin, str_id_end); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const void* ptr_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(ptr_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(int int_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(int_id); + window->IDStack.push_back(id); +} + +// Push a given id value ignoring the ID stack as a seed. +void ImGui::PushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_ID, NULL, NULL); + window->IDStack.push_back(id); +} + +// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call +// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level. +// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more) +ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed) +{ + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); + return id; +} + +void ImGui::PopID() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + IM_ASSERT(window->IDStack.Size > 1); // Too many PopID(), or could be popping in a wrong/different window? + window->IDStack.pop_back(); +} + +ImGuiID ImGui::GetID(const char* str_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id); +} + +ImGuiID ImGui::GetID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id_begin, str_id_end); +} + +ImGuiID ImGui::GetID(const void* ptr_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(ptr_id); +} + +bool ImGui::IsRectVisible(const ImVec2& size) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + size)); +} + +bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(rect_min, rect_max)); +} + + +//----------------------------------------------------------------------------- +// [SECTION] INPUTS +//----------------------------------------------------------------------------- + +// Test if mouse cursor is hovering given rectangle +// NB- Rectangle is clipped by our current clip setting +// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) +bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) +{ + ImGuiContext& g = *GImGui; + + // Clip + ImRect rect_clipped(r_min, r_max); + if (clip) + rect_clipped.ClipWith(g.CurrentWindow->ClipRect); + + // Expand for touch input + const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding); + if (!rect_for_touch.Contains(g.IO.MousePos)) + return false; + return true; +} + +ImGuiKeyData* ImGui::GetKeyData(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + + // Special storage location for mods + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(key); + + int index; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT(key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_NamedKey_END); + if (IsLegacyKey(key)) + index = (g.IO.KeyMap[key] != -1) ? g.IO.KeyMap[key] : key; // Remap native->imgui or imgui->native + else + index = key; +#else + IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code."); + index = key - ImGuiKey_NamedKey_BEGIN; +#endif + return &g.IO.KeysData[index]; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +ImGuiKey ImGui::GetKeyIndex(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(IsNamedKey(key)); + const ImGuiKeyData* key_data = GetKeyData(key); + return (ImGuiKey)(key_data - g.IO.KeysData); +} +#endif + +// Those names a provided for debugging purpose and are not meant to be saved persistently not compared. +static const char* const GKeyNames[] = +{ + "Tab", "LeftArrow", "RightArrow", "UpArrow", "DownArrow", "PageUp", "PageDown", + "Home", "End", "Insert", "Delete", "Backspace", "Space", "Enter", "Escape", + "LeftCtrl", "LeftShift", "LeftAlt", "LeftSuper", "RightCtrl", "RightShift", "RightAlt", "RightSuper", "Menu", + "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", + "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", + "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", + "Apostrophe", "Comma", "Minus", "Period", "Slash", "Semicolon", "Equal", "LeftBracket", + "Backslash", "RightBracket", "GraveAccent", "CapsLock", "ScrollLock", "NumLock", "PrintScreen", + "Pause", "Keypad0", "Keypad1", "Keypad2", "Keypad3", "Keypad4", "Keypad5", "Keypad6", + "Keypad7", "Keypad8", "Keypad9", "KeypadDecimal", "KeypadDivide", "KeypadMultiply", + "KeypadSubtract", "KeypadAdd", "KeypadEnter", "KeypadEqual", + "GamepadStart", "GamepadBack", + "GamepadFaceLeft", "GamepadFaceRight", "GamepadFaceUp", "GamepadFaceDown", + "GamepadDpadLeft", "GamepadDpadRight", "GamepadDpadUp", "GamepadDpadDown", + "GamepadL1", "GamepadR1", "GamepadL2", "GamepadR2", "GamepadL3", "GamepadR3", + "GamepadLStickLeft", "GamepadLStickRight", "GamepadLStickUp", "GamepadLStickDown", + "GamepadRStickLeft", "GamepadRStickRight", "GamepadRStickUp", "GamepadRStickDown", + "MouseLeft", "MouseRight", "MouseMiddle", "MouseX1", "MouseX2", "MouseWheelX", "MouseWheelY", + "ModCtrl", "ModShift", "ModAlt", "ModSuper", // ReservedForModXXX are showing the ModXXX names. +}; +IM_STATIC_ASSERT(ImGuiKey_NamedKey_COUNT == IM_ARRAYSIZE(GKeyNames)); + +const char* ImGui::GetKeyName(ImGuiKey key) +{ +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((IsNamedKey(key) || key == ImGuiKey_None) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend and user code."); +#else + if (IsLegacyKey(key)) + { + ImGuiIO& io = GetIO(); + if (io.KeyMap[key] == -1) + return "N/A"; + IM_ASSERT(IsNamedKey((ImGuiKey)io.KeyMap[key])); + key = (ImGuiKey)io.KeyMap[key]; + } +#endif + if (key == ImGuiKey_None) + return "None"; + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(key); + if (!IsNamedKey(key)) + return "Unknown"; + + return GKeyNames[key - ImGuiKey_NamedKey_BEGIN]; +} + +void ImGui::GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size) +{ + ImGuiContext& g = *GImGui; + ImFormatString(out_buf, (size_t)out_buf_size, "%s%s%s%s%s", + (key_chord & ImGuiMod_Ctrl) ? "Ctrl+" : "", + (key_chord & ImGuiMod_Shift) ? "Shift+" : "", + (key_chord & ImGuiMod_Alt) ? "Alt+" : "", + (key_chord & ImGuiMod_Super) ? (g.IO.ConfigMacOSXBehaviors ? "Cmd+" : "Super+") : "", + GetKeyName((ImGuiKey)(key_chord & ~ImGuiMod_Mask_))); +} + +// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) +// t1 = current time (e.g.: g.Time) +// An event is triggered at: +// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N +int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) +{ + if (t1 == 0.0f) + return 1; + if (t0 >= t1) + return 0; + if (repeat_rate <= 0.0f) + return (t0 < repeat_delay) && (t1 >= repeat_delay); + const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); + const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); + const int count = count_t1 - count_t0; + return count; +} + +void ImGui::GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate) +{ + ImGuiContext& g = *GImGui; + switch (flags & ImGuiInputFlags_RepeatRateMask_) + { + case ImGuiInputFlags_RepeatRateNavMove: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.80f; return; + case ImGuiInputFlags_RepeatRateNavTweak: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.30f; return; + case ImGuiInputFlags_RepeatRateDefault: default: *repeat_delay = g.IO.KeyRepeatDelay * 1.00f; *repeat_rate = g.IO.KeyRepeatRate * 1.00f; return; + } +} + +// Return value representing the number of presses in the last time period, for the given repeat rate +// (most often returns 0 or 1. The result is generally only >1 when RepeatRate is smaller than DeltaTime, aka large DeltaTime or fast RepeatRate) +int ImGui::GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float repeat_rate) +{ + ImGuiContext& g = *GImGui; + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return 0; + const float t = key_data->DownDuration; + return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); +} + +// Return 2D vector representing the combination of four cardinal direction, with analog value support (for e.g. ImGuiKey_GamepadLStick* values). +ImVec2 ImGui::GetKeyVector2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down) +{ + return ImVec2( + GetKeyData(key_right)->AnalogValue - GetKeyData(key_left)->AnalogValue, + GetKeyData(key_down)->AnalogValue - GetKeyData(key_up)->AnalogValue); +} + +// owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope(). +static inline ImGuiID GetRoutingIdFromOwnerId(ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + return (owner_id != ImGuiKeyOwner_None && owner_id != ImGuiKeyOwner_Any) ? owner_id : g.CurrentFocusScopeId; +} + +ImGuiKeyRoutingData* ImGui::GetShortcutRoutingData(ImGuiKeyChord key_chord) +{ + // Majority of shortcuts will be Key + any number of Mods + // We accept _Single_ mod with ImGuiKey_None. + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl | ImGuiMod_Shift); // Legal + // - Shortcut(ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiMod_Ctrl | ImGuiMod_Shift); // Not legal + ImGuiContext& g = *GImGui; + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + ImGuiKeyRoutingData* routing_data; + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(mods); + IM_ASSERT(IsNamedKey(key)); + + // Get (in the majority of case, the linked list will have one element so this should be 2 reads. + // Subsequent elements will be contiguous in memory as list is sorted/rebuilt in NewFrame). + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; idx = routing_data->NextEntryIndex) + { + routing_data = &rt->Entries[idx]; + if (routing_data->Mods == mods) + return routing_data; + } + + // Add to linked-list + ImGuiKeyRoutingIndex routing_data_idx = (ImGuiKeyRoutingIndex)rt->Entries.Size; + rt->Entries.push_back(ImGuiKeyRoutingData()); + routing_data = &rt->Entries[routing_data_idx]; + routing_data->Mods = (ImU16)mods; + routing_data->NextEntryIndex = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; // Setup linked list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = routing_data_idx; + return routing_data; +} + +// Current score encoding (lower is highest priority): +// - 0: ImGuiInputFlags_RouteGlobalHigh +// - 1: ImGuiInputFlags_RouteFocused (if item active) +// - 2: ImGuiInputFlags_RouteGlobal +// - 3+: ImGuiInputFlags_RouteFocused (if window in focus-stack) +// - 254: ImGuiInputFlags_RouteGlobalLow +// - 255: never route +// 'flags' should include an explicit routing policy +static int CalcRoutingScore(ImGuiWindow* location, ImGuiID owner_id, ImGuiInputFlags flags) +{ + if (flags & ImGuiInputFlags_RouteFocused) + { + ImGuiContext& g = *GImGui; + ImGuiWindow* focused = g.NavWindow; + + // ActiveID gets top priority + // (we don't check g.ActiveIdUsingAllKeys here. Routing is applied but if input ownership is tested later it may discard it) + if (owner_id != 0 && g.ActiveId == owner_id) + return 1; + + // Score based on distance to focused window (lower is better) + // Assuming both windows are submitting a routing request, + // - When Window....... is focused -> Window scores 3 (best), Window/ChildB scores 255 (no match) + // - When Window/ChildB is focused -> Window scores 4, Window/ChildB scores 3 (best) + // Assuming only WindowA is submitting a routing request, + // - When Window/ChildB is focused -> Window scores 4 (best), Window/ChildB doesn't have a score. + if (focused != NULL && focused->RootWindow == location->RootWindow) + for (int next_score = 3; focused != NULL; next_score++) + { + if (focused == location) + { + IM_ASSERT(next_score < 255); + return next_score; + } + focused = (focused->RootWindow != focused) ? focused->ParentWindow : NULL; // FIXME: This could be later abstracted as a focus path + } + return 255; + } + + // ImGuiInputFlags_RouteGlobalHigh is default, so calls without flags are not conditional + if (flags & ImGuiInputFlags_RouteGlobal) + return 2; + if (flags & ImGuiInputFlags_RouteGlobalLow) + return 254; + return 0; +} + +// Request a desired route for an input chord (key + mods). +// Return true if the route is available this frame. +// - Routes and key ownership are attributed at the beginning of next frame based on best score and mod state. +// (Conceptually this does a "Submit for next frame" + "Test for current frame". +// As such, it could be called TrySetXXX or SubmitXXX, or the Submit and Test operations should be separate.) +// - Using 'owner_id == ImGuiKeyOwner_Any/0': auto-assign an owner based on current focus scope (each window has its focus scope by default) +// - Using 'owner_id == ImGuiKeyOwner_None': allows disabling/locking a shortcut. +bool ImGui::SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteGlobalHigh; // IMPORTANT: This is the default for SetShortcutRouting() but NOT Shortcut() + else + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiInputFlags_RouteMask_)); // Check that only 1 routing flag is used + + if (flags & ImGuiInputFlags_RouteUnlessBgFocused) + if (g.NavWindow == NULL) + return false; + if (flags & ImGuiInputFlags_RouteAlways) + return true; + + const int score = CalcRoutingScore(g.CurrentWindow, owner_id, flags); + if (score == 255) + return false; + + // Submit routing for NEXT frame (assuming score is sufficient) + // FIXME: Could expose a way to use a "serve last" policy for same score resolution (using <= instead of <). + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + //const bool set_route = (flags & ImGuiInputFlags_ServeLast) ? (score <= routing_data->RoutingNextScore) : (score < routing_data->RoutingNextScore); + if (score < routing_data->RoutingNextScore) + { + routing_data->RoutingNext = routing_id; + routing_data->RoutingNextScore = (ImU8)score; + } + + // Return routing state for CURRENT frame + return routing_data->RoutingCurr == routing_id; +} + +// Currently unused by core (but used by tests) +// Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading. +bool ImGui::TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id) +{ + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + return routing_data->RoutingCurr == routing_id; +} + +// Note that Dear ImGui doesn't know the meaning/semantic of ImGuiKey from 0..511: they are legacy native keycodes. +// Consider transitioning from 'IsKeyDown(MY_ENGINE_KEY_A)' (<1.87) to IsKeyDown(ImGuiKey_A) (>= 1.87) +bool ImGui::IsKeyDown(ImGuiKey key) +{ + return IsKeyDown(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyDown(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyPressed(ImGuiKey key, bool repeat) +{ + return IsKeyPressed(key, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +// Important: unless legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this requires EXPLICIT repeat. +bool ImGui::IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = key_data->DownDuration; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + bool pressed = (t == 0.0f); + if (!pressed && ((flags & ImGuiInputFlags_Repeat) != 0)) + { + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(flags, &repeat_delay, &repeat_rate); + pressed = (t > repeat_delay) && GetKeyPressedAmount(key, repeat_delay, repeat_rate) > 0; + } + if (!pressed) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyReleased(ImGuiKey key) +{ + return IsKeyReleased(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyReleased(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (key_data->DownDurationPrev < 0.0f || key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // should be same as IsKeyDown(MouseButtonToKey(button), ImGuiKeyOwner_Any), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyDown(MouseButtonToKey(button), owner_id), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) +{ + return IsMouseClicked(button, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = g.IO.MouseDownDuration[button]; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + const bool repeat = (flags & ImGuiInputFlags_Repeat) != 0; + const bool pressed = (t == 0.0f) || (repeat && t > g.IO.KeyRepeatDelay && CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0); + if (!pressed) + return false; + + if (!TestKeyOwner(MouseButtonToKey(button), owner_id)) + return false; + + return true; +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // Should be same as IsKeyReleased(MouseButtonToKey(button), ImGuiKeyOwner_Any) +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyReleased(MouseButtonToKey(button), owner_id) +} + +bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); +} + +int ImGui::GetMouseClickedCount(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button]; +} + +// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. +// [Internal] This doesn't test if the button is pressed +bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; +} + +bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) + return false; + return IsMouseDragPastThreshold(button, lock_threshold); +} + +ImVec2 ImGui::GetMousePos() +{ + ImGuiContext& g = *GImGui; + return g.IO.MousePos; +} + +// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! +ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() +{ + ImGuiContext& g = *GImGui; + if (g.BeginPopupStack.Size > 0) + return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; + return g.IO.MousePos; +} + +// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. +bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) +{ + // The assert is only to silence a false-positive in XCode Static Analysis. + // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). + IM_ASSERT(GImGui != NULL); + const float MOUSE_INVALID = -256000.0f; + ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; + return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; +} + +// [WILL OBSOLETE] This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. +bool ImGui::IsAnyMouseDown() +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) + if (g.IO.MouseDown[n]) + return true; + return false; +} + +// Return the delta from the initial clicking position while the mouse button is clicked or was just released. +// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. +// NB: This is only valid if IsMousePosValid(). backends in theory should always keep mouse position valid when dragging even outside the client window. +ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) + if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) + if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) + return g.IO.MousePos - g.IO.MouseClickedPos[button]; + return ImVec2(0.0f, 0.0f); +} + +void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr + g.IO.MouseClickedPos[button] = g.IO.MousePos; +} + +// Get desired mouse cursor shape. +// Important: this is meant to be used by a platform backend, it is reset in ImGui::NewFrame(), +// updated during the frame, and locked in EndFrame()/Render(). +// If you use software rendering by setting io.MouseDrawCursor then Dear ImGui will render those for you +ImGuiMouseCursor ImGui::GetMouseCursor() +{ + ImGuiContext& g = *GImGui; + return g.MouseCursor; +} + +void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) +{ + ImGuiContext& g = *GImGui; + g.MouseCursor = cursor_type; +} + +void ImGui::SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureKeyboardNextFrame = want_capture_keyboard ? 1 : 0; +} + +void ImGui::SetNextFrameWantCaptureMouse(bool want_capture_mouse) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureMouseNextFrame = want_capture_mouse ? 1 : 0; +} + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS +static const char* GetInputSourceName(ImGuiInputSource source) +{ + const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad", "Nav", "Clipboard" }; + IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT && source >= 0 && source < ImGuiInputSource_COUNT); + return input_source_names[source]; +} +static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e) +{ + ImGuiContext& g = *GImGui; + if (e->Type == ImGuiInputEventType_MousePos) { if (e->MousePos.PosX == -FLT_MAX && e->MousePos.PosY == -FLT_MAX) IMGUI_DEBUG_LOG_IO("%s: MousePos (-FLT_MAX, -FLT_MAX)\n", prefix); else IMGUI_DEBUG_LOG_IO("%s: MousePos (%.1f, %.1f)\n", prefix, e->MousePos.PosX, e->MousePos.PosY); return; } + if (e->Type == ImGuiInputEventType_MouseButton) { IMGUI_DEBUG_LOG_IO("%s: MouseButton %d %s\n", prefix, e->MouseButton.Button, e->MouseButton.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_MouseWheel) { IMGUI_DEBUG_LOG_IO("%s: MouseWheel (%.1f, %.1f)\n", prefix, e->MouseWheel.WheelX, e->MouseWheel.WheelY); return; } + if (e->Type == ImGuiInputEventType_Key) { IMGUI_DEBUG_LOG_IO("%s: Key \"%s\" %s\n", prefix, ImGui::GetKeyName(e->Key.Key), e->Key.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_Text) { IMGUI_DEBUG_LOG_IO("%s: Text: %c (U+%08X)\n", prefix, e->Text.Char, e->Text.Char); return; } + if (e->Type == ImGuiInputEventType_Focus) { IMGUI_DEBUG_LOG_IO("%s: AppFocused %d\n", prefix, e->AppFocused.Focused); return; } +} +#endif + +// Process input queue +// We always call this with the value of 'bool g.IO.ConfigInputTrickleEventQueue'. +// - trickle_fast_inputs = false : process all events, turn into flattened input state (e.g. successive down/up/down/up will be lost) +// - trickle_fast_inputs = true : process as many events as possible (successive down/up/down/up will be trickled over several frames so nothing is lost) (new feature in 1.87) +void ImGui::UpdateInputEvents(bool trickle_fast_inputs) +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Only trickle chars<>key when working with InputText() + // FIXME: InputText() could parse event trail? + // FIXME: Could specialize chars<>keys trickling rules for control keys (those not typically associated to characters) + const bool trickle_interleaved_keys_and_text = (trickle_fast_inputs && g.WantTextInputNextFrame == 1); + + bool mouse_moved = false, mouse_wheeled = false, key_changed = false, text_inputted = false; + int mouse_button_changed = 0x00; + ImBitArray key_changed_mask; + + int event_n = 0; + for (; event_n < g.InputEventsQueue.Size; event_n++) + { + ImGuiInputEvent* e = &g.InputEventsQueue[event_n]; + if (e->Type == ImGuiInputEventType_MousePos) + { + // Trickling Rule: Stop processing queued events if we already handled a mouse button change + ImVec2 event_pos(e->MousePos.PosX, e->MousePos.PosY); + if (trickle_fast_inputs && (mouse_button_changed != 0 || mouse_wheeled || key_changed || text_inputted)) + break; + io.MousePos = event_pos; + mouse_moved = true; + } + else if (e->Type == ImGuiInputEventType_MouseButton) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + const ImGuiMouseButton button = e->MouseButton.Button; + IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); + if (trickle_fast_inputs && ((mouse_button_changed & (1 << button)) || mouse_wheeled)) + break; + io.MouseDown[button] = e->MouseButton.Down; + mouse_button_changed |= (1 << button); + } + else if (e->Type == ImGuiInputEventType_MouseWheel) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the event + if (trickle_fast_inputs && (mouse_moved || mouse_button_changed != 0)) + break; + io.MouseWheelH += e->MouseWheel.WheelX; + io.MouseWheel += e->MouseWheel.WheelY; + mouse_wheeled = true; + } + else if (e->Type == ImGuiInputEventType_Key) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + ImGuiKey key = e->Key.Key; + IM_ASSERT(key != ImGuiKey_None); + ImGuiKeyData* key_data = GetKeyData(key); + const int key_data_index = (int)(key_data - g.IO.KeysData); + if (trickle_fast_inputs && key_data->Down != e->Key.Down && (key_changed_mask.TestBit(key_data_index) || text_inputted || mouse_button_changed != 0)) + break; + key_data->Down = e->Key.Down; + key_data->AnalogValue = e->Key.AnalogValue; + key_changed = true; + key_changed_mask.SetBit(key_data_index); + + if (key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super) + { + if (key == ImGuiMod_Ctrl) { io.KeyCtrl = key_data->Down; } + if (key == ImGuiMod_Shift) { io.KeyShift = key_data->Down; } + if (key == ImGuiMod_Alt) { io.KeyAlt = key_data->Down; } + if (key == ImGuiMod_Super) { io.KeySuper = key_data->Down; } + io.KeyMods = GetMergedModsFromBools(); + } + + // Allow legacy code using io.KeysDown[GetKeyIndex()] with new backends +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + io.KeysDown[key_data_index] = key_data->Down; + if (io.KeyMap[key_data_index] != -1) + io.KeysDown[io.KeyMap[key_data_index]] = key_data->Down; +#endif + } + else if (e->Type == ImGuiInputEventType_Text) + { + // Trickling Rule: Stop processing queued events if keys/mouse have been interacted with + if (trickle_fast_inputs && ((key_changed && trickle_interleaved_keys_and_text) || mouse_button_changed != 0 || mouse_moved || mouse_wheeled)) + break; + unsigned int c = e->Text.Char; + io.InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); + if (trickle_interleaved_keys_and_text) + text_inputted = true; + } + else if (e->Type == ImGuiInputEventType_Focus) + { + // We intentionally overwrite this and process in NewFrame(), in order to give a chance + // to multi-viewports backends to queue AddFocusEvent(false) + AddFocusEvent(true) in same frame. + const bool focus_lost = !e->AppFocused.Focused; + io.AppFocusLost = focus_lost; + } + else + { + IM_ASSERT(0 && "Unknown event!"); + } + } + + // Record trail (for domain-specific applications wanting to access a precise trail) + //if (event_n != 0) IMGUI_DEBUG_LOG_IO("Processed: %d / Remaining: %d\n", event_n, g.InputEventsQueue.Size - event_n); + for (int n = 0; n < event_n; n++) + g.InputEventsTrail.push_back(g.InputEventsQueue[n]); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (event_n != 0 && (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO)) + for (int n = 0; n < g.InputEventsQueue.Size; n++) + DebugPrintInputEvent(n < event_n ? "Processed" : "Remaining", &g.InputEventsQueue[n]); +#endif + + // Remaining events will be processed on the next frame + if (event_n == g.InputEventsQueue.Size) + g.InputEventsQueue.resize(0); + else + g.InputEventsQueue.erase(g.InputEventsQueue.Data, g.InputEventsQueue.Data + event_n); + + // Clear buttons state when focus is lost + // - this is useful so e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger the Alt menu toggle. + // - we clear in EndFrame() and not now in order allow application/user code polling this flag + // (e.g. custom backend may want to clear additional data, custom widgets may want to react with a "canceling" event). + if (g.IO.AppFocusLost) + g.IO.ClearInputKeys(); +} + +ImGuiID ImGui::GetKeyOwner(ImGuiKey key) +{ + if (!IsNamedKeyOrModKey(key)) + return ImGuiKeyOwner_None; + + ImGuiContext& g = *GImGui; + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + ImGuiID owner_id = owner_data->OwnerCurr; + + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return ImGuiKeyOwner_None; + + return owner_id; +} + +// TestKeyOwner(..., ID) : (owner == None || owner == ID) +// TestKeyOwner(..., None) : (owner == None) +// TestKeyOwner(..., Any) : no owner test +// All paths are also testing for key not being locked, for the rare cases that key have been locked with using ImGuiInputFlags_LockXXX flags. +bool ImGui::TestKeyOwner(ImGuiKey key, ImGuiID owner_id) +{ + if (!IsNamedKeyOrModKey(key)) + return true; + + ImGuiContext& g = *GImGui; + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return false; + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + if (owner_id == ImGuiKeyOwner_Any) + return (owner_data->LockThisFrame == false); + + // Note: SetKeyOwner() sets OwnerCurr. It is not strictly required for most mouse routing overlap (because of ActiveId/HoveredId + // are acting as filter before this has a chance to filter), but sane as soon as user tries to look into things. + // Setting OwnerCurr in SetKeyOwner() is more consistent than testing OwnerNext here: would be inconsistent with getter and other functions. + if (owner_data->OwnerCurr != owner_id) + { + if (owner_data->LockThisFrame) + return false; + if (owner_data->OwnerCurr != ImGuiKeyOwner_None) + return false; + } + + return true; +} + +// _LockXXX flags are useful to lock keys away from code which is not input-owner aware. +// When using _LockXXX flags, you can use ImGuiKeyOwner_Any to lock keys from everyone. +// - SetKeyOwner(..., None) : clears owner +// - SetKeyOwner(..., Any, !Lock) : illegal (assert) +// - SetKeyOwner(..., Any or None, Lock) : set lock +void ImGui::SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + IM_ASSERT(IsNamedKeyOrModKey(key) && (owner_id != ImGuiKeyOwner_Any || (flags & (ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease)))); // Can only use _Any with _LockXXX flags (to eat a key away without an ID to retrieve it) + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetKeyOwner) == 0); // Passing flags not supported by this function! + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + owner_data->OwnerCurr = owner_data->OwnerNext = owner_id; + + // We cannot lock by default as it would likely break lots of legacy code. + // In the case of using LockUntilRelease while key is not down we still lock during the frame (no key_data->Down test) + owner_data->LockUntilRelease = (flags & ImGuiInputFlags_LockUntilRelease) != 0; + owner_data->LockThisFrame = (flags & ImGuiInputFlags_LockThisFrame) != 0 || (owner_data->LockUntilRelease); +} + +// This is more or less equivalent to: +// if (IsItemHovered() || IsItemActive()) +// SetKeyOwner(key, GetItemID()); +// Extensive uses of that (e.g. many calls for a single item) may want to manually perform the tests once and then call SetKeyOwner() multiple times. +// More advanced usage scenarios may want to call SetKeyOwner() manually based on different condition. +// Worth noting is that only one item can be hovered and only one item can be active, therefore this usage pattern doesn't need to bother with routing and priority. +void ImGui::SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (id == 0 || (g.HoveredId != id && g.ActiveId != id)) + return; + if ((flags & ImGuiInputFlags_CondMask_) == 0) + flags |= ImGuiInputFlags_CondDefault_; + if ((g.HoveredId == id && (flags & ImGuiInputFlags_CondHovered)) || (g.ActiveId == id && (flags & ImGuiInputFlags_CondActive))) + { + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetItemKeyOwner) == 0); // Passing flags not supported by this function! + SetKeyOwner(key, id, flags & ~ImGuiInputFlags_CondMask_); + } +} + +// - Need to decide how to handle shortcut translations for Non-Mac <> Mac +// - Ideas: https://github.com/ocornut/imgui/issues/456#issuecomment-264390864 +bool ImGui::Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + + // When using (owner_id == 0/Any): SetShortcutRouting() will use CurrentFocusScopeId and filter with this, so IsKeyPressed() is fine with he 0/Any. + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteFocused; + if (!SetShortcutRouting(key_chord, owner_id, flags)) + return false; + + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (g.IO.KeyMods != mods) + return false; + + // Special storage location for mods + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(mods); + + if (!IsKeyPressed(key, owner_id, (flags & (ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_)))) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByShortcut) == 0); // Passing flags not supported by this function! + + return true; +} + + +//----------------------------------------------------------------------------- +// [SECTION] ERROR CHECKING +//----------------------------------------------------------------------------- + +// Helper function to verify ABI compatibility between caller code and compiled version of Dear ImGui. +// Verify that the type sizes are matching between the calling file's compilation unit and imgui.cpp's compilation unit +// If this triggers you have an issue: +// - Most commonly: mismatched headers and compiled code version. +// - Or: mismatched configuration #define, compilation settings, packing pragma etc. +// The configuration settings mentioned in imconfig.h must be set for all compilation units involved with Dear ImGui, +// which is way it is required you put them in your imconfig file (and not just before including imgui.h). +// Otherwise it is possible that different compilation units would see different structure layout +bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_vert, size_t sz_idx) +{ + bool error = false; + if (strcmp(version, IMGUI_VERSION) != 0) { error = true; IM_ASSERT(strcmp(version, IMGUI_VERSION) == 0 && "Mismatched version string!"); } + if (sz_io != sizeof(ImGuiIO)) { error = true; IM_ASSERT(sz_io == sizeof(ImGuiIO) && "Mismatched struct layout!"); } + if (sz_style != sizeof(ImGuiStyle)) { error = true; IM_ASSERT(sz_style == sizeof(ImGuiStyle) && "Mismatched struct layout!"); } + if (sz_vec2 != sizeof(ImVec2)) { error = true; IM_ASSERT(sz_vec2 == sizeof(ImVec2) && "Mismatched struct layout!"); } + if (sz_vec4 != sizeof(ImVec4)) { error = true; IM_ASSERT(sz_vec4 == sizeof(ImVec4) && "Mismatched struct layout!"); } + if (sz_vert != sizeof(ImDrawVert)) { error = true; IM_ASSERT(sz_vert == sizeof(ImDrawVert) && "Mismatched struct layout!"); } + if (sz_idx != sizeof(ImDrawIdx)) { error = true; IM_ASSERT(sz_idx == sizeof(ImDrawIdx) && "Mismatched struct layout!"); } + return !error; +} + +// Until 1.89 (IMGUI_VERSION_NUM < 18814) it was legal to use SetCursorPos() to extend the boundary of a parent (e.g. window or table cell) +// This is causing issues and ambiguity and we need to retire that. +// See https://github.com/ocornut/imgui/issues/5548 for more details. +// [Scenario 1] +// Previously this would make the window content size ~200x200: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); // NOT OK +// Instead, please submit an item: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); // OK +// Alternative: +// Begin(...) + Dummy(ImVec2(200,200)) + End(); // OK +// [Scenario 2] +// For reference this is one of the issue what we aim to fix with this change: +// BeginGroup() + SomeItem("foobar") + SetCursorScreenPos(GetCursorScreenPos()) + EndGroup() +// The previous logic made SetCursorScreenPos(GetCursorScreenPos()) have a side-effect! It would erroneously incorporate ItemSpacing.y after the item into content size, making the group taller! +// While this code is a little twisted, no-one would expect SetXXX(GetXXX()) to have a side-effect. Using vertical alignment patterns could trigger this issue. +void ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->DC.IsSetPos); + window->DC.IsSetPos = false; +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (window->DC.CursorPos.x <= window->DC.CursorMaxPos.x && window->DC.CursorPos.y <= window->DC.CursorMaxPos.y) + return; + if (window->SkipItems) + return; + IM_ASSERT(0 && "Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries. Please submit an item e.g. Dummy() to validate extent."); +#else + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); +#endif +} + +static void ImGui::ErrorCheckNewFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Check user IM_ASSERT macro + // (IF YOU GET A WARNING OR COMPILE ERROR HERE: it means your assert macro is incorrectly defined! + // If your macro uses multiple statements, it NEEDS to be surrounded by a 'do { ... } while (0)' block. + // This is a common C/C++ idiom to allow multiple statements macros to be used in control flow blocks.) + // #define IM_ASSERT(EXPR) if (SomeCode(EXPR)) SomeMoreCode(); // Wrong! + // #define IM_ASSERT(EXPR) do { if (SomeCode(EXPR)) SomeMoreCode(); } while (0) // Correct! + if (true) IM_ASSERT(1); else IM_ASSERT(0); + + // Check user data + // (We pass an error message in the assert expression to make it visible to programmers who are not using a debugger, as most assert handlers display their argument) + IM_ASSERT(g.Initialized); + IM_ASSERT((g.IO.DeltaTime > 0.0f || g.FrameCount == 0) && "Need a positive DeltaTime!"); + IM_ASSERT((g.FrameCount == 0 || g.FrameCountEnded == g.FrameCount) && "Forgot to call Render() or EndFrame() at the end of the previous frame?"); + IM_ASSERT(g.IO.DisplaySize.x >= 0.0f && g.IO.DisplaySize.y >= 0.0f && "Invalid DisplaySize value!"); + IM_ASSERT(g.IO.Fonts->IsBuilt() && "Font Atlas not built! Make sure you called ImGui_ImplXXXX_NewFrame() function for renderer backend, which should call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8()"); + IM_ASSERT(g.Style.CurveTessellationTol > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.CircleTessellationMaxError > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.Alpha >= 0.0f && g.Style.Alpha <= 1.0f && "Invalid style setting!"); // Allows us to avoid a few clamps in color computations + IM_ASSERT(g.Style.WindowMinSize.x >= 1.0f && g.Style.WindowMinSize.y >= 1.0f && "Invalid style setting."); + IM_ASSERT(g.Style.WindowMenuButtonPosition == ImGuiDir_None || g.Style.WindowMenuButtonPosition == ImGuiDir_Left || g.Style.WindowMenuButtonPosition == ImGuiDir_Right); + IM_ASSERT(g.Style.ColorButtonPosition == ImGuiDir_Left || g.Style.ColorButtonPosition == ImGuiDir_Right); +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_COUNT; n++) + IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < ImGuiKey_LegacyNativeKey_END && "io.KeyMap[] contains an out of bound value (need to be 0..511, or -1 for unmapped key)"); + + // Check: required key mapping (we intentionally do NOT check all keys to not pressure user into setting up everything, but Space is required and was only added in 1.60 WIP) + if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && g.IO.BackendUsingLegacyKeyArrays == 1) + IM_ASSERT(g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation."); +#endif + + // Check: the io.ConfigWindowsResizeFromEdges option requires backend to honor mouse cursor changes and set the ImGuiBackendFlags_HasMouseCursors flag accordingly. + if (g.IO.ConfigWindowsResizeFromEdges && !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseCursors)) + g.IO.ConfigWindowsResizeFromEdges = false; +} + +static void ImGui::ErrorCheckEndFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Verify that io.KeyXXX fields haven't been tampered with. Key mods should not be modified between NewFrame() and EndFrame() + // One possible reason leading to this assert is that your backends update inputs _AFTER_ NewFrame(). + // It is known that when some modal native windows called mid-frame takes focus away, some backends such as GLFW will + // send key release events mid-frame. This would normally trigger this assertion and lead to sheared inputs. + // We silently accommodate for this case by ignoring/ the case where all io.KeyXXX modifiers were released (aka key_mod_flags == 0), + // while still correctly asserting on mid-frame key press events. + const ImGuiKeyChord key_mods = GetMergedModsFromBools(); + IM_ASSERT((key_mods == 0 || g.IO.KeyMods == key_mods) && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); + IM_UNUSED(key_mods); + + // [EXPERIMENTAL] Recover from errors: You may call this yourself before EndFrame(). + //ErrorCheckEndFrameRecover(); + + // Report when there is a mismatch of Begin/BeginChild vs End/EndChild calls. Important: Remember that the Begin/BeginChild API requires you + // to always call End/EndChild even if Begin/BeginChild returns false! (this is unfortunately inconsistent with most other Begin* API). + if (g.CurrentWindowStack.Size != 1) + { + if (g.CurrentWindowStack.Size > 1) + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"); + while (g.CurrentWindowStack.Size > 1) + End(); + } + else + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you call End/EndChild too much?"); + } + } + + IM_ASSERT_USER_ERROR(g.GroupStack.Size == 0, "Missing EndGroup call!"); +} + +// Experimental recovery from incorrect usage of BeginXXX/EndXXX/PushXXX/PopXXX calls. +// Must be called during or before EndFrame(). +// This is generally flawed as we are not necessarily End/Popping things in the right order. +// FIXME: Can't recover from inside BeginTabItem/EndTabItem yet. +// FIXME: Can't recover from interleaved BeginTabBar/Begin +void ImGui::ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data) +{ + // PVS-Studio V1044 is "Loop break conditions do not depend on the number of iterations" + ImGuiContext& g = *GImGui; + while (g.CurrentWindowStack.Size > 0) //-V1044 + { + ErrorCheckEndWindowRecover(log_callback, user_data); + ImGuiWindow* window = g.CurrentWindow; + if (g.CurrentWindowStack.Size == 1) + { + IM_ASSERT(window->IsFallbackWindow); + break; + } + if (window->Flags & ImGuiWindowFlags_ChildWindow) + { + if (log_callback) log_callback(user_data, "Recovered from missing EndChild() for '%s'", window->Name); + EndChild(); + } + else + { + if (log_callback) log_callback(user_data, "Recovered from missing End() for '%s'", window->Name); + End(); + } + } +} + +// Must be called before End()/EndChild() +void ImGui::ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data) +{ + ImGuiContext& g = *GImGui; + while (g.CurrentTable && (g.CurrentTable->OuterWindow == g.CurrentWindow || g.CurrentTable->InnerWindow == g.CurrentWindow)) + { + if (log_callback) log_callback(user_data, "Recovered from missing EndTable() in '%s'", g.CurrentTable->OuterWindow->Name); + EndTable(); + } + + ImGuiWindow* window = g.CurrentWindow; + ImGuiStackSizes* stack_sizes = &g.CurrentWindowStack.back().StackSizesOnBegin; + IM_ASSERT(window != NULL); + while (g.CurrentTabBar != NULL) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndTabBar() in '%s'", window->Name); + EndTabBar(); + } + while (window->DC.TreeDepth > 0) + { + if (log_callback) log_callback(user_data, "Recovered from missing TreePop() in '%s'", window->Name); + TreePop(); + } + while (g.GroupStack.Size > stack_sizes->SizeOfGroupStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndGroup() in '%s'", window->Name); + EndGroup(); + } + while (window->IDStack.Size > 1) + { + if (log_callback) log_callback(user_data, "Recovered from missing PopID() in '%s'", window->Name); + PopID(); + } + while (g.DisabledStackSize > stack_sizes->SizeOfDisabledStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndDisabled() in '%s'", window->Name); + EndDisabled(); + } + while (g.ColorStack.Size > stack_sizes->SizeOfColorStack) + { + if (log_callback) log_callback(user_data, "Recovered from missing PopStyleColor() in '%s' for ImGuiCol_%s", window->Name, GetStyleColorName(g.ColorStack.back().Col)); + PopStyleColor(); + } + while (g.ItemFlagsStack.Size > stack_sizes->SizeOfItemFlagsStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopItemFlag() in '%s'", window->Name); + PopItemFlag(); + } + while (g.StyleVarStack.Size > stack_sizes->SizeOfStyleVarStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopStyleVar() in '%s'", window->Name); + PopStyleVar(); + } + while (g.FocusScopeStack.Size > stack_sizes->SizeOfFocusScopeStack + 1) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopFocusScope() in '%s'", window->Name); + PopFocusScope(); + } +} + +// Save current stack sizes for later compare +void ImGuiStackSizes::SetToCurrentState() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + SizeOfIDStack = (short)window->IDStack.Size; + SizeOfColorStack = (short)g.ColorStack.Size; + SizeOfStyleVarStack = (short)g.StyleVarStack.Size; + SizeOfFontStack = (short)g.FontStack.Size; + SizeOfFocusScopeStack = (short)g.FocusScopeStack.Size; + SizeOfGroupStack = (short)g.GroupStack.Size; + SizeOfItemFlagsStack = (short)g.ItemFlagsStack.Size; + SizeOfBeginPopupStack = (short)g.BeginPopupStack.Size; + SizeOfDisabledStack = (short)g.DisabledStackSize; +} + +// Compare to detect usage errors +void ImGuiStackSizes::CompareWithCurrentState() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_UNUSED(window); + + // Window stacks + // NOT checking: DC.ItemWidth, DC.TextWrapPos (per window) to allow user to conveniently push once and not pop (they are cleared on Begin) + IM_ASSERT(SizeOfIDStack == window->IDStack.Size && "PushID/PopID or TreeNode/TreePop Mismatch!"); + + // Global stacks + // For color, style and font stacks there is an incentive to use Push/Begin/Pop/.../End patterns, so we relax our checks a little to allow them. + IM_ASSERT(SizeOfGroupStack == g.GroupStack.Size && "BeginGroup/EndGroup Mismatch!"); + IM_ASSERT(SizeOfBeginPopupStack == g.BeginPopupStack.Size && "BeginPopup/EndPopup or BeginMenu/EndMenu Mismatch!"); + IM_ASSERT(SizeOfDisabledStack == g.DisabledStackSize && "BeginDisabled/EndDisabled Mismatch!"); + IM_ASSERT(SizeOfItemFlagsStack >= g.ItemFlagsStack.Size && "PushItemFlag/PopItemFlag Mismatch!"); + IM_ASSERT(SizeOfColorStack >= g.ColorStack.Size && "PushStyleColor/PopStyleColor Mismatch!"); + IM_ASSERT(SizeOfStyleVarStack >= g.StyleVarStack.Size && "PushStyleVar/PopStyleVar Mismatch!"); + IM_ASSERT(SizeOfFontStack >= g.FontStack.Size && "PushFont/PopFont Mismatch!"); + IM_ASSERT(SizeOfFocusScopeStack == g.FocusScopeStack.Size && "PushFocusScope/PopFocusScope Mismatch!"); +} + + +//----------------------------------------------------------------------------- +// [SECTION] LAYOUT +//----------------------------------------------------------------------------- +// - ItemSize() +// - ItemAdd() +// - SameLine() +// - GetCursorScreenPos() +// - SetCursorScreenPos() +// - GetCursorPos(), GetCursorPosX(), GetCursorPosY() +// - SetCursorPos(), SetCursorPosX(), SetCursorPosY() +// - GetCursorStartPos() +// - Indent() +// - Unindent() +// - SetNextItemWidth() +// - PushItemWidth() +// - PushMultiItemsWidths() +// - PopItemWidth() +// - CalcItemWidth() +// - CalcItemSize() +// - GetTextLineHeight() +// - GetTextLineHeightWithSpacing() +// - GetFrameHeight() +// - GetFrameHeightWithSpacing() +// - GetContentRegionMax() +// - GetContentRegionMaxAbs() [Internal] +// - GetContentRegionAvail(), +// - GetWindowContentRegionMin(), GetWindowContentRegionMax() +// - BeginGroup() +// - EndGroup() +// Also see in imgui_widgets: tab bars, and in imgui_tables: tables, columns. +//----------------------------------------------------------------------------- + +// Advance cursor given item size for layout. +// Register minimum needed size so it can extend the bounding box used for auto-fit calculation. +// See comments in ItemAdd() about how/why the size provided to ItemSize() vs ItemAdd() may often different. +void ImGui::ItemSize(const ImVec2& size, float text_baseline_y) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // We increase the height in this function to accommodate for baseline offset. + // In theory we should be offsetting the starting position (window->DC.CursorPos), that will be the topic of a larger refactor, + // but since ItemSize() is not yet an API that moves the cursor (to handle e.g. wrapping) enlarging the height has the same effect. + const float offset_to_match_baseline_y = (text_baseline_y >= 0) ? ImMax(0.0f, window->DC.CurrLineTextBaseOffset - text_baseline_y) : 0.0f; + + const float line_y1 = window->DC.IsSameLine ? window->DC.CursorPosPrevLine.y : window->DC.CursorPos.y; + const float line_height = ImMax(window->DC.CurrLineSize.y, /*ImMax(*/window->DC.CursorPos.y - line_y1/*, 0.0f)*/ + size.y + offset_to_match_baseline_y); + + // Always align ourselves on pixel boundaries + //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] + window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x + size.x; + window->DC.CursorPosPrevLine.y = line_y1; + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); // Next line + window->DC.CursorPos.y = IM_FLOOR(line_y1 + line_height + g.Style.ItemSpacing.y); // Next line + window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPosPrevLine.x); + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y - g.Style.ItemSpacing.y); + //if (g.IO.KeyAlt) window->DrawList->AddCircle(window->DC.CursorMaxPos, 3.0f, IM_COL32(255,0,0,255), 4); // [DEBUG] + + window->DC.PrevLineSize.y = line_height; + window->DC.CurrLineSize.y = 0.0f; + window->DC.PrevLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, text_baseline_y); + window->DC.CurrLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; + + // Horizontal layout mode + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + SameLine(); +} + +// Declare item bounding box for clipping and interaction. +// Note that the size can be different than the one provided to ItemSize(). Typically, widgets that spread over available surface +// declare their minimum size requirement to ItemSize() and provide a larger region to ItemAdd() which is used drawing/interaction. +bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGuiItemFlags extra_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Set item data + // (DisplayRect is left untouched, made valid when ImGuiItemStatusFlags_HasDisplayRect is set) + g.LastItemData.ID = id; + g.LastItemData.Rect = bb; + g.LastItemData.NavRect = nav_bb_arg ? *nav_bb_arg : bb; + g.LastItemData.InFlags = g.CurrentItemFlags | extra_flags; + g.LastItemData.StatusFlags = ImGuiItemStatusFlags_None; + + // Directional navigation processing + if (id != 0) + { + KeepAliveID(id); + + // Runs prior to clipping early-out + // (a) So that NavInitRequest can be honored, for newly opened windows to select a default widget + // (b) So that we can scroll up/down past clipped items. This adds a small O(N) cost to regular navigation requests + // unfortunately, but it is still limited to one window. It may not scale very well for windows with ten of + // thousands of item, but at least NavMoveRequest is only set on user interaction, aka maximum once a frame. + // We could early out with "if (is_clipped && !g.NavInitRequest) return false;" but when we wouldn't be able + // to reach unclipped widgets. This would work if user had explicit scrolling control (e.g. mapped on a stick). + // We intentionally don't check if g.NavWindow != NULL because g.NavAnyRequest should only be set when it is non null. + // If we crash on a NULL g.NavWindow we need to fix the bug elsewhere. + if (!(g.LastItemData.InFlags & ImGuiItemFlags_NoNav)) + { + window->DC.NavLayersActiveMaskNext |= (1 << window->DC.NavLayerCurrent); + if (g.NavId == id || g.NavAnyRequest) + if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) + if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) + NavProcessItem(); + } + + // [DEBUG] People keep stumbling on this problem and using "" as identifier in the root of a window instead of "##something". + // Empty identifier are valid and useful in a small amount of cases, but 99.9% of the time you want to use "##something". + // READ THE FAQ: https://dearimgui.org/faq + IM_ASSERT(id != window->ID && "Cannot have an empty ID at the root of a window. If you need an empty label, use ## and read the FAQ about how the ID Stack works!"); + } + g.NextItemData.Flags = ImGuiNextItemDataFlags_None; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (id != 0) + IMGUI_TEST_ENGINE_ITEM_ADD(nav_bb_arg ? *nav_bb_arg : bb, id); +#endif + + // Clipping test + // (FIXME: This is a modified copy of IsClippedEx() so we can reuse the is_rect_visible value) + //const bool is_clipped = IsClippedEx(bb, id); + //if (is_clipped) + // return false; + const bool is_rect_visible = bb.Overlaps(window->ClipRect); + if (!is_rect_visible) + if (id == 0 || (id != g.ActiveId && id != g.NavId)) + if (!g.LogEnabled) + return false; + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (id != 0 && id == g.DebugLocateId) + DebugLocateItemResolveWithLastItem(); +#endif + //if (g.IO.KeyAlt) window->DrawList->AddRect(bb.Min, bb.Max, IM_COL32(255,255,0,120)); // [DEBUG] + + // We need to calculate this now to take account of the current clipping rectangle (as items like Selectable may change them) + if (is_rect_visible) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Visible; + if (IsMouseHoveringRect(bb.Min, bb.Max)) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; + return true; +} + +// Gets back to previous line and continue with horizontal layout +// offset_from_start_x == 0 : follow right after previous item +// offset_from_start_x != 0 : align to specified x position (relative to window/group left) +// spacing_w < 0 : use default spacing if pos_x == 0, no spacing if pos_x != 0 +// spacing_w >= 0 : enforce spacing amount +void ImGui::SameLine(float offset_from_start_x, float spacing_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + if (offset_from_start_x != 0.0f) + { + if (spacing_w < 0.0f) + spacing_w = 0.0f; + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + offset_from_start_x + spacing_w + window->DC.GroupOffset.x + window->DC.ColumnsOffset.x; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + else + { + if (spacing_w < 0.0f) + spacing_w = g.Style.ItemSpacing.x; + window->DC.CursorPos.x = window->DC.CursorPosPrevLine.x + spacing_w; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + window->DC.CurrLineSize = window->DC.PrevLineSize; + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + window->DC.IsSameLine = true; +} + +ImVec2 ImGui::GetCursorScreenPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos; +} + +// 2022/08/05: Setting cursor position also extend boundaries (via modifying CursorMaxPos) used to compute window size, group size etc. +// I believe this was is a judicious choice but it's probably being relied upon (it has been the case since 1.31 and 1.50) +// It would be sane if we requested user to use SetCursorPos() + Dummy(ImVec2(0,0)) to extend CursorMaxPos... +void ImGui::SetCursorScreenPos(const ImVec2& pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = pos; + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; +} + +// User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. +// Conversion happens as we pass the value to user, but it makes our naming convention confusing because GetCursorPos() == (DC.CursorPos - window.Pos). May want to rename 'DC.CursorPos'. +ImVec2 ImGui::GetCursorPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos - window->Pos + window->Scroll; +} + +float ImGui::GetCursorPosX() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.x - window->Pos.x + window->Scroll.x; +} + +float ImGui::GetCursorPosY() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.y - window->Pos.y + window->Scroll.y; +} + +void ImGui::SetCursorPos(const ImVec2& local_pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = window->Pos - window->Scroll + local_pos; + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; +} + +void ImGui::SetCursorPosX(float x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + x; + //window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); + window->DC.IsSetPos = true; +} + +void ImGui::SetCursorPosY(float y) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.y = window->Pos.y - window->Scroll.y + y; + //window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); + window->DC.IsSetPos = true; +} + +ImVec2 ImGui::GetCursorStartPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorStartPos - window->Pos; +} + +void ImGui::Indent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x += (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +void ImGui::Unindent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x -= (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +// Affect large frame+labels widgets only. +void ImGui::SetNextItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasWidth; + g.NextItemData.Width = item_width; +} + +// FIXME: Remove the == 0.0f behavior? +void ImGui::PushItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width + window->DC.ItemWidth = (item_width == 0.0f ? window->ItemWidthDefault : item_width); + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PushMultiItemsWidths(int components, float w_full) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiStyle& style = g.Style; + const float w_item_one = ImMax(1.0f, IM_FLOOR((w_full - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_FLOOR(w_full - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width + window->DC.ItemWidthStack.push_back(w_item_last); + for (int i = 0; i < components - 2; i++) + window->DC.ItemWidthStack.push_back(w_item_one); + window->DC.ItemWidth = (components == 1) ? w_item_last : w_item_one; + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PopItemWidth() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.ItemWidth = window->DC.ItemWidthStack.back(); + window->DC.ItemWidthStack.pop_back(); +} + +// Calculate default item width given value passed to PushItemWidth() or SetNextItemWidth(). +// The SetNextItemWidth() data is generally cleared/consumed by ItemAdd() or NextItemData.ClearFlags() +float ImGui::CalcItemWidth() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float w; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + w = g.NextItemData.Width; + else + w = window->DC.ItemWidth; + if (w < 0.0f) + { + float region_max_x = GetContentRegionMaxAbs().x; + w = ImMax(1.0f, region_max_x - window->DC.CursorPos.x + w); + } + w = IM_FLOOR(w); + return w; +} + +// [Internal] Calculate full item size given user provided 'size' parameter and default width/height. Default width is often == CalcItemWidth(). +// Those two functions CalcItemWidth vs CalcItemSize are awkwardly named because they are not fully symmetrical. +// Note that only CalcItemWidth() is publicly exposed. +// The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable) +ImVec2 ImGui::CalcItemSize(ImVec2 size, float default_w, float default_h) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImVec2 region_max; + if (size.x < 0.0f || size.y < 0.0f) + region_max = GetContentRegionMaxAbs(); + + if (size.x == 0.0f) + size.x = default_w; + else if (size.x < 0.0f) + size.x = ImMax(4.0f, region_max.x - window->DC.CursorPos.x + size.x); + + if (size.y == 0.0f) + size.y = default_h; + else if (size.y < 0.0f) + size.y = ImMax(4.0f, region_max.y - window->DC.CursorPos.y + size.y); + + return size; +} + +float ImGui::GetTextLineHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize; +} + +float ImGui::GetTextLineHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.ItemSpacing.y; +} + +float ImGui::GetFrameHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f; +} + +float ImGui::GetFrameHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f + g.Style.ItemSpacing.y; +} + +// FIXME: All the Contents Region function are messy or misleading. WE WILL AIM TO OBSOLETE ALL OF THEM WITH A NEW "WORK RECT" API. Thanks for your patience! + +// FIXME: This is in window space (not screen space!). +ImVec2 ImGui::GetContentRegionMax() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = window->ContentRegionRect.Max - window->Pos; + if (window->DC.CurrentColumns || g.CurrentTable) + mx.x = window->WorkRect.Max.x - window->Pos.x; + return mx; +} + +// [Internal] Absolute coordinate. Saner. This is not exposed until we finishing refactoring work rect features. +ImVec2 ImGui::GetContentRegionMaxAbs() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = window->ContentRegionRect.Max; + if (window->DC.CurrentColumns || g.CurrentTable) + mx.x = window->WorkRect.Max.x; + return mx; +} + +ImVec2 ImGui::GetContentRegionAvail() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return GetContentRegionMaxAbs() - window->DC.CursorPos; +} + +// In window space (not screen space!) +ImVec2 ImGui::GetWindowContentRegionMin() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Min - window->Pos; +} + +ImVec2 ImGui::GetWindowContentRegionMax() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Max - window->Pos; +} + +// Lock horizontal starting position + capture group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) +// Groups are currently a mishmash of functionalities which should perhaps be clarified and separated. +// FIXME-OPT: Could we safely early out on ->SkipItems? +void ImGui::BeginGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + g.GroupStack.resize(g.GroupStack.Size + 1); + ImGuiGroupData& group_data = g.GroupStack.back(); + group_data.WindowID = window->ID; + group_data.BackupCursorPos = window->DC.CursorPos; + group_data.BackupCursorMaxPos = window->DC.CursorMaxPos; + group_data.BackupIndent = window->DC.Indent; + group_data.BackupGroupOffset = window->DC.GroupOffset; + group_data.BackupCurrLineSize = window->DC.CurrLineSize; + group_data.BackupCurrLineTextBaseOffset = window->DC.CurrLineTextBaseOffset; + group_data.BackupActiveIdIsAlive = g.ActiveIdIsAlive; + group_data.BackupHoveredIdIsAlive = g.HoveredId != 0; + group_data.BackupActiveIdPreviousFrameIsAlive = g.ActiveIdPreviousFrameIsAlive; + group_data.EmitItem = true; + + window->DC.GroupOffset.x = window->DC.CursorPos.x - window->Pos.x - window->DC.ColumnsOffset.x; + window->DC.Indent = window->DC.GroupOffset; + window->DC.CursorMaxPos = window->DC.CursorPos; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return +} + +void ImGui::EndGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(g.GroupStack.Size > 0); // Mismatched BeginGroup()/EndGroup() calls + + ImGuiGroupData& group_data = g.GroupStack.back(); + IM_ASSERT(group_data.WindowID == window->ID); // EndGroup() in wrong window? + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + ImRect group_bb(group_data.BackupCursorPos, ImMax(window->DC.CursorMaxPos, group_data.BackupCursorPos)); + + window->DC.CursorPos = group_data.BackupCursorPos; + window->DC.CursorMaxPos = ImMax(group_data.BackupCursorMaxPos, window->DC.CursorMaxPos); + window->DC.Indent = group_data.BackupIndent; + window->DC.GroupOffset = group_data.BackupGroupOffset; + window->DC.CurrLineSize = group_data.BackupCurrLineSize; + window->DC.CurrLineTextBaseOffset = group_data.BackupCurrLineTextBaseOffset; + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return + + if (!group_data.EmitItem) + { + g.GroupStack.pop_back(); + return; + } + + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.PrevLineTextBaseOffset, group_data.BackupCurrLineTextBaseOffset); // FIXME: Incorrect, we should grab the base offset from the *first line* of the group but it is hard to obtain now. + ItemSize(group_bb.GetSize()); + ItemAdd(group_bb, 0, NULL, ImGuiItemFlags_NoTabStop); + + // If the current ActiveId was declared within the boundary of our group, we copy it to LastItemId so IsItemActive(), IsItemDeactivated() etc. will be functional on the entire group. + // It would be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. + // Also if you grep for LastItemId you'll notice it is only used in that context. + // (The two tests not the same because ActiveIdIsAlive is an ID itself, in order to be able to handle ActiveId being overwritten during the frame.) + const bool group_contains_curr_active_id = (group_data.BackupActiveIdIsAlive != g.ActiveId) && (g.ActiveIdIsAlive == g.ActiveId) && g.ActiveId; + const bool group_contains_prev_active_id = (group_data.BackupActiveIdPreviousFrameIsAlive == false) && (g.ActiveIdPreviousFrameIsAlive == true); + if (group_contains_curr_active_id) + g.LastItemData.ID = g.ActiveId; + else if (group_contains_prev_active_id) + g.LastItemData.ID = g.ActiveIdPreviousFrame; + g.LastItemData.Rect = group_bb; + + // Forward Hovered flag + const bool group_contains_curr_hovered_id = (group_data.BackupHoveredIdIsAlive == false) && g.HoveredId != 0; + if (group_contains_curr_hovered_id) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + + // Forward Edited flag + if (group_contains_curr_active_id && g.ActiveIdHasBeenEditedThisFrame) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited; + + // Forward Deactivated flag + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HasDeactivated; + if (group_contains_prev_active_id && g.ActiveId != g.ActiveIdPreviousFrame) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Deactivated; + + g.GroupStack.pop_back(); + //window->DrawList->AddRect(group_bb.Min, group_bb.Max, IM_COL32(255,0,255,255)); // [Debug] +} + + +//----------------------------------------------------------------------------- +// [SECTION] SCROLLING +//----------------------------------------------------------------------------- + +// Helper to snap on edges when aiming at an item very close to the edge, +// So the difference between WindowPadding and ItemSpacing will be in the visible area after scrolling. +// When we refactor the scrolling API this may be configurable with a flag? +// Note that the effect for this won't be visible on X axis with default Style settings as WindowPadding.x == ItemSpacing.x by default. +static float CalcScrollEdgeSnap(float target, float snap_min, float snap_max, float snap_threshold, float center_ratio) +{ + if (target <= snap_min + snap_threshold) + return ImLerp(snap_min, target, center_ratio); + if (target >= snap_max - snap_threshold) + return ImLerp(target, snap_max, center_ratio); + return target; +} + +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window) +{ + ImVec2 scroll = window->Scroll; + if (window->ScrollTarget.x < FLT_MAX) + { + float decoration_total_width = window->ScrollbarSizes.x; + float center_x_ratio = window->ScrollTargetCenterRatio.x; + float scroll_target_x = window->ScrollTarget.x; + if (window->ScrollTargetEdgeSnapDist.x > 0.0f) + { + float snap_x_min = 0.0f; + float snap_x_max = window->ScrollMax.x + window->SizeFull.x - decoration_total_width; + scroll_target_x = CalcScrollEdgeSnap(scroll_target_x, snap_x_min, snap_x_max, window->ScrollTargetEdgeSnapDist.x, center_x_ratio); + } + scroll.x = scroll_target_x - center_x_ratio * (window->SizeFull.x - decoration_total_width); + } + if (window->ScrollTarget.y < FLT_MAX) + { + float decoration_total_height = window->TitleBarHeight() + window->MenuBarHeight() + window->ScrollbarSizes.y; + float center_y_ratio = window->ScrollTargetCenterRatio.y; + float scroll_target_y = window->ScrollTarget.y; + if (window->ScrollTargetEdgeSnapDist.y > 0.0f) + { + float snap_y_min = 0.0f; + float snap_y_max = window->ScrollMax.y + window->SizeFull.y - decoration_total_height; + scroll_target_y = CalcScrollEdgeSnap(scroll_target_y, snap_y_min, snap_y_max, window->ScrollTargetEdgeSnapDist.y, center_y_ratio); + } + scroll.y = scroll_target_y - center_y_ratio * (window->SizeFull.y - decoration_total_height); + } + scroll.x = IM_FLOOR(ImMax(scroll.x, 0.0f)); + scroll.y = IM_FLOOR(ImMax(scroll.y, 0.0f)); + if (!window->Collapsed && !window->SkipItems) + { + scroll.x = ImMin(scroll.x, window->ScrollMax.x); + scroll.y = ImMin(scroll.y, window->ScrollMax.y); + } + return scroll; +} + +void ImGui::ScrollToItem(ImGuiScrollFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ScrollToRectEx(window, g.LastItemData.NavRect, flags); +} + +void ImGui::ScrollToRect(ImGuiWindow* window, const ImRect& item_rect, ImGuiScrollFlags flags) +{ + ScrollToRectEx(window, item_rect, flags); +} + +// Scroll to keep newly navigated item fully into view +ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGuiScrollFlags flags) +{ + ImGuiContext& g = *GImGui; + ImRect window_rect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1)); + //GetForegroundDrawList(window)->AddRect(window_rect.Min, window_rect.Max, IM_COL32_WHITE); // [DEBUG] + + // Check that only one behavior is selected per axis + IM_ASSERT((flags & ImGuiScrollFlags_MaskX_) == 0 || ImIsPowerOfTwo(flags & ImGuiScrollFlags_MaskX_)); + IM_ASSERT((flags & ImGuiScrollFlags_MaskY_) == 0 || ImIsPowerOfTwo(flags & ImGuiScrollFlags_MaskY_)); + + // Defaults + ImGuiScrollFlags in_flags = flags; + if ((flags & ImGuiScrollFlags_MaskX_) == 0 && window->ScrollbarX) + flags |= ImGuiScrollFlags_KeepVisibleEdgeX; + if ((flags & ImGuiScrollFlags_MaskY_) == 0) + flags |= window->Appearing ? ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeY; + + const bool fully_visible_x = item_rect.Min.x >= window_rect.Min.x && item_rect.Max.x <= window_rect.Max.x; + const bool fully_visible_y = item_rect.Min.y >= window_rect.Min.y && item_rect.Max.y <= window_rect.Max.y; + const bool can_be_fully_visible_x = (item_rect.GetWidth() + g.Style.ItemSpacing.x * 2.0f) <= window_rect.GetWidth() || (window->AutoFitFramesX > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + const bool can_be_fully_visible_y = (item_rect.GetHeight() + g.Style.ItemSpacing.y * 2.0f) <= window_rect.GetHeight() || (window->AutoFitFramesY > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + + if ((flags & ImGuiScrollFlags_KeepVisibleEdgeX) && !fully_visible_x) + { + if (item_rect.Min.x < window_rect.Min.x || !can_be_fully_visible_x) + SetScrollFromPosX(window, item_rect.Min.x - g.Style.ItemSpacing.x - window->Pos.x, 0.0f); + else if (item_rect.Max.x >= window_rect.Max.x) + SetScrollFromPosX(window, item_rect.Max.x + g.Style.ItemSpacing.x - window->Pos.x, 1.0f); + } + else if (((flags & ImGuiScrollFlags_KeepVisibleCenterX) && !fully_visible_x) || (flags & ImGuiScrollFlags_AlwaysCenterX)) + { + if (can_be_fully_visible_x) + SetScrollFromPosX(window, ImFloor((item_rect.Min.x + item_rect.Max.y) * 0.5f) - window->Pos.x, 0.5f); + else + SetScrollFromPosX(window, item_rect.Min.x - window->Pos.x, 0.0f); + } + + if ((flags & ImGuiScrollFlags_KeepVisibleEdgeY) && !fully_visible_y) + { + if (item_rect.Min.y < window_rect.Min.y || !can_be_fully_visible_y) + SetScrollFromPosY(window, item_rect.Min.y - g.Style.ItemSpacing.y - window->Pos.y, 0.0f); + else if (item_rect.Max.y >= window_rect.Max.y) + SetScrollFromPosY(window, item_rect.Max.y + g.Style.ItemSpacing.y - window->Pos.y, 1.0f); + } + else if (((flags & ImGuiScrollFlags_KeepVisibleCenterY) && !fully_visible_y) || (flags & ImGuiScrollFlags_AlwaysCenterY)) + { + if (can_be_fully_visible_y) + SetScrollFromPosY(window, ImFloor((item_rect.Min.y + item_rect.Max.y) * 0.5f) - window->Pos.y, 0.5f); + else + SetScrollFromPosY(window, item_rect.Min.y - window->Pos.y, 0.0f); + } + + ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); + ImVec2 delta_scroll = next_scroll - window->Scroll; + + // Also scroll parent window to keep us into view if necessary + if (!(flags & ImGuiScrollFlags_NoScrollParent) && (window->Flags & ImGuiWindowFlags_ChildWindow)) + { + // FIXME-SCROLL: May be an option? + if ((in_flags & (ImGuiScrollFlags_AlwaysCenterX | ImGuiScrollFlags_KeepVisibleCenterX)) != 0) + in_flags = (in_flags & ~ImGuiScrollFlags_MaskX_) | ImGuiScrollFlags_KeepVisibleEdgeX; + if ((in_flags & (ImGuiScrollFlags_AlwaysCenterY | ImGuiScrollFlags_KeepVisibleCenterY)) != 0) + in_flags = (in_flags & ~ImGuiScrollFlags_MaskY_) | ImGuiScrollFlags_KeepVisibleEdgeY; + delta_scroll += ScrollToRectEx(window->ParentWindow, ImRect(item_rect.Min - delta_scroll, item_rect.Max - delta_scroll), in_flags); + } + + return delta_scroll; +} + +float ImGui::GetScrollX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.x; +} + +float ImGui::GetScrollY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.y; +} + +float ImGui::GetScrollMaxX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.x; +} + +float ImGui::GetScrollMaxY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.y; +} + +void ImGui::SetScrollX(ImGuiWindow* window, float scroll_x) +{ + window->ScrollTarget.x = scroll_x; + window->ScrollTargetCenterRatio.x = 0.0f; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollY(ImGuiWindow* window, float scroll_y) +{ + window->ScrollTarget.y = scroll_y; + window->ScrollTargetCenterRatio.y = 0.0f; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollX(float scroll_x) +{ + ImGuiContext& g = *GImGui; + SetScrollX(g.CurrentWindow, scroll_x); +} + +void ImGui::SetScrollY(float scroll_y) +{ + ImGuiContext& g = *GImGui; + SetScrollY(g.CurrentWindow, scroll_y); +} + +// Note that a local position will vary depending on initial scroll value, +// This is a little bit confusing so bear with us: +// - local_pos = (absolution_pos - window->Pos) +// - So local_x/local_y are 0.0f for a position at the upper-left corner of a window, +// and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area. +// - They mostly exist because of legacy API. +// Following the rules above, when trying to work with scrolling code, consider that: +// - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect! +// - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense +// We store a target position so centering and clamping can occur on the next frame when we are guaranteed to have a known window size +void ImGui::SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio) +{ + IM_ASSERT(center_x_ratio >= 0.0f && center_x_ratio <= 1.0f); + window->ScrollTarget.x = IM_FLOOR(local_x + window->Scroll.x); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.x = center_x_ratio; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio) +{ + IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); + const float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); // FIXME: Would be nice to have a more standardized access to our scrollable/client rect; + local_y -= decoration_up_height; + window->ScrollTarget.y = IM_FLOOR(local_y + window->Scroll.y); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.y = center_y_ratio; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollFromPosX(float local_x, float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosX(g.CurrentWindow, local_x, center_x_ratio); +} + +void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosY(g.CurrentWindow, local_y, center_y_ratio); +} + +// center_x_ratio: 0.0f left of last item, 0.5f horizontal center of last item, 1.0f right of last item. +void ImGui::SetScrollHereX(float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_x = ImMax(window->WindowPadding.x, g.Style.ItemSpacing.x); + float target_pos_x = ImLerp(g.LastItemData.Rect.Min.x - spacing_x, g.LastItemData.Rect.Max.x + spacing_x, center_x_ratio); + SetScrollFromPosX(window, target_pos_x - window->Pos.x, center_x_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.x = ImMax(0.0f, window->WindowPadding.x - spacing_x); +} + +// center_y_ratio: 0.0f top of last item, 0.5f vertical center of last item, 1.0f bottom of last item. +void ImGui::SetScrollHereY(float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_y = ImMax(window->WindowPadding.y, g.Style.ItemSpacing.y); + float target_pos_y = ImLerp(window->DC.CursorPosPrevLine.y - spacing_y, window->DC.CursorPosPrevLine.y + window->DC.PrevLineSize.y + spacing_y, center_y_ratio); + SetScrollFromPosY(window, target_pos_y - window->Pos.y, center_y_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.y = ImMax(0.0f, window->WindowPadding.y - spacing_y); +} + +//----------------------------------------------------------------------------- +// [SECTION] TOOLTIPS +//----------------------------------------------------------------------------- + +void ImGui::BeginTooltip() +{ + BeginTooltipEx(ImGuiTooltipFlags_None, ImGuiWindowFlags_None); +} + +void ImGui::BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags) +{ + ImGuiContext& g = *GImGui; + + if (g.DragDropWithinSource || g.DragDropWithinTarget) + { + // The default tooltip position is a little offset to give space to see the context menu (it's also clamped within the current viewport/monitor) + // In the context of a dragging tooltip we try to reduce that offset and we enforce following the cursor. + // Whatever we do we want to call SetNextWindowPos() to enforce a tooltip position and disable clipping the tooltip without our display area, like regular tooltip do. + //ImVec2 tooltip_pos = g.IO.MousePos - g.ActiveIdClickOffset - g.Style.WindowPadding; + ImVec2 tooltip_pos = g.IO.MousePos + ImVec2(16 * g.Style.MouseCursorScale, 8 * g.Style.MouseCursorScale); + SetNextWindowPos(tooltip_pos); + SetNextWindowBgAlpha(g.Style.Colors[ImGuiCol_PopupBg].w * 0.60f); + //PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * 0.60f); // This would be nice but e.g ColorButton with checkboard has issue with transparent colors :( + tooltip_flags |= ImGuiTooltipFlags_OverridePreviousTooltip; + } + + char window_name[16]; + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", g.TooltipOverrideCount); + if (tooltip_flags & ImGuiTooltipFlags_OverridePreviousTooltip) + if (ImGuiWindow* window = FindWindowByName(window_name)) + if (window->Active) + { + // Hide previous tooltip from being displayed. We can't easily "reset" the content of a window so we create a new one. + window->Hidden = true; + window->HiddenFramesCanSkipItems = 1; // FIXME: This may not be necessary? + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", ++g.TooltipOverrideCount); + } + ImGuiWindowFlags flags = ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize; + Begin(window_name, NULL, flags | extra_window_flags); +} + +void ImGui::EndTooltip() +{ + IM_ASSERT(GetCurrentWindowRead()->Flags & ImGuiWindowFlags_Tooltip); // Mismatched BeginTooltip()/EndTooltip() calls + End(); +} + +void ImGui::SetTooltipV(const char* fmt, va_list args) +{ + BeginTooltipEx(ImGuiTooltipFlags_OverridePreviousTooltip, ImGuiWindowFlags_None); + TextV(fmt, args); + EndTooltip(); +} + +void ImGui::SetTooltip(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + SetTooltipV(fmt, args); + va_end(args); +} + +//----------------------------------------------------------------------------- +// [SECTION] POPUPS +//----------------------------------------------------------------------------- + +// Supported flags: ImGuiPopupFlags_AnyPopupId, ImGuiPopupFlags_AnyPopupLevel +bool ImGui::IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + if (popup_flags & ImGuiPopupFlags_AnyPopupId) + { + // Return true if any popup is open at the current BeginPopup() level of the popup stack + // This may be used to e.g. test for another popups already opened to handle popups priorities at the same level. + IM_ASSERT(id == 0); + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + return g.OpenPopupStack.Size > 0; + else + return g.OpenPopupStack.Size > g.BeginPopupStack.Size; + } + else + { + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + { + // Return true if the popup is open anywhere in the popup stack + for (int n = 0; n < g.OpenPopupStack.Size; n++) + if (g.OpenPopupStack[n].PopupId == id) + return true; + return false; + } + else + { + // Return true if the popup is open at the current BeginPopup() level of the popup stack (this is the most-common query) + return g.OpenPopupStack.Size > g.BeginPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].PopupId == id; + } + } +} + +bool ImGui::IsPopupOpen(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = (popup_flags & ImGuiPopupFlags_AnyPopupId) ? 0 : g.CurrentWindow->GetID(str_id); + if ((popup_flags & ImGuiPopupFlags_AnyPopupLevel) && id != 0) + IM_ASSERT(0 && "Cannot use IsPopupOpen() with a string id and ImGuiPopupFlags_AnyPopupLevel."); // But non-string version is legal and used internally + return IsPopupOpen(id, popup_flags); +} + +ImGuiWindow* ImGui::GetTopMostPopupModal() +{ + ImGuiContext& g = *GImGui; + for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) + if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window) + if (popup->Flags & ImGuiWindowFlags_Modal) + return popup; + return NULL; +} + +ImGuiWindow* ImGui::GetTopMostAndVisiblePopupModal() +{ + ImGuiContext& g = *GImGui; + for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) + if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window) + if ((popup->Flags & ImGuiWindowFlags_Modal) && IsWindowActiveAndVisible(popup)) + return popup; + return NULL; +} + +void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.CurrentWindow->GetID(str_id); + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopup(\"%s\" -> 0x%08X\n", str_id, id); + OpenPopupEx(id, popup_flags); +} + +void ImGui::OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + OpenPopupEx(id, popup_flags); +} + +// Mark popup as open (toggle toward open state). +// Popups are closed when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block. +// Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). +// One open popup per level of the popup hierarchy (NB: when assigning we reset the Window member of ImGuiPopupRef to NULL) +void ImGui::OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + const int current_stack_size = g.BeginPopupStack.Size; + + if (popup_flags & ImGuiPopupFlags_NoOpenOverExistingPopup) + if (IsPopupOpen(0u, ImGuiPopupFlags_AnyPopupId)) + return; + + ImGuiPopupData popup_ref; // Tagged as new ref as Window will be set back to NULL if we write this into OpenPopupStack. + popup_ref.PopupId = id; + popup_ref.Window = NULL; + popup_ref.BackupNavWindow = g.NavWindow; // When popup closes focus may be restored to NavWindow (depend on window type). + popup_ref.OpenFrameCount = g.FrameCount; + popup_ref.OpenParentId = parent_window->IDStack.back(); + popup_ref.OpenPopupPos = NavCalcPreferredRefPos(); + popup_ref.OpenMousePos = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : popup_ref.OpenPopupPos; + + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopupEx(0x%08X)\n", id); + if (g.OpenPopupStack.Size < current_stack_size + 1) + { + g.OpenPopupStack.push_back(popup_ref); + } + else + { + // Gently handle the user mistakenly calling OpenPopup() every frame. It is a programming mistake! However, if we were to run the regular code path, the ui + // would become completely unusable because the popup will always be in hidden-while-calculating-size state _while_ claiming focus. Which would be a very confusing + // situation for the programmer. Instead, we silently allow the popup to proceed, it will keep reappearing and the programming error will be more obvious to understand. + if (g.OpenPopupStack[current_stack_size].PopupId == id && g.OpenPopupStack[current_stack_size].OpenFrameCount == g.FrameCount - 1) + { + g.OpenPopupStack[current_stack_size].OpenFrameCount = popup_ref.OpenFrameCount; + } + else + { + // Close child popups if any, then flag popup for open/reopen + ClosePopupToLevel(current_stack_size, false); + g.OpenPopupStack.push_back(popup_ref); + } + + // When reopening a popup we first refocus its parent, otherwise if its parent is itself a popup it would get closed by ClosePopupsOverWindow(). + // This is equivalent to what ClosePopupToLevel() does. + //if (g.OpenPopupStack[current_stack_size].PopupId == id) + // FocusWindow(parent_window); + } +} + +// When popups are stacked, clicking on a lower level popups puts focus back to it and close popups above it. +// This function closes any popups that are over 'ref_window'. +void ImGui::ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size == 0) + return; + + // Don't close our own child popup windows. + int popup_count_to_keep = 0; + if (ref_window) + { + // Find the highest popup which is a descendant of the reference window (generally reference window = NavWindow) + for (; popup_count_to_keep < g.OpenPopupStack.Size; popup_count_to_keep++) + { + ImGuiPopupData& popup = g.OpenPopupStack[popup_count_to_keep]; + if (!popup.Window) + continue; + IM_ASSERT((popup.Window->Flags & ImGuiWindowFlags_Popup) != 0); + if (popup.Window->Flags & ImGuiWindowFlags_ChildWindow) + continue; + + // Trim the stack unless the popup is a direct parent of the reference window (the reference window is often the NavWindow) + // - With this stack of window, clicking/focusing Popup1 will close Popup2 and Popup3: + // Window -> Popup1 -> Popup2 -> Popup3 + // - Each popups may contain child windows, which is why we compare ->RootWindow! + // Window -> Popup1 -> Popup1_Child -> Popup2 -> Popup2_Child + bool ref_window_is_descendent_of_popup = false; + for (int n = popup_count_to_keep; n < g.OpenPopupStack.Size; n++) + if (ImGuiWindow* popup_window = g.OpenPopupStack[n].Window) + if (IsWindowWithinBeginStackOf(ref_window, popup_window)) + { + ref_window_is_descendent_of_popup = true; + break; + } + if (!ref_window_is_descendent_of_popup) + break; + } + } + if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below + { + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupsOverWindow(\"%s\")\n", ref_window ? ref_window->Name : ""); + ClosePopupToLevel(popup_count_to_keep, restore_focus_to_window_under_popup); + } +} + +void ImGui::ClosePopupsExceptModals() +{ + ImGuiContext& g = *GImGui; + + int popup_count_to_keep; + for (popup_count_to_keep = g.OpenPopupStack.Size; popup_count_to_keep > 0; popup_count_to_keep--) + { + ImGuiWindow* window = g.OpenPopupStack[popup_count_to_keep - 1].Window; + if (!window || window->Flags & ImGuiWindowFlags_Modal) + break; + } + if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below + ClosePopupToLevel(popup_count_to_keep, true); +} + +void ImGui::ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); + IM_ASSERT(remaining >= 0 && remaining < g.OpenPopupStack.Size); + + // Trim open popup stack + ImGuiWindow* popup_window = g.OpenPopupStack[remaining].Window; + ImGuiWindow* popup_backup_nav_window = g.OpenPopupStack[remaining].BackupNavWindow; + g.OpenPopupStack.resize(remaining); + + if (restore_focus_to_window_under_popup) + { + ImGuiWindow* focus_window = (popup_window && popup_window->Flags & ImGuiWindowFlags_ChildMenu) ? popup_window->ParentWindow : popup_backup_nav_window; + if (focus_window && !focus_window->WasActive && popup_window) + { + // Fallback + FocusTopMostWindowUnderOne(popup_window, NULL); + } + else + { + if (g.NavLayer == ImGuiNavLayer_Main && focus_window) + focus_window = NavRestoreLastChildNavWindow(focus_window); + FocusWindow(focus_window); + } + } +} + +// Close the popup we have begin-ed into. +void ImGui::CloseCurrentPopup() +{ + ImGuiContext& g = *GImGui; + int popup_idx = g.BeginPopupStack.Size - 1; + if (popup_idx < 0 || popup_idx >= g.OpenPopupStack.Size || g.BeginPopupStack[popup_idx].PopupId != g.OpenPopupStack[popup_idx].PopupId) + return; + + // Closing a menu closes its top-most parent popup (unless a modal) + while (popup_idx > 0) + { + ImGuiWindow* popup_window = g.OpenPopupStack[popup_idx].Window; + ImGuiWindow* parent_popup_window = g.OpenPopupStack[popup_idx - 1].Window; + bool close_parent = false; + if (popup_window && (popup_window->Flags & ImGuiWindowFlags_ChildMenu)) + if (parent_popup_window && !(parent_popup_window->Flags & ImGuiWindowFlags_MenuBar)) + close_parent = true; + if (!close_parent) + break; + popup_idx--; + } + IMGUI_DEBUG_LOG_POPUP("[popup] CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); + ClosePopupToLevel(popup_idx, true); + + // A common pattern is to close a popup when selecting a menu item/selectable that will open another window. + // To improve this usage pattern, we avoid nav highlight for a single frame in the parent window. + // Similarly, we could avoid mouse hover highlight in this window but it is less visually problematic. + if (ImGuiWindow* window = g.NavWindow) + window->DC.NavHideHighlightOneFrame = true; +} + +// Attention! BeginPopup() adds default flags which BeginPopupEx()! +bool ImGui::BeginPopupEx(ImGuiID id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + char name[20]; + if (flags & ImGuiWindowFlags_ChildMenu) + ImFormatString(name, IM_ARRAYSIZE(name), "##Menu_%02d", g.BeginMenuCount); // Recycle windows based on depth + else + ImFormatString(name, IM_ARRAYSIZE(name), "##Popup_%08x", id); // Not recycling, so we can close/open during the same frame + + flags |= ImGuiWindowFlags_Popup; + bool is_open = Begin(name, NULL, flags); + if (!is_open) // NB: Begin can return false when the popup is completely clipped (e.g. zero size display) + EndPopup(); + + return is_open; +} + +bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size <= g.BeginPopupStack.Size) // Early out for performance + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + flags |= ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings; + ImGuiID id = g.CurrentWindow->GetID(str_id); + return BeginPopupEx(id, flags); +} + +// If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup. +// Note that popup visibility status is owned by Dear ImGui (and manipulated with e.g. OpenPopup) so the actual value of *p_open is meaningless here. +bool ImGui::BeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = window->GetID(name); + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + // Center modal windows by default for increased visibility + // (this won't really last as settings will kick in, and is mostly for backward compatibility. user may do the same themselves) + // FIXME: Should test for (PosCond & window->SetWindowPosAllowFlags) with the upcoming window. + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) == 0) + { + const ImGuiViewport* viewport = GetMainViewport(); + SetNextWindowPos(viewport->GetCenter(), ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f)); + } + + flags |= ImGuiWindowFlags_Popup | ImGuiWindowFlags_Modal | ImGuiWindowFlags_NoCollapse; + const bool is_open = Begin(name, p_open, flags); + if (!is_open || (p_open && !*p_open)) // NB: is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + { + EndPopup(); + if (is_open) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + return false; + } + return is_open; +} + +void ImGui::EndPopup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginPopup()/EndPopup() calls + IM_ASSERT(g.BeginPopupStack.Size > 0); + + // Make all menus and popups wrap around for now, may need to expose that policy (e.g. focus scope could include wrap/loop policy flags used by new move requests) + if (g.NavWindow == window) + NavMoveRequestTryWrapping(window, ImGuiNavMoveFlags_LoopY); + + // Child-popups don't need to be laid out + IM_ASSERT(g.WithinEndChild == false); + if (window->Flags & ImGuiWindowFlags_ChildWindow) + g.WithinEndChild = true; + End(); + g.WithinEndChild = false; +} + +// Helper to open a popup if mouse button is released over the item +// - This is essentially the same as BeginPopupContextItem() but without the trailing BeginPopup() +void ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + { + ImGuiID id = str_id ? window->GetID(str_id) : g.LastItemData.ID; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + OpenPopupEx(id, popup_flags); + } +} + +// This is a helper to handle the simplest case of associating one named popup to one given widget. +// - To create a popup associated to the last item, you generally want to pass a NULL value to str_id. +// - To create a popup with a specific identifier, pass it in str_id. +// - This is useful when using using BeginPopupContextItem() on an item which doesn't have an identifier, e.g. a Text() call. +// - This is useful when multiple code locations may want to manipulate/open the same popup, given an explicit id. +// - You may want to handle the whole on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters). +// This is essentially the same as: +// id = str_id ? GetID(str_id) : GetItemID(); +// OpenPopupOnItemClick(str_id, ImGuiPopupFlags_MouseButtonRight); +// return BeginPopup(id); +// Which is essentially the same as: +// id = str_id ? GetID(str_id) : GetItemID(); +// if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) +// OpenPopup(id); +// return BeginPopup(id); +// The main difference being that this is tweaked to avoid computing the ID twice. +bool ImGui::BeginPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + ImGuiID id = str_id ? window->GetID(str_id) : g.LastItemData.ID; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextWindow(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!str_id) + str_id = "window_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + if (!(popup_flags & ImGuiPopupFlags_NoOpenOverItems) || !IsAnyItemHovered()) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextVoid(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!str_id) + str_id = "void_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && !IsWindowHovered(ImGuiHoveredFlags_AnyWindow)) + if (GetTopMostPopupModal() == NULL) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +// r_avoid = the rectangle to avoid (e.g. for tooltip it is a rectangle around the mouse cursor which we want to avoid. for popups it's a small point around the cursor.) +// r_outer = the visible area rectangle, minus safe area padding. If our popup size won't fit because of safe area padding we ignore it. +// (r_outer is usually equivalent to the viewport rectangle minus padding, but when multi-viewports are enabled and monitor +// information are available, it may represent the entire platform monitor from the frame of reference of the current viewport. +// this allows us to have tooltips/popups displayed out of the parent viewport.) +ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy) +{ + ImVec2 base_pos_clamped = ImClamp(ref_pos, r_outer.Min, r_outer.Max - size); + //GetForegroundDrawList()->AddRect(r_avoid.Min, r_avoid.Max, IM_COL32(255,0,0,255)); + //GetForegroundDrawList()->AddRect(r_outer.Min, r_outer.Max, IM_COL32(0,255,0,255)); + + // Combo Box policy (we want a connecting edge) + if (policy == ImGuiPopupPositionPolicy_ComboBox) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Down, ImGuiDir_Right, ImGuiDir_Left, ImGuiDir_Up }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + ImVec2 pos; + if (dir == ImGuiDir_Down) pos = ImVec2(r_avoid.Min.x, r_avoid.Max.y); // Below, Toward Right (default) + if (dir == ImGuiDir_Right) pos = ImVec2(r_avoid.Min.x, r_avoid.Min.y - size.y); // Above, Toward Right + if (dir == ImGuiDir_Left) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Max.y); // Below, Toward Left + if (dir == ImGuiDir_Up) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Min.y - size.y); // Above, Toward Left + if (!r_outer.Contains(ImRect(pos, pos + size))) + continue; + *last_dir = dir; + return pos; + } + } + + // Tooltip and Default popup policy + // (Always first try the direction we used on the last frame, if any) + if (policy == ImGuiPopupPositionPolicy_Tooltip || policy == ImGuiPopupPositionPolicy_Default) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Right, ImGuiDir_Down, ImGuiDir_Up, ImGuiDir_Left }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + + const float avail_w = (dir == ImGuiDir_Left ? r_avoid.Min.x : r_outer.Max.x) - (dir == ImGuiDir_Right ? r_avoid.Max.x : r_outer.Min.x); + const float avail_h = (dir == ImGuiDir_Up ? r_avoid.Min.y : r_outer.Max.y) - (dir == ImGuiDir_Down ? r_avoid.Max.y : r_outer.Min.y); + + // If there's not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) + if (avail_w < size.x && (dir == ImGuiDir_Left || dir == ImGuiDir_Right)) + continue; + if (avail_h < size.y && (dir == ImGuiDir_Up || dir == ImGuiDir_Down)) + continue; + + ImVec2 pos; + pos.x = (dir == ImGuiDir_Left) ? r_avoid.Min.x - size.x : (dir == ImGuiDir_Right) ? r_avoid.Max.x : base_pos_clamped.x; + pos.y = (dir == ImGuiDir_Up) ? r_avoid.Min.y - size.y : (dir == ImGuiDir_Down) ? r_avoid.Max.y : base_pos_clamped.y; + + // Clamp top-left corner of popup + pos.x = ImMax(pos.x, r_outer.Min.x); + pos.y = ImMax(pos.y, r_outer.Min.y); + + *last_dir = dir; + return pos; + } + } + + // Fallback when not enough room: + *last_dir = ImGuiDir_None; + + // For tooltip we prefer avoiding the cursor at all cost even if it means that part of the tooltip won't be visible. + if (policy == ImGuiPopupPositionPolicy_Tooltip) + return ref_pos + ImVec2(2, 2); + + // Otherwise try to keep within display + ImVec2 pos = ref_pos; + pos.x = ImMax(ImMin(pos.x + size.x, r_outer.Max.x) - size.x, r_outer.Min.x); + pos.y = ImMax(ImMin(pos.y + size.y, r_outer.Max.y) - size.y, r_outer.Min.y); + return pos; +} + +// Note that this is used for popups, which can overlap the non work-area of individual viewports. +ImRect ImGui::GetPopupAllowedExtentRect(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_UNUSED(window); + ImRect r_screen = ((ImGuiViewportP*)(void*)GetMainViewport())->GetMainRect(); + ImVec2 padding = g.Style.DisplaySafeAreaPadding; + r_screen.Expand(ImVec2((r_screen.GetWidth() > padding.x * 2) ? -padding.x : 0.0f, (r_screen.GetHeight() > padding.y * 2) ? -padding.y : 0.0f)); + return r_screen; +} + +ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + ImRect r_outer = GetPopupAllowedExtentRect(window); + if (window->Flags & ImGuiWindowFlags_ChildMenu) + { + // Child menus typically request _any_ position within the parent menu item, and then we move the new menu outside the parent bounds. + // This is how we end up with child menus appearing (most-commonly) on the right of the parent menu. + IM_ASSERT(g.CurrentWindow == window); + ImGuiWindow* parent_window = g.CurrentWindowStack[g.CurrentWindowStack.Size - 2].Window; + float horizontal_overlap = g.Style.ItemInnerSpacing.x; // We want some overlap to convey the relative depth of each menu (currently the amount of overlap is hard-coded to style.ItemSpacing.x). + ImRect r_avoid; + if (parent_window->DC.MenuBarAppending) + r_avoid = ImRect(-FLT_MAX, parent_window->ClipRect.Min.y, FLT_MAX, parent_window->ClipRect.Max.y); // Avoid parent menu-bar. If we wanted multi-line menu-bar, we may instead want to have the calling window setup e.g. a NextWindowData.PosConstraintAvoidRect field + else + r_avoid = ImRect(parent_window->Pos.x + horizontal_overlap, -FLT_MAX, parent_window->Pos.x + parent_window->Size.x - horizontal_overlap - parent_window->ScrollbarSizes.x, FLT_MAX); + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); + } + if (window->Flags & ImGuiWindowFlags_Popup) + { + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, ImRect(window->Pos, window->Pos), ImGuiPopupPositionPolicy_Default); // Ideally we'd disable r_avoid here + } + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Position tooltip (always follows mouse) + float sc = g.Style.MouseCursorScale; + ImVec2 ref_pos = NavCalcPreferredRefPos(); + ImRect r_avoid; + if (!g.NavDisableHighlight && g.NavDisableMouseHover && !(g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos)) + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 16, ref_pos.y + 8); + else + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 24 * sc, ref_pos.y + 24 * sc); // FIXME: Hard-coded based on mouse cursor shape expectation. Exact dimension not very important. + return FindBestWindowPosForPopupEx(ref_pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Tooltip); + } + IM_ASSERT(0); + return window->Pos; +} + +//----------------------------------------------------------------------------- +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +//----------------------------------------------------------------------------- + +// FIXME-NAV: The existence of SetNavID vs SetFocusID vs FocusWindow() needs to be clarified/reworked. +// In our terminology those should be interchangeable, yet right now this is super confusing. +// Those two functions are merely a legacy artifact, so at minimum naming should be clarified. + +void ImGui::SetNavWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.NavWindow != window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] SetNavWindow(\"%s\")\n", window ? window->Name : ""); + g.NavWindow = window; + } + g.NavInitRequest = g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + +void ImGui::SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindow != NULL); + IM_ASSERT(nav_layer == ImGuiNavLayer_Main || nav_layer == ImGuiNavLayer_Menu); + g.NavId = id; + g.NavLayer = nav_layer; + g.NavFocusScopeId = focus_scope_id; + g.NavWindow->NavLastIds[nav_layer] = id; + g.NavWindow->NavRectRel[nav_layer] = rect_rel; +} + +void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(id != 0); + + if (g.NavWindow != window) + SetNavWindow(window); + + // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and g.CurrentFocusScopeId are valid. + // Note that window may be != g.CurrentWindow (e.g. SetFocusID call in InputTextEx for multi-line text) + const ImGuiNavLayer nav_layer = window->DC.NavLayerCurrent; + g.NavId = id; + g.NavLayer = nav_layer; + g.NavFocusScopeId = g.CurrentFocusScopeId; + window->NavLastIds[nav_layer] = id; + if (g.LastItemData.ID == id) + window->NavRectRel[nav_layer] = WindowRectAbsToRel(window, g.LastItemData.NavRect); + + if (g.ActiveIdSource == ImGuiInputSource_Nav) + g.NavDisableMouseHover = true; + else + g.NavDisableHighlight = true; +} + +ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) +{ + if (ImFabs(dx) > ImFabs(dy)) + return (dx > 0.0f) ? ImGuiDir_Right : ImGuiDir_Left; + return (dy > 0.0f) ? ImGuiDir_Down : ImGuiDir_Up; +} + +static float inline NavScoreItemDistInterval(float a0, float a1, float b0, float b1) +{ + if (a1 < b0) + return a1 - b0; + if (b1 < a0) + return a0 - b1; + return 0.0f; +} + +static void inline NavClampRectToVisibleAreaForMoveDir(ImGuiDir move_dir, ImRect& r, const ImRect& clip_rect) +{ + if (move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) + { + r.Min.y = ImClamp(r.Min.y, clip_rect.Min.y, clip_rect.Max.y); + r.Max.y = ImClamp(r.Max.y, clip_rect.Min.y, clip_rect.Max.y); + } + else // FIXME: PageUp/PageDown are leaving move_dir == None + { + r.Min.x = ImClamp(r.Min.x, clip_rect.Min.x, clip_rect.Max.x); + r.Max.x = ImClamp(r.Max.x, clip_rect.Min.x, clip_rect.Max.x); + } +} + +// Scoring function for gamepad/keyboard directional navigation. Based on https://gist.github.com/rygorous/6981057 +static bool ImGui::NavScoreItem(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.NavLayer != window->DC.NavLayerCurrent) + return false; + + // FIXME: Those are not good variables names + ImRect cand = g.LastItemData.NavRect; // Current item nav rectangle + const ImRect curr = g.NavScoringRect; // Current modified source rect (NB: we've applied Max.x = Min.x in NavUpdate() to inhibit the effect of having varied item width) + g.NavScoringDebugCount++; + + // When entering through a NavFlattened border, we consider child window items as fully clipped for scoring + if (window->ParentWindow == g.NavWindow) + { + IM_ASSERT((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened); + if (!window->ClipRect.Overlaps(cand)) + return false; + cand.ClipWithFull(window->ClipRect); // This allows the scored item to not overlap other candidates in the parent window + } + + // We perform scoring on items bounding box clipped by the current clipping rectangle on the other axis (clipping on our movement axis would give us equal scores for all clipped items) + // For example, this ensures that items in one column are not reached when moving vertically from items in another column. + NavClampRectToVisibleAreaForMoveDir(g.NavMoveClipDir, cand, window->ClipRect); + + // Compute distance between boxes + // FIXME-NAV: Introducing biases for vertical navigation, needs to be removed. + float dbx = NavScoreItemDistInterval(cand.Min.x, cand.Max.x, curr.Min.x, curr.Max.x); + float dby = NavScoreItemDistInterval(ImLerp(cand.Min.y, cand.Max.y, 0.2f), ImLerp(cand.Min.y, cand.Max.y, 0.8f), ImLerp(curr.Min.y, curr.Max.y, 0.2f), ImLerp(curr.Min.y, curr.Max.y, 0.8f)); // Scale down on Y to keep using box-distance for vertically touching items + if (dby != 0.0f && dbx != 0.0f) + dbx = (dbx / 1000.0f) + ((dbx > 0.0f) ? +1.0f : -1.0f); + float dist_box = ImFabs(dbx) + ImFabs(dby); + + // Compute distance between centers (this is off by a factor of 2, but we only compare center distances with each other so it doesn't matter) + float dcx = (cand.Min.x + cand.Max.x) - (curr.Min.x + curr.Max.x); + float dcy = (cand.Min.y + cand.Max.y) - (curr.Min.y + curr.Max.y); + float dist_center = ImFabs(dcx) + ImFabs(dcy); // L1 metric (need this for our connectedness guarantee) + + // Determine which quadrant of 'curr' our candidate item 'cand' lies in based on distance + ImGuiDir quadrant; + float dax = 0.0f, day = 0.0f, dist_axial = 0.0f; + if (dbx != 0.0f || dby != 0.0f) + { + // For non-overlapping boxes, use distance between boxes + dax = dbx; + day = dby; + dist_axial = dist_box; + quadrant = ImGetDirQuadrantFromDelta(dbx, dby); + } + else if (dcx != 0.0f || dcy != 0.0f) + { + // For overlapping boxes with different centers, use distance between centers + dax = dcx; + day = dcy; + dist_axial = dist_center; + quadrant = ImGetDirQuadrantFromDelta(dcx, dcy); + } + else + { + // Degenerate case: two overlapping buttons with same center, break ties arbitrarily (note that LastItemId here is really the _previous_ item order, but it doesn't matter) + quadrant = (g.LastItemData.ID < g.NavId) ? ImGuiDir_Left : ImGuiDir_Right; + } + +#if IMGUI_DEBUG_NAV_SCORING + char buf[128]; + if (IsMouseHoveringRect(cand.Min, cand.Max)) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "dbox (%.2f,%.2f->%.4f)\ndcen (%.2f,%.2f->%.4f)\nd (%.2f,%.2f->%.4f)\nnav %c, quadrant %c", dbx, dby, dist_box, dcx, dcy, dist_center, dax, day, dist_axial, "WENS"[g.NavMoveDir], "WENS"[quadrant]); + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRect(curr.Min, curr.Max, IM_COL32(255,200,0,100)); + draw_list->AddRect(cand.Min, cand.Max, IM_COL32(255,255,0,200)); + draw_list->AddRectFilled(cand.Max - ImVec2(4, 4), cand.Max + CalcTextSize(buf) + ImVec2(4, 4), IM_COL32(40,0,0,150)); + draw_list->AddText(cand.Max, ~0U, buf); + } + else if (g.IO.KeyCtrl) // Hold to preview score in matching quadrant. Press C to rotate. + { + if (quadrant == g.NavMoveDir) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "%.0f/%.0f", dist_box, dist_center); + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRectFilled(cand.Min, cand.Max, IM_COL32(255, 0, 0, 200)); + draw_list->AddText(cand.Min, IM_COL32(255, 255, 255, 255), buf); + } + } +#endif + + // Is it in the quadrant we're interested in moving to? + bool new_best = false; + const ImGuiDir move_dir = g.NavMoveDir; + if (quadrant == move_dir) + { + // Does it beat the current best candidate? + if (dist_box < result->DistBox) + { + result->DistBox = dist_box; + result->DistCenter = dist_center; + return true; + } + if (dist_box == result->DistBox) + { + // Try using distance between center points to break ties + if (dist_center < result->DistCenter) + { + result->DistCenter = dist_center; + new_best = true; + } + else if (dist_center == result->DistCenter) + { + // Still tied! we need to be extra-careful to make sure everything gets linked properly. We consistently break ties by symbolically moving "later" items + // (with higher index) to the right/downwards by an infinitesimal amount since we the current "best" button already (so it must have a lower index), + // this is fairly easy. This rule ensures that all buttons with dx==dy==0 will end up being linked in order of appearance along the x axis. + if (((move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) ? dby : dbx) < 0.0f) // moving bj to the right/down decreases distance + new_best = true; + } + } + } + + // Axial check: if 'curr' has no link at all in some direction and 'cand' lies roughly in that direction, add a tentative link. This will only be kept if no "real" matches + // are found, so it only augments the graph produced by the above method using extra links. (important, since it doesn't guarantee strong connectedness) + // This is just to avoid buttons having no links in a particular direction when there's a suitable neighbor. you get good graphs without this too. + // 2017/09/29: FIXME: This now currently only enabled inside menu bars, ideally we'd disable it everywhere. Menus in particular need to catch failure. For general navigation it feels awkward. + // Disabling it may lead to disconnected graphs when nodes are very spaced out on different axis. Perhaps consider offering this as an option? + if (result->DistBox == FLT_MAX && dist_axial < result->DistAxial) // Check axial match + if (g.NavLayer == ImGuiNavLayer_Menu && !(g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + if ((move_dir == ImGuiDir_Left && dax < 0.0f) || (move_dir == ImGuiDir_Right && dax > 0.0f) || (move_dir == ImGuiDir_Up && day < 0.0f) || (move_dir == ImGuiDir_Down && day > 0.0f)) + { + result->DistAxial = dist_axial; + new_best = true; + } + + return new_best; +} + +static void ImGui::NavApplyItemToResult(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + result->Window = window; + result->ID = g.LastItemData.ID; + result->FocusScopeId = g.CurrentFocusScopeId; + result->InFlags = g.LastItemData.InFlags; + result->RectRel = WindowRectAbsToRel(window, g.LastItemData.NavRect); +} + +// We get there when either NavId == id, or when g.NavAnyRequest is set (which is updated by NavUpdateAnyRequestFlag above) +// This is called after LastItemData is set. +static void ImGui::NavProcessItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = g.LastItemData.ID; + const ImRect nav_bb = g.LastItemData.NavRect; + const ImGuiItemFlags item_flags = g.LastItemData.InFlags; + + // Process Init Request + if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent && (item_flags & ImGuiItemFlags_Disabled) == 0) + { + // Even if 'ImGuiItemFlags_NoNavDefaultFocus' is on (typically collapse/close button) we record the first ResultId so they can be used as a fallback + const bool candidate_for_nav_default_focus = (item_flags & ImGuiItemFlags_NoNavDefaultFocus) == 0; + if (candidate_for_nav_default_focus || g.NavInitResultId == 0) + { + g.NavInitResultId = id; + g.NavInitResultRectRel = WindowRectAbsToRel(window, nav_bb); + } + if (candidate_for_nav_default_focus) + { + g.NavInitRequest = false; // Found a match, clear request + NavUpdateAnyRequestFlag(); + } + } + + // Process Move Request (scoring for navigation) + // FIXME-NAV: Consider policy for double scoring (scoring from NavScoringRect + scoring from a rect wrapped according to current wrapping policy) + if (g.NavMoveScoringItems) + { + const bool is_tab_stop = (item_flags & ImGuiItemFlags_Inputable) && (item_flags & (ImGuiItemFlags_NoTabStop | ImGuiItemFlags_Disabled)) == 0; + const bool is_tabbing = (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) != 0; + if (is_tabbing) + { + if (is_tab_stop || (g.NavMoveFlags & ImGuiNavMoveFlags_FocusApi)) + NavProcessItemForTabbingRequest(id); + } + else if ((g.NavId != id || (g.NavMoveFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) && !(item_flags & ImGuiItemFlags_Disabled)) + { + ImGuiNavItemData* result = (window == g.NavWindow) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; + if (!is_tabbing) + { + if (NavScoreItem(result)) + NavApplyItemToResult(result); + + // Features like PageUp/PageDown need to maintain a separate score for the visible set of items. + const float VISIBLE_RATIO = 0.70f; + if ((g.NavMoveFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) && window->ClipRect.Overlaps(nav_bb)) + if (ImClamp(nav_bb.Max.y, window->ClipRect.Min.y, window->ClipRect.Max.y) - ImClamp(nav_bb.Min.y, window->ClipRect.Min.y, window->ClipRect.Max.y) >= (nav_bb.Max.y - nav_bb.Min.y) * VISIBLE_RATIO) + if (NavScoreItem(&g.NavMoveResultLocalVisible)) + NavApplyItemToResult(&g.NavMoveResultLocalVisible); + } + } + } + + // Update window-relative bounding box of navigated item + if (g.NavId == id) + { + if (g.NavWindow != window) + SetNavWindow(window); // Always refresh g.NavWindow, because some operations such as FocusItem() may not have a window. + g.NavLayer = window->DC.NavLayerCurrent; + g.NavFocusScopeId = g.CurrentFocusScopeId; + g.NavIdIsAlive = true; + window->NavRectRel[window->DC.NavLayerCurrent] = WindowRectAbsToRel(window, nav_bb); // Store item bounding box (relative to window position) + } +} + +// Handle "scoring" of an item for a tabbing/focusing request initiated by NavUpdateCreateTabbingRequest(). +// Note that SetKeyboardFocusHere() API calls are considered tabbing requests! +// - Case 1: no nav/active id: set result to first eligible item, stop storing. +// - Case 2: tab forward: on ref id set counter, on counter elapse store result +// - Case 3: tab forward wrap: set result to first eligible item (preemptively), on ref id set counter, on next frame if counter hasn't elapsed store result. // FIXME-TABBING: Could be done as a next-frame forwarded request +// - Case 4: tab backward: store all results, on ref id pick prev, stop storing +// - Case 5: tab backward wrap: store all results, on ref id if no result keep storing until last // FIXME-TABBING: Could be done as next-frame forwarded requested +void ImGui::NavProcessItemForTabbingRequest(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + + // Always store in NavMoveResultLocal (unlike directional request which uses NavMoveResultOther on sibling/flattened windows) + ImGuiNavItemData* result = &g.NavMoveResultLocal; + if (g.NavTabbingDir == +1) + { + // Tab Forward or SetKeyboardFocusHere() with >= 0 + if (g.NavTabbingResultFirst.ID == 0) + NavApplyItemToResult(&g.NavTabbingResultFirst); + if (--g.NavTabbingCounter == 0) + NavMoveRequestResolveWithLastItem(result); + else if (g.NavId == id) + g.NavTabbingCounter = 1; + } + else if (g.NavTabbingDir == -1) + { + // Tab Backward + if (g.NavId == id) + { + if (result->ID) + { + g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); + } + } + else + { + NavApplyItemToResult(result); + } + } + else if (g.NavTabbingDir == 0) + { + // Tab Init + if (g.NavTabbingResultFirst.ID == 0) + NavMoveRequestResolveWithLastItem(&g.NavTabbingResultFirst); + } +} + +bool ImGui::NavMoveRequestButNoResultYet() +{ + ImGuiContext& g = *GImGui; + return g.NavMoveScoringItems && g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0; +} + +// FIXME: ScoringRect is not set +void ImGui::NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindow != NULL); + + if (move_flags & ImGuiNavMoveFlags_Tabbing) + move_flags |= ImGuiNavMoveFlags_AllowCurrentNavId; + + g.NavMoveSubmitted = g.NavMoveScoringItems = true; + g.NavMoveDir = move_dir; + g.NavMoveDirForDebug = move_dir; + g.NavMoveClipDir = clip_dir; + g.NavMoveFlags = move_flags; + g.NavMoveScrollFlags = scroll_flags; + g.NavMoveForwardToNextFrame = false; + g.NavMoveKeyMods = g.IO.KeyMods; + g.NavMoveResultLocal.Clear(); + g.NavMoveResultLocalVisible.Clear(); + g.NavMoveResultOther.Clear(); + g.NavTabbingCounter = 0; + g.NavTabbingResultFirst.Clear(); + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + g.NavMoveScoringItems = false; // Ensure request doesn't need more processing + NavApplyItemToResult(result); + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavMoveRequestCancel() +{ + ImGuiContext& g = *GImGui; + g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + +// Forward will reuse the move request again on the next frame (generally with modifications done to it) +void ImGui::NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavMoveForwardToNextFrame == false); + NavMoveRequestCancel(); + g.NavMoveForwardToNextFrame = true; + g.NavMoveDir = move_dir; + g.NavMoveClipDir = clip_dir; + g.NavMoveFlags = move_flags | ImGuiNavMoveFlags_Forwarded; + g.NavMoveScrollFlags = scroll_flags; +} + +// Navigation wrap-around logic is delayed to the end of the frame because this operation is only valid after entire +// popup is assembled and in case of appended popups it is not clear which EndPopup() call is final. +void ImGui::NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags wrap_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(wrap_flags != 0); // Call with _WrapX, _WrapY, _LoopX, _LoopY + // In theory we should test for NavMoveRequestButNoResultYet() but there's no point doing it, NavEndFrame() will do the same test + if (g.NavWindow == window && g.NavMoveScoringItems && g.NavLayer == ImGuiNavLayer_Main) + g.NavMoveFlags |= wrap_flags; +} + +// FIXME: This could be replaced by updating a frame number in each window when (window == NavWindow) and (NavLayer == 0). +// This way we could find the last focused window among our children. It would be much less confusing this way? +static void ImGui::NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window) +{ + ImGuiWindow* parent = nav_window; + while (parent && parent->RootWindow != parent && (parent->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + parent = parent->ParentWindow; + if (parent && parent != nav_window) + parent->NavLastChildNavWindow = nav_window; +} + +// Restore the last focused child. +// Call when we are expected to land on the Main Layer (0) after FocusWindow() +static ImGuiWindow* ImGui::NavRestoreLastChildNavWindow(ImGuiWindow* window) +{ + if (window->NavLastChildNavWindow && window->NavLastChildNavWindow->WasActive) + return window->NavLastChildNavWindow; + return window; +} + +void ImGui::NavRestoreLayer(ImGuiNavLayer layer) +{ + ImGuiContext& g = *GImGui; + if (layer == ImGuiNavLayer_Main) + { + ImGuiWindow* prev_nav_window = g.NavWindow; + g.NavWindow = NavRestoreLastChildNavWindow(g.NavWindow); // FIXME-NAV: Should clear ongoing nav requests? + if (prev_nav_window) + IMGUI_DEBUG_LOG_FOCUS("[focus] NavRestoreLayer: from \"%s\" to SetNavWindow(\"%s\")\n", prev_nav_window->Name, g.NavWindow->Name); + } + ImGuiWindow* window = g.NavWindow; + if (window->NavLastIds[layer] != 0) + { + SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); + } + else + { + g.NavLayer = layer; + NavInitWindow(window, true); + } +} + +void ImGui::NavRestoreHighlightAfterMove() +{ + ImGuiContext& g = *GImGui; + g.NavDisableHighlight = false; + g.NavDisableMouseHover = g.NavMousePosDirty = true; +} + +static inline void ImGui::NavUpdateAnyRequestFlag() +{ + ImGuiContext& g = *GImGui; + g.NavAnyRequest = g.NavMoveScoringItems || g.NavInitRequest || (IMGUI_DEBUG_NAV_SCORING && g.NavWindow != NULL); + if (g.NavAnyRequest) + IM_ASSERT(g.NavWindow != NULL); +} + +// This needs to be called before we submit any widget (aka in or before Begin) +void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(window == g.NavWindow); + + if (window->Flags & ImGuiWindowFlags_NoNavInputs) + { + g.NavId = 0; + g.NavFocusScopeId = window->NavRootFocusScopeId; + return; + } + + bool init_for_nav = false; + if (window == window->RootWindow || (window->Flags & ImGuiWindowFlags_Popup) || (window->NavLastIds[0] == 0) || force_reinit) + init_for_nav = true; + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from NavInitWindow(), init_for_nav=%d, window=\"%s\", layer=%d\n", init_for_nav, window->Name, g.NavLayer); + if (init_for_nav) + { + SetNavID(0, g.NavLayer, window->NavRootFocusScopeId, ImRect()); + g.NavInitRequest = true; + g.NavInitRequestFromMove = false; + g.NavInitResultId = 0; + g.NavInitResultRectRel = ImRect(); + NavUpdateAnyRequestFlag(); + } + else + { + g.NavId = window->NavLastIds[0]; + g.NavFocusScopeId = window->NavRootFocusScopeId; + } +} + +static ImVec2 ImGui::NavCalcPreferredRefPos() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + if (g.NavDisableHighlight || !g.NavDisableMouseHover || !window) + { + // Mouse (we need a fallback in case the mouse becomes invalid after being used) + // The +1.0f offset when stored by OpenPopupEx() allows reopening this or another popup (same or another mouse button) while not moving the mouse, it is pretty standard. + // In theory we could move that +1.0f offset in OpenPopupEx() + ImVec2 p = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : g.MouseLastValidPos; + return ImVec2(p.x + 1.0f, p.y); + } + else + { + // When navigation is active and mouse is disabled, pick a position around the bottom left of the currently navigated item + // Take account of upcoming scrolling (maybe set mouse pos should be done in EndFrame?) + ImRect rect_rel = WindowRectRelToAbs(window, window->NavRectRel[g.NavLayer]); + if (window->LastFrameActive != g.FrameCount && (window->ScrollTarget.x != FLT_MAX || window->ScrollTarget.y != FLT_MAX)) + { + ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); + rect_rel.Translate(window->Scroll - next_scroll); + } + ImVec2 pos = ImVec2(rect_rel.Min.x + ImMin(g.Style.FramePadding.x * 4, rect_rel.GetWidth()), rect_rel.Max.y - ImMin(g.Style.FramePadding.y, rect_rel.GetHeight())); + ImGuiViewport* viewport = GetMainViewport(); + return ImFloor(ImClamp(pos, viewport->Pos, viewport->Pos + viewport->Size)); // ImFloor() is important because non-integer mouse position application in backend might be lossy and result in undesirable non-zero delta. + } +} + +float ImGui::GetNavTweakPressedAmount(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(ImGuiInputFlags_RepeatRateNavTweak, &repeat_delay, &repeat_rate); + + ImGuiKey key_less, key_more; + if (g.NavInputSource == ImGuiInputSource_Gamepad) + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadLeft : ImGuiKey_GamepadDpadUp; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadRight : ImGuiKey_GamepadDpadDown; + } + else + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_LeftArrow : ImGuiKey_UpArrow; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_RightArrow : ImGuiKey_DownArrow; + } + float amount = (float)GetKeyPressedAmount(key_more, repeat_delay, repeat_rate) - (float)GetKeyPressedAmount(key_less, repeat_delay, repeat_rate); + if (amount != 0.0f && IsKeyDown(key_less) && IsKeyDown(key_more)) // Cancel when opposite directions are held, regardless of repeat phase + amount = 0.0f; + return amount; +} + +static void ImGui::NavUpdate() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + io.WantSetMousePos = false; + //if (g.NavScoringDebugCount > 0) IMGUI_DEBUG_LOG_NAV("[nav] NavScoringDebugCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.NavScoringDebugCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); + + // Set input source based on which keys are last pressed (as some features differs when used with Gamepad vs Keyboard) + // FIXME-NAV: Now that keys are separated maybe we can get rid of NavInputSource? + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const ImGuiKey nav_gamepad_keys_to_change_source[] = { ImGuiKey_GamepadFaceRight, ImGuiKey_GamepadFaceLeft, ImGuiKey_GamepadFaceUp, ImGuiKey_GamepadFaceDown, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown }; + if (nav_gamepad_active) + for (ImGuiKey key : nav_gamepad_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Gamepad; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const ImGuiKey nav_keyboard_keys_to_change_source[] = { ImGuiKey_Space, ImGuiKey_Enter, ImGuiKey_Escape, ImGuiKey_RightArrow, ImGuiKey_LeftArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow }; + if (nav_keyboard_active) + for (ImGuiKey key : nav_keyboard_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Keyboard; + + // Process navigation init request (select first/default focus) + if (g.NavInitResultId != 0) + NavInitRequestApplyResult(); + g.NavInitRequest = false; + g.NavInitRequestFromMove = false; + g.NavInitResultId = 0; + g.NavJustMovedToId = 0; + + // Process navigation move request + if (g.NavMoveSubmitted) + NavMoveRequestApplyResult(); + g.NavTabbingCounter = 0; + g.NavMoveSubmitted = g.NavMoveScoringItems = false; + + // Schedule mouse position update (will be done at the bottom of this function, after 1) processing all move requests and 2) updating scrolling) + bool set_mouse_pos = false; + if (g.NavMousePosDirty && g.NavIdIsAlive) + if (!g.NavDisableHighlight && g.NavDisableMouseHover && g.NavWindow) + set_mouse_pos = true; + g.NavMousePosDirty = false; + IM_ASSERT(g.NavLayer == ImGuiNavLayer_Main || g.NavLayer == ImGuiNavLayer_Menu); + + // Store our return window (for returning from Menu Layer to Main Layer) and clear it as soon as we step back in our own Layer 0 + if (g.NavWindow) + NavSaveLastChildNavWindowIntoParent(g.NavWindow); + if (g.NavWindow && g.NavWindow->NavLastChildNavWindow != NULL && g.NavLayer == ImGuiNavLayer_Main) + g.NavWindow->NavLastChildNavWindow = NULL; + + // Update CTRL+TAB and Windowing features (hold Square to move/resize/etc.) + NavUpdateWindowing(); + + // Set output flags for user application + io.NavActive = (nav_keyboard_active || nav_gamepad_active) && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs); + io.NavVisible = (io.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL); + + // Process NavCancel input (to close a popup, get back to parent, clear focus) + NavUpdateCancelRequest(); + + // Process manual activation request + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavActivateInputId = 0; + g.NavActivateFlags = ImGuiActivateFlags_None; + if (g.NavId != 0 && !g.NavDisableHighlight && !g.NavWindowingTarget && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + { + const bool activate_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Space)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadActivate)); + const bool activate_pressed = activate_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Space, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadActivate, false))); + const bool input_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Enter)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadInput)); + const bool input_pressed = input_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Enter, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadInput, false))); + if (g.ActiveId == 0 && activate_pressed) + { + g.NavActivateId = g.NavId; + g.NavActivateFlags = ImGuiActivateFlags_PreferTweak; + } + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && input_pressed) + { + g.NavActivateInputId = g.NavId; + g.NavActivateFlags = ImGuiActivateFlags_PreferInput; + } + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && activate_down) + g.NavActivateDownId = g.NavId; + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && activate_pressed) + g.NavActivatePressedId = g.NavId; + } + if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + g.NavDisableHighlight = true; + if (g.NavActivateId != 0) + IM_ASSERT(g.NavActivateDownId == g.NavActivateId); + + // Process programmatic activation request + // FIXME-NAV: Those should eventually be queued (unlike focus they don't cancel each others) + if (g.NavNextActivateId != 0) + { + if (g.NavNextActivateFlags & ImGuiActivateFlags_PreferInput) + g.NavActivateInputId = g.NavNextActivateId; + else + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavNextActivateId; + g.NavActivateFlags = g.NavNextActivateFlags; + } + g.NavNextActivateId = 0; + + // Process move requests + NavUpdateCreateMoveRequest(); + if (g.NavMoveDir == ImGuiDir_None) + NavUpdateCreateTabbingRequest(); + NavUpdateAnyRequestFlag(); + g.NavIdIsAlive = false; + + // Scrolling + if (g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) && !g.NavWindowingTarget) + { + // *Fallback* manual-scroll with Nav directional keys when window has no navigable item + ImGuiWindow* window = g.NavWindow; + const float scroll_speed = IM_ROUND(window->CalcFontSize() * 100 * io.DeltaTime); // We need round the scrolling speed because sub-pixel scroll isn't reliably supported. + const ImGuiDir move_dir = g.NavMoveDir; + if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavHasScroll && move_dir != ImGuiDir_None) + { + if (move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) + SetScrollX(window, ImFloor(window->Scroll.x + ((move_dir == ImGuiDir_Left) ? -1.0f : +1.0f) * scroll_speed)); + if (move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) + SetScrollY(window, ImFloor(window->Scroll.y + ((move_dir == ImGuiDir_Up) ? -1.0f : +1.0f) * scroll_speed)); + } + + // *Normal* Manual scroll with LStick + // Next movement request will clamp the NavId reference rectangle to the visible area, so navigation will resume within those bounds. + if (nav_gamepad_active) + { + const ImVec2 scroll_dir = GetKeyVector2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + const float tweak_factor = IsKeyDown(ImGuiKey_NavGamepadTweakSlow) ? 1.0f / 10.0f : IsKeyDown(ImGuiKey_NavGamepadTweakFast) ? 10.0f : 1.0f; + if (scroll_dir.x != 0.0f && window->ScrollbarX) + SetScrollX(window, ImFloor(window->Scroll.x + scroll_dir.x * scroll_speed * tweak_factor)); + if (scroll_dir.y != 0.0f) + SetScrollY(window, ImFloor(window->Scroll.y + scroll_dir.y * scroll_speed * tweak_factor)); + } + } + + // Always prioritize mouse highlight if navigation is disabled + if (!nav_keyboard_active && !nav_gamepad_active) + { + g.NavDisableHighlight = true; + g.NavDisableMouseHover = set_mouse_pos = false; + } + + // Update mouse position if requested + // (This will take into account the possibility that a Scroll was queued in the window to offset our absolute mouse position before scroll has been applied) + if (set_mouse_pos && (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) && (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos)) + { + io.MousePos = io.MousePosPrev = NavCalcPreferredRefPos(); + io.WantSetMousePos = true; + //IMGUI_DEBUG_LOG_IO("SetMousePos: (%.1f,%.1f)\n", io.MousePos.x, io.MousePos.y); + } + + // [DEBUG] + g.NavScoringDebugCount = 0; +#if IMGUI_DEBUG_NAV_RECTS + if (g.NavWindow) + { + ImDrawList* draw_list = GetForegroundDrawList(g.NavWindow); + if (1) { for (int layer = 0; layer < 2; layer++) { ImRect r = WindowRectRelToAbs(g.NavWindow, g.NavWindow->NavRectRel[layer]); draw_list->AddRect(r.Min, r.Max, IM_COL32(255,200,0,255)); } } // [DEBUG] + if (1) { ImU32 col = (!g.NavWindow->Hidden) ? IM_COL32(255,0,255,255) : IM_COL32(255,0,0,255); ImVec2 p = NavCalcPreferredRefPos(); char buf[32]; ImFormatString(buf, 32, "%d", g.NavLayer); draw_list->AddCircleFilled(p, 3.0f, col); draw_list->AddText(NULL, 13.0f, p + ImVec2(8,-4), col, buf); } + } +#endif +} + +void ImGui::NavInitRequestApplyResult() +{ + // In very rare cases g.NavWindow may be null (e.g. clearing focus after requesting an init request, which does happen when releasing Alt while clicking on void) + ImGuiContext& g = *GImGui; + if (!g.NavWindow) + return; + + // Apply result from previous navigation init request (will typically select the first item, unless SetItemDefaultFocus() has been called) + // FIXME-NAV: On _NavFlattened windows, g.NavWindow will only be updated during subsequent frame. Not a problem currently. + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: ApplyResult: NavID 0x%08X in Layer %d Window \"%s\"\n", g.NavInitResultId, g.NavLayer, g.NavWindow->Name); + SetNavID(g.NavInitResultId, g.NavLayer, 0, g.NavInitResultRectRel); + g.NavIdIsAlive = true; // Mark as alive from previous frame as we got a result + if (g.NavInitRequestFromMove) + NavRestoreHighlightAfterMove(); +} + +void ImGui::NavUpdateCreateMoveRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + ImGuiWindow* window = g.NavWindow; + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + + if (g.NavMoveForwardToNextFrame && window != NULL) + { + // Forwarding previous request (which has been modified, e.g. wrap around menus rewrite the requests with a starting rectangle at the other side of the window) + // (preserve most state, which were already set by the NavMoveRequestForward() function) + IM_ASSERT(g.NavMoveDir != ImGuiDir_None && g.NavMoveClipDir != ImGuiDir_None); + IM_ASSERT(g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded); + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequestForward %d\n", g.NavMoveDir); + } + else + { + // Initiate directional inputs request + g.NavMoveDir = ImGuiDir_None; + g.NavMoveFlags = ImGuiNavMoveFlags_None; + g.NavMoveScrollFlags = ImGuiScrollFlags_None; + if (window && !g.NavWindowingTarget && !(window->Flags & ImGuiWindowFlags_NoNavInputs)) + { + const ImGuiInputFlags repeat_mode = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateNavMove; + if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadLeft, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_LeftArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Left; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadRight, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_RightArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Right; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadUp, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_UpArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Up; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadDown, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_DownArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Down; } + } + g.NavMoveClipDir = g.NavMoveDir; + g.NavScoringNoClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); + } + + // Update PageUp/PageDown/Home/End scroll + // FIXME-NAV: Consider enabling those keys even without the master ImGuiConfigFlags_NavEnableKeyboard flag? + float scoring_rect_offset_y = 0.0f; + if (window && g.NavMoveDir == ImGuiDir_None && nav_keyboard_active) + scoring_rect_offset_y = NavUpdatePageUpPageDown(); + if (scoring_rect_offset_y != 0.0f) + { + g.NavScoringNoClipRect = window->InnerRect; + g.NavScoringNoClipRect.TranslateY(scoring_rect_offset_y); + } + + // [DEBUG] Always send a request +#if IMGUI_DEBUG_NAV_SCORING + if (io.KeyCtrl && IsKeyPressed(ImGuiKey_C)) + g.NavMoveDirForDebug = (ImGuiDir)((g.NavMoveDirForDebug + 1) & 3); + if (io.KeyCtrl && g.NavMoveDir == ImGuiDir_None) + { + g.NavMoveDir = g.NavMoveDirForDebug; + g.NavMoveFlags |= ImGuiNavMoveFlags_DebugNoResult; + } +#endif + + // Submit + g.NavMoveForwardToNextFrame = false; + if (g.NavMoveDir != ImGuiDir_None) + NavMoveRequestSubmit(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); + + // Moving with no reference triggers an init request (will be used as a fallback if the direction fails to find a match) + if (g.NavMoveSubmitted && g.NavId == 0) + { + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", window ? window->Name : "", g.NavLayer); + g.NavInitRequest = g.NavInitRequestFromMove = true; + g.NavInitResultId = 0; + g.NavDisableHighlight = false; + } + + // When using gamepad, we project the reference nav bounding box into window visible area. + // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, since with gamepad all movements are relative + // (can't focus a visible object like we can with the mouse). + if (g.NavMoveSubmitted && g.NavInputSource == ImGuiInputSource_Gamepad && g.NavLayer == ImGuiNavLayer_Main && window != NULL)// && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded)) + { + bool clamp_x = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_WrapX)) == 0; + bool clamp_y = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapY)) == 0; + ImRect inner_rect_rel = WindowRectAbsToRel(window, ImRect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1))); + if ((clamp_x || clamp_y) && !inner_rect_rel.Contains(window->NavRectRel[g.NavLayer])) + { + //IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel for gamepad move\n"); + float pad_x = ImMin(inner_rect_rel.GetWidth(), window->CalcFontSize() * 0.5f); + float pad_y = ImMin(inner_rect_rel.GetHeight(), window->CalcFontSize() * 0.5f); // Terrible approximation for the intent of starting navigation from first fully visible item + inner_rect_rel.Min.x = clamp_x ? (inner_rect_rel.Min.x + pad_x) : -FLT_MAX; + inner_rect_rel.Max.x = clamp_x ? (inner_rect_rel.Max.x - pad_x) : +FLT_MAX; + inner_rect_rel.Min.y = clamp_y ? (inner_rect_rel.Min.y + pad_y) : -FLT_MAX; + inner_rect_rel.Max.y = clamp_y ? (inner_rect_rel.Max.y - pad_y) : +FLT_MAX; + window->NavRectRel[g.NavLayer].ClipWithFull(inner_rect_rel); + g.NavId = 0; + } + } + + // For scoring we use a single segment on the left side our current item bounding box (not touching the edge to avoid box overlap with zero-spaced items) + ImRect scoring_rect; + if (window != NULL) + { + ImRect nav_rect_rel = !window->NavRectRel[g.NavLayer].IsInverted() ? window->NavRectRel[g.NavLayer] : ImRect(0, 0, 0, 0); + scoring_rect = WindowRectRelToAbs(window, nav_rect_rel); + scoring_rect.TranslateY(scoring_rect_offset_y); + scoring_rect.Min.x = ImMin(scoring_rect.Min.x + 1.0f, scoring_rect.Max.x); + scoring_rect.Max.x = scoring_rect.Min.x; + IM_ASSERT(!scoring_rect.IsInverted()); // Ensure if we have a finite, non-inverted bounding box here will allow us to remove extraneous ImFabs() calls in NavScoreItem(). + //GetForegroundDrawList()->AddRect(scoring_rect.Min, scoring_rect.Max, IM_COL32(255,200,0,255)); // [DEBUG] + //if (!g.NavScoringNoClipRect.IsInverted()) { GetForegroundDrawList()->AddRect(g.NavScoringNoClipRect.Min, g.NavScoringNoClipRect.Max, IM_COL32(255, 200, 0, 255)); } // [DEBUG] + } + g.NavScoringRect = scoring_rect; + g.NavScoringNoClipRect.Add(scoring_rect); +} + +void ImGui::NavUpdateCreateTabbingRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + IM_ASSERT(g.NavMoveDir == ImGuiDir_None); + if (window == NULL || g.NavWindowingTarget != NULL || (window->Flags & ImGuiWindowFlags_NoNavInputs)) + return; + + const bool tab_pressed = IsKeyPressed(ImGuiKey_Tab, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat) && !g.IO.KeyCtrl && !g.IO.KeyAlt; + if (!tab_pressed) + return; + + // Initiate tabbing request + // (this is ALWAYS ENABLED, regardless of ImGuiConfigFlags_NavEnableKeyboard flag!) + // Initially this was designed to use counters and modulo arithmetic, but that could not work with unsubmitted items (list clipper). Instead we use a strategy close to other move requests. + // See NavProcessItemForTabbingRequest() for a description of the various forward/backward tabbing cases with and without wrapping. + //// FIXME: We use (g.ActiveId == 0) but (g.NavDisableHighlight == false) might be righter once we can tab through anything + g.NavTabbingDir = g.IO.KeyShift ? -1 : (g.ActiveId == 0) ? 0 : +1; + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + ImGuiDir clip_dir = (g.NavTabbingDir < 0) ? ImGuiDir_Up : ImGuiDir_Down; + NavMoveRequestSubmit(ImGuiDir_None, clip_dir, ImGuiNavMoveFlags_Tabbing, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. + g.NavTabbingCounter = -1; +} + +// Apply result from previous frame navigation directional move request. Always called from NavUpdate() +void ImGui::NavMoveRequestApplyResult() +{ + ImGuiContext& g = *GImGui; +#if IMGUI_DEBUG_NAV_SCORING + if (g.NavMoveFlags & ImGuiNavMoveFlags_DebugNoResult) // [DEBUG] Scoring all items in NavWindow at all times + return; +#endif + + // Select which result to use + ImGuiNavItemData* result = (g.NavMoveResultLocal.ID != 0) ? &g.NavMoveResultLocal : (g.NavMoveResultOther.ID != 0) ? &g.NavMoveResultOther : NULL; + + // Tabbing forward wrap + if (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) + if ((g.NavTabbingCounter == 1 || g.NavTabbingDir == 0) && g.NavTabbingResultFirst.ID) + result = &g.NavTabbingResultFirst; + + // In a situation when there are no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) + if (result == NULL) + { + if (g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) + g.NavMoveFlags |= ImGuiNavMoveFlags_DontSetNavHighlight; + if (g.NavId != 0 && (g.NavMoveFlags & ImGuiNavMoveFlags_DontSetNavHighlight) == 0) + NavRestoreHighlightAfterMove(); + return; + } + + // PageUp/PageDown behavior first jumps to the bottom/top mostly visible item, _otherwise_ use the result from the previous/next page. + if (g.NavMoveFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) + if (g.NavMoveResultLocalVisible.ID != 0 && g.NavMoveResultLocalVisible.ID != g.NavId) + result = &g.NavMoveResultLocalVisible; + + // Maybe entering a flattened child from the outside? In this case solve the tie using the regular scoring rules. + if (result != &g.NavMoveResultOther && g.NavMoveResultOther.ID != 0 && g.NavMoveResultOther.Window->ParentWindow == g.NavWindow) + if ((g.NavMoveResultOther.DistBox < result->DistBox) || (g.NavMoveResultOther.DistBox == result->DistBox && g.NavMoveResultOther.DistCenter < result->DistCenter)) + result = &g.NavMoveResultOther; + IM_ASSERT(g.NavWindow && result->Window); + + // Scroll to keep newly navigated item fully into view. + if (g.NavLayer == ImGuiNavLayer_Main) + { + if (g.NavMoveFlags & ImGuiNavMoveFlags_ScrollToEdgeY) + { + // FIXME: Should remove this + float scroll_target = (g.NavMoveDir == ImGuiDir_Up) ? result->Window->ScrollMax.y : 0.0f; + SetScrollY(result->Window, scroll_target); + } + else + { + ImRect rect_abs = WindowRectRelToAbs(result->Window, result->RectRel); + ScrollToRectEx(result->Window, rect_abs, g.NavMoveScrollFlags); + } + } + + if (g.NavWindow != result->Window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] NavMoveRequest: SetNavWindow(\"%s\")\n", result->Window->Name); + g.NavWindow = result->Window; + } + if (g.ActiveId != result->ID) + ClearActiveID(); + if (g.NavId != result->ID) + { + // Don't set NavJustMovedToId if just landed on the same spot (which may happen with ImGuiNavMoveFlags_AllowCurrentNavId) + g.NavJustMovedToId = result->ID; + g.NavJustMovedToFocusScopeId = result->FocusScopeId; + g.NavJustMovedToKeyMods = g.NavMoveKeyMods; + } + + // Focus + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", result->ID, g.NavLayer, g.NavWindow->Name); + SetNavID(result->ID, g.NavLayer, result->FocusScopeId, result->RectRel); + + // Tabbing: Activates Inputable or Focus non-Inputable + if ((g.NavMoveFlags & ImGuiNavMoveFlags_Tabbing) && (result->InFlags & ImGuiItemFlags_Inputable)) + { + g.NavNextActivateId = result->ID; + g.NavNextActivateFlags = ImGuiActivateFlags_PreferInput | ImGuiActivateFlags_TryToPreserveState; + g.NavMoveFlags |= ImGuiNavMoveFlags_DontSetNavHighlight; + } + + // Activate + if (g.NavMoveFlags & ImGuiNavMoveFlags_Activate) + { + g.NavNextActivateId = result->ID; + g.NavNextActivateFlags = ImGuiActivateFlags_None; + } + + // Enable nav highlight + if ((g.NavMoveFlags & ImGuiNavMoveFlags_DontSetNavHighlight) == 0) + NavRestoreHighlightAfterMove(); +} + +// Process NavCancel input (to close a popup, get back to parent, clear focus) +// FIXME: In order to support e.g. Escape to clear a selection we'll need: +// - either to store the equivalent of ActiveIdUsingKeyInputMask for a FocusScope and test for it. +// - either to move most/all of those tests to the epilogue/end functions of the scope they are dealing with (e.g. exit child window in EndChild()) or in EndFrame(), to allow an earlier intercept +static void ImGui::NavUpdateCancelRequest() +{ + ImGuiContext& g = *GImGui; + const bool nav_gamepad_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (g.IO.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + if (!(nav_keyboard_active && IsKeyPressed(ImGuiKey_Escape, ImGuiKeyOwner_None)) && !(nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadCancel, ImGuiKeyOwner_None))) + return; + + IMGUI_DEBUG_LOG_NAV("[nav] NavUpdateCancelRequest()\n"); + if (g.ActiveId != 0) + { + ClearActiveID(); + } + else if (g.NavLayer != ImGuiNavLayer_Main) + { + // Leave the "menu" layer + NavRestoreLayer(ImGuiNavLayer_Main); + NavRestoreHighlightAfterMove(); + } + else if (g.NavWindow && g.NavWindow != g.NavWindow->RootWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_Popup) && g.NavWindow->ParentWindow) + { + // Exit child window + ImGuiWindow* child_window = g.NavWindow; + ImGuiWindow* parent_window = g.NavWindow->ParentWindow; + IM_ASSERT(child_window->ChildId != 0); + ImRect child_rect = child_window->Rect(); + FocusWindow(parent_window); + SetNavID(child_window->ChildId, ImGuiNavLayer_Main, 0, WindowRectAbsToRel(parent_window, child_rect)); + NavRestoreHighlightAfterMove(); + } + else if (g.OpenPopupStack.Size > 0 && g.OpenPopupStack.back().Window != NULL && !(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) + { + // Close open popup/menu + ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); + } + else + { + // Clear NavLastId for popups but keep it for regular child window so we can leave one and come back where we were + if (g.NavWindow && ((g.NavWindow->Flags & ImGuiWindowFlags_Popup) || !(g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow))) + g.NavWindow->NavLastIds[0] = 0; + g.NavId = 0; + } +} + +// Handle PageUp/PageDown/Home/End keys +// Called from NavUpdateCreateMoveRequest() which will use our output to create a move request +// FIXME-NAV: This doesn't work properly with NavFlattened siblings as we use NavWindow rectangle for reference +// FIXME-NAV: how to get Home/End to aim at the beginning/end of a 2D grid? +static float ImGui::NavUpdatePageUpPageDown() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + if ((window->Flags & ImGuiWindowFlags_NoNavInputs) || g.NavWindowingTarget != NULL) + return 0.0f; + + const bool page_up_held = IsKeyDown(ImGuiKey_PageUp, ImGuiKeyOwner_None); + const bool page_down_held = IsKeyDown(ImGuiKey_PageDown, ImGuiKeyOwner_None); + const bool home_pressed = IsKeyPressed(ImGuiKey_Home, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + const bool end_pressed = IsKeyPressed(ImGuiKey_End, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + if (page_up_held == page_down_held && home_pressed == end_pressed) // Proceed if either (not both) are pressed, otherwise early out + return 0.0f; + + if (g.NavLayer != ImGuiNavLayer_Main) + NavRestoreLayer(ImGuiNavLayer_Main); + + if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavHasScroll) + { + // Fallback manual-scroll when window has no navigable item + if (IsKeyPressed(ImGuiKey_PageUp, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) + SetScrollY(window, window->Scroll.y - window->InnerRect.GetHeight()); + else if (IsKeyPressed(ImGuiKey_PageDown, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) + SetScrollY(window, window->Scroll.y + window->InnerRect.GetHeight()); + else if (home_pressed) + SetScrollY(window, 0.0f); + else if (end_pressed) + SetScrollY(window, window->ScrollMax.y); + } + else + { + ImRect& nav_rect_rel = window->NavRectRel[g.NavLayer]; + const float page_offset_y = ImMax(0.0f, window->InnerRect.GetHeight() - window->CalcFontSize() * 1.0f + nav_rect_rel.GetHeight()); + float nav_scoring_rect_offset_y = 0.0f; + if (IsKeyPressed(ImGuiKey_PageUp, true)) + { + nav_scoring_rect_offset_y = -page_offset_y; + g.NavMoveDir = ImGuiDir_Down; // Because our scoring rect is offset up, we request the down direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Up; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; + } + else if (IsKeyPressed(ImGuiKey_PageDown, true)) + { + nav_scoring_rect_offset_y = +page_offset_y; + g.NavMoveDir = ImGuiDir_Up; // Because our scoring rect is offset down, we request the up direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Down; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; + } + else if (home_pressed) + { + // FIXME-NAV: handling of Home/End is assuming that the top/bottom most item will be visible with Scroll.y == 0/ScrollMax.y + // Scrolling will be handled via the ImGuiNavMoveFlags_ScrollToEdgeY flag, we don't scroll immediately to avoid scrolling happening before nav result. + // Preserve current horizontal position if we have any. + nav_rect_rel.Min.y = nav_rect_rel.Max.y = 0.0f; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Down; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdgeY; + // FIXME-NAV: MoveClipDir left to _None, intentional? + } + else if (end_pressed) + { + nav_rect_rel.Min.y = nav_rect_rel.Max.y = window->ContentSize.y; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Up; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdgeY; + // FIXME-NAV: MoveClipDir left to _None, intentional? + } + return nav_scoring_rect_offset_y; + } + return 0.0f; +} + +static void ImGui::NavEndFrame() +{ + ImGuiContext& g = *GImGui; + + // Show CTRL+TAB list window + if (g.NavWindowingTarget != NULL) + NavUpdateWindowingOverlay(); + + // Perform wrap-around in menus + // FIXME-NAV: Wrap may need to apply a weight bias on the other axis. e.g. 4x4 grid with 2 last items missing on last item won't handle LoopY/WrapY correctly. + // FIXME-NAV: Wrap (not Loop) support could be handled by the scoring function and then WrapX would function without an extra frame. + const ImGuiNavMoveFlags wanted_flags = ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY; + if (g.NavWindow && NavMoveRequestButNoResultYet() && (g.NavMoveFlags & wanted_flags) && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded) == 0) + NavUpdateCreateWrappingRequest(); +} + +static void ImGui::NavUpdateCreateWrappingRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + + bool do_forward = false; + ImRect bb_rel = window->NavRectRel[g.NavLayer]; + ImGuiDir clip_dir = g.NavMoveDir; + const ImGuiNavMoveFlags move_flags = g.NavMoveFlags; + if (g.NavMoveDir == ImGuiDir_Left && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = window->ContentSize.x + window->WindowPadding.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(-bb_rel.GetHeight()); // Previous row + clip_dir = ImGuiDir_Up; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Right && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = -window->WindowPadding.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(+bb_rel.GetHeight()); // Next row + clip_dir = ImGuiDir_Down; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Up && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = window->ContentSize.y + window->WindowPadding.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(-bb_rel.GetWidth()); // Previous column + clip_dir = ImGuiDir_Left; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Down && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = -window->WindowPadding.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(+bb_rel.GetWidth()); // Next column + clip_dir = ImGuiDir_Right; + } + do_forward = true; + } + if (!do_forward) + return; + window->NavRectRel[g.NavLayer] = bb_rel; + NavMoveRequestForward(g.NavMoveDir, clip_dir, move_flags, g.NavMoveScrollFlags); +} + +static int ImGui::FindWindowFocusIndex(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_UNUSED(g); + int order = window->FocusOrder; + IM_ASSERT(window->RootWindow == window); // No child window (not testing _ChildWindow because of docking) + IM_ASSERT(g.WindowsFocusOrder[order] == window); + return order; +} + +static ImGuiWindow* FindWindowNavFocusable(int i_start, int i_stop, int dir) // FIXME-OPT O(N) +{ + ImGuiContext& g = *GImGui; + for (int i = i_start; i >= 0 && i < g.WindowsFocusOrder.Size && i != i_stop; i += dir) + if (ImGui::IsWindowNavFocusable(g.WindowsFocusOrder[i])) + return g.WindowsFocusOrder[i]; + return NULL; +} + +static void NavUpdateWindowingHighlightWindow(int focus_change_dir) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget); + if (g.NavWindowingTarget->Flags & ImGuiWindowFlags_Modal) + return; + + const int i_current = ImGui::FindWindowFocusIndex(g.NavWindowingTarget); + ImGuiWindow* window_target = FindWindowNavFocusable(i_current + focus_change_dir, -INT_MAX, focus_change_dir); + if (!window_target) + window_target = FindWindowNavFocusable((focus_change_dir < 0) ? (g.WindowsFocusOrder.Size - 1) : 0, i_current, focus_change_dir); + if (window_target) // Don't reset windowing target if there's a single window in the list + { + g.NavWindowingTarget = g.NavWindowingTargetAnim = window_target; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + } + g.NavWindowingToggleLayer = false; +} + +// Windowing management mode +// Keyboard: CTRL+Tab (change focus/move/resize), Alt (toggle menu layer) +// Gamepad: Hold Menu/Square (change focus/move/resize), Tap Menu/Square (toggle menu layer) +static void ImGui::NavUpdateWindowing() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + ImGuiWindow* apply_focus_window = NULL; + bool apply_toggle_layer = false; + + ImGuiWindow* modal_window = GetTopMostPopupModal(); + bool allow_windowing = (modal_window == NULL); + if (!allow_windowing) + g.NavWindowingTarget = NULL; + + // Fade out + if (g.NavWindowingTargetAnim && g.NavWindowingTarget == NULL) + { + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha - io.DeltaTime * 10.0f, 0.0f); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + g.NavWindowingTargetAnim = NULL; + } + + // Start CTRL+Tab or Square+L/R window selection + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const bool keyboard_next_window = allow_windowing && g.ConfigNavWindowingKeyNext && Shortcut(g.ConfigNavWindowingKeyNext, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool keyboard_prev_window = allow_windowing && g.ConfigNavWindowingKeyPrev && Shortcut(g.ConfigNavWindowingKeyPrev, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool start_windowing_with_gamepad = allow_windowing && nav_gamepad_active && !g.NavWindowingTarget && IsKeyPressed(ImGuiKey_NavGamepadMenu, 0, ImGuiInputFlags_None); + const bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && (keyboard_next_window || keyboard_prev_window); // Note: enabled even without NavEnableKeyboard! + if (start_windowing_with_gamepad || start_windowing_with_keyboard) + if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1)) + { + g.NavWindowingTarget = g.NavWindowingTargetAnim = window->RootWindow; + g.NavWindowingTimer = g.NavWindowingHighlightAlpha = 0.0f; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + g.NavWindowingToggleLayer = start_windowing_with_gamepad ? true : false; // Gamepad starts toggling layer + g.NavInputSource = start_windowing_with_keyboard ? ImGuiInputSource_Keyboard : ImGuiInputSource_Gamepad; + } + + // Gamepad update + g.NavWindowingTimer += io.DeltaTime; + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Gamepad) + { + // Highlight only appears after a brief time holding the button, so that a fast tap on PadMenu (to toggle NavLayer) doesn't add visual noise + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); + + // Select window to focus + const int focus_change_dir = (int)IsKeyPressed(ImGuiKey_GamepadL1) - (int)IsKeyPressed(ImGuiKey_GamepadR1); + if (focus_change_dir != 0) + { + NavUpdateWindowingHighlightWindow(focus_change_dir); + g.NavWindowingHighlightAlpha = 1.0f; + } + + // Single press toggles NavLayer, long press with L/R apply actual focus on release (until then the window was merely rendered top-most) + if (!IsKeyDown(ImGuiKey_NavGamepadMenu)) + { + g.NavWindowingToggleLayer &= (g.NavWindowingHighlightAlpha < 1.0f); // Once button was held long enough we don't consider it a tap-to-toggle-layer press anymore. + if (g.NavWindowingToggleLayer && g.NavWindow) + apply_toggle_layer = true; + else if (!g.NavWindowingToggleLayer) + apply_focus_window = g.NavWindowingTarget; + g.NavWindowingTarget = NULL; + } + } + + // Keyboard: Focus + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Keyboard) + { + // Visuals only appears after a brief time after pressing TAB the first time, so that a fast CTRL+TAB doesn't add visual noise + ImGuiKeyChord shared_mods = ((g.ConfigNavWindowingKeyNext ? g.ConfigNavWindowingKeyNext : ImGuiMod_Mask_) & (g.ConfigNavWindowingKeyPrev ? g.ConfigNavWindowingKeyPrev : ImGuiMod_Mask_)) & ImGuiMod_Mask_; + IM_ASSERT(shared_mods != 0); // Next/Prev shortcut currently needs a shared modifier to "hold", otherwise Prev actions would keep cycling between two windows. + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // 1.0f + if (keyboard_next_window || keyboard_prev_window) + NavUpdateWindowingHighlightWindow(keyboard_next_window ? -1 : +1); + else if ((io.KeyMods & shared_mods) != shared_mods) + apply_focus_window = g.NavWindowingTarget; + } + + // Keyboard: Press and Release ALT to toggle menu layer + // - Testing that only Alt is tested prevents Alt+Shift or AltGR from toggling menu layer. + // - AltGR is normally Alt+Ctrl but we can't reliably detect it (not all backends/systems/layout emit it as Alt+Ctrl). But even on keyboards without AltGR we don't want Alt+Ctrl to open menu anyway. + if (nav_keyboard_active && IsKeyPressed(ImGuiMod_Alt, ImGuiKeyOwner_None)) + { + g.NavWindowingToggleLayer = true; + g.NavInputSource = ImGuiInputSource_Keyboard; + } + if (g.NavWindowingToggleLayer && g.NavInputSource == ImGuiInputSource_Keyboard) + { + // We cancel toggling nav layer when any text has been typed (generally while holding Alt). (See #370) + // We cancel toggling nav layer when other modifiers are pressed. (See #4439) + // We cancel toggling nav layer if an owner has claimed the key. + if (io.InputQueueCharacters.Size > 0 || io.KeyCtrl || io.KeyShift || io.KeySuper || TestKeyOwner(ImGuiMod_Alt, ImGuiKeyOwner_None) == false) + g.NavWindowingToggleLayer = false; + + // Apply layer toggle on release + // Important: as before version <18314 we lacked an explicit IO event for focus gain/loss, we also compare mouse validity to detect old backends clearing mouse pos on focus loss. + if (IsKeyReleased(ImGuiMod_Alt) && g.NavWindowingToggleLayer) + if (g.ActiveId == 0 || g.ActiveIdAllowOverlap) + if (IsMousePosValid(&io.MousePos) == IsMousePosValid(&io.MousePosPrev)) + apply_toggle_layer = true; + if (!IsKeyDown(ImGuiMod_Alt)) + g.NavWindowingToggleLayer = false; + } + + // Move window + if (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoMove)) + { + ImVec2 nav_move_dir; + if (g.NavInputSource == ImGuiInputSource_Keyboard && !io.KeyShift) + nav_move_dir = GetKeyVector2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); + if (g.NavInputSource == ImGuiInputSource_Gamepad) + nav_move_dir = GetKeyVector2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + if (nav_move_dir.x != 0.0f || nav_move_dir.y != 0.0f) + { + const float NAV_MOVE_SPEED = 800.0f; + const float move_step = NAV_MOVE_SPEED * io.DeltaTime * ImMin(io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaPos += nav_move_dir * move_step; + g.NavDisableMouseHover = true; + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaPos); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindow; + SetWindowPos(moving_window, moving_window->Pos + accum_floored, ImGuiCond_Always); + g.NavWindowingAccumDeltaPos -= accum_floored; + } + } + } + + // Apply final focus + if (apply_focus_window && (g.NavWindow == NULL || apply_focus_window != g.NavWindow->RootWindow)) + { + ClearActiveID(); + NavRestoreHighlightAfterMove(); + apply_focus_window = NavRestoreLastChildNavWindow(apply_focus_window); + ClosePopupsOverWindow(apply_focus_window, false); + FocusWindow(apply_focus_window); + if (apply_focus_window->NavLastIds[0] == 0) + NavInitWindow(apply_focus_window, false); + + // If the window has ONLY a menu layer (no main layer), select it directly + // Use NavLayersActiveMaskNext since windows didn't have a chance to be Begin()-ed on this frame, + // so CTRL+Tab where the keys are only held for 1 frame will be able to use correct layers mask since + // the target window as already been previewed once. + // FIXME-NAV: This should be done in NavInit.. or in FocusWindow... However in both of those cases, + // we won't have a guarantee that windows has been visible before and therefore NavLayersActiveMask* + // won't be valid. + if (apply_focus_window->DC.NavLayersActiveMaskNext == (1 << ImGuiNavLayer_Menu)) + g.NavLayer = ImGuiNavLayer_Menu; + } + if (apply_focus_window) + g.NavWindowingTarget = NULL; + + // Apply menu/layer toggle + if (apply_toggle_layer && g.NavWindow) + { + ClearActiveID(); + + // Move to parent menu if necessary + ImGuiWindow* new_nav_window = g.NavWindow; + while (new_nav_window->ParentWindow + && (new_nav_window->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) == 0 + && (new_nav_window->Flags & ImGuiWindowFlags_ChildWindow) != 0 + && (new_nav_window->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + new_nav_window = new_nav_window->ParentWindow; + if (new_nav_window != g.NavWindow) + { + ImGuiWindow* old_nav_window = g.NavWindow; + FocusWindow(new_nav_window); + new_nav_window->NavLastChildNavWindow = old_nav_window; + } + + // Toggle layer + const ImGuiNavLayer new_nav_layer = (g.NavWindow->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) ? (ImGuiNavLayer)((int)g.NavLayer ^ 1) : ImGuiNavLayer_Main; + if (new_nav_layer != g.NavLayer) + { + // Reinitialize navigation when entering menu bar with the Alt key (FIXME: could be a properly of the layer?) + if (new_nav_layer == ImGuiNavLayer_Menu) + g.NavWindow->NavLastIds[new_nav_layer] = 0; + NavRestoreLayer(new_nav_layer); + NavRestoreHighlightAfterMove(); + } + } +} + +// Window has already passed the IsWindowNavFocusable() +static const char* GetFallbackWindowNameForWindowingList(ImGuiWindow* window) +{ + if (window->Flags & ImGuiWindowFlags_Popup) + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingPopup); + if ((window->Flags & ImGuiWindowFlags_MenuBar) && strcmp(window->Name, "##MainMenuBar") == 0) + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingMainMenuBar); + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingUntitled); +} + +// Overlay displayed when using CTRL+TAB. Called by EndFrame(). +void ImGui::NavUpdateWindowingOverlay() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget != NULL); + + if (g.NavWindowingTimer < NAV_WINDOWING_LIST_APPEAR_DELAY) + return; + + if (g.NavWindowingListWindow == NULL) + g.NavWindowingListWindow = FindWindowByName("###NavWindowingList"); + const ImGuiViewport* viewport = GetMainViewport(); + SetNextWindowSizeConstraints(ImVec2(viewport->Size.x * 0.20f, viewport->Size.y * 0.20f), ImVec2(FLT_MAX, FLT_MAX)); + SetNextWindowPos(viewport->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + PushStyleVar(ImGuiStyleVar_WindowPadding, g.Style.WindowPadding * 2.0f); + Begin("###NavWindowingList", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings); + for (int n = g.WindowsFocusOrder.Size - 1; n >= 0; n--) + { + ImGuiWindow* window = g.WindowsFocusOrder[n]; + IM_ASSERT(window != NULL); // Fix static analyzers + if (!IsWindowNavFocusable(window)) + continue; + const char* label = window->Name; + if (label == FindRenderedTextEnd(label)) + label = GetFallbackWindowNameForWindowingList(window); + Selectable(label, g.NavWindowingTarget == window); + } + End(); + PopStyleVar(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] DRAG AND DROP +//----------------------------------------------------------------------------- + +bool ImGui::IsDragDropActive() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive; +} + +void ImGui::ClearDragDrop() +{ + ImGuiContext& g = *GImGui; + g.DragDropActive = false; + g.DragDropPayload.Clear(); + g.DragDropAcceptFlags = ImGuiDragDropFlags_None; + g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropAcceptFrameCount = -1; + + g.DragDropPayloadBufHeap.clear(); + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); +} + +// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() +// If the item has an identifier: +// - This assume/require the item to be activated (typically via ButtonBehavior). +// - Therefore if you want to use this with a mouse button other than left mouse button, it is up to the item itself to activate with another button. +// - We then pull and use the mouse button that was used to activate the item and use it to carry on the drag. +// If the item has no identifier: +// - Currently always assume left mouse button. +bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // FIXME-DRAGDROP: While in the common-most "drag from non-zero active id" case we can tell the mouse button, + // in both SourceExtern and id==0 cases we may requires something else (explicit flags or some heuristic). + ImGuiMouseButton mouse_button = ImGuiMouseButton_Left; + + bool source_drag_active = false; + ImGuiID source_id = 0; + ImGuiID source_parent_id = 0; + if (!(flags & ImGuiDragDropFlags_SourceExtern)) + { + source_id = g.LastItemData.ID; + if (source_id != 0) + { + // Common path: items with ID + if (g.ActiveId != source_id) + return false; + if (g.ActiveIdMouseButton != -1) + mouse_button = g.ActiveIdMouseButton; + if (g.IO.MouseDown[mouse_button] == false || window->SkipItems) + return false; + g.ActiveIdAllowOverlap = false; + } + else + { + // Uncommon path: items without ID + if (g.IO.MouseDown[mouse_button] == false || window->SkipItems) + return false; + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) == 0 && (g.ActiveId == 0 || g.ActiveIdWindow != window)) + return false; + + // If you want to use BeginDragDropSource() on an item with no unique identifier for interaction, such as Text() or Image(), you need to: + // A) Read the explanation below, B) Use the ImGuiDragDropFlags_SourceAllowNullID flag. + if (!(flags & ImGuiDragDropFlags_SourceAllowNullID)) + { + IM_ASSERT(0); + return false; + } + + // Magic fallback to handle items with no assigned ID, e.g. Text(), Image() + // We build a throwaway ID based on current ID stack + relative AABB of items in window. + // THE IDENTIFIER WON'T SURVIVE ANY REPOSITIONING/RESIZINGG OF THE WIDGET, so if your widget moves your dragging operation will be canceled. + // We don't need to maintain/call ClearActiveID() as releasing the button will early out this function and trigger !ActiveIdIsAlive. + // Rely on keeping other window->LastItemXXX fields intact. + source_id = g.LastItemData.ID = window->GetIDFromRectangle(g.LastItemData.Rect); + KeepAliveID(source_id); + bool is_hovered = ItemHoverable(g.LastItemData.Rect, source_id); + if (is_hovered && g.IO.MouseClicked[mouse_button]) + { + SetActiveID(source_id, window); + FocusWindow(window); + } + if (g.ActiveId == source_id) // Allow the underlying widget to display/return hovered during the mouse release frame, else we would get a flicker. + g.ActiveIdAllowOverlap = is_hovered; + } + if (g.ActiveId != source_id) + return false; + source_parent_id = window->IDStack.back(); + source_drag_active = IsMouseDragging(mouse_button); + + // Disable navigation and key inputs while dragging + cancel existing request if any + SetActiveIdUsingAllKeyboardKeys(); + } + else + { + window = NULL; + source_id = ImHashStr("#SourceExtern"); + source_drag_active = true; + } + + if (source_drag_active) + { + if (!g.DragDropActive) + { + IM_ASSERT(source_id != 0); + ClearDragDrop(); + ImGuiPayload& payload = g.DragDropPayload; + payload.SourceId = source_id; + payload.SourceParentId = source_parent_id; + g.DragDropActive = true; + g.DragDropSourceFlags = flags; + g.DragDropMouseButton = mouse_button; + if (payload.SourceId == g.ActiveId) + g.ActiveIdNoClearOnFocusLoss = true; + } + g.DragDropSourceFrameCount = g.FrameCount; + g.DragDropWithinSource = true; + + if (!(flags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + // Target can request the Source to not display its tooltip (we use a dedicated flag to make this request explicit) + // We unfortunately can't just modify the source flags and skip the call to BeginTooltip, as caller may be emitting contents. + BeginTooltip(); + if (g.DragDropAcceptIdPrev && (g.DragDropAcceptFlags & ImGuiDragDropFlags_AcceptNoPreviewTooltip)) + { + ImGuiWindow* tooltip_window = g.CurrentWindow; + tooltip_window->Hidden = tooltip_window->SkipItems = true; + tooltip_window->HiddenFramesCanSkipItems = 1; + } + } + + if (!(flags & ImGuiDragDropFlags_SourceNoDisableHover) && !(flags & ImGuiDragDropFlags_SourceExtern)) + g.LastItemData.StatusFlags &= ~ImGuiItemStatusFlags_HoveredRect; + + return true; + } + return false; +} + +void ImGui::EndDragDropSource() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinSource && "Not after a BeginDragDropSource()?"); + + if (!(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + EndTooltip(); + + // Discard the drag if have not called SetDragDropPayload() + if (g.DragDropPayload.DataFrameCount == -1) + ClearDragDrop(); + g.DragDropWithinSource = false; +} + +// Use 'cond' to choose to submit payload on drag start or every frame +bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + ImGuiPayload& payload = g.DragDropPayload; + if (cond == 0) + cond = ImGuiCond_Always; + + IM_ASSERT(type != NULL); + IM_ASSERT(strlen(type) < IM_ARRAYSIZE(payload.DataType) && "Payload type can be at most 32 characters long"); + IM_ASSERT((data != NULL && data_size > 0) || (data == NULL && data_size == 0)); + IM_ASSERT(cond == ImGuiCond_Always || cond == ImGuiCond_Once); + IM_ASSERT(payload.SourceId != 0); // Not called between BeginDragDropSource() and EndDragDropSource() + + if (cond == ImGuiCond_Always || payload.DataFrameCount == -1) + { + // Copy payload + ImStrncpy(payload.DataType, type, IM_ARRAYSIZE(payload.DataType)); + g.DragDropPayloadBufHeap.resize(0); + if (data_size > sizeof(g.DragDropPayloadBufLocal)) + { + // Store in heap + g.DragDropPayloadBufHeap.resize((int)data_size); + payload.Data = g.DragDropPayloadBufHeap.Data; + memcpy(payload.Data, data, data_size); + } + else if (data_size > 0) + { + // Store locally + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); + payload.Data = g.DragDropPayloadBufLocal; + memcpy(payload.Data, data, data_size); + } + else + { + payload.Data = NULL; + } + payload.DataSize = (int)data_size; + } + payload.DataFrameCount = g.FrameCount; + + // Return whether the payload has been accepted + return (g.DragDropAcceptFrameCount == g.FrameCount) || (g.DragDropAcceptFrameCount == g.FrameCount - 1); +} + +bool ImGui::BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindow != hovered_window->RootWindow) + return false; + IM_ASSERT(id != 0); + if (!IsMouseHoveringRect(bb.Min, bb.Max) || (id == g.DragDropPayload.SourceId)) + return false; + if (window->SkipItems) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = bb; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +// We don't use BeginDragDropTargetCustom() and duplicate its code because: +// 1) we use LastItemRectHoveredRect which handles items that push a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. +// 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can. +// Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case) +bool ImGui::BeginDragDropTarget() +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + if (!(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect)) + return false; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindow != hovered_window->RootWindow || window->SkipItems) + return false; + + const ImRect& display_rect = (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDisplayRect) ? g.LastItemData.DisplayRect : g.LastItemData.Rect; + ImGuiID id = g.LastItemData.ID; + if (id == 0) + { + id = window->GetIDFromRectangle(display_rect); + KeepAliveID(id); + } + if (g.DragDropPayload.SourceId == id) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = display_rect; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +bool ImGui::IsDragDropPayloadBeingAccepted() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive && g.DragDropAcceptIdPrev != 0; +} + +const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiPayload& payload = g.DragDropPayload; + IM_ASSERT(g.DragDropActive); // Not called between BeginDragDropTarget() and EndDragDropTarget() ? + IM_ASSERT(payload.DataFrameCount != -1); // Forgot to call EndDragDropTarget() ? + if (type != NULL && !payload.IsDataType(type)) + return NULL; + + // Accept smallest drag target bounding box, this allows us to nest drag targets conveniently without ordering constraints. + // NB: We currently accept NULL id as target. However, overlapping targets requires a unique ID to function! + const bool was_accepted_previously = (g.DragDropAcceptIdPrev == g.DragDropTargetId); + ImRect r = g.DragDropTargetRect; + float r_surface = r.GetWidth() * r.GetHeight(); + if (r_surface <= g.DragDropAcceptIdCurrRectSurface) + { + g.DragDropAcceptFlags = flags; + g.DragDropAcceptIdCurr = g.DragDropTargetId; + g.DragDropAcceptIdCurrRectSurface = r_surface; + } + + // Render default drop visuals + payload.Preview = was_accepted_previously; + flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that live for 1 frame) + if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) + window->DrawList->AddRect(r.Min - ImVec2(3.5f,3.5f), r.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); + + g.DragDropAcceptFrameCount = g.FrameCount; + payload.Delivery = was_accepted_previously && !IsMouseDown(g.DragDropMouseButton); // For extern drag sources affecting os window focus, it's easier to just test !IsMouseDown() instead of IsMouseReleased() + if (!payload.Delivery && !(flags & ImGuiDragDropFlags_AcceptBeforeDelivery)) + return NULL; + + return &payload; +} + +// FIXME-DRAGDROP: Settle on a proper default visuals for drop target. +void ImGui::RenderDragDropTargetRect(const ImRect& bb) +{ + GetWindowDrawList()->AddRect(bb.Min - ImVec2(3.5f, 3.5f), bb.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); +} + +const ImGuiPayload* ImGui::GetDragDropPayload() +{ + ImGuiContext& g = *GImGui; + return (g.DragDropActive && g.DragDropPayload.DataFrameCount != -1) ? &g.DragDropPayload : NULL; +} + +// We don't really use/need this now, but added it for the sake of consistency and because we might need it later. +void ImGui::EndDragDropTarget() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinTarget); + g.DragDropWithinTarget = false; +} + +//----------------------------------------------------------------------------- +// [SECTION] LOGGING/CAPTURING +//----------------------------------------------------------------------------- +// All text output from the interface can be captured into tty/file/clipboard. +// By default, tree nodes are automatically opened during logging. +//----------------------------------------------------------------------------- + +// Pass text data straight to log (without being displayed) +static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) +{ + if (g.LogFile) + { + g.LogBuffer.Buf.resize(0); + g.LogBuffer.appendfv(fmt, args); + ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); + } + else + { + g.LogBuffer.appendfv(fmt, args); + } +} + +void ImGui::LogText(const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + va_list args; + va_start(args, fmt); + LogTextV(g, fmt, args); + va_end(args); +} + +void ImGui::LogTextV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + LogTextV(g, fmt, args); +} + +// Internal version that takes a position to decide on newline placement and pad items according to their depth. +// We split text into individual lines to add current tree level padding +// FIXME: This code is a little complicated perhaps, considering simplifying the whole system. +void ImGui::LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const char* prefix = g.LogNextPrefix; + const char* suffix = g.LogNextSuffix; + g.LogNextPrefix = g.LogNextSuffix = NULL; + + if (!text_end) + text_end = FindRenderedTextEnd(text, text_end); + + const bool log_new_line = ref_pos && (ref_pos->y > g.LogLinePosY + g.Style.FramePadding.y + 1); + if (ref_pos) + g.LogLinePosY = ref_pos->y; + if (log_new_line) + { + LogText(IM_NEWLINE); + g.LogLineFirstItem = true; + } + + if (prefix) + LogRenderedText(ref_pos, prefix, prefix + strlen(prefix)); // Calculate end ourself to ensure "##" are included here. + + // Re-adjust padding if we have popped out of our starting depth + if (g.LogDepthRef > window->DC.TreeDepth) + g.LogDepthRef = window->DC.TreeDepth; + const int tree_depth = (window->DC.TreeDepth - g.LogDepthRef); + + const char* text_remaining = text; + for (;;) + { + // Split the string. Each new line (after a '\n') is followed by indentation corresponding to the current depth of our log entry. + // We don't add a trailing \n yet to allow a subsequent item on the same line to be captured. + const char* line_start = text_remaining; + const char* line_end = ImStreolRange(line_start, text_end); + const bool is_last_line = (line_end == text_end); + if (line_start != line_end || !is_last_line) + { + const int line_length = (int)(line_end - line_start); + const int indentation = g.LogLineFirstItem ? tree_depth * 4 : 1; + LogText("%*s%.*s", indentation, "", line_length, line_start); + g.LogLineFirstItem = false; + if (*line_end == '\n') + { + LogText(IM_NEWLINE); + g.LogLineFirstItem = true; + } + } + if (is_last_line) + break; + text_remaining = line_end + 1; + } + + if (suffix) + LogRenderedText(ref_pos, suffix, suffix + strlen(suffix)); +} + +// Start logging/capturing text output +void ImGui::LogBegin(ImGuiLogType type, int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(g.LogEnabled == false); + IM_ASSERT(g.LogFile == NULL); + IM_ASSERT(g.LogBuffer.empty()); + g.LogEnabled = true; + g.LogType = type; + g.LogNextPrefix = g.LogNextSuffix = NULL; + g.LogDepthRef = window->DC.TreeDepth; + g.LogDepthToExpand = ((auto_open_depth >= 0) ? auto_open_depth : g.LogDepthToExpandDefault); + g.LogLinePosY = FLT_MAX; + g.LogLineFirstItem = true; +} + +// Important: doesn't copy underlying data, use carefully (prefix/suffix must be in scope at the time of the next LogRenderedText) +void ImGui::LogSetNextTextDecoration(const char* prefix, const char* suffix) +{ + ImGuiContext& g = *GImGui; + g.LogNextPrefix = prefix; + g.LogNextSuffix = suffix; +} + +void ImGui::LogToTTY(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + IM_UNUSED(auto_open_depth); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + LogBegin(ImGuiLogType_TTY, auto_open_depth); + g.LogFile = stdout; +#endif +} + +// Start logging/capturing text output to given file +void ImGui::LogToFile(int auto_open_depth, const char* filename) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + + // FIXME: We could probably open the file in text mode "at", however note that clipboard/buffer logging will still + // be subject to outputting OS-incompatible carriage return if within strings the user doesn't use IM_NEWLINE. + // By opening the file in binary mode "ab" we have consistent output everywhere. + if (!filename) + filename = g.IO.LogFilename; + if (!filename || !filename[0]) + return; + ImFileHandle f = ImFileOpen(filename, "ab"); + if (!f) + { + IM_ASSERT(0); + return; + } + + LogBegin(ImGuiLogType_File, auto_open_depth); + g.LogFile = f; +} + +// Start logging/capturing text output to clipboard +void ImGui::LogToClipboard(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Clipboard, auto_open_depth); +} + +void ImGui::LogToBuffer(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Buffer, auto_open_depth); +} + +void ImGui::LogFinish() +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + LogText(IM_NEWLINE); + switch (g.LogType) + { + case ImGuiLogType_TTY: +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + fflush(g.LogFile); +#endif + break; + case ImGuiLogType_File: + ImFileClose(g.LogFile); + break; + case ImGuiLogType_Buffer: + break; + case ImGuiLogType_Clipboard: + if (!g.LogBuffer.empty()) + SetClipboardText(g.LogBuffer.begin()); + break; + case ImGuiLogType_None: + IM_ASSERT(0); + break; + } + + g.LogEnabled = false; + g.LogType = ImGuiLogType_None; + g.LogFile = NULL; + g.LogBuffer.clear(); +} + +// Helper to display logging buttons +// FIXME-OBSOLETE: We should probably obsolete this and let the user have their own helper (this is one of the oldest function alive!) +void ImGui::LogButtons() +{ + ImGuiContext& g = *GImGui; + + PushID("LogButtons"); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + const bool log_to_tty = Button("Log To TTY"); SameLine(); +#else + const bool log_to_tty = false; +#endif + const bool log_to_file = Button("Log To File"); SameLine(); + const bool log_to_clipboard = Button("Log To Clipboard"); SameLine(); + PushAllowKeyboardFocus(false); + SetNextItemWidth(80.0f); + SliderInt("Default Depth", &g.LogDepthToExpandDefault, 0, 9, NULL); + PopAllowKeyboardFocus(); + PopID(); + + // Start logging at the end of the function so that the buttons don't appear in the log + if (log_to_tty) + LogToTTY(); + if (log_to_file) + LogToFile(); + if (log_to_clipboard) + LogToClipboard(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] SETTINGS +//----------------------------------------------------------------------------- +// - UpdateSettings() [Internal] +// - MarkIniSettingsDirty() [Internal] +// - CreateNewWindowSettings() [Internal] +// - FindWindowSettings() [Internal] +// - FindOrCreateWindowSettings() [Internal] +// - FindSettingsHandler() [Internal] +// - ClearIniSettings() [Internal] +// - LoadIniSettingsFromDisk() +// - LoadIniSettingsFromMemory() +// - SaveIniSettingsToDisk() +// - SaveIniSettingsToMemory() +// - WindowSettingsHandler_***() [Internal] +//----------------------------------------------------------------------------- + +// Called by NewFrame() +void ImGui::UpdateSettings() +{ + // Load settings on first frame (if not explicitly loaded manually before) + ImGuiContext& g = *GImGui; + if (!g.SettingsLoaded) + { + IM_ASSERT(g.SettingsWindows.empty()); + if (g.IO.IniFilename) + LoadIniSettingsFromDisk(g.IO.IniFilename); + g.SettingsLoaded = true; + } + + // Save settings (with a delay after the last modification, so we don't spam disk too much) + if (g.SettingsDirtyTimer > 0.0f) + { + g.SettingsDirtyTimer -= g.IO.DeltaTime; + if (g.SettingsDirtyTimer <= 0.0f) + { + if (g.IO.IniFilename != NULL) + SaveIniSettingsToDisk(g.IO.IniFilename); + else + g.IO.WantSaveIniSettings = true; // Let user know they can call SaveIniSettingsToMemory(). user will need to clear io.WantSaveIniSettings themselves. + g.SettingsDirtyTimer = 0.0f; + } + } +} + +void ImGui::MarkIniSettingsDirty() +{ + ImGuiContext& g = *GImGui; + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +void ImGui::MarkIniSettingsDirty(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (!(window->Flags & ImGuiWindowFlags_NoSavedSettings)) + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +ImGuiWindowSettings* ImGui::CreateNewWindowSettings(const char* name) +{ + ImGuiContext& g = *GImGui; + +#if !IMGUI_DEBUG_INI_SETTINGS + // Skip to the "###" marker if any. We don't skip past to match the behavior of GetID() + // Preserve the full string when IMGUI_DEBUG_INI_SETTINGS is set to make .ini inspection easier. + if (const char* p = strstr(name, "###")) + name = p; +#endif + const size_t name_len = strlen(name); + + // Allocate chunk + const size_t chunk_size = sizeof(ImGuiWindowSettings) + name_len + 1; + ImGuiWindowSettings* settings = g.SettingsWindows.alloc_chunk(chunk_size); + IM_PLACEMENT_NEW(settings) ImGuiWindowSettings(); + settings->ID = ImHashStr(name, name_len); + memcpy(settings->GetName(), name, name_len + 1); // Store with zero terminator + + return settings; +} + +ImGuiWindowSettings* ImGui::FindWindowSettings(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->ID == id) + return settings; + return NULL; +} + +ImGuiWindowSettings* ImGui::FindOrCreateWindowSettings(const char* name) +{ + if (ImGuiWindowSettings* settings = FindWindowSettings(ImHashStr(name))) + return settings; + return CreateNewWindowSettings(name); +} + +void ImGui::AddSettingsHandler(const ImGuiSettingsHandler* handler) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(FindSettingsHandler(handler->TypeName) == NULL); + g.SettingsHandlers.push_back(*handler); +} + +void ImGui::RemoveSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + if (ImGuiSettingsHandler* handler = FindSettingsHandler(type_name)) + g.SettingsHandlers.erase(handler); +} + +ImGuiSettingsHandler* ImGui::FindSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + const ImGuiID type_hash = ImHashStr(type_name); + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].TypeHash == type_hash) + return &g.SettingsHandlers[handler_n]; + return NULL; +} + +void ImGui::ClearIniSettings() +{ + ImGuiContext& g = *GImGui; + g.SettingsIniData.clear(); + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].ClearAllFn) + g.SettingsHandlers[handler_n].ClearAllFn(&g, &g.SettingsHandlers[handler_n]); +} + +void ImGui::LoadIniSettingsFromDisk(const char* ini_filename) +{ + size_t file_data_size = 0; + char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size); + if (!file_data) + return; + if (file_data_size > 0) + LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); + IM_FREE(file_data); +} + +// Zero-tolerance, no error reporting, cheap .ini parsing +void ImGui::LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + //IM_ASSERT(!g.WithinFrameScope && "Cannot be called between NewFrame() and EndFrame()"); + //IM_ASSERT(g.SettingsLoaded == false && g.FrameCount == 0); + + // For user convenience, we allow passing a non zero-terminated string (hence the ini_size parameter). + // For our convenience and to make the code simpler, we'll also write zero-terminators within the buffer. So let's create a writable copy.. + if (ini_size == 0) + ini_size = strlen(ini_data); + g.SettingsIniData.Buf.resize((int)ini_size + 1); + char* const buf = g.SettingsIniData.Buf.Data; + char* const buf_end = buf + ini_size; + memcpy(buf, ini_data, ini_size); + buf_end[0] = 0; + + // Call pre-read handlers + // Some types will clear their data (e.g. dock information) some types will allow merge/override (window) + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].ReadInitFn) + g.SettingsHandlers[handler_n].ReadInitFn(&g, &g.SettingsHandlers[handler_n]); + + void* entry_data = NULL; + ImGuiSettingsHandler* entry_handler = NULL; + + char* line_end = NULL; + for (char* line = buf; line < buf_end; line = line_end + 1) + { + // Skip new lines markers, then find end of the line + while (*line == '\n' || *line == '\r') + line++; + line_end = line; + while (line_end < buf_end && *line_end != '\n' && *line_end != '\r') + line_end++; + line_end[0] = 0; + if (line[0] == ';') + continue; + if (line[0] == '[' && line_end > line && line_end[-1] == ']') + { + // Parse "[Type][Name]". Note that 'Name' can itself contains [] characters, which is acceptable with the current format and parsing code. + line_end[-1] = 0; + const char* name_end = line_end - 1; + const char* type_start = line + 1; + char* type_end = (char*)(void*)ImStrchrRange(type_start, name_end, ']'); + const char* name_start = type_end ? ImStrchrRange(type_end + 1, name_end, '[') : NULL; + if (!type_end || !name_start) + continue; + *type_end = 0; // Overwrite first ']' + name_start++; // Skip second '[' + entry_handler = FindSettingsHandler(type_start); + entry_data = entry_handler ? entry_handler->ReadOpenFn(&g, entry_handler, name_start) : NULL; + } + else if (entry_handler != NULL && entry_data != NULL) + { + // Let type handler parse the line + entry_handler->ReadLineFn(&g, entry_handler, entry_data, line); + } + } + g.SettingsLoaded = true; + + // [DEBUG] Restore untouched copy so it can be browsed in Metrics (not strictly necessary) + memcpy(buf, ini_data, ini_size); + + // Call post-read handlers + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].ApplyAllFn) + g.SettingsHandlers[handler_n].ApplyAllFn(&g, &g.SettingsHandlers[handler_n]); +} + +void ImGui::SaveIniSettingsToDisk(const char* ini_filename) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + if (!ini_filename) + return; + + size_t ini_data_size = 0; + const char* ini_data = SaveIniSettingsToMemory(&ini_data_size); + ImFileHandle f = ImFileOpen(ini_filename, "wt"); + if (!f) + return; + ImFileWrite(ini_data, sizeof(char), ini_data_size, f); + ImFileClose(f); +} + +// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer +const char* ImGui::SaveIniSettingsToMemory(size_t* out_size) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + g.SettingsIniData.Buf.resize(0); + g.SettingsIniData.Buf.push_back(0); + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + { + ImGuiSettingsHandler* handler = &g.SettingsHandlers[handler_n]; + handler->WriteAllFn(&g, handler, &g.SettingsIniData); + } + if (out_size) + *out_size = (size_t)g.SettingsIniData.size(); + return g.SettingsIniData.c_str(); +} + +static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Windows.Size; i++) + g.Windows[i]->SettingsOffset = -1; + g.SettingsWindows.clear(); +} + +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + ImGuiWindowSettings* settings = ImGui::FindOrCreateWindowSettings(name); + ImGuiID id = settings->ID; + *settings = ImGuiWindowSettings(); // Clear existing if recycling previous entry + settings->ID = id; + settings->WantApply = true; + return (void*)settings; +} + +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +{ + ImGuiWindowSettings* settings = (ImGuiWindowSettings*)entry; + int x, y; + int i; + if (sscanf(line, "Pos=%i,%i", &x, &y) == 2) { settings->Pos = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Size=%i,%i", &x, &y) == 2) { settings->Size = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Collapsed=%d", &i) == 1) { settings->Collapsed = (i != 0); } +} + +// Apply to existing windows (if any) +static void WindowSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->WantApply) + { + if (ImGuiWindow* window = ImGui::FindWindowByID(settings->ID)) + ApplyWindowSettings(window, settings); + settings->WantApply = false; + } +} + +static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + // Gather data from windows that were active during this session + // (if a window wasn't opened in this session we preserve its settings) + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Flags & ImGuiWindowFlags_NoSavedSettings) + continue; + + ImGuiWindowSettings* settings = (window->SettingsOffset != -1) ? g.SettingsWindows.ptr_from_offset(window->SettingsOffset) : ImGui::FindWindowSettings(window->ID); + if (!settings) + { + settings = ImGui::CreateNewWindowSettings(window->Name); + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + } + IM_ASSERT(settings->ID == window->ID); + settings->Pos = ImVec2ih(window->Pos); + settings->Size = ImVec2ih(window->SizeFull); + + settings->Collapsed = window->Collapsed; + } + + // Write to text buffer + buf->reserve(buf->size() + g.SettingsWindows.size() * 6); // ballpark reserve + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + { + const char* settings_name = settings->GetName(); + buf->appendf("[%s][%s]\n", handler->TypeName, settings_name); + buf->appendf("Pos=%d,%d\n", settings->Pos.x, settings->Pos.y); + buf->appendf("Size=%d,%d\n", settings->Size.x, settings->Size.y); + buf->appendf("Collapsed=%d\n", settings->Collapsed); + buf->append("\n"); + } +} + + +//----------------------------------------------------------------------------- +// [SECTION] LOCALIZATION +//----------------------------------------------------------------------------- + +void ImGui::LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count) +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < count; n++) + g.LocalizationTable[entries[n].Key] = entries[n].Text; +} + + +//----------------------------------------------------------------------------- +// [SECTION] VIEWPORTS, PLATFORM WINDOWS +//----------------------------------------------------------------------------- +// - GetMainViewport() +// - SetWindowViewport() [Internal] +// - UpdateViewportsNewFrame() [Internal] +// (this section is more complete in the 'docking' branch) +//----------------------------------------------------------------------------- + +ImGuiViewport* ImGui::GetMainViewport() +{ + ImGuiContext& g = *GImGui; + return g.Viewports[0]; +} + +void ImGui::SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) +{ + window->Viewport = viewport; +} + +// Update viewports and monitor infos +static void ImGui::UpdateViewportsNewFrame() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Viewports.Size == 1); + + // Update main viewport with current platform position. + // FIXME-VIEWPORT: Size is driven by backend/user code for backward-compatibility but we should aim to make this more consistent. + ImGuiViewportP* main_viewport = g.Viewports[0]; + main_viewport->Flags = ImGuiViewportFlags_IsPlatformWindow | ImGuiViewportFlags_OwnedByApp; + main_viewport->Pos = ImVec2(0.0f, 0.0f); + main_viewport->Size = g.IO.DisplaySize; + + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + + // Lock down space taken by menu bars and status bars, reset the offset for fucntions like BeginMainMenuBar() to alter them again. + viewport->WorkOffsetMin = viewport->BuildWorkOffsetMin; + viewport->WorkOffsetMax = viewport->BuildWorkOffsetMax; + viewport->BuildWorkOffsetMin = viewport->BuildWorkOffsetMax = ImVec2(0.0f, 0.0f); + viewport->UpdateWorkRect(); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] DOCKING +//----------------------------------------------------------------------------- + +// (this section is filled in the 'docking' branch) + + +//----------------------------------------------------------------------------- +// [SECTION] PLATFORM DEPENDENT HELPERS +//----------------------------------------------------------------------------- + +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) + +#ifdef _MSC_VER +#pragma comment(lib, "user32") +#pragma comment(lib, "kernel32") +#endif + +// Win32 clipboard implementation +// We use g.ClipboardHandlerData for temporary storage to ensure it is freed on Shutdown() +static const char* GetClipboardTextFn_DefaultImpl(void*) +{ + ImGuiContext& g = *GImGui; + g.ClipboardHandlerData.clear(); + if (!::OpenClipboard(NULL)) + return NULL; + HANDLE wbuf_handle = ::GetClipboardData(CF_UNICODETEXT); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return NULL; + } + if (const WCHAR* wbuf_global = (const WCHAR*)::GlobalLock(wbuf_handle)) + { + int buf_len = ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, NULL, 0, NULL, NULL); + g.ClipboardHandlerData.resize(buf_len); + ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, g.ClipboardHandlerData.Data, buf_len, NULL, NULL); + } + ::GlobalUnlock(wbuf_handle); + ::CloseClipboard(); + return g.ClipboardHandlerData.Data; +} + +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!::OpenClipboard(NULL)) + return; + const int wbuf_length = ::MultiByteToWideChar(CP_UTF8, 0, text, -1, NULL, 0); + HGLOBAL wbuf_handle = ::GlobalAlloc(GMEM_MOVEABLE, (SIZE_T)wbuf_length * sizeof(WCHAR)); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return; + } + WCHAR* wbuf_global = (WCHAR*)::GlobalLock(wbuf_handle); + ::MultiByteToWideChar(CP_UTF8, 0, text, -1, wbuf_global, wbuf_length); + ::GlobalUnlock(wbuf_handle); + ::EmptyClipboard(); + if (::SetClipboardData(CF_UNICODETEXT, wbuf_handle) == NULL) + ::GlobalFree(wbuf_handle); + ::CloseClipboard(); +} + +#elif defined(__APPLE__) && TARGET_OS_OSX && defined(IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS) + +#include // Use old API to avoid need for separate .mm file +static PasteboardRef main_clipboard = 0; + +// OSX clipboard implementation +// If you enable this you will need to add '-framework ApplicationServices' to your linker command-line! +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardClear(main_clipboard); + CFDataRef cf_data = CFDataCreate(kCFAllocatorDefault, (const UInt8*)text, strlen(text)); + if (cf_data) + { + PasteboardPutItemFlavor(main_clipboard, (PasteboardItemID)1, CFSTR("public.utf8-plain-text"), cf_data, 0); + CFRelease(cf_data); + } +} + +static const char* GetClipboardTextFn_DefaultImpl(void*) +{ + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardSynchronize(main_clipboard); + + ItemCount item_count = 0; + PasteboardGetItemCount(main_clipboard, &item_count); + for (ItemCount i = 0; i < item_count; i++) + { + PasteboardItemID item_id = 0; + PasteboardGetItemIdentifier(main_clipboard, i + 1, &item_id); + CFArrayRef flavor_type_array = 0; + PasteboardCopyItemFlavors(main_clipboard, item_id, &flavor_type_array); + for (CFIndex j = 0, nj = CFArrayGetCount(flavor_type_array); j < nj; j++) + { + CFDataRef cf_data; + if (PasteboardCopyItemFlavorData(main_clipboard, item_id, CFSTR("public.utf8-plain-text"), &cf_data) == noErr) + { + ImGuiContext& g = *GImGui; + g.ClipboardHandlerData.clear(); + int length = (int)CFDataGetLength(cf_data); + g.ClipboardHandlerData.resize(length + 1); + CFDataGetBytes(cf_data, CFRangeMake(0, length), (UInt8*)g.ClipboardHandlerData.Data); + g.ClipboardHandlerData[length] = 0; + CFRelease(cf_data); + return g.ClipboardHandlerData.Data; + } + } + } + return NULL; +} + +#else + +// Local Dear ImGui-only clipboard implementation, if user hasn't defined better clipboard handlers. +static const char* GetClipboardTextFn_DefaultImpl(void*) +{ + ImGuiContext& g = *GImGui; + return g.ClipboardHandlerData.empty() ? NULL : g.ClipboardHandlerData.begin(); +} + +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + ImGuiContext& g = *GImGui; + g.ClipboardHandlerData.clear(); + const char* text_end = text + strlen(text); + g.ClipboardHandlerData.resize((int)(text_end - text) + 1); + memcpy(&g.ClipboardHandlerData[0], text, (size_t)(text_end - text)); + g.ClipboardHandlerData[(int)(text_end - text)] = 0; +} + +#endif + +// Win32 API IME support (for Asian languages, etc.) +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) + +#include +#ifdef _MSC_VER +#pragma comment(lib, "imm32") +#endif + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data) +{ + // Notify OS Input Method Editor of text input position + HWND hwnd = (HWND)viewport->PlatformHandleRaw; +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (hwnd == 0) + hwnd = (HWND)ImGui::GetIO().ImeWindowHandle; +#endif + if (hwnd == 0) + return; + + //::ImmAssociateContextEx(hwnd, NULL, data->WantVisible ? IACE_DEFAULT : 0); + if (HIMC himc = ::ImmGetContext(hwnd)) + { + COMPOSITIONFORM composition_form = {}; + composition_form.ptCurrentPos.x = (LONG)data->InputPos.x; + composition_form.ptCurrentPos.y = (LONG)data->InputPos.y; + composition_form.dwStyle = CFS_FORCE_POSITION; + ::ImmSetCompositionWindow(himc, &composition_form); + CANDIDATEFORM candidate_form = {}; + candidate_form.dwStyle = CFS_CANDIDATEPOS; + candidate_form.ptCurrentPos.x = (LONG)data->InputPos.x; + candidate_form.ptCurrentPos.y = (LONG)data->InputPos.y; + ::ImmSetCandidateWindow(himc, &candidate_form); + ::ImmReleaseContext(hwnd, himc); + } +} + +#else + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport*, ImGuiPlatformImeData*) {} + +#endif + +//----------------------------------------------------------------------------- +// [SECTION] METRICS/DEBUGGER WINDOW +//----------------------------------------------------------------------------- +// - RenderViewportThumbnail() [Internal] +// - RenderViewportsThumbnails() [Internal] +// - DebugTextEncoding() +// - MetricsHelpMarker() [Internal] +// - ShowFontAtlas() [Internal] +// - ShowMetricsWindow() +// - DebugNodeColumns() [Internal] +// - DebugNodeDrawList() [Internal] +// - DebugNodeDrawCmdShowMeshAndBoundingBox() [Internal] +// - DebugNodeFont() [Internal] +// - DebugNodeFontGlyph() [Internal] +// - DebugNodeStorage() [Internal] +// - DebugNodeTabBar() [Internal] +// - DebugNodeViewport() [Internal] +// - DebugNodeWindow() [Internal] +// - DebugNodeWindowSettings() [Internal] +// - DebugNodeWindowsList() [Internal] +// - DebugNodeWindowsListByBeginStackParent() [Internal] +//----------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + +void ImGui::DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImVec2 scale = bb.GetSize() / viewport->Size; + ImVec2 off = bb.Min - viewport->Pos * scale; + float alpha_mul = 1.0f; + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Border, alpha_mul * 0.40f)); + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* thumb_window = g.Windows[i]; + if (!thumb_window->WasActive || (thumb_window->Flags & ImGuiWindowFlags_ChildWindow)) + continue; + + ImRect thumb_r = thumb_window->Rect(); + ImRect title_r = thumb_window->TitleBarRect(); + thumb_r = ImRect(ImFloor(off + thumb_r.Min * scale), ImFloor(off + thumb_r.Max * scale)); + title_r = ImRect(ImFloor(off + title_r.Min * scale), ImFloor(off + ImVec2(title_r.Max.x, title_r.Min.y) * scale) + ImVec2(0,5)); // Exaggerate title bar height + thumb_r.ClipWithFull(bb); + title_r.ClipWithFull(bb); + const bool window_is_focused = (g.NavWindow && thumb_window->RootWindowForTitleBarHighlight == g.NavWindow->RootWindowForTitleBarHighlight); + window->DrawList->AddRectFilled(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_WindowBg, alpha_mul)); + window->DrawList->AddRectFilled(title_r.Min, title_r.Max, GetColorU32(window_is_focused ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg, alpha_mul)); + window->DrawList->AddRect(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); + window->DrawList->AddText(g.Font, g.FontSize * 1.0f, title_r.Min, GetColorU32(ImGuiCol_Text, alpha_mul), thumb_window->Name, FindRenderedTextEnd(thumb_window->Name)); + } + draw_list->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); +} + +static void RenderViewportsThumbnails() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We don't display full monitor bounds (we could, but it often looks awkward), instead we display just enough to cover all of our viewports. + float SCALE = 1.0f / 8.0f; + ImRect bb_full(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + for (int n = 0; n < g.Viewports.Size; n++) + bb_full.Add(g.Viewports[n]->GetMainRect()); + ImVec2 p = window->DC.CursorPos; + ImVec2 off = p - bb_full.Min * SCALE; + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + ImRect viewport_draw_bb(off + (viewport->Pos) * SCALE, off + (viewport->Pos + viewport->Size) * SCALE); + ImGui::DebugRenderViewportThumbnail(window->DrawList, viewport, viewport_draw_bb); + } + ImGui::Dummy(bb_full.GetSize() * SCALE); +} + +// Helper tool to diagnose between text encoding issues and font loading issues. Pass your UTF-8 string and verify that there are correct. +void ImGui::DebugTextEncoding(const char* str) +{ + Text("Text: \"%s\"", str); + if (!BeginTable("list", 4, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit)) + return; + TableSetupColumn("Offset"); + TableSetupColumn("UTF-8"); + TableSetupColumn("Glyph"); + TableSetupColumn("Codepoint"); + TableHeadersRow(); + for (const char* p = str; *p != 0; ) + { + unsigned int c; + const int c_utf8_len = ImTextCharFromUtf8(&c, p, NULL); + TableNextColumn(); + Text("%d", (int)(p - str)); + TableNextColumn(); + for (int byte_index = 0; byte_index < c_utf8_len; byte_index++) + { + if (byte_index > 0) + SameLine(); + Text("0x%02X", (int)(unsigned char)p[byte_index]); + } + TableNextColumn(); + if (GetFont()->FindGlyphNoFallback((ImWchar)c)) + TextUnformatted(p, p + c_utf8_len); + else + TextUnformatted((c == IM_UNICODE_CODEPOINT_INVALID) ? "[invalid]" : "[missing]"); + TableNextColumn(); + Text("U+%04X", (int)c); + p += c_utf8_len; + } + EndTable(); +} + +// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds. +static void MetricsHelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +// [DEBUG] List fonts in a font atlas and display its texture +void ImGui::ShowFontAtlas(ImFontAtlas* atlas) +{ + for (int i = 0; i < atlas->Fonts.Size; i++) + { + ImFont* font = atlas->Fonts[i]; + PushID(font); + DebugNodeFont(font); + PopID(); + } + if (TreeNode("Atlas texture", "Atlas texture (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) + { + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); + ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); + Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), tint_col, border_col); + TreePop(); + } +} + +void ImGui::ShowMetricsWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + if (cfg->ShowDebugLog) + ShowDebugLogWindow(&cfg->ShowDebugLog); + if (cfg->ShowStackTool) + ShowStackToolWindow(&cfg->ShowStackTool); + + if (!Begin("Dear ImGui Metrics/Debugger", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + // Basic info + Text("Dear ImGui %s", GetVersion()); + Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + Text("%d vertices, %d indices (%d triangles)", io.MetricsRenderVertices, io.MetricsRenderIndices, io.MetricsRenderIndices / 3); + Text("%d visible windows, %d active allocations", io.MetricsRenderWindows, io.MetricsActiveAllocations); + //SameLine(); if (SmallButton("GC")) { g.GcCompactAll = true; } + + Separator(); + + // Debugging enums + enum { WRT_OuterRect, WRT_OuterRectClipped, WRT_InnerRect, WRT_InnerClipRect, WRT_WorkRect, WRT_Content, WRT_ContentIdeal, WRT_ContentRegionRect, WRT_Count }; // Windows Rect Type + const char* wrt_rects_names[WRT_Count] = { "OuterRect", "OuterRectClipped", "InnerRect", "InnerClipRect", "WorkRect", "Content", "ContentIdeal", "ContentRegionRect" }; + enum { TRT_OuterRect, TRT_InnerRect, TRT_WorkRect, TRT_HostClipRect, TRT_InnerClipRect, TRT_BackgroundClipRect, TRT_ColumnsRect, TRT_ColumnsWorkRect, TRT_ColumnsClipRect, TRT_ColumnsContentHeadersUsed, TRT_ColumnsContentHeadersIdeal, TRT_ColumnsContentFrozen, TRT_ColumnsContentUnfrozen, TRT_Count }; // Tables Rect Type + const char* trt_rects_names[TRT_Count] = { "OuterRect", "InnerRect", "WorkRect", "HostClipRect", "InnerClipRect", "BackgroundClipRect", "ColumnsRect", "ColumnsWorkRect", "ColumnsClipRect", "ColumnsContentHeadersUsed", "ColumnsContentHeadersIdeal", "ColumnsContentFrozen", "ColumnsContentUnfrozen" }; + if (cfg->ShowWindowsRectsType < 0) + cfg->ShowWindowsRectsType = WRT_WorkRect; + if (cfg->ShowTablesRectsType < 0) + cfg->ShowTablesRectsType = TRT_WorkRect; + + struct Funcs + { + static ImRect GetTableRect(ImGuiTable* table, int rect_type, int n) + { + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); // Always using last submitted instance + if (rect_type == TRT_OuterRect) { return table->OuterRect; } + else if (rect_type == TRT_InnerRect) { return table->InnerRect; } + else if (rect_type == TRT_WorkRect) { return table->WorkRect; } + else if (rect_type == TRT_HostClipRect) { return table->HostClipRect; } + else if (rect_type == TRT_InnerClipRect) { return table->InnerClipRect; } + else if (rect_type == TRT_BackgroundClipRect) { return table->BgClipRect; } + else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table_instance->LastOuterHeight); } + else if (rect_type == TRT_ColumnsWorkRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->WorkRect.Min.y, c->WorkMaxX, table->WorkRect.Max.y); } + else if (rect_type == TRT_ColumnsClipRect) { ImGuiTableColumn* c = &table->Columns[n]; return c->ClipRect; } + else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } // Note: y1/y2 not always accurate + else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } + else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } + else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } + IM_ASSERT(0); + return ImRect(); + } + + static ImRect GetWindowRect(ImGuiWindow* window, int rect_type) + { + if (rect_type == WRT_OuterRect) { return window->Rect(); } + else if (rect_type == WRT_OuterRectClipped) { return window->OuterRectClipped; } + else if (rect_type == WRT_InnerRect) { return window->InnerRect; } + else if (rect_type == WRT_InnerClipRect) { return window->InnerClipRect; } + else if (rect_type == WRT_WorkRect) { return window->WorkRect; } + else if (rect_type == WRT_Content) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSize); } + else if (rect_type == WRT_ContentIdeal) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSizeIdeal); } + else if (rect_type == WRT_ContentRegionRect) { return window->ContentRegionRect; } + IM_ASSERT(0); + return ImRect(); + } + }; + + // Tools + if (TreeNode("Tools")) + { + bool show_encoding_viewer = TreeNode("UTF-8 Encoding viewer"); + SameLine(); + MetricsHelpMarker("You can also call ImGui::DebugTextEncoding() from your code with a given string to test that your UTF-8 encoding settings are correct."); + if (show_encoding_viewer) + { + static char buf[100] = ""; + SetNextItemWidth(-FLT_MIN); + InputText("##Text", buf, IM_ARRAYSIZE(buf)); + if (buf[0] != 0) + DebugTextEncoding(buf); + TreePop(); + } + + // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. + if (Checkbox("Show Item Picker", &g.DebugItemPickerActive) && g.DebugItemPickerActive) + DebugStartItemPicker(); + SameLine(); + MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); + + // Stack Tool is your best friend! + Checkbox("Show Debug Log", &cfg->ShowDebugLog); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowDebugLogWindow() from your code."); + + // Stack Tool is your best friend! + Checkbox("Show Stack Tool", &cfg->ShowStackTool); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowStackToolWindow() from your code."); + + Checkbox("Show windows begin order", &cfg->ShowWindowsBeginOrder); + Checkbox("Show windows rectangles", &cfg->ShowWindowsRects); + SameLine(); + SetNextItemWidth(GetFontSize() * 12); + cfg->ShowWindowsRects |= Combo("##show_windows_rect_type", &cfg->ShowWindowsRectsType, wrt_rects_names, WRT_Count, WRT_Count); + if (cfg->ShowWindowsRects && g.NavWindow != NULL) + { + BulletText("'%s':", g.NavWindow->Name); + Indent(); + for (int rect_n = 0; rect_n < WRT_Count; rect_n++) + { + ImRect r = Funcs::GetWindowRect(g.NavWindow, rect_n); + Text("(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), wrt_rects_names[rect_n]); + } + Unindent(); + } + + Checkbox("Show tables rectangles", &cfg->ShowTablesRects); + SameLine(); + SetNextItemWidth(GetFontSize() * 12); + cfg->ShowTablesRects |= Combo("##show_table_rects_type", &cfg->ShowTablesRectsType, trt_rects_names, TRT_Count, TRT_Count); + if (cfg->ShowTablesRects && g.NavWindow != NULL) + { + for (int table_n = 0; table_n < g.Tables.GetMapSize(); table_n++) + { + ImGuiTable* table = g.Tables.TryGetMapData(table_n); + if (table == NULL || table->LastFrameActive < g.FrameCount - 1 || (table->OuterWindow != g.NavWindow && table->InnerWindow != g.NavWindow)) + continue; + + BulletText("Table 0x%08X (%d columns, in '%s')", table->ID, table->ColumnsCount, table->OuterWindow->Name); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(table->OuterRect.Min - ImVec2(1, 1), table->OuterRect.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + Indent(); + char buf[128]; + for (int rect_n = 0; rect_n < TRT_Count; rect_n++) + { + if (rect_n >= TRT_ColumnsRect) + { + if (rect_n != TRT_ColumnsRect && rect_n != TRT_ColumnsClipRect) + continue; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImRect r = Funcs::GetTableRect(table, rect_n, column_n); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) Col %d %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), column_n, trt_rects_names[rect_n]); + Selectable(buf); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + } + } + else + { + ImRect r = Funcs::GetTableRect(table, rect_n, -1); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), trt_rects_names[rect_n]); + Selectable(buf); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + } + } + Unindent(); + } + } + + TreePop(); + } + + // Windows + if (TreeNode("Windows", "Windows (%d)", g.Windows.Size)) + { + //SetNextItemOpen(true, ImGuiCond_Once); + DebugNodeWindowsList(&g.Windows, "By display order"); + DebugNodeWindowsList(&g.WindowsFocusOrder, "By focus order (root windows)"); + if (TreeNode("By submission order (begin stack)")) + { + // Here we display windows in their submitted order/hierarchy, however note that the Begin stack doesn't constitute a Parent<>Child relationship! + ImVector& temp_buffer = g.WindowsTempSortBuffer; + temp_buffer.resize(0); + for (int i = 0; i < g.Windows.Size; i++) + if (g.Windows[i]->LastFrameActive + 1 >= g.FrameCount) + temp_buffer.push_back(g.Windows[i]); + struct Func { static int IMGUI_CDECL WindowComparerByBeginOrder(const void* lhs, const void* rhs) { return ((int)(*(const ImGuiWindow* const *)lhs)->BeginOrderWithinContext - (*(const ImGuiWindow* const*)rhs)->BeginOrderWithinContext); } }; + ImQsort(temp_buffer.Data, (size_t)temp_buffer.Size, sizeof(ImGuiWindow*), Func::WindowComparerByBeginOrder); + DebugNodeWindowsListByBeginStackParent(temp_buffer.Data, temp_buffer.Size, NULL); + TreePop(); + } + + TreePop(); + } + + // DrawLists + int drawlist_count = 0; + for (int viewport_i = 0; viewport_i < g.Viewports.Size; viewport_i++) + drawlist_count += g.Viewports[viewport_i]->DrawDataBuilder.GetDrawListCount(); + if (TreeNode("DrawLists", "DrawLists (%d)", drawlist_count)) + { + Checkbox("Show ImDrawCmd mesh when hovering", &cfg->ShowDrawCmdMesh); + Checkbox("Show ImDrawCmd bounding boxes when hovering", &cfg->ShowDrawCmdBoundingBoxes); + for (int viewport_i = 0; viewport_i < g.Viewports.Size; viewport_i++) + { + ImGuiViewportP* viewport = g.Viewports[viewport_i]; + for (int layer_i = 0; layer_i < IM_ARRAYSIZE(viewport->DrawDataBuilder.Layers); layer_i++) + for (int draw_list_i = 0; draw_list_i < viewport->DrawDataBuilder.Layers[layer_i].Size; draw_list_i++) + DebugNodeDrawList(NULL, viewport->DrawDataBuilder.Layers[layer_i][draw_list_i], "DrawList"); + } + TreePop(); + } + + // Viewports + if (TreeNode("Viewports", "Viewports (%d)", g.Viewports.Size)) + { + Indent(GetTreeNodeToLabelSpacing()); + RenderViewportsThumbnails(); + Unindent(GetTreeNodeToLabelSpacing()); + for (int i = 0; i < g.Viewports.Size; i++) + DebugNodeViewport(g.Viewports[i]); + TreePop(); + } + + // Details for Popups + if (TreeNode("Popups", "Popups (%d)", g.OpenPopupStack.Size)) + { + for (int i = 0; i < g.OpenPopupStack.Size; i++) + { + // As it's difficult to interact with tree nodes while popups are open, we display everything inline. + const ImGuiPopupData* popup_data = &g.OpenPopupStack[i]; + ImGuiWindow* window = popup_data->Window; + BulletText("PopupID: %08x, Window: '%s' (%s%s), BackupNavWindow '%s', ParentWindow '%s'", + popup_data->PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? "Child;" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? "Menu;" : "", + popup_data->BackupNavWindow ? popup_data->BackupNavWindow->Name : "NULL", window && window->ParentWindow ? window->ParentWindow->Name : "NULL"); + } + TreePop(); + } + + // Details for TabBars + if (TreeNode("TabBars", "Tab Bars (%d)", g.TabBars.GetAliveCount())) + { + for (int n = 0; n < g.TabBars.GetMapSize(); n++) + if (ImGuiTabBar* tab_bar = g.TabBars.TryGetMapData(n)) + { + PushID(tab_bar); + DebugNodeTabBar(tab_bar, "TabBar"); + PopID(); + } + TreePop(); + } + + // Details for Tables + if (TreeNode("Tables", "Tables (%d)", g.Tables.GetAliveCount())) + { + for (int n = 0; n < g.Tables.GetMapSize(); n++) + if (ImGuiTable* table = g.Tables.TryGetMapData(n)) + DebugNodeTable(table); + TreePop(); + } + + // Details for Fonts + ImFontAtlas* atlas = g.IO.Fonts; + if (TreeNode("Fonts", "Fonts (%d)", atlas->Fonts.Size)) + { + ShowFontAtlas(atlas); + TreePop(); + } + + // Details for InputText + if (TreeNode("InputText")) + { + DebugNodeInputTextState(&g.InputTextState); + TreePop(); + } + + // Details for Docking +#ifdef IMGUI_HAS_DOCK + if (TreeNode("Docking")) + { + TreePop(); + } +#endif // #ifdef IMGUI_HAS_DOCK + + // Settings + if (TreeNode("Settings")) + { + if (SmallButton("Clear")) + ClearIniSettings(); + SameLine(); + if (SmallButton("Save to memory")) + SaveIniSettingsToMemory(); + SameLine(); + if (SmallButton("Save to disk")) + SaveIniSettingsToDisk(g.IO.IniFilename); + SameLine(); + if (g.IO.IniFilename) + Text("\"%s\"", g.IO.IniFilename); + else + TextUnformatted(""); + Text("SettingsDirtyTimer %.2f", g.SettingsDirtyTimer); + if (TreeNode("SettingsHandlers", "Settings handlers: (%d)", g.SettingsHandlers.Size)) + { + for (int n = 0; n < g.SettingsHandlers.Size; n++) + BulletText("%s", g.SettingsHandlers[n].TypeName); + TreePop(); + } + if (TreeNode("SettingsWindows", "Settings packed data: Windows: %d bytes", g.SettingsWindows.size())) + { + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + DebugNodeWindowSettings(settings); + TreePop(); + } + + if (TreeNode("SettingsTables", "Settings packed data: Tables: %d bytes", g.SettingsTables.size())) + { + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + DebugNodeTableSettings(settings); + TreePop(); + } + +#ifdef IMGUI_HAS_DOCK +#endif // #ifdef IMGUI_HAS_DOCK + + if (TreeNode("SettingsIniData", "Settings unpacked data (.ini): %d bytes", g.SettingsIniData.size())) + { + InputTextMultiline("##Ini", (char*)(void*)g.SettingsIniData.c_str(), g.SettingsIniData.Buf.Size, ImVec2(-FLT_MIN, GetTextLineHeight() * 20), ImGuiInputTextFlags_ReadOnly); + TreePop(); + } + TreePop(); + } + + if (TreeNode("Key Owners & Shortcut Routing")) + { + TextUnformatted("Key Owners:"); + if (BeginListBox("##owners", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 8))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + continue; + Text("%s: 0x%08X%s", GetKeyName(key), owner_data->OwnerCurr, + owner_data->LockUntilRelease ? " LockUntilRelease" : owner_data->LockThisFrame ? " LockThisFrame" : ""); + DebugLocateItemOnHover(owner_data->OwnerCurr); + } + EndListBox(); + } + TextUnformatted("Shortcut Routing:"); + if (BeginListBox("##routes", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 8))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; ) + { + char key_chord_name[64]; + ImGuiKeyRoutingData* routing_data = &rt->Entries[idx]; + GetKeyChordName(key | routing_data->Mods, key_chord_name, IM_ARRAYSIZE(key_chord_name)); + Text("%s: 0x%08X", key_chord_name, routing_data->RoutingCurr); + DebugLocateItemOnHover(routing_data->RoutingCurr); + idx = routing_data->NextEntryIndex; + } + } + EndListBox(); + } + Text("(ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: 0x%X)", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + TreePop(); + } + + if (TreeNode("Internal state")) + { + Text("WINDOWING"); + Indent(); + Text("HoveredWindow: '%s'", g.HoveredWindow ? g.HoveredWindow->Name : "NULL"); + Text("HoveredWindow->Root: '%s'", g.HoveredWindow ? g.HoveredWindow->RootWindow->Name : "NULL"); + Text("HoveredWindowUnderMovingWindow: '%s'", g.HoveredWindowUnderMovingWindow ? g.HoveredWindowUnderMovingWindow->Name : "NULL"); + Text("MovingWindow: '%s'", g.MovingWindow ? g.MovingWindow->Name : "NULL"); + Unindent(); + + Text("ITEMS"); + Indent(); + Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, GetInputSourceName(g.ActiveIdSource)); + DebugLocateItemOnHover(g.ActiveId); + Text("ActiveIdWindow: '%s'", g.ActiveIdWindow ? g.ActiveIdWindow->Name : "NULL"); + Text("ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: %X", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + Text("HoveredId: 0x%08X (%.2f sec), AllowOverlap: %d", g.HoveredIdPreviousFrame, g.HoveredIdTimer, g.HoveredIdAllowOverlap); // Not displaying g.HoveredId as it is update mid-frame + Text("HoverDelayId: 0x%08X, Timer: %.2f, ClearTimer: %.2f", g.HoverDelayId, g.HoverDelayTimer, g.HoverDelayClearTimer); + Text("DragDrop: %d, SourceId = 0x%08X, Payload \"%s\" (%d bytes)", g.DragDropActive, g.DragDropPayload.SourceId, g.DragDropPayload.DataType, g.DragDropPayload.DataSize); + DebugLocateItemOnHover(g.DragDropPayload.SourceId); + Unindent(); + + Text("NAV,FOCUS"); + Indent(); + Text("NavWindow: '%s'", g.NavWindow ? g.NavWindow->Name : "NULL"); + Text("NavId: 0x%08X, NavLayer: %d", g.NavId, g.NavLayer); + DebugLocateItemOnHover(g.NavId); + Text("NavInputSource: %s", GetInputSourceName(g.NavInputSource)); + Text("NavActive: %d, NavVisible: %d", g.IO.NavActive, g.IO.NavVisible); + Text("NavActivateId/DownId/PressedId/InputId: %08X/%08X/%08X/%08X", g.NavActivateId, g.NavActivateDownId, g.NavActivatePressedId, g.NavActivateInputId); + Text("NavActivateFlags: %04X", g.NavActivateFlags); + Text("NavDisableHighlight: %d, NavDisableMouseHover: %d", g.NavDisableHighlight, g.NavDisableMouseHover); + Text("NavFocusScopeId = 0x%08X", g.NavFocusScopeId); + Text("NavWindowingTarget: '%s'", g.NavWindowingTarget ? g.NavWindowingTarget->Name : "NULL"); + Unindent(); + + TreePop(); + } + + // Overlay: Display windows Rectangles and Begin Order + if (cfg->ShowWindowsRects || cfg->ShowWindowsBeginOrder) + { + for (int n = 0; n < g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + if (!window->WasActive) + continue; + ImDrawList* draw_list = GetForegroundDrawList(window); + if (cfg->ShowWindowsRects) + { + ImRect r = Funcs::GetWindowRect(window, cfg->ShowWindowsRectsType); + draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); + } + if (cfg->ShowWindowsBeginOrder && !(window->Flags & ImGuiWindowFlags_ChildWindow)) + { + char buf[32]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "%d", window->BeginOrderWithinContext); + float font_size = GetFontSize(); + draw_list->AddRectFilled(window->Pos, window->Pos + ImVec2(font_size, font_size), IM_COL32(200, 100, 100, 255)); + draw_list->AddText(window->Pos, IM_COL32(255, 255, 255, 255), buf); + } + } + } + + // Overlay: Display Tables Rectangles + if (cfg->ShowTablesRects) + { + for (int table_n = 0; table_n < g.Tables.GetMapSize(); table_n++) + { + ImGuiTable* table = g.Tables.TryGetMapData(table_n); + if (table == NULL || table->LastFrameActive < g.FrameCount - 1) + continue; + ImDrawList* draw_list = GetForegroundDrawList(table->OuterWindow); + if (cfg->ShowTablesRectsType >= TRT_ColumnsRect) + { + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, column_n); + ImU32 col = (table->HoveredColumnBody == column_n) ? IM_COL32(255, 255, 128, 255) : IM_COL32(255, 0, 128, 255); + float thickness = (table->HoveredColumnBody == column_n) ? 3.0f : 1.0f; + draw_list->AddRect(r.Min, r.Max, col, 0.0f, 0, thickness); + } + } + else + { + ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, -1); + draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); + } + } + } + +#ifdef IMGUI_HAS_DOCK + // Overlay: Display Docking info + if (show_docking_nodes && g.IO.KeyCtrl) + { + } +#endif // #ifdef IMGUI_HAS_DOCK + + End(); +} + +// [DEBUG] Display contents of Columns +void ImGui::DebugNodeColumns(ImGuiOldColumns* columns) +{ + if (!TreeNode((void*)(uintptr_t)columns->ID, "Columns Id: 0x%08X, Count: %d, Flags: 0x%04X", columns->ID, columns->Count, columns->Flags)) + return; + BulletText("Width: %.1f (MinX: %.1f, MaxX: %.1f)", columns->OffMaxX - columns->OffMinX, columns->OffMinX, columns->OffMaxX); + for (int column_n = 0; column_n < columns->Columns.Size; column_n++) + BulletText("Column %02d: OffsetNorm %.3f (= %.1f px)", column_n, columns->Columns[column_n].OffsetNorm, GetColumnOffsetFromNorm(columns, columns->Columns[column_n].OffsetNorm)); + TreePop(); +} + +// [DEBUG] Display contents of ImDrawList +void ImGui::DebugNodeDrawList(ImGuiWindow* window, const ImDrawList* draw_list, const char* label) +{ + ImGuiContext& g = *GImGui; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + int cmd_count = draw_list->CmdBuffer.Size; + if (cmd_count > 0 && draw_list->CmdBuffer.back().ElemCount == 0 && draw_list->CmdBuffer.back().UserCallback == NULL) + cmd_count--; + bool node_open = TreeNode(draw_list, "%s: '%s' %d vtx, %d indices, %d cmds", label, draw_list->_OwnerName ? draw_list->_OwnerName : "", draw_list->VtxBuffer.Size, draw_list->IdxBuffer.Size, cmd_count); + if (draw_list == GetWindowDrawList()) + { + SameLine(); + TextColored(ImVec4(1.0f, 0.4f, 0.4f, 1.0f), "CURRENTLY APPENDING"); // Can't display stats for active draw list! (we don't have the data double-buffered) + if (node_open) + TreePop(); + return; + } + + ImDrawList* fg_draw_list = GetForegroundDrawList(window); // Render additional visuals into the top-most draw list + if (window && IsItemHovered() && fg_draw_list) + fg_draw_list->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!node_open) + return; + + if (window && !window->WasActive) + TextDisabled("Warning: owning Window is inactive. This DrawList is not being rendered!"); + + for (const ImDrawCmd* pcmd = draw_list->CmdBuffer.Data; pcmd < draw_list->CmdBuffer.Data + cmd_count; pcmd++) + { + if (pcmd->UserCallback) + { + BulletText("Callback %p, user_data %p", pcmd->UserCallback, pcmd->UserCallbackData); + continue; + } + + char buf[300]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "DrawCmd:%5d tris, Tex 0x%p, ClipRect (%4.0f,%4.0f)-(%4.0f,%4.0f)", + pcmd->ElemCount / 3, (void*)(intptr_t)pcmd->TextureId, + pcmd->ClipRect.x, pcmd->ClipRect.y, pcmd->ClipRect.z, pcmd->ClipRect.w); + bool pcmd_node_open = TreeNode((void*)(pcmd - draw_list->CmdBuffer.begin()), "%s", buf); + if (IsItemHovered() && (cfg->ShowDrawCmdMesh || cfg->ShowDrawCmdBoundingBoxes) && fg_draw_list) + DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, cfg->ShowDrawCmdMesh, cfg->ShowDrawCmdBoundingBoxes); + if (!pcmd_node_open) + continue; + + // Calculate approximate coverage area (touched pixel count) + // This will be in pixels squared as long there's no post-scaling happening to the renderer output. + const ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; + const ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + pcmd->VtxOffset; + float total_area = 0.0f; + for (unsigned int idx_n = pcmd->IdxOffset; idx_n < pcmd->IdxOffset + pcmd->ElemCount; ) + { + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_n++) + triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos; + total_area += ImTriangleArea(triangle[0], triangle[1], triangle[2]); + } + + // Display vertex information summary. Hover to get all triangles drawn in wire-frame + ImFormatString(buf, IM_ARRAYSIZE(buf), "Mesh: ElemCount: %d, VtxOffset: +%d, IdxOffset: +%d, Area: ~%0.f px", pcmd->ElemCount, pcmd->VtxOffset, pcmd->IdxOffset, total_area); + Selectable(buf); + if (IsItemHovered() && fg_draw_list) + DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, true, false); + + // Display individual triangles/vertices. Hover on to get the corresponding triangle highlighted. + ImGuiListClipper clipper; + clipper.Begin(pcmd->ElemCount / 3); // Manually coarse clip our print out of individual vertices to save CPU, only items that may be visible. + while (clipper.Step()) + for (int prim = clipper.DisplayStart, idx_i = pcmd->IdxOffset + clipper.DisplayStart * 3; prim < clipper.DisplayEnd; prim++) + { + char* buf_p = buf, * buf_end = buf + IM_ARRAYSIZE(buf); + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_i++) + { + const ImDrawVert& v = vtx_buffer[idx_buffer ? idx_buffer[idx_i] : idx_i]; + triangle[n] = v.pos; + buf_p += ImFormatString(buf_p, buf_end - buf_p, "%s %04d: pos (%8.2f,%8.2f), uv (%.6f,%.6f), col %08X\n", + (n == 0) ? "Vert:" : " ", idx_i, v.pos.x, v.pos.y, v.uv.x, v.uv.y, v.col); + } + + Selectable(buf, false); + if (fg_draw_list && IsItemHovered()) + { + ImDrawListFlags backup_flags = fg_draw_list->Flags; + fg_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + fg_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), ImDrawFlags_Closed, 1.0f); + fg_draw_list->Flags = backup_flags; + } + } + TreePop(); + } + TreePop(); +} + +// [DEBUG] Display mesh/aabb of a ImDrawCmd +void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb) +{ + IM_ASSERT(show_mesh || show_aabb); + + // Draw wire-frame version of all triangles + ImRect clip_rect = draw_cmd->ClipRect; + ImRect vtxs_rect(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + ImDrawListFlags backup_flags = out_draw_list->Flags; + out_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + for (unsigned int idx_n = draw_cmd->IdxOffset, idx_end = draw_cmd->IdxOffset + draw_cmd->ElemCount; idx_n < idx_end; ) + { + ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; // We don't hold on those pointers past iterations as ->AddPolyline() may invalidate them if out_draw_list==draw_list + ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + draw_cmd->VtxOffset; + + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_n++) + vtxs_rect.Add((triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos)); + if (show_mesh) + out_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), ImDrawFlags_Closed, 1.0f); // In yellow: mesh triangles + } + // Draw bounding boxes + if (show_aabb) + { + out_draw_list->AddRect(ImFloor(clip_rect.Min), ImFloor(clip_rect.Max), IM_COL32(255, 0, 255, 255)); // In pink: clipping rectangle submitted to GPU + out_draw_list->AddRect(ImFloor(vtxs_rect.Min), ImFloor(vtxs_rect.Max), IM_COL32(0, 255, 255, 255)); // In cyan: bounding box of triangles + } + out_draw_list->Flags = backup_flags; +} + +// [DEBUG] Display details for a single font, called by ShowStyleEditor(). +void ImGui::DebugNodeFont(ImFont* font) +{ + bool opened = TreeNode(font, "Font: \"%s\"\n%.2f px, %d glyphs, %d file(s)", + font->ConfigData ? font->ConfigData[0].Name : "", font->FontSize, font->Glyphs.Size, font->ConfigDataCount); + SameLine(); + if (SmallButton("Set as default")) + GetIO().FontDefault = font; + if (!opened) + return; + + // Display preview text + PushFont(font); + Text("The quick brown fox jumps over the lazy dog"); + PopFont(); + + // Display details + SetNextItemWidth(GetFontSize() * 8); + DragFloat("Font scale", &font->Scale, 0.005f, 0.3f, 2.0f, "%.1f"); + SameLine(); MetricsHelpMarker( + "Note than the default embedded font is NOT meant to be scaled.\n\n" + "Font are currently rendered into bitmaps at a given size at the time of building the atlas. " + "You may oversample them to get some flexibility with scaling. " + "You can also render at multiple sizes and select which one to use at runtime.\n\n" + "(Glimmer of hope: the atlas system will be rewritten in the future to make scaling more flexible.)"); + Text("Ascent: %f, Descent: %f, Height: %f", font->Ascent, font->Descent, font->Ascent - font->Descent); + char c_str[5]; + Text("Fallback character: '%s' (U+%04X)", ImTextCharToUtf8(c_str, font->FallbackChar), font->FallbackChar); + Text("Ellipsis character: '%s' (U+%04X)", ImTextCharToUtf8(c_str, font->EllipsisChar), font->EllipsisChar); + const int surface_sqrt = (int)ImSqrt((float)font->MetricsTotalSurface); + Text("Texture Area: about %d px ~%dx%d px", font->MetricsTotalSurface, surface_sqrt, surface_sqrt); + for (int config_i = 0; config_i < font->ConfigDataCount; config_i++) + if (font->ConfigData) + if (const ImFontConfig* cfg = &font->ConfigData[config_i]) + BulletText("Input %d: \'%s\', Oversample: (%d,%d), PixelSnapH: %d, Offset: (%.1f,%.1f)", + config_i, cfg->Name, cfg->OversampleH, cfg->OversampleV, cfg->PixelSnapH, cfg->GlyphOffset.x, cfg->GlyphOffset.y); + + // Display all glyphs of the fonts in separate pages of 256 characters + if (TreeNode("Glyphs", "Glyphs (%d)", font->Glyphs.Size)) + { + ImDrawList* draw_list = GetWindowDrawList(); + const ImU32 glyph_col = GetColorU32(ImGuiCol_Text); + const float cell_size = font->FontSize * 1; + const float cell_spacing = GetStyle().ItemSpacing.y; + for (unsigned int base = 0; base <= IM_UNICODE_CODEPOINT_MAX; base += 256) + { + // Skip ahead if a large bunch of glyphs are not present in the font (test in chunks of 4k) + // This is only a small optimization to reduce the number of iterations when IM_UNICODE_MAX_CODEPOINT + // is large // (if ImWchar==ImWchar32 we will do at least about 272 queries here) + if (!(base & 4095) && font->IsGlyphRangeUnused(base, base + 4095)) + { + base += 4096 - 256; + continue; + } + + int count = 0; + for (unsigned int n = 0; n < 256; n++) + if (font->FindGlyphNoFallback((ImWchar)(base + n))) + count++; + if (count <= 0) + continue; + if (!TreeNode((void*)(intptr_t)base, "U+%04X..U+%04X (%d %s)", base, base + 255, count, count > 1 ? "glyphs" : "glyph")) + continue; + + // Draw a 16x16 grid of glyphs + ImVec2 base_pos = GetCursorScreenPos(); + for (unsigned int n = 0; n < 256; n++) + { + // We use ImFont::RenderChar as a shortcut because we don't have UTF-8 conversion functions + // available here and thus cannot easily generate a zero-terminated UTF-8 encoded string. + ImVec2 cell_p1(base_pos.x + (n % 16) * (cell_size + cell_spacing), base_pos.y + (n / 16) * (cell_size + cell_spacing)); + ImVec2 cell_p2(cell_p1.x + cell_size, cell_p1.y + cell_size); + const ImFontGlyph* glyph = font->FindGlyphNoFallback((ImWchar)(base + n)); + draw_list->AddRect(cell_p1, cell_p2, glyph ? IM_COL32(255, 255, 255, 100) : IM_COL32(255, 255, 255, 50)); + if (!glyph) + continue; + font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); + if (IsMouseHoveringRect(cell_p1, cell_p2)) + { + BeginTooltip(); + DebugNodeFontGlyph(font, glyph); + EndTooltip(); + } + } + Dummy(ImVec2((cell_size + cell_spacing) * 16, (cell_size + cell_spacing) * 16)); + TreePop(); + } + TreePop(); + } + TreePop(); +} + +void ImGui::DebugNodeFontGlyph(ImFont*, const ImFontGlyph* glyph) +{ + Text("Codepoint: U+%04X", glyph->Codepoint); + Separator(); + Text("Visible: %d", glyph->Visible); + Text("AdvanceX: %.1f", glyph->AdvanceX); + Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); + Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); +} + +// [DEBUG] Display contents of ImGuiStorage +void ImGui::DebugNodeStorage(ImGuiStorage* storage, const char* label) +{ + if (!TreeNode(label, "%s: %d entries, %d bytes", label, storage->Data.Size, storage->Data.size_in_bytes())) + return; + for (int n = 0; n < storage->Data.Size; n++) + { + const ImGuiStorage::ImGuiStoragePair& p = storage->Data[n]; + BulletText("Key 0x%08X Value { i: %d }", p.key, p.val_i); // Important: we currently don't store a type, real value may not be integer. + } + TreePop(); +} + +// [DEBUG] Display contents of ImGuiTabBar +void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label) +{ + // Standalone tab bars (not associated to docking/windows functionality) currently hold no discernible strings. + char buf[256]; + char* p = buf; + const char* buf_end = buf + IM_ARRAYSIZE(buf); + const bool is_active = (tab_bar->PrevFrameVisible >= GetFrameCount() - 2); + p += ImFormatString(p, buf_end - p, "%s 0x%08X (%d tabs)%s", label, tab_bar->ID, tab_bar->Tabs.Size, is_active ? "" : " *Inactive*"); + p += ImFormatString(p, buf_end - p, " { "); + for (int tab_n = 0; tab_n < ImMin(tab_bar->Tabs.Size, 3); tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + p += ImFormatString(p, buf_end - p, "%s'%s'", + tab_n > 0 ? ", " : "", (tab->NameOffset != -1) ? tab_bar->GetTabName(tab) : "???"); + } + p += ImFormatString(p, buf_end - p, (tab_bar->Tabs.Size > 3) ? " ... }" : " } "); + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open = TreeNode(label, "%s", buf); + if (!is_active) { PopStyleColor(); } + if (is_active && IsItemHovered()) + { + ImDrawList* draw_list = GetForegroundDrawList(); + draw_list->AddRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, IM_COL32(255, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + } + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + const ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + PushID(tab); + if (SmallButton("<")) { TabBarQueueReorder(tab_bar, tab, -1); } SameLine(0, 2); + if (SmallButton(">")) { TabBarQueueReorder(tab_bar, tab, +1); } SameLine(); + Text("%02d%c Tab 0x%08X '%s' Offset: %.2f, Width: %.2f/%.2f", + tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID, (tab->NameOffset != -1) ? tab_bar->GetTabName(tab) : "???", tab->Offset, tab->Width, tab->ContentWidth); + PopID(); + } + TreePop(); + } +} + +void ImGui::DebugNodeViewport(ImGuiViewportP* viewport) +{ + SetNextItemOpen(true, ImGuiCond_Once); + if (TreeNode("viewport0", "Viewport #%d", 0)) + { + ImGuiWindowFlags flags = viewport->Flags; + BulletText("Main Pos: (%.0f,%.0f), Size: (%.0f,%.0f)\nWorkArea Offset Left: %.0f Top: %.0f, Right: %.0f, Bottom: %.0f", + viewport->Pos.x, viewport->Pos.y, viewport->Size.x, viewport->Size.y, + viewport->WorkOffsetMin.x, viewport->WorkOffsetMin.y, viewport->WorkOffsetMax.x, viewport->WorkOffsetMax.y); + BulletText("Flags: 0x%04X =%s%s%s", viewport->Flags, + (flags & ImGuiViewportFlags_IsPlatformWindow) ? " IsPlatformWindow" : "", + (flags & ImGuiViewportFlags_IsPlatformMonitor) ? " IsPlatformMonitor" : "", + (flags & ImGuiViewportFlags_OwnedByApp) ? " OwnedByApp" : ""); + for (int layer_i = 0; layer_i < IM_ARRAYSIZE(viewport->DrawDataBuilder.Layers); layer_i++) + for (int draw_list_i = 0; draw_list_i < viewport->DrawDataBuilder.Layers[layer_i].Size; draw_list_i++) + DebugNodeDrawList(NULL, viewport->DrawDataBuilder.Layers[layer_i][draw_list_i], "DrawList"); + TreePop(); + } +} + +void ImGui::DebugNodeWindow(ImGuiWindow* window, const char* label) +{ + if (window == NULL) + { + BulletText("%s: NULL", label); + return; + } + + ImGuiContext& g = *GImGui; + const bool is_active = window->WasActive; + ImGuiTreeNodeFlags tree_node_flags = (window == g.NavWindow) ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + const bool open = TreeNodeEx(label, tree_node_flags, "%s '%s'%s", label, window->Name, is_active ? "" : " *Inactive*"); + if (!is_active) { PopStyleColor(); } + if (IsItemHovered() && is_active) + GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!open) + return; + + if (window->MemoryCompacted) + TextDisabled("Note: some memory buffers have been compacted/freed."); + + ImGuiWindowFlags flags = window->Flags; + DebugNodeDrawList(window, window->DrawList, "DrawList"); + BulletText("Pos: (%.1f,%.1f), Size: (%.1f,%.1f), ContentSize (%.1f,%.1f) Ideal (%.1f,%.1f)", window->Pos.x, window->Pos.y, window->Size.x, window->Size.y, window->ContentSize.x, window->ContentSize.y, window->ContentSizeIdeal.x, window->ContentSizeIdeal.y); + BulletText("Flags: 0x%08X (%s%s%s%s%s%s%s%s%s..)", flags, + (flags & ImGuiWindowFlags_ChildWindow) ? "Child " : "", (flags & ImGuiWindowFlags_Tooltip) ? "Tooltip " : "", (flags & ImGuiWindowFlags_Popup) ? "Popup " : "", + (flags & ImGuiWindowFlags_Modal) ? "Modal " : "", (flags & ImGuiWindowFlags_ChildMenu) ? "ChildMenu " : "", (flags & ImGuiWindowFlags_NoSavedSettings) ? "NoSavedSettings " : "", + (flags & ImGuiWindowFlags_NoMouseInputs)? "NoMouseInputs":"", (flags & ImGuiWindowFlags_NoNavInputs) ? "NoNavInputs" : "", (flags & ImGuiWindowFlags_AlwaysAutoResize) ? "AlwaysAutoResize" : ""); + BulletText("Scroll: (%.2f/%.2f,%.2f/%.2f) Scrollbar:%s%s", window->Scroll.x, window->ScrollMax.x, window->Scroll.y, window->ScrollMax.y, window->ScrollbarX ? "X" : "", window->ScrollbarY ? "Y" : ""); + BulletText("Active: %d/%d, WriteAccessed: %d, BeginOrderWithinContext: %d", window->Active, window->WasActive, window->WriteAccessed, (window->Active || window->WasActive) ? window->BeginOrderWithinContext : -1); + BulletText("Appearing: %d, Hidden: %d (CanSkip %d Cannot %d), SkipItems: %d", window->Appearing, window->Hidden, window->HiddenFramesCanSkipItems, window->HiddenFramesCannotSkipItems, window->SkipItems); + for (int layer = 0; layer < ImGuiNavLayer_COUNT; layer++) + { + ImRect r = window->NavRectRel[layer]; + if (r.Min.x >= r.Max.y && r.Min.y >= r.Max.y) + BulletText("NavLastIds[%d]: 0x%08X", layer, window->NavLastIds[layer]); + else + BulletText("NavLastIds[%d]: 0x%08X at +(%.1f,%.1f)(%.1f,%.1f)", layer, window->NavLastIds[layer], r.Min.x, r.Min.y, r.Max.x, r.Max.y); + DebugLocateItemOnHover(window->NavLastIds[layer]); + } + BulletText("NavLayersActiveMask: %X, NavLastChildNavWindow: %s", window->DC.NavLayersActiveMask, window->NavLastChildNavWindow ? window->NavLastChildNavWindow->Name : "NULL"); + if (window->RootWindow != window) { DebugNodeWindow(window->RootWindow, "RootWindow"); } + if (window->ParentWindow != NULL) { DebugNodeWindow(window->ParentWindow, "ParentWindow"); } + if (window->DC.ChildWindows.Size > 0) { DebugNodeWindowsList(&window->DC.ChildWindows, "ChildWindows"); } + if (window->ColumnsStorage.Size > 0 && TreeNode("Columns", "Columns sets (%d)", window->ColumnsStorage.Size)) + { + for (int n = 0; n < window->ColumnsStorage.Size; n++) + DebugNodeColumns(&window->ColumnsStorage[n]); + TreePop(); + } + DebugNodeStorage(&window->StateStorage, "Storage"); + TreePop(); +} + +void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings* settings) +{ + Text("0x%08X \"%s\" Pos (%d,%d) Size (%d,%d) Collapsed=%d", + settings->ID, settings->GetName(), settings->Pos.x, settings->Pos.y, settings->Size.x, settings->Size.y, settings->Collapsed); +} + +void ImGui::DebugNodeWindowsList(ImVector* windows, const char* label) +{ + if (!TreeNode(label, "%s (%d)", label, windows->Size)) + return; + for (int i = windows->Size - 1; i >= 0; i--) // Iterate front to back + { + PushID((*windows)[i]); + DebugNodeWindow((*windows)[i], "Window"); + PopID(); + } + TreePop(); +} + +// FIXME-OPT: This is technically suboptimal, but it is simpler this way. +void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack) +{ + for (int i = 0; i < windows_size; i++) + { + ImGuiWindow* window = windows[i]; + if (window->ParentWindowInBeginStack != parent_in_begin_stack) + continue; + char buf[20]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "[%04d] Window", window->BeginOrderWithinContext); + //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name); + DebugNodeWindow(window, buf); + Indent(); + DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window); + Unindent(); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] DEBUG LOG WINDOW +//----------------------------------------------------------------------------- + +void ImGui::DebugLog(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + DebugLogV(fmt, args); + va_end(args); +} + +void ImGui::DebugLogV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + const int old_size = g.DebugLogBuf.size(); + g.DebugLogBuf.appendf("[%05d] ", g.FrameCount); + g.DebugLogBuf.appendfv(fmt, args); + if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTTY) + IMGUI_DEBUG_PRINTF("%s", g.DebugLogBuf.begin() + old_size); + g.DebugLogIndex.append(g.DebugLogBuf.c_str(), old_size, g.DebugLogBuf.size()); +} + +void ImGui::ShowDebugLogWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 12.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui Debug Log", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + AlignTextToFramePadding(); + Text("Log events:"); + SameLine(); CheckboxFlags("All", &g.DebugLogFlags, ImGuiDebugLogFlags_EventMask_); + SameLine(); CheckboxFlags("ActiveId", &g.DebugLogFlags, ImGuiDebugLogFlags_EventActiveId); + SameLine(); CheckboxFlags("Focus", &g.DebugLogFlags, ImGuiDebugLogFlags_EventFocus); + SameLine(); CheckboxFlags("Popup", &g.DebugLogFlags, ImGuiDebugLogFlags_EventPopup); + SameLine(); CheckboxFlags("Nav", &g.DebugLogFlags, ImGuiDebugLogFlags_EventNav); + SameLine(); CheckboxFlags("Clipper", &g.DebugLogFlags, ImGuiDebugLogFlags_EventClipper); + SameLine(); CheckboxFlags("IO", &g.DebugLogFlags, ImGuiDebugLogFlags_EventIO); + + if (SmallButton("Clear")) + { + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + } + SameLine(); + if (SmallButton("Copy")) + SetClipboardText(g.DebugLogBuf.c_str()); + BeginChild("##log", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar); + + ImGuiListClipper clipper; + clipper.Begin(g.DebugLogIndex.size()); + while (clipper.Step()) + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_begin = g.DebugLogIndex.get_line_begin(g.DebugLogBuf.c_str(), line_no); + const char* line_end = g.DebugLogIndex.get_line_end(g.DebugLogBuf.c_str(), line_no); + TextUnformatted(line_begin, line_end); + ImRect text_rect = g.LastItemData.Rect; + if (IsItemHovered()) + for (const char* p = line_begin; p < line_end - 10; p++) + { + ImGuiID id = 0; + if (p[0] != '0' || (p[1] != 'x' && p[1] != 'X') || sscanf(p + 2, "%X", &id) != 1) + continue; + ImVec2 p0 = CalcTextSize(line_begin, p); + ImVec2 p1 = CalcTextSize(p, p + 10); + g.LastItemData.Rect = ImRect(text_rect.Min + ImVec2(p0.x, 0.0f), text_rect.Min + ImVec2(p0.x + p1.x, p1.y)); + if (IsMouseHoveringRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, true)) + DebugLocateItemOnHover(id); + p += 10; + } + } + if (GetScrollY() >= GetScrollMaxY()) + SetScrollHereY(1.0f); + EndChild(); + + End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) +//----------------------------------------------------------------------------- + +static const ImU32 DEBUG_LOCATE_ITEM_COLOR = IM_COL32(0, 255, 0, 255); // Green + +void ImGui::DebugLocateItem(ImGuiID target_id) +{ + ImGuiContext& g = *GImGui; + g.DebugLocateId = target_id; + g.DebugLocateFrames = 2; +} + +void ImGui::DebugLocateItemOnHover(ImGuiID target_id) +{ + if (target_id == 0 || !IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + return; + ImGuiContext& g = *GImGui; + DebugLocateItem(target_id); + GetForegroundDrawList(g.CurrentWindow)->AddRect(g.LastItemData.Rect.Min - ImVec2(3.0f, 3.0f), g.LastItemData.Rect.Max + ImVec2(3.0f, 3.0f), DEBUG_LOCATE_ITEM_COLOR); +} + +void ImGui::DebugLocateItemResolveWithLastItem() +{ + ImGuiContext& g = *GImGui; + ImGuiLastItemData item_data = g.LastItemData; + g.DebugLocateId = 0; + ImDrawList* draw_list = GetForegroundDrawList(g.CurrentWindow); + ImRect r = item_data.Rect; + r.Expand(3.0f); + ImVec2 p1 = g.IO.MousePos; + ImVec2 p2 = ImVec2((p1.x < r.Min.x) ? r.Min.x : (p1.x > r.Max.x) ? r.Max.x : p1.x, (p1.y < r.Min.y) ? r.Min.y : (p1.y > r.Max.y) ? r.Max.y : p1.y); + draw_list->AddRect(r.Min, r.Max, DEBUG_LOCATE_ITEM_COLOR); + draw_list->AddLine(p1, p2, DEBUG_LOCATE_ITEM_COLOR); +} + +// [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. +void ImGui::UpdateDebugToolItemPicker() +{ + ImGuiContext& g = *GImGui; + g.DebugItemPickerBreakId = 0; + if (!g.DebugItemPickerActive) + return; + + const ImGuiID hovered_id = g.HoveredIdPreviousFrame; + SetMouseCursor(ImGuiMouseCursor_Hand); + if (IsKeyPressed(ImGuiKey_Escape)) + g.DebugItemPickerActive = false; + const bool change_mapping = g.IO.KeyMods == (ImGuiMod_Ctrl | ImGuiMod_Shift); + if (!change_mapping && IsMouseClicked(g.DebugItemPickerMouseButton) && hovered_id) + { + g.DebugItemPickerBreakId = hovered_id; + g.DebugItemPickerActive = false; + } + for (int mouse_button = 0; mouse_button < 3; mouse_button++) + if (change_mapping && IsMouseClicked(mouse_button)) + g.DebugItemPickerMouseButton = (ImU8)mouse_button; + SetNextWindowBgAlpha(0.70f); + BeginTooltip(); + Text("HoveredId: 0x%08X", hovered_id); + Text("Press ESC to abort picking."); + const char* mouse_button_names[] = { "Left", "Right", "Middle" }; + if (change_mapping) + Text("Remap w/ Ctrl+Shift: click anywhere to select new mouse button."); + else + TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click %s Button to break in debugger! (remap w/ Ctrl+Shift)", mouse_button_names[g.DebugItemPickerMouseButton]); + EndTooltip(); +} + +// [DEBUG] Stack Tool: update queries. Called by NewFrame() +void ImGui::UpdateDebugToolStackQueries() +{ + ImGuiContext& g = *GImGui; + ImGuiStackTool* tool = &g.DebugStackTool; + + // Clear hook when stack tool is not visible + g.DebugHookIdInfo = 0; + if (g.FrameCount != tool->LastActiveFrame + 1) + return; + + // Update queries. The steps are: -1: query Stack, >= 0: query each stack item + // We can only perform 1 ID Info query every frame. This is designed so the GetID() tests are cheap and constant-time + const ImGuiID query_id = g.HoveredIdPreviousFrame ? g.HoveredIdPreviousFrame : g.ActiveId; + if (tool->QueryId != query_id) + { + tool->QueryId = query_id; + tool->StackLevel = -1; + tool->Results.resize(0); + } + if (query_id == 0) + return; + + // Advance to next stack level when we got our result, or after 2 frames (in case we never get a result) + int stack_level = tool->StackLevel; + if (stack_level >= 0 && stack_level < tool->Results.Size) + if (tool->Results[stack_level].QuerySuccess || tool->Results[stack_level].QueryFrameCount > 2) + tool->StackLevel++; + + // Update hook + stack_level = tool->StackLevel; + if (stack_level == -1) + g.DebugHookIdInfo = query_id; + if (stack_level >= 0 && stack_level < tool->Results.Size) + { + g.DebugHookIdInfo = tool->Results[stack_level].ID; + tool->Results[stack_level].QueryFrameCount++; + } +} + +// [DEBUG] Stack tool: hooks called by GetID() family functions +void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStackTool* tool = &g.DebugStackTool; + + // Step 0: stack query + // This assumes that the ID was computed with the current ID stack, which tends to be the case for our widget. + if (tool->StackLevel == -1) + { + tool->StackLevel++; + tool->Results.resize(window->IDStack.Size + 1, ImGuiStackLevelInfo()); + for (int n = 0; n < window->IDStack.Size + 1; n++) + tool->Results[n].ID = (n < window->IDStack.Size) ? window->IDStack[n] : id; + return; + } + + // Step 1+: query for individual level + IM_ASSERT(tool->StackLevel >= 0); + if (tool->StackLevel != window->IDStack.Size) + return; + ImGuiStackLevelInfo* info = &tool->Results[tool->StackLevel]; + IM_ASSERT(info->ID == id && info->QueryFrameCount > 0); + + switch (data_type) + { + case ImGuiDataType_S32: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%d", (int)(intptr_t)data_id); + break; + case ImGuiDataType_String: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%.*s", data_id_end ? (int)((const char*)data_id_end - (const char*)data_id) : (int)strlen((const char*)data_id), (const char*)data_id); + break; + case ImGuiDataType_Pointer: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "(void*)0x%p", data_id); + break; + case ImGuiDataType_ID: + if (info->Desc[0] != 0) // PushOverrideID() is often used to avoid hashing twice, which would lead to 2 calls to DebugHookIdInfo(). We prioritize the first one. + return; + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "0x%08X [override]", id); + break; + default: + IM_ASSERT(0); + } + info->QuerySuccess = true; + info->DataType = data_type; +} + +static int StackToolFormatLevelInfo(ImGuiStackTool* tool, int n, bool format_for_ui, char* buf, size_t buf_size) +{ + ImGuiStackLevelInfo* info = &tool->Results[n]; + ImGuiWindow* window = (info->Desc[0] == 0 && n == 0) ? ImGui::FindWindowByID(info->ID) : NULL; + if (window) // Source: window name (because the root ID don't call GetID() and so doesn't get hooked) + return ImFormatString(buf, buf_size, format_for_ui ? "\"%s\" [window]" : "%s", window->Name); + if (info->QuerySuccess) // Source: GetID() hooks (prioritize over ItemInfo() because we frequently use patterns like: PushID(str), Button("") where they both have same id) + return ImFormatString(buf, buf_size, (format_for_ui && info->DataType == ImGuiDataType_String) ? "\"%s\"" : "%s", info->Desc); + if (tool->StackLevel < tool->Results.Size) // Only start using fallback below when all queries are done, so during queries we don't flickering ??? markers. + return (*buf = 0); +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (const char* label = ImGuiTestEngine_FindItemDebugLabel(GImGui, info->ID)) // Source: ImGuiTestEngine's ItemInfo() + return ImFormatString(buf, buf_size, format_for_ui ? "??? \"%s\"" : "%s", label); +#endif + return ImFormatString(buf, buf_size, "???"); +} + +// Stack Tool: Display UI +void ImGui::ShowStackToolWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 8.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui Stack Tool", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + // Display hovered/active status + ImGuiStackTool* tool = &g.DebugStackTool; + const ImGuiID hovered_id = g.HoveredIdPreviousFrame; + const ImGuiID active_id = g.ActiveId; +#ifdef IMGUI_ENABLE_TEST_ENGINE + Text("HoveredId: 0x%08X (\"%s\"), ActiveId: 0x%08X (\"%s\")", hovered_id, hovered_id ? ImGuiTestEngine_FindItemDebugLabel(&g, hovered_id) : "", active_id, active_id ? ImGuiTestEngine_FindItemDebugLabel(&g, active_id) : ""); +#else + Text("HoveredId: 0x%08X, ActiveId: 0x%08X", hovered_id, active_id); +#endif + SameLine(); + MetricsHelpMarker("Hover an item with the mouse to display elements of the ID Stack leading to the item's final ID.\nEach level of the stack correspond to a PushID() call.\nAll levels of the stack are hashed together to make the final ID of a widget (ID displayed at the bottom level of the stack).\nRead FAQ entry about the ID stack for details."); + + // CTRL+C to copy path + const float time_since_copy = (float)g.Time - tool->CopyToClipboardLastTime; + Checkbox("Ctrl+C: copy path to clipboard", &tool->CopyToClipboardOnCtrlC); + SameLine(); + TextColored((time_since_copy >= 0.0f && time_since_copy < 0.75f && ImFmod(time_since_copy, 0.25f) < 0.25f * 0.5f) ? ImVec4(1.f, 1.f, 0.3f, 1.f) : ImVec4(), "*COPIED*"); + if (tool->CopyToClipboardOnCtrlC && IsKeyDown(ImGuiMod_Ctrl) && IsKeyPressed(ImGuiKey_C)) + { + tool->CopyToClipboardLastTime = (float)g.Time; + char* p = g.TempBuffer.Data; + char* p_end = p + g.TempBuffer.Size; + for (int stack_n = 0; stack_n < tool->Results.Size && p + 3 < p_end; stack_n++) + { + *p++ = '/'; + char level_desc[256]; + StackToolFormatLevelInfo(tool, stack_n, false, level_desc, IM_ARRAYSIZE(level_desc)); + for (int n = 0; level_desc[n] && p + 2 < p_end; n++) + { + if (level_desc[n] == '/') + *p++ = '\\'; + *p++ = level_desc[n]; + } + } + *p = '\0'; + SetClipboardText(g.TempBuffer.Data); + } + + // Display decorated stack + tool->LastActiveFrame = g.FrameCount; + if (tool->Results.Size > 0 && BeginTable("##table", 3, ImGuiTableFlags_Borders)) + { + const float id_width = CalcTextSize("0xDDDDDDDD").x; + TableSetupColumn("Seed", ImGuiTableColumnFlags_WidthFixed, id_width); + TableSetupColumn("PushID", ImGuiTableColumnFlags_WidthStretch); + TableSetupColumn("Result", ImGuiTableColumnFlags_WidthFixed, id_width); + TableHeadersRow(); + for (int n = 0; n < tool->Results.Size; n++) + { + ImGuiStackLevelInfo* info = &tool->Results[n]; + TableNextColumn(); + Text("0x%08X", (n > 0) ? tool->Results[n - 1].ID : 0); + TableNextColumn(); + StackToolFormatLevelInfo(tool, n, true, g.TempBuffer.Data, g.TempBuffer.Size); + TextUnformatted(g.TempBuffer.Data); + TableNextColumn(); + Text("0x%08X", info->ID); + if (n == tool->Results.Size - 1) + TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_Header)); + } + EndTable(); + } + End(); +} + +#else + +void ImGui::ShowMetricsWindow(bool*) {} +void ImGui::ShowFontAtlas(ImFontAtlas*) {} +void ImGui::DebugNodeColumns(ImGuiOldColumns*) {} +void ImGui::DebugNodeDrawList(ImGuiWindow*, const ImDrawList*, const char*) {} +void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList*, const ImDrawList*, const ImDrawCmd*, bool, bool) {} +void ImGui::DebugNodeFont(ImFont*) {} +void ImGui::DebugNodeStorage(ImGuiStorage*, const char*) {} +void ImGui::DebugNodeTabBar(ImGuiTabBar*, const char*) {} +void ImGui::DebugNodeWindow(ImGuiWindow*, const char*) {} +void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings*) {} +void ImGui::DebugNodeWindowsList(ImVector*, const char*) {} +void ImGui::DebugNodeViewport(ImGuiViewportP*) {} + +void ImGui::DebugLog(const char*, ...) {} +void ImGui::DebugLogV(const char*, va_list) {} +void ImGui::ShowDebugLogWindow(bool*) {} +void ImGui::ShowStackToolWindow(bool*) {} +void ImGui::DebugHookIdInfo(ImGuiID, ImGuiDataType, const void*, const void*) {} +void ImGui::UpdateDebugToolItemPicker() {} +void ImGui::UpdateDebugToolStackQueries() {} + +#endif // #ifndef IMGUI_DISABLE_DEBUG_TOOLS + +//----------------------------------------------------------------------------- + +// Include imgui_user.inl at the end of imgui.cpp to access private data/functions that aren't exposed. +// Prefer just including imgui_internal.h from your code rather than using this define. If a declaration is missing from imgui_internal.h add it or request it on the github. +#ifdef IMGUI_INCLUDE_IMGUI_USER_INL +#include "imgui_user.inl" +#endif + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imgui.h b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui.h new file mode 100644 index 000000000..03eb0ca9f --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui.h @@ -0,0 +1,3078 @@ +// dear imgui, v1.89.1 +// (headers) + +// Help: +// - Read FAQ at http://dearimgui.org/faq +// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// Read imgui.cpp for details, links and comments. + +// Resources: +// - FAQ http://dearimgui.org/faq +// - Homepage & latest https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/5243 (please post your screenshots/video there!) +// - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Issues & support https://github.com/ocornut/imgui/issues + +// Getting Started? +// - For first-time users having issues compiling/linking/running or issues loading fonts: +// please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. + +// Library Version +// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM > 12345') +#define IMGUI_VERSION "1.89.1 WIP" +#define IMGUI_VERSION_NUM 18910 +#define IMGUI_HAS_TABLE + +/* + +Index of this file: +// [SECTION] Header mess +// [SECTION] Forward declarations and basic types +// [SECTION] Dear ImGui end-user API functions +// [SECTION] Flags & Enumerations +// [SECTION] Helpers: Memory allocations macros, ImVector<> +// [SECTION] ImGuiStyle +// [SECTION] ImGuiIO +// [SECTION] Misc data structures (ImGuiInputTextCallbackData, ImGuiSizeCallbackData, ImGuiPayload, ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs) +// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, ImColor) +// [SECTION] Drawing API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawFlags, ImDrawListFlags, ImDrawList, ImDrawData) +// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) +// [SECTION] Viewports (ImGuiViewportFlags, ImGuiViewport) +// [SECTION] Platform Dependent Interfaces (ImGuiPlatformImeData) +// [SECTION] Obsolete functions and types + +*/ + +#pragma once + +// Configuration file with compile-time options +// (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system') +#ifdef IMGUI_USER_CONFIG +#include IMGUI_USER_CONFIG +#endif +#include "imconfig.h" + +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +// Includes +#include // FLT_MIN, FLT_MAX +#include // va_list, va_start, va_end +#include // ptrdiff_t, NULL +#include // memset, memmove, memcpy, strlen, strchr, strcpy, strcmp + +// Define attributes of all API symbols declarations (e.g. for DLL under Windows) +// IMGUI_API is used for core imgui functions, IMGUI_IMPL_API is used for the default backends files (imgui_impl_xxx.h) +// Using dear imgui via a shared library is not recommended, because we don't guarantee backward nor forward ABI compatibility (also function call overhead, as dear imgui is a call-heavy API) +#ifndef IMGUI_API +#define IMGUI_API +#endif +#ifndef IMGUI_IMPL_API +#define IMGUI_IMPL_API IMGUI_API +#endif + +// Helper Macros +#ifndef IM_ASSERT +#include +#define IM_ASSERT(_EXPR) assert(_EXPR) // You can override the default assert handler by editing imconfig.h +#endif +#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) // Size of a static C-style array. Don't use on pointers! +#define IM_UNUSED(_VAR) ((void)(_VAR)) // Used to silence "unused variable warnings". Often useful as asserts may be stripped out from final builds. +#define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // Offset of _MEMBER within _TYPE. Standardized as offsetof() in C++11 +#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) + +// Helper Macros - IM_FMTARGS, IM_FMTLIST: Apply printf-style warnings to our formatting functions. +#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__) +#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1))) +#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0))) +#elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__)) +#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1))) +#define IM_FMTLIST(FMT) __attribute__((format(printf, FMT, 0))) +#else +#define IM_FMTARGS(FMT) +#define IM_FMTLIST(FMT) +#endif + +// Disable some of MSVC most aggressive Debug runtime checks in function header/footer (used in some simple/low-level functions) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID) +#define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off)) +#define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop)) +#else +#define IM_MSVC_RUNTIME_CHECKS_OFF +#define IM_MSVC_RUNTIME_CHECKS_RESTORE +#endif + +// Warnings +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#endif +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wold-style-cast" +#if __has_warning("-Wzero-as-null-pointer-constant") +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#endif +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward declarations and basic types +//----------------------------------------------------------------------------- + +// Forward declarations +struct ImDrawChannel; // Temporary storage to output draw commands out of order, used by ImDrawListSplitter and ImDrawList::ChannelsSplit() +struct ImDrawCmd; // A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a callback) +struct ImDrawData; // All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix. +struct ImDrawList; // A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" builder) +struct ImDrawListSharedData; // Data shared among multiple draw lists (typically owned by parent ImGui context, but you may create one yourself) +struct ImDrawListSplitter; // Helper to split a draw list into different layers which can be drawn into out of order, then flattened back. +struct ImDrawVert; // A single vertex (pos + uv + col = 20 bytes by default. Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) +struct ImFont; // Runtime data for a single font within a parent ImFontAtlas +struct ImFontAtlas; // Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader +struct ImFontBuilderIO; // Opaque interface to a font builder (stb_truetype or FreeType). +struct ImFontConfig; // Configuration data when adding a font or merging fonts +struct ImFontGlyph; // A single font glyph (code point + coordinates within in ImFontAtlas + offset) +struct ImFontGlyphRangesBuilder; // Helper to build glyph ranges from text/string data +struct ImColor; // Helper functions to create a color that can be converted to either u32 or float4 (*OBSOLETE* please avoid using) +struct ImGuiContext; // Dear ImGui context (opaque structure, unless including imgui_internal.h) +struct ImGuiIO; // Main configuration and I/O between your application and ImGui +struct ImGuiInputTextCallbackData; // Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use) +struct ImGuiKeyData; // Storage for ImGuiIO and IsKeyDown(), IsKeyPressed() etc functions. +struct ImGuiListClipper; // Helper to manually clip large list of items +struct ImGuiOnceUponAFrame; // Helper for running a block of code not more than once a frame +struct ImGuiPayload; // User data payload for drag and drop operations +struct ImGuiPlatformImeData; // Platform IME data for io.SetPlatformImeDataFn() function. +struct ImGuiSizeCallbackData; // Callback data when using SetNextWindowSizeConstraints() (rare/advanced use) +struct ImGuiStorage; // Helper for key->value storage +struct ImGuiStyle; // Runtime data for styling/colors +struct ImGuiTableSortSpecs; // Sorting specifications for a table (often handling sort specs for a single column, occasionally more) +struct ImGuiTableColumnSortSpecs; // Sorting specification for one column of a table +struct ImGuiTextBuffer; // Helper to hold and append into a text buffer (~string builder) +struct ImGuiTextFilter; // Helper to parse and apply text filters (e.g. "aaaaa[,bbbbb][,ccccc]") +struct ImGuiViewport; // A Platform Window (always only one in 'master' branch), in the future may represent Platform Monitor + +// Enumerations +// - We don't use strongly typed enums much because they add constraints (can't extend in private code, can't store typed in bit fields, extra casting on iteration) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +enum ImGuiKey : int; // -> enum ImGuiKey // Enum: A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) +typedef int ImGuiCol; // -> enum ImGuiCol_ // Enum: A color identifier for styling +typedef int ImGuiCond; // -> enum ImGuiCond_ // Enum: A condition for many Set*() functions +typedef int ImGuiDataType; // -> enum ImGuiDataType_ // Enum: A primary data type +typedef int ImGuiDir; // -> enum ImGuiDir_ // Enum: A cardinal direction +typedef int ImGuiMouseButton; // -> enum ImGuiMouseButton_ // Enum: A mouse button identifier (0=left, 1=right, 2=middle) +typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor shape +typedef int ImGuiSortDirection; // -> enum ImGuiSortDirection_ // Enum: A sorting direction (ascending or descending) +typedef int ImGuiStyleVar; // -> enum ImGuiStyleVar_ // Enum: A variable identifier for styling +typedef int ImGuiTableBgTarget; // -> enum ImGuiTableBgTarget_ // Enum: A color target for TableSetBgColor() + +// Flags (declared as int for compatibility with old C++, to allow using as flags without overhead, and to not pollute the top of this file) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +typedef int ImDrawFlags; // -> enum ImDrawFlags_ // Flags: for ImDrawList functions +typedef int ImDrawListFlags; // -> enum ImDrawListFlags_ // Flags: for ImDrawList instance +typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build +typedef int ImGuiBackendFlags; // -> enum ImGuiBackendFlags_ // Flags: for io.BackendFlags +typedef int ImGuiButtonFlags; // -> enum ImGuiButtonFlags_ // Flags: for InvisibleButton() +typedef int ImGuiColorEditFlags; // -> enum ImGuiColorEditFlags_ // Flags: for ColorEdit4(), ColorPicker4() etc. +typedef int ImGuiConfigFlags; // -> enum ImGuiConfigFlags_ // Flags: for io.ConfigFlags +typedef int ImGuiComboFlags; // -> enum ImGuiComboFlags_ // Flags: for BeginCombo() +typedef int ImGuiDragDropFlags; // -> enum ImGuiDragDropFlags_ // Flags: for BeginDragDropSource(), AcceptDragDropPayload() +typedef int ImGuiFocusedFlags; // -> enum ImGuiFocusedFlags_ // Flags: for IsWindowFocused() +typedef int ImGuiHoveredFlags; // -> enum ImGuiHoveredFlags_ // Flags: for IsItemHovered(), IsWindowHovered() etc. +typedef int ImGuiInputTextFlags; // -> enum ImGuiInputTextFlags_ // Flags: for InputText(), InputTextMultiline() +typedef int ImGuiKeyChord; // -> ImGuiKey | ImGuiMod_XXX // Flags: for storage only for now: an ImGuiKey optionally OR-ed with one or more ImGuiMod_XXX values. +typedef int ImGuiPopupFlags; // -> enum ImGuiPopupFlags_ // Flags: for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() +typedef int ImGuiSelectableFlags; // -> enum ImGuiSelectableFlags_ // Flags: for Selectable() +typedef int ImGuiSliderFlags; // -> enum ImGuiSliderFlags_ // Flags: for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +typedef int ImGuiTabBarFlags; // -> enum ImGuiTabBarFlags_ // Flags: for BeginTabBar() +typedef int ImGuiTabItemFlags; // -> enum ImGuiTabItemFlags_ // Flags: for BeginTabItem() +typedef int ImGuiTableFlags; // -> enum ImGuiTableFlags_ // Flags: For BeginTable() +typedef int ImGuiTableColumnFlags; // -> enum ImGuiTableColumnFlags_// Flags: For TableSetupColumn() +typedef int ImGuiTableRowFlags; // -> enum ImGuiTableRowFlags_ // Flags: For TableNextRow() +typedef int ImGuiTreeNodeFlags; // -> enum ImGuiTreeNodeFlags_ // Flags: for TreeNode(), TreeNodeEx(), CollapsingHeader() +typedef int ImGuiViewportFlags; // -> enum ImGuiViewportFlags_ // Flags: for ImGuiViewport +typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: for Begin(), BeginChild() + +// ImTexture: user data for renderer backend to identify a texture [Compile-time configurable type] +// - To use something else than an opaque void* pointer: override with e.g. '#define ImTextureID MyTextureType*' in your imconfig.h file. +// - This can be whatever to you want it to be! read the FAQ about ImTextureID for details. +#ifndef ImTextureID +typedef void* ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that) +#endif + +// ImDrawIdx: vertex index. [Compile-time configurable type] +// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended). +// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file. +#ifndef ImDrawIdx +typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends) +#endif + +// Scalar data types +typedef unsigned int ImGuiID;// A unique ID used by widgets (typically the result of hashing a stack of string) +typedef signed char ImS8; // 8-bit signed integer +typedef unsigned char ImU8; // 8-bit unsigned integer +typedef signed short ImS16; // 16-bit signed integer +typedef unsigned short ImU16; // 16-bit unsigned integer +typedef signed int ImS32; // 32-bit signed integer == int +typedef unsigned int ImU32; // 32-bit unsigned integer (often used to store packed colors) +typedef signed long long ImS64; // 64-bit signed integer +typedef unsigned long long ImU64; // 64-bit unsigned integer + +// Character types +// (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) +typedef unsigned short ImWchar16; // A single decoded U16 character/code point. We encode them as multi bytes UTF-8 when used in strings. +typedef unsigned int ImWchar32; // A single decoded U32 character/code point. We encode them as multi bytes UTF-8 when used in strings. +#ifdef IMGUI_USE_WCHAR32 // ImWchar [configurable type: override in imconfig.h with '#define IMGUI_USE_WCHAR32' to support Unicode planes 1-16] +typedef ImWchar32 ImWchar; +#else +typedef ImWchar16 ImWchar; +#endif + +// Callback and functions types +typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data); // Callback function for ImGui::InputText() +typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data); // Callback function for ImGui::SetNextWindowSizeConstraints() +typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() +typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() + +// ImVec2: 2D vector used to store positions, sizes etc. [Compile-time configurable type] +// This is a frequently used type in the API. Consider using IM_VEC2_CLASS_EXTRA to create implicit cast from/to our preferred type. +IM_MSVC_RUNTIME_CHECKS_OFF +struct ImVec2 +{ + float x, y; + constexpr ImVec2() : x(0.0f), y(0.0f) { } + constexpr ImVec2(float _x, float _y) : x(_x), y(_y) { } + float operator[] (size_t idx) const { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. + float& operator[] (size_t idx) { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. +#ifdef IM_VEC2_CLASS_EXTRA + IM_VEC2_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec2. +#endif +}; + +// ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type] +struct ImVec4 +{ + float x, y, z, w; + constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { } + constexpr ImVec4(float _x, float _y, float _z, float _w) : x(_x), y(_y), z(_z), w(_w) { } +#ifdef IM_VEC4_CLASS_EXTRA + IM_VEC4_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec4. +#endif +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] Dear ImGui end-user API functions +// (Note that ImGui:: being a namespace, you can add extra ImGui:: functions in your own separate file. Please don't modify imgui source files!) +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Context creation and access + // - Each context create its own ImFontAtlas by default. You may instance one yourself and pass it to CreateContext() to share a font atlas between contexts. + // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() + // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for details. + IMGUI_API ImGuiContext* CreateContext(ImFontAtlas* shared_font_atlas = NULL); + IMGUI_API void DestroyContext(ImGuiContext* ctx = NULL); // NULL = destroy current context + IMGUI_API ImGuiContext* GetCurrentContext(); + IMGUI_API void SetCurrentContext(ImGuiContext* ctx); + + // Main + IMGUI_API ImGuiIO& GetIO(); // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags) + IMGUI_API ImGuiStyle& GetStyle(); // access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame! + IMGUI_API void NewFrame(); // start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). + IMGUI_API void EndFrame(); // ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all! + IMGUI_API void Render(); // ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData(). + IMGUI_API ImDrawData* GetDrawData(); // valid after Render() and until the next call to NewFrame(). this is what you have to render. + + // Demo, Debug, Information + IMGUI_API void ShowDemoWindow(bool* p_open = NULL); // create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! + IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. + IMGUI_API void ShowDebugLogWindow(bool* p_open = NULL); // create Debug Log window. display a simplified log of important dear imgui events. + IMGUI_API void ShowStackToolWindow(bool* p_open = NULL); // create Stack Tool window. hover items with mouse to query information about the source of their unique ID. + IMGUI_API void ShowAboutWindow(bool* p_open = NULL); // create About window. display Dear ImGui version, credits and build/system information. + IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) + IMGUI_API bool ShowStyleSelector(const char* label); // add style selector block (not a window), essentially a combo listing the default styles. + IMGUI_API void ShowFontSelector(const char* label); // add font selector block (not a window), essentially a combo listing the loaded fonts. + IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls). + IMGUI_API const char* GetVersion(); // get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp) + + // Styles + IMGUI_API void StyleColorsDark(ImGuiStyle* dst = NULL); // new, recommended style (default) + IMGUI_API void StyleColorsLight(ImGuiStyle* dst = NULL); // best used with borders and a custom, thicker font + IMGUI_API void StyleColorsClassic(ImGuiStyle* dst = NULL); // classic imgui style + + // Windows + // - Begin() = push window to the stack and start appending to it. End() = pop window from the stack. + // - Passing 'bool* p_open != NULL' shows a window-closing widget in the upper-right corner of the window, + // which clicking will set the boolean to false when clicked. + // - You may append multiple times to the same window during the same frame by calling Begin()/End() pairs multiple times. + // Some information such as 'flags' or 'p_open' will only be considered by the first call to Begin(). + // - Begin() return false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting + // anything to the window. Always call a matching End() for each Begin() call, regardless of its return value! + // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, + // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function + // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] + // - Note that the bottom of window stack always contains a window called "Debug". + IMGUI_API bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); + IMGUI_API void End(); + + // Child Windows + // - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child. + // - For each independent axis of 'size': ==0.0f: use remaining host window size / >0.0f: fixed size / <0.0f: use remaining window size minus abs(size) / Each axis can use a different mode, e.g. ImVec2(0,400). + // - BeginChild() returns false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting anything to the window. + // Always call a matching EndChild() for each BeginChild() call, regardless of its return value. + // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, + // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function + // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] + IMGUI_API bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); + IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); + IMGUI_API void EndChild(); + + // Windows Utilities + // - 'current window' = the window we are appending into while inside a Begin()/End() block. 'next window' = next window we will Begin() into. + IMGUI_API bool IsWindowAppearing(); + IMGUI_API bool IsWindowCollapsed(); + IMGUI_API bool IsWindowFocused(ImGuiFocusedFlags flags=0); // is current window focused? or its root/child, depending on flags. see flags for options. + IMGUI_API bool IsWindowHovered(ImGuiHoveredFlags flags=0); // is current window hovered (and typically: not blocked by a popup/modal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! + IMGUI_API ImDrawList* GetWindowDrawList(); // get draw list associated to the current window, to append your own drawing primitives + IMGUI_API ImVec2 GetWindowPos(); // get current window position in screen space (useful if you want to do your own drawing via the DrawList API) + IMGUI_API ImVec2 GetWindowSize(); // get current window size + IMGUI_API float GetWindowWidth(); // get current window width (shortcut for GetWindowSize().x) + IMGUI_API float GetWindowHeight(); // get current window height (shortcut for GetWindowSize().y) + + // Window manipulation + // - Prefer using SetNextXXX functions (before Begin) rather that SetXXX functions (after Begin). + IMGUI_API void SetNextWindowPos(const ImVec2& pos, ImGuiCond cond = 0, const ImVec2& pivot = ImVec2(0, 0)); // set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. + IMGUI_API void SetNextWindowSize(const ImVec2& size, ImGuiCond cond = 0); // set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() + IMGUI_API void SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL, void* custom_callback_data = NULL); // set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. + IMGUI_API void SetNextWindowContentSize(const ImVec2& size); // set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() + IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // set next window collapsed state. call before Begin() + IMGUI_API void SetNextWindowFocus(); // set next window to be focused / top-most. call before Begin() + IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // set next window scrolling value (use < 0.0f to not affect a given axis). + IMGUI_API void SetNextWindowBgAlpha(float alpha); // set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground. + IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); // (not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. + IMGUI_API void SetWindowSize(const ImVec2& size, ImGuiCond cond = 0); // (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. + IMGUI_API void SetWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). + IMGUI_API void SetWindowFocus(); // (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus(). + IMGUI_API void SetWindowFontScale(float scale); // [OBSOLETE] set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). + IMGUI_API void SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond = 0); // set named window position. + IMGUI_API void SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond = 0); // set named window size. set axis to 0.0f to force an auto-fit on this axis. + IMGUI_API void SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond = 0); // set named window collapsed state + IMGUI_API void SetWindowFocus(const char* name); // set named window to be focused / top-most. use NULL to remove focus. + + // Content region + // - Retrieve available space from a given point. GetContentRegionAvail() is frequently useful. + // - Those functions are bound to be redesigned (they are confusing, incomplete and the Min/Max return values are in local window coordinates which increases confusion) + IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - GetCursorPos() + IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates + IMGUI_API ImVec2 GetWindowContentRegionMin(); // content boundaries min for the full window (roughly (0,0)-Scroll), in window coordinates + IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be overridden with SetNextWindowContentSize(), in window coordinates + + // Windows Scrolling + // - Any change of Scroll will be applied at the beginning of next frame in the first call to Begin(). + // - You may instead use SetNextWindowScroll() prior to calling Begin() to avoid this delay, as an alternative to using SetScrollX()/SetScrollY(). + IMGUI_API float GetScrollX(); // get scrolling amount [0 .. GetScrollMaxX()] + IMGUI_API float GetScrollY(); // get scrolling amount [0 .. GetScrollMaxY()] + IMGUI_API void SetScrollX(float scroll_x); // set scrolling amount [0 .. GetScrollMaxX()] + IMGUI_API void SetScrollY(float scroll_y); // set scrolling amount [0 .. GetScrollMaxY()] + IMGUI_API float GetScrollMaxX(); // get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x + IMGUI_API float GetScrollMaxY(); // get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y + IMGUI_API void SetScrollHereX(float center_x_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollFromPosX(float local_x, float center_x_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + + // Parameters stacks (shared) + IMGUI_API void PushFont(ImFont* font); // use NULL as a shortcut to push default font + IMGUI_API void PopFont(); + IMGUI_API void PushStyleColor(ImGuiCol idx, ImU32 col); // modify a style color. always use this if you modify the style after NewFrame(). + IMGUI_API void PushStyleColor(ImGuiCol idx, const ImVec4& col); + IMGUI_API void PopStyleColor(int count = 1); + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, float val); // modify a style float variable. always use this if you modify the style after NewFrame(). + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, const ImVec2& val); // modify a style ImVec2 variable. always use this if you modify the style after NewFrame(). + IMGUI_API void PopStyleVar(int count = 1); + IMGUI_API void PushAllowKeyboardFocus(bool allow_keyboard_focus); // == tab stop enable. Allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets + IMGUI_API void PopAllowKeyboardFocus(); + IMGUI_API void PushButtonRepeat(bool repeat); // in 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting). Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame. + IMGUI_API void PopButtonRepeat(); + + // Parameters stacks (current window) + IMGUI_API void PushItemWidth(float item_width); // push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side). + IMGUI_API void PopItemWidth(); + IMGUI_API void SetNextItemWidth(float item_width); // set width of the _next_ common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side) + IMGUI_API float CalcItemWidth(); // width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. + IMGUI_API void PushTextWrapPos(float wrap_local_pos_x = 0.0f); // push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space + IMGUI_API void PopTextWrapPos(); + + // Style read access + // - Use the style editor (ShowStyleEditor() function) to interactively see what the colors are) + IMGUI_API ImFont* GetFont(); // get current font + IMGUI_API float GetFontSize(); // get current font size (= height in pixels) of current font with current scale applied + IMGUI_API ImVec2 GetFontTexUvWhitePixel(); // get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API + IMGUI_API ImU32 GetColorU32(ImGuiCol idx, float alpha_mul = 1.0f); // retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList + IMGUI_API ImU32 GetColorU32(const ImVec4& col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList + IMGUI_API ImU32 GetColorU32(ImU32 col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList + IMGUI_API const ImVec4& GetStyleColorVec4(ImGuiCol idx); // retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in. + + // Cursor / Layout + // - By "cursor" we mean the current output position. + // - The typical widget behavior is to output themselves at the current cursor position, then move the cursor one line down. + // - You can call SameLine() between widgets to undo the last carriage return and output at the right of the preceding widget. + // - Attention! We currently have inconsistencies between window-local and absolute positions we will aim to fix with future API: + // Window-local coordinates: SameLine(), GetCursorPos(), SetCursorPos(), GetCursorStartPos(), GetContentRegionMax(), GetWindowContentRegion*(), PushTextWrapPos() + // Absolute coordinate: GetCursorScreenPos(), SetCursorScreenPos(), all ImDrawList:: functions. + IMGUI_API void Separator(); // separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. + IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f); // call between widgets or groups to layout them horizontally. X position given in window coordinates. + IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in a horizontal-layout context. + IMGUI_API void Spacing(); // add vertical spacing. + IMGUI_API void Dummy(const ImVec2& size); // add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. + IMGUI_API void Indent(float indent_w = 0.0f); // move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 + IMGUI_API void Unindent(float indent_w = 0.0f); // move content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0 + IMGUI_API void BeginGroup(); // lock horizontal starting position + IMGUI_API void EndGroup(); // unlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) + IMGUI_API ImVec2 GetCursorPos(); // cursor position in window coordinates (relative to window position) + IMGUI_API float GetCursorPosX(); // (some functions are using window-relative coordinates, such as: GetCursorPos, GetCursorStartPos, GetContentRegionMax, GetWindowContentRegion* etc. + IMGUI_API float GetCursorPosY(); // other functions such as GetCursorScreenPos or everything in ImDrawList:: + IMGUI_API void SetCursorPos(const ImVec2& local_pos); // are using the main, absolute coordinate system. + IMGUI_API void SetCursorPosX(float local_x); // GetWindowPos() + GetCursorPos() == GetCursorScreenPos() etc.) + IMGUI_API void SetCursorPosY(float local_y); // + IMGUI_API ImVec2 GetCursorStartPos(); // initial cursor position in window coordinates + IMGUI_API ImVec2 GetCursorScreenPos(); // cursor position in absolute coordinates (useful to work with ImDrawList API). generally top-left == GetMainViewport()->Pos == (0,0) in single viewport mode, and bottom-right == GetMainViewport()->Pos+Size == io.DisplaySize in single-viewport mode. + IMGUI_API void SetCursorScreenPos(const ImVec2& pos); // cursor position in absolute coordinates + IMGUI_API void AlignTextToFramePadding(); // vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item) + IMGUI_API float GetTextLineHeight(); // ~ FontSize + IMGUI_API float GetTextLineHeightWithSpacing(); // ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text) + IMGUI_API float GetFrameHeight(); // ~ FontSize + style.FramePadding.y * 2 + IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) + + // ID stack/scopes + // Read the FAQ (docs/FAQ.md or http://dearimgui.org/faq) for more details about how ID are handled in dear imgui. + // - Those questions are answered and impacted by understanding of the ID stack system: + // - "Q: Why is my widget not reacting when I click on it?" + // - "Q: How can I have widgets with an empty label?" + // - "Q: How can I have multiple widgets with the same label?" + // - Short version: ID are hashes of the entire ID stack. If you are creating widgets in a loop you most likely + // want to push a unique identifier (e.g. object pointer, loop index) to uniquely differentiate them. + // - You can also use the "Label##foobar" syntax within widget label to distinguish them from each others. + // - In this header file we use the "label"/"name" terminology to denote a string that will be displayed + used as an ID, + // whereas "str_id" denote a string that is only used as an ID and not normally displayed. + IMGUI_API void PushID(const char* str_id); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const char* str_id_begin, const char* str_id_end); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const void* ptr_id); // push pointer into the ID stack (will hash pointer). + IMGUI_API void PushID(int int_id); // push integer into the ID stack (will hash integer). + IMGUI_API void PopID(); // pop from the ID stack. + IMGUI_API ImGuiID GetID(const char* str_id); // calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself + IMGUI_API ImGuiID GetID(const char* str_id_begin, const char* str_id_end); + IMGUI_API ImGuiID GetID(const void* ptr_id); + + // Widgets: Text + IMGUI_API void TextUnformatted(const char* text, const char* text_end = NULL); // raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. + IMGUI_API void Text(const char* fmt, ...) IM_FMTARGS(1); // formatted text + IMGUI_API void TextV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextColored(const ImVec4& col, const char* fmt, ...) IM_FMTARGS(2); // shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextColoredV(const ImVec4& col, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void TextDisabled(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextDisabledV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextWrapped(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize(). + IMGUI_API void TextWrappedV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void LabelText(const char* label, const char* fmt, ...) IM_FMTARGS(2); // display text+label aligned the same way as value+label widgets + IMGUI_API void LabelTextV(const char* label, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void BulletText(const char* fmt, ...) IM_FMTARGS(1); // shortcut for Bullet()+Text() + IMGUI_API void BulletTextV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Widgets: Main + // - Most widgets return true when the value has been changed or when pressed/selected + // - You may also use one of the many IsItemXXX functions (e.g. IsItemActive, IsItemHovered, etc.) to query widget state. + IMGUI_API bool Button(const char* label, const ImVec2& size = ImVec2(0, 0)); // button + IMGUI_API bool SmallButton(const char* label); // button with FramePadding=(0,0) to easily embed within text + IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0); // flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) + IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); // square button with an arrow shape + IMGUI_API bool Checkbox(const char* label, bool* v); + IMGUI_API bool CheckboxFlags(const char* label, int* flags, int flags_value); + IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value); + IMGUI_API bool RadioButton(const char* label, bool active); // use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; } + IMGUI_API bool RadioButton(const char* label, int* v, int v_button); // shortcut to handle the above pattern when value is an integer + IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-FLT_MIN, 0), const char* overlay = NULL); + IMGUI_API void Bullet(); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses + + // Widgets: Images + // - Read about ImTextureID here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& tint_col = ImVec4(1, 1, 1, 1), const ImVec4& border_col = ImVec4(0, 0, 0, 0)); + IMGUI_API bool ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); + + // Widgets: Combo Box (Dropdown) + // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. + // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created. + IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0); + IMGUI_API void EndCombo(); // only call EndCombo() if BeginCombo() returns true! + IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1); + IMGUI_API bool Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items = -1); // Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" + IMGUI_API bool Combo(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int popup_max_height_in_items = -1); + + // Widgets: Drag Sliders + // - CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. + // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every function, note that a 'float v[X]' function argument is the same as 'float* v', + // the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). + // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits if ImGuiSliderFlags_AlwaysClamp is not used. + // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. + // - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. + // - Legacy: Pre-1.78 there are DragXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat3(const char* label, float v[3], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat4(const char* label, float v[4], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt(const char* label, int* v, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragInt2(const char* label, int v[2], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt3(const char* label, int v[3], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt4(const char* label, int v[4], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed = 1.0f, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed = 1.0f, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Regular Sliders + // - CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Legacy: Pre-1.78 there are SliderXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. + IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderAngle(const char* label, float* v_rad, float v_degrees_min = -360.0f, float v_degrees_max = +360.0f, const char* format = "%.0f deg", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt(const char* label, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Input with Keyboard + // - If you want to use InputText() with std::string or any custom dynamic string type, see misc/cpp/imgui_stdlib.h and comments in imgui_demo.cpp. + // - Most of the ImGuiInputTextFlags flags are only useful for InputText() and not for InputFloatX, InputIntX, InputDouble etc. + IMGUI_API bool InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputFloat(const char* label, float* v, float step = 0.0f, float step_fast = 0.0f, const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat2(const char* label, float v[2], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat3(const char* label, float v[3], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat4(const char* label, float v[4], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt(const char* label, int* v, int step = 1, int step_fast = 100, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputDouble(const char* label, double* v, double step = 0.0, double step_fast = 0.0, const char* format = "%.6f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + + // Widgets: Color Editor/Picker (tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu.) + // - Note that in C++ a 'float v[X]' function argument is the _same_ as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. + // - You can pass the address of a first float element out of a contiguous structure, e.g. &myvector.x + IMGUI_API bool ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = 0, const float* ref_col = NULL); + IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // display a color square/button, hover for details, return true when pressed. + IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); // initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. + + // Widgets: Trees + // - TreeNode functions return true when the node is open, in which case you need to also call TreePop() when you are finished displaying the tree node contents. + IMGUI_API bool TreeNode(const char* label); + IMGUI_API bool TreeNode(const char* str_id, const char* fmt, ...) IM_FMTARGS(2); // helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). + IMGUI_API bool TreeNode(const void* ptr_id, const char* fmt, ...) IM_FMTARGS(2); // " + IMGUI_API bool TreeNodeV(const char* str_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeV(const void* ptr_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0); + IMGUI_API bool TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API void TreePush(const char* str_id); // ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. + IMGUI_API void TreePush(const void* ptr_id); // " + IMGUI_API void TreePop(); // ~ Unindent()+PopId() + IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode + IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); // if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). + IMGUI_API bool CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags = 0); // when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. + IMGUI_API void SetNextItemOpen(bool is_open, ImGuiCond cond = 0); // set next TreeNode/CollapsingHeader open state. + + // Widgets: Selectables + // - A selectable highlights when hovered, and can display another color when selected. + // - Neighbors selectable extend their highlight bounds in order to leave no gap between them. This is so a series of selected Selectable appear contiguous. + IMGUI_API bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height + IMGUI_API bool Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool* p_selected" point to the selection state (read-write), as a convenient helper. + + // Widgets: List Boxes + // - This is essentially a thin wrapper to using BeginChild/EndChild with some stylistic changes. + // - The BeginListBox()/EndListBox() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() or any items. + // - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analoguous to how Combos are created. + // - Choose frame width: size.x > 0.0f: custom / size.x < 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth + // - Choose frame height: size.y > 0.0f: custom / size.y < 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items + IMGUI_API bool BeginListBox(const char* label, const ImVec2& size = ImVec2(0, 0)); // open a framed scrolling region + IMGUI_API void EndListBox(); // only call EndListBox() if BeginListBox() returned true! + IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1); + IMGUI_API bool ListBox(const char* label, int* current_item, bool (*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int height_in_items = -1); + + // Widgets: Data Plotting + // - Consider using ImPlot (https://github.com/epezent/implot) which is much better! + IMGUI_API void PlotLines(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotLines(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + IMGUI_API void PlotHistogram(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotHistogram(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + + // Widgets: Value() Helpers. + // - Those are merely shortcut to calling Text() with a format string. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace) + IMGUI_API void Value(const char* prefix, bool b); + IMGUI_API void Value(const char* prefix, int v); + IMGUI_API void Value(const char* prefix, unsigned int v); + IMGUI_API void Value(const char* prefix, float v, const char* float_format = NULL); + + // Widgets: Menus + // - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar. + // - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it. + // - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it. + // - Not that MenuItem() keyboardshortcuts are displayed as a convenience but _not processed_ by Dear ImGui at the moment. + IMGUI_API bool BeginMenuBar(); // append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window). + IMGUI_API void EndMenuBar(); // only call EndMenuBar() if BeginMenuBar() returns true! + IMGUI_API bool BeginMainMenuBar(); // create and append to a full screen menu-bar. + IMGUI_API void EndMainMenuBar(); // only call EndMainMenuBar() if BeginMainMenuBar() returns true! + IMGUI_API bool BeginMenu(const char* label, bool enabled = true); // create a sub-menu entry. only call EndMenu() if this returns true! + IMGUI_API void EndMenu(); // only call EndMenu() if BeginMenu() returns true! + IMGUI_API bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true); // return true when activated. + IMGUI_API bool MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled = true); // return true when activated + toggle (*p_selected) if p_selected != NULL + + // Tooltips + // - Tooltip are windows following the mouse. They do not take focus away. + IMGUI_API void BeginTooltip(); // begin/append a tooltip window. to create full-featured tooltip (with any kind of items). + IMGUI_API void EndTooltip(); + IMGUI_API void SetTooltip(const char* fmt, ...) IM_FMTARGS(1); // set a text-only tooltip, typically use with ImGui::IsItemHovered(). override any previous call to SetTooltip(). + IMGUI_API void SetTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Popups, Modals + // - They block normal mouse hovering detection (and therefore most mouse interactions) behind them. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - Their visibility state (~bool) is held internally instead of being held by the programmer as we are used to with regular Begin*() calls. + // - The 3 properties above are related: we need to retain popup visibility state in the library because popups may be closed as any time. + // - You can bypass the hovering restriction by using ImGuiHoveredFlags_AllowWhenBlockedByPopup when calling IsItemHovered() or IsWindowHovered(). + // - IMPORTANT: Popup identifiers are relative to the current ID stack, so OpenPopup and BeginPopup generally needs to be at the same level of the stack. + // This is sometimes leading to confusing mistakes. May rework this in the future. + + // Popups: begin/end functions + // - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards. ImGuiWindowFlags are forwarded to the window. + // - BeginPopupModal(): block every interaction behind the window, cannot be closed by user, add a dimming background, has a title bar. + IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); // return true if the popup is open, and you can start outputting to it. + IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); // return true if the modal is open, and you can start outputting to it. + IMGUI_API void EndPopup(); // only call EndPopup() if BeginPopupXXX() returns true! + + // Popups: open/close functions + // - OpenPopup(): set popup state to open. ImGuiPopupFlags are available for opening options. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - CloseCurrentPopup(): use inside the BeginPopup()/EndPopup() scope to close manually. + // - CloseCurrentPopup() is called by default by Selectable()/MenuItem() when activated (FIXME: need some options). + // - Use ImGuiPopupFlags_NoOpenOverExistingPopup to avoid opening a popup if there's already one at the same level. This is equivalent to e.g. testing for !IsAnyPopupOpen() prior to OpenPopup(). + // - Use IsWindowAppearing() after BeginPopup() to tell if a window just opened. + // - IMPORTANT: Notice that for OpenPopupOnItemClick() we exceptionally default flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter + IMGUI_API void OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); // call to mark popup as open (don't call every frame!). + IMGUI_API void OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags = 0); // id overload to facilitate calling from nested stacks + IMGUI_API void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) + IMGUI_API void CloseCurrentPopup(); // manually close the popup we have begin-ed into. + + // Popups: open+begin combined functions helpers + // - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking. + // - They are convenient to easily create context menus, hence the name. + // - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future. + // - IMPORTANT: Notice that we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. + IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! + IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);// open+begin popup when clicked on current window. + IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked in void (where there are no windows). + + // Popups: query functions + // - IsPopupOpen(): return true if the popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId: return true if any popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId + ImGuiPopupFlags_AnyPopupLevel: return true if any popup is open. + IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); // return true if the popup is open. + + // Tables + // - Full-featured replacement for old Columns API. + // - See Demo->Tables for demo code. See top of imgui_tables.cpp for general commentary. + // - See ImGuiTableFlags_ and ImGuiTableColumnFlags_ enums for a description of available flags. + // The typical call flow is: + // - 1. Call BeginTable(), early out if returning false. + // - 2. Optionally call TableSetupColumn() to submit column name/flags/defaults. + // - 3. Optionally call TableSetupScrollFreeze() to request scroll freezing of columns/rows. + // - 4. Optionally call TableHeadersRow() to submit a header row. Names are pulled from TableSetupColumn() data. + // - 5. Populate contents: + // - In most situations you can use TableNextRow() + TableSetColumnIndex(N) to start appending into a column. + // - If you are using tables as a sort of grid, where every column is holding the same type of contents, + // you may prefer using TableNextColumn() instead of TableNextRow() + TableSetColumnIndex(). + // TableNextColumn() will automatically wrap-around into the next row if needed. + // - IMPORTANT: Comparatively to the old Columns() API, we need to call TableNextColumn() for the first column! + // - Summary of possible call flow: + // -------------------------------------------------------------------------------------------------------- + // TableNextRow() -> TableSetColumnIndex(0) -> Text("Hello 0") -> TableSetColumnIndex(1) -> Text("Hello 1") // OK + // TableNextRow() -> TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK + // TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK: TableNextColumn() automatically gets to next row! + // TableNextRow() -> Text("Hello 0") // Not OK! Missing TableSetColumnIndex() or TableNextColumn()! Text will not appear! + // -------------------------------------------------------------------------------------------------------- + // - 5. Call EndTable() + IMGUI_API bool BeginTable(const char* str_id, int column, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0.0f, 0.0f), float inner_width = 0.0f); + IMGUI_API void EndTable(); // only call EndTable() if BeginTable() returns true! + IMGUI_API void TableNextRow(ImGuiTableRowFlags row_flags = 0, float min_row_height = 0.0f); // append into the first cell of a new row. + IMGUI_API bool TableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible. + IMGUI_API bool TableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible. + + // Tables: Headers & Columns declaration + // - Use TableSetupColumn() to specify label, resizing policy, default width/weight, id, various other flags etc. + // - Use TableHeadersRow() to create a header row and automatically submit a TableHeader() for each column. + // Headers are required to perform: reordering, sorting, and opening the context menu. + // The context menu can also be made available in columns body using ImGuiTableFlags_ContextMenuInBody. + // - You may manually submit headers using TableNextRow() + TableHeader() calls, but this is only useful in + // some advanced use cases (e.g. adding custom widgets in header row). + // - Use TableSetupScrollFreeze() to lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableSetupColumn(const char* label, ImGuiTableColumnFlags flags = 0, float init_width_or_weight = 0.0f, ImGuiID user_id = 0); + IMGUI_API void TableSetupScrollFreeze(int cols, int rows); // lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableHeadersRow(); // submit all headers cells based on data provided to TableSetupColumn() + submit context menu + IMGUI_API void TableHeader(const char* label); // submit one header cell manually (rarely used) + + // Tables: Sorting & Miscellaneous functions + // - Sorting: call TableGetSortSpecs() to retrieve latest sort specs for the table. NULL when not sorting. + // When 'sort_specs->SpecsDirty == true' you should sort your data. It will be true when sorting specs have + // changed since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, + // else you may wastefully sort your data every frame! + // - Functions args 'int column_n' treat the default value of -1 as the same as passing the current column index. + IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). + IMGUI_API int TableGetColumnCount(); // return number of columns (value passed to BeginTable) + IMGUI_API int TableGetColumnIndex(); // return current column index. + IMGUI_API int TableGetRowIndex(); // return current row index. + IMGUI_API const char* TableGetColumnName(int column_n = -1); // return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. + IMGUI_API ImGuiTableColumnFlags TableGetColumnFlags(int column_n = -1); // return column flags so you can query their Enabled/Visible/Sorted/Hovered status flags. Pass -1 to use current column. + IMGUI_API void TableSetColumnEnabled(int column_n, bool v);// change user accessible enabled/disabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) + IMGUI_API void TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n = -1); // change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details. + + // Legacy Columns API (prefer using Tables!) + // - You can also use SameLine(pos_x) to mimic simplified columns. + IMGUI_API void Columns(int count = 1, const char* id = NULL, bool border = true); + IMGUI_API void NextColumn(); // next column, defaults to current row or next row if the current row is finished + IMGUI_API int GetColumnIndex(); // get current column index + IMGUI_API float GetColumnWidth(int column_index = -1); // get column width (in pixels). pass -1 to use current column + IMGUI_API void SetColumnWidth(int column_index, float width); // set column width (in pixels). pass -1 to use current column + IMGUI_API float GetColumnOffset(int column_index = -1); // get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f + IMGUI_API void SetColumnOffset(int column_index, float offset_x); // set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column + IMGUI_API int GetColumnsCount(); + + // Tab Bars, Tabs + IMGUI_API bool BeginTabBar(const char* str_id, ImGuiTabBarFlags flags = 0); // create and append into a TabBar + IMGUI_API void EndTabBar(); // only call EndTabBar() if BeginTabBar() returns true! + IMGUI_API bool BeginTabItem(const char* label, bool* p_open = NULL, ImGuiTabItemFlags flags = 0); // create a Tab. Returns true if the Tab is selected. + IMGUI_API void EndTabItem(); // only call EndTabItem() if BeginTabItem() returns true! + IMGUI_API bool TabItemButton(const char* label, ImGuiTabItemFlags flags = 0); // create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. + IMGUI_API void SetTabItemClosed(const char* tab_or_docked_window_label); // notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. + + // Logging/Capture + // - All text output from the interface can be captured into tty/file/clipboard. By default, tree nodes are automatically opened during logging. + IMGUI_API void LogToTTY(int auto_open_depth = -1); // start logging to tty (stdout) + IMGUI_API void LogToFile(int auto_open_depth = -1, const char* filename = NULL); // start logging to file + IMGUI_API void LogToClipboard(int auto_open_depth = -1); // start logging to OS clipboard + IMGUI_API void LogFinish(); // stop logging (close file, etc.) + IMGUI_API void LogButtons(); // helper to display buttons for logging to tty/file/clipboard + IMGUI_API void LogText(const char* fmt, ...) IM_FMTARGS(1); // pass text data straight to log (without being displayed) + IMGUI_API void LogTextV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Drag and Drop + // - On source items, call BeginDragDropSource(), if it returns true also call SetDragDropPayload() + EndDragDropSource(). + // - On target candidates, call BeginDragDropTarget(), if it returns true also call AcceptDragDropPayload() + EndDragDropTarget(). + // - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725) + // - An item can be both drag source and drop target. + IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); // call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource() + IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. + IMGUI_API void EndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true! + IMGUI_API bool BeginDragDropTarget(); // call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() + IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0); // accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. + IMGUI_API void EndDragDropTarget(); // only call EndDragDropTarget() if BeginDragDropTarget() returns true! + IMGUI_API const ImGuiPayload* GetDragDropPayload(); // peek directly into the current payload from anywhere. may return NULL. use ImGuiPayload::IsDataType() to test for the payload type. + + // Disabling [BETA API] + // - Disable all user interactions and dim items visuals (applying style.DisabledAlpha over current colors) + // - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) + // - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it. + IMGUI_API void BeginDisabled(bool disabled = true); + IMGUI_API void EndDisabled(); + + // Clipping + // - Mouse hovering is affected by ImGui::PushClipRect() calls, unlike direct calls to ImDrawList::PushClipRect() which are render only. + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect); + IMGUI_API void PopClipRect(); + + // Focus, Activation + // - Prefer using "SetItemDefaultFocus()" over "if (IsWindowAppearing()) SetScrollHereY()" when applicable to signify "this is the default item" + IMGUI_API void SetItemDefaultFocus(); // make last item the default focused item of a window. + IMGUI_API void SetKeyboardFocusHere(int offset = 0); // focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. + + // Item/Widgets Utilities and Query Functions + // - Most of the functions are referring to the previous Item that has been submitted. + // - See Demo Window under "Widgets->Querying Status" for an interactive visualization of most of those functions. + IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); // is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. + IMGUI_API bool IsItemActive(); // is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false) + IMGUI_API bool IsItemFocused(); // is the last item focused for keyboard/gamepad navigation? + IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. + IMGUI_API bool IsItemVisible(); // is the last item visible? (items may be out of sight because of clipping/scrolling) + IMGUI_API bool IsItemEdited(); // did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. + IMGUI_API bool IsItemActivated(); // was the last item just made active (item was previously inactive). + IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing. + IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). + IMGUI_API bool IsItemToggledOpen(); // was the last item open state toggled? set by TreeNode(). + IMGUI_API bool IsAnyItemHovered(); // is any item hovered? + IMGUI_API bool IsAnyItemActive(); // is any item active? + IMGUI_API bool IsAnyItemFocused(); // is any item focused? + IMGUI_API ImVec2 GetItemRectMin(); // get upper-left bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectMax(); // get lower-right bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectSize(); // get size of last item + IMGUI_API void SetItemAllowOverlap(); // allow last item to be overlapped by a subsequent item. sometimes useful with invisible buttons, selectables, etc. to catch unused area. + + // Viewports + // - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. + // - In 'docking' branch with multi-viewport enabled, we extend this concept to have multiple active viewports. + // - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. + IMGUI_API ImGuiViewport* GetMainViewport(); // return primary/default viewport. This can never be NULL. + + // Background/Foreground Draw Lists + IMGUI_API ImDrawList* GetBackgroundDrawList(); // this draw list will be the first rendered one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(); // this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + + // Miscellaneous Utilities + IMGUI_API bool IsRectVisible(const ImVec2& size); // test if rectangle (of given size, starting from cursor position) is visible / not clipped. + IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. + IMGUI_API double GetTime(); // get global imgui time. incremented by io.DeltaTime every frame. + IMGUI_API int GetFrameCount(); // get global imgui frame count. incremented by 1 every frame. + IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); // you may use this when creating your own ImDrawList instances. + IMGUI_API const char* GetStyleColorName(ImGuiCol idx); // get a string corresponding to the enum value (for display, saving, etc.). + IMGUI_API void SetStateStorage(ImGuiStorage* storage); // replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) + IMGUI_API ImGuiStorage* GetStateStorage(); + IMGUI_API bool BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags flags = 0); // helper to create a child window / scrolling region that looks like a normal widget frame + IMGUI_API void EndChildFrame(); // always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window) + + // Text Utilities + IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); + + // Color Utilities + IMGUI_API ImVec4 ColorConvertU32ToFloat4(ImU32 in); + IMGUI_API ImU32 ColorConvertFloat4ToU32(const ImVec4& in); + IMGUI_API void ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v); + IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); + + // Inputs Utilities: Keyboard + // Without IMGUI_DISABLE_OBSOLETE_KEYIO: (legacy support) + // - For 'ImGuiKey key' you can still use your legacy native/user indices according to how your backend/engine stored them in io.KeysDown[]. + // With IMGUI_DISABLE_OBSOLETE_KEYIO: (this is the way forward) + // - Any use of 'ImGuiKey' will assert when key < 512 will be passed, previously reserved as native/user keys indices + // - GetKeyIndex() is pass-through and therefore deprecated (gone if IMGUI_DISABLE_OBSOLETE_KEYIO is defined) + IMGUI_API bool IsKeyDown(ImGuiKey key); // is key being held. + IMGUI_API bool IsKeyPressed(ImGuiKey key, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate + IMGUI_API bool IsKeyReleased(ImGuiKey key); // was key released (went from Down to !Down)? + IMGUI_API int GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate + IMGUI_API const char* GetKeyName(ImGuiKey key); // [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared. + IMGUI_API void SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); // Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call. + + // Inputs Utilities: Mouse + // - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right. + // - You can also use regular integer: it is forever guaranteed that 0=Left, 1=Right, 2=Middle. + // - Dragging operations are only reported after mouse has moved a certain distance away from the initial clicking position (see 'lock_threshold' and 'io.MouseDraggingThreshold') + IMGUI_API bool IsMouseDown(ImGuiMouseButton button); // is mouse button held? + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, bool repeat = false); // did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1. + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button); // did mouse button released? (went from Down to !Down) + IMGUI_API bool IsMouseDoubleClicked(ImGuiMouseButton button); // did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true) + IMGUI_API int GetMouseClickedCount(ImGuiMouseButton button); // return the number of successive mouse-clicks at the time where a click happen (otherwise 0). + IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = true);// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. + IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); // by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available + IMGUI_API bool IsAnyMouseDown(); // [WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. + IMGUI_API ImVec2 GetMousePos(); // shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls + IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); // retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) + IMGUI_API bool IsMouseDragging(ImGuiMouseButton button, float lock_threshold = -1.0f); // is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0, float lock_threshold = -1.0f); // return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API void ResetMouseDragDelta(ImGuiMouseButton button = 0); // + IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you + IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired mouse cursor shape + IMGUI_API void SetNextFrameWantCaptureMouse(bool want_capture_mouse); // Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call. + + // Clipboard Utilities + // - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard. + IMGUI_API const char* GetClipboardText(); + IMGUI_API void SetClipboardText(const char* text); + + // Settings/.Ini Utilities + // - The disk functions are automatically called if io.IniFilename != NULL (default is "imgui.ini"). + // - Set io.IniFilename to NULL to load/save manually. Read io.WantSaveIniSettings description about handling .ini saving manually. + // - Important: default value "imgui.ini" is relative to current working dir! Most apps will want to lock this to an absolute path (e.g. same path as executables). + IMGUI_API void LoadIniSettingsFromDisk(const char* ini_filename); // call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). + IMGUI_API void LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size=0); // call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. + IMGUI_API void SaveIniSettingsToDisk(const char* ini_filename); // this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). + IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. + + // Debug Utilities + IMGUI_API void DebugTextEncoding(const char* text); + IMGUI_API bool 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); // This is called by IMGUI_CHECKVERSION() macro. + + // Memory Allocators + // - Those functions are not reliant on the current context. + // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() + // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. + IMGUI_API void SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data = NULL); + IMGUI_API void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data); + IMGUI_API void* MemAlloc(size_t size); + IMGUI_API void MemFree(void* ptr); + +} // namespace ImGui + +//----------------------------------------------------------------------------- +// [SECTION] Flags & Enumerations +//----------------------------------------------------------------------------- + +// Flags for ImGui::Begin() +// (Those are per-window flags. There are shared flags in ImGuiIO: io.ConfigWindowsResizeFromEdges and io.ConfigWindowsMoveFromTitleBarOnly) +enum ImGuiWindowFlags_ +{ + ImGuiWindowFlags_None = 0, + ImGuiWindowFlags_NoTitleBar = 1 << 0, // Disable title-bar + ImGuiWindowFlags_NoResize = 1 << 1, // Disable user resizing with the lower-right grip + ImGuiWindowFlags_NoMove = 1 << 2, // Disable user moving the window + ImGuiWindowFlags_NoScrollbar = 1 << 3, // Disable scrollbars (window can still scroll with mouse or programmatically) + ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, // Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set. + ImGuiWindowFlags_NoCollapse = 1 << 5, // Disable user collapsing window by double-clicking on it. Also referred to as Window Menu Button (e.g. within a docking node). + ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, // Resize every window to its content every frame + ImGuiWindowFlags_NoBackground = 1 << 7, // Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f). + ImGuiWindowFlags_NoSavedSettings = 1 << 8, // Never load/save settings in .ini file + ImGuiWindowFlags_NoMouseInputs = 1 << 9, // Disable catching mouse, hovering test with pass through. + ImGuiWindowFlags_MenuBar = 1 << 10, // Has a menu-bar + ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, // Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section. + ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, // Disable taking focus when transitioning from hidden to visible state + ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, // Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus) + ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, // Always show vertical scrollbar (even if ContentSize.y < Size.y) + ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, // Always show horizontal scrollbar (even if ContentSize.x < Size.x) + ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, // Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient) + ImGuiWindowFlags_NoNavInputs = 1 << 18, // No gamepad/keyboard navigation within the window + ImGuiWindowFlags_NoNavFocus = 1 << 19, // No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB) + ImGuiWindowFlags_UnsavedDocument = 1 << 20, // Display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, + ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + + // [Internal] + ImGuiWindowFlags_NavFlattened = 1 << 23, // [BETA] On child window: allow gamepad/keyboard navigation to cross over parent border to this child or between sibling child windows. + ImGuiWindowFlags_ChildWindow = 1 << 24, // Don't use! For internal use by BeginChild() + ImGuiWindowFlags_Tooltip = 1 << 25, // Don't use! For internal use by BeginTooltip() + ImGuiWindowFlags_Popup = 1 << 26, // Don't use! For internal use by BeginPopup() + ImGuiWindowFlags_Modal = 1 << 27, // Don't use! For internal use by BeginPopupModal() + ImGuiWindowFlags_ChildMenu = 1 << 28, // Don't use! For internal use by BeginMenu() +}; + +// Flags for ImGui::InputText() +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigInputTextCursorBlink and io.ConfigInputTextEnterKeepActive) +enum ImGuiInputTextFlags_ +{ + ImGuiInputTextFlags_None = 0, + ImGuiInputTextFlags_CharsDecimal = 1 << 0, // Allow 0123456789.+-*/ + ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, // Allow 0123456789ABCDEFabcdef + ImGuiInputTextFlags_CharsUppercase = 1 << 2, // Turn a..z into A..Z + ImGuiInputTextFlags_CharsNoBlank = 1 << 3, // Filter out spaces, tabs + ImGuiInputTextFlags_AutoSelectAll = 1 << 4, // Select entire text when first taking mouse focus + ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function. + ImGuiInputTextFlags_CallbackCompletion = 1 << 6, // Callback on pressing TAB (for completion handling) + ImGuiInputTextFlags_CallbackHistory = 1 << 7, // Callback on pressing Up/Down arrows (for history handling) + ImGuiInputTextFlags_CallbackAlways = 1 << 8, // Callback on each iteration. User code may query cursor position, modify text buffer. + ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. + ImGuiInputTextFlags_AllowTabInput = 1 << 10, // Pressing TAB input a '\t' character into the text field + ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, // In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter). + ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, // Disable following the cursor horizontally + ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13, // Overwrite mode + ImGuiInputTextFlags_ReadOnly = 1 << 14, // Read-only mode + ImGuiInputTextFlags_Password = 1 << 15, // Password mode, display all characters as '*' + ImGuiInputTextFlags_NoUndoRedo = 1 << 16, // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID(). + ImGuiInputTextFlags_CharsScientific = 1 << 17, // Allow 0123456789.+-*/eE (Scientific notation input) + ImGuiInputTextFlags_CallbackResize = 1 << 18, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) + ImGuiInputTextFlags_CallbackEdit = 1 << 19, // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, // Escape key clears content if not empty, and deactivate otherwise (constrast to default behavior of Escape to revert) + + // Obsolete names (will be removed soon) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite // [renamed in 1.82] name was not matching behavior +#endif +}; + +// Flags for ImGui::TreeNodeEx(), ImGui::CollapsingHeader*() +enum ImGuiTreeNodeFlags_ +{ + ImGuiTreeNodeFlags_None = 0, + ImGuiTreeNodeFlags_Selected = 1 << 0, // Draw as selected + ImGuiTreeNodeFlags_Framed = 1 << 1, // Draw frame with background (e.g. for CollapsingHeader) + ImGuiTreeNodeFlags_AllowItemOverlap = 1 << 2, // Hit testing to allow subsequent widgets to overlap this one + ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, // Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack + ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, // Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes) + ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, // Default node to be open + ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, // Need double-click to open node + ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, // Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open. + ImGuiTreeNodeFlags_Leaf = 1 << 8, // No collapsing, no arrow (use as a convenience for leaf nodes). + ImGuiTreeNodeFlags_Bullet = 1 << 9, // Display a bullet instead of arrow + ImGuiTreeNodeFlags_FramePadding = 1 << 10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding(). + ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, // Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line. In the future we may refactor the hit system to be front-to-back, allowing natural overlaps and then this can become the default. + ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, // Extend hit box to the left-most and right-most edges (bypass the indented area). + ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, // (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop) + //ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 14, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, +}; + +// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions. +// - To be backward compatible with older API which took an 'int mouse_button = 1' argument, we need to treat +// small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags. +// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags. +// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0. +// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter +// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly. +// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later). +enum ImGuiPopupFlags_ +{ + ImGuiPopupFlags_None = 0, + ImGuiPopupFlags_MouseButtonLeft = 0, // For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left) + ImGuiPopupFlags_MouseButtonRight = 1, // For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right) + ImGuiPopupFlags_MouseButtonMiddle = 2, // For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle) + ImGuiPopupFlags_MouseButtonMask_ = 0x1F, + ImGuiPopupFlags_MouseButtonDefault_ = 1, + ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, // For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack + ImGuiPopupFlags_NoOpenOverItems = 1 << 6, // For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space + ImGuiPopupFlags_AnyPopupId = 1 << 7, // For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup. + ImGuiPopupFlags_AnyPopupLevel = 1 << 8, // For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level) + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, +}; + +// Flags for ImGui::Selectable() +enum ImGuiSelectableFlags_ +{ + ImGuiSelectableFlags_None = 0, + ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this doesn't close parent popup window + ImGuiSelectableFlags_SpanAllColumns = 1 << 1, // Selectable frame can span all columns (text will still fit in current column) + ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, // Generate press events on double clicks too + ImGuiSelectableFlags_Disabled = 1 << 3, // Cannot be selected, display grayed out text + ImGuiSelectableFlags_AllowItemOverlap = 1 << 4, // (WIP) Hit testing to allow subsequent widgets to overlap this one +}; + +// Flags for ImGui::BeginCombo() +enum ImGuiComboFlags_ +{ + ImGuiComboFlags_None = 0, + ImGuiComboFlags_PopupAlignLeft = 1 << 0, // Align the popup toward the left by default + ImGuiComboFlags_HeightSmall = 1 << 1, // Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo() + ImGuiComboFlags_HeightRegular = 1 << 2, // Max ~8 items visible (default) + ImGuiComboFlags_HeightLarge = 1 << 3, // Max ~20 items visible + ImGuiComboFlags_HeightLargest = 1 << 4, // As many fitting items as possible + ImGuiComboFlags_NoArrowButton = 1 << 5, // Display on the preview box without the square arrow button + ImGuiComboFlags_NoPreview = 1 << 6, // Display only a square arrow button + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, +}; + +// Flags for ImGui::BeginTabBar() +enum ImGuiTabBarFlags_ +{ + ImGuiTabBarFlags_None = 0, + ImGuiTabBarFlags_Reorderable = 1 << 0, // Allow manually dragging tabs to re-order them + New tabs are appended at the end of list + ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, // Automatically select new tabs when they appear + ImGuiTabBarFlags_TabListPopupButton = 1 << 2, // Disable buttons to open the tab list popup + ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, // Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll) + ImGuiTabBarFlags_NoTooltip = 1 << 5, // Disable tooltips when hovering a tab + ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, // Resize tabs when they don't fit + ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, // Add scroll buttons when tabs don't fit + ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, +}; + +// Flags for ImGui::BeginTabItem() +enum ImGuiTabItemFlags_ +{ + ImGuiTabItemFlags_None = 0, + ImGuiTabItemFlags_UnsavedDocument = 1 << 0, // Display a dot next to the title + tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + ImGuiTabItemFlags_SetSelected = 1 << 1, // Trigger flag to programmatically make the tab selected when calling BeginTabItem() + ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabItemFlags_NoPushId = 1 << 3, // Don't call PushID(tab->ID)/PopID() on BeginTabItem()/EndTabItem() + ImGuiTabItemFlags_NoTooltip = 1 << 4, // Disable tooltip for the given tab + ImGuiTabItemFlags_NoReorder = 1 << 5, // Disable reordering this tab or having another tab cross over this tab + ImGuiTabItemFlags_Leading = 1 << 6, // Enforce the tab position to the left of the tab bar (after the tab list popup button) + ImGuiTabItemFlags_Trailing = 1 << 7, // Enforce the tab position to the right of the tab bar (before the scrolling buttons) +}; + +// Flags for ImGui::BeginTable() +// - Important! Sizing policies have complex and subtle side effects, much more so than you would expect. +// Read comments/demos carefully + experiment with live demos to get acquainted with them. +// - The DEFAULT sizing policies are: +// - Default to ImGuiTableFlags_SizingFixedFit if ScrollX is on, or if host window has ImGuiWindowFlags_AlwaysAutoResize. +// - Default to ImGuiTableFlags_SizingStretchSame if ScrollX is off. +// - When ScrollX is off: +// - Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretch with same weight. +// - Columns sizing policy allowed: Stretch (default), Fixed/Auto. +// - Fixed Columns (if any) will generally obtain their requested width (unless the table cannot fit them all). +// - Stretch Columns will share the remaining width according to their respective weight. +// - Mixed Fixed/Stretch columns is possible but has various side-effects on resizing behaviors. +// The typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. +// (this is because the visible order of columns have subtle but necessary effects on how they react to manual resizing). +// - When ScrollX is on: +// - Table defaults to ImGuiTableFlags_SizingFixedFit -> all Columns defaults to ImGuiTableColumnFlags_WidthFixed +// - Columns sizing policy allowed: Fixed/Auto mostly. +// - Fixed Columns can be enlarged as needed. Table will show a horizontal scrollbar if needed. +// - When using auto-resizing (non-resizable) fixed columns, querying the content width to use item right-alignment e.g. SetNextItemWidth(-FLT_MIN) doesn't make sense, would create a feedback loop. +// - Using Stretch columns OFTEN DOES NOT MAKE SENSE if ScrollX is on, UNLESS you have specified a value for 'inner_width' in BeginTable(). +// If you specify a value for 'inner_width' then effectively the scrolling space is known and Stretch or mixed Fixed/Stretch columns become meaningful again. +// - Read on documentation at the top of imgui_tables.cpp for details. +enum ImGuiTableFlags_ +{ + // Features + ImGuiTableFlags_None = 0, + ImGuiTableFlags_Resizable = 1 << 0, // Enable resizing columns. + ImGuiTableFlags_Reorderable = 1 << 1, // Enable reordering columns in header row (need calling TableSetupColumn() + TableHeadersRow() to display headers) + ImGuiTableFlags_Hideable = 1 << 2, // Enable hiding/disabling columns in context menu. + ImGuiTableFlags_Sortable = 1 << 3, // Enable sorting. Call TableGetSortSpecs() to obtain sort specs. Also see ImGuiTableFlags_SortMulti and ImGuiTableFlags_SortTristate. + ImGuiTableFlags_NoSavedSettings = 1 << 4, // Disable persisting columns order, width and sort settings in the .ini file. + ImGuiTableFlags_ContextMenuInBody = 1 << 5, // Right-click on columns body/contents will display table context menu. By default it is available in TableHeadersRow(). + // Decorations + ImGuiTableFlags_RowBg = 1 << 6, // Set each RowBg color with ImGuiCol_TableRowBg or ImGuiCol_TableRowBgAlt (equivalent of calling TableSetBgColor with ImGuiTableBgFlags_RowBg0 on each row manually) + ImGuiTableFlags_BordersInnerH = 1 << 7, // Draw horizontal borders between rows. + ImGuiTableFlags_BordersOuterH = 1 << 8, // Draw horizontal borders at the top and bottom. + ImGuiTableFlags_BordersInnerV = 1 << 9, // Draw vertical borders between columns. + ImGuiTableFlags_BordersOuterV = 1 << 10, // Draw vertical borders on the left and right sides. + ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, // Draw horizontal borders. + ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, // Draw vertical borders. + ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, // Draw inner borders. + ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, // Draw outer borders. + ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, // Draw all borders. + ImGuiTableFlags_NoBordersInBody = 1 << 11, // [ALPHA] Disable vertical borders in columns Body (borders will always appear in Headers). -> May move to style + ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, // [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers). -> May move to style + // Sizing Policy (read above for defaults) + ImGuiTableFlags_SizingFixedFit = 1 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width. + ImGuiTableFlags_SizingFixedSame = 2 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible. + ImGuiTableFlags_SizingStretchProp = 3 << 13, // Columns default to _WidthStretch with default weights proportional to each columns contents widths. + ImGuiTableFlags_SizingStretchSame = 4 << 13, // Columns default to _WidthStretch with default weights all equal, unless overridden by TableSetupColumn(). + // Sizing Extra Options + ImGuiTableFlags_NoHostExtendX = 1 << 16, // Make outer width auto-fit to columns, overriding outer_size.x value. Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. + ImGuiTableFlags_NoHostExtendY = 1 << 17, // Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible. + ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, // Disable keeping column always minimally visible when ScrollX is off and table gets too small. Not recommended if columns are resizable. + ImGuiTableFlags_PreciseWidths = 1 << 19, // Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth. + // Clipping + ImGuiTableFlags_NoClip = 1 << 20, // Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze(). + // Padding + ImGuiTableFlags_PadOuterX = 1 << 21, // Default if BordersOuterV is on. Enable outermost padding. Generally desirable if you have headers. + ImGuiTableFlags_NoPadOuterX = 1 << 22, // Default if BordersOuterV is off. Disable outermost padding. + ImGuiTableFlags_NoPadInnerX = 1 << 23, // Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off). + // Scrolling + ImGuiTableFlags_ScrollX = 1 << 24, // Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this creates a child window, ScrollY is currently generally recommended when using ScrollX. + ImGuiTableFlags_ScrollY = 1 << 25, // Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. + // Sorting + ImGuiTableFlags_SortMulti = 1 << 26, // Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1). + ImGuiTableFlags_SortTristate = 1 << 27, // Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0). + + // [Internal] Combinations and masks + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, +}; + +// Flags for ImGui::TableSetupColumn() +enum ImGuiTableColumnFlags_ +{ + // Input configuration flags + ImGuiTableColumnFlags_None = 0, + ImGuiTableColumnFlags_Disabled = 1 << 0, // Overriding/master disable flag: hide column, won't show in context menu (unlike calling TableSetColumnEnabled() which manipulates the user accessible state) + ImGuiTableColumnFlags_DefaultHide = 1 << 1, // Default as a hidden/disabled column. + ImGuiTableColumnFlags_DefaultSort = 1 << 2, // Default as a sorting column. + ImGuiTableColumnFlags_WidthStretch = 1 << 3, // Column will stretch. Preferable with horizontal scrolling disabled (default if table sizing policy is _SizingStretchSame or _SizingStretchProp). + ImGuiTableColumnFlags_WidthFixed = 1 << 4, // Column will not stretch. Preferable with horizontal scrolling enabled (default if table sizing policy is _SizingFixedFit and table is resizable). + ImGuiTableColumnFlags_NoResize = 1 << 5, // Disable manual resizing. + ImGuiTableColumnFlags_NoReorder = 1 << 6, // Disable manual reordering this column, this will also prevent other columns from crossing over this column. + ImGuiTableColumnFlags_NoHide = 1 << 7, // Disable ability to hide/disable this column. + ImGuiTableColumnFlags_NoClip = 1 << 8, // Disable clipping for this column (all NoClip columns will render in a same draw command). + ImGuiTableColumnFlags_NoSort = 1 << 9, // Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table). + ImGuiTableColumnFlags_NoSortAscending = 1 << 10, // Disable ability to sort in the ascending direction. + ImGuiTableColumnFlags_NoSortDescending = 1 << 11, // Disable ability to sort in the descending direction. + ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, // TableHeadersRow() will not submit label for this column. Convenient for some small columns. Name will still appear in context menu. + ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, // Disable header text width contribution to automatic column width. + ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, // Make the initial sort direction Ascending when first sorting on this column (default). + ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, // Make the initial sort direction Descending when first sorting on this column. + ImGuiTableColumnFlags_IndentEnable = 1 << 16, // Use current Indent value when entering cell (default for column 0). + ImGuiTableColumnFlags_IndentDisable = 1 << 17, // Ignore current Indent value when entering cell (default for columns > 0). Indentation changes _within_ the cell will still be honored. + + // Output status flags, read-only via TableGetColumnFlags() + ImGuiTableColumnFlags_IsEnabled = 1 << 24, // Status: is enabled == not hidden by user/api (referred to as "Hide" in _DefaultHide and _NoHide) flags. + ImGuiTableColumnFlags_IsVisible = 1 << 25, // Status: is visible == is enabled AND not clipped by scrolling. + ImGuiTableColumnFlags_IsSorted = 1 << 26, // Status: is currently part of the sort specs + ImGuiTableColumnFlags_IsHovered = 1 << 27, // Status: is hovered by mouse + + // [Internal] Combinations and masks + ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, + ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, + ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, // [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge) +}; + +// Flags for ImGui::TableNextRow() +enum ImGuiTableRowFlags_ +{ + ImGuiTableRowFlags_None = 0, + ImGuiTableRowFlags_Headers = 1 << 0, // Identify header row (set default background color + width of its contents accounted differently for auto column width) +}; + +// Enum for ImGui::TableSetBgColor() +// Background colors are rendering in 3 layers: +// - Layer 0: draw with RowBg0 color if set, otherwise draw with ColumnBg0 if set. +// - Layer 1: draw with RowBg1 color if set, otherwise draw with ColumnBg1 if set. +// - Layer 2: draw with CellBg color if set. +// The purpose of the two row/columns layers is to let you decide if a background color change should override or blend with the existing color. +// When using ImGuiTableFlags_RowBg on the table, each row has the RowBg0 color automatically set for odd/even rows. +// If you set the color of RowBg0 target, your color will override the existing RowBg0 color. +// If you set the color of RowBg1 or ColumnBg1 target, your color will blend over the RowBg0 color. +enum ImGuiTableBgTarget_ +{ + ImGuiTableBgTarget_None = 0, + ImGuiTableBgTarget_RowBg0 = 1, // Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used) + ImGuiTableBgTarget_RowBg1 = 2, // Set row background color 1 (generally used for selection marking) + ImGuiTableBgTarget_CellBg = 3, // Set cell background color (top-most color) +}; + +// Flags for ImGui::IsWindowFocused() +enum ImGuiFocusedFlags_ +{ + ImGuiFocusedFlags_None = 0, + ImGuiFocusedFlags_ChildWindows = 1 << 0, // Return true if any children of the window is focused + ImGuiFocusedFlags_RootWindow = 1 << 1, // Test from root window (top most parent of the current hierarchy) + ImGuiFocusedFlags_AnyWindow = 1 << 2, // Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ! + ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, // Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) + //ImGuiFocusedFlags_DockHierarchy = 1 << 4, // Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, +}; + +// Flags for ImGui::IsItemHovered(), ImGui::IsWindowHovered() +// Note: if you are trying to check whether your mouse should be dispatched to Dear ImGui or to your app, you should use 'io.WantCaptureMouse' instead! Please read the FAQ! +// Note: windows with the ImGuiWindowFlags_NoInputs flag are ignored by IsWindowHovered() calls. +enum ImGuiHoveredFlags_ +{ + ImGuiHoveredFlags_None = 0, // Return true if directly over the item/window, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them. + ImGuiHoveredFlags_ChildWindows = 1 << 0, // IsWindowHovered() only: Return true if any children of the window is hovered + ImGuiHoveredFlags_RootWindow = 1 << 1, // IsWindowHovered() only: Test from root window (top most parent of the current hierarchy) + ImGuiHoveredFlags_AnyWindow = 1 << 2, // IsWindowHovered() only: Return true if any window is hovered + ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3, // IsWindowHovered() only: Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) + //ImGuiHoveredFlags_DockHierarchy = 1 << 4, // IsWindowHovered() only: Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) + ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5, // Return true even if a popup window is normally blocking access to this item/window + //ImGuiHoveredFlags_AllowWhenBlockedByModal = 1 << 6, // Return true even if a modal popup window is normally blocking access to this item/window. FIXME-TODO: Unavailable yet. + ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, // Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns. + ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 8, // IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window + ImGuiHoveredFlags_AllowWhenDisabled = 1 << 9, // IsItemHovered() only: Return true even if the item is disabled + ImGuiHoveredFlags_NoNavOverride = 1 << 10, // Disable using gamepad/keyboard navigation state when active, always query mouse. + ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + + // Hovering delays (for tooltips) + ImGuiHoveredFlags_DelayNormal = 1 << 11, // Return true after io.HoverDelayNormal elapsed (~0.30 sec) + ImGuiHoveredFlags_DelayShort = 1 << 12, // Return true after io.HoverDelayShort elapsed (~0.10 sec) + ImGuiHoveredFlags_NoSharedDelay = 1 << 13, // Disable shared delay system where moving from one item to the next keeps the previous timer for a short time (standard for tooltips with long delays) +}; + +// Flags for ImGui::BeginDragDropSource(), ImGui::AcceptDragDropPayload() +enum ImGuiDragDropFlags_ +{ + ImGuiDragDropFlags_None = 0, + // BeginDragDropSource() flags + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior. + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item. + ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, // Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item. + ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, // Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit. + ImGuiDragDropFlags_SourceExtern = 1 << 4, // External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously. + ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, // Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged) + // AcceptDragDropPayload() flags + ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, // AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered. + ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, // Do not draw the default highlight rectangle when hovering over target. + ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, // Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site. + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, // For peeking ahead and inspecting the payload before delivery. +}; + +// Standard Drag and Drop payload types. You can define you own payload types using short strings. Types starting with '_' are defined by Dear ImGui. +#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F" // float[3]: Standard type for colors, without alpha. User code may use this type. +#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F" // float[4]: Standard type for colors. User code may use this type. + +// A primary data type +enum ImGuiDataType_ +{ + ImGuiDataType_S8, // signed char / char (with sensible compilers) + ImGuiDataType_U8, // unsigned char + ImGuiDataType_S16, // short + ImGuiDataType_U16, // unsigned short + ImGuiDataType_S32, // int + ImGuiDataType_U32, // unsigned int + ImGuiDataType_S64, // long long / __int64 + ImGuiDataType_U64, // unsigned long long / unsigned __int64 + ImGuiDataType_Float, // float + ImGuiDataType_Double, // double + ImGuiDataType_COUNT +}; + +// A cardinal direction +enum ImGuiDir_ +{ + ImGuiDir_None = -1, + ImGuiDir_Left = 0, + ImGuiDir_Right = 1, + ImGuiDir_Up = 2, + ImGuiDir_Down = 3, + ImGuiDir_COUNT +}; + +// A sorting direction +enum ImGuiSortDirection_ +{ + ImGuiSortDirection_None = 0, + ImGuiSortDirection_Ascending = 1, // Ascending = 0->9, A->Z etc. + ImGuiSortDirection_Descending = 2 // Descending = 9->0, Z->A etc. +}; + +// A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) +// All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87) +// Since >= 1.89 we increased typing (went from int to enum), some legacy code may need a cast to ImGuiKey. +enum ImGuiKey : int +{ + // Keyboard + ImGuiKey_None = 0, + ImGuiKey_Tab = 512, // == ImGuiKey_NamedKey_BEGIN + ImGuiKey_LeftArrow, + ImGuiKey_RightArrow, + ImGuiKey_UpArrow, + ImGuiKey_DownArrow, + ImGuiKey_PageUp, + ImGuiKey_PageDown, + ImGuiKey_Home, + ImGuiKey_End, + ImGuiKey_Insert, + ImGuiKey_Delete, + ImGuiKey_Backspace, + ImGuiKey_Space, + ImGuiKey_Enter, + ImGuiKey_Escape, + ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper, + ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper, + ImGuiKey_Menu, + ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9, + ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J, + ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T, + ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z, + ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6, + ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12, + ImGuiKey_Apostrophe, // ' + ImGuiKey_Comma, // , + ImGuiKey_Minus, // - + ImGuiKey_Period, // . + ImGuiKey_Slash, // / + ImGuiKey_Semicolon, // ; + ImGuiKey_Equal, // = + ImGuiKey_LeftBracket, // [ + ImGuiKey_Backslash, // \ (this text inhibit multiline comment caused by backslash) + ImGuiKey_RightBracket, // ] + ImGuiKey_GraveAccent, // ` + ImGuiKey_CapsLock, + ImGuiKey_ScrollLock, + ImGuiKey_NumLock, + ImGuiKey_PrintScreen, + ImGuiKey_Pause, + ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4, + ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9, + ImGuiKey_KeypadDecimal, + ImGuiKey_KeypadDivide, + ImGuiKey_KeypadMultiply, + ImGuiKey_KeypadSubtract, + ImGuiKey_KeypadAdd, + ImGuiKey_KeypadEnter, + ImGuiKey_KeypadEqual, + + // Gamepad (some of those are analog values, 0.0f to 1.0f) // GAME NAVIGATION ACTION + // (download controller mapping PNG/PSD at http://dearimgui.org/controls_sheets) + ImGuiKey_GamepadStart, // Menu (Xbox) + (Switch) Start/Options (PS) + ImGuiKey_GamepadBack, // View (Xbox) - (Switch) Share (PS) + ImGuiKey_GamepadFaceLeft, // X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows) + ImGuiKey_GamepadFaceRight, // B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit + ImGuiKey_GamepadFaceUp, // Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard + ImGuiKey_GamepadFaceDown, // A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak + ImGuiKey_GamepadDpadLeft, // D-pad Left // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadRight, // D-pad Right // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadUp, // D-pad Up // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadDown, // D-pad Down // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadL1, // L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode) + ImGuiKey_GamepadR1, // R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode) + ImGuiKey_GamepadL2, // L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog] + ImGuiKey_GamepadR2, // R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog] + ImGuiKey_GamepadL3, // L Stick (Xbox) L3 (Switch) L3 (PS) + ImGuiKey_GamepadR3, // R Stick (Xbox) R3 (Switch) R3 (PS) + ImGuiKey_GamepadLStickLeft, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickRight, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickUp, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickDown, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadRStickLeft, // [Analog] + ImGuiKey_GamepadRStickRight, // [Analog] + ImGuiKey_GamepadRStickUp, // [Analog] + ImGuiKey_GamepadRStickDown, // [Analog] + + // Mouse Buttons (auto-submitted from AddMouseButtonEvent() calls) + // - This is mirroring the data also written to io.MouseDown[], io.MouseWheel, in a format allowing them to be accessed via standard key API. + ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY, + + // [Internal] Reserved for mod storage + ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper, + ImGuiKey_COUNT, + + // Keyboard Modifiers (explicitly submitted by backend via AddKeyEvent() calls) + // - This is mirroring the data also written to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper, in a format allowing + // them to be accessed via standard key API, allowing calls such as IsKeyPressed(), IsKeyReleased(), querying duration etc. + // - Code polling every key (e.g. an interface to detect a key press for input mapping) might want to ignore those + // and prefer using the real keys (e.g. ImGuiKey_LeftCtrl, ImGuiKey_RightCtrl instead of ImGuiMod_Ctrl). + // - In theory the value of keyboard modifiers should be roughly equivalent to a logical or of the equivalent left/right keys. + // In practice: it's complicated; mods are often provided from different sources. Keyboard layout, IME, sticky keys and + // backends tend to interfere and break that equivalence. The safer decision is to relay that ambiguity down to the end-user... + ImGuiMod_None = 0, + ImGuiMod_Ctrl = 1 << 12, + ImGuiMod_Shift = 1 << 13, + ImGuiMod_Alt = 1 << 14, // Option/Menu + ImGuiMod_Super = 1 << 15, // Cmd/Super/Windows + ImGuiMod_Mask_ = 0xF000, +#if defined(__APPLE__) + ImGuiMod_Shortcut = ImGuiMod_Super, +#else + ImGuiMod_Shortcut = ImGuiMod_Ctrl, +#endif + + // [Internal] Prior to 1.87 we required user to fill io.KeysDown[512] using their own native index + the io.KeyMap[] array. + // We are ditching this method but keeping a legacy path for user code doing e.g. IsKeyPressed(MY_NATIVE_KEY_CODE) + ImGuiKey_NamedKey_BEGIN = 512, + ImGuiKey_NamedKey_END = ImGuiKey_COUNT, + ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT, // Size of KeysData[]: only hold named keys + ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN, // First key stored in io.KeysData[0]. Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET). +#else + ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT, // Size of KeysData[]: hold legacy 0..512 keycodes + named keys + ImGuiKey_KeysData_OFFSET = 0, // First key stored in io.KeysData[0]. Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET). +#endif + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super, // Renamed in 1.89 + ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter, // Renamed in 1.87 +#endif +}; + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +// OBSOLETED in 1.88 (from July 2022): ImGuiNavInput and io.NavInputs[]. +// Official backends between 1.60 and 1.86: will keep working and feed gamepad inputs as long as IMGUI_DISABLE_OBSOLETE_KEYIO is not set. +// Custom backends: feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +enum ImGuiNavInput +{ + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, + ImGuiNavInput_COUNT, +}; +#endif + +// Configuration flags stored in io.ConfigFlags. Set by user/application. +enum ImGuiConfigFlags_ +{ + ImGuiConfigFlags_None = 0, + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad. + ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth. + ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, // Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set. + ImGuiConfigFlags_NoMouse = 1 << 4, // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the backend. + ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, // Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead. + + // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are NOT used by core Dear ImGui) + ImGuiConfigFlags_IsSRGB = 1 << 20, // Application is SRGB-aware. + ImGuiConfigFlags_IsTouchScreen = 1 << 21, // Application is using a touch screen instead of a mouse. +}; + +// Backend capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom backend. +enum ImGuiBackendFlags_ +{ + ImGuiBackendFlags_None = 0, + ImGuiBackendFlags_HasGamepad = 1 << 0, // Backend Platform supports gamepad and currently has one connected. + ImGuiBackendFlags_HasMouseCursors = 1 << 1, // Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape. + ImGuiBackendFlags_HasSetMousePos = 1 << 2, // Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set). + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, // Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices. +}; + +// Enumeration for PushStyleColor() / PopStyleColor() +enum ImGuiCol_ +{ + ImGuiCol_Text, + ImGuiCol_TextDisabled, + ImGuiCol_WindowBg, // Background of normal windows + ImGuiCol_ChildBg, // Background of child windows + ImGuiCol_PopupBg, // Background of popups, menus, tooltips windows + ImGuiCol_Border, + ImGuiCol_BorderShadow, + ImGuiCol_FrameBg, // Background of checkbox, radio button, plot, slider, text input + ImGuiCol_FrameBgHovered, + ImGuiCol_FrameBgActive, + ImGuiCol_TitleBg, + ImGuiCol_TitleBgActive, + ImGuiCol_TitleBgCollapsed, + ImGuiCol_MenuBarBg, + ImGuiCol_ScrollbarBg, + ImGuiCol_ScrollbarGrab, + ImGuiCol_ScrollbarGrabHovered, + ImGuiCol_ScrollbarGrabActive, + ImGuiCol_CheckMark, + ImGuiCol_SliderGrab, + ImGuiCol_SliderGrabActive, + ImGuiCol_Button, + ImGuiCol_ButtonHovered, + ImGuiCol_ButtonActive, + ImGuiCol_Header, // Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem + ImGuiCol_HeaderHovered, + ImGuiCol_HeaderActive, + ImGuiCol_Separator, + ImGuiCol_SeparatorHovered, + ImGuiCol_SeparatorActive, + ImGuiCol_ResizeGrip, // Resize grip in lower-right and lower-left corners of windows. + ImGuiCol_ResizeGripHovered, + ImGuiCol_ResizeGripActive, + ImGuiCol_Tab, // TabItem in a TabBar + ImGuiCol_TabHovered, + ImGuiCol_TabActive, + ImGuiCol_TabUnfocused, + ImGuiCol_TabUnfocusedActive, + ImGuiCol_PlotLines, + ImGuiCol_PlotLinesHovered, + ImGuiCol_PlotHistogram, + ImGuiCol_PlotHistogramHovered, + ImGuiCol_TableHeaderBg, // Table header background + ImGuiCol_TableBorderStrong, // Table outer and header borders (prefer using Alpha=1.0 here) + ImGuiCol_TableBorderLight, // Table inner borders (prefer using Alpha=1.0 here) + ImGuiCol_TableRowBg, // Table row background (even rows) + ImGuiCol_TableRowBgAlt, // Table row background (odd rows) + ImGuiCol_TextSelectedBg, + ImGuiCol_DragDropTarget, // Rectangle highlighting a drop target + ImGuiCol_NavHighlight, // Gamepad/keyboard: current highlighted item + ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB + ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active + ImGuiCol_ModalWindowDimBg, // Darken/colorize entire screen behind a modal window, when one is active + ImGuiCol_COUNT +}; + +// Enumeration for PushStyleVar() / PopStyleVar() to temporarily modify the ImGuiStyle structure. +// - The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code. +// During initialization or between frames, feel free to just poke into ImGuiStyle directly. +// - Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description. +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +// - When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type. +enum ImGuiStyleVar_ +{ + // Enum name --------------------- // Member in ImGuiStyle structure (see ImGuiStyle for descriptions) + ImGuiStyleVar_Alpha, // float Alpha + ImGuiStyleVar_DisabledAlpha, // float DisabledAlpha + ImGuiStyleVar_WindowPadding, // ImVec2 WindowPadding + ImGuiStyleVar_WindowRounding, // float WindowRounding + ImGuiStyleVar_WindowBorderSize, // float WindowBorderSize + ImGuiStyleVar_WindowMinSize, // ImVec2 WindowMinSize + ImGuiStyleVar_WindowTitleAlign, // ImVec2 WindowTitleAlign + ImGuiStyleVar_ChildRounding, // float ChildRounding + ImGuiStyleVar_ChildBorderSize, // float ChildBorderSize + ImGuiStyleVar_PopupRounding, // float PopupRounding + ImGuiStyleVar_PopupBorderSize, // float PopupBorderSize + ImGuiStyleVar_FramePadding, // ImVec2 FramePadding + ImGuiStyleVar_FrameRounding, // float FrameRounding + ImGuiStyleVar_FrameBorderSize, // float FrameBorderSize + ImGuiStyleVar_ItemSpacing, // ImVec2 ItemSpacing + ImGuiStyleVar_ItemInnerSpacing, // ImVec2 ItemInnerSpacing + ImGuiStyleVar_IndentSpacing, // float IndentSpacing + ImGuiStyleVar_CellPadding, // ImVec2 CellPadding + ImGuiStyleVar_ScrollbarSize, // float ScrollbarSize + ImGuiStyleVar_ScrollbarRounding, // float ScrollbarRounding + ImGuiStyleVar_GrabMinSize, // float GrabMinSize + ImGuiStyleVar_GrabRounding, // float GrabRounding + ImGuiStyleVar_TabRounding, // float TabRounding + ImGuiStyleVar_ButtonTextAlign, // ImVec2 ButtonTextAlign + ImGuiStyleVar_SelectableTextAlign, // ImVec2 SelectableTextAlign + ImGuiStyleVar_COUNT +}; + +// Flags for InvisibleButton() [extended in imgui_internal.h] +enum ImGuiButtonFlags_ +{ + ImGuiButtonFlags_None = 0, + ImGuiButtonFlags_MouseButtonLeft = 1 << 0, // React on left mouse button (default) + ImGuiButtonFlags_MouseButtonRight = 1 << 1, // React on right mouse button + ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, // React on center mouse button + + // [Internal] + ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, +}; + +// Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() +enum ImGuiColorEditFlags_ +{ + ImGuiColorEditFlags_None = 0, + ImGuiColorEditFlags_NoAlpha = 1 << 1, // // ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer). + ImGuiColorEditFlags_NoPicker = 1 << 2, // // ColorEdit: disable picker when clicking on color square. + ImGuiColorEditFlags_NoOptions = 1 << 3, // // ColorEdit: disable toggling options menu when right-clicking on inputs/small preview. + ImGuiColorEditFlags_NoSmallPreview = 1 << 4, // // ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs) + ImGuiColorEditFlags_NoInputs = 1 << 5, // // ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview color square). + ImGuiColorEditFlags_NoTooltip = 1 << 6, // // ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview. + ImGuiColorEditFlags_NoLabel = 1 << 7, // // ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker). + ImGuiColorEditFlags_NoSidePreview = 1 << 8, // // ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead. + ImGuiColorEditFlags_NoDragDrop = 1 << 9, // // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source. + ImGuiColorEditFlags_NoBorder = 1 << 10, // // ColorButton: disable border (which is enforced by default) + + // User Options (right-click on widget to change some of them). + ImGuiColorEditFlags_AlphaBar = 1 << 16, // // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker. + ImGuiColorEditFlags_AlphaPreview = 1 << 17, // // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque. + ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18, // // ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque. + ImGuiColorEditFlags_HDR = 1 << 19, // // (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well). + ImGuiColorEditFlags_DisplayRGB = 1 << 20, // [Display] // ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex. + ImGuiColorEditFlags_DisplayHSV = 1 << 21, // [Display] // " + ImGuiColorEditFlags_DisplayHex = 1 << 22, // [Display] // " + ImGuiColorEditFlags_Uint8 = 1 << 23, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255. + ImGuiColorEditFlags_Float = 1 << 24, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers. + ImGuiColorEditFlags_PickerHueBar = 1 << 25, // [Picker] // ColorPicker: bar for Hue, rectangle for Sat/Value. + ImGuiColorEditFlags_PickerHueWheel = 1 << 26, // [Picker] // ColorPicker: wheel for Hue, triangle for Sat/Value. + ImGuiColorEditFlags_InputRGB = 1 << 27, // [Input] // ColorEdit, ColorPicker: input and output data in RGB format. + ImGuiColorEditFlags_InputHSV = 1 << 28, // [Input] // ColorEdit, ColorPicker: input and output data in HSV format. + + // Defaults Options. You can set application defaults using SetColorEditOptions(). The intent is that you probably don't want to + // override them in most of your calls. Let the user choose via the option menu and/or call SetColorEditOptions() once during startup. + ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, + + // [Internal] Masks + ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, + ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, + ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, + + // Obsolete names (will be removed) + // ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] +}; + +// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +// We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText) +enum ImGuiSliderFlags_ +{ + ImGuiSliderFlags_None = 0, + ImGuiSliderFlags_AlwaysClamp = 1 << 4, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. + ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. + ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits) + ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp, // [renamed in 1.79] +#endif +}; + +// Identify a mouse button. +// Those values are guaranteed to be stable and we frequently use 0/1 directly. Named enums provided for convenience. +enum ImGuiMouseButton_ +{ + ImGuiMouseButton_Left = 0, + ImGuiMouseButton_Right = 1, + ImGuiMouseButton_Middle = 2, + ImGuiMouseButton_COUNT = 5 +}; + +// Enumeration for GetMouseCursor() +// User code may request backend to display given cursor by calling SetMouseCursor(), which is why we have some cursors that are marked unused here +enum ImGuiMouseCursor_ +{ + ImGuiMouseCursor_None = -1, + ImGuiMouseCursor_Arrow = 0, + ImGuiMouseCursor_TextInput, // When hovering over InputText, etc. + ImGuiMouseCursor_ResizeAll, // (Unused by Dear ImGui functions) + ImGuiMouseCursor_ResizeNS, // When hovering over a horizontal border + ImGuiMouseCursor_ResizeEW, // When hovering over a vertical border or a column + ImGuiMouseCursor_ResizeNESW, // When hovering over the bottom-left corner of a window + ImGuiMouseCursor_ResizeNWSE, // When hovering over the bottom-right corner of a window + ImGuiMouseCursor_Hand, // (Unused by Dear ImGui functions. Use for e.g. hyperlinks) + ImGuiMouseCursor_NotAllowed, // When hovering something with disallowed interaction. Usually a crossed circle. + ImGuiMouseCursor_COUNT +}; + +// Enumeration for ImGui::SetWindow***(), SetNextWindow***(), SetNextItem***() functions +// Represent a condition. +// Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always. +enum ImGuiCond_ +{ + ImGuiCond_None = 0, // No condition (always set the variable), same as _Always + ImGuiCond_Always = 1 << 0, // No condition (always set the variable), same as _None + ImGuiCond_Once = 1 << 1, // Set the variable once per runtime session (only the first call will succeed) + ImGuiCond_FirstUseEver = 1 << 2, // Set the variable if the object/window has no persistently saved data (no entry in .ini file) + ImGuiCond_Appearing = 1 << 3, // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) +}; + +//----------------------------------------------------------------------------- +// [SECTION] Helpers: Memory allocations macros, ImVector<> +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// IM_MALLOC(), IM_FREE(), IM_NEW(), IM_PLACEMENT_NEW(), IM_DELETE() +// We call C++ constructor on own allocated memory via the placement "new(ptr) Type()" syntax. +// Defining a custom placement new() with a custom parameter allows us to bypass including which on some platforms complains when user has disabled exceptions. +//----------------------------------------------------------------------------- + +struct ImNewWrapper {}; +inline void* operator new(size_t, ImNewWrapper, void* ptr) { return ptr; } +inline void operator delete(void*, ImNewWrapper, void*) {} // This is only required so we can use the symmetrical new() +#define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE) +#define IM_FREE(_PTR) ImGui::MemFree(_PTR) +#define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR) +#define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE +template void IM_DELETE(T* p) { if (p) { p->~T(); ImGui::MemFree(p); } } + +//----------------------------------------------------------------------------- +// ImVector<> +// Lightweight std::vector<>-like class to avoid dragging dependencies (also, some implementations of STL with debug enabled are absurdly slow, we bypass it so our code runs fast in debug). +//----------------------------------------------------------------------------- +// - You generally do NOT need to care or use this ever. But we need to make it available in imgui.h because some of our public structures are relying on it. +// - We use std-like naming convention here, which is a little unusual for this codebase. +// - Important: clear() frees memory, resize(0) keep the allocated buffer. We use resize(0) a lot to intentionally recycle allocated buffers across frames and amortize our costs. +// - Important: our implementation does NOT call C++ constructors/destructors, we treat everything as raw data! This is intentional but be extra mindful of that, +// Do NOT use this class as a std::vector replacement in your own code! Many of the structures used by dear imgui can be safely initialized by a zero-memset. +//----------------------------------------------------------------------------- + +IM_MSVC_RUNTIME_CHECKS_OFF +template +struct ImVector +{ + int Size; + int Capacity; + T* Data; + + // Provide standard typedefs but we don't use them ourselves. + typedef T value_type; + typedef value_type* iterator; + typedef const value_type* const_iterator; + + // Constructors, destructor + inline ImVector() { Size = Capacity = 0; Data = NULL; } + inline ImVector(const ImVector& src) { Size = Capacity = 0; Data = NULL; operator=(src); } + inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); if (src.Data) memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } + inline ~ImVector() { if (Data) IM_FREE(Data); } // Important: does not destruct anything + + inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } // Important: does not destruct anything + inline void clear_delete() { for (int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); } // Important: never called automatically! always explicit. + inline void clear_destruct() { for (int n = 0; n < Size; n++) Data[n].~T(); clear(); } // Important: never called automatically! always explicit. + + inline bool empty() const { return Size == 0; } + inline int size() const { return Size; } + inline int size_in_bytes() const { return Size * (int)sizeof(T); } + inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); } + inline int capacity() const { return Capacity; } + inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + + inline T* begin() { return Data; } + inline const T* begin() const { return Data; } + inline T* end() { return Data + Size; } + inline const T* end() const { return Data + Size; } + inline T& front() { IM_ASSERT(Size > 0); return Data[0]; } + inline const T& front() const { IM_ASSERT(Size > 0); return Data[0]; } + inline T& back() { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline const T& back() const { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline void swap(ImVector& rhs) { int rhs_size = rhs.Size; rhs.Size = Size; Size = rhs_size; int rhs_cap = rhs.Capacity; rhs.Capacity = Capacity; Capacity = rhs_cap; T* rhs_data = rhs.Data; rhs.Data = Data; Data = rhs_data; } + + inline int _grow_capacity(int sz) const { int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8; return new_capacity > sz ? new_capacity : sz; } + inline void resize(int new_size) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; } + inline void resize(int new_size, const T& v) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); if (new_size > Size) for (int n = Size; n < new_size; n++) memcpy(&Data[n], &v, sizeof(v)); Size = new_size; } + inline void shrink(int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; } // Resize a vector to a smaller size, guaranteed not to cause a reallocation + inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); IM_FREE(Data); } Data = new_data; Capacity = new_capacity; } + inline void reserve_discard(int new_capacity) { if (new_capacity <= Capacity) return; if (Data) IM_FREE(Data); Data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); Capacity = new_capacity; } + + // NB: It is illegal to call push_back/push_front/insert with a reference pointing inside the ImVector data itself! e.g. v.push_back(v[10]) is forbidden. + inline void push_back(const T& v) { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } + inline void pop_back() { IM_ASSERT(Size > 0); Size--; } + inline void push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } + inline T* erase(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((size_t)Size - (size_t)off - 1) * sizeof(T)); Size--; return Data + off; } + inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last >= it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - (size_t)count) * sizeof(T)); Size -= (int)count; return Data + off; } + inline T* erase_unsorted(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; if (it < Data + Size - 1) memcpy(Data + off, Data + Size - 1, sizeof(T)); Size--; return Data + off; } + inline T* insert(const T* it, const T& v) { IM_ASSERT(it >= Data && it <= Data + Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(T)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; } + inline bool contains(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; } + inline T* find(const T& v) { T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline const T* find(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline bool find_erase(const T& v) { const T* it = find(v); if (it < Data + Size) { erase(it); return true; } return false; } + inline bool find_erase_unsorted(const T& v) { const T* it = find(v); if (it < Data + Size) { erase_unsorted(it); return true; } return false; } + inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; return (int)off; } +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiStyle +//----------------------------------------------------------------------------- +// You may modify the ImGui::GetStyle() main instance during initialization and before NewFrame(). +// During the frame, use ImGui::PushStyleVar(ImGuiStyleVar_XXXX)/PopStyleVar() to alter the main style values, +// and ImGui::PushStyleColor(ImGuiCol_XXX)/PopStyleColor() for colors. +//----------------------------------------------------------------------------- + +struct ImGuiStyle +{ + float Alpha; // Global alpha applies to everything in Dear ImGui. + float DisabledAlpha; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. + ImVec2 WindowPadding; // Padding within a window. + float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints(). + ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. + ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. + float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. + float ChildBorderSize; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + float PopupRounding; // Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding) + float PopupBorderSize; // Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). + float FrameRounding; // Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). + float FrameBorderSize; // Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 ItemSpacing; // Horizontal and vertical spacing between widgets/lines. + ImVec2 ItemInnerSpacing; // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). + ImVec2 CellPadding; // Padding within a table cell + ImVec2 TouchExtraPadding; // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + float ColumnsMinSpacing; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + float ScrollbarSize; // Width of the vertical scrollbar, Height of the horizontal scrollbar. + float ScrollbarRounding; // Radius of grab corners for scrollbar. + float GrabMinSize; // Minimum width/height of a grab box for slider/scrollbar. + float GrabRounding; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + float TabBorderSize; // Thickness of border around tabs. + float TabMinWidthForCloseButton; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). + ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + ImVec2 DisplayWindowPadding; // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + ImVec2 DisplaySafeAreaPadding; // If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly! + float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. + bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + float CircleTessellationMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + ImVec4 Colors[ImGuiCol_COUNT]; + + IMGUI_API ImGuiStyle(); + IMGUI_API void ScaleAllSizes(float scale_factor); +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiIO +//----------------------------------------------------------------------------- +// Communicate most settings and inputs/outputs to Dear ImGui using this structure. +// Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage. +//----------------------------------------------------------------------------- + +// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions. +// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration. +struct ImGuiKeyData +{ + bool Down; // True for if key is down + float DownDuration; // Duration the key has been down (<0.0f: not pressed, 0.0f: just pressed, >0.0f: time held) + float DownDurationPrev; // Last frame duration the key has been down + float AnalogValue; // 0.0f..1.0f for gamepad values +}; + +struct ImGuiIO +{ + //------------------------------------------------------------------ + // Configuration // Default value + //------------------------------------------------------------------ + + ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc. + ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend) to communicate features supported by the backend. + ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size). May change every frame. + float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame. + float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. + const char* IniFilename; // = "imgui.ini" // Path to .ini file (important: default "imgui.ini" is relative to current working dir!). Set NULL to disable automatic .ini loading/saving or if you want to manually call LoadIniSettingsXXX() / SaveIniSettingsXXX() functions. + const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). + float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. + float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. + float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. + float KeyRepeatDelay; // = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). + float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. + float HoverDelayNormal; // = 0.30 sec // Delay on hovering before IsItemHovered(ImGuiHoveredFlags_DelayNormal) returns true. + float HoverDelayShort; // = 0.10 sec // Delay on hovering before IsItemHovered(ImGuiHoveredFlags_DelayShort) returns true. + void* UserData; // = NULL // Store your own data for retrieval by callbacks. + + ImFontAtlas*Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. + float FontGlobalScale; // = 1.0f // Global scale all fonts + bool FontAllowUserScaling; // = false // Allow user scaling text of individual window with CTRL+Wheel. + ImFont* FontDefault; // = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0]. + ImVec2 DisplayFramebufferScale; // = (1, 1) // For retina display or other situations where window coordinates are different from framebuffer coordinates. This generally ends up in ImDrawData::FramebufferScale. + + // Miscellaneous options + bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations. + bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // OS X style: Text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl. + bool ConfigInputTrickleEventQueue; // = true // Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates. + bool ConfigInputTextCursorBlink; // = true // Enable blinking cursor (optional as some users consider it to be distracting). + bool ConfigInputTextEnterKeepActive; // = false // [BETA] Pressing Enter will keep item active and select contents (single-line only). + bool ConfigDragClickToInputText; // = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). Not desirable on devices without a keyboard. + bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) + bool ConfigWindowsMoveFromTitleBarOnly; // = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar. + float ConfigMemoryCompactTimer; // = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set to -1.0f to disable. + + //------------------------------------------------------------------ + // Platform Functions + // (the imgui_impl_xxxx backend files are setting those up for you) + //------------------------------------------------------------------ + + // Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff. + const char* BackendPlatformName; // = NULL + const char* BackendRendererName; // = NULL + void* BackendPlatformUserData; // = NULL // User data for platform backend + void* BackendRendererUserData; // = NULL // User data for renderer backend + void* BackendLanguageUserData; // = NULL // User data for non C++ programming language backend + + // Optional: Access OS clipboard + // (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures) + const char* (*GetClipboardTextFn)(void* user_data); + void (*SetClipboardTextFn)(void* user_data, const char* text); + void* ClipboardUserData; + + // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) + // (default to use native imm32 api on Windows) + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + void* ImeWindowHandle; // = NULL // [Obsolete] Set ImGuiViewport::PlatformHandleRaw instead. Set this to your HWND to get automatic IME cursor positioning. +#else + void* _UnusedPadding; // Unused field to keep data structure the same size. +#endif + + //------------------------------------------------------------------ + // Input - Call before calling NewFrame() + //------------------------------------------------------------------ + + // Input Functions + IMGUI_API void AddKeyEvent(ImGuiKey key, bool down); // Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) + IMGUI_API void AddKeyAnalogEvent(ImGuiKey key, bool down, float v); // Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. + IMGUI_API void AddMousePosEvent(float x, float y); // Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered) + IMGUI_API void AddMouseButtonEvent(int button, bool down); // Queue a mouse button change + IMGUI_API void AddMouseWheelEvent(float wh_x, float wh_y); // Queue a mouse wheel update + IMGUI_API void AddFocusEvent(bool focused); // Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window) + IMGUI_API void AddInputCharacter(unsigned int c); // Queue a new character input + IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue a new character input from a UTF-16 character, it can be a surrogate + IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue a new characters input from a UTF-8 string + + IMGUI_API void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index = -1); // [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. + IMGUI_API void SetAppAcceptingEvents(bool accepting_events); // Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. + IMGUI_API void ClearInputCharacters(); // [Internal] Clear the text input buffer manually + IMGUI_API void ClearInputKeys(); // [Internal] Release all keys + + //------------------------------------------------------------------ + // Output - Updated by NewFrame() or EndFrame()/Render() + // (when reading from the io.WantCaptureMouse, io.WantCaptureKeyboard flags to dispatch your inputs, it is + // generally easier and more correct to use their state BEFORE calling NewFrame(). See FAQ for details!) + //------------------------------------------------------------------ + + bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). + bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). + bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). + bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. + bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! + bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. + bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). + float Framerate; // Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally. + int MetricsRenderVertices; // Vertices output during last call to Render() + int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 + int MetricsRenderWindows; // Number of visible windows + int MetricsActiveWindows; // Number of active windows + int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. + ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + + // Legacy: before 1.87, we required backend to fill io.KeyMap[] (imgui->native map) during initialization and io.KeysDown[] (native indices) every frame. + // This is still temporarily supported as a legacy feature. However the new preferred scheme is for backend to call io.AddKeyEvent(). + // Old (<1.87): ImGui::IsKeyPressed(ImGui::GetIO().KeyMap[ImGuiKey_Space]) --> New (1.87+) ImGui::IsKeyPressed(ImGuiKey_Space) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + int KeyMap[ImGuiKey_COUNT]; // [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512. + bool KeysDown[ImGuiKey_COUNT]; // [LEGACY] Input: Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow. + float NavInputs[ImGuiNavInput_COUNT]; // [LEGACY] Since 1.88, NavInputs[] was removed. Backends from 1.60 to 1.86 won't build. Feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +#endif + + //------------------------------------------------------------------ + // [Internal] Dear ImGui will maintain those fields. Forward compatibility not guaranteed! + //------------------------------------------------------------------ + + // Main Input State + // (this block used to be written by backend, since 1.87 it is best to NOT write to those directly, call the AddXXX functions above instead) + // (reading from those variables is fair game, as they are extremely unlikely to be moving anywhere) + ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) + bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. + float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. + float MouseWheelH; // Mouse wheel Horizontal. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends. + bool KeyCtrl; // Keyboard modifier down: Control + bool KeyShift; // Keyboard modifier down: Shift + bool KeyAlt; // Keyboard modifier down: Alt + bool KeySuper; // Keyboard modifier down: Cmd/Super/Windows + + // Other state maintained from data above + IO function calls + ImGuiKeyChord KeyMods; // Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags). Read-only, updated by NewFrame() + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; // Key state for all known keys. Use IsKeyXXX() functions to access this. + bool WantCaptureMouseUnlessPopupClose; // Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. + ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) + ImVec2 MouseClickedPos[5]; // Position at time of clicking + double MouseClickedTime[5]; // Time of last click (used to figure out double-click) + bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) + bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) + ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down + ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. + bool MouseReleased[5]; // Mouse button went from Down to !Down + bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. + bool MouseDownOwnedUnlessPopupClose[5]; // Track if button was clicked inside a dear imgui window. + float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) + float MouseDownDurationPrev[5]; // Previous time the mouse button has been down + float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds) + float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. + bool AppFocusLost; // Only modify via AddFocusEvent() + bool AppAcceptingEvents; // Only modify via SetAppAcceptingEvents() + ImS8 BackendUsingLegacyKeyArrays; // -1: unknown, 0: using AddKeyEvent(), 1: using legacy io.KeysDown[] + bool BackendUsingLegacyNavInputArray; // 0: using AddKeyAnalogEvent(), 1: writing to legacy io.NavInputs[] directly + ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16() + ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. + + IMGUI_API ImGuiIO(); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Misc data structures +//----------------------------------------------------------------------------- + +// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used. +// The callback function should return 0 by default. +// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details) +// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) +// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration +// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB +// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows +// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. +// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. +struct ImGuiInputTextCallbackData +{ + ImGuiInputTextFlags EventFlag; // One ImGuiInputTextFlags_Callback* // Read-only + ImGuiInputTextFlags Flags; // What user passed to InputText() // Read-only + void* UserData; // What user passed to InputText() // Read-only + + // Arguments for the different callback events + // - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary. + // - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state. + ImWchar EventChar; // Character input // Read-write // [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0; + ImGuiKey EventKey; // Key pressed (Up/Down/TAB) // Read-only // [Completion,History] + char* Buf; // Text buffer // Read-write // [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer! + int BufTextLen; // Text length (in bytes) // Read-write // [Resize,Completion,History,Always] Exclude zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length() + int BufSize; // Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1 + bool BufDirty; // Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always] + int CursorPos; // // Read-write // [Completion,History,Always] + int SelectionStart; // // Read-write // [Completion,History,Always] == to SelectionEnd when no selection) + int SelectionEnd; // // Read-write // [Completion,History,Always] + + // Helper functions for text manipulation. + // Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection. + IMGUI_API ImGuiInputTextCallbackData(); + IMGUI_API void DeleteChars(int pos, int bytes_count); + IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL); + void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; } + void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; } + bool HasSelection() const { return SelectionStart != SelectionEnd; } +}; + +// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin(). +// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough. +struct ImGuiSizeCallbackData +{ + void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in here (need reinterpret_cast<>). + ImVec2 Pos; // Read-only. Window position, for reference. + ImVec2 CurrentSize; // Read-only. Current window size. + ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing. +}; + +// Data payload for Drag and Drop operations: AcceptDragDropPayload(), GetDragDropPayload() +struct ImGuiPayload +{ + // Members + void* Data; // Data (copied and owned by dear imgui) + int DataSize; // Data size + + // [Internal] + ImGuiID SourceId; // Source item id + ImGuiID SourceParentId; // Source parent id (if available) + int DataFrameCount; // Data timestamp + char DataType[32 + 1]; // Data type tag (short user-supplied string, 32 characters max) + bool Preview; // Set when AcceptDragDropPayload() was called and mouse has been hovering the target item (nb: handle overlapping drag targets) + bool Delivery; // Set when AcceptDragDropPayload() was called and mouse button is released over the target item. + + ImGuiPayload() { Clear(); } + void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0, sizeof(DataType)); DataFrameCount = -1; Preview = Delivery = false; } + bool IsDataType(const char* type) const { return DataFrameCount != -1 && strcmp(type, DataType) == 0; } + bool IsPreview() const { return Preview; } + bool IsDelivery() const { return Delivery; } +}; + +// Sorting specification for one column of a table (sizeof == 12 bytes) +struct ImGuiTableColumnSortSpecs +{ + ImGuiID ColumnUserID; // User id of the column (if specified by a TableSetupColumn() call) + ImS16 ColumnIndex; // Index of the column + ImS16 SortOrder; // Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a single criteria will always have a 0 here) + ImGuiSortDirection SortDirection : 8; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending (you can use this or SortSign, whichever is more convenient for your sort function) + + ImGuiTableColumnSortSpecs() { memset(this, 0, sizeof(*this)); } +}; + +// Sorting specifications for a table (often handling sort specs for a single column, occasionally more) +// Obtained by calling TableGetSortSpecs(). +// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time. +// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame! +struct ImGuiTableSortSpecs +{ + const ImGuiTableColumnSortSpecs* Specs; // Pointer to sort spec array. + int SpecsCount; // Sort spec count. Most often 1. May be > 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when ImGuiTableFlags_SortTristate is enabled. + bool SpecsDirty; // Set to true when specs have changed since last time! Use this to sort again, then clear the flag. + + ImGuiTableSortSpecs() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, ImColor) +//----------------------------------------------------------------------------- + +// Helper: Unicode defines +#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD // Invalid Unicode code point (standard value). +#ifdef IMGUI_USE_WCHAR32 +#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF // Maximum Unicode code point supported by this build. +#else +#define IM_UNICODE_CODEPOINT_MAX 0xFFFF // Maximum Unicode code point supported by this build. +#endif + +// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create a UI within deep-nested code that runs multiple times every frame. +// Usage: static ImGuiOnceUponAFrame oaf; if (oaf) ImGui::Text("This will be called only once per frame"); +struct ImGuiOnceUponAFrame +{ + ImGuiOnceUponAFrame() { RefFrame = -1; } + mutable int RefFrame; + operator bool() const { int current_frame = ImGui::GetFrameCount(); if (RefFrame == current_frame) return false; RefFrame = current_frame; return true; } +}; + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +struct ImGuiTextFilter +{ + IMGUI_API ImGuiTextFilter(const char* default_filter = ""); + IMGUI_API bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper calling InputText+Build + IMGUI_API bool PassFilter(const char* text, const char* text_end = NULL) const; + IMGUI_API void Build(); + void Clear() { InputBuf[0] = 0; Build(); } + bool IsActive() const { return !Filters.empty(); } + + // [Internal] + struct ImGuiTextRange + { + const char* b; + const char* e; + + ImGuiTextRange() { b = e = NULL; } + ImGuiTextRange(const char* _b, const char* _e) { b = _b; e = _e; } + bool empty() const { return b == e; } + IMGUI_API void split(char separator, ImVector* out) const; + }; + char InputBuf[256]; + ImVectorFilters; + int CountGrep; +}; + +// Helper: Growable text buffer for logging/accumulating text +// (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder') +struct ImGuiTextBuffer +{ + ImVector Buf; + IMGUI_API static char EmptyString[1]; + + ImGuiTextBuffer() { } + inline char operator[](int i) const { IM_ASSERT(Buf.Data != NULL); return Buf.Data[i]; } + const char* begin() const { return Buf.Data ? &Buf.front() : EmptyString; } + const char* end() const { return Buf.Data ? &Buf.back() : EmptyString; } // Buf is zero-terminated, so end() will point on the zero-terminator + int size() const { return Buf.Size ? Buf.Size - 1 : 0; } + bool empty() const { return Buf.Size <= 1; } + void clear() { Buf.clear(); } + void reserve(int capacity) { Buf.reserve(capacity); } + const char* c_str() const { return Buf.Data ? Buf.Data : EmptyString; } + IMGUI_API void append(const char* str, const char* str_end = NULL); + IMGUI_API void appendf(const char* fmt, ...) IM_FMTARGS(2); + IMGUI_API void appendfv(const char* fmt, va_list args) IM_FMTLIST(2); +}; + +// Helper: Key->Value storage +// Typically you don't have to worry about this since a storage is held within each Window. +// We use it to e.g. store collapse state for a tree (Int 0/1) +// This is optimized for efficient lookup (dichotomy into a contiguous buffer) and rare insertion (typically tied to user interactions aka max once a frame) +// You can use it as custom user storage for temporary values. Declare your own storage if, for example: +// - You want to manipulate the open/close state of a particular sub-tree in your interface (tree node uses Int 0/1 to store their state). +// - You want to store custom debug data easily without adding or editing structures in your code (probably not efficient, but convenient) +// Types are NOT stored, so it is up to you to make sure your Key don't collide with different types. +struct ImGuiStorage +{ + // [Internal] + struct ImGuiStoragePair + { + ImGuiID key; + union { int val_i; float val_f; void* val_p; }; + ImGuiStoragePair(ImGuiID _key, int _val_i) { key = _key; val_i = _val_i; } + ImGuiStoragePair(ImGuiID _key, float _val_f) { key = _key; val_f = _val_f; } + ImGuiStoragePair(ImGuiID _key, void* _val_p) { key = _key; val_p = _val_p; } + }; + + ImVector Data; + + // - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N) + // - Set***() functions find pair, insertion on demand if missing. + // - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair. + void Clear() { Data.clear(); } + IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const; + IMGUI_API void SetInt(ImGuiID key, int val); + IMGUI_API bool GetBool(ImGuiID key, bool default_val = false) const; + IMGUI_API void SetBool(ImGuiID key, bool val); + IMGUI_API float GetFloat(ImGuiID key, float default_val = 0.0f) const; + IMGUI_API void SetFloat(ImGuiID key, float val); + IMGUI_API void* GetVoidPtr(ImGuiID key) const; // default_val is NULL + IMGUI_API void SetVoidPtr(ImGuiID key, void* val); + + // - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set. + // - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. + // - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct) + // float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar; + IMGUI_API int* GetIntRef(ImGuiID key, int default_val = 0); + IMGUI_API bool* GetBoolRef(ImGuiID key, bool default_val = false); + IMGUI_API float* GetFloatRef(ImGuiID key, float default_val = 0.0f); + IMGUI_API void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL); + + // Use on your own storage if you know only integer are being stored (open/close all tree nodes) + IMGUI_API void SetAllInt(int val); + + // For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. + IMGUI_API void BuildSortByKey(); +}; + +// Helper: Manually clip large list of items. +// If you have lots evenly spaced items and you have random access to the list, you can perform coarse +// clipping based on visibility to only submit items that are in view. +// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped. +// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally +// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily +// scale using lists with tens of thousands of items without a problem) +// Usage: +// ImGuiListClipper clipper; +// clipper.Begin(1000); // We have 1000 elements, evenly spaced. +// while (clipper.Step()) +// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) +// ImGui::Text("line number %d", i); +// Generally what happens is: +// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not. +// - User code submit that one element. +// - Clipper can measure the height of the first element +// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element. +// - User code submit visible elements. +// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc. +struct ImGuiListClipper +{ + int DisplayStart; // First item to display, updated by each call to Step() + int DisplayEnd; // End of items to display (exclusive) + int ItemsCount; // [Internal] Number of items + float ItemsHeight; // [Internal] Height of item after a first step and item submission can calculate it + float StartPosY; // [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed + void* TempData; // [Internal] Internal data + + // items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step) + // items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing(). + IMGUI_API ImGuiListClipper(); + IMGUI_API ~ImGuiListClipper(); + IMGUI_API void Begin(int items_count, float items_height = -1.0f); + IMGUI_API void End(); // Automatically called on the last call of Step() that returns false. + IMGUI_API bool Step(); // Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items. + + // Call ForceDisplayRangeByIndices() before first call to Step() if you need a range of items to be displayed regardless of visibility. + IMGUI_API void ForceDisplayRangeByIndices(int item_min, int item_max); // item_max is exclusive e.g. use (42, 42+1) to make item 42 always visible BUT due to alignment/padding of certain items it is likely that an extra item may be included on either end of the display range. + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline ImGuiListClipper(int items_count, float items_height = -1.0f) { memset(this, 0, sizeof(*this)); ItemsCount = -1; Begin(items_count, items_height); } // [removed in 1.79] +#endif +}; + +// Helpers macros to generate 32-bit encoded colors +// User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file. +#ifndef IM_COL32_R_SHIFT +#ifdef IMGUI_USE_BGRA_PACKED_COLOR +#define IM_COL32_R_SHIFT 16 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 0 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#else +#define IM_COL32_R_SHIFT 0 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 16 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#endif +#endif +#define IM_COL32(R,G,B,A) (((ImU32)(A)<> IM_COL32_R_SHIFT) & 0xFF) * sc; Value.y = (float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * sc; Value.z = (float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * sc; Value.w = (float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * sc; } + inline operator ImU32() const { return ImGui::ColorConvertFloat4ToU32(Value); } + inline operator ImVec4() const { return Value; } + + // FIXME-OBSOLETE: May need to obsolete/cleanup those helpers. + inline void SetHSV(float h, float s, float v, float a = 1.0f){ ImGui::ColorConvertHSVtoRGB(h, s, v, Value.x, Value.y, Value.z); Value.w = a; } + static ImColor HSV(float h, float s, float v, float a = 1.0f) { float r, g, b; ImGui::ColorConvertHSVtoRGB(h, s, v, r, g, b); return ImColor(r, g, b, a); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Drawing API (ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData) +// Hold a series of drawing commands. The user provides a renderer for ImDrawData which essentially contains an array of ImDrawList. +//----------------------------------------------------------------------------- + +// The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking. +#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX +#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63) +#endif + +// ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h] +// NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering, +// you can poke into the draw list for that! Draw callback may be useful for example to: +// A) Change your GPU render state, +// B) render a complex 3D scene inside a UI element without an intermediate texture/render target, etc. +// The expected behavior from your rendering function is 'if (cmd.UserCallback != NULL) { cmd.UserCallback(parent_list, cmd); } else { RenderTriangles() }' +// If you want to override the signature of ImDrawCallback, you can simply use e.g. '#define ImDrawCallback MyDrawCallback' (in imconfig.h) + update rendering backend accordingly. +#ifndef ImDrawCallback +typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); +#endif + +// Special Draw callback value to request renderer backend to reset the graphics/render state. +// The renderer backend needs to handle this special value, otherwise it will crash trying to call a function at this address. +// This is useful for example if you submitted callbacks which you know have altered the render state and you want it to be restored. +// It is not done by default because they are many perfectly useful way of altering render state for imgui contents (e.g. changing shader/blending settings before an Image call). +#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-1) + +// Typically, 1 command = 1 GPU draw call (unless command is a callback) +// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, +// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. +// Backends made for <1.71. will typically ignore the VtxOffset fields. +// - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). +struct ImDrawCmd +{ + ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates + ImTextureID TextureId; // 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas. + unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. + unsigned int IdxOffset; // 4 // Start offset in index buffer. + unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. + ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. + void* UserCallbackData; // 4-8 // The draw callback code can access this. + + ImDrawCmd() { memset(this, 0, sizeof(*this)); } // Also ensure our padding fields are zeroed + + // Since 1.83: returns ImTextureID associated with this draw call. Warning: DO NOT assume this is always same as 'TextureId' (we will change this function for an upcoming feature) + inline ImTextureID GetTexID() const { return TextureId; } +}; + +// Vertex layout +#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT +struct ImDrawVert +{ + ImVec2 pos; + ImVec2 uv; + ImU32 col; +}; +#else +// You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h +// The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine. +// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared at the time you'd want to set your type up. +// NOTE: IMGUI DOESN'T CLEAR THE STRUCTURE AND DOESN'T CALL A CONSTRUCTOR SO ANY CUSTOM FIELD WILL BE UNINITIALIZED. IF YOU ADD EXTRA FIELDS (SUCH AS A 'Z' COORDINATES) YOU WILL NEED TO CLEAR THEM DURING RENDER OR TO IGNORE THEM. +IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT; +#endif + +// [Internal] For use by ImDrawList +struct ImDrawCmdHeader +{ + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; +}; + +// [Internal] For use by ImDrawListSplitter +struct ImDrawChannel +{ + ImVector _CmdBuffer; + ImVector _IdxBuffer; +}; + + +// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order. +// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call. +struct ImDrawListSplitter +{ + int _Current; // Current channel number (0) + int _Count; // Number of active channels (1+) + ImVector _Channels; // Draw channels (not resized down so _Count might be < Channels.Size) + + inline ImDrawListSplitter() { memset(this, 0, sizeof(*this)); } + inline ~ImDrawListSplitter() { ClearFreeMemory(); } + inline void Clear() { _Current = 0; _Count = 1; } // Do not clear Channels[] so our allocations are reused next frame + IMGUI_API void ClearFreeMemory(); + IMGUI_API void Split(ImDrawList* draw_list, int count); + IMGUI_API void Merge(ImDrawList* draw_list); + IMGUI_API void SetCurrentChannel(ImDrawList* draw_list, int channel_idx); +}; + +// Flags for ImDrawList functions +// (Legacy: bit 0 must always correspond to ImDrawFlags_Closed to be backward compatible with old API using a bool. Bits 1..3 must be unused) +enum ImDrawFlags_ +{ + ImDrawFlags_None = 0, + ImDrawFlags_Closed = 1 << 0, // PathStroke(), AddPolyline(): specify that shape should be closed (Important: this is always == 1 for legacy reason) + ImDrawFlags_RoundCornersTopLeft = 1 << 4, // AddRect(), AddRectFilled(), PathRect(): enable rounding top-left corner only (when rounding > 0.0f, we default to all corners). Was 0x01. + ImDrawFlags_RoundCornersTopRight = 1 << 5, // AddRect(), AddRectFilled(), PathRect(): enable rounding top-right corner only (when rounding > 0.0f, we default to all corners). Was 0x02. + ImDrawFlags_RoundCornersBottomLeft = 1 << 6, // AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-left corner only (when rounding > 0.0f, we default to all corners). Was 0x04. + ImDrawFlags_RoundCornersBottomRight = 1 << 7, // AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-right corner only (when rounding > 0.0f, we default to all corners). Wax 0x08. + ImDrawFlags_RoundCornersNone = 1 << 8, // AddRect(), AddRectFilled(), PathRect(): disable rounding on all corners (when rounding > 0.0f). This is NOT zero, NOT an implicit flag! + ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft, + ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, // Default to ALL corners if none of the _RoundCornersXX flags are specified. + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, +}; + +// Flags for ImDrawList instance. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly. +// It is however possible to temporarily alter flags between calls to ImDrawList:: functions. +enum ImDrawListFlags_ +{ + ImDrawListFlags_None = 0, + ImDrawListFlags_AntiAliasedLines = 1 << 0, // Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles) + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). + ImDrawListFlags_AntiAliasedFill = 1 << 2, // Enable anti-aliased edge around filled shapes (rounded rectangles, circles). + ImDrawListFlags_AllowVtxOffset = 1 << 3, // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. +}; + +// Draw command list +// This is the low-level list of polygons that ImGui:: functions are filling. At the end of the frame, +// all command lists are passed to your ImGuiIO::RenderDrawListFn function for rendering. +// Each dear imgui window contains its own ImDrawList. You can use ImGui::GetWindowDrawList() to +// access the current window draw list and draw custom primitives. +// You can interleave normal ImGui:: calls and adding primitives to the current draw list. +// In single viewport mode, top-left is == GetMainViewport()->Pos (generally 0,0), bottom-right is == GetMainViewport()->Pos+Size (generally io.DisplaySize). +// You are totally free to apply whatever transformation matrix to want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!) +// Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects. +struct ImDrawList +{ + // This is what you have to render + ImVector CmdBuffer; // Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. + ImVector IdxBuffer; // Index buffer. Each command consume ImDrawCmd::ElemCount of those + ImVector VtxBuffer; // Vertex buffer. + ImDrawListFlags Flags; // Flags, you may poke into these to adjust anti-aliasing settings per-primitive. + + // [Internal, used while building lists] + unsigned int _VtxCurrentIdx; // [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. + ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) + const char* _OwnerName; // Pointer to owner window's name for debugging + ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImVector _ClipRectStack; // [Internal] + ImVector _TextureIdStack; // [Internal] + ImVector _Path; // [Internal] current path building + ImDrawCmdHeader _CmdHeader; // [Internal] template of active commands. Fields should match those of CmdBuffer.back(). + ImDrawListSplitter _Splitter; // [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) + float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content + + // If you want to create ImDrawList instances, pass them ImGui::GetDrawListSharedData() or create and use your own ImDrawListSharedData (so you can use ImDrawList without ImGui) + ImDrawList(ImDrawListSharedData* shared_data) { memset(this, 0, sizeof(*this)); _Data = shared_data; } + + ~ImDrawList() { _ClearFreeMemory(); } + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) + IMGUI_API void PushClipRectFullScreen(); + IMGUI_API void PopClipRect(); + IMGUI_API void PushTextureID(ImTextureID texture_id); + IMGUI_API void PopTextureID(); + inline ImVec2 GetClipRectMin() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.x, cr.y); } + inline ImVec2 GetClipRectMax() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.z, cr.w); } + + // Primitives + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. + // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners. + // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred). + // In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12. + // In future versions we will use textures to provide cheaper and higher-quality circles. + // Use AddNgon() and AddNgonFilled() functions if you need to guarantee a specific number of sides. + IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0, float thickness = 1.0f); // a: upper-left, b: lower-right (== upper-left + size) + IMGUI_API void AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0); // a: upper-left, b: lower-right (== upper-left + size) + IMGUI_API void AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); + IMGUI_API void AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col); + IMGUI_API void AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col); + IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 0, float thickness = 1.0f); + IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 0); + IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f); + IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments); + IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL); + IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); + IMGUI_API void AddPolyline(const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness); + IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); + IMGUI_API void AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0); // Cubic Bezier (4 control points) + IMGUI_API void AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments = 0); // Quadratic Bezier (3 control points) + + // Image primitives + // - Read FAQ to understand what ImTextureID is. + // - "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle. + // - "uv_min" and "uv_max" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture. + IMGUI_API void AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min = ImVec2(0, 0), const ImVec2& uv_max = ImVec2(1, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1 = ImVec2(0, 0), const ImVec2& uv2 = ImVec2(1, 0), const ImVec2& uv3 = ImVec2(1, 1), const ImVec2& uv4 = ImVec2(0, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags = 0); + + // Stateful path API, add points then finish with PathFillConvex() or PathStroke() + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. + inline void PathClear() { _Path.Size = 0; } + inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } + inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); } + inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } + inline void PathStroke(ImU32 col, ImDrawFlags flags = 0, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; } + IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 0); + IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle + IMGUI_API void PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0); // Cubic Bezier (4 control points) + IMGUI_API void PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments = 0); // Quadratic Bezier (3 control points) + IMGUI_API void PathRect(const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0.0f, ImDrawFlags flags = 0); + + // Advanced + IMGUI_API void AddCallback(ImDrawCallback callback, void* callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. + IMGUI_API void AddDrawCmd(); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible + IMGUI_API ImDrawList* CloneOutput() const; // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer. + + // Advanced: Channels + // - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) + // - Use to minimize draw calls (e.g. if going back-and-forth between multiple clipping rectangles, prefer to append into separate channels then merge at the end) + // - FIXME-OBSOLETE: This API shouldn't have been in ImDrawList in the first place! + // Prefer using your own persistent instance of ImDrawListSplitter as you can stack them. + // Using the ImDrawList::ChannelsXXXX you cannot stack a split over another. + inline void ChannelsSplit(int count) { _Splitter.Split(this, count); } + inline void ChannelsMerge() { _Splitter.Merge(this); } + inline void ChannelsSetCurrent(int n) { _Splitter.SetCurrentChannel(this, n); } + + // Advanced: Primitives allocations + // - We render triangles (three vertices) + // - All primitives needs to be reserved via PrimReserve() beforehand. + IMGUI_API void PrimReserve(int idx_count, int vtx_count); + IMGUI_API void PrimUnreserve(int idx_count, int vtx_count); + IMGUI_API void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col); // Axis aligned rectangle (composed of two triangles) + IMGUI_API void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col); + IMGUI_API void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col); + inline void PrimWriteVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; } + inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; } + inline void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); } // Write vertex with unique index + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) + inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) +#endif + + // [Internal helpers] + IMGUI_API void _ResetForNewFrame(); + IMGUI_API void _ClearFreeMemory(); + IMGUI_API void _PopUnusedDrawCmd(); + IMGUI_API void _TryMergeDrawCmds(); + IMGUI_API void _OnChangedClipRect(); + IMGUI_API void _OnChangedTextureID(); + IMGUI_API void _OnChangedVtxOffset(); + IMGUI_API int _CalcCircleAutoSegmentCount(float radius) const; + IMGUI_API void _PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step); + IMGUI_API void _PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments); +}; + +// All draw data to render a Dear ImGui frame +// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose, +// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList) +struct ImDrawData +{ + bool Valid; // Only valid after Render() is called and before the next NewFrame() is called. + int CmdListsCount; // Number of ImDrawList* to render + int TotalIdxCount; // For convenience, sum of all ImDrawList's IdxBuffer.Size + int TotalVtxCount; // For convenience, sum of all ImDrawList's VtxBuffer.Size + ImDrawList** CmdLists; // Array of ImDrawList* to render. The ImDrawList are owned by ImGuiContext and only pointed to from here. + ImVec2 DisplayPos; // Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications) + ImVec2 DisplaySize; // Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications) + ImVec2 FramebufferScale; // Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display. + + // Functions + ImDrawData() { Clear(); } + void Clear() { memset(this, 0, sizeof(*this)); } // The ImDrawList are owned by ImGuiContext! + IMGUI_API void DeIndexAllBuffers(); // Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! + IMGUI_API void ScaleClipRects(const ImVec2& fb_scale); // Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. +}; + +//----------------------------------------------------------------------------- +// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontAtlasFlags, ImFontAtlas, ImFontGlyphRangesBuilder, ImFont) +//----------------------------------------------------------------------------- + +struct ImFontConfig +{ + void* FontData; // // TTF/OTF data + int FontDataSize; // // TTF/OTF data size + bool FontDataOwnedByAtlas; // true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself). + int FontNo; // 0 // Index of font within TTF/OTF file + float SizePixels; // // Size in pixels for rasterizer (more or less maps to the resulting font height). + int OversampleH; // 3 // Rasterize at higher quality for sub-pixel positioning. Note the difference between 2 and 3 is minimal so you can reduce this to 2 to save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details. + int OversampleV; // 1 // Rasterize at higher quality for sub-pixel positioning. This is not really useful as we don't use sub-pixel positions on the Y axis. + bool PixelSnapH; // false // Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1. + ImVec2 GlyphExtraSpacing; // 0, 0 // Extra spacing (in pixels) between glyphs. Only X axis is supported for now. + ImVec2 GlyphOffset; // 0, 0 // Offset all glyphs from this font input. + const ImWchar* GlyphRanges; // NULL // Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list). THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. + float GlyphMinAdvanceX; // 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font + float GlyphMaxAdvanceX; // FLT_MAX // Maximum AdvanceX for glyphs + bool MergeMode; // false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights. + unsigned int FontBuilderFlags; // 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if unsure. + float RasterizerMultiply; // 1.0f // Brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. + ImWchar EllipsisChar; // -1 // Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used. + + // [Internal] + char Name[40]; // Name (strictly to ease debugging) + ImFont* DstFont; + + IMGUI_API ImFontConfig(); +}; + +// Hold rendering data for one glyph. +// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this) +struct ImFontGlyph +{ + unsigned int Colored : 1; // Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian as this is used in loops) + unsigned int Visible : 1; // Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering. + unsigned int Codepoint : 30; // 0x0000..0x10FFFF + float AdvanceX; // Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in) + float X0, Y0, X1, Y1; // Glyph corners + float U0, V0, U1, V1; // Texture coordinates +}; + +// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges(). +// This is essentially a tightly packed of vector of 64k booleans = 8KB storage. +struct ImFontGlyphRangesBuilder +{ + ImVector UsedChars; // Store 1-bit per Unicode code point (0=unused, 1=used) + + ImFontGlyphRangesBuilder() { Clear(); } + inline void Clear() { int size_in_bytes = (IM_UNICODE_CODEPOINT_MAX + 1) / 8; UsedChars.resize(size_in_bytes / (int)sizeof(ImU32)); memset(UsedChars.Data, 0, (size_t)size_in_bytes); } + inline bool GetBit(size_t n) const { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); return (UsedChars[off] & mask) != 0; } // Get bit n in the array + inline void SetBit(size_t n) { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; } // Set bit n in the array + inline void AddChar(ImWchar c) { SetBit(c); } // Add character + IMGUI_API void AddText(const char* text, const char* text_end = NULL); // Add string (each character of the UTF-8 string are added) + IMGUI_API void AddRanges(const ImWchar* ranges); // Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext + IMGUI_API void BuildRanges(ImVector* out_ranges); // Output new ranges +}; + +// See ImFontAtlas::AddCustomRectXXX functions. +struct ImFontAtlasCustomRect +{ + unsigned short Width, Height; // Input // Desired rectangle dimension + unsigned short X, Y; // Output // Packed position in Atlas + unsigned int GlyphID; // Input // For custom font glyphs only (ID < 0x110000) + float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance + ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset + ImFont* Font; // Input // For custom font glyphs only: target font + ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; } + bool IsPacked() const { return X != 0xFFFF; } +}; + +// Flags for ImFontAtlas build +enum ImFontAtlasFlags_ +{ + ImFontAtlasFlags_None = 0, + ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two + ImFontAtlasFlags_NoMouseCursors = 1 << 1, // Don't build software mouse cursors into the atlas (save a little texture memory) + ImFontAtlasFlags_NoBakedLines = 1 << 2, // Don't build thick line textures into the atlas (save a little texture memory, allow support for point/nearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). +}; + +// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding: +// - One or more fonts. +// - Custom graphics data needed to render the shapes needed by Dear ImGui. +// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas). +// It is the user-code responsibility to setup/build the atlas, then upload the pixel data into a texture accessible by your graphics api. +// - Optionally, call any of the AddFont*** functions. If you don't call any, the default font embedded in the code will be loaded for you. +// - Call GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data. +// - Upload the pixels data into a texture within your graphics system (see imgui_impl_xxxx.cpp examples) +// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API. +// This value will be passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID for more details. +// Common pitfalls: +// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the +// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data. +// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction. +// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed, +// - Even though many functions are suffixed with "TTF", OTF data is supported just as well. +// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future! +struct ImFontAtlas +{ + IMGUI_API ImFontAtlas(); + IMGUI_API ~ImFontAtlas(); + IMGUI_API ImFont* AddFont(const ImFontConfig* font_cfg); + IMGUI_API ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL); + IMGUI_API ImFont* AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); + IMGUI_API ImFont* AddFontFromMemoryTTF(void* font_data, int font_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. + IMGUI_API ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. + IMGUI_API ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. + IMGUI_API void ClearInputData(); // Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. + IMGUI_API void ClearTexData(); // Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. + IMGUI_API void ClearFonts(); // Clear output font data (glyphs storage, UV coordinates). + IMGUI_API void Clear(); // Clear all input and output. + + // Build atlas, retrieve pixel data. + // User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID(). + // The pitch is always = Width * BytesPerPixels (1 or 4) + // Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into + // the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste. + IMGUI_API bool Build(); // Build pixels data. This is called automatically for you by the GetTexData*** functions. + IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 1 byte per-pixel + IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 4 bytes-per-pixel + bool IsBuilt() const { return Fonts.Size > 0 && TexReady; } // Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... + void SetTexID(ImTextureID id) { TexID = id; } + + //------------------------------------------- + // Glyph Ranges + //------------------------------------------- + + // Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list) + // NB: Make sure that your string are UTF-8 and NOT in your local code page. In C++11, you can create UTF-8 string literal using the u8"Hello world" syntax. See FAQ for details. + // NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data. + IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin + IMGUI_API const ImWchar* GetGlyphRangesGreek(); // Default + Greek and Coptic + IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters + IMGUI_API const ImWchar* GetGlyphRangesJapanese(); // Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseSimplifiedCommon();// Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese + IMGUI_API const ImWchar* GetGlyphRangesCyrillic(); // Default + about 400 Cyrillic characters + IMGUI_API const ImWchar* GetGlyphRangesThai(); // Default + Thai characters + IMGUI_API const ImWchar* GetGlyphRangesVietnamese(); // Default + Vietnamese characters + + //------------------------------------------- + // [BETA] Custom Rectangles/Glyphs API + //------------------------------------------- + + // You can request arbitrary rectangles to be packed into the atlas, for your own purposes. + // - After calling Build(), you can query the rectangle position and render your pixels. + // - If you render colored output, set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of prefered texture format. + // - You can also request your rectangles to be mapped as font glyph (given a font + Unicode point), + // so you can render e.g. custom colorful icons and use them as regular glyphs. + // - Read docs/FONTS.md for more details about using colorful icons. + // - Note: this API may be redesigned later in order to support multi-monitor varying DPI settings. + IMGUI_API int AddCustomRectRegular(int width, int height); + IMGUI_API int AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0, 0)); + ImFontAtlasCustomRect* GetCustomRectByIndex(int index) { IM_ASSERT(index >= 0); return &CustomRects[index]; } + + // [Internal] + IMGUI_API void CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const; + IMGUI_API bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]); + + //------------------------------------------- + // Members + //------------------------------------------- + + ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) + ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure. + int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height. + int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false). + bool Locked; // Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert. + + // [Internal] + // NB: Access texture data via GetTexData*() calls! Which will setup a default font for you. + bool TexReady; // Set when texture was built matching current font input + bool TexPixelsUseColors; // Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help backend select a format. + unsigned char* TexPixelsAlpha8; // 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight + unsigned int* TexPixelsRGBA32; // 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 + int TexWidth; // Texture width calculated during Build(). + int TexHeight; // Texture height calculated during Build(). + ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight) + ImVec2 TexUvWhitePixel; // Texture coordinates to a white pixel + ImVector Fonts; // Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(), use ImGui::PushFont()/PopFont() to change the current font. + ImVector CustomRects; // Rectangles for packing custom texture data into the atlas. + ImVector ConfigData; // Configuration data + ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]; // UVs for baked anti-aliased lines + + // [Internal] Font builder + const ImFontBuilderIO* FontBuilderIO; // Opaque interface to a font builder (default to stb_truetype, can be changed to use FreeType by defining IMGUI_ENABLE_FREETYPE). + unsigned int FontBuilderFlags; // Shared flags (for all fonts) for custom font builder. THIS IS BUILD IMPLEMENTATION DEPENDENT. Per-font override is also available in ImFontConfig. + + // [Internal] Packing data + int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors + int PackIdLines; // Custom texture rectangle ID for baked anti-aliased lines + + // [Obsolete] + //typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ + //typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ +}; + +// Font runtime data and rendering +// ImFontAtlas automatically loads a default embedded font for you when you call GetTexDataAsAlpha8() or GetTexDataAsRGBA32(). +struct ImFont +{ + // Members: Hot ~20/24 bytes (for CalcTextSize) + ImVector IndexAdvanceX; // 12-16 // out // // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this this info, and are often bottleneck in large UI). + float FallbackAdvanceX; // 4 // out // = FallbackGlyph->AdvanceX + float FontSize; // 4 // in // // Height of characters/line, set during loading (don't change after loading) + + // Members: Hot ~28/40 bytes (for CalcTextSize + render loop) + ImVector IndexLookup; // 12-16 // out // // Sparse. Index glyphs by Unicode code-point. + ImVector Glyphs; // 12-16 // out // // All glyphs. + const ImFontGlyph* FallbackGlyph; // 4-8 // out // = FindGlyph(FontFallbackChar) + + // Members: Cold ~32/40 bytes + ImFontAtlas* ContainerAtlas; // 4-8 // out // // What we has been loaded into + const ImFontConfig* ConfigData; // 4-8 // in // // Pointer within ContainerAtlas->ConfigData + short ConfigDataCount; // 2 // in // ~ 1 // Number of ImFontConfig involved in creating this font. Bigger than 1 when merging multiple font sources into one ImFont. + ImWchar FallbackChar; // 2 // out // = FFFD/'?' // Character used if a glyph isn't found. + ImWchar EllipsisChar; // 2 // out // = '...' // Character used for ellipsis rendering. + ImWchar DotChar; // 2 // out // = '.' // Character used for ellipsis rendering (if a single '...' character isn't found) + bool DirtyLookupTables; // 1 // out // + float Scale; // 4 // in // = 1.f // Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale() + float Ascent, Descent; // 4+4 // out // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] + int MetricsTotalSurface;// 4 // out // // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs) + ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8]; // 2 bytes if ImWchar=ImWchar16, 34 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints. + + // Methods + IMGUI_API ImFont(); + IMGUI_API ~ImFont(); + IMGUI_API const ImFontGlyph*FindGlyph(ImWchar c) const; + IMGUI_API const ImFontGlyph*FindGlyphNoFallback(ImWchar c) const; + float GetCharAdvance(ImWchar c) const { return ((int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; } + bool IsLoaded() const { return ContainerAtlas != NULL; } + const char* GetDebugName() const { return ConfigData ? ConfigData->Name : ""; } + + // 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable. + // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. + IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 + IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; + IMGUI_API void RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const; + IMGUI_API void RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; + + // [Internal] Don't use! + IMGUI_API void BuildLookupTable(); + IMGUI_API void ClearOutputData(); + IMGUI_API void GrowIndex(int new_size); + IMGUI_API void AddGlyph(const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); + IMGUI_API void AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst = true); // Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built. + IMGUI_API void SetGlyphVisible(ImWchar c, bool visible); + IMGUI_API bool IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Viewports +//----------------------------------------------------------------------------- + +// Flags stored in ImGuiViewport::Flags, giving indications to the platform backends. +enum ImGuiViewportFlags_ +{ + ImGuiViewportFlags_None = 0, + ImGuiViewportFlags_IsPlatformWindow = 1 << 0, // Represent a Platform Window + ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, // Represent a Platform Monitor (unused yet) + ImGuiViewportFlags_OwnedByApp = 1 << 2, // Platform Window: is created/managed by the application (rather than a dear imgui backend) +}; + +// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. +// - In 'docking' branch with multi-viewport enabled, we extend this concept to have multiple active viewports. +// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. +// - About Main Area vs Work Area: +// - Main Area = entire viewport. +// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor). +// - Windows are generally trying to stay within the Work Area of their host viewport. +struct ImGuiViewport +{ + ImGuiViewportFlags Flags; // See ImGuiViewportFlags_ + ImVec2 Pos; // Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates) + ImVec2 Size; // Main Area: Size of the viewport. + ImVec2 WorkPos; // Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos) + ImVec2 WorkSize; // Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size) + + // Platform/Backend Dependent Data + void* PlatformHandleRaw; // void* to hold lower-level, platform-native window handle (under Win32 this is expected to be a HWND, unused for other platforms) + + ImGuiViewport() { memset(this, 0, sizeof(*this)); } + + // Helpers + ImVec2 GetCenter() const { return ImVec2(Pos.x + Size.x * 0.5f, Pos.y + Size.y * 0.5f); } + ImVec2 GetWorkCenter() const { return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Platform Dependent Interfaces +//----------------------------------------------------------------------------- + +// (Optional) Support for IME (Input Method Editor) via the io.SetPlatformImeDataFn() function. +struct ImGuiPlatformImeData +{ + bool WantVisible; // A widget wants the IME to be visible + ImVec2 InputPos; // Position of the input cursor + float InputLineHeight; // Line height + + ImGuiPlatformImeData() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Obsolete functions and types +// (Will be removed! Read 'API BREAKING CHANGES' section in imgui.cpp for details) +// Please keep your copy of dear imgui up to date! Occasionally set '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in imconfig.h to stay ahead. +//----------------------------------------------------------------------------- + +namespace ImGui +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key); // map ImGuiKey_* values into legacy native key index. == io.KeyMap[key] +#else + static inline ImGuiKey GetKeyIndex(ImGuiKey key) { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END && "ImGuiKey and native_index was merged together and native_index is disabled by IMGUI_DISABLE_OBSOLETE_KEYIO. Please switch to ImGuiKey."); return key; } +#endif +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +namespace ImGui +{ + // OBSOLETED in 1.89 (from August 2022) + IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); // Use new ImageButton() signature (explicit item id, regular FramePadding) + // OBSOLETED in 1.88 (from May 2022) + static inline void CaptureKeyboardFromApp(bool want_capture_keyboard = true) { SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } // Renamed as name was misleading + removed default value. + static inline void CaptureMouseFromApp(bool want_capture_mouse = true) { SetNextFrameWantCaptureMouse(want_capture_mouse); } // Renamed as name was misleading + removed default value. + // OBSOLETED in 1.86 (from November 2021) + IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // Calculate coarse clipping for large list of evenly sized items. Prefer using ImGuiListClipper. + // OBSOLETED in 1.85 (from August 2021) + static inline float GetWindowContentRegionWidth() { return GetWindowContentRegionMax().x - GetWindowContentRegionMin().x; } + // OBSOLETED in 1.81 (from February 2021) + IMGUI_API bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1); // Helper to calculate size from items_count and height_in_items + static inline bool ListBoxHeader(const char* label, const ImVec2& size = ImVec2(0, 0)) { return BeginListBox(label, size); } + static inline void ListBoxFooter() { EndListBox(); } + + // Some of the older obsolete names along with their replacement (commented out so they are not reported in IDE) + //-- OBSOLETED in 1.79 (from August 2020) + //static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! + //-- OBSOLETED in 1.78 (from June 2020): Old drag/sliders functions that took a 'float power > 1.0f' argument instead of ImGuiSliderFlags_Logarithmic. See github.com/ocornut/imgui/issues/3361 for details. + //IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power = 1.0f) // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool DragScalarN(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, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //-- OBSOLETED in 1.77 and before + //static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } // OBSOLETED in 1.77 (from June 2020) + //static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } // OBSOLETED in 1.72 (from July 2019) + //static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } // OBSOLETED in 1.71 (from June 2019) + //static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } // OBSOLETED in 1.70 (from May 2019) + //static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } // OBSOLETED in 1.69 (from Mar 2019) + //static inline void SetScrollHere(float ratio = 0.5f) { SetScrollHereY(ratio); } // OBSOLETED in 1.66 (from Nov 2018) + //static inline bool IsItemDeactivatedAfterChange() { return IsItemDeactivatedAfterEdit(); } // OBSOLETED in 1.63 (from Aug 2018) + //-- OBSOLETED in 1.60 and before + //static inline bool IsAnyWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_AnyWindow); } // OBSOLETED in 1.60 (from Apr 2018) + //static inline bool IsAnyWindowHovered() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.60 (between Dec 2017 and Apr 2018) + //static inline void ShowTestWindow() { return ShowDemoWindow(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootWindow); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowOrAnyChildFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline float GetItemsLineHeightWithSpacing() { return GetFrameHeightWithSpacing(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //IMGUI_API bool Begin(char* name, bool* p_open, ImVec2 size_first_use, float bg_alpha = -1.0f, ImGuiWindowFlags flags=0); // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017): Equivalent of using SetNextWindowSize(size, ImGuiCond_FirstUseEver) and SetNextWindowBgAlpha(). + //static inline bool IsRootWindowOrAnyChildHovered() { return IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void AlignFirstTextHeightToWidgets() { AlignTextToFramePadding(); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void SetNextWindowPosCenter(ImGuiCond c=0) { SetNextWindowPos(GetMainViewport()->GetCenter(), c, ImVec2(0.5f,0.5f)); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline bool IsItemHoveredRect() { return IsItemHovered(ImGuiHoveredFlags_RectOnly); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsPosHoveringAnyWindow(const ImVec2&) { IM_ASSERT(0); return false; } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017): This was misleading and partly broken. You probably want to use the io.WantCaptureMouse flag instead. + //static inline bool IsMouseHoveringAnyWindow() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsMouseHoveringWindow() { return IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //-- OBSOLETED in 1.50 and before + //static inline bool CollapsingHeader(char* label, const char* str_id, bool framed = true, bool default_open = false) { return CollapsingHeader(label, (default_open ? (1 << 5) : 0)); } // OBSOLETED in 1.49 + //static inline ImFont*GetWindowFont() { return GetFont(); } // OBSOLETED in 1.48 + //static inline float GetWindowFontSize() { return GetFontSize(); } // OBSOLETED in 1.48 + //static inline void SetScrollPosHere() { SetScrollHere(); } // OBSOLETED in 1.42 +} + +// OBSOLETED in 1.82 (from Mars 2021): flags for AddRect(), AddRectFilled(), AddImageRounded(), PathRect() +typedef ImDrawFlags ImDrawCornerFlags; +enum ImDrawCornerFlags_ +{ + ImDrawCornerFlags_None = ImDrawFlags_RoundCornersNone, // Was == 0 prior to 1.82, this is now == ImDrawFlags_RoundCornersNone which is != 0 and not implicit + ImDrawCornerFlags_TopLeft = ImDrawFlags_RoundCornersTopLeft, // Was == 0x01 (1 << 0) prior to 1.82. Order matches ImDrawFlags_NoRoundCorner* flag (we exploit this internally). + ImDrawCornerFlags_TopRight = ImDrawFlags_RoundCornersTopRight, // Was == 0x02 (1 << 1) prior to 1.82. + ImDrawCornerFlags_BotLeft = ImDrawFlags_RoundCornersBottomLeft, // Was == 0x04 (1 << 2) prior to 1.82. + ImDrawCornerFlags_BotRight = ImDrawFlags_RoundCornersBottomRight, // Was == 0x08 (1 << 3) prior to 1.82. + ImDrawCornerFlags_All = ImDrawFlags_RoundCornersAll, // Was == 0x0F prior to 1.82 + ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight, + ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight, + ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, + ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight, +}; + +// RENAMED and MERGED both ImGuiKey_ModXXX and ImGuiModFlags_XXX into ImGuiMod_XXX (from September 2022) +// RENAMED ImGuiKeyModFlags -> ImGuiModFlags in 1.88 (from April 2022). Exceptionally commented out ahead of obscolescence schedule to reduce confusion and because they were not meant to be used in the first place. +typedef ImGuiKeyChord ImGuiModFlags; // == int. We generally use ImGuiKeyChord to mean "a ImGuiKey or-ed with any number of ImGuiMod_XXX value", but you may store only mods in there. +enum ImGuiModFlags_ { ImGuiModFlags_None = 0, ImGuiModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiModFlags_Shift = ImGuiMod_Shift, ImGuiModFlags_Alt = ImGuiMod_Alt, ImGuiModFlags_Super = ImGuiMod_Super }; +//typedef ImGuiKeyChord ImGuiKeyModFlags; // == int +//enum ImGuiKeyModFlags_ { ImGuiKeyModFlags_None = 0, ImGuiKeyModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiKeyModFlags_Shift = ImGuiMod_Shift, ImGuiKeyModFlags_Alt = ImGuiMod_Alt, ImGuiKeyModFlags_Super = ImGuiMod_Super }; + +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +// RENAMED IMGUI_DISABLE_METRICS_WINDOW > IMGUI_DISABLE_DEBUG_TOOLS in 1.88 (from June 2022) +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && !defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_DEBUG_TOOLS) +#define IMGUI_DISABLE_DEBUG_TOOLS +#endif +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) +#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name. +#endif + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +// Include imgui_user.h at the end of imgui.h (convenient for user to only explicitly include vanilla imgui.h) +#ifdef IMGUI_INCLUDE_IMGUI_USER_H +#include "imgui_user.h" +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_demo.cpp b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_demo.cpp new file mode 100644 index 000000000..636c7b879 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_demo.cpp @@ -0,0 +1,8064 @@ +// dear imgui, v1.89.1 +// (demo code) + +// Help: +// - Read FAQ at http://dearimgui.org/faq +// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// Read imgui.cpp for more details, documentation and comments. +// Get the latest version at https://github.com/ocornut/imgui + +// ------------------------------------------------- +// PLEASE DO NOT REMOVE THIS FILE FROM YOUR PROJECT! +// ------------------------------------------------- +// Message to the person tempted to delete this file when integrating Dear ImGui into their codebase: +// Think again! It is the most useful reference code that you and other coders will want to refer to and call. +// Have the ImGui::ShowDemoWindow() function wired in an always-available debug menu of your game/app! +// Also include Metrics! ItemPicker! DebugLog! and other debug features. +// Removing this file from your project is hindering access to documentation for everyone in your team, +// likely leading you to poorer usage of the library. +// Everything in this file will be stripped out by the linker if you don't call ImGui::ShowDemoWindow(). +// If you want to link core Dear ImGui in your shipped builds but want a thorough guarantee that the demo will not be +// linked, you can setup your imconfig.h with #define IMGUI_DISABLE_DEMO_WINDOWS and those functions will be empty. +// In another situation, whenever you have Dear ImGui available you probably want this to be available for reference. +// Thank you, +// -Your beloved friend, imgui_demo.cpp (which you won't delete) + +// Message to beginner C/C++ programmers about the meaning of the 'static' keyword: +// In this demo code, we frequently use 'static' variables inside functions. A static variable persists across calls, +// so it is essentially like a global variable but declared inside the scope of the function. We do this as a way to +// gather code and data in the same place, to make the demo source code faster to read, faster to write, and smaller +// in size. It also happens to be a convenient way of storing simple UI related information as long as your function +// doesn't need to be reentrant or used in multiple threads. This might be a pattern you will want to use in your code, +// but most of the real data you would be editing is likely going to be stored outside your functions. + +// The Demo code in this file is designed to be easy to copy-and-paste into your application! +// Because of this: +// - We never omit the ImGui:: prefix when calling functions, even though most code here is in the same namespace. +// - We try to declare static variables in the local scope, as close as possible to the code using them. +// - We never use any of the helpers/facilities used internally by Dear ImGui, unless available in the public API. +// - We never use maths operators on ImVec2/ImVec4. For our other sources files we use them, and they are provided +// by imgui_internal.h using the IMGUI_DEFINE_MATH_OPERATORS define. For your own sources file they are optional +// and require you either enable those, either provide your own via IM_VEC2_CLASS_EXTRA in imconfig.h. +// Because we can't assume anything about your support of maths operators, we cannot use them in imgui_demo.cpp. + +// Navigating this file: +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. + +/* + +Index of this file: + +// [SECTION] Forward Declarations +// [SECTION] Helpers +// [SECTION] Demo Window / ShowDemoWindow() +// - ShowDemoWindow() +// - sub section: ShowDemoWindowWidgets() +// - sub section: ShowDemoWindowLayout() +// - sub section: ShowDemoWindowPopups() +// - sub section: ShowDemoWindowTables() +// - sub section: ShowDemoWindowInputs() +// [SECTION] About Window / ShowAboutWindow() +// [SECTION] Style Editor / ShowStyleEditor() +// [SECTION] User Guide / ShowUserGuide() +// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() +// [SECTION] Example App: Debug Console / ShowExampleAppConsole() +// [SECTION] Example App: Debug Log / ShowExampleAppLog() +// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() +// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() +// [SECTION] Example App: Long Text / ShowExampleAppLongText() +// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() +// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() +// [SECTION] Example App: Simple overlay / ShowExampleAppSimpleOverlay() +// [SECTION] Example App: Fullscreen window / ShowExampleAppFullscreen() +// [SECTION] Example App: Manipulating window titles / ShowExampleAppWindowTitles() +// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() +// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +// System includes +#include // toupper +#include // INT_MIN, INT_MAX +#include // sqrtf, powf, cosf, sinf, floorf, ceilf +#include // vsnprintf, sscanf, printf +#include // NULL, malloc, free, atoi +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wdeprecated-declarations" // warning: 'xx' is deprecated: The POSIX name for this.. // for strdup used in demo code (so user can copy & paste the code) +#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type +#pragma clang diagnostic ignored "-Wformat-security" // warning: format string is not a string literal +#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. +#pragma clang diagnostic ignored "-Wunused-macros" // warning: macro is not used // we define snprintf/vsnprintf on Windows so they are available, but not always used. +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wformat-security" // warning: format string is not a string literal (potentially insecure) +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wmisleading-indentation" // [__GNUC__ >= 6] warning: this 'if' clause does not guard this statement // GCC 6.0+ only. See #883 on GitHub. +#endif + +// Play it nice with Windows users (Update: May 2018, Notepad now supports Unix-style carriage returns!) +#ifdef _WIN32 +#define IM_NEWLINE "\r\n" +#else +#define IM_NEWLINE "\n" +#endif + +// Helpers +#if defined(_MSC_VER) && !defined(snprintf) +#define snprintf _snprintf +#endif +#if defined(_MSC_VER) && !defined(vsnprintf) +#define vsnprintf _vsnprintf +#endif + +// Format specifiers, printing 64-bit hasn't been decently standardized... +// In a real application you should be using PRId64 and PRIu64 from (non-windows) and on Windows define them yourself. +#ifdef _MSC_VER +#define IM_PRId64 "I64d" +#define IM_PRIu64 "I64u" +#else +#define IM_PRId64 "lld" +#define IM_PRIu64 "llu" +#endif + +// Helpers macros +// We normally try to not use many helpers in imgui_demo.cpp in order to make code easier to copy and paste, +// but making an exception here as those are largely simplifying code... +// In other imgui sources we can use nicer internal functions from imgui_internal.h (ImMin/ImMax) but not in the demo. +#define IM_MIN(A, B) (((A) < (B)) ? (A) : (B)) +#define IM_MAX(A, B) (((A) >= (B)) ? (A) : (B)) +#define IM_CLAMP(V, MN, MX) ((V) < (MN) ? (MN) : (V) > (MX) ? (MX) : (V)) + +// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall +#ifndef IMGUI_CDECL +#ifdef _MSC_VER +#define IMGUI_CDECL __cdecl +#else +#define IMGUI_CDECL +#endif +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward Declarations, Helpers +//----------------------------------------------------------------------------- + +#if !defined(IMGUI_DISABLE_DEMO_WINDOWS) + +// Forward Declarations +static void ShowExampleAppDocuments(bool* p_open); +static void ShowExampleAppMainMenuBar(); +static void ShowExampleAppConsole(bool* p_open); +static void ShowExampleAppLog(bool* p_open); +static void ShowExampleAppLayout(bool* p_open); +static void ShowExampleAppPropertyEditor(bool* p_open); +static void ShowExampleAppLongText(bool* p_open); +static void ShowExampleAppAutoResize(bool* p_open); +static void ShowExampleAppConstrainedResize(bool* p_open); +static void ShowExampleAppSimpleOverlay(bool* p_open); +static void ShowExampleAppFullscreen(bool* p_open); +static void ShowExampleAppWindowTitles(bool* p_open); +static void ShowExampleAppCustomRendering(bool* p_open); +static void ShowExampleMenuFile(); + +// We split the contents of the big ShowDemoWindow() function into smaller functions +// (because the link time of very large functions grow non-linearly) +static void ShowDemoWindowWidgets(); +static void ShowDemoWindowLayout(); +static void ShowDemoWindowPopups(); +static void ShowDemoWindowTables(); +static void ShowDemoWindowColumns(); +static void ShowDemoWindowInputs(); + +//----------------------------------------------------------------------------- +// [SECTION] Helpers +//----------------------------------------------------------------------------- + +// Helper to display a little (?) mark which shows a tooltip when hovered. +// In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md) +static void HelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +// Helper to wire demo markers located in code to an interactive browser +typedef void (*ImGuiDemoMarkerCallback)(const char* file, int line, const char* section, void* user_data); +extern ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback; +extern void* GImGuiDemoMarkerCallbackUserData; +ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback = NULL; +void* GImGuiDemoMarkerCallbackUserData = NULL; +#define IMGUI_DEMO_MARKER(section) do { if (GImGuiDemoMarkerCallback != NULL) GImGuiDemoMarkerCallback(__FILE__, __LINE__, section, GImGuiDemoMarkerCallbackUserData); } while (0) + +//----------------------------------------------------------------------------- +// [SECTION] Demo Window / ShowDemoWindow() +//----------------------------------------------------------------------------- +// - ShowDemoWindow() +// - ShowDemoWindowWidgets() +// - ShowDemoWindowLayout() +// - ShowDemoWindowPopups() +// - ShowDemoWindowTables() +// - ShowDemoWindowColumns() +// - ShowDemoWindowInputs() +//----------------------------------------------------------------------------- + +// Demonstrate most Dear ImGui features (this is big function!) +// You may execute this function to experiment with the UI and understand what it does. +// You may then search for keywords in the code when you are interested by a specific feature. +void ImGui::ShowDemoWindow(bool* p_open) +{ + // Exceptionally add an extra assert here for people confused about initial Dear ImGui setup + // Most functions would normally just crash if the context is missing. + IM_ASSERT(ImGui::GetCurrentContext() != NULL && "Missing dear imgui context. Refer to examples app!"); + + // Examples Apps (accessible from the "Examples" menu) + static bool show_app_main_menu_bar = false; + static bool show_app_documents = false; + static bool show_app_console = false; + static bool show_app_log = false; + static bool show_app_layout = false; + static bool show_app_property_editor = false; + static bool show_app_long_text = false; + static bool show_app_auto_resize = false; + static bool show_app_constrained_resize = false; + static bool show_app_simple_overlay = false; + static bool show_app_fullscreen = false; + static bool show_app_window_titles = false; + static bool show_app_custom_rendering = false; + + if (show_app_main_menu_bar) ShowExampleAppMainMenuBar(); + if (show_app_documents) ShowExampleAppDocuments(&show_app_documents); + if (show_app_console) ShowExampleAppConsole(&show_app_console); + if (show_app_log) ShowExampleAppLog(&show_app_log); + if (show_app_layout) ShowExampleAppLayout(&show_app_layout); + if (show_app_property_editor) ShowExampleAppPropertyEditor(&show_app_property_editor); + if (show_app_long_text) ShowExampleAppLongText(&show_app_long_text); + if (show_app_auto_resize) ShowExampleAppAutoResize(&show_app_auto_resize); + if (show_app_constrained_resize) ShowExampleAppConstrainedResize(&show_app_constrained_resize); + if (show_app_simple_overlay) ShowExampleAppSimpleOverlay(&show_app_simple_overlay); + if (show_app_fullscreen) ShowExampleAppFullscreen(&show_app_fullscreen); + if (show_app_window_titles) ShowExampleAppWindowTitles(&show_app_window_titles); + if (show_app_custom_rendering) ShowExampleAppCustomRendering(&show_app_custom_rendering); + + // Dear ImGui Tools/Apps (accessible from the "Tools" menu) + static bool show_app_metrics = false; + static bool show_app_debug_log = false; + static bool show_app_stack_tool = false; + static bool show_app_about = false; + static bool show_app_style_editor = false; + + if (show_app_metrics) + ImGui::ShowMetricsWindow(&show_app_metrics); + if (show_app_debug_log) + ImGui::ShowDebugLogWindow(&show_app_debug_log); + if (show_app_stack_tool) + ImGui::ShowStackToolWindow(&show_app_stack_tool); + if (show_app_about) + ImGui::ShowAboutWindow(&show_app_about); + if (show_app_style_editor) + { + ImGui::Begin("Dear ImGui Style Editor", &show_app_style_editor); + ImGui::ShowStyleEditor(); + ImGui::End(); + } + + // Demonstrate the various window flags. Typically you would just use the default! + static bool no_titlebar = false; + static bool no_scrollbar = false; + static bool no_menu = false; + static bool no_move = false; + static bool no_resize = false; + static bool no_collapse = false; + static bool no_close = false; + static bool no_nav = false; + static bool no_background = false; + static bool no_bring_to_front = false; + static bool unsaved_document = false; + + ImGuiWindowFlags window_flags = 0; + if (no_titlebar) window_flags |= ImGuiWindowFlags_NoTitleBar; + if (no_scrollbar) window_flags |= ImGuiWindowFlags_NoScrollbar; + if (!no_menu) window_flags |= ImGuiWindowFlags_MenuBar; + if (no_move) window_flags |= ImGuiWindowFlags_NoMove; + if (no_resize) window_flags |= ImGuiWindowFlags_NoResize; + if (no_collapse) window_flags |= ImGuiWindowFlags_NoCollapse; + if (no_nav) window_flags |= ImGuiWindowFlags_NoNav; + if (no_background) window_flags |= ImGuiWindowFlags_NoBackground; + if (no_bring_to_front) window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus; + if (unsaved_document) window_flags |= ImGuiWindowFlags_UnsavedDocument; + if (no_close) p_open = NULL; // Don't pass our bool* to Begin + + // We specify a default position/size in case there's no data in the .ini file. + // We only do it to make the demo applications a little more welcoming, but typically this isn't required. + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui::SetNextWindowPos(ImVec2(main_viewport->WorkPos.x + 650, main_viewport->WorkPos.y + 20), ImGuiCond_FirstUseEver); + ImGui::SetNextWindowSize(ImVec2(550, 680), ImGuiCond_FirstUseEver); + + // Main body of the Demo window starts here. + if (!ImGui::Begin("Dear ImGui Demo", p_open, window_flags)) + { + // Early out if the window is collapsed, as an optimization. + ImGui::End(); + return; + } + + // Most "big" widgets share a common width settings by default. See 'Demo->Layout->Widgets Width' for details. + // e.g. Use 2/3 of the space for widgets and 1/3 for labels (right align) + //ImGui::PushItemWidth(-ImGui::GetWindowWidth() * 0.35f); + // e.g. Leave a fixed amount of width for labels (by passing a negative value), the rest goes to widgets. + ImGui::PushItemWidth(ImGui::GetFontSize() * -12); + + // Menu Bar + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Menu")) + { + IMGUI_DEMO_MARKER("Menu/File"); + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Examples")) + { + IMGUI_DEMO_MARKER("Menu/Examples"); + ImGui::MenuItem("Main menu bar", NULL, &show_app_main_menu_bar); + ImGui::MenuItem("Console", NULL, &show_app_console); + ImGui::MenuItem("Log", NULL, &show_app_log); + ImGui::MenuItem("Simple layout", NULL, &show_app_layout); + ImGui::MenuItem("Property editor", NULL, &show_app_property_editor); + ImGui::MenuItem("Long text display", NULL, &show_app_long_text); + ImGui::MenuItem("Auto-resizing window", NULL, &show_app_auto_resize); + ImGui::MenuItem("Constrained-resizing window", NULL, &show_app_constrained_resize); + ImGui::MenuItem("Simple overlay", NULL, &show_app_simple_overlay); + ImGui::MenuItem("Fullscreen window", NULL, &show_app_fullscreen); + ImGui::MenuItem("Manipulating window titles", NULL, &show_app_window_titles); + ImGui::MenuItem("Custom rendering", NULL, &show_app_custom_rendering); + ImGui::MenuItem("Documents", NULL, &show_app_documents); + ImGui::EndMenu(); + } + //if (ImGui::MenuItem("MenuItem")) {} // You can also use MenuItem() inside a menu bar! + if (ImGui::BeginMenu("Tools")) + { + IMGUI_DEMO_MARKER("Menu/Tools"); +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + const bool has_debug_tools = true; +#else + const bool has_debug_tools = false; +#endif + ImGui::MenuItem("Metrics/Debugger", NULL, &show_app_metrics, has_debug_tools); + ImGui::MenuItem("Debug Log", NULL, &show_app_debug_log, has_debug_tools); + ImGui::MenuItem("Stack Tool", NULL, &show_app_stack_tool, has_debug_tools); + ImGui::MenuItem("Style Editor", NULL, &show_app_style_editor); + ImGui::MenuItem("About Dear ImGui", NULL, &show_app_about); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + ImGui::Text("dear imgui says hello! (%s) (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); + ImGui::Spacing(); + + IMGUI_DEMO_MARKER("Help"); + if (ImGui::CollapsingHeader("Help")) + { + ImGui::Text("ABOUT THIS DEMO:"); + ImGui::BulletText("Sections below are demonstrating many aspects of the library."); + ImGui::BulletText("The \"Examples\" menu above leads to more demo contents."); + ImGui::BulletText("The \"Tools\" menu above gives access to: About Box, Style Editor,\n" + "and Metrics/Debugger (general purpose Dear ImGui debugging tool)."); + ImGui::Separator(); + + ImGui::Text("PROGRAMMER GUIDE:"); + ImGui::BulletText("See the ShowDemoWindow() code in imgui_demo.cpp. <- you are here!"); + ImGui::BulletText("See comments in imgui.cpp."); + ImGui::BulletText("See example applications in the examples/ folder."); + ImGui::BulletText("Read the FAQ at http://www.dearimgui.org/faq/"); + ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableKeyboard' for keyboard controls."); + ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableGamepad' for gamepad controls."); + ImGui::Separator(); + + ImGui::Text("USER GUIDE:"); + ImGui::ShowUserGuide(); + } + + IMGUI_DEMO_MARKER("Configuration"); + if (ImGui::CollapsingHeader("Configuration")) + { + ImGuiIO& io = ImGui::GetIO(); + + if (ImGui::TreeNode("Configuration##2")) + { + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableKeyboard", &io.ConfigFlags, ImGuiConfigFlags_NavEnableKeyboard); + ImGui::SameLine(); HelpMarker("Enable keyboard controls."); + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableGamepad", &io.ConfigFlags, ImGuiConfigFlags_NavEnableGamepad); + ImGui::SameLine(); HelpMarker("Enable gamepad controls. Require backend to set io.BackendFlags |= ImGuiBackendFlags_HasGamepad.\n\nRead instructions in imgui.cpp for details."); + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableSetMousePos", &io.ConfigFlags, ImGuiConfigFlags_NavEnableSetMousePos); + ImGui::SameLine(); HelpMarker("Instruct navigation to move the mouse cursor. See comment for ImGuiConfigFlags_NavEnableSetMousePos."); + ImGui::CheckboxFlags("io.ConfigFlags: NoMouse", &io.ConfigFlags, ImGuiConfigFlags_NoMouse); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) + { + // The "NoMouse" option can get us stuck with a disabled mouse! Let's provide an alternative way to fix it: + if (fmodf((float)ImGui::GetTime(), 0.40f) < 0.20f) + { + ImGui::SameLine(); + ImGui::Text("<>"); + } + if (ImGui::IsKeyPressed(ImGuiKey_Space)) + io.ConfigFlags &= ~ImGuiConfigFlags_NoMouse; + } + ImGui::CheckboxFlags("io.ConfigFlags: NoMouseCursorChange", &io.ConfigFlags, ImGuiConfigFlags_NoMouseCursorChange); + ImGui::SameLine(); HelpMarker("Instruct backend to not alter mouse cursor shape and visibility."); + ImGui::Checkbox("io.ConfigInputTrickleEventQueue", &io.ConfigInputTrickleEventQueue); + ImGui::SameLine(); HelpMarker("Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates."); + ImGui::Checkbox("io.ConfigInputTextCursorBlink", &io.ConfigInputTextCursorBlink); + ImGui::SameLine(); HelpMarker("Enable blinking cursor (optional as some users consider it to be distracting)."); + ImGui::Checkbox("io.ConfigInputTextEnterKeepActive", &io.ConfigInputTextEnterKeepActive); + ImGui::SameLine(); HelpMarker("Pressing Enter will keep item active and select contents (single-line only)."); + ImGui::Checkbox("io.ConfigDragClickToInputText", &io.ConfigDragClickToInputText); + ImGui::SameLine(); HelpMarker("Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving)."); + ImGui::Checkbox("io.ConfigWindowsResizeFromEdges", &io.ConfigWindowsResizeFromEdges); + ImGui::SameLine(); HelpMarker("Enable resizing of windows from their edges and from the lower-left corner.\nThis requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback."); + ImGui::Checkbox("io.ConfigWindowsMoveFromTitleBarOnly", &io.ConfigWindowsMoveFromTitleBarOnly); + ImGui::Checkbox("io.MouseDrawCursor", &io.MouseDrawCursor); + ImGui::SameLine(); HelpMarker("Instruct Dear ImGui to render a mouse cursor itself. Note that a mouse cursor rendered via your application GPU rendering path will feel more laggy than hardware cursor, but will be more in sync with your other visuals.\n\nSome desktop applications may use both kinds of cursors (e.g. enable software cursor only when resizing/dragging something)."); + ImGui::Text("Also see Style->Rendering for rendering options."); + ImGui::TreePop(); + ImGui::Separator(); + } + + IMGUI_DEMO_MARKER("Configuration/Backend Flags"); + if (ImGui::TreeNode("Backend Flags")) + { + HelpMarker( + "Those flags are set by the backends (imgui_impl_xxx files) to specify their capabilities.\n" + "Here we expose them as read-only fields to avoid breaking interactions with your backend."); + + // Make a local copy to avoid modifying actual backend flags. + // FIXME: We don't use BeginDisabled() to keep label bright, maybe we need a BeginReadonly() equivalent.. + ImGuiBackendFlags backend_flags = io.BackendFlags; + ImGui::CheckboxFlags("io.BackendFlags: HasGamepad", &backend_flags, ImGuiBackendFlags_HasGamepad); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &backend_flags, ImGuiBackendFlags_HasMouseCursors); + ImGui::CheckboxFlags("io.BackendFlags: HasSetMousePos", &backend_flags, ImGuiBackendFlags_HasSetMousePos); + ImGui::CheckboxFlags("io.BackendFlags: RendererHasVtxOffset", &backend_flags, ImGuiBackendFlags_RendererHasVtxOffset); + ImGui::TreePop(); + ImGui::Separator(); + } + + IMGUI_DEMO_MARKER("Configuration/Style"); + if (ImGui::TreeNode("Style")) + { + HelpMarker("The same contents can be accessed in 'Tools->Style Editor' or by calling the ShowStyleEditor() function."); + ImGui::ShowStyleEditor(); + ImGui::TreePop(); + ImGui::Separator(); + } + + IMGUI_DEMO_MARKER("Configuration/Capture, Logging"); + if (ImGui::TreeNode("Capture/Logging")) + { + HelpMarker( + "The logging API redirects all text output so you can easily capture the content of " + "a window or a block. Tree nodes can be automatically expanded.\n" + "Try opening any of the contents below in this window and then click one of the \"Log To\" button."); + ImGui::LogButtons(); + + HelpMarker("You can also call ImGui::LogText() to output directly to the log without a visual output."); + if (ImGui::Button("Copy \"Hello, world!\" to clipboard")) + { + ImGui::LogToClipboard(); + ImGui::LogText("Hello, world!"); + ImGui::LogFinish(); + } + ImGui::TreePop(); + } + } + + IMGUI_DEMO_MARKER("Window options"); + if (ImGui::CollapsingHeader("Window options")) + { + if (ImGui::BeginTable("split", 3)) + { + ImGui::TableNextColumn(); ImGui::Checkbox("No titlebar", &no_titlebar); + ImGui::TableNextColumn(); ImGui::Checkbox("No scrollbar", &no_scrollbar); + ImGui::TableNextColumn(); ImGui::Checkbox("No menu", &no_menu); + ImGui::TableNextColumn(); ImGui::Checkbox("No move", &no_move); + ImGui::TableNextColumn(); ImGui::Checkbox("No resize", &no_resize); + ImGui::TableNextColumn(); ImGui::Checkbox("No collapse", &no_collapse); + ImGui::TableNextColumn(); ImGui::Checkbox("No close", &no_close); + ImGui::TableNextColumn(); ImGui::Checkbox("No nav", &no_nav); + ImGui::TableNextColumn(); ImGui::Checkbox("No background", &no_background); + ImGui::TableNextColumn(); ImGui::Checkbox("No bring to front", &no_bring_to_front); + ImGui::TableNextColumn(); ImGui::Checkbox("Unsaved document", &unsaved_document); + ImGui::EndTable(); + } + } + + // All demo contents + ShowDemoWindowWidgets(); + ShowDemoWindowLayout(); + ShowDemoWindowPopups(); + ShowDemoWindowTables(); + ShowDemoWindowInputs(); + + // End of ShowDemoWindow() + ImGui::PopItemWidth(); + ImGui::End(); +} + +static void ShowDemoWindowWidgets() +{ + IMGUI_DEMO_MARKER("Widgets"); + if (!ImGui::CollapsingHeader("Widgets")) + return; + + static bool disable_all = false; // The Checkbox for that is inside the "Disabled" section at the bottom + if (disable_all) + ImGui::BeginDisabled(); + + IMGUI_DEMO_MARKER("Widgets/Basic"); + if (ImGui::TreeNode("Basic")) + { + IMGUI_DEMO_MARKER("Widgets/Basic/Button"); + static int clicked = 0; + if (ImGui::Button("Button")) + clicked++; + if (clicked & 1) + { + ImGui::SameLine(); + ImGui::Text("Thanks for clicking me!"); + } + + IMGUI_DEMO_MARKER("Widgets/Basic/Checkbox"); + static bool check = true; + ImGui::Checkbox("checkbox", &check); + + IMGUI_DEMO_MARKER("Widgets/Basic/RadioButton"); + static int e = 0; + ImGui::RadioButton("radio a", &e, 0); ImGui::SameLine(); + ImGui::RadioButton("radio b", &e, 1); ImGui::SameLine(); + ImGui::RadioButton("radio c", &e, 2); + + // Color buttons, demonstrate using PushID() to add unique identifier in the ID stack, and changing style. + IMGUI_DEMO_MARKER("Widgets/Basic/Buttons (Colored)"); + for (int i = 0; i < 7; i++) + { + if (i > 0) + ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.6f)); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.7f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.8f, 0.8f)); + ImGui::Button("Click"); + ImGui::PopStyleColor(3); + ImGui::PopID(); + } + + // Use AlignTextToFramePadding() to align text baseline to the baseline of framed widgets elements + // (otherwise a Text+SameLine+Button sequence will have the text a little too high by default!) + // See 'Demo->Layout->Text Baseline Alignment' for details. + ImGui::AlignTextToFramePadding(); + ImGui::Text("Hold to repeat:"); + ImGui::SameLine(); + + // Arrow buttons with Repeater + IMGUI_DEMO_MARKER("Widgets/Basic/Buttons (Repeating)"); + static int counter = 0; + float spacing = ImGui::GetStyle().ItemInnerSpacing.x; + ImGui::PushButtonRepeat(true); + if (ImGui::ArrowButton("##left", ImGuiDir_Left)) { counter--; } + ImGui::SameLine(0.0f, spacing); + if (ImGui::ArrowButton("##right", ImGuiDir_Right)) { counter++; } + ImGui::PopButtonRepeat(); + ImGui::SameLine(); + ImGui::Text("%d", counter); + + ImGui::Separator(); + ImGui::LabelText("label", "Value"); + + { + // Using the _simplified_ one-liner Combo() api here + // See "Combo" section for examples of how to use the more flexible BeginCombo()/EndCombo() api. + IMGUI_DEMO_MARKER("Widgets/Basic/Combo"); + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIIIIII", "JJJJ", "KKKKKKK" }; + static int item_current = 0; + ImGui::Combo("combo", &item_current, items, IM_ARRAYSIZE(items)); + ImGui::SameLine(); HelpMarker( + "Using the simplified one-liner Combo API here.\nRefer to the \"Combo\" section below for an explanation of how to use the more flexible and general BeginCombo/EndCombo API."); + } + + { + // To wire InputText() with std::string or any other custom string type, + // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. + IMGUI_DEMO_MARKER("Widgets/Basic/InputText"); + static char str0[128] = "Hello, world!"; + ImGui::InputText("input text", str0, IM_ARRAYSIZE(str0)); + ImGui::SameLine(); HelpMarker( + "USER:\n" + "Hold SHIFT or use mouse to select text.\n" + "CTRL+Left/Right to word jump.\n" + "CTRL+A or Double-Click to select all.\n" + "CTRL+X,CTRL+C,CTRL+V clipboard.\n" + "CTRL+Z,CTRL+Y undo/redo.\n" + "ESCAPE to revert.\n\n" + "PROGRAMMER:\n" + "You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputText() " + "to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example (this is not demonstrated " + "in imgui_demo.cpp)."); + + static char str1[128] = ""; + ImGui::InputTextWithHint("input text (w/ hint)", "enter text here", str1, IM_ARRAYSIZE(str1)); + + IMGUI_DEMO_MARKER("Widgets/Basic/InputInt, InputFloat"); + static int i0 = 123; + ImGui::InputInt("input int", &i0); + + static float f0 = 0.001f; + ImGui::InputFloat("input float", &f0, 0.01f, 1.0f, "%.3f"); + + static double d0 = 999999.00000001; + ImGui::InputDouble("input double", &d0, 0.01f, 1.0f, "%.8f"); + + static float f1 = 1.e10f; + ImGui::InputFloat("input scientific", &f1, 0.0f, 0.0f, "%e"); + ImGui::SameLine(); HelpMarker( + "You can input value using the scientific notation,\n" + " e.g. \"1e+8\" becomes \"100000000\"."); + + static float vec4a[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; + ImGui::InputFloat3("input float3", vec4a); + } + + { + IMGUI_DEMO_MARKER("Widgets/Basic/DragInt, DragFloat"); + static int i1 = 50, i2 = 42; + ImGui::DragInt("drag int", &i1, 1); + ImGui::SameLine(); HelpMarker( + "Click and drag to edit value.\n" + "Hold SHIFT/ALT for faster/slower edit.\n" + "Double-click or CTRL+click to input value."); + + ImGui::DragInt("drag int 0..100", &i2, 1, 0, 100, "%d%%", ImGuiSliderFlags_AlwaysClamp); + + static float f1 = 1.00f, f2 = 0.0067f; + ImGui::DragFloat("drag float", &f1, 0.005f); + ImGui::DragFloat("drag small float", &f2, 0.0001f, 0.0f, 0.0f, "%.06f ns"); + } + + { + IMGUI_DEMO_MARKER("Widgets/Basic/SliderInt, SliderFloat"); + static int i1 = 0; + ImGui::SliderInt("slider int", &i1, -1, 3); + ImGui::SameLine(); HelpMarker("CTRL+click to input value."); + + static float f1 = 0.123f, f2 = 0.0f; + ImGui::SliderFloat("slider float", &f1, 0.0f, 1.0f, "ratio = %.3f"); + ImGui::SliderFloat("slider float (log)", &f2, -10.0f, 10.0f, "%.4f", ImGuiSliderFlags_Logarithmic); + + IMGUI_DEMO_MARKER("Widgets/Basic/SliderAngle"); + static float angle = 0.0f; + ImGui::SliderAngle("slider angle", &angle); + + // Using the format string to display a name instead of an integer. + // Here we completely omit '%d' from the format string, so it'll only display a name. + // This technique can also be used with DragInt(). + IMGUI_DEMO_MARKER("Widgets/Basic/Slider (enum)"); + enum Element { Element_Fire, Element_Earth, Element_Air, Element_Water, Element_COUNT }; + static int elem = Element_Fire; + const char* elems_names[Element_COUNT] = { "Fire", "Earth", "Air", "Water" }; + const char* elem_name = (elem >= 0 && elem < Element_COUNT) ? elems_names[elem] : "Unknown"; + ImGui::SliderInt("slider enum", &elem, 0, Element_COUNT - 1, elem_name); + ImGui::SameLine(); HelpMarker("Using the format string parameter to display a name instead of the underlying integer."); + } + + { + IMGUI_DEMO_MARKER("Widgets/Basic/ColorEdit3, ColorEdit4"); + static float col1[3] = { 1.0f, 0.0f, 0.2f }; + static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::ColorEdit3("color 1", col1); + ImGui::SameLine(); HelpMarker( + "Click on the color square to open a color picker.\n" + "Click and hold to use drag and drop.\n" + "Right-click on the color square to show options.\n" + "CTRL+click on individual component to input value.\n"); + + ImGui::ColorEdit4("color 2", col2); + } + + { + // Using the _simplified_ one-liner ListBox() api here + // See "List boxes" section for examples of how to use the more flexible BeginListBox()/EndListBox() api. + IMGUI_DEMO_MARKER("Widgets/Basic/ListBox"); + const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi", "Mango", "Orange", "Pineapple", "Strawberry", "Watermelon" }; + static int item_current = 1; + ImGui::ListBox("listbox", &item_current, items, IM_ARRAYSIZE(items), 4); + ImGui::SameLine(); HelpMarker( + "Using the simplified one-liner ListBox API here.\nRefer to the \"List boxes\" section below for an explanation of how to use the more flexible and general BeginListBox/EndListBox API."); + } + + { + // Tooltips + IMGUI_DEMO_MARKER("Widgets/Basic/Tooltips"); + ImGui::AlignTextToFramePadding(); + ImGui::Text("Tooltips:"); + + ImGui::SameLine(); + ImGui::Button("Button"); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("I am a tooltip"); + + ImGui::SameLine(); + ImGui::Button("Fancy"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::Text("I am a fancy tooltip"); + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); + ImGui::Text("Sin(time) = %f", sinf((float)ImGui::GetTime())); + ImGui::EndTooltip(); + } + + ImGui::SameLine(); + ImGui::Button("Delayed"); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal)) // Delay best used on items that highlight on hover, so this not a great example! + ImGui::SetTooltip("I am a tooltip with a delay."); + + ImGui::SameLine(); + HelpMarker( + "Tooltip are created by using the IsItemHovered() function over any kind of item."); + + } + + ImGui::TreePop(); + } + + // Testing ImGuiOnceUponAFrame helper. + //static ImGuiOnceUponAFrame once; + //for (int i = 0; i < 5; i++) + // if (once) + // ImGui::Text("This will be displayed only once."); + + IMGUI_DEMO_MARKER("Widgets/Trees"); + if (ImGui::TreeNode("Trees")) + { + IMGUI_DEMO_MARKER("Widgets/Trees/Basic trees"); + if (ImGui::TreeNode("Basic trees")) + { + for (int i = 0; i < 5; i++) + { + // Use SetNextItemOpen() so set the default state of a node to be open. We could + // also use TreeNodeEx() with the ImGuiTreeNodeFlags_DefaultOpen flag to achieve the same thing! + if (i == 0) + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + + if (ImGui::TreeNode((void*)(intptr_t)i, "Child %d", i)) + { + ImGui::Text("blah blah"); + ImGui::SameLine(); + if (ImGui::SmallButton("button")) {} + ImGui::TreePop(); + } + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Trees/Advanced, with Selectable nodes"); + if (ImGui::TreeNode("Advanced, with Selectable nodes")) + { + HelpMarker( + "This is a more typical looking tree with selectable nodes.\n" + "Click to select, CTRL+Click to toggle, click on arrows or double-click to open."); + static ImGuiTreeNodeFlags base_flags = ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_SpanAvailWidth; + static bool align_label_with_current_x_position = false; + static bool test_drag_and_drop = false; + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnArrow", &base_flags, ImGuiTreeNodeFlags_OpenOnArrow); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnDoubleClick", &base_flags, ImGuiTreeNodeFlags_OpenOnDoubleClick); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanAvailWidth", &base_flags, ImGuiTreeNodeFlags_SpanAvailWidth); ImGui::SameLine(); HelpMarker("Extend hit area to all available width instead of allowing more items to be laid out after the node."); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanFullWidth", &base_flags, ImGuiTreeNodeFlags_SpanFullWidth); + ImGui::Checkbox("Align label with current X position", &align_label_with_current_x_position); + ImGui::Checkbox("Test tree node as drag source", &test_drag_and_drop); + ImGui::Text("Hello!"); + if (align_label_with_current_x_position) + ImGui::Unindent(ImGui::GetTreeNodeToLabelSpacing()); + + // 'selection_mask' is dumb representation of what may be user-side selection state. + // You may retain selection state inside or outside your objects in whatever format you see fit. + // 'node_clicked' is temporary storage of what node we have clicked to process selection at the end + /// of the loop. May be a pointer to your own node type, etc. + static int selection_mask = (1 << 2); + int node_clicked = -1; + for (int i = 0; i < 6; i++) + { + // Disable the default "open on single-click behavior" + set Selected flag according to our selection. + // To alter selection we use IsItemClicked() && !IsItemToggledOpen(), so clicking on an arrow doesn't alter selection. + ImGuiTreeNodeFlags node_flags = base_flags; + const bool is_selected = (selection_mask & (1 << i)) != 0; + if (is_selected) + node_flags |= ImGuiTreeNodeFlags_Selected; + if (i < 3) + { + // Items 0..2 are Tree Node + bool node_open = ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Node %d", i); + if (ImGui::IsItemClicked() && !ImGui::IsItemToggledOpen()) + node_clicked = i; + if (test_drag_and_drop && ImGui::BeginDragDropSource()) + { + ImGui::SetDragDropPayload("_TREENODE", NULL, 0); + ImGui::Text("This is a drag and drop source"); + ImGui::EndDragDropSource(); + } + if (node_open) + { + ImGui::BulletText("Blah blah\nBlah Blah"); + ImGui::TreePop(); + } + } + else + { + // Items 3..5 are Tree Leaves + // The only reason we use TreeNode at all is to allow selection of the leaf. Otherwise we can + // use BulletText() or advance the cursor by GetTreeNodeToLabelSpacing() and call Text(). + node_flags |= ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen; // ImGuiTreeNodeFlags_Bullet + ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Leaf %d", i); + if (ImGui::IsItemClicked() && !ImGui::IsItemToggledOpen()) + node_clicked = i; + if (test_drag_and_drop && ImGui::BeginDragDropSource()) + { + ImGui::SetDragDropPayload("_TREENODE", NULL, 0); + ImGui::Text("This is a drag and drop source"); + ImGui::EndDragDropSource(); + } + } + } + if (node_clicked != -1) + { + // Update selection state + // (process outside of tree loop to avoid visual inconsistencies during the clicking frame) + if (ImGui::GetIO().KeyCtrl) + selection_mask ^= (1 << node_clicked); // CTRL+click to toggle + else //if (!(selection_mask & (1 << node_clicked))) // Depending on selection behavior you want, may want to preserve selection when clicking on item that is part of the selection + selection_mask = (1 << node_clicked); // Click to single-select + } + if (align_label_with_current_x_position) + ImGui::Indent(ImGui::GetTreeNodeToLabelSpacing()); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Collapsing Headers"); + if (ImGui::TreeNode("Collapsing Headers")) + { + static bool closable_group = true; + ImGui::Checkbox("Show 2nd header", &closable_group); + if (ImGui::CollapsingHeader("Header", ImGuiTreeNodeFlags_None)) + { + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + for (int i = 0; i < 5; i++) + ImGui::Text("Some content %d", i); + } + if (ImGui::CollapsingHeader("Header with a close button", &closable_group)) + { + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + for (int i = 0; i < 5; i++) + ImGui::Text("More content %d", i); + } + /* + if (ImGui::CollapsingHeader("Header with a bullet", ImGuiTreeNodeFlags_Bullet)) + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + */ + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Bullets"); + if (ImGui::TreeNode("Bullets")) + { + ImGui::BulletText("Bullet point 1"); + ImGui::BulletText("Bullet point 2\nOn multiple lines"); + if (ImGui::TreeNode("Tree node")) + { + ImGui::BulletText("Another bullet point"); + ImGui::TreePop(); + } + ImGui::Bullet(); ImGui::Text("Bullet point 3 (two calls)"); + ImGui::Bullet(); ImGui::SmallButton("Button"); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text"); + if (ImGui::TreeNode("Text")) + { + IMGUI_DEMO_MARKER("Widgets/Text/Colored Text"); + if (ImGui::TreeNode("Colorful Text")) + { + // Using shortcut. You can use PushStyleColor()/PopStyleColor() for more flexibility. + ImGui::TextColored(ImVec4(1.0f, 0.0f, 1.0f, 1.0f), "Pink"); + ImGui::TextColored(ImVec4(1.0f, 1.0f, 0.0f, 1.0f), "Yellow"); + ImGui::TextDisabled("Disabled"); + ImGui::SameLine(); HelpMarker("The TextDisabled color is stored in ImGuiStyle."); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text/Word Wrapping"); + if (ImGui::TreeNode("Word Wrapping")) + { + // Using shortcut. You can use PushTextWrapPos()/PopTextWrapPos() for more flexibility. + ImGui::TextWrapped( + "This text should automatically wrap on the edge of the window. The current implementation " + "for text wrapping follows simple rules suitable for English and possibly other languages."); + ImGui::Spacing(); + + static float wrap_width = 200.0f; + ImGui::SliderFloat("Wrap width", &wrap_width, -20, 600, "%.0f"); + + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + for (int n = 0; n < 2; n++) + { + ImGui::Text("Test paragraph %d:", n); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImVec2 marker_min = ImVec2(pos.x + wrap_width, pos.y); + ImVec2 marker_max = ImVec2(pos.x + wrap_width + 10, pos.y + ImGui::GetTextLineHeight()); + ImGui::PushTextWrapPos(ImGui::GetCursorPos().x + wrap_width); + if (n == 0) + ImGui::Text("The lazy dog is a good dog. This paragraph should fit within %.0f pixels. Testing a 1 character word. The quick brown fox jumps over the lazy dog.", wrap_width); + else + ImGui::Text("aaaaaaaa bbbbbbbb, c cccccccc,dddddddd. d eeeeeeee ffffffff. gggggggg!hhhhhhhh"); + + // Draw actual text bounding box, following by marker of our expected limit (should not overlap!) + draw_list->AddRect(ImGui::GetItemRectMin(), ImGui::GetItemRectMax(), IM_COL32(255, 255, 0, 255)); + draw_list->AddRectFilled(marker_min, marker_max, IM_COL32(255, 0, 255, 255)); + ImGui::PopTextWrapPos(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text/UTF-8 Text"); + if (ImGui::TreeNode("UTF-8 Text")) + { + // UTF-8 test with Japanese characters + // (Needs a suitable font? Try "Google Noto" or "Arial Unicode". See docs/FONTS.md for details.) + // - From C++11 you can use the u8"my text" syntax to encode literal strings as UTF-8 + // - For earlier compiler, you may be able to encode your sources as UTF-8 (e.g. in Visual Studio, you + // can save your source files as 'UTF-8 without signature'). + // - FOR THIS DEMO FILE ONLY, BECAUSE WE WANT TO SUPPORT OLD COMPILERS, WE ARE *NOT* INCLUDING RAW UTF-8 + // CHARACTERS IN THIS SOURCE FILE. Instead we are encoding a few strings with hexadecimal constants. + // Don't do this in your application! Please use u8"text in any language" in your application! + // Note that characters values are preserved even by InputText() if the font cannot be displayed, + // so you can safely copy & paste garbled characters into another application. + ImGui::TextWrapped( + "CJK text will only appear if the font was loaded with the appropriate CJK character ranges. " + "Call io.Fonts->AddFontFromFileTTF() manually to load extra character ranges. " + "Read docs/FONTS.md for details."); + ImGui::Text("Hiragana: \xe3\x81\x8b\xe3\x81\x8d\xe3\x81\x8f\xe3\x81\x91\xe3\x81\x93 (kakikukeko)"); // Normally we would use u8"blah blah" with the proper characters directly in the string. + ImGui::Text("Kanjis: \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e (nihongo)"); + static char buf[32] = "\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e"; + //static char buf[32] = u8"NIHONGO"; // <- this is how you would write it with C++11, using real kanjis + ImGui::InputText("UTF-8 input", buf, IM_ARRAYSIZE(buf)); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Images"); + if (ImGui::TreeNode("Images")) + { + ImGuiIO& io = ImGui::GetIO(); + ImGui::TextWrapped( + "Below we are displaying the font texture (which is the only texture we have access to in this demo). " + "Use the 'ImTextureID' type as storage to pass pointers or identifier to your own texture data. " + "Hover the texture for a zoomed view!"); + + // Below we are displaying the font texture because it is the only texture we have access to inside the demo! + // Remember that ImTextureID is just storage for whatever you want it to be. It is essentially a value that + // will be passed to the rendering backend via the ImDrawCmd structure. + // If you use one of the default imgui_impl_XXXX.cpp rendering backend, they all have comments at the top + // of their respective source file to specify what they expect to be stored in ImTextureID, for example: + // - The imgui_impl_dx11.cpp renderer expect a 'ID3D11ShaderResourceView*' pointer + // - The imgui_impl_opengl3.cpp renderer expect a GLuint OpenGL texture identifier, etc. + // More: + // - If you decided that ImTextureID = MyEngineTexture*, then you can pass your MyEngineTexture* pointers + // to ImGui::Image(), and gather width/height through your own functions, etc. + // - You can use ShowMetricsWindow() to inspect the draw data that are being passed to your renderer, + // it will help you debug issues if you are confused about it. + // - Consider using the lower-level ImDrawList::AddImage() API, via ImGui::GetWindowDrawList()->AddImage(). + // - Read https://github.com/ocornut/imgui/blob/master/docs/FAQ.md + // - Read https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + ImTextureID my_tex_id = io.Fonts->TexID; + float my_tex_w = (float)io.Fonts->TexWidth; + float my_tex_h = (float)io.Fonts->TexHeight; + { + ImGui::Text("%.0fx%.0f", my_tex_w, my_tex_h); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImVec2 uv_min = ImVec2(0.0f, 0.0f); // Top-left + ImVec2 uv_max = ImVec2(1.0f, 1.0f); // Lower-right + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); // 50% opaque white + ImGui::Image(my_tex_id, ImVec2(my_tex_w, my_tex_h), uv_min, uv_max, tint_col, border_col); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + float region_sz = 32.0f; + float region_x = io.MousePos.x - pos.x - region_sz * 0.5f; + float region_y = io.MousePos.y - pos.y - region_sz * 0.5f; + float zoom = 4.0f; + if (region_x < 0.0f) { region_x = 0.0f; } + else if (region_x > my_tex_w - region_sz) { region_x = my_tex_w - region_sz; } + if (region_y < 0.0f) { region_y = 0.0f; } + else if (region_y > my_tex_h - region_sz) { region_y = my_tex_h - region_sz; } + ImGui::Text("Min: (%.2f, %.2f)", region_x, region_y); + ImGui::Text("Max: (%.2f, %.2f)", region_x + region_sz, region_y + region_sz); + ImVec2 uv0 = ImVec2((region_x) / my_tex_w, (region_y) / my_tex_h); + ImVec2 uv1 = ImVec2((region_x + region_sz) / my_tex_w, (region_y + region_sz) / my_tex_h); + ImGui::Image(my_tex_id, ImVec2(region_sz * zoom, region_sz * zoom), uv0, uv1, tint_col, border_col); + ImGui::EndTooltip(); + } + } + + IMGUI_DEMO_MARKER("Widgets/Images/Textured buttons"); + ImGui::TextWrapped("And now some textured buttons.."); + static int pressed_count = 0; + for (int i = 0; i < 8; i++) + { + // UV coordinates are often (0.0f, 0.0f) and (1.0f, 1.0f) to display an entire textures. + // Here are trying to display only a 32x32 pixels area of the texture, hence the UV computation. + // Read about UV coordinates here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + ImGui::PushID(i); + if (i > 0) + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(i - 1.0f, i - 1.0f)); + ImVec2 size = ImVec2(32.0f, 32.0f); // Size of the image we want to make visible + ImVec2 uv0 = ImVec2(0.0f, 0.0f); // UV coordinates for lower-left + ImVec2 uv1 = ImVec2(32.0f / my_tex_w, 32.0f / my_tex_h); // UV coordinates for (32,32) in our texture + ImVec4 bg_col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); // Black background + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + if (ImGui::ImageButton("", my_tex_id, size, uv0, uv1, bg_col, tint_col)) + pressed_count += 1; + if (i > 0) + ImGui::PopStyleVar(); + ImGui::PopID(); + ImGui::SameLine(); + } + ImGui::NewLine(); + ImGui::Text("Pressed %d times.", pressed_count); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Combo"); + if (ImGui::TreeNode("Combo")) + { + // Combo Boxes are also called "Dropdown" in other systems + // Expose flags as checkbox for the demo + static ImGuiComboFlags flags = 0; + ImGui::CheckboxFlags("ImGuiComboFlags_PopupAlignLeft", &flags, ImGuiComboFlags_PopupAlignLeft); + ImGui::SameLine(); HelpMarker("Only makes a difference if the popup is larger than the combo"); + if (ImGui::CheckboxFlags("ImGuiComboFlags_NoArrowButton", &flags, ImGuiComboFlags_NoArrowButton)) + flags &= ~ImGuiComboFlags_NoPreview; // Clear the other flag, as we cannot combine both + if (ImGui::CheckboxFlags("ImGuiComboFlags_NoPreview", &flags, ImGuiComboFlags_NoPreview)) + flags &= ~ImGuiComboFlags_NoArrowButton; // Clear the other flag, as we cannot combine both + + // Using the generic BeginCombo() API, you have full control over how to display the combo contents. + // (your selection data could be an index, a pointer to the object, an id for the object, a flag intrusively + // stored in the object itself, etc.) + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "LLLLLLL", "MMMM", "OOOOOOO" }; + static int item_current_idx = 0; // Here we store our selection data as an index. + const char* combo_preview_value = items[item_current_idx]; // Pass in the preview value visible before opening the combo (it could be anything) + if (ImGui::BeginCombo("combo 1", combo_preview_value, flags)) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndCombo(); + } + + // Simplified one-liner Combo() API, using values packed in a single constant string + // This is a convenience for when the selection set is small and known at compile-time. + static int item_current_2 = 0; + ImGui::Combo("combo 2 (one-liner)", &item_current_2, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); + + // Simplified one-liner Combo() using an array of const char* + // This is not very useful (may obsolete): prefer using BeginCombo()/EndCombo() for full control. + static int item_current_3 = -1; // If the selection isn't within 0..count, Combo won't display a preview + ImGui::Combo("combo 3 (array)", &item_current_3, items, IM_ARRAYSIZE(items)); + + // Simplified one-liner Combo() using an accessor function + struct Funcs { static bool ItemGetter(void* data, int n, const char** out_str) { *out_str = ((const char**)data)[n]; return true; } }; + static int item_current_4 = 0; + ImGui::Combo("combo 4 (function)", &item_current_4, &Funcs::ItemGetter, items, IM_ARRAYSIZE(items)); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/List Boxes"); + if (ImGui::TreeNode("List boxes")) + { + // Using the generic BeginListBox() API, you have full control over how to display the combo contents. + // (your selection data could be an index, a pointer to the object, an id for the object, a flag intrusively + // stored in the object itself, etc.) + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "LLLLLLL", "MMMM", "OOOOOOO" }; + static int item_current_idx = 0; // Here we store our selection data as an index. + if (ImGui::BeginListBox("listbox 1")) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndListBox(); + } + + // Custom size: use all width, 5 items tall + ImGui::Text("Full-width:"); + if (ImGui::BeginListBox("##listbox 2", ImVec2(-FLT_MIN, 5 * ImGui::GetTextLineHeightWithSpacing()))) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndListBox(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Selectables"); + if (ImGui::TreeNode("Selectables")) + { + // Selectable() has 2 overloads: + // - The one taking "bool selected" as a read-only selection information. + // When Selectable() has been clicked it returns true and you can alter selection state accordingly. + // - The one taking "bool* p_selected" as a read-write selection information (convenient in some cases) + // The earlier is more flexible, as in real application your selection may be stored in many different ways + // and not necessarily inside a bool value (e.g. in flags within objects, as an external list, etc). + IMGUI_DEMO_MARKER("Widgets/Selectables/Basic"); + if (ImGui::TreeNode("Basic")) + { + static bool selection[5] = { false, true, false, false, false }; + ImGui::Selectable("1. I am selectable", &selection[0]); + ImGui::Selectable("2. I am selectable", &selection[1]); + ImGui::Text("(I am not selectable)"); + ImGui::Selectable("4. I am selectable", &selection[3]); + if (ImGui::Selectable("5. I am double clickable", selection[4], ImGuiSelectableFlags_AllowDoubleClick)) + if (ImGui::IsMouseDoubleClicked(0)) + selection[4] = !selection[4]; + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Single Selection"); + if (ImGui::TreeNode("Selection State: Single Selection")) + { + static int selected = -1; + for (int n = 0; n < 5; n++) + { + char buf[32]; + sprintf(buf, "Object %d", n); + if (ImGui::Selectable(buf, selected == n)) + selected = n; + } + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Multiple Selection"); + if (ImGui::TreeNode("Selection State: Multiple Selection")) + { + HelpMarker("Hold CTRL and click to select multiple items."); + static bool selection[5] = { false, false, false, false, false }; + for (int n = 0; n < 5; n++) + { + char buf[32]; + sprintf(buf, "Object %d", n); + if (ImGui::Selectable(buf, selection[n])) + { + if (!ImGui::GetIO().KeyCtrl) // Clear selection when CTRL is not held + memset(selection, 0, sizeof(selection)); + selection[n] ^= 1; + } + } + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Rendering more text into the same line"); + if (ImGui::TreeNode("Rendering more text into the same line")) + { + // Using the Selectable() override that takes "bool* p_selected" parameter, + // this function toggle your bool value automatically. + static bool selected[3] = { false, false, false }; + ImGui::Selectable("main.c", &selected[0]); ImGui::SameLine(300); ImGui::Text(" 2,345 bytes"); + ImGui::Selectable("Hello.cpp", &selected[1]); ImGui::SameLine(300); ImGui::Text("12,345 bytes"); + ImGui::Selectable("Hello.h", &selected[2]); ImGui::SameLine(300); ImGui::Text(" 2,345 bytes"); + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/In columns"); + if (ImGui::TreeNode("In columns")) + { + static bool selected[10] = {}; + + if (ImGui::BeginTable("split1", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_Borders)) + { + for (int i = 0; i < 10; i++) + { + char label[32]; + sprintf(label, "Item %d", i); + ImGui::TableNextColumn(); + ImGui::Selectable(label, &selected[i]); // FIXME-TABLE: Selection overlap + } + ImGui::EndTable(); + } + ImGui::Spacing(); + if (ImGui::BeginTable("split2", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_Borders)) + { + for (int i = 0; i < 10; i++) + { + char label[32]; + sprintf(label, "Item %d", i); + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Selectable(label, &selected[i], ImGuiSelectableFlags_SpanAllColumns); + ImGui::TableNextColumn(); + ImGui::Text("Some other contents"); + ImGui::TableNextColumn(); + ImGui::Text("123456"); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Grid"); + if (ImGui::TreeNode("Grid")) + { + static char selected[4][4] = { { 1, 0, 0, 0 }, { 0, 1, 0, 0 }, { 0, 0, 1, 0 }, { 0, 0, 0, 1 } }; + + // Add in a bit of silly fun... + const float time = (float)ImGui::GetTime(); + const bool winning_state = memchr(selected, 0, sizeof(selected)) == NULL; // If all cells are selected... + if (winning_state) + ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, ImVec2(0.5f + 0.5f * cosf(time * 2.0f), 0.5f + 0.5f * sinf(time * 3.0f))); + + for (int y = 0; y < 4; y++) + for (int x = 0; x < 4; x++) + { + if (x > 0) + ImGui::SameLine(); + ImGui::PushID(y * 4 + x); + if (ImGui::Selectable("Sailor", selected[y][x] != 0, 0, ImVec2(50, 50))) + { + // Toggle clicked cell + toggle neighbors + selected[y][x] ^= 1; + if (x > 0) { selected[y][x - 1] ^= 1; } + if (x < 3) { selected[y][x + 1] ^= 1; } + if (y > 0) { selected[y - 1][x] ^= 1; } + if (y < 3) { selected[y + 1][x] ^= 1; } + } + ImGui::PopID(); + } + + if (winning_state) + ImGui::PopStyleVar(); + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Alignment"); + if (ImGui::TreeNode("Alignment")) + { + HelpMarker( + "By default, Selectables uses style.SelectableTextAlign but it can be overridden on a per-item " + "basis using PushStyleVar(). You'll probably want to always keep your default situation to " + "left-align otherwise it becomes difficult to layout multiple items on a same line"); + static bool selected[3 * 3] = { true, false, true, false, true, false, true, false, true }; + for (int y = 0; y < 3; y++) + { + for (int x = 0; x < 3; x++) + { + ImVec2 alignment = ImVec2((float)x / 2.0f, (float)y / 2.0f); + char name[32]; + sprintf(name, "(%.1f,%.1f)", alignment.x, alignment.y); + if (x > 0) ImGui::SameLine(); + ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, alignment); + ImGui::Selectable(name, &selected[3 * y + x], ImGuiSelectableFlags_None, ImVec2(80, 80)); + ImGui::PopStyleVar(); + } + } + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + // To wire InputText() with std::string or any other custom string type, + // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. + IMGUI_DEMO_MARKER("Widgets/Text Input"); + if (ImGui::TreeNode("Text Input")) + { + IMGUI_DEMO_MARKER("Widgets/Text Input/Multi-line Text Input"); + if (ImGui::TreeNode("Multi-line Text Input")) + { + // Note: we are using a fixed-sized buffer for simplicity here. See ImGuiInputTextFlags_CallbackResize + // and the code in misc/cpp/imgui_stdlib.h for how to setup InputText() for dynamically resizing strings. + static char text[1024 * 16] = + "/*\n" + " The Pentium F00F bug, shorthand for F0 0F C7 C8,\n" + " the hexadecimal encoding of one offending instruction,\n" + " more formally, the invalid operand with locked CMPXCHG8B\n" + " instruction bug, is a design flaw in the majority of\n" + " Intel Pentium, Pentium MMX, and Pentium OverDrive\n" + " processors (all in the P5 microarchitecture).\n" + "*/\n\n" + "label:\n" + "\tlock cmpxchg8b eax\n"; + + static ImGuiInputTextFlags flags = ImGuiInputTextFlags_AllowTabInput; + HelpMarker("You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputTextMultiline() to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example. (This is not demonstrated in imgui_demo.cpp because we don't want to include in here)"); + ImGui::CheckboxFlags("ImGuiInputTextFlags_ReadOnly", &flags, ImGuiInputTextFlags_ReadOnly); + ImGui::CheckboxFlags("ImGuiInputTextFlags_AllowTabInput", &flags, ImGuiInputTextFlags_AllowTabInput); + ImGui::CheckboxFlags("ImGuiInputTextFlags_CtrlEnterForNewLine", &flags, ImGuiInputTextFlags_CtrlEnterForNewLine); + ImGui::InputTextMultiline("##source", text, IM_ARRAYSIZE(text), ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16), flags); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Filtered Text Input"); + if (ImGui::TreeNode("Filtered Text Input")) + { + struct TextFilters + { + // Return 0 (pass) if the character is 'i' or 'm' or 'g' or 'u' or 'i' + static int FilterImGuiLetters(ImGuiInputTextCallbackData* data) + { + if (data->EventChar < 256 && strchr("imgui", (char)data->EventChar)) + return 0; + return 1; + } + }; + + static char buf1[64] = ""; ImGui::InputText("default", buf1, 64); + static char buf2[64] = ""; ImGui::InputText("decimal", buf2, 64, ImGuiInputTextFlags_CharsDecimal); + static char buf3[64] = ""; ImGui::InputText("hexadecimal", buf3, 64, ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase); + static char buf4[64] = ""; ImGui::InputText("uppercase", buf4, 64, ImGuiInputTextFlags_CharsUppercase); + static char buf5[64] = ""; ImGui::InputText("no blank", buf5, 64, ImGuiInputTextFlags_CharsNoBlank); + static char buf6[64] = ""; ImGui::InputText("\"imgui\" letters", buf6, 64, ImGuiInputTextFlags_CallbackCharFilter, TextFilters::FilterImGuiLetters); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Password input"); + if (ImGui::TreeNode("Password Input")) + { + static char password[64] = "password123"; + ImGui::InputText("password", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); + ImGui::SameLine(); HelpMarker("Display all characters as '*'.\nDisable clipboard cut and copy.\nDisable logging.\n"); + ImGui::InputTextWithHint("password (w/ hint)", "", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); + ImGui::InputText("password (clear)", password, IM_ARRAYSIZE(password)); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Completion, History, Edit Callbacks")) + { + struct Funcs + { + static int MyCallback(ImGuiInputTextCallbackData* data) + { + if (data->EventFlag == ImGuiInputTextFlags_CallbackCompletion) + { + data->InsertChars(data->CursorPos, ".."); + } + else if (data->EventFlag == ImGuiInputTextFlags_CallbackHistory) + { + if (data->EventKey == ImGuiKey_UpArrow) + { + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, "Pressed Up!"); + data->SelectAll(); + } + else if (data->EventKey == ImGuiKey_DownArrow) + { + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, "Pressed Down!"); + data->SelectAll(); + } + } + else if (data->EventFlag == ImGuiInputTextFlags_CallbackEdit) + { + // Toggle casing of first character + char c = data->Buf[0]; + if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) data->Buf[0] ^= 32; + data->BufDirty = true; + + // Increment a counter + int* p_int = (int*)data->UserData; + *p_int = *p_int + 1; + } + return 0; + } + }; + static char buf1[64]; + ImGui::InputText("Completion", buf1, 64, ImGuiInputTextFlags_CallbackCompletion, Funcs::MyCallback); + ImGui::SameLine(); HelpMarker("Here we append \"..\" each time Tab is pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); + + static char buf2[64]; + ImGui::InputText("History", buf2, 64, ImGuiInputTextFlags_CallbackHistory, Funcs::MyCallback); + ImGui::SameLine(); HelpMarker("Here we replace and select text each time Up/Down are pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); + + static char buf3[64]; + static int edit_count = 0; + ImGui::InputText("Edit", buf3, 64, ImGuiInputTextFlags_CallbackEdit, Funcs::MyCallback, (void*)&edit_count); + ImGui::SameLine(); HelpMarker("Here we toggle the casing of the first character on every edit + count edits."); + ImGui::SameLine(); ImGui::Text("(%d)", edit_count); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Resize Callback"); + if (ImGui::TreeNode("Resize Callback")) + { + // To wire InputText() with std::string or any other custom string type, + // you can use the ImGuiInputTextFlags_CallbackResize flag + create a custom ImGui::InputText() wrapper + // using your preferred type. See misc/cpp/imgui_stdlib.h for an implementation of this using std::string. + HelpMarker( + "Using ImGuiInputTextFlags_CallbackResize to wire your custom string type to InputText().\n\n" + "See misc/cpp/imgui_stdlib.h for an implementation of this for std::string."); + struct Funcs + { + static int MyResizeCallback(ImGuiInputTextCallbackData* data) + { + if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) + { + ImVector* my_str = (ImVector*)data->UserData; + IM_ASSERT(my_str->begin() == data->Buf); + my_str->resize(data->BufSize); // NB: On resizing calls, generally data->BufSize == data->BufTextLen + 1 + data->Buf = my_str->begin(); + } + return 0; + } + + // Note: Because ImGui:: is a namespace you would typically add your own function into the namespace. + // For example, you code may declare a function 'ImGui::InputText(const char* label, MyString* my_str)' + static bool MyInputTextMultiline(const char* label, ImVector* my_str, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0) + { + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + return ImGui::InputTextMultiline(label, my_str->begin(), (size_t)my_str->size(), size, flags | ImGuiInputTextFlags_CallbackResize, Funcs::MyResizeCallback, (void*)my_str); + } + }; + + // For this demo we are using ImVector as a string container. + // Note that because we need to store a terminating zero character, our size/capacity are 1 more + // than usually reported by a typical string class. + static ImVector my_str; + if (my_str.empty()) + my_str.push_back(0); + Funcs::MyInputTextMultiline("##MyStr", &my_str, ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16)); + ImGui::Text("Data: %p\nSize: %d\nCapacity: %d", (void*)my_str.begin(), my_str.size(), my_str.capacity()); + ImGui::TreePop(); + } + + ImGui::TreePop(); + } + + // Tabs + IMGUI_DEMO_MARKER("Widgets/Tabs"); + if (ImGui::TreeNode("Tabs")) + { + IMGUI_DEMO_MARKER("Widgets/Tabs/Basic"); + if (ImGui::TreeNode("Basic")) + { + ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_None; + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + if (ImGui::BeginTabItem("Avocado")) + { + ImGui::Text("This is the Avocado tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Broccoli")) + { + ImGui::Text("This is the Broccoli tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Cucumber")) + { + ImGui::Text("This is the Cucumber tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Tabs/Advanced & Close Button"); + if (ImGui::TreeNode("Advanced & Close Button")) + { + // Expose a couple of the available flags. In most cases you may just call BeginTabBar() with no flags (0). + static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable; + ImGui::CheckboxFlags("ImGuiTabBarFlags_Reorderable", &tab_bar_flags, ImGuiTabBarFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTabBarFlags_AutoSelectNewTabs", &tab_bar_flags, ImGuiTabBarFlags_AutoSelectNewTabs); + ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", &tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); + ImGui::CheckboxFlags("ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", &tab_bar_flags, ImGuiTabBarFlags_NoCloseWithMiddleMouseButton); + if ((tab_bar_flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) + tab_bar_flags |= ImGuiTabBarFlags_FittingPolicyDefault_; + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); + + // Tab Bar + const char* names[4] = { "Artichoke", "Beetroot", "Celery", "Daikon" }; + static bool opened[4] = { true, true, true, true }; // Persistent user state + for (int n = 0; n < IM_ARRAYSIZE(opened); n++) + { + if (n > 0) { ImGui::SameLine(); } + ImGui::Checkbox(names[n], &opened[n]); + } + + // Passing a bool* to BeginTabItem() is similar to passing one to Begin(): + // the underlying bool will be set to false when the tab is closed. + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + for (int n = 0; n < IM_ARRAYSIZE(opened); n++) + if (opened[n] && ImGui::BeginTabItem(names[n], &opened[n], ImGuiTabItemFlags_None)) + { + ImGui::Text("This is the %s tab!", names[n]); + if (n & 1) + ImGui::Text("I am an odd tab."); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Tabs/TabItemButton & Leading-Trailing flags"); + if (ImGui::TreeNode("TabItemButton & Leading/Trailing flags")) + { + static ImVector active_tabs; + static int next_tab_id = 0; + if (next_tab_id == 0) // Initialize with some default tabs + for (int i = 0; i < 3; i++) + active_tabs.push_back(next_tab_id++); + + // TabItemButton() and Leading/Trailing flags are distinct features which we will demo together. + // (It is possible to submit regular tabs with Leading/Trailing flags, or TabItemButton tabs without Leading/Trailing flags... + // but they tend to make more sense together) + static bool show_leading_button = true; + static bool show_trailing_button = true; + ImGui::Checkbox("Show Leading TabItemButton()", &show_leading_button); + ImGui::Checkbox("Show Trailing TabItemButton()", &show_trailing_button); + + // Expose some other flags which are useful to showcase how they interact with Leading/Trailing tabs + static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_AutoSelectNewTabs | ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_FittingPolicyResizeDown; + ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", &tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); + + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + // Demo a Leading TabItemButton(): click the "?" button to open a menu + if (show_leading_button) + if (ImGui::TabItemButton("?", ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_NoTooltip)) + ImGui::OpenPopup("MyHelpMenu"); + if (ImGui::BeginPopup("MyHelpMenu")) + { + ImGui::Selectable("Hello!"); + ImGui::EndPopup(); + } + + // Demo Trailing Tabs: click the "+" button to add a new tab (in your app you may want to use a font icon instead of the "+") + // Note that we submit it before the regular tabs, but because of the ImGuiTabItemFlags_Trailing flag it will always appear at the end. + if (show_trailing_button) + if (ImGui::TabItemButton("+", ImGuiTabItemFlags_Trailing | ImGuiTabItemFlags_NoTooltip)) + active_tabs.push_back(next_tab_id++); // Add new tab + + // Submit our regular tabs + for (int n = 0; n < active_tabs.Size; ) + { + bool open = true; + char name[16]; + snprintf(name, IM_ARRAYSIZE(name), "%04d", active_tabs[n]); + if (ImGui::BeginTabItem(name, &open, ImGuiTabItemFlags_None)) + { + ImGui::Text("This is the %s tab!", name); + ImGui::EndTabItem(); + } + + if (!open) + active_tabs.erase(active_tabs.Data + n); + else + n++; + } + + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + // Plot/Graph widgets are not very good. + // Consider using a third-party library such as ImPlot: https://github.com/epezent/implot + // (see others https://github.com/ocornut/imgui/wiki/Useful-Extensions) + IMGUI_DEMO_MARKER("Widgets/Plotting"); + if (ImGui::TreeNode("Plotting")) + { + static bool animate = true; + ImGui::Checkbox("Animate", &animate); + + // Plot as lines and plot as histogram + IMGUI_DEMO_MARKER("Widgets/Plotting/PlotLines, PlotHistogram"); + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Frame Times", arr, IM_ARRAYSIZE(arr)); + ImGui::PlotHistogram("Histogram", arr, IM_ARRAYSIZE(arr), 0, NULL, 0.0f, 1.0f, ImVec2(0, 80.0f)); + + // Fill an array of contiguous float values to plot + // Tip: If your float aren't contiguous but part of a structure, you can pass a pointer to your first float + // and the sizeof() of your structure in the "stride" parameter. + static float values[90] = {}; + static int values_offset = 0; + static double refresh_time = 0.0; + if (!animate || refresh_time == 0.0) + refresh_time = ImGui::GetTime(); + while (refresh_time < ImGui::GetTime()) // Create data at fixed 60 Hz rate for the demo + { + static float phase = 0.0f; + values[values_offset] = cosf(phase); + values_offset = (values_offset + 1) % IM_ARRAYSIZE(values); + phase += 0.10f * values_offset; + refresh_time += 1.0f / 60.0f; + } + + // Plots can display overlay texts + // (in this example, we will display an average value) + { + float average = 0.0f; + for (int n = 0; n < IM_ARRAYSIZE(values); n++) + average += values[n]; + average /= (float)IM_ARRAYSIZE(values); + char overlay[32]; + sprintf(overlay, "avg %f", average); + ImGui::PlotLines("Lines", values, IM_ARRAYSIZE(values), values_offset, overlay, -1.0f, 1.0f, ImVec2(0, 80.0f)); + } + + // Use functions to generate output + // FIXME: This is rather awkward because current plot API only pass in indices. + // We probably want an API passing floats and user provide sample rate/count. + struct Funcs + { + static float Sin(void*, int i) { return sinf(i * 0.1f); } + static float Saw(void*, int i) { return (i & 1) ? 1.0f : -1.0f; } + }; + static int func_type = 0, display_count = 70; + ImGui::Separator(); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::Combo("func", &func_type, "Sin\0Saw\0"); + ImGui::SameLine(); + ImGui::SliderInt("Sample count", &display_count, 1, 400); + float (*func)(void*, int) = (func_type == 0) ? Funcs::Sin : Funcs::Saw; + ImGui::PlotLines("Lines", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); + ImGui::PlotHistogram("Histogram", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); + ImGui::Separator(); + + // Animate a simple progress bar + IMGUI_DEMO_MARKER("Widgets/Plotting/ProgressBar"); + static float progress = 0.0f, progress_dir = 1.0f; + if (animate) + { + progress += progress_dir * 0.4f * ImGui::GetIO().DeltaTime; + if (progress >= +1.1f) { progress = +1.1f; progress_dir *= -1.0f; } + if (progress <= -0.1f) { progress = -0.1f; progress_dir *= -1.0f; } + } + + // Typically we would use ImVec2(-1.0f,0.0f) or ImVec2(-FLT_MIN,0.0f) to use all available width, + // or ImVec2(width,0.0f) for a specified width. ImVec2(0.0f,0.0f) uses ItemWidth. + ImGui::ProgressBar(progress, ImVec2(0.0f, 0.0f)); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::Text("Progress Bar"); + + float progress_saturated = IM_CLAMP(progress, 0.0f, 1.0f); + char buf[32]; + sprintf(buf, "%d/%d", (int)(progress_saturated * 1753), 1753); + ImGui::ProgressBar(progress, ImVec2(0.f, 0.f), buf); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Color"); + if (ImGui::TreeNode("Color/Picker Widgets")) + { + static ImVec4 color = ImVec4(114.0f / 255.0f, 144.0f / 255.0f, 154.0f / 255.0f, 200.0f / 255.0f); + + static bool alpha_preview = true; + static bool alpha_half_preview = false; + static bool drag_and_drop = true; + static bool options_menu = true; + static bool hdr = false; + ImGui::Checkbox("With Alpha Preview", &alpha_preview); + ImGui::Checkbox("With Half Alpha Preview", &alpha_half_preview); + ImGui::Checkbox("With Drag and Drop", &drag_and_drop); + ImGui::Checkbox("With Options Menu", &options_menu); ImGui::SameLine(); HelpMarker("Right-click on the individual color widget to show options."); + ImGui::Checkbox("With HDR", &hdr); ImGui::SameLine(); HelpMarker("Currently all this does is to lift the 0..1 limits on dragging widgets."); + ImGuiColorEditFlags misc_flags = (hdr ? ImGuiColorEditFlags_HDR : 0) | (drag_and_drop ? 0 : ImGuiColorEditFlags_NoDragDrop) | (alpha_half_preview ? ImGuiColorEditFlags_AlphaPreviewHalf : (alpha_preview ? ImGuiColorEditFlags_AlphaPreview : 0)) | (options_menu ? 0 : ImGuiColorEditFlags_NoOptions); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorEdit"); + ImGui::Text("Color widget:"); + ImGui::SameLine(); HelpMarker( + "Click on the color square to open a color picker.\n" + "CTRL+click on individual component to input value.\n"); + ImGui::ColorEdit3("MyColor##1", (float*)&color, misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorEdit (HSV, with Alpha)"); + ImGui::Text("Color widget HSV with Alpha:"); + ImGui::ColorEdit4("MyColor##2", (float*)&color, ImGuiColorEditFlags_DisplayHSV | misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorEdit (float display)"); + ImGui::Text("Color widget with Float Display:"); + ImGui::ColorEdit4("MyColor##2f", (float*)&color, ImGuiColorEditFlags_Float | misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorButton (with Picker)"); + ImGui::Text("Color button with Picker:"); + ImGui::SameLine(); HelpMarker( + "With the ImGuiColorEditFlags_NoInputs flag you can hide all the slider/text inputs.\n" + "With the ImGuiColorEditFlags_NoLabel flag you can pass a non-empty label which will only " + "be used for the tooltip and picker popup."); + ImGui::ColorEdit4("MyColor##3", (float*)&color, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoLabel | misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorButton (with custom Picker popup)"); + ImGui::Text("Color button with Custom Picker Popup:"); + + // Generate a default palette. The palette will persist and can be edited. + static bool saved_palette_init = true; + static ImVec4 saved_palette[32] = {}; + if (saved_palette_init) + { + for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) + { + ImGui::ColorConvertHSVtoRGB(n / 31.0f, 0.8f, 0.8f, + saved_palette[n].x, saved_palette[n].y, saved_palette[n].z); + saved_palette[n].w = 1.0f; // Alpha + } + saved_palette_init = false; + } + + static ImVec4 backup_color; + bool open_popup = ImGui::ColorButton("MyColor##3b", color, misc_flags); + ImGui::SameLine(0, ImGui::GetStyle().ItemInnerSpacing.x); + open_popup |= ImGui::Button("Palette"); + if (open_popup) + { + ImGui::OpenPopup("mypicker"); + backup_color = color; + } + if (ImGui::BeginPopup("mypicker")) + { + ImGui::Text("MY CUSTOM COLOR PICKER WITH AN AMAZING PALETTE!"); + ImGui::Separator(); + ImGui::ColorPicker4("##picker", (float*)&color, misc_flags | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoSmallPreview); + ImGui::SameLine(); + + ImGui::BeginGroup(); // Lock X position + ImGui::Text("Current"); + ImGui::ColorButton("##current", color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40)); + ImGui::Text("Previous"); + if (ImGui::ColorButton("##previous", backup_color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40))) + color = backup_color; + ImGui::Separator(); + ImGui::Text("Palette"); + for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) + { + ImGui::PushID(n); + if ((n % 8) != 0) + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemSpacing.y); + + ImGuiColorEditFlags palette_button_flags = ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_NoTooltip; + if (ImGui::ColorButton("##palette", saved_palette[n], palette_button_flags, ImVec2(20, 20))) + color = ImVec4(saved_palette[n].x, saved_palette[n].y, saved_palette[n].z, color.w); // Preserve alpha! + + // Allow user to drop colors into each palette entry. Note that ColorButton() is already a + // drag source by default, unless specifying the ImGuiColorEditFlags_NoDragDrop flag. + if (ImGui::BeginDragDropTarget()) + { + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) + memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 3); + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) + memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 4); + ImGui::EndDragDropTarget(); + } + + ImGui::PopID(); + } + ImGui::EndGroup(); + ImGui::EndPopup(); + } + + IMGUI_DEMO_MARKER("Widgets/Color/ColorButton (simple)"); + ImGui::Text("Color button only:"); + static bool no_border = false; + ImGui::Checkbox("ImGuiColorEditFlags_NoBorder", &no_border); + ImGui::ColorButton("MyColor##3c", *(ImVec4*)&color, misc_flags | (no_border ? ImGuiColorEditFlags_NoBorder : 0), ImVec2(80, 80)); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorPicker"); + ImGui::Text("Color picker:"); + static bool alpha = true; + static bool alpha_bar = true; + static bool side_preview = true; + static bool ref_color = false; + static ImVec4 ref_color_v(1.0f, 0.0f, 1.0f, 0.5f); + static int display_mode = 0; + static int picker_mode = 0; + ImGui::Checkbox("With Alpha", &alpha); + ImGui::Checkbox("With Alpha Bar", &alpha_bar); + ImGui::Checkbox("With Side Preview", &side_preview); + if (side_preview) + { + ImGui::SameLine(); + ImGui::Checkbox("With Ref Color", &ref_color); + if (ref_color) + { + ImGui::SameLine(); + ImGui::ColorEdit4("##RefColor", &ref_color_v.x, ImGuiColorEditFlags_NoInputs | misc_flags); + } + } + ImGui::Combo("Display Mode", &display_mode, "Auto/Current\0None\0RGB Only\0HSV Only\0Hex Only\0"); + ImGui::SameLine(); HelpMarker( + "ColorEdit defaults to displaying RGB inputs if you don't specify a display mode, " + "but the user can change it with a right-click on those inputs.\n\nColorPicker defaults to displaying RGB+HSV+Hex " + "if you don't specify a display mode.\n\nYou can change the defaults using SetColorEditOptions()."); + ImGui::SameLine(); HelpMarker("When not specified explicitly (Auto/Current mode), user can right-click the picker to change mode."); + ImGuiColorEditFlags flags = misc_flags; + if (!alpha) flags |= ImGuiColorEditFlags_NoAlpha; // This is by default if you call ColorPicker3() instead of ColorPicker4() + if (alpha_bar) flags |= ImGuiColorEditFlags_AlphaBar; + if (!side_preview) flags |= ImGuiColorEditFlags_NoSidePreview; + if (picker_mode == 1) flags |= ImGuiColorEditFlags_PickerHueBar; + if (picker_mode == 2) flags |= ImGuiColorEditFlags_PickerHueWheel; + if (display_mode == 1) flags |= ImGuiColorEditFlags_NoInputs; // Disable all RGB/HSV/Hex displays + if (display_mode == 2) flags |= ImGuiColorEditFlags_DisplayRGB; // Override display mode + if (display_mode == 3) flags |= ImGuiColorEditFlags_DisplayHSV; + if (display_mode == 4) flags |= ImGuiColorEditFlags_DisplayHex; + ImGui::ColorPicker4("MyColor##4", (float*)&color, flags, ref_color ? &ref_color_v.x : NULL); + + ImGui::Text("Set defaults in code:"); + ImGui::SameLine(); HelpMarker( + "SetColorEditOptions() is designed to allow you to set boot-time default.\n" + "We don't have Push/Pop functions because you can force options on a per-widget basis if needed," + "and the user can change non-forced ones with the options menu.\nWe don't have a getter to avoid" + "encouraging you to persistently save values that aren't forward-compatible."); + if (ImGui::Button("Default: Uint8 + HSV + Hue Bar")) + ImGui::SetColorEditOptions(ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_PickerHueBar); + if (ImGui::Button("Default: Float + HDR + Hue Wheel")) + ImGui::SetColorEditOptions(ImGuiColorEditFlags_Float | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_PickerHueWheel); + + // Always both a small version of both types of pickers (to make it more visible in the demo to people who are skimming quickly through it) + ImGui::Text("Both types:"); + float w = (ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.y) * 0.40f; + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##5", (float*)&color, ImGuiColorEditFlags_PickerHueBar | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + ImGui::SameLine(); + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##6", (float*)&color, ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + + // HSV encoded support (to avoid RGB<>HSV round trips and singularities when S==0 or V==0) + static ImVec4 color_hsv(0.23f, 1.0f, 1.0f, 1.0f); // Stored as HSV! + ImGui::Spacing(); + ImGui::Text("HSV encoded colors"); + ImGui::SameLine(); HelpMarker( + "By default, colors are given to ColorEdit and ColorPicker in RGB, but ImGuiColorEditFlags_InputHSV" + "allows you to store colors as HSV and pass them to ColorEdit and ColorPicker as HSV. This comes with the" + "added benefit that you can manipulate hue values with the picker even when saturation or value are zero."); + ImGui::Text("Color widget with InputHSV:"); + ImGui::ColorEdit4("HSV shown as RGB##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); + ImGui::ColorEdit4("HSV shown as HSV##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); + ImGui::DragFloat4("Raw HSV values", (float*)&color_hsv, 0.01f, 0.0f, 1.0f); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and Slider Flags"); + if (ImGui::TreeNode("Drag/Slider Flags")) + { + // Demonstrate using advanced flags for DragXXX and SliderXXX functions. Note that the flags are the same! + static ImGuiSliderFlags flags = ImGuiSliderFlags_None; + ImGui::CheckboxFlags("ImGuiSliderFlags_AlwaysClamp", &flags, ImGuiSliderFlags_AlwaysClamp); + ImGui::SameLine(); HelpMarker("Always clamp value to min/max bounds (if any) when input manually with CTRL+Click."); + ImGui::CheckboxFlags("ImGuiSliderFlags_Logarithmic", &flags, ImGuiSliderFlags_Logarithmic); + ImGui::SameLine(); HelpMarker("Enable logarithmic editing (more precision for small values)."); + ImGui::CheckboxFlags("ImGuiSliderFlags_NoRoundToFormat", &flags, ImGuiSliderFlags_NoRoundToFormat); + ImGui::SameLine(); HelpMarker("Disable rounding underlying value to match precision of the format string (e.g. %.3f values are rounded to those 3 digits)."); + ImGui::CheckboxFlags("ImGuiSliderFlags_NoInput", &flags, ImGuiSliderFlags_NoInput); + ImGui::SameLine(); HelpMarker("Disable CTRL+Click or Enter key allowing to input text directly into the widget."); + + // Drags + static float drag_f = 0.5f; + static int drag_i = 50; + ImGui::Text("Underlying float value: %f", drag_f); + ImGui::DragFloat("DragFloat (0 -> 1)", &drag_f, 0.005f, 0.0f, 1.0f, "%.3f", flags); + ImGui::DragFloat("DragFloat (0 -> +inf)", &drag_f, 0.005f, 0.0f, FLT_MAX, "%.3f", flags); + ImGui::DragFloat("DragFloat (-inf -> 1)", &drag_f, 0.005f, -FLT_MAX, 1.0f, "%.3f", flags); + ImGui::DragFloat("DragFloat (-inf -> +inf)", &drag_f, 0.005f, -FLT_MAX, +FLT_MAX, "%.3f", flags); + ImGui::DragInt("DragInt (0 -> 100)", &drag_i, 0.5f, 0, 100, "%d", flags); + + // Sliders + static float slider_f = 0.5f; + static int slider_i = 50; + ImGui::Text("Underlying float value: %f", slider_f); + ImGui::SliderFloat("SliderFloat (0 -> 1)", &slider_f, 0.0f, 1.0f, "%.3f", flags); + ImGui::SliderInt("SliderInt (0 -> 100)", &slider_i, 0, 100, "%d", flags); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Range Widgets"); + if (ImGui::TreeNode("Range Widgets")) + { + static float begin = 10, end = 90; + static int begin_i = 100, end_i = 1000; + ImGui::DragFloatRange2("range float", &begin, &end, 0.25f, 0.0f, 100.0f, "Min: %.1f %%", "Max: %.1f %%", ImGuiSliderFlags_AlwaysClamp); + ImGui::DragIntRange2("range int", &begin_i, &end_i, 5, 0, 1000, "Min: %d units", "Max: %d units"); + ImGui::DragIntRange2("range int (no bounds)", &begin_i, &end_i, 5, 0, 0, "Min: %d units", "Max: %d units"); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Data Types"); + if (ImGui::TreeNode("Data Types")) + { + // DragScalar/InputScalar/SliderScalar functions allow various data types + // - signed/unsigned + // - 8/16/32/64-bits + // - integer/float/double + // To avoid polluting the public API with all possible combinations, we use the ImGuiDataType enum + // to pass the type, and passing all arguments by pointer. + // This is the reason the test code below creates local variables to hold "zero" "one" etc. for each type. + // In practice, if you frequently use a given type that is not covered by the normal API entry points, + // you can wrap it yourself inside a 1 line function which can take typed argument as value instead of void*, + // and then pass their address to the generic function. For example: + // bool MySliderU64(const char *label, u64* value, u64 min = 0, u64 max = 0, const char* format = "%lld") + // { + // return SliderScalar(label, ImGuiDataType_U64, value, &min, &max, format); + // } + + // Setup limits (as helper variables so we can take their address, as explained above) + // Note: SliderScalar() functions have a maximum usable range of half the natural type maximum, hence the /2. + #ifndef LLONG_MIN + ImS64 LLONG_MIN = -9223372036854775807LL - 1; + ImS64 LLONG_MAX = 9223372036854775807LL; + ImU64 ULLONG_MAX = (2ULL * 9223372036854775807LL + 1); + #endif + const char s8_zero = 0, s8_one = 1, s8_fifty = 50, s8_min = -128, s8_max = 127; + const ImU8 u8_zero = 0, u8_one = 1, u8_fifty = 50, u8_min = 0, u8_max = 255; + const short s16_zero = 0, s16_one = 1, s16_fifty = 50, s16_min = -32768, s16_max = 32767; + const ImU16 u16_zero = 0, u16_one = 1, u16_fifty = 50, u16_min = 0, u16_max = 65535; + const ImS32 s32_zero = 0, s32_one = 1, s32_fifty = 50, s32_min = INT_MIN/2, s32_max = INT_MAX/2, s32_hi_a = INT_MAX/2 - 100, s32_hi_b = INT_MAX/2; + const ImU32 u32_zero = 0, u32_one = 1, u32_fifty = 50, u32_min = 0, u32_max = UINT_MAX/2, u32_hi_a = UINT_MAX/2 - 100, u32_hi_b = UINT_MAX/2; + const ImS64 s64_zero = 0, s64_one = 1, s64_fifty = 50, s64_min = LLONG_MIN/2, s64_max = LLONG_MAX/2, s64_hi_a = LLONG_MAX/2 - 100, s64_hi_b = LLONG_MAX/2; + const ImU64 u64_zero = 0, u64_one = 1, u64_fifty = 50, u64_min = 0, u64_max = ULLONG_MAX/2, u64_hi_a = ULLONG_MAX/2 - 100, u64_hi_b = ULLONG_MAX/2; + const float f32_zero = 0.f, f32_one = 1.f, f32_lo_a = -10000000000.0f, f32_hi_a = +10000000000.0f; + const double f64_zero = 0., f64_one = 1., f64_lo_a = -1000000000000000.0, f64_hi_a = +1000000000000000.0; + + // State + static char s8_v = 127; + static ImU8 u8_v = 255; + static short s16_v = 32767; + static ImU16 u16_v = 65535; + static ImS32 s32_v = -1; + static ImU32 u32_v = (ImU32)-1; + static ImS64 s64_v = -1; + static ImU64 u64_v = (ImU64)-1; + static float f32_v = 0.123f; + static double f64_v = 90000.01234567890123456789; + + const float drag_speed = 0.2f; + static bool drag_clamp = false; + IMGUI_DEMO_MARKER("Widgets/Data Types/Drags"); + ImGui::Text("Drags:"); + ImGui::Checkbox("Clamp integers to 0..50", &drag_clamp); + ImGui::SameLine(); HelpMarker( + "As with every widget in dear imgui, we never modify values unless there is a user interaction.\n" + "You can override the clamping limits by using CTRL+Click to input a value."); + ImGui::DragScalar("drag s8", ImGuiDataType_S8, &s8_v, drag_speed, drag_clamp ? &s8_zero : NULL, drag_clamp ? &s8_fifty : NULL); + ImGui::DragScalar("drag u8", ImGuiDataType_U8, &u8_v, drag_speed, drag_clamp ? &u8_zero : NULL, drag_clamp ? &u8_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s16", ImGuiDataType_S16, &s16_v, drag_speed, drag_clamp ? &s16_zero : NULL, drag_clamp ? &s16_fifty : NULL); + ImGui::DragScalar("drag u16", ImGuiDataType_U16, &u16_v, drag_speed, drag_clamp ? &u16_zero : NULL, drag_clamp ? &u16_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s32", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL); + ImGui::DragScalar("drag s32 hex", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL, "0x%08X"); + ImGui::DragScalar("drag u32", ImGuiDataType_U32, &u32_v, drag_speed, drag_clamp ? &u32_zero : NULL, drag_clamp ? &u32_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s64", ImGuiDataType_S64, &s64_v, drag_speed, drag_clamp ? &s64_zero : NULL, drag_clamp ? &s64_fifty : NULL); + ImGui::DragScalar("drag u64", ImGuiDataType_U64, &u64_v, drag_speed, drag_clamp ? &u64_zero : NULL, drag_clamp ? &u64_fifty : NULL); + ImGui::DragScalar("drag float", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f"); + ImGui::DragScalar("drag float log", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f", ImGuiSliderFlags_Logarithmic); + ImGui::DragScalar("drag double", ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, NULL, "%.10f grams"); + ImGui::DragScalar("drag double log",ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, &f64_one, "0 < %.10f < 1", ImGuiSliderFlags_Logarithmic); + + IMGUI_DEMO_MARKER("Widgets/Data Types/Sliders"); + ImGui::Text("Sliders"); + ImGui::SliderScalar("slider s8 full", ImGuiDataType_S8, &s8_v, &s8_min, &s8_max, "%d"); + ImGui::SliderScalar("slider u8 full", ImGuiDataType_U8, &u8_v, &u8_min, &u8_max, "%u"); + ImGui::SliderScalar("slider s16 full", ImGuiDataType_S16, &s16_v, &s16_min, &s16_max, "%d"); + ImGui::SliderScalar("slider u16 full", ImGuiDataType_U16, &u16_v, &u16_min, &u16_max, "%u"); + ImGui::SliderScalar("slider s32 low", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty,"%d"); + ImGui::SliderScalar("slider s32 high", ImGuiDataType_S32, &s32_v, &s32_hi_a, &s32_hi_b, "%d"); + ImGui::SliderScalar("slider s32 full", ImGuiDataType_S32, &s32_v, &s32_min, &s32_max, "%d"); + ImGui::SliderScalar("slider s32 hex", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty, "0x%04X"); + ImGui::SliderScalar("slider u32 low", ImGuiDataType_U32, &u32_v, &u32_zero, &u32_fifty,"%u"); + ImGui::SliderScalar("slider u32 high", ImGuiDataType_U32, &u32_v, &u32_hi_a, &u32_hi_b, "%u"); + ImGui::SliderScalar("slider u32 full", ImGuiDataType_U32, &u32_v, &u32_min, &u32_max, "%u"); + ImGui::SliderScalar("slider s64 low", ImGuiDataType_S64, &s64_v, &s64_zero, &s64_fifty,"%" IM_PRId64); + ImGui::SliderScalar("slider s64 high", ImGuiDataType_S64, &s64_v, &s64_hi_a, &s64_hi_b, "%" IM_PRId64); + ImGui::SliderScalar("slider s64 full", ImGuiDataType_S64, &s64_v, &s64_min, &s64_max, "%" IM_PRId64); + ImGui::SliderScalar("slider u64 low", ImGuiDataType_U64, &u64_v, &u64_zero, &u64_fifty,"%" IM_PRIu64 " ms"); + ImGui::SliderScalar("slider u64 high", ImGuiDataType_U64, &u64_v, &u64_hi_a, &u64_hi_b, "%" IM_PRIu64 " ms"); + ImGui::SliderScalar("slider u64 full", ImGuiDataType_U64, &u64_v, &u64_min, &u64_max, "%" IM_PRIu64 " ms"); + ImGui::SliderScalar("slider float low", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one); + ImGui::SliderScalar("slider float low log", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one, "%.10f", ImGuiSliderFlags_Logarithmic); + ImGui::SliderScalar("slider float high", ImGuiDataType_Float, &f32_v, &f32_lo_a, &f32_hi_a, "%e"); + ImGui::SliderScalar("slider double low", ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f grams"); + ImGui::SliderScalar("slider double low log",ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f", ImGuiSliderFlags_Logarithmic); + ImGui::SliderScalar("slider double high", ImGuiDataType_Double, &f64_v, &f64_lo_a, &f64_hi_a, "%e grams"); + + ImGui::Text("Sliders (reverse)"); + ImGui::SliderScalar("slider s8 reverse", ImGuiDataType_S8, &s8_v, &s8_max, &s8_min, "%d"); + ImGui::SliderScalar("slider u8 reverse", ImGuiDataType_U8, &u8_v, &u8_max, &u8_min, "%u"); + ImGui::SliderScalar("slider s32 reverse", ImGuiDataType_S32, &s32_v, &s32_fifty, &s32_zero, "%d"); + ImGui::SliderScalar("slider u32 reverse", ImGuiDataType_U32, &u32_v, &u32_fifty, &u32_zero, "%u"); + ImGui::SliderScalar("slider s64 reverse", ImGuiDataType_S64, &s64_v, &s64_fifty, &s64_zero, "%" IM_PRId64); + ImGui::SliderScalar("slider u64 reverse", ImGuiDataType_U64, &u64_v, &u64_fifty, &u64_zero, "%" IM_PRIu64 " ms"); + + IMGUI_DEMO_MARKER("Widgets/Data Types/Inputs"); + static bool inputs_step = true; + ImGui::Text("Inputs"); + ImGui::Checkbox("Show step buttons", &inputs_step); + ImGui::InputScalar("input s8", ImGuiDataType_S8, &s8_v, inputs_step ? &s8_one : NULL, NULL, "%d"); + ImGui::InputScalar("input u8", ImGuiDataType_U8, &u8_v, inputs_step ? &u8_one : NULL, NULL, "%u"); + ImGui::InputScalar("input s16", ImGuiDataType_S16, &s16_v, inputs_step ? &s16_one : NULL, NULL, "%d"); + ImGui::InputScalar("input u16", ImGuiDataType_U16, &u16_v, inputs_step ? &u16_one : NULL, NULL, "%u"); + ImGui::InputScalar("input s32", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%d"); + ImGui::InputScalar("input s32 hex", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%04X"); + ImGui::InputScalar("input u32", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%u"); + ImGui::InputScalar("input u32 hex", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%08X"); + ImGui::InputScalar("input s64", ImGuiDataType_S64, &s64_v, inputs_step ? &s64_one : NULL); + ImGui::InputScalar("input u64", ImGuiDataType_U64, &u64_v, inputs_step ? &u64_one : NULL); + ImGui::InputScalar("input float", ImGuiDataType_Float, &f32_v, inputs_step ? &f32_one : NULL); + ImGui::InputScalar("input double", ImGuiDataType_Double, &f64_v, inputs_step ? &f64_one : NULL); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Multi-component Widgets"); + if (ImGui::TreeNode("Multi-component Widgets")) + { + static float vec4f[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; + static int vec4i[4] = { 1, 5, 100, 255 }; + + ImGui::InputFloat2("input float2", vec4f); + ImGui::DragFloat2("drag float2", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat2("slider float2", vec4f, 0.0f, 1.0f); + ImGui::InputInt2("input int2", vec4i); + ImGui::DragInt2("drag int2", vec4i, 1, 0, 255); + ImGui::SliderInt2("slider int2", vec4i, 0, 255); + ImGui::Spacing(); + + ImGui::InputFloat3("input float3", vec4f); + ImGui::DragFloat3("drag float3", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat3("slider float3", vec4f, 0.0f, 1.0f); + ImGui::InputInt3("input int3", vec4i); + ImGui::DragInt3("drag int3", vec4i, 1, 0, 255); + ImGui::SliderInt3("slider int3", vec4i, 0, 255); + ImGui::Spacing(); + + ImGui::InputFloat4("input float4", vec4f); + ImGui::DragFloat4("drag float4", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat4("slider float4", vec4f, 0.0f, 1.0f); + ImGui::InputInt4("input int4", vec4i); + ImGui::DragInt4("drag int4", vec4i, 1, 0, 255); + ImGui::SliderInt4("slider int4", vec4i, 0, 255); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Vertical Sliders"); + if (ImGui::TreeNode("Vertical Sliders")) + { + const float spacing = 4; + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(spacing, spacing)); + + static int int_value = 0; + ImGui::VSliderInt("##int", ImVec2(18, 160), &int_value, 0, 5); + ImGui::SameLine(); + + static float values[7] = { 0.0f, 0.60f, 0.35f, 0.9f, 0.70f, 0.20f, 0.0f }; + ImGui::PushID("set1"); + for (int i = 0; i < 7; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleColor(ImGuiCol_FrameBg, (ImVec4)ImColor::HSV(i / 7.0f, 0.5f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_FrameBgHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_FrameBgActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_SliderGrab, (ImVec4)ImColor::HSV(i / 7.0f, 0.9f, 0.9f)); + ImGui::VSliderFloat("##v", ImVec2(18, 160), &values[i], 0.0f, 1.0f, ""); + if (ImGui::IsItemActive() || ImGui::IsItemHovered()) + ImGui::SetTooltip("%.3f", values[i]); + ImGui::PopStyleColor(4); + ImGui::PopID(); + } + ImGui::PopID(); + + ImGui::SameLine(); + ImGui::PushID("set2"); + static float values2[4] = { 0.20f, 0.80f, 0.40f, 0.25f }; + const int rows = 3; + const ImVec2 small_slider_size(18, (float)(int)((160.0f - (rows - 1) * spacing) / rows)); + for (int nx = 0; nx < 4; nx++) + { + if (nx > 0) ImGui::SameLine(); + ImGui::BeginGroup(); + for (int ny = 0; ny < rows; ny++) + { + ImGui::PushID(nx * rows + ny); + ImGui::VSliderFloat("##v", small_slider_size, &values2[nx], 0.0f, 1.0f, ""); + if (ImGui::IsItemActive() || ImGui::IsItemHovered()) + ImGui::SetTooltip("%.3f", values2[nx]); + ImGui::PopID(); + } + ImGui::EndGroup(); + } + ImGui::PopID(); + + ImGui::SameLine(); + ImGui::PushID("set3"); + for (int i = 0; i < 4; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleVar(ImGuiStyleVar_GrabMinSize, 40); + ImGui::VSliderFloat("##v", ImVec2(40, 160), &values[i], 0.0f, 1.0f, "%.2f\nsec"); + ImGui::PopStyleVar(); + ImGui::PopID(); + } + ImGui::PopID(); + ImGui::PopStyleVar(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and drop"); + if (ImGui::TreeNode("Drag and Drop")) + { + IMGUI_DEMO_MARKER("Widgets/Drag and drop/Standard widgets"); + if (ImGui::TreeNode("Drag and drop in standard widgets")) + { + // ColorEdit widgets automatically act as drag source and drag target. + // They are using standardized payload strings IMGUI_PAYLOAD_TYPE_COLOR_3F and IMGUI_PAYLOAD_TYPE_COLOR_4F + // to allow your own widgets to use colors in their drag and drop interaction. + // Also see 'Demo->Widgets->Color/Picker Widgets->Palette' demo. + HelpMarker("You can drag from the color squares."); + static float col1[3] = { 1.0f, 0.0f, 0.2f }; + static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::ColorEdit3("color 1", col1); + ImGui::ColorEdit4("color 2", col2); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and drop/Copy-swap items"); + if (ImGui::TreeNode("Drag and drop to copy/swap items")) + { + enum Mode + { + Mode_Copy, + Mode_Move, + Mode_Swap + }; + static int mode = 0; + if (ImGui::RadioButton("Copy", mode == Mode_Copy)) { mode = Mode_Copy; } ImGui::SameLine(); + if (ImGui::RadioButton("Move", mode == Mode_Move)) { mode = Mode_Move; } ImGui::SameLine(); + if (ImGui::RadioButton("Swap", mode == Mode_Swap)) { mode = Mode_Swap; } + static const char* names[9] = + { + "Bobby", "Beatrice", "Betty", + "Brianna", "Barry", "Bernard", + "Bibi", "Blaine", "Bryn" + }; + for (int n = 0; n < IM_ARRAYSIZE(names); n++) + { + ImGui::PushID(n); + if ((n % 3) != 0) + ImGui::SameLine(); + ImGui::Button(names[n], ImVec2(60, 60)); + + // Our buttons are both drag sources and drag targets here! + if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_None)) + { + // Set payload to carry the index of our item (could be anything) + ImGui::SetDragDropPayload("DND_DEMO_CELL", &n, sizeof(int)); + + // Display preview (could be anything, e.g. when dragging an image we could decide to display + // the filename and a small preview of the image, etc.) + if (mode == Mode_Copy) { ImGui::Text("Copy %s", names[n]); } + if (mode == Mode_Move) { ImGui::Text("Move %s", names[n]); } + if (mode == Mode_Swap) { ImGui::Text("Swap %s", names[n]); } + ImGui::EndDragDropSource(); + } + if (ImGui::BeginDragDropTarget()) + { + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload("DND_DEMO_CELL")) + { + IM_ASSERT(payload->DataSize == sizeof(int)); + int payload_n = *(const int*)payload->Data; + if (mode == Mode_Copy) + { + names[n] = names[payload_n]; + } + if (mode == Mode_Move) + { + names[n] = names[payload_n]; + names[payload_n] = ""; + } + if (mode == Mode_Swap) + { + const char* tmp = names[n]; + names[n] = names[payload_n]; + names[payload_n] = tmp; + } + } + ImGui::EndDragDropTarget(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and Drop/Drag to reorder items (simple)"); + if (ImGui::TreeNode("Drag to reorder items (simple)")) + { + // Simple reordering + HelpMarker( + "We don't use the drag and drop api at all here! " + "Instead we query when the item is held but not hovered, and order items accordingly."); + static const char* item_names[] = { "Item One", "Item Two", "Item Three", "Item Four", "Item Five" }; + for (int n = 0; n < IM_ARRAYSIZE(item_names); n++) + { + const char* item = item_names[n]; + ImGui::Selectable(item); + + if (ImGui::IsItemActive() && !ImGui::IsItemHovered()) + { + int n_next = n + (ImGui::GetMouseDragDelta(0).y < 0.f ? -1 : 1); + if (n_next >= 0 && n_next < IM_ARRAYSIZE(item_names)) + { + item_names[n] = item_names[n_next]; + item_names[n_next] = item; + ImGui::ResetMouseDragDelta(); + } + } + } + ImGui::TreePop(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Querying Item Status (Edited,Active,Hovered etc.)"); + if (ImGui::TreeNode("Querying Item Status (Edited/Active/Hovered etc.)")) + { + // Select an item type + const char* item_names[] = + { + "Text", "Button", "Button (w/ repeat)", "Checkbox", "SliderFloat", "InputText", "InputTextMultiline", "InputFloat", + "InputFloat3", "ColorEdit4", "Selectable", "MenuItem", "TreeNode", "TreeNode (w/ double-click)", "Combo", "ListBox" + }; + static int item_type = 4; + static bool item_disabled = false; + ImGui::Combo("Item Type", &item_type, item_names, IM_ARRAYSIZE(item_names), IM_ARRAYSIZE(item_names)); + ImGui::SameLine(); + HelpMarker("Testing how various types of items are interacting with the IsItemXXX functions. Note that the bool return value of most ImGui function is generally equivalent to calling ImGui::IsItemHovered()."); + ImGui::Checkbox("Item Disabled", &item_disabled); + + // Submit selected items so we can query their status in the code following it. + bool ret = false; + static bool b = false; + static float col4f[4] = { 1.0f, 0.5, 0.0f, 1.0f }; + static char str[16] = {}; + if (item_disabled) + ImGui::BeginDisabled(true); + if (item_type == 0) { ImGui::Text("ITEM: Text"); } // Testing text items with no identifier/interaction + if (item_type == 1) { ret = ImGui::Button("ITEM: Button"); } // Testing button + if (item_type == 2) { ImGui::PushButtonRepeat(true); ret = ImGui::Button("ITEM: Button"); ImGui::PopButtonRepeat(); } // Testing button (with repeater) + if (item_type == 3) { ret = ImGui::Checkbox("ITEM: Checkbox", &b); } // Testing checkbox + if (item_type == 4) { ret = ImGui::SliderFloat("ITEM: SliderFloat", &col4f[0], 0.0f, 1.0f); } // Testing basic item + if (item_type == 5) { ret = ImGui::InputText("ITEM: InputText", &str[0], IM_ARRAYSIZE(str)); } // Testing input text (which handles tabbing) + if (item_type == 6) { ret = ImGui::InputTextMultiline("ITEM: InputTextMultiline", &str[0], IM_ARRAYSIZE(str)); } // Testing input text (which uses a child window) + if (item_type == 7) { ret = ImGui::InputFloat("ITEM: InputFloat", col4f, 1.0f); } // Testing +/- buttons on scalar input + if (item_type == 8) { ret = ImGui::InputFloat3("ITEM: InputFloat3", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) + if (item_type == 9) { ret = ImGui::ColorEdit4("ITEM: ColorEdit4", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) + if (item_type == 10){ ret = ImGui::Selectable("ITEM: Selectable"); } // Testing selectable item + if (item_type == 11){ ret = ImGui::MenuItem("ITEM: MenuItem"); } // Testing menu item (they use ImGuiButtonFlags_PressedOnRelease button policy) + if (item_type == 12){ ret = ImGui::TreeNode("ITEM: TreeNode"); if (ret) ImGui::TreePop(); } // Testing tree node + if (item_type == 13){ ret = ImGui::TreeNodeEx("ITEM: TreeNode w/ ImGuiTreeNodeFlags_OpenOnDoubleClick", ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_NoTreePushOnOpen); } // Testing tree node with ImGuiButtonFlags_PressedOnDoubleClick button policy. + if (item_type == 14){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::Combo("ITEM: Combo", ¤t, items, IM_ARRAYSIZE(items)); } + if (item_type == 15){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::ListBox("ITEM: ListBox", ¤t, items, IM_ARRAYSIZE(items), IM_ARRAYSIZE(items)); } + + bool hovered_delay_none = ImGui::IsItemHovered(); + bool hovered_delay_short = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort); + bool hovered_delay_normal = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal); + + // Display the values of IsItemHovered() and other common item state functions. + // Note that the ImGuiHoveredFlags_XXX flags can be combined. + // Because BulletText is an item itself and that would affect the output of IsItemXXX functions, + // we query every state in a single call to avoid storing them and to simplify the code. + ImGui::BulletText( + "Return value = %d\n" + "IsItemFocused() = %d\n" + "IsItemHovered() = %d\n" + "IsItemHovered(_AllowWhenBlockedByPopup) = %d\n" + "IsItemHovered(_AllowWhenBlockedByActiveItem) = %d\n" + "IsItemHovered(_AllowWhenOverlapped) = %d\n" + "IsItemHovered(_AllowWhenDisabled) = %d\n" + "IsItemHovered(_RectOnly) = %d\n" + "IsItemActive() = %d\n" + "IsItemEdited() = %d\n" + "IsItemActivated() = %d\n" + "IsItemDeactivated() = %d\n" + "IsItemDeactivatedAfterEdit() = %d\n" + "IsItemVisible() = %d\n" + "IsItemClicked() = %d\n" + "IsItemToggledOpen() = %d\n" + "GetItemRectMin() = (%.1f, %.1f)\n" + "GetItemRectMax() = (%.1f, %.1f)\n" + "GetItemRectSize() = (%.1f, %.1f)", + ret, + ImGui::IsItemFocused(), + ImGui::IsItemHovered(), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenOverlapped), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled), + ImGui::IsItemHovered(ImGuiHoveredFlags_RectOnly), + ImGui::IsItemActive(), + ImGui::IsItemEdited(), + ImGui::IsItemActivated(), + ImGui::IsItemDeactivated(), + ImGui::IsItemDeactivatedAfterEdit(), + ImGui::IsItemVisible(), + ImGui::IsItemClicked(), + ImGui::IsItemToggledOpen(), + ImGui::GetItemRectMin().x, ImGui::GetItemRectMin().y, + ImGui::GetItemRectMax().x, ImGui::GetItemRectMax().y, + ImGui::GetItemRectSize().x, ImGui::GetItemRectSize().y + ); + ImGui::BulletText( + "w/ Hovering Delay: None = %d, Fast %d, Normal = %d", hovered_delay_none, hovered_delay_short, hovered_delay_normal); + + if (item_disabled) + ImGui::EndDisabled(); + + char buf[1] = ""; + ImGui::InputText("unused", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_ReadOnly); + ImGui::SameLine(); + HelpMarker("This widget is only here to be able to tab-out of the widgets above and see e.g. Deactivated() status."); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Querying Window Status (Focused,Hovered etc.)"); + if (ImGui::TreeNode("Querying Window Status (Focused/Hovered etc.)")) + { + static bool embed_all_inside_a_child_window = false; + ImGui::Checkbox("Embed everything inside a child window for testing _RootWindow flag.", &embed_all_inside_a_child_window); + if (embed_all_inside_a_child_window) + ImGui::BeginChild("outer_child", ImVec2(0, ImGui::GetFontSize() * 20.0f), true); + + // Testing IsWindowFocused() function with its various flags. + ImGui::BulletText( + "IsWindowFocused() = %d\n" + "IsWindowFocused(_ChildWindows) = %d\n" + "IsWindowFocused(_ChildWindows|_NoPopupHierarchy) = %d\n" + "IsWindowFocused(_ChildWindows|_RootWindow) = %d\n" + "IsWindowFocused(_ChildWindows|_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowFocused(_RootWindow) = %d\n" + "IsWindowFocused(_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowFocused(_AnyWindow) = %d\n", + ImGui::IsWindowFocused(), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_NoPopupHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_NoPopupHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow), + ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_NoPopupHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow)); + + // Testing IsWindowHovered() function with its various flags. + ImGui::BulletText( + "IsWindowHovered() = %d\n" + "IsWindowHovered(_AllowWhenBlockedByPopup) = %d\n" + "IsWindowHovered(_AllowWhenBlockedByActiveItem) = %d\n" + "IsWindowHovered(_ChildWindows) = %d\n" + "IsWindowHovered(_ChildWindows|_NoPopupHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_RootWindow) = %d\n" + "IsWindowHovered(_ChildWindows|_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowHovered(_RootWindow) = %d\n" + "IsWindowHovered(_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_AllowWhenBlockedByPopup) = %d\n" + "IsWindowHovered(_AnyWindow) = %d\n", + ImGui::IsWindowHovered(), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_NoPopupHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_NoPopupHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow), + ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_NoPopupHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow)); + + ImGui::BeginChild("child", ImVec2(0, 50), true); + ImGui::Text("This is another child window for testing the _ChildWindows flag."); + ImGui::EndChild(); + if (embed_all_inside_a_child_window) + ImGui::EndChild(); + + // Calling IsItemHovered() after begin returns the hovered status of the title bar. + // This is useful in particular if you want to create a context menu associated to the title bar of a window. + static bool test_window = false; + ImGui::Checkbox("Hovered/Active tests after Begin() for title bar testing", &test_window); + if (test_window) + { + ImGui::Begin("Title bar Hovered/Active tests", &test_window); + if (ImGui::BeginPopupContextItem()) // <-- This is using IsItemHovered() + { + if (ImGui::MenuItem("Close")) { test_window = false; } + ImGui::EndPopup(); + } + ImGui::Text( + "IsItemHovered() after begin = %d (== is title bar hovered)\n" + "IsItemActive() after begin = %d (== is window being clicked/moved)\n", + ImGui::IsItemHovered(), ImGui::IsItemActive()); + ImGui::End(); + } + + ImGui::TreePop(); + } + + // Demonstrate BeginDisabled/EndDisabled using a checkbox located at the bottom of the section (which is a bit odd: + // logically we'd have this checkbox at the top of the section, but we don't want this feature to steal that space) + if (disable_all) + ImGui::EndDisabled(); + + IMGUI_DEMO_MARKER("Widgets/Disable Block"); + if (ImGui::TreeNode("Disable block")) + { + ImGui::Checkbox("Disable entire section above", &disable_all); + ImGui::SameLine(); HelpMarker("Demonstrate using BeginDisabled()/EndDisabled() across this section."); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Filter"); + if (ImGui::TreeNode("Text Filter")) + { + // Helper class to easy setup a text filter. + // You may want to implement a more feature-full filtering scheme in your own application. + HelpMarker("Not a widget per-se, but ImGuiTextFilter is a helper to perform simple filtering on text strings."); + static ImGuiTextFilter filter; + ImGui::Text("Filter usage:\n" + " \"\" display all lines\n" + " \"xxx\" display lines containing \"xxx\"\n" + " \"xxx,yyy\" display lines containing \"xxx\" or \"yyy\"\n" + " \"-xxx\" hide lines containing \"xxx\""); + filter.Draw(); + const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" }; + for (int i = 0; i < IM_ARRAYSIZE(lines); i++) + if (filter.PassFilter(lines[i])) + ImGui::BulletText("%s", lines[i]); + ImGui::TreePop(); + } +} + +static void ShowDemoWindowLayout() +{ + IMGUI_DEMO_MARKER("Layout"); + if (!ImGui::CollapsingHeader("Layout & Scrolling")) + return; + + IMGUI_DEMO_MARKER("Layout/Child windows"); + if (ImGui::TreeNode("Child windows")) + { + HelpMarker("Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window."); + static bool disable_mouse_wheel = false; + static bool disable_menu = false; + ImGui::Checkbox("Disable Mouse Wheel", &disable_mouse_wheel); + ImGui::Checkbox("Disable Menu", &disable_menu); + + // Child 1: no border, enable horizontal scrollbar + { + ImGuiWindowFlags window_flags = ImGuiWindowFlags_HorizontalScrollbar; + if (disable_mouse_wheel) + window_flags |= ImGuiWindowFlags_NoScrollWithMouse; + ImGui::BeginChild("ChildL", ImVec2(ImGui::GetContentRegionAvail().x * 0.5f, 260), false, window_flags); + for (int i = 0; i < 100; i++) + ImGui::Text("%04d: scrollable region", i); + ImGui::EndChild(); + } + + ImGui::SameLine(); + + // Child 2: rounded border + { + ImGuiWindowFlags window_flags = ImGuiWindowFlags_None; + if (disable_mouse_wheel) + window_flags |= ImGuiWindowFlags_NoScrollWithMouse; + if (!disable_menu) + window_flags |= ImGuiWindowFlags_MenuBar; + ImGui::PushStyleVar(ImGuiStyleVar_ChildRounding, 5.0f); + ImGui::BeginChild("ChildR", ImVec2(0, 260), true, window_flags); + if (!disable_menu && ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Menu")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + if (ImGui::BeginTable("split", 2, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings)) + { + for (int i = 0; i < 100; i++) + { + char buf[32]; + sprintf(buf, "%03d", i); + ImGui::TableNextColumn(); + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + } + ImGui::EndTable(); + } + ImGui::EndChild(); + ImGui::PopStyleVar(); + } + + ImGui::Separator(); + + // Demonstrate a few extra things + // - Changing ImGuiCol_ChildBg (which is transparent black in default styles) + // - Using SetCursorPos() to position child window (the child window is an item from the POV of parent window) + // You can also call SetNextWindowPos() to position the child window. The parent window will effectively + // layout from this position. + // - Using ImGui::GetItemRectMin/Max() to query the "item" state (because the child window is an item from + // the POV of the parent window). See 'Demo->Querying Status (Edited/Active/Hovered etc.)' for details. + { + static int offset_x = 0; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragInt("Offset X", &offset_x, 1.0f, -1000, 1000); + + ImGui::SetCursorPosX(ImGui::GetCursorPosX() + (float)offset_x); + ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(255, 0, 0, 100)); + ImGui::BeginChild("Red", ImVec2(200, 100), true, ImGuiWindowFlags_None); + for (int n = 0; n < 50; n++) + ImGui::Text("Some test %d", n); + ImGui::EndChild(); + bool child_is_hovered = ImGui::IsItemHovered(); + ImVec2 child_rect_min = ImGui::GetItemRectMin(); + ImVec2 child_rect_max = ImGui::GetItemRectMax(); + ImGui::PopStyleColor(); + ImGui::Text("Hovered: %d", child_is_hovered); + ImGui::Text("Rect of child window is: (%.0f,%.0f) (%.0f,%.0f)", child_rect_min.x, child_rect_min.y, child_rect_max.x, child_rect_max.y); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Widgets Width"); + if (ImGui::TreeNode("Widgets Width")) + { + static float f = 0.0f; + static bool show_indented_items = true; + ImGui::Checkbox("Show indented items", &show_indented_items); + + // Use SetNextItemWidth() to set the width of a single upcoming item. + // Use PushItemWidth()/PopItemWidth() to set the width of a group of items. + // In real code use you'll probably want to choose width values that are proportional to your font size + // e.g. Using '20.0f * GetFontSize()' as width instead of '200.0f', etc. + + ImGui::Text("SetNextItemWidth/PushItemWidth(100)"); + ImGui::SameLine(); HelpMarker("Fixed width."); + ImGui::PushItemWidth(100); + ImGui::DragFloat("float##1b", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##1b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::Text("SetNextItemWidth/PushItemWidth(-100)"); + ImGui::SameLine(); HelpMarker("Align to right edge minus 100"); + ImGui::PushItemWidth(-100); + ImGui::DragFloat("float##2a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##2b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::Text("SetNextItemWidth/PushItemWidth(GetContentRegionAvail().x * 0.5f)"); + ImGui::SameLine(); HelpMarker("Half of available width.\n(~ right-cursor_pos)\n(works within a column set)"); + ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::DragFloat("float##3a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##3b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::Text("SetNextItemWidth/PushItemWidth(-GetContentRegionAvail().x * 0.5f)"); + ImGui::SameLine(); HelpMarker("Align to right edge minus half"); + ImGui::PushItemWidth(-ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::DragFloat("float##4a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##4b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + // Demonstrate using PushItemWidth to surround three items. + // Calling SetNextItemWidth() before each of them would have the same effect. + ImGui::Text("SetNextItemWidth/PushItemWidth(-FLT_MIN)"); + ImGui::SameLine(); HelpMarker("Align to right edge"); + ImGui::PushItemWidth(-FLT_MIN); + ImGui::DragFloat("##float5a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##5b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout"); + if (ImGui::TreeNode("Basic Horizontal Layout")) + { + ImGui::TextWrapped("(Use ImGui::SameLine() to keep adding items to the right of the preceding item)"); + + // Text + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/SameLine"); + ImGui::Text("Two items: Hello"); ImGui::SameLine(); + ImGui::TextColored(ImVec4(1,1,0,1), "Sailor"); + + // Adjust spacing + ImGui::Text("More spacing: Hello"); ImGui::SameLine(0, 20); + ImGui::TextColored(ImVec4(1,1,0,1), "Sailor"); + + // Button + ImGui::AlignTextToFramePadding(); + ImGui::Text("Normal buttons"); ImGui::SameLine(); + ImGui::Button("Banana"); ImGui::SameLine(); + ImGui::Button("Apple"); ImGui::SameLine(); + ImGui::Button("Corniflower"); + + // Button + ImGui::Text("Small buttons"); ImGui::SameLine(); + ImGui::SmallButton("Like this one"); ImGui::SameLine(); + ImGui::Text("can fit within a text block."); + + // Aligned to arbitrary position. Easy/cheap column. + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/SameLine (with offset)"); + ImGui::Text("Aligned"); + ImGui::SameLine(150); ImGui::Text("x=150"); + ImGui::SameLine(300); ImGui::Text("x=300"); + ImGui::Text("Aligned"); + ImGui::SameLine(150); ImGui::SmallButton("x=150"); + ImGui::SameLine(300); ImGui::SmallButton("x=300"); + + // Checkbox + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/SameLine (more)"); + static bool c1 = false, c2 = false, c3 = false, c4 = false; + ImGui::Checkbox("My", &c1); ImGui::SameLine(); + ImGui::Checkbox("Tailor", &c2); ImGui::SameLine(); + ImGui::Checkbox("Is", &c3); ImGui::SameLine(); + ImGui::Checkbox("Rich", &c4); + + // Various + static float f0 = 1.0f, f1 = 2.0f, f2 = 3.0f; + ImGui::PushItemWidth(80); + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD" }; + static int item = -1; + ImGui::Combo("Combo", &item, items, IM_ARRAYSIZE(items)); ImGui::SameLine(); + ImGui::SliderFloat("X", &f0, 0.0f, 5.0f); ImGui::SameLine(); + ImGui::SliderFloat("Y", &f1, 0.0f, 5.0f); ImGui::SameLine(); + ImGui::SliderFloat("Z", &f2, 0.0f, 5.0f); + ImGui::PopItemWidth(); + + ImGui::PushItemWidth(80); + ImGui::Text("Lists:"); + static int selection[4] = { 0, 1, 2, 3 }; + for (int i = 0; i < 4; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::ListBox("", &selection[i], items, IM_ARRAYSIZE(items)); + ImGui::PopID(); + //if (ImGui::IsItemHovered()) ImGui::SetTooltip("ListBox %d hovered", i); + } + ImGui::PopItemWidth(); + + // Dummy + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/Dummy"); + ImVec2 button_sz(40, 40); + ImGui::Button("A", button_sz); ImGui::SameLine(); + ImGui::Dummy(button_sz); ImGui::SameLine(); + ImGui::Button("B", button_sz); + + // Manually wrapping + // (we should eventually provide this as an automatic layout feature, but for now you can do it manually) + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/Manual wrapping"); + ImGui::Text("Manual wrapping:"); + ImGuiStyle& style = ImGui::GetStyle(); + int buttons_count = 20; + float window_visible_x2 = ImGui::GetWindowPos().x + ImGui::GetWindowContentRegionMax().x; + for (int n = 0; n < buttons_count; n++) + { + ImGui::PushID(n); + ImGui::Button("Box", button_sz); + float last_button_x2 = ImGui::GetItemRectMax().x; + float next_button_x2 = last_button_x2 + style.ItemSpacing.x + button_sz.x; // Expected position if next button was on same line + if (n + 1 < buttons_count && next_button_x2 < window_visible_x2) + ImGui::SameLine(); + ImGui::PopID(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Groups"); + if (ImGui::TreeNode("Groups")) + { + HelpMarker( + "BeginGroup() basically locks the horizontal position for new line. " + "EndGroup() bundles the whole group so that you can use \"item\" functions such as " + "IsItemHovered()/IsItemActive() or SameLine() etc. on the whole group."); + ImGui::BeginGroup(); + { + ImGui::BeginGroup(); + ImGui::Button("AAA"); + ImGui::SameLine(); + ImGui::Button("BBB"); + ImGui::SameLine(); + ImGui::BeginGroup(); + ImGui::Button("CCC"); + ImGui::Button("DDD"); + ImGui::EndGroup(); + ImGui::SameLine(); + ImGui::Button("EEE"); + ImGui::EndGroup(); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("First group hovered"); + } + // Capture the group size and create widgets using the same size + ImVec2 size = ImGui::GetItemRectSize(); + const float values[5] = { 0.5f, 0.20f, 0.80f, 0.60f, 0.25f }; + ImGui::PlotHistogram("##values", values, IM_ARRAYSIZE(values), 0, NULL, 0.0f, 1.0f, size); + + ImGui::Button("ACTION", ImVec2((size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, size.y)); + ImGui::SameLine(); + ImGui::Button("REACTION", ImVec2((size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, size.y)); + ImGui::EndGroup(); + ImGui::SameLine(); + + ImGui::Button("LEVERAGE\nBUZZWORD", size); + ImGui::SameLine(); + + if (ImGui::BeginListBox("List", size)) + { + ImGui::Selectable("Selected", true); + ImGui::Selectable("Not Selected", false); + ImGui::EndListBox(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Text Baseline Alignment"); + if (ImGui::TreeNode("Text Baseline Alignment")) + { + { + ImGui::BulletText("Text baseline:"); + ImGui::SameLine(); HelpMarker( + "This is testing the vertical alignment that gets applied on text to keep it aligned with widgets. " + "Lines only composed of text or \"small\" widgets use less vertical space than lines with framed widgets."); + ImGui::Indent(); + + ImGui::Text("KO Blahblah"); ImGui::SameLine(); + ImGui::Button("Some framed item"); ImGui::SameLine(); + HelpMarker("Baseline of button will look misaligned with text.."); + + // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. + // (because we don't know what's coming after the Text() statement, we need to move the text baseline + // down by FramePadding.y ahead of time) + ImGui::AlignTextToFramePadding(); + ImGui::Text("OK Blahblah"); ImGui::SameLine(); + ImGui::Button("Some framed item"); ImGui::SameLine(); + HelpMarker("We call AlignTextToFramePadding() to vertically align the text baseline by +FramePadding.y"); + + // SmallButton() uses the same vertical padding as Text + ImGui::Button("TEST##1"); ImGui::SameLine(); + ImGui::Text("TEST"); ImGui::SameLine(); + ImGui::SmallButton("TEST##2"); + + // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. + ImGui::AlignTextToFramePadding(); + ImGui::Text("Text aligned to framed item"); ImGui::SameLine(); + ImGui::Button("Item##1"); ImGui::SameLine(); + ImGui::Text("Item"); ImGui::SameLine(); + ImGui::SmallButton("Item##2"); ImGui::SameLine(); + ImGui::Button("Item##3"); + + ImGui::Unindent(); + } + + ImGui::Spacing(); + + { + ImGui::BulletText("Multi-line text:"); + ImGui::Indent(); + ImGui::Text("One\nTwo\nThree"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + + ImGui::Text("Banana"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("One\nTwo\nThree"); + + ImGui::Button("HOP##1"); ImGui::SameLine(); + ImGui::Text("Banana"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + + ImGui::Button("HOP##2"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + ImGui::Unindent(); + } + + ImGui::Spacing(); + + { + ImGui::BulletText("Misc items:"); + ImGui::Indent(); + + // SmallButton() sets FramePadding to zero. Text baseline is aligned to match baseline of previous Button. + ImGui::Button("80x80", ImVec2(80, 80)); + ImGui::SameLine(); + ImGui::Button("50x50", ImVec2(50, 50)); + ImGui::SameLine(); + ImGui::Button("Button()"); + ImGui::SameLine(); + ImGui::SmallButton("SmallButton()"); + + // Tree + const float spacing = ImGui::GetStyle().ItemInnerSpacing.x; + ImGui::Button("Button##1"); + ImGui::SameLine(0.0f, spacing); + if (ImGui::TreeNode("Node##1")) + { + // Placeholder tree data + for (int i = 0; i < 6; i++) + ImGui::BulletText("Item %d..", i); + ImGui::TreePop(); + } + + // Vertically align text node a bit lower so it'll be vertically centered with upcoming widget. + // Otherwise you can use SmallButton() (smaller fit). + ImGui::AlignTextToFramePadding(); + + // Common mistake to avoid: if we want to SameLine after TreeNode we need to do it before we add + // other contents below the node. + bool node_open = ImGui::TreeNode("Node##2"); + ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##2"); + if (node_open) + { + // Placeholder tree data + for (int i = 0; i < 6; i++) + ImGui::BulletText("Item %d..", i); + ImGui::TreePop(); + } + + // Bullet + ImGui::Button("Button##3"); + ImGui::SameLine(0.0f, spacing); + ImGui::BulletText("Bullet text"); + + ImGui::AlignTextToFramePadding(); + ImGui::BulletText("Node"); + ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##4"); + ImGui::Unindent(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Scrolling"); + if (ImGui::TreeNode("Scrolling")) + { + // Vertical scroll functions + IMGUI_DEMO_MARKER("Layout/Scrolling/Vertical"); + HelpMarker("Use SetScrollHereY() or SetScrollFromPosY() to scroll to a given vertical position."); + + static int track_item = 50; + static bool enable_track = true; + static bool enable_extra_decorations = false; + static float scroll_to_off_px = 0.0f; + static float scroll_to_pos_px = 200.0f; + + ImGui::Checkbox("Decoration", &enable_extra_decorations); + + ImGui::Checkbox("Track", &enable_track); + ImGui::PushItemWidth(100); + ImGui::SameLine(140); enable_track |= ImGui::DragInt("##item", &track_item, 0.25f, 0, 99, "Item = %d"); + + bool scroll_to_off = ImGui::Button("Scroll Offset"); + ImGui::SameLine(140); scroll_to_off |= ImGui::DragFloat("##off", &scroll_to_off_px, 1.00f, 0, FLT_MAX, "+%.0f px"); + + bool scroll_to_pos = ImGui::Button("Scroll To Pos"); + ImGui::SameLine(140); scroll_to_pos |= ImGui::DragFloat("##pos", &scroll_to_pos_px, 1.00f, -10, FLT_MAX, "X/Y = %.0f px"); + ImGui::PopItemWidth(); + + if (scroll_to_off || scroll_to_pos) + enable_track = false; + + ImGuiStyle& style = ImGui::GetStyle(); + float child_w = (ImGui::GetContentRegionAvail().x - 4 * style.ItemSpacing.x) / 5; + if (child_w < 1.0f) + child_w = 1.0f; + ImGui::PushID("##VerticalScrolling"); + for (int i = 0; i < 5; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::BeginGroup(); + const char* names[] = { "Top", "25%", "Center", "75%", "Bottom" }; + ImGui::TextUnformatted(names[i]); + + const ImGuiWindowFlags child_flags = enable_extra_decorations ? ImGuiWindowFlags_MenuBar : 0; + const ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); + const bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(child_w, 200.0f), true, child_flags); + if (ImGui::BeginMenuBar()) + { + ImGui::TextUnformatted("abc"); + ImGui::EndMenuBar(); + } + if (scroll_to_off) + ImGui::SetScrollY(scroll_to_off_px); + if (scroll_to_pos) + ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + scroll_to_pos_px, i * 0.25f); + if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items + { + for (int item = 0; item < 100; item++) + { + if (enable_track && item == track_item) + { + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); + ImGui::SetScrollHereY(i * 0.25f); // 0.0f:top, 0.5f:center, 1.0f:bottom + } + else + { + ImGui::Text("Item %d", item); + } + } + } + float scroll_y = ImGui::GetScrollY(); + float scroll_max_y = ImGui::GetScrollMaxY(); + ImGui::EndChild(); + ImGui::Text("%.0f/%.0f", scroll_y, scroll_max_y); + ImGui::EndGroup(); + } + ImGui::PopID(); + + // Horizontal scroll functions + IMGUI_DEMO_MARKER("Layout/Scrolling/Horizontal"); + ImGui::Spacing(); + HelpMarker( + "Use SetScrollHereX() or SetScrollFromPosX() to scroll to a given horizontal position.\n\n" + "Because the clipping rectangle of most window hides half worth of WindowPadding on the " + "left/right, using SetScrollFromPosX(+1) will usually result in clipped text whereas the " + "equivalent SetScrollFromPosY(+1) wouldn't."); + ImGui::PushID("##HorizontalScrolling"); + for (int i = 0; i < 5; i++) + { + float child_height = ImGui::GetTextLineHeight() + style.ScrollbarSize + style.WindowPadding.y * 2.0f; + ImGuiWindowFlags child_flags = ImGuiWindowFlags_HorizontalScrollbar | (enable_extra_decorations ? ImGuiWindowFlags_AlwaysVerticalScrollbar : 0); + ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); + bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(-100, child_height), true, child_flags); + if (scroll_to_off) + ImGui::SetScrollX(scroll_to_off_px); + if (scroll_to_pos) + ImGui::SetScrollFromPosX(ImGui::GetCursorStartPos().x + scroll_to_pos_px, i * 0.25f); + if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items + { + for (int item = 0; item < 100; item++) + { + if (item > 0) + ImGui::SameLine(); + if (enable_track && item == track_item) + { + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); + ImGui::SetScrollHereX(i * 0.25f); // 0.0f:left, 0.5f:center, 1.0f:right + } + else + { + ImGui::Text("Item %d", item); + } + } + } + float scroll_x = ImGui::GetScrollX(); + float scroll_max_x = ImGui::GetScrollMaxX(); + ImGui::EndChild(); + ImGui::SameLine(); + const char* names[] = { "Left", "25%", "Center", "75%", "Right" }; + ImGui::Text("%s\n%.0f/%.0f", names[i], scroll_x, scroll_max_x); + ImGui::Spacing(); + } + ImGui::PopID(); + + // Miscellaneous Horizontal Scrolling Demo + IMGUI_DEMO_MARKER("Layout/Scrolling/Horizontal (more)"); + HelpMarker( + "Horizontal scrolling for a window is enabled via the ImGuiWindowFlags_HorizontalScrollbar flag.\n\n" + "You may want to also explicitly specify content width by using SetNextWindowContentWidth() before Begin()."); + static int lines = 7; + ImGui::SliderInt("Lines", &lines, 1, 15); + ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 3.0f); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2.0f, 1.0f)); + ImVec2 scrolling_child_size = ImVec2(0, ImGui::GetFrameHeightWithSpacing() * 7 + 30); + ImGui::BeginChild("scrolling", scrolling_child_size, true, ImGuiWindowFlags_HorizontalScrollbar); + for (int line = 0; line < lines; line++) + { + // Display random stuff. For the sake of this trivial demo we are using basic Button() + SameLine() + // If you want to create your own time line for a real application you may be better off manipulating + // the cursor position yourself, aka using SetCursorPos/SetCursorScreenPos to position the widgets + // yourself. You may also want to use the lower-level ImDrawList API. + int num_buttons = 10 + ((line & 1) ? line * 9 : line * 3); + for (int n = 0; n < num_buttons; n++) + { + if (n > 0) ImGui::SameLine(); + ImGui::PushID(n + line * 1000); + char num_buf[16]; + sprintf(num_buf, "%d", n); + const char* label = (!(n % 15)) ? "FizzBuzz" : (!(n % 3)) ? "Fizz" : (!(n % 5)) ? "Buzz" : num_buf; + float hue = n * 0.05f; + ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(hue, 0.6f, 0.6f)); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(hue, 0.7f, 0.7f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(hue, 0.8f, 0.8f)); + ImGui::Button(label, ImVec2(40.0f + sinf((float)(line + n)) * 20.0f, 0.0f)); + ImGui::PopStyleColor(3); + ImGui::PopID(); + } + } + float scroll_x = ImGui::GetScrollX(); + float scroll_max_x = ImGui::GetScrollMaxX(); + ImGui::EndChild(); + ImGui::PopStyleVar(2); + float scroll_x_delta = 0.0f; + ImGui::SmallButton("<<"); + if (ImGui::IsItemActive()) + scroll_x_delta = -ImGui::GetIO().DeltaTime * 1000.0f; + ImGui::SameLine(); + ImGui::Text("Scroll from code"); ImGui::SameLine(); + ImGui::SmallButton(">>"); + if (ImGui::IsItemActive()) + scroll_x_delta = +ImGui::GetIO().DeltaTime * 1000.0f; + ImGui::SameLine(); + ImGui::Text("%.0f/%.0f", scroll_x, scroll_max_x); + if (scroll_x_delta != 0.0f) + { + // Demonstrate a trick: you can use Begin to set yourself in the context of another window + // (here we are already out of your child window) + ImGui::BeginChild("scrolling"); + ImGui::SetScrollX(ImGui::GetScrollX() + scroll_x_delta); + ImGui::EndChild(); + } + ImGui::Spacing(); + + static bool show_horizontal_contents_size_demo_window = false; + ImGui::Checkbox("Show Horizontal contents size demo window", &show_horizontal_contents_size_demo_window); + + if (show_horizontal_contents_size_demo_window) + { + static bool show_h_scrollbar = true; + static bool show_button = true; + static bool show_tree_nodes = true; + static bool show_text_wrapped = false; + static bool show_columns = true; + static bool show_tab_bar = true; + static bool show_child = false; + static bool explicit_content_size = false; + static float contents_size_x = 300.0f; + if (explicit_content_size) + ImGui::SetNextWindowContentSize(ImVec2(contents_size_x, 0.0f)); + ImGui::Begin("Horizontal contents size demo window", &show_horizontal_contents_size_demo_window, show_h_scrollbar ? ImGuiWindowFlags_HorizontalScrollbar : 0); + IMGUI_DEMO_MARKER("Layout/Scrolling/Horizontal contents size demo window"); + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(2, 0)); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 0)); + HelpMarker("Test of different widgets react and impact the work rectangle growing when horizontal scrolling is enabled.\n\nUse 'Metrics->Tools->Show windows rectangles' to visualize rectangles."); + ImGui::Checkbox("H-scrollbar", &show_h_scrollbar); + ImGui::Checkbox("Button", &show_button); // Will grow contents size (unless explicitly overwritten) + ImGui::Checkbox("Tree nodes", &show_tree_nodes); // Will grow contents size and display highlight over full width + ImGui::Checkbox("Text wrapped", &show_text_wrapped);// Will grow and use contents size + ImGui::Checkbox("Columns", &show_columns); // Will use contents size + ImGui::Checkbox("Tab bar", &show_tab_bar); // Will use contents size + ImGui::Checkbox("Child", &show_child); // Will grow and use contents size + ImGui::Checkbox("Explicit content size", &explicit_content_size); + ImGui::Text("Scroll %.1f/%.1f %.1f/%.1f", ImGui::GetScrollX(), ImGui::GetScrollMaxX(), ImGui::GetScrollY(), ImGui::GetScrollMaxY()); + if (explicit_content_size) + { + ImGui::SameLine(); + ImGui::SetNextItemWidth(100); + ImGui::DragFloat("##csx", &contents_size_x); + ImVec2 p = ImGui::GetCursorScreenPos(); + ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + 10, p.y + 10), IM_COL32_WHITE); + ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(p.x + contents_size_x - 10, p.y), ImVec2(p.x + contents_size_x, p.y + 10), IM_COL32_WHITE); + ImGui::Dummy(ImVec2(0, 10)); + } + ImGui::PopStyleVar(2); + ImGui::Separator(); + if (show_button) + { + ImGui::Button("this is a 300-wide button", ImVec2(300, 0)); + } + if (show_tree_nodes) + { + bool open = true; + if (ImGui::TreeNode("this is a tree node")) + { + if (ImGui::TreeNode("another one of those tree node...")) + { + ImGui::Text("Some tree contents"); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + ImGui::CollapsingHeader("CollapsingHeader", &open); + } + if (show_text_wrapped) + { + ImGui::TextWrapped("This text should automatically wrap on the edge of the work rectangle."); + } + if (show_columns) + { + ImGui::Text("Tables:"); + if (ImGui::BeginTable("table", 4, ImGuiTableFlags_Borders)) + { + for (int n = 0; n < 4; n++) + { + ImGui::TableNextColumn(); + ImGui::Text("Width %.2f", ImGui::GetContentRegionAvail().x); + } + ImGui::EndTable(); + } + ImGui::Text("Columns:"); + ImGui::Columns(4); + for (int n = 0; n < 4; n++) + { + ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); + ImGui::NextColumn(); + } + ImGui::Columns(1); + } + if (show_tab_bar && ImGui::BeginTabBar("Hello")) + { + if (ImGui::BeginTabItem("OneOneOne")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("TwoTwoTwo")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("ThreeThreeThree")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("FourFourFour")) { ImGui::EndTabItem(); } + ImGui::EndTabBar(); + } + if (show_child) + { + ImGui::BeginChild("child", ImVec2(0, 0), true); + ImGui::EndChild(); + } + ImGui::End(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Clipping"); + if (ImGui::TreeNode("Clipping")) + { + static ImVec2 size(100.0f, 100.0f); + static ImVec2 offset(30.0f, 30.0f); + ImGui::DragFloat2("size", (float*)&size, 0.5f, 1.0f, 200.0f, "%.0f"); + ImGui::TextWrapped("(Click and drag to scroll)"); + + HelpMarker( + "(Left) Using ImGui::PushClipRect():\n" + "Will alter ImGui hit-testing logic + ImDrawList rendering.\n" + "(use this if you want your clipping rectangle to affect interactions)\n\n" + "(Center) Using ImDrawList::PushClipRect():\n" + "Will alter ImDrawList rendering only.\n" + "(use this as a shortcut if you are only using ImDrawList calls)\n\n" + "(Right) Using ImDrawList::AddText() with a fine ClipRect:\n" + "Will alter only this specific ImDrawList::AddText() rendering.\n" + "This is often used internally to avoid altering the clipping rectangle and minimize draw calls."); + + for (int n = 0; n < 3; n++) + { + if (n > 0) + ImGui::SameLine(); + + ImGui::PushID(n); + ImGui::InvisibleButton("##canvas", size); + if (ImGui::IsItemActive() && ImGui::IsMouseDragging(ImGuiMouseButton_Left)) + { + offset.x += ImGui::GetIO().MouseDelta.x; + offset.y += ImGui::GetIO().MouseDelta.y; + } + ImGui::PopID(); + if (!ImGui::IsItemVisible()) // Skip rendering as ImDrawList elements are not clipped. + continue; + + const ImVec2 p0 = ImGui::GetItemRectMin(); + const ImVec2 p1 = ImGui::GetItemRectMax(); + const char* text_str = "Line 1 hello\nLine 2 clip me!"; + const ImVec2 text_pos = ImVec2(p0.x + offset.x, p0.y + offset.y); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + switch (n) + { + case 0: + ImGui::PushClipRect(p0, p1, true); + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); + ImGui::PopClipRect(); + break; + case 1: + draw_list->PushClipRect(p0, p1, true); + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); + draw_list->PopClipRect(); + break; + case 2: + ImVec4 clip_rect(p0.x, p0.y, p1.x, p1.y); // AddText() takes a ImVec4* here so let's convert. + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(ImGui::GetFont(), ImGui::GetFontSize(), text_pos, IM_COL32_WHITE, text_str, NULL, 0.0f, &clip_rect); + break; + } + } + + ImGui::TreePop(); + } +} + +static void ShowDemoWindowPopups() +{ + IMGUI_DEMO_MARKER("Popups"); + if (!ImGui::CollapsingHeader("Popups & Modal windows")) + return; + + // The properties of popups windows are: + // - They block normal mouse hovering detection outside them. (*) + // - Unless modal, they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - Their visibility state (~bool) is held internally by Dear ImGui instead of being held by the programmer as + // we are used to with regular Begin() calls. User can manipulate the visibility state by calling OpenPopup(). + // (*) One can use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup) to bypass it and detect hovering even + // when normally blocked by a popup. + // Those three properties are connected. The library needs to hold their visibility state BECAUSE it can close + // popups at any time. + + // Typical use for regular windows: + // bool my_tool_is_active = false; if (ImGui::Button("Open")) my_tool_is_active = true; [...] if (my_tool_is_active) Begin("My Tool", &my_tool_is_active) { [...] } End(); + // Typical use for popups: + // if (ImGui::Button("Open")) ImGui::OpenPopup("MyPopup"); if (ImGui::BeginPopup("MyPopup") { [...] EndPopup(); } + + // With popups we have to go through a library call (here OpenPopup) to manipulate the visibility state. + // This may be a bit confusing at first but it should quickly make sense. Follow on the examples below. + + IMGUI_DEMO_MARKER("Popups/Popups"); + if (ImGui::TreeNode("Popups")) + { + ImGui::TextWrapped( + "When a popup is active, it inhibits interacting with windows that are behind the popup. " + "Clicking outside the popup closes it."); + + static int selected_fish = -1; + const char* names[] = { "Bream", "Haddock", "Mackerel", "Pollock", "Tilefish" }; + static bool toggles[] = { true, false, false, false, false }; + + // Simple selection popup (if you want to show the current selection inside the Button itself, + // you may want to build a string using the "###" operator to preserve a constant ID with a variable label) + if (ImGui::Button("Select..")) + ImGui::OpenPopup("my_select_popup"); + ImGui::SameLine(); + ImGui::TextUnformatted(selected_fish == -1 ? "" : names[selected_fish]); + if (ImGui::BeginPopup("my_select_popup")) + { + ImGui::Text("Aquarium"); + ImGui::Separator(); + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + if (ImGui::Selectable(names[i])) + selected_fish = i; + ImGui::EndPopup(); + } + + // Showing a menu with toggles + if (ImGui::Button("Toggle..")) + ImGui::OpenPopup("my_toggle_popup"); + if (ImGui::BeginPopup("my_toggle_popup")) + { + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + ImGui::MenuItem(names[i], "", &toggles[i]); + if (ImGui::BeginMenu("Sub-menu")) + { + ImGui::MenuItem("Click me"); + ImGui::EndMenu(); + } + + ImGui::Separator(); + ImGui::Text("Tooltip here"); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("I am a tooltip over a popup"); + + if (ImGui::Button("Stacked Popup")) + ImGui::OpenPopup("another popup"); + if (ImGui::BeginPopup("another popup")) + { + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + ImGui::MenuItem(names[i], "", &toggles[i]); + if (ImGui::BeginMenu("Sub-menu")) + { + ImGui::MenuItem("Click me"); + if (ImGui::Button("Stacked Popup")) + ImGui::OpenPopup("another popup"); + if (ImGui::BeginPopup("another popup")) + { + ImGui::Text("I am the last one here."); + ImGui::EndPopup(); + } + ImGui::EndMenu(); + } + ImGui::EndPopup(); + } + ImGui::EndPopup(); + } + + // Call the more complete ShowExampleMenuFile which we use in various places of this demo + if (ImGui::Button("With a menu..")) + ImGui::OpenPopup("my_file_popup"); + if (ImGui::BeginPopup("my_file_popup", ImGuiWindowFlags_MenuBar)) + { + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Edit")) + { + ImGui::MenuItem("Dummy"); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + ImGui::Text("Hello from popup!"); + ImGui::Button("This is a dummy button.."); + ImGui::EndPopup(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Popups/Context menus"); + if (ImGui::TreeNode("Context menus")) + { + HelpMarker("\"Context\" functions are simple helpers to associate a Popup to a given Item or Window identifier."); + + // BeginPopupContextItem() is a helper to provide common/simple popup behavior of essentially doing: + // if (id == 0) + // id = GetItemID(); // Use last item id + // if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) + // OpenPopup(id); + // return BeginPopup(id); + // For advanced uses you may want to replicate and customize this code. + // See more details in BeginPopupContextItem(). + + // Example 1 + // When used after an item that has an ID (e.g. Button), we can skip providing an ID to BeginPopupContextItem(), + // and BeginPopupContextItem() will use the last item ID as the popup ID. + { + const char* names[5] = { "Label1", "Label2", "Label3", "Label4", "Label5" }; + for (int n = 0; n < 5; n++) + { + ImGui::Selectable(names[n]); + if (ImGui::BeginPopupContextItem()) // <-- use last item id as popup id + { + ImGui::Text("This a popup for \"%s\"!", names[n]); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("Right-click to open popup"); + } + } + + // Example 2 + // Popup on a Text() element which doesn't have an identifier: we need to provide an identifier to BeginPopupContextItem(). + // Using an explicit identifier is also convenient if you want to activate the popups from different locations. + { + HelpMarker("Text() elements don't have stable identifiers so we need to provide one."); + static float value = 0.5f; + ImGui::Text("Value = %.3f <-- (1) right-click this text", value); + if (ImGui::BeginPopupContextItem("my popup")) + { + if (ImGui::Selectable("Set to zero")) value = 0.0f; + if (ImGui::Selectable("Set to PI")) value = 3.1415f; + ImGui::SetNextItemWidth(-FLT_MIN); + ImGui::DragFloat("##Value", &value, 0.1f, 0.0f, 0.0f); + ImGui::EndPopup(); + } + + // We can also use OpenPopupOnItemClick() to toggle the visibility of a given popup. + // Here we make it that right-clicking this other text element opens the same popup as above. + // The popup itself will be submitted by the code above. + ImGui::Text("(2) Or right-click this text"); + ImGui::OpenPopupOnItemClick("my popup", ImGuiPopupFlags_MouseButtonRight); + + // Back to square one: manually open the same popup. + if (ImGui::Button("(3) Or click this button")) + ImGui::OpenPopup("my popup"); + } + + // Example 3 + // When using BeginPopupContextItem() with an implicit identifier (NULL == use last item ID), + // we need to make sure your item identifier is stable. + // In this example we showcase altering the item label while preserving its identifier, using the ### operator (see FAQ). + { + HelpMarker("Showcase using a popup ID linked to item ID, with the item having a changing label + stable ID using the ### operator."); + static char name[32] = "Label1"; + char buf[64]; + sprintf(buf, "Button: %s###Button", name); // ### operator override ID ignoring the preceding label + ImGui::Button(buf); + if (ImGui::BeginPopupContextItem()) + { + ImGui::Text("Edit name:"); + ImGui::InputText("##edit", name, IM_ARRAYSIZE(name)); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::SameLine(); ImGui::Text("(<-- right-click here)"); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Popups/Modals"); + if (ImGui::TreeNode("Modals")) + { + ImGui::TextWrapped("Modal windows are like popups but the user cannot close them by clicking outside."); + + if (ImGui::Button("Delete..")) + ImGui::OpenPopup("Delete?"); + + // Always center this window when appearing + ImVec2 center = ImGui::GetMainViewport()->GetCenter(); + ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f)); + + if (ImGui::BeginPopupModal("Delete?", NULL, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::Text("All those beautiful files will be deleted.\nThis operation cannot be undone!\n\n"); + ImGui::Separator(); + + //static int unused_i = 0; + //ImGui::Combo("Combo", &unused_i, "Delete\0Delete harder\0"); + + static bool dont_ask_me_next_time = false; + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); + ImGui::Checkbox("Don't ask me next time", &dont_ask_me_next_time); + ImGui::PopStyleVar(); + + if (ImGui::Button("OK", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } + ImGui::SetItemDefaultFocus(); + ImGui::SameLine(); + if (ImGui::Button("Cancel", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } + ImGui::EndPopup(); + } + + if (ImGui::Button("Stacked modals..")) + ImGui::OpenPopup("Stacked 1"); + if (ImGui::BeginPopupModal("Stacked 1", NULL, ImGuiWindowFlags_MenuBar)) + { + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + if (ImGui::MenuItem("Some menu item")) {} + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + ImGui::Text("Hello from Stacked The First\nUsing style.Colors[ImGuiCol_ModalWindowDimBg] behind it."); + + // Testing behavior of widgets stacking their own regular popups over the modal. + static int item = 1; + static float color[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::Combo("Combo", &item, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); + ImGui::ColorEdit4("color", color); + + if (ImGui::Button("Add another modal..")) + ImGui::OpenPopup("Stacked 2"); + + // Also demonstrate passing a bool* to BeginPopupModal(), this will create a regular close button which + // will close the popup. Note that the visibility state of popups is owned by imgui, so the input value + // of the bool actually doesn't matter here. + bool unused_open = true; + if (ImGui::BeginPopupModal("Stacked 2", &unused_open)) + { + ImGui::Text("Hello from Stacked The Second!"); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Popups/Menus inside a regular window"); + if (ImGui::TreeNode("Menus inside a regular window")) + { + ImGui::TextWrapped("Below we are testing adding menu items to a regular window. It's rather unusual but should work!"); + ImGui::Separator(); + + ImGui::MenuItem("Menu item", "CTRL+M"); + if (ImGui::BeginMenu("Menu inside a regular window")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::Separator(); + ImGui::TreePop(); + } +} + +// Dummy data structure that we use for the Table demo. +// (pre-C++11 doesn't allow us to instantiate ImVector template if this structure is defined inside the demo function) +namespace +{ +// We are passing our own identifier to TableSetupColumn() to facilitate identifying columns in the sorting code. +// This identifier will be passed down into ImGuiTableSortSpec::ColumnUserID. +// But it is possible to omit the user id parameter of TableSetupColumn() and just use the column index instead! (ImGuiTableSortSpec::ColumnIndex) +// If you don't use sorting, you will generally never care about giving column an ID! +enum MyItemColumnID +{ + MyItemColumnID_ID, + MyItemColumnID_Name, + MyItemColumnID_Action, + MyItemColumnID_Quantity, + MyItemColumnID_Description +}; + +struct MyItem +{ + int ID; + const char* Name; + int Quantity; + + // We have a problem which is affecting _only this demo_ and should not affect your code: + // As we don't rely on std:: or other third-party library to compile dear imgui, we only have reliable access to qsort(), + // however qsort doesn't allow passing user data to comparing function. + // As a workaround, we are storing the sort specs in a static/global for the comparing function to access. + // In your own use case you would probably pass the sort specs to your sorting/comparing functions directly and not use a global. + // We could technically call ImGui::TableGetSortSpecs() in CompareWithSortSpecs(), but considering that this function is called + // very often by the sorting algorithm it would be a little wasteful. + static const ImGuiTableSortSpecs* s_current_sort_specs; + + // Compare function to be used by qsort() + static int IMGUI_CDECL CompareWithSortSpecs(const void* lhs, const void* rhs) + { + const MyItem* a = (const MyItem*)lhs; + const MyItem* b = (const MyItem*)rhs; + for (int n = 0; n < s_current_sort_specs->SpecsCount; n++) + { + // Here we identify columns using the ColumnUserID value that we ourselves passed to TableSetupColumn() + // We could also choose to identify columns based on their index (sort_spec->ColumnIndex), which is simpler! + const ImGuiTableColumnSortSpecs* sort_spec = &s_current_sort_specs->Specs[n]; + int delta = 0; + switch (sort_spec->ColumnUserID) + { + case MyItemColumnID_ID: delta = (a->ID - b->ID); break; + case MyItemColumnID_Name: delta = (strcmp(a->Name, b->Name)); break; + case MyItemColumnID_Quantity: delta = (a->Quantity - b->Quantity); break; + case MyItemColumnID_Description: delta = (strcmp(a->Name, b->Name)); break; + default: IM_ASSERT(0); break; + } + if (delta > 0) + return (sort_spec->SortDirection == ImGuiSortDirection_Ascending) ? +1 : -1; + if (delta < 0) + return (sort_spec->SortDirection == ImGuiSortDirection_Ascending) ? -1 : +1; + } + + // qsort() is instable so always return a way to differenciate items. + // Your own compare function may want to avoid fallback on implicit sort specs e.g. a Name compare if it wasn't already part of the sort specs. + return (a->ID - b->ID); + } +}; +const ImGuiTableSortSpecs* MyItem::s_current_sort_specs = NULL; +} + +// Make the UI compact because there are so many fields +static void PushStyleCompact() +{ + ImGuiStyle& style = ImGui::GetStyle(); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(style.FramePadding.x, (float)(int)(style.FramePadding.y * 0.60f))); + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x, (float)(int)(style.ItemSpacing.y * 0.60f))); +} + +static void PopStyleCompact() +{ + ImGui::PopStyleVar(2); +} + +// Show a combo box with a choice of sizing policies +static void EditTableSizingFlags(ImGuiTableFlags* p_flags) +{ + struct EnumDesc { ImGuiTableFlags Value; const char* Name; const char* Tooltip; }; + static const EnumDesc policies[] = + { + { ImGuiTableFlags_None, "Default", "Use default sizing policy:\n- ImGuiTableFlags_SizingFixedFit if ScrollX is on or if host window has ImGuiWindowFlags_AlwaysAutoResize.\n- ImGuiTableFlags_SizingStretchSame otherwise." }, + { ImGuiTableFlags_SizingFixedFit, "ImGuiTableFlags_SizingFixedFit", "Columns default to _WidthFixed (if resizable) or _WidthAuto (if not resizable), matching contents width." }, + { ImGuiTableFlags_SizingFixedSame, "ImGuiTableFlags_SizingFixedSame", "Columns are all the same width, matching the maximum contents width.\nImplicitly disable ImGuiTableFlags_Resizable and enable ImGuiTableFlags_NoKeepColumnsVisible." }, + { ImGuiTableFlags_SizingStretchProp, "ImGuiTableFlags_SizingStretchProp", "Columns default to _WidthStretch with weights proportional to their widths." }, + { ImGuiTableFlags_SizingStretchSame, "ImGuiTableFlags_SizingStretchSame", "Columns default to _WidthStretch with same weights." } + }; + int idx; + for (idx = 0; idx < IM_ARRAYSIZE(policies); idx++) + if (policies[idx].Value == (*p_flags & ImGuiTableFlags_SizingMask_)) + break; + const char* preview_text = (idx < IM_ARRAYSIZE(policies)) ? policies[idx].Name + (idx > 0 ? strlen("ImGuiTableFlags") : 0) : ""; + if (ImGui::BeginCombo("Sizing Policy", preview_text)) + { + for (int n = 0; n < IM_ARRAYSIZE(policies); n++) + if (ImGui::Selectable(policies[n].Name, idx == n)) + *p_flags = (*p_flags & ~ImGuiTableFlags_SizingMask_) | policies[n].Value; + ImGui::EndCombo(); + } + ImGui::SameLine(); + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 50.0f); + for (int m = 0; m < IM_ARRAYSIZE(policies); m++) + { + ImGui::Separator(); + ImGui::Text("%s:", policies[m].Name); + ImGui::Separator(); + ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetStyle().IndentSpacing * 0.5f); + ImGui::TextUnformatted(policies[m].Tooltip); + } + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +static void EditTableColumnsFlags(ImGuiTableColumnFlags* p_flags) +{ + ImGui::CheckboxFlags("_Disabled", p_flags, ImGuiTableColumnFlags_Disabled); ImGui::SameLine(); HelpMarker("Master disable flag (also hide from context menu)"); + ImGui::CheckboxFlags("_DefaultHide", p_flags, ImGuiTableColumnFlags_DefaultHide); + ImGui::CheckboxFlags("_DefaultSort", p_flags, ImGuiTableColumnFlags_DefaultSort); + if (ImGui::CheckboxFlags("_WidthStretch", p_flags, ImGuiTableColumnFlags_WidthStretch)) + *p_flags &= ~(ImGuiTableColumnFlags_WidthMask_ ^ ImGuiTableColumnFlags_WidthStretch); + if (ImGui::CheckboxFlags("_WidthFixed", p_flags, ImGuiTableColumnFlags_WidthFixed)) + *p_flags &= ~(ImGuiTableColumnFlags_WidthMask_ ^ ImGuiTableColumnFlags_WidthFixed); + ImGui::CheckboxFlags("_NoResize", p_flags, ImGuiTableColumnFlags_NoResize); + ImGui::CheckboxFlags("_NoReorder", p_flags, ImGuiTableColumnFlags_NoReorder); + ImGui::CheckboxFlags("_NoHide", p_flags, ImGuiTableColumnFlags_NoHide); + ImGui::CheckboxFlags("_NoClip", p_flags, ImGuiTableColumnFlags_NoClip); + ImGui::CheckboxFlags("_NoSort", p_flags, ImGuiTableColumnFlags_NoSort); + ImGui::CheckboxFlags("_NoSortAscending", p_flags, ImGuiTableColumnFlags_NoSortAscending); + ImGui::CheckboxFlags("_NoSortDescending", p_flags, ImGuiTableColumnFlags_NoSortDescending); + ImGui::CheckboxFlags("_NoHeaderLabel", p_flags, ImGuiTableColumnFlags_NoHeaderLabel); + ImGui::CheckboxFlags("_NoHeaderWidth", p_flags, ImGuiTableColumnFlags_NoHeaderWidth); + ImGui::CheckboxFlags("_PreferSortAscending", p_flags, ImGuiTableColumnFlags_PreferSortAscending); + ImGui::CheckboxFlags("_PreferSortDescending", p_flags, ImGuiTableColumnFlags_PreferSortDescending); + ImGui::CheckboxFlags("_IndentEnable", p_flags, ImGuiTableColumnFlags_IndentEnable); ImGui::SameLine(); HelpMarker("Default for column 0"); + ImGui::CheckboxFlags("_IndentDisable", p_flags, ImGuiTableColumnFlags_IndentDisable); ImGui::SameLine(); HelpMarker("Default for column >0"); +} + +static void ShowTableColumnsStatusFlags(ImGuiTableColumnFlags flags) +{ + ImGui::CheckboxFlags("_IsEnabled", &flags, ImGuiTableColumnFlags_IsEnabled); + ImGui::CheckboxFlags("_IsVisible", &flags, ImGuiTableColumnFlags_IsVisible); + ImGui::CheckboxFlags("_IsSorted", &flags, ImGuiTableColumnFlags_IsSorted); + ImGui::CheckboxFlags("_IsHovered", &flags, ImGuiTableColumnFlags_IsHovered); +} + +static void ShowDemoWindowTables() +{ + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); + IMGUI_DEMO_MARKER("Tables"); + if (!ImGui::CollapsingHeader("Tables & Columns")) + return; + + // Using those as a base value to create width/height that are factor of the size of our font + const float TEXT_BASE_WIDTH = ImGui::CalcTextSize("A").x; + const float TEXT_BASE_HEIGHT = ImGui::GetTextLineHeightWithSpacing(); + + ImGui::PushID("Tables"); + + int open_action = -1; + if (ImGui::Button("Open all")) + open_action = 1; + ImGui::SameLine(); + if (ImGui::Button("Close all")) + open_action = 0; + ImGui::SameLine(); + + // Options + static bool disable_indent = false; + ImGui::Checkbox("Disable tree indentation", &disable_indent); + ImGui::SameLine(); + HelpMarker("Disable the indenting of tree nodes so demo tables can use the full window width."); + ImGui::Separator(); + if (disable_indent) + ImGui::PushStyleVar(ImGuiStyleVar_IndentSpacing, 0.0f); + + // About Styling of tables + // Most settings are configured on a per-table basis via the flags passed to BeginTable() and TableSetupColumns APIs. + // There are however a few settings that a shared and part of the ImGuiStyle structure: + // style.CellPadding // Padding within each cell + // style.Colors[ImGuiCol_TableHeaderBg] // Table header background + // style.Colors[ImGuiCol_TableBorderStrong] // Table outer and header borders + // style.Colors[ImGuiCol_TableBorderLight] // Table inner borders + // style.Colors[ImGuiCol_TableRowBg] // Table row background when ImGuiTableFlags_RowBg is enabled (even rows) + // style.Colors[ImGuiCol_TableRowBgAlt] // Table row background when ImGuiTableFlags_RowBg is enabled (odds rows) + + // Demos + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Basic"); + if (ImGui::TreeNode("Basic")) + { + // Here we will showcase three different ways to output a table. + // They are very simple variations of a same thing! + + // [Method 1] Using TableNextRow() to create a new row, and TableSetColumnIndex() to select the column. + // In many situations, this is the most flexible and easy to use pattern. + HelpMarker("Using TableNextRow() + calling TableSetColumnIndex() _before_ each cell, in a loop."); + if (ImGui::BeginTable("table1", 3)) + { + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Row %d Column %d", row, column); + } + } + ImGui::EndTable(); + } + + // [Method 2] Using TableNextColumn() called multiple times, instead of using a for loop + TableSetColumnIndex(). + // This is generally more convenient when you have code manually submitting the contents of each column. + HelpMarker("Using TableNextRow() + calling TableNextColumn() _before_ each cell, manually."); + if (ImGui::BeginTable("table2", 3)) + { + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Text("Row %d", row); + ImGui::TableNextColumn(); + ImGui::Text("Some contents"); + ImGui::TableNextColumn(); + ImGui::Text("123.456"); + } + ImGui::EndTable(); + } + + // [Method 3] We call TableNextColumn() _before_ each cell. We never call TableNextRow(), + // as TableNextColumn() will automatically wrap around and create new rows as needed. + // This is generally more convenient when your cells all contains the same type of data. + HelpMarker( + "Only using TableNextColumn(), which tends to be convenient for tables where every cell contains the same type of contents.\n" + "This is also more similar to the old NextColumn() function of the Columns API, and provided to facilitate the Columns->Tables API transition."); + if (ImGui::BeginTable("table3", 3)) + { + for (int item = 0; item < 14; item++) + { + ImGui::TableNextColumn(); + ImGui::Text("Item %d", item); + } + ImGui::EndTable(); + } + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Borders, background"); + if (ImGui::TreeNode("Borders, background")) + { + // Expose a few Borders related flags interactively + enum ContentsType { CT_Text, CT_FillButton }; + static ImGuiTableFlags flags = ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg; + static bool display_headers = false; + static int contents_type = CT_Text; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); + ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags, ImGuiTableFlags_Borders); + ImGui::SameLine(); HelpMarker("ImGuiTableFlags_Borders\n = ImGuiTableFlags_BordersInnerV\n | ImGuiTableFlags_BordersOuterV\n | ImGuiTableFlags_BordersInnerV\n | ImGuiTableFlags_BordersOuterH"); + ImGui::Indent(); + + ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); + ImGui::Indent(); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); + ImGui::Unindent(); + + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); + ImGui::Indent(); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags, ImGuiTableFlags_BordersOuterV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags, ImGuiTableFlags_BordersInnerV); + ImGui::Unindent(); + + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuter", &flags, ImGuiTableFlags_BordersOuter); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInner", &flags, ImGuiTableFlags_BordersInner); + ImGui::Unindent(); + + ImGui::AlignTextToFramePadding(); ImGui::Text("Cell contents:"); + ImGui::SameLine(); ImGui::RadioButton("Text", &contents_type, CT_Text); + ImGui::SameLine(); ImGui::RadioButton("FillButton", &contents_type, CT_FillButton); + ImGui::Checkbox("Display headers", &display_headers); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + // Display headers so we can inspect their interaction with borders. + // (Headers are not the main purpose of this section of the demo, so we are not elaborating on them too much. See other sections for details) + if (display_headers) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + } + + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + char buf[32]; + sprintf(buf, "Hello %d,%d", column, row); + if (contents_type == CT_Text) + ImGui::TextUnformatted(buf); + else if (contents_type == CT_FillButton) + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Resizable, stretch"); + if (ImGui::TreeNode("Resizable, stretch")) + { + // By default, if we don't enable ScrollX the sizing policy for each column is "Stretch" + // All columns maintain a sizing weight, and they will occupy all available width. + static ImGuiTableFlags flags = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); + ImGui::SameLine(); HelpMarker("Using the _Resizable flag automatically enables the _BordersInnerV flag as well, this is why the resize borders are still showing when unchecking this."); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Resizable, fixed"); + if (ImGui::TreeNode("Resizable, fixed")) + { + // Here we use ImGuiTableFlags_SizingFixedFit (even though _ScrollX is not set) + // So columns will adopt the "Fixed" policy and will maintain a fixed width regardless of the whole available width (unless table is small) + // If there is not enough available width to fit all columns, they will however be resized down. + // FIXME-TABLE: Providing a stretch-on-init would make sense especially for tables which don't have saved settings + HelpMarker( + "Using _Resizable + _SizingFixedFit flags.\n" + "Fixed-width columns generally makes more sense if you want to use horizontal scrolling.\n\n" + "Double-click a column border to auto-fit the column to its contents."); + PushStyleCompact(); + static ImGuiTableFlags flags = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Resizable, mixed"); + if (ImGui::TreeNode("Resizable, mixed")) + { + HelpMarker( + "Using TableSetupColumn() to alter resizing policy on a per-column basis.\n\n" + "When combining Fixed and Stretch columns, generally you only want one, maybe two trailing columns to use _WidthStretch."); + static ImGuiTableFlags flags = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_RowBg | ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; + + if (ImGui::BeginTable("table1", 3, flags)) + { + ImGui::TableSetupColumn("AAA", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("BBB", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("CCC", ImGuiTableColumnFlags_WidthStretch); + ImGui::TableHeadersRow(); + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%s %d,%d", (column == 2) ? "Stretch" : "Fixed", column, row); + } + } + ImGui::EndTable(); + } + if (ImGui::BeginTable("table2", 6, flags)) + { + ImGui::TableSetupColumn("AAA", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("BBB", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("CCC", ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_DefaultHide); + ImGui::TableSetupColumn("DDD", ImGuiTableColumnFlags_WidthStretch); + ImGui::TableSetupColumn("EEE", ImGuiTableColumnFlags_WidthStretch); + ImGui::TableSetupColumn("FFF", ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_DefaultHide); + ImGui::TableHeadersRow(); + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 6; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%s %d,%d", (column >= 3) ? "Stretch" : "Fixed", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Reorderable, hideable, with headers"); + if (ImGui::TreeNode("Reorderable, hideable, with headers")) + { + HelpMarker( + "Click and drag column headers to reorder columns.\n\n" + "Right-click on a header to open a context menu."); + static ImGuiTableFlags flags = ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + // Submit columns name with TableSetupColumn() and call TableHeadersRow() to create a row with a header in each column. + // (Later we will show how TableSetupColumn() has other uses, optional flags, sizing weight etc.) + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + for (int row = 0; row < 6; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + // Use outer_size.x == 0.0f instead of default to make the table as tight as possible (only valid when no scrolling and no stretch column) + if (ImGui::BeginTable("table2", 3, flags | ImGuiTableFlags_SizingFixedFit, ImVec2(0.0f, 0.0f))) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + for (int row = 0; row < 6; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Fixed %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Padding"); + if (ImGui::TreeNode("Padding")) + { + // First example: showcase use of padding flags and effect of BorderOuterV/BorderInnerV on X padding. + // We don't expose BorderOuterH/BorderInnerH here because they have no effect on X padding. + HelpMarker( + "We often want outer padding activated when any using features which makes the edges of a column visible:\n" + "e.g.:\n" + "- BorderOuterV\n" + "- any form of row selection\n" + "Because of this, activating BorderOuterV sets the default to PadOuterX. Using PadOuterX or NoPadOuterX you can override the default.\n\n" + "Actual padding values are using style.CellPadding.\n\n" + "In this demo we don't show horizontal borders to emphasize how they don't affect default horizontal padding."); + + static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_PadOuterX", &flags1, ImGuiTableFlags_PadOuterX); + ImGui::SameLine(); HelpMarker("Enable outer-most padding (default if ImGuiTableFlags_BordersOuterV is set)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadOuterX", &flags1, ImGuiTableFlags_NoPadOuterX); + ImGui::SameLine(); HelpMarker("Disable outer-most padding (default if ImGuiTableFlags_BordersOuterV is not set)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadInnerX", &flags1, ImGuiTableFlags_NoPadInnerX); + ImGui::SameLine(); HelpMarker("Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off)"); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags1, ImGuiTableFlags_BordersOuterV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags1, ImGuiTableFlags_BordersInnerV); + static bool show_headers = false; + ImGui::Checkbox("show_headers", &show_headers); + PopStyleCompact(); + + if (ImGui::BeginTable("table_padding", 3, flags1)) + { + if (show_headers) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + } + + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + if (row == 0) + { + ImGui::Text("Avail %.2f", ImGui::GetContentRegionAvail().x); + } + else + { + char buf[32]; + sprintf(buf, "Hello %d,%d", column, row); + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + } + //if (ImGui::TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) + // ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, IM_COL32(0, 100, 0, 255)); + } + } + ImGui::EndTable(); + } + + // Second example: set style.CellPadding to (0.0) or a custom value. + // FIXME-TABLE: Vertical border effectively not displayed the same way as horizontal one... + HelpMarker("Setting style.CellPadding to (0,0) or a custom value."); + static ImGuiTableFlags flags2 = ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg; + static ImVec2 cell_padding(0.0f, 0.0f); + static bool show_widget_frame_bg = true; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags2, ImGuiTableFlags_Borders); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags2, ImGuiTableFlags_BordersH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags2, ImGuiTableFlags_BordersV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInner", &flags2, ImGuiTableFlags_BordersInner); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuter", &flags2, ImGuiTableFlags_BordersOuter); + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags2, ImGuiTableFlags_RowBg); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags2, ImGuiTableFlags_Resizable); + ImGui::Checkbox("show_widget_frame_bg", &show_widget_frame_bg); + ImGui::SliderFloat2("CellPadding", &cell_padding.x, 0.0f, 10.0f, "%.0f"); + PopStyleCompact(); + + ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, cell_padding); + if (ImGui::BeginTable("table_padding_2", 3, flags2)) + { + static char text_bufs[3 * 5][16]; // Mini text storage for 3x5 cells + static bool init = true; + if (!show_widget_frame_bg) + ImGui::PushStyleColor(ImGuiCol_FrameBg, 0); + for (int cell = 0; cell < 3 * 5; cell++) + { + ImGui::TableNextColumn(); + if (init) + strcpy(text_bufs[cell], "edit me"); + ImGui::SetNextItemWidth(-FLT_MIN); + ImGui::PushID(cell); + ImGui::InputText("##cell", text_bufs[cell], IM_ARRAYSIZE(text_bufs[cell])); + ImGui::PopID(); + } + if (!show_widget_frame_bg) + ImGui::PopStyleColor(); + init = false; + ImGui::EndTable(); + } + ImGui::PopStyleVar(); + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Explicit widths"); + if (ImGui::TreeNode("Sizing policies")) + { + static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV | ImGuiTableFlags_BordersOuterH | ImGuiTableFlags_RowBg | ImGuiTableFlags_ContextMenuInBody; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags1, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags1, ImGuiTableFlags_NoHostExtendX); + PopStyleCompact(); + + static ImGuiTableFlags sizing_policy_flags[4] = { ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_SizingFixedSame, ImGuiTableFlags_SizingStretchProp, ImGuiTableFlags_SizingStretchSame }; + for (int table_n = 0; table_n < 4; table_n++) + { + ImGui::PushID(table_n); + ImGui::SetNextItemWidth(TEXT_BASE_WIDTH * 30); + EditTableSizingFlags(&sizing_policy_flags[table_n]); + + // To make it easier to understand the different sizing policy, + // For each policy: we display one table where the columns have equal contents width, and one where the columns have different contents width. + if (ImGui::BeginTable("table1", 3, sizing_policy_flags[table_n] | flags1)) + { + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); ImGui::Text("Oh dear"); + ImGui::TableNextColumn(); ImGui::Text("Oh dear"); + ImGui::TableNextColumn(); ImGui::Text("Oh dear"); + } + ImGui::EndTable(); + } + if (ImGui::BeginTable("table2", 3, sizing_policy_flags[table_n] | flags1)) + { + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); ImGui::Text("AAAA"); + ImGui::TableNextColumn(); ImGui::Text("BBBBBBBB"); + ImGui::TableNextColumn(); ImGui::Text("CCCCCCCCCCCC"); + } + ImGui::EndTable(); + } + ImGui::PopID(); + } + + ImGui::Spacing(); + ImGui::TextUnformatted("Advanced"); + ImGui::SameLine(); + HelpMarker("This section allows you to interact and see the effect of various sizing policies depending on whether Scroll is enabled and the contents of your columns."); + + enum ContentsType { CT_ShowWidth, CT_ShortText, CT_LongText, CT_Button, CT_FillButton, CT_InputText }; + static ImGuiTableFlags flags = ImGuiTableFlags_ScrollY | ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_Resizable; + static int contents_type = CT_ShowWidth; + static int column_count = 3; + + PushStyleCompact(); + ImGui::PushID("Advanced"); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 30); + EditTableSizingFlags(&flags); + ImGui::Combo("Contents", &contents_type, "Show width\0Short Text\0Long Text\0Button\0Fill Button\0InputText\0"); + if (contents_type == CT_FillButton) + { + ImGui::SameLine(); + HelpMarker("Be mindful that using right-alignment (e.g. size.x = -FLT_MIN) creates a feedback loop where contents width can feed into auto-column width can feed into contents width."); + } + ImGui::DragInt("Columns", &column_count, 0.1f, 1, 64, "%d", ImGuiSliderFlags_AlwaysClamp); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_PreciseWidths", &flags, ImGuiTableFlags_PreciseWidths); + ImGui::SameLine(); HelpMarker("Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth."); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::CheckboxFlags("ImGuiTableFlags_NoClip", &flags, ImGuiTableFlags_NoClip); + ImGui::PopItemWidth(); + ImGui::PopID(); + PopStyleCompact(); + + if (ImGui::BeginTable("table2", column_count, flags, ImVec2(0.0f, TEXT_BASE_HEIGHT * 7))) + { + for (int cell = 0; cell < 10 * column_count; cell++) + { + ImGui::TableNextColumn(); + int column = ImGui::TableGetColumnIndex(); + int row = ImGui::TableGetRowIndex(); + + ImGui::PushID(cell); + char label[32]; + static char text_buf[32] = ""; + sprintf(label, "Hello %d,%d", column, row); + switch (contents_type) + { + case CT_ShortText: ImGui::TextUnformatted(label); break; + case CT_LongText: ImGui::Text("Some %s text %d,%d\nOver two lines..", column == 0 ? "long" : "longeeer", column, row); break; + case CT_ShowWidth: ImGui::Text("W: %.1f", ImGui::GetContentRegionAvail().x); break; + case CT_Button: ImGui::Button(label); break; + case CT_FillButton: ImGui::Button(label, ImVec2(-FLT_MIN, 0.0f)); break; + case CT_InputText: ImGui::SetNextItemWidth(-FLT_MIN); ImGui::InputText("##", text_buf, IM_ARRAYSIZE(text_buf)); break; + } + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Vertical scrolling, with clipping"); + if (ImGui::TreeNode("Vertical scrolling, with clipping")) + { + HelpMarker("Here we activate ScrollY, which will create a child window container to allow hosting scrollable contents.\n\nWe also demonstrate using ImGuiListClipper to virtualize the submission of many items."); + static ImGuiTableFlags flags = ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + PopStyleCompact(); + + // When using ScrollX or ScrollY we need to specify a size for our table container! + // Otherwise by default the table will fit all available space, like a BeginChild() call. + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 8); + if (ImGui::BeginTable("table_scrolly", 3, flags, outer_size)) + { + ImGui::TableSetupScrollFreeze(0, 1); // Make top row always visible + ImGui::TableSetupColumn("One", ImGuiTableColumnFlags_None); + ImGui::TableSetupColumn("Two", ImGuiTableColumnFlags_None); + ImGui::TableSetupColumn("Three", ImGuiTableColumnFlags_None); + ImGui::TableHeadersRow(); + + // Demonstrate using clipper for large vertical lists + ImGuiListClipper clipper; + clipper.Begin(1000); + while (clipper.Step()) + { + for (int row = clipper.DisplayStart; row < clipper.DisplayEnd; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Horizontal scrolling"); + if (ImGui::TreeNode("Horizontal scrolling")) + { + HelpMarker( + "When ScrollX is enabled, the default sizing policy becomes ImGuiTableFlags_SizingFixedFit, " + "as automatically stretching columns doesn't make much sense with horizontal scrolling.\n\n" + "Also note that as of the current version, you will almost always want to enable ScrollY along with ScrollX," + "because the container window won't automatically extend vertically to fix contents (this may be improved in future versions)."); + static ImGuiTableFlags flags = ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; + static int freeze_cols = 1; + static int freeze_rows = 1; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_cols", &freeze_cols, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_rows", &freeze_rows, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + PopStyleCompact(); + + // When using ScrollX or ScrollY we need to specify a size for our table container! + // Otherwise by default the table will fit all available space, like a BeginChild() call. + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 8); + if (ImGui::BeginTable("table_scrollx", 7, flags, outer_size)) + { + ImGui::TableSetupScrollFreeze(freeze_cols, freeze_rows); + ImGui::TableSetupColumn("Line #", ImGuiTableColumnFlags_NoHide); // Make the first column not hideable to match our use of TableSetupScrollFreeze() + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableSetupColumn("Four"); + ImGui::TableSetupColumn("Five"); + ImGui::TableSetupColumn("Six"); + ImGui::TableHeadersRow(); + for (int row = 0; row < 20; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 7; column++) + { + // Both TableNextColumn() and TableSetColumnIndex() return true when a column is visible or performing width measurement. + // Because here we know that: + // - A) all our columns are contributing the same to row height + // - B) column 0 is always visible, + // We only always submit this one column and can skip others. + // More advanced per-column clipping behaviors may benefit from polling the status flags via TableGetColumnFlags(). + if (!ImGui::TableSetColumnIndex(column) && column > 0) + continue; + if (column == 0) + ImGui::Text("Line %d", row); + else + ImGui::Text("Hello world %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + ImGui::Spacing(); + ImGui::TextUnformatted("Stretch + ScrollX"); + ImGui::SameLine(); + HelpMarker( + "Showcase using Stretch columns + ScrollX together: " + "this is rather unusual and only makes sense when specifying an 'inner_width' for the table!\n" + "Without an explicit value, inner_width is == outer_size.x and therefore using Stretch columns + ScrollX together doesn't make sense."); + static ImGuiTableFlags flags2 = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_RowBg | ImGuiTableFlags_ContextMenuInBody; + static float inner_width = 1000.0f; + PushStyleCompact(); + ImGui::PushID("flags3"); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 30); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags2, ImGuiTableFlags_ScrollX); + ImGui::DragFloat("inner_width", &inner_width, 1.0f, 0.0f, FLT_MAX, "%.1f"); + ImGui::PopItemWidth(); + ImGui::PopID(); + PopStyleCompact(); + if (ImGui::BeginTable("table2", 7, flags2, outer_size, inner_width)) + { + for (int cell = 0; cell < 20 * 7; cell++) + { + ImGui::TableNextColumn(); + ImGui::Text("Hello world %d,%d", ImGui::TableGetColumnIndex(), ImGui::TableGetRowIndex()); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Columns flags"); + if (ImGui::TreeNode("Columns flags")) + { + // Create a first table just to show all the options/flags we want to make visible in our example! + const int column_count = 3; + const char* column_names[column_count] = { "One", "Two", "Three" }; + static ImGuiTableColumnFlags column_flags[column_count] = { ImGuiTableColumnFlags_DefaultSort, ImGuiTableColumnFlags_None, ImGuiTableColumnFlags_DefaultHide }; + static ImGuiTableColumnFlags column_flags_out[column_count] = { 0, 0, 0 }; // Output from TableGetColumnFlags() + + if (ImGui::BeginTable("table_columns_flags_checkboxes", column_count, ImGuiTableFlags_None)) + { + PushStyleCompact(); + for (int column = 0; column < column_count; column++) + { + ImGui::TableNextColumn(); + ImGui::PushID(column); + ImGui::AlignTextToFramePadding(); // FIXME-TABLE: Workaround for wrong text baseline propagation across columns + ImGui::Text("'%s'", column_names[column]); + ImGui::Spacing(); + ImGui::Text("Input flags:"); + EditTableColumnsFlags(&column_flags[column]); + ImGui::Spacing(); + ImGui::Text("Output flags:"); + ImGui::BeginDisabled(); + ShowTableColumnsStatusFlags(column_flags_out[column]); + ImGui::EndDisabled(); + ImGui::PopID(); + } + PopStyleCompact(); + ImGui::EndTable(); + } + + // Create the real table we care about for the example! + // We use a scrolling table to be able to showcase the difference between the _IsEnabled and _IsVisible flags above, otherwise in + // a non-scrolling table columns are always visible (unless using ImGuiTableFlags_NoKeepColumnsVisible + resizing the parent window down) + const ImGuiTableFlags flags + = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY + | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV + | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable; + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 9); + if (ImGui::BeginTable("table_columns_flags", column_count, flags, outer_size)) + { + for (int column = 0; column < column_count; column++) + ImGui::TableSetupColumn(column_names[column], column_flags[column]); + ImGui::TableHeadersRow(); + for (int column = 0; column < column_count; column++) + column_flags_out[column] = ImGui::TableGetColumnFlags(column); + float indent_step = (float)((int)TEXT_BASE_WIDTH / 2); + for (int row = 0; row < 8; row++) + { + ImGui::Indent(indent_step); // Add some indentation to demonstrate usage of per-column IndentEnable/IndentDisable flags. + ImGui::TableNextRow(); + for (int column = 0; column < column_count; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%s %s", (column == 0) ? "Indented" : "Hello", ImGui::TableGetColumnName(column)); + } + } + ImGui::Unindent(indent_step * 8.0f); + + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Columns widths"); + if (ImGui::TreeNode("Columns widths")) + { + HelpMarker("Using TableSetupColumn() to setup default width."); + + static ImGuiTableFlags flags1 = ImGuiTableFlags_Borders | ImGuiTableFlags_NoBordersInBodyUntilResize; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags1, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags1, ImGuiTableFlags_NoBordersInBodyUntilResize); + PopStyleCompact(); + if (ImGui::BeginTable("table1", 3, flags1)) + { + // We could also set ImGuiTableFlags_SizingFixedFit on the table and all columns will default to ImGuiTableColumnFlags_WidthFixed. + ImGui::TableSetupColumn("one", ImGuiTableColumnFlags_WidthFixed, 100.0f); // Default to 100.0f + ImGui::TableSetupColumn("two", ImGuiTableColumnFlags_WidthFixed, 200.0f); // Default to 200.0f + ImGui::TableSetupColumn("three", ImGuiTableColumnFlags_WidthFixed); // Default to auto + ImGui::TableHeadersRow(); + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + if (row == 0) + ImGui::Text("(w: %5.1f)", ImGui::GetContentRegionAvail().x); + else + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + HelpMarker("Using TableSetupColumn() to setup explicit width.\n\nUnless _NoKeepColumnsVisible is set, fixed columns with set width may still be shrunk down if there's not enough space in the host."); + + static ImGuiTableFlags flags2 = ImGuiTableFlags_None; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_NoKeepColumnsVisible", &flags2, ImGuiTableFlags_NoKeepColumnsVisible); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags2, ImGuiTableFlags_BordersInnerV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags2, ImGuiTableFlags_BordersOuterV); + PopStyleCompact(); + if (ImGui::BeginTable("table2", 4, flags2)) + { + // We could also set ImGuiTableFlags_SizingFixedFit on the table and all columns will default to ImGuiTableColumnFlags_WidthFixed. + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, 100.0f); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 15.0f); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 30.0f); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 15.0f); + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 4; column++) + { + ImGui::TableSetColumnIndex(column); + if (row == 0) + ImGui::Text("(w: %5.1f)", ImGui::GetContentRegionAvail().x); + else + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Nested tables"); + if (ImGui::TreeNode("Nested tables")) + { + HelpMarker("This demonstrates embedding a table into another table cell."); + + if (ImGui::BeginTable("table_nested1", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + ImGui::TableSetupColumn("A0"); + ImGui::TableSetupColumn("A1"); + ImGui::TableHeadersRow(); + + ImGui::TableNextColumn(); + ImGui::Text("A0 Row 0"); + { + float rows_height = TEXT_BASE_HEIGHT * 2; + if (ImGui::BeginTable("table_nested2", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + ImGui::TableSetupColumn("B0"); + ImGui::TableSetupColumn("B1"); + ImGui::TableHeadersRow(); + + ImGui::TableNextRow(ImGuiTableRowFlags_None, rows_height); + ImGui::TableNextColumn(); + ImGui::Text("B0 Row 0"); + ImGui::TableNextColumn(); + ImGui::Text("B1 Row 0"); + ImGui::TableNextRow(ImGuiTableRowFlags_None, rows_height); + ImGui::TableNextColumn(); + ImGui::Text("B0 Row 1"); + ImGui::TableNextColumn(); + ImGui::Text("B1 Row 1"); + + ImGui::EndTable(); + } + } + ImGui::TableNextColumn(); ImGui::Text("A1 Row 0"); + ImGui::TableNextColumn(); ImGui::Text("A0 Row 1"); + ImGui::TableNextColumn(); ImGui::Text("A1 Row 1"); + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Row height"); + if (ImGui::TreeNode("Row height")) + { + HelpMarker("You can pass a 'min_row_height' to TableNextRow().\n\nRows are padded with 'style.CellPadding.y' on top and bottom, so effectively the minimum row height will always be >= 'style.CellPadding.y * 2.0f'.\n\nWe cannot honor a _maximum_ row height as that would require a unique clipping rectangle per row."); + if (ImGui::BeginTable("table_row_height", 1, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersInnerV)) + { + for (int row = 0; row < 10; row++) + { + float min_row_height = (float)(int)(TEXT_BASE_HEIGHT * 0.30f * row); + ImGui::TableNextRow(ImGuiTableRowFlags_None, min_row_height); + ImGui::TableNextColumn(); + ImGui::Text("min_row_height = %.2f", min_row_height); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Outer size"); + if (ImGui::TreeNode("Outer size")) + { + // Showcasing use of ImGuiTableFlags_NoHostExtendX and ImGuiTableFlags_NoHostExtendY + // Important to that note how the two flags have slightly different behaviors! + ImGui::Text("Using NoHostExtendX and NoHostExtendY:"); + PushStyleCompact(); + static ImGuiTableFlags flags = ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_ContextMenuInBody | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoHostExtendX; + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); + ImGui::SameLine(); HelpMarker("Make outer width auto-fit to columns, overriding outer_size.x value.\n\nOnly available when ScrollX/ScrollY are disabled and Stretch columns are not used."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendY", &flags, ImGuiTableFlags_NoHostExtendY); + ImGui::SameLine(); HelpMarker("Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit).\n\nOnly available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible."); + PopStyleCompact(); + + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 5.5f); + if (ImGui::BeginTable("table1", 3, flags, outer_size)) + { + for (int row = 0; row < 10; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableNextColumn(); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::SameLine(); + ImGui::Text("Hello!"); + + ImGui::Spacing(); + + ImGui::Text("Using explicit size:"); + if (ImGui::BeginTable("table2", 3, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg, ImVec2(TEXT_BASE_WIDTH * 30, 0.0f))) + { + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableNextColumn(); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::SameLine(); + if (ImGui::BeginTable("table3", 3, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg, ImVec2(TEXT_BASE_WIDTH * 30, 0.0f))) + { + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(0, TEXT_BASE_HEIGHT * 1.5f); + for (int column = 0; column < 3; column++) + { + ImGui::TableNextColumn(); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Background color"); + if (ImGui::TreeNode("Background color")) + { + static ImGuiTableFlags flags = ImGuiTableFlags_RowBg; + static int row_bg_type = 1; + static int row_bg_target = 1; + static int cell_bg_type = 1; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags, ImGuiTableFlags_Borders); + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); + ImGui::SameLine(); HelpMarker("ImGuiTableFlags_RowBg automatically sets RowBg0 to alternative colors pulled from the Style."); + ImGui::Combo("row bg type", (int*)&row_bg_type, "None\0Red\0Gradient\0"); + ImGui::Combo("row bg target", (int*)&row_bg_target, "RowBg0\0RowBg1\0"); ImGui::SameLine(); HelpMarker("Target RowBg0 to override the alternating odd/even colors,\nTarget RowBg1 to blend with them."); + ImGui::Combo("cell bg type", (int*)&cell_bg_type, "None\0Blue\0"); ImGui::SameLine(); HelpMarker("We are colorizing cells to B1->C2 here."); + IM_ASSERT(row_bg_type >= 0 && row_bg_type <= 2); + IM_ASSERT(row_bg_target >= 0 && row_bg_target <= 1); + IM_ASSERT(cell_bg_type >= 0 && cell_bg_type <= 1); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 5, flags)) + { + for (int row = 0; row < 6; row++) + { + ImGui::TableNextRow(); + + // Demonstrate setting a row background color with 'ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBgX, ...)' + // We use a transparent color so we can see the one behind in case our target is RowBg1 and RowBg0 was already targeted by the ImGuiTableFlags_RowBg flag. + if (row_bg_type != 0) + { + ImU32 row_bg_color = ImGui::GetColorU32(row_bg_type == 1 ? ImVec4(0.7f, 0.3f, 0.3f, 0.65f) : ImVec4(0.2f + row * 0.1f, 0.2f, 0.2f, 0.65f)); // Flat or Gradient? + ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0 + row_bg_target, row_bg_color); + } + + // Fill cells + for (int column = 0; column < 5; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%c%c", 'A' + row, '0' + column); + + // Change background of Cells B1->C2 + // Demonstrate setting a cell background color with 'ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, ...)' + // (the CellBg color will be blended over the RowBg and ColumnBg colors) + // We can also pass a column number as a third parameter to TableSetBgColor() and do this outside the column loop. + if (row >= 1 && row <= 2 && column >= 1 && column <= 2 && cell_bg_type == 1) + { + ImU32 cell_bg_color = ImGui::GetColorU32(ImVec4(0.3f, 0.3f, 0.7f, 0.65f)); + ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, cell_bg_color); + } + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Tree view"); + if (ImGui::TreeNode("Tree view")) + { + static ImGuiTableFlags flags = ImGuiTableFlags_BordersV | ImGuiTableFlags_BordersOuterH | ImGuiTableFlags_Resizable | ImGuiTableFlags_RowBg | ImGuiTableFlags_NoBordersInBody; + + if (ImGui::BeginTable("3ways", 3, flags)) + { + // The first column will use the default _WidthStretch when ScrollX is Off and _WidthFixed when ScrollX is On + ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_NoHide); + ImGui::TableSetupColumn("Size", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 12.0f); + ImGui::TableSetupColumn("Type", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 18.0f); + ImGui::TableHeadersRow(); + + // Simple storage to output a dummy file-system. + struct MyTreeNode + { + const char* Name; + const char* Type; + int Size; + int ChildIdx; + int ChildCount; + static void DisplayNode(const MyTreeNode* node, const MyTreeNode* all_nodes) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + const bool is_folder = (node->ChildCount > 0); + if (is_folder) + { + bool open = ImGui::TreeNodeEx(node->Name, ImGuiTreeNodeFlags_SpanFullWidth); + ImGui::TableNextColumn(); + ImGui::TextDisabled("--"); + ImGui::TableNextColumn(); + ImGui::TextUnformatted(node->Type); + if (open) + { + for (int child_n = 0; child_n < node->ChildCount; child_n++) + DisplayNode(&all_nodes[node->ChildIdx + child_n], all_nodes); + ImGui::TreePop(); + } + } + else + { + ImGui::TreeNodeEx(node->Name, ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_SpanFullWidth); + ImGui::TableNextColumn(); + ImGui::Text("%d", node->Size); + ImGui::TableNextColumn(); + ImGui::TextUnformatted(node->Type); + } + } + }; + static const MyTreeNode nodes[] = + { + { "Root", "Folder", -1, 1, 3 }, // 0 + { "Music", "Folder", -1, 4, 2 }, // 1 + { "Textures", "Folder", -1, 6, 3 }, // 2 + { "desktop.ini", "System file", 1024, -1,-1 }, // 3 + { "File1_a.wav", "Audio file", 123000, -1,-1 }, // 4 + { "File1_b.wav", "Audio file", 456000, -1,-1 }, // 5 + { "Image001.png", "Image file", 203128, -1,-1 }, // 6 + { "Copy of Image001.png", "Image file", 203256, -1,-1 }, // 7 + { "Copy of Image001 (Final2).png","Image file", 203512, -1,-1 }, // 8 + }; + + MyTreeNode::DisplayNode(&nodes[0], nodes); + + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Item width"); + if (ImGui::TreeNode("Item width")) + { + HelpMarker( + "Showcase using PushItemWidth() and how it is preserved on a per-column basis.\n\n" + "Note that on auto-resizing non-resizable fixed columns, querying the content width for e.g. right-alignment doesn't make sense."); + if (ImGui::BeginTable("table_item_width", 3, ImGuiTableFlags_Borders)) + { + ImGui::TableSetupColumn("small"); + ImGui::TableSetupColumn("half"); + ImGui::TableSetupColumn("right-align"); + ImGui::TableHeadersRow(); + + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(); + if (row == 0) + { + // Setup ItemWidth once (instead of setting up every time, which is also possible but less efficient) + ImGui::TableSetColumnIndex(0); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 3.0f); // Small + ImGui::TableSetColumnIndex(1); + ImGui::PushItemWidth(-ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::TableSetColumnIndex(2); + ImGui::PushItemWidth(-FLT_MIN); // Right-aligned + } + + // Draw our contents + static float dummy_f = 0.0f; + ImGui::PushID(row); + ImGui::TableSetColumnIndex(0); + ImGui::SliderFloat("float0", &dummy_f, 0.0f, 1.0f); + ImGui::TableSetColumnIndex(1); + ImGui::SliderFloat("float1", &dummy_f, 0.0f, 1.0f); + ImGui::TableSetColumnIndex(2); + ImGui::SliderFloat("##float2", &dummy_f, 0.0f, 1.0f); // No visible label since right-aligned + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // Demonstrate using TableHeader() calls instead of TableHeadersRow() + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Custom headers"); + if (ImGui::TreeNode("Custom headers")) + { + const int COLUMNS_COUNT = 3; + if (ImGui::BeginTable("table_custom_headers", COLUMNS_COUNT, ImGuiTableFlags_Borders | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + ImGui::TableSetupColumn("Apricot"); + ImGui::TableSetupColumn("Banana"); + ImGui::TableSetupColumn("Cherry"); + + // Dummy entire-column selection storage + // FIXME: It would be nice to actually demonstrate full-featured selection using those checkbox. + static bool column_selected[3] = {}; + + // Instead of calling TableHeadersRow() we'll submit custom headers ourselves + ImGui::TableNextRow(ImGuiTableRowFlags_Headers); + for (int column = 0; column < COLUMNS_COUNT; column++) + { + ImGui::TableSetColumnIndex(column); + const char* column_name = ImGui::TableGetColumnName(column); // Retrieve name passed to TableSetupColumn() + ImGui::PushID(column); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); + ImGui::Checkbox("##checkall", &column_selected[column]); + ImGui::PopStyleVar(); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::TableHeader(column_name); + ImGui::PopID(); + } + + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + char buf[32]; + sprintf(buf, "Cell %d,%d", column, row); + ImGui::TableSetColumnIndex(column); + ImGui::Selectable(buf, column_selected[column]); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // Demonstrate creating custom context menus inside columns, while playing it nice with context menus provided by TableHeadersRow()/TableHeader() + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Context menus"); + if (ImGui::TreeNode("Context menus")) + { + HelpMarker("By default, right-clicking over a TableHeadersRow()/TableHeader() line will open the default context-menu.\nUsing ImGuiTableFlags_ContextMenuInBody we also allow right-clicking over columns body."); + static ImGuiTableFlags flags1 = ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders | ImGuiTableFlags_ContextMenuInBody; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_ContextMenuInBody", &flags1, ImGuiTableFlags_ContextMenuInBody); + PopStyleCompact(); + + // Context Menus: first example + // [1.1] Right-click on the TableHeadersRow() line to open the default table context menu. + // [1.2] Right-click in columns also open the default table context menu (if ImGuiTableFlags_ContextMenuInBody is set) + const int COLUMNS_COUNT = 3; + if (ImGui::BeginTable("table_context_menu", COLUMNS_COUNT, flags1)) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + + // [1.1]] Right-click on the TableHeadersRow() line to open the default table context menu. + ImGui::TableHeadersRow(); + + // Submit dummy contents + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < COLUMNS_COUNT; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + // Context Menus: second example + // [2.1] Right-click on the TableHeadersRow() line to open the default table context menu. + // [2.2] Right-click on the ".." to open a custom popup + // [2.3] Right-click in columns to open another custom popup + HelpMarker("Demonstrate mixing table context menu (over header), item context button (over button) and custom per-colum context menu (over column body)."); + ImGuiTableFlags flags2 = ImGuiTableFlags_Resizable | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders; + if (ImGui::BeginTable("table_context_menu_2", COLUMNS_COUNT, flags2)) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + + // [2.1] Right-click on the TableHeadersRow() line to open the default table context menu. + ImGui::TableHeadersRow(); + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < COLUMNS_COUNT; column++) + { + // Submit dummy contents + ImGui::TableSetColumnIndex(column); + ImGui::Text("Cell %d,%d", column, row); + ImGui::SameLine(); + + // [2.2] Right-click on the ".." to open a custom popup + ImGui::PushID(row * COLUMNS_COUNT + column); + ImGui::SmallButton(".."); + if (ImGui::BeginPopupContextItem()) + { + ImGui::Text("This is the popup for Button(\"..\") in Cell %d,%d", column, row); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::PopID(); + } + } + + // [2.3] Right-click anywhere in columns to open another custom popup + // (instead of testing for !IsAnyItemHovered() we could also call OpenPopup() with ImGuiPopupFlags_NoOpenOverExistingPopup + // to manage popup priority as the popups triggers, here "are we hovering a column" are overlapping) + int hovered_column = -1; + for (int column = 0; column < COLUMNS_COUNT + 1; column++) + { + ImGui::PushID(column); + if (ImGui::TableGetColumnFlags(column) & ImGuiTableColumnFlags_IsHovered) + hovered_column = column; + if (hovered_column == column && !ImGui::IsAnyItemHovered() && ImGui::IsMouseReleased(1)) + ImGui::OpenPopup("MyPopup"); + if (ImGui::BeginPopup("MyPopup")) + { + if (column == COLUMNS_COUNT) + ImGui::Text("This is a custom popup for unused space after the last column."); + else + ImGui::Text("This is a custom popup for Column %d", column); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::PopID(); + } + + ImGui::EndTable(); + ImGui::Text("Hovered column: %d", hovered_column); + } + ImGui::TreePop(); + } + + // Demonstrate creating multiple tables with the same ID + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Synced instances"); + if (ImGui::TreeNode("Synced instances")) + { + HelpMarker("Multiple tables with the same identifier will share their settings, width, visibility, order etc."); + for (int n = 0; n < 3; n++) + { + char buf[32]; + sprintf(buf, "Synced Table %d", n); + bool open = ImGui::CollapsingHeader(buf, ImGuiTreeNodeFlags_DefaultOpen); + if (open && ImGui::BeginTable("Table", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoSavedSettings)) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + for (int cell = 0; cell < 9; cell++) + { + ImGui::TableNextColumn(); + ImGui::Text("this cell %d", cell); + } + ImGui::EndTable(); + } + } + ImGui::TreePop(); + } + + // Demonstrate using Sorting facilities + // This is a simplified version of the "Advanced" example, where we mostly focus on the code necessary to handle sorting. + // Note that the "Advanced" example also showcase manually triggering a sort (e.g. if item quantities have been modified) + static const char* template_items_names[] = + { + "Banana", "Apple", "Cherry", "Watermelon", "Grapefruit", "Strawberry", "Mango", + "Kiwi", "Orange", "Pineapple", "Blueberry", "Plum", "Coconut", "Pear", "Apricot" + }; + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Sorting"); + if (ImGui::TreeNode("Sorting")) + { + // Create item list + static ImVector items; + if (items.Size == 0) + { + items.resize(50, MyItem()); + for (int n = 0; n < items.Size; n++) + { + const int template_n = n % IM_ARRAYSIZE(template_items_names); + MyItem& item = items[n]; + item.ID = n; + item.Name = template_items_names[template_n]; + item.Quantity = (n * n - n) % 20; // Assign default quantities + } + } + + // Options + static ImGuiTableFlags flags = + ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable | ImGuiTableFlags_SortMulti + | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_NoBordersInBody + | ImGuiTableFlags_ScrollY; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_SortMulti", &flags, ImGuiTableFlags_SortMulti); + ImGui::SameLine(); HelpMarker("When sorting is enabled: hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1)."); + ImGui::CheckboxFlags("ImGuiTableFlags_SortTristate", &flags, ImGuiTableFlags_SortTristate); + ImGui::SameLine(); HelpMarker("When sorting is enabled: allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0)."); + PopStyleCompact(); + + if (ImGui::BeginTable("table_sorting", 4, flags, ImVec2(0.0f, TEXT_BASE_HEIGHT * 15), 0.0f)) + { + // Declare columns + // We use the "user_id" parameter of TableSetupColumn() to specify a user id that will be stored in the sort specifications. + // This is so our sort function can identify a column given our own identifier. We could also identify them based on their index! + // Demonstrate using a mixture of flags among available sort-related flags: + // - ImGuiTableColumnFlags_DefaultSort + // - ImGuiTableColumnFlags_NoSort / ImGuiTableColumnFlags_NoSortAscending / ImGuiTableColumnFlags_NoSortDescending + // - ImGuiTableColumnFlags_PreferSortAscending / ImGuiTableColumnFlags_PreferSortDescending + ImGui::TableSetupColumn("ID", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_ID); + ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Name); + ImGui::TableSetupColumn("Action", ImGuiTableColumnFlags_NoSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Action); + ImGui::TableSetupColumn("Quantity", ImGuiTableColumnFlags_PreferSortDescending | ImGuiTableColumnFlags_WidthStretch, 0.0f, MyItemColumnID_Quantity); + ImGui::TableSetupScrollFreeze(0, 1); // Make row always visible + ImGui::TableHeadersRow(); + + // Sort our data if sort specs have been changed! + if (ImGuiTableSortSpecs* sorts_specs = ImGui::TableGetSortSpecs()) + if (sorts_specs->SpecsDirty) + { + MyItem::s_current_sort_specs = sorts_specs; // Store in variable accessible by the sort function. + if (items.Size > 1) + qsort(&items[0], (size_t)items.Size, sizeof(items[0]), MyItem::CompareWithSortSpecs); + MyItem::s_current_sort_specs = NULL; + sorts_specs->SpecsDirty = false; + } + + // Demonstrate using clipper for large vertical lists + ImGuiListClipper clipper; + clipper.Begin(items.Size); + while (clipper.Step()) + for (int row_n = clipper.DisplayStart; row_n < clipper.DisplayEnd; row_n++) + { + // Display a data item + MyItem* item = &items[row_n]; + ImGui::PushID(item->ID); + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Text("%04d", item->ID); + ImGui::TableNextColumn(); + ImGui::TextUnformatted(item->Name); + ImGui::TableNextColumn(); + ImGui::SmallButton("None"); + ImGui::TableNextColumn(); + ImGui::Text("%d", item->Quantity); + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // In this example we'll expose most table flags and settings. + // For specific flags and settings refer to the corresponding section for more detailed explanation. + // This section is mostly useful to experiment with combining certain flags or settings with each others. + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // [DEBUG] + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Advanced"); + if (ImGui::TreeNode("Advanced")) + { + static ImGuiTableFlags flags = + ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable + | ImGuiTableFlags_Sortable | ImGuiTableFlags_SortMulti + | ImGuiTableFlags_RowBg | ImGuiTableFlags_Borders | ImGuiTableFlags_NoBordersInBody + | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY + | ImGuiTableFlags_SizingFixedFit; + + enum ContentsType { CT_Text, CT_Button, CT_SmallButton, CT_FillButton, CT_Selectable, CT_SelectableSpanRow }; + static int contents_type = CT_SelectableSpanRow; + const char* contents_type_names[] = { "Text", "Button", "SmallButton", "FillButton", "Selectable", "Selectable (span row)" }; + static int freeze_cols = 1; + static int freeze_rows = 1; + static int items_count = IM_ARRAYSIZE(template_items_names) * 2; + static ImVec2 outer_size_value = ImVec2(0.0f, TEXT_BASE_HEIGHT * 12); + static float row_min_height = 0.0f; // Auto + static float inner_width_with_scroll = 0.0f; // Auto-extend + static bool outer_size_enabled = true; + static bool show_headers = true; + static bool show_wrapped_text = false; + //static ImGuiTextFilter filter; + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // FIXME-TABLE: Enabling this results in initial clipped first pass on table which tend to affect column sizing + if (ImGui::TreeNode("Options")) + { + // Make the UI compact because there are so many fields + PushStyleCompact(); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 28.0f); + + if (ImGui::TreeNodeEx("Features:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); + ImGui::CheckboxFlags("ImGuiTableFlags_Sortable", &flags, ImGuiTableFlags_Sortable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoSavedSettings", &flags, ImGuiTableFlags_NoSavedSettings); + ImGui::CheckboxFlags("ImGuiTableFlags_ContextMenuInBody", &flags, ImGuiTableFlags_ContextMenuInBody); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Decorations:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags, ImGuiTableFlags_BordersOuterV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags, ImGuiTableFlags_BordersInnerV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Sizing:", ImGuiTreeNodeFlags_DefaultOpen)) + { + EditTableSizingFlags(&flags); + ImGui::SameLine(); HelpMarker("In the Advanced demo we override the policy of each column so those table-wide settings have less effect that typical."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); + ImGui::SameLine(); HelpMarker("Make outer width auto-fit to columns, overriding outer_size.x value.\n\nOnly available when ScrollX/ScrollY are disabled and Stretch columns are not used."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendY", &flags, ImGuiTableFlags_NoHostExtendY); + ImGui::SameLine(); HelpMarker("Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit).\n\nOnly available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoKeepColumnsVisible", &flags, ImGuiTableFlags_NoKeepColumnsVisible); + ImGui::SameLine(); HelpMarker("Only available if ScrollX is disabled."); + ImGui::CheckboxFlags("ImGuiTableFlags_PreciseWidths", &flags, ImGuiTableFlags_PreciseWidths); + ImGui::SameLine(); HelpMarker("Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoClip", &flags, ImGuiTableFlags_NoClip); + ImGui::SameLine(); HelpMarker("Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with ScrollFreeze options."); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Padding:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_PadOuterX", &flags, ImGuiTableFlags_PadOuterX); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadOuterX", &flags, ImGuiTableFlags_NoPadOuterX); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadInnerX", &flags, ImGuiTableFlags_NoPadInnerX); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Scrolling:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); + ImGui::SameLine(); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_cols", &freeze_cols, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::SameLine(); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_rows", &freeze_rows, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Sorting:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_SortMulti", &flags, ImGuiTableFlags_SortMulti); + ImGui::SameLine(); HelpMarker("When sorting is enabled: hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1)."); + ImGui::CheckboxFlags("ImGuiTableFlags_SortTristate", &flags, ImGuiTableFlags_SortTristate); + ImGui::SameLine(); HelpMarker("When sorting is enabled: allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0)."); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Other:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::Checkbox("show_headers", &show_headers); + ImGui::Checkbox("show_wrapped_text", &show_wrapped_text); + + ImGui::DragFloat2("##OuterSize", &outer_size_value.x); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::Checkbox("outer_size", &outer_size_enabled); + ImGui::SameLine(); + HelpMarker("If scrolling is disabled (ScrollX and ScrollY not set):\n" + "- The table is output directly in the parent window.\n" + "- OuterSize.x < 0.0f will right-align the table.\n" + "- OuterSize.x = 0.0f will narrow fit the table unless there are any Stretch columns.\n" + "- OuterSize.y then becomes the minimum size for the table, which will extend vertically if there are more rows (unless NoHostExtendY is set)."); + + // From a user point of view we will tend to use 'inner_width' differently depending on whether our table is embedding scrolling. + // To facilitate toying with this demo we will actually pass 0.0f to the BeginTable() when ScrollX is disabled. + ImGui::DragFloat("inner_width (when ScrollX active)", &inner_width_with_scroll, 1.0f, 0.0f, FLT_MAX); + + ImGui::DragFloat("row_min_height", &row_min_height, 1.0f, 0.0f, FLT_MAX); + ImGui::SameLine(); HelpMarker("Specify height of the Selectable item."); + + ImGui::DragInt("items_count", &items_count, 0.1f, 0, 9999); + ImGui::Combo("items_type (first column)", &contents_type, contents_type_names, IM_ARRAYSIZE(contents_type_names)); + //filter.Draw("filter"); + ImGui::TreePop(); + } + + ImGui::PopItemWidth(); + PopStyleCompact(); + ImGui::Spacing(); + ImGui::TreePop(); + } + + // Update item list if we changed the number of items + static ImVector items; + static ImVector selection; + static bool items_need_sort = false; + if (items.Size != items_count) + { + items.resize(items_count, MyItem()); + for (int n = 0; n < items_count; n++) + { + const int template_n = n % IM_ARRAYSIZE(template_items_names); + MyItem& item = items[n]; + item.ID = n; + item.Name = template_items_names[template_n]; + item.Quantity = (template_n == 3) ? 10 : (template_n == 4) ? 20 : 0; // Assign default quantities + } + } + + const ImDrawList* parent_draw_list = ImGui::GetWindowDrawList(); + const int parent_draw_list_draw_cmd_count = parent_draw_list->CmdBuffer.Size; + ImVec2 table_scroll_cur, table_scroll_max; // For debug display + const ImDrawList* table_draw_list = NULL; // " + + // Submit table + const float inner_width_to_use = (flags & ImGuiTableFlags_ScrollX) ? inner_width_with_scroll : 0.0f; + if (ImGui::BeginTable("table_advanced", 6, flags, outer_size_enabled ? outer_size_value : ImVec2(0, 0), inner_width_to_use)) + { + // Declare columns + // We use the "user_id" parameter of TableSetupColumn() to specify a user id that will be stored in the sort specifications. + // This is so our sort function can identify a column given our own identifier. We could also identify them based on their index! + ImGui::TableSetupColumn("ID", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoHide, 0.0f, MyItemColumnID_ID); + ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Name); + ImGui::TableSetupColumn("Action", ImGuiTableColumnFlags_NoSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Action); + ImGui::TableSetupColumn("Quantity", ImGuiTableColumnFlags_PreferSortDescending, 0.0f, MyItemColumnID_Quantity); + ImGui::TableSetupColumn("Description", (flags & ImGuiTableFlags_NoHostExtendX) ? 0 : ImGuiTableColumnFlags_WidthStretch, 0.0f, MyItemColumnID_Description); + ImGui::TableSetupColumn("Hidden", ImGuiTableColumnFlags_DefaultHide | ImGuiTableColumnFlags_NoSort); + ImGui::TableSetupScrollFreeze(freeze_cols, freeze_rows); + + // Sort our data if sort specs have been changed! + ImGuiTableSortSpecs* sorts_specs = ImGui::TableGetSortSpecs(); + if (sorts_specs && sorts_specs->SpecsDirty) + items_need_sort = true; + if (sorts_specs && items_need_sort && items.Size > 1) + { + MyItem::s_current_sort_specs = sorts_specs; // Store in variable accessible by the sort function. + qsort(&items[0], (size_t)items.Size, sizeof(items[0]), MyItem::CompareWithSortSpecs); + MyItem::s_current_sort_specs = NULL; + sorts_specs->SpecsDirty = false; + } + items_need_sort = false; + + // Take note of whether we are currently sorting based on the Quantity field, + // we will use this to trigger sorting when we know the data of this column has been modified. + const bool sorts_specs_using_quantity = (ImGui::TableGetColumnFlags(3) & ImGuiTableColumnFlags_IsSorted) != 0; + + // Show headers + if (show_headers) + ImGui::TableHeadersRow(); + + // Show data + // FIXME-TABLE FIXME-NAV: How we can get decent up/down even though we have the buttons here? + ImGui::PushButtonRepeat(true); +#if 1 + // Demonstrate using clipper for large vertical lists + ImGuiListClipper clipper; + clipper.Begin(items.Size); + while (clipper.Step()) + { + for (int row_n = clipper.DisplayStart; row_n < clipper.DisplayEnd; row_n++) +#else + // Without clipper + { + for (int row_n = 0; row_n < items.Size; row_n++) +#endif + { + MyItem* item = &items[row_n]; + //if (!filter.PassFilter(item->Name)) + // continue; + + const bool item_is_selected = selection.contains(item->ID); + ImGui::PushID(item->ID); + ImGui::TableNextRow(ImGuiTableRowFlags_None, row_min_height); + + // For the demo purpose we can select among different type of items submitted in the first column + ImGui::TableSetColumnIndex(0); + char label[32]; + sprintf(label, "%04d", item->ID); + if (contents_type == CT_Text) + ImGui::TextUnformatted(label); + else if (contents_type == CT_Button) + ImGui::Button(label); + else if (contents_type == CT_SmallButton) + ImGui::SmallButton(label); + else if (contents_type == CT_FillButton) + ImGui::Button(label, ImVec2(-FLT_MIN, 0.0f)); + else if (contents_type == CT_Selectable || contents_type == CT_SelectableSpanRow) + { + ImGuiSelectableFlags selectable_flags = (contents_type == CT_SelectableSpanRow) ? ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowItemOverlap : ImGuiSelectableFlags_None; + if (ImGui::Selectable(label, item_is_selected, selectable_flags, ImVec2(0, row_min_height))) + { + if (ImGui::GetIO().KeyCtrl) + { + if (item_is_selected) + selection.find_erase_unsorted(item->ID); + else + selection.push_back(item->ID); + } + else + { + selection.clear(); + selection.push_back(item->ID); + } + } + } + + if (ImGui::TableSetColumnIndex(1)) + ImGui::TextUnformatted(item->Name); + + // Here we demonstrate marking our data set as needing to be sorted again if we modified a quantity, + // and we are currently sorting on the column showing the Quantity. + // To avoid triggering a sort while holding the button, we only trigger it when the button has been released. + // You will probably need a more advanced system in your code if you want to automatically sort when a specific entry changes. + if (ImGui::TableSetColumnIndex(2)) + { + if (ImGui::SmallButton("Chop")) { item->Quantity += 1; } + if (sorts_specs_using_quantity && ImGui::IsItemDeactivated()) { items_need_sort = true; } + ImGui::SameLine(); + if (ImGui::SmallButton("Eat")) { item->Quantity -= 1; } + if (sorts_specs_using_quantity && ImGui::IsItemDeactivated()) { items_need_sort = true; } + } + + if (ImGui::TableSetColumnIndex(3)) + ImGui::Text("%d", item->Quantity); + + ImGui::TableSetColumnIndex(4); + if (show_wrapped_text) + ImGui::TextWrapped("Lorem ipsum dolor sit amet"); + else + ImGui::Text("Lorem ipsum dolor sit amet"); + + if (ImGui::TableSetColumnIndex(5)) + ImGui::Text("1234"); + + ImGui::PopID(); + } + } + ImGui::PopButtonRepeat(); + + // Store some info to display debug details below + table_scroll_cur = ImVec2(ImGui::GetScrollX(), ImGui::GetScrollY()); + table_scroll_max = ImVec2(ImGui::GetScrollMaxX(), ImGui::GetScrollMaxY()); + table_draw_list = ImGui::GetWindowDrawList(); + ImGui::EndTable(); + } + static bool show_debug_details = false; + ImGui::Checkbox("Debug details", &show_debug_details); + if (show_debug_details && table_draw_list) + { + ImGui::SameLine(0.0f, 0.0f); + const int table_draw_list_draw_cmd_count = table_draw_list->CmdBuffer.Size; + if (table_draw_list == parent_draw_list) + ImGui::Text(": DrawCmd: +%d (in same window)", + table_draw_list_draw_cmd_count - parent_draw_list_draw_cmd_count); + else + ImGui::Text(": DrawCmd: +%d (in child window), Scroll: (%.f/%.f) (%.f/%.f)", + table_draw_list_draw_cmd_count - 1, table_scroll_cur.x, table_scroll_max.x, table_scroll_cur.y, table_scroll_max.y); + } + ImGui::TreePop(); + } + + ImGui::PopID(); + + ShowDemoWindowColumns(); + + if (disable_indent) + ImGui::PopStyleVar(); +} + +// Demonstrate old/legacy Columns API! +// [2020: Columns are under-featured and not maintained. Prefer using the more flexible and powerful BeginTable() API!] +static void ShowDemoWindowColumns() +{ + IMGUI_DEMO_MARKER("Columns (legacy API)"); + bool open = ImGui::TreeNode("Legacy Columns API"); + ImGui::SameLine(); + HelpMarker("Columns() is an old API! Prefer using the more flexible and powerful BeginTable() API!"); + if (!open) + return; + + // Basic columns + IMGUI_DEMO_MARKER("Columns (legacy API)/Basic"); + if (ImGui::TreeNode("Basic")) + { + ImGui::Text("Without border:"); + ImGui::Columns(3, "mycolumns3", false); // 3-ways, no border + ImGui::Separator(); + for (int n = 0; n < 14; n++) + { + char label[32]; + sprintf(label, "Item %d", n); + if (ImGui::Selectable(label)) {} + //if (ImGui::Button(label, ImVec2(-FLT_MIN,0.0f))) {} + ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::Separator(); + + ImGui::Text("With border:"); + ImGui::Columns(4, "mycolumns"); // 4-ways, with border + ImGui::Separator(); + ImGui::Text("ID"); ImGui::NextColumn(); + ImGui::Text("Name"); ImGui::NextColumn(); + ImGui::Text("Path"); ImGui::NextColumn(); + ImGui::Text("Hovered"); ImGui::NextColumn(); + ImGui::Separator(); + const char* names[3] = { "One", "Two", "Three" }; + const char* paths[3] = { "/path/one", "/path/two", "/path/three" }; + static int selected = -1; + for (int i = 0; i < 3; i++) + { + char label[32]; + sprintf(label, "%04d", i); + if (ImGui::Selectable(label, selected == i, ImGuiSelectableFlags_SpanAllColumns)) + selected = i; + bool hovered = ImGui::IsItemHovered(); + ImGui::NextColumn(); + ImGui::Text(names[i]); ImGui::NextColumn(); + ImGui::Text(paths[i]); ImGui::NextColumn(); + ImGui::Text("%d", hovered); ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Columns (legacy API)/Borders"); + if (ImGui::TreeNode("Borders")) + { + // NB: Future columns API should allow automatic horizontal borders. + static bool h_borders = true; + static bool v_borders = true; + static int columns_count = 4; + const int lines_count = 3; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragInt("##columns_count", &columns_count, 0.1f, 2, 10, "%d columns"); + if (columns_count < 2) + columns_count = 2; + ImGui::SameLine(); + ImGui::Checkbox("horizontal", &h_borders); + ImGui::SameLine(); + ImGui::Checkbox("vertical", &v_borders); + ImGui::Columns(columns_count, NULL, v_borders); + for (int i = 0; i < columns_count * lines_count; i++) + { + if (h_borders && ImGui::GetColumnIndex() == 0) + ImGui::Separator(); + ImGui::Text("%c%c%c", 'a' + i, 'a' + i, 'a' + i); + ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); + ImGui::Text("Avail %.2f", ImGui::GetContentRegionAvail().x); + ImGui::Text("Offset %.2f", ImGui::GetColumnOffset()); + ImGui::Text("Long text that is likely to clip"); + ImGui::Button("Button", ImVec2(-FLT_MIN, 0.0f)); + ImGui::NextColumn(); + } + ImGui::Columns(1); + if (h_borders) + ImGui::Separator(); + ImGui::TreePop(); + } + + // Create multiple items in a same cell before switching to next column + IMGUI_DEMO_MARKER("Columns (legacy API)/Mixed items"); + if (ImGui::TreeNode("Mixed items")) + { + ImGui::Columns(3, "mixed"); + ImGui::Separator(); + + ImGui::Text("Hello"); + ImGui::Button("Banana"); + ImGui::NextColumn(); + + ImGui::Text("ImGui"); + ImGui::Button("Apple"); + static float foo = 1.0f; + ImGui::InputFloat("red", &foo, 0.05f, 0, "%.3f"); + ImGui::Text("An extra line here."); + ImGui::NextColumn(); + + ImGui::Text("Sailor"); + ImGui::Button("Corniflower"); + static float bar = 1.0f; + ImGui::InputFloat("blue", &bar, 0.05f, 0, "%.3f"); + ImGui::NextColumn(); + + if (ImGui::CollapsingHeader("Category A")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + if (ImGui::CollapsingHeader("Category B")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + if (ImGui::CollapsingHeader("Category C")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + // Word wrapping + IMGUI_DEMO_MARKER("Columns (legacy API)/Word-wrapping"); + if (ImGui::TreeNode("Word-wrapping")) + { + ImGui::Columns(2, "word-wrapping"); + ImGui::Separator(); + ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); + ImGui::TextWrapped("Hello Left"); + ImGui::NextColumn(); + ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); + ImGui::TextWrapped("Hello Right"); + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Columns (legacy API)/Horizontal Scrolling"); + if (ImGui::TreeNode("Horizontal Scrolling")) + { + ImGui::SetNextWindowContentSize(ImVec2(1500.0f, 0.0f)); + ImVec2 child_size = ImVec2(0, ImGui::GetFontSize() * 20.0f); + ImGui::BeginChild("##ScrollingRegion", child_size, false, ImGuiWindowFlags_HorizontalScrollbar); + ImGui::Columns(10); + + // Also demonstrate using clipper for large vertical lists + int ITEMS_COUNT = 2000; + ImGuiListClipper clipper; + clipper.Begin(ITEMS_COUNT); + while (clipper.Step()) + { + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + for (int j = 0; j < 10; j++) + { + ImGui::Text("Line %d Column %d...", i, j); + ImGui::NextColumn(); + } + } + ImGui::Columns(1); + ImGui::EndChild(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Columns (legacy API)/Tree"); + if (ImGui::TreeNode("Tree")) + { + ImGui::Columns(2, "tree", true); + for (int x = 0; x < 3; x++) + { + bool open1 = ImGui::TreeNode((void*)(intptr_t)x, "Node%d", x); + ImGui::NextColumn(); + ImGui::Text("Node contents"); + ImGui::NextColumn(); + if (open1) + { + for (int y = 0; y < 3; y++) + { + bool open2 = ImGui::TreeNode((void*)(intptr_t)y, "Node%d.%d", x, y); + ImGui::NextColumn(); + ImGui::Text("Node contents"); + if (open2) + { + ImGui::Text("Even more contents"); + if (ImGui::TreeNode("Tree in column")) + { + ImGui::Text("The quick brown fox jumps over the lazy dog"); + ImGui::TreePop(); + } + } + ImGui::NextColumn(); + if (open2) + ImGui::TreePop(); + } + ImGui::TreePop(); + } + } + ImGui::Columns(1); + ImGui::TreePop(); + } + + ImGui::TreePop(); +} + +namespace ImGui { extern ImGuiKeyData* GetKeyData(ImGuiKey key); } + +static void ShowDemoWindowInputs() +{ + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus"); + if (ImGui::CollapsingHeader("Inputs, Navigation & Focus")) + { + ImGuiIO& io = ImGui::GetIO(); + + // Display ImGuiIO output flags + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Output"); + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + if (ImGui::TreeNode("Output")) + { + ImGui::Text("io.WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("io.WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); + ImGui::Text("io.WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + ImGui::Text("io.WantTextInput: %d", io.WantTextInput); + ImGui::Text("io.WantSetMousePos: %d", io.WantSetMousePos); + ImGui::Text("io.NavActive: %d, io.NavVisible: %d", io.NavActive, io.NavVisible); + ImGui::TreePop(); + } + + // Display Mouse state + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse State"); + if (ImGui::TreeNode("Mouse State")) + { + if (ImGui::IsMousePosValid()) + ImGui::Text("Mouse pos: (%g, %g)", io.MousePos.x, io.MousePos.y); + else + ImGui::Text("Mouse pos: "); + ImGui::Text("Mouse delta: (%g, %g)", io.MouseDelta.x, io.MouseDelta.y); + + int count = IM_ARRAYSIZE(io.MouseDown); + ImGui::Text("Mouse down:"); for (int i = 0; i < count; i++) if (ImGui::IsMouseDown(i)) { ImGui::SameLine(); ImGui::Text("b%d (%.02f secs)", i, io.MouseDownDuration[i]); } + ImGui::Text("Mouse clicked:"); for (int i = 0; i < count; i++) if (ImGui::IsMouseClicked(i)) { ImGui::SameLine(); ImGui::Text("b%d (%d)", i, ImGui::GetMouseClickedCount(i)); } + ImGui::Text("Mouse released:"); for (int i = 0; i < count; i++) if (ImGui::IsMouseReleased(i)) { ImGui::SameLine(); ImGui::Text("b%d", i); } + ImGui::Text("Mouse wheel: %.1f", io.MouseWheel); + ImGui::Text("Pen Pressure: %.1f", io.PenPressure); // Note: currently unused + ImGui::TreePop(); + } + + // Display mouse cursors + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Mouse Cursors"); + if (ImGui::TreeNode("Mouse Cursors")) + { + const char* mouse_cursors_names[] = { "Arrow", "TextInput", "ResizeAll", "ResizeNS", "ResizeEW", "ResizeNESW", "ResizeNWSE", "Hand", "NotAllowed" }; + IM_ASSERT(IM_ARRAYSIZE(mouse_cursors_names) == ImGuiMouseCursor_COUNT); + + ImGuiMouseCursor current = ImGui::GetMouseCursor(); + ImGui::Text("Current mouse cursor = %d: %s", current, mouse_cursors_names[current]); + ImGui::BeginDisabled(true); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &io.BackendFlags, ImGuiBackendFlags_HasMouseCursors); + ImGui::EndDisabled(); + + ImGui::Text("Hover to see mouse cursors:"); + ImGui::SameLine(); HelpMarker( + "Your application can render a different mouse cursor based on what ImGui::GetMouseCursor() returns. " + "If software cursor rendering (io.MouseDrawCursor) is set ImGui will draw the right cursor for you, " + "otherwise your backend needs to handle it."); + for (int i = 0; i < ImGuiMouseCursor_COUNT; i++) + { + char label[32]; + sprintf(label, "Mouse cursor %d: %s", i, mouse_cursors_names[i]); + ImGui::Bullet(); ImGui::Selectable(label, false); + if (ImGui::IsItemHovered()) + ImGui::SetMouseCursor(i); + } + ImGui::TreePop(); + } + + // Display Keyboard/Mouse state + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Keyboard, Gamepad & Navigation State"); + if (ImGui::TreeNode("Keyboard, Gamepad & Navigation State")) + { + // We iterate both legacy native range and named ImGuiKey ranges, which is a little odd but this allows displaying the data for old/new backends. + // User code should never have to go through such hoops: old code may use native keycodes, new code may use ImGuiKey codes. +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey) { return false; } }; + const ImGuiKey key_first = (ImGuiKey)ImGuiKey_NamedKey_BEGIN; +#else + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey key) { return key < 512 && ImGui::GetIO().KeyMap[key] != -1; } }; // Hide Native<>ImGuiKey duplicates when both exists in the array + const ImGuiKey key_first = (ImGuiKey)0; + //ImGui::Text("Legacy raw:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key++) { if (io.KeysDown[key]) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } +#endif + ImGui::Text("Keys down:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyDown(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d (%.02f)", ImGui::GetKeyName(key), key, ImGui::GetKeyData(key)->DownDuration); } } + ImGui::Text("Keys pressed:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyPressed(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } + ImGui::Text("Keys released:"); for (ImGuiKey key = key_first; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key)) continue; if (ImGui::IsKeyReleased(key)) { ImGui::SameLine(); ImGui::Text("\"%s\" %d", ImGui::GetKeyName(key), key); } } + ImGui::Text("Keys mods: %s%s%s%s", io.KeyCtrl ? "CTRL " : "", io.KeyShift ? "SHIFT " : "", io.KeyAlt ? "ALT " : "", io.KeySuper ? "SUPER " : ""); + ImGui::Text("Chars queue:"); for (int i = 0; i < io.InputQueueCharacters.Size; i++) { ImWchar c = io.InputQueueCharacters[i]; ImGui::SameLine(); ImGui::Text("\'%c\' (0x%04X)", (c > ' ' && c <= 255) ? (char)c : '?', c); } // FIXME: We should convert 'c' to UTF-8 here but the functions are not public. + + // Draw an arbitrary US keyboard layout to visualize translated keys + { + const ImVec2 key_size = ImVec2(35.0f, 35.0f); + const float key_rounding = 3.0f; + const ImVec2 key_face_size = ImVec2(25.0f, 25.0f); + const ImVec2 key_face_pos = ImVec2(5.0f, 3.0f); + const float key_face_rounding = 2.0f; + const ImVec2 key_label_pos = ImVec2(7.0f, 4.0f); + const ImVec2 key_step = ImVec2(key_size.x - 1.0f, key_size.y - 1.0f); + const float key_row_offset = 9.0f; + + ImVec2 board_min = ImGui::GetCursorScreenPos(); + ImVec2 board_max = ImVec2(board_min.x + 3 * key_step.x + 2 * key_row_offset + 10.0f, board_min.y + 3 * key_step.y + 10.0f); + ImVec2 start_pos = ImVec2(board_min.x + 5.0f - key_step.x, board_min.y); + + struct KeyLayoutData { int Row, Col; const char* Label; ImGuiKey Key; }; + const KeyLayoutData keys_to_display[] = + { + { 0, 0, "", ImGuiKey_Tab }, { 0, 1, "Q", ImGuiKey_Q }, { 0, 2, "W", ImGuiKey_W }, { 0, 3, "E", ImGuiKey_E }, { 0, 4, "R", ImGuiKey_R }, + { 1, 0, "", ImGuiKey_CapsLock }, { 1, 1, "A", ImGuiKey_A }, { 1, 2, "S", ImGuiKey_S }, { 1, 3, "D", ImGuiKey_D }, { 1, 4, "F", ImGuiKey_F }, + { 2, 0, "", ImGuiKey_LeftShift },{ 2, 1, "Z", ImGuiKey_Z }, { 2, 2, "X", ImGuiKey_X }, { 2, 3, "C", ImGuiKey_C }, { 2, 4, "V", ImGuiKey_V } + }; + + // Elements rendered manually via ImDrawList API are not clipped automatically. + // While not strictly necessary, here IsItemVisible() is used to avoid rendering these shapes when they are out of view. + ImGui::Dummy(ImVec2(board_max.x - board_min.x, board_max.y - board_min.y)); + if (ImGui::IsItemVisible()) + { + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + draw_list->PushClipRect(board_min, board_max, true); + for (int n = 0; n < IM_ARRAYSIZE(keys_to_display); n++) + { + const KeyLayoutData* key_data = &keys_to_display[n]; + ImVec2 key_min = ImVec2(start_pos.x + key_data->Col * key_step.x + key_data->Row * key_row_offset, start_pos.y + key_data->Row * key_step.y); + ImVec2 key_max = ImVec2(key_min.x + key_size.x, key_min.y + key_size.y); + draw_list->AddRectFilled(key_min, key_max, IM_COL32(204, 204, 204, 255), key_rounding); + draw_list->AddRect(key_min, key_max, IM_COL32(24, 24, 24, 255), key_rounding); + ImVec2 face_min = ImVec2(key_min.x + key_face_pos.x, key_min.y + key_face_pos.y); + ImVec2 face_max = ImVec2(face_min.x + key_face_size.x, face_min.y + key_face_size.y); + draw_list->AddRect(face_min, face_max, IM_COL32(193, 193, 193, 255), key_face_rounding, ImDrawFlags_None, 2.0f); + draw_list->AddRectFilled(face_min, face_max, IM_COL32(252, 252, 252, 255), key_face_rounding); + ImVec2 label_min = ImVec2(key_min.x + key_label_pos.x, key_min.y + key_label_pos.y); + draw_list->AddText(label_min, IM_COL32(64, 64, 64, 255), key_data->Label); + if (ImGui::IsKeyDown(key_data->Key)) + draw_list->AddRectFilled(key_min, key_max, IM_COL32(255, 0, 0, 128), key_rounding); + } + draw_list->PopClipRect(); + } + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Capture override")) + { + HelpMarker( + "The value of io.WantCaptureMouse and io.WantCaptureKeyboard are normally set by Dear ImGui " + "to instruct your application of how to route inputs. Typically, when a value is true, it means " + "Dear ImGui wants the corresponding inputs and we expect the underlying application to ignore them.\n\n" + "The most typical case is: when hovering a window, Dear ImGui set io.WantCaptureMouse to true, " + "and underlying application should ignore mouse inputs (in practice there are many and more subtle " + "rules leading to how those flags are set)."); + + ImGui::Text("io.WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("io.WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); + ImGui::Text("io.WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + + HelpMarker( + "Hovering the colored canvas will override io.WantCaptureXXX fields.\n" + "Notice how normally (when set to none), the value of io.WantCaptureKeyboard would be false when hovering and true when clicking."); + static int capture_override_mouse = -1; + static int capture_override_keyboard = -1; + const char* capture_override_desc[] = { "None", "Set to false", "Set to true" }; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureMouse()", &capture_override_mouse, -1, +1, capture_override_desc[capture_override_mouse + 1], ImGuiSliderFlags_AlwaysClamp); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureKeyboard()", &capture_override_keyboard, -1, +1, capture_override_desc[capture_override_keyboard + 1], ImGuiSliderFlags_AlwaysClamp); + + ImGui::ColorButton("##panel", ImVec4(0.7f, 0.1f, 0.7f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, ImVec2(256.0f, 192.0f)); // Dummy item + if (ImGui::IsItemHovered() && capture_override_mouse != -1) + ImGui::SetNextFrameWantCaptureMouse(capture_override_mouse == 1); + if (ImGui::IsItemHovered() && capture_override_keyboard != -1) + ImGui::SetNextFrameWantCaptureKeyboard(capture_override_keyboard == 1); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Tabbing"); + if (ImGui::TreeNode("Tabbing")) + { + ImGui::Text("Use TAB/SHIFT+TAB to cycle through keyboard editable fields."); + static char buf[32] = "hello"; + ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); + ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); + ImGui::InputText("3", buf, IM_ARRAYSIZE(buf)); + ImGui::PushAllowKeyboardFocus(false); + ImGui::InputText("4 (tab skip)", buf, IM_ARRAYSIZE(buf)); + ImGui::SameLine(); HelpMarker("Item won't be cycled through when using TAB or Shift+Tab."); + ImGui::PopAllowKeyboardFocus(); + ImGui::InputText("5", buf, IM_ARRAYSIZE(buf)); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Focus from code"); + if (ImGui::TreeNode("Focus from code")) + { + bool focus_1 = ImGui::Button("Focus on 1"); ImGui::SameLine(); + bool focus_2 = ImGui::Button("Focus on 2"); ImGui::SameLine(); + bool focus_3 = ImGui::Button("Focus on 3"); + int has_focus = 0; + static char buf[128] = "click on a button to set focus"; + + if (focus_1) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 1; + + if (focus_2) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 2; + + ImGui::PushAllowKeyboardFocus(false); + if (focus_3) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("3 (tab skip)", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 3; + ImGui::SameLine(); HelpMarker("Item won't be cycled through when using TAB or Shift+Tab."); + ImGui::PopAllowKeyboardFocus(); + + if (has_focus) + ImGui::Text("Item with focus: %d", has_focus); + else + ImGui::Text("Item with focus: "); + + // Use >= 0 parameter to SetKeyboardFocusHere() to focus an upcoming item + static float f3[3] = { 0.0f, 0.0f, 0.0f }; + int focus_ahead = -1; + if (ImGui::Button("Focus on X")) { focus_ahead = 0; } ImGui::SameLine(); + if (ImGui::Button("Focus on Y")) { focus_ahead = 1; } ImGui::SameLine(); + if (ImGui::Button("Focus on Z")) { focus_ahead = 2; } + if (focus_ahead != -1) ImGui::SetKeyboardFocusHere(focus_ahead); + ImGui::SliderFloat3("Float3", &f3[0], 0.0f, 1.0f); + + ImGui::TextWrapped("NB: Cursor & selection are preserved when refocusing last used item in code."); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Inputs, Navigation & Focus/Dragging"); + if (ImGui::TreeNode("Dragging")) + { + ImGui::TextWrapped("You can use ImGui::GetMouseDragDelta(0) to query for the dragged amount on any widget."); + for (int button = 0; button < 3; button++) + { + ImGui::Text("IsMouseDragging(%d):", button); + ImGui::Text(" w/ default threshold: %d,", ImGui::IsMouseDragging(button)); + ImGui::Text(" w/ zero threshold: %d,", ImGui::IsMouseDragging(button, 0.0f)); + ImGui::Text(" w/ large threshold: %d,", ImGui::IsMouseDragging(button, 20.0f)); + } + + ImGui::Button("Drag Me"); + if (ImGui::IsItemActive()) + ImGui::GetForegroundDrawList()->AddLine(io.MouseClickedPos[0], io.MousePos, ImGui::GetColorU32(ImGuiCol_Button), 4.0f); // Draw a line between the button and the mouse cursor + + // Drag operations gets "unlocked" when the mouse has moved past a certain threshold + // (the default threshold is stored in io.MouseDragThreshold). You can request a lower or higher + // threshold using the second parameter of IsMouseDragging() and GetMouseDragDelta(). + ImVec2 value_raw = ImGui::GetMouseDragDelta(0, 0.0f); + ImVec2 value_with_lock_threshold = ImGui::GetMouseDragDelta(0); + ImVec2 mouse_delta = io.MouseDelta; + ImGui::Text("GetMouseDragDelta(0):"); + ImGui::Text(" w/ default threshold: (%.1f, %.1f)", value_with_lock_threshold.x, value_with_lock_threshold.y); + ImGui::Text(" w/ zero threshold: (%.1f, %.1f)", value_raw.x, value_raw.y); + ImGui::Text("io.MouseDelta: (%.1f, %.1f)", mouse_delta.x, mouse_delta.y); + ImGui::TreePop(); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] About Window / ShowAboutWindow() +// Access from Dear ImGui Demo -> Tools -> About +//----------------------------------------------------------------------------- + +void ImGui::ShowAboutWindow(bool* p_open) +{ + if (!ImGui::Begin("About Dear ImGui", p_open, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Tools/About Dear ImGui"); + ImGui::Text("Dear ImGui %s", ImGui::GetVersion()); + ImGui::Separator(); + ImGui::Text("By Omar Cornut and all Dear ImGui contributors."); + ImGui::Text("Dear ImGui is licensed under the MIT License, see LICENSE for more information."); + + static bool show_config_info = false; + ImGui::Checkbox("Config/Build Information", &show_config_info); + if (show_config_info) + { + ImGuiIO& io = ImGui::GetIO(); + ImGuiStyle& style = ImGui::GetStyle(); + + bool copy_to_clipboard = ImGui::Button("Copy to clipboard"); + ImVec2 child_size = ImVec2(0, ImGui::GetTextLineHeightWithSpacing() * 18); + ImGui::BeginChildFrame(ImGui::GetID("cfg_infos"), child_size, ImGuiWindowFlags_NoMove); + if (copy_to_clipboard) + { + ImGui::LogToClipboard(); + ImGui::LogText("```\n"); // Back quotes will make text appears without formatting when pasting on GitHub + } + + ImGui::Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); + ImGui::Separator(); + ImGui::Text("sizeof(size_t): %d, sizeof(ImDrawIdx): %d, sizeof(ImDrawVert): %d", (int)sizeof(size_t), (int)sizeof(ImDrawIdx), (int)sizeof(ImDrawVert)); + ImGui::Text("define: __cplusplus=%d", (int)__cplusplus); +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_KEYIO"); +#endif +#ifdef IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_WIN32_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_FILE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_FILE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_ALLOCATORS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_ALLOCATORS"); +#endif +#ifdef IMGUI_USE_BGRA_PACKED_COLOR + ImGui::Text("define: IMGUI_USE_BGRA_PACKED_COLOR"); +#endif +#ifdef _WIN32 + ImGui::Text("define: _WIN32"); +#endif +#ifdef _WIN64 + ImGui::Text("define: _WIN64"); +#endif +#ifdef __linux__ + ImGui::Text("define: __linux__"); +#endif +#ifdef __APPLE__ + ImGui::Text("define: __APPLE__"); +#endif +#ifdef _MSC_VER + ImGui::Text("define: _MSC_VER=%d", _MSC_VER); +#endif +#ifdef _MSVC_LANG + ImGui::Text("define: _MSVC_LANG=%d", (int)_MSVC_LANG); +#endif +#ifdef __MINGW32__ + ImGui::Text("define: __MINGW32__"); +#endif +#ifdef __MINGW64__ + ImGui::Text("define: __MINGW64__"); +#endif +#ifdef __GNUC__ + ImGui::Text("define: __GNUC__=%d", (int)__GNUC__); +#endif +#ifdef __clang_version__ + ImGui::Text("define: __clang_version__=%s", __clang_version__); +#endif + ImGui::Separator(); + ImGui::Text("io.BackendPlatformName: %s", io.BackendPlatformName ? io.BackendPlatformName : "NULL"); + ImGui::Text("io.BackendRendererName: %s", io.BackendRendererName ? io.BackendRendererName : "NULL"); + ImGui::Text("io.ConfigFlags: 0x%08X", io.ConfigFlags); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) ImGui::Text(" NavEnableKeyboard"); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) ImGui::Text(" NavEnableGamepad"); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) ImGui::Text(" NavEnableSetMousePos"); + if (io.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard) ImGui::Text(" NavNoCaptureKeyboard"); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) ImGui::Text(" NoMouse"); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) ImGui::Text(" NoMouseCursorChange"); + if (io.MouseDrawCursor) ImGui::Text("io.MouseDrawCursor"); + if (io.ConfigMacOSXBehaviors) ImGui::Text("io.ConfigMacOSXBehaviors"); + if (io.ConfigInputTextCursorBlink) ImGui::Text("io.ConfigInputTextCursorBlink"); + if (io.ConfigWindowsResizeFromEdges) ImGui::Text("io.ConfigWindowsResizeFromEdges"); + if (io.ConfigWindowsMoveFromTitleBarOnly) ImGui::Text("io.ConfigWindowsMoveFromTitleBarOnly"); + if (io.ConfigMemoryCompactTimer >= 0.0f) ImGui::Text("io.ConfigMemoryCompactTimer = %.1f", io.ConfigMemoryCompactTimer); + ImGui::Text("io.BackendFlags: 0x%08X", io.BackendFlags); + if (io.BackendFlags & ImGuiBackendFlags_HasGamepad) ImGui::Text(" HasGamepad"); + if (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) ImGui::Text(" HasMouseCursors"); + if (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos) ImGui::Text(" HasSetMousePos"); + if (io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) ImGui::Text(" RendererHasVtxOffset"); + ImGui::Separator(); + ImGui::Text("io.Fonts: %d fonts, Flags: 0x%08X, TexSize: %d,%d", io.Fonts->Fonts.Size, io.Fonts->Flags, io.Fonts->TexWidth, io.Fonts->TexHeight); + ImGui::Text("io.DisplaySize: %.2f,%.2f", io.DisplaySize.x, io.DisplaySize.y); + ImGui::Text("io.DisplayFramebufferScale: %.2f,%.2f", io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + ImGui::Separator(); + ImGui::Text("style.WindowPadding: %.2f,%.2f", style.WindowPadding.x, style.WindowPadding.y); + ImGui::Text("style.WindowBorderSize: %.2f", style.WindowBorderSize); + ImGui::Text("style.FramePadding: %.2f,%.2f", style.FramePadding.x, style.FramePadding.y); + ImGui::Text("style.FrameRounding: %.2f", style.FrameRounding); + ImGui::Text("style.FrameBorderSize: %.2f", style.FrameBorderSize); + ImGui::Text("style.ItemSpacing: %.2f,%.2f", style.ItemSpacing.x, style.ItemSpacing.y); + ImGui::Text("style.ItemInnerSpacing: %.2f,%.2f", style.ItemInnerSpacing.x, style.ItemInnerSpacing.y); + + if (copy_to_clipboard) + { + ImGui::LogText("\n```\n"); + ImGui::LogFinish(); + } + ImGui::EndChildFrame(); + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Style Editor / ShowStyleEditor() +//----------------------------------------------------------------------------- +// - ShowFontSelector() +// - ShowStyleSelector() +// - ShowStyleEditor() +//----------------------------------------------------------------------------- + +// Forward declare ShowFontAtlas() which isn't worth putting in public API yet +namespace ImGui { IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); } + +// Demo helper function to select among loaded fonts. +// Here we use the regular BeginCombo()/EndCombo() api which is the more flexible one. +void ImGui::ShowFontSelector(const char* label) +{ + ImGuiIO& io = ImGui::GetIO(); + ImFont* font_current = ImGui::GetFont(); + if (ImGui::BeginCombo(label, font_current->GetDebugName())) + { + for (int n = 0; n < io.Fonts->Fonts.Size; n++) + { + ImFont* font = io.Fonts->Fonts[n]; + ImGui::PushID((void*)font); + if (ImGui::Selectable(font->GetDebugName(), font == font_current)) + io.FontDefault = font; + ImGui::PopID(); + } + ImGui::EndCombo(); + } + ImGui::SameLine(); + HelpMarker( + "- Load additional fonts with io.Fonts->AddFontFromFileTTF().\n" + "- The font atlas is built when calling io.Fonts->GetTexDataAsXXXX() or io.Fonts->Build().\n" + "- Read FAQ and docs/FONTS.md for more details.\n" + "- If you need to add/remove fonts at runtime (e.g. for DPI change), do it before calling NewFrame()."); +} + +// Demo helper function to select among default colors. See ShowStyleEditor() for more advanced options. +// Here we use the simplified Combo() api that packs items into a single literal string. +// Useful for quick combo boxes where the choices are known locally. +bool ImGui::ShowStyleSelector(const char* label) +{ + static int style_idx = -1; + if (ImGui::Combo(label, &style_idx, "Dark\0Light\0Classic\0")) + { + switch (style_idx) + { + case 0: ImGui::StyleColorsDark(); break; + case 1: ImGui::StyleColorsLight(); break; + case 2: ImGui::StyleColorsClassic(); break; + } + return true; + } + return false; +} + +void ImGui::ShowStyleEditor(ImGuiStyle* ref) +{ + IMGUI_DEMO_MARKER("Tools/Style Editor"); + // You can pass in a reference ImGuiStyle structure to compare to, revert to and save to + // (without a reference style pointer, we will use one compared locally as a reference) + ImGuiStyle& style = ImGui::GetStyle(); + static ImGuiStyle ref_saved_style; + + // Default to using internal storage as reference + static bool init = true; + if (init && ref == NULL) + ref_saved_style = style; + init = false; + if (ref == NULL) + ref = &ref_saved_style; + + ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.50f); + + if (ImGui::ShowStyleSelector("Colors##Selector")) + ref_saved_style = style; + ImGui::ShowFontSelector("Fonts##Selector"); + + // Simplified Settings (expose floating-pointer border sizes as boolean representing 0.0f or 1.0f) + if (ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f")) + style.GrabRounding = style.FrameRounding; // Make GrabRounding always the same value as FrameRounding + { bool border = (style.WindowBorderSize > 0.0f); if (ImGui::Checkbox("WindowBorder", &border)) { style.WindowBorderSize = border ? 1.0f : 0.0f; } } + ImGui::SameLine(); + { bool border = (style.FrameBorderSize > 0.0f); if (ImGui::Checkbox("FrameBorder", &border)) { style.FrameBorderSize = border ? 1.0f : 0.0f; } } + ImGui::SameLine(); + { bool border = (style.PopupBorderSize > 0.0f); if (ImGui::Checkbox("PopupBorder", &border)) { style.PopupBorderSize = border ? 1.0f : 0.0f; } } + + // Save/Revert button + if (ImGui::Button("Save Ref")) + *ref = ref_saved_style = style; + ImGui::SameLine(); + if (ImGui::Button("Revert Ref")) + style = *ref; + ImGui::SameLine(); + HelpMarker( + "Save/Revert in local non-persistent storage. Default Colors definition are not affected. " + "Use \"Export\" below to save them somewhere."); + + ImGui::Separator(); + + if (ImGui::BeginTabBar("##tabs", ImGuiTabBarFlags_None)) + { + if (ImGui::BeginTabItem("Sizes")) + { + ImGui::Text("Main"); + ImGui::SliderFloat2("WindowPadding", (float*)&style.WindowPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("FramePadding", (float*)&style.FramePadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("CellPadding", (float*)&style.CellPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("ItemSpacing", (float*)&style.ItemSpacing, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("ItemInnerSpacing", (float*)&style.ItemInnerSpacing, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("TouchExtraPadding", (float*)&style.TouchExtraPadding, 0.0f, 10.0f, "%.0f"); + ImGui::SliderFloat("IndentSpacing", &style.IndentSpacing, 0.0f, 30.0f, "%.0f"); + ImGui::SliderFloat("ScrollbarSize", &style.ScrollbarSize, 1.0f, 20.0f, "%.0f"); + ImGui::SliderFloat("GrabMinSize", &style.GrabMinSize, 1.0f, 20.0f, "%.0f"); + ImGui::Text("Borders"); + ImGui::SliderFloat("WindowBorderSize", &style.WindowBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("ChildBorderSize", &style.ChildBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("PopupBorderSize", &style.PopupBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("FrameBorderSize", &style.FrameBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("TabBorderSize", &style.TabBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::Text("Rounding"); + ImGui::SliderFloat("WindowRounding", &style.WindowRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("ChildRounding", &style.ChildRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("PopupRounding", &style.PopupRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("ScrollbarRounding", &style.ScrollbarRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("GrabRounding", &style.GrabRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("LogSliderDeadzone", &style.LogSliderDeadzone, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("TabRounding", &style.TabRounding, 0.0f, 12.0f, "%.0f"); + ImGui::Text("Alignment"); + ImGui::SliderFloat2("WindowTitleAlign", (float*)&style.WindowTitleAlign, 0.0f, 1.0f, "%.2f"); + int window_menu_button_position = style.WindowMenuButtonPosition + 1; + if (ImGui::Combo("WindowMenuButtonPosition", (int*)&window_menu_button_position, "None\0Left\0Right\0")) + style.WindowMenuButtonPosition = window_menu_button_position - 1; + ImGui::Combo("ColorButtonPosition", (int*)&style.ColorButtonPosition, "Left\0Right\0"); + ImGui::SliderFloat2("ButtonTextAlign", (float*)&style.ButtonTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui::SameLine(); HelpMarker("Alignment applies when a button is larger than its text content."); + ImGui::SliderFloat2("SelectableTextAlign", (float*)&style.SelectableTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui::SameLine(); HelpMarker("Alignment applies when a selectable is larger than its text content."); + ImGui::Text("Safe Area Padding"); + ImGui::SameLine(); HelpMarker("Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured)."); + ImGui::SliderFloat2("DisplaySafeAreaPadding", (float*)&style.DisplaySafeAreaPadding, 0.0f, 30.0f, "%.0f"); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Colors")) + { + static int output_dest = 0; + static bool output_only_modified = true; + if (ImGui::Button("Export")) + { + if (output_dest == 0) + ImGui::LogToClipboard(); + else + ImGui::LogToTTY(); + ImGui::LogText("ImVec4* colors = ImGui::GetStyle().Colors;" IM_NEWLINE); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const ImVec4& col = style.Colors[i]; + const char* name = ImGui::GetStyleColorName(i); + if (!output_only_modified || memcmp(&col, &ref->Colors[i], sizeof(ImVec4)) != 0) + ImGui::LogText("colors[ImGuiCol_%s]%*s= ImVec4(%.2ff, %.2ff, %.2ff, %.2ff);" IM_NEWLINE, + name, 23 - (int)strlen(name), "", col.x, col.y, col.z, col.w); + } + ImGui::LogFinish(); + } + ImGui::SameLine(); ImGui::SetNextItemWidth(120); ImGui::Combo("##output_type", &output_dest, "To Clipboard\0To TTY\0"); + ImGui::SameLine(); ImGui::Checkbox("Only Modified Colors", &output_only_modified); + + static ImGuiTextFilter filter; + filter.Draw("Filter colors", ImGui::GetFontSize() * 16); + + static ImGuiColorEditFlags alpha_flags = 0; + if (ImGui::RadioButton("Opaque", alpha_flags == ImGuiColorEditFlags_None)) { alpha_flags = ImGuiColorEditFlags_None; } ImGui::SameLine(); + if (ImGui::RadioButton("Alpha", alpha_flags == ImGuiColorEditFlags_AlphaPreview)) { alpha_flags = ImGuiColorEditFlags_AlphaPreview; } ImGui::SameLine(); + if (ImGui::RadioButton("Both", alpha_flags == ImGuiColorEditFlags_AlphaPreviewHalf)) { alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf; } ImGui::SameLine(); + HelpMarker( + "In the color list:\n" + "Left-click on color square to open color picker,\n" + "Right-click to open edit options menu."); + + ImGui::BeginChild("##colors", ImVec2(0, 0), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar | ImGuiWindowFlags_NavFlattened); + ImGui::PushItemWidth(-160); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const char* name = ImGui::GetStyleColorName(i); + if (!filter.PassFilter(name)) + continue; + ImGui::PushID(i); + ImGui::ColorEdit4("##color", (float*)&style.Colors[i], ImGuiColorEditFlags_AlphaBar | alpha_flags); + if (memcmp(&style.Colors[i], &ref->Colors[i], sizeof(ImVec4)) != 0) + { + // Tips: in a real user application, you may want to merge and use an icon font into the main font, + // so instead of "Save"/"Revert" you'd use icons! + // Read the FAQ and docs/FONTS.md about using icon fonts. It's really easy and super convenient! + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Save")) { ref->Colors[i] = style.Colors[i]; } + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Revert")) { style.Colors[i] = ref->Colors[i]; } + } + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); + ImGui::TextUnformatted(name); + ImGui::PopID(); + } + ImGui::PopItemWidth(); + ImGui::EndChild(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Fonts")) + { + ImGuiIO& io = ImGui::GetIO(); + ImFontAtlas* atlas = io.Fonts; + HelpMarker("Read FAQ and docs/FONTS.md for details on font loading."); + ImGui::ShowFontAtlas(atlas); + + // Post-baking font scaling. Note that this is NOT the nice way of scaling fonts, read below. + // (we enforce hard clamping manually as by default DragFloat/SliderFloat allows CTRL+Click text to get out of bounds). + const float MIN_SCALE = 0.3f; + const float MAX_SCALE = 2.0f; + HelpMarker( + "Those are old settings provided for convenience.\n" + "However, the _correct_ way of scaling your UI is currently to reload your font at the designed size, " + "rebuild the font atlas, and call style.ScaleAllSizes() on a reference ImGuiStyle structure.\n" + "Using those settings here will give you poor quality results."); + static float window_scale = 1.0f; + ImGui::PushItemWidth(ImGui::GetFontSize() * 8); + if (ImGui::DragFloat("window scale", &window_scale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp)) // Scale only this window + ImGui::SetWindowFontScale(window_scale); + ImGui::DragFloat("global scale", &io.FontGlobalScale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp); // Scale everything + ImGui::PopItemWidth(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Rendering")) + { + ImGui::Checkbox("Anti-aliased lines", &style.AntiAliasedLines); + ImGui::SameLine(); + HelpMarker("When disabling anti-aliasing lines, you'll probably want to disable borders in your style as well."); + + ImGui::Checkbox("Anti-aliased lines use texture", &style.AntiAliasedLinesUseTex); + ImGui::SameLine(); + HelpMarker("Faster lines using texture data. Require backend to render with bilinear filtering (not point/nearest filtering)."); + + ImGui::Checkbox("Anti-aliased fill", &style.AntiAliasedFill); + ImGui::PushItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragFloat("Curve Tessellation Tolerance", &style.CurveTessellationTol, 0.02f, 0.10f, 10.0f, "%.2f"); + if (style.CurveTessellationTol < 0.10f) style.CurveTessellationTol = 0.10f; + + // When editing the "Circle Segment Max Error" value, draw a preview of its effect on auto-tessellated circles. + ImGui::DragFloat("Circle Tessellation Max Error", &style.CircleTessellationMaxError , 0.005f, 0.10f, 5.0f, "%.2f", ImGuiSliderFlags_AlwaysClamp); + if (ImGui::IsItemActive()) + { + ImGui::SetNextWindowPos(ImGui::GetCursorScreenPos()); + ImGui::BeginTooltip(); + ImGui::TextUnformatted("(R = radius, N = number of segments)"); + ImGui::Spacing(); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + const float min_widget_width = ImGui::CalcTextSize("N: MMM\nR: MMM").x; + for (int n = 0; n < 8; n++) + { + const float RAD_MIN = 5.0f; + const float RAD_MAX = 70.0f; + const float rad = RAD_MIN + (RAD_MAX - RAD_MIN) * (float)n / (8.0f - 1.0f); + + ImGui::BeginGroup(); + + ImGui::Text("R: %.f\nN: %d", rad, draw_list->_CalcCircleAutoSegmentCount(rad)); + + const float canvas_width = IM_MAX(min_widget_width, rad * 2.0f); + const float offset_x = floorf(canvas_width * 0.5f); + const float offset_y = floorf(RAD_MAX); + + const ImVec2 p1 = ImGui::GetCursorScreenPos(); + draw_list->AddCircle(ImVec2(p1.x + offset_x, p1.y + offset_y), rad, ImGui::GetColorU32(ImGuiCol_Text)); + ImGui::Dummy(ImVec2(canvas_width, RAD_MAX * 2)); + + /* + const ImVec2 p2 = ImGui::GetCursorScreenPos(); + draw_list->AddCircleFilled(ImVec2(p2.x + offset_x, p2.y + offset_y), rad, ImGui::GetColorU32(ImGuiCol_Text)); + ImGui::Dummy(ImVec2(canvas_width, RAD_MAX * 2)); + */ + + ImGui::EndGroup(); + ImGui::SameLine(); + } + ImGui::EndTooltip(); + } + ImGui::SameLine(); + HelpMarker("When drawing circle primitives with \"num_segments == 0\" tesselation will be calculated automatically."); + + ImGui::DragFloat("Global Alpha", &style.Alpha, 0.005f, 0.20f, 1.0f, "%.2f"); // Not exposing zero here so user doesn't "lose" the UI (zero alpha clips all widgets). But application code could have a toggle to switch between zero and non-zero. + ImGui::DragFloat("Disabled Alpha", &style.DisabledAlpha, 0.005f, 0.0f, 1.0f, "%.2f"); ImGui::SameLine(); HelpMarker("Additional alpha multiplier for disabled items (multiply over current value of Alpha)."); + ImGui::PopItemWidth(); + + ImGui::EndTabItem(); + } + + ImGui::EndTabBar(); + } + + ImGui::PopItemWidth(); +} + +//----------------------------------------------------------------------------- +// [SECTION] User Guide / ShowUserGuide() +//----------------------------------------------------------------------------- + +void ImGui::ShowUserGuide() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui::BulletText("Double-click on title bar to collapse window."); + ImGui::BulletText( + "Click and drag on lower corner to resize window\n" + "(double-click to auto fit window to its contents)."); + ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text."); + ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields."); + ImGui::BulletText("CTRL+Tab to select a window."); + if (io.FontAllowUserScaling) + ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents."); + ImGui::BulletText("While inputing text:\n"); + ImGui::Indent(); + ImGui::BulletText("CTRL+Left/Right to word jump."); + ImGui::BulletText("CTRL+A or double-click to select all."); + ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste."); + ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo."); + ImGui::BulletText("ESCAPE to revert."); + ImGui::Unindent(); + ImGui::BulletText("With keyboard navigation enabled:"); + ImGui::Indent(); + ImGui::BulletText("Arrow keys to navigate."); + ImGui::BulletText("Space to activate a widget."); + ImGui::BulletText("Return to input text into a widget."); + ImGui::BulletText("Escape to deactivate a widget, close popup, exit child window."); + ImGui::BulletText("Alt to jump to the menu layer of a window."); + ImGui::Unindent(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() +//----------------------------------------------------------------------------- +// - ShowExampleAppMainMenuBar() +// - ShowExampleMenuFile() +//----------------------------------------------------------------------------- + +// Demonstrate creating a "main" fullscreen menu bar and populating it. +// Note the difference between BeginMainMenuBar() and BeginMenuBar(): +// - BeginMenuBar() = menu-bar inside current window (which needs the ImGuiWindowFlags_MenuBar flag!) +// - BeginMainMenuBar() = helper to create menu-bar-sized window at the top of the main viewport + call BeginMenuBar() into it. +static void ShowExampleAppMainMenuBar() +{ + if (ImGui::BeginMainMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Edit")) + { + if (ImGui::MenuItem("Undo", "CTRL+Z")) {} + if (ImGui::MenuItem("Redo", "CTRL+Y", false, false)) {} // Disabled item + ImGui::Separator(); + if (ImGui::MenuItem("Cut", "CTRL+X")) {} + if (ImGui::MenuItem("Copy", "CTRL+C")) {} + if (ImGui::MenuItem("Paste", "CTRL+V")) {} + ImGui::EndMenu(); + } + ImGui::EndMainMenuBar(); + } +} + +// Note that shortcuts are currently provided for display only +// (future version will add explicit flags to BeginMenu() to request processing shortcuts) +static void ShowExampleMenuFile() +{ + IMGUI_DEMO_MARKER("Examples/Menu"); + ImGui::MenuItem("(demo menu)", NULL, false, false); + if (ImGui::MenuItem("New")) {} + if (ImGui::MenuItem("Open", "Ctrl+O")) {} + if (ImGui::BeginMenu("Open Recent")) + { + ImGui::MenuItem("fish_hat.c"); + ImGui::MenuItem("fish_hat.inl"); + ImGui::MenuItem("fish_hat.h"); + if (ImGui::BeginMenu("More..")) + { + ImGui::MenuItem("Hello"); + ImGui::MenuItem("Sailor"); + if (ImGui::BeginMenu("Recurse..")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::EndMenu(); + } + ImGui::EndMenu(); + } + if (ImGui::MenuItem("Save", "Ctrl+S")) {} + if (ImGui::MenuItem("Save As..")) {} + + ImGui::Separator(); + IMGUI_DEMO_MARKER("Examples/Menu/Options"); + if (ImGui::BeginMenu("Options")) + { + static bool enabled = true; + ImGui::MenuItem("Enabled", "", &enabled); + ImGui::BeginChild("child", ImVec2(0, 60), true); + for (int i = 0; i < 10; i++) + ImGui::Text("Scrolling Text %d", i); + ImGui::EndChild(); + static float f = 0.5f; + static int n = 0; + ImGui::SliderFloat("Value", &f, 0.0f, 1.0f); + ImGui::InputFloat("Input", &f, 0.1f); + ImGui::Combo("Combo", &n, "Yes\0No\0Maybe\0\0"); + ImGui::EndMenu(); + } + + IMGUI_DEMO_MARKER("Examples/Menu/Colors"); + if (ImGui::BeginMenu("Colors")) + { + float sz = ImGui::GetTextLineHeight(); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const char* name = ImGui::GetStyleColorName((ImGuiCol)i); + ImVec2 p = ImGui::GetCursorScreenPos(); + ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + sz, p.y + sz), ImGui::GetColorU32((ImGuiCol)i)); + ImGui::Dummy(ImVec2(sz, sz)); + ImGui::SameLine(); + ImGui::MenuItem(name); + } + ImGui::EndMenu(); + } + + // Here we demonstrate appending again to the "Options" menu (which we already created above) + // Of course in this demo it is a little bit silly that this function calls BeginMenu("Options") twice. + // In a real code-base using it would make senses to use this feature from very different code locations. + if (ImGui::BeginMenu("Options")) // <-- Append! + { + IMGUI_DEMO_MARKER("Examples/Menu/Append to an existing menu"); + static bool b = true; + ImGui::Checkbox("SomeOption", &b); + ImGui::EndMenu(); + } + + if (ImGui::BeginMenu("Disabled", false)) // Disabled + { + IM_ASSERT(0); + } + if (ImGui::MenuItem("Checked", NULL, true)) {} + if (ImGui::MenuItem("Quit", "Alt+F4")) {} +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Debug Console / ShowExampleAppConsole() +//----------------------------------------------------------------------------- + +// Demonstrate creating a simple console window, with scrolling, filtering, completion and history. +// For the console example, we are using a more C++ like approach of declaring a class to hold both data and functions. +struct ExampleAppConsole +{ + char InputBuf[256]; + ImVector Items; + ImVector Commands; + ImVector History; + int HistoryPos; // -1: new line, 0..History.Size-1 browsing history. + ImGuiTextFilter Filter; + bool AutoScroll; + bool ScrollToBottom; + + ExampleAppConsole() + { + IMGUI_DEMO_MARKER("Examples/Console"); + ClearLog(); + memset(InputBuf, 0, sizeof(InputBuf)); + HistoryPos = -1; + + // "CLASSIFY" is here to provide the test case where "C"+[tab] completes to "CL" and display multiple matches. + Commands.push_back("HELP"); + Commands.push_back("HISTORY"); + Commands.push_back("CLEAR"); + Commands.push_back("CLASSIFY"); + AutoScroll = true; + ScrollToBottom = false; + AddLog("Welcome to Dear ImGui!"); + } + ~ExampleAppConsole() + { + ClearLog(); + for (int i = 0; i < History.Size; i++) + free(History[i]); + } + + // Portable helpers + static int Stricmp(const char* s1, const char* s2) { int d; while ((d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; } return d; } + static int Strnicmp(const char* s1, const char* s2, int n) { int d = 0; while (n > 0 && (d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; n--; } return d; } + static char* Strdup(const char* s) { IM_ASSERT(s); size_t len = strlen(s) + 1; void* buf = malloc(len); IM_ASSERT(buf); return (char*)memcpy(buf, (const void*)s, len); } + static void Strtrim(char* s) { char* str_end = s + strlen(s); while (str_end > s && str_end[-1] == ' ') str_end--; *str_end = 0; } + + void ClearLog() + { + for (int i = 0; i < Items.Size; i++) + free(Items[i]); + Items.clear(); + } + + void AddLog(const char* fmt, ...) IM_FMTARGS(2) + { + // FIXME-OPT + char buf[1024]; + va_list args; + va_start(args, fmt); + vsnprintf(buf, IM_ARRAYSIZE(buf), fmt, args); + buf[IM_ARRAYSIZE(buf)-1] = 0; + va_end(args); + Items.push_back(Strdup(buf)); + } + + void Draw(const char* title, bool* p_open) + { + ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); + if (!ImGui::Begin(title, p_open)) + { + ImGui::End(); + return; + } + + // As a specific feature guaranteed by the library, after calling Begin() the last Item represent the title bar. + // So e.g. IsItemHovered() will return true when hovering the title bar. + // Here we create a context menu only available from the title bar. + if (ImGui::BeginPopupContextItem()) + { + if (ImGui::MenuItem("Close Console")) + *p_open = false; + ImGui::EndPopup(); + } + + ImGui::TextWrapped( + "This example implements a console with basic coloring, completion (TAB key) and history (Up/Down keys). A more elaborate " + "implementation may want to store entries along with extra data such as timestamp, emitter, etc."); + ImGui::TextWrapped("Enter 'HELP' for help."); + + // TODO: display items starting from the bottom + + if (ImGui::SmallButton("Add Debug Text")) { AddLog("%d some text", Items.Size); AddLog("some more text"); AddLog("display very important message here!"); } + ImGui::SameLine(); + if (ImGui::SmallButton("Add Debug Error")) { AddLog("[error] something went wrong"); } + ImGui::SameLine(); + if (ImGui::SmallButton("Clear")) { ClearLog(); } + ImGui::SameLine(); + bool copy_to_clipboard = ImGui::SmallButton("Copy"); + //static float t = 0.0f; if (ImGui::GetTime() - t > 0.02f) { t = ImGui::GetTime(); AddLog("Spam %f", t); } + + ImGui::Separator(); + + // Options menu + if (ImGui::BeginPopup("Options")) + { + ImGui::Checkbox("Auto-scroll", &AutoScroll); + ImGui::EndPopup(); + } + + // Options, Filter + if (ImGui::Button("Options")) + ImGui::OpenPopup("Options"); + ImGui::SameLine(); + Filter.Draw("Filter (\"incl,-excl\") (\"error\")", 180); + ImGui::Separator(); + + // Reserve enough left-over height for 1 separator + 1 input text + const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing(); + if (ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar)) + { + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::Selectable("Clear")) ClearLog(); + ImGui::EndPopup(); + } + + // Display every line as a separate entry so we can change their color or add custom widgets. + // If you only want raw text you can use ImGui::TextUnformatted(log.begin(), log.end()); + // NB- if you have thousands of entries this approach may be too inefficient and may require user-side clipping + // to only process visible items. The clipper will automatically measure the height of your first item and then + // "seek" to display only items in the visible area. + // To use the clipper we can replace your standard loop: + // for (int i = 0; i < Items.Size; i++) + // With: + // ImGuiListClipper clipper; + // clipper.Begin(Items.Size); + // while (clipper.Step()) + // for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + // - That your items are evenly spaced (same height) + // - That you have cheap random access to your elements (you can access them given their index, + // without processing all the ones before) + // You cannot this code as-is if a filter is active because it breaks the 'cheap random-access' property. + // We would need random-access on the post-filtered list. + // A typical application wanting coarse clipping and filtering may want to pre-compute an array of indices + // or offsets of items that passed the filtering test, recomputing this array when user changes the filter, + // and appending newly elements as they are inserted. This is left as a task to the user until we can manage + // to improve this example code! + // If your items are of variable height: + // - Split them into same height items would be simpler and facilitate random-seeking into your list. + // - Consider using manual call to IsRectVisible() and skipping extraneous decoration from your items. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing + if (copy_to_clipboard) + ImGui::LogToClipboard(); + for (int i = 0; i < Items.Size; i++) + { + const char* item = Items[i]; + if (!Filter.PassFilter(item)) + continue; + + // Normally you would store more information in your item than just a string. + // (e.g. make Items[] an array of structure, store color/type etc.) + ImVec4 color; + bool has_color = false; + if (strstr(item, "[error]")) { color = ImVec4(1.0f, 0.4f, 0.4f, 1.0f); has_color = true; } + else if (strncmp(item, "# ", 2) == 0) { color = ImVec4(1.0f, 0.8f, 0.6f, 1.0f); has_color = true; } + if (has_color) + ImGui::PushStyleColor(ImGuiCol_Text, color); + ImGui::TextUnformatted(item); + if (has_color) + ImGui::PopStyleColor(); + } + if (copy_to_clipboard) + ImGui::LogFinish(); + + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (ScrollToBottom || (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())) + ImGui::SetScrollHereY(1.0f); + ScrollToBottom = false; + + ImGui::PopStyleVar(); + } + ImGui::EndChild(); + ImGui::Separator(); + + // Command-line + bool reclaim_focus = false; + ImGuiInputTextFlags input_text_flags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_EscapeClearsAll | ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory; + if (ImGui::InputText("Input", InputBuf, IM_ARRAYSIZE(InputBuf), input_text_flags, &TextEditCallbackStub, (void*)this)) + { + char* s = InputBuf; + Strtrim(s); + if (s[0]) + ExecCommand(s); + strcpy(s, ""); + reclaim_focus = true; + } + + // Auto-focus on window apparition + ImGui::SetItemDefaultFocus(); + if (reclaim_focus) + ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget + + ImGui::End(); + } + + void ExecCommand(const char* command_line) + { + AddLog("# %s\n", command_line); + + // Insert into history. First find match and delete it so it can be pushed to the back. + // This isn't trying to be smart or optimal. + HistoryPos = -1; + for (int i = History.Size - 1; i >= 0; i--) + if (Stricmp(History[i], command_line) == 0) + { + free(History[i]); + History.erase(History.begin() + i); + break; + } + History.push_back(Strdup(command_line)); + + // Process command + if (Stricmp(command_line, "CLEAR") == 0) + { + ClearLog(); + } + else if (Stricmp(command_line, "HELP") == 0) + { + AddLog("Commands:"); + for (int i = 0; i < Commands.Size; i++) + AddLog("- %s", Commands[i]); + } + else if (Stricmp(command_line, "HISTORY") == 0) + { + int first = History.Size - 10; + for (int i = first > 0 ? first : 0; i < History.Size; i++) + AddLog("%3d: %s\n", i, History[i]); + } + else + { + AddLog("Unknown command: '%s'\n", command_line); + } + + // On command input, we scroll to bottom even if AutoScroll==false + ScrollToBottom = true; + } + + // In C++11 you'd be better off using lambdas for this sort of forwarding callbacks + static int TextEditCallbackStub(ImGuiInputTextCallbackData* data) + { + ExampleAppConsole* console = (ExampleAppConsole*)data->UserData; + return console->TextEditCallback(data); + } + + int TextEditCallback(ImGuiInputTextCallbackData* data) + { + //AddLog("cursor: %d, selection: %d-%d", data->CursorPos, data->SelectionStart, data->SelectionEnd); + switch (data->EventFlag) + { + case ImGuiInputTextFlags_CallbackCompletion: + { + // Example of TEXT COMPLETION + + // Locate beginning of current word + const char* word_end = data->Buf + data->CursorPos; + const char* word_start = word_end; + while (word_start > data->Buf) + { + const char c = word_start[-1]; + if (c == ' ' || c == '\t' || c == ',' || c == ';') + break; + word_start--; + } + + // Build a list of candidates + ImVector candidates; + for (int i = 0; i < Commands.Size; i++) + if (Strnicmp(Commands[i], word_start, (int)(word_end - word_start)) == 0) + candidates.push_back(Commands[i]); + + if (candidates.Size == 0) + { + // No match + AddLog("No match for \"%.*s\"!\n", (int)(word_end - word_start), word_start); + } + else if (candidates.Size == 1) + { + // Single match. Delete the beginning of the word and replace it entirely so we've got nice casing. + data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); + data->InsertChars(data->CursorPos, candidates[0]); + data->InsertChars(data->CursorPos, " "); + } + else + { + // Multiple matches. Complete as much as we can.. + // So inputing "C"+Tab will complete to "CL" then display "CLEAR" and "CLASSIFY" as matches. + int match_len = (int)(word_end - word_start); + for (;;) + { + int c = 0; + bool all_candidates_matches = true; + for (int i = 0; i < candidates.Size && all_candidates_matches; i++) + if (i == 0) + c = toupper(candidates[i][match_len]); + else if (c == 0 || c != toupper(candidates[i][match_len])) + all_candidates_matches = false; + if (!all_candidates_matches) + break; + match_len++; + } + + if (match_len > 0) + { + data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); + data->InsertChars(data->CursorPos, candidates[0], candidates[0] + match_len); + } + + // List matches + AddLog("Possible matches:\n"); + for (int i = 0; i < candidates.Size; i++) + AddLog("- %s\n", candidates[i]); + } + + break; + } + case ImGuiInputTextFlags_CallbackHistory: + { + // Example of HISTORY + const int prev_history_pos = HistoryPos; + if (data->EventKey == ImGuiKey_UpArrow) + { + if (HistoryPos == -1) + HistoryPos = History.Size - 1; + else if (HistoryPos > 0) + HistoryPos--; + } + else if (data->EventKey == ImGuiKey_DownArrow) + { + if (HistoryPos != -1) + if (++HistoryPos >= History.Size) + HistoryPos = -1; + } + + // A better implementation would preserve the data on the current input line along with cursor position. + if (prev_history_pos != HistoryPos) + { + const char* history_str = (HistoryPos >= 0) ? History[HistoryPos] : ""; + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, history_str); + } + } + } + return 0; + } +}; + +static void ShowExampleAppConsole(bool* p_open) +{ + static ExampleAppConsole console; + console.Draw("Example: Console", p_open); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Debug Log / ShowExampleAppLog() +//----------------------------------------------------------------------------- + +// Usage: +// static ExampleAppLog my_log; +// my_log.AddLog("Hello %d world\n", 123); +// my_log.Draw("title"); +struct ExampleAppLog +{ + ImGuiTextBuffer Buf; + ImGuiTextFilter Filter; + ImVector LineOffsets; // Index to lines offset. We maintain this with AddLog() calls. + bool AutoScroll; // Keep scrolling if already at the bottom. + + ExampleAppLog() + { + AutoScroll = true; + Clear(); + } + + void Clear() + { + Buf.clear(); + LineOffsets.clear(); + LineOffsets.push_back(0); + } + + void AddLog(const char* fmt, ...) IM_FMTARGS(2) + { + int old_size = Buf.size(); + va_list args; + va_start(args, fmt); + Buf.appendfv(fmt, args); + va_end(args); + for (int new_size = Buf.size(); old_size < new_size; old_size++) + if (Buf[old_size] == '\n') + LineOffsets.push_back(old_size + 1); + } + + void Draw(const char* title, bool* p_open = NULL) + { + if (!ImGui::Begin(title, p_open)) + { + ImGui::End(); + return; + } + + // Options menu + if (ImGui::BeginPopup("Options")) + { + ImGui::Checkbox("Auto-scroll", &AutoScroll); + ImGui::EndPopup(); + } + + // Main window + if (ImGui::Button("Options")) + ImGui::OpenPopup("Options"); + ImGui::SameLine(); + bool clear = ImGui::Button("Clear"); + ImGui::SameLine(); + bool copy = ImGui::Button("Copy"); + ImGui::SameLine(); + Filter.Draw("Filter", -100.0f); + + ImGui::Separator(); + + if (ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar)) + { + if (clear) + Clear(); + if (copy) + ImGui::LogToClipboard(); + + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + const char* buf = Buf.begin(); + const char* buf_end = Buf.end(); + if (Filter.IsActive()) + { + // In this example we don't use the clipper when Filter is enabled. + // This is because we don't have random access to the result of our filter. + // A real application processing logs with ten of thousands of entries may want to store the result of + // search/filter.. especially if the filtering function is not trivial (e.g. reg-exp). + for (int line_no = 0; line_no < LineOffsets.Size; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + if (Filter.PassFilter(line_start, line_end)) + ImGui::TextUnformatted(line_start, line_end); + } + } + else + { + // The simplest and easy way to display the entire buffer: + // ImGui::TextUnformatted(buf_begin, buf_end); + // And it'll just work. TextUnformatted() has specialization for large blob of text and will fast-forward + // to skip non-visible lines. Here we instead demonstrate using the clipper to only process lines that are + // within the visible area. + // If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them + // on your side is recommended. Using ImGuiListClipper requires + // - A) random access into your data + // - B) items all being the same height, + // both of which we can handle since we have an array pointing to the beginning of each line of text. + // When using the filter (in the block of code above) we don't have random access into the data to display + // anymore, which is why we don't use the clipper. Storing or skimming through the search result would make + // it possible (and would be recommended if you want to search through tens of thousands of entries). + ImGuiListClipper clipper; + clipper.Begin(LineOffsets.Size); + while (clipper.Step()) + { + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + ImGui::TextUnformatted(line_start, line_end); + } + } + clipper.End(); + } + ImGui::PopStyleVar(); + + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) + ImGui::SetScrollHereY(1.0f); + } + ImGui::EndChild(); + ImGui::End(); + } +}; + +// Demonstrate creating a simple log window with basic filtering. +static void ShowExampleAppLog(bool* p_open) +{ + static ExampleAppLog log; + + // For the demo: add a debug button _BEFORE_ the normal log window contents + // We take advantage of a rarely used feature: multiple calls to Begin()/End() are appending to the _same_ window. + // Most of the contents of the window will be added by the log.Draw() call. + ImGui::SetNextWindowSize(ImVec2(500, 400), ImGuiCond_FirstUseEver); + ImGui::Begin("Example: Log", p_open); + IMGUI_DEMO_MARKER("Examples/Log"); + if (ImGui::SmallButton("[Debug] Add 5 entries")) + { + static int counter = 0; + const char* categories[3] = { "info", "warn", "error" }; + const char* words[] = { "Bumfuzzled", "Cattywampus", "Snickersnee", "Abibliophobia", "Absquatulate", "Nincompoop", "Pauciloquent" }; + for (int n = 0; n < 5; n++) + { + const char* category = categories[counter % IM_ARRAYSIZE(categories)]; + const char* word = words[counter % IM_ARRAYSIZE(words)]; + log.AddLog("[%05d] [%s] Hello, current time is %.1f, here's a word: '%s'\n", + ImGui::GetFrameCount(), category, ImGui::GetTime(), word); + counter++; + } + } + ImGui::End(); + + // Actually call in the regular Log helper (which will Begin() into the same window as we just did) + log.Draw("Example: Log", p_open); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() +//----------------------------------------------------------------------------- + +// Demonstrate create a window with multiple child windows. +static void ShowExampleAppLayout(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(500, 440), ImGuiCond_FirstUseEver); + if (ImGui::Begin("Example: Simple layout", p_open, ImGuiWindowFlags_MenuBar)) + { + IMGUI_DEMO_MARKER("Examples/Simple layout"); + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + if (ImGui::MenuItem("Close")) *p_open = false; + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + // Left + static int selected = 0; + { + ImGui::BeginChild("left pane", ImVec2(150, 0), true); + for (int i = 0; i < 100; i++) + { + // FIXME: Good candidate to use ImGuiSelectableFlags_SelectOnNav + char label[128]; + sprintf(label, "MyObject %d", i); + if (ImGui::Selectable(label, selected == i)) + selected = i; + } + ImGui::EndChild(); + } + ImGui::SameLine(); + + // Right + { + ImGui::BeginGroup(); + ImGui::BeginChild("item view", ImVec2(0, -ImGui::GetFrameHeightWithSpacing())); // Leave room for 1 line below us + ImGui::Text("MyObject: %d", selected); + ImGui::Separator(); + if (ImGui::BeginTabBar("##Tabs", ImGuiTabBarFlags_None)) + { + if (ImGui::BeginTabItem("Description")) + { + ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Details")) + { + ImGui::Text("ID: 0123456789"); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::EndChild(); + if (ImGui::Button("Revert")) {} + ImGui::SameLine(); + if (ImGui::Button("Save")) {} + ImGui::EndGroup(); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() +//----------------------------------------------------------------------------- + +static void ShowPlaceholderObject(const char* prefix, int uid) +{ + // Use object uid as identifier. Most commonly you could also use the object pointer as a base ID. + ImGui::PushID(uid); + + // Text and Tree nodes are less high than framed widgets, using AlignTextToFramePadding() we add vertical spacing to make the tree lines equal high. + ImGui::TableNextRow(); + ImGui::TableSetColumnIndex(0); + ImGui::AlignTextToFramePadding(); + bool node_open = ImGui::TreeNode("Object", "%s_%u", prefix, uid); + ImGui::TableSetColumnIndex(1); + ImGui::Text("my sailor is rich"); + + if (node_open) + { + static float placeholder_members[8] = { 0.0f, 0.0f, 1.0f, 3.1416f, 100.0f, 999.0f }; + for (int i = 0; i < 8; i++) + { + ImGui::PushID(i); // Use field index as identifier. + if (i < 2) + { + ShowPlaceholderObject("Child", 424242); + } + else + { + // Here we use a TreeNode to highlight on hover (we could use e.g. Selectable as well) + ImGui::TableNextRow(); + ImGui::TableSetColumnIndex(0); + ImGui::AlignTextToFramePadding(); + ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_Bullet; + ImGui::TreeNodeEx("Field", flags, "Field_%d", i); + + ImGui::TableSetColumnIndex(1); + ImGui::SetNextItemWidth(-FLT_MIN); + if (i >= 5) + ImGui::InputFloat("##value", &placeholder_members[i], 1.0f); + else + ImGui::DragFloat("##value", &placeholder_members[i], 0.01f); + ImGui::NextColumn(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + ImGui::PopID(); +} + +// Demonstrate create a simple property editor. +static void ShowExampleAppPropertyEditor(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver); + if (!ImGui::Begin("Example: Property editor", p_open)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Property Editor"); + + HelpMarker( + "This example shows how you may implement a property editor using two columns.\n" + "All objects/fields data are dummies here.\n" + "Remember that in many simple cases, you can use ImGui::SameLine(xxx) to position\n" + "your cursor horizontally instead of using the Columns() API."); + + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2)); + if (ImGui::BeginTable("split", 2, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_Resizable)) + { + // Iterate placeholder objects (all the same data) + for (int obj_i = 0; obj_i < 4; obj_i++) + { + ShowPlaceholderObject("Object", obj_i); + //ImGui::Separator(); + } + ImGui::EndTable(); + } + ImGui::PopStyleVar(); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Long Text / ShowExampleAppLongText() +//----------------------------------------------------------------------------- + +// Demonstrate/test rendering huge amount of text, and the incidence of clipping. +static void ShowExampleAppLongText(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); + if (!ImGui::Begin("Example: Long text display", p_open)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Long text display"); + + static int test_type = 0; + static ImGuiTextBuffer log; + static int lines = 0; + ImGui::Text("Printing unusually long amount of text."); + ImGui::Combo("Test type", &test_type, + "Single call to TextUnformatted()\0" + "Multiple calls to Text(), clipped\0" + "Multiple calls to Text(), not clipped (slow)\0"); + ImGui::Text("Buffer contents: %d lines, %d bytes", lines, log.size()); + if (ImGui::Button("Clear")) { log.clear(); lines = 0; } + ImGui::SameLine(); + if (ImGui::Button("Add 1000 lines")) + { + for (int i = 0; i < 1000; i++) + log.appendf("%i The quick brown fox jumps over the lazy dog\n", lines + i); + lines += 1000; + } + ImGui::BeginChild("Log"); + switch (test_type) + { + case 0: + // Single call to TextUnformatted() with a big buffer + ImGui::TextUnformatted(log.begin(), log.end()); + break; + case 1: + { + // Multiple calls to Text(), manually coarsely clipped - demonstrate how to use the ImGuiListClipper helper. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + ImGuiListClipper clipper; + clipper.Begin(lines); + while (clipper.Step()) + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); + ImGui::PopStyleVar(); + break; + } + case 2: + // Multiple calls to Text(), not clipped (slow) + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int i = 0; i < lines; i++) + ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); + ImGui::PopStyleVar(); + break; + } + ImGui::EndChild(); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window which gets auto-resized according to its content. +static void ShowExampleAppAutoResize(bool* p_open) +{ + if (!ImGui::Begin("Example: Auto-resizing window", p_open, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Auto-resizing window"); + + static int lines = 10; + ImGui::TextUnformatted( + "Window will resize every-frame to the size of its content.\n" + "Note that you probably don't want to query the window size to\n" + "output your content because that would create a feedback loop."); + ImGui::SliderInt("Number of lines", &lines, 1, 20); + for (int i = 0; i < lines; i++) + ImGui::Text("%*sThis is line %d", i * 4, "", i); // Pad with space to extend size horizontally + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window with custom resize constraints. +// Note that size constraints currently don't work on a docked window (when in 'docking' branch) +static void ShowExampleAppConstrainedResize(bool* p_open) +{ + struct CustomConstraints + { + // Helper functions to demonstrate programmatic constraints + // FIXME: This doesn't take account of decoration size (e.g. title bar), library should make this easier. + static void AspectRatio(ImGuiSizeCallbackData* data) { float aspect_ratio = *(float*)data->UserData; data->DesiredSize.x = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); data->DesiredSize.y = (float)(int)(data->DesiredSize.x / aspect_ratio); } + static void Square(ImGuiSizeCallbackData* data) { data->DesiredSize.x = data->DesiredSize.y = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); } + static void Step(ImGuiSizeCallbackData* data) { float step = *(float*)data->UserData; data->DesiredSize = ImVec2((int)(data->CurrentSize.x / step + 0.5f) * step, (int)(data->CurrentSize.y / step + 0.5f) * step); } + }; + + const char* test_desc[] = + { + "Between 100x100 and 500x500", + "At least 100x100", + "Resize vertical only", + "Resize horizontal only", + "Width Between 400 and 500", + "Custom: Aspect Ratio 16:9", + "Custom: Always Square", + "Custom: Fixed Steps (100)", + }; + + // Options + static bool auto_resize = false; + static bool window_padding = true; + static int type = 5; // Aspect Ratio + static int display_lines = 10; + + // Submit constraint + float aspect_ratio = 16.0f / 9.0f; + float fixed_step = 100.0f; + if (type == 0) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(500, 500)); // Between 100x100 and 500x500 + if (type == 1) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(FLT_MAX, FLT_MAX)); // Width > 100, Height > 100 + if (type == 2) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 0), ImVec2(-1, FLT_MAX)); // Vertical only + if (type == 3) ImGui::SetNextWindowSizeConstraints(ImVec2(0, -1), ImVec2(FLT_MAX, -1)); // Horizontal only + if (type == 4) ImGui::SetNextWindowSizeConstraints(ImVec2(400, -1), ImVec2(500, -1)); // Width Between and 400 and 500 + if (type == 5) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::AspectRatio, (void*)&aspect_ratio); // Aspect ratio + if (type == 6) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Square); // Always Square + if (type == 7) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Step, (void*)&fixed_step); // Fixed Step + + // Submit window + if (!window_padding) + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + const ImGuiWindowFlags window_flags = auto_resize ? ImGuiWindowFlags_AlwaysAutoResize : 0; + const bool window_open = ImGui::Begin("Example: Constrained Resize", p_open, window_flags); + if (!window_padding) + ImGui::PopStyleVar(); + if (window_open) + { + IMGUI_DEMO_MARKER("Examples/Constrained Resizing window"); + if (ImGui::GetIO().KeyShift) + { + // Display a dummy viewport (in your real app you would likely use ImageButton() to display a texture. + ImVec2 avail_size = ImGui::GetContentRegionAvail(); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImGui::ColorButton("viewport", ImVec4(0.5f, 0.2f, 0.5f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, avail_size); + ImGui::SetCursorScreenPos(ImVec2(pos.x + 10, pos.y + 10)); + ImGui::Text("%.2f x %.2f", avail_size.x, avail_size.y); + } + else + { + ImGui::Text("(Hold SHIFT to display a dummy viewport)"); + if (ImGui::Button("Set 200x200")) { ImGui::SetWindowSize(ImVec2(200, 200)); } ImGui::SameLine(); + if (ImGui::Button("Set 500x500")) { ImGui::SetWindowSize(ImVec2(500, 500)); } ImGui::SameLine(); + if (ImGui::Button("Set 800x200")) { ImGui::SetWindowSize(ImVec2(800, 200)); } + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::Combo("Constraint", &type, test_desc, IM_ARRAYSIZE(test_desc)); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::DragInt("Lines", &display_lines, 0.2f, 1, 100); + ImGui::Checkbox("Auto-resize", &auto_resize); + ImGui::Checkbox("Window padding", &window_padding); + for (int i = 0; i < display_lines; i++) + ImGui::Text("%*sHello, sailor! Making this line long enough for the example.", i * 4, ""); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Simple overlay / ShowExampleAppSimpleOverlay() +//----------------------------------------------------------------------------- + +// Demonstrate creating a simple static window with no decoration +// + a context-menu to choose which corner of the screen to use. +static void ShowExampleAppSimpleOverlay(bool* p_open) +{ + static int location = 0; + ImGuiIO& io = ImGui::GetIO(); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav; + if (location >= 0) + { + const float PAD = 10.0f; + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImVec2 work_pos = viewport->WorkPos; // Use work area to avoid menu-bar/task-bar, if any! + ImVec2 work_size = viewport->WorkSize; + ImVec2 window_pos, window_pos_pivot; + window_pos.x = (location & 1) ? (work_pos.x + work_size.x - PAD) : (work_pos.x + PAD); + window_pos.y = (location & 2) ? (work_pos.y + work_size.y - PAD) : (work_pos.y + PAD); + window_pos_pivot.x = (location & 1) ? 1.0f : 0.0f; + window_pos_pivot.y = (location & 2) ? 1.0f : 0.0f; + ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always, window_pos_pivot); + window_flags |= ImGuiWindowFlags_NoMove; + } + else if (location == -2) + { + // Center window + ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + window_flags |= ImGuiWindowFlags_NoMove; + } + ImGui::SetNextWindowBgAlpha(0.35f); // Transparent background + if (ImGui::Begin("Example: Simple overlay", p_open, window_flags)) + { + IMGUI_DEMO_MARKER("Examples/Simple Overlay"); + ImGui::Text("Simple overlay\n" "(right-click to change position)"); + ImGui::Separator(); + if (ImGui::IsMousePosValid()) + ImGui::Text("Mouse Position: (%.1f,%.1f)", io.MousePos.x, io.MousePos.y); + else + ImGui::Text("Mouse Position: "); + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::MenuItem("Custom", NULL, location == -1)) location = -1; + if (ImGui::MenuItem("Center", NULL, location == -2)) location = -2; + if (ImGui::MenuItem("Top-left", NULL, location == 0)) location = 0; + if (ImGui::MenuItem("Top-right", NULL, location == 1)) location = 1; + if (ImGui::MenuItem("Bottom-left", NULL, location == 2)) location = 2; + if (ImGui::MenuItem("Bottom-right", NULL, location == 3)) location = 3; + if (p_open && ImGui::MenuItem("Close")) *p_open = false; + ImGui::EndPopup(); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Fullscreen window / ShowExampleAppFullscreen() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window covering the entire screen/viewport +static void ShowExampleAppFullscreen(bool* p_open) +{ + static bool use_work_area = true; + static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings; + + // We demonstrate using the full viewport area or the work area (without menu-bars, task-bars etc.) + // Based on your use case you may want one of the other. + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImGui::SetNextWindowPos(use_work_area ? viewport->WorkPos : viewport->Pos); + ImGui::SetNextWindowSize(use_work_area ? viewport->WorkSize : viewport->Size); + + if (ImGui::Begin("Example: Fullscreen window", p_open, flags)) + { + ImGui::Checkbox("Use work area instead of main area", &use_work_area); + ImGui::SameLine(); + HelpMarker("Main Area = entire viewport,\nWork Area = entire viewport minus sections used by the main menu bars, task bars etc.\n\nEnable the main-menu bar in Examples menu to see the difference."); + + ImGui::CheckboxFlags("ImGuiWindowFlags_NoBackground", &flags, ImGuiWindowFlags_NoBackground); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoDecoration", &flags, ImGuiWindowFlags_NoDecoration); + ImGui::Indent(); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoTitleBar", &flags, ImGuiWindowFlags_NoTitleBar); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoCollapse", &flags, ImGuiWindowFlags_NoCollapse); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoScrollbar", &flags, ImGuiWindowFlags_NoScrollbar); + ImGui::Unindent(); + + if (p_open && ImGui::Button("Close this window")) + *p_open = false; + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Manipulating Window Titles / ShowExampleAppWindowTitles() +//----------------------------------------------------------------------------- + +// Demonstrate the use of "##" and "###" in identifiers to manipulate ID generation. +// This applies to all regular items as well. +// Read FAQ section "How can I have multiple widgets with the same label?" for details. +static void ShowExampleAppWindowTitles(bool*) +{ + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + const ImVec2 base_pos = viewport->Pos; + + // By default, Windows are uniquely identified by their title. + // You can use the "##" and "###" markers to manipulate the display/ID. + + // Using "##" to display same title but have unique identifier. + ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 100), ImGuiCond_FirstUseEver); + ImGui::Begin("Same title as another window##1"); + IMGUI_DEMO_MARKER("Examples/Manipulating window titles"); + ImGui::Text("This is window 1.\nMy title is the same as window 2, but my identifier is unique."); + ImGui::End(); + + ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 200), ImGuiCond_FirstUseEver); + ImGui::Begin("Same title as another window##2"); + ImGui::Text("This is window 2.\nMy title is the same as window 1, but my identifier is unique."); + ImGui::End(); + + // Using "###" to display a changing title but keep a static identifier "AnimatedTitle" + char buf[128]; + sprintf(buf, "Animated title %c %d###AnimatedTitle", "|/-\\"[(int)(ImGui::GetTime() / 0.25f) & 3], ImGui::GetFrameCount()); + ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 300), ImGuiCond_FirstUseEver); + ImGui::Begin(buf); + ImGui::Text("This window has a changing title."); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() +//----------------------------------------------------------------------------- + +// Demonstrate using the low-level ImDrawList to draw custom shapes. +static void ShowExampleAppCustomRendering(bool* p_open) +{ + if (!ImGui::Begin("Example: Custom rendering", p_open)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Custom Rendering"); + + // Tip: If you do a lot of custom rendering, you probably want to use your own geometrical types and benefit of + // overloaded operators, etc. Define IM_VEC2_CLASS_EXTRA in imconfig.h to create implicit conversions between your + // types and ImVec2/ImVec4. Dear ImGui defines overloaded operators but they are internal to imgui.cpp and not + // exposed outside (to avoid messing with your types) In this example we are not using the maths operators! + + if (ImGui::BeginTabBar("##TabBar")) + { + if (ImGui::BeginTabItem("Primitives")) + { + ImGui::PushItemWidth(-ImGui::GetFontSize() * 15); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + + // Draw gradients + // (note that those are currently exacerbating our sRGB/Linear issues) + // Calling ImGui::GetColorU32() multiplies the given colors by the current Style Alpha, but you may pass the IM_COL32() directly as well.. + ImGui::Text("Gradients"); + ImVec2 gradient_size = ImVec2(ImGui::CalcItemWidth(), ImGui::GetFrameHeight()); + { + ImVec2 p0 = ImGui::GetCursorScreenPos(); + ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); + ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 0, 0, 255)); + ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 255, 255, 255)); + draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); + ImGui::InvisibleButton("##gradient1", gradient_size); + } + { + ImVec2 p0 = ImGui::GetCursorScreenPos(); + ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); + ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 255, 0, 255)); + ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 0, 0, 255)); + draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); + ImGui::InvisibleButton("##gradient2", gradient_size); + } + + // Draw a bunch of primitives + ImGui::Text("All primitives"); + static float sz = 36.0f; + static float thickness = 3.0f; + static int ngon_sides = 6; + static bool circle_segments_override = false; + static int circle_segments_override_v = 12; + static bool curve_segments_override = false; + static int curve_segments_override_v = 8; + static ImVec4 colf = ImVec4(1.0f, 1.0f, 0.4f, 1.0f); + ImGui::DragFloat("Size", &sz, 0.2f, 2.0f, 100.0f, "%.0f"); + ImGui::DragFloat("Thickness", &thickness, 0.05f, 1.0f, 8.0f, "%.02f"); + ImGui::SliderInt("N-gon sides", &ngon_sides, 3, 12); + ImGui::Checkbox("##circlesegmentoverride", &circle_segments_override); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + circle_segments_override |= ImGui::SliderInt("Circle segments override", &circle_segments_override_v, 3, 40); + ImGui::Checkbox("##curvessegmentoverride", &curve_segments_override); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + curve_segments_override |= ImGui::SliderInt("Curves segments override", &curve_segments_override_v, 3, 40); + ImGui::ColorEdit4("Color", &colf.x); + + const ImVec2 p = ImGui::GetCursorScreenPos(); + const ImU32 col = ImColor(colf); + const float spacing = 10.0f; + const ImDrawFlags corners_tl_br = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersBottomRight; + const float rounding = sz / 5.0f; + const int circle_segments = circle_segments_override ? circle_segments_override_v : 0; + const int curve_segments = curve_segments_override ? curve_segments_override_v : 0; + float x = p.x + 4.0f; + float y = p.y + 4.0f; + for (int n = 0; n < 2; n++) + { + // First line uses a thickness of 1.0f, second line uses the configurable thickness + float th = (n == 0) ? 1.0f : thickness; + draw_list->AddNgon(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, ngon_sides, th); x += sz + spacing; // N-gon + draw_list->AddCircle(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments, th); x += sz + spacing; // Circle + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 0.0f, ImDrawFlags_None, th); x += sz + spacing; // Square + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, ImDrawFlags_None, th); x += sz + spacing; // Square with all rounded corners + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, corners_tl_br, th); x += sz + spacing; // Square with two rounded corners + draw_list->AddTriangle(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col, th);x += sz + spacing; // Triangle + //draw_list->AddTriangle(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col, th);x+= sz*0.4f + spacing; // Thin triangle + draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y), col, th); x += sz + spacing; // Horizontal line (note: drawing a filled rectangle will be faster!) + draw_list->AddLine(ImVec2(x, y), ImVec2(x, y + sz), col, th); x += spacing; // Vertical line (note: drawing a filled rectangle will be faster!) + draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y + sz), col, th); x += sz + spacing; // Diagonal line + + // Quadratic Bezier Curve (3 control points) + ImVec2 cp3[3] = { ImVec2(x, y + sz * 0.6f), ImVec2(x + sz * 0.5f, y - sz * 0.4f), ImVec2(x + sz, y + sz) }; + draw_list->AddBezierQuadratic(cp3[0], cp3[1], cp3[2], col, th, curve_segments); x += sz + spacing; + + // Cubic Bezier Curve (4 control points) + ImVec2 cp4[4] = { ImVec2(x, y), ImVec2(x + sz * 1.3f, y + sz * 0.3f), ImVec2(x + sz - sz * 1.3f, y + sz - sz * 0.3f), ImVec2(x + sz, y + sz) }; + draw_list->AddBezierCubic(cp4[0], cp4[1], cp4[2], cp4[3], col, th, curve_segments); + + x = p.x + 4; + y += sz + spacing; + } + draw_list->AddNgonFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz*0.5f, col, ngon_sides); x += sz + spacing; // N-gon + draw_list->AddCircleFilled(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments); x += sz + spacing; // Circle + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col); x += sz + spacing; // Square + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f); x += sz + spacing; // Square with all rounded corners + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f, corners_tl_br); x += sz + spacing; // Square with two rounded corners + draw_list->AddTriangleFilled(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col); x += sz + spacing; // Triangle + //draw_list->AddTriangleFilled(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col); x += sz*0.4f + spacing; // Thin triangle + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + thickness), col); x += sz + spacing; // Horizontal line (faster than AddLine, but only handle integer thickness) + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + thickness, y + sz), col); x += spacing * 2.0f;// Vertical line (faster than AddLine, but only handle integer thickness) + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + 1, y + 1), col); x += sz; // Pixel (faster than AddLine) + draw_list->AddRectFilledMultiColor(ImVec2(x, y), ImVec2(x + sz, y + sz), IM_COL32(0, 0, 0, 255), IM_COL32(255, 0, 0, 255), IM_COL32(255, 255, 0, 255), IM_COL32(0, 255, 0, 255)); + + ImGui::Dummy(ImVec2((sz + spacing) * 10.2f, (sz + spacing) * 3.0f)); + ImGui::PopItemWidth(); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Canvas")) + { + static ImVector points; + static ImVec2 scrolling(0.0f, 0.0f); + static bool opt_enable_grid = true; + static bool opt_enable_context_menu = true; + static bool adding_line = false; + + ImGui::Checkbox("Enable grid", &opt_enable_grid); + ImGui::Checkbox("Enable context menu", &opt_enable_context_menu); + ImGui::Text("Mouse Left: drag to add lines,\nMouse Right: drag to scroll, click for context menu."); + + // Typically you would use a BeginChild()/EndChild() pair to benefit from a clipping region + own scrolling. + // Here we demonstrate that this can be replaced by simple offsetting + custom drawing + PushClipRect/PopClipRect() calls. + // To use a child window instead we could use, e.g: + // ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); // Disable padding + // ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 50, 50, 255)); // Set a background color + // ImGui::BeginChild("canvas", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_NoMove); + // ImGui::PopStyleColor(); + // ImGui::PopStyleVar(); + // [...] + // ImGui::EndChild(); + + // Using InvisibleButton() as a convenience 1) it will advance the layout cursor and 2) allows us to use IsItemHovered()/IsItemActive() + ImVec2 canvas_p0 = ImGui::GetCursorScreenPos(); // ImDrawList API uses screen coordinates! + ImVec2 canvas_sz = ImGui::GetContentRegionAvail(); // Resize canvas to what's available + if (canvas_sz.x < 50.0f) canvas_sz.x = 50.0f; + if (canvas_sz.y < 50.0f) canvas_sz.y = 50.0f; + ImVec2 canvas_p1 = ImVec2(canvas_p0.x + canvas_sz.x, canvas_p0.y + canvas_sz.y); + + // Draw border and background color + ImGuiIO& io = ImGui::GetIO(); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + draw_list->AddRectFilled(canvas_p0, canvas_p1, IM_COL32(50, 50, 50, 255)); + draw_list->AddRect(canvas_p0, canvas_p1, IM_COL32(255, 255, 255, 255)); + + // This will catch our interactions + ImGui::InvisibleButton("canvas", canvas_sz, ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight); + const bool is_hovered = ImGui::IsItemHovered(); // Hovered + const bool is_active = ImGui::IsItemActive(); // Held + const ImVec2 origin(canvas_p0.x + scrolling.x, canvas_p0.y + scrolling.y); // Lock scrolled origin + const ImVec2 mouse_pos_in_canvas(io.MousePos.x - origin.x, io.MousePos.y - origin.y); + + // Add first and second point + if (is_hovered && !adding_line && ImGui::IsMouseClicked(ImGuiMouseButton_Left)) + { + points.push_back(mouse_pos_in_canvas); + points.push_back(mouse_pos_in_canvas); + adding_line = true; + } + if (adding_line) + { + points.back() = mouse_pos_in_canvas; + if (!ImGui::IsMouseDown(ImGuiMouseButton_Left)) + adding_line = false; + } + + // Pan (we use a zero mouse threshold when there's no context menu) + // You may decide to make that threshold dynamic based on whether the mouse is hovering something etc. + const float mouse_threshold_for_pan = opt_enable_context_menu ? -1.0f : 0.0f; + if (is_active && ImGui::IsMouseDragging(ImGuiMouseButton_Right, mouse_threshold_for_pan)) + { + scrolling.x += io.MouseDelta.x; + scrolling.y += io.MouseDelta.y; + } + + // Context menu (under default mouse threshold) + ImVec2 drag_delta = ImGui::GetMouseDragDelta(ImGuiMouseButton_Right); + if (opt_enable_context_menu && drag_delta.x == 0.0f && drag_delta.y == 0.0f) + ImGui::OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + if (ImGui::BeginPopup("context")) + { + if (adding_line) + points.resize(points.size() - 2); + adding_line = false; + if (ImGui::MenuItem("Remove one", NULL, false, points.Size > 0)) { points.resize(points.size() - 2); } + if (ImGui::MenuItem("Remove all", NULL, false, points.Size > 0)) { points.clear(); } + ImGui::EndPopup(); + } + + // Draw grid + all lines in the canvas + draw_list->PushClipRect(canvas_p0, canvas_p1, true); + if (opt_enable_grid) + { + const float GRID_STEP = 64.0f; + for (float x = fmodf(scrolling.x, GRID_STEP); x < canvas_sz.x; x += GRID_STEP) + draw_list->AddLine(ImVec2(canvas_p0.x + x, canvas_p0.y), ImVec2(canvas_p0.x + x, canvas_p1.y), IM_COL32(200, 200, 200, 40)); + for (float y = fmodf(scrolling.y, GRID_STEP); y < canvas_sz.y; y += GRID_STEP) + draw_list->AddLine(ImVec2(canvas_p0.x, canvas_p0.y + y), ImVec2(canvas_p1.x, canvas_p0.y + y), IM_COL32(200, 200, 200, 40)); + } + for (int n = 0; n < points.Size; n += 2) + draw_list->AddLine(ImVec2(origin.x + points[n].x, origin.y + points[n].y), ImVec2(origin.x + points[n + 1].x, origin.y + points[n + 1].y), IM_COL32(255, 255, 0, 255), 2.0f); + draw_list->PopClipRect(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("BG/FG draw lists")) + { + static bool draw_bg = true; + static bool draw_fg = true; + ImGui::Checkbox("Draw in Background draw list", &draw_bg); + ImGui::SameLine(); HelpMarker("The Background draw list will be rendered below every Dear ImGui windows."); + ImGui::Checkbox("Draw in Foreground draw list", &draw_fg); + ImGui::SameLine(); HelpMarker("The Foreground draw list will be rendered over every Dear ImGui windows."); + ImVec2 window_pos = ImGui::GetWindowPos(); + ImVec2 window_size = ImGui::GetWindowSize(); + ImVec2 window_center = ImVec2(window_pos.x + window_size.x * 0.5f, window_pos.y + window_size.y * 0.5f); + if (draw_bg) + ImGui::GetBackgroundDrawList()->AddCircle(window_center, window_size.x * 0.6f, IM_COL32(255, 0, 0, 200), 0, 10 + 4); + if (draw_fg) + ImGui::GetForegroundDrawList()->AddCircle(window_center, window_size.y * 0.6f, IM_COL32(0, 255, 0, 200), 0, 10); + ImGui::EndTabItem(); + } + + ImGui::EndTabBar(); + } + + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() +//----------------------------------------------------------------------------- + +// Simplified structure to mimic a Document model +struct MyDocument +{ + const char* Name; // Document title + bool Open; // Set when open (we keep an array of all available documents to simplify demo code!) + bool OpenPrev; // Copy of Open from last update. + bool Dirty; // Set when the document has been modified + bool WantClose; // Set when the document + ImVec4 Color; // An arbitrary variable associated to the document + + MyDocument(const char* name, bool open = true, const ImVec4& color = ImVec4(1.0f, 1.0f, 1.0f, 1.0f)) + { + Name = name; + Open = OpenPrev = open; + Dirty = false; + WantClose = false; + Color = color; + } + void DoOpen() { Open = true; } + void DoQueueClose() { WantClose = true; } + void DoForceClose() { Open = false; Dirty = false; } + void DoSave() { Dirty = false; } + + // Display placeholder contents for the Document + static void DisplayContents(MyDocument* doc) + { + ImGui::PushID(doc); + ImGui::Text("Document \"%s\"", doc->Name); + ImGui::PushStyleColor(ImGuiCol_Text, doc->Color); + ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); + ImGui::PopStyleColor(); + if (ImGui::Button("Modify", ImVec2(100, 0))) + doc->Dirty = true; + ImGui::SameLine(); + if (ImGui::Button("Save", ImVec2(100, 0))) + doc->DoSave(); + ImGui::ColorEdit3("color", &doc->Color.x); // Useful to test drag and drop and hold-dragged-to-open-tab behavior. + ImGui::PopID(); + } + + // Display context menu for the Document + static void DisplayContextMenu(MyDocument* doc) + { + if (!ImGui::BeginPopupContextItem()) + return; + + char buf[256]; + sprintf(buf, "Save %s", doc->Name); + if (ImGui::MenuItem(buf, "CTRL+S", false, doc->Open)) + doc->DoSave(); + if (ImGui::MenuItem("Close", "CTRL+W", false, doc->Open)) + doc->DoQueueClose(); + ImGui::EndPopup(); + } +}; + +struct ExampleAppDocuments +{ + ImVector Documents; + + ExampleAppDocuments() + { + Documents.push_back(MyDocument("Lettuce", true, ImVec4(0.4f, 0.8f, 0.4f, 1.0f))); + Documents.push_back(MyDocument("Eggplant", true, ImVec4(0.8f, 0.5f, 1.0f, 1.0f))); + Documents.push_back(MyDocument("Carrot", true, ImVec4(1.0f, 0.8f, 0.5f, 1.0f))); + Documents.push_back(MyDocument("Tomato", false, ImVec4(1.0f, 0.3f, 0.4f, 1.0f))); + Documents.push_back(MyDocument("A Rather Long Title", false)); + Documents.push_back(MyDocument("Some Document", false)); + } +}; + +// [Optional] Notify the system of Tabs/Windows closure that happened outside the regular tab interface. +// If a tab has been closed programmatically (aka closed from another source such as the Checkbox() in the demo, +// as opposed to clicking on the regular tab closing button) and stops being submitted, it will take a frame for +// the tab bar to notice its absence. During this frame there will be a gap in the tab bar, and if the tab that has +// disappeared was the selected one, the tab bar will report no selected tab during the frame. This will effectively +// give the impression of a flicker for one frame. +// We call SetTabItemClosed() to manually notify the Tab Bar or Docking system of removed tabs to avoid this glitch. +// Note that this completely optional, and only affect tab bars with the ImGuiTabBarFlags_Reorderable flag. +static void NotifyOfDocumentsClosedElsewhere(ExampleAppDocuments& app) +{ + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open && doc->OpenPrev) + ImGui::SetTabItemClosed(doc->Name); + doc->OpenPrev = doc->Open; + } +} + +void ShowExampleAppDocuments(bool* p_open) +{ + static ExampleAppDocuments app; + + // Options + static bool opt_reorderable = true; + static ImGuiTabBarFlags opt_fitting_flags = ImGuiTabBarFlags_FittingPolicyDefault_; + + bool window_contents_visible = ImGui::Begin("Example: Documents", p_open, ImGuiWindowFlags_MenuBar); + if (!window_contents_visible) + { + ImGui::End(); + return; + } + + // Menu + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + int open_count = 0; + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + open_count += app.Documents[doc_n].Open ? 1 : 0; + + if (ImGui::BeginMenu("Open", open_count < app.Documents.Size)) + { + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open) + if (ImGui::MenuItem(doc->Name)) + doc->DoOpen(); + } + ImGui::EndMenu(); + } + if (ImGui::MenuItem("Close All Documents", NULL, false, open_count > 0)) + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + app.Documents[doc_n].DoQueueClose(); + if (ImGui::MenuItem("Exit", "Ctrl+F4") && p_open) + *p_open = false; + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + // [Debug] List documents with one checkbox for each + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (doc_n > 0) + ImGui::SameLine(); + ImGui::PushID(doc); + if (ImGui::Checkbox(doc->Name, &doc->Open)) + if (!doc->Open) + doc->DoForceClose(); + ImGui::PopID(); + } + + ImGui::Separator(); + + // About the ImGuiWindowFlags_UnsavedDocument / ImGuiTabItemFlags_UnsavedDocument flags. + // They have multiple effects: + // - Display a dot next to the title. + // - Tab is selected when clicking the X close button. + // - Closure is not assumed (will wait for user to stop submitting the tab). + // Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + // We need to assume closure by default otherwise waiting for "lack of submission" on the next frame would leave an empty + // hole for one-frame, both in the tab-bar and in tab-contents when closing a tab/window. + // The rarely used SetTabItemClosed() function is a way to notify of programmatic closure to avoid the one-frame hole. + + // Submit Tab Bar and Tabs + { + ImGuiTabBarFlags tab_bar_flags = (opt_fitting_flags) | (opt_reorderable ? ImGuiTabBarFlags_Reorderable : 0); + if (ImGui::BeginTabBar("##tabs", tab_bar_flags)) + { + if (opt_reorderable) + NotifyOfDocumentsClosedElsewhere(app); + + // [DEBUG] Stress tests + //if ((ImGui::GetFrameCount() % 30) == 0) docs[1].Open ^= 1; // [DEBUG] Automatically show/hide a tab. Test various interactions e.g. dragging with this on. + //if (ImGui::GetIO().KeyCtrl) ImGui::SetTabItemSelected(docs[1].Name); // [DEBUG] Test SetTabItemSelected(), probably not very useful as-is anyway.. + + // Submit Tabs + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open) + continue; + + ImGuiTabItemFlags tab_flags = (doc->Dirty ? ImGuiTabItemFlags_UnsavedDocument : 0); + bool visible = ImGui::BeginTabItem(doc->Name, &doc->Open, tab_flags); + + // Cancel attempt to close when unsaved add to save queue so we can display a popup. + if (!doc->Open && doc->Dirty) + { + doc->Open = true; + doc->DoQueueClose(); + } + + MyDocument::DisplayContextMenu(doc); + if (visible) + { + MyDocument::DisplayContents(doc); + ImGui::EndTabItem(); + } + } + + ImGui::EndTabBar(); + } + } + + // Update closing queue + static ImVector close_queue; + if (close_queue.empty()) + { + // Close queue is locked once we started a popup + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (doc->WantClose) + { + doc->WantClose = false; + close_queue.push_back(doc); + } + } + } + + // Display closing confirmation UI + if (!close_queue.empty()) + { + int close_queue_unsaved_documents = 0; + for (int n = 0; n < close_queue.Size; n++) + if (close_queue[n]->Dirty) + close_queue_unsaved_documents++; + + if (close_queue_unsaved_documents == 0) + { + // Close documents when all are unsaved + for (int n = 0; n < close_queue.Size; n++) + close_queue[n]->DoForceClose(); + close_queue.clear(); + } + else + { + if (!ImGui::IsPopupOpen("Save?")) + ImGui::OpenPopup("Save?"); + if (ImGui::BeginPopupModal("Save?", NULL, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::Text("Save change to the following items?"); + float item_height = ImGui::GetTextLineHeightWithSpacing(); + if (ImGui::BeginChildFrame(ImGui::GetID("frame"), ImVec2(-FLT_MIN, 6.25f * item_height))) + { + for (int n = 0; n < close_queue.Size; n++) + if (close_queue[n]->Dirty) + ImGui::Text("%s", close_queue[n]->Name); + ImGui::EndChildFrame(); + } + + ImVec2 button_size(ImGui::GetFontSize() * 7.0f, 0.0f); + if (ImGui::Button("Yes", button_size)) + { + for (int n = 0; n < close_queue.Size; n++) + { + if (close_queue[n]->Dirty) + close_queue[n]->DoSave(); + close_queue[n]->DoForceClose(); + } + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::SameLine(); + if (ImGui::Button("No", button_size)) + { + for (int n = 0; n < close_queue.Size; n++) + close_queue[n]->DoForceClose(); + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::SameLine(); + if (ImGui::Button("Cancel", button_size)) + { + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::EndPopup(); + } + } + } + + ImGui::End(); +} + +// End of Demo code +#else + +void ImGui::ShowAboutWindow(bool*) {} +void ImGui::ShowDemoWindow(bool*) {} +void ImGui::ShowUserGuide() {} +void ImGui::ShowStyleEditor(ImGuiStyle*) {} + +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_draw.cpp b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_draw.cpp new file mode 100644 index 000000000..1203af8e3 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_draw.cpp @@ -0,0 +1,4167 @@ +// dear imgui, v1.89.1 +// (drawing and font code) + +/* + +Index of this file: + +// [SECTION] STB libraries implementation +// [SECTION] Style functions +// [SECTION] ImDrawList +// [SECTION] ImDrawListSplitter +// [SECTION] ImDrawData +// [SECTION] Helpers ShadeVertsXXX functions +// [SECTION] ImFontConfig +// [SECTION] ImFontAtlas +// [SECTION] ImFontAtlas glyph ranges helpers +// [SECTION] ImFontGlyphRangesBuilder +// [SECTION] ImFont +// [SECTION] ImGui Internal Render Helpers +// [SECTION] Decompression code +// [SECTION] Default font data (ProggyClean.ttf) + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui_internal.h" +#ifdef IMGUI_ENABLE_FREETYPE +#include "misc/freetype/imgui_freetype.h" +#endif + +#include // vsnprintf, sscanf, printf + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wcomma" // warning: possible misuse of comma operator here +#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wstack-protector" // warning: stack protector not protecting local variables: variable length buffer +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries implementation (for stb_truetype and stb_rect_pack) +//------------------------------------------------------------------------- + +// Compile time options: +//#define IMGUI_STB_NAMESPACE ImStb +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION + +#ifdef IMGUI_STB_NAMESPACE +namespace IMGUI_STB_NAMESPACE +{ +#endif + +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4456) // declaration of 'xx' hides previous local declaration +#pragma warning (disable: 6011) // (stb_rectpack) Dereferencing NULL pointer 'cur->next'. +#pragma warning (disable: 6385) // (stb_truetype) Reading invalid data from 'buffer': the readable size is '_Old_3`kernel_width' bytes, but '3' bytes may be read. +#pragma warning (disable: 28182) // (stb_rectpack) Dereferencing NULL pointer. 'cur' contains the same NULL value as 'cur->next' did. +#endif + +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-function" +#pragma clang diagnostic ignored "-Wmissing-prototypes" +#pragma clang diagnostic ignored "-Wimplicit-fallthrough" +#pragma clang diagnostic ignored "-Wcast-qual" // warning: cast from 'const xxxx *' to 'xxx *' drops const qualifier +#endif + +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wtype-limits" // warning: comparison is always true due to limited range of data type [-Wtype-limits] +#pragma GCC diagnostic ignored "-Wcast-qual" // warning: cast from type 'const xxxx *' to type 'xxxx *' casts away qualifiers +#endif + +#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in another compilation unit +#define STBRP_STATIC +#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) +#define STBRP_SORT ImQsort +#define STB_RECT_PACK_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_RECT_PACK_FILENAME +#include IMGUI_STB_RECT_PACK_FILENAME +#else +#include "imstb_rectpack.h" +#endif +#endif + +#ifdef IMGUI_ENABLE_STB_TRUETYPE +#ifndef STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in another compilation unit +#define STBTT_malloc(x,u) ((void)(u), IM_ALLOC(x)) +#define STBTT_free(x,u) ((void)(u), IM_FREE(x)) +#define STBTT_assert(x) do { IM_ASSERT(x); } while(0) +#define STBTT_fmod(x,y) ImFmod(x,y) +#define STBTT_sqrt(x) ImSqrt(x) +#define STBTT_pow(x,y) ImPow(x,y) +#define STBTT_fabs(x) ImFabs(x) +#define STBTT_ifloor(x) ((int)ImFloorSigned(x)) +#define STBTT_iceil(x) ((int)ImCeil(x)) +#define STBTT_STATIC +#define STB_TRUETYPE_IMPLEMENTATION +#else +#define STBTT_DEF extern +#endif +#ifdef IMGUI_STB_TRUETYPE_FILENAME +#include IMGUI_STB_TRUETYPE_FILENAME +#else +#include "imstb_truetype.h" +#endif +#endif +#endif // IMGUI_ENABLE_STB_TRUETYPE + +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#if defined(_MSC_VER) +#pragma warning (pop) +#endif + +#ifdef IMGUI_STB_NAMESPACE +} // namespace ImStb +using namespace IMGUI_STB_NAMESPACE; +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Style functions +//----------------------------------------------------------------------------- + +void ImGui::StyleColorsDark(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.06f, 0.06f, 0.94f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f); + colors[ImGuiCol_Border] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.29f, 0.48f, 0.54f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.04f, 0.04f, 0.04f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.16f, 0.29f, 0.48f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.00f, 0.00f, 0.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.51f, 0.51f, 0.51f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.24f, 0.52f, 0.88f, 1.00f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = colors[ImGuiCol_Border]; + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.10f, 0.40f, 0.75f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.10f, 0.40f, 0.75f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.20f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.19f, 0.19f, 0.20f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.35f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.23f, 0.23f, 0.25f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.06f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f); +} + +void ImGui::StyleColorsClassic(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.85f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.11f, 0.11f, 0.14f, 0.92f); + colors[ImGuiCol_Border] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.43f, 0.43f, 0.43f, 0.39f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.47f, 0.47f, 0.69f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.42f, 0.41f, 0.64f, 0.69f); + colors[ImGuiCol_TitleBg] = ImVec4(0.27f, 0.27f, 0.54f, 0.83f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.32f, 0.32f, 0.63f, 0.87f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.40f, 0.40f, 0.80f, 0.20f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.40f, 0.40f, 0.55f, 0.80f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.25f, 0.30f, 0.60f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.40f, 0.40f, 0.80f, 0.30f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.40f, 0.40f, 0.80f, 0.40f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_CheckMark] = ImVec4(0.90f, 0.90f, 0.90f, 0.50f); + colors[ImGuiCol_SliderGrab] = ImVec4(1.00f, 1.00f, 1.00f, 0.30f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.35f, 0.40f, 0.61f, 0.62f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.40f, 0.48f, 0.71f, 0.79f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.46f, 0.54f, 0.80f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.40f, 0.40f, 0.90f, 0.45f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.45f, 0.45f, 0.90f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.53f, 0.53f, 0.87f, 0.80f); + colors[ImGuiCol_Separator] = ImVec4(0.50f, 0.50f, 0.50f, 0.60f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.60f, 0.60f, 0.70f, 1.00f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.70f, 0.70f, 0.90f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(1.00f, 1.00f, 1.00f, 0.10f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.78f, 0.82f, 1.00f, 0.60f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.78f, 0.82f, 1.00f, 0.90f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_PlotLines] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.27f, 0.27f, 0.38f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.45f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.26f, 0.26f, 0.28f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.07f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.00f, 0.00f, 1.00f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +// Those light colors are better suited with a thicker font than the default one + FrameBorder +void ImGui::StyleColorsLight(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.94f, 0.94f, 0.94f, 1.00f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(1.00f, 1.00f, 1.00f, 0.98f); + colors[ImGuiCol_Border] = ImVec4(0.00f, 0.00f, 0.00f, 0.30f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.96f, 0.96f, 0.96f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.82f, 0.82f, 0.82f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 1.00f, 1.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.86f, 0.86f, 0.86f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.98f, 0.98f, 0.98f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.69f, 0.69f, 0.69f, 0.80f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.49f, 0.49f, 0.49f, 0.80f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.49f, 0.49f, 0.49f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.26f, 0.59f, 0.98f, 0.78f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.46f, 0.54f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = ImVec4(0.39f, 0.39f, 0.39f, 0.62f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.14f, 0.44f, 0.80f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.14f, 0.44f, 0.80f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.35f, 0.35f, 0.35f, 0.17f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.90f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_PlotLines] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.45f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.78f, 0.87f, 0.98f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.57f, 0.57f, 0.64f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.68f, 0.68f, 0.74f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(0.30f, 0.30f, 0.30f, 0.09f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(0.70f, 0.70f, 0.70f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList +//----------------------------------------------------------------------------- + +ImDrawListSharedData::ImDrawListSharedData() +{ + memset(this, 0, sizeof(*this)); + for (int i = 0; i < IM_ARRAYSIZE(ArcFastVtx); i++) + { + const float a = ((float)i * 2 * IM_PI) / (float)IM_ARRAYSIZE(ArcFastVtx); + ArcFastVtx[i] = ImVec2(ImCos(a), ImSin(a)); + } + ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); +} + +void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error) +{ + if (CircleSegmentMaxError == max_error) + return; + + IM_ASSERT(max_error > 0.0f); + CircleSegmentMaxError = max_error; + for (int i = 0; i < IM_ARRAYSIZE(CircleSegmentCounts); i++) + { + const float radius = (float)i; + CircleSegmentCounts[i] = (ImU8)((i > 0) ? IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError) : IM_DRAWLIST_ARCFAST_SAMPLE_MAX); + } + ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); +} + +// Initialize before use in a new frame. We always have a command ready in the buffer. +void ImDrawList::_ResetForNewFrame() +{ + // Verify that the ImDrawCmd fields we want to memcmp() are contiguous in memory. + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); + + CmdBuffer.resize(0); + IdxBuffer.resize(0); + VtxBuffer.resize(0); + Flags = _Data->InitialFlags; + memset(&_CmdHeader, 0, sizeof(_CmdHeader)); + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.resize(0); + _TextureIdStack.resize(0); + _Path.resize(0); + _Splitter.Clear(); + CmdBuffer.push_back(ImDrawCmd()); + _FringeScale = 1.0f; +} + +void ImDrawList::_ClearFreeMemory() +{ + CmdBuffer.clear(); + IdxBuffer.clear(); + VtxBuffer.clear(); + Flags = ImDrawListFlags_None; + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.clear(); + _TextureIdStack.clear(); + _Path.clear(); + _Splitter.ClearFreeMemory(); +} + +ImDrawList* ImDrawList::CloneOutput() const +{ + ImDrawList* dst = IM_NEW(ImDrawList(_Data)); + dst->CmdBuffer = CmdBuffer; + dst->IdxBuffer = IdxBuffer; + dst->VtxBuffer = VtxBuffer; + dst->Flags = Flags; + return dst; +} + +void ImDrawList::AddDrawCmd() +{ + ImDrawCmd draw_cmd; + draw_cmd.ClipRect = _CmdHeader.ClipRect; // Same as calling ImDrawCmd_HeaderCopy() + draw_cmd.TextureId = _CmdHeader.TextureId; + draw_cmd.VtxOffset = _CmdHeader.VtxOffset; + draw_cmd.IdxOffset = IdxBuffer.Size; + + IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w); + CmdBuffer.push_back(draw_cmd); +} + +// Pop trailing draw command (used before merging or presenting to user) +// Note that this leaves the ImDrawList in a state unfit for further commands, as most code assume that CmdBuffer.Size > 0 && CmdBuffer.back().UserCallback == NULL +void ImDrawList::_PopUnusedDrawCmd() +{ + if (CmdBuffer.Size == 0) + return; + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount == 0 && curr_cmd->UserCallback == NULL) + CmdBuffer.pop_back(); +} + +void ImDrawList::AddCallback(ImDrawCallback callback, void* callback_data) +{ + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + IM_ASSERT(curr_cmd->UserCallback == NULL); + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + } + curr_cmd->UserCallback = callback; + curr_cmd->UserCallbackData = callback_data; + + AddDrawCmd(); // Force a new command after us (see comment below) +} + +// Compare ClipRect, TextureId and VtxOffset with a single memcmp() +#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) +#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset +#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset +#define ImDrawCmd_AreSequentialIdxOffset(CMD_0, CMD_1) (CMD_0->IdxOffset + CMD_0->ElemCount == CMD_1->IdxOffset) + +// Try to merge two last draw commands +void ImDrawList::_TryMergeDrawCmds() +{ + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (ImDrawCmd_HeaderCompare(curr_cmd, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && curr_cmd->UserCallback == NULL && prev_cmd->UserCallback == NULL) + { + prev_cmd->ElemCount += curr_cmd->ElemCount; + CmdBuffer.pop_back(); + } +} + +// Our scheme may appears a bit unusual, basically we want the most-common calls AddLine AddRect etc. to not have to perform any check so we always have a command ready in the stack. +// The cost of figuring out if a new command has to be added or if we can merge is paid in those Update** functions only. +void ImDrawList::_OnChangedClipRect() +{ + // If current command is used with different settings we need to add a new command + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && memcmp(&curr_cmd->ClipRect, &_CmdHeader.ClipRect, sizeof(ImVec4)) != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->ClipRect = _CmdHeader.ClipRect; +} + +void ImDrawList::_OnChangedTextureID() +{ + // If current command is used with different settings we need to add a new command + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && curr_cmd->TextureId != _CmdHeader.TextureId) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->TextureId = _CmdHeader.TextureId; +} + +void ImDrawList::_OnChangedVtxOffset() +{ + // We don't need to compare curr_cmd->VtxOffset != _CmdHeader.VtxOffset because we know it'll be different at the time we call this. + _VtxCurrentIdx = 0; + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + //IM_ASSERT(curr_cmd->VtxOffset != _CmdHeader.VtxOffset); // See #3349 + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + curr_cmd->VtxOffset = _CmdHeader.VtxOffset; +} + +int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const +{ + // Automatic segment count + const int radius_idx = (int)(radius + 0.999999f); // ceil to never reduce accuracy + if (radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts)) + return _Data->CircleSegmentCounts[radius_idx]; // Use cached value + else + return IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError); +} + +// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) +void ImDrawList::PushClipRect(const ImVec2& cr_min, const ImVec2& cr_max, bool intersect_with_current_clip_rect) +{ + ImVec4 cr(cr_min.x, cr_min.y, cr_max.x, cr_max.y); + if (intersect_with_current_clip_rect) + { + ImVec4 current = _CmdHeader.ClipRect; + if (cr.x < current.x) cr.x = current.x; + if (cr.y < current.y) cr.y = current.y; + if (cr.z > current.z) cr.z = current.z; + if (cr.w > current.w) cr.w = current.w; + } + cr.z = ImMax(cr.x, cr.z); + cr.w = ImMax(cr.y, cr.w); + + _ClipRectStack.push_back(cr); + _CmdHeader.ClipRect = cr; + _OnChangedClipRect(); +} + +void ImDrawList::PushClipRectFullScreen() +{ + PushClipRect(ImVec2(_Data->ClipRectFullscreen.x, _Data->ClipRectFullscreen.y), ImVec2(_Data->ClipRectFullscreen.z, _Data->ClipRectFullscreen.w)); +} + +void ImDrawList::PopClipRect() +{ + _ClipRectStack.pop_back(); + _CmdHeader.ClipRect = (_ClipRectStack.Size == 0) ? _Data->ClipRectFullscreen : _ClipRectStack.Data[_ClipRectStack.Size - 1]; + _OnChangedClipRect(); +} + +void ImDrawList::PushTextureID(ImTextureID texture_id) +{ + _TextureIdStack.push_back(texture_id); + _CmdHeader.TextureId = texture_id; + _OnChangedTextureID(); +} + +void ImDrawList::PopTextureID() +{ + _TextureIdStack.pop_back(); + _CmdHeader.TextureId = (_TextureIdStack.Size == 0) ? (ImTextureID)NULL : _TextureIdStack.Data[_TextureIdStack.Size - 1]; + _OnChangedTextureID(); +} + +// Reserve space for a number of vertices and indices. +// You must finish filling your reserved data before calling PrimReserve() again, as it may reallocate or +// submit the intermediate results. PrimUnreserve() can be used to release unused allocations. +void ImDrawList::PrimReserve(int idx_count, int vtx_count) +{ + // Large mesh support (when enabled) + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + if (sizeof(ImDrawIdx) == 2 && (_VtxCurrentIdx + vtx_count >= (1 << 16)) && (Flags & ImDrawListFlags_AllowVtxOffset)) + { + // FIXME: In theory we should be testing that vtx_count <64k here. + // In practice, RenderText() relies on reserving ahead for a worst case scenario so it is currently useful for us + // to not make that check until we rework the text functions to handle clipping and large horizontal lines better. + _CmdHeader.VtxOffset = VtxBuffer.Size; + _OnChangedVtxOffset(); + } + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount += idx_count; + + int vtx_buffer_old_size = VtxBuffer.Size; + VtxBuffer.resize(vtx_buffer_old_size + vtx_count); + _VtxWritePtr = VtxBuffer.Data + vtx_buffer_old_size; + + int idx_buffer_old_size = IdxBuffer.Size; + IdxBuffer.resize(idx_buffer_old_size + idx_count); + _IdxWritePtr = IdxBuffer.Data + idx_buffer_old_size; +} + +// Release the a number of reserved vertices/indices from the end of the last reservation made with PrimReserve(). +void ImDrawList::PrimUnreserve(int idx_count, int vtx_count) +{ + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount -= idx_count; + VtxBuffer.shrink(VtxBuffer.Size - vtx_count); + IdxBuffer.shrink(IdxBuffer.Size - idx_count); +} + +// Fully unrolled with inline call to keep our debug builds decently fast. +void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv(_Data->TexUvWhitePixel); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimRectUV(const ImVec2& a, const ImVec2& c, const ImVec2& uv_a, const ImVec2& uv_c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv_b(uv_c.x, uv_a.y), uv_d(uv_a.x, uv_c.y); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col) +{ + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +// On AddPolyline() and AddConvexPolyFilled() we intentionally avoid using ImVec2 and superfluous function calls to optimize debug/non-inlined builds. +// - Those macros expects l-values and need to be used as their own statement. +// - Those macros are intentionally not surrounded by the 'do {} while (0)' idiom because even that translates to runtime with debug compilers. +#define IM_NORMALIZE2F_OVER_ZERO(VX,VY) { float d2 = VX*VX + VY*VY; if (d2 > 0.0f) { float inv_len = ImRsqrt(d2); VX *= inv_len; VY *= inv_len; } } (void)0 +#define IM_FIXNORMAL2F_MAX_INVLEN2 100.0f // 500.0f (see #4053, #3366) +#define IM_FIXNORMAL2F(VX,VY) { float d2 = VX*VX + VY*VY; if (d2 > 0.000001f) { float inv_len2 = 1.0f / d2; if (inv_len2 > IM_FIXNORMAL2F_MAX_INVLEN2) inv_len2 = IM_FIXNORMAL2F_MAX_INVLEN2; VX *= inv_len2; VY *= inv_len2; } } (void)0 + +// TODO: Thickness anti-aliased lines cap are missing their AA fringe. +// We avoid using the ImVec2 math operators here to reduce cost to a minimum for debug/non-inlined builds. +void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, ImDrawFlags flags, float thickness) +{ + if (points_count < 2) + return; + + const bool closed = (flags & ImDrawFlags_Closed) != 0; + const ImVec2 opaque_uv = _Data->TexUvWhitePixel; + const int count = closed ? points_count : points_count - 1; // The number of line segments we need to draw + const bool thick_line = (thickness > _FringeScale); + + if (Flags & ImDrawListFlags_AntiAliasedLines) + { + // Anti-aliased stroke + const float AA_SIZE = _FringeScale; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + + // Thicknesses <1.0 should behave like thickness 1.0 + thickness = ImMax(thickness, 1.0f); + const int integer_thickness = (int)thickness; + const float fractional_thickness = thickness - integer_thickness; + + // Do we want to draw this line using a texture? + // - For now, only draw integer-width lines using textures to avoid issues with the way scaling occurs, could be improved. + // - If AA_SIZE is not 1.0f we cannot use the texture path. + const bool use_texture = (Flags & ImDrawListFlags_AntiAliasedLinesUseTex) && (integer_thickness < IM_DRAWLIST_TEX_LINES_WIDTH_MAX) && (fractional_thickness <= 0.00001f) && (AA_SIZE == 1.0f); + + // We should never hit this, because NewFrame() doesn't set ImDrawListFlags_AntiAliasedLinesUseTex unless ImFontAtlasFlags_NoBakedLines is off + IM_ASSERT_PARANOID(!use_texture || !(_Data->Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)); + + const int idx_count = use_texture ? (count * 6) : (thick_line ? count * 18 : count * 12); + const int vtx_count = use_texture ? (points_count * 2) : (thick_line ? points_count * 4 : points_count * 3); + PrimReserve(idx_count, vtx_count); + + // Temporary buffer + // The first items are normals at each line point, then after that there are either 2 or 4 temp points for each line point + _Data->TempBuffer.reserve_discard(points_count * ((use_texture || !thick_line) ? 3 : 5)); + ImVec2* temp_normals = _Data->TempBuffer.Data; + ImVec2* temp_points = temp_normals + points_count; + + // Calculate normals (tangents) for each line segment + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + float dx = points[i2].x - points[i1].x; + float dy = points[i2].y - points[i1].y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i1].x = dy; + temp_normals[i1].y = -dx; + } + if (!closed) + temp_normals[points_count - 1] = temp_normals[points_count - 2]; + + // If we are drawing a one-pixel-wide line without a texture, or a textured line of any width, we only need 2 or 3 vertices per point + if (use_texture || !thick_line) + { + // [PATH 1] Texture-based lines (thick or non-thick) + // [PATH 2] Non texture-based lines (non-thick) + + // The width of the geometry we need to draw - this is essentially pixels for the line itself, plus "one pixel" for AA. + // - In the texture-based path, we don't use AA_SIZE here because the +1 is tied to the generated texture + // (see ImFontAtlasBuildRenderLinesTexData() function), and so alternate values won't work without changes to that code. + // - In the non texture-based paths, we would allow AA_SIZE to potentially be != 1.0f with a patch (e.g. fringe_scale patch to + // allow scaling geometry while preserving one-screen-pixel AA fringe). + const float half_draw_size = use_texture ? ((thickness * 0.5f) + 1) : AA_SIZE; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + temp_points[0] = points[0] + temp_normals[0] * half_draw_size; + temp_points[1] = points[0] - temp_normals[0] * half_draw_size; + temp_points[(points_count-1)*2+0] = points[points_count-1] + temp_normals[points_count-1] * half_draw_size; + temp_points[(points_count-1)*2+1] = points[points_count-1] - temp_normals[points_count-1] * half_draw_size; + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; // i2 is the second point of the line segment + const unsigned int idx2 = ((i1 + 1) == points_count) ? _VtxCurrentIdx : (idx1 + (use_texture ? 2 : 3)); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= half_draw_size; // dm_x, dm_y are offset to the outer edge of the AA area + dm_y *= half_draw_size; + + // Add temporary vertexes for the outer edges + ImVec2* out_vtx = &temp_points[i2 * 2]; + out_vtx[0].x = points[i2].x + dm_x; + out_vtx[0].y = points[i2].y + dm_y; + out_vtx[1].x = points[i2].x - dm_x; + out_vtx[1].y = points[i2].y - dm_y; + + if (use_texture) + { + // Add indices for two triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 1); // Right tri + _IdxWritePtr[3] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[4] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Left tri + _IdxWritePtr += 6; + } + else + { + // Add indexes for four triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); // Right tri 1 + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Right tri 2 + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); // Left tri 1 + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); // Left tri 2 + _IdxWritePtr += 12; + } + + idx1 = idx2; + } + + // Add vertexes for each point on the line + if (use_texture) + { + // If we're using textures we only need to emit the left/right edge vertices + ImVec4 tex_uvs = _Data->TexUvLines[integer_thickness]; + /*if (fractional_thickness != 0.0f) // Currently always zero when use_texture==false! + { + const ImVec4 tex_uvs_1 = _Data->TexUvLines[integer_thickness + 1]; + tex_uvs.x = tex_uvs.x + (tex_uvs_1.x - tex_uvs.x) * fractional_thickness; // inlined ImLerp() + tex_uvs.y = tex_uvs.y + (tex_uvs_1.y - tex_uvs.y) * fractional_thickness; + tex_uvs.z = tex_uvs.z + (tex_uvs_1.z - tex_uvs.z) * fractional_thickness; + tex_uvs.w = tex_uvs.w + (tex_uvs_1.w - tex_uvs.w) * fractional_thickness; + }*/ + ImVec2 tex_uv0(tex_uvs.x, tex_uvs.y); + ImVec2 tex_uv1(tex_uvs.z, tex_uvs.w); + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 2 + 0]; _VtxWritePtr[0].uv = tex_uv0; _VtxWritePtr[0].col = col; // Left-side outer edge + _VtxWritePtr[1].pos = temp_points[i * 2 + 1]; _VtxWritePtr[1].uv = tex_uv1; _VtxWritePtr[1].col = col; // Right-side outer edge + _VtxWritePtr += 2; + } + } + else + { + // If we're not using a texture, we need the center vertex as well + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; // Center of line + _VtxWritePtr[1].pos = temp_points[i * 2 + 0]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col_trans; // Left-side outer edge + _VtxWritePtr[2].pos = temp_points[i * 2 + 1]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col_trans; // Right-side outer edge + _VtxWritePtr += 3; + } + } + } + else + { + // [PATH 2] Non texture-based lines (thick): we need to draw the solid line core and thus require four vertices per point + const float half_inner_thickness = (thickness - AA_SIZE) * 0.5f; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + const int points_last = points_count - 1; + temp_points[0] = points[0] + temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[1] = points[0] + temp_normals[0] * (half_inner_thickness); + temp_points[2] = points[0] - temp_normals[0] * (half_inner_thickness); + temp_points[3] = points[0] - temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 0] = points[points_last] + temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 1] = points[points_last] + temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 2] = points[points_last] - temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 3] = points[points_last] - temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : (i1 + 1); // i2 is the second point of the line segment + const unsigned int idx2 = (i1 + 1) == points_count ? _VtxCurrentIdx : (idx1 + 4); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + float dm_out_x = dm_x * (half_inner_thickness + AA_SIZE); + float dm_out_y = dm_y * (half_inner_thickness + AA_SIZE); + float dm_in_x = dm_x * half_inner_thickness; + float dm_in_y = dm_y * half_inner_thickness; + + // Add temporary vertices + ImVec2* out_vtx = &temp_points[i2 * 4]; + out_vtx[0].x = points[i2].x + dm_out_x; + out_vtx[0].y = points[i2].y + dm_out_y; + out_vtx[1].x = points[i2].x + dm_in_x; + out_vtx[1].y = points[i2].y + dm_in_y; + out_vtx[2].x = points[i2].x - dm_in_x; + out_vtx[2].y = points[i2].y - dm_in_y; + out_vtx[3].x = points[i2].x - dm_out_x; + out_vtx[3].y = points[i2].y - dm_out_y; + + // Add indexes + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[12] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[13] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[14] = (ImDrawIdx)(idx1 + 3); + _IdxWritePtr[15] = (ImDrawIdx)(idx1 + 3); _IdxWritePtr[16] = (ImDrawIdx)(idx2 + 3); _IdxWritePtr[17] = (ImDrawIdx)(idx2 + 2); + _IdxWritePtr += 18; + + idx1 = idx2; + } + + // Add vertices + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 4 + 0]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col_trans; + _VtxWritePtr[1].pos = temp_points[i * 4 + 1]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = temp_points[i * 4 + 2]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = temp_points[i * 4 + 3]; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col_trans; + _VtxWritePtr += 4; + } + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // [PATH 4] Non texture-based, Non anti-aliased lines + const int idx_count = count * 6; + const int vtx_count = count * 4; // FIXME-OPT: Not sharing edges + PrimReserve(idx_count, vtx_count); + + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + const ImVec2& p1 = points[i1]; + const ImVec2& p2 = points[i2]; + + float dx = p2.x - p1.x; + float dy = p2.y - p1.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + dx *= (thickness * 0.5f); + dy *= (thickness * 0.5f); + + _VtxWritePtr[0].pos.x = p1.x + dy; _VtxWritePtr[0].pos.y = p1.y - dx; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos.x = p2.x + dy; _VtxWritePtr[1].pos.y = p2.y - dx; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos.x = p2.x - dy; _VtxWritePtr[2].pos.y = p2.y + dx; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos.x = p1.x - dy; _VtxWritePtr[3].pos.y = p1.y + dx; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + 2); + _IdxWritePtr[3] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[4] = (ImDrawIdx)(_VtxCurrentIdx + 2); _IdxWritePtr[5] = (ImDrawIdx)(_VtxCurrentIdx + 3); + _IdxWritePtr += 6; + _VtxCurrentIdx += 4; + } + } +} + +// - We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. +// - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. +void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) +{ + if (points_count < 3) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + + if (Flags & ImDrawListFlags_AntiAliasedFill) + { + // Anti-aliased Fill + const float AA_SIZE = _FringeScale; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + const int idx_count = (points_count - 2)*3 + points_count * 6; + const int vtx_count = (points_count * 2); + PrimReserve(idx_count, vtx_count); + + // Add indexes for fill + unsigned int vtx_inner_idx = _VtxCurrentIdx; + unsigned int vtx_outer_idx = _VtxCurrentIdx + 1; + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + ((i - 1) << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_inner_idx + (i << 1)); + _IdxWritePtr += 3; + } + + // Compute normals + _Data->TempBuffer.reserve_discard(points_count); + ImVec2* temp_normals = _Data->TempBuffer.Data; + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + const ImVec2& p0 = points[i0]; + const ImVec2& p1 = points[i1]; + float dx = p1.x - p0.x; + float dy = p1.y - p0.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i0].x = dy; + temp_normals[i0].y = -dx; + } + + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + // Average normals + const ImVec2& n0 = temp_normals[i0]; + const ImVec2& n1 = temp_normals[i1]; + float dm_x = (n0.x + n1.x) * 0.5f; + float dm_y = (n0.y + n1.y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= AA_SIZE * 0.5f; + dm_y *= AA_SIZE * 0.5f; + + // Add vertices + _VtxWritePtr[0].pos.x = (points[i1].x - dm_x); _VtxWritePtr[0].pos.y = (points[i1].y - dm_y); _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; // Inner + _VtxWritePtr[1].pos.x = (points[i1].x + dm_x); _VtxWritePtr[1].pos.y = (points[i1].y + dm_y); _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col_trans; // Outer + _VtxWritePtr += 2; + + // Add indexes for fringes + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + (i0 << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); + _IdxWritePtr[3] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); _IdxWritePtr[4] = (ImDrawIdx)(vtx_outer_idx + (i1 << 1)); _IdxWritePtr[5] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); + _IdxWritePtr += 6; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // Non Anti-aliased Fill + const int idx_count = (points_count - 2)*3; + const int vtx_count = points_count; + PrimReserve(idx_count, vtx_count); + for (int i = 0; i < vtx_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr++; + } + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + i - 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + i); + _IdxWritePtr += 3; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } +} + +void ImDrawList::_PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + // Calculate arc auto segment step size + if (a_step <= 0) + a_step = IM_DRAWLIST_ARCFAST_SAMPLE_MAX / _CalcCircleAutoSegmentCount(radius); + + // Make sure we never do steps larger than one quarter of the circle + a_step = ImClamp(a_step, 1, IM_DRAWLIST_ARCFAST_TABLE_SIZE / 4); + + const int sample_range = ImAbs(a_max_sample - a_min_sample); + const int a_next_step = a_step; + + int samples = sample_range + 1; + bool extra_max_sample = false; + if (a_step > 1) + { + samples = sample_range / a_step + 1; + const int overstep = sample_range % a_step; + + if (overstep > 0) + { + extra_max_sample = true; + samples++; + + // When we have overstep to avoid awkwardly looking one long line and one tiny one at the end, + // distribute first step range evenly between them by reducing first step size. + if (sample_range > 0) + a_step -= (a_step - overstep) / 2; + } + } + + _Path.resize(_Path.Size + samples); + ImVec2* out_ptr = _Path.Data + (_Path.Size - samples); + + int sample_index = a_min_sample; + if (sample_index < 0 || sample_index >= IM_DRAWLIST_ARCFAST_SAMPLE_MAX) + { + sample_index = sample_index % IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + if (sample_index < 0) + sample_index += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + } + + if (a_max_sample >= a_min_sample) + { + for (int a = a_min_sample; a <= a_max_sample; a += a_step, sample_index += a_step, a_step = a_next_step) + { + // a_step is clamped to IM_DRAWLIST_ARCFAST_SAMPLE_MAX, so we have guaranteed that it will not wrap over range twice or more + if (sample_index >= IM_DRAWLIST_ARCFAST_SAMPLE_MAX) + sample_index -= IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[sample_index]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + } + else + { + for (int a = a_min_sample; a >= a_max_sample; a -= a_step, sample_index -= a_step, a_step = a_next_step) + { + // a_step is clamped to IM_DRAWLIST_ARCFAST_SAMPLE_MAX, so we have guaranteed that it will not wrap over range twice or more + if (sample_index < 0) + sample_index += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[sample_index]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + } + + if (extra_max_sample) + { + int normalized_max_sample = a_max_sample % IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + if (normalized_max_sample < 0) + normalized_max_sample += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[normalized_max_sample]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + + IM_ASSERT_PARANOID(_Path.Data + _Path.Size == out_ptr); +} + +void ImDrawList::_PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + // Note that we are adding a point at both a_min and a_max. + // If you are trying to draw a full closed circle you don't want the overlapping points! + _Path.reserve(_Path.Size + (num_segments + 1)); + for (int i = 0; i <= num_segments; i++) + { + const float a = a_min + ((float)i / (float)num_segments) * (a_max - a_min); + _Path.push_back(ImVec2(center.x + ImCos(a) * radius, center.y + ImSin(a) * radius)); + } +} + +// 0: East, 3: South, 6: West, 9: North, 12: East +void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + _PathArcToFastEx(center, radius, a_min_of_12 * IM_DRAWLIST_ARCFAST_SAMPLE_MAX / 12, a_max_of_12 * IM_DRAWLIST_ARCFAST_SAMPLE_MAX / 12, 0); +} + +void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + if (num_segments > 0) + { + _PathArcToN(center, radius, a_min, a_max, num_segments); + return; + } + + // Automatic segment count + if (radius <= _Data->ArcFastRadiusCutoff) + { + const bool a_is_reverse = a_max < a_min; + + // We are going to use precomputed values for mid samples. + // Determine first and last sample in lookup table that belong to the arc. + const float a_min_sample_f = IM_DRAWLIST_ARCFAST_SAMPLE_MAX * a_min / (IM_PI * 2.0f); + const float a_max_sample_f = IM_DRAWLIST_ARCFAST_SAMPLE_MAX * a_max / (IM_PI * 2.0f); + + const int a_min_sample = a_is_reverse ? (int)ImFloorSigned(a_min_sample_f) : (int)ImCeil(a_min_sample_f); + const int a_max_sample = a_is_reverse ? (int)ImCeil(a_max_sample_f) : (int)ImFloorSigned(a_max_sample_f); + const int a_mid_samples = a_is_reverse ? ImMax(a_min_sample - a_max_sample, 0) : ImMax(a_max_sample - a_min_sample, 0); + + const float a_min_segment_angle = a_min_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + const float a_max_segment_angle = a_max_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + const bool a_emit_start = ImAbs(a_min_segment_angle - a_min) >= 1e-5f; + const bool a_emit_end = ImAbs(a_max - a_max_segment_angle) >= 1e-5f; + + _Path.reserve(_Path.Size + (a_mid_samples + 1 + (a_emit_start ? 1 : 0) + (a_emit_end ? 1 : 0))); + if (a_emit_start) + _Path.push_back(ImVec2(center.x + ImCos(a_min) * radius, center.y + ImSin(a_min) * radius)); + if (a_mid_samples > 0) + _PathArcToFastEx(center, radius, a_min_sample, a_max_sample, 0); + if (a_emit_end) + _Path.push_back(ImVec2(center.x + ImCos(a_max) * radius, center.y + ImSin(a_max) * radius)); + } + else + { + const float arc_length = ImAbs(a_max - a_min); + const int circle_segment_count = _CalcCircleAutoSegmentCount(radius); + const int arc_segment_count = ImMax((int)ImCeil(circle_segment_count * arc_length / (IM_PI * 2.0f)), (int)(2.0f * IM_PI / arc_length)); + _PathArcToN(center, radius, a_min, a_max, arc_segment_count); + } +} + +ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t) +{ + float u = 1.0f - t; + float w1 = u * u * u; + float w2 = 3 * u * u * t; + float w3 = 3 * u * t * t; + float w4 = t * t * t; + return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x + w4 * p4.x, w1 * p1.y + w2 * p2.y + w3 * p3.y + w4 * p4.y); +} + +ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t) +{ + float u = 1.0f - t; + float w1 = u * u; + float w2 = 2 * u * t; + float w3 = t * t; + return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x, w1 * p1.y + w2 * p2.y + w3 * p3.y); +} + +// Closely mimics ImBezierCubicClosestPointCasteljau() in imgui.cpp +static void PathBezierCubicCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = (x2 - x4) * dy - (y2 - y4) * dx; + float d3 = (x3 - x4) * dy - (y3 - y4) * dx; + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + path->push_back(ImVec2(x4, y4)); + } + else if (level < 10) + { + float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; + float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; + float x34 = (x3 + x4) * 0.5f, y34 = (y3 + y4) * 0.5f; + float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; + float x234 = (x23 + x34) * 0.5f, y234 = (y23 + y34) * 0.5f; + float x1234 = (x123 + x234) * 0.5f, y1234 = (y123 + y234) * 0.5f; + PathBezierCubicCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + PathBezierCubicCurveToCasteljau(path, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +static void PathBezierQuadraticCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float tess_tol, int level) +{ + float dx = x3 - x1, dy = y3 - y1; + float det = (x2 - x3) * dy - (y2 - y3) * dx; + if (det * det * 4.0f < tess_tol * (dx * dx + dy * dy)) + { + path->push_back(ImVec2(x3, y3)); + } + else if (level < 10) + { + float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; + float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; + float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; + PathBezierQuadraticCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, tess_tol, level + 1); + PathBezierQuadraticCurveToCasteljau(path, x123, y123, x23, y23, x3, y3, tess_tol, level + 1); + } +} + +void ImDrawList::PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments) +{ + ImVec2 p1 = _Path.back(); + if (num_segments == 0) + { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); + PathBezierCubicCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, _Data->CurveTessellationTol, 0); // Auto-tessellated + } + else + { + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + _Path.push_back(ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step)); + } +} + +void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments) +{ + ImVec2 p1 = _Path.back(); + if (num_segments == 0) + { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); + PathBezierQuadraticCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, _Data->CurveTessellationTol, 0);// Auto-tessellated + } + else + { + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + _Path.push_back(ImBezierQuadraticCalc(p1, p2, p3, t_step * i_step)); + } +} + +IM_STATIC_ASSERT(ImDrawFlags_RoundCornersTopLeft == (1 << 4)); +static inline ImDrawFlags FixRectCornerFlags(ImDrawFlags flags) +{ +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // Obsoleted in 1.82 (from February 2021) + // Legacy Support for hard coded ~0 (used to be a suggested equivalent to ImDrawCornerFlags_All) + // ~0 --> ImDrawFlags_RoundCornersAll or 0 + if (flags == ~0) + return ImDrawFlags_RoundCornersAll; + + // Legacy Support for hard coded 0x01 to 0x0F (matching 15 out of 16 old flags combinations) + // 0x01 --> ImDrawFlags_RoundCornersTopLeft (VALUE 0x01 OVERLAPS ImDrawFlags_Closed but ImDrawFlags_Closed is never valid in this path!) + // 0x02 --> ImDrawFlags_RoundCornersTopRight + // 0x03 --> ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight + // 0x04 --> ImDrawFlags_RoundCornersBotLeft + // 0x05 --> ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersBotLeft + // ... + // 0x0F --> ImDrawFlags_RoundCornersAll or 0 + // (See all values in ImDrawCornerFlags_) + if (flags >= 0x01 && flags <= 0x0F) + return (flags << 4); + + // We cannot support hard coded 0x00 with 'float rounding > 0.0f' --> replace with ImDrawFlags_RoundCornersNone or use 'float rounding = 0.0f' +#endif + + // If this triggers, please update your code replacing hardcoded values with new ImDrawFlags_RoundCorners* values. + // Note that ImDrawFlags_Closed (== 0x01) is an invalid flag for AddRect(), AddRectFilled(), PathRect() etc... + IM_ASSERT((flags & 0x0F) == 0 && "Misuse of legacy hardcoded ImDrawCornerFlags values!"); + + if ((flags & ImDrawFlags_RoundCornersMask_) == 0) + flags |= ImDrawFlags_RoundCornersAll; + + return flags; +} + +void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDrawFlags flags) +{ + flags = FixRectCornerFlags(flags); + rounding = ImMin(rounding, ImFabs(b.x - a.x) * ( ((flags & ImDrawFlags_RoundCornersTop) == ImDrawFlags_RoundCornersTop) || ((flags & ImDrawFlags_RoundCornersBottom) == ImDrawFlags_RoundCornersBottom) ? 0.5f : 1.0f ) - 1.0f); + rounding = ImMin(rounding, ImFabs(b.y - a.y) * ( ((flags & ImDrawFlags_RoundCornersLeft) == ImDrawFlags_RoundCornersLeft) || ((flags & ImDrawFlags_RoundCornersRight) == ImDrawFlags_RoundCornersRight) ? 0.5f : 1.0f ) - 1.0f); + + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + PathLineTo(a); + PathLineTo(ImVec2(b.x, a.y)); + PathLineTo(b); + PathLineTo(ImVec2(a.x, b.y)); + } + else + { + const float rounding_tl = (flags & ImDrawFlags_RoundCornersTopLeft) ? rounding : 0.0f; + const float rounding_tr = (flags & ImDrawFlags_RoundCornersTopRight) ? rounding : 0.0f; + const float rounding_br = (flags & ImDrawFlags_RoundCornersBottomRight) ? rounding : 0.0f; + const float rounding_bl = (flags & ImDrawFlags_RoundCornersBottomLeft) ? rounding : 0.0f; + PathArcToFast(ImVec2(a.x + rounding_tl, a.y + rounding_tl), rounding_tl, 6, 9); + PathArcToFast(ImVec2(b.x - rounding_tr, a.y + rounding_tr), rounding_tr, 9, 12); + PathArcToFast(ImVec2(b.x - rounding_br, b.y - rounding_br), rounding_br, 0, 3); + PathArcToFast(ImVec2(a.x + rounding_bl, b.y - rounding_bl), rounding_bl, 3, 6); + } +} + +void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + PathLineTo(p1 + ImVec2(0.5f, 0.5f)); + PathLineTo(p2 + ImVec2(0.5f, 0.5f)); + PathStroke(col, 0, thickness); +} + +// p_min = upper-left, p_max = lower-right +// Note we don't render 1 pixels sized rectangles properly. +void ImDrawList::AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (Flags & ImDrawListFlags_AntiAliasedLines) + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.50f, 0.50f), rounding, flags); + else + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.49f, 0.49f), rounding, flags); // Better looking lower-right corner and rounded non-AA shapes. + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + PrimReserve(6, 4); + PrimRect(p_min, p_max, col); + } + else + { + PathRect(p_min, p_max, rounding, flags); + PathFillConvex(col); + } +} + +// p_min = upper-left, p_max = lower-right +void ImDrawList::AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left) +{ + if (((col_upr_left | col_upr_right | col_bot_right | col_bot_left) & IM_COL32_A_MASK) == 0) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + PrimReserve(6, 4); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 1)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 3)); + PrimWriteVtx(p_min, uv, col_upr_left); + PrimWriteVtx(ImVec2(p_max.x, p_min.y), uv, col_upr_right); + PrimWriteVtx(p_max, uv, col_bot_right); + PrimWriteVtx(ImVec2(p_min.x, p_max.y), uv, col_bot_left); +} + +void ImDrawList::AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathFillConvex(col); +} + +void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathFillConvex(col); +} + +void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) + return; + + if (num_segments <= 0) + { + // Use arc with automatic segment count + _PathArcToFastEx(center, radius - 0.5f, 0, IM_DRAWLIST_ARCFAST_SAMPLE_MAX, 0); + _Path.Size--; + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + } + + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) + return; + + if (num_segments <= 0) + { + // Use arc with automatic segment count + _PathArcToFastEx(center, radius, 0, IM_DRAWLIST_ARCFAST_SAMPLE_MAX, 0); + _Path.Size--; + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + } + + PathFillConvex(col); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + PathFillConvex(col); +} + +// Cubic Bezier takes 4 controls points +void ImDrawList::AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathBezierCubicCurveTo(p2, p3, p4, num_segments); + PathStroke(col, 0, thickness); +} + +// Quadratic Bezier takes 3 controls points +void ImDrawList::AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathBezierQuadraticCurveTo(p2, p3, num_segments); + PathStroke(col, 0, thickness); +} + +void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (text_end == NULL) + text_end = text_begin + strlen(text_begin); + if (text_begin == text_end) + return; + + // Pull default font/size from the shared ImDrawListSharedData instance + if (font == NULL) + font = _Data->Font; + if (font_size == 0.0f) + font_size = _Data->FontSize; + + IM_ASSERT(font->ContainerAtlas->TexID == _CmdHeader.TextureId); // Use high-level ImGui::PushFont() or low-level ImDrawList::PushTextureId() to change font. + + ImVec4 clip_rect = _CmdHeader.ClipRect; + if (cpu_fine_clip_rect) + { + clip_rect.x = ImMax(clip_rect.x, cpu_fine_clip_rect->x); + clip_rect.y = ImMax(clip_rect.y, cpu_fine_clip_rect->y); + clip_rect.z = ImMin(clip_rect.z, cpu_fine_clip_rect->z); + clip_rect.w = ImMin(clip_rect.w, cpu_fine_clip_rect->w); + } + font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL); +} + +void ImDrawList::AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end) +{ + AddText(NULL, 0.0f, pos, col, text_begin, text_end); +} + +void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimRectUV(p_min, p_max, uv_min, uv_max, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1, const ImVec2& uv2, const ImVec2& uv3, const ImVec2& uv4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimQuadUV(p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + flags = FixRectCornerFlags(flags); + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + AddImage(user_texture_id, p_min, p_max, uv_min, uv_max, col); + return; + } + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + int vert_start_idx = VtxBuffer.Size; + PathRect(p_min, p_max, rounding, flags); + PathFillConvex(col); + int vert_end_idx = VtxBuffer.Size; + ImGui::ShadeVertsLinearUV(this, vert_start_idx, vert_end_idx, p_min, p_max, uv_min, uv_max, true); + + if (push_texture_id) + PopTextureID(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawListSplitter +//----------------------------------------------------------------------------- +// FIXME: This may be a little confusing, trying to be a little too low-level/optimal instead of just doing vector swap.. +//----------------------------------------------------------------------------- + +void ImDrawListSplitter::ClearFreeMemory() +{ + for (int i = 0; i < _Channels.Size; i++) + { + if (i == _Current) + memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again + _Channels[i]._CmdBuffer.clear(); + _Channels[i]._IdxBuffer.clear(); + } + _Current = 0; + _Count = 1; + _Channels.clear(); +} + +void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) +{ + IM_UNUSED(draw_list); + IM_ASSERT(_Current == 0 && _Count <= 1 && "Nested channel splitting is not supported. Please use separate instances of ImDrawListSplitter."); + int old_channels_count = _Channels.Size; + if (old_channels_count < channels_count) + { + _Channels.reserve(channels_count); // Avoid over reserving since this is likely to stay stable + _Channels.resize(channels_count); + } + _Count = channels_count; + + // Channels[] (24/32 bytes each) hold storage that we'll swap with draw_list->_CmdBuffer/_IdxBuffer + // The content of Channels[0] at this point doesn't matter. We clear it to make state tidy in a debugger but we don't strictly need to. + // When we switch to the next channel, we'll copy draw_list->_CmdBuffer/_IdxBuffer into Channels[0] and then Channels[1] into draw_list->CmdBuffer/_IdxBuffer + memset(&_Channels[0], 0, sizeof(ImDrawChannel)); + for (int i = 1; i < channels_count; i++) + { + if (i >= old_channels_count) + { + IM_PLACEMENT_NEW(&_Channels[i]) ImDrawChannel(); + } + else + { + _Channels[i]._CmdBuffer.resize(0); + _Channels[i]._IdxBuffer.resize(0); + } + } +} + +void ImDrawListSplitter::Merge(ImDrawList* draw_list) +{ + // Note that we never use or rely on _Channels.Size because it is merely a buffer that we never shrink back to 0 to keep all sub-buffers ready for use. + if (_Count <= 1) + return; + + SetCurrentChannel(draw_list, 0); + draw_list->_PopUnusedDrawCmd(); + + // Calculate our final buffer sizes. Also fix the incorrect IdxOffset values in each command. + int new_cmd_buffer_count = 0; + int new_idx_buffer_count = 0; + ImDrawCmd* last_cmd = (_Count > 0 && draw_list->CmdBuffer.Size > 0) ? &draw_list->CmdBuffer.back() : NULL; + int idx_offset = last_cmd ? last_cmd->IdxOffset + last_cmd->ElemCount : 0; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0 && ch._CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() + ch._CmdBuffer.pop_back(); + + if (ch._CmdBuffer.Size > 0 && last_cmd != NULL) + { + // Do not include ImDrawCmd_AreSequentialIdxOffset() in the compare as we rebuild IdxOffset values ourselves. + // Manipulating IdxOffset (e.g. by reordering draw commands like done by RenderDimmedBackgroundBehindWindow()) is not supported within a splitter. + ImDrawCmd* next_cmd = &ch._CmdBuffer[0]; + if (ImDrawCmd_HeaderCompare(last_cmd, next_cmd) == 0 && last_cmd->UserCallback == NULL && next_cmd->UserCallback == NULL) + { + // Merge previous channel last draw command with current channel first draw command if matching. + last_cmd->ElemCount += next_cmd->ElemCount; + idx_offset += next_cmd->ElemCount; + ch._CmdBuffer.erase(ch._CmdBuffer.Data); // FIXME-OPT: Improve for multiple merges. + } + } + if (ch._CmdBuffer.Size > 0) + last_cmd = &ch._CmdBuffer.back(); + new_cmd_buffer_count += ch._CmdBuffer.Size; + new_idx_buffer_count += ch._IdxBuffer.Size; + for (int cmd_n = 0; cmd_n < ch._CmdBuffer.Size; cmd_n++) + { + ch._CmdBuffer.Data[cmd_n].IdxOffset = idx_offset; + idx_offset += ch._CmdBuffer.Data[cmd_n].ElemCount; + } + } + draw_list->CmdBuffer.resize(draw_list->CmdBuffer.Size + new_cmd_buffer_count); + draw_list->IdxBuffer.resize(draw_list->IdxBuffer.Size + new_idx_buffer_count); + + // Write commands and indices in order (they are fairly small structures, we don't copy vertices only indices) + ImDrawCmd* cmd_write = draw_list->CmdBuffer.Data + draw_list->CmdBuffer.Size - new_cmd_buffer_count; + ImDrawIdx* idx_write = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size - new_idx_buffer_count; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + if (int sz = ch._CmdBuffer.Size) { memcpy(cmd_write, ch._CmdBuffer.Data, sz * sizeof(ImDrawCmd)); cmd_write += sz; } + if (int sz = ch._IdxBuffer.Size) { memcpy(idx_write, ch._IdxBuffer.Data, sz * sizeof(ImDrawIdx)); idx_write += sz; } + } + draw_list->_IdxWritePtr = idx_write; + + // Ensure there's always a non-callback draw command trailing the command-buffer + if (draw_list->CmdBuffer.Size == 0 || draw_list->CmdBuffer.back().UserCallback != NULL) + draw_list->AddDrawCmd(); + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); + + _Count = 1; +} + +void ImDrawListSplitter::SetCurrentChannel(ImDrawList* draw_list, int idx) +{ + IM_ASSERT(idx >= 0 && idx < _Count); + if (_Current == idx) + return; + + // Overwrite ImVector (12/16 bytes), four times. This is merely a silly optimization instead of doing .swap() + memcpy(&_Channels.Data[_Current]._CmdBuffer, &draw_list->CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&_Channels.Data[_Current]._IdxBuffer, &draw_list->IdxBuffer, sizeof(draw_list->IdxBuffer)); + _Current = idx; + memcpy(&draw_list->CmdBuffer, &_Channels.Data[idx]._CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&draw_list->IdxBuffer, &_Channels.Data[idx]._IdxBuffer, sizeof(draw_list->IdxBuffer)); + draw_list->_IdxWritePtr = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size; + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = (draw_list->CmdBuffer.Size == 0) ? NULL : &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd == NULL) + draw_list->AddDrawCmd(); + else if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawData +//----------------------------------------------------------------------------- + +// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! +void ImDrawData::DeIndexAllBuffers() +{ + ImVector new_vtx_buffer; + TotalVtxCount = TotalIdxCount = 0; + for (int i = 0; i < CmdListsCount; i++) + { + ImDrawList* cmd_list = CmdLists[i]; + if (cmd_list->IdxBuffer.empty()) + continue; + new_vtx_buffer.resize(cmd_list->IdxBuffer.Size); + for (int j = 0; j < cmd_list->IdxBuffer.Size; j++) + new_vtx_buffer[j] = cmd_list->VtxBuffer[cmd_list->IdxBuffer[j]]; + cmd_list->VtxBuffer.swap(new_vtx_buffer); + cmd_list->IdxBuffer.resize(0); + TotalVtxCount += cmd_list->VtxBuffer.Size; + } +} + +// Helper to scale the ClipRect field of each ImDrawCmd. +// Use if your final output buffer is at a different scale than draw_data->DisplaySize, +// or if there is a difference between your window resolution and framebuffer resolution. +void ImDrawData::ScaleClipRects(const ImVec2& fb_scale) +{ + for (int i = 0; i < CmdListsCount; i++) + { + ImDrawList* cmd_list = CmdLists[i]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + ImDrawCmd* cmd = &cmd_list->CmdBuffer[cmd_i]; + cmd->ClipRect = ImVec4(cmd->ClipRect.x * fb_scale.x, cmd->ClipRect.y * fb_scale.y, cmd->ClipRect.z * fb_scale.x, cmd->ClipRect.w * fb_scale.y); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Helpers ShadeVertsXXX functions +//----------------------------------------------------------------------------- + +// Generic linear color gradient, write to RGB fields, leave A untouched. +void ImGui::ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1) +{ + ImVec2 gradient_extent = gradient_p1 - gradient_p0; + float gradient_inv_length2 = 1.0f / ImLengthSqr(gradient_extent); + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + const int col0_r = (int)(col0 >> IM_COL32_R_SHIFT) & 0xFF; + const int col0_g = (int)(col0 >> IM_COL32_G_SHIFT) & 0xFF; + const int col0_b = (int)(col0 >> IM_COL32_B_SHIFT) & 0xFF; + const int col_delta_r = ((int)(col1 >> IM_COL32_R_SHIFT) & 0xFF) - col0_r; + const int col_delta_g = ((int)(col1 >> IM_COL32_G_SHIFT) & 0xFF) - col0_g; + const int col_delta_b = ((int)(col1 >> IM_COL32_B_SHIFT) & 0xFF) - col0_b; + for (ImDrawVert* vert = vert_start; vert < vert_end; vert++) + { + float d = ImDot(vert->pos - gradient_p0, gradient_extent); + float t = ImClamp(d * gradient_inv_length2, 0.0f, 1.0f); + int r = (int)(col0_r + col_delta_r * t); + int g = (int)(col0_g + col_delta_g * t); + int b = (int)(col0_b + col_delta_b * t); + vert->col = (r << IM_COL32_R_SHIFT) | (g << IM_COL32_G_SHIFT) | (b << IM_COL32_B_SHIFT) | (vert->col & IM_COL32_A_MASK); + } +} + +// Distribute UV over (a, b) rectangle +void ImGui::ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp) +{ + const ImVec2 size = b - a; + const ImVec2 uv_size = uv_b - uv_a; + const ImVec2 scale = ImVec2( + size.x != 0.0f ? (uv_size.x / size.x) : 0.0f, + size.y != 0.0f ? (uv_size.y / size.y) : 0.0f); + + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + if (clamp) + { + const ImVec2 min = ImMin(uv_a, uv_b); + const ImVec2 max = ImMax(uv_a, uv_b); + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max); + } + else + { + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontConfig +//----------------------------------------------------------------------------- + +ImFontConfig::ImFontConfig() +{ + memset(this, 0, sizeof(*this)); + FontDataOwnedByAtlas = true; + OversampleH = 3; // FIXME: 2 may be a better default? + OversampleV = 1; + GlyphMaxAdvanceX = FLT_MAX; + RasterizerMultiply = 1.0f; + EllipsisChar = (ImWchar)-1; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontAtlas +//----------------------------------------------------------------------------- + +// A work of art lies ahead! (. = white layer, X = black layer, others are blank) +// The 2x2 white texels on the top left are the ones we'll use everywhere in Dear ImGui to render filled shapes. +// (This is used when io.MouseDrawCursor = true) +const int FONT_ATLAS_DEFAULT_TEX_DATA_W = 122; // Actual texture will be 2 times that + 1 spacing. +const int FONT_ATLAS_DEFAULT_TEX_DATA_H = 27; +static const char FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS[FONT_ATLAS_DEFAULT_TEX_DATA_W * FONT_ATLAS_DEFAULT_TEX_DATA_H + 1] = +{ + "..- -XXXXXXX- X - X -XXXXXXX - XXXXXXX- XX - XX XX " + "..- -X.....X- X.X - X.X -X.....X - X.....X- X..X -X..X X..X" + "--- -XXX.XXX- X...X - X...X -X....X - X....X- X..X -X...X X...X" + "X - X.X - X.....X - X.....X -X...X - X...X- X..X - X...X X...X " + "XX - X.X -X.......X- X.......X -X..X.X - X.X..X- X..X - X...X...X " + "X.X - X.X -XXXX.XXXX- XXXX.XXXX -X.X X.X - X.X X.X- X..XXX - X.....X " + "X..X - X.X - X.X - X.X -XX X.X - X.X XX- X..X..XXX - X...X " + "X...X - X.X - X.X - XX X.X XX - X.X - X.X - X..X..X..XX - X.X " + "X....X - X.X - X.X - X.X X.X X.X - X.X - X.X - X..X..X..X.X - X...X " + "X.....X - X.X - X.X - X..X X.X X..X - X.X - X.X -XXX X..X..X..X..X- X.....X " + "X......X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X XX-XX X.X -X..XX........X..X- X...X...X " + "X.......X - X.X - X.X -X.....................X- X.X X.X-X.X X.X -X...X...........X- X...X X...X " + "X........X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X..X-X..X.X - X..............X-X...X X...X" + "X.........X -XXX.XXX- X.X - X..X X.X X..X - X...X-X...X - X.............X-X..X X..X" + "X..........X-X.....X- X.X - X.X X.X X.X - X....X-X....X - X.............X- XX XX " + "X......XXXXX-XXXXXXX- X.X - XX X.X XX - X.....X-X.....X - X............X--------------" + "X...X..X --------- X.X - X.X - XXXXXXX-XXXXXXX - X...........X - " + "X..X X..X - -XXXX.XXXX- XXXX.XXXX ------------------------------------- X..........X - " + "X.X X..X - -X.......X- X.......X - XX XX - - X..........X - " + "XX X..X - - X.....X - X.....X - X.X X.X - - X........X - " + " X..X - - X...X - X...X - X..X X..X - - X........X - " + " XX - - X.X - X.X - X...XXXXXXXXXXXXX...X - - XXXXXXXXXX - " + "------------- - X - X -X.....................X- ------------------- " + " ----------------------------------- X...XXXXXXXXXXXXX...X - " + " - X..X X..X - " + " - X.X X.X - " + " - XX XX - " +}; + +static const ImVec2 FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[ImGuiMouseCursor_COUNT][3] = +{ + // Pos ........ Size ......... Offset ...... + { ImVec2( 0,3), ImVec2(12,19), ImVec2( 0, 0) }, // ImGuiMouseCursor_Arrow + { ImVec2(13,0), ImVec2( 7,16), ImVec2( 1, 8) }, // ImGuiMouseCursor_TextInput + { ImVec2(31,0), ImVec2(23,23), ImVec2(11,11) }, // ImGuiMouseCursor_ResizeAll + { ImVec2(21,0), ImVec2( 9,23), ImVec2( 4,11) }, // ImGuiMouseCursor_ResizeNS + { ImVec2(55,18),ImVec2(23, 9), ImVec2(11, 4) }, // ImGuiMouseCursor_ResizeEW + { ImVec2(73,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNESW + { ImVec2(55,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNWSE + { ImVec2(91,0), ImVec2(17,22), ImVec2( 5, 0) }, // ImGuiMouseCursor_Hand + { ImVec2(109,0),ImVec2(13,15), ImVec2( 6, 7) }, // ImGuiMouseCursor_NotAllowed +}; + +ImFontAtlas::ImFontAtlas() +{ + memset(this, 0, sizeof(*this)); + TexGlyphPadding = 1; + PackIdMouseCursors = PackIdLines = -1; +} + +ImFontAtlas::~ImFontAtlas() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + Clear(); +} + +void ImFontAtlas::ClearInputData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + for (int i = 0; i < ConfigData.Size; i++) + if (ConfigData[i].FontData && ConfigData[i].FontDataOwnedByAtlas) + { + IM_FREE(ConfigData[i].FontData); + ConfigData[i].FontData = NULL; + } + + // When clearing this we lose access to the font name and other information used to build the font. + for (int i = 0; i < Fonts.Size; i++) + if (Fonts[i]->ConfigData >= ConfigData.Data && Fonts[i]->ConfigData < ConfigData.Data + ConfigData.Size) + { + Fonts[i]->ConfigData = NULL; + Fonts[i]->ConfigDataCount = 0; + } + ConfigData.clear(); + CustomRects.clear(); + PackIdMouseCursors = PackIdLines = -1; + // Important: we leave TexReady untouched +} + +void ImFontAtlas::ClearTexData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + if (TexPixelsAlpha8) + IM_FREE(TexPixelsAlpha8); + if (TexPixelsRGBA32) + IM_FREE(TexPixelsRGBA32); + TexPixelsAlpha8 = NULL; + TexPixelsRGBA32 = NULL; + TexPixelsUseColors = false; + // Important: we leave TexReady untouched +} + +void ImFontAtlas::ClearFonts() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + Fonts.clear_delete(); + TexReady = false; +} + +void ImFontAtlas::Clear() +{ + ClearInputData(); + ClearTexData(); + ClearFonts(); +} + +void ImFontAtlas::GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Build atlas on demand + if (TexPixelsAlpha8 == NULL) + Build(); + + *out_pixels = TexPixelsAlpha8; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 1; +} + +void ImFontAtlas::GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Convert to RGBA32 format on demand + // Although it is likely to be the most commonly used format, our font rendering is 1 channel / 8 bpp + if (!TexPixelsRGBA32) + { + unsigned char* pixels = NULL; + GetTexDataAsAlpha8(&pixels, NULL, NULL); + if (pixels) + { + TexPixelsRGBA32 = (unsigned int*)IM_ALLOC((size_t)TexWidth * (size_t)TexHeight * 4); + const unsigned char* src = pixels; + unsigned int* dst = TexPixelsRGBA32; + for (int n = TexWidth * TexHeight; n > 0; n--) + *dst++ = IM_COL32(255, 255, 255, (unsigned int)(*src++)); + } + } + + *out_pixels = (unsigned char*)TexPixelsRGBA32; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 4; +} + +ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + IM_ASSERT(font_cfg->FontData != NULL && font_cfg->FontDataSize > 0); + IM_ASSERT(font_cfg->SizePixels > 0.0f); + + // Create new font + if (!font_cfg->MergeMode) + Fonts.push_back(IM_NEW(ImFont)); + else + IM_ASSERT(!Fonts.empty() && "Cannot use MergeMode for the first font"); // When using MergeMode make sure that a font has already been added before. You can use ImGui::GetIO().Fonts->AddFontDefault() to add the default imgui font. + + ConfigData.push_back(*font_cfg); + ImFontConfig& new_font_cfg = ConfigData.back(); + if (new_font_cfg.DstFont == NULL) + new_font_cfg.DstFont = Fonts.back(); + if (!new_font_cfg.FontDataOwnedByAtlas) + { + new_font_cfg.FontData = IM_ALLOC(new_font_cfg.FontDataSize); + new_font_cfg.FontDataOwnedByAtlas = true; + memcpy(new_font_cfg.FontData, font_cfg->FontData, (size_t)new_font_cfg.FontDataSize); + } + + if (new_font_cfg.DstFont->EllipsisChar == (ImWchar)-1) + new_font_cfg.DstFont->EllipsisChar = font_cfg->EllipsisChar; + + // Invalidate texture + TexReady = false; + ClearTexData(); + return new_font_cfg.DstFont; +} + +// Default font TTF is compressed with stb_compress then base85 encoded (see misc/fonts/binary_to_compressed_c.cpp for encoder) +static unsigned int stb_decompress_length(const unsigned char* input); +static unsigned int stb_decompress(unsigned char* output, const unsigned char* input, unsigned int length); +static const char* GetDefaultCompressedFontDataTTFBase85(); +static unsigned int Decode85Byte(char c) { return c >= '\\' ? c-36 : c-35; } +static void Decode85(const unsigned char* src, unsigned char* dst) +{ + while (*src) + { + unsigned int tmp = Decode85Byte(src[0]) + 85 * (Decode85Byte(src[1]) + 85 * (Decode85Byte(src[2]) + 85 * (Decode85Byte(src[3]) + 85 * Decode85Byte(src[4])))); + dst[0] = ((tmp >> 0) & 0xFF); dst[1] = ((tmp >> 8) & 0xFF); dst[2] = ((tmp >> 16) & 0xFF); dst[3] = ((tmp >> 24) & 0xFF); // We can't assume little-endianness. + src += 5; + dst += 4; + } +} + +// Load embedded ProggyClean.ttf at size 13, disable oversampling +ImFont* ImFontAtlas::AddFontDefault(const ImFontConfig* font_cfg_template) +{ + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (!font_cfg_template) + { + font_cfg.OversampleH = font_cfg.OversampleV = 1; + font_cfg.PixelSnapH = true; + } + if (font_cfg.SizePixels <= 0.0f) + font_cfg.SizePixels = 13.0f * 1.0f; + if (font_cfg.Name[0] == '\0') + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "ProggyClean.ttf, %dpx", (int)font_cfg.SizePixels); + font_cfg.EllipsisChar = (ImWchar)0x0085; + font_cfg.GlyphOffset.y = 1.0f * IM_FLOOR(font_cfg.SizePixels / 13.0f); // Add +1 offset per 13 units + + const char* ttf_compressed_base85 = GetDefaultCompressedFontDataTTFBase85(); + const ImWchar* glyph_ranges = font_cfg.GlyphRanges != NULL ? font_cfg.GlyphRanges : GetGlyphRangesDefault(); + ImFont* font = AddFontFromMemoryCompressedBase85TTF(ttf_compressed_base85, font_cfg.SizePixels, &font_cfg, glyph_ranges); + return font; +} + +ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + size_t data_size = 0; + void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0); + if (!data) + { + IM_ASSERT_USER_ERROR(0, "Could not load font file!"); + return NULL; + } + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (font_cfg.Name[0] == '\0') + { + // Store a short copy of filename into into the font name for convenience + const char* p; + for (p = filename + strlen(filename); p > filename && p[-1] != '/' && p[-1] != '\\'; p--) {} + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); + } + return AddFontFromMemoryTTF(data, (int)data_size, size_pixels, &font_cfg, glyph_ranges); +} + +// NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless font_cfg_template->FontDataOwnedByAtlas == false. Owned TTF buffer will be deleted after Build(). +ImFont* ImFontAtlas::AddFontFromMemoryTTF(void* ttf_data, int ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + font_cfg.FontData = ttf_data; + font_cfg.FontDataSize = ttf_size; + font_cfg.SizePixels = size_pixels > 0.0f ? size_pixels : font_cfg.SizePixels; + if (glyph_ranges) + font_cfg.GlyphRanges = glyph_ranges; + return AddFont(&font_cfg); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + const unsigned int buf_decompressed_size = stb_decompress_length((const unsigned char*)compressed_ttf_data); + unsigned char* buf_decompressed_data = (unsigned char*)IM_ALLOC(buf_decompressed_size); + stb_decompress(buf_decompressed_data, (const unsigned char*)compressed_ttf_data, (unsigned int)compressed_ttf_size); + + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + font_cfg.FontDataOwnedByAtlas = true; + return AddFontFromMemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, size_pixels, &font_cfg, glyph_ranges); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) +{ + int compressed_ttf_size = (((int)strlen(compressed_ttf_data_base85) + 4) / 5) * 4; + void* compressed_ttf = IM_ALLOC((size_t)compressed_ttf_size); + Decode85((const unsigned char*)compressed_ttf_data_base85, (unsigned char*)compressed_ttf); + ImFont* font = AddFontFromMemoryCompressedTTF(compressed_ttf, compressed_ttf_size, size_pixels, font_cfg, glyph_ranges); + IM_FREE(compressed_ttf); + return font; +} + +int ImFontAtlas::AddCustomRectRegular(int width, int height) +{ + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset) +{ +#ifdef IMGUI_USE_WCHAR32 + IM_ASSERT(id <= IM_UNICODE_CODEPOINT_MAX); +#endif + IM_ASSERT(font != NULL); + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + r.GlyphID = id; + r.GlyphAdvanceX = advance_x; + r.GlyphOffset = offset; + r.Font = font; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +void ImFontAtlas::CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const +{ + IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates + IM_ASSERT(rect->IsPacked()); // Make sure the rectangle has been packed + *out_uv_min = ImVec2((float)rect->X * TexUvScale.x, (float)rect->Y * TexUvScale.y); + *out_uv_max = ImVec2((float)(rect->X + rect->Width) * TexUvScale.x, (float)(rect->Y + rect->Height) * TexUvScale.y); +} + +bool ImFontAtlas::GetMouseCursorTexData(ImGuiMouseCursor cursor_type, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]) +{ + if (cursor_type <= ImGuiMouseCursor_None || cursor_type >= ImGuiMouseCursor_COUNT) + return false; + if (Flags & ImFontAtlasFlags_NoMouseCursors) + return false; + + IM_ASSERT(PackIdMouseCursors != -1); + ImFontAtlasCustomRect* r = GetCustomRectByIndex(PackIdMouseCursors); + ImVec2 pos = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][0] + ImVec2((float)r->X, (float)r->Y); + ImVec2 size = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][1]; + *out_size = size; + *out_offset = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][2]; + out_uv_border[0] = (pos) * TexUvScale; + out_uv_border[1] = (pos + size) * TexUvScale; + pos.x += FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + out_uv_fill[0] = (pos) * TexUvScale; + out_uv_fill[1] = (pos + size) * TexUvScale; + return true; +} + +bool ImFontAtlas::Build() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + + // Default font is none are specified + if (ConfigData.Size == 0) + AddFontDefault(); + + // Select builder + // - Note that we do not reassign to atlas->FontBuilderIO, since it is likely to point to static data which + // may mess with some hot-reloading schemes. If you need to assign to this (for dynamic selection) AND are + // using a hot-reloading scheme that messes up static data, store your own instance of ImFontBuilderIO somewhere + // and point to it instead of pointing directly to return value of the GetBuilderXXX functions. + const ImFontBuilderIO* builder_io = FontBuilderIO; + if (builder_io == NULL) + { +#ifdef IMGUI_ENABLE_FREETYPE + builder_io = ImGuiFreeType::GetBuilderForFreeType(); +#elif defined(IMGUI_ENABLE_STB_TRUETYPE) + builder_io = ImFontAtlasGetBuilderForStbTruetype(); +#else + IM_ASSERT(0); // Invalid Build function +#endif + } + + // Build + return builder_io->FontBuilder_Build(this); +} + +void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_brighten_factor) +{ + for (unsigned int i = 0; i < 256; i++) + { + unsigned int value = (unsigned int)(i * in_brighten_factor); + out_table[i] = value > 255 ? 255 : (value & 0xFF); + } +} + +void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride) +{ + IM_ASSERT_PARANOID(w <= stride); + unsigned char* data = pixels + x + y * stride; + for (int j = h; j > 0; j--, data += stride - w) + for (int i = w; i > 0; i--, data++) + *data = table[*data]; +} + +#ifdef IMGUI_ENABLE_STB_TRUETYPE +// Temporary data for one source font (multiple source fonts can be merged into one destination ImFont) +// (C++03 doesn't allow instancing ImVector<> with function-local types so we declare the type here.) +struct ImFontBuildSrcData +{ + stbtt_fontinfo FontInfo; + stbtt_pack_range PackRange; // Hold the list of codepoints to pack (essentially points to Codepoints.Data) + stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. + stbtt_packedchar* PackedChars; // Output glyphs + const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) + int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] + int GlyphsHighest; // Highest requested codepoint + int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) + ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) + ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsSet) +}; + +// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) +struct ImFontBuildDstData +{ + int SrcCount; // Number of source fonts targeting this destination font. + int GlyphsHighest; + int GlyphsCount; + ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. +}; + +static void UnpackBitVectorToFlatIndexList(const ImBitVector* in, ImVector* out) +{ + IM_ASSERT(sizeof(in->Storage.Data[0]) == sizeof(int)); + const ImU32* it_begin = in->Storage.begin(); + const ImU32* it_end = in->Storage.end(); + for (const ImU32* it = it_begin; it < it_end; it++) + if (ImU32 entries_32 = *it) + for (ImU32 bit_n = 0; bit_n < 32; bit_n++) + if (entries_32 & ((ImU32)1 << bit_n)) + out->push_back((int)(((it - it_begin) << 5) + bit_n)); +} + +static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) +{ + IM_ASSERT(atlas->ConfigData.Size > 0); + + ImFontAtlasBuildInit(atlas); + + // Clear atlas + atlas->TexID = (ImTextureID)NULL; + atlas->TexWidth = atlas->TexHeight = 0; + atlas->TexUvScale = ImVec2(0.0f, 0.0f); + atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); + atlas->ClearTexData(); + + // Temporary storage for building + ImVector src_tmp_array; + ImVector dst_tmp_array; + src_tmp_array.resize(atlas->ConfigData.Size); + dst_tmp_array.resize(atlas->Fonts.Size); + memset(src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); + memset(dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); + + // 1. Initialize font loading structure, check font data validity + for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); + + // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) + src_tmp.DstIndex = -1; + for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) + if (cfg.DstFont == atlas->Fonts[output_i]) + src_tmp.DstIndex = output_i; + if (src_tmp.DstIndex == -1) + { + IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? + return false; + } + // Initialize helper structure for font loading and verify that the TTF/OTF data is correct + const int font_offset = stbtt_GetFontOffsetForIndex((unsigned char*)cfg.FontData, cfg.FontNo); + IM_ASSERT(font_offset >= 0 && "FontData is incorrect, or FontNo cannot be found."); + if (!stbtt_InitFont(&src_tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset)) + return false; + + // Measure highest codepoints + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); + dst_tmp.SrcCount++; + dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); + } + + // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. + int total_glyphs_count = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); + if (dst_tmp.GlyphsSet.Storage.empty()) + dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); + + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + for (unsigned int codepoint = src_range[0]; codepoint <= src_range[1]; codepoint++) + { + if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option for MergeMode (e.g. MergeOverwrite==true) + continue; + if (!stbtt_FindGlyphIndex(&src_tmp.FontInfo, codepoint)) // It is actually in the font? + continue; + + // Add to avail set/counters + src_tmp.GlyphsCount++; + dst_tmp.GlyphsCount++; + src_tmp.GlyphsSet.SetBit(codepoint); + dst_tmp.GlyphsSet.SetBit(codepoint); + total_glyphs_count++; + } + } + + // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); + UnpackBitVectorToFlatIndexList(&src_tmp.GlyphsSet, &src_tmp.GlyphsList); + src_tmp.GlyphsSet.Clear(); + IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); + } + for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) + dst_tmp_array[dst_i].GlyphsSet.Clear(); + dst_tmp_array.clear(); + + // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) + // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) + ImVector buf_rects; + ImVector buf_packedchars; + buf_rects.resize(total_glyphs_count); + buf_packedchars.resize(total_glyphs_count); + memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); + memset(buf_packedchars.Data, 0, (size_t)buf_packedchars.size_in_bytes()); + + // 4. Gather glyphs sizes so we can pack them in our virtual canvas. + int total_surface = 0; + int buf_rects_out_n = 0; + int buf_packedchars_out_n = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + src_tmp.Rects = &buf_rects[buf_rects_out_n]; + src_tmp.PackedChars = &buf_packedchars[buf_packedchars_out_n]; + buf_rects_out_n += src_tmp.GlyphsCount; + buf_packedchars_out_n += src_tmp.GlyphsCount; + + // Convert our ranges in the format stb_truetype wants + ImFontConfig& cfg = atlas->ConfigData[src_i]; + src_tmp.PackRange.font_size = cfg.SizePixels; + src_tmp.PackRange.first_unicode_codepoint_in_range = 0; + src_tmp.PackRange.array_of_unicode_codepoints = src_tmp.GlyphsList.Data; + src_tmp.PackRange.num_chars = src_tmp.GlyphsList.Size; + src_tmp.PackRange.chardata_for_range = src_tmp.PackedChars; + src_tmp.PackRange.h_oversample = (unsigned char)cfg.OversampleH; + src_tmp.PackRange.v_oversample = (unsigned char)cfg.OversampleV; + + // Gather the sizes of all rectangles we will need to pack (this loop is based on stbtt_PackFontRangesGatherRects) + const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels); + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) + { + int x0, y0, x1, y1; + const int glyph_index_in_font = stbtt_FindGlyphIndex(&src_tmp.FontInfo, src_tmp.GlyphsList[glyph_i]); + IM_ASSERT(glyph_index_in_font != 0); + stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1); + src_tmp.Rects[glyph_i].w = (stbrp_coord)(x1 - x0 + padding + cfg.OversampleH - 1); + src_tmp.Rects[glyph_i].h = (stbrp_coord)(y1 - y0 + padding + cfg.OversampleV - 1); + total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; + } + } + + // We need a width for the skyline algorithm, any width! + // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. + // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. + const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; + atlas->TexHeight = 0; + if (atlas->TexDesiredWidth > 0) + atlas->TexWidth = atlas->TexDesiredWidth; + else + atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; + + // 5. Start packing + // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). + const int TEX_HEIGHT_MAX = 1024 * 32; + stbtt_pack_context spc = {}; + stbtt_PackBegin(&spc, NULL, atlas->TexWidth, TEX_HEIGHT_MAX, 0, atlas->TexGlyphPadding, NULL); + ImFontAtlasBuildPackCustomRects(atlas, spc.pack_info); + + // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbrp_pack_rects((stbrp_context*)spc.pack_info, src_tmp.Rects, src_tmp.GlyphsCount); + + // Extend texture height and mark missing glyphs as non-packed so we won't render them. + // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + if (src_tmp.Rects[glyph_i].was_packed) + atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); + } + + // 7. Allocate texture + atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); + atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); + atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(atlas->TexWidth * atlas->TexHeight); + memset(atlas->TexPixelsAlpha8, 0, atlas->TexWidth * atlas->TexHeight); + spc.pixels = atlas->TexPixelsAlpha8; + spc.height = atlas->TexHeight; + + // 8. Render/rasterize font characters into the texture + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbtt_PackFontRangesRenderIntoRects(&spc, &src_tmp.FontInfo, &src_tmp.PackRange, 1, src_tmp.Rects); + + // Apply multiply operator + if (cfg.RasterizerMultiply != 1.0f) + { + unsigned char multiply_table[256]; + ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); + stbrp_rect* r = &src_tmp.Rects[0]; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++, r++) + if (r->was_packed) + ImFontAtlasBuildMultiplyRectAlpha8(multiply_table, atlas->TexPixelsAlpha8, r->x, r->y, r->w, r->h, atlas->TexWidth * 1); + } + src_tmp.Rects = NULL; + } + + // End packing + stbtt_PackEnd(&spc); + buf_rects.clear(); + + // 9. Setup ImFont and glyphs for runtime + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + // When merging fonts with MergeMode=true: + // - We can have multiple input fonts writing into a same destination font. + // - dst_font->ConfigData is != from cfg which is our source configuration. + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFont* dst_font = cfg.DstFont; + + const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels); + int unscaled_ascent, unscaled_descent, unscaled_line_gap; + stbtt_GetFontVMetrics(&src_tmp.FontInfo, &unscaled_ascent, &unscaled_descent, &unscaled_line_gap); + + const float ascent = ImFloor(unscaled_ascent * font_scale + ((unscaled_ascent > 0.0f) ? +1 : -1)); + const float descent = ImFloor(unscaled_descent * font_scale + ((unscaled_descent > 0.0f) ? +1 : -1)); + ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); + const float font_off_x = cfg.GlyphOffset.x; + const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); + + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + { + // Register glyph + const int codepoint = src_tmp.GlyphsList[glyph_i]; + const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i]; + stbtt_aligned_quad q; + float unused_x = 0.0f, unused_y = 0.0f; + stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &unused_x, &unused_y, &q, 0); + dst_font->AddGlyph(&cfg, (ImWchar)codepoint, q.x0 + font_off_x, q.y0 + font_off_y, q.x1 + font_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, pc.xadvance); + } + } + + // Cleanup + src_tmp_array.clear_destruct(); + + ImFontAtlasBuildFinish(atlas); + return true; +} + +const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() +{ + static ImFontBuilderIO io; + io.FontBuilder_Build = ImFontAtlasBuildWithStbTruetype; + return &io; +} + +#endif // IMGUI_ENABLE_STB_TRUETYPE + +void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent) +{ + if (!font_config->MergeMode) + { + font->ClearOutputData(); + font->FontSize = font_config->SizePixels; + font->ConfigData = font_config; + font->ConfigDataCount = 0; + font->ContainerAtlas = atlas; + font->Ascent = ascent; + font->Descent = descent; + } + font->ConfigDataCount++; +} + +void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque) +{ + stbrp_context* pack_context = (stbrp_context*)stbrp_context_opaque; + IM_ASSERT(pack_context != NULL); + + ImVector& user_rects = atlas->CustomRects; + IM_ASSERT(user_rects.Size >= 1); // We expect at least the default custom rects to be registered, else something went wrong. + + ImVector pack_rects; + pack_rects.resize(user_rects.Size); + memset(pack_rects.Data, 0, (size_t)pack_rects.size_in_bytes()); + for (int i = 0; i < user_rects.Size; i++) + { + pack_rects[i].w = user_rects[i].Width; + pack_rects[i].h = user_rects[i].Height; + } + stbrp_pack_rects(pack_context, &pack_rects[0], pack_rects.Size); + for (int i = 0; i < pack_rects.Size; i++) + if (pack_rects[i].was_packed) + { + user_rects[i].X = (unsigned short)pack_rects[i].x; + user_rects[i].Y = (unsigned short)pack_rects[i].y; + IM_ASSERT(pack_rects[i].w == user_rects[i].Width && pack_rects[i].h == user_rects[i].Height); + atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); + } +} + +void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value) +{ + IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); + IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); + unsigned char* out_pixel = atlas->TexPixelsAlpha8 + x + (y * atlas->TexWidth); + for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) + for (int off_x = 0; off_x < w; off_x++) + out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : 0x00; +} + +void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value) +{ + IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); + IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); + unsigned int* out_pixel = atlas->TexPixelsRGBA32 + x + (y * atlas->TexWidth); + for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) + for (int off_x = 0; off_x < w; off_x++) + out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : IM_COL32_BLACK_TRANS; +} + +static void ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas) +{ + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdMouseCursors); + IM_ASSERT(r->IsPacked()); + + const int w = atlas->TexWidth; + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + { + // Render/copy pixels + IM_ASSERT(r->Width == FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1 && r->Height == FONT_ATLAS_DEFAULT_TEX_DATA_H); + const int x_for_white = r->X; + const int x_for_black = r->X + FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + if (atlas->TexPixelsAlpha8 != NULL) + { + ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', 0xFF); + ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', 0xFF); + } + else + { + ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', IM_COL32_WHITE); + ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', IM_COL32_WHITE); + } + } + else + { + // Render 4 white pixels + IM_ASSERT(r->Width == 2 && r->Height == 2); + const int offset = (int)r->X + (int)r->Y * w; + if (atlas->TexPixelsAlpha8 != NULL) + { + atlas->TexPixelsAlpha8[offset] = atlas->TexPixelsAlpha8[offset + 1] = atlas->TexPixelsAlpha8[offset + w] = atlas->TexPixelsAlpha8[offset + w + 1] = 0xFF; + } + else + { + atlas->TexPixelsRGBA32[offset] = atlas->TexPixelsRGBA32[offset + 1] = atlas->TexPixelsRGBA32[offset + w] = atlas->TexPixelsRGBA32[offset + w + 1] = IM_COL32_WHITE; + } + } + atlas->TexUvWhitePixel = ImVec2((r->X + 0.5f) * atlas->TexUvScale.x, (r->Y + 0.5f) * atlas->TexUvScale.y); +} + +static void ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) +{ + if (atlas->Flags & ImFontAtlasFlags_NoBakedLines) + return; + + // This generates a triangular shape in the texture, with the various line widths stacked on top of each other to allow interpolation between them + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdLines); + IM_ASSERT(r->IsPacked()); + for (unsigned int n = 0; n < IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1; n++) // +1 because of the zero-width row + { + // Each line consists of at least two empty pixels at the ends, with a line of solid pixels in the middle + unsigned int y = n; + unsigned int line_width = n; + unsigned int pad_left = (r->Width - line_width) / 2; + unsigned int pad_right = r->Width - (pad_left + line_width); + + // Write each slice + IM_ASSERT(pad_left + line_width + pad_right == r->Width && y < r->Height); // Make sure we're inside the texture bounds before we start writing pixels + if (atlas->TexPixelsAlpha8 != NULL) + { + unsigned char* write_ptr = &atlas->TexPixelsAlpha8[r->X + ((r->Y + y) * atlas->TexWidth)]; + for (unsigned int i = 0; i < pad_left; i++) + *(write_ptr + i) = 0x00; + + for (unsigned int i = 0; i < line_width; i++) + *(write_ptr + pad_left + i) = 0xFF; + + for (unsigned int i = 0; i < pad_right; i++) + *(write_ptr + pad_left + line_width + i) = 0x00; + } + else + { + unsigned int* write_ptr = &atlas->TexPixelsRGBA32[r->X + ((r->Y + y) * atlas->TexWidth)]; + for (unsigned int i = 0; i < pad_left; i++) + *(write_ptr + i) = IM_COL32(255, 255, 255, 0); + + for (unsigned int i = 0; i < line_width; i++) + *(write_ptr + pad_left + i) = IM_COL32_WHITE; + + for (unsigned int i = 0; i < pad_right; i++) + *(write_ptr + pad_left + line_width + i) = IM_COL32(255, 255, 255, 0); + } + + // Calculate UVs for this line + ImVec2 uv0 = ImVec2((float)(r->X + pad_left - 1), (float)(r->Y + y)) * atlas->TexUvScale; + ImVec2 uv1 = ImVec2((float)(r->X + pad_left + line_width + 1), (float)(r->Y + y + 1)) * atlas->TexUvScale; + float half_v = (uv0.y + uv1.y) * 0.5f; // Calculate a constant V in the middle of the row to avoid sampling artifacts + atlas->TexUvLines[n] = ImVec4(uv0.x, half_v, uv1.x, half_v); + } +} + +// Note: this is called / shared by both the stb_truetype and the FreeType builder +void ImFontAtlasBuildInit(ImFontAtlas* atlas) +{ + // Register texture region for mouse cursors or standard white pixels + if (atlas->PackIdMouseCursors < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1, FONT_ATLAS_DEFAULT_TEX_DATA_H); + else + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(2, 2); + } + + // Register texture region for thick lines + // The +2 here is to give space for the end caps, whilst height +1 is to accommodate the fact we have a zero-width row + if (atlas->PackIdLines < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoBakedLines)) + atlas->PackIdLines = atlas->AddCustomRectRegular(IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 2, IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1); + } +} + +// This is called/shared by both the stb_truetype and the FreeType builder. +void ImFontAtlasBuildFinish(ImFontAtlas* atlas) +{ + // Render into our custom data blocks + IM_ASSERT(atlas->TexPixelsAlpha8 != NULL || atlas->TexPixelsRGBA32 != NULL); + ImFontAtlasBuildRenderDefaultTexData(atlas); + ImFontAtlasBuildRenderLinesTexData(atlas); + + // Register custom rectangle glyphs + for (int i = 0; i < atlas->CustomRects.Size; i++) + { + const ImFontAtlasCustomRect* r = &atlas->CustomRects[i]; + if (r->Font == NULL || r->GlyphID == 0) + continue; + + // Will ignore ImFontConfig settings: GlyphMinAdvanceX, GlyphMinAdvanceY, GlyphExtraSpacing, PixelSnapH + IM_ASSERT(r->Font->ContainerAtlas == atlas); + ImVec2 uv0, uv1; + atlas->CalcCustomRectUV(r, &uv0, &uv1); + r->Font->AddGlyph(NULL, (ImWchar)r->GlyphID, r->GlyphOffset.x, r->GlyphOffset.y, r->GlyphOffset.x + r->Width, r->GlyphOffset.y + r->Height, uv0.x, uv0.y, uv1.x, uv1.y, r->GlyphAdvanceX); + } + + // Build all fonts lookup tables + for (int i = 0; i < atlas->Fonts.Size; i++) + if (atlas->Fonts[i]->DirtyLookupTables) + atlas->Fonts[i]->BuildLookupTable(); + + atlas->TexReady = true; +} + +// Retrieve list of range (2 int per range, values are inclusive) +const ImWchar* ImFontAtlas::GetGlyphRangesDefault() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesGreek() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0370, 0x03FF, // Greek and Coptic + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesKorean() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3131, 0x3163, // Korean alphabets + 0xAC00, 0xD7A3, // Korean characters + 0xFFFD, 0xFFFD, // Invalid + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseFull() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD, // Invalid + 0x4e00, 0x9FAF, // CJK Ideograms + 0, + }; + return &ranges[0]; +} + +static void UnpackAccumulativeOffsetsIntoRanges(int base_codepoint, const short* accumulative_offsets, int accumulative_offsets_count, ImWchar* out_ranges) +{ + for (int n = 0; n < accumulative_offsets_count; n++, out_ranges += 2) + { + out_ranges[0] = out_ranges[1] = (ImWchar)(base_codepoint + accumulative_offsets[n]); + base_codepoint += accumulative_offsets[n]; + } + out_ranges[0] = 0; +} + +//------------------------------------------------------------------------- +// [SECTION] ImFontAtlas glyph ranges helpers +//------------------------------------------------------------------------- + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon() +{ + // Store 2500 regularly used characters for Simplified Chinese. + // Sourced from https://zh.wiktionary.org/wiki/%E9%99%84%E5%BD%95:%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E5%AD%97%E8%A1%A8 + // This table covers 97.97% of all characters used during the month in July, 1987. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,3,2,1,2,2,1,1,1,1,1,5,2,1,2,3,3,3,2,2,4,1,1,1,2,1,5,2,3,1,2,1,2,1,1,2,1,1,2,2,1,4,1,1,1,1,5,10,1,2,19,2,1,2,1,2,1,2,1,2, + 1,5,1,6,3,2,1,2,2,1,1,1,4,8,5,1,1,4,1,1,3,1,2,1,5,1,2,1,1,1,10,1,1,5,2,4,6,1,4,2,2,2,12,2,1,1,6,1,1,1,4,1,1,4,6,5,1,4,2,2,4,10,7,1,1,4,2,4, + 2,1,4,3,6,10,12,5,7,2,14,2,9,1,1,6,7,10,4,7,13,1,5,4,8,4,1,1,2,28,5,6,1,1,5,2,5,20,2,2,9,8,11,2,9,17,1,8,6,8,27,4,6,9,20,11,27,6,68,2,2,1,1, + 1,2,1,2,2,7,6,11,3,3,1,1,3,1,2,1,1,1,1,1,3,1,1,8,3,4,1,5,7,2,1,4,4,8,4,2,1,2,1,1,4,5,6,3,6,2,12,3,1,3,9,2,4,3,4,1,5,3,3,1,3,7,1,5,1,1,1,1,2, + 3,4,5,2,3,2,6,1,1,2,1,7,1,7,3,4,5,15,2,2,1,5,3,22,19,2,1,1,1,1,2,5,1,1,1,6,1,1,12,8,2,9,18,22,4,1,1,5,1,16,1,2,7,10,15,1,1,6,2,4,1,2,4,1,6, + 1,1,3,2,4,1,6,4,5,1,2,1,1,2,1,10,3,1,3,2,1,9,3,2,5,7,2,19,4,3,6,1,1,1,1,1,4,3,2,1,1,1,2,5,3,1,1,1,2,2,1,1,2,1,1,2,1,3,1,1,1,3,7,1,4,1,1,2,1, + 1,2,1,2,4,4,3,8,1,1,1,2,1,3,5,1,3,1,3,4,6,2,2,14,4,6,6,11,9,1,15,3,1,28,5,2,5,5,3,1,3,4,5,4,6,14,3,2,3,5,21,2,7,20,10,1,2,19,2,4,28,28,2,3, + 2,1,14,4,1,26,28,42,12,40,3,52,79,5,14,17,3,2,2,11,3,4,6,3,1,8,2,23,4,5,8,10,4,2,7,3,5,1,1,6,3,1,2,2,2,5,28,1,1,7,7,20,5,3,29,3,17,26,1,8,4, + 27,3,6,11,23,5,3,4,6,13,24,16,6,5,10,25,35,7,3,2,3,3,14,3,6,2,6,1,4,2,3,8,2,1,1,3,3,3,4,1,1,13,2,2,4,5,2,1,14,14,1,2,2,1,4,5,2,3,1,14,3,12, + 3,17,2,16,5,1,2,1,8,9,3,19,4,2,2,4,17,25,21,20,28,75,1,10,29,103,4,1,2,1,1,4,2,4,1,2,3,24,2,2,2,1,1,2,1,3,8,1,1,1,2,1,1,3,1,1,1,6,1,5,3,1,1, + 1,3,4,1,1,5,2,1,5,6,13,9,16,1,1,1,1,3,2,3,2,4,5,2,5,2,2,3,7,13,7,2,2,1,1,1,1,2,3,3,2,1,6,4,9,2,1,14,2,14,2,1,18,3,4,14,4,11,41,15,23,15,23, + 176,1,3,4,1,1,1,1,5,3,1,2,3,7,3,1,1,2,1,2,4,4,6,2,4,1,9,7,1,10,5,8,16,29,1,1,2,2,3,1,3,5,2,4,5,4,1,1,2,2,3,3,7,1,6,10,1,17,1,44,4,6,2,1,1,6, + 5,4,2,10,1,6,9,2,8,1,24,1,2,13,7,8,8,2,1,4,1,3,1,3,3,5,2,5,10,9,4,9,12,2,1,6,1,10,1,1,7,7,4,10,8,3,1,13,4,3,1,6,1,3,5,2,1,2,17,16,5,2,16,6, + 1,4,2,1,3,3,6,8,5,11,11,1,3,3,2,4,6,10,9,5,7,4,7,4,7,1,1,4,2,1,3,6,8,7,1,6,11,5,5,3,24,9,4,2,7,13,5,1,8,82,16,61,1,1,1,4,2,2,16,10,3,8,1,1, + 6,4,2,1,3,1,1,1,4,3,8,4,2,2,1,1,1,1,1,6,3,5,1,1,4,6,9,2,1,1,1,2,1,7,2,1,6,1,5,4,4,3,1,8,1,3,3,1,3,2,2,2,2,3,1,6,1,2,1,2,1,3,7,1,8,2,1,2,1,5, + 2,5,3,5,10,1,2,1,1,3,2,5,11,3,9,3,5,1,1,5,9,1,2,1,5,7,9,9,8,1,3,3,3,6,8,2,3,2,1,1,32,6,1,2,15,9,3,7,13,1,3,10,13,2,14,1,13,10,2,1,3,10,4,15, + 2,15,15,10,1,3,9,6,9,32,25,26,47,7,3,2,3,1,6,3,4,3,2,8,5,4,1,9,4,2,2,19,10,6,2,3,8,1,2,2,4,2,1,9,4,4,4,6,4,8,9,2,3,1,1,1,1,3,5,5,1,3,8,4,6, + 2,1,4,12,1,5,3,7,13,2,5,8,1,6,1,2,5,14,6,1,5,2,4,8,15,5,1,23,6,62,2,10,1,1,8,1,2,2,10,4,2,2,9,2,1,1,3,2,3,1,5,3,3,2,1,3,8,1,1,1,11,3,1,1,4, + 3,7,1,14,1,2,3,12,5,2,5,1,6,7,5,7,14,11,1,3,1,8,9,12,2,1,11,8,4,4,2,6,10,9,13,1,1,3,1,5,1,3,2,4,4,1,18,2,3,14,11,4,29,4,2,7,1,3,13,9,2,2,5, + 3,5,20,7,16,8,5,72,34,6,4,22,12,12,28,45,36,9,7,39,9,191,1,1,1,4,11,8,4,9,2,3,22,1,1,1,1,4,17,1,7,7,1,11,31,10,2,4,8,2,3,2,1,4,2,16,4,32,2, + 3,19,13,4,9,1,5,2,14,8,1,1,3,6,19,6,5,1,16,6,2,10,8,5,1,2,3,1,5,5,1,11,6,6,1,3,3,2,6,3,8,1,1,4,10,7,5,7,7,5,8,9,2,1,3,4,1,1,3,1,3,3,2,6,16, + 1,4,6,3,1,10,6,1,3,15,2,9,2,10,25,13,9,16,6,2,2,10,11,4,3,9,1,2,6,6,5,4,30,40,1,10,7,12,14,33,6,3,6,7,3,1,3,1,11,14,4,9,5,12,11,49,18,51,31, + 140,31,2,2,1,5,1,8,1,10,1,4,4,3,24,1,10,1,3,6,6,16,3,4,5,2,1,4,2,57,10,6,22,2,22,3,7,22,6,10,11,36,18,16,33,36,2,5,5,1,1,1,4,10,1,4,13,2,7, + 5,2,9,3,4,1,7,43,3,7,3,9,14,7,9,1,11,1,1,3,7,4,18,13,1,14,1,3,6,10,73,2,2,30,6,1,11,18,19,13,22,3,46,42,37,89,7,3,16,34,2,2,3,9,1,7,1,1,1,2, + 2,4,10,7,3,10,3,9,5,28,9,2,6,13,7,3,1,3,10,2,7,2,11,3,6,21,54,85,2,1,4,2,2,1,39,3,21,2,2,5,1,1,1,4,1,1,3,4,15,1,3,2,4,4,2,3,8,2,20,1,8,7,13, + 4,1,26,6,2,9,34,4,21,52,10,4,4,1,5,12,2,11,1,7,2,30,12,44,2,30,1,1,3,6,16,9,17,39,82,2,2,24,7,1,7,3,16,9,14,44,2,1,2,1,2,3,5,2,4,1,6,7,5,3, + 2,6,1,11,5,11,2,1,18,19,8,1,3,24,29,2,1,3,5,2,2,1,13,6,5,1,46,11,3,5,1,1,5,8,2,10,6,12,6,3,7,11,2,4,16,13,2,5,1,1,2,2,5,2,28,5,2,23,10,8,4, + 4,22,39,95,38,8,14,9,5,1,13,5,4,3,13,12,11,1,9,1,27,37,2,5,4,4,63,211,95,2,2,2,1,3,5,2,1,1,2,2,1,1,1,3,2,4,1,2,1,1,5,2,2,1,1,2,3,1,3,1,1,1, + 3,1,4,2,1,3,6,1,1,3,7,15,5,3,2,5,3,9,11,4,2,22,1,6,3,8,7,1,4,28,4,16,3,3,25,4,4,27,27,1,4,1,2,2,7,1,3,5,2,28,8,2,14,1,8,6,16,25,3,3,3,14,3, + 3,1,1,2,1,4,6,3,8,4,1,1,1,2,3,6,10,6,2,3,18,3,2,5,5,4,3,1,5,2,5,4,23,7,6,12,6,4,17,11,9,5,1,1,10,5,12,1,1,11,26,33,7,3,6,1,17,7,1,5,12,1,11, + 2,4,1,8,14,17,23,1,2,1,7,8,16,11,9,6,5,2,6,4,16,2,8,14,1,11,8,9,1,1,1,9,25,4,11,19,7,2,15,2,12,8,52,7,5,19,2,16,4,36,8,1,16,8,24,26,4,6,2,9, + 5,4,36,3,28,12,25,15,37,27,17,12,59,38,5,32,127,1,2,9,17,14,4,1,2,1,1,8,11,50,4,14,2,19,16,4,17,5,4,5,26,12,45,2,23,45,104,30,12,8,3,10,2,2, + 3,3,1,4,20,7,2,9,6,15,2,20,1,3,16,4,11,15,6,134,2,5,59,1,2,2,2,1,9,17,3,26,137,10,211,59,1,2,4,1,4,1,1,1,2,6,2,3,1,1,2,3,2,3,1,3,4,4,2,3,3, + 1,4,3,1,7,2,2,3,1,2,1,3,3,3,2,2,3,2,1,3,14,6,1,3,2,9,6,15,27,9,34,145,1,1,2,1,1,1,1,2,1,1,1,1,2,2,2,3,1,2,1,1,1,2,3,5,8,3,5,2,4,1,3,2,2,2,12, + 4,1,1,1,10,4,5,1,20,4,16,1,15,9,5,12,2,9,2,5,4,2,26,19,7,1,26,4,30,12,15,42,1,6,8,172,1,1,4,2,1,1,11,2,2,4,2,1,2,1,10,8,1,2,1,4,5,1,2,5,1,8, + 4,1,3,4,2,1,6,2,1,3,4,1,2,1,1,1,1,12,5,7,2,4,3,1,1,1,3,3,6,1,2,2,3,3,3,2,1,2,12,14,11,6,6,4,12,2,8,1,7,10,1,35,7,4,13,15,4,3,23,21,28,52,5, + 26,5,6,1,7,10,2,7,53,3,2,1,1,1,2,163,532,1,10,11,1,3,3,4,8,2,8,6,2,2,23,22,4,2,2,4,2,1,3,1,3,3,5,9,8,2,1,2,8,1,10,2,12,21,20,15,105,2,3,1,1, + 3,2,3,1,1,2,5,1,4,15,11,19,1,1,1,1,5,4,5,1,1,2,5,3,5,12,1,2,5,1,11,1,1,15,9,1,4,5,3,26,8,2,1,3,1,1,15,19,2,12,1,2,5,2,7,2,19,2,20,6,26,7,5, + 2,2,7,34,21,13,70,2,128,1,1,2,1,1,2,1,1,3,2,2,2,15,1,4,1,3,4,42,10,6,1,49,85,8,1,2,1,1,4,4,2,3,6,1,5,7,4,3,211,4,1,2,1,2,5,1,2,4,2,2,6,5,6, + 10,3,4,48,100,6,2,16,296,5,27,387,2,2,3,7,16,8,5,38,15,39,21,9,10,3,7,59,13,27,21,47,5,21,6 + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD // Invalid + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00) * 2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesJapanese() +{ + // 2999 ideograms code points for Japanese + // - 2136 Joyo (meaning "for regular use" or "for common use") Kanji code points + // - 863 Jinmeiyo (meaning "for personal name") Kanji code points + // - Sourced from the character information database of the Information-technology Promotion Agency, Japan + // - https://mojikiban.ipa.go.jp/mji/ + // - Available under the terms of the Creative Commons Attribution-ShareAlike 2.1 Japan (CC BY-SA 2.1 JP). + // - https://creativecommons.org/licenses/by-sa/2.1/jp/deed.en + // - https://creativecommons.org/licenses/by-sa/2.1/jp/legalcode + // - You can generate this code by the script at: + // - https://github.com/vaiorabbit/everyday_use_kanji + // - References: + // - List of Joyo Kanji + // - (Official list by the Agency for Cultural Affairs) https://www.bunka.go.jp/kokugo_nihongo/sisaku/joho/joho/kakuki/14/tosin02/index.html + // - (Wikipedia) https://en.wikipedia.org/wiki/List_of_j%C5%8Dy%C5%8D_kanji + // - List of Jinmeiyo Kanji + // - (Official list by the Ministry of Justice) http://www.moj.go.jp/MINJI/minji86.html + // - (Wikipedia) https://en.wikipedia.org/wiki/Jinmeiy%C5%8D_kanji + // - Missing 1 Joyo Kanji: U+20B9F (Kun'yomi: Shikaru, On'yomi: Shitsu,shichi), see https://github.com/ocornut/imgui/pull/3627 for details. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,3,3,2,2,1,5,3,5,7,5,6,1,2,1,7,2,6,3,1,8,1,1,4,1,1,18,2,11,2,6,2,1,2,1,5,1,2,1,3,1,2,1,2,3,3,1,1,2,3,1,1,1,12,7,9,1,4,5,1, + 1,2,1,10,1,1,9,2,2,4,5,6,9,3,1,1,1,1,9,3,18,5,2,2,2,2,1,6,3,7,1,1,1,1,2,2,4,2,1,23,2,10,4,3,5,2,4,10,2,4,13,1,6,1,9,3,1,1,6,6,7,6,3,1,2,11,3, + 2,2,3,2,15,2,2,5,4,3,6,4,1,2,5,2,12,16,6,13,9,13,2,1,1,7,16,4,7,1,19,1,5,1,2,2,7,7,8,2,6,5,4,9,18,7,4,5,9,13,11,8,15,2,1,1,1,2,1,2,2,1,2,2,8, + 2,9,3,3,1,1,4,4,1,1,1,4,9,1,4,3,5,5,2,7,5,3,4,8,2,1,13,2,3,3,1,14,1,1,4,5,1,3,6,1,5,2,1,1,3,3,3,3,1,1,2,7,6,6,7,1,4,7,6,1,1,1,1,1,12,3,3,9,5, + 2,6,1,5,6,1,2,3,18,2,4,14,4,1,3,6,1,1,6,3,5,5,3,2,2,2,2,12,3,1,4,2,3,2,3,11,1,7,4,1,2,1,3,17,1,9,1,24,1,1,4,2,2,4,1,2,7,1,1,1,3,1,2,2,4,15,1, + 1,2,1,1,2,1,5,2,5,20,2,5,9,1,10,8,7,6,1,1,1,1,1,1,6,2,1,2,8,1,1,1,1,5,1,1,3,1,1,1,1,3,1,1,12,4,1,3,1,1,1,1,1,10,3,1,7,5,13,1,2,3,4,6,1,1,30, + 2,9,9,1,15,38,11,3,1,8,24,7,1,9,8,10,2,1,9,31,2,13,6,2,9,4,49,5,2,15,2,1,10,2,1,1,1,2,2,6,15,30,35,3,14,18,8,1,16,10,28,12,19,45,38,1,3,2,3, + 13,2,1,7,3,6,5,3,4,3,1,5,7,8,1,5,3,18,5,3,6,1,21,4,24,9,24,40,3,14,3,21,3,2,1,2,4,2,3,1,15,15,6,5,1,1,3,1,5,6,1,9,7,3,3,2,1,4,3,8,21,5,16,4, + 5,2,10,11,11,3,6,3,2,9,3,6,13,1,2,1,1,1,1,11,12,6,6,1,4,2,6,5,2,1,1,3,3,6,13,3,1,1,5,1,2,3,3,14,2,1,2,2,2,5,1,9,5,1,1,6,12,3,12,3,4,13,2,14, + 2,8,1,17,5,1,16,4,2,2,21,8,9,6,23,20,12,25,19,9,38,8,3,21,40,25,33,13,4,3,1,4,1,2,4,1,2,5,26,2,1,1,2,1,3,6,2,1,1,1,1,1,1,2,3,1,1,1,9,2,3,1,1, + 1,3,6,3,2,1,1,6,6,1,8,2,2,2,1,4,1,2,3,2,7,3,2,4,1,2,1,2,2,1,1,1,1,1,3,1,2,5,4,10,9,4,9,1,1,1,1,1,1,5,3,2,1,6,4,9,6,1,10,2,31,17,8,3,7,5,40,1, + 7,7,1,6,5,2,10,7,8,4,15,39,25,6,28,47,18,10,7,1,3,1,1,2,1,1,1,3,3,3,1,1,1,3,4,2,1,4,1,3,6,10,7,8,6,2,2,1,3,3,2,5,8,7,9,12,2,15,1,1,4,1,2,1,1, + 1,3,2,1,3,3,5,6,2,3,2,10,1,4,2,8,1,1,1,11,6,1,21,4,16,3,1,3,1,4,2,3,6,5,1,3,1,1,3,3,4,6,1,1,10,4,2,7,10,4,7,4,2,9,4,3,1,1,1,4,1,8,3,4,1,3,1, + 6,1,4,2,1,4,7,2,1,8,1,4,5,1,1,2,2,4,6,2,7,1,10,1,1,3,4,11,10,8,21,4,6,1,3,5,2,1,2,28,5,5,2,3,13,1,2,3,1,4,2,1,5,20,3,8,11,1,3,3,3,1,8,10,9,2, + 10,9,2,3,1,1,2,4,1,8,3,6,1,7,8,6,11,1,4,29,8,4,3,1,2,7,13,1,4,1,6,2,6,12,12,2,20,3,2,3,6,4,8,9,2,7,34,5,1,18,6,1,1,4,4,5,7,9,1,2,2,4,3,4,1,7, + 2,2,2,6,2,3,25,5,3,6,1,4,6,7,4,2,1,4,2,13,6,4,4,3,1,5,3,4,4,3,2,1,1,4,1,2,1,1,3,1,11,1,6,3,1,7,3,6,2,8,8,6,9,3,4,11,3,2,10,12,2,5,11,1,6,4,5, + 3,1,8,5,4,6,6,3,5,1,1,3,2,1,2,2,6,17,12,1,10,1,6,12,1,6,6,19,9,6,16,1,13,4,4,15,7,17,6,11,9,15,12,6,7,2,1,2,2,15,9,3,21,4,6,49,18,7,3,2,3,1, + 6,8,2,2,6,2,9,1,3,6,4,4,1,2,16,2,5,2,1,6,2,3,5,3,1,2,5,1,2,1,9,3,1,8,6,4,8,11,3,1,1,1,1,3,1,13,8,4,1,3,2,2,1,4,1,11,1,5,2,1,5,2,5,8,6,1,1,7, + 4,3,8,3,2,7,2,1,5,1,5,2,4,7,6,2,8,5,1,11,4,5,3,6,18,1,2,13,3,3,1,21,1,1,4,1,4,1,1,1,8,1,2,2,7,1,2,4,2,2,9,2,1,1,1,4,3,6,3,12,5,1,1,1,5,6,3,2, + 4,8,2,2,4,2,7,1,8,9,5,2,3,2,1,3,2,13,7,14,6,5,1,1,2,1,4,2,23,2,1,1,6,3,1,4,1,15,3,1,7,3,9,14,1,3,1,4,1,1,5,8,1,3,8,3,8,15,11,4,14,4,4,2,5,5, + 1,7,1,6,14,7,7,8,5,15,4,8,6,5,6,2,1,13,1,20,15,11,9,2,5,6,2,11,2,6,2,5,1,5,8,4,13,19,25,4,1,1,11,1,34,2,5,9,14,6,2,2,6,1,1,14,1,3,14,13,1,6, + 12,21,14,14,6,32,17,8,32,9,28,1,2,4,11,8,3,1,14,2,5,15,1,1,1,1,3,6,4,1,3,4,11,3,1,1,11,30,1,5,1,4,1,5,8,1,1,3,2,4,3,17,35,2,6,12,17,3,1,6,2, + 1,1,12,2,7,3,3,2,1,16,2,8,3,6,5,4,7,3,3,8,1,9,8,5,1,2,1,3,2,8,1,2,9,12,1,1,2,3,8,3,24,12,4,3,7,5,8,3,3,3,3,3,3,1,23,10,3,1,2,2,6,3,1,16,1,16, + 22,3,10,4,11,6,9,7,7,3,6,2,2,2,4,10,2,1,1,2,8,7,1,6,4,1,3,3,3,5,10,12,12,2,3,12,8,15,1,1,16,6,6,1,5,9,11,4,11,4,2,6,12,1,17,5,13,1,4,9,5,1,11, + 2,1,8,1,5,7,28,8,3,5,10,2,17,3,38,22,1,2,18,12,10,4,38,18,1,4,44,19,4,1,8,4,1,12,1,4,31,12,1,14,7,75,7,5,10,6,6,13,3,2,11,11,3,2,5,28,15,6,18, + 18,5,6,4,3,16,1,7,18,7,36,3,5,3,1,7,1,9,1,10,7,2,4,2,6,2,9,7,4,3,32,12,3,7,10,2,23,16,3,1,12,3,31,4,11,1,3,8,9,5,1,30,15,6,12,3,2,2,11,19,9, + 14,2,6,2,3,19,13,17,5,3,3,25,3,14,1,1,1,36,1,3,2,19,3,13,36,9,13,31,6,4,16,34,2,5,4,2,3,3,5,1,1,1,4,3,1,17,3,2,3,5,3,1,3,2,3,5,6,3,12,11,1,3, + 1,2,26,7,12,7,2,14,3,3,7,7,11,25,25,28,16,4,36,1,2,1,6,2,1,9,3,27,17,4,3,4,13,4,1,3,2,2,1,10,4,2,4,6,3,8,2,1,18,1,1,24,2,2,4,33,2,3,63,7,1,6, + 40,7,3,4,4,2,4,15,18,1,16,1,1,11,2,41,14,1,3,18,13,3,2,4,16,2,17,7,15,24,7,18,13,44,2,2,3,6,1,1,7,5,1,7,1,4,3,3,5,10,8,2,3,1,8,1,1,27,4,2,1, + 12,1,2,1,10,6,1,6,7,5,2,3,7,11,5,11,3,6,6,2,3,15,4,9,1,1,2,1,2,11,2,8,12,8,5,4,2,3,1,5,2,2,1,14,1,12,11,4,1,11,17,17,4,3,2,5,5,7,3,1,5,9,9,8, + 2,5,6,6,13,13,2,1,2,6,1,2,2,49,4,9,1,2,10,16,7,8,4,3,2,23,4,58,3,29,1,14,19,19,11,11,2,7,5,1,3,4,6,2,18,5,12,12,17,17,3,3,2,4,1,6,2,3,4,3,1, + 1,1,1,5,1,1,9,1,3,1,3,6,1,8,1,1,2,6,4,14,3,1,4,11,4,1,3,32,1,2,4,13,4,1,2,4,2,1,3,1,11,1,4,2,1,4,4,6,3,5,1,6,5,7,6,3,23,3,5,3,5,3,3,13,3,9,10, + 1,12,10,2,3,18,13,7,160,52,4,2,2,3,2,14,5,4,12,4,6,4,1,20,4,11,6,2,12,27,1,4,1,2,2,7,4,5,2,28,3,7,25,8,3,19,3,6,10,2,2,1,10,2,5,4,1,3,4,1,5, + 3,2,6,9,3,6,2,16,3,3,16,4,5,5,3,2,1,2,16,15,8,2,6,21,2,4,1,22,5,8,1,1,21,11,2,1,11,11,19,13,12,4,2,3,2,3,6,1,8,11,1,4,2,9,5,2,1,11,2,9,1,1,2, + 14,31,9,3,4,21,14,4,8,1,7,2,2,2,5,1,4,20,3,3,4,10,1,11,9,8,2,1,4,5,14,12,14,2,17,9,6,31,4,14,1,20,13,26,5,2,7,3,6,13,2,4,2,19,6,2,2,18,9,3,5, + 12,12,14,4,6,2,3,6,9,5,22,4,5,25,6,4,8,5,2,6,27,2,35,2,16,3,7,8,8,6,6,5,9,17,2,20,6,19,2,13,3,1,1,1,4,17,12,2,14,7,1,4,18,12,38,33,2,10,1,1, + 2,13,14,17,11,50,6,33,20,26,74,16,23,45,50,13,38,33,6,6,7,4,4,2,1,3,2,5,8,7,8,9,3,11,21,9,13,1,3,10,6,7,1,2,2,18,5,5,1,9,9,2,68,9,19,13,2,5, + 1,4,4,7,4,13,3,9,10,21,17,3,26,2,1,5,2,4,5,4,1,7,4,7,3,4,2,1,6,1,1,20,4,1,9,2,2,1,3,3,2,3,2,1,1,1,20,2,3,1,6,2,3,6,2,4,8,1,3,2,10,3,5,3,4,4, + 3,4,16,1,6,1,10,2,4,2,1,1,2,10,11,2,2,3,1,24,31,4,10,10,2,5,12,16,164,15,4,16,7,9,15,19,17,1,2,1,1,5,1,1,1,1,1,3,1,4,3,1,3,1,3,1,2,1,1,3,3,7, + 2,8,1,2,2,2,1,3,4,3,7,8,12,92,2,10,3,1,3,14,5,25,16,42,4,7,7,4,2,21,5,27,26,27,21,25,30,31,2,1,5,13,3,22,5,6,6,11,9,12,1,5,9,7,5,5,22,60,3,5, + 13,1,1,8,1,1,3,3,2,1,9,3,3,18,4,1,2,3,7,6,3,1,2,3,9,1,3,1,3,2,1,3,1,1,1,2,1,11,3,1,6,9,1,3,2,3,1,2,1,5,1,1,4,3,4,1,2,2,4,4,1,7,2,1,2,2,3,5,13, + 18,3,4,14,9,9,4,16,3,7,5,8,2,6,48,28,3,1,1,4,2,14,8,2,9,2,1,15,2,4,3,2,10,16,12,8,7,1,1,3,1,1,1,2,7,4,1,6,4,38,39,16,23,7,15,15,3,2,12,7,21, + 37,27,6,5,4,8,2,10,8,8,6,5,1,2,1,3,24,1,16,17,9,23,10,17,6,1,51,55,44,13,294,9,3,6,2,4,2,2,15,1,1,1,13,21,17,68,14,8,9,4,1,4,9,3,11,7,1,1,1, + 5,6,3,2,1,1,1,2,3,8,1,2,2,4,1,5,5,2,1,4,3,7,13,4,1,4,1,3,1,1,1,5,5,10,1,6,1,5,2,1,5,2,4,1,4,5,7,3,18,2,9,11,32,4,3,3,2,4,7,11,16,9,11,8,13,38, + 32,8,4,2,1,1,2,1,2,4,4,1,1,1,4,1,21,3,11,1,16,1,1,6,1,3,2,4,9,8,57,7,44,1,3,3,13,3,10,1,1,7,5,2,7,21,47,63,3,15,4,7,1,16,1,1,2,8,2,3,42,15,4, + 1,29,7,22,10,3,78,16,12,20,18,4,67,11,5,1,3,15,6,21,31,32,27,18,13,71,35,5,142,4,10,1,2,50,19,33,16,35,37,16,19,27,7,1,133,19,1,4,8,7,20,1,4, + 4,1,10,3,1,6,1,2,51,5,40,15,24,43,22928,11,1,13,154,70,3,1,1,7,4,10,1,2,1,1,2,1,2,1,2,2,1,1,2,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1, + 3,2,1,1,1,1,2,1,1, + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD // Invalid + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00)*2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0400, 0x052F, // Cyrillic + Cyrillic Supplement + 0x2DE0, 0x2DFF, // Cyrillic Extended-A + 0xA640, 0xA69F, // Cyrillic Extended-B + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesThai() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x2010, 0x205E, // Punctuations + 0x0E00, 0x0E7F, // Thai + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesVietnamese() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x0102, 0x0103, + 0x0110, 0x0111, + 0x0128, 0x0129, + 0x0168, 0x0169, + 0x01A0, 0x01A1, + 0x01AF, 0x01B0, + 0x1EA0, 0x1EF9, + 0, + }; + return &ranges[0]; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontGlyphRangesBuilder +//----------------------------------------------------------------------------- + +void ImFontGlyphRangesBuilder::AddText(const char* text, const char* text_end) +{ + while (text_end ? (text < text_end) : *text) + { + unsigned int c = 0; + int c_len = ImTextCharFromUtf8(&c, text, text_end); + text += c_len; + if (c_len == 0) + break; + AddChar((ImWchar)c); + } +} + +void ImFontGlyphRangesBuilder::AddRanges(const ImWchar* ranges) +{ + for (; ranges[0]; ranges += 2) + for (unsigned int c = ranges[0]; c <= ranges[1] && c <= IM_UNICODE_CODEPOINT_MAX; c++) //-V560 + AddChar((ImWchar)c); +} + +void ImFontGlyphRangesBuilder::BuildRanges(ImVector* out_ranges) +{ + const int max_codepoint = IM_UNICODE_CODEPOINT_MAX; + for (int n = 0; n <= max_codepoint; n++) + if (GetBit(n)) + { + out_ranges->push_back((ImWchar)n); + while (n < max_codepoint && GetBit(n + 1)) + n++; + out_ranges->push_back((ImWchar)n); + } + out_ranges->push_back(0); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFont +//----------------------------------------------------------------------------- + +ImFont::ImFont() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + FallbackChar = (ImWchar)-1; + EllipsisChar = (ImWchar)-1; + DotChar = (ImWchar)-1; + FallbackGlyph = NULL; + ContainerAtlas = NULL; + ConfigData = NULL; + ConfigDataCount = 0; + DirtyLookupTables = false; + Scale = 1.0f; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); +} + +ImFont::~ImFont() +{ + ClearOutputData(); +} + +void ImFont::ClearOutputData() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + Glyphs.clear(); + IndexAdvanceX.clear(); + IndexLookup.clear(); + FallbackGlyph = NULL; + ContainerAtlas = NULL; + DirtyLookupTables = true; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; +} + +static ImWchar FindFirstExistingGlyph(ImFont* font, const ImWchar* candidate_chars, int candidate_chars_count) +{ + for (int n = 0; n < candidate_chars_count; n++) + if (font->FindGlyphNoFallback(candidate_chars[n]) != NULL) + return candidate_chars[n]; + return (ImWchar)-1; +} + +void ImFont::BuildLookupTable() +{ + int max_codepoint = 0; + for (int i = 0; i != Glyphs.Size; i++) + max_codepoint = ImMax(max_codepoint, (int)Glyphs[i].Codepoint); + + // Build lookup table + IM_ASSERT(Glyphs.Size < 0xFFFF); // -1 is reserved + IndexAdvanceX.clear(); + IndexLookup.clear(); + DirtyLookupTables = false; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); + GrowIndex(max_codepoint + 1); + for (int i = 0; i < Glyphs.Size; i++) + { + int codepoint = (int)Glyphs[i].Codepoint; + IndexAdvanceX[codepoint] = Glyphs[i].AdvanceX; + IndexLookup[codepoint] = (ImWchar)i; + + // Mark 4K page as used + const int page_n = codepoint / 4096; + Used4kPagesMap[page_n >> 3] |= 1 << (page_n & 7); + } + + // Create a glyph to handle TAB + // FIXME: Needs proper TAB handling but it needs to be contextualized (or we could arbitrary say that each string starts at "column 0" ?) + if (FindGlyph((ImWchar)' ')) + { + if (Glyphs.back().Codepoint != '\t') // So we can call this function multiple times (FIXME: Flaky) + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& tab_glyph = Glyphs.back(); + tab_glyph = *FindGlyph((ImWchar)' '); + tab_glyph.Codepoint = '\t'; + tab_glyph.AdvanceX *= IM_TABSIZE; + IndexAdvanceX[(int)tab_glyph.Codepoint] = (float)tab_glyph.AdvanceX; + IndexLookup[(int)tab_glyph.Codepoint] = (ImWchar)(Glyphs.Size - 1); + } + + // Mark special glyphs as not visible (note that AddGlyph already mark as non-visible glyphs with zero-size polygons) + SetGlyphVisible((ImWchar)' ', false); + SetGlyphVisible((ImWchar)'\t', false); + + // Ellipsis character is required for rendering elided text. We prefer using U+2026 (horizontal ellipsis). + // However some old fonts may contain ellipsis at U+0085. Here we auto-detect most suitable ellipsis character. + // FIXME: Note that 0x2026 is rarely included in our font ranges. Because of this we are more likely to use three individual dots. + const ImWchar ellipsis_chars[] = { (ImWchar)0x2026, (ImWchar)0x0085 }; + const ImWchar dots_chars[] = { (ImWchar)'.', (ImWchar)0xFF0E }; + if (EllipsisChar == (ImWchar)-1) + EllipsisChar = FindFirstExistingGlyph(this, ellipsis_chars, IM_ARRAYSIZE(ellipsis_chars)); + if (DotChar == (ImWchar)-1) + DotChar = FindFirstExistingGlyph(this, dots_chars, IM_ARRAYSIZE(dots_chars)); + + // Setup fallback character + const ImWchar fallback_chars[] = { (ImWchar)IM_UNICODE_CODEPOINT_INVALID, (ImWchar)'?', (ImWchar)' ' }; + FallbackGlyph = FindGlyphNoFallback(FallbackChar); + if (FallbackGlyph == NULL) + { + FallbackChar = FindFirstExistingGlyph(this, fallback_chars, IM_ARRAYSIZE(fallback_chars)); + FallbackGlyph = FindGlyphNoFallback(FallbackChar); + if (FallbackGlyph == NULL) + { + FallbackGlyph = &Glyphs.back(); + FallbackChar = (ImWchar)FallbackGlyph->Codepoint; + } + } + + FallbackAdvanceX = FallbackGlyph->AdvanceX; + for (int i = 0; i < max_codepoint + 1; i++) + if (IndexAdvanceX[i] < 0.0f) + IndexAdvanceX[i] = FallbackAdvanceX; +} + +// API is designed this way to avoid exposing the 4K page size +// e.g. use with IsGlyphRangeUnused(0, 255) +bool ImFont::IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last) +{ + unsigned int page_begin = (c_begin / 4096); + unsigned int page_last = (c_last / 4096); + for (unsigned int page_n = page_begin; page_n <= page_last; page_n++) + if ((page_n >> 3) < sizeof(Used4kPagesMap)) + if (Used4kPagesMap[page_n >> 3] & (1 << (page_n & 7))) + return false; + return true; +} + +void ImFont::SetGlyphVisible(ImWchar c, bool visible) +{ + if (ImFontGlyph* glyph = (ImFontGlyph*)(void*)FindGlyph((ImWchar)c)) + glyph->Visible = visible ? 1 : 0; +} + +void ImFont::GrowIndex(int new_size) +{ + IM_ASSERT(IndexAdvanceX.Size == IndexLookup.Size); + if (new_size <= IndexLookup.Size) + return; + IndexAdvanceX.resize(new_size, -1.0f); + IndexLookup.resize(new_size, (ImWchar)-1); +} + +// x0/y0/x1/y1 are offset from the character upper-left layout position, in pixels. Therefore x0/y0 are often fairly close to zero. +// Not to be mistaken with texture coordinates, which are held by u0/v0/u1/v1 in normalized format (0.0..1.0 on each texture axis). +// 'cfg' is not necessarily == 'this->ConfigData' because multiple source fonts+configs can be used to build one target font. +void ImFont::AddGlyph(const ImFontConfig* cfg, ImWchar codepoint, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x) +{ + if (cfg != NULL) + { + // Clamp & recenter if needed + const float advance_x_original = advance_x; + advance_x = ImClamp(advance_x, cfg->GlyphMinAdvanceX, cfg->GlyphMaxAdvanceX); + if (advance_x != advance_x_original) + { + float char_off_x = cfg->PixelSnapH ? ImFloor((advance_x - advance_x_original) * 0.5f) : (advance_x - advance_x_original) * 0.5f; + x0 += char_off_x; + x1 += char_off_x; + } + + // Snap to pixel + if (cfg->PixelSnapH) + advance_x = IM_ROUND(advance_x); + + // Bake spacing + advance_x += cfg->GlyphExtraSpacing.x; + } + + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& glyph = Glyphs.back(); + glyph.Codepoint = (unsigned int)codepoint; + glyph.Visible = (x0 != x1) && (y0 != y1); + glyph.Colored = false; + glyph.X0 = x0; + glyph.Y0 = y0; + glyph.X1 = x1; + glyph.Y1 = y1; + glyph.U0 = u0; + glyph.V0 = v0; + glyph.U1 = u1; + glyph.V1 = v1; + glyph.AdvanceX = advance_x; + + // Compute rough surface usage metrics (+1 to account for average padding, +0.99 to round) + // We use (U1-U0)*TexWidth instead of X1-X0 to account for oversampling. + float pad = ContainerAtlas->TexGlyphPadding + 0.99f; + DirtyLookupTables = true; + MetricsTotalSurface += (int)((glyph.U1 - glyph.U0) * ContainerAtlas->TexWidth + pad) * (int)((glyph.V1 - glyph.V0) * ContainerAtlas->TexHeight + pad); +} + +void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst) +{ + IM_ASSERT(IndexLookup.Size > 0); // Currently this can only be called AFTER the font has been built, aka after calling ImFontAtlas::GetTexDataAs*() function. + unsigned int index_size = (unsigned int)IndexLookup.Size; + + if (dst < index_size && IndexLookup.Data[dst] == (ImWchar)-1 && !overwrite_dst) // 'dst' already exists + return; + if (src >= index_size && dst >= index_size) // both 'dst' and 'src' don't exist -> no-op + return; + + GrowIndex(dst + 1); + IndexLookup[dst] = (src < index_size) ? IndexLookup.Data[src] : (ImWchar)-1; + IndexAdvanceX[dst] = (src < index_size) ? IndexAdvanceX.Data[src] : 1.0f; +} + +const ImFontGlyph* ImFont::FindGlyph(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return FallbackGlyph; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return FallbackGlyph; + return &Glyphs.Data[i]; +} + +const ImFontGlyph* ImFont::FindGlyphNoFallback(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return NULL; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return NULL; + return &Glyphs.Data[i]; +} + +// Wrapping skips upcoming blanks +static inline const char* CalcWordWrapNextLineStartA(const char* text, const char* text_end) +{ + while (text < text_end && ImCharIsBlankA(*text)) + text++; + if (*text == '\n') + text++; + return text; +} + +// Simple word-wrapping for English, not full-featured. Please submit failing cases! +// This will return the next location to wrap from. If no wrapping if necessary, this will fast-forward to e.g. text_end. +// FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) +const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const +{ + // For references, possible wrap point marked with ^ + // "aaa bbb, ccc,ddd. eee fff. ggg!" + // ^ ^ ^ ^ ^__ ^ ^ + + // List of hardcoded separators: .,;!?'" + + // Skip extra blanks after a line returns (that includes not counting them in width computation) + // e.g. "Hello world" --> "Hello" "World" + + // Cut words that cannot possibly fit within one line. + // e.g.: "The tropical fish" with ~5 characters worth of width --> "The tr" "opical" "fish" + float line_width = 0.0f; + float word_width = 0.0f; + float blank_width = 0.0f; + wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters + + const char* word_end = text; + const char* prev_word_end = NULL; + bool inside_word = true; + + const char* s = text; + while (s < text_end) + { + unsigned int c = (unsigned int)*s; + const char* next_s; + if (c < 0x80) + next_s = s + 1; + else + next_s = s + ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) + break; + + if (c < 32) + { + if (c == '\n') + { + line_width = word_width = blank_width = 0.0f; + inside_word = true; + s = next_s; + continue; + } + if (c == '\r') + { + s = next_s; + continue; + } + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX); + if (ImCharIsBlankW(c)) + { + if (inside_word) + { + line_width += blank_width; + blank_width = 0.0f; + word_end = s; + } + blank_width += char_width; + inside_word = false; + } + else + { + word_width += char_width; + if (inside_word) + { + word_end = next_s; + } + else + { + prev_word_end = word_end; + line_width += word_width + blank_width; + word_width = blank_width = 0.0f; + } + + // Allow wrapping after punctuation. + inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"'); + } + + // We ignore blank width at the end of the line (they can be skipped) + if (line_width + word_width > wrap_width) + { + // Words that cannot possibly fit within an entire line will be cut anywhere. + if (word_width < wrap_width) + s = prev_word_end ? prev_word_end : word_end; + break; + } + + s = next_s; + } + + // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. + // +1 may not be a character start point in UTF-8 but it's ok because caller loops use (text >= word_wrap_eol). + if (s == text && text < text_end) + return s + 1; + return s; +} + +ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // FIXME-OPT: Need to avoid this. + + const float line_height = size; + const float scale = size / FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const bool word_wrap_enabled = (wrap_width > 0.0f); + const char* word_wrap_eol = NULL; + + const char* s = text_begin; + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); + + if (s >= word_wrap_eol) + { + if (text_size.x < line_width) + text_size.x = line_width; + text_size.y += line_height; + line_width = 0.0f; + word_wrap_eol = NULL; + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks + continue; + } + } + + // Decode and advance source + const char* prev_s = s; + unsigned int c = (unsigned int)*s; + if (c < 0x80) + { + s += 1; + } + else + { + s += ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) // Malformed UTF-8? + break; + } + + if (c < 32) + { + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + continue; + } + if (c == '\r') + continue; + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX) * scale; + if (line_width + char_width >= max_width) + { + s = prev_s; + break; + } + + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (line_width > 0 || text_size.y == 0.0f) + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. +void ImFont::RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const +{ + const ImFontGlyph* glyph = FindGlyph(c); + if (!glyph || !glyph->Visible) + return; + if (glyph->Colored) + col |= ~IM_COL32_A_MASK; + float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f; + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); + draw_list->PrimReserve(6, 4); + draw_list->PrimRectUV(ImVec2(x + glyph->X0 * scale, y + glyph->Y0 * scale), ImVec2(x + glyph->X1 * scale, y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); +} + +// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. +void ImFont::RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // ImGui:: functions generally already provides a valid text_end, so this is merely to handle direct calls. + + // Align to be pixel perfect + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); + if (y > clip_rect.w) + return; + + const float start_x = x; + const float scale = size / FontSize; + const float line_height = FontSize * scale; + const bool word_wrap_enabled = (wrap_width > 0.0f); + + // Fast-forward to first visible line + const char* s = text_begin; + if (y + line_height < clip_rect.y) + while (y + line_height < clip_rect.y && s < text_end) + { + const char* line_end = (const char*)memchr(s, '\n', text_end - s); + if (word_wrap_enabled) + { + // FIXME-OPT: This is not optimal as do first do a search for \n before calling CalcWordWrapPositionA(). + // If the specs for CalcWordWrapPositionA() were reworked to optionally return on \n we could combine both. + // However it is still better than nothing performing the fast-forward! + s = CalcWordWrapPositionA(scale, s, line_end, wrap_width); + s = CalcWordWrapNextLineStartA(s, text_end); + } + else + { + s = line_end ? line_end + 1 : text_end; + } + y += line_height; + } + + // For large text, scan for the last visible line in order to avoid over-reserving in the call to PrimReserve() + // Note that very large horizontal line will still be affected by the issue (e.g. a one megabyte string buffer without a newline will likely crash atm) + if (text_end - s > 10000 && !word_wrap_enabled) + { + const char* s_end = s; + float y_end = y; + while (y_end < clip_rect.w && s_end < text_end) + { + s_end = (const char*)memchr(s_end, '\n', text_end - s_end); + s_end = s_end ? s_end + 1 : text_end; + y_end += line_height; + } + text_end = s_end; + } + if (s == text_end) + return; + + // Reserve vertices for remaining worse case (over-reserving is useful and easily amortized) + const int vtx_count_max = (int)(text_end - s) * 4; + const int idx_count_max = (int)(text_end - s) * 6; + const int idx_expected_size = draw_list->IdxBuffer.Size + idx_count_max; + draw_list->PrimReserve(idx_count_max, vtx_count_max); + + ImDrawVert* vtx_write = draw_list->_VtxWritePtr; + ImDrawIdx* idx_write = draw_list->_IdxWritePtr; + unsigned int vtx_current_idx = draw_list->_VtxCurrentIdx; + + const ImU32 col_untinted = col | ~IM_COL32_A_MASK; + const char* word_wrap_eol = NULL; + + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - start_x)); + + if (s >= word_wrap_eol) + { + x = start_x; + y += line_height; + word_wrap_eol = NULL; + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks + continue; + } + } + + // Decode and advance source + unsigned int c = (unsigned int)*s; + if (c < 0x80) + { + s += 1; + } + else + { + s += ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) // Malformed UTF-8? + break; + } + + if (c < 32) + { + if (c == '\n') + { + x = start_x; + y += line_height; + if (y > clip_rect.w) + break; // break out of main loop + continue; + } + if (c == '\r') + continue; + } + + const ImFontGlyph* glyph = FindGlyph((ImWchar)c); + if (glyph == NULL) + continue; + + float char_width = glyph->AdvanceX * scale; + if (glyph->Visible) + { + // We don't do a second finer clipping test on the Y axis as we've already skipped anything before clip_rect.y and exit once we pass clip_rect.w + float x1 = x + glyph->X0 * scale; + float x2 = x + glyph->X1 * scale; + float y1 = y + glyph->Y0 * scale; + float y2 = y + glyph->Y1 * scale; + if (x1 <= clip_rect.z && x2 >= clip_rect.x) + { + // Render a character + float u1 = glyph->U0; + float v1 = glyph->V0; + float u2 = glyph->U1; + float v2 = glyph->V1; + + // CPU side clipping used to fit text in their frame when the frame is too small. Only does clipping for axis aligned quads. + if (cpu_fine_clip) + { + if (x1 < clip_rect.x) + { + u1 = u1 + (1.0f - (x2 - clip_rect.x) / (x2 - x1)) * (u2 - u1); + x1 = clip_rect.x; + } + if (y1 < clip_rect.y) + { + v1 = v1 + (1.0f - (y2 - clip_rect.y) / (y2 - y1)) * (v2 - v1); + y1 = clip_rect.y; + } + if (x2 > clip_rect.z) + { + u2 = u1 + ((clip_rect.z - x1) / (x2 - x1)) * (u2 - u1); + x2 = clip_rect.z; + } + if (y2 > clip_rect.w) + { + v2 = v1 + ((clip_rect.w - y1) / (y2 - y1)) * (v2 - v1); + y2 = clip_rect.w; + } + if (y1 >= y2) + { + x += char_width; + continue; + } + } + + // Support for untinted glyphs + ImU32 glyph_col = glyph->Colored ? col_untinted : col; + + // We are NOT calling PrimRectUV() here because non-inlined causes too much overhead in a debug builds. Inlined here: + { + idx_write[0] = (ImDrawIdx)(vtx_current_idx); idx_write[1] = (ImDrawIdx)(vtx_current_idx+1); idx_write[2] = (ImDrawIdx)(vtx_current_idx+2); + idx_write[3] = (ImDrawIdx)(vtx_current_idx); idx_write[4] = (ImDrawIdx)(vtx_current_idx+2); idx_write[5] = (ImDrawIdx)(vtx_current_idx+3); + vtx_write[0].pos.x = x1; vtx_write[0].pos.y = y1; vtx_write[0].col = glyph_col; vtx_write[0].uv.x = u1; vtx_write[0].uv.y = v1; + vtx_write[1].pos.x = x2; vtx_write[1].pos.y = y1; vtx_write[1].col = glyph_col; vtx_write[1].uv.x = u2; vtx_write[1].uv.y = v1; + vtx_write[2].pos.x = x2; vtx_write[2].pos.y = y2; vtx_write[2].col = glyph_col; vtx_write[2].uv.x = u2; vtx_write[2].uv.y = v2; + vtx_write[3].pos.x = x1; vtx_write[3].pos.y = y2; vtx_write[3].col = glyph_col; vtx_write[3].uv.x = u1; vtx_write[3].uv.y = v2; + vtx_write += 4; + vtx_current_idx += 4; + idx_write += 6; + } + } + } + x += char_width; + } + + // Give back unused vertices (clipped ones, blanks) ~ this is essentially a PrimUnreserve() action. + draw_list->VtxBuffer.Size = (int)(vtx_write - draw_list->VtxBuffer.Data); // Same as calling shrink() + draw_list->IdxBuffer.Size = (int)(idx_write - draw_list->IdxBuffer.Data); + draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ElemCount -= (idx_expected_size - draw_list->IdxBuffer.Size); + draw_list->_VtxWritePtr = vtx_write; + draw_list->_IdxWritePtr = idx_write; + draw_list->_VtxCurrentIdx = vtx_current_idx; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGui Internal Render Helpers +//----------------------------------------------------------------------------- +// Vaguely redesigned to stop accessing ImGui global state: +// - RenderArrow() +// - RenderBullet() +// - RenderCheckMark() +// - RenderArrowPointingAt() +// - RenderRectFilledRangeH() +// - RenderRectFilledWithHole() +//----------------------------------------------------------------------------- +// Function in need of a redesign (legacy mess) +// - RenderColorRectWithAlphaCheckerboard() +//----------------------------------------------------------------------------- + +// Render an arrow aimed to be aligned with text (p_min is a position in the same space text would be positioned). To e.g. denote expanded/collapsed state +void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale) +{ + const float h = draw_list->_Data->FontSize * 1.00f; + float r = h * 0.40f * scale; + ImVec2 center = pos + ImVec2(h * 0.50f, h * 0.50f * scale); + + ImVec2 a, b, c; + switch (dir) + { + case ImGuiDir_Up: + case ImGuiDir_Down: + if (dir == ImGuiDir_Up) r = -r; + a = ImVec2(+0.000f, +0.750f) * r; + b = ImVec2(-0.866f, -0.750f) * r; + c = ImVec2(+0.866f, -0.750f) * r; + break; + case ImGuiDir_Left: + case ImGuiDir_Right: + if (dir == ImGuiDir_Left) r = -r; + a = ImVec2(+0.750f, +0.000f) * r; + b = ImVec2(-0.750f, +0.866f) * r; + c = ImVec2(-0.750f, -0.866f) * r; + break; + case ImGuiDir_None: + case ImGuiDir_COUNT: + IM_ASSERT(0); + break; + } + draw_list->AddTriangleFilled(center + a, center + b, center + c, col); +} + +void ImGui::RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col) +{ + draw_list->AddCircleFilled(pos, draw_list->_Data->FontSize * 0.20f, col, 8); +} + +void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz) +{ + float thickness = ImMax(sz / 5.0f, 1.0f); + sz -= thickness * 0.5f; + pos += ImVec2(thickness * 0.25f, thickness * 0.25f); + + float third = sz / 3.0f; + float bx = pos.x + third; + float by = pos.y + sz - third * 0.5f; + draw_list->PathLineTo(ImVec2(bx - third, by - third)); + draw_list->PathLineTo(ImVec2(bx, by)); + draw_list->PathLineTo(ImVec2(bx + third * 2.0f, by - third * 2.0f)); + draw_list->PathStroke(col, 0, thickness); +} + +// Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side. +void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) +{ + switch (direction) + { + case ImGuiDir_Left: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Right: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_Up: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Down: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_None: case ImGuiDir_COUNT: break; // Fix warnings + } +} + +static inline float ImAcos01(float x) +{ + if (x <= 0.0f) return IM_PI * 0.5f; + if (x >= 1.0f) return 0.0f; + return ImAcos(x); + //return (-0.69813170079773212f * x * x - 0.87266462599716477f) * x + 1.5707963267948966f; // Cheap approximation, may be enough for what we do. +} + +// FIXME: Cleanup and move code to ImDrawList. +void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding) +{ + if (x_end_norm == x_start_norm) + return; + if (x_start_norm > x_end_norm) + ImSwap(x_start_norm, x_end_norm); + + ImVec2 p0 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_start_norm), rect.Min.y); + ImVec2 p1 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_end_norm), rect.Max.y); + if (rounding == 0.0f) + { + draw_list->AddRectFilled(p0, p1, col, 0.0f); + return; + } + + rounding = ImClamp(ImMin((rect.Max.x - rect.Min.x) * 0.5f, (rect.Max.y - rect.Min.y) * 0.5f) - 1.0f, 0.0f, rounding); + const float inv_rounding = 1.0f / rounding; + const float arc0_b = ImAcos01(1.0f - (p0.x - rect.Min.x) * inv_rounding); + const float arc0_e = ImAcos01(1.0f - (p1.x - rect.Min.x) * inv_rounding); + const float half_pi = IM_PI * 0.5f; // We will == compare to this because we know this is the exact value ImAcos01 can return. + const float x0 = ImMax(p0.x, rect.Min.x + rounding); + if (arc0_b == arc0_e) + { + draw_list->PathLineTo(ImVec2(x0, p1.y)); + draw_list->PathLineTo(ImVec2(x0, p0.y)); + } + else if (arc0_b == 0.0f && arc0_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x0, p1.y - rounding), rounding, 3, 6); // BL + draw_list->PathArcToFast(ImVec2(x0, p0.y + rounding), rounding, 6, 9); // TR + } + else + { + draw_list->PathArcTo(ImVec2(x0, p1.y - rounding), rounding, IM_PI - arc0_e, IM_PI - arc0_b, 3); // BL + draw_list->PathArcTo(ImVec2(x0, p0.y + rounding), rounding, IM_PI + arc0_b, IM_PI + arc0_e, 3); // TR + } + if (p1.x > rect.Min.x + rounding) + { + const float arc1_b = ImAcos01(1.0f - (rect.Max.x - p1.x) * inv_rounding); + const float arc1_e = ImAcos01(1.0f - (rect.Max.x - p0.x) * inv_rounding); + const float x1 = ImMin(p1.x, rect.Max.x - rounding); + if (arc1_b == arc1_e) + { + draw_list->PathLineTo(ImVec2(x1, p0.y)); + draw_list->PathLineTo(ImVec2(x1, p1.y)); + } + else if (arc1_b == 0.0f && arc1_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x1, p0.y + rounding), rounding, 9, 12); // TR + draw_list->PathArcToFast(ImVec2(x1, p1.y - rounding), rounding, 0, 3); // BR + } + else + { + draw_list->PathArcTo(ImVec2(x1, p0.y + rounding), rounding, -arc1_e, -arc1_b, 3); // TR + draw_list->PathArcTo(ImVec2(x1, p1.y - rounding), rounding, +arc1_b, +arc1_e, 3); // BR + } + } + draw_list->PathFillConvex(col); +} + +void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding) +{ + const bool fill_L = (inner.Min.x > outer.Min.x); + const bool fill_R = (inner.Max.x < outer.Max.x); + const bool fill_U = (inner.Min.y > outer.Min.y); + const bool fill_D = (inner.Max.y < outer.Max.y); + if (fill_L) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Min.y), ImVec2(inner.Min.x, inner.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_U ? 0 : ImDrawFlags_RoundCornersTopLeft) | (fill_D ? 0 : ImDrawFlags_RoundCornersBottomLeft)); + if (fill_R) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Min.y), ImVec2(outer.Max.x, inner.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_U ? 0 : ImDrawFlags_RoundCornersTopRight) | (fill_D ? 0 : ImDrawFlags_RoundCornersBottomRight)); + if (fill_U) draw_list->AddRectFilled(ImVec2(inner.Min.x, outer.Min.y), ImVec2(inner.Max.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_L ? 0 : ImDrawFlags_RoundCornersTopLeft) | (fill_R ? 0 : ImDrawFlags_RoundCornersTopRight)); + if (fill_D) draw_list->AddRectFilled(ImVec2(inner.Min.x, inner.Max.y), ImVec2(inner.Max.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_L ? 0 : ImDrawFlags_RoundCornersBottomLeft) | (fill_R ? 0 : ImDrawFlags_RoundCornersBottomRight)); + if (fill_L && fill_U) draw_list->AddRectFilled(ImVec2(outer.Min.x, outer.Min.y), ImVec2(inner.Min.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersTopLeft); + if (fill_R && fill_U) draw_list->AddRectFilled(ImVec2(inner.Max.x, outer.Min.y), ImVec2(outer.Max.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersTopRight); + if (fill_L && fill_D) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Max.y), ImVec2(inner.Min.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersBottomLeft); + if (fill_R && fill_D) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Max.y), ImVec2(outer.Max.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersBottomRight); +} + +// Helper for ColorPicker4() +// NB: This is rather brittle and will show artifact when rounding this enabled if rounded corners overlap multiple cells. Caller currently responsible for avoiding that. +// Spent a non reasonable amount of time trying to getting this right for ColorButton with rounding+anti-aliasing+ImGuiColorEditFlags_HalfAlphaPreview flag + various grid sizes and offsets, and eventually gave up... probably more reasonable to disable rounding altogether. +// FIXME: uses ImGui::GetColorU32 +void ImGui::RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 col, float grid_step, ImVec2 grid_off, float rounding, ImDrawFlags flags) +{ + if ((flags & ImDrawFlags_RoundCornersMask_) == 0) + flags = ImDrawFlags_RoundCornersDefault_; + if (((col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT) < 0xFF) + { + ImU32 col_bg1 = GetColorU32(ImAlphaBlendColors(IM_COL32(204, 204, 204, 255), col)); + ImU32 col_bg2 = GetColorU32(ImAlphaBlendColors(IM_COL32(128, 128, 128, 255), col)); + draw_list->AddRectFilled(p_min, p_max, col_bg1, rounding, flags); + + int yi = 0; + for (float y = p_min.y + grid_off.y; y < p_max.y; y += grid_step, yi++) + { + float y1 = ImClamp(y, p_min.y, p_max.y), y2 = ImMin(y + grid_step, p_max.y); + if (y2 <= y1) + continue; + for (float x = p_min.x + grid_off.x + (yi & 1) * grid_step; x < p_max.x; x += grid_step * 2.0f) + { + float x1 = ImClamp(x, p_min.x, p_max.x), x2 = ImMin(x + grid_step, p_max.x); + if (x2 <= x1) + continue; + ImDrawFlags cell_flags = ImDrawFlags_RoundCornersNone; + if (y1 <= p_min.y) { if (x1 <= p_min.x) cell_flags |= ImDrawFlags_RoundCornersTopLeft; if (x2 >= p_max.x) cell_flags |= ImDrawFlags_RoundCornersTopRight; } + if (y2 >= p_max.y) { if (x1 <= p_min.x) cell_flags |= ImDrawFlags_RoundCornersBottomLeft; if (x2 >= p_max.x) cell_flags |= ImDrawFlags_RoundCornersBottomRight; } + + // Combine flags + cell_flags = (flags == ImDrawFlags_RoundCornersNone || cell_flags == ImDrawFlags_RoundCornersNone) ? ImDrawFlags_RoundCornersNone : (cell_flags & flags); + draw_list->AddRectFilled(ImVec2(x1, y1), ImVec2(x2, y2), col_bg2, rounding, cell_flags); + } + } + } + else + { + draw_list->AddRectFilled(p_min, p_max, col, rounding, flags); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Decompression code +//----------------------------------------------------------------------------- +// Compressed with stb_compress() then converted to a C array and encoded as base85. +// Use the program in misc/fonts/binary_to_compressed_c.cpp to create the array from a TTF file. +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +// Decompression from stb.h (public domain) by Sean Barrett https://github.com/nothings/stb/blob/master/stb.h +//----------------------------------------------------------------------------- + +static unsigned int stb_decompress_length(const unsigned char *input) +{ + return (input[8] << 24) + (input[9] << 16) + (input[10] << 8) + input[11]; +} + +static unsigned char *stb__barrier_out_e, *stb__barrier_out_b; +static const unsigned char *stb__barrier_in_b; +static unsigned char *stb__dout; +static void stb__match(const unsigned char *data, unsigned int length) +{ + // INVERSE of memmove... write each byte before copying the next... + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_out_b) { stb__dout = stb__barrier_out_e+1; return; } + while (length--) *stb__dout++ = *data++; +} + +static void stb__lit(const unsigned char *data, unsigned int length) +{ + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_in_b) { stb__dout = stb__barrier_out_e+1; return; } + memcpy(stb__dout, data, length); + stb__dout += length; +} + +#define stb__in2(x) ((i[x] << 8) + i[(x)+1]) +#define stb__in3(x) ((i[x] << 16) + stb__in2((x)+1)) +#define stb__in4(x) ((i[x] << 24) + stb__in3((x)+1)) + +static const unsigned char *stb_decompress_token(const unsigned char *i) +{ + if (*i >= 0x20) { // use fewer if's for cases that expand small + if (*i >= 0x80) stb__match(stb__dout-i[1]-1, i[0] - 0x80 + 1), i += 2; + else if (*i >= 0x40) stb__match(stb__dout-(stb__in2(0) - 0x4000 + 1), i[2]+1), i += 3; + else /* *i >= 0x20 */ stb__lit(i+1, i[0] - 0x20 + 1), i += 1 + (i[0] - 0x20 + 1); + } else { // more ifs for cases that expand large, since overhead is amortized + if (*i >= 0x18) stb__match(stb__dout-(stb__in3(0) - 0x180000 + 1), i[3]+1), i += 4; + else if (*i >= 0x10) stb__match(stb__dout-(stb__in3(0) - 0x100000 + 1), stb__in2(3)+1), i += 5; + else if (*i >= 0x08) stb__lit(i+2, stb__in2(0) - 0x0800 + 1), i += 2 + (stb__in2(0) - 0x0800 + 1); + else if (*i == 0x07) stb__lit(i+3, stb__in2(1) + 1), i += 3 + (stb__in2(1) + 1); + else if (*i == 0x06) stb__match(stb__dout-(stb__in3(1)+1), i[4]+1), i += 5; + else if (*i == 0x04) stb__match(stb__dout-(stb__in3(1)+1), stb__in2(4)+1), i += 6; + } + return i; +} + +static unsigned int stb_adler32(unsigned int adler32, unsigned char *buffer, unsigned int buflen) +{ + const unsigned long ADLER_MOD = 65521; + unsigned long s1 = adler32 & 0xffff, s2 = adler32 >> 16; + unsigned long blocklen = buflen % 5552; + + unsigned long i; + while (buflen) { + for (i=0; i + 7 < blocklen; i += 8) { + s1 += buffer[0], s2 += s1; + s1 += buffer[1], s2 += s1; + s1 += buffer[2], s2 += s1; + s1 += buffer[3], s2 += s1; + s1 += buffer[4], s2 += s1; + s1 += buffer[5], s2 += s1; + s1 += buffer[6], s2 += s1; + s1 += buffer[7], s2 += s1; + + buffer += 8; + } + + for (; i < blocklen; ++i) + s1 += *buffer++, s2 += s1; + + s1 %= ADLER_MOD, s2 %= ADLER_MOD; + buflen -= blocklen; + blocklen = 5552; + } + return (unsigned int)(s2 << 16) + (unsigned int)s1; +} + +static unsigned int stb_decompress(unsigned char *output, const unsigned char *i, unsigned int /*length*/) +{ + if (stb__in4(0) != 0x57bC0000) return 0; + if (stb__in4(4) != 0) return 0; // error! stream is > 4GB + const unsigned int olen = stb_decompress_length(i); + stb__barrier_in_b = i; + stb__barrier_out_e = output + olen; + stb__barrier_out_b = output; + i += 16; + + stb__dout = output; + for (;;) { + const unsigned char *old_i = i; + i = stb_decompress_token(i); + if (i == old_i) { + if (*i == 0x05 && i[1] == 0xfa) { + IM_ASSERT(stb__dout == output + olen); + if (stb__dout != output + olen) return 0; + if (stb_adler32(1, output, olen) != (unsigned int) stb__in4(2)) + return 0; + return olen; + } else { + IM_ASSERT(0); /* NOTREACHED */ + return 0; + } + } + IM_ASSERT(stb__dout <= output + olen); + if (stb__dout > output + olen) + return 0; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Default font data (ProggyClean.ttf) +//----------------------------------------------------------------------------- +// ProggyClean.ttf +// Copyright (c) 2004, 2005 Tristan Grimmer +// MIT license (see License.txt in http://www.upperbounds.net/download/ProggyClean.ttf.zip) +// Download and more information at http://upperbounds.net +//----------------------------------------------------------------------------- +// File: 'ProggyClean.ttf' (41208 bytes) +// Exported using misc/fonts/binary_to_compressed_c.cpp (with compression + base85 string encoding). +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +//----------------------------------------------------------------------------- +static const char proggy_clean_ttf_compressed_data_base85[11980 + 1] = + "7])#######hV0qs'/###[),##/l:$#Q6>##5[n42>c-TH`->>#/e>11NNV=Bv(*:.F?uu#(gRU.o0XGH`$vhLG1hxt9?W`#,5LsCp#-i>.r$<$6pD>Lb';9Crc6tgXmKVeU2cD4Eo3R/" + "2*>]b(MC;$jPfY.;h^`IWM9Qo#t'X#(v#Y9w0#1D$CIf;W'#pWUPXOuxXuU(H9M(1=Ke$$'5F%)]0^#0X@U.a$FBjVQTSDgEKnIS7EM9>ZY9w0#L;>>#Mx&4Mvt//L[MkA#W@lK.N'[0#7RL_&#w+F%HtG9M#XL`N&.,GM4Pg;--VsM.M0rJfLH2eTM`*oJMHRC`N" + "kfimM2J,W-jXS:)r0wK#@Fge$U>`w'N7G#$#fB#$E^$#:9:hk+eOe--6x)F7*E%?76%^GMHePW-Z5l'&GiF#$956:rS?dA#fiK:)Yr+`�j@'DbG&#^$PG.Ll+DNa&VZ>1i%h1S9u5o@YaaW$e+bROPOpxTO7Stwi1::iB1q)C_=dV26J;2,]7op$]uQr@_V7$q^%lQwtuHY]=DX,n3L#0PHDO4f9>dC@O>HBuKPpP*E,N+b3L#lpR/MrTEH.IAQk.a>D[.e;mc." + "x]Ip.PH^'/aqUO/$1WxLoW0[iLAw=4h(9.`G" + "CRUxHPeR`5Mjol(dUWxZa(>STrPkrJiWx`5U7F#.g*jrohGg`cg:lSTvEY/EV_7H4Q9[Z%cnv;JQYZ5q.l7Zeas:HOIZOB?Ggv:[7MI2k).'2($5FNP&EQ(,)" + "U]W]+fh18.vsai00);D3@4ku5P?DP8aJt+;qUM]=+b'8@;mViBKx0DE[-auGl8:PJ&Dj+M6OC]O^((##]`0i)drT;-7X`=-H3[igUnPG-NZlo.#k@h#=Ork$m>a>$-?Tm$UV(?#P6YY#" + "'/###xe7q.73rI3*pP/$1>s9)W,JrM7SN]'/4C#v$U`0#V.[0>xQsH$fEmPMgY2u7Kh(G%siIfLSoS+MK2eTM$=5,M8p`A.;_R%#u[K#$x4AG8.kK/HSB==-'Ie/QTtG?-.*^N-4B/ZM" + "_3YlQC7(p7q)&](`6_c)$/*JL(L-^(]$wIM`dPtOdGA,U3:w2M-0+WomX2u7lqM2iEumMTcsF?-aT=Z-97UEnXglEn1K-bnEO`gu" + "Ft(c%=;Am_Qs@jLooI&NX;]0#j4#F14;gl8-GQpgwhrq8'=l_f-b49'UOqkLu7-##oDY2L(te+Mch&gLYtJ,MEtJfLh'x'M=$CS-ZZ%P]8bZ>#S?YY#%Q&q'3^Fw&?D)UDNrocM3A76/" + "/oL?#h7gl85[qW/NDOk%16ij;+:1a'iNIdb-ou8.P*w,v5#EI$TWS>Pot-R*H'-SEpA:g)f+O$%%`kA#G=8RMmG1&O`>to8bC]T&$,n.LoO>29sp3dt-52U%VM#q7'DHpg+#Z9%H[Ket`e;)f#Km8&+DC$I46>#Kr]]u-[=99tts1.qb#q72g1WJO81q+eN'03'eM>&1XxY-caEnO" + "j%2n8)),?ILR5^.Ibn<-X-Mq7[a82Lq:F&#ce+S9wsCK*x`569E8ew'He]h:sI[2LM$[guka3ZRd6:t%IG:;$%YiJ:Nq=?eAw;/:nnDq0(CYcMpG)qLN4$##&J-XTt,%OVU4)S1+R-#dg0/Nn?Ku1^0f$B*P:Rowwm-`0PKjYDDM'3]d39VZHEl4,.j']Pk-M.h^&:0FACm$maq-&sgw0t7/6(^xtk%" + "LuH88Fj-ekm>GA#_>568x6(OFRl-IZp`&b,_P'$MhLbxfc$mj`,O;&%W2m`Zh:/)Uetw:aJ%]K9h:TcF]u_-Sj9,VK3M.*'&0D[Ca]J9gp8,kAW]" + "%(?A%R$f<->Zts'^kn=-^@c4%-pY6qI%J%1IGxfLU9CP8cbPlXv);C=b),<2mOvP8up,UVf3839acAWAW-W?#ao/^#%KYo8fRULNd2.>%m]UK:n%r$'sw]J;5pAoO_#2mO3n,'=H5(et" + "Hg*`+RLgv>=4U8guD$I%D:W>-r5V*%j*W:Kvej.Lp$'?;++O'>()jLR-^u68PHm8ZFWe+ej8h:9r6L*0//c&iH&R8pRbA#Kjm%upV1g:" + "a_#Ur7FuA#(tRh#.Y5K+@?3<-8m0$PEn;J:rh6?I6uG<-`wMU'ircp0LaE_OtlMb&1#6T.#FDKu#1Lw%u%+GM+X'e?YLfjM[VO0MbuFp7;>Q&#WIo)0@F%q7c#4XAXN-U&VBpqB>0ie&jhZ[?iLR@@_AvA-iQC(=ksRZRVp7`.=+NpBC%rh&3]R:8XDmE5^V8O(x<-+k?'(^](H.aREZSi,#1:[IXaZFOm<-ui#qUq2$##Ri;u75OK#(RtaW-K-F`S+cF]uN`-KMQ%rP/Xri.LRcB##=YL3BgM/3M" + "D?@f&1'BW-)Ju#bmmWCMkk&#TR`C,5d>g)F;t,4:@_l8G/5h4vUd%&%950:VXD'QdWoY-F$BtUwmfe$YqL'8(PWX(" + "P?^@Po3$##`MSs?DWBZ/S>+4%>fX,VWv/w'KD`LP5IbH;rTV>n3cEK8U#bX]l-/V+^lj3;vlMb&[5YQ8#pekX9JP3XUC72L,,?+Ni&co7ApnO*5NK,((W-i:$,kp'UDAO(G0Sq7MVjJs" + "bIu)'Z,*[>br5fX^:FPAWr-m2KgLQ_nN6'8uTGT5g)uLv:873UpTLgH+#FgpH'_o1780Ph8KmxQJ8#H72L4@768@Tm&Q" + "h4CB/5OvmA&,Q&QbUoi$a_%3M01H)4x7I^&KQVgtFnV+;[Pc>[m4k//,]1?#`VY[Jr*3&&slRfLiVZJ:]?=K3Sw=[$=uRB?3xk48@aege0jT6'N#(q%.O=?2S]u*(m<-" + "V8J'(1)G][68hW$5'q[GC&5j`TE?m'esFGNRM)j,ffZ?-qx8;->g4t*:CIP/[Qap7/9'#(1sao7w-.qNUdkJ)tCF&#B^;xGvn2r9FEPFFFcL@.iFNkTve$m%#QvQS8U@)2Z+3K:AKM5i" + "sZ88+dKQ)W6>J%CL`.d*(B`-n8D9oK-XV1q['-5k'cAZ69e;D_?$ZPP&s^+7])$*$#@QYi9,5P r+$%CE=68>K8r0=dSC%%(@p7" + ".m7jilQ02'0-VWAg
TlGW'b)Tq7VT9q^*^$$.:&N@@" + "$&)WHtPm*5_rO0&e%K&#-30j(E4#'Zb.o/(Tpm$>K'f@[PvFl,hfINTNU6u'0pao7%XUp9]5.>%h`8_=VYbxuel.NTSsJfLacFu3B'lQSu/m6-Oqem8T+oE--$0a/k]uj9EwsG>%veR*" + "hv^BFpQj:K'#SJ,sB-'#](j.Lg92rTw-*n%@/;39rrJF,l#qV%OrtBeC6/,;qB3ebNW[?,Hqj2L.1NP&GjUR=1D8QaS3Up&@*9wP?+lo7b?@%'k4`p0Z$22%K3+iCZj?XJN4Nm&+YF]u" + "@-W$U%VEQ/,,>>#)D#%8cY#YZ?=,`Wdxu/ae&#" + "w6)R89tI#6@s'(6Bf7a&?S=^ZI_kS&ai`&=tE72L_D,;^R)7[$so8lKN%5/$(vdfq7+ebA#" + "u1p]ovUKW&Y%q]'>$1@-[xfn$7ZTp7mM,G,Ko7a&Gu%G[RMxJs[0MM%wci.LFDK)(%:_i2B5CsR8&9Z&#=mPEnm0f`<&c)QL5uJ#%u%lJj+D-r;BoFDoS97h5g)E#o:&S4weDF,9^Hoe`h*L+_a*NrLW-1pG_&2UdB8" + "6e%B/:=>)N4xeW.*wft-;$'58-ESqr#U`'6AQ]m&6/`Z>#S?YY#Vc;r7U2&326d=w&H####?TZ`*4?&.MK?LP8Vxg>$[QXc%QJv92.(Db*B)gb*BM9dM*hJMAo*c&#" + "b0v=Pjer]$gG&JXDf->'StvU7505l9$AFvgYRI^&<^b68?j#q9QX4SM'RO#&sL1IM.rJfLUAj221]d##DW=m83u5;'bYx,*Sl0hL(W;;$doB&O/TQ:(Z^xBdLjLV#*8U_72Lh+2Q8Cj0i:6hp&$C/:p(HK>T8Y[gHQ4`4)'$Ab(Nof%V'8hL&#SfD07&6D@M.*J:;$-rv29'M]8qMv-tLp,'886iaC=Hb*YJoKJ,(j%K=H`K.v9HggqBIiZu'QvBT.#=)0ukruV&.)3=(^1`o*Pj4<-#MJ+gLq9-##@HuZPN0]u:h7.T..G:;$/Usj(T7`Q8tT72LnYl<-qx8;-HV7Q-&Xdx%1a,hC=0u+HlsV>nuIQL-5" + "_>@kXQtMacfD.m-VAb8;IReM3$wf0''hra*so568'Ip&vRs849'MRYSp%:t:h5qSgwpEr$B>Q,;s(C#$)`svQuF$##-D,##,g68@2[T;.XSdN9Qe)rpt._K-#5wF)sP'##p#C0c%-Gb%" + "hd+<-j'Ai*x&&HMkT]C'OSl##5RG[JXaHN;d'uA#x._U;.`PU@(Z3dt4r152@:v,'R.Sj'w#0<-;kPI)FfJ&#AYJ&#//)>-k=m=*XnK$>=)72L]0I%>.G690a:$##<,);?;72#?x9+d;" + "^V'9;jY@;)br#q^YQpx:X#Te$Z^'=-=bGhLf:D6&bNwZ9-ZD#n^9HhLMr5G;']d&6'wYmTFmLq9wI>P(9mI[>kC-ekLC/R&CH+s'B;K-M6$EB%is00:" + "+A4[7xks.LrNk0&E)wILYF@2L'0Nb$+pv<(2.768/FrY&h$^3i&@+G%JT'<-,v`3;_)I9M^AE]CN?Cl2AZg+%4iTpT3$U4O]GKx'm9)b@p7YsvK3w^YR-" + "CdQ*:Ir<($u&)#(&?L9Rg3H)4fiEp^iI9O8KnTj,]H?D*r7'M;PwZ9K0E^k&-cpI;.p/6_vwoFMV<->#%Xi.LxVnrU(4&8/P+:hLSKj$#U%]49t'I:rgMi'FL@a:0Y-uA[39',(vbma*" + "hU%<-SRF`Tt:542R_VV$p@[p8DV[A,?1839FWdFTi1O*H&#(AL8[_P%.M>v^-))qOT*F5Cq0`Ye%+$B6i:7@0IXSsDiWP,##P`%/L-" + "S(qw%sf/@%#B6;/U7K]uZbi^Oc^2n%t<)'mEVE''n`WnJra$^TKvX5B>;_aSEK',(hwa0:i4G?.Bci.(X[?b*($,=-n<.Q%`(X=?+@Am*Js0&=3bh8K]mL69=Lb,OcZV/);TTm8VI;?%OtJ<(b4mq7M6:u?KRdFl*:xP?Yb.5)%w_I?7uk5JC+FS(m#i'k.'a0i)9<7b'fs'59hq$*5Uhv##pi^8+hIEBF`nvo`;'l0.^S1<-wUK2/Coh58KKhLj" + "M=SO*rfO`+qC`W-On.=AJ56>>i2@2LH6A:&5q`?9I3@@'04&p2/LVa*T-4<-i3;M9UvZd+N7>b*eIwg:CC)c<>nO&#$(>.Z-I&J(Q0Hd5Q%7Co-b`-cP)hI;*_F]u`Rb[.j8_Q/<&>uu+VsH$sM9TA%?)(vmJ80),P7E>)tjD%2L=-t#fK[%`v=Q8WlA2);Sa" + ">gXm8YB`1d@K#n]76-a$U,mF%Ul:#/'xoFM9QX-$.QN'>" + "[%$Z$uF6pA6Ki2O5:8w*vP1<-1`[G,)-m#>0`P&#eb#.3i)rtB61(o'$?X3B2Qft^ae_5tKL9MUe9b*sLEQ95C&`=G?@Mj=wh*'3E>=-<)Gt*Iw)'QG:`@I" + "wOf7&]1i'S01B+Ev/Nac#9S;=;YQpg_6U`*kVY39xK,[/6Aj7:'1Bm-_1EYfa1+o&o4hp7KN_Q(OlIo@S%;jVdn0'1h19w,WQhLI)3S#f$2(eb,jr*b;3Vw]*7NH%$c4Vs,eD9>XW8?N]o+(*pgC%/72LV-uW%iewS8W6m2rtCpo'RS1R84=@paTKt)>=%&1[)*vp'u+x,VrwN;&]kuO9JDbg=pO$J*.jVe;u'm0dr9l,<*wMK*Oe=g8lV_KEBFkO'oU]^=[-792#ok,)" + "i]lR8qQ2oA8wcRCZ^7w/Njh;?.stX?Q1>S1q4Bn$)K1<-rGdO'$Wr.Lc.CG)$/*JL4tNR/,SVO3,aUw'DJN:)Ss;wGn9A32ijw%FL+Z0Fn.U9;reSq)bmI32U==5ALuG&#Vf1398/pVo" + "1*c-(aY168o<`JsSbk-,1N;$>0:OUas(3:8Z972LSfF8eb=c-;>SPw7.6hn3m`9^Xkn(r.qS[0;T%&Qc=+STRxX'q1BNk3&*eu2;&8q$&x>Q#Q7^Tf+6<(d%ZVmj2bDi%.3L2n+4W'$P" + "iDDG)g,r%+?,$@?uou5tSe2aN_AQU*'IAO" + "URQ##V^Fv-XFbGM7Fl(N<3DhLGF%q.1rC$#:T__&Pi68%0xi_&[qFJ(77j_&JWoF.V735&T,[R*:xFR*K5>>#`bW-?4Ne_&6Ne_&6Ne_&n`kr-#GJcM6X;uM6X;uM(.a..^2TkL%oR(#" + ";u.T%fAr%4tJ8&><1=GHZ_+m9/#H1F^R#SC#*N=BA9(D?v[UiFY>>^8p,KKF.W]L29uLkLlu/+4T" + "w$)F./^n3+rlo+DB;5sIYGNk+i1t-69Jg--0pao7Sm#K)pdHW&;LuDNH@H>#/X-TI(;P>#,Gc>#0Su>#4`1?#8lC?#xL$#B.`$#F:r$#JF.%#NR@%#R_R%#Vke%#Zww%#_-4^Rh%Sflr-k'MS.o?.5/sWel/wpEM0%3'/1)K^f1-d>G21&v(35>V`39V7A4=onx4" + "A1OY5EI0;6Ibgr6M$HS7Q<)58C5w,;WoA*#[%T*#`1g*#d=#+#hI5+#lUG+#pbY+#tnl+#x$),#&1;,#*=M,#.I`,#2Ur,#6b.-#;w[H#iQtA#m^0B#qjBB#uvTB##-hB#'9$C#+E6C#" + "/QHC#3^ZC#7jmC#;v)D#?,)4kMYD4lVu`4m`:&5niUA5@(A5BA1]PBB:xlBCC=2CDLXMCEUtiCf&0g2'tN?PGT4CPGT4CPGT4CPGT4CPGT4CPGT4CPGT4CP" + "GT4CPGT4CPGT4CPGT4CPGT4CPGT4CP-qekC`.9kEg^+F$kwViFJTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5o,^<-28ZI'O?;xp" + "O?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xp;7q-#lLYI:xvD=#"; + +static const char* GetDefaultCompressedFontDataTTFBase85() +{ + return proggy_clean_ttf_compressed_data_base85; +} + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_internal.h b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_internal.h new file mode 100644 index 000000000..816141e40 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_internal.h @@ -0,0 +1,3228 @@ +// dear imgui, v1.89.1 +// (internal structures/api) + +// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility! +// Set: +// #define IMGUI_DEFINE_MATH_OPERATORS +// To implement maths operators for ImVec2 (disabled by default to not collide with using IM_VEC2_CLASS_EXTRA along with your own math types+operators) + +/* + +Index of this file: + +// [SECTION] Header mess +// [SECTION] Forward declarations +// [SECTION] Context pointer +// [SECTION] STB libraries includes +// [SECTION] Macros +// [SECTION] Generic helpers +// [SECTION] ImDrawList support +// [SECTION] Widgets support: flags, enums, data structures +// [SECTION] Inputs support +// [SECTION] Clipper support +// [SECTION] Navigation support +// [SECTION] Columns support +// [SECTION] Multi-select support +// [SECTION] Docking support +// [SECTION] Viewport support +// [SECTION] Settings support +// [SECTION] Localization support +// [SECTION] Metrics, Debug tools +// [SECTION] Generic context hooks +// [SECTION] ImGuiContext (main imgui context) +// [SECTION] ImGuiWindowTempData, ImGuiWindow +// [SECTION] Tab bar, Tab item support +// [SECTION] Table support +// [SECTION] ImGui internal API +// [SECTION] ImFontAtlas internal API +// [SECTION] Test Engine specific hooks (imgui_test_engine) + +*/ + +#pragma once +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +#ifndef IMGUI_VERSION +#include "imgui.h" +#endif + +#include // FILE*, sscanf +#include // NULL, malloc, free, qsort, atoi, atof +#include // sqrtf, fabsf, fmodf, powf, floorf, ceilf, cosf, sinf +#include // INT_MIN, INT_MAX + +// Enable SSE intrinsics if available +#if (defined __SSE__ || defined __x86_64__ || defined _M_X64) && !defined(IMGUI_DISABLE_SSE) +#define IMGUI_ENABLE_SSE +#include +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of struct 'xxx' // when IMGUI_API is set to__declspec(dllexport) +#pragma warning (disable: 26812) // The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok, for ImFloorSigned() +#pragma clang diagnostic ignored "-Wunused-function" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wmissing-prototypes" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#pragma clang diagnostic ignored "-Wdouble-promotion" +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#pragma clang diagnostic ignored "-Wmissing-noreturn" // warning: function 'xxx' could be declared with attribute 'noreturn' +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// Legacy defines +#ifdef IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#endif +#ifdef IMGUI_DISABLE_MATH_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#endif + +// Enable stb_truetype by default unless FreeType is enabled. +// You can compile with both by defining both IMGUI_ENABLE_FREETYPE and IMGUI_ENABLE_STB_TRUETYPE together. +#ifndef IMGUI_ENABLE_FREETYPE +#define IMGUI_ENABLE_STB_TRUETYPE +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward declarations +//----------------------------------------------------------------------------- + +struct ImBitVector; // Store 1-bit per value +struct ImRect; // An axis-aligned rectangle (2 points) +struct ImDrawDataBuilder; // Helper to build a ImDrawData instance +struct ImDrawListSharedData; // Data shared between all ImDrawList instances +struct ImGuiColorMod; // Stacked color modifier, backup of modified data so we can restore it +struct ImGuiContext; // Main Dear ImGui context +struct ImGuiContextHook; // Hook for extensions like ImGuiTestEngine +struct ImGuiDataTypeInfo; // Type information associated to a ImGuiDataType enum +struct ImGuiGroupData; // Stacked storage data for BeginGroup()/EndGroup() +struct ImGuiInputTextState; // Internal state of the currently focused/edited text input box +struct ImGuiLastItemData; // Status storage for last submitted items +struct ImGuiLocEntry; // A localization entry. +struct ImGuiMenuColumns; // Simple column measurement, currently used for MenuItem() only +struct ImGuiNavItemData; // Result of a gamepad/keyboard directional navigation move query result +struct ImGuiMetricsConfig; // Storage for ShowMetricsWindow() and DebugNodeXXX() functions +struct ImGuiNextWindowData; // Storage for SetNextWindow** functions +struct ImGuiNextItemData; // Storage for SetNextItem** functions +struct ImGuiOldColumnData; // Storage data for a single column for legacy Columns() api +struct ImGuiOldColumns; // Storage data for a columns set for legacy Columns() api +struct ImGuiPopupData; // Storage for current popup stack +struct ImGuiSettingsHandler; // Storage for one type registered in the .ini file +struct ImGuiStackSizes; // Storage of stack sizes for debugging/asserting +struct ImGuiStyleMod; // Stacked style modifier, backup of modified data so we can restore it +struct ImGuiTabBar; // Storage for a tab bar +struct ImGuiTabItem; // Storage for a tab item (within a tab bar) +struct ImGuiTable; // Storage for a table +struct ImGuiTableColumn; // Storage for one column of a table +struct ImGuiTableInstanceData; // Storage for one instance of a same table +struct ImGuiTableTempData; // Temporary storage for one table (one per table in the stack), shared between tables. +struct ImGuiTableSettings; // Storage for a table .ini settings +struct ImGuiTableColumnsSettings; // Storage for a column .ini settings +struct ImGuiWindow; // Storage for one window +struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame, in practice we currently keep it for each window) +struct ImGuiWindowSettings; // Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during this session) + +// Enumerations +// Use your programming IDE "Go to definition" facility on the names of the center columns to find the actual flags/enum lists. +enum ImGuiLocKey : int; // -> enum ImGuiLocKey // Enum: a localization entry for translation. +typedef int ImGuiLayoutType; // -> enum ImGuiLayoutType_ // Enum: Horizontal or vertical + +// Flags +typedef int ImGuiActivateFlags; // -> enum ImGuiActivateFlags_ // Flags: for navigation/focus function (will be for ActivateItem() later) +typedef int ImGuiDebugLogFlags; // -> enum ImGuiDebugLogFlags_ // Flags: for ShowDebugLogWindow(), g.DebugLogFlags +typedef int ImGuiInputFlags; // -> enum ImGuiInputFlags_ // Flags: for IsKeyPressed(), IsMouseClicked(), SetKeyOwner(), SetItemKeyOwner() etc. +typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag(), g.LastItemData.InFlags +typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for g.LastItemData.StatusFlags +typedef int ImGuiOldColumnFlags; // -> enum ImGuiOldColumnFlags_ // Flags: for BeginColumns() +typedef int ImGuiNavHighlightFlags; // -> enum ImGuiNavHighlightFlags_ // Flags: for RenderNavHighlight() +typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests +typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions +typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions +typedef int ImGuiScrollFlags; // -> enum ImGuiScrollFlags_ // Flags: for ScrollToItem() and navigation requests +typedef int ImGuiSeparatorFlags; // -> enum ImGuiSeparatorFlags_ // Flags: for SeparatorEx() +typedef int ImGuiTextFlags; // -> enum ImGuiTextFlags_ // Flags: for TextEx() +typedef int ImGuiTooltipFlags; // -> enum ImGuiTooltipFlags_ // Flags: for BeginTooltipEx() + +typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...); + +//----------------------------------------------------------------------------- +// [SECTION] Context pointer +// See implementation of this variable in imgui.cpp for comments and details. +//----------------------------------------------------------------------------- + +#ifndef GImGui +extern IMGUI_API ImGuiContext* GImGui; // Current implicit context pointer +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries includes +//------------------------------------------------------------------------- + +namespace ImStb +{ + +#undef STB_TEXTEDIT_STRING +#undef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_STRING ImGuiInputTextState +#define STB_TEXTEDIT_CHARTYPE ImWchar +#define STB_TEXTEDIT_GETWIDTH_NEWLINE (-1.0f) +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#include "imstb_textedit.h" + +} // namespace ImStb + +//----------------------------------------------------------------------------- +// [SECTION] Macros +//----------------------------------------------------------------------------- + +// Debug Printing Into TTY +// (since IMGUI_VERSION_NUM >= 18729: IMGUI_DEBUG_LOG was reworked into IMGUI_DEBUG_PRINTF (and removed framecount from it). If you were using a #define IMGUI_DEBUG_LOG please rename) +#ifndef IMGUI_DEBUG_PRINTF +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#define IMGUI_DEBUG_PRINTF(_FMT,...) printf(_FMT, __VA_ARGS__) +#else +#define IMGUI_DEBUG_PRINTF(_FMT,...) +#endif +#endif + +// Debug Logging for ShowDebugLogWindow(). This is designed for relatively rare events so please don't spam. +#define IMGUI_DEBUG_LOG(...) ImGui::DebugLog(__VA_ARGS__) +#define IMGUI_DEBUG_LOG_ACTIVEID(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventActiveId) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_FOCUS(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventFocus) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_POPUP(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventPopup) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_NAV(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventNav) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_CLIPPER(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventClipper) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_IO(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) + +// Static Asserts +#define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") + +// "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much. +// We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code. +//#define IMGUI_DEBUG_PARANOID +#ifdef IMGUI_DEBUG_PARANOID +#define IM_ASSERT_PARANOID(_EXPR) IM_ASSERT(_EXPR) +#else +#define IM_ASSERT_PARANOID(_EXPR) +#endif + +// Error handling +// Down the line in some frameworks/languages we would like to have a way to redirect those to the programmer and recover from more faults. +#ifndef IM_ASSERT_USER_ERROR +#define IM_ASSERT_USER_ERROR(_EXP,_MSG) IM_ASSERT((_EXP) && _MSG) // Recoverable User Error +#endif + +// Misc Macros +#define IM_PI 3.14159265358979323846f +#ifdef _WIN32 +#define IM_NEWLINE "\r\n" // Play it nice with Windows users (Update: since 2018-05, Notepad finally appears to support Unix-style carriage returns!) +#else +#define IM_NEWLINE "\n" +#endif +#ifndef IM_TABSIZE // Until we move this to runtime and/or add proper tab support, at least allow users to compile-time override +#define IM_TABSIZE (4) +#endif +#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + ((_ALIGN) - 1)) & ~((_ALIGN) - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8 +#define IM_F32_TO_INT8_UNBOUND(_VAL) ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f))) // Unsaturated, for display purpose +#define IM_F32_TO_INT8_SAT(_VAL) ((int)(ImSaturate(_VAL) * 255.0f + 0.5f)) // Saturated, always output 0..255 +#define IM_FLOOR(_VAL) ((float)(int)(_VAL)) // ImFloor() is not inlined in MSVC debug builds +#define IM_ROUND(_VAL) ((float)(int)((_VAL) + 0.5f)) // + +// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall +#ifdef _MSC_VER +#define IMGUI_CDECL __cdecl +#else +#define IMGUI_CDECL +#endif + +// Warnings +#if defined(_MSC_VER) && !defined(__clang__) +#define IM_MSVC_WARNING_SUPPRESS(XXXX) __pragma(warning(suppress: XXXX)) +#else +#define IM_MSVC_WARNING_SUPPRESS(XXXX) +#endif + +// Debug Tools +// Use 'Metrics/Debugger->Tools->Item Picker' to break into the call-stack of a specific item. +// This will call IM_DEBUG_BREAK() which you may redefine yourself. See https://github.com/scottt/debugbreak for more reference. +#ifndef IM_DEBUG_BREAK +#if defined (_MSC_VER) +#define IM_DEBUG_BREAK() __debugbreak() +#elif defined(__clang__) +#define IM_DEBUG_BREAK() __builtin_debugtrap() +#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) +#define IM_DEBUG_BREAK() __asm__ volatile("int $0x03") +#elif defined(__GNUC__) && defined(__thumb__) +#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xde01") +#elif defined(__GNUC__) && defined(__arm__) && !defined(__thumb__) +#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xe7f001f0"); +#else +#define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger! +#endif +#endif // #ifndef IM_DEBUG_BREAK + +//----------------------------------------------------------------------------- +// [SECTION] Generic helpers +// Note that the ImXXX helpers functions are lower-level than ImGui functions. +// ImGui functions or the ImGui context are never called/used from other ImXXX functions. +//----------------------------------------------------------------------------- +// - Helpers: Hashing +// - Helpers: Sorting +// - Helpers: Bit manipulation +// - Helpers: String +// - Helpers: Formatting +// - Helpers: UTF-8 <> wchar conversions +// - Helpers: ImVec2/ImVec4 operators +// - Helpers: Maths +// - Helpers: Geometry +// - Helper: ImVec1 +// - Helper: ImVec2ih +// - Helper: ImRect +// - Helper: ImBitArray +// - Helper: ImBitVector +// - Helper: ImSpan<>, ImSpanAllocator<> +// - Helper: ImPool<> +// - Helper: ImChunkStream<> +// - Helper: ImGuiTextIndex +//----------------------------------------------------------------------------- + +// Helpers: Hashing +IMGUI_API ImGuiID ImHashData(const void* data, size_t data_size, ImU32 seed = 0); +IMGUI_API ImGuiID ImHashStr(const char* data, size_t data_size = 0, ImU32 seed = 0); + +// Helpers: Sorting +#ifndef ImQsort +static inline void ImQsort(void* base, size_t count, size_t size_of_element, int(IMGUI_CDECL *compare_func)(void const*, void const*)) { if (count > 1) qsort(base, count, size_of_element, compare_func); } +#endif + +// Helpers: Color Blending +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b); + +// Helpers: Bit manipulation +static inline bool ImIsPowerOfTwo(int v) { return v != 0 && (v & (v - 1)) == 0; } +static inline bool ImIsPowerOfTwo(ImU64 v) { return v != 0 && (v & (v - 1)) == 0; } +static inline int ImUpperPowerOfTwo(int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; } + +// Helpers: String +IMGUI_API int ImStricmp(const char* str1, const char* str2); +IMGUI_API int ImStrnicmp(const char* str1, const char* str2, size_t count); +IMGUI_API void ImStrncpy(char* dst, const char* src, size_t count); +IMGUI_API char* ImStrdup(const char* str); +IMGUI_API char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* str); +IMGUI_API const char* ImStrchrRange(const char* str_begin, const char* str_end, char c); +IMGUI_API int ImStrlenW(const ImWchar* str); +IMGUI_API const char* ImStreolRange(const char* str, const char* str_end); // End end-of-line +IMGUI_API const ImWchar*ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin); // Find beginning-of-line +IMGUI_API const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); +IMGUI_API void ImStrTrimBlanks(char* str); +IMGUI_API const char* ImStrSkipBlank(const char* str); +IM_MSVC_RUNTIME_CHECKS_OFF +static inline char ImToUpper(char c) { return (c >= 'a' && c <= 'z') ? c &= ~32 : c; } +static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } +static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Formatting +IMGUI_API int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API const char* ImParseFormatFindStart(const char* format); +IMGUI_API const char* ImParseFormatFindEnd(const char* format); +IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); +IMGUI_API void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API int ImParseFormatPrecision(const char* format, int default_value); + +// Helpers: UTF-8 <> wchar conversions +IMGUI_API const char* ImTextCharToUtf8(char out_buf[5], unsigned int c); // return out_buf +IMGUI_API int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end); // return output UTF-8 bytes count +IMGUI_API int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); // read one character. return input UTF-8 bytes count +IMGUI_API int ImTextStrFromUtf8(ImWchar* out_buf, int out_buf_size, const char* in_text, const char* in_text_end, const char** in_remaining = NULL); // return input UTF-8 bytes count +IMGUI_API int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); // return number of UTF-8 code-points (NOT bytes count) +IMGUI_API int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end); // return number of bytes to express one char in UTF-8 +IMGUI_API int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); // return number of bytes to express string in UTF-8 + +// Helpers: ImVec2/ImVec4 operators +// We are keeping those disabled by default so they don't leak in user space, to allow user enabling implicit cast operators between ImVec2 and their own types (using IM_VEC2_CLASS_EXTRA etc.) +// We unfortunately don't have a unary- operator for ImVec2 because this would needs to be defined inside the class itself. +#ifdef IMGUI_DEFINE_MATH_OPERATORS +IM_MSVC_RUNTIME_CHECKS_OFF +static inline ImVec2 operator*(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x * rhs, lhs.y * rhs); } +static inline ImVec2 operator/(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x / rhs, lhs.y / rhs); } +static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); } +static inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); } +static inline ImVec2 operator*(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } +static inline ImVec2 operator/(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x / rhs.x, lhs.y / rhs.y); } +static inline ImVec2& operator*=(ImVec2& lhs, const float rhs) { lhs.x *= rhs; lhs.y *= rhs; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const float rhs) { lhs.x /= rhs; lhs.y /= rhs; return lhs; } +static inline ImVec2& operator+=(ImVec2& lhs, const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; return lhs; } +static inline ImVec2& operator-=(ImVec2& lhs, const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; } +static inline ImVec2& operator*=(ImVec2& lhs, const ImVec2& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const ImVec2& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y; return lhs; } +static inline ImVec4 operator+(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } +static inline ImVec4 operator-(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } +static inline ImVec4 operator*(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } +IM_MSVC_RUNTIME_CHECKS_RESTORE +#endif + +// Helpers: File System +#ifdef IMGUI_DISABLE_FILE_FUNCTIONS +#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef void* ImFileHandle; +static inline ImFileHandle ImFileOpen(const char*, const char*) { return NULL; } +static inline bool ImFileClose(ImFileHandle) { return false; } +static inline ImU64 ImFileGetSize(ImFileHandle) { return (ImU64)-1; } +static inline ImU64 ImFileRead(void*, ImU64, ImU64, ImFileHandle) { return 0; } +static inline ImU64 ImFileWrite(const void*, ImU64, ImU64, ImFileHandle) { return 0; } +#endif +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef FILE* ImFileHandle; +IMGUI_API ImFileHandle ImFileOpen(const char* filename, const char* mode); +IMGUI_API bool ImFileClose(ImFileHandle file); +IMGUI_API ImU64 ImFileGetSize(ImFileHandle file); +IMGUI_API ImU64 ImFileRead(void* data, ImU64 size, ImU64 count, ImFileHandle file); +IMGUI_API ImU64 ImFileWrite(const void* data, ImU64 size, ImU64 count, ImFileHandle file); +#else +#define IMGUI_DISABLE_TTY_FUNCTIONS // Can't use stdout, fflush if we are not using default file functions +#endif +IMGUI_API void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size = NULL, int padding_bytes = 0); + +// Helpers: Maths +IM_MSVC_RUNTIME_CHECKS_OFF +// - Wrapper for standard libs functions. (Note that imgui_demo.cpp does _not_ use them to keep the code easy to copy) +#ifndef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#define ImFabs(X) fabsf(X) +#define ImSqrt(X) sqrtf(X) +#define ImFmod(X, Y) fmodf((X), (Y)) +#define ImCos(X) cosf(X) +#define ImSin(X) sinf(X) +#define ImAcos(X) acosf(X) +#define ImAtan2(Y, X) atan2f((Y), (X)) +#define ImAtof(STR) atof(STR) +//#define ImFloorStd(X) floorf(X) // We use our own, see ImFloor() and ImFloorSigned() +#define ImCeil(X) ceilf(X) +static inline float ImPow(float x, float y) { return powf(x, y); } // DragBehaviorT/SliderBehaviorT uses ImPow with either float/double and need the precision +static inline double ImPow(double x, double y) { return pow(x, y); } +static inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision +static inline double ImLog(double x) { return log(x); } +static inline int ImAbs(int x) { return x < 0 ? -x : x; } +static inline float ImAbs(float x) { return fabsf(x); } +static inline double ImAbs(double x) { return fabs(x); } +static inline float ImSign(float x) { return (x < 0.0f) ? -1.0f : (x > 0.0f) ? 1.0f : 0.0f; } // Sign operator - returns -1, 0 or 1 based on sign of argument +static inline double ImSign(double x) { return (x < 0.0) ? -1.0 : (x > 0.0) ? 1.0 : 0.0; } +#ifdef IMGUI_ENABLE_SSE +static inline float ImRsqrt(float x) { return _mm_cvtss_f32(_mm_rsqrt_ss(_mm_set_ss(x))); } +#else +static inline float ImRsqrt(float x) { return 1.0f / sqrtf(x); } +#endif +static inline double ImRsqrt(double x) { return 1.0 / sqrt(x); } +#endif +// - ImMin/ImMax/ImClamp/ImLerp/ImSwap are used by widgets which support variety of types: signed/unsigned int/long long float/double +// (Exceptionally using templates here but we could also redefine them for those types) +template static inline T ImMin(T lhs, T rhs) { return lhs < rhs ? lhs : rhs; } +template static inline T ImMax(T lhs, T rhs) { return lhs >= rhs ? lhs : rhs; } +template static inline T ImClamp(T v, T mn, T mx) { return (v < mn) ? mn : (v > mx) ? mx : v; } +template static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * t); } +template static inline void ImSwap(T& a, T& b) { T tmp = a; a = b; b = tmp; } +template static inline T ImAddClampOverflow(T a, T b, T mn, T mx) { if (b < 0 && (a < mn - b)) return mn; if (b > 0 && (a > mx - b)) return mx; return a + b; } +template static inline T ImSubClampOverflow(T a, T b, T mn, T mx) { if (b > 0 && (a < mn + b)) return mn; if (b < 0 && (a > mx + b)) return mx; return a - b; } +// - Misc maths helpers +static inline ImVec2 ImMin(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x < rhs.x ? lhs.x : rhs.x, lhs.y < rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImMax(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x >= rhs.x ? lhs.x : rhs.x, lhs.y >= rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImClamp(const ImVec2& v, const ImVec2& mn, ImVec2 mx) { return ImVec2((v.x < mn.x) ? mn.x : (v.x > mx.x) ? mx.x : v.x, (v.y < mn.y) ? mn.y : (v.y > mx.y) ? mx.y : v.y); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, float t) { return ImVec2(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, const ImVec2& t) { return ImVec2(a.x + (b.x - a.x) * t.x, a.y + (b.y - a.y) * t.y); } +static inline ImVec4 ImLerp(const ImVec4& a, const ImVec4& b, float t) { return ImVec4(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t, a.z + (b.z - a.z) * t, a.w + (b.w - a.w) * t); } +static inline float ImSaturate(float f) { return (f < 0.0f) ? 0.0f : (f > 1.0f) ? 1.0f : f; } +static inline float ImLengthSqr(const ImVec2& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y); } +static inline float ImLengthSqr(const ImVec4& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y) + (lhs.z * lhs.z) + (lhs.w * lhs.w); } +static inline float ImInvLength(const ImVec2& lhs, float fail_value) { float d = (lhs.x * lhs.x) + (lhs.y * lhs.y); if (d > 0.0f) return ImRsqrt(d); return fail_value; } +static inline float ImFloor(float f) { return (float)(int)(f); } +static inline float ImFloorSigned(float f) { return (float)((f >= 0 || (float)(int)f == f) ? (int)f : (int)f - 1); } // Decent replacement for floorf() +static inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2((float)(int)(v.x), (float)(int)(v.y)); } +static inline ImVec2 ImFloorSigned(const ImVec2& v) { return ImVec2(ImFloorSigned(v.x), ImFloorSigned(v.y)); } +static inline int ImModPositive(int a, int b) { return (a + b) % b; } +static inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; } +static inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); } +static inline float ImLinearSweep(float current, float target, float speed) { if (current < target) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, target); return current; } +static inline ImVec2 ImMul(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } +static inline bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) { return f <= -16777216 || f >= 16777216; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Geometry +IMGUI_API ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t); +IMGUI_API ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments); // For curves with explicit number of segments +IMGUI_API ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol);// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol +IMGUI_API ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t); +IMGUI_API ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p); +IMGUI_API bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w); +inline float ImTriangleArea(const ImVec2& a, const ImVec2& b, const ImVec2& c) { return ImFabs((a.x * (b.y - c.y)) + (b.x * (c.y - a.y)) + (c.x * (a.y - b.y))) * 0.5f; } +IMGUI_API ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy); + +// Helper: ImVec1 (1D vector) +// (this odd construct is used to facilitate the transition between 1D and 2D, and the maintenance of some branches/patches) +IM_MSVC_RUNTIME_CHECKS_OFF +struct ImVec1 +{ + float x; + constexpr ImVec1() : x(0.0f) { } + constexpr ImVec1(float _x) : x(_x) { } +}; + +// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage) +struct ImVec2ih +{ + short x, y; + constexpr ImVec2ih() : x(0), y(0) {} + constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {} + constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {} +}; + +// Helper: ImRect (2D axis aligned bounding-box) +// NB: we can't rely on ImVec2 math operators being available here! +struct IMGUI_API ImRect +{ + ImVec2 Min; // Upper-left + ImVec2 Max; // Lower-right + + constexpr ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} + constexpr ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} + constexpr ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} + constexpr ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} + + ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + Max.y) * 0.5f); } + ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); } + float GetWidth() const { return Max.x - Min.x; } + float GetHeight() const { return Max.y - Min.y; } + float GetArea() const { return (Max.x - Min.x) * (Max.y - Min.y); } + ImVec2 GetTL() const { return Min; } // Top-left + ImVec2 GetTR() const { return ImVec2(Max.x, Min.y); } // Top-right + ImVec2 GetBL() const { return ImVec2(Min.x, Max.y); } // Bottom-left + ImVec2 GetBR() const { return Max; } // Bottom-right + bool Contains(const ImVec2& p) const { return p.x >= Min.x && p.y >= Min.y && p.x < Max.x && p.y < Max.y; } + bool Contains(const ImRect& r) const { return r.Min.x >= Min.x && r.Min.y >= Min.y && r.Max.x <= Max.x && r.Max.y <= Max.y; } + bool Overlaps(const ImRect& r) const { return r.Min.y < Max.y && r.Max.y > Min.y && r.Min.x < Max.x && r.Max.x > Min.x; } + void Add(const ImVec2& p) { if (Min.x > p.x) Min.x = p.x; if (Min.y > p.y) Min.y = p.y; if (Max.x < p.x) Max.x = p.x; if (Max.y < p.y) Max.y = p.y; } + void Add(const ImRect& r) { if (Min.x > r.Min.x) Min.x = r.Min.x; if (Min.y > r.Min.y) Min.y = r.Min.y; if (Max.x < r.Max.x) Max.x = r.Max.x; if (Max.y < r.Max.y) Max.y = r.Max.y; } + void Expand(const float amount) { Min.x -= amount; Min.y -= amount; Max.x += amount; Max.y += amount; } + void Expand(const ImVec2& amount) { Min.x -= amount.x; Min.y -= amount.y; Max.x += amount.x; Max.y += amount.y; } + void Translate(const ImVec2& d) { Min.x += d.x; Min.y += d.y; Max.x += d.x; Max.y += d.y; } + void TranslateX(float dx) { Min.x += dx; Max.x += dx; } + void TranslateY(float dy) { Min.y += dy; Max.y += dy; } + void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max); } // Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not for display. + void ClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(Max, r.Min, r.Max); } // Full version, ensure both points are fully clipped. + void Floor() { Min.x = IM_FLOOR(Min.x); Min.y = IM_FLOOR(Min.y); Max.x = IM_FLOOR(Max.x); Max.y = IM_FLOOR(Max.y); } + bool IsInverted() const { return Min.x > Max.x || Min.y > Max.y; } + ImVec4 ToVec4() const { return ImVec4(Min.x, Min.y, Max.x, Max.y); } +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helper: ImBitArray +inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; } +inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; } +inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; } +inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2) +{ + n2--; + while (n <= n2) + { + int a_mod = (n & 31); + int b_mod = (n2 > (n | 31) ? 31 : (n2 & 31)) + 1; + ImU32 mask = (ImU32)(((ImU64)1 << b_mod) - 1) & ~(ImU32)(((ImU64)1 << a_mod) - 1); + arr[n >> 5] |= mask; + n = (n + 32) & ~31; + } +} + +// Helper: ImBitArray class (wrapper over ImBitArray functions) +// Store 1-bit per value. +template +struct ImBitArray +{ + ImU32 Storage[(BITCOUNT + 31) >> 5]; + ImBitArray() { ClearAllBits(); } + void ClearAllBits() { memset(Storage, 0, sizeof(Storage)); } + void SetAllBits() { memset(Storage, 255, sizeof(Storage)); } + bool TestBit(int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } + void SetBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArraySetBit(Storage, n); } + void ClearBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArrayClearBit(Storage, n); } + void SetBitRange(int n, int n2) { n += OFFSET; n2 += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT && n2 > n && n2 <= BITCOUNT); ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2) + bool operator[](int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } +}; + +// Helper: ImBitVector +// Store 1-bit per value. +struct IMGUI_API ImBitVector +{ + ImVector Storage; + void Create(int sz) { Storage.resize((sz + 31) >> 5); memset(Storage.Data, 0, (size_t)Storage.Size * sizeof(Storage.Data[0])); } + void Clear() { Storage.clear(); } + bool TestBit(int n) const { IM_ASSERT(n < (Storage.Size << 5)); return ImBitArrayTestBit(Storage.Data, n); } + void SetBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArraySetBit(Storage.Data, n); } + void ClearBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArrayClearBit(Storage.Data, n); } +}; + +// Helper: ImSpan<> +// Pointing to a span of data we don't own. +template +struct ImSpan +{ + T* Data; + T* DataEnd; + + // Constructors, destructor + inline ImSpan() { Data = DataEnd = NULL; } + inline ImSpan(T* data, int size) { Data = data; DataEnd = data + size; } + inline ImSpan(T* data, T* data_end) { Data = data; DataEnd = data_end; } + + inline void set(T* data, int size) { Data = data; DataEnd = data + size; } + inline void set(T* data, T* data_end) { Data = data; DataEnd = data_end; } + inline int size() const { return (int)(ptrdiff_t)(DataEnd - Data); } + inline int size_in_bytes() const { return (int)(ptrdiff_t)(DataEnd - Data) * (int)sizeof(T); } + inline T& operator[](int i) { T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } + inline const T& operator[](int i) const { const T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } + + inline T* begin() { return Data; } + inline const T* begin() const { return Data; } + inline T* end() { return DataEnd; } + inline const T* end() const { return DataEnd; } + + // Utilities + inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < DataEnd); const ptrdiff_t off = it - Data; return (int)off; } +}; + +// Helper: ImSpanAllocator<> +// Facilitate storing multiple chunks into a single large block (the "arena") +// - Usage: call Reserve() N times, allocate GetArenaSizeInBytes() worth, pass it to SetArenaBasePtr(), call GetSpan() N times to retrieve the aligned ranges. +template +struct ImSpanAllocator +{ + char* BasePtr; + int CurrOff; + int CurrIdx; + int Offsets[CHUNKS]; + int Sizes[CHUNKS]; + + ImSpanAllocator() { memset(this, 0, sizeof(*this)); } + inline void Reserve(int n, size_t sz, int a=4) { IM_ASSERT(n == CurrIdx && n < CHUNKS); CurrOff = IM_MEMALIGN(CurrOff, a); Offsets[n] = CurrOff; Sizes[n] = (int)sz; CurrIdx++; CurrOff += (int)sz; } + inline int GetArenaSizeInBytes() { return CurrOff; } + inline void SetArenaBasePtr(void* base_ptr) { BasePtr = (char*)base_ptr; } + inline void* GetSpanPtrBegin(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n]); } + inline void* GetSpanPtrEnd(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n] + Sizes[n]); } + template + inline void GetSpan(int n, ImSpan* span) { span->set((T*)GetSpanPtrBegin(n), (T*)GetSpanPtrEnd(n)); } +}; + +// Helper: ImPool<> +// Basic keyed storage for contiguous instances, slow/amortized insertion, O(1) indexable, O(Log N) queries by ID over a dense/hot buffer, +// Honor constructor/destructor. Add/remove invalidate all pointers. Indexes have the same lifetime as the associated object. +typedef int ImPoolIdx; +template +struct ImPool +{ + ImVector Buf; // Contiguous data + ImGuiStorage Map; // ID->Index + ImPoolIdx FreeIdx; // Next free idx to use + ImPoolIdx AliveCount; // Number of active/alive items (for display purpose) + + ImPool() { FreeIdx = AliveCount = 0; } + ~ImPool() { Clear(); } + T* GetByKey(ImGuiID key) { int idx = Map.GetInt(key, -1); return (idx != -1) ? &Buf[idx] : NULL; } + T* GetByIndex(ImPoolIdx n) { return &Buf[n]; } + ImPoolIdx GetIndex(const T* p) const { IM_ASSERT(p >= Buf.Data && p < Buf.Data + Buf.Size); return (ImPoolIdx)(p - Buf.Data); } + T* GetOrAddByKey(ImGuiID key) { int* p_idx = Map.GetIntRef(key, -1); if (*p_idx != -1) return &Buf[*p_idx]; *p_idx = FreeIdx; return Add(); } + bool Contains(const T* p) const { return (p >= Buf.Data && p < Buf.Data + Buf.Size); } + void Clear() { for (int n = 0; n < Map.Data.Size; n++) { int idx = Map.Data[n].val_i; if (idx != -1) Buf[idx].~T(); } Map.Clear(); Buf.clear(); FreeIdx = AliveCount = 0; } + T* Add() { int idx = FreeIdx; if (idx == Buf.Size) { Buf.resize(Buf.Size + 1); FreeIdx++; } else { FreeIdx = *(int*)&Buf[idx]; } IM_PLACEMENT_NEW(&Buf[idx]) T(); AliveCount++; return &Buf[idx]; } + void Remove(ImGuiID key, const T* p) { Remove(key, GetIndex(p)); } + void Remove(ImGuiID key, ImPoolIdx idx) { Buf[idx].~T(); *(int*)&Buf[idx] = FreeIdx; FreeIdx = idx; Map.SetInt(key, -1); AliveCount--; } + void Reserve(int capacity) { Buf.reserve(capacity); Map.Data.reserve(capacity); } + + // To iterate a ImPool: for (int n = 0; n < pool.GetMapSize(); n++) if (T* t = pool.TryGetMapData(n)) { ... } + // Can be avoided if you know .Remove() has never been called on the pool, or AliveCount == GetMapSize() + int GetAliveCount() const { return AliveCount; } // Number of active/alive items in the pool (for display purpose) + int GetBufSize() const { return Buf.Size; } + int GetMapSize() const { return Map.Data.Size; } // It is the map we need iterate to find valid items, since we don't have "alive" storage anywhere + T* TryGetMapData(ImPoolIdx n) { int idx = Map.Data[n].val_i; if (idx == -1) return NULL; return GetByIndex(idx); } +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + int GetSize() { return GetMapSize(); } // For ImPlot: should use GetMapSize() from (IMGUI_VERSION_NUM >= 18304) +#endif +}; + +// Helper: ImChunkStream<> +// Build and iterate a contiguous stream of variable-sized structures. +// This is used by Settings to store persistent data while reducing allocation count. +// We store the chunk size first, and align the final size on 4 bytes boundaries. +// The tedious/zealous amount of casting is to avoid -Wcast-align warnings. +template +struct ImChunkStream +{ + ImVector Buf; + + void clear() { Buf.clear(); } + bool empty() const { return Buf.Size == 0; } + int size() const { return Buf.Size; } + T* alloc_chunk(size_t sz) { size_t HDR_SZ = 4; sz = IM_MEMALIGN(HDR_SZ + sz, 4u); int off = Buf.Size; Buf.resize(off + (int)sz); ((int*)(void*)(Buf.Data + off))[0] = (int)sz; return (T*)(void*)(Buf.Data + off + (int)HDR_SZ); } + T* begin() { size_t HDR_SZ = 4; if (!Buf.Data) return NULL; return (T*)(void*)(Buf.Data + HDR_SZ); } + T* next_chunk(T* p) { size_t HDR_SZ = 4; IM_ASSERT(p >= begin() && p < end()); p = (T*)(void*)((char*)(void*)p + chunk_size(p)); if (p == (T*)(void*)((char*)end() + HDR_SZ)) return (T*)0; IM_ASSERT(p < end()); return p; } + int chunk_size(const T* p) { return ((const int*)p)[-1]; } + T* end() { return (T*)(void*)(Buf.Data + Buf.Size); } + int offset_from_ptr(const T* p) { IM_ASSERT(p >= begin() && p < end()); const ptrdiff_t off = (const char*)p - Buf.Data; return (int)off; } + T* ptr_from_offset(int off) { IM_ASSERT(off >= 4 && off < Buf.Size); return (T*)(void*)(Buf.Data + off); } + void swap(ImChunkStream& rhs) { rhs.Buf.swap(Buf); } + +}; + +// Helper: ImGuiTextIndex<> +// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. +struct ImGuiTextIndex +{ + ImVector LineOffsets; + int EndOffset = 0; // Because we don't own text buffer we need to maintain EndOffset (may bake in LineOffsets?) + + void clear() { LineOffsets.clear(); EndOffset = 0; } + int size() { return LineOffsets.Size; } + const char* get_line_begin(const char* base, int n) { return base + LineOffsets[n]; } + const char* get_line_end(const char* base, int n) { return base + (n + 1 < LineOffsets.Size ? (LineOffsets[n + 1] - 1) : EndOffset); } + void append(const char* base, int old_size, int new_size); +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList support +//----------------------------------------------------------------------------- + +// ImDrawList: Helper function to calculate a circle's segment count given its radius and a "maximum error" value. +// Estimation of number of circle segment based on error is derived using method described in https://stackoverflow.com/a/2244088/15194693 +// Number of segments (N) is calculated using equation: +// N = ceil ( pi / acos(1 - error / r) ) where r > 0, error <= r +// Our equation is significantly simpler that one in the post thanks for choosing segment that is +// perpendicular to X axis. Follow steps in the article from this starting condition and you will +// will get this result. +// +// Rendering circles with an odd number of segments, while mathematically correct will produce +// asymmetrical results on the raster grid. Therefore we're rounding N to next even number (7->8, 8->8, 9->10 etc.) +#define IM_ROUNDUP_TO_EVEN(_V) ((((_V) + 1) / 2) * 2) +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN 4 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX 512 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(_RAD,_MAXERROR) ImClamp(IM_ROUNDUP_TO_EVEN((int)ImCeil(IM_PI / ImAcos(1 - ImMin((_MAXERROR), (_RAD)) / (_RAD)))), IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX) + +// Raw equation from IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC rewritten for 'r' and 'error'. +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(_N,_MAXERROR) ((_MAXERROR) / (1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI)))) +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_ERROR(_N,_RAD) ((1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI))) / (_RAD)) + +// ImDrawList: Lookup table size for adaptive arc drawing, cover full circle. +#ifndef IM_DRAWLIST_ARCFAST_TABLE_SIZE +#define IM_DRAWLIST_ARCFAST_TABLE_SIZE 48 // Number of samples in lookup table. +#endif +#define IM_DRAWLIST_ARCFAST_SAMPLE_MAX IM_DRAWLIST_ARCFAST_TABLE_SIZE // Sample index _PathArcToFastEx() for 360 angle. + +// Data shared between all ImDrawList instances +// You may want to create your own instance of this if you want to use ImDrawList completely without ImGui. In that case, watch out for future changes to this structure. +struct IMGUI_API ImDrawListSharedData +{ + ImVec2 TexUvWhitePixel; // UV of white pixel in the atlas + ImFont* Font; // Current/default font (optional, for simplified AddText overload) + float FontSize; // Current/default font size (optional, for simplified AddText overload) + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() + float CircleSegmentMaxError; // Number of circle segments to use per pixel of radius for AddCircle() etc + ImVec4 ClipRectFullscreen; // Value for PushClipRectFullscreen() + ImDrawListFlags InitialFlags; // Initial flags at the beginning of the frame (it is possible to alter flags on a per-drawlist basis afterwards) + + // [Internal] Temp write buffer + ImVector TempBuffer; + + // [Internal] Lookup tables + ImVec2 ArcFastVtx[IM_DRAWLIST_ARCFAST_TABLE_SIZE]; // Sample points on the quarter of the circle. + float ArcFastRadiusCutoff; // Cutoff radius after which arc drawing will fallback to slower PathArcTo() + ImU8 CircleSegmentCounts[64]; // Precomputed segment count for given radius before we calculate it dynamically (to avoid calculation overhead) + const ImVec4* TexUvLines; // UV of anti-aliased lines in the atlas + + ImDrawListSharedData(); + void SetCircleTessellationMaxError(float max_error); +}; + +struct ImDrawDataBuilder +{ + ImVector Layers[2]; // Global layers for: regular, tooltip + + void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].resize(0); } + void ClearFreeMemory() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].clear(); } + int GetDrawListCount() const { int count = 0; for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) count += Layers[n].Size; return count; } + IMGUI_API void FlattenIntoSingleLayer(); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Widgets support: flags, enums, data structures +//----------------------------------------------------------------------------- + +// Flags used by upcoming items +// - input: PushItemFlag() manipulates g.CurrentItemFlags, ItemAdd() calls may add extra flags. +// - output: stored in g.LastItemData.InFlags +// Current window shared by all windows. +// This is going to be exposed in imgui.h when stabilized enough. +enum ImGuiItemFlags_ +{ + // Controlled by user + ImGuiItemFlags_None = 0, + ImGuiItemFlags_NoTabStop = 1 << 0, // false // Disable keyboard tabbing (FIXME: should merge with _NoNav) + ImGuiItemFlags_ButtonRepeat = 1 << 1, // false // Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings. + ImGuiItemFlags_Disabled = 1 << 2, // false // Disable interactions but doesn't affect visuals. See BeginDisabled()/EndDisabled(). See github.com/ocornut/imgui/issues/211 + ImGuiItemFlags_NoNav = 1 << 3, // false // Disable keyboard/gamepad directional navigation (FIXME: should merge with _NoTabStop) + ImGuiItemFlags_NoNavDefaultFocus = 1 << 4, // false // Disable item being a candidate for default focus (e.g. used by title bar items) + ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, // false // Disable MenuItem/Selectable() automatically closing their popup window + ImGuiItemFlags_MixedValue = 1 << 6, // false // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets) + ImGuiItemFlags_ReadOnly = 1 << 7, // false // [ALPHA] Allow hovering interactions but underlying value is not changed. + ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, // false // Disable hoverable check in ItemHoverable() + + // Controlled by widget code + ImGuiItemFlags_Inputable = 1 << 10, // false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature. +}; + +// Status flags for an already submitted item +// - output: stored in g.LastItemData.StatusFlags +enum ImGuiItemStatusFlags_ +{ + ImGuiItemStatusFlags_None = 0, + ImGuiItemStatusFlags_HoveredRect = 1 << 0, // Mouse position is within item rectangle (does NOT mean that the window is in correct z-order and can be hovered!, this is only one part of the most-common IsItemHovered test) + ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, // g.LastItemData.DisplayRect is valid + ImGuiItemStatusFlags_Edited = 1 << 2, // Value exposed by item was edited in the current frame (should match the bool return value of most widgets) + ImGuiItemStatusFlags_ToggledSelection = 1 << 3, // Set when Selectable(), TreeNode() reports toggling a selection. We can't report "Selected", only state changes, in order to easily handle clipping with less issues. + ImGuiItemStatusFlags_ToggledOpen = 1 << 4, // Set when TreeNode() reports toggling their open state. + ImGuiItemStatusFlags_HasDeactivated = 1 << 5, // Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag. + ImGuiItemStatusFlags_Deactivated = 1 << 6, // Only valid if ImGuiItemStatusFlags_HasDeactivated is set. + ImGuiItemStatusFlags_HoveredWindow = 1 << 7, // Override the HoveredWindow test to allow cross-window hover testing. + ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, // Set when the Focusable item just got focused by Tabbing (FIXME: to be removed soon) + ImGuiItemStatusFlags_Visible = 1 << 9, // [WIP] Set when item is overlapping the current clipping rectangle (Used internally. Please don't use yet: API/system will change as we refactor Itemadd()). + +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiItemStatusFlags_Openable = 1 << 20, // Item is an openable (e.g. TreeNode) + ImGuiItemStatusFlags_Opened = 1 << 21, // + ImGuiItemStatusFlags_Checkable = 1 << 22, // Item is a checkable (e.g. CheckBox, MenuItem) + ImGuiItemStatusFlags_Checked = 1 << 23, // +#endif +}; + +// Extend ImGuiInputTextFlags_ +enum ImGuiInputTextFlagsPrivate_ +{ + // [Internal] + ImGuiInputTextFlags_Multiline = 1 << 26, // For internal use by InputTextMultiline() + ImGuiInputTextFlags_NoMarkEdited = 1 << 27, // For internal use by functions using InputText() before reformatting data + ImGuiInputTextFlags_MergedItem = 1 << 28, // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match. +}; + +// Extend ImGuiButtonFlags_ +enum ImGuiButtonFlagsPrivate_ +{ + ImGuiButtonFlags_PressedOnClick = 1 << 4, // return true on click (mouse down event) + ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, // [Default] return true on click + release on same item <-- this is what the majority of Button are using + ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, // return true on click + release even if the release event is not done while hovering the item + ImGuiButtonFlags_PressedOnRelease = 1 << 7, // return true on release (default requires click+release) + ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, // return true on double-click (default requires click+release) + ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, // return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers) + ImGuiButtonFlags_Repeat = 1 << 10, // hold to repeat + ImGuiButtonFlags_FlattenChildren = 1 << 11, // allow interactions even if a child window is overlapping + ImGuiButtonFlags_AllowItemOverlap = 1 << 12, // require previous frame HoveredId to either match id or be null before being usable, use along with SetItemAllowOverlap() + ImGuiButtonFlags_DontClosePopups = 1 << 13, // disable automatically closing parent popup on press // [UNUSED] + //ImGuiButtonFlags_Disabled = 1 << 14, // disable interactions -> use BeginDisabled() or ImGuiItemFlags_Disabled + ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine + ImGuiButtonFlags_NoKeyModifiers = 1 << 16, // disable mouse interaction if a key modifier is held + ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only) + ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated (FIXME: this is essentially used everytime an item uses ImGuiItemFlags_NoNav, but because legacy specs don't requires LastItemData to be set ButtonBehavior(), we can't poll g.LastItemData.InFlags) + ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, // don't report as hovered when nav focus is on this item + ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, // don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, // don't test key/input owner when polling the key (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, +}; + +// Extend ImGuiComboFlags_ +enum ImGuiComboFlagsPrivate_ +{ + ImGuiComboFlags_CustomPreview = 1 << 20, // enable BeginComboPreview() +}; + +// Extend ImGuiSliderFlags_ +enum ImGuiSliderFlagsPrivate_ +{ + ImGuiSliderFlags_Vertical = 1 << 20, // Should this slider be orientated vertically? + ImGuiSliderFlags_ReadOnly = 1 << 21, +}; + +// Extend ImGuiSelectableFlags_ +enum ImGuiSelectableFlagsPrivate_ +{ + // NB: need to be in sync with last value of ImGuiSelectableFlags_ + ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, + ImGuiSelectableFlags_SelectOnNav = 1 << 21, // (WIP) Auto-select when moved into. This is not exposed in public API as to handle multi-select and modifiers we will need user to explicitly control focus scope. May be replaced with a BeginSelection() API. + ImGuiSelectableFlags_SelectOnClick = 1 << 22, // Override button behavior to react on Click (default is Click+Release) + ImGuiSelectableFlags_SelectOnRelease = 1 << 23, // Override button behavior to react on Release (default is Click+Release) + ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, // Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus) + ImGuiSelectableFlags_DrawHoveredWhenHeld = 1 << 25, // Always show active when held, even is not hovered. This concept could probably be renamed/formalized somehow. + ImGuiSelectableFlags_SetNavIdOnHover = 1 << 26, // Set Nav/Focus ID on mouse hover (used by MenuItem) + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 27, // Disable padding each side with ItemSpacing * 0.5f + ImGuiSelectableFlags_NoSetKeyOwner = 1 << 28, // Don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) +}; + +// Extend ImGuiTreeNodeFlags_ +enum ImGuiTreeNodeFlagsPrivate_ +{ + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, +}; + +enum ImGuiSeparatorFlags_ +{ + ImGuiSeparatorFlags_None = 0, + ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar + ImGuiSeparatorFlags_Vertical = 1 << 1, + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, +}; + +enum ImGuiTextFlags_ +{ + ImGuiTextFlags_None = 0, + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, +}; + +enum ImGuiTooltipFlags_ +{ + ImGuiTooltipFlags_None = 0, + ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0, // Override will clear/ignore previously submitted tooltip (defaults to append) +}; + +// FIXME: this is in development, not exposed/functional as a generic feature yet. +// Horizontal/Vertical enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiLayoutType_ +{ + ImGuiLayoutType_Horizontal = 0, + ImGuiLayoutType_Vertical = 1 +}; + +enum ImGuiLogType +{ + ImGuiLogType_None = 0, + ImGuiLogType_TTY, + ImGuiLogType_File, + ImGuiLogType_Buffer, + ImGuiLogType_Clipboard, +}; + +// X/Y enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiAxis +{ + ImGuiAxis_None = -1, + ImGuiAxis_X = 0, + ImGuiAxis_Y = 1 +}; + +enum ImGuiPlotType +{ + ImGuiPlotType_Lines, + ImGuiPlotType_Histogram, +}; + +enum ImGuiPopupPositionPolicy +{ + ImGuiPopupPositionPolicy_Default, + ImGuiPopupPositionPolicy_ComboBox, + ImGuiPopupPositionPolicy_Tooltip, +}; + +struct ImGuiDataTypeTempStorage +{ + ImU8 Data[8]; // Can fit any data up to ImGuiDataType_COUNT +}; + +// Type information associated to one ImGuiDataType. Retrieve with DataTypeGetInfo(). +struct ImGuiDataTypeInfo +{ + size_t Size; // Size in bytes + const char* Name; // Short descriptive name for the type, for debugging + const char* PrintFmt; // Default printf format for the type + const char* ScanFmt; // Default scanf format for the type +}; + +// Extend ImGuiDataType_ +enum ImGuiDataTypePrivate_ +{ + ImGuiDataType_String = ImGuiDataType_COUNT + 1, + ImGuiDataType_Pointer, + ImGuiDataType_ID, +}; + +// Stacked color modifier, backup of modified data so we can restore it +struct ImGuiColorMod +{ + ImGuiCol Col; + ImVec4 BackupValue; +}; + +// Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable. +struct ImGuiStyleMod +{ + ImGuiStyleVar VarIdx; + union { int BackupInt[2]; float BackupFloat[2]; }; + ImGuiStyleMod(ImGuiStyleVar idx, int v) { VarIdx = idx; BackupInt[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, float v) { VarIdx = idx; BackupFloat[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, ImVec2 v) { VarIdx = idx; BackupFloat[0] = v.x; BackupFloat[1] = v.y; } +}; + +// Storage data for BeginComboPreview()/EndComboPreview() +struct IMGUI_API ImGuiComboPreviewData +{ + ImRect PreviewRect; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec2 BackupCursorPosPrevLine; + float BackupPrevLineTextBaseOffset; + ImGuiLayoutType BackupLayout; + + ImGuiComboPreviewData() { memset(this, 0, sizeof(*this)); } +}; + +// Stacked storage data for BeginGroup()/EndGroup() +struct IMGUI_API ImGuiGroupData +{ + ImGuiID WindowID; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec1 BackupIndent; + ImVec1 BackupGroupOffset; + ImVec2 BackupCurrLineSize; + float BackupCurrLineTextBaseOffset; + ImGuiID BackupActiveIdIsAlive; + bool BackupActiveIdPreviousFrameIsAlive; + bool BackupHoveredIdIsAlive; + bool EmitItem; +}; + +// Simple column measurement, currently used for MenuItem() only.. This is very short-sighted/throw-away code and NOT a generic helper. +struct IMGUI_API ImGuiMenuColumns +{ + ImU32 TotalWidth; + ImU32 NextTotalWidth; + ImU16 Spacing; + ImU16 OffsetIcon; // Always zero for now + ImU16 OffsetLabel; // Offsets are locked in Update() + ImU16 OffsetShortcut; + ImU16 OffsetMark; + ImU16 Widths[4]; // Width of: Icon, Label, Shortcut, Mark (accumulators for current frame) + + ImGuiMenuColumns() { memset(this, 0, sizeof(*this)); } + void Update(float spacing, bool window_reappearing); + float DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark); + void CalcNextTotalWidth(bool update_offsets); +}; + +// Internal state of the currently focused/edited text input box +// For a given item ID, access with ImGui::GetInputTextState() +struct IMGUI_API ImGuiInputTextState +{ + ImGuiID ID; // widget id owning the text state + int CurLenW, CurLenA; // we need to maintain our buffer length in both UTF-8 and wchar format. UTF-8 length is valid even if TextA is not. + ImVector TextW; // edit buffer, we need to persist but can't guarantee the persistence of the user-provided buffer. so we copy into own buffer. + ImVector TextA; // temporary UTF8 buffer for callbacks and other operations. this is not updated in every code-path! size=capacity. + ImVector InitialTextA; // backup of end-user buffer at the time of focus (in UTF-8, unaltered) + bool TextAIsValid; // temporary UTF8 buffer is not initially valid before we make the widget active (until then we pull the data from user argument) + int BufCapacityA; // end-user buffer capacity + float ScrollX; // horizontal scrolling/offset + ImStb::STB_TexteditState Stb; // state for stb_textedit.h + float CursorAnim; // timer for cursor blink, reset on every user action so the cursor reappears immediately + bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!) + bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection + bool Edited; // edited this frame + ImGuiInputTextFlags Flags; // copy of InputText() flags. may be used to check if e.g. ImGuiInputTextFlags_Password is set. + + ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } + void ClearText() { CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); } + void ClearFreeMemory() { TextW.clear(); TextA.clear(); InitialTextA.clear(); } + int GetUndoAvailCount() const { return Stb.undostate.undo_point; } + int GetRedoAvailCount() const { return STB_TEXTEDIT_UNDOSTATECOUNT - Stb.undostate.redo_point; } + void OnKeyPressed(int key); // Cannot be inline because we call in code in stb_textedit.h implementation + + // Cursor & Selection + void CursorAnimReset() { CursorAnim = -0.30f; } // After a user-input the cursor stays on for a while without blinking + void CursorClamp() { Stb.cursor = ImMin(Stb.cursor, CurLenW); Stb.select_start = ImMin(Stb.select_start, CurLenW); Stb.select_end = ImMin(Stb.select_end, CurLenW); } + bool HasSelection() const { return Stb.select_start != Stb.select_end; } + void ClearSelection() { Stb.select_start = Stb.select_end = Stb.cursor; } + int GetCursorPos() const { return Stb.cursor; } + int GetSelectionStart() const { return Stb.select_start; } + int GetSelectionEnd() const { return Stb.select_end; } + void SelectAll() { Stb.select_start = 0; Stb.cursor = Stb.select_end = CurLenW; Stb.has_preferred_x = 0; } +}; + +// Storage for current popup stack +struct ImGuiPopupData +{ + ImGuiID PopupId; // Set on OpenPopup() + ImGuiWindow* Window; // Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup() + ImGuiWindow* BackupNavWindow;// Set on OpenPopup(), a NavWindow that will be restored on popup close + int ParentNavLayer; // Resolved on BeginPopup(). Actually a ImGuiNavLayer type (declared down below), initialized to -1 which is not part of an enum, but serves well-enough as "not any of layers" value + int OpenFrameCount; // Set on OpenPopup() + ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) + ImVec2 OpenPopupPos; // Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse) + ImVec2 OpenMousePos; // Set on OpenPopup(), copy of mouse position at the time of opening popup + + ImGuiPopupData() { memset(this, 0, sizeof(*this)); ParentNavLayer = OpenFrameCount = -1; } +}; + +enum ImGuiNextWindowDataFlags_ +{ + ImGuiNextWindowDataFlags_None = 0, + ImGuiNextWindowDataFlags_HasPos = 1 << 0, + ImGuiNextWindowDataFlags_HasSize = 1 << 1, + ImGuiNextWindowDataFlags_HasContentSize = 1 << 2, + ImGuiNextWindowDataFlags_HasCollapsed = 1 << 3, + ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, + ImGuiNextWindowDataFlags_HasFocus = 1 << 5, + ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, + ImGuiNextWindowDataFlags_HasScroll = 1 << 7, +}; + +// Storage for SetNexWindow** functions +struct ImGuiNextWindowData +{ + ImGuiNextWindowDataFlags Flags; + ImGuiCond PosCond; + ImGuiCond SizeCond; + ImGuiCond CollapsedCond; + ImVec2 PosVal; + ImVec2 PosPivotVal; + ImVec2 SizeVal; + ImVec2 ContentSizeVal; + ImVec2 ScrollVal; + bool CollapsedVal; + ImRect SizeConstraintRect; + ImGuiSizeCallback SizeCallback; + void* SizeCallbackUserData; + float BgAlphaVal; // Override background alpha + ImVec2 MenuBarOffsetMinVal; // (Always on) This is not exposed publicly, so we don't clear it and it doesn't have a corresponding flag (could we? for consistency?) + + ImGuiNextWindowData() { memset(this, 0, sizeof(*this)); } + inline void ClearFlags() { Flags = ImGuiNextWindowDataFlags_None; } +}; + +enum ImGuiNextItemDataFlags_ +{ + ImGuiNextItemDataFlags_None = 0, + ImGuiNextItemDataFlags_HasWidth = 1 << 0, + ImGuiNextItemDataFlags_HasOpen = 1 << 1, +}; + +struct ImGuiNextItemData +{ + ImGuiNextItemDataFlags Flags; + float Width; // Set by SetNextItemWidth() + ImGuiID FocusScopeId; // Set by SetNextItemMultiSelectData() (!= 0 signify value has been set, so it's an alternate version of HasSelectionData, we don't use Flags for this because they are cleared too early. This is mostly used for debugging) + ImGuiCond OpenCond; + bool OpenVal; // Set by SetNextItemOpen() + + ImGuiNextItemData() { memset(this, 0, sizeof(*this)); } + inline void ClearFlags() { Flags = ImGuiNextItemDataFlags_None; } // Also cleared manually by ItemAdd()! +}; + +// Status storage for the last submitted item +struct ImGuiLastItemData +{ + ImGuiID ID; + ImGuiItemFlags InFlags; // See ImGuiItemFlags_ + ImGuiItemStatusFlags StatusFlags; // See ImGuiItemStatusFlags_ + ImRect Rect; // Full rectangle + ImRect NavRect; // Navigation scoring rectangle (not displayed) + ImRect DisplayRect; // Display rectangle (only if ImGuiItemStatusFlags_HasDisplayRect is set) + + ImGuiLastItemData() { memset(this, 0, sizeof(*this)); } +}; + +struct IMGUI_API ImGuiStackSizes +{ + short SizeOfIDStack; + short SizeOfColorStack; + short SizeOfStyleVarStack; + short SizeOfFontStack; + short SizeOfFocusScopeStack; + short SizeOfGroupStack; + short SizeOfItemFlagsStack; + short SizeOfBeginPopupStack; + short SizeOfDisabledStack; + + ImGuiStackSizes() { memset(this, 0, sizeof(*this)); } + void SetToCurrentState(); + void CompareWithCurrentState(); +}; + +// Data saved for each window pushed into the stack +struct ImGuiWindowStackData +{ + ImGuiWindow* Window; + ImGuiLastItemData ParentLastItemDataBackup; + ImGuiStackSizes StackSizesOnBegin; // Store size of various stacks for asserting +}; + +struct ImGuiShrinkWidthItem +{ + int Index; + float Width; + float InitialWidth; +}; + +struct ImGuiPtrOrIndex +{ + void* Ptr; // Either field can be set, not both. e.g. Dock node tab bars are loose while BeginTabBar() ones are in a pool. + int Index; // Usually index in a main pool. + + ImGuiPtrOrIndex(void* ptr) { Ptr = ptr; Index = -1; } + ImGuiPtrOrIndex(int index) { Ptr = NULL; Index = index; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Inputs support +//----------------------------------------------------------------------------- + +typedef ImBitArray ImBitArrayForNamedKeys; + +// [Internal] Key ranges +#define ImGuiKey_LegacyNativeKey_BEGIN 0 +#define ImGuiKey_LegacyNativeKey_END 512 +#define ImGuiKey_Keyboard_BEGIN (ImGuiKey_NamedKey_BEGIN) +#define ImGuiKey_Keyboard_END (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_BEGIN (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_END (ImGuiKey_GamepadRStickDown + 1) +#define ImGuiKey_Mouse_BEGIN (ImGuiKey_MouseLeft) +#define ImGuiKey_Mouse_END (ImGuiKey_MouseWheelY + 1) +#define ImGuiKey_Aliases_BEGIN (ImGuiKey_Mouse_BEGIN) +#define ImGuiKey_Aliases_END (ImGuiKey_Mouse_END) + +// [Internal] Named shortcuts for Navigation +#define ImGuiKey_NavKeyboardTweakSlow ImGuiMod_Ctrl +#define ImGuiKey_NavKeyboardTweakFast ImGuiMod_Shift +#define ImGuiKey_NavGamepadTweakSlow ImGuiKey_GamepadL1 +#define ImGuiKey_NavGamepadTweakFast ImGuiKey_GamepadR1 +#define ImGuiKey_NavGamepadActivate ImGuiKey_GamepadFaceDown +#define ImGuiKey_NavGamepadCancel ImGuiKey_GamepadFaceRight +#define ImGuiKey_NavGamepadMenu ImGuiKey_GamepadFaceLeft +#define ImGuiKey_NavGamepadInput ImGuiKey_GamepadFaceUp + +enum ImGuiInputEventType +{ + ImGuiInputEventType_None = 0, + ImGuiInputEventType_MousePos, + ImGuiInputEventType_MouseWheel, + ImGuiInputEventType_MouseButton, + ImGuiInputEventType_Key, + ImGuiInputEventType_Text, + ImGuiInputEventType_Focus, + ImGuiInputEventType_COUNT +}; + +enum ImGuiInputSource +{ + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, + ImGuiInputSource_Keyboard, + ImGuiInputSource_Gamepad, + ImGuiInputSource_Clipboard, // Currently only used by InputText() + ImGuiInputSource_Nav, // Stored in g.ActiveIdSource only + ImGuiInputSource_COUNT +}; + +// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension? +// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor' +struct ImGuiInputEventMousePos { float PosX, PosY; }; +struct ImGuiInputEventMouseWheel { float WheelX, WheelY; }; +struct ImGuiInputEventMouseButton { int Button; bool Down; }; +struct ImGuiInputEventKey { ImGuiKey Key; bool Down; float AnalogValue; }; +struct ImGuiInputEventText { unsigned int Char; }; +struct ImGuiInputEventAppFocused { bool Focused; }; + +struct ImGuiInputEvent +{ + ImGuiInputEventType Type; + ImGuiInputSource Source; + union + { + ImGuiInputEventMousePos MousePos; // if Type == ImGuiInputEventType_MousePos + ImGuiInputEventMouseWheel MouseWheel; // if Type == ImGuiInputEventType_MouseWheel + ImGuiInputEventMouseButton MouseButton; // if Type == ImGuiInputEventType_MouseButton + ImGuiInputEventKey Key; // if Type == ImGuiInputEventType_Key + ImGuiInputEventText Text; // if Type == ImGuiInputEventType_Text + ImGuiInputEventAppFocused AppFocused; // if Type == ImGuiInputEventType_Focus + }; + bool AddedByTestEngine; + + ImGuiInputEvent() { memset(this, 0, sizeof(*this)); } +}; + +// Input function taking an 'ImGuiID owner_id' argument defaults to (ImGuiKeyOwner_Any == 0) aka don't test ownership, which matches legacy behavior. +#define ImGuiKeyOwner_Any ((ImGuiID)0) // Accept key that have an owner, UNLESS a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. +#define ImGuiKeyOwner_None ((ImGuiID)-1) // Require key to have no owner. + +typedef ImS16 ImGuiKeyRoutingIndex; + +// Routing table entry (sizeof() == 16 bytes) +struct ImGuiKeyRoutingData +{ + ImGuiKeyRoutingIndex NextEntryIndex; + ImU16 Mods; // Technically we'd only need 4 bits but for simplify we store ImGuiMod_ values which need 16 bits. + ImU8 RoutingNextScore; // Lower is better (0: perfect score) + ImGuiID RoutingCurr; + ImGuiID RoutingNext; + + ImGuiKeyRoutingData() { NextEntryIndex = -1; Mods = 0; RoutingNextScore = 255; RoutingCurr = RoutingNext = ImGuiKeyOwner_None; } +}; + +// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching. +// Stored in main context (1 instance) +struct ImGuiKeyRoutingTable +{ + ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; // Index of first entry in Entries[] + ImVector Entries; + ImVector EntriesNext; // Double-buffer to avoid reallocation (could use a shared buffer) + + ImGuiKeyRoutingTable() { Clear(); } + void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Index); n++) Index[n] = -1; Entries.clear(); EntriesNext.clear(); } +}; + +// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features) +// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData. +struct ImGuiKeyOwnerData +{ + ImGuiID OwnerCurr; + ImGuiID OwnerNext; + bool LockThisFrame; // Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame. + bool LockUntilRelease; // Reading this key requires explicit owner id (until key is released). Set by ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well. + + ImGuiKeyOwnerData() { OwnerCurr = OwnerNext = ImGuiKeyOwner_None; LockThisFrame = LockUntilRelease = false; } +}; + +// Flags for extended versions of IsKeyPressed(), IsMouseClicked(), Shortcut(), SetKeyOwner(), SetItemKeyOwner() +// Don't mistake with ImGuiInputTextFlags! (for ImGui::InputText() function) +enum ImGuiInputFlags_ +{ + // Flags for IsKeyPressed(), IsMouseClicked(), Shortcut() + ImGuiInputFlags_None = 0, + ImGuiInputFlags_Repeat = 1 << 0, // Return true on successive repeats. Default for legacy IsKeyPressed(). NOT Default for legacy IsMouseClicked(). MUST BE == 1. + ImGuiInputFlags_RepeatRateDefault = 1 << 1, // Repeat rate: Regular (default) + ImGuiInputFlags_RepeatRateNavMove = 1 << 2, // Repeat rate: Fast + ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, // Repeat rate: Faster + ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, + + // Flags for SetItemKeyOwner() + ImGuiInputFlags_CondHovered = 1 << 4, // Only set if item is hovered (default to both) + ImGuiInputFlags_CondActive = 1 << 5, // Only set if item is active (default to both) + ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + + // Flags for SetKeyOwner(), SetItemKeyOwner() + ImGuiInputFlags_LockThisFrame = 1 << 6, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared at end of frame. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + ImGuiInputFlags_LockUntilRelease = 1 << 7, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared when the key is released or at end of each frame if key is released. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + + // Routing policies for Shortcut() + low-level SetShortcutRouting() + // - The general idea is that several callers register interest in a shortcut, and only one owner gets it. + // - When a policy (other than _RouteAlways) is set, Shortcut() will register itself with SetShortcutRouting(), + // allowing the system to decide where to route the input among other route-aware calls. + // - Shortcut() uses ImGuiInputFlags_RouteFocused by default: meaning that a simple Shortcut() poll + // will register a route and only succeed when parent window is in the focus stack and if no-one + // with a higher priority is claiming the shortcut. + // - Using ImGuiInputFlags_RouteAlways is roughly equivalent to doing e.g. IsKeyPressed(key) + testing mods. + // - Priorities: GlobalHigh > Focused (when owner is active item) > Global > Focused (when focused window) > GlobalLow. + // - Can select only 1 policy among all available. + ImGuiInputFlags_RouteFocused = 1 << 8, // (Default) Register focused route: Accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window. + ImGuiInputFlags_RouteGlobalLow = 1 << 9, // Register route globally (lowest priority: unless a focused window or active item registered the route) -> recommended Global priority. + ImGuiInputFlags_RouteGlobal = 1 << 10, // Register route globally (medium priority: unless an active item registered the route, e.g. CTRL+A registered by InputText). + ImGuiInputFlags_RouteGlobalHigh = 1 << 11, // Register route globally (highest priority: unlikely you need to use that: will interfere with every active items) + ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, // _Always not part of this! + ImGuiInputFlags_RouteAlways = 1 << 12, // Do not register route, poll keys directly. + ImGuiInputFlags_RouteUnlessBgFocused= 1 << 13, // Global routes will not be applied if underlying background/void is focused (== no Dear ImGui windows are focused). Useful for overlay applications. + ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, + + // [Internal] Mask of which function support which flags + ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, + ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, + ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, + ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, +}; + +//----------------------------------------------------------------------------- +// [SECTION] Clipper support +//----------------------------------------------------------------------------- + +struct ImGuiListClipperRange +{ + int Min; + int Max; + bool PosToIndexConvert; // Begin/End are absolute position (will be converted to indices later) + ImS8 PosToIndexOffsetMin; // Add to Min after converting to indices + ImS8 PosToIndexOffsetMax; // Add to Min after converting to indices + + static ImGuiListClipperRange FromIndices(int min, int max) { ImGuiListClipperRange r = { min, max, false, 0, 0 }; return r; } + static ImGuiListClipperRange FromPositions(float y1, float y2, int off_min, int off_max) { ImGuiListClipperRange r = { (int)y1, (int)y2, true, (ImS8)off_min, (ImS8)off_max }; return r; } +}; + +// Temporary clipper data, buffers shared/reused between instances +struct ImGuiListClipperData +{ + ImGuiListClipper* ListClipper; + float LossynessOffset; + int StepNo; + int ItemsFrozen; + ImVector Ranges; + + ImGuiListClipperData() { memset(this, 0, sizeof(*this)); } + void Reset(ImGuiListClipper* clipper) { ListClipper = clipper; StepNo = ItemsFrozen = 0; Ranges.resize(0); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Navigation support +//----------------------------------------------------------------------------- + +enum ImGuiActivateFlags_ +{ + ImGuiActivateFlags_None = 0, + ImGuiActivateFlags_PreferInput = 1 << 0, // Favor activation that requires keyboard text input (e.g. for Slider/Drag). Default if keyboard is available. + ImGuiActivateFlags_PreferTweak = 1 << 1, // Favor activation for tweaking with arrows or gamepad (e.g. for Slider/Drag). Default if keyboard is not available. + ImGuiActivateFlags_TryToPreserveState = 1 << 2, // Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection) +}; + +// Early work-in-progress API for ScrollToItem() +enum ImGuiScrollFlags_ +{ + ImGuiScrollFlags_None = 0, + ImGuiScrollFlags_KeepVisibleEdgeX = 1 << 0, // If item is not visible: scroll as little as possible on X axis to bring item back into view [default for X axis] + ImGuiScrollFlags_KeepVisibleEdgeY = 1 << 1, // If item is not visible: scroll as little as possible on Y axis to bring item back into view [default for Y axis for windows that are already visible] + ImGuiScrollFlags_KeepVisibleCenterX = 1 << 2, // If item is not visible: scroll to make the item centered on X axis [rarely used] + ImGuiScrollFlags_KeepVisibleCenterY = 1 << 3, // If item is not visible: scroll to make the item centered on Y axis + ImGuiScrollFlags_AlwaysCenterX = 1 << 4, // Always center the result item on X axis [rarely used] + ImGuiScrollFlags_AlwaysCenterY = 1 << 5, // Always center the result item on Y axis [default for Y axis for appearing window) + ImGuiScrollFlags_NoScrollParent = 1 << 6, // Disable forwarding scrolling to parent window if required to keep item/rect visible (only scroll window the function was applied to). + ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, + ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, +}; + +enum ImGuiNavHighlightFlags_ +{ + ImGuiNavHighlightFlags_None = 0, + ImGuiNavHighlightFlags_TypeDefault = 1 << 0, + ImGuiNavHighlightFlags_TypeThin = 1 << 1, + ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) _even_ when using the mouse. + ImGuiNavHighlightFlags_NoRounding = 1 << 3, +}; + +enum ImGuiNavMoveFlags_ +{ + ImGuiNavMoveFlags_None = 0, + ImGuiNavMoveFlags_LoopX = 1 << 0, // On failed request, restart from opposite side + ImGuiNavMoveFlags_LoopY = 1 << 1, + ImGuiNavMoveFlags_WrapX = 1 << 2, // On failed request, request from opposite side one line down (when NavDir==right) or one line up (when NavDir==left) + ImGuiNavMoveFlags_WrapY = 1 << 3, // This is not super useful but provided for completeness + ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, // Allow scoring and considering the current NavId as a move target candidate. This is used when the move source is offset (e.g. pressing PageDown actually needs to send a Up move request, if we are pressing PageDown from the bottom-most item we need to stay in place) + ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, // Store alternate result in NavMoveResultLocalVisible that only comprise elements that are already fully visible (used by PageUp/PageDown) + ImGuiNavMoveFlags_ScrollToEdgeY = 1 << 6, // Force scrolling to min/max (used by Home/End) // FIXME-NAV: Aim to remove or reword, probably unnecessary + ImGuiNavMoveFlags_Forwarded = 1 << 7, + ImGuiNavMoveFlags_DebugNoResult = 1 << 8, // Dummy scoring for debug purpose, don't apply result + ImGuiNavMoveFlags_FocusApi = 1 << 9, + ImGuiNavMoveFlags_Tabbing = 1 << 10, // == Focus + Activate if item is Inputable + DontChangeNavHighlight + ImGuiNavMoveFlags_Activate = 1 << 11, + ImGuiNavMoveFlags_DontSetNavHighlight = 1 << 12, // Do not alter the visible state of keyboard vs mouse nav highlight +}; + +enum ImGuiNavLayer +{ + ImGuiNavLayer_Main = 0, // Main scrolling layer + ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt) + ImGuiNavLayer_COUNT +}; + +struct ImGuiNavItemData +{ + ImGuiWindow* Window; // Init,Move // Best candidate window (result->ItemWindow->RootWindowForNav == request->Window) + ImGuiID ID; // Init,Move // Best candidate item ID + ImGuiID FocusScopeId; // Init,Move // Best candidate focus scope ID + ImRect RectRel; // Init,Move // Best candidate bounding box in window relative space + ImGuiItemFlags InFlags; // ????,Move // Best candidate item flags + float DistBox; // Move // Best candidate box distance to current NavId + float DistCenter; // Move // Best candidate center distance to current NavId + float DistAxial; // Move // Best candidate axial distance to current NavId + + ImGuiNavItemData() { Clear(); } + void Clear() { Window = NULL; ID = FocusScopeId = 0; InFlags = 0; DistBox = DistCenter = DistAxial = FLT_MAX; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Columns support +//----------------------------------------------------------------------------- + +// Flags for internal's BeginColumns(). Prefix using BeginTable() nowadays! +enum ImGuiOldColumnFlags_ +{ + ImGuiOldColumnFlags_None = 0, + ImGuiOldColumnFlags_NoBorder = 1 << 0, // Disable column dividers + ImGuiOldColumnFlags_NoResize = 1 << 1, // Disable resizing columns when clicking on the dividers + ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, // Disable column width preservation when adjusting columns + ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window + ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None, + ImGuiColumnsFlags_NoBorder = ImGuiOldColumnFlags_NoBorder, + ImGuiColumnsFlags_NoResize = ImGuiOldColumnFlags_NoResize, + ImGuiColumnsFlags_NoPreserveWidths = ImGuiOldColumnFlags_NoPreserveWidths, + ImGuiColumnsFlags_NoForceWithinWindow = ImGuiOldColumnFlags_NoForceWithinWindow, + ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize, +#endif +}; + +struct ImGuiOldColumnData +{ + float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) + float OffsetNormBeforeResize; + ImGuiOldColumnFlags Flags; // Not exposed + ImRect ClipRect; + + ImGuiOldColumnData() { memset(this, 0, sizeof(*this)); } +}; + +struct ImGuiOldColumns +{ + ImGuiID ID; + ImGuiOldColumnFlags Flags; + bool IsFirstFrame; + bool IsBeingResized; + int Current; + int Count; + float OffMinX, OffMaxX; // Offsets from HostWorkRect.Min.x + float LineMinY, LineMaxY; + float HostCursorPosY; // Backup of CursorPos at the time of BeginColumns() + float HostCursorMaxPosX; // Backup of CursorMaxPos at the time of BeginColumns() + ImRect HostInitialClipRect; // Backup of ClipRect at the time of BeginColumns() + ImRect HostBackupClipRect; // Backup of ClipRect during PushColumnsBackground()/PopColumnsBackground() + ImRect HostBackupParentWorkRect;//Backup of WorkRect at the time of BeginColumns() + ImVector Columns; + ImDrawListSplitter Splitter; + + ImGuiOldColumns() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Multi-select support +//----------------------------------------------------------------------------- + +#ifdef IMGUI_HAS_MULTI_SELECT +// +#endif // #ifdef IMGUI_HAS_MULTI_SELECT + +//----------------------------------------------------------------------------- +// [SECTION] Docking support +//----------------------------------------------------------------------------- + +#ifdef IMGUI_HAS_DOCK +// +#endif // #ifdef IMGUI_HAS_DOCK + +//----------------------------------------------------------------------------- +// [SECTION] Viewport support +//----------------------------------------------------------------------------- + +// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!) +// Every instance of ImGuiViewport is in fact a ImGuiViewportP. +struct ImGuiViewportP : public ImGuiViewport +{ + int DrawListsLastFrame[2]; // Last frame number the background (0) and foreground (1) draw lists were used + ImDrawList* DrawLists[2]; // Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor when io.MouseDrawCursor is set and to draw most debug overlays. + ImDrawData DrawDataP; + ImDrawDataBuilder DrawDataBuilder; + + ImVec2 WorkOffsetMin; // Work Area: Offset from Pos to top-left corner of Work Area. Generally (0,0) or (0,+main_menu_bar_height). Work Area is Full Area but without menu-bars/status-bars (so WorkArea always fit inside Pos/Size!) + ImVec2 WorkOffsetMax; // Work Area: Offset from Pos+Size to bottom-right corner of Work Area. Generally (0,0) or (0,-status_bar_height). + ImVec2 BuildWorkOffsetMin; // Work Area: Offset being built during current frame. Generally >= 0.0f. + ImVec2 BuildWorkOffsetMax; // Work Area: Offset being built during current frame. Generally <= 0.0f. + + ImGuiViewportP() { DrawListsLastFrame[0] = DrawListsLastFrame[1] = -1; DrawLists[0] = DrawLists[1] = NULL; } + ~ImGuiViewportP() { if (DrawLists[0]) IM_DELETE(DrawLists[0]); if (DrawLists[1]) IM_DELETE(DrawLists[1]); } + + // Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last frame data, and 1 pair for currently building rect) + ImVec2 CalcWorkRectPos(const ImVec2& off_min) const { return ImVec2(Pos.x + off_min.x, Pos.y + off_min.y); } + ImVec2 CalcWorkRectSize(const ImVec2& off_min, const ImVec2& off_max) const { return ImVec2(ImMax(0.0f, Size.x - off_min.x + off_max.x), ImMax(0.0f, Size.y - off_min.y + off_max.y)); } + void UpdateWorkRect() { WorkPos = CalcWorkRectPos(WorkOffsetMin); WorkSize = CalcWorkRectSize(WorkOffsetMin, WorkOffsetMax); } // Update public fields + + // Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it, hence the code asymmetry) + ImRect GetMainRect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + ImRect GetWorkRect() const { return ImRect(WorkPos.x, WorkPos.y, WorkPos.x + WorkSize.x, WorkPos.y + WorkSize.y); } + ImRect GetBuildWorkRect() const { ImVec2 pos = CalcWorkRectPos(BuildWorkOffsetMin); ImVec2 size = CalcWorkRectSize(BuildWorkOffsetMin, BuildWorkOffsetMax); return ImRect(pos.x, pos.y, pos.x + size.x, pos.y + size.y); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Settings support +//----------------------------------------------------------------------------- + +// Windows data saved in imgui.ini file +// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily. +// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure) +struct ImGuiWindowSettings +{ + ImGuiID ID; + ImVec2ih Pos; + ImVec2ih Size; + bool Collapsed; + bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) + + ImGuiWindowSettings() { memset(this, 0, sizeof(*this)); } + char* GetName() { return (char*)(this + 1); } +}; + +struct ImGuiSettingsHandler +{ + const char* TypeName; // Short description stored in .ini file. Disallowed characters: '[' ']' + ImGuiID TypeHash; // == ImHashStr(TypeName) + void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Clear all settings data + void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called before reading (in registration order) + void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); // Read: Called when entering into a new ini entry e.g. "[Window][Name]" + void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); // Read: Called for every line of text within an ini entry + void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called after reading (in registration order) + void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); // Write: Output every entries into 'out_buf' + void* UserData; + + ImGuiSettingsHandler() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Localization support +//----------------------------------------------------------------------------- + +// This is experimental and not officially supported, it'll probably fall short of features, if/when it does we may backtrack. +enum ImGuiLocKey : int +{ + ImGuiLocKey_TableSizeOne, + ImGuiLocKey_TableSizeAllFit, + ImGuiLocKey_TableSizeAllDefault, + ImGuiLocKey_TableResetOrder, + ImGuiLocKey_WindowingMainMenuBar, + ImGuiLocKey_WindowingPopup, + ImGuiLocKey_WindowingUntitled, + ImGuiLocKey_COUNT +}; + +struct ImGuiLocEntry +{ + ImGuiLocKey Key; + const char* Text; +}; + + +//----------------------------------------------------------------------------- +// [SECTION] Metrics, Debug Tools +//----------------------------------------------------------------------------- + +enum ImGuiDebugLogFlags_ +{ + // Event types + ImGuiDebugLogFlags_None = 0, + ImGuiDebugLogFlags_EventActiveId = 1 << 0, + ImGuiDebugLogFlags_EventFocus = 1 << 1, + ImGuiDebugLogFlags_EventPopup = 1 << 2, + ImGuiDebugLogFlags_EventNav = 1 << 3, + ImGuiDebugLogFlags_EventClipper = 1 << 4, + ImGuiDebugLogFlags_EventIO = 1 << 5, + ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO, + ImGuiDebugLogFlags_OutputToTTY = 1 << 10, // Also send output to TTY +}; + +struct ImGuiMetricsConfig +{ + bool ShowDebugLog; + bool ShowStackTool; + bool ShowWindowsRects; + bool ShowWindowsBeginOrder; + bool ShowTablesRects; + bool ShowDrawCmdMesh; + bool ShowDrawCmdBoundingBoxes; + int ShowWindowsRectsType; + int ShowTablesRectsType; + + ImGuiMetricsConfig() + { + ShowDebugLog = ShowStackTool = ShowWindowsRects = ShowWindowsBeginOrder = ShowTablesRects = false; + ShowDrawCmdMesh = true; + ShowDrawCmdBoundingBoxes = true; + ShowWindowsRectsType = ShowTablesRectsType = -1; + } +}; + +struct ImGuiStackLevelInfo +{ + ImGuiID ID; + ImS8 QueryFrameCount; // >= 1: Query in progress + bool QuerySuccess; // Obtained result from DebugHookIdInfo() + ImGuiDataType DataType : 8; + char Desc[57]; // Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) FIXME: Now that we added CTRL+C this should be fixed. + + ImGuiStackLevelInfo() { memset(this, 0, sizeof(*this)); } +}; + +// State for Stack tool queries +struct ImGuiStackTool +{ + int LastActiveFrame; + int StackLevel; // -1: query stack and resize Results, >= 0: individual stack level + ImGuiID QueryId; // ID to query details for + ImVector Results; + bool CopyToClipboardOnCtrlC; + float CopyToClipboardLastTime; + + ImGuiStackTool() { memset(this, 0, sizeof(*this)); CopyToClipboardLastTime = -FLT_MAX; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Generic context hooks +//----------------------------------------------------------------------------- + +typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); +enum ImGuiContextHookType { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }; + +struct ImGuiContextHook +{ + ImGuiID HookId; // A unique ID assigned by AddContextHook() + ImGuiContextHookType Type; + ImGuiID Owner; + ImGuiContextHookCallback Callback; + void* UserData; + + ImGuiContextHook() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiContext (main Dear ImGui context) +//----------------------------------------------------------------------------- + +struct ImGuiContext +{ + bool Initialized; + bool FontAtlasOwnedByContext; // IO.Fonts-> is owned by the ImGuiContext and will be destructed along with it. + ImGuiIO IO; + ImVector InputEventsQueue; // Input events which will be tricked/written into IO structure. + ImVector InputEventsTrail; // Past input events processed in NewFrame(). This is to allow domain-specific application to access e.g mouse/pen trail. + ImGuiStyle Style; + ImFont* Font; // (Shortcut) == FontStack.empty() ? IO.Font : FontStack.back() + float FontSize; // (Shortcut) == FontBaseSize * g.CurrentWindow->FontWindowScale == window->FontSize(). Text height for current window. + float FontBaseSize; // (Shortcut) == IO.FontGlobalScale * Font->Scale * Font->FontSize. Base text height. + ImDrawListSharedData DrawListSharedData; + double Time; + int FrameCount; + int FrameCountEnded; + int FrameCountRendered; + bool WithinFrameScope; // Set by NewFrame(), cleared by EndFrame() + bool WithinFrameScopeWithImplicitWindow; // Set by NewFrame(), cleared by EndFrame() when the implicit debug window has been pushed + bool WithinEndChild; // Set within EndChild() + bool GcCompactAll; // Request full GC + bool TestEngineHookItems; // Will call test engine hooks: ImGuiTestEngineHook_ItemAdd(), ImGuiTestEngineHook_ItemInfo(), ImGuiTestEngineHook_Log() + void* TestEngine; // Test engine user data + + // Windows state + ImVector Windows; // Windows, sorted in display order, back to front + ImVector WindowsFocusOrder; // Root windows, sorted in focus order, back to front. + ImVector WindowsTempSortBuffer; // Temporary buffer used in EndFrame() to reorder windows so parents are kept before their child + ImVector CurrentWindowStack; + ImGuiStorage WindowsById; // Map window's ImGuiID to ImGuiWindow* + int WindowsActiveCount; // Number of unique windows submitted by frame + ImVec2 WindowsHoverPadding; // Padding around resizable windows for which hovering on counts as hovering the window == ImMax(style.TouchExtraPadding, WINDOWS_HOVER_PADDING) + ImGuiWindow* CurrentWindow; // Window being drawn into + ImGuiWindow* HoveredWindow; // Window the mouse is hovering. Will typically catch mouse inputs. + ImGuiWindow* HoveredWindowUnderMovingWindow; // Hovered window ignoring MovingWindow. Only set if MovingWindow is set. + ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindow. + ImGuiWindow* WheelingWindow; // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. + ImVec2 WheelingWindowRefMousePos; + float WheelingWindowReleaseTimer; + + // Item/widgets state and tracking information + ImGuiID DebugHookIdInfo; // Will call core hooks: DebugHookIdInfo() from GetID functions, used by Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line] + ImGuiID HoveredId; // Hovered widget, filled during the frame + ImGuiID HoveredIdPreviousFrame; + bool HoveredIdAllowOverlap; + bool HoveredIdDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0. + float HoveredIdTimer; // Measure contiguous hovering time + float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active + ImGuiID ActiveId; // Active widget + ImGuiID ActiveIdIsAlive; // Active widget has been seen this frame (we can't use a bool as the ActiveId may change within the frame) + float ActiveIdTimer; + bool ActiveIdIsJustActivated; // Set at the time of activation for one frame + bool ActiveIdAllowOverlap; // Active widget allows another widget to steal active id (generally for overlapping widgets, but not always) + bool ActiveIdNoClearOnFocusLoss; // Disable losing active id if the active id window gets unfocused. + bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch. + bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state. + bool ActiveIdHasBeenEditedThisFrame; + ImVec2 ActiveIdClickOffset; // Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior) + ImGuiWindow* ActiveIdWindow; + ImGuiInputSource ActiveIdSource; // Activating with mouse or nav (gamepad/keyboard) + int ActiveIdMouseButton; + ImGuiID ActiveIdPreviousFrame; + bool ActiveIdPreviousFrameIsAlive; + bool ActiveIdPreviousFrameHasBeenEditedBefore; + ImGuiWindow* ActiveIdPreviousFrameWindow; + ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation. + float LastActiveIdTimer; // Store the last non-zero ActiveId timer since the beginning of activation, useful for animation. + + // [EXPERIMENTAL] Key/Input Ownership + Shortcut Routing system + // - The idea is that instead of "eating" a given key, we can link to an owner. + // - Input query can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Routing is requested ahead of time for a given chord (Key + Mods) and granted in NewFrame(). + ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; + ImGuiKeyRoutingTable KeysRoutingTable; + ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) + bool ActiveIdUsingAllKeyboardKeys; // Active widget will want to read all keyboard keys inputs. (FIXME: This is a shortcut for not taking ownership of 100+ keys but perhaps best to not have the inconsistency) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ImU32 ActiveIdUsingNavInputMask; // If you used this. Since (IMGUI_VERSION_NUM >= 18804) : 'g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel);' becomes 'SetKeyOwner(ImGuiKey_Escape, g.ActiveId) and/or SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId);' +#endif + + // Next window/item data + ImGuiID CurrentFocusScopeId; // == g.FocusScopeStack.back() + ImGuiItemFlags CurrentItemFlags; // == g.ItemFlagsStack.back() + ImGuiID DebugLocateId; // Storage for DebugLocateItemOnHover() feature: this is read by ItemAdd() so we keep it in a hot/cached location + ImGuiNextItemData NextItemData; // Storage for SetNextItem** functions + ImGuiLastItemData LastItemData; // Storage for last submitted item (setup by ItemAdd) + ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions + + // Shared stacks + ImVector ColorStack; // Stack for PushStyleColor()/PopStyleColor() - inherited by Begin() + ImVector StyleVarStack; // Stack for PushStyleVar()/PopStyleVar() - inherited by Begin() + ImVector FontStack; // Stack for PushFont()/PopFont() - inherited by Begin() + ImVector FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - inherited by BeginChild(), pushed into by Begin() + ImVectorItemFlagsStack; // Stack for PushItemFlag()/PopItemFlag() - inherited by Begin() + ImVectorGroupStack; // Stack for BeginGroup()/EndGroup() - not inherited by Begin() + ImVectorOpenPopupStack; // Which popups are open (persistent) + ImVectorBeginPopupStack; // Which level of BeginPopup() we are in (reset every frame) + int BeginMenuCount; + + // Viewports + ImVector Viewports; // Active viewports (Size==1 in 'master' branch). Each viewports hold their copy of ImDrawData. + + // Gamepad/keyboard Navigation + ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusedWindow' + ImGuiID NavId; // Focused item for navigation + ImGuiID NavFocusScopeId; // Identify a selection scope (selection code often wants to "clear other items" when landing on an item of the selection set) + ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && (IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_NavGamepadActivate)) ? NavId : 0, also set when calling ActivateItem() + ImGuiID NavActivateDownId; // ~~ IsKeyDown(ImGuiKey_Space) || IsKeyDown(ImGuiKey_NavGamepadActivate) ? NavId : 0 + ImGuiID NavActivatePressedId; // ~~ IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_NavGamepadActivate) ? NavId : 0 (no repeat) + ImGuiID NavActivateInputId; // ~~ IsKeyPressed(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadInput) ? NavId : 0; ImGuiActivateFlags_PreferInput will be set and NavActivateId will be 0. + ImGuiActivateFlags NavActivateFlags; + ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest). + ImGuiID NavJustMovedToFocusScopeId; // Just navigated to this focus scope id (result of a successfully MoveRequest). + ImGuiKeyChord NavJustMovedToKeyMods; + ImGuiID NavNextActivateId; // Set by ActivateItem(), queued until next frame. + ImGuiActivateFlags NavNextActivateFlags; + ImGuiInputSource NavInputSource; // Keyboard or Gamepad mode? THIS WILL ONLY BE None or NavGamepad or NavKeyboard. + ImGuiNavLayer NavLayer; // Layer we are navigating on. For now the system is hard-coded for 0=main contents and 1=menu/title bar, may expose layers later. + bool NavIdIsAlive; // Nav widget has been seen this frame ~~ NavRectRel is valid + bool NavMousePosDirty; // When set we will update mouse position if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) if set (NB: this not enabled by default) + bool NavDisableHighlight; // When user starts using mouse, we hide gamepad/keyboard highlight (NB: but they are still available, which is why NavDisableHighlight isn't always != NavDisableMouseHover) + bool NavDisableMouseHover; // When user starts using gamepad/keyboard, we hide mouse hovering highlight until mouse is touched again. + + // Navigation: Init & Move Requests + bool NavAnyRequest; // ~~ NavMoveRequest || NavInitRequest this is to perform early out in ItemAdd() + bool NavInitRequest; // Init request for appearing window to select first item + bool NavInitRequestFromMove; + ImGuiID NavInitResultId; // Init request result (first item of the window, or one for which SetItemDefaultFocus() was called) + ImRect NavInitResultRectRel; // Init request result rectangle (relative to parent window) + bool NavMoveSubmitted; // Move request submitted, will process result on next NewFrame() + bool NavMoveScoringItems; // Move request submitted, still scoring incoming items + bool NavMoveForwardToNextFrame; + ImGuiNavMoveFlags NavMoveFlags; + ImGuiScrollFlags NavMoveScrollFlags; + ImGuiKeyChord NavMoveKeyMods; + ImGuiDir NavMoveDir; // Direction of the move request (left/right/up/down) + ImGuiDir NavMoveDirForDebug; + ImGuiDir NavMoveClipDir; // FIXME-NAV: Describe the purpose of this better. Might want to rename? + ImRect NavScoringRect; // Rectangle used for scoring, in screen space. Based of window->NavRectRel[], modified for directional navigation scoring. + ImRect NavScoringNoClipRect; // Some nav operations (such as PageUp/PageDown) enforce a region which clipper will attempt to always keep submitted + int NavScoringDebugCount; // Metrics for debugging + int NavTabbingDir; // Generally -1 or +1, 0 when tabbing without a nav id + int NavTabbingCounter; // >0 when counting items for tabbing + ImGuiNavItemData NavMoveResultLocal; // Best move request candidate within NavWindow + ImGuiNavItemData NavMoveResultLocalVisible; // Best move request candidate within NavWindow that are mostly visible (when using ImGuiNavMoveFlags_AlsoScoreVisibleSet flag) + ImGuiNavItemData NavMoveResultOther; // Best move request candidate within NavWindow's flattened hierarchy (when using ImGuiWindowFlags_NavFlattened flag) + ImGuiNavItemData NavTabbingResultFirst; // First tabbing request candidate within NavWindow and flattened hierarchy + + // Navigation: Windowing (CTRL+TAB for list, or Menu button + keys or directional pads to move/resize) + ImGuiKeyChord ConfigNavWindowingKeyNext; // = ImGuiMod_Ctrl | ImGuiKey_Tab, for reconfiguration (see #4828) + ImGuiKeyChord ConfigNavWindowingKeyPrev; // = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab + ImGuiWindow* NavWindowingTarget; // Target window when doing CTRL+Tab (or Pad Menu + FocusPrev/Next), this window is temporarily displayed top-most! + ImGuiWindow* NavWindowingTargetAnim; // Record of last valid NavWindowingTarget until DimBgRatio and NavWindowingHighlightAlpha becomes 0.0f, so the fade-out can stay on it. + ImGuiWindow* NavWindowingListWindow; // Internal window actually listing the CTRL+Tab contents + float NavWindowingTimer; + float NavWindowingHighlightAlpha; + bool NavWindowingToggleLayer; + ImVec2 NavWindowingAccumDeltaPos; + ImVec2 NavWindowingAccumDeltaSize; + + // Render + float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list) + ImGuiMouseCursor MouseCursor; + + // Drag and Drop + bool DragDropActive; + bool DragDropWithinSource; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag source. + bool DragDropWithinTarget; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag target. + ImGuiDragDropFlags DragDropSourceFlags; + int DragDropSourceFrameCount; + int DragDropMouseButton; + ImGuiPayload DragDropPayload; + ImRect DragDropTargetRect; // Store rectangle of current target candidate (we favor small targets when overlapping) + ImGuiID DragDropTargetId; + ImGuiDragDropFlags DragDropAcceptFlags; + float DragDropAcceptIdCurrRectSurface; // Target item surface (we resolve overlapping targets by prioritizing the smaller surface) + ImGuiID DragDropAcceptIdCurr; // Target item id (set at the time of accepting the payload) + ImGuiID DragDropAcceptIdPrev; // Target item id from previous frame (we need to store this to allow for overlapping drag and drop targets) + int DragDropAcceptFrameCount; // Last time a target expressed a desire to accept the source + ImGuiID DragDropHoldJustPressedId; // Set when holding a payload just made ButtonBehavior() return a press. + ImVector DragDropPayloadBufHeap; // We don't expose the ImVector<> directly, ImGuiPayload only holds pointer+size + unsigned char DragDropPayloadBufLocal[16]; // Local buffer for small payloads + + // Clipper + int ClipperTempDataStacked; + ImVector ClipperTempData; + + // Tables + ImGuiTable* CurrentTable; + int TablesTempDataStacked; // Temporary table data size (because we leave previous instances undestructed, we generally don't use TablesTempData.Size) + ImVector TablesTempData; // Temporary table data (buffers reused/shared across instances, support nesting) + ImPool Tables; // Persistent table data + ImVector TablesLastTimeActive; // Last used timestamp of each tables (SOA, for efficient GC) + ImVector DrawChannelsTempMergeBuffer; + + // Tab bars + ImGuiTabBar* CurrentTabBar; + ImPool TabBars; + ImVector CurrentTabBarStack; + ImVector ShrinkWidthBuffer; + + // Hover Delay system + ImGuiID HoverDelayId; + ImGuiID HoverDelayIdPreviousFrame; + float HoverDelayTimer; // Currently used IsItemHovered(), generally inferred from g.HoveredIdTimer but kept uncleared until clear timer elapse. + float HoverDelayClearTimer; // Currently used IsItemHovered(): grace time before g.TooltipHoverTimer gets cleared. + + // Widget state + ImVec2 MouseLastValidPos; + ImGuiInputTextState InputTextState; + ImFont InputTextPasswordFont; + ImGuiID TempInputId; // Temporary text input when CTRL+clicking on a slider, etc. + ImGuiColorEditFlags ColorEditOptions; // Store user options for color edit widgets + float ColorEditLastHue; // Backup of last Hue associated to LastColor, so we can restore Hue in lossy RGB<>HSV round trips + float ColorEditLastSat; // Backup of last Saturation associated to LastColor, so we can restore Saturation in lossy RGB<>HSV round trips + ImU32 ColorEditLastColor; // RGB value with alpha set to 0. + ImVec4 ColorPickerRef; // Initial/reference color at the time of opening the color picker. + ImGuiComboPreviewData ComboPreviewData; + float SliderGrabClickOffset; + float SliderCurrentAccum; // Accumulated slider delta when using navigation controls. + bool SliderCurrentAccumDirty; // Has the accumulated slider delta changed since last time we tried to apply it? + bool DragCurrentAccumDirty; + float DragCurrentAccum; // Accumulator for dragging modification. Always high-precision, not rounded by end-user precision settings + float DragSpeedDefaultRatio; // If speed == 0.0f, uses (max-min) * DragSpeedDefaultRatio + float ScrollbarClickDeltaToGrabCenter; // Distance between mouse and center of grab box, normalized in parent space. Use storage? + float DisabledAlphaBackup; // Backup for style.Alpha for BeginDisabled() + short DisabledStackSize; + short TooltipOverrideCount; + ImVector ClipboardHandlerData; // If no custom clipboard handler is defined + ImVector MenusIdSubmittedThisFrame; // A list of menu IDs that were rendered at least once + + // Platform support + ImGuiPlatformImeData PlatformImeData; // Data updated by current frame + ImGuiPlatformImeData PlatformImeDataPrev; // Previous frame data (when changing we will call io.SetPlatformImeDataFn + char PlatformLocaleDecimalPoint; // '.' or *localeconv()->decimal_point + + // Settings + bool SettingsLoaded; + float SettingsDirtyTimer; // Save .ini Settings to memory when time reaches zero + ImGuiTextBuffer SettingsIniData; // In memory .ini settings + ImVector SettingsHandlers; // List of .ini settings handlers + ImChunkStream SettingsWindows; // ImGuiWindow .ini settings entries + ImChunkStream SettingsTables; // ImGuiTable .ini settings entries + ImVector Hooks; // Hooks for extensions (e.g. test engine) + ImGuiID HookIdNext; // Next available HookId + + // Localization + const char* LocalizationTable[ImGuiLocKey_COUNT]; + + // Capture/Logging + bool LogEnabled; // Currently capturing + ImGuiLogType LogType; // Capture target + ImFileHandle LogFile; // If != NULL log to stdout/ file + ImGuiTextBuffer LogBuffer; // Accumulation buffer when log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators. + const char* LogNextPrefix; + const char* LogNextSuffix; + float LogLinePosY; + bool LogLineFirstItem; + int LogDepthRef; + int LogDepthToExpand; + int LogDepthToExpandDefault; // Default/stored value for LogDepthMaxExpand if not specified in the LogXXX function call. + + // Debug Tools + ImGuiDebugLogFlags DebugLogFlags; + ImGuiTextBuffer DebugLogBuf; + ImGuiTextIndex DebugLogIndex; + ImU8 DebugLocateFrames; // For DebugLocateItemOnHover(). This is used together with DebugLocateId which is in a hot/cached spot above. + bool DebugItemPickerActive; // Item picker is active (started with DebugStartItemPicker()) + ImU8 DebugItemPickerMouseButton; + ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this ID + ImGuiMetricsConfig DebugMetricsConfig; + ImGuiStackTool DebugStackTool; + + // Misc + float FramerateSecPerFrame[60]; // Calculate estimate of framerate for user over the last 60 frames.. + int FramerateSecPerFrameIdx; + int FramerateSecPerFrameCount; + float FramerateSecPerFrameAccum; + int WantCaptureMouseNextFrame; // Explicit capture override via SetNextFrameWantCaptureMouse()/SetNextFrameWantCaptureKeyboard(). Default to -1. + int WantCaptureKeyboardNextFrame; // " + int WantTextInputNextFrame; + ImVector TempBuffer; // Temporary text buffer + + ImGuiContext(ImFontAtlas* shared_font_atlas) + { + Initialized = false; + FontAtlasOwnedByContext = shared_font_atlas ? false : true; + Font = NULL; + FontSize = FontBaseSize = 0.0f; + IO.Fonts = shared_font_atlas ? shared_font_atlas : IM_NEW(ImFontAtlas)(); + Time = 0.0f; + FrameCount = 0; + FrameCountEnded = FrameCountRendered = -1; + WithinFrameScope = WithinFrameScopeWithImplicitWindow = WithinEndChild = false; + GcCompactAll = false; + TestEngineHookItems = false; + TestEngine = NULL; + + WindowsActiveCount = 0; + CurrentWindow = NULL; + HoveredWindow = NULL; + HoveredWindowUnderMovingWindow = NULL; + MovingWindow = NULL; + WheelingWindow = NULL; + WheelingWindowReleaseTimer = 0.0f; + + DebugHookIdInfo = 0; + HoveredId = HoveredIdPreviousFrame = 0; + HoveredIdAllowOverlap = false; + HoveredIdDisabled = false; + HoveredIdTimer = HoveredIdNotActiveTimer = 0.0f; + ActiveId = 0; + ActiveIdIsAlive = 0; + ActiveIdTimer = 0.0f; + ActiveIdIsJustActivated = false; + ActiveIdAllowOverlap = false; + ActiveIdNoClearOnFocusLoss = false; + ActiveIdHasBeenPressedBefore = false; + ActiveIdHasBeenEditedBefore = false; + ActiveIdHasBeenEditedThisFrame = false; + ActiveIdClickOffset = ImVec2(-1, -1); + ActiveIdWindow = NULL; + ActiveIdSource = ImGuiInputSource_None; + ActiveIdMouseButton = -1; + ActiveIdPreviousFrame = 0; + ActiveIdPreviousFrameIsAlive = false; + ActiveIdPreviousFrameHasBeenEditedBefore = false; + ActiveIdPreviousFrameWindow = NULL; + LastActiveId = 0; + LastActiveIdTimer = 0.0f; + + ActiveIdUsingNavDirMask = 0x00; + ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ActiveIdUsingNavInputMask = 0x00; +#endif + + CurrentFocusScopeId = 0; + CurrentItemFlags = ImGuiItemFlags_None; + BeginMenuCount = 0; + + NavWindow = NULL; + NavId = NavFocusScopeId = NavActivateId = NavActivateDownId = NavActivatePressedId = NavActivateInputId = 0; + NavJustMovedToId = NavJustMovedToFocusScopeId = NavNextActivateId = 0; + NavActivateFlags = NavNextActivateFlags = ImGuiActivateFlags_None; + NavJustMovedToKeyMods = ImGuiMod_None; + NavInputSource = ImGuiInputSource_None; + NavLayer = ImGuiNavLayer_Main; + NavIdIsAlive = false; + NavMousePosDirty = false; + NavDisableHighlight = true; + NavDisableMouseHover = false; + NavAnyRequest = false; + NavInitRequest = false; + NavInitRequestFromMove = false; + NavInitResultId = 0; + NavMoveSubmitted = false; + NavMoveScoringItems = false; + NavMoveForwardToNextFrame = false; + NavMoveFlags = ImGuiNavMoveFlags_None; + NavMoveScrollFlags = ImGuiScrollFlags_None; + NavMoveKeyMods = ImGuiMod_None; + NavMoveDir = NavMoveDirForDebug = NavMoveClipDir = ImGuiDir_None; + NavScoringDebugCount = 0; + NavTabbingDir = 0; + NavTabbingCounter = 0; + + ConfigNavWindowingKeyNext = ImGuiMod_Ctrl | ImGuiKey_Tab; + ConfigNavWindowingKeyPrev = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab; + NavWindowingTarget = NavWindowingTargetAnim = NavWindowingListWindow = NULL; + NavWindowingTimer = NavWindowingHighlightAlpha = 0.0f; + NavWindowingToggleLayer = false; + + DimBgRatio = 0.0f; + MouseCursor = ImGuiMouseCursor_Arrow; + + DragDropActive = DragDropWithinSource = DragDropWithinTarget = false; + DragDropSourceFlags = ImGuiDragDropFlags_None; + DragDropSourceFrameCount = -1; + DragDropMouseButton = -1; + DragDropTargetId = 0; + DragDropAcceptFlags = ImGuiDragDropFlags_None; + DragDropAcceptIdCurrRectSurface = 0.0f; + DragDropAcceptIdPrev = DragDropAcceptIdCurr = 0; + DragDropAcceptFrameCount = -1; + DragDropHoldJustPressedId = 0; + memset(DragDropPayloadBufLocal, 0, sizeof(DragDropPayloadBufLocal)); + + ClipperTempDataStacked = 0; + + CurrentTable = NULL; + TablesTempDataStacked = 0; + CurrentTabBar = NULL; + + HoverDelayId = HoverDelayIdPreviousFrame = 0; + HoverDelayTimer = HoverDelayClearTimer = 0.0f; + + TempInputId = 0; + ColorEditOptions = ImGuiColorEditFlags_DefaultOptions_; + ColorEditLastHue = ColorEditLastSat = 0.0f; + ColorEditLastColor = 0; + SliderGrabClickOffset = 0.0f; + SliderCurrentAccum = 0.0f; + SliderCurrentAccumDirty = false; + DragCurrentAccumDirty = false; + DragCurrentAccum = 0.0f; + DragSpeedDefaultRatio = 1.0f / 100.0f; + ScrollbarClickDeltaToGrabCenter = 0.0f; + DisabledAlphaBackup = 0.0f; + DisabledStackSize = 0; + TooltipOverrideCount = 0; + + PlatformImeData.InputPos = ImVec2(0.0f, 0.0f); + PlatformImeDataPrev.InputPos = ImVec2(-1.0f, -1.0f); // Different to ensure initial submission + PlatformLocaleDecimalPoint = '.'; + + SettingsLoaded = false; + SettingsDirtyTimer = 0.0f; + HookIdNext = 0; + + memset(LocalizationTable, 0, sizeof(LocalizationTable)); + + LogEnabled = false; + LogType = ImGuiLogType_None; + LogNextPrefix = LogNextSuffix = NULL; + LogFile = NULL; + LogLinePosY = FLT_MAX; + LogLineFirstItem = false; + LogDepthRef = 0; + LogDepthToExpand = LogDepthToExpandDefault = 2; + + DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY; + DebugLocateId = 0; + DebugLocateFrames = 0; + DebugItemPickerActive = false; + DebugItemPickerMouseButton = ImGuiMouseButton_Left; + DebugItemPickerBreakId = 0; + + memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); + FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0; + FramerateSecPerFrameAccum = 0.0f; + WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; + } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiWindowTempData, ImGuiWindow +//----------------------------------------------------------------------------- + +// Transient per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the DC variable name in ImGuiWindow. +// (That's theory, in practice the delimitation between ImGuiWindow and ImGuiWindowTempData is quite tenuous and could be reconsidered..) +// (This doesn't need a constructor because we zero-clear it as part of ImGuiWindow and all frame-temporary data are setup on Begin) +struct IMGUI_API ImGuiWindowTempData +{ + // Layout + ImVec2 CursorPos; // Current emitting position, in absolute coordinates. + ImVec2 CursorPosPrevLine; + ImVec2 CursorStartPos; // Initial position after Begin(), generally ~ window position + WindowPadding. + ImVec2 CursorMaxPos; // Used to implicitly calculate ContentSize at the beginning of next frame, for scrolling range and auto-resize. Always growing during the frame. + ImVec2 IdealMaxPos; // Used to implicitly calculate ContentSizeIdeal at the beginning of next frame, for auto-resize only. Always growing during the frame. + ImVec2 CurrLineSize; + ImVec2 PrevLineSize; + float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added). + float PrevLineTextBaseOffset; + bool IsSameLine; + bool IsSetPos; + ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.) + ImVec1 ColumnsOffset; // Offset to the current column (if ColumnsCurrent > 0). FIXME: This and the above should be a stack to allow use cases like Tree->Column->Tree. Need revamp columns API. + ImVec1 GroupOffset; + ImVec2 CursorStartPosLossyness;// Record the loss of precision of CursorStartPos due to really large scrolling amount. This is used by clipper to compensentate and fix the most common use case of large scroll area. + + // Keyboard/Gamepad navigation + ImGuiNavLayer NavLayerCurrent; // Current layer, 0..31 (we currently only use 0..1) + short NavLayersActiveMask; // Which layers have been written to (result from previous frame) + short NavLayersActiveMaskNext;// Which layers have been written to (accumulator for current frame) + bool NavHideHighlightOneFrame; + bool NavHasScroll; // Set when scrolling can be used (ScrollMax > 0.0f) + + // Miscellaneous + bool MenuBarAppending; // FIXME: Remove this + ImVec2 MenuBarOffset; // MenuBarOffset.x is sort of equivalent of a per-layer CursorPos.x, saved/restored as we switch to the menu bar. The only situation when MenuBarOffset.y is > 0 if when (SafeAreaPadding.y > FramePadding.y), often used on TVs. + ImGuiMenuColumns MenuColumns; // Simplified columns storage for menu items measurement + int TreeDepth; // Current tree depth. + ImU32 TreeJumpToParentOnPopMask; // Store a copy of !g.NavIdIsAlive for TreeDepth 0..31.. Could be turned into a ImU64 if necessary. + ImVector ChildWindows; + ImGuiStorage* StateStorage; // Current persistent per-window storage (store e.g. tree node open/close state) + ImGuiOldColumns* CurrentColumns; // Current columns set + int CurrentTableIdx; // Current table index (into g.Tables) + ImGuiLayoutType LayoutType; + ImGuiLayoutType ParentLayoutType; // Layout type of parent window at the time of Begin() + + // Local parameters stacks + // We store the current settings outside of the vectors to increase memory locality (reduce cache misses). The vectors are rarely modified. Also it allows us to not heap allocate for short-lived windows which are not using those settings. + float ItemWidth; // Current item width (>0.0: width in pixels, <0.0: align xx pixels to the right of window). + float TextWrapPos; // Current text wrap pos. + ImVector ItemWidthStack; // Store item widths to restore (attention: .back() is not == ItemWidth) + ImVector TextWrapPosStack; // Store text wrap pos to restore (attention: .back() is not == TextWrapPos) +}; + +// Storage for one window +struct IMGUI_API ImGuiWindow +{ + char* Name; // Window name, owned by the window. + ImGuiID ID; // == ImHashStr(Name) + ImGuiWindowFlags Flags; // See enum ImGuiWindowFlags_ + ImGuiViewportP* Viewport; // Always set in Begin(). Inactive windows may have a NULL value here if their viewport was discarded. + ImVec2 Pos; // Position (always rounded-up to nearest pixel) + ImVec2 Size; // Current size (==SizeFull or collapsed title bar size) + ImVec2 SizeFull; // Size when non collapsed + ImVec2 ContentSize; // Size of contents/scrollable client area (calculated from the extents reach of the cursor) from previous frame. Does not include window decoration or window padding. + ImVec2 ContentSizeIdeal; + ImVec2 ContentSizeExplicit; // Size of contents/scrollable client area explicitly request by the user via SetNextWindowContentSize(). + ImVec2 WindowPadding; // Window padding at the time of Begin(). + float WindowRounding; // Window rounding at the time of Begin(). May be clamped lower to avoid rendering artifacts with title bar, menu bar etc. + float WindowBorderSize; // Window border size at the time of Begin(). + int NameBufLen; // Size of buffer storing Name. May be larger than strlen(Name)! + ImGuiID MoveId; // == window->GetID("#MOVE") + ImGuiID ChildId; // ID of corresponding item in parent window (for navigation to return from child window to parent window) + ImVec2 Scroll; + ImVec2 ScrollMax; + ImVec2 ScrollTarget; // target scroll position. stored as cursor position with scrolling canceled out, so the highest point is always 0.0f. (FLT_MAX for no change) + ImVec2 ScrollTargetCenterRatio; // 0.0f = scroll so that target position is at top, 0.5f = scroll so that target position is centered + ImVec2 ScrollTargetEdgeSnapDist; // 0.0f = no snapping, >0.0f snapping threshold + ImVec2 ScrollbarSizes; // Size taken by each scrollbars on their smaller axis. Pay attention! ScrollbarSizes.x == width of the vertical scrollbar, ScrollbarSizes.y = height of the horizontal scrollbar. + bool ScrollbarX, ScrollbarY; // Are scrollbars visible? + bool Active; // Set to true on Begin(), unless Collapsed + bool WasActive; + bool WriteAccessed; // Set to true when any widget access the current window + bool Collapsed; // Set when collapsing window to become only title-bar + bool WantCollapseToggle; + bool SkipItems; // Set when items can safely be all clipped (e.g. window not visible or collapsed) + bool Appearing; // Set during the frame where the window is appearing (or re-appearing) + bool Hidden; // Do not display (== HiddenFrames*** > 0) + bool IsFallbackWindow; // Set on the "Debug##Default" window. + bool IsExplicitChild; // Set when passed _ChildWindow, left to false by BeginDocked() + bool HasCloseButton; // Set when the window has a close button (p_open != NULL) + signed char ResizeBorderHeld; // Current border being held for resize (-1: none, otherwise 0-3) + short BeginCount; // Number of Begin() during the current frame (generally 0 or 1, 1+ if appending via multiple Begin/End pairs) + short BeginCountPreviousFrame; // Number of Begin() during the previous frame + short BeginOrderWithinParent; // Begin() order within immediate parent window, if we are a child window. Otherwise 0. + short BeginOrderWithinContext; // Begin() order within entire imgui context. This is mostly used for debugging submission order related issues. + short FocusOrder; // Order within WindowsFocusOrder[], altered when windows are focused. + ImGuiID PopupId; // ID in the popup stack when this window is used as a popup/menu (because we use generic Name/ID for recycling) + ImS8 AutoFitFramesX, AutoFitFramesY; + ImS8 AutoFitChildAxises; + bool AutoFitOnlyGrows; + ImGuiDir AutoPosLastDirection; + ImS8 HiddenFramesCanSkipItems; // Hide the window for N frames + ImS8 HiddenFramesCannotSkipItems; // Hide the window for N frames while allowing items to be submitted so we can measure their size + ImS8 HiddenFramesForRenderOnly; // Hide the window until frame N at Render() time only + ImS8 DisableInputsFrames; // Disable window interactions for N frames + ImGuiCond SetWindowPosAllowFlags : 8; // store acceptable condition flags for SetNextWindowPos() use. + ImGuiCond SetWindowSizeAllowFlags : 8; // store acceptable condition flags for SetNextWindowSize() use. + ImGuiCond SetWindowCollapsedAllowFlags : 8; // store acceptable condition flags for SetNextWindowCollapsed() use. + ImVec2 SetWindowPosVal; // store window position when using a non-zero Pivot (position set needs to be processed when we know the window size) + ImVec2 SetWindowPosPivot; // store window pivot for positioning. ImVec2(0, 0) when positioning from top-left corner; ImVec2(0.5f, 0.5f) for centering; ImVec2(1, 1) for bottom right. + + ImVector IDStack; // ID stack. ID are hashes seeded with the value at the top of the stack. (In theory this should be in the TempData structure) + ImGuiWindowTempData DC; // Temporary per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the "DC" variable name. + + // The best way to understand what those rectangles are is to use the 'Metrics->Tools->Show Windows Rectangles' viewer. + // The main 'OuterRect', omitted as a field, is window->Rect(). + ImRect OuterRectClipped; // == Window->Rect() just after setup in Begin(). == window->Rect() for root window. + ImRect InnerRect; // Inner rectangle (omit title bar, menu bar, scroll bar) + ImRect InnerClipRect; // == InnerRect shrunk by WindowPadding*0.5f on each side, clipped within viewport or parent clip rect. + ImRect WorkRect; // Initially covers the whole scrolling region. Reduced by containers e.g columns/tables when active. Shrunk by WindowPadding*1.0f on each side. This is meant to replace ContentRegionRect over time (from 1.71+ onward). + ImRect ParentWorkRect; // Backup of WorkRect before entering a container such as columns/tables. Used by e.g. SpanAllColumns functions to easily access. Stacked containers are responsible for maintaining this. // FIXME-WORKRECT: Could be a stack? + ImRect ClipRect; // Current clipping/scissoring rectangle, evolve as we are using PushClipRect(), etc. == DrawList->clip_rect_stack.back(). + ImRect ContentRegionRect; // FIXME: This is currently confusing/misleading. It is essentially WorkRect but not handling of scrolling. We currently rely on it as right/bottom aligned sizing operation need some size to rely on. + ImVec2ih HitTestHoleSize; // Define an optional rectangular hole where mouse will pass-through the window. + ImVec2ih HitTestHoleOffset; + + int LastFrameActive; // Last frame number the window was Active. + float LastTimeActive; // Last timestamp the window was Active (using float as we don't need high precision there) + float ItemWidthDefault; + ImGuiStorage StateStorage; + ImVector ColumnsStorage; + float FontWindowScale; // User scale multiplier per-window, via SetWindowFontScale() + int SettingsOffset; // Offset into SettingsWindows[] (offsets are always valid as we only grow the array from the back) + + ImDrawList* DrawList; // == &DrawListInst (for backward compatibility reason with code using imgui_internal.h we keep this a pointer) + ImDrawList DrawListInst; + ImGuiWindow* ParentWindow; // If we are a child _or_ popup _or_ docked window, this is pointing to our parent. Otherwise NULL. + ImGuiWindow* ParentWindowInBeginStack; + ImGuiWindow* RootWindow; // Point to ourself or first ancestor that is not a child window. Doesn't cross through popups/dock nodes. + ImGuiWindow* RootWindowPopupTree; // Point to ourself or first ancestor that is not a child window. Cross through popups parent<>child. + ImGuiWindow* RootWindowForTitleBarHighlight; // Point to ourself or first ancestor which will display TitleBgActive color when this window is active. + ImGuiWindow* RootWindowForNav; // Point to ourself or first ancestor which doesn't have the NavFlattened flag. + + ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.) + ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1) + ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space + ImGuiID NavRootFocusScopeId; // Focus Scope ID at the time of Begin() + + int MemoryDrawListIdxCapacity; // Backup of last idx/vtx count, so when waking up the window we can preallocate and avoid iterative alloc/copy + int MemoryDrawListVtxCapacity; + bool MemoryCompacted; // Set when window extraneous data have been garbage collected + +public: + ImGuiWindow(ImGuiContext* context, const char* name); + ~ImGuiWindow(); + + ImGuiID GetID(const char* str, const char* str_end = NULL); + ImGuiID GetID(const void* ptr); + ImGuiID GetID(int n); + ImGuiID GetIDFromRectangle(const ImRect& r_abs); + + // We don't use g.FontSize because the window may be != g.CurrentWindow. + ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + float CalcFontSize() const { ImGuiContext& g = *GImGui; float scale = g.FontBaseSize * FontWindowScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; } + float TitleBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; } + ImRect TitleBarRect() const { return ImRect(Pos, ImVec2(Pos.x + SizeFull.x, Pos.y + TitleBarHeight())); } + float MenuBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + g.Style.FramePadding.y * 2.0f : 0.0f; } + ImRect MenuBarRect() const { float y1 = Pos.y + TitleBarHeight(); return ImRect(Pos.x, y1, Pos.x + SizeFull.x, y1 + MenuBarHeight()); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Tab bar, Tab item support +//----------------------------------------------------------------------------- + +// Extend ImGuiTabBarFlags_ +enum ImGuiTabBarFlagsPrivate_ +{ + ImGuiTabBarFlags_DockNode = 1 << 20, // Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around] + ImGuiTabBarFlags_IsFocused = 1 << 21, + ImGuiTabBarFlags_SaveSettings = 1 << 22, // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs +}; + +// Extend ImGuiTabItemFlags_ +enum ImGuiTabItemFlagsPrivate_ +{ + ImGuiTabItemFlags_SectionMask_ = ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing, + ImGuiTabItemFlags_NoCloseButton = 1 << 20, // Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout) + ImGuiTabItemFlags_Button = 1 << 21, // Used by TabItemButton, change the tab item behavior to mimic a button +}; + +// Storage for one active tab item (sizeof() 40 bytes) +struct ImGuiTabItem +{ + ImGuiID ID; + ImGuiTabItemFlags Flags; + int LastFrameVisible; + int LastFrameSelected; // This allows us to infer an ordered list of the last activated tabs with little maintenance + float Offset; // Position relative to beginning of tab + float Width; // Width currently displayed + float ContentWidth; // Width of label, stored during BeginTabItem() call + float RequestedWidth; // Width optionally requested by caller, -1.0f is unused + ImS32 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames + ImS16 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable + ImS16 IndexDuringLayout; // Index only used during TabBarLayout() + bool WantClose; // Marked as closed by SetTabItemClosed() + + ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; RequestedWidth = -1.0f; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; } +}; + +// Storage for a tab bar (sizeof() 152 bytes) +struct IMGUI_API ImGuiTabBar +{ + ImVector Tabs; + ImGuiTabBarFlags Flags; + ImGuiID ID; // Zero for tab-bars used by docking + ImGuiID SelectedTabId; // Selected tab/window + ImGuiID NextSelectedTabId; // Next selected tab/window. Will also trigger a scrolling animation + ImGuiID VisibleTabId; // Can occasionally be != SelectedTabId (e.g. when previewing contents for CTRL+TAB preview) + int CurrFrameVisible; + int PrevFrameVisible; + ImRect BarRect; + float CurrTabsContentsHeight; + float PrevTabsContentsHeight; // Record the height of contents submitted below the tab bar + float WidthAllTabs; // Actual width of all tabs (locked during layout) + float WidthAllTabsIdeal; // Ideal width if all tabs were visible and not clipped + float ScrollingAnim; + float ScrollingTarget; + float ScrollingTargetDistToVisibility; + float ScrollingSpeed; + float ScrollingRectMinX; + float ScrollingRectMaxX; + ImGuiID ReorderRequestTabId; + ImS16 ReorderRequestOffset; + ImS8 BeginCount; + bool WantLayout; + bool VisibleTabWasSubmitted; + bool TabsAddedNew; // Set to true when a new tab item or button has been added to the tab bar during last frame + ImS16 TabsActiveCount; // Number of tabs submitted this frame. + ImS16 LastTabItemIdx; // Index of last BeginTabItem() tab for use by EndTabItem() + float ItemSpacingY; + ImVec2 FramePadding; // style.FramePadding locked at the time of BeginTabBar() + ImVec2 BackupCursorPos; + ImGuiTextBuffer TabsNames; // For non-docking tab bar we re-append names in a contiguous buffer. + + ImGuiTabBar(); + int GetTabOrder(const ImGuiTabItem* tab) const { return Tabs.index_from_ptr(tab); } + const char* GetTabName(const ImGuiTabItem* tab) const + { + IM_ASSERT(tab->NameOffset != -1 && tab->NameOffset < TabsNames.Buf.Size); + return TabsNames.Buf.Data + tab->NameOffset; + } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Table support +//----------------------------------------------------------------------------- + +#define IM_COL32_DISABLE IM_COL32(0,0,0,1) // Special sentinel code which cannot be used as a regular color. +#define IMGUI_TABLE_MAX_COLUMNS 64 // sizeof(ImU64) * 8. This is solely because we frequently encode columns set in a ImU64. +#define IMGUI_TABLE_MAX_DRAW_CHANNELS (4 + 64 * 2) // See TableSetupDrawChannels() + +// Our current column maximum is 64 but we may raise that in the future. +typedef ImS8 ImGuiTableColumnIdx; +typedef ImU8 ImGuiTableDrawChannelIdx; + +// [Internal] sizeof() ~ 104 +// We use the terminology "Enabled" to refer to a column that is not Hidden by user/api. +// We use the terminology "Clipped" to refer to a column that is out of sight because of scrolling/clipping. +// This is in contrast with some user-facing api such as IsItemVisible() / IsRectVisible() which use "Visible" to mean "not clipped". +struct ImGuiTableColumn +{ + ImGuiTableColumnFlags Flags; // Flags after some patching (not directly same as provided by user). See ImGuiTableColumnFlags_ + float WidthGiven; // Final/actual width visible == (MaxX - MinX), locked in TableUpdateLayout(). May be > WidthRequest to honor minimum width, may be < WidthRequest to honor shrinking columns down in tight space. + float MinX; // Absolute positions + float MaxX; + float WidthRequest; // Master width absolute value when !(Flags & _WidthStretch). When Stretch this is derived every frame from StretchWeight in TableUpdateLayout() + float WidthAuto; // Automatic width + float StretchWeight; // Master width weight when (Flags & _WidthStretch). Often around ~1.0f initially. + float InitStretchWeightOrWidth; // Value passed to TableSetupColumn(). For Width it is a content width (_without padding_). + ImRect ClipRect; // Clipping rectangle for the column + ImGuiID UserID; // Optional, value passed to TableSetupColumn() + float WorkMinX; // Contents region min ~(MinX + CellPaddingX + CellSpacingX1) == cursor start position when entering column + float WorkMaxX; // Contents region max ~(MaxX - CellPaddingX - CellSpacingX2) + float ItemWidth; // Current item width for the column, preserved across rows + float ContentMaxXFrozen; // Contents maximum position for frozen rows (apart from headers), from which we can infer content width. + float ContentMaxXUnfrozen; + float ContentMaxXHeadersUsed; // Contents maximum position for headers rows (regardless of freezing). TableHeader() automatically softclip itself + report ideal desired size, to avoid creating extraneous draw calls + float ContentMaxXHeadersIdeal; + ImS16 NameOffset; // Offset into parent ColumnsNames[] + ImGuiTableColumnIdx DisplayOrder; // Index within Table's IndexToDisplayOrder[] (column may be reordered by users) + ImGuiTableColumnIdx IndexWithinEnabledSet; // Index within enabled/visible set (<= IndexToDisplayOrder) + ImGuiTableColumnIdx PrevEnabledColumn; // Index of prev enabled/visible column within Columns[], -1 if first enabled/visible column + ImGuiTableColumnIdx NextEnabledColumn; // Index of next enabled/visible column within Columns[], -1 if last enabled/visible column + ImGuiTableColumnIdx SortOrder; // Index of this column within sort specs, -1 if not sorting on this column, 0 for single-sort, may be >0 on multi-sort + ImGuiTableDrawChannelIdx DrawChannelCurrent; // Index within DrawSplitter.Channels[] + ImGuiTableDrawChannelIdx DrawChannelFrozen; // Draw channels for frozen rows (often headers) + ImGuiTableDrawChannelIdx DrawChannelUnfrozen; // Draw channels for unfrozen rows + bool IsEnabled; // IsUserEnabled && (Flags & ImGuiTableColumnFlags_Disabled) == 0 + bool IsUserEnabled; // Is the column not marked Hidden by the user? (unrelated to being off view, e.g. clipped by scrolling). + bool IsUserEnabledNextFrame; + bool IsVisibleX; // Is actually in view (e.g. overlapping the host window clipping rectangle, not scrolled). + bool IsVisibleY; + bool IsRequestOutput; // Return value for TableSetColumnIndex() / TableNextColumn(): whether we request user to output contents or not. + bool IsSkipItems; // Do we want item submissions to this column to be completely ignored (no layout will happen). + bool IsPreserveWidthAuto; + ImS8 NavLayerCurrent; // ImGuiNavLayer in 1 byte + ImU8 AutoFitQueue; // Queue of 8 values for the next 8 frames to request auto-fit + ImU8 CannotSkipItemsQueue; // Queue of 8 values for the next 8 frames to disable Clipped/SkipItem + ImU8 SortDirection : 2; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending + ImU8 SortDirectionsAvailCount : 2; // Number of available sort directions (0 to 3) + ImU8 SortDirectionsAvailMask : 4; // Mask of available sort directions (1-bit each) + ImU8 SortDirectionsAvailList; // Ordered of available sort directions (2-bits each) + + ImGuiTableColumn() + { + memset(this, 0, sizeof(*this)); + StretchWeight = WidthRequest = -1.0f; + NameOffset = -1; + DisplayOrder = IndexWithinEnabledSet = -1; + PrevEnabledColumn = NextEnabledColumn = -1; + SortOrder = -1; + SortDirection = ImGuiSortDirection_None; + DrawChannelCurrent = DrawChannelFrozen = DrawChannelUnfrozen = (ImU8)-1; + } +}; + +// Transient cell data stored per row. +// sizeof() ~ 6 +struct ImGuiTableCellData +{ + ImU32 BgColor; // Actual color + ImGuiTableColumnIdx Column; // Column number +}; + +// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs, does that needs they could be moved to ImGuiTableTempData ?) +struct ImGuiTableInstanceData +{ + float LastOuterHeight; // Outer height from last frame // FIXME: multi-instance issue (#3955) + float LastFirstRowHeight; // Height of first row from last frame // FIXME: possible multi-instance issue? + + ImGuiTableInstanceData() { LastOuterHeight = LastFirstRowHeight = 0.0f; } +}; + +// FIXME-TABLE: more transient data could be stored in a per-stacked table structure: DrawSplitter, SortSpecs, incoming RowData +struct IMGUI_API ImGuiTable +{ + ImGuiID ID; + ImGuiTableFlags Flags; + void* RawData; // Single allocation to hold Columns[], DisplayOrderToIndex[] and RowCellData[] + ImGuiTableTempData* TempData; // Transient data while table is active. Point within g.CurrentTableStack[] + ImSpan Columns; // Point within RawData[] + ImSpan DisplayOrderToIndex; // Point within RawData[]. Store display order of columns (when not reordered, the values are 0...Count-1) + ImSpan RowCellData; // Point within RawData[]. Store cells background requests for current row. + ImU64 EnabledMaskByDisplayOrder; // Column DisplayOrder -> IsEnabled map + ImU64 EnabledMaskByIndex; // Column Index -> IsEnabled map (== not hidden by user/api) in a format adequate for iterating column without touching cold data + ImU64 VisibleMaskByIndex; // Column Index -> IsVisibleX|IsVisibleY map (== not hidden by user/api && not hidden by scrolling/cliprect) + ImU64 RequestOutputMaskByIndex; // Column Index -> IsVisible || AutoFit (== expect user to submit items) + ImGuiTableFlags SettingsLoadedFlags; // Which data were loaded from the .ini file (e.g. when order is not altered we won't save order) + int SettingsOffset; // Offset in g.SettingsTables + int LastFrameActive; + int ColumnsCount; // Number of columns declared in BeginTable() + int CurrentRow; + int CurrentColumn; + ImS16 InstanceCurrent; // Count of BeginTable() calls with same ID in the same frame (generally 0). This is a little bit similar to BeginCount for a window, but multiple table with same ID look are multiple tables, they are just synched. + ImS16 InstanceInteracted; // Mark which instance (generally 0) of the same ID is being interacted with + float RowPosY1; + float RowPosY2; + float RowMinHeight; // Height submitted to TableNextRow() + float RowTextBaseline; + float RowIndentOffsetX; + ImGuiTableRowFlags RowFlags : 16; // Current row flags, see ImGuiTableRowFlags_ + ImGuiTableRowFlags LastRowFlags : 16; + int RowBgColorCounter; // Counter for alternating background colors (can be fast-forwarded by e.g clipper), not same as CurrentRow because header rows typically don't increase this. + ImU32 RowBgColor[2]; // Background color override for current row. + ImU32 BorderColorStrong; + ImU32 BorderColorLight; + float BorderX1; + float BorderX2; + float HostIndentX; + float MinColumnWidth; + float OuterPaddingX; + float CellPaddingX; // Padding from each borders + float CellPaddingY; + float CellSpacingX1; // Spacing between non-bordered cells + float CellSpacingX2; + float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details. + float ColumnsGivenWidth; // Sum of current column width + float ColumnsAutoFitWidth; // Sum of ideal column width in order nothing to be clipped, used for auto-fitting and content width submission in outer window + float ColumnsStretchSumWeights; // Sum of weight of all enabled stretching columns + float ResizedColumnNextWidth; + float ResizeLockMinContentsX2; // Lock minimum contents width while resizing down in order to not create feedback loops. But we allow growing the table. + float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. + ImRect OuterRect; // Note: for non-scrolling table, OuterRect.Max.y is often FLT_MAX until EndTable(), unless a height has been specified in BeginTable(). + ImRect InnerRect; // InnerRect but without decoration. As with OuterRect, for non-scrolling tables, InnerRect.Max.y is + ImRect WorkRect; + ImRect InnerClipRect; + ImRect BgClipRect; // We use this to cpu-clip cell background color fill, evolve during the frame as we cross frozen rows boundaries + ImRect Bg0ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG0/1 channel. This tends to be == OuterWindow->ClipRect at BeginTable() because output in BG0/BG1 is cpu-clipped + ImRect Bg2ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG2 channel. This tends to be a correct, tight-fit, because output to BG2 are done by widgets relying on regular ClipRect. + ImRect HostClipRect; // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window. + ImRect HostBackupInnerClipRect; // Backup of InnerWindow->ClipRect during PushTableBackground()/PopTableBackground() + ImGuiWindow* OuterWindow; // Parent window for the table + ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window) + ImGuiTextBuffer ColumnsNames; // Contiguous buffer holding columns names + ImDrawListSplitter* DrawSplitter; // Shortcut to TempData->DrawSplitter while in table. Isolate draw commands per columns to avoid switching clip rect constantly + ImGuiTableInstanceData InstanceDataFirst; + ImVector InstanceDataExtra; // FIXME-OPT: Using a small-vector pattern would be good. + ImGuiTableColumnSortSpecs SortSpecsSingle; + ImVector SortSpecsMulti; // FIXME-OPT: Using a small-vector pattern would be good. + ImGuiTableSortSpecs SortSpecs; // Public facing sorts specs, this is what we return in TableGetSortSpecs() + ImGuiTableColumnIdx SortSpecsCount; + ImGuiTableColumnIdx ColumnsEnabledCount; // Number of enabled columns (<= ColumnsCount) + ImGuiTableColumnIdx ColumnsEnabledFixedCount; // Number of enabled columns (<= ColumnsCount) + ImGuiTableColumnIdx DeclColumnsCount; // Count calls to TableSetupColumn() + ImGuiTableColumnIdx HoveredColumnBody; // Index of column whose visible region is being hovered. Important: == ColumnsCount when hovering empty region after the right-most column! + ImGuiTableColumnIdx HoveredColumnBorder; // Index of column whose right-border is being hovered (for resizing). + ImGuiTableColumnIdx AutoFitSingleColumn; // Index of single column requesting auto-fit. + ImGuiTableColumnIdx ResizedColumn; // Index of column being resized. Reset when InstanceCurrent==0. + ImGuiTableColumnIdx LastResizedColumn; // Index of column being resized from previous frame. + ImGuiTableColumnIdx HeldHeaderColumn; // Index of column header being held. + ImGuiTableColumnIdx ReorderColumn; // Index of column being reordered. (not cleared) + ImGuiTableColumnIdx ReorderColumnDir; // -1 or +1 + ImGuiTableColumnIdx LeftMostEnabledColumn; // Index of left-most non-hidden column. + ImGuiTableColumnIdx RightMostEnabledColumn; // Index of right-most non-hidden column. + ImGuiTableColumnIdx LeftMostStretchedColumn; // Index of left-most stretched column. + ImGuiTableColumnIdx RightMostStretchedColumn; // Index of right-most stretched column. + ImGuiTableColumnIdx ContextPopupColumn; // Column right-clicked on, of -1 if opening context menu from a neutral/empty spot + ImGuiTableColumnIdx FreezeRowsRequest; // Requested frozen rows count + ImGuiTableColumnIdx FreezeRowsCount; // Actual frozen row count (== FreezeRowsRequest, or == 0 when no scrolling offset) + ImGuiTableColumnIdx FreezeColumnsRequest; // Requested frozen columns count + ImGuiTableColumnIdx FreezeColumnsCount; // Actual frozen columns count (== FreezeColumnsRequest, or == 0 when no scrolling offset) + ImGuiTableColumnIdx RowCellDataCurrent; // Index of current RowCellData[] entry in current row + ImGuiTableDrawChannelIdx DummyDrawChannel; // Redirect non-visible columns here. + ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; // For Selectable() and other widgets drawing across columns after the freezing line. Index within DrawSplitter.Channels[] + ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen; + bool IsLayoutLocked; // Set by TableUpdateLayout() which is called when beginning the first row. + bool IsInsideRow; // Set when inside TableBeginRow()/TableEndRow(). + bool IsInitializing; + bool IsSortSpecsDirty; + bool IsUsingHeaders; // Set when the first row had the ImGuiTableRowFlags_Headers flag. + bool IsContextPopupOpen; // Set when default context menu is open (also see: ContextPopupColumn, InstanceInteracted). + bool IsSettingsRequestLoad; + bool IsSettingsDirty; // Set when table settings have changed and needs to be reported into ImGuiTableSetttings data. + bool IsDefaultDisplayOrder; // Set when display order is unchanged from default (DisplayOrder contains 0...Count-1) + bool IsResetAllRequest; + bool IsResetDisplayOrderRequest; + bool IsUnfrozenRows; // Set when we got past the frozen row. + bool IsDefaultSizingPolicy; // Set if user didn't explicitly set a sizing policy in BeginTable() + bool MemoryCompacted; + bool HostSkipItems; // Backup of InnerWindow->SkipItem at the end of BeginTable(), because we will overwrite InnerWindow->SkipItem on a per-column basis + + ImGuiTable() { memset(this, 0, sizeof(*this)); LastFrameActive = -1; } + ~ImGuiTable() { IM_FREE(RawData); } +}; + +// Transient data that are only needed between BeginTable() and EndTable(), those buffers are shared (1 per level of stacked table). +// - Accessing those requires chasing an extra pointer so for very frequently used data we leave them in the main table structure. +// - We also leave out of this structure data that tend to be particularly useful for debugging/metrics. +struct IMGUI_API ImGuiTableTempData +{ + int TableIndex; // Index in g.Tables.Buf[] pool + float LastTimeActive; // Last timestamp this structure was used + + ImVec2 UserOuterSize; // outer_size.x passed to BeginTable() + ImDrawListSplitter DrawSplitter; + + ImRect HostBackupWorkRect; // Backup of InnerWindow->WorkRect at the end of BeginTable() + ImRect HostBackupParentWorkRect; // Backup of InnerWindow->ParentWorkRect at the end of BeginTable() + ImVec2 HostBackupPrevLineSize; // Backup of InnerWindow->DC.PrevLineSize at the end of BeginTable() + ImVec2 HostBackupCurrLineSize; // Backup of InnerWindow->DC.CurrLineSize at the end of BeginTable() + ImVec2 HostBackupCursorMaxPos; // Backup of InnerWindow->DC.CursorMaxPos at the end of BeginTable() + ImVec1 HostBackupColumnsOffset; // Backup of OuterWindow->DC.ColumnsOffset at the end of BeginTable() + float HostBackupItemWidth; // Backup of OuterWindow->DC.ItemWidth at the end of BeginTable() + int HostBackupItemWidthStackSize;//Backup of OuterWindow->DC.ItemWidthStack.Size at the end of BeginTable() + + ImGuiTableTempData() { memset(this, 0, sizeof(*this)); LastTimeActive = -1.0f; } +}; + +// sizeof() ~ 12 +struct ImGuiTableColumnSettings +{ + float WidthOrWeight; + ImGuiID UserID; + ImGuiTableColumnIdx Index; + ImGuiTableColumnIdx DisplayOrder; + ImGuiTableColumnIdx SortOrder; + ImU8 SortDirection : 2; + ImU8 IsEnabled : 1; // "Visible" in ini file + ImU8 IsStretch : 1; + + ImGuiTableColumnSettings() + { + WidthOrWeight = 0.0f; + UserID = 0; + Index = -1; + DisplayOrder = SortOrder = -1; + SortDirection = ImGuiSortDirection_None; + IsEnabled = 1; + IsStretch = 0; + } +}; + +// This is designed to be stored in a single ImChunkStream (1 header followed by N ImGuiTableColumnSettings, etc.) +struct ImGuiTableSettings +{ + ImGuiID ID; // Set to 0 to invalidate/delete the setting + ImGuiTableFlags SaveFlags; // Indicate data we want to save using the Resizable/Reorderable/Sortable/Hideable flags (could be using its own flags..) + float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. + ImGuiTableColumnIdx ColumnsCount; + ImGuiTableColumnIdx ColumnsCountMax; // Maximum number of columns this settings instance can store, we can recycle a settings instance with lower number of columns but not higher + bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) + + ImGuiTableSettings() { memset(this, 0, sizeof(*this)); } + ImGuiTableColumnSettings* GetColumnSettings() { return (ImGuiTableColumnSettings*)(this + 1); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGui internal API +// No guarantee of forward compatibility here! +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Windows + // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) + // If this ever crash because g.CurrentWindow is NULL it means that either + // - ImGui::NewFrame() has never been called, which is illegal. + // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. + inline ImGuiWindow* GetCurrentWindowRead() { ImGuiContext& g = *GImGui; return g.CurrentWindow; } + inline ImGuiWindow* GetCurrentWindow() { ImGuiContext& g = *GImGui; g.CurrentWindow->WriteAccessed = true; return g.CurrentWindow; } + IMGUI_API ImGuiWindow* FindWindowByID(ImGuiID id); + IMGUI_API ImGuiWindow* FindWindowByName(const char* name); + IMGUI_API void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); + IMGUI_API ImVec2 CalcWindowNextAutoFitSize(ImGuiWindow* window); + IMGUI_API bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy); + IMGUI_API bool IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent); + IMGUI_API bool IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below); + IMGUI_API bool IsWindowNavFocusable(ImGuiWindow* window); + IMGUI_API void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond = 0); + IMGUI_API void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond = 0); + IMGUI_API void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0); + IMGUI_API void SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size); + inline ImRect WindowRectAbsToRel(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x - off.x, r.Min.y - off.y, r.Max.x - off.x, r.Max.y - off.y); } + inline ImRect WindowRectRelToAbs(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x + off.x, r.Min.y + off.y, r.Max.x + off.x, r.Max.y + off.y); } + + // Windows: Display Order and Focus Order + IMGUI_API void FocusWindow(ImGuiWindow* window); + IMGUI_API void FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window); + IMGUI_API void BringWindowToFocusFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayBack(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* above_window); + IMGUI_API int FindWindowDisplayIndex(ImGuiWindow* window); + IMGUI_API ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window); + + // Fonts, drawing + IMGUI_API void SetCurrentFont(ImFont* font); + inline ImFont* GetDefaultFont() { ImGuiContext& g = *GImGui; return g.IO.FontDefault ? g.IO.FontDefault : g.IO.Fonts->Fonts[0]; } + inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window) { IM_UNUSED(window); return GetForegroundDrawList(); } // This seemingly unnecessary wrapper simplifies compatibility between the 'master' and 'docking' branches. + IMGUI_API ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport); // get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport); // get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + + // Init + IMGUI_API void Initialize(); + IMGUI_API void Shutdown(); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). + + // NewFrame + IMGUI_API void UpdateInputEvents(bool trickle_fast_inputs); + IMGUI_API void UpdateHoveredWindowAndCaptureFlags(); + IMGUI_API void StartMouseMovingWindow(ImGuiWindow* window); + IMGUI_API void UpdateMouseMovingWindowNewFrame(); + IMGUI_API void UpdateMouseMovingWindowEndFrame(); + + // Generic context hooks + IMGUI_API ImGuiID AddContextHook(ImGuiContext* context, const ImGuiContextHook* hook); + IMGUI_API void RemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove); + IMGUI_API void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type); + + // Viewports + IMGUI_API void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport); + + // Settings + IMGUI_API void MarkIniSettingsDirty(); + IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window); + IMGUI_API void ClearIniSettings(); + IMGUI_API ImGuiWindowSettings* CreateNewWindowSettings(const char* name); + IMGUI_API ImGuiWindowSettings* FindWindowSettings(ImGuiID id); + IMGUI_API ImGuiWindowSettings* FindOrCreateWindowSettings(const char* name); + IMGUI_API void AddSettingsHandler(const ImGuiSettingsHandler* handler); + IMGUI_API void RemoveSettingsHandler(const char* type_name); + IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name); + + // Localization + IMGUI_API void LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count); + inline const char* LocalizeGetMsg(ImGuiLocKey key) { ImGuiContext& g = *GImGui; const char* msg = g.LocalizationTable[key]; return msg ? msg : "*Missing Text*"; } + + // Scrolling + IMGUI_API void SetScrollX(ImGuiWindow* window, float scroll_x); + IMGUI_API void SetScrollY(ImGuiWindow* window, float scroll_y); + IMGUI_API void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio); + IMGUI_API void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio); + + // Early work-in-progress API (ScrollToItem() will become public) + IMGUI_API void ScrollToItem(ImGuiScrollFlags flags = 0); + IMGUI_API void ScrollToRect(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0); + IMGUI_API ImVec2 ScrollToRectEx(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0); +//#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& rect) { ScrollToRect(window, rect, ImGuiScrollFlags_KeepVisibleEdgeY); } +//#endif + + // Basic Accessors + inline ImGuiID GetItemID() { ImGuiContext& g = *GImGui; return g.LastItemData.ID; } // Get ID of last item (~~ often same ImGui::GetID(label) beforehand) + inline ImGuiItemStatusFlags GetItemStatusFlags(){ ImGuiContext& g = *GImGui; return g.LastItemData.StatusFlags; } + inline ImGuiItemFlags GetItemFlags() { ImGuiContext& g = *GImGui; return g.LastItemData.InFlags; } + inline ImGuiID GetActiveID() { ImGuiContext& g = *GImGui; return g.ActiveId; } + inline ImGuiID GetFocusID() { ImGuiContext& g = *GImGui; return g.NavId; } + IMGUI_API void SetActiveID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void SetFocusID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void ClearActiveID(); + IMGUI_API ImGuiID GetHoveredID(); + IMGUI_API void SetHoveredID(ImGuiID id); + IMGUI_API void KeepAliveID(ImGuiID id); + IMGUI_API void MarkItemEdited(ImGuiID id); // Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function. + IMGUI_API void PushOverrideID(ImGuiID id); // Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes) + IMGUI_API ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed); + + // Basic Helpers for widget code + IMGUI_API void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f); + inline void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f) { ItemSize(bb.GetSize(), text_baseline_y); } // FIXME: This is a misleading API since we expect CursorPos to be bb.Min. + IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL, ImGuiItemFlags extra_flags = 0); + IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id); + IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id); + IMGUI_API void SetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags status_flags, const ImRect& item_rect); + IMGUI_API ImVec2 CalcItemSize(ImVec2 size, float default_w, float default_h); + IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x); + IMGUI_API void PushMultiItemsWidths(int components, float width_full); + IMGUI_API bool IsItemToggledSelection(); // Was the last item selection toggled? (after Selectable(), TreeNode() etc. We only returns toggle _event_ in order to handle clipping correctly) + IMGUI_API ImVec2 GetContentRegionMaxAbs(); + IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); + + // Parameter stacks (shared) + IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled); + IMGUI_API void PopItemFlag(); + + // Logging/Capture + IMGUI_API void LogBegin(ImGuiLogType type, int auto_open_depth); // -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. + IMGUI_API void LogToBuffer(int auto_open_depth = -1); // Start logging/capturing to internal buffer + IMGUI_API void LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end = NULL); + IMGUI_API void LogSetNextTextDecoration(const char* prefix, const char* suffix); + + // Popups, Modals, Tooltips + IMGUI_API bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags); + IMGUI_API void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags = ImGuiPopupFlags_None); + IMGUI_API void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup); + IMGUI_API void ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup); + IMGUI_API void ClosePopupsExceptModals(); + IMGUI_API bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags); + IMGUI_API bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags); + IMGUI_API void BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags); + IMGUI_API ImRect GetPopupAllowedExtentRect(ImGuiWindow* window); + IMGUI_API ImGuiWindow* GetTopMostPopupModal(); + IMGUI_API ImGuiWindow* GetTopMostAndVisiblePopupModal(); + IMGUI_API ImVec2 FindBestWindowPosForPopup(ImGuiWindow* window); + IMGUI_API ImVec2 FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy); + + // Menus + IMGUI_API bool BeginViewportSideBar(const char* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags); + IMGUI_API bool BeginMenuEx(const char* label, const char* icon, bool enabled = true); + IMGUI_API bool MenuItemEx(const char* label, const char* icon, const char* shortcut = NULL, bool selected = false, bool enabled = true); + + // Combos + IMGUI_API bool BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags); + IMGUI_API bool BeginComboPreview(); + IMGUI_API void EndComboPreview(); + + // Gamepad/Keyboard Navigation + IMGUI_API void NavInitWindow(ImGuiWindow* window, bool force_reinit); + IMGUI_API void NavInitRequestApplyResult(); + IMGUI_API bool NavMoveRequestButNoResultYet(); + IMGUI_API void NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); + IMGUI_API void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); + IMGUI_API void NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result); + IMGUI_API void NavMoveRequestCancel(); + IMGUI_API void NavMoveRequestApplyResult(); + IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); + IMGUI_API void ActivateItem(ImGuiID id); // Remotely activate a button, checkbox, tree node etc. given its unique ID. activation is queued and processed on the next frame when the item is encountered again. + IMGUI_API void SetNavWindow(ImGuiWindow* window); + IMGUI_API void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel); + + // Inputs + // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. + inline bool IsNamedKey(ImGuiKey key) { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; } + inline bool IsNamedKeyOrModKey(ImGuiKey key) { return (key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END) || key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super; } + inline bool IsLegacyKey(ImGuiKey key) { return key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_LegacyNativeKey_END; } + inline bool IsKeyboardKey(ImGuiKey key) { return key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END; } + inline bool IsGamepadKey(ImGuiKey key) { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; } + inline bool IsMouseKey(ImGuiKey key) { return key >= ImGuiKey_Mouse_BEGIN && key < ImGuiKey_Mouse_END; } + inline bool IsAliasKey(ImGuiKey key) { return key >= ImGuiKey_Aliases_BEGIN && key < ImGuiKey_Aliases_END; } + inline ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key) + { + if (key == ImGuiMod_Ctrl) return ImGuiKey_ReservedForModCtrl; + if (key == ImGuiMod_Shift) return ImGuiKey_ReservedForModShift; + if (key == ImGuiMod_Alt) return ImGuiKey_ReservedForModAlt; + if (key == ImGuiMod_Super) return ImGuiKey_ReservedForModSuper; + return key; + } + + IMGUI_API ImGuiKeyData* GetKeyData(ImGuiKey key); + IMGUI_API void GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size); + inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); } + IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f); + IMGUI_API ImVec2 GetKeyVector2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down); + IMGUI_API float GetNavTweakPressedAmount(ImGuiAxis axis); + IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); + IMGUI_API void GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate); + IMGUI_API void SetActiveIdUsingAllKeyboardKeys(); + inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } + + // [EXPERIMENTAL] Low-Level: Key/Input Ownership + // - The idea is that instead of "eating" a given input, we can link to an owner id. + // - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). + // - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). + // - Input ownership is automatically released on the frame after a key is released. Therefore: + // - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). + // - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). + // - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. + // - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. + // Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. + IMGUI_API ImGuiID GetKeyOwner(ImGuiKey key); + IMGUI_API void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags = 0); // Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'. + IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id); // Test that key is either not owned, either owned by 'owner_id' + inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiKey key) { if (key & ImGuiMod_Mask_) key = ConvertSingleModFlagToKey(key); IM_ASSERT(IsNamedKey(key)); return &GImGui->KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; } + + // [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership + // - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. + // - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) + // - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. + // Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. + // - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. + IMGUI_API bool IsKeyDown(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); // Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. + IMGUI_API bool IsKeyReleased(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id); + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id); + + // [EXPERIMENTAL] Shortcut Routing + // - ImGuiKeyChord = a ImGuiKey optionally OR-red with ImGuiMod_Alt/ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Super. + // ImGuiKey_C (accepted by functions taking ImGuiKey or ImGuiKeyChord) + // ImGuiKey_C | ImGuiMod_Ctrl (accepted by functions taking ImGuiKeyChord) + // ONLY ImGuiMod_XXX values are legal to 'OR' with an ImGuiKey. You CANNOT 'OR' two ImGuiKey values. + // - When using one of the routing flags (e.g. ImGuiInputFlags_RouteFocused): routes requested ahead of time given a chord (key + modifiers) and a routing policy. + // - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. + // - Route is granted to a single owner. When multiple requests are made we have policies to select the winning route. + // - Multiple read sites may use the same owner id and will all get the granted route. + // - For routing: when owner_id is 0 we use the current Focus Scope ID as a default owner in order to identify our location. + IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id); + IMGUI_API ImGuiKeyRoutingData* GetShortcutRoutingData(ImGuiKeyChord key_chord); + + // [EXPERIMENTAL] Focus Scope + // This is generally used to identify a unique input location (for e.g. a selection set) + // There is one per window (automatically set in Begin), but: + // - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set. + // So in order to identify a set multiple lists in same window may each need a focus scope. + // If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope() + // - Shortcut routing also use focus scope as a default location identifier if an owner is not provided. + // We don't use the ID Stack for this as it is common to want them separate. + IMGUI_API void PushFocusScope(ImGuiID id); + IMGUI_API void PopFocusScope(); + inline ImGuiID GetCurrentFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentFocusScopeId; } // Focus scope we are outputting into, set by PushFocusScope() + + // Drag and Drop + IMGUI_API bool IsDragDropActive(); + IMGUI_API bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id); + IMGUI_API void ClearDragDrop(); + IMGUI_API bool IsDragDropPayloadBeingAccepted(); + IMGUI_API void RenderDragDropTargetRect(const ImRect& bb); + + // Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) + IMGUI_API void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect); + IMGUI_API void BeginColumns(const char* str_id, int count, ImGuiOldColumnFlags flags = 0); // setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). + IMGUI_API void EndColumns(); // close columns + IMGUI_API void PushColumnClipRect(int column_index); + IMGUI_API void PushColumnsBackground(); + IMGUI_API void PopColumnsBackground(); + IMGUI_API ImGuiID GetColumnsID(const char* str_id, int count); + IMGUI_API ImGuiOldColumns* FindOrCreateColumns(ImGuiWindow* window, ImGuiID id); + IMGUI_API float GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm); + IMGUI_API float GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset); + + // Tables: Candidates for public API + IMGUI_API void TableOpenContextMenu(int column_n = -1); + IMGUI_API void TableSetColumnWidth(int column_n, float width); + IMGUI_API void TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs); + IMGUI_API int TableGetHoveredColumn(); // May use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead. Return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. + IMGUI_API float TableGetHeaderRowHeight(); + IMGUI_API void TablePushBackgroundChannel(); + IMGUI_API void TablePopBackgroundChannel(); + + // Tables: Internals + inline ImGuiTable* GetCurrentTable() { ImGuiContext& g = *GImGui; return g.CurrentTable; } + IMGUI_API ImGuiTable* TableFindByID(ImGuiID id); + IMGUI_API bool BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0, 0), float inner_width = 0.0f); + IMGUI_API void TableBeginInitMemory(ImGuiTable* table, int columns_count); + IMGUI_API void TableBeginApplyRequests(ImGuiTable* table); + IMGUI_API void TableSetupDrawChannels(ImGuiTable* table); + IMGUI_API void TableUpdateLayout(ImGuiTable* table); + IMGUI_API void TableUpdateBorders(ImGuiTable* table); + IMGUI_API void TableUpdateColumnsWeightFromWidth(ImGuiTable* table); + IMGUI_API void TableDrawBorders(ImGuiTable* table); + IMGUI_API void TableDrawContextMenu(ImGuiTable* table); + IMGUI_API bool TableBeginContextMenuPopup(ImGuiTable* table); + IMGUI_API void TableMergeDrawChannels(ImGuiTable* table); + inline ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instance_no) { if (instance_no == 0) return &table->InstanceDataFirst; return &table->InstanceDataExtra[instance_no - 1]; } + IMGUI_API void TableSortSpecsSanitize(ImGuiTable* table); + IMGUI_API void TableSortSpecsBuild(ImGuiTable* table); + IMGUI_API ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column); + IMGUI_API void TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column); + IMGUI_API float TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column); + IMGUI_API void TableBeginRow(ImGuiTable* table); + IMGUI_API void TableEndRow(ImGuiTable* table); + IMGUI_API void TableBeginCell(ImGuiTable* table, int column_n); + IMGUI_API void TableEndCell(ImGuiTable* table); + IMGUI_API ImRect TableGetCellBgRect(const ImGuiTable* table, int column_n); + IMGUI_API const char* TableGetColumnName(const ImGuiTable* table, int column_n); + IMGUI_API ImGuiID TableGetColumnResizeID(const ImGuiTable* table, int column_n, int instance_no = 0); + IMGUI_API float TableGetMaxColumnWidth(const ImGuiTable* table, int column_n); + IMGUI_API void TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n); + IMGUI_API void TableSetColumnWidthAutoAll(ImGuiTable* table); + IMGUI_API void TableRemove(ImGuiTable* table); + IMGUI_API void TableGcCompactTransientBuffers(ImGuiTable* table); + IMGUI_API void TableGcCompactTransientBuffers(ImGuiTableTempData* table); + IMGUI_API void TableGcCompactSettings(); + + // Tables: Settings + IMGUI_API void TableLoadSettings(ImGuiTable* table); + IMGUI_API void TableSaveSettings(ImGuiTable* table); + IMGUI_API void TableResetSettings(ImGuiTable* table); + IMGUI_API ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table); + IMGUI_API void TableSettingsAddSettingsHandler(); + IMGUI_API ImGuiTableSettings* TableSettingsCreate(ImGuiID id, int columns_count); + IMGUI_API ImGuiTableSettings* TableSettingsFindByID(ImGuiID id); + + // Tab Bars + IMGUI_API bool BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& bb, ImGuiTabBarFlags flags); + IMGUI_API ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API void TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); + IMGUI_API void TabBarQueueReorder(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int offset); + IMGUI_API void TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, ImVec2 mouse_pos); + IMGUI_API bool TabBarProcessReorder(ImGuiTabBar* tab_bar); + IMGUI_API bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags); + IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker); + IMGUI_API void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col); + IMGUI_API void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped); + + // Render helpers + // AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. + // NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) + IMGUI_API void RenderText(ImVec2 pos, const char* text, const char* text_end = NULL, bool hide_text_after_hash = true); + IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width); + IMGUI_API void RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known); + IMGUI_API void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border = true, float rounding = 0.0f); + IMGUI_API void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f); + IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0); + IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault); // Navigation highlight + IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text. + IMGUI_API void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); + + // Render helpers (those functions don't access any ImGui state!) + IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f); + IMGUI_API void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); + IMGUI_API void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); + IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); + IMGUI_API void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); + IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding); + + // Widgets + IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0); + IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0); + IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos); + IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos); + IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0); + IMGUI_API void Scrollbar(ImGuiAxis axis); + IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags flags); + IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col); + IMGUI_API ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowResizeCornerID(ImGuiWindow* window, int n); // 0..3: corners + IMGUI_API ImGuiID GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir); + IMGUI_API void SeparatorEx(ImGuiSeparatorFlags flags); + IMGUI_API bool CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value); + IMGUI_API bool CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value); + + // Widgets low-level behaviors + IMGUI_API bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0); + IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); + IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f); + IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL); + IMGUI_API void TreePushOverrideID(ImGuiID id); + IMGUI_API void TreeNodeSetOpen(ImGuiID id, bool open); + IMGUI_API bool TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags); // Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging. + + // Template functions are instantiated in imgui_widgets.cpp for a finite number of types. + // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036). + // e.g. " extern template IMGUI_API float RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, float v); " + template IMGUI_API float ScaleRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags); + template IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); + template IMGUI_API bool CheckboxFlagsT(const char* label, T* flags, T flags_value); + + // Data type helpers + IMGUI_API const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type); + IMGUI_API int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); + IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format); + IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); + + // InputText + IMGUI_API bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); + IMGUI_API bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL); + inline bool TempInputIsActive(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.ActiveId == id && g.TempInputId == id); } + inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (id != 0 && g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active + + // Color + IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags); + + // Plot + IMGUI_API int PlotEx(ImGuiPlotType plot_type, 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 frame_size); + + // Shade functions (write over already created vertices) + IMGUI_API void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1); + IMGUI_API void ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp); + + // Garbage collection + IMGUI_API void GcCompactTransientMiscBuffers(); + IMGUI_API void GcCompactTransientWindowBuffers(ImGuiWindow* window); + IMGUI_API void GcAwakeTransientWindowBuffers(ImGuiWindow* window); + + // Debug Log + IMGUI_API void DebugLog(const char* fmt, ...) IM_FMTARGS(1); + IMGUI_API void DebugLogV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Debug Tools + IMGUI_API void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + IMGUI_API void DebugLocateItem(ImGuiID target_id); // Call sparingly: only 1 at the same time! + IMGUI_API void DebugLocateItemOnHover(ImGuiID target_id); // Only call on reaction to a mouse Hover: because only 1 at the same time! + IMGUI_API void DebugLocateItemResolveWithLastItem(); + inline void DebugDrawItemRect(ImU32 col = IM_COL32(255,0,0,255)) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; GetForegroundDrawList(window)->AddRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, col); } + inline void DebugStartItemPicker() { ImGuiContext& g = *GImGui; g.DebugItemPickerActive = true; } + IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); + IMGUI_API void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end); + IMGUI_API void DebugNodeColumns(ImGuiOldColumns* columns); + IMGUI_API void DebugNodeDrawList(ImGuiWindow* window, const ImDrawList* draw_list, const char* label); + IMGUI_API void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb); + IMGUI_API void DebugNodeFont(ImFont* font); + IMGUI_API void DebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph); + IMGUI_API void DebugNodeStorage(ImGuiStorage* storage, const char* label); + IMGUI_API void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label); + IMGUI_API void DebugNodeTable(ImGuiTable* table); + IMGUI_API void DebugNodeTableSettings(ImGuiTableSettings* settings); + IMGUI_API void DebugNodeInputTextState(ImGuiInputTextState* state); + IMGUI_API void DebugNodeWindow(ImGuiWindow* window, const char* label); + IMGUI_API void DebugNodeWindowSettings(ImGuiWindowSettings* settings); + IMGUI_API void DebugNodeWindowsList(ImVector* windows, const char* label); + IMGUI_API void DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack); + IMGUI_API void DebugNodeViewport(ImGuiViewportP* viewport); + IMGUI_API void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb); + + // Obsolete functions +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void SetItemUsingMouseWheel() { SetItemKeyOwner(ImGuiKey_MouseWheelY); } // Changed in 1.89 + inline bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0) { return TreeNodeUpdateNextOpen(id, flags); } // Renamed in 1.89 + + // Refactored focus/nav/tabbing system in 1.82 and 1.84. If you have old/custom copy-and-pasted widgets that used FocusableItemRegister(): + // (Old) IMGUI_VERSION_NUM < 18209: using 'ItemAdd(....)' and 'bool tab_focused = FocusableItemRegister(...)' + // (Old) IMGUI_VERSION_NUM >= 18209: using 'ItemAdd(..., ImGuiItemAddFlags_Focusable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_Focused) != 0' + // (New) IMGUI_VERSION_NUM >= 18413: using 'ItemAdd(..., ImGuiItemFlags_Inputable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_FocusedTabbing) != 0 || g.NavActivateInputId == id' (WIP) + // Widget code are simplified as there's no need to call FocusableItemUnregister() while managing the transition from regular widget to TempInputText() + inline bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id) { IM_ASSERT(0); IM_UNUSED(window); IM_UNUSED(id); return false; } // -> pass ImGuiItemAddFlags_Inputable flag to ItemAdd() + inline void FocusableItemUnregister(ImGuiWindow* window) { IM_ASSERT(0); IM_UNUSED(window); } // -> unnecessary: TempInputText() uses ImGuiInputTextFlags_MergedItem +#endif +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { IM_ASSERT(IsNamedKey(key)); return IsKeyPressed(key, repeat); } // Removed in 1.87: Mapping from named key is always identity! +#endif + +} // namespace ImGui + + +//----------------------------------------------------------------------------- +// [SECTION] ImFontAtlas internal API +//----------------------------------------------------------------------------- + +// This structure is likely to evolve as we add support for incremental atlas updates +struct ImFontBuilderIO +{ + bool (*FontBuilder_Build)(ImFontAtlas* atlas); +}; + +// Helper for font builder +#ifdef IMGUI_ENABLE_STB_TRUETYPE +IMGUI_API const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype(); +#endif +IMGUI_API void ImFontAtlasBuildInit(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); +IMGUI_API void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); +IMGUI_API void ImFontAtlasBuildFinish(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value); +IMGUI_API void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value); +IMGUI_API void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_multiply_factor); +IMGUI_API void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride); + +//----------------------------------------------------------------------------- +// [SECTION] Test Engine specific hooks (imgui_test_engine) +//----------------------------------------------------------------------------- + +#ifdef IMGUI_ENABLE_TEST_ENGINE +extern void ImGuiTestEngineHook_ItemAdd(ImGuiContext* ctx, const ImRect& bb, ImGuiID id); +extern void ImGuiTestEngineHook_ItemInfo(ImGuiContext* ctx, ImGuiID id, const char* label, ImGuiItemStatusFlags flags); +extern void ImGuiTestEngineHook_Log(ImGuiContext* ctx, const char* fmt, ...); +extern const char* ImGuiTestEngine_FindItemDebugLabel(ImGuiContext* ctx, ImGuiID id); + +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemAdd(&g, _BB, _ID) // Register item bounding box +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register item label and status flags (optional) +#define IMGUI_TEST_ENGINE_LOG(_FMT,...) if (g.TestEngineHookItems) ImGuiTestEngineHook_Log(&g, _FMT, __VA_ARGS__) // Custom log entry from user land into test log +#else +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) ((void)0) +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) ((void)g) +#endif + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_tables.cpp b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_tables.cpp new file mode 100644 index 000000000..503c098e9 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_tables.cpp @@ -0,0 +1,4084 @@ +// dear imgui, v1.89.1 +// (tables and columns code) + +/* + +Index of this file: + +// [SECTION] Commentary +// [SECTION] Header mess +// [SECTION] Tables: Main code +// [SECTION] Tables: Simple accessors +// [SECTION] Tables: Row changes +// [SECTION] Tables: Columns changes +// [SECTION] Tables: Columns width management +// [SECTION] Tables: Drawing +// [SECTION] Tables: Sorting +// [SECTION] Tables: Headers +// [SECTION] Tables: Context Menu +// [SECTION] Tables: Settings (.ini data) +// [SECTION] Tables: Garbage Collection +// [SECTION] Tables: Debugging +// [SECTION] Columns, BeginColumns, EndColumns, etc. + +*/ + +// Navigating this file: +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. + +//----------------------------------------------------------------------------- +// [SECTION] Commentary +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Typical tables call flow: (root level is generally public API): +//----------------------------------------------------------------------------- +// - BeginTable() user begin into a table +// | BeginChild() - (if ScrollX/ScrollY is set) +// | TableBeginInitMemory() - first time table is used +// | TableResetSettings() - on settings reset +// | TableLoadSettings() - on settings load +// | TableBeginApplyRequests() - apply queued resizing/reordering/hiding requests +// | - TableSetColumnWidth() - apply resizing width (for mouse resize, often requested by previous frame) +// | - TableUpdateColumnsWeightFromWidth()- recompute columns weights (of stretch columns) from their respective width +// - TableSetupColumn() user submit columns details (optional) +// - TableSetupScrollFreeze() user submit scroll freeze information (optional) +//----------------------------------------------------------------------------- +// - TableUpdateLayout() [Internal] followup to BeginTable(): setup everything: widths, columns positions, clipping rectangles. Automatically called by the FIRST call to TableNextRow() or TableHeadersRow(). +// | TableSetupDrawChannels() - setup ImDrawList channels +// | TableUpdateBorders() - detect hovering columns for resize, ahead of contents submission +// | TableDrawContextMenu() - draw right-click context menu +//----------------------------------------------------------------------------- +// - TableHeadersRow() or TableHeader() user submit a headers row (optional) +// | TableSortSpecsClickColumn() - when left-clicked: alter sort order and sort direction +// | TableOpenContextMenu() - when right-clicked: trigger opening of the default context menu +// - TableGetSortSpecs() user queries updated sort specs (optional, generally after submitting headers) +// - TableNextRow() user begin into a new row (also automatically called by TableHeadersRow()) +// | TableEndRow() - finish existing row +// | TableBeginRow() - add a new row +// - TableSetColumnIndex() / TableNextColumn() user begin into a cell +// | TableEndCell() - close existing column/cell +// | TableBeginCell() - enter into current column/cell +// - [...] user emit contents +//----------------------------------------------------------------------------- +// - EndTable() user ends the table +// | TableDrawBorders() - draw outer borders, inner vertical borders +// | TableMergeDrawChannels() - merge draw channels if clipping isn't required +// | EndChild() - (if ScrollX/ScrollY is set) +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// TABLE SIZING +//----------------------------------------------------------------------------- +// (Read carefully because this is subtle but it does make sense!) +//----------------------------------------------------------------------------- +// About 'outer_size': +// Its meaning needs to differ slightly depending on if we are using ScrollX/ScrollY flags. +// Default value is ImVec2(0.0f, 0.0f). +// X +// - outer_size.x <= 0.0f -> Right-align from window/work-rect right-most edge. With -FLT_MIN or 0.0f will align exactly on right-most edge. +// - outer_size.x > 0.0f -> Set Fixed width. +// Y with ScrollX/ScrollY disabled: we output table directly in current window +// - outer_size.y < 0.0f -> Bottom-align (but will auto extend, unless _NoHostExtendY is set). Not meaningful is parent window can vertically scroll. +// - outer_size.y = 0.0f -> No minimum height (but will auto extend, unless _NoHostExtendY is set) +// - outer_size.y > 0.0f -> Set Minimum height (but will auto extend, unless _NoHostExtenY is set) +// Y with ScrollX/ScrollY enabled: using a child window for scrolling +// - outer_size.y < 0.0f -> Bottom-align. Not meaningful is parent window can vertically scroll. +// - outer_size.y = 0.0f -> Bottom-align, consistent with BeginChild(). Not recommended unless table is last item in parent window. +// - outer_size.y > 0.0f -> Set Exact height. Recommended when using Scrolling on any axis. +//----------------------------------------------------------------------------- +// Outer size is also affected by the NoHostExtendX/NoHostExtendY flags. +// Important to that note how the two flags have slightly different behaviors! +// - ImGuiTableFlags_NoHostExtendX -> Make outer width auto-fit to columns (overriding outer_size.x value). Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. +// - ImGuiTableFlags_NoHostExtendY -> Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY is disabled. Data below the limit will be clipped and not visible. +// In theory ImGuiTableFlags_NoHostExtendY could be the default and any non-scrolling tables with outer_size.y != 0.0f would use exact height. +// This would be consistent but perhaps less useful and more confusing (as vertically clipped items are not easily noticeable) +//----------------------------------------------------------------------------- +// About 'inner_width': +// With ScrollX disabled: +// - inner_width -> *ignored* +// With ScrollX enabled: +// - inner_width < 0.0f -> *illegal* fit in known width (right align from outer_size.x) <-- weird +// - inner_width = 0.0f -> fit in outer_width: Fixed size columns will take space they need (if avail, otherwise shrink down), Stretch columns becomes Fixed columns. +// - inner_width > 0.0f -> override scrolling width, generally to be larger than outer_size.x. Fixed column take space they need (if avail, otherwise shrink down), Stretch columns share remaining space! +//----------------------------------------------------------------------------- +// Details: +// - If you want to use Stretch columns with ScrollX, you generally need to specify 'inner_width' otherwise the concept +// of "available space" doesn't make sense. +// - Even if not really useful, we allow 'inner_width < outer_size.x' for consistency and to facilitate understanding +// of what the value does. +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// COLUMNS SIZING POLICIES +//----------------------------------------------------------------------------- +// About overriding column sizing policy and width/weight with TableSetupColumn(): +// We use a default parameter of 'init_width_or_weight == -1'. +// - with ImGuiTableColumnFlags_WidthFixed, init_width <= 0 (default) --> width is automatic +// - with ImGuiTableColumnFlags_WidthFixed, init_width > 0 (explicit) --> width is custom +// - with ImGuiTableColumnFlags_WidthStretch, init_weight <= 0 (default) --> weight is 1.0f +// - with ImGuiTableColumnFlags_WidthStretch, init_weight > 0 (explicit) --> weight is custom +// Widths are specified _without_ CellPadding. If you specify a width of 100.0f, the column will be cover (100.0f + Padding * 2.0f) +// and you can fit a 100.0f wide item in it without clipping and with full padding. +//----------------------------------------------------------------------------- +// About default sizing policy (if you don't specify a ImGuiTableColumnFlags_WidthXXXX flag) +// - with Table policy ImGuiTableFlags_SizingFixedFit --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is equal to contents width +// - with Table policy ImGuiTableFlags_SizingFixedSame --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is max of all contents width +// - with Table policy ImGuiTableFlags_SizingStretchSame --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is 1.0f +// - with Table policy ImGuiTableFlags_SizingStretchWeight --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is proportional to contents +// Default Width and default Weight can be overridden when calling TableSetupColumn(). +//----------------------------------------------------------------------------- +// About mixing Fixed/Auto and Stretch columns together: +// - the typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. +// - using mixed policies with ScrollX does not make much sense, as using Stretch columns with ScrollX does not make much sense in the first place! +// that is, unless 'inner_width' is passed to BeginTable() to explicitly provide a total width to layout columns in. +// - when using ImGuiTableFlags_SizingFixedSame with mixed columns, only the Fixed/Auto columns will match their widths to the width of the maximum contents. +// - when using ImGuiTableFlags_SizingStretchSame with mixed columns, only the Stretch columns will match their weight/widths. +//----------------------------------------------------------------------------- +// About using column width: +// If a column is manual resizable or has a width specified with TableSetupColumn(): +// - you may use GetContentRegionAvail().x to query the width available in a given column. +// - right-side alignment features such as SetNextItemWidth(-x) or PushItemWidth(-x) will rely on this width. +// If the column is not resizable and has no width specified with TableSetupColumn(): +// - its width will be automatic and be set to the max of items submitted. +// - therefore you generally cannot have ALL items of the columns use e.g. SetNextItemWidth(-FLT_MIN). +// - but if the column has one or more items of known/fixed size, this will become the reference width used by SetNextItemWidth(-FLT_MIN). +//----------------------------------------------------------------------------- + + +//----------------------------------------------------------------------------- +// TABLES CLIPPING/CULLING +//----------------------------------------------------------------------------- +// About clipping/culling of Rows in Tables: +// - For large numbers of rows, it is recommended you use ImGuiListClipper to only submit visible rows. +// ImGuiListClipper is reliant on the fact that rows are of equal height. +// See 'Demo->Tables->Vertical Scrolling' or 'Demo->Tables->Advanced' for a demo of using the clipper. +// - Note that auto-resizing columns don't play well with using the clipper. +// By default a table with _ScrollX but without _Resizable will have column auto-resize. +// So, if you want to use the clipper, make sure to either enable _Resizable, either setup columns width explicitly with _WidthFixed. +//----------------------------------------------------------------------------- +// About clipping/culling of Columns in Tables: +// - Both TableSetColumnIndex() and TableNextColumn() return true when the column is visible or performing +// width measurements. Otherwise, you may skip submitting the contents of a cell/column, BUT ONLY if you know +// it is not going to contribute to row height. +// In many situations, you may skip submitting contents for every column but one (e.g. the first one). +// - Case A: column is not hidden by user, and at least partially in sight (most common case). +// - Case B: column is clipped / out of sight (because of scrolling or parent ClipRect): TableNextColumn() return false as a hint but we still allow layout output. +// - Case C: column is hidden explicitly by the user (e.g. via the context menu, or _DefaultHide column flag, etc.). +// +// [A] [B] [C] +// TableNextColumn(): true false false -> [userland] when TableNextColumn() / TableSetColumnIndex() return false, user can skip submitting items but only if the column doesn't contribute to row height. +// SkipItems: false false true -> [internal] when SkipItems is true, most widgets will early out if submitted, resulting is no layout output. +// ClipRect: normal zero-width zero-width -> [internal] when ClipRect is zero, ItemAdd() will return false and most widgets will early out mid-way. +// ImDrawList output: normal dummy dummy -> [internal] when using the dummy channel, ImDrawList submissions (if any) will be wasted (because cliprect is zero-width anyway). +// +// - We need to distinguish those cases because non-hidden columns that are clipped outside of scrolling bounds should still contribute their height to the row. +// However, in the majority of cases, the contribution to row height is the same for all columns, or the tallest cells are known by the programmer. +//----------------------------------------------------------------------------- +// About clipping/culling of whole Tables: +// - Scrolling tables with a known outer size can be clipped earlier as BeginTable() will return false. +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif +#include "imgui_internal.h" + +// System includes +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') +#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Tables: Main code +//----------------------------------------------------------------------------- +// - TableFixFlags() [Internal] +// - TableFindByID() [Internal] +// - BeginTable() +// - BeginTableEx() [Internal] +// - TableBeginInitMemory() [Internal] +// - TableBeginApplyRequests() [Internal] +// - TableSetupColumnFlags() [Internal] +// - TableUpdateLayout() [Internal] +// - TableUpdateBorders() [Internal] +// - EndTable() +// - TableSetupColumn() +// - TableSetupScrollFreeze() +//----------------------------------------------------------------------------- + +// Configuration +static const int TABLE_DRAW_CHANNEL_BG0 = 0; +static const int TABLE_DRAW_CHANNEL_BG2_FROZEN = 1; +static const int TABLE_DRAW_CHANNEL_NOCLIP = 2; // When using ImGuiTableFlags_NoClip (this becomes the last visible channel) +static const float TABLE_BORDER_SIZE = 1.0f; // FIXME-TABLE: Currently hard-coded because of clipping assumptions with outer borders rendering. +static const float TABLE_RESIZE_SEPARATOR_HALF_THICKNESS = 4.0f; // Extend outside inner borders. +static const float TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER = 0.06f; // Delay/timer before making the hover feedback (color+cursor) visible because tables/columns tends to be more cramped. + +// Helper +inline ImGuiTableFlags TableFixFlags(ImGuiTableFlags flags, ImGuiWindow* outer_window) +{ + // Adjust flags: set default sizing policy + if ((flags & ImGuiTableFlags_SizingMask_) == 0) + flags |= ((flags & ImGuiTableFlags_ScrollX) || (outer_window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) ? ImGuiTableFlags_SizingFixedFit : ImGuiTableFlags_SizingStretchSame; + + // Adjust flags: enable NoKeepColumnsVisible when using ImGuiTableFlags_SizingFixedSame + if ((flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableFlags_NoKeepColumnsVisible; + + // Adjust flags: enforce borders when resizable + if (flags & ImGuiTableFlags_Resizable) + flags |= ImGuiTableFlags_BordersInnerV; + + // Adjust flags: disable NoHostExtendX/NoHostExtendY if we have any scrolling going on + if (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) + flags &= ~(ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_NoHostExtendY); + + // Adjust flags: NoBordersInBodyUntilResize takes priority over NoBordersInBody + if (flags & ImGuiTableFlags_NoBordersInBodyUntilResize) + flags &= ~ImGuiTableFlags_NoBordersInBody; + + // Adjust flags: disable saved settings if there's nothing to save + if ((flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Sortable)) == 0) + flags |= ImGuiTableFlags_NoSavedSettings; + + // Inherit _NoSavedSettings from top-level window (child windows always have _NoSavedSettings set) + if (outer_window->RootWindow->Flags & ImGuiWindowFlags_NoSavedSettings) + flags |= ImGuiTableFlags_NoSavedSettings; + + return flags; +} + +ImGuiTable* ImGui::TableFindByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + return g.Tables.GetByKey(id); +} + +// Read about "TABLE SIZING" at the top of this file. +bool ImGui::BeginTable(const char* str_id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) +{ + ImGuiID id = GetID(str_id); + return BeginTableEx(str_id, id, columns_count, flags, outer_size, inner_width); +} + +bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* outer_window = GetCurrentWindow(); + if (outer_window->SkipItems) // Consistent with other tables + beneficial side effect that assert on miscalling EndTable() will be more visible. + return false; + + // Sanity checks + IM_ASSERT(columns_count > 0 && columns_count <= IMGUI_TABLE_MAX_COLUMNS && "Only 1..64 columns allowed!"); + if (flags & ImGuiTableFlags_ScrollX) + IM_ASSERT(inner_width >= 0.0f); + + // If an outer size is specified ahead we will be able to early out when not visible. Exact clipping rules may evolve. + const bool use_child_window = (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) != 0; + const ImVec2 avail_size = GetContentRegionAvail(); + ImVec2 actual_outer_size = CalcItemSize(outer_size, ImMax(avail_size.x, 1.0f), use_child_window ? ImMax(avail_size.y, 1.0f) : 0.0f); + ImRect outer_rect(outer_window->DC.CursorPos, outer_window->DC.CursorPos + actual_outer_size); + if (use_child_window && IsClippedEx(outer_rect, 0)) + { + ItemSize(outer_rect); + return false; + } + + // Acquire storage for the table + ImGuiTable* table = g.Tables.GetOrAddByKey(id); + const int instance_no = (table->LastFrameActive != g.FrameCount) ? 0 : table->InstanceCurrent + 1; + const ImGuiID instance_id = id + instance_no; + const ImGuiTableFlags table_last_flags = table->Flags; + if (instance_no > 0) + IM_ASSERT(table->ColumnsCount == columns_count && "BeginTable(): Cannot change columns count mid-frame while preserving same ID"); + + // Acquire temporary buffers + const int table_idx = g.Tables.GetIndex(table); + if (++g.TablesTempDataStacked > g.TablesTempData.Size) + g.TablesTempData.resize(g.TablesTempDataStacked, ImGuiTableTempData()); + ImGuiTableTempData* temp_data = table->TempData = &g.TablesTempData[g.TablesTempDataStacked - 1]; + temp_data->TableIndex = table_idx; + table->DrawSplitter = &table->TempData->DrawSplitter; + table->DrawSplitter->Clear(); + + // Fix flags + table->IsDefaultSizingPolicy = (flags & ImGuiTableFlags_SizingMask_) == 0; + flags = TableFixFlags(flags, outer_window); + + // Initialize + table->ID = id; + table->Flags = flags; + table->InstanceCurrent = (ImS16)instance_no; + table->LastFrameActive = g.FrameCount; + table->OuterWindow = table->InnerWindow = outer_window; + table->ColumnsCount = columns_count; + table->IsLayoutLocked = false; + table->InnerWidth = inner_width; + temp_data->UserOuterSize = outer_size; + if (instance_no > 0 && table->InstanceDataExtra.Size < instance_no) + table->InstanceDataExtra.push_back(ImGuiTableInstanceData()); + + // When not using a child window, WorkRect.Max will grow as we append contents. + if (use_child_window) + { + // Ensure no vertical scrollbar appears if we only want horizontal one, to make flag consistent + // (we have no other way to disable vertical scrollbar of a window while keeping the horizontal one showing) + ImVec2 override_content_size(FLT_MAX, FLT_MAX); + if ((flags & ImGuiTableFlags_ScrollX) && !(flags & ImGuiTableFlags_ScrollY)) + override_content_size.y = FLT_MIN; + + // Ensure specified width (when not specified, Stretched columns will act as if the width == OuterWidth and + // never lead to any scrolling). We don't handle inner_width < 0.0f, we could potentially use it to right-align + // based on the right side of the child window work rect, which would require knowing ahead if we are going to + // have decoration taking horizontal spaces (typically a vertical scrollbar). + if ((flags & ImGuiTableFlags_ScrollX) && inner_width > 0.0f) + override_content_size.x = inner_width; + + if (override_content_size.x != FLT_MAX || override_content_size.y != FLT_MAX) + SetNextWindowContentSize(ImVec2(override_content_size.x != FLT_MAX ? override_content_size.x : 0.0f, override_content_size.y != FLT_MAX ? override_content_size.y : 0.0f)); + + // Reset scroll if we are reactivating it + if ((table_last_flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) == 0) + SetNextWindowScroll(ImVec2(0.0f, 0.0f)); + + // Create scrolling region (without border and zero window padding) + ImGuiWindowFlags child_flags = (flags & ImGuiTableFlags_ScrollX) ? ImGuiWindowFlags_HorizontalScrollbar : ImGuiWindowFlags_None; + BeginChildEx(name, instance_id, outer_rect.GetSize(), false, child_flags); + table->InnerWindow = g.CurrentWindow; + table->WorkRect = table->InnerWindow->WorkRect; + table->OuterRect = table->InnerWindow->Rect(); + table->InnerRect = table->InnerWindow->InnerRect; + IM_ASSERT(table->InnerWindow->WindowPadding.x == 0.0f && table->InnerWindow->WindowPadding.y == 0.0f && table->InnerWindow->WindowBorderSize == 0.0f); + } + else + { + // For non-scrolling tables, WorkRect == OuterRect == InnerRect. + // But at this point we do NOT have a correct value for .Max.y (unless a height has been explicitly passed in). It will only be updated in EndTable(). + table->WorkRect = table->OuterRect = table->InnerRect = outer_rect; + } + + // Push a standardized ID for both child-using and not-child-using tables + PushOverrideID(instance_id); + + // Backup a copy of host window members we will modify + ImGuiWindow* inner_window = table->InnerWindow; + table->HostIndentX = inner_window->DC.Indent.x; + table->HostClipRect = inner_window->ClipRect; + table->HostSkipItems = inner_window->SkipItems; + temp_data->HostBackupWorkRect = inner_window->WorkRect; + temp_data->HostBackupParentWorkRect = inner_window->ParentWorkRect; + temp_data->HostBackupColumnsOffset = outer_window->DC.ColumnsOffset; + temp_data->HostBackupPrevLineSize = inner_window->DC.PrevLineSize; + temp_data->HostBackupCurrLineSize = inner_window->DC.CurrLineSize; + temp_data->HostBackupCursorMaxPos = inner_window->DC.CursorMaxPos; + temp_data->HostBackupItemWidth = outer_window->DC.ItemWidth; + temp_data->HostBackupItemWidthStackSize = outer_window->DC.ItemWidthStack.Size; + inner_window->DC.PrevLineSize = inner_window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + + // Padding and Spacing + // - None ........Content..... Pad .....Content........ + // - PadOuter | Pad ..Content..... Pad .....Content.. Pad | + // - PadInner ........Content.. Pad | Pad ..Content........ + // - PadOuter+PadInner | Pad ..Content.. Pad | Pad ..Content.. Pad | + const bool pad_outer_x = (flags & ImGuiTableFlags_NoPadOuterX) ? false : (flags & ImGuiTableFlags_PadOuterX) ? true : (flags & ImGuiTableFlags_BordersOuterV) != 0; + const bool pad_inner_x = (flags & ImGuiTableFlags_NoPadInnerX) ? false : true; + const float inner_spacing_for_border = (flags & ImGuiTableFlags_BordersInnerV) ? TABLE_BORDER_SIZE : 0.0f; + const float inner_spacing_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) == 0) ? g.Style.CellPadding.x : 0.0f; + const float inner_padding_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) != 0) ? g.Style.CellPadding.x : 0.0f; + table->CellSpacingX1 = inner_spacing_explicit + inner_spacing_for_border; + table->CellSpacingX2 = inner_spacing_explicit; + table->CellPaddingX = inner_padding_explicit; + table->CellPaddingY = g.Style.CellPadding.y; + + const float outer_padding_for_border = (flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; + const float outer_padding_explicit = pad_outer_x ? g.Style.CellPadding.x : 0.0f; + table->OuterPaddingX = (outer_padding_for_border + outer_padding_explicit) - table->CellPaddingX; + + table->CurrentColumn = -1; + table->CurrentRow = -1; + table->RowBgColorCounter = 0; + table->LastRowFlags = ImGuiTableRowFlags_None; + table->InnerClipRect = (inner_window == outer_window) ? table->WorkRect : inner_window->ClipRect; + table->InnerClipRect.ClipWith(table->WorkRect); // We need this to honor inner_width + table->InnerClipRect.ClipWithFull(table->HostClipRect); + table->InnerClipRect.Max.y = (flags & ImGuiTableFlags_NoHostExtendY) ? ImMin(table->InnerClipRect.Max.y, inner_window->WorkRect.Max.y) : inner_window->ClipRect.Max.y; + + table->RowPosY1 = table->RowPosY2 = table->WorkRect.Min.y; // This is needed somehow + table->RowTextBaseline = 0.0f; // This will be cleared again by TableBeginRow() + table->FreezeRowsRequest = table->FreezeRowsCount = 0; // This will be setup by TableSetupScrollFreeze(), if any + table->FreezeColumnsRequest = table->FreezeColumnsCount = 0; + table->IsUnfrozenRows = true; + table->DeclColumnsCount = 0; + + // Using opaque colors facilitate overlapping elements of the grid + table->BorderColorStrong = GetColorU32(ImGuiCol_TableBorderStrong); + table->BorderColorLight = GetColorU32(ImGuiCol_TableBorderLight); + + // Make table current + g.CurrentTable = table; + outer_window->DC.CurrentTableIdx = table_idx; + if (inner_window != outer_window) // So EndChild() within the inner window can restore the table properly. + inner_window->DC.CurrentTableIdx = table_idx; + + if ((table_last_flags & ImGuiTableFlags_Reorderable) && (flags & ImGuiTableFlags_Reorderable) == 0) + table->IsResetDisplayOrderRequest = true; + + // Mark as used + if (table_idx >= g.TablesLastTimeActive.Size) + g.TablesLastTimeActive.resize(table_idx + 1, -1.0f); + g.TablesLastTimeActive[table_idx] = (float)g.Time; + temp_data->LastTimeActive = (float)g.Time; + table->MemoryCompacted = false; + + // Setup memory buffer (clear data if columns count changed) + ImGuiTableColumn* old_columns_to_preserve = NULL; + void* old_columns_raw_data = NULL; + const int old_columns_count = table->Columns.size(); + if (old_columns_count != 0 && old_columns_count != columns_count) + { + // Attempt to preserve width on column count change (#4046) + old_columns_to_preserve = table->Columns.Data; + old_columns_raw_data = table->RawData; + table->RawData = NULL; + } + if (table->RawData == NULL) + { + TableBeginInitMemory(table, columns_count); + table->IsInitializing = table->IsSettingsRequestLoad = true; + } + if (table->IsResetAllRequest) + TableResetSettings(table); + if (table->IsInitializing) + { + // Initialize + table->SettingsOffset = -1; + table->IsSortSpecsDirty = true; + table->InstanceInteracted = -1; + table->ContextPopupColumn = -1; + table->ReorderColumn = table->ResizedColumn = table->LastResizedColumn = -1; + table->AutoFitSingleColumn = -1; + table->HoveredColumnBody = table->HoveredColumnBorder = -1; + for (int n = 0; n < columns_count; n++) + { + ImGuiTableColumn* column = &table->Columns[n]; + if (old_columns_to_preserve && n < old_columns_count) + { + // FIXME: We don't attempt to preserve column order in this path. + *column = old_columns_to_preserve[n]; + } + else + { + float width_auto = column->WidthAuto; + *column = ImGuiTableColumn(); + column->WidthAuto = width_auto; + column->IsPreserveWidthAuto = true; // Preserve WidthAuto when reinitializing a live table: not technically necessary but remove a visible flicker + column->IsEnabled = column->IsUserEnabled = column->IsUserEnabledNextFrame = true; + } + column->DisplayOrder = table->DisplayOrderToIndex[n] = (ImGuiTableColumnIdx)n; + } + } + if (old_columns_raw_data) + IM_FREE(old_columns_raw_data); + + // Load settings + if (table->IsSettingsRequestLoad) + TableLoadSettings(table); + + // Handle DPI/font resize + // This is designed to facilitate DPI changes with the assumption that e.g. style.CellPadding has been scaled as well. + // It will also react to changing fonts with mixed results. It doesn't need to be perfect but merely provide a decent transition. + // FIXME-DPI: Provide consistent standards for reference size. Perhaps using g.CurrentDpiScale would be more self explanatory. + // This is will lead us to non-rounded WidthRequest in columns, which should work but is a poorly tested path. + const float new_ref_scale_unit = g.FontSize; // g.Font->GetCharAdvance('A') ? + if (table->RefScale != 0.0f && table->RefScale != new_ref_scale_unit) + { + const float scale_factor = new_ref_scale_unit / table->RefScale; + //IMGUI_DEBUG_PRINT("[table] %08X RefScaleUnit %.3f -> %.3f, scaling width by %.3f\n", table->ID, table->RefScaleUnit, new_ref_scale_unit, scale_factor); + for (int n = 0; n < columns_count; n++) + table->Columns[n].WidthRequest = table->Columns[n].WidthRequest * scale_factor; + } + table->RefScale = new_ref_scale_unit; + + // Disable output until user calls TableNextRow() or TableNextColumn() leading to the TableUpdateLayout() call.. + // This is not strictly necessary but will reduce cases were "out of table" output will be misleading to the user. + // Because we cannot safely assert in EndTable() when no rows have been created, this seems like our best option. + inner_window->SkipItems = true; + + // Clear names + // At this point the ->NameOffset field of each column will be invalid until TableUpdateLayout() or the first call to TableSetupColumn() + if (table->ColumnsNames.Buf.Size > 0) + table->ColumnsNames.Buf.resize(0); + + // Apply queued resizing/reordering/hiding requests + TableBeginApplyRequests(table); + + return true; +} + +// For reference, the average total _allocation count_ for a table is: +// + 0 (for ImGuiTable instance, we are pooling allocations in g.Tables) +// + 1 (for table->RawData allocated below) +// + 1 (for table->ColumnsNames, if names are used) +// Shared allocations per number of nested tables +// + 1 (for table->Splitter._Channels) +// + 2 * active_channels_count (for ImDrawCmd and ImDrawIdx buffers inside channels) +// Where active_channels_count is variable but often == columns_count or columns_count + 1, see TableSetupDrawChannels() for details. +// Unused channels don't perform their +2 allocations. +void ImGui::TableBeginInitMemory(ImGuiTable* table, int columns_count) +{ + // Allocate single buffer for our arrays + ImSpanAllocator<3> span_allocator; + span_allocator.Reserve(0, columns_count * sizeof(ImGuiTableColumn)); + span_allocator.Reserve(1, columns_count * sizeof(ImGuiTableColumnIdx)); + span_allocator.Reserve(2, columns_count * sizeof(ImGuiTableCellData), 4); + table->RawData = IM_ALLOC(span_allocator.GetArenaSizeInBytes()); + memset(table->RawData, 0, span_allocator.GetArenaSizeInBytes()); + span_allocator.SetArenaBasePtr(table->RawData); + span_allocator.GetSpan(0, &table->Columns); + span_allocator.GetSpan(1, &table->DisplayOrderToIndex); + span_allocator.GetSpan(2, &table->RowCellData); +} + +// Apply queued resizing/reordering/hiding requests +void ImGui::TableBeginApplyRequests(ImGuiTable* table) +{ + // Handle resizing request + // (We process this at the first TableBegin of the frame) + // FIXME-TABLE: Contains columns if our work area doesn't allow for scrolling? + if (table->InstanceCurrent == 0) + { + if (table->ResizedColumn != -1 && table->ResizedColumnNextWidth != FLT_MAX) + TableSetColumnWidth(table->ResizedColumn, table->ResizedColumnNextWidth); + table->LastResizedColumn = table->ResizedColumn; + table->ResizedColumnNextWidth = FLT_MAX; + table->ResizedColumn = -1; + + // Process auto-fit for single column, which is a special case for stretch columns and fixed columns with FixedSame policy. + // FIXME-TABLE: Would be nice to redistribute available stretch space accordingly to other weights, instead of giving it all to siblings. + if (table->AutoFitSingleColumn != -1) + { + TableSetColumnWidth(table->AutoFitSingleColumn, table->Columns[table->AutoFitSingleColumn].WidthAuto); + table->AutoFitSingleColumn = -1; + } + } + + // Handle reordering request + // Note: we don't clear ReorderColumn after handling the request. + if (table->InstanceCurrent == 0) + { + if (table->HeldHeaderColumn == -1 && table->ReorderColumn != -1) + table->ReorderColumn = -1; + table->HeldHeaderColumn = -1; + if (table->ReorderColumn != -1 && table->ReorderColumnDir != 0) + { + // We need to handle reordering across hidden columns. + // In the configuration below, moving C to the right of E will lead to: + // ... C [D] E ---> ... [D] E C (Column name/index) + // ... 2 3 4 ... 2 3 4 (Display order) + const int reorder_dir = table->ReorderColumnDir; + IM_ASSERT(reorder_dir == -1 || reorder_dir == +1); + IM_ASSERT(table->Flags & ImGuiTableFlags_Reorderable); + ImGuiTableColumn* src_column = &table->Columns[table->ReorderColumn]; + ImGuiTableColumn* dst_column = &table->Columns[(reorder_dir == -1) ? src_column->PrevEnabledColumn : src_column->NextEnabledColumn]; + IM_UNUSED(dst_column); + const int src_order = src_column->DisplayOrder; + const int dst_order = dst_column->DisplayOrder; + src_column->DisplayOrder = (ImGuiTableColumnIdx)dst_order; + for (int order_n = src_order + reorder_dir; order_n != dst_order + reorder_dir; order_n += reorder_dir) + table->Columns[table->DisplayOrderToIndex[order_n]].DisplayOrder -= (ImGuiTableColumnIdx)reorder_dir; + IM_ASSERT(dst_column->DisplayOrder == dst_order - reorder_dir); + + // Display order is stored in both columns->IndexDisplayOrder and table->DisplayOrder[], + // rebuild the later from the former. + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; + table->ReorderColumnDir = 0; + table->IsSettingsDirty = true; + } + } + + // Handle display order reset request + if (table->IsResetDisplayOrderRequest) + { + for (int n = 0; n < table->ColumnsCount; n++) + table->DisplayOrderToIndex[n] = table->Columns[n].DisplayOrder = (ImGuiTableColumnIdx)n; + table->IsResetDisplayOrderRequest = false; + table->IsSettingsDirty = true; + } +} + +// Adjust flags: default width mode + stretch columns are not allowed when auto extending +static void TableSetupColumnFlags(ImGuiTable* table, ImGuiTableColumn* column, ImGuiTableColumnFlags flags_in) +{ + ImGuiTableColumnFlags flags = flags_in; + + // Sizing Policy + if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0) + { + const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); + if (table_sizing_policy == ImGuiTableFlags_SizingFixedFit || table_sizing_policy == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableColumnFlags_WidthFixed; + else + flags |= ImGuiTableColumnFlags_WidthStretch; + } + else + { + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_WidthMask_)); // Check that only 1 of each set is used. + } + + // Resize + if ((table->Flags & ImGuiTableFlags_Resizable) == 0) + flags |= ImGuiTableColumnFlags_NoResize; + + // Sorting + if ((flags & ImGuiTableColumnFlags_NoSortAscending) && (flags & ImGuiTableColumnFlags_NoSortDescending)) + flags |= ImGuiTableColumnFlags_NoSort; + + // Indentation + if ((flags & ImGuiTableColumnFlags_IndentMask_) == 0) + flags |= (table->Columns.index_from_ptr(column) == 0) ? ImGuiTableColumnFlags_IndentEnable : ImGuiTableColumnFlags_IndentDisable; + + // Alignment + //if ((flags & ImGuiTableColumnFlags_AlignMask_) == 0) + // flags |= ImGuiTableColumnFlags_AlignCenter; + //IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_AlignMask_)); // Check that only 1 of each set is used. + + // Preserve status flags + column->Flags = flags | (column->Flags & ImGuiTableColumnFlags_StatusMask_); + + // Build an ordered list of available sort directions + column->SortDirectionsAvailCount = column->SortDirectionsAvailMask = column->SortDirectionsAvailList = 0; + if (table->Flags & ImGuiTableFlags_Sortable) + { + int count = 0, mask = 0, list = 0; + if ((flags & ImGuiTableColumnFlags_PreferSortAscending) != 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortDescending) != 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortAscending) == 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortDescending) == 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } + if ((table->Flags & ImGuiTableFlags_SortTristate) || count == 0) { mask |= 1 << ImGuiSortDirection_None; count++; } + column->SortDirectionsAvailList = (ImU8)list; + column->SortDirectionsAvailMask = (ImU8)mask; + column->SortDirectionsAvailCount = (ImU8)count; + ImGui::TableFixColumnSortDirection(table, column); + } +} + +// Layout columns for the frame. This is in essence the followup to BeginTable(). +// Runs on the first call to TableNextRow(), to give a chance for TableSetupColumn() to be called first. +// FIXME-TABLE: Our width (and therefore our WorkRect) will be minimal in the first frame for _WidthAuto columns. +// Increase feedback side-effect with widgets relying on WorkRect.Max.x... Maybe provide a default distribution for _WidthAuto columns? +void ImGui::TableUpdateLayout(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(table->IsLayoutLocked == false); + + const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); + table->IsDefaultDisplayOrder = true; + table->ColumnsEnabledCount = 0; + table->EnabledMaskByIndex = 0x00; + table->EnabledMaskByDisplayOrder = 0x00; + table->LeftMostEnabledColumn = -1; + table->MinColumnWidth = ImMax(1.0f, g.Style.FramePadding.x * 1.0f); // g.Style.ColumnsMinSpacing; // FIXME-TABLE + + // [Part 1] Apply/lock Enabled and Order states. Calculate auto/ideal width for columns. Count fixed/stretch columns. + // Process columns in their visible orders as we are building the Prev/Next indices. + int count_fixed = 0; // Number of columns that have fixed sizing policies + int count_stretch = 0; // Number of columns that have stretch sizing policies + int prev_visible_column_idx = -1; + bool has_auto_fit_request = false; + bool has_resizable = false; + float stretch_sum_width_auto = 0.0f; + float fixed_max_width_auto = 0.0f; + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + const int column_n = table->DisplayOrderToIndex[order_n]; + if (column_n != order_n) + table->IsDefaultDisplayOrder = false; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Clear column setup if not submitted by user. Currently we make it mandatory to call TableSetupColumn() every frame. + // It would easily work without but we're not ready to guarantee it since e.g. names need resubmission anyway. + // We take a slight shortcut but in theory we could be calling TableSetupColumn() here with dummy values, it should yield the same effect. + if (table->DeclColumnsCount <= column_n) + { + TableSetupColumnFlags(table, column, ImGuiTableColumnFlags_None); + column->NameOffset = -1; + column->UserID = 0; + column->InitStretchWeightOrWidth = -1.0f; + } + + // Update Enabled state, mark settings and sort specs dirty + if (!(table->Flags & ImGuiTableFlags_Hideable) || (column->Flags & ImGuiTableColumnFlags_NoHide)) + column->IsUserEnabledNextFrame = true; + if (column->IsUserEnabled != column->IsUserEnabledNextFrame) + { + column->IsUserEnabled = column->IsUserEnabledNextFrame; + table->IsSettingsDirty = true; + } + column->IsEnabled = column->IsUserEnabled && (column->Flags & ImGuiTableColumnFlags_Disabled) == 0; + + if (column->SortOrder != -1 && !column->IsEnabled) + table->IsSortSpecsDirty = true; + if (column->SortOrder > 0 && !(table->Flags & ImGuiTableFlags_SortMulti)) + table->IsSortSpecsDirty = true; + + // Auto-fit unsized columns + const bool start_auto_fit = (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? (column->WidthRequest < 0.0f) : (column->StretchWeight < 0.0f); + if (start_auto_fit) + column->AutoFitQueue = column->CannotSkipItemsQueue = (1 << 3) - 1; // Fit for three frames + + if (!column->IsEnabled) + { + column->IndexWithinEnabledSet = -1; + continue; + } + + // Mark as enabled and link to previous/next enabled column + column->PrevEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; + column->NextEnabledColumn = -1; + if (prev_visible_column_idx != -1) + table->Columns[prev_visible_column_idx].NextEnabledColumn = (ImGuiTableColumnIdx)column_n; + else + table->LeftMostEnabledColumn = (ImGuiTableColumnIdx)column_n; + column->IndexWithinEnabledSet = table->ColumnsEnabledCount++; + table->EnabledMaskByIndex |= (ImU64)1 << column_n; + table->EnabledMaskByDisplayOrder |= (ImU64)1 << column->DisplayOrder; + prev_visible_column_idx = column_n; + IM_ASSERT(column->IndexWithinEnabledSet <= column->DisplayOrder); + + // Calculate ideal/auto column width (that's the width required for all contents to be visible without clipping) + // Combine width from regular rows + width from headers unless requested not to. + if (!column->IsPreserveWidthAuto) + column->WidthAuto = TableGetColumnWidthAuto(table, column); + + // Non-resizable columns keep their requested width (apply user value regardless of IsPreserveWidthAuto) + const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; + if (column_is_resizable) + has_resizable = true; + if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f && !column_is_resizable) + column->WidthAuto = column->InitStretchWeightOrWidth; + + if (column->AutoFitQueue != 0x00) + has_auto_fit_request = true; + if (column->Flags & ImGuiTableColumnFlags_WidthStretch) + { + stretch_sum_width_auto += column->WidthAuto; + count_stretch++; + } + else + { + fixed_max_width_auto = ImMax(fixed_max_width_auto, column->WidthAuto); + count_fixed++; + } + } + if ((table->Flags & ImGuiTableFlags_Sortable) && table->SortSpecsCount == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) + table->IsSortSpecsDirty = true; + table->RightMostEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; + IM_ASSERT(table->LeftMostEnabledColumn >= 0 && table->RightMostEnabledColumn >= 0); + + // [Part 2] Disable child window clipping while fitting columns. This is not strictly necessary but makes it possible + // to avoid the column fitting having to wait until the first visible frame of the child container (may or not be a good thing). + // FIXME-TABLE: for always auto-resizing columns may not want to do that all the time. + if (has_auto_fit_request && table->OuterWindow != table->InnerWindow) + table->InnerWindow->SkipItems = false; + if (has_auto_fit_request) + table->IsSettingsDirty = true; + + // [Part 3] Fix column flags and record a few extra information. + float sum_width_requests = 0.0f; // Sum of all width for fixed and auto-resize columns, excluding width contributed by Stretch columns but including spacing/padding. + float stretch_sum_weights = 0.0f; // Sum of all weights for stretch columns. + table->LeftMostStretchedColumn = table->RightMostStretchedColumn = -1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!(table->EnabledMaskByIndex & ((ImU64)1 << column_n))) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + { + // Apply same widths policy + float width_auto = column->WidthAuto; + if (table_sizing_policy == ImGuiTableFlags_SizingFixedSame && (column->AutoFitQueue != 0x00 || !column_is_resizable)) + width_auto = fixed_max_width_auto; + + // Apply automatic width + // Latch initial size for fixed columns and update it constantly for auto-resizing column (unless clipped!) + if (column->AutoFitQueue != 0x00) + column->WidthRequest = width_auto; + else if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !column_is_resizable && (table->RequestOutputMaskByIndex & ((ImU64)1 << column_n))) + column->WidthRequest = width_auto; + + // FIXME-TABLE: Increase minimum size during init frame to avoid biasing auto-fitting widgets + // (e.g. TextWrapped) too much. Otherwise what tends to happen is that TextWrapped would output a very + // large height (= first frame scrollbar display very off + clipper would skip lots of items). + // This is merely making the side-effect less extreme, but doesn't properly fixes it. + // FIXME: Move this to ->WidthGiven to avoid temporary lossyless? + // FIXME: This break IsPreserveWidthAuto from not flickering if the stored WidthAuto was smaller. + if (column->AutoFitQueue > 0x01 && table->IsInitializing && !column->IsPreserveWidthAuto) + column->WidthRequest = ImMax(column->WidthRequest, table->MinColumnWidth * 4.0f); // FIXME-TABLE: Another constant/scale? + sum_width_requests += column->WidthRequest; + } + else + { + // Initialize stretch weight + if (column->AutoFitQueue != 0x00 || column->StretchWeight < 0.0f || !column_is_resizable) + { + if (column->InitStretchWeightOrWidth > 0.0f) + column->StretchWeight = column->InitStretchWeightOrWidth; + else if (table_sizing_policy == ImGuiTableFlags_SizingStretchProp) + column->StretchWeight = (column->WidthAuto / stretch_sum_width_auto) * count_stretch; + else + column->StretchWeight = 1.0f; + } + + stretch_sum_weights += column->StretchWeight; + if (table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder > column->DisplayOrder) + table->LeftMostStretchedColumn = (ImGuiTableColumnIdx)column_n; + if (table->RightMostStretchedColumn == -1 || table->Columns[table->RightMostStretchedColumn].DisplayOrder < column->DisplayOrder) + table->RightMostStretchedColumn = (ImGuiTableColumnIdx)column_n; + } + column->IsPreserveWidthAuto = false; + sum_width_requests += table->CellPaddingX * 2.0f; + } + table->ColumnsEnabledFixedCount = (ImGuiTableColumnIdx)count_fixed; + table->ColumnsStretchSumWeights = stretch_sum_weights; + + // [Part 4] Apply final widths based on requested widths + const ImRect work_rect = table->WorkRect; + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + const float width_avail = ((table->Flags & ImGuiTableFlags_ScrollX) && table->InnerWidth == 0.0f) ? table->InnerClipRect.GetWidth() : work_rect.GetWidth(); + const float width_avail_for_stretched_columns = width_avail - width_spacings - sum_width_requests; + float width_remaining_for_stretched_columns = width_avail_for_stretched_columns; + table->ColumnsGivenWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!(table->EnabledMaskByIndex & ((ImU64)1 << column_n))) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Allocate width for stretched/weighted columns (StretchWeight gets converted into WidthRequest) + if (column->Flags & ImGuiTableColumnFlags_WidthStretch) + { + float weight_ratio = column->StretchWeight / stretch_sum_weights; + column->WidthRequest = IM_FLOOR(ImMax(width_avail_for_stretched_columns * weight_ratio, table->MinColumnWidth) + 0.01f); + width_remaining_for_stretched_columns -= column->WidthRequest; + } + + // [Resize Rule 1] The right-most Visible column is not resizable if there is at least one Stretch column + // See additional comments in TableSetColumnWidth(). + if (column->NextEnabledColumn == -1 && table->LeftMostStretchedColumn != -1) + column->Flags |= ImGuiTableColumnFlags_NoDirectResize_; + + // Assign final width, record width in case we will need to shrink + column->WidthGiven = ImFloor(ImMax(column->WidthRequest, table->MinColumnWidth)); + table->ColumnsGivenWidth += column->WidthGiven; + } + + // [Part 5] Redistribute stretch remainder width due to rounding (remainder width is < 1.0f * number of Stretch column). + // Using right-to-left distribution (more likely to match resizing cursor). + if (width_remaining_for_stretched_columns >= 1.0f && !(table->Flags & ImGuiTableFlags_PreciseWidths)) + for (int order_n = table->ColumnsCount - 1; stretch_sum_weights > 0.0f && width_remaining_for_stretched_columns >= 1.0f && order_n >= 0; order_n--) + { + if (!(table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n))) + continue; + ImGuiTableColumn* column = &table->Columns[table->DisplayOrderToIndex[order_n]]; + if (!(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + column->WidthRequest += 1.0f; + column->WidthGiven += 1.0f; + width_remaining_for_stretched_columns -= 1.0f; + } + + // Determine if table is hovered which will be used to flag columns as hovered. + // - In principle we'd like to use the equivalent of IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + // but because our item is partially submitted at this point we use ItemHoverable() and a workaround (temporarily + // clear ActiveId, which is equivalent to the change provided by _AllowWhenBLockedByActiveItem). + // - This allows columns to be marked as hovered when e.g. clicking a button inside the column, or using drag and drop. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + table->HoveredColumnBody = -1; + table->HoveredColumnBorder = -1; + const ImRect mouse_hit_rect(table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.Max.x, ImMax(table->OuterRect.Max.y, table->OuterRect.Min.y + table_instance->LastOuterHeight)); + const ImGuiID backup_active_id = g.ActiveId; + g.ActiveId = 0; + const bool is_hovering_table = ItemHoverable(mouse_hit_rect, 0); + g.ActiveId = backup_active_id; + + // [Part 6] Setup final position, offset, skip/clip states and clipping rectangles, detect hovered column + // Process columns in their visible orders as we are comparing the visible order and adjusting host_clip_rect while looping. + int visible_n = 0; + bool offset_x_frozen = (table->FreezeColumnsCount > 0); + float offset_x = ((table->FreezeColumnsCount > 0) ? table->OuterRect.Min.x : work_rect.Min.x) + table->OuterPaddingX - table->CellSpacingX1; + ImRect host_clip_rect = table->InnerClipRect; + //host_clip_rect.Max.x += table->CellPaddingX + table->CellSpacingX2; + table->VisibleMaskByIndex = 0x00; + table->RequestOutputMaskByIndex = 0x00; + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + + column->NavLayerCurrent = (ImS8)((table->FreezeRowsCount > 0 || column_n < table->FreezeColumnsCount) ? ImGuiNavLayer_Menu : ImGuiNavLayer_Main); + + if (offset_x_frozen && table->FreezeColumnsCount == visible_n) + { + offset_x += work_rect.Min.x - table->OuterRect.Min.x; + offset_x_frozen = false; + } + + // Clear status flags + column->Flags &= ~ImGuiTableColumnFlags_StatusMask_; + + if ((table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n)) == 0) + { + // Hidden column: clear a few fields and we are done with it for the remainder of the function. + // We set a zero-width clip rect but set Min.y/Max.y properly to not interfere with the clipper. + column->MinX = column->MaxX = column->WorkMinX = column->ClipRect.Min.x = column->ClipRect.Max.x = offset_x; + column->WidthGiven = 0.0f; + column->ClipRect.Min.y = work_rect.Min.y; + column->ClipRect.Max.y = FLT_MAX; + column->ClipRect.ClipWithFull(host_clip_rect); + column->IsVisibleX = column->IsVisibleY = column->IsRequestOutput = false; + column->IsSkipItems = true; + column->ItemWidth = 1.0f; + continue; + } + + // Detect hovered column + if (is_hovering_table && g.IO.MousePos.x >= column->ClipRect.Min.x && g.IO.MousePos.x < column->ClipRect.Max.x) + table->HoveredColumnBody = (ImGuiTableColumnIdx)column_n; + + // Lock start position + column->MinX = offset_x; + + // Lock width based on start position and minimum/maximum width for this position + float max_width = TableGetMaxColumnWidth(table, column_n); + column->WidthGiven = ImMin(column->WidthGiven, max_width); + column->WidthGiven = ImMax(column->WidthGiven, ImMin(column->WidthRequest, table->MinColumnWidth)); + column->MaxX = offset_x + column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; + + // Lock other positions + // - ClipRect.Min.x: Because merging draw commands doesn't compare min boundaries, we make ClipRect.Min.x match left bounds to be consistent regardless of merging. + // - ClipRect.Max.x: using WorkMaxX instead of MaxX (aka including padding) makes things more consistent when resizing down, tho slightly detrimental to visibility in very-small column. + // - ClipRect.Max.x: using MaxX makes it easier for header to receive hover highlight with no discontinuity and display sorting arrow. + // - FIXME-TABLE: We want equal width columns to have equal (ClipRect.Max.x - WorkMinX) width, which means ClipRect.max.x cannot stray off host_clip_rect.Max.x else right-most column may appear shorter. + column->WorkMinX = column->MinX + table->CellPaddingX + table->CellSpacingX1; + column->WorkMaxX = column->MaxX - table->CellPaddingX - table->CellSpacingX2; // Expected max + column->ItemWidth = ImFloor(column->WidthGiven * 0.65f); + column->ClipRect.Min.x = column->MinX; + column->ClipRect.Min.y = work_rect.Min.y; + column->ClipRect.Max.x = column->MaxX; //column->WorkMaxX; + column->ClipRect.Max.y = FLT_MAX; + column->ClipRect.ClipWithFull(host_clip_rect); + + // Mark column as Clipped (not in sight) + // Note that scrolling tables (where inner_window != outer_window) handle Y clipped earlier in BeginTable() so IsVisibleY really only applies to non-scrolling tables. + // FIXME-TABLE: Because InnerClipRect.Max.y is conservatively ==outer_window->ClipRect.Max.y, we never can mark columns _Above_ the scroll line as not IsVisibleY. + // Taking advantage of LastOuterHeight would yield good results there... + // FIXME-TABLE: Y clipping is disabled because it effectively means not submitting will reduce contents width which is fed to outer_window->DC.CursorMaxPos.x, + // and this may be used (e.g. typically by outer_window using AlwaysAutoResize or outer_window's horizontal scrollbar, but could be something else). + // Possible solution to preserve last known content width for clipped column. Test 'table_reported_size' fails when enabling Y clipping and window is resized small. + column->IsVisibleX = (column->ClipRect.Max.x > column->ClipRect.Min.x); + column->IsVisibleY = true; // (column->ClipRect.Max.y > column->ClipRect.Min.y); + const bool is_visible = column->IsVisibleX; //&& column->IsVisibleY; + if (is_visible) + table->VisibleMaskByIndex |= ((ImU64)1 << column_n); + + // Mark column as requesting output from user. Note that fixed + non-resizable sets are auto-fitting at all times and therefore always request output. + column->IsRequestOutput = is_visible || column->AutoFitQueue != 0 || column->CannotSkipItemsQueue != 0; + if (column->IsRequestOutput) + table->RequestOutputMaskByIndex |= ((ImU64)1 << column_n); + + // Mark column as SkipItems (ignoring all items/layout) + column->IsSkipItems = !column->IsEnabled || table->HostSkipItems; + if (column->IsSkipItems) + IM_ASSERT(!is_visible); + + // Update status flags + column->Flags |= ImGuiTableColumnFlags_IsEnabled; + if (is_visible) + column->Flags |= ImGuiTableColumnFlags_IsVisible; + if (column->SortOrder != -1) + column->Flags |= ImGuiTableColumnFlags_IsSorted; + if (table->HoveredColumnBody == column_n) + column->Flags |= ImGuiTableColumnFlags_IsHovered; + + // Alignment + // FIXME-TABLE: This align based on the whole column width, not per-cell, and therefore isn't useful in + // many cases (to be able to honor this we might be able to store a log of cells width, per row, for + // visible rows, but nav/programmatic scroll would have visible artifacts.) + //if (column->Flags & ImGuiTableColumnFlags_AlignRight) + // column->WorkMinX = ImMax(column->WorkMinX, column->MaxX - column->ContentWidthRowsUnfrozen); + //else if (column->Flags & ImGuiTableColumnFlags_AlignCenter) + // column->WorkMinX = ImLerp(column->WorkMinX, ImMax(column->StartX, column->MaxX - column->ContentWidthRowsUnfrozen), 0.5f); + + // Reset content width variables + column->ContentMaxXFrozen = column->ContentMaxXUnfrozen = column->WorkMinX; + column->ContentMaxXHeadersUsed = column->ContentMaxXHeadersIdeal = column->WorkMinX; + + // Don't decrement auto-fit counters until container window got a chance to submit its items + if (table->HostSkipItems == false) + { + column->AutoFitQueue >>= 1; + column->CannotSkipItemsQueue >>= 1; + } + + if (visible_n < table->FreezeColumnsCount) + host_clip_rect.Min.x = ImClamp(column->MaxX + TABLE_BORDER_SIZE, host_clip_rect.Min.x, host_clip_rect.Max.x); + + offset_x += column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; + visible_n++; + } + + // [Part 7] Detect/store when we are hovering the unused space after the right-most column (so e.g. context menus can react on it) + // Clear Resizable flag if none of our column are actually resizable (either via an explicit _NoResize flag, either + // because of using _WidthAuto/_WidthStretch). This will hide the resizing option from the context menu. + const float unused_x1 = ImMax(table->WorkRect.Min.x, table->Columns[table->RightMostEnabledColumn].ClipRect.Max.x); + if (is_hovering_table && table->HoveredColumnBody == -1) + { + if (g.IO.MousePos.x >= unused_x1) + table->HoveredColumnBody = (ImGuiTableColumnIdx)table->ColumnsCount; + } + if (has_resizable == false && (table->Flags & ImGuiTableFlags_Resizable)) + table->Flags &= ~ImGuiTableFlags_Resizable; + + // [Part 8] Lock actual OuterRect/WorkRect right-most position. + // This is done late to handle the case of fixed-columns tables not claiming more widths that they need. + // Because of this we are careful with uses of WorkRect and InnerClipRect before this point. + if (table->RightMostStretchedColumn != -1) + table->Flags &= ~ImGuiTableFlags_NoHostExtendX; + if (table->Flags & ImGuiTableFlags_NoHostExtendX) + { + table->OuterRect.Max.x = table->WorkRect.Max.x = unused_x1; + table->InnerClipRect.Max.x = ImMin(table->InnerClipRect.Max.x, unused_x1); + } + table->InnerWindow->ParentWorkRect = table->WorkRect; + table->BorderX1 = table->InnerClipRect.Min.x;// +((table->Flags & ImGuiTableFlags_BordersOuter) ? 0.0f : -1.0f); + table->BorderX2 = table->InnerClipRect.Max.x;// +((table->Flags & ImGuiTableFlags_BordersOuter) ? 0.0f : +1.0f); + + // [Part 9] Allocate draw channels and setup background cliprect + TableSetupDrawChannels(table); + + // [Part 10] Hit testing on borders + if (table->Flags & ImGuiTableFlags_Resizable) + TableUpdateBorders(table); + table_instance->LastFirstRowHeight = 0.0f; + table->IsLayoutLocked = true; + table->IsUsingHeaders = false; + + // [Part 11] Context menu + if (TableBeginContextMenuPopup(table)) + { + TableDrawContextMenu(table); + EndPopup(); + } + + // [Part 13] Sanitize and build sort specs before we have a change to use them for display. + // This path will only be exercised when sort specs are modified before header rows (e.g. init or visibility change) + if (table->IsSortSpecsDirty && (table->Flags & ImGuiTableFlags_Sortable)) + TableSortSpecsBuild(table); + + // Initial state + ImGuiWindow* inner_window = table->InnerWindow; + if (table->Flags & ImGuiTableFlags_NoClip) + table->DrawSplitter->SetCurrentChannel(inner_window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); + else + inner_window->DrawList->PushClipRect(inner_window->ClipRect.Min, inner_window->ClipRect.Max, false); +} + +// Process hit-testing on resizing borders. Actual size change will be applied in EndTable() +// - Set table->HoveredColumnBorder with a short delay/timer to reduce feedback noise +// - Submit ahead of table contents and header, use ImGuiButtonFlags_AllowItemOverlap to prioritize widgets +// overlapping the same area. +void ImGui::TableUpdateBorders(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(table->Flags & ImGuiTableFlags_Resizable); + + // At this point OuterRect height may be zero or under actual final height, so we rely on temporal coherency and + // use the final height from last frame. Because this is only affecting _interaction_ with columns, it is not + // really problematic (whereas the actual visual will be displayed in EndTable() and using the current frame height). + // Actual columns highlight/render will be performed in EndTable() and not be affected. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + const float hit_half_width = TABLE_RESIZE_SEPARATOR_HALF_THICKNESS; + const float hit_y1 = table->OuterRect.Min.y; + const float hit_y2_body = ImMax(table->OuterRect.Max.y, hit_y1 + table_instance->LastOuterHeight); + const float hit_y2_head = hit_y1 + table_instance->LastFirstRowHeight; + + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + if (!(table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n))) + continue; + + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) + continue; + + // ImGuiTableFlags_NoBordersInBodyUntilResize will be honored in TableDrawBorders() + const float border_y2_hit = (table->Flags & ImGuiTableFlags_NoBordersInBody) ? hit_y2_head : hit_y2_body; + if ((table->Flags & ImGuiTableFlags_NoBordersInBody) && table->IsUsingHeaders == false) + continue; + + if (!column->IsVisibleX && table->LastResizedColumn != column_n) + continue; + + ImGuiID column_id = TableGetColumnResizeID(table, column_n, table->InstanceCurrent); + ImRect hit_rect(column->MaxX - hit_half_width, hit_y1, column->MaxX + hit_half_width, border_y2_hit); + ItemAdd(hit_rect, column_id, NULL, ImGuiItemFlags_NoNav); + //GetForegroundDrawList()->AddRect(hit_rect.Min, hit_rect.Max, IM_COL32(255, 0, 0, 100)); + + bool hovered = false, held = false; + bool pressed = ButtonBehavior(hit_rect, column_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_NoNavFocus); + if (pressed && IsMouseDoubleClicked(0)) + { + TableSetColumnWidthAutoSingle(table, column_n); + ClearActiveID(); + held = hovered = false; + } + if (held) + { + if (table->LastResizedColumn == -1) + table->ResizeLockMinContentsX2 = table->RightMostEnabledColumn != -1 ? table->Columns[table->RightMostEnabledColumn].MaxX : -FLT_MAX; + table->ResizedColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + } + if ((hovered && g.HoveredIdTimer > TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER) || held) + { + table->HoveredColumnBorder = (ImGuiTableColumnIdx)column_n; + SetMouseCursor(ImGuiMouseCursor_ResizeEW); + } + } +} + +void ImGui::EndTable() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Only call EndTable() if BeginTable() returns true!"); + + // This assert would be very useful to catch a common error... unfortunately it would probably trigger in some + // cases, and for consistency user may sometimes output empty tables (and still benefit from e.g. outer border) + //IM_ASSERT(table->IsLayoutLocked && "Table unused: never called TableNextRow(), is that the intent?"); + + // If the user never got to call TableNextRow() or TableNextColumn(), we call layout ourselves to ensure all our + // code paths are consistent (instead of just hoping that TableBegin/TableEnd will work), get borders drawn, etc. + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + const ImGuiTableFlags flags = table->Flags; + ImGuiWindow* inner_window = table->InnerWindow; + ImGuiWindow* outer_window = table->OuterWindow; + ImGuiTableTempData* temp_data = table->TempData; + IM_ASSERT(inner_window == g.CurrentWindow); + IM_ASSERT(outer_window == inner_window || outer_window == inner_window->ParentWindow); + + if (table->IsInsideRow) + TableEndRow(table); + + // Context menu in columns body + if (flags & ImGuiTableFlags_ContextMenuInBody) + if (table->HoveredColumnBody != -1 && !IsAnyItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) + TableOpenContextMenu((int)table->HoveredColumnBody); + + // Finalize table height + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + inner_window->DC.PrevLineSize = temp_data->HostBackupPrevLineSize; + inner_window->DC.CurrLineSize = temp_data->HostBackupCurrLineSize; + inner_window->DC.CursorMaxPos = temp_data->HostBackupCursorMaxPos; + const float inner_content_max_y = table->RowPosY2; + IM_ASSERT(table->RowPosY2 == inner_window->DC.CursorPos.y); + if (inner_window != outer_window) + inner_window->DC.CursorMaxPos.y = inner_content_max_y; + else if (!(flags & ImGuiTableFlags_NoHostExtendY)) + table->OuterRect.Max.y = table->InnerRect.Max.y = ImMax(table->OuterRect.Max.y, inner_content_max_y); // Patch OuterRect/InnerRect height + table->WorkRect.Max.y = ImMax(table->WorkRect.Max.y, table->OuterRect.Max.y); + table_instance->LastOuterHeight = table->OuterRect.GetHeight(); + + // Setup inner scrolling range + // FIXME: This ideally should be done earlier, in BeginTable() SetNextWindowContentSize call, just like writing to inner_window->DC.CursorMaxPos.y, + // but since the later is likely to be impossible to do we'd rather update both axises together. + if (table->Flags & ImGuiTableFlags_ScrollX) + { + const float outer_padding_for_border = (table->Flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; + float max_pos_x = table->InnerWindow->DC.CursorMaxPos.x; + if (table->RightMostEnabledColumn != -1) + max_pos_x = ImMax(max_pos_x, table->Columns[table->RightMostEnabledColumn].WorkMaxX + table->CellPaddingX + table->OuterPaddingX - outer_padding_for_border); + if (table->ResizedColumn != -1) + max_pos_x = ImMax(max_pos_x, table->ResizeLockMinContentsX2); + table->InnerWindow->DC.CursorMaxPos.x = max_pos_x; + } + + // Pop clipping rect + if (!(flags & ImGuiTableFlags_NoClip)) + inner_window->DrawList->PopClipRect(); + inner_window->ClipRect = inner_window->DrawList->_ClipRectStack.back(); + + // Draw borders + if ((flags & ImGuiTableFlags_Borders) != 0) + TableDrawBorders(table); + +#if 0 + // Strip out dummy channel draw calls + // We have no way to prevent user submitting direct ImDrawList calls into a hidden column (but ImGui:: calls will be clipped out) + // Pros: remove draw calls which will have no effect. since they'll have zero-size cliprect they may be early out anyway. + // Cons: making it harder for users watching metrics/debugger to spot the wasted vertices. + if (table->DummyDrawChannel != (ImGuiTableColumnIdx)-1) + { + ImDrawChannel* dummy_channel = &table->DrawSplitter._Channels[table->DummyDrawChannel]; + dummy_channel->_CmdBuffer.resize(0); + dummy_channel->_IdxBuffer.resize(0); + } +#endif + + // Flatten channels and merge draw calls + ImDrawListSplitter* splitter = table->DrawSplitter; + splitter->SetCurrentChannel(inner_window->DrawList, 0); + if ((table->Flags & ImGuiTableFlags_NoClip) == 0) + TableMergeDrawChannels(table); + splitter->Merge(inner_window->DrawList); + + // Update ColumnsAutoFitWidth to get us ahead for host using our size to auto-resize without waiting for next BeginTable() + float auto_fit_width_for_fixed = 0.0f; + float auto_fit_width_for_stretched = 0.0f; + float auto_fit_width_for_stretched_min = 0.0f; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (table->EnabledMaskByIndex & ((ImU64)1 << column_n)) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + float column_width_request = ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !(column->Flags & ImGuiTableColumnFlags_NoResize)) ? column->WidthRequest : TableGetColumnWidthAuto(table, column); + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + auto_fit_width_for_fixed += column_width_request; + else + auto_fit_width_for_stretched += column_width_request; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) && (column->Flags & ImGuiTableColumnFlags_NoResize) != 0) + auto_fit_width_for_stretched_min = ImMax(auto_fit_width_for_stretched_min, column_width_request / (column->StretchWeight / table->ColumnsStretchSumWeights)); + } + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + table->ColumnsAutoFitWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount + auto_fit_width_for_fixed + ImMax(auto_fit_width_for_stretched, auto_fit_width_for_stretched_min); + + // Update scroll + if ((table->Flags & ImGuiTableFlags_ScrollX) == 0 && inner_window != outer_window) + { + inner_window->Scroll.x = 0.0f; + } + else if (table->LastResizedColumn != -1 && table->ResizedColumn == -1 && inner_window->ScrollbarX && table->InstanceInteracted == table->InstanceCurrent) + { + // When releasing a column being resized, scroll to keep the resulting column in sight + const float neighbor_width_to_keep_visible = table->MinColumnWidth + table->CellPaddingX * 2.0f; + ImGuiTableColumn* column = &table->Columns[table->LastResizedColumn]; + if (column->MaxX < table->InnerClipRect.Min.x) + SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x - neighbor_width_to_keep_visible, 1.0f); + else if (column->MaxX > table->InnerClipRect.Max.x) + SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x + neighbor_width_to_keep_visible, 1.0f); + } + + // Apply resizing/dragging at the end of the frame + if (table->ResizedColumn != -1 && table->InstanceCurrent == table->InstanceInteracted) + { + ImGuiTableColumn* column = &table->Columns[table->ResizedColumn]; + const float new_x2 = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + TABLE_RESIZE_SEPARATOR_HALF_THICKNESS); + const float new_width = ImFloor(new_x2 - column->MinX - table->CellSpacingX1 - table->CellPaddingX * 2.0f); + table->ResizedColumnNextWidth = new_width; + } + + // Pop from id stack + IM_ASSERT_USER_ERROR(inner_window->IDStack.back() == table->ID + table->InstanceCurrent, "Mismatching PushID/PopID!"); + IM_ASSERT_USER_ERROR(outer_window->DC.ItemWidthStack.Size >= temp_data->HostBackupItemWidthStackSize, "Too many PopItemWidth!"); + PopID(); + + // Restore window data that we modified + const ImVec2 backup_outer_max_pos = outer_window->DC.CursorMaxPos; + inner_window->WorkRect = temp_data->HostBackupWorkRect; + inner_window->ParentWorkRect = temp_data->HostBackupParentWorkRect; + inner_window->SkipItems = table->HostSkipItems; + outer_window->DC.CursorPos = table->OuterRect.Min; + outer_window->DC.ItemWidth = temp_data->HostBackupItemWidth; + outer_window->DC.ItemWidthStack.Size = temp_data->HostBackupItemWidthStackSize; + outer_window->DC.ColumnsOffset = temp_data->HostBackupColumnsOffset; + + // Layout in outer window + // (FIXME: To allow auto-fit and allow desirable effect of SameLine() we dissociate 'used' vs 'ideal' size by overriding + // CursorPosPrevLine and CursorMaxPos manually. That should be a more general layout feature, see same problem e.g. #3414) + if (inner_window != outer_window) + { + EndChild(); + } + else + { + ItemSize(table->OuterRect.GetSize()); + ItemAdd(table->OuterRect, 0); + } + + // Override declared contents width/height to enable auto-resize while not needlessly adding a scrollbar + if (table->Flags & ImGuiTableFlags_NoHostExtendX) + { + // FIXME-TABLE: Could we remove this section? + // ColumnsAutoFitWidth may be one frame ahead here since for Fixed+NoResize is calculated from latest contents + IM_ASSERT((table->Flags & ImGuiTableFlags_ScrollX) == 0); + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth); + } + else if (temp_data->UserOuterSize.x <= 0.0f) + { + const float decoration_size = (table->Flags & ImGuiTableFlags_ScrollX) ? inner_window->ScrollbarSizes.x : 0.0f; + outer_window->DC.IdealMaxPos.x = ImMax(outer_window->DC.IdealMaxPos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth + decoration_size - temp_data->UserOuterSize.x); + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, ImMin(table->OuterRect.Max.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth)); + } + else + { + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Max.x); + } + if (temp_data->UserOuterSize.y <= 0.0f) + { + const float decoration_size = (table->Flags & ImGuiTableFlags_ScrollY) ? inner_window->ScrollbarSizes.y : 0.0f; + outer_window->DC.IdealMaxPos.y = ImMax(outer_window->DC.IdealMaxPos.y, inner_content_max_y + decoration_size - temp_data->UserOuterSize.y); + outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, ImMin(table->OuterRect.Max.y, inner_content_max_y)); + } + else + { + // OuterRect.Max.y may already have been pushed downward from the initial value (unless ImGuiTableFlags_NoHostExtendY is set) + outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, table->OuterRect.Max.y); + } + + // Save settings + if (table->IsSettingsDirty) + TableSaveSettings(table); + table->IsInitializing = false; + + // Clear or restore current table, if any + IM_ASSERT(g.CurrentWindow == outer_window && g.CurrentTable == table); + IM_ASSERT(g.TablesTempDataStacked > 0); + temp_data = (--g.TablesTempDataStacked > 0) ? &g.TablesTempData[g.TablesTempDataStacked - 1] : NULL; + g.CurrentTable = temp_data ? g.Tables.GetByIndex(temp_data->TableIndex) : NULL; + if (g.CurrentTable) + { + g.CurrentTable->TempData = temp_data; + g.CurrentTable->DrawSplitter = &temp_data->DrawSplitter; + } + outer_window->DC.CurrentTableIdx = g.CurrentTable ? g.Tables.GetIndex(g.CurrentTable) : -1; +} + +// See "COLUMN SIZING POLICIES" comments at the top of this file +// If (init_width_or_weight <= 0.0f) it is ignored +void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, float init_width_or_weight, ImGuiID user_id) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); + IM_ASSERT(table->IsLayoutLocked == false && "Need to call call TableSetupColumn() before first row!"); + IM_ASSERT((flags & ImGuiTableColumnFlags_StatusMask_) == 0 && "Illegal to pass StatusMask values to TableSetupColumn()"); + if (table->DeclColumnsCount >= table->ColumnsCount) + { + IM_ASSERT_USER_ERROR(table->DeclColumnsCount < table->ColumnsCount, "Called TableSetupColumn() too many times!"); + return; + } + + ImGuiTableColumn* column = &table->Columns[table->DeclColumnsCount]; + table->DeclColumnsCount++; + + // Assert when passing a width or weight if policy is entirely left to default, to avoid storing width into weight and vice-versa. + // Give a grace to users of ImGuiTableFlags_ScrollX. + if (table->IsDefaultSizingPolicy && (flags & ImGuiTableColumnFlags_WidthMask_) == 0 && (flags & ImGuiTableFlags_ScrollX) == 0) + IM_ASSERT(init_width_or_weight <= 0.0f && "Can only specify width/weight if sizing policy is set explicitly in either Table or Column."); + + // When passing a width automatically enforce WidthFixed policy + // (whereas TableSetupColumnFlags would default to WidthAuto if table is not Resizable) + if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0 && init_width_or_weight > 0.0f) + if ((table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedFit || (table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableColumnFlags_WidthFixed; + + TableSetupColumnFlags(table, column, flags); + column->UserID = user_id; + flags = column->Flags; + + // Initialize defaults + column->InitStretchWeightOrWidth = init_width_or_weight; + if (table->IsInitializing) + { + // Init width or weight + if (column->WidthRequest < 0.0f && column->StretchWeight < 0.0f) + { + if ((flags & ImGuiTableColumnFlags_WidthFixed) && init_width_or_weight > 0.0f) + column->WidthRequest = init_width_or_weight; + if (flags & ImGuiTableColumnFlags_WidthStretch) + column->StretchWeight = (init_width_or_weight > 0.0f) ? init_width_or_weight : -1.0f; + + // Disable auto-fit if an explicit width/weight has been specified + if (init_width_or_weight > 0.0f) + column->AutoFitQueue = 0x00; + } + + // Init default visibility/sort state + if ((flags & ImGuiTableColumnFlags_DefaultHide) && (table->SettingsLoadedFlags & ImGuiTableFlags_Hideable) == 0) + column->IsUserEnabled = column->IsUserEnabledNextFrame = false; + if (flags & ImGuiTableColumnFlags_DefaultSort && (table->SettingsLoadedFlags & ImGuiTableFlags_Sortable) == 0) + { + column->SortOrder = 0; // Multiple columns using _DefaultSort will be reassigned unique SortOrder values when building the sort specs. + column->SortDirection = (column->Flags & ImGuiTableColumnFlags_PreferSortDescending) ? (ImS8)ImGuiSortDirection_Descending : (ImU8)(ImGuiSortDirection_Ascending); + } + } + + // Store name (append with zero-terminator in contiguous buffer) + column->NameOffset = -1; + if (label != NULL && label[0] != 0) + { + column->NameOffset = (ImS16)table->ColumnsNames.size(); + table->ColumnsNames.append(label, label + strlen(label) + 1); + } +} + +// [Public] +void ImGui::TableSetupScrollFreeze(int columns, int rows) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); + IM_ASSERT(table->IsLayoutLocked == false && "Need to call TableSetupColumn() before first row!"); + IM_ASSERT(columns >= 0 && columns < IMGUI_TABLE_MAX_COLUMNS); + IM_ASSERT(rows >= 0 && rows < 128); // Arbitrary limit + + table->FreezeColumnsRequest = (table->Flags & ImGuiTableFlags_ScrollX) ? (ImGuiTableColumnIdx)ImMin(columns, table->ColumnsCount) : 0; + table->FreezeColumnsCount = (table->InnerWindow->Scroll.x != 0.0f) ? table->FreezeColumnsRequest : 0; + table->FreezeRowsRequest = (table->Flags & ImGuiTableFlags_ScrollY) ? (ImGuiTableColumnIdx)rows : 0; + table->FreezeRowsCount = (table->InnerWindow->Scroll.y != 0.0f) ? table->FreezeRowsRequest : 0; + table->IsUnfrozenRows = (table->FreezeRowsCount == 0); // Make sure this is set before TableUpdateLayout() so ImGuiListClipper can benefit from it.b + + // Ensure frozen columns are ordered in their section. We still allow multiple frozen columns to be reordered. + // FIXME-TABLE: This work for preserving 2143 into 21|43. How about 4321 turning into 21|43? (preserve relative order in each section) + for (int column_n = 0; column_n < table->FreezeColumnsRequest; column_n++) + { + int order_n = table->DisplayOrderToIndex[column_n]; + if (order_n != column_n && order_n >= table->FreezeColumnsRequest) + { + ImSwap(table->Columns[table->DisplayOrderToIndex[order_n]].DisplayOrder, table->Columns[table->DisplayOrderToIndex[column_n]].DisplayOrder); + ImSwap(table->DisplayOrderToIndex[order_n], table->DisplayOrderToIndex[column_n]); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Tables: Simple accessors +//----------------------------------------------------------------------------- +// - TableGetColumnCount() +// - TableGetColumnName() +// - TableGetColumnName() [Internal] +// - TableSetColumnEnabled() +// - TableGetColumnFlags() +// - TableGetCellBgRect() [Internal] +// - TableGetColumnResizeID() [Internal] +// - TableGetHoveredColumn() [Internal] +// - TableSetBgColor() +//----------------------------------------------------------------------------- + +int ImGui::TableGetColumnCount() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + return table ? table->ColumnsCount : 0; +} + +const char* ImGui::TableGetColumnName(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return NULL; + if (column_n < 0) + column_n = table->CurrentColumn; + return TableGetColumnName(table, column_n); +} + +const char* ImGui::TableGetColumnName(const ImGuiTable* table, int column_n) +{ + if (table->IsLayoutLocked == false && column_n >= table->DeclColumnsCount) + return ""; // NameOffset is invalid at this point + const ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->NameOffset == -1) + return ""; + return &table->ColumnsNames.Buf[column->NameOffset]; +} + +// Change user accessible enabled/disabled state of a column (often perceived as "showing/hiding" from users point of view) +// Note that end-user can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) +// - Require table to have the ImGuiTableFlags_Hideable flag because we are manipulating user accessible state. +// - Request will be applied during next layout, which happens on the first call to TableNextRow() after BeginTable(). +// - For the getter you can test (TableGetColumnFlags() & ImGuiTableColumnFlags_IsEnabled) != 0. +// - Alternative: the ImGuiTableColumnFlags_Disabled is an overriding/master disable flag which will also hide the column from context menu. +void ImGui::TableSetColumnEnabled(int column_n, bool enabled) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL); + if (!table) + return; + IM_ASSERT(table->Flags & ImGuiTableFlags_Hideable); // See comments above + if (column_n < 0) + column_n = table->CurrentColumn; + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiTableColumn* column = &table->Columns[column_n]; + column->IsUserEnabledNextFrame = enabled; +} + +// We allow querying for an extra column in order to poll the IsHovered state of the right-most section +ImGuiTableColumnFlags ImGui::TableGetColumnFlags(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return ImGuiTableColumnFlags_None; + if (column_n < 0) + column_n = table->CurrentColumn; + if (column_n == table->ColumnsCount) + return (table->HoveredColumnBody == column_n) ? ImGuiTableColumnFlags_IsHovered : ImGuiTableColumnFlags_None; + return table->Columns[column_n].Flags; +} + +// Return the cell rectangle based on currently known height. +// - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations. +// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it, or in TableEndRow() when we locked that height. +// - Important: if ImGuiTableFlags_PadOuterX is set but ImGuiTableFlags_PadInnerX is not set, the outer-most left and right +// columns report a small offset so their CellBgRect can extend up to the outer border. +// FIXME: But the rendering code in TableEndRow() nullifies that with clamping required for scrolling. +ImRect ImGui::TableGetCellBgRect(const ImGuiTable* table, int column_n) +{ + const ImGuiTableColumn* column = &table->Columns[column_n]; + float x1 = column->MinX; + float x2 = column->MaxX; + //if (column->PrevEnabledColumn == -1) + // x1 -= table->OuterPaddingX; + //if (column->NextEnabledColumn == -1) + // x2 += table->OuterPaddingX; + x1 = ImMax(x1, table->WorkRect.Min.x); + x2 = ImMin(x2, table->WorkRect.Max.x); + return ImRect(x1, table->RowPosY1, x2, table->RowPosY2); +} + +// Return the resizing ID for the right-side of the given column. +ImGuiID ImGui::TableGetColumnResizeID(const ImGuiTable* table, int column_n, int instance_no) +{ + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiID id = table->ID + 1 + (instance_no * table->ColumnsCount) + column_n; + return id; +} + +// Return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. +int ImGui::TableGetHoveredColumn() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return -1; + return (int)table->HoveredColumnBody; +} + +void ImGui::TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(target != ImGuiTableBgTarget_None); + + if (color == IM_COL32_DISABLE) + color = 0; + + // We cannot draw neither the cell or row background immediately as we don't know the row height at this point in time. + switch (target) + { + case ImGuiTableBgTarget_CellBg: + { + if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard + return; + if (column_n == -1) + column_n = table->CurrentColumn; + if ((table->VisibleMaskByIndex & ((ImU64)1 << column_n)) == 0) + return; + if (table->RowCellDataCurrent < 0 || table->RowCellData[table->RowCellDataCurrent].Column != column_n) + table->RowCellDataCurrent++; + ImGuiTableCellData* cell_data = &table->RowCellData[table->RowCellDataCurrent]; + cell_data->BgColor = color; + cell_data->Column = (ImGuiTableColumnIdx)column_n; + break; + } + case ImGuiTableBgTarget_RowBg0: + case ImGuiTableBgTarget_RowBg1: + { + if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard + return; + IM_ASSERT(column_n == -1); + int bg_idx = (target == ImGuiTableBgTarget_RowBg1) ? 1 : 0; + table->RowBgColor[bg_idx] = color; + break; + } + default: + IM_ASSERT(0); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Row changes +//------------------------------------------------------------------------- +// - TableGetRowIndex() +// - TableNextRow() +// - TableBeginRow() [Internal] +// - TableEndRow() [Internal] +//------------------------------------------------------------------------- + +// [Public] Note: for row coloring we use ->RowBgColorCounter which is the same value without counting header rows +int ImGui::TableGetRowIndex() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return 0; + return table->CurrentRow; +} + +// [Public] Starts into the first cell of a new row +void ImGui::TableNextRow(ImGuiTableRowFlags row_flags, float row_min_height) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + if (table->IsInsideRow) + TableEndRow(table); + + table->LastRowFlags = table->RowFlags; + table->RowFlags = row_flags; + table->RowMinHeight = row_min_height; + TableBeginRow(table); + + // We honor min_row_height requested by user, but cannot guarantee per-row maximum height, + // because that would essentially require a unique clipping rectangle per-cell. + table->RowPosY2 += table->CellPaddingY * 2.0f; + table->RowPosY2 = ImMax(table->RowPosY2, table->RowPosY1 + row_min_height); + + // Disable output until user calls TableNextColumn() + table->InnerWindow->SkipItems = true; +} + +// [Internal] Called by TableNextRow() +void ImGui::TableBeginRow(ImGuiTable* table) +{ + ImGuiWindow* window = table->InnerWindow; + IM_ASSERT(!table->IsInsideRow); + + // New row + table->CurrentRow++; + table->CurrentColumn = -1; + table->RowBgColor[0] = table->RowBgColor[1] = IM_COL32_DISABLE; + table->RowCellDataCurrent = -1; + table->IsInsideRow = true; + + // Begin frozen rows + float next_y1 = table->RowPosY2; + if (table->CurrentRow == 0 && table->FreezeRowsCount > 0) + next_y1 = window->DC.CursorPos.y = table->OuterRect.Min.y; + + table->RowPosY1 = table->RowPosY2 = next_y1; + table->RowTextBaseline = 0.0f; + table->RowIndentOffsetX = window->DC.Indent.x - table->HostIndentX; // Lock indent + window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + window->DC.IsSameLine = window->DC.IsSetPos = false; + window->DC.CursorMaxPos.y = next_y1; + + // Making the header BG color non-transparent will allow us to overlay it multiple times when handling smooth dragging. + if (table->RowFlags & ImGuiTableRowFlags_Headers) + { + TableSetBgColor(ImGuiTableBgTarget_RowBg0, GetColorU32(ImGuiCol_TableHeaderBg)); + if (table->CurrentRow == 0) + table->IsUsingHeaders = true; + } +} + +// [Internal] Called by TableNextRow() +void ImGui::TableEndRow(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window == table->InnerWindow); + IM_ASSERT(table->IsInsideRow); + + if (table->CurrentColumn != -1) + TableEndCell(table); + + // Logging + if (g.LogEnabled) + LogRenderedText(NULL, "|"); + + // Position cursor at the bottom of our row so it can be used for e.g. clipping calculation. However it is + // likely that the next call to TableBeginCell() will reposition the cursor to take account of vertical padding. + window->DC.CursorPos.y = table->RowPosY2; + + // Row background fill + const float bg_y1 = table->RowPosY1; + const float bg_y2 = table->RowPosY2; + const bool unfreeze_rows_actual = (table->CurrentRow + 1 == table->FreezeRowsCount); + const bool unfreeze_rows_request = (table->CurrentRow + 1 == table->FreezeRowsRequest); + if (table->CurrentRow == 0) + TableGetInstanceData(table, table->InstanceCurrent)->LastFirstRowHeight = bg_y2 - bg_y1; + + const bool is_visible = (bg_y2 >= table->InnerClipRect.Min.y && bg_y1 <= table->InnerClipRect.Max.y); + if (is_visible) + { + // Decide of background color for the row + ImU32 bg_col0 = 0; + ImU32 bg_col1 = 0; + if (table->RowBgColor[0] != IM_COL32_DISABLE) + bg_col0 = table->RowBgColor[0]; + else if (table->Flags & ImGuiTableFlags_RowBg) + bg_col0 = GetColorU32((table->RowBgColorCounter & 1) ? ImGuiCol_TableRowBgAlt : ImGuiCol_TableRowBg); + if (table->RowBgColor[1] != IM_COL32_DISABLE) + bg_col1 = table->RowBgColor[1]; + + // Decide of top border color + ImU32 border_col = 0; + const float border_size = TABLE_BORDER_SIZE; + if (table->CurrentRow > 0 || table->InnerWindow == table->OuterWindow) + if (table->Flags & ImGuiTableFlags_BordersInnerH) + border_col = (table->LastRowFlags & ImGuiTableRowFlags_Headers) ? table->BorderColorStrong : table->BorderColorLight; + + const bool draw_cell_bg_color = table->RowCellDataCurrent >= 0; + const bool draw_strong_bottom_border = unfreeze_rows_actual; + if ((bg_col0 | bg_col1 | border_col) != 0 || draw_strong_bottom_border || draw_cell_bg_color) + { + // In theory we could call SetWindowClipRectBeforeSetChannel() but since we know TableEndRow() is + // always followed by a change of clipping rectangle we perform the smallest overwrite possible here. + if ((table->Flags & ImGuiTableFlags_NoClip) == 0) + window->DrawList->_CmdHeader.ClipRect = table->Bg0ClipRectForDrawCmd.ToVec4(); + table->DrawSplitter->SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_BG0); + } + + // Draw row background + // We soft/cpu clip this so all backgrounds and borders can share the same clipping rectangle + if (bg_col0 || bg_col1) + { + ImRect row_rect(table->WorkRect.Min.x, bg_y1, table->WorkRect.Max.x, bg_y2); + row_rect.ClipWith(table->BgClipRect); + if (bg_col0 != 0 && row_rect.Min.y < row_rect.Max.y) + window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col0); + if (bg_col1 != 0 && row_rect.Min.y < row_rect.Max.y) + window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col1); + } + + // Draw cell background color + if (draw_cell_bg_color) + { + ImGuiTableCellData* cell_data_end = &table->RowCellData[table->RowCellDataCurrent]; + for (ImGuiTableCellData* cell_data = &table->RowCellData[0]; cell_data <= cell_data_end; cell_data++) + { + // As we render the BG here we need to clip things (for layout we would not) + // FIXME: This cancels the OuterPadding addition done by TableGetCellBgRect(), need to keep it while rendering correctly while scrolling. + const ImGuiTableColumn* column = &table->Columns[cell_data->Column]; + ImRect cell_bg_rect = TableGetCellBgRect(table, cell_data->Column); + cell_bg_rect.ClipWith(table->BgClipRect); + cell_bg_rect.Min.x = ImMax(cell_bg_rect.Min.x, column->ClipRect.Min.x); // So that first column after frozen one gets clipped when scrolling + cell_bg_rect.Max.x = ImMin(cell_bg_rect.Max.x, column->MaxX); + window->DrawList->AddRectFilled(cell_bg_rect.Min, cell_bg_rect.Max, cell_data->BgColor); + } + } + + // Draw top border + if (border_col && bg_y1 >= table->BgClipRect.Min.y && bg_y1 < table->BgClipRect.Max.y) + window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y1), ImVec2(table->BorderX2, bg_y1), border_col, border_size); + + // Draw bottom border at the row unfreezing mark (always strong) + if (draw_strong_bottom_border && bg_y2 >= table->BgClipRect.Min.y && bg_y2 < table->BgClipRect.Max.y) + window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y2), ImVec2(table->BorderX2, bg_y2), table->BorderColorStrong, border_size); + } + + // End frozen rows (when we are past the last frozen row line, teleport cursor and alter clipping rectangle) + // We need to do that in TableEndRow() instead of TableBeginRow() so the list clipper can mark end of row and + // get the new cursor position. + if (unfreeze_rows_request) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + column->NavLayerCurrent = (ImS8)((column_n < table->FreezeColumnsCount) ? ImGuiNavLayer_Menu : ImGuiNavLayer_Main); + } + if (unfreeze_rows_actual) + { + IM_ASSERT(table->IsUnfrozenRows == false); + table->IsUnfrozenRows = true; + + // BgClipRect starts as table->InnerClipRect, reduce it now and make BgClipRectForDrawCmd == BgClipRect + float y0 = ImMax(table->RowPosY2 + 1, window->InnerClipRect.Min.y); + table->BgClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y = ImMin(y0, window->InnerClipRect.Max.y); + table->BgClipRect.Max.y = table->Bg2ClipRectForDrawCmd.Max.y = window->InnerClipRect.Max.y; + table->Bg2DrawChannelCurrent = table->Bg2DrawChannelUnfrozen; + IM_ASSERT(table->Bg2ClipRectForDrawCmd.Min.y <= table->Bg2ClipRectForDrawCmd.Max.y); + + float row_height = table->RowPosY2 - table->RowPosY1; + table->RowPosY2 = window->DC.CursorPos.y = table->WorkRect.Min.y + table->RowPosY2 - table->OuterRect.Min.y; + table->RowPosY1 = table->RowPosY2 - row_height; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + column->DrawChannelCurrent = column->DrawChannelUnfrozen; + column->ClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y; + } + + // Update cliprect ahead of TableBeginCell() so clipper can access to new ClipRect->Min.y + SetWindowClipRectBeforeSetChannel(window, table->Columns[0].ClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, table->Columns[0].DrawChannelCurrent); + } + + if (!(table->RowFlags & ImGuiTableRowFlags_Headers)) + table->RowBgColorCounter++; + table->IsInsideRow = false; +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Columns changes +//------------------------------------------------------------------------- +// - TableGetColumnIndex() +// - TableSetColumnIndex() +// - TableNextColumn() +// - TableBeginCell() [Internal] +// - TableEndCell() [Internal] +//------------------------------------------------------------------------- + +int ImGui::TableGetColumnIndex() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return 0; + return table->CurrentColumn; +} + +// [Public] Append into a specific column +bool ImGui::TableSetColumnIndex(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return false; + + if (table->CurrentColumn != column_n) + { + if (table->CurrentColumn != -1) + TableEndCell(table); + IM_ASSERT(column_n >= 0 && table->ColumnsCount); + TableBeginCell(table, column_n); + } + + // Return whether the column is visible. User may choose to skip submitting items based on this return value, + // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. + return (table->RequestOutputMaskByIndex & ((ImU64)1 << column_n)) != 0; +} + +// [Public] Append into the next column, wrap and create a new row when already on last column +bool ImGui::TableNextColumn() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return false; + + if (table->IsInsideRow && table->CurrentColumn + 1 < table->ColumnsCount) + { + if (table->CurrentColumn != -1) + TableEndCell(table); + TableBeginCell(table, table->CurrentColumn + 1); + } + else + { + TableNextRow(); + TableBeginCell(table, 0); + } + + // Return whether the column is visible. User may choose to skip submitting items based on this return value, + // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. + int column_n = table->CurrentColumn; + return (table->RequestOutputMaskByIndex & ((ImU64)1 << column_n)) != 0; +} + + +// [Internal] Called by TableSetColumnIndex()/TableNextColumn() +// This is called very frequently, so we need to be mindful of unnecessary overhead. +// FIXME-TABLE FIXME-OPT: Could probably shortcut some things for non-active or clipped columns. +void ImGui::TableBeginCell(ImGuiTable* table, int column_n) +{ + ImGuiTableColumn* column = &table->Columns[column_n]; + ImGuiWindow* window = table->InnerWindow; + table->CurrentColumn = column_n; + + // Start position is roughly ~~ CellRect.Min + CellPadding + Indent + float start_x = column->WorkMinX; + if (column->Flags & ImGuiTableColumnFlags_IndentEnable) + start_x += table->RowIndentOffsetX; // ~~ += window.DC.Indent.x - table->HostIndentX, except we locked it for the row. + + window->DC.CursorPos.x = start_x; + window->DC.CursorPos.y = table->RowPosY1 + table->CellPaddingY; + window->DC.CursorMaxPos.x = window->DC.CursorPos.x; + window->DC.ColumnsOffset.x = start_x - window->Pos.x - window->DC.Indent.x; // FIXME-WORKRECT + window->DC.CurrLineTextBaseOffset = table->RowTextBaseline; + window->DC.NavLayerCurrent = (ImGuiNavLayer)column->NavLayerCurrent; + + window->WorkRect.Min.y = window->DC.CursorPos.y; + window->WorkRect.Min.x = column->WorkMinX; + window->WorkRect.Max.x = column->WorkMaxX; + window->DC.ItemWidth = column->ItemWidth; + + // To allow ImGuiListClipper to function we propagate our row height + if (!column->IsEnabled) + window->DC.CursorPos.y = ImMax(window->DC.CursorPos.y, table->RowPosY2); + + window->SkipItems = column->IsSkipItems; + if (column->IsSkipItems) + { + ImGuiContext& g = *GImGui; + g.LastItemData.ID = 0; + g.LastItemData.StatusFlags = 0; + } + + if (table->Flags & ImGuiTableFlags_NoClip) + { + // FIXME: if we end up drawing all borders/bg in EndTable, could remove this and just assert that channel hasn't changed. + table->DrawSplitter->SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); + //IM_ASSERT(table->DrawSplitter._Current == TABLE_DRAW_CHANNEL_NOCLIP); + } + else + { + // FIXME-TABLE: Could avoid this if draw channel is dummy channel? + SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); + } + + // Logging + ImGuiContext& g = *GImGui; + if (g.LogEnabled && !column->IsSkipItems) + { + LogRenderedText(&window->DC.CursorPos, "|"); + g.LogLinePosY = FLT_MAX; + } +} + +// [Internal] Called by TableNextRow()/TableSetColumnIndex()/TableNextColumn() +void ImGui::TableEndCell(ImGuiTable* table) +{ + ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; + ImGuiWindow* window = table->InnerWindow; + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + // Report maximum position so we can infer content size per column. + float* p_max_pos_x; + if (table->RowFlags & ImGuiTableRowFlags_Headers) + p_max_pos_x = &column->ContentMaxXHeadersUsed; // Useful in case user submit contents in header row that is not a TableHeader() call + else + p_max_pos_x = table->IsUnfrozenRows ? &column->ContentMaxXUnfrozen : &column->ContentMaxXFrozen; + *p_max_pos_x = ImMax(*p_max_pos_x, window->DC.CursorMaxPos.x); + table->RowPosY2 = ImMax(table->RowPosY2, window->DC.CursorMaxPos.y + table->CellPaddingY); + column->ItemWidth = window->DC.ItemWidth; + + // Propagate text baseline for the entire row + // FIXME-TABLE: Here we propagate text baseline from the last line of the cell.. instead of the first one. + table->RowTextBaseline = ImMax(table->RowTextBaseline, window->DC.PrevLineTextBaseOffset); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Columns width management +//------------------------------------------------------------------------- +// - TableGetMaxColumnWidth() [Internal] +// - TableGetColumnWidthAuto() [Internal] +// - TableSetColumnWidth() +// - TableSetColumnWidthAutoSingle() [Internal] +// - TableSetColumnWidthAutoAll() [Internal] +// - TableUpdateColumnsWeightFromWidth() [Internal] +//------------------------------------------------------------------------- + +// Maximum column content width given current layout. Use column->MinX so this value on a per-column basis. +float ImGui::TableGetMaxColumnWidth(const ImGuiTable* table, int column_n) +{ + const ImGuiTableColumn* column = &table->Columns[column_n]; + float max_width = FLT_MAX; + const float min_column_distance = table->MinColumnWidth + table->CellPaddingX * 2.0f + table->CellSpacingX1 + table->CellSpacingX2; + if (table->Flags & ImGuiTableFlags_ScrollX) + { + // Frozen columns can't reach beyond visible width else scrolling will naturally break. + // (we use DisplayOrder as within a set of multiple frozen column reordering is possible) + if (column->DisplayOrder < table->FreezeColumnsRequest) + { + max_width = (table->InnerClipRect.Max.x - (table->FreezeColumnsRequest - column->DisplayOrder) * min_column_distance) - column->MinX; + max_width = max_width - table->OuterPaddingX - table->CellPaddingX - table->CellSpacingX2; + } + } + else if ((table->Flags & ImGuiTableFlags_NoKeepColumnsVisible) == 0) + { + // If horizontal scrolling if disabled, we apply a final lossless shrinking of columns in order to make + // sure they are all visible. Because of this we also know that all of the columns will always fit in + // table->WorkRect and therefore in table->InnerRect (because ScrollX is off) + // FIXME-TABLE: This is solved incorrectly but also quite a difficult problem to fix as we also want ClipRect width to match. + // See "table_width_distrib" and "table_width_keep_visible" tests + max_width = table->WorkRect.Max.x - (table->ColumnsEnabledCount - column->IndexWithinEnabledSet - 1) * min_column_distance - column->MinX; + //max_width -= table->CellSpacingX1; + max_width -= table->CellSpacingX2; + max_width -= table->CellPaddingX * 2.0f; + max_width -= table->OuterPaddingX; + } + return max_width; +} + +// Note this is meant to be stored in column->WidthAuto, please generally use the WidthAuto field +float ImGui::TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column) +{ + const float content_width_body = ImMax(column->ContentMaxXFrozen, column->ContentMaxXUnfrozen) - column->WorkMinX; + const float content_width_headers = column->ContentMaxXHeadersIdeal - column->WorkMinX; + float width_auto = content_width_body; + if (!(column->Flags & ImGuiTableColumnFlags_NoHeaderWidth)) + width_auto = ImMax(width_auto, content_width_headers); + + // Non-resizable fixed columns preserve their requested width + if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f) + if (!(table->Flags & ImGuiTableFlags_Resizable) || (column->Flags & ImGuiTableColumnFlags_NoResize)) + width_auto = column->InitStretchWeightOrWidth; + + return ImMax(width_auto, table->MinColumnWidth); +} + +// 'width' = inner column width, without padding +void ImGui::TableSetColumnWidth(int column_n, float width) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && table->IsLayoutLocked == false); + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiTableColumn* column_0 = &table->Columns[column_n]; + float column_0_width = width; + + // Apply constraints early + // Compare both requested and actual given width to avoid overwriting requested width when column is stuck (minimum size, bounded) + IM_ASSERT(table->MinColumnWidth > 0.0f); + const float min_width = table->MinColumnWidth; + const float max_width = ImMax(min_width, TableGetMaxColumnWidth(table, column_n)); + column_0_width = ImClamp(column_0_width, min_width, max_width); + if (column_0->WidthGiven == column_0_width || column_0->WidthRequest == column_0_width) + return; + + //IMGUI_DEBUG_PRINT("TableSetColumnWidth(%d, %.1f->%.1f)\n", column_0_idx, column_0->WidthGiven, column_0_width); + ImGuiTableColumn* column_1 = (column_0->NextEnabledColumn != -1) ? &table->Columns[column_0->NextEnabledColumn] : NULL; + + // In this surprisingly not simple because of how we support mixing Fixed and multiple Stretch columns. + // - All fixed: easy. + // - All stretch: easy. + // - One or more fixed + one stretch: easy. + // - One or more fixed + more than one stretch: tricky. + // Qt when manual resize is enabled only support a single _trailing_ stretch column. + + // When forwarding resize from Wn| to Fn+1| we need to be considerate of the _NoResize flag on Fn+1. + // FIXME-TABLE: Find a way to rewrite all of this so interactions feel more consistent for the user. + // Scenarios: + // - F1 F2 F3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. Subsequent columns will be offset. + // - F1 F2 F3 resize from F3| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered. + // - F1 F2 W3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered, but it doesn't make much sense as the Stretch column will always be minimal size. + // - F1 F2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 W2 W3 resize from W1| or W2| --> ok + // - W1 W2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 F2 F3 resize from F3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 F2 resize from F2| --> ok: no-op (disabled by Resize Rule 1) + // - W1 W2 F3 resize from W1| or W2| --> ok + // - W1 F2 W3 resize from W1| or F2| --> ok + // - F1 W2 F3 resize from W2| --> ok + // - F1 W3 F2 resize from W3| --> ok + // - W1 F2 F3 resize from W1| --> ok: equivalent to resizing |F2. F3 will not move. + // - W1 F2 F3 resize from F2| --> ok + // All resizes from a Wx columns are locking other columns. + + // Possible improvements: + // - W1 W2 W3 resize W1| --> to not be stuck, both W2 and W3 would stretch down. Seems possible to fix. Would be most beneficial to simplify resize of all-weighted columns. + // - W3 F1 F2 resize W3| --> to not be stuck past F1|, both F1 and F2 would need to stretch down, which would be lossy or ambiguous. Seems hard to fix. + + // [Resize Rule 1] Can't resize from right of right-most visible column if there is any Stretch column. Implemented in TableUpdateLayout(). + + // If we have all Fixed columns OR resizing a Fixed column that doesn't come after a Stretch one, we can do an offsetting resize. + // This is the preferred resize path + if (column_0->Flags & ImGuiTableColumnFlags_WidthFixed) + if (!column_1 || table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder >= column_0->DisplayOrder) + { + column_0->WidthRequest = column_0_width; + table->IsSettingsDirty = true; + return; + } + + // We can also use previous column if there's no next one (this is used when doing an auto-fit on the right-most stretch column) + if (column_1 == NULL) + column_1 = (column_0->PrevEnabledColumn != -1) ? &table->Columns[column_0->PrevEnabledColumn] : NULL; + if (column_1 == NULL) + return; + + // Resizing from right-side of a Stretch column before a Fixed column forward sizing to left-side of fixed column. + // (old_a + old_b == new_a + new_b) --> (new_a == old_a + old_b - new_b) + float column_1_width = ImMax(column_1->WidthRequest - (column_0_width - column_0->WidthRequest), min_width); + column_0_width = column_0->WidthRequest + column_1->WidthRequest - column_1_width; + IM_ASSERT(column_0_width > 0.0f && column_1_width > 0.0f); + column_0->WidthRequest = column_0_width; + column_1->WidthRequest = column_1_width; + if ((column_0->Flags | column_1->Flags) & ImGuiTableColumnFlags_WidthStretch) + TableUpdateColumnsWeightFromWidth(table); + table->IsSettingsDirty = true; +} + +// Disable clipping then auto-fit, will take 2 frames +// (we don't take a shortcut for unclipped columns to reduce inconsistencies when e.g. resizing multiple columns) +void ImGui::TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n) +{ + // Single auto width uses auto-fit + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled) + return; + column->CannotSkipItemsQueue = (1 << 0); + table->AutoFitSingleColumn = (ImGuiTableColumnIdx)column_n; +} + +void ImGui::TableSetColumnWidthAutoAll(ImGuiTable* table) +{ + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) // Cannot reset weight of hidden stretch column + continue; + column->CannotSkipItemsQueue = (1 << 0); + column->AutoFitQueue = (1 << 1); + } +} + +void ImGui::TableUpdateColumnsWeightFromWidth(ImGuiTable* table) +{ + IM_ASSERT(table->LeftMostStretchedColumn != -1 && table->RightMostStretchedColumn != -1); + + // Measure existing quantity + float visible_weight = 0.0f; + float visible_width = 0.0f; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + IM_ASSERT(column->StretchWeight > 0.0f); + visible_weight += column->StretchWeight; + visible_width += column->WidthRequest; + } + IM_ASSERT(visible_weight > 0.0f && visible_width > 0.0f); + + // Apply new weights + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + column->StretchWeight = (column->WidthRequest / visible_width) * visible_weight; + IM_ASSERT(column->StretchWeight > 0.0f); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Drawing +//------------------------------------------------------------------------- +// - TablePushBackgroundChannel() [Internal] +// - TablePopBackgroundChannel() [Internal] +// - TableSetupDrawChannels() [Internal] +// - TableMergeDrawChannels() [Internal] +// - TableDrawBorders() [Internal] +//------------------------------------------------------------------------- + +// Bg2 is used by Selectable (and possibly other widgets) to render to the background. +// Unlike our Bg0/1 channel which we uses for RowBg/CellBg/Borders and where we guarantee all shapes to be CPU-clipped, the Bg2 channel being widgets-facing will rely on regular ClipRect. +void ImGui::TablePushBackgroundChannel() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiTable* table = g.CurrentTable; + + // Optimization: avoid SetCurrentChannel() + PushClipRect() + table->HostBackupInnerClipRect = window->ClipRect; + SetWindowClipRectBeforeSetChannel(window, table->Bg2ClipRectForDrawCmd); + table->DrawSplitter->SetCurrentChannel(window->DrawList, table->Bg2DrawChannelCurrent); +} + +void ImGui::TablePopBackgroundChannel() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiTable* table = g.CurrentTable; + ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + SetWindowClipRectBeforeSetChannel(window, table->HostBackupInnerClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); +} + +// Allocate draw channels. Called by TableUpdateLayout() +// - We allocate them following storage order instead of display order so reordering columns won't needlessly +// increase overall dormant memory cost. +// - We isolate headers draw commands in their own channels instead of just altering clip rects. +// This is in order to facilitate merging of draw commands. +// - After crossing FreezeRowsCount, all columns see their current draw channel changed to a second set of channels. +// - We only use the dummy draw channel so we can push a null clipping rectangle into it without affecting other +// channels, while simplifying per-row/per-cell overhead. It will be empty and discarded when merged. +// - We allocate 1 or 2 background draw channels. This is because we know TablePushBackgroundChannel() is only used for +// horizontal spanning. If we allowed vertical spanning we'd need one background draw channel per merge group (1-4). +// Draw channel allocation (before merging): +// - NoClip --> 2+D+1 channels: bg0/1 + bg2 + foreground (same clip rect == always 1 draw call) +// - Clip --> 2+D+N channels +// - FreezeRows --> 2+D+N*2 (unless scrolling value is zero) +// - FreezeRows || FreezeColunns --> 3+D+N*2 (unless scrolling value is zero) +// Where D is 1 if any column is clipped or hidden (dummy channel) otherwise 0. +void ImGui::TableSetupDrawChannels(ImGuiTable* table) +{ + const int freeze_row_multiplier = (table->FreezeRowsCount > 0) ? 2 : 1; + const int channels_for_row = (table->Flags & ImGuiTableFlags_NoClip) ? 1 : table->ColumnsEnabledCount; + const int channels_for_bg = 1 + 1 * freeze_row_multiplier; + const int channels_for_dummy = (table->ColumnsEnabledCount < table->ColumnsCount || table->VisibleMaskByIndex != table->EnabledMaskByIndex) ? +1 : 0; + const int channels_total = channels_for_bg + (channels_for_row * freeze_row_multiplier) + channels_for_dummy; + table->DrawSplitter->Split(table->InnerWindow->DrawList, channels_total); + table->DummyDrawChannel = (ImGuiTableDrawChannelIdx)((channels_for_dummy > 0) ? channels_total - 1 : -1); + table->Bg2DrawChannelCurrent = TABLE_DRAW_CHANNEL_BG2_FROZEN; + table->Bg2DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)((table->FreezeRowsCount > 0) ? 2 + channels_for_row : TABLE_DRAW_CHANNEL_BG2_FROZEN); + + int draw_channel_current = 2; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->IsVisibleX && column->IsVisibleY) + { + column->DrawChannelFrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current); + column->DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current + (table->FreezeRowsCount > 0 ? channels_for_row + 1 : 0)); + if (!(table->Flags & ImGuiTableFlags_NoClip)) + draw_channel_current++; + } + else + { + column->DrawChannelFrozen = column->DrawChannelUnfrozen = table->DummyDrawChannel; + } + column->DrawChannelCurrent = column->DrawChannelFrozen; + } + + // Initial draw cmd starts with a BgClipRect that matches the one of its host, to facilitate merge draw commands by default. + // All our cell highlight are manually clipped with BgClipRect. When unfreezing it will be made smaller to fit scrolling rect. + // (This technically isn't part of setting up draw channels, but is reasonably related to be done here) + table->BgClipRect = table->InnerClipRect; + table->Bg0ClipRectForDrawCmd = table->OuterWindow->ClipRect; + table->Bg2ClipRectForDrawCmd = table->HostClipRect; + IM_ASSERT(table->BgClipRect.Min.y <= table->BgClipRect.Max.y); +} + +// This function reorder draw channels based on matching clip rectangle, to facilitate merging them. Called by EndTable(). +// For simplicity we call it TableMergeDrawChannels() but in fact it only reorder channels + overwrite ClipRect, +// actual merging is done by table->DrawSplitter.Merge() which is called right after TableMergeDrawChannels(). +// +// Columns where the contents didn't stray off their local clip rectangle can be merged. To achieve +// this we merge their clip rect and make them contiguous in the channel list, so they can be merged +// by the call to DrawSplitter.Merge() following to the call to this function. +// We reorder draw commands by arranging them into a maximum of 4 distinct groups: +// +// 1 group: 2 groups: 2 groups: 4 groups: +// [ 0. ] no freeze [ 0. ] row freeze [ 01 ] col freeze [ 01 ] row+col freeze +// [ .. ] or no scroll [ 2. ] and v-scroll [ .. ] and h-scroll [ 23 ] and v+h-scroll +// +// Each column itself can use 1 channel (row freeze disabled) or 2 channels (row freeze enabled). +// When the contents of a column didn't stray off its limit, we move its channels into the corresponding group +// based on its position (within frozen rows/columns groups or not). +// At the end of the operation our 1-4 groups will each have a ImDrawCmd using the same ClipRect. +// This function assume that each column are pointing to a distinct draw channel, +// otherwise merge_group->ChannelsCount will not match set bit count of merge_group->ChannelsMask. +// +// Column channels will not be merged into one of the 1-4 groups in the following cases: +// - The contents stray off its clipping rectangle (we only compare the MaxX value, not the MinX value). +// Direct ImDrawList calls won't be taken into account by default, if you use them make sure the ImGui:: bounds +// matches, by e.g. calling SetCursorScreenPos(). +// - The channel uses more than one draw command itself. We drop all our attempt at merging stuff here.. +// we could do better but it's going to be rare and probably not worth the hassle. +// Columns for which the draw channel(s) haven't been merged with other will use their own ImDrawCmd. +// +// This function is particularly tricky to understand.. take a breath. +void ImGui::TableMergeDrawChannels(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImDrawListSplitter* splitter = table->DrawSplitter; + const bool has_freeze_v = (table->FreezeRowsCount > 0); + const bool has_freeze_h = (table->FreezeColumnsCount > 0); + IM_ASSERT(splitter->_Current == 0); + + // Track which groups we are going to attempt to merge, and which channels goes into each group. + struct MergeGroup + { + ImRect ClipRect; + int ChannelsCount; + ImBitArray ChannelsMask; + + MergeGroup() { ChannelsCount = 0; } + }; + int merge_group_mask = 0x00; + MergeGroup merge_groups[4]; + + // 1. Scan channels and take note of those which can be merged + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if ((table->VisibleMaskByIndex & ((ImU64)1 << column_n)) == 0) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + const int merge_group_sub_count = has_freeze_v ? 2 : 1; + for (int merge_group_sub_n = 0; merge_group_sub_n < merge_group_sub_count; merge_group_sub_n++) + { + const int channel_no = (merge_group_sub_n == 0) ? column->DrawChannelFrozen : column->DrawChannelUnfrozen; + + // Don't attempt to merge if there are multiple draw calls within the column + ImDrawChannel* src_channel = &splitter->_Channels[channel_no]; + if (src_channel->_CmdBuffer.Size > 0 && src_channel->_CmdBuffer.back().ElemCount == 0 && src_channel->_CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() + src_channel->_CmdBuffer.pop_back(); + if (src_channel->_CmdBuffer.Size != 1) + continue; + + // Find out the width of this merge group and check if it will fit in our column + // (note that we assume that rendering didn't stray on the left direction. we should need a CursorMinPos to detect it) + if (!(column->Flags & ImGuiTableColumnFlags_NoClip)) + { + float content_max_x; + if (!has_freeze_v) + content_max_x = ImMax(column->ContentMaxXUnfrozen, column->ContentMaxXHeadersUsed); // No row freeze + else if (merge_group_sub_n == 0) + content_max_x = ImMax(column->ContentMaxXFrozen, column->ContentMaxXHeadersUsed); // Row freeze: use width before freeze + else + content_max_x = column->ContentMaxXUnfrozen; // Row freeze: use width after freeze + if (content_max_x > column->ClipRect.Max.x) + continue; + } + + const int merge_group_n = (has_freeze_h && column_n < table->FreezeColumnsCount ? 0 : 1) + (has_freeze_v && merge_group_sub_n == 0 ? 0 : 2); + IM_ASSERT(channel_no < IMGUI_TABLE_MAX_DRAW_CHANNELS); + MergeGroup* merge_group = &merge_groups[merge_group_n]; + if (merge_group->ChannelsCount == 0) + merge_group->ClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); + merge_group->ChannelsMask.SetBit(channel_no); + merge_group->ChannelsCount++; + merge_group->ClipRect.Add(src_channel->_CmdBuffer[0].ClipRect); + merge_group_mask |= (1 << merge_group_n); + } + + // Invalidate current draw channel + // (we don't clear DrawChannelFrozen/DrawChannelUnfrozen solely to facilitate debugging/later inspection of data) + column->DrawChannelCurrent = (ImGuiTableDrawChannelIdx)-1; + } + + // [DEBUG] Display merge groups +#if 0 + if (g.IO.KeyShift) + for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) + { + MergeGroup* merge_group = &merge_groups[merge_group_n]; + if (merge_group->ChannelsCount == 0) + continue; + char buf[32]; + ImFormatString(buf, 32, "MG%d:%d", merge_group_n, merge_group->ChannelsCount); + ImVec2 text_pos = merge_group->ClipRect.Min + ImVec2(4, 4); + ImVec2 text_size = CalcTextSize(buf, NULL); + GetForegroundDrawList()->AddRectFilled(text_pos, text_pos + text_size, IM_COL32(0, 0, 0, 255)); + GetForegroundDrawList()->AddText(text_pos, IM_COL32(255, 255, 0, 255), buf, NULL); + GetForegroundDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 255, 0, 255)); + } +#endif + + // 2. Rewrite channel list in our preferred order + if (merge_group_mask != 0) + { + // We skip channel 0 (Bg0/Bg1) and 1 (Bg2 frozen) from the shuffling since they won't move - see channels allocation in TableSetupDrawChannels(). + const int LEADING_DRAW_CHANNELS = 2; + g.DrawChannelsTempMergeBuffer.resize(splitter->_Count - LEADING_DRAW_CHANNELS); // Use shared temporary storage so the allocation gets amortized + ImDrawChannel* dst_tmp = g.DrawChannelsTempMergeBuffer.Data; + ImBitArray remaining_mask; // We need 132-bit of storage + remaining_mask.SetBitRange(LEADING_DRAW_CHANNELS, splitter->_Count); + remaining_mask.ClearBit(table->Bg2DrawChannelUnfrozen); + IM_ASSERT(has_freeze_v == false || table->Bg2DrawChannelUnfrozen != TABLE_DRAW_CHANNEL_BG2_FROZEN); + int remaining_count = splitter->_Count - (has_freeze_v ? LEADING_DRAW_CHANNELS + 1 : LEADING_DRAW_CHANNELS); + //ImRect host_rect = (table->InnerWindow == table->OuterWindow) ? table->InnerClipRect : table->HostClipRect; + ImRect host_rect = table->HostClipRect; + for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) + { + if (int merge_channels_count = merge_groups[merge_group_n].ChannelsCount) + { + MergeGroup* merge_group = &merge_groups[merge_group_n]; + ImRect merge_clip_rect = merge_group->ClipRect; + + // Extend outer-most clip limits to match those of host, so draw calls can be merged even if + // outer-most columns have some outer padding offsetting them from their parent ClipRect. + // The principal cases this is dealing with are: + // - On a same-window table (not scrolling = single group), all fitting columns ClipRect -> will extend and match host ClipRect -> will merge + // - Columns can use padding and have left-most ClipRect.Min.x and right-most ClipRect.Max.x != from host ClipRect -> will extend and match host ClipRect -> will merge + // FIXME-TABLE FIXME-WORKRECT: We are wasting a merge opportunity on tables without scrolling if column doesn't fit + // within host clip rect, solely because of the half-padding difference between window->WorkRect and window->InnerClipRect. + if ((merge_group_n & 1) == 0 || !has_freeze_h) + merge_clip_rect.Min.x = ImMin(merge_clip_rect.Min.x, host_rect.Min.x); + if ((merge_group_n & 2) == 0 || !has_freeze_v) + merge_clip_rect.Min.y = ImMin(merge_clip_rect.Min.y, host_rect.Min.y); + if ((merge_group_n & 1) != 0) + merge_clip_rect.Max.x = ImMax(merge_clip_rect.Max.x, host_rect.Max.x); + if ((merge_group_n & 2) != 0 && (table->Flags & ImGuiTableFlags_NoHostExtendY) == 0) + merge_clip_rect.Max.y = ImMax(merge_clip_rect.Max.y, host_rect.Max.y); +#if 0 + GetOverlayDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 0, 0, 200), 0.0f, 0, 1.0f); + GetOverlayDrawList()->AddLine(merge_group->ClipRect.Min, merge_clip_rect.Min, IM_COL32(255, 100, 0, 200)); + GetOverlayDrawList()->AddLine(merge_group->ClipRect.Max, merge_clip_rect.Max, IM_COL32(255, 100, 0, 200)); +#endif + remaining_count -= merge_group->ChannelsCount; + for (int n = 0; n < IM_ARRAYSIZE(remaining_mask.Storage); n++) + remaining_mask.Storage[n] &= ~merge_group->ChannelsMask.Storage[n]; + for (int n = 0; n < splitter->_Count && merge_channels_count != 0; n++) + { + // Copy + overwrite new clip rect + if (!merge_group->ChannelsMask.TestBit(n)) + continue; + merge_group->ChannelsMask.ClearBit(n); + merge_channels_count--; + + ImDrawChannel* channel = &splitter->_Channels[n]; + IM_ASSERT(channel->_CmdBuffer.Size == 1 && merge_clip_rect.Contains(ImRect(channel->_CmdBuffer[0].ClipRect))); + channel->_CmdBuffer[0].ClipRect = merge_clip_rect.ToVec4(); + memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); + } + } + + // Make sure Bg2DrawChannelUnfrozen appears in the middle of our groups (whereas Bg0/Bg1 and Bg2 frozen are fixed to 0 and 1) + if (merge_group_n == 1 && has_freeze_v) + memcpy(dst_tmp++, &splitter->_Channels[table->Bg2DrawChannelUnfrozen], sizeof(ImDrawChannel)); + } + + // Append unmergeable channels that we didn't reorder at the end of the list + for (int n = 0; n < splitter->_Count && remaining_count != 0; n++) + { + if (!remaining_mask.TestBit(n)) + continue; + ImDrawChannel* channel = &splitter->_Channels[n]; + memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); + remaining_count--; + } + IM_ASSERT(dst_tmp == g.DrawChannelsTempMergeBuffer.Data + g.DrawChannelsTempMergeBuffer.Size); + memcpy(splitter->_Channels.Data + LEADING_DRAW_CHANNELS, g.DrawChannelsTempMergeBuffer.Data, (splitter->_Count - LEADING_DRAW_CHANNELS) * sizeof(ImDrawChannel)); + } +} + +// FIXME-TABLE: This is a mess, need to redesign how we render borders (as some are also done in TableEndRow) +void ImGui::TableDrawBorders(ImGuiTable* table) +{ + ImGuiWindow* inner_window = table->InnerWindow; + if (!table->OuterWindow->ClipRect.Overlaps(table->OuterRect)) + return; + + ImDrawList* inner_drawlist = inner_window->DrawList; + table->DrawSplitter->SetCurrentChannel(inner_drawlist, TABLE_DRAW_CHANNEL_BG0); + inner_drawlist->PushClipRect(table->Bg0ClipRectForDrawCmd.Min, table->Bg0ClipRectForDrawCmd.Max, false); + + // Draw inner border and resizing feedback + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + const float border_size = TABLE_BORDER_SIZE; + const float draw_y1 = table->InnerRect.Min.y; + const float draw_y2_body = table->InnerRect.Max.y; + const float draw_y2_head = table->IsUsingHeaders ? ImMin(table->InnerRect.Max.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table_instance->LastFirstRowHeight) : draw_y1; + if (table->Flags & ImGuiTableFlags_BordersInnerV) + { + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + if (!(table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n))) + continue; + + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + const bool is_hovered = (table->HoveredColumnBorder == column_n); + const bool is_resized = (table->ResizedColumn == column_n) && (table->InstanceInteracted == table->InstanceCurrent); + const bool is_resizable = (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) == 0; + const bool is_frozen_separator = (table->FreezeColumnsCount == order_n + 1); + if (column->MaxX > table->InnerClipRect.Max.x && !is_resized) + continue; + + // Decide whether right-most column is visible + if (column->NextEnabledColumn == -1 && !is_resizable) + if ((table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame || (table->Flags & ImGuiTableFlags_NoHostExtendX)) + continue; + if (column->MaxX <= column->ClipRect.Min.x) // FIXME-TABLE FIXME-STYLE: Assume BorderSize==1, this is problematic if we want to increase the border size.. + continue; + + // Draw in outer window so right-most column won't be clipped + // Always draw full height border when being resized/hovered, or on the delimitation of frozen column scrolling. + ImU32 col; + float draw_y2; + if (is_hovered || is_resized || is_frozen_separator) + { + draw_y2 = draw_y2_body; + col = is_resized ? GetColorU32(ImGuiCol_SeparatorActive) : is_hovered ? GetColorU32(ImGuiCol_SeparatorHovered) : table->BorderColorStrong; + } + else + { + draw_y2 = (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)) ? draw_y2_head : draw_y2_body; + col = (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)) ? table->BorderColorStrong : table->BorderColorLight; + } + + if (draw_y2 > draw_y1) + inner_drawlist->AddLine(ImVec2(column->MaxX, draw_y1), ImVec2(column->MaxX, draw_y2), col, border_size); + } + } + + // Draw outer border + // FIXME: could use AddRect or explicit VLine/HLine helper? + if (table->Flags & ImGuiTableFlags_BordersOuter) + { + // Display outer border offset by 1 which is a simple way to display it without adding an extra draw call + // (Without the offset, in outer_window it would be rendered behind cells, because child windows are above their + // parent. In inner_window, it won't reach out over scrollbars. Another weird solution would be to display part + // of it in inner window, and the part that's over scrollbars in the outer window..) + // Either solution currently won't allow us to use a larger border size: the border would clipped. + const ImRect outer_border = table->OuterRect; + const ImU32 outer_col = table->BorderColorStrong; + if ((table->Flags & ImGuiTableFlags_BordersOuter) == ImGuiTableFlags_BordersOuter) + { + inner_drawlist->AddRect(outer_border.Min, outer_border.Max, outer_col, 0.0f, 0, border_size); + } + else if (table->Flags & ImGuiTableFlags_BordersOuterV) + { + inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Min.x, outer_border.Max.y), outer_col, border_size); + inner_drawlist->AddLine(ImVec2(outer_border.Max.x, outer_border.Min.y), outer_border.Max, outer_col, border_size); + } + else if (table->Flags & ImGuiTableFlags_BordersOuterH) + { + inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Max.x, outer_border.Min.y), outer_col, border_size); + inner_drawlist->AddLine(ImVec2(outer_border.Min.x, outer_border.Max.y), outer_border.Max, outer_col, border_size); + } + } + if ((table->Flags & ImGuiTableFlags_BordersInnerH) && table->RowPosY2 < table->OuterRect.Max.y) + { + // Draw bottom-most row border + const float border_y = table->RowPosY2; + if (border_y >= table->BgClipRect.Min.y && border_y < table->BgClipRect.Max.y) + inner_drawlist->AddLine(ImVec2(table->BorderX1, border_y), ImVec2(table->BorderX2, border_y), table->BorderColorLight, border_size); + } + + inner_drawlist->PopClipRect(); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Sorting +//------------------------------------------------------------------------- +// - TableGetSortSpecs() +// - TableFixColumnSortDirection() [Internal] +// - TableGetColumnNextSortDirection() [Internal] +// - TableSetColumnSortDirection() [Internal] +// - TableSortSpecsSanitize() [Internal] +// - TableSortSpecsBuild() [Internal] +//------------------------------------------------------------------------- + +// Return NULL if no sort specs (most often when ImGuiTableFlags_Sortable is not set) +// You can sort your data again when 'SpecsChanged == true'. It will be true with sorting specs have changed since +// last call, or the first time. +// Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable()! +ImGuiTableSortSpecs* ImGui::TableGetSortSpecs() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL); + + if (!(table->Flags & ImGuiTableFlags_Sortable)) + return NULL; + + // Require layout (in case TableHeadersRow() hasn't been called) as it may alter IsSortSpecsDirty in some paths. + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + TableSortSpecsBuild(table); + + return &table->SortSpecs; +} + +static inline ImGuiSortDirection TableGetColumnAvailSortDirection(ImGuiTableColumn* column, int n) +{ + IM_ASSERT(n < column->SortDirectionsAvailCount); + return (column->SortDirectionsAvailList >> (n << 1)) & 0x03; +} + +// Fix sort direction if currently set on a value which is unavailable (e.g. activating NoSortAscending/NoSortDescending) +void ImGui::TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column) +{ + if (column->SortOrder == -1 || (column->SortDirectionsAvailMask & (1 << column->SortDirection)) != 0) + return; + column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); + table->IsSortSpecsDirty = true; +} + +// Calculate next sort direction that would be set after clicking the column +// - If the PreferSortDescending flag is set, we will default to a Descending direction on the first click. +// - Note that the PreferSortAscending flag is never checked, it is essentially the default and therefore a no-op. +IM_STATIC_ASSERT(ImGuiSortDirection_None == 0 && ImGuiSortDirection_Ascending == 1 && ImGuiSortDirection_Descending == 2); +ImGuiSortDirection ImGui::TableGetColumnNextSortDirection(ImGuiTableColumn* column) +{ + IM_ASSERT(column->SortDirectionsAvailCount > 0); + if (column->SortOrder == -1) + return TableGetColumnAvailSortDirection(column, 0); + for (int n = 0; n < 3; n++) + if (column->SortDirection == TableGetColumnAvailSortDirection(column, n)) + return TableGetColumnAvailSortDirection(column, (n + 1) % column->SortDirectionsAvailCount); + IM_ASSERT(0); + return ImGuiSortDirection_None; +} + +// Note that the NoSortAscending/NoSortDescending flags are processed in TableSortSpecsSanitize(), and they may change/revert +// the value of SortDirection. We could technically also do it here but it would be unnecessary and duplicate code. +void ImGui::TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + + if (!(table->Flags & ImGuiTableFlags_SortMulti)) + append_to_sort_specs = false; + if (!(table->Flags & ImGuiTableFlags_SortTristate)) + IM_ASSERT(sort_direction != ImGuiSortDirection_None); + + ImGuiTableColumnIdx sort_order_max = 0; + if (append_to_sort_specs) + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + sort_order_max = ImMax(sort_order_max, table->Columns[other_column_n].SortOrder); + + ImGuiTableColumn* column = &table->Columns[column_n]; + column->SortDirection = (ImU8)sort_direction; + if (column->SortDirection == ImGuiSortDirection_None) + column->SortOrder = -1; + else if (column->SortOrder == -1 || !append_to_sort_specs) + column->SortOrder = append_to_sort_specs ? sort_order_max + 1 : 0; + + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + { + ImGuiTableColumn* other_column = &table->Columns[other_column_n]; + if (other_column != column && !append_to_sort_specs) + other_column->SortOrder = -1; + TableFixColumnSortDirection(table, other_column); + } + table->IsSettingsDirty = true; + table->IsSortSpecsDirty = true; +} + +void ImGui::TableSortSpecsSanitize(ImGuiTable* table) +{ + IM_ASSERT(table->Flags & ImGuiTableFlags_Sortable); + + // Clear SortOrder from hidden column and verify that there's no gap or duplicate. + int sort_order_count = 0; + ImU64 sort_order_mask = 0x00; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->SortOrder != -1 && !column->IsEnabled) + column->SortOrder = -1; + if (column->SortOrder == -1) + continue; + sort_order_count++; + sort_order_mask |= ((ImU64)1 << column->SortOrder); + IM_ASSERT(sort_order_count < (int)sizeof(sort_order_mask) * 8); + } + + const bool need_fix_linearize = ((ImU64)1 << sort_order_count) != (sort_order_mask + 1); + const bool need_fix_single_sort_order = (sort_order_count > 1) && !(table->Flags & ImGuiTableFlags_SortMulti); + if (need_fix_linearize || need_fix_single_sort_order) + { + ImU64 fixed_mask = 0x00; + for (int sort_n = 0; sort_n < sort_order_count; sort_n++) + { + // Fix: Rewrite sort order fields if needed so they have no gap or duplicate. + // (e.g. SortOrder 0 disappeared, SortOrder 1..2 exists --> rewrite then as SortOrder 0..1) + int column_with_smallest_sort_order = -1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if ((fixed_mask & ((ImU64)1 << (ImU64)column_n)) == 0 && table->Columns[column_n].SortOrder != -1) + if (column_with_smallest_sort_order == -1 || table->Columns[column_n].SortOrder < table->Columns[column_with_smallest_sort_order].SortOrder) + column_with_smallest_sort_order = column_n; + IM_ASSERT(column_with_smallest_sort_order != -1); + fixed_mask |= ((ImU64)1 << column_with_smallest_sort_order); + table->Columns[column_with_smallest_sort_order].SortOrder = (ImGuiTableColumnIdx)sort_n; + + // Fix: Make sure only one column has a SortOrder if ImGuiTableFlags_MultiSortable is not set. + if (need_fix_single_sort_order) + { + sort_order_count = 1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (column_n != column_with_smallest_sort_order) + table->Columns[column_n].SortOrder = -1; + break; + } + } + } + + // Fallback default sort order (if no column had the ImGuiTableColumnFlags_DefaultSort flag) + if (sort_order_count == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + sort_order_count = 1; + column->SortOrder = 0; + column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); + break; + } + } + + table->SortSpecsCount = (ImGuiTableColumnIdx)sort_order_count; +} + +void ImGui::TableSortSpecsBuild(ImGuiTable* table) +{ + bool dirty = table->IsSortSpecsDirty; + if (dirty) + { + TableSortSpecsSanitize(table); + table->SortSpecsMulti.resize(table->SortSpecsCount <= 1 ? 0 : table->SortSpecsCount); + table->SortSpecs.SpecsDirty = true; // Mark as dirty for user + table->IsSortSpecsDirty = false; // Mark as not dirty for us + } + + // Write output + ImGuiTableColumnSortSpecs* sort_specs = (table->SortSpecsCount == 0) ? NULL : (table->SortSpecsCount == 1) ? &table->SortSpecsSingle : table->SortSpecsMulti.Data; + if (dirty && sort_specs != NULL) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->SortOrder == -1) + continue; + IM_ASSERT(column->SortOrder < table->SortSpecsCount); + ImGuiTableColumnSortSpecs* sort_spec = &sort_specs[column->SortOrder]; + sort_spec->ColumnUserID = column->UserID; + sort_spec->ColumnIndex = (ImGuiTableColumnIdx)column_n; + sort_spec->SortOrder = (ImGuiTableColumnIdx)column->SortOrder; + sort_spec->SortDirection = column->SortDirection; + } + + table->SortSpecs.Specs = sort_specs; + table->SortSpecs.SpecsCount = table->SortSpecsCount; +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Headers +//------------------------------------------------------------------------- +// - TableGetHeaderRowHeight() [Internal] +// - TableHeadersRow() +// - TableHeader() +//------------------------------------------------------------------------- + +float ImGui::TableGetHeaderRowHeight() +{ + // Caring for a minor edge case: + // Calculate row height, for the unlikely case that some labels may be taller than others. + // If we didn't do that, uneven header height would highlight but smaller one before the tallest wouldn't catch input for all height. + // In your custom header row you may omit this all together and just call TableNextRow() without a height... + float row_height = GetTextLineHeight(); + int columns_count = TableGetColumnCount(); + for (int column_n = 0; column_n < columns_count; column_n++) + { + ImGuiTableColumnFlags flags = TableGetColumnFlags(column_n); + if ((flags & ImGuiTableColumnFlags_IsEnabled) && !(flags & ImGuiTableColumnFlags_NoHeaderLabel)) + row_height = ImMax(row_height, CalcTextSize(TableGetColumnName(column_n)).y); + } + row_height += GetStyle().CellPadding.y * 2.0f; + return row_height; +} + +// [Public] This is a helper to output TableHeader() calls based on the column names declared in TableSetupColumn(). +// The intent is that advanced users willing to create customized headers would not need to use this helper +// and can create their own! For example: TableHeader() may be preceeded by Checkbox() or other custom widgets. +// See 'Demo->Tables->Custom headers' for a demonstration of implementing a custom version of this. +// This code is constructed to not make much use of internal functions, as it is intended to be a template to copy. +// FIXME-TABLE: TableOpenContextMenu() and TableGetHeaderRowHeight() are not public. +void ImGui::TableHeadersRow() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableHeadersRow() after BeginTable()!"); + + // Layout if not already done (this is automatically done by TableNextRow, we do it here solely to facilitate stepping in debugger as it is frequent to step in TableUpdateLayout) + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + // Open row + const float row_y1 = GetCursorScreenPos().y; + const float row_height = TableGetHeaderRowHeight(); + TableNextRow(ImGuiTableRowFlags_Headers, row_height); + if (table->HostSkipItems) // Merely an optimization, you may skip in your own code. + return; + + const int columns_count = TableGetColumnCount(); + for (int column_n = 0; column_n < columns_count; column_n++) + { + if (!TableSetColumnIndex(column_n)) + continue; + + // Push an id to allow unnamed labels (generally accidental, but let's behave nicely with them) + // - in your own code you may omit the PushID/PopID all-together, provided you know they won't collide + // - table->InstanceCurrent is only >0 when we use multiple BeginTable/EndTable calls with same identifier. + const char* name = (TableGetColumnFlags(column_n) & ImGuiTableColumnFlags_NoHeaderLabel) ? "" : TableGetColumnName(column_n); + PushID(table->InstanceCurrent * table->ColumnsCount + column_n); + TableHeader(name); + PopID(); + } + + // Allow opening popup from the right-most section after the last column. + ImVec2 mouse_pos = ImGui::GetMousePos(); + if (IsMouseReleased(1) && TableGetHoveredColumn() == columns_count) + if (mouse_pos.y >= row_y1 && mouse_pos.y < row_y1 + row_height) + TableOpenContextMenu(-1); // Will open a non-column-specific popup. +} + +// Emit a column header (text + optional sort order) +// We cpu-clip text here so that all columns headers can be merged into a same draw call. +// Note that because of how we cpu-clip and display sorting indicators, you _cannot_ use SameLine() after a TableHeader() +void ImGui::TableHeader(const char* label) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableHeader() after BeginTable()!"); + IM_ASSERT(table->CurrentColumn != -1); + const int column_n = table->CurrentColumn; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Label + if (label == NULL) + label = ""; + const char* label_end = FindRenderedTextEnd(label); + ImVec2 label_size = CalcTextSize(label, label_end, true); + ImVec2 label_pos = window->DC.CursorPos; + + // If we already got a row height, there's use that. + // FIXME-TABLE: Padding problem if the correct outer-padding CellBgRect strays off our ClipRect? + ImRect cell_r = TableGetCellBgRect(table, column_n); + float label_height = ImMax(label_size.y, table->RowMinHeight - table->CellPaddingY * 2.0f); + + // Calculate ideal size for sort order arrow + float w_arrow = 0.0f; + float w_sort_text = 0.0f; + char sort_order_suf[4] = ""; + const float ARROW_SCALE = 0.65f; + if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + w_arrow = ImFloor(g.FontSize * ARROW_SCALE + g.Style.FramePadding.x); + if (column->SortOrder > 0) + { + ImFormatString(sort_order_suf, IM_ARRAYSIZE(sort_order_suf), "%d", column->SortOrder + 1); + w_sort_text = g.Style.ItemInnerSpacing.x + CalcTextSize(sort_order_suf).x; + } + } + + // We feed our unclipped width to the column without writing on CursorMaxPos, so that column is still considering for merging. + float max_pos_x = label_pos.x + label_size.x + w_sort_text + w_arrow; + column->ContentMaxXHeadersUsed = ImMax(column->ContentMaxXHeadersUsed, column->WorkMaxX); + column->ContentMaxXHeadersIdeal = ImMax(column->ContentMaxXHeadersIdeal, max_pos_x); + + // Keep header highlighted when context menu is open. + const bool selected = (table->IsContextPopupOpen && table->ContextPopupColumn == column_n && table->InstanceInteracted == table->InstanceCurrent); + ImGuiID id = window->GetID(label); + ImRect bb(cell_r.Min.x, cell_r.Min.y, cell_r.Max.x, ImMax(cell_r.Max.y, cell_r.Min.y + label_height + g.Style.CellPadding.y * 2.0f)); + ItemSize(ImVec2(0.0f, label_height)); // Don't declare unclipped width, it'll be fed ContentMaxPosHeadersIdeal + if (!ItemAdd(bb, id)) + return; + + //GetForegroundDrawList()->AddRect(cell_r.Min, cell_r.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] + //GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] + + // Using AllowItemOverlap mode because we cover the whole cell, and we want user to be able to submit subsequent items. + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_AllowItemOverlap); + if (g.ActiveId != id) + SetItemAllowOverlap(); + if (held || hovered || selected) + { + const ImU32 col = GetColorU32(held ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + //RenderFrame(bb.Min, bb.Max, col, false, 0.0f); + TableSetBgColor(ImGuiTableBgTarget_CellBg, col, table->CurrentColumn); + } + else + { + // Submit single cell bg color in the case we didn't submit a full header row + if ((table->RowFlags & ImGuiTableRowFlags_Headers) == 0) + TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_TableHeaderBg), table->CurrentColumn); + } + RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); + if (held) + table->HeldHeaderColumn = (ImGuiTableColumnIdx)column_n; + window->DC.CursorPos.y -= g.Style.ItemSpacing.y * 0.5f; + + // Drag and drop to re-order columns. + // FIXME-TABLE: Scroll request while reordering a column and it lands out of the scrolling zone. + if (held && (table->Flags & ImGuiTableFlags_Reorderable) && IsMouseDragging(0) && !g.DragDropActive) + { + // While moving a column it will jump on the other side of the mouse, so we also test for MouseDelta.x + table->ReorderColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + + // We don't reorder: through the frozen<>unfrozen line, or through a column that is marked with ImGuiTableColumnFlags_NoReorder. + if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < cell_r.Min.x) + if (ImGuiTableColumn* prev_column = (column->PrevEnabledColumn != -1) ? &table->Columns[column->PrevEnabledColumn] : NULL) + if (!((column->Flags | prev_column->Flags) & ImGuiTableColumnFlags_NoReorder)) + if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (prev_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) + table->ReorderColumnDir = -1; + if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > cell_r.Max.x) + if (ImGuiTableColumn* next_column = (column->NextEnabledColumn != -1) ? &table->Columns[column->NextEnabledColumn] : NULL) + if (!((column->Flags | next_column->Flags) & ImGuiTableColumnFlags_NoReorder)) + if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (next_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) + table->ReorderColumnDir = +1; + } + + // Sort order arrow + const float ellipsis_max = cell_r.Max.x - w_arrow - w_sort_text; + if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + if (column->SortOrder != -1) + { + float x = ImMax(cell_r.Min.x, cell_r.Max.x - w_arrow - w_sort_text); + float y = label_pos.y; + if (column->SortOrder > 0) + { + PushStyleColor(ImGuiCol_Text, GetColorU32(ImGuiCol_Text, 0.70f)); + RenderText(ImVec2(x + g.Style.ItemInnerSpacing.x, y), sort_order_suf); + PopStyleColor(); + x += w_sort_text; + } + RenderArrow(window->DrawList, ImVec2(x, y), GetColorU32(ImGuiCol_Text), column->SortDirection == ImGuiSortDirection_Ascending ? ImGuiDir_Up : ImGuiDir_Down, ARROW_SCALE); + } + + // Handle clicking on column header to adjust Sort Order + if (pressed && table->ReorderColumn != column_n) + { + ImGuiSortDirection sort_direction = TableGetColumnNextSortDirection(column); + TableSetColumnSortDirection(column_n, sort_direction, g.IO.KeyShift); + } + } + + // Render clipped label. Clipping here ensure that in the majority of situations, all our header cells will + // be merged into a single draw call. + //window->DrawList->AddCircleFilled(ImVec2(ellipsis_max, label_pos.y), 40, IM_COL32_WHITE); + RenderTextEllipsis(window->DrawList, label_pos, ImVec2(ellipsis_max, label_pos.y + label_height + g.Style.FramePadding.y), ellipsis_max, ellipsis_max, label, label_end, &label_size); + + const bool text_clipped = label_size.x > (ellipsis_max - label_pos.x); + if (text_clipped && hovered && g.ActiveId == 0 && IsItemHovered(ImGuiHoveredFlags_DelayNormal)) + SetTooltip("%.*s", (int)(label_end - label), label); + + // We don't use BeginPopupContextItem() because we want the popup to stay up even after the column is hidden + if (IsMouseReleased(1) && IsItemHovered()) + TableOpenContextMenu(column_n); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Context Menu +//------------------------------------------------------------------------- +// - TableOpenContextMenu() [Internal] +// - TableDrawContextMenu() [Internal] +//------------------------------------------------------------------------- + +// Use -1 to open menu not specific to a given column. +void ImGui::TableOpenContextMenu(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (column_n == -1 && table->CurrentColumn != -1) // When called within a column automatically use this one (for consistency) + column_n = table->CurrentColumn; + if (column_n == table->ColumnsCount) // To facilitate using with TableGetHoveredColumn() + column_n = -1; + IM_ASSERT(column_n >= -1 && column_n < table->ColumnsCount); + if (table->Flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + table->IsContextPopupOpen = true; + table->ContextPopupColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + OpenPopupEx(context_menu_id, ImGuiPopupFlags_None); + } +} + +bool ImGui::TableBeginContextMenuPopup(ImGuiTable* table) +{ + if (!table->IsContextPopupOpen || table->InstanceCurrent != table->InstanceInteracted) + return false; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings)) + return true; + table->IsContextPopupOpen = false; + return false; +} + +// Output context menu into current window (generally a popup) +// FIXME-TABLE: Ideally this should be writable by the user. Full programmatic access to that data? +void ImGui::TableDrawContextMenu(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + bool want_separator = false; + const int column_n = (table->ContextPopupColumn >= 0 && table->ContextPopupColumn < table->ColumnsCount) ? table->ContextPopupColumn : -1; + ImGuiTableColumn* column = (column_n != -1) ? &table->Columns[column_n] : NULL; + + // Sizing + if (table->Flags & ImGuiTableFlags_Resizable) + { + if (column != NULL) + { + const bool can_resize = !(column->Flags & ImGuiTableColumnFlags_NoResize) && column->IsEnabled; + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableSizeOne), NULL, false, can_resize)) // "###SizeOne" + TableSetColumnWidthAutoSingle(table, column_n); + } + + const char* size_all_desc; + if (table->ColumnsEnabledFixedCount == table->ColumnsEnabledCount && (table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame) + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllFit); // "###SizeAll" All fixed + else + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllDefault); // "###SizeAll" All stretch or mixed + if (MenuItem(size_all_desc, NULL)) + TableSetColumnWidthAutoAll(table); + want_separator = true; + } + + // Ordering + if (table->Flags & ImGuiTableFlags_Reorderable) + { + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableResetOrder), NULL, false, !table->IsDefaultDisplayOrder)) + table->IsResetDisplayOrderRequest = true; + want_separator = true; + } + + // Reset all (should work but seems unnecessary/noisy to expose?) + //if (MenuItem("Reset all")) + // table->IsResetAllRequest = true; + + // Sorting + // (modify TableOpenContextMenu() to add _Sortable flag if enabling this) +#if 0 + if ((table->Flags & ImGuiTableFlags_Sortable) && column != NULL && (column->Flags & ImGuiTableColumnFlags_NoSort) == 0) + { + if (want_separator) + Separator(); + want_separator = true; + + bool append_to_sort_specs = g.IO.KeyShift; + if (MenuItem("Sort in Ascending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Ascending, (column->Flags & ImGuiTableColumnFlags_NoSortAscending) == 0)) + TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Ascending, append_to_sort_specs); + if (MenuItem("Sort in Descending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Descending, (column->Flags & ImGuiTableColumnFlags_NoSortDescending) == 0)) + TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Descending, append_to_sort_specs); + } +#endif + + // Hiding / Visibility + if (table->Flags & ImGuiTableFlags_Hideable) + { + if (want_separator) + Separator(); + want_separator = true; + + PushItemFlag(ImGuiItemFlags_SelectableDontClosePopup, true); + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + { + ImGuiTableColumn* other_column = &table->Columns[other_column_n]; + if (other_column->Flags & ImGuiTableColumnFlags_Disabled) + continue; + + const char* name = TableGetColumnName(table, other_column_n); + if (name == NULL || name[0] == 0) + name = ""; + + // Make sure we can't hide the last active column + bool menu_item_active = (other_column->Flags & ImGuiTableColumnFlags_NoHide) ? false : true; + if (other_column->IsUserEnabled && table->ColumnsEnabledCount <= 1) + menu_item_active = false; + if (MenuItem(name, NULL, other_column->IsUserEnabled, menu_item_active)) + other_column->IsUserEnabledNextFrame = !other_column->IsUserEnabled; + } + PopItemFlag(); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Settings (.ini data) +//------------------------------------------------------------------------- +// FIXME: The binding/finding/creating flow are too confusing. +//------------------------------------------------------------------------- +// - TableSettingsInit() [Internal] +// - TableSettingsCalcChunkSize() [Internal] +// - TableSettingsCreate() [Internal] +// - TableSettingsFindByID() [Internal] +// - TableGetBoundSettings() [Internal] +// - TableResetSettings() +// - TableSaveSettings() [Internal] +// - TableLoadSettings() [Internal] +// - TableSettingsHandler_ClearAll() [Internal] +// - TableSettingsHandler_ApplyAll() [Internal] +// - TableSettingsHandler_ReadOpen() [Internal] +// - TableSettingsHandler_ReadLine() [Internal] +// - TableSettingsHandler_WriteAll() [Internal] +// - TableSettingsInstallHandler() [Internal] +//------------------------------------------------------------------------- +// [Init] 1: TableSettingsHandler_ReadXXXX() Load and parse .ini file into TableSettings. +// [Main] 2: TableLoadSettings() When table is created, bind Table to TableSettings, serialize TableSettings data into Table. +// [Main] 3: TableSaveSettings() When table properties are modified, serialize Table data into bound or new TableSettings, mark .ini as dirty. +// [Main] 4: TableSettingsHandler_WriteAll() When .ini file is dirty (which can come from other source), save TableSettings into .ini file. +//------------------------------------------------------------------------- + +// Clear and initialize empty settings instance +static void TableSettingsInit(ImGuiTableSettings* settings, ImGuiID id, int columns_count, int columns_count_max) +{ + IM_PLACEMENT_NEW(settings) ImGuiTableSettings(); + ImGuiTableColumnSettings* settings_column = settings->GetColumnSettings(); + for (int n = 0; n < columns_count_max; n++, settings_column++) + IM_PLACEMENT_NEW(settings_column) ImGuiTableColumnSettings(); + settings->ID = id; + settings->ColumnsCount = (ImGuiTableColumnIdx)columns_count; + settings->ColumnsCountMax = (ImGuiTableColumnIdx)columns_count_max; + settings->WantApply = true; +} + +static size_t TableSettingsCalcChunkSize(int columns_count) +{ + return sizeof(ImGuiTableSettings) + (size_t)columns_count * sizeof(ImGuiTableColumnSettings); +} + +ImGuiTableSettings* ImGui::TableSettingsCreate(ImGuiID id, int columns_count) +{ + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = g.SettingsTables.alloc_chunk(TableSettingsCalcChunkSize(columns_count)); + TableSettingsInit(settings, id, columns_count, columns_count); + return settings; +} + +// Find existing settings +ImGuiTableSettings* ImGui::TableSettingsFindByID(ImGuiID id) +{ + // FIXME-OPT: Might want to store a lookup map for this? + ImGuiContext& g = *GImGui; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID == id) + return settings; + return NULL; +} + +// Get settings for a given table, NULL if none +ImGuiTableSettings* ImGui::TableGetBoundSettings(ImGuiTable* table) +{ + if (table->SettingsOffset != -1) + { + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = g.SettingsTables.ptr_from_offset(table->SettingsOffset); + IM_ASSERT(settings->ID == table->ID); + if (settings->ColumnsCountMax >= table->ColumnsCount) + return settings; // OK + settings->ID = 0; // Invalidate storage, we won't fit because of a count change + } + return NULL; +} + +// Restore initial state of table (with or without saved settings) +void ImGui::TableResetSettings(ImGuiTable* table) +{ + table->IsInitializing = table->IsSettingsDirty = true; + table->IsResetAllRequest = false; + table->IsSettingsRequestLoad = false; // Don't reload from ini + table->SettingsLoadedFlags = ImGuiTableFlags_None; // Mark as nothing loaded so our initialized data becomes authoritative +} + +void ImGui::TableSaveSettings(ImGuiTable* table) +{ + table->IsSettingsDirty = false; + if (table->Flags & ImGuiTableFlags_NoSavedSettings) + return; + + // Bind or create settings data + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = TableGetBoundSettings(table); + if (settings == NULL) + { + settings = TableSettingsCreate(table->ID, table->ColumnsCount); + table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); + } + settings->ColumnsCount = (ImGuiTableColumnIdx)table->ColumnsCount; + + // Serialize ImGuiTable/ImGuiTableColumn into ImGuiTableSettings/ImGuiTableColumnSettings + IM_ASSERT(settings->ID == table->ID); + IM_ASSERT(settings->ColumnsCount == table->ColumnsCount && settings->ColumnsCountMax >= settings->ColumnsCount); + ImGuiTableColumn* column = table->Columns.Data; + ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); + + bool save_ref_scale = false; + settings->SaveFlags = ImGuiTableFlags_None; + for (int n = 0; n < table->ColumnsCount; n++, column++, column_settings++) + { + const float width_or_weight = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? column->StretchWeight : column->WidthRequest; + column_settings->WidthOrWeight = width_or_weight; + column_settings->Index = (ImGuiTableColumnIdx)n; + column_settings->DisplayOrder = column->DisplayOrder; + column_settings->SortOrder = column->SortOrder; + column_settings->SortDirection = column->SortDirection; + column_settings->IsEnabled = column->IsUserEnabled; + column_settings->IsStretch = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? 1 : 0; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) == 0) + save_ref_scale = true; + + // We skip saving some data in the .ini file when they are unnecessary to restore our state. + // Note that fixed width where initial width was derived from auto-fit will always be saved as InitStretchWeightOrWidth will be 0.0f. + // FIXME-TABLE: We don't have logic to easily compare SortOrder to DefaultSortOrder yet so it's always saved when present. + if (width_or_weight != column->InitStretchWeightOrWidth) + settings->SaveFlags |= ImGuiTableFlags_Resizable; + if (column->DisplayOrder != n) + settings->SaveFlags |= ImGuiTableFlags_Reorderable; + if (column->SortOrder != -1) + settings->SaveFlags |= ImGuiTableFlags_Sortable; + if (column->IsUserEnabled != ((column->Flags & ImGuiTableColumnFlags_DefaultHide) == 0)) + settings->SaveFlags |= ImGuiTableFlags_Hideable; + } + settings->SaveFlags &= table->Flags; + settings->RefScale = save_ref_scale ? table->RefScale : 0.0f; + + MarkIniSettingsDirty(); +} + +void ImGui::TableLoadSettings(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + table->IsSettingsRequestLoad = false; + if (table->Flags & ImGuiTableFlags_NoSavedSettings) + return; + + // Bind settings + ImGuiTableSettings* settings; + if (table->SettingsOffset == -1) + { + settings = TableSettingsFindByID(table->ID); + if (settings == NULL) + return; + if (settings->ColumnsCount != table->ColumnsCount) // Allow settings if columns count changed. We could otherwise decide to return... + table->IsSettingsDirty = true; + table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); + } + else + { + settings = TableGetBoundSettings(table); + } + + table->SettingsLoadedFlags = settings->SaveFlags; + table->RefScale = settings->RefScale; + + // Serialize ImGuiTableSettings/ImGuiTableColumnSettings into ImGuiTable/ImGuiTableColumn + ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); + ImU64 display_order_mask = 0; + for (int data_n = 0; data_n < settings->ColumnsCount; data_n++, column_settings++) + { + int column_n = column_settings->Index; + if (column_n < 0 || column_n >= table->ColumnsCount) + continue; + + ImGuiTableColumn* column = &table->Columns[column_n]; + if (settings->SaveFlags & ImGuiTableFlags_Resizable) + { + if (column_settings->IsStretch) + column->StretchWeight = column_settings->WidthOrWeight; + else + column->WidthRequest = column_settings->WidthOrWeight; + column->AutoFitQueue = 0x00; + } + if (settings->SaveFlags & ImGuiTableFlags_Reorderable) + column->DisplayOrder = column_settings->DisplayOrder; + else + column->DisplayOrder = (ImGuiTableColumnIdx)column_n; + display_order_mask |= (ImU64)1 << column->DisplayOrder; + column->IsUserEnabled = column->IsUserEnabledNextFrame = column_settings->IsEnabled; + column->SortOrder = column_settings->SortOrder; + column->SortDirection = column_settings->SortDirection; + } + + // Validate and fix invalid display order data + const ImU64 expected_display_order_mask = (settings->ColumnsCount == 64) ? ~0 : ((ImU64)1 << settings->ColumnsCount) - 1; + if (display_order_mask != expected_display_order_mask) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->Columns[column_n].DisplayOrder = (ImGuiTableColumnIdx)column_n; + + // Rebuild index + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; +} + +static void TableSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Tables.GetMapSize(); i++) + if (ImGuiTable* table = g.Tables.TryGetMapData(i)) + table->SettingsOffset = -1; + g.SettingsTables.clear(); +} + +// Apply to existing windows (if any) +static void TableSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Tables.GetMapSize(); i++) + if (ImGuiTable* table = g.Tables.TryGetMapData(i)) + { + table->IsSettingsRequestLoad = true; + table->SettingsOffset = -1; + } +} + +static void* TableSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + ImGuiID id = 0; + int columns_count = 0; + if (sscanf(name, "0x%08X,%d", &id, &columns_count) < 2) + return NULL; + + if (ImGuiTableSettings* settings = ImGui::TableSettingsFindByID(id)) + { + if (settings->ColumnsCountMax >= columns_count) + { + TableSettingsInit(settings, id, columns_count, settings->ColumnsCountMax); // Recycle + return settings; + } + settings->ID = 0; // Invalidate storage, we won't fit because of a count change + } + return ImGui::TableSettingsCreate(id, columns_count); +} + +static void TableSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +{ + // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" + ImGuiTableSettings* settings = (ImGuiTableSettings*)entry; + float f = 0.0f; + int column_n = 0, r = 0, n = 0; + + if (sscanf(line, "RefScale=%f", &f) == 1) { settings->RefScale = f; return; } + + if (sscanf(line, "Column %d%n", &column_n, &r) == 1) + { + if (column_n < 0 || column_n >= settings->ColumnsCount) + return; + line = ImStrSkipBlank(line + r); + char c = 0; + ImGuiTableColumnSettings* column = settings->GetColumnSettings() + column_n; + column->Index = (ImGuiTableColumnIdx)column_n; + if (sscanf(line, "UserID=0x%08X%n", (ImU32*)&n, &r)==1) { line = ImStrSkipBlank(line + r); column->UserID = (ImGuiID)n; } + if (sscanf(line, "Width=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = (float)n; column->IsStretch = 0; settings->SaveFlags |= ImGuiTableFlags_Resizable; } + if (sscanf(line, "Weight=%f%n", &f, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = f; column->IsStretch = 1; settings->SaveFlags |= ImGuiTableFlags_Resizable; } + if (sscanf(line, "Visible=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->IsEnabled = (ImU8)n; settings->SaveFlags |= ImGuiTableFlags_Hideable; } + if (sscanf(line, "Order=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->DisplayOrder = (ImGuiTableColumnIdx)n; settings->SaveFlags |= ImGuiTableFlags_Reorderable; } + if (sscanf(line, "Sort=%d%c%n", &n, &c, &r) == 2) { line = ImStrSkipBlank(line + r); column->SortOrder = (ImGuiTableColumnIdx)n; column->SortDirection = (c == '^') ? ImGuiSortDirection_Descending : ImGuiSortDirection_Ascending; settings->SaveFlags |= ImGuiTableFlags_Sortable; } + } +} + +static void TableSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + ImGuiContext& g = *ctx; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + { + if (settings->ID == 0) // Skip ditched settings + continue; + + // TableSaveSettings() may clear some of those flags when we establish that the data can be stripped + // (e.g. Order was unchanged) + const bool save_size = (settings->SaveFlags & ImGuiTableFlags_Resizable) != 0; + const bool save_visible = (settings->SaveFlags & ImGuiTableFlags_Hideable) != 0; + const bool save_order = (settings->SaveFlags & ImGuiTableFlags_Reorderable) != 0; + const bool save_sort = (settings->SaveFlags & ImGuiTableFlags_Sortable) != 0; + if (!save_size && !save_visible && !save_order && !save_sort) + continue; + + buf->reserve(buf->size() + 30 + settings->ColumnsCount * 50); // ballpark reserve + buf->appendf("[%s][0x%08X,%d]\n", handler->TypeName, settings->ID, settings->ColumnsCount); + if (settings->RefScale != 0.0f) + buf->appendf("RefScale=%g\n", settings->RefScale); + ImGuiTableColumnSettings* column = settings->GetColumnSettings(); + for (int column_n = 0; column_n < settings->ColumnsCount; column_n++, column++) + { + // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" + bool save_column = column->UserID != 0 || save_size || save_visible || save_order || (save_sort && column->SortOrder != -1); + if (!save_column) + continue; + buf->appendf("Column %-2d", column_n); + if (column->UserID != 0) buf->appendf(" UserID=%08X", column->UserID); + if (save_size && column->IsStretch) buf->appendf(" Weight=%.4f", column->WidthOrWeight); + if (save_size && !column->IsStretch) buf->appendf(" Width=%d", (int)column->WidthOrWeight); + if (save_visible) buf->appendf(" Visible=%d", column->IsEnabled); + if (save_order) buf->appendf(" Order=%d", column->DisplayOrder); + if (save_sort && column->SortOrder != -1) buf->appendf(" Sort=%d%c", column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? 'v' : '^'); + buf->append("\n"); + } + buf->append("\n"); + } +} + +void ImGui::TableSettingsAddSettingsHandler() +{ + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Table"; + ini_handler.TypeHash = ImHashStr("Table"); + ini_handler.ClearAllFn = TableSettingsHandler_ClearAll; + ini_handler.ReadOpenFn = TableSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = TableSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = TableSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = TableSettingsHandler_WriteAll; + AddSettingsHandler(&ini_handler); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Garbage Collection +//------------------------------------------------------------------------- +// - TableRemove() [Internal] +// - TableGcCompactTransientBuffers() [Internal] +// - TableGcCompactSettings() [Internal] +//------------------------------------------------------------------------- + +// Remove Table (currently only used by TestEngine) +void ImGui::TableRemove(ImGuiTable* table) +{ + //IMGUI_DEBUG_PRINT("TableRemove() id=0x%08X\n", table->ID); + ImGuiContext& g = *GImGui; + int table_idx = g.Tables.GetIndex(table); + //memset(table->RawData.Data, 0, table->RawData.size_in_bytes()); + //memset(table, 0, sizeof(ImGuiTable)); + g.Tables.Remove(table->ID, table); + g.TablesLastTimeActive[table_idx] = -1.0f; +} + +// Free up/compact internal Table buffers for when it gets unused +void ImGui::TableGcCompactTransientBuffers(ImGuiTable* table) +{ + //IMGUI_DEBUG_PRINT("TableGcCompactTransientBuffers() id=0x%08X\n", table->ID); + ImGuiContext& g = *GImGui; + IM_ASSERT(table->MemoryCompacted == false); + table->SortSpecs.Specs = NULL; + table->SortSpecsMulti.clear(); + table->IsSortSpecsDirty = true; // FIXME: shouldn't have to leak into user performing a sort + table->ColumnsNames.clear(); + table->MemoryCompacted = true; + for (int n = 0; n < table->ColumnsCount; n++) + table->Columns[n].NameOffset = -1; + g.TablesLastTimeActive[g.Tables.GetIndex(table)] = -1.0f; +} + +void ImGui::TableGcCompactTransientBuffers(ImGuiTableTempData* temp_data) +{ + temp_data->DrawSplitter.ClearFreeMemory(); + temp_data->LastTimeActive = -1.0f; +} + +// Compact and remove unused settings data (currently only used by TestEngine) +void ImGui::TableGcCompactSettings() +{ + ImGuiContext& g = *GImGui; + int required_memory = 0; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID != 0) + required_memory += (int)TableSettingsCalcChunkSize(settings->ColumnsCount); + if (required_memory == g.SettingsTables.Buf.Size) + return; + ImChunkStream new_chunk_stream; + new_chunk_stream.Buf.reserve(required_memory); + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID != 0) + memcpy(new_chunk_stream.alloc_chunk(TableSettingsCalcChunkSize(settings->ColumnsCount)), settings, TableSettingsCalcChunkSize(settings->ColumnsCount)); + g.SettingsTables.swap(new_chunk_stream); +} + + +//------------------------------------------------------------------------- +// [SECTION] Tables: Debugging +//------------------------------------------------------------------------- +// - DebugNodeTable() [Internal] +//------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + +static const char* DebugNodeTableGetSizingPolicyDesc(ImGuiTableFlags sizing_policy) +{ + sizing_policy &= ImGuiTableFlags_SizingMask_; + if (sizing_policy == ImGuiTableFlags_SizingFixedFit) { return "FixedFit"; } + if (sizing_policy == ImGuiTableFlags_SizingFixedSame) { return "FixedSame"; } + if (sizing_policy == ImGuiTableFlags_SizingStretchProp) { return "StretchProp"; } + if (sizing_policy == ImGuiTableFlags_SizingStretchSame) { return "StretchSame"; } + return "N/A"; +} + +void ImGui::DebugNodeTable(ImGuiTable* table) +{ + char buf[512]; + char* p = buf; + const char* buf_end = buf + IM_ARRAYSIZE(buf); + const bool is_active = (table->LastFrameActive >= ImGui::GetFrameCount() - 2); // Note that fully clipped early out scrolling tables will appear as inactive here. + ImFormatString(p, buf_end - p, "Table 0x%08X (%d columns, in '%s')%s", table->ID, table->ColumnsCount, table->OuterWindow->Name, is_active ? "" : " *Inactive*"); + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open = TreeNode(table, "%s", buf); + if (!is_active) { PopStyleColor(); } + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(table->OuterRect.Min, table->OuterRect.Max, IM_COL32(255, 255, 0, 255)); + if (IsItemVisible() && table->HoveredColumnBody != -1) + GetForegroundDrawList()->AddRect(GetItemRectMin(), GetItemRectMax(), IM_COL32(255, 255, 0, 255)); + if (!open) + return; + if (table->InstanceCurrent > 0) + ImGui::Text("** %d instances of same table! Some data below will refer to last instance.", table->InstanceCurrent + 1); + bool clear_settings = SmallButton("Clear settings"); + BulletText("OuterRect: Pos: (%.1f,%.1f) Size: (%.1f,%.1f) Sizing: '%s'", table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.GetWidth(), table->OuterRect.GetHeight(), DebugNodeTableGetSizingPolicyDesc(table->Flags)); + BulletText("ColumnsGivenWidth: %.1f, ColumnsAutoFitWidth: %.1f, InnerWidth: %.1f%s", table->ColumnsGivenWidth, table->ColumnsAutoFitWidth, table->InnerWidth, table->InnerWidth == 0.0f ? " (auto)" : ""); + BulletText("CellPaddingX: %.1f, CellSpacingX: %.1f/%.1f, OuterPaddingX: %.1f", table->CellPaddingX, table->CellSpacingX1, table->CellSpacingX2, table->OuterPaddingX); + BulletText("HoveredColumnBody: %d, HoveredColumnBorder: %d", table->HoveredColumnBody, table->HoveredColumnBorder); + BulletText("ResizedColumn: %d, ReorderColumn: %d, HeldHeaderColumn: %d", table->ResizedColumn, table->ReorderColumn, table->HeldHeaderColumn); + //BulletText("BgDrawChannels: %d/%d", 0, table->BgDrawChannelUnfrozen); + float sum_weights = 0.0f; + for (int n = 0; n < table->ColumnsCount; n++) + if (table->Columns[n].Flags & ImGuiTableColumnFlags_WidthStretch) + sum_weights += table->Columns[n].StretchWeight; + for (int n = 0; n < table->ColumnsCount; n++) + { + ImGuiTableColumn* column = &table->Columns[n]; + const char* name = TableGetColumnName(table, n); + ImFormatString(buf, IM_ARRAYSIZE(buf), + "Column %d order %d '%s': offset %+.2f to %+.2f%s\n" + "Enabled: %d, VisibleX/Y: %d/%d, RequestOutput: %d, SkipItems: %d, DrawChannels: %d,%d\n" + "WidthGiven: %.1f, Request/Auto: %.1f/%.1f, StretchWeight: %.3f (%.1f%%)\n" + "MinX: %.1f, MaxX: %.1f (%+.1f), ClipRect: %.1f to %.1f (+%.1f)\n" + "ContentWidth: %.1f,%.1f, HeadersUsed/Ideal %.1f/%.1f\n" + "Sort: %d%s, UserID: 0x%08X, Flags: 0x%04X: %s%s%s..", + n, column->DisplayOrder, name, column->MinX - table->WorkRect.Min.x, column->MaxX - table->WorkRect.Min.x, (n < table->FreezeColumnsRequest) ? " (Frozen)" : "", + column->IsEnabled, column->IsVisibleX, column->IsVisibleY, column->IsRequestOutput, column->IsSkipItems, column->DrawChannelFrozen, column->DrawChannelUnfrozen, + column->WidthGiven, column->WidthRequest, column->WidthAuto, column->StretchWeight, column->StretchWeight > 0.0f ? (column->StretchWeight / sum_weights) * 100.0f : 0.0f, + column->MinX, column->MaxX, column->MaxX - column->MinX, column->ClipRect.Min.x, column->ClipRect.Max.x, column->ClipRect.Max.x - column->ClipRect.Min.x, + column->ContentMaxXFrozen - column->WorkMinX, column->ContentMaxXUnfrozen - column->WorkMinX, column->ContentMaxXHeadersUsed - column->WorkMinX, column->ContentMaxXHeadersIdeal - column->WorkMinX, + column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? " (Asc)" : (column->SortDirection == ImGuiSortDirection_Descending) ? " (Des)" : "", column->UserID, column->Flags, + (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? "WidthStretch " : "", + (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? "WidthFixed " : "", + (column->Flags & ImGuiTableColumnFlags_NoResize) ? "NoResize " : ""); + Bullet(); + Selectable(buf); + if (IsItemHovered()) + { + ImRect r(column->MinX, table->OuterRect.Min.y, column->MaxX, table->OuterRect.Max.y); + GetForegroundDrawList()->AddRect(r.Min, r.Max, IM_COL32(255, 255, 0, 255)); + } + } + if (ImGuiTableSettings* settings = TableGetBoundSettings(table)) + DebugNodeTableSettings(settings); + if (clear_settings) + table->IsResetAllRequest = true; + TreePop(); +} + +void ImGui::DebugNodeTableSettings(ImGuiTableSettings* settings) +{ + if (!TreeNode((void*)(intptr_t)settings->ID, "Settings 0x%08X (%d columns)", settings->ID, settings->ColumnsCount)) + return; + BulletText("SaveFlags: 0x%08X", settings->SaveFlags); + BulletText("ColumnsCount: %d (max %d)", settings->ColumnsCount, settings->ColumnsCountMax); + for (int n = 0; n < settings->ColumnsCount; n++) + { + ImGuiTableColumnSettings* column_settings = &settings->GetColumnSettings()[n]; + ImGuiSortDirection sort_dir = (column_settings->SortOrder != -1) ? (ImGuiSortDirection)column_settings->SortDirection : ImGuiSortDirection_None; + BulletText("Column %d Order %d SortOrder %d %s Vis %d %s %7.3f UserID 0x%08X", + n, column_settings->DisplayOrder, column_settings->SortOrder, + (sort_dir == ImGuiSortDirection_Ascending) ? "Asc" : (sort_dir == ImGuiSortDirection_Descending) ? "Des" : "---", + column_settings->IsEnabled, column_settings->IsStretch ? "Weight" : "Width ", column_settings->WidthOrWeight, column_settings->UserID); + } + TreePop(); +} + +#else // #ifndef IMGUI_DISABLE_DEBUG_TOOLS + +void ImGui::DebugNodeTable(ImGuiTable*) {} +void ImGui::DebugNodeTableSettings(ImGuiTableSettings*) {} + +#endif + + +//------------------------------------------------------------------------- +// [SECTION] Columns, BeginColumns, EndColumns, etc. +// (This is a legacy API, prefer using BeginTable/EndTable!) +//------------------------------------------------------------------------- +// FIXME: sizing is lossy when columns width is very small (default width may turn negative etc.) +//------------------------------------------------------------------------- +// - SetWindowClipRectBeforeSetChannel() [Internal] +// - GetColumnIndex() +// - GetColumnsCount() +// - GetColumnOffset() +// - GetColumnWidth() +// - SetColumnOffset() +// - SetColumnWidth() +// - PushColumnClipRect() [Internal] +// - PushColumnsBackground() [Internal] +// - PopColumnsBackground() [Internal] +// - FindOrCreateColumns() [Internal] +// - GetColumnsID() [Internal] +// - BeginColumns() +// - NextColumn() +// - EndColumns() +// - Columns() +//------------------------------------------------------------------------- + +// [Internal] Small optimization to avoid calls to PopClipRect/SetCurrentChannel/PushClipRect in sequences, +// they would meddle many times with the underlying ImDrawCmd. +// Instead, we do a preemptive overwrite of clipping rectangle _without_ altering the command-buffer and let +// the subsequent single call to SetCurrentChannel() does it things once. +void ImGui::SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect) +{ + ImVec4 clip_rect_vec4 = clip_rect.ToVec4(); + window->ClipRect = clip_rect; + window->DrawList->_CmdHeader.ClipRect = clip_rect_vec4; + window->DrawList->_ClipRectStack.Data[window->DrawList->_ClipRectStack.Size - 1] = clip_rect_vec4; +} + +int ImGui::GetColumnIndex() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Current : 0; +} + +int ImGui::GetColumnsCount() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Count : 1; +} + +float ImGui::GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm) +{ + return offset_norm * (columns->OffMaxX - columns->OffMinX); +} + +float ImGui::GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset) +{ + return offset / (columns->OffMaxX - columns->OffMinX); +} + +static const float COLUMNS_HIT_RECT_HALF_WIDTH = 4.0f; + +static float GetDraggedColumnOffset(ImGuiOldColumns* columns, int column_index) +{ + // Active (dragged) column always follow mouse. The reason we need this is that dragging a column to the right edge of an auto-resizing + // window creates a feedback loop because we store normalized positions. So while dragging we enforce absolute positioning. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(column_index > 0); // We are not supposed to drag column 0. + IM_ASSERT(g.ActiveId == columns->ID + ImGuiID(column_index)); + + float x = g.IO.MousePos.x - g.ActiveIdClickOffset.x + COLUMNS_HIT_RECT_HALF_WIDTH - window->Pos.x; + x = ImMax(x, ImGui::GetColumnOffset(column_index - 1) + g.Style.ColumnsMinSpacing); + if ((columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths)) + x = ImMin(x, ImGui::GetColumnOffset(column_index + 1) - g.Style.ColumnsMinSpacing); + + return x; +} + +float ImGui::GetColumnOffset(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return 0.0f; + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const float t = columns->Columns[column_index].OffsetNorm; + const float x_offset = ImLerp(columns->OffMinX, columns->OffMaxX, t); + return x_offset; +} + +static float GetColumnWidthEx(ImGuiOldColumns* columns, int column_index, bool before_resize = false) +{ + if (column_index < 0) + column_index = columns->Current; + + float offset_norm; + if (before_resize) + offset_norm = columns->Columns[column_index + 1].OffsetNormBeforeResize - columns->Columns[column_index].OffsetNormBeforeResize; + else + offset_norm = columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm; + return ImGui::GetColumnOffsetFromNorm(columns, offset_norm); +} + +float ImGui::GetColumnWidth(int column_index) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return GetContentRegionAvail().x; + + if (column_index < 0) + column_index = columns->Current; + return GetColumnOffsetFromNorm(columns, columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm); +} + +void ImGui::SetColumnOffset(int column_index, float offset) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const bool preserve_width = !(columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths) && (column_index < columns->Count - 1); + const float width = preserve_width ? GetColumnWidthEx(columns, column_index, columns->IsBeingResized) : 0.0f; + + if (!(columns->Flags & ImGuiOldColumnFlags_NoForceWithinWindow)) + offset = ImMin(offset, columns->OffMaxX - g.Style.ColumnsMinSpacing * (columns->Count - column_index)); + columns->Columns[column_index].OffsetNorm = GetColumnNormFromOffset(columns, offset - columns->OffMinX); + + if (preserve_width) + SetColumnOffset(column_index + 1, offset + ImMax(g.Style.ColumnsMinSpacing, width)); +} + +void ImGui::SetColumnWidth(int column_index, float width) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + SetColumnOffset(column_index + 1, GetColumnOffset(column_index) + width); +} + +void ImGui::PushColumnClipRect(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (column_index < 0) + column_index = columns->Current; + + ImGuiOldColumnData* column = &columns->Columns[column_index]; + PushClipRect(column->ClipRect.Min, column->ClipRect.Max, false); +} + +// Get into the columns background draw command (which is generally the same draw command as before we called BeginColumns) +void ImGui::PushColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid SetCurrentChannel() + PushClipRect() + columns->HostBackupClipRect = window->ClipRect; + SetWindowClipRectBeforeSetChannel(window, columns->HostInitialClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, 0); +} + +void ImGui::PopColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + SetWindowClipRectBeforeSetChannel(window, columns->HostBackupClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); +} + +ImGuiOldColumns* ImGui::FindOrCreateColumns(ImGuiWindow* window, ImGuiID id) +{ + // We have few columns per window so for now we don't need bother much with turning this into a faster lookup. + for (int n = 0; n < window->ColumnsStorage.Size; n++) + if (window->ColumnsStorage[n].ID == id) + return &window->ColumnsStorage[n]; + + window->ColumnsStorage.push_back(ImGuiOldColumns()); + ImGuiOldColumns* columns = &window->ColumnsStorage.back(); + columns->ID = id; + return columns; +} + +ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count) +{ + ImGuiWindow* window = GetCurrentWindow(); + + // Differentiate column ID with an arbitrary prefix for cases where users name their columns set the same as another widget. + // In addition, when an identifier isn't explicitly provided we include the number of columns in the hash to make it uniquer. + PushID(0x11223347 + (str_id ? 0 : columns_count)); + ImGuiID id = window->GetID(str_id ? str_id : "columns"); + PopID(); + + return id; +} + +void ImGui::BeginColumns(const char* str_id, int columns_count, ImGuiOldColumnFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + IM_ASSERT(columns_count >= 1); + IM_ASSERT(window->DC.CurrentColumns == NULL); // Nested columns are currently not supported + + // Acquire storage for the columns set + ImGuiID id = GetColumnsID(str_id, columns_count); + ImGuiOldColumns* columns = FindOrCreateColumns(window, id); + IM_ASSERT(columns->ID == id); + columns->Current = 0; + columns->Count = columns_count; + columns->Flags = flags; + window->DC.CurrentColumns = columns; + + columns->HostCursorPosY = window->DC.CursorPos.y; + columns->HostCursorMaxPosX = window->DC.CursorMaxPos.x; + columns->HostInitialClipRect = window->ClipRect; + columns->HostBackupParentWorkRect = window->ParentWorkRect; + window->ParentWorkRect = window->WorkRect; + + // Set state for first column + // We aim so that the right-most column will have the same clipping width as other after being clipped by parent ClipRect + const float column_padding = g.Style.ItemSpacing.x; + const float half_clip_extend_x = ImFloor(ImMax(window->WindowPadding.x * 0.5f, window->WindowBorderSize)); + const float max_1 = window->WorkRect.Max.x + column_padding - ImMax(column_padding - window->WindowPadding.x, 0.0f); + const float max_2 = window->WorkRect.Max.x + half_clip_extend_x; + columns->OffMinX = window->DC.Indent.x - column_padding + ImMax(column_padding - window->WindowPadding.x, 0.0f); + columns->OffMaxX = ImMax(ImMin(max_1, max_2) - window->Pos.x, columns->OffMinX + 1.0f); + columns->LineMinY = columns->LineMaxY = window->DC.CursorPos.y; + + // Clear data if columns count changed + if (columns->Columns.Size != 0 && columns->Columns.Size != columns_count + 1) + columns->Columns.resize(0); + + // Initialize default widths + columns->IsFirstFrame = (columns->Columns.Size == 0); + if (columns->Columns.Size == 0) + { + columns->Columns.reserve(columns_count + 1); + for (int n = 0; n < columns_count + 1; n++) + { + ImGuiOldColumnData column; + column.OffsetNorm = n / (float)columns_count; + columns->Columns.push_back(column); + } + } + + for (int n = 0; n < columns_count; n++) + { + // Compute clipping rectangle + ImGuiOldColumnData* column = &columns->Columns[n]; + float clip_x1 = IM_ROUND(window->Pos.x + GetColumnOffset(n)); + float clip_x2 = IM_ROUND(window->Pos.x + GetColumnOffset(n + 1) - 1.0f); + column->ClipRect = ImRect(clip_x1, -FLT_MAX, clip_x2, +FLT_MAX); + column->ClipRect.ClipWithFull(window->ClipRect); + } + + if (columns->Count > 1) + { + columns->Splitter.Split(window->DrawList, 1 + columns->Count); + columns->Splitter.SetCurrentChannel(window->DrawList, 1); + PushColumnClipRect(0); + } + + // We don't generally store Indent.x inside ColumnsOffset because it may be manipulated by the user. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; +} + +void ImGui::NextColumn() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems || window->DC.CurrentColumns == NULL) + return; + + ImGuiContext& g = *GImGui; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + + if (columns->Count == 1) + { + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + IM_ASSERT(columns->Current == 0); + return; + } + + // Next column + if (++columns->Current == columns->Count) + columns->Current = 0; + + PopItemWidth(); + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + PushClipRect() + // (which would needlessly attempt to update commands in the wrong channel, then pop or overwrite them), + ImGuiOldColumnData* column = &columns->Columns[columns->Current]; + SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); + + const float column_padding = g.Style.ItemSpacing.x; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + if (columns->Current > 0) + { + // Columns 1+ ignore IndentX (by canceling it out) + // FIXME-COLUMNS: Unnecessary, could be locked? + window->DC.ColumnsOffset.x = GetColumnOffset(columns->Current) - window->DC.Indent.x + column_padding; + } + else + { + // New row/line: column 0 honor IndentX. + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.IsSameLine = false; + columns->LineMinY = columns->LineMaxY; + } + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->DC.CursorPos.y = columns->LineMinY; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = 0.0f; + + // FIXME-COLUMNS: Share code with BeginColumns() - move code on columns setup. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; +} + +void ImGui::EndColumns() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + PopItemWidth(); + if (columns->Count > 1) + { + PopClipRect(); + columns->Splitter.Merge(window->DrawList); + } + + const ImGuiOldColumnFlags flags = columns->Flags; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + window->DC.CursorPos.y = columns->LineMaxY; + if (!(flags & ImGuiOldColumnFlags_GrowParentContentsSize)) + window->DC.CursorMaxPos.x = columns->HostCursorMaxPosX; // Restore cursor max pos, as columns don't grow parent + + // Draw columns borders and handle resize + // The IsBeingResized flag ensure we preserve pre-resize columns width so back-and-forth are not lossy + bool is_being_resized = false; + if (!(flags & ImGuiOldColumnFlags_NoBorder) && !window->SkipItems) + { + // We clip Y boundaries CPU side because very long triangles are mishandled by some GPU drivers. + const float y1 = ImMax(columns->HostCursorPosY, window->ClipRect.Min.y); + const float y2 = ImMin(window->DC.CursorPos.y, window->ClipRect.Max.y); + int dragging_column = -1; + for (int n = 1; n < columns->Count; n++) + { + ImGuiOldColumnData* column = &columns->Columns[n]; + float x = window->Pos.x + GetColumnOffset(n); + const ImGuiID column_id = columns->ID + ImGuiID(n); + const float column_hit_hw = COLUMNS_HIT_RECT_HALF_WIDTH; + const ImRect column_hit_rect(ImVec2(x - column_hit_hw, y1), ImVec2(x + column_hit_hw, y2)); + if (!ItemAdd(column_hit_rect, column_id, NULL, ImGuiItemFlags_NoNav)) + continue; + + bool hovered = false, held = false; + if (!(flags & ImGuiOldColumnFlags_NoResize)) + { + ButtonBehavior(column_hit_rect, column_id, &hovered, &held); + if (hovered || held) + g.MouseCursor = ImGuiMouseCursor_ResizeEW; + if (held && !(column->Flags & ImGuiOldColumnFlags_NoResize)) + dragging_column = n; + } + + // Draw column + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : hovered ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + const float xi = IM_FLOOR(x); + window->DrawList->AddLine(ImVec2(xi, y1 + 1.0f), ImVec2(xi, y2), col); + } + + // Apply dragging after drawing the column lines, so our rendered lines are in sync with how items were displayed during the frame. + if (dragging_column != -1) + { + if (!columns->IsBeingResized) + for (int n = 0; n < columns->Count + 1; n++) + columns->Columns[n].OffsetNormBeforeResize = columns->Columns[n].OffsetNorm; + columns->IsBeingResized = is_being_resized = true; + float x = GetDraggedColumnOffset(columns, dragging_column); + SetColumnOffset(dragging_column, x); + } + } + columns->IsBeingResized = is_being_resized; + + window->WorkRect = window->ParentWorkRect; + window->ParentWorkRect = columns->HostBackupParentWorkRect; + window->DC.CurrentColumns = NULL; + window->DC.ColumnsOffset.x = 0.0f; + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); +} + +void ImGui::Columns(int columns_count, const char* id, bool border) +{ + ImGuiWindow* window = GetCurrentWindow(); + IM_ASSERT(columns_count >= 1); + + ImGuiOldColumnFlags flags = (border ? 0 : ImGuiOldColumnFlags_NoBorder); + //flags |= ImGuiOldColumnFlags_NoPreserveWidths; // NB: Legacy behavior + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns != NULL && columns->Count == columns_count && columns->Flags == flags) + return; + + if (columns != NULL) + EndColumns(); + + if (columns_count != 1) + BeginColumns(id, columns_count, flags); +} + +//------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_widgets.cpp b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_widgets.cpp new file mode 100644 index 000000000..5ecb182ef --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imgui_widgets.cpp @@ -0,0 +1,8416 @@ +// dear imgui, v1.89.1 +// (widgets code) + +/* + +Index of this file: + +// [SECTION] Forward Declarations +// [SECTION] Widgets: Text, etc. +// [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.) +// [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, etc.) +// [SECTION] Widgets: ComboBox +// [SECTION] Data Type and Data Formatting Helpers +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +// [SECTION] Widgets: InputText, InputTextMultiline +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +// [SECTION] Widgets: Selectable +// [SECTION] Widgets: ListBox +// [SECTION] Widgets: PlotLines, PlotHistogram +// [SECTION] Widgets: Value helpers +// [SECTION] Widgets: MenuItem, BeginMenu, EndMenu, etc. +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +// [SECTION] Widgets: Columns, BeginColumns, EndColumns, etc. + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif +#include "imgui_internal.h" + +// System includes +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +//------------------------------------------------------------------------- +// Warnings +//------------------------------------------------------------------------- + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') +#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#endif + +//------------------------------------------------------------------------- +// Data +//------------------------------------------------------------------------- + +// Widgets +static const float DRAGDROP_HOLD_TO_OPEN_TIMER = 0.70f; // Time for drag-hold to activate items accepting the ImGuiButtonFlags_PressedOnDragDropHold button behavior. +static const float DRAG_MOUSE_THRESHOLD_FACTOR = 0.50f; // Multiplier for the default value of io.MouseDragThreshold to make DragFloat/DragInt react faster to mouse drags. + +// Those MIN/MAX values are not define because we need to point to them +static const signed char IM_S8_MIN = -128; +static const signed char IM_S8_MAX = 127; +static const unsigned char IM_U8_MIN = 0; +static const unsigned char IM_U8_MAX = 0xFF; +static const signed short IM_S16_MIN = -32768; +static const signed short IM_S16_MAX = 32767; +static const unsigned short IM_U16_MIN = 0; +static const unsigned short IM_U16_MAX = 0xFFFF; +static const ImS32 IM_S32_MIN = INT_MIN; // (-2147483647 - 1), (0x80000000); +static const ImS32 IM_S32_MAX = INT_MAX; // (2147483647), (0x7FFFFFFF) +static const ImU32 IM_U32_MIN = 0; +static const ImU32 IM_U32_MAX = UINT_MAX; // (0xFFFFFFFF) +#ifdef LLONG_MIN +static const ImS64 IM_S64_MIN = LLONG_MIN; // (-9223372036854775807ll - 1ll); +static const ImS64 IM_S64_MAX = LLONG_MAX; // (9223372036854775807ll); +#else +static const ImS64 IM_S64_MIN = -9223372036854775807LL - 1; +static const ImS64 IM_S64_MAX = 9223372036854775807LL; +#endif +static const ImU64 IM_U64_MIN = 0; +#ifdef ULLONG_MAX +static const ImU64 IM_U64_MAX = ULLONG_MAX; // (0xFFFFFFFFFFFFFFFFull); +#else +static const ImU64 IM_U64_MAX = (2ULL * 9223372036854775807LL + 1); +#endif + +//------------------------------------------------------------------------- +// [SECTION] Forward Declarations +//------------------------------------------------------------------------- + +// For InputTextEx() +static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data, ImGuiInputSource input_source); +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end); +static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining = NULL, ImVec2* out_offset = NULL, bool stop_on_new_line = false); + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Text, etc. +//------------------------------------------------------------------------- +// - TextEx() [Internal] +// - TextUnformatted() +// - Text() +// - TextV() +// - TextColored() +// - TextColoredV() +// - TextDisabled() +// - TextDisabledV() +// - TextWrapped() +// - TextWrappedV() +// - LabelText() +// - LabelTextV() +// - BulletText() +// - BulletTextV() +//------------------------------------------------------------------------- + +void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ImGuiContext& g = *GImGui; + + // Accept null ranges + if (text == text_end) + text = text_end = ""; + + // Calculate length + const char* text_begin = text; + if (text_end == NULL) + text_end = text + strlen(text); // FIXME-OPT + + const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + const float wrap_pos_x = window->DC.TextWrapPos; + const bool wrap_enabled = (wrap_pos_x >= 0.0f); + if (text_end - text <= 2000 || wrap_enabled) + { + // Common case + const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; + const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + if (!ItemAdd(bb, 0)) + return; + + // Render (we don't hide text after ## in this end-user function) + RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); + } + else + { + // Long text! + // Perform manual coarse clipping to optimize for long multi-line text + // - From this point we will only compute the width of lines that are visible. Optimization only available when word-wrapping is disabled. + // - We also don't vertically center the text within the line full height, which is unlikely to matter because we are likely the biggest and only item on the line. + // - We use memchr(), pay attention that well optimized versions of those str/mem functions are much faster than a casually written loop. + const char* line = text; + const float line_height = GetTextLineHeight(); + ImVec2 text_size(0, 0); + + // Lines to skip (can't skip when logging text) + ImVec2 pos = text_pos; + if (!g.LogEnabled) + { + int lines_skippable = (int)((window->ClipRect.Min.y - text_pos.y) / line_height); + if (lines_skippable > 0) + { + int lines_skipped = 0; + while (line < text_end && lines_skipped < lines_skippable) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + } + + // Lines to render + if (line < text_end) + { + ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); + while (line < text_end) + { + if (IsClippedEx(line_rect, 0)) + break; + + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + RenderText(pos, line, line_end, false); + line = line_end + 1; + line_rect.Min.y += line_height; + line_rect.Max.y += line_height; + pos.y += line_height; + } + + // Count remaining lines + int lines_skipped = 0; + while (line < text_end) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + text_size.y = (pos - text_pos).y; + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + ItemAdd(bb, 0); + } +} + +void ImGui::TextUnformatted(const char* text, const char* text_end) +{ + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::Text(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextV(fmt, args); + va_end(args); +} + +void ImGui::TextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + // FIXME-OPT: Handle the %s shortcut? + const char* text, *text_end; + ImFormatStringToTempBufferV(&text, &text_end, fmt, args); + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::TextColored(const ImVec4& col, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextColoredV(col, fmt, args); + va_end(args); +} + +void ImGui::TextColoredV(const ImVec4& col, const char* fmt, va_list args) +{ + PushStyleColor(ImGuiCol_Text, col); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting + else + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextDisabled(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextDisabledV(fmt, args); + va_end(args); +} + +void ImGui::TextDisabledV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting + else + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextWrapped(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextWrappedV(fmt, args); + va_end(args); +} + +void ImGui::TextWrappedV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + bool need_backup = (g.CurrentWindow->DC.TextWrapPos < 0.0f); // Keep existing wrap position if one is already set + if (need_backup) + PushTextWrapPos(0.0f); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting + else + TextV(fmt, args); + if (need_backup) + PopTextWrapPos(); +} + +void ImGui::LabelText(const char* label, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + LabelTextV(label, fmt, args); + va_end(args); +} + +// Add a label+text combo aligned to other label+value widgets +void ImGui::LabelTextV(const char* label, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float w = CalcItemWidth(); + + const char* value_text_begin, *value_text_end; + ImFormatStringToTempBufferV(&value_text_begin, &value_text_end, fmt, args); + const ImVec2 value_size = CalcTextSize(value_text_begin, value_text_end, false); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const ImVec2 pos = window->DC.CursorPos; + const ImRect value_bb(pos, pos + ImVec2(w, value_size.y + style.FramePadding.y * 2)); + const ImRect total_bb(pos, pos + ImVec2(w + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), ImMax(value_size.y, label_size.y) + style.FramePadding.y * 2)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0)) + return; + + // Render + RenderTextClipped(value_bb.Min + style.FramePadding, value_bb.Max, value_text_begin, value_text_end, &value_size, ImVec2(0.0f, 0.0f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(value_bb.Max.x + style.ItemInnerSpacing.x, value_bb.Min.y + style.FramePadding.y), label); +} + +void ImGui::BulletText(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + BulletTextV(fmt, args); + va_end(args); +} + +// Text with a little bullet aligned to the typical tree node. +void ImGui::BulletTextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const char* text_begin, *text_end; + ImFormatStringToTempBufferV(&text_begin, &text_end, fmt, args); + const ImVec2 label_size = CalcTextSize(text_begin, text_end, false); + const ImVec2 total_size = ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x * 2) : 0.0f), label_size.y); // Empty text doesn't add padding + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(total_size, 0.0f); + const ImRect bb(pos, pos + total_size); + if (!ItemAdd(bb, 0)) + return; + + // Render + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, g.FontSize * 0.5f), text_col); + RenderText(bb.Min + ImVec2(g.FontSize + style.FramePadding.x * 2, 0.0f), text_begin, text_end, false); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Main +//------------------------------------------------------------------------- +// - ButtonBehavior() [Internal] +// - Button() +// - SmallButton() +// - InvisibleButton() +// - ArrowButton() +// - CloseButton() [Internal] +// - CollapseButton() [Internal] +// - GetWindowScrollbarID() [Internal] +// - GetWindowScrollbarRect() [Internal] +// - Scrollbar() [Internal] +// - ScrollbarEx() [Internal] +// - Image() +// - ImageButton() +// - Checkbox() +// - CheckboxFlagsT() [Internal] +// - CheckboxFlags() +// - RadioButton() +// - ProgressBar() +// - Bullet() +//------------------------------------------------------------------------- + +// The ButtonBehavior() function is key to many interactions and used by many/most widgets. +// Because we handle so many cases (keyboard/gamepad navigation, drag and drop) and many specific behavior (via ImGuiButtonFlags_), +// this code is a little complex. +// By far the most common path is interacting with the Mouse using the default ImGuiButtonFlags_PressedOnClickRelease button behavior. +// See the series of events below and the corresponding state reported by dear imgui: +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClickRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse is outside bb) - - - - - - +// Frame N+1 (mouse moves inside bb) - true - - - - +// Frame N+2 (mouse button is down) - true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+4 (mouse moves outside bb) - - true - - - +// Frame N+5 (mouse moves inside bb) - true true - - - +// Frame N+6 (mouse button is released) true true - - true - +// Frame N+7 (mouse button is released) - true - - - - +// Frame N+8 (mouse moves outside bb) - - - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) true true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) - true - - - true +// Frame N+3 (mouse button is down) - true - - - - +// Frame N+6 (mouse button is released) true true - - - - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnDoubleClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse button is down) - true - - - true +// Frame N+1 (mouse button is down) - true - - - - +// Frame N+2 (mouse button is released) - true - - - - +// Frame N+3 (mouse button is released) - true - - - - +// Frame N+4 (mouse button is down) true true true true - true +// Frame N+5 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// Note that some combinations are supported, +// - PressedOnDragDropHold can generally be associated with any flag. +// - PressedOnDoubleClick can be associated by PressedOnClickRelease/PressedOnRelease, in which case the second release event won't be reported. +//------------------------------------------------------------------------------------------------------------------------------------------------ +// The behavior of the return-value changes when ImGuiButtonFlags_Repeat is set: +// Repeat+ Repeat+ Repeat+ Repeat+ +// PressedOnClickRelease PressedOnClick PressedOnRelease PressedOnDoubleClick +//------------------------------------------------------------------------------------------------------------------------------------------------- +// Frame N+0 (mouse button is down) - true - true +// ... - - - - +// Frame N + RepeatDelay true true - true +// ... - - - - +// Frame N + RepeatDelay + RepeatRate*N true true - true +//------------------------------------------------------------------------------------------------------------------------------------------------- + +bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + // Default only reacts to left mouse button + if ((flags & ImGuiButtonFlags_MouseButtonMask_) == 0) + flags |= ImGuiButtonFlags_MouseButtonDefault_; + + // Default behavior requires click + release inside bounding box + if ((flags & ImGuiButtonFlags_PressedOnMask_) == 0) + flags |= ImGuiButtonFlags_PressedOnDefault_; + + ImGuiWindow* backup_hovered_window = g.HoveredWindow; + const bool flatten_hovered_children = (flags & ImGuiButtonFlags_FlattenChildren) && g.HoveredWindow && g.HoveredWindow->RootWindow == window; + if (flatten_hovered_children) + g.HoveredWindow = window; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (id != 0 && g.LastItemData.ID != id) + IMGUI_TEST_ENGINE_ITEM_ADD(bb, id); +#endif + + bool pressed = false; + bool hovered = ItemHoverable(bb, id); + + // Drag source doesn't report as hovered + if (hovered && g.DragDropActive && g.DragDropPayload.SourceId == id && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoDisableHover)) + hovered = false; + + // Special mode for Drag and Drop where holding button pressed for a long time while dragging another item triggers the button + if (g.DragDropActive && (flags & ImGuiButtonFlags_PressedOnDragDropHold) && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoHoldToOpenOthers)) + if (IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + { + hovered = true; + SetHoveredID(id); + if (g.HoveredIdTimer - g.IO.DeltaTime <= DRAGDROP_HOLD_TO_OPEN_TIMER && g.HoveredIdTimer >= DRAGDROP_HOLD_TO_OPEN_TIMER) + { + pressed = true; + g.DragDropHoldJustPressedId = id; + FocusWindow(window); + } + } + + if (flatten_hovered_children) + g.HoveredWindow = backup_hovered_window; + + // AllowOverlap mode (rarely used) requires previous frame HoveredId to be null or to match. This allows using patterns where a later submitted widget overlaps a previous one. + if (hovered && (flags & ImGuiButtonFlags_AllowItemOverlap) && (g.HoveredIdPreviousFrame != id && g.HoveredIdPreviousFrame != 0)) + hovered = false; + + // Mouse handling + const ImGuiID test_owner_id = (flags & ImGuiButtonFlags_NoTestKeyOwner) ? ImGuiKeyOwner_Any : id; + if (hovered) + { + if (!(flags & ImGuiButtonFlags_NoKeyModifiers) || (!g.IO.KeyCtrl && !g.IO.KeyShift && !g.IO.KeyAlt)) + { + // Poll buttons + int mouse_button_clicked = -1; + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && IsMouseClicked(0, test_owner_id)) { mouse_button_clicked = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && IsMouseClicked(1, test_owner_id)) { mouse_button_clicked = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && IsMouseClicked(2, test_owner_id)) { mouse_button_clicked = 2; } + if (mouse_button_clicked != -1 && g.ActiveId != id) + { + if (!(flags & ImGuiButtonFlags_NoSetKeyOwner)) + SetKeyOwner(MouseButtonToKey(mouse_button_clicked), id); + if (flags & (ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere)) + { + SetActiveID(id, window); + g.ActiveIdMouseButton = mouse_button_clicked; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + FocusWindow(window); + } + if ((flags & ImGuiButtonFlags_PressedOnClick) || ((flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseClickedCount[mouse_button_clicked] == 2)) + { + pressed = true; + if (flags & ImGuiButtonFlags_NoHoldingActiveId) + ClearActiveID(); + else + SetActiveID(id, window); // Hold on ID + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + g.ActiveIdMouseButton = mouse_button_clicked; + FocusWindow(window); + } + } + if (flags & ImGuiButtonFlags_PressedOnRelease) + { + int mouse_button_released = -1; + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && IsMouseReleased(0, test_owner_id)) { mouse_button_released = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && IsMouseReleased(1, test_owner_id)) { mouse_button_released = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && IsMouseReleased(2, test_owner_id)) { mouse_button_released = 2; } + if (mouse_button_released != -1) + { + const bool has_repeated_at_least_once = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; // Repeat mode trumps on release behavior + if (!has_repeated_at_least_once) + pressed = true; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + ClearActiveID(); + } + } + + // 'Repeat' mode acts when held regardless of _PressedOn flags (see table above). + // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. + if (g.ActiveId == id && (flags & ImGuiButtonFlags_Repeat)) + if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, test_owner_id, ImGuiInputFlags_Repeat)) + pressed = true; + } + + if (pressed) + g.NavDisableHighlight = true; + } + + // Gamepad/Keyboard navigation + // We report navigated item as hovered but we don't set g.HoveredId to not interfere with mouse. + if (g.NavId == id && !g.NavDisableHighlight && g.NavDisableMouseHover && (g.ActiveId == 0 || g.ActiveId == id || g.ActiveId == window->MoveId)) + if (!(flags & ImGuiButtonFlags_NoHoveredOnFocus)) + hovered = true; + if (g.NavActivateDownId == id) + { + bool nav_activated_by_code = (g.NavActivateId == id); + bool nav_activated_by_inputs = (g.NavActivatePressedId == id); + if (!nav_activated_by_inputs && (flags & ImGuiButtonFlags_Repeat)) + { + // Avoid pressing both keys from triggering double amount of repeat events + const ImGuiKeyData* key1 = GetKeyData(ImGuiKey_Space); + const ImGuiKeyData* key2 = GetKeyData(ImGuiKey_NavGamepadActivate); + const float t1 = ImMax(key1->DownDuration, key2->DownDuration); + nav_activated_by_inputs = CalcTypematicRepeatAmount(t1 - g.IO.DeltaTime, t1, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; + } + if (nav_activated_by_code || nav_activated_by_inputs) + { + // Set active id so it can be queried by user via IsItemActive(), equivalent of holding the mouse button. + pressed = true; + SetActiveID(id, window); + g.ActiveIdSource = ImGuiInputSource_Nav; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + } + } + + // Process while held + bool held = false; + if (g.ActiveId == id) + { + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (g.ActiveIdIsJustActivated) + g.ActiveIdClickOffset = g.IO.MousePos - bb.Min; + + const int mouse_button = g.ActiveIdMouseButton; + if (IsMouseDown(mouse_button, test_owner_id)) + { + held = true; + } + else + { + bool release_in = hovered && (flags & ImGuiButtonFlags_PressedOnClickRelease) != 0; + bool release_anywhere = (flags & ImGuiButtonFlags_PressedOnClickReleaseAnywhere) != 0; + if ((release_in || release_anywhere) && !g.DragDropActive) + { + // Report as pressed when releasing the mouse (this is the most common path) + bool is_double_click_release = (flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseReleased[mouse_button] && g.IO.MouseClickedLastCount[mouse_button] == 2; + bool is_repeating_already = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button] >= g.IO.KeyRepeatDelay; // Repeat mode trumps + bool is_button_avail_or_owned = TestKeyOwner(MouseButtonToKey(mouse_button), test_owner_id); + if (!is_double_click_release && !is_repeating_already && is_button_avail_or_owned) + pressed = true; + } + ClearActiveID(); + } + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + g.NavDisableHighlight = true; + } + else if (g.ActiveIdSource == ImGuiInputSource_Nav) + { + // When activated using Nav, we hold on the ActiveID until activation button is released + if (g.NavActivateDownId != id) + ClearActiveID(); + } + if (pressed) + g.ActiveIdHasBeenPressedBefore = true; + } + + if (out_hovered) *out_hovered = hovered; + if (out_held) *out_held = held; + + return pressed; +} + +bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + ImVec2 pos = window->DC.CursorPos; + if ((flags & ImGuiButtonFlags_AlignTextBaseLine) && style.FramePadding.y < window->DC.CurrLineTextBaseOffset) // Try to vertically align buttons that are smaller/have no padding so that text baseline matches (bit hacky, since it shouldn't be a flag) + pos.y += window->DC.CurrLineTextBaseOffset - style.FramePadding.y; + ImVec2 size = CalcItemSize(size_arg, label_size.x + style.FramePadding.x * 2.0f, label_size.y + style.FramePadding.y * 2.0f); + + const ImRect bb(pos, pos + size); + ItemSize(size, style.FramePadding.y); + if (!ItemAdd(bb, id)) + return false; + + if (g.LastItemData.InFlags & ImGuiItemFlags_ButtonRepeat) + flags |= ImGuiButtonFlags_Repeat; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding); + + if (g.LogEnabled) + LogSetNextTextDecoration("[", "]"); + RenderTextClipped(bb.Min + style.FramePadding, bb.Max - style.FramePadding, label, NULL, &label_size, style.ButtonTextAlign, &bb); + + // Automatically close popups + //if (pressed && !(flags & ImGuiButtonFlags_DontClosePopups) && (window->Flags & ImGuiWindowFlags_Popup)) + // CloseCurrentPopup(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::Button(const char* label, const ImVec2& size_arg) +{ + return ButtonEx(label, size_arg, ImGuiButtonFlags_None); +} + +// Small buttons fits within text without additional vertical spacing. +bool ImGui::SmallButton(const char* label) +{ + ImGuiContext& g = *GImGui; + float backup_padding_y = g.Style.FramePadding.y; + g.Style.FramePadding.y = 0.0f; + bool pressed = ButtonEx(label, ImVec2(0, 0), ImGuiButtonFlags_AlignTextBaseLine); + g.Style.FramePadding.y = backup_padding_y; + return pressed; +} + +// Tip: use ImGui::PushID()/PopID() to push indices or pointers in the ID stack. +// Then you can keep 'str_id' empty or the same for all your buttons (instead of creating a string based on a non-string id) +bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + // Cannot use zero-size for InvisibleButton(). Unlike Button() there is not way to fallback using the label size. + IM_ASSERT(size_arg.x != 0.0f && size_arg.y != 0.0f); + + const ImGuiID id = window->GetID(str_id); + ImVec2 size = CalcItemSize(size_arg, 0.0f, 0.0f); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(size); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImGuiID id = window->GetID(str_id); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + const float default_size = GetFrameHeight(); + ItemSize(size, (size.y >= default_size) ? g.Style.FramePadding.y : -1.0f); + if (!ItemAdd(bb, id)) + return false; + + if (g.LastItemData.InFlags & ImGuiItemFlags_ButtonRepeat) + flags |= ImGuiButtonFlags_Repeat; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding); + RenderArrow(window->DrawList, bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.FontSize) * 0.5f)), text_col, dir); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir) +{ + float sz = GetFrameHeight(); + return ArrowButtonEx(str_id, dir, ImVec2(sz, sz), ImGuiButtonFlags_None); +} + +// Button to close a window +bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Tweak 1: Shrink hit-testing area if button covers an abnormally large proportion of the visible region. That's in order to facilitate moving the window away. (#3825) + // This may better be applied as a general hit-rect reduction mechanism for all widgets to ensure the area to move window is always accessible? + const ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f); + ImRect bb_interact = bb; + const float area_to_visible_ratio = window->OuterRectClipped.GetArea() / bb.GetArea(); + if (area_to_visible_ratio < 1.5f) + bb_interact.Expand(ImFloor(bb_interact.GetSize() * -0.25f)); + + // Tweak 2: We intentionally allow interaction when clipped so that a mechanical Alt,Right,Activate sequence can always close a window. + // (this isn't the regular behavior of buttons, but it doesn't affect the user much because navigation tends to keep items visible). + bool is_clipped = !ItemAdd(bb_interact, id); + + bool hovered, held; + bool pressed = ButtonBehavior(bb_interact, id, &hovered, &held); + if (is_clipped) + return pressed; + + // Render + // FIXME: Clarify this mess + ImU32 col = GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered); + ImVec2 center = bb.GetCenter(); + if (hovered) + window->DrawList->AddCircleFilled(center, ImMax(2.0f, g.FontSize * 0.5f + 1.0f), col, 12); + + float cross_extent = g.FontSize * 0.5f * 0.7071f - 1.0f; + ImU32 cross_col = GetColorU32(ImGuiCol_Text); + center -= ImVec2(0.5f, 0.5f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, +cross_extent), center + ImVec2(-cross_extent, -cross_extent), cross_col, 1.0f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, -cross_extent), center + ImVec2(-cross_extent, +cross_extent), cross_col, 1.0f); + + return pressed; +} + +bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f); + ItemAdd(bb, id); + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_None); + + // Render + ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + if (hovered || held) + window->DrawList->AddCircleFilled(bb.GetCenter()/*+ ImVec2(0.0f, -0.5f)*/, g.FontSize * 0.5f + 1.0f, bg_col, 12); + RenderArrow(window->DrawList, bb.Min + g.Style.FramePadding, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f); + + // Switch to moving the window after mouse is moved beyond the initial drag threshold + if (IsItemActive() && IsMouseDragging(0)) + StartMouseMovingWindow(window); + + return pressed; +} + +ImGuiID ImGui::GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) +{ + return window->GetID(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); +} + +// Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is set. +ImRect ImGui::GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis) +{ + const ImRect outer_rect = window->Rect(); + const ImRect inner_rect = window->InnerRect; + const float border_size = window->WindowBorderSize; + const float scrollbar_size = window->ScrollbarSizes[axis ^ 1]; // (ScrollbarSizes.x = width of Y scrollbar; ScrollbarSizes.y = height of X scrollbar) + IM_ASSERT(scrollbar_size > 0.0f); + if (axis == ImGuiAxis_X) + return ImRect(inner_rect.Min.x, ImMax(outer_rect.Min.y, outer_rect.Max.y - border_size - scrollbar_size), inner_rect.Max.x, outer_rect.Max.y); + else + return ImRect(ImMax(outer_rect.Min.x, outer_rect.Max.x - border_size - scrollbar_size), inner_rect.Min.y, outer_rect.Max.x, inner_rect.Max.y); +} + +void ImGui::Scrollbar(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = GetWindowScrollbarID(window, axis); + + // Calculate scrollbar bounding box + ImRect bb = GetWindowScrollbarRect(window, axis); + ImDrawFlags rounding_corners = ImDrawFlags_RoundCornersNone; + if (axis == ImGuiAxis_X) + { + rounding_corners |= ImDrawFlags_RoundCornersBottomLeft; + if (!window->ScrollbarY) + rounding_corners |= ImDrawFlags_RoundCornersBottomRight; + } + else + { + if ((window->Flags & ImGuiWindowFlags_NoTitleBar) && !(window->Flags & ImGuiWindowFlags_MenuBar)) + rounding_corners |= ImDrawFlags_RoundCornersTopRight; + if (!window->ScrollbarX) + rounding_corners |= ImDrawFlags_RoundCornersBottomRight; + } + float size_avail = window->InnerRect.Max[axis] - window->InnerRect.Min[axis]; + float size_contents = window->ContentSize[axis] + window->WindowPadding[axis] * 2.0f; + ImS64 scroll = (ImS64)window->Scroll[axis]; + ScrollbarEx(bb, id, axis, &scroll, (ImS64)size_avail, (ImS64)size_contents, rounding_corners); + window->Scroll[axis] = (float)scroll; +} + +// Vertical/Horizontal scrollbar +// The entire piece of code below is rather confusing because: +// - We handle absolute seeking (when first clicking outside the grab) and relative manipulation (afterward or when clicking inside the grab) +// - We store values as normalized ratio and in a form that allows the window content to change while we are holding on a scrollbar +// - We handle both horizontal and vertical scrollbars, which makes the terminology not ideal. +// Still, the code should probably be made simpler.. +bool ImGui::ScrollbarEx(const ImRect& bb_frame, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 size_avail_v, ImS64 size_contents_v, ImDrawFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const float bb_frame_width = bb_frame.GetWidth(); + const float bb_frame_height = bb_frame.GetHeight(); + if (bb_frame_width <= 0.0f || bb_frame_height <= 0.0f) + return false; + + // When we are too small, start hiding and disabling the grab (this reduce visual noise on very small window and facilitate using the window resize grab) + float alpha = 1.0f; + if ((axis == ImGuiAxis_Y) && bb_frame_height < g.FontSize + g.Style.FramePadding.y * 2.0f) + alpha = ImSaturate((bb_frame_height - g.FontSize) / (g.Style.FramePadding.y * 2.0f)); + if (alpha <= 0.0f) + return false; + + const ImGuiStyle& style = g.Style; + const bool allow_interaction = (alpha >= 1.0f); + + ImRect bb = bb_frame; + bb.Expand(ImVec2(-ImClamp(IM_FLOOR((bb_frame_width - 2.0f) * 0.5f), 0.0f, 3.0f), -ImClamp(IM_FLOOR((bb_frame_height - 2.0f) * 0.5f), 0.0f, 3.0f))); + + // V denote the main, longer axis of the scrollbar (= height for a vertical scrollbar) + const float scrollbar_size_v = (axis == ImGuiAxis_X) ? bb.GetWidth() : bb.GetHeight(); + + // Calculate the height of our grabbable box. It generally represent the amount visible (vs the total scrollable amount) + // But we maintain a minimum size in pixel to allow for the user to still aim inside. + IM_ASSERT(ImMax(size_contents_v, size_avail_v) > 0.0f); // Adding this assert to check if the ImMax(XXX,1.0f) is still needed. PLEASE CONTACT ME if this triggers. + const ImS64 win_size_v = ImMax(ImMax(size_contents_v, size_avail_v), (ImS64)1); + const float grab_h_pixels = ImClamp(scrollbar_size_v * ((float)size_avail_v / (float)win_size_v), style.GrabMinSize, scrollbar_size_v); + const float grab_h_norm = grab_h_pixels / scrollbar_size_v; + + // Handle input right away. None of the code of Begin() is relying on scrolling position before calling Scrollbar(). + bool held = false; + bool hovered = false; + ItemAdd(bb_frame, id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus); + + const ImS64 scroll_max = ImMax((ImS64)1, size_contents_v - size_avail_v); + float scroll_ratio = ImSaturate((float)*p_scroll_v / (float)scroll_max); + float grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; // Grab position in normalized space + if (held && allow_interaction && grab_h_norm < 1.0f) + { + const float scrollbar_pos_v = bb.Min[axis]; + const float mouse_pos_v = g.IO.MousePos[axis]; + + // Click position in scrollbar normalized space (0.0f->1.0f) + const float clicked_v_norm = ImSaturate((mouse_pos_v - scrollbar_pos_v) / scrollbar_size_v); + SetHoveredID(id); + + bool seek_absolute = false; + if (g.ActiveIdIsJustActivated) + { + // On initial click calculate the distance between mouse and the center of the grab + seek_absolute = (clicked_v_norm < grab_v_norm || clicked_v_norm > grab_v_norm + grab_h_norm); + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = 0.0f; + else + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Apply scroll (p_scroll_v will generally point on one member of window->Scroll) + // It is ok to modify Scroll here because we are being called in Begin() after the calculation of ContentSize and before setting up our starting position + const float scroll_v_norm = ImSaturate((clicked_v_norm - g.ScrollbarClickDeltaToGrabCenter - grab_h_norm * 0.5f) / (1.0f - grab_h_norm)); + *p_scroll_v = (ImS64)(scroll_v_norm * scroll_max); + + // Update values for rendering + scroll_ratio = ImSaturate((float)*p_scroll_v / (float)scroll_max); + grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; + + // Update distance to grab now that we have seeked and saturated + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Render + const ImU32 bg_col = GetColorU32(ImGuiCol_ScrollbarBg); + const ImU32 grab_col = GetColorU32(held ? ImGuiCol_ScrollbarGrabActive : hovered ? ImGuiCol_ScrollbarGrabHovered : ImGuiCol_ScrollbarGrab, alpha); + window->DrawList->AddRectFilled(bb_frame.Min, bb_frame.Max, bg_col, window->WindowRounding, flags); + ImRect grab_rect; + if (axis == ImGuiAxis_X) + grab_rect = ImRect(ImLerp(bb.Min.x, bb.Max.x, grab_v_norm), bb.Min.y, ImLerp(bb.Min.x, bb.Max.x, grab_v_norm) + grab_h_pixels, bb.Max.y); + else + grab_rect = ImRect(bb.Min.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm), bb.Max.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm) + grab_h_pixels); + window->DrawList->AddRectFilled(grab_rect.Min, grab_rect.Max, grab_col, style.ScrollbarRounding); + + return held; +} + +void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + if (border_col.w > 0.0f) + bb.Max += ImVec2(2, 2); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + return; + + if (border_col.w > 0.0f) + { + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(border_col), 0.0f); + window->DrawList->AddImage(user_texture_id, bb.Min + ImVec2(1, 1), bb.Max - ImVec2(1, 1), uv0, uv1, GetColorU32(tint_col)); + } + else + { + window->DrawList->AddImage(user_texture_id, bb.Min, bb.Max, uv0, uv1, GetColorU32(tint_col)); + } +} + +// ImageButton() is flawed as 'id' is always derived from 'texture_id' (see #2464 #1390) +// We provide this internal helper to write your own variant while we figure out how to redesign the public ImageButton() API. +bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImVec2 padding = g.Style.FramePadding; + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2.0f); + ItemSize(bb); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, ImClamp((float)ImMin(padding.x, padding.y), 0.0f, g.Style.FrameRounding)); + if (bg_col.w > 0.0f) + window->DrawList->AddRectFilled(bb.Min + padding, bb.Max - padding, GetColorU32(bg_col)); + window->DrawList->AddImage(texture_id, bb.Min + padding, bb.Max - padding, uv0, uv1, GetColorU32(tint_col)); + + return pressed; +} + +bool ImGui::ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + return ImageButtonEx(window->GetID(str_id), user_texture_id, size, uv0, uv1, bg_col, tint_col); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy API obsoleted in 1.89. Two differences with new ImageButton() +// - new ImageButton() requires an explicit 'const char* str_id' Old ImageButton() used opaque imTextureId (created issue with: multiple buttons with same image, transient texture id values, opaque computation of ID) +// - new ImageButton() always use style.FramePadding Old ImageButton() had an override argument. +// If you need to change padding with new ImageButton() you can use PushStyleVar(ImGuiStyleVar_FramePadding, value), consistent with other Button functions. +bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + // Default to using texture ID as ID. User can still push string/integer prefixes. + PushID((void*)(intptr_t)user_texture_id); + const ImGuiID id = window->GetID("#image"); + PopID(); + + if (frame_padding >= 0) + PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2((float)frame_padding, (float)frame_padding)); + bool ret = ImageButtonEx(id, user_texture_id, size, uv0, uv1, bg_col, tint_col); + if (frame_padding >= 0) + PopStyleVar(); + return ret; +} +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +bool ImGui::Checkbox(const char* label, bool* v) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + { + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); + return false; + } + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + { + *v = !(*v); + MarkItemEdited(id); + } + + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + RenderNavHighlight(total_bb, id); + RenderFrame(check_bb.Min, check_bb.Max, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), true, style.FrameRounding); + ImU32 check_col = GetColorU32(ImGuiCol_CheckMark); + bool mixed_value = (g.LastItemData.InFlags & ImGuiItemFlags_MixedValue) != 0; + if (mixed_value) + { + // Undocumented tristate/mixed/indeterminate checkbox (#2644) + // This may seem awkwardly designed because the aim is to make ImGuiItemFlags_MixedValue supported by all widgets (not just checkbox) + ImVec2 pad(ImMax(1.0f, IM_FLOOR(square_sz / 3.6f)), ImMax(1.0f, IM_FLOOR(square_sz / 3.6f))); + window->DrawList->AddRectFilled(check_bb.Min + pad, check_bb.Max - pad, check_col, style.FrameRounding); + } + else if (*v) + { + const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); + RenderCheckMark(window->DrawList, check_bb.Min + ImVec2(pad, pad), check_col, square_sz - pad * 2.0f); + } + + ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); + if (g.LogEnabled) + LogRenderedText(&label_pos, mixed_value ? "[~]" : *v ? "[x]" : "[ ]"); + if (label_size.x > 0.0f) + RenderText(label_pos, label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); + return pressed; +} + +template +bool ImGui::CheckboxFlagsT(const char* label, T* flags, T flags_value) +{ + bool all_on = (*flags & flags_value) == flags_value; + bool any_on = (*flags & flags_value) != 0; + bool pressed; + if (!all_on && any_on) + { + ImGuiContext& g = *GImGui; + ImGuiItemFlags backup_item_flags = g.CurrentItemFlags; + g.CurrentItemFlags |= ImGuiItemFlags_MixedValue; + pressed = Checkbox(label, &all_on); + g.CurrentItemFlags = backup_item_flags; + } + else + { + pressed = Checkbox(label, &all_on); + + } + if (pressed) + { + if (all_on) + *flags |= flags_value; + else + *flags &= ~flags_value; + } + return pressed; +} + +bool ImGui::CheckboxFlags(const char* label, int* flags, int flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::RadioButton(const char* label, bool active) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + return false; + + ImVec2 center = check_bb.GetCenter(); + center.x = IM_ROUND(center.x); + center.y = IM_ROUND(center.y); + const float radius = (square_sz - 1.0f) * 0.5f; + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + MarkItemEdited(id); + + RenderNavHighlight(total_bb, id); + window->DrawList->AddCircleFilled(center, radius, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), 16); + if (active) + { + const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); + window->DrawList->AddCircleFilled(center, radius - pad, GetColorU32(ImGuiCol_CheckMark), 16); + } + + if (style.FrameBorderSize > 0.0f) + { + window->DrawList->AddCircle(center + ImVec2(1, 1), radius, GetColorU32(ImGuiCol_BorderShadow), 16, style.FrameBorderSize); + window->DrawList->AddCircle(center, radius, GetColorU32(ImGuiCol_Border), 16, style.FrameBorderSize); + } + + ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); + if (g.LogEnabled) + LogRenderedText(&label_pos, active ? "(x)" : "( )"); + if (label_size.x > 0.0f) + RenderText(label_pos, label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; +} + +// FIXME: This would work nicely if it was a public template, e.g. 'template RadioButton(const char* label, T* v, T v_button)', but I'm not sure how we would expose it.. +bool ImGui::RadioButton(const char* label, int* v, int v_button) +{ + const bool pressed = RadioButton(label, *v == v_button); + if (pressed) + *v = v_button; + return pressed; +} + +// size_arg (for each axis) < 0.0f: align to end, 0.0f: auto, > 0.0f: specified size +void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + ImVec2 pos = window->DC.CursorPos; + ImVec2 size = CalcItemSize(size_arg, CalcItemWidth(), g.FontSize + style.FramePadding.y * 2.0f); + ImRect bb(pos, pos + size); + ItemSize(size, style.FramePadding.y); + if (!ItemAdd(bb, 0)) + return; + + // Render + fraction = ImSaturate(fraction); + RenderFrame(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + bb.Expand(ImVec2(-style.FrameBorderSize, -style.FrameBorderSize)); + const ImVec2 fill_br = ImVec2(ImLerp(bb.Min.x, bb.Max.x, fraction), bb.Max.y); + RenderRectFilledRangeH(window->DrawList, bb, GetColorU32(ImGuiCol_PlotHistogram), 0.0f, fraction, style.FrameRounding); + + // Default displaying the fraction as percentage string, but user can override it + char overlay_buf[32]; + if (!overlay) + { + ImFormatString(overlay_buf, IM_ARRAYSIZE(overlay_buf), "%.0f%%", fraction * 100 + 0.01f); + overlay = overlay_buf; + } + + ImVec2 overlay_size = CalcTextSize(overlay, NULL); + if (overlay_size.x > 0.0f) + RenderTextClipped(ImVec2(ImClamp(fill_br.x + style.ItemSpacing.x, bb.Min.x, bb.Max.x - overlay_size.x - style.ItemInnerSpacing.x), bb.Min.y), bb.Max, overlay, NULL, &overlay_size, ImVec2(0.0f, 0.5f), &bb); +} + +void ImGui::Bullet() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), g.FontSize); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + { + SameLine(0, style.FramePadding.x * 2); + return; + } + + // Render and stay on same line + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, line_height * 0.5f), text_col); + SameLine(0, style.FramePadding.x * 2.0f); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Low-level Layout helpers +//------------------------------------------------------------------------- +// - Spacing() +// - Dummy() +// - NewLine() +// - AlignTextToFramePadding() +// - SeparatorEx() [Internal] +// - Separator() +// - SplitterBehavior() [Internal] +// - ShrinkWidths() [Internal] +//------------------------------------------------------------------------- + +void ImGui::Spacing() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ItemSize(ImVec2(0, 0)); +} + +void ImGui::Dummy(const ImVec2& size) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(size); + ItemAdd(bb, 0); +} + +void ImGui::NewLine() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiLayoutType backup_layout_type = window->DC.LayoutType; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; + if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height. + ItemSize(ImVec2(0, 0)); + else + ItemSize(ImVec2(0.0f, g.FontSize)); + window->DC.LayoutType = backup_layout_type; +} + +void ImGui::AlignTextToFramePadding() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2); + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y); +} + +// Horizontal/vertical separating line +void ImGui::SeparatorEx(ImGuiSeparatorFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + IM_ASSERT(ImIsPowerOfTwo(flags & (ImGuiSeparatorFlags_Horizontal | ImGuiSeparatorFlags_Vertical))); // Check that only 1 option is selected + + float thickness_draw = 1.0f; + float thickness_layout = 0.0f; + if (flags & ImGuiSeparatorFlags_Vertical) + { + // Vertical separator, for menu bars (use current line height). Not exposed because it is misleading and it doesn't have an effect on regular layout. + float y1 = window->DC.CursorPos.y; + float y2 = window->DC.CursorPos.y + window->DC.CurrLineSize.y; + const ImRect bb(ImVec2(window->DC.CursorPos.x, y1), ImVec2(window->DC.CursorPos.x + thickness_draw, y2)); + ItemSize(ImVec2(thickness_layout, 0.0f)); + if (!ItemAdd(bb, 0)) + return; + + // Draw + window->DrawList->AddLine(ImVec2(bb.Min.x, bb.Min.y), ImVec2(bb.Min.x, bb.Max.y), GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogText(" |"); + } + else if (flags & ImGuiSeparatorFlags_Horizontal) + { + // Horizontal Separator + float x1 = window->Pos.x; + float x2 = window->Pos.x + window->Size.x; + + // FIXME-WORKRECT: old hack (#205) until we decide of consistent behavior with WorkRect/Indent and Separator + if (g.GroupStack.Size > 0 && g.GroupStack.back().WindowID == window->ID) + x1 += window->DC.Indent.x; + + // FIXME-WORKRECT: In theory we should simply be using WorkRect.Min.x/Max.x everywhere but it isn't aesthetically what we want, + // need to introduce a variant of WorkRect for that purpose. (#4787) + if (ImGuiTable* table = g.CurrentTable) + { + x1 = table->Columns[table->CurrentColumn].MinX; + x2 = table->Columns[table->CurrentColumn].MaxX; + } + + ImGuiOldColumns* columns = (flags & ImGuiSeparatorFlags_SpanAllColumns) ? window->DC.CurrentColumns : NULL; + if (columns) + PushColumnsBackground(); + + // We don't provide our width to the layout so that it doesn't get feed back into AutoFit + // FIXME: This prevents ->CursorMaxPos based bounding box evaluation from working (e.g. TableEndCell) + const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y + thickness_draw)); + ItemSize(ImVec2(0.0f, thickness_layout)); + const bool item_visible = ItemAdd(bb, 0); + if (item_visible) + { + // Draw + window->DrawList->AddLine(bb.Min, ImVec2(bb.Max.x, bb.Min.y), GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogRenderedText(&bb.Min, "--------------------------------\n"); + + } + if (columns) + { + PopColumnsBackground(); + columns->LineMinY = window->DC.CursorPos.y; + } + } +} + +void ImGui::Separator() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // Those flags should eventually be overridable by the user + ImGuiSeparatorFlags flags = (window->DC.LayoutType == ImGuiLayoutType_Horizontal) ? ImGuiSeparatorFlags_Vertical : ImGuiSeparatorFlags_Horizontal; + flags |= ImGuiSeparatorFlags_SpanAllColumns; // NB: this only applies to legacy Columns() api as they relied on Separator() a lot. + SeparatorEx(flags); +} + +// Using 'hover_visibility_delay' allows us to hide the highlight and mouse cursor for a short time, which can be convenient to reduce visual noise. +bool ImGui::SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!ItemAdd(bb, id, NULL, ImGuiItemFlags_NoNav)) + return false; + + bool hovered, held; + ImRect bb_interact = bb; + bb_interact.Expand(axis == ImGuiAxis_Y ? ImVec2(0.0f, hover_extend) : ImVec2(hover_extend, 0.0f)); + ButtonBehavior(bb_interact, id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap); + if (hovered) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; // for IsItemHovered(), because bb_interact is larger than bb + if (g.ActiveId != id) + SetItemAllowOverlap(); + + if (held || (hovered && g.HoveredIdPreviousFrame == id && g.HoveredIdTimer >= hover_visibility_delay)) + SetMouseCursor(axis == ImGuiAxis_Y ? ImGuiMouseCursor_ResizeNS : ImGuiMouseCursor_ResizeEW); + + ImRect bb_render = bb; + if (held) + { + ImVec2 mouse_delta_2d = g.IO.MousePos - g.ActiveIdClickOffset - bb_interact.Min; + float mouse_delta = (axis == ImGuiAxis_Y) ? mouse_delta_2d.y : mouse_delta_2d.x; + + // Minimum pane size + float size_1_maximum_delta = ImMax(0.0f, *size1 - min_size1); + float size_2_maximum_delta = ImMax(0.0f, *size2 - min_size2); + if (mouse_delta < -size_1_maximum_delta) + mouse_delta = -size_1_maximum_delta; + if (mouse_delta > size_2_maximum_delta) + mouse_delta = size_2_maximum_delta; + + // Apply resize + if (mouse_delta != 0.0f) + { + if (mouse_delta < 0.0f) + IM_ASSERT(*size1 + mouse_delta >= min_size1); + if (mouse_delta > 0.0f) + IM_ASSERT(*size2 - mouse_delta >= min_size2); + *size1 += mouse_delta; + *size2 -= mouse_delta; + bb_render.Translate((axis == ImGuiAxis_X) ? ImVec2(mouse_delta, 0.0f) : ImVec2(0.0f, mouse_delta)); + MarkItemEdited(id); + } + } + + // Render + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, col, 0.0f); + + return held; +} + +static int IMGUI_CDECL ShrinkWidthItemComparer(const void* lhs, const void* rhs) +{ + const ImGuiShrinkWidthItem* a = (const ImGuiShrinkWidthItem*)lhs; + const ImGuiShrinkWidthItem* b = (const ImGuiShrinkWidthItem*)rhs; + if (int d = (int)(b->Width - a->Width)) + return d; + return (b->Index - a->Index); +} + +// Shrink excess width from a set of item, by removing width from the larger items first. +// Set items Width to -1.0f to disable shrinking this item. +void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess) +{ + if (count == 1) + { + if (items[0].Width >= 0.0f) + items[0].Width = ImMax(items[0].Width - width_excess, 1.0f); + return; + } + ImQsort(items, (size_t)count, sizeof(ImGuiShrinkWidthItem), ShrinkWidthItemComparer); + int count_same_width = 1; + while (width_excess > 0.0f && count_same_width < count) + { + while (count_same_width < count && items[0].Width <= items[count_same_width].Width) + count_same_width++; + float max_width_to_remove_per_item = (count_same_width < count && items[count_same_width].Width >= 0.0f) ? (items[0].Width - items[count_same_width].Width) : (items[0].Width - 1.0f); + if (max_width_to_remove_per_item <= 0.0f) + break; + float width_to_remove_per_item = ImMin(width_excess / count_same_width, max_width_to_remove_per_item); + for (int item_n = 0; item_n < count_same_width; item_n++) + items[item_n].Width -= width_to_remove_per_item; + width_excess -= width_to_remove_per_item * count_same_width; + } + + // Round width and redistribute remainder + // Ensure that e.g. the right-most tab of a shrunk tab-bar always reaches exactly at the same distance from the right-most edge of the tab bar separator. + width_excess = 0.0f; + for (int n = 0; n < count; n++) + { + float width_rounded = ImFloor(items[n].Width); + width_excess += items[n].Width - width_rounded; + items[n].Width = width_rounded; + } + while (width_excess > 0.0f) + for (int n = 0; n < count && width_excess > 0.0f; n++) + { + float width_to_add = ImMin(items[n].InitialWidth - items[n].Width, 1.0f); + items[n].Width += width_to_add; + width_excess -= width_to_add; + } +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ComboBox +//------------------------------------------------------------------------- +// - CalcMaxPopupHeightFromItemCount() [Internal] +// - BeginCombo() +// - BeginComboPopup() [Internal] +// - EndCombo() +// - BeginComboPreview() [Internal] +// - EndComboPreview() [Internal] +// - Combo() +//------------------------------------------------------------------------- + +static float CalcMaxPopupHeightFromItemCount(int items_count) +{ + ImGuiContext& g = *GImGui; + if (items_count <= 0) + return FLT_MAX; + return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2); +} + +bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + ImGuiNextWindowDataFlags backup_next_window_data_flags = g.NextWindowData.Flags; + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + IM_ASSERT((flags & (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)) != (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)); // Can't use both flags together + + const float arrow_size = (flags & ImGuiComboFlags_NoArrowButton) ? 0.0f : GetFrameHeight(); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const float w = (flags & ImGuiComboFlags_NoPreview) ? arrow_size : CalcItemWidth(); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(bb.Min, bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &bb)) + return false; + + // Open on click + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + const ImGuiID popup_id = ImHashStr("##ComboPopup", 0, id); + bool popup_open = IsPopupOpen(popup_id, ImGuiPopupFlags_None); + if (pressed && !popup_open) + { + OpenPopupEx(popup_id, ImGuiPopupFlags_None); + popup_open = true; + } + + // Render shape + const ImU32 frame_col = GetColorU32(hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + const float value_x2 = ImMax(bb.Min.x, bb.Max.x - arrow_size); + RenderNavHighlight(bb, id); + if (!(flags & ImGuiComboFlags_NoPreview)) + window->DrawList->AddRectFilled(bb.Min, ImVec2(value_x2, bb.Max.y), frame_col, style.FrameRounding, (flags & ImGuiComboFlags_NoArrowButton) ? ImDrawFlags_RoundCornersAll : ImDrawFlags_RoundCornersLeft); + if (!(flags & ImGuiComboFlags_NoArrowButton)) + { + ImU32 bg_col = GetColorU32((popup_open || hovered) ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + window->DrawList->AddRectFilled(ImVec2(value_x2, bb.Min.y), bb.Max, bg_col, style.FrameRounding, (w <= arrow_size) ? ImDrawFlags_RoundCornersAll : ImDrawFlags_RoundCornersRight); + if (value_x2 + arrow_size - style.FramePadding.x <= bb.Max.x) + RenderArrow(window->DrawList, ImVec2(value_x2 + style.FramePadding.y, bb.Min.y + style.FramePadding.y), text_col, ImGuiDir_Down, 1.0f); + } + RenderFrameBorder(bb.Min, bb.Max, style.FrameRounding); + + // Custom preview + if (flags & ImGuiComboFlags_CustomPreview) + { + g.ComboPreviewData.PreviewRect = ImRect(bb.Min.x, bb.Min.y, value_x2, bb.Max.y); + IM_ASSERT(preview_value == NULL || preview_value[0] == 0); + preview_value = NULL; + } + + // Render preview and label + if (preview_value != NULL && !(flags & ImGuiComboFlags_NoPreview)) + { + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(bb.Min + style.FramePadding, ImVec2(value_x2, bb.Max.y), preview_value, NULL, NULL); + } + if (label_size.x > 0) + RenderText(ImVec2(bb.Max.x + style.ItemInnerSpacing.x, bb.Min.y + style.FramePadding.y), label); + + if (!popup_open) + return false; + + g.NextWindowData.Flags = backup_next_window_data_flags; + return BeginComboPopup(popup_id, bb, flags); +} + +bool ImGui::BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags) +{ + ImGuiContext& g = *GImGui; + if (!IsPopupOpen(popup_id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); + return false; + } + + // Set popup size + float w = bb.GetWidth(); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) + { + g.NextWindowData.SizeConstraintRect.Min.x = ImMax(g.NextWindowData.SizeConstraintRect.Min.x, w); + } + else + { + if ((flags & ImGuiComboFlags_HeightMask_) == 0) + flags |= ImGuiComboFlags_HeightRegular; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiComboFlags_HeightMask_)); // Only one + int popup_max_height_in_items = -1; + if (flags & ImGuiComboFlags_HeightRegular) popup_max_height_in_items = 8; + else if (flags & ImGuiComboFlags_HeightSmall) popup_max_height_in_items = 4; + else if (flags & ImGuiComboFlags_HeightLarge) popup_max_height_in_items = 20; + SetNextWindowSizeConstraints(ImVec2(w, 0.0f), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); + } + + // This is essentially a specialized version of BeginPopupEx() + char name[16]; + ImFormatString(name, IM_ARRAYSIZE(name), "##Combo_%02d", g.BeginPopupStack.Size); // Recycle windows based on depth + + // Set position given a custom constraint (peak into expected window size so we can position it) + // FIXME: This might be easier to express with an hypothetical SetNextWindowPosConstraints() function? + // FIXME: This might be moved to Begin() or at least around the same spot where Tooltips and other Popups are calling FindBestWindowPosForPopupEx()? + if (ImGuiWindow* popup_window = FindWindowByName(name)) + if (popup_window->WasActive) + { + // Always override 'AutoPosLastDirection' to not leave a chance for a past value to affect us. + ImVec2 size_expected = CalcWindowNextAutoFitSize(popup_window); + popup_window->AutoPosLastDirection = (flags & ImGuiComboFlags_PopupAlignLeft) ? ImGuiDir_Left : ImGuiDir_Down; // Left = "Below, Toward Left", Down = "Below, Toward Right (default)" + ImRect r_outer = GetPopupAllowedExtentRect(popup_window); + ImVec2 pos = FindBestWindowPosForPopupEx(bb.GetBL(), size_expected, &popup_window->AutoPosLastDirection, r_outer, bb, ImGuiPopupPositionPolicy_ComboBox); + SetNextWindowPos(pos); + } + + // We don't use BeginPopupEx() solely because we have a custom name string, which we could make an argument to BeginPopupEx() + ImGuiWindowFlags window_flags = ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoMove; + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(g.Style.FramePadding.x, g.Style.WindowPadding.y)); // Horizontally align ourselves with the framed text + bool ret = Begin(name, NULL, window_flags); + PopStyleVar(); + if (!ret) + { + EndPopup(); + IM_ASSERT(0); // This should never happen as we tested for IsPopupOpen() above + return false; + } + return true; +} + +void ImGui::EndCombo() +{ + EndPopup(); +} + +// Call directly after the BeginCombo/EndCombo block. The preview is designed to only host non-interactive elements +// (Experimental, see GitHub issues: #1658, #4168) +bool ImGui::BeginComboPreview() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; + + if (window->SkipItems || !(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible)) + return false; + IM_ASSERT(g.LastItemData.Rect.Min.x == preview_data->PreviewRect.Min.x && g.LastItemData.Rect.Min.y == preview_data->PreviewRect.Min.y); // Didn't call after BeginCombo/EndCombo block or forgot to pass ImGuiComboFlags_CustomPreview flag? + if (!window->ClipRect.Contains(preview_data->PreviewRect)) // Narrower test (optional) + return false; + + // FIXME: This could be contained in a PushWorkRect() api + preview_data->BackupCursorPos = window->DC.CursorPos; + preview_data->BackupCursorMaxPos = window->DC.CursorMaxPos; + preview_data->BackupCursorPosPrevLine = window->DC.CursorPosPrevLine; + preview_data->BackupPrevLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + preview_data->BackupLayout = window->DC.LayoutType; + window->DC.CursorPos = preview_data->PreviewRect.Min + g.Style.FramePadding; + window->DC.CursorMaxPos = window->DC.CursorPos; + window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; + PushClipRect(preview_data->PreviewRect.Min, preview_data->PreviewRect.Max, true); + + return true; +} + +void ImGui::EndComboPreview() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; + + // FIXME: Using CursorMaxPos approximation instead of correct AABB which we will store in ImDrawCmd in the future + ImDrawList* draw_list = window->DrawList; + if (window->DC.CursorMaxPos.x < preview_data->PreviewRect.Max.x && window->DC.CursorMaxPos.y < preview_data->PreviewRect.Max.y) + if (draw_list->CmdBuffer.Size > 1) // Unlikely case that the PushClipRect() didn't create a command + { + draw_list->_CmdHeader.ClipRect = draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ClipRect = draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 2].ClipRect; + draw_list->_TryMergeDrawCmds(); + } + PopClipRect(); + window->DC.CursorPos = preview_data->BackupCursorPos; + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, preview_data->BackupCursorMaxPos); + window->DC.CursorPosPrevLine = preview_data->BackupCursorPosPrevLine; + window->DC.PrevLineTextBaseOffset = preview_data->BackupPrevLineTextBaseOffset; + window->DC.LayoutType = preview_data->BackupLayout; + window->DC.IsSameLine = false; + preview_data->PreviewRect = ImRect(); +} + +// Getter for the old Combo() API: const char*[] +static bool Items_ArrayGetter(void* data, int idx, const char** out_text) +{ + const char* const* items = (const char* const*)data; + if (out_text) + *out_text = items[idx]; + return true; +} + +// Getter for the old Combo() API: "item1\0item2\0item3\0" +static bool Items_SingleStringGetter(void* data, int idx, const char** out_text) +{ + // FIXME-OPT: we could pre-compute the indices to fasten this. But only 1 active combo means the waste is limited. + const char* items_separated_by_zeros = (const char*)data; + int items_count = 0; + const char* p = items_separated_by_zeros; + while (*p) + { + if (idx == items_count) + break; + p += strlen(p) + 1; + items_count++; + } + if (!*p) + return false; + if (out_text) + *out_text = p; + return true; +} + +// Old API, prefer using BeginCombo() nowadays if you can. +bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int popup_max_height_in_items) +{ + ImGuiContext& g = *GImGui; + + // Call the getter to obtain the preview string which is a parameter to BeginCombo() + const char* preview_value = NULL; + if (*current_item >= 0 && *current_item < items_count) + items_getter(data, *current_item, &preview_value); + + // The old Combo() API exposed "popup_max_height_in_items". The new more general BeginCombo() API doesn't have/need it, but we emulate it here. + if (popup_max_height_in_items != -1 && !(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint)) + SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); + + if (!BeginCombo(label, preview_value, ImGuiComboFlags_None)) + return false; + + // Display items + // FIXME-OPT: Use clipper (but we need to disable it on the appearing frame to make sure our call to SetItemDefaultFocus() is processed) + bool value_changed = false; + for (int i = 0; i < items_count; i++) + { + PushID(i); + const bool item_selected = (i == *current_item); + const char* item_text; + if (!items_getter(data, i, &item_text)) + item_text = "*Unknown item*"; + if (Selectable(item_text, item_selected)) + { + value_changed = true; + *current_item = i; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + + EndCombo(); + + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +// Combo box helper allowing to pass an array of strings. +bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items) +{ + const bool value_changed = Combo(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_in_items); + return value_changed; +} + +// Combo box helper allowing to pass all items in a single string literal holding multiple zero-terminated items "item1\0item2\0" +bool ImGui::Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int height_in_items) +{ + int items_count = 0; + const char* p = items_separated_by_zeros; // FIXME-OPT: Avoid computing this, or at least only when combo is open + while (*p) + { + p += strlen(p) + 1; + items_count++; + } + bool value_changed = Combo(label, current_item, Items_SingleStringGetter, (void*)items_separated_by_zeros, items_count, height_in_items); + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Data Type and Data Formatting Helpers [Internal] +//------------------------------------------------------------------------- +// - DataTypeGetInfo() +// - DataTypeFormatString() +// - DataTypeApplyOp() +// - DataTypeApplyOpFromText() +// - DataTypeCompare() +// - DataTypeClamp() +// - GetMinimumStepAtDecimalPrecision +// - RoundScalarWithFormat<>() +//------------------------------------------------------------------------- + +static const ImGuiDataTypeInfo GDataTypeInfo[] = +{ + { sizeof(char), "S8", "%d", "%d" }, // ImGuiDataType_S8 + { sizeof(unsigned char), "U8", "%u", "%u" }, + { sizeof(short), "S16", "%d", "%d" }, // ImGuiDataType_S16 + { sizeof(unsigned short), "U16", "%u", "%u" }, + { sizeof(int), "S32", "%d", "%d" }, // ImGuiDataType_S32 + { sizeof(unsigned int), "U32", "%u", "%u" }, +#ifdef _MSC_VER + { sizeof(ImS64), "S64", "%I64d","%I64d" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%I64u","%I64u" }, +#else + { sizeof(ImS64), "S64", "%lld", "%lld" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%llu", "%llu" }, +#endif + { sizeof(float), "float", "%.3f","%f" }, // ImGuiDataType_Float (float are promoted to double in va_arg) + { sizeof(double), "double","%f", "%lf" }, // ImGuiDataType_Double +}; +IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT); + +const ImGuiDataTypeInfo* ImGui::DataTypeGetInfo(ImGuiDataType data_type) +{ + IM_ASSERT(data_type >= 0 && data_type < ImGuiDataType_COUNT); + return &GDataTypeInfo[data_type]; +} + +int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format) +{ + // Signedness doesn't matter when pushing integer arguments + if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32) + return ImFormatString(buf, buf_size, format, *(const ImU32*)p_data); + if (data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) + return ImFormatString(buf, buf_size, format, *(const ImU64*)p_data); + if (data_type == ImGuiDataType_Float) + return ImFormatString(buf, buf_size, format, *(const float*)p_data); + if (data_type == ImGuiDataType_Double) + return ImFormatString(buf, buf_size, format, *(const double*)p_data); + if (data_type == ImGuiDataType_S8) + return ImFormatString(buf, buf_size, format, *(const ImS8*)p_data); + if (data_type == ImGuiDataType_U8) + return ImFormatString(buf, buf_size, format, *(const ImU8*)p_data); + if (data_type == ImGuiDataType_S16) + return ImFormatString(buf, buf_size, format, *(const ImS16*)p_data); + if (data_type == ImGuiDataType_U16) + return ImFormatString(buf, buf_size, format, *(const ImU16*)p_data); + IM_ASSERT(0); + return 0; +} + +void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg1, const void* arg2) +{ + IM_ASSERT(op == '+' || op == '-'); + switch (data_type) + { + case ImGuiDataType_S8: + if (op == '+') { *(ImS8*)output = ImAddClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + if (op == '-') { *(ImS8*)output = ImSubClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + return; + case ImGuiDataType_U8: + if (op == '+') { *(ImU8*)output = ImAddClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + if (op == '-') { *(ImU8*)output = ImSubClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + return; + case ImGuiDataType_S16: + if (op == '+') { *(ImS16*)output = ImAddClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + if (op == '-') { *(ImS16*)output = ImSubClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + return; + case ImGuiDataType_U16: + if (op == '+') { *(ImU16*)output = ImAddClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + if (op == '-') { *(ImU16*)output = ImSubClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + return; + case ImGuiDataType_S32: + if (op == '+') { *(ImS32*)output = ImAddClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + if (op == '-') { *(ImS32*)output = ImSubClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + return; + case ImGuiDataType_U32: + if (op == '+') { *(ImU32*)output = ImAddClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + if (op == '-') { *(ImU32*)output = ImSubClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + return; + case ImGuiDataType_S64: + if (op == '+') { *(ImS64*)output = ImAddClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + if (op == '-') { *(ImS64*)output = ImSubClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + return; + case ImGuiDataType_U64: + if (op == '+') { *(ImU64*)output = ImAddClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + if (op == '-') { *(ImU64*)output = ImSubClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + return; + case ImGuiDataType_Float: + if (op == '+') { *(float*)output = *(const float*)arg1 + *(const float*)arg2; } + if (op == '-') { *(float*)output = *(const float*)arg1 - *(const float*)arg2; } + return; + case ImGuiDataType_Double: + if (op == '+') { *(double*)output = *(const double*)arg1 + *(const double*)arg2; } + if (op == '-') { *(double*)output = *(const double*)arg1 - *(const double*)arg2; } + return; + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); +} + +// User can input math operators (e.g. +100) to edit a numerical values. +// NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess.. +bool ImGui::DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format) +{ + while (ImCharIsBlankA(*buf)) + buf++; + if (!buf[0]) + return false; + + // Copy the value in an opaque buffer so we can compare at the end of the function if it changed at all. + const ImGuiDataTypeInfo* type_info = DataTypeGetInfo(data_type); + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, type_info->Size); + + // Sanitize format + // For float/double we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in, so force them into %f and %lf + char format_sanitized[32]; + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + format = type_info->ScanFmt; + else + format = ImParseFormatSanitizeForScanning(format, format_sanitized, IM_ARRAYSIZE(format_sanitized)); + + // Small types need a 32-bit buffer to receive the result from scanf() + int v32 = 0; + if (sscanf(buf, format, type_info->Size >= 4 ? p_data : &v32) < 1) + return false; + if (type_info->Size < 4) + { + if (data_type == ImGuiDataType_S8) + *(ImS8*)p_data = (ImS8)ImClamp(v32, (int)IM_S8_MIN, (int)IM_S8_MAX); + else if (data_type == ImGuiDataType_U8) + *(ImU8*)p_data = (ImU8)ImClamp(v32, (int)IM_U8_MIN, (int)IM_U8_MAX); + else if (data_type == ImGuiDataType_S16) + *(ImS16*)p_data = (ImS16)ImClamp(v32, (int)IM_S16_MIN, (int)IM_S16_MAX); + else if (data_type == ImGuiDataType_U16) + *(ImU16*)p_data = (ImU16)ImClamp(v32, (int)IM_U16_MIN, (int)IM_U16_MAX); + else + IM_ASSERT(0); + } + + return memcmp(&data_backup, p_data, type_info->Size) != 0; +} + +template +static int DataTypeCompareT(const T* lhs, const T* rhs) +{ + if (*lhs < *rhs) return -1; + if (*lhs > *rhs) return +1; + return 0; +} + +int ImGui::DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeCompareT((const ImS8* )arg_1, (const ImS8* )arg_2); + case ImGuiDataType_U8: return DataTypeCompareT((const ImU8* )arg_1, (const ImU8* )arg_2); + case ImGuiDataType_S16: return DataTypeCompareT((const ImS16* )arg_1, (const ImS16* )arg_2); + case ImGuiDataType_U16: return DataTypeCompareT((const ImU16* )arg_1, (const ImU16* )arg_2); + case ImGuiDataType_S32: return DataTypeCompareT((const ImS32* )arg_1, (const ImS32* )arg_2); + case ImGuiDataType_U32: return DataTypeCompareT((const ImU32* )arg_1, (const ImU32* )arg_2); + case ImGuiDataType_S64: return DataTypeCompareT((const ImS64* )arg_1, (const ImS64* )arg_2); + case ImGuiDataType_U64: return DataTypeCompareT((const ImU64* )arg_1, (const ImU64* )arg_2); + case ImGuiDataType_Float: return DataTypeCompareT((const float* )arg_1, (const float* )arg_2); + case ImGuiDataType_Double: return DataTypeCompareT((const double*)arg_1, (const double*)arg_2); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return 0; +} + +template +static bool DataTypeClampT(T* v, const T* v_min, const T* v_max) +{ + // Clamp, both sides are optional, return true if modified + if (v_min && *v < *v_min) { *v = *v_min; return true; } + if (v_max && *v > *v_max) { *v = *v_max; return true; } + return false; +} + +bool ImGui::DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeClampT((ImS8* )p_data, (const ImS8* )p_min, (const ImS8* )p_max); + case ImGuiDataType_U8: return DataTypeClampT((ImU8* )p_data, (const ImU8* )p_min, (const ImU8* )p_max); + case ImGuiDataType_S16: return DataTypeClampT((ImS16* )p_data, (const ImS16* )p_min, (const ImS16* )p_max); + case ImGuiDataType_U16: return DataTypeClampT((ImU16* )p_data, (const ImU16* )p_min, (const ImU16* )p_max); + case ImGuiDataType_S32: return DataTypeClampT((ImS32* )p_data, (const ImS32* )p_min, (const ImS32* )p_max); + case ImGuiDataType_U32: return DataTypeClampT((ImU32* )p_data, (const ImU32* )p_min, (const ImU32* )p_max); + case ImGuiDataType_S64: return DataTypeClampT((ImS64* )p_data, (const ImS64* )p_min, (const ImS64* )p_max); + case ImGuiDataType_U64: return DataTypeClampT((ImU64* )p_data, (const ImU64* )p_min, (const ImU64* )p_max); + case ImGuiDataType_Float: return DataTypeClampT((float* )p_data, (const float* )p_min, (const float* )p_max); + case ImGuiDataType_Double: return DataTypeClampT((double*)p_data, (const double*)p_min, (const double*)p_max); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +static float GetMinimumStepAtDecimalPrecision(int decimal_precision) +{ + static const float min_steps[10] = { 1.0f, 0.1f, 0.01f, 0.001f, 0.0001f, 0.00001f, 0.000001f, 0.0000001f, 0.00000001f, 0.000000001f }; + if (decimal_precision < 0) + return FLT_MIN; + return (decimal_precision < IM_ARRAYSIZE(min_steps)) ? min_steps[decimal_precision] : ImPow(10.0f, (float)-decimal_precision); +} + +template +TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v) +{ + IM_UNUSED(data_type); + IM_ASSERT(data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double); + const char* fmt_start = ImParseFormatFindStart(format); + if (fmt_start[0] != '%' || fmt_start[1] == '%') // Don't apply if the value is not visible in the format string + return v; + + // Sanitize format + char fmt_sanitized[32]; + ImParseFormatSanitizeForPrinting(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); + fmt_start = fmt_sanitized; + + // Format value with our rounding, and read back + char v_str[64]; + ImFormatString(v_str, IM_ARRAYSIZE(v_str), fmt_start, v); + const char* p = v_str; + while (*p == ' ') + p++; + v = (TYPE)ImAtof(p); + + return v; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +//------------------------------------------------------------------------- +// - DragBehaviorT<>() [Internal] +// - DragBehavior() [Internal] +// - DragScalar() +// - DragScalarN() +// - DragFloat() +// - DragFloat2() +// - DragFloat3() +// - DragFloat4() +// - DragFloatRange2() +// - DragInt() +// - DragInt2() +// - DragInt3() +// - DragInt4() +// - DragIntRange2() +//------------------------------------------------------------------------- + +// This is called by DragBehavior() when the widget is active (held by mouse or being manipulated with Nav controls) +template +bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_clamped = (v_min < v_max); + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + + // Default tweak speed + if (v_speed == 0.0f && is_clamped && (v_max - v_min < FLT_MAX)) + v_speed = (float)((v_max - v_min) * g.DragSpeedDefaultRatio); + + // Inputs accumulates into g.DragCurrentAccum, which is flushed into the current value as soon as it makes a difference with our precision settings + float adjust_delta = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse && IsMousePosValid() && IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) + { + adjust_delta = g.IO.MouseDelta[axis]; + if (g.IO.KeyAlt) + adjust_delta *= 1.0f / 100.0f; + if (g.IO.KeyShift) + adjust_delta *= 10.0f; + } + else if (g.ActiveIdSource == ImGuiInputSource_Nav) + { + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const float tweak_factor = tweak_slow ? 1.0f / 1.0f : tweak_fast ? 10.0f : 1.0f; + adjust_delta = GetNavTweakPressedAmount(axis) * tweak_factor; + v_speed = ImMax(v_speed, GetMinimumStepAtDecimalPrecision(decimal_precision)); + } + adjust_delta *= v_speed; + + // For vertical drag we currently assume that Up=higher value (like we do with vertical sliders). This may become a parameter. + if (axis == ImGuiAxis_Y) + adjust_delta = -adjust_delta; + + // For logarithmic use our range is effectively 0..1 so scale the delta into that range + if (is_logarithmic && (v_max - v_min < FLT_MAX) && ((v_max - v_min) > 0.000001f)) // Epsilon to avoid /0 + adjust_delta /= (float)(v_max - v_min); + + // Clear current value on activation + // Avoid altering values and clamping when we are _already_ past the limits and heading in the same direction, so e.g. if range is 0..255, current value is 300 and we are pushing to the right side, keep the 300. + bool is_just_activated = g.ActiveIdIsJustActivated; + bool is_already_past_limits_and_pushing_outward = is_clamped && ((*v >= v_max && adjust_delta > 0.0f) || (*v <= v_min && adjust_delta < 0.0f)); + if (is_just_activated || is_already_past_limits_and_pushing_outward) + { + g.DragCurrentAccum = 0.0f; + g.DragCurrentAccumDirty = false; + } + else if (adjust_delta != 0.0f) + { + g.DragCurrentAccum += adjust_delta; + g.DragCurrentAccumDirty = true; + } + + if (!g.DragCurrentAccumDirty) + return false; + + TYPE v_cur = *v; + FLOATTYPE v_old_ref_for_accum_remainder = (FLOATTYPE)0.0f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + const float zero_deadzone_halfsize = 0.0f; // Drag widgets have no deadzone (as it doesn't make sense) + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + + // Convert to parametric space, apply delta, convert back + float v_old_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + float v_new_parametric = v_old_parametric + g.DragCurrentAccum; + v_cur = ScaleValueFromRatioT(data_type, v_new_parametric, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + v_old_ref_for_accum_remainder = v_old_parametric; + } + else + { + v_cur += (SIGNEDTYPE)g.DragCurrentAccum; + } + + // Round to user desired precision based on format string + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_cur = RoundScalarWithFormatT(format, data_type, v_cur); + + // Preserve remainder after rounding has been applied. This also allow slow tweaking of values. + g.DragCurrentAccumDirty = false; + if (is_logarithmic) + { + // Convert to parametric space, apply delta, convert back + float v_new_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + g.DragCurrentAccum -= (float)(v_new_parametric - v_old_ref_for_accum_remainder); + } + else + { + g.DragCurrentAccum -= (float)((SIGNEDTYPE)v_cur - (SIGNEDTYPE)*v); + } + + // Lose zero sign for float/double + if (v_cur == (TYPE)-0) + v_cur = (TYPE)0; + + // Clamp values (+ handle overflow/wrap-around for integer types) + if (*v != v_cur && is_clamped) + { + if (v_cur < v_min || (v_cur > *v && adjust_delta < 0.0f && !is_floating_point)) + v_cur = v_min; + if (v_cur > v_max || (v_cur < *v && adjust_delta > 0.0f && !is_floating_point)) + v_cur = v_max; + } + + // Apply result + if (*v == v_cur) + return false; + *v = v_cur; + return true; +} + +bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flags! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + { + // Those are the things we can do easily outside the DragBehaviorT<> template, saves code generation. + if (g.ActiveIdSource == ImGuiInputSource_Mouse && !g.IO.MouseDown[0]) + ClearActiveID(); + else if (g.ActiveIdSource == ImGuiInputSource_Nav && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + ClearActiveID(); + } + if (g.ActiveId != id) + return false; + if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + return false; + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS8*) p_min : IM_S8_MIN, p_max ? *(const ImS8*)p_max : IM_S8_MAX, format, flags); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU8*) p_min : IM_U8_MIN, p_max ? *(const ImU8*)p_max : IM_U8_MAX, format, flags); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS16*)p_min : IM_S16_MIN, p_max ? *(const ImS16*)p_max : IM_S16_MAX, format, flags); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU16*)p_min : IM_U16_MIN, p_max ? *(const ImU16*)p_max : IM_U16_MAX, format, flags); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: return DragBehaviorT(data_type, (ImS32*)p_v, v_speed, p_min ? *(const ImS32* )p_min : IM_S32_MIN, p_max ? *(const ImS32* )p_max : IM_S32_MAX, format, flags); + case ImGuiDataType_U32: return DragBehaviorT(data_type, (ImU32*)p_v, v_speed, p_min ? *(const ImU32* )p_min : IM_U32_MIN, p_max ? *(const ImU32* )p_max : IM_U32_MAX, format, flags); + case ImGuiDataType_S64: return DragBehaviorT(data_type, (ImS64*)p_v, v_speed, p_min ? *(const ImS64* )p_min : IM_S64_MIN, p_max ? *(const ImS64* )p_max : IM_S64_MAX, format, flags); + case ImGuiDataType_U64: return DragBehaviorT(data_type, (ImU64*)p_v, v_speed, p_min ? *(const ImU64* )p_min : IM_U64_MIN, p_max ? *(const ImU64* )p_max : IM_U64_MAX, format, flags); + case ImGuiDataType_Float: return DragBehaviorT(data_type, (float*)p_v, v_speed, p_min ? *(const float* )p_min : -FLT_MAX, p_max ? *(const float* )p_max : FLT_MAX, format, flags); + case ImGuiDataType_Double: return DragBehaviorT(data_type, (double*)p_v, v_speed, p_min ? *(const double*)p_min : -DBL_MAX, p_max ? *(const double*)p_max : DBL_MAX, format, flags); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a Drag widget, p_min and p_max are optional. +// Read code of e.g. DragFloat(), DragInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::DragScalar(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, temp_input_allowed ? ImGuiItemFlags_Inputable : 0)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id); + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + // Tabbing or CTRL-clicking on Drag turns it into an InputText + const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool clicked = hovered && IsMouseClicked(0, id); + const bool double_clicked = (hovered && g.IO.MouseClickedCount[0] == 2 && TestKeyOwner(ImGuiKey_MouseLeft, id)); + const bool make_active = (input_requested_by_tabbing || clicked || double_clicked || g.NavActivateId == id || g.NavActivateInputId == id); + if (make_active && (clicked || double_clicked)) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || double_clicked || g.NavActivateInputId == id) + temp_input_is_active = true; + + // (Optional) simple click (without moving) turns Drag into an InputText + if (g.IO.ConfigDragClickToInputText && temp_input_allowed && !temp_input_is_active) + if (g.ActiveId == id && hovered && g.IO.MouseReleased[0] && !IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) + { + g.NavActivateId = g.NavActivateInputId = id; + g.NavActivateFlags = ImGuiActivateFlags_PreferInput; + temp_input_is_active = true; + } + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0 && (p_min == NULL || p_max == NULL || DataTypeCompare(data_type, p_min, p_max) < 0); + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, style.FrameRounding); + + // Drag behavior + const bool value_changed = DragBehavior(id, data_type, p_data, v_speed, p_min, p_max, format, flags); + if (value_changed) + MarkItemEdited(id); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return value_changed; +} + +bool ImGui::DragScalarN(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= DragScalar("", data_type, p_data, v_speed, p_min, p_max, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragFloatRange2(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + float min_min = (v_min >= v_max) ? -FLT_MAX : v_min; + float min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragScalar("##min", ImGuiDataType_Float, v_current_min, v_speed, &min_min, &min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + float max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + float max_max = (v_min >= v_max) ? FLT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragScalar("##max", ImGuiDataType_Float, v_current_max, v_speed, &max_min, &max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + + return value_changed; +} + +// NB: v_speed is float to allow adjusting the drag speed with more precision +bool ImGui::DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_S32, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragIntRange2(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + int min_min = (v_min >= v_max) ? INT_MIN : v_min; + int min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragInt("##min", v_current_min, v_speed, min_min, min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + int max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + int max_max = (v_min >= v_max) ? INT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragInt("##max", v_current_max, v_speed, max_min, max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +//------------------------------------------------------------------------- +// - ScaleRatioFromValueT<> [Internal] +// - ScaleValueFromRatioT<> [Internal] +// - SliderBehaviorT<>() [Internal] +// - SliderBehavior() [Internal] +// - SliderScalar() +// - SliderScalarN() +// - SliderFloat() +// - SliderFloat2() +// - SliderFloat3() +// - SliderFloat4() +// - SliderAngle() +// - SliderInt() +// - SliderInt2() +// - SliderInt3() +// - SliderInt4() +// - VSliderScalar() +// - VSliderFloat() +// - VSliderInt() +//------------------------------------------------------------------------- + +// Convert a value v in the output space of a slider into a parametric position on the slider itself (the logical opposite of ScaleValueFromRatioT) +template +float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + if (v_min == v_max) + return 0.0f; + IM_UNUSED(data_type); + + const TYPE v_clamped = (v_min < v_max) ? ImClamp(v, v_min, v_max) : ImClamp(v, v_max, v_min); + if (is_logarithmic) + { + bool flipped = v_max < v_min; + + if (flipped) // Handle the case where the range is backwards + ImSwap(v_min, v_max); + + // Fudge min/max to avoid getting close to log(0) + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + // Awkward special cases - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_min == 0.0f) && (v_max < 0.0f)) + v_min_fudged = -logarithmic_zero_epsilon; + else if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float result; + if (v_clamped <= v_min_fudged) + result = 0.0f; // Workaround for values that are in-range but below our fudge + else if (v_clamped >= v_max_fudged) + result = 1.0f; // Workaround for values that are in-range but above our fudge + else if ((v_min * v_max) < 0.0f) // Range crosses zero, so split into two portions + { + float zero_point_center = (-(float)v_min) / ((float)v_max - (float)v_min); // The zero point in parametric space. There's an argument we should take the logarithmic nature into account when calculating this, but for now this should do (and the most common case of a symmetrical range works fine) + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (v == 0.0f) + result = zero_point_center; // Special case for exactly zero + else if (v < 0.0f) + result = (1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(-v_min_fudged / logarithmic_zero_epsilon))) * zero_point_snap_L; + else + result = zero_point_snap_R + ((float)(ImLog((FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(v_max_fudged / logarithmic_zero_epsilon)) * (1.0f - zero_point_snap_R)); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = 1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / -v_max_fudged) / ImLog(-v_min_fudged / -v_max_fudged)); + else + result = (float)(ImLog((FLOATTYPE)v_clamped / v_min_fudged) / ImLog(v_max_fudged / v_min_fudged)); + + return flipped ? (1.0f - result) : result; + } + else + { + // Linear slider + return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); + } +} + +// Convert a parametric position on a slider into a value v in the output space (the logical opposite of ScaleRatioFromValueT) +template +TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + // We special-case the extents because otherwise our logarithmic fudging can lead to "mathematically correct" + // but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value. Also generally simpler. + if (t <= 0.0f || v_min == v_max) + return v_min; + if (t >= 1.0f) + return v_max; + + TYPE result = (TYPE)0; + if (is_logarithmic) + { + // Fudge min/max to avoid getting silly results close to zero + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + const bool flipped = v_max < v_min; // Check if range is "backwards" + if (flipped) + ImSwap(v_min_fudged, v_max_fudged); + + // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range + + if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts + { + float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) + result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) + else if (t_with_flip < zero_point_center) + result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); + else + result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); + else + result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); + } + else + { + // Linear slider + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + if (is_floating_point) + { + result = ImLerp(v_min, v_max, t); + } + else if (t < 1.0) + { + // - For integer values we want the clicking position to match the grab box so we round above + // This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property.. + // - Not doing a *1.0 multiply at the end of a range as it tends to be lossy. While absolute aiming at a large s64/u64 + // range is going to be imprecise anyway, with this check we at least make the edge values matches expected limits. + FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; + result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); + } + } + + return result; +} + +// FIXME: Try to move more of the code into shared SliderBehavior() +template +bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + const SIGNEDTYPE v_range = (v_min < v_max ? v_max - v_min : v_min - v_max); + + // Calculate bounds + const float grab_padding = 2.0f; // FIXME: Should be part of style. + const float slider_sz = (bb.Max[axis] - bb.Min[axis]) - grab_padding * 2.0f; + float grab_sz = style.GrabMinSize; + if (!is_floating_point && v_range >= 0) // v_range < 0 may happen on integer overflows + grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit + grab_sz = ImMin(grab_sz, slider_sz); + const float slider_usable_sz = slider_sz - grab_sz; + const float slider_usable_pos_min = bb.Min[axis] + grab_padding + grab_sz * 0.5f; + const float slider_usable_pos_max = bb.Max[axis] - grab_padding - grab_sz * 0.5f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + float zero_deadzone_halfsize = 0.0f; // Only valid when is_logarithmic is true + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + zero_deadzone_halfsize = (style.LogSliderDeadzone * 0.5f) / ImMax(slider_usable_sz, 1.0f); + } + + // Process interacting with the slider + bool value_changed = false; + if (g.ActiveId == id) + { + bool set_new_value = false; + float clicked_t = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (!g.IO.MouseDown[0]) + { + ClearActiveID(); + } + else + { + const float mouse_abs_pos = g.IO.MousePos[axis]; + if (g.ActiveIdIsJustActivated) + { + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + const bool clicked_around_grab = (mouse_abs_pos >= grab_pos - grab_sz * 0.5f - 1.0f) && (mouse_abs_pos <= grab_pos + grab_sz * 0.5f + 1.0f); // No harm being extra generous here. + g.SliderGrabClickOffset = (clicked_around_grab && is_floating_point) ? mouse_abs_pos - grab_pos : 0.0f; + } + if (slider_usable_sz > 0.0f) + clicked_t = ImSaturate((mouse_abs_pos - g.SliderGrabClickOffset - slider_usable_pos_min) / slider_usable_sz); + if (axis == ImGuiAxis_Y) + clicked_t = 1.0f - clicked_t; + set_new_value = true; + } + } + else if (g.ActiveIdSource == ImGuiInputSource_Nav) + { + if (g.ActiveIdIsJustActivated) + { + g.SliderCurrentAccum = 0.0f; // Reset any stored nav delta upon activation + g.SliderCurrentAccumDirty = false; + } + + float input_delta = (axis == ImGuiAxis_X) ? GetNavTweakPressedAmount(axis) : -GetNavTweakPressedAmount(axis); + if (input_delta != 0.0f) + { + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; + if (decimal_precision > 0) + { + input_delta /= 100.0f; // Gamepad/keyboard tweak speeds in % of slider bounds + if (tweak_slow) + input_delta /= 10.0f; + } + else + { + if ((v_range >= -100.0f && v_range <= 100.0f) || tweak_slow) + input_delta = ((input_delta < 0.0f) ? -1.0f : +1.0f) / (float)v_range; // Gamepad/keyboard tweak speeds in integer steps + else + input_delta /= 100.0f; + } + if (tweak_fast) + input_delta *= 10.0f; + + g.SliderCurrentAccum += input_delta; + g.SliderCurrentAccumDirty = true; + } + + float delta = g.SliderCurrentAccum; + if (g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + { + ClearActiveID(); + } + else if (g.SliderCurrentAccumDirty) + { + clicked_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if ((clicked_t >= 1.0f && delta > 0.0f) || (clicked_t <= 0.0f && delta < 0.0f)) // This is to avoid applying the saturation when already past the limits + { + set_new_value = false; + g.SliderCurrentAccum = 0.0f; // If pushing up against the limits, don't continue to accumulate + } + else + { + set_new_value = true; + float old_clicked_t = clicked_t; + clicked_t = ImSaturate(clicked_t + delta); + + // Calculate what our "new" clicked_t will be, and thus how far we actually moved the slider, and subtract this from the accumulator + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + float new_clicked_t = ScaleRatioFromValueT(data_type, v_new, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if (delta > 0) + g.SliderCurrentAccum -= ImMin(new_clicked_t - old_clicked_t, delta); + else + g.SliderCurrentAccum -= ImMax(new_clicked_t - old_clicked_t, delta); + } + + g.SliderCurrentAccumDirty = false; + } + } + + if (set_new_value) + { + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + // Round to user desired precision based on format string + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + + // Apply result + if (*v != v_new) + { + *v = v_new; + value_changed = true; + } + } + } + + if (slider_sz < 1.0f) + { + *out_grab_bb = ImRect(bb.Min, bb.Min); + } + else + { + // Output grab position so it can be displayed by the caller + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + if (axis == ImGuiAxis_X) + *out_grab_bb = ImRect(grab_pos - grab_sz * 0.5f, bb.Min.y + grab_padding, grab_pos + grab_sz * 0.5f, bb.Max.y - grab_padding); + else + *out_grab_bb = ImRect(bb.Min.x + grab_padding, grab_pos - grab_sz * 0.5f, bb.Max.x - grab_padding, grab_pos + grab_sz * 0.5f); + } + + return value_changed; +} + +// For 32-bit and larger types, slider bounds are limited to half the natural type range. +// So e.g. an integer Slider between INT_MAX-10 and INT_MAX will fail, but an integer Slider between INT_MAX/2-10 and INT_MAX/2 will be ok. +// It would be possible to lift that limitation with some work but it doesn't seem to be worth it for sliders. +bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flag! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + // Those are the things we can do easily outside the SliderBehaviorT<> template, saves code generation. + ImGuiContext& g = *GImGui; + if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + return false; + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS8*)p_min, *(const ImS8*)p_max, format, flags, out_grab_bb); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU8*)p_min, *(const ImU8*)p_max, format, flags, out_grab_bb); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS16*)p_min, *(const ImS16*)p_max, format, flags, out_grab_bb); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU16*)p_min, *(const ImU16*)p_max, format, flags, out_grab_bb); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: + IM_ASSERT(*(const ImS32*)p_min >= IM_S32_MIN / 2 && *(const ImS32*)p_max <= IM_S32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS32*)p_v, *(const ImS32*)p_min, *(const ImS32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U32: + IM_ASSERT(*(const ImU32*)p_max <= IM_U32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU32*)p_v, *(const ImU32*)p_min, *(const ImU32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_S64: + IM_ASSERT(*(const ImS64*)p_min >= IM_S64_MIN / 2 && *(const ImS64*)p_max <= IM_S64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS64*)p_v, *(const ImS64*)p_min, *(const ImS64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U64: + IM_ASSERT(*(const ImU64*)p_max <= IM_U64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU64*)p_v, *(const ImU64*)p_min, *(const ImU64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Float: + IM_ASSERT(*(const float*)p_min >= -FLT_MAX / 2.0f && *(const float*)p_max <= FLT_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (float*)p_v, *(const float*)p_min, *(const float*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Double: + IM_ASSERT(*(const double*)p_min >= -DBL_MAX / 2.0f && *(const double*)p_max <= DBL_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (double*)p_v, *(const double*)p_min, *(const double*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a slider, they are all required. +// Read code of e.g. SliderFloat(), SliderInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, temp_input_allowed ? ImGuiItemFlags_Inputable : 0)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id); + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + // Tabbing or CTRL-clicking on Slider turns it into an input box + const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool clicked = hovered && IsMouseClicked(0, id); + const bool make_active = (input_requested_by_tabbing || clicked || g.NavActivateId == id || g.NavActivateInputId == id); + if (make_active && clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || g.NavActivateInputId == id) + temp_input_is_active = true; + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0; + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.x > grab_bb.Min.x) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return value_changed; +} + +// Add multiple sliders on 1 line for compact edition of multiple components +bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= SliderScalar("", data_type, v, v_min, v_max, format, flags); + PopID(); + PopItemWidth(); + v = (void*)((char*)v + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags) +{ + if (format == NULL) + format = "%.0f deg"; + float v_deg = (*v_rad) * 360.0f / (2 * IM_PI); + bool value_changed = SliderFloat(label, &v_deg, v_degrees_min, v_degrees_max, format, flags); + *v_rad = v_deg * (2 * IM_PI) / 360.0f; + return value_changed; +} + +bool ImGui::SliderInt(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + size); + const ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + ItemSize(bb, style.FramePadding.y); + if (!ItemAdd(frame_bb, id)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id); + const bool clicked = hovered && IsMouseClicked(0, id); + if (clicked || g.NavActivateId == id || g.NavActivateInputId == id) + { + if (clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags | ImGuiSliderFlags_Vertical, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.y > grab_bb.Min.y) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + // For the vertical slider we allow centered text to overlap the frame padding + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.0f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + return value_changed; +} + +bool ImGui::VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, size, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, size, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +//------------------------------------------------------------------------- +// - ImParseFormatFindStart() [Internal] +// - ImParseFormatFindEnd() [Internal] +// - ImParseFormatTrimDecorations() [Internal] +// - ImParseFormatSanitizeForPrinting() [Internal] +// - ImParseFormatSanitizeForScanning() [Internal] +// - ImParseFormatPrecision() [Internal] +// - TempInputTextScalar() [Internal] +// - InputScalar() +// - InputScalarN() +// - InputFloat() +// - InputFloat2() +// - InputFloat3() +// - InputFloat4() +// - InputInt() +// - InputInt2() +// - InputInt3() +// - InputInt4() +// - InputDouble() +//------------------------------------------------------------------------- + +// We don't use strchr() because our strings are usually very short and often start with '%' +const char* ImParseFormatFindStart(const char* fmt) +{ + while (char c = fmt[0]) + { + if (c == '%' && fmt[1] != '%') + return fmt; + else if (c == '%') + fmt++; + fmt++; + } + return fmt; +} + +const char* ImParseFormatFindEnd(const char* fmt) +{ + // Printf/scanf types modifiers: I/L/h/j/l/t/w/z. Other uppercase letters qualify as types aka end of the format. + if (fmt[0] != '%') + return fmt; + const unsigned int ignored_uppercase_mask = (1 << ('I'-'A')) | (1 << ('L'-'A')); + const unsigned int ignored_lowercase_mask = (1 << ('h'-'a')) | (1 << ('j'-'a')) | (1 << ('l'-'a')) | (1 << ('t'-'a')) | (1 << ('w'-'a')) | (1 << ('z'-'a')); + for (char c; (c = *fmt) != 0; fmt++) + { + if (c >= 'A' && c <= 'Z' && ((1 << (c - 'A')) & ignored_uppercase_mask) == 0) + return fmt + 1; + if (c >= 'a' && c <= 'z' && ((1 << (c - 'a')) & ignored_lowercase_mask) == 0) + return fmt + 1; + } + return fmt; +} + +// Extract the format out of a format string with leading or trailing decorations +// fmt = "blah blah" -> return fmt +// fmt = "%.3f" -> return fmt +// fmt = "hello %.3f" -> return fmt + 6 +// fmt = "%.3f hello" -> return buf written with "%.3f" +const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_size) +{ + const char* fmt_start = ImParseFormatFindStart(fmt); + if (fmt_start[0] != '%') + return fmt; + const char* fmt_end = ImParseFormatFindEnd(fmt_start); + if (fmt_end[0] == 0) // If we only have leading decoration, we don't need to copy the data. + return fmt_start; + ImStrncpy(buf, fmt_start, ImMin((size_t)(fmt_end - fmt_start) + 1, buf_size)); + return buf; +} + +// Sanitize format +// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi +// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi. +void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate +} + +// - For scanning we need to remove all width and precision fields "%3.7f" -> "%f". BUT don't strip types like "%I64d" which includes digits. ! "%07I64d" -> "%I64d" +const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + const char* fmt_out_begin = fmt_out; + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + bool has_type = false; + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (!has_type && ((c >= '0' && c <= '9') || c == '.')) + continue; + has_type |= ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')); // Stop skipping digits + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate + return fmt_out_begin; +} + +template +static const char* ImAtoi(const char* src, TYPE* output) +{ + int negative = 0; + if (*src == '-') { negative = 1; src++; } + if (*src == '+') { src++; } + TYPE v = 0; + while (*src >= '0' && *src <= '9') + v = (v * 10) + (*src++ - '0'); + *output = negative ? -v : v; + return src; +} + +// Parse display precision back from the display format string +// FIXME: This is still used by some navigation code path to infer a minimum tweak step, but we should aim to rework widgets so it isn't needed. +int ImParseFormatPrecision(const char* fmt, int default_precision) +{ + fmt = ImParseFormatFindStart(fmt); + if (fmt[0] != '%') + return default_precision; + fmt++; + while (*fmt >= '0' && *fmt <= '9') + fmt++; + int precision = INT_MAX; + if (*fmt == '.') + { + fmt = ImAtoi(fmt + 1, &precision); + if (precision < 0 || precision > 99) + precision = default_precision; + } + if (*fmt == 'e' || *fmt == 'E') // Maximum precision with scientific notation + precision = -1; + if ((*fmt == 'g' || *fmt == 'G') && precision == INT_MAX) + precision = -1; + return (precision == INT_MAX) ? default_precision : precision; +} + +// Create text input in place of another active widget (e.g. used when doing a CTRL+Click on drag/slider widgets) +// FIXME: Facilitate using this in variety of other situations. +bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags) +{ + // On the first frame, g.TempInputTextId == 0, then on subsequent frames it becomes == id. + // We clear ActiveID on the first frame to allow the InputText() taking it back. + ImGuiContext& g = *GImGui; + const bool init = (g.TempInputId != id); + if (init) + ClearActiveID(); + + g.CurrentWindow->DC.CursorPos = bb.Min; + bool value_changed = InputTextEx(label, NULL, buf, buf_size, bb.GetSize(), flags | ImGuiInputTextFlags_MergedItem); + if (init) + { + // First frame we started displaying the InputText widget, we expect it to take the active id. + IM_ASSERT(g.ActiveId == id); + g.TempInputId = g.ActiveId; + } + return value_changed; +} + +static inline ImGuiInputTextFlags InputScalar_DefaultCharsFilter(ImGuiDataType data_type, const char* format) +{ + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + return ImGuiInputTextFlags_CharsScientific; + const char format_last_char = format[0] ? format[strlen(format) - 1] : 0; + return (format_last_char == 'x' || format_last_char == 'X') ? ImGuiInputTextFlags_CharsHexadecimal : ImGuiInputTextFlags_CharsDecimal; +} + +// Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set! +// This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility. +// However this may not be ideal for all uses, as some user code may break on out of bound values. +bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max) +{ + char fmt_buf[32]; + char data_buf[32]; + format = ImParseFormatTrimDecorations(format, fmt_buf, IM_ARRAYSIZE(fmt_buf)); + DataTypeFormatString(data_buf, IM_ARRAYSIZE(data_buf), data_type, p_data, format); + ImStrTrimBlanks(data_buf); + + ImGuiInputTextFlags flags = ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; + flags |= InputScalar_DefaultCharsFilter(data_type, format); + + bool value_changed = false; + if (TempInputText(bb, id, label, data_buf, IM_ARRAYSIZE(data_buf), flags)) + { + // Backup old value + size_t data_type_size = DataTypeGetInfo(data_type)->Size; + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, data_type_size); + + // Apply new value (or operations) then clamp + DataTypeApplyFromText(data_buf, data_type, p_data, format); + if (p_clamp_min || p_clamp_max) + { + if (p_clamp_min && p_clamp_max && DataTypeCompare(data_type, p_clamp_min, p_clamp_max) > 0) + ImSwap(p_clamp_min, p_clamp_max); + DataTypeClamp(data_type, p_data, p_clamp_min, p_clamp_max); + } + + // Only mark as edited if new value is different + value_changed = memcmp(&data_backup, p_data, data_type_size) != 0; + if (value_changed) + MarkItemEdited(id); + } + return value_changed; +} + +// Note: p_data, p_step, p_step_fast are _pointers_ to a memory address holding the data. For an Input widget, p_step and p_step_fast are optional. +// Read code of e.g. InputFloat(), InputInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + char buf[64]; + DataTypeFormatString(buf, IM_ARRAYSIZE(buf), data_type, p_data, format); + + // Testing ActiveId as a minor optimization as filtering is not needed until active + if (g.ActiveId == 0 && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) + flags |= InputScalar_DefaultCharsFilter(data_type, format); + flags |= ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. + + bool value_changed = false; + if (p_step != NULL) + { + const float button_size = GetFrameHeight(); + + BeginGroup(); // The only purpose of the group here is to allow the caller to query item data e.g. IsItemActive() + PushID(label); + SetNextItemWidth(ImMax(1.0f, CalcItemWidth() - (button_size + style.ItemInnerSpacing.x) * 2)); + if (InputText("", buf, IM_ARRAYSIZE(buf), flags)) // PushId(label) + "" gives us the expected ID from outside point of view + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags); + + // Step buttons + const ImVec2 backup_frame_padding = style.FramePadding; + style.FramePadding.x = style.FramePadding.y; + ImGuiButtonFlags button_flags = ImGuiButtonFlags_Repeat | ImGuiButtonFlags_DontClosePopups; + if (flags & ImGuiInputTextFlags_ReadOnly) + BeginDisabled(); + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("-", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '-', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("+", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '+', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + if (flags & ImGuiInputTextFlags_ReadOnly) + EndDisabled(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + style.FramePadding = backup_frame_padding; + + PopID(); + EndGroup(); + } + else + { + if (InputText(label, buf, IM_ARRAYSIZE(buf), flags)) + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + } + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +bool ImGui::InputScalarN(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) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= InputScalar("", data_type, p_data, p_step, p_step_fast, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0.0f, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Float, (void*)v, (void*)(step > 0.0f ? &step : NULL), (void*)(step_fast > 0.0f ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputFloat2(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 2, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat3(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 3, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat4(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 4, NULL, NULL, format, flags); +} + +bool ImGui::InputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags) +{ + // Hexadecimal input provided as a convenience but the flag name is awkward. Typically you'd use InputText() to parse your own data, if you want to handle prefixes. + const char* format = (flags & ImGuiInputTextFlags_CharsHexadecimal) ? "%08X" : "%d"; + return InputScalar(label, ImGuiDataType_S32, (void*)v, (void*)(step > 0 ? &step : NULL), (void*)(step_fast > 0 ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 2, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 3, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 4, NULL, NULL, "%d", flags); +} + +bool ImGui::InputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Double, (void*)v, (void*)(step > 0.0 ? &step : NULL), (void*)(step_fast > 0.0 ? &step_fast : NULL), format, flags); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputText, InputTextMultiline, InputTextWithHint +//------------------------------------------------------------------------- +// - InputText() +// - InputTextWithHint() +// - InputTextMultiline() +// - InputTextGetCharInfo() [Internal] +// - InputTextReindexLines() [Internal] +// - InputTextReindexLinesRange() [Internal] +// - InputTextEx() [Internal] +// - DebugNodeInputTextState() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() + return InputTextEx(label, NULL, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + return InputTextEx(label, NULL, buf, (int)buf_size, size, flags | ImGuiInputTextFlags_Multiline, callback, user_data); +} + +bool ImGui::InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() or InputTextEx() manually if you need multi-line + hint. + return InputTextEx(label, hint, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end) +{ + int line_count = 0; + const char* s = text_begin; + while (char c = *s++) // We are only matching for \n so we can ignore UTF-8 decoding + if (c == '\n') + line_count++; + s--; + if (s[0] != '\n' && s[0] != '\r') + line_count++; + *out_text_end = s; + return line_count; +} + +static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining, ImVec2* out_offset, bool stop_on_new_line) +{ + ImGuiContext& g = *GImGui; + ImFont* font = g.Font; + const float line_height = g.FontSize; + const float scale = line_height / font->FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const ImWchar* s = text_begin; + while (s < text_end) + { + unsigned int c = (unsigned int)(*s++); + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + if (stop_on_new_line) + break; + continue; + } + if (c == '\r') + continue; + + const float char_width = font->GetCharAdvance((ImWchar)c) * scale; + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (out_offset) + *out_offset = ImVec2(line_width, text_size.y + line_height); // offset allow for the possibility of sitting after a trailing \n + + if (line_width > 0 || text_size.y == 0.0f) // whereas size.y will ignore the trailing \n + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +// Wrapper for stb_textedit.h to edit text (our wrapper is for: statically sized buffer, single-line, wchar characters. InputText converts between UTF-8 and wchar) +namespace ImStb +{ + +static int STB_TEXTEDIT_STRINGLEN(const ImGuiInputTextState* obj) { return obj->CurLenW; } +static ImWchar STB_TEXTEDIT_GETCHAR(const ImGuiInputTextState* obj, int idx) { return obj->TextW[idx]; } +static float STB_TEXTEDIT_GETWIDTH(ImGuiInputTextState* obj, int line_start_idx, int char_idx) { ImWchar c = obj->TextW[line_start_idx + char_idx]; if (c == '\n') return STB_TEXTEDIT_GETWIDTH_NEWLINE; ImGuiContext& g = *GImGui; return g.Font->GetCharAdvance(c) * (g.FontSize / g.Font->FontSize); } +static int STB_TEXTEDIT_KEYTOTEXT(int key) { return key >= 0x200000 ? 0 : key; } +static ImWchar STB_TEXTEDIT_NEWLINE = '\n'; +static void STB_TEXTEDIT_LAYOUTROW(StbTexteditRow* r, ImGuiInputTextState* obj, int line_start_idx) +{ + const ImWchar* text = obj->TextW.Data; + const ImWchar* text_remaining = NULL; + const ImVec2 size = InputTextCalcTextSizeW(text + line_start_idx, text + obj->CurLenW, &text_remaining, NULL, true); + r->x0 = 0.0f; + r->x1 = size.x; + r->baseline_y_delta = size.y; + r->ymin = 0.0f; + r->ymax = size.y; + r->num_chars = (int)(text_remaining - (text + line_start_idx)); +} + +// When ImGuiInputTextFlags_Password is set, we don't want actions such as CTRL+Arrow to leak the fact that underlying data are blanks or separators. +static bool is_separator(unsigned int c) { return ImCharIsBlankW(c) || c==',' || c==';' || c=='(' || c==')' || c=='{' || c=='}' || c=='[' || c==']' || c=='|' || c=='\n' || c=='\r'; } +static int is_word_boundary_from_right(ImGuiInputTextState* obj, int idx) { if (obj->Flags & ImGuiInputTextFlags_Password) return 0; return idx > 0 ? (is_separator(obj->TextW[idx - 1]) && !is_separator(obj->TextW[idx]) ) : 1; } +static int is_word_boundary_from_left(ImGuiInputTextState* obj, int idx) { if (obj->Flags & ImGuiInputTextFlags_Password) return 0; return idx > 0 ? (!is_separator(obj->TextW[idx - 1]) && is_separator(obj->TextW[idx])) : 1; } +static int STB_TEXTEDIT_MOVEWORDLEFT_IMPL(ImGuiInputTextState* obj, int idx) { idx--; while (idx >= 0 && !is_word_boundary_from_right(obj, idx)) idx--; return idx < 0 ? 0 : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_MAC(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_left(obj, idx)) idx++; return idx > len ? len : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_WIN(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_right(obj, idx)) idx++; return idx > len ? len : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(ImGuiInputTextState* obj, int idx) { if (ImGui::GetIO().ConfigMacOSXBehaviors) return STB_TEXTEDIT_MOVEWORDRIGHT_MAC(obj, idx); else return STB_TEXTEDIT_MOVEWORDRIGHT_WIN(obj, idx); } +#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h +#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_IMPL + +static void STB_TEXTEDIT_DELETECHARS(ImGuiInputTextState* obj, int pos, int n) +{ + ImWchar* dst = obj->TextW.Data + pos; + + // We maintain our buffer length in both UTF-8 and wchar formats + obj->Edited = true; + obj->CurLenA -= ImTextCountUtf8BytesFromStr(dst, dst + n); + obj->CurLenW -= n; + + // Offset remaining text (FIXME-OPT: Use memmove) + const ImWchar* src = obj->TextW.Data + pos + n; + while (ImWchar c = *src++) + *dst++ = c; + *dst = '\0'; +} + +static bool STB_TEXTEDIT_INSERTCHARS(ImGuiInputTextState* obj, int pos, const ImWchar* new_text, int new_text_len) +{ + const bool is_resizable = (obj->Flags & ImGuiInputTextFlags_CallbackResize) != 0; + const int text_len = obj->CurLenW; + IM_ASSERT(pos <= text_len); + + const int new_text_len_utf8 = ImTextCountUtf8BytesFromStr(new_text, new_text + new_text_len); + if (!is_resizable && (new_text_len_utf8 + obj->CurLenA + 1 > obj->BufCapacityA)) + return false; + + // Grow internal buffer if needed + if (new_text_len + text_len + 1 > obj->TextW.Size) + { + if (!is_resizable) + return false; + IM_ASSERT(text_len < obj->TextW.Size); + obj->TextW.resize(text_len + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1); + } + + ImWchar* text = obj->TextW.Data; + if (pos != text_len) + memmove(text + pos + new_text_len, text + pos, (size_t)(text_len - pos) * sizeof(ImWchar)); + memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar)); + + obj->Edited = true; + obj->CurLenW += new_text_len; + obj->CurLenA += new_text_len_utf8; + obj->TextW[obj->CurLenW] = '\0'; + + return true; +} + +// We don't use an enum so we can build even with conflicting symbols (if another user of stb_textedit.h leak their STB_TEXTEDIT_K_* symbols) +#define STB_TEXTEDIT_K_LEFT 0x200000 // keyboard input to move cursor left +#define STB_TEXTEDIT_K_RIGHT 0x200001 // keyboard input to move cursor right +#define STB_TEXTEDIT_K_UP 0x200002 // keyboard input to move cursor up +#define STB_TEXTEDIT_K_DOWN 0x200003 // keyboard input to move cursor down +#define STB_TEXTEDIT_K_LINESTART 0x200004 // keyboard input to move cursor to start of line +#define STB_TEXTEDIT_K_LINEEND 0x200005 // keyboard input to move cursor to end of line +#define STB_TEXTEDIT_K_TEXTSTART 0x200006 // keyboard input to move cursor to start of text +#define STB_TEXTEDIT_K_TEXTEND 0x200007 // keyboard input to move cursor to end of text +#define STB_TEXTEDIT_K_DELETE 0x200008 // keyboard input to delete selection or character under cursor +#define STB_TEXTEDIT_K_BACKSPACE 0x200009 // keyboard input to delete selection or character left of cursor +#define STB_TEXTEDIT_K_UNDO 0x20000A // keyboard input to perform undo +#define STB_TEXTEDIT_K_REDO 0x20000B // keyboard input to perform redo +#define STB_TEXTEDIT_K_WORDLEFT 0x20000C // keyboard input to move cursor left one word +#define STB_TEXTEDIT_K_WORDRIGHT 0x20000D // keyboard input to move cursor right one word +#define STB_TEXTEDIT_K_PGUP 0x20000E // keyboard input to move cursor up a page +#define STB_TEXTEDIT_K_PGDOWN 0x20000F // keyboard input to move cursor down a page +#define STB_TEXTEDIT_K_SHIFT 0x400000 + +#define STB_TEXTEDIT_IMPLEMENTATION +#include "imstb_textedit.h" + +// stb_textedit internally allows for a single undo record to do addition and deletion, but somehow, calling +// the stb_textedit_paste() function creates two separate records, so we perform it manually. (FIXME: Report to nothings/stb?) +static void stb_textedit_replace(ImGuiInputTextState* str, STB_TexteditState* state, const STB_TEXTEDIT_CHARTYPE* text, int text_len) +{ + stb_text_makeundo_replace(str, state, 0, str->CurLenW, text_len); + ImStb::STB_TEXTEDIT_DELETECHARS(str, 0, str->CurLenW); + state->cursor = state->select_start = state->select_end = 0; + if (text_len <= 0) + return; + if (ImStb::STB_TEXTEDIT_INSERTCHARS(str, 0, text, text_len)) + { + state->cursor = state->select_start = state->select_end = text_len; + state->has_preferred_x = 0; + return; + } + IM_ASSERT(0); // Failed to insert character, normally shouldn't happen because of how we currently use stb_textedit_replace() +} + +} // namespace ImStb + +void ImGuiInputTextState::OnKeyPressed(int key) +{ + stb_textedit_key(this, &Stb, key); + CursorFollow = true; + CursorAnimReset(); +} + +ImGuiInputTextCallbackData::ImGuiInputTextCallbackData() +{ + memset(this, 0, sizeof(*this)); +} + +// Public API to manipulate UTF-8 text +// We expose UTF-8 to the user (unlike the STB_TEXTEDIT_* functions which are manipulating wchar) +// FIXME: The existence of this rarely exercised code path is a bit of a nuisance. +void ImGuiInputTextCallbackData::DeleteChars(int pos, int bytes_count) +{ + IM_ASSERT(pos + bytes_count <= BufTextLen); + char* dst = Buf + pos; + const char* src = Buf + pos + bytes_count; + while (char c = *src++) + *dst++ = c; + *dst = '\0'; + + if (CursorPos >= pos + bytes_count) + CursorPos -= bytes_count; + else if (CursorPos >= pos) + CursorPos = pos; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen -= bytes_count; +} + +void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_end) +{ + const bool is_resizable = (Flags & ImGuiInputTextFlags_CallbackResize) != 0; + const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text); + if (new_text_len + BufTextLen >= BufSize) + { + if (!is_resizable) + return; + + // Contrary to STB_TEXTEDIT_INSERTCHARS() this is working in the UTF8 buffer, hence the mildly similar code (until we remove the U16 buffer altogether!) + ImGuiContext& g = *GImGui; + ImGuiInputTextState* edit_state = &g.InputTextState; + IM_ASSERT(edit_state->ID != 0 && g.ActiveId == edit_state->ID); + IM_ASSERT(Buf == edit_state->TextA.Data); + int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; + edit_state->TextA.reserve(new_buf_size + 1); + Buf = edit_state->TextA.Data; + BufSize = edit_state->BufCapacityA = new_buf_size; + } + + if (BufTextLen != pos) + memmove(Buf + pos + new_text_len, Buf + pos, (size_t)(BufTextLen - pos)); + memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char)); + Buf[BufTextLen + new_text_len] = '\0'; + + if (CursorPos >= pos) + CursorPos += new_text_len; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen += new_text_len; +} + +// Return false to discard a character. +static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data, ImGuiInputSource input_source) +{ + IM_ASSERT(input_source == ImGuiInputSource_Keyboard || input_source == ImGuiInputSource_Clipboard); + unsigned int c = *p_char; + + // Filter non-printable (NB: isprint is unreliable! see #2467) + bool apply_named_filters = true; + if (c < 0x20) + { + bool pass = false; + pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); // Note that an Enter KEY will emit \r and be ignored (we poll for KEY in InputText() code) + pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput)); + if (!pass) + return false; + apply_named_filters = false; // Override named filters below so newline and tabs can still be inserted. + } + + if (input_source != ImGuiInputSource_Clipboard) + { + // We ignore Ascii representation of delete (emitted from Backspace on OSX, see #2578, #2817) + if (c == 127) + return false; + + // Filter private Unicode range. GLFW on OSX seems to send private characters for special keys like arrow keys (FIXME) + if (c >= 0xE000 && c <= 0xF8FF) + return false; + } + + // Filter Unicode ranges we are not handling in this build + if (c > IM_UNICODE_CODEPOINT_MAX) + return false; + + // Generic named filters + if (apply_named_filters && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase | ImGuiInputTextFlags_CharsNoBlank | ImGuiInputTextFlags_CharsScientific))) + { + // The libc allows overriding locale, with e.g. 'setlocale(LC_NUMERIC, "de_DE.UTF-8");' which affect the output/input of printf/scanf to use e.g. ',' instead of '.'. + // The standard mandate that programs starts in the "C" locale where the decimal point is '.'. + // We don't really intend to provide widespread support for it, but out of empathy for people stuck with using odd API, we support the bare minimum aka overriding the decimal point. + // Change the default decimal_point with: + // ImGui::GetCurrentContext()->PlatformLocaleDecimalPoint = *localeconv()->decimal_point; + // Users of non-default decimal point (in particular ',') may be affected by word-selection logic (is_word_boundary_from_right/is_word_boundary_from_left) functions. + ImGuiContext& g = *GImGui; + const unsigned c_decimal_point = (unsigned int)g.PlatformLocaleDecimalPoint; + + // Full-width -> half-width conversion for numeric fields (https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block) + // While this is mostly convenient, this has the side-effect for uninformed users accidentally inputting full-width characters that they may + // scratch their head as to why it works in numerical fields vs in generic text fields it would require support in the font. + if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsScientific | ImGuiInputTextFlags_CharsHexadecimal)) + if (c >= 0xFF01 && c <= 0xFF5E) + c = c - 0xFF01 + 0x21; + + // Allow 0-9 . - + * / + if (flags & ImGuiInputTextFlags_CharsDecimal) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/')) + return false; + + // Allow 0-9 . - + * / e E + if (flags & ImGuiInputTextFlags_CharsScientific) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/') && (c != 'e') && (c != 'E')) + return false; + + // Allow 0-9 a-F A-F + if (flags & ImGuiInputTextFlags_CharsHexadecimal) + if (!(c >= '0' && c <= '9') && !(c >= 'a' && c <= 'f') && !(c >= 'A' && c <= 'F')) + return false; + + // Turn a-z into A-Z + if (flags & ImGuiInputTextFlags_CharsUppercase) + if (c >= 'a' && c <= 'z') + c += (unsigned int)('A' - 'a'); + + if (flags & ImGuiInputTextFlags_CharsNoBlank) + if (ImCharIsBlankW(c)) + return false; + + *p_char = c; + } + + // Custom callback filter + if (flags & ImGuiInputTextFlags_CallbackCharFilter) + { + ImGuiInputTextCallbackData callback_data; + memset(&callback_data, 0, sizeof(ImGuiInputTextCallbackData)); + callback_data.EventFlag = ImGuiInputTextFlags_CallbackCharFilter; + callback_data.EventChar = (ImWchar)c; + callback_data.Flags = flags; + callback_data.UserData = user_data; + if (callback(&callback_data) != 0) + return false; + *p_char = callback_data.EventChar; + if (!callback_data.EventChar) + return false; + } + + return true; +} + +// Find the shortest single replacement we can make to get the new text from the old text. +// Important: needs to be run before TextW is rewritten with the new characters because calling STB_TEXTEDIT_GETCHAR() at the end. +// FIXME: Ideally we should transition toward (1) making InsertChars()/DeleteChars() update undo-stack (2) discourage (and keep reconcile) or obsolete (and remove reconcile) accessing buffer directly. +static void InputTextReconcileUndoStateAfterUserCallback(ImGuiInputTextState* state, const char* new_buf_a, int new_length_a) +{ + ImGuiContext& g = *GImGui; + const ImWchar* old_buf = state->TextW.Data; + const int old_length = state->CurLenW; + const int new_length = ImTextCountCharsFromUtf8(new_buf_a, new_buf_a + new_length_a); + g.TempBuffer.reserve_discard((new_length + 1) * sizeof(ImWchar)); + ImWchar* new_buf = (ImWchar*)(void*)g.TempBuffer.Data; + ImTextStrFromUtf8(new_buf, new_length + 1, new_buf_a, new_buf_a + new_length_a); + + const int shorter_length = ImMin(old_length, new_length); + int first_diff; + for (first_diff = 0; first_diff < shorter_length; first_diff++) + if (old_buf[first_diff] != new_buf[first_diff]) + break; + if (first_diff == old_length && first_diff == new_length) + return; + + int old_last_diff = old_length - 1; + int new_last_diff = new_length - 1; + for (; old_last_diff >= first_diff && new_last_diff >= first_diff; old_last_diff--, new_last_diff--) + if (old_buf[old_last_diff] != new_buf[new_last_diff]) + break; + + const int insert_len = new_last_diff - first_diff + 1; + const int delete_len = old_last_diff - first_diff + 1; + if (insert_len > 0 || delete_len > 0) + if (STB_TEXTEDIT_CHARTYPE* p = stb_text_createundo(&state->Stb.undostate, first_diff, delete_len, insert_len)) + for (int i = 0; i < delete_len; i++) + p[i] = ImStb::STB_TEXTEDIT_GETCHAR(state, first_diff + i); +} + +// Edit a string of text +// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". +// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match +// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator. +// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect. +// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h +// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are +// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188) +bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* callback_user_data) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + IM_ASSERT(buf != NULL && buf_size >= 0); + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackHistory) && (flags & ImGuiInputTextFlags_Multiline))); // Can't use both together (they both use up/down keys) + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackCompletion) && (flags & ImGuiInputTextFlags_AllowTabInput))); // Can't use both together (they both use tab key) + + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + const ImGuiStyle& style = g.Style; + + const bool RENDER_SELECTION_WHEN_INACTIVE = false; + const bool is_multiline = (flags & ImGuiInputTextFlags_Multiline) != 0; + const bool is_readonly = (flags & ImGuiInputTextFlags_ReadOnly) != 0; + const bool is_password = (flags & ImGuiInputTextFlags_Password) != 0; + const bool is_undoable = (flags & ImGuiInputTextFlags_NoUndoRedo) == 0; + const bool is_resizable = (flags & ImGuiInputTextFlags_CallbackResize) != 0; + if (is_resizable) + IM_ASSERT(callback != NULL); // Must provide a callback if you set the ImGuiInputTextFlags_CallbackResize flag! + + if (is_multiline) // Open group before calling GetID() because groups tracks id created within their scope (including the scrollbar) + BeginGroup(); + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImVec2 frame_size = CalcItemSize(size_arg, CalcItemWidth(), (is_multiline ? g.FontSize * 8.0f : label_size.y) + style.FramePadding.y * 2.0f); // Arbitrary default of 8 lines high for multi-line + const ImVec2 total_size = ImVec2(frame_size.x + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), frame_size.y); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect total_bb(frame_bb.Min, frame_bb.Min + total_size); + + ImGuiWindow* draw_window = window; + ImVec2 inner_size = frame_size; + ImGuiItemStatusFlags item_status_flags = 0; + ImGuiLastItemData item_data_backup; + if (is_multiline) + { + ImVec2 backup_pos = window->DC.CursorPos; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, ImGuiItemFlags_Inputable)) + { + EndGroup(); + return false; + } + item_status_flags = g.LastItemData.StatusFlags; + item_data_backup = g.LastItemData; + window->DC.CursorPos = backup_pos; + + // We reproduce the contents of BeginChildFrame() in order to provide 'label' so our window internal data are easier to read/debug. + // FIXME-NAV: Pressing NavActivate will trigger general child activation right before triggering our own below. Harmless but bizarre. + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); // Ensure no clip rect so mouse hover can reach FramePadding edges + bool child_visible = BeginChildEx(label, id, frame_bb.GetSize(), true, ImGuiWindowFlags_NoMove); + PopStyleVar(3); + PopStyleColor(); + if (!child_visible) + { + EndChild(); + EndGroup(); + return false; + } + draw_window = g.CurrentWindow; // Child window + draw_window->DC.NavLayersActiveMaskNext |= (1 << draw_window->DC.NavLayerCurrent); // This is to ensure that EndChild() will display a navigation highlight so we can "enter" into it. + draw_window->DC.CursorPos += style.FramePadding; + inner_size.x -= draw_window->ScrollbarSizes.x; + } + else + { + // Support for internal ImGuiInputTextFlags_MergedItem flag, which could be redesigned as an ItemFlags if needed (with test performed in ItemAdd) + ItemSize(total_bb, style.FramePadding.y); + if (!(flags & ImGuiInputTextFlags_MergedItem)) + if (!ItemAdd(total_bb, id, &frame_bb, ImGuiItemFlags_Inputable)) + return false; + item_status_flags = g.LastItemData.StatusFlags; + } + const bool hovered = ItemHoverable(frame_bb, id); + if (hovered) + g.MouseCursor = ImGuiMouseCursor_TextInput; + + // We are only allowed to access the state if we are already the active widget. + ImGuiInputTextState* state = GetInputTextState(id); + + const bool input_requested_by_tabbing = (item_status_flags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool input_requested_by_nav = (g.ActiveId != id) && ((g.NavActivateInputId == id) || (g.NavActivateId == id && g.NavInputSource == ImGuiInputSource_Keyboard)); + + const bool user_clicked = hovered && io.MouseClicked[0]; + const bool user_scroll_finish = is_multiline && state != NULL && g.ActiveId == 0 && g.ActiveIdPreviousFrame == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + const bool user_scroll_active = is_multiline && state != NULL && g.ActiveId == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + bool clear_active_id = false; + bool select_all = false; + + float scroll_y = is_multiline ? draw_window->Scroll.y : FLT_MAX; + + const bool init_changed_specs = (state != NULL && state->Stb.single_line != !is_multiline); + const bool init_make_active = (user_clicked || user_scroll_finish || input_requested_by_nav || input_requested_by_tabbing); + const bool init_state = (init_make_active || user_scroll_active); + if ((init_state && g.ActiveId != id) || init_changed_specs) + { + // Access state even if we don't own it yet. + state = &g.InputTextState; + state->CursorAnimReset(); + + // Take a copy of the initial buffer value (both in original UTF-8 format and converted to wchar) + // From the moment we focused we are ignoring the content of 'buf' (unless we are in read-only mode) + const int buf_len = (int)strlen(buf); + state->InitialTextA.resize(buf_len + 1); // UTF-8. we use +1 to make sure that .Data is always pointing to at least an empty string. + memcpy(state->InitialTextA.Data, buf, buf_len + 1); + + // Preserve cursor position and undo/redo stack if we come back to same widget + // FIXME: Since we reworked this on 2022/06, may want to differenciate recycle_cursor vs recycle_undostate? + bool recycle_state = (state->ID == id && !init_changed_specs); + if (recycle_state && (state->CurLenA != buf_len || (state->TextAIsValid && strncmp(state->TextA.Data, buf, buf_len) != 0))) + recycle_state = false; + + // Start edition + const char* buf_end = NULL; + state->ID = id; + state->TextW.resize(buf_size + 1); // wchar count <= UTF-8 count. we use +1 to make sure that .Data is always pointing to at least an empty string. + state->TextA.resize(0); + state->TextAIsValid = false; // TextA is not valid yet (we will display buf until then) + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, buf_size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); // We can't get the result from ImStrncpy() above because it is not UTF-8 aware. Here we'll cut off malformed UTF-8. + + if (recycle_state) + { + // Recycle existing cursor/selection/undo stack but clamp position + // Note a single mouse click will override the cursor/position immediately by calling stb_textedit_click handler. + state->CursorClamp(); + } + else + { + state->ScrollX = 0.0f; + stb_textedit_initialize_state(&state->Stb, !is_multiline); + } + + if (!is_multiline) + { + if (flags & ImGuiInputTextFlags_AutoSelectAll) + select_all = true; + if (input_requested_by_nav && (!recycle_state || !(g.NavActivateFlags & ImGuiActivateFlags_TryToPreserveState))) + select_all = true; + if (input_requested_by_tabbing || (user_clicked && io.KeyCtrl)) + select_all = true; + } + + if (flags & ImGuiInputTextFlags_AlwaysOverwrite) + state->Stb.insert_mode = 1; // stb field name is indeed incorrect (see #2863) + } + + if (g.ActiveId != id && init_make_active) + { + IM_ASSERT(state && state->ID == id); + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + } + if (g.ActiveId == id) + { + // Declare some inputs, the other are registered and polled via Shortcut() routing system. + if (user_clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + if (is_multiline || (flags & ImGuiInputTextFlags_CallbackHistory)) + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + SetKeyOwner(ImGuiKey_Home, id); + SetKeyOwner(ImGuiKey_End, id); + if (is_multiline) + { + SetKeyOwner(ImGuiKey_PageUp, id); + SetKeyOwner(ImGuiKey_PageDown, id); + } + if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. + SetKeyOwner(ImGuiKey_Tab, id); + } + + // We have an edge case if ActiveId was set through another widget (e.g. widget being swapped), clear id immediately (don't wait until the end of the function) + if (g.ActiveId == id && state == NULL) + ClearActiveID(); + + // Release focus when we click outside + if (g.ActiveId == id && io.MouseClicked[0] && !init_state && !init_make_active) //-V560 + clear_active_id = true; + + // Lock the decision of whether we are going to take the path displaying the cursor or selection + bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); + bool render_selection = state && (state->HasSelection() || select_all) && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + bool value_changed = false; + bool validated = false; + + // When read-only we always use the live data passed to the function + // FIXME-OPT: Because our selection/cursor code currently needs the wide text we need to convert it when active, which is not ideal :( + if (is_readonly && state != NULL && (render_cursor || render_selection)) + { + const char* buf_end = NULL; + state->TextW.resize(buf_size + 1); + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); + state->CursorClamp(); + render_selection &= state->HasSelection(); + } + + // Select the buffer to render. + const bool buf_display_from_state = (render_cursor || render_selection || g.ActiveId == id) && !is_readonly && state && state->TextAIsValid; + const bool is_displaying_hint = (hint != NULL && (buf_display_from_state ? state->TextA.Data : buf)[0] == 0); + + // Password pushes a temporary font with only a fallback glyph + if (is_password && !is_displaying_hint) + { + const ImFontGlyph* glyph = g.Font->FindGlyph('*'); + ImFont* password_font = &g.InputTextPasswordFont; + password_font->FontSize = g.Font->FontSize; + password_font->Scale = g.Font->Scale; + password_font->Ascent = g.Font->Ascent; + password_font->Descent = g.Font->Descent; + password_font->ContainerAtlas = g.Font->ContainerAtlas; + password_font->FallbackGlyph = glyph; + password_font->FallbackAdvanceX = glyph->AdvanceX; + IM_ASSERT(password_font->Glyphs.empty() && password_font->IndexAdvanceX.empty() && password_font->IndexLookup.empty()); + PushFont(password_font); + } + + // Process mouse inputs and character inputs + int backup_current_text_length = 0; + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + backup_current_text_length = state->CurLenA; + state->Edited = false; + state->BufCapacityA = buf_size; + state->Flags = flags; + + // Although we are active we don't prevent mouse from hovering other elements unless we are interacting right now with the widget. + // Down the line we should have a cleaner library-wide concept of Selected vs Active. + g.ActiveIdAllowOverlap = !io.MouseDown[0]; + g.WantTextInputNextFrame = 1; + + // Edit in progress + const float mouse_x = (io.MousePos.x - frame_bb.Min.x - style.FramePadding.x) + state->ScrollX; + const float mouse_y = (is_multiline ? (io.MousePos.y - draw_window->DC.CursorPos.y) : (g.FontSize * 0.5f)); + + const bool is_osx = io.ConfigMacOSXBehaviors; + if (select_all) + { + state->SelectAll(); + state->SelectedAllMouseLock = true; + } + else if (hovered && io.MouseClickedCount[0] >= 2 && !io.KeyShift) + { + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + const int multiclick_count = (io.MouseClickedCount[0] - 2); + if ((multiclick_count % 2) == 0) + { + // Double-click: Select word + // We always use the "Mac" word advance for double-click select vs CTRL+Right which use the platform dependent variant: + // FIXME: There are likely many ways to improve this behavior, but there's no "right" behavior (depends on use-case, software, OS) + const bool is_bol = (state->Stb.cursor == 0) || ImStb::STB_TEXTEDIT_GETCHAR(state, state->Stb.cursor - 1) == '\n'; + if (STB_TEXT_HAS_SELECTION(&state->Stb) || !is_bol) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT); + //state->OnKeyPressed(STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT); + if (!STB_TEXT_HAS_SELECTION(&state->Stb)) + ImStb::stb_textedit_prep_selection_at_cursor(&state->Stb); + state->Stb.cursor = ImStb::STB_TEXTEDIT_MOVEWORDRIGHT_MAC(state, state->Stb.cursor); + state->Stb.select_end = state->Stb.cursor; + ImStb::stb_textedit_clamp(state, &state->Stb); + } + else + { + // Triple-click: Select line + const bool is_eol = ImStb::STB_TEXTEDIT_GETCHAR(state, state->Stb.cursor) == '\n'; + state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART); + state->OnKeyPressed(STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT); + state->OnKeyPressed(STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT); + if (!is_eol && is_multiline) + { + ImSwap(state->Stb.select_start, state->Stb.select_end); + state->Stb.cursor = state->Stb.select_end; + } + state->CursorFollow = false; + } + state->CursorAnimReset(); + } + else if (io.MouseClicked[0] && !state->SelectedAllMouseLock) + { + if (hovered) + { + if (io.KeyShift) + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + else + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + } + } + else if (io.MouseDown[0] && !state->SelectedAllMouseLock && (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f)) + { + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + state->CursorFollow = true; + } + if (state->SelectedAllMouseLock && !io.MouseDown[0]) + state->SelectedAllMouseLock = false; + + // We expect backends to emit a Tab key but some also emit a Tab character which we ignore (#2467, #1336) + // (For Tab and Enter: Win32/SFML/Allegro are sending both keys and chars, GLFW and SDL are only sending keys. For Space they all send all threes) + const bool ignore_char_inputs = (io.KeyCtrl && !io.KeyAlt) || (is_osx && io.KeySuper); + if ((flags & ImGuiInputTextFlags_AllowTabInput) && IsKeyPressed(ImGuiKey_Tab) && !ignore_char_inputs && !io.KeyShift && !is_readonly) + { + unsigned int c = '\t'; // Insert TAB + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + + // Process regular text input (before we check for Return because using some IME will effectively send a Return?) + // We ignore CTRL inputs, but need to allow ALT+CTRL as some keyboards (e.g. German) use AltGR (which _is_ Alt+Ctrl) to input certain characters. + if (io.InputQueueCharacters.Size > 0) + { + if (!ignore_char_inputs && !is_readonly && !input_requested_by_nav) + for (int n = 0; n < io.InputQueueCharacters.Size; n++) + { + // Insert character if they pass filtering + unsigned int c = (unsigned int)io.InputQueueCharacters[n]; + if (c == '\t') // Skip Tab, see above. + continue; + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + + // Consume characters + io.InputQueueCharacters.resize(0); + } + } + + // Process other shortcuts/key-presses + bool revert_edit = false; + if (g.ActiveId == id && !g.ActiveIdIsJustActivated && !clear_active_id) + { + IM_ASSERT(state != NULL); + + const int row_count_per_page = ImMax((int)((inner_size.y - style.FramePadding.y) / g.FontSize), 1); + state->Stb.row_count_per_page = row_count_per_page; + + const int k_mask = (io.KeyShift ? STB_TEXTEDIT_K_SHIFT : 0); + const bool is_osx = io.ConfigMacOSXBehaviors; + const bool is_wordmove_key_down = is_osx ? io.KeyAlt : io.KeyCtrl; // OS X style: Text editing cursor movement using Alt instead of Ctrl + const bool is_startend_key_down = is_osx && io.KeySuper && !io.KeyCtrl && !io.KeyAlt; // OS X style: Line/Text Start and End using Cmd+Arrows instead of Home/End + + // Using Shortcut() with ImGuiInputFlags_RouteFocused (default policy) to allow routing operations for other code (e.g. calling window trying to use CTRL+A and CTRL+B: formet would be handled by InputText) + // Otherwise we could simply assume that we own the keys as we are active. + const ImGuiInputFlags f_repeat = ImGuiInputFlags_Repeat; + const bool is_cut = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_X, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Delete, id, f_repeat)) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); + const bool is_copy = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_C, id) || Shortcut(ImGuiMod_Ctrl | ImGuiKey_Insert, id)) && !is_password && (!is_multiline || state->HasSelection()); + const bool is_paste = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_V, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Insert, id, f_repeat)) && !is_readonly; + const bool is_undo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Z, id, f_repeat)) && !is_readonly && is_undoable; + const bool is_redo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Y, id, f_repeat) || (is_osx && Shortcut(ImGuiMod_Shortcut | ImGuiMod_Shift | ImGuiKey_Z, id, f_repeat))) && !is_readonly && is_undoable; + const bool is_select_all = Shortcut(ImGuiMod_Shortcut | ImGuiKey_A, id); + + // We allow validate/cancel with Nav source (gamepad) to makes it easier to undo an accidental NavInput press with no keyboard wired, but otherwise it isn't very useful. + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool is_enter_pressed = IsKeyPressed(ImGuiKey_Enter, true) || IsKeyPressed(ImGuiKey_KeypadEnter, true); + const bool is_gamepad_validate = nav_gamepad_active && (IsKeyPressed(ImGuiKey_NavGamepadActivate, false) || IsKeyPressed(ImGuiKey_NavGamepadInput, false)); + const bool is_cancel = Shortcut(ImGuiKey_Escape, id, f_repeat) || (nav_gamepad_active && Shortcut(ImGuiKey_NavGamepadCancel, id, f_repeat)); + + // FIXME: Should use more Shortcut() and reduce IsKeyPressed()+SetKeyOwner(), but requires modifiers combination to be taken account of. + if (IsKeyPressed(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } + else if (IsKeyPressed(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } + else if (IsKeyPressed(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } + else if (IsKeyPressed(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } + else if (IsKeyPressed(ImGuiKey_Delete) && !is_readonly && !is_cut) { state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); } + else if (IsKeyPressed(ImGuiKey_Backspace) && !is_readonly) + { + if (!state->HasSelection()) + { + if (is_wordmove_key_down) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT); + else if (is_osx && io.KeySuper && !io.KeyAlt && !io.KeyCtrl) + state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT); + } + state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE | k_mask); + } + else if (is_enter_pressed || is_gamepad_validate) + { + // Determine if we turn Enter into a \n character + bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0; + if (!is_multiline || is_gamepad_validate || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) + { + validated = true; + if (io.ConfigInputTextEnterKeepActive && !is_multiline) + state->SelectAll(); // No need to scroll + else + clear_active_id = true; + } + else if (!is_readonly) + { + unsigned int c = '\n'; // Insert new line + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + } + else if (is_cancel) + { + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + if (state->CurLenA > 0) + { + revert_edit = true; + } + else + { + render_cursor = render_selection = false; + clear_active_id = true; + } + } + else + { + clear_active_id = revert_edit = true; + render_cursor = render_selection = false; + } + } + else if (is_undo || is_redo) + { + state->OnKeyPressed(is_undo ? STB_TEXTEDIT_K_UNDO : STB_TEXTEDIT_K_REDO); + state->ClearSelection(); + } + else if (is_select_all) + { + state->SelectAll(); + state->CursorFollow = true; + } + else if (is_cut || is_copy) + { + // Cut, Copy + if (io.SetClipboardTextFn) + { + const int ib = state->HasSelection() ? ImMin(state->Stb.select_start, state->Stb.select_end) : 0; + const int ie = state->HasSelection() ? ImMax(state->Stb.select_start, state->Stb.select_end) : state->CurLenW; + const int clipboard_data_len = ImTextCountUtf8BytesFromStr(state->TextW.Data + ib, state->TextW.Data + ie) + 1; + char* clipboard_data = (char*)IM_ALLOC(clipboard_data_len * sizeof(char)); + ImTextStrToUtf8(clipboard_data, clipboard_data_len, state->TextW.Data + ib, state->TextW.Data + ie); + SetClipboardText(clipboard_data); + MemFree(clipboard_data); + } + if (is_cut) + { + if (!state->HasSelection()) + state->SelectAll(); + state->CursorFollow = true; + stb_textedit_cut(state, &state->Stb); + } + } + else if (is_paste) + { + if (const char* clipboard = GetClipboardText()) + { + // Filter pasted buffer + const int clipboard_len = (int)strlen(clipboard); + ImWchar* clipboard_filtered = (ImWchar*)IM_ALLOC((clipboard_len + 1) * sizeof(ImWchar)); + int clipboard_filtered_len = 0; + for (const char* s = clipboard; *s; ) + { + unsigned int c; + s += ImTextCharFromUtf8(&c, s, NULL); + if (c == 0) + break; + if (!InputTextFilterCharacter(&c, flags, callback, callback_user_data, ImGuiInputSource_Clipboard)) + continue; + clipboard_filtered[clipboard_filtered_len++] = (ImWchar)c; + } + clipboard_filtered[clipboard_filtered_len] = 0; + if (clipboard_filtered_len > 0) // If everything was filtered, ignore the pasting operation + { + stb_textedit_paste(state, &state->Stb, clipboard_filtered, clipboard_filtered_len); + state->CursorFollow = true; + } + MemFree(clipboard_filtered); + } + } + + // Update render selection flag after events have been handled, so selection highlight can be displayed during the same frame. + render_selection |= state->HasSelection() && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + } + + // Process callbacks and apply result back to user's buffer. + const char* apply_new_text = NULL; + int apply_new_text_length = 0; + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + if (revert_edit && !is_readonly) + { + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + // Clear input + apply_new_text = ""; + apply_new_text_length = 0; + STB_TEXTEDIT_CHARTYPE empty_string; + stb_textedit_replace(state, &state->Stb, &empty_string, 0); + } + else if (strcmp(buf, state->InitialTextA.Data) != 0) + { + // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. + // Push records into the undo stack so we can CTRL+Z the revert operation itself + apply_new_text = state->InitialTextA.Data; + apply_new_text_length = state->InitialTextA.Size - 1; + ImVector w_text; + if (apply_new_text_length > 0) + { + w_text.resize(ImTextCountCharsFromUtf8(apply_new_text, apply_new_text + apply_new_text_length) + 1); + ImTextStrFromUtf8(w_text.Data, w_text.Size, apply_new_text, apply_new_text + apply_new_text_length); + } + stb_textedit_replace(state, &state->Stb, w_text.Data, (apply_new_text_length > 0) ? (w_text.Size - 1) : 0); + } + } + + // Apply ASCII value + if (!is_readonly) + { + state->TextAIsValid = true; + state->TextA.resize(state->TextW.Size * 4 + 1); + ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); + } + + // When using 'ImGuiInputTextFlags_EnterReturnsTrue' as a special case we reapply the live buffer back to the input buffer before clearing ActiveId, even though strictly speaking it wasn't modified on this frame. + // If we didn't do that, code like InputInt() with ImGuiInputTextFlags_EnterReturnsTrue would fail. + // This also allows the user to use InputText() with ImGuiInputTextFlags_EnterReturnsTrue without maintaining any user-side storage (please note that if you use this property along ImGuiInputTextFlags_CallbackResize you can end up with your temporary string object unnecessarily allocating once a frame, either store your string data, either if you don't then don't use ImGuiInputTextFlags_CallbackResize). + const bool apply_edit_back_to_user_buffer = !revert_edit || (validated && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); + if (apply_edit_back_to_user_buffer) + { + // Apply new value immediately - copy modified buffer back + // Note that as soon as the input box is active, the in-widget value gets priority over any underlying modification of the input buffer + // FIXME: We actually always render 'buf' when calling DrawList->AddText, making the comment above incorrect. + // FIXME-OPT: CPU waste to do this every time the widget is active, should mark dirty state from the stb_textedit callbacks. + + // User callback + if ((flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackEdit | ImGuiInputTextFlags_CallbackAlways)) != 0) + { + IM_ASSERT(callback != NULL); + + // The reason we specify the usage semantic (Completion/History) is that Completion needs to disable keyboard TABBING at the moment. + ImGuiInputTextFlags event_flag = 0; + ImGuiKey event_key = ImGuiKey_None; + if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && IsKeyPressed(ImGuiKey_Tab)) + { + event_flag = ImGuiInputTextFlags_CallbackCompletion; + event_key = ImGuiKey_Tab; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_UpArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_UpArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_DownArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_DownArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackEdit) && state->Edited) + { + event_flag = ImGuiInputTextFlags_CallbackEdit; + } + else if (flags & ImGuiInputTextFlags_CallbackAlways) + { + event_flag = ImGuiInputTextFlags_CallbackAlways; + } + + if (event_flag) + { + ImGuiInputTextCallbackData callback_data; + memset(&callback_data, 0, sizeof(ImGuiInputTextCallbackData)); + callback_data.EventFlag = event_flag; + callback_data.Flags = flags; + callback_data.UserData = callback_user_data; + + char* callback_buf = is_readonly ? buf : state->TextA.Data; + callback_data.EventKey = event_key; + callback_data.Buf = callback_buf; + callback_data.BufTextLen = state->CurLenA; + callback_data.BufSize = state->BufCapacityA; + callback_data.BufDirty = false; + + // We have to convert from wchar-positions to UTF-8-positions, which can be pretty slow (an incentive to ditch the ImWchar buffer, see https://github.com/nothings/stb/issues/188) + ImWchar* text = state->TextW.Data; + const int utf8_cursor_pos = callback_data.CursorPos = ImTextCountUtf8BytesFromStr(text, text + state->Stb.cursor); + const int utf8_selection_start = callback_data.SelectionStart = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_start); + const int utf8_selection_end = callback_data.SelectionEnd = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_end); + + // Call user code + callback(&callback_data); + + // Read back what user may have modified + callback_buf = is_readonly ? buf : state->TextA.Data; // Pointer may have been invalidated by a resize callback + IM_ASSERT(callback_data.Buf == callback_buf); // Invalid to modify those fields + IM_ASSERT(callback_data.BufSize == state->BufCapacityA); + IM_ASSERT(callback_data.Flags == flags); + const bool buf_dirty = callback_data.BufDirty; + if (callback_data.CursorPos != utf8_cursor_pos || buf_dirty) { state->Stb.cursor = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.CursorPos); state->CursorFollow = true; } + if (callback_data.SelectionStart != utf8_selection_start || buf_dirty) { state->Stb.select_start = (callback_data.SelectionStart == callback_data.CursorPos) ? state->Stb.cursor : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionStart); } + if (callback_data.SelectionEnd != utf8_selection_end || buf_dirty) { state->Stb.select_end = (callback_data.SelectionEnd == callback_data.SelectionStart) ? state->Stb.select_start : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); } + if (buf_dirty) + { + IM_ASSERT((flags & ImGuiInputTextFlags_ReadOnly) == 0); + IM_ASSERT(callback_data.BufTextLen == (int)strlen(callback_data.Buf)); // You need to maintain BufTextLen if you change the text! + InputTextReconcileUndoStateAfterUserCallback(state, callback_data.Buf, callback_data.BufTextLen); // FIXME: Move the rest of this block inside function and rename to InputTextReconcileStateAfterUserCallback() ? + if (callback_data.BufTextLen > backup_current_text_length && is_resizable) + state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); // Worse case scenario resize + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, callback_data.Buf, NULL); + state->CurLenA = callback_data.BufTextLen; // Assume correct length and valid UTF-8 from user, saves us an extra strlen() + state->CursorAnimReset(); + } + } + } + + // Will copy result string if modified + if (!is_readonly && strcmp(state->TextA.Data, buf) != 0) + { + apply_new_text = state->TextA.Data; + apply_new_text_length = state->CurLenA; + } + } + } + + // Copy result to user buffer. This can currently only happen when (g.ActiveId == id) + if (apply_new_text != NULL) + { + // We cannot test for 'backup_current_text_length != apply_new_text_length' here because we have no guarantee that the size + // of our owned buffer matches the size of the string object held by the user, and by design we allow InputText() to be used + // without any storage on user's side. + IM_ASSERT(apply_new_text_length >= 0); + if (is_resizable) + { + ImGuiInputTextCallbackData callback_data; + callback_data.EventFlag = ImGuiInputTextFlags_CallbackResize; + callback_data.Flags = flags; + callback_data.Buf = buf; + callback_data.BufTextLen = apply_new_text_length; + callback_data.BufSize = ImMax(buf_size, apply_new_text_length + 1); + callback_data.UserData = callback_user_data; + callback(&callback_data); + buf = callback_data.Buf; + buf_size = callback_data.BufSize; + apply_new_text_length = ImMin(callback_data.BufTextLen, buf_size - 1); + IM_ASSERT(apply_new_text_length <= buf_size); + } + //IMGUI_DEBUG_PRINT("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); + + // If the underlying buffer resize was denied or not carried to the next frame, apply_new_text_length+1 may be >= buf_size. + ImStrncpy(buf, apply_new_text, ImMin(apply_new_text_length + 1, buf_size)); + value_changed = true; + } + + // Release active ID at the end of the function (so e.g. pressing Return still does a final application of the value) + if (clear_active_id && g.ActiveId == id) + ClearActiveID(); + + // Render frame + if (!is_multiline) + { + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + } + + const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + inner_size.x, frame_bb.Min.y + inner_size.y); // Not using frame_bb.Max because we have adjusted size + ImVec2 draw_pos = is_multiline ? draw_window->DC.CursorPos : frame_bb.Min + style.FramePadding; + ImVec2 text_size(0.0f, 0.0f); + + // Set upper limit of single-line InputTextEx() at 2 million characters strings. The current pathological worst case is a long line + // without any carriage return, which would makes ImFont::RenderText() reserve too many vertices and probably crash. Avoid it altogether. + // Note that we only use this limit on single-line InputText(), so a pathologically large line on a InputTextMultiline() would still crash. + const int buf_display_max_length = 2 * 1024 * 1024; + const char* buf_display = buf_display_from_state ? state->TextA.Data : buf; //-V595 + const char* buf_display_end = NULL; // We have specialized paths below for setting the length + if (is_displaying_hint) + { + buf_display = hint; + buf_display_end = hint + strlen(hint); + } + + // Render text. We currently only render selection when the widget is active or while scrolling. + // FIXME: We could remove the '&& render_cursor' to keep rendering selection when inactive. + if (render_cursor || render_selection) + { + IM_ASSERT(state != NULL); + if (!is_displaying_hint) + buf_display_end = buf_display + state->CurLenA; + + // Render text (with cursor and selection) + // This is going to be messy. We need to: + // - Display the text (this alone can be more easily clipped) + // - Handle scrolling, highlight selection, display cursor (those all requires some form of 1d->2d cursor position calculation) + // - Measure text height (for scrollbar) + // We are attempting to do most of that in **one main pass** to minimize the computation cost (non-negligible for large amount of text) + 2nd pass for selection rendering (we could merge them by an extra refactoring effort) + // FIXME: This should occur on buf_display but we'd need to maintain cursor/select_start/select_end for UTF-8. + const ImWchar* text_begin = state->TextW.Data; + ImVec2 cursor_offset, select_start_offset; + + { + // Find lines numbers straddling 'cursor' (slot 0) and 'select_start' (slot 1) positions. + const ImWchar* searches_input_ptr[2] = { NULL, NULL }; + int searches_result_line_no[2] = { -1000, -1000 }; + int searches_remaining = 0; + if (render_cursor) + { + searches_input_ptr[0] = text_begin + state->Stb.cursor; + searches_result_line_no[0] = -1; + searches_remaining++; + } + if (render_selection) + { + searches_input_ptr[1] = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + searches_result_line_no[1] = -1; + searches_remaining++; + } + + // Iterate all lines to find our line numbers + // In multi-line mode, we never exit the loop until all lines are counted, so add one extra to the searches_remaining counter. + searches_remaining += is_multiline ? 1 : 0; + int line_count = 0; + //for (const ImWchar* s = text_begin; (s = (const ImWchar*)wcschr((const wchar_t*)s, (wchar_t)'\n')) != NULL; s++) // FIXME-OPT: Could use this when wchar_t are 16-bit + for (const ImWchar* s = text_begin; *s != 0; s++) + if (*s == '\n') + { + line_count++; + if (searches_result_line_no[0] == -1 && s >= searches_input_ptr[0]) { searches_result_line_no[0] = line_count; if (--searches_remaining <= 0) break; } + if (searches_result_line_no[1] == -1 && s >= searches_input_ptr[1]) { searches_result_line_no[1] = line_count; if (--searches_remaining <= 0) break; } + } + line_count++; + if (searches_result_line_no[0] == -1) + searches_result_line_no[0] = line_count; + if (searches_result_line_no[1] == -1) + searches_result_line_no[1] = line_count; + + // Calculate 2d position by finding the beginning of the line and measuring distance + cursor_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[0], text_begin), searches_input_ptr[0]).x; + cursor_offset.y = searches_result_line_no[0] * g.FontSize; + if (searches_result_line_no[1] >= 0) + { + select_start_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[1], text_begin), searches_input_ptr[1]).x; + select_start_offset.y = searches_result_line_no[1] * g.FontSize; + } + + // Store text height (note that we haven't calculated text width at all, see GitHub issues #383, #1224) + if (is_multiline) + text_size = ImVec2(inner_size.x, line_count * g.FontSize); + } + + // Scroll + if (render_cursor && state->CursorFollow) + { + // Horizontal scroll in chunks of quarter width + if (!(flags & ImGuiInputTextFlags_NoHorizontalScroll)) + { + const float scroll_increment_x = inner_size.x * 0.25f; + const float visible_width = inner_size.x - style.FramePadding.x; + if (cursor_offset.x < state->ScrollX) + state->ScrollX = IM_FLOOR(ImMax(0.0f, cursor_offset.x - scroll_increment_x)); + else if (cursor_offset.x - visible_width >= state->ScrollX) + state->ScrollX = IM_FLOOR(cursor_offset.x - visible_width + scroll_increment_x); + } + else + { + state->ScrollX = 0.0f; + } + + // Vertical scroll + if (is_multiline) + { + // Test if cursor is vertically visible + if (cursor_offset.y - g.FontSize < scroll_y) + scroll_y = ImMax(0.0f, cursor_offset.y - g.FontSize); + else if (cursor_offset.y - (inner_size.y - style.FramePadding.y * 2.0f) >= scroll_y) + scroll_y = cursor_offset.y - inner_size.y + style.FramePadding.y * 2.0f; + const float scroll_max_y = ImMax((text_size.y + style.FramePadding.y * 2.0f) - inner_size.y, 0.0f); + scroll_y = ImClamp(scroll_y, 0.0f, scroll_max_y); + draw_pos.y += (draw_window->Scroll.y - scroll_y); // Manipulate cursor pos immediately avoid a frame of lag + draw_window->Scroll.y = scroll_y; + } + + state->CursorFollow = false; + } + + // Draw selection + const ImVec2 draw_scroll = ImVec2(state->ScrollX, 0.0f); + if (render_selection) + { + const ImWchar* text_selected_begin = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + const ImWchar* text_selected_end = text_begin + ImMax(state->Stb.select_start, state->Stb.select_end); + + ImU32 bg_color = GetColorU32(ImGuiCol_TextSelectedBg, render_cursor ? 1.0f : 0.6f); // FIXME: current code flow mandate that render_cursor is always true here, we are leaving the transparent one for tests. + float bg_offy_up = is_multiline ? 0.0f : -1.0f; // FIXME: those offsets should be part of the style? they don't play so well with multi-line selection. + float bg_offy_dn = is_multiline ? 0.0f : 2.0f; + ImVec2 rect_pos = draw_pos + select_start_offset - draw_scroll; + for (const ImWchar* p = text_selected_begin; p < text_selected_end; ) + { + if (rect_pos.y > clip_rect.w + g.FontSize) + break; + if (rect_pos.y < clip_rect.y) + { + //p = (const ImWchar*)wmemchr((const wchar_t*)p, '\n', text_selected_end - p); // FIXME-OPT: Could use this when wchar_t are 16-bit + //p = p ? p + 1 : text_selected_end; + while (p < text_selected_end) + if (*p++ == '\n') + break; + } + else + { + ImVec2 rect_size = InputTextCalcTextSizeW(p, text_selected_end, &p, NULL, true); + if (rect_size.x <= 0.0f) rect_size.x = IM_FLOOR(g.Font->GetCharAdvance((ImWchar)' ') * 0.50f); // So we can see selected empty lines + ImRect rect(rect_pos + ImVec2(0.0f, bg_offy_up - g.FontSize), rect_pos + ImVec2(rect_size.x, bg_offy_dn)); + rect.ClipWith(clip_rect); + if (rect.Overlaps(clip_rect)) + draw_window->DrawList->AddRectFilled(rect.Min, rect.Max, bg_color); + } + rect_pos.x = draw_pos.x - draw_scroll.x; + rect_pos.y += g.FontSize; + } + } + + // We test for 'buf_display_max_length' as a way to avoid some pathological cases (e.g. single-line 1 MB string) which would make ImDrawList crash. + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos - draw_scroll, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + + // Draw blinking cursor + if (render_cursor) + { + state->CursorAnim += io.DeltaTime; + bool cursor_is_visible = (!g.IO.ConfigInputTextCursorBlink) || (state->CursorAnim <= 0.0f) || ImFmod(state->CursorAnim, 1.20f) <= 0.80f; + ImVec2 cursor_screen_pos = ImFloor(draw_pos + cursor_offset - draw_scroll); + ImRect cursor_screen_rect(cursor_screen_pos.x, cursor_screen_pos.y - g.FontSize + 0.5f, cursor_screen_pos.x + 1.0f, cursor_screen_pos.y - 1.5f); + if (cursor_is_visible && cursor_screen_rect.Overlaps(clip_rect)) + draw_window->DrawList->AddLine(cursor_screen_rect.Min, cursor_screen_rect.GetBL(), GetColorU32(ImGuiCol_Text)); + + // Notify OS of text input position for advanced IME (-1 x offset so that Windows IME can cover our cursor. Bit of an extra nicety.) + if (!is_readonly) + { + g.PlatformImeData.WantVisible = true; + g.PlatformImeData.InputPos = ImVec2(cursor_screen_pos.x - 1.0f, cursor_screen_pos.y - g.FontSize); + g.PlatformImeData.InputLineHeight = g.FontSize; + } + } + } + else + { + // Render text only (no selection, no cursor) + if (is_multiline) + text_size = ImVec2(inner_size.x, InputTextCalcTextLenAndLineCount(buf_display, &buf_display_end) * g.FontSize); // We don't need width + else if (!is_displaying_hint && g.ActiveId == id) + buf_display_end = buf_display + state->CurLenA; + else if (!is_displaying_hint) + buf_display_end = buf_display + strlen(buf_display); + + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + } + + if (is_password && !is_displaying_hint) + PopFont(); + + if (is_multiline) + { + // For focus requests to work on our multiline we need to ensure our child ItemAdd() call specifies the ImGuiItemFlags_Inputable (ref issue #4761)... + Dummy(ImVec2(text_size.x, text_size.y + style.FramePadding.y)); + ImGuiItemFlags backup_item_flags = g.CurrentItemFlags; + g.CurrentItemFlags |= ImGuiItemFlags_Inputable | ImGuiItemFlags_NoTabStop; + EndChild(); + item_data_backup.StatusFlags |= (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredWindow); + g.CurrentItemFlags = backup_item_flags; + + // ...and then we need to undo the group overriding last item data, which gets a bit messy as EndGroup() tries to forward scrollbar being active... + // FIXME: This quite messy/tricky, should attempt to get rid of the child window. + EndGroup(); + if (g.LastItemData.ID == 0) + { + g.LastItemData.ID = id; + g.LastItemData.InFlags = item_data_backup.InFlags; + g.LastItemData.StatusFlags = item_data_backup.StatusFlags; + } + } + + // Log as text + if (g.LogEnabled && (!is_password || is_displaying_hint)) + { + LogSetNextTextDecoration("{", "}"); + LogRenderedText(&draw_pos, buf_display, buf_display_end); + } + + if (label_size.x > 0) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + if (value_changed && !(flags & ImGuiInputTextFlags_NoMarkEdited)) + MarkItemEdited(id); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + if ((flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0) + return validated; + else + return value_changed; +} + +void ImGui::DebugNodeInputTextState(ImGuiInputTextState* state) +{ +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + ImGuiContext& g = *GImGui; + ImStb::STB_TexteditState* stb_state = &state->Stb; + ImStb::StbUndoState* undo_state = &stb_state->undostate; + Text("ID: 0x%08X, ActiveID: 0x%08X", state->ID, g.ActiveId); + DebugLocateItemOnHover(state->ID); + Text("CurLenW: %d, CurLenA: %d, Cursor: %d, Selection: %d..%d", state->CurLenA, state->CurLenW, stb_state->cursor, stb_state->select_start, stb_state->select_end); + Text("undo_point: %d, redo_point: %d, undo_char_point: %d, redo_char_point: %d", undo_state->undo_point, undo_state->redo_point, undo_state->undo_char_point, undo_state->redo_char_point); + if (BeginChild("undopoints", ImVec2(0.0f, GetTextLineHeight() * 15), true)) // Visualize undo state + { + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int n = 0; n < STB_TEXTEDIT_UNDOSTATECOUNT; n++) + { + ImStb::StbUndoRecord* undo_rec = &undo_state->undo_rec[n]; + const char undo_rec_type = (n < undo_state->undo_point) ? 'u' : (n >= undo_state->redo_point) ? 'r' : ' '; + if (undo_rec_type == ' ') + BeginDisabled(); + char buf[64] = ""; + if (undo_rec_type != ' ' && undo_rec->char_storage != -1) + ImTextStrToUtf8(buf, IM_ARRAYSIZE(buf), undo_state->undo_char + undo_rec->char_storage, undo_state->undo_char + undo_rec->char_storage + undo_rec->insert_length); + Text("%c [%02d] where %03d, insert %03d, delete %03d, char_storage %03d \"%s\"", + undo_rec_type, n, undo_rec->where, undo_rec->insert_length, undo_rec->delete_length, undo_rec->char_storage, buf); + if (undo_rec_type == ' ') + EndDisabled(); + } + PopStyleVar(); + } + EndChild(); +#else + IM_UNUSED(state); +#endif +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +//------------------------------------------------------------------------- +// - ColorEdit3() +// - ColorEdit4() +// - ColorPicker3() +// - RenderColorRectWithAlphaCheckerboard() [Internal] +// - ColorPicker4() +// - ColorButton() +// - SetColorEditOptions() +// - ColorTooltip() [Internal] +// - ColorEditOptionsPopup() [Internal] +// - ColorPickerOptionsPopup() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + return ColorEdit4(label, col, flags | ImGuiColorEditFlags_NoAlpha); +} + +// ColorEdit supports RGB and HSV inputs. In case of RGB input resulting color may have undefined hue and/or saturation. +// Since widget displays both RGB and HSV values we must preserve hue and saturation to prevent these values resetting. +static void ColorEditRestoreHS(const float* col, float* H, float* S, float* V) +{ + // This check is optional. Suppose we have two color widgets side by side, both widgets display different colors, but both colors have hue and/or saturation undefined. + // With color check: hue/saturation is preserved in one widget. Editing color in one widget would reset hue/saturation in another one. + // Without color check: common hue/saturation would be displayed in all widgets that have hue/saturation undefined. + // g.ColorEditLastColor is stored as ImU32 RGB value: this essentially gives us color equality check with reduced precision. + // Tiny external color changes would not be detected and this check would still pass. This is OK, since we only restore hue/saturation _only_ if they are undefined, + // therefore this change flipping hue/saturation from undefined to a very tiny value would still be represented in color picker. + ImGuiContext& g = *GImGui; + if (g.ColorEditLastColor != ImGui::ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0))) + return; + + // When S == 0, H is undefined. + // When H == 1 it wraps around to 0. + if (*S == 0.0f || (*H == 0.0f && g.ColorEditLastHue == 1)) + *H = g.ColorEditLastHue; + + // When V == 0, S is undefined. + if (*V == 0.0f) + *S = g.ColorEditLastSat; +} + +// Edit colors components (each component in 0.0f..1.0f range). +// See enum ImGuiColorEditFlags_ for available options. e.g. Only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// With typical options: Left-click on color square to open color picker. Right-click to open option menu. CTRL-Click over input fields to edit them and TAB to go to next item. +bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float square_sz = GetFrameHeight(); + const float w_full = CalcItemWidth(); + const float w_button = (flags & ImGuiColorEditFlags_NoSmallPreview) ? 0.0f : (square_sz + style.ItemInnerSpacing.x); + const float w_inputs = w_full - w_button; + const char* label_display_end = FindRenderedTextEnd(label); + g.NextItemData.ClearFlags(); + + BeginGroup(); + PushID(label); + + // If we're not showing any slider there's no point in doing any HSV conversions + const ImGuiColorEditFlags flags_untouched = flags; + if (flags & ImGuiColorEditFlags_NoInputs) + flags = (flags & (~ImGuiColorEditFlags_DisplayMask_)) | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_NoOptions; + + // Context menu: display and modify options (before defaults are applied) + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorEditOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags_DisplayMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_DisplayMask_); + if (!(flags & ImGuiColorEditFlags_DataTypeMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_DataTypeMask_); + if (!(flags & ImGuiColorEditFlags_PickerMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_PickerMask_); + if (!(flags & ImGuiColorEditFlags_InputMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_InputMask_); + flags |= (g.ColorEditOptions & ~(ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_)); + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DisplayMask_)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check that only 1 is selected + + const bool alpha = (flags & ImGuiColorEditFlags_NoAlpha) == 0; + const bool hdr = (flags & ImGuiColorEditFlags_HDR) != 0; + const int components = alpha ? 4 : 3; + + // Convert to the formats we need + float f[4] = { col[0], col[1], col[2], alpha ? col[3] : 1.0f }; + if ((flags & ImGuiColorEditFlags_InputHSV) && (flags & ImGuiColorEditFlags_DisplayRGB)) + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + else if ((flags & ImGuiColorEditFlags_InputRGB) && (flags & ImGuiColorEditFlags_DisplayHSV)) + { + // Hue is lost when converting from greyscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + ColorEditRestoreHS(col, &f[0], &f[1], &f[2]); + } + int i[4] = { IM_F32_TO_INT8_UNBOUND(f[0]), IM_F32_TO_INT8_UNBOUND(f[1]), IM_F32_TO_INT8_UNBOUND(f[2]), IM_F32_TO_INT8_UNBOUND(f[3]) }; + + bool value_changed = false; + bool value_changed_as_float = false; + + const ImVec2 pos = window->DC.CursorPos; + const float inputs_offset_x = (style.ColorButtonPosition == ImGuiDir_Left) ? w_button : 0.0f; + window->DC.CursorPos.x = pos.x + inputs_offset_x; + + if ((flags & (ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV)) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB/HSV 0..255 Sliders + const float w_item_one = ImMax(1.0f, IM_FLOOR((w_inputs - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_FLOOR(w_inputs - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + + const bool hide_prefix = (w_item_one <= CalcTextSize((flags & ImGuiColorEditFlags_Float) ? "M:0.000" : "M:000").x); + static const char* ids[4] = { "##X", "##Y", "##Z", "##W" }; + static const char* fmt_table_int[3][4] = + { + { "%3d", "%3d", "%3d", "%3d" }, // Short display + { "R:%3d", "G:%3d", "B:%3d", "A:%3d" }, // Long display for RGBA + { "H:%3d", "S:%3d", "V:%3d", "A:%3d" } // Long display for HSVA + }; + static const char* fmt_table_float[3][4] = + { + { "%0.3f", "%0.3f", "%0.3f", "%0.3f" }, // Short display + { "R:%0.3f", "G:%0.3f", "B:%0.3f", "A:%0.3f" }, // Long display for RGBA + { "H:%0.3f", "S:%0.3f", "V:%0.3f", "A:%0.3f" } // Long display for HSVA + }; + const int fmt_idx = hide_prefix ? 0 : (flags & ImGuiColorEditFlags_DisplayHSV) ? 2 : 1; + + for (int n = 0; n < components; n++) + { + if (n > 0) + SameLine(0, style.ItemInnerSpacing.x); + SetNextItemWidth((n + 1 < components) ? w_item_one : w_item_last); + + // FIXME: When ImGuiColorEditFlags_HDR flag is passed HS values snap in weird ways when SV values go below 0. + if (flags & ImGuiColorEditFlags_Float) + { + value_changed |= DragFloat(ids[n], &f[n], 1.0f / 255.0f, 0.0f, hdr ? 0.0f : 1.0f, fmt_table_float[fmt_idx][n]); + value_changed_as_float |= value_changed; + } + else + { + value_changed |= DragInt(ids[n], &i[n], 1.0f, 0, hdr ? 0 : 255, fmt_table_int[fmt_idx][n]); + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + } + else if ((flags & ImGuiColorEditFlags_DisplayHex) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB Hexadecimal Input + char buf[64]; + if (alpha) + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255), ImClamp(i[3], 0, 255)); + else + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255)); + SetNextItemWidth(w_inputs); + if (InputText("##Text", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase)) + { + value_changed = true; + char* p = buf; + while (*p == '#' || ImCharIsBlankA(*p)) + p++; + i[0] = i[1] = i[2] = 0; + i[3] = 0xFF; // alpha default to 255 is not parsed by scanf (e.g. inputting #FFFFFF omitting alpha) + int r; + if (alpha) + r = sscanf(p, "%02X%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2], (unsigned int*)&i[3]); // Treat at unsigned (%X is unsigned) + else + r = sscanf(p, "%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2]); + IM_UNUSED(r); // Fixes C6031: Return value ignored: 'sscanf'. + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + + ImGuiWindow* picker_active_window = NULL; + if (!(flags & ImGuiColorEditFlags_NoSmallPreview)) + { + const float button_offset_x = ((flags & ImGuiColorEditFlags_NoInputs) || (style.ColorButtonPosition == ImGuiDir_Left)) ? 0.0f : w_inputs + style.ItemInnerSpacing.x; + window->DC.CursorPos = ImVec2(pos.x + button_offset_x, pos.y); + + const ImVec4 col_v4(col[0], col[1], col[2], alpha ? col[3] : 1.0f); + if (ColorButton("##ColorButton", col_v4, flags)) + { + if (!(flags & ImGuiColorEditFlags_NoPicker)) + { + // Store current color and open a picker + g.ColorPickerRef = col_v4; + OpenPopup("picker"); + SetNextWindowPos(g.LastItemData.Rect.GetBL() + ImVec2(0.0f, style.ItemSpacing.y)); + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + + if (BeginPopup("picker")) + { + if (g.CurrentWindow->BeginCount == 1) + { + picker_active_window = g.CurrentWindow; + if (label != label_display_end) + { + TextEx(label, label_display_end); + Spacing(); + } + ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; + ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; + SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? + value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); + } + EndPopup(); + } + } + + if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) + { + // Position not necessarily next to last submitted button (e.g. if style.ColorButtonPosition == ImGuiDir_Left), + // but we need to use SameLine() to setup baseline correctly. Might want to refactor SameLine() to simplify this. + SameLine(0.0f, style.ItemInnerSpacing.x); + window->DC.CursorPos.x = pos.x + ((flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x); + TextEx(label, label_display_end); + } + + // Convert back + if (value_changed && picker_active_window == NULL) + { + if (!value_changed_as_float) + for (int n = 0; n < 4; n++) + f[n] = i[n] / 255.0f; + if ((flags & ImGuiColorEditFlags_DisplayHSV) && (flags & ImGuiColorEditFlags_InputRGB)) + { + g.ColorEditLastHue = f[0]; + g.ColorEditLastSat = f[1]; + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + g.ColorEditLastColor = ColorConvertFloat4ToU32(ImVec4(f[0], f[1], f[2], 0)); + } + if ((flags & ImGuiColorEditFlags_DisplayRGB) && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + + col[0] = f[0]; + col[1] = f[1]; + col[2] = f[2]; + if (alpha) + col[3] = f[3]; + } + + PopID(); + EndGroup(); + + // Drag and Drop Target + // NB: The flag test is merely an optional micro-optimization, BeginDragDropTarget() does the same test. + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropTarget()) + { + bool accepted_drag_drop = false; + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 //-V1086 + value_changed = accepted_drag_drop = true; + } + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * components); + value_changed = accepted_drag_drop = true; + } + + // Drag-drop payloads are always RGB + if (accepted_drag_drop && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(col[0], col[1], col[2], col[0], col[1], col[2]); + EndDragDropTarget(); + } + + // When picker is being actively used, use its active id so IsItemActive() will function on ColorEdit4(). + if (picker_active_window && g.ActiveId != 0 && g.ActiveIdWindow == picker_active_window) + g.LastItemData.ID = g.ActiveId; + + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + float col4[4] = { col[0], col[1], col[2], 1.0f }; + if (!ColorPicker4(label, col4, flags | ImGuiColorEditFlags_NoAlpha)) + return false; + col[0] = col4[0]; col[1] = col4[1]; col[2] = col4[2]; + return true; +} + +// Helper for ColorPicker4() +static void RenderArrowsForVerticalBar(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, float bar_w, float alpha) +{ + ImU32 alpha8 = IM_F32_TO_INT8_SAT(alpha); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x + 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Right, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x, pos.y), half_sz, ImGuiDir_Right, IM_COL32(255,255,255,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x - 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Left, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x, pos.y), half_sz, ImGuiDir_Left, IM_COL32(255,255,255,alpha8)); +} + +// Note: ColorPicker4() only accesses 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// (In C++ the 'float col[4]' notation for a function argument is equivalent to 'float* col', we only specify a size to facilitate understanding of the code.) +// FIXME: we adjust the big color square height based on item width, which may cause a flickering feedback loop (if automatic height makes a vertical scrollbar appears, affecting automatic width..) +// FIXME: this is trying to be aware of style.Alpha but not fully correct. Also, the color wheel will have overlapping glitches with (style.Alpha < 1.0) +bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImDrawList* draw_list = window->DrawList; + ImGuiStyle& style = g.Style; + ImGuiIO& io = g.IO; + + const float width = CalcItemWidth(); + g.NextItemData.ClearFlags(); + + PushID(label); + BeginGroup(); + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + flags |= ImGuiColorEditFlags_NoSmallPreview; + + // Context menu: display and store options. + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorPickerOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags_PickerMask_)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags_PickerMask_) ? g.ColorEditOptions : ImGuiColorEditFlags_DefaultOptions_) & ImGuiColorEditFlags_PickerMask_; + if (!(flags & ImGuiColorEditFlags_InputMask_)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags_InputMask_) ? g.ColorEditOptions : ImGuiColorEditFlags_DefaultOptions_) & ImGuiColorEditFlags_InputMask_; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_PickerMask_)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check that only 1 is selected + if (!(flags & ImGuiColorEditFlags_NoOptions)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_AlphaBar); + + // Setup + int components = (flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4; + bool alpha_bar = (flags & ImGuiColorEditFlags_AlphaBar) && !(flags & ImGuiColorEditFlags_NoAlpha); + ImVec2 picker_pos = window->DC.CursorPos; + float square_sz = GetFrameHeight(); + float bars_width = square_sz; // Arbitrary smallish width of Hue/Alpha picking bars + float sv_picker_size = ImMax(bars_width * 1, width - (alpha_bar ? 2 : 1) * (bars_width + style.ItemInnerSpacing.x)); // Saturation/Value picking box + float bar0_pos_x = picker_pos.x + sv_picker_size + style.ItemInnerSpacing.x; + float bar1_pos_x = bar0_pos_x + bars_width + style.ItemInnerSpacing.x; + float bars_triangles_half_sz = IM_FLOOR(bars_width * 0.20f); + + float backup_initial_col[4]; + memcpy(backup_initial_col, col, components * sizeof(float)); + + float wheel_thickness = sv_picker_size * 0.08f; + float wheel_r_outer = sv_picker_size * 0.50f; + float wheel_r_inner = wheel_r_outer - wheel_thickness; + ImVec2 wheel_center(picker_pos.x + (sv_picker_size + bars_width)*0.5f, picker_pos.y + sv_picker_size * 0.5f); + + // Note: the triangle is displayed rotated with triangle_pa pointing to Hue, but most coordinates stays unrotated for logic. + float triangle_r = wheel_r_inner - (int)(sv_picker_size * 0.027f); + ImVec2 triangle_pa = ImVec2(triangle_r, 0.0f); // Hue point. + ImVec2 triangle_pb = ImVec2(triangle_r * -0.5f, triangle_r * -0.866025f); // Black point. + ImVec2 triangle_pc = ImVec2(triangle_r * -0.5f, triangle_r * +0.866025f); // White point. + + float H = col[0], S = col[1], V = col[2]; + float R = col[0], G = col[1], B = col[2]; + if (flags & ImGuiColorEditFlags_InputRGB) + { + // Hue is lost when converting from greyscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(R, G, B, H, S, V); + ColorEditRestoreHS(col, &H, &S, &V); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + + bool value_changed = false, value_changed_h = false, value_changed_sv = false; + + PushItemFlag(ImGuiItemFlags_NoNav, true); + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Hue wheel + SV triangle logic + InvisibleButton("hsv", ImVec2(sv_picker_size + style.ItemInnerSpacing.x + bars_width, sv_picker_size)); + if (IsItemActive()) + { + ImVec2 initial_off = g.IO.MouseClickedPos[0] - wheel_center; + ImVec2 current_off = g.IO.MousePos - wheel_center; + float initial_dist2 = ImLengthSqr(initial_off); + if (initial_dist2 >= (wheel_r_inner - 1) * (wheel_r_inner - 1) && initial_dist2 <= (wheel_r_outer + 1) * (wheel_r_outer + 1)) + { + // Interactive with Hue wheel + H = ImAtan2(current_off.y, current_off.x) / IM_PI * 0.5f; + if (H < 0.0f) + H += 1.0f; + value_changed = value_changed_h = true; + } + float cos_hue_angle = ImCos(-H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(-H * 2.0f * IM_PI); + if (ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, ImRotate(initial_off, cos_hue_angle, sin_hue_angle))) + { + // Interacting with SV triangle + ImVec2 current_off_unrotated = ImRotate(current_off, cos_hue_angle, sin_hue_angle); + if (!ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated)) + current_off_unrotated = ImTriangleClosestPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated); + float uu, vv, ww; + ImTriangleBarycentricCoords(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated, uu, vv, ww); + V = ImClamp(1.0f - vv, 0.0001f, 1.0f); + S = ImClamp(uu / V, 0.0001f, 1.0f); + value_changed = value_changed_sv = true; + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // SV rectangle logic + InvisibleButton("sv", ImVec2(sv_picker_size, sv_picker_size)); + if (IsItemActive()) + { + S = ImSaturate((io.MousePos.x - picker_pos.x) / (sv_picker_size - 1)); + V = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + + // Greatly reduces hue jitter and reset to 0 when hue == 255 and color is rapidly modified using SV square. + if (g.ColorEditLastColor == ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0))) + H = g.ColorEditLastHue; + value_changed = value_changed_sv = true; + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + + // Hue bar logic + SetCursorScreenPos(ImVec2(bar0_pos_x, picker_pos.y)); + InvisibleButton("hue", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + H = ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = value_changed_h = true; + } + } + + // Alpha bar logic + if (alpha_bar) + { + SetCursorScreenPos(ImVec2(bar1_pos_x, picker_pos.y)); + InvisibleButton("alpha", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + col[3] = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = true; + } + } + PopItemFlag(); // ImGuiItemFlags_NoNav + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + SameLine(0, style.ItemInnerSpacing.x); + BeginGroup(); + } + + if (!(flags & ImGuiColorEditFlags_NoLabel)) + { + const char* label_display_end = FindRenderedTextEnd(label); + if (label != label_display_end) + { + if ((flags & ImGuiColorEditFlags_NoSidePreview)) + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_display_end); + } + } + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + PushItemFlag(ImGuiItemFlags_NoNavDefaultFocus, true); + ImVec4 col_v4(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if ((flags & ImGuiColorEditFlags_NoLabel)) + Text("Current"); + + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_NoTooltip; + ColorButton("##current", col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2)); + if (ref_col != NULL) + { + Text("Original"); + ImVec4 ref_col_v4(ref_col[0], ref_col[1], ref_col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : ref_col[3]); + if (ColorButton("##original", ref_col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2))) + { + memcpy(col, ref_col, components * sizeof(float)); + value_changed = true; + } + } + PopItemFlag(); + EndGroup(); + } + + // Convert back color to RGB + if (value_changed_h || value_changed_sv) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + ColorConvertHSVtoRGB(H, S, V, col[0], col[1], col[2]); + g.ColorEditLastHue = H; + g.ColorEditLastSat = S; + g.ColorEditLastColor = ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0)); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + col[0] = H; + col[1] = S; + col[2] = V; + } + } + + // R,G,B and H,S,V slider color editor + bool value_changed_fix_hue_wrap = false; + if ((flags & ImGuiColorEditFlags_NoInputs) == 0) + { + PushItemWidth((alpha_bar ? bar1_pos_x : bar0_pos_x) + bars_width - picker_pos.x); + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoSmallPreview | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf; + ImGuiColorEditFlags sub_flags = (flags & sub_flags_to_forward) | ImGuiColorEditFlags_NoPicker; + if (flags & ImGuiColorEditFlags_DisplayRGB || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + if (ColorEdit4("##rgb", col, sub_flags | ImGuiColorEditFlags_DisplayRGB)) + { + // FIXME: Hackily differentiating using the DragInt (ActiveId != 0 && !ActiveIdAllowOverlap) vs. using the InputText or DropTarget. + // For the later we don't want to run the hue-wrap canceling code. If you are well versed in HSV picker please provide your input! (See #2050) + value_changed_fix_hue_wrap = (g.ActiveId != 0 && !g.ActiveIdAllowOverlap); + value_changed = true; + } + if (flags & ImGuiColorEditFlags_DisplayHSV || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + value_changed |= ColorEdit4("##hsv", col, sub_flags | ImGuiColorEditFlags_DisplayHSV); + if (flags & ImGuiColorEditFlags_DisplayHex || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + value_changed |= ColorEdit4("##hex", col, sub_flags | ImGuiColorEditFlags_DisplayHex); + PopItemWidth(); + } + + // Try to cancel hue wrap (after ColorEdit4 call), if any + if (value_changed_fix_hue_wrap && (flags & ImGuiColorEditFlags_InputRGB)) + { + float new_H, new_S, new_V; + ColorConvertRGBtoHSV(col[0], col[1], col[2], new_H, new_S, new_V); + if (new_H <= 0 && H > 0) + { + if (new_V <= 0 && V != new_V) + ColorConvertHSVtoRGB(H, S, new_V <= 0 ? V * 0.5f : new_V, col[0], col[1], col[2]); + else if (new_S <= 0) + ColorConvertHSVtoRGB(H, new_S <= 0 ? S * 0.5f : new_S, new_V, col[0], col[1], col[2]); + } + } + + if (value_changed) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + R = col[0]; + G = col[1]; + B = col[2]; + ColorConvertRGBtoHSV(R, G, B, H, S, V); + ColorEditRestoreHS(col, &H, &S, &V); // Fix local Hue as display below will use it immediately. + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + H = col[0]; + S = col[1]; + V = col[2]; + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + } + + const int style_alpha8 = IM_F32_TO_INT8_SAT(style.Alpha); + const ImU32 col_black = IM_COL32(0,0,0,style_alpha8); + const ImU32 col_white = IM_COL32(255,255,255,style_alpha8); + const ImU32 col_midgrey = IM_COL32(128,128,128,style_alpha8); + const ImU32 col_hues[6 + 1] = { IM_COL32(255,0,0,style_alpha8), IM_COL32(255,255,0,style_alpha8), IM_COL32(0,255,0,style_alpha8), IM_COL32(0,255,255,style_alpha8), IM_COL32(0,0,255,style_alpha8), IM_COL32(255,0,255,style_alpha8), IM_COL32(255,0,0,style_alpha8) }; + + ImVec4 hue_color_f(1, 1, 1, style.Alpha); ColorConvertHSVtoRGB(H, 1, 1, hue_color_f.x, hue_color_f.y, hue_color_f.z); + ImU32 hue_color32 = ColorConvertFloat4ToU32(hue_color_f); + ImU32 user_col32_striped_of_alpha = ColorConvertFloat4ToU32(ImVec4(R, G, B, style.Alpha)); // Important: this is still including the main rendering/style alpha!! + + ImVec2 sv_cursor_pos; + + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Render Hue Wheel + const float aeps = 0.5f / wheel_r_outer; // Half a pixel arc length in radians (2pi cancels out). + const int segment_per_arc = ImMax(4, (int)wheel_r_outer / 12); + for (int n = 0; n < 6; n++) + { + const float a0 = (n) /6.0f * 2.0f * IM_PI - aeps; + const float a1 = (n+1.0f)/6.0f * 2.0f * IM_PI + aeps; + const int vert_start_idx = draw_list->VtxBuffer.Size; + draw_list->PathArcTo(wheel_center, (wheel_r_inner + wheel_r_outer)*0.5f, a0, a1, segment_per_arc); + draw_list->PathStroke(col_white, 0, wheel_thickness); + const int vert_end_idx = draw_list->VtxBuffer.Size; + + // Paint colors over existing vertices + ImVec2 gradient_p0(wheel_center.x + ImCos(a0) * wheel_r_inner, wheel_center.y + ImSin(a0) * wheel_r_inner); + ImVec2 gradient_p1(wheel_center.x + ImCos(a1) * wheel_r_inner, wheel_center.y + ImSin(a1) * wheel_r_inner); + ShadeVertsLinearColorGradientKeepAlpha(draw_list, vert_start_idx, vert_end_idx, gradient_p0, gradient_p1, col_hues[n], col_hues[n + 1]); + } + + // Render Cursor + preview on Hue Wheel + float cos_hue_angle = ImCos(H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(H * 2.0f * IM_PI); + ImVec2 hue_cursor_pos(wheel_center.x + cos_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f, wheel_center.y + sin_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f); + float hue_cursor_rad = value_changed_h ? wheel_thickness * 0.65f : wheel_thickness * 0.55f; + int hue_cursor_segments = ImClamp((int)(hue_cursor_rad / 1.4f), 9, 32); + draw_list->AddCircleFilled(hue_cursor_pos, hue_cursor_rad, hue_color32, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad + 1, col_midgrey, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad, col_white, hue_cursor_segments); + + // Render SV triangle (rotated according to hue) + ImVec2 tra = wheel_center + ImRotate(triangle_pa, cos_hue_angle, sin_hue_angle); + ImVec2 trb = wheel_center + ImRotate(triangle_pb, cos_hue_angle, sin_hue_angle); + ImVec2 trc = wheel_center + ImRotate(triangle_pc, cos_hue_angle, sin_hue_angle); + ImVec2 uv_white = GetFontTexUvWhitePixel(); + draw_list->PrimReserve(6, 6); + draw_list->PrimVtx(tra, uv_white, hue_color32); + draw_list->PrimVtx(trb, uv_white, hue_color32); + draw_list->PrimVtx(trc, uv_white, col_white); + draw_list->PrimVtx(tra, uv_white, 0); + draw_list->PrimVtx(trb, uv_white, col_black); + draw_list->PrimVtx(trc, uv_white, 0); + draw_list->AddTriangle(tra, trb, trc, col_midgrey, 1.5f); + sv_cursor_pos = ImLerp(ImLerp(trc, tra, ImSaturate(S)), trb, ImSaturate(1 - V)); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // Render SV Square + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), col_white, hue_color32, hue_color32, col_white); + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0, 0, col_black, col_black); + RenderFrameBorder(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0.0f); + sv_cursor_pos.x = ImClamp(IM_ROUND(picker_pos.x + ImSaturate(S) * sv_picker_size), picker_pos.x + 2, picker_pos.x + sv_picker_size - 2); // Sneakily prevent the circle to stick out too much + sv_cursor_pos.y = ImClamp(IM_ROUND(picker_pos.y + ImSaturate(1 - V) * sv_picker_size), picker_pos.y + 2, picker_pos.y + sv_picker_size - 2); + + // Render Hue Bar + for (int i = 0; i < 6; ++i) + draw_list->AddRectFilledMultiColor(ImVec2(bar0_pos_x, picker_pos.y + i * (sv_picker_size / 6)), ImVec2(bar0_pos_x + bars_width, picker_pos.y + (i + 1) * (sv_picker_size / 6)), col_hues[i], col_hues[i], col_hues[i + 1], col_hues[i + 1]); + float bar0_line_y = IM_ROUND(picker_pos.y + H * sv_picker_size); + RenderFrameBorder(ImVec2(bar0_pos_x, picker_pos.y), ImVec2(bar0_pos_x + bars_width, picker_pos.y + sv_picker_size), 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar0_pos_x - 1, bar0_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + // Render cursor/preview circle (clamp S/V within 0..1 range because floating points colors may lead HSV values to be out of range) + float sv_cursor_rad = value_changed_sv ? 10.0f : 6.0f; + draw_list->AddCircleFilled(sv_cursor_pos, sv_cursor_rad, user_col32_striped_of_alpha, 12); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad + 1, col_midgrey, 12); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad, col_white, 12); + + // Render alpha bar + if (alpha_bar) + { + float alpha = ImSaturate(col[3]); + ImRect bar1_bb(bar1_pos_x, picker_pos.y, bar1_pos_x + bars_width, picker_pos.y + sv_picker_size); + RenderColorRectWithAlphaCheckerboard(draw_list, bar1_bb.Min, bar1_bb.Max, 0, bar1_bb.GetWidth() / 2.0f, ImVec2(0.0f, 0.0f)); + draw_list->AddRectFilledMultiColor(bar1_bb.Min, bar1_bb.Max, user_col32_striped_of_alpha, user_col32_striped_of_alpha, user_col32_striped_of_alpha & ~IM_COL32_A_MASK, user_col32_striped_of_alpha & ~IM_COL32_A_MASK); + float bar1_line_y = IM_ROUND(picker_pos.y + (1.0f - alpha) * sv_picker_size); + RenderFrameBorder(bar1_bb.Min, bar1_bb.Max, 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar1_pos_x - 1, bar1_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + EndGroup(); + + if (value_changed && memcmp(backup_initial_col, col, components * sizeof(float)) == 0) + value_changed = false; + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId + MarkItemEdited(g.LastItemData.ID); + + PopID(); + + return value_changed; +} + +// A little color square. Return true when clicked. +// FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip. +// 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip. +// Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set. +bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, const ImVec2& size_arg) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiID id = window->GetID(desc_id); + const float default_size = GetFrameHeight(); + const ImVec2 size(size_arg.x == 0.0f ? default_size : size_arg.x, size_arg.y == 0.0f ? default_size : size_arg.y); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + + if (flags & ImGuiColorEditFlags_NoAlpha) + flags &= ~(ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf); + + ImVec4 col_rgb = col; + if (flags & ImGuiColorEditFlags_InputHSV) + ColorConvertHSVtoRGB(col_rgb.x, col_rgb.y, col_rgb.z, col_rgb.x, col_rgb.y, col_rgb.z); + + ImVec4 col_rgb_without_alpha(col_rgb.x, col_rgb.y, col_rgb.z, 1.0f); + float grid_step = ImMin(size.x, size.y) / 2.99f; + float rounding = ImMin(g.Style.FrameRounding, grid_step * 0.5f); + ImRect bb_inner = bb; + float off = 0.0f; + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + off = -0.75f; // The border (using Col_FrameBg) tends to look off when color is near-opaque and rounding is enabled. This offset seemed like a good middle ground to reduce those artifacts. + bb_inner.Expand(off); + } + if ((flags & ImGuiColorEditFlags_AlphaPreviewHalf) && col_rgb.w < 1.0f) + { + float mid_x = IM_ROUND((bb_inner.Min.x + bb_inner.Max.x) * 0.5f); + RenderColorRectWithAlphaCheckerboard(window->DrawList, ImVec2(bb_inner.Min.x + grid_step, bb_inner.Min.y), bb_inner.Max, GetColorU32(col_rgb), grid_step, ImVec2(-grid_step + off, off), rounding, ImDrawFlags_RoundCornersRight); + window->DrawList->AddRectFilled(bb_inner.Min, ImVec2(mid_x, bb_inner.Max.y), GetColorU32(col_rgb_without_alpha), rounding, ImDrawFlags_RoundCornersLeft); + } + else + { + // Because GetColorU32() multiplies by the global style Alpha and we don't want to display a checkerboard if the source code had no alpha + ImVec4 col_source = (flags & ImGuiColorEditFlags_AlphaPreview) ? col_rgb : col_rgb_without_alpha; + if (col_source.w < 1.0f) + RenderColorRectWithAlphaCheckerboard(window->DrawList, bb_inner.Min, bb_inner.Max, GetColorU32(col_source), grid_step, ImVec2(off, off), rounding); + else + window->DrawList->AddRectFilled(bb_inner.Min, bb_inner.Max, GetColorU32(col_source), rounding); + } + RenderNavHighlight(bb, id); + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + if (g.Style.FrameBorderSize > 0.0f) + RenderFrameBorder(bb.Min, bb.Max, rounding); + else + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), rounding); // Color button are often in need of some sort of border + } + + // Drag and Drop Source + // NB: The ActiveId test is merely an optional micro-optimization, BeginDragDropSource() does the same test. + if (g.ActiveId == id && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropSource()) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F, &col_rgb, sizeof(float) * 3, ImGuiCond_Once); + else + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F, &col_rgb, sizeof(float) * 4, ImGuiCond_Once); + ColorButton(desc_id, col, flags); + SameLine(); + TextEx("Color"); + EndDragDropSource(); + } + + // Tooltip + if (!(flags & ImGuiColorEditFlags_NoTooltip) && hovered) + ColorTooltip(desc_id, &col.x, flags & (ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)); + + return pressed; +} + +// Initialize/override default color options +void ImGui::SetColorEditOptions(ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiColorEditFlags_DisplayMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_DisplayMask_; + if ((flags & ImGuiColorEditFlags_DataTypeMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_DataTypeMask_; + if ((flags & ImGuiColorEditFlags_PickerMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_PickerMask_; + if ((flags & ImGuiColorEditFlags_InputMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_InputMask_; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DisplayMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DataTypeMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_PickerMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check only 1 option is selected + g.ColorEditOptions = flags; +} + +// Note: only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +void ImGui::ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + + BeginTooltipEx(ImGuiTooltipFlags_OverridePreviousTooltip, ImGuiWindowFlags_None); + const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text; + if (text_end > text) + { + TextEx(text, text_end); + Separator(); + } + + ImVec2 sz(g.FontSize * 3 + g.Style.FramePadding.y * 2, g.FontSize * 3 + g.Style.FramePadding.y * 2); + ImVec4 cf(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + ColorButton("##preview", cf, (flags & (ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)) | ImGuiColorEditFlags_NoTooltip, sz); + SameLine(); + if ((flags & ImGuiColorEditFlags_InputRGB) || !(flags & ImGuiColorEditFlags_InputMask_)) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("#%02X%02X%02X\nR: %d, G: %d, B: %d\n(%.3f, %.3f, %.3f)", cr, cg, cb, cr, cg, cb, col[0], col[1], col[2]); + else + Text("#%02X%02X%02X%02X\nR:%d, G:%d, B:%d, A:%d\n(%.3f, %.3f, %.3f, %.3f)", cr, cg, cb, ca, cr, cg, cb, ca, col[0], col[1], col[2], col[3]); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("H: %.3f, S: %.3f, V: %.3f", col[0], col[1], col[2]); + else + Text("H: %.3f, S: %.3f, V: %.3f, A: %.3f", col[0], col[1], col[2], col[3]); + } + EndTooltip(); +} + +void ImGui::ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags) +{ + bool allow_opt_inputs = !(flags & ImGuiColorEditFlags_DisplayMask_); + bool allow_opt_datatype = !(flags & ImGuiColorEditFlags_DataTypeMask_); + if ((!allow_opt_inputs && !allow_opt_datatype) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + ImGuiColorEditFlags opts = g.ColorEditOptions; + if (allow_opt_inputs) + { + if (RadioButton("RGB", (opts & ImGuiColorEditFlags_DisplayRGB) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayRGB; + if (RadioButton("HSV", (opts & ImGuiColorEditFlags_DisplayHSV) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayHSV; + if (RadioButton("Hex", (opts & ImGuiColorEditFlags_DisplayHex) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayHex; + } + if (allow_opt_datatype) + { + if (allow_opt_inputs) Separator(); + if (RadioButton("0..255", (opts & ImGuiColorEditFlags_Uint8) != 0)) opts = (opts & ~ImGuiColorEditFlags_DataTypeMask_) | ImGuiColorEditFlags_Uint8; + if (RadioButton("0.00..1.00", (opts & ImGuiColorEditFlags_Float) != 0)) opts = (opts & ~ImGuiColorEditFlags_DataTypeMask_) | ImGuiColorEditFlags_Float; + } + + if (allow_opt_inputs || allow_opt_datatype) + Separator(); + if (Button("Copy as..", ImVec2(-1, 0))) + OpenPopup("Copy"); + if (BeginPopup("Copy")) + { + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + char buf[64]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%.3ff, %.3ff, %.3ff, %.3ff)", col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%d,%d,%d,%d)", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", cr, cg, cb); + if (Selectable(buf)) + SetClipboardText(buf); + if (!(flags & ImGuiColorEditFlags_NoAlpha)) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + } + EndPopup(); + } + + g.ColorEditOptions = opts; + EndPopup(); +} + +void ImGui::ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags) +{ + bool allow_opt_picker = !(flags & ImGuiColorEditFlags_PickerMask_); + bool allow_opt_alpha_bar = !(flags & ImGuiColorEditFlags_NoAlpha) && !(flags & ImGuiColorEditFlags_AlphaBar); + if ((!allow_opt_picker && !allow_opt_alpha_bar) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + if (allow_opt_picker) + { + ImVec2 picker_size(g.FontSize * 8, ImMax(g.FontSize * 8 - (GetFrameHeight() + g.Style.ItemInnerSpacing.x), 1.0f)); // FIXME: Picker size copied from main picker function + PushItemWidth(picker_size.x); + for (int picker_type = 0; picker_type < 2; picker_type++) + { + // Draw small/thumbnail version of each picker type (over an invisible button for selection) + if (picker_type > 0) Separator(); + PushID(picker_type); + ImGuiColorEditFlags picker_flags = ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_NoSidePreview | (flags & ImGuiColorEditFlags_NoAlpha); + if (picker_type == 0) picker_flags |= ImGuiColorEditFlags_PickerHueBar; + if (picker_type == 1) picker_flags |= ImGuiColorEditFlags_PickerHueWheel; + ImVec2 backup_pos = GetCursorScreenPos(); + if (Selectable("##selectable", false, 0, picker_size)) // By default, Selectable() is closing popup + g.ColorEditOptions = (g.ColorEditOptions & ~ImGuiColorEditFlags_PickerMask_) | (picker_flags & ImGuiColorEditFlags_PickerMask_); + SetCursorScreenPos(backup_pos); + ImVec4 previewing_ref_col; + memcpy(&previewing_ref_col, ref_col, sizeof(float) * ((picker_flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4)); + ColorPicker4("##previewing_picker", &previewing_ref_col.x, picker_flags); + PopID(); + } + PopItemWidth(); + } + if (allow_opt_alpha_bar) + { + if (allow_opt_picker) Separator(); + CheckboxFlags("Alpha Bar", &g.ColorEditOptions, ImGuiColorEditFlags_AlphaBar); + } + EndPopup(); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +//------------------------------------------------------------------------- +// - TreeNode() +// - TreeNodeV() +// - TreeNodeEx() +// - TreeNodeExV() +// - TreeNodeBehavior() [Internal] +// - TreePush() +// - TreePop() +// - GetTreeNodeToLabelSpacing() +// - SetNextItemOpen() +// - CollapsingHeader() +//------------------------------------------------------------------------- + +bool ImGui::TreeNode(const char* str_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const void* ptr_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const char* label) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + return TreeNodeBehavior(window->GetID(label), 0, label, NULL); +} + +bool ImGui::TreeNodeV(const char* str_id, const char* fmt, va_list args) +{ + return TreeNodeExV(str_id, 0, fmt, args); +} + +bool ImGui::TreeNodeV(const void* ptr_id, const char* fmt, va_list args) +{ + return TreeNodeExV(ptr_id, 0, fmt, args); +} + +bool ImGui::TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags, label, NULL); +} + +bool ImGui::TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(str_id), flags, label, label_end); +} + +bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(ptr_id), flags, label, label_end); +} + +void ImGui::TreeNodeSetOpen(ImGuiID id, bool open) +{ + ImGuiContext& g = *GImGui; + ImGuiStorage* storage = g.CurrentWindow->DC.StateStorage; + storage->SetInt(id, open ? 1 : 0); +} + +bool ImGui::TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags) +{ + if (flags & ImGuiTreeNodeFlags_Leaf) + return true; + + // We only write to the tree storage if the user clicks (or explicitly use the SetNextItemOpen function) + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStorage* storage = window->DC.StateStorage; + + bool is_open; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasOpen) + { + if (g.NextItemData.OpenCond & ImGuiCond_Always) + { + is_open = g.NextItemData.OpenVal; + TreeNodeSetOpen(id, is_open); + } + else + { + // We treat ImGuiCond_Once and ImGuiCond_FirstUseEver the same because tree node state are not saved persistently. + const int stored_value = storage->GetInt(id, -1); + if (stored_value == -1) + { + is_open = g.NextItemData.OpenVal; + TreeNodeSetOpen(id, is_open); + } + else + { + is_open = stored_value != 0; + } + } + } + else + { + is_open = storage->GetInt(id, (flags & ImGuiTreeNodeFlags_DefaultOpen) ? 1 : 0) != 0; + } + + // When logging is enabled, we automatically expand tree nodes (but *NOT* collapsing headers.. seems like sensible behavior). + // NB- If we are above max depth we still allow manually opened nodes to be logged. + if (g.LogEnabled && !(flags & ImGuiTreeNodeFlags_NoAutoOpenOnLog) && (window->DC.TreeDepth - g.LogDepthRef) < g.LogDepthToExpand) + is_open = true; + + return is_open; +} + +bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const bool display_frame = (flags & ImGuiTreeNodeFlags_Framed) != 0; + const ImVec2 padding = (display_frame || (flags & ImGuiTreeNodeFlags_FramePadding)) ? style.FramePadding : ImVec2(style.FramePadding.x, ImMin(window->DC.CurrLineTextBaseOffset, style.FramePadding.y)); + + if (!label_end) + label_end = FindRenderedTextEnd(label); + const ImVec2 label_size = CalcTextSize(label, label_end, false); + + // We vertically grow up to current line height up the typical widget height. + const float frame_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), label_size.y + padding.y * 2); + ImRect frame_bb; + frame_bb.Min.x = (flags & ImGuiTreeNodeFlags_SpanFullWidth) ? window->WorkRect.Min.x : window->DC.CursorPos.x; + frame_bb.Min.y = window->DC.CursorPos.y; + frame_bb.Max.x = window->WorkRect.Max.x; + frame_bb.Max.y = window->DC.CursorPos.y + frame_height; + if (display_frame) + { + // Framed header expand a little outside the default padding, to the edge of InnerClipRect + // (FIXME: May remove this at some point and make InnerClipRect align with WindowPadding.x instead of WindowPadding.x*0.5f) + frame_bb.Min.x -= IM_FLOOR(window->WindowPadding.x * 0.5f - 1.0f); + frame_bb.Max.x += IM_FLOOR(window->WindowPadding.x * 0.5f); + } + + const float text_offset_x = g.FontSize + (display_frame ? padding.x * 3 : padding.x * 2); // Collapser arrow width + Spacing + const float text_offset_y = ImMax(padding.y, window->DC.CurrLineTextBaseOffset); // Latch before ItemSize changes it + const float text_width = g.FontSize + (label_size.x > 0.0f ? label_size.x + padding.x * 2 : 0.0f); // Include collapser + ImVec2 text_pos(window->DC.CursorPos.x + text_offset_x, window->DC.CursorPos.y + text_offset_y); + ItemSize(ImVec2(text_width, frame_height), padding.y); + + // For regular tree nodes, we arbitrary allow to click past 2 worth of ItemSpacing + ImRect interact_bb = frame_bb; + if (!display_frame && (flags & (ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth)) == 0) + interact_bb.Max.x = frame_bb.Min.x + text_width + style.ItemSpacing.x * 2.0f; + + // Store a flag for the current depth to tell if we will allow closing this node when navigating one of its child. + // For this purpose we essentially compare if g.NavIdIsAlive went from 0 to 1 between TreeNode() and TreePop(). + // This is currently only support 32 level deep and we are fine with (1 << Depth) overflowing into a zero. + const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0; + bool is_open = TreeNodeUpdateNextOpen(id, flags); + if (is_open && !g.NavIdIsAlive && (flags & ImGuiTreeNodeFlags_NavLeftJumpsBackHere) && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + window->DC.TreeJumpToParentOnPopMask |= (1 << window->DC.TreeDepth); + + bool item_add = ItemAdd(interact_bb, id); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HasDisplayRect; + g.LastItemData.DisplayRect = frame_bb; + + if (!item_add) + { + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; + } + + ImGuiButtonFlags button_flags = ImGuiTreeNodeFlags_None; + if (flags & ImGuiTreeNodeFlags_AllowItemOverlap) + button_flags |= ImGuiButtonFlags_AllowItemOverlap; + if (!is_leaf) + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + + // We allow clicking on the arrow section with keyboard modifiers held, in order to easily + // allow browsing a tree while preserving selection with code implementing multi-selection patterns. + // When clicking on the rest of the tree node we always disallow keyboard modifiers. + const float arrow_hit_x1 = (text_pos.x - text_offset_x) - style.TouchExtraPadding.x; + const float arrow_hit_x2 = (text_pos.x - text_offset_x) + (g.FontSize + padding.x * 2.0f) + style.TouchExtraPadding.x; + const bool is_mouse_x_over_arrow = (g.IO.MousePos.x >= arrow_hit_x1 && g.IO.MousePos.x < arrow_hit_x2); + if (window != g.HoveredWindow || !is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_NoKeyModifiers; + + // Open behaviors can be altered with the _OpenOnArrow and _OnOnDoubleClick flags. + // Some alteration have subtle effects (e.g. toggle on MouseUp vs MouseDown events) due to requirements for multi-selection and drag and drop support. + // - Single-click on label = Toggle on MouseUp (default, when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=1) + // - Double-click on label = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1) + // - Double-click on arrow = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1 and _OpenOnArrow=0) + // It is rather standard that arrow click react on Down rather than Up. + // We set ImGuiButtonFlags_PressedOnClickRelease on OpenOnDoubleClick because we want the item to be active on the initial MouseDown in order for drag and drop to work. + if (is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_PressedOnClick; + else if (flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) + button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; + else + button_flags |= ImGuiButtonFlags_PressedOnClickRelease; + + bool selected = (flags & ImGuiTreeNodeFlags_Selected) != 0; + const bool was_selected = selected; + + bool hovered, held; + bool pressed = ButtonBehavior(interact_bb, id, &hovered, &held, button_flags); + bool toggled = false; + if (!is_leaf) + { + if (pressed && g.DragDropHoldJustPressedId != id) + { + if ((flags & (ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick)) == 0 || (g.NavActivateId == id)) + toggled = true; + if (flags & ImGuiTreeNodeFlags_OpenOnArrow) + toggled |= is_mouse_x_over_arrow && !g.NavDisableMouseHover; // Lightweight equivalent of IsMouseHoveringRect() since ButtonBehavior() already did the job + if ((flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) && g.IO.MouseClickedCount[0] == 2) + toggled = true; + } + else if (pressed && g.DragDropHoldJustPressedId == id) + { + IM_ASSERT(button_flags & ImGuiButtonFlags_PressedOnDragDropHold); + if (!is_open) // When using Drag and Drop "hold to open" we keep the node highlighted after opening, but never close it again. + toggled = true; + } + + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Left && is_open) + { + toggled = true; + NavMoveRequestCancel(); + } + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right && !is_open) // If there's something upcoming on the line we may want to give it the priority? + { + toggled = true; + NavMoveRequestCancel(); + } + + if (toggled) + { + is_open = !is_open; + window->DC.StateStorage->SetInt(id, is_open); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledOpen; + } + } + if (flags & ImGuiTreeNodeFlags_AllowItemOverlap) + SetItemAllowOverlap(); + + // In this branch, TreeNodeBehavior() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + ImGuiNavHighlightFlags nav_highlight_flags = ImGuiNavHighlightFlags_TypeThin; + if (display_frame) + { + // Framed type + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, true, style.FrameRounding); + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.60f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 1.0f); + else // Leaf without bullet, left-adjusted text + text_pos.x -= text_offset_x; + if (flags & ImGuiTreeNodeFlags_ClipLabelForTrailingButton) + frame_bb.Max.x -= g.FontSize + style.FramePadding.x; + + if (g.LogEnabled) + LogSetNextTextDecoration("###", "###"); + RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size); + } + else + { + // Unframed typed for tree nodes + if (hovered || selected) + { + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false); + } + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.5f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y + g.FontSize * 0.15f), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 0.70f); + if (g.LogEnabled) + LogSetNextTextDecoration(">", NULL); + RenderText(text_pos, label, label_end, false); + } + + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; +} + +void ImGui::TreePush(const char* str_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(str_id); +} + +void ImGui::TreePush(const void* ptr_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(ptr_id); +} + +void ImGui::TreePushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Indent(); + window->DC.TreeDepth++; + PushOverrideID(id); +} + +void ImGui::TreePop() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Unindent(); + + window->DC.TreeDepth--; + ImU32 tree_depth_mask = (1 << window->DC.TreeDepth); + + // Handle Left arrow to move to parent tree node (when ImGuiTreeNodeFlags_NavLeftJumpsBackHere is enabled) + if (g.NavMoveDir == ImGuiDir_Left && g.NavWindow == window && NavMoveRequestButNoResultYet()) + if (g.NavIdIsAlive && (window->DC.TreeJumpToParentOnPopMask & tree_depth_mask)) + { + SetNavID(window->IDStack.back(), g.NavLayer, 0, ImRect()); + NavMoveRequestCancel(); + } + window->DC.TreeJumpToParentOnPopMask &= tree_depth_mask - 1; + + IM_ASSERT(window->IDStack.Size > 1); // There should always be 1 element in the IDStack (pushed during window creation). If this triggers you called TreePop/PopID too much. + PopID(); +} + +// Horizontal distance preceding label when using TreeNode() or Bullet() +float ImGui::GetTreeNodeToLabelSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + (g.Style.FramePadding.x * 2.0f); +} + +// Set next TreeNode/CollapsingHeader open state. +void ImGui::SetNextItemOpen(bool is_open, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + if (g.CurrentWindow->SkipItems) + return; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasOpen; + g.NextItemData.OpenVal = is_open; + g.NextItemData.OpenCond = cond ? cond : ImGuiCond_Always; +} + +// CollapsingHeader returns true when opened but do not indent nor push into the ID stack (because of the ImGuiTreeNodeFlags_NoTreePushOnOpen flag). +// This is basically the same as calling TreeNodeEx(label, ImGuiTreeNodeFlags_CollapsingHeader). You can remove the _NoTreePushOnOpen flag if you want behavior closer to normal TreeNode(). +bool ImGui::CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags | ImGuiTreeNodeFlags_CollapsingHeader, label); +} + +// p_visible == NULL : regular collapsing header +// p_visible != NULL && *p_visible == true : show a small close button on the corner of the header, clicking the button will set *p_visible = false +// p_visible != NULL && *p_visible == false : do not show the header at all +// Do not mistake this with the Open state of the header itself, which you can adjust with SetNextItemOpen() or ImGuiTreeNodeFlags_DefaultOpen. +bool ImGui::CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + if (p_visible && !*p_visible) + return false; + + ImGuiID id = window->GetID(label); + flags |= ImGuiTreeNodeFlags_CollapsingHeader; + if (p_visible) + flags |= ImGuiTreeNodeFlags_AllowItemOverlap | ImGuiTreeNodeFlags_ClipLabelForTrailingButton; + bool is_open = TreeNodeBehavior(id, flags, label); + if (p_visible != NULL) + { + // Create a small overlapping close button + // FIXME: We can evolve this into user accessible helpers to add extra buttons on title bars, headers, etc. + // FIXME: CloseButton can overlap into text, need find a way to clip the text somehow. + ImGuiContext& g = *GImGui; + ImGuiLastItemData last_item_backup = g.LastItemData; + float button_size = g.FontSize; + float button_x = ImMax(g.LastItemData.Rect.Min.x, g.LastItemData.Rect.Max.x - g.Style.FramePadding.x * 2.0f - button_size); + float button_y = g.LastItemData.Rect.Min.y; + ImGuiID close_button_id = GetIDWithSeed("#CLOSE", NULL, id); + if (CloseButton(close_button_id, ImVec2(button_x, button_y))) + *p_visible = false; + g.LastItemData = last_item_backup; + } + + return is_open; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Selectable +//------------------------------------------------------------------------- +// - Selectable() +//------------------------------------------------------------------------- + +// Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image. +// But you need to make sure the ID is unique, e.g. enclose calls in PushID/PopID or use ##unique_id. +// With this scheme, ImGuiSelectableFlags_SpanAllColumns and ImGuiSelectableFlags_AllowItemOverlap are also frequently used flags. +// FIXME: Selectable() with (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported. +bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + // Submit label or explicit size to ItemSize(), whereas ItemAdd() will submit a larger/spanning rectangle. + ImGuiID id = window->GetID(label); + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 size(size_arg.x != 0.0f ? size_arg.x : label_size.x, size_arg.y != 0.0f ? size_arg.y : label_size.y); + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(size, 0.0f); + + // Fill horizontal space + // We don't support (size < 0.0f) in Selectable() because the ItemSpacing extension would make explicitly right-aligned sizes not visibly match other widgets. + const bool span_all_columns = (flags & ImGuiSelectableFlags_SpanAllColumns) != 0; + const float min_x = span_all_columns ? window->ParentWorkRect.Min.x : pos.x; + const float max_x = span_all_columns ? window->ParentWorkRect.Max.x : window->WorkRect.Max.x; + if (size_arg.x == 0.0f || (flags & ImGuiSelectableFlags_SpanAvailWidth)) + size.x = ImMax(label_size.x, max_x - min_x); + + // Text stays at the submission position, but bounding box may be extended on both sides + const ImVec2 text_min = pos; + const ImVec2 text_max(min_x + size.x, pos.y + size.y); + + // Selectables are meant to be tightly packed together with no click-gap, so we extend their box to cover spacing between selectable. + ImRect bb(min_x, pos.y, text_max.x, text_max.y); + if ((flags & ImGuiSelectableFlags_NoPadWithHalfSpacing) == 0) + { + const float spacing_x = span_all_columns ? 0.0f : style.ItemSpacing.x; + const float spacing_y = style.ItemSpacing.y; + const float spacing_L = IM_FLOOR(spacing_x * 0.50f); + const float spacing_U = IM_FLOOR(spacing_y * 0.50f); + bb.Min.x -= spacing_L; + bb.Min.y -= spacing_U; + bb.Max.x += (spacing_x - spacing_L); + bb.Max.y += (spacing_y - spacing_U); + } + //if (g.IO.KeyCtrl) { GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(0, 255, 0, 255)); } + + // Modify ClipRect for the ItemAdd(), faster than doing a PushColumnsBackground/PushTableBackground for every Selectable.. + const float backup_clip_rect_min_x = window->ClipRect.Min.x; + const float backup_clip_rect_max_x = window->ClipRect.Max.x; + if (span_all_columns) + { + window->ClipRect.Min.x = window->ParentWorkRect.Min.x; + window->ClipRect.Max.x = window->ParentWorkRect.Max.x; + } + + const bool disabled_item = (flags & ImGuiSelectableFlags_Disabled) != 0; + const bool item_add = ItemAdd(bb, id, NULL, disabled_item ? ImGuiItemFlags_Disabled : ImGuiItemFlags_None); + if (span_all_columns) + { + window->ClipRect.Min.x = backup_clip_rect_min_x; + window->ClipRect.Max.x = backup_clip_rect_max_x; + } + + if (!item_add) + return false; + + const bool disabled_global = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + if (disabled_item && !disabled_global) // Only testing this as an optimization + BeginDisabled(); + + // FIXME: We can standardize the behavior of those two, we could also keep the fast path of override ClipRect + full push on render only, + // which would be advantageous since most selectable are not selected. + if (span_all_columns && window->DC.CurrentColumns) + PushColumnsBackground(); + else if (span_all_columns && g.CurrentTable) + TablePushBackgroundChannel(); + + // We use NoHoldingActiveID on menus so user can click and _hold_ on a menu then drag to browse child entries + ImGuiButtonFlags button_flags = 0; + if (flags & ImGuiSelectableFlags_NoHoldingActiveID) { button_flags |= ImGuiButtonFlags_NoHoldingActiveId; } + if (flags & ImGuiSelectableFlags_NoSetKeyOwner) { button_flags |= ImGuiButtonFlags_NoSetKeyOwner; } + if (flags & ImGuiSelectableFlags_SelectOnClick) { button_flags |= ImGuiButtonFlags_PressedOnClick; } + if (flags & ImGuiSelectableFlags_SelectOnRelease) { button_flags |= ImGuiButtonFlags_PressedOnRelease; } + if (flags & ImGuiSelectableFlags_AllowDoubleClick) { button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; } + if (flags & ImGuiSelectableFlags_AllowItemOverlap) { button_flags |= ImGuiButtonFlags_AllowItemOverlap; } + + const bool was_selected = selected; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + + // Auto-select when moved into + // - This will be more fully fleshed in the range-select branch + // - This is not exposed as it won't nicely work with some user side handling of shift/control + // - We cannot do 'if (g.NavJustMovedToId != id) { selected = false; pressed = was_selected; }' for two reasons + // - (1) it would require focus scope to be set, need exposing PushFocusScope() or equivalent (e.g. BeginSelection() calling PushFocusScope()) + // - (2) usage will fail with clipped items + // The multi-select API aim to fix those issues, e.g. may be replaced with a BeginSelection() API. + if ((flags & ImGuiSelectableFlags_SelectOnNav) && g.NavJustMovedToId != 0 && g.NavJustMovedToFocusScopeId == g.CurrentFocusScopeId) + if (g.NavJustMovedToId == id) + selected = pressed = true; + + // Update NavId when clicking or when Hovering (this doesn't happen on most widgets), so navigation can be resumed with gamepad/keyboard + if (pressed || (hovered && (flags & ImGuiSelectableFlags_SetNavIdOnHover))) + { + if (!g.NavDisableMouseHover && g.NavWindow == window && g.NavLayer == window->DC.NavLayerCurrent) + { + SetNavID(id, window->DC.NavLayerCurrent, g.CurrentFocusScopeId, WindowRectAbsToRel(window, bb)); // (bb == NavRect) + g.NavDisableHighlight = true; + } + } + if (pressed) + MarkItemEdited(id); + + if (flags & ImGuiSelectableFlags_AllowItemOverlap) + SetItemAllowOverlap(); + + // In this branch, Selectable() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + if (held && (flags & ImGuiSelectableFlags_DrawHoveredWhenHeld)) + hovered = true; + if (hovered || selected) + { + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(bb.Min, bb.Max, col, false, 0.0f); + } + RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); + + if (span_all_columns && window->DC.CurrentColumns) + PopColumnsBackground(); + else if (span_all_columns && g.CurrentTable) + TablePopBackgroundChannel(); + + RenderTextClipped(text_min, text_max, label, NULL, &label_size, style.SelectableTextAlign, &bb); + + // Automatically close popups + if (pressed && (window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiSelectableFlags_DontClosePopups) && !(g.LastItemData.InFlags & ImGuiItemFlags_SelectableDontClosePopup)) + CloseCurrentPopup(); + + if (disabled_item && !disabled_global) + EndDisabled(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; //-V1020 +} + +bool ImGui::Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + if (Selectable(label, *p_selected, flags, size_arg)) + { + *p_selected = !*p_selected; + return true; + } + return false; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ListBox +//------------------------------------------------------------------------- +// - BeginListBox() +// - EndListBox() +// - ListBox() +//------------------------------------------------------------------------- + +// Tip: To have a list filling the entire window width, use size.x = -FLT_MIN and pass an non-visible label e.g. "##empty" +// Tip: If your vertical size is calculated from an item count (e.g. 10 * item_height) consider adding a fractional part to facilitate seeing scrolling boundaries (e.g. 10.25 * item_height). +bool ImGui::BeginListBox(const char* label, const ImVec2& size_arg) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + // Size default to hold ~7.25 items. + // Fractional number of items helps seeing that we can scroll down/up without looking at scrollbar. + ImVec2 size = ImFloor(CalcItemSize(size_arg, CalcItemWidth(), GetTextLineHeightWithSpacing() * 7.25f + style.FramePadding.y * 2.0f)); + ImVec2 frame_size = ImVec2(size.x, ImMax(size.y, label_size.y)); + ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + g.NextItemData.ClearFlags(); + + if (!IsRectVisible(bb.Min, bb.Max)) + { + ItemSize(bb.GetSize(), style.FramePadding.y); + ItemAdd(bb, 0, &frame_bb); + return false; + } + + // FIXME-OPT: We could omit the BeginGroup() if label_size.x but would need to omit the EndGroup() as well. + BeginGroup(); + if (label_size.x > 0.0f) + { + ImVec2 label_pos = ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y); + RenderText(label_pos, label); + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, label_pos + label_size); + } + + BeginChildFrame(id, frame_bb.GetSize()); + return true; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// OBSOLETED in 1.81 (from February 2021) +bool ImGui::ListBoxHeader(const char* label, int items_count, int height_in_items) +{ + // If height_in_items == -1, default height is maximum 7. + ImGuiContext& g = *GImGui; + float height_in_items_f = (height_in_items < 0 ? ImMin(items_count, 7) : height_in_items) + 0.25f; + ImVec2 size; + size.x = 0.0f; + size.y = GetTextLineHeightWithSpacing() * height_in_items_f + g.Style.FramePadding.y * 2.0f; + return BeginListBox(label, size); +} +#endif + +void ImGui::EndListBox() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) && "Mismatched BeginListBox/EndListBox calls. Did you test the return value of BeginListBox?"); + IM_UNUSED(window); + + EndChildFrame(); + EndGroup(); // This is only required to be able to do IsItemXXX query on the whole ListBox including label +} + +bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items) +{ + const bool value_changed = ListBox(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_items); + return value_changed; +} + +// This is merely a helper around BeginListBox(), EndListBox(). +// Considering using those directly to submit custom data or store selection differently. +bool ImGui::ListBox(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int height_in_items) +{ + ImGuiContext& g = *GImGui; + + // Calculate size from "height_in_items" + if (height_in_items < 0) + height_in_items = ImMin(items_count, 7); + float height_in_items_f = height_in_items + 0.25f; + ImVec2 size(0.0f, ImFloor(GetTextLineHeightWithSpacing() * height_in_items_f + g.Style.FramePadding.y * 2.0f)); + + if (!BeginListBox(label, size)) + return false; + + // Assume all items have even height (= 1 line of text). If you need items of different height, + // you can create a custom version of ListBox() in your code without using the clipper. + bool value_changed = false; + ImGuiListClipper clipper; + clipper.Begin(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to. + while (clipper.Step()) + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + { + const char* item_text; + if (!items_getter(data, i, &item_text)) + item_text = "*Unknown item*"; + + PushID(i); + const bool item_selected = (i == *current_item); + if (Selectable(item_text, item_selected)) + { + *current_item = i; + value_changed = true; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + EndListBox(); + + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: PlotLines, PlotHistogram +//------------------------------------------------------------------------- +// - PlotEx() [Internal] +// - PlotLines() +// - PlotHistogram() +//------------------------------------------------------------------------- +// Plot/Graph widgets are not very good. +// Consider writing your own, or using a third-party one, see: +// - ImPlot https://github.com/epezent/implot +// - others https://github.com/ocornut/imgui/wiki/Useful-Extensions +//------------------------------------------------------------------------- + +int ImGui::PlotEx(ImGuiPlotType plot_type, 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 frame_size) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return -1; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + if (frame_size.x == 0.0f) + frame_size.x = CalcItemWidth(); + if (frame_size.y == 0.0f) + frame_size.y = label_size.y + (style.FramePadding.y * 2); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect inner_bb(frame_bb.Min + style.FramePadding, frame_bb.Max - style.FramePadding); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0, &frame_bb)) + return -1; + const bool hovered = ItemHoverable(frame_bb, id); + + // Determine scale from values if not specified + if (scale_min == FLT_MAX || scale_max == FLT_MAX) + { + float v_min = FLT_MAX; + float v_max = -FLT_MAX; + for (int i = 0; i < values_count; i++) + { + const float v = values_getter(data, i); + if (v != v) // Ignore NaN values + continue; + v_min = ImMin(v_min, v); + v_max = ImMax(v_max, v); + } + if (scale_min == FLT_MAX) + scale_min = v_min; + if (scale_max == FLT_MAX) + scale_max = v_max; + } + + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + + const int values_count_min = (plot_type == ImGuiPlotType_Lines) ? 2 : 1; + int idx_hovered = -1; + if (values_count >= values_count_min) + { + int res_w = ImMin((int)frame_size.x, values_count) + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + int item_count = values_count + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + + // Tooltip on hover + if (hovered && inner_bb.Contains(g.IO.MousePos)) + { + const float t = ImClamp((g.IO.MousePos.x - inner_bb.Min.x) / (inner_bb.Max.x - inner_bb.Min.x), 0.0f, 0.9999f); + const int v_idx = (int)(t * item_count); + IM_ASSERT(v_idx >= 0 && v_idx < values_count); + + const float v0 = values_getter(data, (v_idx + values_offset) % values_count); + const float v1 = values_getter(data, (v_idx + 1 + values_offset) % values_count); + if (plot_type == ImGuiPlotType_Lines) + SetTooltip("%d: %8.4g\n%d: %8.4g", v_idx, v0, v_idx + 1, v1); + else if (plot_type == ImGuiPlotType_Histogram) + SetTooltip("%d: %8.4g", v_idx, v0); + idx_hovered = v_idx; + } + + const float t_step = 1.0f / (float)res_w; + const float inv_scale = (scale_min == scale_max) ? 0.0f : (1.0f / (scale_max - scale_min)); + + float v0 = values_getter(data, (0 + values_offset) % values_count); + float t0 = 0.0f; + ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) ); // Point in the normalized space of our target rectangle + float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (1 + scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f); // Where does the zero line stands + + const ImU32 col_base = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLines : ImGuiCol_PlotHistogram); + const ImU32 col_hovered = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLinesHovered : ImGuiCol_PlotHistogramHovered); + + for (int n = 0; n < res_w; n++) + { + const float t1 = t0 + t_step; + const int v1_idx = (int)(t0 * item_count + 0.5f); + IM_ASSERT(v1_idx >= 0 && v1_idx < values_count); + const float v1 = values_getter(data, (v1_idx + values_offset + 1) % values_count); + const ImVec2 tp1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) * inv_scale) ); + + // NB: Draw calls are merged together by the DrawList system. Still, we should render our batch are lower level to save a bit of CPU. + ImVec2 pos0 = ImLerp(inner_bb.Min, inner_bb.Max, tp0); + ImVec2 pos1 = ImLerp(inner_bb.Min, inner_bb.Max, (plot_type == ImGuiPlotType_Lines) ? tp1 : ImVec2(tp1.x, histogram_zero_line_t)); + if (plot_type == ImGuiPlotType_Lines) + { + window->DrawList->AddLine(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + else if (plot_type == ImGuiPlotType_Histogram) + { + if (pos1.x >= pos0.x + 2.0f) + pos1.x -= 1.0f; + window->DrawList->AddRectFilled(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + + t0 = t1; + tp0 = tp1; + } + } + + // Text overlay + if (overlay_text) + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, overlay_text, NULL, NULL, ImVec2(0.5f, 0.0f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, inner_bb.Min.y), label); + + // Return hovered index or -1 if none are hovered. + // This is currently not exposed in the public API because we need a larger redesign of the whole thing, but in the short-term we are making it available in PlotEx(). + return idx_hovered; +} + +struct ImGuiPlotArrayGetterData +{ + const float* Values; + int Stride; + + ImGuiPlotArrayGetterData(const float* values, int stride) { Values = values; Stride = stride; } +}; + +static float Plot_ArrayGetter(void* data, int idx) +{ + ImGuiPlotArrayGetterData* plot_data = (ImGuiPlotArrayGetterData*)data; + const float v = *(const float*)(const void*)((const unsigned char*)plot_data->Values + (size_t)idx * plot_data->Stride); + return v; +} + +void ImGui::PlotLines(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) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Lines, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotLines(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) +{ + PlotEx(ImGuiPlotType_Lines, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(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) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Histogram, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(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) +{ + PlotEx(ImGuiPlotType_Histogram, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Value helpers +// Those is not very useful, legacy API. +//------------------------------------------------------------------------- +// - Value() +//------------------------------------------------------------------------- + +void ImGui::Value(const char* prefix, bool b) +{ + Text("%s: %s", prefix, (b ? "true" : "false")); +} + +void ImGui::Value(const char* prefix, int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, unsigned int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, float v, const char* float_format) +{ + if (float_format) + { + char fmt[64]; + ImFormatString(fmt, IM_ARRAYSIZE(fmt), "%%s: %s", float_format); + Text(fmt, prefix, v); + } + else + { + Text("%s: %.3f", prefix, v); + } +} + +//------------------------------------------------------------------------- +// [SECTION] MenuItem, BeginMenu, EndMenu, etc. +//------------------------------------------------------------------------- +// - ImGuiMenuColumns [Internal] +// - BeginMenuBar() +// - EndMenuBar() +// - BeginMainMenuBar() +// - EndMainMenuBar() +// - BeginMenu() +// - EndMenu() +// - MenuItemEx() [Internal] +// - MenuItem() +//------------------------------------------------------------------------- + +// Helpers for internal use +void ImGuiMenuColumns::Update(float spacing, bool window_reappearing) +{ + if (window_reappearing) + memset(Widths, 0, sizeof(Widths)); + Spacing = (ImU16)spacing; + CalcNextTotalWidth(true); + memset(Widths, 0, sizeof(Widths)); + TotalWidth = NextTotalWidth; + NextTotalWidth = 0; +} + +void ImGuiMenuColumns::CalcNextTotalWidth(bool update_offsets) +{ + ImU16 offset = 0; + bool want_spacing = false; + for (int i = 0; i < IM_ARRAYSIZE(Widths); i++) + { + ImU16 width = Widths[i]; + if (want_spacing && width > 0) + offset += Spacing; + want_spacing |= (width > 0); + if (update_offsets) + { + if (i == 1) { OffsetLabel = offset; } + if (i == 2) { OffsetShortcut = offset; } + if (i == 3) { OffsetMark = offset; } + } + offset += width; + } + NextTotalWidth = offset; +} + +float ImGuiMenuColumns::DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark) +{ + Widths[0] = ImMax(Widths[0], (ImU16)w_icon); + Widths[1] = ImMax(Widths[1], (ImU16)w_label); + Widths[2] = ImMax(Widths[2], (ImU16)w_shortcut); + Widths[3] = ImMax(Widths[3], (ImU16)w_mark); + CalcNextTotalWidth(false); + return (float)ImMax(TotalWidth, NextTotalWidth); +} + +// FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere.. +// Currently the main responsibility of this function being to setup clip-rect + horizontal layout + menu navigation layer. +// Ideally we also want this to be responsible for claiming space out of the main window scrolling rectangle, in which case ImGuiWindowFlags_MenuBar will become unnecessary. +// Then later the same system could be used for multiple menu-bars, scrollbars, side-bars. +bool ImGui::BeginMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + if (!(window->Flags & ImGuiWindowFlags_MenuBar)) + return false; + + IM_ASSERT(!window->DC.MenuBarAppending); + BeginGroup(); // Backup position on layer 0 // FIXME: Misleading to use a group for that backup/restore + PushID("##menubar"); + + // We don't clip with current window clipping rectangle as it is already set to the area below. However we clip with window full rect. + // We remove 1 worth of rounding to Max.x to that text in long menus and small windows don't tend to display over the lower-right rounded area, which looks particularly glitchy. + ImRect bar_rect = window->MenuBarRect(); + ImRect clip_rect(IM_ROUND(bar_rect.Min.x + window->WindowBorderSize), IM_ROUND(bar_rect.Min.y + window->WindowBorderSize), IM_ROUND(ImMax(bar_rect.Min.x, bar_rect.Max.x - ImMax(window->WindowRounding, window->WindowBorderSize))), IM_ROUND(bar_rect.Max.y)); + clip_rect.ClipWith(window->OuterRectClipped); + PushClipRect(clip_rect.Min, clip_rect.Max, false); + + // We overwrite CursorMaxPos because BeginGroup sets it to CursorPos (essentially the .EmitItem hack in EndMenuBar() would need something analogous here, maybe a BeginGroupEx() with flags). + window->DC.CursorPos = window->DC.CursorMaxPos = ImVec2(bar_rect.Min.x + window->DC.MenuBarOffset.x, bar_rect.Min.y + window->DC.MenuBarOffset.y); + window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + window->DC.MenuBarAppending = true; + AlignTextToFramePadding(); + return true; +} + +void ImGui::EndMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ImGuiContext& g = *GImGui; + + // Nav: When a move request within one of our child menu failed, capture the request to navigate among our siblings. + if (NavMoveRequestButNoResultYet() && (g.NavMoveDir == ImGuiDir_Left || g.NavMoveDir == ImGuiDir_Right) && (g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + { + // Try to find out if the request is for one of our child menu + ImGuiWindow* nav_earliest_child = g.NavWindow; + while (nav_earliest_child->ParentWindow && (nav_earliest_child->ParentWindow->Flags & ImGuiWindowFlags_ChildMenu)) + nav_earliest_child = nav_earliest_child->ParentWindow; + if (nav_earliest_child->ParentWindow == window && nav_earliest_child->DC.ParentLayoutType == ImGuiLayoutType_Horizontal && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded) == 0) + { + // To do so we claim focus back, restore NavId and then process the movement request for yet another frame. + // This involve a one-frame delay which isn't very problematic in this situation. We could remove it by scoring in advance for multiple window (probably not worth bothering) + const ImGuiNavLayer layer = ImGuiNavLayer_Menu; + IM_ASSERT(window->DC.NavLayersActiveMaskNext & (1 << layer)); // Sanity check (FIXME: Seems unnecessary) + FocusWindow(window); + SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); + g.NavDisableHighlight = true; // Hide highlight for the current frame so we don't see the intermediary selection. + g.NavDisableMouseHover = g.NavMousePosDirty = true; + NavMoveRequestForward(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); // Repeat + } + } + + IM_MSVC_WARNING_SUPPRESS(6011); // Static Analysis false positive "warning C6011: Dereferencing NULL pointer 'window'" + IM_ASSERT(window->Flags & ImGuiWindowFlags_MenuBar); + IM_ASSERT(window->DC.MenuBarAppending); + PopClipRect(); + PopID(); + window->DC.MenuBarOffset.x = window->DC.CursorPos.x - window->Pos.x; // Save horizontal position so next append can reuse it. This is kinda equivalent to a per-layer CursorPos. + g.GroupStack.back().EmitItem = false; + EndGroup(); // Restore position on layer 0 + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.MenuBarAppending = false; +} + +// Important: calling order matters! +// FIXME: Somehow overlapping with docking tech. +// FIXME: The "rect-cut" aspect of this could be formalized into a lower-level helper (rect-cut: https://halt.software/dead-simple-layouts) +bool ImGui::BeginViewportSideBar(const char* name, ImGuiViewport* viewport_p, ImGuiDir dir, float axis_size, ImGuiWindowFlags window_flags) +{ + IM_ASSERT(dir != ImGuiDir_None); + + ImGuiWindow* bar_window = FindWindowByName(name); + if (bar_window == NULL || bar_window->BeginCount == 0) + { + // Calculate and set window size/position + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)(viewport_p ? viewport_p : GetMainViewport()); + ImRect avail_rect = viewport->GetBuildWorkRect(); + ImGuiAxis axis = (dir == ImGuiDir_Up || dir == ImGuiDir_Down) ? ImGuiAxis_Y : ImGuiAxis_X; + ImVec2 pos = avail_rect.Min; + if (dir == ImGuiDir_Right || dir == ImGuiDir_Down) + pos[axis] = avail_rect.Max[axis] - axis_size; + ImVec2 size = avail_rect.GetSize(); + size[axis] = axis_size; + SetNextWindowPos(pos); + SetNextWindowSize(size); + + // Report our size into work area (for next frame) using actual window size + if (dir == ImGuiDir_Up || dir == ImGuiDir_Left) + viewport->BuildWorkOffsetMin[axis] += axis_size; + else if (dir == ImGuiDir_Down || dir == ImGuiDir_Right) + viewport->BuildWorkOffsetMax[axis] -= axis_size; + } + + window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove; + PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowMinSize, ImVec2(0, 0)); // Lift normal size constraint + bool is_open = Begin(name, NULL, window_flags); + PopStyleVar(2); + + return is_open; +} + +bool ImGui::BeginMainMenuBar() +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)GetMainViewport(); + + // For the main menu bar, which cannot be moved, we honor g.Style.DisplaySafeAreaPadding to ensure text can be visible on a TV set. + // FIXME: This could be generalized as an opt-in way to clamp window->DC.CursorStartPos to avoid SafeArea? + // FIXME: Consider removing support for safe area down the line... it's messy. Nowadays consoles have support for TV calibration in OS settings. + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(g.Style.DisplaySafeAreaPadding.x, ImMax(g.Style.DisplaySafeAreaPadding.y - g.Style.FramePadding.y, 0.0f)); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_MenuBar; + float height = GetFrameHeight(); + bool is_open = BeginViewportSideBar("##MainMenuBar", viewport, ImGuiDir_Up, height, window_flags); + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(0.0f, 0.0f); + + if (is_open) + BeginMenuBar(); + else + End(); + return is_open; +} + +void ImGui::EndMainMenuBar() +{ + EndMenuBar(); + + // When the user has left the menu layer (typically: closed menus through activation of an item), we restore focus to the previous window + // FIXME: With this strategy we won't be able to restore a NULL focus. + ImGuiContext& g = *GImGui; + if (g.CurrentWindow == g.NavWindow && g.NavLayer == ImGuiNavLayer_Main && !g.NavAnyRequest) + FocusTopMostWindowUnderOne(g.NavWindow, NULL); + + End(); +} + +static bool IsRootOfOpenMenuSet() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if ((g.OpenPopupStack.Size <= g.BeginPopupStack.Size) || (window->Flags & ImGuiWindowFlags_ChildMenu)) + return false; + + // Initially we used 'upper_popup->OpenParentId == window->IDStack.back()' to differentiate multiple menu sets from each others + // (e.g. inside menu bar vs loose menu items) based on parent ID. + // This would however prevent the use of e.g. PuhsID() user code submitting menus. + // Previously this worked between popup and a first child menu because the first child menu always had the _ChildWindow flag, + // making hovering on parent popup possible while first child menu was focused - but this was generally a bug with other side effects. + // Instead we don't treat Popup specifically (in order to consistently support menu features in them), maybe the first child menu of a Popup + // doesn't have the _ChildWindow flag, and we rely on this IsRootOfOpenMenuSet() check to allow hovering between root window/popup and first child menu. + // In the end, lack of ID check made it so we could no longer differentiate between separate menu sets. To compensate for that, we at least check parent window nav layer. + // This fixes the most common case of menu opening on hover when moving between window content and menu bar. Multiple different menu sets in same nav layer would still + // open on hover, but that should be a lesser problem, because if such menus are close in proximity in window content then it won't feel weird and if they are far apart + // it likely won't be a problem anyone runs into. + const ImGuiPopupData* upper_popup = &g.OpenPopupStack[g.BeginPopupStack.Size]; + return (window->DC.NavLayerCurrent == upper_popup->ParentNavLayer && upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu)); +} + +bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + bool menu_is_open = IsPopupOpen(id, ImGuiPopupFlags_None); + + // Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu) + // The first menu in a hierarchy isn't so hovering doesn't get across (otherwise e.g. resizing borders with ImGuiButtonFlags_FlattenChildren would react), but top-most BeginMenu() will bypass that limitation. + ImGuiWindowFlags window_flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; + if (window->Flags & ImGuiWindowFlags_ChildMenu) + window_flags |= ImGuiWindowFlags_ChildWindow; + + // If a menu with same the ID was already submitted, we will append to it, matching the behavior of Begin(). + // We are relying on a O(N) search - so O(N log N) over the frame - which seems like the most efficient for the expected small amount of BeginMenu() calls per frame. + // If somehow this is ever becoming a problem we can switch to use e.g. ImGuiStorage mapping key to last frame used. + if (g.MenusIdSubmittedThisFrame.contains(id)) + { + if (menu_is_open) + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + else + g.NextWindowData.ClearFlags(); // we behave like Begin() and need to consume those values + return menu_is_open; + } + + // Tag menu as used. Next time BeginMenu() with same ID is called it will append to existing menu + g.MenusIdSubmittedThisFrame.push_back(id); + + ImVec2 label_size = CalcTextSize(label, NULL, true); + + // Odd hack to allow hovering across menus of a same menu-set (otherwise we wouldn't be able to hover parent without always being a Child window) + // This is only done for items for the menu set and not the full parent window. + const bool menuset_is_open = IsRootOfOpenMenuSet(); + if (menuset_is_open) + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); + + // The reference position stored in popup_pos will be used by Begin() to find a suitable position for the child menu, + // However the final position is going to be different! It is chosen by FindBestWindowPosForPopup(). + // e.g. Menus tend to overlap each other horizontally to amplify relative Z-ordering. + ImVec2 popup_pos, pos = window->DC.CursorPos; + PushID(label); + if (!enabled) + BeginDisabled(); + const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; + bool pressed; + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Menu inside an horizontal menu bar + // Selectable extend their highlight by half ItemSpacing in each direction. + // For ChildMenu, the popup position will be overwritten by the call to FindBestWindowPosForPopup() in Begin() + popup_pos = ImVec2(pos.x - 1.0f - IM_FLOOR(style.ItemSpacing.x * 0.5f), pos.y - style.FramePadding.y + window->MenuBarHeight()); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + float w = label_size.x; + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + pressed = Selectable("", menu_is_open, selectable_flags, ImVec2(w, 0.0f)); + RenderText(text_pos, label); + PopStyleVar(); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu inside a regular/vertical menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + popup_pos = ImVec2(pos.x, pos.y - style.WindowPadding.y); + float icon_w = (icon && icon[0]) ? CalcTextSize(icon, NULL).x : 0.0f; + float checkmark_w = IM_FLOOR(g.FontSize * 1.20f); + float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, 0.0f, checkmark_w); // Feedback to next frame + float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + pressed = Selectable("", menu_is_open, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); + RenderText(text_pos, label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + RenderArrow(window->DrawList, pos + ImVec2(offsets->OffsetMark + extra_w + g.FontSize * 0.30f, 0.0f), GetColorU32(ImGuiCol_Text), ImGuiDir_Right); + } + if (!enabled) + EndDisabled(); + + const bool hovered = (g.HoveredId == id) && enabled && !g.NavDisableMouseHover; + if (menuset_is_open) + PopItemFlag(); + + bool want_open = false; + bool want_close = false; + if (window->DC.LayoutType == ImGuiLayoutType_Vertical) // (window->Flags & (ImGuiWindowFlags_Popup|ImGuiWindowFlags_ChildMenu)) + { + // Close menu when not hovering it anymore unless we are moving roughly in the direction of the menu + // Implement http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown to avoid using timers, so menus feels more reactive. + bool moving_toward_child_menu = false; + ImGuiPopupData* child_popup = (g.BeginPopupStack.Size < g.OpenPopupStack.Size) ? &g.OpenPopupStack[g.BeginPopupStack.Size] : NULL; // Popup candidate (testing below) + ImGuiWindow* child_menu_window = (child_popup && child_popup->Window && child_popup->Window->ParentWindow == window) ? child_popup->Window : NULL; + if (g.HoveredWindow == window && child_menu_window != NULL) + { + float ref_unit = g.FontSize; // FIXME-DPI + float child_dir = (window->Pos.x < child_menu_window->Pos.x) ? 1.0f : -1.0f; + ImRect next_window_rect = child_menu_window->Rect(); + ImVec2 ta = (g.IO.MousePos - g.IO.MouseDelta); + ImVec2 tb = (child_dir > 0.0f) ? next_window_rect.GetTL() : next_window_rect.GetTR(); + ImVec2 tc = (child_dir > 0.0f) ? next_window_rect.GetBL() : next_window_rect.GetBR(); + float extra = ImClamp(ImFabs(ta.x - tb.x) * 0.30f, ref_unit * 0.5f, ref_unit * 2.5f); // add a bit of extra slack. + ta.x += child_dir * -0.5f; + tb.x += child_dir * ref_unit; + tc.x += child_dir * ref_unit; + tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -ref_unit * 8.0f); // triangle has maximum height to limit the slope and the bias toward large sub-menus + tc.y = ta.y + ImMin((tc.y + extra) - ta.y, +ref_unit * 8.0f); + moving_toward_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); + //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_toward_child_menu ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] + } + + // The 'HovereWindow == window' check creates an inconsistency (e.g. moving away from menu slowly tends to hit same window, whereas moving away fast does not) + // But we also need to not close the top-menu menu when moving over void. Perhaps we should extend the triangle check to a larger polygon. + // (Remember to test this on BeginPopup("A")->BeginMenu("B") sequence which behaves slightly differently as B isn't a Child of A and hovering isn't shared.) + if (menu_is_open && !hovered && g.HoveredWindow == window && !moving_toward_child_menu && !g.NavDisableMouseHover) + want_close = true; + + // Open + if (!menu_is_open && pressed) // Click/activate to open + want_open = true; + else if (!menu_is_open && hovered && !moving_toward_child_menu) // Hover to open + want_open = true; + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right) // Nav-Right to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + else + { + // Menu bar + if (menu_is_open && pressed && menuset_is_open) // Click an open menu again to close it + { + want_close = true; + want_open = menu_is_open = false; + } + else if (pressed || (hovered && menuset_is_open && !menu_is_open)) // First click to open, then hover to open others + { + want_open = true; + } + else if (g.NavId == id && g.NavMoveDir == ImGuiDir_Down) // Nav-Down to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + + if (!enabled) // explicitly close if an open menu becomes disabled, facilitate users code a lot in pattern such as 'if (BeginMenu("options", has_object)) { ..use object.. }' + want_close = true; + if (want_close && IsPopupOpen(id, ImGuiPopupFlags_None)) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Openable | (menu_is_open ? ImGuiItemStatusFlags_Opened : 0)); + PopID(); + + if (want_open && !menu_is_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) + { + // Don't reopen/recycle same menu level in the same frame, first close the other menu and yield for a frame. + OpenPopup(label); + } + else if (want_open) + { + menu_is_open = true; + OpenPopup(label); + } + + if (menu_is_open) + { + ImGuiLastItemData last_item_in_parent = g.LastItemData; + SetNextWindowPos(popup_pos, ImGuiCond_Always); // Note: misleading: the value will serve as reference for FindBestWindowPosForPopup(), not actual pos. + PushStyleVar(ImGuiStyleVar_ChildRounding, style.PopupRounding); // First level will use _PopupRounding, subsequent will use _ChildRounding + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + PopStyleVar(); + if (menu_is_open) + { + // Restore LastItemData so IsItemXXXX functions can work after BeginMenu()/EndMenu() + // (This fixes using IsItemClicked() and IsItemHovered(), but IsItemHovered() also relies on its support for ImGuiItemFlags_NoWindowHoverableCheck) + g.LastItemData = last_item_in_parent; + if (g.HoveredWindow == window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } + } + else + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + } + + return menu_is_open; +} + +bool ImGui::BeginMenu(const char* label, bool enabled) +{ + return BeginMenuEx(label, NULL, enabled); +} + +void ImGui::EndMenu() +{ + // Nav: When a left move request our menu failed, close ourselves. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginMenu()/EndMenu() calls + ImGuiWindow* parent_window = window->ParentWindow; // Should always be != NULL is we passed assert. + if (window->BeginCount == window->BeginCountPreviousFrame) + if (g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet()) + if (g.NavWindow && (g.NavWindow->RootWindowForNav == window) && parent_window->DC.LayoutType == ImGuiLayoutType_Vertical) + { + ClosePopupToLevel(g.BeginPopupStack.Size - 1, true); + NavMoveRequestCancel(); + } + + EndPopup(); +} + +bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut, bool selected, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImVec2 pos = window->DC.CursorPos; + ImVec2 label_size = CalcTextSize(label, NULL, true); + + // See BeginMenuEx() for comments about this. + const bool menuset_is_open = IsRootOfOpenMenuSet(); + if (menuset_is_open) + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); + + // We've been using the equivalent of ImGuiSelectableFlags_SetNavIdOnHover on all Selectable() since early Nav system days (commit 43ee5d73), + // but I am unsure whether this should be kept at all. For now moved it to be an opt-in feature used by menus only. + bool pressed; + PushID(label); + if (!enabled) + BeginDisabled(); + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SetNavIdOnHover; + const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Mimic the exact layout spacing of BeginMenu() to allow MenuItem() inside a menu bar, which is a little misleading but may be useful + // Note that in this situation: we don't render the shortcut, we render a highlight instead of the selected tick mark. + float w = label_size.x; + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + pressed = Selectable("", selected, selectable_flags, ImVec2(w, 0.0f)); + PopStyleVar(); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + RenderText(text_pos, label); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu item inside a vertical menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + float icon_w = (icon && icon[0]) ? CalcTextSize(icon, NULL).x : 0.0f; + float shortcut_w = (shortcut && shortcut[0]) ? CalcTextSize(shortcut, NULL).x : 0.0f; + float checkmark_w = IM_FLOOR(g.FontSize * 1.20f); + float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, shortcut_w, checkmark_w); // Feedback for next frame + float stretch_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + pressed = Selectable("", false, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + { + RenderText(pos + ImVec2(offsets->OffsetLabel, 0.0f), label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + if (shortcut_w > 0.0f) + { + PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); + RenderText(pos + ImVec2(offsets->OffsetShortcut + stretch_w, 0.0f), shortcut, NULL, false); + PopStyleColor(); + } + if (selected) + RenderCheckMark(window->DrawList, pos + ImVec2(offsets->OffsetMark + stretch_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(ImGuiCol_Text), g.FontSize * 0.866f); + } + } + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (selected ? ImGuiItemStatusFlags_Checked : 0)); + if (!enabled) + EndDisabled(); + PopID(); + if (menuset_is_open) + PopItemFlag(); + + return pressed; +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled) +{ + return MenuItemEx(label, NULL, shortcut, selected, enabled); +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled) +{ + if (MenuItemEx(label, NULL, shortcut, p_selected ? *p_selected : false, enabled)) + { + if (p_selected) + *p_selected = !*p_selected; + return true; + } + return false; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +//------------------------------------------------------------------------- +// - BeginTabBar() +// - BeginTabBarEx() [Internal] +// - EndTabBar() +// - TabBarLayout() [Internal] +// - TabBarCalcTabID() [Internal] +// - TabBarCalcMaxTabWidth() [Internal] +// - TabBarFindTabById() [Internal] +// - TabBarRemoveTab() [Internal] +// - TabBarCloseTab() [Internal] +// - TabBarScrollClamp() [Internal] +// - TabBarScrollToTab() [Internal] +// - TabBarQueueChangeTabOrder() [Internal] +// - TabBarScrollingButtons() [Internal] +// - TabBarTabListPopupButton() [Internal] +//------------------------------------------------------------------------- + +struct ImGuiTabBarSection +{ + int TabCount; // Number of tabs in this section. + float Width; // Sum of width of tabs in this section (after shrinking down) + float Spacing; // Horizontal spacing at the end of the section. + + ImGuiTabBarSection() { memset(this, 0, sizeof(*this)); } +}; + +namespace ImGui +{ + static void TabBarLayout(ImGuiTabBar* tab_bar); + static ImU32 TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label); + static float TabBarCalcMaxTabWidth(); + static float TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling); + static void TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections); + static ImGuiTabItem* TabBarScrollingButtons(ImGuiTabBar* tab_bar); + static ImGuiTabItem* TabBarTabListPopupButton(ImGuiTabBar* tab_bar); +} + +ImGuiTabBar::ImGuiTabBar() +{ + memset(this, 0, sizeof(*this)); + CurrFrameVisible = PrevFrameVisible = -1; + LastTabItemIdx = -1; +} + +static inline int TabItemGetSectionIdx(const ImGuiTabItem* tab) +{ + return (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; +} + +static int IMGUI_CDECL TabItemComparerBySection(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + const int a_section = TabItemGetSectionIdx(a); + const int b_section = TabItemGetSectionIdx(b); + if (a_section != b_section) + return a_section - b_section; + return (int)(a->IndexDuringLayout - b->IndexDuringLayout); +} + +static int IMGUI_CDECL TabItemComparerByBeginOrder(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + return (int)(a->BeginOrder - b->BeginOrder); +} + +static ImGuiTabBar* GetTabBarFromTabBarRef(const ImGuiPtrOrIndex& ref) +{ + ImGuiContext& g = *GImGui; + return ref.Ptr ? (ImGuiTabBar*)ref.Ptr : g.TabBars.GetByIndex(ref.Index); +} + +static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + if (g.TabBars.Contains(tab_bar)) + return ImGuiPtrOrIndex(g.TabBars.GetIndex(tab_bar)); + return ImGuiPtrOrIndex(tab_bar); +} + +bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiID id = window->GetID(str_id); + ImGuiTabBar* tab_bar = g.TabBars.GetOrAddByKey(id); + ImRect tab_bar_bb = ImRect(window->DC.CursorPos.x, window->DC.CursorPos.y, window->WorkRect.Max.x, window->DC.CursorPos.y + g.FontSize + g.Style.FramePadding.y * 2); + tab_bar->ID = id; + return BeginTabBarEx(tab_bar, tab_bar_bb, flags | ImGuiTabBarFlags_IsFocused); +} + +bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + if ((flags & ImGuiTabBarFlags_DockNode) == 0) + PushOverrideID(tab_bar->ID); + + // Add to stack + g.CurrentTabBarStack.push_back(GetTabBarRefFromTabBar(tab_bar)); + g.CurrentTabBar = tab_bar; + + // Append with multiple BeginTabBar()/EndTabBar() pairs. + tab_bar->BackupCursorPos = window->DC.CursorPos; + if (tab_bar->CurrFrameVisible == g.FrameCount) + { + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); + tab_bar->BeginCount++; + return true; + } + + // Ensure correct ordering when toggling ImGuiTabBarFlags_Reorderable flag, or when a new tab was added while being not reorderable + if ((flags & ImGuiTabBarFlags_Reorderable) != (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) || (tab_bar->TabsAddedNew && !(flags & ImGuiTabBarFlags_Reorderable))) + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerByBeginOrder); + tab_bar->TabsAddedNew = false; + + // Flags + if ((flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) + flags |= ImGuiTabBarFlags_FittingPolicyDefault_; + + tab_bar->Flags = flags; + tab_bar->BarRect = tab_bar_bb; + tab_bar->WantLayout = true; // Layout will be done on the first call to ItemTab() + tab_bar->PrevFrameVisible = tab_bar->CurrFrameVisible; + tab_bar->CurrFrameVisible = g.FrameCount; + tab_bar->PrevTabsContentsHeight = tab_bar->CurrTabsContentsHeight; + tab_bar->CurrTabsContentsHeight = 0.0f; + tab_bar->ItemSpacingY = g.Style.ItemSpacing.y; + tab_bar->FramePadding = g.Style.FramePadding; + tab_bar->TabsActiveCount = 0; + tab_bar->BeginCount = 1; + + // Set cursor pos in a way which only be used in the off-chance the user erroneously submits item before BeginTabItem(): items will overlap + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); + + // Draw separator + const ImU32 col = GetColorU32((flags & ImGuiTabBarFlags_IsFocused) ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive); + const float y = tab_bar->BarRect.Max.y - 1.0f; + { + const float separator_min_x = tab_bar->BarRect.Min.x - IM_FLOOR(window->WindowPadding.x * 0.5f); + const float separator_max_x = tab_bar->BarRect.Max.x + IM_FLOOR(window->WindowPadding.x * 0.5f); + window->DrawList->AddLine(ImVec2(separator_min_x, y), ImVec2(separator_max_x, y), col, 1.0f); + } + return true; +} + +void ImGui::EndTabBar() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Mismatched BeginTabBar()/EndTabBar()!"); + return; + } + + // Fallback in case no TabItem have been submitted + if (tab_bar->WantLayout) + TabBarLayout(tab_bar); + + // Restore the last visible height if no tab is visible, this reduce vertical flicker/movement when a tabs gets removed without calling SetTabItemClosed(). + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + if (tab_bar->VisibleTabWasSubmitted || tab_bar->VisibleTabId == 0 || tab_bar_appearing) + { + tab_bar->CurrTabsContentsHeight = ImMax(window->DC.CursorPos.y - tab_bar->BarRect.Max.y, tab_bar->CurrTabsContentsHeight); + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->CurrTabsContentsHeight; + } + else + { + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->PrevTabsContentsHeight; + } + if (tab_bar->BeginCount > 1) + window->DC.CursorPos = tab_bar->BackupCursorPos; + + if ((tab_bar->Flags & ImGuiTabBarFlags_DockNode) == 0) + PopID(); + + g.CurrentTabBarStack.pop_back(); + g.CurrentTabBar = g.CurrentTabBarStack.empty() ? NULL : GetTabBarFromTabBarRef(g.CurrentTabBarStack.back()); +} + +// This is called only once a frame before by the first call to ItemTab() +// The reason we're not calling it in BeginTabBar() is to leave a chance to the user to call the SetTabItemClosed() functions. +static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + tab_bar->WantLayout = false; + + // Garbage collect by compacting list + // Detect if we need to sort out tab list (e.g. in rare case where a tab changed section) + int tab_dst_n = 0; + bool need_sort_by_section = false; + ImGuiTabBarSection sections[3]; // Layout sections: Leading, Central, Trailing + for (int tab_src_n = 0; tab_src_n < tab_bar->Tabs.Size; tab_src_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_src_n]; + if (tab->LastFrameVisible < tab_bar->PrevFrameVisible || tab->WantClose) + { + // Remove tab + if (tab_bar->VisibleTabId == tab->ID) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab->ID) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab->ID) { tab_bar->NextSelectedTabId = 0; } + continue; + } + if (tab_dst_n != tab_src_n) + tab_bar->Tabs[tab_dst_n] = tab_bar->Tabs[tab_src_n]; + + tab = &tab_bar->Tabs[tab_dst_n]; + tab->IndexDuringLayout = (ImS16)tab_dst_n; + + // We will need sorting if tabs have changed section (e.g. moved from one of Leading/Central/Trailing to another) + int curr_tab_section_n = TabItemGetSectionIdx(tab); + if (tab_dst_n > 0) + { + ImGuiTabItem* prev_tab = &tab_bar->Tabs[tab_dst_n - 1]; + int prev_tab_section_n = TabItemGetSectionIdx(prev_tab); + if (curr_tab_section_n == 0 && prev_tab_section_n != 0) + need_sort_by_section = true; + if (prev_tab_section_n == 2 && curr_tab_section_n != 2) + need_sort_by_section = true; + } + + sections[curr_tab_section_n].TabCount++; + tab_dst_n++; + } + if (tab_bar->Tabs.Size != tab_dst_n) + tab_bar->Tabs.resize(tab_dst_n); + + if (need_sort_by_section) + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerBySection); + + // Calculate spacing between sections + sections[0].Spacing = sections[0].TabCount > 0 && (sections[1].TabCount + sections[2].TabCount) > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + sections[1].Spacing = sections[1].TabCount > 0 && sections[2].TabCount > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + + // Setup next selected tab + ImGuiID scroll_to_tab_id = 0; + if (tab_bar->NextSelectedTabId) + { + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId; + tab_bar->NextSelectedTabId = 0; + scroll_to_tab_id = tab_bar->SelectedTabId; + } + + // Process order change request (we could probably process it when requested but it's just saner to do it in a single spot). + if (tab_bar->ReorderRequestTabId != 0) + { + if (TabBarProcessReorder(tab_bar)) + if (tab_bar->ReorderRequestTabId == tab_bar->SelectedTabId) + scroll_to_tab_id = tab_bar->ReorderRequestTabId; + tab_bar->ReorderRequestTabId = 0; + } + + // Tab List Popup (will alter tab_bar->BarRect and therefore the available width!) + const bool tab_list_popup_button = (tab_bar->Flags & ImGuiTabBarFlags_TabListPopupButton) != 0; + if (tab_list_popup_button) + if (ImGuiTabItem* tab_to_select = TabBarTabListPopupButton(tab_bar)) // NB: Will alter BarRect.Min.x! + scroll_to_tab_id = tab_bar->SelectedTabId = tab_to_select->ID; + + // Leading/Trailing tabs will be shrink only if central one aren't visible anymore, so layout the shrink data as: leading, trailing, central + // (whereas our tabs are stored as: leading, central, trailing) + int shrink_buffer_indexes[3] = { 0, sections[0].TabCount + sections[2].TabCount, sections[0].TabCount }; + g.ShrinkWidthBuffer.resize(tab_bar->Tabs.Size); + + // Compute ideal tabs widths + store them into shrink buffer + ImGuiTabItem* most_recently_selected_tab = NULL; + int curr_section_n = -1; + bool found_selected_tab_id = false; + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + IM_ASSERT(tab->LastFrameVisible >= tab_bar->PrevFrameVisible); + + if ((most_recently_selected_tab == NULL || most_recently_selected_tab->LastFrameSelected < tab->LastFrameSelected) && !(tab->Flags & ImGuiTabItemFlags_Button)) + most_recently_selected_tab = tab; + if (tab->ID == tab_bar->SelectedTabId) + found_selected_tab_id = true; + if (scroll_to_tab_id == 0 && g.NavJustMovedToId == tab->ID) + scroll_to_tab_id = tab->ID; + + // Refresh tab width immediately, otherwise changes of style e.g. style.FramePadding.x would noticeably lag in the tab bar. + // Additionally, when using TabBarAddTab() to manipulate tab bar order we occasionally insert new tabs that don't have a width yet, + // and we cannot wait for the next BeginTabItem() call. We cannot compute this width within TabBarAddTab() because font size depends on the active window. + const char* tab_name = tab_bar->GetTabName(tab); + const bool has_close_button_or_unsaved_marker = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) == 0 || (tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + tab->ContentWidth = (tab->RequestedWidth >= 0.0f) ? tab->RequestedWidth : TabItemCalcSize(tab_name, has_close_button_or_unsaved_marker).x; + + int section_n = TabItemGetSectionIdx(tab); + ImGuiTabBarSection* section = §ions[section_n]; + section->Width += tab->ContentWidth + (section_n == curr_section_n ? g.Style.ItemInnerSpacing.x : 0.0f); + curr_section_n = section_n; + + // Store data so we can build an array sorted by width if we need to shrink tabs down + IM_MSVC_WARNING_SUPPRESS(6385); + ImGuiShrinkWidthItem* shrink_width_item = &g.ShrinkWidthBuffer[shrink_buffer_indexes[section_n]++]; + shrink_width_item->Index = tab_n; + shrink_width_item->Width = shrink_width_item->InitialWidth = tab->ContentWidth; + tab->Width = ImMax(tab->ContentWidth, 1.0f); + } + + // Compute total ideal width (used for e.g. auto-resizing a window) + tab_bar->WidthAllTabsIdeal = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + tab_bar->WidthAllTabsIdeal += sections[section_n].Width + sections[section_n].Spacing; + + // Horizontal scrolling buttons + // (note that TabBarScrollButtons() will alter BarRect.Max.x) + if ((tab_bar->WidthAllTabsIdeal > tab_bar->BarRect.GetWidth() && tab_bar->Tabs.Size > 1) && !(tab_bar->Flags & ImGuiTabBarFlags_NoTabListScrollingButtons) && (tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyScroll)) + if (ImGuiTabItem* scroll_and_select_tab = TabBarScrollingButtons(tab_bar)) + { + scroll_to_tab_id = scroll_and_select_tab->ID; + if ((scroll_and_select_tab->Flags & ImGuiTabItemFlags_Button) == 0) + tab_bar->SelectedTabId = scroll_to_tab_id; + } + + // Shrink widths if full tabs don't fit in their allocated space + float section_0_w = sections[0].Width + sections[0].Spacing; + float section_1_w = sections[1].Width + sections[1].Spacing; + float section_2_w = sections[2].Width + sections[2].Spacing; + bool central_section_is_visible = (section_0_w + section_2_w) < tab_bar->BarRect.GetWidth(); + float width_excess; + if (central_section_is_visible) + width_excess = ImMax(section_1_w - (tab_bar->BarRect.GetWidth() - section_0_w - section_2_w), 0.0f); // Excess used to shrink central section + else + width_excess = (section_0_w + section_2_w) - tab_bar->BarRect.GetWidth(); // Excess used to shrink leading/trailing section + + // With ImGuiTabBarFlags_FittingPolicyScroll policy, we will only shrink leading/trailing if the central section is not visible anymore + if (width_excess >= 1.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) + { + int shrink_data_count = (central_section_is_visible ? sections[1].TabCount : sections[0].TabCount + sections[2].TabCount); + int shrink_data_offset = (central_section_is_visible ? sections[0].TabCount + sections[2].TabCount : 0); + ShrinkWidths(g.ShrinkWidthBuffer.Data + shrink_data_offset, shrink_data_count, width_excess); + + // Apply shrunk values into tabs and sections + for (int tab_n = shrink_data_offset; tab_n < shrink_data_offset + shrink_data_count; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[g.ShrinkWidthBuffer[tab_n].Index]; + float shrinked_width = IM_FLOOR(g.ShrinkWidthBuffer[tab_n].Width); + if (shrinked_width < 0.0f) + continue; + + shrinked_width = ImMax(1.0f, shrinked_width); + int section_n = TabItemGetSectionIdx(tab); + sections[section_n].Width -= (tab->Width - shrinked_width); + tab->Width = shrinked_width; + } + } + + // Layout all active tabs + int section_tab_index = 0; + float tab_offset = 0.0f; + tab_bar->WidthAllTabs = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + { + ImGuiTabBarSection* section = §ions[section_n]; + if (section_n == 2) + tab_offset = ImMin(ImMax(0.0f, tab_bar->BarRect.GetWidth() - section->Width), tab_offset); + + for (int tab_n = 0; tab_n < section->TabCount; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[section_tab_index + tab_n]; + tab->Offset = tab_offset; + tab_offset += tab->Width + (tab_n < section->TabCount - 1 ? g.Style.ItemInnerSpacing.x : 0.0f); + } + tab_bar->WidthAllTabs += ImMax(section->Width + section->Spacing, 0.0f); + tab_offset += section->Spacing; + section_tab_index += section->TabCount; + } + + // If we have lost the selected tab, select the next most recently active one + if (found_selected_tab_id == false) + tab_bar->SelectedTabId = 0; + if (tab_bar->SelectedTabId == 0 && tab_bar->NextSelectedTabId == 0 && most_recently_selected_tab != NULL) + scroll_to_tab_id = tab_bar->SelectedTabId = most_recently_selected_tab->ID; + + // Lock in visible tab + tab_bar->VisibleTabId = tab_bar->SelectedTabId; + tab_bar->VisibleTabWasSubmitted = false; + + // Update scrolling + if (scroll_to_tab_id != 0) + TabBarScrollToTab(tab_bar, scroll_to_tab_id, sections); + tab_bar->ScrollingAnim = TabBarScrollClamp(tab_bar, tab_bar->ScrollingAnim); + tab_bar->ScrollingTarget = TabBarScrollClamp(tab_bar, tab_bar->ScrollingTarget); + if (tab_bar->ScrollingAnim != tab_bar->ScrollingTarget) + { + // Scrolling speed adjust itself so we can always reach our target in 1/3 seconds. + // Teleport if we are aiming far off the visible line + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, 70.0f * g.FontSize); + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, ImFabs(tab_bar->ScrollingTarget - tab_bar->ScrollingAnim) / 0.3f); + const bool teleport = (tab_bar->PrevFrameVisible + 1 < g.FrameCount) || (tab_bar->ScrollingTargetDistToVisibility > 10.0f * g.FontSize); + tab_bar->ScrollingAnim = teleport ? tab_bar->ScrollingTarget : ImLinearSweep(tab_bar->ScrollingAnim, tab_bar->ScrollingTarget, g.IO.DeltaTime * tab_bar->ScrollingSpeed); + } + else + { + tab_bar->ScrollingSpeed = 0.0f; + } + tab_bar->ScrollingRectMinX = tab_bar->BarRect.Min.x + sections[0].Width + sections[0].Spacing; + tab_bar->ScrollingRectMaxX = tab_bar->BarRect.Max.x - sections[2].Width - sections[1].Spacing; + + // Clear name buffers + if ((tab_bar->Flags & ImGuiTabBarFlags_DockNode) == 0) + tab_bar->TabsNames.Buf.resize(0); + + // Actual layout in host window (we don't do it in BeginTabBar() so as not to waste an extra frame) + ImGuiWindow* window = g.CurrentWindow; + window->DC.CursorPos = tab_bar->BarRect.Min; + ItemSize(ImVec2(tab_bar->WidthAllTabs, tab_bar->BarRect.GetHeight()), tab_bar->FramePadding.y); + window->DC.IdealMaxPos.x = ImMax(window->DC.IdealMaxPos.x, tab_bar->BarRect.Min.x + tab_bar->WidthAllTabsIdeal); +} + +// Dockables uses Name/ID in the global namespace. Non-dockable items use the ID stack. +static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label) +{ + if (tab_bar->Flags & ImGuiTabBarFlags_DockNode) + { + ImGuiID id = ImHashStr(label); + KeepAliveID(id); + return id; + } + else + { + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(label); + } +} + +static float ImGui::TabBarCalcMaxTabWidth() +{ + ImGuiContext& g = *GImGui; + return g.FontSize * 20.0f; +} + +ImGuiTabItem* ImGui::TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (tab_id != 0) + for (int n = 0; n < tab_bar->Tabs.Size; n++) + if (tab_bar->Tabs[n].ID == tab_id) + return &tab_bar->Tabs[n]; + return NULL; +} + +// The *TabId fields be already set by the docking system _before_ the actual TabItem was created, so we clear them regardless. +void ImGui::TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab_bar->Tabs.erase(tab); + if (tab_bar->VisibleTabId == tab_id) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab_id) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab_id) { tab_bar->NextSelectedTabId = 0; } +} + +// Called on manual closure attempt +void ImGui::TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) +{ + if (tab->Flags & ImGuiTabItemFlags_Button) + return; // A button appended with TabItemButton(). + + if (!(tab->Flags & ImGuiTabItemFlags_UnsavedDocument)) + { + // This will remove a frame of lag for selecting another tab on closure. + // However we don't run it in the case where the 'Unsaved' flag is set, so user gets a chance to fully undo the closure + tab->WantClose = true; + if (tab_bar->VisibleTabId == tab->ID) + { + tab->LastFrameVisible = -1; + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = 0; + } + } + else + { + // Actually select before expecting closure attempt (on an UnsavedDocument tab user is expect to e.g. show a popup) + if (tab_bar->VisibleTabId != tab->ID) + tab_bar->NextSelectedTabId = tab->ID; + } +} + +static float ImGui::TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling) +{ + scrolling = ImMin(scrolling, tab_bar->WidthAllTabs - tab_bar->BarRect.GetWidth()); + return ImMax(scrolling, 0.0f); +} + +// Note: we may scroll to tab that are not selected! e.g. using keyboard arrow keys +static void ImGui::TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections) +{ + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id); + if (tab == NULL) + return; + if (tab->Flags & ImGuiTabItemFlags_SectionMask_) + return; + + ImGuiContext& g = *GImGui; + float margin = g.FontSize * 1.0f; // When to scroll to make Tab N+1 visible always make a bit of N visible to suggest more scrolling area (since we don't have a scrollbar) + int order = tab_bar->GetTabOrder(tab); + + // Scrolling happens only in the central section (leading/trailing sections are not scrolling) + // FIXME: This is all confusing. + float scrollable_width = tab_bar->BarRect.GetWidth() - sections[0].Width - sections[2].Width - sections[1].Spacing; + + // We make all tabs positions all relative Sections[0].Width to make code simpler + float tab_x1 = tab->Offset - sections[0].Width + (order > sections[0].TabCount - 1 ? -margin : 0.0f); + float tab_x2 = tab->Offset - sections[0].Width + tab->Width + (order + 1 < tab_bar->Tabs.Size - sections[2].TabCount ? margin : 1.0f); + tab_bar->ScrollingTargetDistToVisibility = 0.0f; + if (tab_bar->ScrollingTarget > tab_x1 || (tab_x2 - tab_x1 >= scrollable_width)) + { + // Scroll to the left + tab_bar->ScrollingTargetDistToVisibility = ImMax(tab_bar->ScrollingAnim - tab_x2, 0.0f); + tab_bar->ScrollingTarget = tab_x1; + } + else if (tab_bar->ScrollingTarget < tab_x2 - scrollable_width) + { + // Scroll to the right + tab_bar->ScrollingTargetDistToVisibility = ImMax((tab_x1 - scrollable_width) - tab_bar->ScrollingAnim, 0.0f); + tab_bar->ScrollingTarget = tab_x2 - scrollable_width; + } +} + +void ImGui::TabBarQueueReorder(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int offset) +{ + IM_ASSERT(offset != 0); + IM_ASSERT(tab_bar->ReorderRequestTabId == 0); + tab_bar->ReorderRequestTabId = tab->ID; + tab_bar->ReorderRequestOffset = (ImS16)offset; +} + +void ImGui::TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, const ImGuiTabItem* src_tab, ImVec2 mouse_pos) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(tab_bar->ReorderRequestTabId == 0); + if ((tab_bar->Flags & ImGuiTabBarFlags_Reorderable) == 0) + return; + + const bool is_central_section = (src_tab->Flags & ImGuiTabItemFlags_SectionMask_) == 0; + const float bar_offset = tab_bar->BarRect.Min.x - (is_central_section ? tab_bar->ScrollingTarget : 0); + + // Count number of contiguous tabs we are crossing over + const int dir = (bar_offset + src_tab->Offset) > mouse_pos.x ? -1 : +1; + const int src_idx = tab_bar->Tabs.index_from_ptr(src_tab); + int dst_idx = src_idx; + for (int i = src_idx; i >= 0 && i < tab_bar->Tabs.Size; i += dir) + { + // Reordered tabs must share the same section + const ImGuiTabItem* dst_tab = &tab_bar->Tabs[i]; + if (dst_tab->Flags & ImGuiTabItemFlags_NoReorder) + break; + if ((dst_tab->Flags & ImGuiTabItemFlags_SectionMask_) != (src_tab->Flags & ImGuiTabItemFlags_SectionMask_)) + break; + dst_idx = i; + + // Include spacing after tab, so when mouse cursor is between tabs we would not continue checking further tabs that are not hovered. + const float x1 = bar_offset + dst_tab->Offset - g.Style.ItemInnerSpacing.x; + const float x2 = bar_offset + dst_tab->Offset + dst_tab->Width + g.Style.ItemInnerSpacing.x; + //GetForegroundDrawList()->AddRect(ImVec2(x1, tab_bar->BarRect.Min.y), ImVec2(x2, tab_bar->BarRect.Max.y), IM_COL32(255, 0, 0, 255)); + if ((dir < 0 && mouse_pos.x > x1) || (dir > 0 && mouse_pos.x < x2)) + break; + } + + if (dst_idx != src_idx) + TabBarQueueReorder(tab_bar, src_tab, dst_idx - src_idx); +} + +bool ImGui::TabBarProcessReorder(ImGuiTabBar* tab_bar) +{ + ImGuiTabItem* tab1 = TabBarFindTabByID(tab_bar, tab_bar->ReorderRequestTabId); + if (tab1 == NULL || (tab1->Flags & ImGuiTabItemFlags_NoReorder)) + return false; + + //IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_Reorderable); // <- this may happen when using debug tools + int tab2_order = tab_bar->GetTabOrder(tab1) + tab_bar->ReorderRequestOffset; + if (tab2_order < 0 || tab2_order >= tab_bar->Tabs.Size) + return false; + + // Reordered tabs must share the same section + // (Note: TabBarQueueReorderFromMousePos() also has a similar test but since we allow direct calls to TabBarQueueReorder() we do it here too) + ImGuiTabItem* tab2 = &tab_bar->Tabs[tab2_order]; + if (tab2->Flags & ImGuiTabItemFlags_NoReorder) + return false; + if ((tab1->Flags & ImGuiTabItemFlags_SectionMask_) != (tab2->Flags & ImGuiTabItemFlags_SectionMask_)) + return false; + + ImGuiTabItem item_tmp = *tab1; + ImGuiTabItem* src_tab = (tab_bar->ReorderRequestOffset > 0) ? tab1 + 1 : tab2; + ImGuiTabItem* dst_tab = (tab_bar->ReorderRequestOffset > 0) ? tab1 : tab2 + 1; + const int move_count = (tab_bar->ReorderRequestOffset > 0) ? tab_bar->ReorderRequestOffset : -tab_bar->ReorderRequestOffset; + memmove(dst_tab, src_tab, move_count * sizeof(ImGuiTabItem)); + *tab2 = item_tmp; + + if (tab_bar->Flags & ImGuiTabBarFlags_SaveSettings) + MarkIniSettingsDirty(); + return true; +} + +static ImGuiTabItem* ImGui::TabBarScrollingButtons(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const ImVec2 arrow_button_size(g.FontSize - 2.0f, g.FontSize + g.Style.FramePadding.y * 2.0f); + const float scrolling_buttons_width = arrow_button_size.x * 2.0f; + + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + //window->DrawList->AddRect(ImVec2(tab_bar->BarRect.Max.x - scrolling_buttons_width, tab_bar->BarRect.Min.y), ImVec2(tab_bar->BarRect.Max.x, tab_bar->BarRect.Max.y), IM_COL32(255,0,0,255)); + + int select_dir = 0; + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + const float backup_repeat_delay = g.IO.KeyRepeatDelay; + const float backup_repeat_rate = g.IO.KeyRepeatRate; + g.IO.KeyRepeatDelay = 0.250f; + g.IO.KeyRepeatRate = 0.200f; + float x = ImMax(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.x - scrolling_buttons_width); + window->DC.CursorPos = ImVec2(x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##<", ImGuiDir_Left, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = -1; + window->DC.CursorPos = ImVec2(x + arrow_button_size.x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##>", ImGuiDir_Right, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = +1; + PopStyleColor(2); + g.IO.KeyRepeatRate = backup_repeat_rate; + g.IO.KeyRepeatDelay = backup_repeat_delay; + + ImGuiTabItem* tab_to_scroll_to = NULL; + if (select_dir != 0) + if (ImGuiTabItem* tab_item = TabBarFindTabByID(tab_bar, tab_bar->SelectedTabId)) + { + int selected_order = tab_bar->GetTabOrder(tab_item); + int target_order = selected_order + select_dir; + + // Skip tab item buttons until another tab item is found or end is reached + while (tab_to_scroll_to == NULL) + { + // If we are at the end of the list, still scroll to make our tab visible + tab_to_scroll_to = &tab_bar->Tabs[(target_order >= 0 && target_order < tab_bar->Tabs.Size) ? target_order : selected_order]; + + // Cross through buttons + // (even if first/last item is a button, return it so we can update the scroll) + if (tab_to_scroll_to->Flags & ImGuiTabItemFlags_Button) + { + target_order += select_dir; + selected_order += select_dir; + tab_to_scroll_to = (target_order < 0 || target_order >= tab_bar->Tabs.Size) ? tab_to_scroll_to : NULL; + } + } + } + window->DC.CursorPos = backup_cursor_pos; + tab_bar->BarRect.Max.x -= scrolling_buttons_width + 1.0f; + + return tab_to_scroll_to; +} + +static ImGuiTabItem* ImGui::TabBarTabListPopupButton(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We use g.Style.FramePadding.y to match the square ArrowButton size + const float tab_list_popup_button_width = g.FontSize + g.Style.FramePadding.y; + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x - g.Style.FramePadding.y, tab_bar->BarRect.Min.y); + tab_bar->BarRect.Min.x += tab_list_popup_button_width; + + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + bool open = BeginCombo("##v", NULL, ImGuiComboFlags_NoPreview | ImGuiComboFlags_HeightLargest); + PopStyleColor(2); + + ImGuiTabItem* tab_to_select = NULL; + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (tab->Flags & ImGuiTabItemFlags_Button) + continue; + + const char* tab_name = tab_bar->GetTabName(tab); + if (Selectable(tab_name, tab_bar->SelectedTabId == tab->ID)) + tab_to_select = tab; + } + EndCombo(); + } + + window->DC.CursorPos = backup_cursor_pos; + return tab_to_select; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +//------------------------------------------------------------------------- +// - BeginTabItem() +// - EndTabItem() +// - TabItemButton() +// - TabItemEx() [Internal] +// - SetTabItemClosed() +// - TabItemCalcSize() [Internal] +// - TabItemBackground() [Internal] +// - TabItemLabelAndCloseButton() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::BeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + IM_ASSERT(!(flags & ImGuiTabItemFlags_Button)); // BeginTabItem() Can't be used with button flags, use TabItemButton() instead! + + bool ret = TabItemEx(tab_bar, label, p_open, flags); + if (ret && !(flags & ImGuiTabItemFlags_NoPushId)) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + PushOverrideID(tab->ID); // We already hashed 'label' so push into the ID stack directly instead of doing another hash through PushID(label) + } + return ret; +} + +void ImGui::EndTabItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return; + } + IM_ASSERT(tab_bar->LastTabItemIdx >= 0); + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + if (!(tab->Flags & ImGuiTabItemFlags_NoPushId)) + PopID(); +} + +bool ImGui::TabItemButton(const char* label, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + return TabItemEx(tab_bar, label, NULL, flags | ImGuiTabItemFlags_Button | ImGuiTabItemFlags_NoReorder); +} + +bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags) +{ + // Layout whole tab bar if not already done + ImGuiContext& g = *GImGui; + if (tab_bar->WantLayout) + { + ImGuiNextItemData backup_next_item_data = g.NextItemData; + TabBarLayout(tab_bar); + g.NextItemData = backup_next_item_data; + } + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = TabBarCalcTabID(tab_bar, label); + + // If the user called us with *p_open == false, we early out and don't render. + // We make a call to ItemAdd() so that attempts to use a contextual popup menu with an implicit ID won't use an older ID. + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + if (p_open && !*p_open) + { + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); + return false; + } + + IM_ASSERT(!p_open || !(flags & ImGuiTabItemFlags_Button)); + IM_ASSERT((flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) != (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)); // Can't use both Leading and Trailing + + // Store into ImGuiTabItemFlags_NoCloseButton, also honor ImGuiTabItemFlags_NoCloseButton passed by user (although not documented) + if (flags & ImGuiTabItemFlags_NoCloseButton) + p_open = NULL; + else if (p_open == NULL) + flags |= ImGuiTabItemFlags_NoCloseButton; + + // Acquire tab data + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, id); + bool tab_is_new = false; + if (tab == NULL) + { + tab_bar->Tabs.push_back(ImGuiTabItem()); + tab = &tab_bar->Tabs.back(); + tab->ID = id; + tab_bar->TabsAddedNew = tab_is_new = true; + } + tab_bar->LastTabItemIdx = (ImS16)tab_bar->Tabs.index_from_ptr(tab); + + // Calculate tab contents size + ImVec2 size = TabItemCalcSize(label, (p_open != NULL) || (flags & ImGuiTabItemFlags_UnsavedDocument)); + tab->RequestedWidth = -1.0f; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + size.x = tab->RequestedWidth = g.NextItemData.Width; + if (tab_is_new) + tab->Width = ImMax(1.0f, size.x); + tab->ContentWidth = size.x; + tab->BeginOrder = tab_bar->TabsActiveCount++; + + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + const bool tab_bar_focused = (tab_bar->Flags & ImGuiTabBarFlags_IsFocused) != 0; + const bool tab_appearing = (tab->LastFrameVisible + 1 < g.FrameCount); + const bool tab_just_unsaved = (flags & ImGuiTabItemFlags_UnsavedDocument) && !(tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + const bool is_tab_button = (flags & ImGuiTabItemFlags_Button) != 0; + tab->LastFrameVisible = g.FrameCount; + tab->Flags = flags; + + // Append name with zero-terminator + tab->NameOffset = (ImS32)tab_bar->TabsNames.size(); + tab_bar->TabsNames.append(label, label + strlen(label) + 1); + + // Update selected tab + if (!is_tab_button) + { + if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) + if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) + tab_bar->NextSelectedTabId = id; // New tabs gets activated + if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // _SetSelected can only be passed on explicit tab bar + tab_bar->NextSelectedTabId = id; + } + + // Lock visibility + // (Note: tab_contents_visible != tab_selected... because CTRL+TAB operations may preview some tabs without selecting them!) + bool tab_contents_visible = (tab_bar->VisibleTabId == id); + if (tab_contents_visible) + tab_bar->VisibleTabWasSubmitted = true; + + // On the very first frame of a tab bar we let first tab contents be visible to minimize appearing glitches + if (!tab_contents_visible && tab_bar->SelectedTabId == 0 && tab_bar_appearing) + if (tab_bar->Tabs.Size == 1 && !(tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs)) + tab_contents_visible = true; + + // Note that tab_is_new is not necessarily the same as tab_appearing! When a tab bar stops being submitted + // and then gets submitted again, the tabs will have 'tab_appearing=true' but 'tab_is_new=false'. + if (tab_appearing && (!tab_bar_appearing || tab_is_new)) + { + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); + if (is_tab_button) + return false; + return tab_contents_visible; + } + + if (tab_bar->SelectedTabId == id) + tab->LastFrameSelected = g.FrameCount; + + // Backup current layout position + const ImVec2 backup_main_cursor_pos = window->DC.CursorPos; + + // Layout + const bool is_central_section = (tab->Flags & ImGuiTabItemFlags_SectionMask_) == 0; + size.x = tab->Width; + if (is_central_section) + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(IM_FLOOR(tab->Offset - tab_bar->ScrollingAnim), 0.0f); + else + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(tab->Offset, 0.0f); + ImVec2 pos = window->DC.CursorPos; + ImRect bb(pos, pos + size); + + // We don't have CPU clipping primitives to clip the CloseButton (until it becomes a texture), so need to add an extra draw call (temporary in the case of vertical animation) + const bool want_clip_rect = is_central_section && (bb.Min.x < tab_bar->ScrollingRectMinX || bb.Max.x > tab_bar->ScrollingRectMaxX); + if (want_clip_rect) + PushClipRect(ImVec2(ImMax(bb.Min.x, tab_bar->ScrollingRectMinX), bb.Min.y - 1), ImVec2(tab_bar->ScrollingRectMaxX, bb.Max.y), true); + + ImVec2 backup_cursor_max_pos = window->DC.CursorMaxPos; + ItemSize(bb.GetSize(), style.FramePadding.y); + window->DC.CursorMaxPos = backup_cursor_max_pos; + + if (!ItemAdd(bb, id)) + { + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + return tab_contents_visible; + } + + // Click to Select a tab + ImGuiButtonFlags button_flags = ((is_tab_button ? ImGuiButtonFlags_PressedOnClickRelease : ImGuiButtonFlags_PressedOnClick) | ImGuiButtonFlags_AllowItemOverlap); + if (g.DragDropActive) + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + if (pressed && !is_tab_button) + tab_bar->NextSelectedTabId = id; + + // Allow the close button to overlap unless we are dragging (in which case we don't want any overlapping tabs to be hovered) + if (g.ActiveId != id) + SetItemAllowOverlap(); + + // Drag and drop: re-order tabs + if (held && !tab_appearing && IsMouseDragging(0)) + { + if (!g.DragDropActive && (tab_bar->Flags & ImGuiTabBarFlags_Reorderable)) + { + // While moving a tab it will jump on the other side of the mouse, so we also test for MouseDelta.x + if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < bb.Min.x) + { + TabBarQueueReorderFromMousePos(tab_bar, tab, g.IO.MousePos); + } + else if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > bb.Max.x) + { + TabBarQueueReorderFromMousePos(tab_bar, tab, g.IO.MousePos); + } + } + } + +#if 0 + if (hovered && g.HoveredIdNotActiveTimer > TOOLTIP_DELAY && bb.GetWidth() < tab->ContentWidth) + { + // Enlarge tab display when hovering + bb.Max.x = bb.Min.x + IM_FLOOR(ImLerp(bb.GetWidth(), tab->ContentWidth, ImSaturate((g.HoveredIdNotActiveTimer - 0.40f) * 6.0f))); + display_draw_list = GetForegroundDrawList(window); + TabItemBackground(display_draw_list, bb, flags, GetColorU32(ImGuiCol_TitleBgActive)); + } +#endif + + // Render tab shape + ImDrawList* display_draw_list = window->DrawList; + const ImU32 tab_col = GetColorU32((held || hovered) ? ImGuiCol_TabHovered : tab_contents_visible ? (tab_bar_focused ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive) : (tab_bar_focused ? ImGuiCol_Tab : ImGuiCol_TabUnfocused)); + TabItemBackground(display_draw_list, bb, flags, tab_col); + RenderNavHighlight(bb, id); + + // Select with right mouse button. This is so the common idiom for context menu automatically highlight the current widget. + const bool hovered_unblocked = IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup); + if (hovered_unblocked && (IsMouseClicked(1) || IsMouseReleased(1))) + if (!is_tab_button) + tab_bar->NextSelectedTabId = id; + + if (tab_bar->Flags & ImGuiTabBarFlags_NoCloseWithMiddleMouseButton) + flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; + + // Render tab label, process close button + const ImGuiID close_button_id = p_open ? GetIDWithSeed("#CLOSE", NULL, id) : 0; + bool just_closed; + bool text_clipped; + TabItemLabelAndCloseButton(display_draw_list, bb, tab_just_unsaved ? (flags & ~ImGuiTabItemFlags_UnsavedDocument) : flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible, &just_closed, &text_clipped); + if (just_closed && p_open != NULL) + { + *p_open = false; + TabBarCloseTab(tab_bar, tab); + } + + // Restore main window position so user can draw there + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + + // Tooltip + // (Won't work over the close button because ItemOverlap systems messes up with HoveredIdTimer-> seems ok) + // (We test IsItemHovered() to discard e.g. when another item is active or drag and drop over the tab bar, which g.HoveredId ignores) + // FIXME: This is a mess. + // FIXME: We may want disabled tab to still display the tooltip? + if (text_clipped && g.HoveredId == id && !held) + if (!(tab_bar->Flags & ImGuiTabBarFlags_NoTooltip) && !(tab->Flags & ImGuiTabItemFlags_NoTooltip)) + if (IsItemHovered(ImGuiHoveredFlags_DelayNormal)) + SetTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); + + IM_ASSERT(!is_tab_button || !(tab_bar->SelectedTabId == tab->ID && is_tab_button)); // TabItemButton should not be selected + if (is_tab_button) + return pressed; + return tab_contents_visible; +} + +// [Public] This is call is 100% optional but it allows to remove some one-frame glitches when a tab has been unexpectedly removed. +// To use it to need to call the function SetTabItemClosed() between BeginTabBar() and EndTabBar(). +// Tabs closed by the close button will automatically be flagged to avoid this issue. +void ImGui::SetTabItemClosed(const char* label) +{ + ImGuiContext& g = *GImGui; + bool is_within_manual_tab_bar = g.CurrentTabBar && !(g.CurrentTabBar->Flags & ImGuiTabBarFlags_DockNode); + if (is_within_manual_tab_bar) + { + ImGuiTabBar* tab_bar = g.CurrentTabBar; + ImGuiID tab_id = TabBarCalcTabID(tab_bar, label); + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab->WantClose = true; // Will be processed by next call to TabBarLayout() + } +} + +ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f); + if (has_close_button_or_unsaved_marker) + size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle. + else + size.x += g.Style.FramePadding.x + 1.0f; + return ImVec2(ImMin(size.x, TabBarCalcMaxTabWidth()), size.y); +} + +void ImGui::TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col) +{ + // While rendering tabs, we trim 1 pixel off the top of our bounding box so they can fit within a regular frame height while looking "detached" from it. + ImGuiContext& g = *GImGui; + const float width = bb.GetWidth(); + IM_UNUSED(flags); + IM_ASSERT(width > 0.0f); + const float rounding = ImMax(0.0f, ImMin((flags & ImGuiTabItemFlags_Button) ? g.Style.FrameRounding : g.Style.TabRounding, width * 0.5f - 1.0f)); + const float y1 = bb.Min.y + 1.0f; + const float y2 = bb.Max.y - 1.0f; + draw_list->PathLineTo(ImVec2(bb.Min.x, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding, y1 + rounding), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding, y1 + rounding), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x, y2)); + draw_list->PathFillConvex(col); + if (g.Style.TabBorderSize > 0.0f) + { + draw_list->PathLineTo(ImVec2(bb.Min.x + 0.5f, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding + 0.5f, y1 + rounding + 0.5f), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding - 0.5f, y1 + rounding + 0.5f), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x - 0.5f, y2)); + draw_list->PathStroke(GetColorU32(ImGuiCol_Border), 0, g.Style.TabBorderSize); + } +} + +// Render text label (with custom clipping) + Unsaved Document marker + Close Button logic +// We tend to lock style.FramePadding for a given tab-bar, hence the 'frame_padding' parameter. +void ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + + if (out_just_closed) + *out_just_closed = false; + if (out_text_clipped) + *out_text_clipped = false; + + if (bb.GetWidth() <= 1.0f) + return; + + // In Style V2 we'll have full override of all colors per state (e.g. focused, selected) + // But right now if you want to alter text color of tabs this is what you need to do. +#if 0 + const float backup_alpha = g.Style.Alpha; + if (!is_contents_visible) + g.Style.Alpha *= 0.7f; +#endif + + // Render text label (with clipping + alpha gradient) + unsaved marker + ImRect text_pixel_clip_bb(bb.Min.x + frame_padding.x, bb.Min.y + frame_padding.y, bb.Max.x - frame_padding.x, bb.Max.y); + ImRect text_ellipsis_clip_bb = text_pixel_clip_bb; + + // Return clipped state ignoring the close button + if (out_text_clipped) + { + *out_text_clipped = (text_ellipsis_clip_bb.Min.x + label_size.x) > text_pixel_clip_bb.Max.x; + //draw_list->AddCircle(text_ellipsis_clip_bb.Min, 3.0f, *out_text_clipped ? IM_COL32(255, 0, 0, 255) : IM_COL32(0, 255, 0, 255)); + } + + const float button_sz = g.FontSize; + const ImVec2 button_pos(ImMax(bb.Min.x, bb.Max.x - frame_padding.x * 2.0f - button_sz), bb.Min.y); + + // Close Button & Unsaved Marker + // We are relying on a subtle and confusing distinction between 'hovered' and 'g.HoveredId' which happens because we are using ImGuiButtonFlags_AllowOverlapMode + SetItemAllowOverlap() + // 'hovered' will be true when hovering the Tab but NOT when hovering the close button + // 'g.HoveredId==id' will be true when hovering the Tab including when hovering the close button + // 'g.ActiveId==close_button_id' will be true when we are holding on the close button, in which case both hovered booleans are false + bool close_button_pressed = false; + bool close_button_visible = false; + if (close_button_id != 0) + if (is_contents_visible || bb.GetWidth() >= ImMax(button_sz, g.Style.TabMinWidthForCloseButton)) + if (g.HoveredId == tab_id || g.HoveredId == close_button_id || g.ActiveId == tab_id || g.ActiveId == close_button_id) + close_button_visible = true; + bool unsaved_marker_visible = (flags & ImGuiTabItemFlags_UnsavedDocument) != 0 && (button_pos.x + button_sz <= bb.Max.x); + + if (close_button_visible) + { + ImGuiLastItemData last_item_backup = g.LastItemData; + PushStyleVar(ImGuiStyleVar_FramePadding, frame_padding); + if (CloseButton(close_button_id, button_pos)) + close_button_pressed = true; + PopStyleVar(); + g.LastItemData = last_item_backup; + + // Close with middle mouse button + if (!(flags & ImGuiTabItemFlags_NoCloseWithMiddleMouseButton) && IsMouseClicked(2)) + close_button_pressed = true; + } + else if (unsaved_marker_visible) + { + const ImRect bullet_bb(button_pos, button_pos + ImVec2(button_sz, button_sz) + g.Style.FramePadding * 2.0f); + RenderBullet(draw_list, bullet_bb.GetCenter(), GetColorU32(ImGuiCol_Text)); + } + + // This is all rather complicated + // (the main idea is that because the close button only appears on hover, we don't want it to alter the ellipsis position) + // FIXME: if FramePadding is noticeably large, ellipsis_max_x will be wrong here (e.g. #3497), maybe for consistency that parameter of RenderTextEllipsis() shouldn't exist.. + float ellipsis_max_x = close_button_visible ? text_pixel_clip_bb.Max.x : bb.Max.x - 1.0f; + if (close_button_visible || unsaved_marker_visible) + { + text_pixel_clip_bb.Max.x -= close_button_visible ? (button_sz) : (button_sz * 0.80f); + text_ellipsis_clip_bb.Max.x -= unsaved_marker_visible ? (button_sz * 0.80f) : 0.0f; + ellipsis_max_x = text_pixel_clip_bb.Max.x; + } + RenderTextEllipsis(draw_list, text_ellipsis_clip_bb.Min, text_ellipsis_clip_bb.Max, text_pixel_clip_bb.Max.x, ellipsis_max_x, label, NULL, &label_size); + +#if 0 + if (!is_contents_visible) + g.Style.Alpha = backup_alpha; +#endif + + if (out_just_closed) + *out_just_closed = close_button_pressed; +} + + +#endif // #ifndef IMGUI_DISABLE diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imstb_rectpack.h b/imgui-sys/third-party/imgui-master-freetype/imgui/imstb_rectpack.h new file mode 100644 index 000000000..f6917e7a6 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imstb_rectpack.h @@ -0,0 +1,627 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_rect_pack.h 1.01. +// Grep for [DEAR IMGUI] to find the changes. +// +// stb_rect_pack.h - v1.01 - public domain - rectangle packing +// Sean Barrett 2014 +// +// Useful for e.g. packing rectangular textures into an atlas. +// Does not do rotation. +// +// Before #including, +// +// #define STB_RECT_PACK_IMPLEMENTATION +// +// in the file that you want to have the implementation. +// +// Not necessarily the awesomest packing method, but better than +// the totally naive one in stb_truetype (which is primarily what +// this is meant to replace). +// +// Has only had a few tests run, may have issues. +// +// More docs to come. +// +// No memory allocations; uses qsort() and assert() from stdlib. +// Can override those by defining STBRP_SORT and STBRP_ASSERT. +// +// This library currently uses the Skyline Bottom-Left algorithm. +// +// Please note: better rectangle packers are welcome! Please +// implement them to the same API, but with a different init +// function. +// +// Credits +// +// Library +// Sean Barrett +// Minor features +// Martins Mozeiko +// github:IntellectualKitty +// +// Bugfixes / warning fixes +// Jeremy Jaussaud +// Fabian Giesen +// +// Version history: +// +// 1.01 (2021-07-11) always use large rect mode, expose STBRP__MAXVAL in public section +// 1.00 (2019-02-25) avoid small space waste; gracefully fail too-wide rectangles +// 0.99 (2019-02-07) warning fixes +// 0.11 (2017-03-03) return packing success/fail result +// 0.10 (2016-10-25) remove cast-away-const to avoid warnings +// 0.09 (2016-08-27) fix compiler warnings +// 0.08 (2015-09-13) really fix bug with empty rects (w=0 or h=0) +// 0.07 (2015-09-13) fix bug with empty rects (w=0 or h=0) +// 0.06 (2015-04-15) added STBRP_SORT to allow replacing qsort +// 0.05: added STBRP_ASSERT to allow replacing assert +// 0.04: fixed minor bug in STBRP_LARGE_RECTS support +// 0.01: initial release +// +// LICENSE +// +// See end of file for license information. + +////////////////////////////////////////////////////////////////////////////// +// +// INCLUDE SECTION +// + +#ifndef STB_INCLUDE_STB_RECT_PACK_H +#define STB_INCLUDE_STB_RECT_PACK_H + +#define STB_RECT_PACK_VERSION 1 + +#ifdef STBRP_STATIC +#define STBRP_DEF static +#else +#define STBRP_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct stbrp_context stbrp_context; +typedef struct stbrp_node stbrp_node; +typedef struct stbrp_rect stbrp_rect; + +typedef int stbrp_coord; + +#define STBRP__MAXVAL 0x7fffffff +// Mostly for internal use, but this is the maximum supported coordinate value. + +STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); +// Assign packed locations to rectangles. The rectangles are of type +// 'stbrp_rect' defined below, stored in the array 'rects', and there +// are 'num_rects' many of them. +// +// Rectangles which are successfully packed have the 'was_packed' flag +// set to a non-zero value and 'x' and 'y' store the minimum location +// on each axis (i.e. bottom-left in cartesian coordinates, top-left +// if you imagine y increasing downwards). Rectangles which do not fit +// have the 'was_packed' flag set to 0. +// +// You should not try to access the 'rects' array from another thread +// while this function is running, as the function temporarily reorders +// the array while it executes. +// +// To pack into another rectangle, you need to call stbrp_init_target +// again. To continue packing into the same rectangle, you can call +// this function again. Calling this multiple times with multiple rect +// arrays will probably produce worse packing results than calling it +// a single time with the full rectangle array, but the option is +// available. +// +// The function returns 1 if all of the rectangles were successfully +// packed and 0 otherwise. + +struct stbrp_rect +{ + // reserved for your use: + int id; + + // input: + stbrp_coord w, h; + + // output: + stbrp_coord x, y; + int was_packed; // non-zero if valid packing + +}; // 16 bytes, nominally + + +STBRP_DEF void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes); +// Initialize a rectangle packer to: +// pack a rectangle that is 'width' by 'height' in dimensions +// using temporary storage provided by the array 'nodes', which is 'num_nodes' long +// +// You must call this function every time you start packing into a new target. +// +// There is no "shutdown" function. The 'nodes' memory must stay valid for +// the following stbrp_pack_rects() call (or calls), but can be freed after +// the call (or calls) finish. +// +// Note: to guarantee best results, either: +// 1. make sure 'num_nodes' >= 'width' +// or 2. call stbrp_allow_out_of_mem() defined below with 'allow_out_of_mem = 1' +// +// If you don't do either of the above things, widths will be quantized to multiples +// of small integers to guarantee the algorithm doesn't run out of temporary storage. +// +// If you do #2, then the non-quantized algorithm will be used, but the algorithm +// may run out of temporary storage and be unable to pack some rectangles. + +STBRP_DEF void stbrp_setup_allow_out_of_mem (stbrp_context *context, int allow_out_of_mem); +// Optionally call this function after init but before doing any packing to +// change the handling of the out-of-temp-memory scenario, described above. +// If you call init again, this will be reset to the default (false). + + +STBRP_DEF void stbrp_setup_heuristic (stbrp_context *context, int heuristic); +// Optionally select which packing heuristic the library should use. Different +// heuristics will produce better/worse results for different data sets. +// If you call init again, this will be reset to the default. + +enum +{ + STBRP_HEURISTIC_Skyline_default=0, + STBRP_HEURISTIC_Skyline_BL_sortHeight = STBRP_HEURISTIC_Skyline_default, + STBRP_HEURISTIC_Skyline_BF_sortHeight +}; + + +////////////////////////////////////////////////////////////////////////////// +// +// the details of the following structures don't matter to you, but they must +// be visible so you can handle the memory allocations for them + +struct stbrp_node +{ + stbrp_coord x,y; + stbrp_node *next; +}; + +struct stbrp_context +{ + int width; + int height; + int align; + int init_mode; + int heuristic; + int num_nodes; + stbrp_node *active_head; + stbrp_node *free_head; + stbrp_node extra[2]; // we allocate two extra nodes so optimal user-node-count is 'width' not 'width+2' +}; + +#ifdef __cplusplus +} +#endif + +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// IMPLEMENTATION SECTION +// + +#ifdef STB_RECT_PACK_IMPLEMENTATION +#ifndef STBRP_SORT +#include +#define STBRP_SORT qsort +#endif + +#ifndef STBRP_ASSERT +#include +#define STBRP_ASSERT assert +#endif + +#ifdef _MSC_VER +#define STBRP__NOTUSED(v) (void)(v) +#define STBRP__CDECL __cdecl +#else +#define STBRP__NOTUSED(v) (void)sizeof(v) +#define STBRP__CDECL +#endif + +enum +{ + STBRP__INIT_skyline = 1 +}; + +STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic) +{ + switch (context->init_mode) { + case STBRP__INIT_skyline: + STBRP_ASSERT(heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight || heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight); + context->heuristic = heuristic; + break; + default: + STBRP_ASSERT(0); + } +} + +STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem) +{ + if (allow_out_of_mem) + // if it's ok to run out of memory, then don't bother aligning them; + // this gives better packing, but may fail due to OOM (even though + // the rectangles easily fit). @TODO a smarter approach would be to only + // quantize once we've hit OOM, then we could get rid of this parameter. + context->align = 1; + else { + // if it's not ok to run out of memory, then quantize the widths + // so that num_nodes is always enough nodes. + // + // I.e. num_nodes * align >= width + // align >= width / num_nodes + // align = ceil(width/num_nodes) + + context->align = (context->width + context->num_nodes-1) / context->num_nodes; + } +} + +STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) +{ + int i; + + for (i=0; i < num_nodes-1; ++i) + nodes[i].next = &nodes[i+1]; + nodes[i].next = NULL; + context->init_mode = STBRP__INIT_skyline; + context->heuristic = STBRP_HEURISTIC_Skyline_default; + context->free_head = &nodes[0]; + context->active_head = &context->extra[0]; + context->width = width; + context->height = height; + context->num_nodes = num_nodes; + stbrp_setup_allow_out_of_mem(context, 0); + + // node 0 is the full width, node 1 is the sentinel (lets us not store width explicitly) + context->extra[0].x = 0; + context->extra[0].y = 0; + context->extra[0].next = &context->extra[1]; + context->extra[1].x = (stbrp_coord) width; + context->extra[1].y = (1<<30); + context->extra[1].next = NULL; +} + +// find minimum y position if it starts at x1 +static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste) +{ + stbrp_node *node = first; + int x1 = x0 + width; + int min_y, visited_width, waste_area; + + STBRP__NOTUSED(c); + + STBRP_ASSERT(first->x <= x0); + + #if 0 + // skip in case we're past the node + while (node->next->x <= x0) + ++node; + #else + STBRP_ASSERT(node->next->x > x0); // we ended up handling this in the caller for efficiency + #endif + + STBRP_ASSERT(node->x <= x0); + + min_y = 0; + waste_area = 0; + visited_width = 0; + while (node->x < x1) { + if (node->y > min_y) { + // raise min_y higher. + // we've accounted for all waste up to min_y, + // but we'll now add more waste for everything we've visted + waste_area += visited_width * (node->y - min_y); + min_y = node->y; + // the first time through, visited_width might be reduced + if (node->x < x0) + visited_width += node->next->x - x0; + else + visited_width += node->next->x - node->x; + } else { + // add waste area + int under_width = node->next->x - node->x; + if (under_width + visited_width > width) + under_width = width - visited_width; + waste_area += under_width * (min_y - node->y); + visited_width += under_width; + } + node = node->next; + } + + *pwaste = waste_area; + return min_y; +} + +typedef struct +{ + int x,y; + stbrp_node **prev_link; +} stbrp__findresult; + +static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height) +{ + int best_waste = (1<<30), best_x, best_y = (1 << 30); + stbrp__findresult fr; + stbrp_node **prev, *node, *tail, **best = NULL; + + // align to multiple of c->align + width = (width + c->align - 1); + width -= width % c->align; + STBRP_ASSERT(width % c->align == 0); + + // if it can't possibly fit, bail immediately + if (width > c->width || height > c->height) { + fr.prev_link = NULL; + fr.x = fr.y = 0; + return fr; + } + + node = c->active_head; + prev = &c->active_head; + while (node->x + width <= c->width) { + int y,waste; + y = stbrp__skyline_find_min_y(c, node, node->x, width, &waste); + if (c->heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight) { // actually just want to test BL + // bottom left + if (y < best_y) { + best_y = y; + best = prev; + } + } else { + // best-fit + if (y + height <= c->height) { + // can only use it if it first vertically + if (y < best_y || (y == best_y && waste < best_waste)) { + best_y = y; + best_waste = waste; + best = prev; + } + } + } + prev = &node->next; + node = node->next; + } + + best_x = (best == NULL) ? 0 : (*best)->x; + + // if doing best-fit (BF), we also have to try aligning right edge to each node position + // + // e.g, if fitting + // + // ____________________ + // |____________________| + // + // into + // + // | | + // | ____________| + // |____________| + // + // then right-aligned reduces waste, but bottom-left BL is always chooses left-aligned + // + // This makes BF take about 2x the time + + if (c->heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight) { + tail = c->active_head; + node = c->active_head; + prev = &c->active_head; + // find first node that's admissible + while (tail->x < width) + tail = tail->next; + while (tail) { + int xpos = tail->x - width; + int y,waste; + STBRP_ASSERT(xpos >= 0); + // find the left position that matches this + while (node->next->x <= xpos) { + prev = &node->next; + node = node->next; + } + STBRP_ASSERT(node->next->x > xpos && node->x <= xpos); + y = stbrp__skyline_find_min_y(c, node, xpos, width, &waste); + if (y + height <= c->height) { + if (y <= best_y) { + if (y < best_y || waste < best_waste || (waste==best_waste && xpos < best_x)) { + best_x = xpos; + //STBRP_ASSERT(y <= best_y); [DEAR IMGUI] + best_y = y; + best_waste = waste; + best = prev; + } + } + } + tail = tail->next; + } + } + + fr.prev_link = best; + fr.x = best_x; + fr.y = best_y; + return fr; +} + +static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height) +{ + // find best position according to heuristic + stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height); + stbrp_node *node, *cur; + + // bail if: + // 1. it failed + // 2. the best node doesn't fit (we don't always check this) + // 3. we're out of memory + if (res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) { + res.prev_link = NULL; + return res; + } + + // on success, create new node + node = context->free_head; + node->x = (stbrp_coord) res.x; + node->y = (stbrp_coord) (res.y + height); + + context->free_head = node->next; + + // insert the new node into the right starting point, and + // let 'cur' point to the remaining nodes needing to be + // stiched back in + + cur = *res.prev_link; + if (cur->x < res.x) { + // preserve the existing one, so start testing with the next one + stbrp_node *next = cur->next; + cur->next = node; + cur = next; + } else { + *res.prev_link = node; + } + + // from here, traverse cur and free the nodes, until we get to one + // that shouldn't be freed + while (cur->next && cur->next->x <= res.x + width) { + stbrp_node *next = cur->next; + // move the current node to the free list + cur->next = context->free_head; + context->free_head = cur; + cur = next; + } + + // stitch the list back in + node->next = cur; + + if (cur->x < res.x + width) + cur->x = (stbrp_coord) (res.x + width); + +#ifdef _DEBUG + cur = context->active_head; + while (cur->x < context->width) { + STBRP_ASSERT(cur->x < cur->next->x); + cur = cur->next; + } + STBRP_ASSERT(cur->next == NULL); + + { + int count=0; + cur = context->active_head; + while (cur) { + cur = cur->next; + ++count; + } + cur = context->free_head; + while (cur) { + cur = cur->next; + ++count; + } + STBRP_ASSERT(count == context->num_nodes+2); + } +#endif + + return res; +} + +static int STBRP__CDECL rect_height_compare(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + if (p->h > q->h) + return -1; + if (p->h < q->h) + return 1; + return (p->w > q->w) ? -1 : (p->w < q->w); +} + +static int STBRP__CDECL rect_original_order(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); +} + +STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) +{ + int i, all_rects_packed = 1; + + // we use the 'was_packed' field internally to allow sorting/unsorting + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = i; + } + + // sort according to heuristic + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); + + for (i=0; i < num_rects; ++i) { + if (rects[i].w == 0 || rects[i].h == 0) { + rects[i].x = rects[i].y = 0; // empty rect needs no space + } else { + stbrp__findresult fr = stbrp__skyline_pack_rectangle(context, rects[i].w, rects[i].h); + if (fr.prev_link) { + rects[i].x = (stbrp_coord) fr.x; + rects[i].y = (stbrp_coord) fr.y; + } else { + rects[i].x = rects[i].y = STBRP__MAXVAL; + } + } + } + + // unsort + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_original_order); + + // set was_packed flags and all_rects_packed status + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = !(rects[i].x == STBRP__MAXVAL && rects[i].y == STBRP__MAXVAL); + if (!rects[i].was_packed) + all_rects_packed = 0; + } + + // return the all_rects_packed status + return all_rects_packed; +} +#endif + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imstb_textedit.h b/imgui-sys/third-party/imgui-master-freetype/imgui/imstb_textedit.h new file mode 100644 index 000000000..75a159dac --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imstb_textedit.h @@ -0,0 +1,1447 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_textedit.h 1.14. +// Those changes would need to be pushed into nothings/stb: +// - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321) +// Grep for [DEAR IMGUI] to find the changes. + +// stb_textedit.h - v1.14 - public domain - Sean Barrett +// Development of this library was sponsored by RAD Game Tools +// +// This C header file implements the guts of a multi-line text-editing +// widget; you implement display, word-wrapping, and low-level string +// insertion/deletion, and stb_textedit will map user inputs into +// insertions & deletions, plus updates to the cursor position, +// selection state, and undo state. +// +// It is intended for use in games and other systems that need to build +// their own custom widgets and which do not have heavy text-editing +// requirements (this library is not recommended for use for editing large +// texts, as its performance does not scale and it has limited undo). +// +// Non-trivial behaviors are modelled after Windows text controls. +// +// +// LICENSE +// +// See end of file for license information. +// +// +// DEPENDENCIES +// +// Uses the C runtime function 'memmove', which you can override +// by defining STB_TEXTEDIT_memmove before the implementation. +// Uses no other functions. Performs no runtime allocations. +// +// +// VERSION HISTORY +// +// 1.14 (2021-07-11) page up/down, various fixes +// 1.13 (2019-02-07) fix bug in undo size management +// 1.12 (2018-01-29) user can change STB_TEXTEDIT_KEYTYPE, fix redo to avoid crash +// 1.11 (2017-03-03) fix HOME on last line, dragging off single-line textfield +// 1.10 (2016-10-25) supress warnings about casting away const with -Wcast-qual +// 1.9 (2016-08-27) customizable move-by-word +// 1.8 (2016-04-02) better keyboard handling when mouse button is down +// 1.7 (2015-09-13) change y range handling in case baseline is non-0 +// 1.6 (2015-04-15) allow STB_TEXTEDIT_memmove +// 1.5 (2014-09-10) add support for secondary keys for OS X +// 1.4 (2014-08-17) fix signed/unsigned warnings +// 1.3 (2014-06-19) fix mouse clicking to round to nearest char boundary +// 1.2 (2014-05-27) fix some RAD types that had crept into the new code +// 1.1 (2013-12-15) move-by-word (requires STB_TEXTEDIT_IS_SPACE ) +// 1.0 (2012-07-26) improve documentation, initial public release +// 0.3 (2012-02-24) bugfixes, single-line mode; insert mode +// 0.2 (2011-11-28) fixes to undo/redo +// 0.1 (2010-07-08) initial version +// +// ADDITIONAL CONTRIBUTORS +// +// Ulf Winklemann: move-by-word in 1.1 +// Fabian Giesen: secondary key inputs in 1.5 +// Martins Mozeiko: STB_TEXTEDIT_memmove in 1.6 +// Louis Schnellbach: page up/down in 1.14 +// +// Bugfixes: +// Scott Graham +// Daniel Keller +// Omar Cornut +// Dan Thompson +// +// USAGE +// +// This file behaves differently depending on what symbols you define +// before including it. +// +// +// Header-file mode: +// +// If you do not define STB_TEXTEDIT_IMPLEMENTATION before including this, +// it will operate in "header file" mode. In this mode, it declares a +// single public symbol, STB_TexteditState, which encapsulates the current +// state of a text widget (except for the string, which you will store +// separately). +// +// To compile in this mode, you must define STB_TEXTEDIT_CHARTYPE to a +// primitive type that defines a single character (e.g. char, wchar_t, etc). +// +// To save space or increase undo-ability, you can optionally define the +// following things that are used by the undo system: +// +// STB_TEXTEDIT_POSITIONTYPE small int type encoding a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// If you don't define these, they are set to permissive types and +// moderate sizes. The undo system does no memory allocations, so +// it grows STB_TexteditState by the worst-case storage which is (in bytes): +// +// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATECOUNT +// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHARCOUNT +// +// +// Implementation mode: +// +// If you define STB_TEXTEDIT_IMPLEMENTATION before including this, it +// will compile the implementation of the text edit widget, depending +// on a large number of symbols which must be defined before the include. +// +// The implementation is defined only as static functions. You will then +// need to provide your own APIs in the same file which will access the +// static functions. +// +// The basic concept is that you provide a "string" object which +// behaves like an array of characters. stb_textedit uses indices to +// refer to positions in the string, implicitly representing positions +// in the displayed textedit. This is true for both plain text and +// rich text; even with rich text stb_truetype interacts with your +// code as if there was an array of all the displayed characters. +// +// Symbols that must be the same in header-file and implementation mode: +// +// STB_TEXTEDIT_CHARTYPE the character type +// STB_TEXTEDIT_POSITIONTYPE small type that is a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// Symbols you must define for implementation mode: +// +// STB_TEXTEDIT_STRING the type of object representing a string being edited, +// typically this is a wrapper object with other data you need +// +// STB_TEXTEDIT_STRINGLEN(obj) the length of the string (ideally O(1)) +// STB_TEXTEDIT_LAYOUTROW(&r,obj,n) returns the results of laying out a line of characters +// starting from character #n (see discussion below) +// STB_TEXTEDIT_GETWIDTH(obj,n,i) returns the pixel delta from the xpos of the i'th character +// to the xpos of the i+1'th char for a line of characters +// starting at character #n (i.e. accounts for kerning +// with previous char) +// STB_TEXTEDIT_KEYTOTEXT(k) maps a keyboard input to an insertable character +// (return type is int, -1 means not valid to insert) +// STB_TEXTEDIT_GETCHAR(obj,i) returns the i'th character of obj, 0-based +// STB_TEXTEDIT_NEWLINE the character returned by _GETCHAR() we recognize +// as manually wordwrapping for end-of-line positioning +// +// STB_TEXTEDIT_DELETECHARS(obj,i,n) delete n characters starting at i +// STB_TEXTEDIT_INSERTCHARS(obj,i,c*,n) insert n characters at i (pointed to by STB_TEXTEDIT_CHARTYPE*) +// +// STB_TEXTEDIT_K_SHIFT a power of two that is or'd in to a keyboard input to represent the shift key +// +// STB_TEXTEDIT_K_LEFT keyboard input to move cursor left +// STB_TEXTEDIT_K_RIGHT keyboard input to move cursor right +// STB_TEXTEDIT_K_UP keyboard input to move cursor up +// STB_TEXTEDIT_K_DOWN keyboard input to move cursor down +// STB_TEXTEDIT_K_PGUP keyboard input to move cursor up a page +// STB_TEXTEDIT_K_PGDOWN keyboard input to move cursor down a page +// STB_TEXTEDIT_K_LINESTART keyboard input to move cursor to start of line // e.g. HOME +// STB_TEXTEDIT_K_LINEEND keyboard input to move cursor to end of line // e.g. END +// STB_TEXTEDIT_K_TEXTSTART keyboard input to move cursor to start of text // e.g. ctrl-HOME +// STB_TEXTEDIT_K_TEXTEND keyboard input to move cursor to end of text // e.g. ctrl-END +// STB_TEXTEDIT_K_DELETE keyboard input to delete selection or character under cursor +// STB_TEXTEDIT_K_BACKSPACE keyboard input to delete selection or character left of cursor +// STB_TEXTEDIT_K_UNDO keyboard input to perform undo +// STB_TEXTEDIT_K_REDO keyboard input to perform redo +// +// Optional: +// STB_TEXTEDIT_K_INSERT keyboard input to toggle insert mode +// STB_TEXTEDIT_IS_SPACE(ch) true if character is whitespace (e.g. 'isspace'), +// required for default WORDLEFT/WORDRIGHT handlers +// STB_TEXTEDIT_MOVEWORDLEFT(obj,i) custom handler for WORDLEFT, returns index to move cursor to +// STB_TEXTEDIT_MOVEWORDRIGHT(obj,i) custom handler for WORDRIGHT, returns index to move cursor to +// STB_TEXTEDIT_K_WORDLEFT keyboard input to move cursor left one word // e.g. ctrl-LEFT +// STB_TEXTEDIT_K_WORDRIGHT keyboard input to move cursor right one word // e.g. ctrl-RIGHT +// STB_TEXTEDIT_K_LINESTART2 secondary keyboard input to move cursor to start of line +// STB_TEXTEDIT_K_LINEEND2 secondary keyboard input to move cursor to end of line +// STB_TEXTEDIT_K_TEXTSTART2 secondary keyboard input to move cursor to start of text +// STB_TEXTEDIT_K_TEXTEND2 secondary keyboard input to move cursor to end of text +// +// Keyboard input must be encoded as a single integer value; e.g. a character code +// and some bitflags that represent shift states. to simplify the interface, SHIFT must +// be a bitflag, so we can test the shifted state of cursor movements to allow selection, +// i.e. (STB_TEXTEDIT_K_RIGHT|STB_TEXTEDIT_K_SHIFT) should be shifted right-arrow. +// +// You can encode other things, such as CONTROL or ALT, in additional bits, and +// then test for their presence in e.g. STB_TEXTEDIT_K_WORDLEFT. For example, +// my Windows implementations add an additional CONTROL bit, and an additional KEYDOWN +// bit. Then all of the STB_TEXTEDIT_K_ values bitwise-or in the KEYDOWN bit, +// and I pass both WM_KEYDOWN and WM_CHAR events to the "key" function in the +// API below. The control keys will only match WM_KEYDOWN events because of the +// keydown bit I add, and STB_TEXTEDIT_KEYTOTEXT only tests for the KEYDOWN +// bit so it only decodes WM_CHAR events. +// +// STB_TEXTEDIT_LAYOUTROW returns information about the shape of one displayed +// row of characters assuming they start on the i'th character--the width and +// the height and the number of characters consumed. This allows this library +// to traverse the entire layout incrementally. You need to compute word-wrapping +// here. +// +// Each textfield keeps its own insert mode state, which is not how normal +// applications work. To keep an app-wide insert mode, update/copy the +// "insert_mode" field of STB_TexteditState before/after calling API functions. +// +// API +// +// void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +// +// void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +// int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +// void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXEDIT_KEYTYPE key) +// +// Each of these functions potentially updates the string and updates the +// state. +// +// initialize_state: +// set the textedit state to a known good default state when initially +// constructing the textedit. +// +// click: +// call this with the mouse x,y on a mouse down; it will update the cursor +// and reset the selection start/end to the cursor point. the x,y must +// be relative to the text widget, with (0,0) being the top left. +// +// drag: +// call this with the mouse x,y on a mouse drag/up; it will update the +// cursor and the selection end point +// +// cut: +// call this to delete the current selection; returns true if there was +// one. you should FIRST copy the current selection to the system paste buffer. +// (To copy, just copy the current selection out of the string yourself.) +// +// paste: +// call this to paste text at the current cursor point or over the current +// selection if there is one. +// +// key: +// call this for keyboard inputs sent to the textfield. you can use it +// for "key down" events or for "translated" key events. if you need to +// do both (as in Win32), or distinguish Unicode characters from control +// inputs, set a high bit to distinguish the two; then you can define the +// various definitions like STB_TEXTEDIT_K_LEFT have the is-key-event bit +// set, and make STB_TEXTEDIT_KEYTOCHAR check that the is-key-event bit is +// clear. STB_TEXTEDIT_KEYTYPE defaults to int, but you can #define it to +// anything other type you wante before including. +// +// +// When rendering, you can read the cursor position and selection state from +// the STB_TexteditState. +// +// +// Notes: +// +// This is designed to be usable in IMGUI, so it allows for the possibility of +// running in an IMGUI that has NOT cached the multi-line layout. For this +// reason, it provides an interface that is compatible with computing the +// layout incrementally--we try to make sure we make as few passes through +// as possible. (For example, to locate the mouse pointer in the text, we +// could define functions that return the X and Y positions of characters +// and binary search Y and then X, but if we're doing dynamic layout this +// will run the layout algorithm many times, so instead we manually search +// forward in one pass. Similar logic applies to e.g. up-arrow and +// down-arrow movement.) +// +// If it's run in a widget that *has* cached the layout, then this is less +// efficient, but it's not horrible on modern computers. But you wouldn't +// want to edit million-line files with it. + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Header-file mode +//// +//// + +#ifndef INCLUDE_STB_TEXTEDIT_H +#define INCLUDE_STB_TEXTEDIT_H + +//////////////////////////////////////////////////////////////////////// +// +// STB_TexteditState +// +// Definition of STB_TexteditState which you should store +// per-textfield; it includes cursor position, selection state, +// and undo state. +// + +#ifndef STB_TEXTEDIT_UNDOSTATECOUNT +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#endif +#ifndef STB_TEXTEDIT_UNDOCHARCOUNT +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#endif +#ifndef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_CHARTYPE int +#endif +#ifndef STB_TEXTEDIT_POSITIONTYPE +#define STB_TEXTEDIT_POSITIONTYPE int +#endif + +typedef struct +{ + // private data + STB_TEXTEDIT_POSITIONTYPE where; + STB_TEXTEDIT_POSITIONTYPE insert_length; + STB_TEXTEDIT_POSITIONTYPE delete_length; + int char_storage; +} StbUndoRecord; + +typedef struct +{ + // private data + StbUndoRecord undo_rec [STB_TEXTEDIT_UNDOSTATECOUNT]; + STB_TEXTEDIT_CHARTYPE undo_char[STB_TEXTEDIT_UNDOCHARCOUNT]; + short undo_point, redo_point; + int undo_char_point, redo_char_point; +} StbUndoState; + +typedef struct +{ + ///////////////////// + // + // public data + // + + int cursor; + // position of the text cursor within the string + + int select_start; // selection start point + int select_end; + // selection start and end point in characters; if equal, no selection. + // note that start may be less than or greater than end (e.g. when + // dragging the mouse, start is where the initial click was, and you + // can drag in either direction) + + unsigned char insert_mode; + // each textfield keeps its own insert mode state. to keep an app-wide + // insert mode, copy this value in/out of the app state + + int row_count_per_page; + // page size in number of row. + // this value MUST be set to >0 for pageup or pagedown in multilines documents. + + ///////////////////// + // + // private data + // + unsigned char cursor_at_end_of_line; // not implemented yet + unsigned char initialized; + unsigned char has_preferred_x; + unsigned char single_line; + unsigned char padding1, padding2, padding3; + float preferred_x; // this determines where the cursor up/down tries to seek to along x + StbUndoState undostate; +} STB_TexteditState; + + +//////////////////////////////////////////////////////////////////////// +// +// StbTexteditRow +// +// Result of layout query, used by stb_textedit to determine where +// the text in each row is. + +// result of layout query +typedef struct +{ + float x0,x1; // starting x location, end x location (allows for align=right, etc) + float baseline_y_delta; // position of baseline relative to previous row's baseline + float ymin,ymax; // height of row above and below baseline + int num_chars; +} StbTexteditRow; +#endif //INCLUDE_STB_TEXTEDIT_H + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Implementation mode +//// +//// + + +// implementation isn't include-guarded, since it might have indirectly +// included just the "header" portion +#ifdef STB_TEXTEDIT_IMPLEMENTATION + +#ifndef STB_TEXTEDIT_memmove +#include +#define STB_TEXTEDIT_memmove memmove +#endif + + +///////////////////////////////////////////////////////////////////////////// +// +// Mouse input handling +// + +// traverse the layout to locate the nearest character to a display position +static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y) +{ + StbTexteditRow r; + int n = STB_TEXTEDIT_STRINGLEN(str); + float base_y = 0, prev_x; + int i=0, k; + + r.x0 = r.x1 = 0; + r.ymin = r.ymax = 0; + r.num_chars = 0; + + // search rows to find one that straddles 'y' + while (i < n) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (r.num_chars <= 0) + return n; + + if (i==0 && y < base_y + r.ymin) + return 0; + + if (y < base_y + r.ymax) + break; + + i += r.num_chars; + base_y += r.baseline_y_delta; + } + + // below all text, return 'after' last character + if (i >= n) + return n; + + // check if it's before the beginning of the line + if (x < r.x0) + return i; + + // check if it's before the end of the line + if (x < r.x1) { + // search characters in row for one that straddles 'x' + prev_x = r.x0; + for (k=0; k < r.num_chars; ++k) { + float w = STB_TEXTEDIT_GETWIDTH(str, i, k); + if (x < prev_x+w) { + if (x < prev_x+w/2) + return k+i; + else + return k+i+1; + } + prev_x += w; + } + // shouldn't happen, but if it does, fall through to end-of-line case + } + + // if the last character is a newline, return that. otherwise return 'after' the last character + if (STB_TEXTEDIT_GETCHAR(str, i+r.num_chars-1) == STB_TEXTEDIT_NEWLINE) + return i+r.num_chars-1; + else + return i+r.num_chars; +} + +// API click: on mouse down, move the cursor to the clicked location, and reset the selection +static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + state->cursor = stb_text_locate_coord(str, x, y); + state->select_start = state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; +} + +// API drag: on mouse drag, move the cursor and selection endpoint to the clicked location +static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + int p = 0; + + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + if (state->select_start == state->select_end) + state->select_start = state->cursor; + + p = stb_text_locate_coord(str, x, y); + state->cursor = state->select_end = p; +} + +///////////////////////////////////////////////////////////////////////////// +// +// Keyboard input handling +// + +// forward declarations +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length); + +typedef struct +{ + float x,y; // position of n'th character + float height; // height of line + int first_char, length; // first char of row, and length + int prev_first; // first char of previous row +} StbFindState; + +// find the x/y location of a character, and remember info about the previous row in +// case we get a move-up event (for page up, we'll have to rescan) +static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line) +{ + StbTexteditRow r; + int prev_start = 0; + int z = STB_TEXTEDIT_STRINGLEN(str); + int i=0, first; + + if (n == z) { + // if it's at the end, then find the last line -- simpler than trying to + // explicitly handle this case in the regular code + if (single_line) { + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + find->y = 0; + find->first_char = 0; + find->length = z; + find->height = r.ymax - r.ymin; + find->x = r.x1; + } else { + find->y = 0; + find->x = 0; + find->height = 1; + while (i < z) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + prev_start = i; + i += r.num_chars; + } + find->first_char = i; + find->length = 0; + find->prev_first = prev_start; + } + return; + } + + // search rows to find the one that straddles character n + find->y = 0; + + for(;;) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (n < i + r.num_chars) + break; + prev_start = i; + i += r.num_chars; + find->y += r.baseline_y_delta; + } + + find->first_char = first = i; + find->length = r.num_chars; + find->height = r.ymax - r.ymin; + find->prev_first = prev_start; + + // now scan to find xpos + find->x = r.x0; + for (i=0; first+i < n; ++i) + find->x += STB_TEXTEDIT_GETWIDTH(str, first, i); +} + +#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end) + +// make the selection/cursor state valid if client altered the string +static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + int n = STB_TEXTEDIT_STRINGLEN(str); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start > n) state->select_start = n; + if (state->select_end > n) state->select_end = n; + // if clamping forced them to be equal, move the cursor to match + if (state->select_start == state->select_end) + state->cursor = state->select_start; + } + if (state->cursor > n) state->cursor = n; +} + +// delete characters while updating undo +static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len) +{ + stb_text_makeundo_delete(str, state, where, len); + STB_TEXTEDIT_DELETECHARS(str, where, len); + state->has_preferred_x = 0; +} + +// delete the section +static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + stb_textedit_clamp(str, state); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start < state->select_end) { + stb_textedit_delete(str, state, state->select_start, state->select_end - state->select_start); + state->select_end = state->cursor = state->select_start; + } else { + stb_textedit_delete(str, state, state->select_end, state->select_start - state->select_end); + state->select_start = state->cursor = state->select_end; + } + state->has_preferred_x = 0; + } +} + +// canoncialize the selection so start <= end +static void stb_textedit_sortselection(STB_TexteditState *state) +{ + if (state->select_end < state->select_start) { + int temp = state->select_end; + state->select_end = state->select_start; + state->select_start = temp; + } +} + +// move cursor to first character of selection +static void stb_textedit_move_to_first(STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + state->cursor = state->select_start; + state->select_end = state->select_start; + state->has_preferred_x = 0; + } +} + +// move cursor to last character of selection +static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->select_start = state->select_end; + state->has_preferred_x = 0; + } +} + +#ifdef STB_TEXTEDIT_IS_SPACE +static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx ) +{ + return idx > 0 ? (STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str,idx-1) ) && !STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str, idx) ) ) : 1; +} + +#ifndef STB_TEXTEDIT_MOVEWORDLEFT +static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c ) +{ + --c; // always move at least one character + while( c >= 0 && !is_word_boundary( str, c ) ) + --c; + + if( c < 0 ) + c = 0; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDLEFT stb_textedit_move_to_word_previous +#endif + +#ifndef STB_TEXTEDIT_MOVEWORDRIGHT +static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c ) +{ + const int len = STB_TEXTEDIT_STRINGLEN(str); + ++c; // always move at least one character + while( c < len && !is_word_boundary( str, c ) ) + ++c; + + if( c > len ) + c = len; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDRIGHT stb_textedit_move_to_word_next +#endif + +#endif + +// update selection and cursor to match each other +static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state) +{ + if (!STB_TEXT_HAS_SELECTION(state)) + state->select_start = state->select_end = state->cursor; + else + state->cursor = state->select_end; +} + +// API cut: delete selection +static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_delete_selection(str,state); // implicitly clamps + state->has_preferred_x = 0; + return 1; + } + return 0; +} + +// API paste: replace existing selection with passed-in text +static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +{ + // if there's a selection, the paste should delete it + stb_textedit_clamp(str, state); + stb_textedit_delete_selection(str,state); + // try to insert the characters + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, text, len)) { + stb_text_makeundo_insert(state, state->cursor, len); + state->cursor += len; + state->has_preferred_x = 0; + return 1; + } + // note: paste failure will leave deleted selection, may be restored with an undo (see https://github.com/nothings/stb/issues/734 for details) + return 0; +} + +#ifndef STB_TEXTEDIT_KEYTYPE +#define STB_TEXTEDIT_KEYTYPE int +#endif + +// API key: process a keyboard input +static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key) +{ +retry: + switch (key) { + default: { + int c = STB_TEXTEDIT_KEYTOTEXT(key); + if (c > 0) { + STB_TEXTEDIT_CHARTYPE ch = (STB_TEXTEDIT_CHARTYPE) c; + + // can't add newline in single-line mode + if (c == '\n' && state->single_line) + break; + + if (state->insert_mode && !STB_TEXT_HAS_SELECTION(state) && state->cursor < STB_TEXTEDIT_STRINGLEN(str)) { + stb_text_makeundo_replace(str, state, state->cursor, 1, 1); + STB_TEXTEDIT_DELETECHARS(str, state->cursor, 1); + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + ++state->cursor; + state->has_preferred_x = 0; + } + } else { + stb_textedit_delete_selection(str,state); // implicitly clamps + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + stb_text_makeundo_insert(state, state->cursor, 1); + ++state->cursor; + state->has_preferred_x = 0; + } + } + } + break; + } + +#ifdef STB_TEXTEDIT_K_INSERT + case STB_TEXTEDIT_K_INSERT: + state->insert_mode = !state->insert_mode; + break; +#endif + + case STB_TEXTEDIT_K_UNDO: + stb_text_undo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_REDO: + stb_text_redo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT: + // if currently there's a selection, move cursor to start of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else + if (state->cursor > 0) + --state->cursor; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_RIGHT: + // if currently there's a selection, move cursor to end of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else + ++state->cursor; + stb_textedit_clamp(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + // move selection left + if (state->select_end > 0) + --state->select_end; + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_MOVEWORDLEFT + case STB_TEXTEDIT_K_WORDLEFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + +#ifdef STB_TEXTEDIT_MOVEWORDRIGHT + case STB_TEXTEDIT_K_WORDRIGHT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + + case STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + // move selection right + ++state->select_end; + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_DOWN: + case STB_TEXTEDIT_K_DOWN | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGDOWN: + case STB_TEXTEDIT_K_PGDOWN | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGDOWN; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down in single-line behave like left&right + key = STB_TEXTEDIT_K_RIGHT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + int start = find.first_char + find.length; + + if (find.length == 0) + break; + + // [DEAR IMGUI] + // going down while being on the last line shouldn't bring us to that line end + if (STB_TEXTEDIT_GETCHAR(str, find.first_char + find.length - 1) != STB_TEXTEDIT_NEWLINE) + break; + + // now find character position down a row + state->cursor = start; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, start, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to next line + find.first_char = find.first_char + find.length; + find.length = row.num_chars; + } + break; + } + + case STB_TEXTEDIT_K_UP: + case STB_TEXTEDIT_K_UP | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGUP: + case STB_TEXTEDIT_K_PGUP | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, prev_scan, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGUP; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down become left&right + key = STB_TEXTEDIT_K_LEFT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + + // can only go up if there's a previous row + if (find.prev_first == find.first_char) + break; + + // now find character position up a row + state->cursor = find.prev_first; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, find.prev_first, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to previous line + // (we need to scan previous line the hard way. maybe we could expose this as a new API function?) + prev_scan = find.prev_first > 0 ? find.prev_first - 1 : 0; + while (prev_scan > 0 && STB_TEXTEDIT_GETCHAR(str, prev_scan - 1) != STB_TEXTEDIT_NEWLINE) + --prev_scan; + find.first_char = find.prev_first; + find.prev_first = prev_scan; + } + break; + } + + case STB_TEXTEDIT_K_DELETE: + case STB_TEXTEDIT_K_DELETE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + int n = STB_TEXTEDIT_STRINGLEN(str); + if (state->cursor < n) + stb_textedit_delete(str, state, state->cursor, 1); + } + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_BACKSPACE: + case STB_TEXTEDIT_K_BACKSPACE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + stb_textedit_clamp(str, state); + if (state->cursor > 0) { + stb_textedit_delete(str, state, state->cursor-1, 1); + --state->cursor; + } + } + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2: +#endif + case STB_TEXTEDIT_K_TEXTSTART: + state->cursor = state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2: +#endif + case STB_TEXTEDIT_K_TEXTEND: + state->cursor = STB_TEXTEDIT_STRINGLEN(str); + state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTSTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTEND | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = STB_TEXTEDIT_STRINGLEN(str); + state->has_preferred_x = 0; + break; + + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2: +#endif + case STB_TEXTEDIT_K_LINESTART: + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2: +#endif + case STB_TEXTEDIT_K_LINEEND: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->has_preferred_x = 0; + break; + } + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + } + } +} + +///////////////////////////////////////////////////////////////////////////// +// +// Undo processing +// +// @OPTIMIZE: the undo/redo buffer should be circular + +static void stb_textedit_flush_redo(StbUndoState *state) +{ + state->redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; +} + +// discard the oldest entry in the undo list +static void stb_textedit_discard_undo(StbUndoState *state) +{ + if (state->undo_point > 0) { + // if the 0th undo state has characters, clean those up + if (state->undo_rec[0].char_storage >= 0) { + int n = state->undo_rec[0].insert_length, i; + // delete n characters from all other records + state->undo_char_point -= n; + STB_TEXTEDIT_memmove(state->undo_char, state->undo_char + n, (size_t) (state->undo_char_point*sizeof(STB_TEXTEDIT_CHARTYPE))); + for (i=0; i < state->undo_point; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage -= n; // @OPTIMIZE: get rid of char_storage and infer it + } + --state->undo_point; + STB_TEXTEDIT_memmove(state->undo_rec, state->undo_rec+1, (size_t) (state->undo_point*sizeof(state->undo_rec[0]))); + } +} + +// discard the oldest entry in the redo list--it's bad if this +// ever happens, but because undo & redo have to store the actual +// characters in different cases, the redo character buffer can +// fill up even though the undo buffer didn't +static void stb_textedit_discard_redo(StbUndoState *state) +{ + int k = STB_TEXTEDIT_UNDOSTATECOUNT-1; + + if (state->redo_point <= k) { + // if the k'th undo state has characters, clean those up + if (state->undo_rec[k].char_storage >= 0) { + int n = state->undo_rec[k].insert_length, i; + // move the remaining redo character data to the end of the buffer + state->redo_char_point += n; + STB_TEXTEDIT_memmove(state->undo_char + state->redo_char_point, state->undo_char + state->redo_char_point-n, (size_t) ((STB_TEXTEDIT_UNDOCHARCOUNT - state->redo_char_point)*sizeof(STB_TEXTEDIT_CHARTYPE))); + // adjust the position of all the other records to account for above memmove + for (i=state->redo_point; i < k; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage += n; + } + // now move all the redo records towards the end of the buffer; the first one is at 'redo_point' + // [DEAR IMGUI] + size_t move_size = (size_t)((STB_TEXTEDIT_UNDOSTATECOUNT - state->redo_point - 1) * sizeof(state->undo_rec[0])); + const char* buf_begin = (char*)state->undo_rec; (void)buf_begin; + const char* buf_end = (char*)state->undo_rec + sizeof(state->undo_rec); (void)buf_end; + IM_ASSERT(((char*)(state->undo_rec + state->redo_point)) >= buf_begin); + IM_ASSERT(((char*)(state->undo_rec + state->redo_point + 1) + move_size) <= buf_end); + STB_TEXTEDIT_memmove(state->undo_rec + state->redo_point+1, state->undo_rec + state->redo_point, move_size); + + // now move redo_point to point to the new one + ++state->redo_point; + } +} + +static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars) +{ + // any time we create a new undo record, we discard redo + stb_textedit_flush_redo(state); + + // if we have no free records, we have to make room, by sliding the + // existing records down + if (state->undo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + stb_textedit_discard_undo(state); + + // if the characters to store won't possibly fit in the buffer, we can't undo + if (numchars > STB_TEXTEDIT_UNDOCHARCOUNT) { + state->undo_point = 0; + state->undo_char_point = 0; + return NULL; + } + + // if we don't have enough free characters in the buffer, we have to make room + while (state->undo_char_point + numchars > STB_TEXTEDIT_UNDOCHARCOUNT) + stb_textedit_discard_undo(state); + + return &state->undo_rec[state->undo_point++]; +} + +static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len) +{ + StbUndoRecord *r = stb_text_create_undo_record(state, insert_len); + if (r == NULL) + return NULL; + + r->where = pos; + r->insert_length = (STB_TEXTEDIT_POSITIONTYPE) insert_len; + r->delete_length = (STB_TEXTEDIT_POSITIONTYPE) delete_len; + + if (insert_len == 0) { + r->char_storage = -1; + return NULL; + } else { + r->char_storage = state->undo_char_point; + state->undo_char_point += insert_len; + return &state->undo_char[r->char_storage]; + } +} + +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord u, *r; + if (s->undo_point == 0) + return; + + // we need to do two things: apply the undo record, and create a redo record + u = s->undo_rec[s->undo_point-1]; + r = &s->undo_rec[s->redo_point-1]; + r->char_storage = -1; + + r->insert_length = u.delete_length; + r->delete_length = u.insert_length; + r->where = u.where; + + if (u.delete_length) { + // if the undo record says to delete characters, then the redo record will + // need to re-insert the characters that get deleted, so we need to store + // them. + + // there are three cases: + // there's enough room to store the characters + // characters stored for *redoing* don't leave room for redo + // characters stored for *undoing* don't leave room for redo + // if the last is true, we have to bail + + if (s->undo_char_point + u.delete_length >= STB_TEXTEDIT_UNDOCHARCOUNT) { + // the undo records take up too much character space; there's no space to store the redo characters + r->insert_length = 0; + } else { + int i; + + // there's definitely room to store the characters eventually + while (s->undo_char_point + u.delete_length > s->redo_char_point) { + // should never happen: + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + // there's currently not enough room, so discard a redo record + stb_textedit_discard_redo(s); + } + r = &s->undo_rec[s->redo_point-1]; + + r->char_storage = s->redo_char_point - u.delete_length; + s->redo_char_point = s->redo_char_point - u.delete_length; + + // now save the characters + for (i=0; i < u.delete_length; ++i) + s->undo_char[r->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u.where + i); + } + + // now we can carry out the deletion + STB_TEXTEDIT_DELETECHARS(str, u.where, u.delete_length); + } + + // check type of recorded action: + if (u.insert_length) { + // easy case: was a deletion, so we need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, u.where, &s->undo_char[u.char_storage], u.insert_length); + s->undo_char_point -= u.insert_length; + } + + state->cursor = u.where + u.insert_length; + + s->undo_point--; + s->redo_point--; +} + +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord *u, r; + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + + // we need to do two things: apply the redo record, and create an undo record + u = &s->undo_rec[s->undo_point]; + r = s->undo_rec[s->redo_point]; + + // we KNOW there must be room for the undo record, because the redo record + // was derived from an undo record + + u->delete_length = r.insert_length; + u->insert_length = r.delete_length; + u->where = r.where; + u->char_storage = -1; + + if (r.delete_length) { + // the redo record requires us to delete characters, so the undo record + // needs to store the characters + + if (s->undo_char_point + u->insert_length > s->redo_char_point) { + u->insert_length = 0; + u->delete_length = 0; + } else { + int i; + u->char_storage = s->undo_char_point; + s->undo_char_point = s->undo_char_point + u->insert_length; + + // now save the characters + for (i=0; i < u->insert_length; ++i) + s->undo_char[u->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u->where + i); + } + + STB_TEXTEDIT_DELETECHARS(str, r.where, r.delete_length); + } + + if (r.insert_length) { + // easy case: need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, r.where, &s->undo_char[r.char_storage], r.insert_length); + s->redo_char_point += r.insert_length; + } + + state->cursor = r.where + r.insert_length; + + s->undo_point++; + s->redo_point++; +} + +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length) +{ + stb_text_createundo(&state->undostate, where, 0, length); +} + +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, length, 0); + if (p) { + for (i=0; i < length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, old_length, new_length); + if (p) { + for (i=0; i < old_length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +// reset the state to default +static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line) +{ + state->undostate.undo_point = 0; + state->undostate.undo_char_point = 0; + state->undostate.redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->undostate.redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; + state->select_end = state->select_start = 0; + state->cursor = 0; + state->has_preferred_x = 0; + state->preferred_x = 0; + state->cursor_at_end_of_line = 0; + state->initialized = 1; + state->single_line = (unsigned char) is_single_line; + state->insert_mode = 0; + state->row_count_per_page = 0; +} + +// API initialize +static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +{ + stb_textedit_clear_state(state, is_single_line); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len) +{ + return stb_textedit_paste_internal(str, state, (STB_TEXTEDIT_CHARTYPE *) ctext, len); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif//STB_TEXTEDIT_IMPLEMENTATION + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/imstb_truetype.h b/imgui-sys/third-party/imgui-master-freetype/imgui/imstb_truetype.h new file mode 100644 index 000000000..643d37899 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/imstb_truetype.h @@ -0,0 +1,5085 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_truetype.h 1.26. +// Mostly fixing for compiler and static analyzer warnings. +// Grep for [DEAR IMGUI] to find the changes. + +// stb_truetype.h - v1.26 - public domain +// authored from 2009-2021 by Sean Barrett / RAD Game Tools +// +// ======================================================================= +// +// NO SECURITY GUARANTEE -- DO NOT USE THIS ON UNTRUSTED FONT FILES +// +// This library does no range checking of the offsets found in the file, +// meaning an attacker can use it to read arbitrary memory. +// +// ======================================================================= +// +// This library processes TrueType files: +// parse files +// extract glyph metrics +// extract glyph shapes +// render glyphs to one-channel bitmaps with antialiasing (box filter) +// render glyphs to one-channel SDF bitmaps (signed-distance field/function) +// +// Todo: +// non-MS cmaps +// crashproof on bad data +// hinting? (no longer patented) +// cleartype-style AA? +// optimize: use simple memory allocator for intermediates +// optimize: build edge-list directly from curves +// optimize: rasterize directly from curves? +// +// ADDITIONAL CONTRIBUTORS +// +// Mikko Mononen: compound shape support, more cmap formats +// Tor Andersson: kerning, subpixel rendering +// Dougall Johnson: OpenType / Type 2 font handling +// Daniel Ribeiro Maciel: basic GPOS-based kerning +// +// Misc other: +// Ryan Gordon +// Simon Glass +// github:IntellectualKitty +// Imanol Celaya +// Daniel Ribeiro Maciel +// +// Bug/warning reports/fixes: +// "Zer" on mollyrocket Fabian "ryg" Giesen github:NiLuJe +// Cass Everitt Martins Mozeiko github:aloucks +// stoiko (Haemimont Games) Cap Petschulat github:oyvindjam +// Brian Hook Omar Cornut github:vassvik +// Walter van Niftrik Ryan Griege +// David Gow Peter LaValle +// David Given Sergey Popov +// Ivan-Assen Ivanov Giumo X. Clanjor +// Anthony Pesch Higor Euripedes +// Johan Duparc Thomas Fields +// Hou Qiming Derek Vinyard +// Rob Loach Cort Stratton +// Kenney Phillis Jr. Brian Costabile +// Ken Voskuil (kaesve) +// +// VERSION HISTORY +// +// 1.26 (2021-08-28) fix broken rasterizer +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() +// 1.19 (2018-02-11) GPOS kerning, STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) user-defined fabs(); rare memory leak; remove duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use allocation userdata properly +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// variant PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// +// Full history can be found at the end of this file. +// +// LICENSE +// +// See end of file for license information. +// +// USAGE +// +// Include this file in whatever places need to refer to it. In ONE C/C++ +// file, write: +// #define STB_TRUETYPE_IMPLEMENTATION +// before the #include of this file. This expands out the actual +// implementation into that C/C++ file. +// +// To make the implementation private to the file that generates the implementation, +// #define STBTT_STATIC +// +// Simple 3D API (don't ship this, but it's fine for tools and quick start) +// stbtt_BakeFontBitmap() -- bake a font to a bitmap for use as texture +// stbtt_GetBakedQuad() -- compute quad to draw for a given char +// +// Improved 3D API (more shippable): +// #include "stb_rect_pack.h" -- optional, but you really want it +// stbtt_PackBegin() +// stbtt_PackSetOversampling() -- for improved quality on small fonts +// stbtt_PackFontRanges() -- pack and renders +// stbtt_PackEnd() +// stbtt_GetPackedQuad() +// +// "Load" a font file from a memory buffer (you have to keep the buffer loaded) +// stbtt_InitFont() +// stbtt_GetFontOffsetForIndex() -- indexing for TTC font collections +// stbtt_GetNumberOfFonts() -- number of fonts for TTC font collections +// +// Render a unicode codepoint to a bitmap +// stbtt_GetCodepointBitmap() -- allocates and returns a bitmap +// stbtt_MakeCodepointBitmap() -- renders into bitmap you provide +// stbtt_GetCodepointBitmapBox() -- how big the bitmap must be +// +// Character advance/positioning +// stbtt_GetCodepointHMetrics() +// stbtt_GetFontVMetrics() +// stbtt_GetFontVMetricsOS2() +// stbtt_GetCodepointKernAdvance() +// +// Starting with version 1.06, the rasterizer was replaced with a new, +// faster and generally-more-precise rasterizer. The new rasterizer more +// accurately measures pixel coverage for anti-aliasing, except in the case +// where multiple shapes overlap, in which case it overestimates the AA pixel +// coverage. Thus, anti-aliasing of intersecting shapes may look wrong. If +// this turns out to be a problem, you can re-enable the old rasterizer with +// #define STBTT_RASTERIZER_VERSION 1 +// which will incur about a 15% speed hit. +// +// ADDITIONAL DOCUMENTATION +// +// Immediately after this block comment are a series of sample programs. +// +// After the sample programs is the "header file" section. This section +// includes documentation for each API function. +// +// Some important concepts to understand to use this library: +// +// Codepoint +// Characters are defined by unicode codepoints, e.g. 65 is +// uppercase A, 231 is lowercase c with a cedilla, 0x7e30 is +// the hiragana for "ma". +// +// Glyph +// A visual character shape (every codepoint is rendered as +// some glyph) +// +// Glyph index +// A font-specific integer ID representing a glyph +// +// Baseline +// Glyph shapes are defined relative to a baseline, which is the +// bottom of uppercase characters. Characters extend both above +// and below the baseline. +// +// Current Point +// As you draw text to the screen, you keep track of a "current point" +// which is the origin of each character. The current point's vertical +// position is the baseline. Even "baked fonts" use this model. +// +// Vertical Font Metrics +// The vertical qualities of the font, used to vertically position +// and space the characters. See docs for stbtt_GetFontVMetrics. +// +// Font Size in Pixels or Points +// The preferred interface for specifying font sizes in stb_truetype +// is to specify how tall the font's vertical extent should be in pixels. +// If that sounds good enough, skip the next paragraph. +// +// Most font APIs instead use "points", which are a common typographic +// measurement for describing font size, defined as 72 points per inch. +// stb_truetype provides a point API for compatibility. However, true +// "per inch" conventions don't make much sense on computer displays +// since different monitors have different number of pixels per +// inch. For example, Windows traditionally uses a convention that +// there are 96 pixels per inch, thus making 'inch' measurements have +// nothing to do with inches, and thus effectively defining a point to +// be 1.333 pixels. Additionally, the TrueType font data provides +// an explicit scale factor to scale a given font's glyphs to points, +// but the author has observed that this scale factor is often wrong +// for non-commercial fonts, thus making fonts scaled in points +// according to the TrueType spec incoherently sized in practice. +// +// DETAILED USAGE: +// +// Scale: +// Select how high you want the font to be, in points or pixels. +// Call ScaleForPixelHeight or ScaleForMappingEmToPixels to compute +// a scale factor SF that will be used by all other functions. +// +// Baseline: +// You need to select a y-coordinate that is the baseline of where +// your text will appear. Call GetFontBoundingBox to get the baseline-relative +// bounding box for all characters. SF*-y0 will be the distance in pixels +// that the worst-case character could extend above the baseline, so if +// you want the top edge of characters to appear at the top of the +// screen where y=0, then you would set the baseline to SF*-y0. +// +// Current point: +// Set the current point where the first character will appear. The +// first character could extend left of the current point; this is font +// dependent. You can either choose a current point that is the leftmost +// point and hope, or add some padding, or check the bounding box or +// left-side-bearing of the first character to be displayed and set +// the current point based on that. +// +// Displaying a character: +// Compute the bounding box of the character. It will contain signed values +// relative to . I.e. if it returns x0,y0,x1,y1, +// then the character should be displayed in the rectangle from +// to = 32 && *text < 128) { + stbtt_aligned_quad q; + stbtt_GetBakedQuad(cdata, 512,512, *text-32, &x,&y,&q,1);//1=opengl & d3d10+,0=d3d9 + glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y0); + glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y0); + glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y1); + glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y1); + } + ++text; + } + glEnd(); +} +#endif +// +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program (this compiles): get a single bitmap, print as ASCII art +// +#if 0 +#include +#define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation +#include "stb_truetype.h" + +char ttf_buffer[1<<25]; + +int main(int argc, char **argv) +{ + stbtt_fontinfo font; + unsigned char *bitmap; + int w,h,i,j,c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20); + + fread(ttf_buffer, 1, 1<<25, fopen(argc > 3 ? argv[3] : "c:/windows/fonts/arialbd.ttf", "rb")); + + stbtt_InitFont(&font, ttf_buffer, stbtt_GetFontOffsetForIndex(ttf_buffer,0)); + bitmap = stbtt_GetCodepointBitmap(&font, 0,stbtt_ScaleForPixelHeight(&font, s), c, &w, &h, 0,0); + + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) + putchar(" .:ioVM@"[bitmap[j*w+i]>>5]); + putchar('\n'); + } + return 0; +} +#endif +// +// Output: +// +// .ii. +// @@@@@@. +// V@Mio@@o +// :i. V@V +// :oM@@M +// :@@@MM@M +// @@o o@M +// :@@. M@M +// @@@o@@@@ +// :M@@V:@@. +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program: print "Hello World!" banner, with bugs +// +#if 0 +char buffer[24<<20]; +unsigned char screen[20][79]; + +int main(int arg, char **argv) +{ + stbtt_fontinfo font; + int i,j,ascent,baseline,ch=0; + float scale, xpos=2; // leave a little padding in case the character extends left + char *text = "Heljo World!"; // intentionally misspelled to show 'lj' brokenness + + fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb")); + stbtt_InitFont(&font, buffer, 0); + + scale = stbtt_ScaleForPixelHeight(&font, 15); + stbtt_GetFontVMetrics(&font, &ascent,0,0); + baseline = (int) (ascent*scale); + + while (text[ch]) { + int advance,lsb,x0,y0,x1,y1; + float x_shift = xpos - (float) floor(xpos); + stbtt_GetCodepointHMetrics(&font, text[ch], &advance, &lsb); + stbtt_GetCodepointBitmapBoxSubpixel(&font, text[ch], scale,scale,x_shift,0, &x0,&y0,&x1,&y1); + stbtt_MakeCodepointBitmapSubpixel(&font, &screen[baseline + y0][(int) xpos + x0], x1-x0,y1-y0, 79, scale,scale,x_shift,0, text[ch]); + // note that this stomps the old data, so where character boxes overlap (e.g. 'lj') it's wrong + // because this API is really for baking character bitmaps into textures. if you want to render + // a sequence of characters, you really need to render each bitmap to a temp buffer, then + // "alpha blend" that into the working buffer + xpos += (advance * scale); + if (text[ch+1]) + xpos += scale*stbtt_GetCodepointKernAdvance(&font, text[ch],text[ch+1]); + ++ch; + } + + for (j=0; j < 20; ++j) { + for (i=0; i < 78; ++i) + putchar(" .:ioVM@"[screen[j][i]>>5]); + putchar('\n'); + } + + return 0; +} +#endif + + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// +//// +//// INTEGRATION WITH YOUR CODEBASE +//// +//// The following sections allow you to supply alternate definitions +//// of C library functions used by stb_truetype, e.g. if you don't +//// link with the C runtime library. + +#ifdef STB_TRUETYPE_IMPLEMENTATION + // #define your own (u)stbtt_int8/16/32 before including to override this + #ifndef stbtt_uint8 + typedef unsigned char stbtt_uint8; + typedef signed char stbtt_int8; + typedef unsigned short stbtt_uint16; + typedef signed short stbtt_int16; + typedef unsigned int stbtt_uint32; + typedef signed int stbtt_int32; + #endif + + typedef char stbtt__check_size32[sizeof(stbtt_int32)==4 ? 1 : -1]; + typedef char stbtt__check_size16[sizeof(stbtt_int16)==2 ? 1 : -1]; + + // e.g. #define your own STBTT_ifloor/STBTT_iceil() to avoid math.h + #ifndef STBTT_ifloor + #include + #define STBTT_ifloor(x) ((int) floor(x)) + #define STBTT_iceil(x) ((int) ceil(x)) + #endif + + #ifndef STBTT_sqrt + #include + #define STBTT_sqrt(x) sqrt(x) + #define STBTT_pow(x,y) pow(x,y) + #endif + + #ifndef STBTT_fmod + #include + #define STBTT_fmod(x,y) fmod(x,y) + #endif + + #ifndef STBTT_cos + #include + #define STBTT_cos(x) cos(x) + #define STBTT_acos(x) acos(x) + #endif + + #ifndef STBTT_fabs + #include + #define STBTT_fabs(x) fabs(x) + #endif + + // #define your own functions "STBTT_malloc" / "STBTT_free" to avoid malloc.h + #ifndef STBTT_malloc + #include + #define STBTT_malloc(x,u) ((void)(u),malloc(x)) + #define STBTT_free(x,u) ((void)(u),free(x)) + #endif + + #ifndef STBTT_assert + #include + #define STBTT_assert(x) assert(x) + #endif + + #ifndef STBTT_strlen + #include + #define STBTT_strlen(x) strlen(x) + #endif + + #ifndef STBTT_memcpy + #include + #define STBTT_memcpy memcpy + #define STBTT_memset memset + #endif +#endif + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// INTERFACE +//// +//// + +#ifndef __STB_INCLUDE_STB_TRUETYPE_H__ +#define __STB_INCLUDE_STB_TRUETYPE_H__ + +#ifdef STBTT_STATIC +#define STBTT_DEF static +#else +#define STBTT_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +// private structure +typedef struct +{ + unsigned char *data; + int cursor; + int size; +} stbtt__buf; + +////////////////////////////////////////////////////////////////////////////// +// +// TEXTURE BAKING API +// +// If you use this API, you only have to call two functions ever. +// + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; +} stbtt_bakedchar; + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata); // you allocate this, it's num_chars long +// if return is positive, the first unused row of the bitmap +// if return is negative, returns the negative of the number of characters that fit +// if return is 0, no characters fit and no rows were used +// This uses a very crappy packing. + +typedef struct +{ + float x0,y0,s0,t0; // top-left + float x1,y1,s1,t1; // bottom-right +} stbtt_aligned_quad; + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int opengl_fillrule); // true if opengl fill rule; false if DX9 or earlier +// Call GetBakedQuad with char_index = 'character - first_char', and it +// creates the quad you need to draw and advances the current position. +// +// The coordinate system used assumes y increases downwards. +// +// Characters will extend both above and below the current position; +// see discussion of "BASELINE" above. +// +// It's inefficient; you might want to c&p it and optimize it. + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap); +// Query the font vertical metrics without having to create a font first. + + +////////////////////////////////////////////////////////////////////////////// +// +// NEW TEXTURE BAKING API +// +// This provides options for packing multiple fonts into one atlas, not +// perfectly but better than nothing. + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; + float xoff2,yoff2; +} stbtt_packedchar; + +typedef struct stbtt_pack_context stbtt_pack_context; +typedef struct stbtt_fontinfo stbtt_fontinfo; +#ifndef STB_RECT_PACK_VERSION +typedef struct stbrp_rect stbrp_rect; +#endif + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context); +// Initializes a packing context stored in the passed-in stbtt_pack_context. +// Future calls using this context will pack characters into the bitmap passed +// in here: a 1-channel bitmap that is width * height. stride_in_bytes is +// the distance from one row to the next (or 0 to mean they are packed tightly +// together). "padding" is the amount of padding to leave between each +// character (normally you want '1' for bitmaps you'll use as textures with +// bilinear filtering). +// +// Returns 0 on failure, 1 on success. + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc); +// Cleans up the packing context and frees all memory. + +#define STBTT_POINT_SIZE(x) (-(x)) + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_char_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range); +// Creates character bitmaps from the font_index'th font found in fontdata (use +// font_index=0 if you don't know what that is). It creates num_chars_in_range +// bitmaps for characters with unicode values starting at first_unicode_char_in_range +// and increasing. Data for how to render them is stored in chardata_for_range; +// pass these to stbtt_GetPackedQuad to get back renderable quads. +// +// font_size is the full height of the character from ascender to descender, +// as computed by stbtt_ScaleForPixelHeight. To use a point size as computed +// by stbtt_ScaleForMappingEmToPixels, wrap the point size in STBTT_POINT_SIZE() +// and pass that result as 'font_size': +// ..., 20 , ... // font max minus min y is 20 pixels tall +// ..., STBTT_POINT_SIZE(20), ... // 'M' is 20 pixels tall + +typedef struct +{ + float font_size; + int first_unicode_codepoint_in_range; // if non-zero, then the chars are continuous, and this is the first codepoint + int *array_of_unicode_codepoints; // if non-zero, then this is an array of unicode codepoints + int num_chars; + stbtt_packedchar *chardata_for_range; // output + unsigned char h_oversample, v_oversample; // don't set these, they're used internally +} stbtt_pack_range; + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges); +// Creates character bitmaps from multiple ranges of characters stored in +// ranges. This will usually create a better-packed bitmap than multiple +// calls to stbtt_PackFontRange. Note that you can call this multiple +// times within a single PackBegin/PackEnd. + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample); +// Oversampling a font increases the quality by allowing higher-quality subpixel +// positioning, and is especially valuable at smaller text sizes. +// +// This function sets the amount of oversampling for all following calls to +// stbtt_PackFontRange(s) or stbtt_PackFontRangesGatherRects for a given +// pack context. The default (no oversampling) is achieved by h_oversample=1 +// and v_oversample=1. The total number of pixels required is +// h_oversample*v_oversample larger than the default; for example, 2x2 +// oversampling requires 4x the storage of 1x1. For best results, render +// oversampled textures with bilinear filtering. Look at the readme in +// stb/tests/oversample for information about oversampled fonts +// +// To use with PackFontRangesGather etc., you must set it before calls +// call to PackFontRangesGatherRects. + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip); +// If skip != 0, this tells stb_truetype to skip any codepoints for which +// there is no corresponding glyph. If skip=0, which is the default, then +// codepoints without a glyph recived the font's "missing character" glyph, +// typically an empty box by convention. + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int align_to_integer); + +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects); +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +// Calling these functions in sequence is roughly equivalent to calling +// stbtt_PackFontRanges(). If you more control over the packing of multiple +// fonts, or if you want to pack custom data into a font texture, take a look +// at the source to of stbtt_PackFontRanges() and create a custom version +// using these functions, e.g. call GatherRects multiple times, +// building up a single array of rects, then call PackRects once, +// then call RenderIntoRects repeatedly. This may result in a +// better packing than calling PackFontRanges multiple times +// (or it may not). + +// this is an opaque structure that you shouldn't mess with which holds +// all the context needed from PackBegin to PackEnd. +struct stbtt_pack_context { + void *user_allocator_context; + void *pack_info; + int width; + int height; + int stride_in_bytes; + int padding; + int skip_missing; + unsigned int h_oversample, v_oversample; + unsigned char *pixels; + void *nodes; +}; + +////////////////////////////////////////////////////////////////////////////// +// +// FONT LOADING +// +// + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data); +// This function will determine the number of fonts in a font file. TrueType +// collection (.ttc) files may contain multiple fonts, while TrueType font +// (.ttf) files only contain one font. The number of fonts can be used for +// indexing with the previous function where the index is between zero and one +// less than the total fonts. If an error occurs, -1 is returned. + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index); +// Each .ttf/.ttc file may have more than one font. Each font has a sequential +// index number starting from 0. Call this function to get the font offset for +// a given index; it returns -1 if the index is out of range. A regular .ttf +// file will only define one font and it always be at offset 0, so it will +// return '0' for index 0, and -1 for all other indices. + +// The following structure is defined publicly so you can declare one on +// the stack or as a global or etc, but you should treat it as opaque. +struct stbtt_fontinfo +{ + void * userdata; + unsigned char * data; // pointer to .ttf file + int fontstart; // offset of start of font + + int numGlyphs; // number of glyphs, needed for range checking + + int loca,head,glyf,hhea,hmtx,kern,gpos,svg; // table locations as offset from start of .ttf + int index_map; // a cmap mapping for our chosen character encoding + int indexToLocFormat; // format needed to map from glyph index to glyph + + stbtt__buf cff; // cff font data + stbtt__buf charstrings; // the charstring index + stbtt__buf gsubrs; // global charstring subroutines index + stbtt__buf subrs; // private charstring subroutines index + stbtt__buf fontdicts; // array of font dicts + stbtt__buf fdselect; // map from glyph to fontdict +}; + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset); +// Given an offset into the file that defines a font, this function builds +// the necessary cached info for the rest of the system. You must allocate +// the stbtt_fontinfo yourself, and stbtt_InitFont will fill it out. You don't +// need to do anything special to free it, because the contents are pure +// value data with no additional data structures. Returns 0 on failure. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER TO GLYPH-INDEX CONVERSIOn + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint); +// If you're going to perform multiple operations on the same character +// and you want a speed-up, call this function with the character you're +// going to process, then use glyph-based functions instead of the +// codepoint-based functions. +// Returns 0 if the character codepoint is not defined in the font. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER PROPERTIES +// + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose "height" is 'pixels' tall. +// Height is measured as the distance from the highest ascender to the lowest +// descender; in other words, it's equivalent to calling stbtt_GetFontVMetrics +// and computing: +// scale = pixels / (ascent - descent) +// so if you prefer to measure height by the ascent only, use a similar calculation. + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose EM size is mapped to +// 'pixels' tall. This is probably what traditional APIs compute, but +// I'm not positive. + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap); +// ascent is the coordinate above the baseline the font extends; descent +// is the coordinate below the baseline the font extends (i.e. it is typically negative) +// lineGap is the spacing between one row's descent and the next row's ascent... +// so you should advance the vertical position by "*ascent - *descent + *lineGap" +// these are expressed in unscaled coordinates, so you must multiply by +// the scale factor for a given size + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap); +// analogous to GetFontVMetrics, but returns the "typographic" values from the OS/2 +// table (specific to MS/Windows TTF files). +// +// Returns 1 on success (table present), 0 on failure. + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1); +// the bounding box around all possible characters + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing); +// leftSideBearing is the offset from the current horizontal position to the left edge of the character +// advanceWidth is the offset from the current horizontal position to the next horizontal position +// these are expressed in unscaled coordinates + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2); +// an additional amount to add to the 'advance' value between ch1 and ch2 + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1); +// Gets the bounding box of the visible part of the glyph, in unscaled coordinates + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing); +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2); +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); +// as above, but takes one or more glyph indices for greater efficiency + +typedef struct stbtt_kerningentry +{ + int glyph1; // use stbtt_FindGlyphIndex + int glyph2; + int advance; +} stbtt_kerningentry; + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info); +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length); +// Retrieves a complete list of all of the kerning pairs provided by the font +// stbtt_GetKerningTable never writes more than table_length entries and returns how many entries it did write. +// The table will be sorted by (a.glyph1 == b.glyph1)?(a.glyph2 < b.glyph2):(a.glyph1 < b.glyph1) + +////////////////////////////////////////////////////////////////////////////// +// +// GLYPH SHAPES (you probably don't need these, but they have to go before +// the bitmaps for C declaration-order reasons) +// + +#ifndef STBTT_vmove // you can predefine these to use different values (but why?) + enum { + STBTT_vmove=1, + STBTT_vline, + STBTT_vcurve, + STBTT_vcubic + }; +#endif + +#ifndef stbtt_vertex // you can predefine this to use different values + // (we share this with other code at RAD) + #define stbtt_vertex_type short // can't use stbtt_int16 because that's not visible in the header file + typedef struct + { + stbtt_vertex_type x,y,cx,cy,cx1,cy1; + unsigned char type,padding; + } stbtt_vertex; +#endif + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index); +// returns non-zero if nothing is drawn for this glyph + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices); +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices); +// returns # of vertices and fills *vertices with the pointer to them +// these are expressed in "unscaled" coordinates +// +// The shape is a series of contours. Each one starts with +// a STBTT_moveto, then consists of a series of mixed +// STBTT_lineto and STBTT_curveto segments. A lineto +// draws a line from previous endpoint to its x,y; a curveto +// draws a quadratic bezier from previous endpoint to +// its x,y, using cx,cy as the bezier control point. + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices); +// frees the data allocated above + +STBTT_DEF unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl); +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg); +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg); +// fills svg with the character's SVG data. +// returns data size or 0 if SVG not found. + +////////////////////////////////////////////////////////////////////////////// +// +// BITMAP RENDERING +// + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata); +// frees the bitmap allocated below + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// allocates a large-enough single-channel 8bpp bitmap and renders the +// specified character/glyph at the specified scale into it, with +// antialiasing. 0 is no coverage (transparent), 255 is fully covered (opaque). +// *width & *height are filled out with the width & height of the bitmap, +// which is stored left-to-right, top-to-bottom. +// +// xoff/yoff are the offset it pixel space from the glyph origin to the top-left of the bitmap + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// the same as stbtt_GetCodepoitnBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint); +// the same as stbtt_GetCodepointBitmap, but you pass in storage for the bitmap +// in the form of 'output', with row spacing of 'out_stride' bytes. the bitmap +// is clipped to out_w/out_h bytes. Call stbtt_GetCodepointBitmapBox to get the +// width and height and positioning info for it first. + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint); +// same as stbtt_MakeCodepointBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint); +// same as stbtt_MakeCodepointBitmapSubpixel, but prefiltering +// is performed (see stbtt_PackSetOversampling) + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +// get the bbox of the bitmap centered around the glyph origin; so the +// bitmap width is ix1-ix0, height is iy1-iy0, and location to place +// the bitmap top left is (leftSideBearing*scale,iy0). +// (Note that the bitmap uses y-increases-down, but the shape uses +// y-increases-up, so CodepointBitmapBox and CodepointBox are inverted.) + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); +// same as stbtt_GetCodepointBitmapBox, but you can specify a subpixel +// shift for the character + +// the following functions are equivalent to the above functions, but operate +// on glyph indices instead of Unicode codepoints (for efficiency) +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph); +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); + + +// @TODO: don't expose this structure +typedef struct +{ + int w,h,stride; + unsigned char *pixels; +} stbtt__bitmap; + +// rasterize a shape with quadratic beziers into a bitmap +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, // 1-channel bitmap to draw into + float flatness_in_pixels, // allowable error of curve in pixels + stbtt_vertex *vertices, // array of vertices defining shape + int num_verts, // number of vertices in above array + float scale_x, float scale_y, // scale applied to input vertices + float shift_x, float shift_y, // translation applied to input vertices + int x_off, int y_off, // another translation applied to input + int invert, // if non-zero, vertically flip shape + void *userdata); // context for to STBTT_MALLOC + +////////////////////////////////////////////////////////////////////////////// +// +// Signed Distance Function (or Field) rendering + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata); +// frees the SDF bitmap allocated below + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +// These functions compute a discretized SDF field for a single character, suitable for storing +// in a single-channel texture, sampling with bilinear filtering, and testing against +// larger than some threshold to produce scalable fonts. +// info -- the font +// scale -- controls the size of the resulting SDF bitmap, same as it would be creating a regular bitmap +// glyph/codepoint -- the character to generate the SDF for +// padding -- extra "pixels" around the character which are filled with the distance to the character (not 0), +// which allows effects like bit outlines +// onedge_value -- value 0-255 to test the SDF against to reconstruct the character (i.e. the isocontour of the character) +// pixel_dist_scale -- what value the SDF should increase by when moving one SDF "pixel" away from the edge (on the 0..255 scale) +// if positive, > onedge_value is inside; if negative, < onedge_value is inside +// width,height -- output height & width of the SDF bitmap (including padding) +// xoff,yoff -- output origin of the character +// return value -- a 2D array of bytes 0..255, width*height in size +// +// pixel_dist_scale & onedge_value are a scale & bias that allows you to make +// optimal use of the limited 0..255 for your application, trading off precision +// and special effects. SDF values outside the range 0..255 are clamped to 0..255. +// +// Example: +// scale = stbtt_ScaleForPixelHeight(22) +// padding = 5 +// onedge_value = 180 +// pixel_dist_scale = 180/5.0 = 36.0 +// +// This will create an SDF bitmap in which the character is about 22 pixels +// high but the whole bitmap is about 22+5+5=32 pixels high. To produce a filled +// shape, sample the SDF at each pixel and fill the pixel if the SDF value +// is greater than or equal to 180/255. (You'll actually want to antialias, +// which is beyond the scope of this example.) Additionally, you can compute +// offset outlines (e.g. to stroke the character border inside & outside, +// or only outside). For example, to fill outside the character up to 3 SDF +// pixels, you would compare against (180-36.0*3)/255 = 72/255. The above +// choice of variables maps a range from 5 pixels outside the shape to +// 2 pixels inside the shape to 0..255; this is intended primarily for apply +// outside effects only (the interior range is needed to allow proper +// antialiasing of the font at *smaller* sizes) +// +// The function computes the SDF analytically at each SDF pixel, not by e.g. +// building a higher-res bitmap and approximating it. In theory the quality +// should be as high as possible for an SDF of this size & representation, but +// unclear if this is true in practice (perhaps building a higher-res bitmap +// and computing from that can allow drop-out prevention). +// +// The algorithm has not been optimized at all, so expect it to be slow +// if computing lots of characters or very large sizes. + + + +////////////////////////////////////////////////////////////////////////////// +// +// Finding the right font... +// +// You should really just solve this offline, keep your own tables +// of what font is what, and don't try to get it out of the .ttf file. +// That's because getting it out of the .ttf file is really hard, because +// the names in the file can appear in many possible encodings, in many +// possible languages, and e.g. if you need a case-insensitive comparison, +// the details of that depend on the encoding & language in a complex way +// (actually underspecified in truetype, but also gigantic). +// +// But you can use the provided functions in two possible ways: +// stbtt_FindMatchingFont() will use *case-sensitive* comparisons on +// unicode-encoded names to try to find the font you want; +// you can run this before calling stbtt_InitFont() +// +// stbtt_GetFontNameString() lets you get any of the various strings +// from the file yourself and do your own comparisons on them. +// You have to have called stbtt_InitFont() first. + + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags); +// returns the offset (not index) of the font that matches, or -1 if none +// if you use STBTT_MACSTYLE_DONTCARE, use a font name like "Arial Bold". +// if you use any other flag, use a font name like "Arial"; this checks +// the 'macStyle' header field; i don't know if fonts set this consistently +#define STBTT_MACSTYLE_DONTCARE 0 +#define STBTT_MACSTYLE_BOLD 1 +#define STBTT_MACSTYLE_ITALIC 2 +#define STBTT_MACSTYLE_UNDERSCORE 4 +#define STBTT_MACSTYLE_NONE 8 // <= not same as 0, this makes us check the bitfield is 0 + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2); +// returns 1/0 whether the first string interpreted as utf8 is identical to +// the second string interpreted as big-endian utf16... useful for strings from next func + +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID); +// returns the string (which may be big-endian double byte, e.g. for unicode) +// and puts the length in bytes in *length. +// +// some of the values for the IDs are below; for more see the truetype spec: +// http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6name.html +// http://www.microsoft.com/typography/otspec/name.htm + +enum { // platformID + STBTT_PLATFORM_ID_UNICODE =0, + STBTT_PLATFORM_ID_MAC =1, + STBTT_PLATFORM_ID_ISO =2, + STBTT_PLATFORM_ID_MICROSOFT =3 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_UNICODE + STBTT_UNICODE_EID_UNICODE_1_0 =0, + STBTT_UNICODE_EID_UNICODE_1_1 =1, + STBTT_UNICODE_EID_ISO_10646 =2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP=3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL=4 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MICROSOFT + STBTT_MS_EID_SYMBOL =0, + STBTT_MS_EID_UNICODE_BMP =1, + STBTT_MS_EID_SHIFTJIS =2, + STBTT_MS_EID_UNICODE_FULL =10 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MAC; same as Script Manager codes + STBTT_MAC_EID_ROMAN =0, STBTT_MAC_EID_ARABIC =4, + STBTT_MAC_EID_JAPANESE =1, STBTT_MAC_EID_HEBREW =5, + STBTT_MAC_EID_CHINESE_TRAD =2, STBTT_MAC_EID_GREEK =6, + STBTT_MAC_EID_KOREAN =3, STBTT_MAC_EID_RUSSIAN =7 +}; + +enum { // languageID for STBTT_PLATFORM_ID_MICROSOFT; same as LCID... + // problematic because there are e.g. 16 english LCIDs and 16 arabic LCIDs + STBTT_MS_LANG_ENGLISH =0x0409, STBTT_MS_LANG_ITALIAN =0x0410, + STBTT_MS_LANG_CHINESE =0x0804, STBTT_MS_LANG_JAPANESE =0x0411, + STBTT_MS_LANG_DUTCH =0x0413, STBTT_MS_LANG_KOREAN =0x0412, + STBTT_MS_LANG_FRENCH =0x040c, STBTT_MS_LANG_RUSSIAN =0x0419, + STBTT_MS_LANG_GERMAN =0x0407, STBTT_MS_LANG_SPANISH =0x0409, + STBTT_MS_LANG_HEBREW =0x040d, STBTT_MS_LANG_SWEDISH =0x041D +}; + +enum { // languageID for STBTT_PLATFORM_ID_MAC + STBTT_MAC_LANG_ENGLISH =0 , STBTT_MAC_LANG_JAPANESE =11, + STBTT_MAC_LANG_ARABIC =12, STBTT_MAC_LANG_KOREAN =23, + STBTT_MAC_LANG_DUTCH =4 , STBTT_MAC_LANG_RUSSIAN =32, + STBTT_MAC_LANG_FRENCH =1 , STBTT_MAC_LANG_SPANISH =6 , + STBTT_MAC_LANG_GERMAN =2 , STBTT_MAC_LANG_SWEDISH =5 , + STBTT_MAC_LANG_HEBREW =10, STBTT_MAC_LANG_CHINESE_SIMPLIFIED =33, + STBTT_MAC_LANG_ITALIAN =3 , STBTT_MAC_LANG_CHINESE_TRAD =19 +}; + +#ifdef __cplusplus +} +#endif + +#endif // __STB_INCLUDE_STB_TRUETYPE_H__ + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// IMPLEMENTATION +//// +//// + +#ifdef STB_TRUETYPE_IMPLEMENTATION + +#ifndef STBTT_MAX_OVERSAMPLE +#define STBTT_MAX_OVERSAMPLE 8 +#endif + +#if STBTT_MAX_OVERSAMPLE > 255 +#error "STBTT_MAX_OVERSAMPLE cannot be > 255" +#endif + +typedef int stbtt__test_oversample_pow2[(STBTT_MAX_OVERSAMPLE & (STBTT_MAX_OVERSAMPLE-1)) == 0 ? 1 : -1]; + +#ifndef STBTT_RASTERIZER_VERSION +#define STBTT_RASTERIZER_VERSION 2 +#endif + +#ifdef _MSC_VER +#define STBTT__NOTUSED(v) (void)(v) +#else +#define STBTT__NOTUSED(v) (void)sizeof(v) +#endif + +////////////////////////////////////////////////////////////////////////// +// +// stbtt__buf helpers to parse data from file +// + +static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b) +{ + if (b->cursor >= b->size) + return 0; + return b->data[b->cursor++]; +} + +static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b) +{ + if (b->cursor >= b->size) + return 0; + return b->data[b->cursor]; +} + +static void stbtt__buf_seek(stbtt__buf *b, int o) +{ + STBTT_assert(!(o > b->size || o < 0)); + b->cursor = (o > b->size || o < 0) ? b->size : o; +} + +static void stbtt__buf_skip(stbtt__buf *b, int o) +{ + stbtt__buf_seek(b, b->cursor + o); +} + +static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n) +{ + stbtt_uint32 v = 0; + int i; + STBTT_assert(n >= 1 && n <= 4); + for (i = 0; i < n; i++) + v = (v << 8) | stbtt__buf_get8(b); + return v; +} + +static stbtt__buf stbtt__new_buf(const void *p, size_t size) +{ + stbtt__buf r; + STBTT_assert(size < 0x40000000); + r.data = (stbtt_uint8*) p; + r.size = (int) size; + r.cursor = 0; + return r; +} + +#define stbtt__buf_get16(b) stbtt__buf_get((b), 2) +#define stbtt__buf_get32(b) stbtt__buf_get((b), 4) + +static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s) +{ + stbtt__buf r = stbtt__new_buf(NULL, 0); + if (o < 0 || s < 0 || o > b->size || s > b->size - o) return r; + r.data = b->data + o; + r.size = s; + return r; +} + +static stbtt__buf stbtt__cff_get_index(stbtt__buf *b) +{ + int count, start, offsize; + start = b->cursor; + count = stbtt__buf_get16(b); + if (count) { + offsize = stbtt__buf_get8(b); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(b, offsize * count); + stbtt__buf_skip(b, stbtt__buf_get(b, offsize) - 1); + } + return stbtt__buf_range(b, start, b->cursor - start); +} + +static stbtt_uint32 stbtt__cff_int(stbtt__buf *b) +{ + int b0 = stbtt__buf_get8(b); + if (b0 >= 32 && b0 <= 246) return b0 - 139; + else if (b0 >= 247 && b0 <= 250) return (b0 - 247)*256 + stbtt__buf_get8(b) + 108; + else if (b0 >= 251 && b0 <= 254) return -(b0 - 251)*256 - stbtt__buf_get8(b) - 108; + else if (b0 == 28) return stbtt__buf_get16(b); + else if (b0 == 29) return stbtt__buf_get32(b); + STBTT_assert(0); + return 0; +} + +static void stbtt__cff_skip_operand(stbtt__buf *b) { + int v, b0 = stbtt__buf_peek8(b); + STBTT_assert(b0 >= 28); + if (b0 == 30) { + stbtt__buf_skip(b, 1); + while (b->cursor < b->size) { + v = stbtt__buf_get8(b); + if ((v & 0xF) == 0xF || (v >> 4) == 0xF) + break; + } + } else { + stbtt__cff_int(b); + } +} + +static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key) +{ + stbtt__buf_seek(b, 0); + while (b->cursor < b->size) { + int start = b->cursor, end, op; + while (stbtt__buf_peek8(b) >= 28) + stbtt__cff_skip_operand(b); + end = b->cursor; + op = stbtt__buf_get8(b); + if (op == 12) op = stbtt__buf_get8(b) | 0x100; + if (op == key) return stbtt__buf_range(b, start, end-start); + } + return stbtt__buf_range(b, 0, 0); +} + +static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out) +{ + int i; + stbtt__buf operands = stbtt__dict_get(b, key); + for (i = 0; i < outcount && operands.cursor < operands.size; i++) + out[i] = stbtt__cff_int(&operands); +} + +static int stbtt__cff_index_count(stbtt__buf *b) +{ + stbtt__buf_seek(b, 0); + return stbtt__buf_get16(b); +} + +static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i) +{ + int count, offsize, start, end; + stbtt__buf_seek(&b, 0); + count = stbtt__buf_get16(&b); + offsize = stbtt__buf_get8(&b); + STBTT_assert(i >= 0 && i < count); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(&b, i*offsize); + start = stbtt__buf_get(&b, offsize); + end = stbtt__buf_get(&b, offsize); + return stbtt__buf_range(&b, 2+(count+1)*offsize+start, end - start); +} + +////////////////////////////////////////////////////////////////////////// +// +// accessors to parse data from file +// + +// on platforms that don't allow misaligned reads, if we want to allow +// truetype fonts that aren't padded to alignment, define ALLOW_UNALIGNED_TRUETYPE + +#define ttBYTE(p) (* (stbtt_uint8 *) (p)) +#define ttCHAR(p) (* (stbtt_int8 *) (p)) +#define ttFixed(p) ttLONG(p) + +static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } +static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } + +#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3)) +#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3]) + +static int stbtt__isfont(stbtt_uint8 *font) +{ + // check the version number + if (stbtt_tag4(font, '1',0,0,0)) return 1; // TrueType 1 + if (stbtt_tag(font, "typ1")) return 1; // TrueType with type 1 font -- we don't support this! + if (stbtt_tag(font, "OTTO")) return 1; // OpenType with CFF + if (stbtt_tag4(font, 0,1,0,0)) return 1; // OpenType 1.0 + if (stbtt_tag(font, "true")) return 1; // Apple specification for TrueType fonts + return 0; +} + +// @OPTIMIZE: binary search +static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag) +{ + stbtt_int32 num_tables = ttUSHORT(data+fontstart+4); + stbtt_uint32 tabledir = fontstart + 12; + stbtt_int32 i; + for (i=0; i < num_tables; ++i) { + stbtt_uint32 loc = tabledir + 16*i; + if (stbtt_tag(data+loc+0, tag)) + return ttULONG(data+loc+8); + } + return 0; +} + +static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index) +{ + // if it's just a font, there's only one valid index + if (stbtt__isfont(font_collection)) + return index == 0 ? 0 : -1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + stbtt_int32 n = ttLONG(font_collection+8); + if (index >= n) + return -1; + return ttULONG(font_collection+12+index*4); + } + } + return -1; +} + +static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection) +{ + // if it's just a font, there's only one valid font + if (stbtt__isfont(font_collection)) + return 1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + return ttLONG(font_collection+8); + } + } + return 0; +} + +static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict) +{ + stbtt_uint32 subrsoff = 0, private_loc[2] = { 0, 0 }; + stbtt__buf pdict; + stbtt__dict_get_ints(&fontdict, 18, 2, private_loc); + if (!private_loc[1] || !private_loc[0]) return stbtt__new_buf(NULL, 0); + pdict = stbtt__buf_range(&cff, private_loc[1], private_loc[0]); + stbtt__dict_get_ints(&pdict, 19, 1, &subrsoff); + if (!subrsoff) return stbtt__new_buf(NULL, 0); + stbtt__buf_seek(&cff, private_loc[1]+subrsoff); + return stbtt__cff_get_index(&cff); +} + +// since most people won't use this, find this table the first time it's needed +static int stbtt__get_svg(stbtt_fontinfo *info) +{ + stbtt_uint32 t; + if (info->svg < 0) { + t = stbtt__find_table(info->data, info->fontstart, "SVG "); + if (t) { + stbtt_uint32 offset = ttULONG(info->data + t + 2); + info->svg = t + offset; + } else { + info->svg = 0; + } + } + return info->svg; +} + +static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart) +{ + stbtt_uint32 cmap, t; + stbtt_int32 i,numTables; + + info->data = data; + info->fontstart = fontstart; + info->cff = stbtt__new_buf(NULL, 0); + + cmap = stbtt__find_table(data, fontstart, "cmap"); // required + info->loca = stbtt__find_table(data, fontstart, "loca"); // required + info->head = stbtt__find_table(data, fontstart, "head"); // required + info->glyf = stbtt__find_table(data, fontstart, "glyf"); // required + info->hhea = stbtt__find_table(data, fontstart, "hhea"); // required + info->hmtx = stbtt__find_table(data, fontstart, "hmtx"); // required + info->kern = stbtt__find_table(data, fontstart, "kern"); // not required + info->gpos = stbtt__find_table(data, fontstart, "GPOS"); // not required + + if (!cmap || !info->head || !info->hhea || !info->hmtx) + return 0; + if (info->glyf) { + // required for truetype + if (!info->loca) return 0; + } else { + // initialization for CFF / Type2 fonts (OTF) + stbtt__buf b, topdict, topdictidx; + stbtt_uint32 cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + stbtt_uint32 cff; + + cff = stbtt__find_table(data, fontstart, "CFF "); + if (!cff) return 0; + + info->fontdicts = stbtt__new_buf(NULL, 0); + info->fdselect = stbtt__new_buf(NULL, 0); + + // @TODO this should use size from table (not 512MB) + info->cff = stbtt__new_buf(data+cff, 512*1024*1024); + b = info->cff; + + // read the header + stbtt__buf_skip(&b, 2); + stbtt__buf_seek(&b, stbtt__buf_get8(&b)); // hdrsize + + // @TODO the name INDEX could list multiple fonts, + // but we just use the first one. + stbtt__cff_get_index(&b); // name INDEX + topdictidx = stbtt__cff_get_index(&b); + topdict = stbtt__cff_index_get(topdictidx, 0); + stbtt__cff_get_index(&b); // string INDEX + info->gsubrs = stbtt__cff_get_index(&b); + + stbtt__dict_get_ints(&topdict, 17, 1, &charstrings); + stbtt__dict_get_ints(&topdict, 0x100 | 6, 1, &cstype); + stbtt__dict_get_ints(&topdict, 0x100 | 36, 1, &fdarrayoff); + stbtt__dict_get_ints(&topdict, 0x100 | 37, 1, &fdselectoff); + info->subrs = stbtt__get_subrs(b, topdict); + + // we only support Type 2 charstrings + if (cstype != 2) return 0; + if (charstrings == 0) return 0; + + if (fdarrayoff) { + // looks like a CID font + if (!fdselectoff) return 0; + stbtt__buf_seek(&b, fdarrayoff); + info->fontdicts = stbtt__cff_get_index(&b); + info->fdselect = stbtt__buf_range(&b, fdselectoff, b.size-fdselectoff); + } + + stbtt__buf_seek(&b, charstrings); + info->charstrings = stbtt__cff_get_index(&b); + } + + t = stbtt__find_table(data, fontstart, "maxp"); + if (t) + info->numGlyphs = ttUSHORT(data+t+4); + else + info->numGlyphs = 0xffff; + + info->svg = -1; + + // find a cmap encoding table we understand *now* to avoid searching + // later. (todo: could make this installable) + // the same regardless of glyph. + numTables = ttUSHORT(data + cmap + 2); + info->index_map = 0; + for (i=0; i < numTables; ++i) { + stbtt_uint32 encoding_record = cmap + 4 + 8 * i; + // find an encoding we understand: + switch(ttUSHORT(data+encoding_record)) { + case STBTT_PLATFORM_ID_MICROSOFT: + switch (ttUSHORT(data+encoding_record+2)) { + case STBTT_MS_EID_UNICODE_BMP: + case STBTT_MS_EID_UNICODE_FULL: + // MS/Unicode + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + break; + case STBTT_PLATFORM_ID_UNICODE: + // Mac/iOS has these + // all the encodingIDs are unicode, so we don't bother to check it + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + } + if (info->index_map == 0) + return 0; + + info->indexToLocFormat = ttUSHORT(data+info->head + 50); + return 1; +} + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint) +{ + stbtt_uint8 *data = info->data; + stbtt_uint32 index_map = info->index_map; + + stbtt_uint16 format = ttUSHORT(data + index_map + 0); + if (format == 0) { // apple byte encoding + stbtt_int32 bytes = ttUSHORT(data + index_map + 2); + if (unicode_codepoint < bytes-6) + return ttBYTE(data + index_map + 6 + unicode_codepoint); + return 0; + } else if (format == 6) { + stbtt_uint32 first = ttUSHORT(data + index_map + 6); + stbtt_uint32 count = ttUSHORT(data + index_map + 8); + if ((stbtt_uint32) unicode_codepoint >= first && (stbtt_uint32) unicode_codepoint < first+count) + return ttUSHORT(data + index_map + 10 + (unicode_codepoint - first)*2); + return 0; + } else if (format == 2) { + STBTT_assert(0); // @TODO: high-byte mapping for japanese/chinese/korean + return 0; + } else if (format == 4) { // standard mapping for windows fonts: binary search collection of ranges + stbtt_uint16 segcount = ttUSHORT(data+index_map+6) >> 1; + stbtt_uint16 searchRange = ttUSHORT(data+index_map+8) >> 1; + stbtt_uint16 entrySelector = ttUSHORT(data+index_map+10); + stbtt_uint16 rangeShift = ttUSHORT(data+index_map+12) >> 1; + + // do a binary search of the segments + stbtt_uint32 endCount = index_map + 14; + stbtt_uint32 search = endCount; + + if (unicode_codepoint > 0xffff) + return 0; + + // they lie from endCount .. endCount + segCount + // but searchRange is the nearest power of two, so... + if (unicode_codepoint >= ttUSHORT(data + search + rangeShift*2)) + search += rangeShift*2; + + // now decrement to bias correctly to find smallest + search -= 2; + while (entrySelector) { + stbtt_uint16 end; + searchRange >>= 1; + end = ttUSHORT(data + search + searchRange*2); + if (unicode_codepoint > end) + search += searchRange*2; + --entrySelector; + } + search += 2; + + { + stbtt_uint16 offset, start, last; + stbtt_uint16 item = (stbtt_uint16) ((search - endCount) >> 1); + + start = ttUSHORT(data + index_map + 14 + segcount*2 + 2 + 2*item); + last = ttUSHORT(data + endCount + 2*item); + if (unicode_codepoint < start || unicode_codepoint > last) + return 0; + + offset = ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item); + if (offset == 0) + return (stbtt_uint16) (unicode_codepoint + ttSHORT(data + index_map + 14 + segcount*4 + 2 + 2*item)); + + return ttUSHORT(data + offset + (unicode_codepoint-start)*2 + index_map + 14 + segcount*6 + 2 + 2*item); + } + } else if (format == 12 || format == 13) { + stbtt_uint32 ngroups = ttULONG(data+index_map+12); + stbtt_int32 low,high; + low = 0; high = (stbtt_int32)ngroups; + // Binary search the right group. + while (low < high) { + stbtt_int32 mid = low + ((high-low) >> 1); // rounds down, so low <= mid < high + stbtt_uint32 start_char = ttULONG(data+index_map+16+mid*12); + stbtt_uint32 end_char = ttULONG(data+index_map+16+mid*12+4); + if ((stbtt_uint32) unicode_codepoint < start_char) + high = mid; + else if ((stbtt_uint32) unicode_codepoint > end_char) + low = mid+1; + else { + stbtt_uint32 start_glyph = ttULONG(data+index_map+16+mid*12+8); + if (format == 12) + return start_glyph + unicode_codepoint-start_char; + else // format == 13 + return start_glyph; + } + } + return 0; // not found + } + // @TODO + STBTT_assert(0); + return 0; +} + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices) +{ + return stbtt_GetGlyphShape(info, stbtt_FindGlyphIndex(info, unicode_codepoint), vertices); +} + +static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy) +{ + v->type = type; + v->x = (stbtt_int16) x; + v->y = (stbtt_int16) y; + v->cx = (stbtt_int16) cx; + v->cy = (stbtt_int16) cy; +} + +static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index) +{ + int g1,g2; + + STBTT_assert(!info->cff.size); + + if (glyph_index >= info->numGlyphs) return -1; // glyph index out of range + if (info->indexToLocFormat >= 2) return -1; // unknown index->glyph map format + + if (info->indexToLocFormat == 0) { + g1 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2) * 2; + g2 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2 + 2) * 2; + } else { + g1 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4); + g2 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4 + 4); + } + + return g1==g2 ? -1 : g1; // if length is 0, return -1 +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); + +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + if (info->cff.size) { + stbtt__GetGlyphInfoT2(info, glyph_index, x0, y0, x1, y1); + } else { + int g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 0; + + if (x0) *x0 = ttSHORT(info->data + g + 2); + if (y0) *y0 = ttSHORT(info->data + g + 4); + if (x1) *x1 = ttSHORT(info->data + g + 6); + if (y1) *y1 = ttSHORT(info->data + g + 8); + } + return 1; +} + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1) +{ + return stbtt_GetGlyphBox(info, stbtt_FindGlyphIndex(info,codepoint), x0,y0,x1,y1); +} + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt_int16 numberOfContours; + int g; + if (info->cff.size) + return stbtt__GetGlyphInfoT2(info, glyph_index, NULL, NULL, NULL, NULL) == 0; + g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 1; + numberOfContours = ttSHORT(info->data + g); + return numberOfContours == 0; +} + +static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off, + stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy) +{ + if (start_off) { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+scx)>>1, (cy+scy)>>1, cx,cy); + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx,sy,scx,scy); + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve,sx,sy,cx,cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline,sx,sy,0,0); + } + return num_vertices; +} + +static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + stbtt_int16 numberOfContours; + stbtt_uint8 *endPtsOfContours; + stbtt_uint8 *data = info->data; + stbtt_vertex *vertices=0; + int num_vertices=0; + int g = stbtt__GetGlyfOffset(info, glyph_index); + + *pvertices = NULL; + + if (g < 0) return 0; + + numberOfContours = ttSHORT(data + g); + + if (numberOfContours > 0) { + stbtt_uint8 flags=0,flagcount; + stbtt_int32 ins, i,j=0,m,n, next_move, was_off=0, off, start_off=0; + stbtt_int32 x,y,cx,cy,sx,sy, scx,scy; + stbtt_uint8 *points; + endPtsOfContours = (data + g + 10); + ins = ttUSHORT(data + g + 10 + numberOfContours * 2); + points = data + g + 10 + numberOfContours * 2 + 2 + ins; + + n = 1+ttUSHORT(endPtsOfContours + numberOfContours*2-2); + + m = n + 2*numberOfContours; // a loose bound on how many vertices we might need + vertices = (stbtt_vertex *) STBTT_malloc(m * sizeof(vertices[0]), info->userdata); + if (vertices == 0) + return 0; + + next_move = 0; + flagcount=0; + + // in first pass, we load uninterpreted data into the allocated array + // above, shifted to the end of the array so we won't overwrite it when + // we create our final data starting from the front + + off = m - n; // starting offset for uninterpreted data, regardless of how m ends up being calculated + + // first load flags + + for (i=0; i < n; ++i) { + if (flagcount == 0) { + flags = *points++; + if (flags & 8) + flagcount = *points++; + } else + --flagcount; + vertices[off+i].type = flags; + } + + // now load x coordinates + x=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 2) { + stbtt_int16 dx = *points++; + x += (flags & 16) ? dx : -dx; // ??? + } else { + if (!(flags & 16)) { + x = x + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].x = (stbtt_int16) x; + } + + // now load y coordinates + y=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 4) { + stbtt_int16 dy = *points++; + y += (flags & 32) ? dy : -dy; // ??? + } else { + if (!(flags & 32)) { + y = y + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].y = (stbtt_int16) y; + } + + // now convert them to our format + num_vertices=0; + sx = sy = cx = cy = scx = scy = 0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + x = (stbtt_int16) vertices[off+i].x; + y = (stbtt_int16) vertices[off+i].y; + + if (next_move == i) { + if (i != 0) + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + + // now start the new one + start_off = !(flags & 1); + if (start_off) { + // if we start off with an off-curve point, then when we need to find a point on the curve + // where we can start, and we need to save some state for when we wraparound. + scx = x; + scy = y; + if (!(vertices[off+i+1].type & 1)) { + // next point is also a curve point, so interpolate an on-point curve + sx = (x + (stbtt_int32) vertices[off+i+1].x) >> 1; + sy = (y + (stbtt_int32) vertices[off+i+1].y) >> 1; + } else { + // otherwise just use the next point as our start point + sx = (stbtt_int32) vertices[off+i+1].x; + sy = (stbtt_int32) vertices[off+i+1].y; + ++i; // we're using point i+1 as the starting point, so skip it + } + } else { + sx = x; + sy = y; + } + stbtt_setvertex(&vertices[num_vertices++], STBTT_vmove,sx,sy,0,0); + was_off = 0; + next_move = 1 + ttUSHORT(endPtsOfContours+j*2); + ++j; + } else { + if (!(flags & 1)) { // if it's a curve + if (was_off) // two off-curve control points in a row means interpolate an on-curve midpoint + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+x)>>1, (cy+y)>>1, cx, cy); + cx = x; + cy = y; + was_off = 1; + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, x,y, cx, cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline, x,y,0,0); + was_off = 0; + } + } + } + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + } else if (numberOfContours < 0) { + // Compound shapes. + int more = 1; + stbtt_uint8 *comp = data + g + 10; + num_vertices = 0; + vertices = 0; + while (more) { + stbtt_uint16 flags, gidx; + int comp_num_verts = 0, i; + stbtt_vertex *comp_verts = 0, *tmp = 0; + float mtx[6] = {1,0,0,1,0,0}, m, n; + + flags = ttSHORT(comp); comp+=2; + gidx = ttSHORT(comp); comp+=2; + + if (flags & 2) { // XY values + if (flags & 1) { // shorts + mtx[4] = ttSHORT(comp); comp+=2; + mtx[5] = ttSHORT(comp); comp+=2; + } else { + mtx[4] = ttCHAR(comp); comp+=1; + mtx[5] = ttCHAR(comp); comp+=1; + } + } + else { + // @TODO handle matching point + STBTT_assert(0); + } + if (flags & (1<<3)) { // WE_HAVE_A_SCALE + mtx[0] = mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + } else if (flags & (1<<6)) { // WE_HAVE_AN_X_AND_YSCALE + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } else if (flags & (1<<7)) { // WE_HAVE_A_TWO_BY_TWO + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[2] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } + + // Find transformation scales. + m = (float) STBTT_sqrt(mtx[0]*mtx[0] + mtx[1]*mtx[1]); + n = (float) STBTT_sqrt(mtx[2]*mtx[2] + mtx[3]*mtx[3]); + + // Get indexed glyph. + comp_num_verts = stbtt_GetGlyphShape(info, gidx, &comp_verts); + if (comp_num_verts > 0) { + // Transform vertices. + for (i = 0; i < comp_num_verts; ++i) { + stbtt_vertex* v = &comp_verts[i]; + stbtt_vertex_type x,y; + x=v->x; y=v->y; + v->x = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->y = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + x=v->cx; y=v->cy; + v->cx = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->cy = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + } + // Append vertices. + tmp = (stbtt_vertex*)STBTT_malloc((num_vertices+comp_num_verts)*sizeof(stbtt_vertex), info->userdata); + if (!tmp) { + if (vertices) STBTT_free(vertices, info->userdata); + if (comp_verts) STBTT_free(comp_verts, info->userdata); + return 0; + } + if (num_vertices > 0 && vertices) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); + STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex)); + if (vertices) STBTT_free(vertices, info->userdata); + vertices = tmp; + STBTT_free(comp_verts, info->userdata); + num_vertices += comp_num_verts; + } + // More components ? + more = flags & (1<<5); + } + } else { + // numberOfCounters == 0, do nothing + } + + *pvertices = vertices; + return num_vertices; +} + +typedef struct +{ + int bounds; + int started; + float first_x, first_y; + float x, y; + stbtt_int32 min_x, max_x, min_y, max_y; + + stbtt_vertex *pvertices; + int num_vertices; +} stbtt__csctx; + +#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0} + +static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y) +{ + if (x > c->max_x || !c->started) c->max_x = x; + if (y > c->max_y || !c->started) c->max_y = y; + if (x < c->min_x || !c->started) c->min_x = x; + if (y < c->min_y || !c->started) c->min_y = y; + c->started = 1; +} + +static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1) +{ + if (c->bounds) { + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + } else { + stbtt_setvertex(&c->pvertices[c->num_vertices], type, x, y, cx, cy); + c->pvertices[c->num_vertices].cx1 = (stbtt_int16) cx1; + c->pvertices[c->num_vertices].cy1 = (stbtt_int16) cy1; + } + c->num_vertices++; +} + +static void stbtt__csctx_close_shape(stbtt__csctx *ctx) +{ + if (ctx->first_x != ctx->x || ctx->first_y != ctx->y) + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->first_x, (int)ctx->first_y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy) +{ + stbtt__csctx_close_shape(ctx); + ctx->first_x = ctx->x = ctx->x + dx; + ctx->first_y = ctx->y = ctx->y + dy; + stbtt__csctx_v(ctx, STBTT_vmove, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy) +{ + ctx->x += dx; + ctx->y += dy; + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3) +{ + float cx1 = ctx->x + dx1; + float cy1 = ctx->y + dy1; + float cx2 = cx1 + dx2; + float cy2 = cy1 + dy2; + ctx->x = cx2 + dx3; + ctx->y = cy2 + dy3; + stbtt__csctx_v(ctx, STBTT_vcubic, (int)ctx->x, (int)ctx->y, (int)cx1, (int)cy1, (int)cx2, (int)cy2); +} + +static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n) +{ + int count = stbtt__cff_index_count(&idx); + int bias = 107; + if (count >= 33900) + bias = 32768; + else if (count >= 1240) + bias = 1131; + n += bias; + if (n < 0 || n >= count) + return stbtt__new_buf(NULL, 0); + return stbtt__cff_index_get(idx, n); +} + +static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt__buf fdselect = info->fdselect; + int nranges, start, end, v, fmt, fdselector = -1, i; + + stbtt__buf_seek(&fdselect, 0); + fmt = stbtt__buf_get8(&fdselect); + if (fmt == 0) { + // untested + stbtt__buf_skip(&fdselect, glyph_index); + fdselector = stbtt__buf_get8(&fdselect); + } else if (fmt == 3) { + nranges = stbtt__buf_get16(&fdselect); + start = stbtt__buf_get16(&fdselect); + for (i = 0; i < nranges; i++) { + v = stbtt__buf_get8(&fdselect); + end = stbtt__buf_get16(&fdselect); + if (glyph_index >= start && glyph_index < end) { + fdselector = v; + break; + } + start = end; + } + } + if (fdselector == -1) stbtt__new_buf(NULL, 0); + return stbtt__get_subrs(info->cff, stbtt__cff_index_get(info->fontdicts, fdselector)); +} + +static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c) +{ + int in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0; + int has_subrs = 0, clear_stack; + float s[48]; + stbtt__buf subr_stack[10], subrs = info->subrs, b; + float f; + +#define STBTT__CSERR(s) (0) + + // this currently ignores the initial width value, which isn't needed if we have hmtx + b = stbtt__cff_index_get(info->charstrings, glyph_index); + while (b.cursor < b.size) { + i = 0; + clear_stack = 1; + b0 = stbtt__buf_get8(&b); + switch (b0) { + // @TODO implement hinting + case 0x13: // hintmask + case 0x14: // cntrmask + if (in_header) + maskbits += (sp / 2); // implicit "vstem" + in_header = 0; + stbtt__buf_skip(&b, (maskbits + 7) / 8); + break; + + case 0x01: // hstem + case 0x03: // vstem + case 0x12: // hstemhm + case 0x17: // vstemhm + maskbits += (sp / 2); + break; + + case 0x15: // rmoveto + in_header = 0; + if (sp < 2) return STBTT__CSERR("rmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-2], s[sp-1]); + break; + case 0x04: // vmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("vmoveto stack"); + stbtt__csctx_rmove_to(c, 0, s[sp-1]); + break; + case 0x16: // hmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("hmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-1], 0); + break; + + case 0x05: // rlineto + if (sp < 2) return STBTT__CSERR("rlineto stack"); + for (; i + 1 < sp; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + // hlineto/vlineto and vhcurveto/hvcurveto alternate horizontal and vertical + // starting from a different place. + + case 0x07: // vlineto + if (sp < 1) return STBTT__CSERR("vlineto stack"); + goto vlineto; + case 0x06: // hlineto + if (sp < 1) return STBTT__CSERR("hlineto stack"); + for (;;) { + if (i >= sp) break; + stbtt__csctx_rline_to(c, s[i], 0); + i++; + vlineto: + if (i >= sp) break; + stbtt__csctx_rline_to(c, 0, s[i]); + i++; + } + break; + + case 0x1F: // hvcurveto + if (sp < 4) return STBTT__CSERR("hvcurveto stack"); + goto hvcurveto; + case 0x1E: // vhcurveto + if (sp < 4) return STBTT__CSERR("vhcurveto stack"); + for (;;) { + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, 0, s[i], s[i+1], s[i+2], s[i+3], (sp - i == 5) ? s[i + 4] : 0.0f); + i += 4; + hvcurveto: + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, s[i], 0, s[i+1], s[i+2], (sp - i == 5) ? s[i+4] : 0.0f, s[i+3]); + i += 4; + } + break; + + case 0x08: // rrcurveto + if (sp < 6) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x18: // rcurveline + if (sp < 8) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp - 2; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + if (i + 1 >= sp) return STBTT__CSERR("rcurveline stack"); + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + case 0x19: // rlinecurve + if (sp < 8) return STBTT__CSERR("rlinecurve stack"); + for (; i + 1 < sp - 6; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + if (i + 5 >= sp) return STBTT__CSERR("rlinecurve stack"); + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x1A: // vvcurveto + case 0x1B: // hhcurveto + if (sp < 4) return STBTT__CSERR("(vv|hh)curveto stack"); + f = 0.0; + if (sp & 1) { f = s[i]; i++; } + for (; i + 3 < sp; i += 4) { + if (b0 == 0x1B) + stbtt__csctx_rccurve_to(c, s[i], f, s[i+1], s[i+2], s[i+3], 0.0); + else + stbtt__csctx_rccurve_to(c, f, s[i], s[i+1], s[i+2], 0.0, s[i+3]); + f = 0.0; + } + break; + + case 0x0A: // callsubr + if (!has_subrs) { + if (info->fdselect.size) + subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); + has_subrs = 1; + } + // FALLTHROUGH + case 0x1D: // callgsubr + if (sp < 1) return STBTT__CSERR("call(g|)subr stack"); + v = (int) s[--sp]; + if (subr_stack_height >= 10) return STBTT__CSERR("recursion limit"); + subr_stack[subr_stack_height++] = b; + b = stbtt__get_subr(b0 == 0x0A ? subrs : info->gsubrs, v); + if (b.size == 0) return STBTT__CSERR("subr not found"); + b.cursor = 0; + clear_stack = 0; + break; + + case 0x0B: // return + if (subr_stack_height <= 0) return STBTT__CSERR("return outside subr"); + b = subr_stack[--subr_stack_height]; + clear_stack = 0; + break; + + case 0x0E: // endchar + stbtt__csctx_close_shape(c); + return 1; + + case 0x0C: { // two-byte escape + float dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6; + float dx, dy; + int b1 = stbtt__buf_get8(&b); + switch (b1) { + // @TODO These "flex" implementations ignore the flex-depth and resolution, + // and always draw beziers. + case 0x22: // hflex + if (sp < 7) return STBTT__CSERR("hflex stack"); + dx1 = s[0]; + dx2 = s[1]; + dy2 = s[2]; + dx3 = s[3]; + dx4 = s[4]; + dx5 = s[5]; + dx6 = s[6]; + stbtt__csctx_rccurve_to(c, dx1, 0, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, -dy2, dx6, 0); + break; + + case 0x23: // flex + if (sp < 13) return STBTT__CSERR("flex stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = s[10]; + dy6 = s[11]; + //fd is s[12] + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + case 0x24: // hflex1 + if (sp < 9) return STBTT__CSERR("hflex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dx4 = s[5]; + dx5 = s[6]; + dy5 = s[7]; + dx6 = s[8]; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, dy5, dx6, -(dy1+dy2+dy5)); + break; + + case 0x25: // flex1 + if (sp < 11) return STBTT__CSERR("flex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = dy6 = s[10]; + dx = dx1+dx2+dx3+dx4+dx5; + dy = dy1+dy2+dy3+dy4+dy5; + if (STBTT_fabs(dx) > STBTT_fabs(dy)) + dy6 = -dy; + else + dx6 = -dx; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + default: + return STBTT__CSERR("unimplemented"); + } + } break; + + default: + if (b0 != 255 && b0 != 28 && b0 < 32) + return STBTT__CSERR("reserved operator"); + + // push immediate + if (b0 == 255) { + f = (float)(stbtt_int32)stbtt__buf_get32(&b) / 0x10000; + } else { + stbtt__buf_skip(&b, -1); + f = (float)(stbtt_int16)stbtt__cff_int(&b); + } + if (sp >= 48) return STBTT__CSERR("push stack overflow"); + s[sp++] = f; + clear_stack = 0; + break; + } + if (clear_stack) sp = 0; + } + return STBTT__CSERR("no endchar"); + +#undef STBTT__CSERR +} + +static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + // runs the charstring twice, once to count and once to output (to avoid realloc) + stbtt__csctx count_ctx = STBTT__CSCTX_INIT(1); + stbtt__csctx output_ctx = STBTT__CSCTX_INIT(0); + if (stbtt__run_charstring(info, glyph_index, &count_ctx)) { + *pvertices = (stbtt_vertex*)STBTT_malloc(count_ctx.num_vertices*sizeof(stbtt_vertex), info->userdata); + output_ctx.pvertices = *pvertices; + if (stbtt__run_charstring(info, glyph_index, &output_ctx)) { + STBTT_assert(output_ctx.num_vertices == count_ctx.num_vertices); + return output_ctx.num_vertices; + } + } + *pvertices = NULL; + return 0; +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + stbtt__csctx c = STBTT__CSCTX_INIT(1); + int r = stbtt__run_charstring(info, glyph_index, &c); + if (x0) *x0 = r ? c.min_x : 0; + if (y0) *y0 = r ? c.min_y : 0; + if (x1) *x1 = r ? c.max_x : 0; + if (y1) *y1 = r ? c.max_y : 0; + return r ? c.num_vertices : 0; +} + +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + if (!info->cff.size) + return stbtt__GetGlyphShapeTT(info, glyph_index, pvertices); + else + return stbtt__GetGlyphShapeT2(info, glyph_index, pvertices); +} + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing) +{ + stbtt_uint16 numOfLongHorMetrics = ttUSHORT(info->data+info->hhea + 34); + if (glyph_index < numOfLongHorMetrics) { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*glyph_index); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*glyph_index + 2); + } else { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*(numOfLongHorMetrics-1)); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics + 2*(glyph_index - numOfLongHorMetrics)); + } +} + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info) +{ + stbtt_uint8 *data = info->data + info->kern; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + return ttUSHORT(data+10); +} + +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length) +{ + stbtt_uint8 *data = info->data + info->kern; + int k, length; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + length = ttUSHORT(data+10); + if (table_length < length) + length = table_length; + + for (k = 0; k < length; k++) + { + table[k].glyph1 = ttUSHORT(data+18+(k*6)); + table[k].glyph2 = ttUSHORT(data+20+(k*6)); + table[k].advance = ttSHORT(data+22+(k*6)); + } + + return length; +} + +static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint8 *data = info->data + info->kern; + stbtt_uint32 needle, straw; + int l, r, m; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + l = 0; + r = ttUSHORT(data+10) - 1; + needle = glyph1 << 16 | glyph2; + while (l <= r) { + m = (l + r) >> 1; + straw = ttULONG(data+18+(m*6)); // note: unaligned read + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else + return ttSHORT(data+22+(m*6)); + } + return 0; +} + +static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) +{ + stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); + switch (coverageFormat) { + case 1: { + stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); + + // Binary search. + stbtt_int32 l=0, r=glyphCount-1, m; + int straw, needle=glyph; + while (l <= r) { + stbtt_uint8 *glyphArray = coverageTable + 4; + stbtt_uint16 glyphID; + m = (l + r) >> 1; + glyphID = ttUSHORT(glyphArray + 2 * m); + straw = glyphID; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + return m; + } + } + break; + } + + case 2: { + stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); + stbtt_uint8 *rangeArray = coverageTable + 4; + + // Binary search. + stbtt_int32 l=0, r=rangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *rangeRecord; + m = (l + r) >> 1; + rangeRecord = rangeArray + 6 * m; + strawStart = ttUSHORT(rangeRecord); + strawEnd = ttUSHORT(rangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else { + stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); + return startCoverageIndex + glyph - strawStart; + } + } + break; + } + + default: return -1; // unsupported + } + + return -1; +} + +static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph) +{ + stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); + switch (classDefFormat) + { + case 1: { + stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); + stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); + stbtt_uint8 *classDef1ValueArray = classDefTable + 6; + + if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) + return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); + break; + } + + case 2: { + stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); + stbtt_uint8 *classRangeRecords = classDefTable + 4; + + // Binary search. + stbtt_int32 l=0, r=classRangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *classRangeRecord; + m = (l + r) >> 1; + classRangeRecord = classRangeRecords + 6 * m; + strawStart = ttUSHORT(classRangeRecord); + strawEnd = ttUSHORT(classRangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else + return (stbtt_int32)ttUSHORT(classRangeRecord + 4); + } + break; + } + + default: + return -1; // Unsupported definition type, return an error. + } + + // "All glyphs not assigned to a class fall into class 0". (OpenType spec) + return 0; +} + +// Define to STBTT_assert(x) if you want to break on unimplemented formats. +#define STBTT_GPOS_TODO_assert(x) + +static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint16 lookupListOffset; + stbtt_uint8 *lookupList; + stbtt_uint16 lookupCount; + stbtt_uint8 *data; + stbtt_int32 i, sti; + + if (!info->gpos) return 0; + + data = info->data + info->gpos; + + if (ttUSHORT(data+0) != 1) return 0; // Major version 1 + if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 + + lookupListOffset = ttUSHORT(data+8); + lookupList = data + lookupListOffset; + lookupCount = ttUSHORT(lookupList); + + for (i=0; i= pairSetCount) return 0; + + needle=glyph2; + r=pairValueCount-1; + l=0; + + // Binary search. + while (l <= r) { + stbtt_uint16 secondGlyph; + stbtt_uint8 *pairValue; + m = (l + r) >> 1; + pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; + secondGlyph = ttUSHORT(pairValue); + straw = secondGlyph; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + stbtt_int16 xAdvance = ttSHORT(pairValue + 2); + return xAdvance; + } + } + } else + return 0; + break; + } + + case 2: { + stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); + stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); + if (valueFormat1 == 4 && valueFormat2 == 0) { // Support more formats? + stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); + stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); + int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); + int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); + + stbtt_uint16 class1Count = ttUSHORT(table + 12); + stbtt_uint16 class2Count = ttUSHORT(table + 14); + stbtt_uint8 *class1Records, *class2Records; + stbtt_int16 xAdvance; + + if (glyph1class < 0 || glyph1class >= class1Count) return 0; // malformed + if (glyph2class < 0 || glyph2class >= class2Count) return 0; // malformed + + class1Records = table + 16; + class2Records = class1Records + 2 * (glyph1class * class2Count); + xAdvance = ttSHORT(class2Records + 2 * glyph2class); + return xAdvance; + } else + return 0; + break; + } + + default: + return 0; // Unsupported position format + } + } + } + + return 0; +} + +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2) +{ + int xAdvance = 0; + + if (info->gpos) + xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2); + else if (info->kern) + xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2); + + return xAdvance; +} + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2) +{ + if (!info->kern && !info->gpos) // if no kerning table, don't waste time looking up both codepoint->glyphs + return 0; + return stbtt_GetGlyphKernAdvance(info, stbtt_FindGlyphIndex(info,ch1), stbtt_FindGlyphIndex(info,ch2)); +} + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing) +{ + stbtt_GetGlyphHMetrics(info, stbtt_FindGlyphIndex(info,codepoint), advanceWidth, leftSideBearing); +} + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap) +{ + if (ascent ) *ascent = ttSHORT(info->data+info->hhea + 4); + if (descent) *descent = ttSHORT(info->data+info->hhea + 6); + if (lineGap) *lineGap = ttSHORT(info->data+info->hhea + 8); +} + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap) +{ + int tab = stbtt__find_table(info->data, info->fontstart, "OS/2"); + if (!tab) + return 0; + if (typoAscent ) *typoAscent = ttSHORT(info->data+tab + 68); + if (typoDescent) *typoDescent = ttSHORT(info->data+tab + 70); + if (typoLineGap) *typoLineGap = ttSHORT(info->data+tab + 72); + return 1; +} + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1) +{ + *x0 = ttSHORT(info->data + info->head + 36); + *y0 = ttSHORT(info->data + info->head + 38); + *x1 = ttSHORT(info->data + info->head + 40); + *y1 = ttSHORT(info->data + info->head + 42); +} + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height) +{ + int fheight = ttSHORT(info->data + info->hhea + 4) - ttSHORT(info->data + info->hhea + 6); + return (float) height / fheight; +} + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels) +{ + int unitsPerEm = ttUSHORT(info->data + info->head + 18); + return pixels / unitsPerEm; +} + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v) +{ + STBTT_free(v, info->userdata); +} + +STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl) +{ + int i; + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc_list = data + stbtt__get_svg((stbtt_fontinfo *) info); + + int numEntries = ttUSHORT(svg_doc_list); + stbtt_uint8 *svg_docs = svg_doc_list + 2; + + for(i=0; i= ttUSHORT(svg_doc)) && (gl <= ttUSHORT(svg_doc + 2))) + return svg_doc; + } + return 0; +} + +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg) +{ + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc; + + if (info->svg == 0) + return 0; + + svg_doc = stbtt_FindSVGDoc(info, gl); + if (svg_doc != NULL) { + *svg = (char *) data + info->svg + ttULONG(svg_doc + 4); + return ttULONG(svg_doc + 8); + } else { + return 0; + } +} + +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg) +{ + return stbtt_GetGlyphSVG(info, stbtt_FindGlyphIndex(info, unicode_codepoint), svg); +} + +////////////////////////////////////////////////////////////////////////////// +// +// antialiasing software rasterizer +// + +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + int x0=0,y0=0,x1,y1; // =0 suppresses compiler warning + if (!stbtt_GetGlyphBox(font, glyph, &x0,&y0,&x1,&y1)) { + // e.g. space character + if (ix0) *ix0 = 0; + if (iy0) *iy0 = 0; + if (ix1) *ix1 = 0; + if (iy1) *iy1 = 0; + } else { + // move to integral bboxes (treating pixels as little squares, what pixels get touched)? + if (ix0) *ix0 = STBTT_ifloor( x0 * scale_x + shift_x); + if (iy0) *iy0 = STBTT_ifloor(-y1 * scale_y + shift_y); + if (ix1) *ix1 = STBTT_iceil ( x1 * scale_x + shift_x); + if (iy1) *iy1 = STBTT_iceil (-y0 * scale_y + shift_y); + } +} + +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y,0.0f,0.0f, ix0, iy0, ix1, iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font,codepoint), scale_x, scale_y,shift_x,shift_y, ix0,iy0,ix1,iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y,0.0f,0.0f, ix0,iy0,ix1,iy1); +} + +////////////////////////////////////////////////////////////////////////////// +// +// Rasterizer + +typedef struct stbtt__hheap_chunk +{ + struct stbtt__hheap_chunk *next; +} stbtt__hheap_chunk; + +typedef struct stbtt__hheap +{ + struct stbtt__hheap_chunk *head; + void *first_free; + int num_remaining_in_head_chunk; +} stbtt__hheap; + +static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t size, void *userdata) +{ + if (hh->first_free) { + void *p = hh->first_free; + hh->first_free = * (void **) p; + return p; + } else { + if (hh->num_remaining_in_head_chunk == 0) { + int count = (size < 32 ? 2000 : size < 128 ? 800 : 100); + stbtt__hheap_chunk *c = (stbtt__hheap_chunk *) STBTT_malloc(sizeof(stbtt__hheap_chunk) + size * count, userdata); + if (c == NULL) + return NULL; + c->next = hh->head; + hh->head = c; + hh->num_remaining_in_head_chunk = count; + } + --hh->num_remaining_in_head_chunk; + return (char *) (hh->head) + sizeof(stbtt__hheap_chunk) + size * hh->num_remaining_in_head_chunk; + } +} + +static void stbtt__hheap_free(stbtt__hheap *hh, void *p) +{ + *(void **) p = hh->first_free; + hh->first_free = p; +} + +static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata) +{ + stbtt__hheap_chunk *c = hh->head; + while (c) { + stbtt__hheap_chunk *n = c->next; + STBTT_free(c, userdata); + c = n; + } +} + +typedef struct stbtt__edge { + float x0,y0, x1,y1; + int invert; +} stbtt__edge; + + +typedef struct stbtt__active_edge +{ + struct stbtt__active_edge *next; + #if STBTT_RASTERIZER_VERSION==1 + int x,dx; + float ey; + int direction; + #elif STBTT_RASTERIZER_VERSION==2 + float fx,fdx,fdy; + float direction; + float sy; + float ey; + #else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" + #endif +} stbtt__active_edge; + +#if STBTT_RASTERIZER_VERSION == 1 +#define STBTT_FIXSHIFT 10 +#define STBTT_FIX (1 << STBTT_FIXSHIFT) +#define STBTT_FIXMASK (STBTT_FIX-1) + +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + if (!z) return z; + + // round dx down to avoid overshooting + if (dxdy < 0) + z->dx = -STBTT_ifloor(STBTT_FIX * -dxdy); + else + z->dx = STBTT_ifloor(STBTT_FIX * dxdy); + + z->x = STBTT_ifloor(STBTT_FIX * e->x0 + z->dx * (start_point - e->y0)); // use z->dx so when we offset later it's by the same amount + z->x -= off_x * STBTT_FIX; + + z->ey = e->y1; + z->next = 0; + z->direction = e->invert ? 1 : -1; + return z; +} +#elif STBTT_RASTERIZER_VERSION == 2 +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + //STBTT_assert(e->y0 <= start_point); + if (!z) return z; + z->fdx = dxdy; + z->fdy = dxdy != 0.0f ? (1.0f/dxdy) : 0.0f; + z->fx = e->x0 + dxdy * (start_point - e->y0); + z->fx -= off_x; + z->direction = e->invert ? 1.0f : -1.0f; + z->sy = e->y0; + z->ey = e->y1; + z->next = 0; + return z; +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#if STBTT_RASTERIZER_VERSION == 1 +// note: this routine clips fills that extend off the edges... ideally this +// wouldn't happen, but it could happen if the truetype glyph bounding boxes +// are wrong, or if the user supplies a too-small bitmap +static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight) +{ + // non-zero winding fill + int x0=0, w=0; + + while (e) { + if (w == 0) { + // if we're currently at zero, we need to record the edge start point + x0 = e->x; w += e->direction; + } else { + int x1 = e->x; w += e->direction; + // if we went to zero, we need to draw + if (w == 0) { + int i = x0 >> STBTT_FIXSHIFT; + int j = x1 >> STBTT_FIXSHIFT; + + if (i < len && j >= 0) { + if (i == j) { + // x0,x1 are the same pixel, so compute combined coverage + scanline[i] = scanline[i] + (stbtt_uint8) ((x1 - x0) * max_weight >> STBTT_FIXSHIFT); + } else { + if (i >= 0) // add antialiasing for x0 + scanline[i] = scanline[i] + (stbtt_uint8) (((STBTT_FIX - (x0 & STBTT_FIXMASK)) * max_weight) >> STBTT_FIXSHIFT); + else + i = -1; // clip + + if (j < len) // add antialiasing for x1 + scanline[j] = scanline[j] + (stbtt_uint8) (((x1 & STBTT_FIXMASK) * max_weight) >> STBTT_FIXSHIFT); + else + j = len; // clip + + for (++i; i < j; ++i) // fill pixels between x0 and x1 + scanline[i] = scanline[i] + (stbtt_uint8) max_weight; + } + } + } + } + + e = e->next; + } +} + +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0; + int max_weight = (255 / vsubsample); // weight per vertical scanline + int s; // vertical subsample index + unsigned char scanline_data[512], *scanline; + + if (result->w > 512) + scanline = (unsigned char *) STBTT_malloc(result->w, userdata); + else + scanline = scanline_data; + + y = off_y * vsubsample; + e[n].y0 = (off_y + result->h) * (float) vsubsample + 1; + + while (j < result->h) { + STBTT_memset(scanline, 0, result->w); + for (s=0; s < vsubsample; ++s) { + // find center of pixel for this scanline + float scan_y = y + 0.5f; + stbtt__active_edge **step = &active; + + // update all active edges; + // remove all active edges that terminate before the center of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + z->x += z->dx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + } + + // resort the list if needed + for(;;) { + int changed=0; + step = &active; + while (*step && (*step)->next) { + if ((*step)->x > (*step)->next->x) { + stbtt__active_edge *t = *step; + stbtt__active_edge *q = t->next; + + t->next = q->next; + q->next = t; + *step = q; + changed = 1; + } + step = &(*step)->next; + } + if (!changed) break; + } + + // insert all edges that start before the center of this scanline -- omit ones that also end on this scanline + while (e->y0 <= scan_y) { + if (e->y1 > scan_y) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y, userdata); + if (z != NULL) { + // find insertion point + if (active == NULL) + active = z; + else if (z->x < active->x) { + // insert at front + z->next = active; + active = z; + } else { + // find thing to insert AFTER + stbtt__active_edge *p = active; + while (p->next && p->next->x < z->x) + p = p->next; + // at this point, p->next->x is NOT < z->x + z->next = p->next; + p->next = z; + } + } + } + ++e; + } + + // now process all active edges in XOR fashion + if (active) + stbtt__fill_active_edges(scanline, result->w, active, max_weight); + + ++y; + } + STBTT_memcpy(result->pixels + j * result->stride, scanline, result->w); + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} + +#elif STBTT_RASTERIZER_VERSION == 2 + +// the edge passed in here does not cross the vertical line at x or the vertical line at x+1 +// (i.e. it has already been clipped to those) +static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1) +{ + if (y0 == y1) return; + STBTT_assert(y0 < y1); + STBTT_assert(e->sy <= e->ey); + if (y0 > e->ey) return; + if (y1 < e->sy) return; + if (y0 < e->sy) { + x0 += (x1-x0) * (e->sy - y0) / (y1-y0); + y0 = e->sy; + } + if (y1 > e->ey) { + x1 += (x1-x0) * (e->ey - y1) / (y1-y0); + y1 = e->ey; + } + + if (x0 == x) + STBTT_assert(x1 <= x+1); + else if (x0 == x+1) + STBTT_assert(x1 >= x); + else if (x0 <= x) + STBTT_assert(x1 <= x); + else if (x0 >= x+1) + STBTT_assert(x1 >= x+1); + else + STBTT_assert(x1 >= x && x1 <= x+1); + + if (x0 <= x && x1 <= x) + scanline[x] += e->direction * (y1-y0); + else if (x0 >= x+1 && x1 >= x+1) + ; + else { + STBTT_assert(x0 >= x && x0 <= x+1 && x1 >= x && x1 <= x+1); + scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); // coverage = 1 - average x position + } +} + +static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width) +{ + STBTT_assert(top_width >= 0); + STBTT_assert(bottom_width >= 0); + return (top_width + bottom_width) / 2.0f * height; +} + +static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1) +{ + return stbtt__sized_trapezoid_area(height, tx1 - tx0, bx1 - bx0); +} + +static float stbtt__sized_triangle_area(float height, float width) +{ + return height * width / 2; +} + +static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top) +{ + float y_bottom = y_top+1; + + while (e) { + // brute force every pixel + + // compute intersection points with top & bottom + STBTT_assert(e->ey >= y_top); + + if (e->fdx == 0) { + float x0 = e->fx; + if (x0 < len) { + if (x0 >= 0) { + stbtt__handle_clipped_edge(scanline,(int) x0,e, x0,y_top, x0,y_bottom); + stbtt__handle_clipped_edge(scanline_fill-1,(int) x0+1,e, x0,y_top, x0,y_bottom); + } else { + stbtt__handle_clipped_edge(scanline_fill-1,0,e, x0,y_top, x0,y_bottom); + } + } + } else { + float x0 = e->fx; + float dx = e->fdx; + float xb = x0 + dx; + float x_top, x_bottom; + float sy0,sy1; + float dy = e->fdy; + STBTT_assert(e->sy <= y_bottom && e->ey >= y_top); + + // compute endpoints of line segment clipped to this scanline (if the + // line segment starts on this scanline. x0 is the intersection of the + // line with y_top, but that may be off the line segment. + if (e->sy > y_top) { + x_top = x0 + dx * (e->sy - y_top); + sy0 = e->sy; + } else { + x_top = x0; + sy0 = y_top; + } + if (e->ey < y_bottom) { + x_bottom = x0 + dx * (e->ey - y_top); + sy1 = e->ey; + } else { + x_bottom = xb; + sy1 = y_bottom; + } + + if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { + // from here on, we don't have to range check x values + + if ((int) x_top == (int) x_bottom) { + float height; + // simple case, only spans one pixel + int x = (int) x_top; + height = (sy1 - sy0) * e->direction; + STBTT_assert(x >= 0 && x < len); + scanline[x] += stbtt__position_trapezoid_area(height, x_top, x+1.0f, x_bottom, x+1.0f); + scanline_fill[x] += height; // everything right of this pixel is filled + } else { + int x,x1,x2; + float y_crossing, y_final, step, sign, area; + // covers 2+ pixels + if (x_top > x_bottom) { + // flip scanline vertically; signed area is the same + float t; + sy0 = y_bottom - (sy0 - y_top); + sy1 = y_bottom - (sy1 - y_top); + t = sy0, sy0 = sy1, sy1 = t; + t = x_bottom, x_bottom = x_top, x_top = t; + dx = -dx; + dy = -dy; + t = x0, x0 = xb, xb = t; + } + STBTT_assert(dy >= 0); + STBTT_assert(dx >= 0); + + x1 = (int) x_top; + x2 = (int) x_bottom; + // compute intersection with y axis at x1+1 + y_crossing = y_top + dy * (x1+1 - x0); + + // compute intersection with y axis at x2 + y_final = y_top + dy * (x2 - x0); + + // x1 x_top x2 x_bottom + // y_top +------|-----+------------+------------+--------|---+------------+ + // | | | | | | + // | | | | | | + // sy0 | Txxxxx|............|............|............|............| + // y_crossing | *xxxxx.......|............|............|............| + // | | xxxxx..|............|............|............| + // | | /- xx*xxxx........|............|............| + // | | dy < | xxxxxx..|............|............| + // y_final | | \- | xx*xxx.........|............| + // sy1 | | | | xxxxxB...|............| + // | | | | | | + // | | | | | | + // y_bottom +------------+------------+------------+------------+------------+ + // + // goal is to measure the area covered by '.' in each pixel + + // if x2 is right at the right edge of x1, y_crossing can blow up, github #1057 + // @TODO: maybe test against sy1 rather than y_bottom? + if (y_crossing > y_bottom) + y_crossing = y_bottom; + + sign = e->direction; + + // area of the rectangle covered from sy0..y_crossing + area = sign * (y_crossing-sy0); + + // area of the triangle (x_top,sy0), (x1+1,sy0), (x1+1,y_crossing) + scanline[x1] += stbtt__sized_triangle_area(area, x1+1 - x_top); + + // check if final y_crossing is blown up; no test case for this + if (y_final > y_bottom) { + int denom = (x2 - (x1+1)); + y_final = y_bottom; + if (denom != 0) { // [DEAR IMGUI] Avoid div by zero (https://github.com/nothings/stb/issues/1316) + dy = (y_final - y_crossing ) / denom; // if denom=0, y_final = y_crossing, so y_final <= y_bottom + } + } + + // in second pixel, area covered by line segment found in first pixel + // is always a rectangle 1 wide * the height of that line segment; this + // is exactly what the variable 'area' stores. it also gets a contribution + // from the line segment within it. the THIRD pixel will get the first + // pixel's rectangle contribution, the second pixel's rectangle contribution, + // and its own contribution. the 'own contribution' is the same in every pixel except + // the leftmost and rightmost, a trapezoid that slides down in each pixel. + // the second pixel's contribution to the third pixel will be the + // rectangle 1 wide times the height change in the second pixel, which is dy. + + step = sign * dy * 1; // dy is dy/dx, change in y for every 1 change in x, + // which multiplied by 1-pixel-width is how much pixel area changes for each step in x + // so the area advances by 'step' every time + + for (x = x1+1; x < x2; ++x) { + scanline[x] += area + step/2; // area of trapezoid is 1*step/2 + area += step; + } + STBTT_assert(STBTT_fabs(area) <= 1.01f); // accumulated error from area += step unless we round step down + STBTT_assert(sy1 > y_final-0.01f); + + // area covered in the last pixel is the rectangle from all the pixels to the left, + // plus the trapezoid filled by the line segment in this pixel all the way to the right edge + scanline[x2] += area + sign * stbtt__position_trapezoid_area(sy1-y_final, (float) x2, x2+1.0f, x_bottom, x2+1.0f); + + // the rest of the line is filled based on the total height of the line segment in this pixel + scanline_fill[x2] += sign * (sy1-sy0); + } + } else { + // if edge goes outside of box we're drawing, we require + // clipping logic. since this does not match the intended use + // of this library, we use a different, very slow brute + // force implementation + // note though that this does happen some of the time because + // x_top and x_bottom can be extrapolated at the top & bottom of + // the shape and actually lie outside the bounding box + int x; + for (x=0; x < len; ++x) { + // cases: + // + // there can be up to two intersections with the pixel. any intersection + // with left or right edges can be handled by splitting into two (or three) + // regions. intersections with top & bottom do not necessitate case-wise logic. + // + // the old way of doing this found the intersections with the left & right edges, + // then used some simple logic to produce up to three segments in sorted order + // from top-to-bottom. however, this had a problem: if an x edge was epsilon + // across the x border, then the corresponding y position might not be distinct + // from the other y segment, and it might ignored as an empty segment. to avoid + // that, we need to explicitly produce segments based on x positions. + + // rename variables to clearly-defined pairs + float y0 = y_top; + float x1 = (float) (x); + float x2 = (float) (x+1); + float x3 = xb; + float y3 = y_bottom; + + // x = e->x + e->dx * (y-y_top) + // (y-y_top) = (x - e->x) / e->dx + // y = (x - e->x) / e->dx + y_top + float y1 = (x - x0) / dx + y_top; + float y2 = (x+1 - x0) / dx + y_top; + + if (x0 < x1 && x3 > x2) { // three segments descending down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x1 && x0 > x2) { // three segments descending down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x1 && x3 > x1) { // two segments across x, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x3 < x1 && x0 > x1) { // two segments across x, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x2 && x3 > x2) { // two segments across x+1, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x2 && x0 > x2) { // two segments across x+1, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else { // one segment + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x3,y3); + } + } + } + } + e = e->next; + } +} + +// directly AA rasterize edges w/o supersampling +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0, i; + float scanline_data[129], *scanline, *scanline2; + + STBTT__NOTUSED(vsubsample); + + if (result->w > 64) + scanline = (float *) STBTT_malloc((result->w*2+1) * sizeof(float), userdata); + else + scanline = scanline_data; + + scanline2 = scanline + result->w; + + y = off_y; + e[n].y0 = (float) (off_y + result->h) + 1; + + while (j < result->h) { + // find center of pixel for this scanline + float scan_y_top = y + 0.0f; + float scan_y_bottom = y + 1.0f; + stbtt__active_edge **step = &active; + + STBTT_memset(scanline , 0, result->w*sizeof(scanline[0])); + STBTT_memset(scanline2, 0, (result->w+1)*sizeof(scanline[0])); + + // update all active edges; + // remove all active edges that terminate before the top of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y_top) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + step = &((*step)->next); // advance through list + } + } + + // insert all edges that start before the bottom of this scanline + while (e->y0 <= scan_y_bottom) { + if (e->y0 != e->y1) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y_top, userdata); + if (z != NULL) { + if (j == 0 && off_y != 0) { + if (z->ey < scan_y_top) { + // this can happen due to subpixel positioning and some kind of fp rounding error i think + z->ey = scan_y_top; + } + } + STBTT_assert(z->ey >= scan_y_top); // if we get really unlucky a tiny bit of an edge can be out of bounds + // insert at front + z->next = active; + active = z; + } + } + ++e; + } + + // now process all active edges + if (active) + stbtt__fill_active_edges_new(scanline, scanline2+1, result->w, active, scan_y_top); + + { + float sum = 0; + for (i=0; i < result->w; ++i) { + float k; + int m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = (float) STBTT_fabs(k)*255 + 0.5f; + m = (int) k; + if (m > 255) m = 255; + result->pixels[j*result->stride + i] = (unsigned char) m; + } + } + // advance all the edges + step = &active; + while (*step) { + stbtt__active_edge *z = *step; + z->fx += z->fdx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + + ++y; + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0) + +static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n) +{ + int i,j; + for (i=1; i < n; ++i) { + stbtt__edge t = p[i], *a = &t; + j = i; + while (j > 0) { + stbtt__edge *b = &p[j-1]; + int c = STBTT__COMPARE(a,b); + if (!c) break; + p[j] = p[j-1]; + --j; + } + if (i != j) + p[j] = t; + } +} + +static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n) +{ + /* threshold for transitioning to insertion sort */ + while (n > 12) { + stbtt__edge t; + int c01,c12,c,m,i,j; + + /* compute median of three */ + m = n >> 1; + c01 = STBTT__COMPARE(&p[0],&p[m]); + c12 = STBTT__COMPARE(&p[m],&p[n-1]); + /* if 0 >= mid >= end, or 0 < mid < end, then use mid */ + if (c01 != c12) { + /* otherwise, we'll need to swap something else to middle */ + int z; + c = STBTT__COMPARE(&p[0],&p[n-1]); + /* 0>mid && midn => n; 0 0 */ + /* 0n: 0>n => 0; 0 n */ + z = (c == c12) ? 0 : n-1; + t = p[z]; + p[z] = p[m]; + p[m] = t; + } + /* now p[m] is the median-of-three */ + /* swap it to the beginning so it won't move around */ + t = p[0]; + p[0] = p[m]; + p[m] = t; + + /* partition loop */ + i=1; + j=n-1; + for(;;) { + /* handling of equality is crucial here */ + /* for sentinels & efficiency with duplicates */ + for (;;++i) { + if (!STBTT__COMPARE(&p[i], &p[0])) break; + } + for (;;--j) { + if (!STBTT__COMPARE(&p[0], &p[j])) break; + } + /* make sure we haven't crossed */ + if (i >= j) break; + t = p[i]; + p[i] = p[j]; + p[j] = t; + + ++i; + --j; + } + /* recurse on smaller side, iterate on larger */ + if (j < (n-i)) { + stbtt__sort_edges_quicksort(p,j); + p = p+i; + n = n-i; + } else { + stbtt__sort_edges_quicksort(p+i, n-i); + n = j; + } + } +} + +static void stbtt__sort_edges(stbtt__edge *p, int n) +{ + stbtt__sort_edges_quicksort(p, n); + stbtt__sort_edges_ins_sort(p, n); +} + +typedef struct +{ + float x,y; +} stbtt__point; + +static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata) +{ + float y_scale_inv = invert ? -scale_y : scale_y; + stbtt__edge *e; + int n,i,j,k,m; +#if STBTT_RASTERIZER_VERSION == 1 + int vsubsample = result->h < 8 ? 15 : 5; +#elif STBTT_RASTERIZER_VERSION == 2 + int vsubsample = 1; +#else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + // vsubsample should divide 255 evenly; otherwise we won't reach full opacity + + // now we have to blow out the windings into explicit edge lists + n = 0; + for (i=0; i < windings; ++i) + n += wcount[i]; + + e = (stbtt__edge *) STBTT_malloc(sizeof(*e) * (n+1), userdata); // add an extra one as a sentinel + if (e == 0) return; + n = 0; + + m=0; + for (i=0; i < windings; ++i) { + stbtt__point *p = pts + m; + m += wcount[i]; + j = wcount[i]-1; + for (k=0; k < wcount[i]; j=k++) { + int a=k,b=j; + // skip the edge if horizontal + if (p[j].y == p[k].y) + continue; + // add edge from j to k to the list + e[n].invert = 0; + if (invert ? p[j].y > p[k].y : p[j].y < p[k].y) { + e[n].invert = 1; + a=j,b=k; + } + e[n].x0 = p[a].x * scale_x + shift_x; + e[n].y0 = (p[a].y * y_scale_inv + shift_y) * vsubsample; + e[n].x1 = p[b].x * scale_x + shift_x; + e[n].y1 = (p[b].y * y_scale_inv + shift_y) * vsubsample; + ++n; + } + } + + // now sort the edges by their highest point (should snap to integer, and then by x) + //STBTT_sort(e, n, sizeof(e[0]), stbtt__edge_compare); + stbtt__sort_edges(e, n); + + // now, traverse the scanlines and find the intersections on each scanline, use xor winding rule + stbtt__rasterize_sorted_edges(result, e, n, vsubsample, off_x, off_y, userdata); + + STBTT_free(e, userdata); +} + +static void stbtt__add_point(stbtt__point *points, int n, float x, float y) +{ + if (!points) return; // during first pass, it's unallocated + points[n].x = x; + points[n].y = y; +} + +// tessellate until threshold p is happy... @TODO warped to compensate for non-linear stretching +static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n) +{ + // midpoint + float mx = (x0 + 2*x1 + x2)/4; + float my = (y0 + 2*y1 + y2)/4; + // versus directly drawn line + float dx = (x0+x2)/2 - mx; + float dy = (y0+y2)/2 - my; + if (n > 16) // 65536 segments on one curve better be enough! + return 1; + if (dx*dx+dy*dy > objspace_flatness_squared) { // half-pixel error allowed... need to be smaller if AA + stbtt__tesselate_curve(points, num_points, x0,y0, (x0+x1)/2.0f,(y0+y1)/2.0f, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_curve(points, num_points, mx,my, (x1+x2)/2.0f,(y1+y2)/2.0f, x2,y2, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x2,y2); + *num_points = *num_points+1; + } + return 1; +} + +static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n) +{ + // @TODO this "flatness" calculation is just made-up nonsense that seems to work well enough + float dx0 = x1-x0; + float dy0 = y1-y0; + float dx1 = x2-x1; + float dy1 = y2-y1; + float dx2 = x3-x2; + float dy2 = y3-y2; + float dx = x3-x0; + float dy = y3-y0; + float longlen = (float) (STBTT_sqrt(dx0*dx0+dy0*dy0)+STBTT_sqrt(dx1*dx1+dy1*dy1)+STBTT_sqrt(dx2*dx2+dy2*dy2)); + float shortlen = (float) STBTT_sqrt(dx*dx+dy*dy); + float flatness_squared = longlen*longlen-shortlen*shortlen; + + if (n > 16) // 65536 segments on one curve better be enough! + return; + + if (flatness_squared > objspace_flatness_squared) { + float x01 = (x0+x1)/2; + float y01 = (y0+y1)/2; + float x12 = (x1+x2)/2; + float y12 = (y1+y2)/2; + float x23 = (x2+x3)/2; + float y23 = (y2+y3)/2; + + float xa = (x01+x12)/2; + float ya = (y01+y12)/2; + float xb = (x12+x23)/2; + float yb = (y12+y23)/2; + + float mx = (xa+xb)/2; + float my = (ya+yb)/2; + + stbtt__tesselate_cubic(points, num_points, x0,y0, x01,y01, xa,ya, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_cubic(points, num_points, mx,my, xb,yb, x23,y23, x3,y3, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x3,y3); + *num_points = *num_points+1; + } +} + +// returns number of contours +static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) +{ + stbtt__point *points=0; + int num_points=0; + + float objspace_flatness_squared = objspace_flatness * objspace_flatness; + int i,n=0,start=0, pass; + + // count how many "moves" there are to get the contour count + for (i=0; i < num_verts; ++i) + if (vertices[i].type == STBTT_vmove) + ++n; + + *num_contours = n; + if (n == 0) return 0; + + *contour_lengths = (int *) STBTT_malloc(sizeof(**contour_lengths) * n, userdata); + + if (*contour_lengths == 0) { + *num_contours = 0; + return 0; + } + + // make two passes through the points so we don't need to realloc + for (pass=0; pass < 2; ++pass) { + float x=0,y=0; + if (pass == 1) { + points = (stbtt__point *) STBTT_malloc(num_points * sizeof(points[0]), userdata); + if (points == NULL) goto error; + } + num_points = 0; + n= -1; + for (i=0; i < num_verts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + // start the next contour + if (n >= 0) + (*contour_lengths)[n] = num_points - start; + ++n; + start = num_points; + + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x,y); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x, y); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + (*contour_lengths)[n] = num_points - start; + } + + return points; +error: + STBTT_free(points, userdata); + STBTT_free(*contour_lengths, userdata); + *contour_lengths = 0; + *num_contours = 0; + return NULL; +} + +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata) +{ + float scale = scale_x > scale_y ? scale_y : scale_x; + int winding_count = 0; + int *winding_lengths = NULL; + stbtt__point *windings = stbtt_FlattenCurves(vertices, num_verts, flatness_in_pixels / scale, &winding_lengths, &winding_count, userdata); + if (windings) { + stbtt__rasterize(result, windings, winding_lengths, winding_count, scale_x, scale_y, shift_x, shift_y, x_off, y_off, invert, userdata); + STBTT_free(winding_lengths, userdata); + STBTT_free(windings, userdata); + } +} + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + int ix0,iy0,ix1,iy1; + stbtt__bitmap gbm; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + + if (scale_x == 0) scale_x = scale_y; + if (scale_y == 0) { + if (scale_x == 0) { + STBTT_free(vertices, info->userdata); + return NULL; + } + scale_y = scale_x; + } + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,&ix1,&iy1); + + // now we get the size + gbm.w = (ix1 - ix0); + gbm.h = (iy1 - iy0); + gbm.pixels = NULL; // in case we error + + if (width ) *width = gbm.w; + if (height) *height = gbm.h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + if (gbm.w && gbm.h) { + gbm.pixels = (unsigned char *) STBTT_malloc(gbm.w * gbm.h, info->userdata); + if (gbm.pixels) { + gbm.stride = gbm.w; + + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0, iy0, 1, info->userdata); + } + } + STBTT_free(vertices, info->userdata); + return gbm.pixels; +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y, 0.0f, 0.0f, glyph, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph) +{ + int ix0,iy0; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + stbtt__bitmap gbm; + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,0,0); + gbm.pixels = output; + gbm.w = out_w; + gbm.h = out_h; + gbm.stride = out_stride; + + if (gbm.w && gbm.h) + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0,iy0, 1, info->userdata); + + STBTT_free(vertices, info->userdata); +} + +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, glyph); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y,shift_x,shift_y, stbtt_FindGlyphIndex(info,codepoint), width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixelPrefilter(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, oversample_x, oversample_y, sub_x, sub_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetCodepointBitmapSubpixel(info, scale_x, scale_y, 0.0f,0.0f, codepoint, width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint) +{ + stbtt_MakeCodepointBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, codepoint); +} + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-CRAPPY packing to keep source code small + +static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata) +{ + float scale; + int x,y,bottom_y, i; + stbtt_fontinfo f; + f.userdata = NULL; + if (!stbtt_InitFont(&f, data, offset)) + return -1; + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + x=y=1; + bottom_y = 1; + + scale = stbtt_ScaleForPixelHeight(&f, pixel_height); + + for (i=0; i < num_chars; ++i) { + int advance, lsb, x0,y0,x1,y1,gw,gh; + int g = stbtt_FindGlyphIndex(&f, first_char + i); + stbtt_GetGlyphHMetrics(&f, g, &advance, &lsb); + stbtt_GetGlyphBitmapBox(&f, g, scale,scale, &x0,&y0,&x1,&y1); + gw = x1-x0; + gh = y1-y0; + if (x + gw + 1 >= pw) + y = bottom_y, x = 1; // advance to next row + if (y + gh + 1 >= ph) // check if it fits vertically AFTER potentially moving to next row + return -i; + STBTT_assert(x+gw < pw); + STBTT_assert(y+gh < ph); + stbtt_MakeGlyphBitmap(&f, pixels+x+y*pw, gw,gh,pw, scale,scale, g); + chardata[i].x0 = (stbtt_int16) x; + chardata[i].y0 = (stbtt_int16) y; + chardata[i].x1 = (stbtt_int16) (x + gw); + chardata[i].y1 = (stbtt_int16) (y + gh); + chardata[i].xadvance = scale * advance; + chardata[i].xoff = (float) x0; + chardata[i].yoff = (float) y0; + x = x + gw + 1; + if (y+gh+1 > bottom_y) + bottom_y = y+gh+1; + } + return bottom_y; +} + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule) +{ + float d3d_bias = opengl_fillrule ? 0 : -0.5f; + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_bakedchar *b = chardata + char_index; + int round_x = STBTT_ifloor((*xpos + b->xoff) + 0.5f); + int round_y = STBTT_ifloor((*ypos + b->yoff) + 0.5f); + + q->x0 = round_x + d3d_bias; + q->y0 = round_y + d3d_bias; + q->x1 = round_x + b->x1 - b->x0 + d3d_bias; + q->y1 = round_y + b->y1 - b->y0 + d3d_bias; + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// rectangle packing replacement routines if you don't have stb_rect_pack.h +// + +#ifndef STB_RECT_PACK_VERSION + +typedef int stbrp_coord; + +//////////////////////////////////////////////////////////////////////////////////// +// // +// // +// COMPILER WARNING ?!?!? // +// // +// // +// if you get a compile warning due to these symbols being defined more than // +// once, move #include "stb_rect_pack.h" before #include "stb_truetype.h" // +// // +//////////////////////////////////////////////////////////////////////////////////// + +typedef struct +{ + int width,height; + int x,y,bottom_y; +} stbrp_context; + +typedef struct +{ + unsigned char x; +} stbrp_node; + +struct stbrp_rect +{ + stbrp_coord x,y; + int id,w,h,was_packed; +}; + +static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes) +{ + con->width = pw; + con->height = ph; + con->x = 0; + con->y = 0; + con->bottom_y = 0; + STBTT__NOTUSED(nodes); + STBTT__NOTUSED(num_nodes); +} + +static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects) +{ + int i; + for (i=0; i < num_rects; ++i) { + if (con->x + rects[i].w > con->width) { + con->x = 0; + con->y = con->bottom_y; + } + if (con->y + rects[i].h > con->height) + break; + rects[i].x = con->x; + rects[i].y = con->y; + rects[i].was_packed = 1; + con->x += rects[i].w; + if (con->y + rects[i].h > con->bottom_y) + con->bottom_y = con->y + rects[i].h; + } + for ( ; i < num_rects; ++i) + rects[i].was_packed = 0; +} +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-AWESOME (tm Ryan Gordon) packing using stb_rect_pack.h. If +// stb_rect_pack.h isn't available, it uses the BakeFontBitmap strategy. + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context) +{ + stbrp_context *context = (stbrp_context *) STBTT_malloc(sizeof(*context) ,alloc_context); + int num_nodes = pw - padding; + stbrp_node *nodes = (stbrp_node *) STBTT_malloc(sizeof(*nodes ) * num_nodes,alloc_context); + + if (context == NULL || nodes == NULL) { + if (context != NULL) STBTT_free(context, alloc_context); + if (nodes != NULL) STBTT_free(nodes , alloc_context); + return 0; + } + + spc->user_allocator_context = alloc_context; + spc->width = pw; + spc->height = ph; + spc->pixels = pixels; + spc->pack_info = context; + spc->nodes = nodes; + spc->padding = padding; + spc->stride_in_bytes = stride_in_bytes != 0 ? stride_in_bytes : pw; + spc->h_oversample = 1; + spc->v_oversample = 1; + spc->skip_missing = 0; + + stbrp_init_target(context, pw-padding, ph-padding, nodes, num_nodes); + + if (pixels) + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + + return 1; +} + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc) +{ + STBTT_free(spc->nodes , spc->user_allocator_context); + STBTT_free(spc->pack_info, spc->user_allocator_context); +} + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample) +{ + STBTT_assert(h_oversample <= STBTT_MAX_OVERSAMPLE); + STBTT_assert(v_oversample <= STBTT_MAX_OVERSAMPLE); + if (h_oversample <= STBTT_MAX_OVERSAMPLE) + spc->h_oversample = h_oversample; + if (v_oversample <= STBTT_MAX_OVERSAMPLE) + spc->v_oversample = v_oversample; +} + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip) +{ + spc->skip_missing = skip; +} + +#define STBTT__OVER_MASK (STBTT_MAX_OVERSAMPLE-1) + +static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_w = w - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < h; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < w; ++i) { + STBTT_assert(pixels[i] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i] = (unsigned char) (total / kernel_width); + } + + pixels += stride_in_bytes; + } +} + +static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_h = h - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < w; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < h; ++i) { + STBTT_assert(pixels[i*stride_in_bytes] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + + pixels += 1; + } +} + +static float stbtt__oversample_shift(int oversample) +{ + if (!oversample) + return 0.0f; + + // The prefilter is a box filter of width "oversample", + // which shifts phase by (oversample - 1)/2 pixels in + // oversampled space. We want to shift in the opposite + // direction to counter this. + return (float)-(oversample - 1) / (2.0f * (float)oversample); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k; + int missing_glyph_added = 0; + + k=0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + ranges[i].h_oversample = (unsigned char) spc->h_oversample; + ranges[i].v_oversample = (unsigned char) spc->v_oversample; + for (j=0; j < ranges[i].num_chars; ++j) { + int x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + if (glyph == 0 && (spc->skip_missing || missing_glyph_added)) { + rects[k].w = rects[k].h = 0; + } else { + stbtt_GetGlyphBitmapBoxSubpixel(info,glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + &x0,&y0,&x1,&y1); + rects[k].w = (stbrp_coord) (x1-x0 + spc->padding + spc->h_oversample-1); + rects[k].h = (stbrp_coord) (y1-y0 + spc->padding + spc->v_oversample-1); + if (glyph == 0) + missing_glyph_added = 1; + } + ++k; + } + } + + return k; +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, + output, + out_w - (prefilter_x - 1), + out_h - (prefilter_y - 1), + out_stride, + scale_x, + scale_y, + shift_x, + shift_y, + glyph); + + if (prefilter_x > 1) + stbtt__h_prefilter(output, out_w, out_h, out_stride, prefilter_x); + + if (prefilter_y > 1) + stbtt__v_prefilter(output, out_w, out_h, out_stride, prefilter_y); + + *sub_x = stbtt__oversample_shift(prefilter_x); + *sub_y = stbtt__oversample_shift(prefilter_y); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k, missing_glyph = -1, return_value = 1; + + // save current values + int old_h_over = spc->h_oversample; + int old_v_over = spc->v_oversample; + + k = 0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + float recip_h,recip_v,sub_x,sub_y; + spc->h_oversample = ranges[i].h_oversample; + spc->v_oversample = ranges[i].v_oversample; + recip_h = 1.0f / spc->h_oversample; + recip_v = 1.0f / spc->v_oversample; + sub_x = stbtt__oversample_shift(spc->h_oversample); + sub_y = stbtt__oversample_shift(spc->v_oversample); + for (j=0; j < ranges[i].num_chars; ++j) { + stbrp_rect *r = &rects[k]; + if (r->was_packed && r->w != 0 && r->h != 0) { + stbtt_packedchar *bc = &ranges[i].chardata_for_range[j]; + int advance, lsb, x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + stbrp_coord pad = (stbrp_coord) spc->padding; + + // pad on left and top + r->x += pad; + r->y += pad; + r->w -= pad; + r->h -= pad; + stbtt_GetGlyphHMetrics(info, glyph, &advance, &lsb); + stbtt_GetGlyphBitmapBox(info, glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + &x0,&y0,&x1,&y1); + stbtt_MakeGlyphBitmapSubpixel(info, + spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w - spc->h_oversample+1, + r->h - spc->v_oversample+1, + spc->stride_in_bytes, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + glyph); + + if (spc->h_oversample > 1) + stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->h_oversample); + + if (spc->v_oversample > 1) + stbtt__v_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->v_oversample); + + bc->x0 = (stbtt_int16) r->x; + bc->y0 = (stbtt_int16) r->y; + bc->x1 = (stbtt_int16) (r->x + r->w); + bc->y1 = (stbtt_int16) (r->y + r->h); + bc->xadvance = scale * advance; + bc->xoff = (float) x0 * recip_h + sub_x; + bc->yoff = (float) y0 * recip_v + sub_y; + bc->xoff2 = (x0 + r->w) * recip_h + sub_x; + bc->yoff2 = (y0 + r->h) * recip_v + sub_y; + + if (glyph == 0) + missing_glyph = j; + } else if (spc->skip_missing) { + return_value = 0; + } else if (r->was_packed && r->w == 0 && r->h == 0 && missing_glyph >= 0) { + ranges[i].chardata_for_range[j] = ranges[i].chardata_for_range[missing_glyph]; + } else { + return_value = 0; // if any fail, report failure + } + + ++k; + } + } + + // restore original values + spc->h_oversample = old_h_over; + spc->v_oversample = old_v_over; + + return return_value; +} + +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects) +{ + stbrp_pack_rects((stbrp_context *) spc->pack_info, rects, num_rects); +} + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) +{ + stbtt_fontinfo info; + int i, j, n, return_value; // [DEAR IMGUI] removed = 1; + //stbrp_context *context = (stbrp_context *) spc->pack_info; + stbrp_rect *rects; + + // flag all characters as NOT packed + for (i=0; i < num_ranges; ++i) + for (j=0; j < ranges[i].num_chars; ++j) + ranges[i].chardata_for_range[j].x0 = + ranges[i].chardata_for_range[j].y0 = + ranges[i].chardata_for_range[j].x1 = + ranges[i].chardata_for_range[j].y1 = 0; + + n = 0; + for (i=0; i < num_ranges; ++i) + n += ranges[i].num_chars; + + rects = (stbrp_rect *) STBTT_malloc(sizeof(*rects) * n, spc->user_allocator_context); + if (rects == NULL) + return 0; + + info.userdata = spc->user_allocator_context; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata,font_index)); + + n = stbtt_PackFontRangesGatherRects(spc, &info, ranges, num_ranges, rects); + + stbtt_PackFontRangesPackRects(spc, rects, n); + + return_value = stbtt_PackFontRangesRenderIntoRects(spc, &info, ranges, num_ranges, rects); + + STBTT_free(rects, spc->user_allocator_context); + return return_value; +} + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) +{ + stbtt_pack_range range; + range.first_unicode_codepoint_in_range = first_unicode_codepoint_in_range; + range.array_of_unicode_codepoints = NULL; + range.num_chars = num_chars_in_range; + range.chardata_for_range = chardata_for_range; + range.font_size = font_size; + return stbtt_PackFontRanges(spc, fontdata, font_index, &range, 1); +} + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap) +{ + int i_ascent, i_descent, i_lineGap; + float scale; + stbtt_fontinfo info; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata, index)); + scale = size > 0 ? stbtt_ScaleForPixelHeight(&info, size) : stbtt_ScaleForMappingEmToPixels(&info, -size); + stbtt_GetFontVMetrics(&info, &i_ascent, &i_descent, &i_lineGap); + *ascent = (float) i_ascent * scale; + *descent = (float) i_descent * scale; + *lineGap = (float) i_lineGap * scale; +} + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer) +{ + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_packedchar *b = chardata + char_index; + + if (align_to_integer) { + float x = (float) STBTT_ifloor((*xpos + b->xoff) + 0.5f); + float y = (float) STBTT_ifloor((*ypos + b->yoff) + 0.5f); + q->x0 = x; + q->y0 = y; + q->x1 = x + b->xoff2 - b->xoff; + q->y1 = y + b->yoff2 - b->yoff; + } else { + q->x0 = *xpos + b->xoff; + q->y0 = *ypos + b->yoff; + q->x1 = *xpos + b->xoff2; + q->y1 = *ypos + b->yoff2; + } + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// sdf computation +// + +#define STBTT_min(a,b) ((a) < (b) ? (a) : (b)) +#define STBTT_max(a,b) ((a) < (b) ? (b) : (a)) + +static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2]) +{ + float q0perp = q0[1]*ray[0] - q0[0]*ray[1]; + float q1perp = q1[1]*ray[0] - q1[0]*ray[1]; + float q2perp = q2[1]*ray[0] - q2[0]*ray[1]; + float roperp = orig[1]*ray[0] - orig[0]*ray[1]; + + float a = q0perp - 2*q1perp + q2perp; + float b = q1perp - q0perp; + float c = q0perp - roperp; + + float s0 = 0., s1 = 0.; + int num_s = 0; + + if (a != 0.0) { + float discr = b*b - a*c; + if (discr > 0.0) { + float rcpna = -1 / a; + float d = (float) STBTT_sqrt(discr); + s0 = (b+d) * rcpna; + s1 = (b-d) * rcpna; + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + if (d > 0.0 && s1 >= 0.0 && s1 <= 1.0) { + if (num_s == 0) s0 = s1; + ++num_s; + } + } + } else { + // 2*b*s + c = 0 + // s = -c / (2*b) + s0 = c / (-2 * b); + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + } + + if (num_s == 0) + return 0; + else { + float rcp_len2 = 1 / (ray[0]*ray[0] + ray[1]*ray[1]); + float rayn_x = ray[0] * rcp_len2, rayn_y = ray[1] * rcp_len2; + + float q0d = q0[0]*rayn_x + q0[1]*rayn_y; + float q1d = q1[0]*rayn_x + q1[1]*rayn_y; + float q2d = q2[0]*rayn_x + q2[1]*rayn_y; + float rod = orig[0]*rayn_x + orig[1]*rayn_y; + + float q10d = q1d - q0d; + float q20d = q2d - q0d; + float q0rd = q0d - rod; + + hits[0][0] = q0rd + s0*(2.0f - 2.0f*s0)*q10d + s0*s0*q20d; + hits[0][1] = a*s0+b; + + if (num_s > 1) { + hits[1][0] = q0rd + s1*(2.0f - 2.0f*s1)*q10d + s1*s1*q20d; + hits[1][1] = a*s1+b; + return 2; + } else { + return 1; + } + } +} + +static int equal(float *a, float *b) +{ + return (a[0] == b[0] && a[1] == b[1]); +} + +static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts) +{ + int i; + float orig[2], ray[2] = { 1, 0 }; + float y_frac; + int winding = 0; + + // make sure y never passes through a vertex of the shape + y_frac = (float) STBTT_fmod(y, 1.0f); + if (y_frac < 0.01f) + y += 0.01f; + else if (y_frac > 0.99f) + y -= 0.01f; + + orig[0] = x; + orig[1] = y; + + // test a ray from (-infinity,y) to (x,y) + for (i=0; i < nverts; ++i) { + if (verts[i].type == STBTT_vline) { + int x0 = (int) verts[i-1].x, y0 = (int) verts[i-1].y; + int x1 = (int) verts[i ].x, y1 = (int) verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } + if (verts[i].type == STBTT_vcurve) { + int x0 = (int) verts[i-1].x , y0 = (int) verts[i-1].y ; + int x1 = (int) verts[i ].cx, y1 = (int) verts[i ].cy; + int x2 = (int) verts[i ].x , y2 = (int) verts[i ].y ; + int ax = STBTT_min(x0,STBTT_min(x1,x2)), ay = STBTT_min(y0,STBTT_min(y1,y2)); + int by = STBTT_max(y0,STBTT_max(y1,y2)); + if (y > ay && y < by && x > ax) { + float q0[2],q1[2],q2[2]; + float hits[2][2]; + q0[0] = (float)x0; + q0[1] = (float)y0; + q1[0] = (float)x1; + q1[1] = (float)y1; + q2[0] = (float)x2; + q2[1] = (float)y2; + if (equal(q0,q1) || equal(q1,q2)) { + x0 = (int)verts[i-1].x; + y0 = (int)verts[i-1].y; + x1 = (int)verts[i ].x; + y1 = (int)verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } else { + int num_hits = stbtt__ray_intersect_bezier(orig, ray, q0, q1, q2, hits); + if (num_hits >= 1) + if (hits[0][0] < 0) + winding += (hits[0][1] < 0 ? -1 : 1); + if (num_hits >= 2) + if (hits[1][0] < 0) + winding += (hits[1][1] < 0 ? -1 : 1); + } + } + } + } + return winding; +} + +static float stbtt__cuberoot( float x ) +{ + if (x<0) + return -(float) STBTT_pow(-x,1.0f/3.0f); + else + return (float) STBTT_pow( x,1.0f/3.0f); +} + +// x^3 + a*x^2 + b*x + c = 0 +static int stbtt__solve_cubic(float a, float b, float c, float* r) +{ + float s = -a / 3; + float p = b - a*a / 3; + float q = a * (2*a*a - 9*b) / 27 + c; + float p3 = p*p*p; + float d = q*q + 4*p3 / 27; + if (d >= 0) { + float z = (float) STBTT_sqrt(d); + float u = (-q + z) / 2; + float v = (-q - z) / 2; + u = stbtt__cuberoot(u); + v = stbtt__cuberoot(v); + r[0] = s + u + v; + return 1; + } else { + float u = (float) STBTT_sqrt(-p/3); + float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative + float m = (float) STBTT_cos(v); + float n = (float) STBTT_cos(v-3.141592/2)*1.732050808f; + r[0] = s + u * 2 * m; + r[1] = s - u * (m + n); + r[2] = s - u * (m - n); + + //STBTT_assert( STBTT_fabs(((r[0]+a)*r[0]+b)*r[0]+c) < 0.05f); // these asserts may not be safe at all scales, though they're in bezier t parameter units so maybe? + //STBTT_assert( STBTT_fabs(((r[1]+a)*r[1]+b)*r[1]+c) < 0.05f); + //STBTT_assert( STBTT_fabs(((r[2]+a)*r[2]+b)*r[2]+c) < 0.05f); + return 3; + } +} + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + float scale_x = scale, scale_y = scale; + int ix0,iy0,ix1,iy1; + int w,h; + unsigned char *data; + + if (scale == 0) return NULL; + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale, scale, 0.0f,0.0f, &ix0,&iy0,&ix1,&iy1); + + // if empty, return NULL + if (ix0 == ix1 || iy0 == iy1) + return NULL; + + ix0 -= padding; + iy0 -= padding; + ix1 += padding; + iy1 += padding; + + w = (ix1 - ix0); + h = (iy1 - iy0); + + if (width ) *width = w; + if (height) *height = h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + // invert for y-downwards bitmaps + scale_y = -scale_y; + + { + int x,y,i,j; + float *precompute; + stbtt_vertex *verts; + int num_verts = stbtt_GetGlyphShape(info, glyph, &verts); + data = (unsigned char *) STBTT_malloc(w * h, info->userdata); + precompute = (float *) STBTT_malloc(num_verts * sizeof(float), info->userdata); + + for (i=0,j=num_verts-1; i < num_verts; j=i++) { + if (verts[i].type == STBTT_vline) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + float x1 = verts[j].x*scale_x, y1 = verts[j].y*scale_y; + float dist = (float) STBTT_sqrt((x1-x0)*(x1-x0) + (y1-y0)*(y1-y0)); + precompute[i] = (dist == 0) ? 0.0f : 1.0f / dist; + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[j].x *scale_x, y2 = verts[j].y *scale_y; + float x1 = verts[i].cx*scale_x, y1 = verts[i].cy*scale_y; + float x0 = verts[i].x *scale_x, y0 = verts[i].y *scale_y; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float len2 = bx*bx + by*by; + if (len2 != 0.0f) + precompute[i] = 1.0f / (bx*bx + by*by); + else + precompute[i] = 0.0f; + } else + precompute[i] = 0.0f; + } + + for (y=iy0; y < iy1; ++y) { + for (x=ix0; x < ix1; ++x) { + float val; + float min_dist = 999999.0f; + float sx = (float) x + 0.5f; + float sy = (float) y + 0.5f; + float x_gspace = (sx / scale_x); + float y_gspace = (sy / scale_y); + + int winding = stbtt__compute_crossings_x(x_gspace, y_gspace, num_verts, verts); // @OPTIMIZE: this could just be a rasterization, but needs to be line vs. non-tesselated curves so a new path + + for (i=0; i < num_verts; ++i) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + + if (verts[i].type == STBTT_vline && precompute[i] != 0.0f) { + float x1 = verts[i-1].x*scale_x, y1 = verts[i-1].y*scale_y; + + float dist,dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + + // coarse culling against bbox + //if (sx > STBTT_min(x0,x1)-min_dist && sx < STBTT_max(x0,x1)+min_dist && + // sy > STBTT_min(y0,y1)-min_dist && sy < STBTT_max(y0,y1)+min_dist) + dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; + STBTT_assert(i != 0); + if (dist < min_dist) { + // check position along line + // x' = x0 + t*(x1-x0), y' = y0 + t*(y1-y0) + // minimize (x'-sx)*(x'-sx)+(y'-sy)*(y'-sy) + float dx = x1-x0, dy = y1-y0; + float px = x0-sx, py = y0-sy; + // minimize (px+t*dx)^2 + (py+t*dy)^2 = px*px + 2*px*dx*t + t^2*dx*dx + py*py + 2*py*dy*t + t^2*dy*dy + // derivative: 2*px*dx + 2*py*dy + (2*dx*dx+2*dy*dy)*t, set to 0 and solve + float t = -(px*dx + py*dy) / (dx*dx + dy*dy); + if (t >= 0.0f && t <= 1.0f) + min_dist = dist; + } + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[i-1].x *scale_x, y2 = verts[i-1].y *scale_y; + float x1 = verts[i ].cx*scale_x, y1 = verts[i ].cy*scale_y; + float box_x0 = STBTT_min(STBTT_min(x0,x1),x2); + float box_y0 = STBTT_min(STBTT_min(y0,y1),y2); + float box_x1 = STBTT_max(STBTT_max(x0,x1),x2); + float box_y1 = STBTT_max(STBTT_max(y0,y1),y2); + // coarse culling against bbox to avoid computing cubic unnecessarily + if (sx > box_x0-min_dist && sx < box_x1+min_dist && sy > box_y0-min_dist && sy < box_y1+min_dist) { + int num=0; + float ax = x1-x0, ay = y1-y0; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float mx = x0 - sx, my = y0 - sy; + float res[3] = {0.f,0.f,0.f}; + float px,py,t,it,dist2; + float a_inv = precompute[i]; + if (a_inv == 0.0) { // if a_inv is 0, it's 2nd degree so use quadratic formula + float a = 3*(ax*bx + ay*by); + float b = 2*(ax*ax + ay*ay) + (mx*bx+my*by); + float c = mx*ax+my*ay; + if (a == 0.0) { // if a is 0, it's linear + if (b != 0.0) { + res[num++] = -c/b; + } + } else { + float discriminant = b*b - 4*a*c; + if (discriminant < 0) + num = 0; + else { + float root = (float) STBTT_sqrt(discriminant); + res[0] = (-b - root)/(2*a); + res[1] = (-b + root)/(2*a); + num = 2; // don't bother distinguishing 1-solution case, as code below will still work + } + } + } else { + float b = 3*(ax*bx + ay*by) * a_inv; // could precompute this as it doesn't depend on sample point + float c = (2*(ax*ax + ay*ay) + (mx*bx+my*by)) * a_inv; + float d = (mx*ax+my*ay) * a_inv; + num = stbtt__solve_cubic(b, c, d, res); + } + dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + + if (num >= 1 && res[0] >= 0.0f && res[0] <= 1.0f) { + t = res[0], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 2 && res[1] >= 0.0f && res[1] <= 1.0f) { + t = res[1], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 3 && res[2] >= 0.0f && res[2] <= 1.0f) { + t = res[2], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + } + } + } + if (winding == 0) + min_dist = -min_dist; // if outside the shape, value is negative + val = onedge_value + pixel_dist_scale * min_dist; + if (val < 0) + val = 0; + else if (val > 255) + val = 255; + data[(y-iy0)*w+(x-ix0)] = (unsigned char) val; + } + } + STBTT_free(precompute, info->userdata); + STBTT_free(verts, info->userdata); + } + return data; +} + +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphSDF(info, scale, stbtt_FindGlyphIndex(info, codepoint), padding, onedge_value, pixel_dist_scale, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +////////////////////////////////////////////////////////////////////////////// +// +// font name matching -- recommended not to use this +// + +// check if a utf8 string contains a prefix which is the utf16 string; if so return length of matching utf8 string +static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2) +{ + stbtt_int32 i=0; + + // convert utf16 to utf8 and compare the results while converting + while (len2) { + stbtt_uint16 ch = s2[0]*256 + s2[1]; + if (ch < 0x80) { + if (i >= len1) return -1; + if (s1[i++] != ch) return -1; + } else if (ch < 0x800) { + if (i+1 >= len1) return -1; + if (s1[i++] != 0xc0 + (ch >> 6)) return -1; + if (s1[i++] != 0x80 + (ch & 0x3f)) return -1; + } else if (ch >= 0xd800 && ch < 0xdc00) { + stbtt_uint32 c; + stbtt_uint16 ch2 = s2[2]*256 + s2[3]; + if (i+3 >= len1) return -1; + c = ((ch - 0xd800) << 10) + (ch2 - 0xdc00) + 0x10000; + if (s1[i++] != 0xf0 + (c >> 18)) return -1; + if (s1[i++] != 0x80 + ((c >> 12) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c ) & 0x3f)) return -1; + s2 += 2; // plus another 2 below + len2 -= 2; + } else if (ch >= 0xdc00 && ch < 0xe000) { + return -1; + } else { + if (i+2 >= len1) return -1; + if (s1[i++] != 0xe0 + (ch >> 12)) return -1; + if (s1[i++] != 0x80 + ((ch >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((ch ) & 0x3f)) return -1; + } + s2 += 2; + len2 -= 2; + } + return i; +} + +static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2) +{ + return len1 == stbtt__CompareUTF8toUTF16_bigendian_prefix((stbtt_uint8*) s1, len1, (stbtt_uint8*) s2, len2); +} + +// returns results in whatever encoding you request... but note that 2-byte encodings +// will be BIG-ENDIAN... use stbtt_CompareUTF8toUTF16_bigendian() to compare +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID) +{ + stbtt_int32 i,count,stringOffset; + stbtt_uint8 *fc = font->data; + stbtt_uint32 offset = font->fontstart; + stbtt_uint32 nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return NULL; + + count = ttUSHORT(fc+nm+2); + stringOffset = nm + ttUSHORT(fc+nm+4); + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + if (platformID == ttUSHORT(fc+loc+0) && encodingID == ttUSHORT(fc+loc+2) + && languageID == ttUSHORT(fc+loc+4) && nameID == ttUSHORT(fc+loc+6)) { + *length = ttUSHORT(fc+loc+8); + return (const char *) (fc+stringOffset+ttUSHORT(fc+loc+10)); + } + } + return NULL; +} + +static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id) +{ + stbtt_int32 i; + stbtt_int32 count = ttUSHORT(fc+nm+2); + stbtt_int32 stringOffset = nm + ttUSHORT(fc+nm+4); + + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + stbtt_int32 id = ttUSHORT(fc+loc+6); + if (id == target_id) { + // find the encoding + stbtt_int32 platform = ttUSHORT(fc+loc+0), encoding = ttUSHORT(fc+loc+2), language = ttUSHORT(fc+loc+4); + + // is this a Unicode encoding? + if (platform == 0 || (platform == 3 && encoding == 1) || (platform == 3 && encoding == 10)) { + stbtt_int32 slen = ttUSHORT(fc+loc+8); + stbtt_int32 off = ttUSHORT(fc+loc+10); + + // check if there's a prefix match + stbtt_int32 matchlen = stbtt__CompareUTF8toUTF16_bigendian_prefix(name, nlen, fc+stringOffset+off,slen); + if (matchlen >= 0) { + // check for target_id+1 immediately following, with same encoding & language + if (i+1 < count && ttUSHORT(fc+loc+12+6) == next_id && ttUSHORT(fc+loc+12) == platform && ttUSHORT(fc+loc+12+2) == encoding && ttUSHORT(fc+loc+12+4) == language) { + slen = ttUSHORT(fc+loc+12+8); + off = ttUSHORT(fc+loc+12+10); + if (slen == 0) { + if (matchlen == nlen) + return 1; + } else if (matchlen < nlen && name[matchlen] == ' ') { + ++matchlen; + if (stbtt_CompareUTF8toUTF16_bigendian_internal((char*) (name+matchlen), nlen-matchlen, (char*)(fc+stringOffset+off),slen)) + return 1; + } + } else { + // if nothing immediately following + if (matchlen == nlen) + return 1; + } + } + } + + // @TODO handle other encodings + } + } + return 0; +} + +static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags) +{ + stbtt_int32 nlen = (stbtt_int32) STBTT_strlen((char *) name); + stbtt_uint32 nm,hd; + if (!stbtt__isfont(fc+offset)) return 0; + + // check italics/bold/underline flags in macStyle... + if (flags) { + hd = stbtt__find_table(fc, offset, "head"); + if ((ttUSHORT(fc+hd+44) & 7) != (flags & 7)) return 0; + } + + nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return 0; + + if (flags) { + // if we checked the macStyle flags, then just check the family and ignore the subfamily + if (stbtt__matchpair(fc, nm, name, nlen, 16, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } else { + if (stbtt__matchpair(fc, nm, name, nlen, 16, 17)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, 2)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } + + return 0; +} + +static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags) +{ + stbtt_int32 i; + for (i=0;;++i) { + stbtt_int32 off = stbtt_GetFontOffsetForIndex(font_collection, i); + if (off < 0) return off; + if (stbtt__matches((stbtt_uint8 *) font_collection, off, (stbtt_uint8*) name_utf8, flags)) + return off; + } +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, + float pixel_height, unsigned char *pixels, int pw, int ph, + int first_char, int num_chars, stbtt_bakedchar *chardata) +{ + return stbtt_BakeFontBitmap_internal((unsigned char *) data, offset, pixel_height, pixels, pw, ph, first_char, num_chars, chardata); +} + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index) +{ + return stbtt_GetFontOffsetForIndex_internal((unsigned char *) data, index); +} + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data) +{ + return stbtt_GetNumberOfFonts_internal((unsigned char *) data); +} + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset) +{ + return stbtt_InitFont_internal(info, (unsigned char *) data, offset); +} + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags) +{ + return stbtt_FindMatchingFont_internal((unsigned char *) fontdata, (char *) name, flags); +} + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2) +{ + return stbtt_CompareUTF8toUTF16_bigendian_internal((char *) s1, len1, (char *) s2, len2); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif // STB_TRUETYPE_IMPLEMENTATION + + +// FULL VERSION HISTORY +// +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() +// 1.19 (2018-02-11) OpenType GPOS kerning (horizontal only), STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) allow user-defined fabs() replacement +// fix memory leak if fontsize=0.0 +// fix warning from duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use alloc userdata for PackFontRanges +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// allow PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// 1.06 (2015-07-14) performance improvements (~35% faster on x86 and x64 on test machine) +// also more precise AA rasterizer, except if shapes overlap +// remove need for STBTT_sort +// 1.05 (2015-04-15) fix misplaced definitions for STBTT_STATIC +// 1.04 (2015-04-15) typo in example +// 1.03 (2015-04-12) STBTT_STATIC, fix memory leak in new packing, various fixes +// 1.02 (2014-12-10) fix various warnings & compile issues w/ stb_rect_pack, C++ +// 1.01 (2014-12-08) fix subpixel position when oversampling to exactly match +// non-oversampled; STBTT_POINT_SIZE for packed case only +// 1.00 (2014-12-06) add new PackBegin etc. API, w/ support for oversampling +// 0.99 (2014-09-18) fix multiple bugs with subpixel rendering (ryg) +// 0.9 (2014-08-07) support certain mac/iOS fonts without an MS platformID +// 0.8b (2014-07-07) fix a warning +// 0.8 (2014-05-25) fix a few more warnings +// 0.7 (2013-09-25) bugfix: subpixel glyph bug fixed in 0.5 had come back +// 0.6c (2012-07-24) improve documentation +// 0.6b (2012-07-20) fix a few more warnings +// 0.6 (2012-07-17) fix warnings; added stbtt_ScaleForMappingEmToPixels, +// stbtt_GetFontBoundingBox, stbtt_IsGlyphEmpty +// 0.5 (2011-12-09) bugfixes: +// subpixel glyph renderer computed wrong bounding box +// first vertex of shape can be off-curve (FreeSans) +// 0.4b (2011-12-03) fixed an error in the font baking example +// 0.4 (2011-12-01) kerning, subpixel rendering (tor) +// bugfixes for: +// codepoint-to-glyph conversion using table fmt=12 +// codepoint-to-glyph conversion using table fmt=4 +// stbtt_GetBakedQuad with non-square texture (Zer) +// updated Hello World! sample to use kerning and subpixel +// fixed some warnings +// 0.3 (2009-06-24) cmap fmt=12, compound shapes (MM) +// userdata, malloc-from-userdata, non-zero fill (stb) +// 0.2 (2009-03-11) Fix unsigned/signed char warnings +// 0.1 (2009-03-09) First public release +// + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/README.md b/imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/README.md new file mode 100644 index 000000000..5fcfc2d79 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/README.md @@ -0,0 +1,37 @@ +# imgui_freetype + +Build font atlases using FreeType instead of stb_truetype (which is the default font rasterizer). +
by @vuhdo, @mikesart, @ocornut. + +### Usage + +1. Get latest FreeType binaries or build yourself (under Windows you may use vcpkg with `vcpkg install freetype --triplet=x64-windows`, `vcpkg integrate install`). +2. Add imgui_freetype.h/cpp alongside your project files. +3. Add `#define IMGUI_ENABLE_FREETYPE` in your [imconfig.h](https://github.com/ocornut/imgui/blob/master/imconfig.h) file + +### About Gamma Correct Blending + +FreeType assumes blending in linear space rather than gamma space. +See FreeType note for [FT_Render_Glyph](https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Glyph). +For correct results you need to be using sRGB and convert to linear space in the pixel shader output. +The default Dear ImGui styles will be impacted by this change (alpha values will need tweaking). + +### Testbed for toying with settings (for developers) + +See https://gist.github.com/ocornut/b3a9ecf13502fd818799a452969649ad + +### Known issues + +- Oversampling settins are ignored but also not so much necessary with the higher quality rendering. + +### Comparaison + +Small, thin anti-aliased fonts typically benefit a lot from FreeType's hinting: +![comparing_font_rasterizers](https://user-images.githubusercontent.com/8225057/107550178-fef87f00-6bd0-11eb-8d09-e2edb2f0ccfc.gif) + +### Colorful glyphs/emojis + +You can use the `ImGuiFreeTypeBuilderFlags_LoadColor` flag to load certain colorful glyphs. See the +["Using Colorful Glyphs/Emojis"](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md#using-colorful-glyphsemojis) section of FONTS.md. + +![colored glyphs](https://user-images.githubusercontent.com/8225057/106171241-9dc4ba80-6191-11eb-8a69-ca1467b206d1.png) diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/imgui_freetype.cpp b/imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/imgui_freetype.cpp new file mode 100644 index 000000000..03255326b --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/imgui_freetype.cpp @@ -0,0 +1,780 @@ +// dear imgui: FreeType font builder (used as a replacement for the stb_truetype builder) +// (code) + +// Get the latest version at https://github.com/ocornut/imgui/tree/master/misc/freetype +// Original code by @vuhdo (Aleksei Skriabin). Improvements by @mikesart. Maintained since 2019 by @ocornut. + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2021/08/23: fixed crash when FT_Render_Glyph() fails to render a glyph and returns NULL. +// 2021/03/05: added ImGuiFreeTypeBuilderFlags_Bitmap to load bitmap glyphs. +// 2021/03/02: set 'atlas->TexPixelsUseColors = true' to help some backends with deciding of a prefered texture format. +// 2021/01/28: added support for color-layered glyphs via ImGuiFreeTypeBuilderFlags_LoadColor (require Freetype 2.10+). +// 2021/01/26: simplified integration by using '#define IMGUI_ENABLE_FREETYPE'. +// renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. removed ImGuiFreeType::BuildFontAtlas(). +// 2020/06/04: fix for rare case where FT_Get_Char_Index() succeed but FT_Load_Glyph() fails. +// 2019/02/09: added RasterizerFlags::Monochrome flag to disable font anti-aliasing (combine with ::MonoHinting for best results!) +// 2019/01/15: added support for imgui allocators + added FreeType only override function SetAllocatorFunctions(). +// 2019/01/10: re-factored to match big update in STB builder. fixed texture height waste. fixed redundant glyphs when merging. support for glyph padding. +// 2018/06/08: added support for ImFontConfig::GlyphMinAdvanceX, GlyphMaxAdvanceX. +// 2018/02/04: moved to main imgui repository (away from http://www.github.com/ocornut/imgui_club) +// 2018/01/22: fix for addition of ImFontAtlas::TexUvscale member. +// 2017/10/22: minor inconsequential change to match change in master (removed an unnecessary statement). +// 2017/09/26: fixes for imgui internal changes. +// 2017/08/26: cleanup, optimizations, support for ImFontConfig::RasterizerFlags, ImFontConfig::RasterizerMultiply. +// 2017/08/16: imported from https://github.com/Vuhdo/imgui_freetype into http://www.github.com/ocornut/imgui_club, updated for latest changes in ImFontAtlas, minor tweaks. + +// About Gamma Correct Blending: +// - FreeType assumes blending in linear space rather than gamma space. +// - See https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Glyph +// - For correct results you need to be using sRGB and convert to linear space in the pixel shader output. +// - The default dear imgui styles will be impacted by this change (alpha values will need tweaking). + +// FIXME: cfg.OversampleH, OversampleV are not supported (but perhaps not so necessary with this rasterizer). + +#include "imgui_freetype.h" +#include "imgui_internal.h" // ImMin,ImMax,ImFontAtlasBuild*, +#include +#include +#include FT_FREETYPE_H // +#include FT_MODULE_H // +#include FT_GLYPH_H // +#include FT_SYNTHESIS_H // + +#ifdef _MSC_VER +#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +#if defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#endif + +//------------------------------------------------------------------------- +// Data +//------------------------------------------------------------------------- + +// Default memory allocators +static void* ImGuiFreeTypeDefaultAllocFunc(size_t size, void* user_data) { IM_UNUSED(user_data); return IM_ALLOC(size); } +static void ImGuiFreeTypeDefaultFreeFunc(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_FREE(ptr); } + +// Current memory allocators +static void* (*GImGuiFreeTypeAllocFunc)(size_t size, void* user_data) = ImGuiFreeTypeDefaultAllocFunc; +static void (*GImGuiFreeTypeFreeFunc)(void* ptr, void* user_data) = ImGuiFreeTypeDefaultFreeFunc; +static void* GImGuiFreeTypeAllocatorUserData = NULL; + +//------------------------------------------------------------------------- +// Code +//------------------------------------------------------------------------- + +namespace +{ + // Glyph metrics: + // -------------- + // + // xmin xmax + // | | + // |<-------- width -------->| + // | | + // | +-------------------------+----------------- ymax + // | | ggggggggg ggggg | ^ ^ + // | | g:::::::::ggg::::g | | | + // | | g:::::::::::::::::g | | | + // | | g::::::ggggg::::::gg | | | + // | | g:::::g g:::::g | | | + // offsetX -|-------->| g:::::g g:::::g | offsetY | + // | | g:::::g g:::::g | | | + // | | g::::::g g:::::g | | | + // | | g:::::::ggggg:::::g | | | + // | | g::::::::::::::::g | | height + // | | gg::::::::::::::g | | | + // baseline ---*---------|---- gggggggg::::::g-----*-------- | + // / | | g:::::g | | + // origin | | gggggg g:::::g | | + // | | g:::::gg gg:::::g | | + // | | g::::::ggg:::::::g | | + // | | gg:::::::::::::g | | + // | | ggg::::::ggg | | + // | | gggggg | v + // | +-------------------------+----------------- ymin + // | | + // |------------- advanceX ----------->| + + // A structure that describe a glyph. + struct GlyphInfo + { + int Width; // Glyph's width in pixels. + int Height; // Glyph's height in pixels. + FT_Int OffsetX; // The distance from the origin ("pen position") to the left of the glyph. + FT_Int OffsetY; // The distance from the origin to the top of the glyph. This is usually a value < 0. + float AdvanceX; // The distance from the origin to the origin of the next glyph. This is usually a value > 0. + bool IsColored; // The glyph is colored + }; + + // Font parameters and metrics. + struct FontInfo + { + uint32_t PixelHeight; // Size this font was generated with. + float Ascender; // The pixel extents above the baseline in pixels (typically positive). + float Descender; // The extents below the baseline in pixels (typically negative). + float LineSpacing; // The baseline-to-baseline distance. Note that it usually is larger than the sum of the ascender and descender taken as absolute values. There is also no guarantee that no glyphs extend above or below subsequent baselines when using this distance. Think of it as a value the designer of the font finds appropriate. + float LineGap; // The spacing in pixels between one row's descent and the next row's ascent. + float MaxAdvanceWidth; // This field gives the maximum horizontal cursor advance for all glyphs in the font. + }; + + // FreeType glyph rasterizer. + // NB: No ctor/dtor, explicitly call Init()/Shutdown() + struct FreeTypeFont + { + bool InitFont(FT_Library ft_library, const ImFontConfig& cfg, unsigned int extra_user_flags); // Initialize from an external data buffer. Doesn't copy data, and you must ensure it stays valid up to this object lifetime. + void CloseFont(); + void SetPixelHeight(int pixel_height); // Change font pixel size. All following calls to RasterizeGlyph() will use this size + const FT_Glyph_Metrics* LoadGlyph(uint32_t in_codepoint); + const FT_Bitmap* RenderGlyphAndGetInfo(GlyphInfo* out_glyph_info); + void BlitGlyph(const FT_Bitmap* ft_bitmap, uint32_t* dst, uint32_t dst_pitch, unsigned char* multiply_table = NULL); + ~FreeTypeFont() { CloseFont(); } + + // [Internals] + FontInfo Info; // Font descriptor of the current font. + FT_Face Face; + unsigned int UserFlags; // = ImFontConfig::RasterizerFlags + FT_Int32 LoadFlags; + FT_Render_Mode RenderMode; + }; + + // From SDL_ttf: Handy routines for converting from fixed point + #define FT_CEIL(X) (((X + 63) & -64) / 64) + + bool FreeTypeFont::InitFont(FT_Library ft_library, const ImFontConfig& cfg, unsigned int extra_font_builder_flags) + { + FT_Error error = FT_New_Memory_Face(ft_library, (uint8_t*)cfg.FontData, (uint32_t)cfg.FontDataSize, (uint32_t)cfg.FontNo, &Face); + if (error != 0) + return false; + error = FT_Select_Charmap(Face, FT_ENCODING_UNICODE); + if (error != 0) + return false; + + // Convert to FreeType flags (NB: Bold and Oblique are processed separately) + UserFlags = cfg.FontBuilderFlags | extra_font_builder_flags; + + LoadFlags = 0; + if ((UserFlags & ImGuiFreeTypeBuilderFlags_Bitmap) == 0) + LoadFlags |= FT_LOAD_NO_BITMAP; + + if (UserFlags & ImGuiFreeTypeBuilderFlags_NoHinting) + LoadFlags |= FT_LOAD_NO_HINTING; + if (UserFlags & ImGuiFreeTypeBuilderFlags_NoAutoHint) + LoadFlags |= FT_LOAD_NO_AUTOHINT; + if (UserFlags & ImGuiFreeTypeBuilderFlags_ForceAutoHint) + LoadFlags |= FT_LOAD_FORCE_AUTOHINT; + if (UserFlags & ImGuiFreeTypeBuilderFlags_LightHinting) + LoadFlags |= FT_LOAD_TARGET_LIGHT; + else if (UserFlags & ImGuiFreeTypeBuilderFlags_MonoHinting) + LoadFlags |= FT_LOAD_TARGET_MONO; + else + LoadFlags |= FT_LOAD_TARGET_NORMAL; + + if (UserFlags & ImGuiFreeTypeBuilderFlags_Monochrome) + RenderMode = FT_RENDER_MODE_MONO; + else + RenderMode = FT_RENDER_MODE_NORMAL; + + if (UserFlags & ImGuiFreeTypeBuilderFlags_LoadColor) + LoadFlags |= FT_LOAD_COLOR; + + memset(&Info, 0, sizeof(Info)); + SetPixelHeight((uint32_t)cfg.SizePixels); + + return true; + } + + void FreeTypeFont::CloseFont() + { + if (Face) + { + FT_Done_Face(Face); + Face = NULL; + } + } + + void FreeTypeFont::SetPixelHeight(int pixel_height) + { + // Vuhdo: I'm not sure how to deal with font sizes properly. As far as I understand, currently ImGui assumes that the 'pixel_height' + // is a maximum height of an any given glyph, i.e. it's the sum of font's ascender and descender. Seems strange to me. + // NB: FT_Set_Pixel_Sizes() doesn't seem to get us the same result. + FT_Size_RequestRec req; + req.type = (UserFlags & ImGuiFreeTypeBuilderFlags_Bitmap) ? FT_SIZE_REQUEST_TYPE_NOMINAL : FT_SIZE_REQUEST_TYPE_REAL_DIM; + req.width = 0; + req.height = (uint32_t)pixel_height * 64; + req.horiResolution = 0; + req.vertResolution = 0; + FT_Request_Size(Face, &req); + + // Update font info + FT_Size_Metrics metrics = Face->size->metrics; + Info.PixelHeight = (uint32_t)pixel_height; + Info.Ascender = (float)FT_CEIL(metrics.ascender); + Info.Descender = (float)FT_CEIL(metrics.descender); + Info.LineSpacing = (float)FT_CEIL(metrics.height); + Info.LineGap = (float)FT_CEIL(metrics.height - metrics.ascender + metrics.descender); + Info.MaxAdvanceWidth = (float)FT_CEIL(metrics.max_advance); + } + + const FT_Glyph_Metrics* FreeTypeFont::LoadGlyph(uint32_t codepoint) + { + uint32_t glyph_index = FT_Get_Char_Index(Face, codepoint); + if (glyph_index == 0) + return NULL; + + // If this crash for you: FreeType 2.11.0 has a crash bug on some bitmap/colored fonts. + // - https://gitlab.freedesktop.org/freetype/freetype/-/issues/1076 + // - https://github.com/ocornut/imgui/issues/4567 + // - https://github.com/ocornut/imgui/issues/4566 + // You can use FreeType 2.10, or the patched version of 2.11.0 in VcPkg, or probably any upcoming FreeType version. + FT_Error error = FT_Load_Glyph(Face, glyph_index, LoadFlags); + if (error) + return NULL; + + // Need an outline for this to work + FT_GlyphSlot slot = Face->glyph; + IM_ASSERT(slot->format == FT_GLYPH_FORMAT_OUTLINE || slot->format == FT_GLYPH_FORMAT_BITMAP); + + // Apply convenience transform (this is not picking from real "Bold"/"Italic" fonts! Merely applying FreeType helper transform. Oblique == Slanting) + if (UserFlags & ImGuiFreeTypeBuilderFlags_Bold) + FT_GlyphSlot_Embolden(slot); + if (UserFlags & ImGuiFreeTypeBuilderFlags_Oblique) + { + FT_GlyphSlot_Oblique(slot); + //FT_BBox bbox; + //FT_Outline_Get_BBox(&slot->outline, &bbox); + //slot->metrics.width = bbox.xMax - bbox.xMin; + //slot->metrics.height = bbox.yMax - bbox.yMin; + } + + return &slot->metrics; + } + + const FT_Bitmap* FreeTypeFont::RenderGlyphAndGetInfo(GlyphInfo* out_glyph_info) + { + FT_GlyphSlot slot = Face->glyph; + FT_Error error = FT_Render_Glyph(slot, RenderMode); + if (error != 0) + return NULL; + + FT_Bitmap* ft_bitmap = &Face->glyph->bitmap; + out_glyph_info->Width = (int)ft_bitmap->width; + out_glyph_info->Height = (int)ft_bitmap->rows; + out_glyph_info->OffsetX = Face->glyph->bitmap_left; + out_glyph_info->OffsetY = -Face->glyph->bitmap_top; + out_glyph_info->AdvanceX = (float)FT_CEIL(slot->advance.x); + out_glyph_info->IsColored = (ft_bitmap->pixel_mode == FT_PIXEL_MODE_BGRA); + + return ft_bitmap; + } + + void FreeTypeFont::BlitGlyph(const FT_Bitmap* ft_bitmap, uint32_t* dst, uint32_t dst_pitch, unsigned char* multiply_table) + { + IM_ASSERT(ft_bitmap != NULL); + const uint32_t w = ft_bitmap->width; + const uint32_t h = ft_bitmap->rows; + const uint8_t* src = ft_bitmap->buffer; + const uint32_t src_pitch = ft_bitmap->pitch; + + switch (ft_bitmap->pixel_mode) + { + case FT_PIXEL_MODE_GRAY: // Grayscale image, 1 byte per pixel. + { + if (multiply_table == NULL) + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + for (uint32_t x = 0; x < w; x++) + dst[x] = IM_COL32(255, 255, 255, src[x]); + } + else + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + for (uint32_t x = 0; x < w; x++) + dst[x] = IM_COL32(255, 255, 255, multiply_table[src[x]]); + } + break; + } + case FT_PIXEL_MODE_MONO: // Monochrome image, 1 bit per pixel. The bits in each byte are ordered from MSB to LSB. + { + uint8_t color0 = multiply_table ? multiply_table[0] : 0; + uint8_t color1 = multiply_table ? multiply_table[255] : 255; + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + { + uint8_t bits = 0; + const uint8_t* bits_ptr = src; + for (uint32_t x = 0; x < w; x++, bits <<= 1) + { + if ((x & 7) == 0) + bits = *bits_ptr++; + dst[x] = IM_COL32(255, 255, 255, (bits & 0x80) ? color1 : color0); + } + } + break; + } + case FT_PIXEL_MODE_BGRA: + { + // FIXME: Converting pre-multiplied alpha to straight. Doesn't smell good. + #define DE_MULTIPLY(color, alpha) (ImU32)(255.0f * (float)color / (float)alpha + 0.5f) + if (multiply_table == NULL) + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + for (uint32_t x = 0; x < w; x++) + { + uint8_t r = src[x * 4 + 2], g = src[x * 4 + 1], b = src[x * 4], a = src[x * 4 + 3]; + dst[x] = IM_COL32(DE_MULTIPLY(r, a), DE_MULTIPLY(g, a), DE_MULTIPLY(b, a), a); + } + } + else + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + { + for (uint32_t x = 0; x < w; x++) + { + uint8_t r = src[x * 4 + 2], g = src[x * 4 + 1], b = src[x * 4], a = src[x * 4 + 3]; + dst[x] = IM_COL32(multiply_table[DE_MULTIPLY(r, a)], multiply_table[DE_MULTIPLY(g, a)], multiply_table[DE_MULTIPLY(b, a)], multiply_table[a]); + } + } + } + #undef DE_MULTIPLY + break; + } + default: + IM_ASSERT(0 && "FreeTypeFont::BlitGlyph(): Unknown bitmap pixel mode!"); + } + } +} + +#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION +#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) +#define STBRP_STATIC +#define STB_RECT_PACK_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_RECT_PACK_FILENAME +#include IMGUI_STB_RECT_PACK_FILENAME +#else +#include "imstb_rectpack.h" +#endif +#endif + +struct ImFontBuildSrcGlyphFT +{ + GlyphInfo Info; + uint32_t Codepoint; + unsigned int* BitmapData; // Point within one of the dst_tmp_bitmap_buffers[] array + + ImFontBuildSrcGlyphFT() { memset((void*)this, 0, sizeof(*this)); } +}; + +struct ImFontBuildSrcDataFT +{ + FreeTypeFont Font; + stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. + const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) + int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] + int GlyphsHighest; // Highest requested codepoint + int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) + ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) + ImVector GlyphsList; +}; + +// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) +struct ImFontBuildDstDataFT +{ + int SrcCount; // Number of source fonts targeting this destination font. + int GlyphsHighest; + int GlyphsCount; + ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. +}; + +bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, unsigned int extra_flags) +{ + IM_ASSERT(atlas->ConfigData.Size > 0); + + ImFontAtlasBuildInit(atlas); + + // Clear atlas + atlas->TexID = (ImTextureID)NULL; + atlas->TexWidth = atlas->TexHeight = 0; + atlas->TexUvScale = ImVec2(0.0f, 0.0f); + atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); + atlas->ClearTexData(); + + // Temporary storage for building + bool src_load_color = false; + ImVector src_tmp_array; + ImVector dst_tmp_array; + src_tmp_array.resize(atlas->ConfigData.Size); + dst_tmp_array.resize(atlas->Fonts.Size); + memset((void*)src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); + memset((void*)dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); + + // 1. Initialize font loading structure, check font data validity + for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + FreeTypeFont& font_face = src_tmp.Font; + IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); + + // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) + src_tmp.DstIndex = -1; + for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) + if (cfg.DstFont == atlas->Fonts[output_i]) + src_tmp.DstIndex = output_i; + IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? + if (src_tmp.DstIndex == -1) + return false; + + // Load font + if (!font_face.InitFont(ft_library, cfg, extra_flags)) + return false; + + // Measure highest codepoints + src_load_color |= (cfg.FontBuilderFlags & ImGuiFreeTypeBuilderFlags_LoadColor) != 0; + ImFontBuildDstDataFT& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); + dst_tmp.SrcCount++; + dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); + } + + // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. + int total_glyphs_count = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + ImFontBuildDstDataFT& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); + if (dst_tmp.GlyphsSet.Storage.empty()) + dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); + + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + for (int codepoint = src_range[0]; codepoint <= (int)src_range[1]; codepoint++) + { + if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option (e.g. MergeOverwrite) + continue; + uint32_t glyph_index = FT_Get_Char_Index(src_tmp.Font.Face, codepoint); // It is actually in the font? (FIXME-OPT: We are not storing the glyph_index..) + if (glyph_index == 0) + continue; + + // Add to avail set/counters + src_tmp.GlyphsCount++; + dst_tmp.GlyphsCount++; + src_tmp.GlyphsSet.SetBit(codepoint); + dst_tmp.GlyphsSet.SetBit(codepoint); + total_glyphs_count++; + } + } + + // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); + + IM_ASSERT(sizeof(src_tmp.GlyphsSet.Storage.Data[0]) == sizeof(ImU32)); + const ImU32* it_begin = src_tmp.GlyphsSet.Storage.begin(); + const ImU32* it_end = src_tmp.GlyphsSet.Storage.end(); + for (const ImU32* it = it_begin; it < it_end; it++) + if (ImU32 entries_32 = *it) + for (ImU32 bit_n = 0; bit_n < 32; bit_n++) + if (entries_32 & ((ImU32)1 << bit_n)) + { + ImFontBuildSrcGlyphFT src_glyph; + src_glyph.Codepoint = (ImWchar)(((it - it_begin) << 5) + bit_n); + //src_glyph.GlyphIndex = 0; // FIXME-OPT: We had this info in the previous step and lost it.. + src_tmp.GlyphsList.push_back(src_glyph); + } + src_tmp.GlyphsSet.Clear(); + IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); + } + for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) + dst_tmp_array[dst_i].GlyphsSet.Clear(); + dst_tmp_array.clear(); + + // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) + // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) + ImVector buf_rects; + buf_rects.resize(total_glyphs_count); + memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); + + // Allocate temporary rasterization data buffers. + // We could not find a way to retrieve accurate glyph size without rendering them. + // (e.g. slot->metrics->width not always matching bitmap->width, especially considering the Oblique transform) + // We allocate in chunks of 256 KB to not waste too much extra memory ahead. Hopefully users of FreeType won't mind the temporary allocations. + const int BITMAP_BUFFERS_CHUNK_SIZE = 256 * 1024; + int buf_bitmap_current_used_bytes = 0; + ImVector buf_bitmap_buffers; + buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); + + // 4. Gather glyphs sizes so we can pack them in our virtual canvas. + // 8. Render/rasterize font characters into the texture + int total_surface = 0; + int buf_rects_out_n = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + src_tmp.Rects = &buf_rects[buf_rects_out_n]; + buf_rects_out_n += src_tmp.GlyphsCount; + + // Compute multiply table if requested + const bool multiply_enabled = (cfg.RasterizerMultiply != 1.0f); + unsigned char multiply_table[256]; + if (multiply_enabled) + ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); + + // Gather the sizes of all rectangles we will need to pack + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) + { + ImFontBuildSrcGlyphFT& src_glyph = src_tmp.GlyphsList[glyph_i]; + + const FT_Glyph_Metrics* metrics = src_tmp.Font.LoadGlyph(src_glyph.Codepoint); + if (metrics == NULL) + continue; + + // Render glyph into a bitmap (currently held by FreeType) + const FT_Bitmap* ft_bitmap = src_tmp.Font.RenderGlyphAndGetInfo(&src_glyph.Info); + if (ft_bitmap == NULL) + continue; + + // Allocate new temporary chunk if needed + const int bitmap_size_in_bytes = src_glyph.Info.Width * src_glyph.Info.Height * 4; + if (buf_bitmap_current_used_bytes + bitmap_size_in_bytes > BITMAP_BUFFERS_CHUNK_SIZE) + { + buf_bitmap_current_used_bytes = 0; + buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); + } + IM_ASSERT(buf_bitmap_current_used_bytes + bitmap_size_in_bytes <= BITMAP_BUFFERS_CHUNK_SIZE); // We could probably allocate custom-sized buffer instead. + + // Blit rasterized pixels to our temporary buffer and keep a pointer to it. + src_glyph.BitmapData = (unsigned int*)(buf_bitmap_buffers.back() + buf_bitmap_current_used_bytes); + buf_bitmap_current_used_bytes += bitmap_size_in_bytes; + src_tmp.Font.BlitGlyph(ft_bitmap, src_glyph.BitmapData, src_glyph.Info.Width, multiply_enabled ? multiply_table : NULL); + + src_tmp.Rects[glyph_i].w = (stbrp_coord)(src_glyph.Info.Width + padding); + src_tmp.Rects[glyph_i].h = (stbrp_coord)(src_glyph.Info.Height + padding); + total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; + } + } + + // We need a width for the skyline algorithm, any width! + // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. + // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. + const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; + atlas->TexHeight = 0; + if (atlas->TexDesiredWidth > 0) + atlas->TexWidth = atlas->TexDesiredWidth; + else + atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; + + // 5. Start packing + // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). + const int TEX_HEIGHT_MAX = 1024 * 32; + const int num_nodes_for_packing_algorithm = atlas->TexWidth - atlas->TexGlyphPadding; + ImVector pack_nodes; + pack_nodes.resize(num_nodes_for_packing_algorithm); + stbrp_context pack_context; + stbrp_init_target(&pack_context, atlas->TexWidth, TEX_HEIGHT_MAX, pack_nodes.Data, pack_nodes.Size); + ImFontAtlasBuildPackCustomRects(atlas, &pack_context); + + // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbrp_pack_rects(&pack_context, src_tmp.Rects, src_tmp.GlyphsCount); + + // Extend texture height and mark missing glyphs as non-packed so we won't render them. + // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + if (src_tmp.Rects[glyph_i].was_packed) + atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); + } + + // 7. Allocate texture + atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); + atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); + if (src_load_color) + { + size_t tex_size = (size_t)atlas->TexWidth * atlas->TexHeight * 4; + atlas->TexPixelsRGBA32 = (unsigned int*)IM_ALLOC(tex_size); + memset(atlas->TexPixelsRGBA32, 0, tex_size); + } + else + { + size_t tex_size = (size_t)atlas->TexWidth * atlas->TexHeight * 1; + atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(tex_size); + memset(atlas->TexPixelsAlpha8, 0, tex_size); + } + + // 8. Copy rasterized font characters back into the main texture + // 9. Setup ImFont and glyphs for runtime + bool tex_use_colors = false; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + // When merging fonts with MergeMode=true: + // - We can have multiple input fonts writing into a same destination font. + // - dst_font->ConfigData is != from cfg which is our source configuration. + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFont* dst_font = cfg.DstFont; + + const float ascent = src_tmp.Font.Info.Ascender; + const float descent = src_tmp.Font.Info.Descender; + ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); + const float font_off_x = cfg.GlyphOffset.x; + const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); + + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + { + ImFontBuildSrcGlyphFT& src_glyph = src_tmp.GlyphsList[glyph_i]; + stbrp_rect& pack_rect = src_tmp.Rects[glyph_i]; + IM_ASSERT(pack_rect.was_packed); + if (pack_rect.w == 0 && pack_rect.h == 0) + continue; + + GlyphInfo& info = src_glyph.Info; + IM_ASSERT(info.Width + padding <= pack_rect.w); + IM_ASSERT(info.Height + padding <= pack_rect.h); + const int tx = pack_rect.x + padding; + const int ty = pack_rect.y + padding; + + // Register glyph + float x0 = info.OffsetX + font_off_x; + float y0 = info.OffsetY + font_off_y; + float x1 = x0 + info.Width; + float y1 = y0 + info.Height; + float u0 = (tx) / (float)atlas->TexWidth; + float v0 = (ty) / (float)atlas->TexHeight; + float u1 = (tx + info.Width) / (float)atlas->TexWidth; + float v1 = (ty + info.Height) / (float)atlas->TexHeight; + dst_font->AddGlyph(&cfg, (ImWchar)src_glyph.Codepoint, x0, y0, x1, y1, u0, v0, u1, v1, info.AdvanceX); + + ImFontGlyph* dst_glyph = &dst_font->Glyphs.back(); + IM_ASSERT(dst_glyph->Codepoint == src_glyph.Codepoint); + if (src_glyph.Info.IsColored) + dst_glyph->Colored = tex_use_colors = true; + + // Blit from temporary buffer to final texture + size_t blit_src_stride = (size_t)src_glyph.Info.Width; + size_t blit_dst_stride = (size_t)atlas->TexWidth; + unsigned int* blit_src = src_glyph.BitmapData; + if (atlas->TexPixelsAlpha8 != NULL) + { + unsigned char* blit_dst = atlas->TexPixelsAlpha8 + (ty * blit_dst_stride) + tx; + for (int y = 0; y < info.Height; y++, blit_dst += blit_dst_stride, blit_src += blit_src_stride) + for (int x = 0; x < info.Width; x++) + blit_dst[x] = (unsigned char)((blit_src[x] >> IM_COL32_A_SHIFT) & 0xFF); + } + else + { + unsigned int* blit_dst = atlas->TexPixelsRGBA32 + (ty * blit_dst_stride) + tx; + for (int y = 0; y < info.Height; y++, blit_dst += blit_dst_stride, blit_src += blit_src_stride) + for (int x = 0; x < info.Width; x++) + blit_dst[x] = blit_src[x]; + } + } + + src_tmp.Rects = NULL; + } + atlas->TexPixelsUseColors = tex_use_colors; + + // Cleanup + for (int buf_i = 0; buf_i < buf_bitmap_buffers.Size; buf_i++) + IM_FREE(buf_bitmap_buffers[buf_i]); + src_tmp_array.clear_destruct(); + + ImFontAtlasBuildFinish(atlas); + + return true; +} + +// FreeType memory allocation callbacks +static void* FreeType_Alloc(FT_Memory /*memory*/, long size) +{ + return GImGuiFreeTypeAllocFunc((size_t)size, GImGuiFreeTypeAllocatorUserData); +} + +static void FreeType_Free(FT_Memory /*memory*/, void* block) +{ + GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); +} + +static void* FreeType_Realloc(FT_Memory /*memory*/, long cur_size, long new_size, void* block) +{ + // Implement realloc() as we don't ask user to provide it. + if (block == NULL) + return GImGuiFreeTypeAllocFunc((size_t)new_size, GImGuiFreeTypeAllocatorUserData); + + if (new_size == 0) + { + GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); + return NULL; + } + + if (new_size > cur_size) + { + void* new_block = GImGuiFreeTypeAllocFunc((size_t)new_size, GImGuiFreeTypeAllocatorUserData); + memcpy(new_block, block, (size_t)cur_size); + GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); + return new_block; + } + + return block; +} + +static bool ImFontAtlasBuildWithFreeType(ImFontAtlas* atlas) +{ + // FreeType memory management: https://www.freetype.org/freetype2/docs/design/design-4.html + FT_MemoryRec_ memory_rec = {}; + memory_rec.user = NULL; + memory_rec.alloc = &FreeType_Alloc; + memory_rec.free = &FreeType_Free; + memory_rec.realloc = &FreeType_Realloc; + + // https://www.freetype.org/freetype2/docs/reference/ft2-module_management.html#FT_New_Library + FT_Library ft_library; + FT_Error error = FT_New_Library(&memory_rec, &ft_library); + if (error != 0) + return false; + + // If you don't call FT_Add_Default_Modules() the rest of code may work, but FreeType won't use our custom allocator. + FT_Add_Default_Modules(ft_library); + + bool ret = ImFontAtlasBuildWithFreeTypeEx(ft_library, atlas, atlas->FontBuilderFlags); + FT_Done_Library(ft_library); + + return ret; +} + +const ImFontBuilderIO* ImGuiFreeType::GetBuilderForFreeType() +{ + static ImFontBuilderIO io; + io.FontBuilder_Build = ImFontAtlasBuildWithFreeType; + return &io; +} + +void ImGuiFreeType::SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data) +{ + GImGuiFreeTypeAllocFunc = alloc_func; + GImGuiFreeTypeFreeFunc = free_func; + GImGuiFreeTypeAllocatorUserData = user_data; +} diff --git a/imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/imgui_freetype.h b/imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/imgui_freetype.h new file mode 100644 index 000000000..713e4639e --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/imgui/misc/freetype/imgui_freetype.h @@ -0,0 +1,50 @@ +// dear imgui: FreeType font builder (used as a replacement for the stb_truetype builder) +// (headers) + +#pragma once + +#include "imgui.h" // IMGUI_API + +// Forward declarations +struct ImFontAtlas; +struct ImFontBuilderIO; + +// Hinting greatly impacts visuals (and glyph sizes). +// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter. +// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h +// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way. +// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer. +// You can set those flags globaly in ImFontAtlas::FontBuilderFlags +// You can set those flags on a per font basis in ImFontConfig::FontBuilderFlags +enum ImGuiFreeTypeBuilderFlags +{ + ImGuiFreeTypeBuilderFlags_NoHinting = 1 << 0, // Disable hinting. This generally generates 'blurrier' bitmap glyphs when the glyph are rendered in any of the anti-aliased modes. + ImGuiFreeTypeBuilderFlags_NoAutoHint = 1 << 1, // Disable auto-hinter. + ImGuiFreeTypeBuilderFlags_ForceAutoHint = 1 << 2, // Indicates that the auto-hinter is preferred over the font's native hinter. + ImGuiFreeTypeBuilderFlags_LightHinting = 1 << 3, // A lighter hinting algorithm for gray-level modes. Many generated glyphs are fuzzier but better resemble their original shape. This is achieved by snapping glyphs to the pixel grid only vertically (Y-axis), as is done by Microsoft's ClearType and Adobe's proprietary font renderer. This preserves inter-glyph spacing in horizontal text. + ImGuiFreeTypeBuilderFlags_MonoHinting = 1 << 4, // Strong hinting algorithm that should only be used for monochrome output. + ImGuiFreeTypeBuilderFlags_Bold = 1 << 5, // Styling: Should we artificially embolden the font? + ImGuiFreeTypeBuilderFlags_Oblique = 1 << 6, // Styling: Should we slant the font, emulating italic style? + ImGuiFreeTypeBuilderFlags_Monochrome = 1 << 7, // Disable anti-aliasing. Combine this with MonoHinting for best results! + ImGuiFreeTypeBuilderFlags_LoadColor = 1 << 8, // Enable FreeType color-layered glyphs + ImGuiFreeTypeBuilderFlags_Bitmap = 1 << 9 // Enable FreeType bitmap glyphs +}; + +namespace ImGuiFreeType +{ + // This is automatically assigned when using '#define IMGUI_ENABLE_FREETYPE'. + // If you need to dynamically select between multiple builders: + // - you can manually assign this builder with 'atlas->FontBuilderIO = ImGuiFreeType::GetBuilderForFreeType()' + // - prefer deep-copying this into your own ImFontBuilderIO instance if you use hot-reloading that messes up static data. + IMGUI_API const ImFontBuilderIO* GetBuilderForFreeType(); + + // Override allocators. By default ImGuiFreeType will use IM_ALLOC()/IM_FREE() + // However, as FreeType does lots of allocations we provide a way for the user to redirect it to a separate memory heap if desired. + IMGUI_API void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = NULL); + + // Obsolete names (will be removed soon) + // Prefer using '#define IMGUI_ENABLE_FREETYPE' +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + static inline bool BuildFontAtlas(ImFontAtlas* atlas, unsigned int flags = 0) { atlas->FontBuilderIO = GetBuilderForFreeType(); atlas->FontBuilderFlags = flags; return atlas->Build(); } +#endif +} diff --git a/imgui-sys/third-party/imgui-master-freetype/impl_definitions.json b/imgui-sys/third-party/imgui-master-freetype/impl_definitions.json new file mode 100644 index 000000000..3597665b4 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/impl_definitions.json @@ -0,0 +1,818 @@ +{ + "ImGui_ImplGlfw_CharCallback": [ + { + "args": "(GLFWwindow* window,unsigned int c)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "c", + "type": "unsigned int" + } + ], + "argsoriginal": "(GLFWwindow* window,unsigned int c)", + "call_args": "(window,c)", + "cimguiname": "ImGui_ImplGlfw_CharCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CharCallback", + "location": "imgui_impl_glfw:41", + "ov_cimguiname": "ImGui_ImplGlfw_CharCallback", + "ret": "void", + "signature": "(GLFWwindow*,unsigned int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_CursorEnterCallback": [ + { + "args": "(GLFWwindow* window,int entered)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "entered", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int entered)", + "call_args": "(window,entered)", + "cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CursorEnterCallback", + "location": "imgui_impl_glfw:36", + "ov_cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", + "ret": "void", + "signature": "(GLFWwindow*,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_CursorPosCallback": [ + { + "args": "(GLFWwindow* window,double x,double y)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "x", + "type": "double" + }, + { + "name": "y", + "type": "double" + } + ], + "argsoriginal": "(GLFWwindow* window,double x,double y)", + "call_args": "(window,x,y)", + "cimguiname": "ImGui_ImplGlfw_CursorPosCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_CursorPosCallback", + "location": "imgui_impl_glfw:37", + "ov_cimguiname": "ImGui_ImplGlfw_CursorPosCallback", + "ret": "void", + "signature": "(GLFWwindow*,double,double)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForOpenGL": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForOpenGL", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForOpenGL", + "location": "imgui_impl_glfw:22", + "ov_cimguiname": "ImGui_ImplGlfw_InitForOpenGL", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForOther": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForOther", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForOther", + "location": "imgui_impl_glfw:24", + "ov_cimguiname": "ImGui_ImplGlfw_InitForOther", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InitForVulkan": [ + { + "args": "(GLFWwindow* window,bool install_callbacks)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "install_callbacks", + "type": "bool" + } + ], + "argsoriginal": "(GLFWwindow* window,bool install_callbacks)", + "call_args": "(window,install_callbacks)", + "cimguiname": "ImGui_ImplGlfw_InitForVulkan", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InitForVulkan", + "location": "imgui_impl_glfw:23", + "ov_cimguiname": "ImGui_ImplGlfw_InitForVulkan", + "ret": "bool", + "signature": "(GLFWwindow*,bool)", + "stname": "" + } + ], + "ImGui_ImplGlfw_InstallCallbacks": [ + { + "args": "(GLFWwindow* window)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + } + ], + "argsoriginal": "(GLFWwindow* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplGlfw_InstallCallbacks", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_InstallCallbacks", + "location": "imgui_impl_glfw:31", + "ov_cimguiname": "ImGui_ImplGlfw_InstallCallbacks", + "ret": "void", + "signature": "(GLFWwindow*)", + "stname": "" + } + ], + "ImGui_ImplGlfw_KeyCallback": [ + { + "args": "(GLFWwindow* window,int key,int scancode,int action,int mods)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "key", + "type": "int" + }, + { + "name": "scancode", + "type": "int" + }, + { + "name": "action", + "type": "int" + }, + { + "name": "mods", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int key,int scancode,int action,int mods)", + "call_args": "(window,key,scancode,action,mods)", + "cimguiname": "ImGui_ImplGlfw_KeyCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_KeyCallback", + "location": "imgui_impl_glfw:40", + "ov_cimguiname": "ImGui_ImplGlfw_KeyCallback", + "ret": "void", + "signature": "(GLFWwindow*,int,int,int,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_MonitorCallback": [ + { + "args": "(GLFWmonitor* monitor,int event)", + "argsT": [ + { + "name": "monitor", + "type": "GLFWmonitor*" + }, + { + "name": "event", + "type": "int" + } + ], + "argsoriginal": "(GLFWmonitor* monitor,int event)", + "call_args": "(monitor,event)", + "cimguiname": "ImGui_ImplGlfw_MonitorCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_MonitorCallback", + "location": "imgui_impl_glfw:42", + "ov_cimguiname": "ImGui_ImplGlfw_MonitorCallback", + "ret": "void", + "signature": "(GLFWmonitor*,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_MouseButtonCallback": [ + { + "args": "(GLFWwindow* window,int button,int action,int mods)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "button", + "type": "int" + }, + { + "name": "action", + "type": "int" + }, + { + "name": "mods", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int button,int action,int mods)", + "call_args": "(window,button,action,mods)", + "cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_MouseButtonCallback", + "location": "imgui_impl_glfw:38", + "ov_cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", + "ret": "void", + "signature": "(GLFWwindow*,int,int,int)", + "stname": "" + } + ], + "ImGui_ImplGlfw_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplGlfw_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_NewFrame", + "location": "imgui_impl_glfw:26", + "ov_cimguiname": "ImGui_ImplGlfw_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplGlfw_RestoreCallbacks": [ + { + "args": "(GLFWwindow* window)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + } + ], + "argsoriginal": "(GLFWwindow* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_RestoreCallbacks", + "location": "imgui_impl_glfw:32", + "ov_cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", + "ret": "void", + "signature": "(GLFWwindow*)", + "stname": "" + } + ], + "ImGui_ImplGlfw_ScrollCallback": [ + { + "args": "(GLFWwindow* window,double xoffset,double yoffset)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "xoffset", + "type": "double" + }, + { + "name": "yoffset", + "type": "double" + } + ], + "argsoriginal": "(GLFWwindow* window,double xoffset,double yoffset)", + "call_args": "(window,xoffset,yoffset)", + "cimguiname": "ImGui_ImplGlfw_ScrollCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_ScrollCallback", + "location": "imgui_impl_glfw:39", + "ov_cimguiname": "ImGui_ImplGlfw_ScrollCallback", + "ret": "void", + "signature": "(GLFWwindow*,double,double)", + "stname": "" + } + ], + "ImGui_ImplGlfw_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplGlfw_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_Shutdown", + "location": "imgui_impl_glfw:25", + "ov_cimguiname": "ImGui_ImplGlfw_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplGlfw_WindowFocusCallback": [ + { + "args": "(GLFWwindow* window,int focused)", + "argsT": [ + { + "name": "window", + "type": "GLFWwindow*" + }, + { + "name": "focused", + "type": "int" + } + ], + "argsoriginal": "(GLFWwindow* window,int focused)", + "call_args": "(window,focused)", + "cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", + "defaults": {}, + "funcname": "ImGui_ImplGlfw_WindowFocusCallback", + "location": "imgui_impl_glfw:35", + "ov_cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", + "ret": "void", + "signature": "(GLFWwindow*,int)", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_CreateDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "location": "imgui_impl_opengl2:31", + "ov_cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_CreateFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "location": "imgui_impl_opengl2:29", + "ov_cimguiname": "ImGui_ImplOpenGL2_CreateFontsTexture", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_DestroyDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "location": "imgui_impl_opengl2:32", + "ov_cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_DestroyFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "location": "imgui_impl_opengl2:30", + "ov_cimguiname": "ImGui_ImplOpenGL2_DestroyFontsTexture", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_Init": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_Init", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_Init", + "location": "imgui_impl_opengl2:23", + "ov_cimguiname": "ImGui_ImplOpenGL2_Init", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_NewFrame", + "location": "imgui_impl_opengl2:25", + "ov_cimguiname": "ImGui_ImplOpenGL2_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_RenderDrawData": [ + { + "args": "(ImDrawData* draw_data)", + "argsT": [ + { + "name": "draw_data", + "type": "ImDrawData*" + } + ], + "argsoriginal": "(ImDrawData* draw_data)", + "call_args": "(draw_data)", + "cimguiname": "ImGui_ImplOpenGL2_RenderDrawData", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_RenderDrawData", + "location": "imgui_impl_opengl2:26", + "ov_cimguiname": "ImGui_ImplOpenGL2_RenderDrawData", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL2_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL2_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL2_Shutdown", + "location": "imgui_impl_opengl2:24", + "ov_cimguiname": "ImGui_ImplOpenGL2_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_CreateDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "location": "imgui_impl_opengl3:32", + "ov_cimguiname": "ImGui_ImplOpenGL3_CreateDeviceObjects", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_CreateFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "location": "imgui_impl_opengl3:30", + "ov_cimguiname": "ImGui_ImplOpenGL3_CreateFontsTexture", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_DestroyDeviceObjects": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "location": "imgui_impl_opengl3:33", + "ov_cimguiname": "ImGui_ImplOpenGL3_DestroyDeviceObjects", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_DestroyFontsTexture": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "location": "imgui_impl_opengl3:31", + "ov_cimguiname": "ImGui_ImplOpenGL3_DestroyFontsTexture", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_Init": [ + { + "args": "(const char* glsl_version)", + "argsT": [ + { + "name": "glsl_version", + "type": "const char*" + } + ], + "argsoriginal": "(const char* glsl_version=nullptr)", + "call_args": "(glsl_version)", + "cimguiname": "ImGui_ImplOpenGL3_Init", + "defaults": { + "glsl_version": "nullptr" + }, + "funcname": "ImGui_ImplOpenGL3_Init", + "location": "imgui_impl_opengl3:24", + "ov_cimguiname": "ImGui_ImplOpenGL3_Init", + "ret": "bool", + "signature": "(const char*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_NewFrame", + "location": "imgui_impl_opengl3:26", + "ov_cimguiname": "ImGui_ImplOpenGL3_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_RenderDrawData": [ + { + "args": "(ImDrawData* draw_data)", + "argsT": [ + { + "name": "draw_data", + "type": "ImDrawData*" + } + ], + "argsoriginal": "(ImDrawData* draw_data)", + "call_args": "(draw_data)", + "cimguiname": "ImGui_ImplOpenGL3_RenderDrawData", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_RenderDrawData", + "location": "imgui_impl_opengl3:27", + "ov_cimguiname": "ImGui_ImplOpenGL3_RenderDrawData", + "ret": "void", + "signature": "(ImDrawData*)", + "stname": "" + } + ], + "ImGui_ImplOpenGL3_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplOpenGL3_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplOpenGL3_Shutdown", + "location": "imgui_impl_opengl3:25", + "ov_cimguiname": "ImGui_ImplOpenGL3_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForD3D": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForD3D", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForD3D", + "location": "imgui_impl_sdl:27", + "ov_cimguiname": "ImGui_ImplSDL2_InitForD3D", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForMetal": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForMetal", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForMetal", + "location": "imgui_impl_sdl:28", + "ov_cimguiname": "ImGui_ImplSDL2_InitForMetal", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForOpenGL": [ + { + "args": "(SDL_Window* window,void* sdl_gl_context)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + }, + { + "name": "sdl_gl_context", + "type": "void*" + } + ], + "argsoriginal": "(SDL_Window* window,void* sdl_gl_context)", + "call_args": "(window,sdl_gl_context)", + "cimguiname": "ImGui_ImplSDL2_InitForOpenGL", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForOpenGL", + "location": "imgui_impl_sdl:25", + "ov_cimguiname": "ImGui_ImplSDL2_InitForOpenGL", + "ret": "bool", + "signature": "(SDL_Window*,void*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForSDLRenderer": [ + { + "args": "(SDL_Window* window,SDL_Renderer* renderer)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + }, + { + "name": "renderer", + "type": "SDL_Renderer*" + } + ], + "argsoriginal": "(SDL_Window* window,SDL_Renderer* renderer)", + "call_args": "(window,renderer)", + "cimguiname": "ImGui_ImplSDL2_InitForSDLRenderer", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForSDLRenderer", + "location": "imgui_impl_sdl:29", + "ov_cimguiname": "ImGui_ImplSDL2_InitForSDLRenderer", + "ret": "bool", + "signature": "(SDL_Window*,SDL_Renderer*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_InitForVulkan": [ + { + "args": "(SDL_Window* window)", + "argsT": [ + { + "name": "window", + "type": "SDL_Window*" + } + ], + "argsoriginal": "(SDL_Window* window)", + "call_args": "(window)", + "cimguiname": "ImGui_ImplSDL2_InitForVulkan", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_InitForVulkan", + "location": "imgui_impl_sdl:26", + "ov_cimguiname": "ImGui_ImplSDL2_InitForVulkan", + "ret": "bool", + "signature": "(SDL_Window*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_NewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplSDL2_NewFrame", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_NewFrame", + "location": "imgui_impl_sdl:31", + "ov_cimguiname": "ImGui_ImplSDL2_NewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "ImGui_ImplSDL2_ProcessEvent": [ + { + "args": "(const SDL_Event* event)", + "argsT": [ + { + "name": "event", + "type": "const SDL_Event*" + } + ], + "argsoriginal": "(const SDL_Event* event)", + "call_args": "(event)", + "cimguiname": "ImGui_ImplSDL2_ProcessEvent", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_ProcessEvent", + "location": "imgui_impl_sdl:32", + "ov_cimguiname": "ImGui_ImplSDL2_ProcessEvent", + "ret": "bool", + "signature": "(const SDL_Event*)", + "stname": "" + } + ], + "ImGui_ImplSDL2_Shutdown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGui_ImplSDL2_Shutdown", + "defaults": {}, + "funcname": "ImGui_ImplSDL2_Shutdown", + "location": "imgui_impl_sdl:30", + "ov_cimguiname": "ImGui_ImplSDL2_Shutdown", + "ret": "void", + "signature": "()", + "stname": "" + } + ] +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master-freetype/impl_definitions.lua b/imgui-sys/third-party/imgui-master-freetype/impl_definitions.lua new file mode 100644 index 000000000..fbc6a4c9d --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/impl_definitions.lua @@ -0,0 +1,715 @@ +local defs = {} +defs["ImGui_ImplGlfw_CharCallback"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["args"] = "(GLFWwindow* window,unsigned int c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["name"] = "c" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["type"] = "unsigned int" +defs["ImGui_ImplGlfw_CharCallback"][1]["argsoriginal"] = "(GLFWwindow* window,unsigned int c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["call_args"] = "(window,c)" +defs["ImGui_ImplGlfw_CharCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CharCallback"][1]["funcname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["location"] = "imgui_impl_glfw:41" +defs["ImGui_ImplGlfw_CharCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CharCallback" +defs["ImGui_ImplGlfw_CharCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CharCallback"][1]["signature"] = "(GLFWwindow*,unsigned int)" +defs["ImGui_ImplGlfw_CharCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CharCallback"]["(GLFWwindow*,unsigned int)"] = defs["ImGui_ImplGlfw_CharCallback"][1] +defs["ImGui_ImplGlfw_CursorEnterCallback"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["args"] = "(GLFWwindow* window,int entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2]["name"] = "entered" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["call_args"] = "(window,entered)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["funcname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["location"] = "imgui_impl_glfw:36" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CursorEnterCallback" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["signature"] = "(GLFWwindow*,int)" +defs["ImGui_ImplGlfw_CursorEnterCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CursorEnterCallback"]["(GLFWwindow*,int)"] = defs["ImGui_ImplGlfw_CursorEnterCallback"][1] +defs["ImGui_ImplGlfw_CursorPosCallback"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["args"] = "(GLFWwindow* window,double x,double y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2]["name"] = "x" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][2]["type"] = "double" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3]["name"] = "y" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsT"][3]["type"] = "double" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["argsoriginal"] = "(GLFWwindow* window,double x,double y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["call_args"] = "(window,x,y)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["funcname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["location"] = "imgui_impl_glfw:37" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CursorPosCallback" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["signature"] = "(GLFWwindow*,double,double)" +defs["ImGui_ImplGlfw_CursorPosCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_CursorPosCallback"]["(GLFWwindow*,double,double)"] = defs["ImGui_ImplGlfw_CursorPosCallback"][1] +defs["ImGui_ImplGlfw_InitForOpenGL"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["funcname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["location"] = "imgui_impl_glfw:22" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForOpenGL" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForOpenGL"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForOpenGL"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOpenGL"][1] +defs["ImGui_ImplGlfw_InitForOther"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForOther"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForOther"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForOther"][1]["funcname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["location"] = "imgui_impl_glfw:24" +defs["ImGui_ImplGlfw_InitForOther"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForOther" +defs["ImGui_ImplGlfw_InitForOther"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForOther"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForOther"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForOther"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOther"][1] +defs["ImGui_ImplGlfw_InitForVulkan"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["name"] = "install_callbacks" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["type"] = "bool" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["call_args"] = "(window,install_callbacks)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InitForVulkan"][1]["funcname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["location"] = "imgui_impl_glfw:23" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForVulkan" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["ret"] = "bool" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["signature"] = "(GLFWwindow*,bool)" +defs["ImGui_ImplGlfw_InitForVulkan"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InitForVulkan"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForVulkan"][1] +defs["ImGui_ImplGlfw_InstallCallbacks"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["args"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["argsoriginal"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["call_args"] = "(window)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["cimguiname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["funcname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["location"] = "imgui_impl_glfw:31" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InstallCallbacks" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["signature"] = "(GLFWwindow*)" +defs["ImGui_ImplGlfw_InstallCallbacks"][1]["stname"] = "" +defs["ImGui_ImplGlfw_InstallCallbacks"]["(GLFWwindow*)"] = defs["ImGui_ImplGlfw_InstallCallbacks"][1] +defs["ImGui_ImplGlfw_KeyCallback"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["args"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["name"] = "key" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["name"] = "scancode" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["name"] = "action" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["name"] = "mods" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["type"] = "int" +defs["ImGui_ImplGlfw_KeyCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["call_args"] = "(window,key,scancode,action,mods)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_KeyCallback"][1]["funcname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["location"] = "imgui_impl_glfw:40" +defs["ImGui_ImplGlfw_KeyCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_KeyCallback" +defs["ImGui_ImplGlfw_KeyCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_KeyCallback"][1]["signature"] = "(GLFWwindow*,int,int,int,int)" +defs["ImGui_ImplGlfw_KeyCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_KeyCallback"]["(GLFWwindow*,int,int,int,int)"] = defs["ImGui_ImplGlfw_KeyCallback"][1] +defs["ImGui_ImplGlfw_MonitorCallback"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["args"] = "(GLFWmonitor* monitor,int event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1]["name"] = "monitor" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][1]["type"] = "GLFWmonitor*" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2]["name"] = "event" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["argsoriginal"] = "(GLFWmonitor* monitor,int event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["call_args"] = "(monitor,event)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_MonitorCallback"][1]["funcname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["location"] = "imgui_impl_glfw:42" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_MonitorCallback" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["signature"] = "(GLFWmonitor*,int)" +defs["ImGui_ImplGlfw_MonitorCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_MonitorCallback"]["(GLFWmonitor*,int)"] = defs["ImGui_ImplGlfw_MonitorCallback"][1] +defs["ImGui_ImplGlfw_MouseButtonCallback"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["args"] = "(GLFWwindow* window,int button,int action,int mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["name"] = "button" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["name"] = "action" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["name"] = "mods" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["type"] = "int" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int button,int action,int mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["call_args"] = "(window,button,action,mods)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["funcname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["location"] = "imgui_impl_glfw:38" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["signature"] = "(GLFWwindow*,int,int,int)" +defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_MouseButtonCallback"]["(GLFWwindow*,int,int,int)"] = defs["ImGui_ImplGlfw_MouseButtonCallback"][1] +defs["ImGui_ImplGlfw_NewFrame"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["cimguiname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_NewFrame"][1]["funcname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["location"] = "imgui_impl_glfw:26" +defs["ImGui_ImplGlfw_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_NewFrame" +defs["ImGui_ImplGlfw_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplGlfw_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplGlfw_NewFrame"]["()"] = defs["ImGui_ImplGlfw_NewFrame"][1] +defs["ImGui_ImplGlfw_RestoreCallbacks"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["args"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["argsoriginal"] = "(GLFWwindow* window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["call_args"] = "(window)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["cimguiname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["funcname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["location"] = "imgui_impl_glfw:32" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_RestoreCallbacks" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["signature"] = "(GLFWwindow*)" +defs["ImGui_ImplGlfw_RestoreCallbacks"][1]["stname"] = "" +defs["ImGui_ImplGlfw_RestoreCallbacks"]["(GLFWwindow*)"] = defs["ImGui_ImplGlfw_RestoreCallbacks"][1] +defs["ImGui_ImplGlfw_ScrollCallback"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["args"] = "(GLFWwindow* window,double xoffset,double yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["name"] = "xoffset" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["type"] = "double" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["name"] = "yoffset" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["type"] = "double" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsoriginal"] = "(GLFWwindow* window,double xoffset,double yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["call_args"] = "(window,xoffset,yoffset)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_ScrollCallback"][1]["funcname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["location"] = "imgui_impl_glfw:39" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_ScrollCallback" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["signature"] = "(GLFWwindow*,double,double)" +defs["ImGui_ImplGlfw_ScrollCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_ScrollCallback"]["(GLFWwindow*,double,double)"] = defs["ImGui_ImplGlfw_ScrollCallback"][1] +defs["ImGui_ImplGlfw_Shutdown"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["cimguiname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_Shutdown"][1]["funcname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["location"] = "imgui_impl_glfw:25" +defs["ImGui_ImplGlfw_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_Shutdown" +defs["ImGui_ImplGlfw_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplGlfw_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplGlfw_Shutdown"]["()"] = defs["ImGui_ImplGlfw_Shutdown"][1] +defs["ImGui_ImplGlfw_WindowFocusCallback"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["args"] = "(GLFWwindow* window,int focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][1]["type"] = "GLFWwindow*" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2]["name"] = "focused" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsT"][2]["type"] = "int" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["call_args"] = "(window,focused)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["defaults"] = {} +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["funcname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["location"] = "imgui_impl_glfw:35" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_WindowFocusCallback" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["ret"] = "void" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["signature"] = "(GLFWwindow*,int)" +defs["ImGui_ImplGlfw_WindowFocusCallback"][1]["stname"] = "" +defs["ImGui_ImplGlfw_WindowFocusCallback"]["(GLFWwindow*,int)"] = defs["ImGui_ImplGlfw_WindowFocusCallback"][1] +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl2:31" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_CreateDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1] +defs["ImGui_ImplOpenGL2_CreateFontsTexture"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl2:29" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_CreateFontsTexture" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_CreateFontsTexture"]["()"] = defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1] +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl2:32" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1] +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl2:30" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_DestroyFontsTexture"]["()"] = defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1] +defs["ImGui_ImplOpenGL2_Init"] = {} +defs["ImGui_ImplOpenGL2_Init"][1] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["cimguiname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_Init"][1]["funcname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["location"] = "imgui_impl_opengl2:23" +defs["ImGui_ImplOpenGL2_Init"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_Init" +defs["ImGui_ImplOpenGL2_Init"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL2_Init"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_Init"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_Init"]["()"] = defs["ImGui_ImplOpenGL2_Init"][1] +defs["ImGui_ImplOpenGL2_NewFrame"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["cimguiname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["location"] = "imgui_impl_opengl2:25" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_NewFrame" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_NewFrame"]["()"] = defs["ImGui_ImplOpenGL2_NewFrame"][1] +defs["ImGui_ImplOpenGL2_RenderDrawData"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["call_args"] = "(draw_data)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["cimguiname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["location"] = "imgui_impl_opengl2:26" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_RenderDrawData" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["signature"] = "(ImDrawData*)" +defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_RenderDrawData"]["(ImDrawData*)"] = defs["ImGui_ImplOpenGL2_RenderDrawData"][1] +defs["ImGui_ImplOpenGL2_Shutdown"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["cimguiname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL2_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["location"] = "imgui_impl_opengl2:24" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL2_Shutdown" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL2_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplOpenGL2_Shutdown"]["()"] = defs["ImGui_ImplOpenGL2_Shutdown"][1] +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl3:32" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_CreateDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1] +defs["ImGui_ImplOpenGL3_CreateFontsTexture"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl3:30" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_CreateFontsTexture" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_CreateFontsTexture"]["()"] = defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1] +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["cimguiname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl3:33" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"]["()"] = defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1] +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["cimguiname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl3:31" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_DestroyFontsTexture"]["()"] = defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1] +defs["ImGui_ImplOpenGL3_Init"] = {} +defs["ImGui_ImplOpenGL3_Init"][1] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["args"] = "(const char* glsl_version)" +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["name"] = "glsl_version" +defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["type"] = "const char*" +defs["ImGui_ImplOpenGL3_Init"][1]["argsoriginal"] = "(const char* glsl_version=nullptr)" +defs["ImGui_ImplOpenGL3_Init"][1]["call_args"] = "(glsl_version)" +defs["ImGui_ImplOpenGL3_Init"][1]["cimguiname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_Init"][1]["defaults"]["glsl_version"] = "nullptr" +defs["ImGui_ImplOpenGL3_Init"][1]["funcname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["location"] = "imgui_impl_opengl3:24" +defs["ImGui_ImplOpenGL3_Init"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_Init" +defs["ImGui_ImplOpenGL3_Init"][1]["ret"] = "bool" +defs["ImGui_ImplOpenGL3_Init"][1]["signature"] = "(const char*)" +defs["ImGui_ImplOpenGL3_Init"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_Init"]["(const char*)"] = defs["ImGui_ImplOpenGL3_Init"][1] +defs["ImGui_ImplOpenGL3_NewFrame"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["cimguiname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["location"] = "imgui_impl_opengl3:26" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_NewFrame" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_NewFrame"]["()"] = defs["ImGui_ImplOpenGL3_NewFrame"][1] +defs["ImGui_ImplOpenGL3_RenderDrawData"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["call_args"] = "(draw_data)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["cimguiname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["location"] = "imgui_impl_opengl3:27" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_RenderDrawData" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["signature"] = "(ImDrawData*)" +defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_RenderDrawData"]["(ImDrawData*)"] = defs["ImGui_ImplOpenGL3_RenderDrawData"][1] +defs["ImGui_ImplOpenGL3_Shutdown"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["cimguiname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplOpenGL3_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["location"] = "imgui_impl_opengl3:25" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplOpenGL3_Shutdown" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplOpenGL3_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplOpenGL3_Shutdown"]["()"] = defs["ImGui_ImplOpenGL3_Shutdown"][1] +defs["ImGui_ImplSDL2_InitForD3D"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForD3D"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForD3D"][1]["funcname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["location"] = "imgui_impl_sdl:27" +defs["ImGui_ImplSDL2_InitForD3D"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForD3D" +defs["ImGui_ImplSDL2_InitForD3D"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForD3D"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForD3D"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForD3D"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForD3D"][1] +defs["ImGui_ImplSDL2_InitForMetal"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForMetal"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForMetal"][1]["funcname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["location"] = "imgui_impl_sdl:28" +defs["ImGui_ImplSDL2_InitForMetal"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForMetal" +defs["ImGui_ImplSDL2_InitForMetal"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForMetal"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForMetal"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForMetal"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForMetal"][1] +defs["ImGui_ImplSDL2_InitForOpenGL"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["args"] = "(SDL_Window* window,void* sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["name"] = "sdl_gl_context" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["type"] = "void*" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsoriginal"] = "(SDL_Window* window,void* sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["call_args"] = "(window,sdl_gl_context)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["funcname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["location"] = "imgui_impl_sdl:25" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForOpenGL" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["signature"] = "(SDL_Window*,void*)" +defs["ImGui_ImplSDL2_InitForOpenGL"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForOpenGL"]["(SDL_Window*,void*)"] = defs["ImGui_ImplSDL2_InitForOpenGL"][1] +defs["ImGui_ImplSDL2_InitForSDLRenderer"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["args"] = "(SDL_Window* window,SDL_Renderer* renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2]["name"] = "renderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsT"][2]["type"] = "SDL_Renderer*" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["argsoriginal"] = "(SDL_Window* window,SDL_Renderer* renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["call_args"] = "(window,renderer)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["funcname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["location"] = "imgui_impl_sdl:29" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForSDLRenderer" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["signature"] = "(SDL_Window*,SDL_Renderer*)" +defs["ImGui_ImplSDL2_InitForSDLRenderer"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForSDLRenderer"]["(SDL_Window*,SDL_Renderer*)"] = defs["ImGui_ImplSDL2_InitForSDLRenderer"][1] +defs["ImGui_ImplSDL2_InitForVulkan"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["args"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["name"] = "window" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["type"] = "SDL_Window*" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsoriginal"] = "(SDL_Window* window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["call_args"] = "(window)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["cimguiname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_InitForVulkan"][1]["funcname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["location"] = "imgui_impl_sdl:26" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_InitForVulkan" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["signature"] = "(SDL_Window*)" +defs["ImGui_ImplSDL2_InitForVulkan"][1]["stname"] = "" +defs["ImGui_ImplSDL2_InitForVulkan"]["(SDL_Window*)"] = defs["ImGui_ImplSDL2_InitForVulkan"][1] +defs["ImGui_ImplSDL2_NewFrame"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["args"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["argsoriginal"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["call_args"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["cimguiname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_NewFrame"][1]["funcname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["location"] = "imgui_impl_sdl:31" +defs["ImGui_ImplSDL2_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_NewFrame" +defs["ImGui_ImplSDL2_NewFrame"][1]["ret"] = "void" +defs["ImGui_ImplSDL2_NewFrame"][1]["signature"] = "()" +defs["ImGui_ImplSDL2_NewFrame"][1]["stname"] = "" +defs["ImGui_ImplSDL2_NewFrame"]["()"] = defs["ImGui_ImplSDL2_NewFrame"][1] +defs["ImGui_ImplSDL2_ProcessEvent"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["args"] = "(const SDL_Event* event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["name"] = "event" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["type"] = "const SDL_Event*" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsoriginal"] = "(const SDL_Event* event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["call_args"] = "(event)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["cimguiname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_ProcessEvent"][1]["funcname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["location"] = "imgui_impl_sdl:32" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_ProcessEvent" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["ret"] = "bool" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["signature"] = "(const SDL_Event*)" +defs["ImGui_ImplSDL2_ProcessEvent"][1]["stname"] = "" +defs["ImGui_ImplSDL2_ProcessEvent"]["(const SDL_Event*)"] = defs["ImGui_ImplSDL2_ProcessEvent"][1] +defs["ImGui_ImplSDL2_Shutdown"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["args"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["argsT"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["argsoriginal"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["call_args"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["cimguiname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["defaults"] = {} +defs["ImGui_ImplSDL2_Shutdown"][1]["funcname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["location"] = "imgui_impl_sdl:30" +defs["ImGui_ImplSDL2_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplSDL2_Shutdown" +defs["ImGui_ImplSDL2_Shutdown"][1]["ret"] = "void" +defs["ImGui_ImplSDL2_Shutdown"][1]["signature"] = "()" +defs["ImGui_ImplSDL2_Shutdown"][1]["stname"] = "" +defs["ImGui_ImplSDL2_Shutdown"]["()"] = defs["ImGui_ImplSDL2_Shutdown"][1] + +return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master-freetype/overloads.txt b/imgui-sys/third-party/imgui-master-freetype/overloads.txt new file mode 100644 index 000000000..0f2d997c2 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/overloads.txt @@ -0,0 +1,138 @@ +----------------overloadings--------------------------- +ImColor_ImColor 5 +1 nil ImColor_ImColor_Nil () +2 nil ImColor_ImColor_Float (float,float,float,float) +3 nil ImColor_ImColor_Vec4 (const ImVec4) +4 nil ImColor_ImColor_Int (int,int,int,int) +5 nil ImColor_ImColor_U32 (ImU32) +ImDrawList_AddText 2 +1 void ImDrawList_AddText_Vec2 (const ImVec2,ImU32,const char*,const char*) +2 void ImDrawList_AddText_FontPtr (const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*) +ImGuiStoragePair_ImGuiStoragePair 3 +1 nil ImGuiStoragePair_ImGuiStoragePair_Int (ImGuiID,int) +2 nil ImGuiStoragePair_ImGuiStoragePair_Float (ImGuiID,float) +3 nil ImGuiStoragePair_ImGuiStoragePair_Ptr (ImGuiID,void*) +ImGuiTextRange_ImGuiTextRange 2 +1 nil ImGuiTextRange_ImGuiTextRange_Nil () +2 nil ImGuiTextRange_ImGuiTextRange_Str (const char*,const char*) +ImVec2_ImVec2 2 +1 nil ImVec2_ImVec2_Nil () +2 nil ImVec2_ImVec2_Float (float,float) +ImVec4_ImVec4 2 +1 nil ImVec4_ImVec4_Nil () +2 nil ImVec4_ImVec4_Float (float,float,float,float) +ImVector_ImVector 2 +1 nil ImVector_ImVector_Nil () +2 nil ImVector_ImVector_Vector_T_ (const ImVector_T ) +ImVector_back 2 +1 T* ImVector_back_Nil () +2 const T* ImVector_back__const ()const +ImVector_begin 2 +1 T* ImVector_begin_Nil () +2 const T* ImVector_begin__const ()const +ImVector_end 2 +1 T* ImVector_end_Nil () +2 const T* ImVector_end__const ()const +ImVector_erase 2 +1 T* ImVector_erase_Nil (const T*) +2 T* ImVector_erase_TPtr (const T*,const T*) +ImVector_find 2 +1 T* ImVector_find_Nil (const T) +2 const T* ImVector_find__const (const T)const +ImVector_front 2 +1 T* ImVector_front_Nil () +2 const T* ImVector_front__const ()const +ImVector_resize 2 +1 void ImVector_resize_Nil (int) +2 void ImVector_resize_T (int,const T) +igBeginChild 2 +1 bool igBeginChild_Str (const char*,const ImVec2,bool,ImGuiWindowFlags) +2 bool igBeginChild_ID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags) +igCheckboxFlags 2 +1 bool igCheckboxFlags_IntPtr (const char*,int*,int) +2 bool igCheckboxFlags_UintPtr (const char*,unsigned int*,unsigned int) +igCollapsingHeader 2 +1 bool igCollapsingHeader_TreeNodeFlags (const char*,ImGuiTreeNodeFlags) +2 bool igCollapsingHeader_BoolPtr (const char*,bool*,ImGuiTreeNodeFlags) +igCombo 3 +1 bool igCombo_Str_arr (const char*,int*,const char* const[],int,int) +2 bool igCombo_Str (const char*,int*,const char*,int) +3 bool igCombo_FnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) +igGetColorU32 3 +1 ImU32 igGetColorU32_Col (ImGuiCol,float) +2 ImU32 igGetColorU32_Vec4 (const ImVec4) +3 ImU32 igGetColorU32_U32 (ImU32) +igGetID 3 +1 ImGuiID igGetID_Str (const char*) +2 ImGuiID igGetID_StrStr (const char*,const char*) +3 ImGuiID igGetID_Ptr (const void*) +igIsRectVisible 2 +1 bool igIsRectVisible_Nil (const ImVec2) +2 bool igIsRectVisible_Vec2 (const ImVec2,const ImVec2) +igListBox 2 +1 bool igListBox_Str_arr (const char*,int*,const char* const[],int,int) +2 bool igListBox_FnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) +igMenuItem 2 +1 bool igMenuItem_Bool (const char*,const char*,bool,bool) +2 bool igMenuItem_BoolPtr (const char*,const char*,bool*,bool) +igOpenPopup 2 +1 void igOpenPopup_Str (const char*,ImGuiPopupFlags) +2 void igOpenPopup_ID (ImGuiID,ImGuiPopupFlags) +igPlotHistogram 2 +1 void igPlotHistogram_FloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) +2 void igPlotHistogram_FnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) +igPlotLines 2 +1 void igPlotLines_FloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int) +2 void igPlotLines_FnFloatPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2) +igPushID 4 +1 void igPushID_Str (const char*) +2 void igPushID_StrStr (const char*,const char*) +3 void igPushID_Ptr (const void*) +4 void igPushID_Int (int) +igPushStyleColor 2 +1 void igPushStyleColor_U32 (ImGuiCol,ImU32) +2 void igPushStyleColor_Vec4 (ImGuiCol,const ImVec4) +igPushStyleVar 2 +1 void igPushStyleVar_Float (ImGuiStyleVar,float) +2 void igPushStyleVar_Vec2 (ImGuiStyleVar,const ImVec2) +igRadioButton 2 +1 bool igRadioButton_Bool (const char*,bool) +2 bool igRadioButton_IntPtr (const char*,int*,int) +igSelectable 2 +1 bool igSelectable_Bool (const char*,bool,ImGuiSelectableFlags,const ImVec2) +2 bool igSelectable_BoolPtr (const char*,bool*,ImGuiSelectableFlags,const ImVec2) +igSetWindowCollapsed 2 +1 void igSetWindowCollapsed_Bool (bool,ImGuiCond) +2 void igSetWindowCollapsed_Str (const char*,bool,ImGuiCond) +igSetWindowFocus 2 +1 void igSetWindowFocus_Nil () +2 void igSetWindowFocus_Str (const char*) +igSetWindowPos 2 +1 void igSetWindowPos_Vec2 (const ImVec2,ImGuiCond) +2 void igSetWindowPos_Str (const char*,const ImVec2,ImGuiCond) +igSetWindowSize 2 +1 void igSetWindowSize_Vec2 (const ImVec2,ImGuiCond) +2 void igSetWindowSize_Str (const char*,const ImVec2,ImGuiCond) +igTreeNode 3 +1 bool igTreeNode_Str (const char*) +2 bool igTreeNode_StrStr (const char*,const char*,...) +3 bool igTreeNode_Ptr (const void*,const char*,...) +igTreeNodeEx 3 +1 bool igTreeNodeEx_Str (const char*,ImGuiTreeNodeFlags) +2 bool igTreeNodeEx_StrStr (const char*,ImGuiTreeNodeFlags,const char*,...) +3 bool igTreeNodeEx_Ptr (const void*,ImGuiTreeNodeFlags,const char*,...) +igTreeNodeExV 2 +1 bool igTreeNodeExV_Str (const char*,ImGuiTreeNodeFlags,const char*,va_list) +2 bool igTreeNodeExV_Ptr (const void*,ImGuiTreeNodeFlags,const char*,va_list) +igTreeNodeV 2 +1 bool igTreeNodeV_Str (const char*,const char*,va_list) +2 bool igTreeNodeV_Ptr (const void*,const char*,va_list) +igTreePush 2 +1 void igTreePush_Str (const char*) +2 void igTreePush_Ptr (const void*) +igValue 4 +1 void igValue_Bool (const char*,bool) +2 void igValue_Int (const char*,int) +3 void igValue_Uint (const char*,unsigned int) +4 void igValue_Float (const char*,float,const char*) +95 overloaded \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master-freetype/structs_and_enums.json b/imgui-sys/third-party/imgui-master-freetype/structs_and_enums.json new file mode 100644 index 000000000..56dd36980 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/structs_and_enums.json @@ -0,0 +1,4512 @@ +{ + "enums": { + "ImDrawFlags_": [ + { + "calc_value": 0, + "name": "ImDrawFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImDrawFlags_Closed", + "value": "1 << 0" + }, + { + "calc_value": 16, + "name": "ImDrawFlags_RoundCornersTopLeft", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImDrawFlags_RoundCornersTopRight", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImDrawFlags_RoundCornersBottomLeft", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImDrawFlags_RoundCornersBottomRight", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImDrawFlags_RoundCornersNone", + "value": "1 << 8" + }, + { + "calc_value": 48, + "name": "ImDrawFlags_RoundCornersTop", + "value": "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight" + }, + { + "calc_value": 192, + "name": "ImDrawFlags_RoundCornersBottom", + "value": "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight" + }, + { + "calc_value": 80, + "name": "ImDrawFlags_RoundCornersLeft", + "value": "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft" + }, + { + "calc_value": 160, + "name": "ImDrawFlags_RoundCornersRight", + "value": "ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight" + }, + { + "calc_value": 240, + "name": "ImDrawFlags_RoundCornersAll", + "value": "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight" + }, + { + "calc_value": 240, + "name": "ImDrawFlags_RoundCornersDefault_", + "value": "ImDrawFlags_RoundCornersAll" + }, + { + "calc_value": 496, + "name": "ImDrawFlags_RoundCornersMask_", + "value": "ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone" + } + ], + "ImDrawListFlags_": [ + { + "calc_value": 0, + "name": "ImDrawListFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImDrawListFlags_AntiAliasedLines", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImDrawListFlags_AntiAliasedLinesUseTex", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImDrawListFlags_AntiAliasedFill", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImDrawListFlags_AllowVtxOffset", + "value": "1 << 3" + } + ], + "ImFontAtlasFlags_": [ + { + "calc_value": 0, + "name": "ImFontAtlasFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImFontAtlasFlags_NoPowerOfTwoHeight", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImFontAtlasFlags_NoMouseCursors", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImFontAtlasFlags_NoBakedLines", + "value": "1 << 2" + } + ], + "ImGuiBackendFlags_": [ + { + "calc_value": 0, + "name": "ImGuiBackendFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiBackendFlags_HasGamepad", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiBackendFlags_HasMouseCursors", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiBackendFlags_HasSetMousePos", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiBackendFlags_RendererHasVtxOffset", + "value": "1 << 3" + } + ], + "ImGuiButtonFlags_": [ + { + "calc_value": 0, + "name": "ImGuiButtonFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiButtonFlags_MouseButtonLeft", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiButtonFlags_MouseButtonRight", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiButtonFlags_MouseButtonMiddle", + "value": "1 << 2" + }, + { + "calc_value": 7, + "name": "ImGuiButtonFlags_MouseButtonMask_", + "value": "ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle" + }, + { + "calc_value": 1, + "name": "ImGuiButtonFlags_MouseButtonDefault_", + "value": "ImGuiButtonFlags_MouseButtonLeft" + } + ], + "ImGuiCol_": [ + { + "calc_value": 0, + "name": "ImGuiCol_Text", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiCol_TextDisabled", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiCol_WindowBg", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiCol_ChildBg", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiCol_PopupBg", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiCol_Border", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiCol_BorderShadow", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiCol_FrameBg", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiCol_FrameBgHovered", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiCol_FrameBgActive", + "value": "9" + }, + { + "calc_value": 10, + "name": "ImGuiCol_TitleBg", + "value": "10" + }, + { + "calc_value": 11, + "name": "ImGuiCol_TitleBgActive", + "value": "11" + }, + { + "calc_value": 12, + "name": "ImGuiCol_TitleBgCollapsed", + "value": "12" + }, + { + "calc_value": 13, + "name": "ImGuiCol_MenuBarBg", + "value": "13" + }, + { + "calc_value": 14, + "name": "ImGuiCol_ScrollbarBg", + "value": "14" + }, + { + "calc_value": 15, + "name": "ImGuiCol_ScrollbarGrab", + "value": "15" + }, + { + "calc_value": 16, + "name": "ImGuiCol_ScrollbarGrabHovered", + "value": "16" + }, + { + "calc_value": 17, + "name": "ImGuiCol_ScrollbarGrabActive", + "value": "17" + }, + { + "calc_value": 18, + "name": "ImGuiCol_CheckMark", + "value": "18" + }, + { + "calc_value": 19, + "name": "ImGuiCol_SliderGrab", + "value": "19" + }, + { + "calc_value": 20, + "name": "ImGuiCol_SliderGrabActive", + "value": "20" + }, + { + "calc_value": 21, + "name": "ImGuiCol_Button", + "value": "21" + }, + { + "calc_value": 22, + "name": "ImGuiCol_ButtonHovered", + "value": "22" + }, + { + "calc_value": 23, + "name": "ImGuiCol_ButtonActive", + "value": "23" + }, + { + "calc_value": 24, + "name": "ImGuiCol_Header", + "value": "24" + }, + { + "calc_value": 25, + "name": "ImGuiCol_HeaderHovered", + "value": "25" + }, + { + "calc_value": 26, + "name": "ImGuiCol_HeaderActive", + "value": "26" + }, + { + "calc_value": 27, + "name": "ImGuiCol_Separator", + "value": "27" + }, + { + "calc_value": 28, + "name": "ImGuiCol_SeparatorHovered", + "value": "28" + }, + { + "calc_value": 29, + "name": "ImGuiCol_SeparatorActive", + "value": "29" + }, + { + "calc_value": 30, + "name": "ImGuiCol_ResizeGrip", + "value": "30" + }, + { + "calc_value": 31, + "name": "ImGuiCol_ResizeGripHovered", + "value": "31" + }, + { + "calc_value": 32, + "name": "ImGuiCol_ResizeGripActive", + "value": "32" + }, + { + "calc_value": 33, + "name": "ImGuiCol_Tab", + "value": "33" + }, + { + "calc_value": 34, + "name": "ImGuiCol_TabHovered", + "value": "34" + }, + { + "calc_value": 35, + "name": "ImGuiCol_TabActive", + "value": "35" + }, + { + "calc_value": 36, + "name": "ImGuiCol_TabUnfocused", + "value": "36" + }, + { + "calc_value": 37, + "name": "ImGuiCol_TabUnfocusedActive", + "value": "37" + }, + { + "calc_value": 38, + "name": "ImGuiCol_PlotLines", + "value": "38" + }, + { + "calc_value": 39, + "name": "ImGuiCol_PlotLinesHovered", + "value": "39" + }, + { + "calc_value": 40, + "name": "ImGuiCol_PlotHistogram", + "value": "40" + }, + { + "calc_value": 41, + "name": "ImGuiCol_PlotHistogramHovered", + "value": "41" + }, + { + "calc_value": 42, + "name": "ImGuiCol_TableHeaderBg", + "value": "42" + }, + { + "calc_value": 43, + "name": "ImGuiCol_TableBorderStrong", + "value": "43" + }, + { + "calc_value": 44, + "name": "ImGuiCol_TableBorderLight", + "value": "44" + }, + { + "calc_value": 45, + "name": "ImGuiCol_TableRowBg", + "value": "45" + }, + { + "calc_value": 46, + "name": "ImGuiCol_TableRowBgAlt", + "value": "46" + }, + { + "calc_value": 47, + "name": "ImGuiCol_TextSelectedBg", + "value": "47" + }, + { + "calc_value": 48, + "name": "ImGuiCol_DragDropTarget", + "value": "48" + }, + { + "calc_value": 49, + "name": "ImGuiCol_NavHighlight", + "value": "49" + }, + { + "calc_value": 50, + "name": "ImGuiCol_NavWindowingHighlight", + "value": "50" + }, + { + "calc_value": 51, + "name": "ImGuiCol_NavWindowingDimBg", + "value": "51" + }, + { + "calc_value": 52, + "name": "ImGuiCol_ModalWindowDimBg", + "value": "52" + }, + { + "calc_value": 53, + "name": "ImGuiCol_COUNT", + "value": "53" + } + ], + "ImGuiColorEditFlags_": [ + { + "calc_value": 0, + "name": "ImGuiColorEditFlags_None", + "value": "0" + }, + { + "calc_value": 2, + "name": "ImGuiColorEditFlags_NoAlpha", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiColorEditFlags_NoPicker", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiColorEditFlags_NoOptions", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiColorEditFlags_NoSmallPreview", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiColorEditFlags_NoInputs", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiColorEditFlags_NoTooltip", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiColorEditFlags_NoLabel", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiColorEditFlags_NoSidePreview", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiColorEditFlags_NoDragDrop", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiColorEditFlags_NoBorder", + "value": "1 << 10" + }, + { + "calc_value": 65536, + "name": "ImGuiColorEditFlags_AlphaBar", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiColorEditFlags_AlphaPreview", + "value": "1 << 17" + }, + { + "calc_value": 262144, + "name": "ImGuiColorEditFlags_AlphaPreviewHalf", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiColorEditFlags_HDR", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiColorEditFlags_DisplayRGB", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiColorEditFlags_DisplayHSV", + "value": "1 << 21" + }, + { + "calc_value": 4194304, + "name": "ImGuiColorEditFlags_DisplayHex", + "value": "1 << 22" + }, + { + "calc_value": 8388608, + "name": "ImGuiColorEditFlags_Uint8", + "value": "1 << 23" + }, + { + "calc_value": 16777216, + "name": "ImGuiColorEditFlags_Float", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiColorEditFlags_PickerHueBar", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiColorEditFlags_PickerHueWheel", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiColorEditFlags_InputRGB", + "value": "1 << 27" + }, + { + "calc_value": 268435456, + "name": "ImGuiColorEditFlags_InputHSV", + "value": "1 << 28" + }, + { + "calc_value": 177209344, + "name": "ImGuiColorEditFlags_DefaultOptions_", + "value": "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar" + }, + { + "calc_value": 7340032, + "name": "ImGuiColorEditFlags_DisplayMask_", + "value": "ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex" + }, + { + "calc_value": 25165824, + "name": "ImGuiColorEditFlags_DataTypeMask_", + "value": "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float" + }, + { + "calc_value": 100663296, + "name": "ImGuiColorEditFlags_PickerMask_", + "value": "ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar" + }, + { + "calc_value": 402653184, + "name": "ImGuiColorEditFlags_InputMask_", + "value": "ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV" + } + ], + "ImGuiComboFlags_": [ + { + "calc_value": 0, + "name": "ImGuiComboFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiComboFlags_PopupAlignLeft", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiComboFlags_HeightSmall", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiComboFlags_HeightRegular", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiComboFlags_HeightLarge", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiComboFlags_HeightLargest", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiComboFlags_NoArrowButton", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiComboFlags_NoPreview", + "value": "1 << 6" + }, + { + "calc_value": 30, + "name": "ImGuiComboFlags_HeightMask_", + "value": "ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest" + } + ], + "ImGuiCond_": [ + { + "calc_value": 0, + "name": "ImGuiCond_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiCond_Always", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiCond_Once", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiCond_FirstUseEver", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiCond_Appearing", + "value": "1 << 3" + } + ], + "ImGuiConfigFlags_": [ + { + "calc_value": 0, + "name": "ImGuiConfigFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiConfigFlags_NavEnableKeyboard", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiConfigFlags_NavEnableGamepad", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiConfigFlags_NavEnableSetMousePos", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiConfigFlags_NavNoCaptureKeyboard", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiConfigFlags_NoMouse", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiConfigFlags_NoMouseCursorChange", + "value": "1 << 5" + }, + { + "calc_value": 1048576, + "name": "ImGuiConfigFlags_IsSRGB", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiConfigFlags_IsTouchScreen", + "value": "1 << 21" + } + ], + "ImGuiDataType_": [ + { + "calc_value": 0, + "name": "ImGuiDataType_S8", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDataType_U8", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiDataType_S16", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiDataType_U16", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiDataType_S32", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiDataType_U32", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiDataType_S64", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiDataType_U64", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiDataType_Float", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiDataType_Double", + "value": "9" + }, + { + "calc_value": 10, + "name": "ImGuiDataType_COUNT", + "value": "10" + } + ], + "ImGuiDir_": [ + { + "calc_value": -1, + "name": "ImGuiDir_None", + "value": "-1" + }, + { + "calc_value": 0, + "name": "ImGuiDir_Left", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDir_Right", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiDir_Up", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiDir_Down", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiDir_COUNT", + "value": "4" + } + ], + "ImGuiDragDropFlags_": [ + { + "calc_value": 0, + "name": "ImGuiDragDropFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDragDropFlags_SourceNoPreviewTooltip", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiDragDropFlags_SourceNoDisableHover", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiDragDropFlags_SourceNoHoldToOpenOthers", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiDragDropFlags_SourceAllowNullID", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiDragDropFlags_SourceExtern", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiDragDropFlags_SourceAutoExpirePayload", + "value": "1 << 5" + }, + { + "calc_value": 1024, + "name": "ImGuiDragDropFlags_AcceptBeforeDelivery", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiDragDropFlags_AcceptNoDrawDefaultRect", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiDragDropFlags_AcceptNoPreviewTooltip", + "value": "1 << 12" + }, + { + "calc_value": 3072, + "name": "ImGuiDragDropFlags_AcceptPeekOnly", + "value": "ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect" + } + ], + "ImGuiFocusedFlags_": [ + { + "calc_value": 0, + "name": "ImGuiFocusedFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiFocusedFlags_ChildWindows", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiFocusedFlags_RootWindow", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiFocusedFlags_AnyWindow", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiFocusedFlags_NoPopupHierarchy", + "value": "1 << 3" + }, + { + "calc_value": 3, + "name": "ImGuiFocusedFlags_RootAndChildWindows", + "value": "ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows" + } + ], + "ImGuiFreeTypeBuilderFlags": [ + { + "calc_value": 1, + "name": "ImGuiFreeTypeBuilderFlags_NoHinting", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiFreeTypeBuilderFlags_NoAutoHint", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiFreeTypeBuilderFlags_ForceAutoHint", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiFreeTypeBuilderFlags_LightHinting", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiFreeTypeBuilderFlags_MonoHinting", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiFreeTypeBuilderFlags_Bold", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiFreeTypeBuilderFlags_Oblique", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiFreeTypeBuilderFlags_Monochrome", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiFreeTypeBuilderFlags_LoadColor", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiFreeTypeBuilderFlags_Bitmap", + "value": "1 << 9" + } + ], + "ImGuiHoveredFlags_": [ + { + "calc_value": 0, + "name": "ImGuiHoveredFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiHoveredFlags_ChildWindows", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiHoveredFlags_RootWindow", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiHoveredFlags_AnyWindow", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiHoveredFlags_NoPopupHierarchy", + "value": "1 << 3" + }, + { + "calc_value": 32, + "name": "ImGuiHoveredFlags_AllowWhenBlockedByPopup", + "value": "1 << 5" + }, + { + "calc_value": 128, + "name": "ImGuiHoveredFlags_AllowWhenBlockedByActiveItem", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiHoveredFlags_AllowWhenOverlapped", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiHoveredFlags_AllowWhenDisabled", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiHoveredFlags_NoNavOverride", + "value": "1 << 10" + }, + { + "calc_value": 416, + "name": "ImGuiHoveredFlags_RectOnly", + "value": "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped" + }, + { + "calc_value": 3, + "name": "ImGuiHoveredFlags_RootAndChildWindows", + "value": "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" + }, + { + "calc_value": 2048, + "name": "ImGuiHoveredFlags_DelayNormal", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiHoveredFlags_DelayShort", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiHoveredFlags_NoSharedDelay", + "value": "1 << 13" + } + ], + "ImGuiInputTextFlags_": [ + { + "calc_value": 0, + "name": "ImGuiInputTextFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiInputTextFlags_CharsDecimal", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiInputTextFlags_CharsHexadecimal", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiInputTextFlags_CharsUppercase", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiInputTextFlags_CharsNoBlank", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiInputTextFlags_AutoSelectAll", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiInputTextFlags_EnterReturnsTrue", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiInputTextFlags_CallbackCompletion", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiInputTextFlags_CallbackHistory", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiInputTextFlags_CallbackAlways", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiInputTextFlags_CallbackCharFilter", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiInputTextFlags_AllowTabInput", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiInputTextFlags_CtrlEnterForNewLine", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiInputTextFlags_NoHorizontalScroll", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiInputTextFlags_AlwaysOverwrite", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiInputTextFlags_ReadOnly", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiInputTextFlags_Password", + "value": "1 << 15" + }, + { + "calc_value": 65536, + "name": "ImGuiInputTextFlags_NoUndoRedo", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiInputTextFlags_CharsScientific", + "value": "1 << 17" + }, + { + "calc_value": 262144, + "name": "ImGuiInputTextFlags_CallbackResize", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiInputTextFlags_CallbackEdit", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiInputTextFlags_EscapeClearsAll", + "value": "1 << 20" + } + ], + "ImGuiKey": [ + { + "calc_value": 0, + "name": "ImGuiKey_None", + "value": "0" + }, + { + "calc_value": 512, + "name": "ImGuiKey_Tab", + "value": "512" + }, + { + "calc_value": 513, + "name": "ImGuiKey_LeftArrow", + "value": "513" + }, + { + "calc_value": 514, + "name": "ImGuiKey_RightArrow", + "value": "514" + }, + { + "calc_value": 515, + "name": "ImGuiKey_UpArrow", + "value": "515" + }, + { + "calc_value": 516, + "name": "ImGuiKey_DownArrow", + "value": "516" + }, + { + "calc_value": 517, + "name": "ImGuiKey_PageUp", + "value": "517" + }, + { + "calc_value": 518, + "name": "ImGuiKey_PageDown", + "value": "518" + }, + { + "calc_value": 519, + "name": "ImGuiKey_Home", + "value": "519" + }, + { + "calc_value": 520, + "name": "ImGuiKey_End", + "value": "520" + }, + { + "calc_value": 521, + "name": "ImGuiKey_Insert", + "value": "521" + }, + { + "calc_value": 522, + "name": "ImGuiKey_Delete", + "value": "522" + }, + { + "calc_value": 523, + "name": "ImGuiKey_Backspace", + "value": "523" + }, + { + "calc_value": 524, + "name": "ImGuiKey_Space", + "value": "524" + }, + { + "calc_value": 525, + "name": "ImGuiKey_Enter", + "value": "525" + }, + { + "calc_value": 526, + "name": "ImGuiKey_Escape", + "value": "526" + }, + { + "calc_value": 527, + "name": "ImGuiKey_LeftCtrl", + "value": "527" + }, + { + "calc_value": 528, + "name": "ImGuiKey_LeftShift", + "value": "528" + }, + { + "calc_value": 529, + "name": "ImGuiKey_LeftAlt", + "value": "529" + }, + { + "calc_value": 530, + "name": "ImGuiKey_LeftSuper", + "value": "530" + }, + { + "calc_value": 531, + "name": "ImGuiKey_RightCtrl", + "value": "531" + }, + { + "calc_value": 532, + "name": "ImGuiKey_RightShift", + "value": "532" + }, + { + "calc_value": 533, + "name": "ImGuiKey_RightAlt", + "value": "533" + }, + { + "calc_value": 534, + "name": "ImGuiKey_RightSuper", + "value": "534" + }, + { + "calc_value": 535, + "name": "ImGuiKey_Menu", + "value": "535" + }, + { + "calc_value": 536, + "name": "ImGuiKey_0", + "value": "536" + }, + { + "calc_value": 537, + "name": "ImGuiKey_1", + "value": "537" + }, + { + "calc_value": 538, + "name": "ImGuiKey_2", + "value": "538" + }, + { + "calc_value": 539, + "name": "ImGuiKey_3", + "value": "539" + }, + { + "calc_value": 540, + "name": "ImGuiKey_4", + "value": "540" + }, + { + "calc_value": 541, + "name": "ImGuiKey_5", + "value": "541" + }, + { + "calc_value": 542, + "name": "ImGuiKey_6", + "value": "542" + }, + { + "calc_value": 543, + "name": "ImGuiKey_7", + "value": "543" + }, + { + "calc_value": 544, + "name": "ImGuiKey_8", + "value": "544" + }, + { + "calc_value": 545, + "name": "ImGuiKey_9", + "value": "545" + }, + { + "calc_value": 546, + "name": "ImGuiKey_A", + "value": "546" + }, + { + "calc_value": 547, + "name": "ImGuiKey_B", + "value": "547" + }, + { + "calc_value": 548, + "name": "ImGuiKey_C", + "value": "548" + }, + { + "calc_value": 549, + "name": "ImGuiKey_D", + "value": "549" + }, + { + "calc_value": 550, + "name": "ImGuiKey_E", + "value": "550" + }, + { + "calc_value": 551, + "name": "ImGuiKey_F", + "value": "551" + }, + { + "calc_value": 552, + "name": "ImGuiKey_G", + "value": "552" + }, + { + "calc_value": 553, + "name": "ImGuiKey_H", + "value": "553" + }, + { + "calc_value": 554, + "name": "ImGuiKey_I", + "value": "554" + }, + { + "calc_value": 555, + "name": "ImGuiKey_J", + "value": "555" + }, + { + "calc_value": 556, + "name": "ImGuiKey_K", + "value": "556" + }, + { + "calc_value": 557, + "name": "ImGuiKey_L", + "value": "557" + }, + { + "calc_value": 558, + "name": "ImGuiKey_M", + "value": "558" + }, + { + "calc_value": 559, + "name": "ImGuiKey_N", + "value": "559" + }, + { + "calc_value": 560, + "name": "ImGuiKey_O", + "value": "560" + }, + { + "calc_value": 561, + "name": "ImGuiKey_P", + "value": "561" + }, + { + "calc_value": 562, + "name": "ImGuiKey_Q", + "value": "562" + }, + { + "calc_value": 563, + "name": "ImGuiKey_R", + "value": "563" + }, + { + "calc_value": 564, + "name": "ImGuiKey_S", + "value": "564" + }, + { + "calc_value": 565, + "name": "ImGuiKey_T", + "value": "565" + }, + { + "calc_value": 566, + "name": "ImGuiKey_U", + "value": "566" + }, + { + "calc_value": 567, + "name": "ImGuiKey_V", + "value": "567" + }, + { + "calc_value": 568, + "name": "ImGuiKey_W", + "value": "568" + }, + { + "calc_value": 569, + "name": "ImGuiKey_X", + "value": "569" + }, + { + "calc_value": 570, + "name": "ImGuiKey_Y", + "value": "570" + }, + { + "calc_value": 571, + "name": "ImGuiKey_Z", + "value": "571" + }, + { + "calc_value": 572, + "name": "ImGuiKey_F1", + "value": "572" + }, + { + "calc_value": 573, + "name": "ImGuiKey_F2", + "value": "573" + }, + { + "calc_value": 574, + "name": "ImGuiKey_F3", + "value": "574" + }, + { + "calc_value": 575, + "name": "ImGuiKey_F4", + "value": "575" + }, + { + "calc_value": 576, + "name": "ImGuiKey_F5", + "value": "576" + }, + { + "calc_value": 577, + "name": "ImGuiKey_F6", + "value": "577" + }, + { + "calc_value": 578, + "name": "ImGuiKey_F7", + "value": "578" + }, + { + "calc_value": 579, + "name": "ImGuiKey_F8", + "value": "579" + }, + { + "calc_value": 580, + "name": "ImGuiKey_F9", + "value": "580" + }, + { + "calc_value": 581, + "name": "ImGuiKey_F10", + "value": "581" + }, + { + "calc_value": 582, + "name": "ImGuiKey_F11", + "value": "582" + }, + { + "calc_value": 583, + "name": "ImGuiKey_F12", + "value": "583" + }, + { + "calc_value": 584, + "name": "ImGuiKey_Apostrophe", + "value": "584" + }, + { + "calc_value": 585, + "name": "ImGuiKey_Comma", + "value": "585" + }, + { + "calc_value": 586, + "name": "ImGuiKey_Minus", + "value": "586" + }, + { + "calc_value": 587, + "name": "ImGuiKey_Period", + "value": "587" + }, + { + "calc_value": 588, + "name": "ImGuiKey_Slash", + "value": "588" + }, + { + "calc_value": 589, + "name": "ImGuiKey_Semicolon", + "value": "589" + }, + { + "calc_value": 590, + "name": "ImGuiKey_Equal", + "value": "590" + }, + { + "calc_value": 591, + "name": "ImGuiKey_LeftBracket", + "value": "591" + }, + { + "calc_value": 592, + "name": "ImGuiKey_Backslash", + "value": "592" + }, + { + "calc_value": 593, + "name": "ImGuiKey_RightBracket", + "value": "593" + }, + { + "calc_value": 594, + "name": "ImGuiKey_GraveAccent", + "value": "594" + }, + { + "calc_value": 595, + "name": "ImGuiKey_CapsLock", + "value": "595" + }, + { + "calc_value": 596, + "name": "ImGuiKey_ScrollLock", + "value": "596" + }, + { + "calc_value": 597, + "name": "ImGuiKey_NumLock", + "value": "597" + }, + { + "calc_value": 598, + "name": "ImGuiKey_PrintScreen", + "value": "598" + }, + { + "calc_value": 599, + "name": "ImGuiKey_Pause", + "value": "599" + }, + { + "calc_value": 600, + "name": "ImGuiKey_Keypad0", + "value": "600" + }, + { + "calc_value": 601, + "name": "ImGuiKey_Keypad1", + "value": "601" + }, + { + "calc_value": 602, + "name": "ImGuiKey_Keypad2", + "value": "602" + }, + { + "calc_value": 603, + "name": "ImGuiKey_Keypad3", + "value": "603" + }, + { + "calc_value": 604, + "name": "ImGuiKey_Keypad4", + "value": "604" + }, + { + "calc_value": 605, + "name": "ImGuiKey_Keypad5", + "value": "605" + }, + { + "calc_value": 606, + "name": "ImGuiKey_Keypad6", + "value": "606" + }, + { + "calc_value": 607, + "name": "ImGuiKey_Keypad7", + "value": "607" + }, + { + "calc_value": 608, + "name": "ImGuiKey_Keypad8", + "value": "608" + }, + { + "calc_value": 609, + "name": "ImGuiKey_Keypad9", + "value": "609" + }, + { + "calc_value": 610, + "name": "ImGuiKey_KeypadDecimal", + "value": "610" + }, + { + "calc_value": 611, + "name": "ImGuiKey_KeypadDivide", + "value": "611" + }, + { + "calc_value": 612, + "name": "ImGuiKey_KeypadMultiply", + "value": "612" + }, + { + "calc_value": 613, + "name": "ImGuiKey_KeypadSubtract", + "value": "613" + }, + { + "calc_value": 614, + "name": "ImGuiKey_KeypadAdd", + "value": "614" + }, + { + "calc_value": 615, + "name": "ImGuiKey_KeypadEnter", + "value": "615" + }, + { + "calc_value": 616, + "name": "ImGuiKey_KeypadEqual", + "value": "616" + }, + { + "calc_value": 617, + "name": "ImGuiKey_GamepadStart", + "value": "617" + }, + { + "calc_value": 618, + "name": "ImGuiKey_GamepadBack", + "value": "618" + }, + { + "calc_value": 619, + "name": "ImGuiKey_GamepadFaceLeft", + "value": "619" + }, + { + "calc_value": 620, + "name": "ImGuiKey_GamepadFaceRight", + "value": "620" + }, + { + "calc_value": 621, + "name": "ImGuiKey_GamepadFaceUp", + "value": "621" + }, + { + "calc_value": 622, + "name": "ImGuiKey_GamepadFaceDown", + "value": "622" + }, + { + "calc_value": 623, + "name": "ImGuiKey_GamepadDpadLeft", + "value": "623" + }, + { + "calc_value": 624, + "name": "ImGuiKey_GamepadDpadRight", + "value": "624" + }, + { + "calc_value": 625, + "name": "ImGuiKey_GamepadDpadUp", + "value": "625" + }, + { + "calc_value": 626, + "name": "ImGuiKey_GamepadDpadDown", + "value": "626" + }, + { + "calc_value": 627, + "name": "ImGuiKey_GamepadL1", + "value": "627" + }, + { + "calc_value": 628, + "name": "ImGuiKey_GamepadR1", + "value": "628" + }, + { + "calc_value": 629, + "name": "ImGuiKey_GamepadL2", + "value": "629" + }, + { + "calc_value": 630, + "name": "ImGuiKey_GamepadR2", + "value": "630" + }, + { + "calc_value": 631, + "name": "ImGuiKey_GamepadL3", + "value": "631" + }, + { + "calc_value": 632, + "name": "ImGuiKey_GamepadR3", + "value": "632" + }, + { + "calc_value": 633, + "name": "ImGuiKey_GamepadLStickLeft", + "value": "633" + }, + { + "calc_value": 634, + "name": "ImGuiKey_GamepadLStickRight", + "value": "634" + }, + { + "calc_value": 635, + "name": "ImGuiKey_GamepadLStickUp", + "value": "635" + }, + { + "calc_value": 636, + "name": "ImGuiKey_GamepadLStickDown", + "value": "636" + }, + { + "calc_value": 637, + "name": "ImGuiKey_GamepadRStickLeft", + "value": "637" + }, + { + "calc_value": 638, + "name": "ImGuiKey_GamepadRStickRight", + "value": "638" + }, + { + "calc_value": 639, + "name": "ImGuiKey_GamepadRStickUp", + "value": "639" + }, + { + "calc_value": 640, + "name": "ImGuiKey_GamepadRStickDown", + "value": "640" + }, + { + "calc_value": 641, + "name": "ImGuiKey_MouseLeft", + "value": "641" + }, + { + "calc_value": 642, + "name": "ImGuiKey_MouseRight", + "value": "642" + }, + { + "calc_value": 643, + "name": "ImGuiKey_MouseMiddle", + "value": "643" + }, + { + "calc_value": 644, + "name": "ImGuiKey_MouseX1", + "value": "644" + }, + { + "calc_value": 645, + "name": "ImGuiKey_MouseX2", + "value": "645" + }, + { + "calc_value": 646, + "name": "ImGuiKey_MouseWheelX", + "value": "646" + }, + { + "calc_value": 647, + "name": "ImGuiKey_MouseWheelY", + "value": "647" + }, + { + "calc_value": 648, + "name": "ImGuiKey_ReservedForModCtrl", + "value": "648" + }, + { + "calc_value": 649, + "name": "ImGuiKey_ReservedForModShift", + "value": "649" + }, + { + "calc_value": 650, + "name": "ImGuiKey_ReservedForModAlt", + "value": "650" + }, + { + "calc_value": 651, + "name": "ImGuiKey_ReservedForModSuper", + "value": "651" + }, + { + "calc_value": 652, + "name": "ImGuiKey_COUNT", + "value": "652" + }, + { + "calc_value": 0, + "name": "ImGuiMod_None", + "value": "0" + }, + { + "calc_value": 4096, + "name": "ImGuiMod_Ctrl", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiMod_Shift", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiMod_Alt", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiMod_Super", + "value": "1 << 15" + }, + { + "calc_value": 61440, + "name": "ImGuiMod_Mask_", + "value": "0xF000" + }, + { + "calc_value": 4096, + "name": "ImGuiMod_Shortcut", + "value": "ImGuiMod_Ctrl" + }, + { + "calc_value": 512, + "name": "ImGuiKey_NamedKey_BEGIN", + "value": "512" + }, + { + "calc_value": 652, + "name": "ImGuiKey_NamedKey_END", + "value": "ImGuiKey_COUNT" + }, + { + "calc_value": 140, + "name": "ImGuiKey_NamedKey_COUNT", + "value": "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN" + }, + { + "calc_value": 652, + "name": "ImGuiKey_KeysData_SIZE", + "value": "ImGuiKey_COUNT" + }, + { + "calc_value": 0, + "name": "ImGuiKey_KeysData_OFFSET", + "value": "0" + } + ], + "ImGuiMouseButton_": [ + { + "calc_value": 0, + "name": "ImGuiMouseButton_Left", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiMouseButton_Right", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiMouseButton_Middle", + "value": "2" + }, + { + "calc_value": 5, + "name": "ImGuiMouseButton_COUNT", + "value": "5" + } + ], + "ImGuiMouseCursor_": [ + { + "calc_value": -1, + "name": "ImGuiMouseCursor_None", + "value": "-1" + }, + { + "calc_value": 0, + "name": "ImGuiMouseCursor_Arrow", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiMouseCursor_TextInput", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiMouseCursor_ResizeAll", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiMouseCursor_ResizeNS", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiMouseCursor_ResizeEW", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiMouseCursor_ResizeNESW", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiMouseCursor_ResizeNWSE", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiMouseCursor_Hand", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiMouseCursor_NotAllowed", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiMouseCursor_COUNT", + "value": "9" + } + ], + "ImGuiNavInput": [ + { + "calc_value": 0, + "name": "ImGuiNavInput_Activate", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiNavInput_Cancel", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiNavInput_Input", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiNavInput_Menu", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiNavInput_DpadLeft", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiNavInput_DpadRight", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiNavInput_DpadUp", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiNavInput_DpadDown", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiNavInput_LStickLeft", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiNavInput_LStickRight", + "value": "9" + }, + { + "calc_value": 10, + "name": "ImGuiNavInput_LStickUp", + "value": "10" + }, + { + "calc_value": 11, + "name": "ImGuiNavInput_LStickDown", + "value": "11" + }, + { + "calc_value": 12, + "name": "ImGuiNavInput_FocusPrev", + "value": "12" + }, + { + "calc_value": 13, + "name": "ImGuiNavInput_FocusNext", + "value": "13" + }, + { + "calc_value": 14, + "name": "ImGuiNavInput_TweakSlow", + "value": "14" + }, + { + "calc_value": 15, + "name": "ImGuiNavInput_TweakFast", + "value": "15" + }, + { + "calc_value": 16, + "name": "ImGuiNavInput_COUNT", + "value": "16" + } + ], + "ImGuiPopupFlags_": [ + { + "calc_value": 0, + "name": "ImGuiPopupFlags_None", + "value": "0" + }, + { + "calc_value": 0, + "name": "ImGuiPopupFlags_MouseButtonLeft", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiPopupFlags_MouseButtonRight", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiPopupFlags_MouseButtonMiddle", + "value": "2" + }, + { + "calc_value": 31, + "name": "ImGuiPopupFlags_MouseButtonMask_", + "value": "0x1F" + }, + { + "calc_value": 1, + "name": "ImGuiPopupFlags_MouseButtonDefault_", + "value": "1" + }, + { + "calc_value": 32, + "name": "ImGuiPopupFlags_NoOpenOverExistingPopup", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiPopupFlags_NoOpenOverItems", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiPopupFlags_AnyPopupId", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiPopupFlags_AnyPopupLevel", + "value": "1 << 8" + }, + { + "calc_value": 384, + "name": "ImGuiPopupFlags_AnyPopup", + "value": "ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel" + } + ], + "ImGuiSelectableFlags_": [ + { + "calc_value": 0, + "name": "ImGuiSelectableFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiSelectableFlags_DontClosePopups", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiSelectableFlags_SpanAllColumns", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiSelectableFlags_AllowDoubleClick", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiSelectableFlags_Disabled", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiSelectableFlags_AllowItemOverlap", + "value": "1 << 4" + } + ], + "ImGuiSliderFlags_": [ + { + "calc_value": 0, + "name": "ImGuiSliderFlags_None", + "value": "0" + }, + { + "calc_value": 16, + "name": "ImGuiSliderFlags_AlwaysClamp", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiSliderFlags_Logarithmic", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiSliderFlags_NoRoundToFormat", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiSliderFlags_NoInput", + "value": "1 << 7" + }, + { + "calc_value": 1879048207, + "name": "ImGuiSliderFlags_InvalidMask_", + "value": "0x7000000F" + } + ], + "ImGuiSortDirection_": [ + { + "calc_value": 0, + "name": "ImGuiSortDirection_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiSortDirection_Ascending", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiSortDirection_Descending", + "value": "2" + } + ], + "ImGuiStyleVar_": [ + { + "calc_value": 0, + "name": "ImGuiStyleVar_Alpha", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiStyleVar_DisabledAlpha", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiStyleVar_WindowPadding", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiStyleVar_WindowRounding", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiStyleVar_WindowBorderSize", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiStyleVar_WindowMinSize", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiStyleVar_WindowTitleAlign", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiStyleVar_ChildRounding", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiStyleVar_ChildBorderSize", + "value": "8" + }, + { + "calc_value": 9, + "name": "ImGuiStyleVar_PopupRounding", + "value": "9" + }, + { + "calc_value": 10, + "name": "ImGuiStyleVar_PopupBorderSize", + "value": "10" + }, + { + "calc_value": 11, + "name": "ImGuiStyleVar_FramePadding", + "value": "11" + }, + { + "calc_value": 12, + "name": "ImGuiStyleVar_FrameRounding", + "value": "12" + }, + { + "calc_value": 13, + "name": "ImGuiStyleVar_FrameBorderSize", + "value": "13" + }, + { + "calc_value": 14, + "name": "ImGuiStyleVar_ItemSpacing", + "value": "14" + }, + { + "calc_value": 15, + "name": "ImGuiStyleVar_ItemInnerSpacing", + "value": "15" + }, + { + "calc_value": 16, + "name": "ImGuiStyleVar_IndentSpacing", + "value": "16" + }, + { + "calc_value": 17, + "name": "ImGuiStyleVar_CellPadding", + "value": "17" + }, + { + "calc_value": 18, + "name": "ImGuiStyleVar_ScrollbarSize", + "value": "18" + }, + { + "calc_value": 19, + "name": "ImGuiStyleVar_ScrollbarRounding", + "value": "19" + }, + { + "calc_value": 20, + "name": "ImGuiStyleVar_GrabMinSize", + "value": "20" + }, + { + "calc_value": 21, + "name": "ImGuiStyleVar_GrabRounding", + "value": "21" + }, + { + "calc_value": 22, + "name": "ImGuiStyleVar_TabRounding", + "value": "22" + }, + { + "calc_value": 23, + "name": "ImGuiStyleVar_ButtonTextAlign", + "value": "23" + }, + { + "calc_value": 24, + "name": "ImGuiStyleVar_SelectableTextAlign", + "value": "24" + }, + { + "calc_value": 25, + "name": "ImGuiStyleVar_COUNT", + "value": "25" + } + ], + "ImGuiTabBarFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTabBarFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTabBarFlags_Reorderable", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTabBarFlags_AutoSelectNewTabs", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTabBarFlags_TabListPopupButton", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTabBarFlags_NoTabListScrollingButtons", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTabBarFlags_NoTooltip", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTabBarFlags_FittingPolicyResizeDown", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTabBarFlags_FittingPolicyScroll", + "value": "1 << 7" + }, + { + "calc_value": 192, + "name": "ImGuiTabBarFlags_FittingPolicyMask_", + "value": "ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll" + }, + { + "calc_value": 64, + "name": "ImGuiTabBarFlags_FittingPolicyDefault_", + "value": "ImGuiTabBarFlags_FittingPolicyResizeDown" + } + ], + "ImGuiTabItemFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTabItemFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTabItemFlags_UnsavedDocument", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTabItemFlags_SetSelected", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTabItemFlags_NoCloseWithMiddleMouseButton", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTabItemFlags_NoPushId", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTabItemFlags_NoTooltip", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTabItemFlags_NoReorder", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTabItemFlags_Leading", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTabItemFlags_Trailing", + "value": "1 << 7" + } + ], + "ImGuiTableBgTarget_": [ + { + "calc_value": 0, + "name": "ImGuiTableBgTarget_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTableBgTarget_RowBg0", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiTableBgTarget_RowBg1", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiTableBgTarget_CellBg", + "value": "3" + } + ], + "ImGuiTableColumnFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTableColumnFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTableColumnFlags_Disabled", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTableColumnFlags_DefaultHide", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTableColumnFlags_DefaultSort", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTableColumnFlags_WidthStretch", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTableColumnFlags_WidthFixed", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTableColumnFlags_NoResize", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTableColumnFlags_NoReorder", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTableColumnFlags_NoHide", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiTableColumnFlags_NoClip", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiTableColumnFlags_NoSort", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiTableColumnFlags_NoSortAscending", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiTableColumnFlags_NoSortDescending", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiTableColumnFlags_NoHeaderLabel", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiTableColumnFlags_NoHeaderWidth", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiTableColumnFlags_PreferSortAscending", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiTableColumnFlags_PreferSortDescending", + "value": "1 << 15" + }, + { + "calc_value": 65536, + "name": "ImGuiTableColumnFlags_IndentEnable", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiTableColumnFlags_IndentDisable", + "value": "1 << 17" + }, + { + "calc_value": 16777216, + "name": "ImGuiTableColumnFlags_IsEnabled", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiTableColumnFlags_IsVisible", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiTableColumnFlags_IsSorted", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiTableColumnFlags_IsHovered", + "value": "1 << 27" + }, + { + "calc_value": 24, + "name": "ImGuiTableColumnFlags_WidthMask_", + "value": "ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed" + }, + { + "calc_value": 196608, + "name": "ImGuiTableColumnFlags_IndentMask_", + "value": "ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable" + }, + { + "calc_value": 251658240, + "name": "ImGuiTableColumnFlags_StatusMask_", + "value": "ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered" + }, + { + "calc_value": 1073741824, + "name": "ImGuiTableColumnFlags_NoDirectResize_", + "value": "1 << 30" + } + ], + "ImGuiTableFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTableFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTableFlags_Resizable", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTableFlags_Reorderable", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTableFlags_Hideable", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTableFlags_Sortable", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTableFlags_NoSavedSettings", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTableFlags_ContextMenuInBody", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTableFlags_RowBg", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTableFlags_BordersInnerH", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiTableFlags_BordersOuterH", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiTableFlags_BordersInnerV", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiTableFlags_BordersOuterV", + "value": "1 << 10" + }, + { + "calc_value": 384, + "name": "ImGuiTableFlags_BordersH", + "value": "ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH" + }, + { + "calc_value": 1536, + "name": "ImGuiTableFlags_BordersV", + "value": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV" + }, + { + "calc_value": 640, + "name": "ImGuiTableFlags_BordersInner", + "value": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH" + }, + { + "calc_value": 1280, + "name": "ImGuiTableFlags_BordersOuter", + "value": "ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH" + }, + { + "calc_value": 1920, + "name": "ImGuiTableFlags_Borders", + "value": "ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter" + }, + { + "calc_value": 2048, + "name": "ImGuiTableFlags_NoBordersInBody", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiTableFlags_NoBordersInBodyUntilResize", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiTableFlags_SizingFixedFit", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiTableFlags_SizingFixedSame", + "value": "2 << 13" + }, + { + "calc_value": 24576, + "name": "ImGuiTableFlags_SizingStretchProp", + "value": "3 << 13" + }, + { + "calc_value": 32768, + "name": "ImGuiTableFlags_SizingStretchSame", + "value": "4 << 13" + }, + { + "calc_value": 65536, + "name": "ImGuiTableFlags_NoHostExtendX", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiTableFlags_NoHostExtendY", + "value": "1 << 17" + }, + { + "calc_value": 262144, + "name": "ImGuiTableFlags_NoKeepColumnsVisible", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiTableFlags_PreciseWidths", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiTableFlags_NoClip", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiTableFlags_PadOuterX", + "value": "1 << 21" + }, + { + "calc_value": 4194304, + "name": "ImGuiTableFlags_NoPadOuterX", + "value": "1 << 22" + }, + { + "calc_value": 8388608, + "name": "ImGuiTableFlags_NoPadInnerX", + "value": "1 << 23" + }, + { + "calc_value": 16777216, + "name": "ImGuiTableFlags_ScrollX", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiTableFlags_ScrollY", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiTableFlags_SortMulti", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiTableFlags_SortTristate", + "value": "1 << 27" + }, + { + "calc_value": 57344, + "name": "ImGuiTableFlags_SizingMask_", + "value": "ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame" + } + ], + "ImGuiTableRowFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTableRowFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTableRowFlags_Headers", + "value": "1 << 0" + } + ], + "ImGuiTreeNodeFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTreeNodeFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTreeNodeFlags_Selected", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTreeNodeFlags_Framed", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTreeNodeFlags_AllowItemOverlap", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTreeNodeFlags_NoTreePushOnOpen", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTreeNodeFlags_NoAutoOpenOnLog", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTreeNodeFlags_DefaultOpen", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTreeNodeFlags_OpenOnDoubleClick", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTreeNodeFlags_OpenOnArrow", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiTreeNodeFlags_Leaf", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiTreeNodeFlags_Bullet", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiTreeNodeFlags_FramePadding", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiTreeNodeFlags_SpanAvailWidth", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiTreeNodeFlags_SpanFullWidth", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiTreeNodeFlags_NavLeftJumpsBackHere", + "value": "1 << 13" + }, + { + "calc_value": 26, + "name": "ImGuiTreeNodeFlags_CollapsingHeader", + "value": "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog" + } + ], + "ImGuiViewportFlags_": [ + { + "calc_value": 0, + "name": "ImGuiViewportFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiViewportFlags_IsPlatformWindow", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiViewportFlags_IsPlatformMonitor", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiViewportFlags_OwnedByApp", + "value": "1 << 2" + } + ], + "ImGuiWindowFlags_": [ + { + "calc_value": 0, + "name": "ImGuiWindowFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiWindowFlags_NoTitleBar", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiWindowFlags_NoResize", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiWindowFlags_NoMove", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiWindowFlags_NoScrollbar", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiWindowFlags_NoScrollWithMouse", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiWindowFlags_NoCollapse", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiWindowFlags_AlwaysAutoResize", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiWindowFlags_NoBackground", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiWindowFlags_NoSavedSettings", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiWindowFlags_NoMouseInputs", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiWindowFlags_MenuBar", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiWindowFlags_HorizontalScrollbar", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiWindowFlags_NoFocusOnAppearing", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiWindowFlags_NoBringToFrontOnFocus", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiWindowFlags_AlwaysVerticalScrollbar", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiWindowFlags_AlwaysHorizontalScrollbar", + "value": "1<< 15" + }, + { + "calc_value": 65536, + "name": "ImGuiWindowFlags_AlwaysUseWindowPadding", + "value": "1 << 16" + }, + { + "calc_value": 262144, + "name": "ImGuiWindowFlags_NoNavInputs", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiWindowFlags_NoNavFocus", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiWindowFlags_UnsavedDocument", + "value": "1 << 20" + }, + { + "calc_value": 786432, + "name": "ImGuiWindowFlags_NoNav", + "value": "ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" + }, + { + "calc_value": 43, + "name": "ImGuiWindowFlags_NoDecoration", + "value": "ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse" + }, + { + "calc_value": 786944, + "name": "ImGuiWindowFlags_NoInputs", + "value": "ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" + }, + { + "calc_value": 8388608, + "name": "ImGuiWindowFlags_NavFlattened", + "value": "1 << 23" + }, + { + "calc_value": 16777216, + "name": "ImGuiWindowFlags_ChildWindow", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiWindowFlags_Tooltip", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiWindowFlags_Popup", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiWindowFlags_Modal", + "value": "1 << 27" + }, + { + "calc_value": 268435456, + "name": "ImGuiWindowFlags_ChildMenu", + "value": "1 << 28" + } + ] + }, + "enumtypes": { + "ImGuiKey": "int" + }, + "locations": { + "ImColor": "imgui:2346", + "ImDrawChannel": "imgui:2436", + "ImDrawCmd": "imgui:2395", + "ImDrawCmdHeader": "imgui:2428", + "ImDrawData": "imgui:2628", + "ImDrawFlags_": "imgui:2462", + "ImDrawList": "imgui:2500", + "ImDrawListFlags_": "imgui:2482", + "ImDrawListSplitter": "imgui:2445", + "ImDrawVert": "imgui:2413", + "ImFont": "imgui:2846", + "ImFontAtlas": "imgui:2744", + "ImFontAtlasCustomRect": "imgui:2706", + "ImFontAtlasFlags_": "imgui:2719", + "ImFontConfig": "imgui:2650", + "ImFontGlyph": "imgui:2679", + "ImFontGlyphRangesBuilder": "imgui:2691", + "ImGuiBackendFlags_": "imgui:1510", + "ImGuiButtonFlags_": "imgui:1617", + "ImGuiCol_": "imgui:1520", + "ImGuiColorEditFlags_": "imgui:1630", + "ImGuiComboFlags_": "imgui:1079", + "ImGuiCond_": "imgui:1721", + "ImGuiConfigFlags_": "imgui:1494", + "ImGuiDataType_": "imgui:1316", + "ImGuiDir_": "imgui:1332", + "ImGuiDragDropFlags_": "imgui:1294", + "ImGuiFocusedFlags_": "imgui:1256", + "ImGuiFreeTypeBuilderFlags": "imgui_freetype:19", + "ImGuiHoveredFlags_": "imgui:1270", + "ImGuiIO": "imgui:1898", + "ImGuiInputTextCallbackData": "imgui:2071", + "ImGuiInputTextFlags_": "imgui:991", + "ImGuiKey": "imgui:1353", + "ImGuiKeyData": "imgui:1890", + "ImGuiListClipper": "imgui:2295", + "ImGuiMouseButton_": "imgui:1693", + "ImGuiMouseCursor_": "imgui:1703", + "ImGuiNavInput": "imgui:1485", + "ImGuiOnceUponAFrame": "imgui:2170", + "ImGuiPayload": "imgui:2111", + "ImGuiPlatformImeData": "imgui:2940", + "ImGuiPopupFlags_": "imgui:1052", + "ImGuiSelectableFlags_": "imgui:1068", + "ImGuiSizeCallbackData": "imgui:2102", + "ImGuiSliderFlags_": "imgui:1676", + "ImGuiSortDirection_": "imgui:1343", + "ImGuiStorage": "imgui:2232", + "ImGuiStoragePair": "imgui:2235", + "ImGuiStyle": "imgui:1833", + "ImGuiStyleVar_": "imgui:1585", + "ImGuiTabBarFlags_": "imgui:1093", + "ImGuiTabItemFlags_": "imgui:1109", + "ImGuiTableBgTarget_": "imgui:1247", + "ImGuiTableColumnFlags_": "imgui:1195", + "ImGuiTableColumnSortSpecs": "imgui:2133", + "ImGuiTableFlags_": "imgui:1144", + "ImGuiTableRowFlags_": "imgui:1232", + "ImGuiTableSortSpecs": "imgui:2147", + "ImGuiTextBuffer": "imgui:2205", + "ImGuiTextFilter": "imgui:2178", + "ImGuiTextRange": "imgui:2188", + "ImGuiTreeNodeFlags_": "imgui:1023", + "ImGuiViewport": "imgui:2917", + "ImGuiViewportFlags_": "imgui:2902", + "ImGuiWindowFlags_": "imgui:953", + "ImVec2": "imgui:253", + "ImVec4": "imgui:266" + }, + "structs": { + "ImColor": [ + { + "name": "Value", + "type": "ImVec4" + } + ], + "ImDrawChannel": [ + { + "name": "_CmdBuffer", + "template_type": "ImDrawCmd", + "type": "ImVector_ImDrawCmd" + }, + { + "name": "_IdxBuffer", + "template_type": "ImDrawIdx", + "type": "ImVector_ImDrawIdx" + } + ], + "ImDrawCmd": [ + { + "name": "ClipRect", + "type": "ImVec4" + }, + { + "name": "TextureId", + "type": "ImTextureID" + }, + { + "name": "VtxOffset", + "type": "unsigned int" + }, + { + "name": "IdxOffset", + "type": "unsigned int" + }, + { + "name": "ElemCount", + "type": "unsigned int" + }, + { + "name": "UserCallback", + "type": "ImDrawCallback" + }, + { + "name": "UserCallbackData", + "type": "void*" + } + ], + "ImDrawCmdHeader": [ + { + "name": "ClipRect", + "type": "ImVec4" + }, + { + "name": "TextureId", + "type": "ImTextureID" + }, + { + "name": "VtxOffset", + "type": "unsigned int" + } + ], + "ImDrawData": [ + { + "name": "Valid", + "type": "bool" + }, + { + "name": "CmdListsCount", + "type": "int" + }, + { + "name": "TotalIdxCount", + "type": "int" + }, + { + "name": "TotalVtxCount", + "type": "int" + }, + { + "name": "CmdLists", + "type": "ImDrawList**" + }, + { + "name": "DisplayPos", + "type": "ImVec2" + }, + { + "name": "DisplaySize", + "type": "ImVec2" + }, + { + "name": "FramebufferScale", + "type": "ImVec2" + } + ], + "ImDrawList": [ + { + "name": "CmdBuffer", + "template_type": "ImDrawCmd", + "type": "ImVector_ImDrawCmd" + }, + { + "name": "IdxBuffer", + "template_type": "ImDrawIdx", + "type": "ImVector_ImDrawIdx" + }, + { + "name": "VtxBuffer", + "template_type": "ImDrawVert", + "type": "ImVector_ImDrawVert" + }, + { + "name": "Flags", + "type": "ImDrawListFlags" + }, + { + "name": "_VtxCurrentIdx", + "type": "unsigned int" + }, + { + "name": "_Data", + "type": "ImDrawListSharedData*" + }, + { + "name": "_OwnerName", + "type": "const char*" + }, + { + "name": "_VtxWritePtr", + "type": "ImDrawVert*" + }, + { + "name": "_IdxWritePtr", + "type": "ImDrawIdx*" + }, + { + "name": "_ClipRectStack", + "template_type": "ImVec4", + "type": "ImVector_ImVec4" + }, + { + "name": "_TextureIdStack", + "template_type": "ImTextureID", + "type": "ImVector_ImTextureID" + }, + { + "name": "_Path", + "template_type": "ImVec2", + "type": "ImVector_ImVec2" + }, + { + "name": "_CmdHeader", + "type": "ImDrawCmdHeader" + }, + { + "name": "_Splitter", + "type": "ImDrawListSplitter" + }, + { + "name": "_FringeScale", + "type": "float" + } + ], + "ImDrawListSplitter": [ + { + "name": "_Current", + "type": "int" + }, + { + "name": "_Count", + "type": "int" + }, + { + "name": "_Channels", + "template_type": "ImDrawChannel", + "type": "ImVector_ImDrawChannel" + } + ], + "ImDrawVert": [ + { + "name": "pos", + "type": "ImVec2" + }, + { + "name": "uv", + "type": "ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "ImFont": [ + { + "name": "IndexAdvanceX", + "template_type": "float", + "type": "ImVector_float" + }, + { + "name": "FallbackAdvanceX", + "type": "float" + }, + { + "name": "FontSize", + "type": "float" + }, + { + "name": "IndexLookup", + "template_type": "ImWchar", + "type": "ImVector_ImWchar" + }, + { + "name": "Glyphs", + "template_type": "ImFontGlyph", + "type": "ImVector_ImFontGlyph" + }, + { + "name": "FallbackGlyph", + "type": "const ImFontGlyph*" + }, + { + "name": "ContainerAtlas", + "type": "ImFontAtlas*" + }, + { + "name": "ConfigData", + "type": "const ImFontConfig*" + }, + { + "name": "ConfigDataCount", + "type": "short" + }, + { + "name": "FallbackChar", + "type": "ImWchar" + }, + { + "name": "EllipsisChar", + "type": "ImWchar" + }, + { + "name": "DotChar", + "type": "ImWchar" + }, + { + "name": "DirtyLookupTables", + "type": "bool" + }, + { + "name": "Scale", + "type": "float" + }, + { + "name": "Ascent", + "type": "float" + }, + { + "name": "Descent", + "type": "float" + }, + { + "name": "MetricsTotalSurface", + "type": "int" + }, + { + "name": "Used4kPagesMap[(0x10FFFF+1)/4096/8]", + "size": 34, + "type": "ImU8" + } + ], + "ImFontAtlas": [ + { + "name": "Flags", + "type": "ImFontAtlasFlags" + }, + { + "name": "TexID", + "type": "ImTextureID" + }, + { + "name": "TexDesiredWidth", + "type": "int" + }, + { + "name": "TexGlyphPadding", + "type": "int" + }, + { + "name": "Locked", + "type": "bool" + }, + { + "name": "TexReady", + "type": "bool" + }, + { + "name": "TexPixelsUseColors", + "type": "bool" + }, + { + "name": "TexPixelsAlpha8", + "type": "unsigned char*" + }, + { + "name": "TexPixelsRGBA32", + "type": "unsigned int*" + }, + { + "name": "TexWidth", + "type": "int" + }, + { + "name": "TexHeight", + "type": "int" + }, + { + "name": "TexUvScale", + "type": "ImVec2" + }, + { + "name": "TexUvWhitePixel", + "type": "ImVec2" + }, + { + "name": "Fonts", + "template_type": "ImFont*", + "type": "ImVector_ImFontPtr" + }, + { + "name": "CustomRects", + "template_type": "ImFontAtlasCustomRect", + "type": "ImVector_ImFontAtlasCustomRect" + }, + { + "name": "ConfigData", + "template_type": "ImFontConfig", + "type": "ImVector_ImFontConfig" + }, + { + "name": "TexUvLines[(63)+1]", + "size": 64, + "type": "ImVec4" + }, + { + "name": "FontBuilderIO", + "type": "const ImFontBuilderIO*" + }, + { + "name": "FontBuilderFlags", + "type": "unsigned int" + }, + { + "name": "PackIdMouseCursors", + "type": "int" + }, + { + "name": "PackIdLines", + "type": "int" + } + ], + "ImFontAtlasCustomRect": [ + { + "name": "Width", + "type": "unsigned short" + }, + { + "name": "Height", + "type": "unsigned short" + }, + { + "name": "X", + "type": "unsigned short" + }, + { + "name": "Y", + "type": "unsigned short" + }, + { + "name": "GlyphID", + "type": "unsigned int" + }, + { + "name": "GlyphAdvanceX", + "type": "float" + }, + { + "name": "GlyphOffset", + "type": "ImVec2" + }, + { + "name": "Font", + "type": "ImFont*" + } + ], + "ImFontConfig": [ + { + "name": "FontData", + "type": "void*" + }, + { + "name": "FontDataSize", + "type": "int" + }, + { + "name": "FontDataOwnedByAtlas", + "type": "bool" + }, + { + "name": "FontNo", + "type": "int" + }, + { + "name": "SizePixels", + "type": "float" + }, + { + "name": "OversampleH", + "type": "int" + }, + { + "name": "OversampleV", + "type": "int" + }, + { + "name": "PixelSnapH", + "type": "bool" + }, + { + "name": "GlyphExtraSpacing", + "type": "ImVec2" + }, + { + "name": "GlyphOffset", + "type": "ImVec2" + }, + { + "name": "GlyphRanges", + "type": "const ImWchar*" + }, + { + "name": "GlyphMinAdvanceX", + "type": "float" + }, + { + "name": "GlyphMaxAdvanceX", + "type": "float" + }, + { + "name": "MergeMode", + "type": "bool" + }, + { + "name": "FontBuilderFlags", + "type": "unsigned int" + }, + { + "name": "RasterizerMultiply", + "type": "float" + }, + { + "name": "EllipsisChar", + "type": "ImWchar" + }, + { + "name": "Name[40]", + "size": 40, + "type": "char" + }, + { + "name": "DstFont", + "type": "ImFont*" + } + ], + "ImFontGlyph": [ + { + "bitfield": "1", + "name": "Colored", + "type": "unsigned int" + }, + { + "bitfield": "1", + "name": "Visible", + "type": "unsigned int" + }, + { + "bitfield": "30", + "name": "Codepoint", + "type": "unsigned int" + }, + { + "name": "AdvanceX", + "type": "float" + }, + { + "name": "X0", + "type": "float" + }, + { + "name": "Y0", + "type": "float" + }, + { + "name": "X1", + "type": "float" + }, + { + "name": "Y1", + "type": "float" + }, + { + "name": "U0", + "type": "float" + }, + { + "name": "V0", + "type": "float" + }, + { + "name": "U1", + "type": "float" + }, + { + "name": "V1", + "type": "float" + } + ], + "ImFontGlyphRangesBuilder": [ + { + "name": "UsedChars", + "template_type": "ImU32", + "type": "ImVector_ImU32" + } + ], + "ImGuiIO": [ + { + "name": "ConfigFlags", + "type": "ImGuiConfigFlags" + }, + { + "name": "BackendFlags", + "type": "ImGuiBackendFlags" + }, + { + "name": "DisplaySize", + "type": "ImVec2" + }, + { + "name": "DeltaTime", + "type": "float" + }, + { + "name": "IniSavingRate", + "type": "float" + }, + { + "name": "IniFilename", + "type": "const char*" + }, + { + "name": "LogFilename", + "type": "const char*" + }, + { + "name": "MouseDoubleClickTime", + "type": "float" + }, + { + "name": "MouseDoubleClickMaxDist", + "type": "float" + }, + { + "name": "MouseDragThreshold", + "type": "float" + }, + { + "name": "KeyRepeatDelay", + "type": "float" + }, + { + "name": "KeyRepeatRate", + "type": "float" + }, + { + "name": "HoverDelayNormal", + "type": "float" + }, + { + "name": "HoverDelayShort", + "type": "float" + }, + { + "name": "UserData", + "type": "void*" + }, + { + "name": "Fonts", + "type": "ImFontAtlas*" + }, + { + "name": "FontGlobalScale", + "type": "float" + }, + { + "name": "FontAllowUserScaling", + "type": "bool" + }, + { + "name": "FontDefault", + "type": "ImFont*" + }, + { + "name": "DisplayFramebufferScale", + "type": "ImVec2" + }, + { + "name": "MouseDrawCursor", + "type": "bool" + }, + { + "name": "ConfigMacOSXBehaviors", + "type": "bool" + }, + { + "name": "ConfigInputTrickleEventQueue", + "type": "bool" + }, + { + "name": "ConfigInputTextCursorBlink", + "type": "bool" + }, + { + "name": "ConfigInputTextEnterKeepActive", + "type": "bool" + }, + { + "name": "ConfigDragClickToInputText", + "type": "bool" + }, + { + "name": "ConfigWindowsResizeFromEdges", + "type": "bool" + }, + { + "name": "ConfigWindowsMoveFromTitleBarOnly", + "type": "bool" + }, + { + "name": "ConfigMemoryCompactTimer", + "type": "float" + }, + { + "name": "BackendPlatformName", + "type": "const char*" + }, + { + "name": "BackendRendererName", + "type": "const char*" + }, + { + "name": "BackendPlatformUserData", + "type": "void*" + }, + { + "name": "BackendRendererUserData", + "type": "void*" + }, + { + "name": "BackendLanguageUserData", + "type": "void*" + }, + { + "name": "GetClipboardTextFn", + "type": "const char*(*)(void* user_data)" + }, + { + "name": "SetClipboardTextFn", + "type": "void(*)(void* user_data,const char* text)" + }, + { + "name": "ClipboardUserData", + "type": "void*" + }, + { + "name": "SetPlatformImeDataFn", + "type": "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" + }, + { + "name": "_UnusedPadding", + "type": "void*" + }, + { + "name": "WantCaptureMouse", + "type": "bool" + }, + { + "name": "WantCaptureKeyboard", + "type": "bool" + }, + { + "name": "WantTextInput", + "type": "bool" + }, + { + "name": "WantSetMousePos", + "type": "bool" + }, + { + "name": "WantSaveIniSettings", + "type": "bool" + }, + { + "name": "NavActive", + "type": "bool" + }, + { + "name": "NavVisible", + "type": "bool" + }, + { + "name": "Framerate", + "type": "float" + }, + { + "name": "MetricsRenderVertices", + "type": "int" + }, + { + "name": "MetricsRenderIndices", + "type": "int" + }, + { + "name": "MetricsRenderWindows", + "type": "int" + }, + { + "name": "MetricsActiveWindows", + "type": "int" + }, + { + "name": "MetricsActiveAllocations", + "type": "int" + }, + { + "name": "MouseDelta", + "type": "ImVec2" + }, + { + "name": "KeyMap[ImGuiKey_COUNT]", + "size": 652, + "type": "int" + }, + { + "name": "KeysDown[ImGuiKey_COUNT]", + "size": 652, + "type": "bool" + }, + { + "name": "NavInputs[ImGuiNavInput_COUNT]", + "size": 16, + "type": "float" + }, + { + "name": "MousePos", + "type": "ImVec2" + }, + { + "name": "MouseDown[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseWheel", + "type": "float" + }, + { + "name": "MouseWheelH", + "type": "float" + }, + { + "name": "KeyCtrl", + "type": "bool" + }, + { + "name": "KeyShift", + "type": "bool" + }, + { + "name": "KeyAlt", + "type": "bool" + }, + { + "name": "KeySuper", + "type": "bool" + }, + { + "name": "KeyMods", + "type": "ImGuiKeyChord" + }, + { + "name": "KeysData[ImGuiKey_KeysData_SIZE]", + "size": 652, + "type": "ImGuiKeyData" + }, + { + "name": "WantCaptureMouseUnlessPopupClose", + "type": "bool" + }, + { + "name": "MousePosPrev", + "type": "ImVec2" + }, + { + "name": "MouseClickedPos[5]", + "size": 5, + "type": "ImVec2" + }, + { + "name": "MouseClickedTime[5]", + "size": 5, + "type": "double" + }, + { + "name": "MouseClicked[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDoubleClicked[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseClickedCount[5]", + "size": 5, + "type": "ImU16" + }, + { + "name": "MouseClickedLastCount[5]", + "size": 5, + "type": "ImU16" + }, + { + "name": "MouseReleased[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDownOwned[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDownOwnedUnlessPopupClose[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDownDuration[5]", + "size": 5, + "type": "float" + }, + { + "name": "MouseDownDurationPrev[5]", + "size": 5, + "type": "float" + }, + { + "name": "MouseDragMaxDistanceSqr[5]", + "size": 5, + "type": "float" + }, + { + "name": "PenPressure", + "type": "float" + }, + { + "name": "AppFocusLost", + "type": "bool" + }, + { + "name": "AppAcceptingEvents", + "type": "bool" + }, + { + "name": "BackendUsingLegacyKeyArrays", + "type": "ImS8" + }, + { + "name": "BackendUsingLegacyNavInputArray", + "type": "bool" + }, + { + "name": "InputQueueSurrogate", + "type": "ImWchar16" + }, + { + "name": "InputQueueCharacters", + "template_type": "ImWchar", + "type": "ImVector_ImWchar" + } + ], + "ImGuiInputTextCallbackData": [ + { + "name": "EventFlag", + "type": "ImGuiInputTextFlags" + }, + { + "name": "Flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "UserData", + "type": "void*" + }, + { + "name": "EventChar", + "type": "ImWchar" + }, + { + "name": "EventKey", + "type": "ImGuiKey" + }, + { + "name": "Buf", + "type": "char*" + }, + { + "name": "BufTextLen", + "type": "int" + }, + { + "name": "BufSize", + "type": "int" + }, + { + "name": "BufDirty", + "type": "bool" + }, + { + "name": "CursorPos", + "type": "int" + }, + { + "name": "SelectionStart", + "type": "int" + }, + { + "name": "SelectionEnd", + "type": "int" + } + ], + "ImGuiKeyData": [ + { + "name": "Down", + "type": "bool" + }, + { + "name": "DownDuration", + "type": "float" + }, + { + "name": "DownDurationPrev", + "type": "float" + }, + { + "name": "AnalogValue", + "type": "float" + } + ], + "ImGuiListClipper": [ + { + "name": "DisplayStart", + "type": "int" + }, + { + "name": "DisplayEnd", + "type": "int" + }, + { + "name": "ItemsCount", + "type": "int" + }, + { + "name": "ItemsHeight", + "type": "float" + }, + { + "name": "StartPosY", + "type": "float" + }, + { + "name": "TempData", + "type": "void*" + } + ], + "ImGuiOnceUponAFrame": [ + { + "name": "RefFrame", + "type": "int" + } + ], + "ImGuiPayload": [ + { + "name": "Data", + "type": "void*" + }, + { + "name": "DataSize", + "type": "int" + }, + { + "name": "SourceId", + "type": "ImGuiID" + }, + { + "name": "SourceParentId", + "type": "ImGuiID" + }, + { + "name": "DataFrameCount", + "type": "int" + }, + { + "name": "DataType[32+1]", + "size": 33, + "type": "char" + }, + { + "name": "Preview", + "type": "bool" + }, + { + "name": "Delivery", + "type": "bool" + } + ], + "ImGuiPlatformImeData": [ + { + "name": "WantVisible", + "type": "bool" + }, + { + "name": "InputPos", + "type": "ImVec2" + }, + { + "name": "InputLineHeight", + "type": "float" + } + ], + "ImGuiSizeCallbackData": [ + { + "name": "UserData", + "type": "void*" + }, + { + "name": "Pos", + "type": "ImVec2" + }, + { + "name": "CurrentSize", + "type": "ImVec2" + }, + { + "name": "DesiredSize", + "type": "ImVec2" + } + ], + "ImGuiStorage": [ + { + "name": "Data", + "template_type": "ImGuiStoragePair", + "type": "ImVector_ImGuiStoragePair" + } + ], + "ImGuiStoragePair": [ + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "", + "type": "union { int val_i; float val_f; void* val_p;}" + } + ], + "ImGuiStyle": [ + { + "name": "Alpha", + "type": "float" + }, + { + "name": "DisabledAlpha", + "type": "float" + }, + { + "name": "WindowPadding", + "type": "ImVec2" + }, + { + "name": "WindowRounding", + "type": "float" + }, + { + "name": "WindowBorderSize", + "type": "float" + }, + { + "name": "WindowMinSize", + "type": "ImVec2" + }, + { + "name": "WindowTitleAlign", + "type": "ImVec2" + }, + { + "name": "WindowMenuButtonPosition", + "type": "ImGuiDir" + }, + { + "name": "ChildRounding", + "type": "float" + }, + { + "name": "ChildBorderSize", + "type": "float" + }, + { + "name": "PopupRounding", + "type": "float" + }, + { + "name": "PopupBorderSize", + "type": "float" + }, + { + "name": "FramePadding", + "type": "ImVec2" + }, + { + "name": "FrameRounding", + "type": "float" + }, + { + "name": "FrameBorderSize", + "type": "float" + }, + { + "name": "ItemSpacing", + "type": "ImVec2" + }, + { + "name": "ItemInnerSpacing", + "type": "ImVec2" + }, + { + "name": "CellPadding", + "type": "ImVec2" + }, + { + "name": "TouchExtraPadding", + "type": "ImVec2" + }, + { + "name": "IndentSpacing", + "type": "float" + }, + { + "name": "ColumnsMinSpacing", + "type": "float" + }, + { + "name": "ScrollbarSize", + "type": "float" + }, + { + "name": "ScrollbarRounding", + "type": "float" + }, + { + "name": "GrabMinSize", + "type": "float" + }, + { + "name": "GrabRounding", + "type": "float" + }, + { + "name": "LogSliderDeadzone", + "type": "float" + }, + { + "name": "TabRounding", + "type": "float" + }, + { + "name": "TabBorderSize", + "type": "float" + }, + { + "name": "TabMinWidthForCloseButton", + "type": "float" + }, + { + "name": "ColorButtonPosition", + "type": "ImGuiDir" + }, + { + "name": "ButtonTextAlign", + "type": "ImVec2" + }, + { + "name": "SelectableTextAlign", + "type": "ImVec2" + }, + { + "name": "DisplayWindowPadding", + "type": "ImVec2" + }, + { + "name": "DisplaySafeAreaPadding", + "type": "ImVec2" + }, + { + "name": "MouseCursorScale", + "type": "float" + }, + { + "name": "AntiAliasedLines", + "type": "bool" + }, + { + "name": "AntiAliasedLinesUseTex", + "type": "bool" + }, + { + "name": "AntiAliasedFill", + "type": "bool" + }, + { + "name": "CurveTessellationTol", + "type": "float" + }, + { + "name": "CircleTessellationMaxError", + "type": "float" + }, + { + "name": "Colors[ImGuiCol_COUNT]", + "size": 53, + "type": "ImVec4" + } + ], + "ImGuiTableColumnSortSpecs": [ + { + "name": "ColumnUserID", + "type": "ImGuiID" + }, + { + "name": "ColumnIndex", + "type": "ImS16" + }, + { + "name": "SortOrder", + "type": "ImS16" + }, + { + "bitfield": "8", + "name": "SortDirection", + "type": "ImGuiSortDirection" + } + ], + "ImGuiTableSortSpecs": [ + { + "name": "Specs", + "type": "const ImGuiTableColumnSortSpecs*" + }, + { + "name": "SpecsCount", + "type": "int" + }, + { + "name": "SpecsDirty", + "type": "bool" + } + ], + "ImGuiTextBuffer": [ + { + "name": "Buf", + "template_type": "char", + "type": "ImVector_char" + } + ], + "ImGuiTextFilter": [ + { + "name": "InputBuf[256]", + "size": 256, + "type": "char" + }, + { + "name": "Filters", + "template_type": "ImGuiTextRange", + "type": "ImVector_ImGuiTextRange" + }, + { + "name": "CountGrep", + "type": "int" + } + ], + "ImGuiTextRange": [ + { + "name": "b", + "type": "const char*" + }, + { + "name": "e", + "type": "const char*" + } + ], + "ImGuiViewport": [ + { + "name": "Flags", + "type": "ImGuiViewportFlags" + }, + { + "name": "Pos", + "type": "ImVec2" + }, + { + "name": "Size", + "type": "ImVec2" + }, + { + "name": "WorkPos", + "type": "ImVec2" + }, + { + "name": "WorkSize", + "type": "ImVec2" + }, + { + "name": "PlatformHandleRaw", + "type": "void*" + } + ], + "ImVec2": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ], + "ImVec4": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "z", + "type": "float" + }, + { + "name": "w", + "type": "float" + } + ] + } +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master-freetype/structs_and_enums.lua b/imgui-sys/third-party/imgui-master-freetype/structs_and_enums.lua new file mode 100644 index 000000000..1ac35bbdc --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/structs_and_enums.lua @@ -0,0 +1,3560 @@ +local defs = {} +defs["enums"] = {} +defs["enums"]["ImDrawFlags_"] = {} +defs["enums"]["ImDrawFlags_"][1] = {} +defs["enums"]["ImDrawFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImDrawFlags_"][1]["name"] = "ImDrawFlags_None" +defs["enums"]["ImDrawFlags_"][1]["value"] = "0" +defs["enums"]["ImDrawFlags_"][2] = {} +defs["enums"]["ImDrawFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImDrawFlags_"][2]["name"] = "ImDrawFlags_Closed" +defs["enums"]["ImDrawFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImDrawFlags_"][3] = {} +defs["enums"]["ImDrawFlags_"][3]["calc_value"] = 16 +defs["enums"]["ImDrawFlags_"][3]["name"] = "ImDrawFlags_RoundCornersTopLeft" +defs["enums"]["ImDrawFlags_"][3]["value"] = "1 << 4" +defs["enums"]["ImDrawFlags_"][4] = {} +defs["enums"]["ImDrawFlags_"][4]["calc_value"] = 32 +defs["enums"]["ImDrawFlags_"][4]["name"] = "ImDrawFlags_RoundCornersTopRight" +defs["enums"]["ImDrawFlags_"][4]["value"] = "1 << 5" +defs["enums"]["ImDrawFlags_"][5] = {} +defs["enums"]["ImDrawFlags_"][5]["calc_value"] = 64 +defs["enums"]["ImDrawFlags_"][5]["name"] = "ImDrawFlags_RoundCornersBottomLeft" +defs["enums"]["ImDrawFlags_"][5]["value"] = "1 << 6" +defs["enums"]["ImDrawFlags_"][6] = {} +defs["enums"]["ImDrawFlags_"][6]["calc_value"] = 128 +defs["enums"]["ImDrawFlags_"][6]["name"] = "ImDrawFlags_RoundCornersBottomRight" +defs["enums"]["ImDrawFlags_"][6]["value"] = "1 << 7" +defs["enums"]["ImDrawFlags_"][7] = {} +defs["enums"]["ImDrawFlags_"][7]["calc_value"] = 256 +defs["enums"]["ImDrawFlags_"][7]["name"] = "ImDrawFlags_RoundCornersNone" +defs["enums"]["ImDrawFlags_"][7]["value"] = "1 << 8" +defs["enums"]["ImDrawFlags_"][8] = {} +defs["enums"]["ImDrawFlags_"][8]["calc_value"] = 48 +defs["enums"]["ImDrawFlags_"][8]["name"] = "ImDrawFlags_RoundCornersTop" +defs["enums"]["ImDrawFlags_"][8]["value"] = "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight" +defs["enums"]["ImDrawFlags_"][9] = {} +defs["enums"]["ImDrawFlags_"][9]["calc_value"] = 192 +defs["enums"]["ImDrawFlags_"][9]["name"] = "ImDrawFlags_RoundCornersBottom" +defs["enums"]["ImDrawFlags_"][9]["value"] = "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight" +defs["enums"]["ImDrawFlags_"][10] = {} +defs["enums"]["ImDrawFlags_"][10]["calc_value"] = 80 +defs["enums"]["ImDrawFlags_"][10]["name"] = "ImDrawFlags_RoundCornersLeft" +defs["enums"]["ImDrawFlags_"][10]["value"] = "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft" +defs["enums"]["ImDrawFlags_"][11] = {} +defs["enums"]["ImDrawFlags_"][11]["calc_value"] = 160 +defs["enums"]["ImDrawFlags_"][11]["name"] = "ImDrawFlags_RoundCornersRight" +defs["enums"]["ImDrawFlags_"][11]["value"] = "ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight" +defs["enums"]["ImDrawFlags_"][12] = {} +defs["enums"]["ImDrawFlags_"][12]["calc_value"] = 240 +defs["enums"]["ImDrawFlags_"][12]["name"] = "ImDrawFlags_RoundCornersAll" +defs["enums"]["ImDrawFlags_"][12]["value"] = "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight" +defs["enums"]["ImDrawFlags_"][13] = {} +defs["enums"]["ImDrawFlags_"][13]["calc_value"] = 240 +defs["enums"]["ImDrawFlags_"][13]["name"] = "ImDrawFlags_RoundCornersDefault_" +defs["enums"]["ImDrawFlags_"][13]["value"] = "ImDrawFlags_RoundCornersAll" +defs["enums"]["ImDrawFlags_"][14] = {} +defs["enums"]["ImDrawFlags_"][14]["calc_value"] = 496 +defs["enums"]["ImDrawFlags_"][14]["name"] = "ImDrawFlags_RoundCornersMask_" +defs["enums"]["ImDrawFlags_"][14]["value"] = "ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone" +defs["enums"]["ImDrawListFlags_"] = {} +defs["enums"]["ImDrawListFlags_"][1] = {} +defs["enums"]["ImDrawListFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImDrawListFlags_"][1]["name"] = "ImDrawListFlags_None" +defs["enums"]["ImDrawListFlags_"][1]["value"] = "0" +defs["enums"]["ImDrawListFlags_"][2] = {} +defs["enums"]["ImDrawListFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImDrawListFlags_"][2]["name"] = "ImDrawListFlags_AntiAliasedLines" +defs["enums"]["ImDrawListFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImDrawListFlags_"][3] = {} +defs["enums"]["ImDrawListFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImDrawListFlags_"][3]["name"] = "ImDrawListFlags_AntiAliasedLinesUseTex" +defs["enums"]["ImDrawListFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImDrawListFlags_"][4] = {} +defs["enums"]["ImDrawListFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImDrawListFlags_"][4]["name"] = "ImDrawListFlags_AntiAliasedFill" +defs["enums"]["ImDrawListFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImDrawListFlags_"][5] = {} +defs["enums"]["ImDrawListFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImDrawListFlags_"][5]["name"] = "ImDrawListFlags_AllowVtxOffset" +defs["enums"]["ImDrawListFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImFontAtlasFlags_"] = {} +defs["enums"]["ImFontAtlasFlags_"][1] = {} +defs["enums"]["ImFontAtlasFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImFontAtlasFlags_"][1]["name"] = "ImFontAtlasFlags_None" +defs["enums"]["ImFontAtlasFlags_"][1]["value"] = "0" +defs["enums"]["ImFontAtlasFlags_"][2] = {} +defs["enums"]["ImFontAtlasFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImFontAtlasFlags_"][2]["name"] = "ImFontAtlasFlags_NoPowerOfTwoHeight" +defs["enums"]["ImFontAtlasFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImFontAtlasFlags_"][3] = {} +defs["enums"]["ImFontAtlasFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImFontAtlasFlags_"][3]["name"] = "ImFontAtlasFlags_NoMouseCursors" +defs["enums"]["ImFontAtlasFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImFontAtlasFlags_"][4] = {} +defs["enums"]["ImFontAtlasFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImFontAtlasFlags_"][4]["name"] = "ImFontAtlasFlags_NoBakedLines" +defs["enums"]["ImFontAtlasFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiBackendFlags_"] = {} +defs["enums"]["ImGuiBackendFlags_"][1] = {} +defs["enums"]["ImGuiBackendFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiBackendFlags_"][1]["name"] = "ImGuiBackendFlags_None" +defs["enums"]["ImGuiBackendFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiBackendFlags_"][2] = {} +defs["enums"]["ImGuiBackendFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiBackendFlags_"][2]["name"] = "ImGuiBackendFlags_HasGamepad" +defs["enums"]["ImGuiBackendFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiBackendFlags_"][3] = {} +defs["enums"]["ImGuiBackendFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiBackendFlags_"][3]["name"] = "ImGuiBackendFlags_HasMouseCursors" +defs["enums"]["ImGuiBackendFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiBackendFlags_"][4] = {} +defs["enums"]["ImGuiBackendFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiBackendFlags_"][4]["name"] = "ImGuiBackendFlags_HasSetMousePos" +defs["enums"]["ImGuiBackendFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiBackendFlags_"][5] = {} +defs["enums"]["ImGuiBackendFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiBackendFlags_"][5]["name"] = "ImGuiBackendFlags_RendererHasVtxOffset" +defs["enums"]["ImGuiBackendFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiButtonFlags_"] = {} +defs["enums"]["ImGuiButtonFlags_"][1] = {} +defs["enums"]["ImGuiButtonFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiButtonFlags_"][1]["name"] = "ImGuiButtonFlags_None" +defs["enums"]["ImGuiButtonFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiButtonFlags_"][2] = {} +defs["enums"]["ImGuiButtonFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiButtonFlags_"][2]["name"] = "ImGuiButtonFlags_MouseButtonLeft" +defs["enums"]["ImGuiButtonFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiButtonFlags_"][3] = {} +defs["enums"]["ImGuiButtonFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiButtonFlags_"][3]["name"] = "ImGuiButtonFlags_MouseButtonRight" +defs["enums"]["ImGuiButtonFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiButtonFlags_"][4] = {} +defs["enums"]["ImGuiButtonFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiButtonFlags_"][4]["name"] = "ImGuiButtonFlags_MouseButtonMiddle" +defs["enums"]["ImGuiButtonFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiButtonFlags_"][5] = {} +defs["enums"]["ImGuiButtonFlags_"][5]["calc_value"] = 7 +defs["enums"]["ImGuiButtonFlags_"][5]["name"] = "ImGuiButtonFlags_MouseButtonMask_" +defs["enums"]["ImGuiButtonFlags_"][5]["value"] = "ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle" +defs["enums"]["ImGuiButtonFlags_"][6] = {} +defs["enums"]["ImGuiButtonFlags_"][6]["calc_value"] = 1 +defs["enums"]["ImGuiButtonFlags_"][6]["name"] = "ImGuiButtonFlags_MouseButtonDefault_" +defs["enums"]["ImGuiButtonFlags_"][6]["value"] = "ImGuiButtonFlags_MouseButtonLeft" +defs["enums"]["ImGuiCol_"] = {} +defs["enums"]["ImGuiCol_"][1] = {} +defs["enums"]["ImGuiCol_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiCol_"][1]["name"] = "ImGuiCol_Text" +defs["enums"]["ImGuiCol_"][1]["value"] = "0" +defs["enums"]["ImGuiCol_"][2] = {} +defs["enums"]["ImGuiCol_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiCol_"][2]["name"] = "ImGuiCol_TextDisabled" +defs["enums"]["ImGuiCol_"][2]["value"] = "1" +defs["enums"]["ImGuiCol_"][3] = {} +defs["enums"]["ImGuiCol_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiCol_"][3]["name"] = "ImGuiCol_WindowBg" +defs["enums"]["ImGuiCol_"][3]["value"] = "2" +defs["enums"]["ImGuiCol_"][4] = {} +defs["enums"]["ImGuiCol_"][4]["calc_value"] = 3 +defs["enums"]["ImGuiCol_"][4]["name"] = "ImGuiCol_ChildBg" +defs["enums"]["ImGuiCol_"][4]["value"] = "3" +defs["enums"]["ImGuiCol_"][5] = {} +defs["enums"]["ImGuiCol_"][5]["calc_value"] = 4 +defs["enums"]["ImGuiCol_"][5]["name"] = "ImGuiCol_PopupBg" +defs["enums"]["ImGuiCol_"][5]["value"] = "4" +defs["enums"]["ImGuiCol_"][6] = {} +defs["enums"]["ImGuiCol_"][6]["calc_value"] = 5 +defs["enums"]["ImGuiCol_"][6]["name"] = "ImGuiCol_Border" +defs["enums"]["ImGuiCol_"][6]["value"] = "5" +defs["enums"]["ImGuiCol_"][7] = {} +defs["enums"]["ImGuiCol_"][7]["calc_value"] = 6 +defs["enums"]["ImGuiCol_"][7]["name"] = "ImGuiCol_BorderShadow" +defs["enums"]["ImGuiCol_"][7]["value"] = "6" +defs["enums"]["ImGuiCol_"][8] = {} +defs["enums"]["ImGuiCol_"][8]["calc_value"] = 7 +defs["enums"]["ImGuiCol_"][8]["name"] = "ImGuiCol_FrameBg" +defs["enums"]["ImGuiCol_"][8]["value"] = "7" +defs["enums"]["ImGuiCol_"][9] = {} +defs["enums"]["ImGuiCol_"][9]["calc_value"] = 8 +defs["enums"]["ImGuiCol_"][9]["name"] = "ImGuiCol_FrameBgHovered" +defs["enums"]["ImGuiCol_"][9]["value"] = "8" +defs["enums"]["ImGuiCol_"][10] = {} +defs["enums"]["ImGuiCol_"][10]["calc_value"] = 9 +defs["enums"]["ImGuiCol_"][10]["name"] = "ImGuiCol_FrameBgActive" +defs["enums"]["ImGuiCol_"][10]["value"] = "9" +defs["enums"]["ImGuiCol_"][11] = {} +defs["enums"]["ImGuiCol_"][11]["calc_value"] = 10 +defs["enums"]["ImGuiCol_"][11]["name"] = "ImGuiCol_TitleBg" +defs["enums"]["ImGuiCol_"][11]["value"] = "10" +defs["enums"]["ImGuiCol_"][12] = {} +defs["enums"]["ImGuiCol_"][12]["calc_value"] = 11 +defs["enums"]["ImGuiCol_"][12]["name"] = "ImGuiCol_TitleBgActive" +defs["enums"]["ImGuiCol_"][12]["value"] = "11" +defs["enums"]["ImGuiCol_"][13] = {} +defs["enums"]["ImGuiCol_"][13]["calc_value"] = 12 +defs["enums"]["ImGuiCol_"][13]["name"] = "ImGuiCol_TitleBgCollapsed" +defs["enums"]["ImGuiCol_"][13]["value"] = "12" +defs["enums"]["ImGuiCol_"][14] = {} +defs["enums"]["ImGuiCol_"][14]["calc_value"] = 13 +defs["enums"]["ImGuiCol_"][14]["name"] = "ImGuiCol_MenuBarBg" +defs["enums"]["ImGuiCol_"][14]["value"] = "13" +defs["enums"]["ImGuiCol_"][15] = {} +defs["enums"]["ImGuiCol_"][15]["calc_value"] = 14 +defs["enums"]["ImGuiCol_"][15]["name"] = "ImGuiCol_ScrollbarBg" +defs["enums"]["ImGuiCol_"][15]["value"] = "14" +defs["enums"]["ImGuiCol_"][16] = {} +defs["enums"]["ImGuiCol_"][16]["calc_value"] = 15 +defs["enums"]["ImGuiCol_"][16]["name"] = "ImGuiCol_ScrollbarGrab" +defs["enums"]["ImGuiCol_"][16]["value"] = "15" +defs["enums"]["ImGuiCol_"][17] = {} +defs["enums"]["ImGuiCol_"][17]["calc_value"] = 16 +defs["enums"]["ImGuiCol_"][17]["name"] = "ImGuiCol_ScrollbarGrabHovered" +defs["enums"]["ImGuiCol_"][17]["value"] = "16" +defs["enums"]["ImGuiCol_"][18] = {} +defs["enums"]["ImGuiCol_"][18]["calc_value"] = 17 +defs["enums"]["ImGuiCol_"][18]["name"] = "ImGuiCol_ScrollbarGrabActive" +defs["enums"]["ImGuiCol_"][18]["value"] = "17" +defs["enums"]["ImGuiCol_"][19] = {} +defs["enums"]["ImGuiCol_"][19]["calc_value"] = 18 +defs["enums"]["ImGuiCol_"][19]["name"] = "ImGuiCol_CheckMark" +defs["enums"]["ImGuiCol_"][19]["value"] = "18" +defs["enums"]["ImGuiCol_"][20] = {} +defs["enums"]["ImGuiCol_"][20]["calc_value"] = 19 +defs["enums"]["ImGuiCol_"][20]["name"] = "ImGuiCol_SliderGrab" +defs["enums"]["ImGuiCol_"][20]["value"] = "19" +defs["enums"]["ImGuiCol_"][21] = {} +defs["enums"]["ImGuiCol_"][21]["calc_value"] = 20 +defs["enums"]["ImGuiCol_"][21]["name"] = "ImGuiCol_SliderGrabActive" +defs["enums"]["ImGuiCol_"][21]["value"] = "20" +defs["enums"]["ImGuiCol_"][22] = {} +defs["enums"]["ImGuiCol_"][22]["calc_value"] = 21 +defs["enums"]["ImGuiCol_"][22]["name"] = "ImGuiCol_Button" +defs["enums"]["ImGuiCol_"][22]["value"] = "21" +defs["enums"]["ImGuiCol_"][23] = {} +defs["enums"]["ImGuiCol_"][23]["calc_value"] = 22 +defs["enums"]["ImGuiCol_"][23]["name"] = "ImGuiCol_ButtonHovered" +defs["enums"]["ImGuiCol_"][23]["value"] = "22" +defs["enums"]["ImGuiCol_"][24] = {} +defs["enums"]["ImGuiCol_"][24]["calc_value"] = 23 +defs["enums"]["ImGuiCol_"][24]["name"] = "ImGuiCol_ButtonActive" +defs["enums"]["ImGuiCol_"][24]["value"] = "23" +defs["enums"]["ImGuiCol_"][25] = {} +defs["enums"]["ImGuiCol_"][25]["calc_value"] = 24 +defs["enums"]["ImGuiCol_"][25]["name"] = "ImGuiCol_Header" +defs["enums"]["ImGuiCol_"][25]["value"] = "24" +defs["enums"]["ImGuiCol_"][26] = {} +defs["enums"]["ImGuiCol_"][26]["calc_value"] = 25 +defs["enums"]["ImGuiCol_"][26]["name"] = "ImGuiCol_HeaderHovered" +defs["enums"]["ImGuiCol_"][26]["value"] = "25" +defs["enums"]["ImGuiCol_"][27] = {} +defs["enums"]["ImGuiCol_"][27]["calc_value"] = 26 +defs["enums"]["ImGuiCol_"][27]["name"] = "ImGuiCol_HeaderActive" +defs["enums"]["ImGuiCol_"][27]["value"] = "26" +defs["enums"]["ImGuiCol_"][28] = {} +defs["enums"]["ImGuiCol_"][28]["calc_value"] = 27 +defs["enums"]["ImGuiCol_"][28]["name"] = "ImGuiCol_Separator" +defs["enums"]["ImGuiCol_"][28]["value"] = "27" +defs["enums"]["ImGuiCol_"][29] = {} +defs["enums"]["ImGuiCol_"][29]["calc_value"] = 28 +defs["enums"]["ImGuiCol_"][29]["name"] = "ImGuiCol_SeparatorHovered" +defs["enums"]["ImGuiCol_"][29]["value"] = "28" +defs["enums"]["ImGuiCol_"][30] = {} +defs["enums"]["ImGuiCol_"][30]["calc_value"] = 29 +defs["enums"]["ImGuiCol_"][30]["name"] = "ImGuiCol_SeparatorActive" +defs["enums"]["ImGuiCol_"][30]["value"] = "29" +defs["enums"]["ImGuiCol_"][31] = {} +defs["enums"]["ImGuiCol_"][31]["calc_value"] = 30 +defs["enums"]["ImGuiCol_"][31]["name"] = "ImGuiCol_ResizeGrip" +defs["enums"]["ImGuiCol_"][31]["value"] = "30" +defs["enums"]["ImGuiCol_"][32] = {} +defs["enums"]["ImGuiCol_"][32]["calc_value"] = 31 +defs["enums"]["ImGuiCol_"][32]["name"] = "ImGuiCol_ResizeGripHovered" +defs["enums"]["ImGuiCol_"][32]["value"] = "31" +defs["enums"]["ImGuiCol_"][33] = {} +defs["enums"]["ImGuiCol_"][33]["calc_value"] = 32 +defs["enums"]["ImGuiCol_"][33]["name"] = "ImGuiCol_ResizeGripActive" +defs["enums"]["ImGuiCol_"][33]["value"] = "32" +defs["enums"]["ImGuiCol_"][34] = {} +defs["enums"]["ImGuiCol_"][34]["calc_value"] = 33 +defs["enums"]["ImGuiCol_"][34]["name"] = "ImGuiCol_Tab" +defs["enums"]["ImGuiCol_"][34]["value"] = "33" +defs["enums"]["ImGuiCol_"][35] = {} +defs["enums"]["ImGuiCol_"][35]["calc_value"] = 34 +defs["enums"]["ImGuiCol_"][35]["name"] = "ImGuiCol_TabHovered" +defs["enums"]["ImGuiCol_"][35]["value"] = "34" +defs["enums"]["ImGuiCol_"][36] = {} +defs["enums"]["ImGuiCol_"][36]["calc_value"] = 35 +defs["enums"]["ImGuiCol_"][36]["name"] = "ImGuiCol_TabActive" +defs["enums"]["ImGuiCol_"][36]["value"] = "35" +defs["enums"]["ImGuiCol_"][37] = {} +defs["enums"]["ImGuiCol_"][37]["calc_value"] = 36 +defs["enums"]["ImGuiCol_"][37]["name"] = "ImGuiCol_TabUnfocused" +defs["enums"]["ImGuiCol_"][37]["value"] = "36" +defs["enums"]["ImGuiCol_"][38] = {} +defs["enums"]["ImGuiCol_"][38]["calc_value"] = 37 +defs["enums"]["ImGuiCol_"][38]["name"] = "ImGuiCol_TabUnfocusedActive" +defs["enums"]["ImGuiCol_"][38]["value"] = "37" +defs["enums"]["ImGuiCol_"][39] = {} +defs["enums"]["ImGuiCol_"][39]["calc_value"] = 38 +defs["enums"]["ImGuiCol_"][39]["name"] = "ImGuiCol_PlotLines" +defs["enums"]["ImGuiCol_"][39]["value"] = "38" +defs["enums"]["ImGuiCol_"][40] = {} +defs["enums"]["ImGuiCol_"][40]["calc_value"] = 39 +defs["enums"]["ImGuiCol_"][40]["name"] = "ImGuiCol_PlotLinesHovered" +defs["enums"]["ImGuiCol_"][40]["value"] = "39" +defs["enums"]["ImGuiCol_"][41] = {} +defs["enums"]["ImGuiCol_"][41]["calc_value"] = 40 +defs["enums"]["ImGuiCol_"][41]["name"] = "ImGuiCol_PlotHistogram" +defs["enums"]["ImGuiCol_"][41]["value"] = "40" +defs["enums"]["ImGuiCol_"][42] = {} +defs["enums"]["ImGuiCol_"][42]["calc_value"] = 41 +defs["enums"]["ImGuiCol_"][42]["name"] = "ImGuiCol_PlotHistogramHovered" +defs["enums"]["ImGuiCol_"][42]["value"] = "41" +defs["enums"]["ImGuiCol_"][43] = {} +defs["enums"]["ImGuiCol_"][43]["calc_value"] = 42 +defs["enums"]["ImGuiCol_"][43]["name"] = "ImGuiCol_TableHeaderBg" +defs["enums"]["ImGuiCol_"][43]["value"] = "42" +defs["enums"]["ImGuiCol_"][44] = {} +defs["enums"]["ImGuiCol_"][44]["calc_value"] = 43 +defs["enums"]["ImGuiCol_"][44]["name"] = "ImGuiCol_TableBorderStrong" +defs["enums"]["ImGuiCol_"][44]["value"] = "43" +defs["enums"]["ImGuiCol_"][45] = {} +defs["enums"]["ImGuiCol_"][45]["calc_value"] = 44 +defs["enums"]["ImGuiCol_"][45]["name"] = "ImGuiCol_TableBorderLight" +defs["enums"]["ImGuiCol_"][45]["value"] = "44" +defs["enums"]["ImGuiCol_"][46] = {} +defs["enums"]["ImGuiCol_"][46]["calc_value"] = 45 +defs["enums"]["ImGuiCol_"][46]["name"] = "ImGuiCol_TableRowBg" +defs["enums"]["ImGuiCol_"][46]["value"] = "45" +defs["enums"]["ImGuiCol_"][47] = {} +defs["enums"]["ImGuiCol_"][47]["calc_value"] = 46 +defs["enums"]["ImGuiCol_"][47]["name"] = "ImGuiCol_TableRowBgAlt" +defs["enums"]["ImGuiCol_"][47]["value"] = "46" +defs["enums"]["ImGuiCol_"][48] = {} +defs["enums"]["ImGuiCol_"][48]["calc_value"] = 47 +defs["enums"]["ImGuiCol_"][48]["name"] = "ImGuiCol_TextSelectedBg" +defs["enums"]["ImGuiCol_"][48]["value"] = "47" +defs["enums"]["ImGuiCol_"][49] = {} +defs["enums"]["ImGuiCol_"][49]["calc_value"] = 48 +defs["enums"]["ImGuiCol_"][49]["name"] = "ImGuiCol_DragDropTarget" +defs["enums"]["ImGuiCol_"][49]["value"] = "48" +defs["enums"]["ImGuiCol_"][50] = {} +defs["enums"]["ImGuiCol_"][50]["calc_value"] = 49 +defs["enums"]["ImGuiCol_"][50]["name"] = "ImGuiCol_NavHighlight" +defs["enums"]["ImGuiCol_"][50]["value"] = "49" +defs["enums"]["ImGuiCol_"][51] = {} +defs["enums"]["ImGuiCol_"][51]["calc_value"] = 50 +defs["enums"]["ImGuiCol_"][51]["name"] = "ImGuiCol_NavWindowingHighlight" +defs["enums"]["ImGuiCol_"][51]["value"] = "50" +defs["enums"]["ImGuiCol_"][52] = {} +defs["enums"]["ImGuiCol_"][52]["calc_value"] = 51 +defs["enums"]["ImGuiCol_"][52]["name"] = "ImGuiCol_NavWindowingDimBg" +defs["enums"]["ImGuiCol_"][52]["value"] = "51" +defs["enums"]["ImGuiCol_"][53] = {} +defs["enums"]["ImGuiCol_"][53]["calc_value"] = 52 +defs["enums"]["ImGuiCol_"][53]["name"] = "ImGuiCol_ModalWindowDimBg" +defs["enums"]["ImGuiCol_"][53]["value"] = "52" +defs["enums"]["ImGuiCol_"][54] = {} +defs["enums"]["ImGuiCol_"][54]["calc_value"] = 53 +defs["enums"]["ImGuiCol_"][54]["name"] = "ImGuiCol_COUNT" +defs["enums"]["ImGuiCol_"][54]["value"] = "53" +defs["enums"]["ImGuiColorEditFlags_"] = {} +defs["enums"]["ImGuiColorEditFlags_"][1] = {} +defs["enums"]["ImGuiColorEditFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiColorEditFlags_"][1]["name"] = "ImGuiColorEditFlags_None" +defs["enums"]["ImGuiColorEditFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiColorEditFlags_"][2] = {} +defs["enums"]["ImGuiColorEditFlags_"][2]["calc_value"] = 2 +defs["enums"]["ImGuiColorEditFlags_"][2]["name"] = "ImGuiColorEditFlags_NoAlpha" +defs["enums"]["ImGuiColorEditFlags_"][2]["value"] = "1 << 1" +defs["enums"]["ImGuiColorEditFlags_"][3] = {} +defs["enums"]["ImGuiColorEditFlags_"][3]["calc_value"] = 4 +defs["enums"]["ImGuiColorEditFlags_"][3]["name"] = "ImGuiColorEditFlags_NoPicker" +defs["enums"]["ImGuiColorEditFlags_"][3]["value"] = "1 << 2" +defs["enums"]["ImGuiColorEditFlags_"][4] = {} +defs["enums"]["ImGuiColorEditFlags_"][4]["calc_value"] = 8 +defs["enums"]["ImGuiColorEditFlags_"][4]["name"] = "ImGuiColorEditFlags_NoOptions" +defs["enums"]["ImGuiColorEditFlags_"][4]["value"] = "1 << 3" +defs["enums"]["ImGuiColorEditFlags_"][5] = {} +defs["enums"]["ImGuiColorEditFlags_"][5]["calc_value"] = 16 +defs["enums"]["ImGuiColorEditFlags_"][5]["name"] = "ImGuiColorEditFlags_NoSmallPreview" +defs["enums"]["ImGuiColorEditFlags_"][5]["value"] = "1 << 4" +defs["enums"]["ImGuiColorEditFlags_"][6] = {} +defs["enums"]["ImGuiColorEditFlags_"][6]["calc_value"] = 32 +defs["enums"]["ImGuiColorEditFlags_"][6]["name"] = "ImGuiColorEditFlags_NoInputs" +defs["enums"]["ImGuiColorEditFlags_"][6]["value"] = "1 << 5" +defs["enums"]["ImGuiColorEditFlags_"][7] = {} +defs["enums"]["ImGuiColorEditFlags_"][7]["calc_value"] = 64 +defs["enums"]["ImGuiColorEditFlags_"][7]["name"] = "ImGuiColorEditFlags_NoTooltip" +defs["enums"]["ImGuiColorEditFlags_"][7]["value"] = "1 << 6" +defs["enums"]["ImGuiColorEditFlags_"][8] = {} +defs["enums"]["ImGuiColorEditFlags_"][8]["calc_value"] = 128 +defs["enums"]["ImGuiColorEditFlags_"][8]["name"] = "ImGuiColorEditFlags_NoLabel" +defs["enums"]["ImGuiColorEditFlags_"][8]["value"] = "1 << 7" +defs["enums"]["ImGuiColorEditFlags_"][9] = {} +defs["enums"]["ImGuiColorEditFlags_"][9]["calc_value"] = 256 +defs["enums"]["ImGuiColorEditFlags_"][9]["name"] = "ImGuiColorEditFlags_NoSidePreview" +defs["enums"]["ImGuiColorEditFlags_"][9]["value"] = "1 << 8" +defs["enums"]["ImGuiColorEditFlags_"][10] = {} +defs["enums"]["ImGuiColorEditFlags_"][10]["calc_value"] = 512 +defs["enums"]["ImGuiColorEditFlags_"][10]["name"] = "ImGuiColorEditFlags_NoDragDrop" +defs["enums"]["ImGuiColorEditFlags_"][10]["value"] = "1 << 9" +defs["enums"]["ImGuiColorEditFlags_"][11] = {} +defs["enums"]["ImGuiColorEditFlags_"][11]["calc_value"] = 1024 +defs["enums"]["ImGuiColorEditFlags_"][11]["name"] = "ImGuiColorEditFlags_NoBorder" +defs["enums"]["ImGuiColorEditFlags_"][11]["value"] = "1 << 10" +defs["enums"]["ImGuiColorEditFlags_"][12] = {} +defs["enums"]["ImGuiColorEditFlags_"][12]["calc_value"] = 65536 +defs["enums"]["ImGuiColorEditFlags_"][12]["name"] = "ImGuiColorEditFlags_AlphaBar" +defs["enums"]["ImGuiColorEditFlags_"][12]["value"] = "1 << 16" +defs["enums"]["ImGuiColorEditFlags_"][13] = {} +defs["enums"]["ImGuiColorEditFlags_"][13]["calc_value"] = 131072 +defs["enums"]["ImGuiColorEditFlags_"][13]["name"] = "ImGuiColorEditFlags_AlphaPreview" +defs["enums"]["ImGuiColorEditFlags_"][13]["value"] = "1 << 17" +defs["enums"]["ImGuiColorEditFlags_"][14] = {} +defs["enums"]["ImGuiColorEditFlags_"][14]["calc_value"] = 262144 +defs["enums"]["ImGuiColorEditFlags_"][14]["name"] = "ImGuiColorEditFlags_AlphaPreviewHalf" +defs["enums"]["ImGuiColorEditFlags_"][14]["value"] = "1 << 18" +defs["enums"]["ImGuiColorEditFlags_"][15] = {} +defs["enums"]["ImGuiColorEditFlags_"][15]["calc_value"] = 524288 +defs["enums"]["ImGuiColorEditFlags_"][15]["name"] = "ImGuiColorEditFlags_HDR" +defs["enums"]["ImGuiColorEditFlags_"][15]["value"] = "1 << 19" +defs["enums"]["ImGuiColorEditFlags_"][16] = {} +defs["enums"]["ImGuiColorEditFlags_"][16]["calc_value"] = 1048576 +defs["enums"]["ImGuiColorEditFlags_"][16]["name"] = "ImGuiColorEditFlags_DisplayRGB" +defs["enums"]["ImGuiColorEditFlags_"][16]["value"] = "1 << 20" +defs["enums"]["ImGuiColorEditFlags_"][17] = {} +defs["enums"]["ImGuiColorEditFlags_"][17]["calc_value"] = 2097152 +defs["enums"]["ImGuiColorEditFlags_"][17]["name"] = "ImGuiColorEditFlags_DisplayHSV" +defs["enums"]["ImGuiColorEditFlags_"][17]["value"] = "1 << 21" +defs["enums"]["ImGuiColorEditFlags_"][18] = {} +defs["enums"]["ImGuiColorEditFlags_"][18]["calc_value"] = 4194304 +defs["enums"]["ImGuiColorEditFlags_"][18]["name"] = "ImGuiColorEditFlags_DisplayHex" +defs["enums"]["ImGuiColorEditFlags_"][18]["value"] = "1 << 22" +defs["enums"]["ImGuiColorEditFlags_"][19] = {} +defs["enums"]["ImGuiColorEditFlags_"][19]["calc_value"] = 8388608 +defs["enums"]["ImGuiColorEditFlags_"][19]["name"] = "ImGuiColorEditFlags_Uint8" +defs["enums"]["ImGuiColorEditFlags_"][19]["value"] = "1 << 23" +defs["enums"]["ImGuiColorEditFlags_"][20] = {} +defs["enums"]["ImGuiColorEditFlags_"][20]["calc_value"] = 16777216 +defs["enums"]["ImGuiColorEditFlags_"][20]["name"] = "ImGuiColorEditFlags_Float" +defs["enums"]["ImGuiColorEditFlags_"][20]["value"] = "1 << 24" +defs["enums"]["ImGuiColorEditFlags_"][21] = {} +defs["enums"]["ImGuiColorEditFlags_"][21]["calc_value"] = 33554432 +defs["enums"]["ImGuiColorEditFlags_"][21]["name"] = "ImGuiColorEditFlags_PickerHueBar" +defs["enums"]["ImGuiColorEditFlags_"][21]["value"] = "1 << 25" +defs["enums"]["ImGuiColorEditFlags_"][22] = {} +defs["enums"]["ImGuiColorEditFlags_"][22]["calc_value"] = 67108864 +defs["enums"]["ImGuiColorEditFlags_"][22]["name"] = "ImGuiColorEditFlags_PickerHueWheel" +defs["enums"]["ImGuiColorEditFlags_"][22]["value"] = "1 << 26" +defs["enums"]["ImGuiColorEditFlags_"][23] = {} +defs["enums"]["ImGuiColorEditFlags_"][23]["calc_value"] = 134217728 +defs["enums"]["ImGuiColorEditFlags_"][23]["name"] = "ImGuiColorEditFlags_InputRGB" +defs["enums"]["ImGuiColorEditFlags_"][23]["value"] = "1 << 27" +defs["enums"]["ImGuiColorEditFlags_"][24] = {} +defs["enums"]["ImGuiColorEditFlags_"][24]["calc_value"] = 268435456 +defs["enums"]["ImGuiColorEditFlags_"][24]["name"] = "ImGuiColorEditFlags_InputHSV" +defs["enums"]["ImGuiColorEditFlags_"][24]["value"] = "1 << 28" +defs["enums"]["ImGuiColorEditFlags_"][25] = {} +defs["enums"]["ImGuiColorEditFlags_"][25]["calc_value"] = 177209344 +defs["enums"]["ImGuiColorEditFlags_"][25]["name"] = "ImGuiColorEditFlags_DefaultOptions_" +defs["enums"]["ImGuiColorEditFlags_"][25]["value"] = "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar" +defs["enums"]["ImGuiColorEditFlags_"][26] = {} +defs["enums"]["ImGuiColorEditFlags_"][26]["calc_value"] = 7340032 +defs["enums"]["ImGuiColorEditFlags_"][26]["name"] = "ImGuiColorEditFlags_DisplayMask_" +defs["enums"]["ImGuiColorEditFlags_"][26]["value"] = "ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex" +defs["enums"]["ImGuiColorEditFlags_"][27] = {} +defs["enums"]["ImGuiColorEditFlags_"][27]["calc_value"] = 25165824 +defs["enums"]["ImGuiColorEditFlags_"][27]["name"] = "ImGuiColorEditFlags_DataTypeMask_" +defs["enums"]["ImGuiColorEditFlags_"][27]["value"] = "ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float" +defs["enums"]["ImGuiColorEditFlags_"][28] = {} +defs["enums"]["ImGuiColorEditFlags_"][28]["calc_value"] = 100663296 +defs["enums"]["ImGuiColorEditFlags_"][28]["name"] = "ImGuiColorEditFlags_PickerMask_" +defs["enums"]["ImGuiColorEditFlags_"][28]["value"] = "ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar" +defs["enums"]["ImGuiColorEditFlags_"][29] = {} +defs["enums"]["ImGuiColorEditFlags_"][29]["calc_value"] = 402653184 +defs["enums"]["ImGuiColorEditFlags_"][29]["name"] = "ImGuiColorEditFlags_InputMask_" +defs["enums"]["ImGuiColorEditFlags_"][29]["value"] = "ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV" +defs["enums"]["ImGuiComboFlags_"] = {} +defs["enums"]["ImGuiComboFlags_"][1] = {} +defs["enums"]["ImGuiComboFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiComboFlags_"][1]["name"] = "ImGuiComboFlags_None" +defs["enums"]["ImGuiComboFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiComboFlags_"][2] = {} +defs["enums"]["ImGuiComboFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiComboFlags_"][2]["name"] = "ImGuiComboFlags_PopupAlignLeft" +defs["enums"]["ImGuiComboFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiComboFlags_"][3] = {} +defs["enums"]["ImGuiComboFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiComboFlags_"][3]["name"] = "ImGuiComboFlags_HeightSmall" +defs["enums"]["ImGuiComboFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiComboFlags_"][4] = {} +defs["enums"]["ImGuiComboFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiComboFlags_"][4]["name"] = "ImGuiComboFlags_HeightRegular" +defs["enums"]["ImGuiComboFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiComboFlags_"][5] = {} +defs["enums"]["ImGuiComboFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiComboFlags_"][5]["name"] = "ImGuiComboFlags_HeightLarge" +defs["enums"]["ImGuiComboFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiComboFlags_"][6] = {} +defs["enums"]["ImGuiComboFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiComboFlags_"][6]["name"] = "ImGuiComboFlags_HeightLargest" +defs["enums"]["ImGuiComboFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiComboFlags_"][7] = {} +defs["enums"]["ImGuiComboFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiComboFlags_"][7]["name"] = "ImGuiComboFlags_NoArrowButton" +defs["enums"]["ImGuiComboFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiComboFlags_"][8] = {} +defs["enums"]["ImGuiComboFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiComboFlags_"][8]["name"] = "ImGuiComboFlags_NoPreview" +defs["enums"]["ImGuiComboFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiComboFlags_"][9] = {} +defs["enums"]["ImGuiComboFlags_"][9]["calc_value"] = 30 +defs["enums"]["ImGuiComboFlags_"][9]["name"] = "ImGuiComboFlags_HeightMask_" +defs["enums"]["ImGuiComboFlags_"][9]["value"] = "ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest" +defs["enums"]["ImGuiCond_"] = {} +defs["enums"]["ImGuiCond_"][1] = {} +defs["enums"]["ImGuiCond_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiCond_"][1]["name"] = "ImGuiCond_None" +defs["enums"]["ImGuiCond_"][1]["value"] = "0" +defs["enums"]["ImGuiCond_"][2] = {} +defs["enums"]["ImGuiCond_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiCond_"][2]["name"] = "ImGuiCond_Always" +defs["enums"]["ImGuiCond_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiCond_"][3] = {} +defs["enums"]["ImGuiCond_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiCond_"][3]["name"] = "ImGuiCond_Once" +defs["enums"]["ImGuiCond_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiCond_"][4] = {} +defs["enums"]["ImGuiCond_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiCond_"][4]["name"] = "ImGuiCond_FirstUseEver" +defs["enums"]["ImGuiCond_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiCond_"][5] = {} +defs["enums"]["ImGuiCond_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiCond_"][5]["name"] = "ImGuiCond_Appearing" +defs["enums"]["ImGuiCond_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiConfigFlags_"] = {} +defs["enums"]["ImGuiConfigFlags_"][1] = {} +defs["enums"]["ImGuiConfigFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiConfigFlags_"][1]["name"] = "ImGuiConfigFlags_None" +defs["enums"]["ImGuiConfigFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiConfigFlags_"][2] = {} +defs["enums"]["ImGuiConfigFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiConfigFlags_"][2]["name"] = "ImGuiConfigFlags_NavEnableKeyboard" +defs["enums"]["ImGuiConfigFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiConfigFlags_"][3] = {} +defs["enums"]["ImGuiConfigFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiConfigFlags_"][3]["name"] = "ImGuiConfigFlags_NavEnableGamepad" +defs["enums"]["ImGuiConfigFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiConfigFlags_"][4] = {} +defs["enums"]["ImGuiConfigFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiConfigFlags_"][4]["name"] = "ImGuiConfigFlags_NavEnableSetMousePos" +defs["enums"]["ImGuiConfigFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiConfigFlags_"][5] = {} +defs["enums"]["ImGuiConfigFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiConfigFlags_"][5]["name"] = "ImGuiConfigFlags_NavNoCaptureKeyboard" +defs["enums"]["ImGuiConfigFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiConfigFlags_"][6] = {} +defs["enums"]["ImGuiConfigFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiConfigFlags_"][6]["name"] = "ImGuiConfigFlags_NoMouse" +defs["enums"]["ImGuiConfigFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiConfigFlags_"][7] = {} +defs["enums"]["ImGuiConfigFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiConfigFlags_"][7]["name"] = "ImGuiConfigFlags_NoMouseCursorChange" +defs["enums"]["ImGuiConfigFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiConfigFlags_"][8] = {} +defs["enums"]["ImGuiConfigFlags_"][8]["calc_value"] = 1048576 +defs["enums"]["ImGuiConfigFlags_"][8]["name"] = "ImGuiConfigFlags_IsSRGB" +defs["enums"]["ImGuiConfigFlags_"][8]["value"] = "1 << 20" +defs["enums"]["ImGuiConfigFlags_"][9] = {} +defs["enums"]["ImGuiConfigFlags_"][9]["calc_value"] = 2097152 +defs["enums"]["ImGuiConfigFlags_"][9]["name"] = "ImGuiConfigFlags_IsTouchScreen" +defs["enums"]["ImGuiConfigFlags_"][9]["value"] = "1 << 21" +defs["enums"]["ImGuiDataType_"] = {} +defs["enums"]["ImGuiDataType_"][1] = {} +defs["enums"]["ImGuiDataType_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiDataType_"][1]["name"] = "ImGuiDataType_S8" +defs["enums"]["ImGuiDataType_"][1]["value"] = "0" +defs["enums"]["ImGuiDataType_"][2] = {} +defs["enums"]["ImGuiDataType_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiDataType_"][2]["name"] = "ImGuiDataType_U8" +defs["enums"]["ImGuiDataType_"][2]["value"] = "1" +defs["enums"]["ImGuiDataType_"][3] = {} +defs["enums"]["ImGuiDataType_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiDataType_"][3]["name"] = "ImGuiDataType_S16" +defs["enums"]["ImGuiDataType_"][3]["value"] = "2" +defs["enums"]["ImGuiDataType_"][4] = {} +defs["enums"]["ImGuiDataType_"][4]["calc_value"] = 3 +defs["enums"]["ImGuiDataType_"][4]["name"] = "ImGuiDataType_U16" +defs["enums"]["ImGuiDataType_"][4]["value"] = "3" +defs["enums"]["ImGuiDataType_"][5] = {} +defs["enums"]["ImGuiDataType_"][5]["calc_value"] = 4 +defs["enums"]["ImGuiDataType_"][5]["name"] = "ImGuiDataType_S32" +defs["enums"]["ImGuiDataType_"][5]["value"] = "4" +defs["enums"]["ImGuiDataType_"][6] = {} +defs["enums"]["ImGuiDataType_"][6]["calc_value"] = 5 +defs["enums"]["ImGuiDataType_"][6]["name"] = "ImGuiDataType_U32" +defs["enums"]["ImGuiDataType_"][6]["value"] = "5" +defs["enums"]["ImGuiDataType_"][7] = {} +defs["enums"]["ImGuiDataType_"][7]["calc_value"] = 6 +defs["enums"]["ImGuiDataType_"][7]["name"] = "ImGuiDataType_S64" +defs["enums"]["ImGuiDataType_"][7]["value"] = "6" +defs["enums"]["ImGuiDataType_"][8] = {} +defs["enums"]["ImGuiDataType_"][8]["calc_value"] = 7 +defs["enums"]["ImGuiDataType_"][8]["name"] = "ImGuiDataType_U64" +defs["enums"]["ImGuiDataType_"][8]["value"] = "7" +defs["enums"]["ImGuiDataType_"][9] = {} +defs["enums"]["ImGuiDataType_"][9]["calc_value"] = 8 +defs["enums"]["ImGuiDataType_"][9]["name"] = "ImGuiDataType_Float" +defs["enums"]["ImGuiDataType_"][9]["value"] = "8" +defs["enums"]["ImGuiDataType_"][10] = {} +defs["enums"]["ImGuiDataType_"][10]["calc_value"] = 9 +defs["enums"]["ImGuiDataType_"][10]["name"] = "ImGuiDataType_Double" +defs["enums"]["ImGuiDataType_"][10]["value"] = "9" +defs["enums"]["ImGuiDataType_"][11] = {} +defs["enums"]["ImGuiDataType_"][11]["calc_value"] = 10 +defs["enums"]["ImGuiDataType_"][11]["name"] = "ImGuiDataType_COUNT" +defs["enums"]["ImGuiDataType_"][11]["value"] = "10" +defs["enums"]["ImGuiDir_"] = {} +defs["enums"]["ImGuiDir_"][1] = {} +defs["enums"]["ImGuiDir_"][1]["calc_value"] = -1 +defs["enums"]["ImGuiDir_"][1]["name"] = "ImGuiDir_None" +defs["enums"]["ImGuiDir_"][1]["value"] = "-1" +defs["enums"]["ImGuiDir_"][2] = {} +defs["enums"]["ImGuiDir_"][2]["calc_value"] = 0 +defs["enums"]["ImGuiDir_"][2]["name"] = "ImGuiDir_Left" +defs["enums"]["ImGuiDir_"][2]["value"] = "0" +defs["enums"]["ImGuiDir_"][3] = {} +defs["enums"]["ImGuiDir_"][3]["calc_value"] = 1 +defs["enums"]["ImGuiDir_"][3]["name"] = "ImGuiDir_Right" +defs["enums"]["ImGuiDir_"][3]["value"] = "1" +defs["enums"]["ImGuiDir_"][4] = {} +defs["enums"]["ImGuiDir_"][4]["calc_value"] = 2 +defs["enums"]["ImGuiDir_"][4]["name"] = "ImGuiDir_Up" +defs["enums"]["ImGuiDir_"][4]["value"] = "2" +defs["enums"]["ImGuiDir_"][5] = {} +defs["enums"]["ImGuiDir_"][5]["calc_value"] = 3 +defs["enums"]["ImGuiDir_"][5]["name"] = "ImGuiDir_Down" +defs["enums"]["ImGuiDir_"][5]["value"] = "3" +defs["enums"]["ImGuiDir_"][6] = {} +defs["enums"]["ImGuiDir_"][6]["calc_value"] = 4 +defs["enums"]["ImGuiDir_"][6]["name"] = "ImGuiDir_COUNT" +defs["enums"]["ImGuiDir_"][6]["value"] = "4" +defs["enums"]["ImGuiDragDropFlags_"] = {} +defs["enums"]["ImGuiDragDropFlags_"][1] = {} +defs["enums"]["ImGuiDragDropFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiDragDropFlags_"][1]["name"] = "ImGuiDragDropFlags_None" +defs["enums"]["ImGuiDragDropFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiDragDropFlags_"][2] = {} +defs["enums"]["ImGuiDragDropFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiDragDropFlags_"][2]["name"] = "ImGuiDragDropFlags_SourceNoPreviewTooltip" +defs["enums"]["ImGuiDragDropFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiDragDropFlags_"][3] = {} +defs["enums"]["ImGuiDragDropFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiDragDropFlags_"][3]["name"] = "ImGuiDragDropFlags_SourceNoDisableHover" +defs["enums"]["ImGuiDragDropFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiDragDropFlags_"][4] = {} +defs["enums"]["ImGuiDragDropFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiDragDropFlags_"][4]["name"] = "ImGuiDragDropFlags_SourceNoHoldToOpenOthers" +defs["enums"]["ImGuiDragDropFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiDragDropFlags_"][5] = {} +defs["enums"]["ImGuiDragDropFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiDragDropFlags_"][5]["name"] = "ImGuiDragDropFlags_SourceAllowNullID" +defs["enums"]["ImGuiDragDropFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiDragDropFlags_"][6] = {} +defs["enums"]["ImGuiDragDropFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiDragDropFlags_"][6]["name"] = "ImGuiDragDropFlags_SourceExtern" +defs["enums"]["ImGuiDragDropFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiDragDropFlags_"][7] = {} +defs["enums"]["ImGuiDragDropFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiDragDropFlags_"][7]["name"] = "ImGuiDragDropFlags_SourceAutoExpirePayload" +defs["enums"]["ImGuiDragDropFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiDragDropFlags_"][8] = {} +defs["enums"]["ImGuiDragDropFlags_"][8]["calc_value"] = 1024 +defs["enums"]["ImGuiDragDropFlags_"][8]["name"] = "ImGuiDragDropFlags_AcceptBeforeDelivery" +defs["enums"]["ImGuiDragDropFlags_"][8]["value"] = "1 << 10" +defs["enums"]["ImGuiDragDropFlags_"][9] = {} +defs["enums"]["ImGuiDragDropFlags_"][9]["calc_value"] = 2048 +defs["enums"]["ImGuiDragDropFlags_"][9]["name"] = "ImGuiDragDropFlags_AcceptNoDrawDefaultRect" +defs["enums"]["ImGuiDragDropFlags_"][9]["value"] = "1 << 11" +defs["enums"]["ImGuiDragDropFlags_"][10] = {} +defs["enums"]["ImGuiDragDropFlags_"][10]["calc_value"] = 4096 +defs["enums"]["ImGuiDragDropFlags_"][10]["name"] = "ImGuiDragDropFlags_AcceptNoPreviewTooltip" +defs["enums"]["ImGuiDragDropFlags_"][10]["value"] = "1 << 12" +defs["enums"]["ImGuiDragDropFlags_"][11] = {} +defs["enums"]["ImGuiDragDropFlags_"][11]["calc_value"] = 3072 +defs["enums"]["ImGuiDragDropFlags_"][11]["name"] = "ImGuiDragDropFlags_AcceptPeekOnly" +defs["enums"]["ImGuiDragDropFlags_"][11]["value"] = "ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect" +defs["enums"]["ImGuiFocusedFlags_"] = {} +defs["enums"]["ImGuiFocusedFlags_"][1] = {} +defs["enums"]["ImGuiFocusedFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiFocusedFlags_"][1]["name"] = "ImGuiFocusedFlags_None" +defs["enums"]["ImGuiFocusedFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiFocusedFlags_"][2] = {} +defs["enums"]["ImGuiFocusedFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiFocusedFlags_"][2]["name"] = "ImGuiFocusedFlags_ChildWindows" +defs["enums"]["ImGuiFocusedFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiFocusedFlags_"][3] = {} +defs["enums"]["ImGuiFocusedFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiFocusedFlags_"][3]["name"] = "ImGuiFocusedFlags_RootWindow" +defs["enums"]["ImGuiFocusedFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiFocusedFlags_"][4] = {} +defs["enums"]["ImGuiFocusedFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiFocusedFlags_"][4]["name"] = "ImGuiFocusedFlags_AnyWindow" +defs["enums"]["ImGuiFocusedFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiFocusedFlags_"][5] = {} +defs["enums"]["ImGuiFocusedFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiFocusedFlags_"][5]["name"] = "ImGuiFocusedFlags_NoPopupHierarchy" +defs["enums"]["ImGuiFocusedFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiFocusedFlags_"][6] = {} +defs["enums"]["ImGuiFocusedFlags_"][6]["calc_value"] = 3 +defs["enums"]["ImGuiFocusedFlags_"][6]["name"] = "ImGuiFocusedFlags_RootAndChildWindows" +defs["enums"]["ImGuiFocusedFlags_"][6]["value"] = "ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows" +defs["enums"]["ImGuiFreeTypeBuilderFlags"] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][1] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][1]["calc_value"] = 1 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][1]["name"] = "ImGuiFreeTypeBuilderFlags_NoHinting" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][1]["value"] = "1 << 0" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][2] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][2]["calc_value"] = 2 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][2]["name"] = "ImGuiFreeTypeBuilderFlags_NoAutoHint" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][2]["value"] = "1 << 1" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][3] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][3]["calc_value"] = 4 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][3]["name"] = "ImGuiFreeTypeBuilderFlags_ForceAutoHint" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][3]["value"] = "1 << 2" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][4] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][4]["calc_value"] = 8 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][4]["name"] = "ImGuiFreeTypeBuilderFlags_LightHinting" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][4]["value"] = "1 << 3" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][5] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][5]["calc_value"] = 16 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][5]["name"] = "ImGuiFreeTypeBuilderFlags_MonoHinting" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][5]["value"] = "1 << 4" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][6] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][6]["calc_value"] = 32 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][6]["name"] = "ImGuiFreeTypeBuilderFlags_Bold" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][6]["value"] = "1 << 5" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][7] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][7]["calc_value"] = 64 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][7]["name"] = "ImGuiFreeTypeBuilderFlags_Oblique" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][7]["value"] = "1 << 6" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][8] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][8]["calc_value"] = 128 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][8]["name"] = "ImGuiFreeTypeBuilderFlags_Monochrome" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][8]["value"] = "1 << 7" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][9] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][9]["calc_value"] = 256 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][9]["name"] = "ImGuiFreeTypeBuilderFlags_LoadColor" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][9]["value"] = "1 << 8" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][10] = {} +defs["enums"]["ImGuiFreeTypeBuilderFlags"][10]["calc_value"] = 512 +defs["enums"]["ImGuiFreeTypeBuilderFlags"][10]["name"] = "ImGuiFreeTypeBuilderFlags_Bitmap" +defs["enums"]["ImGuiFreeTypeBuilderFlags"][10]["value"] = "1 << 9" +defs["enums"]["ImGuiHoveredFlags_"] = {} +defs["enums"]["ImGuiHoveredFlags_"][1] = {} +defs["enums"]["ImGuiHoveredFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiHoveredFlags_"][1]["name"] = "ImGuiHoveredFlags_None" +defs["enums"]["ImGuiHoveredFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiHoveredFlags_"][2] = {} +defs["enums"]["ImGuiHoveredFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiHoveredFlags_"][2]["name"] = "ImGuiHoveredFlags_ChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiHoveredFlags_"][3] = {} +defs["enums"]["ImGuiHoveredFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiHoveredFlags_"][3]["name"] = "ImGuiHoveredFlags_RootWindow" +defs["enums"]["ImGuiHoveredFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiHoveredFlags_"][4] = {} +defs["enums"]["ImGuiHoveredFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiHoveredFlags_"][4]["name"] = "ImGuiHoveredFlags_AnyWindow" +defs["enums"]["ImGuiHoveredFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiHoveredFlags_"][5] = {} +defs["enums"]["ImGuiHoveredFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiHoveredFlags_"][5]["name"] = "ImGuiHoveredFlags_NoPopupHierarchy" +defs["enums"]["ImGuiHoveredFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiHoveredFlags_"][6] = {} +defs["enums"]["ImGuiHoveredFlags_"][6]["calc_value"] = 32 +defs["enums"]["ImGuiHoveredFlags_"][6]["name"] = "ImGuiHoveredFlags_AllowWhenBlockedByPopup" +defs["enums"]["ImGuiHoveredFlags_"][6]["value"] = "1 << 5" +defs["enums"]["ImGuiHoveredFlags_"][7] = {} +defs["enums"]["ImGuiHoveredFlags_"][7]["calc_value"] = 128 +defs["enums"]["ImGuiHoveredFlags_"][7]["name"] = "ImGuiHoveredFlags_AllowWhenBlockedByActiveItem" +defs["enums"]["ImGuiHoveredFlags_"][7]["value"] = "1 << 7" +defs["enums"]["ImGuiHoveredFlags_"][8] = {} +defs["enums"]["ImGuiHoveredFlags_"][8]["calc_value"] = 256 +defs["enums"]["ImGuiHoveredFlags_"][8]["name"] = "ImGuiHoveredFlags_AllowWhenOverlapped" +defs["enums"]["ImGuiHoveredFlags_"][8]["value"] = "1 << 8" +defs["enums"]["ImGuiHoveredFlags_"][9] = {} +defs["enums"]["ImGuiHoveredFlags_"][9]["calc_value"] = 512 +defs["enums"]["ImGuiHoveredFlags_"][9]["name"] = "ImGuiHoveredFlags_AllowWhenDisabled" +defs["enums"]["ImGuiHoveredFlags_"][9]["value"] = "1 << 9" +defs["enums"]["ImGuiHoveredFlags_"][10] = {} +defs["enums"]["ImGuiHoveredFlags_"][10]["calc_value"] = 1024 +defs["enums"]["ImGuiHoveredFlags_"][10]["name"] = "ImGuiHoveredFlags_NoNavOverride" +defs["enums"]["ImGuiHoveredFlags_"][10]["value"] = "1 << 10" +defs["enums"]["ImGuiHoveredFlags_"][11] = {} +defs["enums"]["ImGuiHoveredFlags_"][11]["calc_value"] = 416 +defs["enums"]["ImGuiHoveredFlags_"][11]["name"] = "ImGuiHoveredFlags_RectOnly" +defs["enums"]["ImGuiHoveredFlags_"][11]["value"] = "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped" +defs["enums"]["ImGuiHoveredFlags_"][12] = {} +defs["enums"]["ImGuiHoveredFlags_"][12]["calc_value"] = 3 +defs["enums"]["ImGuiHoveredFlags_"][12]["name"] = "ImGuiHoveredFlags_RootAndChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][12]["value"] = "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" +defs["enums"]["ImGuiHoveredFlags_"][13] = {} +defs["enums"]["ImGuiHoveredFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiHoveredFlags_"][13]["name"] = "ImGuiHoveredFlags_DelayNormal" +defs["enums"]["ImGuiHoveredFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiHoveredFlags_"][14] = {} +defs["enums"]["ImGuiHoveredFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiHoveredFlags_"][14]["name"] = "ImGuiHoveredFlags_DelayShort" +defs["enums"]["ImGuiHoveredFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiHoveredFlags_"][15] = {} +defs["enums"]["ImGuiHoveredFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiHoveredFlags_"][15]["name"] = "ImGuiHoveredFlags_NoSharedDelay" +defs["enums"]["ImGuiHoveredFlags_"][15]["value"] = "1 << 13" +defs["enums"]["ImGuiInputTextFlags_"] = {} +defs["enums"]["ImGuiInputTextFlags_"][1] = {} +defs["enums"]["ImGuiInputTextFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiInputTextFlags_"][1]["name"] = "ImGuiInputTextFlags_None" +defs["enums"]["ImGuiInputTextFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiInputTextFlags_"][2] = {} +defs["enums"]["ImGuiInputTextFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiInputTextFlags_"][2]["name"] = "ImGuiInputTextFlags_CharsDecimal" +defs["enums"]["ImGuiInputTextFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiInputTextFlags_"][3] = {} +defs["enums"]["ImGuiInputTextFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiInputTextFlags_"][3]["name"] = "ImGuiInputTextFlags_CharsHexadecimal" +defs["enums"]["ImGuiInputTextFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiInputTextFlags_"][4] = {} +defs["enums"]["ImGuiInputTextFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiInputTextFlags_"][4]["name"] = "ImGuiInputTextFlags_CharsUppercase" +defs["enums"]["ImGuiInputTextFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiInputTextFlags_"][5] = {} +defs["enums"]["ImGuiInputTextFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiInputTextFlags_"][5]["name"] = "ImGuiInputTextFlags_CharsNoBlank" +defs["enums"]["ImGuiInputTextFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiInputTextFlags_"][6] = {} +defs["enums"]["ImGuiInputTextFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiInputTextFlags_"][6]["name"] = "ImGuiInputTextFlags_AutoSelectAll" +defs["enums"]["ImGuiInputTextFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiInputTextFlags_"][7] = {} +defs["enums"]["ImGuiInputTextFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiInputTextFlags_"][7]["name"] = "ImGuiInputTextFlags_EnterReturnsTrue" +defs["enums"]["ImGuiInputTextFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiInputTextFlags_"][8] = {} +defs["enums"]["ImGuiInputTextFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiInputTextFlags_"][8]["name"] = "ImGuiInputTextFlags_CallbackCompletion" +defs["enums"]["ImGuiInputTextFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiInputTextFlags_"][9] = {} +defs["enums"]["ImGuiInputTextFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiInputTextFlags_"][9]["name"] = "ImGuiInputTextFlags_CallbackHistory" +defs["enums"]["ImGuiInputTextFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiInputTextFlags_"][10] = {} +defs["enums"]["ImGuiInputTextFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiInputTextFlags_"][10]["name"] = "ImGuiInputTextFlags_CallbackAlways" +defs["enums"]["ImGuiInputTextFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiInputTextFlags_"][11] = {} +defs["enums"]["ImGuiInputTextFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiInputTextFlags_"][11]["name"] = "ImGuiInputTextFlags_CallbackCharFilter" +defs["enums"]["ImGuiInputTextFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiInputTextFlags_"][12] = {} +defs["enums"]["ImGuiInputTextFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiInputTextFlags_"][12]["name"] = "ImGuiInputTextFlags_AllowTabInput" +defs["enums"]["ImGuiInputTextFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiInputTextFlags_"][13] = {} +defs["enums"]["ImGuiInputTextFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiInputTextFlags_"][13]["name"] = "ImGuiInputTextFlags_CtrlEnterForNewLine" +defs["enums"]["ImGuiInputTextFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiInputTextFlags_"][14] = {} +defs["enums"]["ImGuiInputTextFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiInputTextFlags_"][14]["name"] = "ImGuiInputTextFlags_NoHorizontalScroll" +defs["enums"]["ImGuiInputTextFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiInputTextFlags_"][15] = {} +defs["enums"]["ImGuiInputTextFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiInputTextFlags_"][15]["name"] = "ImGuiInputTextFlags_AlwaysOverwrite" +defs["enums"]["ImGuiInputTextFlags_"][15]["value"] = "1 << 13" +defs["enums"]["ImGuiInputTextFlags_"][16] = {} +defs["enums"]["ImGuiInputTextFlags_"][16]["calc_value"] = 16384 +defs["enums"]["ImGuiInputTextFlags_"][16]["name"] = "ImGuiInputTextFlags_ReadOnly" +defs["enums"]["ImGuiInputTextFlags_"][16]["value"] = "1 << 14" +defs["enums"]["ImGuiInputTextFlags_"][17] = {} +defs["enums"]["ImGuiInputTextFlags_"][17]["calc_value"] = 32768 +defs["enums"]["ImGuiInputTextFlags_"][17]["name"] = "ImGuiInputTextFlags_Password" +defs["enums"]["ImGuiInputTextFlags_"][17]["value"] = "1 << 15" +defs["enums"]["ImGuiInputTextFlags_"][18] = {} +defs["enums"]["ImGuiInputTextFlags_"][18]["calc_value"] = 65536 +defs["enums"]["ImGuiInputTextFlags_"][18]["name"] = "ImGuiInputTextFlags_NoUndoRedo" +defs["enums"]["ImGuiInputTextFlags_"][18]["value"] = "1 << 16" +defs["enums"]["ImGuiInputTextFlags_"][19] = {} +defs["enums"]["ImGuiInputTextFlags_"][19]["calc_value"] = 131072 +defs["enums"]["ImGuiInputTextFlags_"][19]["name"] = "ImGuiInputTextFlags_CharsScientific" +defs["enums"]["ImGuiInputTextFlags_"][19]["value"] = "1 << 17" +defs["enums"]["ImGuiInputTextFlags_"][20] = {} +defs["enums"]["ImGuiInputTextFlags_"][20]["calc_value"] = 262144 +defs["enums"]["ImGuiInputTextFlags_"][20]["name"] = "ImGuiInputTextFlags_CallbackResize" +defs["enums"]["ImGuiInputTextFlags_"][20]["value"] = "1 << 18" +defs["enums"]["ImGuiInputTextFlags_"][21] = {} +defs["enums"]["ImGuiInputTextFlags_"][21]["calc_value"] = 524288 +defs["enums"]["ImGuiInputTextFlags_"][21]["name"] = "ImGuiInputTextFlags_CallbackEdit" +defs["enums"]["ImGuiInputTextFlags_"][21]["value"] = "1 << 19" +defs["enums"]["ImGuiInputTextFlags_"][22] = {} +defs["enums"]["ImGuiInputTextFlags_"][22]["calc_value"] = 1048576 +defs["enums"]["ImGuiInputTextFlags_"][22]["name"] = "ImGuiInputTextFlags_EscapeClearsAll" +defs["enums"]["ImGuiInputTextFlags_"][22]["value"] = "1 << 20" +defs["enums"]["ImGuiKey"] = {} +defs["enums"]["ImGuiKey"][1] = {} +defs["enums"]["ImGuiKey"][1]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][1]["name"] = "ImGuiKey_None" +defs["enums"]["ImGuiKey"][1]["value"] = "0" +defs["enums"]["ImGuiKey"][2] = {} +defs["enums"]["ImGuiKey"][2]["calc_value"] = 512 +defs["enums"]["ImGuiKey"][2]["name"] = "ImGuiKey_Tab" +defs["enums"]["ImGuiKey"][2]["value"] = "512" +defs["enums"]["ImGuiKey"][3] = {} +defs["enums"]["ImGuiKey"][3]["calc_value"] = 513 +defs["enums"]["ImGuiKey"][3]["name"] = "ImGuiKey_LeftArrow" +defs["enums"]["ImGuiKey"][3]["value"] = "513" +defs["enums"]["ImGuiKey"][4] = {} +defs["enums"]["ImGuiKey"][4]["calc_value"] = 514 +defs["enums"]["ImGuiKey"][4]["name"] = "ImGuiKey_RightArrow" +defs["enums"]["ImGuiKey"][4]["value"] = "514" +defs["enums"]["ImGuiKey"][5] = {} +defs["enums"]["ImGuiKey"][5]["calc_value"] = 515 +defs["enums"]["ImGuiKey"][5]["name"] = "ImGuiKey_UpArrow" +defs["enums"]["ImGuiKey"][5]["value"] = "515" +defs["enums"]["ImGuiKey"][6] = {} +defs["enums"]["ImGuiKey"][6]["calc_value"] = 516 +defs["enums"]["ImGuiKey"][6]["name"] = "ImGuiKey_DownArrow" +defs["enums"]["ImGuiKey"][6]["value"] = "516" +defs["enums"]["ImGuiKey"][7] = {} +defs["enums"]["ImGuiKey"][7]["calc_value"] = 517 +defs["enums"]["ImGuiKey"][7]["name"] = "ImGuiKey_PageUp" +defs["enums"]["ImGuiKey"][7]["value"] = "517" +defs["enums"]["ImGuiKey"][8] = {} +defs["enums"]["ImGuiKey"][8]["calc_value"] = 518 +defs["enums"]["ImGuiKey"][8]["name"] = "ImGuiKey_PageDown" +defs["enums"]["ImGuiKey"][8]["value"] = "518" +defs["enums"]["ImGuiKey"][9] = {} +defs["enums"]["ImGuiKey"][9]["calc_value"] = 519 +defs["enums"]["ImGuiKey"][9]["name"] = "ImGuiKey_Home" +defs["enums"]["ImGuiKey"][9]["value"] = "519" +defs["enums"]["ImGuiKey"][10] = {} +defs["enums"]["ImGuiKey"][10]["calc_value"] = 520 +defs["enums"]["ImGuiKey"][10]["name"] = "ImGuiKey_End" +defs["enums"]["ImGuiKey"][10]["value"] = "520" +defs["enums"]["ImGuiKey"][11] = {} +defs["enums"]["ImGuiKey"][11]["calc_value"] = 521 +defs["enums"]["ImGuiKey"][11]["name"] = "ImGuiKey_Insert" +defs["enums"]["ImGuiKey"][11]["value"] = "521" +defs["enums"]["ImGuiKey"][12] = {} +defs["enums"]["ImGuiKey"][12]["calc_value"] = 522 +defs["enums"]["ImGuiKey"][12]["name"] = "ImGuiKey_Delete" +defs["enums"]["ImGuiKey"][12]["value"] = "522" +defs["enums"]["ImGuiKey"][13] = {} +defs["enums"]["ImGuiKey"][13]["calc_value"] = 523 +defs["enums"]["ImGuiKey"][13]["name"] = "ImGuiKey_Backspace" +defs["enums"]["ImGuiKey"][13]["value"] = "523" +defs["enums"]["ImGuiKey"][14] = {} +defs["enums"]["ImGuiKey"][14]["calc_value"] = 524 +defs["enums"]["ImGuiKey"][14]["name"] = "ImGuiKey_Space" +defs["enums"]["ImGuiKey"][14]["value"] = "524" +defs["enums"]["ImGuiKey"][15] = {} +defs["enums"]["ImGuiKey"][15]["calc_value"] = 525 +defs["enums"]["ImGuiKey"][15]["name"] = "ImGuiKey_Enter" +defs["enums"]["ImGuiKey"][15]["value"] = "525" +defs["enums"]["ImGuiKey"][16] = {} +defs["enums"]["ImGuiKey"][16]["calc_value"] = 526 +defs["enums"]["ImGuiKey"][16]["name"] = "ImGuiKey_Escape" +defs["enums"]["ImGuiKey"][16]["value"] = "526" +defs["enums"]["ImGuiKey"][17] = {} +defs["enums"]["ImGuiKey"][17]["calc_value"] = 527 +defs["enums"]["ImGuiKey"][17]["name"] = "ImGuiKey_LeftCtrl" +defs["enums"]["ImGuiKey"][17]["value"] = "527" +defs["enums"]["ImGuiKey"][18] = {} +defs["enums"]["ImGuiKey"][18]["calc_value"] = 528 +defs["enums"]["ImGuiKey"][18]["name"] = "ImGuiKey_LeftShift" +defs["enums"]["ImGuiKey"][18]["value"] = "528" +defs["enums"]["ImGuiKey"][19] = {} +defs["enums"]["ImGuiKey"][19]["calc_value"] = 529 +defs["enums"]["ImGuiKey"][19]["name"] = "ImGuiKey_LeftAlt" +defs["enums"]["ImGuiKey"][19]["value"] = "529" +defs["enums"]["ImGuiKey"][20] = {} +defs["enums"]["ImGuiKey"][20]["calc_value"] = 530 +defs["enums"]["ImGuiKey"][20]["name"] = "ImGuiKey_LeftSuper" +defs["enums"]["ImGuiKey"][20]["value"] = "530" +defs["enums"]["ImGuiKey"][21] = {} +defs["enums"]["ImGuiKey"][21]["calc_value"] = 531 +defs["enums"]["ImGuiKey"][21]["name"] = "ImGuiKey_RightCtrl" +defs["enums"]["ImGuiKey"][21]["value"] = "531" +defs["enums"]["ImGuiKey"][22] = {} +defs["enums"]["ImGuiKey"][22]["calc_value"] = 532 +defs["enums"]["ImGuiKey"][22]["name"] = "ImGuiKey_RightShift" +defs["enums"]["ImGuiKey"][22]["value"] = "532" +defs["enums"]["ImGuiKey"][23] = {} +defs["enums"]["ImGuiKey"][23]["calc_value"] = 533 +defs["enums"]["ImGuiKey"][23]["name"] = "ImGuiKey_RightAlt" +defs["enums"]["ImGuiKey"][23]["value"] = "533" +defs["enums"]["ImGuiKey"][24] = {} +defs["enums"]["ImGuiKey"][24]["calc_value"] = 534 +defs["enums"]["ImGuiKey"][24]["name"] = "ImGuiKey_RightSuper" +defs["enums"]["ImGuiKey"][24]["value"] = "534" +defs["enums"]["ImGuiKey"][25] = {} +defs["enums"]["ImGuiKey"][25]["calc_value"] = 535 +defs["enums"]["ImGuiKey"][25]["name"] = "ImGuiKey_Menu" +defs["enums"]["ImGuiKey"][25]["value"] = "535" +defs["enums"]["ImGuiKey"][26] = {} +defs["enums"]["ImGuiKey"][26]["calc_value"] = 536 +defs["enums"]["ImGuiKey"][26]["name"] = "ImGuiKey_0" +defs["enums"]["ImGuiKey"][26]["value"] = "536" +defs["enums"]["ImGuiKey"][27] = {} +defs["enums"]["ImGuiKey"][27]["calc_value"] = 537 +defs["enums"]["ImGuiKey"][27]["name"] = "ImGuiKey_1" +defs["enums"]["ImGuiKey"][27]["value"] = "537" +defs["enums"]["ImGuiKey"][28] = {} +defs["enums"]["ImGuiKey"][28]["calc_value"] = 538 +defs["enums"]["ImGuiKey"][28]["name"] = "ImGuiKey_2" +defs["enums"]["ImGuiKey"][28]["value"] = "538" +defs["enums"]["ImGuiKey"][29] = {} +defs["enums"]["ImGuiKey"][29]["calc_value"] = 539 +defs["enums"]["ImGuiKey"][29]["name"] = "ImGuiKey_3" +defs["enums"]["ImGuiKey"][29]["value"] = "539" +defs["enums"]["ImGuiKey"][30] = {} +defs["enums"]["ImGuiKey"][30]["calc_value"] = 540 +defs["enums"]["ImGuiKey"][30]["name"] = "ImGuiKey_4" +defs["enums"]["ImGuiKey"][30]["value"] = "540" +defs["enums"]["ImGuiKey"][31] = {} +defs["enums"]["ImGuiKey"][31]["calc_value"] = 541 +defs["enums"]["ImGuiKey"][31]["name"] = "ImGuiKey_5" +defs["enums"]["ImGuiKey"][31]["value"] = "541" +defs["enums"]["ImGuiKey"][32] = {} +defs["enums"]["ImGuiKey"][32]["calc_value"] = 542 +defs["enums"]["ImGuiKey"][32]["name"] = "ImGuiKey_6" +defs["enums"]["ImGuiKey"][32]["value"] = "542" +defs["enums"]["ImGuiKey"][33] = {} +defs["enums"]["ImGuiKey"][33]["calc_value"] = 543 +defs["enums"]["ImGuiKey"][33]["name"] = "ImGuiKey_7" +defs["enums"]["ImGuiKey"][33]["value"] = "543" +defs["enums"]["ImGuiKey"][34] = {} +defs["enums"]["ImGuiKey"][34]["calc_value"] = 544 +defs["enums"]["ImGuiKey"][34]["name"] = "ImGuiKey_8" +defs["enums"]["ImGuiKey"][34]["value"] = "544" +defs["enums"]["ImGuiKey"][35] = {} +defs["enums"]["ImGuiKey"][35]["calc_value"] = 545 +defs["enums"]["ImGuiKey"][35]["name"] = "ImGuiKey_9" +defs["enums"]["ImGuiKey"][35]["value"] = "545" +defs["enums"]["ImGuiKey"][36] = {} +defs["enums"]["ImGuiKey"][36]["calc_value"] = 546 +defs["enums"]["ImGuiKey"][36]["name"] = "ImGuiKey_A" +defs["enums"]["ImGuiKey"][36]["value"] = "546" +defs["enums"]["ImGuiKey"][37] = {} +defs["enums"]["ImGuiKey"][37]["calc_value"] = 547 +defs["enums"]["ImGuiKey"][37]["name"] = "ImGuiKey_B" +defs["enums"]["ImGuiKey"][37]["value"] = "547" +defs["enums"]["ImGuiKey"][38] = {} +defs["enums"]["ImGuiKey"][38]["calc_value"] = 548 +defs["enums"]["ImGuiKey"][38]["name"] = "ImGuiKey_C" +defs["enums"]["ImGuiKey"][38]["value"] = "548" +defs["enums"]["ImGuiKey"][39] = {} +defs["enums"]["ImGuiKey"][39]["calc_value"] = 549 +defs["enums"]["ImGuiKey"][39]["name"] = "ImGuiKey_D" +defs["enums"]["ImGuiKey"][39]["value"] = "549" +defs["enums"]["ImGuiKey"][40] = {} +defs["enums"]["ImGuiKey"][40]["calc_value"] = 550 +defs["enums"]["ImGuiKey"][40]["name"] = "ImGuiKey_E" +defs["enums"]["ImGuiKey"][40]["value"] = "550" +defs["enums"]["ImGuiKey"][41] = {} +defs["enums"]["ImGuiKey"][41]["calc_value"] = 551 +defs["enums"]["ImGuiKey"][41]["name"] = "ImGuiKey_F" +defs["enums"]["ImGuiKey"][41]["value"] = "551" +defs["enums"]["ImGuiKey"][42] = {} +defs["enums"]["ImGuiKey"][42]["calc_value"] = 552 +defs["enums"]["ImGuiKey"][42]["name"] = "ImGuiKey_G" +defs["enums"]["ImGuiKey"][42]["value"] = "552" +defs["enums"]["ImGuiKey"][43] = {} +defs["enums"]["ImGuiKey"][43]["calc_value"] = 553 +defs["enums"]["ImGuiKey"][43]["name"] = "ImGuiKey_H" +defs["enums"]["ImGuiKey"][43]["value"] = "553" +defs["enums"]["ImGuiKey"][44] = {} +defs["enums"]["ImGuiKey"][44]["calc_value"] = 554 +defs["enums"]["ImGuiKey"][44]["name"] = "ImGuiKey_I" +defs["enums"]["ImGuiKey"][44]["value"] = "554" +defs["enums"]["ImGuiKey"][45] = {} +defs["enums"]["ImGuiKey"][45]["calc_value"] = 555 +defs["enums"]["ImGuiKey"][45]["name"] = "ImGuiKey_J" +defs["enums"]["ImGuiKey"][45]["value"] = "555" +defs["enums"]["ImGuiKey"][46] = {} +defs["enums"]["ImGuiKey"][46]["calc_value"] = 556 +defs["enums"]["ImGuiKey"][46]["name"] = "ImGuiKey_K" +defs["enums"]["ImGuiKey"][46]["value"] = "556" +defs["enums"]["ImGuiKey"][47] = {} +defs["enums"]["ImGuiKey"][47]["calc_value"] = 557 +defs["enums"]["ImGuiKey"][47]["name"] = "ImGuiKey_L" +defs["enums"]["ImGuiKey"][47]["value"] = "557" +defs["enums"]["ImGuiKey"][48] = {} +defs["enums"]["ImGuiKey"][48]["calc_value"] = 558 +defs["enums"]["ImGuiKey"][48]["name"] = "ImGuiKey_M" +defs["enums"]["ImGuiKey"][48]["value"] = "558" +defs["enums"]["ImGuiKey"][49] = {} +defs["enums"]["ImGuiKey"][49]["calc_value"] = 559 +defs["enums"]["ImGuiKey"][49]["name"] = "ImGuiKey_N" +defs["enums"]["ImGuiKey"][49]["value"] = "559" +defs["enums"]["ImGuiKey"][50] = {} +defs["enums"]["ImGuiKey"][50]["calc_value"] = 560 +defs["enums"]["ImGuiKey"][50]["name"] = "ImGuiKey_O" +defs["enums"]["ImGuiKey"][50]["value"] = "560" +defs["enums"]["ImGuiKey"][51] = {} +defs["enums"]["ImGuiKey"][51]["calc_value"] = 561 +defs["enums"]["ImGuiKey"][51]["name"] = "ImGuiKey_P" +defs["enums"]["ImGuiKey"][51]["value"] = "561" +defs["enums"]["ImGuiKey"][52] = {} +defs["enums"]["ImGuiKey"][52]["calc_value"] = 562 +defs["enums"]["ImGuiKey"][52]["name"] = "ImGuiKey_Q" +defs["enums"]["ImGuiKey"][52]["value"] = "562" +defs["enums"]["ImGuiKey"][53] = {} +defs["enums"]["ImGuiKey"][53]["calc_value"] = 563 +defs["enums"]["ImGuiKey"][53]["name"] = "ImGuiKey_R" +defs["enums"]["ImGuiKey"][53]["value"] = "563" +defs["enums"]["ImGuiKey"][54] = {} +defs["enums"]["ImGuiKey"][54]["calc_value"] = 564 +defs["enums"]["ImGuiKey"][54]["name"] = "ImGuiKey_S" +defs["enums"]["ImGuiKey"][54]["value"] = "564" +defs["enums"]["ImGuiKey"][55] = {} +defs["enums"]["ImGuiKey"][55]["calc_value"] = 565 +defs["enums"]["ImGuiKey"][55]["name"] = "ImGuiKey_T" +defs["enums"]["ImGuiKey"][55]["value"] = "565" +defs["enums"]["ImGuiKey"][56] = {} +defs["enums"]["ImGuiKey"][56]["calc_value"] = 566 +defs["enums"]["ImGuiKey"][56]["name"] = "ImGuiKey_U" +defs["enums"]["ImGuiKey"][56]["value"] = "566" +defs["enums"]["ImGuiKey"][57] = {} +defs["enums"]["ImGuiKey"][57]["calc_value"] = 567 +defs["enums"]["ImGuiKey"][57]["name"] = "ImGuiKey_V" +defs["enums"]["ImGuiKey"][57]["value"] = "567" +defs["enums"]["ImGuiKey"][58] = {} +defs["enums"]["ImGuiKey"][58]["calc_value"] = 568 +defs["enums"]["ImGuiKey"][58]["name"] = "ImGuiKey_W" +defs["enums"]["ImGuiKey"][58]["value"] = "568" +defs["enums"]["ImGuiKey"][59] = {} +defs["enums"]["ImGuiKey"][59]["calc_value"] = 569 +defs["enums"]["ImGuiKey"][59]["name"] = "ImGuiKey_X" +defs["enums"]["ImGuiKey"][59]["value"] = "569" +defs["enums"]["ImGuiKey"][60] = {} +defs["enums"]["ImGuiKey"][60]["calc_value"] = 570 +defs["enums"]["ImGuiKey"][60]["name"] = "ImGuiKey_Y" +defs["enums"]["ImGuiKey"][60]["value"] = "570" +defs["enums"]["ImGuiKey"][61] = {} +defs["enums"]["ImGuiKey"][61]["calc_value"] = 571 +defs["enums"]["ImGuiKey"][61]["name"] = "ImGuiKey_Z" +defs["enums"]["ImGuiKey"][61]["value"] = "571" +defs["enums"]["ImGuiKey"][62] = {} +defs["enums"]["ImGuiKey"][62]["calc_value"] = 572 +defs["enums"]["ImGuiKey"][62]["name"] = "ImGuiKey_F1" +defs["enums"]["ImGuiKey"][62]["value"] = "572" +defs["enums"]["ImGuiKey"][63] = {} +defs["enums"]["ImGuiKey"][63]["calc_value"] = 573 +defs["enums"]["ImGuiKey"][63]["name"] = "ImGuiKey_F2" +defs["enums"]["ImGuiKey"][63]["value"] = "573" +defs["enums"]["ImGuiKey"][64] = {} +defs["enums"]["ImGuiKey"][64]["calc_value"] = 574 +defs["enums"]["ImGuiKey"][64]["name"] = "ImGuiKey_F3" +defs["enums"]["ImGuiKey"][64]["value"] = "574" +defs["enums"]["ImGuiKey"][65] = {} +defs["enums"]["ImGuiKey"][65]["calc_value"] = 575 +defs["enums"]["ImGuiKey"][65]["name"] = "ImGuiKey_F4" +defs["enums"]["ImGuiKey"][65]["value"] = "575" +defs["enums"]["ImGuiKey"][66] = {} +defs["enums"]["ImGuiKey"][66]["calc_value"] = 576 +defs["enums"]["ImGuiKey"][66]["name"] = "ImGuiKey_F5" +defs["enums"]["ImGuiKey"][66]["value"] = "576" +defs["enums"]["ImGuiKey"][67] = {} +defs["enums"]["ImGuiKey"][67]["calc_value"] = 577 +defs["enums"]["ImGuiKey"][67]["name"] = "ImGuiKey_F6" +defs["enums"]["ImGuiKey"][67]["value"] = "577" +defs["enums"]["ImGuiKey"][68] = {} +defs["enums"]["ImGuiKey"][68]["calc_value"] = 578 +defs["enums"]["ImGuiKey"][68]["name"] = "ImGuiKey_F7" +defs["enums"]["ImGuiKey"][68]["value"] = "578" +defs["enums"]["ImGuiKey"][69] = {} +defs["enums"]["ImGuiKey"][69]["calc_value"] = 579 +defs["enums"]["ImGuiKey"][69]["name"] = "ImGuiKey_F8" +defs["enums"]["ImGuiKey"][69]["value"] = "579" +defs["enums"]["ImGuiKey"][70] = {} +defs["enums"]["ImGuiKey"][70]["calc_value"] = 580 +defs["enums"]["ImGuiKey"][70]["name"] = "ImGuiKey_F9" +defs["enums"]["ImGuiKey"][70]["value"] = "580" +defs["enums"]["ImGuiKey"][71] = {} +defs["enums"]["ImGuiKey"][71]["calc_value"] = 581 +defs["enums"]["ImGuiKey"][71]["name"] = "ImGuiKey_F10" +defs["enums"]["ImGuiKey"][71]["value"] = "581" +defs["enums"]["ImGuiKey"][72] = {} +defs["enums"]["ImGuiKey"][72]["calc_value"] = 582 +defs["enums"]["ImGuiKey"][72]["name"] = "ImGuiKey_F11" +defs["enums"]["ImGuiKey"][72]["value"] = "582" +defs["enums"]["ImGuiKey"][73] = {} +defs["enums"]["ImGuiKey"][73]["calc_value"] = 583 +defs["enums"]["ImGuiKey"][73]["name"] = "ImGuiKey_F12" +defs["enums"]["ImGuiKey"][73]["value"] = "583" +defs["enums"]["ImGuiKey"][74] = {} +defs["enums"]["ImGuiKey"][74]["calc_value"] = 584 +defs["enums"]["ImGuiKey"][74]["name"] = "ImGuiKey_Apostrophe" +defs["enums"]["ImGuiKey"][74]["value"] = "584" +defs["enums"]["ImGuiKey"][75] = {} +defs["enums"]["ImGuiKey"][75]["calc_value"] = 585 +defs["enums"]["ImGuiKey"][75]["name"] = "ImGuiKey_Comma" +defs["enums"]["ImGuiKey"][75]["value"] = "585" +defs["enums"]["ImGuiKey"][76] = {} +defs["enums"]["ImGuiKey"][76]["calc_value"] = 586 +defs["enums"]["ImGuiKey"][76]["name"] = "ImGuiKey_Minus" +defs["enums"]["ImGuiKey"][76]["value"] = "586" +defs["enums"]["ImGuiKey"][77] = {} +defs["enums"]["ImGuiKey"][77]["calc_value"] = 587 +defs["enums"]["ImGuiKey"][77]["name"] = "ImGuiKey_Period" +defs["enums"]["ImGuiKey"][77]["value"] = "587" +defs["enums"]["ImGuiKey"][78] = {} +defs["enums"]["ImGuiKey"][78]["calc_value"] = 588 +defs["enums"]["ImGuiKey"][78]["name"] = "ImGuiKey_Slash" +defs["enums"]["ImGuiKey"][78]["value"] = "588" +defs["enums"]["ImGuiKey"][79] = {} +defs["enums"]["ImGuiKey"][79]["calc_value"] = 589 +defs["enums"]["ImGuiKey"][79]["name"] = "ImGuiKey_Semicolon" +defs["enums"]["ImGuiKey"][79]["value"] = "589" +defs["enums"]["ImGuiKey"][80] = {} +defs["enums"]["ImGuiKey"][80]["calc_value"] = 590 +defs["enums"]["ImGuiKey"][80]["name"] = "ImGuiKey_Equal" +defs["enums"]["ImGuiKey"][80]["value"] = "590" +defs["enums"]["ImGuiKey"][81] = {} +defs["enums"]["ImGuiKey"][81]["calc_value"] = 591 +defs["enums"]["ImGuiKey"][81]["name"] = "ImGuiKey_LeftBracket" +defs["enums"]["ImGuiKey"][81]["value"] = "591" +defs["enums"]["ImGuiKey"][82] = {} +defs["enums"]["ImGuiKey"][82]["calc_value"] = 592 +defs["enums"]["ImGuiKey"][82]["name"] = "ImGuiKey_Backslash" +defs["enums"]["ImGuiKey"][82]["value"] = "592" +defs["enums"]["ImGuiKey"][83] = {} +defs["enums"]["ImGuiKey"][83]["calc_value"] = 593 +defs["enums"]["ImGuiKey"][83]["name"] = "ImGuiKey_RightBracket" +defs["enums"]["ImGuiKey"][83]["value"] = "593" +defs["enums"]["ImGuiKey"][84] = {} +defs["enums"]["ImGuiKey"][84]["calc_value"] = 594 +defs["enums"]["ImGuiKey"][84]["name"] = "ImGuiKey_GraveAccent" +defs["enums"]["ImGuiKey"][84]["value"] = "594" +defs["enums"]["ImGuiKey"][85] = {} +defs["enums"]["ImGuiKey"][85]["calc_value"] = 595 +defs["enums"]["ImGuiKey"][85]["name"] = "ImGuiKey_CapsLock" +defs["enums"]["ImGuiKey"][85]["value"] = "595" +defs["enums"]["ImGuiKey"][86] = {} +defs["enums"]["ImGuiKey"][86]["calc_value"] = 596 +defs["enums"]["ImGuiKey"][86]["name"] = "ImGuiKey_ScrollLock" +defs["enums"]["ImGuiKey"][86]["value"] = "596" +defs["enums"]["ImGuiKey"][87] = {} +defs["enums"]["ImGuiKey"][87]["calc_value"] = 597 +defs["enums"]["ImGuiKey"][87]["name"] = "ImGuiKey_NumLock" +defs["enums"]["ImGuiKey"][87]["value"] = "597" +defs["enums"]["ImGuiKey"][88] = {} +defs["enums"]["ImGuiKey"][88]["calc_value"] = 598 +defs["enums"]["ImGuiKey"][88]["name"] = "ImGuiKey_PrintScreen" +defs["enums"]["ImGuiKey"][88]["value"] = "598" +defs["enums"]["ImGuiKey"][89] = {} +defs["enums"]["ImGuiKey"][89]["calc_value"] = 599 +defs["enums"]["ImGuiKey"][89]["name"] = "ImGuiKey_Pause" +defs["enums"]["ImGuiKey"][89]["value"] = "599" +defs["enums"]["ImGuiKey"][90] = {} +defs["enums"]["ImGuiKey"][90]["calc_value"] = 600 +defs["enums"]["ImGuiKey"][90]["name"] = "ImGuiKey_Keypad0" +defs["enums"]["ImGuiKey"][90]["value"] = "600" +defs["enums"]["ImGuiKey"][91] = {} +defs["enums"]["ImGuiKey"][91]["calc_value"] = 601 +defs["enums"]["ImGuiKey"][91]["name"] = "ImGuiKey_Keypad1" +defs["enums"]["ImGuiKey"][91]["value"] = "601" +defs["enums"]["ImGuiKey"][92] = {} +defs["enums"]["ImGuiKey"][92]["calc_value"] = 602 +defs["enums"]["ImGuiKey"][92]["name"] = "ImGuiKey_Keypad2" +defs["enums"]["ImGuiKey"][92]["value"] = "602" +defs["enums"]["ImGuiKey"][93] = {} +defs["enums"]["ImGuiKey"][93]["calc_value"] = 603 +defs["enums"]["ImGuiKey"][93]["name"] = "ImGuiKey_Keypad3" +defs["enums"]["ImGuiKey"][93]["value"] = "603" +defs["enums"]["ImGuiKey"][94] = {} +defs["enums"]["ImGuiKey"][94]["calc_value"] = 604 +defs["enums"]["ImGuiKey"][94]["name"] = "ImGuiKey_Keypad4" +defs["enums"]["ImGuiKey"][94]["value"] = "604" +defs["enums"]["ImGuiKey"][95] = {} +defs["enums"]["ImGuiKey"][95]["calc_value"] = 605 +defs["enums"]["ImGuiKey"][95]["name"] = "ImGuiKey_Keypad5" +defs["enums"]["ImGuiKey"][95]["value"] = "605" +defs["enums"]["ImGuiKey"][96] = {} +defs["enums"]["ImGuiKey"][96]["calc_value"] = 606 +defs["enums"]["ImGuiKey"][96]["name"] = "ImGuiKey_Keypad6" +defs["enums"]["ImGuiKey"][96]["value"] = "606" +defs["enums"]["ImGuiKey"][97] = {} +defs["enums"]["ImGuiKey"][97]["calc_value"] = 607 +defs["enums"]["ImGuiKey"][97]["name"] = "ImGuiKey_Keypad7" +defs["enums"]["ImGuiKey"][97]["value"] = "607" +defs["enums"]["ImGuiKey"][98] = {} +defs["enums"]["ImGuiKey"][98]["calc_value"] = 608 +defs["enums"]["ImGuiKey"][98]["name"] = "ImGuiKey_Keypad8" +defs["enums"]["ImGuiKey"][98]["value"] = "608" +defs["enums"]["ImGuiKey"][99] = {} +defs["enums"]["ImGuiKey"][99]["calc_value"] = 609 +defs["enums"]["ImGuiKey"][99]["name"] = "ImGuiKey_Keypad9" +defs["enums"]["ImGuiKey"][99]["value"] = "609" +defs["enums"]["ImGuiKey"][100] = {} +defs["enums"]["ImGuiKey"][100]["calc_value"] = 610 +defs["enums"]["ImGuiKey"][100]["name"] = "ImGuiKey_KeypadDecimal" +defs["enums"]["ImGuiKey"][100]["value"] = "610" +defs["enums"]["ImGuiKey"][101] = {} +defs["enums"]["ImGuiKey"][101]["calc_value"] = 611 +defs["enums"]["ImGuiKey"][101]["name"] = "ImGuiKey_KeypadDivide" +defs["enums"]["ImGuiKey"][101]["value"] = "611" +defs["enums"]["ImGuiKey"][102] = {} +defs["enums"]["ImGuiKey"][102]["calc_value"] = 612 +defs["enums"]["ImGuiKey"][102]["name"] = "ImGuiKey_KeypadMultiply" +defs["enums"]["ImGuiKey"][102]["value"] = "612" +defs["enums"]["ImGuiKey"][103] = {} +defs["enums"]["ImGuiKey"][103]["calc_value"] = 613 +defs["enums"]["ImGuiKey"][103]["name"] = "ImGuiKey_KeypadSubtract" +defs["enums"]["ImGuiKey"][103]["value"] = "613" +defs["enums"]["ImGuiKey"][104] = {} +defs["enums"]["ImGuiKey"][104]["calc_value"] = 614 +defs["enums"]["ImGuiKey"][104]["name"] = "ImGuiKey_KeypadAdd" +defs["enums"]["ImGuiKey"][104]["value"] = "614" +defs["enums"]["ImGuiKey"][105] = {} +defs["enums"]["ImGuiKey"][105]["calc_value"] = 615 +defs["enums"]["ImGuiKey"][105]["name"] = "ImGuiKey_KeypadEnter" +defs["enums"]["ImGuiKey"][105]["value"] = "615" +defs["enums"]["ImGuiKey"][106] = {} +defs["enums"]["ImGuiKey"][106]["calc_value"] = 616 +defs["enums"]["ImGuiKey"][106]["name"] = "ImGuiKey_KeypadEqual" +defs["enums"]["ImGuiKey"][106]["value"] = "616" +defs["enums"]["ImGuiKey"][107] = {} +defs["enums"]["ImGuiKey"][107]["calc_value"] = 617 +defs["enums"]["ImGuiKey"][107]["name"] = "ImGuiKey_GamepadStart" +defs["enums"]["ImGuiKey"][107]["value"] = "617" +defs["enums"]["ImGuiKey"][108] = {} +defs["enums"]["ImGuiKey"][108]["calc_value"] = 618 +defs["enums"]["ImGuiKey"][108]["name"] = "ImGuiKey_GamepadBack" +defs["enums"]["ImGuiKey"][108]["value"] = "618" +defs["enums"]["ImGuiKey"][109] = {} +defs["enums"]["ImGuiKey"][109]["calc_value"] = 619 +defs["enums"]["ImGuiKey"][109]["name"] = "ImGuiKey_GamepadFaceLeft" +defs["enums"]["ImGuiKey"][109]["value"] = "619" +defs["enums"]["ImGuiKey"][110] = {} +defs["enums"]["ImGuiKey"][110]["calc_value"] = 620 +defs["enums"]["ImGuiKey"][110]["name"] = "ImGuiKey_GamepadFaceRight" +defs["enums"]["ImGuiKey"][110]["value"] = "620" +defs["enums"]["ImGuiKey"][111] = {} +defs["enums"]["ImGuiKey"][111]["calc_value"] = 621 +defs["enums"]["ImGuiKey"][111]["name"] = "ImGuiKey_GamepadFaceUp" +defs["enums"]["ImGuiKey"][111]["value"] = "621" +defs["enums"]["ImGuiKey"][112] = {} +defs["enums"]["ImGuiKey"][112]["calc_value"] = 622 +defs["enums"]["ImGuiKey"][112]["name"] = "ImGuiKey_GamepadFaceDown" +defs["enums"]["ImGuiKey"][112]["value"] = "622" +defs["enums"]["ImGuiKey"][113] = {} +defs["enums"]["ImGuiKey"][113]["calc_value"] = 623 +defs["enums"]["ImGuiKey"][113]["name"] = "ImGuiKey_GamepadDpadLeft" +defs["enums"]["ImGuiKey"][113]["value"] = "623" +defs["enums"]["ImGuiKey"][114] = {} +defs["enums"]["ImGuiKey"][114]["calc_value"] = 624 +defs["enums"]["ImGuiKey"][114]["name"] = "ImGuiKey_GamepadDpadRight" +defs["enums"]["ImGuiKey"][114]["value"] = "624" +defs["enums"]["ImGuiKey"][115] = {} +defs["enums"]["ImGuiKey"][115]["calc_value"] = 625 +defs["enums"]["ImGuiKey"][115]["name"] = "ImGuiKey_GamepadDpadUp" +defs["enums"]["ImGuiKey"][115]["value"] = "625" +defs["enums"]["ImGuiKey"][116] = {} +defs["enums"]["ImGuiKey"][116]["calc_value"] = 626 +defs["enums"]["ImGuiKey"][116]["name"] = "ImGuiKey_GamepadDpadDown" +defs["enums"]["ImGuiKey"][116]["value"] = "626" +defs["enums"]["ImGuiKey"][117] = {} +defs["enums"]["ImGuiKey"][117]["calc_value"] = 627 +defs["enums"]["ImGuiKey"][117]["name"] = "ImGuiKey_GamepadL1" +defs["enums"]["ImGuiKey"][117]["value"] = "627" +defs["enums"]["ImGuiKey"][118] = {} +defs["enums"]["ImGuiKey"][118]["calc_value"] = 628 +defs["enums"]["ImGuiKey"][118]["name"] = "ImGuiKey_GamepadR1" +defs["enums"]["ImGuiKey"][118]["value"] = "628" +defs["enums"]["ImGuiKey"][119] = {} +defs["enums"]["ImGuiKey"][119]["calc_value"] = 629 +defs["enums"]["ImGuiKey"][119]["name"] = "ImGuiKey_GamepadL2" +defs["enums"]["ImGuiKey"][119]["value"] = "629" +defs["enums"]["ImGuiKey"][120] = {} +defs["enums"]["ImGuiKey"][120]["calc_value"] = 630 +defs["enums"]["ImGuiKey"][120]["name"] = "ImGuiKey_GamepadR2" +defs["enums"]["ImGuiKey"][120]["value"] = "630" +defs["enums"]["ImGuiKey"][121] = {} +defs["enums"]["ImGuiKey"][121]["calc_value"] = 631 +defs["enums"]["ImGuiKey"][121]["name"] = "ImGuiKey_GamepadL3" +defs["enums"]["ImGuiKey"][121]["value"] = "631" +defs["enums"]["ImGuiKey"][122] = {} +defs["enums"]["ImGuiKey"][122]["calc_value"] = 632 +defs["enums"]["ImGuiKey"][122]["name"] = "ImGuiKey_GamepadR3" +defs["enums"]["ImGuiKey"][122]["value"] = "632" +defs["enums"]["ImGuiKey"][123] = {} +defs["enums"]["ImGuiKey"][123]["calc_value"] = 633 +defs["enums"]["ImGuiKey"][123]["name"] = "ImGuiKey_GamepadLStickLeft" +defs["enums"]["ImGuiKey"][123]["value"] = "633" +defs["enums"]["ImGuiKey"][124] = {} +defs["enums"]["ImGuiKey"][124]["calc_value"] = 634 +defs["enums"]["ImGuiKey"][124]["name"] = "ImGuiKey_GamepadLStickRight" +defs["enums"]["ImGuiKey"][124]["value"] = "634" +defs["enums"]["ImGuiKey"][125] = {} +defs["enums"]["ImGuiKey"][125]["calc_value"] = 635 +defs["enums"]["ImGuiKey"][125]["name"] = "ImGuiKey_GamepadLStickUp" +defs["enums"]["ImGuiKey"][125]["value"] = "635" +defs["enums"]["ImGuiKey"][126] = {} +defs["enums"]["ImGuiKey"][126]["calc_value"] = 636 +defs["enums"]["ImGuiKey"][126]["name"] = "ImGuiKey_GamepadLStickDown" +defs["enums"]["ImGuiKey"][126]["value"] = "636" +defs["enums"]["ImGuiKey"][127] = {} +defs["enums"]["ImGuiKey"][127]["calc_value"] = 637 +defs["enums"]["ImGuiKey"][127]["name"] = "ImGuiKey_GamepadRStickLeft" +defs["enums"]["ImGuiKey"][127]["value"] = "637" +defs["enums"]["ImGuiKey"][128] = {} +defs["enums"]["ImGuiKey"][128]["calc_value"] = 638 +defs["enums"]["ImGuiKey"][128]["name"] = "ImGuiKey_GamepadRStickRight" +defs["enums"]["ImGuiKey"][128]["value"] = "638" +defs["enums"]["ImGuiKey"][129] = {} +defs["enums"]["ImGuiKey"][129]["calc_value"] = 639 +defs["enums"]["ImGuiKey"][129]["name"] = "ImGuiKey_GamepadRStickUp" +defs["enums"]["ImGuiKey"][129]["value"] = "639" +defs["enums"]["ImGuiKey"][130] = {} +defs["enums"]["ImGuiKey"][130]["calc_value"] = 640 +defs["enums"]["ImGuiKey"][130]["name"] = "ImGuiKey_GamepadRStickDown" +defs["enums"]["ImGuiKey"][130]["value"] = "640" +defs["enums"]["ImGuiKey"][131] = {} +defs["enums"]["ImGuiKey"][131]["calc_value"] = 641 +defs["enums"]["ImGuiKey"][131]["name"] = "ImGuiKey_MouseLeft" +defs["enums"]["ImGuiKey"][131]["value"] = "641" +defs["enums"]["ImGuiKey"][132] = {} +defs["enums"]["ImGuiKey"][132]["calc_value"] = 642 +defs["enums"]["ImGuiKey"][132]["name"] = "ImGuiKey_MouseRight" +defs["enums"]["ImGuiKey"][132]["value"] = "642" +defs["enums"]["ImGuiKey"][133] = {} +defs["enums"]["ImGuiKey"][133]["calc_value"] = 643 +defs["enums"]["ImGuiKey"][133]["name"] = "ImGuiKey_MouseMiddle" +defs["enums"]["ImGuiKey"][133]["value"] = "643" +defs["enums"]["ImGuiKey"][134] = {} +defs["enums"]["ImGuiKey"][134]["calc_value"] = 644 +defs["enums"]["ImGuiKey"][134]["name"] = "ImGuiKey_MouseX1" +defs["enums"]["ImGuiKey"][134]["value"] = "644" +defs["enums"]["ImGuiKey"][135] = {} +defs["enums"]["ImGuiKey"][135]["calc_value"] = 645 +defs["enums"]["ImGuiKey"][135]["name"] = "ImGuiKey_MouseX2" +defs["enums"]["ImGuiKey"][135]["value"] = "645" +defs["enums"]["ImGuiKey"][136] = {} +defs["enums"]["ImGuiKey"][136]["calc_value"] = 646 +defs["enums"]["ImGuiKey"][136]["name"] = "ImGuiKey_MouseWheelX" +defs["enums"]["ImGuiKey"][136]["value"] = "646" +defs["enums"]["ImGuiKey"][137] = {} +defs["enums"]["ImGuiKey"][137]["calc_value"] = 647 +defs["enums"]["ImGuiKey"][137]["name"] = "ImGuiKey_MouseWheelY" +defs["enums"]["ImGuiKey"][137]["value"] = "647" +defs["enums"]["ImGuiKey"][138] = {} +defs["enums"]["ImGuiKey"][138]["calc_value"] = 648 +defs["enums"]["ImGuiKey"][138]["name"] = "ImGuiKey_ReservedForModCtrl" +defs["enums"]["ImGuiKey"][138]["value"] = "648" +defs["enums"]["ImGuiKey"][139] = {} +defs["enums"]["ImGuiKey"][139]["calc_value"] = 649 +defs["enums"]["ImGuiKey"][139]["name"] = "ImGuiKey_ReservedForModShift" +defs["enums"]["ImGuiKey"][139]["value"] = "649" +defs["enums"]["ImGuiKey"][140] = {} +defs["enums"]["ImGuiKey"][140]["calc_value"] = 650 +defs["enums"]["ImGuiKey"][140]["name"] = "ImGuiKey_ReservedForModAlt" +defs["enums"]["ImGuiKey"][140]["value"] = "650" +defs["enums"]["ImGuiKey"][141] = {} +defs["enums"]["ImGuiKey"][141]["calc_value"] = 651 +defs["enums"]["ImGuiKey"][141]["name"] = "ImGuiKey_ReservedForModSuper" +defs["enums"]["ImGuiKey"][141]["value"] = "651" +defs["enums"]["ImGuiKey"][142] = {} +defs["enums"]["ImGuiKey"][142]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][142]["name"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][142]["value"] = "652" +defs["enums"]["ImGuiKey"][143] = {} +defs["enums"]["ImGuiKey"][143]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][143]["name"] = "ImGuiMod_None" +defs["enums"]["ImGuiKey"][143]["value"] = "0" +defs["enums"]["ImGuiKey"][144] = {} +defs["enums"]["ImGuiKey"][144]["calc_value"] = 4096 +defs["enums"]["ImGuiKey"][144]["name"] = "ImGuiMod_Ctrl" +defs["enums"]["ImGuiKey"][144]["value"] = "1 << 12" +defs["enums"]["ImGuiKey"][145] = {} +defs["enums"]["ImGuiKey"][145]["calc_value"] = 8192 +defs["enums"]["ImGuiKey"][145]["name"] = "ImGuiMod_Shift" +defs["enums"]["ImGuiKey"][145]["value"] = "1 << 13" +defs["enums"]["ImGuiKey"][146] = {} +defs["enums"]["ImGuiKey"][146]["calc_value"] = 16384 +defs["enums"]["ImGuiKey"][146]["name"] = "ImGuiMod_Alt" +defs["enums"]["ImGuiKey"][146]["value"] = "1 << 14" +defs["enums"]["ImGuiKey"][147] = {} +defs["enums"]["ImGuiKey"][147]["calc_value"] = 32768 +defs["enums"]["ImGuiKey"][147]["name"] = "ImGuiMod_Super" +defs["enums"]["ImGuiKey"][147]["value"] = "1 << 15" +defs["enums"]["ImGuiKey"][148] = {} +defs["enums"]["ImGuiKey"][148]["calc_value"] = 61440 +defs["enums"]["ImGuiKey"][148]["name"] = "ImGuiMod_Mask_" +defs["enums"]["ImGuiKey"][148]["value"] = "0xF000" +defs["enums"]["ImGuiKey"][149] = {} +defs["enums"]["ImGuiKey"][149]["calc_value"] = 4096 +defs["enums"]["ImGuiKey"][149]["name"] = "ImGuiMod_Shortcut" +defs["enums"]["ImGuiKey"][149]["value"] = "ImGuiMod_Ctrl" +defs["enums"]["ImGuiKey"][150] = {} +defs["enums"]["ImGuiKey"][150]["calc_value"] = 512 +defs["enums"]["ImGuiKey"][150]["name"] = "ImGuiKey_NamedKey_BEGIN" +defs["enums"]["ImGuiKey"][150]["value"] = "512" +defs["enums"]["ImGuiKey"][151] = {} +defs["enums"]["ImGuiKey"][151]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][151]["name"] = "ImGuiKey_NamedKey_END" +defs["enums"]["ImGuiKey"][151]["value"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][152] = {} +defs["enums"]["ImGuiKey"][152]["calc_value"] = 140 +defs["enums"]["ImGuiKey"][152]["name"] = "ImGuiKey_NamedKey_COUNT" +defs["enums"]["ImGuiKey"][152]["value"] = "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN" +defs["enums"]["ImGuiKey"][153] = {} +defs["enums"]["ImGuiKey"][153]["calc_value"] = 652 +defs["enums"]["ImGuiKey"][153]["name"] = "ImGuiKey_KeysData_SIZE" +defs["enums"]["ImGuiKey"][153]["value"] = "ImGuiKey_COUNT" +defs["enums"]["ImGuiKey"][154] = {} +defs["enums"]["ImGuiKey"][154]["calc_value"] = 0 +defs["enums"]["ImGuiKey"][154]["name"] = "ImGuiKey_KeysData_OFFSET" +defs["enums"]["ImGuiKey"][154]["value"] = "0" +defs["enums"]["ImGuiMouseButton_"] = {} +defs["enums"]["ImGuiMouseButton_"][1] = {} +defs["enums"]["ImGuiMouseButton_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiMouseButton_"][1]["name"] = "ImGuiMouseButton_Left" +defs["enums"]["ImGuiMouseButton_"][1]["value"] = "0" +defs["enums"]["ImGuiMouseButton_"][2] = {} +defs["enums"]["ImGuiMouseButton_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiMouseButton_"][2]["name"] = "ImGuiMouseButton_Right" +defs["enums"]["ImGuiMouseButton_"][2]["value"] = "1" +defs["enums"]["ImGuiMouseButton_"][3] = {} +defs["enums"]["ImGuiMouseButton_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiMouseButton_"][3]["name"] = "ImGuiMouseButton_Middle" +defs["enums"]["ImGuiMouseButton_"][3]["value"] = "2" +defs["enums"]["ImGuiMouseButton_"][4] = {} +defs["enums"]["ImGuiMouseButton_"][4]["calc_value"] = 5 +defs["enums"]["ImGuiMouseButton_"][4]["name"] = "ImGuiMouseButton_COUNT" +defs["enums"]["ImGuiMouseButton_"][4]["value"] = "5" +defs["enums"]["ImGuiMouseCursor_"] = {} +defs["enums"]["ImGuiMouseCursor_"][1] = {} +defs["enums"]["ImGuiMouseCursor_"][1]["calc_value"] = -1 +defs["enums"]["ImGuiMouseCursor_"][1]["name"] = "ImGuiMouseCursor_None" +defs["enums"]["ImGuiMouseCursor_"][1]["value"] = "-1" +defs["enums"]["ImGuiMouseCursor_"][2] = {} +defs["enums"]["ImGuiMouseCursor_"][2]["calc_value"] = 0 +defs["enums"]["ImGuiMouseCursor_"][2]["name"] = "ImGuiMouseCursor_Arrow" +defs["enums"]["ImGuiMouseCursor_"][2]["value"] = "0" +defs["enums"]["ImGuiMouseCursor_"][3] = {} +defs["enums"]["ImGuiMouseCursor_"][3]["calc_value"] = 1 +defs["enums"]["ImGuiMouseCursor_"][3]["name"] = "ImGuiMouseCursor_TextInput" +defs["enums"]["ImGuiMouseCursor_"][3]["value"] = "1" +defs["enums"]["ImGuiMouseCursor_"][4] = {} +defs["enums"]["ImGuiMouseCursor_"][4]["calc_value"] = 2 +defs["enums"]["ImGuiMouseCursor_"][4]["name"] = "ImGuiMouseCursor_ResizeAll" +defs["enums"]["ImGuiMouseCursor_"][4]["value"] = "2" +defs["enums"]["ImGuiMouseCursor_"][5] = {} +defs["enums"]["ImGuiMouseCursor_"][5]["calc_value"] = 3 +defs["enums"]["ImGuiMouseCursor_"][5]["name"] = "ImGuiMouseCursor_ResizeNS" +defs["enums"]["ImGuiMouseCursor_"][5]["value"] = "3" +defs["enums"]["ImGuiMouseCursor_"][6] = {} +defs["enums"]["ImGuiMouseCursor_"][6]["calc_value"] = 4 +defs["enums"]["ImGuiMouseCursor_"][6]["name"] = "ImGuiMouseCursor_ResizeEW" +defs["enums"]["ImGuiMouseCursor_"][6]["value"] = "4" +defs["enums"]["ImGuiMouseCursor_"][7] = {} +defs["enums"]["ImGuiMouseCursor_"][7]["calc_value"] = 5 +defs["enums"]["ImGuiMouseCursor_"][7]["name"] = "ImGuiMouseCursor_ResizeNESW" +defs["enums"]["ImGuiMouseCursor_"][7]["value"] = "5" +defs["enums"]["ImGuiMouseCursor_"][8] = {} +defs["enums"]["ImGuiMouseCursor_"][8]["calc_value"] = 6 +defs["enums"]["ImGuiMouseCursor_"][8]["name"] = "ImGuiMouseCursor_ResizeNWSE" +defs["enums"]["ImGuiMouseCursor_"][8]["value"] = "6" +defs["enums"]["ImGuiMouseCursor_"][9] = {} +defs["enums"]["ImGuiMouseCursor_"][9]["calc_value"] = 7 +defs["enums"]["ImGuiMouseCursor_"][9]["name"] = "ImGuiMouseCursor_Hand" +defs["enums"]["ImGuiMouseCursor_"][9]["value"] = "7" +defs["enums"]["ImGuiMouseCursor_"][10] = {} +defs["enums"]["ImGuiMouseCursor_"][10]["calc_value"] = 8 +defs["enums"]["ImGuiMouseCursor_"][10]["name"] = "ImGuiMouseCursor_NotAllowed" +defs["enums"]["ImGuiMouseCursor_"][10]["value"] = "8" +defs["enums"]["ImGuiMouseCursor_"][11] = {} +defs["enums"]["ImGuiMouseCursor_"][11]["calc_value"] = 9 +defs["enums"]["ImGuiMouseCursor_"][11]["name"] = "ImGuiMouseCursor_COUNT" +defs["enums"]["ImGuiMouseCursor_"][11]["value"] = "9" +defs["enums"]["ImGuiNavInput"] = {} +defs["enums"]["ImGuiNavInput"][1] = {} +defs["enums"]["ImGuiNavInput"][1]["calc_value"] = 0 +defs["enums"]["ImGuiNavInput"][1]["name"] = "ImGuiNavInput_Activate" +defs["enums"]["ImGuiNavInput"][1]["value"] = "0" +defs["enums"]["ImGuiNavInput"][2] = {} +defs["enums"]["ImGuiNavInput"][2]["calc_value"] = 1 +defs["enums"]["ImGuiNavInput"][2]["name"] = "ImGuiNavInput_Cancel" +defs["enums"]["ImGuiNavInput"][2]["value"] = "1" +defs["enums"]["ImGuiNavInput"][3] = {} +defs["enums"]["ImGuiNavInput"][3]["calc_value"] = 2 +defs["enums"]["ImGuiNavInput"][3]["name"] = "ImGuiNavInput_Input" +defs["enums"]["ImGuiNavInput"][3]["value"] = "2" +defs["enums"]["ImGuiNavInput"][4] = {} +defs["enums"]["ImGuiNavInput"][4]["calc_value"] = 3 +defs["enums"]["ImGuiNavInput"][4]["name"] = "ImGuiNavInput_Menu" +defs["enums"]["ImGuiNavInput"][4]["value"] = "3" +defs["enums"]["ImGuiNavInput"][5] = {} +defs["enums"]["ImGuiNavInput"][5]["calc_value"] = 4 +defs["enums"]["ImGuiNavInput"][5]["name"] = "ImGuiNavInput_DpadLeft" +defs["enums"]["ImGuiNavInput"][5]["value"] = "4" +defs["enums"]["ImGuiNavInput"][6] = {} +defs["enums"]["ImGuiNavInput"][6]["calc_value"] = 5 +defs["enums"]["ImGuiNavInput"][6]["name"] = "ImGuiNavInput_DpadRight" +defs["enums"]["ImGuiNavInput"][6]["value"] = "5" +defs["enums"]["ImGuiNavInput"][7] = {} +defs["enums"]["ImGuiNavInput"][7]["calc_value"] = 6 +defs["enums"]["ImGuiNavInput"][7]["name"] = "ImGuiNavInput_DpadUp" +defs["enums"]["ImGuiNavInput"][7]["value"] = "6" +defs["enums"]["ImGuiNavInput"][8] = {} +defs["enums"]["ImGuiNavInput"][8]["calc_value"] = 7 +defs["enums"]["ImGuiNavInput"][8]["name"] = "ImGuiNavInput_DpadDown" +defs["enums"]["ImGuiNavInput"][8]["value"] = "7" +defs["enums"]["ImGuiNavInput"][9] = {} +defs["enums"]["ImGuiNavInput"][9]["calc_value"] = 8 +defs["enums"]["ImGuiNavInput"][9]["name"] = "ImGuiNavInput_LStickLeft" +defs["enums"]["ImGuiNavInput"][9]["value"] = "8" +defs["enums"]["ImGuiNavInput"][10] = {} +defs["enums"]["ImGuiNavInput"][10]["calc_value"] = 9 +defs["enums"]["ImGuiNavInput"][10]["name"] = "ImGuiNavInput_LStickRight" +defs["enums"]["ImGuiNavInput"][10]["value"] = "9" +defs["enums"]["ImGuiNavInput"][11] = {} +defs["enums"]["ImGuiNavInput"][11]["calc_value"] = 10 +defs["enums"]["ImGuiNavInput"][11]["name"] = "ImGuiNavInput_LStickUp" +defs["enums"]["ImGuiNavInput"][11]["value"] = "10" +defs["enums"]["ImGuiNavInput"][12] = {} +defs["enums"]["ImGuiNavInput"][12]["calc_value"] = 11 +defs["enums"]["ImGuiNavInput"][12]["name"] = "ImGuiNavInput_LStickDown" +defs["enums"]["ImGuiNavInput"][12]["value"] = "11" +defs["enums"]["ImGuiNavInput"][13] = {} +defs["enums"]["ImGuiNavInput"][13]["calc_value"] = 12 +defs["enums"]["ImGuiNavInput"][13]["name"] = "ImGuiNavInput_FocusPrev" +defs["enums"]["ImGuiNavInput"][13]["value"] = "12" +defs["enums"]["ImGuiNavInput"][14] = {} +defs["enums"]["ImGuiNavInput"][14]["calc_value"] = 13 +defs["enums"]["ImGuiNavInput"][14]["name"] = "ImGuiNavInput_FocusNext" +defs["enums"]["ImGuiNavInput"][14]["value"] = "13" +defs["enums"]["ImGuiNavInput"][15] = {} +defs["enums"]["ImGuiNavInput"][15]["calc_value"] = 14 +defs["enums"]["ImGuiNavInput"][15]["name"] = "ImGuiNavInput_TweakSlow" +defs["enums"]["ImGuiNavInput"][15]["value"] = "14" +defs["enums"]["ImGuiNavInput"][16] = {} +defs["enums"]["ImGuiNavInput"][16]["calc_value"] = 15 +defs["enums"]["ImGuiNavInput"][16]["name"] = "ImGuiNavInput_TweakFast" +defs["enums"]["ImGuiNavInput"][16]["value"] = "15" +defs["enums"]["ImGuiNavInput"][17] = {} +defs["enums"]["ImGuiNavInput"][17]["calc_value"] = 16 +defs["enums"]["ImGuiNavInput"][17]["name"] = "ImGuiNavInput_COUNT" +defs["enums"]["ImGuiNavInput"][17]["value"] = "16" +defs["enums"]["ImGuiPopupFlags_"] = {} +defs["enums"]["ImGuiPopupFlags_"][1] = {} +defs["enums"]["ImGuiPopupFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiPopupFlags_"][1]["name"] = "ImGuiPopupFlags_None" +defs["enums"]["ImGuiPopupFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiPopupFlags_"][2] = {} +defs["enums"]["ImGuiPopupFlags_"][2]["calc_value"] = 0 +defs["enums"]["ImGuiPopupFlags_"][2]["name"] = "ImGuiPopupFlags_MouseButtonLeft" +defs["enums"]["ImGuiPopupFlags_"][2]["value"] = "0" +defs["enums"]["ImGuiPopupFlags_"][3] = {} +defs["enums"]["ImGuiPopupFlags_"][3]["calc_value"] = 1 +defs["enums"]["ImGuiPopupFlags_"][3]["name"] = "ImGuiPopupFlags_MouseButtonRight" +defs["enums"]["ImGuiPopupFlags_"][3]["value"] = "1" +defs["enums"]["ImGuiPopupFlags_"][4] = {} +defs["enums"]["ImGuiPopupFlags_"][4]["calc_value"] = 2 +defs["enums"]["ImGuiPopupFlags_"][4]["name"] = "ImGuiPopupFlags_MouseButtonMiddle" +defs["enums"]["ImGuiPopupFlags_"][4]["value"] = "2" +defs["enums"]["ImGuiPopupFlags_"][5] = {} +defs["enums"]["ImGuiPopupFlags_"][5]["calc_value"] = 31 +defs["enums"]["ImGuiPopupFlags_"][5]["name"] = "ImGuiPopupFlags_MouseButtonMask_" +defs["enums"]["ImGuiPopupFlags_"][5]["value"] = "0x1F" +defs["enums"]["ImGuiPopupFlags_"][6] = {} +defs["enums"]["ImGuiPopupFlags_"][6]["calc_value"] = 1 +defs["enums"]["ImGuiPopupFlags_"][6]["name"] = "ImGuiPopupFlags_MouseButtonDefault_" +defs["enums"]["ImGuiPopupFlags_"][6]["value"] = "1" +defs["enums"]["ImGuiPopupFlags_"][7] = {} +defs["enums"]["ImGuiPopupFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiPopupFlags_"][7]["name"] = "ImGuiPopupFlags_NoOpenOverExistingPopup" +defs["enums"]["ImGuiPopupFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiPopupFlags_"][8] = {} +defs["enums"]["ImGuiPopupFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiPopupFlags_"][8]["name"] = "ImGuiPopupFlags_NoOpenOverItems" +defs["enums"]["ImGuiPopupFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiPopupFlags_"][9] = {} +defs["enums"]["ImGuiPopupFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiPopupFlags_"][9]["name"] = "ImGuiPopupFlags_AnyPopupId" +defs["enums"]["ImGuiPopupFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiPopupFlags_"][10] = {} +defs["enums"]["ImGuiPopupFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiPopupFlags_"][10]["name"] = "ImGuiPopupFlags_AnyPopupLevel" +defs["enums"]["ImGuiPopupFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiPopupFlags_"][11] = {} +defs["enums"]["ImGuiPopupFlags_"][11]["calc_value"] = 384 +defs["enums"]["ImGuiPopupFlags_"][11]["name"] = "ImGuiPopupFlags_AnyPopup" +defs["enums"]["ImGuiPopupFlags_"][11]["value"] = "ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel" +defs["enums"]["ImGuiSelectableFlags_"] = {} +defs["enums"]["ImGuiSelectableFlags_"][1] = {} +defs["enums"]["ImGuiSelectableFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiSelectableFlags_"][1]["name"] = "ImGuiSelectableFlags_None" +defs["enums"]["ImGuiSelectableFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiSelectableFlags_"][2] = {} +defs["enums"]["ImGuiSelectableFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiSelectableFlags_"][2]["name"] = "ImGuiSelectableFlags_DontClosePopups" +defs["enums"]["ImGuiSelectableFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiSelectableFlags_"][3] = {} +defs["enums"]["ImGuiSelectableFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiSelectableFlags_"][3]["name"] = "ImGuiSelectableFlags_SpanAllColumns" +defs["enums"]["ImGuiSelectableFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiSelectableFlags_"][4] = {} +defs["enums"]["ImGuiSelectableFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiSelectableFlags_"][4]["name"] = "ImGuiSelectableFlags_AllowDoubleClick" +defs["enums"]["ImGuiSelectableFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiSelectableFlags_"][5] = {} +defs["enums"]["ImGuiSelectableFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiSelectableFlags_"][5]["name"] = "ImGuiSelectableFlags_Disabled" +defs["enums"]["ImGuiSelectableFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiSelectableFlags_"][6] = {} +defs["enums"]["ImGuiSelectableFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiSelectableFlags_"][6]["name"] = "ImGuiSelectableFlags_AllowItemOverlap" +defs["enums"]["ImGuiSelectableFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiSliderFlags_"] = {} +defs["enums"]["ImGuiSliderFlags_"][1] = {} +defs["enums"]["ImGuiSliderFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiSliderFlags_"][1]["name"] = "ImGuiSliderFlags_None" +defs["enums"]["ImGuiSliderFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiSliderFlags_"][2] = {} +defs["enums"]["ImGuiSliderFlags_"][2]["calc_value"] = 16 +defs["enums"]["ImGuiSliderFlags_"][2]["name"] = "ImGuiSliderFlags_AlwaysClamp" +defs["enums"]["ImGuiSliderFlags_"][2]["value"] = "1 << 4" +defs["enums"]["ImGuiSliderFlags_"][3] = {} +defs["enums"]["ImGuiSliderFlags_"][3]["calc_value"] = 32 +defs["enums"]["ImGuiSliderFlags_"][3]["name"] = "ImGuiSliderFlags_Logarithmic" +defs["enums"]["ImGuiSliderFlags_"][3]["value"] = "1 << 5" +defs["enums"]["ImGuiSliderFlags_"][4] = {} +defs["enums"]["ImGuiSliderFlags_"][4]["calc_value"] = 64 +defs["enums"]["ImGuiSliderFlags_"][4]["name"] = "ImGuiSliderFlags_NoRoundToFormat" +defs["enums"]["ImGuiSliderFlags_"][4]["value"] = "1 << 6" +defs["enums"]["ImGuiSliderFlags_"][5] = {} +defs["enums"]["ImGuiSliderFlags_"][5]["calc_value"] = 128 +defs["enums"]["ImGuiSliderFlags_"][5]["name"] = "ImGuiSliderFlags_NoInput" +defs["enums"]["ImGuiSliderFlags_"][5]["value"] = "1 << 7" +defs["enums"]["ImGuiSliderFlags_"][6] = {} +defs["enums"]["ImGuiSliderFlags_"][6]["calc_value"] = 1879048207 +defs["enums"]["ImGuiSliderFlags_"][6]["name"] = "ImGuiSliderFlags_InvalidMask_" +defs["enums"]["ImGuiSliderFlags_"][6]["value"] = "0x7000000F" +defs["enums"]["ImGuiSortDirection_"] = {} +defs["enums"]["ImGuiSortDirection_"][1] = {} +defs["enums"]["ImGuiSortDirection_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiSortDirection_"][1]["name"] = "ImGuiSortDirection_None" +defs["enums"]["ImGuiSortDirection_"][1]["value"] = "0" +defs["enums"]["ImGuiSortDirection_"][2] = {} +defs["enums"]["ImGuiSortDirection_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiSortDirection_"][2]["name"] = "ImGuiSortDirection_Ascending" +defs["enums"]["ImGuiSortDirection_"][2]["value"] = "1" +defs["enums"]["ImGuiSortDirection_"][3] = {} +defs["enums"]["ImGuiSortDirection_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiSortDirection_"][3]["name"] = "ImGuiSortDirection_Descending" +defs["enums"]["ImGuiSortDirection_"][3]["value"] = "2" +defs["enums"]["ImGuiStyleVar_"] = {} +defs["enums"]["ImGuiStyleVar_"][1] = {} +defs["enums"]["ImGuiStyleVar_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiStyleVar_"][1]["name"] = "ImGuiStyleVar_Alpha" +defs["enums"]["ImGuiStyleVar_"][1]["value"] = "0" +defs["enums"]["ImGuiStyleVar_"][2] = {} +defs["enums"]["ImGuiStyleVar_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiStyleVar_"][2]["name"] = "ImGuiStyleVar_DisabledAlpha" +defs["enums"]["ImGuiStyleVar_"][2]["value"] = "1" +defs["enums"]["ImGuiStyleVar_"][3] = {} +defs["enums"]["ImGuiStyleVar_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiStyleVar_"][3]["name"] = "ImGuiStyleVar_WindowPadding" +defs["enums"]["ImGuiStyleVar_"][3]["value"] = "2" +defs["enums"]["ImGuiStyleVar_"][4] = {} +defs["enums"]["ImGuiStyleVar_"][4]["calc_value"] = 3 +defs["enums"]["ImGuiStyleVar_"][4]["name"] = "ImGuiStyleVar_WindowRounding" +defs["enums"]["ImGuiStyleVar_"][4]["value"] = "3" +defs["enums"]["ImGuiStyleVar_"][5] = {} +defs["enums"]["ImGuiStyleVar_"][5]["calc_value"] = 4 +defs["enums"]["ImGuiStyleVar_"][5]["name"] = "ImGuiStyleVar_WindowBorderSize" +defs["enums"]["ImGuiStyleVar_"][5]["value"] = "4" +defs["enums"]["ImGuiStyleVar_"][6] = {} +defs["enums"]["ImGuiStyleVar_"][6]["calc_value"] = 5 +defs["enums"]["ImGuiStyleVar_"][6]["name"] = "ImGuiStyleVar_WindowMinSize" +defs["enums"]["ImGuiStyleVar_"][6]["value"] = "5" +defs["enums"]["ImGuiStyleVar_"][7] = {} +defs["enums"]["ImGuiStyleVar_"][7]["calc_value"] = 6 +defs["enums"]["ImGuiStyleVar_"][7]["name"] = "ImGuiStyleVar_WindowTitleAlign" +defs["enums"]["ImGuiStyleVar_"][7]["value"] = "6" +defs["enums"]["ImGuiStyleVar_"][8] = {} +defs["enums"]["ImGuiStyleVar_"][8]["calc_value"] = 7 +defs["enums"]["ImGuiStyleVar_"][8]["name"] = "ImGuiStyleVar_ChildRounding" +defs["enums"]["ImGuiStyleVar_"][8]["value"] = "7" +defs["enums"]["ImGuiStyleVar_"][9] = {} +defs["enums"]["ImGuiStyleVar_"][9]["calc_value"] = 8 +defs["enums"]["ImGuiStyleVar_"][9]["name"] = "ImGuiStyleVar_ChildBorderSize" +defs["enums"]["ImGuiStyleVar_"][9]["value"] = "8" +defs["enums"]["ImGuiStyleVar_"][10] = {} +defs["enums"]["ImGuiStyleVar_"][10]["calc_value"] = 9 +defs["enums"]["ImGuiStyleVar_"][10]["name"] = "ImGuiStyleVar_PopupRounding" +defs["enums"]["ImGuiStyleVar_"][10]["value"] = "9" +defs["enums"]["ImGuiStyleVar_"][11] = {} +defs["enums"]["ImGuiStyleVar_"][11]["calc_value"] = 10 +defs["enums"]["ImGuiStyleVar_"][11]["name"] = "ImGuiStyleVar_PopupBorderSize" +defs["enums"]["ImGuiStyleVar_"][11]["value"] = "10" +defs["enums"]["ImGuiStyleVar_"][12] = {} +defs["enums"]["ImGuiStyleVar_"][12]["calc_value"] = 11 +defs["enums"]["ImGuiStyleVar_"][12]["name"] = "ImGuiStyleVar_FramePadding" +defs["enums"]["ImGuiStyleVar_"][12]["value"] = "11" +defs["enums"]["ImGuiStyleVar_"][13] = {} +defs["enums"]["ImGuiStyleVar_"][13]["calc_value"] = 12 +defs["enums"]["ImGuiStyleVar_"][13]["name"] = "ImGuiStyleVar_FrameRounding" +defs["enums"]["ImGuiStyleVar_"][13]["value"] = "12" +defs["enums"]["ImGuiStyleVar_"][14] = {} +defs["enums"]["ImGuiStyleVar_"][14]["calc_value"] = 13 +defs["enums"]["ImGuiStyleVar_"][14]["name"] = "ImGuiStyleVar_FrameBorderSize" +defs["enums"]["ImGuiStyleVar_"][14]["value"] = "13" +defs["enums"]["ImGuiStyleVar_"][15] = {} +defs["enums"]["ImGuiStyleVar_"][15]["calc_value"] = 14 +defs["enums"]["ImGuiStyleVar_"][15]["name"] = "ImGuiStyleVar_ItemSpacing" +defs["enums"]["ImGuiStyleVar_"][15]["value"] = "14" +defs["enums"]["ImGuiStyleVar_"][16] = {} +defs["enums"]["ImGuiStyleVar_"][16]["calc_value"] = 15 +defs["enums"]["ImGuiStyleVar_"][16]["name"] = "ImGuiStyleVar_ItemInnerSpacing" +defs["enums"]["ImGuiStyleVar_"][16]["value"] = "15" +defs["enums"]["ImGuiStyleVar_"][17] = {} +defs["enums"]["ImGuiStyleVar_"][17]["calc_value"] = 16 +defs["enums"]["ImGuiStyleVar_"][17]["name"] = "ImGuiStyleVar_IndentSpacing" +defs["enums"]["ImGuiStyleVar_"][17]["value"] = "16" +defs["enums"]["ImGuiStyleVar_"][18] = {} +defs["enums"]["ImGuiStyleVar_"][18]["calc_value"] = 17 +defs["enums"]["ImGuiStyleVar_"][18]["name"] = "ImGuiStyleVar_CellPadding" +defs["enums"]["ImGuiStyleVar_"][18]["value"] = "17" +defs["enums"]["ImGuiStyleVar_"][19] = {} +defs["enums"]["ImGuiStyleVar_"][19]["calc_value"] = 18 +defs["enums"]["ImGuiStyleVar_"][19]["name"] = "ImGuiStyleVar_ScrollbarSize" +defs["enums"]["ImGuiStyleVar_"][19]["value"] = "18" +defs["enums"]["ImGuiStyleVar_"][20] = {} +defs["enums"]["ImGuiStyleVar_"][20]["calc_value"] = 19 +defs["enums"]["ImGuiStyleVar_"][20]["name"] = "ImGuiStyleVar_ScrollbarRounding" +defs["enums"]["ImGuiStyleVar_"][20]["value"] = "19" +defs["enums"]["ImGuiStyleVar_"][21] = {} +defs["enums"]["ImGuiStyleVar_"][21]["calc_value"] = 20 +defs["enums"]["ImGuiStyleVar_"][21]["name"] = "ImGuiStyleVar_GrabMinSize" +defs["enums"]["ImGuiStyleVar_"][21]["value"] = "20" +defs["enums"]["ImGuiStyleVar_"][22] = {} +defs["enums"]["ImGuiStyleVar_"][22]["calc_value"] = 21 +defs["enums"]["ImGuiStyleVar_"][22]["name"] = "ImGuiStyleVar_GrabRounding" +defs["enums"]["ImGuiStyleVar_"][22]["value"] = "21" +defs["enums"]["ImGuiStyleVar_"][23] = {} +defs["enums"]["ImGuiStyleVar_"][23]["calc_value"] = 22 +defs["enums"]["ImGuiStyleVar_"][23]["name"] = "ImGuiStyleVar_TabRounding" +defs["enums"]["ImGuiStyleVar_"][23]["value"] = "22" +defs["enums"]["ImGuiStyleVar_"][24] = {} +defs["enums"]["ImGuiStyleVar_"][24]["calc_value"] = 23 +defs["enums"]["ImGuiStyleVar_"][24]["name"] = "ImGuiStyleVar_ButtonTextAlign" +defs["enums"]["ImGuiStyleVar_"][24]["value"] = "23" +defs["enums"]["ImGuiStyleVar_"][25] = {} +defs["enums"]["ImGuiStyleVar_"][25]["calc_value"] = 24 +defs["enums"]["ImGuiStyleVar_"][25]["name"] = "ImGuiStyleVar_SelectableTextAlign" +defs["enums"]["ImGuiStyleVar_"][25]["value"] = "24" +defs["enums"]["ImGuiStyleVar_"][26] = {} +defs["enums"]["ImGuiStyleVar_"][26]["calc_value"] = 25 +defs["enums"]["ImGuiStyleVar_"][26]["name"] = "ImGuiStyleVar_COUNT" +defs["enums"]["ImGuiStyleVar_"][26]["value"] = "25" +defs["enums"]["ImGuiTabBarFlags_"] = {} +defs["enums"]["ImGuiTabBarFlags_"][1] = {} +defs["enums"]["ImGuiTabBarFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTabBarFlags_"][1]["name"] = "ImGuiTabBarFlags_None" +defs["enums"]["ImGuiTabBarFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTabBarFlags_"][2] = {} +defs["enums"]["ImGuiTabBarFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTabBarFlags_"][2]["name"] = "ImGuiTabBarFlags_Reorderable" +defs["enums"]["ImGuiTabBarFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTabBarFlags_"][3] = {} +defs["enums"]["ImGuiTabBarFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTabBarFlags_"][3]["name"] = "ImGuiTabBarFlags_AutoSelectNewTabs" +defs["enums"]["ImGuiTabBarFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTabBarFlags_"][4] = {} +defs["enums"]["ImGuiTabBarFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTabBarFlags_"][4]["name"] = "ImGuiTabBarFlags_TabListPopupButton" +defs["enums"]["ImGuiTabBarFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTabBarFlags_"][5] = {} +defs["enums"]["ImGuiTabBarFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTabBarFlags_"][5]["name"] = "ImGuiTabBarFlags_NoCloseWithMiddleMouseButton" +defs["enums"]["ImGuiTabBarFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTabBarFlags_"][6] = {} +defs["enums"]["ImGuiTabBarFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTabBarFlags_"][6]["name"] = "ImGuiTabBarFlags_NoTabListScrollingButtons" +defs["enums"]["ImGuiTabBarFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTabBarFlags_"][7] = {} +defs["enums"]["ImGuiTabBarFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTabBarFlags_"][7]["name"] = "ImGuiTabBarFlags_NoTooltip" +defs["enums"]["ImGuiTabBarFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTabBarFlags_"][8] = {} +defs["enums"]["ImGuiTabBarFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTabBarFlags_"][8]["name"] = "ImGuiTabBarFlags_FittingPolicyResizeDown" +defs["enums"]["ImGuiTabBarFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTabBarFlags_"][9] = {} +defs["enums"]["ImGuiTabBarFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTabBarFlags_"][9]["name"] = "ImGuiTabBarFlags_FittingPolicyScroll" +defs["enums"]["ImGuiTabBarFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTabBarFlags_"][10] = {} +defs["enums"]["ImGuiTabBarFlags_"][10]["calc_value"] = 192 +defs["enums"]["ImGuiTabBarFlags_"][10]["name"] = "ImGuiTabBarFlags_FittingPolicyMask_" +defs["enums"]["ImGuiTabBarFlags_"][10]["value"] = "ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll" +defs["enums"]["ImGuiTabBarFlags_"][11] = {} +defs["enums"]["ImGuiTabBarFlags_"][11]["calc_value"] = 64 +defs["enums"]["ImGuiTabBarFlags_"][11]["name"] = "ImGuiTabBarFlags_FittingPolicyDefault_" +defs["enums"]["ImGuiTabBarFlags_"][11]["value"] = "ImGuiTabBarFlags_FittingPolicyResizeDown" +defs["enums"]["ImGuiTabItemFlags_"] = {} +defs["enums"]["ImGuiTabItemFlags_"][1] = {} +defs["enums"]["ImGuiTabItemFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTabItemFlags_"][1]["name"] = "ImGuiTabItemFlags_None" +defs["enums"]["ImGuiTabItemFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTabItemFlags_"][2] = {} +defs["enums"]["ImGuiTabItemFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTabItemFlags_"][2]["name"] = "ImGuiTabItemFlags_UnsavedDocument" +defs["enums"]["ImGuiTabItemFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTabItemFlags_"][3] = {} +defs["enums"]["ImGuiTabItemFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTabItemFlags_"][3]["name"] = "ImGuiTabItemFlags_SetSelected" +defs["enums"]["ImGuiTabItemFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTabItemFlags_"][4] = {} +defs["enums"]["ImGuiTabItemFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTabItemFlags_"][4]["name"] = "ImGuiTabItemFlags_NoCloseWithMiddleMouseButton" +defs["enums"]["ImGuiTabItemFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTabItemFlags_"][5] = {} +defs["enums"]["ImGuiTabItemFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTabItemFlags_"][5]["name"] = "ImGuiTabItemFlags_NoPushId" +defs["enums"]["ImGuiTabItemFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTabItemFlags_"][6] = {} +defs["enums"]["ImGuiTabItemFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTabItemFlags_"][6]["name"] = "ImGuiTabItemFlags_NoTooltip" +defs["enums"]["ImGuiTabItemFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTabItemFlags_"][7] = {} +defs["enums"]["ImGuiTabItemFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTabItemFlags_"][7]["name"] = "ImGuiTabItemFlags_NoReorder" +defs["enums"]["ImGuiTabItemFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTabItemFlags_"][8] = {} +defs["enums"]["ImGuiTabItemFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTabItemFlags_"][8]["name"] = "ImGuiTabItemFlags_Leading" +defs["enums"]["ImGuiTabItemFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTabItemFlags_"][9] = {} +defs["enums"]["ImGuiTabItemFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTabItemFlags_"][9]["name"] = "ImGuiTabItemFlags_Trailing" +defs["enums"]["ImGuiTabItemFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTableBgTarget_"] = {} +defs["enums"]["ImGuiTableBgTarget_"][1] = {} +defs["enums"]["ImGuiTableBgTarget_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTableBgTarget_"][1]["name"] = "ImGuiTableBgTarget_None" +defs["enums"]["ImGuiTableBgTarget_"][1]["value"] = "0" +defs["enums"]["ImGuiTableBgTarget_"][2] = {} +defs["enums"]["ImGuiTableBgTarget_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTableBgTarget_"][2]["name"] = "ImGuiTableBgTarget_RowBg0" +defs["enums"]["ImGuiTableBgTarget_"][2]["value"] = "1" +defs["enums"]["ImGuiTableBgTarget_"][3] = {} +defs["enums"]["ImGuiTableBgTarget_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTableBgTarget_"][3]["name"] = "ImGuiTableBgTarget_RowBg1" +defs["enums"]["ImGuiTableBgTarget_"][3]["value"] = "2" +defs["enums"]["ImGuiTableBgTarget_"][4] = {} +defs["enums"]["ImGuiTableBgTarget_"][4]["calc_value"] = 3 +defs["enums"]["ImGuiTableBgTarget_"][4]["name"] = "ImGuiTableBgTarget_CellBg" +defs["enums"]["ImGuiTableBgTarget_"][4]["value"] = "3" +defs["enums"]["ImGuiTableColumnFlags_"] = {} +defs["enums"]["ImGuiTableColumnFlags_"][1] = {} +defs["enums"]["ImGuiTableColumnFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTableColumnFlags_"][1]["name"] = "ImGuiTableColumnFlags_None" +defs["enums"]["ImGuiTableColumnFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTableColumnFlags_"][2] = {} +defs["enums"]["ImGuiTableColumnFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTableColumnFlags_"][2]["name"] = "ImGuiTableColumnFlags_Disabled" +defs["enums"]["ImGuiTableColumnFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTableColumnFlags_"][3] = {} +defs["enums"]["ImGuiTableColumnFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTableColumnFlags_"][3]["name"] = "ImGuiTableColumnFlags_DefaultHide" +defs["enums"]["ImGuiTableColumnFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTableColumnFlags_"][4] = {} +defs["enums"]["ImGuiTableColumnFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTableColumnFlags_"][4]["name"] = "ImGuiTableColumnFlags_DefaultSort" +defs["enums"]["ImGuiTableColumnFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTableColumnFlags_"][5] = {} +defs["enums"]["ImGuiTableColumnFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTableColumnFlags_"][5]["name"] = "ImGuiTableColumnFlags_WidthStretch" +defs["enums"]["ImGuiTableColumnFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTableColumnFlags_"][6] = {} +defs["enums"]["ImGuiTableColumnFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTableColumnFlags_"][6]["name"] = "ImGuiTableColumnFlags_WidthFixed" +defs["enums"]["ImGuiTableColumnFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTableColumnFlags_"][7] = {} +defs["enums"]["ImGuiTableColumnFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTableColumnFlags_"][7]["name"] = "ImGuiTableColumnFlags_NoResize" +defs["enums"]["ImGuiTableColumnFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTableColumnFlags_"][8] = {} +defs["enums"]["ImGuiTableColumnFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTableColumnFlags_"][8]["name"] = "ImGuiTableColumnFlags_NoReorder" +defs["enums"]["ImGuiTableColumnFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTableColumnFlags_"][9] = {} +defs["enums"]["ImGuiTableColumnFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTableColumnFlags_"][9]["name"] = "ImGuiTableColumnFlags_NoHide" +defs["enums"]["ImGuiTableColumnFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTableColumnFlags_"][10] = {} +defs["enums"]["ImGuiTableColumnFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiTableColumnFlags_"][10]["name"] = "ImGuiTableColumnFlags_NoClip" +defs["enums"]["ImGuiTableColumnFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiTableColumnFlags_"][11] = {} +defs["enums"]["ImGuiTableColumnFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiTableColumnFlags_"][11]["name"] = "ImGuiTableColumnFlags_NoSort" +defs["enums"]["ImGuiTableColumnFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiTableColumnFlags_"][12] = {} +defs["enums"]["ImGuiTableColumnFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiTableColumnFlags_"][12]["name"] = "ImGuiTableColumnFlags_NoSortAscending" +defs["enums"]["ImGuiTableColumnFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiTableColumnFlags_"][13] = {} +defs["enums"]["ImGuiTableColumnFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiTableColumnFlags_"][13]["name"] = "ImGuiTableColumnFlags_NoSortDescending" +defs["enums"]["ImGuiTableColumnFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiTableColumnFlags_"][14] = {} +defs["enums"]["ImGuiTableColumnFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiTableColumnFlags_"][14]["name"] = "ImGuiTableColumnFlags_NoHeaderLabel" +defs["enums"]["ImGuiTableColumnFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiTableColumnFlags_"][15] = {} +defs["enums"]["ImGuiTableColumnFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiTableColumnFlags_"][15]["name"] = "ImGuiTableColumnFlags_NoHeaderWidth" +defs["enums"]["ImGuiTableColumnFlags_"][15]["value"] = "1 << 13" +defs["enums"]["ImGuiTableColumnFlags_"][16] = {} +defs["enums"]["ImGuiTableColumnFlags_"][16]["calc_value"] = 16384 +defs["enums"]["ImGuiTableColumnFlags_"][16]["name"] = "ImGuiTableColumnFlags_PreferSortAscending" +defs["enums"]["ImGuiTableColumnFlags_"][16]["value"] = "1 << 14" +defs["enums"]["ImGuiTableColumnFlags_"][17] = {} +defs["enums"]["ImGuiTableColumnFlags_"][17]["calc_value"] = 32768 +defs["enums"]["ImGuiTableColumnFlags_"][17]["name"] = "ImGuiTableColumnFlags_PreferSortDescending" +defs["enums"]["ImGuiTableColumnFlags_"][17]["value"] = "1 << 15" +defs["enums"]["ImGuiTableColumnFlags_"][18] = {} +defs["enums"]["ImGuiTableColumnFlags_"][18]["calc_value"] = 65536 +defs["enums"]["ImGuiTableColumnFlags_"][18]["name"] = "ImGuiTableColumnFlags_IndentEnable" +defs["enums"]["ImGuiTableColumnFlags_"][18]["value"] = "1 << 16" +defs["enums"]["ImGuiTableColumnFlags_"][19] = {} +defs["enums"]["ImGuiTableColumnFlags_"][19]["calc_value"] = 131072 +defs["enums"]["ImGuiTableColumnFlags_"][19]["name"] = "ImGuiTableColumnFlags_IndentDisable" +defs["enums"]["ImGuiTableColumnFlags_"][19]["value"] = "1 << 17" +defs["enums"]["ImGuiTableColumnFlags_"][20] = {} +defs["enums"]["ImGuiTableColumnFlags_"][20]["calc_value"] = 16777216 +defs["enums"]["ImGuiTableColumnFlags_"][20]["name"] = "ImGuiTableColumnFlags_IsEnabled" +defs["enums"]["ImGuiTableColumnFlags_"][20]["value"] = "1 << 24" +defs["enums"]["ImGuiTableColumnFlags_"][21] = {} +defs["enums"]["ImGuiTableColumnFlags_"][21]["calc_value"] = 33554432 +defs["enums"]["ImGuiTableColumnFlags_"][21]["name"] = "ImGuiTableColumnFlags_IsVisible" +defs["enums"]["ImGuiTableColumnFlags_"][21]["value"] = "1 << 25" +defs["enums"]["ImGuiTableColumnFlags_"][22] = {} +defs["enums"]["ImGuiTableColumnFlags_"][22]["calc_value"] = 67108864 +defs["enums"]["ImGuiTableColumnFlags_"][22]["name"] = "ImGuiTableColumnFlags_IsSorted" +defs["enums"]["ImGuiTableColumnFlags_"][22]["value"] = "1 << 26" +defs["enums"]["ImGuiTableColumnFlags_"][23] = {} +defs["enums"]["ImGuiTableColumnFlags_"][23]["calc_value"] = 134217728 +defs["enums"]["ImGuiTableColumnFlags_"][23]["name"] = "ImGuiTableColumnFlags_IsHovered" +defs["enums"]["ImGuiTableColumnFlags_"][23]["value"] = "1 << 27" +defs["enums"]["ImGuiTableColumnFlags_"][24] = {} +defs["enums"]["ImGuiTableColumnFlags_"][24]["calc_value"] = 24 +defs["enums"]["ImGuiTableColumnFlags_"][24]["name"] = "ImGuiTableColumnFlags_WidthMask_" +defs["enums"]["ImGuiTableColumnFlags_"][24]["value"] = "ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed" +defs["enums"]["ImGuiTableColumnFlags_"][25] = {} +defs["enums"]["ImGuiTableColumnFlags_"][25]["calc_value"] = 196608 +defs["enums"]["ImGuiTableColumnFlags_"][25]["name"] = "ImGuiTableColumnFlags_IndentMask_" +defs["enums"]["ImGuiTableColumnFlags_"][25]["value"] = "ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable" +defs["enums"]["ImGuiTableColumnFlags_"][26] = {} +defs["enums"]["ImGuiTableColumnFlags_"][26]["calc_value"] = 251658240 +defs["enums"]["ImGuiTableColumnFlags_"][26]["name"] = "ImGuiTableColumnFlags_StatusMask_" +defs["enums"]["ImGuiTableColumnFlags_"][26]["value"] = "ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered" +defs["enums"]["ImGuiTableColumnFlags_"][27] = {} +defs["enums"]["ImGuiTableColumnFlags_"][27]["calc_value"] = 1073741824 +defs["enums"]["ImGuiTableColumnFlags_"][27]["name"] = "ImGuiTableColumnFlags_NoDirectResize_" +defs["enums"]["ImGuiTableColumnFlags_"][27]["value"] = "1 << 30" +defs["enums"]["ImGuiTableFlags_"] = {} +defs["enums"]["ImGuiTableFlags_"][1] = {} +defs["enums"]["ImGuiTableFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTableFlags_"][1]["name"] = "ImGuiTableFlags_None" +defs["enums"]["ImGuiTableFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTableFlags_"][2] = {} +defs["enums"]["ImGuiTableFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTableFlags_"][2]["name"] = "ImGuiTableFlags_Resizable" +defs["enums"]["ImGuiTableFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTableFlags_"][3] = {} +defs["enums"]["ImGuiTableFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTableFlags_"][3]["name"] = "ImGuiTableFlags_Reorderable" +defs["enums"]["ImGuiTableFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTableFlags_"][4] = {} +defs["enums"]["ImGuiTableFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTableFlags_"][4]["name"] = "ImGuiTableFlags_Hideable" +defs["enums"]["ImGuiTableFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTableFlags_"][5] = {} +defs["enums"]["ImGuiTableFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTableFlags_"][5]["name"] = "ImGuiTableFlags_Sortable" +defs["enums"]["ImGuiTableFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTableFlags_"][6] = {} +defs["enums"]["ImGuiTableFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTableFlags_"][6]["name"] = "ImGuiTableFlags_NoSavedSettings" +defs["enums"]["ImGuiTableFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTableFlags_"][7] = {} +defs["enums"]["ImGuiTableFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTableFlags_"][7]["name"] = "ImGuiTableFlags_ContextMenuInBody" +defs["enums"]["ImGuiTableFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTableFlags_"][8] = {} +defs["enums"]["ImGuiTableFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTableFlags_"][8]["name"] = "ImGuiTableFlags_RowBg" +defs["enums"]["ImGuiTableFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTableFlags_"][9] = {} +defs["enums"]["ImGuiTableFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTableFlags_"][9]["name"] = "ImGuiTableFlags_BordersInnerH" +defs["enums"]["ImGuiTableFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTableFlags_"][10] = {} +defs["enums"]["ImGuiTableFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiTableFlags_"][10]["name"] = "ImGuiTableFlags_BordersOuterH" +defs["enums"]["ImGuiTableFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiTableFlags_"][11] = {} +defs["enums"]["ImGuiTableFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiTableFlags_"][11]["name"] = "ImGuiTableFlags_BordersInnerV" +defs["enums"]["ImGuiTableFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiTableFlags_"][12] = {} +defs["enums"]["ImGuiTableFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiTableFlags_"][12]["name"] = "ImGuiTableFlags_BordersOuterV" +defs["enums"]["ImGuiTableFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiTableFlags_"][13] = {} +defs["enums"]["ImGuiTableFlags_"][13]["calc_value"] = 384 +defs["enums"]["ImGuiTableFlags_"][13]["name"] = "ImGuiTableFlags_BordersH" +defs["enums"]["ImGuiTableFlags_"][13]["value"] = "ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH" +defs["enums"]["ImGuiTableFlags_"][14] = {} +defs["enums"]["ImGuiTableFlags_"][14]["calc_value"] = 1536 +defs["enums"]["ImGuiTableFlags_"][14]["name"] = "ImGuiTableFlags_BordersV" +defs["enums"]["ImGuiTableFlags_"][14]["value"] = "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV" +defs["enums"]["ImGuiTableFlags_"][15] = {} +defs["enums"]["ImGuiTableFlags_"][15]["calc_value"] = 640 +defs["enums"]["ImGuiTableFlags_"][15]["name"] = "ImGuiTableFlags_BordersInner" +defs["enums"]["ImGuiTableFlags_"][15]["value"] = "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH" +defs["enums"]["ImGuiTableFlags_"][16] = {} +defs["enums"]["ImGuiTableFlags_"][16]["calc_value"] = 1280 +defs["enums"]["ImGuiTableFlags_"][16]["name"] = "ImGuiTableFlags_BordersOuter" +defs["enums"]["ImGuiTableFlags_"][16]["value"] = "ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH" +defs["enums"]["ImGuiTableFlags_"][17] = {} +defs["enums"]["ImGuiTableFlags_"][17]["calc_value"] = 1920 +defs["enums"]["ImGuiTableFlags_"][17]["name"] = "ImGuiTableFlags_Borders" +defs["enums"]["ImGuiTableFlags_"][17]["value"] = "ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter" +defs["enums"]["ImGuiTableFlags_"][18] = {} +defs["enums"]["ImGuiTableFlags_"][18]["calc_value"] = 2048 +defs["enums"]["ImGuiTableFlags_"][18]["name"] = "ImGuiTableFlags_NoBordersInBody" +defs["enums"]["ImGuiTableFlags_"][18]["value"] = "1 << 11" +defs["enums"]["ImGuiTableFlags_"][19] = {} +defs["enums"]["ImGuiTableFlags_"][19]["calc_value"] = 4096 +defs["enums"]["ImGuiTableFlags_"][19]["name"] = "ImGuiTableFlags_NoBordersInBodyUntilResize" +defs["enums"]["ImGuiTableFlags_"][19]["value"] = "1 << 12" +defs["enums"]["ImGuiTableFlags_"][20] = {} +defs["enums"]["ImGuiTableFlags_"][20]["calc_value"] = 8192 +defs["enums"]["ImGuiTableFlags_"][20]["name"] = "ImGuiTableFlags_SizingFixedFit" +defs["enums"]["ImGuiTableFlags_"][20]["value"] = "1 << 13" +defs["enums"]["ImGuiTableFlags_"][21] = {} +defs["enums"]["ImGuiTableFlags_"][21]["calc_value"] = 16384 +defs["enums"]["ImGuiTableFlags_"][21]["name"] = "ImGuiTableFlags_SizingFixedSame" +defs["enums"]["ImGuiTableFlags_"][21]["value"] = "2 << 13" +defs["enums"]["ImGuiTableFlags_"][22] = {} +defs["enums"]["ImGuiTableFlags_"][22]["calc_value"] = 24576 +defs["enums"]["ImGuiTableFlags_"][22]["name"] = "ImGuiTableFlags_SizingStretchProp" +defs["enums"]["ImGuiTableFlags_"][22]["value"] = "3 << 13" +defs["enums"]["ImGuiTableFlags_"][23] = {} +defs["enums"]["ImGuiTableFlags_"][23]["calc_value"] = 32768 +defs["enums"]["ImGuiTableFlags_"][23]["name"] = "ImGuiTableFlags_SizingStretchSame" +defs["enums"]["ImGuiTableFlags_"][23]["value"] = "4 << 13" +defs["enums"]["ImGuiTableFlags_"][24] = {} +defs["enums"]["ImGuiTableFlags_"][24]["calc_value"] = 65536 +defs["enums"]["ImGuiTableFlags_"][24]["name"] = "ImGuiTableFlags_NoHostExtendX" +defs["enums"]["ImGuiTableFlags_"][24]["value"] = "1 << 16" +defs["enums"]["ImGuiTableFlags_"][25] = {} +defs["enums"]["ImGuiTableFlags_"][25]["calc_value"] = 131072 +defs["enums"]["ImGuiTableFlags_"][25]["name"] = "ImGuiTableFlags_NoHostExtendY" +defs["enums"]["ImGuiTableFlags_"][25]["value"] = "1 << 17" +defs["enums"]["ImGuiTableFlags_"][26] = {} +defs["enums"]["ImGuiTableFlags_"][26]["calc_value"] = 262144 +defs["enums"]["ImGuiTableFlags_"][26]["name"] = "ImGuiTableFlags_NoKeepColumnsVisible" +defs["enums"]["ImGuiTableFlags_"][26]["value"] = "1 << 18" +defs["enums"]["ImGuiTableFlags_"][27] = {} +defs["enums"]["ImGuiTableFlags_"][27]["calc_value"] = 524288 +defs["enums"]["ImGuiTableFlags_"][27]["name"] = "ImGuiTableFlags_PreciseWidths" +defs["enums"]["ImGuiTableFlags_"][27]["value"] = "1 << 19" +defs["enums"]["ImGuiTableFlags_"][28] = {} +defs["enums"]["ImGuiTableFlags_"][28]["calc_value"] = 1048576 +defs["enums"]["ImGuiTableFlags_"][28]["name"] = "ImGuiTableFlags_NoClip" +defs["enums"]["ImGuiTableFlags_"][28]["value"] = "1 << 20" +defs["enums"]["ImGuiTableFlags_"][29] = {} +defs["enums"]["ImGuiTableFlags_"][29]["calc_value"] = 2097152 +defs["enums"]["ImGuiTableFlags_"][29]["name"] = "ImGuiTableFlags_PadOuterX" +defs["enums"]["ImGuiTableFlags_"][29]["value"] = "1 << 21" +defs["enums"]["ImGuiTableFlags_"][30] = {} +defs["enums"]["ImGuiTableFlags_"][30]["calc_value"] = 4194304 +defs["enums"]["ImGuiTableFlags_"][30]["name"] = "ImGuiTableFlags_NoPadOuterX" +defs["enums"]["ImGuiTableFlags_"][30]["value"] = "1 << 22" +defs["enums"]["ImGuiTableFlags_"][31] = {} +defs["enums"]["ImGuiTableFlags_"][31]["calc_value"] = 8388608 +defs["enums"]["ImGuiTableFlags_"][31]["name"] = "ImGuiTableFlags_NoPadInnerX" +defs["enums"]["ImGuiTableFlags_"][31]["value"] = "1 << 23" +defs["enums"]["ImGuiTableFlags_"][32] = {} +defs["enums"]["ImGuiTableFlags_"][32]["calc_value"] = 16777216 +defs["enums"]["ImGuiTableFlags_"][32]["name"] = "ImGuiTableFlags_ScrollX" +defs["enums"]["ImGuiTableFlags_"][32]["value"] = "1 << 24" +defs["enums"]["ImGuiTableFlags_"][33] = {} +defs["enums"]["ImGuiTableFlags_"][33]["calc_value"] = 33554432 +defs["enums"]["ImGuiTableFlags_"][33]["name"] = "ImGuiTableFlags_ScrollY" +defs["enums"]["ImGuiTableFlags_"][33]["value"] = "1 << 25" +defs["enums"]["ImGuiTableFlags_"][34] = {} +defs["enums"]["ImGuiTableFlags_"][34]["calc_value"] = 67108864 +defs["enums"]["ImGuiTableFlags_"][34]["name"] = "ImGuiTableFlags_SortMulti" +defs["enums"]["ImGuiTableFlags_"][34]["value"] = "1 << 26" +defs["enums"]["ImGuiTableFlags_"][35] = {} +defs["enums"]["ImGuiTableFlags_"][35]["calc_value"] = 134217728 +defs["enums"]["ImGuiTableFlags_"][35]["name"] = "ImGuiTableFlags_SortTristate" +defs["enums"]["ImGuiTableFlags_"][35]["value"] = "1 << 27" +defs["enums"]["ImGuiTableFlags_"][36] = {} +defs["enums"]["ImGuiTableFlags_"][36]["calc_value"] = 57344 +defs["enums"]["ImGuiTableFlags_"][36]["name"] = "ImGuiTableFlags_SizingMask_" +defs["enums"]["ImGuiTableFlags_"][36]["value"] = "ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame" +defs["enums"]["ImGuiTableRowFlags_"] = {} +defs["enums"]["ImGuiTableRowFlags_"][1] = {} +defs["enums"]["ImGuiTableRowFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTableRowFlags_"][1]["name"] = "ImGuiTableRowFlags_None" +defs["enums"]["ImGuiTableRowFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTableRowFlags_"][2] = {} +defs["enums"]["ImGuiTableRowFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTableRowFlags_"][2]["name"] = "ImGuiTableRowFlags_Headers" +defs["enums"]["ImGuiTableRowFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTreeNodeFlags_"] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][1] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTreeNodeFlags_"][1]["name"] = "ImGuiTreeNodeFlags_None" +defs["enums"]["ImGuiTreeNodeFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTreeNodeFlags_"][2] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTreeNodeFlags_"][2]["name"] = "ImGuiTreeNodeFlags_Selected" +defs["enums"]["ImGuiTreeNodeFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTreeNodeFlags_"][3] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiTreeNodeFlags_"][3]["name"] = "ImGuiTreeNodeFlags_Framed" +defs["enums"]["ImGuiTreeNodeFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiTreeNodeFlags_"][4] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiTreeNodeFlags_"][4]["name"] = "ImGuiTreeNodeFlags_AllowItemOverlap" +defs["enums"]["ImGuiTreeNodeFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiTreeNodeFlags_"][5] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiTreeNodeFlags_"][5]["name"] = "ImGuiTreeNodeFlags_NoTreePushOnOpen" +defs["enums"]["ImGuiTreeNodeFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiTreeNodeFlags_"][6] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiTreeNodeFlags_"][6]["name"] = "ImGuiTreeNodeFlags_NoAutoOpenOnLog" +defs["enums"]["ImGuiTreeNodeFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiTreeNodeFlags_"][7] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiTreeNodeFlags_"][7]["name"] = "ImGuiTreeNodeFlags_DefaultOpen" +defs["enums"]["ImGuiTreeNodeFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiTreeNodeFlags_"][8] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiTreeNodeFlags_"][8]["name"] = "ImGuiTreeNodeFlags_OpenOnDoubleClick" +defs["enums"]["ImGuiTreeNodeFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiTreeNodeFlags_"][9] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiTreeNodeFlags_"][9]["name"] = "ImGuiTreeNodeFlags_OpenOnArrow" +defs["enums"]["ImGuiTreeNodeFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiTreeNodeFlags_"][10] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiTreeNodeFlags_"][10]["name"] = "ImGuiTreeNodeFlags_Leaf" +defs["enums"]["ImGuiTreeNodeFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiTreeNodeFlags_"][11] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiTreeNodeFlags_"][11]["name"] = "ImGuiTreeNodeFlags_Bullet" +defs["enums"]["ImGuiTreeNodeFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiTreeNodeFlags_"][12] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiTreeNodeFlags_"][12]["name"] = "ImGuiTreeNodeFlags_FramePadding" +defs["enums"]["ImGuiTreeNodeFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiTreeNodeFlags_"][13] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiTreeNodeFlags_"][13]["name"] = "ImGuiTreeNodeFlags_SpanAvailWidth" +defs["enums"]["ImGuiTreeNodeFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiTreeNodeFlags_"][14] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiTreeNodeFlags_"][14]["name"] = "ImGuiTreeNodeFlags_SpanFullWidth" +defs["enums"]["ImGuiTreeNodeFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiTreeNodeFlags_"][15] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiTreeNodeFlags_"][15]["name"] = "ImGuiTreeNodeFlags_NavLeftJumpsBackHere" +defs["enums"]["ImGuiTreeNodeFlags_"][15]["value"] = "1 << 13" +defs["enums"]["ImGuiTreeNodeFlags_"][16] = {} +defs["enums"]["ImGuiTreeNodeFlags_"][16]["calc_value"] = 26 +defs["enums"]["ImGuiTreeNodeFlags_"][16]["name"] = "ImGuiTreeNodeFlags_CollapsingHeader" +defs["enums"]["ImGuiTreeNodeFlags_"][16]["value"] = "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog" +defs["enums"]["ImGuiViewportFlags_"] = {} +defs["enums"]["ImGuiViewportFlags_"][1] = {} +defs["enums"]["ImGuiViewportFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiViewportFlags_"][1]["name"] = "ImGuiViewportFlags_None" +defs["enums"]["ImGuiViewportFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiViewportFlags_"][2] = {} +defs["enums"]["ImGuiViewportFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiViewportFlags_"][2]["name"] = "ImGuiViewportFlags_IsPlatformWindow" +defs["enums"]["ImGuiViewportFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiViewportFlags_"][3] = {} +defs["enums"]["ImGuiViewportFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiViewportFlags_"][3]["name"] = "ImGuiViewportFlags_IsPlatformMonitor" +defs["enums"]["ImGuiViewportFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiViewportFlags_"][4] = {} +defs["enums"]["ImGuiViewportFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiViewportFlags_"][4]["name"] = "ImGuiViewportFlags_OwnedByApp" +defs["enums"]["ImGuiViewportFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiWindowFlags_"] = {} +defs["enums"]["ImGuiWindowFlags_"][1] = {} +defs["enums"]["ImGuiWindowFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiWindowFlags_"][1]["name"] = "ImGuiWindowFlags_None" +defs["enums"]["ImGuiWindowFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiWindowFlags_"][2] = {} +defs["enums"]["ImGuiWindowFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiWindowFlags_"][2]["name"] = "ImGuiWindowFlags_NoTitleBar" +defs["enums"]["ImGuiWindowFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiWindowFlags_"][3] = {} +defs["enums"]["ImGuiWindowFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiWindowFlags_"][3]["name"] = "ImGuiWindowFlags_NoResize" +defs["enums"]["ImGuiWindowFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiWindowFlags_"][4] = {} +defs["enums"]["ImGuiWindowFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiWindowFlags_"][4]["name"] = "ImGuiWindowFlags_NoMove" +defs["enums"]["ImGuiWindowFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiWindowFlags_"][5] = {} +defs["enums"]["ImGuiWindowFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiWindowFlags_"][5]["name"] = "ImGuiWindowFlags_NoScrollbar" +defs["enums"]["ImGuiWindowFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiWindowFlags_"][6] = {} +defs["enums"]["ImGuiWindowFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiWindowFlags_"][6]["name"] = "ImGuiWindowFlags_NoScrollWithMouse" +defs["enums"]["ImGuiWindowFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiWindowFlags_"][7] = {} +defs["enums"]["ImGuiWindowFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiWindowFlags_"][7]["name"] = "ImGuiWindowFlags_NoCollapse" +defs["enums"]["ImGuiWindowFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiWindowFlags_"][8] = {} +defs["enums"]["ImGuiWindowFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiWindowFlags_"][8]["name"] = "ImGuiWindowFlags_AlwaysAutoResize" +defs["enums"]["ImGuiWindowFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiWindowFlags_"][9] = {} +defs["enums"]["ImGuiWindowFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiWindowFlags_"][9]["name"] = "ImGuiWindowFlags_NoBackground" +defs["enums"]["ImGuiWindowFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiWindowFlags_"][10] = {} +defs["enums"]["ImGuiWindowFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiWindowFlags_"][10]["name"] = "ImGuiWindowFlags_NoSavedSettings" +defs["enums"]["ImGuiWindowFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiWindowFlags_"][11] = {} +defs["enums"]["ImGuiWindowFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiWindowFlags_"][11]["name"] = "ImGuiWindowFlags_NoMouseInputs" +defs["enums"]["ImGuiWindowFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiWindowFlags_"][12] = {} +defs["enums"]["ImGuiWindowFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiWindowFlags_"][12]["name"] = "ImGuiWindowFlags_MenuBar" +defs["enums"]["ImGuiWindowFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiWindowFlags_"][13] = {} +defs["enums"]["ImGuiWindowFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiWindowFlags_"][13]["name"] = "ImGuiWindowFlags_HorizontalScrollbar" +defs["enums"]["ImGuiWindowFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiWindowFlags_"][14] = {} +defs["enums"]["ImGuiWindowFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiWindowFlags_"][14]["name"] = "ImGuiWindowFlags_NoFocusOnAppearing" +defs["enums"]["ImGuiWindowFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiWindowFlags_"][15] = {} +defs["enums"]["ImGuiWindowFlags_"][15]["calc_value"] = 8192 +defs["enums"]["ImGuiWindowFlags_"][15]["name"] = "ImGuiWindowFlags_NoBringToFrontOnFocus" +defs["enums"]["ImGuiWindowFlags_"][15]["value"] = "1 << 13" +defs["enums"]["ImGuiWindowFlags_"][16] = {} +defs["enums"]["ImGuiWindowFlags_"][16]["calc_value"] = 16384 +defs["enums"]["ImGuiWindowFlags_"][16]["name"] = "ImGuiWindowFlags_AlwaysVerticalScrollbar" +defs["enums"]["ImGuiWindowFlags_"][16]["value"] = "1 << 14" +defs["enums"]["ImGuiWindowFlags_"][17] = {} +defs["enums"]["ImGuiWindowFlags_"][17]["calc_value"] = 32768 +defs["enums"]["ImGuiWindowFlags_"][17]["name"] = "ImGuiWindowFlags_AlwaysHorizontalScrollbar" +defs["enums"]["ImGuiWindowFlags_"][17]["value"] = "1<< 15" +defs["enums"]["ImGuiWindowFlags_"][18] = {} +defs["enums"]["ImGuiWindowFlags_"][18]["calc_value"] = 65536 +defs["enums"]["ImGuiWindowFlags_"][18]["name"] = "ImGuiWindowFlags_AlwaysUseWindowPadding" +defs["enums"]["ImGuiWindowFlags_"][18]["value"] = "1 << 16" +defs["enums"]["ImGuiWindowFlags_"][19] = {} +defs["enums"]["ImGuiWindowFlags_"][19]["calc_value"] = 262144 +defs["enums"]["ImGuiWindowFlags_"][19]["name"] = "ImGuiWindowFlags_NoNavInputs" +defs["enums"]["ImGuiWindowFlags_"][19]["value"] = "1 << 18" +defs["enums"]["ImGuiWindowFlags_"][20] = {} +defs["enums"]["ImGuiWindowFlags_"][20]["calc_value"] = 524288 +defs["enums"]["ImGuiWindowFlags_"][20]["name"] = "ImGuiWindowFlags_NoNavFocus" +defs["enums"]["ImGuiWindowFlags_"][20]["value"] = "1 << 19" +defs["enums"]["ImGuiWindowFlags_"][21] = {} +defs["enums"]["ImGuiWindowFlags_"][21]["calc_value"] = 1048576 +defs["enums"]["ImGuiWindowFlags_"][21]["name"] = "ImGuiWindowFlags_UnsavedDocument" +defs["enums"]["ImGuiWindowFlags_"][21]["value"] = "1 << 20" +defs["enums"]["ImGuiWindowFlags_"][22] = {} +defs["enums"]["ImGuiWindowFlags_"][22]["calc_value"] = 786432 +defs["enums"]["ImGuiWindowFlags_"][22]["name"] = "ImGuiWindowFlags_NoNav" +defs["enums"]["ImGuiWindowFlags_"][22]["value"] = "ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" +defs["enums"]["ImGuiWindowFlags_"][23] = {} +defs["enums"]["ImGuiWindowFlags_"][23]["calc_value"] = 43 +defs["enums"]["ImGuiWindowFlags_"][23]["name"] = "ImGuiWindowFlags_NoDecoration" +defs["enums"]["ImGuiWindowFlags_"][23]["value"] = "ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse" +defs["enums"]["ImGuiWindowFlags_"][24] = {} +defs["enums"]["ImGuiWindowFlags_"][24]["calc_value"] = 786944 +defs["enums"]["ImGuiWindowFlags_"][24]["name"] = "ImGuiWindowFlags_NoInputs" +defs["enums"]["ImGuiWindowFlags_"][24]["value"] = "ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" +defs["enums"]["ImGuiWindowFlags_"][25] = {} +defs["enums"]["ImGuiWindowFlags_"][25]["calc_value"] = 8388608 +defs["enums"]["ImGuiWindowFlags_"][25]["name"] = "ImGuiWindowFlags_NavFlattened" +defs["enums"]["ImGuiWindowFlags_"][25]["value"] = "1 << 23" +defs["enums"]["ImGuiWindowFlags_"][26] = {} +defs["enums"]["ImGuiWindowFlags_"][26]["calc_value"] = 16777216 +defs["enums"]["ImGuiWindowFlags_"][26]["name"] = "ImGuiWindowFlags_ChildWindow" +defs["enums"]["ImGuiWindowFlags_"][26]["value"] = "1 << 24" +defs["enums"]["ImGuiWindowFlags_"][27] = {} +defs["enums"]["ImGuiWindowFlags_"][27]["calc_value"] = 33554432 +defs["enums"]["ImGuiWindowFlags_"][27]["name"] = "ImGuiWindowFlags_Tooltip" +defs["enums"]["ImGuiWindowFlags_"][27]["value"] = "1 << 25" +defs["enums"]["ImGuiWindowFlags_"][28] = {} +defs["enums"]["ImGuiWindowFlags_"][28]["calc_value"] = 67108864 +defs["enums"]["ImGuiWindowFlags_"][28]["name"] = "ImGuiWindowFlags_Popup" +defs["enums"]["ImGuiWindowFlags_"][28]["value"] = "1 << 26" +defs["enums"]["ImGuiWindowFlags_"][29] = {} +defs["enums"]["ImGuiWindowFlags_"][29]["calc_value"] = 134217728 +defs["enums"]["ImGuiWindowFlags_"][29]["name"] = "ImGuiWindowFlags_Modal" +defs["enums"]["ImGuiWindowFlags_"][29]["value"] = "1 << 27" +defs["enums"]["ImGuiWindowFlags_"][30] = {} +defs["enums"]["ImGuiWindowFlags_"][30]["calc_value"] = 268435456 +defs["enums"]["ImGuiWindowFlags_"][30]["name"] = "ImGuiWindowFlags_ChildMenu" +defs["enums"]["ImGuiWindowFlags_"][30]["value"] = "1 << 28" +defs["enumtypes"] = {} +defs["enumtypes"]["ImGuiKey"] = "int" +defs["locations"] = {} +defs["locations"]["ImColor"] = "imgui:2346" +defs["locations"]["ImDrawChannel"] = "imgui:2436" +defs["locations"]["ImDrawCmd"] = "imgui:2395" +defs["locations"]["ImDrawCmdHeader"] = "imgui:2428" +defs["locations"]["ImDrawData"] = "imgui:2628" +defs["locations"]["ImDrawFlags_"] = "imgui:2462" +defs["locations"]["ImDrawList"] = "imgui:2500" +defs["locations"]["ImDrawListFlags_"] = "imgui:2482" +defs["locations"]["ImDrawListSplitter"] = "imgui:2445" +defs["locations"]["ImDrawVert"] = "imgui:2413" +defs["locations"]["ImFont"] = "imgui:2846" +defs["locations"]["ImFontAtlas"] = "imgui:2744" +defs["locations"]["ImFontAtlasCustomRect"] = "imgui:2706" +defs["locations"]["ImFontAtlasFlags_"] = "imgui:2719" +defs["locations"]["ImFontConfig"] = "imgui:2650" +defs["locations"]["ImFontGlyph"] = "imgui:2679" +defs["locations"]["ImFontGlyphRangesBuilder"] = "imgui:2691" +defs["locations"]["ImGuiBackendFlags_"] = "imgui:1510" +defs["locations"]["ImGuiButtonFlags_"] = "imgui:1617" +defs["locations"]["ImGuiCol_"] = "imgui:1520" +defs["locations"]["ImGuiColorEditFlags_"] = "imgui:1630" +defs["locations"]["ImGuiComboFlags_"] = "imgui:1079" +defs["locations"]["ImGuiCond_"] = "imgui:1721" +defs["locations"]["ImGuiConfigFlags_"] = "imgui:1494" +defs["locations"]["ImGuiDataType_"] = "imgui:1316" +defs["locations"]["ImGuiDir_"] = "imgui:1332" +defs["locations"]["ImGuiDragDropFlags_"] = "imgui:1294" +defs["locations"]["ImGuiFocusedFlags_"] = "imgui:1256" +defs["locations"]["ImGuiFreeTypeBuilderFlags"] = "imgui_freetype:19" +defs["locations"]["ImGuiHoveredFlags_"] = "imgui:1270" +defs["locations"]["ImGuiIO"] = "imgui:1898" +defs["locations"]["ImGuiInputTextCallbackData"] = "imgui:2071" +defs["locations"]["ImGuiInputTextFlags_"] = "imgui:991" +defs["locations"]["ImGuiKey"] = "imgui:1353" +defs["locations"]["ImGuiKeyData"] = "imgui:1890" +defs["locations"]["ImGuiListClipper"] = "imgui:2295" +defs["locations"]["ImGuiMouseButton_"] = "imgui:1693" +defs["locations"]["ImGuiMouseCursor_"] = "imgui:1703" +defs["locations"]["ImGuiNavInput"] = "imgui:1485" +defs["locations"]["ImGuiOnceUponAFrame"] = "imgui:2170" +defs["locations"]["ImGuiPayload"] = "imgui:2111" +defs["locations"]["ImGuiPlatformImeData"] = "imgui:2940" +defs["locations"]["ImGuiPopupFlags_"] = "imgui:1052" +defs["locations"]["ImGuiSelectableFlags_"] = "imgui:1068" +defs["locations"]["ImGuiSizeCallbackData"] = "imgui:2102" +defs["locations"]["ImGuiSliderFlags_"] = "imgui:1676" +defs["locations"]["ImGuiSortDirection_"] = "imgui:1343" +defs["locations"]["ImGuiStorage"] = "imgui:2232" +defs["locations"]["ImGuiStoragePair"] = "imgui:2235" +defs["locations"]["ImGuiStyle"] = "imgui:1833" +defs["locations"]["ImGuiStyleVar_"] = "imgui:1585" +defs["locations"]["ImGuiTabBarFlags_"] = "imgui:1093" +defs["locations"]["ImGuiTabItemFlags_"] = "imgui:1109" +defs["locations"]["ImGuiTableBgTarget_"] = "imgui:1247" +defs["locations"]["ImGuiTableColumnFlags_"] = "imgui:1195" +defs["locations"]["ImGuiTableColumnSortSpecs"] = "imgui:2133" +defs["locations"]["ImGuiTableFlags_"] = "imgui:1144" +defs["locations"]["ImGuiTableRowFlags_"] = "imgui:1232" +defs["locations"]["ImGuiTableSortSpecs"] = "imgui:2147" +defs["locations"]["ImGuiTextBuffer"] = "imgui:2205" +defs["locations"]["ImGuiTextFilter"] = "imgui:2178" +defs["locations"]["ImGuiTextRange"] = "imgui:2188" +defs["locations"]["ImGuiTreeNodeFlags_"] = "imgui:1023" +defs["locations"]["ImGuiViewport"] = "imgui:2917" +defs["locations"]["ImGuiViewportFlags_"] = "imgui:2902" +defs["locations"]["ImGuiWindowFlags_"] = "imgui:953" +defs["locations"]["ImVec2"] = "imgui:253" +defs["locations"]["ImVec4"] = "imgui:266" +defs["structs"] = {} +defs["structs"]["ImColor"] = {} +defs["structs"]["ImColor"][1] = {} +defs["structs"]["ImColor"][1]["name"] = "Value" +defs["structs"]["ImColor"][1]["type"] = "ImVec4" +defs["structs"]["ImDrawChannel"] = {} +defs["structs"]["ImDrawChannel"][1] = {} +defs["structs"]["ImDrawChannel"][1]["name"] = "_CmdBuffer" +defs["structs"]["ImDrawChannel"][1]["template_type"] = "ImDrawCmd" +defs["structs"]["ImDrawChannel"][1]["type"] = "ImVector_ImDrawCmd" +defs["structs"]["ImDrawChannel"][2] = {} +defs["structs"]["ImDrawChannel"][2]["name"] = "_IdxBuffer" +defs["structs"]["ImDrawChannel"][2]["template_type"] = "ImDrawIdx" +defs["structs"]["ImDrawChannel"][2]["type"] = "ImVector_ImDrawIdx" +defs["structs"]["ImDrawCmd"] = {} +defs["structs"]["ImDrawCmd"][1] = {} +defs["structs"]["ImDrawCmd"][1]["name"] = "ClipRect" +defs["structs"]["ImDrawCmd"][1]["type"] = "ImVec4" +defs["structs"]["ImDrawCmd"][2] = {} +defs["structs"]["ImDrawCmd"][2]["name"] = "TextureId" +defs["structs"]["ImDrawCmd"][2]["type"] = "ImTextureID" +defs["structs"]["ImDrawCmd"][3] = {} +defs["structs"]["ImDrawCmd"][3]["name"] = "VtxOffset" +defs["structs"]["ImDrawCmd"][3]["type"] = "unsigned int" +defs["structs"]["ImDrawCmd"][4] = {} +defs["structs"]["ImDrawCmd"][4]["name"] = "IdxOffset" +defs["structs"]["ImDrawCmd"][4]["type"] = "unsigned int" +defs["structs"]["ImDrawCmd"][5] = {} +defs["structs"]["ImDrawCmd"][5]["name"] = "ElemCount" +defs["structs"]["ImDrawCmd"][5]["type"] = "unsigned int" +defs["structs"]["ImDrawCmd"][6] = {} +defs["structs"]["ImDrawCmd"][6]["name"] = "UserCallback" +defs["structs"]["ImDrawCmd"][6]["type"] = "ImDrawCallback" +defs["structs"]["ImDrawCmd"][7] = {} +defs["structs"]["ImDrawCmd"][7]["name"] = "UserCallbackData" +defs["structs"]["ImDrawCmd"][7]["type"] = "void*" +defs["structs"]["ImDrawCmdHeader"] = {} +defs["structs"]["ImDrawCmdHeader"][1] = {} +defs["structs"]["ImDrawCmdHeader"][1]["name"] = "ClipRect" +defs["structs"]["ImDrawCmdHeader"][1]["type"] = "ImVec4" +defs["structs"]["ImDrawCmdHeader"][2] = {} +defs["structs"]["ImDrawCmdHeader"][2]["name"] = "TextureId" +defs["structs"]["ImDrawCmdHeader"][2]["type"] = "ImTextureID" +defs["structs"]["ImDrawCmdHeader"][3] = {} +defs["structs"]["ImDrawCmdHeader"][3]["name"] = "VtxOffset" +defs["structs"]["ImDrawCmdHeader"][3]["type"] = "unsigned int" +defs["structs"]["ImDrawData"] = {} +defs["structs"]["ImDrawData"][1] = {} +defs["structs"]["ImDrawData"][1]["name"] = "Valid" +defs["structs"]["ImDrawData"][1]["type"] = "bool" +defs["structs"]["ImDrawData"][2] = {} +defs["structs"]["ImDrawData"][2]["name"] = "CmdListsCount" +defs["structs"]["ImDrawData"][2]["type"] = "int" +defs["structs"]["ImDrawData"][3] = {} +defs["structs"]["ImDrawData"][3]["name"] = "TotalIdxCount" +defs["structs"]["ImDrawData"][3]["type"] = "int" +defs["structs"]["ImDrawData"][4] = {} +defs["structs"]["ImDrawData"][4]["name"] = "TotalVtxCount" +defs["structs"]["ImDrawData"][4]["type"] = "int" +defs["structs"]["ImDrawData"][5] = {} +defs["structs"]["ImDrawData"][5]["name"] = "CmdLists" +defs["structs"]["ImDrawData"][5]["type"] = "ImDrawList**" +defs["structs"]["ImDrawData"][6] = {} +defs["structs"]["ImDrawData"][6]["name"] = "DisplayPos" +defs["structs"]["ImDrawData"][6]["type"] = "ImVec2" +defs["structs"]["ImDrawData"][7] = {} +defs["structs"]["ImDrawData"][7]["name"] = "DisplaySize" +defs["structs"]["ImDrawData"][7]["type"] = "ImVec2" +defs["structs"]["ImDrawData"][8] = {} +defs["structs"]["ImDrawData"][8]["name"] = "FramebufferScale" +defs["structs"]["ImDrawData"][8]["type"] = "ImVec2" +defs["structs"]["ImDrawList"] = {} +defs["structs"]["ImDrawList"][1] = {} +defs["structs"]["ImDrawList"][1]["name"] = "CmdBuffer" +defs["structs"]["ImDrawList"][1]["template_type"] = "ImDrawCmd" +defs["structs"]["ImDrawList"][1]["type"] = "ImVector_ImDrawCmd" +defs["structs"]["ImDrawList"][2] = {} +defs["structs"]["ImDrawList"][2]["name"] = "IdxBuffer" +defs["structs"]["ImDrawList"][2]["template_type"] = "ImDrawIdx" +defs["structs"]["ImDrawList"][2]["type"] = "ImVector_ImDrawIdx" +defs["structs"]["ImDrawList"][3] = {} +defs["structs"]["ImDrawList"][3]["name"] = "VtxBuffer" +defs["structs"]["ImDrawList"][3]["template_type"] = "ImDrawVert" +defs["structs"]["ImDrawList"][3]["type"] = "ImVector_ImDrawVert" +defs["structs"]["ImDrawList"][4] = {} +defs["structs"]["ImDrawList"][4]["name"] = "Flags" +defs["structs"]["ImDrawList"][4]["type"] = "ImDrawListFlags" +defs["structs"]["ImDrawList"][5] = {} +defs["structs"]["ImDrawList"][5]["name"] = "_VtxCurrentIdx" +defs["structs"]["ImDrawList"][5]["type"] = "unsigned int" +defs["structs"]["ImDrawList"][6] = {} +defs["structs"]["ImDrawList"][6]["name"] = "_Data" +defs["structs"]["ImDrawList"][6]["type"] = "ImDrawListSharedData*" +defs["structs"]["ImDrawList"][7] = {} +defs["structs"]["ImDrawList"][7]["name"] = "_OwnerName" +defs["structs"]["ImDrawList"][7]["type"] = "const char*" +defs["structs"]["ImDrawList"][8] = {} +defs["structs"]["ImDrawList"][8]["name"] = "_VtxWritePtr" +defs["structs"]["ImDrawList"][8]["type"] = "ImDrawVert*" +defs["structs"]["ImDrawList"][9] = {} +defs["structs"]["ImDrawList"][9]["name"] = "_IdxWritePtr" +defs["structs"]["ImDrawList"][9]["type"] = "ImDrawIdx*" +defs["structs"]["ImDrawList"][10] = {} +defs["structs"]["ImDrawList"][10]["name"] = "_ClipRectStack" +defs["structs"]["ImDrawList"][10]["template_type"] = "ImVec4" +defs["structs"]["ImDrawList"][10]["type"] = "ImVector_ImVec4" +defs["structs"]["ImDrawList"][11] = {} +defs["structs"]["ImDrawList"][11]["name"] = "_TextureIdStack" +defs["structs"]["ImDrawList"][11]["template_type"] = "ImTextureID" +defs["structs"]["ImDrawList"][11]["type"] = "ImVector_ImTextureID" +defs["structs"]["ImDrawList"][12] = {} +defs["structs"]["ImDrawList"][12]["name"] = "_Path" +defs["structs"]["ImDrawList"][12]["template_type"] = "ImVec2" +defs["structs"]["ImDrawList"][12]["type"] = "ImVector_ImVec2" +defs["structs"]["ImDrawList"][13] = {} +defs["structs"]["ImDrawList"][13]["name"] = "_CmdHeader" +defs["structs"]["ImDrawList"][13]["type"] = "ImDrawCmdHeader" +defs["structs"]["ImDrawList"][14] = {} +defs["structs"]["ImDrawList"][14]["name"] = "_Splitter" +defs["structs"]["ImDrawList"][14]["type"] = "ImDrawListSplitter" +defs["structs"]["ImDrawList"][15] = {} +defs["structs"]["ImDrawList"][15]["name"] = "_FringeScale" +defs["structs"]["ImDrawList"][15]["type"] = "float" +defs["structs"]["ImDrawListSplitter"] = {} +defs["structs"]["ImDrawListSplitter"][1] = {} +defs["structs"]["ImDrawListSplitter"][1]["name"] = "_Current" +defs["structs"]["ImDrawListSplitter"][1]["type"] = "int" +defs["structs"]["ImDrawListSplitter"][2] = {} +defs["structs"]["ImDrawListSplitter"][2]["name"] = "_Count" +defs["structs"]["ImDrawListSplitter"][2]["type"] = "int" +defs["structs"]["ImDrawListSplitter"][3] = {} +defs["structs"]["ImDrawListSplitter"][3]["name"] = "_Channels" +defs["structs"]["ImDrawListSplitter"][3]["template_type"] = "ImDrawChannel" +defs["structs"]["ImDrawListSplitter"][3]["type"] = "ImVector_ImDrawChannel" +defs["structs"]["ImDrawVert"] = {} +defs["structs"]["ImDrawVert"][1] = {} +defs["structs"]["ImDrawVert"][1]["name"] = "pos" +defs["structs"]["ImDrawVert"][1]["type"] = "ImVec2" +defs["structs"]["ImDrawVert"][2] = {} +defs["structs"]["ImDrawVert"][2]["name"] = "uv" +defs["structs"]["ImDrawVert"][2]["type"] = "ImVec2" +defs["structs"]["ImDrawVert"][3] = {} +defs["structs"]["ImDrawVert"][3]["name"] = "col" +defs["structs"]["ImDrawVert"][3]["type"] = "ImU32" +defs["structs"]["ImFont"] = {} +defs["structs"]["ImFont"][1] = {} +defs["structs"]["ImFont"][1]["name"] = "IndexAdvanceX" +defs["structs"]["ImFont"][1]["template_type"] = "float" +defs["structs"]["ImFont"][1]["type"] = "ImVector_float" +defs["structs"]["ImFont"][2] = {} +defs["structs"]["ImFont"][2]["name"] = "FallbackAdvanceX" +defs["structs"]["ImFont"][2]["type"] = "float" +defs["structs"]["ImFont"][3] = {} +defs["structs"]["ImFont"][3]["name"] = "FontSize" +defs["structs"]["ImFont"][3]["type"] = "float" +defs["structs"]["ImFont"][4] = {} +defs["structs"]["ImFont"][4]["name"] = "IndexLookup" +defs["structs"]["ImFont"][4]["template_type"] = "ImWchar" +defs["structs"]["ImFont"][4]["type"] = "ImVector_ImWchar" +defs["structs"]["ImFont"][5] = {} +defs["structs"]["ImFont"][5]["name"] = "Glyphs" +defs["structs"]["ImFont"][5]["template_type"] = "ImFontGlyph" +defs["structs"]["ImFont"][5]["type"] = "ImVector_ImFontGlyph" +defs["structs"]["ImFont"][6] = {} +defs["structs"]["ImFont"][6]["name"] = "FallbackGlyph" +defs["structs"]["ImFont"][6]["type"] = "const ImFontGlyph*" +defs["structs"]["ImFont"][7] = {} +defs["structs"]["ImFont"][7]["name"] = "ContainerAtlas" +defs["structs"]["ImFont"][7]["type"] = "ImFontAtlas*" +defs["structs"]["ImFont"][8] = {} +defs["structs"]["ImFont"][8]["name"] = "ConfigData" +defs["structs"]["ImFont"][8]["type"] = "const ImFontConfig*" +defs["structs"]["ImFont"][9] = {} +defs["structs"]["ImFont"][9]["name"] = "ConfigDataCount" +defs["structs"]["ImFont"][9]["type"] = "short" +defs["structs"]["ImFont"][10] = {} +defs["structs"]["ImFont"][10]["name"] = "FallbackChar" +defs["structs"]["ImFont"][10]["type"] = "ImWchar" +defs["structs"]["ImFont"][11] = {} +defs["structs"]["ImFont"][11]["name"] = "EllipsisChar" +defs["structs"]["ImFont"][11]["type"] = "ImWchar" +defs["structs"]["ImFont"][12] = {} +defs["structs"]["ImFont"][12]["name"] = "DotChar" +defs["structs"]["ImFont"][12]["type"] = "ImWchar" +defs["structs"]["ImFont"][13] = {} +defs["structs"]["ImFont"][13]["name"] = "DirtyLookupTables" +defs["structs"]["ImFont"][13]["type"] = "bool" +defs["structs"]["ImFont"][14] = {} +defs["structs"]["ImFont"][14]["name"] = "Scale" +defs["structs"]["ImFont"][14]["type"] = "float" +defs["structs"]["ImFont"][15] = {} +defs["structs"]["ImFont"][15]["name"] = "Ascent" +defs["structs"]["ImFont"][15]["type"] = "float" +defs["structs"]["ImFont"][16] = {} +defs["structs"]["ImFont"][16]["name"] = "Descent" +defs["structs"]["ImFont"][16]["type"] = "float" +defs["structs"]["ImFont"][17] = {} +defs["structs"]["ImFont"][17]["name"] = "MetricsTotalSurface" +defs["structs"]["ImFont"][17]["type"] = "int" +defs["structs"]["ImFont"][18] = {} +defs["structs"]["ImFont"][18]["name"] = "Used4kPagesMap[(0x10FFFF+1)/4096/8]" +defs["structs"]["ImFont"][18]["size"] = 34 +defs["structs"]["ImFont"][18]["type"] = "ImU8" +defs["structs"]["ImFontAtlas"] = {} +defs["structs"]["ImFontAtlas"][1] = {} +defs["structs"]["ImFontAtlas"][1]["name"] = "Flags" +defs["structs"]["ImFontAtlas"][1]["type"] = "ImFontAtlasFlags" +defs["structs"]["ImFontAtlas"][2] = {} +defs["structs"]["ImFontAtlas"][2]["name"] = "TexID" +defs["structs"]["ImFontAtlas"][2]["type"] = "ImTextureID" +defs["structs"]["ImFontAtlas"][3] = {} +defs["structs"]["ImFontAtlas"][3]["name"] = "TexDesiredWidth" +defs["structs"]["ImFontAtlas"][3]["type"] = "int" +defs["structs"]["ImFontAtlas"][4] = {} +defs["structs"]["ImFontAtlas"][4]["name"] = "TexGlyphPadding" +defs["structs"]["ImFontAtlas"][4]["type"] = "int" +defs["structs"]["ImFontAtlas"][5] = {} +defs["structs"]["ImFontAtlas"][5]["name"] = "Locked" +defs["structs"]["ImFontAtlas"][5]["type"] = "bool" +defs["structs"]["ImFontAtlas"][6] = {} +defs["structs"]["ImFontAtlas"][6]["name"] = "TexReady" +defs["structs"]["ImFontAtlas"][6]["type"] = "bool" +defs["structs"]["ImFontAtlas"][7] = {} +defs["structs"]["ImFontAtlas"][7]["name"] = "TexPixelsUseColors" +defs["structs"]["ImFontAtlas"][7]["type"] = "bool" +defs["structs"]["ImFontAtlas"][8] = {} +defs["structs"]["ImFontAtlas"][8]["name"] = "TexPixelsAlpha8" +defs["structs"]["ImFontAtlas"][8]["type"] = "unsigned char*" +defs["structs"]["ImFontAtlas"][9] = {} +defs["structs"]["ImFontAtlas"][9]["name"] = "TexPixelsRGBA32" +defs["structs"]["ImFontAtlas"][9]["type"] = "unsigned int*" +defs["structs"]["ImFontAtlas"][10] = {} +defs["structs"]["ImFontAtlas"][10]["name"] = "TexWidth" +defs["structs"]["ImFontAtlas"][10]["type"] = "int" +defs["structs"]["ImFontAtlas"][11] = {} +defs["structs"]["ImFontAtlas"][11]["name"] = "TexHeight" +defs["structs"]["ImFontAtlas"][11]["type"] = "int" +defs["structs"]["ImFontAtlas"][12] = {} +defs["structs"]["ImFontAtlas"][12]["name"] = "TexUvScale" +defs["structs"]["ImFontAtlas"][12]["type"] = "ImVec2" +defs["structs"]["ImFontAtlas"][13] = {} +defs["structs"]["ImFontAtlas"][13]["name"] = "TexUvWhitePixel" +defs["structs"]["ImFontAtlas"][13]["type"] = "ImVec2" +defs["structs"]["ImFontAtlas"][14] = {} +defs["structs"]["ImFontAtlas"][14]["name"] = "Fonts" +defs["structs"]["ImFontAtlas"][14]["template_type"] = "ImFont*" +defs["structs"]["ImFontAtlas"][14]["type"] = "ImVector_ImFontPtr" +defs["structs"]["ImFontAtlas"][15] = {} +defs["structs"]["ImFontAtlas"][15]["name"] = "CustomRects" +defs["structs"]["ImFontAtlas"][15]["template_type"] = "ImFontAtlasCustomRect" +defs["structs"]["ImFontAtlas"][15]["type"] = "ImVector_ImFontAtlasCustomRect" +defs["structs"]["ImFontAtlas"][16] = {} +defs["structs"]["ImFontAtlas"][16]["name"] = "ConfigData" +defs["structs"]["ImFontAtlas"][16]["template_type"] = "ImFontConfig" +defs["structs"]["ImFontAtlas"][16]["type"] = "ImVector_ImFontConfig" +defs["structs"]["ImFontAtlas"][17] = {} +defs["structs"]["ImFontAtlas"][17]["name"] = "TexUvLines[(63)+1]" +defs["structs"]["ImFontAtlas"][17]["size"] = 64 +defs["structs"]["ImFontAtlas"][17]["type"] = "ImVec4" +defs["structs"]["ImFontAtlas"][18] = {} +defs["structs"]["ImFontAtlas"][18]["name"] = "FontBuilderIO" +defs["structs"]["ImFontAtlas"][18]["type"] = "const ImFontBuilderIO*" +defs["structs"]["ImFontAtlas"][19] = {} +defs["structs"]["ImFontAtlas"][19]["name"] = "FontBuilderFlags" +defs["structs"]["ImFontAtlas"][19]["type"] = "unsigned int" +defs["structs"]["ImFontAtlas"][20] = {} +defs["structs"]["ImFontAtlas"][20]["name"] = "PackIdMouseCursors" +defs["structs"]["ImFontAtlas"][20]["type"] = "int" +defs["structs"]["ImFontAtlas"][21] = {} +defs["structs"]["ImFontAtlas"][21]["name"] = "PackIdLines" +defs["structs"]["ImFontAtlas"][21]["type"] = "int" +defs["structs"]["ImFontAtlasCustomRect"] = {} +defs["structs"]["ImFontAtlasCustomRect"][1] = {} +defs["structs"]["ImFontAtlasCustomRect"][1]["name"] = "Width" +defs["structs"]["ImFontAtlasCustomRect"][1]["type"] = "unsigned short" +defs["structs"]["ImFontAtlasCustomRect"][2] = {} +defs["structs"]["ImFontAtlasCustomRect"][2]["name"] = "Height" +defs["structs"]["ImFontAtlasCustomRect"][2]["type"] = "unsigned short" +defs["structs"]["ImFontAtlasCustomRect"][3] = {} +defs["structs"]["ImFontAtlasCustomRect"][3]["name"] = "X" +defs["structs"]["ImFontAtlasCustomRect"][3]["type"] = "unsigned short" +defs["structs"]["ImFontAtlasCustomRect"][4] = {} +defs["structs"]["ImFontAtlasCustomRect"][4]["name"] = "Y" +defs["structs"]["ImFontAtlasCustomRect"][4]["type"] = "unsigned short" +defs["structs"]["ImFontAtlasCustomRect"][5] = {} +defs["structs"]["ImFontAtlasCustomRect"][5]["name"] = "GlyphID" +defs["structs"]["ImFontAtlasCustomRect"][5]["type"] = "unsigned int" +defs["structs"]["ImFontAtlasCustomRect"][6] = {} +defs["structs"]["ImFontAtlasCustomRect"][6]["name"] = "GlyphAdvanceX" +defs["structs"]["ImFontAtlasCustomRect"][6]["type"] = "float" +defs["structs"]["ImFontAtlasCustomRect"][7] = {} +defs["structs"]["ImFontAtlasCustomRect"][7]["name"] = "GlyphOffset" +defs["structs"]["ImFontAtlasCustomRect"][7]["type"] = "ImVec2" +defs["structs"]["ImFontAtlasCustomRect"][8] = {} +defs["structs"]["ImFontAtlasCustomRect"][8]["name"] = "Font" +defs["structs"]["ImFontAtlasCustomRect"][8]["type"] = "ImFont*" +defs["structs"]["ImFontConfig"] = {} +defs["structs"]["ImFontConfig"][1] = {} +defs["structs"]["ImFontConfig"][1]["name"] = "FontData" +defs["structs"]["ImFontConfig"][1]["type"] = "void*" +defs["structs"]["ImFontConfig"][2] = {} +defs["structs"]["ImFontConfig"][2]["name"] = "FontDataSize" +defs["structs"]["ImFontConfig"][2]["type"] = "int" +defs["structs"]["ImFontConfig"][3] = {} +defs["structs"]["ImFontConfig"][3]["name"] = "FontDataOwnedByAtlas" +defs["structs"]["ImFontConfig"][3]["type"] = "bool" +defs["structs"]["ImFontConfig"][4] = {} +defs["structs"]["ImFontConfig"][4]["name"] = "FontNo" +defs["structs"]["ImFontConfig"][4]["type"] = "int" +defs["structs"]["ImFontConfig"][5] = {} +defs["structs"]["ImFontConfig"][5]["name"] = "SizePixels" +defs["structs"]["ImFontConfig"][5]["type"] = "float" +defs["structs"]["ImFontConfig"][6] = {} +defs["structs"]["ImFontConfig"][6]["name"] = "OversampleH" +defs["structs"]["ImFontConfig"][6]["type"] = "int" +defs["structs"]["ImFontConfig"][7] = {} +defs["structs"]["ImFontConfig"][7]["name"] = "OversampleV" +defs["structs"]["ImFontConfig"][7]["type"] = "int" +defs["structs"]["ImFontConfig"][8] = {} +defs["structs"]["ImFontConfig"][8]["name"] = "PixelSnapH" +defs["structs"]["ImFontConfig"][8]["type"] = "bool" +defs["structs"]["ImFontConfig"][9] = {} +defs["structs"]["ImFontConfig"][9]["name"] = "GlyphExtraSpacing" +defs["structs"]["ImFontConfig"][9]["type"] = "ImVec2" +defs["structs"]["ImFontConfig"][10] = {} +defs["structs"]["ImFontConfig"][10]["name"] = "GlyphOffset" +defs["structs"]["ImFontConfig"][10]["type"] = "ImVec2" +defs["structs"]["ImFontConfig"][11] = {} +defs["structs"]["ImFontConfig"][11]["name"] = "GlyphRanges" +defs["structs"]["ImFontConfig"][11]["type"] = "const ImWchar*" +defs["structs"]["ImFontConfig"][12] = {} +defs["structs"]["ImFontConfig"][12]["name"] = "GlyphMinAdvanceX" +defs["structs"]["ImFontConfig"][12]["type"] = "float" +defs["structs"]["ImFontConfig"][13] = {} +defs["structs"]["ImFontConfig"][13]["name"] = "GlyphMaxAdvanceX" +defs["structs"]["ImFontConfig"][13]["type"] = "float" +defs["structs"]["ImFontConfig"][14] = {} +defs["structs"]["ImFontConfig"][14]["name"] = "MergeMode" +defs["structs"]["ImFontConfig"][14]["type"] = "bool" +defs["structs"]["ImFontConfig"][15] = {} +defs["structs"]["ImFontConfig"][15]["name"] = "FontBuilderFlags" +defs["structs"]["ImFontConfig"][15]["type"] = "unsigned int" +defs["structs"]["ImFontConfig"][16] = {} +defs["structs"]["ImFontConfig"][16]["name"] = "RasterizerMultiply" +defs["structs"]["ImFontConfig"][16]["type"] = "float" +defs["structs"]["ImFontConfig"][17] = {} +defs["structs"]["ImFontConfig"][17]["name"] = "EllipsisChar" +defs["structs"]["ImFontConfig"][17]["type"] = "ImWchar" +defs["structs"]["ImFontConfig"][18] = {} +defs["structs"]["ImFontConfig"][18]["name"] = "Name[40]" +defs["structs"]["ImFontConfig"][18]["size"] = 40 +defs["structs"]["ImFontConfig"][18]["type"] = "char" +defs["structs"]["ImFontConfig"][19] = {} +defs["structs"]["ImFontConfig"][19]["name"] = "DstFont" +defs["structs"]["ImFontConfig"][19]["type"] = "ImFont*" +defs["structs"]["ImFontGlyph"] = {} +defs["structs"]["ImFontGlyph"][1] = {} +defs["structs"]["ImFontGlyph"][1]["bitfield"] = "1" +defs["structs"]["ImFontGlyph"][1]["name"] = "Colored" +defs["structs"]["ImFontGlyph"][1]["type"] = "unsigned int" +defs["structs"]["ImFontGlyph"][2] = {} +defs["structs"]["ImFontGlyph"][2]["bitfield"] = "1" +defs["structs"]["ImFontGlyph"][2]["name"] = "Visible" +defs["structs"]["ImFontGlyph"][2]["type"] = "unsigned int" +defs["structs"]["ImFontGlyph"][3] = {} +defs["structs"]["ImFontGlyph"][3]["bitfield"] = "30" +defs["structs"]["ImFontGlyph"][3]["name"] = "Codepoint" +defs["structs"]["ImFontGlyph"][3]["type"] = "unsigned int" +defs["structs"]["ImFontGlyph"][4] = {} +defs["structs"]["ImFontGlyph"][4]["name"] = "AdvanceX" +defs["structs"]["ImFontGlyph"][4]["type"] = "float" +defs["structs"]["ImFontGlyph"][5] = {} +defs["structs"]["ImFontGlyph"][5]["name"] = "X0" +defs["structs"]["ImFontGlyph"][5]["type"] = "float" +defs["structs"]["ImFontGlyph"][6] = {} +defs["structs"]["ImFontGlyph"][6]["name"] = "Y0" +defs["structs"]["ImFontGlyph"][6]["type"] = "float" +defs["structs"]["ImFontGlyph"][7] = {} +defs["structs"]["ImFontGlyph"][7]["name"] = "X1" +defs["structs"]["ImFontGlyph"][7]["type"] = "float" +defs["structs"]["ImFontGlyph"][8] = {} +defs["structs"]["ImFontGlyph"][8]["name"] = "Y1" +defs["structs"]["ImFontGlyph"][8]["type"] = "float" +defs["structs"]["ImFontGlyph"][9] = {} +defs["structs"]["ImFontGlyph"][9]["name"] = "U0" +defs["structs"]["ImFontGlyph"][9]["type"] = "float" +defs["structs"]["ImFontGlyph"][10] = {} +defs["structs"]["ImFontGlyph"][10]["name"] = "V0" +defs["structs"]["ImFontGlyph"][10]["type"] = "float" +defs["structs"]["ImFontGlyph"][11] = {} +defs["structs"]["ImFontGlyph"][11]["name"] = "U1" +defs["structs"]["ImFontGlyph"][11]["type"] = "float" +defs["structs"]["ImFontGlyph"][12] = {} +defs["structs"]["ImFontGlyph"][12]["name"] = "V1" +defs["structs"]["ImFontGlyph"][12]["type"] = "float" +defs["structs"]["ImFontGlyphRangesBuilder"] = {} +defs["structs"]["ImFontGlyphRangesBuilder"][1] = {} +defs["structs"]["ImFontGlyphRangesBuilder"][1]["name"] = "UsedChars" +defs["structs"]["ImFontGlyphRangesBuilder"][1]["template_type"] = "ImU32" +defs["structs"]["ImFontGlyphRangesBuilder"][1]["type"] = "ImVector_ImU32" +defs["structs"]["ImGuiIO"] = {} +defs["structs"]["ImGuiIO"][1] = {} +defs["structs"]["ImGuiIO"][1]["name"] = "ConfigFlags" +defs["structs"]["ImGuiIO"][1]["type"] = "ImGuiConfigFlags" +defs["structs"]["ImGuiIO"][2] = {} +defs["structs"]["ImGuiIO"][2]["name"] = "BackendFlags" +defs["structs"]["ImGuiIO"][2]["type"] = "ImGuiBackendFlags" +defs["structs"]["ImGuiIO"][3] = {} +defs["structs"]["ImGuiIO"][3]["name"] = "DisplaySize" +defs["structs"]["ImGuiIO"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][4] = {} +defs["structs"]["ImGuiIO"][4]["name"] = "DeltaTime" +defs["structs"]["ImGuiIO"][4]["type"] = "float" +defs["structs"]["ImGuiIO"][5] = {} +defs["structs"]["ImGuiIO"][5]["name"] = "IniSavingRate" +defs["structs"]["ImGuiIO"][5]["type"] = "float" +defs["structs"]["ImGuiIO"][6] = {} +defs["structs"]["ImGuiIO"][6]["name"] = "IniFilename" +defs["structs"]["ImGuiIO"][6]["type"] = "const char*" +defs["structs"]["ImGuiIO"][7] = {} +defs["structs"]["ImGuiIO"][7]["name"] = "LogFilename" +defs["structs"]["ImGuiIO"][7]["type"] = "const char*" +defs["structs"]["ImGuiIO"][8] = {} +defs["structs"]["ImGuiIO"][8]["name"] = "MouseDoubleClickTime" +defs["structs"]["ImGuiIO"][8]["type"] = "float" +defs["structs"]["ImGuiIO"][9] = {} +defs["structs"]["ImGuiIO"][9]["name"] = "MouseDoubleClickMaxDist" +defs["structs"]["ImGuiIO"][9]["type"] = "float" +defs["structs"]["ImGuiIO"][10] = {} +defs["structs"]["ImGuiIO"][10]["name"] = "MouseDragThreshold" +defs["structs"]["ImGuiIO"][10]["type"] = "float" +defs["structs"]["ImGuiIO"][11] = {} +defs["structs"]["ImGuiIO"][11]["name"] = "KeyRepeatDelay" +defs["structs"]["ImGuiIO"][11]["type"] = "float" +defs["structs"]["ImGuiIO"][12] = {} +defs["structs"]["ImGuiIO"][12]["name"] = "KeyRepeatRate" +defs["structs"]["ImGuiIO"][12]["type"] = "float" +defs["structs"]["ImGuiIO"][13] = {} +defs["structs"]["ImGuiIO"][13]["name"] = "HoverDelayNormal" +defs["structs"]["ImGuiIO"][13]["type"] = "float" +defs["structs"]["ImGuiIO"][14] = {} +defs["structs"]["ImGuiIO"][14]["name"] = "HoverDelayShort" +defs["structs"]["ImGuiIO"][14]["type"] = "float" +defs["structs"]["ImGuiIO"][15] = {} +defs["structs"]["ImGuiIO"][15]["name"] = "UserData" +defs["structs"]["ImGuiIO"][15]["type"] = "void*" +defs["structs"]["ImGuiIO"][16] = {} +defs["structs"]["ImGuiIO"][16]["name"] = "Fonts" +defs["structs"]["ImGuiIO"][16]["type"] = "ImFontAtlas*" +defs["structs"]["ImGuiIO"][17] = {} +defs["structs"]["ImGuiIO"][17]["name"] = "FontGlobalScale" +defs["structs"]["ImGuiIO"][17]["type"] = "float" +defs["structs"]["ImGuiIO"][18] = {} +defs["structs"]["ImGuiIO"][18]["name"] = "FontAllowUserScaling" +defs["structs"]["ImGuiIO"][18]["type"] = "bool" +defs["structs"]["ImGuiIO"][19] = {} +defs["structs"]["ImGuiIO"][19]["name"] = "FontDefault" +defs["structs"]["ImGuiIO"][19]["type"] = "ImFont*" +defs["structs"]["ImGuiIO"][20] = {} +defs["structs"]["ImGuiIO"][20]["name"] = "DisplayFramebufferScale" +defs["structs"]["ImGuiIO"][20]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][21] = {} +defs["structs"]["ImGuiIO"][21]["name"] = "MouseDrawCursor" +defs["structs"]["ImGuiIO"][21]["type"] = "bool" +defs["structs"]["ImGuiIO"][22] = {} +defs["structs"]["ImGuiIO"][22]["name"] = "ConfigMacOSXBehaviors" +defs["structs"]["ImGuiIO"][22]["type"] = "bool" +defs["structs"]["ImGuiIO"][23] = {} +defs["structs"]["ImGuiIO"][23]["name"] = "ConfigInputTrickleEventQueue" +defs["structs"]["ImGuiIO"][23]["type"] = "bool" +defs["structs"]["ImGuiIO"][24] = {} +defs["structs"]["ImGuiIO"][24]["name"] = "ConfigInputTextCursorBlink" +defs["structs"]["ImGuiIO"][24]["type"] = "bool" +defs["structs"]["ImGuiIO"][25] = {} +defs["structs"]["ImGuiIO"][25]["name"] = "ConfigInputTextEnterKeepActive" +defs["structs"]["ImGuiIO"][25]["type"] = "bool" +defs["structs"]["ImGuiIO"][26] = {} +defs["structs"]["ImGuiIO"][26]["name"] = "ConfigDragClickToInputText" +defs["structs"]["ImGuiIO"][26]["type"] = "bool" +defs["structs"]["ImGuiIO"][27] = {} +defs["structs"]["ImGuiIO"][27]["name"] = "ConfigWindowsResizeFromEdges" +defs["structs"]["ImGuiIO"][27]["type"] = "bool" +defs["structs"]["ImGuiIO"][28] = {} +defs["structs"]["ImGuiIO"][28]["name"] = "ConfigWindowsMoveFromTitleBarOnly" +defs["structs"]["ImGuiIO"][28]["type"] = "bool" +defs["structs"]["ImGuiIO"][29] = {} +defs["structs"]["ImGuiIO"][29]["name"] = "ConfigMemoryCompactTimer" +defs["structs"]["ImGuiIO"][29]["type"] = "float" +defs["structs"]["ImGuiIO"][30] = {} +defs["structs"]["ImGuiIO"][30]["name"] = "BackendPlatformName" +defs["structs"]["ImGuiIO"][30]["type"] = "const char*" +defs["structs"]["ImGuiIO"][31] = {} +defs["structs"]["ImGuiIO"][31]["name"] = "BackendRendererName" +defs["structs"]["ImGuiIO"][31]["type"] = "const char*" +defs["structs"]["ImGuiIO"][32] = {} +defs["structs"]["ImGuiIO"][32]["name"] = "BackendPlatformUserData" +defs["structs"]["ImGuiIO"][32]["type"] = "void*" +defs["structs"]["ImGuiIO"][33] = {} +defs["structs"]["ImGuiIO"][33]["name"] = "BackendRendererUserData" +defs["structs"]["ImGuiIO"][33]["type"] = "void*" +defs["structs"]["ImGuiIO"][34] = {} +defs["structs"]["ImGuiIO"][34]["name"] = "BackendLanguageUserData" +defs["structs"]["ImGuiIO"][34]["type"] = "void*" +defs["structs"]["ImGuiIO"][35] = {} +defs["structs"]["ImGuiIO"][35]["name"] = "GetClipboardTextFn" +defs["structs"]["ImGuiIO"][35]["type"] = "const char*(*)(void* user_data)" +defs["structs"]["ImGuiIO"][36] = {} +defs["structs"]["ImGuiIO"][36]["name"] = "SetClipboardTextFn" +defs["structs"]["ImGuiIO"][36]["type"] = "void(*)(void* user_data,const char* text)" +defs["structs"]["ImGuiIO"][37] = {} +defs["structs"]["ImGuiIO"][37]["name"] = "ClipboardUserData" +defs["structs"]["ImGuiIO"][37]["type"] = "void*" +defs["structs"]["ImGuiIO"][38] = {} +defs["structs"]["ImGuiIO"][38]["name"] = "SetPlatformImeDataFn" +defs["structs"]["ImGuiIO"][38]["type"] = "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" +defs["structs"]["ImGuiIO"][39] = {} +defs["structs"]["ImGuiIO"][39]["name"] = "_UnusedPadding" +defs["structs"]["ImGuiIO"][39]["type"] = "void*" +defs["structs"]["ImGuiIO"][40] = {} +defs["structs"]["ImGuiIO"][40]["name"] = "WantCaptureMouse" +defs["structs"]["ImGuiIO"][40]["type"] = "bool" +defs["structs"]["ImGuiIO"][41] = {} +defs["structs"]["ImGuiIO"][41]["name"] = "WantCaptureKeyboard" +defs["structs"]["ImGuiIO"][41]["type"] = "bool" +defs["structs"]["ImGuiIO"][42] = {} +defs["structs"]["ImGuiIO"][42]["name"] = "WantTextInput" +defs["structs"]["ImGuiIO"][42]["type"] = "bool" +defs["structs"]["ImGuiIO"][43] = {} +defs["structs"]["ImGuiIO"][43]["name"] = "WantSetMousePos" +defs["structs"]["ImGuiIO"][43]["type"] = "bool" +defs["structs"]["ImGuiIO"][44] = {} +defs["structs"]["ImGuiIO"][44]["name"] = "WantSaveIniSettings" +defs["structs"]["ImGuiIO"][44]["type"] = "bool" +defs["structs"]["ImGuiIO"][45] = {} +defs["structs"]["ImGuiIO"][45]["name"] = "NavActive" +defs["structs"]["ImGuiIO"][45]["type"] = "bool" +defs["structs"]["ImGuiIO"][46] = {} +defs["structs"]["ImGuiIO"][46]["name"] = "NavVisible" +defs["structs"]["ImGuiIO"][46]["type"] = "bool" +defs["structs"]["ImGuiIO"][47] = {} +defs["structs"]["ImGuiIO"][47]["name"] = "Framerate" +defs["structs"]["ImGuiIO"][47]["type"] = "float" +defs["structs"]["ImGuiIO"][48] = {} +defs["structs"]["ImGuiIO"][48]["name"] = "MetricsRenderVertices" +defs["structs"]["ImGuiIO"][48]["type"] = "int" +defs["structs"]["ImGuiIO"][49] = {} +defs["structs"]["ImGuiIO"][49]["name"] = "MetricsRenderIndices" +defs["structs"]["ImGuiIO"][49]["type"] = "int" +defs["structs"]["ImGuiIO"][50] = {} +defs["structs"]["ImGuiIO"][50]["name"] = "MetricsRenderWindows" +defs["structs"]["ImGuiIO"][50]["type"] = "int" +defs["structs"]["ImGuiIO"][51] = {} +defs["structs"]["ImGuiIO"][51]["name"] = "MetricsActiveWindows" +defs["structs"]["ImGuiIO"][51]["type"] = "int" +defs["structs"]["ImGuiIO"][52] = {} +defs["structs"]["ImGuiIO"][52]["name"] = "MetricsActiveAllocations" +defs["structs"]["ImGuiIO"][52]["type"] = "int" +defs["structs"]["ImGuiIO"][53] = {} +defs["structs"]["ImGuiIO"][53]["name"] = "MouseDelta" +defs["structs"]["ImGuiIO"][53]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][54] = {} +defs["structs"]["ImGuiIO"][54]["name"] = "KeyMap[ImGuiKey_COUNT]" +defs["structs"]["ImGuiIO"][54]["size"] = 652 +defs["structs"]["ImGuiIO"][54]["type"] = "int" +defs["structs"]["ImGuiIO"][55] = {} +defs["structs"]["ImGuiIO"][55]["name"] = "KeysDown[ImGuiKey_COUNT]" +defs["structs"]["ImGuiIO"][55]["size"] = 652 +defs["structs"]["ImGuiIO"][55]["type"] = "bool" +defs["structs"]["ImGuiIO"][56] = {} +defs["structs"]["ImGuiIO"][56]["name"] = "NavInputs[ImGuiNavInput_COUNT]" +defs["structs"]["ImGuiIO"][56]["size"] = 16 +defs["structs"]["ImGuiIO"][56]["type"] = "float" +defs["structs"]["ImGuiIO"][57] = {} +defs["structs"]["ImGuiIO"][57]["name"] = "MousePos" +defs["structs"]["ImGuiIO"][57]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][58] = {} +defs["structs"]["ImGuiIO"][58]["name"] = "MouseDown[5]" +defs["structs"]["ImGuiIO"][58]["size"] = 5 +defs["structs"]["ImGuiIO"][58]["type"] = "bool" +defs["structs"]["ImGuiIO"][59] = {} +defs["structs"]["ImGuiIO"][59]["name"] = "MouseWheel" +defs["structs"]["ImGuiIO"][59]["type"] = "float" +defs["structs"]["ImGuiIO"][60] = {} +defs["structs"]["ImGuiIO"][60]["name"] = "MouseWheelH" +defs["structs"]["ImGuiIO"][60]["type"] = "float" +defs["structs"]["ImGuiIO"][61] = {} +defs["structs"]["ImGuiIO"][61]["name"] = "KeyCtrl" +defs["structs"]["ImGuiIO"][61]["type"] = "bool" +defs["structs"]["ImGuiIO"][62] = {} +defs["structs"]["ImGuiIO"][62]["name"] = "KeyShift" +defs["structs"]["ImGuiIO"][62]["type"] = "bool" +defs["structs"]["ImGuiIO"][63] = {} +defs["structs"]["ImGuiIO"][63]["name"] = "KeyAlt" +defs["structs"]["ImGuiIO"][63]["type"] = "bool" +defs["structs"]["ImGuiIO"][64] = {} +defs["structs"]["ImGuiIO"][64]["name"] = "KeySuper" +defs["structs"]["ImGuiIO"][64]["type"] = "bool" +defs["structs"]["ImGuiIO"][65] = {} +defs["structs"]["ImGuiIO"][65]["name"] = "KeyMods" +defs["structs"]["ImGuiIO"][65]["type"] = "ImGuiKeyChord" +defs["structs"]["ImGuiIO"][66] = {} +defs["structs"]["ImGuiIO"][66]["name"] = "KeysData[ImGuiKey_KeysData_SIZE]" +defs["structs"]["ImGuiIO"][66]["size"] = 652 +defs["structs"]["ImGuiIO"][66]["type"] = "ImGuiKeyData" +defs["structs"]["ImGuiIO"][67] = {} +defs["structs"]["ImGuiIO"][67]["name"] = "WantCaptureMouseUnlessPopupClose" +defs["structs"]["ImGuiIO"][67]["type"] = "bool" +defs["structs"]["ImGuiIO"][68] = {} +defs["structs"]["ImGuiIO"][68]["name"] = "MousePosPrev" +defs["structs"]["ImGuiIO"][68]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][69] = {} +defs["structs"]["ImGuiIO"][69]["name"] = "MouseClickedPos[5]" +defs["structs"]["ImGuiIO"][69]["size"] = 5 +defs["structs"]["ImGuiIO"][69]["type"] = "ImVec2" +defs["structs"]["ImGuiIO"][70] = {} +defs["structs"]["ImGuiIO"][70]["name"] = "MouseClickedTime[5]" +defs["structs"]["ImGuiIO"][70]["size"] = 5 +defs["structs"]["ImGuiIO"][70]["type"] = "double" +defs["structs"]["ImGuiIO"][71] = {} +defs["structs"]["ImGuiIO"][71]["name"] = "MouseClicked[5]" +defs["structs"]["ImGuiIO"][71]["size"] = 5 +defs["structs"]["ImGuiIO"][71]["type"] = "bool" +defs["structs"]["ImGuiIO"][72] = {} +defs["structs"]["ImGuiIO"][72]["name"] = "MouseDoubleClicked[5]" +defs["structs"]["ImGuiIO"][72]["size"] = 5 +defs["structs"]["ImGuiIO"][72]["type"] = "bool" +defs["structs"]["ImGuiIO"][73] = {} +defs["structs"]["ImGuiIO"][73]["name"] = "MouseClickedCount[5]" +defs["structs"]["ImGuiIO"][73]["size"] = 5 +defs["structs"]["ImGuiIO"][73]["type"] = "ImU16" +defs["structs"]["ImGuiIO"][74] = {} +defs["structs"]["ImGuiIO"][74]["name"] = "MouseClickedLastCount[5]" +defs["structs"]["ImGuiIO"][74]["size"] = 5 +defs["structs"]["ImGuiIO"][74]["type"] = "ImU16" +defs["structs"]["ImGuiIO"][75] = {} +defs["structs"]["ImGuiIO"][75]["name"] = "MouseReleased[5]" +defs["structs"]["ImGuiIO"][75]["size"] = 5 +defs["structs"]["ImGuiIO"][75]["type"] = "bool" +defs["structs"]["ImGuiIO"][76] = {} +defs["structs"]["ImGuiIO"][76]["name"] = "MouseDownOwned[5]" +defs["structs"]["ImGuiIO"][76]["size"] = 5 +defs["structs"]["ImGuiIO"][76]["type"] = "bool" +defs["structs"]["ImGuiIO"][77] = {} +defs["structs"]["ImGuiIO"][77]["name"] = "MouseDownOwnedUnlessPopupClose[5]" +defs["structs"]["ImGuiIO"][77]["size"] = 5 +defs["structs"]["ImGuiIO"][77]["type"] = "bool" +defs["structs"]["ImGuiIO"][78] = {} +defs["structs"]["ImGuiIO"][78]["name"] = "MouseDownDuration[5]" +defs["structs"]["ImGuiIO"][78]["size"] = 5 +defs["structs"]["ImGuiIO"][78]["type"] = "float" +defs["structs"]["ImGuiIO"][79] = {} +defs["structs"]["ImGuiIO"][79]["name"] = "MouseDownDurationPrev[5]" +defs["structs"]["ImGuiIO"][79]["size"] = 5 +defs["structs"]["ImGuiIO"][79]["type"] = "float" +defs["structs"]["ImGuiIO"][80] = {} +defs["structs"]["ImGuiIO"][80]["name"] = "MouseDragMaxDistanceSqr[5]" +defs["structs"]["ImGuiIO"][80]["size"] = 5 +defs["structs"]["ImGuiIO"][80]["type"] = "float" +defs["structs"]["ImGuiIO"][81] = {} +defs["structs"]["ImGuiIO"][81]["name"] = "PenPressure" +defs["structs"]["ImGuiIO"][81]["type"] = "float" +defs["structs"]["ImGuiIO"][82] = {} +defs["structs"]["ImGuiIO"][82]["name"] = "AppFocusLost" +defs["structs"]["ImGuiIO"][82]["type"] = "bool" +defs["structs"]["ImGuiIO"][83] = {} +defs["structs"]["ImGuiIO"][83]["name"] = "AppAcceptingEvents" +defs["structs"]["ImGuiIO"][83]["type"] = "bool" +defs["structs"]["ImGuiIO"][84] = {} +defs["structs"]["ImGuiIO"][84]["name"] = "BackendUsingLegacyKeyArrays" +defs["structs"]["ImGuiIO"][84]["type"] = "ImS8" +defs["structs"]["ImGuiIO"][85] = {} +defs["structs"]["ImGuiIO"][85]["name"] = "BackendUsingLegacyNavInputArray" +defs["structs"]["ImGuiIO"][85]["type"] = "bool" +defs["structs"]["ImGuiIO"][86] = {} +defs["structs"]["ImGuiIO"][86]["name"] = "InputQueueSurrogate" +defs["structs"]["ImGuiIO"][86]["type"] = "ImWchar16" +defs["structs"]["ImGuiIO"][87] = {} +defs["structs"]["ImGuiIO"][87]["name"] = "InputQueueCharacters" +defs["structs"]["ImGuiIO"][87]["template_type"] = "ImWchar" +defs["structs"]["ImGuiIO"][87]["type"] = "ImVector_ImWchar" +defs["structs"]["ImGuiInputTextCallbackData"] = {} +defs["structs"]["ImGuiInputTextCallbackData"][1] = {} +defs["structs"]["ImGuiInputTextCallbackData"][1]["name"] = "EventFlag" +defs["structs"]["ImGuiInputTextCallbackData"][1]["type"] = "ImGuiInputTextFlags" +defs["structs"]["ImGuiInputTextCallbackData"][2] = {} +defs["structs"]["ImGuiInputTextCallbackData"][2]["name"] = "Flags" +defs["structs"]["ImGuiInputTextCallbackData"][2]["type"] = "ImGuiInputTextFlags" +defs["structs"]["ImGuiInputTextCallbackData"][3] = {} +defs["structs"]["ImGuiInputTextCallbackData"][3]["name"] = "UserData" +defs["structs"]["ImGuiInputTextCallbackData"][3]["type"] = "void*" +defs["structs"]["ImGuiInputTextCallbackData"][4] = {} +defs["structs"]["ImGuiInputTextCallbackData"][4]["name"] = "EventChar" +defs["structs"]["ImGuiInputTextCallbackData"][4]["type"] = "ImWchar" +defs["structs"]["ImGuiInputTextCallbackData"][5] = {} +defs["structs"]["ImGuiInputTextCallbackData"][5]["name"] = "EventKey" +defs["structs"]["ImGuiInputTextCallbackData"][5]["type"] = "ImGuiKey" +defs["structs"]["ImGuiInputTextCallbackData"][6] = {} +defs["structs"]["ImGuiInputTextCallbackData"][6]["name"] = "Buf" +defs["structs"]["ImGuiInputTextCallbackData"][6]["type"] = "char*" +defs["structs"]["ImGuiInputTextCallbackData"][7] = {} +defs["structs"]["ImGuiInputTextCallbackData"][7]["name"] = "BufTextLen" +defs["structs"]["ImGuiInputTextCallbackData"][7]["type"] = "int" +defs["structs"]["ImGuiInputTextCallbackData"][8] = {} +defs["structs"]["ImGuiInputTextCallbackData"][8]["name"] = "BufSize" +defs["structs"]["ImGuiInputTextCallbackData"][8]["type"] = "int" +defs["structs"]["ImGuiInputTextCallbackData"][9] = {} +defs["structs"]["ImGuiInputTextCallbackData"][9]["name"] = "BufDirty" +defs["structs"]["ImGuiInputTextCallbackData"][9]["type"] = "bool" +defs["structs"]["ImGuiInputTextCallbackData"][10] = {} +defs["structs"]["ImGuiInputTextCallbackData"][10]["name"] = "CursorPos" +defs["structs"]["ImGuiInputTextCallbackData"][10]["type"] = "int" +defs["structs"]["ImGuiInputTextCallbackData"][11] = {} +defs["structs"]["ImGuiInputTextCallbackData"][11]["name"] = "SelectionStart" +defs["structs"]["ImGuiInputTextCallbackData"][11]["type"] = "int" +defs["structs"]["ImGuiInputTextCallbackData"][12] = {} +defs["structs"]["ImGuiInputTextCallbackData"][12]["name"] = "SelectionEnd" +defs["structs"]["ImGuiInputTextCallbackData"][12]["type"] = "int" +defs["structs"]["ImGuiKeyData"] = {} +defs["structs"]["ImGuiKeyData"][1] = {} +defs["structs"]["ImGuiKeyData"][1]["name"] = "Down" +defs["structs"]["ImGuiKeyData"][1]["type"] = "bool" +defs["structs"]["ImGuiKeyData"][2] = {} +defs["structs"]["ImGuiKeyData"][2]["name"] = "DownDuration" +defs["structs"]["ImGuiKeyData"][2]["type"] = "float" +defs["structs"]["ImGuiKeyData"][3] = {} +defs["structs"]["ImGuiKeyData"][3]["name"] = "DownDurationPrev" +defs["structs"]["ImGuiKeyData"][3]["type"] = "float" +defs["structs"]["ImGuiKeyData"][4] = {} +defs["structs"]["ImGuiKeyData"][4]["name"] = "AnalogValue" +defs["structs"]["ImGuiKeyData"][4]["type"] = "float" +defs["structs"]["ImGuiListClipper"] = {} +defs["structs"]["ImGuiListClipper"][1] = {} +defs["structs"]["ImGuiListClipper"][1]["name"] = "DisplayStart" +defs["structs"]["ImGuiListClipper"][1]["type"] = "int" +defs["structs"]["ImGuiListClipper"][2] = {} +defs["structs"]["ImGuiListClipper"][2]["name"] = "DisplayEnd" +defs["structs"]["ImGuiListClipper"][2]["type"] = "int" +defs["structs"]["ImGuiListClipper"][3] = {} +defs["structs"]["ImGuiListClipper"][3]["name"] = "ItemsCount" +defs["structs"]["ImGuiListClipper"][3]["type"] = "int" +defs["structs"]["ImGuiListClipper"][4] = {} +defs["structs"]["ImGuiListClipper"][4]["name"] = "ItemsHeight" +defs["structs"]["ImGuiListClipper"][4]["type"] = "float" +defs["structs"]["ImGuiListClipper"][5] = {} +defs["structs"]["ImGuiListClipper"][5]["name"] = "StartPosY" +defs["structs"]["ImGuiListClipper"][5]["type"] = "float" +defs["structs"]["ImGuiListClipper"][6] = {} +defs["structs"]["ImGuiListClipper"][6]["name"] = "TempData" +defs["structs"]["ImGuiListClipper"][6]["type"] = "void*" +defs["structs"]["ImGuiOnceUponAFrame"] = {} +defs["structs"]["ImGuiOnceUponAFrame"][1] = {} +defs["structs"]["ImGuiOnceUponAFrame"][1]["name"] = "RefFrame" +defs["structs"]["ImGuiOnceUponAFrame"][1]["type"] = "int" +defs["structs"]["ImGuiPayload"] = {} +defs["structs"]["ImGuiPayload"][1] = {} +defs["structs"]["ImGuiPayload"][1]["name"] = "Data" +defs["structs"]["ImGuiPayload"][1]["type"] = "void*" +defs["structs"]["ImGuiPayload"][2] = {} +defs["structs"]["ImGuiPayload"][2]["name"] = "DataSize" +defs["structs"]["ImGuiPayload"][2]["type"] = "int" +defs["structs"]["ImGuiPayload"][3] = {} +defs["structs"]["ImGuiPayload"][3]["name"] = "SourceId" +defs["structs"]["ImGuiPayload"][3]["type"] = "ImGuiID" +defs["structs"]["ImGuiPayload"][4] = {} +defs["structs"]["ImGuiPayload"][4]["name"] = "SourceParentId" +defs["structs"]["ImGuiPayload"][4]["type"] = "ImGuiID" +defs["structs"]["ImGuiPayload"][5] = {} +defs["structs"]["ImGuiPayload"][5]["name"] = "DataFrameCount" +defs["structs"]["ImGuiPayload"][5]["type"] = "int" +defs["structs"]["ImGuiPayload"][6] = {} +defs["structs"]["ImGuiPayload"][6]["name"] = "DataType[32+1]" +defs["structs"]["ImGuiPayload"][6]["size"] = 33 +defs["structs"]["ImGuiPayload"][6]["type"] = "char" +defs["structs"]["ImGuiPayload"][7] = {} +defs["structs"]["ImGuiPayload"][7]["name"] = "Preview" +defs["structs"]["ImGuiPayload"][7]["type"] = "bool" +defs["structs"]["ImGuiPayload"][8] = {} +defs["structs"]["ImGuiPayload"][8]["name"] = "Delivery" +defs["structs"]["ImGuiPayload"][8]["type"] = "bool" +defs["structs"]["ImGuiPlatformImeData"] = {} +defs["structs"]["ImGuiPlatformImeData"][1] = {} +defs["structs"]["ImGuiPlatformImeData"][1]["name"] = "WantVisible" +defs["structs"]["ImGuiPlatformImeData"][1]["type"] = "bool" +defs["structs"]["ImGuiPlatformImeData"][2] = {} +defs["structs"]["ImGuiPlatformImeData"][2]["name"] = "InputPos" +defs["structs"]["ImGuiPlatformImeData"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiPlatformImeData"][3] = {} +defs["structs"]["ImGuiPlatformImeData"][3]["name"] = "InputLineHeight" +defs["structs"]["ImGuiPlatformImeData"][3]["type"] = "float" +defs["structs"]["ImGuiSizeCallbackData"] = {} +defs["structs"]["ImGuiSizeCallbackData"][1] = {} +defs["structs"]["ImGuiSizeCallbackData"][1]["name"] = "UserData" +defs["structs"]["ImGuiSizeCallbackData"][1]["type"] = "void*" +defs["structs"]["ImGuiSizeCallbackData"][2] = {} +defs["structs"]["ImGuiSizeCallbackData"][2]["name"] = "Pos" +defs["structs"]["ImGuiSizeCallbackData"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiSizeCallbackData"][3] = {} +defs["structs"]["ImGuiSizeCallbackData"][3]["name"] = "CurrentSize" +defs["structs"]["ImGuiSizeCallbackData"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiSizeCallbackData"][4] = {} +defs["structs"]["ImGuiSizeCallbackData"][4]["name"] = "DesiredSize" +defs["structs"]["ImGuiSizeCallbackData"][4]["type"] = "ImVec2" +defs["structs"]["ImGuiStorage"] = {} +defs["structs"]["ImGuiStorage"][1] = {} +defs["structs"]["ImGuiStorage"][1]["name"] = "Data" +defs["structs"]["ImGuiStorage"][1]["template_type"] = "ImGuiStoragePair" +defs["structs"]["ImGuiStorage"][1]["type"] = "ImVector_ImGuiStoragePair" +defs["structs"]["ImGuiStoragePair"] = {} +defs["structs"]["ImGuiStoragePair"][1] = {} +defs["structs"]["ImGuiStoragePair"][1]["name"] = "key" +defs["structs"]["ImGuiStoragePair"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiStoragePair"][2] = {} +defs["structs"]["ImGuiStoragePair"][2]["name"] = "" +defs["structs"]["ImGuiStoragePair"][2]["type"] = "union { int val_i; float val_f; void* val_p;}" +defs["structs"]["ImGuiStyle"] = {} +defs["structs"]["ImGuiStyle"][1] = {} +defs["structs"]["ImGuiStyle"][1]["name"] = "Alpha" +defs["structs"]["ImGuiStyle"][1]["type"] = "float" +defs["structs"]["ImGuiStyle"][2] = {} +defs["structs"]["ImGuiStyle"][2]["name"] = "DisabledAlpha" +defs["structs"]["ImGuiStyle"][2]["type"] = "float" +defs["structs"]["ImGuiStyle"][3] = {} +defs["structs"]["ImGuiStyle"][3]["name"] = "WindowPadding" +defs["structs"]["ImGuiStyle"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][4] = {} +defs["structs"]["ImGuiStyle"][4]["name"] = "WindowRounding" +defs["structs"]["ImGuiStyle"][4]["type"] = "float" +defs["structs"]["ImGuiStyle"][5] = {} +defs["structs"]["ImGuiStyle"][5]["name"] = "WindowBorderSize" +defs["structs"]["ImGuiStyle"][5]["type"] = "float" +defs["structs"]["ImGuiStyle"][6] = {} +defs["structs"]["ImGuiStyle"][6]["name"] = "WindowMinSize" +defs["structs"]["ImGuiStyle"][6]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][7] = {} +defs["structs"]["ImGuiStyle"][7]["name"] = "WindowTitleAlign" +defs["structs"]["ImGuiStyle"][7]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][8] = {} +defs["structs"]["ImGuiStyle"][8]["name"] = "WindowMenuButtonPosition" +defs["structs"]["ImGuiStyle"][8]["type"] = "ImGuiDir" +defs["structs"]["ImGuiStyle"][9] = {} +defs["structs"]["ImGuiStyle"][9]["name"] = "ChildRounding" +defs["structs"]["ImGuiStyle"][9]["type"] = "float" +defs["structs"]["ImGuiStyle"][10] = {} +defs["structs"]["ImGuiStyle"][10]["name"] = "ChildBorderSize" +defs["structs"]["ImGuiStyle"][10]["type"] = "float" +defs["structs"]["ImGuiStyle"][11] = {} +defs["structs"]["ImGuiStyle"][11]["name"] = "PopupRounding" +defs["structs"]["ImGuiStyle"][11]["type"] = "float" +defs["structs"]["ImGuiStyle"][12] = {} +defs["structs"]["ImGuiStyle"][12]["name"] = "PopupBorderSize" +defs["structs"]["ImGuiStyle"][12]["type"] = "float" +defs["structs"]["ImGuiStyle"][13] = {} +defs["structs"]["ImGuiStyle"][13]["name"] = "FramePadding" +defs["structs"]["ImGuiStyle"][13]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][14] = {} +defs["structs"]["ImGuiStyle"][14]["name"] = "FrameRounding" +defs["structs"]["ImGuiStyle"][14]["type"] = "float" +defs["structs"]["ImGuiStyle"][15] = {} +defs["structs"]["ImGuiStyle"][15]["name"] = "FrameBorderSize" +defs["structs"]["ImGuiStyle"][15]["type"] = "float" +defs["structs"]["ImGuiStyle"][16] = {} +defs["structs"]["ImGuiStyle"][16]["name"] = "ItemSpacing" +defs["structs"]["ImGuiStyle"][16]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][17] = {} +defs["structs"]["ImGuiStyle"][17]["name"] = "ItemInnerSpacing" +defs["structs"]["ImGuiStyle"][17]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][18] = {} +defs["structs"]["ImGuiStyle"][18]["name"] = "CellPadding" +defs["structs"]["ImGuiStyle"][18]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][19] = {} +defs["structs"]["ImGuiStyle"][19]["name"] = "TouchExtraPadding" +defs["structs"]["ImGuiStyle"][19]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][20] = {} +defs["structs"]["ImGuiStyle"][20]["name"] = "IndentSpacing" +defs["structs"]["ImGuiStyle"][20]["type"] = "float" +defs["structs"]["ImGuiStyle"][21] = {} +defs["structs"]["ImGuiStyle"][21]["name"] = "ColumnsMinSpacing" +defs["structs"]["ImGuiStyle"][21]["type"] = "float" +defs["structs"]["ImGuiStyle"][22] = {} +defs["structs"]["ImGuiStyle"][22]["name"] = "ScrollbarSize" +defs["structs"]["ImGuiStyle"][22]["type"] = "float" +defs["structs"]["ImGuiStyle"][23] = {} +defs["structs"]["ImGuiStyle"][23]["name"] = "ScrollbarRounding" +defs["structs"]["ImGuiStyle"][23]["type"] = "float" +defs["structs"]["ImGuiStyle"][24] = {} +defs["structs"]["ImGuiStyle"][24]["name"] = "GrabMinSize" +defs["structs"]["ImGuiStyle"][24]["type"] = "float" +defs["structs"]["ImGuiStyle"][25] = {} +defs["structs"]["ImGuiStyle"][25]["name"] = "GrabRounding" +defs["structs"]["ImGuiStyle"][25]["type"] = "float" +defs["structs"]["ImGuiStyle"][26] = {} +defs["structs"]["ImGuiStyle"][26]["name"] = "LogSliderDeadzone" +defs["structs"]["ImGuiStyle"][26]["type"] = "float" +defs["structs"]["ImGuiStyle"][27] = {} +defs["structs"]["ImGuiStyle"][27]["name"] = "TabRounding" +defs["structs"]["ImGuiStyle"][27]["type"] = "float" +defs["structs"]["ImGuiStyle"][28] = {} +defs["structs"]["ImGuiStyle"][28]["name"] = "TabBorderSize" +defs["structs"]["ImGuiStyle"][28]["type"] = "float" +defs["structs"]["ImGuiStyle"][29] = {} +defs["structs"]["ImGuiStyle"][29]["name"] = "TabMinWidthForCloseButton" +defs["structs"]["ImGuiStyle"][29]["type"] = "float" +defs["structs"]["ImGuiStyle"][30] = {} +defs["structs"]["ImGuiStyle"][30]["name"] = "ColorButtonPosition" +defs["structs"]["ImGuiStyle"][30]["type"] = "ImGuiDir" +defs["structs"]["ImGuiStyle"][31] = {} +defs["structs"]["ImGuiStyle"][31]["name"] = "ButtonTextAlign" +defs["structs"]["ImGuiStyle"][31]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][32] = {} +defs["structs"]["ImGuiStyle"][32]["name"] = "SelectableTextAlign" +defs["structs"]["ImGuiStyle"][32]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][33] = {} +defs["structs"]["ImGuiStyle"][33]["name"] = "DisplayWindowPadding" +defs["structs"]["ImGuiStyle"][33]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][34] = {} +defs["structs"]["ImGuiStyle"][34]["name"] = "DisplaySafeAreaPadding" +defs["structs"]["ImGuiStyle"][34]["type"] = "ImVec2" +defs["structs"]["ImGuiStyle"][35] = {} +defs["structs"]["ImGuiStyle"][35]["name"] = "MouseCursorScale" +defs["structs"]["ImGuiStyle"][35]["type"] = "float" +defs["structs"]["ImGuiStyle"][36] = {} +defs["structs"]["ImGuiStyle"][36]["name"] = "AntiAliasedLines" +defs["structs"]["ImGuiStyle"][36]["type"] = "bool" +defs["structs"]["ImGuiStyle"][37] = {} +defs["structs"]["ImGuiStyle"][37]["name"] = "AntiAliasedLinesUseTex" +defs["structs"]["ImGuiStyle"][37]["type"] = "bool" +defs["structs"]["ImGuiStyle"][38] = {} +defs["structs"]["ImGuiStyle"][38]["name"] = "AntiAliasedFill" +defs["structs"]["ImGuiStyle"][38]["type"] = "bool" +defs["structs"]["ImGuiStyle"][39] = {} +defs["structs"]["ImGuiStyle"][39]["name"] = "CurveTessellationTol" +defs["structs"]["ImGuiStyle"][39]["type"] = "float" +defs["structs"]["ImGuiStyle"][40] = {} +defs["structs"]["ImGuiStyle"][40]["name"] = "CircleTessellationMaxError" +defs["structs"]["ImGuiStyle"][40]["type"] = "float" +defs["structs"]["ImGuiStyle"][41] = {} +defs["structs"]["ImGuiStyle"][41]["name"] = "Colors[ImGuiCol_COUNT]" +defs["structs"]["ImGuiStyle"][41]["size"] = 53 +defs["structs"]["ImGuiStyle"][41]["type"] = "ImVec4" +defs["structs"]["ImGuiTableColumnSortSpecs"] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][1] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][1]["name"] = "ColumnUserID" +defs["structs"]["ImGuiTableColumnSortSpecs"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiTableColumnSortSpecs"][2] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][2]["name"] = "ColumnIndex" +defs["structs"]["ImGuiTableColumnSortSpecs"][2]["type"] = "ImS16" +defs["structs"]["ImGuiTableColumnSortSpecs"][3] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][3]["name"] = "SortOrder" +defs["structs"]["ImGuiTableColumnSortSpecs"][3]["type"] = "ImS16" +defs["structs"]["ImGuiTableColumnSortSpecs"][4] = {} +defs["structs"]["ImGuiTableColumnSortSpecs"][4]["bitfield"] = "8" +defs["structs"]["ImGuiTableColumnSortSpecs"][4]["name"] = "SortDirection" +defs["structs"]["ImGuiTableColumnSortSpecs"][4]["type"] = "ImGuiSortDirection" +defs["structs"]["ImGuiTableSortSpecs"] = {} +defs["structs"]["ImGuiTableSortSpecs"][1] = {} +defs["structs"]["ImGuiTableSortSpecs"][1]["name"] = "Specs" +defs["structs"]["ImGuiTableSortSpecs"][1]["type"] = "const ImGuiTableColumnSortSpecs*" +defs["structs"]["ImGuiTableSortSpecs"][2] = {} +defs["structs"]["ImGuiTableSortSpecs"][2]["name"] = "SpecsCount" +defs["structs"]["ImGuiTableSortSpecs"][2]["type"] = "int" +defs["structs"]["ImGuiTableSortSpecs"][3] = {} +defs["structs"]["ImGuiTableSortSpecs"][3]["name"] = "SpecsDirty" +defs["structs"]["ImGuiTableSortSpecs"][3]["type"] = "bool" +defs["structs"]["ImGuiTextBuffer"] = {} +defs["structs"]["ImGuiTextBuffer"][1] = {} +defs["structs"]["ImGuiTextBuffer"][1]["name"] = "Buf" +defs["structs"]["ImGuiTextBuffer"][1]["template_type"] = "char" +defs["structs"]["ImGuiTextBuffer"][1]["type"] = "ImVector_char" +defs["structs"]["ImGuiTextFilter"] = {} +defs["structs"]["ImGuiTextFilter"][1] = {} +defs["structs"]["ImGuiTextFilter"][1]["name"] = "InputBuf[256]" +defs["structs"]["ImGuiTextFilter"][1]["size"] = 256 +defs["structs"]["ImGuiTextFilter"][1]["type"] = "char" +defs["structs"]["ImGuiTextFilter"][2] = {} +defs["structs"]["ImGuiTextFilter"][2]["name"] = "Filters" +defs["structs"]["ImGuiTextFilter"][2]["template_type"] = "ImGuiTextRange" +defs["structs"]["ImGuiTextFilter"][2]["type"] = "ImVector_ImGuiTextRange" +defs["structs"]["ImGuiTextFilter"][3] = {} +defs["structs"]["ImGuiTextFilter"][3]["name"] = "CountGrep" +defs["structs"]["ImGuiTextFilter"][3]["type"] = "int" +defs["structs"]["ImGuiTextRange"] = {} +defs["structs"]["ImGuiTextRange"][1] = {} +defs["structs"]["ImGuiTextRange"][1]["name"] = "b" +defs["structs"]["ImGuiTextRange"][1]["type"] = "const char*" +defs["structs"]["ImGuiTextRange"][2] = {} +defs["structs"]["ImGuiTextRange"][2]["name"] = "e" +defs["structs"]["ImGuiTextRange"][2]["type"] = "const char*" +defs["structs"]["ImGuiViewport"] = {} +defs["structs"]["ImGuiViewport"][1] = {} +defs["structs"]["ImGuiViewport"][1]["name"] = "Flags" +defs["structs"]["ImGuiViewport"][1]["type"] = "ImGuiViewportFlags" +defs["structs"]["ImGuiViewport"][2] = {} +defs["structs"]["ImGuiViewport"][2]["name"] = "Pos" +defs["structs"]["ImGuiViewport"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiViewport"][3] = {} +defs["structs"]["ImGuiViewport"][3]["name"] = "Size" +defs["structs"]["ImGuiViewport"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiViewport"][4] = {} +defs["structs"]["ImGuiViewport"][4]["name"] = "WorkPos" +defs["structs"]["ImGuiViewport"][4]["type"] = "ImVec2" +defs["structs"]["ImGuiViewport"][5] = {} +defs["structs"]["ImGuiViewport"][5]["name"] = "WorkSize" +defs["structs"]["ImGuiViewport"][5]["type"] = "ImVec2" +defs["structs"]["ImGuiViewport"][6] = {} +defs["structs"]["ImGuiViewport"][6]["name"] = "PlatformHandleRaw" +defs["structs"]["ImGuiViewport"][6]["type"] = "void*" +defs["structs"]["ImVec2"] = {} +defs["structs"]["ImVec2"][1] = {} +defs["structs"]["ImVec2"][1]["name"] = "x" +defs["structs"]["ImVec2"][1]["type"] = "float" +defs["structs"]["ImVec2"][2] = {} +defs["structs"]["ImVec2"][2]["name"] = "y" +defs["structs"]["ImVec2"][2]["type"] = "float" +defs["structs"]["ImVec4"] = {} +defs["structs"]["ImVec4"][1] = {} +defs["structs"]["ImVec4"][1]["name"] = "x" +defs["structs"]["ImVec4"][1]["type"] = "float" +defs["structs"]["ImVec4"][2] = {} +defs["structs"]["ImVec4"][2]["name"] = "y" +defs["structs"]["ImVec4"][2]["type"] = "float" +defs["structs"]["ImVec4"][3] = {} +defs["structs"]["ImVec4"][3]["name"] = "z" +defs["structs"]["ImVec4"][3]["type"] = "float" +defs["structs"]["ImVec4"][4] = {} +defs["structs"]["ImVec4"][4]["name"] = "w" +defs["structs"]["ImVec4"][4]["type"] = "float" +defs["templated_structs"] = {} +defs["templated_structs"]["ImVector"] = {} +defs["templated_structs"]["ImVector"][1] = {} +defs["templated_structs"]["ImVector"][1]["name"] = "Size" +defs["templated_structs"]["ImVector"][1]["type"] = "int" +defs["templated_structs"]["ImVector"][2] = {} +defs["templated_structs"]["ImVector"][2]["name"] = "Capacity" +defs["templated_structs"]["ImVector"][2]["type"] = "int" +defs["templated_structs"]["ImVector"][3] = {} +defs["templated_structs"]["ImVector"][3]["name"] = "Data" +defs["templated_structs"]["ImVector"][3]["type"] = "T*" +defs["templates_done"] = {} +defs["templates_done"]["ImVector"] = {} +defs["templates_done"]["ImVector"]["ImDrawChannel"] = true +defs["templates_done"]["ImVector"]["ImDrawCmd"] = true +defs["templates_done"]["ImVector"]["ImDrawIdx"] = true +defs["templates_done"]["ImVector"]["ImDrawVert"] = true +defs["templates_done"]["ImVector"]["ImFont*"] = true +defs["templates_done"]["ImVector"]["ImFontAtlasCustomRect"] = true +defs["templates_done"]["ImVector"]["ImFontConfig"] = true +defs["templates_done"]["ImVector"]["ImFontGlyph"] = true +defs["templates_done"]["ImVector"]["ImGuiStoragePair"] = true +defs["templates_done"]["ImVector"]["ImGuiTextRange"] = true +defs["templates_done"]["ImVector"]["ImTextureID"] = true +defs["templates_done"]["ImVector"]["ImU32"] = true +defs["templates_done"]["ImVector"]["ImVec2"] = true +defs["templates_done"]["ImVector"]["ImVec4"] = true +defs["templates_done"]["ImVector"]["ImWchar"] = true +defs["templates_done"]["ImVector"]["char"] = true +defs["templates_done"]["ImVector"]["float"] = true +defs["typenames"] = {} +defs["typenames"]["ImVector"] = "T" + +return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master-freetype/typedefs_dict.json b/imgui-sys/third-party/imgui-master-freetype/typedefs_dict.json new file mode 100644 index 000000000..9ae0cc212 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/typedefs_dict.json @@ -0,0 +1,93 @@ +{ + "ImColor": "struct ImColor", + "ImDrawCallback": "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);", + "ImDrawChannel": "struct ImDrawChannel", + "ImDrawCmd": "struct ImDrawCmd", + "ImDrawCmdHeader": "struct ImDrawCmdHeader", + "ImDrawData": "struct ImDrawData", + "ImDrawFlags": "int", + "ImDrawIdx": "unsigned short", + "ImDrawList": "struct ImDrawList", + "ImDrawListFlags": "int", + "ImDrawListSharedData": "struct ImDrawListSharedData", + "ImDrawListSplitter": "struct ImDrawListSplitter", + "ImDrawVert": "struct ImDrawVert", + "ImFont": "struct ImFont", + "ImFontAtlas": "struct ImFontAtlas", + "ImFontAtlasCustomRect": "struct ImFontAtlasCustomRect", + "ImFontAtlasFlags": "int", + "ImFontBuilderIO": "struct ImFontBuilderIO", + "ImFontConfig": "struct ImFontConfig", + "ImFontGlyph": "struct ImFontGlyph", + "ImFontGlyphRangesBuilder": "struct ImFontGlyphRangesBuilder", + "ImGuiBackendFlags": "int", + "ImGuiButtonFlags": "int", + "ImGuiCol": "int", + "ImGuiColorEditFlags": "int", + "ImGuiComboFlags": "int", + "ImGuiCond": "int", + "ImGuiConfigFlags": "int", + "ImGuiContext": "struct ImGuiContext", + "ImGuiDataType": "int", + "ImGuiDir": "int", + "ImGuiDragDropFlags": "int", + "ImGuiFocusedFlags": "int", + "ImGuiHoveredFlags": "int", + "ImGuiID": "unsigned int", + "ImGuiIO": "struct ImGuiIO", + "ImGuiInputTextCallback": "int(*)(ImGuiInputTextCallbackData* data);", + "ImGuiInputTextCallbackData": "struct ImGuiInputTextCallbackData", + "ImGuiInputTextFlags": "int", + "ImGuiKeyChord": "int", + "ImGuiKeyData": "struct ImGuiKeyData", + "ImGuiListClipper": "struct ImGuiListClipper", + "ImGuiMemAllocFunc": "void*(*)(size_t sz,void* user_data);", + "ImGuiMemFreeFunc": "void(*)(void* ptr,void* user_data);", + "ImGuiMouseButton": "int", + "ImGuiMouseCursor": "int", + "ImGuiOnceUponAFrame": "struct ImGuiOnceUponAFrame", + "ImGuiPayload": "struct ImGuiPayload", + "ImGuiPlatformImeData": "struct ImGuiPlatformImeData", + "ImGuiPopupFlags": "int", + "ImGuiSelectableFlags": "int", + "ImGuiSizeCallback": "void(*)(ImGuiSizeCallbackData* data);", + "ImGuiSizeCallbackData": "struct ImGuiSizeCallbackData", + "ImGuiSliderFlags": "int", + "ImGuiSortDirection": "int", + "ImGuiStorage": "struct ImGuiStorage", + "ImGuiStoragePair": "struct ImGuiStoragePair", + "ImGuiStyle": "struct ImGuiStyle", + "ImGuiStyleVar": "int", + "ImGuiTabBarFlags": "int", + "ImGuiTabItemFlags": "int", + "ImGuiTableBgTarget": "int", + "ImGuiTableColumnFlags": "int", + "ImGuiTableColumnSortSpecs": "struct ImGuiTableColumnSortSpecs", + "ImGuiTableFlags": "int", + "ImGuiTableRowFlags": "int", + "ImGuiTableSortSpecs": "struct ImGuiTableSortSpecs", + "ImGuiTextBuffer": "struct ImGuiTextBuffer", + "ImGuiTextFilter": "struct ImGuiTextFilter", + "ImGuiTextRange": "struct ImGuiTextRange", + "ImGuiTreeNodeFlags": "int", + "ImGuiViewport": "struct ImGuiViewport", + "ImGuiViewportFlags": "int", + "ImGuiWindowFlags": "int", + "ImS16": "signed short", + "ImS32": "signed int", + "ImS64": "signed long long", + "ImS8": "signed char", + "ImTextureID": "void*", + "ImU16": "unsigned short", + "ImU32": "unsigned int", + "ImU64": "unsigned long long", + "ImU8": "unsigned char", + "ImVec2": "struct ImVec2", + "ImVec4": "struct ImVec4", + "ImWchar": "ImWchar32", + "ImWchar16": "unsigned short", + "ImWchar32": "unsigned int", + "const_iterator": "const value_type*", + "iterator": "value_type*", + "value_type": "T" +} \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master-freetype/typedefs_dict.lua b/imgui-sys/third-party/imgui-master-freetype/typedefs_dict.lua new file mode 100644 index 000000000..5deb10754 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/typedefs_dict.lua @@ -0,0 +1,94 @@ +local defs = {} +defs["ImColor"] = "struct ImColor" +defs["ImDrawCallback"] = "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);" +defs["ImDrawChannel"] = "struct ImDrawChannel" +defs["ImDrawCmd"] = "struct ImDrawCmd" +defs["ImDrawCmdHeader"] = "struct ImDrawCmdHeader" +defs["ImDrawData"] = "struct ImDrawData" +defs["ImDrawFlags"] = "int" +defs["ImDrawIdx"] = "unsigned short" +defs["ImDrawList"] = "struct ImDrawList" +defs["ImDrawListFlags"] = "int" +defs["ImDrawListSharedData"] = "struct ImDrawListSharedData" +defs["ImDrawListSplitter"] = "struct ImDrawListSplitter" +defs["ImDrawVert"] = "struct ImDrawVert" +defs["ImFont"] = "struct ImFont" +defs["ImFontAtlas"] = "struct ImFontAtlas" +defs["ImFontAtlasCustomRect"] = "struct ImFontAtlasCustomRect" +defs["ImFontAtlasFlags"] = "int" +defs["ImFontBuilderIO"] = "struct ImFontBuilderIO" +defs["ImFontConfig"] = "struct ImFontConfig" +defs["ImFontGlyph"] = "struct ImFontGlyph" +defs["ImFontGlyphRangesBuilder"] = "struct ImFontGlyphRangesBuilder" +defs["ImGuiBackendFlags"] = "int" +defs["ImGuiButtonFlags"] = "int" +defs["ImGuiCol"] = "int" +defs["ImGuiColorEditFlags"] = "int" +defs["ImGuiComboFlags"] = "int" +defs["ImGuiCond"] = "int" +defs["ImGuiConfigFlags"] = "int" +defs["ImGuiContext"] = "struct ImGuiContext" +defs["ImGuiDataType"] = "int" +defs["ImGuiDir"] = "int" +defs["ImGuiDragDropFlags"] = "int" +defs["ImGuiFocusedFlags"] = "int" +defs["ImGuiHoveredFlags"] = "int" +defs["ImGuiID"] = "unsigned int" +defs["ImGuiIO"] = "struct ImGuiIO" +defs["ImGuiInputTextCallback"] = "int(*)(ImGuiInputTextCallbackData* data);" +defs["ImGuiInputTextCallbackData"] = "struct ImGuiInputTextCallbackData" +defs["ImGuiInputTextFlags"] = "int" +defs["ImGuiKeyChord"] = "int" +defs["ImGuiKeyData"] = "struct ImGuiKeyData" +defs["ImGuiListClipper"] = "struct ImGuiListClipper" +defs["ImGuiMemAllocFunc"] = "void*(*)(size_t sz,void* user_data);" +defs["ImGuiMemFreeFunc"] = "void(*)(void* ptr,void* user_data);" +defs["ImGuiMouseButton"] = "int" +defs["ImGuiMouseCursor"] = "int" +defs["ImGuiOnceUponAFrame"] = "struct ImGuiOnceUponAFrame" +defs["ImGuiPayload"] = "struct ImGuiPayload" +defs["ImGuiPlatformImeData"] = "struct ImGuiPlatformImeData" +defs["ImGuiPopupFlags"] = "int" +defs["ImGuiSelectableFlags"] = "int" +defs["ImGuiSizeCallback"] = "void(*)(ImGuiSizeCallbackData* data);" +defs["ImGuiSizeCallbackData"] = "struct ImGuiSizeCallbackData" +defs["ImGuiSliderFlags"] = "int" +defs["ImGuiSortDirection"] = "int" +defs["ImGuiStorage"] = "struct ImGuiStorage" +defs["ImGuiStoragePair"] = "struct ImGuiStoragePair" +defs["ImGuiStyle"] = "struct ImGuiStyle" +defs["ImGuiStyleVar"] = "int" +defs["ImGuiTabBarFlags"] = "int" +defs["ImGuiTabItemFlags"] = "int" +defs["ImGuiTableBgTarget"] = "int" +defs["ImGuiTableColumnFlags"] = "int" +defs["ImGuiTableColumnSortSpecs"] = "struct ImGuiTableColumnSortSpecs" +defs["ImGuiTableFlags"] = "int" +defs["ImGuiTableRowFlags"] = "int" +defs["ImGuiTableSortSpecs"] = "struct ImGuiTableSortSpecs" +defs["ImGuiTextBuffer"] = "struct ImGuiTextBuffer" +defs["ImGuiTextFilter"] = "struct ImGuiTextFilter" +defs["ImGuiTextRange"] = "struct ImGuiTextRange" +defs["ImGuiTreeNodeFlags"] = "int" +defs["ImGuiViewport"] = "struct ImGuiViewport" +defs["ImGuiViewportFlags"] = "int" +defs["ImGuiWindowFlags"] = "int" +defs["ImS16"] = "signed short" +defs["ImS32"] = "signed int" +defs["ImS64"] = "signed long long" +defs["ImS8"] = "signed char" +defs["ImTextureID"] = "void*" +defs["ImU16"] = "unsigned short" +defs["ImU32"] = "unsigned int" +defs["ImU64"] = "unsigned long long" +defs["ImU8"] = "unsigned char" +defs["ImVec2"] = "struct ImVec2" +defs["ImVec4"] = "struct ImVec4" +defs["ImWchar"] = "ImWchar32" +defs["ImWchar16"] = "unsigned short" +defs["ImWchar32"] = "unsigned int" +defs["const_iterator"] = "const value_type*" +defs["iterator"] = "value_type*" +defs["value_type"] = "T" + +return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-master-freetype/update-cimgui-output.sh b/imgui-sys/third-party/imgui-master-freetype/update-cimgui-output.sh new file mode 100755 index 000000000..e90099fe6 --- /dev/null +++ b/imgui-sys/third-party/imgui-master-freetype/update-cimgui-output.sh @@ -0,0 +1,35 @@ +#!/bin/bash +set -euo pipefail + +# No good cross-platform 'readlink -f', so I apologise +SCRIPT_DIR=$(dirname ${0} | python3 -c 'import os, sys; print(os.path.abspath(sys.stdin.read().strip()))' ) +CIMGUI_DIR=${1:?} + +echo "${SCRIPT_DIR}" + +pushd "${CIMGUI_DIR}"/generator > /dev/null + +# Check if ${CIMGUI_DIR}/link exists as a symlink. +# If so, good, and we can tinker with it. +# Otherwise, ask user to remove it for us. +if [ -e ${CIMGUI_DIR}/imgui ] && [ ! -h ${CIMGUI_DIR}/imgui ]; then + echo "Please remove ${CIMGUI_DIR}/imgui so this script can link it to correct imgui version" + exit 1 +fi + +# Remove old symlink +rm ${CIMGUI_DIR}/imgui || : + +# Link to C++ code contained in imgui-rs, not whatever if in cimgui's repo +ln -s ${SCRIPT_DIR}/imgui ${CIMGUI_DIR}/imgui + +# Run the generator +luajit generator.lua gcc freetype -DIMGUI_USE_WCHAR32 + +# Tidy up +rm ${CIMGUI_DIR}/imgui # Remove symlink (no recursive rm) + +popd > /dev/null + +cp "${CIMGUI_DIR}"/cimgui.{h,cpp} "${SCRIPT_DIR}"/ +cp "${CIMGUI_DIR}"/generator/output/* "${SCRIPT_DIR}"/ diff --git a/imgui-sys/third-party/update-imgui.sh b/imgui-sys/third-party/update-imgui.sh index c867b9e85..cbda06104 100755 --- a/imgui-sys/third-party/update-imgui.sh +++ b/imgui-sys/third-party/update-imgui.sh @@ -6,3 +6,6 @@ SCRIPT_DIR=$(dirname ${0} | python3 -c 'import os, sys; print(os.path.abspath(sy cd ${SCRIPT_DIR} ./_update-imgui.sh ~/code/vendor/imgui v1.89.1 ./imgui-master/imgui ./_update-imgui.sh ~/code/vendor/imgui 540909bddf2f2b094a650b4bf5d01757fbd69418 ./imgui-docking/imgui + +./_update-imgui.sh ~/code/vendor/imgui v1.89.1 ./imgui-master-freetype/imgui +./_update-imgui.sh ~/code/vendor/imgui 540909bddf2f2b094a650b4bf5d01757fbd69418 ./imgui-docking-freetype/imgui diff --git a/xtask/src/bindgen.rs b/xtask/src/bindgen.rs index 142d70c84..d96366395 100644 --- a/xtask/src/bindgen.rs +++ b/xtask/src/bindgen.rs @@ -17,26 +17,33 @@ impl Bindgen { .unwrap_or_else(|| "imgui-sys-v0".to_string()); for variant in ["master", "docking"] { - let cimgui_output = root.join(&format!("imgui-sys/third-party/imgui-{}", variant)); + for flag in [None, Some("freetype")] { + let additional = match flag { + None => "".to_string(), + Some(x) => format!("-{}", x), + }; + let cimgui_output = root.join(&format!("imgui-sys/third-party/imgui-{}{}", variant, additional)); - let types = get_types(&cimgui_output.join("structs_and_enums.json"))?; - let funcs = get_definitions(&cimgui_output.join("definitions.json"))?; - let header = cimgui_output.join("cimgui.h"); + let types = get_types(&cimgui_output.join("structs_and_enums.json"))?; + let funcs = get_definitions(&cimgui_output.join("definitions.json"))?; + let header = cimgui_output.join("cimgui.h"); - let output_name = if variant != "master" { - format!("{}_bindings.rs", variant) - } else { - "bindings.rs".into() - }; + let output_name = match (variant, flag) { + ("master", None) => format!("bindings.rs"), + ("master", Some(f)) => format!("{}_bindings.rs", f), + (var, None) => format!("{}_bindings.rs", var), + (var, Some(f)) => format!("{}_{}_bindings.rs", var, f), + }; - generate_binding_file(&header, &output.join(&output_name), &types, &funcs, None)?; - generate_binding_file( - &header, - &output.join(&format!("wasm_{}", &output_name)), - &types, - &funcs, - Some(&wasm_name), - )?; + generate_binding_file(&header, &output.join(&output_name), &types, &funcs, None)?; + generate_binding_file( + &header, + &output.join(&format!("wasm_{}", &output_name)), + &types, + &funcs, + Some(&wasm_name), + )?; + } } Ok(()) From d9e2e65758f63d2386442df55bdb2e44bd3e3ce2 Mon Sep 17 00:00:00 2001 From: dbr Date: Wed, 4 Jan 2023 15:46:48 +1030 Subject: [PATCH 15/18] Fix docking+freetype bindings Was missing required flag to cimgui generator --- imgui-sys/src/docking_freetype_bindings.rs | 9263 +++- .../src/wasm_docking_freetype_bindings.rs | 9970 +++- .../imgui-docking-freetype/cimgui.cpp | 2659 +- .../imgui-docking-freetype/cimgui.h | 2378 +- .../imgui-docking-freetype/definitions.json | 39688 +++++++++++----- .../imgui-docking-freetype/definitions.lua | 15176 +++++- .../imgui-docking-freetype/overloads.txt | 146 +- .../structs_and_enums.json | 8550 +++- .../structs_and_enums.lua | 4248 ++ .../imgui-docking-freetype/typedefs_dict.json | 91 + .../imgui-docking-freetype/typedefs_dict.lua | 91 + .../update-cimgui-output.sh | 2 +- 12 files changed, 76293 insertions(+), 15969 deletions(-) diff --git a/imgui-sys/src/docking_freetype_bindings.rs b/imgui-sys/src/docking_freetype_bindings.rs index 2e88b6245..47f542300 100644 --- a/imgui-sys/src/docking_freetype_bindings.rs +++ b/imgui-sys/src/docking_freetype_bindings.rs @@ -82,21 +82,93 @@ where } } } +pub type __off_t = cty::c_long; +pub type __off64_t = cty::c_long; +pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImDrawListSharedData { +pub struct _IO_marker { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImFontBuilderIO { +pub struct _IO_codecvt { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImGuiContext { +pub struct _IO_wide_data { + _unused: [u8; 0], +} +pub type _IO_lock_t = cty::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _IO_FILE { + pub _flags: cty::c_int, + pub _IO_read_ptr: *mut cty::c_char, + pub _IO_read_end: *mut cty::c_char, + pub _IO_read_base: *mut cty::c_char, + pub _IO_write_base: *mut cty::c_char, + pub _IO_write_ptr: *mut cty::c_char, + pub _IO_write_end: *mut cty::c_char, + pub _IO_buf_base: *mut cty::c_char, + pub _IO_buf_end: *mut cty::c_char, + pub _IO_save_base: *mut cty::c_char, + pub _IO_backup_base: *mut cty::c_char, + pub _IO_save_end: *mut cty::c_char, + pub _markers: *mut _IO_marker, + pub _chain: *mut _IO_FILE, + pub _fileno: cty::c_int, + pub _flags2: cty::c_int, + pub _old_offset: __off_t, + pub _cur_column: cty::c_ushort, + pub _vtable_offset: cty::c_schar, + pub _shortbuf: [cty::c_char; 1usize], + pub _lock: *mut _IO_lock_t, + pub _offset: __off64_t, + pub _codecvt: *mut _IO_codecvt, + pub _wide_data: *mut _IO_wide_data, + pub _freeres_list: *mut _IO_FILE, + pub _freeres_buf: *mut cty::c_void, + pub __pad5: usize, + pub _mode: cty::c_int, + pub _unused2: [cty::c_char; 20usize], +} +impl Default for _IO_FILE { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImGuiDockRequest { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImGuiDockNodeSettings { _unused: [u8; 0], } +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_const_charPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *const cty::c_char, +} +impl Default for ImVector_const_charPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} pub type ImGuiCol = cty::c_int; pub type ImGuiCond = cty::c_int; pub type ImGuiDataType = cty::c_int; @@ -138,7 +210,9 @@ pub type ImS8 = cty::c_schar; pub type ImU8 = cty::c_uchar; pub type ImS16 = cty::c_short; pub type ImU16 = cty::c_ushort; +pub type ImS32 = cty::c_int; pub type ImU32 = cty::c_uint; +pub type ImS64 = cty::c_longlong; pub type ImU64 = cty::c_ulonglong; pub type ImWchar16 = cty::c_ushort; pub type ImWchar32 = cty::c_uint; @@ -2005,2961 +2079,8724 @@ pub struct ImGuiPlatformImeData { pub InputPos: ImVec2, pub InputLineHeight: f32, } -pub const ImGuiFreeTypeBuilderFlags_NoHinting: ImGuiFreeTypeBuilderFlags = 1; -pub const ImGuiFreeTypeBuilderFlags_NoAutoHint: ImGuiFreeTypeBuilderFlags = 2; -pub const ImGuiFreeTypeBuilderFlags_ForceAutoHint: ImGuiFreeTypeBuilderFlags = 4; -pub const ImGuiFreeTypeBuilderFlags_LightHinting: ImGuiFreeTypeBuilderFlags = 8; -pub const ImGuiFreeTypeBuilderFlags_MonoHinting: ImGuiFreeTypeBuilderFlags = 16; -pub const ImGuiFreeTypeBuilderFlags_Bold: ImGuiFreeTypeBuilderFlags = 32; -pub const ImGuiFreeTypeBuilderFlags_Oblique: ImGuiFreeTypeBuilderFlags = 64; -pub const ImGuiFreeTypeBuilderFlags_Monochrome: ImGuiFreeTypeBuilderFlags = 128; -pub const ImGuiFreeTypeBuilderFlags_LoadColor: ImGuiFreeTypeBuilderFlags = 256; -pub const ImGuiFreeTypeBuilderFlags_Bitmap: ImGuiFreeTypeBuilderFlags = 512; -pub type ImGuiFreeTypeBuilderFlags = cty::c_uint; -extern "C" { - pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; -} -extern "C" { - pub fn ImVec2_destroy(self_: *mut ImVec2); +pub type ImGuiDataAuthority = cty::c_int; +pub type ImGuiLayoutType = cty::c_int; +pub type ImGuiActivateFlags = cty::c_int; +pub type ImGuiDebugLogFlags = cty::c_int; +pub type ImGuiInputFlags = cty::c_int; +pub type ImGuiItemFlags = cty::c_int; +pub type ImGuiItemStatusFlags = cty::c_int; +pub type ImGuiOldColumnFlags = cty::c_int; +pub type ImGuiNavHighlightFlags = cty::c_int; +pub type ImGuiNavMoveFlags = cty::c_int; +pub type ImGuiNextItemDataFlags = cty::c_int; +pub type ImGuiNextWindowDataFlags = cty::c_int; +pub type ImGuiScrollFlags = cty::c_int; +pub type ImGuiSeparatorFlags = cty::c_int; +pub type ImGuiTextFlags = cty::c_int; +pub type ImGuiTooltipFlags = cty::c_int; +pub type ImGuiErrorLogCallback = ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, fmt: *const cty::c_char, ...), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct StbUndoRecord { + pub where_: cty::c_int, + pub insert_length: cty::c_int, + pub delete_length: cty::c_int, + pub char_storage: cty::c_int, } -extern "C" { - pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct StbUndoState { + pub undo_rec: [StbUndoRecord; 99usize], + pub undo_char: [ImWchar; 999usize], + pub undo_point: cty::c_short, + pub redo_point: cty::c_short, + pub undo_char_point: cty::c_int, + pub redo_char_point: cty::c_int, +} +impl Default for StbUndoState { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct STB_TexteditState { + pub cursor: cty::c_int, + pub select_start: cty::c_int, + pub select_end: cty::c_int, + pub insert_mode: cty::c_uchar, + pub row_count_per_page: cty::c_int, + pub cursor_at_end_of_line: cty::c_uchar, + pub initialized: cty::c_uchar, + pub has_preferred_x: cty::c_uchar, + pub single_line: cty::c_uchar, + pub padding1: cty::c_uchar, + pub padding2: cty::c_uchar, + pub padding3: cty::c_uchar, + pub preferred_x: f32, + pub undostate: StbUndoState, +} +impl Default for STB_TexteditState { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn ImVec4_destroy(self_: *mut ImVec4); +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct StbTexteditRow { + pub x0: f32, + pub x1: f32, + pub baseline_y_delta: f32, + pub ymin: f32, + pub ymax: f32, + pub num_chars: cty::c_int, +} +pub type ImFileHandle = *mut FILE; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec1 { + pub x: f32, } -extern "C" { - pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVec2ih { + pub x: cty::c_short, + pub y: cty::c_short, } -extern "C" { - pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImRect { + pub Min: ImVec2, + pub Max: ImVec2, } -extern "C" { - pub fn igDestroyContext(ctx: *mut ImGuiContext); +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImBitVector { + pub Storage: ImVector_ImU32, } -extern "C" { - pub fn igGetCurrentContext() -> *mut ImGuiContext; +impl Default for ImBitVector { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn igSetCurrentContext(ctx: *mut ImGuiContext); +pub type ImPoolIdx = cty::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_int { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_int, } -extern "C" { - pub fn igGetIO() -> *mut ImGuiIO; +impl Default for ImVector_int { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn igGetStyle() -> *mut ImGuiStyle; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextIndex { + pub LineOffsets: ImVector_int, + pub EndOffset: cty::c_int, } -extern "C" { - pub fn igNewFrame(); +impl Default for ImGuiTextIndex { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn igEndFrame(); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawListSharedData { + pub TexUvWhitePixel: ImVec2, + pub Font: *mut ImFont, + pub FontSize: f32, + pub CurveTessellationTol: f32, + pub CircleSegmentMaxError: f32, + pub ClipRectFullscreen: ImVec4, + pub InitialFlags: ImDrawListFlags, + pub TempBuffer: ImVector_ImVec2, + pub ArcFastVtx: [ImVec2; 48usize], + pub ArcFastRadiusCutoff: f32, + pub CircleSegmentCounts: [ImU8; 64usize], + pub TexUvLines: *const ImVec4, +} +impl Default for ImDrawListSharedData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn igRender(); +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawListPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImDrawList, } -extern "C" { - pub fn igGetDrawData() -> *mut ImDrawData; +impl Default for ImVector_ImDrawListPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn igShowDemoWindow(p_open: *mut bool); +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawDataBuilder { + pub Layers: [ImVector_ImDrawListPtr; 2usize], } -extern "C" { - pub fn igShowMetricsWindow(p_open: *mut bool); +impl Default for ImDrawDataBuilder { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn igShowDebugLogWindow(p_open: *mut bool); +pub const ImGuiItemFlags_None: ImGuiItemFlags_ = 0; +pub const ImGuiItemFlags_NoTabStop: ImGuiItemFlags_ = 1; +pub const ImGuiItemFlags_ButtonRepeat: ImGuiItemFlags_ = 2; +pub const ImGuiItemFlags_Disabled: ImGuiItemFlags_ = 4; +pub const ImGuiItemFlags_NoNav: ImGuiItemFlags_ = 8; +pub const ImGuiItemFlags_NoNavDefaultFocus: ImGuiItemFlags_ = 16; +pub const ImGuiItemFlags_SelectableDontClosePopup: ImGuiItemFlags_ = 32; +pub const ImGuiItemFlags_MixedValue: ImGuiItemFlags_ = 64; +pub const ImGuiItemFlags_ReadOnly: ImGuiItemFlags_ = 128; +pub const ImGuiItemFlags_NoWindowHoverableCheck: ImGuiItemFlags_ = 256; +pub const ImGuiItemFlags_Inputable: ImGuiItemFlags_ = 1024; +pub type ImGuiItemFlags_ = cty::c_uint; +pub const ImGuiItemStatusFlags_None: ImGuiItemStatusFlags_ = 0; +pub const ImGuiItemStatusFlags_HoveredRect: ImGuiItemStatusFlags_ = 1; +pub const ImGuiItemStatusFlags_HasDisplayRect: ImGuiItemStatusFlags_ = 2; +pub const ImGuiItemStatusFlags_Edited: ImGuiItemStatusFlags_ = 4; +pub const ImGuiItemStatusFlags_ToggledSelection: ImGuiItemStatusFlags_ = 8; +pub const ImGuiItemStatusFlags_ToggledOpen: ImGuiItemStatusFlags_ = 16; +pub const ImGuiItemStatusFlags_HasDeactivated: ImGuiItemStatusFlags_ = 32; +pub const ImGuiItemStatusFlags_Deactivated: ImGuiItemStatusFlags_ = 64; +pub const ImGuiItemStatusFlags_HoveredWindow: ImGuiItemStatusFlags_ = 128; +pub const ImGuiItemStatusFlags_FocusedByTabbing: ImGuiItemStatusFlags_ = 256; +pub const ImGuiItemStatusFlags_Visible: ImGuiItemStatusFlags_ = 512; +pub type ImGuiItemStatusFlags_ = cty::c_uint; +pub const ImGuiInputTextFlags_Multiline: ImGuiInputTextFlagsPrivate_ = 67108864; +pub const ImGuiInputTextFlags_NoMarkEdited: ImGuiInputTextFlagsPrivate_ = 134217728; +pub const ImGuiInputTextFlags_MergedItem: ImGuiInputTextFlagsPrivate_ = 268435456; +pub type ImGuiInputTextFlagsPrivate_ = cty::c_uint; +pub const ImGuiButtonFlags_PressedOnClick: ImGuiButtonFlagsPrivate_ = 16; +pub const ImGuiButtonFlags_PressedOnClickRelease: ImGuiButtonFlagsPrivate_ = 32; +pub const ImGuiButtonFlags_PressedOnClickReleaseAnywhere: ImGuiButtonFlagsPrivate_ = 64; +pub const ImGuiButtonFlags_PressedOnRelease: ImGuiButtonFlagsPrivate_ = 128; +pub const ImGuiButtonFlags_PressedOnDoubleClick: ImGuiButtonFlagsPrivate_ = 256; +pub const ImGuiButtonFlags_PressedOnDragDropHold: ImGuiButtonFlagsPrivate_ = 512; +pub const ImGuiButtonFlags_Repeat: ImGuiButtonFlagsPrivate_ = 1024; +pub const ImGuiButtonFlags_FlattenChildren: ImGuiButtonFlagsPrivate_ = 2048; +pub const ImGuiButtonFlags_AllowItemOverlap: ImGuiButtonFlagsPrivate_ = 4096; +pub const ImGuiButtonFlags_DontClosePopups: ImGuiButtonFlagsPrivate_ = 8192; +pub const ImGuiButtonFlags_AlignTextBaseLine: ImGuiButtonFlagsPrivate_ = 32768; +pub const ImGuiButtonFlags_NoKeyModifiers: ImGuiButtonFlagsPrivate_ = 65536; +pub const ImGuiButtonFlags_NoHoldingActiveId: ImGuiButtonFlagsPrivate_ = 131072; +pub const ImGuiButtonFlags_NoNavFocus: ImGuiButtonFlagsPrivate_ = 262144; +pub const ImGuiButtonFlags_NoHoveredOnFocus: ImGuiButtonFlagsPrivate_ = 524288; +pub const ImGuiButtonFlags_NoSetKeyOwner: ImGuiButtonFlagsPrivate_ = 1048576; +pub const ImGuiButtonFlags_NoTestKeyOwner: ImGuiButtonFlagsPrivate_ = 2097152; +pub const ImGuiButtonFlags_PressedOnMask_: ImGuiButtonFlagsPrivate_ = 1008; +pub const ImGuiButtonFlags_PressedOnDefault_: ImGuiButtonFlagsPrivate_ = 32; +pub type ImGuiButtonFlagsPrivate_ = cty::c_uint; +pub const ImGuiComboFlags_CustomPreview: ImGuiComboFlagsPrivate_ = 1048576; +pub type ImGuiComboFlagsPrivate_ = cty::c_uint; +pub const ImGuiSliderFlags_Vertical: ImGuiSliderFlagsPrivate_ = 1048576; +pub const ImGuiSliderFlags_ReadOnly: ImGuiSliderFlagsPrivate_ = 2097152; +pub type ImGuiSliderFlagsPrivate_ = cty::c_uint; +pub const ImGuiSelectableFlags_NoHoldingActiveID: ImGuiSelectableFlagsPrivate_ = 1048576; +pub const ImGuiSelectableFlags_SelectOnNav: ImGuiSelectableFlagsPrivate_ = 2097152; +pub const ImGuiSelectableFlags_SelectOnClick: ImGuiSelectableFlagsPrivate_ = 4194304; +pub const ImGuiSelectableFlags_SelectOnRelease: ImGuiSelectableFlagsPrivate_ = 8388608; +pub const ImGuiSelectableFlags_SpanAvailWidth: ImGuiSelectableFlagsPrivate_ = 16777216; +pub const ImGuiSelectableFlags_DrawHoveredWhenHeld: ImGuiSelectableFlagsPrivate_ = 33554432; +pub const ImGuiSelectableFlags_SetNavIdOnHover: ImGuiSelectableFlagsPrivate_ = 67108864; +pub const ImGuiSelectableFlags_NoPadWithHalfSpacing: ImGuiSelectableFlagsPrivate_ = 134217728; +pub const ImGuiSelectableFlags_NoSetKeyOwner: ImGuiSelectableFlagsPrivate_ = 268435456; +pub type ImGuiSelectableFlagsPrivate_ = cty::c_uint; +pub const ImGuiTreeNodeFlags_ClipLabelForTrailingButton: ImGuiTreeNodeFlagsPrivate_ = 1048576; +pub type ImGuiTreeNodeFlagsPrivate_ = cty::c_uint; +pub const ImGuiSeparatorFlags_None: ImGuiSeparatorFlags_ = 0; +pub const ImGuiSeparatorFlags_Horizontal: ImGuiSeparatorFlags_ = 1; +pub const ImGuiSeparatorFlags_Vertical: ImGuiSeparatorFlags_ = 2; +pub const ImGuiSeparatorFlags_SpanAllColumns: ImGuiSeparatorFlags_ = 4; +pub type ImGuiSeparatorFlags_ = cty::c_uint; +pub const ImGuiTextFlags_None: ImGuiTextFlags_ = 0; +pub const ImGuiTextFlags_NoWidthForLargeClippedText: ImGuiTextFlags_ = 1; +pub type ImGuiTextFlags_ = cty::c_uint; +pub const ImGuiTooltipFlags_None: ImGuiTooltipFlags_ = 0; +pub const ImGuiTooltipFlags_OverridePreviousTooltip: ImGuiTooltipFlags_ = 1; +pub type ImGuiTooltipFlags_ = cty::c_uint; +pub const ImGuiLayoutType_Horizontal: ImGuiLayoutType_ = 0; +pub const ImGuiLayoutType_Vertical: ImGuiLayoutType_ = 1; +pub type ImGuiLayoutType_ = cty::c_uint; +pub const ImGuiLogType_None: ImGuiLogType = 0; +pub const ImGuiLogType_TTY: ImGuiLogType = 1; +pub const ImGuiLogType_File: ImGuiLogType = 2; +pub const ImGuiLogType_Buffer: ImGuiLogType = 3; +pub const ImGuiLogType_Clipboard: ImGuiLogType = 4; +pub type ImGuiLogType = cty::c_uint; +pub const ImGuiAxis_None: ImGuiAxis = -1; +pub const ImGuiAxis_X: ImGuiAxis = 0; +pub const ImGuiAxis_Y: ImGuiAxis = 1; +pub type ImGuiAxis = cty::c_int; +pub const ImGuiPlotType_Lines: ImGuiPlotType = 0; +pub const ImGuiPlotType_Histogram: ImGuiPlotType = 1; +pub type ImGuiPlotType = cty::c_uint; +pub const ImGuiPopupPositionPolicy_Default: ImGuiPopupPositionPolicy = 0; +pub const ImGuiPopupPositionPolicy_ComboBox: ImGuiPopupPositionPolicy = 1; +pub const ImGuiPopupPositionPolicy_Tooltip: ImGuiPopupPositionPolicy = 2; +pub type ImGuiPopupPositionPolicy = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiDataTypeTempStorage { + pub Data: [ImU8; 8usize], } -extern "C" { - pub fn igShowStackToolWindow(p_open: *mut bool); +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiDataTypeInfo { + pub Size: usize, + pub Name: *const cty::c_char, + pub PrintFmt: *const cty::c_char, + pub ScanFmt: *const cty::c_char, } -extern "C" { - pub fn igShowAboutWindow(p_open: *mut bool); +impl Default for ImGuiDataTypeInfo { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn igShowStyleEditor(ref_: *mut ImGuiStyle); +pub const ImGuiDataType_String: ImGuiDataTypePrivate_ = 11; +pub const ImGuiDataType_Pointer: ImGuiDataTypePrivate_ = 12; +pub const ImGuiDataType_ID: ImGuiDataTypePrivate_ = 13; +pub type ImGuiDataTypePrivate_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiColorMod { + pub Col: ImGuiCol, + pub BackupValue: ImVec4, } -extern "C" { - pub fn igShowStyleSelector(label: *const cty::c_char) -> bool; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiStyleMod { + pub VarIdx: ImGuiStyleVar, + pub __bindgen_anon_1: ImGuiStyleMod__bindgen_ty_1, } -extern "C" { - pub fn igShowFontSelector(label: *const cty::c_char); +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiStyleMod__bindgen_ty_1 { + pub BackupInt: [cty::c_int; 2usize], + pub BackupFloat: [f32; 2usize], } -extern "C" { - pub fn igShowUserGuide(); +impl Default for ImGuiStyleMod__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn igGetVersion() -> *const cty::c_char; +impl ::core::fmt::Debug for ImGuiStyleMod__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiStyleMod__bindgen_ty_1 {{ union }}") + } } -extern "C" { - pub fn igStyleColorsDark(dst: *mut ImGuiStyle); +impl Default for ImGuiStyleMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub fn igStyleColorsLight(dst: *mut ImGuiStyle); +impl ::core::fmt::Debug for ImGuiStyleMod { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!( + f, + "ImGuiStyleMod {{ VarIdx: {:?}, __bindgen_anon_1: {:?} }}", + self.VarIdx, self.__bindgen_anon_1 + ) + } } -extern "C" { - pub fn igStyleColorsClassic(dst: *mut ImGuiStyle); +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiComboPreviewData { + pub PreviewRect: ImRect, + pub BackupCursorPos: ImVec2, + pub BackupCursorMaxPos: ImVec2, + pub BackupCursorPosPrevLine: ImVec2, + pub BackupPrevLineTextBaseOffset: f32, + pub BackupLayout: ImGuiLayoutType, } -extern "C" { - pub fn igBegin(name: *const cty::c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiGroupData { + pub WindowID: ImGuiID, + pub BackupCursorPos: ImVec2, + pub BackupCursorMaxPos: ImVec2, + pub BackupIndent: ImVec1, + pub BackupGroupOffset: ImVec1, + pub BackupCurrLineSize: ImVec2, + pub BackupCurrLineTextBaseOffset: f32, + pub BackupActiveIdIsAlive: ImGuiID, + pub BackupActiveIdPreviousFrameIsAlive: bool, + pub BackupHoveredIdIsAlive: bool, + pub EmitItem: bool, } -extern "C" { - pub fn igEnd(); +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiMenuColumns { + pub TotalWidth: ImU32, + pub NextTotalWidth: ImU32, + pub Spacing: ImU16, + pub OffsetIcon: ImU16, + pub OffsetLabel: ImU16, + pub OffsetShortcut: ImU16, + pub OffsetMark: ImU16, + pub Widths: [ImU16; 4usize], } -extern "C" { - pub fn igBeginChild_Str( - str_id: *const cty::c_char, - size: ImVec2, - border: bool, - flags: ImGuiWindowFlags, - ) -> bool; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiInputTextState { + pub ID: ImGuiID, + pub CurLenW: cty::c_int, + pub CurLenA: cty::c_int, + pub TextW: ImVector_ImWchar, + pub TextA: ImVector_char, + pub InitialTextA: ImVector_char, + pub TextAIsValid: bool, + pub BufCapacityA: cty::c_int, + pub ScrollX: f32, + pub Stb: STB_TexteditState, + pub CursorAnim: f32, + pub CursorFollow: bool, + pub SelectedAllMouseLock: bool, + pub Edited: bool, + pub Flags: ImGuiInputTextFlags, +} +impl Default for ImGuiInputTextState { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiPopupData { + pub PopupId: ImGuiID, + pub Window: *mut ImGuiWindow, + pub BackupNavWindow: *mut ImGuiWindow, + pub ParentNavLayer: cty::c_int, + pub OpenFrameCount: cty::c_int, + pub OpenParentId: ImGuiID, + pub OpenPopupPos: ImVec2, + pub OpenMousePos: ImVec2, +} +impl Default for ImGuiPopupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiNextWindowDataFlags_None: ImGuiNextWindowDataFlags_ = 0; +pub const ImGuiNextWindowDataFlags_HasPos: ImGuiNextWindowDataFlags_ = 1; +pub const ImGuiNextWindowDataFlags_HasSize: ImGuiNextWindowDataFlags_ = 2; +pub const ImGuiNextWindowDataFlags_HasContentSize: ImGuiNextWindowDataFlags_ = 4; +pub const ImGuiNextWindowDataFlags_HasCollapsed: ImGuiNextWindowDataFlags_ = 8; +pub const ImGuiNextWindowDataFlags_HasSizeConstraint: ImGuiNextWindowDataFlags_ = 16; +pub const ImGuiNextWindowDataFlags_HasFocus: ImGuiNextWindowDataFlags_ = 32; +pub const ImGuiNextWindowDataFlags_HasBgAlpha: ImGuiNextWindowDataFlags_ = 64; +pub const ImGuiNextWindowDataFlags_HasScroll: ImGuiNextWindowDataFlags_ = 128; +pub const ImGuiNextWindowDataFlags_HasViewport: ImGuiNextWindowDataFlags_ = 256; +pub const ImGuiNextWindowDataFlags_HasDock: ImGuiNextWindowDataFlags_ = 512; +pub const ImGuiNextWindowDataFlags_HasWindowClass: ImGuiNextWindowDataFlags_ = 1024; +pub type ImGuiNextWindowDataFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiNextWindowData { + pub Flags: ImGuiNextWindowDataFlags, + pub PosCond: ImGuiCond, + pub SizeCond: ImGuiCond, + pub CollapsedCond: ImGuiCond, + pub DockCond: ImGuiCond, + pub PosVal: ImVec2, + pub PosPivotVal: ImVec2, + pub SizeVal: ImVec2, + pub ContentSizeVal: ImVec2, + pub ScrollVal: ImVec2, + pub PosUndock: bool, + pub CollapsedVal: bool, + pub SizeConstraintRect: ImRect, + pub SizeCallback: ImGuiSizeCallback, + pub SizeCallbackUserData: *mut cty::c_void, + pub BgAlphaVal: f32, + pub ViewportId: ImGuiID, + pub DockId: ImGuiID, + pub WindowClass: ImGuiWindowClass, + pub MenuBarOffsetMinVal: ImVec2, +} +impl Default for ImGuiNextWindowData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiNextItemDataFlags_None: ImGuiNextItemDataFlags_ = 0; +pub const ImGuiNextItemDataFlags_HasWidth: ImGuiNextItemDataFlags_ = 1; +pub const ImGuiNextItemDataFlags_HasOpen: ImGuiNextItemDataFlags_ = 2; +pub type ImGuiNextItemDataFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiNextItemData { + pub Flags: ImGuiNextItemDataFlags, + pub Width: f32, + pub FocusScopeId: ImGuiID, + pub OpenCond: ImGuiCond, + pub OpenVal: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiLastItemData { + pub ID: ImGuiID, + pub InFlags: ImGuiItemFlags, + pub StatusFlags: ImGuiItemStatusFlags, + pub Rect: ImRect, + pub NavRect: ImRect, + pub DisplayRect: ImRect, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStackSizes { + pub SizeOfIDStack: cty::c_short, + pub SizeOfColorStack: cty::c_short, + pub SizeOfStyleVarStack: cty::c_short, + pub SizeOfFontStack: cty::c_short, + pub SizeOfFocusScopeStack: cty::c_short, + pub SizeOfGroupStack: cty::c_short, + pub SizeOfItemFlagsStack: cty::c_short, + pub SizeOfBeginPopupStack: cty::c_short, + pub SizeOfDisabledStack: cty::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiWindowStackData { + pub Window: *mut ImGuiWindow, + pub ParentLastItemDataBackup: ImGuiLastItemData, + pub StackSizesOnBegin: ImGuiStackSizes, +} +impl Default for ImGuiWindowStackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiShrinkWidthItem { + pub Index: cty::c_int, + pub Width: f32, + pub InitialWidth: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPtrOrIndex { + pub Ptr: *mut cty::c_void, + pub Index: cty::c_int, +} +impl Default for ImGuiPtrOrIndex { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiInputEventType_None: ImGuiInputEventType = 0; +pub const ImGuiInputEventType_MousePos: ImGuiInputEventType = 1; +pub const ImGuiInputEventType_MouseWheel: ImGuiInputEventType = 2; +pub const ImGuiInputEventType_MouseButton: ImGuiInputEventType = 3; +pub const ImGuiInputEventType_MouseViewport: ImGuiInputEventType = 4; +pub const ImGuiInputEventType_Key: ImGuiInputEventType = 5; +pub const ImGuiInputEventType_Text: ImGuiInputEventType = 6; +pub const ImGuiInputEventType_Focus: ImGuiInputEventType = 7; +pub const ImGuiInputEventType_COUNT: ImGuiInputEventType = 8; +pub type ImGuiInputEventType = cty::c_uint; +pub const ImGuiInputSource_None: ImGuiInputSource = 0; +pub const ImGuiInputSource_Mouse: ImGuiInputSource = 1; +pub const ImGuiInputSource_Keyboard: ImGuiInputSource = 2; +pub const ImGuiInputSource_Gamepad: ImGuiInputSource = 3; +pub const ImGuiInputSource_Clipboard: ImGuiInputSource = 4; +pub const ImGuiInputSource_Nav: ImGuiInputSource = 5; +pub const ImGuiInputSource_COUNT: ImGuiInputSource = 6; +pub type ImGuiInputSource = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventMousePos { + pub PosX: f32, + pub PosY: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventMouseWheel { + pub WheelX: f32, + pub WheelY: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventMouseButton { + pub Button: cty::c_int, + pub Down: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventMouseViewport { + pub HoveredViewportID: ImGuiID, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventKey { + pub Key: ImGuiKey, + pub Down: bool, + pub AnalogValue: f32, +} +impl Default for ImGuiInputEventKey { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventText { + pub Char: cty::c_uint, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventAppFocused { + pub Focused: bool, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiInputEvent { + pub Type: ImGuiInputEventType, + pub Source: ImGuiInputSource, + pub __bindgen_anon_1: ImGuiInputEvent__bindgen_ty_1, + pub AddedByTestEngine: bool, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiInputEvent__bindgen_ty_1 { + pub MousePos: ImGuiInputEventMousePos, + pub MouseWheel: ImGuiInputEventMouseWheel, + pub MouseButton: ImGuiInputEventMouseButton, + pub MouseViewport: ImGuiInputEventMouseViewport, + pub Key: ImGuiInputEventKey, + pub Text: ImGuiInputEventText, + pub AppFocused: ImGuiInputEventAppFocused, +} +impl Default for ImGuiInputEvent__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiInputEvent__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiInputEvent__bindgen_ty_1 {{ union }}") + } +} +impl Default for ImGuiInputEvent { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiInputEvent { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write ! (f , "ImGuiInputEvent {{ Type: {:?}, Source: {:?}, __bindgen_anon_1: {:?}, AddedByTestEngine: {:?} }}" , self . Type , self . Source , self . __bindgen_anon_1 , self . AddedByTestEngine) + } +} +pub type ImGuiKeyRoutingIndex = ImS16; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyRoutingData { + pub NextEntryIndex: ImGuiKeyRoutingIndex, + pub Mods: ImU16, + pub RoutingNextScore: ImU8, + pub RoutingCurr: ImGuiID, + pub RoutingNext: ImGuiID, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiKeyRoutingData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiKeyRoutingData, +} +impl Default for ImVector_ImGuiKeyRoutingData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyRoutingTable { + pub Index: [ImGuiKeyRoutingIndex; 140usize], + pub Entries: ImVector_ImGuiKeyRoutingData, + pub EntriesNext: ImVector_ImGuiKeyRoutingData, +} +impl Default for ImGuiKeyRoutingTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyOwnerData { + pub OwnerCurr: ImGuiID, + pub OwnerNext: ImGuiID, + pub LockThisFrame: bool, + pub LockUntilRelease: bool, +} +pub const ImGuiInputFlags_None: ImGuiInputFlags_ = 0; +pub const ImGuiInputFlags_Repeat: ImGuiInputFlags_ = 1; +pub const ImGuiInputFlags_RepeatRateDefault: ImGuiInputFlags_ = 2; +pub const ImGuiInputFlags_RepeatRateNavMove: ImGuiInputFlags_ = 4; +pub const ImGuiInputFlags_RepeatRateNavTweak: ImGuiInputFlags_ = 8; +pub const ImGuiInputFlags_RepeatRateMask_: ImGuiInputFlags_ = 14; +pub const ImGuiInputFlags_CondHovered: ImGuiInputFlags_ = 16; +pub const ImGuiInputFlags_CondActive: ImGuiInputFlags_ = 32; +pub const ImGuiInputFlags_CondDefault_: ImGuiInputFlags_ = 48; +pub const ImGuiInputFlags_CondMask_: ImGuiInputFlags_ = 48; +pub const ImGuiInputFlags_LockThisFrame: ImGuiInputFlags_ = 64; +pub const ImGuiInputFlags_LockUntilRelease: ImGuiInputFlags_ = 128; +pub const ImGuiInputFlags_RouteFocused: ImGuiInputFlags_ = 256; +pub const ImGuiInputFlags_RouteGlobalLow: ImGuiInputFlags_ = 512; +pub const ImGuiInputFlags_RouteGlobal: ImGuiInputFlags_ = 1024; +pub const ImGuiInputFlags_RouteGlobalHigh: ImGuiInputFlags_ = 2048; +pub const ImGuiInputFlags_RouteMask_: ImGuiInputFlags_ = 3840; +pub const ImGuiInputFlags_RouteAlways: ImGuiInputFlags_ = 4096; +pub const ImGuiInputFlags_RouteUnlessBgFocused: ImGuiInputFlags_ = 8192; +pub const ImGuiInputFlags_RouteExtraMask_: ImGuiInputFlags_ = 12288; +pub const ImGuiInputFlags_SupportedByIsKeyPressed: ImGuiInputFlags_ = 15; +pub const ImGuiInputFlags_SupportedByShortcut: ImGuiInputFlags_ = 16143; +pub const ImGuiInputFlags_SupportedBySetKeyOwner: ImGuiInputFlags_ = 192; +pub const ImGuiInputFlags_SupportedBySetItemKeyOwner: ImGuiInputFlags_ = 240; +pub type ImGuiInputFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiListClipperRange { + pub Min: cty::c_int, + pub Max: cty::c_int, + pub PosToIndexConvert: bool, + pub PosToIndexOffsetMin: ImS8, + pub PosToIndexOffsetMax: ImS8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiListClipperRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiListClipperRange, +} +impl Default for ImVector_ImGuiListClipperRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiListClipperData { + pub ListClipper: *mut ImGuiListClipper, + pub LossynessOffset: f32, + pub StepNo: cty::c_int, + pub ItemsFrozen: cty::c_int, + pub Ranges: ImVector_ImGuiListClipperRange, +} +impl Default for ImGuiListClipperData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiActivateFlags_None: ImGuiActivateFlags_ = 0; +pub const ImGuiActivateFlags_PreferInput: ImGuiActivateFlags_ = 1; +pub const ImGuiActivateFlags_PreferTweak: ImGuiActivateFlags_ = 2; +pub const ImGuiActivateFlags_TryToPreserveState: ImGuiActivateFlags_ = 4; +pub type ImGuiActivateFlags_ = cty::c_uint; +pub const ImGuiScrollFlags_None: ImGuiScrollFlags_ = 0; +pub const ImGuiScrollFlags_KeepVisibleEdgeX: ImGuiScrollFlags_ = 1; +pub const ImGuiScrollFlags_KeepVisibleEdgeY: ImGuiScrollFlags_ = 2; +pub const ImGuiScrollFlags_KeepVisibleCenterX: ImGuiScrollFlags_ = 4; +pub const ImGuiScrollFlags_KeepVisibleCenterY: ImGuiScrollFlags_ = 8; +pub const ImGuiScrollFlags_AlwaysCenterX: ImGuiScrollFlags_ = 16; +pub const ImGuiScrollFlags_AlwaysCenterY: ImGuiScrollFlags_ = 32; +pub const ImGuiScrollFlags_NoScrollParent: ImGuiScrollFlags_ = 64; +pub const ImGuiScrollFlags_MaskX_: ImGuiScrollFlags_ = 21; +pub const ImGuiScrollFlags_MaskY_: ImGuiScrollFlags_ = 42; +pub type ImGuiScrollFlags_ = cty::c_uint; +pub const ImGuiNavHighlightFlags_None: ImGuiNavHighlightFlags_ = 0; +pub const ImGuiNavHighlightFlags_TypeDefault: ImGuiNavHighlightFlags_ = 1; +pub const ImGuiNavHighlightFlags_TypeThin: ImGuiNavHighlightFlags_ = 2; +pub const ImGuiNavHighlightFlags_AlwaysDraw: ImGuiNavHighlightFlags_ = 4; +pub const ImGuiNavHighlightFlags_NoRounding: ImGuiNavHighlightFlags_ = 8; +pub type ImGuiNavHighlightFlags_ = cty::c_uint; +pub const ImGuiNavMoveFlags_None: ImGuiNavMoveFlags_ = 0; +pub const ImGuiNavMoveFlags_LoopX: ImGuiNavMoveFlags_ = 1; +pub const ImGuiNavMoveFlags_LoopY: ImGuiNavMoveFlags_ = 2; +pub const ImGuiNavMoveFlags_WrapX: ImGuiNavMoveFlags_ = 4; +pub const ImGuiNavMoveFlags_WrapY: ImGuiNavMoveFlags_ = 8; +pub const ImGuiNavMoveFlags_AllowCurrentNavId: ImGuiNavMoveFlags_ = 16; +pub const ImGuiNavMoveFlags_AlsoScoreVisibleSet: ImGuiNavMoveFlags_ = 32; +pub const ImGuiNavMoveFlags_ScrollToEdgeY: ImGuiNavMoveFlags_ = 64; +pub const ImGuiNavMoveFlags_Forwarded: ImGuiNavMoveFlags_ = 128; +pub const ImGuiNavMoveFlags_DebugNoResult: ImGuiNavMoveFlags_ = 256; +pub const ImGuiNavMoveFlags_FocusApi: ImGuiNavMoveFlags_ = 512; +pub const ImGuiNavMoveFlags_Tabbing: ImGuiNavMoveFlags_ = 1024; +pub const ImGuiNavMoveFlags_Activate: ImGuiNavMoveFlags_ = 2048; +pub const ImGuiNavMoveFlags_DontSetNavHighlight: ImGuiNavMoveFlags_ = 4096; +pub type ImGuiNavMoveFlags_ = cty::c_uint; +pub const ImGuiNavLayer_Main: ImGuiNavLayer = 0; +pub const ImGuiNavLayer_Menu: ImGuiNavLayer = 1; +pub const ImGuiNavLayer_COUNT: ImGuiNavLayer = 2; +pub type ImGuiNavLayer = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiNavItemData { + pub Window: *mut ImGuiWindow, + pub ID: ImGuiID, + pub FocusScopeId: ImGuiID, + pub RectRel: ImRect, + pub InFlags: ImGuiItemFlags, + pub DistBox: f32, + pub DistCenter: f32, + pub DistAxial: f32, +} +impl Default for ImGuiNavItemData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiOldColumnFlags_None: ImGuiOldColumnFlags_ = 0; +pub const ImGuiOldColumnFlags_NoBorder: ImGuiOldColumnFlags_ = 1; +pub const ImGuiOldColumnFlags_NoResize: ImGuiOldColumnFlags_ = 2; +pub const ImGuiOldColumnFlags_NoPreserveWidths: ImGuiOldColumnFlags_ = 4; +pub const ImGuiOldColumnFlags_NoForceWithinWindow: ImGuiOldColumnFlags_ = 8; +pub const ImGuiOldColumnFlags_GrowParentContentsSize: ImGuiOldColumnFlags_ = 16; +pub type ImGuiOldColumnFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiOldColumnData { + pub OffsetNorm: f32, + pub OffsetNormBeforeResize: f32, + pub Flags: ImGuiOldColumnFlags, + pub ClipRect: ImRect, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiOldColumnData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiOldColumnData, +} +impl Default for ImVector_ImGuiOldColumnData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiOldColumns { + pub ID: ImGuiID, + pub Flags: ImGuiOldColumnFlags, + pub IsFirstFrame: bool, + pub IsBeingResized: bool, + pub Current: cty::c_int, + pub Count: cty::c_int, + pub OffMinX: f32, + pub OffMaxX: f32, + pub LineMinY: f32, + pub LineMaxY: f32, + pub HostCursorPosY: f32, + pub HostCursorMaxPosX: f32, + pub HostInitialClipRect: ImRect, + pub HostBackupClipRect: ImRect, + pub HostBackupParentWorkRect: ImRect, + pub Columns: ImVector_ImGuiOldColumnData, + pub Splitter: ImDrawListSplitter, +} +impl Default for ImGuiOldColumns { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiDockNodeFlags_DockSpace: ImGuiDockNodeFlagsPrivate_ = 1024; +pub const ImGuiDockNodeFlags_CentralNode: ImGuiDockNodeFlagsPrivate_ = 2048; +pub const ImGuiDockNodeFlags_NoTabBar: ImGuiDockNodeFlagsPrivate_ = 4096; +pub const ImGuiDockNodeFlags_HiddenTabBar: ImGuiDockNodeFlagsPrivate_ = 8192; +pub const ImGuiDockNodeFlags_NoWindowMenuButton: ImGuiDockNodeFlagsPrivate_ = 16384; +pub const ImGuiDockNodeFlags_NoCloseButton: ImGuiDockNodeFlagsPrivate_ = 32768; +pub const ImGuiDockNodeFlags_NoDocking: ImGuiDockNodeFlagsPrivate_ = 65536; +pub const ImGuiDockNodeFlags_NoDockingSplitMe: ImGuiDockNodeFlagsPrivate_ = 131072; +pub const ImGuiDockNodeFlags_NoDockingSplitOther: ImGuiDockNodeFlagsPrivate_ = 262144; +pub const ImGuiDockNodeFlags_NoDockingOverMe: ImGuiDockNodeFlagsPrivate_ = 524288; +pub const ImGuiDockNodeFlags_NoDockingOverOther: ImGuiDockNodeFlagsPrivate_ = 1048576; +pub const ImGuiDockNodeFlags_NoDockingOverEmpty: ImGuiDockNodeFlagsPrivate_ = 2097152; +pub const ImGuiDockNodeFlags_NoResizeX: ImGuiDockNodeFlagsPrivate_ = 4194304; +pub const ImGuiDockNodeFlags_NoResizeY: ImGuiDockNodeFlagsPrivate_ = 8388608; +pub const ImGuiDockNodeFlags_SharedFlagsInheritMask_: ImGuiDockNodeFlagsPrivate_ = -1; +pub const ImGuiDockNodeFlags_NoResizeFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12582944; +pub const ImGuiDockNodeFlags_LocalFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12713072; +pub const ImGuiDockNodeFlags_LocalFlagsTransferMask_: ImGuiDockNodeFlagsPrivate_ = 12712048; +pub const ImGuiDockNodeFlags_SavedFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12712992; +pub type ImGuiDockNodeFlagsPrivate_ = cty::c_int; +pub const ImGuiDataAuthority_Auto: ImGuiDataAuthority_ = 0; +pub const ImGuiDataAuthority_DockNode: ImGuiDataAuthority_ = 1; +pub const ImGuiDataAuthority_Window: ImGuiDataAuthority_ = 2; +pub type ImGuiDataAuthority_ = cty::c_uint; +pub const ImGuiDockNodeState_Unknown: ImGuiDockNodeState = 0; +pub const ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow: ImGuiDockNodeState = 1; +pub const ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing: ImGuiDockNodeState = 2; +pub const ImGuiDockNodeState_HostWindowVisible: ImGuiDockNodeState = 3; +pub type ImGuiDockNodeState = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiWindowPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiWindow, +} +impl Default for ImVector_ImGuiWindowPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiDockNode { + pub ID: ImGuiID, + pub SharedFlags: ImGuiDockNodeFlags, + pub LocalFlags: ImGuiDockNodeFlags, + pub LocalFlagsInWindows: ImGuiDockNodeFlags, + pub MergedFlags: ImGuiDockNodeFlags, + pub State: ImGuiDockNodeState, + pub ParentNode: *mut ImGuiDockNode, + pub ChildNodes: [*mut ImGuiDockNode; 2usize], + pub Windows: ImVector_ImGuiWindowPtr, + pub TabBar: *mut ImGuiTabBar, + pub Pos: ImVec2, + pub Size: ImVec2, + pub SizeRef: ImVec2, + pub SplitAxis: ImGuiAxis, + pub WindowClass: ImGuiWindowClass, + pub LastBgColor: ImU32, + pub HostWindow: *mut ImGuiWindow, + pub VisibleWindow: *mut ImGuiWindow, + pub CentralNode: *mut ImGuiDockNode, + pub OnlyNodeWithWindows: *mut ImGuiDockNode, + pub CountNodeWithWindows: cty::c_int, + pub LastFrameAlive: cty::c_int, + pub LastFrameActive: cty::c_int, + pub LastFrameFocused: cty::c_int, + pub LastFocusedNodeId: ImGuiID, + pub SelectedTabId: ImGuiID, + pub WantCloseTabId: ImGuiID, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, + pub __bindgen_padding_0: u8, +} +impl Default for ImGuiDockNode { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ImGuiDockNode { + #[inline] + pub fn AuthorityForPos(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForPos(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 3u8, val as u64) + } + } + #[inline] + pub fn AuthorityForSize(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForSize(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(3usize, 3u8, val as u64) + } + } + #[inline] + pub fn AuthorityForViewport(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForViewport(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(6usize, 3u8, val as u64) + } + } + #[inline] + pub fn IsVisible(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsVisible(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsFocused(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsFocused(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(10usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsBgDrawnThisFrame(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsBgDrawnThisFrame(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(11usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasCloseButton(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasCloseButton(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasWindowMenuButton(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasWindowMenuButton(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasCentralNodeChild(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasCentralNodeChild(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantCloseAll(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantCloseAll(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantLockSizeOnce(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantLockSizeOnce(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(16usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantMouseMove(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantMouseMove(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(17usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantHiddenTabBarUpdate(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantHiddenTabBarUpdate(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(18usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantHiddenTabBarToggle(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantHiddenTabBarToggle(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(19usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + AuthorityForPos: ImGuiDataAuthority, + AuthorityForSize: ImGuiDataAuthority, + AuthorityForViewport: ImGuiDataAuthority, + IsVisible: bool, + IsFocused: bool, + IsBgDrawnThisFrame: bool, + HasCloseButton: bool, + HasWindowMenuButton: bool, + HasCentralNodeChild: bool, + WantCloseAll: bool, + WantLockSizeOnce: bool, + WantMouseMove: bool, + WantHiddenTabBarUpdate: bool, + WantHiddenTabBarToggle: bool, + ) -> __BindgenBitfieldUnit<[u8; 3usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 3u8, { + let AuthorityForPos: u32 = unsafe { ::core::mem::transmute(AuthorityForPos) }; + AuthorityForPos as u64 + }); + __bindgen_bitfield_unit.set(3usize, 3u8, { + let AuthorityForSize: u32 = unsafe { ::core::mem::transmute(AuthorityForSize) }; + AuthorityForSize as u64 + }); + __bindgen_bitfield_unit.set(6usize, 3u8, { + let AuthorityForViewport: u32 = unsafe { ::core::mem::transmute(AuthorityForViewport) }; + AuthorityForViewport as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let IsVisible: u8 = unsafe { ::core::mem::transmute(IsVisible) }; + IsVisible as u64 + }); + __bindgen_bitfield_unit.set(10usize, 1u8, { + let IsFocused: u8 = unsafe { ::core::mem::transmute(IsFocused) }; + IsFocused as u64 + }); + __bindgen_bitfield_unit.set(11usize, 1u8, { + let IsBgDrawnThisFrame: u8 = unsafe { ::core::mem::transmute(IsBgDrawnThisFrame) }; + IsBgDrawnThisFrame as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let HasCloseButton: u8 = unsafe { ::core::mem::transmute(HasCloseButton) }; + HasCloseButton as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let HasWindowMenuButton: u8 = unsafe { ::core::mem::transmute(HasWindowMenuButton) }; + HasWindowMenuButton as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let HasCentralNodeChild: u8 = unsafe { ::core::mem::transmute(HasCentralNodeChild) }; + HasCentralNodeChild as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let WantCloseAll: u8 = unsafe { ::core::mem::transmute(WantCloseAll) }; + WantCloseAll as u64 + }); + __bindgen_bitfield_unit.set(16usize, 1u8, { + let WantLockSizeOnce: u8 = unsafe { ::core::mem::transmute(WantLockSizeOnce) }; + WantLockSizeOnce as u64 + }); + __bindgen_bitfield_unit.set(17usize, 1u8, { + let WantMouseMove: u8 = unsafe { ::core::mem::transmute(WantMouseMove) }; + WantMouseMove as u64 + }); + __bindgen_bitfield_unit.set(18usize, 1u8, { + let WantHiddenTabBarUpdate: u8 = + unsafe { ::core::mem::transmute(WantHiddenTabBarUpdate) }; + WantHiddenTabBarUpdate as u64 + }); + __bindgen_bitfield_unit.set(19usize, 1u8, { + let WantHiddenTabBarToggle: u8 = + unsafe { ::core::mem::transmute(WantHiddenTabBarToggle) }; + WantHiddenTabBarToggle as u64 + }); + __bindgen_bitfield_unit + } +} +pub const ImGuiWindowDockStyleCol_Text: ImGuiWindowDockStyleCol = 0; +pub const ImGuiWindowDockStyleCol_Tab: ImGuiWindowDockStyleCol = 1; +pub const ImGuiWindowDockStyleCol_TabHovered: ImGuiWindowDockStyleCol = 2; +pub const ImGuiWindowDockStyleCol_TabActive: ImGuiWindowDockStyleCol = 3; +pub const ImGuiWindowDockStyleCol_TabUnfocused: ImGuiWindowDockStyleCol = 4; +pub const ImGuiWindowDockStyleCol_TabUnfocusedActive: ImGuiWindowDockStyleCol = 5; +pub const ImGuiWindowDockStyleCol_COUNT: ImGuiWindowDockStyleCol = 6; +pub type ImGuiWindowDockStyleCol = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowDockStyle { + pub Colors: [ImU32; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiDockRequest { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiDockRequest, +} +impl Default for ImVector_ImGuiDockRequest { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiDockNodeSettings { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiDockNodeSettings, +} +impl Default for ImVector_ImGuiDockNodeSettings { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiDockContext { + pub Nodes: ImGuiStorage, + pub Requests: ImVector_ImGuiDockRequest, + pub NodesSettings: ImVector_ImGuiDockNodeSettings, + pub WantFullRebuild: bool, +} +impl Default for ImGuiDockContext { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiViewportP { + pub _ImGuiViewport: ImGuiViewport, + pub Idx: cty::c_int, + pub LastFrameActive: cty::c_int, + pub LastFrontMostStampCount: cty::c_int, + pub LastNameHash: ImGuiID, + pub LastPos: ImVec2, + pub Alpha: f32, + pub LastAlpha: f32, + pub PlatformMonitor: cty::c_short, + pub Window: *mut ImGuiWindow, + pub DrawListsLastFrame: [cty::c_int; 2usize], + pub DrawLists: [*mut ImDrawList; 2usize], + pub DrawDataP: ImDrawData, + pub DrawDataBuilder: ImDrawDataBuilder, + pub LastPlatformPos: ImVec2, + pub LastPlatformSize: ImVec2, + pub LastRendererSize: ImVec2, + pub WorkOffsetMin: ImVec2, + pub WorkOffsetMax: ImVec2, + pub BuildWorkOffsetMin: ImVec2, + pub BuildWorkOffsetMax: ImVec2, +} +impl Default for ImGuiViewportP { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowSettings { + pub ID: ImGuiID, + pub Pos: ImVec2ih, + pub Size: ImVec2ih, + pub ViewportPos: ImVec2ih, + pub ViewportId: ImGuiID, + pub DockId: ImGuiID, + pub ClassId: ImGuiID, + pub DockOrder: cty::c_short, + pub Collapsed: bool, + pub WantApply: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiSettingsHandler { + pub TypeName: *const cty::c_char, + pub TypeHash: ImGuiID, + pub ClearAllFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub ReadInitFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub ReadOpenFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + name: *const cty::c_char, + ) -> *mut cty::c_void, + >, + pub ReadLineFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + entry: *mut cty::c_void, + line: *const cty::c_char, + ), + >, + pub ApplyAllFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub WriteAllFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + out_buf: *mut ImGuiTextBuffer, + ), + >, + pub UserData: *mut cty::c_void, +} +impl Default for ImGuiSettingsHandler { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiLocKey_TableSizeOne: ImGuiLocKey = 0; +pub const ImGuiLocKey_TableSizeAllFit: ImGuiLocKey = 1; +pub const ImGuiLocKey_TableSizeAllDefault: ImGuiLocKey = 2; +pub const ImGuiLocKey_TableResetOrder: ImGuiLocKey = 3; +pub const ImGuiLocKey_WindowingMainMenuBar: ImGuiLocKey = 4; +pub const ImGuiLocKey_WindowingPopup: ImGuiLocKey = 5; +pub const ImGuiLocKey_WindowingUntitled: ImGuiLocKey = 6; +pub const ImGuiLocKey_DockingHideTabBar: ImGuiLocKey = 7; +pub const ImGuiLocKey_COUNT: ImGuiLocKey = 8; +pub type ImGuiLocKey = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiLocEntry { + pub Key: ImGuiLocKey, + pub Text: *const cty::c_char, +} +impl Default for ImGuiLocEntry { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiDebugLogFlags_None: ImGuiDebugLogFlags_ = 0; +pub const ImGuiDebugLogFlags_EventActiveId: ImGuiDebugLogFlags_ = 1; +pub const ImGuiDebugLogFlags_EventFocus: ImGuiDebugLogFlags_ = 2; +pub const ImGuiDebugLogFlags_EventPopup: ImGuiDebugLogFlags_ = 4; +pub const ImGuiDebugLogFlags_EventNav: ImGuiDebugLogFlags_ = 8; +pub const ImGuiDebugLogFlags_EventClipper: ImGuiDebugLogFlags_ = 16; +pub const ImGuiDebugLogFlags_EventIO: ImGuiDebugLogFlags_ = 32; +pub const ImGuiDebugLogFlags_EventDocking: ImGuiDebugLogFlags_ = 64; +pub const ImGuiDebugLogFlags_EventViewport: ImGuiDebugLogFlags_ = 128; +pub const ImGuiDebugLogFlags_EventMask_: ImGuiDebugLogFlags_ = 255; +pub const ImGuiDebugLogFlags_OutputToTTY: ImGuiDebugLogFlags_ = 1024; +pub type ImGuiDebugLogFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiMetricsConfig { + pub ShowDebugLog: bool, + pub ShowStackTool: bool, + pub ShowWindowsRects: bool, + pub ShowWindowsBeginOrder: bool, + pub ShowTablesRects: bool, + pub ShowDrawCmdMesh: bool, + pub ShowDrawCmdBoundingBoxes: bool, + pub ShowDockingNodes: bool, + pub ShowWindowsRectsType: cty::c_int, + pub ShowTablesRectsType: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStackLevelInfo { + pub ID: ImGuiID, + pub QueryFrameCount: ImS8, + pub QuerySuccess: bool, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub Desc: [cty::c_char; 57usize], +} +impl Default for ImGuiStackLevelInfo { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ImGuiStackLevelInfo { + #[inline] + pub fn DataType(&self) -> ImGuiDataType { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_DataType(&mut self, val: ImGuiDataType) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1(DataType: ImGuiDataType) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let DataType: u32 = unsafe { ::core::mem::transmute(DataType) }; + DataType as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStackLevelInfo { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStackLevelInfo, +} +impl Default for ImVector_ImGuiStackLevelInfo { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiStackTool { + pub LastActiveFrame: cty::c_int, + pub StackLevel: cty::c_int, + pub QueryId: ImGuiID, + pub Results: ImVector_ImGuiStackLevelInfo, + pub CopyToClipboardOnCtrlC: bool, + pub CopyToClipboardLastTime: f32, +} +impl Default for ImGuiStackTool { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type ImGuiContextHookCallback = ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, hook: *mut ImGuiContextHook), +>; +pub const ImGuiContextHookType_NewFramePre: ImGuiContextHookType = 0; +pub const ImGuiContextHookType_NewFramePost: ImGuiContextHookType = 1; +pub const ImGuiContextHookType_EndFramePre: ImGuiContextHookType = 2; +pub const ImGuiContextHookType_EndFramePost: ImGuiContextHookType = 3; +pub const ImGuiContextHookType_RenderPre: ImGuiContextHookType = 4; +pub const ImGuiContextHookType_RenderPost: ImGuiContextHookType = 5; +pub const ImGuiContextHookType_Shutdown: ImGuiContextHookType = 6; +pub const ImGuiContextHookType_PendingRemoval_: ImGuiContextHookType = 7; +pub type ImGuiContextHookType = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiContextHook { + pub HookId: ImGuiID, + pub Type: ImGuiContextHookType, + pub Owner: ImGuiID, + pub Callback: ImGuiContextHookCallback, + pub UserData: *mut cty::c_void, +} +impl Default for ImGuiContextHook { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiInputEvent { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiInputEvent, +} +impl Default for ImVector_ImGuiInputEvent { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiWindowStackData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiWindowStackData, +} +impl Default for ImVector_ImGuiWindowStackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiColorMod { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiColorMod, +} +impl Default for ImVector_ImGuiColorMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStyleMod { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStyleMod, +} +impl Default for ImVector_ImGuiStyleMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiID, +} +impl Default for ImVector_ImGuiID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiItemFlags { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiItemFlags, +} +impl Default for ImVector_ImGuiItemFlags { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiGroupData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiGroupData, +} +impl Default for ImVector_ImGuiGroupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiPopupData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPopupData, +} +impl Default for ImVector_ImGuiPopupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiViewportPPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiViewportP, +} +impl Default for ImVector_ImGuiViewportPPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_unsigned_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_uchar, +} +impl Default for ImVector_unsigned_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiListClipperData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiListClipperData, +} +impl Default for ImVector_ImGuiListClipperData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableTempData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableTempData, +} +impl Default for ImVector_ImGuiTableTempData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTable { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTable, +} +impl Default for ImVector_ImGuiTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImPool_ImGuiTable { + pub Buf: ImVector_ImGuiTable, + pub Map: ImGuiStorage, + pub FreeIdx: ImPoolIdx, + pub AliveCount: ImPoolIdx, +} +impl Default for ImPool_ImGuiTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTabBar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTabBar, +} +impl Default for ImVector_ImGuiTabBar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImPool_ImGuiTabBar { + pub Buf: ImVector_ImGuiTabBar, + pub Map: ImGuiStorage, + pub FreeIdx: ImPoolIdx, + pub AliveCount: ImPoolIdx, +} +impl Default for ImPool_ImGuiTabBar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiPtrOrIndex { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPtrOrIndex, +} +impl Default for ImVector_ImGuiPtrOrIndex { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiShrinkWidthItem { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiShrinkWidthItem, +} +impl Default for ImVector_ImGuiShrinkWidthItem { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiSettingsHandler { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiSettingsHandler, +} +impl Default for ImVector_ImGuiSettingsHandler { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImChunkStream_ImGuiWindowSettings { + pub Buf: ImVector_char, +} +impl Default for ImChunkStream_ImGuiWindowSettings { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImChunkStream_ImGuiTableSettings { + pub Buf: ImVector_char, +} +impl Default for ImChunkStream_ImGuiTableSettings { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiContextHook { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiContextHook, +} +impl Default for ImVector_ImGuiContextHook { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiContext { + pub Initialized: bool, + pub FontAtlasOwnedByContext: bool, + pub IO: ImGuiIO, + pub PlatformIO: ImGuiPlatformIO, + pub InputEventsQueue: ImVector_ImGuiInputEvent, + pub InputEventsTrail: ImVector_ImGuiInputEvent, + pub Style: ImGuiStyle, + pub ConfigFlagsCurrFrame: ImGuiConfigFlags, + pub ConfigFlagsLastFrame: ImGuiConfigFlags, + pub Font: *mut ImFont, + pub FontSize: f32, + pub FontBaseSize: f32, + pub DrawListSharedData: ImDrawListSharedData, + pub Time: f64, + pub FrameCount: cty::c_int, + pub FrameCountEnded: cty::c_int, + pub FrameCountPlatformEnded: cty::c_int, + pub FrameCountRendered: cty::c_int, + pub WithinFrameScope: bool, + pub WithinFrameScopeWithImplicitWindow: bool, + pub WithinEndChild: bool, + pub GcCompactAll: bool, + pub TestEngineHookItems: bool, + pub TestEngine: *mut cty::c_void, + pub Windows: ImVector_ImGuiWindowPtr, + pub WindowsFocusOrder: ImVector_ImGuiWindowPtr, + pub WindowsTempSortBuffer: ImVector_ImGuiWindowPtr, + pub CurrentWindowStack: ImVector_ImGuiWindowStackData, + pub WindowsById: ImGuiStorage, + pub WindowsActiveCount: cty::c_int, + pub WindowsHoverPadding: ImVec2, + pub CurrentWindow: *mut ImGuiWindow, + pub HoveredWindow: *mut ImGuiWindow, + pub HoveredWindowUnderMovingWindow: *mut ImGuiWindow, + pub MovingWindow: *mut ImGuiWindow, + pub WheelingWindow: *mut ImGuiWindow, + pub WheelingWindowRefMousePos: ImVec2, + pub WheelingWindowReleaseTimer: f32, + pub DebugHookIdInfo: ImGuiID, + pub HoveredId: ImGuiID, + pub HoveredIdPreviousFrame: ImGuiID, + pub HoveredIdAllowOverlap: bool, + pub HoveredIdDisabled: bool, + pub HoveredIdTimer: f32, + pub HoveredIdNotActiveTimer: f32, + pub ActiveId: ImGuiID, + pub ActiveIdIsAlive: ImGuiID, + pub ActiveIdTimer: f32, + pub ActiveIdIsJustActivated: bool, + pub ActiveIdAllowOverlap: bool, + pub ActiveIdNoClearOnFocusLoss: bool, + pub ActiveIdHasBeenPressedBefore: bool, + pub ActiveIdHasBeenEditedBefore: bool, + pub ActiveIdHasBeenEditedThisFrame: bool, + pub ActiveIdClickOffset: ImVec2, + pub ActiveIdWindow: *mut ImGuiWindow, + pub ActiveIdSource: ImGuiInputSource, + pub ActiveIdMouseButton: cty::c_int, + pub ActiveIdPreviousFrame: ImGuiID, + pub ActiveIdPreviousFrameIsAlive: bool, + pub ActiveIdPreviousFrameHasBeenEditedBefore: bool, + pub ActiveIdPreviousFrameWindow: *mut ImGuiWindow, + pub LastActiveId: ImGuiID, + pub LastActiveIdTimer: f32, + pub KeysOwnerData: [ImGuiKeyOwnerData; 140usize], + pub KeysRoutingTable: ImGuiKeyRoutingTable, + pub ActiveIdUsingNavDirMask: ImU32, + pub ActiveIdUsingAllKeyboardKeys: bool, + pub ActiveIdUsingNavInputMask: ImU32, + pub CurrentFocusScopeId: ImGuiID, + pub CurrentItemFlags: ImGuiItemFlags, + pub DebugLocateId: ImGuiID, + pub NextItemData: ImGuiNextItemData, + pub LastItemData: ImGuiLastItemData, + pub NextWindowData: ImGuiNextWindowData, + pub ColorStack: ImVector_ImGuiColorMod, + pub StyleVarStack: ImVector_ImGuiStyleMod, + pub FontStack: ImVector_ImFontPtr, + pub FocusScopeStack: ImVector_ImGuiID, + pub ItemFlagsStack: ImVector_ImGuiItemFlags, + pub GroupStack: ImVector_ImGuiGroupData, + pub OpenPopupStack: ImVector_ImGuiPopupData, + pub BeginPopupStack: ImVector_ImGuiPopupData, + pub BeginMenuCount: cty::c_int, + pub Viewports: ImVector_ImGuiViewportPPtr, + pub CurrentDpiScale: f32, + pub CurrentViewport: *mut ImGuiViewportP, + pub MouseViewport: *mut ImGuiViewportP, + pub MouseLastHoveredViewport: *mut ImGuiViewportP, + pub PlatformLastFocusedViewportId: ImGuiID, + pub FallbackMonitor: ImGuiPlatformMonitor, + pub ViewportFrontMostStampCount: cty::c_int, + pub NavWindow: *mut ImGuiWindow, + pub NavId: ImGuiID, + pub NavFocusScopeId: ImGuiID, + pub NavActivateId: ImGuiID, + pub NavActivateDownId: ImGuiID, + pub NavActivatePressedId: ImGuiID, + pub NavActivateInputId: ImGuiID, + pub NavActivateFlags: ImGuiActivateFlags, + pub NavJustMovedToId: ImGuiID, + pub NavJustMovedToFocusScopeId: ImGuiID, + pub NavJustMovedToKeyMods: ImGuiKeyChord, + pub NavNextActivateId: ImGuiID, + pub NavNextActivateFlags: ImGuiActivateFlags, + pub NavInputSource: ImGuiInputSource, + pub NavLayer: ImGuiNavLayer, + pub NavIdIsAlive: bool, + pub NavMousePosDirty: bool, + pub NavDisableHighlight: bool, + pub NavDisableMouseHover: bool, + pub NavAnyRequest: bool, + pub NavInitRequest: bool, + pub NavInitRequestFromMove: bool, + pub NavInitResultId: ImGuiID, + pub NavInitResultRectRel: ImRect, + pub NavMoveSubmitted: bool, + pub NavMoveScoringItems: bool, + pub NavMoveForwardToNextFrame: bool, + pub NavMoveFlags: ImGuiNavMoveFlags, + pub NavMoveScrollFlags: ImGuiScrollFlags, + pub NavMoveKeyMods: ImGuiKeyChord, + pub NavMoveDir: ImGuiDir, + pub NavMoveDirForDebug: ImGuiDir, + pub NavMoveClipDir: ImGuiDir, + pub NavScoringRect: ImRect, + pub NavScoringNoClipRect: ImRect, + pub NavScoringDebugCount: cty::c_int, + pub NavTabbingDir: cty::c_int, + pub NavTabbingCounter: cty::c_int, + pub NavMoveResultLocal: ImGuiNavItemData, + pub NavMoveResultLocalVisible: ImGuiNavItemData, + pub NavMoveResultOther: ImGuiNavItemData, + pub NavTabbingResultFirst: ImGuiNavItemData, + pub ConfigNavWindowingKeyNext: ImGuiKeyChord, + pub ConfigNavWindowingKeyPrev: ImGuiKeyChord, + pub NavWindowingTarget: *mut ImGuiWindow, + pub NavWindowingTargetAnim: *mut ImGuiWindow, + pub NavWindowingListWindow: *mut ImGuiWindow, + pub NavWindowingTimer: f32, + pub NavWindowingHighlightAlpha: f32, + pub NavWindowingToggleLayer: bool, + pub NavWindowingAccumDeltaPos: ImVec2, + pub NavWindowingAccumDeltaSize: ImVec2, + pub DimBgRatio: f32, + pub MouseCursor: ImGuiMouseCursor, + pub DragDropActive: bool, + pub DragDropWithinSource: bool, + pub DragDropWithinTarget: bool, + pub DragDropSourceFlags: ImGuiDragDropFlags, + pub DragDropSourceFrameCount: cty::c_int, + pub DragDropMouseButton: cty::c_int, + pub DragDropPayload: ImGuiPayload, + pub DragDropTargetRect: ImRect, + pub DragDropTargetId: ImGuiID, + pub DragDropAcceptFlags: ImGuiDragDropFlags, + pub DragDropAcceptIdCurrRectSurface: f32, + pub DragDropAcceptIdCurr: ImGuiID, + pub DragDropAcceptIdPrev: ImGuiID, + pub DragDropAcceptFrameCount: cty::c_int, + pub DragDropHoldJustPressedId: ImGuiID, + pub DragDropPayloadBufHeap: ImVector_unsigned_char, + pub DragDropPayloadBufLocal: [cty::c_uchar; 16usize], + pub ClipperTempDataStacked: cty::c_int, + pub ClipperTempData: ImVector_ImGuiListClipperData, + pub CurrentTable: *mut ImGuiTable, + pub TablesTempDataStacked: cty::c_int, + pub TablesTempData: ImVector_ImGuiTableTempData, + pub Tables: ImPool_ImGuiTable, + pub TablesLastTimeActive: ImVector_float, + pub DrawChannelsTempMergeBuffer: ImVector_ImDrawChannel, + pub CurrentTabBar: *mut ImGuiTabBar, + pub TabBars: ImPool_ImGuiTabBar, + pub CurrentTabBarStack: ImVector_ImGuiPtrOrIndex, + pub ShrinkWidthBuffer: ImVector_ImGuiShrinkWidthItem, + pub HoverDelayId: ImGuiID, + pub HoverDelayIdPreviousFrame: ImGuiID, + pub HoverDelayTimer: f32, + pub HoverDelayClearTimer: f32, + pub MouseLastValidPos: ImVec2, + pub InputTextState: ImGuiInputTextState, + pub InputTextPasswordFont: ImFont, + pub TempInputId: ImGuiID, + pub ColorEditOptions: ImGuiColorEditFlags, + pub ColorEditLastHue: f32, + pub ColorEditLastSat: f32, + pub ColorEditLastColor: ImU32, + pub ColorPickerRef: ImVec4, + pub ComboPreviewData: ImGuiComboPreviewData, + pub SliderGrabClickOffset: f32, + pub SliderCurrentAccum: f32, + pub SliderCurrentAccumDirty: bool, + pub DragCurrentAccumDirty: bool, + pub DragCurrentAccum: f32, + pub DragSpeedDefaultRatio: f32, + pub ScrollbarClickDeltaToGrabCenter: f32, + pub DisabledAlphaBackup: f32, + pub DisabledStackSize: cty::c_short, + pub TooltipOverrideCount: cty::c_short, + pub ClipboardHandlerData: ImVector_char, + pub MenusIdSubmittedThisFrame: ImVector_ImGuiID, + pub PlatformImeData: ImGuiPlatformImeData, + pub PlatformImeDataPrev: ImGuiPlatformImeData, + pub PlatformImeViewport: ImGuiID, + pub PlatformLocaleDecimalPoint: cty::c_char, + pub DockContext: ImGuiDockContext, + pub SettingsLoaded: bool, + pub SettingsDirtyTimer: f32, + pub SettingsIniData: ImGuiTextBuffer, + pub SettingsHandlers: ImVector_ImGuiSettingsHandler, + pub SettingsWindows: ImChunkStream_ImGuiWindowSettings, + pub SettingsTables: ImChunkStream_ImGuiTableSettings, + pub Hooks: ImVector_ImGuiContextHook, + pub HookIdNext: ImGuiID, + pub LocalizationTable: [*const cty::c_char; 8usize], + pub LogEnabled: bool, + pub LogType: ImGuiLogType, + pub LogFile: ImFileHandle, + pub LogBuffer: ImGuiTextBuffer, + pub LogNextPrefix: *const cty::c_char, + pub LogNextSuffix: *const cty::c_char, + pub LogLinePosY: f32, + pub LogLineFirstItem: bool, + pub LogDepthRef: cty::c_int, + pub LogDepthToExpand: cty::c_int, + pub LogDepthToExpandDefault: cty::c_int, + pub DebugLogFlags: ImGuiDebugLogFlags, + pub DebugLogBuf: ImGuiTextBuffer, + pub DebugLogIndex: ImGuiTextIndex, + pub DebugLocateFrames: ImU8, + pub DebugItemPickerActive: bool, + pub DebugItemPickerMouseButton: ImU8, + pub DebugItemPickerBreakId: ImGuiID, + pub DebugMetricsConfig: ImGuiMetricsConfig, + pub DebugStackTool: ImGuiStackTool, + pub DebugHoveredDockNode: *mut ImGuiDockNode, + pub FramerateSecPerFrame: [f32; 60usize], + pub FramerateSecPerFrameIdx: cty::c_int, + pub FramerateSecPerFrameCount: cty::c_int, + pub FramerateSecPerFrameAccum: f32, + pub WantCaptureMouseNextFrame: cty::c_int, + pub WantCaptureKeyboardNextFrame: cty::c_int, + pub WantTextInputNextFrame: cty::c_int, + pub TempBuffer: ImVector_char, +} +impl Default for ImGuiContext { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiWindowTempData { + pub CursorPos: ImVec2, + pub CursorPosPrevLine: ImVec2, + pub CursorStartPos: ImVec2, + pub CursorMaxPos: ImVec2, + pub IdealMaxPos: ImVec2, + pub CurrLineSize: ImVec2, + pub PrevLineSize: ImVec2, + pub CurrLineTextBaseOffset: f32, + pub PrevLineTextBaseOffset: f32, + pub IsSameLine: bool, + pub IsSetPos: bool, + pub Indent: ImVec1, + pub ColumnsOffset: ImVec1, + pub GroupOffset: ImVec1, + pub CursorStartPosLossyness: ImVec2, + pub NavLayerCurrent: ImGuiNavLayer, + pub NavLayersActiveMask: cty::c_short, + pub NavLayersActiveMaskNext: cty::c_short, + pub NavHideHighlightOneFrame: bool, + pub NavHasScroll: bool, + pub MenuBarAppending: bool, + pub MenuBarOffset: ImVec2, + pub MenuColumns: ImGuiMenuColumns, + pub TreeDepth: cty::c_int, + pub TreeJumpToParentOnPopMask: ImU32, + pub ChildWindows: ImVector_ImGuiWindowPtr, + pub StateStorage: *mut ImGuiStorage, + pub CurrentColumns: *mut ImGuiOldColumns, + pub CurrentTableIdx: cty::c_int, + pub LayoutType: ImGuiLayoutType, + pub ParentLayoutType: ImGuiLayoutType, + pub ItemWidth: f32, + pub TextWrapPos: f32, + pub ItemWidthStack: ImVector_float, + pub TextWrapPosStack: ImVector_float, +} +impl Default for ImGuiWindowTempData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiOldColumns { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiOldColumns, +} +impl Default for ImVector_ImGuiOldColumns { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiWindow { + pub Name: *mut cty::c_char, + pub ID: ImGuiID, + pub Flags: ImGuiWindowFlags, + pub FlagsPreviousFrame: ImGuiWindowFlags, + pub WindowClass: ImGuiWindowClass, + pub Viewport: *mut ImGuiViewportP, + pub ViewportId: ImGuiID, + pub ViewportPos: ImVec2, + pub ViewportAllowPlatformMonitorExtend: cty::c_int, + pub Pos: ImVec2, + pub Size: ImVec2, + pub SizeFull: ImVec2, + pub ContentSize: ImVec2, + pub ContentSizeIdeal: ImVec2, + pub ContentSizeExplicit: ImVec2, + pub WindowPadding: ImVec2, + pub WindowRounding: f32, + pub WindowBorderSize: f32, + pub NameBufLen: cty::c_int, + pub MoveId: ImGuiID, + pub TabId: ImGuiID, + pub ChildId: ImGuiID, + pub Scroll: ImVec2, + pub ScrollMax: ImVec2, + pub ScrollTarget: ImVec2, + pub ScrollTargetCenterRatio: ImVec2, + pub ScrollTargetEdgeSnapDist: ImVec2, + pub ScrollbarSizes: ImVec2, + pub ScrollbarX: bool, + pub ScrollbarY: bool, + pub ViewportOwned: bool, + pub Active: bool, + pub WasActive: bool, + pub WriteAccessed: bool, + pub Collapsed: bool, + pub WantCollapseToggle: bool, + pub SkipItems: bool, + pub Appearing: bool, + pub Hidden: bool, + pub IsFallbackWindow: bool, + pub IsExplicitChild: bool, + pub HasCloseButton: bool, + pub ResizeBorderHeld: cty::c_schar, + pub BeginCount: cty::c_short, + pub BeginCountPreviousFrame: cty::c_short, + pub BeginOrderWithinParent: cty::c_short, + pub BeginOrderWithinContext: cty::c_short, + pub FocusOrder: cty::c_short, + pub PopupId: ImGuiID, + pub AutoFitFramesX: ImS8, + pub AutoFitFramesY: ImS8, + pub AutoFitChildAxises: ImS8, + pub AutoFitOnlyGrows: bool, + pub AutoPosLastDirection: ImGuiDir, + pub HiddenFramesCanSkipItems: ImS8, + pub HiddenFramesCannotSkipItems: ImS8, + pub HiddenFramesForRenderOnly: ImS8, + pub DisableInputsFrames: ImS8, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub SetWindowPosVal: ImVec2, + pub SetWindowPosPivot: ImVec2, + pub IDStack: ImVector_ImGuiID, + pub DC: ImGuiWindowTempData, + pub OuterRectClipped: ImRect, + pub InnerRect: ImRect, + pub InnerClipRect: ImRect, + pub WorkRect: ImRect, + pub ParentWorkRect: ImRect, + pub ClipRect: ImRect, + pub ContentRegionRect: ImRect, + pub HitTestHoleSize: ImVec2ih, + pub HitTestHoleOffset: ImVec2ih, + pub LastFrameActive: cty::c_int, + pub LastFrameJustFocused: cty::c_int, + pub LastTimeActive: f32, + pub ItemWidthDefault: f32, + pub StateStorage: ImGuiStorage, + pub ColumnsStorage: ImVector_ImGuiOldColumns, + pub FontWindowScale: f32, + pub FontDpiScale: f32, + pub SettingsOffset: cty::c_int, + pub DrawList: *mut ImDrawList, + pub DrawListInst: ImDrawList, + pub ParentWindow: *mut ImGuiWindow, + pub ParentWindowInBeginStack: *mut ImGuiWindow, + pub RootWindow: *mut ImGuiWindow, + pub RootWindowPopupTree: *mut ImGuiWindow, + pub RootWindowDockTree: *mut ImGuiWindow, + pub RootWindowForTitleBarHighlight: *mut ImGuiWindow, + pub RootWindowForNav: *mut ImGuiWindow, + pub NavLastChildNavWindow: *mut ImGuiWindow, + pub NavLastIds: [ImGuiID; 2usize], + pub NavRectRel: [ImRect; 2usize], + pub NavRootFocusScopeId: ImGuiID, + pub MemoryDrawListIdxCapacity: cty::c_int, + pub MemoryDrawListVtxCapacity: cty::c_int, + pub MemoryCompacted: bool, + pub _bitfield_align_2: [u8; 0], + pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1usize]>, + pub DockOrder: cty::c_short, + pub DockStyle: ImGuiWindowDockStyle, + pub DockNode: *mut ImGuiDockNode, + pub DockNodeAsHost: *mut ImGuiDockNode, + pub DockId: ImGuiID, + pub DockTabItemStatusFlags: ImGuiItemStatusFlags, + pub DockTabItemRect: ImRect, +} +impl Default for ImGuiWindow { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ImGuiWindow { + #[inline] + pub fn SetWindowPosAllowFlags(&self) -> ImGuiCond { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_SetWindowPosAllowFlags(&mut self, val: ImGuiCond) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn SetWindowSizeAllowFlags(&self) -> ImGuiCond { + unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_SetWindowSizeAllowFlags(&mut self, val: ImGuiCond) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn SetWindowCollapsedAllowFlags(&self) -> ImGuiCond { + unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_SetWindowCollapsedAllowFlags(&mut self, val: ImGuiCond) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn SetWindowDockAllowFlags(&self) -> ImGuiCond { + unsafe { ::core::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_SetWindowDockAllowFlags(&mut self, val: ImGuiCond) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SetWindowPosAllowFlags: ImGuiCond, + SetWindowSizeAllowFlags: ImGuiCond, + SetWindowCollapsedAllowFlags: ImGuiCond, + SetWindowDockAllowFlags: ImGuiCond, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let SetWindowPosAllowFlags: u32 = + unsafe { ::core::mem::transmute(SetWindowPosAllowFlags) }; + SetWindowPosAllowFlags as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let SetWindowSizeAllowFlags: u32 = + unsafe { ::core::mem::transmute(SetWindowSizeAllowFlags) }; + SetWindowSizeAllowFlags as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let SetWindowCollapsedAllowFlags: u32 = + unsafe { ::core::mem::transmute(SetWindowCollapsedAllowFlags) }; + SetWindowCollapsedAllowFlags as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let SetWindowDockAllowFlags: u32 = + unsafe { ::core::mem::transmute(SetWindowDockAllowFlags) }; + SetWindowDockAllowFlags as u64 + }); + __bindgen_bitfield_unit + } + #[inline] + pub fn DockIsActive(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_2.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_DockIsActive(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_2.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn DockNodeIsVisible(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_2.get(1usize, 1u8) as u8) } + } + #[inline] + pub fn set_DockNodeIsVisible(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_2.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn DockTabIsVisible(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_2.get(2usize, 1u8) as u8) } + } + #[inline] + pub fn set_DockTabIsVisible(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_2.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn DockTabWantClose(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_2.get(3usize, 1u8) as u8) } + } + #[inline] + pub fn set_DockTabWantClose(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_2.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_2( + DockIsActive: bool, + DockNodeIsVisible: bool, + DockTabIsVisible: bool, + DockTabWantClose: bool, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let DockIsActive: u8 = unsafe { ::core::mem::transmute(DockIsActive) }; + DockIsActive as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let DockNodeIsVisible: u8 = unsafe { ::core::mem::transmute(DockNodeIsVisible) }; + DockNodeIsVisible as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let DockTabIsVisible: u8 = unsafe { ::core::mem::transmute(DockTabIsVisible) }; + DockTabIsVisible as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let DockTabWantClose: u8 = unsafe { ::core::mem::transmute(DockTabWantClose) }; + DockTabWantClose as u64 + }); + __bindgen_bitfield_unit + } +} +pub const ImGuiTabBarFlags_DockNode: ImGuiTabBarFlagsPrivate_ = 1048576; +pub const ImGuiTabBarFlags_IsFocused: ImGuiTabBarFlagsPrivate_ = 2097152; +pub const ImGuiTabBarFlags_SaveSettings: ImGuiTabBarFlagsPrivate_ = 4194304; +pub type ImGuiTabBarFlagsPrivate_ = cty::c_uint; +pub const ImGuiTabItemFlags_SectionMask_: ImGuiTabItemFlagsPrivate_ = 192; +pub const ImGuiTabItemFlags_NoCloseButton: ImGuiTabItemFlagsPrivate_ = 1048576; +pub const ImGuiTabItemFlags_Button: ImGuiTabItemFlagsPrivate_ = 2097152; +pub const ImGuiTabItemFlags_Unsorted: ImGuiTabItemFlagsPrivate_ = 4194304; +pub const ImGuiTabItemFlags_Preview: ImGuiTabItemFlagsPrivate_ = 8388608; +pub type ImGuiTabItemFlagsPrivate_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiTabItem { + pub ID: ImGuiID, + pub Flags: ImGuiTabItemFlags, + pub Window: *mut ImGuiWindow, + pub LastFrameVisible: cty::c_int, + pub LastFrameSelected: cty::c_int, + pub Offset: f32, + pub Width: f32, + pub ContentWidth: f32, + pub RequestedWidth: f32, + pub NameOffset: ImS32, + pub BeginOrder: ImS16, + pub IndexDuringLayout: ImS16, + pub WantClose: bool, +} +impl Default for ImGuiTabItem { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTabItem { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTabItem, +} +impl Default for ImVector_ImGuiTabItem { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiTabBar { + pub Tabs: ImVector_ImGuiTabItem, + pub Flags: ImGuiTabBarFlags, + pub ID: ImGuiID, + pub SelectedTabId: ImGuiID, + pub NextSelectedTabId: ImGuiID, + pub VisibleTabId: ImGuiID, + pub CurrFrameVisible: cty::c_int, + pub PrevFrameVisible: cty::c_int, + pub BarRect: ImRect, + pub CurrTabsContentsHeight: f32, + pub PrevTabsContentsHeight: f32, + pub WidthAllTabs: f32, + pub WidthAllTabsIdeal: f32, + pub ScrollingAnim: f32, + pub ScrollingTarget: f32, + pub ScrollingTargetDistToVisibility: f32, + pub ScrollingSpeed: f32, + pub ScrollingRectMinX: f32, + pub ScrollingRectMaxX: f32, + pub ReorderRequestTabId: ImGuiID, + pub ReorderRequestOffset: ImS16, + pub BeginCount: ImS8, + pub WantLayout: bool, + pub VisibleTabWasSubmitted: bool, + pub TabsAddedNew: bool, + pub TabsActiveCount: ImS16, + pub LastTabItemIdx: ImS16, + pub ItemSpacingY: f32, + pub FramePadding: ImVec2, + pub BackupCursorPos: ImVec2, + pub TabsNames: ImGuiTextBuffer, +} +impl Default for ImGuiTabBar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type ImGuiTableColumnIdx = ImS8; +pub type ImGuiTableDrawChannelIdx = ImU8; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableColumn { + pub Flags: ImGuiTableColumnFlags, + pub WidthGiven: f32, + pub MinX: f32, + pub MaxX: f32, + pub WidthRequest: f32, + pub WidthAuto: f32, + pub StretchWeight: f32, + pub InitStretchWeightOrWidth: f32, + pub ClipRect: ImRect, + pub UserID: ImGuiID, + pub WorkMinX: f32, + pub WorkMaxX: f32, + pub ItemWidth: f32, + pub ContentMaxXFrozen: f32, + pub ContentMaxXUnfrozen: f32, + pub ContentMaxXHeadersUsed: f32, + pub ContentMaxXHeadersIdeal: f32, + pub NameOffset: ImS16, + pub DisplayOrder: ImGuiTableColumnIdx, + pub IndexWithinEnabledSet: ImGuiTableColumnIdx, + pub PrevEnabledColumn: ImGuiTableColumnIdx, + pub NextEnabledColumn: ImGuiTableColumnIdx, + pub SortOrder: ImGuiTableColumnIdx, + pub DrawChannelCurrent: ImGuiTableDrawChannelIdx, + pub DrawChannelFrozen: ImGuiTableDrawChannelIdx, + pub DrawChannelUnfrozen: ImGuiTableDrawChannelIdx, + pub IsEnabled: bool, + pub IsUserEnabled: bool, + pub IsUserEnabledNextFrame: bool, + pub IsVisibleX: bool, + pub IsVisibleY: bool, + pub IsRequestOutput: bool, + pub IsSkipItems: bool, + pub IsPreserveWidthAuto: bool, + pub NavLayerCurrent: ImS8, + pub AutoFitQueue: ImU8, + pub CannotSkipItemsQueue: ImU8, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub SortDirectionsAvailList: ImU8, +} +impl ImGuiTableColumn { + #[inline] + pub fn SortDirection(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u8) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 2u8, val as u64) + } + } + #[inline] + pub fn SortDirectionsAvailCount(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u8) } + } + #[inline] + pub fn set_SortDirectionsAvailCount(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 2u8, val as u64) + } + } + #[inline] + pub fn SortDirectionsAvailMask(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } + } + #[inline] + pub fn set_SortDirectionsAvailMask(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(4usize, 4u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImU8, + SortDirectionsAvailCount: ImU8, + SortDirectionsAvailMask: ImU8, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 2u8, { + let SortDirection: u8 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit.set(2usize, 2u8, { + let SortDirectionsAvailCount: u8 = + unsafe { ::core::mem::transmute(SortDirectionsAvailCount) }; + SortDirectionsAvailCount as u64 + }); + __bindgen_bitfield_unit.set(4usize, 4u8, { + let SortDirectionsAvailMask: u8 = + unsafe { ::core::mem::transmute(SortDirectionsAvailMask) }; + SortDirectionsAvailMask as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableCellData { + pub BgColor: ImU32, + pub Column: ImGuiTableColumnIdx, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableInstanceData { + pub LastOuterHeight: f32, + pub LastFirstRowHeight: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableColumn { + pub Data: *mut ImGuiTableColumn, + pub DataEnd: *mut ImGuiTableColumn, +} +impl Default for ImSpan_ImGuiTableColumn { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableColumnIdx { + pub Data: *mut ImGuiTableColumnIdx, + pub DataEnd: *mut ImGuiTableColumnIdx, +} +impl Default for ImSpan_ImGuiTableColumnIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableCellData { + pub Data: *mut ImGuiTableCellData, + pub DataEnd: *mut ImGuiTableCellData, +} +impl Default for ImSpan_ImGuiTableCellData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableInstanceData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableInstanceData, +} +impl Default for ImVector_ImGuiTableInstanceData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableColumnSortSpecs { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableColumnSortSpecs, +} +impl Default for ImVector_ImGuiTableColumnSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiTable { + pub ID: ImGuiID, + pub Flags: ImGuiTableFlags, + pub RawData: *mut cty::c_void, + pub TempData: *mut ImGuiTableTempData, + pub Columns: ImSpan_ImGuiTableColumn, + pub DisplayOrderToIndex: ImSpan_ImGuiTableColumnIdx, + pub RowCellData: ImSpan_ImGuiTableCellData, + pub EnabledMaskByDisplayOrder: ImU64, + pub EnabledMaskByIndex: ImU64, + pub VisibleMaskByIndex: ImU64, + pub RequestOutputMaskByIndex: ImU64, + pub SettingsLoadedFlags: ImGuiTableFlags, + pub SettingsOffset: cty::c_int, + pub LastFrameActive: cty::c_int, + pub ColumnsCount: cty::c_int, + pub CurrentRow: cty::c_int, + pub CurrentColumn: cty::c_int, + pub InstanceCurrent: ImS16, + pub InstanceInteracted: ImS16, + pub RowPosY1: f32, + pub RowPosY2: f32, + pub RowMinHeight: f32, + pub RowTextBaseline: f32, + pub RowIndentOffsetX: f32, + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub RowBgColorCounter: cty::c_int, + pub RowBgColor: [ImU32; 2usize], + pub BorderColorStrong: ImU32, + pub BorderColorLight: ImU32, + pub BorderX1: f32, + pub BorderX2: f32, + pub HostIndentX: f32, + pub MinColumnWidth: f32, + pub OuterPaddingX: f32, + pub CellPaddingX: f32, + pub CellPaddingY: f32, + pub CellSpacingX1: f32, + pub CellSpacingX2: f32, + pub InnerWidth: f32, + pub ColumnsGivenWidth: f32, + pub ColumnsAutoFitWidth: f32, + pub ColumnsStretchSumWeights: f32, + pub ResizedColumnNextWidth: f32, + pub ResizeLockMinContentsX2: f32, + pub RefScale: f32, + pub OuterRect: ImRect, + pub InnerRect: ImRect, + pub WorkRect: ImRect, + pub InnerClipRect: ImRect, + pub BgClipRect: ImRect, + pub Bg0ClipRectForDrawCmd: ImRect, + pub Bg2ClipRectForDrawCmd: ImRect, + pub HostClipRect: ImRect, + pub HostBackupInnerClipRect: ImRect, + pub OuterWindow: *mut ImGuiWindow, + pub InnerWindow: *mut ImGuiWindow, + pub ColumnsNames: ImGuiTextBuffer, + pub DrawSplitter: *mut ImDrawListSplitter, + pub InstanceDataFirst: ImGuiTableInstanceData, + pub InstanceDataExtra: ImVector_ImGuiTableInstanceData, + pub SortSpecsSingle: ImGuiTableColumnSortSpecs, + pub SortSpecsMulti: ImVector_ImGuiTableColumnSortSpecs, + pub SortSpecs: ImGuiTableSortSpecs, + pub SortSpecsCount: ImGuiTableColumnIdx, + pub ColumnsEnabledCount: ImGuiTableColumnIdx, + pub ColumnsEnabledFixedCount: ImGuiTableColumnIdx, + pub DeclColumnsCount: ImGuiTableColumnIdx, + pub HoveredColumnBody: ImGuiTableColumnIdx, + pub HoveredColumnBorder: ImGuiTableColumnIdx, + pub AutoFitSingleColumn: ImGuiTableColumnIdx, + pub ResizedColumn: ImGuiTableColumnIdx, + pub LastResizedColumn: ImGuiTableColumnIdx, + pub HeldHeaderColumn: ImGuiTableColumnIdx, + pub ReorderColumn: ImGuiTableColumnIdx, + pub ReorderColumnDir: ImGuiTableColumnIdx, + pub LeftMostEnabledColumn: ImGuiTableColumnIdx, + pub RightMostEnabledColumn: ImGuiTableColumnIdx, + pub LeftMostStretchedColumn: ImGuiTableColumnIdx, + pub RightMostStretchedColumn: ImGuiTableColumnIdx, + pub ContextPopupColumn: ImGuiTableColumnIdx, + pub FreezeRowsRequest: ImGuiTableColumnIdx, + pub FreezeRowsCount: ImGuiTableColumnIdx, + pub FreezeColumnsRequest: ImGuiTableColumnIdx, + pub FreezeColumnsCount: ImGuiTableColumnIdx, + pub RowCellDataCurrent: ImGuiTableColumnIdx, + pub DummyDrawChannel: ImGuiTableDrawChannelIdx, + pub Bg2DrawChannelCurrent: ImGuiTableDrawChannelIdx, + pub Bg2DrawChannelUnfrozen: ImGuiTableDrawChannelIdx, + pub IsLayoutLocked: bool, + pub IsInsideRow: bool, + pub IsInitializing: bool, + pub IsSortSpecsDirty: bool, + pub IsUsingHeaders: bool, + pub IsContextPopupOpen: bool, + pub IsSettingsRequestLoad: bool, + pub IsSettingsDirty: bool, + pub IsDefaultDisplayOrder: bool, + pub IsResetAllRequest: bool, + pub IsResetDisplayOrderRequest: bool, + pub IsUnfrozenRows: bool, + pub IsDefaultSizingPolicy: bool, + pub MemoryCompacted: bool, + pub HostSkipItems: bool, +} +impl Default for ImGuiTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ImGuiTable { + #[inline] + pub fn RowFlags(&self) -> ImGuiTableRowFlags { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_RowFlags(&mut self, val: ImGuiTableRowFlags) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn LastRowFlags(&self) -> ImGuiTableRowFlags { + unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_LastRowFlags(&mut self, val: ImGuiTableRowFlags) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + RowFlags: ImGuiTableRowFlags, + LastRowFlags: ImGuiTableRowFlags, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let RowFlags: u32 = unsafe { ::core::mem::transmute(RowFlags) }; + RowFlags as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let LastRowFlags: u32 = unsafe { ::core::mem::transmute(LastRowFlags) }; + LastRowFlags as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiTableTempData { + pub TableIndex: cty::c_int, + pub LastTimeActive: f32, + pub UserOuterSize: ImVec2, + pub DrawSplitter: ImDrawListSplitter, + pub HostBackupWorkRect: ImRect, + pub HostBackupParentWorkRect: ImRect, + pub HostBackupPrevLineSize: ImVec2, + pub HostBackupCurrLineSize: ImVec2, + pub HostBackupCursorMaxPos: ImVec2, + pub HostBackupColumnsOffset: ImVec1, + pub HostBackupItemWidth: f32, + pub HostBackupItemWidthStackSize: cty::c_int, +} +impl Default for ImGuiTableTempData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableColumnSettings { + pub WidthOrWeight: f32, + pub UserID: ImGuiID, + pub Index: ImGuiTableColumnIdx, + pub DisplayOrder: ImGuiTableColumnIdx, + pub SortOrder: ImGuiTableColumnIdx, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +} +impl ImGuiTableColumnSettings { + #[inline] + pub fn SortDirection(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u8) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 2u8, val as u64) + } + } + #[inline] + pub fn IsEnabled(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsEnabled(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsStretch(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsStretch(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImU8, + IsEnabled: ImU8, + IsStretch: ImU8, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 2u8, { + let SortDirection: u8 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let IsEnabled: u8 = unsafe { ::core::mem::transmute(IsEnabled) }; + IsEnabled as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let IsStretch: u8 = unsafe { ::core::mem::transmute(IsStretch) }; + IsStretch as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableSettings { + pub ID: ImGuiID, + pub SaveFlags: ImGuiTableFlags, + pub RefScale: f32, + pub ColumnsCount: ImGuiTableColumnIdx, + pub ColumnsCountMax: ImGuiTableColumnIdx, + pub WantApply: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImFontBuilderIO { + pub FontBuilder_Build: + ::core::option::Option bool>, +} +pub const ImGuiFreeTypeBuilderFlags_NoHinting: ImGuiFreeTypeBuilderFlags = 1; +pub const ImGuiFreeTypeBuilderFlags_NoAutoHint: ImGuiFreeTypeBuilderFlags = 2; +pub const ImGuiFreeTypeBuilderFlags_ForceAutoHint: ImGuiFreeTypeBuilderFlags = 4; +pub const ImGuiFreeTypeBuilderFlags_LightHinting: ImGuiFreeTypeBuilderFlags = 8; +pub const ImGuiFreeTypeBuilderFlags_MonoHinting: ImGuiFreeTypeBuilderFlags = 16; +pub const ImGuiFreeTypeBuilderFlags_Bold: ImGuiFreeTypeBuilderFlags = 32; +pub const ImGuiFreeTypeBuilderFlags_Oblique: ImGuiFreeTypeBuilderFlags = 64; +pub const ImGuiFreeTypeBuilderFlags_Monochrome: ImGuiFreeTypeBuilderFlags = 128; +pub const ImGuiFreeTypeBuilderFlags_LoadColor: ImGuiFreeTypeBuilderFlags = 256; +pub const ImGuiFreeTypeBuilderFlags_Bitmap: ImGuiFreeTypeBuilderFlags = 512; +pub type ImGuiFreeTypeBuilderFlags = cty::c_uint; +extern "C" { + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; +} +extern "C" { + pub fn ImVec2_destroy(self_: *mut ImVec2); +} +extern "C" { + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; +} +extern "C" { + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; +} +extern "C" { + pub fn ImVec4_destroy(self_: *mut ImVec4); +} +extern "C" { + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; +} +extern "C" { + pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; +} +extern "C" { + pub fn igDestroyContext(ctx: *mut ImGuiContext); +} +extern "C" { + pub fn igGetCurrentContext() -> *mut ImGuiContext; +} +extern "C" { + pub fn igSetCurrentContext(ctx: *mut ImGuiContext); +} +extern "C" { + pub fn igGetIO() -> *mut ImGuiIO; +} +extern "C" { + pub fn igGetStyle() -> *mut ImGuiStyle; +} +extern "C" { + pub fn igNewFrame(); +} +extern "C" { + pub fn igEndFrame(); +} +extern "C" { + pub fn igRender(); +} +extern "C" { + pub fn igGetDrawData() -> *mut ImDrawData; +} +extern "C" { + pub fn igShowDemoWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowMetricsWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowStackToolWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowAboutWindow(p_open: *mut bool); +} +extern "C" { + pub fn igShowStyleEditor(ref_: *mut ImGuiStyle); +} +extern "C" { + pub fn igShowStyleSelector(label: *const cty::c_char) -> bool; +} +extern "C" { + pub fn igShowFontSelector(label: *const cty::c_char); +} +extern "C" { + pub fn igShowUserGuide(); +} +extern "C" { + pub fn igGetVersion() -> *const cty::c_char; +} +extern "C" { + pub fn igStyleColorsDark(dst: *mut ImGuiStyle); +} +extern "C" { + pub fn igStyleColorsLight(dst: *mut ImGuiStyle); +} +extern "C" { + pub fn igStyleColorsClassic(dst: *mut ImGuiStyle); +} +extern "C" { + pub fn igBegin(name: *const cty::c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool; +} +extern "C" { + pub fn igEnd(); +} +extern "C" { + pub fn igBeginChild_Str( + str_id: *const cty::c_char, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +extern "C" { + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +extern "C" { + pub fn igEndChild(); +} +extern "C" { + pub fn igIsWindowAppearing() -> bool; +} +extern "C" { + pub fn igIsWindowCollapsed() -> bool; +} +extern "C" { + pub fn igIsWindowFocused(flags: ImGuiFocusedFlags) -> bool; +} +extern "C" { + pub fn igIsWindowHovered(flags: ImGuiHoveredFlags) -> bool; +} +extern "C" { + pub fn igGetWindowDrawList() -> *mut ImDrawList; +} +extern "C" { + pub fn igGetWindowDpiScale() -> f32; +} +extern "C" { + pub fn igGetWindowPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowSize(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowWidth() -> f32; +} +extern "C" { + pub fn igGetWindowHeight() -> f32; +} +extern "C" { + pub fn igGetWindowViewport() -> *mut ImGuiViewport; +} +extern "C" { + pub fn igSetNextWindowPos(pos: ImVec2, cond: ImGuiCond, pivot: ImVec2); +} +extern "C" { + pub fn igSetNextWindowSize(size: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetNextWindowSizeConstraints( + size_min: ImVec2, + size_max: ImVec2, + custom_callback: ImGuiSizeCallback, + custom_callback_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn igSetNextWindowContentSize(size: ImVec2); +} +extern "C" { + pub fn igSetNextWindowCollapsed(collapsed: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSetNextWindowFocus(); +} +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} +extern "C" { + pub fn igSetNextWindowBgAlpha(alpha: f32); +} +extern "C" { + pub fn igSetNextWindowViewport(viewport_id: ImGuiID); +} +extern "C" { + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowFocus_Nil(); +} +extern "C" { + pub fn igSetWindowFontScale(scale: f32); +} +extern "C" { + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSetWindowFocus_Str(name: *const cty::c_char); +} +extern "C" { + pub fn igGetContentRegionAvail(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetContentRegionMax(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowContentRegionMin(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetWindowContentRegionMax(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetScrollX() -> f32; +} +extern "C" { + pub fn igGetScrollY() -> f32; +} +extern "C" { + pub fn igSetScrollX_Float(scroll_x: f32); +} +extern "C" { + pub fn igSetScrollY_Float(scroll_y: f32); +} +extern "C" { + pub fn igGetScrollMaxX() -> f32; +} +extern "C" { + pub fn igGetScrollMaxY() -> f32; +} +extern "C" { + pub fn igSetScrollHereX(center_x_ratio: f32); +} +extern "C" { + pub fn igSetScrollHereY(center_y_ratio: f32); +} +extern "C" { + pub fn igSetScrollFromPosX_Float(local_x: f32, center_x_ratio: f32); +} +extern "C" { + pub fn igSetScrollFromPosY_Float(local_y: f32, center_y_ratio: f32); +} +extern "C" { + pub fn igPushFont(font: *mut ImFont); +} +extern "C" { + pub fn igPopFont(); +} +extern "C" { + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); +} +extern "C" { + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); +} +extern "C" { + pub fn igPopStyleColor(count: cty::c_int); +} +extern "C" { + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); +} +extern "C" { + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); +} +extern "C" { + pub fn igPopStyleVar(count: cty::c_int); +} +extern "C" { + pub fn igPushAllowKeyboardFocus(allow_keyboard_focus: bool); +} +extern "C" { + pub fn igPopAllowKeyboardFocus(); +} +extern "C" { + pub fn igPushButtonRepeat(repeat: bool); +} +extern "C" { + pub fn igPopButtonRepeat(); +} +extern "C" { + pub fn igPushItemWidth(item_width: f32); +} +extern "C" { + pub fn igPopItemWidth(); +} +extern "C" { + pub fn igSetNextItemWidth(item_width: f32); +} +extern "C" { + pub fn igCalcItemWidth() -> f32; +} +extern "C" { + pub fn igPushTextWrapPos(wrap_local_pos_x: f32); +} +extern "C" { + pub fn igPopTextWrapPos(); +} +extern "C" { + pub fn igGetFont() -> *mut ImFont; +} +extern "C" { + pub fn igGetFontSize() -> f32; +} +extern "C" { + pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; +} +extern "C" { + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; +} +extern "C" { + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; +} +extern "C" { + pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; +} +extern "C" { + pub fn igSeparator(); +} +extern "C" { + pub fn igSameLine(offset_from_start_x: f32, spacing: f32); +} +extern "C" { + pub fn igNewLine(); +} +extern "C" { + pub fn igSpacing(); +} +extern "C" { + pub fn igDummy(size: ImVec2); +} +extern "C" { + pub fn igIndent(indent_w: f32); +} +extern "C" { + pub fn igUnindent(indent_w: f32); +} +extern "C" { + pub fn igBeginGroup(); +} +extern "C" { + pub fn igEndGroup(); +} +extern "C" { + pub fn igGetCursorPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetCursorPosX() -> f32; +} +extern "C" { + pub fn igGetCursorPosY() -> f32; +} +extern "C" { + pub fn igSetCursorPos(local_pos: ImVec2); +} +extern "C" { + pub fn igSetCursorPosX(local_x: f32); +} +extern "C" { + pub fn igSetCursorPosY(local_y: f32); +} +extern "C" { + pub fn igGetCursorStartPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetCursorScreenPos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igSetCursorScreenPos(pos: ImVec2); +} +extern "C" { + pub fn igAlignTextToFramePadding(); +} +extern "C" { + pub fn igGetTextLineHeight() -> f32; +} +extern "C" { + pub fn igGetTextLineHeightWithSpacing() -> f32; +} +extern "C" { + pub fn igGetFrameHeight() -> f32; +} +extern "C" { + pub fn igGetFrameHeightWithSpacing() -> f32; +} +extern "C" { + pub fn igPushID_Str(str_id: *const cty::c_char); +} +extern "C" { + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); +} +extern "C" { + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); +} +extern "C" { + pub fn igPushID_Int(int_id: cty::c_int); +} +extern "C" { + pub fn igPopID(); +} +extern "C" { + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; +} +extern "C" { + pub fn igGetID_StrStr( + str_id_begin: *const cty::c_char, + str_id_end: *const cty::c_char, + ) -> ImGuiID; +} +extern "C" { + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; +} +extern "C" { + pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); +} +extern "C" { + pub fn igText(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igTextColored(col: ImVec4, fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igTextDisabled(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igTextWrapped(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igLabelText(label: *const cty::c_char, fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igBulletText(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igButton(label: *const cty::c_char, size: ImVec2) -> bool; +} +extern "C" { + pub fn igSmallButton(label: *const cty::c_char) -> bool; +} +extern "C" { + pub fn igInvisibleButton( + str_id: *const cty::c_char, + size: ImVec2, + flags: ImGuiButtonFlags, + ) -> bool; +} +extern "C" { + pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; +} +extern "C" { + pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; +} +extern "C" { + pub fn igCheckboxFlags_IntPtr( + label: *const cty::c_char, + flags: *mut cty::c_int, + flags_value: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igCheckboxFlags_UintPtr( + label: *const cty::c_char, + flags: *mut cty::c_uint, + flags_value: cty::c_uint, + ) -> bool; +} +extern "C" { + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; +} +extern "C" { + pub fn igRadioButton_IntPtr( + label: *const cty::c_char, + v: *mut cty::c_int, + v_button: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const cty::c_char); +} +extern "C" { + pub fn igBullet(); +} +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} +extern "C" { + pub fn igBeginCombo( + label: *const cty::c_char, + preview_value: *const cty::c_char, + flags: ImGuiComboFlags, + ) -> bool; +} +extern "C" { + pub fn igEndCombo(); +} +extern "C" { + pub fn igCombo_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igCombo_Str( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_separated_by_zeros: *const cty::c_char, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igCombo_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igDragFloat( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloat2( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloat3( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloat4( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragFloatRange2( + label: *const cty::c_char, + v_current_min: *mut f32, + v_current_max: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragIntRange2( + label: *const cty::c_char, + v_current_min: *mut cty::c_int, + v_current_max: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igDragScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat2( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat3( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderFloat4( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderAngle( + label: *const cty::c_char, + v_rad: *mut f32, + v_degrees_min: f32, + v_degrees_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igSliderScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igVSliderFloat( + label: *const cty::c_char, + size: ImVec2, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igVSliderInt( + label: *const cty::c_char, + size: ImVec2, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igVSliderScalar( + label: *const cty::c_char, + size: ImVec2, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +extern "C" { + pub fn igInputText( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +extern "C" { + pub fn igInputTextMultiline( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + size: ImVec2, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +extern "C" { + pub fn igInputTextWithHint( + label: *const cty::c_char, + hint: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +extern "C" { + pub fn igInputFloat( + label: *const cty::c_char, + v: *mut f32, + step: f32, + step_fast: f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputFloat2( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputFloat3( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputFloat4( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt( + label: *const cty::c_char, + v: *mut cty::c_int, + step: cty::c_int, + step_fast: cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputDouble( + label: *const cty::c_char, + v: *mut f64, + step: f64, + step_fast: f64, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igInputScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +extern "C" { + pub fn igColorEdit3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +extern "C" { + pub fn igColorEdit4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +extern "C" { + pub fn igColorPicker3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +extern "C" { + pub fn igColorPicker4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ref_col: *const f32, + ) -> bool; +} +extern "C" { + pub fn igColorButton( + desc_id: *const cty::c_char, + col: ImVec4, + flags: ImGuiColorEditFlags, + size: ImVec2, + ) -> bool; +} +extern "C" { + pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); +} +extern "C" { + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; +} +extern "C" { + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; +} +extern "C" { + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; +} +extern "C" { + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; +} +extern "C" { + pub fn igTreeNodeEx_StrStr( + str_id: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +extern "C" { + pub fn igTreeNodeEx_Ptr( + ptr_id: *const cty::c_void, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +extern "C" { + pub fn igTreePush_Str(str_id: *const cty::c_char); +} +extern "C" { + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); +} +extern "C" { + pub fn igTreePop(); +} +extern "C" { + pub fn igGetTreeNodeToLabelSpacing() -> f32; +} +extern "C" { + pub fn igCollapsingHeader_TreeNodeFlags( + label: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +extern "C" { + pub fn igCollapsingHeader_BoolPtr( + label: *const cty::c_char, + p_visible: *mut bool, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +extern "C" { + pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); +} +extern "C" { + pub fn igSelectable_Bool( + label: *const cty::c_char, + selected: bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +extern "C" { + pub fn igSelectable_BoolPtr( + label: *const cty::c_char, + p_selected: *mut bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +extern "C" { + pub fn igBeginListBox(label: *const cty::c_char, size: ImVec2) -> bool; +} +extern "C" { + pub fn igEndListBox(); +} +extern "C" { + pub fn igListBox_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igListBox_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +extern "C" { + pub fn igPlotLines_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +extern "C" { + pub fn igPlotLines_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +extern "C" { + pub fn igPlotHistogram_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +extern "C" { + pub fn igPlotHistogram_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +extern "C" { + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); +} +extern "C" { + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); +} +extern "C" { + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); +} +extern "C" { + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); +} +extern "C" { + pub fn igBeginMenuBar() -> bool; +} +extern "C" { + pub fn igEndMenuBar(); +} +extern "C" { + pub fn igBeginMainMenuBar() -> bool; +} +extern "C" { + pub fn igEndMainMenuBar(); +} +extern "C" { + pub fn igBeginMenu(label: *const cty::c_char, enabled: bool) -> bool; +} +extern "C" { + pub fn igEndMenu(); +} +extern "C" { + pub fn igMenuItem_Bool( + label: *const cty::c_char, + shortcut: *const cty::c_char, + selected: bool, + enabled: bool, + ) -> bool; +} +extern "C" { + pub fn igMenuItem_BoolPtr( + label: *const cty::c_char, + shortcut: *const cty::c_char, + p_selected: *mut bool, + enabled: bool, + ) -> bool; +} +extern "C" { + pub fn igBeginTooltip(); +} +extern "C" { + pub fn igEndTooltip(); +} +extern "C" { + pub fn igSetTooltip(fmt: *const cty::c_char, ...); +} +extern "C" { + pub fn igBeginPopup(str_id: *const cty::c_char, flags: ImGuiWindowFlags) -> bool; +} +extern "C" { + pub fn igBeginPopupModal( + name: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +extern "C" { + pub fn igEndPopup(); +} +extern "C" { + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +extern "C" { + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); +} +extern "C" { + pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +extern "C" { + pub fn igCloseCurrentPopup(); +} +extern "C" { + pub fn igBeginPopupContextItem( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +extern "C" { + pub fn igBeginPopupContextWindow( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +extern "C" { + pub fn igBeginPopupContextVoid( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +extern "C" { + pub fn igIsPopupOpen_Str(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; +} +extern "C" { + pub fn igBeginTable( + str_id: *const cty::c_char, + column: cty::c_int, + flags: ImGuiTableFlags, + outer_size: ImVec2, + inner_width: f32, + ) -> bool; +} +extern "C" { + pub fn igEndTable(); +} +extern "C" { + pub fn igTableNextRow(row_flags: ImGuiTableRowFlags, min_row_height: f32); +} +extern "C" { + pub fn igTableNextColumn() -> bool; +} +extern "C" { + pub fn igTableSetColumnIndex(column_n: cty::c_int) -> bool; +} +extern "C" { + pub fn igTableSetupColumn( + label: *const cty::c_char, + flags: ImGuiTableColumnFlags, + init_width_or_weight: f32, + user_id: ImGuiID, + ); +} +extern "C" { + pub fn igTableSetupScrollFreeze(cols: cty::c_int, rows: cty::c_int); +} +extern "C" { + pub fn igTableHeadersRow(); +} +extern "C" { + pub fn igTableHeader(label: *const cty::c_char); +} +extern "C" { + pub fn igTableGetSortSpecs() -> *mut ImGuiTableSortSpecs; +} +extern "C" { + pub fn igTableGetColumnCount() -> cty::c_int; +} +extern "C" { + pub fn igTableGetColumnIndex() -> cty::c_int; +} +extern "C" { + pub fn igTableGetRowIndex() -> cty::c_int; +} +extern "C" { + pub fn igTableGetColumnName_Int(column_n: cty::c_int) -> *const cty::c_char; +} +extern "C" { + pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; +} +extern "C" { + pub fn igTableSetColumnEnabled(column_n: cty::c_int, v: bool); +} +extern "C" { + pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: cty::c_int); +} +extern "C" { + pub fn igColumns(count: cty::c_int, id: *const cty::c_char, border: bool); +} +extern "C" { + pub fn igNextColumn(); +} +extern "C" { + pub fn igGetColumnIndex() -> cty::c_int; +} +extern "C" { + pub fn igGetColumnWidth(column_index: cty::c_int) -> f32; +} +extern "C" { + pub fn igSetColumnWidth(column_index: cty::c_int, width: f32); +} +extern "C" { + pub fn igGetColumnOffset(column_index: cty::c_int) -> f32; +} +extern "C" { + pub fn igSetColumnOffset(column_index: cty::c_int, offset_x: f32); +} +extern "C" { + pub fn igGetColumnsCount() -> cty::c_int; +} +extern "C" { + pub fn igBeginTabBar(str_id: *const cty::c_char, flags: ImGuiTabBarFlags) -> bool; +} +extern "C" { + pub fn igEndTabBar(); +} +extern "C" { + pub fn igBeginTabItem( + label: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiTabItemFlags, + ) -> bool; +} +extern "C" { + pub fn igEndTabItem(); +} +extern "C" { + pub fn igTabItemButton(label: *const cty::c_char, flags: ImGuiTabItemFlags) -> bool; +} +extern "C" { + pub fn igSetTabItemClosed(tab_or_docked_window_label: *const cty::c_char); +} +extern "C" { + pub fn igDockSpace( + id: ImGuiID, + size: ImVec2, + flags: ImGuiDockNodeFlags, + window_class: *const ImGuiWindowClass, + ) -> ImGuiID; +} +extern "C" { + pub fn igDockSpaceOverViewport( + viewport: *const ImGuiViewport, + flags: ImGuiDockNodeFlags, + window_class: *const ImGuiWindowClass, + ) -> ImGuiID; +} +extern "C" { + pub fn igSetNextWindowDockID(dock_id: ImGuiID, cond: ImGuiCond); +} +extern "C" { + pub fn igSetNextWindowClass(window_class: *const ImGuiWindowClass); +} +extern "C" { + pub fn igGetWindowDockID() -> ImGuiID; +} +extern "C" { + pub fn igIsWindowDocked() -> bool; +} +extern "C" { + pub fn igLogToTTY(auto_open_depth: cty::c_int); +} +extern "C" { + pub fn igLogToFile(auto_open_depth: cty::c_int, filename: *const cty::c_char); +} +extern "C" { + pub fn igLogToClipboard(auto_open_depth: cty::c_int); +} +extern "C" { + pub fn igLogFinish(); +} +extern "C" { + pub fn igLogButtons(); +} +extern "C" { + pub fn igBeginDragDropSource(flags: ImGuiDragDropFlags) -> bool; +} +extern "C" { + pub fn igSetDragDropPayload( + type_: *const cty::c_char, + data: *const cty::c_void, + sz: usize, + cond: ImGuiCond, + ) -> bool; +} +extern "C" { + pub fn igEndDragDropSource(); +} +extern "C" { + pub fn igBeginDragDropTarget() -> bool; +} +extern "C" { + pub fn igAcceptDragDropPayload( + type_: *const cty::c_char, + flags: ImGuiDragDropFlags, + ) -> *const ImGuiPayload; +} +extern "C" { + pub fn igEndDragDropTarget(); +} +extern "C" { + pub fn igGetDragDropPayload() -> *const ImGuiPayload; +} +extern "C" { + pub fn igBeginDisabled(disabled: bool); +} +extern "C" { + pub fn igEndDisabled(); +} +extern "C" { + pub fn igPushClipRect( + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +extern "C" { + pub fn igPopClipRect(); +} +extern "C" { + pub fn igSetItemDefaultFocus(); +} +extern "C" { + pub fn igSetKeyboardFocusHere(offset: cty::c_int); +} +extern "C" { + pub fn igIsItemHovered(flags: ImGuiHoveredFlags) -> bool; +} +extern "C" { + pub fn igIsItemActive() -> bool; +} +extern "C" { + pub fn igIsItemFocused() -> bool; +} +extern "C" { + pub fn igIsItemClicked(mouse_button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igIsItemVisible() -> bool; +} +extern "C" { + pub fn igIsItemEdited() -> bool; +} +extern "C" { + pub fn igIsItemActivated() -> bool; +} +extern "C" { + pub fn igIsItemDeactivated() -> bool; +} +extern "C" { + pub fn igIsItemDeactivatedAfterEdit() -> bool; +} +extern "C" { + pub fn igIsItemToggledOpen() -> bool; +} +extern "C" { + pub fn igIsAnyItemHovered() -> bool; +} +extern "C" { + pub fn igIsAnyItemActive() -> bool; +} +extern "C" { + pub fn igIsAnyItemFocused() -> bool; +} +extern "C" { + pub fn igGetItemRectMin(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetItemRectMax(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetItemRectSize(pOut: *mut ImVec2); +} +extern "C" { + pub fn igSetItemAllowOverlap(); +} +extern "C" { + pub fn igGetMainViewport() -> *mut ImGuiViewport; +} +extern "C" { + pub fn igGetBackgroundDrawList_Nil() -> *mut ImDrawList; +} +extern "C" { + pub fn igGetForegroundDrawList_Nil() -> *mut ImDrawList; +} +extern "C" { + pub fn igGetBackgroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; +} +extern "C" { + pub fn igGetForegroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; +} +extern "C" { + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; +} +extern "C" { + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; +} +extern "C" { + pub fn igGetTime() -> f64; +} +extern "C" { + pub fn igGetFrameCount() -> cty::c_int; +} +extern "C" { + pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; +} +extern "C" { + pub fn igGetStyleColorName(idx: ImGuiCol) -> *const cty::c_char; +} +extern "C" { + pub fn igSetStateStorage(storage: *mut ImGuiStorage); +} +extern "C" { + pub fn igGetStateStorage() -> *mut ImGuiStorage; +} +extern "C" { + pub fn igBeginChildFrame(id: ImGuiID, size: ImVec2, flags: ImGuiWindowFlags) -> bool; +} +extern "C" { + pub fn igEndChildFrame(); +} +extern "C" { + pub fn igCalcTextSize( + pOut: *mut ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + hide_text_after_double_hash: bool, + wrap_width: f32, + ); +} +extern "C" { + pub fn igColorConvertU32ToFloat4(pOut: *mut ImVec4, in_: ImU32); +} +extern "C" { + pub fn igColorConvertFloat4ToU32(in_: ImVec4) -> ImU32; +} +extern "C" { + pub fn igColorConvertRGBtoHSV( + r: f32, + g: f32, + b: f32, + out_h: *mut f32, + out_s: *mut f32, + out_v: *mut f32, + ); +} +extern "C" { + pub fn igColorConvertHSVtoRGB( + h: f32, + s: f32, + v: f32, + out_r: *mut f32, + out_g: *mut f32, + out_b: *mut f32, + ); +} +extern "C" { + pub fn igIsKeyDown_Nil(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igIsKeyPressed_Bool(key: ImGuiKey, repeat: bool) -> bool; +} +extern "C" { + pub fn igIsKeyReleased_Nil(key: ImGuiKey) -> bool; +} +extern "C" { + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; +} +extern "C" { + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; +} +extern "C" { + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); +} +extern "C" { + pub fn igIsMouseDown_Nil(button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igIsMouseClicked_Bool(button: ImGuiMouseButton, repeat: bool) -> bool; +} +extern "C" { + pub fn igIsMouseReleased_Nil(button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; +} +extern "C" { + pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> cty::c_int; +} +extern "C" { + pub fn igIsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool; +} +extern "C" { + pub fn igIsMousePosValid(mouse_pos: *const ImVec2) -> bool; +} +extern "C" { + pub fn igIsAnyMouseDown() -> bool; +} +extern "C" { + pub fn igGetMousePos(pOut: *mut ImVec2); +} +extern "C" { + pub fn igGetMousePosOnOpeningCurrentPopup(pOut: *mut ImVec2); +} +extern "C" { + pub fn igIsMouseDragging(button: ImGuiMouseButton, lock_threshold: f32) -> bool; +} +extern "C" { + pub fn igGetMouseDragDelta(pOut: *mut ImVec2, button: ImGuiMouseButton, lock_threshold: f32); +} +extern "C" { + pub fn igResetMouseDragDelta(button: ImGuiMouseButton); +} +extern "C" { + pub fn igGetMouseCursor() -> ImGuiMouseCursor; +} +extern "C" { + pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); +} +extern "C" { + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); +} +extern "C" { + pub fn igGetClipboardText() -> *const cty::c_char; +} +extern "C" { + pub fn igSetClipboardText(text: *const cty::c_char); +} +extern "C" { + pub fn igLoadIniSettingsFromDisk(ini_filename: *const cty::c_char); +} +extern "C" { + pub fn igLoadIniSettingsFromMemory(ini_data: *const cty::c_char, ini_size: usize); +} +extern "C" { + pub fn igSaveIniSettingsToDisk(ini_filename: *const cty::c_char); +} +extern "C" { + pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; +} +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} +extern "C" { + pub fn igDebugCheckVersionAndDataLayout( + version_str: *const cty::c_char, + sz_io: usize, + sz_style: usize, + sz_vec2: usize, + sz_vec4: usize, + sz_drawvert: usize, + sz_drawidx: usize, + ) -> bool; +} +extern "C" { + pub fn igSetAllocatorFunctions( + alloc_func: ImGuiMemAllocFunc, + free_func: ImGuiMemFreeFunc, + user_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn igGetAllocatorFunctions( + p_alloc_func: *mut ImGuiMemAllocFunc, + p_free_func: *mut ImGuiMemFreeFunc, + p_user_data: *mut *mut cty::c_void, + ); +} +extern "C" { + pub fn igMemAlloc(size: usize) -> *mut cty::c_void; +} +extern "C" { + pub fn igMemFree(ptr: *mut cty::c_void); +} +extern "C" { + pub fn igGetPlatformIO() -> *mut ImGuiPlatformIO; +} +extern "C" { + pub fn igUpdatePlatformWindows(); +} +extern "C" { + pub fn igRenderPlatformWindowsDefault( + platform_render_arg: *mut cty::c_void, + renderer_render_arg: *mut cty::c_void, + ); +} +extern "C" { + pub fn igDestroyPlatformWindows(); +} +extern "C" { + pub fn igFindViewportByID(id: ImGuiID) -> *mut ImGuiViewport; +} +extern "C" { + pub fn igFindViewportByPlatformHandle(platform_handle: *mut cty::c_void) -> *mut ImGuiViewport; +} +extern "C" { + pub fn ImGuiStyle_ImGuiStyle() -> *mut ImGuiStyle; +} +extern "C" { + pub fn ImGuiStyle_destroy(self_: *mut ImGuiStyle); +} +extern "C" { + pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); +} +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +extern "C" { + pub fn ImGuiIO_AddMouseViewportEvent(self_: *mut ImGuiIO, id: ImGuiID); +} +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} +extern "C" { + pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); +} +extern "C" { + pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16); +} +extern "C" { + pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); +} +extern "C" { + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); +} +extern "C" { + pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); +} +extern "C" { + pub fn ImGuiIO_ClearInputKeys(self_: *mut ImGuiIO); +} +extern "C" { + pub fn ImGuiIO_ImGuiIO() -> *mut ImGuiIO; +} +extern "C" { + pub fn ImGuiIO_destroy(self_: *mut ImGuiIO); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_ImGuiInputTextCallbackData() -> *mut ImGuiInputTextCallbackData; +} +extern "C" { + pub fn ImGuiInputTextCallbackData_destroy(self_: *mut ImGuiInputTextCallbackData); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_DeleteChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + bytes_count: cty::c_int, + ); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_InsertChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_SelectAll(self_: *mut ImGuiInputTextCallbackData); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_ClearSelection(self_: *mut ImGuiInputTextCallbackData); +} +extern "C" { + pub fn ImGuiInputTextCallbackData_HasSelection(self_: *mut ImGuiInputTextCallbackData) -> bool; +} +extern "C" { + pub fn ImGuiWindowClass_ImGuiWindowClass() -> *mut ImGuiWindowClass; +} +extern "C" { + pub fn ImGuiWindowClass_destroy(self_: *mut ImGuiWindowClass); +} +extern "C" { + pub fn ImGuiPayload_ImGuiPayload() -> *mut ImGuiPayload; +} +extern "C" { + pub fn ImGuiPayload_destroy(self_: *mut ImGuiPayload); +} +extern "C" { + pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload); +} +extern "C" { + pub fn ImGuiPayload_IsDataType(self_: *mut ImGuiPayload, type_: *const cty::c_char) -> bool; +} +extern "C" { + pub fn ImGuiPayload_IsPreview(self_: *mut ImGuiPayload) -> bool; +} +extern "C" { + pub fn ImGuiPayload_IsDelivery(self_: *mut ImGuiPayload) -> bool; +} +extern "C" { + pub fn ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs() -> *mut ImGuiTableColumnSortSpecs; +} +extern "C" { + pub fn ImGuiTableColumnSortSpecs_destroy(self_: *mut ImGuiTableColumnSortSpecs); +} +extern "C" { + pub fn ImGuiTableSortSpecs_ImGuiTableSortSpecs() -> *mut ImGuiTableSortSpecs; +} +extern "C" { + pub fn ImGuiTableSortSpecs_destroy(self_: *mut ImGuiTableSortSpecs); +} +extern "C" { + pub fn ImGuiOnceUponAFrame_ImGuiOnceUponAFrame() -> *mut ImGuiOnceUponAFrame; +} +extern "C" { + pub fn ImGuiOnceUponAFrame_destroy(self_: *mut ImGuiOnceUponAFrame); +} +extern "C" { + pub fn ImGuiTextFilter_ImGuiTextFilter( + default_filter: *const cty::c_char, + ) -> *mut ImGuiTextFilter; +} +extern "C" { + pub fn ImGuiTextFilter_destroy(self_: *mut ImGuiTextFilter); +} +extern "C" { + pub fn ImGuiTextFilter_Draw( + self_: *mut ImGuiTextFilter, + label: *const cty::c_char, + width: f32, + ) -> bool; +} +extern "C" { + pub fn ImGuiTextFilter_PassFilter( + self_: *mut ImGuiTextFilter, + text: *const cty::c_char, + text_end: *const cty::c_char, + ) -> bool; +} +extern "C" { + pub fn ImGuiTextFilter_Build(self_: *mut ImGuiTextFilter); +} +extern "C" { + pub fn ImGuiTextFilter_Clear(self_: *mut ImGuiTextFilter); +} +extern "C" { + pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; +} +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; +} +extern "C" { + pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); +} +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Str( + _b: *const cty::c_char, + _e: *const cty::c_char, + ) -> *mut ImGuiTextRange; +} +extern "C" { + pub fn ImGuiTextRange_empty(self_: *mut ImGuiTextRange) -> bool; +} +extern "C" { + pub fn ImGuiTextRange_split( + self_: *mut ImGuiTextRange, + separator: cty::c_char, + out: *mut ImVector_ImGuiTextRange, + ); +} +extern "C" { + pub fn ImGuiTextBuffer_ImGuiTextBuffer() -> *mut ImGuiTextBuffer; +} +extern "C" { + pub fn ImGuiTextBuffer_destroy(self_: *mut ImGuiTextBuffer); +} +extern "C" { + pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> cty::c_int; +} +extern "C" { + pub fn ImGuiTextBuffer_empty(self_: *mut ImGuiTextBuffer) -> bool; +} +extern "C" { + pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer); +} +extern "C" { + pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: cty::c_int); +} +extern "C" { + pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextBuffer_append( + self_: *mut ImGuiTextBuffer, + str_: *const cty::c_char, + str_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( + _key: ImGuiID, + _val_i: cty::c_int, + ) -> *mut ImGuiStoragePair; +} +extern "C" { + pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); +} +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( + _key: ImGuiID, + _val_f: f32, + ) -> *mut ImGuiStoragePair; +} +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( + _key: ImGuiID, + _val_p: *mut cty::c_void, + ) -> *mut ImGuiStoragePair; +} +extern "C" { + pub fn ImGuiStorage_Clear(self_: *mut ImGuiStorage); +} +extern "C" { + pub fn ImGuiStorage_GetInt( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> cty::c_int; +} +extern "C" { + pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: cty::c_int); +} +extern "C" { + pub fn ImGuiStorage_GetBool(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> bool; +} +extern "C" { + pub fn ImGuiStorage_SetBool(self_: *mut ImGuiStorage, key: ImGuiID, val: bool); +} +extern "C" { + pub fn ImGuiStorage_GetFloat(self_: *mut ImGuiStorage, key: ImGuiID, default_val: f32) -> f32; +} +extern "C" { + pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32); +} +extern "C" { + pub fn ImGuiStorage_GetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut cty::c_void; +} +extern "C" { + pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut cty::c_void); +} +extern "C" { + pub fn ImGuiStorage_GetIntRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> *mut cty::c_int; +} +extern "C" { + pub fn ImGuiStorage_GetBoolRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: bool, + ) -> *mut bool; +} +extern "C" { + pub fn ImGuiStorage_GetFloatRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: f32, + ) -> *mut f32; +} +extern "C" { + pub fn ImGuiStorage_GetVoidPtrRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: *mut cty::c_void, + ) -> *mut *mut cty::c_void; +} +extern "C" { + pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: cty::c_int); +} +extern "C" { + pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage); +} +extern "C" { + pub fn ImGuiListClipper_ImGuiListClipper() -> *mut ImGuiListClipper; +} +extern "C" { + pub fn ImGuiListClipper_destroy(self_: *mut ImGuiListClipper); +} +extern "C" { + pub fn ImGuiListClipper_Begin( + self_: *mut ImGuiListClipper, + items_count: cty::c_int, + items_height: f32, + ); +} +extern "C" { + pub fn ImGuiListClipper_End(self_: *mut ImGuiListClipper); +} +extern "C" { + pub fn ImGuiListClipper_Step(self_: *mut ImGuiListClipper) -> bool; +} +extern "C" { + pub fn ImGuiListClipper_ForceDisplayRangeByIndices( + self_: *mut ImGuiListClipper, + item_min: cty::c_int, + item_max: cty::c_int, + ); +} +extern "C" { + pub fn ImColor_ImColor_Nil() -> *mut ImColor; +} +extern "C" { + pub fn ImColor_destroy(self_: *mut ImColor); +} +extern "C" { + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_Int( + r: cty::c_int, + g: cty::c_int, + b: cty::c_int, + a: cty::c_int, + ) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; +} +extern "C" { + pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +extern "C" { + pub fn ImColor_HSV(pOut: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +extern "C" { + pub fn ImDrawCmd_ImDrawCmd() -> *mut ImDrawCmd; +} +extern "C" { + pub fn ImDrawCmd_destroy(self_: *mut ImDrawCmd); +} +extern "C" { + pub fn ImDrawCmd_GetTexID(self_: *mut ImDrawCmd) -> ImTextureID; +} +extern "C" { + pub fn ImDrawListSplitter_ImDrawListSplitter() -> *mut ImDrawListSplitter; +} +extern "C" { + pub fn ImDrawListSplitter_destroy(self_: *mut ImDrawListSplitter); +} +extern "C" { + pub fn ImDrawListSplitter_Clear(self_: *mut ImDrawListSplitter); +} +extern "C" { + pub fn ImDrawListSplitter_ClearFreeMemory(self_: *mut ImDrawListSplitter); +} +extern "C" { + pub fn ImDrawListSplitter_Split( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + count: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawListSplitter_Merge(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawListSplitter_SetCurrentChannel( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + channel_idx: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; +} +extern "C" { + pub fn ImDrawList_destroy(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PushClipRect( + self_: *mut ImDrawList, + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +extern "C" { + pub fn ImDrawList_PushClipRectFullScreen(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PopClipRect(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PushTextureID(self_: *mut ImDrawList, texture_id: ImTextureID); +} +extern "C" { + pub fn ImDrawList_PopTextureID(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_GetClipRectMin(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_GetClipRectMax(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_AddLine( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + col: ImU32, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddRect( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddRectFilled( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +extern "C" { + 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, + ); +} +extern "C" { + pub fn ImDrawList_AddQuad( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddQuadFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddTriangle( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddTriangleFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddCircle( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddCircleFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddNgon( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddNgonFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddText_Vec2( + self_: *mut ImDrawList, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImDrawList_AddText_FontPtr( + self_: *mut ImDrawList, + font: *const ImFont, + font_size: f32, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip_rect: *const ImVec4, + ); +} +extern "C" { + pub fn ImDrawList_AddPolyline( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_AddConvexPolyFilled( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddBezierCubic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddBezierQuadratic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_AddImage( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddImageQuad( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + uv1: ImVec2, + uv2: ImVec2, + uv3: ImVec2, + uv4: ImVec2, + col: ImU32, + ); +} +extern "C" { + pub fn ImDrawList_AddImageRounded( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +extern "C" { + pub fn ImDrawList_PathClear(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_PathLineTo(self_: *mut ImDrawList, pos: ImVec2); +} +extern "C" { + pub fn ImDrawList_PathLineToMergeDuplicate(self_: *mut ImDrawList, pos: ImVec2); +} +extern "C" { + pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32); +} +extern "C" { + pub fn ImDrawList_PathStroke( + self_: *mut ImDrawList, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +extern "C" { + pub fn ImDrawList_PathArcTo( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathArcToFast( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_of_12: cty::c_int, + a_max_of_12: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathBezierCubicCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathBezierQuadraticCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PathRect( + self_: *mut ImDrawList, + rect_min: ImVec2, + rect_max: ImVec2, + rounding: f32, + flags: ImDrawFlags, + ); +} +extern "C" { + pub fn ImDrawList_AddCallback( + self_: *mut ImDrawList, + callback: ImDrawCallback, + callback_data: *mut cty::c_void, + ); +} +extern "C" { + pub fn ImDrawList_AddDrawCmd(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_CloneOutput(self_: *mut ImDrawList) -> *mut ImDrawList; +} +extern "C" { + pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: cty::c_int); +} +extern "C" { + pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: cty::c_int); +} +extern "C" { + pub fn ImDrawList_PrimReserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PrimUnreserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList_PrimRect(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, col: ImU32); +} +extern "C" { + pub fn ImDrawList_PrimRectUV( + self_: *mut ImDrawList, + a: ImVec2, + b: ImVec2, + uv_a: ImVec2, + uv_b: ImVec2, + col: ImU32, + ); +} +extern "C" { + 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, + ); +} +extern "C" { + pub fn ImDrawList_PrimWriteVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +extern "C" { + pub fn ImDrawList_PrimWriteIdx(self_: *mut ImDrawList, idx: ImDrawIdx); +} +extern "C" { + pub fn ImDrawList_PrimVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +extern "C" { + pub fn ImDrawList__ResetForNewFrame(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__ClearFreeMemory(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__PopUnusedDrawCmd(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__TryMergeDrawCmds(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__OnChangedClipRect(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__OnChangedTextureID(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList); +} +extern "C" { + pub fn ImDrawList__CalcCircleAutoSegmentCount( + self_: *mut ImDrawList, + radius: f32, + ) -> cty::c_int; +} +extern "C" { + pub fn ImDrawList__PathArcToFastEx( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_sample: cty::c_int, + a_max_sample: cty::c_int, + a_step: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawList__PathArcToN( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawData_ImDrawData() -> *mut ImDrawData; +} +extern "C" { + pub fn ImDrawData_destroy(self_: *mut ImDrawData); +} +extern "C" { + pub fn ImDrawData_Clear(self_: *mut ImDrawData); +} +extern "C" { + pub fn ImDrawData_DeIndexAllBuffers(self_: *mut ImDrawData); +} +extern "C" { + pub fn ImDrawData_ScaleClipRects(self_: *mut ImDrawData, fb_scale: ImVec2); +} +extern "C" { + pub fn ImFontConfig_ImFontConfig() -> *mut ImFontConfig; +} +extern "C" { + pub fn ImFontConfig_destroy(self_: *mut ImFontConfig); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder() -> *mut ImFontGlyphRangesBuilder; +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_destroy(self_: *mut ImFontGlyphRangesBuilder); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_Clear(self_: *mut ImFontGlyphRangesBuilder); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_GetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize) -> bool; +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_SetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddChar(self_: *mut ImFontGlyphRangesBuilder, c: ImWchar); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddText( + self_: *mut ImFontGlyphRangesBuilder, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddRanges( + self_: *mut ImFontGlyphRangesBuilder, + ranges: *const ImWchar, + ); +} +extern "C" { + pub fn ImFontGlyphRangesBuilder_BuildRanges( + self_: *mut ImFontGlyphRangesBuilder, + out_ranges: *mut ImVector_ImWchar, + ); +} +extern "C" { + pub fn ImFontAtlasCustomRect_ImFontAtlasCustomRect() -> *mut ImFontAtlasCustomRect; +} +extern "C" { + pub fn ImFontAtlasCustomRect_destroy(self_: *mut ImFontAtlasCustomRect); +} +extern "C" { + pub fn ImFontAtlasCustomRect_IsPacked(self_: *mut ImFontAtlasCustomRect) -> bool; +} +extern "C" { + pub fn ImFontAtlas_ImFontAtlas() -> *mut ImFontAtlas; +} +extern "C" { + pub fn ImFontAtlas_destroy(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_AddFont( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontDefault( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromFileTTF( + self_: *mut ImFontAtlas, + filename: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryTTF( + self_: *mut ImFontAtlas, + font_data: *mut cty::c_void, + font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF( + self_: *mut ImFontAtlas, + compressed_font_data: *const cty::c_void, + compressed_font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF( + self_: *mut ImFontAtlas, + compressed_font_data_base85: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +extern "C" { + pub fn ImFontAtlas_ClearInputData(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_ClearTexData(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_ClearFonts(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_Clear(self_: *mut ImFontAtlas); +} +extern "C" { + pub fn ImFontAtlas_Build(self_: *mut ImFontAtlas) -> bool; +} +extern "C" { + pub fn ImFontAtlas_GetTexDataAsAlpha8( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +extern "C" { + pub fn ImFontAtlas_GetTexDataAsRGBA32( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +extern "C" { + pub fn ImFontAtlas_IsBuilt(self_: *mut ImFontAtlas) -> bool; +} +extern "C" { + pub fn ImFontAtlas_SetTexID(self_: *mut ImFontAtlas, id: ImTextureID); +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesJapanese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseFull(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon( + self_: *mut ImFontAtlas, + ) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesCyrillic(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesThai(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesVietnamese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +extern "C" { + pub fn ImFontAtlas_AddCustomRectRegular( + self_: *mut ImFontAtlas, + width: cty::c_int, + height: cty::c_int, + ) -> cty::c_int; +} +extern "C" { + pub fn ImFontAtlas_AddCustomRectFontGlyph( + self_: *mut ImFontAtlas, + font: *mut ImFont, + id: ImWchar, + width: cty::c_int, + height: cty::c_int, + advance_x: f32, + offset: ImVec2, + ) -> cty::c_int; +} +extern "C" { + pub fn ImFontAtlas_GetCustomRectByIndex( + self_: *mut ImFontAtlas, + index: cty::c_int, + ) -> *mut ImFontAtlasCustomRect; +} +extern "C" { + pub fn ImFontAtlas_CalcCustomRectUV( + self_: *mut ImFontAtlas, + rect: *const ImFontAtlasCustomRect, + out_uv_min: *mut ImVec2, + out_uv_max: *mut ImVec2, + ); +} +extern "C" { + pub fn ImFontAtlas_GetMouseCursorTexData( + self_: *mut ImFontAtlas, + cursor: ImGuiMouseCursor, + out_offset: *mut ImVec2, + out_size: *mut ImVec2, + out_uv_border: *mut ImVec2, + out_uv_fill: *mut ImVec2, + ) -> bool; +} +extern "C" { + pub fn ImFont_ImFont() -> *mut ImFont; +} +extern "C" { + pub fn ImFont_destroy(self_: *mut ImFont); +} +extern "C" { + pub fn ImFont_FindGlyph(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +extern "C" { + pub fn ImFont_FindGlyphNoFallback(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +extern "C" { + pub fn ImFont_GetCharAdvance(self_: *mut ImFont, c: ImWchar) -> f32; +} +extern "C" { + pub fn ImFont_IsLoaded(self_: *mut ImFont) -> bool; +} +extern "C" { + pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const cty::c_char; +} +extern "C" { + pub fn ImFont_CalcTextSizeA( + pOut: *mut ImVec2, + self_: *mut ImFont, + size: f32, + max_width: f32, + wrap_width: f32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + remaining: *mut *const cty::c_char, + ); +} +extern "C" { + pub fn ImFont_CalcWordWrapPositionA( + self_: *mut ImFont, + scale: f32, + text: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + ) -> *const cty::c_char; +} +extern "C" { + pub fn ImFont_RenderChar( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + c: ImWchar, + ); +} +extern "C" { + pub fn ImFont_RenderText( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + clip_rect: ImVec4, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip: bool, + ); +} +extern "C" { + pub fn ImFont_BuildLookupTable(self_: *mut ImFont); +} +extern "C" { + pub fn ImFont_ClearOutputData(self_: *mut ImFont); +} +extern "C" { + pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: cty::c_int); +} +extern "C" { + pub fn ImFont_AddGlyph( + self_: *mut ImFont, + src_cfg: *const ImFontConfig, + c: ImWchar, + x0: f32, + y0: f32, + x1: f32, + y1: f32, + u0: f32, + v0: f32, + u1: f32, + v1: f32, + advance_x: f32, + ); +} +extern "C" { + pub fn ImFont_AddRemapChar(self_: *mut ImFont, dst: ImWchar, src: ImWchar, overwrite_dst: bool); +} +extern "C" { + pub fn ImFont_SetGlyphVisible(self_: *mut ImFont, c: ImWchar, visible: bool); +} +extern "C" { + pub fn ImFont_IsGlyphRangeUnused( + self_: *mut ImFont, + c_begin: cty::c_uint, + c_last: cty::c_uint, + ) -> bool; +} +extern "C" { + pub fn ImGuiViewport_ImGuiViewport() -> *mut ImGuiViewport; +} +extern "C" { + pub fn ImGuiViewport_destroy(self_: *mut ImGuiViewport); +} +extern "C" { + pub fn ImGuiViewport_GetCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +extern "C" { + pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +extern "C" { + pub fn ImGuiPlatformIO_ImGuiPlatformIO() -> *mut ImGuiPlatformIO; +} +extern "C" { + pub fn ImGuiPlatformIO_destroy(self_: *mut ImGuiPlatformIO); +} +extern "C" { + pub fn ImGuiPlatformMonitor_ImGuiPlatformMonitor() -> *mut ImGuiPlatformMonitor; +} +extern "C" { + pub fn ImGuiPlatformMonitor_destroy(self_: *mut ImGuiPlatformMonitor); +} +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); } extern "C" { - pub fn igBeginChild_ID( - id: ImGuiID, - size: ImVec2, - border: bool, - flags: ImGuiWindowFlags, - ) -> bool; + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; } extern "C" { - pub fn igEndChild(); + pub fn igImHashData(data: *const cty::c_void, data_size: usize, seed: ImU32) -> ImGuiID; } extern "C" { - pub fn igIsWindowAppearing() -> bool; + pub fn igImHashStr(data: *const cty::c_char, data_size: usize, seed: ImU32) -> ImGuiID; } extern "C" { - pub fn igIsWindowCollapsed() -> bool; + pub fn igImQsort( + base: *mut cty::c_void, + count: usize, + size_of_element: usize, + compare_func: ::core::option::Option< + unsafe extern "C" fn(arg1: *const cty::c_void, arg2: *const cty::c_void) -> cty::c_int, + >, + ); } extern "C" { - pub fn igIsWindowFocused(flags: ImGuiFocusedFlags) -> bool; + pub fn igImAlphaBlendColors(col_a: ImU32, col_b: ImU32) -> ImU32; } extern "C" { - pub fn igIsWindowHovered(flags: ImGuiHoveredFlags) -> bool; + pub fn igImIsPowerOfTwo_Int(v: cty::c_int) -> bool; } extern "C" { - pub fn igGetWindowDrawList() -> *mut ImDrawList; + pub fn igImIsPowerOfTwo_U64(v: ImU64) -> bool; } extern "C" { - pub fn igGetWindowDpiScale() -> f32; + pub fn igImUpperPowerOfTwo(v: cty::c_int) -> cty::c_int; } extern "C" { - pub fn igGetWindowPos(pOut: *mut ImVec2); + pub fn igImStricmp(str1: *const cty::c_char, str2: *const cty::c_char) -> cty::c_int; } extern "C" { - pub fn igGetWindowSize(pOut: *mut ImVec2); + pub fn igImStrnicmp( + str1: *const cty::c_char, + str2: *const cty::c_char, + count: usize, + ) -> cty::c_int; } extern "C" { - pub fn igGetWindowWidth() -> f32; + pub fn igImStrncpy(dst: *mut cty::c_char, src: *const cty::c_char, count: usize); } extern "C" { - pub fn igGetWindowHeight() -> f32; + pub fn igImStrdup(str_: *const cty::c_char) -> *mut cty::c_char; } extern "C" { - pub fn igGetWindowViewport() -> *mut ImGuiViewport; + pub fn igImStrdupcpy( + dst: *mut cty::c_char, + p_dst_size: *mut usize, + str_: *const cty::c_char, + ) -> *mut cty::c_char; } extern "C" { - pub fn igSetNextWindowPos(pos: ImVec2, cond: ImGuiCond, pivot: ImVec2); + pub fn igImStrchrRange( + str_begin: *const cty::c_char, + str_end: *const cty::c_char, + c: cty::c_char, + ) -> *const cty::c_char; } extern "C" { - pub fn igSetNextWindowSize(size: ImVec2, cond: ImGuiCond); + pub fn igImStrlenW(str_: *const ImWchar) -> cty::c_int; } extern "C" { - pub fn igSetNextWindowSizeConstraints( - size_min: ImVec2, - size_max: ImVec2, - custom_callback: ImGuiSizeCallback, - custom_callback_data: *mut cty::c_void, + pub fn igImStreolRange( + str_: *const cty::c_char, + str_end: *const cty::c_char, + ) -> *const cty::c_char; +} +extern "C" { + pub fn igImStrbolW(buf_mid_line: *const ImWchar, buf_begin: *const ImWchar) -> *const ImWchar; +} +extern "C" { + pub fn igImStristr( + haystack: *const cty::c_char, + haystack_end: *const cty::c_char, + needle: *const cty::c_char, + needle_end: *const cty::c_char, + ) -> *const cty::c_char; +} +extern "C" { + pub fn igImStrTrimBlanks(str_: *mut cty::c_char); +} +extern "C" { + pub fn igImStrSkipBlank(str_: *const cty::c_char) -> *const cty::c_char; +} +extern "C" { + pub fn igImToUpper(c: cty::c_char) -> cty::c_char; +} +extern "C" { + pub fn igImCharIsBlankA(c: cty::c_char) -> bool; +} +extern "C" { + pub fn igImCharIsBlankW(c: cty::c_uint) -> bool; +} +extern "C" { + pub fn igImFormatString( + buf: *mut cty::c_char, + buf_size: usize, + fmt: *const cty::c_char, + ... + ) -> cty::c_int; +} +extern "C" { + pub fn igImFormatStringToTempBuffer( + out_buf: *mut *const cty::c_char, + out_buf_end: *mut *const cty::c_char, + fmt: *const cty::c_char, + ... ); } extern "C" { - pub fn igSetNextWindowContentSize(size: ImVec2); + pub fn igImParseFormatFindStart(format: *const cty::c_char) -> *const cty::c_char; } extern "C" { - pub fn igSetNextWindowCollapsed(collapsed: bool, cond: ImGuiCond); + pub fn igImParseFormatFindEnd(format: *const cty::c_char) -> *const cty::c_char; } extern "C" { - pub fn igSetNextWindowFocus(); + pub fn igImParseFormatTrimDecorations( + format: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + ) -> *const cty::c_char; } extern "C" { - pub fn igSetNextWindowScroll(scroll: ImVec2); + pub fn igImParseFormatSanitizeForPrinting( + fmt_in: *const cty::c_char, + fmt_out: *mut cty::c_char, + fmt_out_size: usize, + ); } extern "C" { - pub fn igSetNextWindowBgAlpha(alpha: f32); + pub fn igImParseFormatSanitizeForScanning( + fmt_in: *const cty::c_char, + fmt_out: *mut cty::c_char, + fmt_out_size: usize, + ) -> *const cty::c_char; } extern "C" { - pub fn igSetNextWindowViewport(viewport_id: ImGuiID); + pub fn igImParseFormatPrecision( + format: *const cty::c_char, + default_value: cty::c_int, + ) -> cty::c_int; } extern "C" { - pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); + pub fn igImTextCharToUtf8(out_buf: *mut cty::c_char, c: cty::c_uint) -> *const cty::c_char; } extern "C" { - pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); + pub fn igImTextStrToUtf8( + out_buf: *mut cty::c_char, + out_buf_size: cty::c_int, + in_text: *const ImWchar, + in_text_end: *const ImWchar, + ) -> cty::c_int; } extern "C" { - pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); + pub fn igImTextCharFromUtf8( + out_char: *mut cty::c_uint, + in_text: *const cty::c_char, + in_text_end: *const cty::c_char, + ) -> cty::c_int; } extern "C" { - pub fn igSetWindowFocus_Nil(); + pub fn igImTextStrFromUtf8( + out_buf: *mut ImWchar, + out_buf_size: cty::c_int, + in_text: *const cty::c_char, + in_text_end: *const cty::c_char, + in_remaining: *mut *const cty::c_char, + ) -> cty::c_int; } extern "C" { - pub fn igSetWindowFontScale(scale: f32); + pub fn igImTextCountCharsFromUtf8( + in_text: *const cty::c_char, + in_text_end: *const cty::c_char, + ) -> cty::c_int; } extern "C" { - pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); + pub fn igImTextCountUtf8BytesFromChar( + in_text: *const cty::c_char, + in_text_end: *const cty::c_char, + ) -> cty::c_int; } extern "C" { - pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); + pub fn igImTextCountUtf8BytesFromStr( + in_text: *const ImWchar, + in_text_end: *const ImWchar, + ) -> cty::c_int; } extern "C" { - pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); + pub fn igImFileOpen(filename: *const cty::c_char, mode: *const cty::c_char) -> ImFileHandle; } extern "C" { - pub fn igSetWindowFocus_Str(name: *const cty::c_char); + pub fn igImFileClose(file: ImFileHandle) -> bool; } extern "C" { - pub fn igGetContentRegionAvail(pOut: *mut ImVec2); + pub fn igImFileGetSize(file: ImFileHandle) -> ImU64; } extern "C" { - pub fn igGetContentRegionMax(pOut: *mut ImVec2); + pub fn igImFileRead( + data: *mut cty::c_void, + size: ImU64, + count: ImU64, + file: ImFileHandle, + ) -> ImU64; } extern "C" { - pub fn igGetWindowContentRegionMin(pOut: *mut ImVec2); + pub fn igImFileWrite( + data: *const cty::c_void, + size: ImU64, + count: ImU64, + file: ImFileHandle, + ) -> ImU64; } extern "C" { - pub fn igGetWindowContentRegionMax(pOut: *mut ImVec2); + pub fn igImFileLoadToMemory( + filename: *const cty::c_char, + mode: *const cty::c_char, + out_file_size: *mut usize, + padding_bytes: cty::c_int, + ) -> *mut cty::c_void; } extern "C" { - pub fn igGetScrollX() -> f32; + pub fn igImPow_Float(x: f32, y: f32) -> f32; } extern "C" { - pub fn igGetScrollY() -> f32; + pub fn igImPow_double(x: f64, y: f64) -> f64; } extern "C" { - pub fn igSetScrollX(scroll_x: f32); + pub fn igImLog_Float(x: f32) -> f32; } extern "C" { - pub fn igSetScrollY(scroll_y: f32); + pub fn igImLog_double(x: f64) -> f64; } extern "C" { - pub fn igGetScrollMaxX() -> f32; + pub fn igImAbs_Int(x: cty::c_int) -> cty::c_int; } extern "C" { - pub fn igGetScrollMaxY() -> f32; + pub fn igImAbs_Float(x: f32) -> f32; } extern "C" { - pub fn igSetScrollHereX(center_x_ratio: f32); + pub fn igImAbs_double(x: f64) -> f64; } extern "C" { - pub fn igSetScrollHereY(center_y_ratio: f32); + pub fn igImSign_Float(x: f32) -> f32; } extern "C" { - pub fn igSetScrollFromPosX(local_x: f32, center_x_ratio: f32); + pub fn igImSign_double(x: f64) -> f64; } extern "C" { - pub fn igSetScrollFromPosY(local_y: f32, center_y_ratio: f32); + pub fn igImRsqrt_Float(x: f32) -> f32; } extern "C" { - pub fn igPushFont(font: *mut ImFont); + pub fn igImRsqrt_double(x: f64) -> f64; } extern "C" { - pub fn igPopFont(); + pub fn igImMin(pOut: *mut ImVec2, lhs: ImVec2, rhs: ImVec2); } extern "C" { - pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); + pub fn igImMax(pOut: *mut ImVec2, lhs: ImVec2, rhs: ImVec2); } extern "C" { - pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); + pub fn igImClamp(pOut: *mut ImVec2, v: ImVec2, mn: ImVec2, mx: ImVec2); } extern "C" { - pub fn igPopStyleColor(count: cty::c_int); + pub fn igImLerp_Vec2Float(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: f32); } extern "C" { - pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); + pub fn igImLerp_Vec2Vec2(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: ImVec2); } extern "C" { - pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); + pub fn igImLerp_Vec4(pOut: *mut ImVec4, a: ImVec4, b: ImVec4, t: f32); } extern "C" { - pub fn igPopStyleVar(count: cty::c_int); + pub fn igImSaturate(f: f32) -> f32; } extern "C" { - pub fn igPushAllowKeyboardFocus(allow_keyboard_focus: bool); + pub fn igImLengthSqr_Vec2(lhs: ImVec2) -> f32; } extern "C" { - pub fn igPopAllowKeyboardFocus(); + pub fn igImLengthSqr_Vec4(lhs: ImVec4) -> f32; } extern "C" { - pub fn igPushButtonRepeat(repeat: bool); + pub fn igImInvLength(lhs: ImVec2, fail_value: f32) -> f32; } extern "C" { - pub fn igPopButtonRepeat(); + pub fn igImFloor_Float(f: f32) -> f32; } extern "C" { - pub fn igPushItemWidth(item_width: f32); + pub fn igImFloorSigned_Float(f: f32) -> f32; } extern "C" { - pub fn igPopItemWidth(); + pub fn igImFloor_Vec2(pOut: *mut ImVec2, v: ImVec2); } extern "C" { - pub fn igSetNextItemWidth(item_width: f32); + pub fn igImFloorSigned_Vec2(pOut: *mut ImVec2, v: ImVec2); } extern "C" { - pub fn igCalcItemWidth() -> f32; + pub fn igImModPositive(a: cty::c_int, b: cty::c_int) -> cty::c_int; } extern "C" { - pub fn igPushTextWrapPos(wrap_local_pos_x: f32); + pub fn igImDot(a: ImVec2, b: ImVec2) -> f32; } extern "C" { - pub fn igPopTextWrapPos(); + pub fn igImRotate(pOut: *mut ImVec2, v: ImVec2, cos_a: f32, sin_a: f32); } extern "C" { - pub fn igGetFont() -> *mut ImFont; + pub fn igImLinearSweep(current: f32, target: f32, speed: f32) -> f32; } extern "C" { - pub fn igGetFontSize() -> f32; + pub fn igImMul(pOut: *mut ImVec2, lhs: ImVec2, rhs: ImVec2); } extern "C" { - pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); + pub fn igImIsFloatAboveGuaranteedIntegerPrecision(f: f32) -> bool; } extern "C" { - pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; + pub fn igImBezierCubicCalc( + pOut: *mut ImVec2, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + t: f32, + ); } extern "C" { - pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; + pub fn igImBezierCubicClosestPoint( + pOut: *mut ImVec2, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + p: ImVec2, + num_segments: cty::c_int, + ); } extern "C" { - pub fn igGetColorU32_U32(col: ImU32) -> ImU32; + pub fn igImBezierCubicClosestPointCasteljau( + pOut: *mut ImVec2, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + p: ImVec2, + tess_tol: f32, + ); } extern "C" { - pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; + pub fn igImBezierQuadraticCalc(pOut: *mut ImVec2, p1: ImVec2, p2: ImVec2, p3: ImVec2, t: f32); } extern "C" { - pub fn igSeparator(); + pub fn igImLineClosestPoint(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, p: ImVec2); } extern "C" { - pub fn igSameLine(offset_from_start_x: f32, spacing: f32); + pub fn igImTriangleContainsPoint(a: ImVec2, b: ImVec2, c: ImVec2, p: ImVec2) -> bool; } extern "C" { - pub fn igNewLine(); + pub fn igImTriangleClosestPoint(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, c: ImVec2, p: ImVec2); } extern "C" { - pub fn igSpacing(); + pub fn igImTriangleBarycentricCoords( + a: ImVec2, + b: ImVec2, + c: ImVec2, + p: ImVec2, + out_u: *mut f32, + out_v: *mut f32, + out_w: *mut f32, + ); } extern "C" { - pub fn igDummy(size: ImVec2); + pub fn igImTriangleArea(a: ImVec2, b: ImVec2, c: ImVec2) -> f32; } extern "C" { - pub fn igIndent(indent_w: f32); + pub fn igImGetDirQuadrantFromDelta(dx: f32, dy: f32) -> ImGuiDir; } extern "C" { - pub fn igUnindent(indent_w: f32); + pub fn ImVec1_ImVec1_Nil() -> *mut ImVec1; } extern "C" { - pub fn igBeginGroup(); + pub fn ImVec1_destroy(self_: *mut ImVec1); } extern "C" { - pub fn igEndGroup(); + pub fn ImVec1_ImVec1_Float(_x: f32) -> *mut ImVec1; } extern "C" { - pub fn igGetCursorPos(pOut: *mut ImVec2); + pub fn ImVec2ih_ImVec2ih_Nil() -> *mut ImVec2ih; } extern "C" { - pub fn igGetCursorPosX() -> f32; + pub fn ImVec2ih_destroy(self_: *mut ImVec2ih); } extern "C" { - pub fn igGetCursorPosY() -> f32; + pub fn ImVec2ih_ImVec2ih_short(_x: cty::c_short, _y: cty::c_short) -> *mut ImVec2ih; } extern "C" { - pub fn igSetCursorPos(local_pos: ImVec2); + pub fn ImVec2ih_ImVec2ih_Vec2(rhs: ImVec2) -> *mut ImVec2ih; } extern "C" { - pub fn igSetCursorPosX(local_x: f32); + pub fn ImRect_ImRect_Nil() -> *mut ImRect; } extern "C" { - pub fn igSetCursorPosY(local_y: f32); + pub fn ImRect_destroy(self_: *mut ImRect); } extern "C" { - pub fn igGetCursorStartPos(pOut: *mut ImVec2); + pub fn ImRect_ImRect_Vec2(min: ImVec2, max: ImVec2) -> *mut ImRect; } extern "C" { - pub fn igGetCursorScreenPos(pOut: *mut ImVec2); + pub fn ImRect_ImRect_Vec4(v: ImVec4) -> *mut ImRect; } extern "C" { - pub fn igSetCursorScreenPos(pos: ImVec2); + pub fn ImRect_ImRect_Float(x1: f32, y1: f32, x2: f32, y2: f32) -> *mut ImRect; +} +extern "C" { + pub fn ImRect_GetCenter(pOut: *mut ImVec2, self_: *mut ImRect); +} +extern "C" { + pub fn ImRect_GetSize(pOut: *mut ImVec2, self_: *mut ImRect); +} +extern "C" { + pub fn ImRect_GetWidth(self_: *mut ImRect) -> f32; +} +extern "C" { + pub fn ImRect_GetHeight(self_: *mut ImRect) -> f32; +} +extern "C" { + pub fn ImRect_GetArea(self_: *mut ImRect) -> f32; +} +extern "C" { + pub fn ImRect_GetTL(pOut: *mut ImVec2, self_: *mut ImRect); +} +extern "C" { + pub fn ImRect_GetTR(pOut: *mut ImVec2, self_: *mut ImRect); +} +extern "C" { + pub fn ImRect_GetBL(pOut: *mut ImVec2, self_: *mut ImRect); +} +extern "C" { + pub fn ImRect_GetBR(pOut: *mut ImVec2, self_: *mut ImRect); +} +extern "C" { + pub fn ImRect_Contains_Vec2(self_: *mut ImRect, p: ImVec2) -> bool; +} +extern "C" { + pub fn ImRect_Contains_Rect(self_: *mut ImRect, r: ImRect) -> bool; +} +extern "C" { + pub fn ImRect_Overlaps(self_: *mut ImRect, r: ImRect) -> bool; +} +extern "C" { + pub fn ImRect_Add_Vec2(self_: *mut ImRect, p: ImVec2); +} +extern "C" { + pub fn ImRect_Add_Rect(self_: *mut ImRect, r: ImRect); +} +extern "C" { + pub fn ImRect_Expand_Float(self_: *mut ImRect, amount: f32); +} +extern "C" { + pub fn ImRect_Expand_Vec2(self_: *mut ImRect, amount: ImVec2); +} +extern "C" { + pub fn ImRect_Translate(self_: *mut ImRect, d: ImVec2); +} +extern "C" { + pub fn ImRect_TranslateX(self_: *mut ImRect, dx: f32); +} +extern "C" { + pub fn ImRect_TranslateY(self_: *mut ImRect, dy: f32); +} +extern "C" { + pub fn ImRect_ClipWith(self_: *mut ImRect, r: ImRect); +} +extern "C" { + pub fn ImRect_ClipWithFull(self_: *mut ImRect, r: ImRect); +} +extern "C" { + pub fn ImRect_Floor(self_: *mut ImRect); +} +extern "C" { + pub fn ImRect_IsInverted(self_: *mut ImRect) -> bool; +} +extern "C" { + pub fn ImRect_ToVec4(pOut: *mut ImVec4, self_: *mut ImRect); +} +extern "C" { + pub fn igImBitArrayTestBit(arr: *const ImU32, n: cty::c_int) -> bool; +} +extern "C" { + pub fn igImBitArrayClearBit(arr: *mut ImU32, n: cty::c_int); +} +extern "C" { + pub fn igImBitArraySetBit(arr: *mut ImU32, n: cty::c_int); +} +extern "C" { + pub fn igImBitArraySetBitRange(arr: *mut ImU32, n: cty::c_int, n2: cty::c_int); +} +extern "C" { + pub fn ImBitVector_Create(self_: *mut ImBitVector, sz: cty::c_int); +} +extern "C" { + pub fn ImBitVector_Clear(self_: *mut ImBitVector); +} +extern "C" { + pub fn ImBitVector_TestBit(self_: *mut ImBitVector, n: cty::c_int) -> bool; +} +extern "C" { + pub fn ImBitVector_SetBit(self_: *mut ImBitVector, n: cty::c_int); +} +extern "C" { + pub fn ImBitVector_ClearBit(self_: *mut ImBitVector, n: cty::c_int); +} +extern "C" { + pub fn ImGuiTextIndex_clear(self_: *mut ImGuiTextIndex); +} +extern "C" { + pub fn ImGuiTextIndex_size(self_: *mut ImGuiTextIndex) -> cty::c_int; +} +extern "C" { + pub fn ImGuiTextIndex_get_line_begin( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + n: cty::c_int, + ) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextIndex_get_line_end( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + n: cty::c_int, + ) -> *const cty::c_char; +} +extern "C" { + pub fn ImGuiTextIndex_append( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + old_size: cty::c_int, + new_size: cty::c_int, + ); +} +extern "C" { + pub fn ImDrawListSharedData_ImDrawListSharedData() -> *mut ImDrawListSharedData; +} +extern "C" { + pub fn ImDrawListSharedData_destroy(self_: *mut ImDrawListSharedData); +} +extern "C" { + pub fn ImDrawListSharedData_SetCircleTessellationMaxError( + self_: *mut ImDrawListSharedData, + max_error: f32, + ); } extern "C" { - pub fn igAlignTextToFramePadding(); + pub fn ImDrawDataBuilder_Clear(self_: *mut ImDrawDataBuilder); } extern "C" { - pub fn igGetTextLineHeight() -> f32; + pub fn ImDrawDataBuilder_ClearFreeMemory(self_: *mut ImDrawDataBuilder); } extern "C" { - pub fn igGetTextLineHeightWithSpacing() -> f32; + pub fn ImDrawDataBuilder_GetDrawListCount(self_: *mut ImDrawDataBuilder) -> cty::c_int; } extern "C" { - pub fn igGetFrameHeight() -> f32; + pub fn ImDrawDataBuilder_FlattenIntoSingleLayer(self_: *mut ImDrawDataBuilder); } extern "C" { - pub fn igGetFrameHeightWithSpacing() -> f32; + pub fn ImGuiStyleMod_ImGuiStyleMod_Int(idx: ImGuiStyleVar, v: cty::c_int) + -> *mut ImGuiStyleMod; } extern "C" { - pub fn igPushID_Str(str_id: *const cty::c_char); + pub fn ImGuiStyleMod_destroy(self_: *mut ImGuiStyleMod); } extern "C" { - pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); + pub fn ImGuiStyleMod_ImGuiStyleMod_Float(idx: ImGuiStyleVar, v: f32) -> *mut ImGuiStyleMod; } extern "C" { - pub fn igPushID_Ptr(ptr_id: *const cty::c_void); + pub fn ImGuiStyleMod_ImGuiStyleMod_Vec2(idx: ImGuiStyleVar, v: ImVec2) -> *mut ImGuiStyleMod; } extern "C" { - pub fn igPushID_Int(int_id: cty::c_int); + pub fn ImGuiComboPreviewData_ImGuiComboPreviewData() -> *mut ImGuiComboPreviewData; } extern "C" { - pub fn igPopID(); + pub fn ImGuiComboPreviewData_destroy(self_: *mut ImGuiComboPreviewData); } extern "C" { - pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; + pub fn ImGuiMenuColumns_ImGuiMenuColumns() -> *mut ImGuiMenuColumns; } extern "C" { - pub fn igGetID_StrStr( - str_id_begin: *const cty::c_char, - str_id_end: *const cty::c_char, - ) -> ImGuiID; + pub fn ImGuiMenuColumns_destroy(self_: *mut ImGuiMenuColumns); } extern "C" { - pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; + pub fn ImGuiMenuColumns_Update( + self_: *mut ImGuiMenuColumns, + spacing: f32, + window_reappearing: bool, + ); } extern "C" { - pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); + pub fn ImGuiMenuColumns_DeclColumns( + self_: *mut ImGuiMenuColumns, + w_icon: f32, + w_label: f32, + w_shortcut: f32, + w_mark: f32, + ) -> f32; } extern "C" { - pub fn igText(fmt: *const cty::c_char, ...); + pub fn ImGuiMenuColumns_CalcNextTotalWidth(self_: *mut ImGuiMenuColumns, update_offsets: bool); } extern "C" { - pub fn igTextColored(col: ImVec4, fmt: *const cty::c_char, ...); + pub fn ImGuiInputTextState_ImGuiInputTextState() -> *mut ImGuiInputTextState; } extern "C" { - pub fn igTextDisabled(fmt: *const cty::c_char, ...); + pub fn ImGuiInputTextState_destroy(self_: *mut ImGuiInputTextState); } extern "C" { - pub fn igTextWrapped(fmt: *const cty::c_char, ...); + pub fn ImGuiInputTextState_ClearText(self_: *mut ImGuiInputTextState); } extern "C" { - pub fn igLabelText(label: *const cty::c_char, fmt: *const cty::c_char, ...); + pub fn ImGuiInputTextState_ClearFreeMemory(self_: *mut ImGuiInputTextState); } extern "C" { - pub fn igBulletText(fmt: *const cty::c_char, ...); + pub fn ImGuiInputTextState_GetUndoAvailCount(self_: *mut ImGuiInputTextState) -> cty::c_int; } extern "C" { - pub fn igButton(label: *const cty::c_char, size: ImVec2) -> bool; + pub fn ImGuiInputTextState_GetRedoAvailCount(self_: *mut ImGuiInputTextState) -> cty::c_int; } extern "C" { - pub fn igSmallButton(label: *const cty::c_char) -> bool; + pub fn ImGuiInputTextState_OnKeyPressed(self_: *mut ImGuiInputTextState, key: cty::c_int); } extern "C" { - pub fn igInvisibleButton( - str_id: *const cty::c_char, - size: ImVec2, - flags: ImGuiButtonFlags, - ) -> bool; + pub fn ImGuiInputTextState_CursorAnimReset(self_: *mut ImGuiInputTextState); } extern "C" { - pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; + pub fn ImGuiInputTextState_CursorClamp(self_: *mut ImGuiInputTextState); } extern "C" { - pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; + pub fn ImGuiInputTextState_HasSelection(self_: *mut ImGuiInputTextState) -> bool; } extern "C" { - pub fn igCheckboxFlags_IntPtr( - label: *const cty::c_char, - flags: *mut cty::c_int, - flags_value: cty::c_int, - ) -> bool; + pub fn ImGuiInputTextState_ClearSelection(self_: *mut ImGuiInputTextState); } extern "C" { - pub fn igCheckboxFlags_UintPtr( - label: *const cty::c_char, - flags: *mut cty::c_uint, - flags_value: cty::c_uint, - ) -> bool; + pub fn ImGuiInputTextState_GetCursorPos(self_: *mut ImGuiInputTextState) -> cty::c_int; } extern "C" { - pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; + pub fn ImGuiInputTextState_GetSelectionStart(self_: *mut ImGuiInputTextState) -> cty::c_int; } extern "C" { - pub fn igRadioButton_IntPtr( - label: *const cty::c_char, - v: *mut cty::c_int, - v_button: cty::c_int, - ) -> bool; + pub fn ImGuiInputTextState_GetSelectionEnd(self_: *mut ImGuiInputTextState) -> cty::c_int; } extern "C" { - pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const cty::c_char); + pub fn ImGuiInputTextState_SelectAll(self_: *mut ImGuiInputTextState); } extern "C" { - pub fn igBullet(); + pub fn ImGuiPopupData_ImGuiPopupData() -> *mut ImGuiPopupData; } extern "C" { - pub fn igImage( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - tint_col: ImVec4, - border_col: ImVec4, - ); + pub fn ImGuiPopupData_destroy(self_: *mut ImGuiPopupData); } extern "C" { - pub fn igImageButton( - str_id: *const cty::c_char, - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - bg_col: ImVec4, - tint_col: ImVec4, - ) -> bool; + pub fn ImGuiNextWindowData_ImGuiNextWindowData() -> *mut ImGuiNextWindowData; } extern "C" { - pub fn igBeginCombo( - label: *const cty::c_char, - preview_value: *const cty::c_char, - flags: ImGuiComboFlags, - ) -> bool; + pub fn ImGuiNextWindowData_destroy(self_: *mut ImGuiNextWindowData); } extern "C" { - pub fn igEndCombo(); + pub fn ImGuiNextWindowData_ClearFlags(self_: *mut ImGuiNextWindowData); } extern "C" { - pub fn igCombo_Str_arr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items: *const *const cty::c_char, - items_count: cty::c_int, - popup_max_height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiNextItemData_ImGuiNextItemData() -> *mut ImGuiNextItemData; } extern "C" { - pub fn igCombo_Str( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items_separated_by_zeros: *const cty::c_char, - popup_max_height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiNextItemData_destroy(self_: *mut ImGuiNextItemData); } extern "C" { - pub fn igCombo_FnBoolPtr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items_getter: ::core::option::Option< - unsafe extern "C" fn( - data: *mut cty::c_void, - idx: cty::c_int, - out_text: *mut *const cty::c_char, - ) -> bool, - >, - data: *mut cty::c_void, - items_count: cty::c_int, - popup_max_height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiNextItemData_ClearFlags(self_: *mut ImGuiNextItemData); } extern "C" { - pub fn igDragFloat( - label: *const cty::c_char, - v: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiLastItemData_ImGuiLastItemData() -> *mut ImGuiLastItemData; } extern "C" { - pub fn igDragFloat2( - label: *const cty::c_char, - v: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiLastItemData_destroy(self_: *mut ImGuiLastItemData); } extern "C" { - pub fn igDragFloat3( - label: *const cty::c_char, - v: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiStackSizes_ImGuiStackSizes() -> *mut ImGuiStackSizes; } extern "C" { - pub fn igDragFloat4( - label: *const cty::c_char, - v: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiStackSizes_destroy(self_: *mut ImGuiStackSizes); } extern "C" { - pub fn igDragFloatRange2( - label: *const cty::c_char, - v_current_min: *mut f32, - v_current_max: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - format_max: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiStackSizes_SetToCurrentState(self_: *mut ImGuiStackSizes); } extern "C" { - pub fn igDragInt( - label: *const cty::c_char, - v: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiStackSizes_CompareWithCurrentState(self_: *mut ImGuiStackSizes); } extern "C" { - pub fn igDragInt2( - label: *const cty::c_char, - v: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(ptr: *mut cty::c_void) -> *mut ImGuiPtrOrIndex; } extern "C" { - pub fn igDragInt3( - label: *const cty::c_char, - v: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiPtrOrIndex_destroy(self_: *mut ImGuiPtrOrIndex); } extern "C" { - pub fn igDragInt4( - label: *const cty::c_char, - v: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(index: cty::c_int) -> *mut ImGuiPtrOrIndex; } extern "C" { - pub fn igDragIntRange2( - label: *const cty::c_char, - v_current_min: *mut cty::c_int, - v_current_max: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - format_max: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiInputEvent_ImGuiInputEvent() -> *mut ImGuiInputEvent; } extern "C" { - pub fn igDragScalar( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - v_speed: f32, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiInputEvent_destroy(self_: *mut ImGuiInputEvent); } extern "C" { - pub fn igDragScalarN( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - components: cty::c_int, - v_speed: f32, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyRoutingData_ImGuiKeyRoutingData() -> *mut ImGuiKeyRoutingData; } extern "C" { - pub fn igSliderFloat( - label: *const cty::c_char, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyRoutingData_destroy(self_: *mut ImGuiKeyRoutingData); } extern "C" { - pub fn igSliderFloat2( - label: *const cty::c_char, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyRoutingTable_ImGuiKeyRoutingTable() -> *mut ImGuiKeyRoutingTable; } extern "C" { - pub fn igSliderFloat3( - label: *const cty::c_char, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyRoutingTable_destroy(self_: *mut ImGuiKeyRoutingTable); } extern "C" { - pub fn igSliderFloat4( - label: *const cty::c_char, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyRoutingTable_Clear(self_: *mut ImGuiKeyRoutingTable); } extern "C" { - pub fn igSliderAngle( - label: *const cty::c_char, - v_rad: *mut f32, - v_degrees_min: f32, - v_degrees_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyOwnerData_ImGuiKeyOwnerData() -> *mut ImGuiKeyOwnerData; } extern "C" { - pub fn igSliderInt( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyOwnerData_destroy(self_: *mut ImGuiKeyOwnerData); } extern "C" { - pub fn igSliderInt2( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiListClipperRange_FromIndices( + min: cty::c_int, + max: cty::c_int, + ) -> ImGuiListClipperRange; } extern "C" { - pub fn igSliderInt3( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiListClipperRange_FromPositions( + y1: f32, + y2: f32, + off_min: cty::c_int, + off_max: cty::c_int, + ) -> ImGuiListClipperRange; } extern "C" { - pub fn igSliderInt4( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiListClipperData_ImGuiListClipperData() -> *mut ImGuiListClipperData; } extern "C" { - pub fn igSliderScalar( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiListClipperData_destroy(self_: *mut ImGuiListClipperData); } extern "C" { - pub fn igSliderScalarN( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - components: cty::c_int, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiListClipperData_Reset( + self_: *mut ImGuiListClipperData, + clipper: *mut ImGuiListClipper, + ); } extern "C" { - pub fn igVSliderFloat( - label: *const cty::c_char, - size: ImVec2, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiNavItemData_ImGuiNavItemData() -> *mut ImGuiNavItemData; } extern "C" { - pub fn igVSliderInt( - label: *const cty::c_char, - size: ImVec2, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiNavItemData_destroy(self_: *mut ImGuiNavItemData); } extern "C" { - pub fn igVSliderScalar( - label: *const cty::c_char, - size: ImVec2, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiNavItemData_Clear(self_: *mut ImGuiNavItemData); } extern "C" { - pub fn igInputText( - label: *const cty::c_char, - buf: *mut cty::c_char, - buf_size: usize, - flags: ImGuiInputTextFlags, - callback: ImGuiInputTextCallback, - user_data: *mut cty::c_void, - ) -> bool; + pub fn ImGuiOldColumnData_ImGuiOldColumnData() -> *mut ImGuiOldColumnData; } extern "C" { - pub fn igInputTextMultiline( - label: *const cty::c_char, - buf: *mut cty::c_char, - buf_size: usize, - size: ImVec2, - flags: ImGuiInputTextFlags, - callback: ImGuiInputTextCallback, - user_data: *mut cty::c_void, - ) -> bool; + pub fn ImGuiOldColumnData_destroy(self_: *mut ImGuiOldColumnData); } extern "C" { - pub fn igInputTextWithHint( - label: *const cty::c_char, - hint: *const cty::c_char, - buf: *mut cty::c_char, - buf_size: usize, - flags: ImGuiInputTextFlags, - callback: ImGuiInputTextCallback, - user_data: *mut cty::c_void, - ) -> bool; + pub fn ImGuiOldColumns_ImGuiOldColumns() -> *mut ImGuiOldColumns; } extern "C" { - pub fn igInputFloat( - label: *const cty::c_char, - v: *mut f32, - step: f32, - step_fast: f32, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiOldColumns_destroy(self_: *mut ImGuiOldColumns); } extern "C" { - pub fn igInputFloat2( - label: *const cty::c_char, - v: *mut f32, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_ImGuiDockNode(id: ImGuiID) -> *mut ImGuiDockNode; } extern "C" { - pub fn igInputFloat3( - label: *const cty::c_char, - v: *mut f32, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_destroy(self_: *mut ImGuiDockNode); } extern "C" { - pub fn igInputFloat4( - label: *const cty::c_char, - v: *mut f32, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsRootNode(self_: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn igInputInt( - label: *const cty::c_char, - v: *mut cty::c_int, - step: cty::c_int, - step_fast: cty::c_int, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsDockSpace(self_: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn igInputInt2( - label: *const cty::c_char, - v: *mut cty::c_int, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsFloatingNode(self_: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn igInputInt3( - label: *const cty::c_char, - v: *mut cty::c_int, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsCentralNode(self_: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn igInputInt4( - label: *const cty::c_char, - v: *mut cty::c_int, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsHiddenTabBar(self_: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn igInputDouble( - label: *const cty::c_char, - v: *mut f64, - step: f64, - step_fast: f64, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsNoTabBar(self_: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn igInputScalar( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - p_step: *const cty::c_void, - p_step_fast: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsSplitNode(self_: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn igInputScalarN( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - components: cty::c_int, - p_step: *const cty::c_void, - p_step_fast: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsLeafNode(self_: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn igColorEdit3( - label: *const cty::c_char, - col: *mut f32, - flags: ImGuiColorEditFlags, - ) -> bool; + pub fn ImGuiDockNode_IsEmpty(self_: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn igColorEdit4( - label: *const cty::c_char, - col: *mut f32, - flags: ImGuiColorEditFlags, - ) -> bool; + pub fn ImGuiDockNode_Rect(pOut: *mut ImRect, self_: *mut ImGuiDockNode); } extern "C" { - pub fn igColorPicker3( - label: *const cty::c_char, - col: *mut f32, - flags: ImGuiColorEditFlags, - ) -> bool; + pub fn ImGuiDockNode_SetLocalFlags(self_: *mut ImGuiDockNode, flags: ImGuiDockNodeFlags); } extern "C" { - pub fn igColorPicker4( - label: *const cty::c_char, - col: *mut f32, - flags: ImGuiColorEditFlags, - ref_col: *const f32, - ) -> bool; + pub fn ImGuiDockNode_UpdateMergedFlags(self_: *mut ImGuiDockNode); } extern "C" { - pub fn igColorButton( - desc_id: *const cty::c_char, - col: ImVec4, - flags: ImGuiColorEditFlags, - size: ImVec2, - ) -> bool; + pub fn ImGuiDockContext_ImGuiDockContext() -> *mut ImGuiDockContext; } extern "C" { - pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); + pub fn ImGuiDockContext_destroy(self_: *mut ImGuiDockContext); } extern "C" { - pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; + pub fn ImGuiViewportP_ImGuiViewportP() -> *mut ImGuiViewportP; } extern "C" { - pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; + pub fn ImGuiViewportP_destroy(self_: *mut ImGuiViewportP); } extern "C" { - pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; + pub fn ImGuiViewportP_ClearRequestFlags(self_: *mut ImGuiViewportP); } extern "C" { - pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; + pub fn ImGuiViewportP_CalcWorkRectPos( + pOut: *mut ImVec2, + self_: *mut ImGuiViewportP, + off_min: ImVec2, + ); } extern "C" { - pub fn igTreeNodeEx_StrStr( - str_id: *const cty::c_char, - flags: ImGuiTreeNodeFlags, - fmt: *const cty::c_char, - ... - ) -> bool; + pub fn ImGuiViewportP_CalcWorkRectSize( + pOut: *mut ImVec2, + self_: *mut ImGuiViewportP, + off_min: ImVec2, + off_max: ImVec2, + ); } extern "C" { - pub fn igTreeNodeEx_Ptr( - ptr_id: *const cty::c_void, - flags: ImGuiTreeNodeFlags, - fmt: *const cty::c_char, - ... - ) -> bool; + pub fn ImGuiViewportP_UpdateWorkRect(self_: *mut ImGuiViewportP); } extern "C" { - pub fn igTreePush_Str(str_id: *const cty::c_char); + pub fn ImGuiViewportP_GetMainRect(pOut: *mut ImRect, self_: *mut ImGuiViewportP); } extern "C" { - pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); + pub fn ImGuiViewportP_GetWorkRect(pOut: *mut ImRect, self_: *mut ImGuiViewportP); } extern "C" { - pub fn igTreePop(); + pub fn ImGuiViewportP_GetBuildWorkRect(pOut: *mut ImRect, self_: *mut ImGuiViewportP); } extern "C" { - pub fn igGetTreeNodeToLabelSpacing() -> f32; + pub fn ImGuiWindowSettings_ImGuiWindowSettings() -> *mut ImGuiWindowSettings; } extern "C" { - pub fn igCollapsingHeader_TreeNodeFlags( - label: *const cty::c_char, - flags: ImGuiTreeNodeFlags, - ) -> bool; + pub fn ImGuiWindowSettings_destroy(self_: *mut ImGuiWindowSettings); } extern "C" { - pub fn igCollapsingHeader_BoolPtr( - label: *const cty::c_char, - p_visible: *mut bool, - flags: ImGuiTreeNodeFlags, - ) -> bool; + pub fn ImGuiWindowSettings_GetName(self_: *mut ImGuiWindowSettings) -> *mut cty::c_char; } extern "C" { - pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); + pub fn ImGuiSettingsHandler_ImGuiSettingsHandler() -> *mut ImGuiSettingsHandler; } extern "C" { - pub fn igSelectable_Bool( - label: *const cty::c_char, - selected: bool, - flags: ImGuiSelectableFlags, - size: ImVec2, - ) -> bool; + pub fn ImGuiSettingsHandler_destroy(self_: *mut ImGuiSettingsHandler); } extern "C" { - pub fn igSelectable_BoolPtr( - label: *const cty::c_char, - p_selected: *mut bool, - flags: ImGuiSelectableFlags, - size: ImVec2, - ) -> bool; + pub fn ImGuiMetricsConfig_ImGuiMetricsConfig() -> *mut ImGuiMetricsConfig; } extern "C" { - pub fn igBeginListBox(label: *const cty::c_char, size: ImVec2) -> bool; + pub fn ImGuiMetricsConfig_destroy(self_: *mut ImGuiMetricsConfig); } extern "C" { - pub fn igEndListBox(); + pub fn ImGuiStackLevelInfo_ImGuiStackLevelInfo() -> *mut ImGuiStackLevelInfo; } extern "C" { - pub fn igListBox_Str_arr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items: *const *const cty::c_char, - items_count: cty::c_int, - height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiStackLevelInfo_destroy(self_: *mut ImGuiStackLevelInfo); } extern "C" { - pub fn igListBox_FnBoolPtr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items_getter: ::core::option::Option< - unsafe extern "C" fn( - data: *mut cty::c_void, - idx: cty::c_int, - out_text: *mut *const cty::c_char, - ) -> bool, - >, - data: *mut cty::c_void, - items_count: cty::c_int, - height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiStackTool_ImGuiStackTool() -> *mut ImGuiStackTool; } extern "C" { - pub fn igPlotLines_FloatPtr( - label: *const cty::c_char, - values: *const f32, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, - scale_min: f32, - scale_max: f32, - graph_size: ImVec2, - stride: cty::c_int, - ); + pub fn ImGuiStackTool_destroy(self_: *mut ImGuiStackTool); } extern "C" { - pub fn igPlotLines_FnFloatPtr( - label: *const cty::c_char, - values_getter: ::core::option::Option< - unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, - >, - data: *mut cty::c_void, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, - scale_min: f32, - scale_max: f32, - graph_size: ImVec2, - ); + pub fn ImGuiContextHook_ImGuiContextHook() -> *mut ImGuiContextHook; } extern "C" { - pub fn igPlotHistogram_FloatPtr( - label: *const cty::c_char, - values: *const f32, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, - scale_min: f32, - scale_max: f32, - graph_size: ImVec2, - stride: cty::c_int, - ); + pub fn ImGuiContextHook_destroy(self_: *mut ImGuiContextHook); } extern "C" { - pub fn igPlotHistogram_FnFloatPtr( - label: *const cty::c_char, - values_getter: ::core::option::Option< - unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, - >, - data: *mut cty::c_void, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, - scale_min: f32, - scale_max: f32, - graph_size: ImVec2, - ); + pub fn ImGuiContext_ImGuiContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; } extern "C" { - pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); + pub fn ImGuiContext_destroy(self_: *mut ImGuiContext); } extern "C" { - pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); + pub fn ImGuiWindow_ImGuiWindow( + context: *mut ImGuiContext, + name: *const cty::c_char, + ) -> *mut ImGuiWindow; } extern "C" { - pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); + pub fn ImGuiWindow_destroy(self_: *mut ImGuiWindow); } extern "C" { - pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); + pub fn ImGuiWindow_GetID_Str( + self_: *mut ImGuiWindow, + str_: *const cty::c_char, + str_end: *const cty::c_char, + ) -> ImGuiID; } extern "C" { - pub fn igBeginMenuBar() -> bool; + pub fn ImGuiWindow_GetID_Ptr(self_: *mut ImGuiWindow, ptr: *const cty::c_void) -> ImGuiID; } extern "C" { - pub fn igEndMenuBar(); + pub fn ImGuiWindow_GetID_Int(self_: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; } extern "C" { - pub fn igBeginMainMenuBar() -> bool; + pub fn ImGuiWindow_GetIDFromRectangle(self_: *mut ImGuiWindow, r_abs: ImRect) -> ImGuiID; } extern "C" { - pub fn igEndMainMenuBar(); + pub fn ImGuiWindow_Rect(pOut: *mut ImRect, self_: *mut ImGuiWindow); } extern "C" { - pub fn igBeginMenu(label: *const cty::c_char, enabled: bool) -> bool; + pub fn ImGuiWindow_CalcFontSize(self_: *mut ImGuiWindow) -> f32; } extern "C" { - pub fn igEndMenu(); + pub fn ImGuiWindow_TitleBarHeight(self_: *mut ImGuiWindow) -> f32; } extern "C" { - pub fn igMenuItem_Bool( - label: *const cty::c_char, - shortcut: *const cty::c_char, - selected: bool, - enabled: bool, - ) -> bool; + pub fn ImGuiWindow_TitleBarRect(pOut: *mut ImRect, self_: *mut ImGuiWindow); } extern "C" { - pub fn igMenuItem_BoolPtr( - label: *const cty::c_char, - shortcut: *const cty::c_char, - p_selected: *mut bool, - enabled: bool, - ) -> bool; + pub fn ImGuiWindow_MenuBarHeight(self_: *mut ImGuiWindow) -> f32; } extern "C" { - pub fn igBeginTooltip(); + pub fn ImGuiWindow_MenuBarRect(pOut: *mut ImRect, self_: *mut ImGuiWindow); } extern "C" { - pub fn igEndTooltip(); + pub fn ImGuiTabItem_ImGuiTabItem() -> *mut ImGuiTabItem; } extern "C" { - pub fn igSetTooltip(fmt: *const cty::c_char, ...); + pub fn ImGuiTabItem_destroy(self_: *mut ImGuiTabItem); } extern "C" { - pub fn igBeginPopup(str_id: *const cty::c_char, flags: ImGuiWindowFlags) -> bool; + pub fn ImGuiTabBar_ImGuiTabBar() -> *mut ImGuiTabBar; } extern "C" { - pub fn igBeginPopupModal( - name: *const cty::c_char, - p_open: *mut bool, - flags: ImGuiWindowFlags, - ) -> bool; + pub fn ImGuiTabBar_destroy(self_: *mut ImGuiTabBar); } extern "C" { - pub fn igEndPopup(); + pub fn ImGuiTabBar_GetTabOrder(self_: *mut ImGuiTabBar, tab: *const ImGuiTabItem) + -> cty::c_int; } extern "C" { - pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn ImGuiTabBar_GetTabName( + self_: *mut ImGuiTabBar, + tab: *const ImGuiTabItem, + ) -> *const cty::c_char; } extern "C" { - pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); + pub fn ImGuiTableColumn_ImGuiTableColumn() -> *mut ImGuiTableColumn; } extern "C" { - pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn ImGuiTableColumn_destroy(self_: *mut ImGuiTableColumn); } extern "C" { - pub fn igCloseCurrentPopup(); + pub fn ImGuiTableInstanceData_ImGuiTableInstanceData() -> *mut ImGuiTableInstanceData; } extern "C" { - pub fn igBeginPopupContextItem( - str_id: *const cty::c_char, - popup_flags: ImGuiPopupFlags, - ) -> bool; + pub fn ImGuiTableInstanceData_destroy(self_: *mut ImGuiTableInstanceData); } extern "C" { - pub fn igBeginPopupContextWindow( - str_id: *const cty::c_char, - popup_flags: ImGuiPopupFlags, - ) -> bool; + pub fn ImGuiTable_ImGuiTable() -> *mut ImGuiTable; } extern "C" { - pub fn igBeginPopupContextVoid( - str_id: *const cty::c_char, - popup_flags: ImGuiPopupFlags, - ) -> bool; + pub fn ImGuiTable_destroy(self_: *mut ImGuiTable); } extern "C" { - pub fn igIsPopupOpen(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; + pub fn ImGuiTableTempData_ImGuiTableTempData() -> *mut ImGuiTableTempData; } extern "C" { - pub fn igBeginTable( - str_id: *const cty::c_char, - column: cty::c_int, - flags: ImGuiTableFlags, - outer_size: ImVec2, - inner_width: f32, - ) -> bool; + pub fn ImGuiTableTempData_destroy(self_: *mut ImGuiTableTempData); } extern "C" { - pub fn igEndTable(); + pub fn ImGuiTableColumnSettings_ImGuiTableColumnSettings() -> *mut ImGuiTableColumnSettings; } extern "C" { - pub fn igTableNextRow(row_flags: ImGuiTableRowFlags, min_row_height: f32); + pub fn ImGuiTableColumnSettings_destroy(self_: *mut ImGuiTableColumnSettings); } extern "C" { - pub fn igTableNextColumn() -> bool; + pub fn ImGuiTableSettings_ImGuiTableSettings() -> *mut ImGuiTableSettings; } extern "C" { - pub fn igTableSetColumnIndex(column_n: cty::c_int) -> bool; + pub fn ImGuiTableSettings_destroy(self_: *mut ImGuiTableSettings); } extern "C" { - pub fn igTableSetupColumn( - label: *const cty::c_char, - flags: ImGuiTableColumnFlags, - init_width_or_weight: f32, - user_id: ImGuiID, - ); + pub fn ImGuiTableSettings_GetColumnSettings( + self_: *mut ImGuiTableSettings, + ) -> *mut ImGuiTableColumnSettings; } extern "C" { - pub fn igTableSetupScrollFreeze(cols: cty::c_int, rows: cty::c_int); + pub fn igGetCurrentWindowRead() -> *mut ImGuiWindow; } extern "C" { - pub fn igTableHeadersRow(); + pub fn igGetCurrentWindow() -> *mut ImGuiWindow; } extern "C" { - pub fn igTableHeader(label: *const cty::c_char); + pub fn igFindWindowByID(id: ImGuiID) -> *mut ImGuiWindow; } extern "C" { - pub fn igTableGetSortSpecs() -> *mut ImGuiTableSortSpecs; + pub fn igFindWindowByName(name: *const cty::c_char) -> *mut ImGuiWindow; } extern "C" { - pub fn igTableGetColumnCount() -> cty::c_int; + pub fn igUpdateWindowParentAndRootLinks( + window: *mut ImGuiWindow, + flags: ImGuiWindowFlags, + parent_window: *mut ImGuiWindow, + ); } extern "C" { - pub fn igTableGetColumnIndex() -> cty::c_int; + pub fn igCalcWindowNextAutoFitSize(pOut: *mut ImVec2, window: *mut ImGuiWindow); } extern "C" { - pub fn igTableGetRowIndex() -> cty::c_int; + pub fn igIsWindowChildOf( + window: *mut ImGuiWindow, + potential_parent: *mut ImGuiWindow, + popup_hierarchy: bool, + dock_hierarchy: bool, + ) -> bool; } extern "C" { - pub fn igTableGetColumnName(column_n: cty::c_int) -> *const cty::c_char; + pub fn igIsWindowWithinBeginStackOf( + window: *mut ImGuiWindow, + potential_parent: *mut ImGuiWindow, + ) -> bool; } extern "C" { - pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; + pub fn igIsWindowAbove( + potential_above: *mut ImGuiWindow, + potential_below: *mut ImGuiWindow, + ) -> bool; } extern "C" { - pub fn igTableSetColumnEnabled(column_n: cty::c_int, v: bool); + pub fn igIsWindowNavFocusable(window: *mut ImGuiWindow) -> bool; } extern "C" { - pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: cty::c_int); + pub fn igSetWindowPos_WindowPtr(window: *mut ImGuiWindow, pos: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igColumns(count: cty::c_int, id: *const cty::c_char, border: bool); + pub fn igSetWindowSize_WindowPtr(window: *mut ImGuiWindow, size: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igNextColumn(); + pub fn igSetWindowCollapsed_WindowPtr( + window: *mut ImGuiWindow, + collapsed: bool, + cond: ImGuiCond, + ); } extern "C" { - pub fn igGetColumnIndex() -> cty::c_int; + pub fn igSetWindowHitTestHole(window: *mut ImGuiWindow, pos: ImVec2, size: ImVec2); } extern "C" { - pub fn igGetColumnWidth(column_index: cty::c_int) -> f32; + pub fn igWindowRectAbsToRel(pOut: *mut ImRect, window: *mut ImGuiWindow, r: ImRect); } extern "C" { - pub fn igSetColumnWidth(column_index: cty::c_int, width: f32); + pub fn igWindowRectRelToAbs(pOut: *mut ImRect, window: *mut ImGuiWindow, r: ImRect); } extern "C" { - pub fn igGetColumnOffset(column_index: cty::c_int) -> f32; + pub fn igFocusWindow(window: *mut ImGuiWindow); } extern "C" { - pub fn igSetColumnOffset(column_index: cty::c_int, offset_x: f32); + pub fn igFocusTopMostWindowUnderOne( + under_this_window: *mut ImGuiWindow, + ignore_window: *mut ImGuiWindow, + ); } extern "C" { - pub fn igGetColumnsCount() -> cty::c_int; + pub fn igBringWindowToFocusFront(window: *mut ImGuiWindow); } extern "C" { - pub fn igBeginTabBar(str_id: *const cty::c_char, flags: ImGuiTabBarFlags) -> bool; + pub fn igBringWindowToDisplayFront(window: *mut ImGuiWindow); } extern "C" { - pub fn igEndTabBar(); + pub fn igBringWindowToDisplayBack(window: *mut ImGuiWindow); } extern "C" { - pub fn igBeginTabItem( - label: *const cty::c_char, - p_open: *mut bool, - flags: ImGuiTabItemFlags, - ) -> bool; + pub fn igBringWindowToDisplayBehind(window: *mut ImGuiWindow, above_window: *mut ImGuiWindow); } extern "C" { - pub fn igEndTabItem(); + pub fn igFindWindowDisplayIndex(window: *mut ImGuiWindow) -> cty::c_int; } extern "C" { - pub fn igTabItemButton(label: *const cty::c_char, flags: ImGuiTabItemFlags) -> bool; + pub fn igFindBottomMostVisibleWindowWithinBeginStack( + window: *mut ImGuiWindow, + ) -> *mut ImGuiWindow; } extern "C" { - pub fn igSetTabItemClosed(tab_or_docked_window_label: *const cty::c_char); + pub fn igSetCurrentFont(font: *mut ImFont); } extern "C" { - pub fn igDockSpace( - id: ImGuiID, - size: ImVec2, - flags: ImGuiDockNodeFlags, - window_class: *const ImGuiWindowClass, - ) -> ImGuiID; + pub fn igGetDefaultFont() -> *mut ImFont; } extern "C" { - pub fn igDockSpaceOverViewport( - viewport: *const ImGuiViewport, - flags: ImGuiDockNodeFlags, - window_class: *const ImGuiWindowClass, - ) -> ImGuiID; + pub fn igGetForegroundDrawList_WindowPtr(window: *mut ImGuiWindow) -> *mut ImDrawList; } extern "C" { - pub fn igSetNextWindowDockID(dock_id: ImGuiID, cond: ImGuiCond); + pub fn igInitialize(); } extern "C" { - pub fn igSetNextWindowClass(window_class: *const ImGuiWindowClass); + pub fn igShutdown(); } extern "C" { - pub fn igGetWindowDockID() -> ImGuiID; + pub fn igUpdateInputEvents(trickle_fast_inputs: bool); } extern "C" { - pub fn igIsWindowDocked() -> bool; + pub fn igUpdateHoveredWindowAndCaptureFlags(); } extern "C" { - pub fn igLogToTTY(auto_open_depth: cty::c_int); + pub fn igStartMouseMovingWindow(window: *mut ImGuiWindow); } extern "C" { - pub fn igLogToFile(auto_open_depth: cty::c_int, filename: *const cty::c_char); + pub fn igStartMouseMovingWindowOrNode( + window: *mut ImGuiWindow, + node: *mut ImGuiDockNode, + undock_floating_node: bool, + ); } extern "C" { - pub fn igLogToClipboard(auto_open_depth: cty::c_int); + pub fn igUpdateMouseMovingWindowNewFrame(); } extern "C" { - pub fn igLogFinish(); + pub fn igUpdateMouseMovingWindowEndFrame(); } extern "C" { - pub fn igLogButtons(); + pub fn igAddContextHook(context: *mut ImGuiContext, hook: *const ImGuiContextHook) -> ImGuiID; } extern "C" { - pub fn igBeginDragDropSource(flags: ImGuiDragDropFlags) -> bool; + pub fn igRemoveContextHook(context: *mut ImGuiContext, hook_to_remove: ImGuiID); } extern "C" { - pub fn igSetDragDropPayload( - type_: *const cty::c_char, - data: *const cty::c_void, - sz: usize, - cond: ImGuiCond, - ) -> bool; + pub fn igCallContextHooks(context: *mut ImGuiContext, type_: ImGuiContextHookType); } extern "C" { - pub fn igEndDragDropSource(); + pub fn igTranslateWindowsInViewport( + viewport: *mut ImGuiViewportP, + old_pos: ImVec2, + new_pos: ImVec2, + ); } extern "C" { - pub fn igBeginDragDropTarget() -> bool; + pub fn igScaleWindowsInViewport(viewport: *mut ImGuiViewportP, scale: f32); } extern "C" { - pub fn igAcceptDragDropPayload( - type_: *const cty::c_char, - flags: ImGuiDragDropFlags, - ) -> *const ImGuiPayload; + pub fn igDestroyPlatformWindow(viewport: *mut ImGuiViewportP); } extern "C" { - pub fn igEndDragDropTarget(); + pub fn igSetWindowViewport(window: *mut ImGuiWindow, viewport: *mut ImGuiViewportP); } extern "C" { - pub fn igGetDragDropPayload() -> *const ImGuiPayload; + pub fn igSetCurrentViewport(window: *mut ImGuiWindow, viewport: *mut ImGuiViewportP); } extern "C" { - pub fn igBeginDisabled(disabled: bool); + pub fn igGetViewportPlatformMonitor( + viewport: *mut ImGuiViewport, + ) -> *const ImGuiPlatformMonitor; } extern "C" { - pub fn igEndDisabled(); + pub fn igFindHoveredViewportFromPlatformWindowStack( + mouse_platform_pos: ImVec2, + ) -> *mut ImGuiViewportP; } extern "C" { - pub fn igPushClipRect( - clip_rect_min: ImVec2, - clip_rect_max: ImVec2, - intersect_with_current_clip_rect: bool, - ); + pub fn igMarkIniSettingsDirty_Nil(); } extern "C" { - pub fn igPopClipRect(); + pub fn igMarkIniSettingsDirty_WindowPtr(window: *mut ImGuiWindow); } extern "C" { - pub fn igSetItemDefaultFocus(); + pub fn igClearIniSettings(); } extern "C" { - pub fn igSetKeyboardFocusHere(offset: cty::c_int); + pub fn igCreateNewWindowSettings(name: *const cty::c_char) -> *mut ImGuiWindowSettings; } extern "C" { - pub fn igIsItemHovered(flags: ImGuiHoveredFlags) -> bool; + pub fn igFindWindowSettings(id: ImGuiID) -> *mut ImGuiWindowSettings; } extern "C" { - pub fn igIsItemActive() -> bool; + pub fn igFindOrCreateWindowSettings(name: *const cty::c_char) -> *mut ImGuiWindowSettings; } extern "C" { - pub fn igIsItemFocused() -> bool; + pub fn igAddSettingsHandler(handler: *const ImGuiSettingsHandler); } extern "C" { - pub fn igIsItemClicked(mouse_button: ImGuiMouseButton) -> bool; + pub fn igRemoveSettingsHandler(type_name: *const cty::c_char); } extern "C" { - pub fn igIsItemVisible() -> bool; + pub fn igFindSettingsHandler(type_name: *const cty::c_char) -> *mut ImGuiSettingsHandler; } extern "C" { - pub fn igIsItemEdited() -> bool; + pub fn igLocalizeRegisterEntries(entries: *const ImGuiLocEntry, count: cty::c_int); } extern "C" { - pub fn igIsItemActivated() -> bool; + pub fn igLocalizeGetMsg(key: ImGuiLocKey) -> *const cty::c_char; } extern "C" { - pub fn igIsItemDeactivated() -> bool; + pub fn igSetScrollX_WindowPtr(window: *mut ImGuiWindow, scroll_x: f32); } extern "C" { - pub fn igIsItemDeactivatedAfterEdit() -> bool; + pub fn igSetScrollY_WindowPtr(window: *mut ImGuiWindow, scroll_y: f32); } extern "C" { - pub fn igIsItemToggledOpen() -> bool; + pub fn igSetScrollFromPosX_WindowPtr( + window: *mut ImGuiWindow, + local_x: f32, + center_x_ratio: f32, + ); } extern "C" { - pub fn igIsAnyItemHovered() -> bool; + pub fn igSetScrollFromPosY_WindowPtr( + window: *mut ImGuiWindow, + local_y: f32, + center_y_ratio: f32, + ); } extern "C" { - pub fn igIsAnyItemActive() -> bool; + pub fn igScrollToItem(flags: ImGuiScrollFlags); } extern "C" { - pub fn igIsAnyItemFocused() -> bool; + pub fn igScrollToRect(window: *mut ImGuiWindow, rect: ImRect, flags: ImGuiScrollFlags); } extern "C" { - pub fn igGetItemRectMin(pOut: *mut ImVec2); + pub fn igScrollToRectEx( + pOut: *mut ImVec2, + window: *mut ImGuiWindow, + rect: ImRect, + flags: ImGuiScrollFlags, + ); } extern "C" { - pub fn igGetItemRectMax(pOut: *mut ImVec2); + pub fn igScrollToBringRectIntoView(window: *mut ImGuiWindow, rect: ImRect); } extern "C" { - pub fn igGetItemRectSize(pOut: *mut ImVec2); + pub fn igGetItemID() -> ImGuiID; } extern "C" { - pub fn igSetItemAllowOverlap(); + pub fn igGetItemStatusFlags() -> ImGuiItemStatusFlags; } extern "C" { - pub fn igGetMainViewport() -> *mut ImGuiViewport; + pub fn igGetItemFlags() -> ImGuiItemFlags; } extern "C" { - pub fn igGetBackgroundDrawList_Nil() -> *mut ImDrawList; + pub fn igGetActiveID() -> ImGuiID; } extern "C" { - pub fn igGetForegroundDrawList_Nil() -> *mut ImDrawList; + pub fn igGetFocusID() -> ImGuiID; } extern "C" { - pub fn igGetBackgroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; + pub fn igSetActiveID(id: ImGuiID, window: *mut ImGuiWindow); } extern "C" { - pub fn igGetForegroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; + pub fn igSetFocusID(id: ImGuiID, window: *mut ImGuiWindow); } extern "C" { - pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; + pub fn igClearActiveID(); } extern "C" { - pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; + pub fn igGetHoveredID() -> ImGuiID; +} +extern "C" { + pub fn igSetHoveredID(id: ImGuiID); +} +extern "C" { + pub fn igKeepAliveID(id: ImGuiID); } extern "C" { - pub fn igGetTime() -> f64; + pub fn igMarkItemEdited(id: ImGuiID); } extern "C" { - pub fn igGetFrameCount() -> cty::c_int; + pub fn igPushOverrideID(id: ImGuiID); } extern "C" { - pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; + pub fn igGetIDWithSeed( + str_id_begin: *const cty::c_char, + str_id_end: *const cty::c_char, + seed: ImGuiID, + ) -> ImGuiID; } extern "C" { - pub fn igGetStyleColorName(idx: ImGuiCol) -> *const cty::c_char; + pub fn igItemSize_Vec2(size: ImVec2, text_baseline_y: f32); } extern "C" { - pub fn igSetStateStorage(storage: *mut ImGuiStorage); + pub fn igItemSize_Rect(bb: ImRect, text_baseline_y: f32); } extern "C" { - pub fn igGetStateStorage() -> *mut ImGuiStorage; + pub fn igItemAdd( + bb: ImRect, + id: ImGuiID, + nav_bb: *const ImRect, + extra_flags: ImGuiItemFlags, + ) -> bool; } extern "C" { - pub fn igBeginChildFrame(id: ImGuiID, size: ImVec2, flags: ImGuiWindowFlags) -> bool; + pub fn igItemHoverable(bb: ImRect, id: ImGuiID) -> bool; } extern "C" { - pub fn igEndChildFrame(); + pub fn igIsClippedEx(bb: ImRect, id: ImGuiID) -> bool; } extern "C" { - pub fn igCalcTextSize( - pOut: *mut ImVec2, - text: *const cty::c_char, - text_end: *const cty::c_char, - hide_text_after_double_hash: bool, - wrap_width: f32, + pub fn igSetLastItemData( + item_id: ImGuiID, + in_flags: ImGuiItemFlags, + status_flags: ImGuiItemStatusFlags, + item_rect: ImRect, ); } extern "C" { - pub fn igColorConvertU32ToFloat4(pOut: *mut ImVec4, in_: ImU32); + pub fn igCalcItemSize(pOut: *mut ImVec2, size: ImVec2, default_w: f32, default_h: f32); } extern "C" { - pub fn igColorConvertFloat4ToU32(in_: ImVec4) -> ImU32; + pub fn igCalcWrapWidthForPos(pos: ImVec2, wrap_pos_x: f32) -> f32; } extern "C" { - pub fn igColorConvertRGBtoHSV( - r: f32, - g: f32, - b: f32, - out_h: *mut f32, - out_s: *mut f32, - out_v: *mut f32, - ); + pub fn igPushMultiItemsWidths(components: cty::c_int, width_full: f32); } extern "C" { - pub fn igColorConvertHSVtoRGB( - h: f32, - s: f32, - v: f32, - out_r: *mut f32, - out_g: *mut f32, - out_b: *mut f32, - ); + pub fn igIsItemToggledSelection() -> bool; } extern "C" { - pub fn igIsKeyDown(key: ImGuiKey) -> bool; + pub fn igGetContentRegionMaxAbs(pOut: *mut ImVec2); } extern "C" { - pub fn igIsKeyPressed(key: ImGuiKey, repeat: bool) -> bool; + pub fn igShrinkWidths(items: *mut ImGuiShrinkWidthItem, count: cty::c_int, width_excess: f32); } extern "C" { - pub fn igIsKeyReleased(key: ImGuiKey) -> bool; + pub fn igPushItemFlag(option: ImGuiItemFlags, enabled: bool); } extern "C" { - pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; + pub fn igPopItemFlag(); } extern "C" { - pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; + pub fn igLogBegin(type_: ImGuiLogType, auto_open_depth: cty::c_int); } extern "C" { - pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); + pub fn igLogToBuffer(auto_open_depth: cty::c_int); } extern "C" { - pub fn igIsMouseDown(button: ImGuiMouseButton) -> bool; + pub fn igLogRenderedText( + ref_pos: *const ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); } extern "C" { - pub fn igIsMouseClicked(button: ImGuiMouseButton, repeat: bool) -> bool; + pub fn igLogSetNextTextDecoration(prefix: *const cty::c_char, suffix: *const cty::c_char); } extern "C" { - pub fn igIsMouseReleased(button: ImGuiMouseButton) -> bool; + pub fn igBeginChildEx( + name: *const cty::c_char, + id: ImGuiID, + size_arg: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; } extern "C" { - pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; + pub fn igOpenPopupEx(id: ImGuiID, popup_flags: ImGuiPopupFlags); } extern "C" { - pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> cty::c_int; + pub fn igClosePopupToLevel(remaining: cty::c_int, restore_focus_to_window_under_popup: bool); } extern "C" { - pub fn igIsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool; + pub fn igClosePopupsOverWindow( + ref_window: *mut ImGuiWindow, + restore_focus_to_window_under_popup: bool, + ); } extern "C" { - pub fn igIsMousePosValid(mouse_pos: *const ImVec2) -> bool; + pub fn igClosePopupsExceptModals(); } extern "C" { - pub fn igIsAnyMouseDown() -> bool; + pub fn igIsPopupOpen_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags) -> bool; } extern "C" { - pub fn igGetMousePos(pOut: *mut ImVec2); + pub fn igBeginPopupEx(id: ImGuiID, extra_flags: ImGuiWindowFlags) -> bool; } extern "C" { - pub fn igGetMousePosOnOpeningCurrentPopup(pOut: *mut ImVec2); + pub fn igBeginTooltipEx(tooltip_flags: ImGuiTooltipFlags, extra_window_flags: ImGuiWindowFlags); } extern "C" { - pub fn igIsMouseDragging(button: ImGuiMouseButton, lock_threshold: f32) -> bool; + pub fn igGetPopupAllowedExtentRect(pOut: *mut ImRect, window: *mut ImGuiWindow); } extern "C" { - pub fn igGetMouseDragDelta(pOut: *mut ImVec2, button: ImGuiMouseButton, lock_threshold: f32); + pub fn igGetTopMostPopupModal() -> *mut ImGuiWindow; } extern "C" { - pub fn igResetMouseDragDelta(button: ImGuiMouseButton); + pub fn igGetTopMostAndVisiblePopupModal() -> *mut ImGuiWindow; } extern "C" { - pub fn igGetMouseCursor() -> ImGuiMouseCursor; + pub fn igFindBestWindowPosForPopup(pOut: *mut ImVec2, window: *mut ImGuiWindow); } extern "C" { - pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); + pub fn igFindBestWindowPosForPopupEx( + pOut: *mut ImVec2, + ref_pos: ImVec2, + size: ImVec2, + last_dir: *mut ImGuiDir, + r_outer: ImRect, + r_avoid: ImRect, + policy: ImGuiPopupPositionPolicy, + ); } extern "C" { - pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); + pub fn igBeginViewportSideBar( + name: *const cty::c_char, + viewport: *mut ImGuiViewport, + dir: ImGuiDir, + size: f32, + window_flags: ImGuiWindowFlags, + ) -> bool; } extern "C" { - pub fn igGetClipboardText() -> *const cty::c_char; + pub fn igBeginMenuEx( + label: *const cty::c_char, + icon: *const cty::c_char, + enabled: bool, + ) -> bool; } extern "C" { - pub fn igSetClipboardText(text: *const cty::c_char); + pub fn igMenuItemEx( + label: *const cty::c_char, + icon: *const cty::c_char, + shortcut: *const cty::c_char, + selected: bool, + enabled: bool, + ) -> bool; } extern "C" { - pub fn igLoadIniSettingsFromDisk(ini_filename: *const cty::c_char); + pub fn igBeginComboPopup(popup_id: ImGuiID, bb: ImRect, flags: ImGuiComboFlags) -> bool; } extern "C" { - pub fn igLoadIniSettingsFromMemory(ini_data: *const cty::c_char, ini_size: usize); + pub fn igBeginComboPreview() -> bool; } extern "C" { - pub fn igSaveIniSettingsToDisk(ini_filename: *const cty::c_char); + pub fn igEndComboPreview(); } extern "C" { - pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; + pub fn igNavInitWindow(window: *mut ImGuiWindow, force_reinit: bool); } extern "C" { - pub fn igDebugTextEncoding(text: *const cty::c_char); + pub fn igNavInitRequestApplyResult(); } extern "C" { - pub fn igDebugCheckVersionAndDataLayout( - version_str: *const cty::c_char, - sz_io: usize, - sz_style: usize, - sz_vec2: usize, - sz_vec4: usize, - sz_drawvert: usize, - sz_drawidx: usize, - ) -> bool; + pub fn igNavMoveRequestButNoResultYet() -> bool; } extern "C" { - pub fn igSetAllocatorFunctions( - alloc_func: ImGuiMemAllocFunc, - free_func: ImGuiMemFreeFunc, - user_data: *mut cty::c_void, + pub fn igNavMoveRequestSubmit( + move_dir: ImGuiDir, + clip_dir: ImGuiDir, + move_flags: ImGuiNavMoveFlags, + scroll_flags: ImGuiScrollFlags, ); } extern "C" { - pub fn igGetAllocatorFunctions( - p_alloc_func: *mut ImGuiMemAllocFunc, - p_free_func: *mut ImGuiMemFreeFunc, - p_user_data: *mut *mut cty::c_void, + pub fn igNavMoveRequestForward( + move_dir: ImGuiDir, + clip_dir: ImGuiDir, + move_flags: ImGuiNavMoveFlags, + scroll_flags: ImGuiScrollFlags, ); } extern "C" { - pub fn igMemAlloc(size: usize) -> *mut cty::c_void; + pub fn igNavMoveRequestResolveWithLastItem(result: *mut ImGuiNavItemData); } extern "C" { - pub fn igMemFree(ptr: *mut cty::c_void); + pub fn igNavMoveRequestCancel(); } extern "C" { - pub fn igGetPlatformIO() -> *mut ImGuiPlatformIO; + pub fn igNavMoveRequestApplyResult(); } extern "C" { - pub fn igUpdatePlatformWindows(); + pub fn igNavMoveRequestTryWrapping(window: *mut ImGuiWindow, move_flags: ImGuiNavMoveFlags); } extern "C" { - pub fn igRenderPlatformWindowsDefault( - platform_render_arg: *mut cty::c_void, - renderer_render_arg: *mut cty::c_void, - ); + pub fn igActivateItem(id: ImGuiID); } extern "C" { - pub fn igDestroyPlatformWindows(); + pub fn igSetNavWindow(window: *mut ImGuiWindow); } extern "C" { - pub fn igFindViewportByID(id: ImGuiID) -> *mut ImGuiViewport; + pub fn igSetNavID( + id: ImGuiID, + nav_layer: ImGuiNavLayer, + focus_scope_id: ImGuiID, + rect_rel: ImRect, + ); } extern "C" { - pub fn igFindViewportByPlatformHandle(platform_handle: *mut cty::c_void) -> *mut ImGuiViewport; + pub fn igIsNamedKey(key: ImGuiKey) -> bool; } extern "C" { - pub fn ImGuiStyle_ImGuiStyle() -> *mut ImGuiStyle; + pub fn igIsNamedKeyOrModKey(key: ImGuiKey) -> bool; } extern "C" { - pub fn ImGuiStyle_destroy(self_: *mut ImGuiStyle); + pub fn igIsLegacyKey(key: ImGuiKey) -> bool; } extern "C" { - pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); + pub fn igIsKeyboardKey(key: ImGuiKey) -> bool; } extern "C" { - pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); + pub fn igIsGamepadKey(key: ImGuiKey) -> bool; } extern "C" { - pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); + pub fn igIsMouseKey(key: ImGuiKey) -> bool; } extern "C" { - pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); + pub fn igIsAliasKey(key: ImGuiKey) -> bool; } extern "C" { - pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); + pub fn igConvertSingleModFlagToKey(key: ImGuiKey) -> ImGuiKey; } extern "C" { - pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); + pub fn igGetKeyData(key: ImGuiKey) -> *mut ImGuiKeyData; } extern "C" { - pub fn ImGuiIO_AddMouseViewportEvent(self_: *mut ImGuiIO, id: ImGuiID); + pub fn igGetKeyChordName( + key_chord: ImGuiKeyChord, + out_buf: *mut cty::c_char, + out_buf_size: cty::c_int, + ); } extern "C" { - pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); + pub fn igMouseButtonToKey(button: ImGuiMouseButton) -> ImGuiKey; } extern "C" { - pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); + pub fn igIsMouseDragPastThreshold(button: ImGuiMouseButton, lock_threshold: f32) -> bool; } extern "C" { - pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16); + pub fn igGetKeyVector2d( + pOut: *mut ImVec2, + key_left: ImGuiKey, + key_right: ImGuiKey, + key_up: ImGuiKey, + key_down: ImGuiKey, + ); } extern "C" { - pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); + pub fn igGetNavTweakPressedAmount(axis: ImGuiAxis) -> f32; } extern "C" { - pub fn ImGuiIO_SetKeyEventNativeData( - self_: *mut ImGuiIO, - key: ImGuiKey, - native_keycode: cty::c_int, - native_scancode: cty::c_int, - native_legacy_index: cty::c_int, - ); + pub fn igCalcTypematicRepeatAmount( + t0: f32, + t1: f32, + repeat_delay: f32, + repeat_rate: f32, + ) -> cty::c_int; } extern "C" { - pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); + pub fn igGetTypematicRepeatRate( + flags: ImGuiInputFlags, + repeat_delay: *mut f32, + repeat_rate: *mut f32, + ); } extern "C" { - pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); + pub fn igSetActiveIdUsingAllKeyboardKeys(); } extern "C" { - pub fn ImGuiIO_ClearInputKeys(self_: *mut ImGuiIO); + pub fn igIsActiveIdUsingNavDir(dir: ImGuiDir) -> bool; } extern "C" { - pub fn ImGuiIO_ImGuiIO() -> *mut ImGuiIO; + pub fn igGetKeyOwner(key: ImGuiKey) -> ImGuiID; } extern "C" { - pub fn ImGuiIO_destroy(self_: *mut ImGuiIO); + pub fn igSetKeyOwner(key: ImGuiKey, owner_id: ImGuiID, flags: ImGuiInputFlags); } extern "C" { - pub fn ImGuiInputTextCallbackData_ImGuiInputTextCallbackData() -> *mut ImGuiInputTextCallbackData; + pub fn igSetItemKeyOwner(key: ImGuiKey, flags: ImGuiInputFlags); } extern "C" { - pub fn ImGuiInputTextCallbackData_destroy(self_: *mut ImGuiInputTextCallbackData); + pub fn igTestKeyOwner(key: ImGuiKey, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn ImGuiInputTextCallbackData_DeleteChars( - self_: *mut ImGuiInputTextCallbackData, - pos: cty::c_int, - bytes_count: cty::c_int, - ); + pub fn igGetKeyOwnerData(key: ImGuiKey) -> *mut ImGuiKeyOwnerData; } extern "C" { - pub fn ImGuiInputTextCallbackData_InsertChars( - self_: *mut ImGuiInputTextCallbackData, - pos: cty::c_int, - text: *const cty::c_char, - text_end: *const cty::c_char, - ); + pub fn igIsKeyDown_ID(key: ImGuiKey, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn ImGuiInputTextCallbackData_SelectAll(self_: *mut ImGuiInputTextCallbackData); + pub fn igIsKeyPressed_ID(key: ImGuiKey, owner_id: ImGuiID, flags: ImGuiInputFlags) -> bool; } extern "C" { - pub fn ImGuiInputTextCallbackData_ClearSelection(self_: *mut ImGuiInputTextCallbackData); + pub fn igIsKeyReleased_ID(key: ImGuiKey, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn ImGuiInputTextCallbackData_HasSelection(self_: *mut ImGuiInputTextCallbackData) -> bool; + pub fn igIsMouseDown_ID(button: ImGuiMouseButton, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn ImGuiWindowClass_ImGuiWindowClass() -> *mut ImGuiWindowClass; + pub fn igIsMouseClicked_ID( + button: ImGuiMouseButton, + owner_id: ImGuiID, + flags: ImGuiInputFlags, + ) -> bool; } extern "C" { - pub fn ImGuiWindowClass_destroy(self_: *mut ImGuiWindowClass); + pub fn igIsMouseReleased_ID(button: ImGuiMouseButton, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn ImGuiPayload_ImGuiPayload() -> *mut ImGuiPayload; + pub fn igShortcut(key_chord: ImGuiKeyChord, owner_id: ImGuiID, flags: ImGuiInputFlags) -> bool; } extern "C" { - pub fn ImGuiPayload_destroy(self_: *mut ImGuiPayload); + pub fn igSetShortcutRouting( + key_chord: ImGuiKeyChord, + owner_id: ImGuiID, + flags: ImGuiInputFlags, + ) -> bool; } extern "C" { - pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload); + pub fn igTestShortcutRouting(key_chord: ImGuiKeyChord, owner_id: ImGuiID) -> bool; } extern "C" { - pub fn ImGuiPayload_IsDataType(self_: *mut ImGuiPayload, type_: *const cty::c_char) -> bool; + pub fn igGetShortcutRoutingData(key_chord: ImGuiKeyChord) -> *mut ImGuiKeyRoutingData; } extern "C" { - pub fn ImGuiPayload_IsPreview(self_: *mut ImGuiPayload) -> bool; + pub fn igDockContextInitialize(ctx: *mut ImGuiContext); } extern "C" { - pub fn ImGuiPayload_IsDelivery(self_: *mut ImGuiPayload) -> bool; + pub fn igDockContextShutdown(ctx: *mut ImGuiContext); } extern "C" { - pub fn ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs() -> *mut ImGuiTableColumnSortSpecs; + pub fn igDockContextClearNodes( + ctx: *mut ImGuiContext, + root_id: ImGuiID, + clear_settings_refs: bool, + ); } extern "C" { - pub fn ImGuiTableColumnSortSpecs_destroy(self_: *mut ImGuiTableColumnSortSpecs); + pub fn igDockContextRebuildNodes(ctx: *mut ImGuiContext); } extern "C" { - pub fn ImGuiTableSortSpecs_ImGuiTableSortSpecs() -> *mut ImGuiTableSortSpecs; + pub fn igDockContextNewFrameUpdateUndocking(ctx: *mut ImGuiContext); } extern "C" { - pub fn ImGuiTableSortSpecs_destroy(self_: *mut ImGuiTableSortSpecs); + pub fn igDockContextNewFrameUpdateDocking(ctx: *mut ImGuiContext); } extern "C" { - pub fn ImGuiOnceUponAFrame_ImGuiOnceUponAFrame() -> *mut ImGuiOnceUponAFrame; + pub fn igDockContextEndFrame(ctx: *mut ImGuiContext); } extern "C" { - pub fn ImGuiOnceUponAFrame_destroy(self_: *mut ImGuiOnceUponAFrame); + pub fn igDockContextGenNodeID(ctx: *mut ImGuiContext) -> ImGuiID; } extern "C" { - pub fn ImGuiTextFilter_ImGuiTextFilter( - default_filter: *const cty::c_char, - ) -> *mut ImGuiTextFilter; + pub fn igDockContextQueueDock( + ctx: *mut ImGuiContext, + target: *mut ImGuiWindow, + target_node: *mut ImGuiDockNode, + payload: *mut ImGuiWindow, + split_dir: ImGuiDir, + split_ratio: f32, + split_outer: bool, + ); } extern "C" { - pub fn ImGuiTextFilter_destroy(self_: *mut ImGuiTextFilter); + pub fn igDockContextQueueUndockWindow(ctx: *mut ImGuiContext, window: *mut ImGuiWindow); } extern "C" { - pub fn ImGuiTextFilter_Draw( - self_: *mut ImGuiTextFilter, - label: *const cty::c_char, - width: f32, - ) -> bool; + pub fn igDockContextQueueUndockNode(ctx: *mut ImGuiContext, node: *mut ImGuiDockNode); } extern "C" { - pub fn ImGuiTextFilter_PassFilter( - self_: *mut ImGuiTextFilter, - text: *const cty::c_char, - text_end: *const cty::c_char, + pub fn igDockContextCalcDropPosForDocking( + target: *mut ImGuiWindow, + target_node: *mut ImGuiDockNode, + payload_window: *mut ImGuiWindow, + payload_node: *mut ImGuiDockNode, + split_dir: ImGuiDir, + split_outer: bool, + out_pos: *mut ImVec2, ) -> bool; } extern "C" { - pub fn ImGuiTextFilter_Build(self_: *mut ImGuiTextFilter); -} -extern "C" { - pub fn ImGuiTextFilter_Clear(self_: *mut ImGuiTextFilter); + pub fn igDockContextFindNodeByID(ctx: *mut ImGuiContext, id: ImGuiID) -> *mut ImGuiDockNode; } extern "C" { - pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; + pub fn igDockNodeBeginAmendTabBar(node: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; + pub fn igDockNodeEndAmendTabBar(); } extern "C" { - pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); + pub fn igDockNodeGetRootNode(node: *mut ImGuiDockNode) -> *mut ImGuiDockNode; } extern "C" { - pub fn ImGuiTextRange_ImGuiTextRange_Str( - _b: *const cty::c_char, - _e: *const cty::c_char, - ) -> *mut ImGuiTextRange; + pub fn igDockNodeIsInHierarchyOf(node: *mut ImGuiDockNode, parent: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn ImGuiTextRange_empty(self_: *mut ImGuiTextRange) -> bool; + pub fn igDockNodeGetDepth(node: *const ImGuiDockNode) -> cty::c_int; } extern "C" { - pub fn ImGuiTextRange_split( - self_: *mut ImGuiTextRange, - separator: cty::c_char, - out: *mut ImVector_ImGuiTextRange, - ); + pub fn igDockNodeGetWindowMenuButtonId(node: *const ImGuiDockNode) -> ImGuiID; } extern "C" { - pub fn ImGuiTextBuffer_ImGuiTextBuffer() -> *mut ImGuiTextBuffer; + pub fn igGetWindowDockNode() -> *mut ImGuiDockNode; } extern "C" { - pub fn ImGuiTextBuffer_destroy(self_: *mut ImGuiTextBuffer); + pub fn igGetWindowAlwaysWantOwnTabBar(window: *mut ImGuiWindow) -> bool; } extern "C" { - pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; + pub fn igBeginDocked(window: *mut ImGuiWindow, p_open: *mut bool); } extern "C" { - pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; + pub fn igBeginDockableDragDropSource(window: *mut ImGuiWindow); } extern "C" { - pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> cty::c_int; + pub fn igBeginDockableDragDropTarget(window: *mut ImGuiWindow); } extern "C" { - pub fn ImGuiTextBuffer_empty(self_: *mut ImGuiTextBuffer) -> bool; + pub fn igSetWindowDock(window: *mut ImGuiWindow, dock_id: ImGuiID, cond: ImGuiCond); } extern "C" { - pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer); + pub fn igDockBuilderDockWindow(window_name: *const cty::c_char, node_id: ImGuiID); } extern "C" { - pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: cty::c_int); + pub fn igDockBuilderGetNode(node_id: ImGuiID) -> *mut ImGuiDockNode; } extern "C" { - pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; + pub fn igDockBuilderGetCentralNode(node_id: ImGuiID) -> *mut ImGuiDockNode; } extern "C" { - pub fn ImGuiTextBuffer_append( - self_: *mut ImGuiTextBuffer, - str_: *const cty::c_char, - str_end: *const cty::c_char, - ); + pub fn igDockBuilderAddNode(node_id: ImGuiID, flags: ImGuiDockNodeFlags) -> ImGuiID; } extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePair_Int( - _key: ImGuiID, - _val_i: cty::c_int, - ) -> *mut ImGuiStoragePair; + pub fn igDockBuilderRemoveNode(node_id: ImGuiID); } extern "C" { - pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); + pub fn igDockBuilderRemoveNodeDockedWindows(node_id: ImGuiID, clear_settings_refs: bool); } extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePair_Float( - _key: ImGuiID, - _val_f: f32, - ) -> *mut ImGuiStoragePair; + pub fn igDockBuilderRemoveNodeChildNodes(node_id: ImGuiID); } extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( - _key: ImGuiID, - _val_p: *mut cty::c_void, - ) -> *mut ImGuiStoragePair; + pub fn igDockBuilderSetNodePos(node_id: ImGuiID, pos: ImVec2); } extern "C" { - pub fn ImGuiStorage_Clear(self_: *mut ImGuiStorage); + pub fn igDockBuilderSetNodeSize(node_id: ImGuiID, size: ImVec2); } extern "C" { - pub fn ImGuiStorage_GetInt( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: cty::c_int, - ) -> cty::c_int; + pub fn igDockBuilderSplitNode( + node_id: ImGuiID, + split_dir: ImGuiDir, + size_ratio_for_node_at_dir: f32, + out_id_at_dir: *mut ImGuiID, + out_id_at_opposite_dir: *mut ImGuiID, + ) -> ImGuiID; } extern "C" { - pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: cty::c_int); + pub fn igDockBuilderCopyDockSpace( + src_dockspace_id: ImGuiID, + dst_dockspace_id: ImGuiID, + in_window_remap_pairs: *mut ImVector_const_charPtr, + ); } extern "C" { - pub fn ImGuiStorage_GetBool(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> bool; + pub fn igDockBuilderCopyNode( + src_node_id: ImGuiID, + dst_node_id: ImGuiID, + out_node_remap_pairs: *mut ImVector_ImGuiID, + ); } extern "C" { - pub fn ImGuiStorage_SetBool(self_: *mut ImGuiStorage, key: ImGuiID, val: bool); + pub fn igDockBuilderCopyWindowSettings( + src_name: *const cty::c_char, + dst_name: *const cty::c_char, + ); } extern "C" { - pub fn ImGuiStorage_GetFloat(self_: *mut ImGuiStorage, key: ImGuiID, default_val: f32) -> f32; + pub fn igDockBuilderFinish(node_id: ImGuiID); } extern "C" { - pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32); + pub fn igPushFocusScope(id: ImGuiID); } extern "C" { - pub fn ImGuiStorage_GetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut cty::c_void; + pub fn igPopFocusScope(); } extern "C" { - pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut cty::c_void); + pub fn igGetCurrentFocusScope() -> ImGuiID; } extern "C" { - pub fn ImGuiStorage_GetIntRef( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: cty::c_int, - ) -> *mut cty::c_int; + pub fn igIsDragDropActive() -> bool; } extern "C" { - pub fn ImGuiStorage_GetBoolRef( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: bool, - ) -> *mut bool; + pub fn igBeginDragDropTargetCustom(bb: ImRect, id: ImGuiID) -> bool; } extern "C" { - pub fn ImGuiStorage_GetFloatRef( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: f32, - ) -> *mut f32; + pub fn igClearDragDrop(); } extern "C" { - pub fn ImGuiStorage_GetVoidPtrRef( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: *mut cty::c_void, - ) -> *mut *mut cty::c_void; + pub fn igIsDragDropPayloadBeingAccepted() -> bool; } extern "C" { - pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: cty::c_int); + pub fn igRenderDragDropTargetRect(bb: ImRect); } extern "C" { - pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage); + pub fn igSetWindowClipRectBeforeSetChannel(window: *mut ImGuiWindow, clip_rect: ImRect); } extern "C" { - pub fn ImGuiListClipper_ImGuiListClipper() -> *mut ImGuiListClipper; + pub fn igBeginColumns( + str_id: *const cty::c_char, + count: cty::c_int, + flags: ImGuiOldColumnFlags, + ); } extern "C" { - pub fn ImGuiListClipper_destroy(self_: *mut ImGuiListClipper); + pub fn igEndColumns(); } extern "C" { - pub fn ImGuiListClipper_Begin( - self_: *mut ImGuiListClipper, - items_count: cty::c_int, - items_height: f32, - ); + pub fn igPushColumnClipRect(column_index: cty::c_int); } extern "C" { - pub fn ImGuiListClipper_End(self_: *mut ImGuiListClipper); + pub fn igPushColumnsBackground(); } extern "C" { - pub fn ImGuiListClipper_Step(self_: *mut ImGuiListClipper) -> bool; + pub fn igPopColumnsBackground(); } extern "C" { - pub fn ImGuiListClipper_ForceDisplayRangeByIndices( - self_: *mut ImGuiListClipper, - item_min: cty::c_int, - item_max: cty::c_int, - ); + pub fn igGetColumnsID(str_id: *const cty::c_char, count: cty::c_int) -> ImGuiID; } extern "C" { - pub fn ImColor_ImColor_Nil() -> *mut ImColor; + pub fn igFindOrCreateColumns(window: *mut ImGuiWindow, id: ImGuiID) -> *mut ImGuiOldColumns; } extern "C" { - pub fn ImColor_destroy(self_: *mut ImColor); + pub fn igGetColumnOffsetFromNorm(columns: *const ImGuiOldColumns, offset_norm: f32) -> f32; } extern "C" { - pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; + pub fn igGetColumnNormFromOffset(columns: *const ImGuiOldColumns, offset: f32) -> f32; } extern "C" { - pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; + pub fn igTableOpenContextMenu(column_n: cty::c_int); } extern "C" { - pub fn ImColor_ImColor_Int( - r: cty::c_int, - g: cty::c_int, - b: cty::c_int, - a: cty::c_int, - ) -> *mut ImColor; + pub fn igTableSetColumnWidth(column_n: cty::c_int, width: f32); } extern "C" { - pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; + pub fn igTableSetColumnSortDirection( + column_n: cty::c_int, + sort_direction: ImGuiSortDirection, + append_to_sort_specs: bool, + ); } extern "C" { - pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); + pub fn igTableGetHoveredColumn() -> cty::c_int; } extern "C" { - pub fn ImColor_HSV(pOut: *mut ImColor, h: f32, s: f32, v: f32, a: f32); + pub fn igTableGetHeaderRowHeight() -> f32; } extern "C" { - pub fn ImDrawCmd_ImDrawCmd() -> *mut ImDrawCmd; + pub fn igTablePushBackgroundChannel(); } extern "C" { - pub fn ImDrawCmd_destroy(self_: *mut ImDrawCmd); + pub fn igTablePopBackgroundChannel(); } extern "C" { - pub fn ImDrawCmd_GetTexID(self_: *mut ImDrawCmd) -> ImTextureID; + pub fn igGetCurrentTable() -> *mut ImGuiTable; } extern "C" { - pub fn ImDrawListSplitter_ImDrawListSplitter() -> *mut ImDrawListSplitter; + pub fn igTableFindByID(id: ImGuiID) -> *mut ImGuiTable; } extern "C" { - pub fn ImDrawListSplitter_destroy(self_: *mut ImDrawListSplitter); + pub fn igBeginTableEx( + name: *const cty::c_char, + id: ImGuiID, + columns_count: cty::c_int, + flags: ImGuiTableFlags, + outer_size: ImVec2, + inner_width: f32, + ) -> bool; } extern "C" { - pub fn ImDrawListSplitter_Clear(self_: *mut ImDrawListSplitter); + pub fn igTableBeginInitMemory(table: *mut ImGuiTable, columns_count: cty::c_int); } extern "C" { - pub fn ImDrawListSplitter_ClearFreeMemory(self_: *mut ImDrawListSplitter); + pub fn igTableBeginApplyRequests(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawListSplitter_Split( - self_: *mut ImDrawListSplitter, - draw_list: *mut ImDrawList, - count: cty::c_int, - ); + pub fn igTableSetupDrawChannels(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawListSplitter_Merge(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList); + pub fn igTableUpdateLayout(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawListSplitter_SetCurrentChannel( - self_: *mut ImDrawListSplitter, - draw_list: *mut ImDrawList, - channel_idx: cty::c_int, - ); + pub fn igTableUpdateBorders(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; + pub fn igTableUpdateColumnsWeightFromWidth(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_destroy(self_: *mut ImDrawList); + pub fn igTableDrawBorders(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_PushClipRect( - self_: *mut ImDrawList, - clip_rect_min: ImVec2, - clip_rect_max: ImVec2, - intersect_with_current_clip_rect: bool, - ); + pub fn igTableDrawContextMenu(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_PushClipRectFullScreen(self_: *mut ImDrawList); + pub fn igTableBeginContextMenuPopup(table: *mut ImGuiTable) -> bool; } extern "C" { - pub fn ImDrawList_PopClipRect(self_: *mut ImDrawList); + pub fn igTableMergeDrawChannels(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_PushTextureID(self_: *mut ImDrawList, texture_id: ImTextureID); + pub fn igTableGetInstanceData( + table: *mut ImGuiTable, + instance_no: cty::c_int, + ) -> *mut ImGuiTableInstanceData; } extern "C" { - pub fn ImDrawList_PopTextureID(self_: *mut ImDrawList); + pub fn igTableSortSpecsSanitize(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_GetClipRectMin(pOut: *mut ImVec2, self_: *mut ImDrawList); + pub fn igTableSortSpecsBuild(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_GetClipRectMax(pOut: *mut ImVec2, self_: *mut ImDrawList); + pub fn igTableGetColumnNextSortDirection(column: *mut ImGuiTableColumn) -> ImGuiSortDirection; } extern "C" { - pub fn ImDrawList_AddLine( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - col: ImU32, - thickness: f32, - ); + pub fn igTableFixColumnSortDirection(table: *mut ImGuiTable, column: *mut ImGuiTableColumn); } extern "C" { - pub fn ImDrawList_AddRect( - self_: *mut ImDrawList, - p_min: ImVec2, - p_max: ImVec2, - col: ImU32, - rounding: f32, - flags: ImDrawFlags, - thickness: f32, - ); + pub fn igTableGetColumnWidthAuto(table: *mut ImGuiTable, column: *mut ImGuiTableColumn) -> f32; } extern "C" { - pub fn ImDrawList_AddRectFilled( - self_: *mut ImDrawList, - p_min: ImVec2, - p_max: ImVec2, - col: ImU32, - rounding: f32, - flags: ImDrawFlags, - ); + pub fn igTableBeginRow(table: *mut ImGuiTable); } extern "C" { - 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 igTableEndRow(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_AddQuad( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - col: ImU32, - thickness: f32, - ); + pub fn igTableBeginCell(table: *mut ImGuiTable, column_n: cty::c_int); } extern "C" { - pub fn ImDrawList_AddQuadFilled( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - col: ImU32, - ); + pub fn igTableEndCell(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_AddTriangle( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - col: ImU32, - thickness: f32, - ); + pub fn igTableGetCellBgRect(pOut: *mut ImRect, table: *const ImGuiTable, column_n: cty::c_int); } extern "C" { - pub fn ImDrawList_AddTriangleFilled( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - col: ImU32, - ); + pub fn igTableGetColumnName_TablePtr( + table: *const ImGuiTable, + column_n: cty::c_int, + ) -> *const cty::c_char; } extern "C" { - pub fn ImDrawList_AddCircle( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - col: ImU32, - num_segments: cty::c_int, - thickness: f32, - ); + pub fn igTableGetColumnResizeID( + table: *const ImGuiTable, + column_n: cty::c_int, + instance_no: cty::c_int, + ) -> ImGuiID; } extern "C" { - pub fn ImDrawList_AddCircleFilled( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - col: ImU32, - num_segments: cty::c_int, - ); + pub fn igTableGetMaxColumnWidth(table: *const ImGuiTable, column_n: cty::c_int) -> f32; } extern "C" { - pub fn ImDrawList_AddNgon( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - col: ImU32, - num_segments: cty::c_int, - thickness: f32, - ); + pub fn igTableSetColumnWidthAutoSingle(table: *mut ImGuiTable, column_n: cty::c_int); } extern "C" { - pub fn ImDrawList_AddNgonFilled( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - col: ImU32, - num_segments: cty::c_int, - ); + pub fn igTableSetColumnWidthAutoAll(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_AddText_Vec2( - self_: *mut ImDrawList, - pos: ImVec2, - col: ImU32, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, - ); + pub fn igTableRemove(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_AddText_FontPtr( - self_: *mut ImDrawList, - font: *const ImFont, - font_size: f32, - pos: ImVec2, - col: ImU32, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, - wrap_width: f32, - cpu_fine_clip_rect: *const ImVec4, - ); + pub fn igTableGcCompactTransientBuffers_TablePtr(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_AddPolyline( - self_: *mut ImDrawList, - points: *const ImVec2, - num_points: cty::c_int, - col: ImU32, - flags: ImDrawFlags, - thickness: f32, - ); + pub fn igTableGcCompactTransientBuffers_TableTempDataPtr(table: *mut ImGuiTableTempData); } extern "C" { - pub fn ImDrawList_AddConvexPolyFilled( - self_: *mut ImDrawList, - points: *const ImVec2, - num_points: cty::c_int, - col: ImU32, - ); + pub fn igTableGcCompactSettings(); } extern "C" { - pub fn ImDrawList_AddBezierCubic( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - col: ImU32, - thickness: f32, - num_segments: cty::c_int, - ); + pub fn igTableLoadSettings(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_AddBezierQuadratic( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - col: ImU32, - thickness: f32, - num_segments: cty::c_int, - ); + pub fn igTableSaveSettings(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_AddImage( - self_: *mut ImDrawList, - user_texture_id: ImTextureID, - p_min: ImVec2, - p_max: ImVec2, - uv_min: ImVec2, - uv_max: ImVec2, - col: ImU32, - ); + pub fn igTableResetSettings(table: *mut ImGuiTable); } extern "C" { - pub fn ImDrawList_AddImageQuad( - self_: *mut ImDrawList, - user_texture_id: ImTextureID, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - uv1: ImVec2, - uv2: ImVec2, - uv3: ImVec2, - uv4: ImVec2, - col: ImU32, - ); + pub fn igTableGetBoundSettings(table: *mut ImGuiTable) -> *mut ImGuiTableSettings; } extern "C" { - pub fn ImDrawList_AddImageRounded( - self_: *mut ImDrawList, - user_texture_id: ImTextureID, - p_min: ImVec2, - p_max: ImVec2, - uv_min: ImVec2, - uv_max: ImVec2, - col: ImU32, - rounding: f32, - flags: ImDrawFlags, - ); + pub fn igTableSettingsAddSettingsHandler(); } extern "C" { - pub fn ImDrawList_PathClear(self_: *mut ImDrawList); + pub fn igTableSettingsCreate(id: ImGuiID, columns_count: cty::c_int) + -> *mut ImGuiTableSettings; } extern "C" { - pub fn ImDrawList_PathLineTo(self_: *mut ImDrawList, pos: ImVec2); + pub fn igTableSettingsFindByID(id: ImGuiID) -> *mut ImGuiTableSettings; } extern "C" { - pub fn ImDrawList_PathLineToMergeDuplicate(self_: *mut ImDrawList, pos: ImVec2); + pub fn igBeginTabBarEx( + tab_bar: *mut ImGuiTabBar, + bb: ImRect, + flags: ImGuiTabBarFlags, + dock_node: *mut ImGuiDockNode, + ) -> bool; } extern "C" { - pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32); + pub fn igTabBarFindTabByID(tab_bar: *mut ImGuiTabBar, tab_id: ImGuiID) -> *mut ImGuiTabItem; } extern "C" { - pub fn ImDrawList_PathStroke( - self_: *mut ImDrawList, - col: ImU32, - flags: ImDrawFlags, - thickness: f32, - ); + pub fn igTabBarFindMostRecentlySelectedTabForActiveWindow( + tab_bar: *mut ImGuiTabBar, + ) -> *mut ImGuiTabItem; } extern "C" { - pub fn ImDrawList_PathArcTo( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - a_min: f32, - a_max: f32, - num_segments: cty::c_int, + pub fn igTabBarAddTab( + tab_bar: *mut ImGuiTabBar, + tab_flags: ImGuiTabItemFlags, + window: *mut ImGuiWindow, ); } extern "C" { - pub fn ImDrawList_PathArcToFast( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - a_min_of_12: cty::c_int, - a_max_of_12: cty::c_int, - ); + pub fn igTabBarRemoveTab(tab_bar: *mut ImGuiTabBar, tab_id: ImGuiID); } extern "C" { - pub fn ImDrawList_PathBezierCubicCurveTo( - self_: *mut ImDrawList, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - num_segments: cty::c_int, - ); + pub fn igTabBarCloseTab(tab_bar: *mut ImGuiTabBar, tab: *mut ImGuiTabItem); } extern "C" { - pub fn ImDrawList_PathBezierQuadraticCurveTo( - self_: *mut ImDrawList, - p2: ImVec2, - p3: ImVec2, - num_segments: cty::c_int, + pub fn igTabBarQueueReorder( + tab_bar: *mut ImGuiTabBar, + tab: *const ImGuiTabItem, + offset: cty::c_int, ); } extern "C" { - pub fn ImDrawList_PathRect( - self_: *mut ImDrawList, - rect_min: ImVec2, - rect_max: ImVec2, - rounding: f32, - flags: ImDrawFlags, + pub fn igTabBarQueueReorderFromMousePos( + tab_bar: *mut ImGuiTabBar, + tab: *const ImGuiTabItem, + mouse_pos: ImVec2, ); } extern "C" { - pub fn ImDrawList_AddCallback( - self_: *mut ImDrawList, - callback: ImDrawCallback, - callback_data: *mut cty::c_void, - ); + pub fn igTabBarProcessReorder(tab_bar: *mut ImGuiTabBar) -> bool; } extern "C" { - pub fn ImDrawList_AddDrawCmd(self_: *mut ImDrawList); + pub fn igTabItemEx( + tab_bar: *mut ImGuiTabBar, + label: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiTabItemFlags, + docked_window: *mut ImGuiWindow, + ) -> bool; } extern "C" { - pub fn ImDrawList_CloneOutput(self_: *mut ImDrawList) -> *mut ImDrawList; + pub fn igTabItemCalcSize_Str( + pOut: *mut ImVec2, + label: *const cty::c_char, + has_close_button_or_unsaved_marker: bool, + ); } extern "C" { - pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: cty::c_int); + pub fn igTabItemCalcSize_WindowPtr(pOut: *mut ImVec2, window: *mut ImGuiWindow); } extern "C" { - pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList); + pub fn igTabItemBackground( + draw_list: *mut ImDrawList, + bb: ImRect, + flags: ImGuiTabItemFlags, + col: ImU32, + ); } extern "C" { - pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: cty::c_int); + pub fn igTabItemLabelAndCloseButton( + draw_list: *mut ImDrawList, + bb: ImRect, + flags: ImGuiTabItemFlags, + frame_padding: ImVec2, + label: *const cty::c_char, + tab_id: ImGuiID, + close_button_id: ImGuiID, + is_contents_visible: bool, + out_just_closed: *mut bool, + out_text_clipped: *mut bool, + ); } extern "C" { - pub fn ImDrawList_PrimReserve( - self_: *mut ImDrawList, - idx_count: cty::c_int, - vtx_count: cty::c_int, + pub fn igRenderText( + pos: ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + hide_text_after_hash: bool, ); } extern "C" { - pub fn ImDrawList_PrimUnreserve( - self_: *mut ImDrawList, - idx_count: cty::c_int, - vtx_count: cty::c_int, + pub fn igRenderTextWrapped( + pos: ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, ); } extern "C" { - pub fn ImDrawList_PrimRect(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, col: ImU32); + pub fn igRenderTextClipped( + pos_min: ImVec2, + pos_max: ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + text_size_if_known: *const ImVec2, + align: ImVec2, + clip_rect: *const ImRect, + ); } extern "C" { - pub fn ImDrawList_PrimRectUV( - self_: *mut ImDrawList, - a: ImVec2, - b: ImVec2, - uv_a: ImVec2, - uv_b: ImVec2, - col: ImU32, + pub fn igRenderTextClippedEx( + draw_list: *mut ImDrawList, + pos_min: ImVec2, + pos_max: ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + text_size_if_known: *const ImVec2, + align: ImVec2, + clip_rect: *const ImRect, ); } extern "C" { - 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 igRenderTextEllipsis( + draw_list: *mut ImDrawList, + pos_min: ImVec2, + pos_max: ImVec2, + clip_max_x: f32, + ellipsis_max_x: f32, + text: *const cty::c_char, + text_end: *const cty::c_char, + text_size_if_known: *const ImVec2, ); } extern "C" { - pub fn ImDrawList_PrimWriteVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); + pub fn igRenderFrame( + p_min: ImVec2, + p_max: ImVec2, + fill_col: ImU32, + border: bool, + rounding: f32, + ); } extern "C" { - pub fn ImDrawList_PrimWriteIdx(self_: *mut ImDrawList, idx: ImDrawIdx); + pub fn igRenderFrameBorder(p_min: ImVec2, p_max: ImVec2, rounding: f32); } extern "C" { - pub fn ImDrawList_PrimVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); + pub fn igRenderColorRectWithAlphaCheckerboard( + draw_list: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + fill_col: ImU32, + grid_step: f32, + grid_off: ImVec2, + rounding: f32, + flags: ImDrawFlags, + ); } extern "C" { - pub fn ImDrawList__ResetForNewFrame(self_: *mut ImDrawList); + pub fn igRenderNavHighlight(bb: ImRect, id: ImGuiID, flags: ImGuiNavHighlightFlags); } extern "C" { - pub fn ImDrawList__ClearFreeMemory(self_: *mut ImDrawList); + pub fn igFindRenderedTextEnd( + text: *const cty::c_char, + text_end: *const cty::c_char, + ) -> *const cty::c_char; } extern "C" { - pub fn ImDrawList__PopUnusedDrawCmd(self_: *mut ImDrawList); + pub fn igRenderMouseCursor( + pos: ImVec2, + scale: f32, + mouse_cursor: ImGuiMouseCursor, + col_fill: ImU32, + col_border: ImU32, + col_shadow: ImU32, + ); } extern "C" { - pub fn ImDrawList__TryMergeDrawCmds(self_: *mut ImDrawList); + pub fn igRenderArrow( + draw_list: *mut ImDrawList, + pos: ImVec2, + col: ImU32, + dir: ImGuiDir, + scale: f32, + ); } extern "C" { - pub fn ImDrawList__OnChangedClipRect(self_: *mut ImDrawList); + pub fn igRenderBullet(draw_list: *mut ImDrawList, pos: ImVec2, col: ImU32); } extern "C" { - pub fn ImDrawList__OnChangedTextureID(self_: *mut ImDrawList); + pub fn igRenderCheckMark(draw_list: *mut ImDrawList, pos: ImVec2, col: ImU32, sz: f32); } extern "C" { - pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList); + pub fn igRenderArrowPointingAt( + draw_list: *mut ImDrawList, + pos: ImVec2, + half_sz: ImVec2, + direction: ImGuiDir, + col: ImU32, + ); } extern "C" { - pub fn ImDrawList__CalcCircleAutoSegmentCount( - self_: *mut ImDrawList, - radius: f32, - ) -> cty::c_int; + pub fn igRenderArrowDockMenu(draw_list: *mut ImDrawList, p_min: ImVec2, sz: f32, col: ImU32); } extern "C" { - pub fn ImDrawList__PathArcToFastEx( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - a_min_sample: cty::c_int, - a_max_sample: cty::c_int, - a_step: cty::c_int, + pub fn igRenderRectFilledRangeH( + draw_list: *mut ImDrawList, + rect: ImRect, + col: ImU32, + x_start_norm: f32, + x_end_norm: f32, + rounding: f32, ); } extern "C" { - pub fn ImDrawList__PathArcToN( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - a_min: f32, - a_max: f32, - num_segments: cty::c_int, + pub fn igRenderRectFilledWithHole( + draw_list: *mut ImDrawList, + outer: ImRect, + inner: ImRect, + col: ImU32, + rounding: f32, ); } extern "C" { - pub fn ImDrawData_ImDrawData() -> *mut ImDrawData; + pub fn igCalcRoundingFlagsForRectInRect( + r_in: ImRect, + r_outer: ImRect, + threshold: f32, + ) -> ImDrawFlags; } extern "C" { - pub fn ImDrawData_destroy(self_: *mut ImDrawData); + pub fn igTextEx(text: *const cty::c_char, text_end: *const cty::c_char, flags: ImGuiTextFlags); } extern "C" { - pub fn ImDrawData_Clear(self_: *mut ImDrawData); + pub fn igButtonEx(label: *const cty::c_char, size_arg: ImVec2, flags: ImGuiButtonFlags) + -> bool; } extern "C" { - pub fn ImDrawData_DeIndexAllBuffers(self_: *mut ImDrawData); + pub fn igCloseButton(id: ImGuiID, pos: ImVec2) -> bool; } extern "C" { - pub fn ImDrawData_ScaleClipRects(self_: *mut ImDrawData, fb_scale: ImVec2); + pub fn igCollapseButton(id: ImGuiID, pos: ImVec2, dock_node: *mut ImGuiDockNode) -> bool; } extern "C" { - pub fn ImFontConfig_ImFontConfig() -> *mut ImFontConfig; + pub fn igArrowButtonEx( + str_id: *const cty::c_char, + dir: ImGuiDir, + size_arg: ImVec2, + flags: ImGuiButtonFlags, + ) -> bool; } extern "C" { - pub fn ImFontConfig_destroy(self_: *mut ImFontConfig); + pub fn igScrollbar(axis: ImGuiAxis); } extern "C" { - pub fn ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder() -> *mut ImFontGlyphRangesBuilder; + pub fn igScrollbarEx( + bb: ImRect, + id: ImGuiID, + axis: ImGuiAxis, + p_scroll_v: *mut ImS64, + avail_v: ImS64, + contents_v: ImS64, + flags: ImDrawFlags, + ) -> bool; } extern "C" { - pub fn ImFontGlyphRangesBuilder_destroy(self_: *mut ImFontGlyphRangesBuilder); + pub fn igImageButtonEx( + id: ImGuiID, + texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; } extern "C" { - pub fn ImFontGlyphRangesBuilder_Clear(self_: *mut ImFontGlyphRangesBuilder); + pub fn igGetWindowScrollbarRect(pOut: *mut ImRect, window: *mut ImGuiWindow, axis: ImGuiAxis); } extern "C" { - pub fn ImFontGlyphRangesBuilder_GetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize) -> bool; + pub fn igGetWindowScrollbarID(window: *mut ImGuiWindow, axis: ImGuiAxis) -> ImGuiID; } extern "C" { - pub fn ImFontGlyphRangesBuilder_SetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize); + pub fn igGetWindowResizeCornerID(window: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; } extern "C" { - pub fn ImFontGlyphRangesBuilder_AddChar(self_: *mut ImFontGlyphRangesBuilder, c: ImWchar); + pub fn igGetWindowResizeBorderID(window: *mut ImGuiWindow, dir: ImGuiDir) -> ImGuiID; } extern "C" { - pub fn ImFontGlyphRangesBuilder_AddText( - self_: *mut ImFontGlyphRangesBuilder, - text: *const cty::c_char, - text_end: *const cty::c_char, - ); + pub fn igSeparatorEx(flags: ImGuiSeparatorFlags); } extern "C" { - pub fn ImFontGlyphRangesBuilder_AddRanges( - self_: *mut ImFontGlyphRangesBuilder, - ranges: *const ImWchar, - ); + pub fn igCheckboxFlags_S64Ptr( + label: *const cty::c_char, + flags: *mut ImS64, + flags_value: ImS64, + ) -> bool; } extern "C" { - pub fn ImFontGlyphRangesBuilder_BuildRanges( - self_: *mut ImFontGlyphRangesBuilder, - out_ranges: *mut ImVector_ImWchar, - ); + pub fn igCheckboxFlags_U64Ptr( + label: *const cty::c_char, + flags: *mut ImU64, + flags_value: ImU64, + ) -> bool; } extern "C" { - pub fn ImFontAtlasCustomRect_ImFontAtlasCustomRect() -> *mut ImFontAtlasCustomRect; + pub fn igButtonBehavior( + bb: ImRect, + id: ImGuiID, + out_hovered: *mut bool, + out_held: *mut bool, + flags: ImGuiButtonFlags, + ) -> bool; } extern "C" { - pub fn ImFontAtlasCustomRect_destroy(self_: *mut ImFontAtlasCustomRect); + pub fn igDragBehavior( + id: ImGuiID, + data_type: ImGuiDataType, + p_v: *mut cty::c_void, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; } extern "C" { - pub fn ImFontAtlasCustomRect_IsPacked(self_: *mut ImFontAtlasCustomRect) -> bool; + pub fn igSliderBehavior( + bb: ImRect, + id: ImGuiID, + data_type: ImGuiDataType, + p_v: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + out_grab_bb: *mut ImRect, + ) -> bool; } extern "C" { - pub fn ImFontAtlas_ImFontAtlas() -> *mut ImFontAtlas; + pub fn igSplitterBehavior( + bb: ImRect, + id: ImGuiID, + axis: ImGuiAxis, + size1: *mut f32, + size2: *mut f32, + min_size1: f32, + min_size2: f32, + hover_extend: f32, + hover_visibility_delay: f32, + bg_col: ImU32, + ) -> bool; } extern "C" { - pub fn ImFontAtlas_destroy(self_: *mut ImFontAtlas); + pub fn igTreeNodeBehavior( + id: ImGuiID, + flags: ImGuiTreeNodeFlags, + label: *const cty::c_char, + label_end: *const cty::c_char, + ) -> bool; +} +extern "C" { + pub fn igTreePushOverrideID(id: ImGuiID); } extern "C" { - pub fn ImFontAtlas_AddFont( - self_: *mut ImFontAtlas, - font_cfg: *const ImFontConfig, - ) -> *mut ImFont; + pub fn igTreeNodeSetOpen(id: ImGuiID, open: bool); } extern "C" { - pub fn ImFontAtlas_AddFontDefault( - self_: *mut ImFontAtlas, - font_cfg: *const ImFontConfig, - ) -> *mut ImFont; + pub fn igTreeNodeUpdateNextOpen(id: ImGuiID, flags: ImGuiTreeNodeFlags) -> bool; } extern "C" { - pub fn ImFontAtlas_AddFontFromFileTTF( - self_: *mut ImFontAtlas, - filename: *const cty::c_char, - size_pixels: f32, - font_cfg: *const ImFontConfig, - glyph_ranges: *const ImWchar, - ) -> *mut ImFont; + pub fn igDataTypeGetInfo(data_type: ImGuiDataType) -> *const ImGuiDataTypeInfo; } extern "C" { - pub fn ImFontAtlas_AddFontFromMemoryTTF( - self_: *mut ImFontAtlas, - font_data: *mut cty::c_void, - font_size: cty::c_int, - size_pixels: f32, - font_cfg: *const ImFontConfig, - glyph_ranges: *const ImWchar, - ) -> *mut ImFont; + pub fn igDataTypeFormatString( + buf: *mut cty::c_char, + buf_size: cty::c_int, + data_type: ImGuiDataType, + p_data: *const cty::c_void, + format: *const cty::c_char, + ) -> cty::c_int; } extern "C" { - pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF( - self_: *mut ImFontAtlas, - compressed_font_data: *const cty::c_void, - compressed_font_size: cty::c_int, - size_pixels: f32, - font_cfg: *const ImFontConfig, - glyph_ranges: *const ImWchar, - ) -> *mut ImFont; + pub fn igDataTypeApplyOp( + data_type: ImGuiDataType, + op: cty::c_int, + output: *mut cty::c_void, + arg_1: *const cty::c_void, + arg_2: *const cty::c_void, + ); } extern "C" { - pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF( - self_: *mut ImFontAtlas, - compressed_font_data_base85: *const cty::c_char, - size_pixels: f32, - font_cfg: *const ImFontConfig, - glyph_ranges: *const ImWchar, - ) -> *mut ImFont; + pub fn igDataTypeApplyFromText( + buf: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + format: *const cty::c_char, + ) -> bool; } extern "C" { - pub fn ImFontAtlas_ClearInputData(self_: *mut ImFontAtlas); + pub fn igDataTypeCompare( + data_type: ImGuiDataType, + arg_1: *const cty::c_void, + arg_2: *const cty::c_void, + ) -> cty::c_int; } extern "C" { - pub fn ImFontAtlas_ClearTexData(self_: *mut ImFontAtlas); + pub fn igDataTypeClamp( + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + ) -> bool; } extern "C" { - pub fn ImFontAtlas_ClearFonts(self_: *mut ImFontAtlas); + pub fn igInputTextEx( + label: *const cty::c_char, + hint: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: cty::c_int, + size_arg: ImVec2, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; } extern "C" { - pub fn ImFontAtlas_Clear(self_: *mut ImFontAtlas); + pub fn igTempInputText( + bb: ImRect, + id: ImGuiID, + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; } extern "C" { - pub fn ImFontAtlas_Build(self_: *mut ImFontAtlas) -> bool; + pub fn igTempInputScalar( + bb: ImRect, + id: ImGuiID, + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + format: *const cty::c_char, + p_clamp_min: *const cty::c_void, + p_clamp_max: *const cty::c_void, + ) -> bool; } extern "C" { - pub fn ImFontAtlas_GetTexDataAsAlpha8( - self_: *mut ImFontAtlas, - out_pixels: *mut *mut cty::c_uchar, - out_width: *mut cty::c_int, - out_height: *mut cty::c_int, - out_bytes_per_pixel: *mut cty::c_int, - ); + pub fn igTempInputIsActive(id: ImGuiID) -> bool; } extern "C" { - pub fn ImFontAtlas_GetTexDataAsRGBA32( - self_: *mut ImFontAtlas, - out_pixels: *mut *mut cty::c_uchar, - out_width: *mut cty::c_int, - out_height: *mut cty::c_int, - out_bytes_per_pixel: *mut cty::c_int, - ); + pub fn igGetInputTextState(id: ImGuiID) -> *mut ImGuiInputTextState; } extern "C" { - pub fn ImFontAtlas_IsBuilt(self_: *mut ImFontAtlas) -> bool; + pub fn igColorTooltip(text: *const cty::c_char, col: *const f32, flags: ImGuiColorEditFlags); } extern "C" { - pub fn ImFontAtlas_SetTexID(self_: *mut ImFontAtlas, id: ImTextureID); + pub fn igColorEditOptionsPopup(col: *const f32, flags: ImGuiColorEditFlags); } extern "C" { - pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igColorPickerOptionsPopup(ref_col: *const f32, flags: ImGuiColorEditFlags); } extern "C" { - pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igPlotEx( + plot_type: ImGuiPlotType, + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + frame_size: ImVec2, + ) -> cty::c_int; } extern "C" { - pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igShadeVertsLinearColorGradientKeepAlpha( + draw_list: *mut ImDrawList, + vert_start_idx: cty::c_int, + vert_end_idx: cty::c_int, + gradient_p0: ImVec2, + gradient_p1: ImVec2, + col0: ImU32, + col1: ImU32, + ); } extern "C" { - pub fn ImFontAtlas_GetGlyphRangesJapanese(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igShadeVertsLinearUV( + draw_list: *mut ImDrawList, + vert_start_idx: cty::c_int, + vert_end_idx: cty::c_int, + a: ImVec2, + b: ImVec2, + uv_a: ImVec2, + uv_b: ImVec2, + clamp: bool, + ); } extern "C" { - pub fn ImFontAtlas_GetGlyphRangesChineseFull(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igGcCompactTransientMiscBuffers(); } extern "C" { - pub fn ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon( - self_: *mut ImFontAtlas, - ) -> *const ImWchar; + pub fn igGcCompactTransientWindowBuffers(window: *mut ImGuiWindow); } extern "C" { - pub fn ImFontAtlas_GetGlyphRangesCyrillic(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igGcAwakeTransientWindowBuffers(window: *mut ImGuiWindow); } extern "C" { - pub fn ImFontAtlas_GetGlyphRangesThai(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igDebugLog(fmt: *const cty::c_char, ...); } extern "C" { - pub fn ImFontAtlas_GetGlyphRangesVietnamese(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igErrorCheckEndFrameRecover( + log_callback: ImGuiErrorLogCallback, + user_data: *mut cty::c_void, + ); } extern "C" { - pub fn ImFontAtlas_AddCustomRectRegular( - self_: *mut ImFontAtlas, - width: cty::c_int, - height: cty::c_int, - ) -> cty::c_int; + pub fn igErrorCheckEndWindowRecover( + log_callback: ImGuiErrorLogCallback, + user_data: *mut cty::c_void, + ); } extern "C" { - pub fn ImFontAtlas_AddCustomRectFontGlyph( - self_: *mut ImFontAtlas, - font: *mut ImFont, - id: ImWchar, - width: cty::c_int, - height: cty::c_int, - advance_x: f32, - offset: ImVec2, - ) -> cty::c_int; + pub fn igErrorCheckUsingSetCursorPosToExtendParentBoundaries(); } extern "C" { - pub fn ImFontAtlas_GetCustomRectByIndex( - self_: *mut ImFontAtlas, - index: cty::c_int, - ) -> *mut ImFontAtlasCustomRect; + pub fn igDebugLocateItem(target_id: ImGuiID); } extern "C" { - pub fn ImFontAtlas_CalcCustomRectUV( - self_: *mut ImFontAtlas, - rect: *const ImFontAtlasCustomRect, - out_uv_min: *mut ImVec2, - out_uv_max: *mut ImVec2, - ); + pub fn igDebugLocateItemOnHover(target_id: ImGuiID); } extern "C" { - pub fn ImFontAtlas_GetMouseCursorTexData( - self_: *mut ImFontAtlas, - cursor: ImGuiMouseCursor, - out_offset: *mut ImVec2, - out_size: *mut ImVec2, - out_uv_border: *mut ImVec2, - out_uv_fill: *mut ImVec2, - ) -> bool; + pub fn igDebugLocateItemResolveWithLastItem(); } extern "C" { - pub fn ImFont_ImFont() -> *mut ImFont; + pub fn igDebugDrawItemRect(col: ImU32); } extern "C" { - pub fn ImFont_destroy(self_: *mut ImFont); + pub fn igDebugStartItemPicker(); } extern "C" { - pub fn ImFont_FindGlyph(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; + pub fn igShowFontAtlas(atlas: *mut ImFontAtlas); } extern "C" { - pub fn ImFont_FindGlyphNoFallback(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; + pub fn igDebugHookIdInfo( + id: ImGuiID, + data_type: ImGuiDataType, + data_id: *const cty::c_void, + data_id_end: *const cty::c_void, + ); } extern "C" { - pub fn ImFont_GetCharAdvance(self_: *mut ImFont, c: ImWchar) -> f32; + pub fn igDebugNodeColumns(columns: *mut ImGuiOldColumns); } extern "C" { - pub fn ImFont_IsLoaded(self_: *mut ImFont) -> bool; + pub fn igDebugNodeDockNode(node: *mut ImGuiDockNode, label: *const cty::c_char); } extern "C" { - pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const cty::c_char; + pub fn igDebugNodeDrawList( + window: *mut ImGuiWindow, + viewport: *mut ImGuiViewportP, + draw_list: *const ImDrawList, + label: *const cty::c_char, + ); } extern "C" { - pub fn ImFont_CalcTextSizeA( - pOut: *mut ImVec2, - self_: *mut ImFont, - size: f32, - max_width: f32, - wrap_width: f32, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, - remaining: *mut *const cty::c_char, + pub fn igDebugNodeDrawCmdShowMeshAndBoundingBox( + out_draw_list: *mut ImDrawList, + draw_list: *const ImDrawList, + draw_cmd: *const ImDrawCmd, + show_mesh: bool, + show_aabb: bool, ); } extern "C" { - pub fn ImFont_CalcWordWrapPositionA( - self_: *mut ImFont, - scale: f32, - text: *const cty::c_char, - text_end: *const cty::c_char, - wrap_width: f32, - ) -> *const cty::c_char; + pub fn igDebugNodeFont(font: *mut ImFont); } extern "C" { - pub fn ImFont_RenderChar( - self_: *mut ImFont, - draw_list: *mut ImDrawList, - size: f32, - pos: ImVec2, - col: ImU32, - c: ImWchar, - ); + pub fn igDebugNodeFontGlyph(font: *mut ImFont, glyph: *const ImFontGlyph); } extern "C" { - pub fn ImFont_RenderText( - self_: *mut ImFont, - draw_list: *mut ImDrawList, - size: f32, - pos: ImVec2, - col: ImU32, - clip_rect: ImVec4, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, - wrap_width: f32, - cpu_fine_clip: bool, - ); + pub fn igDebugNodeStorage(storage: *mut ImGuiStorage, label: *const cty::c_char); } extern "C" { - pub fn ImFont_BuildLookupTable(self_: *mut ImFont); + pub fn igDebugNodeTabBar(tab_bar: *mut ImGuiTabBar, label: *const cty::c_char); } extern "C" { - pub fn ImFont_ClearOutputData(self_: *mut ImFont); + pub fn igDebugNodeTable(table: *mut ImGuiTable); } extern "C" { - pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: cty::c_int); + pub fn igDebugNodeTableSettings(settings: *mut ImGuiTableSettings); } extern "C" { - pub fn ImFont_AddGlyph( - self_: *mut ImFont, - src_cfg: *const ImFontConfig, - c: ImWchar, - x0: f32, - y0: f32, - x1: f32, - y1: f32, - u0: f32, - v0: f32, - u1: f32, - v1: f32, - advance_x: f32, - ); + pub fn igDebugNodeInputTextState(state: *mut ImGuiInputTextState); } extern "C" { - pub fn ImFont_AddRemapChar(self_: *mut ImFont, dst: ImWchar, src: ImWchar, overwrite_dst: bool); + pub fn igDebugNodeWindow(window: *mut ImGuiWindow, label: *const cty::c_char); } extern "C" { - pub fn ImFont_SetGlyphVisible(self_: *mut ImFont, c: ImWchar, visible: bool); + pub fn igDebugNodeWindowSettings(settings: *mut ImGuiWindowSettings); } extern "C" { - pub fn ImFont_IsGlyphRangeUnused( - self_: *mut ImFont, - c_begin: cty::c_uint, - c_last: cty::c_uint, - ) -> bool; + pub fn igDebugNodeWindowsList(windows: *mut ImVector_ImGuiWindowPtr, label: *const cty::c_char); } extern "C" { - pub fn ImGuiViewport_ImGuiViewport() -> *mut ImGuiViewport; + pub fn igDebugNodeWindowsListByBeginStackParent( + windows: *mut *mut ImGuiWindow, + windows_size: cty::c_int, + parent_in_begin_stack: *mut ImGuiWindow, + ); } extern "C" { - pub fn ImGuiViewport_destroy(self_: *mut ImGuiViewport); + pub fn igDebugNodeViewport(viewport: *mut ImGuiViewportP); } extern "C" { - pub fn ImGuiViewport_GetCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); + pub fn igDebugRenderViewportThumbnail( + draw_list: *mut ImDrawList, + viewport: *mut ImGuiViewportP, + bb: ImRect, + ); } extern "C" { - pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); + pub fn igIsKeyPressedMap(key: ImGuiKey, repeat: bool) -> bool; } extern "C" { - pub fn ImGuiPlatformIO_ImGuiPlatformIO() -> *mut ImGuiPlatformIO; + pub fn igImFontAtlasBuildInit(atlas: *mut ImFontAtlas); } extern "C" { - pub fn ImGuiPlatformIO_destroy(self_: *mut ImGuiPlatformIO); + pub fn igImFontAtlasBuildSetupFont( + atlas: *mut ImFontAtlas, + font: *mut ImFont, + font_config: *mut ImFontConfig, + ascent: f32, + descent: f32, + ); } extern "C" { - pub fn ImGuiPlatformMonitor_ImGuiPlatformMonitor() -> *mut ImGuiPlatformMonitor; + pub fn igImFontAtlasBuildPackCustomRects( + atlas: *mut ImFontAtlas, + stbrp_context_opaque: *mut cty::c_void, + ); } extern "C" { - pub fn ImGuiPlatformMonitor_destroy(self_: *mut ImGuiPlatformMonitor); + pub fn igImFontAtlasBuildFinish(atlas: *mut ImFontAtlas); } extern "C" { - pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; + pub fn igImFontAtlasBuildRender8bppRectFromString( + atlas: *mut ImFontAtlas, + x: cty::c_int, + y: cty::c_int, + w: cty::c_int, + h: cty::c_int, + in_str: *const cty::c_char, + in_marker_char: cty::c_char, + in_marker_pixel_value: cty::c_uchar, + ); } extern "C" { - pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); + pub fn igImFontAtlasBuildRender32bppRectFromString( + atlas: *mut ImFontAtlas, + x: cty::c_int, + y: cty::c_int, + w: cty::c_int, + h: cty::c_int, + in_str: *const cty::c_char, + in_marker_char: cty::c_char, + in_marker_pixel_value: cty::c_uint, + ); } extern "C" { - pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; + pub fn igImFontAtlasBuildMultiplyCalcLookupTable( + out_table: *mut cty::c_uchar, + in_multiply_factor: f32, + ); +} +extern "C" { + pub fn igImFontAtlasBuildMultiplyRectAlpha8( + table: *const cty::c_uchar, + pixels: *mut cty::c_uchar, + x: cty::c_int, + y: cty::c_int, + w: cty::c_int, + h: cty::c_int, + stride: cty::c_int, + ); } extern "C" { pub fn ImGuiFreeType_GetBuilderForFreeType() -> *const ImFontBuilderIO; diff --git a/imgui-sys/src/wasm_docking_freetype_bindings.rs b/imgui-sys/src/wasm_docking_freetype_bindings.rs index 893f4cf99..9d6e9eec3 100644 --- a/imgui-sys/src/wasm_docking_freetype_bindings.rs +++ b/imgui-sys/src/wasm_docking_freetype_bindings.rs @@ -82,21 +82,93 @@ where } } } +pub type __off_t = cty::c_long; +pub type __off64_t = cty::c_long; +pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImDrawListSharedData { +pub struct _IO_marker { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImFontBuilderIO { +pub struct _IO_codecvt { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ImGuiContext { +pub struct _IO_wide_data { + _unused: [u8; 0], +} +pub type _IO_lock_t = cty::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct _IO_FILE { + pub _flags: cty::c_int, + pub _IO_read_ptr: *mut cty::c_char, + pub _IO_read_end: *mut cty::c_char, + pub _IO_read_base: *mut cty::c_char, + pub _IO_write_base: *mut cty::c_char, + pub _IO_write_ptr: *mut cty::c_char, + pub _IO_write_end: *mut cty::c_char, + pub _IO_buf_base: *mut cty::c_char, + pub _IO_buf_end: *mut cty::c_char, + pub _IO_save_base: *mut cty::c_char, + pub _IO_backup_base: *mut cty::c_char, + pub _IO_save_end: *mut cty::c_char, + pub _markers: *mut _IO_marker, + pub _chain: *mut _IO_FILE, + pub _fileno: cty::c_int, + pub _flags2: cty::c_int, + pub _old_offset: __off_t, + pub _cur_column: cty::c_ushort, + pub _vtable_offset: cty::c_schar, + pub _shortbuf: [cty::c_char; 1usize], + pub _lock: *mut _IO_lock_t, + pub _offset: __off64_t, + pub _codecvt: *mut _IO_codecvt, + pub _wide_data: *mut _IO_wide_data, + pub _freeres_list: *mut _IO_FILE, + pub _freeres_buf: *mut cty::c_void, + pub __pad5: usize, + pub _mode: cty::c_int, + pub _unused2: [cty::c_char; 20usize], +} +impl Default for _IO_FILE { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImGuiDockRequest { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImGuiDockNodeSettings { _unused: [u8; 0], } +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_const_charPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *const cty::c_char, +} +impl Default for ImVector_const_charPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} pub type ImGuiCol = cty::c_int; pub type ImGuiCond = cty::c_int; pub type ImGuiDataType = cty::c_int; @@ -138,7 +210,9 @@ pub type ImS8 = cty::c_schar; pub type ImU8 = cty::c_uchar; pub type ImS16 = cty::c_short; pub type ImU16 = cty::c_ushort; +pub type ImS32 = cty::c_int; pub type ImU32 = cty::c_uint; +pub type ImS64 = cty::c_longlong; pub type ImU64 = cty::c_ulonglong; pub type ImWchar16 = cty::c_ushort; pub type ImWchar32 = cty::c_uint; @@ -2005,3594 +2079,10010 @@ pub struct ImGuiPlatformImeData { pub InputPos: ImVec2, pub InputLineHeight: f32, } -pub const ImGuiFreeTypeBuilderFlags_NoHinting: ImGuiFreeTypeBuilderFlags = 1; -pub const ImGuiFreeTypeBuilderFlags_NoAutoHint: ImGuiFreeTypeBuilderFlags = 2; -pub const ImGuiFreeTypeBuilderFlags_ForceAutoHint: ImGuiFreeTypeBuilderFlags = 4; -pub const ImGuiFreeTypeBuilderFlags_LightHinting: ImGuiFreeTypeBuilderFlags = 8; -pub const ImGuiFreeTypeBuilderFlags_MonoHinting: ImGuiFreeTypeBuilderFlags = 16; -pub const ImGuiFreeTypeBuilderFlags_Bold: ImGuiFreeTypeBuilderFlags = 32; -pub const ImGuiFreeTypeBuilderFlags_Oblique: ImGuiFreeTypeBuilderFlags = 64; -pub const ImGuiFreeTypeBuilderFlags_Monochrome: ImGuiFreeTypeBuilderFlags = 128; -pub const ImGuiFreeTypeBuilderFlags_LoadColor: ImGuiFreeTypeBuilderFlags = 256; -pub const ImGuiFreeTypeBuilderFlags_Bitmap: ImGuiFreeTypeBuilderFlags = 512; -pub type ImGuiFreeTypeBuilderFlags = cty::c_uint; -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; -} -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImVec2_destroy(self_: *mut ImVec2); +pub type ImGuiDataAuthority = cty::c_int; +pub type ImGuiLayoutType = cty::c_int; +pub type ImGuiActivateFlags = cty::c_int; +pub type ImGuiDebugLogFlags = cty::c_int; +pub type ImGuiInputFlags = cty::c_int; +pub type ImGuiItemFlags = cty::c_int; +pub type ImGuiItemStatusFlags = cty::c_int; +pub type ImGuiOldColumnFlags = cty::c_int; +pub type ImGuiNavHighlightFlags = cty::c_int; +pub type ImGuiNavMoveFlags = cty::c_int; +pub type ImGuiNextItemDataFlags = cty::c_int; +pub type ImGuiNextWindowDataFlags = cty::c_int; +pub type ImGuiScrollFlags = cty::c_int; +pub type ImGuiSeparatorFlags = cty::c_int; +pub type ImGuiTextFlags = cty::c_int; +pub type ImGuiTooltipFlags = cty::c_int; +pub type ImGuiErrorLogCallback = ::core::option::Option< + unsafe extern "C" fn(user_data: *mut cty::c_void, fmt: *const cty::c_char, ...), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct StbUndoRecord { + pub where_: cty::c_int, + pub insert_length: cty::c_int, + pub delete_length: cty::c_int, + pub char_storage: cty::c_int, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct StbUndoState { + pub undo_rec: [StbUndoRecord; 99usize], + pub undo_char: [ImWchar; 999usize], + pub undo_point: cty::c_short, + pub redo_point: cty::c_short, + pub undo_char_point: cty::c_int, + pub redo_char_point: cty::c_int, +} +impl Default for StbUndoState { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct STB_TexteditState { + pub cursor: cty::c_int, + pub select_start: cty::c_int, + pub select_end: cty::c_int, + pub insert_mode: cty::c_uchar, + pub row_count_per_page: cty::c_int, + pub cursor_at_end_of_line: cty::c_uchar, + pub initialized: cty::c_uchar, + pub has_preferred_x: cty::c_uchar, + pub single_line: cty::c_uchar, + pub padding1: cty::c_uchar, + pub padding2: cty::c_uchar, + pub padding3: cty::c_uchar, + pub preferred_x: f32, + pub undostate: StbUndoState, +} +impl Default for STB_TexteditState { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImVec4_destroy(self_: *mut ImVec4); +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct StbTexteditRow { + pub x0: f32, + pub x1: f32, + pub baseline_y_delta: f32, + pub ymin: f32, + pub ymax: f32, + pub num_chars: cty::c_int, +} +pub type ImFileHandle = *mut FILE; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImVec1 { + pub x: f32, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVec2ih { + pub x: cty::c_short, + pub y: cty::c_short, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImRect { + pub Min: ImVec2, + pub Max: ImVec2, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igDestroyContext(ctx: *mut ImGuiContext); +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImBitVector { + pub Storage: ImVector_ImU32, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igGetCurrentContext() -> *mut ImGuiContext; +impl Default for ImBitVector { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igSetCurrentContext(ctx: *mut ImGuiContext); +pub type ImPoolIdx = cty::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_int { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_int, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igGetIO() -> *mut ImGuiIO; +impl Default for ImVector_int { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igGetStyle() -> *mut ImGuiStyle; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTextIndex { + pub LineOffsets: ImVector_int, + pub EndOffset: cty::c_int, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igNewFrame(); +impl Default for ImGuiTextIndex { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igEndFrame(); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImDrawListSharedData { + pub TexUvWhitePixel: ImVec2, + pub Font: *mut ImFont, + pub FontSize: f32, + pub CurveTessellationTol: f32, + pub CircleSegmentMaxError: f32, + pub ClipRectFullscreen: ImVec4, + pub InitialFlags: ImDrawListFlags, + pub TempBuffer: ImVector_ImVec2, + pub ArcFastVtx: [ImVec2; 48usize], + pub ArcFastRadiusCutoff: f32, + pub CircleSegmentCounts: [ImU8; 64usize], + pub TexUvLines: *const ImVec4, +} +impl Default for ImDrawListSharedData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igRender(); +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImDrawListPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImDrawList, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igGetDrawData() -> *mut ImDrawData; +impl Default for ImVector_ImDrawListPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igShowDemoWindow(p_open: *mut bool); +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImDrawDataBuilder { + pub Layers: [ImVector_ImDrawListPtr; 2usize], } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igShowMetricsWindow(p_open: *mut bool); +impl Default for ImDrawDataBuilder { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igShowDebugLogWindow(p_open: *mut bool); +pub const ImGuiItemFlags_None: ImGuiItemFlags_ = 0; +pub const ImGuiItemFlags_NoTabStop: ImGuiItemFlags_ = 1; +pub const ImGuiItemFlags_ButtonRepeat: ImGuiItemFlags_ = 2; +pub const ImGuiItemFlags_Disabled: ImGuiItemFlags_ = 4; +pub const ImGuiItemFlags_NoNav: ImGuiItemFlags_ = 8; +pub const ImGuiItemFlags_NoNavDefaultFocus: ImGuiItemFlags_ = 16; +pub const ImGuiItemFlags_SelectableDontClosePopup: ImGuiItemFlags_ = 32; +pub const ImGuiItemFlags_MixedValue: ImGuiItemFlags_ = 64; +pub const ImGuiItemFlags_ReadOnly: ImGuiItemFlags_ = 128; +pub const ImGuiItemFlags_NoWindowHoverableCheck: ImGuiItemFlags_ = 256; +pub const ImGuiItemFlags_Inputable: ImGuiItemFlags_ = 1024; +pub type ImGuiItemFlags_ = cty::c_uint; +pub const ImGuiItemStatusFlags_None: ImGuiItemStatusFlags_ = 0; +pub const ImGuiItemStatusFlags_HoveredRect: ImGuiItemStatusFlags_ = 1; +pub const ImGuiItemStatusFlags_HasDisplayRect: ImGuiItemStatusFlags_ = 2; +pub const ImGuiItemStatusFlags_Edited: ImGuiItemStatusFlags_ = 4; +pub const ImGuiItemStatusFlags_ToggledSelection: ImGuiItemStatusFlags_ = 8; +pub const ImGuiItemStatusFlags_ToggledOpen: ImGuiItemStatusFlags_ = 16; +pub const ImGuiItemStatusFlags_HasDeactivated: ImGuiItemStatusFlags_ = 32; +pub const ImGuiItemStatusFlags_Deactivated: ImGuiItemStatusFlags_ = 64; +pub const ImGuiItemStatusFlags_HoveredWindow: ImGuiItemStatusFlags_ = 128; +pub const ImGuiItemStatusFlags_FocusedByTabbing: ImGuiItemStatusFlags_ = 256; +pub const ImGuiItemStatusFlags_Visible: ImGuiItemStatusFlags_ = 512; +pub type ImGuiItemStatusFlags_ = cty::c_uint; +pub const ImGuiInputTextFlags_Multiline: ImGuiInputTextFlagsPrivate_ = 67108864; +pub const ImGuiInputTextFlags_NoMarkEdited: ImGuiInputTextFlagsPrivate_ = 134217728; +pub const ImGuiInputTextFlags_MergedItem: ImGuiInputTextFlagsPrivate_ = 268435456; +pub type ImGuiInputTextFlagsPrivate_ = cty::c_uint; +pub const ImGuiButtonFlags_PressedOnClick: ImGuiButtonFlagsPrivate_ = 16; +pub const ImGuiButtonFlags_PressedOnClickRelease: ImGuiButtonFlagsPrivate_ = 32; +pub const ImGuiButtonFlags_PressedOnClickReleaseAnywhere: ImGuiButtonFlagsPrivate_ = 64; +pub const ImGuiButtonFlags_PressedOnRelease: ImGuiButtonFlagsPrivate_ = 128; +pub const ImGuiButtonFlags_PressedOnDoubleClick: ImGuiButtonFlagsPrivate_ = 256; +pub const ImGuiButtonFlags_PressedOnDragDropHold: ImGuiButtonFlagsPrivate_ = 512; +pub const ImGuiButtonFlags_Repeat: ImGuiButtonFlagsPrivate_ = 1024; +pub const ImGuiButtonFlags_FlattenChildren: ImGuiButtonFlagsPrivate_ = 2048; +pub const ImGuiButtonFlags_AllowItemOverlap: ImGuiButtonFlagsPrivate_ = 4096; +pub const ImGuiButtonFlags_DontClosePopups: ImGuiButtonFlagsPrivate_ = 8192; +pub const ImGuiButtonFlags_AlignTextBaseLine: ImGuiButtonFlagsPrivate_ = 32768; +pub const ImGuiButtonFlags_NoKeyModifiers: ImGuiButtonFlagsPrivate_ = 65536; +pub const ImGuiButtonFlags_NoHoldingActiveId: ImGuiButtonFlagsPrivate_ = 131072; +pub const ImGuiButtonFlags_NoNavFocus: ImGuiButtonFlagsPrivate_ = 262144; +pub const ImGuiButtonFlags_NoHoveredOnFocus: ImGuiButtonFlagsPrivate_ = 524288; +pub const ImGuiButtonFlags_NoSetKeyOwner: ImGuiButtonFlagsPrivate_ = 1048576; +pub const ImGuiButtonFlags_NoTestKeyOwner: ImGuiButtonFlagsPrivate_ = 2097152; +pub const ImGuiButtonFlags_PressedOnMask_: ImGuiButtonFlagsPrivate_ = 1008; +pub const ImGuiButtonFlags_PressedOnDefault_: ImGuiButtonFlagsPrivate_ = 32; +pub type ImGuiButtonFlagsPrivate_ = cty::c_uint; +pub const ImGuiComboFlags_CustomPreview: ImGuiComboFlagsPrivate_ = 1048576; +pub type ImGuiComboFlagsPrivate_ = cty::c_uint; +pub const ImGuiSliderFlags_Vertical: ImGuiSliderFlagsPrivate_ = 1048576; +pub const ImGuiSliderFlags_ReadOnly: ImGuiSliderFlagsPrivate_ = 2097152; +pub type ImGuiSliderFlagsPrivate_ = cty::c_uint; +pub const ImGuiSelectableFlags_NoHoldingActiveID: ImGuiSelectableFlagsPrivate_ = 1048576; +pub const ImGuiSelectableFlags_SelectOnNav: ImGuiSelectableFlagsPrivate_ = 2097152; +pub const ImGuiSelectableFlags_SelectOnClick: ImGuiSelectableFlagsPrivate_ = 4194304; +pub const ImGuiSelectableFlags_SelectOnRelease: ImGuiSelectableFlagsPrivate_ = 8388608; +pub const ImGuiSelectableFlags_SpanAvailWidth: ImGuiSelectableFlagsPrivate_ = 16777216; +pub const ImGuiSelectableFlags_DrawHoveredWhenHeld: ImGuiSelectableFlagsPrivate_ = 33554432; +pub const ImGuiSelectableFlags_SetNavIdOnHover: ImGuiSelectableFlagsPrivate_ = 67108864; +pub const ImGuiSelectableFlags_NoPadWithHalfSpacing: ImGuiSelectableFlagsPrivate_ = 134217728; +pub const ImGuiSelectableFlags_NoSetKeyOwner: ImGuiSelectableFlagsPrivate_ = 268435456; +pub type ImGuiSelectableFlagsPrivate_ = cty::c_uint; +pub const ImGuiTreeNodeFlags_ClipLabelForTrailingButton: ImGuiTreeNodeFlagsPrivate_ = 1048576; +pub type ImGuiTreeNodeFlagsPrivate_ = cty::c_uint; +pub const ImGuiSeparatorFlags_None: ImGuiSeparatorFlags_ = 0; +pub const ImGuiSeparatorFlags_Horizontal: ImGuiSeparatorFlags_ = 1; +pub const ImGuiSeparatorFlags_Vertical: ImGuiSeparatorFlags_ = 2; +pub const ImGuiSeparatorFlags_SpanAllColumns: ImGuiSeparatorFlags_ = 4; +pub type ImGuiSeparatorFlags_ = cty::c_uint; +pub const ImGuiTextFlags_None: ImGuiTextFlags_ = 0; +pub const ImGuiTextFlags_NoWidthForLargeClippedText: ImGuiTextFlags_ = 1; +pub type ImGuiTextFlags_ = cty::c_uint; +pub const ImGuiTooltipFlags_None: ImGuiTooltipFlags_ = 0; +pub const ImGuiTooltipFlags_OverridePreviousTooltip: ImGuiTooltipFlags_ = 1; +pub type ImGuiTooltipFlags_ = cty::c_uint; +pub const ImGuiLayoutType_Horizontal: ImGuiLayoutType_ = 0; +pub const ImGuiLayoutType_Vertical: ImGuiLayoutType_ = 1; +pub type ImGuiLayoutType_ = cty::c_uint; +pub const ImGuiLogType_None: ImGuiLogType = 0; +pub const ImGuiLogType_TTY: ImGuiLogType = 1; +pub const ImGuiLogType_File: ImGuiLogType = 2; +pub const ImGuiLogType_Buffer: ImGuiLogType = 3; +pub const ImGuiLogType_Clipboard: ImGuiLogType = 4; +pub type ImGuiLogType = cty::c_uint; +pub const ImGuiAxis_None: ImGuiAxis = -1; +pub const ImGuiAxis_X: ImGuiAxis = 0; +pub const ImGuiAxis_Y: ImGuiAxis = 1; +pub type ImGuiAxis = cty::c_int; +pub const ImGuiPlotType_Lines: ImGuiPlotType = 0; +pub const ImGuiPlotType_Histogram: ImGuiPlotType = 1; +pub type ImGuiPlotType = cty::c_uint; +pub const ImGuiPopupPositionPolicy_Default: ImGuiPopupPositionPolicy = 0; +pub const ImGuiPopupPositionPolicy_ComboBox: ImGuiPopupPositionPolicy = 1; +pub const ImGuiPopupPositionPolicy_Tooltip: ImGuiPopupPositionPolicy = 2; +pub type ImGuiPopupPositionPolicy = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiDataTypeTempStorage { + pub Data: [ImU8; 8usize], } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igShowStackToolWindow(p_open: *mut bool); +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiDataTypeInfo { + pub Size: usize, + pub Name: *const cty::c_char, + pub PrintFmt: *const cty::c_char, + pub ScanFmt: *const cty::c_char, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igShowAboutWindow(p_open: *mut bool); +impl Default for ImGuiDataTypeInfo { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igShowStyleEditor(ref_: *mut ImGuiStyle); +pub const ImGuiDataType_String: ImGuiDataTypePrivate_ = 11; +pub const ImGuiDataType_Pointer: ImGuiDataTypePrivate_ = 12; +pub const ImGuiDataType_ID: ImGuiDataTypePrivate_ = 13; +pub type ImGuiDataTypePrivate_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiColorMod { + pub Col: ImGuiCol, + pub BackupValue: ImVec4, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igShowStyleSelector(label: *const cty::c_char) -> bool; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiStyleMod { + pub VarIdx: ImGuiStyleVar, + pub __bindgen_anon_1: ImGuiStyleMod__bindgen_ty_1, } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igShowFontSelector(label: *const cty::c_char); +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiStyleMod__bindgen_ty_1 { + pub BackupInt: [cty::c_int; 2usize], + pub BackupFloat: [f32; 2usize], } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igShowUserGuide(); +impl Default for ImGuiStyleMod__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igGetVersion() -> *const cty::c_char; +impl ::core::fmt::Debug for ImGuiStyleMod__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiStyleMod__bindgen_ty_1 {{ union }}") + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igStyleColorsDark(dst: *mut ImGuiStyle); +impl Default for ImGuiStyleMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -#[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igStyleColorsLight(dst: *mut ImGuiStyle); +impl ::core::fmt::Debug for ImGuiStyleMod { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!( + f, + "ImGuiStyleMod {{ VarIdx: {:?}, __bindgen_anon_1: {:?} }}", + self.VarIdx, self.__bindgen_anon_1 + ) + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiComboPreviewData { + pub PreviewRect: ImRect, + pub BackupCursorPos: ImVec2, + pub BackupCursorMaxPos: ImVec2, + pub BackupCursorPosPrevLine: ImVec2, + pub BackupPrevLineTextBaseOffset: f32, + pub BackupLayout: ImGuiLayoutType, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiGroupData { + pub WindowID: ImGuiID, + pub BackupCursorPos: ImVec2, + pub BackupCursorMaxPos: ImVec2, + pub BackupIndent: ImVec1, + pub BackupGroupOffset: ImVec1, + pub BackupCurrLineSize: ImVec2, + pub BackupCurrLineTextBaseOffset: f32, + pub BackupActiveIdIsAlive: ImGuiID, + pub BackupActiveIdPreviousFrameIsAlive: bool, + pub BackupHoveredIdIsAlive: bool, + pub EmitItem: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiMenuColumns { + pub TotalWidth: ImU32, + pub NextTotalWidth: ImU32, + pub Spacing: ImU16, + pub OffsetIcon: ImU16, + pub OffsetLabel: ImU16, + pub OffsetShortcut: ImU16, + pub OffsetMark: ImU16, + pub Widths: [ImU16; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiInputTextState { + pub ID: ImGuiID, + pub CurLenW: cty::c_int, + pub CurLenA: cty::c_int, + pub TextW: ImVector_ImWchar, + pub TextA: ImVector_char, + pub InitialTextA: ImVector_char, + pub TextAIsValid: bool, + pub BufCapacityA: cty::c_int, + pub ScrollX: f32, + pub Stb: STB_TexteditState, + pub CursorAnim: f32, + pub CursorFollow: bool, + pub SelectedAllMouseLock: bool, + pub Edited: bool, + pub Flags: ImGuiInputTextFlags, +} +impl Default for ImGuiInputTextState { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiPopupData { + pub PopupId: ImGuiID, + pub Window: *mut ImGuiWindow, + pub BackupNavWindow: *mut ImGuiWindow, + pub ParentNavLayer: cty::c_int, + pub OpenFrameCount: cty::c_int, + pub OpenParentId: ImGuiID, + pub OpenPopupPos: ImVec2, + pub OpenMousePos: ImVec2, +} +impl Default for ImGuiPopupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiNextWindowDataFlags_None: ImGuiNextWindowDataFlags_ = 0; +pub const ImGuiNextWindowDataFlags_HasPos: ImGuiNextWindowDataFlags_ = 1; +pub const ImGuiNextWindowDataFlags_HasSize: ImGuiNextWindowDataFlags_ = 2; +pub const ImGuiNextWindowDataFlags_HasContentSize: ImGuiNextWindowDataFlags_ = 4; +pub const ImGuiNextWindowDataFlags_HasCollapsed: ImGuiNextWindowDataFlags_ = 8; +pub const ImGuiNextWindowDataFlags_HasSizeConstraint: ImGuiNextWindowDataFlags_ = 16; +pub const ImGuiNextWindowDataFlags_HasFocus: ImGuiNextWindowDataFlags_ = 32; +pub const ImGuiNextWindowDataFlags_HasBgAlpha: ImGuiNextWindowDataFlags_ = 64; +pub const ImGuiNextWindowDataFlags_HasScroll: ImGuiNextWindowDataFlags_ = 128; +pub const ImGuiNextWindowDataFlags_HasViewport: ImGuiNextWindowDataFlags_ = 256; +pub const ImGuiNextWindowDataFlags_HasDock: ImGuiNextWindowDataFlags_ = 512; +pub const ImGuiNextWindowDataFlags_HasWindowClass: ImGuiNextWindowDataFlags_ = 1024; +pub type ImGuiNextWindowDataFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiNextWindowData { + pub Flags: ImGuiNextWindowDataFlags, + pub PosCond: ImGuiCond, + pub SizeCond: ImGuiCond, + pub CollapsedCond: ImGuiCond, + pub DockCond: ImGuiCond, + pub PosVal: ImVec2, + pub PosPivotVal: ImVec2, + pub SizeVal: ImVec2, + pub ContentSizeVal: ImVec2, + pub ScrollVal: ImVec2, + pub PosUndock: bool, + pub CollapsedVal: bool, + pub SizeConstraintRect: ImRect, + pub SizeCallback: ImGuiSizeCallback, + pub SizeCallbackUserData: *mut cty::c_void, + pub BgAlphaVal: f32, + pub ViewportId: ImGuiID, + pub DockId: ImGuiID, + pub WindowClass: ImGuiWindowClass, + pub MenuBarOffsetMinVal: ImVec2, +} +impl Default for ImGuiNextWindowData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiNextItemDataFlags_None: ImGuiNextItemDataFlags_ = 0; +pub const ImGuiNextItemDataFlags_HasWidth: ImGuiNextItemDataFlags_ = 1; +pub const ImGuiNextItemDataFlags_HasOpen: ImGuiNextItemDataFlags_ = 2; +pub type ImGuiNextItemDataFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiNextItemData { + pub Flags: ImGuiNextItemDataFlags, + pub Width: f32, + pub FocusScopeId: ImGuiID, + pub OpenCond: ImGuiCond, + pub OpenVal: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiLastItemData { + pub ID: ImGuiID, + pub InFlags: ImGuiItemFlags, + pub StatusFlags: ImGuiItemStatusFlags, + pub Rect: ImRect, + pub NavRect: ImRect, + pub DisplayRect: ImRect, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStackSizes { + pub SizeOfIDStack: cty::c_short, + pub SizeOfColorStack: cty::c_short, + pub SizeOfStyleVarStack: cty::c_short, + pub SizeOfFontStack: cty::c_short, + pub SizeOfFocusScopeStack: cty::c_short, + pub SizeOfGroupStack: cty::c_short, + pub SizeOfItemFlagsStack: cty::c_short, + pub SizeOfBeginPopupStack: cty::c_short, + pub SizeOfDisabledStack: cty::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiWindowStackData { + pub Window: *mut ImGuiWindow, + pub ParentLastItemDataBackup: ImGuiLastItemData, + pub StackSizesOnBegin: ImGuiStackSizes, +} +impl Default for ImGuiWindowStackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiShrinkWidthItem { + pub Index: cty::c_int, + pub Width: f32, + pub InitialWidth: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiPtrOrIndex { + pub Ptr: *mut cty::c_void, + pub Index: cty::c_int, +} +impl Default for ImGuiPtrOrIndex { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiInputEventType_None: ImGuiInputEventType = 0; +pub const ImGuiInputEventType_MousePos: ImGuiInputEventType = 1; +pub const ImGuiInputEventType_MouseWheel: ImGuiInputEventType = 2; +pub const ImGuiInputEventType_MouseButton: ImGuiInputEventType = 3; +pub const ImGuiInputEventType_MouseViewport: ImGuiInputEventType = 4; +pub const ImGuiInputEventType_Key: ImGuiInputEventType = 5; +pub const ImGuiInputEventType_Text: ImGuiInputEventType = 6; +pub const ImGuiInputEventType_Focus: ImGuiInputEventType = 7; +pub const ImGuiInputEventType_COUNT: ImGuiInputEventType = 8; +pub type ImGuiInputEventType = cty::c_uint; +pub const ImGuiInputSource_None: ImGuiInputSource = 0; +pub const ImGuiInputSource_Mouse: ImGuiInputSource = 1; +pub const ImGuiInputSource_Keyboard: ImGuiInputSource = 2; +pub const ImGuiInputSource_Gamepad: ImGuiInputSource = 3; +pub const ImGuiInputSource_Clipboard: ImGuiInputSource = 4; +pub const ImGuiInputSource_Nav: ImGuiInputSource = 5; +pub const ImGuiInputSource_COUNT: ImGuiInputSource = 6; +pub type ImGuiInputSource = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventMousePos { + pub PosX: f32, + pub PosY: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventMouseWheel { + pub WheelX: f32, + pub WheelY: f32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventMouseButton { + pub Button: cty::c_int, + pub Down: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventMouseViewport { + pub HoveredViewportID: ImGuiID, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiInputEventKey { + pub Key: ImGuiKey, + pub Down: bool, + pub AnalogValue: f32, +} +impl Default for ImGuiInputEventKey { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventText { + pub Char: cty::c_uint, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiInputEventAppFocused { + pub Focused: bool, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ImGuiInputEvent { + pub Type: ImGuiInputEventType, + pub Source: ImGuiInputSource, + pub __bindgen_anon_1: ImGuiInputEvent__bindgen_ty_1, + pub AddedByTestEngine: bool, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ImGuiInputEvent__bindgen_ty_1 { + pub MousePos: ImGuiInputEventMousePos, + pub MouseWheel: ImGuiInputEventMouseWheel, + pub MouseButton: ImGuiInputEventMouseButton, + pub MouseViewport: ImGuiInputEventMouseViewport, + pub Key: ImGuiInputEventKey, + pub Text: ImGuiInputEventText, + pub AppFocused: ImGuiInputEventAppFocused, +} +impl Default for ImGuiInputEvent__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiInputEvent__bindgen_ty_1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write!(f, "ImGuiInputEvent__bindgen_ty_1 {{ union }}") + } +} +impl Default for ImGuiInputEvent { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ::core::fmt::Debug for ImGuiInputEvent { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + write ! (f , "ImGuiInputEvent {{ Type: {:?}, Source: {:?}, __bindgen_anon_1: {:?}, AddedByTestEngine: {:?} }}" , self . Type , self . Source , self . __bindgen_anon_1 , self . AddedByTestEngine) + } +} +pub type ImGuiKeyRoutingIndex = ImS16; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyRoutingData { + pub NextEntryIndex: ImGuiKeyRoutingIndex, + pub Mods: ImU16, + pub RoutingNextScore: ImU8, + pub RoutingCurr: ImGuiID, + pub RoutingNext: ImGuiID, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiKeyRoutingData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiKeyRoutingData, +} +impl Default for ImVector_ImGuiKeyRoutingData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyRoutingTable { + pub Index: [ImGuiKeyRoutingIndex; 140usize], + pub Entries: ImVector_ImGuiKeyRoutingData, + pub EntriesNext: ImVector_ImGuiKeyRoutingData, +} +impl Default for ImGuiKeyRoutingTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiKeyOwnerData { + pub OwnerCurr: ImGuiID, + pub OwnerNext: ImGuiID, + pub LockThisFrame: bool, + pub LockUntilRelease: bool, +} +pub const ImGuiInputFlags_None: ImGuiInputFlags_ = 0; +pub const ImGuiInputFlags_Repeat: ImGuiInputFlags_ = 1; +pub const ImGuiInputFlags_RepeatRateDefault: ImGuiInputFlags_ = 2; +pub const ImGuiInputFlags_RepeatRateNavMove: ImGuiInputFlags_ = 4; +pub const ImGuiInputFlags_RepeatRateNavTweak: ImGuiInputFlags_ = 8; +pub const ImGuiInputFlags_RepeatRateMask_: ImGuiInputFlags_ = 14; +pub const ImGuiInputFlags_CondHovered: ImGuiInputFlags_ = 16; +pub const ImGuiInputFlags_CondActive: ImGuiInputFlags_ = 32; +pub const ImGuiInputFlags_CondDefault_: ImGuiInputFlags_ = 48; +pub const ImGuiInputFlags_CondMask_: ImGuiInputFlags_ = 48; +pub const ImGuiInputFlags_LockThisFrame: ImGuiInputFlags_ = 64; +pub const ImGuiInputFlags_LockUntilRelease: ImGuiInputFlags_ = 128; +pub const ImGuiInputFlags_RouteFocused: ImGuiInputFlags_ = 256; +pub const ImGuiInputFlags_RouteGlobalLow: ImGuiInputFlags_ = 512; +pub const ImGuiInputFlags_RouteGlobal: ImGuiInputFlags_ = 1024; +pub const ImGuiInputFlags_RouteGlobalHigh: ImGuiInputFlags_ = 2048; +pub const ImGuiInputFlags_RouteMask_: ImGuiInputFlags_ = 3840; +pub const ImGuiInputFlags_RouteAlways: ImGuiInputFlags_ = 4096; +pub const ImGuiInputFlags_RouteUnlessBgFocused: ImGuiInputFlags_ = 8192; +pub const ImGuiInputFlags_RouteExtraMask_: ImGuiInputFlags_ = 12288; +pub const ImGuiInputFlags_SupportedByIsKeyPressed: ImGuiInputFlags_ = 15; +pub const ImGuiInputFlags_SupportedByShortcut: ImGuiInputFlags_ = 16143; +pub const ImGuiInputFlags_SupportedBySetKeyOwner: ImGuiInputFlags_ = 192; +pub const ImGuiInputFlags_SupportedBySetItemKeyOwner: ImGuiInputFlags_ = 240; +pub type ImGuiInputFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiListClipperRange { + pub Min: cty::c_int, + pub Max: cty::c_int, + pub PosToIndexConvert: bool, + pub PosToIndexOffsetMin: ImS8, + pub PosToIndexOffsetMax: ImS8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiListClipperRange { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiListClipperRange, +} +impl Default for ImVector_ImGuiListClipperRange { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiListClipperData { + pub ListClipper: *mut ImGuiListClipper, + pub LossynessOffset: f32, + pub StepNo: cty::c_int, + pub ItemsFrozen: cty::c_int, + pub Ranges: ImVector_ImGuiListClipperRange, +} +impl Default for ImGuiListClipperData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiActivateFlags_None: ImGuiActivateFlags_ = 0; +pub const ImGuiActivateFlags_PreferInput: ImGuiActivateFlags_ = 1; +pub const ImGuiActivateFlags_PreferTweak: ImGuiActivateFlags_ = 2; +pub const ImGuiActivateFlags_TryToPreserveState: ImGuiActivateFlags_ = 4; +pub type ImGuiActivateFlags_ = cty::c_uint; +pub const ImGuiScrollFlags_None: ImGuiScrollFlags_ = 0; +pub const ImGuiScrollFlags_KeepVisibleEdgeX: ImGuiScrollFlags_ = 1; +pub const ImGuiScrollFlags_KeepVisibleEdgeY: ImGuiScrollFlags_ = 2; +pub const ImGuiScrollFlags_KeepVisibleCenterX: ImGuiScrollFlags_ = 4; +pub const ImGuiScrollFlags_KeepVisibleCenterY: ImGuiScrollFlags_ = 8; +pub const ImGuiScrollFlags_AlwaysCenterX: ImGuiScrollFlags_ = 16; +pub const ImGuiScrollFlags_AlwaysCenterY: ImGuiScrollFlags_ = 32; +pub const ImGuiScrollFlags_NoScrollParent: ImGuiScrollFlags_ = 64; +pub const ImGuiScrollFlags_MaskX_: ImGuiScrollFlags_ = 21; +pub const ImGuiScrollFlags_MaskY_: ImGuiScrollFlags_ = 42; +pub type ImGuiScrollFlags_ = cty::c_uint; +pub const ImGuiNavHighlightFlags_None: ImGuiNavHighlightFlags_ = 0; +pub const ImGuiNavHighlightFlags_TypeDefault: ImGuiNavHighlightFlags_ = 1; +pub const ImGuiNavHighlightFlags_TypeThin: ImGuiNavHighlightFlags_ = 2; +pub const ImGuiNavHighlightFlags_AlwaysDraw: ImGuiNavHighlightFlags_ = 4; +pub const ImGuiNavHighlightFlags_NoRounding: ImGuiNavHighlightFlags_ = 8; +pub type ImGuiNavHighlightFlags_ = cty::c_uint; +pub const ImGuiNavMoveFlags_None: ImGuiNavMoveFlags_ = 0; +pub const ImGuiNavMoveFlags_LoopX: ImGuiNavMoveFlags_ = 1; +pub const ImGuiNavMoveFlags_LoopY: ImGuiNavMoveFlags_ = 2; +pub const ImGuiNavMoveFlags_WrapX: ImGuiNavMoveFlags_ = 4; +pub const ImGuiNavMoveFlags_WrapY: ImGuiNavMoveFlags_ = 8; +pub const ImGuiNavMoveFlags_AllowCurrentNavId: ImGuiNavMoveFlags_ = 16; +pub const ImGuiNavMoveFlags_AlsoScoreVisibleSet: ImGuiNavMoveFlags_ = 32; +pub const ImGuiNavMoveFlags_ScrollToEdgeY: ImGuiNavMoveFlags_ = 64; +pub const ImGuiNavMoveFlags_Forwarded: ImGuiNavMoveFlags_ = 128; +pub const ImGuiNavMoveFlags_DebugNoResult: ImGuiNavMoveFlags_ = 256; +pub const ImGuiNavMoveFlags_FocusApi: ImGuiNavMoveFlags_ = 512; +pub const ImGuiNavMoveFlags_Tabbing: ImGuiNavMoveFlags_ = 1024; +pub const ImGuiNavMoveFlags_Activate: ImGuiNavMoveFlags_ = 2048; +pub const ImGuiNavMoveFlags_DontSetNavHighlight: ImGuiNavMoveFlags_ = 4096; +pub type ImGuiNavMoveFlags_ = cty::c_uint; +pub const ImGuiNavLayer_Main: ImGuiNavLayer = 0; +pub const ImGuiNavLayer_Menu: ImGuiNavLayer = 1; +pub const ImGuiNavLayer_COUNT: ImGuiNavLayer = 2; +pub type ImGuiNavLayer = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiNavItemData { + pub Window: *mut ImGuiWindow, + pub ID: ImGuiID, + pub FocusScopeId: ImGuiID, + pub RectRel: ImRect, + pub InFlags: ImGuiItemFlags, + pub DistBox: f32, + pub DistCenter: f32, + pub DistAxial: f32, +} +impl Default for ImGuiNavItemData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiOldColumnFlags_None: ImGuiOldColumnFlags_ = 0; +pub const ImGuiOldColumnFlags_NoBorder: ImGuiOldColumnFlags_ = 1; +pub const ImGuiOldColumnFlags_NoResize: ImGuiOldColumnFlags_ = 2; +pub const ImGuiOldColumnFlags_NoPreserveWidths: ImGuiOldColumnFlags_ = 4; +pub const ImGuiOldColumnFlags_NoForceWithinWindow: ImGuiOldColumnFlags_ = 8; +pub const ImGuiOldColumnFlags_GrowParentContentsSize: ImGuiOldColumnFlags_ = 16; +pub type ImGuiOldColumnFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiOldColumnData { + pub OffsetNorm: f32, + pub OffsetNormBeforeResize: f32, + pub Flags: ImGuiOldColumnFlags, + pub ClipRect: ImRect, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiOldColumnData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiOldColumnData, +} +impl Default for ImVector_ImGuiOldColumnData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiOldColumns { + pub ID: ImGuiID, + pub Flags: ImGuiOldColumnFlags, + pub IsFirstFrame: bool, + pub IsBeingResized: bool, + pub Current: cty::c_int, + pub Count: cty::c_int, + pub OffMinX: f32, + pub OffMaxX: f32, + pub LineMinY: f32, + pub LineMaxY: f32, + pub HostCursorPosY: f32, + pub HostCursorMaxPosX: f32, + pub HostInitialClipRect: ImRect, + pub HostBackupClipRect: ImRect, + pub HostBackupParentWorkRect: ImRect, + pub Columns: ImVector_ImGuiOldColumnData, + pub Splitter: ImDrawListSplitter, +} +impl Default for ImGuiOldColumns { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiDockNodeFlags_DockSpace: ImGuiDockNodeFlagsPrivate_ = 1024; +pub const ImGuiDockNodeFlags_CentralNode: ImGuiDockNodeFlagsPrivate_ = 2048; +pub const ImGuiDockNodeFlags_NoTabBar: ImGuiDockNodeFlagsPrivate_ = 4096; +pub const ImGuiDockNodeFlags_HiddenTabBar: ImGuiDockNodeFlagsPrivate_ = 8192; +pub const ImGuiDockNodeFlags_NoWindowMenuButton: ImGuiDockNodeFlagsPrivate_ = 16384; +pub const ImGuiDockNodeFlags_NoCloseButton: ImGuiDockNodeFlagsPrivate_ = 32768; +pub const ImGuiDockNodeFlags_NoDocking: ImGuiDockNodeFlagsPrivate_ = 65536; +pub const ImGuiDockNodeFlags_NoDockingSplitMe: ImGuiDockNodeFlagsPrivate_ = 131072; +pub const ImGuiDockNodeFlags_NoDockingSplitOther: ImGuiDockNodeFlagsPrivate_ = 262144; +pub const ImGuiDockNodeFlags_NoDockingOverMe: ImGuiDockNodeFlagsPrivate_ = 524288; +pub const ImGuiDockNodeFlags_NoDockingOverOther: ImGuiDockNodeFlagsPrivate_ = 1048576; +pub const ImGuiDockNodeFlags_NoDockingOverEmpty: ImGuiDockNodeFlagsPrivate_ = 2097152; +pub const ImGuiDockNodeFlags_NoResizeX: ImGuiDockNodeFlagsPrivate_ = 4194304; +pub const ImGuiDockNodeFlags_NoResizeY: ImGuiDockNodeFlagsPrivate_ = 8388608; +pub const ImGuiDockNodeFlags_SharedFlagsInheritMask_: ImGuiDockNodeFlagsPrivate_ = -1; +pub const ImGuiDockNodeFlags_NoResizeFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12582944; +pub const ImGuiDockNodeFlags_LocalFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12713072; +pub const ImGuiDockNodeFlags_LocalFlagsTransferMask_: ImGuiDockNodeFlagsPrivate_ = 12712048; +pub const ImGuiDockNodeFlags_SavedFlagsMask_: ImGuiDockNodeFlagsPrivate_ = 12712992; +pub type ImGuiDockNodeFlagsPrivate_ = cty::c_int; +pub const ImGuiDataAuthority_Auto: ImGuiDataAuthority_ = 0; +pub const ImGuiDataAuthority_DockNode: ImGuiDataAuthority_ = 1; +pub const ImGuiDataAuthority_Window: ImGuiDataAuthority_ = 2; +pub type ImGuiDataAuthority_ = cty::c_uint; +pub const ImGuiDockNodeState_Unknown: ImGuiDockNodeState = 0; +pub const ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow: ImGuiDockNodeState = 1; +pub const ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing: ImGuiDockNodeState = 2; +pub const ImGuiDockNodeState_HostWindowVisible: ImGuiDockNodeState = 3; +pub type ImGuiDockNodeState = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiWindowPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiWindow, +} +impl Default for ImVector_ImGuiWindowPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiDockNode { + pub ID: ImGuiID, + pub SharedFlags: ImGuiDockNodeFlags, + pub LocalFlags: ImGuiDockNodeFlags, + pub LocalFlagsInWindows: ImGuiDockNodeFlags, + pub MergedFlags: ImGuiDockNodeFlags, + pub State: ImGuiDockNodeState, + pub ParentNode: *mut ImGuiDockNode, + pub ChildNodes: [*mut ImGuiDockNode; 2usize], + pub Windows: ImVector_ImGuiWindowPtr, + pub TabBar: *mut ImGuiTabBar, + pub Pos: ImVec2, + pub Size: ImVec2, + pub SizeRef: ImVec2, + pub SplitAxis: ImGuiAxis, + pub WindowClass: ImGuiWindowClass, + pub LastBgColor: ImU32, + pub HostWindow: *mut ImGuiWindow, + pub VisibleWindow: *mut ImGuiWindow, + pub CentralNode: *mut ImGuiDockNode, + pub OnlyNodeWithWindows: *mut ImGuiDockNode, + pub CountNodeWithWindows: cty::c_int, + pub LastFrameAlive: cty::c_int, + pub LastFrameActive: cty::c_int, + pub LastFrameFocused: cty::c_int, + pub LastFocusedNodeId: ImGuiID, + pub SelectedTabId: ImGuiID, + pub WantCloseTabId: ImGuiID, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, + pub __bindgen_padding_0: u8, +} +impl Default for ImGuiDockNode { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ImGuiDockNode { + #[inline] + pub fn AuthorityForPos(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForPos(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 3u8, val as u64) + } + } + #[inline] + pub fn AuthorityForSize(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForSize(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(3usize, 3u8, val as u64) + } + } + #[inline] + pub fn AuthorityForViewport(&self) -> ImGuiDataAuthority { + unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) } + } + #[inline] + pub fn set_AuthorityForViewport(&mut self, val: ImGuiDataAuthority) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(6usize, 3u8, val as u64) + } + } + #[inline] + pub fn IsVisible(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsVisible(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsFocused(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsFocused(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(10usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsBgDrawnThisFrame(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsBgDrawnThisFrame(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(11usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasCloseButton(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasCloseButton(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasWindowMenuButton(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasWindowMenuButton(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) + } + } + #[inline] + pub fn HasCentralNodeChild(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u8) } + } + #[inline] + pub fn set_HasCentralNodeChild(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantCloseAll(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantCloseAll(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantLockSizeOnce(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantLockSizeOnce(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(16usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantMouseMove(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantMouseMove(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(17usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantHiddenTabBarUpdate(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantHiddenTabBarUpdate(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(18usize, 1u8, val as u64) + } + } + #[inline] + pub fn WantHiddenTabBarToggle(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u8) } + } + #[inline] + pub fn set_WantHiddenTabBarToggle(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(19usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + AuthorityForPos: ImGuiDataAuthority, + AuthorityForSize: ImGuiDataAuthority, + AuthorityForViewport: ImGuiDataAuthority, + IsVisible: bool, + IsFocused: bool, + IsBgDrawnThisFrame: bool, + HasCloseButton: bool, + HasWindowMenuButton: bool, + HasCentralNodeChild: bool, + WantCloseAll: bool, + WantLockSizeOnce: bool, + WantMouseMove: bool, + WantHiddenTabBarUpdate: bool, + WantHiddenTabBarToggle: bool, + ) -> __BindgenBitfieldUnit<[u8; 3usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 3u8, { + let AuthorityForPos: u32 = unsafe { ::core::mem::transmute(AuthorityForPos) }; + AuthorityForPos as u64 + }); + __bindgen_bitfield_unit.set(3usize, 3u8, { + let AuthorityForSize: u32 = unsafe { ::core::mem::transmute(AuthorityForSize) }; + AuthorityForSize as u64 + }); + __bindgen_bitfield_unit.set(6usize, 3u8, { + let AuthorityForViewport: u32 = unsafe { ::core::mem::transmute(AuthorityForViewport) }; + AuthorityForViewport as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let IsVisible: u8 = unsafe { ::core::mem::transmute(IsVisible) }; + IsVisible as u64 + }); + __bindgen_bitfield_unit.set(10usize, 1u8, { + let IsFocused: u8 = unsafe { ::core::mem::transmute(IsFocused) }; + IsFocused as u64 + }); + __bindgen_bitfield_unit.set(11usize, 1u8, { + let IsBgDrawnThisFrame: u8 = unsafe { ::core::mem::transmute(IsBgDrawnThisFrame) }; + IsBgDrawnThisFrame as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let HasCloseButton: u8 = unsafe { ::core::mem::transmute(HasCloseButton) }; + HasCloseButton as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let HasWindowMenuButton: u8 = unsafe { ::core::mem::transmute(HasWindowMenuButton) }; + HasWindowMenuButton as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let HasCentralNodeChild: u8 = unsafe { ::core::mem::transmute(HasCentralNodeChild) }; + HasCentralNodeChild as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let WantCloseAll: u8 = unsafe { ::core::mem::transmute(WantCloseAll) }; + WantCloseAll as u64 + }); + __bindgen_bitfield_unit.set(16usize, 1u8, { + let WantLockSizeOnce: u8 = unsafe { ::core::mem::transmute(WantLockSizeOnce) }; + WantLockSizeOnce as u64 + }); + __bindgen_bitfield_unit.set(17usize, 1u8, { + let WantMouseMove: u8 = unsafe { ::core::mem::transmute(WantMouseMove) }; + WantMouseMove as u64 + }); + __bindgen_bitfield_unit.set(18usize, 1u8, { + let WantHiddenTabBarUpdate: u8 = + unsafe { ::core::mem::transmute(WantHiddenTabBarUpdate) }; + WantHiddenTabBarUpdate as u64 + }); + __bindgen_bitfield_unit.set(19usize, 1u8, { + let WantHiddenTabBarToggle: u8 = + unsafe { ::core::mem::transmute(WantHiddenTabBarToggle) }; + WantHiddenTabBarToggle as u64 + }); + __bindgen_bitfield_unit + } +} +pub const ImGuiWindowDockStyleCol_Text: ImGuiWindowDockStyleCol = 0; +pub const ImGuiWindowDockStyleCol_Tab: ImGuiWindowDockStyleCol = 1; +pub const ImGuiWindowDockStyleCol_TabHovered: ImGuiWindowDockStyleCol = 2; +pub const ImGuiWindowDockStyleCol_TabActive: ImGuiWindowDockStyleCol = 3; +pub const ImGuiWindowDockStyleCol_TabUnfocused: ImGuiWindowDockStyleCol = 4; +pub const ImGuiWindowDockStyleCol_TabUnfocusedActive: ImGuiWindowDockStyleCol = 5; +pub const ImGuiWindowDockStyleCol_COUNT: ImGuiWindowDockStyleCol = 6; +pub type ImGuiWindowDockStyleCol = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowDockStyle { + pub Colors: [ImU32; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiDockRequest { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiDockRequest, +} +impl Default for ImVector_ImGuiDockRequest { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiDockNodeSettings { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiDockNodeSettings, +} +impl Default for ImVector_ImGuiDockNodeSettings { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiDockContext { + pub Nodes: ImGuiStorage, + pub Requests: ImVector_ImGuiDockRequest, + pub NodesSettings: ImVector_ImGuiDockNodeSettings, + pub WantFullRebuild: bool, +} +impl Default for ImGuiDockContext { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiViewportP { + pub _ImGuiViewport: ImGuiViewport, + pub Idx: cty::c_int, + pub LastFrameActive: cty::c_int, + pub LastFrontMostStampCount: cty::c_int, + pub LastNameHash: ImGuiID, + pub LastPos: ImVec2, + pub Alpha: f32, + pub LastAlpha: f32, + pub PlatformMonitor: cty::c_short, + pub Window: *mut ImGuiWindow, + pub DrawListsLastFrame: [cty::c_int; 2usize], + pub DrawLists: [*mut ImDrawList; 2usize], + pub DrawDataP: ImDrawData, + pub DrawDataBuilder: ImDrawDataBuilder, + pub LastPlatformPos: ImVec2, + pub LastPlatformSize: ImVec2, + pub LastRendererSize: ImVec2, + pub WorkOffsetMin: ImVec2, + pub WorkOffsetMax: ImVec2, + pub BuildWorkOffsetMin: ImVec2, + pub BuildWorkOffsetMax: ImVec2, +} +impl Default for ImGuiViewportP { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiWindowSettings { + pub ID: ImGuiID, + pub Pos: ImVec2ih, + pub Size: ImVec2ih, + pub ViewportPos: ImVec2ih, + pub ViewportId: ImGuiID, + pub DockId: ImGuiID, + pub ClassId: ImGuiID, + pub DockOrder: cty::c_short, + pub Collapsed: bool, + pub WantApply: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiSettingsHandler { + pub TypeName: *const cty::c_char, + pub TypeHash: ImGuiID, + pub ClearAllFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub ReadInitFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub ReadOpenFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + name: *const cty::c_char, + ) -> *mut cty::c_void, + >, + pub ReadLineFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + entry: *mut cty::c_void, + line: *const cty::c_char, + ), + >, + pub ApplyAllFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, handler: *mut ImGuiSettingsHandler), + >, + pub WriteAllFn: ::core::option::Option< + unsafe extern "C" fn( + ctx: *mut ImGuiContext, + handler: *mut ImGuiSettingsHandler, + out_buf: *mut ImGuiTextBuffer, + ), + >, + pub UserData: *mut cty::c_void, +} +impl Default for ImGuiSettingsHandler { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiLocKey_TableSizeOne: ImGuiLocKey = 0; +pub const ImGuiLocKey_TableSizeAllFit: ImGuiLocKey = 1; +pub const ImGuiLocKey_TableSizeAllDefault: ImGuiLocKey = 2; +pub const ImGuiLocKey_TableResetOrder: ImGuiLocKey = 3; +pub const ImGuiLocKey_WindowingMainMenuBar: ImGuiLocKey = 4; +pub const ImGuiLocKey_WindowingPopup: ImGuiLocKey = 5; +pub const ImGuiLocKey_WindowingUntitled: ImGuiLocKey = 6; +pub const ImGuiLocKey_DockingHideTabBar: ImGuiLocKey = 7; +pub const ImGuiLocKey_COUNT: ImGuiLocKey = 8; +pub type ImGuiLocKey = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiLocEntry { + pub Key: ImGuiLocKey, + pub Text: *const cty::c_char, +} +impl Default for ImGuiLocEntry { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const ImGuiDebugLogFlags_None: ImGuiDebugLogFlags_ = 0; +pub const ImGuiDebugLogFlags_EventActiveId: ImGuiDebugLogFlags_ = 1; +pub const ImGuiDebugLogFlags_EventFocus: ImGuiDebugLogFlags_ = 2; +pub const ImGuiDebugLogFlags_EventPopup: ImGuiDebugLogFlags_ = 4; +pub const ImGuiDebugLogFlags_EventNav: ImGuiDebugLogFlags_ = 8; +pub const ImGuiDebugLogFlags_EventClipper: ImGuiDebugLogFlags_ = 16; +pub const ImGuiDebugLogFlags_EventIO: ImGuiDebugLogFlags_ = 32; +pub const ImGuiDebugLogFlags_EventDocking: ImGuiDebugLogFlags_ = 64; +pub const ImGuiDebugLogFlags_EventViewport: ImGuiDebugLogFlags_ = 128; +pub const ImGuiDebugLogFlags_EventMask_: ImGuiDebugLogFlags_ = 255; +pub const ImGuiDebugLogFlags_OutputToTTY: ImGuiDebugLogFlags_ = 1024; +pub type ImGuiDebugLogFlags_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiMetricsConfig { + pub ShowDebugLog: bool, + pub ShowStackTool: bool, + pub ShowWindowsRects: bool, + pub ShowWindowsBeginOrder: bool, + pub ShowTablesRects: bool, + pub ShowDrawCmdMesh: bool, + pub ShowDrawCmdBoundingBoxes: bool, + pub ShowDockingNodes: bool, + pub ShowWindowsRectsType: cty::c_int, + pub ShowTablesRectsType: cty::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiStackLevelInfo { + pub ID: ImGuiID, + pub QueryFrameCount: ImS8, + pub QuerySuccess: bool, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub Desc: [cty::c_char; 57usize], +} +impl Default for ImGuiStackLevelInfo { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ImGuiStackLevelInfo { + #[inline] + pub fn DataType(&self) -> ImGuiDataType { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_DataType(&mut self, val: ImGuiDataType) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1(DataType: ImGuiDataType) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let DataType: u32 = unsafe { ::core::mem::transmute(DataType) }; + DataType as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStackLevelInfo { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStackLevelInfo, +} +impl Default for ImVector_ImGuiStackLevelInfo { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiStackTool { + pub LastActiveFrame: cty::c_int, + pub StackLevel: cty::c_int, + pub QueryId: ImGuiID, + pub Results: ImVector_ImGuiStackLevelInfo, + pub CopyToClipboardOnCtrlC: bool, + pub CopyToClipboardLastTime: f32, +} +impl Default for ImGuiStackTool { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type ImGuiContextHookCallback = ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext, hook: *mut ImGuiContextHook), +>; +pub const ImGuiContextHookType_NewFramePre: ImGuiContextHookType = 0; +pub const ImGuiContextHookType_NewFramePost: ImGuiContextHookType = 1; +pub const ImGuiContextHookType_EndFramePre: ImGuiContextHookType = 2; +pub const ImGuiContextHookType_EndFramePost: ImGuiContextHookType = 3; +pub const ImGuiContextHookType_RenderPre: ImGuiContextHookType = 4; +pub const ImGuiContextHookType_RenderPost: ImGuiContextHookType = 5; +pub const ImGuiContextHookType_Shutdown: ImGuiContextHookType = 6; +pub const ImGuiContextHookType_PendingRemoval_: ImGuiContextHookType = 7; +pub type ImGuiContextHookType = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiContextHook { + pub HookId: ImGuiID, + pub Type: ImGuiContextHookType, + pub Owner: ImGuiID, + pub Callback: ImGuiContextHookCallback, + pub UserData: *mut cty::c_void, +} +impl Default for ImGuiContextHook { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiInputEvent { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiInputEvent, +} +impl Default for ImVector_ImGuiInputEvent { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiWindowStackData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiWindowStackData, +} +impl Default for ImVector_ImGuiWindowStackData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiColorMod { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiColorMod, +} +impl Default for ImVector_ImGuiColorMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiStyleMod { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiStyleMod, +} +impl Default for ImVector_ImGuiStyleMod { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiID { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiID, +} +impl Default for ImVector_ImGuiID { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiItemFlags { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiItemFlags, +} +impl Default for ImVector_ImGuiItemFlags { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiGroupData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiGroupData, +} +impl Default for ImVector_ImGuiGroupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiPopupData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPopupData, +} +impl Default for ImVector_ImGuiPopupData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiViewportPPtr { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut *mut ImGuiViewportP, +} +impl Default for ImVector_ImGuiViewportPPtr { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_unsigned_char { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut cty::c_uchar, +} +impl Default for ImVector_unsigned_char { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiListClipperData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiListClipperData, +} +impl Default for ImVector_ImGuiListClipperData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableTempData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableTempData, +} +impl Default for ImVector_ImGuiTableTempData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTable { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTable, +} +impl Default for ImVector_ImGuiTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImPool_ImGuiTable { + pub Buf: ImVector_ImGuiTable, + pub Map: ImGuiStorage, + pub FreeIdx: ImPoolIdx, + pub AliveCount: ImPoolIdx, +} +impl Default for ImPool_ImGuiTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTabBar { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTabBar, +} +impl Default for ImVector_ImGuiTabBar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImPool_ImGuiTabBar { + pub Buf: ImVector_ImGuiTabBar, + pub Map: ImGuiStorage, + pub FreeIdx: ImPoolIdx, + pub AliveCount: ImPoolIdx, +} +impl Default for ImPool_ImGuiTabBar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiPtrOrIndex { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiPtrOrIndex, +} +impl Default for ImVector_ImGuiPtrOrIndex { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiShrinkWidthItem { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiShrinkWidthItem, +} +impl Default for ImVector_ImGuiShrinkWidthItem { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiSettingsHandler { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiSettingsHandler, +} +impl Default for ImVector_ImGuiSettingsHandler { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImChunkStream_ImGuiWindowSettings { + pub Buf: ImVector_char, +} +impl Default for ImChunkStream_ImGuiWindowSettings { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImChunkStream_ImGuiTableSettings { + pub Buf: ImVector_char, +} +impl Default for ImChunkStream_ImGuiTableSettings { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiContextHook { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiContextHook, +} +impl Default for ImVector_ImGuiContextHook { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiContext { + pub Initialized: bool, + pub FontAtlasOwnedByContext: bool, + pub IO: ImGuiIO, + pub PlatformIO: ImGuiPlatformIO, + pub InputEventsQueue: ImVector_ImGuiInputEvent, + pub InputEventsTrail: ImVector_ImGuiInputEvent, + pub Style: ImGuiStyle, + pub ConfigFlagsCurrFrame: ImGuiConfigFlags, + pub ConfigFlagsLastFrame: ImGuiConfigFlags, + pub Font: *mut ImFont, + pub FontSize: f32, + pub FontBaseSize: f32, + pub DrawListSharedData: ImDrawListSharedData, + pub Time: f64, + pub FrameCount: cty::c_int, + pub FrameCountEnded: cty::c_int, + pub FrameCountPlatformEnded: cty::c_int, + pub FrameCountRendered: cty::c_int, + pub WithinFrameScope: bool, + pub WithinFrameScopeWithImplicitWindow: bool, + pub WithinEndChild: bool, + pub GcCompactAll: bool, + pub TestEngineHookItems: bool, + pub TestEngine: *mut cty::c_void, + pub Windows: ImVector_ImGuiWindowPtr, + pub WindowsFocusOrder: ImVector_ImGuiWindowPtr, + pub WindowsTempSortBuffer: ImVector_ImGuiWindowPtr, + pub CurrentWindowStack: ImVector_ImGuiWindowStackData, + pub WindowsById: ImGuiStorage, + pub WindowsActiveCount: cty::c_int, + pub WindowsHoverPadding: ImVec2, + pub CurrentWindow: *mut ImGuiWindow, + pub HoveredWindow: *mut ImGuiWindow, + pub HoveredWindowUnderMovingWindow: *mut ImGuiWindow, + pub MovingWindow: *mut ImGuiWindow, + pub WheelingWindow: *mut ImGuiWindow, + pub WheelingWindowRefMousePos: ImVec2, + pub WheelingWindowReleaseTimer: f32, + pub DebugHookIdInfo: ImGuiID, + pub HoveredId: ImGuiID, + pub HoveredIdPreviousFrame: ImGuiID, + pub HoveredIdAllowOverlap: bool, + pub HoveredIdDisabled: bool, + pub HoveredIdTimer: f32, + pub HoveredIdNotActiveTimer: f32, + pub ActiveId: ImGuiID, + pub ActiveIdIsAlive: ImGuiID, + pub ActiveIdTimer: f32, + pub ActiveIdIsJustActivated: bool, + pub ActiveIdAllowOverlap: bool, + pub ActiveIdNoClearOnFocusLoss: bool, + pub ActiveIdHasBeenPressedBefore: bool, + pub ActiveIdHasBeenEditedBefore: bool, + pub ActiveIdHasBeenEditedThisFrame: bool, + pub ActiveIdClickOffset: ImVec2, + pub ActiveIdWindow: *mut ImGuiWindow, + pub ActiveIdSource: ImGuiInputSource, + pub ActiveIdMouseButton: cty::c_int, + pub ActiveIdPreviousFrame: ImGuiID, + pub ActiveIdPreviousFrameIsAlive: bool, + pub ActiveIdPreviousFrameHasBeenEditedBefore: bool, + pub ActiveIdPreviousFrameWindow: *mut ImGuiWindow, + pub LastActiveId: ImGuiID, + pub LastActiveIdTimer: f32, + pub KeysOwnerData: [ImGuiKeyOwnerData; 140usize], + pub KeysRoutingTable: ImGuiKeyRoutingTable, + pub ActiveIdUsingNavDirMask: ImU32, + pub ActiveIdUsingAllKeyboardKeys: bool, + pub ActiveIdUsingNavInputMask: ImU32, + pub CurrentFocusScopeId: ImGuiID, + pub CurrentItemFlags: ImGuiItemFlags, + pub DebugLocateId: ImGuiID, + pub NextItemData: ImGuiNextItemData, + pub LastItemData: ImGuiLastItemData, + pub NextWindowData: ImGuiNextWindowData, + pub ColorStack: ImVector_ImGuiColorMod, + pub StyleVarStack: ImVector_ImGuiStyleMod, + pub FontStack: ImVector_ImFontPtr, + pub FocusScopeStack: ImVector_ImGuiID, + pub ItemFlagsStack: ImVector_ImGuiItemFlags, + pub GroupStack: ImVector_ImGuiGroupData, + pub OpenPopupStack: ImVector_ImGuiPopupData, + pub BeginPopupStack: ImVector_ImGuiPopupData, + pub BeginMenuCount: cty::c_int, + pub Viewports: ImVector_ImGuiViewportPPtr, + pub CurrentDpiScale: f32, + pub CurrentViewport: *mut ImGuiViewportP, + pub MouseViewport: *mut ImGuiViewportP, + pub MouseLastHoveredViewport: *mut ImGuiViewportP, + pub PlatformLastFocusedViewportId: ImGuiID, + pub FallbackMonitor: ImGuiPlatformMonitor, + pub ViewportFrontMostStampCount: cty::c_int, + pub NavWindow: *mut ImGuiWindow, + pub NavId: ImGuiID, + pub NavFocusScopeId: ImGuiID, + pub NavActivateId: ImGuiID, + pub NavActivateDownId: ImGuiID, + pub NavActivatePressedId: ImGuiID, + pub NavActivateInputId: ImGuiID, + pub NavActivateFlags: ImGuiActivateFlags, + pub NavJustMovedToId: ImGuiID, + pub NavJustMovedToFocusScopeId: ImGuiID, + pub NavJustMovedToKeyMods: ImGuiKeyChord, + pub NavNextActivateId: ImGuiID, + pub NavNextActivateFlags: ImGuiActivateFlags, + pub NavInputSource: ImGuiInputSource, + pub NavLayer: ImGuiNavLayer, + pub NavIdIsAlive: bool, + pub NavMousePosDirty: bool, + pub NavDisableHighlight: bool, + pub NavDisableMouseHover: bool, + pub NavAnyRequest: bool, + pub NavInitRequest: bool, + pub NavInitRequestFromMove: bool, + pub NavInitResultId: ImGuiID, + pub NavInitResultRectRel: ImRect, + pub NavMoveSubmitted: bool, + pub NavMoveScoringItems: bool, + pub NavMoveForwardToNextFrame: bool, + pub NavMoveFlags: ImGuiNavMoveFlags, + pub NavMoveScrollFlags: ImGuiScrollFlags, + pub NavMoveKeyMods: ImGuiKeyChord, + pub NavMoveDir: ImGuiDir, + pub NavMoveDirForDebug: ImGuiDir, + pub NavMoveClipDir: ImGuiDir, + pub NavScoringRect: ImRect, + pub NavScoringNoClipRect: ImRect, + pub NavScoringDebugCount: cty::c_int, + pub NavTabbingDir: cty::c_int, + pub NavTabbingCounter: cty::c_int, + pub NavMoveResultLocal: ImGuiNavItemData, + pub NavMoveResultLocalVisible: ImGuiNavItemData, + pub NavMoveResultOther: ImGuiNavItemData, + pub NavTabbingResultFirst: ImGuiNavItemData, + pub ConfigNavWindowingKeyNext: ImGuiKeyChord, + pub ConfigNavWindowingKeyPrev: ImGuiKeyChord, + pub NavWindowingTarget: *mut ImGuiWindow, + pub NavWindowingTargetAnim: *mut ImGuiWindow, + pub NavWindowingListWindow: *mut ImGuiWindow, + pub NavWindowingTimer: f32, + pub NavWindowingHighlightAlpha: f32, + pub NavWindowingToggleLayer: bool, + pub NavWindowingAccumDeltaPos: ImVec2, + pub NavWindowingAccumDeltaSize: ImVec2, + pub DimBgRatio: f32, + pub MouseCursor: ImGuiMouseCursor, + pub DragDropActive: bool, + pub DragDropWithinSource: bool, + pub DragDropWithinTarget: bool, + pub DragDropSourceFlags: ImGuiDragDropFlags, + pub DragDropSourceFrameCount: cty::c_int, + pub DragDropMouseButton: cty::c_int, + pub DragDropPayload: ImGuiPayload, + pub DragDropTargetRect: ImRect, + pub DragDropTargetId: ImGuiID, + pub DragDropAcceptFlags: ImGuiDragDropFlags, + pub DragDropAcceptIdCurrRectSurface: f32, + pub DragDropAcceptIdCurr: ImGuiID, + pub DragDropAcceptIdPrev: ImGuiID, + pub DragDropAcceptFrameCount: cty::c_int, + pub DragDropHoldJustPressedId: ImGuiID, + pub DragDropPayloadBufHeap: ImVector_unsigned_char, + pub DragDropPayloadBufLocal: [cty::c_uchar; 16usize], + pub ClipperTempDataStacked: cty::c_int, + pub ClipperTempData: ImVector_ImGuiListClipperData, + pub CurrentTable: *mut ImGuiTable, + pub TablesTempDataStacked: cty::c_int, + pub TablesTempData: ImVector_ImGuiTableTempData, + pub Tables: ImPool_ImGuiTable, + pub TablesLastTimeActive: ImVector_float, + pub DrawChannelsTempMergeBuffer: ImVector_ImDrawChannel, + pub CurrentTabBar: *mut ImGuiTabBar, + pub TabBars: ImPool_ImGuiTabBar, + pub CurrentTabBarStack: ImVector_ImGuiPtrOrIndex, + pub ShrinkWidthBuffer: ImVector_ImGuiShrinkWidthItem, + pub HoverDelayId: ImGuiID, + pub HoverDelayIdPreviousFrame: ImGuiID, + pub HoverDelayTimer: f32, + pub HoverDelayClearTimer: f32, + pub MouseLastValidPos: ImVec2, + pub InputTextState: ImGuiInputTextState, + pub InputTextPasswordFont: ImFont, + pub TempInputId: ImGuiID, + pub ColorEditOptions: ImGuiColorEditFlags, + pub ColorEditLastHue: f32, + pub ColorEditLastSat: f32, + pub ColorEditLastColor: ImU32, + pub ColorPickerRef: ImVec4, + pub ComboPreviewData: ImGuiComboPreviewData, + pub SliderGrabClickOffset: f32, + pub SliderCurrentAccum: f32, + pub SliderCurrentAccumDirty: bool, + pub DragCurrentAccumDirty: bool, + pub DragCurrentAccum: f32, + pub DragSpeedDefaultRatio: f32, + pub ScrollbarClickDeltaToGrabCenter: f32, + pub DisabledAlphaBackup: f32, + pub DisabledStackSize: cty::c_short, + pub TooltipOverrideCount: cty::c_short, + pub ClipboardHandlerData: ImVector_char, + pub MenusIdSubmittedThisFrame: ImVector_ImGuiID, + pub PlatformImeData: ImGuiPlatformImeData, + pub PlatformImeDataPrev: ImGuiPlatformImeData, + pub PlatformImeViewport: ImGuiID, + pub PlatformLocaleDecimalPoint: cty::c_char, + pub DockContext: ImGuiDockContext, + pub SettingsLoaded: bool, + pub SettingsDirtyTimer: f32, + pub SettingsIniData: ImGuiTextBuffer, + pub SettingsHandlers: ImVector_ImGuiSettingsHandler, + pub SettingsWindows: ImChunkStream_ImGuiWindowSettings, + pub SettingsTables: ImChunkStream_ImGuiTableSettings, + pub Hooks: ImVector_ImGuiContextHook, + pub HookIdNext: ImGuiID, + pub LocalizationTable: [*const cty::c_char; 8usize], + pub LogEnabled: bool, + pub LogType: ImGuiLogType, + pub LogFile: ImFileHandle, + pub LogBuffer: ImGuiTextBuffer, + pub LogNextPrefix: *const cty::c_char, + pub LogNextSuffix: *const cty::c_char, + pub LogLinePosY: f32, + pub LogLineFirstItem: bool, + pub LogDepthRef: cty::c_int, + pub LogDepthToExpand: cty::c_int, + pub LogDepthToExpandDefault: cty::c_int, + pub DebugLogFlags: ImGuiDebugLogFlags, + pub DebugLogBuf: ImGuiTextBuffer, + pub DebugLogIndex: ImGuiTextIndex, + pub DebugLocateFrames: ImU8, + pub DebugItemPickerActive: bool, + pub DebugItemPickerMouseButton: ImU8, + pub DebugItemPickerBreakId: ImGuiID, + pub DebugMetricsConfig: ImGuiMetricsConfig, + pub DebugStackTool: ImGuiStackTool, + pub DebugHoveredDockNode: *mut ImGuiDockNode, + pub FramerateSecPerFrame: [f32; 60usize], + pub FramerateSecPerFrameIdx: cty::c_int, + pub FramerateSecPerFrameCount: cty::c_int, + pub FramerateSecPerFrameAccum: f32, + pub WantCaptureMouseNextFrame: cty::c_int, + pub WantCaptureKeyboardNextFrame: cty::c_int, + pub WantTextInputNextFrame: cty::c_int, + pub TempBuffer: ImVector_char, +} +impl Default for ImGuiContext { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiWindowTempData { + pub CursorPos: ImVec2, + pub CursorPosPrevLine: ImVec2, + pub CursorStartPos: ImVec2, + pub CursorMaxPos: ImVec2, + pub IdealMaxPos: ImVec2, + pub CurrLineSize: ImVec2, + pub PrevLineSize: ImVec2, + pub CurrLineTextBaseOffset: f32, + pub PrevLineTextBaseOffset: f32, + pub IsSameLine: bool, + pub IsSetPos: bool, + pub Indent: ImVec1, + pub ColumnsOffset: ImVec1, + pub GroupOffset: ImVec1, + pub CursorStartPosLossyness: ImVec2, + pub NavLayerCurrent: ImGuiNavLayer, + pub NavLayersActiveMask: cty::c_short, + pub NavLayersActiveMaskNext: cty::c_short, + pub NavHideHighlightOneFrame: bool, + pub NavHasScroll: bool, + pub MenuBarAppending: bool, + pub MenuBarOffset: ImVec2, + pub MenuColumns: ImGuiMenuColumns, + pub TreeDepth: cty::c_int, + pub TreeJumpToParentOnPopMask: ImU32, + pub ChildWindows: ImVector_ImGuiWindowPtr, + pub StateStorage: *mut ImGuiStorage, + pub CurrentColumns: *mut ImGuiOldColumns, + pub CurrentTableIdx: cty::c_int, + pub LayoutType: ImGuiLayoutType, + pub ParentLayoutType: ImGuiLayoutType, + pub ItemWidth: f32, + pub TextWrapPos: f32, + pub ItemWidthStack: ImVector_float, + pub TextWrapPosStack: ImVector_float, +} +impl Default for ImGuiWindowTempData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiOldColumns { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiOldColumns, +} +impl Default for ImVector_ImGuiOldColumns { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiWindow { + pub Name: *mut cty::c_char, + pub ID: ImGuiID, + pub Flags: ImGuiWindowFlags, + pub FlagsPreviousFrame: ImGuiWindowFlags, + pub WindowClass: ImGuiWindowClass, + pub Viewport: *mut ImGuiViewportP, + pub ViewportId: ImGuiID, + pub ViewportPos: ImVec2, + pub ViewportAllowPlatformMonitorExtend: cty::c_int, + pub Pos: ImVec2, + pub Size: ImVec2, + pub SizeFull: ImVec2, + pub ContentSize: ImVec2, + pub ContentSizeIdeal: ImVec2, + pub ContentSizeExplicit: ImVec2, + pub WindowPadding: ImVec2, + pub WindowRounding: f32, + pub WindowBorderSize: f32, + pub NameBufLen: cty::c_int, + pub MoveId: ImGuiID, + pub TabId: ImGuiID, + pub ChildId: ImGuiID, + pub Scroll: ImVec2, + pub ScrollMax: ImVec2, + pub ScrollTarget: ImVec2, + pub ScrollTargetCenterRatio: ImVec2, + pub ScrollTargetEdgeSnapDist: ImVec2, + pub ScrollbarSizes: ImVec2, + pub ScrollbarX: bool, + pub ScrollbarY: bool, + pub ViewportOwned: bool, + pub Active: bool, + pub WasActive: bool, + pub WriteAccessed: bool, + pub Collapsed: bool, + pub WantCollapseToggle: bool, + pub SkipItems: bool, + pub Appearing: bool, + pub Hidden: bool, + pub IsFallbackWindow: bool, + pub IsExplicitChild: bool, + pub HasCloseButton: bool, + pub ResizeBorderHeld: cty::c_schar, + pub BeginCount: cty::c_short, + pub BeginCountPreviousFrame: cty::c_short, + pub BeginOrderWithinParent: cty::c_short, + pub BeginOrderWithinContext: cty::c_short, + pub FocusOrder: cty::c_short, + pub PopupId: ImGuiID, + pub AutoFitFramesX: ImS8, + pub AutoFitFramesY: ImS8, + pub AutoFitChildAxises: ImS8, + pub AutoFitOnlyGrows: bool, + pub AutoPosLastDirection: ImGuiDir, + pub HiddenFramesCanSkipItems: ImS8, + pub HiddenFramesCannotSkipItems: ImS8, + pub HiddenFramesForRenderOnly: ImS8, + pub DisableInputsFrames: ImS8, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub SetWindowPosVal: ImVec2, + pub SetWindowPosPivot: ImVec2, + pub IDStack: ImVector_ImGuiID, + pub DC: ImGuiWindowTempData, + pub OuterRectClipped: ImRect, + pub InnerRect: ImRect, + pub InnerClipRect: ImRect, + pub WorkRect: ImRect, + pub ParentWorkRect: ImRect, + pub ClipRect: ImRect, + pub ContentRegionRect: ImRect, + pub HitTestHoleSize: ImVec2ih, + pub HitTestHoleOffset: ImVec2ih, + pub LastFrameActive: cty::c_int, + pub LastFrameJustFocused: cty::c_int, + pub LastTimeActive: f32, + pub ItemWidthDefault: f32, + pub StateStorage: ImGuiStorage, + pub ColumnsStorage: ImVector_ImGuiOldColumns, + pub FontWindowScale: f32, + pub FontDpiScale: f32, + pub SettingsOffset: cty::c_int, + pub DrawList: *mut ImDrawList, + pub DrawListInst: ImDrawList, + pub ParentWindow: *mut ImGuiWindow, + pub ParentWindowInBeginStack: *mut ImGuiWindow, + pub RootWindow: *mut ImGuiWindow, + pub RootWindowPopupTree: *mut ImGuiWindow, + pub RootWindowDockTree: *mut ImGuiWindow, + pub RootWindowForTitleBarHighlight: *mut ImGuiWindow, + pub RootWindowForNav: *mut ImGuiWindow, + pub NavLastChildNavWindow: *mut ImGuiWindow, + pub NavLastIds: [ImGuiID; 2usize], + pub NavRectRel: [ImRect; 2usize], + pub NavRootFocusScopeId: ImGuiID, + pub MemoryDrawListIdxCapacity: cty::c_int, + pub MemoryDrawListVtxCapacity: cty::c_int, + pub MemoryCompacted: bool, + pub _bitfield_align_2: [u8; 0], + pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1usize]>, + pub DockOrder: cty::c_short, + pub DockStyle: ImGuiWindowDockStyle, + pub DockNode: *mut ImGuiDockNode, + pub DockNodeAsHost: *mut ImGuiDockNode, + pub DockId: ImGuiID, + pub DockTabItemStatusFlags: ImGuiItemStatusFlags, + pub DockTabItemRect: ImRect, +} +impl Default for ImGuiWindow { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ImGuiWindow { + #[inline] + pub fn SetWindowPosAllowFlags(&self) -> ImGuiCond { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_SetWindowPosAllowFlags(&mut self, val: ImGuiCond) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn SetWindowSizeAllowFlags(&self) -> ImGuiCond { + unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_SetWindowSizeAllowFlags(&mut self, val: ImGuiCond) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn SetWindowCollapsedAllowFlags(&self) -> ImGuiCond { + unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) } + } + #[inline] + pub fn set_SetWindowCollapsedAllowFlags(&mut self, val: ImGuiCond) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(16usize, 8u8, val as u64) + } + } + #[inline] + pub fn SetWindowDockAllowFlags(&self) -> ImGuiCond { + unsafe { ::core::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_SetWindowDockAllowFlags(&mut self, val: ImGuiCond) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SetWindowPosAllowFlags: ImGuiCond, + SetWindowSizeAllowFlags: ImGuiCond, + SetWindowCollapsedAllowFlags: ImGuiCond, + SetWindowDockAllowFlags: ImGuiCond, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let SetWindowPosAllowFlags: u32 = + unsafe { ::core::mem::transmute(SetWindowPosAllowFlags) }; + SetWindowPosAllowFlags as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let SetWindowSizeAllowFlags: u32 = + unsafe { ::core::mem::transmute(SetWindowSizeAllowFlags) }; + SetWindowSizeAllowFlags as u64 + }); + __bindgen_bitfield_unit.set(16usize, 8u8, { + let SetWindowCollapsedAllowFlags: u32 = + unsafe { ::core::mem::transmute(SetWindowCollapsedAllowFlags) }; + SetWindowCollapsedAllowFlags as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let SetWindowDockAllowFlags: u32 = + unsafe { ::core::mem::transmute(SetWindowDockAllowFlags) }; + SetWindowDockAllowFlags as u64 + }); + __bindgen_bitfield_unit + } + #[inline] + pub fn DockIsActive(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_2.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_DockIsActive(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_2.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn DockNodeIsVisible(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_2.get(1usize, 1u8) as u8) } + } + #[inline] + pub fn set_DockNodeIsVisible(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_2.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn DockTabIsVisible(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_2.get(2usize, 1u8) as u8) } + } + #[inline] + pub fn set_DockTabIsVisible(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_2.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn DockTabWantClose(&self) -> bool { + unsafe { ::core::mem::transmute(self._bitfield_2.get(3usize, 1u8) as u8) } + } + #[inline] + pub fn set_DockTabWantClose(&mut self, val: bool) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_2.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_2( + DockIsActive: bool, + DockNodeIsVisible: bool, + DockTabIsVisible: bool, + DockTabWantClose: bool, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let DockIsActive: u8 = unsafe { ::core::mem::transmute(DockIsActive) }; + DockIsActive as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let DockNodeIsVisible: u8 = unsafe { ::core::mem::transmute(DockNodeIsVisible) }; + DockNodeIsVisible as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let DockTabIsVisible: u8 = unsafe { ::core::mem::transmute(DockTabIsVisible) }; + DockTabIsVisible as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let DockTabWantClose: u8 = unsafe { ::core::mem::transmute(DockTabWantClose) }; + DockTabWantClose as u64 + }); + __bindgen_bitfield_unit + } +} +pub const ImGuiTabBarFlags_DockNode: ImGuiTabBarFlagsPrivate_ = 1048576; +pub const ImGuiTabBarFlags_IsFocused: ImGuiTabBarFlagsPrivate_ = 2097152; +pub const ImGuiTabBarFlags_SaveSettings: ImGuiTabBarFlagsPrivate_ = 4194304; +pub type ImGuiTabBarFlagsPrivate_ = cty::c_uint; +pub const ImGuiTabItemFlags_SectionMask_: ImGuiTabItemFlagsPrivate_ = 192; +pub const ImGuiTabItemFlags_NoCloseButton: ImGuiTabItemFlagsPrivate_ = 1048576; +pub const ImGuiTabItemFlags_Button: ImGuiTabItemFlagsPrivate_ = 2097152; +pub const ImGuiTabItemFlags_Unsorted: ImGuiTabItemFlagsPrivate_ = 4194304; +pub const ImGuiTabItemFlags_Preview: ImGuiTabItemFlagsPrivate_ = 8388608; +pub type ImGuiTabItemFlagsPrivate_ = cty::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiTabItem { + pub ID: ImGuiID, + pub Flags: ImGuiTabItemFlags, + pub Window: *mut ImGuiWindow, + pub LastFrameVisible: cty::c_int, + pub LastFrameSelected: cty::c_int, + pub Offset: f32, + pub Width: f32, + pub ContentWidth: f32, + pub RequestedWidth: f32, + pub NameOffset: ImS32, + pub BeginOrder: ImS16, + pub IndexDuringLayout: ImS16, + pub WantClose: bool, +} +impl Default for ImGuiTabItem { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTabItem { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTabItem, +} +impl Default for ImVector_ImGuiTabItem { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiTabBar { + pub Tabs: ImVector_ImGuiTabItem, + pub Flags: ImGuiTabBarFlags, + pub ID: ImGuiID, + pub SelectedTabId: ImGuiID, + pub NextSelectedTabId: ImGuiID, + pub VisibleTabId: ImGuiID, + pub CurrFrameVisible: cty::c_int, + pub PrevFrameVisible: cty::c_int, + pub BarRect: ImRect, + pub CurrTabsContentsHeight: f32, + pub PrevTabsContentsHeight: f32, + pub WidthAllTabs: f32, + pub WidthAllTabsIdeal: f32, + pub ScrollingAnim: f32, + pub ScrollingTarget: f32, + pub ScrollingTargetDistToVisibility: f32, + pub ScrollingSpeed: f32, + pub ScrollingRectMinX: f32, + pub ScrollingRectMaxX: f32, + pub ReorderRequestTabId: ImGuiID, + pub ReorderRequestOffset: ImS16, + pub BeginCount: ImS8, + pub WantLayout: bool, + pub VisibleTabWasSubmitted: bool, + pub TabsAddedNew: bool, + pub TabsActiveCount: ImS16, + pub LastTabItemIdx: ImS16, + pub ItemSpacingY: f32, + pub FramePadding: ImVec2, + pub BackupCursorPos: ImVec2, + pub TabsNames: ImGuiTextBuffer, +} +impl Default for ImGuiTabBar { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type ImGuiTableColumnIdx = ImS8; +pub type ImGuiTableDrawChannelIdx = ImU8; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableColumn { + pub Flags: ImGuiTableColumnFlags, + pub WidthGiven: f32, + pub MinX: f32, + pub MaxX: f32, + pub WidthRequest: f32, + pub WidthAuto: f32, + pub StretchWeight: f32, + pub InitStretchWeightOrWidth: f32, + pub ClipRect: ImRect, + pub UserID: ImGuiID, + pub WorkMinX: f32, + pub WorkMaxX: f32, + pub ItemWidth: f32, + pub ContentMaxXFrozen: f32, + pub ContentMaxXUnfrozen: f32, + pub ContentMaxXHeadersUsed: f32, + pub ContentMaxXHeadersIdeal: f32, + pub NameOffset: ImS16, + pub DisplayOrder: ImGuiTableColumnIdx, + pub IndexWithinEnabledSet: ImGuiTableColumnIdx, + pub PrevEnabledColumn: ImGuiTableColumnIdx, + pub NextEnabledColumn: ImGuiTableColumnIdx, + pub SortOrder: ImGuiTableColumnIdx, + pub DrawChannelCurrent: ImGuiTableDrawChannelIdx, + pub DrawChannelFrozen: ImGuiTableDrawChannelIdx, + pub DrawChannelUnfrozen: ImGuiTableDrawChannelIdx, + pub IsEnabled: bool, + pub IsUserEnabled: bool, + pub IsUserEnabledNextFrame: bool, + pub IsVisibleX: bool, + pub IsVisibleY: bool, + pub IsRequestOutput: bool, + pub IsSkipItems: bool, + pub IsPreserveWidthAuto: bool, + pub NavLayerCurrent: ImS8, + pub AutoFitQueue: ImU8, + pub CannotSkipItemsQueue: ImU8, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub SortDirectionsAvailList: ImU8, +} +impl ImGuiTableColumn { + #[inline] + pub fn SortDirection(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u8) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 2u8, val as u64) + } + } + #[inline] + pub fn SortDirectionsAvailCount(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u8) } + } + #[inline] + pub fn set_SortDirectionsAvailCount(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 2u8, val as u64) + } + } + #[inline] + pub fn SortDirectionsAvailMask(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } + } + #[inline] + pub fn set_SortDirectionsAvailMask(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(4usize, 4u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImU8, + SortDirectionsAvailCount: ImU8, + SortDirectionsAvailMask: ImU8, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 2u8, { + let SortDirection: u8 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit.set(2usize, 2u8, { + let SortDirectionsAvailCount: u8 = + unsafe { ::core::mem::transmute(SortDirectionsAvailCount) }; + SortDirectionsAvailCount as u64 + }); + __bindgen_bitfield_unit.set(4usize, 4u8, { + let SortDirectionsAvailMask: u8 = + unsafe { ::core::mem::transmute(SortDirectionsAvailMask) }; + SortDirectionsAvailMask as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImGuiTableCellData { + pub BgColor: ImU32, + pub Column: ImGuiTableColumnIdx, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableInstanceData { + pub LastOuterHeight: f32, + pub LastFirstRowHeight: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableColumn { + pub Data: *mut ImGuiTableColumn, + pub DataEnd: *mut ImGuiTableColumn, +} +impl Default for ImSpan_ImGuiTableColumn { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableColumnIdx { + pub Data: *mut ImGuiTableColumnIdx, + pub DataEnd: *mut ImGuiTableColumnIdx, +} +impl Default for ImSpan_ImGuiTableColumnIdx { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImSpan_ImGuiTableCellData { + pub Data: *mut ImGuiTableCellData, + pub DataEnd: *mut ImGuiTableCellData, +} +impl Default for ImSpan_ImGuiTableCellData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableInstanceData { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableInstanceData, +} +impl Default for ImVector_ImGuiTableInstanceData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImVector_ImGuiTableColumnSortSpecs { + pub Size: cty::c_int, + pub Capacity: cty::c_int, + pub Data: *mut ImGuiTableColumnSortSpecs, +} +impl Default for ImVector_ImGuiTableColumnSortSpecs { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiTable { + pub ID: ImGuiID, + pub Flags: ImGuiTableFlags, + pub RawData: *mut cty::c_void, + pub TempData: *mut ImGuiTableTempData, + pub Columns: ImSpan_ImGuiTableColumn, + pub DisplayOrderToIndex: ImSpan_ImGuiTableColumnIdx, + pub RowCellData: ImSpan_ImGuiTableCellData, + pub EnabledMaskByDisplayOrder: ImU64, + pub EnabledMaskByIndex: ImU64, + pub VisibleMaskByIndex: ImU64, + pub RequestOutputMaskByIndex: ImU64, + pub SettingsLoadedFlags: ImGuiTableFlags, + pub SettingsOffset: cty::c_int, + pub LastFrameActive: cty::c_int, + pub ColumnsCount: cty::c_int, + pub CurrentRow: cty::c_int, + pub CurrentColumn: cty::c_int, + pub InstanceCurrent: ImS16, + pub InstanceInteracted: ImS16, + pub RowPosY1: f32, + pub RowPosY2: f32, + pub RowMinHeight: f32, + pub RowTextBaseline: f32, + pub RowIndentOffsetX: f32, + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub RowBgColorCounter: cty::c_int, + pub RowBgColor: [ImU32; 2usize], + pub BorderColorStrong: ImU32, + pub BorderColorLight: ImU32, + pub BorderX1: f32, + pub BorderX2: f32, + pub HostIndentX: f32, + pub MinColumnWidth: f32, + pub OuterPaddingX: f32, + pub CellPaddingX: f32, + pub CellPaddingY: f32, + pub CellSpacingX1: f32, + pub CellSpacingX2: f32, + pub InnerWidth: f32, + pub ColumnsGivenWidth: f32, + pub ColumnsAutoFitWidth: f32, + pub ColumnsStretchSumWeights: f32, + pub ResizedColumnNextWidth: f32, + pub ResizeLockMinContentsX2: f32, + pub RefScale: f32, + pub OuterRect: ImRect, + pub InnerRect: ImRect, + pub WorkRect: ImRect, + pub InnerClipRect: ImRect, + pub BgClipRect: ImRect, + pub Bg0ClipRectForDrawCmd: ImRect, + pub Bg2ClipRectForDrawCmd: ImRect, + pub HostClipRect: ImRect, + pub HostBackupInnerClipRect: ImRect, + pub OuterWindow: *mut ImGuiWindow, + pub InnerWindow: *mut ImGuiWindow, + pub ColumnsNames: ImGuiTextBuffer, + pub DrawSplitter: *mut ImDrawListSplitter, + pub InstanceDataFirst: ImGuiTableInstanceData, + pub InstanceDataExtra: ImVector_ImGuiTableInstanceData, + pub SortSpecsSingle: ImGuiTableColumnSortSpecs, + pub SortSpecsMulti: ImVector_ImGuiTableColumnSortSpecs, + pub SortSpecs: ImGuiTableSortSpecs, + pub SortSpecsCount: ImGuiTableColumnIdx, + pub ColumnsEnabledCount: ImGuiTableColumnIdx, + pub ColumnsEnabledFixedCount: ImGuiTableColumnIdx, + pub DeclColumnsCount: ImGuiTableColumnIdx, + pub HoveredColumnBody: ImGuiTableColumnIdx, + pub HoveredColumnBorder: ImGuiTableColumnIdx, + pub AutoFitSingleColumn: ImGuiTableColumnIdx, + pub ResizedColumn: ImGuiTableColumnIdx, + pub LastResizedColumn: ImGuiTableColumnIdx, + pub HeldHeaderColumn: ImGuiTableColumnIdx, + pub ReorderColumn: ImGuiTableColumnIdx, + pub ReorderColumnDir: ImGuiTableColumnIdx, + pub LeftMostEnabledColumn: ImGuiTableColumnIdx, + pub RightMostEnabledColumn: ImGuiTableColumnIdx, + pub LeftMostStretchedColumn: ImGuiTableColumnIdx, + pub RightMostStretchedColumn: ImGuiTableColumnIdx, + pub ContextPopupColumn: ImGuiTableColumnIdx, + pub FreezeRowsRequest: ImGuiTableColumnIdx, + pub FreezeRowsCount: ImGuiTableColumnIdx, + pub FreezeColumnsRequest: ImGuiTableColumnIdx, + pub FreezeColumnsCount: ImGuiTableColumnIdx, + pub RowCellDataCurrent: ImGuiTableColumnIdx, + pub DummyDrawChannel: ImGuiTableDrawChannelIdx, + pub Bg2DrawChannelCurrent: ImGuiTableDrawChannelIdx, + pub Bg2DrawChannelUnfrozen: ImGuiTableDrawChannelIdx, + pub IsLayoutLocked: bool, + pub IsInsideRow: bool, + pub IsInitializing: bool, + pub IsSortSpecsDirty: bool, + pub IsUsingHeaders: bool, + pub IsContextPopupOpen: bool, + pub IsSettingsRequestLoad: bool, + pub IsSettingsDirty: bool, + pub IsDefaultDisplayOrder: bool, + pub IsResetAllRequest: bool, + pub IsResetDisplayOrderRequest: bool, + pub IsUnfrozenRows: bool, + pub IsDefaultSizingPolicy: bool, + pub MemoryCompacted: bool, + pub HostSkipItems: bool, +} +impl Default for ImGuiTable { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl ImGuiTable { + #[inline] + pub fn RowFlags(&self) -> ImGuiTableRowFlags { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_RowFlags(&mut self, val: ImGuiTableRowFlags) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn LastRowFlags(&self) -> ImGuiTableRowFlags { + unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_LastRowFlags(&mut self, val: ImGuiTableRowFlags) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + RowFlags: ImGuiTableRowFlags, + LastRowFlags: ImGuiTableRowFlags, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let RowFlags: u32 = unsafe { ::core::mem::transmute(RowFlags) }; + RowFlags as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let LastRowFlags: u32 = unsafe { ::core::mem::transmute(LastRowFlags) }; + LastRowFlags as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct ImGuiTableTempData { + pub TableIndex: cty::c_int, + pub LastTimeActive: f32, + pub UserOuterSize: ImVec2, + pub DrawSplitter: ImDrawListSplitter, + pub HostBackupWorkRect: ImRect, + pub HostBackupParentWorkRect: ImRect, + pub HostBackupPrevLineSize: ImVec2, + pub HostBackupCurrLineSize: ImVec2, + pub HostBackupCursorMaxPos: ImVec2, + pub HostBackupColumnsOffset: ImVec1, + pub HostBackupItemWidth: f32, + pub HostBackupItemWidthStackSize: cty::c_int, +} +impl Default for ImGuiTableTempData { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableColumnSettings { + pub WidthOrWeight: f32, + pub UserID: ImGuiID, + pub Index: ImGuiTableColumnIdx, + pub DisplayOrder: ImGuiTableColumnIdx, + pub SortOrder: ImGuiTableColumnIdx, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +} +impl ImGuiTableColumnSettings { + #[inline] + pub fn SortDirection(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u8) } + } + #[inline] + pub fn set_SortDirection(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(0usize, 2u8, val as u64) + } + } + #[inline] + pub fn IsEnabled(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsEnabled(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsStretch(&self) -> ImU8 { + unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) } + } + #[inline] + pub fn set_IsStretch(&mut self, val: ImU8) { + unsafe { + let val: u8 = ::core::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SortDirection: ImU8, + IsEnabled: ImU8, + IsStretch: ImU8, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 2u8, { + let SortDirection: u8 = unsafe { ::core::mem::transmute(SortDirection) }; + SortDirection as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let IsEnabled: u8 = unsafe { ::core::mem::transmute(IsEnabled) }; + IsEnabled as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let IsStretch: u8 = unsafe { ::core::mem::transmute(IsStretch) }; + IsStretch as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq)] +pub struct ImGuiTableSettings { + pub ID: ImGuiID, + pub SaveFlags: ImGuiTableFlags, + pub RefScale: f32, + pub ColumnsCount: ImGuiTableColumnIdx, + pub ColumnsCountMax: ImGuiTableColumnIdx, + pub WantApply: bool, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] +pub struct ImFontBuilderIO { + pub FontBuilder_Build: + ::core::option::Option bool>, +} +pub const ImGuiFreeTypeBuilderFlags_NoHinting: ImGuiFreeTypeBuilderFlags = 1; +pub const ImGuiFreeTypeBuilderFlags_NoAutoHint: ImGuiFreeTypeBuilderFlags = 2; +pub const ImGuiFreeTypeBuilderFlags_ForceAutoHint: ImGuiFreeTypeBuilderFlags = 4; +pub const ImGuiFreeTypeBuilderFlags_LightHinting: ImGuiFreeTypeBuilderFlags = 8; +pub const ImGuiFreeTypeBuilderFlags_MonoHinting: ImGuiFreeTypeBuilderFlags = 16; +pub const ImGuiFreeTypeBuilderFlags_Bold: ImGuiFreeTypeBuilderFlags = 32; +pub const ImGuiFreeTypeBuilderFlags_Oblique: ImGuiFreeTypeBuilderFlags = 64; +pub const ImGuiFreeTypeBuilderFlags_Monochrome: ImGuiFreeTypeBuilderFlags = 128; +pub const ImGuiFreeTypeBuilderFlags_LoadColor: ImGuiFreeTypeBuilderFlags = 256; +pub const ImGuiFreeTypeBuilderFlags_Bitmap: ImGuiFreeTypeBuilderFlags = 512; +pub type ImGuiFreeTypeBuilderFlags = cty::c_uint; +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec2_ImVec2_Nil() -> *mut ImVec2; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec2_destroy(self_: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec2_ImVec2_Float(_x: f32, _y: f32) -> *mut ImVec2; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec4_ImVec4_Nil() -> *mut ImVec4; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec4_destroy(self_: *mut ImVec4); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImVec4_ImVec4_Float(_x: f32, _y: f32, _z: f32, _w: f32) -> *mut ImVec4; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCreateContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDestroyContext(ctx: *mut ImGuiContext); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCurrentContext() -> *mut ImGuiContext; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCurrentContext(ctx: *mut ImGuiContext); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetIO() -> *mut ImGuiIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStyle() -> *mut ImGuiStyle; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igNewFrame(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndFrame(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRender(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetDrawData() -> *mut ImDrawData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowDemoWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowMetricsWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowDebugLogWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowStackToolWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowAboutWindow(p_open: *mut bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowStyleEditor(ref_: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowStyleSelector(label: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowFontSelector(label: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igShowUserGuide(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetVersion() -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igStyleColorsDark(dst: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igStyleColorsLight(dst: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igStyleColorsClassic(dst: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBegin(name: *const cty::c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEnd(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginChild_Str( + str_id: *const cty::c_char, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginChild_ID( + id: ImGuiID, + size: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndChild(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowAppearing() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowCollapsed() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowFocused(flags: ImGuiFocusedFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowHovered(flags: ImGuiHoveredFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowDrawList() -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowDpiScale() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowSize(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowWidth() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowHeight() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowViewport() -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowPos(pos: ImVec2, cond: ImGuiCond, pivot: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowSize(size: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowSizeConstraints( + size_min: ImVec2, + size_max: ImVec2, + custom_callback: ImGuiSizeCallback, + custom_callback_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowContentSize(size: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowCollapsed(collapsed: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowFocus(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowScroll(scroll: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowBgAlpha(alpha: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowViewport(viewport_id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowFocus_Nil(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowFontScale(scale: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetWindowFocus_Str(name: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetContentRegionAvail(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetContentRegionMax(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowContentRegionMin(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowContentRegionMax(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollX() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollY() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollX_Float(scroll_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollY_Float(scroll_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollMaxX() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetScrollMaxY() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollHereX(center_x_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollHereY(center_y_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollFromPosX_Float(local_x: f32, center_x_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetScrollFromPosY_Float(local_y: f32, center_y_ratio: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushFont(font: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopFont(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopStyleColor(count: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopStyleVar(count: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushAllowKeyboardFocus(allow_keyboard_focus: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopAllowKeyboardFocus(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushButtonRepeat(repeat: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopButtonRepeat(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushItemWidth(item_width: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopItemWidth(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextItemWidth(item_width: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCalcItemWidth() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushTextWrapPos(wrap_local_pos_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopTextWrapPos(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFont() -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFontSize() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColorU32_U32(col: ImU32) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSeparator(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSameLine(offset_from_start_x: f32, spacing: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igNewLine(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSpacing(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDummy(size: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIndent(indent_w: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igUnindent(indent_w: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginGroup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndGroup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorPosX() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorPosY() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorPos(local_pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorPosX(local_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorPosY(local_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorStartPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCursorScreenPos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetCursorScreenPos(pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igAlignTextToFramePadding(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTextLineHeight() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTextLineHeightWithSpacing() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFrameHeight() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFrameHeightWithSpacing() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_Str(str_id: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_Ptr(ptr_id: *const cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushID_Int(int_id: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopID(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetID_StrStr( + str_id_begin: *const cty::c_char, + str_id_end: *const cty::c_char, + ) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igText(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextColored(col: ImVec4, fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextDisabled(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTextWrapped(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLabelText(label: *const cty::c_char, fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBulletText(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igButton(label: *const cty::c_char, size: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSmallButton(label: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInvisibleButton( + str_id: *const cty::c_char, + size: ImVec2, + flags: ImGuiButtonFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCheckboxFlags_IntPtr( + label: *const cty::c_char, + flags: *mut cty::c_int, + flags_value: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCheckboxFlags_UintPtr( + label: *const cty::c_char, + flags: *mut cty::c_uint, + flags_value: cty::c_uint, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRadioButton_IntPtr( + label: *const cty::c_char, + v: *mut cty::c_int, + v_button: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBullet(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImage( + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + border_col: ImVec4, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImageButton( + str_id: *const cty::c_char, + user_texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginCombo( + label: *const cty::c_char, + preview_value: *const cty::c_char, + flags: ImGuiComboFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndCombo(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCombo_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCombo_Str( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_separated_by_zeros: *const cty::c_char, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCombo_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + popup_max_height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat2( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat3( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloat4( + label: *const cty::c_char, + v: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragFloatRange2( + label: *const cty::c_char, + v_current_min: *mut f32, + v_current_max: *mut f32, + v_speed: f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragIntRange2( + label: *const cty::c_char, + v_current_min: *mut cty::c_int, + v_current_max: *mut cty::c_int, + v_speed: f32, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + format_max: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDragScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat2( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat3( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderFloat4( + label: *const cty::c_char, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderAngle( + label: *const cty::c_char, + v_rad: *mut f32, + v_degrees_min: f32, + v_degrees_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSliderScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igVSliderFloat( + label: *const cty::c_char, + size: ImVec2, + v: *mut f32, + v_min: f32, + v_max: f32, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igVSliderInt( + label: *const cty::c_char, + size: ImVec2, + v: *mut cty::c_int, + v_min: cty::c_int, + v_max: cty::c_int, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igVSliderScalar( + label: *const cty::c_char, + size: ImVec2, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputText( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputTextMultiline( + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + size: ImVec2, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputTextWithHint( + label: *const cty::c_char, + hint: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat( + label: *const cty::c_char, + v: *mut f32, + step: f32, + step_fast: f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat2( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat3( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputFloat4( + label: *const cty::c_char, + v: *mut f32, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt( + label: *const cty::c_char, + v: *mut cty::c_int, + step: cty::c_int, + step_fast: cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt2( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt3( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputInt4( + label: *const cty::c_char, + v: *mut cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputDouble( + label: *const cty::c_char, + v: *mut f64, + step: f64, + step_fast: f64, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputScalar( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igInputScalarN( + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + components: cty::c_int, + p_step: *const cty::c_void, + p_step_fast: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiInputTextFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorEdit3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorEdit4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorPicker3( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorPicker4( + label: *const cty::c_char, + col: *mut f32, + flags: ImGuiColorEditFlags, + ref_col: *const f32, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorButton( + desc_id: *const cty::c_char, + col: ImVec4, + flags: ImGuiColorEditFlags, + size: ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeEx_StrStr( + str_id: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeEx_Ptr( + ptr_id: *const cty::c_void, + flags: ImGuiTreeNodeFlags, + fmt: *const cty::c_char, + ... + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePush_Str(str_id: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePop(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTreeNodeToLabelSpacing() -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCollapsingHeader_TreeNodeFlags( + label: *const cty::c_char, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCollapsingHeader_BoolPtr( + label: *const cty::c_char, + p_visible: *mut bool, + flags: ImGuiTreeNodeFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSelectable_Bool( + label: *const cty::c_char, + selected: bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSelectable_BoolPtr( + label: *const cty::c_char, + p_selected: *mut bool, + flags: ImGuiSelectableFlags, + size: ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginListBox(label: *const cty::c_char, size: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndListBox(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igListBox_Str_arr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items: *const *const cty::c_char, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igListBox_FnBoolPtr( + label: *const cty::c_char, + current_item: *mut cty::c_int, + items_getter: ::core::option::Option< + unsafe extern "C" fn( + data: *mut cty::c_void, + idx: cty::c_int, + out_text: *mut *const cty::c_char, + ) -> bool, + >, + data: *mut cty::c_void, + items_count: cty::c_int, + height_in_items: cty::c_int, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotLines_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotLines_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotHistogram_FloatPtr( + label: *const cty::c_char, + values: *const f32, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + stride: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPlotHistogram_FnFloatPtr( + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + graph_size: ImVec2, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginMenuBar() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndMenuBar(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginMainMenuBar() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndMainMenuBar(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginMenu(label: *const cty::c_char, enabled: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndMenu(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMenuItem_Bool( + label: *const cty::c_char, + shortcut: *const cty::c_char, + selected: bool, + enabled: bool, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMenuItem_BoolPtr( + label: *const cty::c_char, + shortcut: *const cty::c_char, + p_selected: *mut bool, + enabled: bool, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTooltip(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTooltip(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetTooltip(fmt: *const cty::c_char, ...); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopup(str_id: *const cty::c_char, flags: ImGuiWindowFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupModal( + name: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiWindowFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndPopup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCloseCurrentPopup(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupContextItem( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupContextWindow( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginPopupContextVoid( + str_id: *const cty::c_char, + popup_flags: ImGuiPopupFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsPopupOpen_Str(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTable( + str_id: *const cty::c_char, + column: cty::c_int, + flags: ImGuiTableFlags, + outer_size: ImVec2, + inner_width: f32, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTable(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableNextRow(row_flags: ImGuiTableRowFlags, min_row_height: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableNextColumn() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetColumnIndex(column_n: cty::c_int) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetupColumn( + label: *const cty::c_char, + flags: ImGuiTableColumnFlags, + init_width_or_weight: f32, + user_id: ImGuiID, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetupScrollFreeze(cols: cty::c_int, rows: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableHeadersRow(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableHeader(label: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetSortSpecs() -> *mut ImGuiTableSortSpecs; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnCount() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnIndex() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetRowIndex() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnName_Int(column_n: cty::c_int) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetColumnEnabled(column_n: cty::c_int, v: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColumns(count: cty::c_int, id: *const cty::c_char, border: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igNextColumn(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnIndex() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnWidth(column_index: cty::c_int) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetColumnWidth(column_index: cty::c_int, width: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnOffset(column_index: cty::c_int) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetColumnOffset(column_index: cty::c_int, offset_x: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetColumnsCount() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTabBar(str_id: *const cty::c_char, flags: ImGuiTabBarFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTabBar(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginTabItem( + label: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiTabItemFlags, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndTabItem(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTabItemButton(label: *const cty::c_char, flags: ImGuiTabItemFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetTabItemClosed(tab_or_docked_window_label: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDockSpace( + id: ImGuiID, + size: ImVec2, + flags: ImGuiDockNodeFlags, + window_class: *const ImGuiWindowClass, + ) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDockSpaceOverViewport( + viewport: *const ImGuiViewport, + flags: ImGuiDockNodeFlags, + window_class: *const ImGuiWindowClass, + ) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowDockID(dock_id: ImGuiID, cond: ImGuiCond); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextWindowClass(window_class: *const ImGuiWindowClass); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetWindowDockID() -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsWindowDocked() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogToTTY(auto_open_depth: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogToFile(auto_open_depth: cty::c_int, filename: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogToClipboard(auto_open_depth: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogFinish(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLogButtons(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginDragDropSource(flags: ImGuiDragDropFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetDragDropPayload( + type_: *const cty::c_char, + data: *const cty::c_void, + sz: usize, + cond: ImGuiCond, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndDragDropSource(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginDragDropTarget() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igAcceptDragDropPayload( + type_: *const cty::c_char, + flags: ImGuiDragDropFlags, + ) -> *const ImGuiPayload; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndDragDropTarget(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetDragDropPayload() -> *const ImGuiPayload; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginDisabled(disabled: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndDisabled(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushClipRect( + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPopClipRect(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetItemDefaultFocus(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetKeyboardFocusHere(offset: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemHovered(flags: ImGuiHoveredFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemActive() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemFocused() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemClicked(mouse_button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemVisible() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemEdited() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemActivated() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemDeactivated() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemDeactivatedAfterEdit() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsItemToggledOpen() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyItemHovered() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyItemActive() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyItemFocused() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetItemRectMin(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetItemRectMax(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetItemRectSize(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetItemAllowOverlap(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMainViewport() -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetBackgroundDrawList_Nil() -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetForegroundDrawList_Nil() -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetBackgroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetForegroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetTime() -> f64; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetFrameCount() -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStyleColorName(idx: ImGuiCol) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetStateStorage(storage: *mut ImGuiStorage); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetStateStorage() -> *mut ImGuiStorage; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igBeginChildFrame(id: ImGuiID, size: ImVec2, flags: ImGuiWindowFlags) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igEndChildFrame(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igCalcTextSize( + pOut: *mut ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + hide_text_after_double_hash: bool, + wrap_width: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertU32ToFloat4(pOut: *mut ImVec4, in_: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertFloat4ToU32(in_: ImVec4) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertRGBtoHSV( + r: f32, + g: f32, + b: f32, + out_h: *mut f32, + out_s: *mut f32, + out_v: *mut f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igColorConvertHSVtoRGB( + h: f32, + s: f32, + v: f32, + out_r: *mut f32, + out_g: *mut f32, + out_b: *mut f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyDown_Nil(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyPressed_Bool(key: ImGuiKey, repeat: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsKeyReleased_Nil(key: ImGuiKey) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDown_Nil(button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseClicked_Bool(button: ImGuiMouseButton, repeat: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseReleased_Nil(button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMousePosValid(mouse_pos: *const ImVec2) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsAnyMouseDown() -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMousePos(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMousePosOnOpeningCurrentPopup(pOut: *mut ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsMouseDragging(button: ImGuiMouseButton, lock_threshold: f32) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMouseDragDelta(pOut: *mut ImVec2, button: ImGuiMouseButton, lock_threshold: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igResetMouseDragDelta(button: ImGuiMouseButton); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetMouseCursor() -> ImGuiMouseCursor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetClipboardText() -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetClipboardText(text: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLoadIniSettingsFromDisk(ini_filename: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igLoadIniSettingsFromMemory(ini_data: *const cty::c_char, ini_size: usize); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSaveIniSettingsToDisk(ini_filename: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugTextEncoding(text: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDebugCheckVersionAndDataLayout( + version_str: *const cty::c_char, + sz_io: usize, + sz_style: usize, + sz_vec2: usize, + sz_vec4: usize, + sz_drawvert: usize, + sz_drawidx: usize, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igSetAllocatorFunctions( + alloc_func: ImGuiMemAllocFunc, + free_func: ImGuiMemFreeFunc, + user_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetAllocatorFunctions( + p_alloc_func: *mut ImGuiMemAllocFunc, + p_free_func: *mut ImGuiMemFreeFunc, + p_user_data: *mut *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMemAlloc(size: usize) -> *mut cty::c_void; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igMemFree(ptr: *mut cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetPlatformIO() -> *mut ImGuiPlatformIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igUpdatePlatformWindows(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRenderPlatformWindowsDefault( + platform_render_arg: *mut cty::c_void, + renderer_render_arg: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igDestroyPlatformWindows(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igFindViewportByID(id: ImGuiID) -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igFindViewportByPlatformHandle(platform_handle: *mut cty::c_void) -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyle_ImGuiStyle() -> *mut ImGuiStyle; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyle_destroy(self_: *mut ImGuiStyle); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddMouseViewportEvent(self_: *mut ImGuiIO, id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_SetKeyEventNativeData( + self_: *mut ImGuiIO, + key: ImGuiKey, + native_keycode: cty::c_int, + native_scancode: cty::c_int, + native_legacy_index: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_ClearInputKeys(self_: *mut ImGuiIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_ImGuiIO() -> *mut ImGuiIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiIO_destroy(self_: *mut ImGuiIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_ImGuiInputTextCallbackData() -> *mut ImGuiInputTextCallbackData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_destroy(self_: *mut ImGuiInputTextCallbackData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_DeleteChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + bytes_count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_InsertChars( + self_: *mut ImGuiInputTextCallbackData, + pos: cty::c_int, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_SelectAll(self_: *mut ImGuiInputTextCallbackData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_ClearSelection(self_: *mut ImGuiInputTextCallbackData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiInputTextCallbackData_HasSelection(self_: *mut ImGuiInputTextCallbackData) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiWindowClass_ImGuiWindowClass() -> *mut ImGuiWindowClass; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiWindowClass_destroy(self_: *mut ImGuiWindowClass); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_ImGuiPayload() -> *mut ImGuiPayload; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_destroy(self_: *mut ImGuiPayload); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_IsDataType(self_: *mut ImGuiPayload, type_: *const cty::c_char) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_IsPreview(self_: *mut ImGuiPayload) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPayload_IsDelivery(self_: *mut ImGuiPayload) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs() -> *mut ImGuiTableColumnSortSpecs; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableColumnSortSpecs_destroy(self_: *mut ImGuiTableColumnSortSpecs); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableSortSpecs_ImGuiTableSortSpecs() -> *mut ImGuiTableSortSpecs; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTableSortSpecs_destroy(self_: *mut ImGuiTableSortSpecs); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiOnceUponAFrame_ImGuiOnceUponAFrame() -> *mut ImGuiOnceUponAFrame; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiOnceUponAFrame_destroy(self_: *mut ImGuiOnceUponAFrame); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_ImGuiTextFilter( + default_filter: *const cty::c_char, + ) -> *mut ImGuiTextFilter; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_destroy(self_: *mut ImGuiTextFilter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_Draw( + self_: *mut ImGuiTextFilter, + label: *const cty::c_char, + width: f32, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_PassFilter( + self_: *mut ImGuiTextFilter, + text: *const cty::c_char, + text_end: *const cty::c_char, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_Build(self_: *mut ImGuiTextFilter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_Clear(self_: *mut ImGuiTextFilter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_ImGuiTextRange_Str( + _b: *const cty::c_char, + _e: *const cty::c_char, + ) -> *mut ImGuiTextRange; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_empty(self_: *mut ImGuiTextRange) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextRange_split( + self_: *mut ImGuiTextRange, + separator: cty::c_char, + out: *mut ImVector_ImGuiTextRange, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_ImGuiTextBuffer() -> *mut ImGuiTextBuffer; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_destroy(self_: *mut ImGuiTextBuffer); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_empty(self_: *mut ImGuiTextBuffer) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextBuffer_append( + self_: *mut ImGuiTextBuffer, + str_: *const cty::c_char, + str_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Int( + _key: ImGuiID, + _val_i: cty::c_int, + ) -> *mut ImGuiStoragePair; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Float( + _key: ImGuiID, + _val_f: f32, + ) -> *mut ImGuiStoragePair; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( + _key: ImGuiID, + _val_p: *mut cty::c_void, + ) -> *mut ImGuiStoragePair; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_Clear(self_: *mut ImGuiStorage); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetInt( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetBool(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetBool(self_: *mut ImGuiStorage, key: ImGuiID, val: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetFloat(self_: *mut ImGuiStorage, key: ImGuiID, default_val: f32) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut cty::c_void; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut cty::c_void); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetIntRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: cty::c_int, + ) -> *mut cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetBoolRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: bool, + ) -> *mut bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetFloatRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: f32, + ) -> *mut f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_GetVoidPtrRef( + self_: *mut ImGuiStorage, + key: ImGuiID, + default_val: *mut cty::c_void, + ) -> *mut *mut cty::c_void; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_ImGuiListClipper() -> *mut ImGuiListClipper; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_destroy(self_: *mut ImGuiListClipper); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_Begin( + self_: *mut ImGuiListClipper, + items_count: cty::c_int, + items_height: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_End(self_: *mut ImGuiListClipper); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_Step(self_: *mut ImGuiListClipper) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiListClipper_ForceDisplayRangeByIndices( + self_: *mut ImGuiListClipper, + item_min: cty::c_int, + item_max: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Nil() -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_destroy(self_: *mut ImColor); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_Int( + r: cty::c_int, + g: cty::c_int, + b: cty::c_int, + a: cty::c_int, + ) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImColor_HSV(pOut: *mut ImColor, h: f32, s: f32, v: f32, a: f32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawCmd_ImDrawCmd() -> *mut ImDrawCmd; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawCmd_destroy(self_: *mut ImDrawCmd); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawCmd_GetTexID(self_: *mut ImDrawCmd) -> ImTextureID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_ImDrawListSplitter() -> *mut ImDrawListSplitter; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_destroy(self_: *mut ImDrawListSplitter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_Clear(self_: *mut ImDrawListSplitter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_ClearFreeMemory(self_: *mut ImDrawListSplitter); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_Split( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_Merge(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSplitter_SetCurrentChannel( + self_: *mut ImDrawListSplitter, + draw_list: *mut ImDrawList, + channel_idx: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_destroy(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PushClipRect( + self_: *mut ImDrawList, + clip_rect_min: ImVec2, + clip_rect_max: ImVec2, + intersect_with_current_clip_rect: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PushClipRectFullScreen(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PopClipRect(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PushTextureID(self_: *mut ImDrawList, texture_id: ImTextureID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PopTextureID(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_GetClipRectMin(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_GetClipRectMax(pOut: *mut ImVec2, self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddLine( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + col: ImU32, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddRect( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddRectFilled( + self_: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + 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, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddQuad( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddQuadFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddTriangle( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddTriangleFilled( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddCircle( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddCircleFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddNgon( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddNgonFilled( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + col: ImU32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddText_Vec2( + self_: *mut ImDrawList, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddText_FontPtr( + self_: *mut ImDrawList, + font: *const ImFont, + font_size: f32, + pos: ImVec2, + col: ImU32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip_rect: *const ImVec4, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddPolyline( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddConvexPolyFilled( + self_: *mut ImDrawList, + points: *const ImVec2, + num_points: cty::c_int, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddBezierCubic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddBezierQuadratic( + self_: *mut ImDrawList, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + col: ImU32, + thickness: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddImage( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddImageQuad( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + uv1: ImVec2, + uv2: ImVec2, + uv3: ImVec2, + uv4: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddImageRounded( + self_: *mut ImDrawList, + user_texture_id: ImTextureID, + p_min: ImVec2, + p_max: ImVec2, + uv_min: ImVec2, + uv_max: ImVec2, + col: ImU32, + rounding: f32, + flags: ImDrawFlags, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathClear(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathLineTo(self_: *mut ImDrawList, pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathLineToMergeDuplicate(self_: *mut ImDrawList, pos: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathStroke( + self_: *mut ImDrawList, + col: ImU32, + flags: ImDrawFlags, + thickness: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathArcTo( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathArcToFast( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_of_12: cty::c_int, + a_max_of_12: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathBezierCubicCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathBezierQuadraticCurveTo( + self_: *mut ImDrawList, + p2: ImVec2, + p3: ImVec2, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PathRect( + self_: *mut ImDrawList, + rect_min: ImVec2, + rect_max: ImVec2, + rounding: f32, + flags: ImDrawFlags, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddCallback( + self_: *mut ImDrawList, + callback: ImDrawCallback, + callback_data: *mut cty::c_void, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_AddDrawCmd(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_CloneOutput(self_: *mut ImDrawList) -> *mut ImDrawList; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimReserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimUnreserve( + self_: *mut ImDrawList, + idx_count: cty::c_int, + vtx_count: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimRect(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimRectUV( + self_: *mut ImDrawList, + a: ImVec2, + b: ImVec2, + uv_a: ImVec2, + uv_b: ImVec2, + col: ImU32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + 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, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimWriteVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimWriteIdx(self_: *mut ImDrawList, idx: ImDrawIdx); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList_PrimVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__ResetForNewFrame(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__ClearFreeMemory(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__PopUnusedDrawCmd(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__TryMergeDrawCmds(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__OnChangedClipRect(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__OnChangedTextureID(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__CalcCircleAutoSegmentCount( + self_: *mut ImDrawList, + radius: f32, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__PathArcToFastEx( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min_sample: cty::c_int, + a_max_sample: cty::c_int, + a_step: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawList__PathArcToN( + self_: *mut ImDrawList, + center: ImVec2, + radius: f32, + a_min: f32, + a_max: f32, + num_segments: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_ImDrawData() -> *mut ImDrawData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_destroy(self_: *mut ImDrawData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_Clear(self_: *mut ImDrawData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_DeIndexAllBuffers(self_: *mut ImDrawData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawData_ScaleClipRects(self_: *mut ImDrawData, fb_scale: ImVec2); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontConfig_ImFontConfig() -> *mut ImFontConfig; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontConfig_destroy(self_: *mut ImFontConfig); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder() -> *mut ImFontGlyphRangesBuilder; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_destroy(self_: *mut ImFontGlyphRangesBuilder); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_Clear(self_: *mut ImFontGlyphRangesBuilder); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_GetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_SetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddChar(self_: *mut ImFontGlyphRangesBuilder, c: ImWchar); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddText( + self_: *mut ImFontGlyphRangesBuilder, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_AddRanges( + self_: *mut ImFontGlyphRangesBuilder, + ranges: *const ImWchar, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontGlyphRangesBuilder_BuildRanges( + self_: *mut ImFontGlyphRangesBuilder, + out_ranges: *mut ImVector_ImWchar, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlasCustomRect_ImFontAtlasCustomRect() -> *mut ImFontAtlasCustomRect; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlasCustomRect_destroy(self_: *mut ImFontAtlasCustomRect); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlasCustomRect_IsPacked(self_: *mut ImFontAtlasCustomRect) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ImFontAtlas() -> *mut ImFontAtlas; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_destroy(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFont( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontDefault( + self_: *mut ImFontAtlas, + font_cfg: *const ImFontConfig, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromFileTTF( + self_: *mut ImFontAtlas, + filename: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryTTF( + self_: *mut ImFontAtlas, + font_data: *mut cty::c_void, + font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF( + self_: *mut ImFontAtlas, + compressed_font_data: *const cty::c_void, + compressed_font_size: cty::c_int, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF( + self_: *mut ImFontAtlas, + compressed_font_data_base85: *const cty::c_char, + size_pixels: f32, + font_cfg: *const ImFontConfig, + glyph_ranges: *const ImWchar, + ) -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ClearInputData(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ClearTexData(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_ClearFonts(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_Clear(self_: *mut ImFontAtlas); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_Build(self_: *mut ImFontAtlas) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetTexDataAsAlpha8( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetTexDataAsRGBA32( + self_: *mut ImFontAtlas, + out_pixels: *mut *mut cty::c_uchar, + out_width: *mut cty::c_int, + out_height: *mut cty::c_int, + out_bytes_per_pixel: *mut cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_IsBuilt(self_: *mut ImFontAtlas) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_SetTexID(self_: *mut ImFontAtlas, id: ImTextureID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesJapanese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseFull(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon( + self_: *mut ImFontAtlas, + ) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesCyrillic(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesThai(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetGlyphRangesVietnamese(self_: *mut ImFontAtlas) -> *const ImWchar; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddCustomRectRegular( + self_: *mut ImFontAtlas, + width: cty::c_int, + height: cty::c_int, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_AddCustomRectFontGlyph( + self_: *mut ImFontAtlas, + font: *mut ImFont, + id: ImWchar, + width: cty::c_int, + height: cty::c_int, + advance_x: f32, + offset: ImVec2, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetCustomRectByIndex( + self_: *mut ImFontAtlas, + index: cty::c_int, + ) -> *mut ImFontAtlasCustomRect; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_CalcCustomRectUV( + self_: *mut ImFontAtlas, + rect: *const ImFontAtlasCustomRect, + out_uv_min: *mut ImVec2, + out_uv_max: *mut ImVec2, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFontAtlas_GetMouseCursorTexData( + self_: *mut ImFontAtlas, + cursor: ImGuiMouseCursor, + out_offset: *mut ImVec2, + out_size: *mut ImVec2, + out_uv_border: *mut ImVec2, + out_uv_fill: *mut ImVec2, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_ImFont() -> *mut ImFont; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_destroy(self_: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_FindGlyph(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_FindGlyphNoFallback(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_GetCharAdvance(self_: *mut ImFont, c: ImWchar) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_IsLoaded(self_: *mut ImFont) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_CalcTextSizeA( + pOut: *mut ImVec2, + self_: *mut ImFont, + size: f32, + max_width: f32, + wrap_width: f32, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + remaining: *mut *const cty::c_char, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_CalcWordWrapPositionA( + self_: *mut ImFont, + scale: f32, + text: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + ) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_RenderChar( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + c: ImWchar, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_RenderText( + self_: *mut ImFont, + draw_list: *mut ImDrawList, + size: f32, + pos: ImVec2, + col: ImU32, + clip_rect: ImVec4, + text_begin: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + cpu_fine_clip: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_BuildLookupTable(self_: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_ClearOutputData(self_: *mut ImFont); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_AddGlyph( + self_: *mut ImFont, + src_cfg: *const ImFontConfig, + c: ImWchar, + x0: f32, + y0: f32, + x1: f32, + y1: f32, + u0: f32, + v0: f32, + u1: f32, + v1: f32, + advance_x: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_AddRemapChar(self_: *mut ImFont, dst: ImWchar, src: ImWchar, overwrite_dst: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_SetGlyphVisible(self_: *mut ImFont, c: ImWchar, visible: bool); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImFont_IsGlyphRangeUnused( + self_: *mut ImFont, + c_begin: cty::c_uint, + c_last: cty::c_uint, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_ImGuiViewport() -> *mut ImGuiViewport; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_destroy(self_: *mut ImGuiViewport); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_GetCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformIO_ImGuiPlatformIO() -> *mut ImGuiPlatformIO; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformIO_destroy(self_: *mut ImGuiPlatformIO); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformMonitor_ImGuiPlatformMonitor() -> *mut ImGuiPlatformMonitor; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformMonitor_destroy(self_: *mut ImGuiPlatformMonitor); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImHashData(data: *const cty::c_void, data_size: usize, seed: ImU32) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImHashStr(data: *const cty::c_char, data_size: usize, seed: ImU32) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImQsort( + base: *mut cty::c_void, + count: usize, + size_of_element: usize, + compare_func: ::core::option::Option< + unsafe extern "C" fn(arg1: *const cty::c_void, arg2: *const cty::c_void) -> cty::c_int, + >, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImAlphaBlendColors(col_a: ImU32, col_b: ImU32) -> ImU32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImIsPowerOfTwo_Int(v: cty::c_int) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImIsPowerOfTwo_U64(v: ImU64) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImUpperPowerOfTwo(v: cty::c_int) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImStricmp(str1: *const cty::c_char, str2: *const cty::c_char) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImStrnicmp( + str1: *const cty::c_char, + str2: *const cty::c_char, + count: usize, + ) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImStrncpy(dst: *mut cty::c_char, src: *const cty::c_char, count: usize); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImStrdup(str_: *const cty::c_char) -> *mut cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImStrdupcpy( + dst: *mut cty::c_char, + p_dst_size: *mut usize, + str_: *const cty::c_char, + ) -> *mut cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImStrchrRange( + str_begin: *const cty::c_char, + str_end: *const cty::c_char, + c: cty::c_char, + ) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImStrlenW(str_: *const ImWchar) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igImStreolRange( + str_: *const cty::c_char, + str_end: *const cty::c_char, + ) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igStyleColorsClassic(dst: *mut ImGuiStyle); + pub fn igImStrbolW(buf_mid_line: *const ImWchar, buf_begin: *const ImWchar) -> *const ImWchar; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBegin(name: *const cty::c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool; + pub fn igImStristr( + haystack: *const cty::c_char, + haystack_end: *const cty::c_char, + needle: *const cty::c_char, + needle_end: *const cty::c_char, + ) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEnd(); + pub fn igImStrTrimBlanks(str_: *mut cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginChild_Str( - str_id: *const cty::c_char, - size: ImVec2, - border: bool, - flags: ImGuiWindowFlags, - ) -> bool; + pub fn igImStrSkipBlank(str_: *const cty::c_char) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginChild_ID( - id: ImGuiID, - size: ImVec2, - border: bool, - flags: ImGuiWindowFlags, - ) -> bool; + pub fn igImToUpper(c: cty::c_char) -> cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndChild(); + pub fn igImCharIsBlankA(c: cty::c_char) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsWindowAppearing() -> bool; + pub fn igImCharIsBlankW(c: cty::c_uint) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsWindowCollapsed() -> bool; + pub fn igImFormatString( + buf: *mut cty::c_char, + buf_size: usize, + fmt: *const cty::c_char, + ... + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsWindowFocused(flags: ImGuiFocusedFlags) -> bool; + pub fn igImFormatStringToTempBuffer( + out_buf: *mut *const cty::c_char, + out_buf_end: *mut *const cty::c_char, + fmt: *const cty::c_char, + ... + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsWindowHovered(flags: ImGuiHoveredFlags) -> bool; + pub fn igImParseFormatFindStart(format: *const cty::c_char) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowDrawList() -> *mut ImDrawList; + pub fn igImParseFormatFindEnd(format: *const cty::c_char) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowDpiScale() -> f32; + pub fn igImParseFormatTrimDecorations( + format: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: usize, + ) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowPos(pOut: *mut ImVec2); + pub fn igImParseFormatSanitizeForPrinting( + fmt_in: *const cty::c_char, + fmt_out: *mut cty::c_char, + fmt_out_size: usize, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowSize(pOut: *mut ImVec2); + pub fn igImParseFormatSanitizeForScanning( + fmt_in: *const cty::c_char, + fmt_out: *mut cty::c_char, + fmt_out_size: usize, + ) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowWidth() -> f32; + pub fn igImParseFormatPrecision( + format: *const cty::c_char, + default_value: cty::c_int, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowHeight() -> f32; + pub fn igImTextCharToUtf8(out_buf: *mut cty::c_char, c: cty::c_uint) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowViewport() -> *mut ImGuiViewport; + pub fn igImTextStrToUtf8( + out_buf: *mut cty::c_char, + out_buf_size: cty::c_int, + in_text: *const ImWchar, + in_text_end: *const ImWchar, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowPos(pos: ImVec2, cond: ImGuiCond, pivot: ImVec2); + pub fn igImTextCharFromUtf8( + out_char: *mut cty::c_uint, + in_text: *const cty::c_char, + in_text_end: *const cty::c_char, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowSize(size: ImVec2, cond: ImGuiCond); + pub fn igImTextStrFromUtf8( + out_buf: *mut ImWchar, + out_buf_size: cty::c_int, + in_text: *const cty::c_char, + in_text_end: *const cty::c_char, + in_remaining: *mut *const cty::c_char, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowSizeConstraints( - size_min: ImVec2, - size_max: ImVec2, - custom_callback: ImGuiSizeCallback, - custom_callback_data: *mut cty::c_void, - ); + pub fn igImTextCountCharsFromUtf8( + in_text: *const cty::c_char, + in_text_end: *const cty::c_char, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowContentSize(size: ImVec2); + pub fn igImTextCountUtf8BytesFromChar( + in_text: *const cty::c_char, + in_text_end: *const cty::c_char, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowCollapsed(collapsed: bool, cond: ImGuiCond); + pub fn igImTextCountUtf8BytesFromStr( + in_text: *const ImWchar, + in_text_end: *const ImWchar, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowFocus(); + pub fn igImFileOpen(filename: *const cty::c_char, mode: *const cty::c_char) -> ImFileHandle; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowScroll(scroll: ImVec2); + pub fn igImFileClose(file: ImFileHandle) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowBgAlpha(alpha: f32); + pub fn igImFileGetSize(file: ImFileHandle) -> ImU64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowViewport(viewport_id: ImGuiID); + pub fn igImFileRead( + data: *mut cty::c_void, + size: ImU64, + count: ImU64, + file: ImFileHandle, + ) -> ImU64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowPos_Vec2(pos: ImVec2, cond: ImGuiCond); + pub fn igImFileWrite( + data: *const cty::c_void, + size: ImU64, + count: ImU64, + file: ImFileHandle, + ) -> ImU64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowSize_Vec2(size: ImVec2, cond: ImGuiCond); + pub fn igImFileLoadToMemory( + filename: *const cty::c_char, + mode: *const cty::c_char, + out_file_size: *mut usize, + padding_bytes: cty::c_int, + ) -> *mut cty::c_void; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowCollapsed_Bool(collapsed: bool, cond: ImGuiCond); + pub fn igImPow_Float(x: f32, y: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowFocus_Nil(); + pub fn igImPow_double(x: f64, y: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowFontScale(scale: f32); + pub fn igImLog_Float(x: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); + pub fn igImLog_double(x: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); + pub fn igImAbs_Int(x: cty::c_int) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); + pub fn igImAbs_Float(x: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetWindowFocus_Str(name: *const cty::c_char); + pub fn igImAbs_double(x: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetContentRegionAvail(pOut: *mut ImVec2); + pub fn igImSign_Float(x: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetContentRegionMax(pOut: *mut ImVec2); + pub fn igImSign_double(x: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowContentRegionMin(pOut: *mut ImVec2); + pub fn igImRsqrt_Float(x: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowContentRegionMax(pOut: *mut ImVec2); + pub fn igImRsqrt_double(x: f64) -> f64; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetScrollX() -> f32; + pub fn igImMin(pOut: *mut ImVec2, lhs: ImVec2, rhs: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetScrollY() -> f32; + pub fn igImMax(pOut: *mut ImVec2, lhs: ImVec2, rhs: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollX(scroll_x: f32); + pub fn igImClamp(pOut: *mut ImVec2, v: ImVec2, mn: ImVec2, mx: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollY(scroll_y: f32); + pub fn igImLerp_Vec2Float(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetScrollMaxX() -> f32; + pub fn igImLerp_Vec2Vec2(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, t: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetScrollMaxY() -> f32; + pub fn igImLerp_Vec4(pOut: *mut ImVec4, a: ImVec4, b: ImVec4, t: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollHereX(center_x_ratio: f32); + pub fn igImSaturate(f: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollHereY(center_y_ratio: f32); + pub fn igImLengthSqr_Vec2(lhs: ImVec2) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollFromPosX(local_x: f32, center_x_ratio: f32); + pub fn igImLengthSqr_Vec4(lhs: ImVec4) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetScrollFromPosY(local_y: f32, center_y_ratio: f32); + pub fn igImInvLength(lhs: ImVec2, fail_value: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushFont(font: *mut ImFont); + pub fn igImFloor_Float(f: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopFont(); + pub fn igImFloorSigned_Float(f: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleColor_U32(idx: ImGuiCol, col: ImU32); + pub fn igImFloor_Vec2(pOut: *mut ImVec2, v: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); + pub fn igImFloorSigned_Vec2(pOut: *mut ImVec2, v: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopStyleColor(count: cty::c_int); + pub fn igImModPositive(a: cty::c_int, b: cty::c_int) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); + pub fn igImDot(a: ImVec2, b: ImVec2) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushStyleVar_Vec2(idx: ImGuiStyleVar, val: ImVec2); + pub fn igImRotate(pOut: *mut ImVec2, v: ImVec2, cos_a: f32, sin_a: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopStyleVar(count: cty::c_int); + pub fn igImLinearSweep(current: f32, target: f32, speed: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushAllowKeyboardFocus(allow_keyboard_focus: bool); + pub fn igImMul(pOut: *mut ImVec2, lhs: ImVec2, rhs: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopAllowKeyboardFocus(); + pub fn igImIsFloatAboveGuaranteedIntegerPrecision(f: f32) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushButtonRepeat(repeat: bool); + pub fn igImBezierCubicCalc( + pOut: *mut ImVec2, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + t: f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopButtonRepeat(); + pub fn igImBezierCubicClosestPoint( + pOut: *mut ImVec2, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + p: ImVec2, + num_segments: cty::c_int, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushItemWidth(item_width: f32); + pub fn igImBezierCubicClosestPointCasteljau( + pOut: *mut ImVec2, + p1: ImVec2, + p2: ImVec2, + p3: ImVec2, + p4: ImVec2, + p: ImVec2, + tess_tol: f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopItemWidth(); + pub fn igImBezierQuadraticCalc(pOut: *mut ImVec2, p1: ImVec2, p2: ImVec2, p3: ImVec2, t: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextItemWidth(item_width: f32); + pub fn igImLineClosestPoint(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, p: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCalcItemWidth() -> f32; + pub fn igImTriangleContainsPoint(a: ImVec2, b: ImVec2, c: ImVec2, p: ImVec2) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushTextWrapPos(wrap_local_pos_x: f32); + pub fn igImTriangleClosestPoint(pOut: *mut ImVec2, a: ImVec2, b: ImVec2, c: ImVec2, p: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopTextWrapPos(); + pub fn igImTriangleBarycentricCoords( + a: ImVec2, + b: ImVec2, + c: ImVec2, + p: ImVec2, + out_u: *mut f32, + out_v: *mut f32, + out_w: *mut f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFont() -> *mut ImFont; + pub fn igImTriangleArea(a: ImVec2, b: ImVec2, c: ImVec2) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFontSize() -> f32; + pub fn igImGetDirQuadrantFromDelta(dx: f32, dy: f32) -> ImGuiDir; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFontTexUvWhitePixel(pOut: *mut ImVec2); + pub fn ImVec1_ImVec1_Nil() -> *mut ImVec1; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColorU32_Col(idx: ImGuiCol, alpha_mul: f32) -> ImU32; + pub fn ImVec1_destroy(self_: *mut ImVec1); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColorU32_Vec4(col: ImVec4) -> ImU32; + pub fn ImVec1_ImVec1_Float(_x: f32) -> *mut ImVec1; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColorU32_U32(col: ImU32) -> ImU32; + pub fn ImVec2ih_ImVec2ih_Nil() -> *mut ImVec2ih; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetStyleColorVec4(idx: ImGuiCol) -> *const ImVec4; + pub fn ImVec2ih_destroy(self_: *mut ImVec2ih); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSeparator(); + pub fn ImVec2ih_ImVec2ih_short(_x: cty::c_short, _y: cty::c_short) -> *mut ImVec2ih; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSameLine(offset_from_start_x: f32, spacing: f32); + pub fn ImVec2ih_ImVec2ih_Vec2(rhs: ImVec2) -> *mut ImVec2ih; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igNewLine(); + pub fn ImRect_ImRect_Nil() -> *mut ImRect; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSpacing(); + pub fn ImRect_destroy(self_: *mut ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDummy(size: ImVec2); + pub fn ImRect_ImRect_Vec2(min: ImVec2, max: ImVec2) -> *mut ImRect; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIndent(indent_w: f32); + pub fn ImRect_ImRect_Vec4(v: ImVec4) -> *mut ImRect; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igUnindent(indent_w: f32); + pub fn ImRect_ImRect_Float(x1: f32, y1: f32, x2: f32, y2: f32) -> *mut ImRect; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginGroup(); + pub fn ImRect_GetCenter(pOut: *mut ImVec2, self_: *mut ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndGroup(); + pub fn ImRect_GetSize(pOut: *mut ImVec2, self_: *mut ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetCursorPos(pOut: *mut ImVec2); + pub fn ImRect_GetWidth(self_: *mut ImRect) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetCursorPosX() -> f32; + pub fn ImRect_GetHeight(self_: *mut ImRect) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetCursorPosY() -> f32; + pub fn ImRect_GetArea(self_: *mut ImRect) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetCursorPos(local_pos: ImVec2); + pub fn ImRect_GetTL(pOut: *mut ImVec2, self_: *mut ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetCursorPosX(local_x: f32); + pub fn ImRect_GetTR(pOut: *mut ImVec2, self_: *mut ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetCursorPosY(local_y: f32); + pub fn ImRect_GetBL(pOut: *mut ImVec2, self_: *mut ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetCursorStartPos(pOut: *mut ImVec2); + pub fn ImRect_GetBR(pOut: *mut ImVec2, self_: *mut ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetCursorScreenPos(pOut: *mut ImVec2); + pub fn ImRect_Contains_Vec2(self_: *mut ImRect, p: ImVec2) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetCursorScreenPos(pos: ImVec2); + pub fn ImRect_Contains_Rect(self_: *mut ImRect, r: ImRect) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igAlignTextToFramePadding(); + pub fn ImRect_Overlaps(self_: *mut ImRect, r: ImRect) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetTextLineHeight() -> f32; + pub fn ImRect_Add_Vec2(self_: *mut ImRect, p: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetTextLineHeightWithSpacing() -> f32; + pub fn ImRect_Add_Rect(self_: *mut ImRect, r: ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFrameHeight() -> f32; + pub fn ImRect_Expand_Float(self_: *mut ImRect, amount: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFrameHeightWithSpacing() -> f32; + pub fn ImRect_Expand_Vec2(self_: *mut ImRect, amount: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushID_Str(str_id: *const cty::c_char); + pub fn ImRect_Translate(self_: *mut ImRect, d: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); + pub fn ImRect_TranslateX(self_: *mut ImRect, dx: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushID_Ptr(ptr_id: *const cty::c_void); + pub fn ImRect_TranslateY(self_: *mut ImRect, dy: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushID_Int(int_id: cty::c_int); + pub fn ImRect_ClipWith(self_: *mut ImRect, r: ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopID(); + pub fn ImRect_ClipWithFull(self_: *mut ImRect, r: ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; + pub fn ImRect_Floor(self_: *mut ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetID_StrStr( - str_id_begin: *const cty::c_char, - str_id_end: *const cty::c_char, - ) -> ImGuiID; + pub fn ImRect_IsInverted(self_: *mut ImRect) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; + pub fn ImRect_ToVec4(pOut: *mut ImVec4, self_: *mut ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); + pub fn igImBitArrayTestBit(arr: *const ImU32, n: cty::c_int) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igText(fmt: *const cty::c_char, ...); + pub fn igImBitArrayClearBit(arr: *mut ImU32, n: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTextColored(col: ImVec4, fmt: *const cty::c_char, ...); + pub fn igImBitArraySetBit(arr: *mut ImU32, n: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTextDisabled(fmt: *const cty::c_char, ...); + pub fn igImBitArraySetBitRange(arr: *mut ImU32, n: cty::c_int, n2: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTextWrapped(fmt: *const cty::c_char, ...); + pub fn ImBitVector_Create(self_: *mut ImBitVector, sz: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igLabelText(label: *const cty::c_char, fmt: *const cty::c_char, ...); + pub fn ImBitVector_Clear(self_: *mut ImBitVector); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBulletText(fmt: *const cty::c_char, ...); + pub fn ImBitVector_TestBit(self_: *mut ImBitVector, n: cty::c_int) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igButton(label: *const cty::c_char, size: ImVec2) -> bool; + pub fn ImBitVector_SetBit(self_: *mut ImBitVector, n: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImBitVector_ClearBit(self_: *mut ImBitVector, n: cty::c_int); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_clear(self_: *mut ImGuiTextIndex); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_size(self_: *mut ImGuiTextIndex) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_get_line_begin( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + n: cty::c_int, + ) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_get_line_end( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + n: cty::c_int, + ) -> *const cty::c_char; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiTextIndex_append( + self_: *mut ImGuiTextIndex, + base: *const cty::c_char, + old_size: cty::c_int, + new_size: cty::c_int, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSharedData_ImDrawListSharedData() -> *mut ImDrawListSharedData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSharedData_destroy(self_: *mut ImDrawListSharedData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawListSharedData_SetCircleTessellationMaxError( + self_: *mut ImDrawListSharedData, + max_error: f32, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawDataBuilder_Clear(self_: *mut ImDrawDataBuilder); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawDataBuilder_ClearFreeMemory(self_: *mut ImDrawDataBuilder); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawDataBuilder_GetDrawListCount(self_: *mut ImDrawDataBuilder) -> cty::c_int; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImDrawDataBuilder_FlattenIntoSingleLayer(self_: *mut ImDrawDataBuilder); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyleMod_ImGuiStyleMod_Int(idx: ImGuiStyleVar, v: cty::c_int) + -> *mut ImGuiStyleMod; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyleMod_destroy(self_: *mut ImGuiStyleMod); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyleMod_ImGuiStyleMod_Float(idx: ImGuiStyleVar, v: f32) -> *mut ImGuiStyleMod; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiStyleMod_ImGuiStyleMod_Vec2(idx: ImGuiStyleVar, v: ImVec2) -> *mut ImGuiStyleMod; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiComboPreviewData_ImGuiComboPreviewData() -> *mut ImGuiComboPreviewData; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiComboPreviewData_destroy(self_: *mut ImGuiComboPreviewData); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiMenuColumns_ImGuiMenuColumns() -> *mut ImGuiMenuColumns; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiMenuColumns_destroy(self_: *mut ImGuiMenuColumns); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiMenuColumns_Update( + self_: *mut ImGuiMenuColumns, + spacing: f32, + window_reappearing: bool, + ); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiMenuColumns_DeclColumns( + self_: *mut ImGuiMenuColumns, + w_icon: f32, + w_label: f32, + w_shortcut: f32, + w_mark: f32, + ) -> f32; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn ImGuiMenuColumns_CalcNextTotalWidth(self_: *mut ImGuiMenuColumns, update_offsets: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSmallButton(label: *const cty::c_char) -> bool; + pub fn ImGuiInputTextState_ImGuiInputTextState() -> *mut ImGuiInputTextState; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInvisibleButton( - str_id: *const cty::c_char, - size: ImVec2, - flags: ImGuiButtonFlags, - ) -> bool; + pub fn ImGuiInputTextState_destroy(self_: *mut ImGuiInputTextState); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; + pub fn ImGuiInputTextState_ClearText(self_: *mut ImGuiInputTextState); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; + pub fn ImGuiInputTextState_ClearFreeMemory(self_: *mut ImGuiInputTextState); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCheckboxFlags_IntPtr( - label: *const cty::c_char, - flags: *mut cty::c_int, - flags_value: cty::c_int, - ) -> bool; + pub fn ImGuiInputTextState_GetUndoAvailCount(self_: *mut ImGuiInputTextState) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCheckboxFlags_UintPtr( - label: *const cty::c_char, - flags: *mut cty::c_uint, - flags_value: cty::c_uint, - ) -> bool; + pub fn ImGuiInputTextState_GetRedoAvailCount(self_: *mut ImGuiInputTextState) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; + pub fn ImGuiInputTextState_OnKeyPressed(self_: *mut ImGuiInputTextState, key: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igRadioButton_IntPtr( - label: *const cty::c_char, - v: *mut cty::c_int, - v_button: cty::c_int, - ) -> bool; + pub fn ImGuiInputTextState_CursorAnimReset(self_: *mut ImGuiInputTextState); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const cty::c_char); + pub fn ImGuiInputTextState_CursorClamp(self_: *mut ImGuiInputTextState); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBullet(); + pub fn ImGuiInputTextState_HasSelection(self_: *mut ImGuiInputTextState) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImage( - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - tint_col: ImVec4, - border_col: ImVec4, - ); + pub fn ImGuiInputTextState_ClearSelection(self_: *mut ImGuiInputTextState); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igImageButton( - str_id: *const cty::c_char, - user_texture_id: ImTextureID, - size: ImVec2, - uv0: ImVec2, - uv1: ImVec2, - bg_col: ImVec4, - tint_col: ImVec4, - ) -> bool; + pub fn ImGuiInputTextState_GetCursorPos(self_: *mut ImGuiInputTextState) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginCombo( - label: *const cty::c_char, - preview_value: *const cty::c_char, - flags: ImGuiComboFlags, - ) -> bool; + pub fn ImGuiInputTextState_GetSelectionStart(self_: *mut ImGuiInputTextState) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndCombo(); + pub fn ImGuiInputTextState_GetSelectionEnd(self_: *mut ImGuiInputTextState) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCombo_Str_arr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items: *const *const cty::c_char, - items_count: cty::c_int, - popup_max_height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiInputTextState_SelectAll(self_: *mut ImGuiInputTextState); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCombo_Str( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items_separated_by_zeros: *const cty::c_char, - popup_max_height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiPopupData_ImGuiPopupData() -> *mut ImGuiPopupData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCombo_FnBoolPtr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items_getter: ::core::option::Option< - unsafe extern "C" fn( - data: *mut cty::c_void, - idx: cty::c_int, - out_text: *mut *const cty::c_char, - ) -> bool, - >, - data: *mut cty::c_void, - items_count: cty::c_int, - popup_max_height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiPopupData_destroy(self_: *mut ImGuiPopupData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragFloat( - label: *const cty::c_char, - v: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiNextWindowData_ImGuiNextWindowData() -> *mut ImGuiNextWindowData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragFloat2( - label: *const cty::c_char, - v: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiNextWindowData_destroy(self_: *mut ImGuiNextWindowData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragFloat3( - label: *const cty::c_char, - v: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiNextWindowData_ClearFlags(self_: *mut ImGuiNextWindowData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragFloat4( - label: *const cty::c_char, - v: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiNextItemData_ImGuiNextItemData() -> *mut ImGuiNextItemData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragFloatRange2( - label: *const cty::c_char, - v_current_min: *mut f32, - v_current_max: *mut f32, - v_speed: f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - format_max: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiNextItemData_destroy(self_: *mut ImGuiNextItemData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragInt( - label: *const cty::c_char, - v: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiNextItemData_ClearFlags(self_: *mut ImGuiNextItemData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragInt2( - label: *const cty::c_char, - v: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiLastItemData_ImGuiLastItemData() -> *mut ImGuiLastItemData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragInt3( - label: *const cty::c_char, - v: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiLastItemData_destroy(self_: *mut ImGuiLastItemData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragInt4( - label: *const cty::c_char, - v: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiStackSizes_ImGuiStackSizes() -> *mut ImGuiStackSizes; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragIntRange2( - label: *const cty::c_char, - v_current_min: *mut cty::c_int, - v_current_max: *mut cty::c_int, - v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - format_max: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiStackSizes_destroy(self_: *mut ImGuiStackSizes); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragScalar( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - v_speed: f32, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiStackSizes_SetToCurrentState(self_: *mut ImGuiStackSizes); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDragScalarN( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - components: cty::c_int, - v_speed: f32, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiStackSizes_CompareWithCurrentState(self_: *mut ImGuiStackSizes); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderFloat( - label: *const cty::c_char, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(ptr: *mut cty::c_void) -> *mut ImGuiPtrOrIndex; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderFloat2( - label: *const cty::c_char, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiPtrOrIndex_destroy(self_: *mut ImGuiPtrOrIndex); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderFloat3( - label: *const cty::c_char, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(index: cty::c_int) -> *mut ImGuiPtrOrIndex; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderFloat4( - label: *const cty::c_char, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiInputEvent_ImGuiInputEvent() -> *mut ImGuiInputEvent; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderAngle( - label: *const cty::c_char, - v_rad: *mut f32, - v_degrees_min: f32, - v_degrees_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiInputEvent_destroy(self_: *mut ImGuiInputEvent); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderInt( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyRoutingData_ImGuiKeyRoutingData() -> *mut ImGuiKeyRoutingData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderInt2( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyRoutingData_destroy(self_: *mut ImGuiKeyRoutingData); } #[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn igSliderInt3( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; +extern "C" { + pub fn ImGuiKeyRoutingTable_ImGuiKeyRoutingTable() -> *mut ImGuiKeyRoutingTable; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderInt4( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyRoutingTable_destroy(self_: *mut ImGuiKeyRoutingTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderScalar( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyRoutingTable_Clear(self_: *mut ImGuiKeyRoutingTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSliderScalarN( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - components: cty::c_int, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyOwnerData_ImGuiKeyOwnerData() -> *mut ImGuiKeyOwnerData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igVSliderFloat( - label: *const cty::c_char, - size: ImVec2, - v: *mut f32, - v_min: f32, - v_max: f32, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiKeyOwnerData_destroy(self_: *mut ImGuiKeyOwnerData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igVSliderInt( - label: *const cty::c_char, - size: ImVec2, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiListClipperRange_FromIndices( + min: cty::c_int, + max: cty::c_int, + ) -> ImGuiListClipperRange; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igVSliderScalar( - label: *const cty::c_char, - size: ImVec2, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiSliderFlags, - ) -> bool; + pub fn ImGuiListClipperRange_FromPositions( + y1: f32, + y2: f32, + off_min: cty::c_int, + off_max: cty::c_int, + ) -> ImGuiListClipperRange; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputText( - label: *const cty::c_char, - buf: *mut cty::c_char, - buf_size: usize, - flags: ImGuiInputTextFlags, - callback: ImGuiInputTextCallback, - user_data: *mut cty::c_void, - ) -> bool; + pub fn ImGuiListClipperData_ImGuiListClipperData() -> *mut ImGuiListClipperData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputTextMultiline( - label: *const cty::c_char, - buf: *mut cty::c_char, - buf_size: usize, - size: ImVec2, - flags: ImGuiInputTextFlags, - callback: ImGuiInputTextCallback, - user_data: *mut cty::c_void, - ) -> bool; + pub fn ImGuiListClipperData_destroy(self_: *mut ImGuiListClipperData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputTextWithHint( - label: *const cty::c_char, - hint: *const cty::c_char, - buf: *mut cty::c_char, - buf_size: usize, - flags: ImGuiInputTextFlags, - callback: ImGuiInputTextCallback, - user_data: *mut cty::c_void, - ) -> bool; + pub fn ImGuiListClipperData_Reset( + self_: *mut ImGuiListClipperData, + clipper: *mut ImGuiListClipper, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputFloat( - label: *const cty::c_char, - v: *mut f32, - step: f32, - step_fast: f32, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiNavItemData_ImGuiNavItemData() -> *mut ImGuiNavItemData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputFloat2( - label: *const cty::c_char, - v: *mut f32, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiNavItemData_destroy(self_: *mut ImGuiNavItemData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputFloat3( - label: *const cty::c_char, - v: *mut f32, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiNavItemData_Clear(self_: *mut ImGuiNavItemData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputFloat4( - label: *const cty::c_char, - v: *mut f32, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiOldColumnData_ImGuiOldColumnData() -> *mut ImGuiOldColumnData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputInt( - label: *const cty::c_char, - v: *mut cty::c_int, - step: cty::c_int, - step_fast: cty::c_int, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiOldColumnData_destroy(self_: *mut ImGuiOldColumnData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputInt2( - label: *const cty::c_char, - v: *mut cty::c_int, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiOldColumns_ImGuiOldColumns() -> *mut ImGuiOldColumns; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputInt3( - label: *const cty::c_char, - v: *mut cty::c_int, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiOldColumns_destroy(self_: *mut ImGuiOldColumns); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputInt4( - label: *const cty::c_char, - v: *mut cty::c_int, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_ImGuiDockNode(id: ImGuiID) -> *mut ImGuiDockNode; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputDouble( - label: *const cty::c_char, - v: *mut f64, - step: f64, - step_fast: f64, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_destroy(self_: *mut ImGuiDockNode); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputScalar( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - p_step: *const cty::c_void, - p_step_fast: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsRootNode(self_: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igInputScalarN( - label: *const cty::c_char, - data_type: ImGuiDataType, - p_data: *mut cty::c_void, - components: cty::c_int, - p_step: *const cty::c_void, - p_step_fast: *const cty::c_void, - format: *const cty::c_char, - flags: ImGuiInputTextFlags, - ) -> bool; + pub fn ImGuiDockNode_IsDockSpace(self_: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColorEdit3( - label: *const cty::c_char, - col: *mut f32, - flags: ImGuiColorEditFlags, - ) -> bool; + pub fn ImGuiDockNode_IsFloatingNode(self_: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColorEdit4( - label: *const cty::c_char, - col: *mut f32, - flags: ImGuiColorEditFlags, - ) -> bool; + pub fn ImGuiDockNode_IsCentralNode(self_: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColorPicker3( - label: *const cty::c_char, - col: *mut f32, - flags: ImGuiColorEditFlags, - ) -> bool; + pub fn ImGuiDockNode_IsHiddenTabBar(self_: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColorPicker4( - label: *const cty::c_char, - col: *mut f32, - flags: ImGuiColorEditFlags, - ref_col: *const f32, - ) -> bool; + pub fn ImGuiDockNode_IsNoTabBar(self_: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColorButton( - desc_id: *const cty::c_char, - col: ImVec4, - flags: ImGuiColorEditFlags, - size: ImVec2, - ) -> bool; + pub fn ImGuiDockNode_IsSplitNode(self_: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); + pub fn ImGuiDockNode_IsLeafNode(self_: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; + pub fn ImGuiDockNode_IsEmpty(self_: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; + pub fn ImGuiDockNode_Rect(pOut: *mut ImRect, self_: *mut ImGuiDockNode); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; + pub fn ImGuiDockNode_SetLocalFlags(self_: *mut ImGuiDockNode, flags: ImGuiDockNodeFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; + pub fn ImGuiDockNode_UpdateMergedFlags(self_: *mut ImGuiDockNode); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeEx_StrStr( - str_id: *const cty::c_char, - flags: ImGuiTreeNodeFlags, - fmt: *const cty::c_char, - ... - ) -> bool; + pub fn ImGuiDockContext_ImGuiDockContext() -> *mut ImGuiDockContext; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreeNodeEx_Ptr( - ptr_id: *const cty::c_void, - flags: ImGuiTreeNodeFlags, - fmt: *const cty::c_char, - ... - ) -> bool; + pub fn ImGuiDockContext_destroy(self_: *mut ImGuiDockContext); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreePush_Str(str_id: *const cty::c_char); + pub fn ImGuiViewportP_ImGuiViewportP() -> *mut ImGuiViewportP; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); + pub fn ImGuiViewportP_destroy(self_: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTreePop(); + pub fn ImGuiViewportP_ClearRequestFlags(self_: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetTreeNodeToLabelSpacing() -> f32; + pub fn ImGuiViewportP_CalcWorkRectPos( + pOut: *mut ImVec2, + self_: *mut ImGuiViewportP, + off_min: ImVec2, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCollapsingHeader_TreeNodeFlags( - label: *const cty::c_char, - flags: ImGuiTreeNodeFlags, - ) -> bool; + pub fn ImGuiViewportP_CalcWorkRectSize( + pOut: *mut ImVec2, + self_: *mut ImGuiViewportP, + off_min: ImVec2, + off_max: ImVec2, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCollapsingHeader_BoolPtr( - label: *const cty::c_char, - p_visible: *mut bool, - flags: ImGuiTreeNodeFlags, - ) -> bool; + pub fn ImGuiViewportP_UpdateWorkRect(self_: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextItemOpen(is_open: bool, cond: ImGuiCond); + pub fn ImGuiViewportP_GetMainRect(pOut: *mut ImRect, self_: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSelectable_Bool( - label: *const cty::c_char, - selected: bool, - flags: ImGuiSelectableFlags, - size: ImVec2, - ) -> bool; + pub fn ImGuiViewportP_GetWorkRect(pOut: *mut ImRect, self_: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSelectable_BoolPtr( - label: *const cty::c_char, - p_selected: *mut bool, - flags: ImGuiSelectableFlags, - size: ImVec2, - ) -> bool; + pub fn ImGuiViewportP_GetBuildWorkRect(pOut: *mut ImRect, self_: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginListBox(label: *const cty::c_char, size: ImVec2) -> bool; + pub fn ImGuiWindowSettings_ImGuiWindowSettings() -> *mut ImGuiWindowSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndListBox(); + pub fn ImGuiWindowSettings_destroy(self_: *mut ImGuiWindowSettings); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igListBox_Str_arr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items: *const *const cty::c_char, - items_count: cty::c_int, - height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiWindowSettings_GetName(self_: *mut ImGuiWindowSettings) -> *mut cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igListBox_FnBoolPtr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items_getter: ::core::option::Option< - unsafe extern "C" fn( - data: *mut cty::c_void, - idx: cty::c_int, - out_text: *mut *const cty::c_char, - ) -> bool, - >, - data: *mut cty::c_void, - items_count: cty::c_int, - height_in_items: cty::c_int, - ) -> bool; + pub fn ImGuiSettingsHandler_ImGuiSettingsHandler() -> *mut ImGuiSettingsHandler; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotLines_FloatPtr( - label: *const cty::c_char, - values: *const f32, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, - scale_min: f32, - scale_max: f32, - graph_size: ImVec2, - stride: cty::c_int, - ); + pub fn ImGuiSettingsHandler_destroy(self_: *mut ImGuiSettingsHandler); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotLines_FnFloatPtr( - label: *const cty::c_char, - values_getter: ::core::option::Option< - unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, - >, - data: *mut cty::c_void, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, - scale_min: f32, - scale_max: f32, - graph_size: ImVec2, - ); + pub fn ImGuiMetricsConfig_ImGuiMetricsConfig() -> *mut ImGuiMetricsConfig; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotHistogram_FloatPtr( - label: *const cty::c_char, - values: *const f32, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, - scale_min: f32, - scale_max: f32, - graph_size: ImVec2, - stride: cty::c_int, - ); + pub fn ImGuiMetricsConfig_destroy(self_: *mut ImGuiMetricsConfig); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPlotHistogram_FnFloatPtr( - label: *const cty::c_char, - values_getter: ::core::option::Option< - unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, - >, - data: *mut cty::c_void, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, - scale_min: f32, - scale_max: f32, - graph_size: ImVec2, - ); + pub fn ImGuiStackLevelInfo_ImGuiStackLevelInfo() -> *mut ImGuiStackLevelInfo; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); + pub fn ImGuiStackLevelInfo_destroy(self_: *mut ImGuiStackLevelInfo); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); + pub fn ImGuiStackTool_ImGuiStackTool() -> *mut ImGuiStackTool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); + pub fn ImGuiStackTool_destroy(self_: *mut ImGuiStackTool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); + pub fn ImGuiContextHook_ImGuiContextHook() -> *mut ImGuiContextHook; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginMenuBar() -> bool; + pub fn ImGuiContextHook_destroy(self_: *mut ImGuiContextHook); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndMenuBar(); + pub fn ImGuiContext_ImGuiContext(shared_font_atlas: *mut ImFontAtlas) -> *mut ImGuiContext; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginMainMenuBar() -> bool; + pub fn ImGuiContext_destroy(self_: *mut ImGuiContext); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndMainMenuBar(); + pub fn ImGuiWindow_ImGuiWindow( + context: *mut ImGuiContext, + name: *const cty::c_char, + ) -> *mut ImGuiWindow; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginMenu(label: *const cty::c_char, enabled: bool) -> bool; + pub fn ImGuiWindow_destroy(self_: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndMenu(); + pub fn ImGuiWindow_GetID_Str( + self_: *mut ImGuiWindow, + str_: *const cty::c_char, + str_end: *const cty::c_char, + ) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMenuItem_Bool( - label: *const cty::c_char, - shortcut: *const cty::c_char, - selected: bool, - enabled: bool, - ) -> bool; + pub fn ImGuiWindow_GetID_Ptr(self_: *mut ImGuiWindow, ptr: *const cty::c_void) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMenuItem_BoolPtr( - label: *const cty::c_char, - shortcut: *const cty::c_char, - p_selected: *mut bool, - enabled: bool, - ) -> bool; + pub fn ImGuiWindow_GetID_Int(self_: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginTooltip(); + pub fn ImGuiWindow_GetIDFromRectangle(self_: *mut ImGuiWindow, r_abs: ImRect) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndTooltip(); + pub fn ImGuiWindow_Rect(pOut: *mut ImRect, self_: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetTooltip(fmt: *const cty::c_char, ...); + pub fn ImGuiWindow_CalcFontSize(self_: *mut ImGuiWindow) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginPopup(str_id: *const cty::c_char, flags: ImGuiWindowFlags) -> bool; + pub fn ImGuiWindow_TitleBarHeight(self_: *mut ImGuiWindow) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginPopupModal( - name: *const cty::c_char, - p_open: *mut bool, - flags: ImGuiWindowFlags, - ) -> bool; + pub fn ImGuiWindow_TitleBarRect(pOut: *mut ImRect, self_: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndPopup(); + pub fn ImGuiWindow_MenuBarHeight(self_: *mut ImGuiWindow) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn ImGuiWindow_MenuBarRect(pOut: *mut ImRect, self_: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); + pub fn ImGuiTabItem_ImGuiTabItem() -> *mut ImGuiTabItem; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn ImGuiTabItem_destroy(self_: *mut ImGuiTabItem); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCloseCurrentPopup(); + pub fn ImGuiTabBar_ImGuiTabBar() -> *mut ImGuiTabBar; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginPopupContextItem( - str_id: *const cty::c_char, - popup_flags: ImGuiPopupFlags, - ) -> bool; + pub fn ImGuiTabBar_destroy(self_: *mut ImGuiTabBar); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginPopupContextWindow( - str_id: *const cty::c_char, - popup_flags: ImGuiPopupFlags, - ) -> bool; + pub fn ImGuiTabBar_GetTabOrder(self_: *mut ImGuiTabBar, tab: *const ImGuiTabItem) + -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginPopupContextVoid( - str_id: *const cty::c_char, - popup_flags: ImGuiPopupFlags, - ) -> bool; + pub fn ImGuiTabBar_GetTabName( + self_: *mut ImGuiTabBar, + tab: *const ImGuiTabItem, + ) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsPopupOpen(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; + pub fn ImGuiTableColumn_ImGuiTableColumn() -> *mut ImGuiTableColumn; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginTable( - str_id: *const cty::c_char, - column: cty::c_int, - flags: ImGuiTableFlags, - outer_size: ImVec2, - inner_width: f32, - ) -> bool; + pub fn ImGuiTableColumn_destroy(self_: *mut ImGuiTableColumn); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndTable(); + pub fn ImGuiTableInstanceData_ImGuiTableInstanceData() -> *mut ImGuiTableInstanceData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableNextRow(row_flags: ImGuiTableRowFlags, min_row_height: f32); + pub fn ImGuiTableInstanceData_destroy(self_: *mut ImGuiTableInstanceData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableNextColumn() -> bool; + pub fn ImGuiTable_ImGuiTable() -> *mut ImGuiTable; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableSetColumnIndex(column_n: cty::c_int) -> bool; + pub fn ImGuiTable_destroy(self_: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableSetupColumn( - label: *const cty::c_char, - flags: ImGuiTableColumnFlags, - init_width_or_weight: f32, - user_id: ImGuiID, - ); + pub fn ImGuiTableTempData_ImGuiTableTempData() -> *mut ImGuiTableTempData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableSetupScrollFreeze(cols: cty::c_int, rows: cty::c_int); + pub fn ImGuiTableTempData_destroy(self_: *mut ImGuiTableTempData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableHeadersRow(); + pub fn ImGuiTableColumnSettings_ImGuiTableColumnSettings() -> *mut ImGuiTableColumnSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableHeader(label: *const cty::c_char); + pub fn ImGuiTableColumnSettings_destroy(self_: *mut ImGuiTableColumnSettings); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGetSortSpecs() -> *mut ImGuiTableSortSpecs; + pub fn ImGuiTableSettings_ImGuiTableSettings() -> *mut ImGuiTableSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGetColumnCount() -> cty::c_int; + pub fn ImGuiTableSettings_destroy(self_: *mut ImGuiTableSettings); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGetColumnIndex() -> cty::c_int; + pub fn ImGuiTableSettings_GetColumnSettings( + self_: *mut ImGuiTableSettings, + ) -> *mut ImGuiTableColumnSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGetRowIndex() -> cty::c_int; + pub fn igGetCurrentWindowRead() -> *mut ImGuiWindow; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGetColumnName(column_n: cty::c_int) -> *const cty::c_char; + pub fn igGetCurrentWindow() -> *mut ImGuiWindow; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; + pub fn igFindWindowByID(id: ImGuiID) -> *mut ImGuiWindow; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableSetColumnEnabled(column_n: cty::c_int, v: bool); + pub fn igFindWindowByName(name: *const cty::c_char) -> *mut ImGuiWindow; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: cty::c_int); + pub fn igUpdateWindowParentAndRootLinks( + window: *mut ImGuiWindow, + flags: ImGuiWindowFlags, + parent_window: *mut ImGuiWindow, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColumns(count: cty::c_int, id: *const cty::c_char, border: bool); + pub fn igCalcWindowNextAutoFitSize(pOut: *mut ImVec2, window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igNextColumn(); + pub fn igIsWindowChildOf( + window: *mut ImGuiWindow, + potential_parent: *mut ImGuiWindow, + popup_hierarchy: bool, + dock_hierarchy: bool, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColumnIndex() -> cty::c_int; + pub fn igIsWindowWithinBeginStackOf( + window: *mut ImGuiWindow, + potential_parent: *mut ImGuiWindow, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColumnWidth(column_index: cty::c_int) -> f32; + pub fn igIsWindowAbove( + potential_above: *mut ImGuiWindow, + potential_below: *mut ImGuiWindow, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetColumnWidth(column_index: cty::c_int, width: f32); + pub fn igIsWindowNavFocusable(window: *mut ImGuiWindow) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColumnOffset(column_index: cty::c_int) -> f32; + pub fn igSetWindowPos_WindowPtr(window: *mut ImGuiWindow, pos: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetColumnOffset(column_index: cty::c_int, offset_x: f32); + pub fn igSetWindowSize_WindowPtr(window: *mut ImGuiWindow, size: ImVec2, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetColumnsCount() -> cty::c_int; + pub fn igSetWindowCollapsed_WindowPtr( + window: *mut ImGuiWindow, + collapsed: bool, + cond: ImGuiCond, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginTabBar(str_id: *const cty::c_char, flags: ImGuiTabBarFlags) -> bool; + pub fn igSetWindowHitTestHole(window: *mut ImGuiWindow, pos: ImVec2, size: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndTabBar(); + pub fn igWindowRectAbsToRel(pOut: *mut ImRect, window: *mut ImGuiWindow, r: ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginTabItem( - label: *const cty::c_char, - p_open: *mut bool, - flags: ImGuiTabItemFlags, - ) -> bool; + pub fn igWindowRectRelToAbs(pOut: *mut ImRect, window: *mut ImGuiWindow, r: ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndTabItem(); + pub fn igFocusWindow(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igTabItemButton(label: *const cty::c_char, flags: ImGuiTabItemFlags) -> bool; + pub fn igFocusTopMostWindowUnderOne( + under_this_window: *mut ImGuiWindow, + ignore_window: *mut ImGuiWindow, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetTabItemClosed(tab_or_docked_window_label: *const cty::c_char); + pub fn igBringWindowToFocusFront(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDockSpace( - id: ImGuiID, - size: ImVec2, - flags: ImGuiDockNodeFlags, - window_class: *const ImGuiWindowClass, - ) -> ImGuiID; + pub fn igBringWindowToDisplayFront(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDockSpaceOverViewport( - viewport: *const ImGuiViewport, - flags: ImGuiDockNodeFlags, - window_class: *const ImGuiWindowClass, - ) -> ImGuiID; + pub fn igBringWindowToDisplayBack(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowDockID(dock_id: ImGuiID, cond: ImGuiCond); + pub fn igBringWindowToDisplayBehind(window: *mut ImGuiWindow, above_window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextWindowClass(window_class: *const ImGuiWindowClass); + pub fn igFindWindowDisplayIndex(window: *mut ImGuiWindow) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetWindowDockID() -> ImGuiID; + pub fn igFindBottomMostVisibleWindowWithinBeginStack( + window: *mut ImGuiWindow, + ) -> *mut ImGuiWindow; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsWindowDocked() -> bool; + pub fn igSetCurrentFont(font: *mut ImFont); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igLogToTTY(auto_open_depth: cty::c_int); + pub fn igGetDefaultFont() -> *mut ImFont; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igLogToFile(auto_open_depth: cty::c_int, filename: *const cty::c_char); + pub fn igGetForegroundDrawList_WindowPtr(window: *mut ImGuiWindow) -> *mut ImDrawList; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igLogToClipboard(auto_open_depth: cty::c_int); + pub fn igInitialize(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igLogFinish(); + pub fn igShutdown(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igLogButtons(); + pub fn igUpdateInputEvents(trickle_fast_inputs: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginDragDropSource(flags: ImGuiDragDropFlags) -> bool; + pub fn igUpdateHoveredWindowAndCaptureFlags(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetDragDropPayload( - type_: *const cty::c_char, - data: *const cty::c_void, - sz: usize, - cond: ImGuiCond, - ) -> bool; + pub fn igStartMouseMovingWindow(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndDragDropSource(); + pub fn igStartMouseMovingWindowOrNode( + window: *mut ImGuiWindow, + node: *mut ImGuiDockNode, + undock_floating_node: bool, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginDragDropTarget() -> bool; + pub fn igUpdateMouseMovingWindowNewFrame(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igAcceptDragDropPayload( - type_: *const cty::c_char, - flags: ImGuiDragDropFlags, - ) -> *const ImGuiPayload; + pub fn igUpdateMouseMovingWindowEndFrame(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndDragDropTarget(); + pub fn igAddContextHook(context: *mut ImGuiContext, hook: *const ImGuiContextHook) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetDragDropPayload() -> *const ImGuiPayload; + pub fn igRemoveContextHook(context: *mut ImGuiContext, hook_to_remove: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginDisabled(disabled: bool); + pub fn igCallContextHooks(context: *mut ImGuiContext, type_: ImGuiContextHookType); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndDisabled(); + pub fn igTranslateWindowsInViewport( + viewport: *mut ImGuiViewportP, + old_pos: ImVec2, + new_pos: ImVec2, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPushClipRect( - clip_rect_min: ImVec2, - clip_rect_max: ImVec2, - intersect_with_current_clip_rect: bool, - ); + pub fn igScaleWindowsInViewport(viewport: *mut ImGuiViewportP, scale: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igPopClipRect(); + pub fn igDestroyPlatformWindow(viewport: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetItemDefaultFocus(); + pub fn igSetWindowViewport(window: *mut ImGuiWindow, viewport: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetKeyboardFocusHere(offset: cty::c_int); + pub fn igSetCurrentViewport(window: *mut ImGuiWindow, viewport: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemHovered(flags: ImGuiHoveredFlags) -> bool; + pub fn igGetViewportPlatformMonitor( + viewport: *mut ImGuiViewport, + ) -> *const ImGuiPlatformMonitor; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemActive() -> bool; + pub fn igFindHoveredViewportFromPlatformWindowStack( + mouse_platform_pos: ImVec2, + ) -> *mut ImGuiViewportP; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemFocused() -> bool; + pub fn igMarkIniSettingsDirty_Nil(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemClicked(mouse_button: ImGuiMouseButton) -> bool; + pub fn igMarkIniSettingsDirty_WindowPtr(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemVisible() -> bool; + pub fn igClearIniSettings(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemEdited() -> bool; + pub fn igCreateNewWindowSettings(name: *const cty::c_char) -> *mut ImGuiWindowSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemActivated() -> bool; + pub fn igFindWindowSettings(id: ImGuiID) -> *mut ImGuiWindowSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemDeactivated() -> bool; + pub fn igFindOrCreateWindowSettings(name: *const cty::c_char) -> *mut ImGuiWindowSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemDeactivatedAfterEdit() -> bool; + pub fn igAddSettingsHandler(handler: *const ImGuiSettingsHandler); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsItemToggledOpen() -> bool; + pub fn igRemoveSettingsHandler(type_name: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsAnyItemHovered() -> bool; + pub fn igFindSettingsHandler(type_name: *const cty::c_char) -> *mut ImGuiSettingsHandler; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsAnyItemActive() -> bool; + pub fn igLocalizeRegisterEntries(entries: *const ImGuiLocEntry, count: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsAnyItemFocused() -> bool; + pub fn igLocalizeGetMsg(key: ImGuiLocKey) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetItemRectMin(pOut: *mut ImVec2); + pub fn igSetScrollX_WindowPtr(window: *mut ImGuiWindow, scroll_x: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetItemRectMax(pOut: *mut ImVec2); + pub fn igSetScrollY_WindowPtr(window: *mut ImGuiWindow, scroll_y: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetItemRectSize(pOut: *mut ImVec2); + pub fn igSetScrollFromPosX_WindowPtr( + window: *mut ImGuiWindow, + local_x: f32, + center_x_ratio: f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetItemAllowOverlap(); + pub fn igSetScrollFromPosY_WindowPtr( + window: *mut ImGuiWindow, + local_y: f32, + center_y_ratio: f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetMainViewport() -> *mut ImGuiViewport; + pub fn igScrollToItem(flags: ImGuiScrollFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetBackgroundDrawList_Nil() -> *mut ImDrawList; + pub fn igScrollToRect(window: *mut ImGuiWindow, rect: ImRect, flags: ImGuiScrollFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetForegroundDrawList_Nil() -> *mut ImDrawList; + pub fn igScrollToRectEx( + pOut: *mut ImVec2, + window: *mut ImGuiWindow, + rect: ImRect, + flags: ImGuiScrollFlags, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetBackgroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; + pub fn igScrollToBringRectIntoView(window: *mut ImGuiWindow, rect: ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetForegroundDrawList_ViewportPtr(viewport: *mut ImGuiViewport) -> *mut ImDrawList; + pub fn igGetItemID() -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsRectVisible_Nil(size: ImVec2) -> bool; + pub fn igGetItemStatusFlags() -> ImGuiItemStatusFlags; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsRectVisible_Vec2(rect_min: ImVec2, rect_max: ImVec2) -> bool; + pub fn igGetItemFlags() -> ImGuiItemFlags; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetTime() -> f64; + pub fn igGetActiveID() -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetFrameCount() -> cty::c_int; + pub fn igGetFocusID() -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; + pub fn igSetActiveID(id: ImGuiID, window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetStyleColorName(idx: ImGuiCol) -> *const cty::c_char; + pub fn igSetFocusID(id: ImGuiID, window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetStateStorage(storage: *mut ImGuiStorage); + pub fn igClearActiveID(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetStateStorage() -> *mut ImGuiStorage; + pub fn igGetHoveredID() -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igBeginChildFrame(id: ImGuiID, size: ImVec2, flags: ImGuiWindowFlags) -> bool; + pub fn igSetHoveredID(id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igEndChildFrame(); + pub fn igKeepAliveID(id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igCalcTextSize( - pOut: *mut ImVec2, - text: *const cty::c_char, - text_end: *const cty::c_char, - hide_text_after_double_hash: bool, - wrap_width: f32, - ); + pub fn igMarkItemEdited(id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igPushOverrideID(id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetIDWithSeed( + str_id_begin: *const cty::c_char, + str_id_end: *const cty::c_char, + seed: ImGuiID, + ) -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igItemSize_Vec2(size: ImVec2, text_baseline_y: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColorConvertU32ToFloat4(pOut: *mut ImVec4, in_: ImU32); + pub fn igItemSize_Rect(bb: ImRect, text_baseline_y: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColorConvertFloat4ToU32(in_: ImVec4) -> ImU32; + pub fn igItemAdd( + bb: ImRect, + id: ImGuiID, + nav_bb: *const ImRect, + extra_flags: ImGuiItemFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColorConvertRGBtoHSV( - r: f32, - g: f32, - b: f32, - out_h: *mut f32, - out_s: *mut f32, - out_v: *mut f32, - ); + pub fn igItemHoverable(bb: ImRect, id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igColorConvertHSVtoRGB( - h: f32, - s: f32, - v: f32, - out_r: *mut f32, - out_g: *mut f32, - out_b: *mut f32, - ); + pub fn igIsClippedEx(bb: ImRect, id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyDown(key: ImGuiKey) -> bool; + pub fn igSetLastItemData( + item_id: ImGuiID, + in_flags: ImGuiItemFlags, + status_flags: ImGuiItemStatusFlags, + item_rect: ImRect, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyPressed(key: ImGuiKey, repeat: bool) -> bool; + pub fn igCalcItemSize(pOut: *mut ImVec2, size: ImVec2, default_w: f32, default_h: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsKeyReleased(key: ImGuiKey) -> bool; + pub fn igCalcWrapWidthForPos(pos: ImVec2, wrap_pos_x: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; + pub fn igPushMultiItemsWidths(components: cty::c_int, width_full: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; + pub fn igIsItemToggledSelection() -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); + pub fn igGetContentRegionMaxAbs(pOut: *mut ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseDown(button: ImGuiMouseButton) -> bool; + pub fn igShrinkWidths(items: *mut ImGuiShrinkWidthItem, count: cty::c_int, width_excess: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseClicked(button: ImGuiMouseButton, repeat: bool) -> bool; + pub fn igPushItemFlag(option: ImGuiItemFlags, enabled: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseReleased(button: ImGuiMouseButton) -> bool; + pub fn igPopItemFlag(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; + pub fn igLogBegin(type_: ImGuiLogType, auto_open_depth: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> cty::c_int; + pub fn igLogToBuffer(auto_open_depth: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool; + pub fn igLogRenderedText( + ref_pos: *const ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMousePosValid(mouse_pos: *const ImVec2) -> bool; + pub fn igLogSetNextTextDecoration(prefix: *const cty::c_char, suffix: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsAnyMouseDown() -> bool; + pub fn igBeginChildEx( + name: *const cty::c_char, + id: ImGuiID, + size_arg: ImVec2, + border: bool, + flags: ImGuiWindowFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetMousePos(pOut: *mut ImVec2); + pub fn igOpenPopupEx(id: ImGuiID, popup_flags: ImGuiPopupFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetMousePosOnOpeningCurrentPopup(pOut: *mut ImVec2); + pub fn igClosePopupToLevel(remaining: cty::c_int, restore_focus_to_window_under_popup: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igIsMouseDragging(button: ImGuiMouseButton, lock_threshold: f32) -> bool; + pub fn igClosePopupsOverWindow( + ref_window: *mut ImGuiWindow, + restore_focus_to_window_under_popup: bool, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetMouseDragDelta(pOut: *mut ImVec2, button: ImGuiMouseButton, lock_threshold: f32); + pub fn igClosePopupsExceptModals(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igResetMouseDragDelta(button: ImGuiMouseButton); + pub fn igIsPopupOpen_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetMouseCursor() -> ImGuiMouseCursor; + pub fn igBeginPopupEx(id: ImGuiID, extra_flags: ImGuiWindowFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetMouseCursor(cursor_type: ImGuiMouseCursor); + pub fn igBeginTooltipEx(tooltip_flags: ImGuiTooltipFlags, extra_window_flags: ImGuiWindowFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); + pub fn igGetPopupAllowedExtentRect(pOut: *mut ImRect, window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetClipboardText() -> *const cty::c_char; + pub fn igGetTopMostPopupModal() -> *mut ImGuiWindow; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetClipboardText(text: *const cty::c_char); + pub fn igGetTopMostAndVisiblePopupModal() -> *mut ImGuiWindow; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igLoadIniSettingsFromDisk(ini_filename: *const cty::c_char); + pub fn igFindBestWindowPosForPopup(pOut: *mut ImVec2, window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igLoadIniSettingsFromMemory(ini_data: *const cty::c_char, ini_size: usize); + pub fn igFindBestWindowPosForPopupEx( + pOut: *mut ImVec2, + ref_pos: ImVec2, + size: ImVec2, + last_dir: *mut ImGuiDir, + r_outer: ImRect, + r_avoid: ImRect, + policy: ImGuiPopupPositionPolicy, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSaveIniSettingsToDisk(ini_filename: *const cty::c_char); + pub fn igBeginViewportSideBar( + name: *const cty::c_char, + viewport: *mut ImGuiViewport, + dir: ImGuiDir, + size: f32, + window_flags: ImGuiWindowFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; + pub fn igBeginMenuEx( + label: *const cty::c_char, + icon: *const cty::c_char, + enabled: bool, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDebugTextEncoding(text: *const cty::c_char); + pub fn igMenuItemEx( + label: *const cty::c_char, + icon: *const cty::c_char, + shortcut: *const cty::c_char, + selected: bool, + enabled: bool, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDebugCheckVersionAndDataLayout( - version_str: *const cty::c_char, - sz_io: usize, - sz_style: usize, - sz_vec2: usize, - sz_vec4: usize, - sz_drawvert: usize, - sz_drawidx: usize, - ) -> bool; + pub fn igBeginComboPopup(popup_id: ImGuiID, bb: ImRect, flags: ImGuiComboFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igSetAllocatorFunctions( - alloc_func: ImGuiMemAllocFunc, - free_func: ImGuiMemFreeFunc, - user_data: *mut cty::c_void, - ); + pub fn igBeginComboPreview() -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetAllocatorFunctions( - p_alloc_func: *mut ImGuiMemAllocFunc, - p_free_func: *mut ImGuiMemFreeFunc, - p_user_data: *mut *mut cty::c_void, - ); + pub fn igEndComboPreview(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMemAlloc(size: usize) -> *mut cty::c_void; + pub fn igNavInitWindow(window: *mut ImGuiWindow, force_reinit: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igMemFree(ptr: *mut cty::c_void); + pub fn igNavInitRequestApplyResult(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetPlatformIO() -> *mut ImGuiPlatformIO; + pub fn igNavMoveRequestButNoResultYet() -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igUpdatePlatformWindows(); + pub fn igNavMoveRequestSubmit( + move_dir: ImGuiDir, + clip_dir: ImGuiDir, + move_flags: ImGuiNavMoveFlags, + scroll_flags: ImGuiScrollFlags, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igRenderPlatformWindowsDefault( - platform_render_arg: *mut cty::c_void, - renderer_render_arg: *mut cty::c_void, + pub fn igNavMoveRequestForward( + move_dir: ImGuiDir, + clip_dir: ImGuiDir, + move_flags: ImGuiNavMoveFlags, + scroll_flags: ImGuiScrollFlags, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igDestroyPlatformWindows(); + pub fn igNavMoveRequestResolveWithLastItem(result: *mut ImGuiNavItemData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igFindViewportByID(id: ImGuiID) -> *mut ImGuiViewport; + pub fn igNavMoveRequestCancel(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igFindViewportByPlatformHandle(platform_handle: *mut cty::c_void) -> *mut ImGuiViewport; + pub fn igNavMoveRequestApplyResult(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStyle_ImGuiStyle() -> *mut ImGuiStyle; + pub fn igNavMoveRequestTryWrapping(window: *mut ImGuiWindow, move_flags: ImGuiNavMoveFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStyle_destroy(self_: *mut ImGuiStyle); + pub fn igActivateItem(id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStyle_ScaleAllSizes(self_: *mut ImGuiStyle, scale_factor: f32); + pub fn igSetNavWindow(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddKeyEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool); + pub fn igSetNavID( + id: ImGuiID, + nav_layer: ImGuiNavLayer, + focus_scope_id: ImGuiID, + rect_rel: ImRect, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddKeyAnalogEvent(self_: *mut ImGuiIO, key: ImGuiKey, down: bool, v: f32); + pub fn igIsNamedKey(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); + pub fn igIsNamedKeyOrModKey(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); + pub fn igIsLegacyKey(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wh_x: f32, wh_y: f32); + pub fn igIsKeyboardKey(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddMouseViewportEvent(self_: *mut ImGuiIO, id: ImGuiID); + pub fn igIsGamepadKey(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); + pub fn igIsMouseKey(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); + pub fn igIsAliasKey(key: ImGuiKey) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16); + pub fn igConvertSingleModFlagToKey(key: ImGuiKey) -> ImGuiKey; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); + pub fn igGetKeyData(key: ImGuiKey) -> *mut ImGuiKeyData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_SetKeyEventNativeData( - self_: *mut ImGuiIO, - key: ImGuiKey, - native_keycode: cty::c_int, - native_scancode: cty::c_int, - native_legacy_index: cty::c_int, + pub fn igGetKeyChordName( + key_chord: ImGuiKeyChord, + out_buf: *mut cty::c_char, + out_buf_size: cty::c_int, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_SetAppAcceptingEvents(self_: *mut ImGuiIO, accepting_events: bool); + pub fn igMouseButtonToKey(button: ImGuiMouseButton) -> ImGuiKey; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_ClearInputCharacters(self_: *mut ImGuiIO); + pub fn igIsMouseDragPastThreshold(button: ImGuiMouseButton, lock_threshold: f32) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_ClearInputKeys(self_: *mut ImGuiIO); + pub fn igGetKeyVector2d( + pOut: *mut ImVec2, + key_left: ImGuiKey, + key_right: ImGuiKey, + key_up: ImGuiKey, + key_down: ImGuiKey, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_ImGuiIO() -> *mut ImGuiIO; + pub fn igGetNavTweakPressedAmount(axis: ImGuiAxis) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiIO_destroy(self_: *mut ImGuiIO); + pub fn igCalcTypematicRepeatAmount( + t0: f32, + t1: f32, + repeat_delay: f32, + repeat_rate: f32, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiInputTextCallbackData_ImGuiInputTextCallbackData() -> *mut ImGuiInputTextCallbackData; + pub fn igGetTypematicRepeatRate( + flags: ImGuiInputFlags, + repeat_delay: *mut f32, + repeat_rate: *mut f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiInputTextCallbackData_destroy(self_: *mut ImGuiInputTextCallbackData); + pub fn igSetActiveIdUsingAllKeyboardKeys(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiInputTextCallbackData_DeleteChars( - self_: *mut ImGuiInputTextCallbackData, - pos: cty::c_int, - bytes_count: cty::c_int, - ); + pub fn igIsActiveIdUsingNavDir(dir: ImGuiDir) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiInputTextCallbackData_InsertChars( - self_: *mut ImGuiInputTextCallbackData, - pos: cty::c_int, - text: *const cty::c_char, - text_end: *const cty::c_char, - ); + pub fn igGetKeyOwner(key: ImGuiKey) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiInputTextCallbackData_SelectAll(self_: *mut ImGuiInputTextCallbackData); + pub fn igSetKeyOwner(key: ImGuiKey, owner_id: ImGuiID, flags: ImGuiInputFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiInputTextCallbackData_ClearSelection(self_: *mut ImGuiInputTextCallbackData); + pub fn igSetItemKeyOwner(key: ImGuiKey, flags: ImGuiInputFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiInputTextCallbackData_HasSelection(self_: *mut ImGuiInputTextCallbackData) -> bool; + pub fn igTestKeyOwner(key: ImGuiKey, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiWindowClass_ImGuiWindowClass() -> *mut ImGuiWindowClass; + pub fn igGetKeyOwnerData(key: ImGuiKey) -> *mut ImGuiKeyOwnerData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiWindowClass_destroy(self_: *mut ImGuiWindowClass); + pub fn igIsKeyDown_ID(key: ImGuiKey, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPayload_ImGuiPayload() -> *mut ImGuiPayload; + pub fn igIsKeyPressed_ID(key: ImGuiKey, owner_id: ImGuiID, flags: ImGuiInputFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPayload_destroy(self_: *mut ImGuiPayload); + pub fn igIsKeyReleased_ID(key: ImGuiKey, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload); + pub fn igIsMouseDown_ID(button: ImGuiMouseButton, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPayload_IsDataType(self_: *mut ImGuiPayload, type_: *const cty::c_char) -> bool; + pub fn igIsMouseClicked_ID( + button: ImGuiMouseButton, + owner_id: ImGuiID, + flags: ImGuiInputFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPayload_IsPreview(self_: *mut ImGuiPayload) -> bool; + pub fn igIsMouseReleased_ID(button: ImGuiMouseButton, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPayload_IsDelivery(self_: *mut ImGuiPayload) -> bool; + pub fn igShortcut(key_chord: ImGuiKeyChord, owner_id: ImGuiID, flags: ImGuiInputFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs() -> *mut ImGuiTableColumnSortSpecs; + pub fn igSetShortcutRouting( + key_chord: ImGuiKeyChord, + owner_id: ImGuiID, + flags: ImGuiInputFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTableColumnSortSpecs_destroy(self_: *mut ImGuiTableColumnSortSpecs); + pub fn igTestShortcutRouting(key_chord: ImGuiKeyChord, owner_id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTableSortSpecs_ImGuiTableSortSpecs() -> *mut ImGuiTableSortSpecs; + pub fn igGetShortcutRoutingData(key_chord: ImGuiKeyChord) -> *mut ImGuiKeyRoutingData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTableSortSpecs_destroy(self_: *mut ImGuiTableSortSpecs); + pub fn igDockContextInitialize(ctx: *mut ImGuiContext); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiOnceUponAFrame_ImGuiOnceUponAFrame() -> *mut ImGuiOnceUponAFrame; + pub fn igDockContextShutdown(ctx: *mut ImGuiContext); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiOnceUponAFrame_destroy(self_: *mut ImGuiOnceUponAFrame); + pub fn igDockContextClearNodes( + ctx: *mut ImGuiContext, + root_id: ImGuiID, + clear_settings_refs: bool, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextFilter_ImGuiTextFilter( - default_filter: *const cty::c_char, - ) -> *mut ImGuiTextFilter; + pub fn igDockContextRebuildNodes(ctx: *mut ImGuiContext); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextFilter_destroy(self_: *mut ImGuiTextFilter); + pub fn igDockContextNewFrameUpdateUndocking(ctx: *mut ImGuiContext); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextFilter_Draw( - self_: *mut ImGuiTextFilter, - label: *const cty::c_char, - width: f32, - ) -> bool; + pub fn igDockContextNewFrameUpdateDocking(ctx: *mut ImGuiContext); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextFilter_PassFilter( - self_: *mut ImGuiTextFilter, - text: *const cty::c_char, - text_end: *const cty::c_char, - ) -> bool; + pub fn igDockContextEndFrame(ctx: *mut ImGuiContext); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextFilter_Build(self_: *mut ImGuiTextFilter); + pub fn igDockContextGenNodeID(ctx: *mut ImGuiContext) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextFilter_Clear(self_: *mut ImGuiTextFilter); + pub fn igDockContextQueueDock( + ctx: *mut ImGuiContext, + target: *mut ImGuiWindow, + target_node: *mut ImGuiDockNode, + payload: *mut ImGuiWindow, + split_dir: ImGuiDir, + split_ratio: f32, + split_outer: bool, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextFilter_IsActive(self_: *mut ImGuiTextFilter) -> bool; + pub fn igDockContextQueueUndockWindow(ctx: *mut ImGuiContext, window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextRange_ImGuiTextRange_Nil() -> *mut ImGuiTextRange; + pub fn igDockContextQueueUndockNode(ctx: *mut ImGuiContext, node: *mut ImGuiDockNode); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextRange_destroy(self_: *mut ImGuiTextRange); + pub fn igDockContextCalcDropPosForDocking( + target: *mut ImGuiWindow, + target_node: *mut ImGuiDockNode, + payload_window: *mut ImGuiWindow, + payload_node: *mut ImGuiDockNode, + split_dir: ImGuiDir, + split_outer: bool, + out_pos: *mut ImVec2, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextRange_ImGuiTextRange_Str( - _b: *const cty::c_char, - _e: *const cty::c_char, - ) -> *mut ImGuiTextRange; + pub fn igDockContextFindNodeByID(ctx: *mut ImGuiContext, id: ImGuiID) -> *mut ImGuiDockNode; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextRange_empty(self_: *mut ImGuiTextRange) -> bool; + pub fn igDockNodeBeginAmendTabBar(node: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextRange_split( - self_: *mut ImGuiTextRange, - separator: cty::c_char, - out: *mut ImVector_ImGuiTextRange, - ); + pub fn igDockNodeEndAmendTabBar(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_ImGuiTextBuffer() -> *mut ImGuiTextBuffer; + pub fn igDockNodeGetRootNode(node: *mut ImGuiDockNode) -> *mut ImGuiDockNode; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_destroy(self_: *mut ImGuiTextBuffer); + pub fn igDockNodeIsInHierarchyOf(node: *mut ImGuiDockNode, parent: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; + pub fn igDockNodeGetDepth(node: *const ImGuiDockNode) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; + pub fn igDockNodeGetWindowMenuButtonId(node: *const ImGuiDockNode) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> cty::c_int; + pub fn igGetWindowDockNode() -> *mut ImGuiDockNode; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_empty(self_: *mut ImGuiTextBuffer) -> bool; + pub fn igGetWindowAlwaysWantOwnTabBar(window: *mut ImGuiWindow) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer); + pub fn igBeginDocked(window: *mut ImGuiWindow, p_open: *mut bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: cty::c_int); + pub fn igBeginDockableDragDropSource(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; + pub fn igBeginDockableDragDropTarget(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiTextBuffer_append( - self_: *mut ImGuiTextBuffer, - str_: *const cty::c_char, - str_end: *const cty::c_char, - ); + pub fn igSetWindowDock(window: *mut ImGuiWindow, dock_id: ImGuiID, cond: ImGuiCond); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePair_Int( - _key: ImGuiID, - _val_i: cty::c_int, - ) -> *mut ImGuiStoragePair; + pub fn igDockBuilderDockWindow(window_name: *const cty::c_char, node_id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_destroy(self_: *mut ImGuiStoragePair); + pub fn igDockBuilderGetNode(node_id: ImGuiID) -> *mut ImGuiDockNode; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePair_Float( - _key: ImGuiID, - _val_f: f32, - ) -> *mut ImGuiStoragePair; + pub fn igDockBuilderGetCentralNode(node_id: ImGuiID) -> *mut ImGuiDockNode; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( - _key: ImGuiID, - _val_p: *mut cty::c_void, - ) -> *mut ImGuiStoragePair; + pub fn igDockBuilderAddNode(node_id: ImGuiID, flags: ImGuiDockNodeFlags) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_Clear(self_: *mut ImGuiStorage); + pub fn igDockBuilderRemoveNode(node_id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_GetInt( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: cty::c_int, - ) -> cty::c_int; + pub fn igDockBuilderRemoveNodeDockedWindows(node_id: ImGuiID, clear_settings_refs: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: cty::c_int); + pub fn igDockBuilderRemoveNodeChildNodes(node_id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_GetBool(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> bool; + pub fn igDockBuilderSetNodePos(node_id: ImGuiID, pos: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_SetBool(self_: *mut ImGuiStorage, key: ImGuiID, val: bool); + pub fn igDockBuilderSetNodeSize(node_id: ImGuiID, size: ImVec2); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_GetFloat(self_: *mut ImGuiStorage, key: ImGuiID, default_val: f32) -> f32; + pub fn igDockBuilderSplitNode( + node_id: ImGuiID, + split_dir: ImGuiDir, + size_ratio_for_node_at_dir: f32, + out_id_at_dir: *mut ImGuiID, + out_id_at_opposite_dir: *mut ImGuiID, + ) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32); + pub fn igDockBuilderCopyDockSpace( + src_dockspace_id: ImGuiID, + dst_dockspace_id: ImGuiID, + in_window_remap_pairs: *mut ImVector_const_charPtr, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_GetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut cty::c_void; + pub fn igDockBuilderCopyNode( + src_node_id: ImGuiID, + dst_node_id: ImGuiID, + out_node_remap_pairs: *mut ImVector_ImGuiID, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut cty::c_void); + pub fn igDockBuilderCopyWindowSettings( + src_name: *const cty::c_char, + dst_name: *const cty::c_char, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_GetIntRef( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: cty::c_int, - ) -> *mut cty::c_int; + pub fn igDockBuilderFinish(node_id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_GetBoolRef( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: bool, - ) -> *mut bool; + pub fn igPushFocusScope(id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_GetFloatRef( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: f32, - ) -> *mut f32; + pub fn igPopFocusScope(); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igGetCurrentFocusScope() -> ImGuiID; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igIsDragDropActive() -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_GetVoidPtrRef( - self_: *mut ImGuiStorage, - key: ImGuiID, - default_val: *mut cty::c_void, - ) -> *mut *mut cty::c_void; + pub fn igBeginDragDropTargetCustom(bb: ImRect, id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: cty::c_int); + pub fn igClearDragDrop(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage); + pub fn igIsDragDropPayloadBeingAccepted() -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiListClipper_ImGuiListClipper() -> *mut ImGuiListClipper; + pub fn igRenderDragDropTargetRect(bb: ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiListClipper_destroy(self_: *mut ImGuiListClipper); + pub fn igSetWindowClipRectBeforeSetChannel(window: *mut ImGuiWindow, clip_rect: ImRect); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiListClipper_Begin( - self_: *mut ImGuiListClipper, - items_count: cty::c_int, - items_height: f32, + pub fn igBeginColumns( + str_id: *const cty::c_char, + count: cty::c_int, + flags: ImGuiOldColumnFlags, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiListClipper_End(self_: *mut ImGuiListClipper); + pub fn igEndColumns(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiListClipper_Step(self_: *mut ImGuiListClipper) -> bool; + pub fn igPushColumnClipRect(column_index: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiListClipper_ForceDisplayRangeByIndices( - self_: *mut ImGuiListClipper, - item_min: cty::c_int, - item_max: cty::c_int, - ); + pub fn igPushColumnsBackground(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColor_Nil() -> *mut ImColor; + pub fn igPopColumnsBackground(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_destroy(self_: *mut ImColor); + pub fn igGetColumnsID(str_id: *const cty::c_char, count: cty::c_int) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColor_Float(r: f32, g: f32, b: f32, a: f32) -> *mut ImColor; + pub fn igFindOrCreateColumns(window: *mut ImGuiWindow, id: ImGuiID) -> *mut ImGuiOldColumns; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColor_Vec4(col: ImVec4) -> *mut ImColor; + pub fn igGetColumnOffsetFromNorm(columns: *const ImGuiOldColumns, offset_norm: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColor_Int( - r: cty::c_int, - g: cty::c_int, - b: cty::c_int, - a: cty::c_int, - ) -> *mut ImColor; + pub fn igGetColumnNormFromOffset(columns: *const ImGuiOldColumns, offset: f32) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_ImColor_U32(rgba: ImU32) -> *mut ImColor; + pub fn igTableOpenContextMenu(column_n: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_SetHSV(self_: *mut ImColor, h: f32, s: f32, v: f32, a: f32); + pub fn igTableSetColumnWidth(column_n: cty::c_int, width: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImColor_HSV(pOut: *mut ImColor, h: f32, s: f32, v: f32, a: f32); + pub fn igTableSetColumnSortDirection( + column_n: cty::c_int, + sort_direction: ImGuiSortDirection, + append_to_sort_specs: bool, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawCmd_ImDrawCmd() -> *mut ImDrawCmd; + pub fn igTableGetHoveredColumn() -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawCmd_destroy(self_: *mut ImDrawCmd); + pub fn igTableGetHeaderRowHeight() -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawCmd_GetTexID(self_: *mut ImDrawCmd) -> ImTextureID; + pub fn igTablePushBackgroundChannel(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawListSplitter_ImDrawListSplitter() -> *mut ImDrawListSplitter; + pub fn igTablePopBackgroundChannel(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawListSplitter_destroy(self_: *mut ImDrawListSplitter); + pub fn igGetCurrentTable() -> *mut ImGuiTable; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawListSplitter_Clear(self_: *mut ImDrawListSplitter); + pub fn igTableFindByID(id: ImGuiID) -> *mut ImGuiTable; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawListSplitter_ClearFreeMemory(self_: *mut ImDrawListSplitter); + pub fn igBeginTableEx( + name: *const cty::c_char, + id: ImGuiID, + columns_count: cty::c_int, + flags: ImGuiTableFlags, + outer_size: ImVec2, + inner_width: f32, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawListSplitter_Split( - self_: *mut ImDrawListSplitter, - draw_list: *mut ImDrawList, - count: cty::c_int, - ); + pub fn igTableBeginInitMemory(table: *mut ImGuiTable, columns_count: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawListSplitter_Merge(self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList); + pub fn igTableBeginApplyRequests(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawListSplitter_SetCurrentChannel( - self_: *mut ImDrawListSplitter, - draw_list: *mut ImDrawList, - channel_idx: cty::c_int, - ); + pub fn igTableSetupDrawChannels(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_ImDrawList(shared_data: *mut ImDrawListSharedData) -> *mut ImDrawList; + pub fn igTableUpdateLayout(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_destroy(self_: *mut ImDrawList); + pub fn igTableUpdateBorders(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PushClipRect( - self_: *mut ImDrawList, - clip_rect_min: ImVec2, - clip_rect_max: ImVec2, - intersect_with_current_clip_rect: bool, - ); + pub fn igTableUpdateColumnsWeightFromWidth(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PushClipRectFullScreen(self_: *mut ImDrawList); + pub fn igTableDrawBorders(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PopClipRect(self_: *mut ImDrawList); + pub fn igTableDrawContextMenu(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PushTextureID(self_: *mut ImDrawList, texture_id: ImTextureID); + pub fn igTableBeginContextMenuPopup(table: *mut ImGuiTable) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PopTextureID(self_: *mut ImDrawList); + pub fn igTableMergeDrawChannels(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_GetClipRectMin(pOut: *mut ImVec2, self_: *mut ImDrawList); + pub fn igTableGetInstanceData( + table: *mut ImGuiTable, + instance_no: cty::c_int, + ) -> *mut ImGuiTableInstanceData; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_GetClipRectMax(pOut: *mut ImVec2, self_: *mut ImDrawList); + pub fn igTableSortSpecsSanitize(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddLine( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - col: ImU32, - thickness: f32, - ); + pub fn igTableSortSpecsBuild(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddRect( - self_: *mut ImDrawList, - p_min: ImVec2, - p_max: ImVec2, - col: ImU32, - rounding: f32, - flags: ImDrawFlags, - thickness: f32, - ); + pub fn igTableGetColumnNextSortDirection(column: *mut ImGuiTableColumn) -> ImGuiSortDirection; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddRectFilled( - self_: *mut ImDrawList, - p_min: ImVec2, - p_max: ImVec2, - col: ImU32, - rounding: f32, - flags: ImDrawFlags, - ); + pub fn igTableFixColumnSortDirection(table: *mut ImGuiTable, column: *mut ImGuiTableColumn); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - 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 igTableGetColumnWidthAuto(table: *mut ImGuiTable, column: *mut ImGuiTableColumn) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddQuad( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - col: ImU32, - thickness: f32, - ); + pub fn igTableBeginRow(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddQuadFilled( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - col: ImU32, - ); + pub fn igTableEndRow(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddTriangle( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - col: ImU32, - thickness: f32, - ); + pub fn igTableBeginCell(table: *mut ImGuiTable, column_n: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddTriangleFilled( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - col: ImU32, - ); + pub fn igTableEndCell(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddCircle( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - col: ImU32, - num_segments: cty::c_int, - thickness: f32, - ); + pub fn igTableGetCellBgRect(pOut: *mut ImRect, table: *const ImGuiTable, column_n: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddCircleFilled( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - col: ImU32, - num_segments: cty::c_int, - ); + pub fn igTableGetColumnName_TablePtr( + table: *const ImGuiTable, + column_n: cty::c_int, + ) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddNgon( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - col: ImU32, - num_segments: cty::c_int, - thickness: f32, - ); + pub fn igTableGetColumnResizeID( + table: *const ImGuiTable, + column_n: cty::c_int, + instance_no: cty::c_int, + ) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddNgonFilled( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - col: ImU32, - num_segments: cty::c_int, - ); + pub fn igTableGetMaxColumnWidth(table: *const ImGuiTable, column_n: cty::c_int) -> f32; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddText_Vec2( - self_: *mut ImDrawList, - pos: ImVec2, - col: ImU32, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, - ); + pub fn igTableSetColumnWidthAutoSingle(table: *mut ImGuiTable, column_n: cty::c_int); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddText_FontPtr( - self_: *mut ImDrawList, - font: *const ImFont, - font_size: f32, - pos: ImVec2, - col: ImU32, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, - wrap_width: f32, - cpu_fine_clip_rect: *const ImVec4, - ); + pub fn igTableSetColumnWidthAutoAll(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddPolyline( - self_: *mut ImDrawList, - points: *const ImVec2, - num_points: cty::c_int, - col: ImU32, - flags: ImDrawFlags, - thickness: f32, - ); + pub fn igTableRemove(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddConvexPolyFilled( - self_: *mut ImDrawList, - points: *const ImVec2, - num_points: cty::c_int, - col: ImU32, - ); + pub fn igTableGcCompactTransientBuffers_TablePtr(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddBezierCubic( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - col: ImU32, - thickness: f32, - num_segments: cty::c_int, - ); + pub fn igTableGcCompactTransientBuffers_TableTempDataPtr(table: *mut ImGuiTableTempData); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddBezierQuadratic( - self_: *mut ImDrawList, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - col: ImU32, - thickness: f32, - num_segments: cty::c_int, - ); + pub fn igTableGcCompactSettings(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddImage( - self_: *mut ImDrawList, - user_texture_id: ImTextureID, - p_min: ImVec2, - p_max: ImVec2, - uv_min: ImVec2, - uv_max: ImVec2, - col: ImU32, - ); + pub fn igTableLoadSettings(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddImageQuad( - self_: *mut ImDrawList, - user_texture_id: ImTextureID, - p1: ImVec2, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - uv1: ImVec2, - uv2: ImVec2, - uv3: ImVec2, - uv4: ImVec2, - col: ImU32, - ); + pub fn igTableSaveSettings(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] -extern "C" { - pub fn ImDrawList_AddImageRounded( - self_: *mut ImDrawList, - user_texture_id: ImTextureID, - p_min: ImVec2, - p_max: ImVec2, - uv_min: ImVec2, - uv_max: ImVec2, - col: ImU32, - rounding: f32, - flags: ImDrawFlags, - ); +extern "C" { + pub fn igTableResetSettings(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathClear(self_: *mut ImDrawList); + pub fn igTableGetBoundSettings(table: *mut ImGuiTable) -> *mut ImGuiTableSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathLineTo(self_: *mut ImDrawList, pos: ImVec2); + pub fn igTableSettingsAddSettingsHandler(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathLineToMergeDuplicate(self_: *mut ImDrawList, pos: ImVec2); + pub fn igTableSettingsCreate(id: ImGuiID, columns_count: cty::c_int) + -> *mut ImGuiTableSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32); + pub fn igTableSettingsFindByID(id: ImGuiID) -> *mut ImGuiTableSettings; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathStroke( - self_: *mut ImDrawList, - col: ImU32, - flags: ImDrawFlags, - thickness: f32, - ); + pub fn igBeginTabBarEx( + tab_bar: *mut ImGuiTabBar, + bb: ImRect, + flags: ImGuiTabBarFlags, + dock_node: *mut ImGuiDockNode, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathArcTo( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - a_min: f32, - a_max: f32, - num_segments: cty::c_int, - ); + pub fn igTabBarFindTabByID(tab_bar: *mut ImGuiTabBar, tab_id: ImGuiID) -> *mut ImGuiTabItem; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathArcToFast( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - a_min_of_12: cty::c_int, - a_max_of_12: cty::c_int, - ); + pub fn igTabBarFindMostRecentlySelectedTabForActiveWindow( + tab_bar: *mut ImGuiTabBar, + ) -> *mut ImGuiTabItem; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathBezierCubicCurveTo( - self_: *mut ImDrawList, - p2: ImVec2, - p3: ImVec2, - p4: ImVec2, - num_segments: cty::c_int, + pub fn igTabBarAddTab( + tab_bar: *mut ImGuiTabBar, + tab_flags: ImGuiTabItemFlags, + window: *mut ImGuiWindow, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathBezierQuadraticCurveTo( - self_: *mut ImDrawList, - p2: ImVec2, - p3: ImVec2, - num_segments: cty::c_int, - ); + pub fn igTabBarRemoveTab(tab_bar: *mut ImGuiTabBar, tab_id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PathRect( - self_: *mut ImDrawList, - rect_min: ImVec2, - rect_max: ImVec2, - rounding: f32, - flags: ImDrawFlags, + pub fn igTabBarCloseTab(tab_bar: *mut ImGuiTabBar, tab: *mut ImGuiTabItem); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTabBarQueueReorder( + tab_bar: *mut ImGuiTabBar, + tab: *const ImGuiTabItem, + offset: cty::c_int, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddCallback( - self_: *mut ImDrawList, - callback: ImDrawCallback, - callback_data: *mut cty::c_void, + pub fn igTabBarQueueReorderFromMousePos( + tab_bar: *mut ImGuiTabBar, + tab: *const ImGuiTabItem, + mouse_pos: ImVec2, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_AddDrawCmd(self_: *mut ImDrawList); + pub fn igTabBarProcessReorder(tab_bar: *mut ImGuiTabBar) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_CloneOutput(self_: *mut ImDrawList) -> *mut ImDrawList; + pub fn igTabItemEx( + tab_bar: *mut ImGuiTabBar, + label: *const cty::c_char, + p_open: *mut bool, + flags: ImGuiTabItemFlags, + docked_window: *mut ImGuiWindow, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: cty::c_int); + pub fn igTabItemCalcSize_Str( + pOut: *mut ImVec2, + label: *const cty::c_char, + has_close_button_or_unsaved_marker: bool, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList); + pub fn igTabItemCalcSize_WindowPtr(pOut: *mut ImVec2, window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: cty::c_int); + pub fn igTabItemBackground( + draw_list: *mut ImDrawList, + bb: ImRect, + flags: ImGuiTabItemFlags, + col: ImU32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PrimReserve( - self_: *mut ImDrawList, - idx_count: cty::c_int, - vtx_count: cty::c_int, + pub fn igTabItemLabelAndCloseButton( + draw_list: *mut ImDrawList, + bb: ImRect, + flags: ImGuiTabItemFlags, + frame_padding: ImVec2, + label: *const cty::c_char, + tab_id: ImGuiID, + close_button_id: ImGuiID, + is_contents_visible: bool, + out_just_closed: *mut bool, + out_text_clipped: *mut bool, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PrimUnreserve( - self_: *mut ImDrawList, - idx_count: cty::c_int, - vtx_count: cty::c_int, + pub fn igRenderText( + pos: ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + hide_text_after_hash: bool, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PrimRect(self_: *mut ImDrawList, a: ImVec2, b: ImVec2, col: ImU32); + pub fn igRenderTextWrapped( + pos: ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + wrap_width: f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PrimRectUV( - self_: *mut ImDrawList, - a: ImVec2, - b: ImVec2, - uv_a: ImVec2, - uv_b: ImVec2, - col: ImU32, + pub fn igRenderTextClipped( + pos_min: ImVec2, + pos_max: ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + text_size_if_known: *const ImVec2, + align: ImVec2, + clip_rect: *const ImRect, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - 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 igRenderTextClippedEx( + draw_list: *mut ImDrawList, + pos_min: ImVec2, + pos_max: ImVec2, + text: *const cty::c_char, + text_end: *const cty::c_char, + text_size_if_known: *const ImVec2, + align: ImVec2, + clip_rect: *const ImRect, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PrimWriteVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); + pub fn igRenderTextEllipsis( + draw_list: *mut ImDrawList, + pos_min: ImVec2, + pos_max: ImVec2, + clip_max_x: f32, + ellipsis_max_x: f32, + text: *const cty::c_char, + text_end: *const cty::c_char, + text_size_if_known: *const ImVec2, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PrimWriteIdx(self_: *mut ImDrawList, idx: ImDrawIdx); + pub fn igRenderFrame( + p_min: ImVec2, + p_max: ImVec2, + fill_col: ImU32, + border: bool, + rounding: f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList_PrimVtx(self_: *mut ImDrawList, pos: ImVec2, uv: ImVec2, col: ImU32); + pub fn igRenderFrameBorder(p_min: ImVec2, p_max: ImVec2, rounding: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__ResetForNewFrame(self_: *mut ImDrawList); + pub fn igRenderColorRectWithAlphaCheckerboard( + draw_list: *mut ImDrawList, + p_min: ImVec2, + p_max: ImVec2, + fill_col: ImU32, + grid_step: f32, + grid_off: ImVec2, + rounding: f32, + flags: ImDrawFlags, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__ClearFreeMemory(self_: *mut ImDrawList); + pub fn igRenderNavHighlight(bb: ImRect, id: ImGuiID, flags: ImGuiNavHighlightFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__PopUnusedDrawCmd(self_: *mut ImDrawList); + pub fn igFindRenderedTextEnd( + text: *const cty::c_char, + text_end: *const cty::c_char, + ) -> *const cty::c_char; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__TryMergeDrawCmds(self_: *mut ImDrawList); + pub fn igRenderMouseCursor( + pos: ImVec2, + scale: f32, + mouse_cursor: ImGuiMouseCursor, + col_fill: ImU32, + col_border: ImU32, + col_shadow: ImU32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__OnChangedClipRect(self_: *mut ImDrawList); + pub fn igRenderArrow( + draw_list: *mut ImDrawList, + pos: ImVec2, + col: ImU32, + dir: ImGuiDir, + scale: f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__OnChangedTextureID(self_: *mut ImDrawList); + pub fn igRenderBullet(draw_list: *mut ImDrawList, pos: ImVec2, col: ImU32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList); + pub fn igRenderCheckMark(draw_list: *mut ImDrawList, pos: ImVec2, col: ImU32, sz: f32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__CalcCircleAutoSegmentCount( - self_: *mut ImDrawList, - radius: f32, - ) -> cty::c_int; + pub fn igRenderArrowPointingAt( + draw_list: *mut ImDrawList, + pos: ImVec2, + half_sz: ImVec2, + direction: ImGuiDir, + col: ImU32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__PathArcToFastEx( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - a_min_sample: cty::c_int, - a_max_sample: cty::c_int, - a_step: cty::c_int, + pub fn igRenderArrowDockMenu(draw_list: *mut ImDrawList, p_min: ImVec2, sz: f32, col: ImU32); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igRenderRectFilledRangeH( + draw_list: *mut ImDrawList, + rect: ImRect, + col: ImU32, + x_start_norm: f32, + x_end_norm: f32, + rounding: f32, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawList__PathArcToN( - self_: *mut ImDrawList, - center: ImVec2, - radius: f32, - a_min: f32, - a_max: f32, - num_segments: cty::c_int, + pub fn igRenderRectFilledWithHole( + draw_list: *mut ImDrawList, + outer: ImRect, + inner: ImRect, + col: ImU32, + rounding: f32, ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawData_ImDrawData() -> *mut ImDrawData; + pub fn igCalcRoundingFlagsForRectInRect( + r_in: ImRect, + r_outer: ImRect, + threshold: f32, + ) -> ImDrawFlags; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawData_destroy(self_: *mut ImDrawData); + pub fn igTextEx(text: *const cty::c_char, text_end: *const cty::c_char, flags: ImGuiTextFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawData_Clear(self_: *mut ImDrawData); + pub fn igButtonEx(label: *const cty::c_char, size_arg: ImVec2, flags: ImGuiButtonFlags) + -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawData_DeIndexAllBuffers(self_: *mut ImDrawData); + pub fn igCloseButton(id: ImGuiID, pos: ImVec2) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImDrawData_ScaleClipRects(self_: *mut ImDrawData, fb_scale: ImVec2); + pub fn igCollapseButton(id: ImGuiID, pos: ImVec2, dock_node: *mut ImGuiDockNode) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontConfig_ImFontConfig() -> *mut ImFontConfig; + pub fn igArrowButtonEx( + str_id: *const cty::c_char, + dir: ImGuiDir, + size_arg: ImVec2, + flags: ImGuiButtonFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontConfig_destroy(self_: *mut ImFontConfig); + pub fn igScrollbar(axis: ImGuiAxis); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder() -> *mut ImFontGlyphRangesBuilder; + pub fn igScrollbarEx( + bb: ImRect, + id: ImGuiID, + axis: ImGuiAxis, + p_scroll_v: *mut ImS64, + avail_v: ImS64, + contents_v: ImS64, + flags: ImDrawFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontGlyphRangesBuilder_destroy(self_: *mut ImFontGlyphRangesBuilder); + pub fn igImageButtonEx( + id: ImGuiID, + texture_id: ImTextureID, + size: ImVec2, + uv0: ImVec2, + uv1: ImVec2, + bg_col: ImVec4, + tint_col: ImVec4, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontGlyphRangesBuilder_Clear(self_: *mut ImFontGlyphRangesBuilder); + pub fn igGetWindowScrollbarRect(pOut: *mut ImRect, window: *mut ImGuiWindow, axis: ImGuiAxis); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontGlyphRangesBuilder_GetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize) -> bool; + pub fn igGetWindowScrollbarID(window: *mut ImGuiWindow, axis: ImGuiAxis) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontGlyphRangesBuilder_SetBit(self_: *mut ImFontGlyphRangesBuilder, n: usize); + pub fn igGetWindowResizeCornerID(window: *mut ImGuiWindow, n: cty::c_int) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontGlyphRangesBuilder_AddChar(self_: *mut ImFontGlyphRangesBuilder, c: ImWchar); + pub fn igGetWindowResizeBorderID(window: *mut ImGuiWindow, dir: ImGuiDir) -> ImGuiID; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontGlyphRangesBuilder_AddText( - self_: *mut ImFontGlyphRangesBuilder, - text: *const cty::c_char, - text_end: *const cty::c_char, - ); + pub fn igSeparatorEx(flags: ImGuiSeparatorFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontGlyphRangesBuilder_AddRanges( - self_: *mut ImFontGlyphRangesBuilder, - ranges: *const ImWchar, - ); + pub fn igCheckboxFlags_S64Ptr( + label: *const cty::c_char, + flags: *mut ImS64, + flags_value: ImS64, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontGlyphRangesBuilder_BuildRanges( - self_: *mut ImFontGlyphRangesBuilder, - out_ranges: *mut ImVector_ImWchar, - ); + pub fn igCheckboxFlags_U64Ptr( + label: *const cty::c_char, + flags: *mut ImU64, + flags_value: ImU64, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlasCustomRect_ImFontAtlasCustomRect() -> *mut ImFontAtlasCustomRect; + pub fn igButtonBehavior( + bb: ImRect, + id: ImGuiID, + out_hovered: *mut bool, + out_held: *mut bool, + flags: ImGuiButtonFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlasCustomRect_destroy(self_: *mut ImFontAtlasCustomRect); + pub fn igDragBehavior( + id: ImGuiID, + data_type: ImGuiDataType, + p_v: *mut cty::c_void, + v_speed: f32, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlasCustomRect_IsPacked(self_: *mut ImFontAtlasCustomRect) -> bool; + pub fn igSliderBehavior( + bb: ImRect, + id: ImGuiID, + data_type: ImGuiDataType, + p_v: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + format: *const cty::c_char, + flags: ImGuiSliderFlags, + out_grab_bb: *mut ImRect, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_ImFontAtlas() -> *mut ImFontAtlas; + pub fn igSplitterBehavior( + bb: ImRect, + id: ImGuiID, + axis: ImGuiAxis, + size1: *mut f32, + size2: *mut f32, + min_size1: f32, + min_size2: f32, + hover_extend: f32, + hover_visibility_delay: f32, + bg_col: ImU32, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_destroy(self_: *mut ImFontAtlas); + pub fn igTreeNodeBehavior( + id: ImGuiID, + flags: ImGuiTreeNodeFlags, + label: *const cty::c_char, + label_end: *const cty::c_char, + ) -> bool; +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreePushOverrideID(id: ImGuiID); +} +#[link(wasm_import_module = "imgui-sys-v0")] +extern "C" { + pub fn igTreeNodeSetOpen(id: ImGuiID, open: bool); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_AddFont( - self_: *mut ImFontAtlas, - font_cfg: *const ImFontConfig, - ) -> *mut ImFont; + pub fn igTreeNodeUpdateNextOpen(id: ImGuiID, flags: ImGuiTreeNodeFlags) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_AddFontDefault( - self_: *mut ImFontAtlas, - font_cfg: *const ImFontConfig, - ) -> *mut ImFont; + pub fn igDataTypeGetInfo(data_type: ImGuiDataType) -> *const ImGuiDataTypeInfo; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_AddFontFromFileTTF( - self_: *mut ImFontAtlas, - filename: *const cty::c_char, - size_pixels: f32, - font_cfg: *const ImFontConfig, - glyph_ranges: *const ImWchar, - ) -> *mut ImFont; + pub fn igDataTypeFormatString( + buf: *mut cty::c_char, + buf_size: cty::c_int, + data_type: ImGuiDataType, + p_data: *const cty::c_void, + format: *const cty::c_char, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_AddFontFromMemoryTTF( - self_: *mut ImFontAtlas, - font_data: *mut cty::c_void, - font_size: cty::c_int, - size_pixels: f32, - font_cfg: *const ImFontConfig, - glyph_ranges: *const ImWchar, - ) -> *mut ImFont; + pub fn igDataTypeApplyOp( + data_type: ImGuiDataType, + op: cty::c_int, + output: *mut cty::c_void, + arg_1: *const cty::c_void, + arg_2: *const cty::c_void, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF( - self_: *mut ImFontAtlas, - compressed_font_data: *const cty::c_void, - compressed_font_size: cty::c_int, - size_pixels: f32, - font_cfg: *const ImFontConfig, - glyph_ranges: *const ImWchar, - ) -> *mut ImFont; + pub fn igDataTypeApplyFromText( + buf: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + format: *const cty::c_char, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF( - self_: *mut ImFontAtlas, - compressed_font_data_base85: *const cty::c_char, - size_pixels: f32, - font_cfg: *const ImFontConfig, - glyph_ranges: *const ImWchar, - ) -> *mut ImFont; + pub fn igDataTypeCompare( + data_type: ImGuiDataType, + arg_1: *const cty::c_void, + arg_2: *const cty::c_void, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_ClearInputData(self_: *mut ImFontAtlas); + pub fn igDataTypeClamp( + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + p_min: *const cty::c_void, + p_max: *const cty::c_void, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_ClearTexData(self_: *mut ImFontAtlas); + pub fn igInputTextEx( + label: *const cty::c_char, + hint: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: cty::c_int, + size_arg: ImVec2, + flags: ImGuiInputTextFlags, + callback: ImGuiInputTextCallback, + user_data: *mut cty::c_void, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_ClearFonts(self_: *mut ImFontAtlas); + pub fn igTempInputText( + bb: ImRect, + id: ImGuiID, + label: *const cty::c_char, + buf: *mut cty::c_char, + buf_size: cty::c_int, + flags: ImGuiInputTextFlags, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_Clear(self_: *mut ImFontAtlas); + pub fn igTempInputScalar( + bb: ImRect, + id: ImGuiID, + label: *const cty::c_char, + data_type: ImGuiDataType, + p_data: *mut cty::c_void, + format: *const cty::c_char, + p_clamp_min: *const cty::c_void, + p_clamp_max: *const cty::c_void, + ) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_Build(self_: *mut ImFontAtlas) -> bool; + pub fn igTempInputIsActive(id: ImGuiID) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetTexDataAsAlpha8( - self_: *mut ImFontAtlas, - out_pixels: *mut *mut cty::c_uchar, - out_width: *mut cty::c_int, - out_height: *mut cty::c_int, - out_bytes_per_pixel: *mut cty::c_int, - ); + pub fn igGetInputTextState(id: ImGuiID) -> *mut ImGuiInputTextState; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetTexDataAsRGBA32( - self_: *mut ImFontAtlas, - out_pixels: *mut *mut cty::c_uchar, - out_width: *mut cty::c_int, - out_height: *mut cty::c_int, - out_bytes_per_pixel: *mut cty::c_int, - ); + pub fn igColorTooltip(text: *const cty::c_char, col: *const f32, flags: ImGuiColorEditFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_IsBuilt(self_: *mut ImFontAtlas) -> bool; + pub fn igColorEditOptionsPopup(col: *const f32, flags: ImGuiColorEditFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_SetTexID(self_: *mut ImFontAtlas, id: ImTextureID); + pub fn igColorPickerOptionsPopup(ref_col: *const f32, flags: ImGuiColorEditFlags); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetGlyphRangesDefault(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igPlotEx( + plot_type: ImGuiPlotType, + label: *const cty::c_char, + values_getter: ::core::option::Option< + unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + >, + data: *mut cty::c_void, + values_count: cty::c_int, + values_offset: cty::c_int, + overlay_text: *const cty::c_char, + scale_min: f32, + scale_max: f32, + frame_size: ImVec2, + ) -> cty::c_int; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetGlyphRangesGreek(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igShadeVertsLinearColorGradientKeepAlpha( + draw_list: *mut ImDrawList, + vert_start_idx: cty::c_int, + vert_end_idx: cty::c_int, + gradient_p0: ImVec2, + gradient_p1: ImVec2, + col0: ImU32, + col1: ImU32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetGlyphRangesKorean(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igShadeVertsLinearUV( + draw_list: *mut ImDrawList, + vert_start_idx: cty::c_int, + vert_end_idx: cty::c_int, + a: ImVec2, + b: ImVec2, + uv_a: ImVec2, + uv_b: ImVec2, + clamp: bool, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetGlyphRangesJapanese(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igGcCompactTransientMiscBuffers(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetGlyphRangesChineseFull(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igGcCompactTransientWindowBuffers(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon( - self_: *mut ImFontAtlas, - ) -> *const ImWchar; + pub fn igGcAwakeTransientWindowBuffers(window: *mut ImGuiWindow); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetGlyphRangesCyrillic(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igDebugLog(fmt: *const cty::c_char, ...); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetGlyphRangesThai(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igErrorCheckEndFrameRecover( + log_callback: ImGuiErrorLogCallback, + user_data: *mut cty::c_void, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetGlyphRangesVietnamese(self_: *mut ImFontAtlas) -> *const ImWchar; + pub fn igErrorCheckEndWindowRecover( + log_callback: ImGuiErrorLogCallback, + user_data: *mut cty::c_void, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_AddCustomRectRegular( - self_: *mut ImFontAtlas, - width: cty::c_int, - height: cty::c_int, - ) -> cty::c_int; + pub fn igErrorCheckUsingSetCursorPosToExtendParentBoundaries(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_AddCustomRectFontGlyph( - self_: *mut ImFontAtlas, - font: *mut ImFont, - id: ImWchar, - width: cty::c_int, - height: cty::c_int, - advance_x: f32, - offset: ImVec2, - ) -> cty::c_int; + pub fn igDebugLocateItem(target_id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetCustomRectByIndex( - self_: *mut ImFontAtlas, - index: cty::c_int, - ) -> *mut ImFontAtlasCustomRect; + pub fn igDebugLocateItemOnHover(target_id: ImGuiID); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_CalcCustomRectUV( - self_: *mut ImFontAtlas, - rect: *const ImFontAtlasCustomRect, - out_uv_min: *mut ImVec2, - out_uv_max: *mut ImVec2, - ); + pub fn igDebugLocateItemResolveWithLastItem(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFontAtlas_GetMouseCursorTexData( - self_: *mut ImFontAtlas, - cursor: ImGuiMouseCursor, - out_offset: *mut ImVec2, - out_size: *mut ImVec2, - out_uv_border: *mut ImVec2, - out_uv_fill: *mut ImVec2, - ) -> bool; + pub fn igDebugDrawItemRect(col: ImU32); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_ImFont() -> *mut ImFont; + pub fn igDebugStartItemPicker(); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_destroy(self_: *mut ImFont); + pub fn igShowFontAtlas(atlas: *mut ImFontAtlas); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_FindGlyph(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; + pub fn igDebugHookIdInfo( + id: ImGuiID, + data_type: ImGuiDataType, + data_id: *const cty::c_void, + data_id_end: *const cty::c_void, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_FindGlyphNoFallback(self_: *mut ImFont, c: ImWchar) -> *const ImFontGlyph; + pub fn igDebugNodeColumns(columns: *mut ImGuiOldColumns); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_GetCharAdvance(self_: *mut ImFont, c: ImWchar) -> f32; + pub fn igDebugNodeDockNode(node: *mut ImGuiDockNode, label: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_IsLoaded(self_: *mut ImFont) -> bool; + pub fn igDebugNodeDrawList( + window: *mut ImGuiWindow, + viewport: *mut ImGuiViewportP, + draw_list: *const ImDrawList, + label: *const cty::c_char, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const cty::c_char; + pub fn igDebugNodeDrawCmdShowMeshAndBoundingBox( + out_draw_list: *mut ImDrawList, + draw_list: *const ImDrawList, + draw_cmd: *const ImDrawCmd, + show_mesh: bool, + show_aabb: bool, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_CalcTextSizeA( - pOut: *mut ImVec2, - self_: *mut ImFont, - size: f32, - max_width: f32, - wrap_width: f32, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, - remaining: *mut *const cty::c_char, - ); + pub fn igDebugNodeFont(font: *mut ImFont); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_CalcWordWrapPositionA( - self_: *mut ImFont, - scale: f32, - text: *const cty::c_char, - text_end: *const cty::c_char, - wrap_width: f32, - ) -> *const cty::c_char; + pub fn igDebugNodeFontGlyph(font: *mut ImFont, glyph: *const ImFontGlyph); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_RenderChar( - self_: *mut ImFont, - draw_list: *mut ImDrawList, - size: f32, - pos: ImVec2, - col: ImU32, - c: ImWchar, - ); + pub fn igDebugNodeStorage(storage: *mut ImGuiStorage, label: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_RenderText( - self_: *mut ImFont, - draw_list: *mut ImDrawList, - size: f32, - pos: ImVec2, - col: ImU32, - clip_rect: ImVec4, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, - wrap_width: f32, - cpu_fine_clip: bool, - ); + pub fn igDebugNodeTabBar(tab_bar: *mut ImGuiTabBar, label: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_BuildLookupTable(self_: *mut ImFont); + pub fn igDebugNodeTable(table: *mut ImGuiTable); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_ClearOutputData(self_: *mut ImFont); + pub fn igDebugNodeTableSettings(settings: *mut ImGuiTableSettings); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: cty::c_int); + pub fn igDebugNodeInputTextState(state: *mut ImGuiInputTextState); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_AddGlyph( - self_: *mut ImFont, - src_cfg: *const ImFontConfig, - c: ImWchar, - x0: f32, - y0: f32, - x1: f32, - y1: f32, - u0: f32, - v0: f32, - u1: f32, - v1: f32, - advance_x: f32, - ); + pub fn igDebugNodeWindow(window: *mut ImGuiWindow, label: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_AddRemapChar(self_: *mut ImFont, dst: ImWchar, src: ImWchar, overwrite_dst: bool); + pub fn igDebugNodeWindowSettings(settings: *mut ImGuiWindowSettings); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_SetGlyphVisible(self_: *mut ImFont, c: ImWchar, visible: bool); + pub fn igDebugNodeWindowsList(windows: *mut ImVector_ImGuiWindowPtr, label: *const cty::c_char); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImFont_IsGlyphRangeUnused( - self_: *mut ImFont, - c_begin: cty::c_uint, - c_last: cty::c_uint, - ) -> bool; + pub fn igDebugNodeWindowsListByBeginStackParent( + windows: *mut *mut ImGuiWindow, + windows_size: cty::c_int, + parent_in_begin_stack: *mut ImGuiWindow, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiViewport_ImGuiViewport() -> *mut ImGuiViewport; + pub fn igDebugNodeViewport(viewport: *mut ImGuiViewportP); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiViewport_destroy(self_: *mut ImGuiViewport); + pub fn igDebugRenderViewportThumbnail( + draw_list: *mut ImDrawList, + viewport: *mut ImGuiViewportP, + bb: ImRect, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiViewport_GetCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); + pub fn igIsKeyPressedMap(key: ImGuiKey, repeat: bool) -> bool; } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiViewport_GetWorkCenter(pOut: *mut ImVec2, self_: *mut ImGuiViewport); + pub fn igImFontAtlasBuildInit(atlas: *mut ImFontAtlas); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPlatformIO_ImGuiPlatformIO() -> *mut ImGuiPlatformIO; + pub fn igImFontAtlasBuildSetupFont( + atlas: *mut ImFontAtlas, + font: *mut ImFont, + font_config: *mut ImFontConfig, + ascent: f32, + descent: f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPlatformIO_destroy(self_: *mut ImGuiPlatformIO); + pub fn igImFontAtlasBuildPackCustomRects( + atlas: *mut ImFontAtlas, + stbrp_context_opaque: *mut cty::c_void, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPlatformMonitor_ImGuiPlatformMonitor() -> *mut ImGuiPlatformMonitor; + pub fn igImFontAtlasBuildFinish(atlas: *mut ImFontAtlas); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPlatformMonitor_destroy(self_: *mut ImGuiPlatformMonitor); + pub fn igImFontAtlasBuildRender8bppRectFromString( + atlas: *mut ImFontAtlas, + x: cty::c_int, + y: cty::c_int, + w: cty::c_int, + h: cty::c_int, + in_str: *const cty::c_char, + in_marker_char: cty::c_char, + in_marker_pixel_value: cty::c_uchar, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPlatformImeData_ImGuiPlatformImeData() -> *mut ImGuiPlatformImeData; + pub fn igImFontAtlasBuildRender32bppRectFromString( + atlas: *mut ImFontAtlas, + x: cty::c_int, + y: cty::c_int, + w: cty::c_int, + h: cty::c_int, + in_str: *const cty::c_char, + in_marker_char: cty::c_char, + in_marker_pixel_value: cty::c_uint, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); + pub fn igImFontAtlasBuildMultiplyCalcLookupTable( + out_table: *mut cty::c_uchar, + in_multiply_factor: f32, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { - pub fn igGetKeyIndex(key: ImGuiKey) -> ImGuiKey; + pub fn igImFontAtlasBuildMultiplyRectAlpha8( + table: *const cty::c_uchar, + pixels: *mut cty::c_uchar, + x: cty::c_int, + y: cty::c_int, + w: cty::c_int, + h: cty::c_int, + stride: cty::c_int, + ); } #[link(wasm_import_module = "imgui-sys-v0")] extern "C" { diff --git a/imgui-sys/third-party/imgui-docking-freetype/cimgui.cpp b/imgui-sys/third-party/imgui-docking-freetype/cimgui.cpp index 8ee2fae69..f1669c55e 100644 --- a/imgui-sys/third-party/imgui-docking-freetype/cimgui.cpp +++ b/imgui-sys/third-party/imgui-docking-freetype/cimgui.cpp @@ -1,5 +1,6 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //based on imgui.h file version "1.89.1" 18910 from Dear ImGui https://github.com/ocornut/imgui +//with imgui_internal.h api //with imgui_freetype.h api //docking branch #define IMGUI_ENABLE_FREETYPE @@ -297,11 +298,11 @@ CIMGUI_API float igGetScrollY() { return ImGui::GetScrollY(); } -CIMGUI_API void igSetScrollX(float scroll_x) +CIMGUI_API void igSetScrollX_Float(float scroll_x) { return ImGui::SetScrollX(scroll_x); } -CIMGUI_API void igSetScrollY(float scroll_y) +CIMGUI_API void igSetScrollY_Float(float scroll_y) { return ImGui::SetScrollY(scroll_y); } @@ -321,11 +322,11 @@ CIMGUI_API void igSetScrollHereY(float center_y_ratio) { return ImGui::SetScrollHereY(center_y_ratio); } -CIMGUI_API void igSetScrollFromPosX(float local_x,float center_x_ratio) +CIMGUI_API void igSetScrollFromPosX_Float(float local_x,float center_x_ratio) { return ImGui::SetScrollFromPosX(local_x,center_x_ratio); } -CIMGUI_API void igSetScrollFromPosY(float local_y,float center_y_ratio) +CIMGUI_API void igSetScrollFromPosY_Float(float local_y,float center_y_ratio) { return ImGui::SetScrollFromPosY(local_y,center_y_ratio); } @@ -1110,7 +1111,7 @@ CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,ImGuiPopupFlags popup { return ImGui::BeginPopupContextVoid(str_id,popup_flags); } -CIMGUI_API bool igIsPopupOpen(const char* str_id,ImGuiPopupFlags flags) +CIMGUI_API bool igIsPopupOpen_Str(const char* str_id,ImGuiPopupFlags flags) { return ImGui::IsPopupOpen(str_id,flags); } @@ -1166,7 +1167,7 @@ CIMGUI_API int igTableGetRowIndex() { return ImGui::TableGetRowIndex(); } -CIMGUI_API const char* igTableGetColumnName(int column_n) +CIMGUI_API const char* igTableGetColumnName_Int(int column_n) { return ImGui::TableGetColumnName(column_n); } @@ -1486,15 +1487,15 @@ CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,floa { return ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b); } -CIMGUI_API bool igIsKeyDown(ImGuiKey key) +CIMGUI_API bool igIsKeyDown_Nil(ImGuiKey key) { return ImGui::IsKeyDown(key); } -CIMGUI_API bool igIsKeyPressed(ImGuiKey key,bool repeat) +CIMGUI_API bool igIsKeyPressed_Bool(ImGuiKey key,bool repeat) { return ImGui::IsKeyPressed(key,repeat); } -CIMGUI_API bool igIsKeyReleased(ImGuiKey key) +CIMGUI_API bool igIsKeyReleased_Nil(ImGuiKey key) { return ImGui::IsKeyReleased(key); } @@ -1510,15 +1511,15 @@ CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) { return ImGui::SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } -CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button) +CIMGUI_API bool igIsMouseDown_Nil(ImGuiMouseButton button) { return ImGui::IsMouseDown(button); } -CIMGUI_API bool igIsMouseClicked(ImGuiMouseButton button,bool repeat) +CIMGUI_API bool igIsMouseClicked_Bool(ImGuiMouseButton button,bool repeat) { return ImGui::IsMouseClicked(button,repeat); } -CIMGUI_API bool igIsMouseReleased(ImGuiMouseButton button) +CIMGUI_API bool igIsMouseReleased_Nil(ImGuiMouseButton button) { return ImGui::IsMouseReleased(button); } @@ -2642,6 +2643,2640 @@ CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key) { return ImGui::GetKeyIndex(key); } +CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImU32 seed) +{ + return ImHashData(data,data_size,seed); +} +CIMGUI_API ImGuiID igImHashStr(const char* data,size_t data_size,ImU32 seed) +{ + return ImHashStr(data,data_size,seed); +} +CIMGUI_API void igImQsort(void* base,size_t count,size_t size_of_element,int(*compare_func)(void const*,void const*)) +{ + return ImQsort(base,count,size_of_element,compare_func); +} +CIMGUI_API ImU32 igImAlphaBlendColors(ImU32 col_a,ImU32 col_b) +{ + return ImAlphaBlendColors(col_a,col_b); +} +CIMGUI_API bool igImIsPowerOfTwo_Int(int v) +{ + return ImIsPowerOfTwo(v); +} +CIMGUI_API bool igImIsPowerOfTwo_U64(ImU64 v) +{ + return ImIsPowerOfTwo(v); +} +CIMGUI_API int igImUpperPowerOfTwo(int v) +{ + return ImUpperPowerOfTwo(v); +} +CIMGUI_API int igImStricmp(const char* str1,const char* str2) +{ + return ImStricmp(str1,str2); +} +CIMGUI_API int igImStrnicmp(const char* str1,const char* str2,size_t count) +{ + return ImStrnicmp(str1,str2,count); +} +CIMGUI_API void igImStrncpy(char* dst,const char* src,size_t count) +{ + return ImStrncpy(dst,src,count); +} +CIMGUI_API char* igImStrdup(const char* str) +{ + return ImStrdup(str); +} +CIMGUI_API char* igImStrdupcpy(char* dst,size_t* p_dst_size,const char* str) +{ + return ImStrdupcpy(dst,p_dst_size,str); +} +CIMGUI_API const char* igImStrchrRange(const char* str_begin,const char* str_end,char c) +{ + return ImStrchrRange(str_begin,str_end,c); +} +CIMGUI_API int igImStrlenW(const ImWchar* str) +{ + return ImStrlenW(str); +} +CIMGUI_API const char* igImStreolRange(const char* str,const char* str_end) +{ + return ImStreolRange(str,str_end); +} +CIMGUI_API const ImWchar* igImStrbolW(const ImWchar* buf_mid_line,const ImWchar* buf_begin) +{ + return ImStrbolW(buf_mid_line,buf_begin); +} +CIMGUI_API const char* igImStristr(const char* haystack,const char* haystack_end,const char* needle,const char* needle_end) +{ + return ImStristr(haystack,haystack_end,needle,needle_end); +} +CIMGUI_API void igImStrTrimBlanks(char* str) +{ + return ImStrTrimBlanks(str); +} +CIMGUI_API const char* igImStrSkipBlank(const char* str) +{ + return ImStrSkipBlank(str); +} +CIMGUI_API char igImToUpper(char c) +{ + return ImToUpper(c); +} +CIMGUI_API bool igImCharIsBlankA(char c) +{ + return ImCharIsBlankA(c); +} +CIMGUI_API bool igImCharIsBlankW(unsigned int c) +{ + return ImCharIsBlankW(c); +} +CIMGUI_API int igImFormatString(char* buf,size_t buf_size,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + int ret = ImFormatStringV(buf,buf_size,fmt,args); + va_end(args); + return ret; +} +CIMGUI_API int igImFormatStringV(char* buf,size_t buf_size,const char* fmt,va_list args) +{ + return ImFormatStringV(buf,buf_size,fmt,args); +} +CIMGUI_API void igImFormatStringToTempBuffer(const char** out_buf,const char** out_buf_end,const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImFormatStringToTempBufferV(out_buf,out_buf_end,fmt,args); + va_end(args); +} +CIMGUI_API void igImFormatStringToTempBufferV(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args) +{ + return ImFormatStringToTempBufferV(out_buf,out_buf_end,fmt,args); +} +CIMGUI_API const char* igImParseFormatFindStart(const char* format) +{ + return ImParseFormatFindStart(format); +} +CIMGUI_API const char* igImParseFormatFindEnd(const char* format) +{ + return ImParseFormatFindEnd(format); +} +CIMGUI_API const char* igImParseFormatTrimDecorations(const char* format,char* buf,size_t buf_size) +{ + return ImParseFormatTrimDecorations(format,buf,buf_size); +} +CIMGUI_API void igImParseFormatSanitizeForPrinting(const char* fmt_in,char* fmt_out,size_t fmt_out_size) +{ + return ImParseFormatSanitizeForPrinting(fmt_in,fmt_out,fmt_out_size); +} +CIMGUI_API const char* igImParseFormatSanitizeForScanning(const char* fmt_in,char* fmt_out,size_t fmt_out_size) +{ + return ImParseFormatSanitizeForScanning(fmt_in,fmt_out,fmt_out_size); +} +CIMGUI_API int igImParseFormatPrecision(const char* format,int default_value) +{ + return ImParseFormatPrecision(format,default_value); +} +CIMGUI_API const char* igImTextCharToUtf8(char out_buf[5],unsigned int c) +{ + return ImTextCharToUtf8(out_buf,c); +} +CIMGUI_API int igImTextStrToUtf8(char* out_buf,int out_buf_size,const ImWchar* in_text,const ImWchar* in_text_end) +{ + return ImTextStrToUtf8(out_buf,out_buf_size,in_text,in_text_end); +} +CIMGUI_API int igImTextCharFromUtf8(unsigned int* out_char,const char* in_text,const char* in_text_end) +{ + return ImTextCharFromUtf8(out_char,in_text,in_text_end); +} +CIMGUI_API int igImTextStrFromUtf8(ImWchar* out_buf,int out_buf_size,const char* in_text,const char* in_text_end,const char** in_remaining) +{ + return ImTextStrFromUtf8(out_buf,out_buf_size,in_text,in_text_end,in_remaining); +} +CIMGUI_API int igImTextCountCharsFromUtf8(const char* in_text,const char* in_text_end) +{ + return ImTextCountCharsFromUtf8(in_text,in_text_end); +} +CIMGUI_API int igImTextCountUtf8BytesFromChar(const char* in_text,const char* in_text_end) +{ + return ImTextCountUtf8BytesFromChar(in_text,in_text_end); +} +CIMGUI_API int igImTextCountUtf8BytesFromStr(const ImWchar* in_text,const ImWchar* in_text_end) +{ + return ImTextCountUtf8BytesFromStr(in_text,in_text_end); +} +CIMGUI_API ImFileHandle igImFileOpen(const char* filename,const char* mode) +{ + return ImFileOpen(filename,mode); +} +CIMGUI_API bool igImFileClose(ImFileHandle file) +{ + return ImFileClose(file); +} +CIMGUI_API ImU64 igImFileGetSize(ImFileHandle file) +{ + return ImFileGetSize(file); +} +CIMGUI_API ImU64 igImFileRead(void* data,ImU64 size,ImU64 count,ImFileHandle file) +{ + return ImFileRead(data,size,count,file); +} +CIMGUI_API ImU64 igImFileWrite(const void* data,ImU64 size,ImU64 count,ImFileHandle file) +{ + return ImFileWrite(data,size,count,file); +} +CIMGUI_API void* igImFileLoadToMemory(const char* filename,const char* mode,size_t* out_file_size,int padding_bytes) +{ + return ImFileLoadToMemory(filename,mode,out_file_size,padding_bytes); +} +CIMGUI_API float igImPow_Float(float x,float y) +{ + return ImPow(x,y); +} +CIMGUI_API double igImPow_double(double x,double y) +{ + return ImPow(x,y); +} +CIMGUI_API float igImLog_Float(float x) +{ + return ImLog(x); +} +CIMGUI_API double igImLog_double(double x) +{ + return ImLog(x); +} +CIMGUI_API int igImAbs_Int(int x) +{ + return ImAbs(x); +} +CIMGUI_API float igImAbs_Float(float x) +{ + return ImAbs(x); +} +CIMGUI_API double igImAbs_double(double x) +{ + return ImAbs(x); +} +CIMGUI_API float igImSign_Float(float x) +{ + return ImSign(x); +} +CIMGUI_API double igImSign_double(double x) +{ + return ImSign(x); +} +CIMGUI_API float igImRsqrt_Float(float x) +{ + return ImRsqrt(x); +} +CIMGUI_API double igImRsqrt_double(double x) +{ + return ImRsqrt(x); +} +CIMGUI_API void igImMin(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs) +{ + *pOut = ImMin(lhs,rhs); +} +CIMGUI_API void igImMax(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs) +{ + *pOut = ImMax(lhs,rhs); +} +CIMGUI_API void igImClamp(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,ImVec2 mx) +{ + *pOut = ImClamp(v,mn,mx); +} +CIMGUI_API void igImLerp_Vec2Float(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t) +{ + *pOut = ImLerp(a,b,t); +} +CIMGUI_API void igImLerp_Vec2Vec2(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t) +{ + *pOut = ImLerp(a,b,t); +} +CIMGUI_API void igImLerp_Vec4(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t) +{ + *pOut = ImLerp(a,b,t); +} +CIMGUI_API float igImSaturate(float f) +{ + return ImSaturate(f); +} +CIMGUI_API float igImLengthSqr_Vec2(const ImVec2 lhs) +{ + return ImLengthSqr(lhs); +} +CIMGUI_API float igImLengthSqr_Vec4(const ImVec4 lhs) +{ + return ImLengthSqr(lhs); +} +CIMGUI_API float igImInvLength(const ImVec2 lhs,float fail_value) +{ + return ImInvLength(lhs,fail_value); +} +CIMGUI_API float igImFloor_Float(float f) +{ + return ImFloor(f); +} +CIMGUI_API float igImFloorSigned_Float(float f) +{ + return ImFloorSigned(f); +} +CIMGUI_API void igImFloor_Vec2(ImVec2 *pOut,const ImVec2 v) +{ + *pOut = ImFloor(v); +} +CIMGUI_API void igImFloorSigned_Vec2(ImVec2 *pOut,const ImVec2 v) +{ + *pOut = ImFloorSigned(v); +} +CIMGUI_API int igImModPositive(int a,int b) +{ + return ImModPositive(a,b); +} +CIMGUI_API float igImDot(const ImVec2 a,const ImVec2 b) +{ + return ImDot(a,b); +} +CIMGUI_API void igImRotate(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a) +{ + *pOut = ImRotate(v,cos_a,sin_a); +} +CIMGUI_API float igImLinearSweep(float current,float target,float speed) +{ + return ImLinearSweep(current,target,speed); +} +CIMGUI_API void igImMul(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs) +{ + *pOut = ImMul(lhs,rhs); +} +CIMGUI_API bool igImIsFloatAboveGuaranteedIntegerPrecision(float f) +{ + return ImIsFloatAboveGuaranteedIntegerPrecision(f); +} +CIMGUI_API void igImBezierCubicCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t) +{ + *pOut = ImBezierCubicCalc(p1,p2,p3,p4,t); +} +CIMGUI_API void igImBezierCubicClosestPoint(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments) +{ + *pOut = ImBezierCubicClosestPoint(p1,p2,p3,p4,p,num_segments); +} +CIMGUI_API void igImBezierCubicClosestPointCasteljau(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol) +{ + *pOut = ImBezierCubicClosestPointCasteljau(p1,p2,p3,p4,p,tess_tol); +} +CIMGUI_API void igImBezierQuadraticCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t) +{ + *pOut = ImBezierQuadraticCalc(p1,p2,p3,t); +} +CIMGUI_API void igImLineClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 p) +{ + *pOut = ImLineClosestPoint(a,b,p); +} +CIMGUI_API bool igImTriangleContainsPoint(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p) +{ + return ImTriangleContainsPoint(a,b,c,p); +} +CIMGUI_API void igImTriangleClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p) +{ + *pOut = ImTriangleClosestPoint(a,b,c,p); +} +CIMGUI_API void igImTriangleBarycentricCoords(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float* out_u,float* out_v,float* out_w) +{ + return ImTriangleBarycentricCoords(a,b,c,p,*out_u,*out_v,*out_w); +} +CIMGUI_API float igImTriangleArea(const ImVec2 a,const ImVec2 b,const ImVec2 c) +{ + return ImTriangleArea(a,b,c); +} +CIMGUI_API ImGuiDir igImGetDirQuadrantFromDelta(float dx,float dy) +{ + return ImGetDirQuadrantFromDelta(dx,dy); +} +CIMGUI_API ImVec1* ImVec1_ImVec1_Nil(void) +{ + return IM_NEW(ImVec1)(); +} +CIMGUI_API void ImVec1_destroy(ImVec1* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImVec1* ImVec1_ImVec1_Float(float _x) +{ + return IM_NEW(ImVec1)(_x); +} +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Nil(void) +{ + return IM_NEW(ImVec2ih)(); +} +CIMGUI_API void ImVec2ih_destroy(ImVec2ih* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_short(short _x,short _y) +{ + return IM_NEW(ImVec2ih)(_x,_y); +} +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Vec2(const ImVec2 rhs) +{ + return IM_NEW(ImVec2ih)(rhs); +} +CIMGUI_API ImRect* ImRect_ImRect_Nil(void) +{ + return IM_NEW(ImRect)(); +} +CIMGUI_API void ImRect_destroy(ImRect* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImRect* ImRect_ImRect_Vec2(const ImVec2 min,const ImVec2 max) +{ + return IM_NEW(ImRect)(min,max); +} +CIMGUI_API ImRect* ImRect_ImRect_Vec4(const ImVec4 v) +{ + return IM_NEW(ImRect)(v); +} +CIMGUI_API ImRect* ImRect_ImRect_Float(float x1,float y1,float x2,float y2) +{ + return IM_NEW(ImRect)(x1,y1,x2,y2); +} +CIMGUI_API void ImRect_GetCenter(ImVec2 *pOut,ImRect* self) +{ + *pOut = self->GetCenter(); +} +CIMGUI_API void ImRect_GetSize(ImVec2 *pOut,ImRect* self) +{ + *pOut = self->GetSize(); +} +CIMGUI_API float ImRect_GetWidth(ImRect* self) +{ + return self->GetWidth(); +} +CIMGUI_API float ImRect_GetHeight(ImRect* self) +{ + return self->GetHeight(); +} +CIMGUI_API float ImRect_GetArea(ImRect* self) +{ + return self->GetArea(); +} +CIMGUI_API void ImRect_GetTL(ImVec2 *pOut,ImRect* self) +{ + *pOut = self->GetTL(); +} +CIMGUI_API void ImRect_GetTR(ImVec2 *pOut,ImRect* self) +{ + *pOut = self->GetTR(); +} +CIMGUI_API void ImRect_GetBL(ImVec2 *pOut,ImRect* self) +{ + *pOut = self->GetBL(); +} +CIMGUI_API void ImRect_GetBR(ImVec2 *pOut,ImRect* self) +{ + *pOut = self->GetBR(); +} +CIMGUI_API bool ImRect_Contains_Vec2(ImRect* self,const ImVec2 p) +{ + return self->Contains(p); +} +CIMGUI_API bool ImRect_Contains_Rect(ImRect* self,const ImRect r) +{ + return self->Contains(r); +} +CIMGUI_API bool ImRect_Overlaps(ImRect* self,const ImRect r) +{ + return self->Overlaps(r); +} +CIMGUI_API void ImRect_Add_Vec2(ImRect* self,const ImVec2 p) +{ + return self->Add(p); +} +CIMGUI_API void ImRect_Add_Rect(ImRect* self,const ImRect r) +{ + return self->Add(r); +} +CIMGUI_API void ImRect_Expand_Float(ImRect* self,const float amount) +{ + return self->Expand(amount); +} +CIMGUI_API void ImRect_Expand_Vec2(ImRect* self,const ImVec2 amount) +{ + return self->Expand(amount); +} +CIMGUI_API void ImRect_Translate(ImRect* self,const ImVec2 d) +{ + return self->Translate(d); +} +CIMGUI_API void ImRect_TranslateX(ImRect* self,float dx) +{ + return self->TranslateX(dx); +} +CIMGUI_API void ImRect_TranslateY(ImRect* self,float dy) +{ + return self->TranslateY(dy); +} +CIMGUI_API void ImRect_ClipWith(ImRect* self,const ImRect r) +{ + return self->ClipWith(r); +} +CIMGUI_API void ImRect_ClipWithFull(ImRect* self,const ImRect r) +{ + return self->ClipWithFull(r); +} +CIMGUI_API void ImRect_Floor(ImRect* self) +{ + return self->Floor(); +} +CIMGUI_API bool ImRect_IsInverted(ImRect* self) +{ + return self->IsInverted(); +} +CIMGUI_API void ImRect_ToVec4(ImVec4 *pOut,ImRect* self) +{ + *pOut = self->ToVec4(); +} +CIMGUI_API bool igImBitArrayTestBit(const ImU32* arr,int n) +{ + return ImBitArrayTestBit(arr,n); +} +CIMGUI_API void igImBitArrayClearBit(ImU32* arr,int n) +{ + return ImBitArrayClearBit(arr,n); +} +CIMGUI_API void igImBitArraySetBit(ImU32* arr,int n) +{ + return ImBitArraySetBit(arr,n); +} +CIMGUI_API void igImBitArraySetBitRange(ImU32* arr,int n,int n2) +{ + return ImBitArraySetBitRange(arr,n,n2); +} +CIMGUI_API void ImBitVector_Create(ImBitVector* self,int sz) +{ + return self->Create(sz); +} +CIMGUI_API void ImBitVector_Clear(ImBitVector* self) +{ + return self->Clear(); +} +CIMGUI_API bool ImBitVector_TestBit(ImBitVector* self,int n) +{ + return self->TestBit(n); +} +CIMGUI_API void ImBitVector_SetBit(ImBitVector* self,int n) +{ + return self->SetBit(n); +} +CIMGUI_API void ImBitVector_ClearBit(ImBitVector* self,int n) +{ + return self->ClearBit(n); +} +CIMGUI_API void ImGuiTextIndex_clear(ImGuiTextIndex* self) +{ + return self->clear(); +} +CIMGUI_API int ImGuiTextIndex_size(ImGuiTextIndex* self) +{ + return self->size(); +} +CIMGUI_API const char* ImGuiTextIndex_get_line_begin(ImGuiTextIndex* self,const char* base,int n) +{ + return self->get_line_begin(base,n); +} +CIMGUI_API const char* ImGuiTextIndex_get_line_end(ImGuiTextIndex* self,const char* base,int n) +{ + return self->get_line_end(base,n); +} +CIMGUI_API void ImGuiTextIndex_append(ImGuiTextIndex* self,const char* base,int old_size,int new_size) +{ + return self->append(base,old_size,new_size); +} +CIMGUI_API ImDrawListSharedData* ImDrawListSharedData_ImDrawListSharedData(void) +{ + return IM_NEW(ImDrawListSharedData)(); +} +CIMGUI_API void ImDrawListSharedData_destroy(ImDrawListSharedData* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self,float max_error) +{ + return self->SetCircleTessellationMaxError(max_error); +} +CIMGUI_API void ImDrawDataBuilder_Clear(ImDrawDataBuilder* self) +{ + return self->Clear(); +} +CIMGUI_API void ImDrawDataBuilder_ClearFreeMemory(ImDrawDataBuilder* self) +{ + return self->ClearFreeMemory(); +} +CIMGUI_API int ImDrawDataBuilder_GetDrawListCount(ImDrawDataBuilder* self) +{ + return self->GetDrawListCount(); +} +CIMGUI_API void ImDrawDataBuilder_FlattenIntoSingleLayer(ImDrawDataBuilder* self) +{ + return self->FlattenIntoSingleLayer(); +} +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Int(ImGuiStyleVar idx,int v) +{ + return IM_NEW(ImGuiStyleMod)(idx,v); +} +CIMGUI_API void ImGuiStyleMod_destroy(ImGuiStyleMod* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Float(ImGuiStyleVar idx,float v) +{ + return IM_NEW(ImGuiStyleMod)(idx,v); +} +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Vec2(ImGuiStyleVar idx,ImVec2 v) +{ + return IM_NEW(ImGuiStyleMod)(idx,v); +} +CIMGUI_API ImGuiComboPreviewData* ImGuiComboPreviewData_ImGuiComboPreviewData(void) +{ + return IM_NEW(ImGuiComboPreviewData)(); +} +CIMGUI_API void ImGuiComboPreviewData_destroy(ImGuiComboPreviewData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiMenuColumns* ImGuiMenuColumns_ImGuiMenuColumns(void) +{ + return IM_NEW(ImGuiMenuColumns)(); +} +CIMGUI_API void ImGuiMenuColumns_destroy(ImGuiMenuColumns* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiMenuColumns_Update(ImGuiMenuColumns* self,float spacing,bool window_reappearing) +{ + return self->Update(spacing,window_reappearing); +} +CIMGUI_API float ImGuiMenuColumns_DeclColumns(ImGuiMenuColumns* self,float w_icon,float w_label,float w_shortcut,float w_mark) +{ + return self->DeclColumns(w_icon,w_label,w_shortcut,w_mark); +} +CIMGUI_API void ImGuiMenuColumns_CalcNextTotalWidth(ImGuiMenuColumns* self,bool update_offsets) +{ + return self->CalcNextTotalWidth(update_offsets); +} +CIMGUI_API ImGuiInputTextState* ImGuiInputTextState_ImGuiInputTextState(void) +{ + return IM_NEW(ImGuiInputTextState)(); +} +CIMGUI_API void ImGuiInputTextState_destroy(ImGuiInputTextState* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiInputTextState_ClearText(ImGuiInputTextState* self) +{ + return self->ClearText(); +} +CIMGUI_API void ImGuiInputTextState_ClearFreeMemory(ImGuiInputTextState* self) +{ + return self->ClearFreeMemory(); +} +CIMGUI_API int ImGuiInputTextState_GetUndoAvailCount(ImGuiInputTextState* self) +{ + return self->GetUndoAvailCount(); +} +CIMGUI_API int ImGuiInputTextState_GetRedoAvailCount(ImGuiInputTextState* self) +{ + return self->GetRedoAvailCount(); +} +CIMGUI_API void ImGuiInputTextState_OnKeyPressed(ImGuiInputTextState* self,int key) +{ + return self->OnKeyPressed(key); +} +CIMGUI_API void ImGuiInputTextState_CursorAnimReset(ImGuiInputTextState* self) +{ + return self->CursorAnimReset(); +} +CIMGUI_API void ImGuiInputTextState_CursorClamp(ImGuiInputTextState* self) +{ + return self->CursorClamp(); +} +CIMGUI_API bool ImGuiInputTextState_HasSelection(ImGuiInputTextState* self) +{ + return self->HasSelection(); +} +CIMGUI_API void ImGuiInputTextState_ClearSelection(ImGuiInputTextState* self) +{ + return self->ClearSelection(); +} +CIMGUI_API int ImGuiInputTextState_GetCursorPos(ImGuiInputTextState* self) +{ + return self->GetCursorPos(); +} +CIMGUI_API int ImGuiInputTextState_GetSelectionStart(ImGuiInputTextState* self) +{ + return self->GetSelectionStart(); +} +CIMGUI_API int ImGuiInputTextState_GetSelectionEnd(ImGuiInputTextState* self) +{ + return self->GetSelectionEnd(); +} +CIMGUI_API void ImGuiInputTextState_SelectAll(ImGuiInputTextState* self) +{ + return self->SelectAll(); +} +CIMGUI_API ImGuiPopupData* ImGuiPopupData_ImGuiPopupData(void) +{ + return IM_NEW(ImGuiPopupData)(); +} +CIMGUI_API void ImGuiPopupData_destroy(ImGuiPopupData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiNextWindowData* ImGuiNextWindowData_ImGuiNextWindowData(void) +{ + return IM_NEW(ImGuiNextWindowData)(); +} +CIMGUI_API void ImGuiNextWindowData_destroy(ImGuiNextWindowData* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiNextWindowData_ClearFlags(ImGuiNextWindowData* self) +{ + return self->ClearFlags(); +} +CIMGUI_API ImGuiNextItemData* ImGuiNextItemData_ImGuiNextItemData(void) +{ + return IM_NEW(ImGuiNextItemData)(); +} +CIMGUI_API void ImGuiNextItemData_destroy(ImGuiNextItemData* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiNextItemData_ClearFlags(ImGuiNextItemData* self) +{ + return self->ClearFlags(); +} +CIMGUI_API ImGuiLastItemData* ImGuiLastItemData_ImGuiLastItemData(void) +{ + return IM_NEW(ImGuiLastItemData)(); +} +CIMGUI_API void ImGuiLastItemData_destroy(ImGuiLastItemData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiStackSizes* ImGuiStackSizes_ImGuiStackSizes(void) +{ + return IM_NEW(ImGuiStackSizes)(); +} +CIMGUI_API void ImGuiStackSizes_destroy(ImGuiStackSizes* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiStackSizes_SetToCurrentState(ImGuiStackSizes* self) +{ + return self->SetToCurrentState(); +} +CIMGUI_API void ImGuiStackSizes_CompareWithCurrentState(ImGuiStackSizes* self) +{ + return self->CompareWithCurrentState(); +} +CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(void* ptr) +{ + return IM_NEW(ImGuiPtrOrIndex)(ptr); +} +CIMGUI_API void ImGuiPtrOrIndex_destroy(ImGuiPtrOrIndex* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(int index) +{ + return IM_NEW(ImGuiPtrOrIndex)(index); +} +CIMGUI_API ImGuiInputEvent* ImGuiInputEvent_ImGuiInputEvent(void) +{ + return IM_NEW(ImGuiInputEvent)(); +} +CIMGUI_API void ImGuiInputEvent_destroy(ImGuiInputEvent* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiKeyRoutingData* ImGuiKeyRoutingData_ImGuiKeyRoutingData(void) +{ + return IM_NEW(ImGuiKeyRoutingData)(); +} +CIMGUI_API void ImGuiKeyRoutingData_destroy(ImGuiKeyRoutingData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiKeyRoutingTable* ImGuiKeyRoutingTable_ImGuiKeyRoutingTable(void) +{ + return IM_NEW(ImGuiKeyRoutingTable)(); +} +CIMGUI_API void ImGuiKeyRoutingTable_destroy(ImGuiKeyRoutingTable* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiKeyRoutingTable_Clear(ImGuiKeyRoutingTable* self) +{ + return self->Clear(); +} +CIMGUI_API ImGuiKeyOwnerData* ImGuiKeyOwnerData_ImGuiKeyOwnerData(void) +{ + return IM_NEW(ImGuiKeyOwnerData)(); +} +CIMGUI_API void ImGuiKeyOwnerData_destroy(ImGuiKeyOwnerData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromIndices(int min,int max) +{ + return ImGuiListClipperRange::FromIndices(min,max); +} +CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromPositions(float y1,float y2,int off_min,int off_max) +{ + return ImGuiListClipperRange::FromPositions(y1,y2,off_min,off_max); +} +CIMGUI_API ImGuiListClipperData* ImGuiListClipperData_ImGuiListClipperData(void) +{ + return IM_NEW(ImGuiListClipperData)(); +} +CIMGUI_API void ImGuiListClipperData_destroy(ImGuiListClipperData* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiListClipperData_Reset(ImGuiListClipperData* self,ImGuiListClipper* clipper) +{ + return self->Reset(clipper); +} +CIMGUI_API ImGuiNavItemData* ImGuiNavItemData_ImGuiNavItemData(void) +{ + return IM_NEW(ImGuiNavItemData)(); +} +CIMGUI_API void ImGuiNavItemData_destroy(ImGuiNavItemData* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiNavItemData_Clear(ImGuiNavItemData* self) +{ + return self->Clear(); +} +CIMGUI_API ImGuiOldColumnData* ImGuiOldColumnData_ImGuiOldColumnData(void) +{ + return IM_NEW(ImGuiOldColumnData)(); +} +CIMGUI_API void ImGuiOldColumnData_destroy(ImGuiOldColumnData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiOldColumns* ImGuiOldColumns_ImGuiOldColumns(void) +{ + return IM_NEW(ImGuiOldColumns)(); +} +CIMGUI_API void ImGuiOldColumns_destroy(ImGuiOldColumns* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiDockNode* ImGuiDockNode_ImGuiDockNode(ImGuiID id) +{ + return IM_NEW(ImGuiDockNode)(id); +} +CIMGUI_API void ImGuiDockNode_destroy(ImGuiDockNode* self) +{ + IM_DELETE(self); +} +CIMGUI_API bool ImGuiDockNode_IsRootNode(ImGuiDockNode* self) +{ + return self->IsRootNode(); +} +CIMGUI_API bool ImGuiDockNode_IsDockSpace(ImGuiDockNode* self) +{ + return self->IsDockSpace(); +} +CIMGUI_API bool ImGuiDockNode_IsFloatingNode(ImGuiDockNode* self) +{ + return self->IsFloatingNode(); +} +CIMGUI_API bool ImGuiDockNode_IsCentralNode(ImGuiDockNode* self) +{ + return self->IsCentralNode(); +} +CIMGUI_API bool ImGuiDockNode_IsHiddenTabBar(ImGuiDockNode* self) +{ + return self->IsHiddenTabBar(); +} +CIMGUI_API bool ImGuiDockNode_IsNoTabBar(ImGuiDockNode* self) +{ + return self->IsNoTabBar(); +} +CIMGUI_API bool ImGuiDockNode_IsSplitNode(ImGuiDockNode* self) +{ + return self->IsSplitNode(); +} +CIMGUI_API bool ImGuiDockNode_IsLeafNode(ImGuiDockNode* self) +{ + return self->IsLeafNode(); +} +CIMGUI_API bool ImGuiDockNode_IsEmpty(ImGuiDockNode* self) +{ + return self->IsEmpty(); +} +CIMGUI_API void ImGuiDockNode_Rect(ImRect *pOut,ImGuiDockNode* self) +{ + *pOut = self->Rect(); +} +CIMGUI_API void ImGuiDockNode_SetLocalFlags(ImGuiDockNode* self,ImGuiDockNodeFlags flags) +{ + return self->SetLocalFlags(flags); +} +CIMGUI_API void ImGuiDockNode_UpdateMergedFlags(ImGuiDockNode* self) +{ + return self->UpdateMergedFlags(); +} +CIMGUI_API ImGuiDockContext* ImGuiDockContext_ImGuiDockContext(void) +{ + return IM_NEW(ImGuiDockContext)(); +} +CIMGUI_API void ImGuiDockContext_destroy(ImGuiDockContext* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiViewportP* ImGuiViewportP_ImGuiViewportP(void) +{ + return IM_NEW(ImGuiViewportP)(); +} +CIMGUI_API void ImGuiViewportP_destroy(ImGuiViewportP* self) +{ + IM_DELETE(self); +} +CIMGUI_API void ImGuiViewportP_ClearRequestFlags(ImGuiViewportP* self) +{ + return self->ClearRequestFlags(); +} +CIMGUI_API void ImGuiViewportP_CalcWorkRectPos(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min) +{ + *pOut = self->CalcWorkRectPos(off_min); +} +CIMGUI_API void ImGuiViewportP_CalcWorkRectSize(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min,const ImVec2 off_max) +{ + *pOut = self->CalcWorkRectSize(off_min,off_max); +} +CIMGUI_API void ImGuiViewportP_UpdateWorkRect(ImGuiViewportP* self) +{ + return self->UpdateWorkRect(); +} +CIMGUI_API void ImGuiViewportP_GetMainRect(ImRect *pOut,ImGuiViewportP* self) +{ + *pOut = self->GetMainRect(); +} +CIMGUI_API void ImGuiViewportP_GetWorkRect(ImRect *pOut,ImGuiViewportP* self) +{ + *pOut = self->GetWorkRect(); +} +CIMGUI_API void ImGuiViewportP_GetBuildWorkRect(ImRect *pOut,ImGuiViewportP* self) +{ + *pOut = self->GetBuildWorkRect(); +} +CIMGUI_API ImGuiWindowSettings* ImGuiWindowSettings_ImGuiWindowSettings(void) +{ + return IM_NEW(ImGuiWindowSettings)(); +} +CIMGUI_API void ImGuiWindowSettings_destroy(ImGuiWindowSettings* self) +{ + IM_DELETE(self); +} +CIMGUI_API char* ImGuiWindowSettings_GetName(ImGuiWindowSettings* self) +{ + return self->GetName(); +} +CIMGUI_API ImGuiSettingsHandler* ImGuiSettingsHandler_ImGuiSettingsHandler(void) +{ + return IM_NEW(ImGuiSettingsHandler)(); +} +CIMGUI_API void ImGuiSettingsHandler_destroy(ImGuiSettingsHandler* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiMetricsConfig* ImGuiMetricsConfig_ImGuiMetricsConfig(void) +{ + return IM_NEW(ImGuiMetricsConfig)(); +} +CIMGUI_API void ImGuiMetricsConfig_destroy(ImGuiMetricsConfig* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiStackLevelInfo* ImGuiStackLevelInfo_ImGuiStackLevelInfo(void) +{ + return IM_NEW(ImGuiStackLevelInfo)(); +} +CIMGUI_API void ImGuiStackLevelInfo_destroy(ImGuiStackLevelInfo* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiStackTool* ImGuiStackTool_ImGuiStackTool(void) +{ + return IM_NEW(ImGuiStackTool)(); +} +CIMGUI_API void ImGuiStackTool_destroy(ImGuiStackTool* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiContextHook* ImGuiContextHook_ImGuiContextHook(void) +{ + return IM_NEW(ImGuiContextHook)(); +} +CIMGUI_API void ImGuiContextHook_destroy(ImGuiContextHook* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiContext* ImGuiContext_ImGuiContext(ImFontAtlas* shared_font_atlas) +{ + return IM_NEW(ImGuiContext)(shared_font_atlas); +} +CIMGUI_API void ImGuiContext_destroy(ImGuiContext* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiWindow* ImGuiWindow_ImGuiWindow(ImGuiContext* context,const char* name) +{ + return IM_NEW(ImGuiWindow)(context,name); +} +CIMGUI_API void ImGuiWindow_destroy(ImGuiWindow* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiID ImGuiWindow_GetID_Str(ImGuiWindow* self,const char* str,const char* str_end) +{ + return self->GetID(str,str_end); +} +CIMGUI_API ImGuiID ImGuiWindow_GetID_Ptr(ImGuiWindow* self,const void* ptr) +{ + return self->GetID(ptr); +} +CIMGUI_API ImGuiID ImGuiWindow_GetID_Int(ImGuiWindow* self,int n) +{ + return self->GetID(n); +} +CIMGUI_API ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self,const ImRect r_abs) +{ + return self->GetIDFromRectangle(r_abs); +} +CIMGUI_API void ImGuiWindow_Rect(ImRect *pOut,ImGuiWindow* self) +{ + *pOut = self->Rect(); +} +CIMGUI_API float ImGuiWindow_CalcFontSize(ImGuiWindow* self) +{ + return self->CalcFontSize(); +} +CIMGUI_API float ImGuiWindow_TitleBarHeight(ImGuiWindow* self) +{ + return self->TitleBarHeight(); +} +CIMGUI_API void ImGuiWindow_TitleBarRect(ImRect *pOut,ImGuiWindow* self) +{ + *pOut = self->TitleBarRect(); +} +CIMGUI_API float ImGuiWindow_MenuBarHeight(ImGuiWindow* self) +{ + return self->MenuBarHeight(); +} +CIMGUI_API void ImGuiWindow_MenuBarRect(ImRect *pOut,ImGuiWindow* self) +{ + *pOut = self->MenuBarRect(); +} +CIMGUI_API ImGuiTabItem* ImGuiTabItem_ImGuiTabItem(void) +{ + return IM_NEW(ImGuiTabItem)(); +} +CIMGUI_API void ImGuiTabItem_destroy(ImGuiTabItem* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTabBar* ImGuiTabBar_ImGuiTabBar(void) +{ + return IM_NEW(ImGuiTabBar)(); +} +CIMGUI_API void ImGuiTabBar_destroy(ImGuiTabBar* self) +{ + IM_DELETE(self); +} +CIMGUI_API int ImGuiTabBar_GetTabOrder(ImGuiTabBar* self,const ImGuiTabItem* tab) +{ + return self->GetTabOrder(tab); +} +CIMGUI_API const char* ImGuiTabBar_GetTabName(ImGuiTabBar* self,const ImGuiTabItem* tab) +{ + return self->GetTabName(tab); +} +CIMGUI_API ImGuiTableColumn* ImGuiTableColumn_ImGuiTableColumn(void) +{ + return IM_NEW(ImGuiTableColumn)(); +} +CIMGUI_API void ImGuiTableColumn_destroy(ImGuiTableColumn* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTableInstanceData* ImGuiTableInstanceData_ImGuiTableInstanceData(void) +{ + return IM_NEW(ImGuiTableInstanceData)(); +} +CIMGUI_API void ImGuiTableInstanceData_destroy(ImGuiTableInstanceData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTable* ImGuiTable_ImGuiTable(void) +{ + return IM_NEW(ImGuiTable)(); +} +CIMGUI_API void ImGuiTable_destroy(ImGuiTable* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTableTempData* ImGuiTableTempData_ImGuiTableTempData(void) +{ + return IM_NEW(ImGuiTableTempData)(); +} +CIMGUI_API void ImGuiTableTempData_destroy(ImGuiTableTempData* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTableColumnSettings* ImGuiTableColumnSettings_ImGuiTableColumnSettings(void) +{ + return IM_NEW(ImGuiTableColumnSettings)(); +} +CIMGUI_API void ImGuiTableColumnSettings_destroy(ImGuiTableColumnSettings* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTableSettings* ImGuiTableSettings_ImGuiTableSettings(void) +{ + return IM_NEW(ImGuiTableSettings)(); +} +CIMGUI_API void ImGuiTableSettings_destroy(ImGuiTableSettings* self) +{ + IM_DELETE(self); +} +CIMGUI_API ImGuiTableColumnSettings* ImGuiTableSettings_GetColumnSettings(ImGuiTableSettings* self) +{ + return self->GetColumnSettings(); +} +CIMGUI_API ImGuiWindow* igGetCurrentWindowRead() +{ + return ImGui::GetCurrentWindowRead(); +} +CIMGUI_API ImGuiWindow* igGetCurrentWindow() +{ + return ImGui::GetCurrentWindow(); +} +CIMGUI_API ImGuiWindow* igFindWindowByID(ImGuiID id) +{ + return ImGui::FindWindowByID(id); +} +CIMGUI_API ImGuiWindow* igFindWindowByName(const char* name) +{ + return ImGui::FindWindowByName(name); +} +CIMGUI_API void igUpdateWindowParentAndRootLinks(ImGuiWindow* window,ImGuiWindowFlags flags,ImGuiWindow* parent_window) +{ + return ImGui::UpdateWindowParentAndRootLinks(window,flags,parent_window); +} +CIMGUI_API void igCalcWindowNextAutoFitSize(ImVec2 *pOut,ImGuiWindow* window) +{ + *pOut = ImGui::CalcWindowNextAutoFitSize(window); +} +CIMGUI_API bool igIsWindowChildOf(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy) +{ + return ImGui::IsWindowChildOf(window,potential_parent,popup_hierarchy,dock_hierarchy); +} +CIMGUI_API bool igIsWindowWithinBeginStackOf(ImGuiWindow* window,ImGuiWindow* potential_parent) +{ + return ImGui::IsWindowWithinBeginStackOf(window,potential_parent); +} +CIMGUI_API bool igIsWindowAbove(ImGuiWindow* potential_above,ImGuiWindow* potential_below) +{ + return ImGui::IsWindowAbove(potential_above,potential_below); +} +CIMGUI_API bool igIsWindowNavFocusable(ImGuiWindow* window) +{ + return ImGui::IsWindowNavFocusable(window); +} +CIMGUI_API void igSetWindowPos_WindowPtr(ImGuiWindow* window,const ImVec2 pos,ImGuiCond cond) +{ + return ImGui::SetWindowPos(window,pos,cond); +} +CIMGUI_API void igSetWindowSize_WindowPtr(ImGuiWindow* window,const ImVec2 size,ImGuiCond cond) +{ + return ImGui::SetWindowSize(window,size,cond); +} +CIMGUI_API void igSetWindowCollapsed_WindowPtr(ImGuiWindow* window,bool collapsed,ImGuiCond cond) +{ + return ImGui::SetWindowCollapsed(window,collapsed,cond); +} +CIMGUI_API void igSetWindowHitTestHole(ImGuiWindow* window,const ImVec2 pos,const ImVec2 size) +{ + return ImGui::SetWindowHitTestHole(window,pos,size); +} +CIMGUI_API void igWindowRectAbsToRel(ImRect *pOut,ImGuiWindow* window,const ImRect r) +{ + *pOut = ImGui::WindowRectAbsToRel(window,r); +} +CIMGUI_API void igWindowRectRelToAbs(ImRect *pOut,ImGuiWindow* window,const ImRect r) +{ + *pOut = ImGui::WindowRectRelToAbs(window,r); +} +CIMGUI_API void igFocusWindow(ImGuiWindow* window) +{ + return ImGui::FocusWindow(window); +} +CIMGUI_API void igFocusTopMostWindowUnderOne(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window) +{ + return ImGui::FocusTopMostWindowUnderOne(under_this_window,ignore_window); +} +CIMGUI_API void igBringWindowToFocusFront(ImGuiWindow* window) +{ + return ImGui::BringWindowToFocusFront(window); +} +CIMGUI_API void igBringWindowToDisplayFront(ImGuiWindow* window) +{ + return ImGui::BringWindowToDisplayFront(window); +} +CIMGUI_API void igBringWindowToDisplayBack(ImGuiWindow* window) +{ + return ImGui::BringWindowToDisplayBack(window); +} +CIMGUI_API void igBringWindowToDisplayBehind(ImGuiWindow* window,ImGuiWindow* above_window) +{ + return ImGui::BringWindowToDisplayBehind(window,above_window); +} +CIMGUI_API int igFindWindowDisplayIndex(ImGuiWindow* window) +{ + return ImGui::FindWindowDisplayIndex(window); +} +CIMGUI_API ImGuiWindow* igFindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window) +{ + return ImGui::FindBottomMostVisibleWindowWithinBeginStack(window); +} +CIMGUI_API void igSetCurrentFont(ImFont* font) +{ + return ImGui::SetCurrentFont(font); +} +CIMGUI_API ImFont* igGetDefaultFont() +{ + return ImGui::GetDefaultFont(); +} +CIMGUI_API ImDrawList* igGetForegroundDrawList_WindowPtr(ImGuiWindow* window) +{ + return ImGui::GetForegroundDrawList(window); +} +CIMGUI_API void igInitialize() +{ + return ImGui::Initialize(); +} +CIMGUI_API void igShutdown() +{ + return ImGui::Shutdown(); +} +CIMGUI_API void igUpdateInputEvents(bool trickle_fast_inputs) +{ + return ImGui::UpdateInputEvents(trickle_fast_inputs); +} +CIMGUI_API void igUpdateHoveredWindowAndCaptureFlags() +{ + return ImGui::UpdateHoveredWindowAndCaptureFlags(); +} +CIMGUI_API void igStartMouseMovingWindow(ImGuiWindow* window) +{ + return ImGui::StartMouseMovingWindow(window); +} +CIMGUI_API void igStartMouseMovingWindowOrNode(ImGuiWindow* window,ImGuiDockNode* node,bool undock_floating_node) +{ + return ImGui::StartMouseMovingWindowOrNode(window,node,undock_floating_node); +} +CIMGUI_API void igUpdateMouseMovingWindowNewFrame() +{ + return ImGui::UpdateMouseMovingWindowNewFrame(); +} +CIMGUI_API void igUpdateMouseMovingWindowEndFrame() +{ + return ImGui::UpdateMouseMovingWindowEndFrame(); +} +CIMGUI_API ImGuiID igAddContextHook(ImGuiContext* context,const ImGuiContextHook* hook) +{ + return ImGui::AddContextHook(context,hook); +} +CIMGUI_API void igRemoveContextHook(ImGuiContext* context,ImGuiID hook_to_remove) +{ + return ImGui::RemoveContextHook(context,hook_to_remove); +} +CIMGUI_API void igCallContextHooks(ImGuiContext* context,ImGuiContextHookType type) +{ + return ImGui::CallContextHooks(context,type); +} +CIMGUI_API void igTranslateWindowsInViewport(ImGuiViewportP* viewport,const ImVec2 old_pos,const ImVec2 new_pos) +{ + return ImGui::TranslateWindowsInViewport(viewport,old_pos,new_pos); +} +CIMGUI_API void igScaleWindowsInViewport(ImGuiViewportP* viewport,float scale) +{ + return ImGui::ScaleWindowsInViewport(viewport,scale); +} +CIMGUI_API void igDestroyPlatformWindow(ImGuiViewportP* viewport) +{ + return ImGui::DestroyPlatformWindow(viewport); +} +CIMGUI_API void igSetWindowViewport(ImGuiWindow* window,ImGuiViewportP* viewport) +{ + return ImGui::SetWindowViewport(window,viewport); +} +CIMGUI_API void igSetCurrentViewport(ImGuiWindow* window,ImGuiViewportP* viewport) +{ + return ImGui::SetCurrentViewport(window,viewport); +} +CIMGUI_API const ImGuiPlatformMonitor* igGetViewportPlatformMonitor(ImGuiViewport* viewport) +{ + return ImGui::GetViewportPlatformMonitor(viewport); +} +CIMGUI_API ImGuiViewportP* igFindHoveredViewportFromPlatformWindowStack(const ImVec2 mouse_platform_pos) +{ + return ImGui::FindHoveredViewportFromPlatformWindowStack(mouse_platform_pos); +} +CIMGUI_API void igMarkIniSettingsDirty_Nil() +{ + return ImGui::MarkIniSettingsDirty(); +} +CIMGUI_API void igMarkIniSettingsDirty_WindowPtr(ImGuiWindow* window) +{ + return ImGui::MarkIniSettingsDirty(window); +} +CIMGUI_API void igClearIniSettings() +{ + return ImGui::ClearIniSettings(); +} +CIMGUI_API ImGuiWindowSettings* igCreateNewWindowSettings(const char* name) +{ + return ImGui::CreateNewWindowSettings(name); +} +CIMGUI_API ImGuiWindowSettings* igFindWindowSettings(ImGuiID id) +{ + return ImGui::FindWindowSettings(id); +} +CIMGUI_API ImGuiWindowSettings* igFindOrCreateWindowSettings(const char* name) +{ + return ImGui::FindOrCreateWindowSettings(name); +} +CIMGUI_API void igAddSettingsHandler(const ImGuiSettingsHandler* handler) +{ + return ImGui::AddSettingsHandler(handler); +} +CIMGUI_API void igRemoveSettingsHandler(const char* type_name) +{ + return ImGui::RemoveSettingsHandler(type_name); +} +CIMGUI_API ImGuiSettingsHandler* igFindSettingsHandler(const char* type_name) +{ + return ImGui::FindSettingsHandler(type_name); +} +CIMGUI_API void igLocalizeRegisterEntries(const ImGuiLocEntry* entries,int count) +{ + return ImGui::LocalizeRegisterEntries(entries,count); +} +CIMGUI_API const char* igLocalizeGetMsg(ImGuiLocKey key) +{ + return ImGui::LocalizeGetMsg(key); +} +CIMGUI_API void igSetScrollX_WindowPtr(ImGuiWindow* window,float scroll_x) +{ + return ImGui::SetScrollX(window,scroll_x); +} +CIMGUI_API void igSetScrollY_WindowPtr(ImGuiWindow* window,float scroll_y) +{ + return ImGui::SetScrollY(window,scroll_y); +} +CIMGUI_API void igSetScrollFromPosX_WindowPtr(ImGuiWindow* window,float local_x,float center_x_ratio) +{ + return ImGui::SetScrollFromPosX(window,local_x,center_x_ratio); +} +CIMGUI_API void igSetScrollFromPosY_WindowPtr(ImGuiWindow* window,float local_y,float center_y_ratio) +{ + return ImGui::SetScrollFromPosY(window,local_y,center_y_ratio); +} +CIMGUI_API void igScrollToItem(ImGuiScrollFlags flags) +{ + return ImGui::ScrollToItem(flags); +} +CIMGUI_API void igScrollToRect(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags) +{ + return ImGui::ScrollToRect(window,rect,flags); +} +CIMGUI_API void igScrollToRectEx(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags) +{ + *pOut = ImGui::ScrollToRectEx(window,rect,flags); +} +CIMGUI_API void igScrollToBringRectIntoView(ImGuiWindow* window,const ImRect rect) +{ + return ImGui::ScrollToBringRectIntoView(window,rect); +} +CIMGUI_API ImGuiID igGetItemID() +{ + return ImGui::GetItemID(); +} +CIMGUI_API ImGuiItemStatusFlags igGetItemStatusFlags() +{ + return ImGui::GetItemStatusFlags(); +} +CIMGUI_API ImGuiItemFlags igGetItemFlags() +{ + return ImGui::GetItemFlags(); +} +CIMGUI_API ImGuiID igGetActiveID() +{ + return ImGui::GetActiveID(); +} +CIMGUI_API ImGuiID igGetFocusID() +{ + return ImGui::GetFocusID(); +} +CIMGUI_API void igSetActiveID(ImGuiID id,ImGuiWindow* window) +{ + return ImGui::SetActiveID(id,window); +} +CIMGUI_API void igSetFocusID(ImGuiID id,ImGuiWindow* window) +{ + return ImGui::SetFocusID(id,window); +} +CIMGUI_API void igClearActiveID() +{ + return ImGui::ClearActiveID(); +} +CIMGUI_API ImGuiID igGetHoveredID() +{ + return ImGui::GetHoveredID(); +} +CIMGUI_API void igSetHoveredID(ImGuiID id) +{ + return ImGui::SetHoveredID(id); +} +CIMGUI_API void igKeepAliveID(ImGuiID id) +{ + return ImGui::KeepAliveID(id); +} +CIMGUI_API void igMarkItemEdited(ImGuiID id) +{ + return ImGui::MarkItemEdited(id); +} +CIMGUI_API void igPushOverrideID(ImGuiID id) +{ + return ImGui::PushOverrideID(id); +} +CIMGUI_API ImGuiID igGetIDWithSeed(const char* str_id_begin,const char* str_id_end,ImGuiID seed) +{ + return ImGui::GetIDWithSeed(str_id_begin,str_id_end,seed); +} +CIMGUI_API void igItemSize_Vec2(const ImVec2 size,float text_baseline_y) +{ + return ImGui::ItemSize(size,text_baseline_y); +} +CIMGUI_API void igItemSize_Rect(const ImRect bb,float text_baseline_y) +{ + return ImGui::ItemSize(bb,text_baseline_y); +} +CIMGUI_API bool igItemAdd(const ImRect bb,ImGuiID id,const ImRect* nav_bb,ImGuiItemFlags extra_flags) +{ + return ImGui::ItemAdd(bb,id,nav_bb,extra_flags); +} +CIMGUI_API bool igItemHoverable(const ImRect bb,ImGuiID id) +{ + return ImGui::ItemHoverable(bb,id); +} +CIMGUI_API bool igIsClippedEx(const ImRect bb,ImGuiID id) +{ + return ImGui::IsClippedEx(bb,id); +} +CIMGUI_API void igSetLastItemData(ImGuiID item_id,ImGuiItemFlags in_flags,ImGuiItemStatusFlags status_flags,const ImRect item_rect) +{ + return ImGui::SetLastItemData(item_id,in_flags,status_flags,item_rect); +} +CIMGUI_API void igCalcItemSize(ImVec2 *pOut,ImVec2 size,float default_w,float default_h) +{ + *pOut = ImGui::CalcItemSize(size,default_w,default_h); +} +CIMGUI_API float igCalcWrapWidthForPos(const ImVec2 pos,float wrap_pos_x) +{ + return ImGui::CalcWrapWidthForPos(pos,wrap_pos_x); +} +CIMGUI_API void igPushMultiItemsWidths(int components,float width_full) +{ + return ImGui::PushMultiItemsWidths(components,width_full); +} +CIMGUI_API bool igIsItemToggledSelection() +{ + return ImGui::IsItemToggledSelection(); +} +CIMGUI_API void igGetContentRegionMaxAbs(ImVec2 *pOut) +{ + *pOut = ImGui::GetContentRegionMaxAbs(); +} +CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items,int count,float width_excess) +{ + return ImGui::ShrinkWidths(items,count,width_excess); +} +CIMGUI_API void igPushItemFlag(ImGuiItemFlags option,bool enabled) +{ + return ImGui::PushItemFlag(option,enabled); +} +CIMGUI_API void igPopItemFlag() +{ + return ImGui::PopItemFlag(); +} +CIMGUI_API void igLogBegin(ImGuiLogType type,int auto_open_depth) +{ + return ImGui::LogBegin(type,auto_open_depth); +} +CIMGUI_API void igLogToBuffer(int auto_open_depth) +{ + return ImGui::LogToBuffer(auto_open_depth); +} +CIMGUI_API void igLogRenderedText(const ImVec2* ref_pos,const char* text,const char* text_end) +{ + return ImGui::LogRenderedText(ref_pos,text,text_end); +} +CIMGUI_API void igLogSetNextTextDecoration(const char* prefix,const char* suffix) +{ + return ImGui::LogSetNextTextDecoration(prefix,suffix); +} +CIMGUI_API bool igBeginChildEx(const char* name,ImGuiID id,const ImVec2 size_arg,bool border,ImGuiWindowFlags flags) +{ + return ImGui::BeginChildEx(name,id,size_arg,border,flags); +} +CIMGUI_API void igOpenPopupEx(ImGuiID id,ImGuiPopupFlags popup_flags) +{ + return ImGui::OpenPopupEx(id,popup_flags); +} +CIMGUI_API void igClosePopupToLevel(int remaining,bool restore_focus_to_window_under_popup) +{ + return ImGui::ClosePopupToLevel(remaining,restore_focus_to_window_under_popup); +} +CIMGUI_API void igClosePopupsOverWindow(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup) +{ + return ImGui::ClosePopupsOverWindow(ref_window,restore_focus_to_window_under_popup); +} +CIMGUI_API void igClosePopupsExceptModals() +{ + return ImGui::ClosePopupsExceptModals(); +} +CIMGUI_API bool igIsPopupOpen_ID(ImGuiID id,ImGuiPopupFlags popup_flags) +{ + return ImGui::IsPopupOpen(id,popup_flags); +} +CIMGUI_API bool igBeginPopupEx(ImGuiID id,ImGuiWindowFlags extra_flags) +{ + return ImGui::BeginPopupEx(id,extra_flags); +} +CIMGUI_API void igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags) +{ + return ImGui::BeginTooltipEx(tooltip_flags,extra_window_flags); +} +CIMGUI_API void igGetPopupAllowedExtentRect(ImRect *pOut,ImGuiWindow* window) +{ + *pOut = ImGui::GetPopupAllowedExtentRect(window); +} +CIMGUI_API ImGuiWindow* igGetTopMostPopupModal() +{ + return ImGui::GetTopMostPopupModal(); +} +CIMGUI_API ImGuiWindow* igGetTopMostAndVisiblePopupModal() +{ + return ImGui::GetTopMostAndVisiblePopupModal(); +} +CIMGUI_API void igFindBestWindowPosForPopup(ImVec2 *pOut,ImGuiWindow* window) +{ + *pOut = ImGui::FindBestWindowPosForPopup(window); +} +CIMGUI_API void igFindBestWindowPosForPopupEx(ImVec2 *pOut,const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy) +{ + *pOut = ImGui::FindBestWindowPosForPopupEx(ref_pos,size,last_dir,r_outer,r_avoid,policy); +} +CIMGUI_API bool igBeginViewportSideBar(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags) +{ + return ImGui::BeginViewportSideBar(name,viewport,dir,size,window_flags); +} +CIMGUI_API bool igBeginMenuEx(const char* label,const char* icon,bool enabled) +{ + return ImGui::BeginMenuEx(label,icon,enabled); +} +CIMGUI_API bool igMenuItemEx(const char* label,const char* icon,const char* shortcut,bool selected,bool enabled) +{ + return ImGui::MenuItemEx(label,icon,shortcut,selected,enabled); +} +CIMGUI_API bool igBeginComboPopup(ImGuiID popup_id,const ImRect bb,ImGuiComboFlags flags) +{ + return ImGui::BeginComboPopup(popup_id,bb,flags); +} +CIMGUI_API bool igBeginComboPreview() +{ + return ImGui::BeginComboPreview(); +} +CIMGUI_API void igEndComboPreview() +{ + return ImGui::EndComboPreview(); +} +CIMGUI_API void igNavInitWindow(ImGuiWindow* window,bool force_reinit) +{ + return ImGui::NavInitWindow(window,force_reinit); +} +CIMGUI_API void igNavInitRequestApplyResult() +{ + return ImGui::NavInitRequestApplyResult(); +} +CIMGUI_API bool igNavMoveRequestButNoResultYet() +{ + return ImGui::NavMoveRequestButNoResultYet(); +} +CIMGUI_API void igNavMoveRequestSubmit(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags) +{ + return ImGui::NavMoveRequestSubmit(move_dir,clip_dir,move_flags,scroll_flags); +} +CIMGUI_API void igNavMoveRequestForward(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags) +{ + return ImGui::NavMoveRequestForward(move_dir,clip_dir,move_flags,scroll_flags); +} +CIMGUI_API void igNavMoveRequestResolveWithLastItem(ImGuiNavItemData* result) +{ + return ImGui::NavMoveRequestResolveWithLastItem(result); +} +CIMGUI_API void igNavMoveRequestCancel() +{ + return ImGui::NavMoveRequestCancel(); +} +CIMGUI_API void igNavMoveRequestApplyResult() +{ + return ImGui::NavMoveRequestApplyResult(); +} +CIMGUI_API void igNavMoveRequestTryWrapping(ImGuiWindow* window,ImGuiNavMoveFlags move_flags) +{ + return ImGui::NavMoveRequestTryWrapping(window,move_flags); +} +CIMGUI_API void igActivateItem(ImGuiID id) +{ + return ImGui::ActivateItem(id); +} +CIMGUI_API void igSetNavWindow(ImGuiWindow* window) +{ + return ImGui::SetNavWindow(window); +} +CIMGUI_API void igSetNavID(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel) +{ + return ImGui::SetNavID(id,nav_layer,focus_scope_id,rect_rel); +} +CIMGUI_API bool igIsNamedKey(ImGuiKey key) +{ + return ImGui::IsNamedKey(key); +} +CIMGUI_API bool igIsNamedKeyOrModKey(ImGuiKey key) +{ + return ImGui::IsNamedKeyOrModKey(key); +} +CIMGUI_API bool igIsLegacyKey(ImGuiKey key) +{ + return ImGui::IsLegacyKey(key); +} +CIMGUI_API bool igIsKeyboardKey(ImGuiKey key) +{ + return ImGui::IsKeyboardKey(key); +} +CIMGUI_API bool igIsGamepadKey(ImGuiKey key) +{ + return ImGui::IsGamepadKey(key); +} +CIMGUI_API bool igIsMouseKey(ImGuiKey key) +{ + return ImGui::IsMouseKey(key); +} +CIMGUI_API bool igIsAliasKey(ImGuiKey key) +{ + return ImGui::IsAliasKey(key); +} +CIMGUI_API ImGuiKey igConvertSingleModFlagToKey(ImGuiKey key) +{ + return ImGui::ConvertSingleModFlagToKey(key); +} +CIMGUI_API ImGuiKeyData* igGetKeyData(ImGuiKey key) +{ + return ImGui::GetKeyData(key); +} +CIMGUI_API void igGetKeyChordName(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size) +{ + return ImGui::GetKeyChordName(key_chord,out_buf,out_buf_size); +} +CIMGUI_API ImGuiKey igMouseButtonToKey(ImGuiMouseButton button) +{ + return ImGui::MouseButtonToKey(button); +} +CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button,float lock_threshold) +{ + return ImGui::IsMouseDragPastThreshold(button,lock_threshold); +} +CIMGUI_API void igGetKeyVector2d(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down) +{ + *pOut = ImGui::GetKeyVector2d(key_left,key_right,key_up,key_down); +} +CIMGUI_API float igGetNavTweakPressedAmount(ImGuiAxis axis) +{ + return ImGui::GetNavTweakPressedAmount(axis); +} +CIMGUI_API int igCalcTypematicRepeatAmount(float t0,float t1,float repeat_delay,float repeat_rate) +{ + return ImGui::CalcTypematicRepeatAmount(t0,t1,repeat_delay,repeat_rate); +} +CIMGUI_API void igGetTypematicRepeatRate(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate) +{ + return ImGui::GetTypematicRepeatRate(flags,repeat_delay,repeat_rate); +} +CIMGUI_API void igSetActiveIdUsingAllKeyboardKeys() +{ + return ImGui::SetActiveIdUsingAllKeyboardKeys(); +} +CIMGUI_API bool igIsActiveIdUsingNavDir(ImGuiDir dir) +{ + return ImGui::IsActiveIdUsingNavDir(dir); +} +CIMGUI_API ImGuiID igGetKeyOwner(ImGuiKey key) +{ + return ImGui::GetKeyOwner(key); +} +CIMGUI_API void igSetKeyOwner(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags) +{ + return ImGui::SetKeyOwner(key,owner_id,flags); +} +CIMGUI_API void igSetItemKeyOwner(ImGuiKey key,ImGuiInputFlags flags) +{ + return ImGui::SetItemKeyOwner(key,flags); +} +CIMGUI_API bool igTestKeyOwner(ImGuiKey key,ImGuiID owner_id) +{ + return ImGui::TestKeyOwner(key,owner_id); +} +CIMGUI_API ImGuiKeyOwnerData* igGetKeyOwnerData(ImGuiKey key) +{ + return ImGui::GetKeyOwnerData(key); +} +CIMGUI_API bool igIsKeyDown_ID(ImGuiKey key,ImGuiID owner_id) +{ + return ImGui::IsKeyDown(key,owner_id); +} +CIMGUI_API bool igIsKeyPressed_ID(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags) +{ + return ImGui::IsKeyPressed(key,owner_id,flags); +} +CIMGUI_API bool igIsKeyReleased_ID(ImGuiKey key,ImGuiID owner_id) +{ + return ImGui::IsKeyReleased(key,owner_id); +} +CIMGUI_API bool igIsMouseDown_ID(ImGuiMouseButton button,ImGuiID owner_id) +{ + return ImGui::IsMouseDown(button,owner_id); +} +CIMGUI_API bool igIsMouseClicked_ID(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags) +{ + return ImGui::IsMouseClicked(button,owner_id,flags); +} +CIMGUI_API bool igIsMouseReleased_ID(ImGuiMouseButton button,ImGuiID owner_id) +{ + return ImGui::IsMouseReleased(button,owner_id); +} +CIMGUI_API bool igShortcut(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags) +{ + return ImGui::Shortcut(key_chord,owner_id,flags); +} +CIMGUI_API bool igSetShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags) +{ + return ImGui::SetShortcutRouting(key_chord,owner_id,flags); +} +CIMGUI_API bool igTestShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id) +{ + return ImGui::TestShortcutRouting(key_chord,owner_id); +} +CIMGUI_API ImGuiKeyRoutingData* igGetShortcutRoutingData(ImGuiKeyChord key_chord) +{ + return ImGui::GetShortcutRoutingData(key_chord); +} +CIMGUI_API void igDockContextInitialize(ImGuiContext* ctx) +{ + return ImGui::DockContextInitialize(ctx); +} +CIMGUI_API void igDockContextShutdown(ImGuiContext* ctx) +{ + return ImGui::DockContextShutdown(ctx); +} +CIMGUI_API void igDockContextClearNodes(ImGuiContext* ctx,ImGuiID root_id,bool clear_settings_refs) +{ + return ImGui::DockContextClearNodes(ctx,root_id,clear_settings_refs); +} +CIMGUI_API void igDockContextRebuildNodes(ImGuiContext* ctx) +{ + return ImGui::DockContextRebuildNodes(ctx); +} +CIMGUI_API void igDockContextNewFrameUpdateUndocking(ImGuiContext* ctx) +{ + return ImGui::DockContextNewFrameUpdateUndocking(ctx); +} +CIMGUI_API void igDockContextNewFrameUpdateDocking(ImGuiContext* ctx) +{ + return ImGui::DockContextNewFrameUpdateDocking(ctx); +} +CIMGUI_API void igDockContextEndFrame(ImGuiContext* ctx) +{ + return ImGui::DockContextEndFrame(ctx); +} +CIMGUI_API ImGuiID igDockContextGenNodeID(ImGuiContext* ctx) +{ + return ImGui::DockContextGenNodeID(ctx); +} +CIMGUI_API void igDockContextQueueDock(ImGuiContext* ctx,ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,float split_ratio,bool split_outer) +{ + return ImGui::DockContextQueueDock(ctx,target,target_node,payload,split_dir,split_ratio,split_outer); +} +CIMGUI_API void igDockContextQueueUndockWindow(ImGuiContext* ctx,ImGuiWindow* window) +{ + return ImGui::DockContextQueueUndockWindow(ctx,window); +} +CIMGUI_API void igDockContextQueueUndockNode(ImGuiContext* ctx,ImGuiDockNode* node) +{ + return ImGui::DockContextQueueUndockNode(ctx,node); +} +CIMGUI_API bool igDockContextCalcDropPosForDocking(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos) +{ + return ImGui::DockContextCalcDropPosForDocking(target,target_node,payload_window,payload_node,split_dir,split_outer,out_pos); +} +CIMGUI_API ImGuiDockNode* igDockContextFindNodeByID(ImGuiContext* ctx,ImGuiID id) +{ + return ImGui::DockContextFindNodeByID(ctx,id); +} +CIMGUI_API bool igDockNodeBeginAmendTabBar(ImGuiDockNode* node) +{ + return ImGui::DockNodeBeginAmendTabBar(node); +} +CIMGUI_API void igDockNodeEndAmendTabBar() +{ + return ImGui::DockNodeEndAmendTabBar(); +} +CIMGUI_API ImGuiDockNode* igDockNodeGetRootNode(ImGuiDockNode* node) +{ + return ImGui::DockNodeGetRootNode(node); +} +CIMGUI_API bool igDockNodeIsInHierarchyOf(ImGuiDockNode* node,ImGuiDockNode* parent) +{ + return ImGui::DockNodeIsInHierarchyOf(node,parent); +} +CIMGUI_API int igDockNodeGetDepth(const ImGuiDockNode* node) +{ + return ImGui::DockNodeGetDepth(node); +} +CIMGUI_API ImGuiID igDockNodeGetWindowMenuButtonId(const ImGuiDockNode* node) +{ + return ImGui::DockNodeGetWindowMenuButtonId(node); +} +CIMGUI_API ImGuiDockNode* igGetWindowDockNode() +{ + return ImGui::GetWindowDockNode(); +} +CIMGUI_API bool igGetWindowAlwaysWantOwnTabBar(ImGuiWindow* window) +{ + return ImGui::GetWindowAlwaysWantOwnTabBar(window); +} +CIMGUI_API void igBeginDocked(ImGuiWindow* window,bool* p_open) +{ + return ImGui::BeginDocked(window,p_open); +} +CIMGUI_API void igBeginDockableDragDropSource(ImGuiWindow* window) +{ + return ImGui::BeginDockableDragDropSource(window); +} +CIMGUI_API void igBeginDockableDragDropTarget(ImGuiWindow* window) +{ + return ImGui::BeginDockableDragDropTarget(window); +} +CIMGUI_API void igSetWindowDock(ImGuiWindow* window,ImGuiID dock_id,ImGuiCond cond) +{ + return ImGui::SetWindowDock(window,dock_id,cond); +} +CIMGUI_API void igDockBuilderDockWindow(const char* window_name,ImGuiID node_id) +{ + return ImGui::DockBuilderDockWindow(window_name,node_id); +} +CIMGUI_API ImGuiDockNode* igDockBuilderGetNode(ImGuiID node_id) +{ + return ImGui::DockBuilderGetNode(node_id); +} +CIMGUI_API ImGuiDockNode* igDockBuilderGetCentralNode(ImGuiID node_id) +{ + return ImGui::DockBuilderGetCentralNode(node_id); +} +CIMGUI_API ImGuiID igDockBuilderAddNode(ImGuiID node_id,ImGuiDockNodeFlags flags) +{ + return ImGui::DockBuilderAddNode(node_id,flags); +} +CIMGUI_API void igDockBuilderRemoveNode(ImGuiID node_id) +{ + return ImGui::DockBuilderRemoveNode(node_id); +} +CIMGUI_API void igDockBuilderRemoveNodeDockedWindows(ImGuiID node_id,bool clear_settings_refs) +{ + return ImGui::DockBuilderRemoveNodeDockedWindows(node_id,clear_settings_refs); +} +CIMGUI_API void igDockBuilderRemoveNodeChildNodes(ImGuiID node_id) +{ + return ImGui::DockBuilderRemoveNodeChildNodes(node_id); +} +CIMGUI_API void igDockBuilderSetNodePos(ImGuiID node_id,ImVec2 pos) +{ + return ImGui::DockBuilderSetNodePos(node_id,pos); +} +CIMGUI_API void igDockBuilderSetNodeSize(ImGuiID node_id,ImVec2 size) +{ + return ImGui::DockBuilderSetNodeSize(node_id,size); +} +CIMGUI_API ImGuiID igDockBuilderSplitNode(ImGuiID node_id,ImGuiDir split_dir,float size_ratio_for_node_at_dir,ImGuiID* out_id_at_dir,ImGuiID* out_id_at_opposite_dir) +{ + return ImGui::DockBuilderSplitNode(node_id,split_dir,size_ratio_for_node_at_dir,out_id_at_dir,out_id_at_opposite_dir); +} +CIMGUI_API void igDockBuilderCopyDockSpace(ImGuiID src_dockspace_id,ImGuiID dst_dockspace_id,ImVector_const_charPtr* in_window_remap_pairs) +{ + return ImGui::DockBuilderCopyDockSpace(src_dockspace_id,dst_dockspace_id,in_window_remap_pairs); +} +CIMGUI_API void igDockBuilderCopyNode(ImGuiID src_node_id,ImGuiID dst_node_id,ImVector_ImGuiID* out_node_remap_pairs) +{ + return ImGui::DockBuilderCopyNode(src_node_id,dst_node_id,out_node_remap_pairs); +} +CIMGUI_API void igDockBuilderCopyWindowSettings(const char* src_name,const char* dst_name) +{ + return ImGui::DockBuilderCopyWindowSettings(src_name,dst_name); +} +CIMGUI_API void igDockBuilderFinish(ImGuiID node_id) +{ + return ImGui::DockBuilderFinish(node_id); +} +CIMGUI_API void igPushFocusScope(ImGuiID id) +{ + return ImGui::PushFocusScope(id); +} +CIMGUI_API void igPopFocusScope() +{ + return ImGui::PopFocusScope(); +} +CIMGUI_API ImGuiID igGetCurrentFocusScope() +{ + return ImGui::GetCurrentFocusScope(); +} +CIMGUI_API bool igIsDragDropActive() +{ + return ImGui::IsDragDropActive(); +} +CIMGUI_API bool igBeginDragDropTargetCustom(const ImRect bb,ImGuiID id) +{ + return ImGui::BeginDragDropTargetCustom(bb,id); +} +CIMGUI_API void igClearDragDrop() +{ + return ImGui::ClearDragDrop(); +} +CIMGUI_API bool igIsDragDropPayloadBeingAccepted() +{ + return ImGui::IsDragDropPayloadBeingAccepted(); +} +CIMGUI_API void igRenderDragDropTargetRect(const ImRect bb) +{ + return ImGui::RenderDragDropTargetRect(bb); +} +CIMGUI_API void igSetWindowClipRectBeforeSetChannel(ImGuiWindow* window,const ImRect clip_rect) +{ + return ImGui::SetWindowClipRectBeforeSetChannel(window,clip_rect); +} +CIMGUI_API void igBeginColumns(const char* str_id,int count,ImGuiOldColumnFlags flags) +{ + return ImGui::BeginColumns(str_id,count,flags); +} +CIMGUI_API void igEndColumns() +{ + return ImGui::EndColumns(); +} +CIMGUI_API void igPushColumnClipRect(int column_index) +{ + return ImGui::PushColumnClipRect(column_index); +} +CIMGUI_API void igPushColumnsBackground() +{ + return ImGui::PushColumnsBackground(); +} +CIMGUI_API void igPopColumnsBackground() +{ + return ImGui::PopColumnsBackground(); +} +CIMGUI_API ImGuiID igGetColumnsID(const char* str_id,int count) +{ + return ImGui::GetColumnsID(str_id,count); +} +CIMGUI_API ImGuiOldColumns* igFindOrCreateColumns(ImGuiWindow* window,ImGuiID id) +{ + return ImGui::FindOrCreateColumns(window,id); +} +CIMGUI_API float igGetColumnOffsetFromNorm(const ImGuiOldColumns* columns,float offset_norm) +{ + return ImGui::GetColumnOffsetFromNorm(columns,offset_norm); +} +CIMGUI_API float igGetColumnNormFromOffset(const ImGuiOldColumns* columns,float offset) +{ + return ImGui::GetColumnNormFromOffset(columns,offset); +} +CIMGUI_API void igTableOpenContextMenu(int column_n) +{ + return ImGui::TableOpenContextMenu(column_n); +} +CIMGUI_API void igTableSetColumnWidth(int column_n,float width) +{ + return ImGui::TableSetColumnWidth(column_n,width); +} +CIMGUI_API void igTableSetColumnSortDirection(int column_n,ImGuiSortDirection sort_direction,bool append_to_sort_specs) +{ + return ImGui::TableSetColumnSortDirection(column_n,sort_direction,append_to_sort_specs); +} +CIMGUI_API int igTableGetHoveredColumn() +{ + return ImGui::TableGetHoveredColumn(); +} +CIMGUI_API float igTableGetHeaderRowHeight() +{ + return ImGui::TableGetHeaderRowHeight(); +} +CIMGUI_API void igTablePushBackgroundChannel() +{ + return ImGui::TablePushBackgroundChannel(); +} +CIMGUI_API void igTablePopBackgroundChannel() +{ + return ImGui::TablePopBackgroundChannel(); +} +CIMGUI_API ImGuiTable* igGetCurrentTable() +{ + return ImGui::GetCurrentTable(); +} +CIMGUI_API ImGuiTable* igTableFindByID(ImGuiID id) +{ + return ImGui::TableFindByID(id); +} +CIMGUI_API bool igBeginTableEx(const char* name,ImGuiID id,int columns_count,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width) +{ + return ImGui::BeginTableEx(name,id,columns_count,flags,outer_size,inner_width); +} +CIMGUI_API void igTableBeginInitMemory(ImGuiTable* table,int columns_count) +{ + return ImGui::TableBeginInitMemory(table,columns_count); +} +CIMGUI_API void igTableBeginApplyRequests(ImGuiTable* table) +{ + return ImGui::TableBeginApplyRequests(table); +} +CIMGUI_API void igTableSetupDrawChannels(ImGuiTable* table) +{ + return ImGui::TableSetupDrawChannels(table); +} +CIMGUI_API void igTableUpdateLayout(ImGuiTable* table) +{ + return ImGui::TableUpdateLayout(table); +} +CIMGUI_API void igTableUpdateBorders(ImGuiTable* table) +{ + return ImGui::TableUpdateBorders(table); +} +CIMGUI_API void igTableUpdateColumnsWeightFromWidth(ImGuiTable* table) +{ + return ImGui::TableUpdateColumnsWeightFromWidth(table); +} +CIMGUI_API void igTableDrawBorders(ImGuiTable* table) +{ + return ImGui::TableDrawBorders(table); +} +CIMGUI_API void igTableDrawContextMenu(ImGuiTable* table) +{ + return ImGui::TableDrawContextMenu(table); +} +CIMGUI_API bool igTableBeginContextMenuPopup(ImGuiTable* table) +{ + return ImGui::TableBeginContextMenuPopup(table); +} +CIMGUI_API void igTableMergeDrawChannels(ImGuiTable* table) +{ + return ImGui::TableMergeDrawChannels(table); +} +CIMGUI_API ImGuiTableInstanceData* igTableGetInstanceData(ImGuiTable* table,int instance_no) +{ + return ImGui::TableGetInstanceData(table,instance_no); +} +CIMGUI_API void igTableSortSpecsSanitize(ImGuiTable* table) +{ + return ImGui::TableSortSpecsSanitize(table); +} +CIMGUI_API void igTableSortSpecsBuild(ImGuiTable* table) +{ + return ImGui::TableSortSpecsBuild(table); +} +CIMGUI_API ImGuiSortDirection igTableGetColumnNextSortDirection(ImGuiTableColumn* column) +{ + return ImGui::TableGetColumnNextSortDirection(column); +} +CIMGUI_API void igTableFixColumnSortDirection(ImGuiTable* table,ImGuiTableColumn* column) +{ + return ImGui::TableFixColumnSortDirection(table,column); +} +CIMGUI_API float igTableGetColumnWidthAuto(ImGuiTable* table,ImGuiTableColumn* column) +{ + return ImGui::TableGetColumnWidthAuto(table,column); +} +CIMGUI_API void igTableBeginRow(ImGuiTable* table) +{ + return ImGui::TableBeginRow(table); +} +CIMGUI_API void igTableEndRow(ImGuiTable* table) +{ + return ImGui::TableEndRow(table); +} +CIMGUI_API void igTableBeginCell(ImGuiTable* table,int column_n) +{ + return ImGui::TableBeginCell(table,column_n); +} +CIMGUI_API void igTableEndCell(ImGuiTable* table) +{ + return ImGui::TableEndCell(table); +} +CIMGUI_API void igTableGetCellBgRect(ImRect *pOut,const ImGuiTable* table,int column_n) +{ + *pOut = ImGui::TableGetCellBgRect(table,column_n); +} +CIMGUI_API const char* igTableGetColumnName_TablePtr(const ImGuiTable* table,int column_n) +{ + return ImGui::TableGetColumnName(table,column_n); +} +CIMGUI_API ImGuiID igTableGetColumnResizeID(const ImGuiTable* table,int column_n,int instance_no) +{ + return ImGui::TableGetColumnResizeID(table,column_n,instance_no); +} +CIMGUI_API float igTableGetMaxColumnWidth(const ImGuiTable* table,int column_n) +{ + return ImGui::TableGetMaxColumnWidth(table,column_n); +} +CIMGUI_API void igTableSetColumnWidthAutoSingle(ImGuiTable* table,int column_n) +{ + return ImGui::TableSetColumnWidthAutoSingle(table,column_n); +} +CIMGUI_API void igTableSetColumnWidthAutoAll(ImGuiTable* table) +{ + return ImGui::TableSetColumnWidthAutoAll(table); +} +CIMGUI_API void igTableRemove(ImGuiTable* table) +{ + return ImGui::TableRemove(table); +} +CIMGUI_API void igTableGcCompactTransientBuffers_TablePtr(ImGuiTable* table) +{ + return ImGui::TableGcCompactTransientBuffers(table); +} +CIMGUI_API void igTableGcCompactTransientBuffers_TableTempDataPtr(ImGuiTableTempData* table) +{ + return ImGui::TableGcCompactTransientBuffers(table); +} +CIMGUI_API void igTableGcCompactSettings() +{ + return ImGui::TableGcCompactSettings(); +} +CIMGUI_API void igTableLoadSettings(ImGuiTable* table) +{ + return ImGui::TableLoadSettings(table); +} +CIMGUI_API void igTableSaveSettings(ImGuiTable* table) +{ + return ImGui::TableSaveSettings(table); +} +CIMGUI_API void igTableResetSettings(ImGuiTable* table) +{ + return ImGui::TableResetSettings(table); +} +CIMGUI_API ImGuiTableSettings* igTableGetBoundSettings(ImGuiTable* table) +{ + return ImGui::TableGetBoundSettings(table); +} +CIMGUI_API void igTableSettingsAddSettingsHandler() +{ + return ImGui::TableSettingsAddSettingsHandler(); +} +CIMGUI_API ImGuiTableSettings* igTableSettingsCreate(ImGuiID id,int columns_count) +{ + return ImGui::TableSettingsCreate(id,columns_count); +} +CIMGUI_API ImGuiTableSettings* igTableSettingsFindByID(ImGuiID id) +{ + return ImGui::TableSettingsFindByID(id); +} +CIMGUI_API bool igBeginTabBarEx(ImGuiTabBar* tab_bar,const ImRect bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node) +{ + return ImGui::BeginTabBarEx(tab_bar,bb,flags,dock_node); +} +CIMGUI_API ImGuiTabItem* igTabBarFindTabByID(ImGuiTabBar* tab_bar,ImGuiID tab_id) +{ + return ImGui::TabBarFindTabByID(tab_bar,tab_id); +} +CIMGUI_API ImGuiTabItem* igTabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar) +{ + return ImGui::TabBarFindMostRecentlySelectedTabForActiveWindow(tab_bar); +} +CIMGUI_API void igTabBarAddTab(ImGuiTabBar* tab_bar,ImGuiTabItemFlags tab_flags,ImGuiWindow* window) +{ + return ImGui::TabBarAddTab(tab_bar,tab_flags,window); +} +CIMGUI_API void igTabBarRemoveTab(ImGuiTabBar* tab_bar,ImGuiID tab_id) +{ + return ImGui::TabBarRemoveTab(tab_bar,tab_id); +} +CIMGUI_API void igTabBarCloseTab(ImGuiTabBar* tab_bar,ImGuiTabItem* tab) +{ + return ImGui::TabBarCloseTab(tab_bar,tab); +} +CIMGUI_API void igTabBarQueueReorder(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,int offset) +{ + return ImGui::TabBarQueueReorder(tab_bar,tab,offset); +} +CIMGUI_API void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,ImVec2 mouse_pos) +{ + return ImGui::TabBarQueueReorderFromMousePos(tab_bar,tab,mouse_pos); +} +CIMGUI_API bool igTabBarProcessReorder(ImGuiTabBar* tab_bar) +{ + return ImGui::TabBarProcessReorder(tab_bar); +} +CIMGUI_API bool igTabItemEx(ImGuiTabBar* tab_bar,const char* label,bool* p_open,ImGuiTabItemFlags flags,ImGuiWindow* docked_window) +{ + return ImGui::TabItemEx(tab_bar,label,p_open,flags,docked_window); +} +CIMGUI_API void igTabItemCalcSize_Str(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker) +{ + *pOut = ImGui::TabItemCalcSize(label,has_close_button_or_unsaved_marker); +} +CIMGUI_API void igTabItemCalcSize_WindowPtr(ImVec2 *pOut,ImGuiWindow* window) +{ + *pOut = ImGui::TabItemCalcSize(window); +} +CIMGUI_API void igTabItemBackground(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImU32 col) +{ + return ImGui::TabItemBackground(draw_list,bb,flags,col); +} +CIMGUI_API void igTabItemLabelAndCloseButton(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImVec2 frame_padding,const char* label,ImGuiID tab_id,ImGuiID close_button_id,bool is_contents_visible,bool* out_just_closed,bool* out_text_clipped) +{ + return ImGui::TabItemLabelAndCloseButton(draw_list,bb,flags,frame_padding,label,tab_id,close_button_id,is_contents_visible,out_just_closed,out_text_clipped); +} +CIMGUI_API void igRenderText(ImVec2 pos,const char* text,const char* text_end,bool hide_text_after_hash) +{ + return ImGui::RenderText(pos,text,text_end,hide_text_after_hash); +} +CIMGUI_API void igRenderTextWrapped(ImVec2 pos,const char* text,const char* text_end,float wrap_width) +{ + return ImGui::RenderTextWrapped(pos,text,text_end,wrap_width); +} +CIMGUI_API void igRenderTextClipped(const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect) +{ + return ImGui::RenderTextClipped(pos_min,pos_max,text,text_end,text_size_if_known,align,clip_rect); +} +CIMGUI_API void igRenderTextClippedEx(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect) +{ + return ImGui::RenderTextClippedEx(draw_list,pos_min,pos_max,text,text_end,text_size_if_known,align,clip_rect); +} +CIMGUI_API void igRenderTextEllipsis(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,float clip_max_x,float ellipsis_max_x,const char* text,const char* text_end,const ImVec2* text_size_if_known) +{ + return ImGui::RenderTextEllipsis(draw_list,pos_min,pos_max,clip_max_x,ellipsis_max_x,text,text_end,text_size_if_known); +} +CIMGUI_API void igRenderFrame(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border,float rounding) +{ + return ImGui::RenderFrame(p_min,p_max,fill_col,border,rounding); +} +CIMGUI_API void igRenderFrameBorder(ImVec2 p_min,ImVec2 p_max,float rounding) +{ + return ImGui::RenderFrameBorder(p_min,p_max,rounding); +} +CIMGUI_API void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,ImDrawFlags flags) +{ + return ImGui::RenderColorRectWithAlphaCheckerboard(draw_list,p_min,p_max,fill_col,grid_step,grid_off,rounding,flags); +} +CIMGUI_API void igRenderNavHighlight(const ImRect bb,ImGuiID id,ImGuiNavHighlightFlags flags) +{ + return ImGui::RenderNavHighlight(bb,id,flags); +} +CIMGUI_API const char* igFindRenderedTextEnd(const char* text,const char* text_end) +{ + return ImGui::FindRenderedTextEnd(text,text_end); +} +CIMGUI_API void igRenderMouseCursor(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow) +{ + return ImGui::RenderMouseCursor(pos,scale,mouse_cursor,col_fill,col_border,col_shadow); +} +CIMGUI_API void igRenderArrow(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale) +{ + return ImGui::RenderArrow(draw_list,pos,col,dir,scale); +} +CIMGUI_API void igRenderBullet(ImDrawList* draw_list,ImVec2 pos,ImU32 col) +{ + return ImGui::RenderBullet(draw_list,pos,col); +} +CIMGUI_API void igRenderCheckMark(ImDrawList* draw_list,ImVec2 pos,ImU32 col,float sz) +{ + return ImGui::RenderCheckMark(draw_list,pos,col,sz); +} +CIMGUI_API void igRenderArrowPointingAt(ImDrawList* draw_list,ImVec2 pos,ImVec2 half_sz,ImGuiDir direction,ImU32 col) +{ + return ImGui::RenderArrowPointingAt(draw_list,pos,half_sz,direction,col); +} +CIMGUI_API void igRenderArrowDockMenu(ImDrawList* draw_list,ImVec2 p_min,float sz,ImU32 col) +{ + return ImGui::RenderArrowDockMenu(draw_list,p_min,sz,col); +} +CIMGUI_API void igRenderRectFilledRangeH(ImDrawList* draw_list,const ImRect rect,ImU32 col,float x_start_norm,float x_end_norm,float rounding) +{ + return ImGui::RenderRectFilledRangeH(draw_list,rect,col,x_start_norm,x_end_norm,rounding); +} +CIMGUI_API void igRenderRectFilledWithHole(ImDrawList* draw_list,const ImRect outer,const ImRect inner,ImU32 col,float rounding) +{ + return ImGui::RenderRectFilledWithHole(draw_list,outer,inner,col,rounding); +} +CIMGUI_API ImDrawFlags igCalcRoundingFlagsForRectInRect(const ImRect r_in,const ImRect r_outer,float threshold) +{ + return ImGui::CalcRoundingFlagsForRectInRect(r_in,r_outer,threshold); +} +CIMGUI_API void igTextEx(const char* text,const char* text_end,ImGuiTextFlags flags) +{ + return ImGui::TextEx(text,text_end,flags); +} +CIMGUI_API bool igButtonEx(const char* label,const ImVec2 size_arg,ImGuiButtonFlags flags) +{ + return ImGui::ButtonEx(label,size_arg,flags); +} +CIMGUI_API bool igCloseButton(ImGuiID id,const ImVec2 pos) +{ + return ImGui::CloseButton(id,pos); +} +CIMGUI_API bool igCollapseButton(ImGuiID id,const ImVec2 pos,ImGuiDockNode* dock_node) +{ + return ImGui::CollapseButton(id,pos,dock_node); +} +CIMGUI_API bool igArrowButtonEx(const char* str_id,ImGuiDir dir,ImVec2 size_arg,ImGuiButtonFlags flags) +{ + return ImGui::ArrowButtonEx(str_id,dir,size_arg,flags); +} +CIMGUI_API void igScrollbar(ImGuiAxis axis) +{ + return ImGui::Scrollbar(axis); +} +CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,ImS64* p_scroll_v,ImS64 avail_v,ImS64 contents_v,ImDrawFlags flags) +{ + return ImGui::ScrollbarEx(bb,id,axis,p_scroll_v,avail_v,contents_v,flags); +} +CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col) +{ + return ImGui::ImageButtonEx(id,texture_id,size,uv0,uv1,bg_col,tint_col); +} +CIMGUI_API void igGetWindowScrollbarRect(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis) +{ + *pOut = ImGui::GetWindowScrollbarRect(window,axis); +} +CIMGUI_API ImGuiID igGetWindowScrollbarID(ImGuiWindow* window,ImGuiAxis axis) +{ + return ImGui::GetWindowScrollbarID(window,axis); +} +CIMGUI_API ImGuiID igGetWindowResizeCornerID(ImGuiWindow* window,int n) +{ + return ImGui::GetWindowResizeCornerID(window,n); +} +CIMGUI_API ImGuiID igGetWindowResizeBorderID(ImGuiWindow* window,ImGuiDir dir) +{ + return ImGui::GetWindowResizeBorderID(window,dir); +} +CIMGUI_API void igSeparatorEx(ImGuiSeparatorFlags flags) +{ + return ImGui::SeparatorEx(flags); +} +CIMGUI_API bool igCheckboxFlags_S64Ptr(const char* label,ImS64* flags,ImS64 flags_value) +{ + return ImGui::CheckboxFlags(label,flags,flags_value); +} +CIMGUI_API bool igCheckboxFlags_U64Ptr(const char* label,ImU64* flags,ImU64 flags_value) +{ + return ImGui::CheckboxFlags(label,flags,flags_value); +} +CIMGUI_API bool igButtonBehavior(const ImRect bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags) +{ + return ImGui::ButtonBehavior(bb,id,out_hovered,out_held,flags); +} +CIMGUI_API bool igDragBehavior(ImGuiID id,ImGuiDataType data_type,void* p_v,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags) +{ + return ImGui::DragBehavior(id,data_type,p_v,v_speed,p_min,p_max,format,flags); +} +CIMGUI_API bool igSliderBehavior(const ImRect bb,ImGuiID id,ImGuiDataType data_type,void* p_v,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags,ImRect* out_grab_bb) +{ + return ImGui::SliderBehavior(bb,id,data_type,p_v,p_min,p_max,format,flags,out_grab_bb); +} +CIMGUI_API bool igSplitterBehavior(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* size1,float* size2,float min_size1,float min_size2,float hover_extend,float hover_visibility_delay,ImU32 bg_col) +{ + return ImGui::SplitterBehavior(bb,id,axis,size1,size2,min_size1,min_size2,hover_extend,hover_visibility_delay,bg_col); +} +CIMGUI_API bool igTreeNodeBehavior(ImGuiID id,ImGuiTreeNodeFlags flags,const char* label,const char* label_end) +{ + return ImGui::TreeNodeBehavior(id,flags,label,label_end); +} +CIMGUI_API void igTreePushOverrideID(ImGuiID id) +{ + return ImGui::TreePushOverrideID(id); +} +CIMGUI_API void igTreeNodeSetOpen(ImGuiID id,bool open) +{ + return ImGui::TreeNodeSetOpen(id,open); +} +CIMGUI_API bool igTreeNodeUpdateNextOpen(ImGuiID id,ImGuiTreeNodeFlags flags) +{ + return ImGui::TreeNodeUpdateNextOpen(id,flags); +} +CIMGUI_API const ImGuiDataTypeInfo* igDataTypeGetInfo(ImGuiDataType data_type) +{ + return ImGui::DataTypeGetInfo(data_type); +} +CIMGUI_API int igDataTypeFormatString(char* buf,int buf_size,ImGuiDataType data_type,const void* p_data,const char* format) +{ + return ImGui::DataTypeFormatString(buf,buf_size,data_type,p_data,format); +} +CIMGUI_API void igDataTypeApplyOp(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2) +{ + return ImGui::DataTypeApplyOp(data_type,op,output,arg_1,arg_2); +} +CIMGUI_API bool igDataTypeApplyFromText(const char* buf,ImGuiDataType data_type,void* p_data,const char* format) +{ + return ImGui::DataTypeApplyFromText(buf,data_type,p_data,format); +} +CIMGUI_API int igDataTypeCompare(ImGuiDataType data_type,const void* arg_1,const void* arg_2) +{ + return ImGui::DataTypeCompare(data_type,arg_1,arg_2); +} +CIMGUI_API bool igDataTypeClamp(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max) +{ + return ImGui::DataTypeClamp(data_type,p_data,p_min,p_max); +} +CIMGUI_API bool igInputTextEx(const char* label,const char* hint,char* buf,int buf_size,const ImVec2 size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data) +{ + return ImGui::InputTextEx(label,hint,buf,buf_size,size_arg,flags,callback,user_data); +} +CIMGUI_API bool igTempInputText(const ImRect bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags) +{ + return ImGui::TempInputText(bb,id,label,buf,buf_size,flags); +} +CIMGUI_API bool igTempInputScalar(const ImRect bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min,const void* p_clamp_max) +{ + return ImGui::TempInputScalar(bb,id,label,data_type,p_data,format,p_clamp_min,p_clamp_max); +} +CIMGUI_API bool igTempInputIsActive(ImGuiID id) +{ + return ImGui::TempInputIsActive(id); +} +CIMGUI_API ImGuiInputTextState* igGetInputTextState(ImGuiID id) +{ + return ImGui::GetInputTextState(id); +} +CIMGUI_API void igColorTooltip(const char* text,const float* col,ImGuiColorEditFlags flags) +{ + return ImGui::ColorTooltip(text,col,flags); +} +CIMGUI_API void igColorEditOptionsPopup(const float* col,ImGuiColorEditFlags flags) +{ + return ImGui::ColorEditOptionsPopup(col,flags); +} +CIMGUI_API void igColorPickerOptionsPopup(const float* ref_col,ImGuiColorEditFlags flags) +{ + return ImGui::ColorPickerOptionsPopup(ref_col,flags); +} +CIMGUI_API int igPlotEx(ImGuiPlotType plot_type,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 frame_size) +{ + return ImGui::PlotEx(plot_type,label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,frame_size); +} +CIMGUI_API void igShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1) +{ + return ImGui::ShadeVertsLinearColorGradientKeepAlpha(draw_list,vert_start_idx,vert_end_idx,gradient_p0,gradient_p1,col0,col1); +} +CIMGUI_API void igShadeVertsLinearUV(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,bool clamp) +{ + return ImGui::ShadeVertsLinearUV(draw_list,vert_start_idx,vert_end_idx,a,b,uv_a,uv_b,clamp); +} +CIMGUI_API void igGcCompactTransientMiscBuffers() +{ + return ImGui::GcCompactTransientMiscBuffers(); +} +CIMGUI_API void igGcCompactTransientWindowBuffers(ImGuiWindow* window) +{ + return ImGui::GcCompactTransientWindowBuffers(window); +} +CIMGUI_API void igGcAwakeTransientWindowBuffers(ImGuiWindow* window) +{ + return ImGui::GcAwakeTransientWindowBuffers(window); +} +CIMGUI_API void igDebugLog(const char* fmt,...) +{ + va_list args; + va_start(args, fmt); + ImGui::DebugLogV(fmt,args); + va_end(args); +} +CIMGUI_API void igDebugLogV(const char* fmt,va_list args) +{ + return ImGui::DebugLogV(fmt,args); +} +CIMGUI_API void igErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback,void* user_data) +{ + return ImGui::ErrorCheckEndFrameRecover(log_callback,user_data); +} +CIMGUI_API void igErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback,void* user_data) +{ + return ImGui::ErrorCheckEndWindowRecover(log_callback,user_data); +} +CIMGUI_API void igErrorCheckUsingSetCursorPosToExtendParentBoundaries() +{ + return ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); +} +CIMGUI_API void igDebugLocateItem(ImGuiID target_id) +{ + return ImGui::DebugLocateItem(target_id); +} +CIMGUI_API void igDebugLocateItemOnHover(ImGuiID target_id) +{ + return ImGui::DebugLocateItemOnHover(target_id); +} +CIMGUI_API void igDebugLocateItemResolveWithLastItem() +{ + return ImGui::DebugLocateItemResolveWithLastItem(); +} +CIMGUI_API void igDebugDrawItemRect(ImU32 col) +{ + return ImGui::DebugDrawItemRect(col); +} +CIMGUI_API void igDebugStartItemPicker() +{ + return ImGui::DebugStartItemPicker(); +} +CIMGUI_API void igShowFontAtlas(ImFontAtlas* atlas) +{ + return ImGui::ShowFontAtlas(atlas); +} +CIMGUI_API void igDebugHookIdInfo(ImGuiID id,ImGuiDataType data_type,const void* data_id,const void* data_id_end) +{ + return ImGui::DebugHookIdInfo(id,data_type,data_id,data_id_end); +} +CIMGUI_API void igDebugNodeColumns(ImGuiOldColumns* columns) +{ + return ImGui::DebugNodeColumns(columns); +} +CIMGUI_API void igDebugNodeDockNode(ImGuiDockNode* node,const char* label) +{ + return ImGui::DebugNodeDockNode(node,label); +} +CIMGUI_API void igDebugNodeDrawList(ImGuiWindow* window,ImGuiViewportP* viewport,const ImDrawList* draw_list,const char* label) +{ + return ImGui::DebugNodeDrawList(window,viewport,draw_list,label); +} +CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb) +{ + return ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(out_draw_list,draw_list,draw_cmd,show_mesh,show_aabb); +} +CIMGUI_API void igDebugNodeFont(ImFont* font) +{ + return ImGui::DebugNodeFont(font); +} +CIMGUI_API void igDebugNodeFontGlyph(ImFont* font,const ImFontGlyph* glyph) +{ + return ImGui::DebugNodeFontGlyph(font,glyph); +} +CIMGUI_API void igDebugNodeStorage(ImGuiStorage* storage,const char* label) +{ + return ImGui::DebugNodeStorage(storage,label); +} +CIMGUI_API void igDebugNodeTabBar(ImGuiTabBar* tab_bar,const char* label) +{ + return ImGui::DebugNodeTabBar(tab_bar,label); +} +CIMGUI_API void igDebugNodeTable(ImGuiTable* table) +{ + return ImGui::DebugNodeTable(table); +} +CIMGUI_API void igDebugNodeTableSettings(ImGuiTableSettings* settings) +{ + return ImGui::DebugNodeTableSettings(settings); +} +CIMGUI_API void igDebugNodeInputTextState(ImGuiInputTextState* state) +{ + return ImGui::DebugNodeInputTextState(state); +} +CIMGUI_API void igDebugNodeWindow(ImGuiWindow* window,const char* label) +{ + return ImGui::DebugNodeWindow(window,label); +} +CIMGUI_API void igDebugNodeWindowSettings(ImGuiWindowSettings* settings) +{ + return ImGui::DebugNodeWindowSettings(settings); +} +CIMGUI_API void igDebugNodeWindowsList(ImVector_ImGuiWindowPtr* windows,const char* label) +{ + return ImGui::DebugNodeWindowsList(windows,label); +} +CIMGUI_API void igDebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows,int windows_size,ImGuiWindow* parent_in_begin_stack) +{ + return ImGui::DebugNodeWindowsListByBeginStackParent(windows,windows_size,parent_in_begin_stack); +} +CIMGUI_API void igDebugNodeViewport(ImGuiViewportP* viewport) +{ + return ImGui::DebugNodeViewport(viewport); +} +CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb) +{ + return ImGui::DebugRenderViewportThumbnail(draw_list,viewport,bb); +} +CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key,bool repeat) +{ + return ImGui::IsKeyPressedMap(key,repeat); +} +CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas) +{ + return ImFontAtlasBuildInit(atlas); +} +CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent) +{ + return ImFontAtlasBuildSetupFont(atlas,font,font_config,ascent,descent); +} +CIMGUI_API void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas,void* stbrp_context_opaque) +{ + return ImFontAtlasBuildPackCustomRects(atlas,stbrp_context_opaque); +} +CIMGUI_API void igImFontAtlasBuildFinish(ImFontAtlas* atlas) +{ + return ImFontAtlasBuildFinish(atlas); +} +CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value) +{ + return ImFontAtlasBuildRender8bppRectFromString(atlas,x,y,w,h,in_str,in_marker_char,in_marker_pixel_value); +} +CIMGUI_API void igImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value) +{ + return ImFontAtlasBuildRender32bppRectFromString(atlas,x,y,w,h,in_str,in_marker_char,in_marker_pixel_value); +} +CIMGUI_API void igImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256],float in_multiply_factor) +{ + return ImFontAtlasBuildMultiplyCalcLookupTable(out_table,in_multiply_factor); +} +CIMGUI_API void igImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride) +{ + return ImFontAtlasBuildMultiplyRectAlpha8(table,pixels,x,y,w,h,stride); +} CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType() { return ImGuiFreeType::GetBuilderForFreeType(); diff --git a/imgui-sys/third-party/imgui-docking-freetype/cimgui.h b/imgui-sys/third-party/imgui-docking-freetype/cimgui.h index 72dabd6fc..6390bbb76 100644 --- a/imgui-sys/third-party/imgui-docking-freetype/cimgui.h +++ b/imgui-sys/third-party/imgui-docking-freetype/cimgui.h @@ -1,5 +1,6 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //based on imgui.h file version "1.89.1" 18910 from Dear ImGui https://github.com/ocornut/imgui +//with imgui_internal.h api //with imgui_freetype.h api //docking branch #ifndef CIMGUI_INCLUDED @@ -74,6 +75,44 @@ typedef struct ImGuiTextBuffer ImGuiTextBuffer; typedef struct ImGuiTextFilter ImGuiTextFilter; typedef struct ImGuiViewport ImGuiViewport; typedef struct ImGuiWindowClass ImGuiWindowClass; +typedef struct ImBitVector ImBitVector; +typedef struct ImRect ImRect; +typedef struct ImDrawDataBuilder ImDrawDataBuilder; +typedef struct ImGuiColorMod ImGuiColorMod; +typedef struct ImGuiContextHook ImGuiContextHook; +typedef struct ImGuiDataTypeInfo ImGuiDataTypeInfo; +typedef struct ImGuiDockContext ImGuiDockContext; +typedef struct ImGuiDockRequest ImGuiDockRequest; +typedef struct ImGuiDockNode ImGuiDockNode; +typedef struct ImGuiDockNodeSettings ImGuiDockNodeSettings; +typedef struct ImGuiGroupData ImGuiGroupData; +typedef struct ImGuiInputTextState ImGuiInputTextState; +typedef struct ImGuiLastItemData ImGuiLastItemData; +typedef struct ImGuiLocEntry ImGuiLocEntry; +typedef struct ImGuiMenuColumns ImGuiMenuColumns; +typedef struct ImGuiNavItemData ImGuiNavItemData; +typedef struct ImGuiMetricsConfig ImGuiMetricsConfig; +typedef struct ImGuiNextWindowData ImGuiNextWindowData; +typedef struct ImGuiNextItemData ImGuiNextItemData; +typedef struct ImGuiOldColumnData ImGuiOldColumnData; +typedef struct ImGuiOldColumns ImGuiOldColumns; +typedef struct ImGuiPopupData ImGuiPopupData; +typedef struct ImGuiSettingsHandler ImGuiSettingsHandler; +typedef struct ImGuiStackSizes ImGuiStackSizes; +typedef struct ImGuiStyleMod ImGuiStyleMod; +typedef struct ImGuiTabBar ImGuiTabBar; +typedef struct ImGuiTabItem ImGuiTabItem; +typedef struct ImGuiTable ImGuiTable; +typedef struct ImGuiTableColumn ImGuiTableColumn; +typedef struct ImGuiTableInstanceData ImGuiTableInstanceData; +typedef struct ImGuiTableTempData ImGuiTableTempData; +typedef struct ImGuiTableSettings ImGuiTableSettings; +typedef struct ImGuiTableColumnsSettings ImGuiTableColumnsSettings; +typedef struct ImGuiWindow ImGuiWindow; +typedef struct ImGuiWindowTempData ImGuiWindowTempData; +typedef struct ImGuiWindowSettings ImGuiWindowSettings; +typedef struct ImVector_const_charPtr {int Size;int Capacity;const char** Data;} ImVector_const_charPtr; + struct ImDrawChannel; struct ImDrawCmd; struct ImDrawData; @@ -1350,6 +1389,1624 @@ struct ImGuiPlatformImeData ImVec2 InputPos; float InputLineHeight; }; +struct ImBitVector; +struct ImRect; +struct ImDrawDataBuilder; +struct ImDrawListSharedData; +struct ImGuiColorMod; +struct ImGuiContext; +struct ImGuiContextHook; +struct ImGuiDataTypeInfo; +struct ImGuiDockContext; +struct ImGuiDockRequest; +struct ImGuiDockNode; +struct ImGuiDockNodeSettings; +struct ImGuiGroupData; +struct ImGuiInputTextState; +struct ImGuiLastItemData; +struct ImGuiLocEntry; +struct ImGuiMenuColumns; +struct ImGuiNavItemData; +struct ImGuiMetricsConfig; +struct ImGuiNextWindowData; +struct ImGuiNextItemData; +struct ImGuiOldColumnData; +struct ImGuiOldColumns; +struct ImGuiPopupData; +struct ImGuiSettingsHandler; +struct ImGuiStackSizes; +struct ImGuiStyleMod; +struct ImGuiTabBar; +struct ImGuiTabItem; +struct ImGuiTable; +struct ImGuiTableColumn; +struct ImGuiTableInstanceData; +struct ImGuiTableTempData; +struct ImGuiTableSettings; +struct ImGuiTableColumnsSettings; +struct ImGuiWindow; +struct ImGuiWindowTempData; +struct ImGuiWindowSettings; +typedef int ImGuiDataAuthority; +typedef int ImGuiLayoutType; +typedef int ImGuiActivateFlags; +typedef int ImGuiDebugLogFlags; +typedef int ImGuiInputFlags; +typedef int ImGuiItemFlags; +typedef int ImGuiItemStatusFlags; +typedef int ImGuiOldColumnFlags; +typedef int ImGuiNavHighlightFlags; +typedef int ImGuiNavMoveFlags; +typedef int ImGuiNextItemDataFlags; +typedef int ImGuiNextWindowDataFlags; +typedef int ImGuiScrollFlags; +typedef int ImGuiSeparatorFlags; +typedef int ImGuiTextFlags; +typedef int ImGuiTooltipFlags; +typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...); +extern ImGuiContext* GImGui; +typedef struct StbUndoRecord StbUndoRecord; +struct StbUndoRecord +{ + int where; + int insert_length; + int delete_length; + int char_storage; +}; +typedef struct StbUndoState StbUndoState; +struct StbUndoState +{ + StbUndoRecord undo_rec [99]; + ImWchar undo_char[999]; + short undo_point, redo_point; + int undo_char_point, redo_char_point; +}; +typedef struct STB_TexteditState STB_TexteditState; +struct STB_TexteditState +{ + int cursor; + int select_start; + int select_end; + unsigned char insert_mode; + int row_count_per_page; + unsigned char cursor_at_end_of_line; + unsigned char initialized; + unsigned char has_preferred_x; + unsigned char single_line; + unsigned char padding1, padding2, padding3; + float preferred_x; + StbUndoState undostate; +}; +typedef struct StbTexteditRow StbTexteditRow; +struct StbTexteditRow +{ + float x0,x1; + float baseline_y_delta; + float ymin,ymax; + int num_chars; +}; +typedef FILE* ImFileHandle; +typedef struct ImVec1 ImVec1; +struct ImVec1 +{ + float x; +}; +typedef struct ImVec2ih ImVec2ih; +struct ImVec2ih +{ + short x, y; +}; +struct ImRect +{ + ImVec2 Min; + ImVec2 Max; +}; +struct ImBitVector +{ + ImVector_ImU32 Storage; +}; +typedef int ImPoolIdx; +typedef struct ImGuiTextIndex ImGuiTextIndex; +typedef struct ImVector_int {int Size;int Capacity;int* Data;} ImVector_int; + +struct ImGuiTextIndex +{ + ImVector_int LineOffsets; + int EndOffset; +}; +struct ImDrawListSharedData +{ + ImVec2 TexUvWhitePixel; + ImFont* Font; + float FontSize; + float CurveTessellationTol; + float CircleSegmentMaxError; + ImVec4 ClipRectFullscreen; + ImDrawListFlags InitialFlags; + ImVector_ImVec2 TempBuffer; + ImVec2 ArcFastVtx[48]; + float ArcFastRadiusCutoff; + ImU8 CircleSegmentCounts[64]; + const ImVec4* TexUvLines; +}; +typedef struct ImVector_ImDrawListPtr {int Size;int Capacity;ImDrawList** Data;} ImVector_ImDrawListPtr; + +struct ImDrawDataBuilder +{ + ImVector_ImDrawListPtr Layers[2]; +}; +typedef enum { + ImGuiItemFlags_None = 0, + ImGuiItemFlags_NoTabStop = 1 << 0, + ImGuiItemFlags_ButtonRepeat = 1 << 1, + ImGuiItemFlags_Disabled = 1 << 2, + ImGuiItemFlags_NoNav = 1 << 3, + ImGuiItemFlags_NoNavDefaultFocus = 1 << 4, + ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, + ImGuiItemFlags_MixedValue = 1 << 6, + ImGuiItemFlags_ReadOnly = 1 << 7, + ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, + ImGuiItemFlags_Inputable = 1 << 10, +}ImGuiItemFlags_; +typedef enum { + ImGuiItemStatusFlags_None = 0, + ImGuiItemStatusFlags_HoveredRect = 1 << 0, + ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, + ImGuiItemStatusFlags_Edited = 1 << 2, + ImGuiItemStatusFlags_ToggledSelection = 1 << 3, + ImGuiItemStatusFlags_ToggledOpen = 1 << 4, + ImGuiItemStatusFlags_HasDeactivated = 1 << 5, + ImGuiItemStatusFlags_Deactivated = 1 << 6, + ImGuiItemStatusFlags_HoveredWindow = 1 << 7, + ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, + ImGuiItemStatusFlags_Visible = 1 << 9, +}ImGuiItemStatusFlags_; +typedef enum { + ImGuiInputTextFlags_Multiline = 1 << 26, + ImGuiInputTextFlags_NoMarkEdited = 1 << 27, + ImGuiInputTextFlags_MergedItem = 1 << 28, +}ImGuiInputTextFlagsPrivate_; +typedef enum { + ImGuiButtonFlags_PressedOnClick = 1 << 4, + ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, + ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, + ImGuiButtonFlags_PressedOnRelease = 1 << 7, + ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, + ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, + ImGuiButtonFlags_Repeat = 1 << 10, + ImGuiButtonFlags_FlattenChildren = 1 << 11, + ImGuiButtonFlags_AllowItemOverlap = 1 << 12, + ImGuiButtonFlags_DontClosePopups = 1 << 13, + ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, + ImGuiButtonFlags_NoKeyModifiers = 1 << 16, + ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, + ImGuiButtonFlags_NoNavFocus = 1 << 18, + ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, + ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, + ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, + ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, +}ImGuiButtonFlagsPrivate_; +typedef enum { + ImGuiComboFlags_CustomPreview = 1 << 20, +}ImGuiComboFlagsPrivate_; +typedef enum { + ImGuiSliderFlags_Vertical = 1 << 20, + ImGuiSliderFlags_ReadOnly = 1 << 21, +}ImGuiSliderFlagsPrivate_; +typedef enum { + ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, + ImGuiSelectableFlags_SelectOnNav = 1 << 21, + ImGuiSelectableFlags_SelectOnClick = 1 << 22, + ImGuiSelectableFlags_SelectOnRelease = 1 << 23, + ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, + ImGuiSelectableFlags_DrawHoveredWhenHeld = 1 << 25, + ImGuiSelectableFlags_SetNavIdOnHover = 1 << 26, + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 27, + ImGuiSelectableFlags_NoSetKeyOwner = 1 << 28, +}ImGuiSelectableFlagsPrivate_; +typedef enum { + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, +}ImGuiTreeNodeFlagsPrivate_; +typedef enum { + ImGuiSeparatorFlags_None = 0, + ImGuiSeparatorFlags_Horizontal = 1 << 0, + ImGuiSeparatorFlags_Vertical = 1 << 1, + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, +}ImGuiSeparatorFlags_; +typedef enum { + ImGuiTextFlags_None = 0, + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, +}ImGuiTextFlags_; +typedef enum { + ImGuiTooltipFlags_None = 0, + ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0, +}ImGuiTooltipFlags_; +typedef enum { + ImGuiLayoutType_Horizontal = 0, + ImGuiLayoutType_Vertical = 1 +}ImGuiLayoutType_; +typedef enum { + ImGuiLogType_None = 0, + ImGuiLogType_TTY, + ImGuiLogType_File, + ImGuiLogType_Buffer, + ImGuiLogType_Clipboard, +}ImGuiLogType; +typedef enum { + ImGuiAxis_None = -1, + ImGuiAxis_X = 0, + ImGuiAxis_Y = 1 +}ImGuiAxis; +typedef enum { + ImGuiPlotType_Lines, + ImGuiPlotType_Histogram, +}ImGuiPlotType; +typedef enum { + ImGuiPopupPositionPolicy_Default, + ImGuiPopupPositionPolicy_ComboBox, + ImGuiPopupPositionPolicy_Tooltip, +}ImGuiPopupPositionPolicy; +typedef struct ImGuiDataTypeTempStorage ImGuiDataTypeTempStorage; +struct ImGuiDataTypeTempStorage +{ + ImU8 Data[8]; +}; +struct ImGuiDataTypeInfo +{ + size_t Size; + const char* Name; + const char* PrintFmt; + const char* ScanFmt; +}; +typedef enum { + ImGuiDataType_String = ImGuiDataType_COUNT + 1, + ImGuiDataType_Pointer, + ImGuiDataType_ID, +}ImGuiDataTypePrivate_; +struct ImGuiColorMod +{ + ImGuiCol Col; + ImVec4 BackupValue; +}; +struct ImGuiStyleMod +{ + ImGuiStyleVar VarIdx; + union { int BackupInt[2]; float BackupFloat[2]; }; +}; +typedef struct ImGuiComboPreviewData ImGuiComboPreviewData; +struct ImGuiComboPreviewData +{ + ImRect PreviewRect; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec2 BackupCursorPosPrevLine; + float BackupPrevLineTextBaseOffset; + ImGuiLayoutType BackupLayout; +}; +struct ImGuiGroupData +{ + ImGuiID WindowID; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec1 BackupIndent; + ImVec1 BackupGroupOffset; + ImVec2 BackupCurrLineSize; + float BackupCurrLineTextBaseOffset; + ImGuiID BackupActiveIdIsAlive; + bool BackupActiveIdPreviousFrameIsAlive; + bool BackupHoveredIdIsAlive; + bool EmitItem; +}; +struct ImGuiMenuColumns +{ + ImU32 TotalWidth; + ImU32 NextTotalWidth; + ImU16 Spacing; + ImU16 OffsetIcon; + ImU16 OffsetLabel; + ImU16 OffsetShortcut; + ImU16 OffsetMark; + ImU16 Widths[4]; +}; +struct ImGuiInputTextState +{ + ImGuiID ID; + int CurLenW, CurLenA; + ImVector_ImWchar TextW; + ImVector_char TextA; + ImVector_char InitialTextA; + bool TextAIsValid; + int BufCapacityA; + float ScrollX; + STB_TexteditState Stb; + float CursorAnim; + bool CursorFollow; + bool SelectedAllMouseLock; + bool Edited; + ImGuiInputTextFlags Flags; +}; +struct ImGuiPopupData +{ + ImGuiID PopupId; + ImGuiWindow* Window; + ImGuiWindow* BackupNavWindow; + int ParentNavLayer; + int OpenFrameCount; + ImGuiID OpenParentId; + ImVec2 OpenPopupPos; + ImVec2 OpenMousePos; +}; +typedef enum { + ImGuiNextWindowDataFlags_None = 0, + ImGuiNextWindowDataFlags_HasPos = 1 << 0, + ImGuiNextWindowDataFlags_HasSize = 1 << 1, + ImGuiNextWindowDataFlags_HasContentSize = 1 << 2, + ImGuiNextWindowDataFlags_HasCollapsed = 1 << 3, + ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, + ImGuiNextWindowDataFlags_HasFocus = 1 << 5, + ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, + ImGuiNextWindowDataFlags_HasScroll = 1 << 7, + ImGuiNextWindowDataFlags_HasViewport = 1 << 8, + ImGuiNextWindowDataFlags_HasDock = 1 << 9, + ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10, +}ImGuiNextWindowDataFlags_; +struct ImGuiNextWindowData +{ + ImGuiNextWindowDataFlags Flags; + ImGuiCond PosCond; + ImGuiCond SizeCond; + ImGuiCond CollapsedCond; + ImGuiCond DockCond; + ImVec2 PosVal; + ImVec2 PosPivotVal; + ImVec2 SizeVal; + ImVec2 ContentSizeVal; + ImVec2 ScrollVal; + bool PosUndock; + bool CollapsedVal; + ImRect SizeConstraintRect; + ImGuiSizeCallback SizeCallback; + void* SizeCallbackUserData; + float BgAlphaVal; + ImGuiID ViewportId; + ImGuiID DockId; + ImGuiWindowClass WindowClass; + ImVec2 MenuBarOffsetMinVal; +}; +typedef enum { + ImGuiNextItemDataFlags_None = 0, + ImGuiNextItemDataFlags_HasWidth = 1 << 0, + ImGuiNextItemDataFlags_HasOpen = 1 << 1, +}ImGuiNextItemDataFlags_; +struct ImGuiNextItemData +{ + ImGuiNextItemDataFlags Flags; + float Width; + ImGuiID FocusScopeId; + ImGuiCond OpenCond; + bool OpenVal; +}; +struct ImGuiLastItemData +{ + ImGuiID ID; + ImGuiItemFlags InFlags; + ImGuiItemStatusFlags StatusFlags; + ImRect Rect; + ImRect NavRect; + ImRect DisplayRect; +}; +struct ImGuiStackSizes +{ + short SizeOfIDStack; + short SizeOfColorStack; + short SizeOfStyleVarStack; + short SizeOfFontStack; + short SizeOfFocusScopeStack; + short SizeOfGroupStack; + short SizeOfItemFlagsStack; + short SizeOfBeginPopupStack; + short SizeOfDisabledStack; +}; +typedef struct ImGuiWindowStackData ImGuiWindowStackData; +struct ImGuiWindowStackData +{ + ImGuiWindow* Window; + ImGuiLastItemData ParentLastItemDataBackup; + ImGuiStackSizes StackSizesOnBegin; +}; +typedef struct ImGuiShrinkWidthItem ImGuiShrinkWidthItem; +struct ImGuiShrinkWidthItem +{ + int Index; + float Width; + float InitialWidth; +}; +typedef struct ImGuiPtrOrIndex ImGuiPtrOrIndex; +struct ImGuiPtrOrIndex +{ + void* Ptr; + int Index; +}; +typedef struct ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN {ImU32 Storage[(ImGuiKey_NamedKey_COUNT+31)>>5];} ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN; + +typedef ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN ImBitArrayForNamedKeys; +typedef enum { + ImGuiInputEventType_None = 0, + ImGuiInputEventType_MousePos, + ImGuiInputEventType_MouseWheel, + ImGuiInputEventType_MouseButton, + ImGuiInputEventType_MouseViewport, + ImGuiInputEventType_Key, + ImGuiInputEventType_Text, + ImGuiInputEventType_Focus, + ImGuiInputEventType_COUNT +}ImGuiInputEventType; +typedef enum { + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, + ImGuiInputSource_Keyboard, + ImGuiInputSource_Gamepad, + ImGuiInputSource_Clipboard, + ImGuiInputSource_Nav, + ImGuiInputSource_COUNT +}ImGuiInputSource; +typedef struct ImGuiInputEventMousePos ImGuiInputEventMousePos; +struct ImGuiInputEventMousePos +{ float PosX, PosY; +}; +typedef struct ImGuiInputEventMouseWheel ImGuiInputEventMouseWheel; +struct ImGuiInputEventMouseWheel +{ float WheelX, WheelY; +}; +typedef struct ImGuiInputEventMouseButton ImGuiInputEventMouseButton; +struct ImGuiInputEventMouseButton +{ int Button; bool Down; +}; +typedef struct ImGuiInputEventMouseViewport ImGuiInputEventMouseViewport; +struct ImGuiInputEventMouseViewport +{ ImGuiID HoveredViewportID; +}; +typedef struct ImGuiInputEventKey ImGuiInputEventKey; +struct ImGuiInputEventKey +{ ImGuiKey Key; bool Down; float AnalogValue; +}; +typedef struct ImGuiInputEventText ImGuiInputEventText; +struct ImGuiInputEventText +{ unsigned int Char; +}; +typedef struct ImGuiInputEventAppFocused ImGuiInputEventAppFocused; +struct ImGuiInputEventAppFocused +{ bool Focused; +}; +typedef struct ImGuiInputEvent ImGuiInputEvent; +struct ImGuiInputEvent +{ + ImGuiInputEventType Type; + ImGuiInputSource Source; + union + { + ImGuiInputEventMousePos MousePos; + ImGuiInputEventMouseWheel MouseWheel; + ImGuiInputEventMouseButton MouseButton; + ImGuiInputEventMouseViewport MouseViewport; + ImGuiInputEventKey Key; + ImGuiInputEventText Text; + ImGuiInputEventAppFocused AppFocused; + }; + bool AddedByTestEngine; +}; +typedef ImS16 ImGuiKeyRoutingIndex; +typedef struct ImGuiKeyRoutingData ImGuiKeyRoutingData; +struct ImGuiKeyRoutingData +{ + ImGuiKeyRoutingIndex NextEntryIndex; + ImU16 Mods; + ImU8 RoutingNextScore; + ImGuiID RoutingCurr; + ImGuiID RoutingNext; +}; +typedef struct ImGuiKeyRoutingTable ImGuiKeyRoutingTable; +typedef struct ImVector_ImGuiKeyRoutingData {int Size;int Capacity;ImGuiKeyRoutingData* Data;} ImVector_ImGuiKeyRoutingData; + +struct ImGuiKeyRoutingTable +{ + ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; + ImVector_ImGuiKeyRoutingData Entries; + ImVector_ImGuiKeyRoutingData EntriesNext; +}; +typedef struct ImGuiKeyOwnerData ImGuiKeyOwnerData; +struct ImGuiKeyOwnerData +{ + ImGuiID OwnerCurr; + ImGuiID OwnerNext; + bool LockThisFrame; + bool LockUntilRelease; +}; +typedef enum { + ImGuiInputFlags_None = 0, + ImGuiInputFlags_Repeat = 1 << 0, + ImGuiInputFlags_RepeatRateDefault = 1 << 1, + ImGuiInputFlags_RepeatRateNavMove = 1 << 2, + ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, + ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, + ImGuiInputFlags_CondHovered = 1 << 4, + ImGuiInputFlags_CondActive = 1 << 5, + ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_LockThisFrame = 1 << 6, + ImGuiInputFlags_LockUntilRelease = 1 << 7, + ImGuiInputFlags_RouteFocused = 1 << 8, + ImGuiInputFlags_RouteGlobalLow = 1 << 9, + ImGuiInputFlags_RouteGlobal = 1 << 10, + ImGuiInputFlags_RouteGlobalHigh = 1 << 11, + ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, + ImGuiInputFlags_RouteAlways = 1 << 12, + ImGuiInputFlags_RouteUnlessBgFocused= 1 << 13, + ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, + ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, + ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, + ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, + ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, +}ImGuiInputFlags_; +typedef struct ImGuiListClipperRange ImGuiListClipperRange; +struct ImGuiListClipperRange +{ + int Min; + int Max; + bool PosToIndexConvert; + ImS8 PosToIndexOffsetMin; + ImS8 PosToIndexOffsetMax; +}; +typedef struct ImGuiListClipperData ImGuiListClipperData; +typedef struct ImVector_ImGuiListClipperRange {int Size;int Capacity;ImGuiListClipperRange* Data;} ImVector_ImGuiListClipperRange; + +struct ImGuiListClipperData +{ + ImGuiListClipper* ListClipper; + float LossynessOffset; + int StepNo; + int ItemsFrozen; + ImVector_ImGuiListClipperRange Ranges; +}; +typedef enum { + ImGuiActivateFlags_None = 0, + ImGuiActivateFlags_PreferInput = 1 << 0, + ImGuiActivateFlags_PreferTweak = 1 << 1, + ImGuiActivateFlags_TryToPreserveState = 1 << 2, +}ImGuiActivateFlags_; +typedef enum { + ImGuiScrollFlags_None = 0, + ImGuiScrollFlags_KeepVisibleEdgeX = 1 << 0, + ImGuiScrollFlags_KeepVisibleEdgeY = 1 << 1, + ImGuiScrollFlags_KeepVisibleCenterX = 1 << 2, + ImGuiScrollFlags_KeepVisibleCenterY = 1 << 3, + ImGuiScrollFlags_AlwaysCenterX = 1 << 4, + ImGuiScrollFlags_AlwaysCenterY = 1 << 5, + ImGuiScrollFlags_NoScrollParent = 1 << 6, + ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, + ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, +}ImGuiScrollFlags_; +typedef enum { + ImGuiNavHighlightFlags_None = 0, + ImGuiNavHighlightFlags_TypeDefault = 1 << 0, + ImGuiNavHighlightFlags_TypeThin = 1 << 1, + ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, + ImGuiNavHighlightFlags_NoRounding = 1 << 3, +}ImGuiNavHighlightFlags_; +typedef enum { + ImGuiNavMoveFlags_None = 0, + ImGuiNavMoveFlags_LoopX = 1 << 0, + ImGuiNavMoveFlags_LoopY = 1 << 1, + ImGuiNavMoveFlags_WrapX = 1 << 2, + ImGuiNavMoveFlags_WrapY = 1 << 3, + ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, + ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, + ImGuiNavMoveFlags_ScrollToEdgeY = 1 << 6, + ImGuiNavMoveFlags_Forwarded = 1 << 7, + ImGuiNavMoveFlags_DebugNoResult = 1 << 8, + ImGuiNavMoveFlags_FocusApi = 1 << 9, + ImGuiNavMoveFlags_Tabbing = 1 << 10, + ImGuiNavMoveFlags_Activate = 1 << 11, + ImGuiNavMoveFlags_DontSetNavHighlight = 1 << 12, +}ImGuiNavMoveFlags_; +typedef enum { + ImGuiNavLayer_Main = 0, + ImGuiNavLayer_Menu = 1, + ImGuiNavLayer_COUNT +}ImGuiNavLayer; +struct ImGuiNavItemData +{ + ImGuiWindow* Window; + ImGuiID ID; + ImGuiID FocusScopeId; + ImRect RectRel; + ImGuiItemFlags InFlags; + float DistBox; + float DistCenter; + float DistAxial; +}; +typedef enum { + ImGuiOldColumnFlags_None = 0, + ImGuiOldColumnFlags_NoBorder = 1 << 0, + ImGuiOldColumnFlags_NoResize = 1 << 1, + ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, + ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, + ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, +}ImGuiOldColumnFlags_; +struct ImGuiOldColumnData +{ + float OffsetNorm; + float OffsetNormBeforeResize; + ImGuiOldColumnFlags Flags; + ImRect ClipRect; +}; +typedef struct ImVector_ImGuiOldColumnData {int Size;int Capacity;ImGuiOldColumnData* Data;} ImVector_ImGuiOldColumnData; + +struct ImGuiOldColumns +{ + ImGuiID ID; + ImGuiOldColumnFlags Flags; + bool IsFirstFrame; + bool IsBeingResized; + int Current; + int Count; + float OffMinX, OffMaxX; + float LineMinY, LineMaxY; + float HostCursorPosY; + float HostCursorMaxPosX; + ImRect HostInitialClipRect; + ImRect HostBackupClipRect; + ImRect HostBackupParentWorkRect; + ImVector_ImGuiOldColumnData Columns; + ImDrawListSplitter Splitter; +}; +typedef enum { + ImGuiDockNodeFlags_DockSpace = 1 << 10, + ImGuiDockNodeFlags_CentralNode = 1 << 11, + ImGuiDockNodeFlags_NoTabBar = 1 << 12, + ImGuiDockNodeFlags_HiddenTabBar = 1 << 13, + ImGuiDockNodeFlags_NoWindowMenuButton = 1 << 14, + ImGuiDockNodeFlags_NoCloseButton = 1 << 15, + ImGuiDockNodeFlags_NoDocking = 1 << 16, + ImGuiDockNodeFlags_NoDockingSplitMe = 1 << 17, + ImGuiDockNodeFlags_NoDockingSplitOther = 1 << 18, + ImGuiDockNodeFlags_NoDockingOverMe = 1 << 19, + ImGuiDockNodeFlags_NoDockingOverOther = 1 << 20, + ImGuiDockNodeFlags_NoDockingOverEmpty = 1 << 21, + ImGuiDockNodeFlags_NoResizeX = 1 << 22, + ImGuiDockNodeFlags_NoResizeY = 1 << 23, + ImGuiDockNodeFlags_SharedFlagsInheritMask_ = ~0, + ImGuiDockNodeFlags_NoResizeFlagsMask_ = ImGuiDockNodeFlags_NoResize | ImGuiDockNodeFlags_NoResizeX | ImGuiDockNodeFlags_NoResizeY, + ImGuiDockNodeFlags_LocalFlagsMask_ = ImGuiDockNodeFlags_NoSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking, + ImGuiDockNodeFlags_LocalFlagsTransferMask_ = ImGuiDockNodeFlags_LocalFlagsMask_ & ~ImGuiDockNodeFlags_DockSpace, + ImGuiDockNodeFlags_SavedFlagsMask_ = ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking +}ImGuiDockNodeFlagsPrivate_; +typedef enum { + ImGuiDataAuthority_Auto, + ImGuiDataAuthority_DockNode, + ImGuiDataAuthority_Window, +}ImGuiDataAuthority_; +typedef enum { + ImGuiDockNodeState_Unknown, + ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow, + ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing, + ImGuiDockNodeState_HostWindowVisible, +}ImGuiDockNodeState; +typedef struct ImVector_ImGuiWindowPtr {int Size;int Capacity;ImGuiWindow** Data;} ImVector_ImGuiWindowPtr; + +struct ImGuiDockNode +{ + ImGuiID ID; + ImGuiDockNodeFlags SharedFlags; + ImGuiDockNodeFlags LocalFlags; + ImGuiDockNodeFlags LocalFlagsInWindows; + ImGuiDockNodeFlags MergedFlags; + ImGuiDockNodeState State; + ImGuiDockNode* ParentNode; + ImGuiDockNode* ChildNodes[2]; + ImVector_ImGuiWindowPtr Windows; + ImGuiTabBar* TabBar; + ImVec2 Pos; + ImVec2 Size; + ImVec2 SizeRef; + ImGuiAxis SplitAxis; + ImGuiWindowClass WindowClass; + ImU32 LastBgColor; + ImGuiWindow* HostWindow; + ImGuiWindow* VisibleWindow; + ImGuiDockNode* CentralNode; + ImGuiDockNode* OnlyNodeWithWindows; + int CountNodeWithWindows; + int LastFrameAlive; + int LastFrameActive; + int LastFrameFocused; + ImGuiID LastFocusedNodeId; + ImGuiID SelectedTabId; + ImGuiID WantCloseTabId; + ImGuiDataAuthority AuthorityForPos :3; + ImGuiDataAuthority AuthorityForSize :3; + ImGuiDataAuthority AuthorityForViewport :3; + bool IsVisible :1; + bool IsFocused :1; + bool IsBgDrawnThisFrame :1; + bool HasCloseButton :1; + bool HasWindowMenuButton :1; + bool HasCentralNodeChild :1; + bool WantCloseAll :1; + bool WantLockSizeOnce :1; + bool WantMouseMove :1; + bool WantHiddenTabBarUpdate :1; + bool WantHiddenTabBarToggle :1; +}; +typedef enum { + ImGuiWindowDockStyleCol_Text, + ImGuiWindowDockStyleCol_Tab, + ImGuiWindowDockStyleCol_TabHovered, + ImGuiWindowDockStyleCol_TabActive, + ImGuiWindowDockStyleCol_TabUnfocused, + ImGuiWindowDockStyleCol_TabUnfocusedActive, + ImGuiWindowDockStyleCol_COUNT +}ImGuiWindowDockStyleCol; +typedef struct ImGuiWindowDockStyle ImGuiWindowDockStyle; +struct ImGuiWindowDockStyle +{ + ImU32 Colors[ImGuiWindowDockStyleCol_COUNT]; +}; +typedef struct ImVector_ImGuiDockRequest {int Size;int Capacity;ImGuiDockRequest* Data;} ImVector_ImGuiDockRequest; + +typedef struct ImVector_ImGuiDockNodeSettings {int Size;int Capacity;ImGuiDockNodeSettings* Data;} ImVector_ImGuiDockNodeSettings; + +struct ImGuiDockContext +{ + ImGuiStorage Nodes; + ImVector_ImGuiDockRequest Requests; + ImVector_ImGuiDockNodeSettings NodesSettings; + bool WantFullRebuild; +}; +typedef struct ImGuiViewportP ImGuiViewportP; +struct ImGuiViewportP +{ + ImGuiViewport _ImGuiViewport; + int Idx; + int LastFrameActive; + int LastFrontMostStampCount; + ImGuiID LastNameHash; + ImVec2 LastPos; + float Alpha; + float LastAlpha; + short PlatformMonitor; + ImGuiWindow* Window; + int DrawListsLastFrame[2]; + ImDrawList* DrawLists[2]; + ImDrawData DrawDataP; + ImDrawDataBuilder DrawDataBuilder; + ImVec2 LastPlatformPos; + ImVec2 LastPlatformSize; + ImVec2 LastRendererSize; + ImVec2 WorkOffsetMin; + ImVec2 WorkOffsetMax; + ImVec2 BuildWorkOffsetMin; + ImVec2 BuildWorkOffsetMax; +}; +struct ImGuiWindowSettings +{ + ImGuiID ID; + ImVec2ih Pos; + ImVec2ih Size; + ImVec2ih ViewportPos; + ImGuiID ViewportId; + ImGuiID DockId; + ImGuiID ClassId; + short DockOrder; + bool Collapsed; + bool WantApply; +}; +struct ImGuiSettingsHandler +{ + const char* TypeName; + ImGuiID TypeHash; + void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); + void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); + void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); + void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); + void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); + void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); + void* UserData; +}; +typedef enum { +ImGuiLocKey_TableSizeOne=0, +ImGuiLocKey_TableSizeAllFit=1, +ImGuiLocKey_TableSizeAllDefault=2, +ImGuiLocKey_TableResetOrder=3, +ImGuiLocKey_WindowingMainMenuBar=4, +ImGuiLocKey_WindowingPopup=5, +ImGuiLocKey_WindowingUntitled=6, +ImGuiLocKey_DockingHideTabBar=7, +ImGuiLocKey_COUNT=8, +}ImGuiLocKey; +struct ImGuiLocEntry +{ + ImGuiLocKey Key; + const char* Text; +}; +typedef enum { + ImGuiDebugLogFlags_None = 0, + ImGuiDebugLogFlags_EventActiveId = 1 << 0, + ImGuiDebugLogFlags_EventFocus = 1 << 1, + ImGuiDebugLogFlags_EventPopup = 1 << 2, + ImGuiDebugLogFlags_EventNav = 1 << 3, + ImGuiDebugLogFlags_EventClipper = 1 << 4, + ImGuiDebugLogFlags_EventIO = 1 << 5, + ImGuiDebugLogFlags_EventDocking = 1 << 6, + ImGuiDebugLogFlags_EventViewport = 1 << 7, + ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport, + ImGuiDebugLogFlags_OutputToTTY = 1 << 10, +}ImGuiDebugLogFlags_; +struct ImGuiMetricsConfig +{ + bool ShowDebugLog; + bool ShowStackTool; + bool ShowWindowsRects; + bool ShowWindowsBeginOrder; + bool ShowTablesRects; + bool ShowDrawCmdMesh; + bool ShowDrawCmdBoundingBoxes; + bool ShowDockingNodes; + int ShowWindowsRectsType; + int ShowTablesRectsType; +}; +typedef struct ImGuiStackLevelInfo ImGuiStackLevelInfo; +struct ImGuiStackLevelInfo +{ + ImGuiID ID; + ImS8 QueryFrameCount; + bool QuerySuccess; + ImGuiDataType DataType : 8; + char Desc[57]; +}; +typedef struct ImGuiStackTool ImGuiStackTool; +typedef struct ImVector_ImGuiStackLevelInfo {int Size;int Capacity;ImGuiStackLevelInfo* Data;} ImVector_ImGuiStackLevelInfo; + +struct ImGuiStackTool +{ + int LastActiveFrame; + int StackLevel; + ImGuiID QueryId; + ImVector_ImGuiStackLevelInfo Results; + bool CopyToClipboardOnCtrlC; + float CopyToClipboardLastTime; +}; +typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); +typedef enum { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }ImGuiContextHookType; +struct ImGuiContextHook +{ + ImGuiID HookId; + ImGuiContextHookType Type; + ImGuiID Owner; + ImGuiContextHookCallback Callback; + void* UserData; +}; +typedef struct ImVector_ImGuiInputEvent {int Size;int Capacity;ImGuiInputEvent* Data;} ImVector_ImGuiInputEvent; + +typedef struct ImVector_ImGuiWindowStackData {int Size;int Capacity;ImGuiWindowStackData* Data;} ImVector_ImGuiWindowStackData; + +typedef struct ImVector_ImGuiColorMod {int Size;int Capacity;ImGuiColorMod* Data;} ImVector_ImGuiColorMod; + +typedef struct ImVector_ImGuiStyleMod {int Size;int Capacity;ImGuiStyleMod* Data;} ImVector_ImGuiStyleMod; + +typedef struct ImVector_ImGuiID {int Size;int Capacity;ImGuiID* Data;} ImVector_ImGuiID; + +typedef struct ImVector_ImGuiItemFlags {int Size;int Capacity;ImGuiItemFlags* Data;} ImVector_ImGuiItemFlags; + +typedef struct ImVector_ImGuiGroupData {int Size;int Capacity;ImGuiGroupData* Data;} ImVector_ImGuiGroupData; + +typedef struct ImVector_ImGuiPopupData {int Size;int Capacity;ImGuiPopupData* Data;} ImVector_ImGuiPopupData; + +typedef struct ImVector_ImGuiViewportPPtr {int Size;int Capacity;ImGuiViewportP** Data;} ImVector_ImGuiViewportPPtr; + +typedef struct ImVector_unsigned_char {int Size;int Capacity;unsigned char* Data;} ImVector_unsigned_char; + +typedef struct ImVector_ImGuiListClipperData {int Size;int Capacity;ImGuiListClipperData* Data;} ImVector_ImGuiListClipperData; + +typedef struct ImVector_ImGuiTableTempData {int Size;int Capacity;ImGuiTableTempData* Data;} ImVector_ImGuiTableTempData; + +typedef struct ImVector_ImGuiTable {int Size;int Capacity;ImGuiTable* Data;} ImVector_ImGuiTable; + +typedef struct ImPool_ImGuiTable {ImVector_ImGuiTable Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImGuiTable; + +typedef struct ImVector_ImGuiTabBar {int Size;int Capacity;ImGuiTabBar* Data;} ImVector_ImGuiTabBar; + +typedef struct ImPool_ImGuiTabBar {ImVector_ImGuiTabBar Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImGuiTabBar; + +typedef struct ImVector_ImGuiPtrOrIndex {int Size;int Capacity;ImGuiPtrOrIndex* Data;} ImVector_ImGuiPtrOrIndex; + +typedef struct ImVector_ImGuiShrinkWidthItem {int Size;int Capacity;ImGuiShrinkWidthItem* Data;} ImVector_ImGuiShrinkWidthItem; + +typedef struct ImVector_ImGuiSettingsHandler {int Size;int Capacity;ImGuiSettingsHandler* Data;} ImVector_ImGuiSettingsHandler; + +typedef struct ImChunkStream_ImGuiWindowSettings {ImVector_char Buf;} ImChunkStream_ImGuiWindowSettings; + +typedef struct ImChunkStream_ImGuiTableSettings {ImVector_char Buf;} ImChunkStream_ImGuiTableSettings; + +typedef struct ImVector_ImGuiContextHook {int Size;int Capacity;ImGuiContextHook* Data;} ImVector_ImGuiContextHook; + +struct ImGuiContext +{ + bool Initialized; + bool FontAtlasOwnedByContext; + ImGuiIO IO; + ImGuiPlatformIO PlatformIO; + ImVector_ImGuiInputEvent InputEventsQueue; + ImVector_ImGuiInputEvent InputEventsTrail; + ImGuiStyle Style; + ImGuiConfigFlags ConfigFlagsCurrFrame; + ImGuiConfigFlags ConfigFlagsLastFrame; + ImFont* Font; + float FontSize; + float FontBaseSize; + ImDrawListSharedData DrawListSharedData; + double Time; + int FrameCount; + int FrameCountEnded; + int FrameCountPlatformEnded; + int FrameCountRendered; + bool WithinFrameScope; + bool WithinFrameScopeWithImplicitWindow; + bool WithinEndChild; + bool GcCompactAll; + bool TestEngineHookItems; + void* TestEngine; + ImVector_ImGuiWindowPtr Windows; + ImVector_ImGuiWindowPtr WindowsFocusOrder; + ImVector_ImGuiWindowPtr WindowsTempSortBuffer; + ImVector_ImGuiWindowStackData CurrentWindowStack; + ImGuiStorage WindowsById; + int WindowsActiveCount; + ImVec2 WindowsHoverPadding; + ImGuiWindow* CurrentWindow; + ImGuiWindow* HoveredWindow; + ImGuiWindow* HoveredWindowUnderMovingWindow; + ImGuiWindow* MovingWindow; + ImGuiWindow* WheelingWindow; + ImVec2 WheelingWindowRefMousePos; + float WheelingWindowReleaseTimer; + ImGuiID DebugHookIdInfo; + ImGuiID HoveredId; + ImGuiID HoveredIdPreviousFrame; + bool HoveredIdAllowOverlap; + bool HoveredIdDisabled; + float HoveredIdTimer; + float HoveredIdNotActiveTimer; + ImGuiID ActiveId; + ImGuiID ActiveIdIsAlive; + float ActiveIdTimer; + bool ActiveIdIsJustActivated; + bool ActiveIdAllowOverlap; + bool ActiveIdNoClearOnFocusLoss; + bool ActiveIdHasBeenPressedBefore; + bool ActiveIdHasBeenEditedBefore; + bool ActiveIdHasBeenEditedThisFrame; + ImVec2 ActiveIdClickOffset; + ImGuiWindow* ActiveIdWindow; + ImGuiInputSource ActiveIdSource; + int ActiveIdMouseButton; + ImGuiID ActiveIdPreviousFrame; + bool ActiveIdPreviousFrameIsAlive; + bool ActiveIdPreviousFrameHasBeenEditedBefore; + ImGuiWindow* ActiveIdPreviousFrameWindow; + ImGuiID LastActiveId; + float LastActiveIdTimer; + ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; + ImGuiKeyRoutingTable KeysRoutingTable; + ImU32 ActiveIdUsingNavDirMask; + bool ActiveIdUsingAllKeyboardKeys; + ImU32 ActiveIdUsingNavInputMask; + ImGuiID CurrentFocusScopeId; + ImGuiItemFlags CurrentItemFlags; + ImGuiID DebugLocateId; + ImGuiNextItemData NextItemData; + ImGuiLastItemData LastItemData; + ImGuiNextWindowData NextWindowData; + ImVector_ImGuiColorMod ColorStack; + ImVector_ImGuiStyleMod StyleVarStack; + ImVector_ImFontPtr FontStack; + ImVector_ImGuiID FocusScopeStack; + ImVector_ImGuiItemFlags ItemFlagsStack; + ImVector_ImGuiGroupData GroupStack; + ImVector_ImGuiPopupData OpenPopupStack; + ImVector_ImGuiPopupData BeginPopupStack; + int BeginMenuCount; + ImVector_ImGuiViewportPPtr Viewports; + float CurrentDpiScale; + ImGuiViewportP* CurrentViewport; + ImGuiViewportP* MouseViewport; + ImGuiViewportP* MouseLastHoveredViewport; + ImGuiID PlatformLastFocusedViewportId; + ImGuiPlatformMonitor FallbackMonitor; + int ViewportFrontMostStampCount; + ImGuiWindow* NavWindow; + ImGuiID NavId; + ImGuiID NavFocusScopeId; + ImGuiID NavActivateId; + ImGuiID NavActivateDownId; + ImGuiID NavActivatePressedId; + ImGuiID NavActivateInputId; + ImGuiActivateFlags NavActivateFlags; + ImGuiID NavJustMovedToId; + ImGuiID NavJustMovedToFocusScopeId; + ImGuiKeyChord NavJustMovedToKeyMods; + ImGuiID NavNextActivateId; + ImGuiActivateFlags NavNextActivateFlags; + ImGuiInputSource NavInputSource; + ImGuiNavLayer NavLayer; + bool NavIdIsAlive; + bool NavMousePosDirty; + bool NavDisableHighlight; + bool NavDisableMouseHover; + bool NavAnyRequest; + bool NavInitRequest; + bool NavInitRequestFromMove; + ImGuiID NavInitResultId; + ImRect NavInitResultRectRel; + bool NavMoveSubmitted; + bool NavMoveScoringItems; + bool NavMoveForwardToNextFrame; + ImGuiNavMoveFlags NavMoveFlags; + ImGuiScrollFlags NavMoveScrollFlags; + ImGuiKeyChord NavMoveKeyMods; + ImGuiDir NavMoveDir; + ImGuiDir NavMoveDirForDebug; + ImGuiDir NavMoveClipDir; + ImRect NavScoringRect; + ImRect NavScoringNoClipRect; + int NavScoringDebugCount; + int NavTabbingDir; + int NavTabbingCounter; + ImGuiNavItemData NavMoveResultLocal; + ImGuiNavItemData NavMoveResultLocalVisible; + ImGuiNavItemData NavMoveResultOther; + ImGuiNavItemData NavTabbingResultFirst; + ImGuiKeyChord ConfigNavWindowingKeyNext; + ImGuiKeyChord ConfigNavWindowingKeyPrev; + ImGuiWindow* NavWindowingTarget; + ImGuiWindow* NavWindowingTargetAnim; + ImGuiWindow* NavWindowingListWindow; + float NavWindowingTimer; + float NavWindowingHighlightAlpha; + bool NavWindowingToggleLayer; + ImVec2 NavWindowingAccumDeltaPos; + ImVec2 NavWindowingAccumDeltaSize; + float DimBgRatio; + ImGuiMouseCursor MouseCursor; + bool DragDropActive; + bool DragDropWithinSource; + bool DragDropWithinTarget; + ImGuiDragDropFlags DragDropSourceFlags; + int DragDropSourceFrameCount; + int DragDropMouseButton; + ImGuiPayload DragDropPayload; + ImRect DragDropTargetRect; + ImGuiID DragDropTargetId; + ImGuiDragDropFlags DragDropAcceptFlags; + float DragDropAcceptIdCurrRectSurface; + ImGuiID DragDropAcceptIdCurr; + ImGuiID DragDropAcceptIdPrev; + int DragDropAcceptFrameCount; + ImGuiID DragDropHoldJustPressedId; + ImVector_unsigned_char DragDropPayloadBufHeap; + unsigned char DragDropPayloadBufLocal[16]; + int ClipperTempDataStacked; + ImVector_ImGuiListClipperData ClipperTempData; + ImGuiTable* CurrentTable; + int TablesTempDataStacked; + ImVector_ImGuiTableTempData TablesTempData; + ImPool_ImGuiTable Tables; + ImVector_float TablesLastTimeActive; + ImVector_ImDrawChannel DrawChannelsTempMergeBuffer; + ImGuiTabBar* CurrentTabBar; + ImPool_ImGuiTabBar TabBars; + ImVector_ImGuiPtrOrIndex CurrentTabBarStack; + ImVector_ImGuiShrinkWidthItem ShrinkWidthBuffer; + ImGuiID HoverDelayId; + ImGuiID HoverDelayIdPreviousFrame; + float HoverDelayTimer; + float HoverDelayClearTimer; + ImVec2 MouseLastValidPos; + ImGuiInputTextState InputTextState; + ImFont InputTextPasswordFont; + ImGuiID TempInputId; + ImGuiColorEditFlags ColorEditOptions; + float ColorEditLastHue; + float ColorEditLastSat; + ImU32 ColorEditLastColor; + ImVec4 ColorPickerRef; + ImGuiComboPreviewData ComboPreviewData; + float SliderGrabClickOffset; + float SliderCurrentAccum; + bool SliderCurrentAccumDirty; + bool DragCurrentAccumDirty; + float DragCurrentAccum; + float DragSpeedDefaultRatio; + float ScrollbarClickDeltaToGrabCenter; + float DisabledAlphaBackup; + short DisabledStackSize; + short TooltipOverrideCount; + ImVector_char ClipboardHandlerData; + ImVector_ImGuiID MenusIdSubmittedThisFrame; + ImGuiPlatformImeData PlatformImeData; + ImGuiPlatformImeData PlatformImeDataPrev; + ImGuiID PlatformImeViewport; + char PlatformLocaleDecimalPoint; + ImGuiDockContext DockContext; + bool SettingsLoaded; + float SettingsDirtyTimer; + ImGuiTextBuffer SettingsIniData; + ImVector_ImGuiSettingsHandler SettingsHandlers; + ImChunkStream_ImGuiWindowSettings SettingsWindows; + ImChunkStream_ImGuiTableSettings SettingsTables; + ImVector_ImGuiContextHook Hooks; + ImGuiID HookIdNext; + const char* LocalizationTable[ImGuiLocKey_COUNT]; + bool LogEnabled; + ImGuiLogType LogType; + ImFileHandle LogFile; + ImGuiTextBuffer LogBuffer; + const char* LogNextPrefix; + const char* LogNextSuffix; + float LogLinePosY; + bool LogLineFirstItem; + int LogDepthRef; + int LogDepthToExpand; + int LogDepthToExpandDefault; + ImGuiDebugLogFlags DebugLogFlags; + ImGuiTextBuffer DebugLogBuf; + ImGuiTextIndex DebugLogIndex; + ImU8 DebugLocateFrames; + bool DebugItemPickerActive; + ImU8 DebugItemPickerMouseButton; + ImGuiID DebugItemPickerBreakId; + ImGuiMetricsConfig DebugMetricsConfig; + ImGuiStackTool DebugStackTool; + ImGuiDockNode* DebugHoveredDockNode; + float FramerateSecPerFrame[60]; + int FramerateSecPerFrameIdx; + int FramerateSecPerFrameCount; + float FramerateSecPerFrameAccum; + int WantCaptureMouseNextFrame; + int WantCaptureKeyboardNextFrame; + int WantTextInputNextFrame; + ImVector_char TempBuffer; +}; +struct ImGuiWindowTempData +{ + ImVec2 CursorPos; + ImVec2 CursorPosPrevLine; + ImVec2 CursorStartPos; + ImVec2 CursorMaxPos; + ImVec2 IdealMaxPos; + ImVec2 CurrLineSize; + ImVec2 PrevLineSize; + float CurrLineTextBaseOffset; + float PrevLineTextBaseOffset; + bool IsSameLine; + bool IsSetPos; + ImVec1 Indent; + ImVec1 ColumnsOffset; + ImVec1 GroupOffset; + ImVec2 CursorStartPosLossyness; + ImGuiNavLayer NavLayerCurrent; + short NavLayersActiveMask; + short NavLayersActiveMaskNext; + bool NavHideHighlightOneFrame; + bool NavHasScroll; + bool MenuBarAppending; + ImVec2 MenuBarOffset; + ImGuiMenuColumns MenuColumns; + int TreeDepth; + ImU32 TreeJumpToParentOnPopMask; + ImVector_ImGuiWindowPtr ChildWindows; + ImGuiStorage* StateStorage; + ImGuiOldColumns* CurrentColumns; + int CurrentTableIdx; + ImGuiLayoutType LayoutType; + ImGuiLayoutType ParentLayoutType; + float ItemWidth; + float TextWrapPos; + ImVector_float ItemWidthStack; + ImVector_float TextWrapPosStack; +}; +typedef struct ImVector_ImGuiOldColumns {int Size;int Capacity;ImGuiOldColumns* Data;} ImVector_ImGuiOldColumns; + +struct ImGuiWindow +{ + char* Name; + ImGuiID ID; + ImGuiWindowFlags Flags, FlagsPreviousFrame; + ImGuiWindowClass WindowClass; + ImGuiViewportP* Viewport; + ImGuiID ViewportId; + ImVec2 ViewportPos; + int ViewportAllowPlatformMonitorExtend; + ImVec2 Pos; + ImVec2 Size; + ImVec2 SizeFull; + ImVec2 ContentSize; + ImVec2 ContentSizeIdeal; + ImVec2 ContentSizeExplicit; + ImVec2 WindowPadding; + float WindowRounding; + float WindowBorderSize; + int NameBufLen; + ImGuiID MoveId; + ImGuiID TabId; + ImGuiID ChildId; + ImVec2 Scroll; + ImVec2 ScrollMax; + ImVec2 ScrollTarget; + ImVec2 ScrollTargetCenterRatio; + ImVec2 ScrollTargetEdgeSnapDist; + ImVec2 ScrollbarSizes; + bool ScrollbarX, ScrollbarY; + bool ViewportOwned; + bool Active; + bool WasActive; + bool WriteAccessed; + bool Collapsed; + bool WantCollapseToggle; + bool SkipItems; + bool Appearing; + bool Hidden; + bool IsFallbackWindow; + bool IsExplicitChild; + bool HasCloseButton; + signed char ResizeBorderHeld; + short BeginCount; + short BeginCountPreviousFrame; + short BeginOrderWithinParent; + short BeginOrderWithinContext; + short FocusOrder; + ImGuiID PopupId; + ImS8 AutoFitFramesX, AutoFitFramesY; + ImS8 AutoFitChildAxises; + bool AutoFitOnlyGrows; + ImGuiDir AutoPosLastDirection; + ImS8 HiddenFramesCanSkipItems; + ImS8 HiddenFramesCannotSkipItems; + ImS8 HiddenFramesForRenderOnly; + ImS8 DisableInputsFrames; + ImGuiCond SetWindowPosAllowFlags : 8; + ImGuiCond SetWindowSizeAllowFlags : 8; + ImGuiCond SetWindowCollapsedAllowFlags : 8; + ImGuiCond SetWindowDockAllowFlags : 8; + ImVec2 SetWindowPosVal; + ImVec2 SetWindowPosPivot; + ImVector_ImGuiID IDStack; + ImGuiWindowTempData DC; + ImRect OuterRectClipped; + ImRect InnerRect; + ImRect InnerClipRect; + ImRect WorkRect; + ImRect ParentWorkRect; + ImRect ClipRect; + ImRect ContentRegionRect; + ImVec2ih HitTestHoleSize; + ImVec2ih HitTestHoleOffset; + int LastFrameActive; + int LastFrameJustFocused; + float LastTimeActive; + float ItemWidthDefault; + ImGuiStorage StateStorage; + ImVector_ImGuiOldColumns ColumnsStorage; + float FontWindowScale; + float FontDpiScale; + int SettingsOffset; + ImDrawList* DrawList; + ImDrawList DrawListInst; + ImGuiWindow* ParentWindow; + ImGuiWindow* ParentWindowInBeginStack; + ImGuiWindow* RootWindow; + ImGuiWindow* RootWindowPopupTree; + ImGuiWindow* RootWindowDockTree; + ImGuiWindow* RootWindowForTitleBarHighlight; + ImGuiWindow* RootWindowForNav; + ImGuiWindow* NavLastChildNavWindow; + ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; + ImRect NavRectRel[ImGuiNavLayer_COUNT]; + ImGuiID NavRootFocusScopeId; + int MemoryDrawListIdxCapacity; + int MemoryDrawListVtxCapacity; + bool MemoryCompacted; + bool DockIsActive :1; + bool DockNodeIsVisible :1; + bool DockTabIsVisible :1; + bool DockTabWantClose :1; + short DockOrder; + ImGuiWindowDockStyle DockStyle; + ImGuiDockNode* DockNode; + ImGuiDockNode* DockNodeAsHost; + ImGuiID DockId; + ImGuiItemStatusFlags DockTabItemStatusFlags; + ImRect DockTabItemRect; +}; +typedef enum { + ImGuiTabBarFlags_DockNode = 1 << 20, + ImGuiTabBarFlags_IsFocused = 1 << 21, + ImGuiTabBarFlags_SaveSettings = 1 << 22, +}ImGuiTabBarFlagsPrivate_; +typedef enum { + ImGuiTabItemFlags_SectionMask_ = ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing, + ImGuiTabItemFlags_NoCloseButton = 1 << 20, + ImGuiTabItemFlags_Button = 1 << 21, + ImGuiTabItemFlags_Unsorted = 1 << 22, + ImGuiTabItemFlags_Preview = 1 << 23, +}ImGuiTabItemFlagsPrivate_; +struct ImGuiTabItem +{ + ImGuiID ID; + ImGuiTabItemFlags Flags; + ImGuiWindow* Window; + int LastFrameVisible; + int LastFrameSelected; + float Offset; + float Width; + float ContentWidth; + float RequestedWidth; + ImS32 NameOffset; + ImS16 BeginOrder; + ImS16 IndexDuringLayout; + bool WantClose; +}; +typedef struct ImVector_ImGuiTabItem {int Size;int Capacity;ImGuiTabItem* Data;} ImVector_ImGuiTabItem; + +struct ImGuiTabBar +{ + ImVector_ImGuiTabItem Tabs; + ImGuiTabBarFlags Flags; + ImGuiID ID; + ImGuiID SelectedTabId; + ImGuiID NextSelectedTabId; + ImGuiID VisibleTabId; + int CurrFrameVisible; + int PrevFrameVisible; + ImRect BarRect; + float CurrTabsContentsHeight; + float PrevTabsContentsHeight; + float WidthAllTabs; + float WidthAllTabsIdeal; + float ScrollingAnim; + float ScrollingTarget; + float ScrollingTargetDistToVisibility; + float ScrollingSpeed; + float ScrollingRectMinX; + float ScrollingRectMaxX; + ImGuiID ReorderRequestTabId; + ImS16 ReorderRequestOffset; + ImS8 BeginCount; + bool WantLayout; + bool VisibleTabWasSubmitted; + bool TabsAddedNew; + ImS16 TabsActiveCount; + ImS16 LastTabItemIdx; + float ItemSpacingY; + ImVec2 FramePadding; + ImVec2 BackupCursorPos; + ImGuiTextBuffer TabsNames; +}; +typedef ImS8 ImGuiTableColumnIdx; +typedef ImU8 ImGuiTableDrawChannelIdx; +struct ImGuiTableColumn +{ + ImGuiTableColumnFlags Flags; + float WidthGiven; + float MinX; + float MaxX; + float WidthRequest; + float WidthAuto; + float StretchWeight; + float InitStretchWeightOrWidth; + ImRect ClipRect; + ImGuiID UserID; + float WorkMinX; + float WorkMaxX; + float ItemWidth; + float ContentMaxXFrozen; + float ContentMaxXUnfrozen; + float ContentMaxXHeadersUsed; + float ContentMaxXHeadersIdeal; + ImS16 NameOffset; + ImGuiTableColumnIdx DisplayOrder; + ImGuiTableColumnIdx IndexWithinEnabledSet; + ImGuiTableColumnIdx PrevEnabledColumn; + ImGuiTableColumnIdx NextEnabledColumn; + ImGuiTableColumnIdx SortOrder; + ImGuiTableDrawChannelIdx DrawChannelCurrent; + ImGuiTableDrawChannelIdx DrawChannelFrozen; + ImGuiTableDrawChannelIdx DrawChannelUnfrozen; + bool IsEnabled; + bool IsUserEnabled; + bool IsUserEnabledNextFrame; + bool IsVisibleX; + bool IsVisibleY; + bool IsRequestOutput; + bool IsSkipItems; + bool IsPreserveWidthAuto; + ImS8 NavLayerCurrent; + ImU8 AutoFitQueue; + ImU8 CannotSkipItemsQueue; + ImU8 SortDirection : 2; + ImU8 SortDirectionsAvailCount : 2; + ImU8 SortDirectionsAvailMask : 4; + ImU8 SortDirectionsAvailList; +}; +typedef struct ImGuiTableCellData ImGuiTableCellData; +struct ImGuiTableCellData +{ + ImU32 BgColor; + ImGuiTableColumnIdx Column; +}; +struct ImGuiTableInstanceData +{ + float LastOuterHeight; + float LastFirstRowHeight; +}; +typedef struct ImSpan_ImGuiTableColumn {ImGuiTableColumn* Data;ImGuiTableColumn* DataEnd;} ImSpan_ImGuiTableColumn; + +typedef struct ImSpan_ImGuiTableColumnIdx {ImGuiTableColumnIdx* Data;ImGuiTableColumnIdx* DataEnd;} ImSpan_ImGuiTableColumnIdx; + +typedef struct ImSpan_ImGuiTableCellData {ImGuiTableCellData* Data;ImGuiTableCellData* DataEnd;} ImSpan_ImGuiTableCellData; + +typedef struct ImVector_ImGuiTableInstanceData {int Size;int Capacity;ImGuiTableInstanceData* Data;} ImVector_ImGuiTableInstanceData; + +typedef struct ImVector_ImGuiTableColumnSortSpecs {int Size;int Capacity;ImGuiTableColumnSortSpecs* Data;} ImVector_ImGuiTableColumnSortSpecs; + +struct ImGuiTable +{ + ImGuiID ID; + ImGuiTableFlags Flags; + void* RawData; + ImGuiTableTempData* TempData; + ImSpan_ImGuiTableColumn Columns; + ImSpan_ImGuiTableColumnIdx DisplayOrderToIndex; + ImSpan_ImGuiTableCellData RowCellData; + ImU64 EnabledMaskByDisplayOrder; + ImU64 EnabledMaskByIndex; + ImU64 VisibleMaskByIndex; + ImU64 RequestOutputMaskByIndex; + ImGuiTableFlags SettingsLoadedFlags; + int SettingsOffset; + int LastFrameActive; + int ColumnsCount; + int CurrentRow; + int CurrentColumn; + ImS16 InstanceCurrent; + ImS16 InstanceInteracted; + float RowPosY1; + float RowPosY2; + float RowMinHeight; + float RowTextBaseline; + float RowIndentOffsetX; + ImGuiTableRowFlags RowFlags : 16; + ImGuiTableRowFlags LastRowFlags : 16; + int RowBgColorCounter; + ImU32 RowBgColor[2]; + ImU32 BorderColorStrong; + ImU32 BorderColorLight; + float BorderX1; + float BorderX2; + float HostIndentX; + float MinColumnWidth; + float OuterPaddingX; + float CellPaddingX; + float CellPaddingY; + float CellSpacingX1; + float CellSpacingX2; + float InnerWidth; + float ColumnsGivenWidth; + float ColumnsAutoFitWidth; + float ColumnsStretchSumWeights; + float ResizedColumnNextWidth; + float ResizeLockMinContentsX2; + float RefScale; + ImRect OuterRect; + ImRect InnerRect; + ImRect WorkRect; + ImRect InnerClipRect; + ImRect BgClipRect; + ImRect Bg0ClipRectForDrawCmd; + ImRect Bg2ClipRectForDrawCmd; + ImRect HostClipRect; + ImRect HostBackupInnerClipRect; + ImGuiWindow* OuterWindow; + ImGuiWindow* InnerWindow; + ImGuiTextBuffer ColumnsNames; + ImDrawListSplitter* DrawSplitter; + ImGuiTableInstanceData InstanceDataFirst; + ImVector_ImGuiTableInstanceData InstanceDataExtra; + ImGuiTableColumnSortSpecs SortSpecsSingle; + ImVector_ImGuiTableColumnSortSpecs SortSpecsMulti; + ImGuiTableSortSpecs SortSpecs; + ImGuiTableColumnIdx SortSpecsCount; + ImGuiTableColumnIdx ColumnsEnabledCount; + ImGuiTableColumnIdx ColumnsEnabledFixedCount; + ImGuiTableColumnIdx DeclColumnsCount; + ImGuiTableColumnIdx HoveredColumnBody; + ImGuiTableColumnIdx HoveredColumnBorder; + ImGuiTableColumnIdx AutoFitSingleColumn; + ImGuiTableColumnIdx ResizedColumn; + ImGuiTableColumnIdx LastResizedColumn; + ImGuiTableColumnIdx HeldHeaderColumn; + ImGuiTableColumnIdx ReorderColumn; + ImGuiTableColumnIdx ReorderColumnDir; + ImGuiTableColumnIdx LeftMostEnabledColumn; + ImGuiTableColumnIdx RightMostEnabledColumn; + ImGuiTableColumnIdx LeftMostStretchedColumn; + ImGuiTableColumnIdx RightMostStretchedColumn; + ImGuiTableColumnIdx ContextPopupColumn; + ImGuiTableColumnIdx FreezeRowsRequest; + ImGuiTableColumnIdx FreezeRowsCount; + ImGuiTableColumnIdx FreezeColumnsRequest; + ImGuiTableColumnIdx FreezeColumnsCount; + ImGuiTableColumnIdx RowCellDataCurrent; + ImGuiTableDrawChannelIdx DummyDrawChannel; + ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; + ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen; + bool IsLayoutLocked; + bool IsInsideRow; + bool IsInitializing; + bool IsSortSpecsDirty; + bool IsUsingHeaders; + bool IsContextPopupOpen; + bool IsSettingsRequestLoad; + bool IsSettingsDirty; + bool IsDefaultDisplayOrder; + bool IsResetAllRequest; + bool IsResetDisplayOrderRequest; + bool IsUnfrozenRows; + bool IsDefaultSizingPolicy; + bool MemoryCompacted; + bool HostSkipItems; +}; +struct ImGuiTableTempData +{ + int TableIndex; + float LastTimeActive; + ImVec2 UserOuterSize; + ImDrawListSplitter DrawSplitter; + ImRect HostBackupWorkRect; + ImRect HostBackupParentWorkRect; + ImVec2 HostBackupPrevLineSize; + ImVec2 HostBackupCurrLineSize; + ImVec2 HostBackupCursorMaxPos; + ImVec1 HostBackupColumnsOffset; + float HostBackupItemWidth; + int HostBackupItemWidthStackSize; +}; +typedef struct ImGuiTableColumnSettings ImGuiTableColumnSettings; +struct ImGuiTableColumnSettings +{ + float WidthOrWeight; + ImGuiID UserID; + ImGuiTableColumnIdx Index; + ImGuiTableColumnIdx DisplayOrder; + ImGuiTableColumnIdx SortOrder; + ImU8 SortDirection : 2; + ImU8 IsEnabled : 1; + ImU8 IsStretch : 1; +}; +struct ImGuiTableSettings +{ + ImGuiID ID; + ImGuiTableFlags SaveFlags; + float RefScale; + ImGuiTableColumnIdx ColumnsCount; + ImGuiTableColumnIdx ColumnsCountMax; + bool WantApply; +}; +struct ImFontBuilderIO +{ + bool (*FontBuilder_Build)(ImFontAtlas* atlas); +}; struct ImFontAtlas; struct ImFontBuilderIO; typedef enum { @@ -1375,25 +3032,66 @@ typedef union SDL_Event SDL_Event; #ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS typedef struct ImGuiStorage::ImGuiStoragePair ImGuiStoragePair; typedef struct ImGuiTextFilter::ImGuiTextRange ImGuiTextRange; +typedef ImStb::STB_TexteditState STB_TexteditState; +typedef ImStb::StbTexteditRow StbTexteditRow; +typedef ImStb::StbUndoRecord StbUndoRecord; +typedef ImStb::StbUndoState StbUndoState; +typedef ImChunkStream ImChunkStream_ImGuiTableSettings; +typedef ImChunkStream ImChunkStream_ImGuiWindowSettings; +typedef ImPool ImPool_ImGuiTabBar; +typedef ImPool ImPool_ImGuiTable; +typedef ImSpan ImSpan_ImGuiTableCellData; +typedef ImSpan ImSpan_ImGuiTableColumn; +typedef ImSpan ImSpan_ImGuiTableColumnIdx; typedef ImVector ImVector_ImDrawChannel; typedef ImVector ImVector_ImDrawCmd; typedef ImVector ImVector_ImDrawIdx; +typedef ImVector ImVector_ImDrawListPtr; typedef ImVector ImVector_ImDrawVert; typedef ImVector ImVector_ImFontPtr; typedef ImVector ImVector_ImFontAtlasCustomRect; typedef ImVector ImVector_ImFontConfig; typedef ImVector ImVector_ImFontGlyph; +typedef ImVector ImVector_ImGuiColorMod; +typedef ImVector ImVector_ImGuiContextHook; +typedef ImVector ImVector_ImGuiDockNodeSettings; +typedef ImVector ImVector_ImGuiDockRequest; +typedef ImVector ImVector_ImGuiGroupData; +typedef ImVector ImVector_ImGuiID; +typedef ImVector ImVector_ImGuiInputEvent; +typedef ImVector ImVector_ImGuiItemFlags; +typedef ImVector ImVector_ImGuiKeyRoutingData; +typedef ImVector ImVector_ImGuiListClipperData; +typedef ImVector ImVector_ImGuiListClipperRange; +typedef ImVector ImVector_ImGuiOldColumnData; +typedef ImVector ImVector_ImGuiOldColumns; typedef ImVector ImVector_ImGuiPlatformMonitor; +typedef ImVector ImVector_ImGuiPopupData; +typedef ImVector ImVector_ImGuiPtrOrIndex; +typedef ImVector ImVector_ImGuiSettingsHandler; +typedef ImVector ImVector_ImGuiShrinkWidthItem; +typedef ImVector ImVector_ImGuiStackLevelInfo; typedef ImVector ImVector_ImGuiStoragePair; +typedef ImVector ImVector_ImGuiStyleMod; +typedef ImVector ImVector_ImGuiTabItem; +typedef ImVector ImVector_ImGuiTableColumnSortSpecs; +typedef ImVector ImVector_ImGuiTableInstanceData; +typedef ImVector ImVector_ImGuiTableTempData; typedef ImVector ImVector_ImGuiTextRange; typedef ImVector ImVector_ImGuiViewportPtr; +typedef ImVector ImVector_ImGuiViewportPPtr; +typedef ImVector ImVector_ImGuiWindowPtr; +typedef ImVector ImVector_ImGuiWindowStackData; typedef ImVector ImVector_ImTextureID; typedef ImVector ImVector_ImU32; typedef ImVector ImVector_ImVec2; typedef ImVector ImVector_ImVec4; typedef ImVector ImVector_ImWchar; typedef ImVector ImVector_char; +typedef ImVector ImVector_const_charPtr; typedef ImVector ImVector_float; +typedef ImVector ImVector_int; +typedef ImVector ImVector_unsigned_char; #endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void); CIMGUI_API void ImVec2_destroy(ImVec2* self); @@ -1464,14 +3162,14 @@ CIMGUI_API void igGetWindowContentRegionMin(ImVec2 *pOut); CIMGUI_API void igGetWindowContentRegionMax(ImVec2 *pOut); CIMGUI_API float igGetScrollX(void); CIMGUI_API float igGetScrollY(void); -CIMGUI_API void igSetScrollX(float scroll_x); -CIMGUI_API void igSetScrollY(float scroll_y); +CIMGUI_API void igSetScrollX_Float(float scroll_x); +CIMGUI_API void igSetScrollY_Float(float scroll_y); CIMGUI_API float igGetScrollMaxX(void); CIMGUI_API float igGetScrollMaxY(void); CIMGUI_API void igSetScrollHereX(float center_x_ratio); CIMGUI_API void igSetScrollHereY(float center_y_ratio); -CIMGUI_API void igSetScrollFromPosX(float local_x,float center_x_ratio); -CIMGUI_API void igSetScrollFromPosY(float local_y,float center_y_ratio); +CIMGUI_API void igSetScrollFromPosX_Float(float local_x,float center_x_ratio); +CIMGUI_API void igSetScrollFromPosY_Float(float local_y,float center_y_ratio); CIMGUI_API void igPushFont(ImFont* font); CIMGUI_API void igPopFont(void); CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col); @@ -1658,7 +3356,7 @@ CIMGUI_API void igCloseCurrentPopup(void); CIMGUI_API bool igBeginPopupContextItem(const char* str_id,ImGuiPopupFlags popup_flags); CIMGUI_API bool igBeginPopupContextWindow(const char* str_id,ImGuiPopupFlags popup_flags); CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,ImGuiPopupFlags popup_flags); -CIMGUI_API bool igIsPopupOpen(const char* str_id,ImGuiPopupFlags flags); +CIMGUI_API bool igIsPopupOpen_Str(const char* str_id,ImGuiPopupFlags flags); CIMGUI_API bool igBeginTable(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width); CIMGUI_API void igEndTable(void); CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags,float min_row_height); @@ -1672,7 +3370,7 @@ CIMGUI_API ImGuiTableSortSpecs* igTableGetSortSpecs(void); CIMGUI_API int igTableGetColumnCount(void); CIMGUI_API int igTableGetColumnIndex(void); CIMGUI_API int igTableGetRowIndex(void); -CIMGUI_API const char* igTableGetColumnName(int column_n); +CIMGUI_API const char* igTableGetColumnName_Int(int column_n); CIMGUI_API ImGuiTableColumnFlags igTableGetColumnFlags(int column_n); CIMGUI_API void igTableSetColumnEnabled(int column_n,bool v); CIMGUI_API void igTableSetBgColor(ImGuiTableBgTarget target,ImU32 color,int column_n); @@ -1752,15 +3450,15 @@ CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in); CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in); CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v); CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,float* out_g,float* out_b); -CIMGUI_API bool igIsKeyDown(ImGuiKey key); -CIMGUI_API bool igIsKeyPressed(ImGuiKey key,bool repeat); -CIMGUI_API bool igIsKeyReleased(ImGuiKey key); +CIMGUI_API bool igIsKeyDown_Nil(ImGuiKey key); +CIMGUI_API bool igIsKeyPressed_Bool(ImGuiKey key,bool repeat); +CIMGUI_API bool igIsKeyReleased_Nil(ImGuiKey key); CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate); CIMGUI_API const char* igGetKeyName(ImGuiKey key); CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); -CIMGUI_API bool igIsMouseDown(ImGuiMouseButton button); -CIMGUI_API bool igIsMouseClicked(ImGuiMouseButton button,bool repeat); -CIMGUI_API bool igIsMouseReleased(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseDown_Nil(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseClicked_Bool(ImGuiMouseButton button,bool repeat); +CIMGUI_API bool igIsMouseReleased_Nil(ImGuiMouseButton button); CIMGUI_API bool igIsMouseDoubleClicked(ImGuiMouseButton button); CIMGUI_API int igGetMouseClickedCount(ImGuiMouseButton button); CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip); @@ -2041,6 +3739,662 @@ CIMGUI_API void ImGuiPlatformMonitor_destroy(ImGuiPlatformMonitor* self); CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void); CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self); CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key); +CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImU32 seed); +CIMGUI_API ImGuiID igImHashStr(const char* data,size_t data_size,ImU32 seed); +CIMGUI_API void igImQsort(void* base,size_t count,size_t size_of_element,int(*compare_func)(void const*,void const*)); +CIMGUI_API ImU32 igImAlphaBlendColors(ImU32 col_a,ImU32 col_b); +CIMGUI_API bool igImIsPowerOfTwo_Int(int v); +CIMGUI_API bool igImIsPowerOfTwo_U64(ImU64 v); +CIMGUI_API int igImUpperPowerOfTwo(int v); +CIMGUI_API int igImStricmp(const char* str1,const char* str2); +CIMGUI_API int igImStrnicmp(const char* str1,const char* str2,size_t count); +CIMGUI_API void igImStrncpy(char* dst,const char* src,size_t count); +CIMGUI_API char* igImStrdup(const char* str); +CIMGUI_API char* igImStrdupcpy(char* dst,size_t* p_dst_size,const char* str); +CIMGUI_API const char* igImStrchrRange(const char* str_begin,const char* str_end,char c); +CIMGUI_API int igImStrlenW(const ImWchar* str); +CIMGUI_API const char* igImStreolRange(const char* str,const char* str_end); +CIMGUI_API const ImWchar* igImStrbolW(const ImWchar* buf_mid_line,const ImWchar* buf_begin); +CIMGUI_API const char* igImStristr(const char* haystack,const char* haystack_end,const char* needle,const char* needle_end); +CIMGUI_API void igImStrTrimBlanks(char* str); +CIMGUI_API const char* igImStrSkipBlank(const char* str); +CIMGUI_API char igImToUpper(char c); +CIMGUI_API bool igImCharIsBlankA(char c); +CIMGUI_API bool igImCharIsBlankW(unsigned int c); +CIMGUI_API int igImFormatString(char* buf,size_t buf_size,const char* fmt,...); +CIMGUI_API int igImFormatStringV(char* buf,size_t buf_size,const char* fmt,va_list args); +CIMGUI_API void igImFormatStringToTempBuffer(const char** out_buf,const char** out_buf_end,const char* fmt,...); +CIMGUI_API void igImFormatStringToTempBufferV(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args); +CIMGUI_API const char* igImParseFormatFindStart(const char* format); +CIMGUI_API const char* igImParseFormatFindEnd(const char* format); +CIMGUI_API const char* igImParseFormatTrimDecorations(const char* format,char* buf,size_t buf_size); +CIMGUI_API void igImParseFormatSanitizeForPrinting(const char* fmt_in,char* fmt_out,size_t fmt_out_size); +CIMGUI_API const char* igImParseFormatSanitizeForScanning(const char* fmt_in,char* fmt_out,size_t fmt_out_size); +CIMGUI_API int igImParseFormatPrecision(const char* format,int default_value); +CIMGUI_API const char* igImTextCharToUtf8(char out_buf[5],unsigned int c); +CIMGUI_API int igImTextStrToUtf8(char* out_buf,int out_buf_size,const ImWchar* in_text,const ImWchar* in_text_end); +CIMGUI_API int igImTextCharFromUtf8(unsigned int* out_char,const char* in_text,const char* in_text_end); +CIMGUI_API int igImTextStrFromUtf8(ImWchar* out_buf,int out_buf_size,const char* in_text,const char* in_text_end,const char** in_remaining); +CIMGUI_API int igImTextCountCharsFromUtf8(const char* in_text,const char* in_text_end); +CIMGUI_API int igImTextCountUtf8BytesFromChar(const char* in_text,const char* in_text_end); +CIMGUI_API int igImTextCountUtf8BytesFromStr(const ImWchar* in_text,const ImWchar* in_text_end); +CIMGUI_API ImFileHandle igImFileOpen(const char* filename,const char* mode); +CIMGUI_API bool igImFileClose(ImFileHandle file); +CIMGUI_API ImU64 igImFileGetSize(ImFileHandle file); +CIMGUI_API ImU64 igImFileRead(void* data,ImU64 size,ImU64 count,ImFileHandle file); +CIMGUI_API ImU64 igImFileWrite(const void* data,ImU64 size,ImU64 count,ImFileHandle file); +CIMGUI_API void* igImFileLoadToMemory(const char* filename,const char* mode,size_t* out_file_size,int padding_bytes); +CIMGUI_API float igImPow_Float(float x,float y); +CIMGUI_API double igImPow_double(double x,double y); +CIMGUI_API float igImLog_Float(float x); +CIMGUI_API double igImLog_double(double x); +CIMGUI_API int igImAbs_Int(int x); +CIMGUI_API float igImAbs_Float(float x); +CIMGUI_API double igImAbs_double(double x); +CIMGUI_API float igImSign_Float(float x); +CIMGUI_API double igImSign_double(double x); +CIMGUI_API float igImRsqrt_Float(float x); +CIMGUI_API double igImRsqrt_double(double x); +CIMGUI_API void igImMin(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); +CIMGUI_API void igImMax(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); +CIMGUI_API void igImClamp(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,ImVec2 mx); +CIMGUI_API void igImLerp_Vec2Float(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t); +CIMGUI_API void igImLerp_Vec2Vec2(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t); +CIMGUI_API void igImLerp_Vec4(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t); +CIMGUI_API float igImSaturate(float f); +CIMGUI_API float igImLengthSqr_Vec2(const ImVec2 lhs); +CIMGUI_API float igImLengthSqr_Vec4(const ImVec4 lhs); +CIMGUI_API float igImInvLength(const ImVec2 lhs,float fail_value); +CIMGUI_API float igImFloor_Float(float f); +CIMGUI_API float igImFloorSigned_Float(float f); +CIMGUI_API void igImFloor_Vec2(ImVec2 *pOut,const ImVec2 v); +CIMGUI_API void igImFloorSigned_Vec2(ImVec2 *pOut,const ImVec2 v); +CIMGUI_API int igImModPositive(int a,int b); +CIMGUI_API float igImDot(const ImVec2 a,const ImVec2 b); +CIMGUI_API void igImRotate(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a); +CIMGUI_API float igImLinearSweep(float current,float target,float speed); +CIMGUI_API void igImMul(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); +CIMGUI_API bool igImIsFloatAboveGuaranteedIntegerPrecision(float f); +CIMGUI_API void igImBezierCubicCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t); +CIMGUI_API void igImBezierCubicClosestPoint(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments); +CIMGUI_API void igImBezierCubicClosestPointCasteljau(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol); +CIMGUI_API void igImBezierQuadraticCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t); +CIMGUI_API void igImLineClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 p); +CIMGUI_API bool igImTriangleContainsPoint(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p); +CIMGUI_API void igImTriangleClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p); +CIMGUI_API void igImTriangleBarycentricCoords(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float* out_u,float* out_v,float* out_w); +CIMGUI_API float igImTriangleArea(const ImVec2 a,const ImVec2 b,const ImVec2 c); +CIMGUI_API ImGuiDir igImGetDirQuadrantFromDelta(float dx,float dy); +CIMGUI_API ImVec1* ImVec1_ImVec1_Nil(void); +CIMGUI_API void ImVec1_destroy(ImVec1* self); +CIMGUI_API ImVec1* ImVec1_ImVec1_Float(float _x); +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Nil(void); +CIMGUI_API void ImVec2ih_destroy(ImVec2ih* self); +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_short(short _x,short _y); +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Vec2(const ImVec2 rhs); +CIMGUI_API ImRect* ImRect_ImRect_Nil(void); +CIMGUI_API void ImRect_destroy(ImRect* self); +CIMGUI_API ImRect* ImRect_ImRect_Vec2(const ImVec2 min,const ImVec2 max); +CIMGUI_API ImRect* ImRect_ImRect_Vec4(const ImVec4 v); +CIMGUI_API ImRect* ImRect_ImRect_Float(float x1,float y1,float x2,float y2); +CIMGUI_API void ImRect_GetCenter(ImVec2 *pOut,ImRect* self); +CIMGUI_API void ImRect_GetSize(ImVec2 *pOut,ImRect* self); +CIMGUI_API float ImRect_GetWidth(ImRect* self); +CIMGUI_API float ImRect_GetHeight(ImRect* self); +CIMGUI_API float ImRect_GetArea(ImRect* self); +CIMGUI_API void ImRect_GetTL(ImVec2 *pOut,ImRect* self); +CIMGUI_API void ImRect_GetTR(ImVec2 *pOut,ImRect* self); +CIMGUI_API void ImRect_GetBL(ImVec2 *pOut,ImRect* self); +CIMGUI_API void ImRect_GetBR(ImVec2 *pOut,ImRect* self); +CIMGUI_API bool ImRect_Contains_Vec2(ImRect* self,const ImVec2 p); +CIMGUI_API bool ImRect_Contains_Rect(ImRect* self,const ImRect r); +CIMGUI_API bool ImRect_Overlaps(ImRect* self,const ImRect r); +CIMGUI_API void ImRect_Add_Vec2(ImRect* self,const ImVec2 p); +CIMGUI_API void ImRect_Add_Rect(ImRect* self,const ImRect r); +CIMGUI_API void ImRect_Expand_Float(ImRect* self,const float amount); +CIMGUI_API void ImRect_Expand_Vec2(ImRect* self,const ImVec2 amount); +CIMGUI_API void ImRect_Translate(ImRect* self,const ImVec2 d); +CIMGUI_API void ImRect_TranslateX(ImRect* self,float dx); +CIMGUI_API void ImRect_TranslateY(ImRect* self,float dy); +CIMGUI_API void ImRect_ClipWith(ImRect* self,const ImRect r); +CIMGUI_API void ImRect_ClipWithFull(ImRect* self,const ImRect r); +CIMGUI_API void ImRect_Floor(ImRect* self); +CIMGUI_API bool ImRect_IsInverted(ImRect* self); +CIMGUI_API void ImRect_ToVec4(ImVec4 *pOut,ImRect* self); +CIMGUI_API bool igImBitArrayTestBit(const ImU32* arr,int n); +CIMGUI_API void igImBitArrayClearBit(ImU32* arr,int n); +CIMGUI_API void igImBitArraySetBit(ImU32* arr,int n); +CIMGUI_API void igImBitArraySetBitRange(ImU32* arr,int n,int n2); +CIMGUI_API void ImBitVector_Create(ImBitVector* self,int sz); +CIMGUI_API void ImBitVector_Clear(ImBitVector* self); +CIMGUI_API bool ImBitVector_TestBit(ImBitVector* self,int n); +CIMGUI_API void ImBitVector_SetBit(ImBitVector* self,int n); +CIMGUI_API void ImBitVector_ClearBit(ImBitVector* self,int n); +CIMGUI_API void ImGuiTextIndex_clear(ImGuiTextIndex* self); +CIMGUI_API int ImGuiTextIndex_size(ImGuiTextIndex* self); +CIMGUI_API const char* ImGuiTextIndex_get_line_begin(ImGuiTextIndex* self,const char* base,int n); +CIMGUI_API const char* ImGuiTextIndex_get_line_end(ImGuiTextIndex* self,const char* base,int n); +CIMGUI_API void ImGuiTextIndex_append(ImGuiTextIndex* self,const char* base,int old_size,int new_size); +CIMGUI_API ImDrawListSharedData* ImDrawListSharedData_ImDrawListSharedData(void); +CIMGUI_API void ImDrawListSharedData_destroy(ImDrawListSharedData* self); +CIMGUI_API void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self,float max_error); +CIMGUI_API void ImDrawDataBuilder_Clear(ImDrawDataBuilder* self); +CIMGUI_API void ImDrawDataBuilder_ClearFreeMemory(ImDrawDataBuilder* self); +CIMGUI_API int ImDrawDataBuilder_GetDrawListCount(ImDrawDataBuilder* self); +CIMGUI_API void ImDrawDataBuilder_FlattenIntoSingleLayer(ImDrawDataBuilder* self); +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Int(ImGuiStyleVar idx,int v); +CIMGUI_API void ImGuiStyleMod_destroy(ImGuiStyleMod* self); +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Float(ImGuiStyleVar idx,float v); +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Vec2(ImGuiStyleVar idx,ImVec2 v); +CIMGUI_API ImGuiComboPreviewData* ImGuiComboPreviewData_ImGuiComboPreviewData(void); +CIMGUI_API void ImGuiComboPreviewData_destroy(ImGuiComboPreviewData* self); +CIMGUI_API ImGuiMenuColumns* ImGuiMenuColumns_ImGuiMenuColumns(void); +CIMGUI_API void ImGuiMenuColumns_destroy(ImGuiMenuColumns* self); +CIMGUI_API void ImGuiMenuColumns_Update(ImGuiMenuColumns* self,float spacing,bool window_reappearing); +CIMGUI_API float ImGuiMenuColumns_DeclColumns(ImGuiMenuColumns* self,float w_icon,float w_label,float w_shortcut,float w_mark); +CIMGUI_API void ImGuiMenuColumns_CalcNextTotalWidth(ImGuiMenuColumns* self,bool update_offsets); +CIMGUI_API ImGuiInputTextState* ImGuiInputTextState_ImGuiInputTextState(void); +CIMGUI_API void ImGuiInputTextState_destroy(ImGuiInputTextState* self); +CIMGUI_API void ImGuiInputTextState_ClearText(ImGuiInputTextState* self); +CIMGUI_API void ImGuiInputTextState_ClearFreeMemory(ImGuiInputTextState* self); +CIMGUI_API int ImGuiInputTextState_GetUndoAvailCount(ImGuiInputTextState* self); +CIMGUI_API int ImGuiInputTextState_GetRedoAvailCount(ImGuiInputTextState* self); +CIMGUI_API void ImGuiInputTextState_OnKeyPressed(ImGuiInputTextState* self,int key); +CIMGUI_API void ImGuiInputTextState_CursorAnimReset(ImGuiInputTextState* self); +CIMGUI_API void ImGuiInputTextState_CursorClamp(ImGuiInputTextState* self); +CIMGUI_API bool ImGuiInputTextState_HasSelection(ImGuiInputTextState* self); +CIMGUI_API void ImGuiInputTextState_ClearSelection(ImGuiInputTextState* self); +CIMGUI_API int ImGuiInputTextState_GetCursorPos(ImGuiInputTextState* self); +CIMGUI_API int ImGuiInputTextState_GetSelectionStart(ImGuiInputTextState* self); +CIMGUI_API int ImGuiInputTextState_GetSelectionEnd(ImGuiInputTextState* self); +CIMGUI_API void ImGuiInputTextState_SelectAll(ImGuiInputTextState* self); +CIMGUI_API ImGuiPopupData* ImGuiPopupData_ImGuiPopupData(void); +CIMGUI_API void ImGuiPopupData_destroy(ImGuiPopupData* self); +CIMGUI_API ImGuiNextWindowData* ImGuiNextWindowData_ImGuiNextWindowData(void); +CIMGUI_API void ImGuiNextWindowData_destroy(ImGuiNextWindowData* self); +CIMGUI_API void ImGuiNextWindowData_ClearFlags(ImGuiNextWindowData* self); +CIMGUI_API ImGuiNextItemData* ImGuiNextItemData_ImGuiNextItemData(void); +CIMGUI_API void ImGuiNextItemData_destroy(ImGuiNextItemData* self); +CIMGUI_API void ImGuiNextItemData_ClearFlags(ImGuiNextItemData* self); +CIMGUI_API ImGuiLastItemData* ImGuiLastItemData_ImGuiLastItemData(void); +CIMGUI_API void ImGuiLastItemData_destroy(ImGuiLastItemData* self); +CIMGUI_API ImGuiStackSizes* ImGuiStackSizes_ImGuiStackSizes(void); +CIMGUI_API void ImGuiStackSizes_destroy(ImGuiStackSizes* self); +CIMGUI_API void ImGuiStackSizes_SetToCurrentState(ImGuiStackSizes* self); +CIMGUI_API void ImGuiStackSizes_CompareWithCurrentState(ImGuiStackSizes* self); +CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(void* ptr); +CIMGUI_API void ImGuiPtrOrIndex_destroy(ImGuiPtrOrIndex* self); +CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(int index); +CIMGUI_API ImGuiInputEvent* ImGuiInputEvent_ImGuiInputEvent(void); +CIMGUI_API void ImGuiInputEvent_destroy(ImGuiInputEvent* self); +CIMGUI_API ImGuiKeyRoutingData* ImGuiKeyRoutingData_ImGuiKeyRoutingData(void); +CIMGUI_API void ImGuiKeyRoutingData_destroy(ImGuiKeyRoutingData* self); +CIMGUI_API ImGuiKeyRoutingTable* ImGuiKeyRoutingTable_ImGuiKeyRoutingTable(void); +CIMGUI_API void ImGuiKeyRoutingTable_destroy(ImGuiKeyRoutingTable* self); +CIMGUI_API void ImGuiKeyRoutingTable_Clear(ImGuiKeyRoutingTable* self); +CIMGUI_API ImGuiKeyOwnerData* ImGuiKeyOwnerData_ImGuiKeyOwnerData(void); +CIMGUI_API void ImGuiKeyOwnerData_destroy(ImGuiKeyOwnerData* self); +CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromIndices(int min,int max); +CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromPositions(float y1,float y2,int off_min,int off_max); +CIMGUI_API ImGuiListClipperData* ImGuiListClipperData_ImGuiListClipperData(void); +CIMGUI_API void ImGuiListClipperData_destroy(ImGuiListClipperData* self); +CIMGUI_API void ImGuiListClipperData_Reset(ImGuiListClipperData* self,ImGuiListClipper* clipper); +CIMGUI_API ImGuiNavItemData* ImGuiNavItemData_ImGuiNavItemData(void); +CIMGUI_API void ImGuiNavItemData_destroy(ImGuiNavItemData* self); +CIMGUI_API void ImGuiNavItemData_Clear(ImGuiNavItemData* self); +CIMGUI_API ImGuiOldColumnData* ImGuiOldColumnData_ImGuiOldColumnData(void); +CIMGUI_API void ImGuiOldColumnData_destroy(ImGuiOldColumnData* self); +CIMGUI_API ImGuiOldColumns* ImGuiOldColumns_ImGuiOldColumns(void); +CIMGUI_API void ImGuiOldColumns_destroy(ImGuiOldColumns* self); +CIMGUI_API ImGuiDockNode* ImGuiDockNode_ImGuiDockNode(ImGuiID id); +CIMGUI_API void ImGuiDockNode_destroy(ImGuiDockNode* self); +CIMGUI_API bool ImGuiDockNode_IsRootNode(ImGuiDockNode* self); +CIMGUI_API bool ImGuiDockNode_IsDockSpace(ImGuiDockNode* self); +CIMGUI_API bool ImGuiDockNode_IsFloatingNode(ImGuiDockNode* self); +CIMGUI_API bool ImGuiDockNode_IsCentralNode(ImGuiDockNode* self); +CIMGUI_API bool ImGuiDockNode_IsHiddenTabBar(ImGuiDockNode* self); +CIMGUI_API bool ImGuiDockNode_IsNoTabBar(ImGuiDockNode* self); +CIMGUI_API bool ImGuiDockNode_IsSplitNode(ImGuiDockNode* self); +CIMGUI_API bool ImGuiDockNode_IsLeafNode(ImGuiDockNode* self); +CIMGUI_API bool ImGuiDockNode_IsEmpty(ImGuiDockNode* self); +CIMGUI_API void ImGuiDockNode_Rect(ImRect *pOut,ImGuiDockNode* self); +CIMGUI_API void ImGuiDockNode_SetLocalFlags(ImGuiDockNode* self,ImGuiDockNodeFlags flags); +CIMGUI_API void ImGuiDockNode_UpdateMergedFlags(ImGuiDockNode* self); +CIMGUI_API ImGuiDockContext* ImGuiDockContext_ImGuiDockContext(void); +CIMGUI_API void ImGuiDockContext_destroy(ImGuiDockContext* self); +CIMGUI_API ImGuiViewportP* ImGuiViewportP_ImGuiViewportP(void); +CIMGUI_API void ImGuiViewportP_destroy(ImGuiViewportP* self); +CIMGUI_API void ImGuiViewportP_ClearRequestFlags(ImGuiViewportP* self); +CIMGUI_API void ImGuiViewportP_CalcWorkRectPos(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min); +CIMGUI_API void ImGuiViewportP_CalcWorkRectSize(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min,const ImVec2 off_max); +CIMGUI_API void ImGuiViewportP_UpdateWorkRect(ImGuiViewportP* self); +CIMGUI_API void ImGuiViewportP_GetMainRect(ImRect *pOut,ImGuiViewportP* self); +CIMGUI_API void ImGuiViewportP_GetWorkRect(ImRect *pOut,ImGuiViewportP* self); +CIMGUI_API void ImGuiViewportP_GetBuildWorkRect(ImRect *pOut,ImGuiViewportP* self); +CIMGUI_API ImGuiWindowSettings* ImGuiWindowSettings_ImGuiWindowSettings(void); +CIMGUI_API void ImGuiWindowSettings_destroy(ImGuiWindowSettings* self); +CIMGUI_API char* ImGuiWindowSettings_GetName(ImGuiWindowSettings* self); +CIMGUI_API ImGuiSettingsHandler* ImGuiSettingsHandler_ImGuiSettingsHandler(void); +CIMGUI_API void ImGuiSettingsHandler_destroy(ImGuiSettingsHandler* self); +CIMGUI_API ImGuiMetricsConfig* ImGuiMetricsConfig_ImGuiMetricsConfig(void); +CIMGUI_API void ImGuiMetricsConfig_destroy(ImGuiMetricsConfig* self); +CIMGUI_API ImGuiStackLevelInfo* ImGuiStackLevelInfo_ImGuiStackLevelInfo(void); +CIMGUI_API void ImGuiStackLevelInfo_destroy(ImGuiStackLevelInfo* self); +CIMGUI_API ImGuiStackTool* ImGuiStackTool_ImGuiStackTool(void); +CIMGUI_API void ImGuiStackTool_destroy(ImGuiStackTool* self); +CIMGUI_API ImGuiContextHook* ImGuiContextHook_ImGuiContextHook(void); +CIMGUI_API void ImGuiContextHook_destroy(ImGuiContextHook* self); +CIMGUI_API ImGuiContext* ImGuiContext_ImGuiContext(ImFontAtlas* shared_font_atlas); +CIMGUI_API void ImGuiContext_destroy(ImGuiContext* self); +CIMGUI_API ImGuiWindow* ImGuiWindow_ImGuiWindow(ImGuiContext* context,const char* name); +CIMGUI_API void ImGuiWindow_destroy(ImGuiWindow* self); +CIMGUI_API ImGuiID ImGuiWindow_GetID_Str(ImGuiWindow* self,const char* str,const char* str_end); +CIMGUI_API ImGuiID ImGuiWindow_GetID_Ptr(ImGuiWindow* self,const void* ptr); +CIMGUI_API ImGuiID ImGuiWindow_GetID_Int(ImGuiWindow* self,int n); +CIMGUI_API ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self,const ImRect r_abs); +CIMGUI_API void ImGuiWindow_Rect(ImRect *pOut,ImGuiWindow* self); +CIMGUI_API float ImGuiWindow_CalcFontSize(ImGuiWindow* self); +CIMGUI_API float ImGuiWindow_TitleBarHeight(ImGuiWindow* self); +CIMGUI_API void ImGuiWindow_TitleBarRect(ImRect *pOut,ImGuiWindow* self); +CIMGUI_API float ImGuiWindow_MenuBarHeight(ImGuiWindow* self); +CIMGUI_API void ImGuiWindow_MenuBarRect(ImRect *pOut,ImGuiWindow* self); +CIMGUI_API ImGuiTabItem* ImGuiTabItem_ImGuiTabItem(void); +CIMGUI_API void ImGuiTabItem_destroy(ImGuiTabItem* self); +CIMGUI_API ImGuiTabBar* ImGuiTabBar_ImGuiTabBar(void); +CIMGUI_API void ImGuiTabBar_destroy(ImGuiTabBar* self); +CIMGUI_API int ImGuiTabBar_GetTabOrder(ImGuiTabBar* self,const ImGuiTabItem* tab); +CIMGUI_API const char* ImGuiTabBar_GetTabName(ImGuiTabBar* self,const ImGuiTabItem* tab); +CIMGUI_API ImGuiTableColumn* ImGuiTableColumn_ImGuiTableColumn(void); +CIMGUI_API void ImGuiTableColumn_destroy(ImGuiTableColumn* self); +CIMGUI_API ImGuiTableInstanceData* ImGuiTableInstanceData_ImGuiTableInstanceData(void); +CIMGUI_API void ImGuiTableInstanceData_destroy(ImGuiTableInstanceData* self); +CIMGUI_API ImGuiTable* ImGuiTable_ImGuiTable(void); +CIMGUI_API void ImGuiTable_destroy(ImGuiTable* self); +CIMGUI_API ImGuiTableTempData* ImGuiTableTempData_ImGuiTableTempData(void); +CIMGUI_API void ImGuiTableTempData_destroy(ImGuiTableTempData* self); +CIMGUI_API ImGuiTableColumnSettings* ImGuiTableColumnSettings_ImGuiTableColumnSettings(void); +CIMGUI_API void ImGuiTableColumnSettings_destroy(ImGuiTableColumnSettings* self); +CIMGUI_API ImGuiTableSettings* ImGuiTableSettings_ImGuiTableSettings(void); +CIMGUI_API void ImGuiTableSettings_destroy(ImGuiTableSettings* self); +CIMGUI_API ImGuiTableColumnSettings* ImGuiTableSettings_GetColumnSettings(ImGuiTableSettings* self); +CIMGUI_API ImGuiWindow* igGetCurrentWindowRead(void); +CIMGUI_API ImGuiWindow* igGetCurrentWindow(void); +CIMGUI_API ImGuiWindow* igFindWindowByID(ImGuiID id); +CIMGUI_API ImGuiWindow* igFindWindowByName(const char* name); +CIMGUI_API void igUpdateWindowParentAndRootLinks(ImGuiWindow* window,ImGuiWindowFlags flags,ImGuiWindow* parent_window); +CIMGUI_API void igCalcWindowNextAutoFitSize(ImVec2 *pOut,ImGuiWindow* window); +CIMGUI_API bool igIsWindowChildOf(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy); +CIMGUI_API bool igIsWindowWithinBeginStackOf(ImGuiWindow* window,ImGuiWindow* potential_parent); +CIMGUI_API bool igIsWindowAbove(ImGuiWindow* potential_above,ImGuiWindow* potential_below); +CIMGUI_API bool igIsWindowNavFocusable(ImGuiWindow* window); +CIMGUI_API void igSetWindowPos_WindowPtr(ImGuiWindow* window,const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_WindowPtr(ImGuiWindow* window,const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_WindowPtr(ImGuiWindow* window,bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowHitTestHole(ImGuiWindow* window,const ImVec2 pos,const ImVec2 size); +CIMGUI_API void igWindowRectAbsToRel(ImRect *pOut,ImGuiWindow* window,const ImRect r); +CIMGUI_API void igWindowRectRelToAbs(ImRect *pOut,ImGuiWindow* window,const ImRect r); +CIMGUI_API void igFocusWindow(ImGuiWindow* window); +CIMGUI_API void igFocusTopMostWindowUnderOne(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window); +CIMGUI_API void igBringWindowToFocusFront(ImGuiWindow* window); +CIMGUI_API void igBringWindowToDisplayFront(ImGuiWindow* window); +CIMGUI_API void igBringWindowToDisplayBack(ImGuiWindow* window); +CIMGUI_API void igBringWindowToDisplayBehind(ImGuiWindow* window,ImGuiWindow* above_window); +CIMGUI_API int igFindWindowDisplayIndex(ImGuiWindow* window); +CIMGUI_API ImGuiWindow* igFindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window); +CIMGUI_API void igSetCurrentFont(ImFont* font); +CIMGUI_API ImFont* igGetDefaultFont(void); +CIMGUI_API ImDrawList* igGetForegroundDrawList_WindowPtr(ImGuiWindow* window); +CIMGUI_API void igInitialize(void); +CIMGUI_API void igShutdown(void); +CIMGUI_API void igUpdateInputEvents(bool trickle_fast_inputs); +CIMGUI_API void igUpdateHoveredWindowAndCaptureFlags(void); +CIMGUI_API void igStartMouseMovingWindow(ImGuiWindow* window); +CIMGUI_API void igStartMouseMovingWindowOrNode(ImGuiWindow* window,ImGuiDockNode* node,bool undock_floating_node); +CIMGUI_API void igUpdateMouseMovingWindowNewFrame(void); +CIMGUI_API void igUpdateMouseMovingWindowEndFrame(void); +CIMGUI_API ImGuiID igAddContextHook(ImGuiContext* context,const ImGuiContextHook* hook); +CIMGUI_API void igRemoveContextHook(ImGuiContext* context,ImGuiID hook_to_remove); +CIMGUI_API void igCallContextHooks(ImGuiContext* context,ImGuiContextHookType type); +CIMGUI_API void igTranslateWindowsInViewport(ImGuiViewportP* viewport,const ImVec2 old_pos,const ImVec2 new_pos); +CIMGUI_API void igScaleWindowsInViewport(ImGuiViewportP* viewport,float scale); +CIMGUI_API void igDestroyPlatformWindow(ImGuiViewportP* viewport); +CIMGUI_API void igSetWindowViewport(ImGuiWindow* window,ImGuiViewportP* viewport); +CIMGUI_API void igSetCurrentViewport(ImGuiWindow* window,ImGuiViewportP* viewport); +CIMGUI_API const ImGuiPlatformMonitor* igGetViewportPlatformMonitor(ImGuiViewport* viewport); +CIMGUI_API ImGuiViewportP* igFindHoveredViewportFromPlatformWindowStack(const ImVec2 mouse_platform_pos); +CIMGUI_API void igMarkIniSettingsDirty_Nil(void); +CIMGUI_API void igMarkIniSettingsDirty_WindowPtr(ImGuiWindow* window); +CIMGUI_API void igClearIniSettings(void); +CIMGUI_API ImGuiWindowSettings* igCreateNewWindowSettings(const char* name); +CIMGUI_API ImGuiWindowSettings* igFindWindowSettings(ImGuiID id); +CIMGUI_API ImGuiWindowSettings* igFindOrCreateWindowSettings(const char* name); +CIMGUI_API void igAddSettingsHandler(const ImGuiSettingsHandler* handler); +CIMGUI_API void igRemoveSettingsHandler(const char* type_name); +CIMGUI_API ImGuiSettingsHandler* igFindSettingsHandler(const char* type_name); +CIMGUI_API void igLocalizeRegisterEntries(const ImGuiLocEntry* entries,int count); +CIMGUI_API const char* igLocalizeGetMsg(ImGuiLocKey key); +CIMGUI_API void igSetScrollX_WindowPtr(ImGuiWindow* window,float scroll_x); +CIMGUI_API void igSetScrollY_WindowPtr(ImGuiWindow* window,float scroll_y); +CIMGUI_API void igSetScrollFromPosX_WindowPtr(ImGuiWindow* window,float local_x,float center_x_ratio); +CIMGUI_API void igSetScrollFromPosY_WindowPtr(ImGuiWindow* window,float local_y,float center_y_ratio); +CIMGUI_API void igScrollToItem(ImGuiScrollFlags flags); +CIMGUI_API void igScrollToRect(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags); +CIMGUI_API void igScrollToRectEx(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags); +CIMGUI_API void igScrollToBringRectIntoView(ImGuiWindow* window,const ImRect rect); +CIMGUI_API ImGuiID igGetItemID(void); +CIMGUI_API ImGuiItemStatusFlags igGetItemStatusFlags(void); +CIMGUI_API ImGuiItemFlags igGetItemFlags(void); +CIMGUI_API ImGuiID igGetActiveID(void); +CIMGUI_API ImGuiID igGetFocusID(void); +CIMGUI_API void igSetActiveID(ImGuiID id,ImGuiWindow* window); +CIMGUI_API void igSetFocusID(ImGuiID id,ImGuiWindow* window); +CIMGUI_API void igClearActiveID(void); +CIMGUI_API ImGuiID igGetHoveredID(void); +CIMGUI_API void igSetHoveredID(ImGuiID id); +CIMGUI_API void igKeepAliveID(ImGuiID id); +CIMGUI_API void igMarkItemEdited(ImGuiID id); +CIMGUI_API void igPushOverrideID(ImGuiID id); +CIMGUI_API ImGuiID igGetIDWithSeed(const char* str_id_begin,const char* str_id_end,ImGuiID seed); +CIMGUI_API void igItemSize_Vec2(const ImVec2 size,float text_baseline_y); +CIMGUI_API void igItemSize_Rect(const ImRect bb,float text_baseline_y); +CIMGUI_API bool igItemAdd(const ImRect bb,ImGuiID id,const ImRect* nav_bb,ImGuiItemFlags extra_flags); +CIMGUI_API bool igItemHoverable(const ImRect bb,ImGuiID id); +CIMGUI_API bool igIsClippedEx(const ImRect bb,ImGuiID id); +CIMGUI_API void igSetLastItemData(ImGuiID item_id,ImGuiItemFlags in_flags,ImGuiItemStatusFlags status_flags,const ImRect item_rect); +CIMGUI_API void igCalcItemSize(ImVec2 *pOut,ImVec2 size,float default_w,float default_h); +CIMGUI_API float igCalcWrapWidthForPos(const ImVec2 pos,float wrap_pos_x); +CIMGUI_API void igPushMultiItemsWidths(int components,float width_full); +CIMGUI_API bool igIsItemToggledSelection(void); +CIMGUI_API void igGetContentRegionMaxAbs(ImVec2 *pOut); +CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items,int count,float width_excess); +CIMGUI_API void igPushItemFlag(ImGuiItemFlags option,bool enabled); +CIMGUI_API void igPopItemFlag(void); +CIMGUI_API void igLogBegin(ImGuiLogType type,int auto_open_depth); +CIMGUI_API void igLogToBuffer(int auto_open_depth); +CIMGUI_API void igLogRenderedText(const ImVec2* ref_pos,const char* text,const char* text_end); +CIMGUI_API void igLogSetNextTextDecoration(const char* prefix,const char* suffix); +CIMGUI_API bool igBeginChildEx(const char* name,ImGuiID id,const ImVec2 size_arg,bool border,ImGuiWindowFlags flags); +CIMGUI_API void igOpenPopupEx(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igClosePopupToLevel(int remaining,bool restore_focus_to_window_under_popup); +CIMGUI_API void igClosePopupsOverWindow(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup); +CIMGUI_API void igClosePopupsExceptModals(void); +CIMGUI_API bool igIsPopupOpen_ID(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igBeginPopupEx(ImGuiID id,ImGuiWindowFlags extra_flags); +CIMGUI_API void igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags); +CIMGUI_API void igGetPopupAllowedExtentRect(ImRect *pOut,ImGuiWindow* window); +CIMGUI_API ImGuiWindow* igGetTopMostPopupModal(void); +CIMGUI_API ImGuiWindow* igGetTopMostAndVisiblePopupModal(void); +CIMGUI_API void igFindBestWindowPosForPopup(ImVec2 *pOut,ImGuiWindow* window); +CIMGUI_API void igFindBestWindowPosForPopupEx(ImVec2 *pOut,const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy); +CIMGUI_API bool igBeginViewportSideBar(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags); +CIMGUI_API bool igBeginMenuEx(const char* label,const char* icon,bool enabled); +CIMGUI_API bool igMenuItemEx(const char* label,const char* icon,const char* shortcut,bool selected,bool enabled); +CIMGUI_API bool igBeginComboPopup(ImGuiID popup_id,const ImRect bb,ImGuiComboFlags flags); +CIMGUI_API bool igBeginComboPreview(void); +CIMGUI_API void igEndComboPreview(void); +CIMGUI_API void igNavInitWindow(ImGuiWindow* window,bool force_reinit); +CIMGUI_API void igNavInitRequestApplyResult(void); +CIMGUI_API bool igNavMoveRequestButNoResultYet(void); +CIMGUI_API void igNavMoveRequestSubmit(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags); +CIMGUI_API void igNavMoveRequestForward(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags); +CIMGUI_API void igNavMoveRequestResolveWithLastItem(ImGuiNavItemData* result); +CIMGUI_API void igNavMoveRequestCancel(void); +CIMGUI_API void igNavMoveRequestApplyResult(void); +CIMGUI_API void igNavMoveRequestTryWrapping(ImGuiWindow* window,ImGuiNavMoveFlags move_flags); +CIMGUI_API void igActivateItem(ImGuiID id); +CIMGUI_API void igSetNavWindow(ImGuiWindow* window); +CIMGUI_API void igSetNavID(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel); +CIMGUI_API bool igIsNamedKey(ImGuiKey key); +CIMGUI_API bool igIsNamedKeyOrModKey(ImGuiKey key); +CIMGUI_API bool igIsLegacyKey(ImGuiKey key); +CIMGUI_API bool igIsKeyboardKey(ImGuiKey key); +CIMGUI_API bool igIsGamepadKey(ImGuiKey key); +CIMGUI_API bool igIsMouseKey(ImGuiKey key); +CIMGUI_API bool igIsAliasKey(ImGuiKey key); +CIMGUI_API ImGuiKey igConvertSingleModFlagToKey(ImGuiKey key); +CIMGUI_API ImGuiKeyData* igGetKeyData(ImGuiKey key); +CIMGUI_API void igGetKeyChordName(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size); +CIMGUI_API ImGuiKey igMouseButtonToKey(ImGuiMouseButton button); +CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button,float lock_threshold); +CIMGUI_API void igGetKeyVector2d(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down); +CIMGUI_API float igGetNavTweakPressedAmount(ImGuiAxis axis); +CIMGUI_API int igCalcTypematicRepeatAmount(float t0,float t1,float repeat_delay,float repeat_rate); +CIMGUI_API void igGetTypematicRepeatRate(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate); +CIMGUI_API void igSetActiveIdUsingAllKeyboardKeys(void); +CIMGUI_API bool igIsActiveIdUsingNavDir(ImGuiDir dir); +CIMGUI_API ImGuiID igGetKeyOwner(ImGuiKey key); +CIMGUI_API void igSetKeyOwner(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API void igSetItemKeyOwner(ImGuiKey key,ImGuiInputFlags flags); +CIMGUI_API bool igTestKeyOwner(ImGuiKey key,ImGuiID owner_id); +CIMGUI_API ImGuiKeyOwnerData* igGetKeyOwnerData(ImGuiKey key); +CIMGUI_API bool igIsKeyDown_ID(ImGuiKey key,ImGuiID owner_id); +CIMGUI_API bool igIsKeyPressed_ID(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igIsKeyReleased_ID(ImGuiKey key,ImGuiID owner_id); +CIMGUI_API bool igIsMouseDown_ID(ImGuiMouseButton button,ImGuiID owner_id); +CIMGUI_API bool igIsMouseClicked_ID(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igIsMouseReleased_ID(ImGuiMouseButton button,ImGuiID owner_id); +CIMGUI_API bool igShortcut(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igSetShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igTestShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id); +CIMGUI_API ImGuiKeyRoutingData* igGetShortcutRoutingData(ImGuiKeyChord key_chord); +CIMGUI_API void igDockContextInitialize(ImGuiContext* ctx); +CIMGUI_API void igDockContextShutdown(ImGuiContext* ctx); +CIMGUI_API void igDockContextClearNodes(ImGuiContext* ctx,ImGuiID root_id,bool clear_settings_refs); +CIMGUI_API void igDockContextRebuildNodes(ImGuiContext* ctx); +CIMGUI_API void igDockContextNewFrameUpdateUndocking(ImGuiContext* ctx); +CIMGUI_API void igDockContextNewFrameUpdateDocking(ImGuiContext* ctx); +CIMGUI_API void igDockContextEndFrame(ImGuiContext* ctx); +CIMGUI_API ImGuiID igDockContextGenNodeID(ImGuiContext* ctx); +CIMGUI_API void igDockContextQueueDock(ImGuiContext* ctx,ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,float split_ratio,bool split_outer); +CIMGUI_API void igDockContextQueueUndockWindow(ImGuiContext* ctx,ImGuiWindow* window); +CIMGUI_API void igDockContextQueueUndockNode(ImGuiContext* ctx,ImGuiDockNode* node); +CIMGUI_API bool igDockContextCalcDropPosForDocking(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos); +CIMGUI_API ImGuiDockNode* igDockContextFindNodeByID(ImGuiContext* ctx,ImGuiID id); +CIMGUI_API bool igDockNodeBeginAmendTabBar(ImGuiDockNode* node); +CIMGUI_API void igDockNodeEndAmendTabBar(void); +CIMGUI_API ImGuiDockNode* igDockNodeGetRootNode(ImGuiDockNode* node); +CIMGUI_API bool igDockNodeIsInHierarchyOf(ImGuiDockNode* node,ImGuiDockNode* parent); +CIMGUI_API int igDockNodeGetDepth(const ImGuiDockNode* node); +CIMGUI_API ImGuiID igDockNodeGetWindowMenuButtonId(const ImGuiDockNode* node); +CIMGUI_API ImGuiDockNode* igGetWindowDockNode(void); +CIMGUI_API bool igGetWindowAlwaysWantOwnTabBar(ImGuiWindow* window); +CIMGUI_API void igBeginDocked(ImGuiWindow* window,bool* p_open); +CIMGUI_API void igBeginDockableDragDropSource(ImGuiWindow* window); +CIMGUI_API void igBeginDockableDragDropTarget(ImGuiWindow* window); +CIMGUI_API void igSetWindowDock(ImGuiWindow* window,ImGuiID dock_id,ImGuiCond cond); +CIMGUI_API void igDockBuilderDockWindow(const char* window_name,ImGuiID node_id); +CIMGUI_API ImGuiDockNode* igDockBuilderGetNode(ImGuiID node_id); +CIMGUI_API ImGuiDockNode* igDockBuilderGetCentralNode(ImGuiID node_id); +CIMGUI_API ImGuiID igDockBuilderAddNode(ImGuiID node_id,ImGuiDockNodeFlags flags); +CIMGUI_API void igDockBuilderRemoveNode(ImGuiID node_id); +CIMGUI_API void igDockBuilderRemoveNodeDockedWindows(ImGuiID node_id,bool clear_settings_refs); +CIMGUI_API void igDockBuilderRemoveNodeChildNodes(ImGuiID node_id); +CIMGUI_API void igDockBuilderSetNodePos(ImGuiID node_id,ImVec2 pos); +CIMGUI_API void igDockBuilderSetNodeSize(ImGuiID node_id,ImVec2 size); +CIMGUI_API ImGuiID igDockBuilderSplitNode(ImGuiID node_id,ImGuiDir split_dir,float size_ratio_for_node_at_dir,ImGuiID* out_id_at_dir,ImGuiID* out_id_at_opposite_dir); +CIMGUI_API void igDockBuilderCopyDockSpace(ImGuiID src_dockspace_id,ImGuiID dst_dockspace_id,ImVector_const_charPtr* in_window_remap_pairs); +CIMGUI_API void igDockBuilderCopyNode(ImGuiID src_node_id,ImGuiID dst_node_id,ImVector_ImGuiID* out_node_remap_pairs); +CIMGUI_API void igDockBuilderCopyWindowSettings(const char* src_name,const char* dst_name); +CIMGUI_API void igDockBuilderFinish(ImGuiID node_id); +CIMGUI_API void igPushFocusScope(ImGuiID id); +CIMGUI_API void igPopFocusScope(void); +CIMGUI_API ImGuiID igGetCurrentFocusScope(void); +CIMGUI_API bool igIsDragDropActive(void); +CIMGUI_API bool igBeginDragDropTargetCustom(const ImRect bb,ImGuiID id); +CIMGUI_API void igClearDragDrop(void); +CIMGUI_API bool igIsDragDropPayloadBeingAccepted(void); +CIMGUI_API void igRenderDragDropTargetRect(const ImRect bb); +CIMGUI_API void igSetWindowClipRectBeforeSetChannel(ImGuiWindow* window,const ImRect clip_rect); +CIMGUI_API void igBeginColumns(const char* str_id,int count,ImGuiOldColumnFlags flags); +CIMGUI_API void igEndColumns(void); +CIMGUI_API void igPushColumnClipRect(int column_index); +CIMGUI_API void igPushColumnsBackground(void); +CIMGUI_API void igPopColumnsBackground(void); +CIMGUI_API ImGuiID igGetColumnsID(const char* str_id,int count); +CIMGUI_API ImGuiOldColumns* igFindOrCreateColumns(ImGuiWindow* window,ImGuiID id); +CIMGUI_API float igGetColumnOffsetFromNorm(const ImGuiOldColumns* columns,float offset_norm); +CIMGUI_API float igGetColumnNormFromOffset(const ImGuiOldColumns* columns,float offset); +CIMGUI_API void igTableOpenContextMenu(int column_n); +CIMGUI_API void igTableSetColumnWidth(int column_n,float width); +CIMGUI_API void igTableSetColumnSortDirection(int column_n,ImGuiSortDirection sort_direction,bool append_to_sort_specs); +CIMGUI_API int igTableGetHoveredColumn(void); +CIMGUI_API float igTableGetHeaderRowHeight(void); +CIMGUI_API void igTablePushBackgroundChannel(void); +CIMGUI_API void igTablePopBackgroundChannel(void); +CIMGUI_API ImGuiTable* igGetCurrentTable(void); +CIMGUI_API ImGuiTable* igTableFindByID(ImGuiID id); +CIMGUI_API bool igBeginTableEx(const char* name,ImGuiID id,int columns_count,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width); +CIMGUI_API void igTableBeginInitMemory(ImGuiTable* table,int columns_count); +CIMGUI_API void igTableBeginApplyRequests(ImGuiTable* table); +CIMGUI_API void igTableSetupDrawChannels(ImGuiTable* table); +CIMGUI_API void igTableUpdateLayout(ImGuiTable* table); +CIMGUI_API void igTableUpdateBorders(ImGuiTable* table); +CIMGUI_API void igTableUpdateColumnsWeightFromWidth(ImGuiTable* table); +CIMGUI_API void igTableDrawBorders(ImGuiTable* table); +CIMGUI_API void igTableDrawContextMenu(ImGuiTable* table); +CIMGUI_API bool igTableBeginContextMenuPopup(ImGuiTable* table); +CIMGUI_API void igTableMergeDrawChannels(ImGuiTable* table); +CIMGUI_API ImGuiTableInstanceData* igTableGetInstanceData(ImGuiTable* table,int instance_no); +CIMGUI_API void igTableSortSpecsSanitize(ImGuiTable* table); +CIMGUI_API void igTableSortSpecsBuild(ImGuiTable* table); +CIMGUI_API ImGuiSortDirection igTableGetColumnNextSortDirection(ImGuiTableColumn* column); +CIMGUI_API void igTableFixColumnSortDirection(ImGuiTable* table,ImGuiTableColumn* column); +CIMGUI_API float igTableGetColumnWidthAuto(ImGuiTable* table,ImGuiTableColumn* column); +CIMGUI_API void igTableBeginRow(ImGuiTable* table); +CIMGUI_API void igTableEndRow(ImGuiTable* table); +CIMGUI_API void igTableBeginCell(ImGuiTable* table,int column_n); +CIMGUI_API void igTableEndCell(ImGuiTable* table); +CIMGUI_API void igTableGetCellBgRect(ImRect *pOut,const ImGuiTable* table,int column_n); +CIMGUI_API const char* igTableGetColumnName_TablePtr(const ImGuiTable* table,int column_n); +CIMGUI_API ImGuiID igTableGetColumnResizeID(const ImGuiTable* table,int column_n,int instance_no); +CIMGUI_API float igTableGetMaxColumnWidth(const ImGuiTable* table,int column_n); +CIMGUI_API void igTableSetColumnWidthAutoSingle(ImGuiTable* table,int column_n); +CIMGUI_API void igTableSetColumnWidthAutoAll(ImGuiTable* table); +CIMGUI_API void igTableRemove(ImGuiTable* table); +CIMGUI_API void igTableGcCompactTransientBuffers_TablePtr(ImGuiTable* table); +CIMGUI_API void igTableGcCompactTransientBuffers_TableTempDataPtr(ImGuiTableTempData* table); +CIMGUI_API void igTableGcCompactSettings(void); +CIMGUI_API void igTableLoadSettings(ImGuiTable* table); +CIMGUI_API void igTableSaveSettings(ImGuiTable* table); +CIMGUI_API void igTableResetSettings(ImGuiTable* table); +CIMGUI_API ImGuiTableSettings* igTableGetBoundSettings(ImGuiTable* table); +CIMGUI_API void igTableSettingsAddSettingsHandler(void); +CIMGUI_API ImGuiTableSettings* igTableSettingsCreate(ImGuiID id,int columns_count); +CIMGUI_API ImGuiTableSettings* igTableSettingsFindByID(ImGuiID id); +CIMGUI_API bool igBeginTabBarEx(ImGuiTabBar* tab_bar,const ImRect bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node); +CIMGUI_API ImGuiTabItem* igTabBarFindTabByID(ImGuiTabBar* tab_bar,ImGuiID tab_id); +CIMGUI_API ImGuiTabItem* igTabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar); +CIMGUI_API void igTabBarAddTab(ImGuiTabBar* tab_bar,ImGuiTabItemFlags tab_flags,ImGuiWindow* window); +CIMGUI_API void igTabBarRemoveTab(ImGuiTabBar* tab_bar,ImGuiID tab_id); +CIMGUI_API void igTabBarCloseTab(ImGuiTabBar* tab_bar,ImGuiTabItem* tab); +CIMGUI_API void igTabBarQueueReorder(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,int offset); +CIMGUI_API void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,ImVec2 mouse_pos); +CIMGUI_API bool igTabBarProcessReorder(ImGuiTabBar* tab_bar); +CIMGUI_API bool igTabItemEx(ImGuiTabBar* tab_bar,const char* label,bool* p_open,ImGuiTabItemFlags flags,ImGuiWindow* docked_window); +CIMGUI_API void igTabItemCalcSize_Str(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker); +CIMGUI_API void igTabItemCalcSize_WindowPtr(ImVec2 *pOut,ImGuiWindow* window); +CIMGUI_API void igTabItemBackground(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImU32 col); +CIMGUI_API void igTabItemLabelAndCloseButton(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImVec2 frame_padding,const char* label,ImGuiID tab_id,ImGuiID close_button_id,bool is_contents_visible,bool* out_just_closed,bool* out_text_clipped); +CIMGUI_API void igRenderText(ImVec2 pos,const char* text,const char* text_end,bool hide_text_after_hash); +CIMGUI_API void igRenderTextWrapped(ImVec2 pos,const char* text,const char* text_end,float wrap_width); +CIMGUI_API void igRenderTextClipped(const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect); +CIMGUI_API void igRenderTextClippedEx(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect); +CIMGUI_API void igRenderTextEllipsis(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,float clip_max_x,float ellipsis_max_x,const char* text,const char* text_end,const ImVec2* text_size_if_known); +CIMGUI_API void igRenderFrame(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border,float rounding); +CIMGUI_API void igRenderFrameBorder(ImVec2 p_min,ImVec2 p_max,float rounding); +CIMGUI_API void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,ImDrawFlags flags); +CIMGUI_API void igRenderNavHighlight(const ImRect bb,ImGuiID id,ImGuiNavHighlightFlags flags); +CIMGUI_API const char* igFindRenderedTextEnd(const char* text,const char* text_end); +CIMGUI_API void igRenderMouseCursor(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow); +CIMGUI_API void igRenderArrow(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale); +CIMGUI_API void igRenderBullet(ImDrawList* draw_list,ImVec2 pos,ImU32 col); +CIMGUI_API void igRenderCheckMark(ImDrawList* draw_list,ImVec2 pos,ImU32 col,float sz); +CIMGUI_API void igRenderArrowPointingAt(ImDrawList* draw_list,ImVec2 pos,ImVec2 half_sz,ImGuiDir direction,ImU32 col); +CIMGUI_API void igRenderArrowDockMenu(ImDrawList* draw_list,ImVec2 p_min,float sz,ImU32 col); +CIMGUI_API void igRenderRectFilledRangeH(ImDrawList* draw_list,const ImRect rect,ImU32 col,float x_start_norm,float x_end_norm,float rounding); +CIMGUI_API void igRenderRectFilledWithHole(ImDrawList* draw_list,const ImRect outer,const ImRect inner,ImU32 col,float rounding); +CIMGUI_API ImDrawFlags igCalcRoundingFlagsForRectInRect(const ImRect r_in,const ImRect r_outer,float threshold); +CIMGUI_API void igTextEx(const char* text,const char* text_end,ImGuiTextFlags flags); +CIMGUI_API bool igButtonEx(const char* label,const ImVec2 size_arg,ImGuiButtonFlags flags); +CIMGUI_API bool igCloseButton(ImGuiID id,const ImVec2 pos); +CIMGUI_API bool igCollapseButton(ImGuiID id,const ImVec2 pos,ImGuiDockNode* dock_node); +CIMGUI_API bool igArrowButtonEx(const char* str_id,ImGuiDir dir,ImVec2 size_arg,ImGuiButtonFlags flags); +CIMGUI_API void igScrollbar(ImGuiAxis axis); +CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,ImS64* p_scroll_v,ImS64 avail_v,ImS64 contents_v,ImDrawFlags flags); +CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col); +CIMGUI_API void igGetWindowScrollbarRect(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis); +CIMGUI_API ImGuiID igGetWindowScrollbarID(ImGuiWindow* window,ImGuiAxis axis); +CIMGUI_API ImGuiID igGetWindowResizeCornerID(ImGuiWindow* window,int n); +CIMGUI_API ImGuiID igGetWindowResizeBorderID(ImGuiWindow* window,ImGuiDir dir); +CIMGUI_API void igSeparatorEx(ImGuiSeparatorFlags flags); +CIMGUI_API bool igCheckboxFlags_S64Ptr(const char* label,ImS64* flags,ImS64 flags_value); +CIMGUI_API bool igCheckboxFlags_U64Ptr(const char* label,ImU64* flags,ImU64 flags_value); +CIMGUI_API bool igButtonBehavior(const ImRect bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags); +CIMGUI_API bool igDragBehavior(ImGuiID id,ImGuiDataType data_type,void* p_v,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderBehavior(const ImRect bb,ImGuiID id,ImGuiDataType data_type,void* p_v,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags,ImRect* out_grab_bb); +CIMGUI_API bool igSplitterBehavior(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* size1,float* size2,float min_size1,float min_size2,float hover_extend,float hover_visibility_delay,ImU32 bg_col); +CIMGUI_API bool igTreeNodeBehavior(ImGuiID id,ImGuiTreeNodeFlags flags,const char* label,const char* label_end); +CIMGUI_API void igTreePushOverrideID(ImGuiID id); +CIMGUI_API void igTreeNodeSetOpen(ImGuiID id,bool open); +CIMGUI_API bool igTreeNodeUpdateNextOpen(ImGuiID id,ImGuiTreeNodeFlags flags); +CIMGUI_API const ImGuiDataTypeInfo* igDataTypeGetInfo(ImGuiDataType data_type); +CIMGUI_API int igDataTypeFormatString(char* buf,int buf_size,ImGuiDataType data_type,const void* p_data,const char* format); +CIMGUI_API void igDataTypeApplyOp(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2); +CIMGUI_API bool igDataTypeApplyFromText(const char* buf,ImGuiDataType data_type,void* p_data,const char* format); +CIMGUI_API int igDataTypeCompare(ImGuiDataType data_type,const void* arg_1,const void* arg_2); +CIMGUI_API bool igDataTypeClamp(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max); +CIMGUI_API bool igInputTextEx(const char* label,const char* hint,char* buf,int buf_size,const ImVec2 size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igTempInputText(const ImRect bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags); +CIMGUI_API bool igTempInputScalar(const ImRect bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min,const void* p_clamp_max); +CIMGUI_API bool igTempInputIsActive(ImGuiID id); +CIMGUI_API ImGuiInputTextState* igGetInputTextState(ImGuiID id); +CIMGUI_API void igColorTooltip(const char* text,const float* col,ImGuiColorEditFlags flags); +CIMGUI_API void igColorEditOptionsPopup(const float* col,ImGuiColorEditFlags flags); +CIMGUI_API void igColorPickerOptionsPopup(const float* ref_col,ImGuiColorEditFlags flags); +CIMGUI_API int igPlotEx(ImGuiPlotType plot_type,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 frame_size); +CIMGUI_API void igShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1); +CIMGUI_API void igShadeVertsLinearUV(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,bool clamp); +CIMGUI_API void igGcCompactTransientMiscBuffers(void); +CIMGUI_API void igGcCompactTransientWindowBuffers(ImGuiWindow* window); +CIMGUI_API void igGcAwakeTransientWindowBuffers(ImGuiWindow* window); +CIMGUI_API void igDebugLog(const char* fmt,...); +CIMGUI_API void igDebugLogV(const char* fmt,va_list args); +CIMGUI_API void igErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback,void* user_data); +CIMGUI_API void igErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback,void* user_data); +CIMGUI_API void igErrorCheckUsingSetCursorPosToExtendParentBoundaries(void); +CIMGUI_API void igDebugLocateItem(ImGuiID target_id); +CIMGUI_API void igDebugLocateItemOnHover(ImGuiID target_id); +CIMGUI_API void igDebugLocateItemResolveWithLastItem(void); +CIMGUI_API void igDebugDrawItemRect(ImU32 col); +CIMGUI_API void igDebugStartItemPicker(void); +CIMGUI_API void igShowFontAtlas(ImFontAtlas* atlas); +CIMGUI_API void igDebugHookIdInfo(ImGuiID id,ImGuiDataType data_type,const void* data_id,const void* data_id_end); +CIMGUI_API void igDebugNodeColumns(ImGuiOldColumns* columns); +CIMGUI_API void igDebugNodeDockNode(ImGuiDockNode* node,const char* label); +CIMGUI_API void igDebugNodeDrawList(ImGuiWindow* window,ImGuiViewportP* viewport,const ImDrawList* draw_list,const char* label); +CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb); +CIMGUI_API void igDebugNodeFont(ImFont* font); +CIMGUI_API void igDebugNodeFontGlyph(ImFont* font,const ImFontGlyph* glyph); +CIMGUI_API void igDebugNodeStorage(ImGuiStorage* storage,const char* label); +CIMGUI_API void igDebugNodeTabBar(ImGuiTabBar* tab_bar,const char* label); +CIMGUI_API void igDebugNodeTable(ImGuiTable* table); +CIMGUI_API void igDebugNodeTableSettings(ImGuiTableSettings* settings); +CIMGUI_API void igDebugNodeInputTextState(ImGuiInputTextState* state); +CIMGUI_API void igDebugNodeWindow(ImGuiWindow* window,const char* label); +CIMGUI_API void igDebugNodeWindowSettings(ImGuiWindowSettings* settings); +CIMGUI_API void igDebugNodeWindowsList(ImVector_ImGuiWindowPtr* windows,const char* label); +CIMGUI_API void igDebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows,int windows_size,ImGuiWindow* parent_in_begin_stack); +CIMGUI_API void igDebugNodeViewport(ImGuiViewportP* viewport); +CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb); +CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key,bool repeat); +CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas); +CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent); +CIMGUI_API void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas,void* stbrp_context_opaque); +CIMGUI_API void igImFontAtlasBuildFinish(ImFontAtlas* atlas); +CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value); +CIMGUI_API void igImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value); +CIMGUI_API void igImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256],float in_multiply_factor); +CIMGUI_API void igImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride); CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType(void); CIMGUI_API void ImGuiFreeType_SetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data); diff --git a/imgui-sys/third-party/imgui-docking-freetype/definitions.json b/imgui-sys/third-party/imgui-docking-freetype/definitions.json index 34acf241a..31d51b744 100644 --- a/imgui-sys/third-party/imgui-docking-freetype/definitions.json +++ b/imgui-sys/third-party/imgui-docking-freetype/definitions.json @@ -1,1289 +1,1286 @@ { - "ImColor_HSV": [ + "ImBitArray_ClearAllBits": [ { - "args": "(ImColor *pOut,float h,float s,float v,float a)", + "args": "(ImBitArray* self)", "argsT": [ { - "name": "pOut", - "type": "ImColor*" - }, - { - "name": "h", - "type": "float" - }, - { - "name": "s", - "type": "float" - }, + "name": "self", + "type": "ImBitArray*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImBitArray_ClearAllBits", + "defaults": {}, + "funcname": "ClearAllBits", + "location": "imgui_internal:582", + "ov_cimguiname": "ImBitArray_ClearAllBits", + "ret": "void", + "signature": "()", + "stname": "ImBitArray", + "templated": true + } + ], + "ImBitArray_ClearBit": [ + { + "args": "(ImBitArray* self,int n)", + "argsT": [ { - "name": "v", - "type": "float" + "name": "self", + "type": "ImBitArray*" }, { - "name": "a", - "type": "float" + "name": "n", + "type": "int" } ], - "argsoriginal": "(float h,float s,float v,float a=1.0f)", - "call_args": "(h,s,v,a)", - "cimguiname": "ImColor_HSV", - "defaults": { - "a": "1.0f" - }, - "funcname": "HSV", - "is_static_function": true, - "location": "imgui:2472", - "nonUDT": 1, - "ov_cimguiname": "ImColor_HSV", + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImBitArray_ClearBit", + "defaults": {}, + "funcname": "ClearBit", + "location": "imgui_internal:586", + "ov_cimguiname": "ImBitArray_ClearBit", "ret": "void", - "signature": "(float,float,float,float)", - "stname": "ImColor" + "signature": "(int)", + "stname": "ImBitArray", + "templated": true } ], - "ImColor_ImColor": [ + "ImBitArray_ImBitArray": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImColor_ImColor", + "cimguiname": "ImBitArray_ImBitArray", "constructor": true, "defaults": {}, - "funcname": "ImColor", - "location": "imgui:2462", - "ov_cimguiname": "ImColor_ImColor_Nil", + "funcname": "ImBitArray", + "location": "imgui_internal:581", + "ov_cimguiname": "ImBitArray_ImBitArray", "signature": "()", - "stname": "ImColor" - }, + "stname": "ImBitArray", + "templated": true + } + ], + "ImBitArray_SetAllBits": [ { - "args": "(float r,float g,float b,float a)", + "args": "(ImBitArray* self)", "argsT": [ { - "name": "r", - "type": "float" - }, - { - "name": "g", - "type": "float" - }, - { - "name": "b", - "type": "float" - }, - { - "name": "a", - "type": "float" + "name": "self", + "type": "ImBitArray*" } ], - "argsoriginal": "(float r,float g,float b,float a=1.0f)", - "call_args": "(r,g,b,a)", - "cimguiname": "ImColor_ImColor", - "constructor": true, - "defaults": { - "a": "1.0f" - }, - "funcname": "ImColor", - "location": "imgui:2463", - "ov_cimguiname": "ImColor_ImColor_Float", - "signature": "(float,float,float,float)", - "stname": "ImColor" - }, + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImBitArray_SetAllBits", + "defaults": {}, + "funcname": "SetAllBits", + "location": "imgui_internal:583", + "ov_cimguiname": "ImBitArray_SetAllBits", + "ret": "void", + "signature": "()", + "stname": "ImBitArray", + "templated": true + } + ], + "ImBitArray_SetBit": [ { - "args": "(const ImVec4 col)", + "args": "(ImBitArray* self,int n)", "argsT": [ { - "name": "col", - "type": "const ImVec4" + "name": "self", + "type": "ImBitArray*" + }, + { + "name": "n", + "type": "int" } ], - "argsoriginal": "(const ImVec4& col)", - "call_args": "(col)", - "cimguiname": "ImColor_ImColor", - "constructor": true, + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImBitArray_SetBit", "defaults": {}, - "funcname": "ImColor", - "location": "imgui:2464", - "ov_cimguiname": "ImColor_ImColor_Vec4", - "signature": "(const ImVec4)", - "stname": "ImColor" - }, + "funcname": "SetBit", + "location": "imgui_internal:585", + "ov_cimguiname": "ImBitArray_SetBit", + "ret": "void", + "signature": "(int)", + "stname": "ImBitArray", + "templated": true + } + ], + "ImBitArray_SetBitRange": [ { - "args": "(int r,int g,int b,int a)", + "args": "(ImBitArray* self,int n,int n2)", "argsT": [ { - "name": "r", - "type": "int" - }, - { - "name": "g", - "type": "int" + "name": "self", + "type": "ImBitArray*" }, { - "name": "b", + "name": "n", "type": "int" }, { - "name": "a", + "name": "n2", "type": "int" } ], - "argsoriginal": "(int r,int g,int b,int a=255)", - "call_args": "(r,g,b,a)", - "cimguiname": "ImColor_ImColor", - "constructor": true, - "defaults": { - "a": "255" - }, - "funcname": "ImColor", - "location": "imgui:2465", - "ov_cimguiname": "ImColor_ImColor_Int", - "signature": "(int,int,int,int)", - "stname": "ImColor" - }, - { - "args": "(ImU32 rgba)", - "argsT": [ - { - "name": "rgba", - "type": "ImU32" - } - ], - "argsoriginal": "(ImU32 rgba)", - "call_args": "(rgba)", - "cimguiname": "ImColor_ImColor", - "constructor": true, + "argsoriginal": "(int n,int n2)", + "call_args": "(n,n2)", + "cimguiname": "ImBitArray_SetBitRange", "defaults": {}, - "funcname": "ImColor", - "location": "imgui:2466", - "ov_cimguiname": "ImColor_ImColor_U32", - "signature": "(ImU32)", - "stname": "ImColor" + "funcname": "SetBitRange", + "location": "imgui_internal:587", + "ov_cimguiname": "ImBitArray_SetBitRange", + "ret": "void", + "signature": "(int,int)", + "stname": "ImBitArray", + "templated": true } ], - "ImColor_SetHSV": [ + "ImBitArray_TestBit": [ { - "args": "(ImColor* self,float h,float s,float v,float a)", + "args": "(ImBitArray* self,int n)", "argsT": [ { "name": "self", - "type": "ImColor*" - }, - { - "name": "h", - "type": "float" - }, - { - "name": "s", - "type": "float" - }, - { - "name": "v", - "type": "float" + "type": "ImBitArray*" }, { - "name": "a", - "type": "float" + "name": "n", + "type": "int" } ], - "argsoriginal": "(float h,float s,float v,float a=1.0f)", - "call_args": "(h,s,v,a)", - "cimguiname": "ImColor_SetHSV", - "defaults": { - "a": "1.0f" - }, - "funcname": "SetHSV", - "location": "imgui:2471", - "ov_cimguiname": "ImColor_SetHSV", - "ret": "void", - "signature": "(float,float,float,float)", - "stname": "ImColor" + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImBitArray_TestBit", + "defaults": {}, + "funcname": "TestBit", + "location": "imgui_internal:584", + "ov_cimguiname": "ImBitArray_TestBit", + "ret": "bool", + "signature": "(int)const", + "stname": "ImBitArray", + "templated": true } ], - "ImColor_destroy": [ + "ImBitArray_destroy": [ { - "args": "(ImColor* self)", + "args": "(ImBitArray* self)", "argsT": [ { "name": "self", - "type": "ImColor*" + "type": "ImBitArray*" } ], "call_args": "(self)", - "cimguiname": "ImColor_destroy", + "cimguiname": "ImBitArray_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImColor_destroy", + "ov_cimguiname": "ImBitArray_destroy", "ret": "void", - "signature": "(ImColor*)", - "stname": "ImColor" + "signature": "(ImBitArray*)", + "stname": "ImBitArray", + "templated": true } ], - "ImDrawCmd_GetTexID": [ + "ImBitVector_Clear": [ { - "args": "(ImDrawCmd* self)", + "args": "(ImBitVector* self)", "argsT": [ { "name": "self", - "type": "ImDrawCmd*" + "type": "ImBitVector*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawCmd_GetTexID", - "defaults": {}, - "funcname": "GetTexID", - "location": "imgui:2520", - "ov_cimguiname": "ImDrawCmd_GetTexID", - "ret": "ImTextureID", - "signature": "()const", - "stname": "ImDrawCmd" - } - ], - "ImDrawCmd_ImDrawCmd": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawCmd_ImDrawCmd", - "constructor": true, + "cimguiname": "ImBitVector_Clear", "defaults": {}, - "funcname": "ImDrawCmd", - "location": "imgui:2517", - "ov_cimguiname": "ImDrawCmd_ImDrawCmd", + "funcname": "Clear", + "location": "imgui_internal:597", + "ov_cimguiname": "ImBitVector_Clear", + "ret": "void", "signature": "()", - "stname": "ImDrawCmd" + "stname": "ImBitVector" } ], - "ImDrawCmd_destroy": [ + "ImBitVector_ClearBit": [ { - "args": "(ImDrawCmd* self)", + "args": "(ImBitVector* self,int n)", "argsT": [ { "name": "self", - "type": "ImDrawCmd*" + "type": "ImBitVector*" + }, + { + "name": "n", + "type": "int" } ], - "call_args": "(self)", - "cimguiname": "ImDrawCmd_destroy", + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImBitVector_ClearBit", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImDrawCmd_destroy", + "funcname": "ClearBit", + "location": "imgui_internal:600", + "ov_cimguiname": "ImBitVector_ClearBit", "ret": "void", - "signature": "(ImDrawCmd*)", - "stname": "ImDrawCmd" + "signature": "(int)", + "stname": "ImBitVector" } ], - "ImDrawData_Clear": [ + "ImBitVector_Create": [ { - "args": "(ImDrawData* self)", + "args": "(ImBitVector* self,int sz)", "argsT": [ { "name": "self", - "type": "ImDrawData*" + "type": "ImBitVector*" + }, + { + "name": "sz", + "type": "int" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawData_Clear", + "argsoriginal": "(int sz)", + "call_args": "(sz)", + "cimguiname": "ImBitVector_Create", "defaults": {}, - "funcname": "Clear", - "location": "imgui:2754", - "ov_cimguiname": "ImDrawData_Clear", + "funcname": "Create", + "location": "imgui_internal:596", + "ov_cimguiname": "ImBitVector_Create", "ret": "void", - "signature": "()", - "stname": "ImDrawData" + "signature": "(int)", + "stname": "ImBitVector" } ], - "ImDrawData_DeIndexAllBuffers": [ + "ImBitVector_SetBit": [ { - "args": "(ImDrawData* self)", + "args": "(ImBitVector* self,int n)", "argsT": [ { "name": "self", - "type": "ImDrawData*" + "type": "ImBitVector*" + }, + { + "name": "n", + "type": "int" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawData_DeIndexAllBuffers", + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImBitVector_SetBit", "defaults": {}, - "funcname": "DeIndexAllBuffers", - "location": "imgui:2755", - "ov_cimguiname": "ImDrawData_DeIndexAllBuffers", + "funcname": "SetBit", + "location": "imgui_internal:599", + "ov_cimguiname": "ImBitVector_SetBit", "ret": "void", - "signature": "()", - "stname": "ImDrawData" + "signature": "(int)", + "stname": "ImBitVector" } ], - "ImDrawData_ImDrawData": [ + "ImBitVector_TestBit": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawData_ImDrawData", - "constructor": true, + "args": "(ImBitVector* self,int n)", + "argsT": [ + { + "name": "self", + "type": "ImBitVector*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImBitVector_TestBit", "defaults": {}, - "funcname": "ImDrawData", - "location": "imgui:2753", - "ov_cimguiname": "ImDrawData_ImDrawData", - "signature": "()", - "stname": "ImDrawData" + "funcname": "TestBit", + "location": "imgui_internal:598", + "ov_cimguiname": "ImBitVector_TestBit", + "ret": "bool", + "signature": "(int)const", + "stname": "ImBitVector" } ], - "ImDrawData_ScaleClipRects": [ + "ImChunkStream_alloc_chunk": [ { - "args": "(ImDrawData* self,const ImVec2 fb_scale)", + "args": "(ImChunkStream* self,size_t sz)", "argsT": [ { "name": "self", - "type": "ImDrawData*" + "type": "ImChunkStream*" }, { - "name": "fb_scale", - "type": "const ImVec2" + "name": "sz", + "type": "size_t" } ], - "argsoriginal": "(const ImVec2& fb_scale)", - "call_args": "(fb_scale)", - "cimguiname": "ImDrawData_ScaleClipRects", + "argsoriginal": "(size_t sz)", + "call_args": "(sz)", + "cimguiname": "ImChunkStream_alloc_chunk", "defaults": {}, - "funcname": "ScaleClipRects", - "location": "imgui:2756", - "ov_cimguiname": "ImDrawData_ScaleClipRects", - "ret": "void", - "signature": "(const ImVec2)", - "stname": "ImDrawData" + "funcname": "alloc_chunk", + "location": "imgui_internal:703", + "ov_cimguiname": "ImChunkStream_alloc_chunk", + "ret": "T*", + "signature": "(size_t)", + "stname": "ImChunkStream", + "templated": true } ], - "ImDrawData_destroy": [ + "ImChunkStream_begin": [ { - "args": "(ImDrawData* self)", + "args": "(ImChunkStream* self)", "argsT": [ { "name": "self", - "type": "ImDrawData*" + "type": "ImChunkStream*" } ], - "call_args": "(self)", - "cimguiname": "ImDrawData_destroy", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImChunkStream_begin", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImDrawData_destroy", - "ret": "void", - "signature": "(ImDrawData*)", - "stname": "ImDrawData" + "funcname": "begin", + "location": "imgui_internal:704", + "ov_cimguiname": "ImChunkStream_begin", + "ret": "T*", + "signature": "()", + "stname": "ImChunkStream", + "templated": true } ], - "ImDrawListSplitter_Clear": [ + "ImChunkStream_chunk_size": [ { - "args": "(ImDrawListSplitter* self)", + "args": "(ImChunkStream* self,const T* p)", "argsT": [ { "name": "self", - "type": "ImDrawListSplitter*" + "type": "ImChunkStream*" + }, + { + "name": "p", + "type": "const T*" + } + ], + "argsoriginal": "(const T* p)", + "call_args": "(p)", + "cimguiname": "ImChunkStream_chunk_size", + "defaults": {}, + "funcname": "chunk_size", + "location": "imgui_internal:706", + "ov_cimguiname": "ImChunkStream_chunk_size", + "ret": "int", + "signature": "(const T*)", + "stname": "ImChunkStream", + "templated": true + } + ], + "ImChunkStream_clear": [ + { + "args": "(ImChunkStream* self)", + "argsT": [ + { + "name": "self", + "type": "ImChunkStream*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawListSplitter_Clear", + "cimguiname": "ImChunkStream_clear", "defaults": {}, - "funcname": "Clear", - "location": "imgui:2565", - "ov_cimguiname": "ImDrawListSplitter_Clear", + "funcname": "clear", + "location": "imgui_internal:700", + "ov_cimguiname": "ImChunkStream_clear", "ret": "void", "signature": "()", - "stname": "ImDrawListSplitter" + "stname": "ImChunkStream", + "templated": true } ], - "ImDrawListSplitter_ClearFreeMemory": [ + "ImChunkStream_empty": [ { - "args": "(ImDrawListSplitter* self)", + "args": "(ImChunkStream* self)", "argsT": [ { "name": "self", - "type": "ImDrawListSplitter*" + "type": "ImChunkStream*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawListSplitter_ClearFreeMemory", + "cimguiname": "ImChunkStream_empty", "defaults": {}, - "funcname": "ClearFreeMemory", - "location": "imgui:2566", - "ov_cimguiname": "ImDrawListSplitter_ClearFreeMemory", - "ret": "void", - "signature": "()", - "stname": "ImDrawListSplitter" + "funcname": "empty", + "location": "imgui_internal:701", + "ov_cimguiname": "ImChunkStream_empty", + "ret": "bool", + "signature": "()const", + "stname": "ImChunkStream", + "templated": true } ], - "ImDrawListSplitter_ImDrawListSplitter": [ + "ImChunkStream_end": [ { - "args": "()", - "argsT": [], + "args": "(ImChunkStream* self)", + "argsT": [ + { + "name": "self", + "type": "ImChunkStream*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawListSplitter_ImDrawListSplitter", - "constructor": true, + "cimguiname": "ImChunkStream_end", "defaults": {}, - "funcname": "ImDrawListSplitter", - "location": "imgui:2563", - "ov_cimguiname": "ImDrawListSplitter_ImDrawListSplitter", + "funcname": "end", + "location": "imgui_internal:707", + "ov_cimguiname": "ImChunkStream_end", + "ret": "T*", "signature": "()", - "stname": "ImDrawListSplitter" + "stname": "ImChunkStream", + "templated": true } ], - "ImDrawListSplitter_Merge": [ + "ImChunkStream_next_chunk": [ { - "args": "(ImDrawListSplitter* self,ImDrawList* draw_list)", + "args": "(ImChunkStream* self,T* p)", "argsT": [ { "name": "self", - "type": "ImDrawListSplitter*" + "type": "ImChunkStream*" }, { - "name": "draw_list", - "type": "ImDrawList*" + "name": "p", + "type": "T*" } ], - "argsoriginal": "(ImDrawList* draw_list)", - "call_args": "(draw_list)", - "cimguiname": "ImDrawListSplitter_Merge", + "argsoriginal": "(T* p)", + "call_args": "(p)", + "cimguiname": "ImChunkStream_next_chunk", "defaults": {}, - "funcname": "Merge", - "location": "imgui:2568", - "ov_cimguiname": "ImDrawListSplitter_Merge", - "ret": "void", - "signature": "(ImDrawList*)", - "stname": "ImDrawListSplitter" + "funcname": "next_chunk", + "location": "imgui_internal:705", + "ov_cimguiname": "ImChunkStream_next_chunk", + "ret": "T*", + "signature": "(T*)", + "stname": "ImChunkStream", + "templated": true } ], - "ImDrawListSplitter_SetCurrentChannel": [ + "ImChunkStream_offset_from_ptr": [ { - "args": "(ImDrawListSplitter* self,ImDrawList* draw_list,int channel_idx)", + "args": "(ImChunkStream* self,const T* p)", "argsT": [ { "name": "self", - "type": "ImDrawListSplitter*" - }, - { - "name": "draw_list", - "type": "ImDrawList*" + "type": "ImChunkStream*" }, { - "name": "channel_idx", - "type": "int" + "name": "p", + "type": "const T*" } ], - "argsoriginal": "(ImDrawList* draw_list,int channel_idx)", - "call_args": "(draw_list,channel_idx)", - "cimguiname": "ImDrawListSplitter_SetCurrentChannel", + "argsoriginal": "(const T* p)", + "call_args": "(p)", + "cimguiname": "ImChunkStream_offset_from_ptr", "defaults": {}, - "funcname": "SetCurrentChannel", - "location": "imgui:2569", - "ov_cimguiname": "ImDrawListSplitter_SetCurrentChannel", - "ret": "void", - "signature": "(ImDrawList*,int)", - "stname": "ImDrawListSplitter" + "funcname": "offset_from_ptr", + "location": "imgui_internal:708", + "ov_cimguiname": "ImChunkStream_offset_from_ptr", + "ret": "int", + "signature": "(const T*)", + "stname": "ImChunkStream", + "templated": true } ], - "ImDrawListSplitter_Split": [ + "ImChunkStream_ptr_from_offset": [ { - "args": "(ImDrawListSplitter* self,ImDrawList* draw_list,int count)", + "args": "(ImChunkStream* self,int off)", "argsT": [ { "name": "self", - "type": "ImDrawListSplitter*" - }, - { - "name": "draw_list", - "type": "ImDrawList*" + "type": "ImChunkStream*" }, { - "name": "count", + "name": "off", "type": "int" } ], - "argsoriginal": "(ImDrawList* draw_list,int count)", - "call_args": "(draw_list,count)", - "cimguiname": "ImDrawListSplitter_Split", + "argsoriginal": "(int off)", + "call_args": "(off)", + "cimguiname": "ImChunkStream_ptr_from_offset", "defaults": {}, - "funcname": "Split", - "location": "imgui:2567", - "ov_cimguiname": "ImDrawListSplitter_Split", - "ret": "void", - "signature": "(ImDrawList*,int)", - "stname": "ImDrawListSplitter" + "funcname": "ptr_from_offset", + "location": "imgui_internal:709", + "ov_cimguiname": "ImChunkStream_ptr_from_offset", + "ret": "T*", + "signature": "(int)", + "stname": "ImChunkStream", + "templated": true } ], - "ImDrawListSplitter_destroy": [ + "ImChunkStream_size": [ { - "args": "(ImDrawListSplitter* self)", + "args": "(ImChunkStream* self)", "argsT": [ { "name": "self", - "type": "ImDrawListSplitter*" + "type": "ImChunkStream*" } ], - "call_args": "(self)", - "cimguiname": "ImDrawListSplitter_destroy", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImChunkStream_size", "defaults": {}, - "destructor": true, - "location": "imgui:2564", - "ov_cimguiname": "ImDrawListSplitter_destroy", - "realdestructor": true, - "ret": "void", - "signature": "(ImDrawListSplitter*)", - "stname": "ImDrawListSplitter" + "funcname": "size", + "location": "imgui_internal:702", + "ov_cimguiname": "ImChunkStream_size", + "ret": "int", + "signature": "()const", + "stname": "ImChunkStream", + "templated": true } ], - "ImDrawList_AddBezierCubic": [ + "ImChunkStream_swap": [ { - "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments)", + "args": "(ImChunkStream* self,ImChunkStream_T * rhs)", "argsT": [ { "name": "self", - "type": "ImDrawList*" + "type": "ImChunkStream*" }, { - "name": "p1", - "type": "const ImVec2" - }, + "name": "rhs", + "reftoptr": true, + "type": "ImChunkStream_T *" + } + ], + "argsoriginal": "(ImChunkStream& rhs)", + "call_args": "(*rhs)", + "cimguiname": "ImChunkStream_swap", + "defaults": {}, + "funcname": "swap", + "location": "imgui_internal:710", + "ov_cimguiname": "ImChunkStream_swap", + "ret": "void", + "signature": "(ImChunkStream_T *)", + "stname": "ImChunkStream", + "templated": true + } + ], + "ImColor_HSV": [ + { + "args": "(ImColor *pOut,float h,float s,float v,float a)", + "argsT": [ { - "name": "p2", - "type": "const ImVec2" + "name": "pOut", + "type": "ImColor*" }, { - "name": "p3", - "type": "const ImVec2" - }, - { - "name": "p4", - "type": "const ImVec2" + "name": "h", + "type": "float" }, { - "name": "col", - "type": "ImU32" + "name": "s", + "type": "float" }, { - "name": "thickness", + "name": "v", "type": "float" }, { - "name": "num_segments", - "type": "int" + "name": "a", + "type": "float" } ], - "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness,int num_segments=0)", - "call_args": "(p1,p2,p3,p4,col,thickness,num_segments)", - "cimguiname": "ImDrawList_AddBezierCubic", + "argsoriginal": "(float h,float s,float v,float a=1.0f)", + "call_args": "(h,s,v,a)", + "cimguiname": "ImColor_HSV", "defaults": { - "num_segments": "0" + "a": "1.0f" }, - "funcname": "AddBezierCubic", - "location": "imgui:2668", - "ov_cimguiname": "ImDrawList_AddBezierCubic", + "funcname": "HSV", + "is_static_function": true, + "location": "imgui:2472", + "nonUDT": 1, + "ov_cimguiname": "ImColor_HSV", "ret": "void", - "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", - "stname": "ImDrawList" + "signature": "(float,float,float,float)", + "stname": "ImColor" } ], - "ImDrawList_AddBezierQuadratic": [ + "ImColor_ImColor": [ { - "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": {}, + "funcname": "ImColor", + "location": "imgui:2462", + "ov_cimguiname": "ImColor_ImColor_Nil", + "signature": "()", + "stname": "ImColor" + }, + { + "args": "(float r,float g,float b,float a)", "argsT": [ { - "name": "self", - "type": "ImDrawList*" - }, - { - "name": "p1", - "type": "const ImVec2" - }, - { - "name": "p2", - "type": "const ImVec2" - }, - { - "name": "p3", - "type": "const ImVec2" + "name": "r", + "type": "float" }, { - "name": "col", - "type": "ImU32" + "name": "g", + "type": "float" }, { - "name": "thickness", + "name": "b", "type": "float" }, { - "name": "num_segments", - "type": "int" + "name": "a", + "type": "float" } ], - "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness,int num_segments=0)", - "call_args": "(p1,p2,p3,col,thickness,num_segments)", - "cimguiname": "ImDrawList_AddBezierQuadratic", + "argsoriginal": "(float r,float g,float b,float a=1.0f)", + "call_args": "(r,g,b,a)", + "cimguiname": "ImColor_ImColor", + "constructor": true, "defaults": { - "num_segments": "0" + "a": "1.0f" }, - "funcname": "AddBezierQuadratic", - "location": "imgui:2669", - "ov_cimguiname": "ImDrawList_AddBezierQuadratic", - "ret": "void", - "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", - "stname": "ImDrawList" - } - ], - "ImDrawList_AddCallback": [ + "funcname": "ImColor", + "location": "imgui:2463", + "ov_cimguiname": "ImColor_ImColor_Float", + "signature": "(float,float,float,float)", + "stname": "ImColor" + }, { - "args": "(ImDrawList* self,ImDrawCallback callback,void* callback_data)", + "args": "(const ImVec4 col)", "argsT": [ { - "name": "self", - "type": "ImDrawList*" - }, - { - "name": "callback", - "type": "ImDrawCallback" - }, - { - "name": "callback_data", - "type": "void*" + "name": "col", + "type": "const ImVec4" } ], - "argsoriginal": "(ImDrawCallback callback,void* callback_data)", - "call_args": "(callback,callback_data)", - "cimguiname": "ImDrawList_AddCallback", + "argsoriginal": "(const ImVec4& col)", + "call_args": "(col)", + "cimguiname": "ImColor_ImColor", + "constructor": true, "defaults": {}, - "funcname": "AddCallback", - "location": "imgui:2693", - "ov_cimguiname": "ImDrawList_AddCallback", - "ret": "void", - "signature": "(ImDrawCallback,void*)", - "stname": "ImDrawList" - } - ], - "ImDrawList_AddCircle": [ + "funcname": "ImColor", + "location": "imgui:2464", + "ov_cimguiname": "ImColor_ImColor_Vec4", + "signature": "(const ImVec4)", + "stname": "ImColor" + }, { - "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)", + "args": "(int r,int g,int b,int a)", "argsT": [ { - "name": "self", - "type": "ImDrawList*" - }, - { - "name": "center", - "type": "const ImVec2" - }, - { - "name": "radius", - "type": "float" + "name": "r", + "type": "int" }, { - "name": "col", - "type": "ImU32" + "name": "g", + "type": "int" }, { - "name": "num_segments", + "name": "b", "type": "int" }, { - "name": "thickness", - "type": "float" + "name": "a", + "type": "int" } ], - "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments=0,float thickness=1.0f)", - "call_args": "(center,radius,col,num_segments,thickness)", - "cimguiname": "ImDrawList_AddCircle", + "argsoriginal": "(int r,int g,int b,int a=255)", + "call_args": "(r,g,b,a)", + "cimguiname": "ImColor_ImColor", + "constructor": true, "defaults": { - "num_segments": "0", - "thickness": "1.0f" + "a": "255" }, - "funcname": "AddCircle", - "location": "imgui:2660", - "ov_cimguiname": "ImDrawList_AddCircle", - "ret": "void", - "signature": "(const ImVec2,float,ImU32,int,float)", - "stname": "ImDrawList" + "funcname": "ImColor", + "location": "imgui:2465", + "ov_cimguiname": "ImColor_ImColor_Int", + "signature": "(int,int,int,int)", + "stname": "ImColor" + }, + { + "args": "(ImU32 rgba)", + "argsT": [ + { + "name": "rgba", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 rgba)", + "call_args": "(rgba)", + "cimguiname": "ImColor_ImColor", + "constructor": true, + "defaults": {}, + "funcname": "ImColor", + "location": "imgui:2466", + "ov_cimguiname": "ImColor_ImColor_U32", + "signature": "(ImU32)", + "stname": "ImColor" } ], - "ImDrawList_AddCircleFilled": [ + "ImColor_SetHSV": [ { - "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)", + "args": "(ImColor* self,float h,float s,float v,float a)", "argsT": [ { "name": "self", - "type": "ImDrawList*" + "type": "ImColor*" }, { - "name": "center", - "type": "const ImVec2" + "name": "h", + "type": "float" }, { - "name": "radius", + "name": "s", "type": "float" }, { - "name": "col", - "type": "ImU32" + "name": "v", + "type": "float" }, { - "name": "num_segments", - "type": "int" + "name": "a", + "type": "float" } ], - "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments=0)", - "call_args": "(center,radius,col,num_segments)", - "cimguiname": "ImDrawList_AddCircleFilled", + "argsoriginal": "(float h,float s,float v,float a=1.0f)", + "call_args": "(h,s,v,a)", + "cimguiname": "ImColor_SetHSV", "defaults": { - "num_segments": "0" + "a": "1.0f" }, - "funcname": "AddCircleFilled", - "location": "imgui:2661", - "ov_cimguiname": "ImDrawList_AddCircleFilled", + "funcname": "SetHSV", + "location": "imgui:2471", + "ov_cimguiname": "ImColor_SetHSV", "ret": "void", - "signature": "(const ImVec2,float,ImU32,int)", - "stname": "ImDrawList" + "signature": "(float,float,float,float)", + "stname": "ImColor" } ], - "ImDrawList_AddConvexPolyFilled": [ + "ImColor_destroy": [ { - "args": "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col)", + "args": "(ImColor* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "points", - "type": "const ImVec2*" - }, - { - "name": "num_points", - "type": "int" - }, - { - "name": "col", - "type": "ImU32" + "type": "ImColor*" } ], - "argsoriginal": "(const ImVec2* points,int num_points,ImU32 col)", - "call_args": "(points,num_points,col)", - "cimguiname": "ImDrawList_AddConvexPolyFilled", + "call_args": "(self)", + "cimguiname": "ImColor_destroy", "defaults": {}, - "funcname": "AddConvexPolyFilled", - "location": "imgui:2667", - "ov_cimguiname": "ImDrawList_AddConvexPolyFilled", + "destructor": true, + "ov_cimguiname": "ImColor_destroy", "ret": "void", - "signature": "(const ImVec2*,int,ImU32)", - "stname": "ImDrawList" + "signature": "(ImColor*)", + "stname": "ImColor" } ], - "ImDrawList_AddDrawCmd": [ + "ImDrawCmd_GetTexID": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawCmd* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" + "type": "ImDrawCmd*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawList_AddDrawCmd", + "cimguiname": "ImDrawCmd_GetTexID", "defaults": {}, - "funcname": "AddDrawCmd", - "location": "imgui:2694", - "ov_cimguiname": "ImDrawList_AddDrawCmd", - "ret": "void", + "funcname": "GetTexID", + "location": "imgui:2520", + "ov_cimguiname": "ImDrawCmd_GetTexID", + "ret": "ImTextureID", + "signature": "()const", + "stname": "ImDrawCmd" + } + ], + "ImDrawCmd_ImDrawCmd": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawCmd_ImDrawCmd", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawCmd", + "location": "imgui:2517", + "ov_cimguiname": "ImDrawCmd_ImDrawCmd", "signature": "()", - "stname": "ImDrawList" + "stname": "ImDrawCmd" } ], - "ImDrawList_AddImage": [ + "ImDrawCmd_destroy": [ { - "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col)", + "args": "(ImDrawCmd* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "user_texture_id", - "type": "ImTextureID" - }, - { - "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" + "type": "ImDrawCmd*" } ], - "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min=ImVec2(0,0),const ImVec2& uv_max=ImVec2(1,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))", - "call_args": "(user_texture_id,p_min,p_max,uv_min,uv_max,col)", - "cimguiname": "ImDrawList_AddImage", - "defaults": { - "col": "4294967295", - "uv_max": "ImVec2(1,1)", - "uv_min": "ImVec2(0,0)" - }, - "funcname": "AddImage", - "location": "imgui:2675", - "ov_cimguiname": "ImDrawList_AddImage", + "call_args": "(self)", + "cimguiname": "ImDrawCmd_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImDrawCmd_destroy", "ret": "void", - "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", - "stname": "ImDrawList" + "signature": "(ImDrawCmd*)", + "stname": "ImDrawCmd" } ], - "ImDrawList_AddImageQuad": [ + "ImDrawDataBuilder_Clear": [ { - "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col)", + "args": "(ImDrawDataBuilder* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "user_texture_id", - "type": "ImTextureID" - }, - { - "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" - }, - { - "name": "uv2", - "type": "const ImVec2" - }, - { - "name": "uv3", - "type": "const ImVec2" - }, - { - "name": "uv4", - "type": "const ImVec2" - }, - { - "name": "col", - "type": "ImU32" + "type": "ImDrawDataBuilder*" } ], - "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& uv1=ImVec2(0,0),const ImVec2& uv2=ImVec2(1,0),const ImVec2& uv3=ImVec2(1,1),const ImVec2& uv4=ImVec2(0,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))", - "call_args": "(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col)", - "cimguiname": "ImDrawList_AddImageQuad", - "defaults": { - "col": "4294967295", - "uv1": "ImVec2(0,0)", - "uv2": "ImVec2(1,0)", - "uv3": "ImVec2(1,1)", - "uv4": "ImVec2(0,1)" - }, - "funcname": "AddImageQuad", - "location": "imgui:2676", - "ov_cimguiname": "ImDrawList_AddImageQuad", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawDataBuilder_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui_internal:786", + "ov_cimguiname": "ImDrawDataBuilder_Clear", "ret": "void", - "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", - "stname": "ImDrawList" + "signature": "()", + "stname": "ImDrawDataBuilder" } ], - "ImDrawList_AddImageRounded": [ + "ImDrawDataBuilder_ClearFreeMemory": [ { - "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags)", + "args": "(ImDrawDataBuilder* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "user_texture_id", - "type": "ImTextureID" - }, - { - "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" + "type": "ImDrawDataBuilder*" } ], - "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min,const ImVec2& uv_max,ImU32 col,float rounding,ImDrawFlags flags=0)", - "call_args": "(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags)", - "cimguiname": "ImDrawList_AddImageRounded", - "defaults": { - "flags": "0" - }, - "funcname": "AddImageRounded", - "location": "imgui:2677", - "ov_cimguiname": "ImDrawList_AddImageRounded", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawDataBuilder_ClearFreeMemory", + "defaults": {}, + "funcname": "ClearFreeMemory", + "location": "imgui_internal:787", + "ov_cimguiname": "ImDrawDataBuilder_ClearFreeMemory", "ret": "void", - "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", - "stname": "ImDrawList" + "signature": "()", + "stname": "ImDrawDataBuilder" } ], - "ImDrawList_AddLine": [ + "ImDrawDataBuilder_FlattenIntoSingleLayer": [ { - "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness)", + "args": "(ImDrawDataBuilder* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "p1", - "type": "const ImVec2" - }, - { - "name": "p2", - "type": "const ImVec2" - }, - { - "name": "col", - "type": "ImU32" - }, - { - "name": "thickness", - "type": "float" + "type": "ImDrawDataBuilder*" } ], - "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,ImU32 col,float thickness=1.0f)", - "call_args": "(p1,p2,col,thickness)", - "cimguiname": "ImDrawList_AddLine", - "defaults": { - "thickness": "1.0f" - }, - "funcname": "AddLine", - "location": "imgui:2652", - "ov_cimguiname": "ImDrawList_AddLine", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawDataBuilder_FlattenIntoSingleLayer", + "defaults": {}, + "funcname": "FlattenIntoSingleLayer", + "location": "imgui_internal:789", + "ov_cimguiname": "ImDrawDataBuilder_FlattenIntoSingleLayer", "ret": "void", - "signature": "(const ImVec2,const ImVec2,ImU32,float)", - "stname": "ImDrawList" + "signature": "()", + "stname": "ImDrawDataBuilder" } ], - "ImDrawList_AddNgon": [ + "ImDrawDataBuilder_GetDrawListCount": [ { - "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)", + "args": "(ImDrawDataBuilder* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "center", - "type": "const ImVec2" - }, - { - "name": "radius", - "type": "float" - }, - { - "name": "col", - "type": "ImU32" - }, + "type": "ImDrawDataBuilder*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawDataBuilder_GetDrawListCount", + "defaults": {}, + "funcname": "GetDrawListCount", + "location": "imgui_internal:788", + "ov_cimguiname": "ImDrawDataBuilder_GetDrawListCount", + "ret": "int", + "signature": "()const", + "stname": "ImDrawDataBuilder" + } + ], + "ImDrawData_Clear": [ + { + "args": "(ImDrawData* self)", + "argsT": [ { - "name": "num_segments", - "type": "int" - }, + "name": "self", + "type": "ImDrawData*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawData_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2754", + "ov_cimguiname": "ImDrawData_Clear", + "ret": "void", + "signature": "()", + "stname": "ImDrawData" + } + ], + "ImDrawData_DeIndexAllBuffers": [ + { + "args": "(ImDrawData* self)", + "argsT": [ { - "name": "thickness", - "type": "float" + "name": "self", + "type": "ImDrawData*" } ], - "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments,float thickness=1.0f)", - "call_args": "(center,radius,col,num_segments,thickness)", - "cimguiname": "ImDrawList_AddNgon", - "defaults": { - "thickness": "1.0f" - }, - "funcname": "AddNgon", - "location": "imgui:2662", - "ov_cimguiname": "ImDrawList_AddNgon", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawData_DeIndexAllBuffers", + "defaults": {}, + "funcname": "DeIndexAllBuffers", + "location": "imgui:2755", + "ov_cimguiname": "ImDrawData_DeIndexAllBuffers", "ret": "void", - "signature": "(const ImVec2,float,ImU32,int,float)", - "stname": "ImDrawList" + "signature": "()", + "stname": "ImDrawData" } ], - "ImDrawList_AddNgonFilled": [ + "ImDrawData_ImDrawData": [ { - "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawData_ImDrawData", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawData", + "location": "imgui:2753", + "ov_cimguiname": "ImDrawData_ImDrawData", + "signature": "()", + "stname": "ImDrawData" + } + ], + "ImDrawData_ScaleClipRects": [ + { + "args": "(ImDrawData* self,const ImVec2 fb_scale)", "argsT": [ { "name": "self", - "type": "ImDrawList*" + "type": "ImDrawData*" }, { - "name": "center", + "name": "fb_scale", "type": "const ImVec2" - }, - { - "name": "radius", - "type": "float" - }, - { - "name": "col", - "type": "ImU32" - }, - { - "name": "num_segments", - "type": "int" } ], - "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments)", - "call_args": "(center,radius,col,num_segments)", - "cimguiname": "ImDrawList_AddNgonFilled", + "argsoriginal": "(const ImVec2& fb_scale)", + "call_args": "(fb_scale)", + "cimguiname": "ImDrawData_ScaleClipRects", "defaults": {}, - "funcname": "AddNgonFilled", - "location": "imgui:2663", - "ov_cimguiname": "ImDrawList_AddNgonFilled", + "funcname": "ScaleClipRects", + "location": "imgui:2756", + "ov_cimguiname": "ImDrawData_ScaleClipRects", "ret": "void", - "signature": "(const ImVec2,float,ImU32,int)", - "stname": "ImDrawList" + "signature": "(const ImVec2)", + "stname": "ImDrawData" } ], - "ImDrawList_AddPolyline": [ + "ImDrawData_destroy": [ { - "args": "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)", + "args": "(ImDrawData* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "points", - "type": "const ImVec2*" - }, - { - "name": "num_points", - "type": "int" - }, - { - "name": "col", - "type": "ImU32" - }, - { - "name": "flags", - "type": "ImDrawFlags" - }, - { - "name": "thickness", - "type": "float" + "type": "ImDrawData*" } ], - "argsoriginal": "(const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)", - "call_args": "(points,num_points,col,flags,thickness)", - "cimguiname": "ImDrawList_AddPolyline", + "call_args": "(self)", + "cimguiname": "ImDrawData_destroy", "defaults": {}, - "funcname": "AddPolyline", - "location": "imgui:2666", - "ov_cimguiname": "ImDrawList_AddPolyline", + "destructor": true, + "ov_cimguiname": "ImDrawData_destroy", "ret": "void", - "signature": "(const ImVec2*,int,ImU32,ImDrawFlags,float)", - "stname": "ImDrawList" + "signature": "(ImDrawData*)", + "stname": "ImDrawData" } ], - "ImDrawList_AddQuad": [ + "ImDrawListSharedData_ImDrawListSharedData": [ { - "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSharedData_ImDrawListSharedData", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawListSharedData", + "location": "imgui_internal:778", + "ov_cimguiname": "ImDrawListSharedData_ImDrawListSharedData", + "signature": "()", + "stname": "ImDrawListSharedData" + } + ], + "ImDrawListSharedData_SetCircleTessellationMaxError": [ + { + "args": "(ImDrawListSharedData* self,float max_error)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "p1", - "type": "const ImVec2" - }, - { - "name": "p2", - "type": "const ImVec2" - }, - { - "name": "p3", - "type": "const ImVec2" - }, - { - "name": "p4", - "type": "const ImVec2" - }, - { - "name": "col", - "type": "ImU32" + "type": "ImDrawListSharedData*" }, { - "name": "thickness", + "name": "max_error", "type": "float" } ], - "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness=1.0f)", - "call_args": "(p1,p2,p3,p4,col,thickness)", - "cimguiname": "ImDrawList_AddQuad", - "defaults": { - "thickness": "1.0f" - }, - "funcname": "AddQuad", - "location": "imgui:2656", - "ov_cimguiname": "ImDrawList_AddQuad", + "argsoriginal": "(float max_error)", + "call_args": "(max_error)", + "cimguiname": "ImDrawListSharedData_SetCircleTessellationMaxError", + "defaults": {}, + "funcname": "SetCircleTessellationMaxError", + "location": "imgui_internal:779", + "ov_cimguiname": "ImDrawListSharedData_SetCircleTessellationMaxError", "ret": "void", - "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)", - "stname": "ImDrawList" + "signature": "(float)", + "stname": "ImDrawListSharedData" } ], - "ImDrawList_AddQuadFilled": [ + "ImDrawListSharedData_destroy": [ { - "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col)", + "args": "(ImDrawListSharedData* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "p1", - "type": "const ImVec2" - }, - { - "name": "p2", - "type": "const ImVec2" - }, - { - "name": "p3", - "type": "const ImVec2" - }, - { - "name": "p4", - "type": "const ImVec2" - }, - { - "name": "col", - "type": "ImU32" + "type": "ImDrawListSharedData*" } ], - "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col)", - "call_args": "(p1,p2,p3,p4,col)", - "cimguiname": "ImDrawList_AddQuadFilled", + "call_args": "(self)", + "cimguiname": "ImDrawListSharedData_destroy", "defaults": {}, - "funcname": "AddQuadFilled", - "location": "imgui:2657", - "ov_cimguiname": "ImDrawList_AddQuadFilled", + "destructor": true, + "ov_cimguiname": "ImDrawListSharedData_destroy", "ret": "void", - "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", - "stname": "ImDrawList" + "signature": "(ImDrawListSharedData*)", + "stname": "ImDrawListSharedData" } ], - "ImDrawList_AddRect": [ + "ImDrawListSplitter_Clear": [ { - "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness)", + "args": "(ImDrawListSplitter* self)", "argsT": [ { "name": "self", - "type": "ImDrawList*" - }, - { - "name": "p_min", - "type": "const ImVec2" - }, + "type": "ImDrawListSplitter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSplitter_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2565", + "ov_cimguiname": "ImDrawListSplitter_Clear", + "ret": "void", + "signature": "()", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_ClearFreeMemory": [ + { + "args": "(ImDrawListSplitter* self)", + "argsT": [ { - "name": "p_max", - "type": "const ImVec2" + "name": "self", + "type": "ImDrawListSplitter*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSplitter_ClearFreeMemory", + "defaults": {}, + "funcname": "ClearFreeMemory", + "location": "imgui:2566", + "ov_cimguiname": "ImDrawListSplitter_ClearFreeMemory", + "ret": "void", + "signature": "()", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_ImDrawListSplitter": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawListSplitter_ImDrawListSplitter", + "constructor": true, + "defaults": {}, + "funcname": "ImDrawListSplitter", + "location": "imgui:2563", + "ov_cimguiname": "ImDrawListSplitter_ImDrawListSplitter", + "signature": "()", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_Merge": [ + { + "args": "(ImDrawListSplitter* self,ImDrawList* draw_list)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" }, { - "name": "col", - "type": "ImU32" + "name": "draw_list", + "type": "ImDrawList*" + } + ], + "argsoriginal": "(ImDrawList* draw_list)", + "call_args": "(draw_list)", + "cimguiname": "ImDrawListSplitter_Merge", + "defaults": {}, + "funcname": "Merge", + "location": "imgui:2568", + "ov_cimguiname": "ImDrawListSplitter_Merge", + "ret": "void", + "signature": "(ImDrawList*)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_SetCurrentChannel": [ + { + "args": "(ImDrawListSplitter* self,ImDrawList* draw_list,int channel_idx)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" }, { - "name": "rounding", - "type": "float" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "flags", - "type": "ImDrawFlags" + "name": "channel_idx", + "type": "int" + } + ], + "argsoriginal": "(ImDrawList* draw_list,int channel_idx)", + "call_args": "(draw_list,channel_idx)", + "cimguiname": "ImDrawListSplitter_SetCurrentChannel", + "defaults": {}, + "funcname": "SetCurrentChannel", + "location": "imgui:2569", + "ov_cimguiname": "ImDrawListSplitter_SetCurrentChannel", + "ret": "void", + "signature": "(ImDrawList*,int)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawListSplitter_Split": [ + { + "args": "(ImDrawListSplitter* self,ImDrawList* draw_list,int count)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" }, { - "name": "thickness", - "type": "float" + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "count", + "type": "int" } ], - "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0,float thickness=1.0f)", - "call_args": "(p_min,p_max,col,rounding,flags,thickness)", - "cimguiname": "ImDrawList_AddRect", - "defaults": { - "flags": "0", - "rounding": "0.0f", - "thickness": "1.0f" - }, - "funcname": "AddRect", - "location": "imgui:2653", - "ov_cimguiname": "ImDrawList_AddRect", + "argsoriginal": "(ImDrawList* draw_list,int count)", + "call_args": "(draw_list,count)", + "cimguiname": "ImDrawListSplitter_Split", + "defaults": {}, + "funcname": "Split", + "location": "imgui:2567", + "ov_cimguiname": "ImDrawListSplitter_Split", "ret": "void", - "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)", - "stname": "ImDrawList" + "signature": "(ImDrawList*,int)", + "stname": "ImDrawListSplitter" } ], - "ImDrawList_AddRectFilled": [ + "ImDrawListSplitter_destroy": [ { - "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags)", + "args": "(ImDrawListSplitter* self)", + "argsT": [ + { + "name": "self", + "type": "ImDrawListSplitter*" + } + ], + "call_args": "(self)", + "cimguiname": "ImDrawListSplitter_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:2564", + "ov_cimguiname": "ImDrawListSplitter_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImDrawListSplitter*)", + "stname": "ImDrawListSplitter" + } + ], + "ImDrawList_AddBezierCubic": [ + { + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "p_min", + "name": "p1", "type": "const ImVec2" }, { - "name": "p_max", + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", "type": "const ImVec2" }, { @@ -1291,249 +1288,221 @@ "type": "ImU32" }, { - "name": "rounding", + "name": "thickness", "type": "float" }, { - "name": "flags", - "type": "ImDrawFlags" + "name": "num_segments", + "type": "int" } ], - "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0)", - "call_args": "(p_min,p_max,col,rounding,flags)", - "cimguiname": "ImDrawList_AddRectFilled", + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness,int num_segments=0)", + "call_args": "(p1,p2,p3,p4,col,thickness,num_segments)", + "cimguiname": "ImDrawList_AddBezierCubic", "defaults": { - "flags": "0", - "rounding": "0.0f" + "num_segments": "0" }, - "funcname": "AddRectFilled", - "location": "imgui:2654", - "ov_cimguiname": "ImDrawList_AddRectFilled", + "funcname": "AddBezierCubic", + "location": "imgui:2668", + "ov_cimguiname": "ImDrawList_AddBezierCubic", "ret": "void", - "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", "stname": "ImDrawList" } ], - "ImDrawList_AddRectFilledMultiColor": [ + "ImDrawList_AddBezierQuadratic": [ { - "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)", + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "p_min", + "name": "p1", "type": "const ImVec2" }, { - "name": "p_max", + "name": "p2", "type": "const ImVec2" }, { - "name": "col_upr_left", - "type": "ImU32" + "name": "p3", + "type": "const ImVec2" }, { - "name": "col_upr_right", + "name": "col", "type": "ImU32" }, { - "name": "col_bot_right", - "type": "ImU32" + "name": "thickness", + "type": "float" }, { - "name": "col_bot_left", - "type": "ImU32" + "name": "num_segments", + "type": "int" } ], - "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)", - "call_args": "(p_min,p_max,col_upr_left,col_upr_right,col_bot_right,col_bot_left)", - "cimguiname": "ImDrawList_AddRectFilledMultiColor", - "defaults": {}, - "funcname": "AddRectFilledMultiColor", - "location": "imgui:2655", - "ov_cimguiname": "ImDrawList_AddRectFilledMultiColor", + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness,int num_segments=0)", + "call_args": "(p1,p2,p3,col,thickness,num_segments)", + "cimguiname": "ImDrawList_AddBezierQuadratic", + "defaults": { + "num_segments": "0" + }, + "funcname": "AddBezierQuadratic", + "location": "imgui:2669", + "ov_cimguiname": "ImDrawList_AddBezierQuadratic", "ret": "void", - "signature": "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)", + "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", "stname": "ImDrawList" } ], - "ImDrawList_AddText": [ + "ImDrawList_AddCallback": [ { - "args": "(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end)", + "args": "(ImDrawList* self,ImDrawCallback callback,void* callback_data)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "pos", - "type": "const ImVec2" - }, - { - "name": "col", - "type": "ImU32" + "name": "callback", + "type": "ImDrawCallback" }, { - "name": "text_begin", - "type": "const char*" - }, - { - "name": "text_end", - "type": "const char*" + "name": "callback_data", + "type": "void*" } ], - "argsoriginal": "(const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0))", - "call_args": "(pos,col,text_begin,text_end)", - "cimguiname": "ImDrawList_AddText", - "defaults": { - "text_end": "NULL" - }, - "funcname": "AddText", - "location": "imgui:2664", - "ov_cimguiname": "ImDrawList_AddText_Vec2", + "argsoriginal": "(ImDrawCallback callback,void* callback_data)", + "call_args": "(callback,callback_data)", + "cimguiname": "ImDrawList_AddCallback", + "defaults": {}, + "funcname": "AddCallback", + "location": "imgui:2693", + "ov_cimguiname": "ImDrawList_AddCallback", "ret": "void", - "signature": "(const ImVec2,ImU32,const char*,const char*)", + "signature": "(ImDrawCallback,void*)", "stname": "ImDrawList" - }, + } + ], + "ImDrawList_AddCircle": [ { - "args": "(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect)", + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "font", - "type": "const ImFont*" + "name": "center", + "type": "const ImVec2" }, { - "name": "font_size", + "name": "radius", "type": "float" }, - { - "name": "pos", - "type": "const ImVec2" - }, { "name": "col", "type": "ImU32" }, { - "name": "text_begin", - "type": "const char*" - }, - { - "name": "text_end", - "type": "const char*" + "name": "num_segments", + "type": "int" }, { - "name": "wrap_width", + "name": "thickness", "type": "float" - }, - { - "name": "cpu_fine_clip_rect", - "type": "const ImVec4*" } ], - "argsoriginal": "(const ImFont* font,float font_size,const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0),float wrap_width=0.0f,const ImVec4* cpu_fine_clip_rect=((void*)0))", - "call_args": "(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect)", - "cimguiname": "ImDrawList_AddText", + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments=0,float thickness=1.0f)", + "call_args": "(center,radius,col,num_segments,thickness)", + "cimguiname": "ImDrawList_AddCircle", "defaults": { - "cpu_fine_clip_rect": "NULL", - "text_end": "NULL", - "wrap_width": "0.0f" + "num_segments": "0", + "thickness": "1.0f" }, - "funcname": "AddText", - "location": "imgui:2665", - "ov_cimguiname": "ImDrawList_AddText_FontPtr", + "funcname": "AddCircle", + "location": "imgui:2660", + "ov_cimguiname": "ImDrawList_AddCircle", "ret": "void", - "signature": "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)", + "signature": "(const ImVec2,float,ImU32,int,float)", "stname": "ImDrawList" } ], - "ImDrawList_AddTriangle": [ + "ImDrawList_AddCircleFilled": [ { - "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness)", + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "p1", - "type": "const ImVec2" - }, - { - "name": "p2", + "name": "center", "type": "const ImVec2" }, { - "name": "p3", - "type": "const ImVec2" + "name": "radius", + "type": "float" }, { "name": "col", "type": "ImU32" }, { - "name": "thickness", - "type": "float" + "name": "num_segments", + "type": "int" } ], - "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness=1.0f)", - "call_args": "(p1,p2,p3,col,thickness)", - "cimguiname": "ImDrawList_AddTriangle", + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments=0)", + "call_args": "(center,radius,col,num_segments)", + "cimguiname": "ImDrawList_AddCircleFilled", "defaults": { - "thickness": "1.0f" + "num_segments": "0" }, - "funcname": "AddTriangle", - "location": "imgui:2658", - "ov_cimguiname": "ImDrawList_AddTriangle", + "funcname": "AddCircleFilled", + "location": "imgui:2661", + "ov_cimguiname": "ImDrawList_AddCircleFilled", "ret": "void", - "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)", + "signature": "(const ImVec2,float,ImU32,int)", "stname": "ImDrawList" } ], - "ImDrawList_AddTriangleFilled": [ + "ImDrawList_AddConvexPolyFilled": [ { - "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col)", + "args": "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "p1", - "type": "const ImVec2" - }, - { - "name": "p2", - "type": "const ImVec2" + "name": "points", + "type": "const ImVec2*" }, { - "name": "p3", - "type": "const ImVec2" + "name": "num_points", + "type": "int" }, { "name": "col", "type": "ImU32" } ], - "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col)", - "call_args": "(p1,p2,p3,col)", - "cimguiname": "ImDrawList_AddTriangleFilled", + "argsoriginal": "(const ImVec2* points,int num_points,ImU32 col)", + "call_args": "(points,num_points,col)", + "cimguiname": "ImDrawList_AddConvexPolyFilled", "defaults": {}, - "funcname": "AddTriangleFilled", - "location": "imgui:2659", - "ov_cimguiname": "ImDrawList_AddTriangleFilled", + "funcname": "AddConvexPolyFilled", + "location": "imgui:2667", + "ov_cimguiname": "ImDrawList_AddConvexPolyFilled", "ret": "void", - "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32)", + "signature": "(const ImVec2*,int,ImU32)", "stname": "ImDrawList" } ], - "ImDrawList_ChannelsMerge": [ + "ImDrawList_AddDrawCmd": [ { "args": "(ImDrawList* self)", "argsT": [ @@ -1544,426 +1513,455 @@ ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawList_ChannelsMerge", + "cimguiname": "ImDrawList_AddDrawCmd", "defaults": {}, - "funcname": "ChannelsMerge", - "location": "imgui:2704", - "ov_cimguiname": "ImDrawList_ChannelsMerge", + "funcname": "AddDrawCmd", + "location": "imgui:2694", + "ov_cimguiname": "ImDrawList_AddDrawCmd", "ret": "void", "signature": "()", "stname": "ImDrawList" } ], - "ImDrawList_ChannelsSetCurrent": [ + "ImDrawList_AddImage": [ { - "args": "(ImDrawList* self,int n)", + "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "n", - "type": "int" - } - ], - "argsoriginal": "(int n)", - "call_args": "(n)", - "cimguiname": "ImDrawList_ChannelsSetCurrent", - "defaults": {}, - "funcname": "ChannelsSetCurrent", - "location": "imgui:2705", - "ov_cimguiname": "ImDrawList_ChannelsSetCurrent", - "ret": "void", - "signature": "(int)", - "stname": "ImDrawList" - } - ], - "ImDrawList_ChannelsSplit": [ - { - "args": "(ImDrawList* self,int count)", - "argsT": [ + "name": "user_texture_id", + "type": "ImTextureID" + }, { - "name": "self", - "type": "ImDrawList*" + "name": "p_min", + "type": "const ImVec2" }, { - "name": "count", - "type": "int" + "name": "p_max", + "type": "const ImVec2" + }, + { + "name": "uv_min", + "type": "const ImVec2" + }, + { + "name": "uv_max", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "(int count)", - "call_args": "(count)", - "cimguiname": "ImDrawList_ChannelsSplit", - "defaults": {}, - "funcname": "ChannelsSplit", - "location": "imgui:2703", - "ov_cimguiname": "ImDrawList_ChannelsSplit", + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min=ImVec2(0,0),const ImVec2& uv_max=ImVec2(1,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))", + "call_args": "(user_texture_id,p_min,p_max,uv_min,uv_max,col)", + "cimguiname": "ImDrawList_AddImage", + "defaults": { + "col": "4294967295", + "uv_max": "ImVec2(1,1)", + "uv_min": "ImVec2(0,0)" + }, + "funcname": "AddImage", + "location": "imgui:2675", + "ov_cimguiname": "ImDrawList_AddImage", "ret": "void", - "signature": "(int)", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", "stname": "ImDrawList" } ], - "ImDrawList_CloneOutput": [ + "ImDrawList_AddImageQuad": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col)", "argsT": [ { "name": "self", "type": "ImDrawList*" - } - ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList_CloneOutput", - "defaults": {}, - "funcname": "CloneOutput", - "location": "imgui:2695", - "ov_cimguiname": "ImDrawList_CloneOutput", - "ret": "ImDrawList*", - "signature": "()const", - "stname": "ImDrawList" - } - ], - "ImDrawList_GetClipRectMax": [ - { - "args": "(ImVec2 *pOut,ImDrawList* self)", - "argsT": [ + }, { - "name": "pOut", - "type": "ImVec2*" + "name": "user_texture_id", + "type": "ImTextureID" }, { - "name": "self", - "type": "ImDrawList*" - } - ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList_GetClipRectMax", - "defaults": {}, - "funcname": "GetClipRectMax", - "location": "imgui:2643", - "nonUDT": 1, - "ov_cimguiname": "ImDrawList_GetClipRectMax", - "ret": "void", - "signature": "()const", - "stname": "ImDrawList" - } - ], - "ImDrawList_GetClipRectMin": [ - { - "args": "(ImVec2 *pOut,ImDrawList* self)", - "argsT": [ + "name": "p1", + "type": "const ImVec2" + }, { - "name": "pOut", - "type": "ImVec2*" + "name": "p2", + "type": "const ImVec2" }, { - "name": "self", - "type": "ImDrawList*" - } - ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList_GetClipRectMin", - "defaults": {}, - "funcname": "GetClipRectMin", - "location": "imgui:2642", - "nonUDT": 1, - "ov_cimguiname": "ImDrawList_GetClipRectMin", - "ret": "void", - "signature": "()const", - "stname": "ImDrawList" - } - ], - "ImDrawList_ImDrawList": [ - { - "args": "(ImDrawListSharedData* shared_data)", - "argsT": [ + "name": "p3", + "type": "const ImVec2" + }, { - "name": "shared_data", - "type": "ImDrawListSharedData*" + "name": "p4", + "type": "const ImVec2" + }, + { + "name": "uv1", + "type": "const ImVec2" + }, + { + "name": "uv2", + "type": "const ImVec2" + }, + { + "name": "uv3", + "type": "const ImVec2" + }, + { + "name": "uv4", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "(ImDrawListSharedData* shared_data)", - "call_args": "(shared_data)", - "cimguiname": "ImDrawList_ImDrawList", - "constructor": true, - "defaults": {}, - "funcname": "ImDrawList", - "location": "imgui:2634", - "ov_cimguiname": "ImDrawList_ImDrawList", - "signature": "(ImDrawListSharedData*)", + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& uv1=ImVec2(0,0),const ImVec2& uv2=ImVec2(1,0),const ImVec2& uv3=ImVec2(1,1),const ImVec2& uv4=ImVec2(0,1),ImU32 col=(((ImU32)(255)<<24)|((ImU32)(255)<<16)|((ImU32)(255)<<8)|((ImU32)(255)<<0)))", + "call_args": "(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col)", + "cimguiname": "ImDrawList_AddImageQuad", + "defaults": { + "col": "4294967295", + "uv1": "ImVec2(0,0)", + "uv2": "ImVec2(1,0)", + "uv3": "ImVec2(1,1)", + "uv4": "ImVec2(0,1)" + }, + "funcname": "AddImageQuad", + "location": "imgui:2676", + "ov_cimguiname": "ImDrawList_AddImageQuad", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", "stname": "ImDrawList" } ], - "ImDrawList_PathArcTo": [ + "ImDrawList_AddImageRounded": [ { - "args": "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)", + "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "center", + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "name": "p_min", "type": "const ImVec2" }, { - "name": "radius", - "type": "float" + "name": "p_max", + "type": "const ImVec2" }, { - "name": "a_min", - "type": "float" + "name": "uv_min", + "type": "const ImVec2" }, { - "name": "a_max", + "name": "uv_max", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "rounding", "type": "float" }, { - "name": "num_segments", - "type": "int" + "name": "flags", + "type": "ImDrawFlags" } ], - "argsoriginal": "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments=0)", - "call_args": "(center,radius,a_min,a_max,num_segments)", - "cimguiname": "ImDrawList_PathArcTo", + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& p_min,const ImVec2& p_max,const ImVec2& uv_min,const ImVec2& uv_max,ImU32 col,float rounding,ImDrawFlags flags=0)", + "call_args": "(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags)", + "cimguiname": "ImDrawList_AddImageRounded", "defaults": { - "num_segments": "0" + "flags": "0" }, - "funcname": "PathArcTo", - "location": "imgui:2686", - "ov_cimguiname": "ImDrawList_PathArcTo", + "funcname": "AddImageRounded", + "location": "imgui:2677", + "ov_cimguiname": "ImDrawList_AddImageRounded", "ret": "void", - "signature": "(const ImVec2,float,float,float,int)", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", "stname": "ImDrawList" } ], - "ImDrawList_PathArcToFast": [ + "ImDrawList_AddLine": [ { - "args": "(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12)", + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "center", + "name": "p1", "type": "const ImVec2" }, { - "name": "radius", - "type": "float" + "name": "p2", + "type": "const ImVec2" }, { - "name": "a_min_of_12", - "type": "int" + "name": "col", + "type": "ImU32" }, { - "name": "a_max_of_12", - "type": "int" + "name": "thickness", + "type": "float" } ], - "argsoriginal": "(const ImVec2& center,float radius,int a_min_of_12,int a_max_of_12)", - "call_args": "(center,radius,a_min_of_12,a_max_of_12)", - "cimguiname": "ImDrawList_PathArcToFast", - "defaults": {}, - "funcname": "PathArcToFast", - "location": "imgui:2687", - "ov_cimguiname": "ImDrawList_PathArcToFast", + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,ImU32 col,float thickness=1.0f)", + "call_args": "(p1,p2,col,thickness)", + "cimguiname": "ImDrawList_AddLine", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddLine", + "location": "imgui:2652", + "ov_cimguiname": "ImDrawList_AddLine", "ret": "void", - "signature": "(const ImVec2,float,int,int)", + "signature": "(const ImVec2,const ImVec2,ImU32,float)", "stname": "ImDrawList" } ], - "ImDrawList_PathBezierCubicCurveTo": [ + "ImDrawList_AddNgon": [ { - "args": "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments)", + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "p2", + "name": "center", "type": "const ImVec2" }, { - "name": "p3", - "type": "const ImVec2" + "name": "radius", + "type": "float" }, { - "name": "p4", - "type": "const ImVec2" + "name": "col", + "type": "ImU32" }, { "name": "num_segments", "type": "int" + }, + { + "name": "thickness", + "type": "float" } ], - "argsoriginal": "(const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,int num_segments=0)", - "call_args": "(p2,p3,p4,num_segments)", - "cimguiname": "ImDrawList_PathBezierCubicCurveTo", + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments,float thickness=1.0f)", + "call_args": "(center,radius,col,num_segments,thickness)", + "cimguiname": "ImDrawList_AddNgon", "defaults": { - "num_segments": "0" + "thickness": "1.0f" }, - "funcname": "PathBezierCubicCurveTo", - "location": "imgui:2688", - "ov_cimguiname": "ImDrawList_PathBezierCubicCurveTo", + "funcname": "AddNgon", + "location": "imgui:2662", + "ov_cimguiname": "ImDrawList_AddNgon", "ret": "void", - "signature": "(const ImVec2,const ImVec2,const ImVec2,int)", + "signature": "(const ImVec2,float,ImU32,int,float)", "stname": "ImDrawList" } ], - "ImDrawList_PathBezierQuadraticCurveTo": [ + "ImDrawList_AddNgonFilled": [ { - "args": "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments)", + "args": "(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "p2", + "name": "center", "type": "const ImVec2" }, { - "name": "p3", - "type": "const ImVec2" + "name": "radius", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" }, { "name": "num_segments", "type": "int" } ], - "argsoriginal": "(const ImVec2& p2,const ImVec2& p3,int num_segments=0)", - "call_args": "(p2,p3,num_segments)", - "cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", - "defaults": { - "num_segments": "0" - }, - "funcname": "PathBezierQuadraticCurveTo", - "location": "imgui:2689", - "ov_cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", + "argsoriginal": "(const ImVec2& center,float radius,ImU32 col,int num_segments)", + "call_args": "(center,radius,col,num_segments)", + "cimguiname": "ImDrawList_AddNgonFilled", + "defaults": {}, + "funcname": "AddNgonFilled", + "location": "imgui:2663", + "ov_cimguiname": "ImDrawList_AddNgonFilled", "ret": "void", - "signature": "(const ImVec2,const ImVec2,int)", + "signature": "(const ImVec2,float,ImU32,int)", "stname": "ImDrawList" } ], - "ImDrawList_PathClear": [ + "ImDrawList_AddPolyline": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)", "argsT": [ { "name": "self", "type": "ImDrawList*" - } - ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList_PathClear", - "defaults": {}, - "funcname": "PathClear", - "location": "imgui:2681", - "ov_cimguiname": "ImDrawList_PathClear", - "ret": "void", - "signature": "()", - "stname": "ImDrawList" - } - ], - "ImDrawList_PathFillConvex": [ - { - "args": "(ImDrawList* self,ImU32 col)", - "argsT": [ + }, { - "name": "self", - "type": "ImDrawList*" + "name": "points", + "type": "const ImVec2*" + }, + { + "name": "num_points", + "type": "int" }, { "name": "col", "type": "ImU32" + }, + { + "name": "flags", + "type": "ImDrawFlags" + }, + { + "name": "thickness", + "type": "float" } ], - "argsoriginal": "(ImU32 col)", - "call_args": "(col)", - "cimguiname": "ImDrawList_PathFillConvex", + "argsoriginal": "(const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)", + "call_args": "(points,num_points,col,flags,thickness)", + "cimguiname": "ImDrawList_AddPolyline", "defaults": {}, - "funcname": "PathFillConvex", - "location": "imgui:2684", - "ov_cimguiname": "ImDrawList_PathFillConvex", + "funcname": "AddPolyline", + "location": "imgui:2666", + "ov_cimguiname": "ImDrawList_AddPolyline", "ret": "void", - "signature": "(ImU32)", + "signature": "(const ImVec2*,int,ImU32,ImDrawFlags,float)", "stname": "ImDrawList" } ], - "ImDrawList_PathLineTo": [ + "ImDrawList_AddQuad": [ { - "args": "(ImDrawList* self,const ImVec2 pos)", + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "pos", + "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" } ], - "argsoriginal": "(const ImVec2& pos)", - "call_args": "(pos)", - "cimguiname": "ImDrawList_PathLineTo", - "defaults": {}, - "funcname": "PathLineTo", - "location": "imgui:2682", - "ov_cimguiname": "ImDrawList_PathLineTo", + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col,float thickness=1.0f)", + "call_args": "(p1,p2,p3,p4,col,thickness)", + "cimguiname": "ImDrawList_AddQuad", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddQuad", + "location": "imgui:2656", + "ov_cimguiname": "ImDrawList_AddQuad", "ret": "void", - "signature": "(const ImVec2)", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)", "stname": "ImDrawList" } ], - "ImDrawList_PathLineToMergeDuplicate": [ + "ImDrawList_AddQuadFilled": [ { - "args": "(ImDrawList* self,const ImVec2 pos)", + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "pos", + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "(const ImVec2& pos)", - "call_args": "(pos)", - "cimguiname": "ImDrawList_PathLineToMergeDuplicate", + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,ImU32 col)", + "call_args": "(p1,p2,p3,p4,col)", + "cimguiname": "ImDrawList_AddQuadFilled", "defaults": {}, - "funcname": "PathLineToMergeDuplicate", - "location": "imgui:2683", - "ov_cimguiname": "ImDrawList_PathLineToMergeDuplicate", + "funcname": "AddQuadFilled", + "location": "imgui:2657", + "ov_cimguiname": "ImDrawList_AddQuadFilled", "ret": "void", - "signature": "(const ImVec2)", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", "stname": "ImDrawList" } ], - "ImDrawList_PathRect": [ + "ImDrawList_AddRect": [ { - "args": "(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags)", + "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "rect_min", + "name": "p_min", "type": "const ImVec2" }, { - "name": "rect_max", + "name": "p_max", "type": "const ImVec2" }, + { + "name": "col", + "type": "ImU32" + }, { "name": "rounding", "type": "float" @@ -1971,213 +1969,272 @@ { "name": "flags", "type": "ImDrawFlags" + }, + { + "name": "thickness", + "type": "float" } ], - "argsoriginal": "(const ImVec2& rect_min,const ImVec2& rect_max,float rounding=0.0f,ImDrawFlags flags=0)", - "call_args": "(rect_min,rect_max,rounding,flags)", - "cimguiname": "ImDrawList_PathRect", + "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0,float thickness=1.0f)", + "call_args": "(p_min,p_max,col,rounding,flags,thickness)", + "cimguiname": "ImDrawList_AddRect", "defaults": { "flags": "0", - "rounding": "0.0f" + "rounding": "0.0f", + "thickness": "1.0f" }, - "funcname": "PathRect", - "location": "imgui:2690", - "ov_cimguiname": "ImDrawList_PathRect", + "funcname": "AddRect", + "location": "imgui:2653", + "ov_cimguiname": "ImDrawList_AddRect", "ret": "void", - "signature": "(const ImVec2,const ImVec2,float,ImDrawFlags)", + "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)", "stname": "ImDrawList" } ], - "ImDrawList_PathStroke": [ + "ImDrawList_AddRectFilled": [ { - "args": "(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness)", + "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, + { + "name": "p_min", + "type": "const ImVec2" + }, + { + "name": "p_max", + "type": "const ImVec2" + }, { "name": "col", "type": "ImU32" }, { - "name": "flags", - "type": "ImDrawFlags" + "name": "rounding", + "type": "float" }, { - "name": "thickness", - "type": "float" + "name": "flags", + "type": "ImDrawFlags" } ], - "argsoriginal": "(ImU32 col,ImDrawFlags flags=0,float thickness=1.0f)", - "call_args": "(col,flags,thickness)", - "cimguiname": "ImDrawList_PathStroke", + "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col,float rounding=0.0f,ImDrawFlags flags=0)", + "call_args": "(p_min,p_max,col,rounding,flags)", + "cimguiname": "ImDrawList_AddRectFilled", "defaults": { "flags": "0", - "thickness": "1.0f" + "rounding": "0.0f" }, - "funcname": "PathStroke", - "location": "imgui:2685", - "ov_cimguiname": "ImDrawList_PathStroke", + "funcname": "AddRectFilled", + "location": "imgui:2654", + "ov_cimguiname": "ImDrawList_AddRectFilled", "ret": "void", - "signature": "(ImU32,ImDrawFlags,float)", + "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", "stname": "ImDrawList" } ], - "ImDrawList_PopClipRect": [ + "ImDrawList_AddRectFilledMultiColor": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)", "argsT": [ { "name": "self", "type": "ImDrawList*" - } - ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList_PopClipRect", - "defaults": {}, - "funcname": "PopClipRect", - "location": "imgui:2639", - "ov_cimguiname": "ImDrawList_PopClipRect", - "ret": "void", - "signature": "()", - "stname": "ImDrawList" - } - ], - "ImDrawList_PopTextureID": [ - { - "args": "(ImDrawList* self)", - "argsT": [ + }, { - "name": "self", - "type": "ImDrawList*" + "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" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList_PopTextureID", + "argsoriginal": "(const ImVec2& p_min,const ImVec2& p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)", + "call_args": "(p_min,p_max,col_upr_left,col_upr_right,col_bot_right,col_bot_left)", + "cimguiname": "ImDrawList_AddRectFilledMultiColor", "defaults": {}, - "funcname": "PopTextureID", - "location": "imgui:2641", - "ov_cimguiname": "ImDrawList_PopTextureID", + "funcname": "AddRectFilledMultiColor", + "location": "imgui:2655", + "ov_cimguiname": "ImDrawList_AddRectFilledMultiColor", "ret": "void", - "signature": "()", + "signature": "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)", "stname": "ImDrawList" } ], - "ImDrawList_PrimQuadUV": [ + "ImDrawList_AddText": [ { - "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col)", + "args": "(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "a", + "name": "pos", "type": "const ImVec2" }, { - "name": "b", - "type": "const ImVec2" + "name": "col", + "type": "ImU32" }, { - "name": "c", - "type": "const ImVec2" + "name": "text_begin", + "type": "const char*" }, { - "name": "d", - "type": "const ImVec2" - }, + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0))", + "call_args": "(pos,col,text_begin,text_end)", + "cimguiname": "ImDrawList_AddText", + "defaults": { + "text_end": "NULL" + }, + "funcname": "AddText", + "location": "imgui:2664", + "ov_cimguiname": "ImDrawList_AddText_Vec2", + "ret": "void", + "signature": "(const ImVec2,ImU32,const char*,const char*)", + "stname": "ImDrawList" + }, + { + "args": "(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect)", + "argsT": [ { - "name": "uv_a", - "type": "const ImVec2" + "name": "self", + "type": "ImDrawList*" }, { - "name": "uv_b", - "type": "const ImVec2" + "name": "font", + "type": "const ImFont*" }, { - "name": "uv_c", - "type": "const ImVec2" + "name": "font_size", + "type": "float" }, { - "name": "uv_d", + "name": "pos", "type": "const ImVec2" }, { "name": "col", "type": "ImU32" + }, + { + "name": "text_begin", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + }, + { + "name": "wrap_width", + "type": "float" + }, + { + "name": "cpu_fine_clip_rect", + "type": "const ImVec4*" } ], - "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,const ImVec2& uv_a,const ImVec2& uv_b,const ImVec2& uv_c,const ImVec2& uv_d,ImU32 col)", - "call_args": "(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col)", - "cimguiname": "ImDrawList_PrimQuadUV", - "defaults": {}, - "funcname": "PrimQuadUV", - "location": "imgui:2714", - "ov_cimguiname": "ImDrawList_PrimQuadUV", + "argsoriginal": "(const ImFont* font,float font_size,const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end=((void*)0),float wrap_width=0.0f,const ImVec4* cpu_fine_clip_rect=((void*)0))", + "call_args": "(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect)", + "cimguiname": "ImDrawList_AddText", + "defaults": { + "cpu_fine_clip_rect": "NULL", + "text_end": "NULL", + "wrap_width": "0.0f" + }, + "funcname": "AddText", + "location": "imgui:2665", + "ov_cimguiname": "ImDrawList_AddText_FontPtr", "ret": "void", - "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "signature": "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)", "stname": "ImDrawList" } ], - "ImDrawList_PrimRect": [ + "ImDrawList_AddTriangle": [ { - "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col)", + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "a", + "name": "p1", "type": "const ImVec2" }, { - "name": "b", + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", "type": "const ImVec2" }, { "name": "col", "type": "ImU32" + }, + { + "name": "thickness", + "type": "float" } ], - "argsoriginal": "(const ImVec2& a,const ImVec2& b,ImU32 col)", - "call_args": "(a,b,col)", - "cimguiname": "ImDrawList_PrimRect", - "defaults": {}, - "funcname": "PrimRect", - "location": "imgui:2712", - "ov_cimguiname": "ImDrawList_PrimRect", + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col,float thickness=1.0f)", + "call_args": "(p1,p2,p3,col,thickness)", + "cimguiname": "ImDrawList_AddTriangle", + "defaults": { + "thickness": "1.0f" + }, + "funcname": "AddTriangle", + "location": "imgui:2658", + "ov_cimguiname": "ImDrawList_AddTriangle", "ret": "void", - "signature": "(const ImVec2,const ImVec2,ImU32)", + "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)", "stname": "ImDrawList" } ], - "ImDrawList_PrimRectUV": [ + "ImDrawList_AddTriangleFilled": [ { - "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col)", + "args": "(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "a", - "type": "const ImVec2" - }, - { - "name": "b", + "name": "p1", "type": "const ImVec2" }, { - "name": "uv_a", + "name": "p2", "type": "const ImVec2" }, { - "name": "uv_b", + "name": "p3", "type": "const ImVec2" }, { @@ -2185,316 +2242,338 @@ "type": "ImU32" } ], - "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,ImU32 col)", - "call_args": "(a,b,uv_a,uv_b,col)", - "cimguiname": "ImDrawList_PrimRectUV", + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,ImU32 col)", + "call_args": "(p1,p2,p3,col)", + "cimguiname": "ImDrawList_AddTriangleFilled", "defaults": {}, - "funcname": "PrimRectUV", - "location": "imgui:2713", - "ov_cimguiname": "ImDrawList_PrimRectUV", + "funcname": "AddTriangleFilled", + "location": "imgui:2659", + "ov_cimguiname": "ImDrawList_AddTriangleFilled", "ret": "void", - "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32)", "stname": "ImDrawList" } ], - "ImDrawList_PrimReserve": [ + "ImDrawList_ChannelsMerge": [ { - "args": "(ImDrawList* self,int idx_count,int vtx_count)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", "type": "ImDrawList*" - }, - { - "name": "idx_count", - "type": "int" - }, - { - "name": "vtx_count", - "type": "int" } ], - "argsoriginal": "(int idx_count,int vtx_count)", - "call_args": "(idx_count,vtx_count)", - "cimguiname": "ImDrawList_PrimReserve", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_ChannelsMerge", "defaults": {}, - "funcname": "PrimReserve", - "location": "imgui:2710", - "ov_cimguiname": "ImDrawList_PrimReserve", + "funcname": "ChannelsMerge", + "location": "imgui:2704", + "ov_cimguiname": "ImDrawList_ChannelsMerge", "ret": "void", - "signature": "(int,int)", + "signature": "()", "stname": "ImDrawList" } ], - "ImDrawList_PrimUnreserve": [ + "ImDrawList_ChannelsSetCurrent": [ { - "args": "(ImDrawList* self,int idx_count,int vtx_count)", + "args": "(ImDrawList* self,int n)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "idx_count", - "type": "int" - }, - { - "name": "vtx_count", + "name": "n", "type": "int" } ], - "argsoriginal": "(int idx_count,int vtx_count)", - "call_args": "(idx_count,vtx_count)", - "cimguiname": "ImDrawList_PrimUnreserve", + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImDrawList_ChannelsSetCurrent", "defaults": {}, - "funcname": "PrimUnreserve", - "location": "imgui:2711", - "ov_cimguiname": "ImDrawList_PrimUnreserve", + "funcname": "ChannelsSetCurrent", + "location": "imgui:2705", + "ov_cimguiname": "ImDrawList_ChannelsSetCurrent", "ret": "void", - "signature": "(int,int)", + "signature": "(int)", "stname": "ImDrawList" } ], - "ImDrawList_PrimVtx": [ + "ImDrawList_ChannelsSplit": [ { - "args": "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)", + "args": "(ImDrawList* self,int count)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "pos", - "type": "const ImVec2" - }, - { - "name": "uv", - "type": "const ImVec2" - }, - { - "name": "col", - "type": "ImU32" + "name": "count", + "type": "int" } ], - "argsoriginal": "(const ImVec2& pos,const ImVec2& uv,ImU32 col)", - "call_args": "(pos,uv,col)", - "cimguiname": "ImDrawList_PrimVtx", + "argsoriginal": "(int count)", + "call_args": "(count)", + "cimguiname": "ImDrawList_ChannelsSplit", "defaults": {}, - "funcname": "PrimVtx", - "location": "imgui:2717", - "ov_cimguiname": "ImDrawList_PrimVtx", + "funcname": "ChannelsSplit", + "location": "imgui:2703", + "ov_cimguiname": "ImDrawList_ChannelsSplit", "ret": "void", - "signature": "(const ImVec2,const ImVec2,ImU32)", + "signature": "(int)", "stname": "ImDrawList" } ], - "ImDrawList_PrimWriteIdx": [ + "ImDrawList_CloneOutput": [ { - "args": "(ImDrawList* self,ImDrawIdx idx)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", "type": "ImDrawList*" - }, - { - "name": "idx", - "type": "ImDrawIdx" } ], - "argsoriginal": "(ImDrawIdx idx)", - "call_args": "(idx)", - "cimguiname": "ImDrawList_PrimWriteIdx", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_CloneOutput", "defaults": {}, - "funcname": "PrimWriteIdx", - "location": "imgui:2716", - "ov_cimguiname": "ImDrawList_PrimWriteIdx", - "ret": "void", - "signature": "(ImDrawIdx)", + "funcname": "CloneOutput", + "location": "imgui:2695", + "ov_cimguiname": "ImDrawList_CloneOutput", + "ret": "ImDrawList*", + "signature": "()const", "stname": "ImDrawList" } ], - "ImDrawList_PrimWriteVtx": [ + "ImDrawList_GetClipRectMax": [ { - "args": "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)", + "args": "(ImVec2 *pOut,ImDrawList* self)", "argsT": [ { - "name": "self", - "type": "ImDrawList*" - }, - { - "name": "pos", - "type": "const ImVec2" + "name": "pOut", + "type": "ImVec2*" }, { - "name": "uv", - "type": "const ImVec2" - }, - { - "name": "col", - "type": "ImU32" + "name": "self", + "type": "ImDrawList*" } ], - "argsoriginal": "(const ImVec2& pos,const ImVec2& uv,ImU32 col)", - "call_args": "(pos,uv,col)", - "cimguiname": "ImDrawList_PrimWriteVtx", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_GetClipRectMax", "defaults": {}, - "funcname": "PrimWriteVtx", - "location": "imgui:2715", - "ov_cimguiname": "ImDrawList_PrimWriteVtx", + "funcname": "GetClipRectMax", + "location": "imgui:2643", + "nonUDT": 1, + "ov_cimguiname": "ImDrawList_GetClipRectMax", "ret": "void", - "signature": "(const ImVec2,const ImVec2,ImU32)", + "signature": "()const", "stname": "ImDrawList" } ], - "ImDrawList_PushClipRect": [ + "ImDrawList_GetClipRectMin": [ { - "args": "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", + "args": "(ImVec2 *pOut,ImDrawList* self)", "argsT": [ { - "name": "self", - "type": "ImDrawList*" - }, - { - "name": "clip_rect_min", - "type": "const ImVec2" - }, - { - "name": "clip_rect_max", - "type": "const ImVec2" + "name": "pOut", + "type": "ImVec2*" }, { - "name": "intersect_with_current_clip_rect", - "type": "bool" + "name": "self", + "type": "ImDrawList*" } ], - "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)", - "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", - "cimguiname": "ImDrawList_PushClipRect", - "defaults": { - "intersect_with_current_clip_rect": "false" - }, - "funcname": "PushClipRect", - "location": "imgui:2637", - "ov_cimguiname": "ImDrawList_PushClipRect", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_GetClipRectMin", + "defaults": {}, + "funcname": "GetClipRectMin", + "location": "imgui:2642", + "nonUDT": 1, + "ov_cimguiname": "ImDrawList_GetClipRectMin", "ret": "void", - "signature": "(const ImVec2,const ImVec2,bool)", + "signature": "()const", "stname": "ImDrawList" } ], - "ImDrawList_PushClipRectFullScreen": [ + "ImDrawList_ImDrawList": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawListSharedData* shared_data)", "argsT": [ { - "name": "self", - "type": "ImDrawList*" + "name": "shared_data", + "type": "ImDrawListSharedData*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList_PushClipRectFullScreen", + "argsoriginal": "(ImDrawListSharedData* shared_data)", + "call_args": "(shared_data)", + "cimguiname": "ImDrawList_ImDrawList", + "constructor": true, "defaults": {}, - "funcname": "PushClipRectFullScreen", - "location": "imgui:2638", - "ov_cimguiname": "ImDrawList_PushClipRectFullScreen", - "ret": "void", - "signature": "()", + "funcname": "ImDrawList", + "location": "imgui:2634", + "ov_cimguiname": "ImDrawList_ImDrawList", + "signature": "(ImDrawListSharedData*)", "stname": "ImDrawList" } ], - "ImDrawList_PushTextureID": [ + "ImDrawList_PathArcTo": [ { - "args": "(ImDrawList* self,ImTextureID texture_id)", + "args": "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "texture_id", - "type": "ImTextureID" + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "a_min", + "type": "float" + }, + { + "name": "a_max", + "type": "float" + }, + { + "name": "num_segments", + "type": "int" } ], - "argsoriginal": "(ImTextureID texture_id)", - "call_args": "(texture_id)", - "cimguiname": "ImDrawList_PushTextureID", - "defaults": {}, - "funcname": "PushTextureID", - "location": "imgui:2640", - "ov_cimguiname": "ImDrawList_PushTextureID", + "argsoriginal": "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments=0)", + "call_args": "(center,radius,a_min,a_max,num_segments)", + "cimguiname": "ImDrawList_PathArcTo", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathArcTo", + "location": "imgui:2686", + "ov_cimguiname": "ImDrawList_PathArcTo", "ret": "void", - "signature": "(ImTextureID)", + "signature": "(const ImVec2,float,float,float,int)", "stname": "ImDrawList" } ], - "ImDrawList__CalcCircleAutoSegmentCount": [ + "ImDrawList_PathArcToFast": [ { - "args": "(ImDrawList* self,float radius)", + "args": "(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, + { + "name": "center", + "type": "const ImVec2" + }, { "name": "radius", "type": "float" + }, + { + "name": "a_min_of_12", + "type": "int" + }, + { + "name": "a_max_of_12", + "type": "int" } ], - "argsoriginal": "(float radius)", - "call_args": "(radius)", - "cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", + "argsoriginal": "(const ImVec2& center,float radius,int a_min_of_12,int a_max_of_12)", + "call_args": "(center,radius,a_min_of_12,a_max_of_12)", + "cimguiname": "ImDrawList_PathArcToFast", "defaults": {}, - "funcname": "_CalcCircleAutoSegmentCount", - "location": "imgui:2732", - "ov_cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", - "ret": "int", - "signature": "(float)const", + "funcname": "PathArcToFast", + "location": "imgui:2687", + "ov_cimguiname": "ImDrawList_PathArcToFast", + "ret": "void", + "signature": "(const ImVec2,float,int,int)", "stname": "ImDrawList" } ], - "ImDrawList__ClearFreeMemory": [ + "ImDrawList_PathBezierCubicCurveTo": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments)", "argsT": [ { "name": "self", "type": "ImDrawList*" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", + "type": "const ImVec2" + }, + { + "name": "num_segments", + "type": "int" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList__ClearFreeMemory", - "defaults": {}, - "funcname": "_ClearFreeMemory", - "location": "imgui:2726", - "ov_cimguiname": "ImDrawList__ClearFreeMemory", + "argsoriginal": "(const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,int num_segments=0)", + "call_args": "(p2,p3,p4,num_segments)", + "cimguiname": "ImDrawList_PathBezierCubicCurveTo", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathBezierCubicCurveTo", + "location": "imgui:2688", + "ov_cimguiname": "ImDrawList_PathBezierCubicCurveTo", "ret": "void", - "signature": "()", + "signature": "(const ImVec2,const ImVec2,const ImVec2,int)", "stname": "ImDrawList" } ], - "ImDrawList__OnChangedClipRect": [ + "ImDrawList_PathBezierQuadraticCurveTo": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments)", "argsT": [ { "name": "self", "type": "ImDrawList*" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "num_segments", + "type": "int" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList__OnChangedClipRect", - "defaults": {}, - "funcname": "_OnChangedClipRect", - "location": "imgui:2729", - "ov_cimguiname": "ImDrawList__OnChangedClipRect", + "argsoriginal": "(const ImVec2& p2,const ImVec2& p3,int num_segments=0)", + "call_args": "(p2,p3,num_segments)", + "cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathBezierQuadraticCurveTo", + "location": "imgui:2689", + "ov_cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", "ret": "void", - "signature": "()", + "signature": "(const ImVec2,const ImVec2,int)", "stname": "ImDrawList" } ], - "ImDrawList__OnChangedTextureID": [ + "ImDrawList_PathClear": [ { "args": "(ImDrawList* self)", "argsT": [ @@ -2505,141 +2584,168 @@ ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawList__OnChangedTextureID", + "cimguiname": "ImDrawList_PathClear", "defaults": {}, - "funcname": "_OnChangedTextureID", - "location": "imgui:2730", - "ov_cimguiname": "ImDrawList__OnChangedTextureID", + "funcname": "PathClear", + "location": "imgui:2681", + "ov_cimguiname": "ImDrawList_PathClear", "ret": "void", "signature": "()", "stname": "ImDrawList" } ], - "ImDrawList__OnChangedVtxOffset": [ + "ImDrawList_PathFillConvex": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawList* self,ImU32 col)", "argsT": [ { "name": "self", "type": "ImDrawList*" + }, + { + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList__OnChangedVtxOffset", + "argsoriginal": "(ImU32 col)", + "call_args": "(col)", + "cimguiname": "ImDrawList_PathFillConvex", "defaults": {}, - "funcname": "_OnChangedVtxOffset", - "location": "imgui:2731", - "ov_cimguiname": "ImDrawList__OnChangedVtxOffset", + "funcname": "PathFillConvex", + "location": "imgui:2684", + "ov_cimguiname": "ImDrawList_PathFillConvex", "ret": "void", - "signature": "()", + "signature": "(ImU32)", "stname": "ImDrawList" } ], - "ImDrawList__PathArcToFastEx": [ + "ImDrawList_PathLineTo": [ { - "args": "(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step)", + "args": "(ImDrawList* self,const ImVec2 pos)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "center", + "name": "pos", "type": "const ImVec2" - }, - { - "name": "radius", - "type": "float" - }, - { - "name": "a_min_sample", - "type": "int" - }, + } + ], + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "ImDrawList_PathLineTo", + "defaults": {}, + "funcname": "PathLineTo", + "location": "imgui:2682", + "ov_cimguiname": "ImDrawList_PathLineTo", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImDrawList" + } + ], + "ImDrawList_PathLineToMergeDuplicate": [ + { + "args": "(ImDrawList* self,const ImVec2 pos)", + "argsT": [ { - "name": "a_max_sample", - "type": "int" + "name": "self", + "type": "ImDrawList*" }, { - "name": "a_step", - "type": "int" + "name": "pos", + "type": "const ImVec2" } ], - "argsoriginal": "(const ImVec2& center,float radius,int a_min_sample,int a_max_sample,int a_step)", - "call_args": "(center,radius,a_min_sample,a_max_sample,a_step)", - "cimguiname": "ImDrawList__PathArcToFastEx", + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "ImDrawList_PathLineToMergeDuplicate", "defaults": {}, - "funcname": "_PathArcToFastEx", - "location": "imgui:2733", - "ov_cimguiname": "ImDrawList__PathArcToFastEx", + "funcname": "PathLineToMergeDuplicate", + "location": "imgui:2683", + "ov_cimguiname": "ImDrawList_PathLineToMergeDuplicate", "ret": "void", - "signature": "(const ImVec2,float,int,int,int)", + "signature": "(const ImVec2)", "stname": "ImDrawList" } ], - "ImDrawList__PathArcToN": [ + "ImDrawList_PathRect": [ { - "args": "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)", + "args": "(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags)", "argsT": [ { "name": "self", "type": "ImDrawList*" }, { - "name": "center", + "name": "rect_min", "type": "const ImVec2" }, { - "name": "radius", - "type": "float" - }, - { - "name": "a_min", - "type": "float" + "name": "rect_max", + "type": "const ImVec2" }, { - "name": "a_max", + "name": "rounding", "type": "float" }, { - "name": "num_segments", - "type": "int" + "name": "flags", + "type": "ImDrawFlags" } ], - "argsoriginal": "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments)", - "call_args": "(center,radius,a_min,a_max,num_segments)", - "cimguiname": "ImDrawList__PathArcToN", - "defaults": {}, - "funcname": "_PathArcToN", - "location": "imgui:2734", - "ov_cimguiname": "ImDrawList__PathArcToN", + "argsoriginal": "(const ImVec2& rect_min,const ImVec2& rect_max,float rounding=0.0f,ImDrawFlags flags=0)", + "call_args": "(rect_min,rect_max,rounding,flags)", + "cimguiname": "ImDrawList_PathRect", + "defaults": { + "flags": "0", + "rounding": "0.0f" + }, + "funcname": "PathRect", + "location": "imgui:2690", + "ov_cimguiname": "ImDrawList_PathRect", "ret": "void", - "signature": "(const ImVec2,float,float,float,int)", + "signature": "(const ImVec2,const ImVec2,float,ImDrawFlags)", "stname": "ImDrawList" } ], - "ImDrawList__PopUnusedDrawCmd": [ + "ImDrawList_PathStroke": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness)", "argsT": [ { "name": "self", "type": "ImDrawList*" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "flags", + "type": "ImDrawFlags" + }, + { + "name": "thickness", + "type": "float" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawList__PopUnusedDrawCmd", - "defaults": {}, - "funcname": "_PopUnusedDrawCmd", - "location": "imgui:2727", - "ov_cimguiname": "ImDrawList__PopUnusedDrawCmd", + "argsoriginal": "(ImU32 col,ImDrawFlags flags=0,float thickness=1.0f)", + "call_args": "(col,flags,thickness)", + "cimguiname": "ImDrawList_PathStroke", + "defaults": { + "flags": "0", + "thickness": "1.0f" + }, + "funcname": "PathStroke", + "location": "imgui:2685", + "ov_cimguiname": "ImDrawList_PathStroke", "ret": "void", - "signature": "()", + "signature": "(ImU32,ImDrawFlags,float)", "stname": "ImDrawList" } ], - "ImDrawList__ResetForNewFrame": [ + "ImDrawList_PopClipRect": [ { "args": "(ImDrawList* self)", "argsT": [ @@ -2650,17 +2756,17 @@ ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawList__ResetForNewFrame", + "cimguiname": "ImDrawList_PopClipRect", "defaults": {}, - "funcname": "_ResetForNewFrame", - "location": "imgui:2725", - "ov_cimguiname": "ImDrawList__ResetForNewFrame", + "funcname": "PopClipRect", + "location": "imgui:2639", + "ov_cimguiname": "ImDrawList_PopClipRect", "ret": "void", "signature": "()", "stname": "ImDrawList" } ], - "ImDrawList__TryMergeDrawCmds": [ + "ImDrawList_PopTextureID": [ { "args": "(ImDrawList* self)", "argsT": [ @@ -2671,14759 +2777,32153 @@ ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawList__TryMergeDrawCmds", + "cimguiname": "ImDrawList_PopTextureID", "defaults": {}, - "funcname": "_TryMergeDrawCmds", - "location": "imgui:2728", - "ov_cimguiname": "ImDrawList__TryMergeDrawCmds", + "funcname": "PopTextureID", + "location": "imgui:2641", + "ov_cimguiname": "ImDrawList_PopTextureID", "ret": "void", "signature": "()", "stname": "ImDrawList" } ], - "ImDrawList_destroy": [ + "ImDrawList_PrimQuadUV": [ { - "args": "(ImDrawList* self)", + "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col)", "argsT": [ { "name": "self", "type": "ImDrawList*" + }, + { + "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" } ], - "call_args": "(self)", - "cimguiname": "ImDrawList_destroy", + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,const ImVec2& uv_a,const ImVec2& uv_b,const ImVec2& uv_c,const ImVec2& uv_d,ImU32 col)", + "call_args": "(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col)", + "cimguiname": "ImDrawList_PrimQuadUV", "defaults": {}, - "destructor": true, - "location": "imgui:2636", - "ov_cimguiname": "ImDrawList_destroy", - "realdestructor": true, + "funcname": "PrimQuadUV", + "location": "imgui:2714", + "ov_cimguiname": "ImDrawList_PrimQuadUV", "ret": "void", - "signature": "(ImDrawList*)", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", "stname": "ImDrawList" } ], - "ImFontAtlasCustomRect_ImFontAtlasCustomRect": [ + "ImDrawList_PrimRect": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", - "constructor": true, + "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,ImU32 col)", + "call_args": "(a,b,col)", + "cimguiname": "ImDrawList_PrimRect", "defaults": {}, - "funcname": "ImFontAtlasCustomRect", - "location": "imgui:2827", - "ov_cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", - "signature": "()", - "stname": "ImFontAtlasCustomRect" + "funcname": "PrimRect", + "location": "imgui:2712", + "ov_cimguiname": "ImDrawList_PrimRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" } ], - "ImFontAtlasCustomRect_IsPacked": [ + "ImDrawList_PrimRectUV": [ { - "args": "(ImFontAtlasCustomRect* self)", + "args": "(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col)", "argsT": [ { "name": "self", - "type": "ImFontAtlasCustomRect*" - } - ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontAtlasCustomRect_IsPacked", - "defaults": {}, - "funcname": "IsPacked", - "location": "imgui:2828", - "ov_cimguiname": "ImFontAtlasCustomRect_IsPacked", - "ret": "bool", - "signature": "()const", - "stname": "ImFontAtlasCustomRect" - } - ], - "ImFontAtlasCustomRect_destroy": [ - { - "args": "(ImFontAtlasCustomRect* self)", - "argsT": [ + "type": "ImDrawList*" + }, { - "name": "self", - "type": "ImFontAtlasCustomRect*" + "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" } ], - "call_args": "(self)", - "cimguiname": "ImFontAtlasCustomRect_destroy", + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,ImU32 col)", + "call_args": "(a,b,uv_a,uv_b,col)", + "cimguiname": "ImDrawList_PrimRectUV", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImFontAtlasCustomRect_destroy", + "funcname": "PrimRectUV", + "location": "imgui:2713", + "ov_cimguiname": "ImDrawList_PrimRectUV", "ret": "void", - "signature": "(ImFontAtlasCustomRect*)", - "stname": "ImFontAtlasCustomRect" + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" } ], - "ImFontAtlas_AddCustomRectFontGlyph": [ + "ImDrawList_PrimReserve": [ { - "args": "(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset)", + "args": "(ImDrawList* self,int idx_count,int vtx_count)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" - }, - { - "name": "font", - "type": "ImFont*" - }, - { - "name": "id", - "type": "ImWchar" + "type": "ImDrawList*" }, { - "name": "width", + "name": "idx_count", "type": "int" }, { - "name": "height", + "name": "vtx_count", "type": "int" - }, - { - "name": "advance_x", - "type": "float" - }, - { - "name": "offset", - "type": "const ImVec2" } ], - "argsoriginal": "(ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2& offset=ImVec2(0,0))", - "call_args": "(font,id,width,height,advance_x,offset)", - "cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", - "defaults": { - "offset": "ImVec2(0,0)" - }, - "funcname": "AddCustomRectFontGlyph", - "location": "imgui:2912", - "ov_cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", - "ret": "int", - "signature": "(ImFont*,ImWchar,int,int,float,const ImVec2)", - "stname": "ImFontAtlas" + "argsoriginal": "(int idx_count,int vtx_count)", + "call_args": "(idx_count,vtx_count)", + "cimguiname": "ImDrawList_PrimReserve", + "defaults": {}, + "funcname": "PrimReserve", + "location": "imgui:2710", + "ov_cimguiname": "ImDrawList_PrimReserve", + "ret": "void", + "signature": "(int,int)", + "stname": "ImDrawList" } ], - "ImFontAtlas_AddCustomRectRegular": [ + "ImDrawList_PrimUnreserve": [ { - "args": "(ImFontAtlas* self,int width,int height)", + "args": "(ImDrawList* self,int idx_count,int vtx_count)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" }, { - "name": "width", + "name": "idx_count", "type": "int" }, { - "name": "height", + "name": "vtx_count", "type": "int" } ], - "argsoriginal": "(int width,int height)", - "call_args": "(width,height)", - "cimguiname": "ImFontAtlas_AddCustomRectRegular", + "argsoriginal": "(int idx_count,int vtx_count)", + "call_args": "(idx_count,vtx_count)", + "cimguiname": "ImDrawList_PrimUnreserve", "defaults": {}, - "funcname": "AddCustomRectRegular", - "location": "imgui:2911", - "ov_cimguiname": "ImFontAtlas_AddCustomRectRegular", - "ret": "int", + "funcname": "PrimUnreserve", + "location": "imgui:2711", + "ov_cimguiname": "ImDrawList_PrimUnreserve", + "ret": "void", "signature": "(int,int)", - "stname": "ImFontAtlas" + "stname": "ImDrawList" } ], - "ImFontAtlas_AddFont": [ + "ImDrawList_PrimVtx": [ { - "args": "(ImFontAtlas* self,const ImFontConfig* font_cfg)", + "args": "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" }, { - "name": "font_cfg", - "type": "const ImFontConfig*" + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "uv", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "(const ImFontConfig* font_cfg)", - "call_args": "(font_cfg)", - "cimguiname": "ImFontAtlas_AddFont", + "argsoriginal": "(const ImVec2& pos,const ImVec2& uv,ImU32 col)", + "call_args": "(pos,uv,col)", + "cimguiname": "ImDrawList_PrimVtx", "defaults": {}, - "funcname": "AddFont", - "location": "imgui:2861", - "ov_cimguiname": "ImFontAtlas_AddFont", - "ret": "ImFont*", - "signature": "(const ImFontConfig*)", - "stname": "ImFontAtlas" + "funcname": "PrimVtx", + "location": "imgui:2717", + "ov_cimguiname": "ImDrawList_PrimVtx", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" } ], - "ImFontAtlas_AddFontDefault": [ + "ImDrawList_PrimWriteIdx": [ { - "args": "(ImFontAtlas* self,const ImFontConfig* font_cfg)", + "args": "(ImDrawList* self,ImDrawIdx idx)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" }, { - "name": "font_cfg", - "type": "const ImFontConfig*" + "name": "idx", + "type": "ImDrawIdx" } ], - "argsoriginal": "(const ImFontConfig* font_cfg=((void*)0))", - "call_args": "(font_cfg)", - "cimguiname": "ImFontAtlas_AddFontDefault", - "defaults": { - "font_cfg": "NULL" - }, - "funcname": "AddFontDefault", - "location": "imgui:2862", - "ov_cimguiname": "ImFontAtlas_AddFontDefault", - "ret": "ImFont*", - "signature": "(const ImFontConfig*)", - "stname": "ImFontAtlas" + "argsoriginal": "(ImDrawIdx idx)", + "call_args": "(idx)", + "cimguiname": "ImDrawList_PrimWriteIdx", + "defaults": {}, + "funcname": "PrimWriteIdx", + "location": "imgui:2716", + "ov_cimguiname": "ImDrawList_PrimWriteIdx", + "ret": "void", + "signature": "(ImDrawIdx)", + "stname": "ImDrawList" } ], - "ImFontAtlas_AddFontFromFileTTF": [ + "ImDrawList_PrimWriteVtx": [ { - "args": "(ImFontAtlas* self,const char* filename,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "args": "(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" - }, - { - "name": "filename", - "type": "const char*" + "type": "ImDrawList*" }, { - "name": "size_pixels", - "type": "float" + "name": "pos", + "type": "const ImVec2" }, { - "name": "font_cfg", - "type": "const ImFontConfig*" + "name": "uv", + "type": "const ImVec2" }, { - "name": "glyph_ranges", - "type": "const ImWchar*" + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "(const char* filename,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", - "call_args": "(filename,size_pixels,font_cfg,glyph_ranges)", - "cimguiname": "ImFontAtlas_AddFontFromFileTTF", - "defaults": { - "font_cfg": "NULL", - "glyph_ranges": "NULL" - }, - "funcname": "AddFontFromFileTTF", - "location": "imgui:2863", - "ov_cimguiname": "ImFontAtlas_AddFontFromFileTTF", - "ret": "ImFont*", - "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", - "stname": "ImFontAtlas" + "argsoriginal": "(const ImVec2& pos,const ImVec2& uv,ImU32 col)", + "call_args": "(pos,uv,col)", + "cimguiname": "ImDrawList_PrimWriteVtx", + "defaults": {}, + "funcname": "PrimWriteVtx", + "location": "imgui:2715", + "ov_cimguiname": "ImDrawList_PrimWriteVtx", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImU32)", + "stname": "ImDrawList" } ], - "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF": [ + "ImDrawList_PushClipRect": [ { - "args": "(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "args": "(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" }, { - "name": "compressed_font_data_base85", - "type": "const char*" + "name": "clip_rect_min", + "type": "const ImVec2" }, { - "name": "size_pixels", - "type": "float" + "name": "clip_rect_max", + "type": "const ImVec2" }, { - "name": "font_cfg", - "type": "const ImFontConfig*" - }, - { - "name": "glyph_ranges", - "type": "const ImWchar*" + "name": "intersect_with_current_clip_rect", + "type": "bool" } ], - "argsoriginal": "(const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", - "call_args": "(compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges)", - "cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", + "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect=false)", + "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", + "cimguiname": "ImDrawList_PushClipRect", "defaults": { - "font_cfg": "NULL", - "glyph_ranges": "NULL" + "intersect_with_current_clip_rect": "false" }, - "funcname": "AddFontFromMemoryCompressedBase85TTF", - "location": "imgui:2866", - "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", - "ret": "ImFont*", - "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", - "stname": "ImFontAtlas" + "funcname": "PushClipRect", + "location": "imgui:2637", + "ov_cimguiname": "ImDrawList_PushClipRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,bool)", + "stname": "ImDrawList" } ], - "ImFontAtlas_AddFontFromMemoryCompressedTTF": [ + "ImDrawList_PushClipRectFullScreen": [ { - "args": "(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" - }, - { - "name": "compressed_font_data", - "type": "const void*" - }, - { - "name": "compressed_font_size", - "type": "int" - }, - { - "name": "size_pixels", - "type": "float" - }, - { - "name": "font_cfg", - "type": "const ImFontConfig*" - }, - { - "name": "glyph_ranges", - "type": "const ImWchar*" + "type": "ImDrawList*" } ], - "argsoriginal": "(const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", - "call_args": "(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges)", - "cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", - "defaults": { - "font_cfg": "NULL", - "glyph_ranges": "NULL" - }, - "funcname": "AddFontFromMemoryCompressedTTF", - "location": "imgui:2865", - "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", - "ret": "ImFont*", - "signature": "(const void*,int,float,const ImFontConfig*,const ImWchar*)", - "stname": "ImFontAtlas" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImDrawList_PushClipRectFullScreen", + "defaults": {}, + "funcname": "PushClipRectFullScreen", + "location": "imgui:2638", + "ov_cimguiname": "ImDrawList_PushClipRectFullScreen", + "ret": "void", + "signature": "()", + "stname": "ImDrawList" } ], - "ImFontAtlas_AddFontFromMemoryTTF": [ + "ImDrawList_PushTextureID": [ { - "args": "(ImFontAtlas* self,void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "args": "(ImDrawList* self,ImTextureID texture_id)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" - }, - { - "name": "font_data", - "type": "void*" - }, - { - "name": "font_size", - "type": "int" - }, - { - "name": "size_pixels", - "type": "float" - }, - { - "name": "font_cfg", - "type": "const ImFontConfig*" + "type": "ImDrawList*" }, { - "name": "glyph_ranges", - "type": "const ImWchar*" - } - ], - "argsoriginal": "(void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", - "call_args": "(font_data,font_size,size_pixels,font_cfg,glyph_ranges)", - "cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", - "defaults": { - "font_cfg": "NULL", - "glyph_ranges": "NULL" - }, - "funcname": "AddFontFromMemoryTTF", - "location": "imgui:2864", - "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", - "ret": "ImFont*", - "signature": "(void*,int,float,const ImFontConfig*,const ImWchar*)", - "stname": "ImFontAtlas" - } - ], - "ImFontAtlas_Build": [ - { - "args": "(ImFontAtlas* self)", - "argsT": [ - { - "name": "self", - "type": "ImFontAtlas*" + "name": "texture_id", + "type": "ImTextureID" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontAtlas_Build", + "argsoriginal": "(ImTextureID texture_id)", + "call_args": "(texture_id)", + "cimguiname": "ImDrawList_PushTextureID", "defaults": {}, - "funcname": "Build", - "location": "imgui:2877", - "ov_cimguiname": "ImFontAtlas_Build", - "ret": "bool", - "signature": "()", - "stname": "ImFontAtlas" + "funcname": "PushTextureID", + "location": "imgui:2640", + "ov_cimguiname": "ImDrawList_PushTextureID", + "ret": "void", + "signature": "(ImTextureID)", + "stname": "ImDrawList" } ], - "ImFontAtlas_CalcCustomRectUV": [ + "ImDrawList__CalcCircleAutoSegmentCount": [ { - "args": "(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)", + "args": "(ImDrawList* self,float radius)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" - }, - { - "name": "rect", - "type": "const ImFontAtlasCustomRect*" - }, - { - "name": "out_uv_min", - "type": "ImVec2*" + "type": "ImDrawList*" }, { - "name": "out_uv_max", - "type": "ImVec2*" + "name": "radius", + "type": "float" } ], - "argsoriginal": "(const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)", - "call_args": "(rect,out_uv_min,out_uv_max)", - "cimguiname": "ImFontAtlas_CalcCustomRectUV", + "argsoriginal": "(float radius)", + "call_args": "(radius)", + "cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", "defaults": {}, - "funcname": "CalcCustomRectUV", - "location": "imgui:2916", - "ov_cimguiname": "ImFontAtlas_CalcCustomRectUV", - "ret": "void", - "signature": "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const", - "stname": "ImFontAtlas" + "funcname": "_CalcCircleAutoSegmentCount", + "location": "imgui:2732", + "ov_cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", + "ret": "int", + "signature": "(float)const", + "stname": "ImDrawList" } ], - "ImFontAtlas_Clear": [ + "ImDrawList__ClearFreeMemory": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontAtlas_Clear", + "cimguiname": "ImDrawList__ClearFreeMemory", "defaults": {}, - "funcname": "Clear", - "location": "imgui:2870", - "ov_cimguiname": "ImFontAtlas_Clear", + "funcname": "_ClearFreeMemory", + "location": "imgui:2726", + "ov_cimguiname": "ImDrawList__ClearFreeMemory", "ret": "void", "signature": "()", - "stname": "ImFontAtlas" + "stname": "ImDrawList" } ], - "ImFontAtlas_ClearFonts": [ + "ImDrawList__OnChangedClipRect": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontAtlas_ClearFonts", + "cimguiname": "ImDrawList__OnChangedClipRect", "defaults": {}, - "funcname": "ClearFonts", - "location": "imgui:2869", - "ov_cimguiname": "ImFontAtlas_ClearFonts", + "funcname": "_OnChangedClipRect", + "location": "imgui:2729", + "ov_cimguiname": "ImDrawList__OnChangedClipRect", "ret": "void", "signature": "()", - "stname": "ImFontAtlas" + "stname": "ImDrawList" } ], - "ImFontAtlas_ClearInputData": [ + "ImDrawList__OnChangedTextureID": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontAtlas_ClearInputData", + "cimguiname": "ImDrawList__OnChangedTextureID", "defaults": {}, - "funcname": "ClearInputData", - "location": "imgui:2867", - "ov_cimguiname": "ImFontAtlas_ClearInputData", + "funcname": "_OnChangedTextureID", + "location": "imgui:2730", + "ov_cimguiname": "ImDrawList__OnChangedTextureID", "ret": "void", "signature": "()", - "stname": "ImFontAtlas" + "stname": "ImDrawList" } ], - "ImFontAtlas_ClearTexData": [ + "ImDrawList__OnChangedVtxOffset": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontAtlas_ClearTexData", + "cimguiname": "ImDrawList__OnChangedVtxOffset", "defaults": {}, - "funcname": "ClearTexData", - "location": "imgui:2868", - "ov_cimguiname": "ImFontAtlas_ClearTexData", + "funcname": "_OnChangedVtxOffset", + "location": "imgui:2731", + "ov_cimguiname": "ImDrawList__OnChangedVtxOffset", "ret": "void", "signature": "()", - "stname": "ImFontAtlas" + "stname": "ImDrawList" } ], - "ImFontAtlas_GetCustomRectByIndex": [ + "ImDrawList__PathArcToFastEx": [ { - "args": "(ImFontAtlas* self,int index)", + "args": "(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" }, { - "name": "index", - "type": "int" - } - ], - "argsoriginal": "(int index)", - "call_args": "(index)", - "cimguiname": "ImFontAtlas_GetCustomRectByIndex", - "defaults": {}, - "funcname": "GetCustomRectByIndex", - "location": "imgui:2913", - "ov_cimguiname": "ImFontAtlas_GetCustomRectByIndex", - "ret": "ImFontAtlasCustomRect*", - "signature": "(int)", - "stname": "ImFontAtlas" - } - ], - "ImFontAtlas_GetGlyphRangesChineseFull": [ - { - "args": "(ImFontAtlas* self)", - "argsT": [ + "name": "center", + "type": "const ImVec2" + }, { - "name": "self", - "type": "ImFontAtlas*" + "name": "radius", + "type": "float" + }, + { + "name": "a_min_sample", + "type": "int" + }, + { + "name": "a_max_sample", + "type": "int" + }, + { + "name": "a_step", + "type": "int" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", + "argsoriginal": "(const ImVec2& center,float radius,int a_min_sample,int a_max_sample,int a_step)", + "call_args": "(center,radius,a_min_sample,a_max_sample,a_step)", + "cimguiname": "ImDrawList__PathArcToFastEx", "defaults": {}, - "funcname": "GetGlyphRangesChineseFull", - "location": "imgui:2894", - "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", - "ret": "const ImWchar*", - "signature": "()", - "stname": "ImFontAtlas" + "funcname": "_PathArcToFastEx", + "location": "imgui:2733", + "ov_cimguiname": "ImDrawList__PathArcToFastEx", + "ret": "void", + "signature": "(const ImVec2,float,int,int,int)", + "stname": "ImDrawList" } ], - "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon": [ + "ImDrawList__PathArcToN": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius", + "type": "float" + }, + { + "name": "a_min", + "type": "float" + }, + { + "name": "a_max", + "type": "float" + }, + { + "name": "num_segments", + "type": "int" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", + "argsoriginal": "(const ImVec2& center,float radius,float a_min,float a_max,int num_segments)", + "call_args": "(center,radius,a_min,a_max,num_segments)", + "cimguiname": "ImDrawList__PathArcToN", "defaults": {}, - "funcname": "GetGlyphRangesChineseSimplifiedCommon", - "location": "imgui:2895", - "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", - "ret": "const ImWchar*", - "signature": "()", - "stname": "ImFontAtlas" + "funcname": "_PathArcToN", + "location": "imgui:2734", + "ov_cimguiname": "ImDrawList__PathArcToN", + "ret": "void", + "signature": "(const ImVec2,float,float,float,int)", + "stname": "ImDrawList" } ], - "ImFontAtlas_GetGlyphRangesCyrillic": [ + "ImDrawList__PopUnusedDrawCmd": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", + "cimguiname": "ImDrawList__PopUnusedDrawCmd", "defaults": {}, - "funcname": "GetGlyphRangesCyrillic", - "location": "imgui:2896", - "ov_cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", - "ret": "const ImWchar*", + "funcname": "_PopUnusedDrawCmd", + "location": "imgui:2727", + "ov_cimguiname": "ImDrawList__PopUnusedDrawCmd", + "ret": "void", "signature": "()", - "stname": "ImFontAtlas" + "stname": "ImDrawList" } ], - "ImFontAtlas_GetGlyphRangesDefault": [ + "ImDrawList__ResetForNewFrame": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontAtlas_GetGlyphRangesDefault", + "cimguiname": "ImDrawList__ResetForNewFrame", "defaults": {}, - "funcname": "GetGlyphRangesDefault", - "location": "imgui:2890", - "ov_cimguiname": "ImFontAtlas_GetGlyphRangesDefault", - "ret": "const ImWchar*", + "funcname": "_ResetForNewFrame", + "location": "imgui:2725", + "ov_cimguiname": "ImDrawList__ResetForNewFrame", + "ret": "void", "signature": "()", - "stname": "ImFontAtlas" + "stname": "ImDrawList" } ], - "ImFontAtlas_GetGlyphRangesGreek": [ + "ImDrawList__TryMergeDrawCmds": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "cimguiname": "ImDrawList__TryMergeDrawCmds", "defaults": {}, - "funcname": "GetGlyphRangesGreek", - "location": "imgui:2891", - "ov_cimguiname": "ImFontAtlas_GetGlyphRangesGreek", - "ret": "const ImWchar*", + "funcname": "_TryMergeDrawCmds", + "location": "imgui:2728", + "ov_cimguiname": "ImDrawList__TryMergeDrawCmds", + "ret": "void", "signature": "()", - "stname": "ImFontAtlas" + "stname": "ImDrawList" } ], - "ImFontAtlas_GetGlyphRangesJapanese": [ + "ImDrawList_destroy": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImDrawList* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImDrawList*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", + "call_args": "(self)", + "cimguiname": "ImDrawList_destroy", "defaults": {}, - "funcname": "GetGlyphRangesJapanese", - "location": "imgui:2893", - "ov_cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", - "ret": "const ImWchar*", - "signature": "()", - "stname": "ImFontAtlas" + "destructor": true, + "location": "imgui:2636", + "ov_cimguiname": "ImDrawList_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImDrawList*)", + "stname": "ImDrawList" } ], - "ImFontAtlas_GetGlyphRangesKorean": [ + "ImFontAtlasCustomRect_ImFontAtlasCustomRect": [ { - "args": "(ImFontAtlas* self)", - "argsT": [ - { - "name": "self", - "type": "ImFontAtlas*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontAtlas_GetGlyphRangesKorean", + "cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", + "constructor": true, "defaults": {}, - "funcname": "GetGlyphRangesKorean", - "location": "imgui:2892", - "ov_cimguiname": "ImFontAtlas_GetGlyphRangesKorean", - "ret": "const ImWchar*", + "funcname": "ImFontAtlasCustomRect", + "location": "imgui:2827", + "ov_cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", "signature": "()", - "stname": "ImFontAtlas" + "stname": "ImFontAtlasCustomRect" } ], - "ImFontAtlas_GetGlyphRangesThai": [ + "ImFontAtlasCustomRect_IsPacked": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImFontAtlasCustomRect* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImFontAtlasCustomRect*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontAtlas_GetGlyphRangesThai", + "cimguiname": "ImFontAtlasCustomRect_IsPacked", "defaults": {}, - "funcname": "GetGlyphRangesThai", - "location": "imgui:2897", - "ov_cimguiname": "ImFontAtlas_GetGlyphRangesThai", - "ret": "const ImWchar*", - "signature": "()", - "stname": "ImFontAtlas" + "funcname": "IsPacked", + "location": "imgui:2828", + "ov_cimguiname": "ImFontAtlasCustomRect_IsPacked", + "ret": "bool", + "signature": "()const", + "stname": "ImFontAtlasCustomRect" } ], - "ImFontAtlas_GetGlyphRangesVietnamese": [ + "ImFontAtlasCustomRect_destroy": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImFontAtlasCustomRect* self)", "argsT": [ { "name": "self", - "type": "ImFontAtlas*" + "type": "ImFontAtlasCustomRect*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", + "call_args": "(self)", + "cimguiname": "ImFontAtlasCustomRect_destroy", "defaults": {}, - "funcname": "GetGlyphRangesVietnamese", - "location": "imgui:2898", - "ov_cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", - "ret": "const ImWchar*", - "signature": "()", - "stname": "ImFontAtlas" + "destructor": true, + "ov_cimguiname": "ImFontAtlasCustomRect_destroy", + "ret": "void", + "signature": "(ImFontAtlasCustomRect*)", + "stname": "ImFontAtlasCustomRect" } ], - "ImFontAtlas_GetMouseCursorTexData": [ + "ImFontAtlas_AddCustomRectFontGlyph": [ { - "args": "(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])", + "args": "(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset)", "argsT": [ { "name": "self", "type": "ImFontAtlas*" }, { - "name": "cursor", - "type": "ImGuiMouseCursor" + "name": "font", + "type": "ImFont*" }, { - "name": "out_offset", - "type": "ImVec2*" + "name": "id", + "type": "ImWchar" }, { - "name": "out_size", - "type": "ImVec2*" + "name": "width", + "type": "int" }, { - "name": "out_uv_border", - "type": "ImVec2[2]" - }, + "name": "height", + "type": "int" + }, { - "name": "out_uv_fill", - "type": "ImVec2[2]" + "name": "advance_x", + "type": "float" + }, + { + "name": "offset", + "type": "const ImVec2" } ], - "argsoriginal": "(ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])", - "call_args": "(cursor,out_offset,out_size,out_uv_border,out_uv_fill)", - "cimguiname": "ImFontAtlas_GetMouseCursorTexData", - "defaults": {}, - "funcname": "GetMouseCursorTexData", - "location": "imgui:2917", - "ov_cimguiname": "ImFontAtlas_GetMouseCursorTexData", - "ret": "bool", - "signature": "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])", + "argsoriginal": "(ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2& offset=ImVec2(0,0))", + "call_args": "(font,id,width,height,advance_x,offset)", + "cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", + "defaults": { + "offset": "ImVec2(0,0)" + }, + "funcname": "AddCustomRectFontGlyph", + "location": "imgui:2912", + "ov_cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", + "ret": "int", + "signature": "(ImFont*,ImWchar,int,int,float,const ImVec2)", "stname": "ImFontAtlas" } ], - "ImFontAtlas_GetTexDataAsAlpha8": [ + "ImFontAtlas_AddCustomRectRegular": [ { - "args": "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)", + "args": "(ImFontAtlas* self,int width,int height)", "argsT": [ { "name": "self", "type": "ImFontAtlas*" }, { - "name": "out_pixels", - "type": "unsigned char**" + "name": "width", + "type": "int" }, { - "name": "out_width", - "type": "int*" + "name": "height", + "type": "int" + } + ], + "argsoriginal": "(int width,int height)", + "call_args": "(width,height)", + "cimguiname": "ImFontAtlas_AddCustomRectRegular", + "defaults": {}, + "funcname": "AddCustomRectRegular", + "location": "imgui:2911", + "ov_cimguiname": "ImFontAtlas_AddCustomRectRegular", + "ret": "int", + "signature": "(int,int)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFont": [ + { + "args": "(ImFontAtlas* self,const ImFontConfig* font_cfg)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" }, { - "name": "out_height", - "type": "int*" + "name": "font_cfg", + "type": "const ImFontConfig*" + } + ], + "argsoriginal": "(const ImFontConfig* font_cfg)", + "call_args": "(font_cfg)", + "cimguiname": "ImFontAtlas_AddFont", + "defaults": {}, + "funcname": "AddFont", + "location": "imgui:2861", + "ov_cimguiname": "ImFontAtlas_AddFont", + "ret": "ImFont*", + "signature": "(const ImFontConfig*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_AddFontDefault": [ + { + "args": "(ImFontAtlas* self,const ImFontConfig* font_cfg)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" }, { - "name": "out_bytes_per_pixel", - "type": "int*" + "name": "font_cfg", + "type": "const ImFontConfig*" } ], - "argsoriginal": "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))", - "call_args": "(out_pixels,out_width,out_height,out_bytes_per_pixel)", - "cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", + "argsoriginal": "(const ImFontConfig* font_cfg=((void*)0))", + "call_args": "(font_cfg)", + "cimguiname": "ImFontAtlas_AddFontDefault", "defaults": { - "out_bytes_per_pixel": "NULL" + "font_cfg": "NULL" }, - "funcname": "GetTexDataAsAlpha8", - "location": "imgui:2878", - "ov_cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", - "ret": "void", - "signature": "(unsigned char**,int*,int*,int*)", + "funcname": "AddFontDefault", + "location": "imgui:2862", + "ov_cimguiname": "ImFontAtlas_AddFontDefault", + "ret": "ImFont*", + "signature": "(const ImFontConfig*)", "stname": "ImFontAtlas" } ], - "ImFontAtlas_GetTexDataAsRGBA32": [ + "ImFontAtlas_AddFontFromFileTTF": [ { - "args": "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)", + "args": "(ImFontAtlas* self,const char* filename,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", "argsT": [ { "name": "self", "type": "ImFontAtlas*" }, { - "name": "out_pixels", - "type": "unsigned char**" + "name": "filename", + "type": "const char*" }, { - "name": "out_width", - "type": "int*" + "name": "size_pixels", + "type": "float" }, { - "name": "out_height", - "type": "int*" + "name": "font_cfg", + "type": "const ImFontConfig*" }, { - "name": "out_bytes_per_pixel", - "type": "int*" + "name": "glyph_ranges", + "type": "const ImWchar*" } ], - "argsoriginal": "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))", - "call_args": "(out_pixels,out_width,out_height,out_bytes_per_pixel)", - "cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", + "argsoriginal": "(const char* filename,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(filename,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromFileTTF", "defaults": { - "out_bytes_per_pixel": "NULL" + "font_cfg": "NULL", + "glyph_ranges": "NULL" }, - "funcname": "GetTexDataAsRGBA32", - "location": "imgui:2879", - "ov_cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", - "ret": "void", - "signature": "(unsigned char**,int*,int*,int*)", - "stname": "ImFontAtlas" - } - ], - "ImFontAtlas_ImFontAtlas": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontAtlas_ImFontAtlas", - "constructor": true, - "defaults": {}, - "funcname": "ImFontAtlas", - "location": "imgui:2859", - "ov_cimguiname": "ImFontAtlas_ImFontAtlas", - "signature": "()", + "funcname": "AddFontFromFileTTF", + "location": "imgui:2863", + "ov_cimguiname": "ImFontAtlas_AddFontFromFileTTF", + "ret": "ImFont*", + "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", "stname": "ImFontAtlas" } ], - "ImFontAtlas_IsBuilt": [ + "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", "argsT": [ { "name": "self", "type": "ImFontAtlas*" + }, + { + "name": "compressed_font_data_base85", + "type": "const char*" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontAtlas_IsBuilt", - "defaults": {}, - "funcname": "IsBuilt", - "location": "imgui:2880", - "ov_cimguiname": "ImFontAtlas_IsBuilt", - "ret": "bool", - "signature": "()const", + "argsoriginal": "(const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromMemoryCompressedBase85TTF", + "location": "imgui:2866", + "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", + "ret": "ImFont*", + "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", "stname": "ImFontAtlas" } ], - "ImFontAtlas_SetTexID": [ + "ImFontAtlas_AddFontFromMemoryCompressedTTF": [ { - "args": "(ImFontAtlas* self,ImTextureID id)", + "args": "(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", "argsT": [ { "name": "self", "type": "ImFontAtlas*" }, { - "name": "id", - "type": "ImTextureID" + "name": "compressed_font_data", + "type": "const void*" + }, + { + "name": "compressed_font_size", + "type": "int" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" } ], - "argsoriginal": "(ImTextureID id)", - "call_args": "(id)", - "cimguiname": "ImFontAtlas_SetTexID", - "defaults": {}, - "funcname": "SetTexID", - "location": "imgui:2881", - "ov_cimguiname": "ImFontAtlas_SetTexID", - "ret": "void", - "signature": "(ImTextureID)", + "argsoriginal": "(const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromMemoryCompressedTTF", + "location": "imgui:2865", + "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", + "ret": "ImFont*", + "signature": "(const void*,int,float,const ImFontConfig*,const ImWchar*)", "stname": "ImFontAtlas" } ], - "ImFontAtlas_destroy": [ + "ImFontAtlas_AddFontFromMemoryTTF": [ { - "args": "(ImFontAtlas* self)", + "args": "(ImFontAtlas* self,void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", "argsT": [ { "name": "self", "type": "ImFontAtlas*" + }, + { + "name": "font_data", + "type": "void*" + }, + { + "name": "font_size", + "type": "int" + }, + { + "name": "size_pixels", + "type": "float" + }, + { + "name": "font_cfg", + "type": "const ImFontConfig*" + }, + { + "name": "glyph_ranges", + "type": "const ImWchar*" } ], - "call_args": "(self)", - "cimguiname": "ImFontAtlas_destroy", - "defaults": {}, - "destructor": true, - "location": "imgui:2860", - "ov_cimguiname": "ImFontAtlas_destroy", - "realdestructor": true, - "ret": "void", - "signature": "(ImFontAtlas*)", + "argsoriginal": "(void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(font_data,font_size,size_pixels,font_cfg,glyph_ranges)", + "cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", + "defaults": { + "font_cfg": "NULL", + "glyph_ranges": "NULL" + }, + "funcname": "AddFontFromMemoryTTF", + "location": "imgui:2864", + "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", + "ret": "ImFont*", + "signature": "(void*,int,float,const ImFontConfig*,const ImWchar*)", "stname": "ImFontAtlas" } ], - "ImFontConfig_ImFontConfig": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFontConfig_ImFontConfig", - "constructor": true, - "defaults": {}, - "funcname": "ImFontConfig", - "location": "imgui:2787", - "ov_cimguiname": "ImFontConfig_ImFontConfig", - "signature": "()", - "stname": "ImFontConfig" - } - ], - "ImFontConfig_destroy": [ + "ImFontAtlas_Build": [ { - "args": "(ImFontConfig* self)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFontConfig*" + "type": "ImFontAtlas*" } ], - "call_args": "(self)", - "cimguiname": "ImFontConfig_destroy", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_Build", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImFontConfig_destroy", - "ret": "void", - "signature": "(ImFontConfig*)", - "stname": "ImFontConfig" + "funcname": "Build", + "location": "imgui:2877", + "ov_cimguiname": "ImFontAtlas_Build", + "ret": "bool", + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFontGlyphRangesBuilder_AddChar": [ + "ImFontAtlas_CalcCustomRectUV": [ { - "args": "(ImFontGlyphRangesBuilder* self,ImWchar c)", + "args": "(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)", "argsT": [ { "name": "self", - "type": "ImFontGlyphRangesBuilder*" + "type": "ImFontAtlas*" }, { - "name": "c", - "type": "ImWchar" + "name": "rect", + "type": "const ImFontAtlasCustomRect*" + }, + { + "name": "out_uv_min", + "type": "ImVec2*" + }, + { + "name": "out_uv_max", + "type": "ImVec2*" } ], - "argsoriginal": "(ImWchar c)", - "call_args": "(c)", - "cimguiname": "ImFontGlyphRangesBuilder_AddChar", + "argsoriginal": "(const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max)", + "call_args": "(rect,out_uv_min,out_uv_max)", + "cimguiname": "ImFontAtlas_CalcCustomRectUV", "defaults": {}, - "funcname": "AddChar", - "location": "imgui:2812", - "ov_cimguiname": "ImFontGlyphRangesBuilder_AddChar", + "funcname": "CalcCustomRectUV", + "location": "imgui:2916", + "ov_cimguiname": "ImFontAtlas_CalcCustomRectUV", "ret": "void", - "signature": "(ImWchar)", - "stname": "ImFontGlyphRangesBuilder" + "signature": "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const", + "stname": "ImFontAtlas" } ], - "ImFontGlyphRangesBuilder_AddRanges": [ + "ImFontAtlas_Clear": [ { - "args": "(ImFontGlyphRangesBuilder* self,const ImWchar* ranges)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFontGlyphRangesBuilder*" - }, - { - "name": "ranges", - "type": "const ImWchar*" + "type": "ImFontAtlas*" } ], - "argsoriginal": "(const ImWchar* ranges)", - "call_args": "(ranges)", - "cimguiname": "ImFontGlyphRangesBuilder_AddRanges", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_Clear", "defaults": {}, - "funcname": "AddRanges", - "location": "imgui:2814", - "ov_cimguiname": "ImFontGlyphRangesBuilder_AddRanges", + "funcname": "Clear", + "location": "imgui:2870", + "ov_cimguiname": "ImFontAtlas_Clear", "ret": "void", - "signature": "(const ImWchar*)", - "stname": "ImFontGlyphRangesBuilder" + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFontGlyphRangesBuilder_AddText": [ + "ImFontAtlas_ClearFonts": [ { - "args": "(ImFontGlyphRangesBuilder* self,const char* text,const char* text_end)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFontGlyphRangesBuilder*" - }, - { - "name": "text", - "type": "const char*" - }, - { - "name": "text_end", - "type": "const char*" + "type": "ImFontAtlas*" } ], - "argsoriginal": "(const char* text,const char* text_end=((void*)0))", - "call_args": "(text,text_end)", - "cimguiname": "ImFontGlyphRangesBuilder_AddText", - "defaults": { - "text_end": "NULL" - }, - "funcname": "AddText", - "location": "imgui:2813", - "ov_cimguiname": "ImFontGlyphRangesBuilder_AddText", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ClearFonts", + "defaults": {}, + "funcname": "ClearFonts", + "location": "imgui:2869", + "ov_cimguiname": "ImFontAtlas_ClearFonts", "ret": "void", - "signature": "(const char*,const char*)", - "stname": "ImFontGlyphRangesBuilder" + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFontGlyphRangesBuilder_BuildRanges": [ + "ImFontAtlas_ClearInputData": [ { - "args": "(ImFontGlyphRangesBuilder* self,ImVector_ImWchar* out_ranges)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFontGlyphRangesBuilder*" - }, - { - "name": "out_ranges", - "type": "ImVector_ImWchar*" + "type": "ImFontAtlas*" } ], - "argsoriginal": "(ImVector* out_ranges)", - "call_args": "(out_ranges)", - "cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ClearInputData", "defaults": {}, - "funcname": "BuildRanges", - "location": "imgui:2815", - "ov_cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", + "funcname": "ClearInputData", + "location": "imgui:2867", + "ov_cimguiname": "ImFontAtlas_ClearInputData", "ret": "void", - "signature": "(ImVector_ImWchar*)", - "stname": "ImFontGlyphRangesBuilder" + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFontGlyphRangesBuilder_Clear": [ + "ImFontAtlas_ClearTexData": [ { - "args": "(ImFontGlyphRangesBuilder* self)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFontGlyphRangesBuilder*" + "type": "ImFontAtlas*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontGlyphRangesBuilder_Clear", + "cimguiname": "ImFontAtlas_ClearTexData", "defaults": {}, - "funcname": "Clear", - "location": "imgui:2809", - "ov_cimguiname": "ImFontGlyphRangesBuilder_Clear", + "funcname": "ClearTexData", + "location": "imgui:2868", + "ov_cimguiname": "ImFontAtlas_ClearTexData", "ret": "void", "signature": "()", - "stname": "ImFontGlyphRangesBuilder" + "stname": "ImFontAtlas" } ], - "ImFontGlyphRangesBuilder_GetBit": [ + "ImFontAtlas_GetCustomRectByIndex": [ { - "args": "(ImFontGlyphRangesBuilder* self,size_t n)", + "args": "(ImFontAtlas* self,int index)", "argsT": [ { "name": "self", - "type": "ImFontGlyphRangesBuilder*" + "type": "ImFontAtlas*" }, { - "name": "n", - "type": "size_t" + "name": "index", + "type": "int" } ], - "argsoriginal": "(size_t n)", - "call_args": "(n)", - "cimguiname": "ImFontGlyphRangesBuilder_GetBit", + "argsoriginal": "(int index)", + "call_args": "(index)", + "cimguiname": "ImFontAtlas_GetCustomRectByIndex", "defaults": {}, - "funcname": "GetBit", - "location": "imgui:2810", - "ov_cimguiname": "ImFontGlyphRangesBuilder_GetBit", - "ret": "bool", - "signature": "(size_t)const", - "stname": "ImFontGlyphRangesBuilder" + "funcname": "GetCustomRectByIndex", + "location": "imgui:2913", + "ov_cimguiname": "ImFontAtlas_GetCustomRectByIndex", + "ret": "ImFontAtlasCustomRect*", + "signature": "(int)", + "stname": "ImFontAtlas" } ], - "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder": [ + "ImFontAtlas_GetGlyphRangesChineseFull": [ { - "args": "()", - "argsT": [], + "args": "(ImFontAtlas* self)", + "argsT": [ + { + "name": "self", + "type": "ImFontAtlas*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", - "constructor": true, + "cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", "defaults": {}, - "funcname": "ImFontGlyphRangesBuilder", - "location": "imgui:2808", - "ov_cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", + "funcname": "GetGlyphRangesChineseFull", + "location": "imgui:2894", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", + "ret": "const ImWchar*", "signature": "()", - "stname": "ImFontGlyphRangesBuilder" + "stname": "ImFontAtlas" } ], - "ImFontGlyphRangesBuilder_SetBit": [ + "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon": [ { - "args": "(ImFontGlyphRangesBuilder* self,size_t n)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFontGlyphRangesBuilder*" - }, - { - "name": "n", - "type": "size_t" + "type": "ImFontAtlas*" } ], - "argsoriginal": "(size_t n)", - "call_args": "(n)", - "cimguiname": "ImFontGlyphRangesBuilder_SetBit", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", "defaults": {}, - "funcname": "SetBit", - "location": "imgui:2811", - "ov_cimguiname": "ImFontGlyphRangesBuilder_SetBit", - "ret": "void", - "signature": "(size_t)", - "stname": "ImFontGlyphRangesBuilder" + "funcname": "GetGlyphRangesChineseSimplifiedCommon", + "location": "imgui:2895", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFontGlyphRangesBuilder_destroy": [ + "ImFontAtlas_GetGlyphRangesCyrillic": [ { - "args": "(ImFontGlyphRangesBuilder* self)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFontGlyphRangesBuilder*" + "type": "ImFontAtlas*" } ], - "call_args": "(self)", - "cimguiname": "ImFontGlyphRangesBuilder_destroy", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImFontGlyphRangesBuilder_destroy", - "ret": "void", - "signature": "(ImFontGlyphRangesBuilder*)", - "stname": "ImFontGlyphRangesBuilder" + "funcname": "GetGlyphRangesCyrillic", + "location": "imgui:2896", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFont_AddGlyph": [ + "ImFontAtlas_GetGlyphRangesDefault": [ { - "args": "(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFont*" - }, - { - "name": "src_cfg", - "type": "const ImFontConfig*" - }, - { - "name": "c", - "type": "ImWchar" - }, - { - "name": "x0", - "type": "float" - }, - { - "name": "y0", - "type": "float" - }, - { - "name": "x1", - "type": "float" - }, - { - "name": "y1", - "type": "float" - }, - { - "name": "u0", - "type": "float" - }, - { - "name": "v0", - "type": "float" - }, - { - "name": "u1", - "type": "float" - }, - { - "name": "v1", - "type": "float" - }, - { - "name": "advance_x", - "type": "float" + "type": "ImFontAtlas*" } ], - "argsoriginal": "(const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)", - "call_args": "(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,advance_x)", - "cimguiname": "ImFont_AddGlyph", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesDefault", "defaults": {}, - "funcname": "AddGlyph", - "location": "imgui:3004", - "ov_cimguiname": "ImFont_AddGlyph", - "ret": "void", - "signature": "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)", - "stname": "ImFont" + "funcname": "GetGlyphRangesDefault", + "location": "imgui:2890", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesDefault", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFont_AddRemapChar": [ + "ImFontAtlas_GetGlyphRangesGreek": [ { - "args": "(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFont*" - }, - { - "name": "dst", - "type": "ImWchar" - }, - { - "name": "src", - "type": "ImWchar" - }, - { - "name": "overwrite_dst", - "type": "bool" + "type": "ImFontAtlas*" } ], - "argsoriginal": "(ImWchar dst,ImWchar src,bool overwrite_dst=true)", - "call_args": "(dst,src,overwrite_dst)", - "cimguiname": "ImFont_AddRemapChar", - "defaults": { - "overwrite_dst": "true" - }, - "funcname": "AddRemapChar", - "location": "imgui:3005", - "ov_cimguiname": "ImFont_AddRemapChar", - "ret": "void", - "signature": "(ImWchar,ImWchar,bool)", - "stname": "ImFont" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "defaults": {}, + "funcname": "GetGlyphRangesGreek", + "location": "imgui:2891", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesGreek", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFont_BuildLookupTable": [ + "ImFontAtlas_GetGlyphRangesJapanese": [ { - "args": "(ImFont* self)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFont*" + "type": "ImFontAtlas*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFont_BuildLookupTable", + "cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", "defaults": {}, - "funcname": "BuildLookupTable", - "location": "imgui:3001", - "ov_cimguiname": "ImFont_BuildLookupTable", - "ret": "void", + "funcname": "GetGlyphRangesJapanese", + "location": "imgui:2893", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", + "ret": "const ImWchar*", "signature": "()", - "stname": "ImFont" + "stname": "ImFontAtlas" } ], - "ImFont_CalcTextSizeA": [ + "ImFontAtlas_GetGlyphRangesKorean": [ { - "args": "(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)", + "args": "(ImFontAtlas* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", - "type": "ImFont*" - }, - { - "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*" - }, - { - "name": "remaining", - "type": "const char**" + "type": "ImFontAtlas*" } ], - "argsoriginal": "(float size,float max_width,float wrap_width,const char* text_begin,const char* text_end=((void*)0),const char** remaining=((void*)0))", - "call_args": "(size,max_width,wrap_width,text_begin,text_end,remaining)", - "cimguiname": "ImFont_CalcTextSizeA", - "defaults": { - "remaining": "NULL", - "text_end": "NULL" - }, - "funcname": "CalcTextSizeA", - "location": "imgui:2995", - "nonUDT": 1, - "ov_cimguiname": "ImFont_CalcTextSizeA", - "ret": "void", - "signature": "(float,float,float,const char*,const char*,const char**)const", - "stname": "ImFont" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesKorean", + "defaults": {}, + "funcname": "GetGlyphRangesKorean", + "location": "imgui:2892", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesKorean", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFont_CalcWordWrapPositionA": [ + "ImFontAtlas_GetGlyphRangesThai": [ { - "args": "(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFont*" - }, - { - "name": "scale", - "type": "float" - }, - { - "name": "text", - "type": "const char*" - }, - { - "name": "text_end", - "type": "const char*" - }, - { - "name": "wrap_width", - "type": "float" + "type": "ImFontAtlas*" } ], - "argsoriginal": "(float scale,const char* text,const char* text_end,float wrap_width)", - "call_args": "(scale,text,text_end,wrap_width)", - "cimguiname": "ImFont_CalcWordWrapPositionA", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_GetGlyphRangesThai", "defaults": {}, - "funcname": "CalcWordWrapPositionA", - "location": "imgui:2996", - "ov_cimguiname": "ImFont_CalcWordWrapPositionA", - "ret": "const char*", - "signature": "(float,const char*,const char*,float)const", - "stname": "ImFont" + "funcname": "GetGlyphRangesThai", + "location": "imgui:2897", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesThai", + "ret": "const ImWchar*", + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFont_ClearOutputData": [ + "ImFontAtlas_GetGlyphRangesVietnamese": [ { - "args": "(ImFont* self)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFont*" + "type": "ImFontAtlas*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFont_ClearOutputData", + "cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", "defaults": {}, - "funcname": "ClearOutputData", - "location": "imgui:3002", - "ov_cimguiname": "ImFont_ClearOutputData", - "ret": "void", + "funcname": "GetGlyphRangesVietnamese", + "location": "imgui:2898", + "ov_cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", + "ret": "const ImWchar*", "signature": "()", - "stname": "ImFont" + "stname": "ImFontAtlas" } ], - "ImFont_FindGlyph": [ + "ImFontAtlas_GetMouseCursorTexData": [ { - "args": "(ImFont* self,ImWchar c)", + "args": "(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])", "argsT": [ { "name": "self", - "type": "ImFont*" + "type": "ImFontAtlas*" }, { - "name": "c", - "type": "ImWchar" + "name": "cursor", + "type": "ImGuiMouseCursor" + }, + { + "name": "out_offset", + "type": "ImVec2*" + }, + { + "name": "out_size", + "type": "ImVec2*" + }, + { + "name": "out_uv_border", + "type": "ImVec2[2]" + }, + { + "name": "out_uv_fill", + "type": "ImVec2[2]" } ], - "argsoriginal": "(ImWchar c)", - "call_args": "(c)", - "cimguiname": "ImFont_FindGlyph", + "argsoriginal": "(ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])", + "call_args": "(cursor,out_offset,out_size,out_uv_border,out_uv_fill)", + "cimguiname": "ImFontAtlas_GetMouseCursorTexData", "defaults": {}, - "funcname": "FindGlyph", - "location": "imgui:2987", - "ov_cimguiname": "ImFont_FindGlyph", - "ret": "const ImFontGlyph*", - "signature": "(ImWchar)const", - "stname": "ImFont" + "funcname": "GetMouseCursorTexData", + "location": "imgui:2917", + "ov_cimguiname": "ImFontAtlas_GetMouseCursorTexData", + "ret": "bool", + "signature": "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])", + "stname": "ImFontAtlas" } ], - "ImFont_FindGlyphNoFallback": [ + "ImFontAtlas_GetTexDataAsAlpha8": [ { - "args": "(ImFont* self,ImWchar c)", + "args": "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)", "argsT": [ { "name": "self", - "type": "ImFont*" + "type": "ImFontAtlas*" }, { - "name": "c", - "type": "ImWchar" + "name": "out_pixels", + "type": "unsigned char**" + }, + { + "name": "out_width", + "type": "int*" + }, + { + "name": "out_height", + "type": "int*" + }, + { + "name": "out_bytes_per_pixel", + "type": "int*" } ], - "argsoriginal": "(ImWchar c)", - "call_args": "(c)", - "cimguiname": "ImFont_FindGlyphNoFallback", - "defaults": {}, - "funcname": "FindGlyphNoFallback", - "location": "imgui:2988", - "ov_cimguiname": "ImFont_FindGlyphNoFallback", - "ret": "const ImFontGlyph*", - "signature": "(ImWchar)const", - "stname": "ImFont" + "argsoriginal": "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))", + "call_args": "(out_pixels,out_width,out_height,out_bytes_per_pixel)", + "cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", + "defaults": { + "out_bytes_per_pixel": "NULL" + }, + "funcname": "GetTexDataAsAlpha8", + "location": "imgui:2878", + "ov_cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", + "ret": "void", + "signature": "(unsigned char**,int*,int*,int*)", + "stname": "ImFontAtlas" } ], - "ImFont_GetCharAdvance": [ + "ImFontAtlas_GetTexDataAsRGBA32": [ { - "args": "(ImFont* self,ImWchar c)", + "args": "(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel)", "argsT": [ { "name": "self", - "type": "ImFont*" + "type": "ImFontAtlas*" }, { - "name": "c", - "type": "ImWchar" + "name": "out_pixels", + "type": "unsigned char**" + }, + { + "name": "out_width", + "type": "int*" + }, + { + "name": "out_height", + "type": "int*" + }, + { + "name": "out_bytes_per_pixel", + "type": "int*" } ], - "argsoriginal": "(ImWchar c)", - "call_args": "(c)", - "cimguiname": "ImFont_GetCharAdvance", + "argsoriginal": "(unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel=((void*)0))", + "call_args": "(out_pixels,out_width,out_height,out_bytes_per_pixel)", + "cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", + "defaults": { + "out_bytes_per_pixel": "NULL" + }, + "funcname": "GetTexDataAsRGBA32", + "location": "imgui:2879", + "ov_cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", + "ret": "void", + "signature": "(unsigned char**,int*,int*,int*)", + "stname": "ImFontAtlas" + } + ], + "ImFontAtlas_ImFontAtlas": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontAtlas_ImFontAtlas", + "constructor": true, "defaults": {}, - "funcname": "GetCharAdvance", - "location": "imgui:2989", - "ov_cimguiname": "ImFont_GetCharAdvance", - "ret": "float", - "signature": "(ImWchar)const", - "stname": "ImFont" + "funcname": "ImFontAtlas", + "location": "imgui:2859", + "ov_cimguiname": "ImFontAtlas_ImFontAtlas", + "signature": "()", + "stname": "ImFontAtlas" } ], - "ImFont_GetDebugName": [ + "ImFontAtlas_IsBuilt": [ { - "args": "(ImFont* self)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFont*" + "type": "ImFontAtlas*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImFont_GetDebugName", + "cimguiname": "ImFontAtlas_IsBuilt", "defaults": {}, - "funcname": "GetDebugName", - "location": "imgui:2991", - "ov_cimguiname": "ImFont_GetDebugName", - "ret": "const char*", + "funcname": "IsBuilt", + "location": "imgui:2880", + "ov_cimguiname": "ImFontAtlas_IsBuilt", + "ret": "bool", "signature": "()const", - "stname": "ImFont" + "stname": "ImFontAtlas" } ], - "ImFont_GrowIndex": [ + "ImFontAtlas_SetTexID": [ { - "args": "(ImFont* self,int new_size)", + "args": "(ImFontAtlas* self,ImTextureID id)", "argsT": [ { "name": "self", - "type": "ImFont*" + "type": "ImFontAtlas*" }, { - "name": "new_size", - "type": "int" + "name": "id", + "type": "ImTextureID" } ], - "argsoriginal": "(int new_size)", - "call_args": "(new_size)", - "cimguiname": "ImFont_GrowIndex", + "argsoriginal": "(ImTextureID id)", + "call_args": "(id)", + "cimguiname": "ImFontAtlas_SetTexID", "defaults": {}, - "funcname": "GrowIndex", - "location": "imgui:3003", - "ov_cimguiname": "ImFont_GrowIndex", + "funcname": "SetTexID", + "location": "imgui:2881", + "ov_cimguiname": "ImFontAtlas_SetTexID", "ret": "void", - "signature": "(int)", - "stname": "ImFont" - } - ], - "ImFont_ImFont": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFont_ImFont", - "constructor": true, - "defaults": {}, - "funcname": "ImFont", - "location": "imgui:2985", - "ov_cimguiname": "ImFont_ImFont", - "signature": "()", - "stname": "ImFont" + "signature": "(ImTextureID)", + "stname": "ImFontAtlas" } ], - "ImFont_IsGlyphRangeUnused": [ + "ImFontAtlas_destroy": [ { - "args": "(ImFont* self,unsigned int c_begin,unsigned int c_last)", + "args": "(ImFontAtlas* self)", "argsT": [ { "name": "self", - "type": "ImFont*" - }, - { - "name": "c_begin", - "type": "unsigned int" - }, - { - "name": "c_last", - "type": "unsigned int" + "type": "ImFontAtlas*" } ], - "argsoriginal": "(unsigned int c_begin,unsigned int c_last)", - "call_args": "(c_begin,c_last)", - "cimguiname": "ImFont_IsGlyphRangeUnused", + "call_args": "(self)", + "cimguiname": "ImFontAtlas_destroy", "defaults": {}, - "funcname": "IsGlyphRangeUnused", - "location": "imgui:3007", - "ov_cimguiname": "ImFont_IsGlyphRangeUnused", - "ret": "bool", - "signature": "(unsigned int,unsigned int)", - "stname": "ImFont" + "destructor": true, + "location": "imgui:2860", + "ov_cimguiname": "ImFontAtlas_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImFontAtlas*)", + "stname": "ImFontAtlas" } ], - "ImFont_IsLoaded": [ + "ImFontConfig_ImFontConfig": [ { - "args": "(ImFont* self)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontConfig_ImFontConfig", + "constructor": true, + "defaults": {}, + "funcname": "ImFontConfig", + "location": "imgui:2787", + "ov_cimguiname": "ImFontConfig_ImFontConfig", + "signature": "()", + "stname": "ImFontConfig" + } + ], + "ImFontConfig_destroy": [ + { + "args": "(ImFontConfig* self)", "argsT": [ { "name": "self", - "type": "ImFont*" + "type": "ImFontConfig*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImFont_IsLoaded", + "call_args": "(self)", + "cimguiname": "ImFontConfig_destroy", "defaults": {}, - "funcname": "IsLoaded", - "location": "imgui:2990", - "ov_cimguiname": "ImFont_IsLoaded", - "ret": "bool", - "signature": "()const", - "stname": "ImFont" + "destructor": true, + "ov_cimguiname": "ImFontConfig_destroy", + "ret": "void", + "signature": "(ImFontConfig*)", + "stname": "ImFontConfig" } ], - "ImFont_RenderChar": [ + "ImFontGlyphRangesBuilder_AddChar": [ { - "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)", + "args": "(ImFontGlyphRangesBuilder* self,ImWchar c)", "argsT": [ { "name": "self", - "type": "ImFont*" - }, - { - "name": "draw_list", - "type": "ImDrawList*" - }, - { - "name": "size", - "type": "float" - }, - { - "name": "pos", - "type": "const ImVec2" - }, - { - "name": "col", - "type": "ImU32" + "type": "ImFontGlyphRangesBuilder*" }, { "name": "c", "type": "ImWchar" } ], - "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)", - "call_args": "(draw_list,size,pos,col,c)", - "cimguiname": "ImFont_RenderChar", + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFontGlyphRangesBuilder_AddChar", "defaults": {}, - "funcname": "RenderChar", - "location": "imgui:2997", - "ov_cimguiname": "ImFont_RenderChar", + "funcname": "AddChar", + "location": "imgui:2812", + "ov_cimguiname": "ImFontGlyphRangesBuilder_AddChar", "ret": "void", - "signature": "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const", - "stname": "ImFont" + "signature": "(ImWchar)", + "stname": "ImFontGlyphRangesBuilder" } ], - "ImFont_RenderText": [ + "ImFontGlyphRangesBuilder_AddRanges": [ { - "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)", + "args": "(ImFontGlyphRangesBuilder* self,const ImWchar* ranges)", "argsT": [ { "name": "self", - "type": "ImFont*" - }, - { - "name": "draw_list", - "type": "ImDrawList*" - }, - { - "name": "size", - "type": "float" - }, - { - "name": "pos", - "type": "const ImVec2" + "type": "ImFontGlyphRangesBuilder*" }, { - "name": "col", - "type": "ImU32" - }, + "name": "ranges", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const ImWchar* ranges)", + "call_args": "(ranges)", + "cimguiname": "ImFontGlyphRangesBuilder_AddRanges", + "defaults": {}, + "funcname": "AddRanges", + "location": "imgui:2814", + "ov_cimguiname": "ImFontGlyphRangesBuilder_AddRanges", + "ret": "void", + "signature": "(const ImWchar*)", + "stname": "ImFontGlyphRangesBuilder" + } + ], + "ImFontGlyphRangesBuilder_AddText": [ + { + "args": "(ImFontGlyphRangesBuilder* self,const char* text,const char* text_end)", + "argsT": [ { - "name": "clip_rect", - "type": "const ImVec4" + "name": "self", + "type": "ImFontGlyphRangesBuilder*" }, { - "name": "text_begin", + "name": "text", "type": "const char*" }, { "name": "text_end", "type": "const char*" - }, - { - "name": "wrap_width", - "type": "float" - }, - { - "name": "cpu_fine_clip", - "type": "bool" } ], - "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)", - "call_args": "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)", - "cimguiname": "ImFont_RenderText", + "argsoriginal": "(const char* text,const char* text_end=((void*)0))", + "call_args": "(text,text_end)", + "cimguiname": "ImFontGlyphRangesBuilder_AddText", "defaults": { - "cpu_fine_clip": "false", - "wrap_width": "0.0f" + "text_end": "NULL" }, - "funcname": "RenderText", - "location": "imgui:2998", - "ov_cimguiname": "ImFont_RenderText", + "funcname": "AddText", + "location": "imgui:2813", + "ov_cimguiname": "ImFontGlyphRangesBuilder_AddText", "ret": "void", - "signature": "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const", - "stname": "ImFont" + "signature": "(const char*,const char*)", + "stname": "ImFontGlyphRangesBuilder" } ], - "ImFont_SetGlyphVisible": [ + "ImFontGlyphRangesBuilder_BuildRanges": [ { - "args": "(ImFont* self,ImWchar c,bool visible)", + "args": "(ImFontGlyphRangesBuilder* self,ImVector_ImWchar* out_ranges)", "argsT": [ { "name": "self", - "type": "ImFont*" - }, - { - "name": "c", - "type": "ImWchar" + "type": "ImFontGlyphRangesBuilder*" }, { - "name": "visible", - "type": "bool" + "name": "out_ranges", + "type": "ImVector_ImWchar*" } ], - "argsoriginal": "(ImWchar c,bool visible)", - "call_args": "(c,visible)", - "cimguiname": "ImFont_SetGlyphVisible", + "argsoriginal": "(ImVector* out_ranges)", + "call_args": "(out_ranges)", + "cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", "defaults": {}, - "funcname": "SetGlyphVisible", - "location": "imgui:3006", - "ov_cimguiname": "ImFont_SetGlyphVisible", + "funcname": "BuildRanges", + "location": "imgui:2815", + "ov_cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", "ret": "void", - "signature": "(ImWchar,bool)", - "stname": "ImFont" + "signature": "(ImVector_ImWchar*)", + "stname": "ImFontGlyphRangesBuilder" } ], - "ImFont_destroy": [ + "ImFontGlyphRangesBuilder_Clear": [ { - "args": "(ImFont* self)", + "args": "(ImFontGlyphRangesBuilder* self)", "argsT": [ { "name": "self", - "type": "ImFont*" + "type": "ImFontGlyphRangesBuilder*" } ], - "call_args": "(self)", - "cimguiname": "ImFont_destroy", - "defaults": {}, - "destructor": true, - "location": "imgui:2986", - "ov_cimguiname": "ImFont_destroy", - "realdestructor": true, - "ret": "void", - "signature": "(ImFont*)", - "stname": "ImFont" - } - ], - "ImGuiFreeType_GetBuilderForFreeType": [ - { - "args": "()", - "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiFreeType_GetBuilderForFreeType", + "cimguiname": "ImFontGlyphRangesBuilder_Clear", "defaults": {}, - "funcname": "GetBuilderForFreeType", - "location": "imgui_freetype:39", - "namespace": "ImGuiFreeType", - "ov_cimguiname": "ImGuiFreeType_GetBuilderForFreeType", - "ret": "const ImFontBuilderIO*", + "funcname": "Clear", + "location": "imgui:2809", + "ov_cimguiname": "ImFontGlyphRangesBuilder_Clear", + "ret": "void", "signature": "()", - "stname": "" + "stname": "ImFontGlyphRangesBuilder" } ], - "ImGuiFreeType_SetAllocatorFunctions": [ + "ImFontGlyphRangesBuilder_GetBit": [ { - "args": "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data)", + "args": "(ImFontGlyphRangesBuilder* self,size_t n)", "argsT": [ { - "name": "alloc_func", - "ret": "void*", - "signature": "(size_t sz,void* user_data)", - "type": "void*(*)(size_t sz,void* user_data)" + "name": "self", + "type": "ImFontGlyphRangesBuilder*" }, { - "name": "free_func", - "ret": "void", - "signature": "(void* ptr,void* user_data)", - "type": "void(*)(void* ptr,void* user_data)" - }, - { - "name": "user_data", - "type": "void*" + "name": "n", + "type": "size_t" } ], - "argsoriginal": "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data=((void*)0))", - "call_args": "(alloc_func,free_func,user_data)", - "cimguiname": "ImGuiFreeType_SetAllocatorFunctions", - "defaults": { - "user_data": "NULL" - }, - "funcname": "SetAllocatorFunctions", - "location": "imgui_freetype:43", - "namespace": "ImGuiFreeType", - "ov_cimguiname": "ImGuiFreeType_SetAllocatorFunctions", - "ret": "void", - "signature": "(void*(*)(size_t,void*),void(*)(void*,void*),void*)", - "stname": "" + "argsoriginal": "(size_t n)", + "call_args": "(n)", + "cimguiname": "ImFontGlyphRangesBuilder_GetBit", + "defaults": {}, + "funcname": "GetBit", + "location": "imgui:2810", + "ov_cimguiname": "ImFontGlyphRangesBuilder_GetBit", + "ret": "bool", + "signature": "(size_t)const", + "stname": "ImFontGlyphRangesBuilder" } ], - "ImGuiIO_AddFocusEvent": [ + "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder": [ { - "args": "(ImGuiIO* self,bool focused)", - "argsT": [ - { - "name": "self", - "type": "ImGuiIO*" - }, - { - "name": "focused", - "type": "bool" - } - ], - "argsoriginal": "(bool focused)", - "call_args": "(focused)", - "cimguiname": "ImGuiIO_AddFocusEvent", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", + "constructor": true, "defaults": {}, - "funcname": "AddFocusEvent", - "location": "imgui:2063", - "ov_cimguiname": "ImGuiIO_AddFocusEvent", - "ret": "void", - "signature": "(bool)", - "stname": "ImGuiIO" + "funcname": "ImFontGlyphRangesBuilder", + "location": "imgui:2808", + "ov_cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", + "signature": "()", + "stname": "ImFontGlyphRangesBuilder" } ], - "ImGuiIO_AddInputCharacter": [ + "ImFontGlyphRangesBuilder_SetBit": [ { - "args": "(ImGuiIO* self,unsigned int c)", + "args": "(ImFontGlyphRangesBuilder* self,size_t n)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" + "type": "ImFontGlyphRangesBuilder*" }, { - "name": "c", - "type": "unsigned int" + "name": "n", + "type": "size_t" } ], - "argsoriginal": "(unsigned int c)", - "call_args": "(c)", - "cimguiname": "ImGuiIO_AddInputCharacter", + "argsoriginal": "(size_t n)", + "call_args": "(n)", + "cimguiname": "ImFontGlyphRangesBuilder_SetBit", "defaults": {}, - "funcname": "AddInputCharacter", - "location": "imgui:2064", - "ov_cimguiname": "ImGuiIO_AddInputCharacter", + "funcname": "SetBit", + "location": "imgui:2811", + "ov_cimguiname": "ImFontGlyphRangesBuilder_SetBit", "ret": "void", - "signature": "(unsigned int)", - "stname": "ImGuiIO" + "signature": "(size_t)", + "stname": "ImFontGlyphRangesBuilder" } ], - "ImGuiIO_AddInputCharacterUTF16": [ + "ImFontGlyphRangesBuilder_destroy": [ { - "args": "(ImGuiIO* self,ImWchar16 c)", + "args": "(ImFontGlyphRangesBuilder* self)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" - }, - { - "name": "c", - "type": "ImWchar16" + "type": "ImFontGlyphRangesBuilder*" } ], - "argsoriginal": "(ImWchar16 c)", - "call_args": "(c)", - "cimguiname": "ImGuiIO_AddInputCharacterUTF16", + "call_args": "(self)", + "cimguiname": "ImFontGlyphRangesBuilder_destroy", "defaults": {}, - "funcname": "AddInputCharacterUTF16", - "location": "imgui:2065", - "ov_cimguiname": "ImGuiIO_AddInputCharacterUTF16", + "destructor": true, + "ov_cimguiname": "ImFontGlyphRangesBuilder_destroy", "ret": "void", - "signature": "(ImWchar16)", - "stname": "ImGuiIO" + "signature": "(ImFontGlyphRangesBuilder*)", + "stname": "ImFontGlyphRangesBuilder" } ], - "ImGuiIO_AddInputCharactersUTF8": [ + "ImFont_AddGlyph": [ { - "args": "(ImGuiIO* self,const char* str)", + "args": "(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" + "type": "ImFont*" }, { - "name": "str", - "type": "const char*" - } - ], - "argsoriginal": "(const char* str)", - "call_args": "(str)", - "cimguiname": "ImGuiIO_AddInputCharactersUTF8", - "defaults": {}, - "funcname": "AddInputCharactersUTF8", - "location": "imgui:2066", - "ov_cimguiname": "ImGuiIO_AddInputCharactersUTF8", - "ret": "void", - "signature": "(const char*)", - "stname": "ImGuiIO" - } - ], - "ImGuiIO_AddKeyAnalogEvent": [ - { - "args": "(ImGuiIO* self,ImGuiKey key,bool down,float v)", - "argsT": [ + "name": "src_cfg", + "type": "const ImFontConfig*" + }, { - "name": "self", - "type": "ImGuiIO*" + "name": "c", + "type": "ImWchar" }, { - "name": "key", - "type": "ImGuiKey" + "name": "x0", + "type": "float" }, { - "name": "down", - "type": "bool" + "name": "y0", + "type": "float" }, { - "name": "v", + "name": "x1", "type": "float" - } - ], - "argsoriginal": "(ImGuiKey key,bool down,float v)", - "call_args": "(key,down,v)", - "cimguiname": "ImGuiIO_AddKeyAnalogEvent", - "defaults": {}, - "funcname": "AddKeyAnalogEvent", - "location": "imgui:2058", - "ov_cimguiname": "ImGuiIO_AddKeyAnalogEvent", - "ret": "void", - "signature": "(ImGuiKey,bool,float)", - "stname": "ImGuiIO" - } - ], - "ImGuiIO_AddKeyEvent": [ - { - "args": "(ImGuiIO* self,ImGuiKey key,bool down)", - "argsT": [ + }, { - "name": "self", - "type": "ImGuiIO*" + "name": "y1", + "type": "float" }, { - "name": "key", - "type": "ImGuiKey" + "name": "u0", + "type": "float" }, { - "name": "down", - "type": "bool" + "name": "v0", + "type": "float" + }, + { + "name": "u1", + "type": "float" + }, + { + "name": "v1", + "type": "float" + }, + { + "name": "advance_x", + "type": "float" } ], - "argsoriginal": "(ImGuiKey key,bool down)", - "call_args": "(key,down)", - "cimguiname": "ImGuiIO_AddKeyEvent", + "argsoriginal": "(const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x)", + "call_args": "(src_cfg,c,x0,y0,x1,y1,u0,v0,u1,v1,advance_x)", + "cimguiname": "ImFont_AddGlyph", "defaults": {}, - "funcname": "AddKeyEvent", - "location": "imgui:2057", - "ov_cimguiname": "ImGuiIO_AddKeyEvent", + "funcname": "AddGlyph", + "location": "imgui:3004", + "ov_cimguiname": "ImFont_AddGlyph", "ret": "void", - "signature": "(ImGuiKey,bool)", - "stname": "ImGuiIO" + "signature": "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)", + "stname": "ImFont" } ], - "ImGuiIO_AddMouseButtonEvent": [ + "ImFont_AddRemapChar": [ { - "args": "(ImGuiIO* self,int button,bool down)", + "args": "(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" + "type": "ImFont*" }, { - "name": "button", - "type": "int" + "name": "dst", + "type": "ImWchar" }, { - "name": "down", + "name": "src", + "type": "ImWchar" + }, + { + "name": "overwrite_dst", "type": "bool" } ], - "argsoriginal": "(int button,bool down)", - "call_args": "(button,down)", - "cimguiname": "ImGuiIO_AddMouseButtonEvent", - "defaults": {}, - "funcname": "AddMouseButtonEvent", - "location": "imgui:2060", - "ov_cimguiname": "ImGuiIO_AddMouseButtonEvent", + "argsoriginal": "(ImWchar dst,ImWchar src,bool overwrite_dst=true)", + "call_args": "(dst,src,overwrite_dst)", + "cimguiname": "ImFont_AddRemapChar", + "defaults": { + "overwrite_dst": "true" + }, + "funcname": "AddRemapChar", + "location": "imgui:3005", + "ov_cimguiname": "ImFont_AddRemapChar", "ret": "void", - "signature": "(int,bool)", - "stname": "ImGuiIO" + "signature": "(ImWchar,ImWchar,bool)", + "stname": "ImFont" } ], - "ImGuiIO_AddMousePosEvent": [ + "ImFont_BuildLookupTable": [ { - "args": "(ImGuiIO* self,float x,float y)", + "args": "(ImFont* self)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" - }, - { - "name": "x", - "type": "float" - }, - { - "name": "y", - "type": "float" + "type": "ImFont*" } ], - "argsoriginal": "(float x,float y)", - "call_args": "(x,y)", - "cimguiname": "ImGuiIO_AddMousePosEvent", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_BuildLookupTable", "defaults": {}, - "funcname": "AddMousePosEvent", - "location": "imgui:2059", - "ov_cimguiname": "ImGuiIO_AddMousePosEvent", + "funcname": "BuildLookupTable", + "location": "imgui:3001", + "ov_cimguiname": "ImFont_BuildLookupTable", "ret": "void", - "signature": "(float,float)", - "stname": "ImGuiIO" + "signature": "()", + "stname": "ImFont" } ], - "ImGuiIO_AddMouseViewportEvent": [ + "ImFont_CalcTextSizeA": [ { - "args": "(ImGuiIO* self,ImGuiID id)", + "args": "(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)", "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, { "name": "self", - "type": "ImGuiIO*" + "type": "ImFont*" }, { - "name": "id", - "type": "ImGuiID" + "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*" + }, + { + "name": "remaining", + "type": "const char**" } ], - "argsoriginal": "(ImGuiID id)", - "call_args": "(id)", - "cimguiname": "ImGuiIO_AddMouseViewportEvent", - "defaults": {}, - "funcname": "AddMouseViewportEvent", - "location": "imgui:2062", - "ov_cimguiname": "ImGuiIO_AddMouseViewportEvent", + "argsoriginal": "(float size,float max_width,float wrap_width,const char* text_begin,const char* text_end=((void*)0),const char** remaining=((void*)0))", + "call_args": "(size,max_width,wrap_width,text_begin,text_end,remaining)", + "cimguiname": "ImFont_CalcTextSizeA", + "defaults": { + "remaining": "NULL", + "text_end": "NULL" + }, + "funcname": "CalcTextSizeA", + "location": "imgui:2995", + "nonUDT": 1, + "ov_cimguiname": "ImFont_CalcTextSizeA", "ret": "void", - "signature": "(ImGuiID)", - "stname": "ImGuiIO" + "signature": "(float,float,float,const char*,const char*,const char**)const", + "stname": "ImFont" } ], - "ImGuiIO_AddMouseWheelEvent": [ + "ImFont_CalcWordWrapPositionA": [ { - "args": "(ImGuiIO* self,float wh_x,float wh_y)", + "args": "(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" + "type": "ImFont*" }, { - "name": "wh_x", + "name": "scale", "type": "float" }, { - "name": "wh_y", + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + }, + { + "name": "wrap_width", "type": "float" } ], - "argsoriginal": "(float wh_x,float wh_y)", - "call_args": "(wh_x,wh_y)", - "cimguiname": "ImGuiIO_AddMouseWheelEvent", + "argsoriginal": "(float scale,const char* text,const char* text_end,float wrap_width)", + "call_args": "(scale,text,text_end,wrap_width)", + "cimguiname": "ImFont_CalcWordWrapPositionA", "defaults": {}, - "funcname": "AddMouseWheelEvent", - "location": "imgui:2061", - "ov_cimguiname": "ImGuiIO_AddMouseWheelEvent", - "ret": "void", - "signature": "(float,float)", - "stname": "ImGuiIO" + "funcname": "CalcWordWrapPositionA", + "location": "imgui:2996", + "ov_cimguiname": "ImFont_CalcWordWrapPositionA", + "ret": "const char*", + "signature": "(float,const char*,const char*,float)const", + "stname": "ImFont" } ], - "ImGuiIO_ClearInputCharacters": [ + "ImFont_ClearOutputData": [ { - "args": "(ImGuiIO* self)", + "args": "(ImFont* self)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" + "type": "ImFont*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiIO_ClearInputCharacters", + "cimguiname": "ImFont_ClearOutputData", "defaults": {}, - "funcname": "ClearInputCharacters", - "location": "imgui:2070", - "ov_cimguiname": "ImGuiIO_ClearInputCharacters", + "funcname": "ClearOutputData", + "location": "imgui:3002", + "ov_cimguiname": "ImFont_ClearOutputData", "ret": "void", "signature": "()", - "stname": "ImGuiIO" + "stname": "ImFont" } ], - "ImGuiIO_ClearInputKeys": [ + "ImFont_FindGlyph": [ { - "args": "(ImGuiIO* self)", + "args": "(ImFont* self,ImWchar c)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiIO_ClearInputKeys", - "defaults": {}, - "funcname": "ClearInputKeys", - "location": "imgui:2071", - "ov_cimguiname": "ImGuiIO_ClearInputKeys", - "ret": "void", - "signature": "()", - "stname": "ImGuiIO" - } - ], - "ImGuiIO_ImGuiIO": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiIO_ImGuiIO", - "constructor": true, + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFont_FindGlyph", "defaults": {}, - "funcname": "ImGuiIO", - "location": "imgui:2146", - "ov_cimguiname": "ImGuiIO_ImGuiIO", - "signature": "()", - "stname": "ImGuiIO" + "funcname": "FindGlyph", + "location": "imgui:2987", + "ov_cimguiname": "ImFont_FindGlyph", + "ret": "const ImFontGlyph*", + "signature": "(ImWchar)const", + "stname": "ImFont" } ], - "ImGuiIO_SetAppAcceptingEvents": [ + "ImFont_FindGlyphNoFallback": [ { - "args": "(ImGuiIO* self,bool accepting_events)", + "args": "(ImFont* self,ImWchar c)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" + "type": "ImFont*" }, { - "name": "accepting_events", - "type": "bool" + "name": "c", + "type": "ImWchar" } ], - "argsoriginal": "(bool accepting_events)", - "call_args": "(accepting_events)", - "cimguiname": "ImGuiIO_SetAppAcceptingEvents", + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFont_FindGlyphNoFallback", "defaults": {}, - "funcname": "SetAppAcceptingEvents", - "location": "imgui:2069", - "ov_cimguiname": "ImGuiIO_SetAppAcceptingEvents", - "ret": "void", - "signature": "(bool)", - "stname": "ImGuiIO" + "funcname": "FindGlyphNoFallback", + "location": "imgui:2988", + "ov_cimguiname": "ImFont_FindGlyphNoFallback", + "ret": "const ImFontGlyph*", + "signature": "(ImWchar)const", + "stname": "ImFont" } ], - "ImGuiIO_SetKeyEventNativeData": [ + "ImFont_GetCharAdvance": [ { - "args": "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)", + "args": "(ImFont* self,ImWchar c)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" - }, - { - "name": "key", - "type": "ImGuiKey" - }, - { - "name": "native_keycode", - "type": "int" - }, - { - "name": "native_scancode", - "type": "int" + "type": "ImFont*" }, { - "name": "native_legacy_index", - "type": "int" + "name": "c", + "type": "ImWchar" } ], - "argsoriginal": "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)", - "call_args": "(key,native_keycode,native_scancode,native_legacy_index)", - "cimguiname": "ImGuiIO_SetKeyEventNativeData", - "defaults": { - "native_legacy_index": "-1" - }, - "funcname": "SetKeyEventNativeData", - "location": "imgui:2068", - "ov_cimguiname": "ImGuiIO_SetKeyEventNativeData", - "ret": "void", - "signature": "(ImGuiKey,int,int,int)", - "stname": "ImGuiIO" + "argsoriginal": "(ImWchar c)", + "call_args": "(c)", + "cimguiname": "ImFont_GetCharAdvance", + "defaults": {}, + "funcname": "GetCharAdvance", + "location": "imgui:2989", + "ov_cimguiname": "ImFont_GetCharAdvance", + "ret": "float", + "signature": "(ImWchar)const", + "stname": "ImFont" } ], - "ImGuiIO_destroy": [ + "ImFont_GetDebugName": [ { - "args": "(ImGuiIO* self)", + "args": "(ImFont* self)", "argsT": [ { "name": "self", - "type": "ImGuiIO*" + "type": "ImFont*" } ], - "call_args": "(self)", - "cimguiname": "ImGuiIO_destroy", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImFont_GetDebugName", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImGuiIO_destroy", - "ret": "void", - "signature": "(ImGuiIO*)", - "stname": "ImGuiIO" + "funcname": "GetDebugName", + "location": "imgui:2991", + "ov_cimguiname": "ImFont_GetDebugName", + "ret": "const char*", + "signature": "()const", + "stname": "ImFont" } ], - "ImGuiInputTextCallbackData_ClearSelection": [ + "ImFont_GrowIndex": [ { - "args": "(ImGuiInputTextCallbackData* self)", + "args": "(ImFont* self,int new_size)", "argsT": [ { "name": "self", - "type": "ImGuiInputTextCallbackData*" + "type": "ImFont*" + }, + { + "name": "new_size", + "type": "int" } ], + "argsoriginal": "(int new_size)", + "call_args": "(new_size)", + "cimguiname": "ImFont_GrowIndex", + "defaults": {}, + "funcname": "GrowIndex", + "location": "imgui:3003", + "ov_cimguiname": "ImFont_GrowIndex", + "ret": "void", + "signature": "(int)", + "stname": "ImFont" + } + ], + "ImFont_ImFont": [ + { + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "cimguiname": "ImFont_ImFont", + "constructor": true, "defaults": {}, - "funcname": "ClearSelection", - "location": "imgui:2187", - "ov_cimguiname": "ImGuiInputTextCallbackData_ClearSelection", - "ret": "void", + "funcname": "ImFont", + "location": "imgui:2985", + "ov_cimguiname": "ImFont_ImFont", "signature": "()", - "stname": "ImGuiInputTextCallbackData" + "stname": "ImFont" } ], - "ImGuiInputTextCallbackData_DeleteChars": [ + "ImFont_IsGlyphRangeUnused": [ { - "args": "(ImGuiInputTextCallbackData* self,int pos,int bytes_count)", + "args": "(ImFont* self,unsigned int c_begin,unsigned int c_last)", "argsT": [ { "name": "self", - "type": "ImGuiInputTextCallbackData*" + "type": "ImFont*" }, { - "name": "pos", - "type": "int" + "name": "c_begin", + "type": "unsigned int" }, { - "name": "bytes_count", - "type": "int" + "name": "c_last", + "type": "unsigned int" } ], - "argsoriginal": "(int pos,int bytes_count)", - "call_args": "(pos,bytes_count)", - "cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "argsoriginal": "(unsigned int c_begin,unsigned int c_last)", + "call_args": "(c_begin,c_last)", + "cimguiname": "ImFont_IsGlyphRangeUnused", "defaults": {}, - "funcname": "DeleteChars", - "location": "imgui:2184", - "ov_cimguiname": "ImGuiInputTextCallbackData_DeleteChars", - "ret": "void", - "signature": "(int,int)", - "stname": "ImGuiInputTextCallbackData" + "funcname": "IsGlyphRangeUnused", + "location": "imgui:3007", + "ov_cimguiname": "ImFont_IsGlyphRangeUnused", + "ret": "bool", + "signature": "(unsigned int,unsigned int)", + "stname": "ImFont" } ], - "ImGuiInputTextCallbackData_HasSelection": [ + "ImFont_IsLoaded": [ { - "args": "(ImGuiInputTextCallbackData* self)", + "args": "(ImFont* self)", "argsT": [ { "name": "self", - "type": "ImGuiInputTextCallbackData*" + "type": "ImFont*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "cimguiname": "ImFont_IsLoaded", "defaults": {}, - "funcname": "HasSelection", - "location": "imgui:2188", - "ov_cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "funcname": "IsLoaded", + "location": "imgui:2990", + "ov_cimguiname": "ImFont_IsLoaded", "ret": "bool", "signature": "()const", - "stname": "ImGuiInputTextCallbackData" + "stname": "ImFont" } ], - "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData": [ + "ImFont_RenderChar": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", - "constructor": true, + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c)", + "argsT": [ + { + "name": "self", + "type": "ImFont*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "size", + "type": "float" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "c", + "type": "ImWchar" + } + ], + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,ImWchar c)", + "call_args": "(draw_list,size,pos,col,c)", + "cimguiname": "ImFont_RenderChar", "defaults": {}, - "funcname": "ImGuiInputTextCallbackData", - "location": "imgui:2183", - "ov_cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", - "signature": "()", - "stname": "ImGuiInputTextCallbackData" + "funcname": "RenderChar", + "location": "imgui:2997", + "ov_cimguiname": "ImFont_RenderChar", + "ret": "void", + "signature": "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const", + "stname": "ImFont" } ], - "ImGuiInputTextCallbackData_InsertChars": [ + "ImFont_RenderText": [ { - "args": "(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end)", + "args": "(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip)", "argsT": [ { "name": "self", - "type": "ImGuiInputTextCallbackData*" + "type": "ImFont*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "size", + "type": "float" }, { "name": "pos", - "type": "int" + "type": "const ImVec2" }, { - "name": "text", + "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" + }, + { + "name": "cpu_fine_clip", + "type": "bool" } ], - "argsoriginal": "(int pos,const char* text,const char* text_end=((void*)0))", - "call_args": "(pos,text,text_end)", - "cimguiname": "ImGuiInputTextCallbackData_InsertChars", + "argsoriginal": "(ImDrawList* draw_list,float size,const ImVec2& pos,ImU32 col,const ImVec4& clip_rect,const char* text_begin,const char* text_end,float wrap_width=0.0f,bool cpu_fine_clip=false)", + "call_args": "(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip)", + "cimguiname": "ImFont_RenderText", "defaults": { - "text_end": "NULL" + "cpu_fine_clip": "false", + "wrap_width": "0.0f" }, - "funcname": "InsertChars", - "location": "imgui:2185", - "ov_cimguiname": "ImGuiInputTextCallbackData_InsertChars", + "funcname": "RenderText", + "location": "imgui:2998", + "ov_cimguiname": "ImFont_RenderText", "ret": "void", - "signature": "(int,const char*,const char*)", - "stname": "ImGuiInputTextCallbackData" + "signature": "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const", + "stname": "ImFont" } ], - "ImGuiInputTextCallbackData_SelectAll": [ + "ImFont_SetGlyphVisible": [ { - "args": "(ImGuiInputTextCallbackData* self)", + "args": "(ImFont* self,ImWchar c,bool visible)", "argsT": [ { "name": "self", - "type": "ImGuiInputTextCallbackData*" + "type": "ImFont*" + }, + { + "name": "c", + "type": "ImWchar" + }, + { + "name": "visible", + "type": "bool" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiInputTextCallbackData_SelectAll", + "argsoriginal": "(ImWchar c,bool visible)", + "call_args": "(c,visible)", + "cimguiname": "ImFont_SetGlyphVisible", "defaults": {}, - "funcname": "SelectAll", - "location": "imgui:2186", - "ov_cimguiname": "ImGuiInputTextCallbackData_SelectAll", + "funcname": "SetGlyphVisible", + "location": "imgui:3006", + "ov_cimguiname": "ImFont_SetGlyphVisible", "ret": "void", - "signature": "()", - "stname": "ImGuiInputTextCallbackData" + "signature": "(ImWchar,bool)", + "stname": "ImFont" } ], - "ImGuiInputTextCallbackData_destroy": [ + "ImFont_destroy": [ { - "args": "(ImGuiInputTextCallbackData* self)", + "args": "(ImFont* self)", "argsT": [ { "name": "self", - "type": "ImGuiInputTextCallbackData*" + "type": "ImFont*" } ], "call_args": "(self)", - "cimguiname": "ImGuiInputTextCallbackData_destroy", + "cimguiname": "ImFont_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImGuiInputTextCallbackData_destroy", + "location": "imgui:2986", + "ov_cimguiname": "ImFont_destroy", + "realdestructor": true, "ret": "void", - "signature": "(ImGuiInputTextCallbackData*)", - "stname": "ImGuiInputTextCallbackData" + "signature": "(ImFont*)", + "stname": "ImFont" } ], - "ImGuiListClipper_Begin": [ + "ImGuiComboPreviewData_ImGuiComboPreviewData": [ { - "args": "(ImGuiListClipper* self,int items_count,float items_height)", - "argsT": [ - { - "name": "self", - "type": "ImGuiListClipper*" - }, - { - "name": "items_count", - "type": "int" - }, - { - "name": "items_height", - "type": "float" - } - ], - "argsoriginal": "(int items_count,float items_height=-1.0f)", - "call_args": "(items_count,items_height)", - "cimguiname": "ImGuiListClipper_Begin", - "defaults": { - "items_height": "-1.0f" - }, - "funcname": "Begin", - "location": "imgui:2420", - "ov_cimguiname": "ImGuiListClipper_Begin", - "ret": "void", - "signature": "(int,float)", - "stname": "ImGuiListClipper" - } - ], - "ImGuiListClipper_End": [ - { - "args": "(ImGuiListClipper* self)", - "argsT": [ - { - "name": "self", - "type": "ImGuiListClipper*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiListClipper_End", + "cimguiname": "ImGuiComboPreviewData_ImGuiComboPreviewData", + "constructor": true, "defaults": {}, - "funcname": "End", - "location": "imgui:2421", - "ov_cimguiname": "ImGuiListClipper_End", - "ret": "void", + "funcname": "ImGuiComboPreviewData", + "location": "imgui_internal:1018", + "ov_cimguiname": "ImGuiComboPreviewData_ImGuiComboPreviewData", "signature": "()", - "stname": "ImGuiListClipper" + "stname": "ImGuiComboPreviewData" } ], - "ImGuiListClipper_ForceDisplayRangeByIndices": [ + "ImGuiComboPreviewData_destroy": [ { - "args": "(ImGuiListClipper* self,int item_min,int item_max)", + "args": "(ImGuiComboPreviewData* self)", "argsT": [ { "name": "self", - "type": "ImGuiListClipper*" - }, - { - "name": "item_min", - "type": "int" - }, - { - "name": "item_max", - "type": "int" + "type": "ImGuiComboPreviewData*" } ], - "argsoriginal": "(int item_min,int item_max)", - "call_args": "(item_min,item_max)", - "cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", + "call_args": "(self)", + "cimguiname": "ImGuiComboPreviewData_destroy", "defaults": {}, - "funcname": "ForceDisplayRangeByIndices", - "location": "imgui:2425", - "ov_cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", + "destructor": true, + "ov_cimguiname": "ImGuiComboPreviewData_destroy", "ret": "void", - "signature": "(int,int)", - "stname": "ImGuiListClipper" + "signature": "(ImGuiComboPreviewData*)", + "stname": "ImGuiComboPreviewData" } ], - "ImGuiListClipper_ImGuiListClipper": [ + "ImGuiContextHook_ImGuiContextHook": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiListClipper_ImGuiListClipper", + "cimguiname": "ImGuiContextHook_ImGuiContextHook", "constructor": true, "defaults": {}, - "funcname": "ImGuiListClipper", - "location": "imgui:2418", - "ov_cimguiname": "ImGuiListClipper_ImGuiListClipper", + "funcname": "ImGuiContextHook", + "location": "imgui_internal:1898", + "ov_cimguiname": "ImGuiContextHook_ImGuiContextHook", "signature": "()", - "stname": "ImGuiListClipper" + "stname": "ImGuiContextHook" } ], - "ImGuiListClipper_Step": [ + "ImGuiContextHook_destroy": [ { - "args": "(ImGuiListClipper* self)", + "args": "(ImGuiContextHook* self)", "argsT": [ { "name": "self", - "type": "ImGuiListClipper*" + "type": "ImGuiContextHook*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiListClipper_Step", + "call_args": "(self)", + "cimguiname": "ImGuiContextHook_destroy", "defaults": {}, - "funcname": "Step", - "location": "imgui:2422", - "ov_cimguiname": "ImGuiListClipper_Step", - "ret": "bool", - "signature": "()", - "stname": "ImGuiListClipper" + "destructor": true, + "ov_cimguiname": "ImGuiContextHook_destroy", + "ret": "void", + "signature": "(ImGuiContextHook*)", + "stname": "ImGuiContextHook" } ], - "ImGuiListClipper_destroy": [ + "ImGuiContext_ImGuiContext": [ { - "args": "(ImGuiListClipper* self)", + "args": "(ImFontAtlas* shared_font_atlas)", + "argsT": [ + { + "name": "shared_font_atlas", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "(ImFontAtlas* shared_font_atlas)", + "call_args": "(shared_font_atlas)", + "cimguiname": "ImGuiContext_ImGuiContext", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiContext", + "location": "imgui_internal:2204", + "ov_cimguiname": "ImGuiContext_ImGuiContext", + "signature": "(ImFontAtlas*)", + "stname": "ImGuiContext" + } + ], + "ImGuiContext_destroy": [ + { + "args": "(ImGuiContext* self)", "argsT": [ { "name": "self", - "type": "ImGuiListClipper*" + "type": "ImGuiContext*" } ], "call_args": "(self)", - "cimguiname": "ImGuiListClipper_destroy", + "cimguiname": "ImGuiContext_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2419", - "ov_cimguiname": "ImGuiListClipper_destroy", - "realdestructor": true, + "ov_cimguiname": "ImGuiContext_destroy", "ret": "void", - "signature": "(ImGuiListClipper*)", - "stname": "ImGuiListClipper" + "signature": "(ImGuiContext*)", + "stname": "ImGuiContext" } ], - "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame": [ + "ImGuiDockContext_ImGuiDockContext": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", + "cimguiname": "ImGuiDockContext_ImGuiDockContext", "constructor": true, "defaults": {}, - "funcname": "ImGuiOnceUponAFrame", - "location": "imgui:2284", - "ov_cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", + "funcname": "ImGuiDockContext", + "location": "imgui_internal:1703", + "ov_cimguiname": "ImGuiDockContext_ImGuiDockContext", "signature": "()", - "stname": "ImGuiOnceUponAFrame" + "stname": "ImGuiDockContext" } ], - "ImGuiOnceUponAFrame_destroy": [ + "ImGuiDockContext_destroy": [ { - "args": "(ImGuiOnceUponAFrame* self)", + "args": "(ImGuiDockContext* self)", "argsT": [ { "name": "self", - "type": "ImGuiOnceUponAFrame*" + "type": "ImGuiDockContext*" } ], "call_args": "(self)", - "cimguiname": "ImGuiOnceUponAFrame_destroy", + "cimguiname": "ImGuiDockContext_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImGuiOnceUponAFrame_destroy", + "ov_cimguiname": "ImGuiDockContext_destroy", "ret": "void", - "signature": "(ImGuiOnceUponAFrame*)", - "stname": "ImGuiOnceUponAFrame" + "signature": "(ImGuiDockContext*)", + "stname": "ImGuiDockContext" } ], - "ImGuiPayload_Clear": [ + "ImGuiDockNode_ImGuiDockNode": [ { - "args": "(ImGuiPayload* self)", + "args": "(ImGuiID id)", "argsT": [ { - "name": "self", - "type": "ImGuiPayload*" + "name": "id", + "type": "ImGuiID" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiPayload_Clear", + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "ImGuiDockNode_ImGuiDockNode", + "constructor": true, "defaults": {}, - "funcname": "Clear", - "location": "imgui:2238", - "ov_cimguiname": "ImGuiPayload_Clear", - "ret": "void", - "signature": "()", - "stname": "ImGuiPayload" + "funcname": "ImGuiDockNode", + "location": "imgui_internal:1660", + "ov_cimguiname": "ImGuiDockNode_ImGuiDockNode", + "signature": "(ImGuiID)", + "stname": "ImGuiDockNode" } ], - "ImGuiPayload_ImGuiPayload": [ + "ImGuiDockNode_IsCentralNode": [ { - "args": "()", - "argsT": [], + "args": "(ImGuiDockNode* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiDockNode*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiPayload_ImGuiPayload", - "constructor": true, + "cimguiname": "ImGuiDockNode_IsCentralNode", "defaults": {}, - "funcname": "ImGuiPayload", - "location": "imgui:2237", - "ov_cimguiname": "ImGuiPayload_ImGuiPayload", - "signature": "()", - "stname": "ImGuiPayload" + "funcname": "IsCentralNode", + "location": "imgui_internal:1665", + "ov_cimguiname": "ImGuiDockNode_IsCentralNode", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiDockNode" } ], - "ImGuiPayload_IsDataType": [ + "ImGuiDockNode_IsDockSpace": [ { - "args": "(ImGuiPayload* self,const char* type)", + "args": "(ImGuiDockNode* self)", "argsT": [ { "name": "self", - "type": "ImGuiPayload*" - }, - { - "name": "type", - "type": "const char*" + "type": "ImGuiDockNode*" } ], - "argsoriginal": "(const char* type)", - "call_args": "(type)", - "cimguiname": "ImGuiPayload_IsDataType", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiDockNode_IsDockSpace", "defaults": {}, - "funcname": "IsDataType", - "location": "imgui:2239", - "ov_cimguiname": "ImGuiPayload_IsDataType", + "funcname": "IsDockSpace", + "location": "imgui_internal:1663", + "ov_cimguiname": "ImGuiDockNode_IsDockSpace", "ret": "bool", - "signature": "(const char*)const", - "stname": "ImGuiPayload" + "signature": "()const", + "stname": "ImGuiDockNode" } ], - "ImGuiPayload_IsDelivery": [ + "ImGuiDockNode_IsEmpty": [ { - "args": "(ImGuiPayload* self)", + "args": "(ImGuiDockNode* self)", "argsT": [ { "name": "self", - "type": "ImGuiPayload*" + "type": "ImGuiDockNode*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiPayload_IsDelivery", + "cimguiname": "ImGuiDockNode_IsEmpty", "defaults": {}, - "funcname": "IsDelivery", - "location": "imgui:2241", - "ov_cimguiname": "ImGuiPayload_IsDelivery", + "funcname": "IsEmpty", + "location": "imgui_internal:1670", + "ov_cimguiname": "ImGuiDockNode_IsEmpty", "ret": "bool", "signature": "()const", - "stname": "ImGuiPayload" + "stname": "ImGuiDockNode" } ], - "ImGuiPayload_IsPreview": [ + "ImGuiDockNode_IsFloatingNode": [ { - "args": "(ImGuiPayload* self)", + "args": "(ImGuiDockNode* self)", "argsT": [ { "name": "self", - "type": "ImGuiPayload*" + "type": "ImGuiDockNode*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiPayload_IsPreview", + "cimguiname": "ImGuiDockNode_IsFloatingNode", "defaults": {}, - "funcname": "IsPreview", - "location": "imgui:2240", - "ov_cimguiname": "ImGuiPayload_IsPreview", + "funcname": "IsFloatingNode", + "location": "imgui_internal:1664", + "ov_cimguiname": "ImGuiDockNode_IsFloatingNode", "ret": "bool", "signature": "()const", - "stname": "ImGuiPayload" + "stname": "ImGuiDockNode" } ], - "ImGuiPayload_destroy": [ + "ImGuiDockNode_IsHiddenTabBar": [ { - "args": "(ImGuiPayload* self)", + "args": "(ImGuiDockNode* self)", "argsT": [ { "name": "self", - "type": "ImGuiPayload*" + "type": "ImGuiDockNode*" } ], - "call_args": "(self)", - "cimguiname": "ImGuiPayload_destroy", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiDockNode_IsHiddenTabBar", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImGuiPayload_destroy", - "ret": "void", - "signature": "(ImGuiPayload*)", - "stname": "ImGuiPayload" + "funcname": "IsHiddenTabBar", + "location": "imgui_internal:1666", + "ov_cimguiname": "ImGuiDockNode_IsHiddenTabBar", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiDockNode" } ], - "ImGuiPlatformIO_ImGuiPlatformIO": [ + "ImGuiDockNode_IsLeafNode": [ { - "args": "()", - "argsT": [], + "args": "(ImGuiDockNode* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiDockNode*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiPlatformIO_ImGuiPlatformIO", - "constructor": true, + "cimguiname": "ImGuiDockNode_IsLeafNode", "defaults": {}, - "funcname": "ImGuiPlatformIO", - "location": "imgui:3182", - "ov_cimguiname": "ImGuiPlatformIO_ImGuiPlatformIO", - "signature": "()", - "stname": "ImGuiPlatformIO" + "funcname": "IsLeafNode", + "location": "imgui_internal:1669", + "ov_cimguiname": "ImGuiDockNode_IsLeafNode", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiDockNode" } ], - "ImGuiPlatformIO_destroy": [ + "ImGuiDockNode_IsNoTabBar": [ { - "args": "(ImGuiPlatformIO* self)", + "args": "(ImGuiDockNode* self)", "argsT": [ { "name": "self", - "type": "ImGuiPlatformIO*" + "type": "ImGuiDockNode*" } ], - "call_args": "(self)", - "cimguiname": "ImGuiPlatformIO_destroy", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiDockNode_IsNoTabBar", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImGuiPlatformIO_destroy", - "ret": "void", - "signature": "(ImGuiPlatformIO*)", - "stname": "ImGuiPlatformIO" + "funcname": "IsNoTabBar", + "location": "imgui_internal:1667", + "ov_cimguiname": "ImGuiDockNode_IsNoTabBar", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiDockNode" } ], - "ImGuiPlatformImeData_ImGuiPlatformImeData": [ + "ImGuiDockNode_IsRootNode": [ { - "args": "()", - "argsT": [], + "args": "(ImGuiDockNode* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiDockNode*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", - "constructor": true, + "cimguiname": "ImGuiDockNode_IsRootNode", "defaults": {}, - "funcname": "ImGuiPlatformImeData", - "location": "imgui:3202", - "ov_cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", - "signature": "()", - "stname": "ImGuiPlatformImeData" + "funcname": "IsRootNode", + "location": "imgui_internal:1662", + "ov_cimguiname": "ImGuiDockNode_IsRootNode", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiDockNode" } ], - "ImGuiPlatformImeData_destroy": [ + "ImGuiDockNode_IsSplitNode": [ { - "args": "(ImGuiPlatformImeData* self)", + "args": "(ImGuiDockNode* self)", "argsT": [ { "name": "self", - "type": "ImGuiPlatformImeData*" + "type": "ImGuiDockNode*" } ], - "call_args": "(self)", - "cimguiname": "ImGuiPlatformImeData_destroy", - "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImGuiPlatformImeData_destroy", - "ret": "void", - "signature": "(ImGuiPlatformImeData*)", - "stname": "ImGuiPlatformImeData" - } - ], - "ImGuiPlatformMonitor_ImGuiPlatformMonitor": [ - { - "args": "()", - "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiPlatformMonitor_ImGuiPlatformMonitor", - "constructor": true, + "cimguiname": "ImGuiDockNode_IsSplitNode", "defaults": {}, - "funcname": "ImGuiPlatformMonitor", - "location": "imgui:3192", - "ov_cimguiname": "ImGuiPlatformMonitor_ImGuiPlatformMonitor", - "signature": "()", - "stname": "ImGuiPlatformMonitor" + "funcname": "IsSplitNode", + "location": "imgui_internal:1668", + "ov_cimguiname": "ImGuiDockNode_IsSplitNode", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiDockNode" } ], - "ImGuiPlatformMonitor_destroy": [ + "ImGuiDockNode_Rect": [ { - "args": "(ImGuiPlatformMonitor* self)", + "args": "(ImRect *pOut,ImGuiDockNode* self)", "argsT": [ + { + "name": "pOut", + "type": "ImRect*" + }, { "name": "self", - "type": "ImGuiPlatformMonitor*" + "type": "ImGuiDockNode*" } ], - "call_args": "(self)", - "cimguiname": "ImGuiPlatformMonitor_destroy", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiDockNode_Rect", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImGuiPlatformMonitor_destroy", + "funcname": "Rect", + "location": "imgui_internal:1671", + "nonUDT": 1, + "ov_cimguiname": "ImGuiDockNode_Rect", "ret": "void", - "signature": "(ImGuiPlatformMonitor*)", - "stname": "ImGuiPlatformMonitor" + "signature": "()const", + "stname": "ImGuiDockNode" } ], - "ImGuiStoragePair_ImGuiStoragePair": [ - { - "args": "(ImGuiID _key,int _val_i)", - "argsT": [ - { - "name": "_key", - "type": "ImGuiID" - }, - { - "name": "_val_i", - "type": "int" - } - ], - "argsoriginal": "(ImGuiID _key,int _val_i)", - "call_args": "(_key,_val_i)", - "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", - "constructor": true, - "defaults": {}, - "funcname": "ImGuiStoragePair", - "location": "imgui:2351", - "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Int", - "signature": "(ImGuiID,int)", - "stname": "ImGuiStoragePair" - }, + "ImGuiDockNode_SetLocalFlags": [ { - "args": "(ImGuiID _key,float _val_f)", + "args": "(ImGuiDockNode* self,ImGuiDockNodeFlags flags)", "argsT": [ { - "name": "_key", - "type": "ImGuiID" + "name": "self", + "type": "ImGuiDockNode*" }, { - "name": "_val_f", - "type": "float" + "name": "flags", + "type": "ImGuiDockNodeFlags" } ], - "argsoriginal": "(ImGuiID _key,float _val_f)", - "call_args": "(_key,_val_f)", - "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", - "constructor": true, + "argsoriginal": "(ImGuiDockNodeFlags flags)", + "call_args": "(flags)", + "cimguiname": "ImGuiDockNode_SetLocalFlags", "defaults": {}, - "funcname": "ImGuiStoragePair", - "location": "imgui:2352", - "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Float", - "signature": "(ImGuiID,float)", - "stname": "ImGuiStoragePair" - }, + "funcname": "SetLocalFlags", + "location": "imgui_internal:1673", + "ov_cimguiname": "ImGuiDockNode_SetLocalFlags", + "ret": "void", + "signature": "(ImGuiDockNodeFlags)", + "stname": "ImGuiDockNode" + } + ], + "ImGuiDockNode_UpdateMergedFlags": [ { - "args": "(ImGuiID _key,void* _val_p)", + "args": "(ImGuiDockNode* self)", "argsT": [ { - "name": "_key", - "type": "ImGuiID" - }, - { - "name": "_val_p", - "type": "void*" + "name": "self", + "type": "ImGuiDockNode*" } ], - "argsoriginal": "(ImGuiID _key,void* _val_p)", - "call_args": "(_key,_val_p)", - "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", - "constructor": true, + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiDockNode_UpdateMergedFlags", "defaults": {}, - "funcname": "ImGuiStoragePair", - "location": "imgui:2353", - "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Ptr", - "signature": "(ImGuiID,void*)", - "stname": "ImGuiStoragePair" + "funcname": "UpdateMergedFlags", + "location": "imgui_internal:1674", + "ov_cimguiname": "ImGuiDockNode_UpdateMergedFlags", + "ret": "void", + "signature": "()", + "stname": "ImGuiDockNode" } ], - "ImGuiStoragePair_destroy": [ + "ImGuiDockNode_destroy": [ { - "args": "(ImGuiStoragePair* self)", + "args": "(ImGuiDockNode* self)", "argsT": [ { "name": "self", - "type": "ImGuiStoragePair*" + "type": "ImGuiDockNode*" } ], "call_args": "(self)", - "cimguiname": "ImGuiStoragePair_destroy", + "cimguiname": "ImGuiDockNode_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImGuiStoragePair_destroy", + "location": "imgui_internal:1661", + "ov_cimguiname": "ImGuiDockNode_destroy", + "realdestructor": true, "ret": "void", - "signature": "(ImGuiStoragePair*)", - "stname": "ImGuiStoragePair" + "signature": "(ImGuiDockNode*)", + "stname": "ImGuiDockNode" } ], - "ImGuiStorage_BuildSortByKey": [ + "ImGuiFreeType_GetBuilderForFreeType": [ { - "args": "(ImGuiStorage* self)", - "argsT": [ - { - "name": "self", - "type": "ImGuiStorage*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiStorage_BuildSortByKey", + "cimguiname": "ImGuiFreeType_GetBuilderForFreeType", "defaults": {}, - "funcname": "BuildSortByKey", - "location": "imgui:2384", - "ov_cimguiname": "ImGuiStorage_BuildSortByKey", - "ret": "void", + "funcname": "GetBuilderForFreeType", + "location": "imgui_freetype:39", + "namespace": "ImGuiFreeType", + "ov_cimguiname": "ImGuiFreeType_GetBuilderForFreeType", + "ret": "const ImFontBuilderIO*", "signature": "()", - "stname": "ImGuiStorage" + "stname": "" } ], - "ImGuiStorage_Clear": [ + "ImGuiFreeType_SetAllocatorFunctions": [ { - "args": "(ImGuiStorage* self)", + "args": "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data)", "argsT": [ { - "name": "self", - "type": "ImGuiStorage*" + "name": "alloc_func", + "ret": "void*", + "signature": "(size_t sz,void* user_data)", + "type": "void*(*)(size_t sz,void* user_data)" + }, + { + "name": "free_func", + "ret": "void", + "signature": "(void* ptr,void* user_data)", + "type": "void(*)(void* ptr,void* user_data)" + }, + { + "name": "user_data", + "type": "void*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiStorage_Clear", - "defaults": {}, - "funcname": "Clear", - "location": "imgui:2361", - "ov_cimguiname": "ImGuiStorage_Clear", + "argsoriginal": "(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data=((void*)0))", + "call_args": "(alloc_func,free_func,user_data)", + "cimguiname": "ImGuiFreeType_SetAllocatorFunctions", + "defaults": { + "user_data": "NULL" + }, + "funcname": "SetAllocatorFunctions", + "location": "imgui_freetype:43", + "namespace": "ImGuiFreeType", + "ov_cimguiname": "ImGuiFreeType_SetAllocatorFunctions", "ret": "void", - "signature": "()", - "stname": "ImGuiStorage" + "signature": "(void*(*)(size_t,void*),void(*)(void*,void*),void*)", + "stname": "" } ], - "ImGuiStorage_GetBool": [ + "ImGuiIO_AddFocusEvent": [ { - "args": "(ImGuiStorage* self,ImGuiID key,bool default_val)", + "args": "(ImGuiIO* self,bool focused)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" - }, - { - "name": "key", - "type": "ImGuiID" + "type": "ImGuiIO*" }, { - "name": "default_val", + "name": "focused", "type": "bool" } ], - "argsoriginal": "(ImGuiID key,bool default_val=false)", - "call_args": "(key,default_val)", - "cimguiname": "ImGuiStorage_GetBool", - "defaults": { - "default_val": "false" - }, - "funcname": "GetBool", - "location": "imgui:2364", - "ov_cimguiname": "ImGuiStorage_GetBool", - "ret": "bool", - "signature": "(ImGuiID,bool)const", - "stname": "ImGuiStorage" + "argsoriginal": "(bool focused)", + "call_args": "(focused)", + "cimguiname": "ImGuiIO_AddFocusEvent", + "defaults": {}, + "funcname": "AddFocusEvent", + "location": "imgui:2063", + "ov_cimguiname": "ImGuiIO_AddFocusEvent", + "ret": "void", + "signature": "(bool)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_GetBoolRef": [ + "ImGuiIO_AddInputCharacter": [ { - "args": "(ImGuiStorage* self,ImGuiID key,bool default_val)", + "args": "(ImGuiIO* self,unsigned int c)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" - }, - { - "name": "key", - "type": "ImGuiID" + "type": "ImGuiIO*" }, { - "name": "default_val", - "type": "bool" + "name": "c", + "type": "unsigned int" } ], - "argsoriginal": "(ImGuiID key,bool default_val=false)", - "call_args": "(key,default_val)", - "cimguiname": "ImGuiStorage_GetBoolRef", - "defaults": { - "default_val": "false" - }, - "funcname": "GetBoolRef", - "location": "imgui:2376", - "ov_cimguiname": "ImGuiStorage_GetBoolRef", - "ret": "bool*", - "signature": "(ImGuiID,bool)", - "stname": "ImGuiStorage" + "argsoriginal": "(unsigned int c)", + "call_args": "(c)", + "cimguiname": "ImGuiIO_AddInputCharacter", + "defaults": {}, + "funcname": "AddInputCharacter", + "location": "imgui:2064", + "ov_cimguiname": "ImGuiIO_AddInputCharacter", + "ret": "void", + "signature": "(unsigned int)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_GetFloat": [ + "ImGuiIO_AddInputCharacterUTF16": [ { - "args": "(ImGuiStorage* self,ImGuiID key,float default_val)", + "args": "(ImGuiIO* self,ImWchar16 c)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" + "type": "ImGuiIO*" }, { - "name": "key", - "type": "ImGuiID" - }, - { - "name": "default_val", - "type": "float" + "name": "c", + "type": "ImWchar16" } ], - "argsoriginal": "(ImGuiID key,float default_val=0.0f)", - "call_args": "(key,default_val)", - "cimguiname": "ImGuiStorage_GetFloat", - "defaults": { - "default_val": "0.0f" - }, - "funcname": "GetFloat", - "location": "imgui:2366", - "ov_cimguiname": "ImGuiStorage_GetFloat", - "ret": "float", - "signature": "(ImGuiID,float)const", - "stname": "ImGuiStorage" + "argsoriginal": "(ImWchar16 c)", + "call_args": "(c)", + "cimguiname": "ImGuiIO_AddInputCharacterUTF16", + "defaults": {}, + "funcname": "AddInputCharacterUTF16", + "location": "imgui:2065", + "ov_cimguiname": "ImGuiIO_AddInputCharacterUTF16", + "ret": "void", + "signature": "(ImWchar16)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_GetFloatRef": [ + "ImGuiIO_AddInputCharactersUTF8": [ { - "args": "(ImGuiStorage* self,ImGuiID key,float default_val)", + "args": "(ImGuiIO* self,const char* str)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" - }, - { - "name": "key", - "type": "ImGuiID" + "type": "ImGuiIO*" }, { - "name": "default_val", - "type": "float" + "name": "str", + "type": "const char*" } ], - "argsoriginal": "(ImGuiID key,float default_val=0.0f)", - "call_args": "(key,default_val)", - "cimguiname": "ImGuiStorage_GetFloatRef", - "defaults": { - "default_val": "0.0f" - }, - "funcname": "GetFloatRef", - "location": "imgui:2377", - "ov_cimguiname": "ImGuiStorage_GetFloatRef", - "ret": "float*", - "signature": "(ImGuiID,float)", - "stname": "ImGuiStorage" + "argsoriginal": "(const char* str)", + "call_args": "(str)", + "cimguiname": "ImGuiIO_AddInputCharactersUTF8", + "defaults": {}, + "funcname": "AddInputCharactersUTF8", + "location": "imgui:2066", + "ov_cimguiname": "ImGuiIO_AddInputCharactersUTF8", + "ret": "void", + "signature": "(const char*)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_GetInt": [ + "ImGuiIO_AddKeyAnalogEvent": [ { - "args": "(ImGuiStorage* self,ImGuiID key,int default_val)", + "args": "(ImGuiIO* self,ImGuiKey key,bool down,float v)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" + "type": "ImGuiIO*" }, { "name": "key", - "type": "ImGuiID" + "type": "ImGuiKey" }, { - "name": "default_val", - "type": "int" + "name": "down", + "type": "bool" + }, + { + "name": "v", + "type": "float" } ], - "argsoriginal": "(ImGuiID key,int default_val=0)", - "call_args": "(key,default_val)", - "cimguiname": "ImGuiStorage_GetInt", - "defaults": { - "default_val": "0" - }, - "funcname": "GetInt", - "location": "imgui:2362", - "ov_cimguiname": "ImGuiStorage_GetInt", - "ret": "int", - "signature": "(ImGuiID,int)const", - "stname": "ImGuiStorage" + "argsoriginal": "(ImGuiKey key,bool down,float v)", + "call_args": "(key,down,v)", + "cimguiname": "ImGuiIO_AddKeyAnalogEvent", + "defaults": {}, + "funcname": "AddKeyAnalogEvent", + "location": "imgui:2058", + "ov_cimguiname": "ImGuiIO_AddKeyAnalogEvent", + "ret": "void", + "signature": "(ImGuiKey,bool,float)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_GetIntRef": [ + "ImGuiIO_AddKeyEvent": [ { - "args": "(ImGuiStorage* self,ImGuiID key,int default_val)", + "args": "(ImGuiIO* self,ImGuiKey key,bool down)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" + "type": "ImGuiIO*" }, { "name": "key", - "type": "ImGuiID" + "type": "ImGuiKey" }, { - "name": "default_val", - "type": "int" + "name": "down", + "type": "bool" } ], - "argsoriginal": "(ImGuiID key,int default_val=0)", - "call_args": "(key,default_val)", - "cimguiname": "ImGuiStorage_GetIntRef", - "defaults": { - "default_val": "0" - }, - "funcname": "GetIntRef", - "location": "imgui:2375", - "ov_cimguiname": "ImGuiStorage_GetIntRef", - "ret": "int*", - "signature": "(ImGuiID,int)", - "stname": "ImGuiStorage" + "argsoriginal": "(ImGuiKey key,bool down)", + "call_args": "(key,down)", + "cimguiname": "ImGuiIO_AddKeyEvent", + "defaults": {}, + "funcname": "AddKeyEvent", + "location": "imgui:2057", + "ov_cimguiname": "ImGuiIO_AddKeyEvent", + "ret": "void", + "signature": "(ImGuiKey,bool)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_GetVoidPtr": [ + "ImGuiIO_AddMouseButtonEvent": [ { - "args": "(ImGuiStorage* self,ImGuiID key)", + "args": "(ImGuiIO* self,int button,bool down)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" + "type": "ImGuiIO*" }, { - "name": "key", - "type": "ImGuiID" + "name": "button", + "type": "int" + }, + { + "name": "down", + "type": "bool" } ], - "argsoriginal": "(ImGuiID key)", - "call_args": "(key)", - "cimguiname": "ImGuiStorage_GetVoidPtr", + "argsoriginal": "(int button,bool down)", + "call_args": "(button,down)", + "cimguiname": "ImGuiIO_AddMouseButtonEvent", "defaults": {}, - "funcname": "GetVoidPtr", - "location": "imgui:2368", - "ov_cimguiname": "ImGuiStorage_GetVoidPtr", - "ret": "void*", - "signature": "(ImGuiID)const", - "stname": "ImGuiStorage" + "funcname": "AddMouseButtonEvent", + "location": "imgui:2060", + "ov_cimguiname": "ImGuiIO_AddMouseButtonEvent", + "ret": "void", + "signature": "(int,bool)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_GetVoidPtrRef": [ + "ImGuiIO_AddMousePosEvent": [ { - "args": "(ImGuiStorage* self,ImGuiID key,void* default_val)", + "args": "(ImGuiIO* self,float x,float y)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" + "type": "ImGuiIO*" }, { - "name": "key", - "type": "ImGuiID" + "name": "x", + "type": "float" }, { - "name": "default_val", - "type": "void*" + "name": "y", + "type": "float" } ], - "argsoriginal": "(ImGuiID key,void* default_val=((void*)0))", - "call_args": "(key,default_val)", - "cimguiname": "ImGuiStorage_GetVoidPtrRef", - "defaults": { - "default_val": "NULL" - }, - "funcname": "GetVoidPtrRef", - "location": "imgui:2378", - "ov_cimguiname": "ImGuiStorage_GetVoidPtrRef", - "ret": "void**", - "signature": "(ImGuiID,void*)", - "stname": "ImGuiStorage" + "argsoriginal": "(float x,float y)", + "call_args": "(x,y)", + "cimguiname": "ImGuiIO_AddMousePosEvent", + "defaults": {}, + "funcname": "AddMousePosEvent", + "location": "imgui:2059", + "ov_cimguiname": "ImGuiIO_AddMousePosEvent", + "ret": "void", + "signature": "(float,float)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_SetAllInt": [ + "ImGuiIO_AddMouseViewportEvent": [ { - "args": "(ImGuiStorage* self,int val)", + "args": "(ImGuiIO* self,ImGuiID id)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" + "type": "ImGuiIO*" }, { - "name": "val", - "type": "int" + "name": "id", + "type": "ImGuiID" } ], - "argsoriginal": "(int val)", - "call_args": "(val)", - "cimguiname": "ImGuiStorage_SetAllInt", + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "ImGuiIO_AddMouseViewportEvent", "defaults": {}, - "funcname": "SetAllInt", - "location": "imgui:2381", - "ov_cimguiname": "ImGuiStorage_SetAllInt", + "funcname": "AddMouseViewportEvent", + "location": "imgui:2062", + "ov_cimguiname": "ImGuiIO_AddMouseViewportEvent", "ret": "void", - "signature": "(int)", - "stname": "ImGuiStorage" + "signature": "(ImGuiID)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_SetBool": [ + "ImGuiIO_AddMouseWheelEvent": [ { - "args": "(ImGuiStorage* self,ImGuiID key,bool val)", + "args": "(ImGuiIO* self,float wh_x,float wh_y)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" + "type": "ImGuiIO*" }, { - "name": "key", - "type": "ImGuiID" + "name": "wh_x", + "type": "float" }, { - "name": "val", - "type": "bool" + "name": "wh_y", + "type": "float" } ], - "argsoriginal": "(ImGuiID key,bool val)", - "call_args": "(key,val)", - "cimguiname": "ImGuiStorage_SetBool", + "argsoriginal": "(float wh_x,float wh_y)", + "call_args": "(wh_x,wh_y)", + "cimguiname": "ImGuiIO_AddMouseWheelEvent", "defaults": {}, - "funcname": "SetBool", - "location": "imgui:2365", - "ov_cimguiname": "ImGuiStorage_SetBool", - "ret": "void", - "signature": "(ImGuiID,bool)", - "stname": "ImGuiStorage" - } - ], - "ImGuiStorage_SetFloat": [ - { - "args": "(ImGuiStorage* self,ImGuiID key,float val)", - "argsT": [ - { - "name": "self", - "type": "ImGuiStorage*" - }, - { - "name": "key", - "type": "ImGuiID" - }, - { - "name": "val", - "type": "float" - } - ], - "argsoriginal": "(ImGuiID key,float val)", - "call_args": "(key,val)", - "cimguiname": "ImGuiStorage_SetFloat", - "defaults": {}, - "funcname": "SetFloat", - "location": "imgui:2367", - "ov_cimguiname": "ImGuiStorage_SetFloat", + "funcname": "AddMouseWheelEvent", + "location": "imgui:2061", + "ov_cimguiname": "ImGuiIO_AddMouseWheelEvent", "ret": "void", - "signature": "(ImGuiID,float)", - "stname": "ImGuiStorage" + "signature": "(float,float)", + "stname": "ImGuiIO" } ], - "ImGuiStorage_SetInt": [ + "ImGuiIO_ClearInputCharacters": [ { - "args": "(ImGuiStorage* self,ImGuiID key,int val)", + "args": "(ImGuiIO* self)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" - }, - { - "name": "key", - "type": "ImGuiID" - }, - { - "name": "val", - "type": "int" + "type": "ImGuiIO*" } ], - "argsoriginal": "(ImGuiID key,int val)", - "call_args": "(key,val)", - "cimguiname": "ImGuiStorage_SetInt", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ClearInputCharacters", "defaults": {}, - "funcname": "SetInt", - "location": "imgui:2363", - "ov_cimguiname": "ImGuiStorage_SetInt", + "funcname": "ClearInputCharacters", + "location": "imgui:2070", + "ov_cimguiname": "ImGuiIO_ClearInputCharacters", "ret": "void", - "signature": "(ImGuiID,int)", - "stname": "ImGuiStorage" + "signature": "()", + "stname": "ImGuiIO" } ], - "ImGuiStorage_SetVoidPtr": [ + "ImGuiIO_ClearInputKeys": [ { - "args": "(ImGuiStorage* self,ImGuiID key,void* val)", + "args": "(ImGuiIO* self)", "argsT": [ { "name": "self", - "type": "ImGuiStorage*" - }, - { - "name": "key", - "type": "ImGuiID" - }, - { - "name": "val", - "type": "void*" + "type": "ImGuiIO*" } ], - "argsoriginal": "(ImGuiID key,void* val)", - "call_args": "(key,val)", - "cimguiname": "ImGuiStorage_SetVoidPtr", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIO_ClearInputKeys", "defaults": {}, - "funcname": "SetVoidPtr", - "location": "imgui:2369", - "ov_cimguiname": "ImGuiStorage_SetVoidPtr", + "funcname": "ClearInputKeys", + "location": "imgui:2071", + "ov_cimguiname": "ImGuiIO_ClearInputKeys", "ret": "void", - "signature": "(ImGuiID,void*)", - "stname": "ImGuiStorage" + "signature": "()", + "stname": "ImGuiIO" } ], - "ImGuiStyle_ImGuiStyle": [ + "ImGuiIO_ImGuiIO": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiStyle_ImGuiStyle", + "cimguiname": "ImGuiIO_ImGuiIO", "constructor": true, "defaults": {}, - "funcname": "ImGuiStyle", - "location": "imgui:1953", - "ov_cimguiname": "ImGuiStyle_ImGuiStyle", + "funcname": "ImGuiIO", + "location": "imgui:2146", + "ov_cimguiname": "ImGuiIO_ImGuiIO", "signature": "()", - "stname": "ImGuiStyle" + "stname": "ImGuiIO" } ], - "ImGuiStyle_ScaleAllSizes": [ + "ImGuiIO_SetAppAcceptingEvents": [ { - "args": "(ImGuiStyle* self,float scale_factor)", + "args": "(ImGuiIO* self,bool accepting_events)", "argsT": [ { "name": "self", - "type": "ImGuiStyle*" + "type": "ImGuiIO*" }, { - "name": "scale_factor", - "type": "float" + "name": "accepting_events", + "type": "bool" } ], - "argsoriginal": "(float scale_factor)", - "call_args": "(scale_factor)", - "cimguiname": "ImGuiStyle_ScaleAllSizes", + "argsoriginal": "(bool accepting_events)", + "call_args": "(accepting_events)", + "cimguiname": "ImGuiIO_SetAppAcceptingEvents", "defaults": {}, - "funcname": "ScaleAllSizes", - "location": "imgui:1954", - "ov_cimguiname": "ImGuiStyle_ScaleAllSizes", + "funcname": "SetAppAcceptingEvents", + "location": "imgui:2069", + "ov_cimguiname": "ImGuiIO_SetAppAcceptingEvents", "ret": "void", - "signature": "(float)", - "stname": "ImGuiStyle" + "signature": "(bool)", + "stname": "ImGuiIO" } ], - "ImGuiStyle_destroy": [ + "ImGuiIO_SetKeyEventNativeData": [ { - "args": "(ImGuiStyle* self)", + "args": "(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)", "argsT": [ { "name": "self", - "type": "ImGuiStyle*" + "type": "ImGuiIO*" + }, + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "native_keycode", + "type": "int" + }, + { + "name": "native_scancode", + "type": "int" + }, + { + "name": "native_legacy_index", + "type": "int" } ], - "call_args": "(self)", - "cimguiname": "ImGuiStyle_destroy", - "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImGuiStyle_destroy", + "argsoriginal": "(ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index=-1)", + "call_args": "(key,native_keycode,native_scancode,native_legacy_index)", + "cimguiname": "ImGuiIO_SetKeyEventNativeData", + "defaults": { + "native_legacy_index": "-1" + }, + "funcname": "SetKeyEventNativeData", + "location": "imgui:2068", + "ov_cimguiname": "ImGuiIO_SetKeyEventNativeData", "ret": "void", - "signature": "(ImGuiStyle*)", - "stname": "ImGuiStyle" - } - ], - "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", - "constructor": true, - "defaults": {}, - "funcname": "ImGuiTableColumnSortSpecs", - "location": "imgui:2252", - "ov_cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", - "signature": "()", - "stname": "ImGuiTableColumnSortSpecs" + "signature": "(ImGuiKey,int,int,int)", + "stname": "ImGuiIO" } ], - "ImGuiTableColumnSortSpecs_destroy": [ + "ImGuiIO_destroy": [ { - "args": "(ImGuiTableColumnSortSpecs* self)", + "args": "(ImGuiIO* self)", "argsT": [ { "name": "self", - "type": "ImGuiTableColumnSortSpecs*" + "type": "ImGuiIO*" } ], "call_args": "(self)", - "cimguiname": "ImGuiTableColumnSortSpecs_destroy", + "cimguiname": "ImGuiIO_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImGuiTableColumnSortSpecs_destroy", + "ov_cimguiname": "ImGuiIO_destroy", "ret": "void", - "signature": "(ImGuiTableColumnSortSpecs*)", - "stname": "ImGuiTableColumnSortSpecs" + "signature": "(ImGuiIO*)", + "stname": "ImGuiIO" } ], - "ImGuiTableSortSpecs_ImGuiTableSortSpecs": [ + "ImGuiInputEvent_ImGuiInputEvent": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", + "cimguiname": "ImGuiInputEvent_ImGuiInputEvent", "constructor": true, "defaults": {}, - "funcname": "ImGuiTableSortSpecs", - "location": "imgui:2265", - "ov_cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", + "funcname": "ImGuiInputEvent", + "location": "imgui_internal:1302", + "ov_cimguiname": "ImGuiInputEvent_ImGuiInputEvent", "signature": "()", - "stname": "ImGuiTableSortSpecs" + "stname": "ImGuiInputEvent" } ], - "ImGuiTableSortSpecs_destroy": [ + "ImGuiInputEvent_destroy": [ { - "args": "(ImGuiTableSortSpecs* self)", + "args": "(ImGuiInputEvent* self)", "argsT": [ { "name": "self", - "type": "ImGuiTableSortSpecs*" + "type": "ImGuiInputEvent*" } ], "call_args": "(self)", - "cimguiname": "ImGuiTableSortSpecs_destroy", + "cimguiname": "ImGuiInputEvent_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImGuiTableSortSpecs_destroy", + "ov_cimguiname": "ImGuiInputEvent_destroy", "ret": "void", - "signature": "(ImGuiTableSortSpecs*)", - "stname": "ImGuiTableSortSpecs" + "signature": "(ImGuiInputEvent*)", + "stname": "ImGuiInputEvent" } ], - "ImGuiTextBuffer_ImGuiTextBuffer": [ + "ImGuiInputTextCallbackData_ClearSelection": [ { - "args": "()", - "argsT": [], + "args": "(ImGuiInputTextCallbackData* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiInputTextCallbackData*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", - "constructor": true, + "cimguiname": "ImGuiInputTextCallbackData_ClearSelection", "defaults": {}, - "funcname": "ImGuiTextBuffer", - "location": "imgui:2322", - "ov_cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", + "funcname": "ClearSelection", + "location": "imgui:2187", + "ov_cimguiname": "ImGuiInputTextCallbackData_ClearSelection", + "ret": "void", "signature": "()", - "stname": "ImGuiTextBuffer" + "stname": "ImGuiInputTextCallbackData" } ], - "ImGuiTextBuffer_append": [ + "ImGuiInputTextCallbackData_DeleteChars": [ { - "args": "(ImGuiTextBuffer* self,const char* str,const char* str_end)", + "args": "(ImGuiInputTextCallbackData* self,int pos,int bytes_count)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" + "type": "ImGuiInputTextCallbackData*" }, { - "name": "str", - "type": "const char*" + "name": "pos", + "type": "int" }, { - "name": "str_end", - "type": "const char*" + "name": "bytes_count", + "type": "int" } ], - "argsoriginal": "(const char* str,const char* str_end=((void*)0))", - "call_args": "(str,str_end)", - "cimguiname": "ImGuiTextBuffer_append", - "defaults": { - "str_end": "NULL" - }, - "funcname": "append", - "location": "imgui:2331", - "ov_cimguiname": "ImGuiTextBuffer_append", + "argsoriginal": "(int pos,int bytes_count)", + "call_args": "(pos,bytes_count)", + "cimguiname": "ImGuiInputTextCallbackData_DeleteChars", + "defaults": {}, + "funcname": "DeleteChars", + "location": "imgui:2184", + "ov_cimguiname": "ImGuiInputTextCallbackData_DeleteChars", "ret": "void", - "signature": "(const char*,const char*)", - "stname": "ImGuiTextBuffer" + "signature": "(int,int)", + "stname": "ImGuiInputTextCallbackData" } ], - "ImGuiTextBuffer_appendf": [ + "ImGuiInputTextCallbackData_HasSelection": [ { - "args": "(ImGuiTextBuffer* self,const char* fmt,...)", + "args": "(ImGuiInputTextCallbackData* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" - }, - { - "name": "fmt", - "type": "const char*" - }, - { - "name": "...", - "type": "..." + "type": "ImGuiInputTextCallbackData*" } ], - "argsoriginal": "(const char* fmt,...)", - "call_args": "(fmt,...)", - "cimguiname": "ImGuiTextBuffer_appendf", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_HasSelection", "defaults": {}, - "funcname": "appendf", - "isvararg": "...)", - "location": "imgui:2332", - "manual": true, - "ov_cimguiname": "ImGuiTextBuffer_appendf", - "ret": "void", - "signature": "(const char*,...)", - "stname": "ImGuiTextBuffer" + "funcname": "HasSelection", + "location": "imgui:2188", + "ov_cimguiname": "ImGuiInputTextCallbackData_HasSelection", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiInputTextCallbackData" } ], - "ImGuiTextBuffer_appendfv": [ + "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData": [ { - "args": "(ImGuiTextBuffer* self,const char* fmt,va_list args)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiInputTextCallbackData", + "location": "imgui:2183", + "ov_cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", + "signature": "()", + "stname": "ImGuiInputTextCallbackData" + } + ], + "ImGuiInputTextCallbackData_InsertChars": [ + { + "args": "(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" + "type": "ImGuiInputTextCallbackData*" }, { - "name": "fmt", + "name": "pos", + "type": "int" + }, + { + "name": "text", "type": "const char*" }, { - "name": "args", - "type": "va_list" + "name": "text_end", + "type": "const char*" } ], - "argsoriginal": "(const char* fmt,va_list args)", - "call_args": "(fmt,args)", - "cimguiname": "ImGuiTextBuffer_appendfv", - "defaults": {}, - "funcname": "appendfv", - "location": "imgui:2333", - "ov_cimguiname": "ImGuiTextBuffer_appendfv", + "argsoriginal": "(int pos,const char* text,const char* text_end=((void*)0))", + "call_args": "(pos,text,text_end)", + "cimguiname": "ImGuiInputTextCallbackData_InsertChars", + "defaults": { + "text_end": "NULL" + }, + "funcname": "InsertChars", + "location": "imgui:2185", + "ov_cimguiname": "ImGuiInputTextCallbackData_InsertChars", "ret": "void", - "signature": "(const char*,va_list)", - "stname": "ImGuiTextBuffer" + "signature": "(int,const char*,const char*)", + "stname": "ImGuiInputTextCallbackData" } ], - "ImGuiTextBuffer_begin": [ + "ImGuiInputTextCallbackData_SelectAll": [ { - "args": "(ImGuiTextBuffer* self)", + "args": "(ImGuiInputTextCallbackData* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" + "type": "ImGuiInputTextCallbackData*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextBuffer_begin", + "cimguiname": "ImGuiInputTextCallbackData_SelectAll", "defaults": {}, - "funcname": "begin", - "location": "imgui:2324", - "ov_cimguiname": "ImGuiTextBuffer_begin", - "ret": "const char*", - "signature": "()const", - "stname": "ImGuiTextBuffer" + "funcname": "SelectAll", + "location": "imgui:2186", + "ov_cimguiname": "ImGuiInputTextCallbackData_SelectAll", + "ret": "void", + "signature": "()", + "stname": "ImGuiInputTextCallbackData" } ], - "ImGuiTextBuffer_c_str": [ + "ImGuiInputTextCallbackData_destroy": [ { - "args": "(ImGuiTextBuffer* self)", + "args": "(ImGuiInputTextCallbackData* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" + "type": "ImGuiInputTextCallbackData*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiTextBuffer_c_str", + "call_args": "(self)", + "cimguiname": "ImGuiInputTextCallbackData_destroy", "defaults": {}, - "funcname": "c_str", - "location": "imgui:2330", - "ov_cimguiname": "ImGuiTextBuffer_c_str", - "ret": "const char*", - "signature": "()const", - "stname": "ImGuiTextBuffer" + "destructor": true, + "ov_cimguiname": "ImGuiInputTextCallbackData_destroy", + "ret": "void", + "signature": "(ImGuiInputTextCallbackData*)", + "stname": "ImGuiInputTextCallbackData" } ], - "ImGuiTextBuffer_clear": [ + "ImGuiInputTextState_ClearFreeMemory": [ { - "args": "(ImGuiTextBuffer* self)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" + "type": "ImGuiInputTextState*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextBuffer_clear", + "cimguiname": "ImGuiInputTextState_ClearFreeMemory", "defaults": {}, - "funcname": "clear", - "location": "imgui:2328", - "ov_cimguiname": "ImGuiTextBuffer_clear", + "funcname": "ClearFreeMemory", + "location": "imgui_internal:1076", + "ov_cimguiname": "ImGuiInputTextState_ClearFreeMemory", "ret": "void", "signature": "()", - "stname": "ImGuiTextBuffer" + "stname": "ImGuiInputTextState" } ], - "ImGuiTextBuffer_destroy": [ + "ImGuiInputTextState_ClearSelection": [ { - "args": "(ImGuiTextBuffer* self)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" + "type": "ImGuiInputTextState*" } ], - "call_args": "(self)", - "cimguiname": "ImGuiTextBuffer_destroy", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextState_ClearSelection", "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImGuiTextBuffer_destroy", + "funcname": "ClearSelection", + "location": "imgui_internal:1085", + "ov_cimguiname": "ImGuiInputTextState_ClearSelection", "ret": "void", - "signature": "(ImGuiTextBuffer*)", - "stname": "ImGuiTextBuffer" + "signature": "()", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextBuffer_empty": [ + "ImGuiInputTextState_ClearText": [ { - "args": "(ImGuiTextBuffer* self)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" + "type": "ImGuiInputTextState*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextBuffer_empty", + "cimguiname": "ImGuiInputTextState_ClearText", "defaults": {}, - "funcname": "empty", - "location": "imgui:2327", - "ov_cimguiname": "ImGuiTextBuffer_empty", - "ret": "bool", - "signature": "()const", - "stname": "ImGuiTextBuffer" + "funcname": "ClearText", + "location": "imgui_internal:1075", + "ov_cimguiname": "ImGuiInputTextState_ClearText", + "ret": "void", + "signature": "()", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextBuffer_end": [ + "ImGuiInputTextState_CursorAnimReset": [ { - "args": "(ImGuiTextBuffer* self)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" + "type": "ImGuiInputTextState*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextBuffer_end", + "cimguiname": "ImGuiInputTextState_CursorAnimReset", "defaults": {}, - "funcname": "end", - "location": "imgui:2325", - "ov_cimguiname": "ImGuiTextBuffer_end", - "ret": "const char*", - "signature": "()const", - "stname": "ImGuiTextBuffer" + "funcname": "CursorAnimReset", + "location": "imgui_internal:1082", + "ov_cimguiname": "ImGuiInputTextState_CursorAnimReset", + "ret": "void", + "signature": "()", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextBuffer_reserve": [ + "ImGuiInputTextState_CursorClamp": [ { - "args": "(ImGuiTextBuffer* self,int capacity)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" - }, - { - "name": "capacity", - "type": "int" + "type": "ImGuiInputTextState*" } ], - "argsoriginal": "(int capacity)", - "call_args": "(capacity)", - "cimguiname": "ImGuiTextBuffer_reserve", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextState_CursorClamp", "defaults": {}, - "funcname": "reserve", - "location": "imgui:2329", - "ov_cimguiname": "ImGuiTextBuffer_reserve", + "funcname": "CursorClamp", + "location": "imgui_internal:1083", + "ov_cimguiname": "ImGuiInputTextState_CursorClamp", "ret": "void", - "signature": "(int)", - "stname": "ImGuiTextBuffer" + "signature": "()", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextBuffer_size": [ + "ImGuiInputTextState_GetCursorPos": [ { - "args": "(ImGuiTextBuffer* self)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextBuffer*" + "type": "ImGuiInputTextState*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextBuffer_size", + "cimguiname": "ImGuiInputTextState_GetCursorPos", "defaults": {}, - "funcname": "size", - "location": "imgui:2326", - "ov_cimguiname": "ImGuiTextBuffer_size", + "funcname": "GetCursorPos", + "location": "imgui_internal:1086", + "ov_cimguiname": "ImGuiInputTextState_GetCursorPos", "ret": "int", "signature": "()const", - "stname": "ImGuiTextBuffer" + "stname": "ImGuiInputTextState" } ], - "ImGuiTextFilter_Build": [ + "ImGuiInputTextState_GetRedoAvailCount": [ { - "args": "(ImGuiTextFilter* self)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextFilter*" + "type": "ImGuiInputTextState*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextFilter_Build", + "cimguiname": "ImGuiInputTextState_GetRedoAvailCount", "defaults": {}, - "funcname": "Build", - "location": "imgui:2295", - "ov_cimguiname": "ImGuiTextFilter_Build", - "ret": "void", - "signature": "()", - "stname": "ImGuiTextFilter" + "funcname": "GetRedoAvailCount", + "location": "imgui_internal:1078", + "ov_cimguiname": "ImGuiInputTextState_GetRedoAvailCount", + "ret": "int", + "signature": "()const", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextFilter_Clear": [ + "ImGuiInputTextState_GetSelectionEnd": [ { - "args": "(ImGuiTextFilter* self)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextFilter*" + "type": "ImGuiInputTextState*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextFilter_Clear", + "cimguiname": "ImGuiInputTextState_GetSelectionEnd", "defaults": {}, - "funcname": "Clear", - "location": "imgui:2296", - "ov_cimguiname": "ImGuiTextFilter_Clear", - "ret": "void", - "signature": "()", - "stname": "ImGuiTextFilter" + "funcname": "GetSelectionEnd", + "location": "imgui_internal:1088", + "ov_cimguiname": "ImGuiInputTextState_GetSelectionEnd", + "ret": "int", + "signature": "()const", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextFilter_Draw": [ + "ImGuiInputTextState_GetSelectionStart": [ { - "args": "(ImGuiTextFilter* self,const char* label,float width)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextFilter*" - }, - { - "name": "label", - "type": "const char*" - }, - { - "name": "width", - "type": "float" + "type": "ImGuiInputTextState*" } ], - "argsoriginal": "(const char* label=\"Filter(inc,-exc)\",float width=0.0f)", - "call_args": "(label,width)", - "cimguiname": "ImGuiTextFilter_Draw", - "defaults": { - "label": "\"Filter(inc,-exc)\"", - "width": "0.0f" - }, - "funcname": "Draw", - "location": "imgui:2293", - "ov_cimguiname": "ImGuiTextFilter_Draw", - "ret": "bool", - "signature": "(const char*,float)", - "stname": "ImGuiTextFilter" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextState_GetSelectionStart", + "defaults": {}, + "funcname": "GetSelectionStart", + "location": "imgui_internal:1087", + "ov_cimguiname": "ImGuiInputTextState_GetSelectionStart", + "ret": "int", + "signature": "()const", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextFilter_ImGuiTextFilter": [ + "ImGuiInputTextState_GetUndoAvailCount": [ { - "args": "(const char* default_filter)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { - "name": "default_filter", - "type": "const char*" + "name": "self", + "type": "ImGuiInputTextState*" } ], - "argsoriginal": "(const char* default_filter=\"\")", - "call_args": "(default_filter)", - "cimguiname": "ImGuiTextFilter_ImGuiTextFilter", - "constructor": true, - "defaults": { - "default_filter": "\"\"" - }, - "funcname": "ImGuiTextFilter", - "location": "imgui:2292", - "ov_cimguiname": "ImGuiTextFilter_ImGuiTextFilter", - "signature": "(const char*)", - "stname": "ImGuiTextFilter" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextState_GetUndoAvailCount", + "defaults": {}, + "funcname": "GetUndoAvailCount", + "location": "imgui_internal:1077", + "ov_cimguiname": "ImGuiInputTextState_GetUndoAvailCount", + "ret": "int", + "signature": "()const", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextFilter_IsActive": [ + "ImGuiInputTextState_HasSelection": [ { - "args": "(ImGuiTextFilter* self)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextFilter*" + "type": "ImGuiInputTextState*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextFilter_IsActive", + "cimguiname": "ImGuiInputTextState_HasSelection", "defaults": {}, - "funcname": "IsActive", - "location": "imgui:2297", - "ov_cimguiname": "ImGuiTextFilter_IsActive", + "funcname": "HasSelection", + "location": "imgui_internal:1084", + "ov_cimguiname": "ImGuiInputTextState_HasSelection", "ret": "bool", "signature": "()const", - "stname": "ImGuiTextFilter" + "stname": "ImGuiInputTextState" } ], - "ImGuiTextFilter_PassFilter": [ + "ImGuiInputTextState_ImGuiInputTextState": [ { - "args": "(ImGuiTextFilter* self,const char* text,const char* text_end)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextState_ImGuiInputTextState", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiInputTextState", + "location": "imgui_internal:1074", + "ov_cimguiname": "ImGuiInputTextState_ImGuiInputTextState", + "signature": "()", + "stname": "ImGuiInputTextState" + } + ], + "ImGuiInputTextState_OnKeyPressed": [ + { + "args": "(ImGuiInputTextState* self,int key)", "argsT": [ { "name": "self", - "type": "ImGuiTextFilter*" + "type": "ImGuiInputTextState*" }, { - "name": "text", - "type": "const char*" - }, + "name": "key", + "type": "int" + } + ], + "argsoriginal": "(int key)", + "call_args": "(key)", + "cimguiname": "ImGuiInputTextState_OnKeyPressed", + "defaults": {}, + "funcname": "OnKeyPressed", + "location": "imgui_internal:1079", + "ov_cimguiname": "ImGuiInputTextState_OnKeyPressed", + "ret": "void", + "signature": "(int)", + "stname": "ImGuiInputTextState" + } + ], + "ImGuiInputTextState_SelectAll": [ + { + "args": "(ImGuiInputTextState* self)", + "argsT": [ { - "name": "text_end", - "type": "const char*" + "name": "self", + "type": "ImGuiInputTextState*" } ], - "argsoriginal": "(const char* text,const char* text_end=((void*)0))", - "call_args": "(text,text_end)", - "cimguiname": "ImGuiTextFilter_PassFilter", - "defaults": { - "text_end": "NULL" - }, - "funcname": "PassFilter", - "location": "imgui:2294", - "ov_cimguiname": "ImGuiTextFilter_PassFilter", - "ret": "bool", - "signature": "(const char*,const char*)const", - "stname": "ImGuiTextFilter" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiInputTextState_SelectAll", + "defaults": {}, + "funcname": "SelectAll", + "location": "imgui_internal:1089", + "ov_cimguiname": "ImGuiInputTextState_SelectAll", + "ret": "void", + "signature": "()", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextFilter_destroy": [ + "ImGuiInputTextState_destroy": [ { - "args": "(ImGuiTextFilter* self)", + "args": "(ImGuiInputTextState* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextFilter*" + "type": "ImGuiInputTextState*" } ], "call_args": "(self)", - "cimguiname": "ImGuiTextFilter_destroy", + "cimguiname": "ImGuiInputTextState_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImGuiTextFilter_destroy", + "ov_cimguiname": "ImGuiInputTextState_destroy", "ret": "void", - "signature": "(ImGuiTextFilter*)", - "stname": "ImGuiTextFilter" + "signature": "(ImGuiInputTextState*)", + "stname": "ImGuiInputTextState" } ], - "ImGuiTextRange_ImGuiTextRange": [ + "ImGuiKeyOwnerData_ImGuiKeyOwnerData": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextRange_ImGuiTextRange", + "cimguiname": "ImGuiKeyOwnerData_ImGuiKeyOwnerData", "constructor": true, "defaults": {}, - "funcname": "ImGuiTextRange", - "location": "imgui:2305", - "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Nil", + "funcname": "ImGuiKeyOwnerData", + "location": "imgui_internal:1344", + "ov_cimguiname": "ImGuiKeyOwnerData_ImGuiKeyOwnerData", "signature": "()", - "stname": "ImGuiTextRange" - }, - { - "args": "(const char* _b,const char* _e)", - "argsT": [ - { - "name": "_b", - "type": "const char*" - }, - { - "name": "_e", - "type": "const char*" - } - ], - "argsoriginal": "(const char* _b,const char* _e)", - "call_args": "(_b,_e)", - "cimguiname": "ImGuiTextRange_ImGuiTextRange", - "constructor": true, - "defaults": {}, - "funcname": "ImGuiTextRange", - "location": "imgui:2306", - "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Str", - "signature": "(const char*,const char*)", - "stname": "ImGuiTextRange" + "stname": "ImGuiKeyOwnerData" } ], - "ImGuiTextRange_destroy": [ + "ImGuiKeyOwnerData_destroy": [ { - "args": "(ImGuiTextRange* self)", + "args": "(ImGuiKeyOwnerData* self)", "argsT": [ { "name": "self", - "type": "ImGuiTextRange*" + "type": "ImGuiKeyOwnerData*" } ], "call_args": "(self)", - "cimguiname": "ImGuiTextRange_destroy", + "cimguiname": "ImGuiKeyOwnerData_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImGuiTextRange_destroy", + "ov_cimguiname": "ImGuiKeyOwnerData_destroy", "ret": "void", - "signature": "(ImGuiTextRange*)", - "stname": "ImGuiTextRange" + "signature": "(ImGuiKeyOwnerData*)", + "stname": "ImGuiKeyOwnerData" } ], - "ImGuiTextRange_empty": [ + "ImGuiKeyRoutingData_ImGuiKeyRoutingData": [ { - "args": "(ImGuiTextRange* self)", - "argsT": [ - { - "name": "self", - "type": "ImGuiTextRange*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiTextRange_empty", - "defaults": {}, - "funcname": "empty", - "location": "imgui:2307", - "ov_cimguiname": "ImGuiTextRange_empty", - "ret": "bool", - "signature": "()const", - "stname": "ImGuiTextRange" - } - ], - "ImGuiTextRange_split": [ - { - "args": "(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out)", - "argsT": [ - { - "name": "self", - "type": "ImGuiTextRange*" - }, - { - "name": "separator", - "type": "char" - }, - { - "name": "out", - "type": "ImVector_ImGuiTextRange*" - } - ], - "argsoriginal": "(char separator,ImVector* out)", - "call_args": "(separator,out)", - "cimguiname": "ImGuiTextRange_split", + "cimguiname": "ImGuiKeyRoutingData_ImGuiKeyRoutingData", + "constructor": true, "defaults": {}, - "funcname": "split", - "location": "imgui:2308", - "ov_cimguiname": "ImGuiTextRange_split", - "ret": "void", - "signature": "(char,ImVector_ImGuiTextRange*)const", - "stname": "ImGuiTextRange" + "funcname": "ImGuiKeyRoutingData", + "location": "imgui_internal:1320", + "ov_cimguiname": "ImGuiKeyRoutingData_ImGuiKeyRoutingData", + "signature": "()", + "stname": "ImGuiKeyRoutingData" } ], - "ImGuiViewport_GetCenter": [ + "ImGuiKeyRoutingData_destroy": [ { - "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "args": "(ImGuiKeyRoutingData* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", - "type": "ImGuiViewport*" + "type": "ImGuiKeyRoutingData*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiViewport_GetCenter", + "call_args": "(self)", + "cimguiname": "ImGuiKeyRoutingData_destroy", "defaults": {}, - "funcname": "GetCenter", - "location": "imgui:3070", - "nonUDT": 1, - "ov_cimguiname": "ImGuiViewport_GetCenter", + "destructor": true, + "ov_cimguiname": "ImGuiKeyRoutingData_destroy", "ret": "void", - "signature": "()const", - "stname": "ImGuiViewport" + "signature": "(ImGuiKeyRoutingData*)", + "stname": "ImGuiKeyRoutingData" } ], - "ImGuiViewport_GetWorkCenter": [ + "ImGuiKeyRoutingTable_Clear": [ { - "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "args": "(ImGuiKeyRoutingTable* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", - "type": "ImGuiViewport*" + "type": "ImGuiKeyRoutingTable*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiViewport_GetWorkCenter", + "cimguiname": "ImGuiKeyRoutingTable_Clear", "defaults": {}, - "funcname": "GetWorkCenter", - "location": "imgui:3071", - "nonUDT": 1, - "ov_cimguiname": "ImGuiViewport_GetWorkCenter", + "funcname": "Clear", + "location": "imgui_internal:1332", + "ov_cimguiname": "ImGuiKeyRoutingTable_Clear", "ret": "void", - "signature": "()const", - "stname": "ImGuiViewport" + "signature": "()", + "stname": "ImGuiKeyRoutingTable" } ], - "ImGuiViewport_ImGuiViewport": [ + "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiViewport_ImGuiViewport", + "cimguiname": "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable", "constructor": true, "defaults": {}, - "funcname": "ImGuiViewport", - "location": "imgui:3066", - "ov_cimguiname": "ImGuiViewport_ImGuiViewport", + "funcname": "ImGuiKeyRoutingTable", + "location": "imgui_internal:1331", + "ov_cimguiname": "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable", "signature": "()", - "stname": "ImGuiViewport" + "stname": "ImGuiKeyRoutingTable" } ], - "ImGuiViewport_destroy": [ + "ImGuiKeyRoutingTable_destroy": [ { - "args": "(ImGuiViewport* self)", + "args": "(ImGuiKeyRoutingTable* self)", "argsT": [ { "name": "self", - "type": "ImGuiViewport*" + "type": "ImGuiKeyRoutingTable*" } ], "call_args": "(self)", - "cimguiname": "ImGuiViewport_destroy", + "cimguiname": "ImGuiKeyRoutingTable_destroy", "defaults": {}, "destructor": true, - "location": "imgui:3067", - "ov_cimguiname": "ImGuiViewport_destroy", - "realdestructor": true, + "ov_cimguiname": "ImGuiKeyRoutingTable_destroy", "ret": "void", - "signature": "(ImGuiViewport*)", - "stname": "ImGuiViewport" + "signature": "(ImGuiKeyRoutingTable*)", + "stname": "ImGuiKeyRoutingTable" } ], - "ImGuiWindowClass_ImGuiWindowClass": [ + "ImGuiLastItemData_ImGuiLastItemData": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiWindowClass_ImGuiWindowClass", + "cimguiname": "ImGuiLastItemData_ImGuiLastItemData", "constructor": true, "defaults": {}, - "funcname": "ImGuiWindowClass", - "location": "imgui:2219", - "ov_cimguiname": "ImGuiWindowClass_ImGuiWindowClass", + "funcname": "ImGuiLastItemData", + "location": "imgui_internal:1180", + "ov_cimguiname": "ImGuiLastItemData_ImGuiLastItemData", "signature": "()", - "stname": "ImGuiWindowClass" + "stname": "ImGuiLastItemData" } ], - "ImGuiWindowClass_destroy": [ + "ImGuiLastItemData_destroy": [ { - "args": "(ImGuiWindowClass* self)", + "args": "(ImGuiLastItemData* self)", "argsT": [ { "name": "self", - "type": "ImGuiWindowClass*" + "type": "ImGuiLastItemData*" } ], "call_args": "(self)", - "cimguiname": "ImGuiWindowClass_destroy", + "cimguiname": "ImGuiLastItemData_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImGuiWindowClass_destroy", + "ov_cimguiname": "ImGuiLastItemData_destroy", "ret": "void", - "signature": "(ImGuiWindowClass*)", - "stname": "ImGuiWindowClass" + "signature": "(ImGuiLastItemData*)", + "stname": "ImGuiLastItemData" } ], - "ImVec2_ImVec2": [ + "ImGuiListClipperData_ImGuiListClipperData": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVec2_ImVec2", + "cimguiname": "ImGuiListClipperData_ImGuiListClipperData", "constructor": true, "defaults": {}, - "funcname": "ImVec2", - "location": "imgui:262", - "ov_cimguiname": "ImVec2_ImVec2_Nil", + "funcname": "ImGuiListClipperData", + "location": "imgui_internal:1420", + "ov_cimguiname": "ImGuiListClipperData_ImGuiListClipperData", "signature": "()", - "stname": "ImVec2" - }, - { - "args": "(float _x,float _y)", + "stname": "ImGuiListClipperData" + } + ], + "ImGuiListClipperData_Reset": [ + { + "args": "(ImGuiListClipperData* self,ImGuiListClipper* clipper)", "argsT": [ { - "name": "_x", - "type": "float" + "name": "self", + "type": "ImGuiListClipperData*" }, { - "name": "_y", - "type": "float" + "name": "clipper", + "type": "ImGuiListClipper*" } ], - "argsoriginal": "(float _x,float _y)", - "call_args": "(_x,_y)", - "cimguiname": "ImVec2_ImVec2", - "constructor": true, + "argsoriginal": "(ImGuiListClipper* clipper)", + "call_args": "(clipper)", + "cimguiname": "ImGuiListClipperData_Reset", "defaults": {}, - "funcname": "ImVec2", - "location": "imgui:263", - "ov_cimguiname": "ImVec2_ImVec2_Float", - "signature": "(float,float)", - "stname": "ImVec2" + "funcname": "Reset", + "location": "imgui_internal:1421", + "ov_cimguiname": "ImGuiListClipperData_Reset", + "ret": "void", + "signature": "(ImGuiListClipper*)", + "stname": "ImGuiListClipperData" } ], - "ImVec2_destroy": [ + "ImGuiListClipperData_destroy": [ { - "args": "(ImVec2* self)", + "args": "(ImGuiListClipperData* self)", "argsT": [ { "name": "self", - "type": "ImVec2*" + "type": "ImGuiListClipperData*" } ], "call_args": "(self)", - "cimguiname": "ImVec2_destroy", + "cimguiname": "ImGuiListClipperData_destroy", "defaults": {}, "destructor": true, - "ov_cimguiname": "ImVec2_destroy", + "ov_cimguiname": "ImGuiListClipperData_destroy", "ret": "void", - "signature": "(ImVec2*)", - "stname": "ImVec2" + "signature": "(ImGuiListClipperData*)", + "stname": "ImGuiListClipperData" } ], - "ImVec4_ImVec4": [ + "ImGuiListClipperRange_FromIndices": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImVec4_ImVec4", - "constructor": true, + "args": "(int min,int max)", + "argsT": [ + { + "name": "min", + "type": "int" + }, + { + "name": "max", + "type": "int" + } + ], + "argsoriginal": "(int min,int max)", + "call_args": "(min,max)", + "cimguiname": "ImGuiListClipperRange_FromIndices", "defaults": {}, - "funcname": "ImVec4", - "location": "imgui:275", - "ov_cimguiname": "ImVec4_ImVec4_Nil", - "signature": "()", - "stname": "ImVec4" - }, + "funcname": "FromIndices", + "is_static_function": true, + "location": "imgui_internal:1407", + "ov_cimguiname": "ImGuiListClipperRange_FromIndices", + "ret": "ImGuiListClipperRange", + "signature": "(int,int)", + "stname": "ImGuiListClipperRange" + } + ], + "ImGuiListClipperRange_FromPositions": [ { - "args": "(float _x,float _y,float _z,float _w)", + "args": "(float y1,float y2,int off_min,int off_max)", "argsT": [ { - "name": "_x", + "name": "y1", "type": "float" }, { - "name": "_y", + "name": "y2", "type": "float" }, { - "name": "_z", - "type": "float" + "name": "off_min", + "type": "int" }, { - "name": "_w", - "type": "float" + "name": "off_max", + "type": "int" } ], - "argsoriginal": "(float _x,float _y,float _z,float _w)", - "call_args": "(_x,_y,_z,_w)", - "cimguiname": "ImVec4_ImVec4", - "constructor": true, + "argsoriginal": "(float y1,float y2,int off_min,int off_max)", + "call_args": "(y1,y2,off_min,off_max)", + "cimguiname": "ImGuiListClipperRange_FromPositions", "defaults": {}, - "funcname": "ImVec4", - "location": "imgui:276", - "ov_cimguiname": "ImVec4_ImVec4_Float", - "signature": "(float,float,float,float)", - "stname": "ImVec4" + "funcname": "FromPositions", + "is_static_function": true, + "location": "imgui_internal:1408", + "ov_cimguiname": "ImGuiListClipperRange_FromPositions", + "ret": "ImGuiListClipperRange", + "signature": "(float,float,int,int)", + "stname": "ImGuiListClipperRange" } ], - "ImVec4_destroy": [ + "ImGuiListClipper_Begin": [ { - "args": "(ImVec4* self)", + "args": "(ImGuiListClipper* self,int items_count,float items_height)", "argsT": [ { "name": "self", - "type": "ImVec4*" + "type": "ImGuiListClipper*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "items_height", + "type": "float" } ], - "call_args": "(self)", - "cimguiname": "ImVec4_destroy", - "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImVec4_destroy", + "argsoriginal": "(int items_count,float items_height=-1.0f)", + "call_args": "(items_count,items_height)", + "cimguiname": "ImGuiListClipper_Begin", + "defaults": { + "items_height": "-1.0f" + }, + "funcname": "Begin", + "location": "imgui:2420", + "ov_cimguiname": "ImGuiListClipper_Begin", "ret": "void", - "signature": "(ImVec4*)", - "stname": "ImVec4" + "signature": "(int,float)", + "stname": "ImGuiListClipper" } ], - "ImVector_ImVector": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImVector_ImVector", - "constructor": true, - "defaults": {}, - "funcname": "ImVector", - "location": "imgui:1850", - "ov_cimguiname": "ImVector_ImVector_Nil", - "signature": "()", - "stname": "ImVector", - "templated": true - }, + "ImGuiListClipper_End": [ { - "args": "(const ImVector_T src)", + "args": "(ImGuiListClipper* self)", "argsT": [ { - "name": "src", - "type": "const ImVector_T " + "name": "self", + "type": "ImGuiListClipper*" } ], - "argsoriginal": "(const ImVector& src)", - "call_args": "(src)", - "cimguiname": "ImVector_ImVector", - "constructor": true, + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiListClipper_End", "defaults": {}, - "funcname": "ImVector", - "location": "imgui:1851", - "ov_cimguiname": "ImVector_ImVector_Vector_T_", - "signature": "(const ImVector_T )", - "stname": "ImVector", - "templated": true + "funcname": "End", + "location": "imgui:2421", + "ov_cimguiname": "ImGuiListClipper_End", + "ret": "void", + "signature": "()", + "stname": "ImGuiListClipper" } ], - "ImVector__grow_capacity": [ + "ImGuiListClipper_ForceDisplayRangeByIndices": [ { - "args": "(ImVector* self,int sz)", + "args": "(ImGuiListClipper* self,int item_min,int item_max)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiListClipper*" }, { - "name": "sz", + "name": "item_min", + "type": "int" + }, + { + "name": "item_max", "type": "int" } ], - "argsoriginal": "(int sz)", - "call_args": "(sz)", - "cimguiname": "ImVector__grow_capacity", + "argsoriginal": "(int item_min,int item_max)", + "call_args": "(item_min,item_max)", + "cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", "defaults": {}, - "funcname": "_grow_capacity", - "location": "imgui:1877", - "ov_cimguiname": "ImVector__grow_capacity", - "ret": "int", - "signature": "(int)const", - "stname": "ImVector", - "templated": true + "funcname": "ForceDisplayRangeByIndices", + "location": "imgui:2425", + "ov_cimguiname": "ImGuiListClipper_ForceDisplayRangeByIndices", + "ret": "void", + "signature": "(int,int)", + "stname": "ImGuiListClipper" } ], - "ImVector_back": [ + "ImGuiListClipper_ImGuiListClipper": [ { - "args": "(ImVector* self)", - "argsT": [ - { - "name": "self", - "type": "ImVector*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_back", + "cimguiname": "ImGuiListClipper_ImGuiListClipper", + "constructor": true, "defaults": {}, - "funcname": "back", - "location": "imgui:1873", - "ov_cimguiname": "ImVector_back_Nil", - "ret": "T*", - "retref": "&", + "funcname": "ImGuiListClipper", + "location": "imgui:2418", + "ov_cimguiname": "ImGuiListClipper_ImGuiListClipper", "signature": "()", - "stname": "ImVector", - "templated": true - }, + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_Step": [ { - "args": "(ImVector* self)", + "args": "(ImGuiListClipper* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiListClipper*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_back", + "cimguiname": "ImGuiListClipper_Step", "defaults": {}, - "funcname": "back", - "location": "imgui:1874", - "ov_cimguiname": "ImVector_back__const", - "ret": "const T*", - "retref": "&", - "signature": "()const", - "stname": "ImVector", - "templated": true + "funcname": "Step", + "location": "imgui:2422", + "ov_cimguiname": "ImGuiListClipper_Step", + "ret": "bool", + "signature": "()", + "stname": "ImGuiListClipper" } ], - "ImVector_begin": [ + "ImGuiListClipper_destroy": [ { - "args": "(ImVector* self)", + "args": "(ImGuiListClipper* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiListClipper*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImVector_begin", + "call_args": "(self)", + "cimguiname": "ImGuiListClipper_destroy", "defaults": {}, - "funcname": "begin", - "location": "imgui:1867", - "ov_cimguiname": "ImVector_begin_Nil", - "ret": "T*", - "signature": "()", - "stname": "ImVector", - "templated": true - }, + "destructor": true, + "location": "imgui:2419", + "ov_cimguiname": "ImGuiListClipper_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImGuiListClipper*)", + "stname": "ImGuiListClipper" + } + ], + "ImGuiMenuColumns_CalcNextTotalWidth": [ { - "args": "(ImVector* self)", + "args": "(ImGuiMenuColumns* self,bool update_offsets)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiMenuColumns*" + }, + { + "name": "update_offsets", + "type": "bool" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImVector_begin", + "argsoriginal": "(bool update_offsets)", + "call_args": "(update_offsets)", + "cimguiname": "ImGuiMenuColumns_CalcNextTotalWidth", "defaults": {}, - "funcname": "begin", - "location": "imgui:1868", - "ov_cimguiname": "ImVector_begin__const", - "ret": "const T*", - "signature": "()const", - "stname": "ImVector", - "templated": true + "funcname": "CalcNextTotalWidth", + "location": "imgui_internal:1052", + "ov_cimguiname": "ImGuiMenuColumns_CalcNextTotalWidth", + "ret": "void", + "signature": "(bool)", + "stname": "ImGuiMenuColumns" } ], - "ImVector_capacity": [ + "ImGuiMenuColumns_DeclColumns": [ { - "args": "(ImVector* self)", + "args": "(ImGuiMenuColumns* self,float w_icon,float w_label,float w_shortcut,float w_mark)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiMenuColumns*" + }, + { + "name": "w_icon", + "type": "float" + }, + { + "name": "w_label", + "type": "float" + }, + { + "name": "w_shortcut", + "type": "float" + }, + { + "name": "w_mark", + "type": "float" } ], + "argsoriginal": "(float w_icon,float w_label,float w_shortcut,float w_mark)", + "call_args": "(w_icon,w_label,w_shortcut,w_mark)", + "cimguiname": "ImGuiMenuColumns_DeclColumns", + "defaults": {}, + "funcname": "DeclColumns", + "location": "imgui_internal:1051", + "ov_cimguiname": "ImGuiMenuColumns_DeclColumns", + "ret": "float", + "signature": "(float,float,float,float)", + "stname": "ImGuiMenuColumns" + } + ], + "ImGuiMenuColumns_ImGuiMenuColumns": [ + { + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_capacity", + "cimguiname": "ImGuiMenuColumns_ImGuiMenuColumns", + "constructor": true, "defaults": {}, - "funcname": "capacity", - "location": "imgui:1863", - "ov_cimguiname": "ImVector_capacity", - "ret": "int", - "signature": "()const", - "stname": "ImVector", - "templated": true + "funcname": "ImGuiMenuColumns", + "location": "imgui_internal:1049", + "ov_cimguiname": "ImGuiMenuColumns_ImGuiMenuColumns", + "signature": "()", + "stname": "ImGuiMenuColumns" } ], - "ImVector_clear": [ + "ImGuiMenuColumns_Update": [ { - "args": "(ImVector* self)", + "args": "(ImGuiMenuColumns* self,float spacing,bool window_reappearing)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiMenuColumns*" + }, + { + "name": "spacing", + "type": "float" + }, + { + "name": "window_reappearing", + "type": "bool" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImVector_clear", + "argsoriginal": "(float spacing,bool window_reappearing)", + "call_args": "(spacing,window_reappearing)", + "cimguiname": "ImGuiMenuColumns_Update", "defaults": {}, - "funcname": "clear", - "location": "imgui:1855", - "ov_cimguiname": "ImVector_clear", + "funcname": "Update", + "location": "imgui_internal:1050", + "ov_cimguiname": "ImGuiMenuColumns_Update", "ret": "void", - "signature": "()", - "stname": "ImVector", - "templated": true + "signature": "(float,bool)", + "stname": "ImGuiMenuColumns" } ], - "ImVector_clear_delete": [ + "ImGuiMenuColumns_destroy": [ { - "args": "(ImVector* self)", + "args": "(ImGuiMenuColumns* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiMenuColumns*" } ], + "call_args": "(self)", + "cimguiname": "ImGuiMenuColumns_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiMenuColumns_destroy", + "ret": "void", + "signature": "(ImGuiMenuColumns*)", + "stname": "ImGuiMenuColumns" + } + ], + "ImGuiMetricsConfig_ImGuiMetricsConfig": [ + { + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_clear_delete", + "cimguiname": "ImGuiMetricsConfig_ImGuiMetricsConfig", + "constructor": true, "defaults": {}, - "funcname": "clear_delete", - "location": "imgui:1856", - "ov_cimguiname": "ImVector_clear_delete", - "ret": "void", + "funcname": "ImGuiMetricsConfig", + "location": "imgui_internal:1849", + "ov_cimguiname": "ImGuiMetricsConfig_ImGuiMetricsConfig", "signature": "()", - "stname": "ImVector", - "templated": true + "stname": "ImGuiMetricsConfig" } ], - "ImVector_clear_destruct": [ + "ImGuiMetricsConfig_destroy": [ { - "args": "(ImVector* self)", + "args": "(ImGuiMetricsConfig* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiMetricsConfig*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImVector_clear_destruct", + "call_args": "(self)", + "cimguiname": "ImGuiMetricsConfig_destroy", "defaults": {}, - "funcname": "clear_destruct", - "location": "imgui:1857", - "ov_cimguiname": "ImVector_clear_destruct", + "destructor": true, + "ov_cimguiname": "ImGuiMetricsConfig_destroy", "ret": "void", - "signature": "()", - "stname": "ImVector", - "templated": true + "signature": "(ImGuiMetricsConfig*)", + "stname": "ImGuiMetricsConfig" } ], - "ImVector_contains": [ + "ImGuiNavItemData_Clear": [ { - "args": "(ImVector* self,const T v)", + "args": "(ImGuiNavItemData* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "v", - "type": "const T" + "type": "ImGuiNavItemData*" } ], - "argsoriginal": "(const T& v)", - "call_args": "(v)", - "cimguiname": "ImVector_contains", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiNavItemData_Clear", "defaults": {}, - "funcname": "contains", - "location": "imgui:1892", - "ov_cimguiname": "ImVector_contains", - "ret": "bool", - "signature": "(const T)const", - "stname": "ImVector", - "templated": true + "funcname": "Clear", + "location": "imgui_internal:1497", + "ov_cimguiname": "ImGuiNavItemData_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiNavItemData" } ], - "ImVector_destroy": [ + "ImGuiNavItemData_ImGuiNavItemData": [ { - "args": "(ImVector* self)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiNavItemData_ImGuiNavItemData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiNavItemData", + "location": "imgui_internal:1496", + "ov_cimguiname": "ImGuiNavItemData_ImGuiNavItemData", + "signature": "()", + "stname": "ImGuiNavItemData" + } + ], + "ImGuiNavItemData_destroy": [ + { + "args": "(ImGuiNavItemData* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiNavItemData*" } ], "call_args": "(self)", - "cimguiname": "ImVector_destroy", + "cimguiname": "ImGuiNavItemData_destroy", "defaults": {}, "destructor": true, - "location": "imgui:1853", - "ov_cimguiname": "ImVector_destroy", - "realdestructor": true, + "ov_cimguiname": "ImGuiNavItemData_destroy", "ret": "void", - "signature": "(ImVector*)", - "stname": "ImVector", - "templated": true + "signature": "(ImGuiNavItemData*)", + "stname": "ImGuiNavItemData" } ], - "ImVector_empty": [ + "ImGuiNextItemData_ClearFlags": [ { - "args": "(ImVector* self)", + "args": "(ImGuiNextItemData* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiNextItemData*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_empty", + "cimguiname": "ImGuiNextItemData_ClearFlags", "defaults": {}, - "funcname": "empty", - "location": "imgui:1859", - "ov_cimguiname": "ImVector_empty", - "ret": "bool", - "signature": "()const", - "stname": "ImVector", - "templated": true + "funcname": "ClearFlags", + "location": "imgui_internal:1167", + "ov_cimguiname": "ImGuiNextItemData_ClearFlags", + "ret": "void", + "signature": "()", + "stname": "ImGuiNextItemData" } ], - "ImVector_end": [ + "ImGuiNextItemData_ImGuiNextItemData": [ { - "args": "(ImVector* self)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiNextItemData_ImGuiNextItemData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiNextItemData", + "location": "imgui_internal:1166", + "ov_cimguiname": "ImGuiNextItemData_ImGuiNextItemData", + "signature": "()", + "stname": "ImGuiNextItemData" + } + ], + "ImGuiNextItemData_destroy": [ + { + "args": "(ImGuiNextItemData* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiNextItemData*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImVector_end", + "call_args": "(self)", + "cimguiname": "ImGuiNextItemData_destroy", "defaults": {}, - "funcname": "end", - "location": "imgui:1869", - "ov_cimguiname": "ImVector_end_Nil", - "ret": "T*", - "signature": "()", - "stname": "ImVector", - "templated": true - }, + "destructor": true, + "ov_cimguiname": "ImGuiNextItemData_destroy", + "ret": "void", + "signature": "(ImGuiNextItemData*)", + "stname": "ImGuiNextItemData" + } + ], + "ImGuiNextWindowData_ClearFlags": [ { - "args": "(ImVector* self)", + "args": "(ImGuiNextWindowData* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiNextWindowData*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_end", + "cimguiname": "ImGuiNextWindowData_ClearFlags", "defaults": {}, - "funcname": "end", - "location": "imgui:1870", - "ov_cimguiname": "ImVector_end__const", - "ret": "const T*", - "signature": "()const", - "stname": "ImVector", - "templated": true + "funcname": "ClearFlags", + "location": "imgui_internal:1148", + "ov_cimguiname": "ImGuiNextWindowData_ClearFlags", + "ret": "void", + "signature": "()", + "stname": "ImGuiNextWindowData" } ], - "ImVector_erase": [ + "ImGuiNextWindowData_ImGuiNextWindowData": [ { - "args": "(ImVector* self,const T* it)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiNextWindowData_ImGuiNextWindowData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiNextWindowData", + "location": "imgui_internal:1147", + "ov_cimguiname": "ImGuiNextWindowData_ImGuiNextWindowData", + "signature": "()", + "stname": "ImGuiNextWindowData" + } + ], + "ImGuiNextWindowData_destroy": [ + { + "args": "(ImGuiNextWindowData* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "it", - "type": "const T*" + "type": "ImGuiNextWindowData*" } ], - "argsoriginal": "(const T* it)", - "call_args": "(it)", - "cimguiname": "ImVector_erase", + "call_args": "(self)", + "cimguiname": "ImGuiNextWindowData_destroy", "defaults": {}, - "funcname": "erase", - "location": "imgui:1888", - "ov_cimguiname": "ImVector_erase_Nil", - "ret": "T*", - "signature": "(const T*)", - "stname": "ImVector", - "templated": true - }, + "destructor": true, + "ov_cimguiname": "ImGuiNextWindowData_destroy", + "ret": "void", + "signature": "(ImGuiNextWindowData*)", + "stname": "ImGuiNextWindowData" + } + ], + "ImGuiOldColumnData_ImGuiOldColumnData": [ { - "args": "(ImVector* self,const T* it,const T* it_last)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiOldColumnData_ImGuiOldColumnData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiOldColumnData", + "location": "imgui_internal:1532", + "ov_cimguiname": "ImGuiOldColumnData_ImGuiOldColumnData", + "signature": "()", + "stname": "ImGuiOldColumnData" + } + ], + "ImGuiOldColumnData_destroy": [ + { + "args": "(ImGuiOldColumnData* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "it", - "type": "const T*" - }, - { - "name": "it_last", - "type": "const T*" + "type": "ImGuiOldColumnData*" } ], - "argsoriginal": "(const T* it,const T* it_last)", - "call_args": "(it,it_last)", - "cimguiname": "ImVector_erase", + "call_args": "(self)", + "cimguiname": "ImGuiOldColumnData_destroy", "defaults": {}, - "funcname": "erase", - "location": "imgui:1889", - "ov_cimguiname": "ImVector_erase_TPtr", - "ret": "T*", - "signature": "(const T*,const T*)", - "stname": "ImVector", - "templated": true + "destructor": true, + "ov_cimguiname": "ImGuiOldColumnData_destroy", + "ret": "void", + "signature": "(ImGuiOldColumnData*)", + "stname": "ImGuiOldColumnData" } ], - "ImVector_erase_unsorted": [ + "ImGuiOldColumns_ImGuiOldColumns": [ { - "args": "(ImVector* self,const T* it)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiOldColumns_ImGuiOldColumns", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiOldColumns", + "location": "imgui_internal:1553", + "ov_cimguiname": "ImGuiOldColumns_ImGuiOldColumns", + "signature": "()", + "stname": "ImGuiOldColumns" + } + ], + "ImGuiOldColumns_destroy": [ + { + "args": "(ImGuiOldColumns* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "it", - "type": "const T*" + "type": "ImGuiOldColumns*" } ], - "argsoriginal": "(const T* it)", - "call_args": "(it)", - "cimguiname": "ImVector_erase_unsorted", + "call_args": "(self)", + "cimguiname": "ImGuiOldColumns_destroy", "defaults": {}, - "funcname": "erase_unsorted", - "location": "imgui:1890", - "ov_cimguiname": "ImVector_erase_unsorted", - "ret": "T*", - "signature": "(const T*)", - "stname": "ImVector", - "templated": true + "destructor": true, + "ov_cimguiname": "ImGuiOldColumns_destroy", + "ret": "void", + "signature": "(ImGuiOldColumns*)", + "stname": "ImGuiOldColumns" } ], - "ImVector_find": [ + "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame": [ { - "args": "(ImVector* self,const T v)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiOnceUponAFrame", + "location": "imgui:2284", + "ov_cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", + "signature": "()", + "stname": "ImGuiOnceUponAFrame" + } + ], + "ImGuiOnceUponAFrame_destroy": [ + { + "args": "(ImGuiOnceUponAFrame* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "v", - "type": "const T" + "type": "ImGuiOnceUponAFrame*" } ], - "argsoriginal": "(const T& v)", - "call_args": "(v)", - "cimguiname": "ImVector_find", + "call_args": "(self)", + "cimguiname": "ImGuiOnceUponAFrame_destroy", "defaults": {}, - "funcname": "find", - "location": "imgui:1893", - "ov_cimguiname": "ImVector_find_Nil", - "ret": "T*", - "signature": "(const T)", - "stname": "ImVector", - "templated": true - }, + "destructor": true, + "ov_cimguiname": "ImGuiOnceUponAFrame_destroy", + "ret": "void", + "signature": "(ImGuiOnceUponAFrame*)", + "stname": "ImGuiOnceUponAFrame" + } + ], + "ImGuiPayload_Clear": [ { - "args": "(ImVector* self,const T v)", + "args": "(ImGuiPayload* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "v", - "type": "const T" + "type": "ImGuiPayload*" } ], - "argsoriginal": "(const T& v)", - "call_args": "(v)", - "cimguiname": "ImVector_find", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_Clear", "defaults": {}, - "funcname": "find", - "location": "imgui:1894", - "ov_cimguiname": "ImVector_find__const", - "ret": "const T*", - "signature": "(const T)const", - "stname": "ImVector", - "templated": true + "funcname": "Clear", + "location": "imgui:2238", + "ov_cimguiname": "ImGuiPayload_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiPayload" } ], - "ImVector_find_erase": [ + "ImGuiPayload_ImGuiPayload": [ { - "args": "(ImVector* self,const T v)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_ImGuiPayload", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPayload", + "location": "imgui:2237", + "ov_cimguiname": "ImGuiPayload_ImGuiPayload", + "signature": "()", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_IsDataType": [ + { + "args": "(ImGuiPayload* self,const char* type)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiPayload*" }, { - "name": "v", - "type": "const T" + "name": "type", + "type": "const char*" } ], - "argsoriginal": "(const T& v)", - "call_args": "(v)", - "cimguiname": "ImVector_find_erase", + "argsoriginal": "(const char* type)", + "call_args": "(type)", + "cimguiname": "ImGuiPayload_IsDataType", "defaults": {}, - "funcname": "find_erase", - "location": "imgui:1895", - "ov_cimguiname": "ImVector_find_erase", + "funcname": "IsDataType", + "location": "imgui:2239", + "ov_cimguiname": "ImGuiPayload_IsDataType", "ret": "bool", - "signature": "(const T)", - "stname": "ImVector", - "templated": true + "signature": "(const char*)const", + "stname": "ImGuiPayload" } ], - "ImVector_find_erase_unsorted": [ + "ImGuiPayload_IsDelivery": [ { - "args": "(ImVector* self,const T v)", + "args": "(ImGuiPayload* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "v", - "type": "const T" + "type": "ImGuiPayload*" } ], - "argsoriginal": "(const T& v)", - "call_args": "(v)", - "cimguiname": "ImVector_find_erase_unsorted", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPayload_IsDelivery", "defaults": {}, - "funcname": "find_erase_unsorted", - "location": "imgui:1896", - "ov_cimguiname": "ImVector_find_erase_unsorted", + "funcname": "IsDelivery", + "location": "imgui:2241", + "ov_cimguiname": "ImGuiPayload_IsDelivery", "ret": "bool", - "signature": "(const T)", - "stname": "ImVector", - "templated": true + "signature": "()const", + "stname": "ImGuiPayload" } ], - "ImVector_front": [ + "ImGuiPayload_IsPreview": [ { - "args": "(ImVector* self)", + "args": "(ImGuiPayload* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiPayload*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_front", + "cimguiname": "ImGuiPayload_IsPreview", "defaults": {}, - "funcname": "front", - "location": "imgui:1871", - "ov_cimguiname": "ImVector_front_Nil", - "ret": "T*", - "retref": "&", - "signature": "()", - "stname": "ImVector", - "templated": true - }, + "funcname": "IsPreview", + "location": "imgui:2240", + "ov_cimguiname": "ImGuiPayload_IsPreview", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiPayload" + } + ], + "ImGuiPayload_destroy": [ { - "args": "(ImVector* self)", + "args": "(ImGuiPayload* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiPayload*" } ], + "call_args": "(self)", + "cimguiname": "ImGuiPayload_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPayload_destroy", + "ret": "void", + "signature": "(ImGuiPayload*)", + "stname": "ImGuiPayload" + } + ], + "ImGuiPlatformIO_ImGuiPlatformIO": [ + { + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_front", + "cimguiname": "ImGuiPlatformIO_ImGuiPlatformIO", + "constructor": true, "defaults": {}, - "funcname": "front", - "location": "imgui:1872", - "ov_cimguiname": "ImVector_front__const", - "ret": "const T*", - "retref": "&", - "signature": "()const", - "stname": "ImVector", - "templated": true + "funcname": "ImGuiPlatformIO", + "location": "imgui:3182", + "ov_cimguiname": "ImGuiPlatformIO_ImGuiPlatformIO", + "signature": "()", + "stname": "ImGuiPlatformIO" } ], - "ImVector_index_from_ptr": [ + "ImGuiPlatformIO_destroy": [ { - "args": "(ImVector* self,const T* it)", + "args": "(ImGuiPlatformIO* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "it", - "type": "const T*" + "type": "ImGuiPlatformIO*" } ], - "argsoriginal": "(const T* it)", - "call_args": "(it)", - "cimguiname": "ImVector_index_from_ptr", - "defaults": {}, - "funcname": "index_from_ptr", - "location": "imgui:1897", - "ov_cimguiname": "ImVector_index_from_ptr", - "ret": "int", - "signature": "(const T*)const", - "stname": "ImVector", - "templated": true + "call_args": "(self)", + "cimguiname": "ImGuiPlatformIO_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPlatformIO_destroy", + "ret": "void", + "signature": "(ImGuiPlatformIO*)", + "stname": "ImGuiPlatformIO" } ], - "ImVector_insert": [ + "ImGuiPlatformImeData_ImGuiPlatformImeData": [ { - "args": "(ImVector* self,const T* it,const T v)", - "argsT": [ - { - "name": "self", - "type": "ImVector*" - }, - { - "name": "it", - "type": "const T*" - }, - { - "name": "v", - "type": "const T" - } - ], - "argsoriginal": "(const T* it,const T& v)", - "call_args": "(it,v)", - "cimguiname": "ImVector_insert", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "constructor": true, "defaults": {}, - "funcname": "insert", - "location": "imgui:1891", - "ov_cimguiname": "ImVector_insert", - "ret": "T*", - "signature": "(const T*,const T)", - "stname": "ImVector", - "templated": true + "funcname": "ImGuiPlatformImeData", + "location": "imgui:3202", + "ov_cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", + "signature": "()", + "stname": "ImGuiPlatformImeData" } ], - "ImVector_max_size": [ + "ImGuiPlatformImeData_destroy": [ { - "args": "(ImVector* self)", + "args": "(ImGuiPlatformImeData* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiPlatformImeData*" } ], + "call_args": "(self)", + "cimguiname": "ImGuiPlatformImeData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPlatformImeData_destroy", + "ret": "void", + "signature": "(ImGuiPlatformImeData*)", + "stname": "ImGuiPlatformImeData" + } + ], + "ImGuiPlatformMonitor_ImGuiPlatformMonitor": [ + { + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_max_size", + "cimguiname": "ImGuiPlatformMonitor_ImGuiPlatformMonitor", + "constructor": true, "defaults": {}, - "funcname": "max_size", - "location": "imgui:1862", - "ov_cimguiname": "ImVector_max_size", - "ret": "int", - "signature": "()const", - "stname": "ImVector", - "templated": true + "funcname": "ImGuiPlatformMonitor", + "location": "imgui:3192", + "ov_cimguiname": "ImGuiPlatformMonitor_ImGuiPlatformMonitor", + "signature": "()", + "stname": "ImGuiPlatformMonitor" } ], - "ImVector_pop_back": [ + "ImGuiPlatformMonitor_destroy": [ { - "args": "(ImVector* self)", + "args": "(ImGuiPlatformMonitor* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiPlatformMonitor*" } ], + "call_args": "(self)", + "cimguiname": "ImGuiPlatformMonitor_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiPlatformMonitor_destroy", + "ret": "void", + "signature": "(ImGuiPlatformMonitor*)", + "stname": "ImGuiPlatformMonitor" + } + ], + "ImGuiPopupData_ImGuiPopupData": [ + { + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_pop_back", + "cimguiname": "ImGuiPopupData_ImGuiPopupData", + "constructor": true, "defaults": {}, - "funcname": "pop_back", - "location": "imgui:1886", - "ov_cimguiname": "ImVector_pop_back", - "ret": "void", + "funcname": "ImGuiPopupData", + "location": "imgui_internal:1104", + "ov_cimguiname": "ImGuiPopupData_ImGuiPopupData", "signature": "()", - "stname": "ImVector", - "templated": true + "stname": "ImGuiPopupData" } ], - "ImVector_push_back": [ + "ImGuiPopupData_destroy": [ { - "args": "(ImVector* self,const T v)", + "args": "(ImGuiPopupData* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "v", - "type": "const T" + "type": "ImGuiPopupData*" } ], - "argsoriginal": "(const T& v)", - "call_args": "(v)", - "cimguiname": "ImVector_push_back", + "call_args": "(self)", + "cimguiname": "ImGuiPopupData_destroy", "defaults": {}, - "funcname": "push_back", - "location": "imgui:1885", - "ov_cimguiname": "ImVector_push_back", + "destructor": true, + "ov_cimguiname": "ImGuiPopupData_destroy", "ret": "void", - "signature": "(const T)", - "stname": "ImVector", - "templated": true + "signature": "(ImGuiPopupData*)", + "stname": "ImGuiPopupData" } ], - "ImVector_push_front": [ + "ImGuiPtrOrIndex_ImGuiPtrOrIndex": [ { - "args": "(ImVector* self,const T v)", + "args": "(void* ptr)", "argsT": [ { - "name": "self", - "type": "ImVector*" - }, + "name": "ptr", + "type": "void*" + } + ], + "argsoriginal": "(void* ptr)", + "call_args": "(ptr)", + "cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndex", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiPtrOrIndex", + "location": "imgui_internal:1220", + "ov_cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr", + "signature": "(void*)", + "stname": "ImGuiPtrOrIndex" + }, + { + "args": "(int index)", + "argsT": [ { - "name": "v", - "type": "const T" + "name": "index", + "type": "int" } ], - "argsoriginal": "(const T& v)", - "call_args": "(v)", - "cimguiname": "ImVector_push_front", + "argsoriginal": "(int index)", + "call_args": "(index)", + "cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndex", + "constructor": true, "defaults": {}, - "funcname": "push_front", - "location": "imgui:1887", - "ov_cimguiname": "ImVector_push_front", - "ret": "void", - "signature": "(const T)", - "stname": "ImVector", - "templated": true + "funcname": "ImGuiPtrOrIndex", + "location": "imgui_internal:1221", + "ov_cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int", + "signature": "(int)", + "stname": "ImGuiPtrOrIndex" } ], - "ImVector_reserve": [ + "ImGuiPtrOrIndex_destroy": [ { - "args": "(ImVector* self,int new_capacity)", + "args": "(ImGuiPtrOrIndex* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "new_capacity", - "type": "int" + "type": "ImGuiPtrOrIndex*" } ], - "argsoriginal": "(int new_capacity)", - "call_args": "(new_capacity)", - "cimguiname": "ImVector_reserve", + "call_args": "(self)", + "cimguiname": "ImGuiPtrOrIndex_destroy", "defaults": {}, - "funcname": "reserve", - "location": "imgui:1881", - "ov_cimguiname": "ImVector_reserve", + "destructor": true, + "ov_cimguiname": "ImGuiPtrOrIndex_destroy", "ret": "void", - "signature": "(int)", - "stname": "ImVector", - "templated": true + "signature": "(ImGuiPtrOrIndex*)", + "stname": "ImGuiPtrOrIndex" } ], - "ImVector_reserve_discard": [ + "ImGuiSettingsHandler_ImGuiSettingsHandler": [ { - "args": "(ImVector* self,int new_capacity)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiSettingsHandler_ImGuiSettingsHandler", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiSettingsHandler", + "location": "imgui_internal:1788", + "ov_cimguiname": "ImGuiSettingsHandler_ImGuiSettingsHandler", + "signature": "()", + "stname": "ImGuiSettingsHandler" + } + ], + "ImGuiSettingsHandler_destroy": [ + { + "args": "(ImGuiSettingsHandler* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "new_capacity", - "type": "int" + "type": "ImGuiSettingsHandler*" } ], - "argsoriginal": "(int new_capacity)", - "call_args": "(new_capacity)", - "cimguiname": "ImVector_reserve_discard", + "call_args": "(self)", + "cimguiname": "ImGuiSettingsHandler_destroy", "defaults": {}, - "funcname": "reserve_discard", - "location": "imgui:1882", - "ov_cimguiname": "ImVector_reserve_discard", + "destructor": true, + "ov_cimguiname": "ImGuiSettingsHandler_destroy", "ret": "void", - "signature": "(int)", - "stname": "ImVector", - "templated": true + "signature": "(ImGuiSettingsHandler*)", + "stname": "ImGuiSettingsHandler" } ], - "ImVector_resize": [ + "ImGuiStackLevelInfo_ImGuiStackLevelInfo": [ { - "args": "(ImVector* self,int new_size)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStackLevelInfo_ImGuiStackLevelInfo", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStackLevelInfo", + "location": "imgui_internal:1867", + "ov_cimguiname": "ImGuiStackLevelInfo_ImGuiStackLevelInfo", + "signature": "()", + "stname": "ImGuiStackLevelInfo" + } + ], + "ImGuiStackLevelInfo_destroy": [ + { + "args": "(ImGuiStackLevelInfo* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "new_size", - "type": "int" + "type": "ImGuiStackLevelInfo*" } ], - "argsoriginal": "(int new_size)", - "call_args": "(new_size)", - "cimguiname": "ImVector_resize", + "call_args": "(self)", + "cimguiname": "ImGuiStackLevelInfo_destroy", "defaults": {}, - "funcname": "resize", - "location": "imgui:1878", - "ov_cimguiname": "ImVector_resize_Nil", + "destructor": true, + "ov_cimguiname": "ImGuiStackLevelInfo_destroy", "ret": "void", - "signature": "(int)", - "stname": "ImVector", - "templated": true - }, + "signature": "(ImGuiStackLevelInfo*)", + "stname": "ImGuiStackLevelInfo" + } + ], + "ImGuiStackSizes_CompareWithCurrentState": [ { - "args": "(ImVector* self,int new_size,const T v)", + "args": "(ImGuiStackSizes* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "new_size", - "type": "int" - }, - { - "name": "v", - "type": "const T" + "type": "ImGuiStackSizes*" } ], - "argsoriginal": "(int new_size,const T& v)", - "call_args": "(new_size,v)", - "cimguiname": "ImVector_resize", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStackSizes_CompareWithCurrentState", "defaults": {}, - "funcname": "resize", - "location": "imgui:1879", - "ov_cimguiname": "ImVector_resize_T", + "funcname": "CompareWithCurrentState", + "location": "imgui_internal:1197", + "ov_cimguiname": "ImGuiStackSizes_CompareWithCurrentState", "ret": "void", - "signature": "(int,const T)", - "stname": "ImVector", - "templated": true + "signature": "()", + "stname": "ImGuiStackSizes" } ], - "ImVector_shrink": [ + "ImGuiStackSizes_ImGuiStackSizes": [ { - "args": "(ImVector* self,int new_size)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStackSizes_ImGuiStackSizes", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStackSizes", + "location": "imgui_internal:1195", + "ov_cimguiname": "ImGuiStackSizes_ImGuiStackSizes", + "signature": "()", + "stname": "ImGuiStackSizes" + } + ], + "ImGuiStackSizes_SetToCurrentState": [ + { + "args": "(ImGuiStackSizes* self)", "argsT": [ { "name": "self", - "type": "ImVector*" - }, - { - "name": "new_size", - "type": "int" + "type": "ImGuiStackSizes*" } ], - "argsoriginal": "(int new_size)", - "call_args": "(new_size)", - "cimguiname": "ImVector_shrink", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStackSizes_SetToCurrentState", "defaults": {}, - "funcname": "shrink", - "location": "imgui:1880", - "ov_cimguiname": "ImVector_shrink", + "funcname": "SetToCurrentState", + "location": "imgui_internal:1196", + "ov_cimguiname": "ImGuiStackSizes_SetToCurrentState", "ret": "void", - "signature": "(int)", - "stname": "ImVector", - "templated": true + "signature": "()", + "stname": "ImGuiStackSizes" } ], - "ImVector_size": [ + "ImGuiStackSizes_destroy": [ { - "args": "(ImVector* self)", + "args": "(ImGuiStackSizes* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiStackSizes*" } ], + "call_args": "(self)", + "cimguiname": "ImGuiStackSizes_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiStackSizes_destroy", + "ret": "void", + "signature": "(ImGuiStackSizes*)", + "stname": "ImGuiStackSizes" + } + ], + "ImGuiStackTool_ImGuiStackTool": [ + { + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImVector_size", + "cimguiname": "ImGuiStackTool_ImGuiStackTool", + "constructor": true, "defaults": {}, - "funcname": "size", - "location": "imgui:1860", - "ov_cimguiname": "ImVector_size", - "ret": "int", - "signature": "()const", - "stname": "ImVector", - "templated": true + "funcname": "ImGuiStackTool", + "location": "imgui_internal:1880", + "ov_cimguiname": "ImGuiStackTool_ImGuiStackTool", + "signature": "()", + "stname": "ImGuiStackTool" } ], - "ImVector_size_in_bytes": [ + "ImGuiStackTool_destroy": [ { - "args": "(ImVector* self)", + "args": "(ImGuiStackTool* self)", "argsT": [ { "name": "self", - "type": "ImVector*" + "type": "ImGuiStackTool*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImVector_size_in_bytes", + "call_args": "(self)", + "cimguiname": "ImGuiStackTool_destroy", "defaults": {}, - "funcname": "size_in_bytes", - "location": "imgui:1861", - "ov_cimguiname": "ImVector_size_in_bytes", - "ret": "int", - "signature": "()const", - "stname": "ImVector", - "templated": true + "destructor": true, + "ov_cimguiname": "ImGuiStackTool_destroy", + "ret": "void", + "signature": "(ImGuiStackTool*)", + "stname": "ImGuiStackTool" } ], - "ImVector_swap": [ + "ImGuiStoragePair_ImGuiStoragePair": [ { - "args": "(ImVector* self,ImVector_T * rhs)", + "args": "(ImGuiID _key,int _val_i)", "argsT": [ { - "name": "self", - "type": "ImVector*" + "name": "_key", + "type": "ImGuiID" }, { - "name": "rhs", - "reftoptr": true, - "type": "ImVector_T *" + "name": "_val_i", + "type": "int" } ], - "argsoriginal": "(ImVector& rhs)", - "call_args": "(*rhs)", - "cimguiname": "ImVector_swap", + "argsoriginal": "(ImGuiID _key,int _val_i)", + "call_args": "(_key,_val_i)", + "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", + "constructor": true, "defaults": {}, - "funcname": "swap", - "location": "imgui:1875", - "ov_cimguiname": "ImVector_swap", - "ret": "void", - "signature": "(ImVector_T *)", - "stname": "ImVector", - "templated": true - } - ], - "igAcceptDragDropPayload": [ + "funcname": "ImGuiStoragePair", + "location": "imgui:2351", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Int", + "signature": "(ImGuiID,int)", + "stname": "ImGuiStoragePair" + }, { - "args": "(const char* type,ImGuiDragDropFlags flags)", + "args": "(ImGuiID _key,float _val_f)", "argsT": [ { - "name": "type", - "type": "const char*" + "name": "_key", + "type": "ImGuiID" }, { - "name": "flags", - "type": "ImGuiDragDropFlags" + "name": "_val_f", + "type": "float" } ], - "argsoriginal": "(const char* type,ImGuiDragDropFlags flags=0)", - "call_args": "(type,flags)", - "cimguiname": "igAcceptDragDropPayload", - "defaults": { - "flags": "0" - }, - "funcname": "AcceptDragDropPayload", - "location": "imgui:841", - "namespace": "ImGui", - "ov_cimguiname": "igAcceptDragDropPayload", - "ret": "const ImGuiPayload*", - "signature": "(const char*,ImGuiDragDropFlags)", - "stname": "" + "argsoriginal": "(ImGuiID _key,float _val_f)", + "call_args": "(_key,_val_f)", + "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStoragePair", + "location": "imgui:2352", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Float", + "signature": "(ImGuiID,float)", + "stname": "ImGuiStoragePair" + }, + { + "args": "(ImGuiID _key,void* _val_p)", + "argsT": [ + { + "name": "_key", + "type": "ImGuiID" + }, + { + "name": "_val_p", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiID _key,void* _val_p)", + "call_args": "(_key,_val_p)", + "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStoragePair", + "location": "imgui:2353", + "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Ptr", + "signature": "(ImGuiID,void*)", + "stname": "ImGuiStoragePair" } ], - "igAlignTextToFramePadding": [ + "ImGuiStoragePair_destroy": [ { - "args": "()", - "argsT": [], + "args": "(ImGuiStoragePair* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStoragePair*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiStoragePair_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiStoragePair_destroy", + "ret": "void", + "signature": "(ImGuiStoragePair*)", + "stname": "ImGuiStoragePair" + } + ], + "ImGuiStorage_BuildSortByKey": [ + { + "args": "(ImGuiStorage* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igAlignTextToFramePadding", + "cimguiname": "ImGuiStorage_BuildSortByKey", "defaults": {}, - "funcname": "AlignTextToFramePadding", - "location": "imgui:465", - "namespace": "ImGui", - "ov_cimguiname": "igAlignTextToFramePadding", + "funcname": "BuildSortByKey", + "location": "imgui:2384", + "ov_cimguiname": "ImGuiStorage_BuildSortByKey", "ret": "void", "signature": "()", - "stname": "" + "stname": "ImGuiStorage" } ], - "igArrowButton": [ + "ImGuiStorage_Clear": [ { - "args": "(const char* str_id,ImGuiDir dir)", + "args": "(ImGuiStorage* self)", "argsT": [ { - "name": "str_id", - "type": "const char*" - }, - { - "name": "dir", - "type": "ImGuiDir" + "name": "self", + "type": "ImGuiStorage*" } ], - "argsoriginal": "(const char* str_id,ImGuiDir dir)", - "call_args": "(str_id,dir)", - "cimguiname": "igArrowButton", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStorage_Clear", "defaults": {}, - "funcname": "ArrowButton", - "location": "imgui:512", - "namespace": "ImGui", - "ov_cimguiname": "igArrowButton", - "ret": "bool", - "signature": "(const char*,ImGuiDir)", - "stname": "" + "funcname": "Clear", + "location": "imgui:2361", + "ov_cimguiname": "ImGuiStorage_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiStorage" } ], - "igBegin": [ + "ImGuiStorage_GetBool": [ { - "args": "(const char* name,bool* p_open,ImGuiWindowFlags flags)", + "args": "(ImGuiStorage* self,ImGuiID key,bool default_val)", "argsT": [ { - "name": "name", - "type": "const char*" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "p_open", - "type": "bool*" + "name": "key", + "type": "ImGuiID" }, { - "name": "flags", - "type": "ImGuiWindowFlags" + "name": "default_val", + "type": "bool" } ], - "argsoriginal": "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)", - "call_args": "(name,p_open,flags)", - "cimguiname": "igBegin", + "argsoriginal": "(ImGuiID key,bool default_val=false)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetBool", "defaults": { - "flags": "0", - "p_open": "NULL" + "default_val": "false" }, - "funcname": "Begin", - "location": "imgui:336", - "namespace": "ImGui", - "ov_cimguiname": "igBegin", + "funcname": "GetBool", + "location": "imgui:2364", + "ov_cimguiname": "ImGuiStorage_GetBool", "ret": "bool", - "signature": "(const char*,bool*,ImGuiWindowFlags)", - "stname": "" + "signature": "(ImGuiID,bool)const", + "stname": "ImGuiStorage" } ], - "igBeginChild": [ + "ImGuiStorage_GetBoolRef": [ { - "args": "(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "args": "(ImGuiStorage* self,ImGuiID key,bool default_val)", "argsT": [ { - "name": "str_id", - "type": "const char*" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "size", - "type": "const ImVec2" + "name": "key", + "type": "ImGuiID" }, { - "name": "border", + "name": "default_val", "type": "bool" - }, - { - "name": "flags", - "type": "ImGuiWindowFlags" } ], - "argsoriginal": "(const char* str_id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", - "call_args": "(str_id,size,border,flags)", - "cimguiname": "igBeginChild", + "argsoriginal": "(ImGuiID key,bool default_val=false)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetBoolRef", "defaults": { - "border": "false", - "flags": "0", - "size": "ImVec2(0,0)" + "default_val": "false" }, - "funcname": "BeginChild", - "location": "imgui:347", - "namespace": "ImGui", - "ov_cimguiname": "igBeginChild_Str", - "ret": "bool", - "signature": "(const char*,const ImVec2,bool,ImGuiWindowFlags)", - "stname": "" - }, + "funcname": "GetBoolRef", + "location": "imgui:2376", + "ov_cimguiname": "ImGuiStorage_GetBoolRef", + "ret": "bool*", + "signature": "(ImGuiID,bool)", + "stname": "ImGuiStorage" + } + ], + "ImGuiStorage_GetFloat": [ { - "args": "(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "args": "(ImGuiStorage* self,ImGuiID key,float default_val)", "argsT": [ { - "name": "id", - "type": "ImGuiID" - }, - { - "name": "size", - "type": "const ImVec2" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "border", - "type": "bool" + "name": "key", + "type": "ImGuiID" }, { - "name": "flags", - "type": "ImGuiWindowFlags" + "name": "default_val", + "type": "float" } ], - "argsoriginal": "(ImGuiID id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", - "call_args": "(id,size,border,flags)", - "cimguiname": "igBeginChild", + "argsoriginal": "(ImGuiID key,float default_val=0.0f)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetFloat", "defaults": { - "border": "false", - "flags": "0", - "size": "ImVec2(0,0)" + "default_val": "0.0f" }, - "funcname": "BeginChild", - "location": "imgui:348", - "namespace": "ImGui", - "ov_cimguiname": "igBeginChild_ID", - "ret": "bool", - "signature": "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)", - "stname": "" + "funcname": "GetFloat", + "location": "imgui:2366", + "ov_cimguiname": "ImGuiStorage_GetFloat", + "ret": "float", + "signature": "(ImGuiID,float)const", + "stname": "ImGuiStorage" } ], - "igBeginChildFrame": [ + "ImGuiStorage_GetFloatRef": [ { - "args": "(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags)", + "args": "(ImGuiStorage* self,ImGuiID key,float default_val)", "argsT": [ { - "name": "id", - "type": "ImGuiID" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "size", - "type": "const ImVec2" + "name": "key", + "type": "ImGuiID" }, { - "name": "flags", - "type": "ImGuiWindowFlags" + "name": "default_val", + "type": "float" } ], - "argsoriginal": "(ImGuiID id,const ImVec2& size,ImGuiWindowFlags flags=0)", - "call_args": "(id,size,flags)", - "cimguiname": "igBeginChildFrame", + "argsoriginal": "(ImGuiID key,float default_val=0.0f)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetFloatRef", "defaults": { - "flags": "0" + "default_val": "0.0f" }, - "funcname": "BeginChildFrame", - "location": "imgui:904", - "namespace": "ImGui", - "ov_cimguiname": "igBeginChildFrame", - "ret": "bool", - "signature": "(ImGuiID,const ImVec2,ImGuiWindowFlags)", - "stname": "" + "funcname": "GetFloatRef", + "location": "imgui:2377", + "ov_cimguiname": "ImGuiStorage_GetFloatRef", + "ret": "float*", + "signature": "(ImGuiID,float)", + "stname": "ImGuiStorage" } ], - "igBeginCombo": [ + "ImGuiStorage_GetInt": [ { - "args": "(const char* label,const char* preview_value,ImGuiComboFlags flags)", + "args": "(ImGuiStorage* self,ImGuiID key,int default_val)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "preview_value", - "type": "const char*" + "name": "key", + "type": "ImGuiID" }, { - "name": "flags", - "type": "ImGuiComboFlags" + "name": "default_val", + "type": "int" } ], - "argsoriginal": "(const char* label,const char* preview_value,ImGuiComboFlags flags=0)", - "call_args": "(label,preview_value,flags)", - "cimguiname": "igBeginCombo", + "argsoriginal": "(ImGuiID key,int default_val=0)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetInt", "defaults": { - "flags": "0" + "default_val": "0" }, - "funcname": "BeginCombo", - "location": "imgui:529", - "namespace": "ImGui", - "ov_cimguiname": "igBeginCombo", - "ret": "bool", - "signature": "(const char*,const char*,ImGuiComboFlags)", - "stname": "" + "funcname": "GetInt", + "location": "imgui:2362", + "ov_cimguiname": "ImGuiStorage_GetInt", + "ret": "int", + "signature": "(ImGuiID,int)const", + "stname": "ImGuiStorage" } ], - "igBeginDisabled": [ + "ImGuiStorage_GetIntRef": [ { - "args": "(bool disabled)", + "args": "(ImGuiStorage* self,ImGuiID key,int default_val)", "argsT": [ { - "name": "disabled", - "type": "bool" + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "int" } ], - "argsoriginal": "(bool disabled=true)", - "call_args": "(disabled)", - "cimguiname": "igBeginDisabled", + "argsoriginal": "(ImGuiID key,int default_val=0)", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetIntRef", "defaults": { - "disabled": "true" + "default_val": "0" }, - "funcname": "BeginDisabled", - "location": "imgui:849", - "namespace": "ImGui", - "ov_cimguiname": "igBeginDisabled", - "ret": "void", - "signature": "(bool)", - "stname": "" + "funcname": "GetIntRef", + "location": "imgui:2375", + "ov_cimguiname": "ImGuiStorage_GetIntRef", + "ret": "int*", + "signature": "(ImGuiID,int)", + "stname": "ImGuiStorage" } ], - "igBeginDragDropSource": [ + "ImGuiStorage_GetVoidPtr": [ { - "args": "(ImGuiDragDropFlags flags)", + "args": "(ImGuiStorage* self,ImGuiID key)", "argsT": [ { - "name": "flags", - "type": "ImGuiDragDropFlags" + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "key", + "type": "ImGuiID" } ], - "argsoriginal": "(ImGuiDragDropFlags flags=0)", - "call_args": "(flags)", - "cimguiname": "igBeginDragDropSource", - "defaults": { - "flags": "0" - }, - "funcname": "BeginDragDropSource", - "location": "imgui:837", - "namespace": "ImGui", - "ov_cimguiname": "igBeginDragDropSource", - "ret": "bool", - "signature": "(ImGuiDragDropFlags)", - "stname": "" + "argsoriginal": "(ImGuiID key)", + "call_args": "(key)", + "cimguiname": "ImGuiStorage_GetVoidPtr", + "defaults": {}, + "funcname": "GetVoidPtr", + "location": "imgui:2368", + "ov_cimguiname": "ImGuiStorage_GetVoidPtr", + "ret": "void*", + "signature": "(ImGuiID)const", + "stname": "ImGuiStorage" } ], - "igBeginDragDropTarget": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igBeginDragDropTarget", - "defaults": {}, - "funcname": "BeginDragDropTarget", - "location": "imgui:840", - "namespace": "ImGui", - "ov_cimguiname": "igBeginDragDropTarget", - "ret": "bool", - "signature": "()", - "stname": "" - } - ], - "igBeginGroup": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igBeginGroup", - "defaults": {}, - "funcname": "BeginGroup", - "location": "imgui:454", - "namespace": "ImGui", - "ov_cimguiname": "igBeginGroup", - "ret": "void", - "signature": "()", - "stname": "" - } - ], - "igBeginListBox": [ + "ImGuiStorage_GetVoidPtrRef": [ { - "args": "(const char* label,const ImVec2 size)", + "args": "(ImGuiStorage* self,ImGuiID key,void* default_val)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "size", - "type": "const ImVec2" + "name": "key", + "type": "ImGuiID" + }, + { + "name": "default_val", + "type": "void*" } ], - "argsoriginal": "(const char* label,const ImVec2& size=ImVec2(0,0))", - "call_args": "(label,size)", - "cimguiname": "igBeginListBox", + "argsoriginal": "(ImGuiID key,void* default_val=((void*)0))", + "call_args": "(key,default_val)", + "cimguiname": "ImGuiStorage_GetVoidPtrRef", "defaults": { - "size": "ImVec2(0,0)" + "default_val": "NULL" }, - "funcname": "BeginListBox", - "location": "imgui:641", - "namespace": "ImGui", - "ov_cimguiname": "igBeginListBox", - "ret": "bool", - "signature": "(const char*,const ImVec2)", - "stname": "" + "funcname": "GetVoidPtrRef", + "location": "imgui:2378", + "ov_cimguiname": "ImGuiStorage_GetVoidPtrRef", + "ret": "void**", + "signature": "(ImGuiID,void*)", + "stname": "ImGuiStorage" } ], - "igBeginMainMenuBar": [ + "ImGuiStorage_SetAllInt": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igBeginMainMenuBar", + "args": "(ImGuiStorage* self,int val)", + "argsT": [ + { + "name": "self", + "type": "ImGuiStorage*" + }, + { + "name": "val", + "type": "int" + } + ], + "argsoriginal": "(int val)", + "call_args": "(val)", + "cimguiname": "ImGuiStorage_SetAllInt", "defaults": {}, - "funcname": "BeginMainMenuBar", - "location": "imgui:667", - "namespace": "ImGui", - "ov_cimguiname": "igBeginMainMenuBar", - "ret": "bool", - "signature": "()", - "stname": "" + "funcname": "SetAllInt", + "location": "imgui:2381", + "ov_cimguiname": "ImGuiStorage_SetAllInt", + "ret": "void", + "signature": "(int)", + "stname": "ImGuiStorage" } ], - "igBeginMenu": [ + "ImGuiStorage_SetBool": [ { - "args": "(const char* label,bool enabled)", + "args": "(ImGuiStorage* self,ImGuiID key,bool val)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "enabled", + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", "type": "bool" } ], - "argsoriginal": "(const char* label,bool enabled=true)", - "call_args": "(label,enabled)", - "cimguiname": "igBeginMenu", - "defaults": { - "enabled": "true" - }, - "funcname": "BeginMenu", - "location": "imgui:669", - "namespace": "ImGui", - "ov_cimguiname": "igBeginMenu", - "ret": "bool", - "signature": "(const char*,bool)", - "stname": "" - } - ], - "igBeginMenuBar": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igBeginMenuBar", + "argsoriginal": "(ImGuiID key,bool val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetBool", "defaults": {}, - "funcname": "BeginMenuBar", - "location": "imgui:665", - "namespace": "ImGui", - "ov_cimguiname": "igBeginMenuBar", - "ret": "bool", - "signature": "()", - "stname": "" + "funcname": "SetBool", + "location": "imgui:2365", + "ov_cimguiname": "ImGuiStorage_SetBool", + "ret": "void", + "signature": "(ImGuiID,bool)", + "stname": "ImGuiStorage" } ], - "igBeginPopup": [ + "ImGuiStorage_SetFloat": [ { - "args": "(const char* str_id,ImGuiWindowFlags flags)", + "args": "(ImGuiStorage* self,ImGuiID key,float val)", "argsT": [ { - "name": "str_id", - "type": "const char*" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "flags", - "type": "ImGuiWindowFlags" + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "float" } ], - "argsoriginal": "(const char* str_id,ImGuiWindowFlags flags=0)", - "call_args": "(str_id,flags)", - "cimguiname": "igBeginPopup", - "defaults": { - "flags": "0" - }, - "funcname": "BeginPopup", - "location": "imgui:693", - "namespace": "ImGui", - "ov_cimguiname": "igBeginPopup", - "ret": "bool", - "signature": "(const char*,ImGuiWindowFlags)", - "stname": "" + "argsoriginal": "(ImGuiID key,float val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetFloat", + "defaults": {}, + "funcname": "SetFloat", + "location": "imgui:2367", + "ov_cimguiname": "ImGuiStorage_SetFloat", + "ret": "void", + "signature": "(ImGuiID,float)", + "stname": "ImGuiStorage" } ], - "igBeginPopupContextItem": [ + "ImGuiStorage_SetInt": [ { - "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "args": "(ImGuiStorage* self,ImGuiID key,int val)", "argsT": [ { - "name": "str_id", - "type": "const char*" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "popup_flags", - "type": "ImGuiPopupFlags" + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "int" } ], - "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", - "call_args": "(str_id,popup_flags)", - "cimguiname": "igBeginPopupContextItem", - "defaults": { - "popup_flags": "1", - "str_id": "NULL" - }, - "funcname": "BeginPopupContextItem", - "location": "imgui:715", - "namespace": "ImGui", - "ov_cimguiname": "igBeginPopupContextItem", - "ret": "bool", - "signature": "(const char*,ImGuiPopupFlags)", - "stname": "" + "argsoriginal": "(ImGuiID key,int val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetInt", + "defaults": {}, + "funcname": "SetInt", + "location": "imgui:2363", + "ov_cimguiname": "ImGuiStorage_SetInt", + "ret": "void", + "signature": "(ImGuiID,int)", + "stname": "ImGuiStorage" } ], - "igBeginPopupContextVoid": [ + "ImGuiStorage_SetVoidPtr": [ { - "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "args": "(ImGuiStorage* self,ImGuiID key,void* val)", "argsT": [ { - "name": "str_id", - "type": "const char*" + "name": "self", + "type": "ImGuiStorage*" }, { - "name": "popup_flags", - "type": "ImGuiPopupFlags" + "name": "key", + "type": "ImGuiID" + }, + { + "name": "val", + "type": "void*" } ], - "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", - "call_args": "(str_id,popup_flags)", - "cimguiname": "igBeginPopupContextVoid", - "defaults": { - "popup_flags": "1", - "str_id": "NULL" - }, - "funcname": "BeginPopupContextVoid", - "location": "imgui:717", - "namespace": "ImGui", - "ov_cimguiname": "igBeginPopupContextVoid", - "ret": "bool", - "signature": "(const char*,ImGuiPopupFlags)", - "stname": "" + "argsoriginal": "(ImGuiID key,void* val)", + "call_args": "(key,val)", + "cimguiname": "ImGuiStorage_SetVoidPtr", + "defaults": {}, + "funcname": "SetVoidPtr", + "location": "imgui:2369", + "ov_cimguiname": "ImGuiStorage_SetVoidPtr", + "ret": "void", + "signature": "(ImGuiID,void*)", + "stname": "ImGuiStorage" } ], - "igBeginPopupContextWindow": [ + "ImGuiStyleMod_ImGuiStyleMod": [ { - "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "args": "(ImGuiStyleVar idx,int v)", "argsT": [ { - "name": "str_id", - "type": "const char*" + "name": "idx", + "type": "ImGuiStyleVar" }, { - "name": "popup_flags", - "type": "ImGuiPopupFlags" + "name": "v", + "type": "int" } ], - "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", - "call_args": "(str_id,popup_flags)", - "cimguiname": "igBeginPopupContextWindow", - "defaults": { - "popup_flags": "1", - "str_id": "NULL" - }, - "funcname": "BeginPopupContextWindow", - "location": "imgui:716", - "namespace": "ImGui", - "ov_cimguiname": "igBeginPopupContextWindow", - "ret": "bool", - "signature": "(const char*,ImGuiPopupFlags)", - "stname": "" - } - ], - "igBeginPopupModal": [ + "argsoriginal": "(ImGuiStyleVar idx,int v)", + "call_args": "(idx,v)", + "cimguiname": "ImGuiStyleMod_ImGuiStyleMod", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStyleMod", + "location": "imgui_internal:1003", + "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleMod_Int", + "signature": "(ImGuiStyleVar,int)", + "stname": "ImGuiStyleMod" + }, { - "args": "(const char* name,bool* p_open,ImGuiWindowFlags flags)", + "args": "(ImGuiStyleVar idx,float v)", "argsT": [ { - "name": "name", - "type": "const char*" + "name": "idx", + "type": "ImGuiStyleVar" }, { - "name": "p_open", - "type": "bool*" + "name": "v", + "type": "float" + } + ], + "argsoriginal": "(ImGuiStyleVar idx,float v)", + "call_args": "(idx,v)", + "cimguiname": "ImGuiStyleMod_ImGuiStyleMod", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStyleMod", + "location": "imgui_internal:1004", + "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleMod_Float", + "signature": "(ImGuiStyleVar,float)", + "stname": "ImGuiStyleMod" + }, + { + "args": "(ImGuiStyleVar idx,ImVec2 v)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiStyleVar" }, { - "name": "flags", - "type": "ImGuiWindowFlags" + "name": "v", + "type": "ImVec2" } ], - "argsoriginal": "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)", - "call_args": "(name,p_open,flags)", - "cimguiname": "igBeginPopupModal", - "defaults": { - "flags": "0", - "p_open": "NULL" - }, - "funcname": "BeginPopupModal", - "location": "imgui:694", - "namespace": "ImGui", - "ov_cimguiname": "igBeginPopupModal", - "ret": "bool", - "signature": "(const char*,bool*,ImGuiWindowFlags)", - "stname": "" + "argsoriginal": "(ImGuiStyleVar idx,ImVec2 v)", + "call_args": "(idx,v)", + "cimguiname": "ImGuiStyleMod_ImGuiStyleMod", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStyleMod", + "location": "imgui_internal:1005", + "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleMod_Vec2", + "signature": "(ImGuiStyleVar,ImVec2)", + "stname": "ImGuiStyleMod" } ], - "igBeginTabBar": [ + "ImGuiStyleMod_destroy": [ { - "args": "(const char* str_id,ImGuiTabBarFlags flags)", + "args": "(ImGuiStyleMod* self)", "argsT": [ { - "name": "str_id", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiTabBarFlags" + "name": "self", + "type": "ImGuiStyleMod*" } ], - "argsoriginal": "(const char* str_id,ImGuiTabBarFlags flags=0)", - "call_args": "(str_id,flags)", - "cimguiname": "igBeginTabBar", - "defaults": { - "flags": "0" - }, - "funcname": "BeginTabBar", - "location": "imgui:795", - "namespace": "ImGui", - "ov_cimguiname": "igBeginTabBar", - "ret": "bool", - "signature": "(const char*,ImGuiTabBarFlags)", - "stname": "" + "call_args": "(self)", + "cimguiname": "ImGuiStyleMod_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiStyleMod_destroy", + "ret": "void", + "signature": "(ImGuiStyleMod*)", + "stname": "ImGuiStyleMod" } ], - "igBeginTabItem": [ + "ImGuiStyle_ImGuiStyle": [ { - "args": "(const char* label,bool* p_open,ImGuiTabItemFlags flags)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiStyle_ImGuiStyle", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiStyle", + "location": "imgui:1953", + "ov_cimguiname": "ImGuiStyle_ImGuiStyle", + "signature": "()", + "stname": "ImGuiStyle" + } + ], + "ImGuiStyle_ScaleAllSizes": [ + { + "args": "(ImGuiStyle* self,float scale_factor)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "p_open", - "type": "bool*" + "name": "self", + "type": "ImGuiStyle*" }, { - "name": "flags", - "type": "ImGuiTabItemFlags" + "name": "scale_factor", + "type": "float" } ], - "argsoriginal": "(const char* label,bool* p_open=((void*)0),ImGuiTabItemFlags flags=0)", - "call_args": "(label,p_open,flags)", - "cimguiname": "igBeginTabItem", - "defaults": { - "flags": "0", - "p_open": "NULL" - }, - "funcname": "BeginTabItem", - "location": "imgui:797", - "namespace": "ImGui", - "ov_cimguiname": "igBeginTabItem", - "ret": "bool", - "signature": "(const char*,bool*,ImGuiTabItemFlags)", - "stname": "" + "argsoriginal": "(float scale_factor)", + "call_args": "(scale_factor)", + "cimguiname": "ImGuiStyle_ScaleAllSizes", + "defaults": {}, + "funcname": "ScaleAllSizes", + "location": "imgui:1954", + "ov_cimguiname": "ImGuiStyle_ScaleAllSizes", + "ret": "void", + "signature": "(float)", + "stname": "ImGuiStyle" } ], - "igBeginTable": [ + "ImGuiStyle_destroy": [ { - "args": "(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width)", + "args": "(ImGuiStyle* self)", "argsT": [ { - "name": "str_id", - "type": "const char*" - }, + "name": "self", + "type": "ImGuiStyle*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiStyle_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiStyle_destroy", + "ret": "void", + "signature": "(ImGuiStyle*)", + "stname": "ImGuiStyle" + } + ], + "ImGuiTabBar_GetTabName": [ + { + "args": "(ImGuiTabBar* self,const ImGuiTabItem* tab)", + "argsT": [ { - "name": "column", - "type": "int" + "name": "self", + "type": "ImGuiTabBar*" }, { - "name": "flags", - "type": "ImGuiTableFlags" - }, + "name": "tab", + "type": "const ImGuiTabItem*" + } + ], + "argsoriginal": "(const ImGuiTabItem* tab)", + "call_args": "(tab)", + "cimguiname": "ImGuiTabBar_GetTabName", + "defaults": {}, + "funcname": "GetTabName", + "location": "imgui_internal:2648", + "ov_cimguiname": "ImGuiTabBar_GetTabName", + "ret": "const char*", + "signature": "(const ImGuiTabItem*)const", + "stname": "ImGuiTabBar" + } + ], + "ImGuiTabBar_GetTabOrder": [ + { + "args": "(ImGuiTabBar* self,const ImGuiTabItem* tab)", + "argsT": [ { - "name": "outer_size", - "type": "const ImVec2" + "name": "self", + "type": "ImGuiTabBar*" }, { - "name": "inner_width", - "type": "float" + "name": "tab", + "type": "const ImGuiTabItem*" } ], - "argsoriginal": "(const char* str_id,int column,ImGuiTableFlags flags=0,const ImVec2& outer_size=ImVec2(0.0f,0.0f),float inner_width=0.0f)", - "call_args": "(str_id,column,flags,outer_size,inner_width)", - "cimguiname": "igBeginTable", - "defaults": { - "flags": "0", - "inner_width": "0.0f", - "outer_size": "ImVec2(0.0f,0.0f)" - }, - "funcname": "BeginTable", - "location": "imgui:748", - "namespace": "ImGui", - "ov_cimguiname": "igBeginTable", - "ret": "bool", - "signature": "(const char*,int,ImGuiTableFlags,const ImVec2,float)", - "stname": "" + "argsoriginal": "(const ImGuiTabItem* tab)", + "call_args": "(tab)", + "cimguiname": "ImGuiTabBar_GetTabOrder", + "defaults": {}, + "funcname": "GetTabOrder", + "location": "imgui_internal:2647", + "ov_cimguiname": "ImGuiTabBar_GetTabOrder", + "ret": "int", + "signature": "(const ImGuiTabItem*)const", + "stname": "ImGuiTabBar" } ], - "igBeginTooltip": [ + "ImGuiTabBar_ImGuiTabBar": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igBeginTooltip", + "cimguiname": "ImGuiTabBar_ImGuiTabBar", + "constructor": true, "defaults": {}, - "funcname": "BeginTooltip", - "location": "imgui:676", - "namespace": "ImGui", - "ov_cimguiname": "igBeginTooltip", - "ret": "void", + "funcname": "ImGuiTabBar", + "location": "imgui_internal:2646", + "ov_cimguiname": "ImGuiTabBar_ImGuiTabBar", "signature": "()", - "stname": "" + "stname": "ImGuiTabBar" } ], - "igBullet": [ + "ImGuiTabBar_destroy": [ + { + "args": "(ImGuiTabBar* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTabBar*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTabBar_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTabBar_destroy", + "ret": "void", + "signature": "(ImGuiTabBar*)", + "stname": "ImGuiTabBar" + } + ], + "ImGuiTabItem_ImGuiTabItem": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igBullet", + "cimguiname": "ImGuiTabItem_ImGuiTabItem", + "constructor": true, "defaults": {}, - "funcname": "Bullet", - "location": "imgui:519", - "namespace": "ImGui", - "ov_cimguiname": "igBullet", - "ret": "void", + "funcname": "ImGuiTabItem", + "location": "imgui_internal:2608", + "ov_cimguiname": "ImGuiTabItem_ImGuiTabItem", "signature": "()", - "stname": "" + "stname": "ImGuiTabItem" } ], - "igBulletText": [ + "ImGuiTabItem_destroy": [ { - "args": "(const char* fmt,...)", + "args": "(ImGuiTabItem* self)", "argsT": [ { - "name": "fmt", - "type": "const char*" - }, - { - "name": "...", - "type": "..." + "name": "self", + "type": "ImGuiTabItem*" } ], - "argsoriginal": "(const char* fmt,...)", - "call_args": "(fmt,...)", - "cimguiname": "igBulletText", + "call_args": "(self)", + "cimguiname": "ImGuiTabItem_destroy", "defaults": {}, - "funcname": "BulletText", - "isvararg": "...)", - "location": "imgui:503", - "namespace": "ImGui", - "ov_cimguiname": "igBulletText", + "destructor": true, + "ov_cimguiname": "ImGuiTabItem_destroy", "ret": "void", - "signature": "(const char*,...)", - "stname": "" + "signature": "(ImGuiTabItem*)", + "stname": "ImGuiTabItem" } ], - "igBulletTextV": [ + "ImGuiTableColumnSettings_ImGuiTableColumnSettings": [ { - "args": "(const char* fmt,va_list args)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableColumnSettings_ImGuiTableColumnSettings", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTableColumnSettings", + "location": "imgui_internal:2894", + "ov_cimguiname": "ImGuiTableColumnSettings_ImGuiTableColumnSettings", + "signature": "()", + "stname": "ImGuiTableColumnSettings" + } + ], + "ImGuiTableColumnSettings_destroy": [ + { + "args": "(ImGuiTableColumnSettings* self)", "argsT": [ { - "name": "fmt", - "type": "const char*" - }, - { - "name": "args", - "type": "va_list" + "name": "self", + "type": "ImGuiTableColumnSettings*" } ], - "argsoriginal": "(const char* fmt,va_list args)", - "call_args": "(fmt,args)", - "cimguiname": "igBulletTextV", + "call_args": "(self)", + "cimguiname": "ImGuiTableColumnSettings_destroy", "defaults": {}, - "funcname": "BulletTextV", - "location": "imgui:504", - "namespace": "ImGui", - "ov_cimguiname": "igBulletTextV", + "destructor": true, + "ov_cimguiname": "ImGuiTableColumnSettings_destroy", "ret": "void", - "signature": "(const char*,va_list)", - "stname": "" + "signature": "(ImGuiTableColumnSettings*)", + "stname": "ImGuiTableColumnSettings" } ], - "igButton": [ + "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs": [ { - "args": "(const char* label,const ImVec2 size)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTableColumnSortSpecs", + "location": "imgui:2252", + "ov_cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", + "signature": "()", + "stname": "ImGuiTableColumnSortSpecs" + } + ], + "ImGuiTableColumnSortSpecs_destroy": [ + { + "args": "(ImGuiTableColumnSortSpecs* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "size", - "type": "const ImVec2" + "name": "self", + "type": "ImGuiTableColumnSortSpecs*" } ], - "argsoriginal": "(const char* label,const ImVec2& size=ImVec2(0,0))", - "call_args": "(label,size)", - "cimguiname": "igButton", - "defaults": { - "size": "ImVec2(0,0)" - }, - "funcname": "Button", - "location": "imgui:509", - "namespace": "ImGui", - "ov_cimguiname": "igButton", - "ret": "bool", - "signature": "(const char*,const ImVec2)", - "stname": "" + "call_args": "(self)", + "cimguiname": "ImGuiTableColumnSortSpecs_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableColumnSortSpecs_destroy", + "ret": "void", + "signature": "(ImGuiTableColumnSortSpecs*)", + "stname": "ImGuiTableColumnSortSpecs" } ], - "igCalcItemWidth": [ + "ImGuiTableColumn_ImGuiTableColumn": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igCalcItemWidth", + "cimguiname": "ImGuiTableColumn_ImGuiTableColumn", + "constructor": true, "defaults": {}, - "funcname": "CalcItemWidth", - "location": "imgui:426", - "namespace": "ImGui", - "ov_cimguiname": "igCalcItemWidth", - "ret": "float", + "funcname": "ImGuiTableColumn", + "location": "imgui_internal:2717", + "ov_cimguiname": "ImGuiTableColumn_ImGuiTableColumn", "signature": "()", - "stname": "" + "stname": "ImGuiTableColumn" } ], - "igCalcTextSize": [ + "ImGuiTableColumn_destroy": [ { - "args": "(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)", + "args": "(ImGuiTableColumn* self)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" - }, - { - "name": "text", - "type": "const char*" - }, - { - "name": "text_end", - "type": "const char*" - }, - { - "name": "hide_text_after_double_hash", - "type": "bool" - }, - { - "name": "wrap_width", - "type": "float" + "name": "self", + "type": "ImGuiTableColumn*" } ], - "argsoriginal": "(const char* text,const char* text_end=((void*)0),bool hide_text_after_double_hash=false,float wrap_width=-1.0f)", - "call_args": "(text,text_end,hide_text_after_double_hash,wrap_width)", - "cimguiname": "igCalcTextSize", - "defaults": { - "hide_text_after_double_hash": "false", - "text_end": "NULL", - "wrap_width": "-1.0f" - }, - "funcname": "CalcTextSize", - "location": "imgui:908", - "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igCalcTextSize", + "call_args": "(self)", + "cimguiname": "ImGuiTableColumn_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableColumn_destroy", "ret": "void", - "signature": "(const char*,const char*,bool,float)", - "stname": "" + "signature": "(ImGuiTableColumn*)", + "stname": "ImGuiTableColumn" } ], - "igCheckbox": [ + "ImGuiTableInstanceData_ImGuiTableInstanceData": [ { - "args": "(const char* label,bool* v)", - "argsT": [ - { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "bool*" - } - ], - "argsoriginal": "(const char* label,bool* v)", - "call_args": "(label,v)", - "cimguiname": "igCheckbox", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableInstanceData_ImGuiTableInstanceData", + "constructor": true, "defaults": {}, - "funcname": "Checkbox", - "location": "imgui:513", - "namespace": "ImGui", - "ov_cimguiname": "igCheckbox", - "ret": "bool", - "signature": "(const char*,bool*)", - "stname": "" + "funcname": "ImGuiTableInstanceData", + "location": "imgui_internal:2744", + "ov_cimguiname": "ImGuiTableInstanceData_ImGuiTableInstanceData", + "signature": "()", + "stname": "ImGuiTableInstanceData" } ], - "igCheckboxFlags": [ + "ImGuiTableInstanceData_destroy": [ { - "args": "(const char* label,int* flags,int flags_value)", + "args": "(ImGuiTableInstanceData* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "flags", - "type": "int*" - }, - { - "name": "flags_value", - "type": "int" + "name": "self", + "type": "ImGuiTableInstanceData*" } ], - "argsoriginal": "(const char* label,int* flags,int flags_value)", - "call_args": "(label,flags,flags_value)", - "cimguiname": "igCheckboxFlags", + "call_args": "(self)", + "cimguiname": "ImGuiTableInstanceData_destroy", "defaults": {}, - "funcname": "CheckboxFlags", - "location": "imgui:514", - "namespace": "ImGui", - "ov_cimguiname": "igCheckboxFlags_IntPtr", - "ret": "bool", - "signature": "(const char*,int*,int)", - "stname": "" - }, + "destructor": true, + "ov_cimguiname": "ImGuiTableInstanceData_destroy", + "ret": "void", + "signature": "(ImGuiTableInstanceData*)", + "stname": "ImGuiTableInstanceData" + } + ], + "ImGuiTableSettings_GetColumnSettings": [ { - "args": "(const char* label,unsigned int* flags,unsigned int flags_value)", + "args": "(ImGuiTableSettings* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "flags", - "type": "unsigned int*" - }, - { - "name": "flags_value", - "type": "unsigned int" + "name": "self", + "type": "ImGuiTableSettings*" } ], - "argsoriginal": "(const char* label,unsigned int* flags,unsigned int flags_value)", - "call_args": "(label,flags,flags_value)", - "cimguiname": "igCheckboxFlags", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableSettings_GetColumnSettings", "defaults": {}, - "funcname": "CheckboxFlags", - "location": "imgui:515", - "namespace": "ImGui", - "ov_cimguiname": "igCheckboxFlags_UintPtr", - "ret": "bool", - "signature": "(const char*,unsigned int*,unsigned int)", - "stname": "" + "funcname": "GetColumnSettings", + "location": "imgui_internal:2917", + "ov_cimguiname": "ImGuiTableSettings_GetColumnSettings", + "ret": "ImGuiTableColumnSettings*", + "signature": "()", + "stname": "ImGuiTableSettings" } ], - "igCloseCurrentPopup": [ + "ImGuiTableSettings_ImGuiTableSettings": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igCloseCurrentPopup", + "cimguiname": "ImGuiTableSettings_ImGuiTableSettings", + "constructor": true, "defaults": {}, - "funcname": "CloseCurrentPopup", - "location": "imgui:708", - "namespace": "ImGui", - "ov_cimguiname": "igCloseCurrentPopup", - "ret": "void", + "funcname": "ImGuiTableSettings", + "location": "imgui_internal:2916", + "ov_cimguiname": "ImGuiTableSettings_ImGuiTableSettings", "signature": "()", - "stname": "" + "stname": "ImGuiTableSettings" } ], - "igCollapsingHeader": [ + "ImGuiTableSettings_destroy": [ { - "args": "(const char* label,ImGuiTreeNodeFlags flags)", + "args": "(ImGuiTableSettings* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiTreeNodeFlags" + "name": "self", + "type": "ImGuiTableSettings*" } ], - "argsoriginal": "(const char* label,ImGuiTreeNodeFlags flags=0)", - "call_args": "(label,flags)", - "cimguiname": "igCollapsingHeader", - "defaults": { - "flags": "0" - }, - "funcname": "CollapsingHeader", - "location": "imgui:625", - "namespace": "ImGui", - "ov_cimguiname": "igCollapsingHeader_TreeNodeFlags", - "ret": "bool", - "signature": "(const char*,ImGuiTreeNodeFlags)", - "stname": "" - }, + "call_args": "(self)", + "cimguiname": "ImGuiTableSettings_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableSettings_destroy", + "ret": "void", + "signature": "(ImGuiTableSettings*)", + "stname": "ImGuiTableSettings" + } + ], + "ImGuiTableSortSpecs_ImGuiTableSortSpecs": [ { - "args": "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTableSortSpecs", + "location": "imgui:2265", + "ov_cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", + "signature": "()", + "stname": "ImGuiTableSortSpecs" + } + ], + "ImGuiTableSortSpecs_destroy": [ + { + "args": "(ImGuiTableSortSpecs* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "p_visible", - "type": "bool*" - }, - { - "name": "flags", - "type": "ImGuiTreeNodeFlags" + "name": "self", + "type": "ImGuiTableSortSpecs*" } ], - "argsoriginal": "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags=0)", - "call_args": "(label,p_visible,flags)", - "cimguiname": "igCollapsingHeader", - "defaults": { - "flags": "0" - }, - "funcname": "CollapsingHeader", - "location": "imgui:626", - "namespace": "ImGui", - "ov_cimguiname": "igCollapsingHeader_BoolPtr", - "ret": "bool", - "signature": "(const char*,bool*,ImGuiTreeNodeFlags)", - "stname": "" + "call_args": "(self)", + "cimguiname": "ImGuiTableSortSpecs_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableSortSpecs_destroy", + "ret": "void", + "signature": "(ImGuiTableSortSpecs*)", + "stname": "ImGuiTableSortSpecs" } ], - "igColorButton": [ + "ImGuiTableTempData_ImGuiTableTempData": [ { - "args": "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTableTempData_ImGuiTableTempData", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTableTempData", + "location": "imgui_internal:2879", + "ov_cimguiname": "ImGuiTableTempData_ImGuiTableTempData", + "signature": "()", + "stname": "ImGuiTableTempData" + } + ], + "ImGuiTableTempData_destroy": [ + { + "args": "(ImGuiTableTempData* self)", "argsT": [ { - "name": "desc_id", - "type": "const char*" - }, - { - "name": "col", - "type": "const ImVec4" - }, - { - "name": "flags", - "type": "ImGuiColorEditFlags" - }, - { - "name": "size", - "type": "const ImVec2" + "name": "self", + "type": "ImGuiTableTempData*" } ], - "argsoriginal": "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))", - "call_args": "(desc_id,col,flags,size)", - "cimguiname": "igColorButton", - "defaults": { - "flags": "0", - "size": "ImVec2(0,0)" - }, - "funcname": "ColorButton", - "location": "imgui:606", - "namespace": "ImGui", - "ov_cimguiname": "igColorButton", - "ret": "bool", - "signature": "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)", - "stname": "" + "call_args": "(self)", + "cimguiname": "ImGuiTableTempData_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTableTempData_destroy", + "ret": "void", + "signature": "(ImGuiTableTempData*)", + "stname": "ImGuiTableTempData" } ], - "igColorConvertFloat4ToU32": [ + "ImGuiTable_ImGuiTable": [ { - "args": "(const ImVec4 in)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTable_ImGuiTable", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTable", + "location": "imgui_internal:2855", + "ov_cimguiname": "ImGuiTable_ImGuiTable", + "signature": "()", + "stname": "ImGuiTable" + } + ], + "ImGuiTable_destroy": [ + { + "args": "(ImGuiTable* self)", "argsT": [ { - "name": "in", - "type": "const ImVec4" + "name": "self", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const ImVec4& in)", - "call_args": "(in)", - "cimguiname": "igColorConvertFloat4ToU32", + "call_args": "(self)", + "cimguiname": "ImGuiTable_destroy", "defaults": {}, - "funcname": "ColorConvertFloat4ToU32", - "location": "imgui:912", - "namespace": "ImGui", - "ov_cimguiname": "igColorConvertFloat4ToU32", - "ret": "ImU32", - "signature": "(const ImVec4)", - "stname": "" + "destructor": true, + "location": "imgui_internal:2856", + "ov_cimguiname": "ImGuiTable_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImGuiTable*)", + "stname": "ImGuiTable" } ], - "igColorConvertHSVtoRGB": [ + "ImGuiTextBuffer_ImGuiTextBuffer": [ { - "args": "(float h,float s,float v,float* out_r,float* out_g,float* out_b)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTextBuffer", + "location": "imgui:2322", + "ov_cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", + "signature": "()", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_append": [ + { + "args": "(ImGuiTextBuffer* self,const char* str,const char* str_end)", "argsT": [ { - "name": "h", - "type": "float" + "name": "self", + "type": "ImGuiTextBuffer*" }, { - "name": "s", - "type": "float" + "name": "str", + "type": "const char*" }, { - "name": "v", - "type": "float" - }, + "name": "str_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str,const char* str_end=((void*)0))", + "call_args": "(str,str_end)", + "cimguiname": "ImGuiTextBuffer_append", + "defaults": { + "str_end": "NULL" + }, + "funcname": "append", + "location": "imgui:2331", + "ov_cimguiname": "ImGuiTextBuffer_append", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_appendf": [ + { + "args": "(ImGuiTextBuffer* self,const char* fmt,...)", + "argsT": [ { - "name": "out_r", - "reftoptr": true, - "type": "float*" + "name": "self", + "type": "ImGuiTextBuffer*" }, { - "name": "out_g", - "reftoptr": true, - "type": "float*" + "name": "fmt", + "type": "const char*" }, { - "name": "out_b", - "reftoptr": true, - "type": "float*" + "name": "...", + "type": "..." } ], - "argsoriginal": "(float h,float s,float v,float& out_r,float& out_g,float& out_b)", - "call_args": "(h,s,v,*out_r,*out_g,*out_b)", - "cimguiname": "igColorConvertHSVtoRGB", + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "ImGuiTextBuffer_appendf", "defaults": {}, - "funcname": "ColorConvertHSVtoRGB", - "location": "imgui:914", - "namespace": "ImGui", - "ov_cimguiname": "igColorConvertHSVtoRGB", + "funcname": "appendf", + "isvararg": "...)", + "location": "imgui:2332", + "manual": true, + "ov_cimguiname": "ImGuiTextBuffer_appendf", "ret": "void", - "signature": "(float,float,float,float*,float*,float*)", - "stname": "" + "signature": "(const char*,...)", + "stname": "ImGuiTextBuffer" } ], - "igColorConvertRGBtoHSV": [ + "ImGuiTextBuffer_appendfv": [ { - "args": "(float r,float g,float b,float* out_h,float* out_s,float* out_v)", + "args": "(ImGuiTextBuffer* self,const char* fmt,va_list args)", "argsT": [ { - "name": "r", - "type": "float" - }, - { - "name": "g", - "type": "float" - }, - { - "name": "b", - "type": "float" - }, - { - "name": "out_h", - "reftoptr": true, - "type": "float*" + "name": "self", + "type": "ImGuiTextBuffer*" }, { - "name": "out_s", - "reftoptr": true, - "type": "float*" + "name": "fmt", + "type": "const char*" }, { - "name": "out_v", - "reftoptr": true, - "type": "float*" + "name": "args", + "type": "va_list" } ], - "argsoriginal": "(float r,float g,float b,float& out_h,float& out_s,float& out_v)", - "call_args": "(r,g,b,*out_h,*out_s,*out_v)", - "cimguiname": "igColorConvertRGBtoHSV", + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "ImGuiTextBuffer_appendfv", "defaults": {}, - "funcname": "ColorConvertRGBtoHSV", - "location": "imgui:913", - "namespace": "ImGui", - "ov_cimguiname": "igColorConvertRGBtoHSV", + "funcname": "appendfv", + "location": "imgui:2333", + "ov_cimguiname": "ImGuiTextBuffer_appendfv", "ret": "void", - "signature": "(float,float,float,float*,float*,float*)", - "stname": "" + "signature": "(const char*,va_list)", + "stname": "ImGuiTextBuffer" } ], - "igColorConvertU32ToFloat4": [ + "ImGuiTextBuffer_begin": [ { - "args": "(ImVec4 *pOut,ImU32 in)", + "args": "(ImGuiTextBuffer* self)", "argsT": [ { - "name": "pOut", - "type": "ImVec4*" - }, - { - "name": "in", - "type": "ImU32" + "name": "self", + "type": "ImGuiTextBuffer*" } ], - "argsoriginal": "(ImU32 in)", - "call_args": "(in)", - "cimguiname": "igColorConvertU32ToFloat4", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_begin", "defaults": {}, - "funcname": "ColorConvertU32ToFloat4", - "location": "imgui:911", - "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igColorConvertU32ToFloat4", - "ret": "void", - "signature": "(ImU32)", - "stname": "" + "funcname": "begin", + "location": "imgui:2324", + "ov_cimguiname": "ImGuiTextBuffer_begin", + "ret": "const char*", + "signature": "()const", + "stname": "ImGuiTextBuffer" } ], - "igColorEdit3": [ + "ImGuiTextBuffer_c_str": [ { - "args": "(const char* label,float col[3],ImGuiColorEditFlags flags)", + "args": "(ImGuiTextBuffer* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "col", - "type": "float[3]" - }, - { - "name": "flags", - "type": "ImGuiColorEditFlags" + "name": "self", + "type": "ImGuiTextBuffer*" } ], - "argsoriginal": "(const char* label,float col[3],ImGuiColorEditFlags flags=0)", - "call_args": "(label,col,flags)", - "cimguiname": "igColorEdit3", - "defaults": { - "flags": "0" - }, - "funcname": "ColorEdit3", - "location": "imgui:602", - "namespace": "ImGui", - "ov_cimguiname": "igColorEdit3", - "ret": "bool", - "signature": "(const char*,float[3],ImGuiColorEditFlags)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_c_str", + "defaults": {}, + "funcname": "c_str", + "location": "imgui:2330", + "ov_cimguiname": "ImGuiTextBuffer_c_str", + "ret": "const char*", + "signature": "()const", + "stname": "ImGuiTextBuffer" } ], - "igColorEdit4": [ + "ImGuiTextBuffer_clear": [ { - "args": "(const char* label,float col[4],ImGuiColorEditFlags flags)", + "args": "(ImGuiTextBuffer* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "col", - "type": "float[4]" - }, - { - "name": "flags", - "type": "ImGuiColorEditFlags" + "name": "self", + "type": "ImGuiTextBuffer*" } ], - "argsoriginal": "(const char* label,float col[4],ImGuiColorEditFlags flags=0)", - "call_args": "(label,col,flags)", - "cimguiname": "igColorEdit4", - "defaults": { - "flags": "0" - }, - "funcname": "ColorEdit4", - "location": "imgui:603", - "namespace": "ImGui", - "ov_cimguiname": "igColorEdit4", - "ret": "bool", - "signature": "(const char*,float[4],ImGuiColorEditFlags)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_clear", + "defaults": {}, + "funcname": "clear", + "location": "imgui:2328", + "ov_cimguiname": "ImGuiTextBuffer_clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextBuffer" } ], - "igColorPicker3": [ + "ImGuiTextBuffer_destroy": [ { - "args": "(const char* label,float col[3],ImGuiColorEditFlags flags)", + "args": "(ImGuiTextBuffer* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "col", - "type": "float[3]" - }, - { - "name": "flags", - "type": "ImGuiColorEditFlags" + "name": "self", + "type": "ImGuiTextBuffer*" } ], - "argsoriginal": "(const char* label,float col[3],ImGuiColorEditFlags flags=0)", - "call_args": "(label,col,flags)", - "cimguiname": "igColorPicker3", - "defaults": { - "flags": "0" - }, - "funcname": "ColorPicker3", - "location": "imgui:604", - "namespace": "ImGui", - "ov_cimguiname": "igColorPicker3", - "ret": "bool", - "signature": "(const char*,float[3],ImGuiColorEditFlags)", - "stname": "" + "call_args": "(self)", + "cimguiname": "ImGuiTextBuffer_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTextBuffer_destroy", + "ret": "void", + "signature": "(ImGuiTextBuffer*)", + "stname": "ImGuiTextBuffer" } ], - "igColorPicker4": [ + "ImGuiTextBuffer_empty": [ { - "args": "(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col)", + "args": "(ImGuiTextBuffer* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "col", - "type": "float[4]" - }, - { - "name": "flags", - "type": "ImGuiColorEditFlags" - }, - { - "name": "ref_col", - "type": "const float*" + "name": "self", + "type": "ImGuiTextBuffer*" } ], - "argsoriginal": "(const char* label,float col[4],ImGuiColorEditFlags flags=0,const float* ref_col=((void*)0))", - "call_args": "(label,col,flags,ref_col)", - "cimguiname": "igColorPicker4", - "defaults": { - "flags": "0", - "ref_col": "NULL" - }, - "funcname": "ColorPicker4", - "location": "imgui:605", - "namespace": "ImGui", - "ov_cimguiname": "igColorPicker4", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_empty", + "defaults": {}, + "funcname": "empty", + "location": "imgui:2327", + "ov_cimguiname": "ImGuiTextBuffer_empty", "ret": "bool", - "signature": "(const char*,float[4],ImGuiColorEditFlags,const float*)", - "stname": "" + "signature": "()const", + "stname": "ImGuiTextBuffer" } ], - "igColumns": [ + "ImGuiTextBuffer_end": [ { - "args": "(int count,const char* id,bool border)", + "args": "(ImGuiTextBuffer* self)", "argsT": [ { - "name": "count", - "type": "int" - }, - { - "name": "id", - "type": "const char*" - }, - { - "name": "border", - "type": "bool" + "name": "self", + "type": "ImGuiTextBuffer*" } ], - "argsoriginal": "(int count=1,const char* id=((void*)0),bool border=true)", - "call_args": "(count,id,border)", - "cimguiname": "igColumns", - "defaults": { - "border": "true", - "count": "1", - "id": "NULL" - }, - "funcname": "Columns", - "location": "imgui:784", - "namespace": "ImGui", - "ov_cimguiname": "igColumns", - "ret": "void", - "signature": "(int,const char*,bool)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_end", + "defaults": {}, + "funcname": "end", + "location": "imgui:2325", + "ov_cimguiname": "ImGuiTextBuffer_end", + "ret": "const char*", + "signature": "()const", + "stname": "ImGuiTextBuffer" } ], - "igCombo": [ + "ImGuiTextBuffer_reserve": [ { - "args": "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items)", + "args": "(ImGuiTextBuffer* self,int capacity)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "current_item", - "type": "int*" - }, - { - "name": "items", - "type": "const char* const[]" - }, - { - "name": "items_count", - "type": "int" + "name": "self", + "type": "ImGuiTextBuffer*" }, { - "name": "popup_max_height_in_items", + "name": "capacity", "type": "int" } ], - "argsoriginal": "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items=-1)", - "call_args": "(label,current_item,items,items_count,popup_max_height_in_items)", - "cimguiname": "igCombo", - "defaults": { - "popup_max_height_in_items": "-1" - }, - "funcname": "Combo", - "location": "imgui:531", - "namespace": "ImGui", - "ov_cimguiname": "igCombo_Str_arr", - "ret": "bool", - "signature": "(const char*,int*,const char* const[],int,int)", - "stname": "" - }, + "argsoriginal": "(int capacity)", + "call_args": "(capacity)", + "cimguiname": "ImGuiTextBuffer_reserve", + "defaults": {}, + "funcname": "reserve", + "location": "imgui:2329", + "ov_cimguiname": "ImGuiTextBuffer_reserve", + "ret": "void", + "signature": "(int)", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextBuffer_size": [ { - "args": "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items)", + "args": "(ImGuiTextBuffer* self)", "argsT": [ { - "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" + "name": "self", + "type": "ImGuiTextBuffer*" } ], - "argsoriginal": "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items=-1)", - "call_args": "(label,current_item,items_separated_by_zeros,popup_max_height_in_items)", - "cimguiname": "igCombo", - "defaults": { - "popup_max_height_in_items": "-1" - }, - "funcname": "Combo", - "location": "imgui:532", - "namespace": "ImGui", - "ov_cimguiname": "igCombo_Str", - "ret": "bool", - "signature": "(const char*,int*,const char*,int)", - "stname": "" - }, + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextBuffer_size", + "defaults": {}, + "funcname": "size", + "location": "imgui:2326", + "ov_cimguiname": "ImGuiTextBuffer_size", + "ret": "int", + "signature": "()const", + "stname": "ImGuiTextBuffer" + } + ], + "ImGuiTextFilter_Build": [ { - "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items)", + "args": "(ImGuiTextFilter* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "current_item", - "type": "int*" - }, - { - "name": "items_getter", - "ret": "bool", - "signature": "(void* data,int idx,const char** out_text)", - "type": "bool(*)(void* data,int idx,const char** out_text)" - }, - { - "name": "data", - "type": "void*" - }, - { - "name": "items_count", - "type": "int" - }, - { - "name": "popup_max_height_in_items", - "type": "int" + "name": "self", + "type": "ImGuiTextFilter*" } ], - "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items=-1)", - "call_args": "(label,current_item,items_getter,data,items_count,popup_max_height_in_items)", - "cimguiname": "igCombo", - "defaults": { - "popup_max_height_in_items": "-1" - }, - "funcname": "Combo", - "location": "imgui:533", - "namespace": "ImGui", - "ov_cimguiname": "igCombo_FnBoolPtr", - "ret": "bool", - "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextFilter_Build", + "defaults": {}, + "funcname": "Build", + "location": "imgui:2295", + "ov_cimguiname": "ImGuiTextFilter_Build", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextFilter" } ], - "igCreateContext": [ + "ImGuiTextFilter_Clear": [ { - "args": "(ImFontAtlas* shared_font_atlas)", + "args": "(ImGuiTextFilter* self)", "argsT": [ { - "name": "shared_font_atlas", - "type": "ImFontAtlas*" + "name": "self", + "type": "ImGuiTextFilter*" } ], - "argsoriginal": "(ImFontAtlas* shared_font_atlas=((void*)0))", - "call_args": "(shared_font_atlas)", - "cimguiname": "igCreateContext", - "defaults": { - "shared_font_atlas": "NULL" - }, - "funcname": "CreateContext", - "location": "imgui:294", - "namespace": "ImGui", - "ov_cimguiname": "igCreateContext", - "ret": "ImGuiContext*", - "signature": "(ImFontAtlas*)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextFilter_Clear", + "defaults": {}, + "funcname": "Clear", + "location": "imgui:2296", + "ov_cimguiname": "ImGuiTextFilter_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextFilter" } ], - "igDebugCheckVersionAndDataLayout": [ + "ImGuiTextFilter_Draw": [ { - "args": "(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)", + "args": "(ImGuiTextFilter* self,const char* label,float width)", "argsT": [ { - "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": "self", + "type": "ImGuiTextFilter*" }, { - "name": "sz_drawvert", - "type": "size_t" + "name": "label", + "type": "const char*" }, { - "name": "sz_drawidx", - "type": "size_t" + "name": "width", + "type": "float" } ], - "argsoriginal": "(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)", - "call_args": "(version_str,sz_io,sz_style,sz_vec2,sz_vec4,sz_drawvert,sz_drawidx)", - "cimguiname": "igDebugCheckVersionAndDataLayout", - "defaults": {}, - "funcname": "DebugCheckVersionAndDataLayout", - "location": "imgui:966", - "namespace": "ImGui", - "ov_cimguiname": "igDebugCheckVersionAndDataLayout", + "argsoriginal": "(const char* label=\"Filter(inc,-exc)\",float width=0.0f)", + "call_args": "(label,width)", + "cimguiname": "ImGuiTextFilter_Draw", + "defaults": { + "label": "\"Filter(inc,-exc)\"", + "width": "0.0f" + }, + "funcname": "Draw", + "location": "imgui:2293", + "ov_cimguiname": "ImGuiTextFilter_Draw", "ret": "bool", - "signature": "(const char*,size_t,size_t,size_t,size_t,size_t,size_t)", - "stname": "" + "signature": "(const char*,float)", + "stname": "ImGuiTextFilter" } ], - "igDebugTextEncoding": [ + "ImGuiTextFilter_ImGuiTextFilter": [ { - "args": "(const char* text)", + "args": "(const char* default_filter)", "argsT": [ { - "name": "text", + "name": "default_filter", "type": "const char*" } ], - "argsoriginal": "(const char* text)", - "call_args": "(text)", - "cimguiname": "igDebugTextEncoding", - "defaults": {}, - "funcname": "DebugTextEncoding", - "location": "imgui:965", - "namespace": "ImGui", - "ov_cimguiname": "igDebugTextEncoding", - "ret": "void", + "argsoriginal": "(const char* default_filter=\"\")", + "call_args": "(default_filter)", + "cimguiname": "ImGuiTextFilter_ImGuiTextFilter", + "constructor": true, + "defaults": { + "default_filter": "\"\"" + }, + "funcname": "ImGuiTextFilter", + "location": "imgui:2292", + "ov_cimguiname": "ImGuiTextFilter_ImGuiTextFilter", "signature": "(const char*)", - "stname": "" + "stname": "ImGuiTextFilter" } ], - "igDestroyContext": [ + "ImGuiTextFilter_IsActive": [ { - "args": "(ImGuiContext* ctx)", + "args": "(ImGuiTextFilter* self)", "argsT": [ { - "name": "ctx", - "type": "ImGuiContext*" + "name": "self", + "type": "ImGuiTextFilter*" } ], - "argsoriginal": "(ImGuiContext* ctx=((void*)0))", - "call_args": "(ctx)", - "cimguiname": "igDestroyContext", - "defaults": { - "ctx": "NULL" - }, - "funcname": "DestroyContext", - "location": "imgui:295", - "namespace": "ImGui", - "ov_cimguiname": "igDestroyContext", - "ret": "void", - "signature": "(ImGuiContext*)", - "stname": "" - } - ], - "igDestroyPlatformWindows": [ - { - "args": "()", - "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igDestroyPlatformWindows", + "cimguiname": "ImGuiTextFilter_IsActive", "defaults": {}, - "funcname": "DestroyPlatformWindows", - "location": "imgui:983", - "namespace": "ImGui", - "ov_cimguiname": "igDestroyPlatformWindows", - "ret": "void", - "signature": "()", - "stname": "" + "funcname": "IsActive", + "location": "imgui:2297", + "ov_cimguiname": "ImGuiTextFilter_IsActive", + "ret": "bool", + "signature": "()const", + "stname": "ImGuiTextFilter" } ], - "igDockSpace": [ + "ImGuiTextFilter_PassFilter": [ { - "args": "(ImGuiID id,const ImVec2 size,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class)", + "args": "(ImGuiTextFilter* self,const char* text,const char* text_end)", "argsT": [ { - "name": "id", - "type": "ImGuiID" - }, - { - "name": "size", - "type": "const ImVec2" + "name": "self", + "type": "ImGuiTextFilter*" }, { - "name": "flags", - "type": "ImGuiDockNodeFlags" + "name": "text", + "type": "const char*" }, { - "name": "window_class", - "type": "const ImGuiWindowClass*" + "name": "text_end", + "type": "const char*" } ], - "argsoriginal": "(ImGuiID id,const ImVec2& size=ImVec2(0,0),ImGuiDockNodeFlags flags=0,const ImGuiWindowClass* window_class=((void*)0))", - "call_args": "(id,size,flags,window_class)", - "cimguiname": "igDockSpace", + "argsoriginal": "(const char* text,const char* text_end=((void*)0))", + "call_args": "(text,text_end)", + "cimguiname": "ImGuiTextFilter_PassFilter", "defaults": { - "flags": "0", - "size": "ImVec2(0,0)", - "window_class": "NULL" + "text_end": "NULL" }, - "funcname": "DockSpace", - "location": "imgui:815", - "namespace": "ImGui", - "ov_cimguiname": "igDockSpace", - "ret": "ImGuiID", - "signature": "(ImGuiID,const ImVec2,ImGuiDockNodeFlags,const ImGuiWindowClass*)", - "stname": "" + "funcname": "PassFilter", + "location": "imgui:2294", + "ov_cimguiname": "ImGuiTextFilter_PassFilter", + "ret": "bool", + "signature": "(const char*,const char*)const", + "stname": "ImGuiTextFilter" } ], - "igDockSpaceOverViewport": [ + "ImGuiTextFilter_destroy": [ { - "args": "(const ImGuiViewport* viewport,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class)", + "args": "(ImGuiTextFilter* self)", "argsT": [ { - "name": "viewport", - "type": "const ImGuiViewport*" - }, - { - "name": "flags", - "type": "ImGuiDockNodeFlags" - }, - { - "name": "window_class", - "type": "const ImGuiWindowClass*" + "name": "self", + "type": "ImGuiTextFilter*" } ], - "argsoriginal": "(const ImGuiViewport* viewport=((void*)0),ImGuiDockNodeFlags flags=0,const ImGuiWindowClass* window_class=((void*)0))", - "call_args": "(viewport,flags,window_class)", - "cimguiname": "igDockSpaceOverViewport", - "defaults": { - "flags": "0", - "viewport": "NULL", - "window_class": "NULL" - }, - "funcname": "DockSpaceOverViewport", - "location": "imgui:816", - "namespace": "ImGui", - "ov_cimguiname": "igDockSpaceOverViewport", - "ret": "ImGuiID", - "signature": "(const ImGuiViewport*,ImGuiDockNodeFlags,const ImGuiWindowClass*)", - "stname": "" + "call_args": "(self)", + "cimguiname": "ImGuiTextFilter_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTextFilter_destroy", + "ret": "void", + "signature": "(ImGuiTextFilter*)", + "stname": "ImGuiTextFilter" } ], - "igDragFloat": [ + "ImGuiTextIndex_append": [ { - "args": "(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTextIndex* self,const char* base,int old_size,int new_size)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "float*" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "v_min", - "type": "float" + "name": "self", + "type": "ImGuiTextIndex*" }, { - "name": "v_max", - "type": "float" + "name": "base", + "type": "const char*" }, { - "name": "format", - "type": "const char*" + "name": "old_size", + "type": "int" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "new_size", + "type": "int" } ], - "argsoriginal": "(const char* label,float* v,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", - "cimguiname": "igDragFloat", - "defaults": { - "flags": "0", - "format": "\"%.3f\"", - "v_max": "0.0f", - "v_min": "0.0f", - "v_speed": "1.0f" - }, - "funcname": "DragFloat", - "location": "imgui:547", - "namespace": "ImGui", - "ov_cimguiname": "igDragFloat", - "ret": "bool", - "signature": "(const char*,float*,float,float,float,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "(const char* base,int old_size,int new_size)", + "call_args": "(base,old_size,new_size)", + "cimguiname": "ImGuiTextIndex_append", + "defaults": {}, + "funcname": "append", + "location": "imgui_internal:725", + "ov_cimguiname": "ImGuiTextIndex_append", + "ret": "void", + "signature": "(const char*,int,int)", + "stname": "ImGuiTextIndex" } ], - "igDragFloat2": [ + "ImGuiTextIndex_clear": [ { - "args": "(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTextIndex* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "float[2]" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "v_min", - "type": "float" - }, + "name": "self", + "type": "ImGuiTextIndex*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextIndex_clear", + "defaults": {}, + "funcname": "clear", + "location": "imgui_internal:721", + "ov_cimguiname": "ImGuiTextIndex_clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiTextIndex" + } + ], + "ImGuiTextIndex_get_line_begin": [ + { + "args": "(ImGuiTextIndex* self,const char* base,int n)", + "argsT": [ { - "name": "v_max", - "type": "float" + "name": "self", + "type": "ImGuiTextIndex*" }, { - "name": "format", + "name": "base", "type": "const char*" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "n", + "type": "int" } ], - "argsoriginal": "(const char* label,float v[2],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", - "cimguiname": "igDragFloat2", - "defaults": { - "flags": "0", - "format": "\"%.3f\"", - "v_max": "0.0f", - "v_min": "0.0f", - "v_speed": "1.0f" - }, - "funcname": "DragFloat2", - "location": "imgui:548", - "namespace": "ImGui", - "ov_cimguiname": "igDragFloat2", - "ret": "bool", - "signature": "(const char*,float[2],float,float,float,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "(const char* base,int n)", + "call_args": "(base,n)", + "cimguiname": "ImGuiTextIndex_get_line_begin", + "defaults": {}, + "funcname": "get_line_begin", + "location": "imgui_internal:723", + "ov_cimguiname": "ImGuiTextIndex_get_line_begin", + "ret": "const char*", + "signature": "(const char*,int)", + "stname": "ImGuiTextIndex" } ], - "igDragFloat3": [ + "ImGuiTextIndex_get_line_end": [ { - "args": "(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTextIndex* self,const char* base,int n)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "float[3]" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "v_min", - "type": "float" - }, - { - "name": "v_max", - "type": "float" + "name": "self", + "type": "ImGuiTextIndex*" }, { - "name": "format", + "name": "base", "type": "const char*" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "n", + "type": "int" } ], - "argsoriginal": "(const char* label,float v[3],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", - "cimguiname": "igDragFloat3", - "defaults": { - "flags": "0", - "format": "\"%.3f\"", - "v_max": "0.0f", - "v_min": "0.0f", - "v_speed": "1.0f" - }, - "funcname": "DragFloat3", - "location": "imgui:549", - "namespace": "ImGui", - "ov_cimguiname": "igDragFloat3", - "ret": "bool", - "signature": "(const char*,float[3],float,float,float,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "(const char* base,int n)", + "call_args": "(base,n)", + "cimguiname": "ImGuiTextIndex_get_line_end", + "defaults": {}, + "funcname": "get_line_end", + "location": "imgui_internal:724", + "ov_cimguiname": "ImGuiTextIndex_get_line_end", + "ret": "const char*", + "signature": "(const char*,int)", + "stname": "ImGuiTextIndex" } ], - "igDragFloat4": [ + "ImGuiTextIndex_size": [ { - "args": "(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTextIndex* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "float[4]" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "v_min", - "type": "float" - }, - { - "name": "v_max", - "type": "float" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "self", + "type": "ImGuiTextIndex*" } ], - "argsoriginal": "(const char* label,float v[4],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", - "cimguiname": "igDragFloat4", - "defaults": { - "flags": "0", - "format": "\"%.3f\"", - "v_max": "0.0f", - "v_min": "0.0f", - "v_speed": "1.0f" - }, - "funcname": "DragFloat4", - "location": "imgui:550", - "namespace": "ImGui", - "ov_cimguiname": "igDragFloat4", - "ret": "bool", - "signature": "(const char*,float[4],float,float,float,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextIndex_size", + "defaults": {}, + "funcname": "size", + "location": "imgui_internal:722", + "ov_cimguiname": "ImGuiTextIndex_size", + "ret": "int", + "signature": "()", + "stname": "ImGuiTextIndex" } ], - "igDragFloatRange2": [ + "ImGuiTextRange_ImGuiTextRange": [ { - "args": "(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)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextRange_ImGuiTextRange", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTextRange", + "location": "imgui:2305", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Nil", + "signature": "()", + "stname": "ImGuiTextRange" + }, + { + "args": "(const char* _b,const char* _e)", "argsT": [ { - "name": "label", + "name": "_b", "type": "const char*" }, { - "name": "v_current_min", - "type": "float*" - }, - { - "name": "v_current_max", - "type": "float*" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "v_min", - "type": "float" - }, - { - "name": "v_max", - "type": "float" - }, - { - "name": "format", + "name": "_e", "type": "const char*" - }, + } + ], + "argsoriginal": "(const char* _b,const char* _e)", + "call_args": "(_b,_e)", + "cimguiname": "ImGuiTextRange_ImGuiTextRange", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTextRange", + "location": "imgui:2306", + "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Str", + "signature": "(const char*,const char*)", + "stname": "ImGuiTextRange" + } + ], + "ImGuiTextRange_destroy": [ + { + "args": "(ImGuiTextRange* self)", + "argsT": [ { - "name": "format_max", - "type": "const char*" - }, + "name": "self", + "type": "ImGuiTextRange*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTextRange_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTextRange_destroy", + "ret": "void", + "signature": "(ImGuiTextRange*)", + "stname": "ImGuiTextRange" + } + ], + "ImGuiTextRange_empty": [ + { + "args": "(ImGuiTextRange* self)", + "argsT": [ { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "self", + "type": "ImGuiTextRange*" } ], - "argsoriginal": "(const char* label,float* v_current_min,float* v_current_max,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)", - "call_args": "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)", - "cimguiname": "igDragFloatRange2", - "defaults": { - "flags": "0", - "format": "\"%.3f\"", - "format_max": "NULL", - "v_max": "0.0f", - "v_min": "0.0f", - "v_speed": "1.0f" - }, - "funcname": "DragFloatRange2", - "location": "imgui:551", - "namespace": "ImGui", - "ov_cimguiname": "igDragFloatRange2", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTextRange_empty", + "defaults": {}, + "funcname": "empty", + "location": "imgui:2307", + "ov_cimguiname": "ImGuiTextRange_empty", "ret": "bool", - "signature": "(const char*,float*,float*,float,float,float,const char*,const char*,ImGuiSliderFlags)", - "stname": "" + "signature": "()const", + "stname": "ImGuiTextRange" } ], - "igDragInt": [ + "ImGuiTextRange_split": [ { - "args": "(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int*" + "name": "self", + "type": "ImGuiTextRange*" }, { - "name": "v_speed", - "type": "float" + "name": "separator", + "type": "char" }, { - "name": "v_min", - "type": "int" - }, + "name": "out", + "type": "ImVector_ImGuiTextRange*" + } + ], + "argsoriginal": "(char separator,ImVector* out)", + "call_args": "(separator,out)", + "cimguiname": "ImGuiTextRange_split", + "defaults": {}, + "funcname": "split", + "location": "imgui:2308", + "ov_cimguiname": "ImGuiTextRange_split", + "ret": "void", + "signature": "(char,ImVector_ImGuiTextRange*)const", + "stname": "ImGuiTextRange" + } + ], + "ImGuiViewportP_CalcWorkRectPos": [ + { + "args": "(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min)", + "argsT": [ { - "name": "v_max", - "type": "int" + "name": "pOut", + "type": "ImVec2*" }, { - "name": "format", - "type": "const char*" + "name": "self", + "type": "ImGuiViewportP*" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "off_min", + "type": "const ImVec2" } ], - "argsoriginal": "(const char* label,int* v,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", - "cimguiname": "igDragInt", - "defaults": { - "flags": "0", - "format": "\"%d\"", - "v_max": "0", - "v_min": "0", - "v_speed": "1.0f" - }, - "funcname": "DragInt", - "location": "imgui:552", - "namespace": "ImGui", - "ov_cimguiname": "igDragInt", - "ret": "bool", - "signature": "(const char*,int*,float,int,int,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "(const ImVec2& off_min)", + "call_args": "(off_min)", + "cimguiname": "ImGuiViewportP_CalcWorkRectPos", + "defaults": {}, + "funcname": "CalcWorkRectPos", + "location": "imgui_internal:1742", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewportP_CalcWorkRectPos", + "ret": "void", + "signature": "(const ImVec2)const", + "stname": "ImGuiViewportP" } ], - "igDragInt2": [ + "ImGuiViewportP_CalcWorkRectSize": [ { - "args": "(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min,const ImVec2 off_max)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "pOut", + "type": "ImVec2*" }, { - "name": "v", - "type": "int[2]" + "name": "self", + "type": "ImGuiViewportP*" }, { - "name": "v_speed", - "type": "float" - }, - { - "name": "v_min", - "type": "int" - }, - { - "name": "v_max", - "type": "int" - }, - { - "name": "format", - "type": "const char*" + "name": "off_min", + "type": "const ImVec2" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "off_max", + "type": "const ImVec2" } ], - "argsoriginal": "(const char* label,int v[2],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", - "cimguiname": "igDragInt2", - "defaults": { - "flags": "0", - "format": "\"%d\"", - "v_max": "0", - "v_min": "0", - "v_speed": "1.0f" - }, - "funcname": "DragInt2", - "location": "imgui:553", - "namespace": "ImGui", - "ov_cimguiname": "igDragInt2", - "ret": "bool", - "signature": "(const char*,int[2],float,int,int,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "(const ImVec2& off_min,const ImVec2& off_max)", + "call_args": "(off_min,off_max)", + "cimguiname": "ImGuiViewportP_CalcWorkRectSize", + "defaults": {}, + "funcname": "CalcWorkRectSize", + "location": "imgui_internal:1743", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewportP_CalcWorkRectSize", + "ret": "void", + "signature": "(const ImVec2,const ImVec2)const", + "stname": "ImGuiViewportP" } ], - "igDragInt3": [ + "ImGuiViewportP_ClearRequestFlags": [ { - "args": "(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiViewportP* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int[3]" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "v_min", - "type": "int" - }, - { - "name": "v_max", - "type": "int" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "self", + "type": "ImGuiViewportP*" } ], - "argsoriginal": "(const char* label,int v[3],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", - "cimguiname": "igDragInt3", - "defaults": { - "flags": "0", - "format": "\"%d\"", - "v_max": "0", - "v_min": "0", - "v_speed": "1.0f" - }, - "funcname": "DragInt3", - "location": "imgui:554", - "namespace": "ImGui", - "ov_cimguiname": "igDragInt3", - "ret": "bool", - "signature": "(const char*,int[3],float,int,int,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewportP_ClearRequestFlags", + "defaults": {}, + "funcname": "ClearRequestFlags", + "location": "imgui_internal:1739", + "ov_cimguiname": "ImGuiViewportP_ClearRequestFlags", + "ret": "void", + "signature": "()", + "stname": "ImGuiViewportP" } ], - "igDragInt4": [ + "ImGuiViewportP_GetBuildWorkRect": [ { - "args": "(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImRect *pOut,ImGuiViewportP* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int[4]" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "v_min", - "type": "int" - }, - { - "name": "v_max", - "type": "int" - }, - { - "name": "format", - "type": "const char*" + "name": "pOut", + "type": "ImRect*" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "self", + "type": "ImGuiViewportP*" } ], - "argsoriginal": "(const char* label,int v[4],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", - "cimguiname": "igDragInt4", - "defaults": { - "flags": "0", - "format": "\"%d\"", - "v_max": "0", - "v_min": "0", - "v_speed": "1.0f" - }, - "funcname": "DragInt4", - "location": "imgui:555", - "namespace": "ImGui", - "ov_cimguiname": "igDragInt4", - "ret": "bool", - "signature": "(const char*,int[4],float,int,int,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewportP_GetBuildWorkRect", + "defaults": {}, + "funcname": "GetBuildWorkRect", + "location": "imgui_internal:1749", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewportP_GetBuildWorkRect", + "ret": "void", + "signature": "()const", + "stname": "ImGuiViewportP" } ], - "igDragIntRange2": [ + "ImGuiViewportP_GetMainRect": [ { - "args": "(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)", + "args": "(ImRect *pOut,ImGuiViewportP* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v_current_min", - "type": "int*" - }, - { - "name": "v_current_max", - "type": "int*" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "v_min", - "type": "int" - }, - { - "name": "v_max", - "type": "int" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "format_max", - "type": "const char*" + "name": "pOut", + "type": "ImRect*" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "self", + "type": "ImGuiViewportP*" } ], - "argsoriginal": "(const char* label,int* v_current_min,int* v_current_max,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)", - "call_args": "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)", - "cimguiname": "igDragIntRange2", - "defaults": { - "flags": "0", - "format": "\"%d\"", - "format_max": "NULL", - "v_max": "0", - "v_min": "0", - "v_speed": "1.0f" - }, - "funcname": "DragIntRange2", - "location": "imgui:556", - "namespace": "ImGui", - "ov_cimguiname": "igDragIntRange2", - "ret": "bool", - "signature": "(const char*,int*,int*,float,int,int,const char*,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewportP_GetMainRect", + "defaults": {}, + "funcname": "GetMainRect", + "location": "imgui_internal:1747", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewportP_GetMainRect", + "ret": "void", + "signature": "()const", + "stname": "ImGuiViewportP" } ], - "igDragScalar": [ + "ImGuiViewportP_GetWorkRect": [ { - "args": "(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)", + "args": "(ImRect *pOut,ImGuiViewportP* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "data_type", - "type": "ImGuiDataType" - }, - { - "name": "p_data", - "type": "void*" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "p_min", - "type": "const void*" - }, - { - "name": "p_max", - "type": "const void*" - }, - { - "name": "format", - "type": "const char*" + "name": "pOut", + "type": "ImRect*" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "self", + "type": "ImGuiViewportP*" } ], - "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)", - "call_args": "(label,data_type,p_data,v_speed,p_min,p_max,format,flags)", - "cimguiname": "igDragScalar", - "defaults": { - "flags": "0", - "format": "NULL", - "p_max": "NULL", - "p_min": "NULL", - "v_speed": "1.0f" - }, - "funcname": "DragScalar", - "location": "imgui:557", - "namespace": "ImGui", - "ov_cimguiname": "igDragScalar", - "ret": "bool", - "signature": "(const char*,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewportP_GetWorkRect", + "defaults": {}, + "funcname": "GetWorkRect", + "location": "imgui_internal:1748", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewportP_GetWorkRect", + "ret": "void", + "signature": "()const", + "stname": "ImGuiViewportP" } ], - "igDragScalarN": [ + "ImGuiViewportP_ImGuiViewportP": [ { - "args": "(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)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewportP_ImGuiViewportP", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiViewportP", + "location": "imgui_internal:1737", + "ov_cimguiname": "ImGuiViewportP_ImGuiViewportP", + "signature": "()", + "stname": "ImGuiViewportP" + } + ], + "ImGuiViewportP_UpdateWorkRect": [ + { + "args": "(ImGuiViewportP* self)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "data_type", - "type": "ImGuiDataType" - }, - { - "name": "p_data", - "type": "void*" - }, - { - "name": "components", - "type": "int" - }, - { - "name": "v_speed", - "type": "float" - }, - { - "name": "p_min", - "type": "const void*" - }, - { - "name": "p_max", - "type": "const void*" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "self", + "type": "ImGuiViewportP*" } ], - "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)", - "call_args": "(label,data_type,p_data,components,v_speed,p_min,p_max,format,flags)", - "cimguiname": "igDragScalarN", - "defaults": { - "flags": "0", - "format": "NULL", - "p_max": "NULL", - "p_min": "NULL", - "v_speed": "1.0f" - }, - "funcname": "DragScalarN", - "location": "imgui:558", - "namespace": "ImGui", - "ov_cimguiname": "igDragScalarN", - "ret": "bool", - "signature": "(const char*,ImGuiDataType,void*,int,float,const void*,const void*,const char*,ImGuiSliderFlags)", - "stname": "" + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiViewportP_UpdateWorkRect", + "defaults": {}, + "funcname": "UpdateWorkRect", + "location": "imgui_internal:1744", + "ov_cimguiname": "ImGuiViewportP_UpdateWorkRect", + "ret": "void", + "signature": "()", + "stname": "ImGuiViewportP" } ], - "igDummy": [ + "ImGuiViewportP_destroy": [ { - "args": "(const ImVec2 size)", + "args": "(ImGuiViewportP* self)", "argsT": [ { - "name": "size", - "type": "const ImVec2" + "name": "self", + "type": "ImGuiViewportP*" } ], - "argsoriginal": "(const ImVec2& size)", - "call_args": "(size)", - "cimguiname": "igDummy", + "call_args": "(self)", + "cimguiname": "ImGuiViewportP_destroy", "defaults": {}, - "funcname": "Dummy", - "location": "imgui:451", - "namespace": "ImGui", - "ov_cimguiname": "igDummy", + "destructor": true, + "location": "imgui_internal:1738", + "ov_cimguiname": "ImGuiViewportP_destroy", + "realdestructor": true, "ret": "void", - "signature": "(const ImVec2)", - "stname": "" + "signature": "(ImGuiViewportP*)", + "stname": "ImGuiViewportP" } ], - "igEnd": [ + "ImGuiViewport_GetCenter": [ { - "args": "()", - "argsT": [], + "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImGuiViewport*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEnd", + "cimguiname": "ImGuiViewport_GetCenter", "defaults": {}, - "funcname": "End", - "location": "imgui:337", - "namespace": "ImGui", - "ov_cimguiname": "igEnd", + "funcname": "GetCenter", + "location": "imgui:3070", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewport_GetCenter", "ret": "void", - "signature": "()", - "stname": "" + "signature": "()const", + "stname": "ImGuiViewport" } ], - "igEndChild": [ + "ImGuiViewport_GetWorkCenter": [ { - "args": "()", - "argsT": [], + "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImGuiViewport*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndChild", + "cimguiname": "ImGuiViewport_GetWorkCenter", "defaults": {}, - "funcname": "EndChild", - "location": "imgui:349", - "namespace": "ImGui", - "ov_cimguiname": "igEndChild", + "funcname": "GetWorkCenter", + "location": "imgui:3071", + "nonUDT": 1, + "ov_cimguiname": "ImGuiViewport_GetWorkCenter", "ret": "void", - "signature": "()", - "stname": "" + "signature": "()const", + "stname": "ImGuiViewport" } ], - "igEndChildFrame": [ + "ImGuiViewport_ImGuiViewport": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndChildFrame", + "cimguiname": "ImGuiViewport_ImGuiViewport", + "constructor": true, "defaults": {}, - "funcname": "EndChildFrame", - "location": "imgui:905", - "namespace": "ImGui", - "ov_cimguiname": "igEndChildFrame", - "ret": "void", + "funcname": "ImGuiViewport", + "location": "imgui:3066", + "ov_cimguiname": "ImGuiViewport_ImGuiViewport", "signature": "()", - "stname": "" + "stname": "ImGuiViewport" } ], - "igEndCombo": [ + "ImGuiViewport_destroy": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igEndCombo", + "args": "(ImGuiViewport* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiViewport*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiViewport_destroy", "defaults": {}, - "funcname": "EndCombo", - "location": "imgui:530", - "namespace": "ImGui", - "ov_cimguiname": "igEndCombo", + "destructor": true, + "location": "imgui:3067", + "ov_cimguiname": "ImGuiViewport_destroy", + "realdestructor": true, "ret": "void", - "signature": "()", - "stname": "" + "signature": "(ImGuiViewport*)", + "stname": "ImGuiViewport" } ], - "igEndDisabled": [ + "ImGuiWindowClass_ImGuiWindowClass": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndDisabled", + "cimguiname": "ImGuiWindowClass_ImGuiWindowClass", + "constructor": true, "defaults": {}, - "funcname": "EndDisabled", - "location": "imgui:850", - "namespace": "ImGui", - "ov_cimguiname": "igEndDisabled", - "ret": "void", + "funcname": "ImGuiWindowClass", + "location": "imgui:2219", + "ov_cimguiname": "ImGuiWindowClass_ImGuiWindowClass", "signature": "()", - "stname": "" + "stname": "ImGuiWindowClass" } ], - "igEndDragDropSource": [ + "ImGuiWindowClass_destroy": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igEndDragDropSource", + "args": "(ImGuiWindowClass* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindowClass*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiWindowClass_destroy", "defaults": {}, - "funcname": "EndDragDropSource", - "location": "imgui:839", - "namespace": "ImGui", - "ov_cimguiname": "igEndDragDropSource", + "destructor": true, + "ov_cimguiname": "ImGuiWindowClass_destroy", "ret": "void", - "signature": "()", - "stname": "" + "signature": "(ImGuiWindowClass*)", + "stname": "ImGuiWindowClass" } ], - "igEndDragDropTarget": [ + "ImGuiWindowSettings_GetName": [ { - "args": "()", - "argsT": [], + "args": "(ImGuiWindowSettings* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindowSettings*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndDragDropTarget", + "cimguiname": "ImGuiWindowSettings_GetName", "defaults": {}, - "funcname": "EndDragDropTarget", - "location": "imgui:842", - "namespace": "ImGui", - "ov_cimguiname": "igEndDragDropTarget", - "ret": "void", + "funcname": "GetName", + "location": "imgui_internal:1773", + "ov_cimguiname": "ImGuiWindowSettings_GetName", + "ret": "char*", "signature": "()", - "stname": "" + "stname": "ImGuiWindowSettings" } ], - "igEndFrame": [ + "ImGuiWindowSettings_ImGuiWindowSettings": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndFrame", + "cimguiname": "ImGuiWindowSettings_ImGuiWindowSettings", + "constructor": true, "defaults": {}, - "funcname": "EndFrame", - "location": "imgui:303", - "namespace": "ImGui", - "ov_cimguiname": "igEndFrame", - "ret": "void", + "funcname": "ImGuiWindowSettings", + "location": "imgui_internal:1772", + "ov_cimguiname": "ImGuiWindowSettings_ImGuiWindowSettings", "signature": "()", - "stname": "" + "stname": "ImGuiWindowSettings" } ], - "igEndGroup": [ + "ImGuiWindowSettings_destroy": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igEndGroup", + "args": "(ImGuiWindowSettings* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindowSettings*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiWindowSettings_destroy", "defaults": {}, - "funcname": "EndGroup", - "location": "imgui:455", - "namespace": "ImGui", - "ov_cimguiname": "igEndGroup", + "destructor": true, + "ov_cimguiname": "ImGuiWindowSettings_destroy", "ret": "void", - "signature": "()", - "stname": "" + "signature": "(ImGuiWindowSettings*)", + "stname": "ImGuiWindowSettings" } ], - "igEndListBox": [ + "ImGuiWindow_CalcFontSize": [ { - "args": "()", - "argsT": [], + "args": "(ImGuiWindow* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindow*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndListBox", + "cimguiname": "ImGuiWindow_CalcFontSize", "defaults": {}, - "funcname": "EndListBox", - "location": "imgui:642", - "namespace": "ImGui", - "ov_cimguiname": "igEndListBox", - "ret": "void", - "signature": "()", - "stname": "" + "funcname": "CalcFontSize", + "location": "imgui_internal:2562", + "ov_cimguiname": "ImGuiWindow_CalcFontSize", + "ret": "float", + "signature": "()const", + "stname": "ImGuiWindow" } ], - "igEndMainMenuBar": [ + "ImGuiWindow_GetID": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igEndMainMenuBar", + "args": "(ImGuiWindow* self,const char* str,const char* str_end)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindow*" + }, + { + "name": "str", + "type": "const char*" + }, + { + "name": "str_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str,const char* str_end=((void*)0))", + "call_args": "(str,str_end)", + "cimguiname": "ImGuiWindow_GetID", + "defaults": { + "str_end": "NULL" + }, + "funcname": "GetID", + "location": "imgui_internal:2555", + "ov_cimguiname": "ImGuiWindow_GetID_Str", + "ret": "ImGuiID", + "signature": "(const char*,const char*)", + "stname": "ImGuiWindow" + }, + { + "args": "(ImGuiWindow* self,const void* ptr)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindow*" + }, + { + "name": "ptr", + "type": "const void*" + } + ], + "argsoriginal": "(const void* ptr)", + "call_args": "(ptr)", + "cimguiname": "ImGuiWindow_GetID", "defaults": {}, - "funcname": "EndMainMenuBar", - "location": "imgui:668", - "namespace": "ImGui", - "ov_cimguiname": "igEndMainMenuBar", - "ret": "void", - "signature": "()", - "stname": "" + "funcname": "GetID", + "location": "imgui_internal:2556", + "ov_cimguiname": "ImGuiWindow_GetID_Ptr", + "ret": "ImGuiID", + "signature": "(const void*)", + "stname": "ImGuiWindow" + }, + { + "args": "(ImGuiWindow* self,int n)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindow*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImGuiWindow_GetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui_internal:2557", + "ov_cimguiname": "ImGuiWindow_GetID_Int", + "ret": "ImGuiID", + "signature": "(int)", + "stname": "ImGuiWindow" } ], - "igEndMenu": [ + "ImGuiWindow_GetIDFromRectangle": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igEndMenu", + "args": "(ImGuiWindow* self,const ImRect r_abs)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindow*" + }, + { + "name": "r_abs", + "type": "const ImRect" + } + ], + "argsoriginal": "(const ImRect& r_abs)", + "call_args": "(r_abs)", + "cimguiname": "ImGuiWindow_GetIDFromRectangle", "defaults": {}, - "funcname": "EndMenu", - "location": "imgui:670", - "namespace": "ImGui", - "ov_cimguiname": "igEndMenu", - "ret": "void", - "signature": "()", - "stname": "" + "funcname": "GetIDFromRectangle", + "location": "imgui_internal:2558", + "ov_cimguiname": "ImGuiWindow_GetIDFromRectangle", + "ret": "ImGuiID", + "signature": "(const ImRect)", + "stname": "ImGuiWindow" } ], - "igEndMenuBar": [ + "ImGuiWindow_ImGuiWindow": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igEndMenuBar", + "args": "(ImGuiContext* context,const char* name)", + "argsT": [ + { + "name": "context", + "type": "ImGuiContext*" + }, + { + "name": "name", + "type": "const char*" + } + ], + "argsoriginal": "(ImGuiContext* context,const char* name)", + "call_args": "(context,name)", + "cimguiname": "ImGuiWindow_ImGuiWindow", + "constructor": true, "defaults": {}, - "funcname": "EndMenuBar", - "location": "imgui:666", - "namespace": "ImGui", - "ov_cimguiname": "igEndMenuBar", - "ret": "void", - "signature": "()", - "stname": "" + "funcname": "ImGuiWindow", + "location": "imgui_internal:2551", + "ov_cimguiname": "ImGuiWindow_ImGuiWindow", + "signature": "(ImGuiContext*,const char*)", + "stname": "ImGuiWindow" } ], - "igEndPopup": [ + "ImGuiWindow_MenuBarHeight": [ { - "args": "()", - "argsT": [], + "args": "(ImGuiWindow* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindow*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndPopup", + "cimguiname": "ImGuiWindow_MenuBarHeight", "defaults": {}, - "funcname": "EndPopup", - "location": "imgui:695", - "namespace": "ImGui", - "ov_cimguiname": "igEndPopup", - "ret": "void", - "signature": "()", - "stname": "" + "funcname": "MenuBarHeight", + "location": "imgui_internal:2565", + "ov_cimguiname": "ImGuiWindow_MenuBarHeight", + "ret": "float", + "signature": "()const", + "stname": "ImGuiWindow" } ], - "igEndTabBar": [ + "ImGuiWindow_MenuBarRect": [ { - "args": "()", - "argsT": [], + "args": "(ImRect *pOut,ImGuiWindow* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImRect*" + }, + { + "name": "self", + "type": "ImGuiWindow*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndTabBar", + "cimguiname": "ImGuiWindow_MenuBarRect", "defaults": {}, - "funcname": "EndTabBar", - "location": "imgui:796", - "namespace": "ImGui", - "ov_cimguiname": "igEndTabBar", + "funcname": "MenuBarRect", + "location": "imgui_internal:2566", + "nonUDT": 1, + "ov_cimguiname": "ImGuiWindow_MenuBarRect", "ret": "void", - "signature": "()", - "stname": "" + "signature": "()const", + "stname": "ImGuiWindow" } ], - "igEndTabItem": [ + "ImGuiWindow_Rect": [ { - "args": "()", - "argsT": [], + "args": "(ImRect *pOut,ImGuiWindow* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImRect*" + }, + { + "name": "self", + "type": "ImGuiWindow*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndTabItem", + "cimguiname": "ImGuiWindow_Rect", "defaults": {}, - "funcname": "EndTabItem", - "location": "imgui:798", - "namespace": "ImGui", - "ov_cimguiname": "igEndTabItem", + "funcname": "Rect", + "location": "imgui_internal:2561", + "nonUDT": 1, + "ov_cimguiname": "ImGuiWindow_Rect", "ret": "void", - "signature": "()", - "stname": "" + "signature": "()const", + "stname": "ImGuiWindow" } ], - "igEndTable": [ + "ImGuiWindow_TitleBarHeight": [ { - "args": "()", - "argsT": [], + "args": "(ImGuiWindow* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiWindow*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndTable", + "cimguiname": "ImGuiWindow_TitleBarHeight", "defaults": {}, - "funcname": "EndTable", - "location": "imgui:749", - "namespace": "ImGui", - "ov_cimguiname": "igEndTable", - "ret": "void", - "signature": "()", - "stname": "" + "funcname": "TitleBarHeight", + "location": "imgui_internal:2563", + "ov_cimguiname": "ImGuiWindow_TitleBarHeight", + "ret": "float", + "signature": "()const", + "stname": "ImGuiWindow" } ], - "igEndTooltip": [ + "ImGuiWindow_TitleBarRect": [ { - "args": "()", - "argsT": [], + "args": "(ImRect *pOut,ImGuiWindow* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImRect*" + }, + { + "name": "self", + "type": "ImGuiWindow*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igEndTooltip", + "cimguiname": "ImGuiWindow_TitleBarRect", "defaults": {}, - "funcname": "EndTooltip", - "location": "imgui:677", - "namespace": "ImGui", - "ov_cimguiname": "igEndTooltip", + "funcname": "TitleBarRect", + "location": "imgui_internal:2564", + "nonUDT": 1, + "ov_cimguiname": "ImGuiWindow_TitleBarRect", "ret": "void", - "signature": "()", - "stname": "" + "signature": "()const", + "stname": "ImGuiWindow" } ], - "igFindViewportByID": [ + "ImGuiWindow_destroy": [ { - "args": "(ImGuiID id)", + "args": "(ImGuiWindow* self)", "argsT": [ { - "name": "id", - "type": "ImGuiID" + "name": "self", + "type": "ImGuiWindow*" } ], - "argsoriginal": "(ImGuiID id)", - "call_args": "(id)", - "cimguiname": "igFindViewportByID", + "call_args": "(self)", + "cimguiname": "ImGuiWindow_destroy", "defaults": {}, - "funcname": "FindViewportByID", - "location": "imgui:984", - "namespace": "ImGui", - "ov_cimguiname": "igFindViewportByID", - "ret": "ImGuiViewport*", - "signature": "(ImGuiID)", - "stname": "" + "destructor": true, + "location": "imgui_internal:2553", + "ov_cimguiname": "ImGuiWindow_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "ImGuiWindow" } ], - "igFindViewportByPlatformHandle": [ + "ImPool_Add": [ { - "args": "(void* platform_handle)", + "args": "(ImPool* self)", "argsT": [ { - "name": "platform_handle", - "type": "void*" + "name": "self", + "type": "ImPool*" } ], - "argsoriginal": "(void* platform_handle)", - "call_args": "(platform_handle)", - "cimguiname": "igFindViewportByPlatformHandle", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImPool_Add", "defaults": {}, - "funcname": "FindViewportByPlatformHandle", - "location": "imgui:985", - "namespace": "ImGui", - "ov_cimguiname": "igFindViewportByPlatformHandle", - "ret": "ImGuiViewport*", - "signature": "(void*)", - "stname": "" + "funcname": "Add", + "location": "imgui_internal:674", + "ov_cimguiname": "ImPool_Add", + "ret": "T*", + "signature": "()", + "stname": "ImPool", + "templated": true } ], - "igGetAllocatorFunctions": [ + "ImPool_Clear": [ { - "args": "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)", + "args": "(ImPool* self)", "argsT": [ { - "name": "p_alloc_func", - "type": "ImGuiMemAllocFunc*" - }, - { - "name": "p_free_func", - "type": "ImGuiMemFreeFunc*" - }, - { - "name": "p_user_data", - "type": "void**" + "name": "self", + "type": "ImPool*" } ], - "argsoriginal": "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)", - "call_args": "(p_alloc_func,p_free_func,p_user_data)", - "cimguiname": "igGetAllocatorFunctions", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImPool_Clear", "defaults": {}, - "funcname": "GetAllocatorFunctions", - "location": "imgui:973", - "namespace": "ImGui", - "ov_cimguiname": "igGetAllocatorFunctions", + "funcname": "Clear", + "location": "imgui_internal:673", + "ov_cimguiname": "ImPool_Clear", "ret": "void", - "signature": "(ImGuiMemAllocFunc*,ImGuiMemFreeFunc*,void**)", - "stname": "" + "signature": "()", + "stname": "ImPool", + "templated": true } ], - "igGetBackgroundDrawList": [ + "ImPool_Contains": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetBackgroundDrawList", + "args": "(ImPool* self,const T* p)", + "argsT": [ + { + "name": "self", + "type": "ImPool*" + }, + { + "name": "p", + "type": "const T*" + } + ], + "argsoriginal": "(const T* p)", + "call_args": "(p)", + "cimguiname": "ImPool_Contains", "defaults": {}, - "funcname": "GetBackgroundDrawList", - "location": "imgui:890", - "namespace": "ImGui", - "ov_cimguiname": "igGetBackgroundDrawList_Nil", - "ret": "ImDrawList*", - "signature": "()", - "stname": "" - }, + "funcname": "Contains", + "location": "imgui_internal:672", + "ov_cimguiname": "ImPool_Contains", + "ret": "bool", + "signature": "(const T*)const", + "stname": "ImPool", + "templated": true + } + ], + "ImPool_GetAliveCount": [ { - "args": "(ImGuiViewport* viewport)", + "args": "(ImPool* self)", "argsT": [ { - "name": "viewport", - "type": "ImGuiViewport*" + "name": "self", + "type": "ImPool*" } ], - "argsoriginal": "(ImGuiViewport* viewport)", - "call_args": "(viewport)", - "cimguiname": "igGetBackgroundDrawList", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImPool_GetAliveCount", "defaults": {}, - "funcname": "GetBackgroundDrawList", - "location": "imgui:892", - "namespace": "ImGui", - "ov_cimguiname": "igGetBackgroundDrawList_ViewportPtr", - "ret": "ImDrawList*", - "signature": "(ImGuiViewport*)", - "stname": "" + "funcname": "GetAliveCount", + "location": "imgui_internal:681", + "ov_cimguiname": "ImPool_GetAliveCount", + "ret": "int", + "signature": "()const", + "stname": "ImPool", + "templated": true } ], - "igGetClipboardText": [ + "ImPool_GetBufSize": [ { - "args": "()", - "argsT": [], + "args": "(ImPool* self)", + "argsT": [ + { + "name": "self", + "type": "ImPool*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetClipboardText", + "cimguiname": "ImPool_GetBufSize", "defaults": {}, - "funcname": "GetClipboardText", - "location": "imgui:952", - "namespace": "ImGui", - "ov_cimguiname": "igGetClipboardText", - "ret": "const char*", - "signature": "()", - "stname": "" + "funcname": "GetBufSize", + "location": "imgui_internal:682", + "ov_cimguiname": "ImPool_GetBufSize", + "ret": "int", + "signature": "()const", + "stname": "ImPool", + "templated": true } ], - "igGetColorU32": [ + "ImPool_GetByIndex": [ { - "args": "(ImGuiCol idx,float alpha_mul)", + "args": "(ImPool* self,ImPoolIdx n)", "argsT": [ { - "name": "idx", - "type": "ImGuiCol" + "name": "self", + "type": "ImPool*" }, { - "name": "alpha_mul", - "type": "float" + "name": "n", + "type": "ImPoolIdx" } ], - "argsoriginal": "(ImGuiCol idx,float alpha_mul=1.0f)", - "call_args": "(idx,alpha_mul)", - "cimguiname": "igGetColorU32", - "defaults": { - "alpha_mul": "1.0f" - }, - "funcname": "GetColorU32", - "location": "imgui:435", - "namespace": "ImGui", - "ov_cimguiname": "igGetColorU32_Col", - "ret": "ImU32", - "signature": "(ImGuiCol,float)", - "stname": "" - }, + "argsoriginal": "(ImPoolIdx n)", + "call_args": "(n)", + "cimguiname": "ImPool_GetByIndex", + "defaults": {}, + "funcname": "GetByIndex", + "location": "imgui_internal:669", + "ov_cimguiname": "ImPool_GetByIndex", + "ret": "T*", + "signature": "(ImPoolIdx)", + "stname": "ImPool", + "templated": true + } + ], + "ImPool_GetByKey": [ { - "args": "(const ImVec4 col)", + "args": "(ImPool* self,ImGuiID key)", "argsT": [ { - "name": "col", - "type": "const ImVec4" + "name": "self", + "type": "ImPool*" + }, + { + "name": "key", + "type": "ImGuiID" } ], - "argsoriginal": "(const ImVec4& col)", - "call_args": "(col)", - "cimguiname": "igGetColorU32", + "argsoriginal": "(ImGuiID key)", + "call_args": "(key)", + "cimguiname": "ImPool_GetByKey", "defaults": {}, - "funcname": "GetColorU32", - "location": "imgui:436", - "namespace": "ImGui", - "ov_cimguiname": "igGetColorU32_Vec4", - "ret": "ImU32", - "signature": "(const ImVec4)", - "stname": "" - }, + "funcname": "GetByKey", + "location": "imgui_internal:668", + "ov_cimguiname": "ImPool_GetByKey", + "ret": "T*", + "signature": "(ImGuiID)", + "stname": "ImPool", + "templated": true + } + ], + "ImPool_GetIndex": [ { - "args": "(ImU32 col)", + "args": "(ImPool* self,const T* p)", "argsT": [ { - "name": "col", - "type": "ImU32" + "name": "self", + "type": "ImPool*" + }, + { + "name": "p", + "type": "const T*" } ], - "argsoriginal": "(ImU32 col)", - "call_args": "(col)", - "cimguiname": "igGetColorU32", + "argsoriginal": "(const T* p)", + "call_args": "(p)", + "cimguiname": "ImPool_GetIndex", "defaults": {}, - "funcname": "GetColorU32", - "location": "imgui:437", - "namespace": "ImGui", - "ov_cimguiname": "igGetColorU32_U32", - "ret": "ImU32", - "signature": "(ImU32)", - "stname": "" + "funcname": "GetIndex", + "location": "imgui_internal:670", + "ov_cimguiname": "ImPool_GetIndex", + "ret": "ImPoolIdx", + "signature": "(const T*)const", + "stname": "ImPool", + "templated": true } ], - "igGetColumnIndex": [ + "ImPool_GetMapSize": [ { - "args": "()", - "argsT": [], + "args": "(ImPool* self)", + "argsT": [ + { + "name": "self", + "type": "ImPool*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetColumnIndex", + "cimguiname": "ImPool_GetMapSize", "defaults": {}, - "funcname": "GetColumnIndex", - "location": "imgui:786", - "namespace": "ImGui", - "ov_cimguiname": "igGetColumnIndex", + "funcname": "GetMapSize", + "location": "imgui_internal:683", + "ov_cimguiname": "ImPool_GetMapSize", "ret": "int", - "signature": "()", - "stname": "" + "signature": "()const", + "stname": "ImPool", + "templated": true } ], - "igGetColumnOffset": [ + "ImPool_GetOrAddByKey": [ { - "args": "(int column_index)", + "args": "(ImPool* self,ImGuiID key)", "argsT": [ { - "name": "column_index", - "type": "int" - } - ], - "argsoriginal": "(int column_index=-1)", - "call_args": "(column_index)", - "cimguiname": "igGetColumnOffset", - "defaults": { - "column_index": "-1" - }, - "funcname": "GetColumnOffset", - "location": "imgui:789", - "namespace": "ImGui", - "ov_cimguiname": "igGetColumnOffset", - "ret": "float", - "signature": "(int)", - "stname": "" - } - ], - "igGetColumnWidth": [ - { - "args": "(int column_index)", - "argsT": [ + "name": "self", + "type": "ImPool*" + }, { - "name": "column_index", - "type": "int" + "name": "key", + "type": "ImGuiID" } ], - "argsoriginal": "(int column_index=-1)", - "call_args": "(column_index)", - "cimguiname": "igGetColumnWidth", - "defaults": { - "column_index": "-1" - }, - "funcname": "GetColumnWidth", - "location": "imgui:787", - "namespace": "ImGui", - "ov_cimguiname": "igGetColumnWidth", - "ret": "float", - "signature": "(int)", - "stname": "" + "argsoriginal": "(ImGuiID key)", + "call_args": "(key)", + "cimguiname": "ImPool_GetOrAddByKey", + "defaults": {}, + "funcname": "GetOrAddByKey", + "location": "imgui_internal:671", + "ov_cimguiname": "ImPool_GetOrAddByKey", + "ret": "T*", + "signature": "(ImGuiID)", + "stname": "ImPool", + "templated": true } ], - "igGetColumnsCount": [ + "ImPool_ImPool": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetColumnsCount", + "cimguiname": "ImPool_ImPool", + "constructor": true, "defaults": {}, - "funcname": "GetColumnsCount", - "location": "imgui:791", - "namespace": "ImGui", - "ov_cimguiname": "igGetColumnsCount", - "ret": "int", + "funcname": "ImPool", + "location": "imgui_internal:666", + "ov_cimguiname": "ImPool_ImPool", "signature": "()", - "stname": "" + "stname": "ImPool", + "templated": true } ], - "igGetContentRegionAvail": [ + "ImPool_Remove": [ { - "args": "(ImVec2 *pOut)", + "args": "(ImPool* self,ImGuiID key,const T* p)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "self", + "type": "ImPool*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "p", + "type": "const T*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetContentRegionAvail", + "argsoriginal": "(ImGuiID key,const T* p)", + "call_args": "(key,p)", + "cimguiname": "ImPool_Remove", "defaults": {}, - "funcname": "GetContentRegionAvail", - "location": "imgui:389", - "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetContentRegionAvail", + "funcname": "Remove", + "location": "imgui_internal:675", + "ov_cimguiname": "ImPool_Remove_TPtr", "ret": "void", - "signature": "()", - "stname": "" + "signature": "(ImGuiID,const T*)", + "stname": "ImPool", + "templated": true + }, + { + "args": "(ImPool* self,ImGuiID key,ImPoolIdx idx)", + "argsT": [ + { + "name": "self", + "type": "ImPool*" + }, + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "idx", + "type": "ImPoolIdx" + } + ], + "argsoriginal": "(ImGuiID key,ImPoolIdx idx)", + "call_args": "(key,idx)", + "cimguiname": "ImPool_Remove", + "defaults": {}, + "funcname": "Remove", + "location": "imgui_internal:676", + "ov_cimguiname": "ImPool_Remove_PoolIdx", + "ret": "void", + "signature": "(ImGuiID,ImPoolIdx)", + "stname": "ImPool", + "templated": true } ], - "igGetContentRegionMax": [ + "ImPool_Reserve": [ { - "args": "(ImVec2 *pOut)", + "args": "(ImPool* self,int capacity)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "self", + "type": "ImPool*" + }, + { + "name": "capacity", + "type": "int" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetContentRegionMax", + "argsoriginal": "(int capacity)", + "call_args": "(capacity)", + "cimguiname": "ImPool_Reserve", "defaults": {}, - "funcname": "GetContentRegionMax", - "location": "imgui:390", - "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetContentRegionMax", + "funcname": "Reserve", + "location": "imgui_internal:677", + "ov_cimguiname": "ImPool_Reserve", "ret": "void", - "signature": "()", - "stname": "" + "signature": "(int)", + "stname": "ImPool", + "templated": true } ], - "igGetCurrentContext": [ + "ImPool_TryGetMapData": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetCurrentContext", + "args": "(ImPool* self,ImPoolIdx n)", + "argsT": [ + { + "name": "self", + "type": "ImPool*" + }, + { + "name": "n", + "type": "ImPoolIdx" + } + ], + "argsoriginal": "(ImPoolIdx n)", + "call_args": "(n)", + "cimguiname": "ImPool_TryGetMapData", "defaults": {}, - "funcname": "GetCurrentContext", - "location": "imgui:296", - "namespace": "ImGui", - "ov_cimguiname": "igGetCurrentContext", - "ret": "ImGuiContext*", - "signature": "()", - "stname": "" + "funcname": "TryGetMapData", + "location": "imgui_internal:684", + "ov_cimguiname": "ImPool_TryGetMapData", + "ret": "T*", + "signature": "(ImPoolIdx)", + "stname": "ImPool", + "templated": true } ], - "igGetCursorPos": [ + "ImPool_destroy": [ { - "args": "(ImVec2 *pOut)", + "args": "(ImPool* self)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "self", + "type": "ImPool*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetCursorPos", + "call_args": "(self)", + "cimguiname": "ImPool_destroy", "defaults": {}, - "funcname": "GetCursorPos", - "location": "imgui:456", - "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetCursorPos", + "destructor": true, + "location": "imgui_internal:667", + "ov_cimguiname": "ImPool_destroy", + "realdestructor": true, "ret": "void", - "signature": "()", - "stname": "" + "signature": "(ImPool*)", + "stname": "ImPool", + "templated": true } ], - "igGetCursorPosX": [ + "ImRect_Add": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetCursorPosX", + "args": "(ImRect* self,const ImVec2 p)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "p", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& p)", + "call_args": "(p)", + "cimguiname": "ImRect_Add", "defaults": {}, - "funcname": "GetCursorPosX", - "location": "imgui:457", - "namespace": "ImGui", - "ov_cimguiname": "igGetCursorPosX", - "ret": "float", - "signature": "()", - "stname": "" - } - ], - "igGetCursorPosY": [ + "funcname": "Add", + "location": "imgui_internal:543", + "ov_cimguiname": "ImRect_Add_Vec2", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImRect" + }, { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetCursorPosY", + "args": "(ImRect* self,const ImRect r)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "r", + "type": "const ImRect" + } + ], + "argsoriginal": "(const ImRect& r)", + "call_args": "(r)", + "cimguiname": "ImRect_Add", "defaults": {}, - "funcname": "GetCursorPosY", - "location": "imgui:458", - "namespace": "ImGui", - "ov_cimguiname": "igGetCursorPosY", - "ret": "float", - "signature": "()", - "stname": "" + "funcname": "Add", + "location": "imgui_internal:544", + "ov_cimguiname": "ImRect_Add_Rect", + "ret": "void", + "signature": "(const ImRect)", + "stname": "ImRect" } ], - "igGetCursorScreenPos": [ + "ImRect_ClipWith": [ { - "args": "(ImVec2 *pOut)", + "args": "(ImRect* self,const ImRect r)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "self", + "type": "ImRect*" + }, + { + "name": "r", + "type": "const ImRect" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetCursorScreenPos", + "argsoriginal": "(const ImRect& r)", + "call_args": "(r)", + "cimguiname": "ImRect_ClipWith", "defaults": {}, - "funcname": "GetCursorScreenPos", - "location": "imgui:463", - "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetCursorScreenPos", + "funcname": "ClipWith", + "location": "imgui_internal:550", + "ov_cimguiname": "ImRect_ClipWith", "ret": "void", - "signature": "()", - "stname": "" + "signature": "(const ImRect)", + "stname": "ImRect" } ], - "igGetCursorStartPos": [ + "ImRect_ClipWithFull": [ { - "args": "(ImVec2 *pOut)", + "args": "(ImRect* self,const ImRect r)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "self", + "type": "ImRect*" + }, + { + "name": "r", + "type": "const ImRect" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetCursorStartPos", + "argsoriginal": "(const ImRect& r)", + "call_args": "(r)", + "cimguiname": "ImRect_ClipWithFull", "defaults": {}, - "funcname": "GetCursorStartPos", - "location": "imgui:462", - "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetCursorStartPos", + "funcname": "ClipWithFull", + "location": "imgui_internal:551", + "ov_cimguiname": "ImRect_ClipWithFull", "ret": "void", - "signature": "()", - "stname": "" + "signature": "(const ImRect)", + "stname": "ImRect" } ], - "igGetDragDropPayload": [ + "ImRect_Contains": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetDragDropPayload", + "args": "(ImRect* self,const ImVec2 p)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "p", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& p)", + "call_args": "(p)", + "cimguiname": "ImRect_Contains", "defaults": {}, - "funcname": "GetDragDropPayload", - "location": "imgui:843", - "namespace": "ImGui", - "ov_cimguiname": "igGetDragDropPayload", - "ret": "const ImGuiPayload*", - "signature": "()", - "stname": "" - } - ], - "igGetDrawData": [ + "funcname": "Contains", + "location": "imgui_internal:540", + "ov_cimguiname": "ImRect_Contains_Vec2", + "ret": "bool", + "signature": "(const ImVec2)const", + "stname": "ImRect" + }, { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetDrawData", + "args": "(ImRect* self,const ImRect r)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "r", + "type": "const ImRect" + } + ], + "argsoriginal": "(const ImRect& r)", + "call_args": "(r)", + "cimguiname": "ImRect_Contains", "defaults": {}, - "funcname": "GetDrawData", - "location": "imgui:305", - "namespace": "ImGui", - "ov_cimguiname": "igGetDrawData", - "ret": "ImDrawData*", - "signature": "()", - "stname": "" + "funcname": "Contains", + "location": "imgui_internal:541", + "ov_cimguiname": "ImRect_Contains_Rect", + "ret": "bool", + "signature": "(const ImRect)const", + "stname": "ImRect" } ], - "igGetDrawListSharedData": [ + "ImRect_Expand": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetDrawListSharedData", + "args": "(ImRect* self,const float amount)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "amount", + "type": "const float" + } + ], + "argsoriginal": "(const float amount)", + "call_args": "(amount)", + "cimguiname": "ImRect_Expand", "defaults": {}, - "funcname": "GetDrawListSharedData", - "location": "imgui:900", - "namespace": "ImGui", - "ov_cimguiname": "igGetDrawListSharedData", - "ret": "ImDrawListSharedData*", - "signature": "()", - "stname": "" + "funcname": "Expand", + "location": "imgui_internal:545", + "ov_cimguiname": "ImRect_Expand_Float", + "ret": "void", + "signature": "(const float)", + "stname": "ImRect" + }, + { + "args": "(ImRect* self,const ImVec2 amount)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "amount", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& amount)", + "call_args": "(amount)", + "cimguiname": "ImRect_Expand", + "defaults": {}, + "funcname": "Expand", + "location": "imgui_internal:546", + "ov_cimguiname": "ImRect_Expand_Vec2", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImRect" } ], - "igGetFont": [ + "ImRect_Floor": [ { - "args": "()", - "argsT": [], + "args": "(ImRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetFont", + "cimguiname": "ImRect_Floor", "defaults": {}, - "funcname": "GetFont", - "location": "imgui:432", - "namespace": "ImGui", - "ov_cimguiname": "igGetFont", - "ret": "ImFont*", + "funcname": "Floor", + "location": "imgui_internal:552", + "ov_cimguiname": "ImRect_Floor", + "ret": "void", "signature": "()", - "stname": "" + "stname": "ImRect" } ], - "igGetFontSize": [ + "ImRect_GetArea": [ { - "args": "()", - "argsT": [], + "args": "(ImRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetFontSize", + "cimguiname": "ImRect_GetArea", "defaults": {}, - "funcname": "GetFontSize", - "location": "imgui:433", - "namespace": "ImGui", - "ov_cimguiname": "igGetFontSize", + "funcname": "GetArea", + "location": "imgui_internal:535", + "ov_cimguiname": "ImRect_GetArea", "ret": "float", - "signature": "()", - "stname": "" + "signature": "()const", + "stname": "ImRect" } ], - "igGetFontTexUvWhitePixel": [ + "ImRect_GetBL": [ { - "args": "(ImVec2 *pOut)", + "args": "(ImVec2 *pOut,ImRect* self)", "argsT": [ { "name": "pOut", "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImRect*" } ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetFontTexUvWhitePixel", + "cimguiname": "ImRect_GetBL", "defaults": {}, - "funcname": "GetFontTexUvWhitePixel", - "location": "imgui:434", - "namespace": "ImGui", + "funcname": "GetBL", + "location": "imgui_internal:538", "nonUDT": 1, - "ov_cimguiname": "igGetFontTexUvWhitePixel", + "ov_cimguiname": "ImRect_GetBL", "ret": "void", - "signature": "()", - "stname": "" + "signature": "()const", + "stname": "ImRect" } ], - "igGetForegroundDrawList": [ + "ImRect_GetBR": [ { - "args": "()", - "argsT": [], + "args": "(ImVec2 *pOut,ImRect* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImRect*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetForegroundDrawList", + "cimguiname": "ImRect_GetBR", "defaults": {}, - "funcname": "GetForegroundDrawList", - "location": "imgui:891", - "namespace": "ImGui", - "ov_cimguiname": "igGetForegroundDrawList_Nil", - "ret": "ImDrawList*", - "signature": "()", - "stname": "" - }, + "funcname": "GetBR", + "location": "imgui_internal:539", + "nonUDT": 1, + "ov_cimguiname": "ImRect_GetBR", + "ret": "void", + "signature": "()const", + "stname": "ImRect" + } + ], + "ImRect_GetCenter": [ { - "args": "(ImGuiViewport* viewport)", + "args": "(ImVec2 *pOut,ImRect* self)", "argsT": [ { - "name": "viewport", - "type": "ImGuiViewport*" + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImRect*" } ], - "argsoriginal": "(ImGuiViewport* viewport)", - "call_args": "(viewport)", - "cimguiname": "igGetForegroundDrawList", + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImRect_GetCenter", "defaults": {}, - "funcname": "GetForegroundDrawList", - "location": "imgui:893", - "namespace": "ImGui", - "ov_cimguiname": "igGetForegroundDrawList_ViewportPtr", - "ret": "ImDrawList*", - "signature": "(ImGuiViewport*)", - "stname": "" + "funcname": "GetCenter", + "location": "imgui_internal:531", + "nonUDT": 1, + "ov_cimguiname": "ImRect_GetCenter", + "ret": "void", + "signature": "()const", + "stname": "ImRect" } ], - "igGetFrameCount": [ + "ImRect_GetHeight": [ { - "args": "()", - "argsT": [], + "args": "(ImRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetFrameCount", + "cimguiname": "ImRect_GetHeight", "defaults": {}, - "funcname": "GetFrameCount", - "location": "imgui:899", - "namespace": "ImGui", - "ov_cimguiname": "igGetFrameCount", - "ret": "int", - "signature": "()", - "stname": "" + "funcname": "GetHeight", + "location": "imgui_internal:534", + "ov_cimguiname": "ImRect_GetHeight", + "ret": "float", + "signature": "()const", + "stname": "ImRect" } ], - "igGetFrameHeight": [ + "ImRect_GetSize": [ { - "args": "()", - "argsT": [], + "args": "(ImVec2 *pOut,ImRect* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImRect*" + } + ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetFrameHeight", + "cimguiname": "ImRect_GetSize", "defaults": {}, - "funcname": "GetFrameHeight", - "location": "imgui:468", - "namespace": "ImGui", - "ov_cimguiname": "igGetFrameHeight", + "funcname": "GetSize", + "location": "imgui_internal:532", + "nonUDT": 1, + "ov_cimguiname": "ImRect_GetSize", + "ret": "void", + "signature": "()const", + "stname": "ImRect" + } + ], + "ImRect_GetTL": [ + { + "args": "(ImVec2 *pOut,ImRect* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImRect*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImRect_GetTL", + "defaults": {}, + "funcname": "GetTL", + "location": "imgui_internal:536", + "nonUDT": 1, + "ov_cimguiname": "ImRect_GetTL", + "ret": "void", + "signature": "()const", + "stname": "ImRect" + } + ], + "ImRect_GetTR": [ + { + "args": "(ImVec2 *pOut,ImRect* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "self", + "type": "ImRect*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImRect_GetTR", + "defaults": {}, + "funcname": "GetTR", + "location": "imgui_internal:537", + "nonUDT": 1, + "ov_cimguiname": "ImRect_GetTR", + "ret": "void", + "signature": "()const", + "stname": "ImRect" + } + ], + "ImRect_GetWidth": [ + { + "args": "(ImRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImRect_GetWidth", + "defaults": {}, + "funcname": "GetWidth", + "location": "imgui_internal:533", + "ov_cimguiname": "ImRect_GetWidth", "ret": "float", - "signature": "()", - "stname": "" + "signature": "()const", + "stname": "ImRect" } ], - "igGetFrameHeightWithSpacing": [ + "ImRect_ImRect": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetFrameHeightWithSpacing", + "cimguiname": "ImRect_ImRect", + "constructor": true, "defaults": {}, - "funcname": "GetFrameHeightWithSpacing", - "location": "imgui:469", + "funcname": "ImRect", + "location": "imgui_internal:526", + "ov_cimguiname": "ImRect_ImRect_Nil", + "signature": "()", + "stname": "ImRect" + }, + { + "args": "(const ImVec2 min,const ImVec2 max)", + "argsT": [ + { + "name": "min", + "type": "const ImVec2" + }, + { + "name": "max", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& min,const ImVec2& max)", + "call_args": "(min,max)", + "cimguiname": "ImRect_ImRect", + "constructor": true, + "defaults": {}, + "funcname": "ImRect", + "location": "imgui_internal:527", + "ov_cimguiname": "ImRect_ImRect_Vec2", + "signature": "(const ImVec2,const ImVec2)", + "stname": "ImRect" + }, + { + "args": "(const ImVec4 v)", + "argsT": [ + { + "name": "v", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& v)", + "call_args": "(v)", + "cimguiname": "ImRect_ImRect", + "constructor": true, + "defaults": {}, + "funcname": "ImRect", + "location": "imgui_internal:528", + "ov_cimguiname": "ImRect_ImRect_Vec4", + "signature": "(const ImVec4)", + "stname": "ImRect" + }, + { + "args": "(float x1,float y1,float x2,float y2)", + "argsT": [ + { + "name": "x1", + "type": "float" + }, + { + "name": "y1", + "type": "float" + }, + { + "name": "x2", + "type": "float" + }, + { + "name": "y2", + "type": "float" + } + ], + "argsoriginal": "(float x1,float y1,float x2,float y2)", + "call_args": "(x1,y1,x2,y2)", + "cimguiname": "ImRect_ImRect", + "constructor": true, + "defaults": {}, + "funcname": "ImRect", + "location": "imgui_internal:529", + "ov_cimguiname": "ImRect_ImRect_Float", + "signature": "(float,float,float,float)", + "stname": "ImRect" + } + ], + "ImRect_IsInverted": [ + { + "args": "(ImRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImRect_IsInverted", + "defaults": {}, + "funcname": "IsInverted", + "location": "imgui_internal:553", + "ov_cimguiname": "ImRect_IsInverted", + "ret": "bool", + "signature": "()const", + "stname": "ImRect" + } + ], + "ImRect_Overlaps": [ + { + "args": "(ImRect* self,const ImRect r)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "r", + "type": "const ImRect" + } + ], + "argsoriginal": "(const ImRect& r)", + "call_args": "(r)", + "cimguiname": "ImRect_Overlaps", + "defaults": {}, + "funcname": "Overlaps", + "location": "imgui_internal:542", + "ov_cimguiname": "ImRect_Overlaps", + "ret": "bool", + "signature": "(const ImRect)const", + "stname": "ImRect" + } + ], + "ImRect_ToVec4": [ + { + "args": "(ImVec4 *pOut,ImRect* self)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec4*" + }, + { + "name": "self", + "type": "ImRect*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImRect_ToVec4", + "defaults": {}, + "funcname": "ToVec4", + "location": "imgui_internal:554", + "nonUDT": 1, + "ov_cimguiname": "ImRect_ToVec4", + "ret": "void", + "signature": "()const", + "stname": "ImRect" + } + ], + "ImRect_Translate": [ + { + "args": "(ImRect* self,const ImVec2 d)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "d", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& d)", + "call_args": "(d)", + "cimguiname": "ImRect_Translate", + "defaults": {}, + "funcname": "Translate", + "location": "imgui_internal:547", + "ov_cimguiname": "ImRect_Translate", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "ImRect" + } + ], + "ImRect_TranslateX": [ + { + "args": "(ImRect* self,float dx)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "dx", + "type": "float" + } + ], + "argsoriginal": "(float dx)", + "call_args": "(dx)", + "cimguiname": "ImRect_TranslateX", + "defaults": {}, + "funcname": "TranslateX", + "location": "imgui_internal:548", + "ov_cimguiname": "ImRect_TranslateX", + "ret": "void", + "signature": "(float)", + "stname": "ImRect" + } + ], + "ImRect_TranslateY": [ + { + "args": "(ImRect* self,float dy)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "dy", + "type": "float" + } + ], + "argsoriginal": "(float dy)", + "call_args": "(dy)", + "cimguiname": "ImRect_TranslateY", + "defaults": {}, + "funcname": "TranslateY", + "location": "imgui_internal:549", + "ov_cimguiname": "ImRect_TranslateY", + "ret": "void", + "signature": "(float)", + "stname": "ImRect" + } + ], + "ImRect_destroy": [ + { + "args": "(ImRect* self)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + } + ], + "call_args": "(self)", + "cimguiname": "ImRect_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImRect_destroy", + "ret": "void", + "signature": "(ImRect*)", + "stname": "ImRect" + } + ], + "ImSpanAllocator_GetArenaSizeInBytes": [ + { + "args": "(ImSpanAllocator* self)", + "argsT": [ + { + "name": "self", + "type": "ImSpanAllocator*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImSpanAllocator_GetArenaSizeInBytes", + "defaults": {}, + "funcname": "GetArenaSizeInBytes", + "location": "imgui_internal:646", + "ov_cimguiname": "ImSpanAllocator_GetArenaSizeInBytes", + "ret": "int", + "signature": "()", + "stname": "ImSpanAllocator", + "templated": true + } + ], + "ImSpanAllocator_GetSpanPtrBegin": [ + { + "args": "(ImSpanAllocator* self,int n)", + "argsT": [ + { + "name": "self", + "type": "ImSpanAllocator*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImSpanAllocator_GetSpanPtrBegin", + "defaults": {}, + "funcname": "GetSpanPtrBegin", + "location": "imgui_internal:648", + "ov_cimguiname": "ImSpanAllocator_GetSpanPtrBegin", + "ret": "void*", + "signature": "(int)", + "stname": "ImSpanAllocator", + "templated": true + } + ], + "ImSpanAllocator_GetSpanPtrEnd": [ + { + "args": "(ImSpanAllocator* self,int n)", + "argsT": [ + { + "name": "self", + "type": "ImSpanAllocator*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(int n)", + "call_args": "(n)", + "cimguiname": "ImSpanAllocator_GetSpanPtrEnd", + "defaults": {}, + "funcname": "GetSpanPtrEnd", + "location": "imgui_internal:649", + "ov_cimguiname": "ImSpanAllocator_GetSpanPtrEnd", + "ret": "void*", + "signature": "(int)", + "stname": "ImSpanAllocator", + "templated": true + } + ], + "ImSpanAllocator_ImSpanAllocator": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImSpanAllocator_ImSpanAllocator", + "constructor": true, + "defaults": {}, + "funcname": "ImSpanAllocator", + "location": "imgui_internal:644", + "ov_cimguiname": "ImSpanAllocator_ImSpanAllocator", + "signature": "()", + "stname": "ImSpanAllocator", + "templated": true + } + ], + "ImSpanAllocator_Reserve": [ + { + "args": "(ImSpanAllocator* self,int n,size_t sz,int a)", + "argsT": [ + { + "name": "self", + "type": "ImSpanAllocator*" + }, + { + "name": "n", + "type": "int" + }, + { + "name": "sz", + "type": "size_t" + }, + { + "name": "a", + "type": "int" + } + ], + "argsoriginal": "(int n,size_t sz,int a=4)", + "call_args": "(n,sz,a)", + "cimguiname": "ImSpanAllocator_Reserve", + "defaults": { + "a": "4" + }, + "funcname": "Reserve", + "location": "imgui_internal:645", + "ov_cimguiname": "ImSpanAllocator_Reserve", + "ret": "void", + "signature": "(int,size_t,int)", + "stname": "ImSpanAllocator", + "templated": true + } + ], + "ImSpanAllocator_SetArenaBasePtr": [ + { + "args": "(ImSpanAllocator* self,void* base_ptr)", + "argsT": [ + { + "name": "self", + "type": "ImSpanAllocator*" + }, + { + "name": "base_ptr", + "type": "void*" + } + ], + "argsoriginal": "(void* base_ptr)", + "call_args": "(base_ptr)", + "cimguiname": "ImSpanAllocator_SetArenaBasePtr", + "defaults": {}, + "funcname": "SetArenaBasePtr", + "location": "imgui_internal:647", + "ov_cimguiname": "ImSpanAllocator_SetArenaBasePtr", + "ret": "void", + "signature": "(void*)", + "stname": "ImSpanAllocator", + "templated": true + } + ], + "ImSpanAllocator_destroy": [ + { + "args": "(ImSpanAllocator* self)", + "argsT": [ + { + "name": "self", + "type": "ImSpanAllocator*" + } + ], + "call_args": "(self)", + "cimguiname": "ImSpanAllocator_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImSpanAllocator_destroy", + "ret": "void", + "signature": "(ImSpanAllocator*)", + "stname": "ImSpanAllocator", + "templated": true + } + ], + "ImSpan_ImSpan": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImSpan_ImSpan", + "constructor": true, + "defaults": {}, + "funcname": "ImSpan", + "location": "imgui_internal:612", + "ov_cimguiname": "ImSpan_ImSpan_Nil", + "signature": "()", + "stname": "ImSpan", + "templated": true + }, + { + "args": "(T* data,int size)", + "argsT": [ + { + "name": "data", + "type": "T*" + }, + { + "name": "size", + "type": "int" + } + ], + "argsoriginal": "(T* data,int size)", + "call_args": "(data,size)", + "cimguiname": "ImSpan_ImSpan", + "constructor": true, + "defaults": {}, + "funcname": "ImSpan", + "location": "imgui_internal:613", + "ov_cimguiname": "ImSpan_ImSpan_TPtrInt", + "signature": "(T*,int)", + "stname": "ImSpan", + "templated": true + }, + { + "args": "(T* data,T* data_end)", + "argsT": [ + { + "name": "data", + "type": "T*" + }, + { + "name": "data_end", + "type": "T*" + } + ], + "argsoriginal": "(T* data,T* data_end)", + "call_args": "(data,data_end)", + "cimguiname": "ImSpan_ImSpan", + "constructor": true, + "defaults": {}, + "funcname": "ImSpan", + "location": "imgui_internal:614", + "ov_cimguiname": "ImSpan_ImSpan_TPtrTPtr", + "signature": "(T*,T*)", + "stname": "ImSpan", + "templated": true + } + ], + "ImSpan_begin": [ + { + "args": "(ImSpan* self)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImSpan_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui_internal:623", + "ov_cimguiname": "ImSpan_begin_Nil", + "ret": "T*", + "signature": "()", + "stname": "ImSpan", + "templated": true + }, + { + "args": "(ImSpan* self)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImSpan_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui_internal:624", + "ov_cimguiname": "ImSpan_begin__const", + "ret": "const T*", + "signature": "()const", + "stname": "ImSpan", + "templated": true + } + ], + "ImSpan_destroy": [ + { + "args": "(ImSpan* self)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + } + ], + "call_args": "(self)", + "cimguiname": "ImSpan_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImSpan_destroy", + "ret": "void", + "signature": "(ImSpan*)", + "stname": "ImSpan", + "templated": true + } + ], + "ImSpan_end": [ + { + "args": "(ImSpan* self)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImSpan_end", + "defaults": {}, + "funcname": "end", + "location": "imgui_internal:625", + "ov_cimguiname": "ImSpan_end_Nil", + "ret": "T*", + "signature": "()", + "stname": "ImSpan", + "templated": true + }, + { + "args": "(ImSpan* self)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImSpan_end", + "defaults": {}, + "funcname": "end", + "location": "imgui_internal:626", + "ov_cimguiname": "ImSpan_end__const", + "ret": "const T*", + "signature": "()const", + "stname": "ImSpan", + "templated": true + } + ], + "ImSpan_index_from_ptr": [ + { + "args": "(ImSpan* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImSpan_index_from_ptr", + "defaults": {}, + "funcname": "index_from_ptr", + "location": "imgui_internal:629", + "ov_cimguiname": "ImSpan_index_from_ptr", + "ret": "int", + "signature": "(const T*)const", + "stname": "ImSpan", + "templated": true + } + ], + "ImSpan_set": [ + { + "args": "(ImSpan* self,T* data,int size)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + }, + { + "name": "data", + "type": "T*" + }, + { + "name": "size", + "type": "int" + } + ], + "argsoriginal": "(T* data,int size)", + "call_args": "(data,size)", + "cimguiname": "ImSpan_set", + "defaults": {}, + "funcname": "set", + "location": "imgui_internal:616", + "ov_cimguiname": "ImSpan_set_Int", + "ret": "void", + "signature": "(T*,int)", + "stname": "ImSpan", + "templated": true + }, + { + "args": "(ImSpan* self,T* data,T* data_end)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + }, + { + "name": "data", + "type": "T*" + }, + { + "name": "data_end", + "type": "T*" + } + ], + "argsoriginal": "(T* data,T* data_end)", + "call_args": "(data,data_end)", + "cimguiname": "ImSpan_set", + "defaults": {}, + "funcname": "set", + "location": "imgui_internal:617", + "ov_cimguiname": "ImSpan_set_TPtr", + "ret": "void", + "signature": "(T*,T*)", + "stname": "ImSpan", + "templated": true + } + ], + "ImSpan_size": [ + { + "args": "(ImSpan* self)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImSpan_size", + "defaults": {}, + "funcname": "size", + "location": "imgui_internal:618", + "ov_cimguiname": "ImSpan_size", + "ret": "int", + "signature": "()const", + "stname": "ImSpan", + "templated": true + } + ], + "ImSpan_size_in_bytes": [ + { + "args": "(ImSpan* self)", + "argsT": [ + { + "name": "self", + "type": "ImSpan*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImSpan_size_in_bytes", + "defaults": {}, + "funcname": "size_in_bytes", + "location": "imgui_internal:619", + "ov_cimguiname": "ImSpan_size_in_bytes", + "ret": "int", + "signature": "()const", + "stname": "ImSpan", + "templated": true + } + ], + "ImVec1_ImVec1": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVec1_ImVec1", + "constructor": true, + "defaults": {}, + "funcname": "ImVec1", + "location": "imgui_internal:506", + "ov_cimguiname": "ImVec1_ImVec1_Nil", + "signature": "()", + "stname": "ImVec1" + }, + { + "args": "(float _x)", + "argsT": [ + { + "name": "_x", + "type": "float" + } + ], + "argsoriginal": "(float _x)", + "call_args": "(_x)", + "cimguiname": "ImVec1_ImVec1", + "constructor": true, + "defaults": {}, + "funcname": "ImVec1", + "location": "imgui_internal:507", + "ov_cimguiname": "ImVec1_ImVec1_Float", + "signature": "(float)", + "stname": "ImVec1" + } + ], + "ImVec1_destroy": [ + { + "args": "(ImVec1* self)", + "argsT": [ + { + "name": "self", + "type": "ImVec1*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVec1_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImVec1_destroy", + "ret": "void", + "signature": "(ImVec1*)", + "stname": "ImVec1" + } + ], + "ImVec2_ImVec2": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVec2_ImVec2", + "constructor": true, + "defaults": {}, + "funcname": "ImVec2", + "location": "imgui:262", + "ov_cimguiname": "ImVec2_ImVec2_Nil", + "signature": "()", + "stname": "ImVec2" + }, + { + "args": "(float _x,float _y)", + "argsT": [ + { + "name": "_x", + "type": "float" + }, + { + "name": "_y", + "type": "float" + } + ], + "argsoriginal": "(float _x,float _y)", + "call_args": "(_x,_y)", + "cimguiname": "ImVec2_ImVec2", + "constructor": true, + "defaults": {}, + "funcname": "ImVec2", + "location": "imgui:263", + "ov_cimguiname": "ImVec2_ImVec2_Float", + "signature": "(float,float)", + "stname": "ImVec2" + } + ], + "ImVec2_destroy": [ + { + "args": "(ImVec2* self)", + "argsT": [ + { + "name": "self", + "type": "ImVec2*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVec2_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImVec2_destroy", + "ret": "void", + "signature": "(ImVec2*)", + "stname": "ImVec2" + } + ], + "ImVec2ih_ImVec2ih": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVec2ih_ImVec2ih", + "constructor": true, + "defaults": {}, + "funcname": "ImVec2ih", + "location": "imgui_internal:514", + "ov_cimguiname": "ImVec2ih_ImVec2ih_Nil", + "signature": "()", + "stname": "ImVec2ih" + }, + { + "args": "(short _x,short _y)", + "argsT": [ + { + "name": "_x", + "type": "short" + }, + { + "name": "_y", + "type": "short" + } + ], + "argsoriginal": "(short _x,short _y)", + "call_args": "(_x,_y)", + "cimguiname": "ImVec2ih_ImVec2ih", + "constructor": true, + "defaults": {}, + "funcname": "ImVec2ih", + "location": "imgui_internal:515", + "ov_cimguiname": "ImVec2ih_ImVec2ih_short", + "signature": "(short,short)", + "stname": "ImVec2ih" + }, + { + "args": "(const ImVec2 rhs)", + "argsT": [ + { + "name": "rhs", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& rhs)", + "call_args": "(rhs)", + "cimguiname": "ImVec2ih_ImVec2ih", + "constructor": true, + "defaults": {}, + "funcname": "ImVec2ih", + "location": "imgui_internal:516", + "ov_cimguiname": "ImVec2ih_ImVec2ih_Vec2", + "signature": "(const ImVec2)", + "stname": "ImVec2ih" + } + ], + "ImVec2ih_destroy": [ + { + "args": "(ImVec2ih* self)", + "argsT": [ + { + "name": "self", + "type": "ImVec2ih*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVec2ih_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImVec2ih_destroy", + "ret": "void", + "signature": "(ImVec2ih*)", + "stname": "ImVec2ih" + } + ], + "ImVec4_ImVec4": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVec4_ImVec4", + "constructor": true, + "defaults": {}, + "funcname": "ImVec4", + "location": "imgui:275", + "ov_cimguiname": "ImVec4_ImVec4_Nil", + "signature": "()", + "stname": "ImVec4" + }, + { + "args": "(float _x,float _y,float _z,float _w)", + "argsT": [ + { + "name": "_x", + "type": "float" + }, + { + "name": "_y", + "type": "float" + }, + { + "name": "_z", + "type": "float" + }, + { + "name": "_w", + "type": "float" + } + ], + "argsoriginal": "(float _x,float _y,float _z,float _w)", + "call_args": "(_x,_y,_z,_w)", + "cimguiname": "ImVec4_ImVec4", + "constructor": true, + "defaults": {}, + "funcname": "ImVec4", + "location": "imgui:276", + "ov_cimguiname": "ImVec4_ImVec4_Float", + "signature": "(float,float,float,float)", + "stname": "ImVec4" + } + ], + "ImVec4_destroy": [ + { + "args": "(ImVec4* self)", + "argsT": [ + { + "name": "self", + "type": "ImVec4*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVec4_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImVec4_destroy", + "ret": "void", + "signature": "(ImVec4*)", + "stname": "ImVec4" + } + ], + "ImVector_ImVector": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_ImVector", + "constructor": true, + "defaults": {}, + "funcname": "ImVector", + "location": "imgui:1850", + "ov_cimguiname": "ImVector_ImVector_Nil", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(const ImVector_T src)", + "argsT": [ + { + "name": "src", + "type": "const ImVector_T " + } + ], + "argsoriginal": "(const ImVector& src)", + "call_args": "(src)", + "cimguiname": "ImVector_ImVector", + "constructor": true, + "defaults": {}, + "funcname": "ImVector", + "location": "imgui:1851", + "ov_cimguiname": "ImVector_ImVector_Vector_T_", + "signature": "(const ImVector_T )", + "stname": "ImVector", + "templated": true + } + ], + "ImVector__grow_capacity": [ + { + "args": "(ImVector* self,int sz)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "sz", + "type": "int" + } + ], + "argsoriginal": "(int sz)", + "call_args": "(sz)", + "cimguiname": "ImVector__grow_capacity", + "defaults": {}, + "funcname": "_grow_capacity", + "location": "imgui:1877", + "ov_cimguiname": "ImVector__grow_capacity", + "ret": "int", + "signature": "(int)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_back": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_back", + "defaults": {}, + "funcname": "back", + "location": "imgui:1873", + "ov_cimguiname": "ImVector_back_Nil", + "ret": "T*", + "retref": "&", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_back", + "defaults": {}, + "funcname": "back", + "location": "imgui:1874", + "ov_cimguiname": "ImVector_back__const", + "ret": "const T*", + "retref": "&", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_begin": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui:1867", + "ov_cimguiname": "ImVector_begin_Nil", + "ret": "T*", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_begin", + "defaults": {}, + "funcname": "begin", + "location": "imgui:1868", + "ov_cimguiname": "ImVector_begin__const", + "ret": "const T*", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_capacity": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_capacity", + "defaults": {}, + "funcname": "capacity", + "location": "imgui:1863", + "ov_cimguiname": "ImVector_capacity", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_clear": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_clear", + "defaults": {}, + "funcname": "clear", + "location": "imgui:1855", + "ov_cimguiname": "ImVector_clear", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_clear_delete": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_clear_delete", + "defaults": {}, + "funcname": "clear_delete", + "location": "imgui:1856", + "ov_cimguiname": "ImVector_clear_delete", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_clear_destruct": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_clear_destruct", + "defaults": {}, + "funcname": "clear_destruct", + "location": "imgui:1857", + "ov_cimguiname": "ImVector_clear_destruct", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_contains": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_contains", + "defaults": {}, + "funcname": "contains", + "location": "imgui:1892", + "ov_cimguiname": "ImVector_contains", + "ret": "bool", + "signature": "(const T)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_destroy": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "call_args": "(self)", + "cimguiname": "ImVector_destroy", + "defaults": {}, + "destructor": true, + "location": "imgui:1853", + "ov_cimguiname": "ImVector_destroy", + "realdestructor": true, + "ret": "void", + "signature": "(ImVector*)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_empty": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_empty", + "defaults": {}, + "funcname": "empty", + "location": "imgui:1859", + "ov_cimguiname": "ImVector_empty", + "ret": "bool", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_end": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_end", + "defaults": {}, + "funcname": "end", + "location": "imgui:1869", + "ov_cimguiname": "ImVector_end_Nil", + "ret": "T*", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_end", + "defaults": {}, + "funcname": "end", + "location": "imgui:1870", + "ov_cimguiname": "ImVector_end__const", + "ret": "const T*", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_erase": [ + { + "args": "(ImVector* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImVector_erase", + "defaults": {}, + "funcname": "erase", + "location": "imgui:1888", + "ov_cimguiname": "ImVector_erase_Nil", + "ret": "T*", + "signature": "(const T*)", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self,const T* it,const T* it_last)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + }, + { + "name": "it_last", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it,const T* it_last)", + "call_args": "(it,it_last)", + "cimguiname": "ImVector_erase", + "defaults": {}, + "funcname": "erase", + "location": "imgui:1889", + "ov_cimguiname": "ImVector_erase_TPtr", + "ret": "T*", + "signature": "(const T*,const T*)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_erase_unsorted": [ + { + "args": "(ImVector* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImVector_erase_unsorted", + "defaults": {}, + "funcname": "erase_unsorted", + "location": "imgui:1890", + "ov_cimguiname": "ImVector_erase_unsorted", + "ret": "T*", + "signature": "(const T*)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_find": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find", + "defaults": {}, + "funcname": "find", + "location": "imgui:1893", + "ov_cimguiname": "ImVector_find_Nil", + "ret": "T*", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find", + "defaults": {}, + "funcname": "find", + "location": "imgui:1894", + "ov_cimguiname": "ImVector_find__const", + "ret": "const T*", + "signature": "(const T)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_find_erase": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find_erase", + "defaults": {}, + "funcname": "find_erase", + "location": "imgui:1895", + "ov_cimguiname": "ImVector_find_erase", + "ret": "bool", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_find_erase_unsorted": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find_erase_unsorted", + "defaults": {}, + "funcname": "find_erase_unsorted", + "location": "imgui:1896", + "ov_cimguiname": "ImVector_find_erase_unsorted", + "ret": "bool", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_front": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_front", + "defaults": {}, + "funcname": "front", + "location": "imgui:1871", + "ov_cimguiname": "ImVector_front_Nil", + "ret": "T*", + "retref": "&", + "signature": "()", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_front", + "defaults": {}, + "funcname": "front", + "location": "imgui:1872", + "ov_cimguiname": "ImVector_front__const", + "ret": "const T*", + "retref": "&", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_index_from_ptr": [ + { + "args": "(ImVector* self,const T* it)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + } + ], + "argsoriginal": "(const T* it)", + "call_args": "(it)", + "cimguiname": "ImVector_index_from_ptr", + "defaults": {}, + "funcname": "index_from_ptr", + "location": "imgui:1897", + "ov_cimguiname": "ImVector_index_from_ptr", + "ret": "int", + "signature": "(const T*)const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_insert": [ + { + "args": "(ImVector* self,const T* it,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "it", + "type": "const T*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T* it,const T& v)", + "call_args": "(it,v)", + "cimguiname": "ImVector_insert", + "defaults": {}, + "funcname": "insert", + "location": "imgui:1891", + "ov_cimguiname": "ImVector_insert", + "ret": "T*", + "signature": "(const T*,const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_max_size": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_max_size", + "defaults": {}, + "funcname": "max_size", + "location": "imgui:1862", + "ov_cimguiname": "ImVector_max_size", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_pop_back": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_pop_back", + "defaults": {}, + "funcname": "pop_back", + "location": "imgui:1886", + "ov_cimguiname": "ImVector_pop_back", + "ret": "void", + "signature": "()", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_push_back": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_push_back", + "defaults": {}, + "funcname": "push_back", + "location": "imgui:1885", + "ov_cimguiname": "ImVector_push_back", + "ret": "void", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_push_front": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_push_front", + "defaults": {}, + "funcname": "push_front", + "location": "imgui:1887", + "ov_cimguiname": "ImVector_push_front", + "ret": "void", + "signature": "(const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_reserve": [ + { + "args": "(ImVector* self,int new_capacity)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_capacity", + "type": "int" + } + ], + "argsoriginal": "(int new_capacity)", + "call_args": "(new_capacity)", + "cimguiname": "ImVector_reserve", + "defaults": {}, + "funcname": "reserve", + "location": "imgui:1881", + "ov_cimguiname": "ImVector_reserve", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_reserve_discard": [ + { + "args": "(ImVector* self,int new_capacity)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_capacity", + "type": "int" + } + ], + "argsoriginal": "(int new_capacity)", + "call_args": "(new_capacity)", + "cimguiname": "ImVector_reserve_discard", + "defaults": {}, + "funcname": "reserve_discard", + "location": "imgui:1882", + "ov_cimguiname": "ImVector_reserve_discard", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_resize": [ + { + "args": "(ImVector* self,int new_size)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_size", + "type": "int" + } + ], + "argsoriginal": "(int new_size)", + "call_args": "(new_size)", + "cimguiname": "ImVector_resize", + "defaults": {}, + "funcname": "resize", + "location": "imgui:1878", + "ov_cimguiname": "ImVector_resize_Nil", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + }, + { + "args": "(ImVector* self,int new_size,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_size", + "type": "int" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(int new_size,const T& v)", + "call_args": "(new_size,v)", + "cimguiname": "ImVector_resize", + "defaults": {}, + "funcname": "resize", + "location": "imgui:1879", + "ov_cimguiname": "ImVector_resize_T", + "ret": "void", + "signature": "(int,const T)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_shrink": [ + { + "args": "(ImVector* self,int new_size)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "new_size", + "type": "int" + } + ], + "argsoriginal": "(int new_size)", + "call_args": "(new_size)", + "cimguiname": "ImVector_shrink", + "defaults": {}, + "funcname": "shrink", + "location": "imgui:1880", + "ov_cimguiname": "ImVector_shrink", + "ret": "void", + "signature": "(int)", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_size": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_size", + "defaults": {}, + "funcname": "size", + "location": "imgui:1860", + "ov_cimguiname": "ImVector_size", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_size_in_bytes": [ + { + "args": "(ImVector* self)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImVector_size_in_bytes", + "defaults": {}, + "funcname": "size_in_bytes", + "location": "imgui:1861", + "ov_cimguiname": "ImVector_size_in_bytes", + "ret": "int", + "signature": "()const", + "stname": "ImVector", + "templated": true + } + ], + "ImVector_swap": [ + { + "args": "(ImVector* self,ImVector_T * rhs)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "rhs", + "reftoptr": true, + "type": "ImVector_T *" + } + ], + "argsoriginal": "(ImVector& rhs)", + "call_args": "(*rhs)", + "cimguiname": "ImVector_swap", + "defaults": {}, + "funcname": "swap", + "location": "imgui:1875", + "ov_cimguiname": "ImVector_swap", + "ret": "void", + "signature": "(ImVector_T *)", + "stname": "ImVector", + "templated": true + } + ], + "igAcceptDragDropPayload": [ + { + "args": "(const char* type,ImGuiDragDropFlags flags)", + "argsT": [ + { + "name": "type", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiDragDropFlags" + } + ], + "argsoriginal": "(const char* type,ImGuiDragDropFlags flags=0)", + "call_args": "(type,flags)", + "cimguiname": "igAcceptDragDropPayload", + "defaults": { + "flags": "0" + }, + "funcname": "AcceptDragDropPayload", + "location": "imgui:841", + "namespace": "ImGui", + "ov_cimguiname": "igAcceptDragDropPayload", + "ret": "const ImGuiPayload*", + "signature": "(const char*,ImGuiDragDropFlags)", + "stname": "" + } + ], + "igActivateItem": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igActivateItem", + "defaults": {}, + "funcname": "ActivateItem", + "location": "imgui_internal:3094", + "namespace": "ImGui", + "ov_cimguiname": "igActivateItem", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igAddContextHook": [ + { + "args": "(ImGuiContext* context,const ImGuiContextHook* hook)", + "argsT": [ + { + "name": "context", + "type": "ImGuiContext*" + }, + { + "name": "hook", + "type": "const ImGuiContextHook*" + } + ], + "argsoriginal": "(ImGuiContext* context,const ImGuiContextHook* hook)", + "call_args": "(context,hook)", + "cimguiname": "igAddContextHook", + "defaults": {}, + "funcname": "AddContextHook", + "location": "imgui_internal:2977", + "namespace": "ImGui", + "ov_cimguiname": "igAddContextHook", + "ret": "ImGuiID", + "signature": "(ImGuiContext*,const ImGuiContextHook*)", + "stname": "" + } + ], + "igAddSettingsHandler": [ + { + "args": "(const ImGuiSettingsHandler* handler)", + "argsT": [ + { + "name": "handler", + "type": "const ImGuiSettingsHandler*" + } + ], + "argsoriginal": "(const ImGuiSettingsHandler* handler)", + "call_args": "(handler)", + "cimguiname": "igAddSettingsHandler", + "defaults": {}, + "funcname": "AddSettingsHandler", + "location": "imgui_internal:2997", + "namespace": "ImGui", + "ov_cimguiname": "igAddSettingsHandler", + "ret": "void", + "signature": "(const ImGuiSettingsHandler*)", + "stname": "" + } + ], + "igAlignTextToFramePadding": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igAlignTextToFramePadding", + "defaults": {}, + "funcname": "AlignTextToFramePadding", + "location": "imgui:465", + "namespace": "ImGui", + "ov_cimguiname": "igAlignTextToFramePadding", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igArrowButton": [ + { + "args": "(const char* str_id,ImGuiDir dir)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "dir", + "type": "ImGuiDir" + } + ], + "argsoriginal": "(const char* str_id,ImGuiDir dir)", + "call_args": "(str_id,dir)", + "cimguiname": "igArrowButton", + "defaults": {}, + "funcname": "ArrowButton", + "location": "imgui:512", + "namespace": "ImGui", + "ov_cimguiname": "igArrowButton", + "ret": "bool", + "signature": "(const char*,ImGuiDir)", + "stname": "" + } + ], + "igArrowButtonEx": [ + { + "args": "(const char* str_id,ImGuiDir dir,ImVec2 size_arg,ImGuiButtonFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "dir", + "type": "ImGuiDir" + }, + { + "name": "size_arg", + "type": "ImVec2" + }, + { + "name": "flags", + "type": "ImGuiButtonFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiDir dir,ImVec2 size_arg,ImGuiButtonFlags flags=0)", + "call_args": "(str_id,dir,size_arg,flags)", + "cimguiname": "igArrowButtonEx", + "defaults": { + "flags": "0" + }, + "funcname": "ArrowButtonEx", + "location": "imgui_internal:3354", + "namespace": "ImGui", + "ov_cimguiname": "igArrowButtonEx", + "ret": "bool", + "signature": "(const char*,ImGuiDir,ImVec2,ImGuiButtonFlags)", + "stname": "" + } + ], + "igBegin": [ + { + "args": "(const char* name,bool* p_open,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)", + "call_args": "(name,p_open,flags)", + "cimguiname": "igBegin", + "defaults": { + "flags": "0", + "p_open": "NULL" + }, + "funcname": "Begin", + "location": "imgui:336", + "namespace": "ImGui", + "ov_cimguiname": "igBegin", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginChild": [ + { + "args": "(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "border", + "type": "bool" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* str_id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", + "call_args": "(str_id,size,border,flags)", + "cimguiname": "igBeginChild", + "defaults": { + "border": "false", + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "BeginChild", + "location": "imgui:347", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChild_Str", + "ret": "bool", + "signature": "(const char*,const ImVec2,bool,ImGuiWindowFlags)", + "stname": "" + }, + { + "args": "(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "border", + "type": "bool" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", + "call_args": "(id,size,border,flags)", + "cimguiname": "igBeginChild", + "defaults": { + "border": "false", + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "BeginChild", + "location": "imgui:348", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChild_ID", + "ret": "bool", + "signature": "(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginChildEx": [ + { + "args": "(const char* name,ImGuiID id,const ImVec2 size_arg,bool border,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "size_arg", + "type": "const ImVec2" + }, + { + "name": "border", + "type": "bool" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* name,ImGuiID id,const ImVec2& size_arg,bool border,ImGuiWindowFlags flags)", + "call_args": "(name,id,size_arg,border,flags)", + "cimguiname": "igBeginChildEx", + "defaults": {}, + "funcname": "BeginChildEx", + "location": "imgui_internal:3060", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChildEx", + "ret": "bool", + "signature": "(const char*,ImGuiID,const ImVec2,bool,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginChildFrame": [ + { + "args": "(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& size,ImGuiWindowFlags flags=0)", + "call_args": "(id,size,flags)", + "cimguiname": "igBeginChildFrame", + "defaults": { + "flags": "0" + }, + "funcname": "BeginChildFrame", + "location": "imgui:904", + "namespace": "ImGui", + "ov_cimguiname": "igBeginChildFrame", + "ret": "bool", + "signature": "(ImGuiID,const ImVec2,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginColumns": [ + { + "args": "(const char* str_id,int count,ImGuiOldColumnFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "count", + "type": "int" + }, + { + "name": "flags", + "type": "ImGuiOldColumnFlags" + } + ], + "argsoriginal": "(const char* str_id,int count,ImGuiOldColumnFlags flags=0)", + "call_args": "(str_id,count,flags)", + "cimguiname": "igBeginColumns", + "defaults": { + "flags": "0" + }, + "funcname": "BeginColumns", + "location": "imgui_internal:3245", + "namespace": "ImGui", + "ov_cimguiname": "igBeginColumns", + "ret": "void", + "signature": "(const char*,int,ImGuiOldColumnFlags)", + "stname": "" + } + ], + "igBeginCombo": [ + { + "args": "(const char* label,const char* preview_value,ImGuiComboFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "preview_value", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiComboFlags" + } + ], + "argsoriginal": "(const char* label,const char* preview_value,ImGuiComboFlags flags=0)", + "call_args": "(label,preview_value,flags)", + "cimguiname": "igBeginCombo", + "defaults": { + "flags": "0" + }, + "funcname": "BeginCombo", + "location": "imgui:529", + "namespace": "ImGui", + "ov_cimguiname": "igBeginCombo", + "ret": "bool", + "signature": "(const char*,const char*,ImGuiComboFlags)", + "stname": "" + } + ], + "igBeginComboPopup": [ + { + "args": "(ImGuiID popup_id,const ImRect bb,ImGuiComboFlags flags)", + "argsT": [ + { + "name": "popup_id", + "type": "ImGuiID" + }, + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "flags", + "type": "ImGuiComboFlags" + } + ], + "argsoriginal": "(ImGuiID popup_id,const ImRect& bb,ImGuiComboFlags flags)", + "call_args": "(popup_id,bb,flags)", + "cimguiname": "igBeginComboPopup", + "defaults": {}, + "funcname": "BeginComboPopup", + "location": "imgui_internal:3080", + "namespace": "ImGui", + "ov_cimguiname": "igBeginComboPopup", + "ret": "bool", + "signature": "(ImGuiID,const ImRect,ImGuiComboFlags)", + "stname": "" + } + ], + "igBeginComboPreview": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginComboPreview", + "defaults": {}, + "funcname": "BeginComboPreview", + "location": "imgui_internal:3081", + "namespace": "ImGui", + "ov_cimguiname": "igBeginComboPreview", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginDisabled": [ + { + "args": "(bool disabled)", + "argsT": [ + { + "name": "disabled", + "type": "bool" + } + ], + "argsoriginal": "(bool disabled=true)", + "call_args": "(disabled)", + "cimguiname": "igBeginDisabled", + "defaults": { + "disabled": "true" + }, + "funcname": "BeginDisabled", + "location": "imgui:849", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDisabled", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igBeginDockableDragDropSource": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igBeginDockableDragDropSource", + "defaults": {}, + "funcname": "BeginDockableDragDropSource", + "location": "imgui_internal:3196", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDockableDragDropSource", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igBeginDockableDragDropTarget": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igBeginDockableDragDropTarget", + "defaults": {}, + "funcname": "BeginDockableDragDropTarget", + "location": "imgui_internal:3197", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDockableDragDropTarget", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igBeginDocked": [ + { + "args": "(ImGuiWindow* window,bool* p_open)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(ImGuiWindow* window,bool* p_open)", + "call_args": "(window,p_open)", + "cimguiname": "igBeginDocked", + "defaults": {}, + "funcname": "BeginDocked", + "location": "imgui_internal:3195", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDocked", + "ret": "void", + "signature": "(ImGuiWindow*,bool*)", + "stname": "" + } + ], + "igBeginDragDropSource": [ + { + "args": "(ImGuiDragDropFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiDragDropFlags" + } + ], + "argsoriginal": "(ImGuiDragDropFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igBeginDragDropSource", + "defaults": { + "flags": "0" + }, + "funcname": "BeginDragDropSource", + "location": "imgui:837", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDragDropSource", + "ret": "bool", + "signature": "(ImGuiDragDropFlags)", + "stname": "" + } + ], + "igBeginDragDropTarget": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginDragDropTarget", + "defaults": {}, + "funcname": "BeginDragDropTarget", + "location": "imgui:840", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDragDropTarget", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginDragDropTargetCustom": [ + { + "args": "(const ImRect bb,ImGuiID id)", + "argsT": [ + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(const ImRect& bb,ImGuiID id)", + "call_args": "(bb,id)", + "cimguiname": "igBeginDragDropTargetCustom", + "defaults": {}, + "funcname": "BeginDragDropTargetCustom", + "location": "imgui_internal:3238", + "namespace": "ImGui", + "ov_cimguiname": "igBeginDragDropTargetCustom", + "ret": "bool", + "signature": "(const ImRect,ImGuiID)", + "stname": "" + } + ], + "igBeginGroup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginGroup", + "defaults": {}, + "funcname": "BeginGroup", + "location": "imgui:454", + "namespace": "ImGui", + "ov_cimguiname": "igBeginGroup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igBeginListBox": [ + { + "args": "(const char* label,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,size)", + "cimguiname": "igBeginListBox", + "defaults": { + "size": "ImVec2(0,0)" + }, + "funcname": "BeginListBox", + "location": "imgui:641", + "namespace": "ImGui", + "ov_cimguiname": "igBeginListBox", + "ret": "bool", + "signature": "(const char*,const ImVec2)", + "stname": "" + } + ], + "igBeginMainMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginMainMenuBar", + "defaults": {}, + "funcname": "BeginMainMenuBar", + "location": "imgui:667", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMainMenuBar", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginMenu": [ + { + "args": "(const char* label,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,bool enabled=true)", + "call_args": "(label,enabled)", + "cimguiname": "igBeginMenu", + "defaults": { + "enabled": "true" + }, + "funcname": "BeginMenu", + "location": "imgui:669", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMenu", + "ret": "bool", + "signature": "(const char*,bool)", + "stname": "" + } + ], + "igBeginMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginMenuBar", + "defaults": {}, + "funcname": "BeginMenuBar", + "location": "imgui:665", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMenuBar", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igBeginMenuEx": [ + { + "args": "(const char* label,const char* icon,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "icon", + "type": "const char*" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,const char* icon,bool enabled=true)", + "call_args": "(label,icon,enabled)", + "cimguiname": "igBeginMenuEx", + "defaults": { + "enabled": "true" + }, + "funcname": "BeginMenuEx", + "location": "imgui_internal:3076", + "namespace": "ImGui", + "ov_cimguiname": "igBeginMenuEx", + "ret": "bool", + "signature": "(const char*,const char*,bool)", + "stname": "" + } + ], + "igBeginPopup": [ + { + "args": "(const char* str_id,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiWindowFlags flags=0)", + "call_args": "(str_id,flags)", + "cimguiname": "igBeginPopup", + "defaults": { + "flags": "0" + }, + "funcname": "BeginPopup", + "location": "imgui:693", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopup", + "ret": "bool", + "signature": "(const char*,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginPopupContextItem": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igBeginPopupContextItem", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "BeginPopupContextItem", + "location": "imgui:715", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupContextItem", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igBeginPopupContextVoid": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igBeginPopupContextVoid", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "BeginPopupContextVoid", + "location": "imgui:717", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupContextVoid", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igBeginPopupContextWindow": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igBeginPopupContextWindow", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "BeginPopupContextWindow", + "location": "imgui:716", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupContextWindow", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igBeginPopupEx": [ + { + "args": "(ImGuiID id,ImGuiWindowFlags extra_flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "extra_flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiWindowFlags extra_flags)", + "call_args": "(id,extra_flags)", + "cimguiname": "igBeginPopupEx", + "defaults": {}, + "funcname": "BeginPopupEx", + "location": "imgui_internal:3066", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupEx", + "ret": "bool", + "signature": "(ImGuiID,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginPopupModal": [ + { + "args": "(const char* name,bool* p_open,ImGuiWindowFlags flags)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* name,bool* p_open=((void*)0),ImGuiWindowFlags flags=0)", + "call_args": "(name,p_open,flags)", + "cimguiname": "igBeginPopupModal", + "defaults": { + "flags": "0", + "p_open": "NULL" + }, + "funcname": "BeginPopupModal", + "location": "imgui:694", + "namespace": "ImGui", + "ov_cimguiname": "igBeginPopupModal", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginTabBar": [ + { + "args": "(const char* str_id,ImGuiTabBarFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTabBarFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiTabBarFlags flags=0)", + "call_args": "(str_id,flags)", + "cimguiname": "igBeginTabBar", + "defaults": { + "flags": "0" + }, + "funcname": "BeginTabBar", + "location": "imgui:795", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTabBar", + "ret": "bool", + "signature": "(const char*,ImGuiTabBarFlags)", + "stname": "" + } + ], + "igBeginTabBarEx": [ + { + "args": "(ImGuiTabBar* tab_bar,const ImRect bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node)", + "argsT": [ + { + "name": "tab_bar", + "type": "ImGuiTabBar*" + }, + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "flags", + "type": "ImGuiTabBarFlags" + }, + { + "name": "dock_node", + "type": "ImGuiDockNode*" + } + ], + "argsoriginal": "(ImGuiTabBar* tab_bar,const ImRect& bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node)", + "call_args": "(tab_bar,bb,flags,dock_node)", + "cimguiname": "igBeginTabBarEx", + "defaults": {}, + "funcname": "BeginTabBarEx", + "location": "imgui_internal:3309", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTabBarEx", + "ret": "bool", + "signature": "(ImGuiTabBar*,const ImRect,ImGuiTabBarFlags,ImGuiDockNode*)", + "stname": "" + } + ], + "igBeginTabItem": [ + { + "args": "(const char* label,bool* p_open,ImGuiTabItemFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiTabItemFlags" + } + ], + "argsoriginal": "(const char* label,bool* p_open=((void*)0),ImGuiTabItemFlags flags=0)", + "call_args": "(label,p_open,flags)", + "cimguiname": "igBeginTabItem", + "defaults": { + "flags": "0", + "p_open": "NULL" + }, + "funcname": "BeginTabItem", + "location": "imgui:797", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTabItem", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiTabItemFlags)", + "stname": "" + } + ], + "igBeginTable": [ + { + "args": "(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "column", + "type": "int" + }, + { + "name": "flags", + "type": "ImGuiTableFlags" + }, + { + "name": "outer_size", + "type": "const ImVec2" + }, + { + "name": "inner_width", + "type": "float" + } + ], + "argsoriginal": "(const char* str_id,int column,ImGuiTableFlags flags=0,const ImVec2& outer_size=ImVec2(0.0f,0.0f),float inner_width=0.0f)", + "call_args": "(str_id,column,flags,outer_size,inner_width)", + "cimguiname": "igBeginTable", + "defaults": { + "flags": "0", + "inner_width": "0.0f", + "outer_size": "ImVec2(0.0f,0.0f)" + }, + "funcname": "BeginTable", + "location": "imgui:748", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTable", + "ret": "bool", + "signature": "(const char*,int,ImGuiTableFlags,const ImVec2,float)", + "stname": "" + } + ], + "igBeginTableEx": [ + { + "args": "(const char* name,ImGuiID id,int columns_count,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "columns_count", + "type": "int" + }, + { + "name": "flags", + "type": "ImGuiTableFlags" + }, + { + "name": "outer_size", + "type": "const ImVec2" + }, + { + "name": "inner_width", + "type": "float" + } + ], + "argsoriginal": "(const char* name,ImGuiID id,int columns_count,ImGuiTableFlags flags=0,const ImVec2& outer_size=ImVec2(0,0),float inner_width=0.0f)", + "call_args": "(name,id,columns_count,flags,outer_size,inner_width)", + "cimguiname": "igBeginTableEx", + "defaults": { + "flags": "0", + "inner_width": "0.0f", + "outer_size": "ImVec2(0,0)" + }, + "funcname": "BeginTableEx", + "location": "imgui_internal:3267", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTableEx", + "ret": "bool", + "signature": "(const char*,ImGuiID,int,ImGuiTableFlags,const ImVec2,float)", + "stname": "" + } + ], + "igBeginTooltip": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginTooltip", + "defaults": {}, + "funcname": "BeginTooltip", + "location": "imgui:676", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTooltip", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igBeginTooltipEx": [ + { + "args": "(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags)", + "argsT": [ + { + "name": "tooltip_flags", + "type": "ImGuiTooltipFlags" + }, + { + "name": "extra_window_flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags)", + "call_args": "(tooltip_flags,extra_window_flags)", + "cimguiname": "igBeginTooltipEx", + "defaults": {}, + "funcname": "BeginTooltipEx", + "location": "imgui_internal:3067", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTooltipEx", + "ret": "void", + "signature": "(ImGuiTooltipFlags,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBeginViewportSideBar": [ + { + "args": "(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "viewport", + "type": "ImGuiViewport*" + }, + { + "name": "dir", + "type": "ImGuiDir" + }, + { + "name": "size", + "type": "float" + }, + { + "name": "window_flags", + "type": "ImGuiWindowFlags" + } + ], + "argsoriginal": "(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags)", + "call_args": "(name,viewport,dir,size,window_flags)", + "cimguiname": "igBeginViewportSideBar", + "defaults": {}, + "funcname": "BeginViewportSideBar", + "location": "imgui_internal:3075", + "namespace": "ImGui", + "ov_cimguiname": "igBeginViewportSideBar", + "ret": "bool", + "signature": "(const char*,ImGuiViewport*,ImGuiDir,float,ImGuiWindowFlags)", + "stname": "" + } + ], + "igBringWindowToDisplayBack": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igBringWindowToDisplayBack", + "defaults": {}, + "funcname": "BringWindowToDisplayBack", + "location": "imgui_internal:2954", + "namespace": "ImGui", + "ov_cimguiname": "igBringWindowToDisplayBack", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igBringWindowToDisplayBehind": [ + { + "args": "(ImGuiWindow* window,ImGuiWindow* above_window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "above_window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiWindow* above_window)", + "call_args": "(window,above_window)", + "cimguiname": "igBringWindowToDisplayBehind", + "defaults": {}, + "funcname": "BringWindowToDisplayBehind", + "location": "imgui_internal:2955", + "namespace": "ImGui", + "ov_cimguiname": "igBringWindowToDisplayBehind", + "ret": "void", + "signature": "(ImGuiWindow*,ImGuiWindow*)", + "stname": "" + } + ], + "igBringWindowToDisplayFront": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igBringWindowToDisplayFront", + "defaults": {}, + "funcname": "BringWindowToDisplayFront", + "location": "imgui_internal:2953", + "namespace": "ImGui", + "ov_cimguiname": "igBringWindowToDisplayFront", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igBringWindowToFocusFront": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igBringWindowToFocusFront", + "defaults": {}, + "funcname": "BringWindowToFocusFront", + "location": "imgui_internal:2952", + "namespace": "ImGui", + "ov_cimguiname": "igBringWindowToFocusFront", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igBullet": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBullet", + "defaults": {}, + "funcname": "Bullet", + "location": "imgui:519", + "namespace": "ImGui", + "ov_cimguiname": "igBullet", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igBulletText": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igBulletText", + "defaults": {}, + "funcname": "BulletText", + "isvararg": "...)", + "location": "imgui:503", + "namespace": "ImGui", + "ov_cimguiname": "igBulletText", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igBulletTextV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igBulletTextV", + "defaults": {}, + "funcname": "BulletTextV", + "location": "imgui:504", + "namespace": "ImGui", + "ov_cimguiname": "igBulletTextV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igButton": [ + { + "args": "(const char* label,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,size)", + "cimguiname": "igButton", + "defaults": { + "size": "ImVec2(0,0)" + }, + "funcname": "Button", + "location": "imgui:509", + "namespace": "ImGui", + "ov_cimguiname": "igButton", + "ret": "bool", + "signature": "(const char*,const ImVec2)", + "stname": "" + } + ], + "igButtonBehavior": [ + { + "args": "(const ImRect bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags)", + "argsT": [ + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "out_hovered", + "type": "bool*" + }, + { + "name": "out_held", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiButtonFlags" + } + ], + "argsoriginal": "(const ImRect& bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags=0)", + "call_args": "(bb,id,out_hovered,out_held,flags)", + "cimguiname": "igButtonBehavior", + "defaults": { + "flags": "0" + }, + "funcname": "ButtonBehavior", + "location": "imgui_internal:3367", + "namespace": "ImGui", + "ov_cimguiname": "igButtonBehavior", + "ret": "bool", + "signature": "(const ImRect,ImGuiID,bool*,bool*,ImGuiButtonFlags)", + "stname": "" + } + ], + "igButtonEx": [ + { + "args": "(const char* label,const ImVec2 size_arg,ImGuiButtonFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "size_arg", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiButtonFlags" + } + ], + "argsoriginal": "(const char* label,const ImVec2& size_arg=ImVec2(0,0),ImGuiButtonFlags flags=0)", + "call_args": "(label,size_arg,flags)", + "cimguiname": "igButtonEx", + "defaults": { + "flags": "0", + "size_arg": "ImVec2(0,0)" + }, + "funcname": "ButtonEx", + "location": "imgui_internal:3351", + "namespace": "ImGui", + "ov_cimguiname": "igButtonEx", + "ret": "bool", + "signature": "(const char*,const ImVec2,ImGuiButtonFlags)", + "stname": "" + } + ], + "igCalcItemSize": [ + { + "args": "(ImVec2 *pOut,ImVec2 size,float default_w,float default_h)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "size", + "type": "ImVec2" + }, + { + "name": "default_w", + "type": "float" + }, + { + "name": "default_h", + "type": "float" + } + ], + "argsoriginal": "(ImVec2 size,float default_w,float default_h)", + "call_args": "(size,default_w,default_h)", + "cimguiname": "igCalcItemSize", + "defaults": {}, + "funcname": "CalcItemSize", + "location": "imgui_internal:3042", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igCalcItemSize", + "ret": "void", + "signature": "(ImVec2,float,float)", + "stname": "" + } + ], + "igCalcItemWidth": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igCalcItemWidth", + "defaults": {}, + "funcname": "CalcItemWidth", + "location": "imgui:426", + "namespace": "ImGui", + "ov_cimguiname": "igCalcItemWidth", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igCalcRoundingFlagsForRectInRect": [ + { + "args": "(const ImRect r_in,const ImRect r_outer,float threshold)", + "argsT": [ + { + "name": "r_in", + "type": "const ImRect" + }, + { + "name": "r_outer", + "type": "const ImRect" + }, + { + "name": "threshold", + "type": "float" + } + ], + "argsoriginal": "(const ImRect& r_in,const ImRect& r_outer,float threshold)", + "call_args": "(r_in,r_outer,threshold)", + "cimguiname": "igCalcRoundingFlagsForRectInRect", + "defaults": {}, + "funcname": "CalcRoundingFlagsForRectInRect", + "location": "imgui_internal:3347", + "namespace": "ImGui", + "ov_cimguiname": "igCalcRoundingFlagsForRectInRect", + "ret": "ImDrawFlags", + "signature": "(const ImRect,const ImRect,float)", + "stname": "" + } + ], + "igCalcTextSize": [ + { + "args": "(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + }, + { + "name": "hide_text_after_double_hash", + "type": "bool" + }, + { + "name": "wrap_width", + "type": "float" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0),bool hide_text_after_double_hash=false,float wrap_width=-1.0f)", + "call_args": "(text,text_end,hide_text_after_double_hash,wrap_width)", + "cimguiname": "igCalcTextSize", + "defaults": { + "hide_text_after_double_hash": "false", + "text_end": "NULL", + "wrap_width": "-1.0f" + }, + "funcname": "CalcTextSize", + "location": "imgui:908", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igCalcTextSize", + "ret": "void", + "signature": "(const char*,const char*,bool,float)", + "stname": "" + } + ], + "igCalcTypematicRepeatAmount": [ + { + "args": "(float t0,float t1,float repeat_delay,float repeat_rate)", + "argsT": [ + { + "name": "t0", + "type": "float" + }, + { + "name": "t1", + "type": "float" + }, + { + "name": "repeat_delay", + "type": "float" + }, + { + "name": "repeat_rate", + "type": "float" + } + ], + "argsoriginal": "(float t0,float t1,float repeat_delay,float repeat_rate)", + "call_args": "(t0,t1,repeat_delay,repeat_rate)", + "cimguiname": "igCalcTypematicRepeatAmount", + "defaults": {}, + "funcname": "CalcTypematicRepeatAmount", + "location": "imgui_internal:3122", + "namespace": "ImGui", + "ov_cimguiname": "igCalcTypematicRepeatAmount", + "ret": "int", + "signature": "(float,float,float,float)", + "stname": "" + } + ], + "igCalcWindowNextAutoFitSize": [ + { + "args": "(ImVec2 *pOut,ImGuiWindow* window)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igCalcWindowNextAutoFitSize", + "defaults": {}, + "funcname": "CalcWindowNextAutoFitSize", + "location": "imgui_internal:2937", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igCalcWindowNextAutoFitSize", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igCalcWrapWidthForPos": [ + { + "args": "(const ImVec2 pos,float wrap_pos_x)", + "argsT": [ + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "wrap_pos_x", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& pos,float wrap_pos_x)", + "call_args": "(pos,wrap_pos_x)", + "cimguiname": "igCalcWrapWidthForPos", + "defaults": {}, + "funcname": "CalcWrapWidthForPos", + "location": "imgui_internal:3043", + "namespace": "ImGui", + "ov_cimguiname": "igCalcWrapWidthForPos", + "ret": "float", + "signature": "(const ImVec2,float)", + "stname": "" + } + ], + "igCallContextHooks": [ + { + "args": "(ImGuiContext* context,ImGuiContextHookType type)", + "argsT": [ + { + "name": "context", + "type": "ImGuiContext*" + }, + { + "name": "type", + "type": "ImGuiContextHookType" + } + ], + "argsoriginal": "(ImGuiContext* context,ImGuiContextHookType type)", + "call_args": "(context,type)", + "cimguiname": "igCallContextHooks", + "defaults": {}, + "funcname": "CallContextHooks", + "location": "imgui_internal:2979", + "namespace": "ImGui", + "ov_cimguiname": "igCallContextHooks", + "ret": "void", + "signature": "(ImGuiContext*,ImGuiContextHookType)", + "stname": "" + } + ], + "igCheckbox": [ + { + "args": "(const char* label,bool* v)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "bool*" + } + ], + "argsoriginal": "(const char* label,bool* v)", + "call_args": "(label,v)", + "cimguiname": "igCheckbox", + "defaults": {}, + "funcname": "Checkbox", + "location": "imgui:513", + "namespace": "ImGui", + "ov_cimguiname": "igCheckbox", + "ret": "bool", + "signature": "(const char*,bool*)", + "stname": "" + } + ], + "igCheckboxFlags": [ + { + "args": "(const char* label,int* flags,int flags_value)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "int*" + }, + { + "name": "flags_value", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* flags,int flags_value)", + "call_args": "(label,flags,flags_value)", + "cimguiname": "igCheckboxFlags", + "defaults": {}, + "funcname": "CheckboxFlags", + "location": "imgui:514", + "namespace": "ImGui", + "ov_cimguiname": "igCheckboxFlags_IntPtr", + "ret": "bool", + "signature": "(const char*,int*,int)", + "stname": "" + }, + { + "args": "(const char* label,unsigned int* flags,unsigned int flags_value)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "unsigned int*" + }, + { + "name": "flags_value", + "type": "unsigned int" + } + ], + "argsoriginal": "(const char* label,unsigned int* flags,unsigned int flags_value)", + "call_args": "(label,flags,flags_value)", + "cimguiname": "igCheckboxFlags", + "defaults": {}, + "funcname": "CheckboxFlags", + "location": "imgui:515", + "namespace": "ImGui", + "ov_cimguiname": "igCheckboxFlags_UintPtr", + "ret": "bool", + "signature": "(const char*,unsigned int*,unsigned int)", + "stname": "" + }, + { + "args": "(const char* label,ImS64* flags,ImS64 flags_value)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImS64*" + }, + { + "name": "flags_value", + "type": "ImS64" + } + ], + "argsoriginal": "(const char* label,ImS64* flags,ImS64 flags_value)", + "call_args": "(label,flags,flags_value)", + "cimguiname": "igCheckboxFlags", + "defaults": {}, + "funcname": "CheckboxFlags", + "location": "imgui_internal:3363", + "namespace": "ImGui", + "ov_cimguiname": "igCheckboxFlags_S64Ptr", + "ret": "bool", + "signature": "(const char*,ImS64*,ImS64)", + "stname": "" + }, + { + "args": "(const char* label,ImU64* flags,ImU64 flags_value)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImU64*" + }, + { + "name": "flags_value", + "type": "ImU64" + } + ], + "argsoriginal": "(const char* label,ImU64* flags,ImU64 flags_value)", + "call_args": "(label,flags,flags_value)", + "cimguiname": "igCheckboxFlags", + "defaults": {}, + "funcname": "CheckboxFlags", + "location": "imgui_internal:3364", + "namespace": "ImGui", + "ov_cimguiname": "igCheckboxFlags_U64Ptr", + "ret": "bool", + "signature": "(const char*,ImU64*,ImU64)", + "stname": "" + } + ], + "igClearActiveID": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igClearActiveID", + "defaults": {}, + "funcname": "ClearActiveID", + "location": "imgui_internal:3027", + "namespace": "ImGui", + "ov_cimguiname": "igClearActiveID", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igClearDragDrop": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igClearDragDrop", + "defaults": {}, + "funcname": "ClearDragDrop", + "location": "imgui_internal:3239", + "namespace": "ImGui", + "ov_cimguiname": "igClearDragDrop", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igClearIniSettings": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igClearIniSettings", + "defaults": {}, + "funcname": "ClearIniSettings", + "location": "imgui_internal:2993", + "namespace": "ImGui", + "ov_cimguiname": "igClearIniSettings", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igCloseButton": [ + { + "args": "(ImGuiID id,const ImVec2 pos)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& pos)", + "call_args": "(id,pos)", + "cimguiname": "igCloseButton", + "defaults": {}, + "funcname": "CloseButton", + "location": "imgui_internal:3352", + "namespace": "ImGui", + "ov_cimguiname": "igCloseButton", + "ret": "bool", + "signature": "(ImGuiID,const ImVec2)", + "stname": "" + } + ], + "igCloseCurrentPopup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igCloseCurrentPopup", + "defaults": {}, + "funcname": "CloseCurrentPopup", + "location": "imgui:708", + "namespace": "ImGui", + "ov_cimguiname": "igCloseCurrentPopup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igClosePopupToLevel": [ + { + "args": "(int remaining,bool restore_focus_to_window_under_popup)", + "argsT": [ + { + "name": "remaining", + "type": "int" + }, + { + "name": "restore_focus_to_window_under_popup", + "type": "bool" + } + ], + "argsoriginal": "(int remaining,bool restore_focus_to_window_under_popup)", + "call_args": "(remaining,restore_focus_to_window_under_popup)", + "cimguiname": "igClosePopupToLevel", + "defaults": {}, + "funcname": "ClosePopupToLevel", + "location": "imgui_internal:3062", + "namespace": "ImGui", + "ov_cimguiname": "igClosePopupToLevel", + "ret": "void", + "signature": "(int,bool)", + "stname": "" + } + ], + "igClosePopupsExceptModals": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igClosePopupsExceptModals", + "defaults": {}, + "funcname": "ClosePopupsExceptModals", + "location": "imgui_internal:3064", + "namespace": "ImGui", + "ov_cimguiname": "igClosePopupsExceptModals", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igClosePopupsOverWindow": [ + { + "args": "(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup)", + "argsT": [ + { + "name": "ref_window", + "type": "ImGuiWindow*" + }, + { + "name": "restore_focus_to_window_under_popup", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup)", + "call_args": "(ref_window,restore_focus_to_window_under_popup)", + "cimguiname": "igClosePopupsOverWindow", + "defaults": {}, + "funcname": "ClosePopupsOverWindow", + "location": "imgui_internal:3063", + "namespace": "ImGui", + "ov_cimguiname": "igClosePopupsOverWindow", + "ret": "void", + "signature": "(ImGuiWindow*,bool)", + "stname": "" + } + ], + "igCollapseButton": [ + { + "args": "(ImGuiID id,const ImVec2 pos,ImGuiDockNode* dock_node)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "dock_node", + "type": "ImGuiDockNode*" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& pos,ImGuiDockNode* dock_node)", + "call_args": "(id,pos,dock_node)", + "cimguiname": "igCollapseButton", + "defaults": {}, + "funcname": "CollapseButton", + "location": "imgui_internal:3353", + "namespace": "ImGui", + "ov_cimguiname": "igCollapseButton", + "ret": "bool", + "signature": "(ImGuiID,const ImVec2,ImGuiDockNode*)", + "stname": "" + } + ], + "igCollapsingHeader": [ + { + "args": "(const char* label,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiTreeNodeFlags flags=0)", + "call_args": "(label,flags)", + "cimguiname": "igCollapsingHeader", + "defaults": { + "flags": "0" + }, + "funcname": "CollapsingHeader", + "location": "imgui:625", + "namespace": "ImGui", + "ov_cimguiname": "igCollapsingHeader_TreeNodeFlags", + "ret": "bool", + "signature": "(const char*,ImGuiTreeNodeFlags)", + "stname": "" + }, + { + "args": "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_visible", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags=0)", + "call_args": "(label,p_visible,flags)", + "cimguiname": "igCollapsingHeader", + "defaults": { + "flags": "0" + }, + "funcname": "CollapsingHeader", + "location": "imgui:626", + "namespace": "ImGui", + "ov_cimguiname": "igCollapsingHeader_BoolPtr", + "ret": "bool", + "signature": "(const char*,bool*,ImGuiTreeNodeFlags)", + "stname": "" + } + ], + "igColorButton": [ + { + "args": "(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size)", + "argsT": [ + { + "name": "desc_id", + "type": "const char*" + }, + { + "name": "col", + "type": "const ImVec4" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags=0,const ImVec2& size=ImVec2(0,0))", + "call_args": "(desc_id,col,flags,size)", + "cimguiname": "igColorButton", + "defaults": { + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "ColorButton", + "location": "imgui:606", + "namespace": "ImGui", + "ov_cimguiname": "igColorButton", + "ret": "bool", + "signature": "(const char*,const ImVec4,ImGuiColorEditFlags,const ImVec2)", + "stname": "" + } + ], + "igColorConvertFloat4ToU32": [ + { + "args": "(const ImVec4 in)", + "argsT": [ + { + "name": "in", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& in)", + "call_args": "(in)", + "cimguiname": "igColorConvertFloat4ToU32", + "defaults": {}, + "funcname": "ColorConvertFloat4ToU32", + "location": "imgui:912", + "namespace": "ImGui", + "ov_cimguiname": "igColorConvertFloat4ToU32", + "ret": "ImU32", + "signature": "(const ImVec4)", + "stname": "" + } + ], + "igColorConvertHSVtoRGB": [ + { + "args": "(float h,float s,float v,float* out_r,float* out_g,float* out_b)", + "argsT": [ + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "out_r", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_g", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_b", + "reftoptr": true, + "type": "float*" + } + ], + "argsoriginal": "(float h,float s,float v,float& out_r,float& out_g,float& out_b)", + "call_args": "(h,s,v,*out_r,*out_g,*out_b)", + "cimguiname": "igColorConvertHSVtoRGB", + "defaults": {}, + "funcname": "ColorConvertHSVtoRGB", + "location": "imgui:914", + "namespace": "ImGui", + "ov_cimguiname": "igColorConvertHSVtoRGB", + "ret": "void", + "signature": "(float,float,float,float*,float*,float*)", + "stname": "" + } + ], + "igColorConvertRGBtoHSV": [ + { + "args": "(float r,float g,float b,float* out_h,float* out_s,float* out_v)", + "argsT": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "out_h", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_s", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_v", + "reftoptr": true, + "type": "float*" + } + ], + "argsoriginal": "(float r,float g,float b,float& out_h,float& out_s,float& out_v)", + "call_args": "(r,g,b,*out_h,*out_s,*out_v)", + "cimguiname": "igColorConvertRGBtoHSV", + "defaults": {}, + "funcname": "ColorConvertRGBtoHSV", + "location": "imgui:913", + "namespace": "ImGui", + "ov_cimguiname": "igColorConvertRGBtoHSV", + "ret": "void", + "signature": "(float,float,float,float*,float*,float*)", + "stname": "" + } + ], + "igColorConvertU32ToFloat4": [ + { + "args": "(ImVec4 *pOut,ImU32 in)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec4*" + }, + { + "name": "in", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 in)", + "call_args": "(in)", + "cimguiname": "igColorConvertU32ToFloat4", + "defaults": {}, + "funcname": "ColorConvertU32ToFloat4", + "location": "imgui:911", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igColorConvertU32ToFloat4", + "ret": "void", + "signature": "(ImU32)", + "stname": "" + } + ], + "igColorEdit3": [ + { + "args": "(const char* label,float col[3],ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[3]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* label,float col[3],ImGuiColorEditFlags flags=0)", + "call_args": "(label,col,flags)", + "cimguiname": "igColorEdit3", + "defaults": { + "flags": "0" + }, + "funcname": "ColorEdit3", + "location": "imgui:602", + "namespace": "ImGui", + "ov_cimguiname": "igColorEdit3", + "ret": "bool", + "signature": "(const char*,float[3],ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorEdit4": [ + { + "args": "(const char* label,float col[4],ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[4]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* label,float col[4],ImGuiColorEditFlags flags=0)", + "call_args": "(label,col,flags)", + "cimguiname": "igColorEdit4", + "defaults": { + "flags": "0" + }, + "funcname": "ColorEdit4", + "location": "imgui:603", + "namespace": "ImGui", + "ov_cimguiname": "igColorEdit4", + "ret": "bool", + "signature": "(const char*,float[4],ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorEditOptionsPopup": [ + { + "args": "(const float* col,ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "col", + "type": "const float*" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const float* col,ImGuiColorEditFlags flags)", + "call_args": "(col,flags)", + "cimguiname": "igColorEditOptionsPopup", + "defaults": {}, + "funcname": "ColorEditOptionsPopup", + "location": "imgui_internal:3403", + "namespace": "ImGui", + "ov_cimguiname": "igColorEditOptionsPopup", + "ret": "void", + "signature": "(const float*,ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorPicker3": [ + { + "args": "(const char* label,float col[3],ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[3]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* label,float col[3],ImGuiColorEditFlags flags=0)", + "call_args": "(label,col,flags)", + "cimguiname": "igColorPicker3", + "defaults": { + "flags": "0" + }, + "funcname": "ColorPicker3", + "location": "imgui:604", + "namespace": "ImGui", + "ov_cimguiname": "igColorPicker3", + "ret": "bool", + "signature": "(const char*,float[3],ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorPicker4": [ + { + "args": "(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "col", + "type": "float[4]" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + }, + { + "name": "ref_col", + "type": "const float*" + } + ], + "argsoriginal": "(const char* label,float col[4],ImGuiColorEditFlags flags=0,const float* ref_col=((void*)0))", + "call_args": "(label,col,flags,ref_col)", + "cimguiname": "igColorPicker4", + "defaults": { + "flags": "0", + "ref_col": "NULL" + }, + "funcname": "ColorPicker4", + "location": "imgui:605", + "namespace": "ImGui", + "ov_cimguiname": "igColorPicker4", + "ret": "bool", + "signature": "(const char*,float[4],ImGuiColorEditFlags,const float*)", + "stname": "" + } + ], + "igColorPickerOptionsPopup": [ + { + "args": "(const float* ref_col,ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "ref_col", + "type": "const float*" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const float* ref_col,ImGuiColorEditFlags flags)", + "call_args": "(ref_col,flags)", + "cimguiname": "igColorPickerOptionsPopup", + "defaults": {}, + "funcname": "ColorPickerOptionsPopup", + "location": "imgui_internal:3404", + "namespace": "ImGui", + "ov_cimguiname": "igColorPickerOptionsPopup", + "ret": "void", + "signature": "(const float*,ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColorTooltip": [ + { + "args": "(const char* text,const float* col,ImGuiColorEditFlags flags)", + "argsT": [ + { + "name": "text", + "type": "const char*" + }, + { + "name": "col", + "type": "const float*" + }, + { + "name": "flags", + "type": "ImGuiColorEditFlags" + } + ], + "argsoriginal": "(const char* text,const float* col,ImGuiColorEditFlags flags)", + "call_args": "(text,col,flags)", + "cimguiname": "igColorTooltip", + "defaults": {}, + "funcname": "ColorTooltip", + "location": "imgui_internal:3402", + "namespace": "ImGui", + "ov_cimguiname": "igColorTooltip", + "ret": "void", + "signature": "(const char*,const float*,ImGuiColorEditFlags)", + "stname": "" + } + ], + "igColumns": [ + { + "args": "(int count,const char* id,bool border)", + "argsT": [ + { + "name": "count", + "type": "int" + }, + { + "name": "id", + "type": "const char*" + }, + { + "name": "border", + "type": "bool" + } + ], + "argsoriginal": "(int count=1,const char* id=((void*)0),bool border=true)", + "call_args": "(count,id,border)", + "cimguiname": "igColumns", + "defaults": { + "border": "true", + "count": "1", + "id": "NULL" + }, + "funcname": "Columns", + "location": "imgui:784", + "namespace": "ImGui", + "ov_cimguiname": "igColumns", + "ret": "void", + "signature": "(int,const char*,bool)", + "stname": "" + } + ], + "igCombo": [ + { + "args": "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items", + "type": "const char* const[]" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "popup_max_height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,items,items_count,popup_max_height_in_items)", + "cimguiname": "igCombo", + "defaults": { + "popup_max_height_in_items": "-1" + }, + "funcname": "Combo", + "location": "imgui:531", + "namespace": "ImGui", + "ov_cimguiname": "igCombo_Str_arr", + "ret": "bool", + "signature": "(const char*,int*,const char* const[],int,int)", + "stname": "" + }, + { + "args": "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items)", + "argsT": [ + { + "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" + } + ], + "argsoriginal": "(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,items_separated_by_zeros,popup_max_height_in_items)", + "cimguiname": "igCombo", + "defaults": { + "popup_max_height_in_items": "-1" + }, + "funcname": "Combo", + "location": "imgui:532", + "namespace": "ImGui", + "ov_cimguiname": "igCombo_Str", + "ret": "bool", + "signature": "(const char*,int*,const char*,int)", + "stname": "" + }, + { + "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items_getter", + "ret": "bool", + "signature": "(void* data,int idx,const char** out_text)", + "type": "bool(*)(void* data,int idx,const char** out_text)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "popup_max_height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,items_getter,data,items_count,popup_max_height_in_items)", + "cimguiname": "igCombo", + "defaults": { + "popup_max_height_in_items": "-1" + }, + "funcname": "Combo", + "location": "imgui:533", + "namespace": "ImGui", + "ov_cimguiname": "igCombo_FnBoolPtr", + "ret": "bool", + "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", + "stname": "" + } + ], + "igConvertSingleModFlagToKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igConvertSingleModFlagToKey", + "defaults": {}, + "funcname": "ConvertSingleModFlagToKey", + "location": "imgui_internal:3107", + "namespace": "ImGui", + "ov_cimguiname": "igConvertSingleModFlagToKey", + "ret": "ImGuiKey", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igCreateContext": [ + { + "args": "(ImFontAtlas* shared_font_atlas)", + "argsT": [ + { + "name": "shared_font_atlas", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "(ImFontAtlas* shared_font_atlas=((void*)0))", + "call_args": "(shared_font_atlas)", + "cimguiname": "igCreateContext", + "defaults": { + "shared_font_atlas": "NULL" + }, + "funcname": "CreateContext", + "location": "imgui:294", + "namespace": "ImGui", + "ov_cimguiname": "igCreateContext", + "ret": "ImGuiContext*", + "signature": "(ImFontAtlas*)", + "stname": "" + } + ], + "igCreateNewWindowSettings": [ + { + "args": "(const char* name)", + "argsT": [ + { + "name": "name", + "type": "const char*" + } + ], + "argsoriginal": "(const char* name)", + "call_args": "(name)", + "cimguiname": "igCreateNewWindowSettings", + "defaults": {}, + "funcname": "CreateNewWindowSettings", + "location": "imgui_internal:2994", + "namespace": "ImGui", + "ov_cimguiname": "igCreateNewWindowSettings", + "ret": "ImGuiWindowSettings*", + "signature": "(const char*)", + "stname": "" + } + ], + "igDataTypeApplyFromText": [ + { + "args": "(const char* buf,ImGuiDataType data_type,void* p_data,const char* format)", + "argsT": [ + { + "name": "buf", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "format", + "type": "const char*" + } + ], + "argsoriginal": "(const char* buf,ImGuiDataType data_type,void* p_data,const char* format)", + "call_args": "(buf,data_type,p_data,format)", + "cimguiname": "igDataTypeApplyFromText", + "defaults": {}, + "funcname": "DataTypeApplyFromText", + "location": "imgui_internal:3390", + "namespace": "ImGui", + "ov_cimguiname": "igDataTypeApplyFromText", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,const char*)", + "stname": "" + } + ], + "igDataTypeApplyOp": [ + { + "args": "(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2)", + "argsT": [ + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "op", + "type": "int" + }, + { + "name": "output", + "type": "void*" + }, + { + "name": "arg_1", + "type": "const void*" + }, + { + "name": "arg_2", + "type": "const void*" + } + ], + "argsoriginal": "(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2)", + "call_args": "(data_type,op,output,arg_1,arg_2)", + "cimguiname": "igDataTypeApplyOp", + "defaults": {}, + "funcname": "DataTypeApplyOp", + "location": "imgui_internal:3389", + "namespace": "ImGui", + "ov_cimguiname": "igDataTypeApplyOp", + "ret": "void", + "signature": "(ImGuiDataType,int,void*,const void*,const void*)", + "stname": "" + } + ], + "igDataTypeClamp": [ + { + "args": "(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max)", + "argsT": [ + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "p_min", + "type": "const void*" + }, + { + "name": "p_max", + "type": "const void*" + } + ], + "argsoriginal": "(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max)", + "call_args": "(data_type,p_data,p_min,p_max)", + "cimguiname": "igDataTypeClamp", + "defaults": {}, + "funcname": "DataTypeClamp", + "location": "imgui_internal:3392", + "namespace": "ImGui", + "ov_cimguiname": "igDataTypeClamp", + "ret": "bool", + "signature": "(ImGuiDataType,void*,const void*,const void*)", + "stname": "" + } + ], + "igDataTypeCompare": [ + { + "args": "(ImGuiDataType data_type,const void* arg_1,const void* arg_2)", + "argsT": [ + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "arg_1", + "type": "const void*" + }, + { + "name": "arg_2", + "type": "const void*" + } + ], + "argsoriginal": "(ImGuiDataType data_type,const void* arg_1,const void* arg_2)", + "call_args": "(data_type,arg_1,arg_2)", + "cimguiname": "igDataTypeCompare", + "defaults": {}, + "funcname": "DataTypeCompare", + "location": "imgui_internal:3391", + "namespace": "ImGui", + "ov_cimguiname": "igDataTypeCompare", + "ret": "int", + "signature": "(ImGuiDataType,const void*,const void*)", + "stname": "" + } + ], + "igDataTypeFormatString": [ + { + "args": "(char* buf,int buf_size,ImGuiDataType data_type,const void* p_data,const char* format)", + "argsT": [ + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "int" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + } + ], + "argsoriginal": "(char* buf,int buf_size,ImGuiDataType data_type,const void* p_data,const char* format)", + "call_args": "(buf,buf_size,data_type,p_data,format)", + "cimguiname": "igDataTypeFormatString", + "defaults": {}, + "funcname": "DataTypeFormatString", + "location": "imgui_internal:3388", + "namespace": "ImGui", + "ov_cimguiname": "igDataTypeFormatString", + "ret": "int", + "signature": "(char*,int,ImGuiDataType,const void*,const char*)", + "stname": "" + } + ], + "igDataTypeGetInfo": [ + { + "args": "(ImGuiDataType data_type)", + "argsT": [ + { + "name": "data_type", + "type": "ImGuiDataType" + } + ], + "argsoriginal": "(ImGuiDataType data_type)", + "call_args": "(data_type)", + "cimguiname": "igDataTypeGetInfo", + "defaults": {}, + "funcname": "DataTypeGetInfo", + "location": "imgui_internal:3387", + "namespace": "ImGui", + "ov_cimguiname": "igDataTypeGetInfo", + "ret": "const ImGuiDataTypeInfo*", + "signature": "(ImGuiDataType)", + "stname": "" + } + ], + "igDebugCheckVersionAndDataLayout": [ + { + "args": "(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)", + "argsT": [ + { + "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" + } + ], + "argsoriginal": "(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)", + "call_args": "(version_str,sz_io,sz_style,sz_vec2,sz_vec4,sz_drawvert,sz_drawidx)", + "cimguiname": "igDebugCheckVersionAndDataLayout", + "defaults": {}, + "funcname": "DebugCheckVersionAndDataLayout", + "location": "imgui:966", + "namespace": "ImGui", + "ov_cimguiname": "igDebugCheckVersionAndDataLayout", + "ret": "bool", + "signature": "(const char*,size_t,size_t,size_t,size_t,size_t,size_t)", + "stname": "" + } + ], + "igDebugDrawItemRect": [ + { + "args": "(ImU32 col)", + "argsT": [ + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 col=(((ImU32)(255)<<24)|((ImU32)(0)<<16)|((ImU32)(0)<<8)|((ImU32)(255)<<0)))", + "call_args": "(col)", + "cimguiname": "igDebugDrawItemRect", + "defaults": { + "col": "4278190335" + }, + "funcname": "DebugDrawItemRect", + "location": "imgui_internal:3429", + "namespace": "ImGui", + "ov_cimguiname": "igDebugDrawItemRect", + "ret": "void", + "signature": "(ImU32)", + "stname": "" + } + ], + "igDebugHookIdInfo": [ + { + "args": "(ImGuiID id,ImGuiDataType data_type,const void* data_id,const void* data_id_end)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "data_id", + "type": "const void*" + }, + { + "name": "data_id_end", + "type": "const void*" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiDataType data_type,const void* data_id,const void* data_id_end)", + "call_args": "(id,data_type,data_id,data_id_end)", + "cimguiname": "igDebugHookIdInfo", + "defaults": {}, + "funcname": "DebugHookIdInfo", + "location": "imgui_internal:3432", + "namespace": "ImGui", + "ov_cimguiname": "igDebugHookIdInfo", + "ret": "void", + "signature": "(ImGuiID,ImGuiDataType,const void*,const void*)", + "stname": "" + } + ], + "igDebugLocateItem": [ + { + "args": "(ImGuiID target_id)", + "argsT": [ + { + "name": "target_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID target_id)", + "call_args": "(target_id)", + "cimguiname": "igDebugLocateItem", + "defaults": {}, + "funcname": "DebugLocateItem", + "location": "imgui_internal:3426", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLocateItem", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igDebugLocateItemOnHover": [ + { + "args": "(ImGuiID target_id)", + "argsT": [ + { + "name": "target_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID target_id)", + "call_args": "(target_id)", + "cimguiname": "igDebugLocateItemOnHover", + "defaults": {}, + "funcname": "DebugLocateItemOnHover", + "location": "imgui_internal:3427", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLocateItemOnHover", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igDebugLocateItemResolveWithLastItem": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igDebugLocateItemResolveWithLastItem", + "defaults": {}, + "funcname": "DebugLocateItemResolveWithLastItem", + "location": "imgui_internal:3428", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLocateItemResolveWithLastItem", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igDebugLog": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igDebugLog", + "defaults": {}, + "funcname": "DebugLog", + "isvararg": "...)", + "location": "imgui_internal:3419", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLog", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igDebugLogV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igDebugLogV", + "defaults": {}, + "funcname": "DebugLogV", + "location": "imgui_internal:3420", + "namespace": "ImGui", + "ov_cimguiname": "igDebugLogV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igDebugNodeColumns": [ + { + "args": "(ImGuiOldColumns* columns)", + "argsT": [ + { + "name": "columns", + "type": "ImGuiOldColumns*" + } + ], + "argsoriginal": "(ImGuiOldColumns* columns)", + "call_args": "(columns)", + "cimguiname": "igDebugNodeColumns", + "defaults": {}, + "funcname": "DebugNodeColumns", + "location": "imgui_internal:3433", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeColumns", + "ret": "void", + "signature": "(ImGuiOldColumns*)", + "stname": "" + } + ], + "igDebugNodeDockNode": [ + { + "args": "(ImGuiDockNode* node,const char* label)", + "argsT": [ + { + "name": "node", + "type": "ImGuiDockNode*" + }, + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(ImGuiDockNode* node,const char* label)", + "call_args": "(node,label)", + "cimguiname": "igDebugNodeDockNode", + "defaults": {}, + "funcname": "DebugNodeDockNode", + "location": "imgui_internal:3434", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeDockNode", + "ret": "void", + "signature": "(ImGuiDockNode*,const char*)", + "stname": "" + } + ], + "igDebugNodeDrawCmdShowMeshAndBoundingBox": [ + { + "args": "(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb)", + "argsT": [ + { + "name": "out_draw_list", + "type": "ImDrawList*" + }, + { + "name": "draw_list", + "type": "const ImDrawList*" + }, + { + "name": "draw_cmd", + "type": "const ImDrawCmd*" + }, + { + "name": "show_mesh", + "type": "bool" + }, + { + "name": "show_aabb", + "type": "bool" + } + ], + "argsoriginal": "(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb)", + "call_args": "(out_draw_list,draw_list,draw_cmd,show_mesh,show_aabb)", + "cimguiname": "igDebugNodeDrawCmdShowMeshAndBoundingBox", + "defaults": {}, + "funcname": "DebugNodeDrawCmdShowMeshAndBoundingBox", + "location": "imgui_internal:3436", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeDrawCmdShowMeshAndBoundingBox", + "ret": "void", + "signature": "(ImDrawList*,const ImDrawList*,const ImDrawCmd*,bool,bool)", + "stname": "" + } + ], + "igDebugNodeDrawList": [ + { + "args": "(ImGuiWindow* window,ImGuiViewportP* viewport,const ImDrawList* draw_list,const char* label)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "viewport", + "type": "ImGuiViewportP*" + }, + { + "name": "draw_list", + "type": "const ImDrawList*" + }, + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiViewportP* viewport,const ImDrawList* draw_list,const char* label)", + "call_args": "(window,viewport,draw_list,label)", + "cimguiname": "igDebugNodeDrawList", + "defaults": {}, + "funcname": "DebugNodeDrawList", + "location": "imgui_internal:3435", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeDrawList", + "ret": "void", + "signature": "(ImGuiWindow*,ImGuiViewportP*,const ImDrawList*,const char*)", + "stname": "" + } + ], + "igDebugNodeFont": [ + { + "args": "(ImFont* font)", + "argsT": [ + { + "name": "font", + "type": "ImFont*" + } + ], + "argsoriginal": "(ImFont* font)", + "call_args": "(font)", + "cimguiname": "igDebugNodeFont", + "defaults": {}, + "funcname": "DebugNodeFont", + "location": "imgui_internal:3437", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeFont", + "ret": "void", + "signature": "(ImFont*)", + "stname": "" + } + ], + "igDebugNodeFontGlyph": [ + { + "args": "(ImFont* font,const ImFontGlyph* glyph)", + "argsT": [ + { + "name": "font", + "type": "ImFont*" + }, + { + "name": "glyph", + "type": "const ImFontGlyph*" + } + ], + "argsoriginal": "(ImFont* font,const ImFontGlyph* glyph)", + "call_args": "(font,glyph)", + "cimguiname": "igDebugNodeFontGlyph", + "defaults": {}, + "funcname": "DebugNodeFontGlyph", + "location": "imgui_internal:3438", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeFontGlyph", + "ret": "void", + "signature": "(ImFont*,const ImFontGlyph*)", + "stname": "" + } + ], + "igDebugNodeInputTextState": [ + { + "args": "(ImGuiInputTextState* state)", + "argsT": [ + { + "name": "state", + "type": "ImGuiInputTextState*" + } + ], + "argsoriginal": "(ImGuiInputTextState* state)", + "call_args": "(state)", + "cimguiname": "igDebugNodeInputTextState", + "defaults": {}, + "funcname": "DebugNodeInputTextState", + "location": "imgui_internal:3443", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeInputTextState", + "ret": "void", + "signature": "(ImGuiInputTextState*)", + "stname": "" + } + ], + "igDebugNodeStorage": [ + { + "args": "(ImGuiStorage* storage,const char* label)", + "argsT": [ + { + "name": "storage", + "type": "ImGuiStorage*" + }, + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(ImGuiStorage* storage,const char* label)", + "call_args": "(storage,label)", + "cimguiname": "igDebugNodeStorage", + "defaults": {}, + "funcname": "DebugNodeStorage", + "location": "imgui_internal:3439", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeStorage", + "ret": "void", + "signature": "(ImGuiStorage*,const char*)", + "stname": "" + } + ], + "igDebugNodeTabBar": [ + { + "args": "(ImGuiTabBar* tab_bar,const char* label)", + "argsT": [ + { + "name": "tab_bar", + "type": "ImGuiTabBar*" + }, + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(ImGuiTabBar* tab_bar,const char* label)", + "call_args": "(tab_bar,label)", + "cimguiname": "igDebugNodeTabBar", + "defaults": {}, + "funcname": "DebugNodeTabBar", + "location": "imgui_internal:3440", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeTabBar", + "ret": "void", + "signature": "(ImGuiTabBar*,const char*)", + "stname": "" + } + ], + "igDebugNodeTable": [ + { + "args": "(ImGuiTable* table)", + "argsT": [ + { + "name": "table", + "type": "ImGuiTable*" + } + ], + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igDebugNodeTable", + "defaults": {}, + "funcname": "DebugNodeTable", + "location": "imgui_internal:3441", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeTable", + "ret": "void", + "signature": "(ImGuiTable*)", + "stname": "" + } + ], + "igDebugNodeTableSettings": [ + { + "args": "(ImGuiTableSettings* settings)", + "argsT": [ + { + "name": "settings", + "type": "ImGuiTableSettings*" + } + ], + "argsoriginal": "(ImGuiTableSettings* settings)", + "call_args": "(settings)", + "cimguiname": "igDebugNodeTableSettings", + "defaults": {}, + "funcname": "DebugNodeTableSettings", + "location": "imgui_internal:3442", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeTableSettings", + "ret": "void", + "signature": "(ImGuiTableSettings*)", + "stname": "" + } + ], + "igDebugNodeViewport": [ + { + "args": "(ImGuiViewportP* viewport)", + "argsT": [ + { + "name": "viewport", + "type": "ImGuiViewportP*" + } + ], + "argsoriginal": "(ImGuiViewportP* viewport)", + "call_args": "(viewport)", + "cimguiname": "igDebugNodeViewport", + "defaults": {}, + "funcname": "DebugNodeViewport", + "location": "imgui_internal:3448", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeViewport", + "ret": "void", + "signature": "(ImGuiViewportP*)", + "stname": "" + } + ], + "igDebugNodeWindow": [ + { + "args": "(ImGuiWindow* window,const char* label)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(ImGuiWindow* window,const char* label)", + "call_args": "(window,label)", + "cimguiname": "igDebugNodeWindow", + "defaults": {}, + "funcname": "DebugNodeWindow", + "location": "imgui_internal:3444", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeWindow", + "ret": "void", + "signature": "(ImGuiWindow*,const char*)", + "stname": "" + } + ], + "igDebugNodeWindowSettings": [ + { + "args": "(ImGuiWindowSettings* settings)", + "argsT": [ + { + "name": "settings", + "type": "ImGuiWindowSettings*" + } + ], + "argsoriginal": "(ImGuiWindowSettings* settings)", + "call_args": "(settings)", + "cimguiname": "igDebugNodeWindowSettings", + "defaults": {}, + "funcname": "DebugNodeWindowSettings", + "location": "imgui_internal:3445", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeWindowSettings", + "ret": "void", + "signature": "(ImGuiWindowSettings*)", + "stname": "" + } + ], + "igDebugNodeWindowsList": [ + { + "args": "(ImVector_ImGuiWindowPtr* windows,const char* label)", + "argsT": [ + { + "name": "windows", + "type": "ImVector_ImGuiWindowPtr*" + }, + { + "name": "label", + "type": "const char*" + } + ], + "argsoriginal": "(ImVector* windows,const char* label)", + "call_args": "(windows,label)", + "cimguiname": "igDebugNodeWindowsList", + "defaults": {}, + "funcname": "DebugNodeWindowsList", + "location": "imgui_internal:3446", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeWindowsList", + "ret": "void", + "signature": "(ImVector_ImGuiWindowPtr*,const char*)", + "stname": "" + } + ], + "igDebugNodeWindowsListByBeginStackParent": [ + { + "args": "(ImGuiWindow** windows,int windows_size,ImGuiWindow* parent_in_begin_stack)", + "argsT": [ + { + "name": "windows", + "type": "ImGuiWindow**" + }, + { + "name": "windows_size", + "type": "int" + }, + { + "name": "parent_in_begin_stack", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow** windows,int windows_size,ImGuiWindow* parent_in_begin_stack)", + "call_args": "(windows,windows_size,parent_in_begin_stack)", + "cimguiname": "igDebugNodeWindowsListByBeginStackParent", + "defaults": {}, + "funcname": "DebugNodeWindowsListByBeginStackParent", + "location": "imgui_internal:3447", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeWindowsListByBeginStackParent", + "ret": "void", + "signature": "(ImGuiWindow**,int,ImGuiWindow*)", + "stname": "" + } + ], + "igDebugRenderViewportThumbnail": [ + { + "args": "(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb)", + "argsT": [ + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "viewport", + "type": "ImGuiViewportP*" + }, + { + "name": "bb", + "type": "const ImRect" + } + ], + "argsoriginal": "(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect& bb)", + "call_args": "(draw_list,viewport,bb)", + "cimguiname": "igDebugRenderViewportThumbnail", + "defaults": {}, + "funcname": "DebugRenderViewportThumbnail", + "location": "imgui_internal:3449", + "namespace": "ImGui", + "ov_cimguiname": "igDebugRenderViewportThumbnail", + "ret": "void", + "signature": "(ImDrawList*,ImGuiViewportP*,const ImRect)", + "stname": "" + } + ], + "igDebugStartItemPicker": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igDebugStartItemPicker", + "defaults": {}, + "funcname": "DebugStartItemPicker", + "location": "imgui_internal:3430", + "namespace": "ImGui", + "ov_cimguiname": "igDebugStartItemPicker", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igDebugTextEncoding": [ + { + "args": "(const char* text)", + "argsT": [ + { + "name": "text", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text)", + "call_args": "(text)", + "cimguiname": "igDebugTextEncoding", + "defaults": {}, + "funcname": "DebugTextEncoding", + "location": "imgui:965", + "namespace": "ImGui", + "ov_cimguiname": "igDebugTextEncoding", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igDestroyContext": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx=((void*)0))", + "call_args": "(ctx)", + "cimguiname": "igDestroyContext", + "defaults": { + "ctx": "NULL" + }, + "funcname": "DestroyContext", + "location": "imgui:295", + "namespace": "ImGui", + "ov_cimguiname": "igDestroyContext", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDestroyPlatformWindow": [ + { + "args": "(ImGuiViewportP* viewport)", + "argsT": [ + { + "name": "viewport", + "type": "ImGuiViewportP*" + } + ], + "argsoriginal": "(ImGuiViewportP* viewport)", + "call_args": "(viewport)", + "cimguiname": "igDestroyPlatformWindow", + "defaults": {}, + "funcname": "DestroyPlatformWindow", + "location": "imgui_internal:2984", + "namespace": "ImGui", + "ov_cimguiname": "igDestroyPlatformWindow", + "ret": "void", + "signature": "(ImGuiViewportP*)", + "stname": "" + } + ], + "igDestroyPlatformWindows": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igDestroyPlatformWindows", + "defaults": {}, + "funcname": "DestroyPlatformWindows", + "location": "imgui:983", + "namespace": "ImGui", + "ov_cimguiname": "igDestroyPlatformWindows", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igDockBuilderAddNode": [ + { + "args": "(ImGuiID node_id,ImGuiDockNodeFlags flags)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiDockNodeFlags" + } + ], + "argsoriginal": "(ImGuiID node_id=0,ImGuiDockNodeFlags flags=0)", + "call_args": "(node_id,flags)", + "cimguiname": "igDockBuilderAddNode", + "defaults": { + "flags": "0", + "node_id": "0" + }, + "funcname": "DockBuilderAddNode", + "location": "imgui_internal:3212", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderAddNode", + "ret": "ImGuiID", + "signature": "(ImGuiID,ImGuiDockNodeFlags)", + "stname": "" + } + ], + "igDockBuilderCopyDockSpace": [ + { + "args": "(ImGuiID src_dockspace_id,ImGuiID dst_dockspace_id,ImVector_const_charPtr* in_window_remap_pairs)", + "argsT": [ + { + "name": "src_dockspace_id", + "type": "ImGuiID" + }, + { + "name": "dst_dockspace_id", + "type": "ImGuiID" + }, + { + "name": "in_window_remap_pairs", + "type": "ImVector_const_charPtr*" + } + ], + "argsoriginal": "(ImGuiID src_dockspace_id,ImGuiID dst_dockspace_id,ImVector* in_window_remap_pairs)", + "call_args": "(src_dockspace_id,dst_dockspace_id,in_window_remap_pairs)", + "cimguiname": "igDockBuilderCopyDockSpace", + "defaults": {}, + "funcname": "DockBuilderCopyDockSpace", + "location": "imgui_internal:3219", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderCopyDockSpace", + "ret": "void", + "signature": "(ImGuiID,ImGuiID,ImVector_const_charPtr*)", + "stname": "" + } + ], + "igDockBuilderCopyNode": [ + { + "args": "(ImGuiID src_node_id,ImGuiID dst_node_id,ImVector_ImGuiID* out_node_remap_pairs)", + "argsT": [ + { + "name": "src_node_id", + "type": "ImGuiID" + }, + { + "name": "dst_node_id", + "type": "ImGuiID" + }, + { + "name": "out_node_remap_pairs", + "type": "ImVector_ImGuiID*" + } + ], + "argsoriginal": "(ImGuiID src_node_id,ImGuiID dst_node_id,ImVector* out_node_remap_pairs)", + "call_args": "(src_node_id,dst_node_id,out_node_remap_pairs)", + "cimguiname": "igDockBuilderCopyNode", + "defaults": {}, + "funcname": "DockBuilderCopyNode", + "location": "imgui_internal:3220", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderCopyNode", + "ret": "void", + "signature": "(ImGuiID,ImGuiID,ImVector_ImGuiID*)", + "stname": "" + } + ], + "igDockBuilderCopyWindowSettings": [ + { + "args": "(const char* src_name,const char* dst_name)", + "argsT": [ + { + "name": "src_name", + "type": "const char*" + }, + { + "name": "dst_name", + "type": "const char*" + } + ], + "argsoriginal": "(const char* src_name,const char* dst_name)", + "call_args": "(src_name,dst_name)", + "cimguiname": "igDockBuilderCopyWindowSettings", + "defaults": {}, + "funcname": "DockBuilderCopyWindowSettings", + "location": "imgui_internal:3221", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderCopyWindowSettings", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igDockBuilderDockWindow": [ + { + "args": "(const char* window_name,ImGuiID node_id)", + "argsT": [ + { + "name": "window_name", + "type": "const char*" + }, + { + "name": "node_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(const char* window_name,ImGuiID node_id)", + "call_args": "(window_name,node_id)", + "cimguiname": "igDockBuilderDockWindow", + "defaults": {}, + "funcname": "DockBuilderDockWindow", + "location": "imgui_internal:3209", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderDockWindow", + "ret": "void", + "signature": "(const char*,ImGuiID)", + "stname": "" + } + ], + "igDockBuilderFinish": [ + { + "args": "(ImGuiID node_id)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID node_id)", + "call_args": "(node_id)", + "cimguiname": "igDockBuilderFinish", + "defaults": {}, + "funcname": "DockBuilderFinish", + "location": "imgui_internal:3222", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderFinish", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igDockBuilderGetCentralNode": [ + { + "args": "(ImGuiID node_id)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID node_id)", + "call_args": "(node_id)", + "cimguiname": "igDockBuilderGetCentralNode", + "defaults": {}, + "funcname": "DockBuilderGetCentralNode", + "location": "imgui_internal:3211", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderGetCentralNode", + "ret": "ImGuiDockNode*", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igDockBuilderGetNode": [ + { + "args": "(ImGuiID node_id)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID node_id)", + "call_args": "(node_id)", + "cimguiname": "igDockBuilderGetNode", + "defaults": {}, + "funcname": "DockBuilderGetNode", + "location": "imgui_internal:3210", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderGetNode", + "ret": "ImGuiDockNode*", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igDockBuilderRemoveNode": [ + { + "args": "(ImGuiID node_id)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID node_id)", + "call_args": "(node_id)", + "cimguiname": "igDockBuilderRemoveNode", + "defaults": {}, + "funcname": "DockBuilderRemoveNode", + "location": "imgui_internal:3213", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderRemoveNode", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igDockBuilderRemoveNodeChildNodes": [ + { + "args": "(ImGuiID node_id)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID node_id)", + "call_args": "(node_id)", + "cimguiname": "igDockBuilderRemoveNodeChildNodes", + "defaults": {}, + "funcname": "DockBuilderRemoveNodeChildNodes", + "location": "imgui_internal:3215", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderRemoveNodeChildNodes", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igDockBuilderRemoveNodeDockedWindows": [ + { + "args": "(ImGuiID node_id,bool clear_settings_refs)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + }, + { + "name": "clear_settings_refs", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiID node_id,bool clear_settings_refs=true)", + "call_args": "(node_id,clear_settings_refs)", + "cimguiname": "igDockBuilderRemoveNodeDockedWindows", + "defaults": { + "clear_settings_refs": "true" + }, + "funcname": "DockBuilderRemoveNodeDockedWindows", + "location": "imgui_internal:3214", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderRemoveNodeDockedWindows", + "ret": "void", + "signature": "(ImGuiID,bool)", + "stname": "" + } + ], + "igDockBuilderSetNodePos": [ + { + "args": "(ImGuiID node_id,ImVec2 pos)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + }, + { + "name": "pos", + "type": "ImVec2" + } + ], + "argsoriginal": "(ImGuiID node_id,ImVec2 pos)", + "call_args": "(node_id,pos)", + "cimguiname": "igDockBuilderSetNodePos", + "defaults": {}, + "funcname": "DockBuilderSetNodePos", + "location": "imgui_internal:3216", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderSetNodePos", + "ret": "void", + "signature": "(ImGuiID,ImVec2)", + "stname": "" + } + ], + "igDockBuilderSetNodeSize": [ + { + "args": "(ImGuiID node_id,ImVec2 size)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + }, + { + "name": "size", + "type": "ImVec2" + } + ], + "argsoriginal": "(ImGuiID node_id,ImVec2 size)", + "call_args": "(node_id,size)", + "cimguiname": "igDockBuilderSetNodeSize", + "defaults": {}, + "funcname": "DockBuilderSetNodeSize", + "location": "imgui_internal:3217", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderSetNodeSize", + "ret": "void", + "signature": "(ImGuiID,ImVec2)", + "stname": "" + } + ], + "igDockBuilderSplitNode": [ + { + "args": "(ImGuiID node_id,ImGuiDir split_dir,float size_ratio_for_node_at_dir,ImGuiID* out_id_at_dir,ImGuiID* out_id_at_opposite_dir)", + "argsT": [ + { + "name": "node_id", + "type": "ImGuiID" + }, + { + "name": "split_dir", + "type": "ImGuiDir" + }, + { + "name": "size_ratio_for_node_at_dir", + "type": "float" + }, + { + "name": "out_id_at_dir", + "type": "ImGuiID*" + }, + { + "name": "out_id_at_opposite_dir", + "type": "ImGuiID*" + } + ], + "argsoriginal": "(ImGuiID node_id,ImGuiDir split_dir,float size_ratio_for_node_at_dir,ImGuiID* out_id_at_dir,ImGuiID* out_id_at_opposite_dir)", + "call_args": "(node_id,split_dir,size_ratio_for_node_at_dir,out_id_at_dir,out_id_at_opposite_dir)", + "cimguiname": "igDockBuilderSplitNode", + "defaults": {}, + "funcname": "DockBuilderSplitNode", + "location": "imgui_internal:3218", + "namespace": "ImGui", + "ov_cimguiname": "igDockBuilderSplitNode", + "ret": "ImGuiID", + "signature": "(ImGuiID,ImGuiDir,float,ImGuiID*,ImGuiID*)", + "stname": "" + } + ], + "igDockContextCalcDropPosForDocking": [ + { + "args": "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)", + "argsT": [ + { + "name": "target", + "type": "ImGuiWindow*" + }, + { + "name": "target_node", + "type": "ImGuiDockNode*" + }, + { + "name": "payload_window", + "type": "ImGuiWindow*" + }, + { + "name": "payload_node", + "type": "ImGuiDockNode*" + }, + { + "name": "split_dir", + "type": "ImGuiDir" + }, + { + "name": "split_outer", + "type": "bool" + }, + { + "name": "out_pos", + "type": "ImVec2*" + } + ], + "argsoriginal": "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)", + "call_args": "(target,target_node,payload_window,payload_node,split_dir,split_outer,out_pos)", + "cimguiname": "igDockContextCalcDropPosForDocking", + "defaults": {}, + "funcname": "DockContextCalcDropPosForDocking", + "location": "imgui_internal:3185", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextCalcDropPosForDocking", + "ret": "bool", + "signature": "(ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDockNode*,ImGuiDir,bool,ImVec2*)", + "stname": "" + } + ], + "igDockContextClearNodes": [ + { + "args": "(ImGuiContext* ctx,ImGuiID root_id,bool clear_settings_refs)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + }, + { + "name": "root_id", + "type": "ImGuiID" + }, + { + "name": "clear_settings_refs", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiContext* ctx,ImGuiID root_id,bool clear_settings_refs)", + "call_args": "(ctx,root_id,clear_settings_refs)", + "cimguiname": "igDockContextClearNodes", + "defaults": {}, + "funcname": "DockContextClearNodes", + "location": "imgui_internal:3176", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextClearNodes", + "ret": "void", + "signature": "(ImGuiContext*,ImGuiID,bool)", + "stname": "" + } + ], + "igDockContextEndFrame": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igDockContextEndFrame", + "defaults": {}, + "funcname": "DockContextEndFrame", + "location": "imgui_internal:3180", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextEndFrame", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDockContextFindNodeByID": [ + { + "args": "(ImGuiContext* ctx,ImGuiID id)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + }, + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiContext* ctx,ImGuiID id)", + "call_args": "(ctx,id)", + "cimguiname": "igDockContextFindNodeByID", + "defaults": {}, + "funcname": "DockContextFindNodeByID", + "location": "imgui_internal:3186", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextFindNodeByID", + "ret": "ImGuiDockNode*", + "signature": "(ImGuiContext*,ImGuiID)", + "stname": "" + } + ], + "igDockContextGenNodeID": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igDockContextGenNodeID", + "defaults": {}, + "funcname": "DockContextGenNodeID", + "location": "imgui_internal:3181", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextGenNodeID", + "ret": "ImGuiID", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDockContextInitialize": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igDockContextInitialize", + "defaults": {}, + "funcname": "DockContextInitialize", + "location": "imgui_internal:3174", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextInitialize", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDockContextNewFrameUpdateDocking": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igDockContextNewFrameUpdateDocking", + "defaults": {}, + "funcname": "DockContextNewFrameUpdateDocking", + "location": "imgui_internal:3179", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextNewFrameUpdateDocking", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDockContextNewFrameUpdateUndocking": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igDockContextNewFrameUpdateUndocking", + "defaults": {}, + "funcname": "DockContextNewFrameUpdateUndocking", + "location": "imgui_internal:3178", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextNewFrameUpdateUndocking", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDockContextQueueDock": [ + { + "args": "(ImGuiContext* ctx,ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,float split_ratio,bool split_outer)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + }, + { + "name": "target", + "type": "ImGuiWindow*" + }, + { + "name": "target_node", + "type": "ImGuiDockNode*" + }, + { + "name": "payload", + "type": "ImGuiWindow*" + }, + { + "name": "split_dir", + "type": "ImGuiDir" + }, + { + "name": "split_ratio", + "type": "float" + }, + { + "name": "split_outer", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiContext* ctx,ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,float split_ratio,bool split_outer)", + "call_args": "(ctx,target,target_node,payload,split_dir,split_ratio,split_outer)", + "cimguiname": "igDockContextQueueDock", + "defaults": {}, + "funcname": "DockContextQueueDock", + "location": "imgui_internal:3182", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextQueueDock", + "ret": "void", + "signature": "(ImGuiContext*,ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDir,float,bool)", + "stname": "" + } + ], + "igDockContextQueueUndockNode": [ + { + "args": "(ImGuiContext* ctx,ImGuiDockNode* node)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + }, + { + "name": "node", + "type": "ImGuiDockNode*" + } + ], + "argsoriginal": "(ImGuiContext* ctx,ImGuiDockNode* node)", + "call_args": "(ctx,node)", + "cimguiname": "igDockContextQueueUndockNode", + "defaults": {}, + "funcname": "DockContextQueueUndockNode", + "location": "imgui_internal:3184", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextQueueUndockNode", + "ret": "void", + "signature": "(ImGuiContext*,ImGuiDockNode*)", + "stname": "" + } + ], + "igDockContextQueueUndockWindow": [ + { + "args": "(ImGuiContext* ctx,ImGuiWindow* window)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + }, + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiContext* ctx,ImGuiWindow* window)", + "call_args": "(ctx,window)", + "cimguiname": "igDockContextQueueUndockWindow", + "defaults": {}, + "funcname": "DockContextQueueUndockWindow", + "location": "imgui_internal:3183", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextQueueUndockWindow", + "ret": "void", + "signature": "(ImGuiContext*,ImGuiWindow*)", + "stname": "" + } + ], + "igDockContextRebuildNodes": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igDockContextRebuildNodes", + "defaults": {}, + "funcname": "DockContextRebuildNodes", + "location": "imgui_internal:3177", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextRebuildNodes", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDockContextShutdown": [ + { + "args": "(ImGuiContext* ctx)", + "argsT": [ + { + "name": "ctx", + "type": "ImGuiContext*" + } + ], + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igDockContextShutdown", + "defaults": {}, + "funcname": "DockContextShutdown", + "location": "imgui_internal:3175", + "namespace": "ImGui", + "ov_cimguiname": "igDockContextShutdown", + "ret": "void", + "signature": "(ImGuiContext*)", + "stname": "" + } + ], + "igDockNodeBeginAmendTabBar": [ + { + "args": "(ImGuiDockNode* node)", + "argsT": [ + { + "name": "node", + "type": "ImGuiDockNode*" + } + ], + "argsoriginal": "(ImGuiDockNode* node)", + "call_args": "(node)", + "cimguiname": "igDockNodeBeginAmendTabBar", + "defaults": {}, + "funcname": "DockNodeBeginAmendTabBar", + "location": "imgui_internal:3187", + "namespace": "ImGui", + "ov_cimguiname": "igDockNodeBeginAmendTabBar", + "ret": "bool", + "signature": "(ImGuiDockNode*)", + "stname": "" + } + ], + "igDockNodeEndAmendTabBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igDockNodeEndAmendTabBar", + "defaults": {}, + "funcname": "DockNodeEndAmendTabBar", + "location": "imgui_internal:3188", + "namespace": "ImGui", + "ov_cimguiname": "igDockNodeEndAmendTabBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igDockNodeGetDepth": [ + { + "args": "(const ImGuiDockNode* node)", + "argsT": [ + { + "name": "node", + "type": "const ImGuiDockNode*" + } + ], + "argsoriginal": "(const ImGuiDockNode* node)", + "call_args": "(node)", + "cimguiname": "igDockNodeGetDepth", + "defaults": {}, + "funcname": "DockNodeGetDepth", + "location": "imgui_internal:3191", + "namespace": "ImGui", + "ov_cimguiname": "igDockNodeGetDepth", + "ret": "int", + "signature": "(const ImGuiDockNode*)", + "stname": "" + } + ], + "igDockNodeGetRootNode": [ + { + "args": "(ImGuiDockNode* node)", + "argsT": [ + { + "name": "node", + "type": "ImGuiDockNode*" + } + ], + "argsoriginal": "(ImGuiDockNode* node)", + "call_args": "(node)", + "cimguiname": "igDockNodeGetRootNode", + "defaults": {}, + "funcname": "DockNodeGetRootNode", + "location": "imgui_internal:3189", + "namespace": "ImGui", + "ov_cimguiname": "igDockNodeGetRootNode", + "ret": "ImGuiDockNode*", + "signature": "(ImGuiDockNode*)", + "stname": "" + } + ], + "igDockNodeGetWindowMenuButtonId": [ + { + "args": "(const ImGuiDockNode* node)", + "argsT": [ + { + "name": "node", + "type": "const ImGuiDockNode*" + } + ], + "argsoriginal": "(const ImGuiDockNode* node)", + "call_args": "(node)", + "cimguiname": "igDockNodeGetWindowMenuButtonId", + "defaults": {}, + "funcname": "DockNodeGetWindowMenuButtonId", + "location": "imgui_internal:3192", + "namespace": "ImGui", + "ov_cimguiname": "igDockNodeGetWindowMenuButtonId", + "ret": "ImGuiID", + "signature": "(const ImGuiDockNode*)", + "stname": "" + } + ], + "igDockNodeIsInHierarchyOf": [ + { + "args": "(ImGuiDockNode* node,ImGuiDockNode* parent)", + "argsT": [ + { + "name": "node", + "type": "ImGuiDockNode*" + }, + { + "name": "parent", + "type": "ImGuiDockNode*" + } + ], + "argsoriginal": "(ImGuiDockNode* node,ImGuiDockNode* parent)", + "call_args": "(node,parent)", + "cimguiname": "igDockNodeIsInHierarchyOf", + "defaults": {}, + "funcname": "DockNodeIsInHierarchyOf", + "location": "imgui_internal:3190", + "namespace": "ImGui", + "ov_cimguiname": "igDockNodeIsInHierarchyOf", + "ret": "bool", + "signature": "(ImGuiDockNode*,ImGuiDockNode*)", + "stname": "" + } + ], + "igDockSpace": [ + { + "args": "(ImGuiID id,const ImVec2 size,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiDockNodeFlags" + }, + { + "name": "window_class", + "type": "const ImGuiWindowClass*" + } + ], + "argsoriginal": "(ImGuiID id,const ImVec2& size=ImVec2(0,0),ImGuiDockNodeFlags flags=0,const ImGuiWindowClass* window_class=((void*)0))", + "call_args": "(id,size,flags,window_class)", + "cimguiname": "igDockSpace", + "defaults": { + "flags": "0", + "size": "ImVec2(0,0)", + "window_class": "NULL" + }, + "funcname": "DockSpace", + "location": "imgui:815", + "namespace": "ImGui", + "ov_cimguiname": "igDockSpace", + "ret": "ImGuiID", + "signature": "(ImGuiID,const ImVec2,ImGuiDockNodeFlags,const ImGuiWindowClass*)", + "stname": "" + } + ], + "igDockSpaceOverViewport": [ + { + "args": "(const ImGuiViewport* viewport,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class)", + "argsT": [ + { + "name": "viewport", + "type": "const ImGuiViewport*" + }, + { + "name": "flags", + "type": "ImGuiDockNodeFlags" + }, + { + "name": "window_class", + "type": "const ImGuiWindowClass*" + } + ], + "argsoriginal": "(const ImGuiViewport* viewport=((void*)0),ImGuiDockNodeFlags flags=0,const ImGuiWindowClass* window_class=((void*)0))", + "call_args": "(viewport,flags,window_class)", + "cimguiname": "igDockSpaceOverViewport", + "defaults": { + "flags": "0", + "viewport": "NULL", + "window_class": "NULL" + }, + "funcname": "DockSpaceOverViewport", + "location": "imgui:816", + "namespace": "ImGui", + "ov_cimguiname": "igDockSpaceOverViewport", + "ret": "ImGuiID", + "signature": "(const ImGuiViewport*,ImGuiDockNodeFlags,const ImGuiWindowClass*)", + "stname": "" + } + ], + "igDragBehavior": [ + { + "args": "(ImGuiID id,ImGuiDataType data_type,void* p_v,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_v", + "type": "void*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "p_min", + "type": "const void*" + }, + { + "name": "p_max", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiDataType data_type,void* p_v,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "call_args": "(id,data_type,p_v,v_speed,p_min,p_max,format,flags)", + "cimguiname": "igDragBehavior", + "defaults": {}, + "funcname": "DragBehavior", + "location": "imgui_internal:3368", + "namespace": "ImGui", + "ov_cimguiname": "igDragBehavior", + "ret": "bool", + "signature": "(ImGuiID,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat": [ + { + "args": "(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat", + "location": "imgui:547", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat", + "ret": "bool", + "signature": "(const char*,float*,float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat2": [ + { + "args": "(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[2]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[2],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat2", + "location": "imgui:548", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat2", + "ret": "bool", + "signature": "(const char*,float[2],float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat3": [ + { + "args": "(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[3]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[3],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat3", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat3", + "location": "imgui:549", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat3", + "ret": "bool", + "signature": "(const char*,float[3],float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloat4": [ + { + "args": "(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[4]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float v[4],float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragFloat4", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloat4", + "location": "imgui:550", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloat4", + "ret": "bool", + "signature": "(const char*,float[4],float,float,float,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragFloatRange2": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v_current_min", + "type": "float*" + }, + { + "name": "v_current_max", + "type": "float*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "format_max", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,float* v_current_min,float* v_current_max,float v_speed=1.0f,float v_min=0.0f,float v_max=0.0f,const char* format=\"%.3f\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)", + "cimguiname": "igDragFloatRange2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "format_max": "NULL", + "v_max": "0.0f", + "v_min": "0.0f", + "v_speed": "1.0f" + }, + "funcname": "DragFloatRange2", + "location": "imgui:551", + "namespace": "ImGui", + "ov_cimguiname": "igDragFloatRange2", + "ret": "bool", + "signature": "(const char*,float*,float*,float,float,float,const char*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt": [ + { + "args": "(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int* v,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt", + "location": "imgui:552", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt", + "ret": "bool", + "signature": "(const char*,int*,float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt2": [ + { + "args": "(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[2]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[2],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt2", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt2", + "location": "imgui:553", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt2", + "ret": "bool", + "signature": "(const char*,int[2],float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt3": [ + { + "args": "(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[3]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[3],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt3", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt3", + "location": "imgui:554", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt3", + "ret": "bool", + "signature": "(const char*,int[3],float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragInt4": [ + { + "args": "(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[4]" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int v[4],float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_speed,v_min,v_max,format,flags)", + "cimguiname": "igDragInt4", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragInt4", + "location": "imgui:555", + "namespace": "ImGui", + "ov_cimguiname": "igDragInt4", + "ret": "bool", + "signature": "(const char*,int[4],float,int,int,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragIntRange2": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v_current_min", + "type": "int*" + }, + { + "name": "v_current_max", + "type": "int*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "format_max", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int* v_current_min,int* v_current_max,float v_speed=1.0f,int v_min=0,int v_max=0,const char* format=\"%d\",const char* format_max=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,flags)", + "cimguiname": "igDragIntRange2", + "defaults": { + "flags": "0", + "format": "\"%d\"", + "format_max": "NULL", + "v_max": "0", + "v_min": "0", + "v_speed": "1.0f" + }, + "funcname": "DragIntRange2", + "location": "imgui:556", + "namespace": "ImGui", + "ov_cimguiname": "igDragIntRange2", + "ret": "bool", + "signature": "(const char*,int*,int*,float,int,int,const char*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragScalar": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "p_min", + "type": "const void*" + }, + { + "name": "p_max", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,v_speed,p_min,p_max,format,flags)", + "cimguiname": "igDragScalar", + "defaults": { + "flags": "0", + "format": "NULL", + "p_max": "NULL", + "p_min": "NULL", + "v_speed": "1.0f" + }, + "funcname": "DragScalar", + "location": "imgui:557", + "namespace": "ImGui", + "ov_cimguiname": "igDragScalar", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDragScalarN": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "components", + "type": "int" + }, + { + "name": "v_speed", + "type": "float" + }, + { + "name": "p_min", + "type": "const void*" + }, + { + "name": "p_max", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,float v_speed=1.0f,const void* p_min=((void*)0),const void* p_max=((void*)0),const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,components,v_speed,p_min,p_max,format,flags)", + "cimguiname": "igDragScalarN", + "defaults": { + "flags": "0", + "format": "NULL", + "p_max": "NULL", + "p_min": "NULL", + "v_speed": "1.0f" + }, + "funcname": "DragScalarN", + "location": "imgui:558", + "namespace": "ImGui", + "ov_cimguiname": "igDragScalarN", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,int,float,const void*,const void*,const char*,ImGuiSliderFlags)", + "stname": "" + } + ], + "igDummy": [ + { + "args": "(const ImVec2 size)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& size)", + "call_args": "(size)", + "cimguiname": "igDummy", + "defaults": {}, + "funcname": "Dummy", + "location": "imgui:451", + "namespace": "ImGui", + "ov_cimguiname": "igDummy", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igEnd": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEnd", + "defaults": {}, + "funcname": "End", + "location": "imgui:337", + "namespace": "ImGui", + "ov_cimguiname": "igEnd", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndChild": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndChild", + "defaults": {}, + "funcname": "EndChild", + "location": "imgui:349", + "namespace": "ImGui", + "ov_cimguiname": "igEndChild", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndChildFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndChildFrame", + "defaults": {}, + "funcname": "EndChildFrame", + "location": "imgui:905", + "namespace": "ImGui", + "ov_cimguiname": "igEndChildFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndColumns": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndColumns", + "defaults": {}, + "funcname": "EndColumns", + "location": "imgui_internal:3246", + "namespace": "ImGui", + "ov_cimguiname": "igEndColumns", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndCombo": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndCombo", + "defaults": {}, + "funcname": "EndCombo", + "location": "imgui:530", + "namespace": "ImGui", + "ov_cimguiname": "igEndCombo", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndComboPreview": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndComboPreview", + "defaults": {}, + "funcname": "EndComboPreview", + "location": "imgui_internal:3082", + "namespace": "ImGui", + "ov_cimguiname": "igEndComboPreview", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndDisabled": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndDisabled", + "defaults": {}, + "funcname": "EndDisabled", + "location": "imgui:850", + "namespace": "ImGui", + "ov_cimguiname": "igEndDisabled", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndDragDropSource": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndDragDropSource", + "defaults": {}, + "funcname": "EndDragDropSource", + "location": "imgui:839", + "namespace": "ImGui", + "ov_cimguiname": "igEndDragDropSource", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndDragDropTarget": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndDragDropTarget", + "defaults": {}, + "funcname": "EndDragDropTarget", + "location": "imgui:842", + "namespace": "ImGui", + "ov_cimguiname": "igEndDragDropTarget", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndFrame", + "defaults": {}, + "funcname": "EndFrame", + "location": "imgui:303", + "namespace": "ImGui", + "ov_cimguiname": "igEndFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndGroup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndGroup", + "defaults": {}, + "funcname": "EndGroup", + "location": "imgui:455", + "namespace": "ImGui", + "ov_cimguiname": "igEndGroup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndListBox": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndListBox", + "defaults": {}, + "funcname": "EndListBox", + "location": "imgui:642", + "namespace": "ImGui", + "ov_cimguiname": "igEndListBox", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndMainMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndMainMenuBar", + "defaults": {}, + "funcname": "EndMainMenuBar", + "location": "imgui:668", + "namespace": "ImGui", + "ov_cimguiname": "igEndMainMenuBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndMenu": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndMenu", + "defaults": {}, + "funcname": "EndMenu", + "location": "imgui:670", + "namespace": "ImGui", + "ov_cimguiname": "igEndMenu", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndMenuBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndMenuBar", + "defaults": {}, + "funcname": "EndMenuBar", + "location": "imgui:666", + "namespace": "ImGui", + "ov_cimguiname": "igEndMenuBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndPopup": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndPopup", + "defaults": {}, + "funcname": "EndPopup", + "location": "imgui:695", + "namespace": "ImGui", + "ov_cimguiname": "igEndPopup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTabBar": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTabBar", + "defaults": {}, + "funcname": "EndTabBar", + "location": "imgui:796", + "namespace": "ImGui", + "ov_cimguiname": "igEndTabBar", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTabItem": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTabItem", + "defaults": {}, + "funcname": "EndTabItem", + "location": "imgui:798", + "namespace": "ImGui", + "ov_cimguiname": "igEndTabItem", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTable": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTable", + "defaults": {}, + "funcname": "EndTable", + "location": "imgui:749", + "namespace": "ImGui", + "ov_cimguiname": "igEndTable", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igEndTooltip": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igEndTooltip", + "defaults": {}, + "funcname": "EndTooltip", + "location": "imgui:677", + "namespace": "ImGui", + "ov_cimguiname": "igEndTooltip", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igErrorCheckEndFrameRecover": [ + { + "args": "(ImGuiErrorLogCallback log_callback,void* user_data)", + "argsT": [ + { + "name": "log_callback", + "type": "ImGuiErrorLogCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiErrorLogCallback log_callback,void* user_data=((void*)0))", + "call_args": "(log_callback,user_data)", + "cimguiname": "igErrorCheckEndFrameRecover", + "defaults": { + "user_data": "NULL" + }, + "funcname": "ErrorCheckEndFrameRecover", + "location": "imgui_internal:3423", + "namespace": "ImGui", + "ov_cimguiname": "igErrorCheckEndFrameRecover", + "ret": "void", + "signature": "(ImGuiErrorLogCallback,void*)", + "stname": "" + } + ], + "igErrorCheckEndWindowRecover": [ + { + "args": "(ImGuiErrorLogCallback log_callback,void* user_data)", + "argsT": [ + { + "name": "log_callback", + "type": "ImGuiErrorLogCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiErrorLogCallback log_callback,void* user_data=((void*)0))", + "call_args": "(log_callback,user_data)", + "cimguiname": "igErrorCheckEndWindowRecover", + "defaults": { + "user_data": "NULL" + }, + "funcname": "ErrorCheckEndWindowRecover", + "location": "imgui_internal:3424", + "namespace": "ImGui", + "ov_cimguiname": "igErrorCheckEndWindowRecover", + "ret": "void", + "signature": "(ImGuiErrorLogCallback,void*)", + "stname": "" + } + ], + "igErrorCheckUsingSetCursorPosToExtendParentBoundaries": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igErrorCheckUsingSetCursorPosToExtendParentBoundaries", + "defaults": {}, + "funcname": "ErrorCheckUsingSetCursorPosToExtendParentBoundaries", + "location": "imgui_internal:3425", + "namespace": "ImGui", + "ov_cimguiname": "igErrorCheckUsingSetCursorPosToExtendParentBoundaries", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igFindBestWindowPosForPopup": [ + { + "args": "(ImVec2 *pOut,ImGuiWindow* window)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igFindBestWindowPosForPopup", + "defaults": {}, + "funcname": "FindBestWindowPosForPopup", + "location": "imgui_internal:3071", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igFindBestWindowPosForPopup", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igFindBestWindowPosForPopupEx": [ + { + "args": "(ImVec2 *pOut,const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "ref_pos", + "type": "const ImVec2" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "last_dir", + "type": "ImGuiDir*" + }, + { + "name": "r_outer", + "type": "const ImRect" + }, + { + "name": "r_avoid", + "type": "const ImRect" + }, + { + "name": "policy", + "type": "ImGuiPopupPositionPolicy" + } + ], + "argsoriginal": "(const ImVec2& ref_pos,const ImVec2& size,ImGuiDir* last_dir,const ImRect& r_outer,const ImRect& r_avoid,ImGuiPopupPositionPolicy policy)", + "call_args": "(ref_pos,size,last_dir,r_outer,r_avoid,policy)", + "cimguiname": "igFindBestWindowPosForPopupEx", + "defaults": {}, + "funcname": "FindBestWindowPosForPopupEx", + "location": "imgui_internal:3072", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igFindBestWindowPosForPopupEx", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImGuiDir*,const ImRect,const ImRect,ImGuiPopupPositionPolicy)", + "stname": "" + } + ], + "igFindBottomMostVisibleWindowWithinBeginStack": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igFindBottomMostVisibleWindowWithinBeginStack", + "defaults": {}, + "funcname": "FindBottomMostVisibleWindowWithinBeginStack", + "location": "imgui_internal:2957", + "namespace": "ImGui", + "ov_cimguiname": "igFindBottomMostVisibleWindowWithinBeginStack", + "ret": "ImGuiWindow*", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igFindHoveredViewportFromPlatformWindowStack": [ + { + "args": "(const ImVec2 mouse_platform_pos)", + "argsT": [ + { + "name": "mouse_platform_pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& mouse_platform_pos)", + "call_args": "(mouse_platform_pos)", + "cimguiname": "igFindHoveredViewportFromPlatformWindowStack", + "defaults": {}, + "funcname": "FindHoveredViewportFromPlatformWindowStack", + "location": "imgui_internal:2988", + "namespace": "ImGui", + "ov_cimguiname": "igFindHoveredViewportFromPlatformWindowStack", + "ret": "ImGuiViewportP*", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igFindOrCreateColumns": [ + { + "args": "(ImGuiWindow* window,ImGuiID id)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiID id)", + "call_args": "(window,id)", + "cimguiname": "igFindOrCreateColumns", + "defaults": {}, + "funcname": "FindOrCreateColumns", + "location": "imgui_internal:3251", + "namespace": "ImGui", + "ov_cimguiname": "igFindOrCreateColumns", + "ret": "ImGuiOldColumns*", + "signature": "(ImGuiWindow*,ImGuiID)", + "stname": "" + } + ], + "igFindOrCreateWindowSettings": [ + { + "args": "(const char* name)", + "argsT": [ + { + "name": "name", + "type": "const char*" + } + ], + "argsoriginal": "(const char* name)", + "call_args": "(name)", + "cimguiname": "igFindOrCreateWindowSettings", + "defaults": {}, + "funcname": "FindOrCreateWindowSettings", + "location": "imgui_internal:2996", + "namespace": "ImGui", + "ov_cimguiname": "igFindOrCreateWindowSettings", + "ret": "ImGuiWindowSettings*", + "signature": "(const char*)", + "stname": "" + } + ], + "igFindRenderedTextEnd": [ + { + "args": "(const char* text,const char* text_end)", + "argsT": [ + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0))", + "call_args": "(text,text_end)", + "cimguiname": "igFindRenderedTextEnd", + "defaults": { + "text_end": "NULL" + }, + "funcname": "FindRenderedTextEnd", + "location": "imgui_internal:3336", + "namespace": "ImGui", + "ov_cimguiname": "igFindRenderedTextEnd", + "ret": "const char*", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igFindSettingsHandler": [ + { + "args": "(const char* type_name)", + "argsT": [ + { + "name": "type_name", + "type": "const char*" + } + ], + "argsoriginal": "(const char* type_name)", + "call_args": "(type_name)", + "cimguiname": "igFindSettingsHandler", + "defaults": {}, + "funcname": "FindSettingsHandler", + "location": "imgui_internal:2999", + "namespace": "ImGui", + "ov_cimguiname": "igFindSettingsHandler", + "ret": "ImGuiSettingsHandler*", + "signature": "(const char*)", + "stname": "" + } + ], + "igFindViewportByID": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igFindViewportByID", + "defaults": {}, + "funcname": "FindViewportByID", + "location": "imgui:984", + "namespace": "ImGui", + "ov_cimguiname": "igFindViewportByID", + "ret": "ImGuiViewport*", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igFindViewportByPlatformHandle": [ + { + "args": "(void* platform_handle)", + "argsT": [ + { + "name": "platform_handle", + "type": "void*" + } + ], + "argsoriginal": "(void* platform_handle)", + "call_args": "(platform_handle)", + "cimguiname": "igFindViewportByPlatformHandle", + "defaults": {}, + "funcname": "FindViewportByPlatformHandle", + "location": "imgui:985", + "namespace": "ImGui", + "ov_cimguiname": "igFindViewportByPlatformHandle", + "ret": "ImGuiViewport*", + "signature": "(void*)", + "stname": "" + } + ], + "igFindWindowByID": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igFindWindowByID", + "defaults": {}, + "funcname": "FindWindowByID", + "location": "imgui_internal:2934", + "namespace": "ImGui", + "ov_cimguiname": "igFindWindowByID", + "ret": "ImGuiWindow*", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igFindWindowByName": [ + { + "args": "(const char* name)", + "argsT": [ + { + "name": "name", + "type": "const char*" + } + ], + "argsoriginal": "(const char* name)", + "call_args": "(name)", + "cimguiname": "igFindWindowByName", + "defaults": {}, + "funcname": "FindWindowByName", + "location": "imgui_internal:2935", + "namespace": "ImGui", + "ov_cimguiname": "igFindWindowByName", + "ret": "ImGuiWindow*", + "signature": "(const char*)", + "stname": "" + } + ], + "igFindWindowDisplayIndex": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igFindWindowDisplayIndex", + "defaults": {}, + "funcname": "FindWindowDisplayIndex", + "location": "imgui_internal:2956", + "namespace": "ImGui", + "ov_cimguiname": "igFindWindowDisplayIndex", + "ret": "int", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igFindWindowSettings": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igFindWindowSettings", + "defaults": {}, + "funcname": "FindWindowSettings", + "location": "imgui_internal:2995", + "namespace": "ImGui", + "ov_cimguiname": "igFindWindowSettings", + "ret": "ImGuiWindowSettings*", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igFocusTopMostWindowUnderOne": [ + { + "args": "(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window)", + "argsT": [ + { + "name": "under_this_window", + "type": "ImGuiWindow*" + }, + { + "name": "ignore_window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window)", + "call_args": "(under_this_window,ignore_window)", + "cimguiname": "igFocusTopMostWindowUnderOne", + "defaults": {}, + "funcname": "FocusTopMostWindowUnderOne", + "location": "imgui_internal:2951", + "namespace": "ImGui", + "ov_cimguiname": "igFocusTopMostWindowUnderOne", + "ret": "void", + "signature": "(ImGuiWindow*,ImGuiWindow*)", + "stname": "" + } + ], + "igFocusWindow": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igFocusWindow", + "defaults": {}, + "funcname": "FocusWindow", + "location": "imgui_internal:2950", + "namespace": "ImGui", + "ov_cimguiname": "igFocusWindow", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igGcAwakeTransientWindowBuffers": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igGcAwakeTransientWindowBuffers", + "defaults": {}, + "funcname": "GcAwakeTransientWindowBuffers", + "location": "imgui_internal:3416", + "namespace": "ImGui", + "ov_cimguiname": "igGcAwakeTransientWindowBuffers", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igGcCompactTransientMiscBuffers": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGcCompactTransientMiscBuffers", + "defaults": {}, + "funcname": "GcCompactTransientMiscBuffers", + "location": "imgui_internal:3414", + "namespace": "ImGui", + "ov_cimguiname": "igGcCompactTransientMiscBuffers", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGcCompactTransientWindowBuffers": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igGcCompactTransientWindowBuffers", + "defaults": {}, + "funcname": "GcCompactTransientWindowBuffers", + "location": "imgui_internal:3415", + "namespace": "ImGui", + "ov_cimguiname": "igGcCompactTransientWindowBuffers", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igGetActiveID": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetActiveID", + "defaults": {}, + "funcname": "GetActiveID", + "location": "imgui_internal:3023", + "namespace": "ImGui", + "ov_cimguiname": "igGetActiveID", + "ret": "ImGuiID", + "signature": "()", + "stname": "" + } + ], + "igGetAllocatorFunctions": [ + { + "args": "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)", + "argsT": [ + { + "name": "p_alloc_func", + "type": "ImGuiMemAllocFunc*" + }, + { + "name": "p_free_func", + "type": "ImGuiMemFreeFunc*" + }, + { + "name": "p_user_data", + "type": "void**" + } + ], + "argsoriginal": "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)", + "call_args": "(p_alloc_func,p_free_func,p_user_data)", + "cimguiname": "igGetAllocatorFunctions", + "defaults": {}, + "funcname": "GetAllocatorFunctions", + "location": "imgui:973", + "namespace": "ImGui", + "ov_cimguiname": "igGetAllocatorFunctions", + "ret": "void", + "signature": "(ImGuiMemAllocFunc*,ImGuiMemFreeFunc*,void**)", + "stname": "" + } + ], + "igGetBackgroundDrawList": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetBackgroundDrawList", + "defaults": {}, + "funcname": "GetBackgroundDrawList", + "location": "imgui:890", + "namespace": "ImGui", + "ov_cimguiname": "igGetBackgroundDrawList_Nil", + "ret": "ImDrawList*", + "signature": "()", + "stname": "" + }, + { + "args": "(ImGuiViewport* viewport)", + "argsT": [ + { + "name": "viewport", + "type": "ImGuiViewport*" + } + ], + "argsoriginal": "(ImGuiViewport* viewport)", + "call_args": "(viewport)", + "cimguiname": "igGetBackgroundDrawList", + "defaults": {}, + "funcname": "GetBackgroundDrawList", + "location": "imgui:892", + "namespace": "ImGui", + "ov_cimguiname": "igGetBackgroundDrawList_ViewportPtr", + "ret": "ImDrawList*", + "signature": "(ImGuiViewport*)", + "stname": "" + } + ], + "igGetClipboardText": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetClipboardText", + "defaults": {}, + "funcname": "GetClipboardText", + "location": "imgui:952", + "namespace": "ImGui", + "ov_cimguiname": "igGetClipboardText", + "ret": "const char*", + "signature": "()", + "stname": "" + } + ], + "igGetColorU32": [ + { + "args": "(ImGuiCol idx,float alpha_mul)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + }, + { + "name": "alpha_mul", + "type": "float" + } + ], + "argsoriginal": "(ImGuiCol idx,float alpha_mul=1.0f)", + "call_args": "(idx,alpha_mul)", + "cimguiname": "igGetColorU32", + "defaults": { + "alpha_mul": "1.0f" + }, + "funcname": "GetColorU32", + "location": "imgui:435", + "namespace": "ImGui", + "ov_cimguiname": "igGetColorU32_Col", + "ret": "ImU32", + "signature": "(ImGuiCol,float)", + "stname": "" + }, + { + "args": "(const ImVec4 col)", + "argsT": [ + { + "name": "col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& col)", + "call_args": "(col)", + "cimguiname": "igGetColorU32", + "defaults": {}, + "funcname": "GetColorU32", + "location": "imgui:436", + "namespace": "ImGui", + "ov_cimguiname": "igGetColorU32_Vec4", + "ret": "ImU32", + "signature": "(const ImVec4)", + "stname": "" + }, + { + "args": "(ImU32 col)", + "argsT": [ + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 col)", + "call_args": "(col)", + "cimguiname": "igGetColorU32", + "defaults": {}, + "funcname": "GetColorU32", + "location": "imgui:437", + "namespace": "ImGui", + "ov_cimguiname": "igGetColorU32_U32", + "ret": "ImU32", + "signature": "(ImU32)", + "stname": "" + } + ], + "igGetColumnIndex": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetColumnIndex", + "defaults": {}, + "funcname": "GetColumnIndex", + "location": "imgui:786", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnIndex", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igGetColumnNormFromOffset": [ + { + "args": "(const ImGuiOldColumns* columns,float offset)", + "argsT": [ + { + "name": "columns", + "type": "const ImGuiOldColumns*" + }, + { + "name": "offset", + "type": "float" + } + ], + "argsoriginal": "(const ImGuiOldColumns* columns,float offset)", + "call_args": "(columns,offset)", + "cimguiname": "igGetColumnNormFromOffset", + "defaults": {}, + "funcname": "GetColumnNormFromOffset", + "location": "imgui_internal:3253", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnNormFromOffset", + "ret": "float", + "signature": "(const ImGuiOldColumns*,float)", + "stname": "" + } + ], + "igGetColumnOffset": [ + { + "args": "(int column_index)", + "argsT": [ + { + "name": "column_index", + "type": "int" + } + ], + "argsoriginal": "(int column_index=-1)", + "call_args": "(column_index)", + "cimguiname": "igGetColumnOffset", + "defaults": { + "column_index": "-1" + }, + "funcname": "GetColumnOffset", + "location": "imgui:789", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnOffset", + "ret": "float", + "signature": "(int)", + "stname": "" + } + ], + "igGetColumnOffsetFromNorm": [ + { + "args": "(const ImGuiOldColumns* columns,float offset_norm)", + "argsT": [ + { + "name": "columns", + "type": "const ImGuiOldColumns*" + }, + { + "name": "offset_norm", + "type": "float" + } + ], + "argsoriginal": "(const ImGuiOldColumns* columns,float offset_norm)", + "call_args": "(columns,offset_norm)", + "cimguiname": "igGetColumnOffsetFromNorm", + "defaults": {}, + "funcname": "GetColumnOffsetFromNorm", + "location": "imgui_internal:3252", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnOffsetFromNorm", + "ret": "float", + "signature": "(const ImGuiOldColumns*,float)", + "stname": "" + } + ], + "igGetColumnWidth": [ + { + "args": "(int column_index)", + "argsT": [ + { + "name": "column_index", + "type": "int" + } + ], + "argsoriginal": "(int column_index=-1)", + "call_args": "(column_index)", + "cimguiname": "igGetColumnWidth", + "defaults": { + "column_index": "-1" + }, + "funcname": "GetColumnWidth", + "location": "imgui:787", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnWidth", + "ret": "float", + "signature": "(int)", + "stname": "" + } + ], + "igGetColumnsCount": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetColumnsCount", + "defaults": {}, + "funcname": "GetColumnsCount", + "location": "imgui:791", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnsCount", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igGetColumnsID": [ + { + "args": "(const char* str_id,int count)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(const char* str_id,int count)", + "call_args": "(str_id,count)", + "cimguiname": "igGetColumnsID", + "defaults": {}, + "funcname": "GetColumnsID", + "location": "imgui_internal:3250", + "namespace": "ImGui", + "ov_cimguiname": "igGetColumnsID", + "ret": "ImGuiID", + "signature": "(const char*,int)", + "stname": "" + } + ], + "igGetContentRegionAvail": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetContentRegionAvail", + "defaults": {}, + "funcname": "GetContentRegionAvail", + "location": "imgui:389", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetContentRegionAvail", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetContentRegionMax": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetContentRegionMax", + "defaults": {}, + "funcname": "GetContentRegionMax", + "location": "imgui:390", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetContentRegionMax", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetContentRegionMaxAbs": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetContentRegionMaxAbs", + "defaults": {}, + "funcname": "GetContentRegionMaxAbs", + "location": "imgui_internal:3046", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetContentRegionMaxAbs", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetCurrentContext": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCurrentContext", + "defaults": {}, + "funcname": "GetCurrentContext", + "location": "imgui:296", + "namespace": "ImGui", + "ov_cimguiname": "igGetCurrentContext", + "ret": "ImGuiContext*", + "signature": "()", + "stname": "" + } + ], + "igGetCurrentFocusScope": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCurrentFocusScope", + "defaults": {}, + "funcname": "GetCurrentFocusScope", + "location": "imgui_internal:3234", + "namespace": "ImGui", + "ov_cimguiname": "igGetCurrentFocusScope", + "ret": "ImGuiID", + "signature": "()", + "stname": "" + } + ], + "igGetCurrentTable": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCurrentTable", + "defaults": {}, + "funcname": "GetCurrentTable", + "location": "imgui_internal:3265", + "namespace": "ImGui", + "ov_cimguiname": "igGetCurrentTable", + "ret": "ImGuiTable*", + "signature": "()", + "stname": "" + } + ], + "igGetCurrentWindow": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCurrentWindow", + "defaults": {}, + "funcname": "GetCurrentWindow", + "location": "imgui_internal:2933", + "namespace": "ImGui", + "ov_cimguiname": "igGetCurrentWindow", + "ret": "ImGuiWindow*", + "signature": "()", + "stname": "" + } + ], + "igGetCurrentWindowRead": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCurrentWindowRead", + "defaults": {}, + "funcname": "GetCurrentWindowRead", + "location": "imgui_internal:2932", + "namespace": "ImGui", + "ov_cimguiname": "igGetCurrentWindowRead", + "ret": "ImGuiWindow*", + "signature": "()", + "stname": "" + } + ], + "igGetCursorPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorPos", + "defaults": {}, + "funcname": "GetCursorPos", + "location": "imgui:456", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetCursorPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetCursorPosX": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorPosX", + "defaults": {}, + "funcname": "GetCursorPosX", + "location": "imgui:457", + "namespace": "ImGui", + "ov_cimguiname": "igGetCursorPosX", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetCursorPosY": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorPosY", + "defaults": {}, + "funcname": "GetCursorPosY", + "location": "imgui:458", + "namespace": "ImGui", + "ov_cimguiname": "igGetCursorPosY", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetCursorScreenPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorScreenPos", + "defaults": {}, + "funcname": "GetCursorScreenPos", + "location": "imgui:463", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetCursorScreenPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetCursorStartPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetCursorStartPos", + "defaults": {}, + "funcname": "GetCursorStartPos", + "location": "imgui:462", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetCursorStartPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetDefaultFont": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDefaultFont", + "defaults": {}, + "funcname": "GetDefaultFont", + "location": "imgui_internal:2961", + "namespace": "ImGui", + "ov_cimguiname": "igGetDefaultFont", + "ret": "ImFont*", + "signature": "()", + "stname": "" + } + ], + "igGetDragDropPayload": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDragDropPayload", + "defaults": {}, + "funcname": "GetDragDropPayload", + "location": "imgui:843", + "namespace": "ImGui", + "ov_cimguiname": "igGetDragDropPayload", + "ret": "const ImGuiPayload*", + "signature": "()", + "stname": "" + } + ], + "igGetDrawData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDrawData", + "defaults": {}, + "funcname": "GetDrawData", + "location": "imgui:305", + "namespace": "ImGui", + "ov_cimguiname": "igGetDrawData", + "ret": "ImDrawData*", + "signature": "()", + "stname": "" + } + ], + "igGetDrawListSharedData": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetDrawListSharedData", + "defaults": {}, + "funcname": "GetDrawListSharedData", + "location": "imgui:900", + "namespace": "ImGui", + "ov_cimguiname": "igGetDrawListSharedData", + "ret": "ImDrawListSharedData*", + "signature": "()", + "stname": "" + } + ], + "igGetFocusID": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFocusID", + "defaults": {}, + "funcname": "GetFocusID", + "location": "imgui_internal:3024", + "namespace": "ImGui", + "ov_cimguiname": "igGetFocusID", + "ret": "ImGuiID", + "signature": "()", + "stname": "" + } + ], + "igGetFont": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFont", + "defaults": {}, + "funcname": "GetFont", + "location": "imgui:432", + "namespace": "ImGui", + "ov_cimguiname": "igGetFont", + "ret": "ImFont*", + "signature": "()", + "stname": "" + } + ], + "igGetFontSize": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFontSize", + "defaults": {}, + "funcname": "GetFontSize", + "location": "imgui:433", + "namespace": "ImGui", + "ov_cimguiname": "igGetFontSize", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetFontTexUvWhitePixel": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFontTexUvWhitePixel", + "defaults": {}, + "funcname": "GetFontTexUvWhitePixel", + "location": "imgui:434", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetFontTexUvWhitePixel", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetForegroundDrawList": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetForegroundDrawList", + "defaults": {}, + "funcname": "GetForegroundDrawList", + "location": "imgui:891", + "namespace": "ImGui", + "ov_cimguiname": "igGetForegroundDrawList_Nil", + "ret": "ImDrawList*", + "signature": "()", + "stname": "" + }, + { + "args": "(ImGuiViewport* viewport)", + "argsT": [ + { + "name": "viewport", + "type": "ImGuiViewport*" + } + ], + "argsoriginal": "(ImGuiViewport* viewport)", + "call_args": "(viewport)", + "cimguiname": "igGetForegroundDrawList", + "defaults": {}, + "funcname": "GetForegroundDrawList", + "location": "imgui:893", + "namespace": "ImGui", + "ov_cimguiname": "igGetForegroundDrawList_ViewportPtr", + "ret": "ImDrawList*", + "signature": "(ImGuiViewport*)", + "stname": "" + }, + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igGetForegroundDrawList", + "defaults": {}, + "funcname": "GetForegroundDrawList", + "location": "imgui_internal:2962", + "namespace": "ImGui", + "ov_cimguiname": "igGetForegroundDrawList_WindowPtr", + "ret": "ImDrawList*", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igGetFrameCount": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFrameCount", + "defaults": {}, + "funcname": "GetFrameCount", + "location": "imgui:899", + "namespace": "ImGui", + "ov_cimguiname": "igGetFrameCount", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igGetFrameHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFrameHeight", + "defaults": {}, + "funcname": "GetFrameHeight", + "location": "imgui:468", + "namespace": "ImGui", + "ov_cimguiname": "igGetFrameHeight", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetFrameHeightWithSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetFrameHeightWithSpacing", + "defaults": {}, + "funcname": "GetFrameHeightWithSpacing", + "location": "imgui:469", + "namespace": "ImGui", + "ov_cimguiname": "igGetFrameHeightWithSpacing", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetHoveredID": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetHoveredID", + "defaults": {}, + "funcname": "GetHoveredID", + "location": "imgui_internal:3028", + "namespace": "ImGui", + "ov_cimguiname": "igGetHoveredID", + "ret": "ImGuiID", + "signature": "()", + "stname": "" + } + ], + "igGetID": [ + { + "args": "(const char* str_id)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id)", + "call_args": "(str_id)", + "cimguiname": "igGetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui:487", + "namespace": "ImGui", + "ov_cimguiname": "igGetID_Str", + "ret": "ImGuiID", + "signature": "(const char*)", + "stname": "" + }, + { + "args": "(const char* str_id_begin,const char* str_id_end)", + "argsT": [ + { + "name": "str_id_begin", + "type": "const char*" + }, + { + "name": "str_id_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str_id_begin,const char* str_id_end)", + "call_args": "(str_id_begin,str_id_end)", + "cimguiname": "igGetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui:488", + "namespace": "ImGui", + "ov_cimguiname": "igGetID_StrStr", + "ret": "ImGuiID", + "signature": "(const char*,const char*)", + "stname": "" + }, + { + "args": "(const void* ptr_id)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + } + ], + "argsoriginal": "(const void* ptr_id)", + "call_args": "(ptr_id)", + "cimguiname": "igGetID", + "defaults": {}, + "funcname": "GetID", + "location": "imgui:489", + "namespace": "ImGui", + "ov_cimguiname": "igGetID_Ptr", + "ret": "ImGuiID", + "signature": "(const void*)", + "stname": "" + } + ], + "igGetIDWithSeed": [ + { + "args": "(const char* str_id_begin,const char* str_id_end,ImGuiID seed)", + "argsT": [ + { + "name": "str_id_begin", + "type": "const char*" + }, + { + "name": "str_id_end", + "type": "const char*" + }, + { + "name": "seed", + "type": "ImGuiID" + } + ], + "argsoriginal": "(const char* str_id_begin,const char* str_id_end,ImGuiID seed)", + "call_args": "(str_id_begin,str_id_end,seed)", + "cimguiname": "igGetIDWithSeed", + "defaults": {}, + "funcname": "GetIDWithSeed", + "location": "imgui_internal:3033", + "namespace": "ImGui", + "ov_cimguiname": "igGetIDWithSeed", + "ret": "ImGuiID", + "signature": "(const char*,const char*,ImGuiID)", + "stname": "" + } + ], + "igGetIO": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetIO", + "defaults": {}, + "funcname": "GetIO", + "location": "imgui:300", + "namespace": "ImGui", + "ov_cimguiname": "igGetIO", + "ret": "ImGuiIO*", + "retref": "&", + "signature": "()", + "stname": "" + } + ], + "igGetInputTextState": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igGetInputTextState", + "defaults": {}, + "funcname": "GetInputTextState", + "location": "imgui_internal:3399", + "namespace": "ImGui", + "ov_cimguiname": "igGetInputTextState", + "ret": "ImGuiInputTextState*", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igGetItemFlags": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemFlags", + "defaults": {}, + "funcname": "GetItemFlags", + "location": "imgui_internal:3022", + "namespace": "ImGui", + "ov_cimguiname": "igGetItemFlags", + "ret": "ImGuiItemFlags", + "signature": "()", + "stname": "" + } + ], + "igGetItemID": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemID", + "defaults": {}, + "funcname": "GetItemID", + "location": "imgui_internal:3020", + "namespace": "ImGui", + "ov_cimguiname": "igGetItemID", + "ret": "ImGuiID", + "signature": "()", + "stname": "" + } + ], + "igGetItemRectMax": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemRectMax", + "defaults": {}, + "funcname": "GetItemRectMax", + "location": "imgui:879", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetItemRectMax", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetItemRectMin": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemRectMin", + "defaults": {}, + "funcname": "GetItemRectMin", + "location": "imgui:878", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetItemRectMin", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetItemRectSize": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemRectSize", + "defaults": {}, + "funcname": "GetItemRectSize", + "location": "imgui:880", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetItemRectSize", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetItemStatusFlags": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetItemStatusFlags", + "defaults": {}, + "funcname": "GetItemStatusFlags", + "location": "imgui_internal:3021", + "namespace": "ImGui", + "ov_cimguiname": "igGetItemStatusFlags", + "ret": "ImGuiItemStatusFlags", + "signature": "()", + "stname": "" + } + ], + "igGetKeyChordName": [ + { + "args": "(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size)", + "argsT": [ + { + "name": "key_chord", + "type": "ImGuiKeyChord" + }, + { + "name": "out_buf", + "type": "char*" + }, + { + "name": "out_buf_size", + "type": "int" + } + ], + "argsoriginal": "(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size)", + "call_args": "(key_chord,out_buf,out_buf_size)", + "cimguiname": "igGetKeyChordName", + "defaults": {}, + "funcname": "GetKeyChordName", + "location": "imgui_internal:3117", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyChordName", + "ret": "void", + "signature": "(ImGuiKeyChord,char*,int)", + "stname": "" + } + ], + "igGetKeyData": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyData", + "defaults": {}, + "funcname": "GetKeyData", + "location": "imgui_internal:3116", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyData", + "ret": "ImGuiKeyData*", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyIndex": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyIndex", + "defaults": {}, + "funcname": "GetKeyIndex", + "location": "imgui:3214", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyIndex", + "ret": "ImGuiKey", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyName": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyName", + "defaults": {}, + "funcname": "GetKeyName", + "location": "imgui:926", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyName", + "ret": "const char*", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyOwner": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyOwner", + "defaults": {}, + "funcname": "GetKeyOwner", + "location": "imgui_internal:3138", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyOwner", + "ret": "ImGuiID", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyOwnerData": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igGetKeyOwnerData", + "defaults": {}, + "funcname": "GetKeyOwnerData", + "location": "imgui_internal:3142", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyOwnerData", + "ret": "ImGuiKeyOwnerData*", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igGetKeyPressedAmount": [ + { + "args": "(ImGuiKey key,float repeat_delay,float rate)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "repeat_delay", + "type": "float" + }, + { + "name": "rate", + "type": "float" + } + ], + "argsoriginal": "(ImGuiKey key,float repeat_delay,float rate)", + "call_args": "(key,repeat_delay,rate)", + "cimguiname": "igGetKeyPressedAmount", + "defaults": {}, + "funcname": "GetKeyPressedAmount", + "location": "imgui:925", + "namespace": "ImGui", + "ov_cimguiname": "igGetKeyPressedAmount", + "ret": "int", + "signature": "(ImGuiKey,float,float)", + "stname": "" + } + ], + "igGetKeyVector2d": [ + { + "args": "(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "key_left", + "type": "ImGuiKey" + }, + { + "name": "key_right", + "type": "ImGuiKey" + }, + { + "name": "key_up", + "type": "ImGuiKey" + }, + { + "name": "key_down", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", + "call_args": "(key_left,key_right,key_up,key_down)", + "cimguiname": "igGetKeyVector2d", + "defaults": {}, + "funcname": "GetKeyVector2d", + "location": "imgui_internal:3120", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetKeyVector2d", + "ret": "void", + "signature": "(ImGuiKey,ImGuiKey,ImGuiKey,ImGuiKey)", + "stname": "" + } + ], + "igGetMainViewport": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMainViewport", + "defaults": {}, + "funcname": "GetMainViewport", + "location": "imgui:887", + "namespace": "ImGui", + "ov_cimguiname": "igGetMainViewport", + "ret": "ImGuiViewport*", + "signature": "()", + "stname": "" + } + ], + "igGetMouseClickedCount": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igGetMouseClickedCount", + "defaults": {}, + "funcname": "GetMouseClickedCount", + "location": "imgui:937", + "namespace": "ImGui", + "ov_cimguiname": "igGetMouseClickedCount", + "ret": "int", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igGetMouseCursor": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMouseCursor", + "defaults": {}, + "funcname": "GetMouseCursor", + "location": "imgui:946", + "namespace": "ImGui", + "ov_cimguiname": "igGetMouseCursor", + "ret": "ImGuiMouseCursor", + "signature": "()", + "stname": "" + } + ], + "igGetMouseDragDelta": [ + { + "args": "(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "lock_threshold", + "type": "float" + } + ], + "argsoriginal": "(ImGuiMouseButton button=0,float lock_threshold=-1.0f)", + "call_args": "(button,lock_threshold)", + "cimguiname": "igGetMouseDragDelta", + "defaults": { + "button": "0", + "lock_threshold": "-1.0f" + }, + "funcname": "GetMouseDragDelta", + "location": "imgui:944", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetMouseDragDelta", + "ret": "void", + "signature": "(ImGuiMouseButton,float)", + "stname": "" + } + ], + "igGetMousePos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMousePos", + "defaults": {}, + "funcname": "GetMousePos", + "location": "imgui:941", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetMousePos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetMousePosOnOpeningCurrentPopup": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetMousePosOnOpeningCurrentPopup", + "defaults": {}, + "funcname": "GetMousePosOnOpeningCurrentPopup", + "location": "imgui:942", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetMousePosOnOpeningCurrentPopup", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetNavTweakPressedAmount": [ + { + "args": "(ImGuiAxis axis)", + "argsT": [ + { + "name": "axis", + "type": "ImGuiAxis" + } + ], + "argsoriginal": "(ImGuiAxis axis)", + "call_args": "(axis)", + "cimguiname": "igGetNavTweakPressedAmount", + "defaults": {}, + "funcname": "GetNavTweakPressedAmount", + "location": "imgui_internal:3121", + "namespace": "ImGui", + "ov_cimguiname": "igGetNavTweakPressedAmount", + "ret": "float", + "signature": "(ImGuiAxis)", + "stname": "" + } + ], + "igGetPlatformIO": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetPlatformIO", + "defaults": {}, + "funcname": "GetPlatformIO", + "location": "imgui:980", + "namespace": "ImGui", + "ov_cimguiname": "igGetPlatformIO", + "ret": "ImGuiPlatformIO*", + "retref": "&", + "signature": "()", + "stname": "" + } + ], + "igGetPopupAllowedExtentRect": [ + { + "args": "(ImRect *pOut,ImGuiWindow* window)", + "argsT": [ + { + "name": "pOut", + "type": "ImRect*" + }, + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igGetPopupAllowedExtentRect", + "defaults": {}, + "funcname": "GetPopupAllowedExtentRect", + "location": "imgui_internal:3068", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetPopupAllowedExtentRect", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igGetScrollMaxX": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollMaxX", + "defaults": {}, + "funcname": "GetScrollMaxX", + "location": "imgui:401", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollMaxX", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetScrollMaxY": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollMaxY", + "defaults": {}, + "funcname": "GetScrollMaxY", + "location": "imgui:402", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollMaxY", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetScrollX": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollX", + "defaults": {}, + "funcname": "GetScrollX", + "location": "imgui:397", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollX", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetScrollY": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetScrollY", + "defaults": {}, + "funcname": "GetScrollY", + "location": "imgui:398", + "namespace": "ImGui", + "ov_cimguiname": "igGetScrollY", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetShortcutRoutingData": [ + { + "args": "(ImGuiKeyChord key_chord)", + "argsT": [ + { + "name": "key_chord", + "type": "ImGuiKeyChord" + } + ], + "argsoriginal": "(ImGuiKeyChord key_chord)", + "call_args": "(key_chord)", + "cimguiname": "igGetShortcutRoutingData", + "defaults": {}, + "funcname": "GetShortcutRoutingData", + "location": "imgui_internal:3170", + "namespace": "ImGui", + "ov_cimguiname": "igGetShortcutRoutingData", + "ret": "ImGuiKeyRoutingData*", + "signature": "(ImGuiKeyChord)", + "stname": "" + } + ], + "igGetStateStorage": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetStateStorage", + "defaults": {}, + "funcname": "GetStateStorage", + "location": "imgui:903", + "namespace": "ImGui", + "ov_cimguiname": "igGetStateStorage", + "ret": "ImGuiStorage*", + "signature": "()", + "stname": "" + } + ], + "igGetStyle": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetStyle", + "defaults": {}, + "funcname": "GetStyle", + "location": "imgui:301", + "namespace": "ImGui", + "ov_cimguiname": "igGetStyle", + "ret": "ImGuiStyle*", + "retref": "&", + "signature": "()", + "stname": "" + } + ], + "igGetStyleColorName": [ + { + "args": "(ImGuiCol idx)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + } + ], + "argsoriginal": "(ImGuiCol idx)", + "call_args": "(idx)", + "cimguiname": "igGetStyleColorName", + "defaults": {}, + "funcname": "GetStyleColorName", + "location": "imgui:901", + "namespace": "ImGui", + "ov_cimguiname": "igGetStyleColorName", + "ret": "const char*", + "signature": "(ImGuiCol)", + "stname": "" + } + ], + "igGetStyleColorVec4": [ + { + "args": "(ImGuiCol idx)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiCol" + } + ], + "argsoriginal": "(ImGuiCol idx)", + "call_args": "(idx)", + "cimguiname": "igGetStyleColorVec4", + "defaults": {}, + "funcname": "GetStyleColorVec4", + "location": "imgui:438", + "namespace": "ImGui", + "ov_cimguiname": "igGetStyleColorVec4", + "ret": "const ImVec4*", + "retref": "&", + "signature": "(ImGuiCol)", + "stname": "" + } + ], + "igGetTextLineHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTextLineHeight", + "defaults": {}, + "funcname": "GetTextLineHeight", + "location": "imgui:466", + "namespace": "ImGui", + "ov_cimguiname": "igGetTextLineHeight", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetTextLineHeightWithSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTextLineHeightWithSpacing", + "defaults": {}, + "funcname": "GetTextLineHeightWithSpacing", + "location": "imgui:467", + "namespace": "ImGui", + "ov_cimguiname": "igGetTextLineHeightWithSpacing", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetTime": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTime", + "defaults": {}, + "funcname": "GetTime", + "location": "imgui:898", + "namespace": "ImGui", + "ov_cimguiname": "igGetTime", + "ret": "double", + "signature": "()", + "stname": "" + } + ], + "igGetTopMostAndVisiblePopupModal": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTopMostAndVisiblePopupModal", + "defaults": {}, + "funcname": "GetTopMostAndVisiblePopupModal", + "location": "imgui_internal:3070", + "namespace": "ImGui", + "ov_cimguiname": "igGetTopMostAndVisiblePopupModal", + "ret": "ImGuiWindow*", + "signature": "()", + "stname": "" + } + ], + "igGetTopMostPopupModal": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTopMostPopupModal", + "defaults": {}, + "funcname": "GetTopMostPopupModal", + "location": "imgui_internal:3069", + "namespace": "ImGui", + "ov_cimguiname": "igGetTopMostPopupModal", + "ret": "ImGuiWindow*", + "signature": "()", + "stname": "" + } + ], + "igGetTreeNodeToLabelSpacing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetTreeNodeToLabelSpacing", + "defaults": {}, + "funcname": "GetTreeNodeToLabelSpacing", + "location": "imgui:624", + "namespace": "ImGui", + "ov_cimguiname": "igGetTreeNodeToLabelSpacing", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetTypematicRepeatRate": [ + { + "args": "(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiInputFlags" + }, + { + "name": "repeat_delay", + "type": "float*" + }, + { + "name": "repeat_rate", + "type": "float*" + } + ], + "argsoriginal": "(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate)", + "call_args": "(flags,repeat_delay,repeat_rate)", + "cimguiname": "igGetTypematicRepeatRate", + "defaults": {}, + "funcname": "GetTypematicRepeatRate", + "location": "imgui_internal:3123", + "namespace": "ImGui", + "ov_cimguiname": "igGetTypematicRepeatRate", + "ret": "void", + "signature": "(ImGuiInputFlags,float*,float*)", + "stname": "" + } + ], + "igGetVersion": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetVersion", + "defaults": {}, + "funcname": "GetVersion", + "location": "imgui:317", + "namespace": "ImGui", + "ov_cimguiname": "igGetVersion", + "ret": "const char*", + "signature": "()", + "stname": "" + } + ], + "igGetViewportPlatformMonitor": [ + { + "args": "(ImGuiViewport* viewport)", + "argsT": [ + { + "name": "viewport", + "type": "ImGuiViewport*" + } + ], + "argsoriginal": "(ImGuiViewport* viewport)", + "call_args": "(viewport)", + "cimguiname": "igGetViewportPlatformMonitor", + "defaults": {}, + "funcname": "GetViewportPlatformMonitor", + "location": "imgui_internal:2987", + "namespace": "ImGui", + "ov_cimguiname": "igGetViewportPlatformMonitor", + "ret": "const ImGuiPlatformMonitor*", + "signature": "(ImGuiViewport*)", + "stname": "" + } + ], + "igGetWindowAlwaysWantOwnTabBar": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igGetWindowAlwaysWantOwnTabBar", + "defaults": {}, + "funcname": "GetWindowAlwaysWantOwnTabBar", + "location": "imgui_internal:3194", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowAlwaysWantOwnTabBar", + "ret": "bool", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igGetWindowContentRegionMax": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowContentRegionMax", + "defaults": {}, + "funcname": "GetWindowContentRegionMax", + "location": "imgui:392", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowContentRegionMax", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowContentRegionMin": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowContentRegionMin", + "defaults": {}, + "funcname": "GetWindowContentRegionMin", + "location": "imgui:391", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowContentRegionMin", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowDockID": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowDockID", + "defaults": {}, + "funcname": "GetWindowDockID", + "location": "imgui:819", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowDockID", + "ret": "ImGuiID", + "signature": "()", + "stname": "" + } + ], + "igGetWindowDockNode": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowDockNode", + "defaults": {}, + "funcname": "GetWindowDockNode", + "location": "imgui_internal:3193", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowDockNode", + "ret": "ImGuiDockNode*", + "signature": "()", + "stname": "" + } + ], + "igGetWindowDpiScale": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowDpiScale", + "defaults": {}, + "funcname": "GetWindowDpiScale", + "location": "imgui:358", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowDpiScale", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetWindowDrawList": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowDrawList", + "defaults": {}, + "funcname": "GetWindowDrawList", + "location": "imgui:357", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowDrawList", + "ret": "ImDrawList*", + "signature": "()", + "stname": "" + } + ], + "igGetWindowHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowHeight", + "defaults": {}, + "funcname": "GetWindowHeight", + "location": "imgui:362", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowHeight", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igGetWindowPos": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowPos", + "defaults": {}, + "funcname": "GetWindowPos", + "location": "imgui:359", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowPos", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowResizeBorderID": [ + { + "args": "(ImGuiWindow* window,ImGuiDir dir)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "dir", + "type": "ImGuiDir" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiDir dir)", + "call_args": "(window,dir)", + "cimguiname": "igGetWindowResizeBorderID", + "defaults": {}, + "funcname": "GetWindowResizeBorderID", + "location": "imgui_internal:3361", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowResizeBorderID", + "ret": "ImGuiID", + "signature": "(ImGuiWindow*,ImGuiDir)", + "stname": "" + } + ], + "igGetWindowResizeCornerID": [ + { + "args": "(ImGuiWindow* window,int n)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(ImGuiWindow* window,int n)", + "call_args": "(window,n)", + "cimguiname": "igGetWindowResizeCornerID", + "defaults": {}, + "funcname": "GetWindowResizeCornerID", + "location": "imgui_internal:3360", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowResizeCornerID", + "ret": "ImGuiID", + "signature": "(ImGuiWindow*,int)", + "stname": "" + } + ], + "igGetWindowScrollbarID": [ + { + "args": "(ImGuiWindow* window,ImGuiAxis axis)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "axis", + "type": "ImGuiAxis" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiAxis axis)", + "call_args": "(window,axis)", + "cimguiname": "igGetWindowScrollbarID", + "defaults": {}, + "funcname": "GetWindowScrollbarID", + "location": "imgui_internal:3359", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowScrollbarID", + "ret": "ImGuiID", + "signature": "(ImGuiWindow*,ImGuiAxis)", + "stname": "" + } + ], + "igGetWindowScrollbarRect": [ + { + "args": "(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis)", + "argsT": [ + { + "name": "pOut", + "type": "ImRect*" + }, + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "axis", + "type": "ImGuiAxis" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiAxis axis)", + "call_args": "(window,axis)", + "cimguiname": "igGetWindowScrollbarRect", + "defaults": {}, + "funcname": "GetWindowScrollbarRect", + "location": "imgui_internal:3358", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowScrollbarRect", + "ret": "void", + "signature": "(ImGuiWindow*,ImGuiAxis)", + "stname": "" + } + ], + "igGetWindowSize": [ + { + "args": "(ImVec2 *pOut)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowSize", + "defaults": {}, + "funcname": "GetWindowSize", + "location": "imgui:360", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igGetWindowSize", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igGetWindowViewport": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowViewport", + "defaults": {}, + "funcname": "GetWindowViewport", + "location": "imgui:363", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowViewport", + "ret": "ImGuiViewport*", + "signature": "()", + "stname": "" + } + ], + "igGetWindowWidth": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igGetWindowWidth", + "defaults": {}, + "funcname": "GetWindowWidth", + "location": "imgui:361", + "namespace": "ImGui", + "ov_cimguiname": "igGetWindowWidth", + "ret": "float", + "signature": "()", + "stname": "" + } + ], + "igImAbs": [ + { + "args": "(int x)", + "argsT": [ + { + "name": "x", + "type": "int" + } + ], + "argsoriginal": "(int x)", + "call_args": "(x)", + "cimguiname": "igImAbs", + "defaults": {}, + "funcname": "ImAbs", + "location": "imgui_internal:444", + "ov_cimguiname": "igImAbs_Int", + "ret": "int", + "signature": "(int)", + "stname": "" + }, + { + "args": "(float x)", + "argsT": [ + { + "name": "x", + "type": "float" + } + ], + "argsoriginal": "(float x)", + "call_args": "(x)", + "cimguiname": "igImAbs", + "defaults": {}, + "funcname": "ImAbs", + "location": "imgui_internal:445", + "ov_cimguiname": "igImAbs_Float", + "ret": "float", + "signature": "(float)", + "stname": "" + }, + { + "args": "(double x)", + "argsT": [ + { + "name": "x", + "type": "double" + } + ], + "argsoriginal": "(double x)", + "call_args": "(x)", + "cimguiname": "igImAbs", + "defaults": {}, + "funcname": "ImAbs", + "location": "imgui_internal:446", + "ov_cimguiname": "igImAbs_double", + "ret": "double", + "signature": "(double)", + "stname": "" + } + ], + "igImAlphaBlendColors": [ + { + "args": "(ImU32 col_a,ImU32 col_b)", + "argsT": [ + { + "name": "col_a", + "type": "ImU32" + }, + { + "name": "col_b", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 col_a,ImU32 col_b)", + "call_args": "(col_a,col_b)", + "cimguiname": "igImAlphaBlendColors", + "defaults": {}, + "funcname": "ImAlphaBlendColors", + "location": "imgui_internal:334", + "ov_cimguiname": "igImAlphaBlendColors", + "ret": "ImU32", + "signature": "(ImU32,ImU32)", + "stname": "" + } + ], + "igImBezierCubicCalc": [ + { + "args": "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", + "type": "const ImVec2" + }, + { + "name": "t", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,float t)", + "call_args": "(p1,p2,p3,p4,t)", + "cimguiname": "igImBezierCubicCalc", + "defaults": {}, + "funcname": "ImBezierCubicCalc", + "location": "imgui_internal:489", + "nonUDT": 1, + "ov_cimguiname": "igImBezierCubicCalc", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)", + "stname": "" + } + ], + "igImBezierCubicClosestPoint": [ + { + "args": "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", + "type": "const ImVec2" + }, + { + "name": "p", + "type": "const ImVec2" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& p,int num_segments)", + "call_args": "(p1,p2,p3,p4,p,num_segments)", + "cimguiname": "igImBezierCubicClosestPoint", + "defaults": {}, + "funcname": "ImBezierCubicClosestPoint", + "location": "imgui_internal:490", + "nonUDT": 1, + "ov_cimguiname": "igImBezierCubicClosestPoint", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,int)", + "stname": "" + } + ], + "igImBezierCubicClosestPointCasteljau": [ + { + "args": "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "p4", + "type": "const ImVec2" + }, + { + "name": "p", + "type": "const ImVec2" + }, + { + "name": "tess_tol", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& p,float tess_tol)", + "call_args": "(p1,p2,p3,p4,p,tess_tol)", + "cimguiname": "igImBezierCubicClosestPointCasteljau", + "defaults": {}, + "funcname": "ImBezierCubicClosestPointCasteljau", + "location": "imgui_internal:491", + "nonUDT": 1, + "ov_cimguiname": "igImBezierCubicClosestPointCasteljau", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)", + "stname": "" + } + ], + "igImBezierQuadraticCalc": [ + { + "args": "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "p1", + "type": "const ImVec2" + }, + { + "name": "p2", + "type": "const ImVec2" + }, + { + "name": "p3", + "type": "const ImVec2" + }, + { + "name": "t", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,float t)", + "call_args": "(p1,p2,p3,t)", + "cimguiname": "igImBezierQuadraticCalc", + "defaults": {}, + "funcname": "ImBezierQuadraticCalc", + "location": "imgui_internal:492", + "nonUDT": 1, + "ov_cimguiname": "igImBezierQuadraticCalc", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,float)", + "stname": "" + } + ], + "igImBitArrayClearBit": [ + { + "args": "(ImU32* arr,int n)", + "argsT": [ + { + "name": "arr", + "type": "ImU32*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(ImU32* arr,int n)", + "call_args": "(arr,n)", + "cimguiname": "igImBitArrayClearBit", + "defaults": {}, + "funcname": "ImBitArrayClearBit", + "location": "imgui_internal:560", + "ov_cimguiname": "igImBitArrayClearBit", + "ret": "void", + "signature": "(ImU32*,int)", + "stname": "" + } + ], + "igImBitArraySetBit": [ + { + "args": "(ImU32* arr,int n)", + "argsT": [ + { + "name": "arr", + "type": "ImU32*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(ImU32* arr,int n)", + "call_args": "(arr,n)", + "cimguiname": "igImBitArraySetBit", + "defaults": {}, + "funcname": "ImBitArraySetBit", + "location": "imgui_internal:561", + "ov_cimguiname": "igImBitArraySetBit", + "ret": "void", + "signature": "(ImU32*,int)", + "stname": "" + } + ], + "igImBitArraySetBitRange": [ + { + "args": "(ImU32* arr,int n,int n2)", + "argsT": [ + { + "name": "arr", + "type": "ImU32*" + }, + { + "name": "n", + "type": "int" + }, + { + "name": "n2", + "type": "int" + } + ], + "argsoriginal": "(ImU32* arr,int n,int n2)", + "call_args": "(arr,n,n2)", + "cimguiname": "igImBitArraySetBitRange", + "defaults": {}, + "funcname": "ImBitArraySetBitRange", + "location": "imgui_internal:562", + "ov_cimguiname": "igImBitArraySetBitRange", + "ret": "void", + "signature": "(ImU32*,int,int)", + "stname": "" + } + ], + "igImBitArrayTestBit": [ + { + "args": "(const ImU32* arr,int n)", + "argsT": [ + { + "name": "arr", + "type": "const ImU32*" + }, + { + "name": "n", + "type": "int" + } + ], + "argsoriginal": "(const ImU32* arr,int n)", + "call_args": "(arr,n)", + "cimguiname": "igImBitArrayTestBit", + "defaults": {}, + "funcname": "ImBitArrayTestBit", + "location": "imgui_internal:559", + "ov_cimguiname": "igImBitArrayTestBit", + "ret": "bool", + "signature": "(const ImU32*,int)", + "stname": "" + } + ], + "igImCharIsBlankA": [ + { + "args": "(char c)", + "argsT": [ + { + "name": "c", + "type": "char" + } + ], + "argsoriginal": "(char c)", + "call_args": "(c)", + "cimguiname": "igImCharIsBlankA", + "defaults": {}, + "funcname": "ImCharIsBlankA", + "location": "imgui_internal:356", + "ov_cimguiname": "igImCharIsBlankA", + "ret": "bool", + "signature": "(char)", + "stname": "" + } + ], + "igImCharIsBlankW": [ + { + "args": "(unsigned int c)", + "argsT": [ + { + "name": "c", + "type": "unsigned int" + } + ], + "argsoriginal": "(unsigned int c)", + "call_args": "(c)", + "cimguiname": "igImCharIsBlankW", + "defaults": {}, + "funcname": "ImCharIsBlankW", + "location": "imgui_internal:357", + "ov_cimguiname": "igImCharIsBlankW", + "ret": "bool", + "signature": "(unsigned int)", + "stname": "" + } + ], + "igImClamp": [ + { + "args": "(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,ImVec2 mx)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "v", + "type": "const ImVec2" + }, + { + "name": "mn", + "type": "const ImVec2" + }, + { + "name": "mx", + "type": "ImVec2" + } + ], + "argsoriginal": "(const ImVec2& v,const ImVec2& mn,ImVec2 mx)", + "call_args": "(v,mn,mx)", + "cimguiname": "igImClamp", + "defaults": {}, + "funcname": "ImClamp", + "location": "imgui_internal:468", + "nonUDT": 1, + "ov_cimguiname": "igImClamp", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,ImVec2)", + "stname": "" + } + ], + "igImDot": [ + { + "args": "(const ImVec2 a,const ImVec2 b)", + "argsT": [ + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b)", + "call_args": "(a,b)", + "cimguiname": "igImDot", + "defaults": {}, + "funcname": "ImDot", + "location": "imgui_internal:481", + "ov_cimguiname": "igImDot", + "ret": "float", + "signature": "(const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igImFileClose": [ + { + "args": "(ImFileHandle file)", + "argsT": [ + { + "name": "file", + "type": "ImFileHandle" + } + ], + "argsoriginal": "(ImFileHandle file)", + "call_args": "(file)", + "cimguiname": "igImFileClose", + "defaults": {}, + "funcname": "ImFileClose", + "location": "imgui_internal:417", + "ov_cimguiname": "igImFileClose", + "ret": "bool", + "signature": "(ImFileHandle)", + "stname": "" + } + ], + "igImFileGetSize": [ + { + "args": "(ImFileHandle file)", + "argsT": [ + { + "name": "file", + "type": "ImFileHandle" + } + ], + "argsoriginal": "(ImFileHandle file)", + "call_args": "(file)", + "cimguiname": "igImFileGetSize", + "defaults": {}, + "funcname": "ImFileGetSize", + "location": "imgui_internal:418", + "ov_cimguiname": "igImFileGetSize", + "ret": "ImU64", + "signature": "(ImFileHandle)", + "stname": "" + } + ], + "igImFileLoadToMemory": [ + { + "args": "(const char* filename,const char* mode,size_t* out_file_size,int padding_bytes)", + "argsT": [ + { + "name": "filename", + "type": "const char*" + }, + { + "name": "mode", + "type": "const char*" + }, + { + "name": "out_file_size", + "type": "size_t*" + }, + { + "name": "padding_bytes", + "type": "int" + } + ], + "argsoriginal": "(const char* filename,const char* mode,size_t* out_file_size=((void*)0),int padding_bytes=0)", + "call_args": "(filename,mode,out_file_size,padding_bytes)", + "cimguiname": "igImFileLoadToMemory", + "defaults": { + "out_file_size": "NULL", + "padding_bytes": "0" + }, + "funcname": "ImFileLoadToMemory", + "location": "imgui_internal:424", + "ov_cimguiname": "igImFileLoadToMemory", + "ret": "void*", + "signature": "(const char*,const char*,size_t*,int)", + "stname": "" + } + ], + "igImFileOpen": [ + { + "args": "(const char* filename,const char* mode)", + "argsT": [ + { + "name": "filename", + "type": "const char*" + }, + { + "name": "mode", + "type": "const char*" + } + ], + "argsoriginal": "(const char* filename,const char* mode)", + "call_args": "(filename,mode)", + "cimguiname": "igImFileOpen", + "defaults": {}, + "funcname": "ImFileOpen", + "location": "imgui_internal:416", + "ov_cimguiname": "igImFileOpen", + "ret": "ImFileHandle", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igImFileRead": [ + { + "args": "(void* data,ImU64 size,ImU64 count,ImFileHandle file)", + "argsT": [ + { + "name": "data", + "type": "void*" + }, + { + "name": "size", + "type": "ImU64" + }, + { + "name": "count", + "type": "ImU64" + }, + { + "name": "file", + "type": "ImFileHandle" + } + ], + "argsoriginal": "(void* data,ImU64 size,ImU64 count,ImFileHandle file)", + "call_args": "(data,size,count,file)", + "cimguiname": "igImFileRead", + "defaults": {}, + "funcname": "ImFileRead", + "location": "imgui_internal:419", + "ov_cimguiname": "igImFileRead", + "ret": "ImU64", + "signature": "(void*,ImU64,ImU64,ImFileHandle)", + "stname": "" + } + ], + "igImFileWrite": [ + { + "args": "(const void* data,ImU64 size,ImU64 count,ImFileHandle file)", + "argsT": [ + { + "name": "data", + "type": "const void*" + }, + { + "name": "size", + "type": "ImU64" + }, + { + "name": "count", + "type": "ImU64" + }, + { + "name": "file", + "type": "ImFileHandle" + } + ], + "argsoriginal": "(const void* data,ImU64 size,ImU64 count,ImFileHandle file)", + "call_args": "(data,size,count,file)", + "cimguiname": "igImFileWrite", + "defaults": {}, + "funcname": "ImFileWrite", + "location": "imgui_internal:420", + "ov_cimguiname": "igImFileWrite", + "ret": "ImU64", + "signature": "(const void*,ImU64,ImU64,ImFileHandle)", + "stname": "" + } + ], + "igImFloor": [ + { + "args": "(float f)", + "argsT": [ + { + "name": "f", + "type": "float" + } + ], + "argsoriginal": "(float f)", + "call_args": "(f)", + "cimguiname": "igImFloor", + "defaults": {}, + "funcname": "ImFloor", + "location": "imgui_internal:476", + "ov_cimguiname": "igImFloor_Float", + "ret": "float", + "signature": "(float)", + "stname": "" + }, + { + "args": "(ImVec2 *pOut,const ImVec2 v)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "v", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& v)", + "call_args": "(v)", + "cimguiname": "igImFloor", + "defaults": {}, + "funcname": "ImFloor", + "location": "imgui_internal:478", + "nonUDT": 1, + "ov_cimguiname": "igImFloor_Vec2", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igImFloorSigned": [ + { + "args": "(float f)", + "argsT": [ + { + "name": "f", + "type": "float" + } + ], + "argsoriginal": "(float f)", + "call_args": "(f)", + "cimguiname": "igImFloorSigned", + "defaults": {}, + "funcname": "ImFloorSigned", + "location": "imgui_internal:477", + "ov_cimguiname": "igImFloorSigned_Float", + "ret": "float", + "signature": "(float)", + "stname": "" + }, + { + "args": "(ImVec2 *pOut,const ImVec2 v)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "v", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& v)", + "call_args": "(v)", + "cimguiname": "igImFloorSigned", + "defaults": {}, + "funcname": "ImFloorSigned", + "location": "imgui_internal:479", + "nonUDT": 1, + "ov_cimguiname": "igImFloorSigned_Vec2", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igImFontAtlasBuildFinish": [ + { + "args": "(ImFontAtlas* atlas)", + "argsT": [ + { + "name": "atlas", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "(ImFontAtlas* atlas)", + "call_args": "(atlas)", + "cimguiname": "igImFontAtlasBuildFinish", + "defaults": {}, + "funcname": "ImFontAtlasBuildFinish", + "location": "imgui_internal:3488", + "ov_cimguiname": "igImFontAtlasBuildFinish", + "ret": "void", + "signature": "(ImFontAtlas*)", + "stname": "" + } + ], + "igImFontAtlasBuildInit": [ + { + "args": "(ImFontAtlas* atlas)", + "argsT": [ + { + "name": "atlas", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "(ImFontAtlas* atlas)", + "call_args": "(atlas)", + "cimguiname": "igImFontAtlasBuildInit", + "defaults": {}, + "funcname": "ImFontAtlasBuildInit", + "location": "imgui_internal:3485", + "ov_cimguiname": "igImFontAtlasBuildInit", + "ret": "void", + "signature": "(ImFontAtlas*)", + "stname": "" + } + ], + "igImFontAtlasBuildMultiplyCalcLookupTable": [ + { + "args": "(unsigned char out_table[256],float in_multiply_factor)", + "argsT": [ + { + "name": "out_table", + "type": "unsigned char[256]" + }, + { + "name": "in_multiply_factor", + "type": "float" + } + ], + "argsoriginal": "(unsigned char out_table[256],float in_multiply_factor)", + "call_args": "(out_table,in_multiply_factor)", + "cimguiname": "igImFontAtlasBuildMultiplyCalcLookupTable", + "defaults": {}, + "funcname": "ImFontAtlasBuildMultiplyCalcLookupTable", + "location": "imgui_internal:3491", + "ov_cimguiname": "igImFontAtlasBuildMultiplyCalcLookupTable", + "ret": "void", + "signature": "(unsigned char[256],float)", + "stname": "" + } + ], + "igImFontAtlasBuildMultiplyRectAlpha8": [ + { + "args": "(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride)", + "argsT": [ + { + "name": "table", + "type": "const unsigned char[256]" + }, + { + "name": "pixels", + "type": "unsigned char*" + }, + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + }, + { + "name": "w", + "type": "int" + }, + { + "name": "h", + "type": "int" + }, + { + "name": "stride", + "type": "int" + } + ], + "argsoriginal": "(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride)", + "call_args": "(table,pixels,x,y,w,h,stride)", + "cimguiname": "igImFontAtlasBuildMultiplyRectAlpha8", + "defaults": {}, + "funcname": "ImFontAtlasBuildMultiplyRectAlpha8", + "location": "imgui_internal:3492", + "ov_cimguiname": "igImFontAtlasBuildMultiplyRectAlpha8", + "ret": "void", + "signature": "(const unsigned char[256],unsigned char*,int,int,int,int,int)", + "stname": "" + } + ], + "igImFontAtlasBuildPackCustomRects": [ + { + "args": "(ImFontAtlas* atlas,void* stbrp_context_opaque)", + "argsT": [ + { + "name": "atlas", + "type": "ImFontAtlas*" + }, + { + "name": "stbrp_context_opaque", + "type": "void*" + } + ], + "argsoriginal": "(ImFontAtlas* atlas,void* stbrp_context_opaque)", + "call_args": "(atlas,stbrp_context_opaque)", + "cimguiname": "igImFontAtlasBuildPackCustomRects", + "defaults": {}, + "funcname": "ImFontAtlasBuildPackCustomRects", + "location": "imgui_internal:3487", + "ov_cimguiname": "igImFontAtlasBuildPackCustomRects", + "ret": "void", + "signature": "(ImFontAtlas*,void*)", + "stname": "" + } + ], + "igImFontAtlasBuildRender32bppRectFromString": [ + { + "args": "(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value)", + "argsT": [ + { + "name": "atlas", + "type": "ImFontAtlas*" + }, + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + }, + { + "name": "w", + "type": "int" + }, + { + "name": "h", + "type": "int" + }, + { + "name": "in_str", + "type": "const char*" + }, + { + "name": "in_marker_char", + "type": "char" + }, + { + "name": "in_marker_pixel_value", + "type": "unsigned int" + } + ], + "argsoriginal": "(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value)", + "call_args": "(atlas,x,y,w,h,in_str,in_marker_char,in_marker_pixel_value)", + "cimguiname": "igImFontAtlasBuildRender32bppRectFromString", + "defaults": {}, + "funcname": "ImFontAtlasBuildRender32bppRectFromString", + "location": "imgui_internal:3490", + "ov_cimguiname": "igImFontAtlasBuildRender32bppRectFromString", + "ret": "void", + "signature": "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned int)", + "stname": "" + } + ], + "igImFontAtlasBuildRender8bppRectFromString": [ + { + "args": "(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value)", + "argsT": [ + { + "name": "atlas", + "type": "ImFontAtlas*" + }, + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + }, + { + "name": "w", + "type": "int" + }, + { + "name": "h", + "type": "int" + }, + { + "name": "in_str", + "type": "const char*" + }, + { + "name": "in_marker_char", + "type": "char" + }, + { + "name": "in_marker_pixel_value", + "type": "unsigned char" + } + ], + "argsoriginal": "(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value)", + "call_args": "(atlas,x,y,w,h,in_str,in_marker_char,in_marker_pixel_value)", + "cimguiname": "igImFontAtlasBuildRender8bppRectFromString", + "defaults": {}, + "funcname": "ImFontAtlasBuildRender8bppRectFromString", + "location": "imgui_internal:3489", + "ov_cimguiname": "igImFontAtlasBuildRender8bppRectFromString", + "ret": "void", + "signature": "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned char)", + "stname": "" + } + ], + "igImFontAtlasBuildSetupFont": [ + { + "args": "(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent)", + "argsT": [ + { + "name": "atlas", + "type": "ImFontAtlas*" + }, + { + "name": "font", + "type": "ImFont*" + }, + { + "name": "font_config", + "type": "ImFontConfig*" + }, + { + "name": "ascent", + "type": "float" + }, + { + "name": "descent", + "type": "float" + } + ], + "argsoriginal": "(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent)", + "call_args": "(atlas,font,font_config,ascent,descent)", + "cimguiname": "igImFontAtlasBuildSetupFont", + "defaults": {}, + "funcname": "ImFontAtlasBuildSetupFont", + "location": "imgui_internal:3486", + "ov_cimguiname": "igImFontAtlasBuildSetupFont", + "ret": "void", + "signature": "(ImFontAtlas*,ImFont*,ImFontConfig*,float,float)", + "stname": "" + } + ], + "igImFormatString": [ + { + "args": "(char* buf,size_t buf_size,const char* fmt,...)", + "argsT": [ + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(char* buf,size_t buf_size,const char* fmt,...)", + "call_args": "(buf,buf_size,fmt,...)", + "cimguiname": "igImFormatString", + "defaults": {}, + "funcname": "ImFormatString", + "isvararg": "...)", + "location": "imgui_internal:361", + "ov_cimguiname": "igImFormatString", + "ret": "int", + "signature": "(char*,size_t,const char*,...)", + "stname": "" + } + ], + "igImFormatStringToTempBuffer": [ + { + "args": "(const char** out_buf,const char** out_buf_end,const char* fmt,...)", + "argsT": [ + { + "name": "out_buf", + "type": "const char**" + }, + { + "name": "out_buf_end", + "type": "const char**" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char** out_buf,const char** out_buf_end,const char* fmt,...)", + "call_args": "(out_buf,out_buf_end,fmt,...)", + "cimguiname": "igImFormatStringToTempBuffer", + "defaults": {}, + "funcname": "ImFormatStringToTempBuffer", + "isvararg": "...)", + "location": "imgui_internal:363", + "ov_cimguiname": "igImFormatStringToTempBuffer", + "ret": "void", + "signature": "(const char**,const char**,const char*,...)", + "stname": "" + } + ], + "igImFormatStringToTempBufferV": [ + { + "args": "(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args)", + "argsT": [ + { + "name": "out_buf", + "type": "const char**" + }, + { + "name": "out_buf_end", + "type": "const char**" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args)", + "call_args": "(out_buf,out_buf_end,fmt,args)", + "cimguiname": "igImFormatStringToTempBufferV", + "defaults": {}, + "funcname": "ImFormatStringToTempBufferV", + "location": "imgui_internal:364", + "ov_cimguiname": "igImFormatStringToTempBufferV", + "ret": "void", + "signature": "(const char**,const char**,const char*,va_list)", + "stname": "" + } + ], + "igImFormatStringV": [ + { + "args": "(char* buf,size_t buf_size,const char* fmt,va_list args)", + "argsT": [ + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(char* buf,size_t buf_size,const char* fmt,va_list args)", + "call_args": "(buf,buf_size,fmt,args)", + "cimguiname": "igImFormatStringV", + "defaults": {}, + "funcname": "ImFormatStringV", + "location": "imgui_internal:362", + "ov_cimguiname": "igImFormatStringV", + "ret": "int", + "signature": "(char*,size_t,const char*,va_list)", + "stname": "" + } + ], + "igImGetDirQuadrantFromDelta": [ + { + "args": "(float dx,float dy)", + "argsT": [ + { + "name": "dx", + "type": "float" + }, + { + "name": "dy", + "type": "float" + } + ], + "argsoriginal": "(float dx,float dy)", + "call_args": "(dx,dy)", + "cimguiname": "igImGetDirQuadrantFromDelta", + "defaults": {}, + "funcname": "ImGetDirQuadrantFromDelta", + "location": "imgui_internal:498", + "ov_cimguiname": "igImGetDirQuadrantFromDelta", + "ret": "ImGuiDir", + "signature": "(float,float)", + "stname": "" + } + ], + "igImHashData": [ + { + "args": "(const void* data,size_t data_size,ImU32 seed)", + "argsT": [ + { + "name": "data", + "type": "const void*" + }, + { + "name": "data_size", + "type": "size_t" + }, + { + "name": "seed", + "type": "ImU32" + } + ], + "argsoriginal": "(const void* data,size_t data_size,ImU32 seed=0)", + "call_args": "(data,data_size,seed)", + "cimguiname": "igImHashData", + "defaults": { + "seed": "0" + }, + "funcname": "ImHashData", + "location": "imgui_internal:325", + "ov_cimguiname": "igImHashData", + "ret": "ImGuiID", + "signature": "(const void*,size_t,ImU32)", + "stname": "" + } + ], + "igImHashStr": [ + { + "args": "(const char* data,size_t data_size,ImU32 seed)", + "argsT": [ + { + "name": "data", + "type": "const char*" + }, + { + "name": "data_size", + "type": "size_t" + }, + { + "name": "seed", + "type": "ImU32" + } + ], + "argsoriginal": "(const char* data,size_t data_size=0,ImU32 seed=0)", + "call_args": "(data,data_size,seed)", + "cimguiname": "igImHashStr", + "defaults": { + "data_size": "0", + "seed": "0" + }, + "funcname": "ImHashStr", + "location": "imgui_internal:326", + "ov_cimguiname": "igImHashStr", + "ret": "ImGuiID", + "signature": "(const char*,size_t,ImU32)", + "stname": "" + } + ], + "igImInvLength": [ + { + "args": "(const ImVec2 lhs,float fail_value)", + "argsT": [ + { + "name": "lhs", + "type": "const ImVec2" + }, + { + "name": "fail_value", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& lhs,float fail_value)", + "call_args": "(lhs,fail_value)", + "cimguiname": "igImInvLength", + "defaults": {}, + "funcname": "ImInvLength", + "location": "imgui_internal:475", + "ov_cimguiname": "igImInvLength", + "ret": "float", + "signature": "(const ImVec2,float)", + "stname": "" + } + ], + "igImIsFloatAboveGuaranteedIntegerPrecision": [ + { + "args": "(float f)", + "argsT": [ + { + "name": "f", + "type": "float" + } + ], + "argsoriginal": "(float f)", + "call_args": "(f)", + "cimguiname": "igImIsFloatAboveGuaranteedIntegerPrecision", + "defaults": {}, + "funcname": "ImIsFloatAboveGuaranteedIntegerPrecision", + "location": "imgui_internal:485", + "ov_cimguiname": "igImIsFloatAboveGuaranteedIntegerPrecision", + "ret": "bool", + "signature": "(float)", + "stname": "" + } + ], + "igImIsPowerOfTwo": [ + { + "args": "(int v)", + "argsT": [ + { + "name": "v", + "type": "int" + } + ], + "argsoriginal": "(int v)", + "call_args": "(v)", + "cimguiname": "igImIsPowerOfTwo", + "defaults": {}, + "funcname": "ImIsPowerOfTwo", + "location": "imgui_internal:337", + "ov_cimguiname": "igImIsPowerOfTwo_Int", + "ret": "bool", + "signature": "(int)", + "stname": "" + }, + { + "args": "(ImU64 v)", + "argsT": [ + { + "name": "v", + "type": "ImU64" + } + ], + "argsoriginal": "(ImU64 v)", + "call_args": "(v)", + "cimguiname": "igImIsPowerOfTwo", + "defaults": {}, + "funcname": "ImIsPowerOfTwo", + "location": "imgui_internal:338", + "ov_cimguiname": "igImIsPowerOfTwo_U64", + "ret": "bool", + "signature": "(ImU64)", + "stname": "" + } + ], + "igImLengthSqr": [ + { + "args": "(const ImVec2 lhs)", + "argsT": [ + { + "name": "lhs", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& lhs)", + "call_args": "(lhs)", + "cimguiname": "igImLengthSqr", + "defaults": {}, + "funcname": "ImLengthSqr", + "location": "imgui_internal:473", + "ov_cimguiname": "igImLengthSqr_Vec2", + "ret": "float", + "signature": "(const ImVec2)", + "stname": "" + }, + { + "args": "(const ImVec4 lhs)", + "argsT": [ + { + "name": "lhs", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const ImVec4& lhs)", + "call_args": "(lhs)", + "cimguiname": "igImLengthSqr", + "defaults": {}, + "funcname": "ImLengthSqr", + "location": "imgui_internal:474", + "ov_cimguiname": "igImLengthSqr_Vec4", + "ret": "float", + "signature": "(const ImVec4)", + "stname": "" + } + ], + "igImLerp": [ + { + "args": "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "t", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,float t)", + "call_args": "(a,b,t)", + "cimguiname": "igImLerp", + "defaults": {}, + "funcname": "ImLerp", + "location": "imgui_internal:469", + "nonUDT": 1, + "ov_cimguiname": "igImLerp_Vec2Float", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,float)", + "stname": "" + }, + { + "args": "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "t", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& t)", + "call_args": "(a,b,t)", + "cimguiname": "igImLerp", + "defaults": {}, + "funcname": "ImLerp", + "location": "imgui_internal:470", + "nonUDT": 1, + "ov_cimguiname": "igImLerp_Vec2Vec2", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2)", + "stname": "" + }, + { + "args": "(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec4*" + }, + { + "name": "a", + "type": "const ImVec4" + }, + { + "name": "b", + "type": "const ImVec4" + }, + { + "name": "t", + "type": "float" + } + ], + "argsoriginal": "(const ImVec4& a,const ImVec4& b,float t)", + "call_args": "(a,b,t)", + "cimguiname": "igImLerp", + "defaults": {}, + "funcname": "ImLerp", + "location": "imgui_internal:471", + "nonUDT": 1, + "ov_cimguiname": "igImLerp_Vec4", + "ret": "void", + "signature": "(const ImVec4,const ImVec4,float)", + "stname": "" + } + ], + "igImLineClosestPoint": [ + { + "args": "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 p)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "p", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& p)", + "call_args": "(a,b,p)", + "cimguiname": "igImLineClosestPoint", + "defaults": {}, + "funcname": "ImLineClosestPoint", + "location": "imgui_internal:493", + "nonUDT": 1, + "ov_cimguiname": "igImLineClosestPoint", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igImLinearSweep": [ + { + "args": "(float current,float target,float speed)", + "argsT": [ + { + "name": "current", + "type": "float" + }, + { + "name": "target", + "type": "float" + }, + { + "name": "speed", + "type": "float" + } + ], + "argsoriginal": "(float current,float target,float speed)", + "call_args": "(current,target,speed)", + "cimguiname": "igImLinearSweep", + "defaults": {}, + "funcname": "ImLinearSweep", + "location": "imgui_internal:483", + "ov_cimguiname": "igImLinearSweep", + "ret": "float", + "signature": "(float,float,float)", + "stname": "" + } + ], + "igImLog": [ + { + "args": "(float x)", + "argsT": [ + { + "name": "x", + "type": "float" + } + ], + "argsoriginal": "(float x)", + "call_args": "(x)", + "cimguiname": "igImLog", + "defaults": {}, + "funcname": "ImLog", + "location": "imgui_internal:442", + "ov_cimguiname": "igImLog_Float", + "ret": "float", + "signature": "(float)", + "stname": "" + }, + { + "args": "(double x)", + "argsT": [ + { + "name": "x", + "type": "double" + } + ], + "argsoriginal": "(double x)", + "call_args": "(x)", + "cimguiname": "igImLog", + "defaults": {}, + "funcname": "ImLog", + "location": "imgui_internal:443", + "ov_cimguiname": "igImLog_double", + "ret": "double", + "signature": "(double)", + "stname": "" + } + ], + "igImMax": [ + { + "args": "(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "lhs", + "type": "const ImVec2" + }, + { + "name": "rhs", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& lhs,const ImVec2& rhs)", + "call_args": "(lhs,rhs)", + "cimguiname": "igImMax", + "defaults": {}, + "funcname": "ImMax", + "location": "imgui_internal:467", + "nonUDT": 1, + "ov_cimguiname": "igImMax", + "ret": "void", + "signature": "(const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igImMin": [ + { + "args": "(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "lhs", + "type": "const ImVec2" + }, + { + "name": "rhs", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& lhs,const ImVec2& rhs)", + "call_args": "(lhs,rhs)", + "cimguiname": "igImMin", + "defaults": {}, + "funcname": "ImMin", + "location": "imgui_internal:466", + "nonUDT": 1, + "ov_cimguiname": "igImMin", + "ret": "void", + "signature": "(const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igImModPositive": [ + { + "args": "(int a,int b)", + "argsT": [ + { + "name": "a", + "type": "int" + }, + { + "name": "b", + "type": "int" + } + ], + "argsoriginal": "(int a,int b)", + "call_args": "(a,b)", + "cimguiname": "igImModPositive", + "defaults": {}, + "funcname": "ImModPositive", + "location": "imgui_internal:480", + "ov_cimguiname": "igImModPositive", + "ret": "int", + "signature": "(int,int)", + "stname": "" + } + ], + "igImMul": [ + { + "args": "(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "lhs", + "type": "const ImVec2" + }, + { + "name": "rhs", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& lhs,const ImVec2& rhs)", + "call_args": "(lhs,rhs)", + "cimguiname": "igImMul", + "defaults": {}, + "funcname": "ImMul", + "location": "imgui_internal:484", + "nonUDT": 1, + "ov_cimguiname": "igImMul", + "ret": "void", + "signature": "(const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igImParseFormatFindEnd": [ + { + "args": "(const char* format)", + "argsT": [ + { + "name": "format", + "type": "const char*" + } + ], + "argsoriginal": "(const char* format)", + "call_args": "(format)", + "cimguiname": "igImParseFormatFindEnd", + "defaults": {}, + "funcname": "ImParseFormatFindEnd", + "location": "imgui_internal:366", + "ov_cimguiname": "igImParseFormatFindEnd", + "ret": "const char*", + "signature": "(const char*)", + "stname": "" + } + ], + "igImParseFormatFindStart": [ + { + "args": "(const char* format)", + "argsT": [ + { + "name": "format", + "type": "const char*" + } + ], + "argsoriginal": "(const char* format)", + "call_args": "(format)", + "cimguiname": "igImParseFormatFindStart", + "defaults": {}, + "funcname": "ImParseFormatFindStart", + "location": "imgui_internal:365", + "ov_cimguiname": "igImParseFormatFindStart", + "ret": "const char*", + "signature": "(const char*)", + "stname": "" + } + ], + "igImParseFormatPrecision": [ + { + "args": "(const char* format,int default_value)", + "argsT": [ + { + "name": "format", + "type": "const char*" + }, + { + "name": "default_value", + "type": "int" + } + ], + "argsoriginal": "(const char* format,int default_value)", + "call_args": "(format,default_value)", + "cimguiname": "igImParseFormatPrecision", + "defaults": {}, + "funcname": "ImParseFormatPrecision", + "location": "imgui_internal:370", + "ov_cimguiname": "igImParseFormatPrecision", + "ret": "int", + "signature": "(const char*,int)", + "stname": "" + } + ], + "igImParseFormatSanitizeForPrinting": [ + { + "args": "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)", + "argsT": [ + { + "name": "fmt_in", + "type": "const char*" + }, + { + "name": "fmt_out", + "type": "char*" + }, + { + "name": "fmt_out_size", + "type": "size_t" + } + ], + "argsoriginal": "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)", + "call_args": "(fmt_in,fmt_out,fmt_out_size)", + "cimguiname": "igImParseFormatSanitizeForPrinting", + "defaults": {}, + "funcname": "ImParseFormatSanitizeForPrinting", + "location": "imgui_internal:368", + "ov_cimguiname": "igImParseFormatSanitizeForPrinting", + "ret": "void", + "signature": "(const char*,char*,size_t)", + "stname": "" + } + ], + "igImParseFormatSanitizeForScanning": [ + { + "args": "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)", + "argsT": [ + { + "name": "fmt_in", + "type": "const char*" + }, + { + "name": "fmt_out", + "type": "char*" + }, + { + "name": "fmt_out_size", + "type": "size_t" + } + ], + "argsoriginal": "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)", + "call_args": "(fmt_in,fmt_out,fmt_out_size)", + "cimguiname": "igImParseFormatSanitizeForScanning", + "defaults": {}, + "funcname": "ImParseFormatSanitizeForScanning", + "location": "imgui_internal:369", + "ov_cimguiname": "igImParseFormatSanitizeForScanning", + "ret": "const char*", + "signature": "(const char*,char*,size_t)", + "stname": "" + } + ], + "igImParseFormatTrimDecorations": [ + { + "args": "(const char* format,char* buf,size_t buf_size)", + "argsT": [ + { + "name": "format", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + } + ], + "argsoriginal": "(const char* format,char* buf,size_t buf_size)", + "call_args": "(format,buf,buf_size)", + "cimguiname": "igImParseFormatTrimDecorations", + "defaults": {}, + "funcname": "ImParseFormatTrimDecorations", + "location": "imgui_internal:367", + "ov_cimguiname": "igImParseFormatTrimDecorations", + "ret": "const char*", + "signature": "(const char*,char*,size_t)", + "stname": "" + } + ], + "igImPow": [ + { + "args": "(float x,float y)", + "argsT": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ], + "argsoriginal": "(float x,float y)", + "call_args": "(x,y)", + "cimguiname": "igImPow", + "defaults": {}, + "funcname": "ImPow", + "location": "imgui_internal:440", + "ov_cimguiname": "igImPow_Float", + "ret": "float", + "signature": "(float,float)", + "stname": "" + }, + { + "args": "(double x,double y)", + "argsT": [ + { + "name": "x", + "type": "double" + }, + { + "name": "y", + "type": "double" + } + ], + "argsoriginal": "(double x,double y)", + "call_args": "(x,y)", + "cimguiname": "igImPow", + "defaults": {}, + "funcname": "ImPow", + "location": "imgui_internal:441", + "ov_cimguiname": "igImPow_double", + "ret": "double", + "signature": "(double,double)", + "stname": "" + } + ], + "igImQsort": [ + { + "args": "(void* base,size_t count,size_t size_of_element,int(*compare_func)(void const*,void const*))", + "argsT": [ + { + "name": "base", + "type": "void*" + }, + { + "name": "count", + "type": "size_t" + }, + { + "name": "size_of_element", + "type": "size_t" + }, + { + "name": "compare_func", + "ret": "int", + "signature": "(void const*,void const*)", + "type": "int(*)(void const*,void const*)" + } + ], + "argsoriginal": "(void* base,size_t count,size_t size_of_element,int(*compare_func)(void const*,void const*))", + "call_args": "(base,count,size_of_element,compare_func)", + "cimguiname": "igImQsort", + "defaults": {}, + "funcname": "ImQsort", + "location": "imgui_internal:330", + "ov_cimguiname": "igImQsort", + "ret": "void", + "signature": "(void*,size_t,size_t,int(*)(void const*,void const*))", + "stname": "" + } + ], + "igImRotate": [ + { + "args": "(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "v", + "type": "const ImVec2" + }, + { + "name": "cos_a", + "type": "float" + }, + { + "name": "sin_a", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& v,float cos_a,float sin_a)", + "call_args": "(v,cos_a,sin_a)", + "cimguiname": "igImRotate", + "defaults": {}, + "funcname": "ImRotate", + "location": "imgui_internal:482", + "nonUDT": 1, + "ov_cimguiname": "igImRotate", + "ret": "void", + "signature": "(const ImVec2,float,float)", + "stname": "" + } + ], + "igImRsqrt": [ + { + "args": "(float x)", + "argsT": [ + { + "name": "x", + "type": "float" + } + ], + "argsoriginal": "(float x)", + "call_args": "(x)", + "cimguiname": "igImRsqrt", + "defaults": {}, + "funcname": "ImRsqrt", + "location": "imgui_internal:450", + "ov_cimguiname": "igImRsqrt_Float", + "ret": "float", + "signature": "(float)", + "stname": "" + }, + { + "args": "(double x)", + "argsT": [ + { + "name": "x", + "type": "double" + } + ], + "argsoriginal": "(double x)", + "call_args": "(x)", + "cimguiname": "igImRsqrt", + "defaults": {}, + "funcname": "ImRsqrt", + "location": "imgui_internal:454", + "ov_cimguiname": "igImRsqrt_double", + "ret": "double", + "signature": "(double)", + "stname": "" + } + ], + "igImSaturate": [ + { + "args": "(float f)", + "argsT": [ + { + "name": "f", + "type": "float" + } + ], + "argsoriginal": "(float f)", + "call_args": "(f)", + "cimguiname": "igImSaturate", + "defaults": {}, + "funcname": "ImSaturate", + "location": "imgui_internal:472", + "ov_cimguiname": "igImSaturate", + "ret": "float", + "signature": "(float)", + "stname": "" + } + ], + "igImSign": [ + { + "args": "(float x)", + "argsT": [ + { + "name": "x", + "type": "float" + } + ], + "argsoriginal": "(float x)", + "call_args": "(x)", + "cimguiname": "igImSign", + "defaults": {}, + "funcname": "ImSign", + "location": "imgui_internal:447", + "ov_cimguiname": "igImSign_Float", + "ret": "float", + "signature": "(float)", + "stname": "" + }, + { + "args": "(double x)", + "argsT": [ + { + "name": "x", + "type": "double" + } + ], + "argsoriginal": "(double x)", + "call_args": "(x)", + "cimguiname": "igImSign", + "defaults": {}, + "funcname": "ImSign", + "location": "imgui_internal:448", + "ov_cimguiname": "igImSign_double", + "ret": "double", + "signature": "(double)", + "stname": "" + } + ], + "igImStrSkipBlank": [ + { + "args": "(const char* str)", + "argsT": [ + { + "name": "str", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str)", + "call_args": "(str)", + "cimguiname": "igImStrSkipBlank", + "defaults": {}, + "funcname": "ImStrSkipBlank", + "location": "imgui_internal:353", + "ov_cimguiname": "igImStrSkipBlank", + "ret": "const char*", + "signature": "(const char*)", + "stname": "" + } + ], + "igImStrTrimBlanks": [ + { + "args": "(char* str)", + "argsT": [ + { + "name": "str", + "type": "char*" + } + ], + "argsoriginal": "(char* str)", + "call_args": "(str)", + "cimguiname": "igImStrTrimBlanks", + "defaults": {}, + "funcname": "ImStrTrimBlanks", + "location": "imgui_internal:352", + "ov_cimguiname": "igImStrTrimBlanks", + "ret": "void", + "signature": "(char*)", + "stname": "" + } + ], + "igImStrbolW": [ + { + "args": "(const ImWchar* buf_mid_line,const ImWchar* buf_begin)", + "argsT": [ + { + "name": "buf_mid_line", + "type": "const ImWchar*" + }, + { + "name": "buf_begin", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const ImWchar* buf_mid_line,const ImWchar* buf_begin)", + "call_args": "(buf_mid_line,buf_begin)", + "cimguiname": "igImStrbolW", + "defaults": {}, + "funcname": "ImStrbolW", + "location": "imgui_internal:350", + "ov_cimguiname": "igImStrbolW", + "ret": "const ImWchar*", + "signature": "(const ImWchar*,const ImWchar*)", + "stname": "" + } + ], + "igImStrchrRange": [ + { + "args": "(const char* str_begin,const char* str_end,char c)", + "argsT": [ + { + "name": "str_begin", + "type": "const char*" + }, + { + "name": "str_end", + "type": "const char*" + }, + { + "name": "c", + "type": "char" + } + ], + "argsoriginal": "(const char* str_begin,const char* str_end,char c)", + "call_args": "(str_begin,str_end,c)", + "cimguiname": "igImStrchrRange", + "defaults": {}, + "funcname": "ImStrchrRange", + "location": "imgui_internal:347", + "ov_cimguiname": "igImStrchrRange", + "ret": "const char*", + "signature": "(const char*,const char*,char)", + "stname": "" + } + ], + "igImStrdup": [ + { + "args": "(const char* str)", + "argsT": [ + { + "name": "str", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str)", + "call_args": "(str)", + "cimguiname": "igImStrdup", + "defaults": {}, + "funcname": "ImStrdup", + "location": "imgui_internal:345", + "ov_cimguiname": "igImStrdup", + "ret": "char*", + "signature": "(const char*)", + "stname": "" + } + ], + "igImStrdupcpy": [ + { + "args": "(char* dst,size_t* p_dst_size,const char* str)", + "argsT": [ + { + "name": "dst", + "type": "char*" + }, + { + "name": "p_dst_size", + "type": "size_t*" + }, + { + "name": "str", + "type": "const char*" + } + ], + "argsoriginal": "(char* dst,size_t* p_dst_size,const char* str)", + "call_args": "(dst,p_dst_size,str)", + "cimguiname": "igImStrdupcpy", + "defaults": {}, + "funcname": "ImStrdupcpy", + "location": "imgui_internal:346", + "ov_cimguiname": "igImStrdupcpy", + "ret": "char*", + "signature": "(char*,size_t*,const char*)", + "stname": "" + } + ], + "igImStreolRange": [ + { + "args": "(const char* str,const char* str_end)", + "argsT": [ + { + "name": "str", + "type": "const char*" + }, + { + "name": "str_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str,const char* str_end)", + "call_args": "(str,str_end)", + "cimguiname": "igImStreolRange", + "defaults": {}, + "funcname": "ImStreolRange", + "location": "imgui_internal:349", + "ov_cimguiname": "igImStreolRange", + "ret": "const char*", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igImStricmp": [ + { + "args": "(const char* str1,const char* str2)", + "argsT": [ + { + "name": "str1", + "type": "const char*" + }, + { + "name": "str2", + "type": "const char*" + } + ], + "argsoriginal": "(const char* str1,const char* str2)", + "call_args": "(str1,str2)", + "cimguiname": "igImStricmp", + "defaults": {}, + "funcname": "ImStricmp", + "location": "imgui_internal:342", + "ov_cimguiname": "igImStricmp", + "ret": "int", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igImStristr": [ + { + "args": "(const char* haystack,const char* haystack_end,const char* needle,const char* needle_end)", + "argsT": [ + { + "name": "haystack", + "type": "const char*" + }, + { + "name": "haystack_end", + "type": "const char*" + }, + { + "name": "needle", + "type": "const char*" + }, + { + "name": "needle_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* haystack,const char* haystack_end,const char* needle,const char* needle_end)", + "call_args": "(haystack,haystack_end,needle,needle_end)", + "cimguiname": "igImStristr", + "defaults": {}, + "funcname": "ImStristr", + "location": "imgui_internal:351", + "ov_cimguiname": "igImStristr", + "ret": "const char*", + "signature": "(const char*,const char*,const char*,const char*)", + "stname": "" + } + ], + "igImStrlenW": [ + { + "args": "(const ImWchar* str)", + "argsT": [ + { + "name": "str", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const ImWchar* str)", + "call_args": "(str)", + "cimguiname": "igImStrlenW", + "defaults": {}, + "funcname": "ImStrlenW", + "location": "imgui_internal:348", + "ov_cimguiname": "igImStrlenW", + "ret": "int", + "signature": "(const ImWchar*)", + "stname": "" + } + ], + "igImStrncpy": [ + { + "args": "(char* dst,const char* src,size_t count)", + "argsT": [ + { + "name": "dst", + "type": "char*" + }, + { + "name": "src", + "type": "const char*" + }, + { + "name": "count", + "type": "size_t" + } + ], + "argsoriginal": "(char* dst,const char* src,size_t count)", + "call_args": "(dst,src,count)", + "cimguiname": "igImStrncpy", + "defaults": {}, + "funcname": "ImStrncpy", + "location": "imgui_internal:344", + "ov_cimguiname": "igImStrncpy", + "ret": "void", + "signature": "(char*,const char*,size_t)", + "stname": "" + } + ], + "igImStrnicmp": [ + { + "args": "(const char* str1,const char* str2,size_t count)", + "argsT": [ + { + "name": "str1", + "type": "const char*" + }, + { + "name": "str2", + "type": "const char*" + }, + { + "name": "count", + "type": "size_t" + } + ], + "argsoriginal": "(const char* str1,const char* str2,size_t count)", + "call_args": "(str1,str2,count)", + "cimguiname": "igImStrnicmp", + "defaults": {}, + "funcname": "ImStrnicmp", + "location": "imgui_internal:343", + "ov_cimguiname": "igImStrnicmp", + "ret": "int", + "signature": "(const char*,const char*,size_t)", + "stname": "" + } + ], + "igImTextCharFromUtf8": [ + { + "args": "(unsigned int* out_char,const char* in_text,const char* in_text_end)", + "argsT": [ + { + "name": "out_char", + "type": "unsigned int*" + }, + { + "name": "in_text", + "type": "const char*" + }, + { + "name": "in_text_end", + "type": "const char*" + } + ], + "argsoriginal": "(unsigned int* out_char,const char* in_text,const char* in_text_end)", + "call_args": "(out_char,in_text,in_text_end)", + "cimguiname": "igImTextCharFromUtf8", + "defaults": {}, + "funcname": "ImTextCharFromUtf8", + "location": "imgui_internal:375", + "ov_cimguiname": "igImTextCharFromUtf8", + "ret": "int", + "signature": "(unsigned int*,const char*,const char*)", + "stname": "" + } + ], + "igImTextCharToUtf8": [ + { + "args": "(char out_buf[5],unsigned int c)", + "argsT": [ + { + "name": "out_buf", + "type": "char[5]" + }, + { + "name": "c", + "type": "unsigned int" + } + ], + "argsoriginal": "(char out_buf[5],unsigned int c)", + "call_args": "(out_buf,c)", + "cimguiname": "igImTextCharToUtf8", + "defaults": {}, + "funcname": "ImTextCharToUtf8", + "location": "imgui_internal:373", + "ov_cimguiname": "igImTextCharToUtf8", + "ret": "const char*", + "signature": "(char[5],unsigned int)", + "stname": "" + } + ], + "igImTextCountCharsFromUtf8": [ + { + "args": "(const char* in_text,const char* in_text_end)", + "argsT": [ + { + "name": "in_text", + "type": "const char*" + }, + { + "name": "in_text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* in_text,const char* in_text_end)", + "call_args": "(in_text,in_text_end)", + "cimguiname": "igImTextCountCharsFromUtf8", + "defaults": {}, + "funcname": "ImTextCountCharsFromUtf8", + "location": "imgui_internal:377", + "ov_cimguiname": "igImTextCountCharsFromUtf8", + "ret": "int", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igImTextCountUtf8BytesFromChar": [ + { + "args": "(const char* in_text,const char* in_text_end)", + "argsT": [ + { + "name": "in_text", + "type": "const char*" + }, + { + "name": "in_text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const char* in_text,const char* in_text_end)", + "call_args": "(in_text,in_text_end)", + "cimguiname": "igImTextCountUtf8BytesFromChar", + "defaults": {}, + "funcname": "ImTextCountUtf8BytesFromChar", + "location": "imgui_internal:378", + "ov_cimguiname": "igImTextCountUtf8BytesFromChar", + "ret": "int", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igImTextCountUtf8BytesFromStr": [ + { + "args": "(const ImWchar* in_text,const ImWchar* in_text_end)", + "argsT": [ + { + "name": "in_text", + "type": "const ImWchar*" + }, + { + "name": "in_text_end", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(const ImWchar* in_text,const ImWchar* in_text_end)", + "call_args": "(in_text,in_text_end)", + "cimguiname": "igImTextCountUtf8BytesFromStr", + "defaults": {}, + "funcname": "ImTextCountUtf8BytesFromStr", + "location": "imgui_internal:379", + "ov_cimguiname": "igImTextCountUtf8BytesFromStr", + "ret": "int", + "signature": "(const ImWchar*,const ImWchar*)", + "stname": "" + } + ], + "igImTextStrFromUtf8": [ + { + "args": "(ImWchar* out_buf,int out_buf_size,const char* in_text,const char* in_text_end,const char** in_remaining)", + "argsT": [ + { + "name": "out_buf", + "type": "ImWchar*" + }, + { + "name": "out_buf_size", + "type": "int" + }, + { + "name": "in_text", + "type": "const char*" + }, + { + "name": "in_text_end", + "type": "const char*" + }, + { + "name": "in_remaining", + "type": "const char**" + } + ], + "argsoriginal": "(ImWchar* out_buf,int out_buf_size,const char* in_text,const char* in_text_end,const char** in_remaining=((void*)0))", + "call_args": "(out_buf,out_buf_size,in_text,in_text_end,in_remaining)", + "cimguiname": "igImTextStrFromUtf8", + "defaults": { + "in_remaining": "NULL" + }, + "funcname": "ImTextStrFromUtf8", + "location": "imgui_internal:376", + "ov_cimguiname": "igImTextStrFromUtf8", + "ret": "int", + "signature": "(ImWchar*,int,const char*,const char*,const char**)", + "stname": "" + } + ], + "igImTextStrToUtf8": [ + { + "args": "(char* out_buf,int out_buf_size,const ImWchar* in_text,const ImWchar* in_text_end)", + "argsT": [ + { + "name": "out_buf", + "type": "char*" + }, + { + "name": "out_buf_size", + "type": "int" + }, + { + "name": "in_text", + "type": "const ImWchar*" + }, + { + "name": "in_text_end", + "type": "const ImWchar*" + } + ], + "argsoriginal": "(char* out_buf,int out_buf_size,const ImWchar* in_text,const ImWchar* in_text_end)", + "call_args": "(out_buf,out_buf_size,in_text,in_text_end)", + "cimguiname": "igImTextStrToUtf8", + "defaults": {}, + "funcname": "ImTextStrToUtf8", + "location": "imgui_internal:374", + "ov_cimguiname": "igImTextStrToUtf8", + "ret": "int", + "signature": "(char*,int,const ImWchar*,const ImWchar*)", + "stname": "" + } + ], + "igImToUpper": [ + { + "args": "(char c)", + "argsT": [ + { + "name": "c", + "type": "char" + } + ], + "argsoriginal": "(char c)", + "call_args": "(c)", + "cimguiname": "igImToUpper", + "defaults": {}, + "funcname": "ImToUpper", + "location": "imgui_internal:355", + "ov_cimguiname": "igImToUpper", + "ret": "char", + "signature": "(char)", + "stname": "" + } + ], + "igImTriangleArea": [ + { + "args": "(const ImVec2 a,const ImVec2 b,const ImVec2 c)", + "argsT": [ + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "c", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& c)", + "call_args": "(a,b,c)", + "cimguiname": "igImTriangleArea", + "defaults": {}, + "funcname": "ImTriangleArea", + "location": "imgui_internal:497", + "ov_cimguiname": "igImTriangleArea", + "ret": "float", + "signature": "(const ImVec2,const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igImTriangleBarycentricCoords": [ + { + "args": "(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float* out_u,float* out_v,float* out_w)", + "argsT": [ + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "c", + "type": "const ImVec2" + }, + { + "name": "p", + "type": "const ImVec2" + }, + { + "name": "out_u", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_v", + "reftoptr": true, + "type": "float*" + }, + { + "name": "out_w", + "reftoptr": true, + "type": "float*" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& p,float& out_u,float& out_v,float& out_w)", + "call_args": "(a,b,c,p,*out_u,*out_v,*out_w)", + "cimguiname": "igImTriangleBarycentricCoords", + "defaults": {}, + "funcname": "ImTriangleBarycentricCoords", + "location": "imgui_internal:496", + "ov_cimguiname": "igImTriangleBarycentricCoords", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float*,float*,float*)", + "stname": "" + } + ], + "igImTriangleClosestPoint": [ + { + "args": "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "c", + "type": "const ImVec2" + }, + { + "name": "p", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& p)", + "call_args": "(a,b,c,p)", + "cimguiname": "igImTriangleClosestPoint", + "defaults": {}, + "funcname": "ImTriangleClosestPoint", + "location": "imgui_internal:495", + "nonUDT": 1, + "ov_cimguiname": "igImTriangleClosestPoint", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igImTriangleContainsPoint": [ + { + "args": "(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p)", + "argsT": [ + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", + "type": "const ImVec2" + }, + { + "name": "c", + "type": "const ImVec2" + }, + { + "name": "p", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& p)", + "call_args": "(a,b,c,p)", + "cimguiname": "igImTriangleContainsPoint", + "defaults": {}, + "funcname": "ImTriangleContainsPoint", + "location": "imgui_internal:494", + "ov_cimguiname": "igImTriangleContainsPoint", + "ret": "bool", + "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igImUpperPowerOfTwo": [ + { + "args": "(int v)", + "argsT": [ + { + "name": "v", + "type": "int" + } + ], + "argsoriginal": "(int v)", + "call_args": "(v)", + "cimguiname": "igImUpperPowerOfTwo", + "defaults": {}, + "funcname": "ImUpperPowerOfTwo", + "location": "imgui_internal:339", + "ov_cimguiname": "igImUpperPowerOfTwo", + "ret": "int", + "signature": "(int)", + "stname": "" + } + ], + "igImage": [ + { + "args": "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col)", + "argsT": [ + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "name": "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" + } + ], + "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& tint_col=ImVec4(1,1,1,1),const ImVec4& border_col=ImVec4(0,0,0,0))", + "call_args": "(user_texture_id,size,uv0,uv1,tint_col,border_col)", + "cimguiname": "igImage", + "defaults": { + "border_col": "ImVec4(0,0,0,0)", + "tint_col": "ImVec4(1,1,1,1)", + "uv0": "ImVec2(0,0)", + "uv1": "ImVec2(1,1)" + }, + "funcname": "Image", + "location": "imgui:523", + "namespace": "ImGui", + "ov_cimguiname": "igImage", + "ret": "void", + "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "stname": "" + } + ], + "igImageButton": [ + { + "args": "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "user_texture_id", + "type": "ImTextureID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "uv0", + "type": "const ImVec2" + }, + { + "name": "uv1", + "type": "const ImVec2" + }, + { + "name": "bg_col", + "type": "const ImVec4" + }, + { + "name": "tint_col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", + "call_args": "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)", + "cimguiname": "igImageButton", + "defaults": { + "bg_col": "ImVec4(0,0,0,0)", + "tint_col": "ImVec4(1,1,1,1)", + "uv0": "ImVec2(0,0)", + "uv1": "ImVec2(1,1)" + }, + "funcname": "ImageButton", + "location": "imgui:524", + "namespace": "ImGui", + "ov_cimguiname": "igImageButton", + "ret": "bool", + "signature": "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "stname": "" + } + ], + "igImageButtonEx": [ + { + "args": "(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "texture_id", + "type": "ImTextureID" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "uv0", + "type": "const ImVec2" + }, + { + "name": "uv1", + "type": "const ImVec2" + }, + { + "name": "bg_col", + "type": "const ImVec4" + }, + { + "name": "tint_col", + "type": "const ImVec4" + } + ], + "argsoriginal": "(ImGuiID id,ImTextureID texture_id,const ImVec2& size,const ImVec2& uv0,const ImVec2& uv1,const ImVec4& bg_col,const ImVec4& tint_col)", + "call_args": "(id,texture_id,size,uv0,uv1,bg_col,tint_col)", + "cimguiname": "igImageButtonEx", + "defaults": {}, + "funcname": "ImageButtonEx", + "location": "imgui_internal:3357", + "namespace": "ImGui", + "ov_cimguiname": "igImageButtonEx", + "ret": "bool", + "signature": "(ImGuiID,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "stname": "" + } + ], + "igIndent": [ + { + "args": "(float indent_w)", + "argsT": [ + { + "name": "indent_w", + "type": "float" + } + ], + "argsoriginal": "(float indent_w=0.0f)", + "call_args": "(indent_w)", + "cimguiname": "igIndent", + "defaults": { + "indent_w": "0.0f" + }, + "funcname": "Indent", + "location": "imgui:452", + "namespace": "ImGui", + "ov_cimguiname": "igIndent", + "ret": "void", + "signature": "(float)", + "stname": "" + } + ], + "igInitialize": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igInitialize", + "defaults": {}, + "funcname": "Initialize", + "location": "imgui_internal:2965", + "namespace": "ImGui", + "ov_cimguiname": "igInitialize", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igInputDouble": [ + { + "args": "(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "double*" + }, + { + "name": "step", + "type": "double" + }, + { + "name": "step_fast", + "type": "double" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,double* v,double step=0.0,double step_fast=0.0,const char* format=\"%.6f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,step,step_fast,format,flags)", + "cimguiname": "igInputDouble", + "defaults": { + "flags": "0", + "format": "\"%.6f\"", + "step": "0.0", + "step_fast": "0.0" + }, + "funcname": "InputDouble", + "location": "imgui:595", + "namespace": "ImGui", + "ov_cimguiname": "igInputDouble", + "ret": "bool", + "signature": "(const char*,double*,double,double,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat": [ + { + "args": "(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float*" + }, + { + "name": "step", + "type": "float" + }, + { + "name": "step_fast", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float* v,float step=0.0f,float step_fast=0.0f,const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,step,step_fast,format,flags)", + "cimguiname": "igInputFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"", + "step": "0.0f", + "step_fast": "0.0f" + }, + "funcname": "InputFloat", + "location": "imgui:587", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat", + "ret": "bool", + "signature": "(const char*,float*,float,float,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat2": [ + { + "args": "(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[2]" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float v[2],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,format,flags)", + "cimguiname": "igInputFloat2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "InputFloat2", + "location": "imgui:588", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat2", + "ret": "bool", + "signature": "(const char*,float[2],const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat3": [ + { + "args": "(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[3]" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float v[3],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,format,flags)", + "cimguiname": "igInputFloat3", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "InputFloat3", + "location": "imgui:589", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat3", + "ret": "bool", + "signature": "(const char*,float[3],const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputFloat4": [ + { + "args": "(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[4]" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,float v[4],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,format,flags)", + "cimguiname": "igInputFloat4", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "InputFloat4", + "location": "imgui:590", + "namespace": "ImGui", + "ov_cimguiname": "igInputFloat4", + "ret": "bool", + "signature": "(const char*,float[4],const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt": [ + { + "args": "(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "step", + "type": "int" + }, + { + "name": "step_fast", + "type": "int" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int* v,int step=1,int step_fast=100,ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,step,step_fast,flags)", + "cimguiname": "igInputInt", + "defaults": { + "flags": "0", + "step": "1", + "step_fast": "100" + }, + "funcname": "InputInt", + "location": "imgui:591", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt", + "ret": "bool", + "signature": "(const char*,int*,int,int,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt2": [ + { + "args": "(const char* label,int v[2],ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[2]" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int v[2],ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,flags)", + "cimguiname": "igInputInt2", + "defaults": { + "flags": "0" + }, + "funcname": "InputInt2", + "location": "imgui:592", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt2", + "ret": "bool", + "signature": "(const char*,int[2],ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt3": [ + { + "args": "(const char* label,int v[3],ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[3]" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int v[3],ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,flags)", + "cimguiname": "igInputInt3", + "defaults": { + "flags": "0" + }, + "funcname": "InputInt3", + "location": "imgui:593", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt3", + "ret": "bool", + "signature": "(const char*,int[3],ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputInt4": [ + { + "args": "(const char* label,int v[4],ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[4]" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,int v[4],ImGuiInputTextFlags flags=0)", + "call_args": "(label,v,flags)", + "cimguiname": "igInputInt4", + "defaults": { + "flags": "0" + }, + "funcname": "InputInt4", + "location": "imgui:594", + "namespace": "ImGui", + "ov_cimguiname": "igInputInt4", + "ret": "bool", + "signature": "(const char*,int[4],ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputScalar": [ + { + "args": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step,const void* p_step_fast,const char* format,ImGuiInputTextFlags flags)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "p_step", + "type": "const void*" + }, + { + "name": "p_step_fast", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)", + "call_args": "(label,data_type,p_data,p_step,p_step_fast,format,flags)", + "cimguiname": "igInputScalar", + "defaults": { + "flags": "0", + "format": "NULL", + "p_step": "NULL", + "p_step_fast": "NULL" + }, + "funcname": "InputScalar", + "location": "imgui:596", + "namespace": "ImGui", + "ov_cimguiname": "igInputScalar", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputScalarN": [ + { + "args": "(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)", + "argsT": [ + { + "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*" + }, + { + "name": "p_step_fast", + "type": "const void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + } + ], + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)", + "call_args": "(label,data_type,p_data,components,p_step,p_step_fast,format,flags)", + "cimguiname": "igInputScalarN", + "defaults": { + "flags": "0", + "format": "NULL", + "p_step": "NULL", + "p_step_fast": "NULL" + }, + "funcname": "InputScalarN", + "location": "imgui:597", + "namespace": "ImGui", + "ov_cimguiname": "igInputScalarN", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiInputTextFlags)", + "stname": "" + } + ], + "igInputText": [ + { + "args": "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,buf,buf_size,flags,callback,user_data)", + "cimguiname": "igInputText", + "defaults": { + "callback": "NULL", + "flags": "0", + "user_data": "NULL" + }, + "funcname": "InputText", + "location": "imgui:584", + "namespace": "ImGui", + "ov_cimguiname": "igInputText", + "ret": "bool", + "signature": "(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInputTextEx": [ + { + "args": "(const char* label,const char* hint,char* buf,int buf_size,const ImVec2 size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "hint", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "int" + }, + { + "name": "size_arg", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,const char* hint,char* buf,int buf_size,const ImVec2& size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,hint,buf,buf_size,size_arg,flags,callback,user_data)", + "cimguiname": "igInputTextEx", + "defaults": { + "callback": "NULL", + "user_data": "NULL" + }, + "funcname": "InputTextEx", + "location": "imgui_internal:3395", + "namespace": "ImGui", + "ov_cimguiname": "igInputTextEx", + "ret": "bool", + "signature": "(const char*,const char*,char*,int,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInputTextMultiline": [ + { + "args": "(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,char* buf,size_t buf_size,const ImVec2& size=ImVec2(0,0),ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,buf,buf_size,size,flags,callback,user_data)", + "cimguiname": "igInputTextMultiline", + "defaults": { + "callback": "NULL", + "flags": "0", + "size": "ImVec2(0,0)", + "user_data": "NULL" + }, + "funcname": "InputTextMultiline", + "location": "imgui:585", + "namespace": "ImGui", + "ov_cimguiname": "igInputTextMultiline", + "ret": "bool", + "signature": "(const char*,char*,size_t,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInputTextWithHint": [ + { + "args": "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "hint", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", + "type": "size_t" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "callback", + "type": "ImGuiInputTextCallback" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", + "call_args": "(label,hint,buf,buf_size,flags,callback,user_data)", + "cimguiname": "igInputTextWithHint", + "defaults": { + "callback": "NULL", + "flags": "0", + "user_data": "NULL" + }, + "funcname": "InputTextWithHint", + "location": "imgui:586", + "namespace": "ImGui", + "ov_cimguiname": "igInputTextWithHint", + "ret": "bool", + "signature": "(const char*,const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "stname": "" + } + ], + "igInvisibleButton": [ + { + "args": "(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "flags", + "type": "ImGuiButtonFlags" + } + ], + "argsoriginal": "(const char* str_id,const ImVec2& size,ImGuiButtonFlags flags=0)", + "call_args": "(str_id,size,flags)", + "cimguiname": "igInvisibleButton", + "defaults": { + "flags": "0" + }, + "funcname": "InvisibleButton", + "location": "imgui:511", + "namespace": "ImGui", + "ov_cimguiname": "igInvisibleButton", + "ret": "bool", + "signature": "(const char*,const ImVec2,ImGuiButtonFlags)", + "stname": "" + } + ], + "igIsActiveIdUsingNavDir": [ + { + "args": "(ImGuiDir dir)", + "argsT": [ + { + "name": "dir", + "type": "ImGuiDir" + } + ], + "argsoriginal": "(ImGuiDir dir)", + "call_args": "(dir)", + "cimguiname": "igIsActiveIdUsingNavDir", + "defaults": {}, + "funcname": "IsActiveIdUsingNavDir", + "location": "imgui_internal:3125", + "namespace": "ImGui", + "ov_cimguiname": "igIsActiveIdUsingNavDir", + "ret": "bool", + "signature": "(ImGuiDir)", + "stname": "" + } + ], + "igIsAliasKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsAliasKey", + "defaults": {}, + "funcname": "IsAliasKey", + "location": "imgui_internal:3106", + "namespace": "ImGui", + "ov_cimguiname": "igIsAliasKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsAnyItemActive": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyItemActive", + "defaults": {}, + "funcname": "IsAnyItemActive", + "location": "imgui:876", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyItemActive", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsAnyItemFocused": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyItemFocused", + "defaults": {}, + "funcname": "IsAnyItemFocused", + "location": "imgui:877", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyItemFocused", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsAnyItemHovered": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyItemHovered", + "defaults": {}, + "funcname": "IsAnyItemHovered", + "location": "imgui:875", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyItemHovered", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsAnyMouseDown": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsAnyMouseDown", + "defaults": {}, + "funcname": "IsAnyMouseDown", + "location": "imgui:940", + "namespace": "ImGui", + "ov_cimguiname": "igIsAnyMouseDown", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsClippedEx": [ + { + "args": "(const ImRect bb,ImGuiID id)", + "argsT": [ + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(const ImRect& bb,ImGuiID id)", + "call_args": "(bb,id)", + "cimguiname": "igIsClippedEx", + "defaults": {}, + "funcname": "IsClippedEx", + "location": "imgui_internal:3040", + "namespace": "ImGui", + "ov_cimguiname": "igIsClippedEx", + "ret": "bool", + "signature": "(const ImRect,ImGuiID)", + "stname": "" + } + ], + "igIsDragDropActive": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsDragDropActive", + "defaults": {}, + "funcname": "IsDragDropActive", + "location": "imgui_internal:3237", + "namespace": "ImGui", + "ov_cimguiname": "igIsDragDropActive", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsDragDropPayloadBeingAccepted": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsDragDropPayloadBeingAccepted", + "defaults": {}, + "funcname": "IsDragDropPayloadBeingAccepted", + "location": "imgui_internal:3240", + "namespace": "ImGui", + "ov_cimguiname": "igIsDragDropPayloadBeingAccepted", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsGamepadKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsGamepadKey", + "defaults": {}, + "funcname": "IsGamepadKey", + "location": "imgui_internal:3104", + "namespace": "ImGui", + "ov_cimguiname": "igIsGamepadKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsItemActivated": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemActivated", + "defaults": {}, + "funcname": "IsItemActivated", + "location": "imgui:871", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemActivated", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemActive": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemActive", + "defaults": {}, + "funcname": "IsItemActive", + "location": "imgui:866", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemActive", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemClicked": [ + { + "args": "(ImGuiMouseButton mouse_button)", + "argsT": [ + { + "name": "mouse_button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton mouse_button=0)", + "call_args": "(mouse_button)", + "cimguiname": "igIsItemClicked", + "defaults": { + "mouse_button": "0" + }, + "funcname": "IsItemClicked", + "location": "imgui:868", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemClicked", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsItemDeactivated": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemDeactivated", + "defaults": {}, + "funcname": "IsItemDeactivated", + "location": "imgui:872", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemDeactivated", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemDeactivatedAfterEdit": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemDeactivatedAfterEdit", + "defaults": {}, + "funcname": "IsItemDeactivatedAfterEdit", + "location": "imgui:873", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemDeactivatedAfterEdit", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemEdited": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemEdited", + "defaults": {}, + "funcname": "IsItemEdited", + "location": "imgui:870", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemEdited", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemFocused": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemFocused", + "defaults": {}, + "funcname": "IsItemFocused", + "location": "imgui:867", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemFocused", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemHovered": [ + { + "args": "(ImGuiHoveredFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiHoveredFlags" + } + ], + "argsoriginal": "(ImGuiHoveredFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igIsItemHovered", + "defaults": { + "flags": "0" + }, + "funcname": "IsItemHovered", + "location": "imgui:865", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemHovered", + "ret": "bool", + "signature": "(ImGuiHoveredFlags)", + "stname": "" + } + ], + "igIsItemToggledOpen": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemToggledOpen", + "defaults": {}, + "funcname": "IsItemToggledOpen", + "location": "imgui:874", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemToggledOpen", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemToggledSelection": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemToggledSelection", + "defaults": {}, + "funcname": "IsItemToggledSelection", + "location": "imgui_internal:3045", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemToggledSelection", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsItemVisible": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsItemVisible", + "defaults": {}, + "funcname": "IsItemVisible", + "location": "imgui:869", + "namespace": "ImGui", + "ov_cimguiname": "igIsItemVisible", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsKeyDown": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsKeyDown", + "defaults": {}, + "funcname": "IsKeyDown", + "location": "imgui:922", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyDown_Nil", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + }, + { + "args": "(ImGuiKey key,ImGuiID owner_id)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id)", + "call_args": "(key,owner_id)", + "cimguiname": "igIsKeyDown", + "defaults": {}, + "funcname": "IsKeyDown", + "location": "imgui_internal:3150", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyDown_ID", + "ret": "bool", + "signature": "(ImGuiKey,ImGuiID)", + "stname": "" + } + ], + "igIsKeyPressed": [ + { + "args": "(ImGuiKey key,bool repeat)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiKey key,bool repeat=true)", + "call_args": "(key,repeat)", + "cimguiname": "igIsKeyPressed", + "defaults": { + "repeat": "true" + }, + "funcname": "IsKeyPressed", + "location": "imgui:923", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyPressed_Bool", + "ret": "bool", + "signature": "(ImGuiKey,bool)", + "stname": "" + }, + { + "args": "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags=0)", + "call_args": "(key,owner_id,flags)", + "cimguiname": "igIsKeyPressed", + "defaults": { + "flags": "0" + }, + "funcname": "IsKeyPressed", + "location": "imgui_internal:3151", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyPressed_ID", + "ret": "bool", + "signature": "(ImGuiKey,ImGuiID,ImGuiInputFlags)", + "stname": "" + } + ], + "igIsKeyPressedMap": [ + { + "args": "(ImGuiKey key,bool repeat)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiKey key,bool repeat=true)", + "call_args": "(key,repeat)", + "cimguiname": "igIsKeyPressedMap", + "defaults": { + "repeat": "true" + }, + "funcname": "IsKeyPressedMap", + "location": "imgui_internal:3465", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyPressedMap", + "ret": "bool", + "signature": "(ImGuiKey,bool)", + "stname": "" + } + ], + "igIsKeyReleased": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsKeyReleased", + "defaults": {}, + "funcname": "IsKeyReleased", + "location": "imgui:924", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyReleased_Nil", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + }, + { + "args": "(ImGuiKey key,ImGuiID owner_id)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id)", + "call_args": "(key,owner_id)", + "cimguiname": "igIsKeyReleased", + "defaults": {}, + "funcname": "IsKeyReleased", + "location": "imgui_internal:3152", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyReleased_ID", + "ret": "bool", + "signature": "(ImGuiKey,ImGuiID)", + "stname": "" + } + ], + "igIsKeyboardKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsKeyboardKey", + "defaults": {}, + "funcname": "IsKeyboardKey", + "location": "imgui_internal:3103", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyboardKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsLegacyKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsLegacyKey", + "defaults": {}, + "funcname": "IsLegacyKey", + "location": "imgui_internal:3102", + "namespace": "ImGui", + "ov_cimguiname": "igIsLegacyKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsMouseClicked": [ + { + "args": "(ImGuiMouseButton button,bool repeat)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiMouseButton button,bool repeat=false)", + "call_args": "(button,repeat)", + "cimguiname": "igIsMouseClicked", + "defaults": { + "repeat": "false" + }, + "funcname": "IsMouseClicked", + "location": "imgui:934", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseClicked_Bool", + "ret": "bool", + "signature": "(ImGuiMouseButton,bool)", + "stname": "" + }, + { + "args": "(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags=0)", + "call_args": "(button,owner_id,flags)", + "cimguiname": "igIsMouseClicked", + "defaults": { + "flags": "0" + }, + "funcname": "IsMouseClicked", + "location": "imgui_internal:3154", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseClicked_ID", + "ret": "bool", + "signature": "(ImGuiMouseButton,ImGuiID,ImGuiInputFlags)", + "stname": "" + } + ], + "igIsMouseDoubleClicked": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igIsMouseDoubleClicked", + "defaults": {}, + "funcname": "IsMouseDoubleClicked", + "location": "imgui:936", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDoubleClicked", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igIsMouseDown": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igIsMouseDown", + "defaults": {}, + "funcname": "IsMouseDown", + "location": "imgui:933", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDown_Nil", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + }, + { + "args": "(ImGuiMouseButton button,ImGuiID owner_id)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiMouseButton button,ImGuiID owner_id)", + "call_args": "(button,owner_id)", + "cimguiname": "igIsMouseDown", + "defaults": {}, + "funcname": "IsMouseDown", + "location": "imgui_internal:3153", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDown_ID", + "ret": "bool", + "signature": "(ImGuiMouseButton,ImGuiID)", + "stname": "" + } + ], + "igIsMouseDragPastThreshold": [ + { + "args": "(ImGuiMouseButton button,float lock_threshold)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "lock_threshold", + "type": "float" + } + ], + "argsoriginal": "(ImGuiMouseButton button,float lock_threshold=-1.0f)", + "call_args": "(button,lock_threshold)", + "cimguiname": "igIsMouseDragPastThreshold", + "defaults": { + "lock_threshold": "-1.0f" + }, + "funcname": "IsMouseDragPastThreshold", + "location": "imgui_internal:3119", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDragPastThreshold", + "ret": "bool", + "signature": "(ImGuiMouseButton,float)", + "stname": "" + } + ], + "igIsMouseDragging": [ + { + "args": "(ImGuiMouseButton button,float lock_threshold)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "lock_threshold", + "type": "float" + } + ], + "argsoriginal": "(ImGuiMouseButton button,float lock_threshold=-1.0f)", + "call_args": "(button,lock_threshold)", + "cimguiname": "igIsMouseDragging", + "defaults": { + "lock_threshold": "-1.0f" + }, + "funcname": "IsMouseDragging", + "location": "imgui:943", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseDragging", + "ret": "bool", + "signature": "(ImGuiMouseButton,float)", + "stname": "" + } + ], + "igIsMouseHoveringRect": [ + { + "args": "(const ImVec2 r_min,const ImVec2 r_max,bool clip)", + "argsT": [ + { + "name": "r_min", + "type": "const ImVec2" + }, + { + "name": "r_max", + "type": "const ImVec2" + }, + { + "name": "clip", + "type": "bool" + } + ], + "argsoriginal": "(const ImVec2& r_min,const ImVec2& r_max,bool clip=true)", + "call_args": "(r_min,r_max,clip)", + "cimguiname": "igIsMouseHoveringRect", + "defaults": { + "clip": "true" + }, + "funcname": "IsMouseHoveringRect", + "location": "imgui:938", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseHoveringRect", + "ret": "bool", + "signature": "(const ImVec2,const ImVec2,bool)", + "stname": "" + } + ], + "igIsMouseKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsMouseKey", + "defaults": {}, + "funcname": "IsMouseKey", + "location": "imgui_internal:3105", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsMousePosValid": [ + { + "args": "(const ImVec2* mouse_pos)", + "argsT": [ + { + "name": "mouse_pos", + "type": "const ImVec2*" + } + ], + "argsoriginal": "(const ImVec2* mouse_pos=((void*)0))", + "call_args": "(mouse_pos)", + "cimguiname": "igIsMousePosValid", + "defaults": { + "mouse_pos": "NULL" + }, + "funcname": "IsMousePosValid", + "location": "imgui:939", + "namespace": "ImGui", + "ov_cimguiname": "igIsMousePosValid", + "ret": "bool", + "signature": "(const ImVec2*)", + "stname": "" + } + ], + "igIsMouseReleased": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igIsMouseReleased", + "defaults": {}, + "funcname": "IsMouseReleased", + "location": "imgui:935", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseReleased_Nil", + "ret": "bool", + "signature": "(ImGuiMouseButton)", + "stname": "" + }, + { + "args": "(ImGuiMouseButton button,ImGuiID owner_id)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + }, + { + "name": "owner_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiMouseButton button,ImGuiID owner_id)", + "call_args": "(button,owner_id)", + "cimguiname": "igIsMouseReleased", + "defaults": {}, + "funcname": "IsMouseReleased", + "location": "imgui_internal:3155", + "namespace": "ImGui", + "ov_cimguiname": "igIsMouseReleased_ID", + "ret": "bool", + "signature": "(ImGuiMouseButton,ImGuiID)", + "stname": "" + } + ], + "igIsNamedKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsNamedKey", + "defaults": {}, + "funcname": "IsNamedKey", + "location": "imgui_internal:3100", + "namespace": "ImGui", + "ov_cimguiname": "igIsNamedKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsNamedKeyOrModKey": [ + { + "args": "(ImGuiKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiKey" + } + ], + "argsoriginal": "(ImGuiKey key)", + "call_args": "(key)", + "cimguiname": "igIsNamedKeyOrModKey", + "defaults": {}, + "funcname": "IsNamedKeyOrModKey", + "location": "imgui_internal:3101", + "namespace": "ImGui", + "ov_cimguiname": "igIsNamedKeyOrModKey", + "ret": "bool", + "signature": "(ImGuiKey)", + "stname": "" + } + ], + "igIsPopupOpen": [ + { + "args": "(const char* str_id,ImGuiPopupFlags flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiPopupFlags flags=0)", + "call_args": "(str_id,flags)", + "cimguiname": "igIsPopupOpen", + "defaults": { + "flags": "0" + }, + "funcname": "IsPopupOpen", + "location": "imgui:723", + "namespace": "ImGui", + "ov_cimguiname": "igIsPopupOpen_Str", + "ret": "bool", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + }, + { + "args": "(ImGuiID id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiPopupFlags popup_flags)", + "call_args": "(id,popup_flags)", + "cimguiname": "igIsPopupOpen", + "defaults": {}, + "funcname": "IsPopupOpen", + "location": "imgui_internal:3065", + "namespace": "ImGui", + "ov_cimguiname": "igIsPopupOpen_ID", + "ret": "bool", + "signature": "(ImGuiID,ImGuiPopupFlags)", + "stname": "" + } + ], + "igIsRectVisible": [ + { + "args": "(const ImVec2 size)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& size)", + "call_args": "(size)", + "cimguiname": "igIsRectVisible", + "defaults": {}, + "funcname": "IsRectVisible", + "location": "imgui:896", + "namespace": "ImGui", + "ov_cimguiname": "igIsRectVisible_Nil", + "ret": "bool", + "signature": "(const ImVec2)", + "stname": "" + }, + { + "args": "(const ImVec2 rect_min,const ImVec2 rect_max)", + "argsT": [ + { + "name": "rect_min", + "type": "const ImVec2" + }, + { + "name": "rect_max", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& rect_min,const ImVec2& rect_max)", + "call_args": "(rect_min,rect_max)", + "cimguiname": "igIsRectVisible", + "defaults": {}, + "funcname": "IsRectVisible", + "location": "imgui:897", + "namespace": "ImGui", + "ov_cimguiname": "igIsRectVisible_Vec2", + "ret": "bool", + "signature": "(const ImVec2,const ImVec2)", + "stname": "" + } + ], + "igIsWindowAbove": [ + { + "args": "(ImGuiWindow* potential_above,ImGuiWindow* potential_below)", + "argsT": [ + { + "name": "potential_above", + "type": "ImGuiWindow*" + }, + { + "name": "potential_below", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* potential_above,ImGuiWindow* potential_below)", + "call_args": "(potential_above,potential_below)", + "cimguiname": "igIsWindowAbove", + "defaults": {}, + "funcname": "IsWindowAbove", + "location": "imgui_internal:2940", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowAbove", + "ret": "bool", + "signature": "(ImGuiWindow*,ImGuiWindow*)", + "stname": "" + } + ], + "igIsWindowAppearing": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsWindowAppearing", + "defaults": {}, + "funcname": "IsWindowAppearing", + "location": "imgui:353", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowAppearing", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsWindowChildOf": [ + { + "args": "(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "potential_parent", + "type": "ImGuiWindow*" + }, + { + "name": "popup_hierarchy", + "type": "bool" + }, + { + "name": "dock_hierarchy", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy)", + "call_args": "(window,potential_parent,popup_hierarchy,dock_hierarchy)", + "cimguiname": "igIsWindowChildOf", + "defaults": {}, + "funcname": "IsWindowChildOf", + "location": "imgui_internal:2938", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowChildOf", + "ret": "bool", + "signature": "(ImGuiWindow*,ImGuiWindow*,bool,bool)", + "stname": "" + } + ], + "igIsWindowCollapsed": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsWindowCollapsed", + "defaults": {}, + "funcname": "IsWindowCollapsed", + "location": "imgui:354", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowCollapsed", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsWindowDocked": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igIsWindowDocked", + "defaults": {}, + "funcname": "IsWindowDocked", + "location": "imgui:820", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowDocked", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igIsWindowFocused": [ + { + "args": "(ImGuiFocusedFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiFocusedFlags" + } + ], + "argsoriginal": "(ImGuiFocusedFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igIsWindowFocused", + "defaults": { + "flags": "0" + }, + "funcname": "IsWindowFocused", + "location": "imgui:355", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowFocused", + "ret": "bool", + "signature": "(ImGuiFocusedFlags)", + "stname": "" + } + ], + "igIsWindowHovered": [ + { + "args": "(ImGuiHoveredFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiHoveredFlags" + } + ], + "argsoriginal": "(ImGuiHoveredFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igIsWindowHovered", + "defaults": { + "flags": "0" + }, + "funcname": "IsWindowHovered", + "location": "imgui:356", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowHovered", + "ret": "bool", + "signature": "(ImGuiHoveredFlags)", + "stname": "" + } + ], + "igIsWindowNavFocusable": [ + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igIsWindowNavFocusable", + "defaults": {}, + "funcname": "IsWindowNavFocusable", + "location": "imgui_internal:2941", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowNavFocusable", + "ret": "bool", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igIsWindowWithinBeginStackOf": [ + { + "args": "(ImGuiWindow* window,ImGuiWindow* potential_parent)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "potential_parent", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiWindow* potential_parent)", + "call_args": "(window,potential_parent)", + "cimguiname": "igIsWindowWithinBeginStackOf", + "defaults": {}, + "funcname": "IsWindowWithinBeginStackOf", + "location": "imgui_internal:2939", + "namespace": "ImGui", + "ov_cimguiname": "igIsWindowWithinBeginStackOf", + "ret": "bool", + "signature": "(ImGuiWindow*,ImGuiWindow*)", + "stname": "" + } + ], + "igItemAdd": [ + { + "args": "(const ImRect bb,ImGuiID id,const ImRect* nav_bb,ImGuiItemFlags extra_flags)", + "argsT": [ + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "nav_bb", + "type": "const ImRect*" + }, + { + "name": "extra_flags", + "type": "ImGuiItemFlags" + } + ], + "argsoriginal": "(const ImRect& bb,ImGuiID id,const ImRect* nav_bb=((void*)0),ImGuiItemFlags extra_flags=0)", + "call_args": "(bb,id,nav_bb,extra_flags)", + "cimguiname": "igItemAdd", + "defaults": { + "extra_flags": "0", + "nav_bb": "NULL" + }, + "funcname": "ItemAdd", + "location": "imgui_internal:3038", + "namespace": "ImGui", + "ov_cimguiname": "igItemAdd", + "ret": "bool", + "signature": "(const ImRect,ImGuiID,const ImRect*,ImGuiItemFlags)", + "stname": "" + } + ], + "igItemHoverable": [ + { + "args": "(const ImRect bb,ImGuiID id)", + "argsT": [ + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(const ImRect& bb,ImGuiID id)", + "call_args": "(bb,id)", + "cimguiname": "igItemHoverable", + "defaults": {}, + "funcname": "ItemHoverable", + "location": "imgui_internal:3039", + "namespace": "ImGui", + "ov_cimguiname": "igItemHoverable", + "ret": "bool", + "signature": "(const ImRect,ImGuiID)", + "stname": "" + } + ], + "igItemSize": [ + { + "args": "(const ImVec2 size,float text_baseline_y)", + "argsT": [ + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "text_baseline_y", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& size,float text_baseline_y=-1.0f)", + "call_args": "(size,text_baseline_y)", + "cimguiname": "igItemSize", + "defaults": { + "text_baseline_y": "-1.0f" + }, + "funcname": "ItemSize", + "location": "imgui_internal:3036", + "namespace": "ImGui", + "ov_cimguiname": "igItemSize_Vec2", + "ret": "void", + "signature": "(const ImVec2,float)", + "stname": "" + }, + { + "args": "(const ImRect bb,float text_baseline_y)", + "argsT": [ + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "text_baseline_y", + "type": "float" + } + ], + "argsoriginal": "(const ImRect& bb,float text_baseline_y=-1.0f)", + "call_args": "(bb,text_baseline_y)", + "cimguiname": "igItemSize", + "defaults": { + "text_baseline_y": "-1.0f" + }, + "funcname": "ItemSize", + "location": "imgui_internal:3037", + "namespace": "ImGui", + "ov_cimguiname": "igItemSize_Rect", + "ret": "void", + "signature": "(const ImRect,float)", + "stname": "" + } + ], + "igKeepAliveID": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igKeepAliveID", + "defaults": {}, + "funcname": "KeepAliveID", + "location": "imgui_internal:3030", + "namespace": "ImGui", + "ov_cimguiname": "igKeepAliveID", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igLabelText": [ + { + "args": "(const char* label,const char* fmt,...)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* label,const char* fmt,...)", + "call_args": "(label,fmt,...)", + "cimguiname": "igLabelText", + "defaults": {}, + "funcname": "LabelText", + "isvararg": "...)", + "location": "imgui:501", + "namespace": "ImGui", + "ov_cimguiname": "igLabelText", + "ret": "void", + "signature": "(const char*,const char*,...)", + "stname": "" + } + ], + "igLabelTextV": [ + { + "args": "(const char* label,const char* fmt,va_list args)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* label,const char* fmt,va_list args)", + "call_args": "(label,fmt,args)", + "cimguiname": "igLabelTextV", + "defaults": {}, + "funcname": "LabelTextV", + "location": "imgui:502", + "namespace": "ImGui", + "ov_cimguiname": "igLabelTextV", + "ret": "void", + "signature": "(const char*,const char*,va_list)", + "stname": "" + } + ], + "igListBox": [ + { + "args": "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items", + "type": "const char* const[]" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items=-1)", + "call_args": "(label,current_item,items,items_count,height_in_items)", + "cimguiname": "igListBox", + "defaults": { + "height_in_items": "-1" + }, + "funcname": "ListBox", + "location": "imgui:643", + "namespace": "ImGui", + "ov_cimguiname": "igListBox_Str_arr", + "ret": "bool", + "signature": "(const char*,int*,const char* const[],int,int)", + "stname": "" + }, + { + "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "current_item", + "type": "int*" + }, + { + "name": "items_getter", + "ret": "bool", + "signature": "(void* data,int idx,const char** out_text)", + "type": "bool(*)(void* data,int idx,const char** out_text)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "height_in_items", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items=-1)", + "call_args": "(label,current_item,items_getter,data,items_count,height_in_items)", + "cimguiname": "igListBox", + "defaults": { + "height_in_items": "-1" + }, + "funcname": "ListBox", + "location": "imgui:644", + "namespace": "ImGui", + "ov_cimguiname": "igListBox_FnBoolPtr", + "ret": "bool", + "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", + "stname": "" + } + ], + "igLoadIniSettingsFromDisk": [ + { + "args": "(const char* ini_filename)", + "argsT": [ + { + "name": "ini_filename", + "type": "const char*" + } + ], + "argsoriginal": "(const char* ini_filename)", + "call_args": "(ini_filename)", + "cimguiname": "igLoadIniSettingsFromDisk", + "defaults": {}, + "funcname": "LoadIniSettingsFromDisk", + "location": "imgui:959", + "namespace": "ImGui", + "ov_cimguiname": "igLoadIniSettingsFromDisk", + "ret": "void", + "signature": "(const char*)", + "stname": "" + } + ], + "igLoadIniSettingsFromMemory": [ + { + "args": "(const char* ini_data,size_t ini_size)", + "argsT": [ + { + "name": "ini_data", + "type": "const char*" + }, + { + "name": "ini_size", + "type": "size_t" + } + ], + "argsoriginal": "(const char* ini_data,size_t ini_size=0)", + "call_args": "(ini_data,ini_size)", + "cimguiname": "igLoadIniSettingsFromMemory", + "defaults": { + "ini_size": "0" + }, + "funcname": "LoadIniSettingsFromMemory", + "location": "imgui:960", + "namespace": "ImGui", + "ov_cimguiname": "igLoadIniSettingsFromMemory", + "ret": "void", + "signature": "(const char*,size_t)", + "stname": "" + } + ], + "igLocalizeGetMsg": [ + { + "args": "(ImGuiLocKey key)", + "argsT": [ + { + "name": "key", + "type": "ImGuiLocKey" + } + ], + "argsoriginal": "(ImGuiLocKey key)", + "call_args": "(key)", + "cimguiname": "igLocalizeGetMsg", + "defaults": {}, + "funcname": "LocalizeGetMsg", + "location": "imgui_internal:3003", + "namespace": "ImGui", + "ov_cimguiname": "igLocalizeGetMsg", + "ret": "const char*", + "signature": "(ImGuiLocKey)", + "stname": "" + } + ], + "igLocalizeRegisterEntries": [ + { + "args": "(const ImGuiLocEntry* entries,int count)", + "argsT": [ + { + "name": "entries", + "type": "const ImGuiLocEntry*" + }, + { + "name": "count", + "type": "int" + } + ], + "argsoriginal": "(const ImGuiLocEntry* entries,int count)", + "call_args": "(entries,count)", + "cimguiname": "igLocalizeRegisterEntries", + "defaults": {}, + "funcname": "LocalizeRegisterEntries", + "location": "imgui_internal:3002", + "namespace": "ImGui", + "ov_cimguiname": "igLocalizeRegisterEntries", + "ret": "void", + "signature": "(const ImGuiLocEntry*,int)", + "stname": "" + } + ], + "igLogBegin": [ + { + "args": "(ImGuiLogType type,int auto_open_depth)", + "argsT": [ + { + "name": "type", + "type": "ImGuiLogType" + }, + { + "name": "auto_open_depth", + "type": "int" + } + ], + "argsoriginal": "(ImGuiLogType type,int auto_open_depth)", + "call_args": "(type,auto_open_depth)", + "cimguiname": "igLogBegin", + "defaults": {}, + "funcname": "LogBegin", + "location": "imgui_internal:3054", + "namespace": "ImGui", + "ov_cimguiname": "igLogBegin", + "ret": "void", + "signature": "(ImGuiLogType,int)", + "stname": "" + } + ], + "igLogButtons": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igLogButtons", + "defaults": {}, + "funcname": "LogButtons", + "location": "imgui:828", + "namespace": "ImGui", + "ov_cimguiname": "igLogButtons", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igLogFinish": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igLogFinish", + "defaults": {}, + "funcname": "LogFinish", + "location": "imgui:827", + "namespace": "ImGui", + "ov_cimguiname": "igLogFinish", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igLogRenderedText": [ + { + "args": "(const ImVec2* ref_pos,const char* text,const char* text_end)", + "argsT": [ + { + "name": "ref_pos", + "type": "const ImVec2*" + }, + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + } + ], + "argsoriginal": "(const ImVec2* ref_pos,const char* text,const char* text_end=((void*)0))", + "call_args": "(ref_pos,text,text_end)", + "cimguiname": "igLogRenderedText", + "defaults": { + "text_end": "NULL" + }, + "funcname": "LogRenderedText", + "location": "imgui_internal:3056", + "namespace": "ImGui", + "ov_cimguiname": "igLogRenderedText", + "ret": "void", + "signature": "(const ImVec2*,const char*,const char*)", + "stname": "" + } + ], + "igLogSetNextTextDecoration": [ + { + "args": "(const char* prefix,const char* suffix)", + "argsT": [ + { + "name": "prefix", + "type": "const char*" + }, + { + "name": "suffix", + "type": "const char*" + } + ], + "argsoriginal": "(const char* prefix,const char* suffix)", + "call_args": "(prefix,suffix)", + "cimguiname": "igLogSetNextTextDecoration", + "defaults": {}, + "funcname": "LogSetNextTextDecoration", + "location": "imgui_internal:3057", + "namespace": "ImGui", + "ov_cimguiname": "igLogSetNextTextDecoration", + "ret": "void", + "signature": "(const char*,const char*)", + "stname": "" + } + ], + "igLogText": [ + { + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igLogText", + "defaults": {}, + "funcname": "LogText", + "isvararg": "...)", + "location": "imgui:829", + "manual": true, + "namespace": "ImGui", + "ov_cimguiname": "igLogText", + "ret": "void", + "signature": "(const char*,...)", + "stname": "" + } + ], + "igLogTextV": [ + { + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igLogTextV", + "defaults": {}, + "funcname": "LogTextV", + "location": "imgui:830", + "namespace": "ImGui", + "ov_cimguiname": "igLogTextV", + "ret": "void", + "signature": "(const char*,va_list)", + "stname": "" + } + ], + "igLogToBuffer": [ + { + "args": "(int auto_open_depth)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + } + ], + "argsoriginal": "(int auto_open_depth=-1)", + "call_args": "(auto_open_depth)", + "cimguiname": "igLogToBuffer", + "defaults": { + "auto_open_depth": "-1" + }, + "funcname": "LogToBuffer", + "location": "imgui_internal:3055", + "namespace": "ImGui", + "ov_cimguiname": "igLogToBuffer", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igLogToClipboard": [ + { + "args": "(int auto_open_depth)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + } + ], + "argsoriginal": "(int auto_open_depth=-1)", + "call_args": "(auto_open_depth)", + "cimguiname": "igLogToClipboard", + "defaults": { + "auto_open_depth": "-1" + }, + "funcname": "LogToClipboard", + "location": "imgui:826", + "namespace": "ImGui", + "ov_cimguiname": "igLogToClipboard", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igLogToFile": [ + { + "args": "(int auto_open_depth,const char* filename)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + }, + { + "name": "filename", + "type": "const char*" + } + ], + "argsoriginal": "(int auto_open_depth=-1,const char* filename=((void*)0))", + "call_args": "(auto_open_depth,filename)", + "cimguiname": "igLogToFile", + "defaults": { + "auto_open_depth": "-1", + "filename": "NULL" + }, + "funcname": "LogToFile", + "location": "imgui:825", + "namespace": "ImGui", + "ov_cimguiname": "igLogToFile", + "ret": "void", + "signature": "(int,const char*)", + "stname": "" + } + ], + "igLogToTTY": [ + { + "args": "(int auto_open_depth)", + "argsT": [ + { + "name": "auto_open_depth", + "type": "int" + } + ], + "argsoriginal": "(int auto_open_depth=-1)", + "call_args": "(auto_open_depth)", + "cimguiname": "igLogToTTY", + "defaults": { + "auto_open_depth": "-1" + }, + "funcname": "LogToTTY", + "location": "imgui:824", + "namespace": "ImGui", + "ov_cimguiname": "igLogToTTY", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igMarkIniSettingsDirty": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igMarkIniSettingsDirty", + "defaults": {}, + "funcname": "MarkIniSettingsDirty", + "location": "imgui_internal:2991", + "namespace": "ImGui", + "ov_cimguiname": "igMarkIniSettingsDirty_Nil", + "ret": "void", + "signature": "()", + "stname": "" + }, + { + "args": "(ImGuiWindow* window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igMarkIniSettingsDirty", + "defaults": {}, + "funcname": "MarkIniSettingsDirty", + "location": "imgui_internal:2992", + "namespace": "ImGui", + "ov_cimguiname": "igMarkIniSettingsDirty_WindowPtr", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igMarkItemEdited": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igMarkItemEdited", + "defaults": {}, + "funcname": "MarkItemEdited", + "location": "imgui_internal:3031", + "namespace": "ImGui", + "ov_cimguiname": "igMarkItemEdited", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igMemAlloc": [ + { + "args": "(size_t size)", + "argsT": [ + { + "name": "size", + "type": "size_t" + } + ], + "argsoriginal": "(size_t size)", + "call_args": "(size)", + "cimguiname": "igMemAlloc", + "defaults": {}, + "funcname": "MemAlloc", + "location": "imgui:974", + "namespace": "ImGui", + "ov_cimguiname": "igMemAlloc", + "ret": "void*", + "signature": "(size_t)", + "stname": "" + } + ], + "igMemFree": [ + { + "args": "(void* ptr)", + "argsT": [ + { + "name": "ptr", + "type": "void*" + } + ], + "argsoriginal": "(void* ptr)", + "call_args": "(ptr)", + "cimguiname": "igMemFree", + "defaults": {}, + "funcname": "MemFree", + "location": "imgui:975", + "namespace": "ImGui", + "ov_cimguiname": "igMemFree", + "ret": "void", + "signature": "(void*)", + "stname": "" + } + ], + "igMenuItem": [ + { + "args": "(const char* label,const char* shortcut,bool selected,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "shortcut", + "type": "const char*" + }, + { + "name": "selected", + "type": "bool" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,const char* shortcut=((void*)0),bool selected=false,bool enabled=true)", + "call_args": "(label,shortcut,selected,enabled)", + "cimguiname": "igMenuItem", + "defaults": { + "enabled": "true", + "selected": "false", + "shortcut": "NULL" + }, + "funcname": "MenuItem", + "location": "imgui:671", + "namespace": "ImGui", + "ov_cimguiname": "igMenuItem_Bool", + "ret": "bool", + "signature": "(const char*,const char*,bool,bool)", + "stname": "" + }, + { + "args": "(const char* label,const char* shortcut,bool* p_selected,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "shortcut", + "type": "const char*" + }, + { + "name": "p_selected", + "type": "bool*" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,const char* shortcut,bool* p_selected,bool enabled=true)", + "call_args": "(label,shortcut,p_selected,enabled)", + "cimguiname": "igMenuItem", + "defaults": { + "enabled": "true" + }, + "funcname": "MenuItem", + "location": "imgui:672", + "namespace": "ImGui", + "ov_cimguiname": "igMenuItem_BoolPtr", + "ret": "bool", + "signature": "(const char*,const char*,bool*,bool)", + "stname": "" + } + ], + "igMenuItemEx": [ + { + "args": "(const char* label,const char* icon,const char* shortcut,bool selected,bool enabled)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "icon", + "type": "const char*" + }, + { + "name": "shortcut", + "type": "const char*" + }, + { + "name": "selected", + "type": "bool" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,const char* icon,const char* shortcut=((void*)0),bool selected=false,bool enabled=true)", + "call_args": "(label,icon,shortcut,selected,enabled)", + "cimguiname": "igMenuItemEx", + "defaults": { + "enabled": "true", + "selected": "false", + "shortcut": "NULL" + }, + "funcname": "MenuItemEx", + "location": "imgui_internal:3077", + "namespace": "ImGui", + "ov_cimguiname": "igMenuItemEx", + "ret": "bool", + "signature": "(const char*,const char*,const char*,bool,bool)", + "stname": "" + } + ], + "igMouseButtonToKey": [ + { + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button)", + "call_args": "(button)", + "cimguiname": "igMouseButtonToKey", + "defaults": {}, + "funcname": "MouseButtonToKey", + "location": "imgui_internal:3118", + "namespace": "ImGui", + "ov_cimguiname": "igMouseButtonToKey", + "ret": "ImGuiKey", + "signature": "(ImGuiMouseButton)", + "stname": "" + } + ], + "igNavInitRequestApplyResult": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNavInitRequestApplyResult", + "defaults": {}, + "funcname": "NavInitRequestApplyResult", + "location": "imgui_internal:3086", + "namespace": "ImGui", + "ov_cimguiname": "igNavInitRequestApplyResult", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igNavInitWindow": [ + { + "args": "(ImGuiWindow* window,bool force_reinit)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "force_reinit", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiWindow* window,bool force_reinit)", + "call_args": "(window,force_reinit)", + "cimguiname": "igNavInitWindow", + "defaults": {}, + "funcname": "NavInitWindow", + "location": "imgui_internal:3085", + "namespace": "ImGui", + "ov_cimguiname": "igNavInitWindow", + "ret": "void", + "signature": "(ImGuiWindow*,bool)", + "stname": "" + } + ], + "igNavMoveRequestApplyResult": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNavMoveRequestApplyResult", + "defaults": {}, + "funcname": "NavMoveRequestApplyResult", + "location": "imgui_internal:3092", + "namespace": "ImGui", + "ov_cimguiname": "igNavMoveRequestApplyResult", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igNavMoveRequestButNoResultYet": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNavMoveRequestButNoResultYet", + "defaults": {}, + "funcname": "NavMoveRequestButNoResultYet", + "location": "imgui_internal:3087", + "namespace": "ImGui", + "ov_cimguiname": "igNavMoveRequestButNoResultYet", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], + "igNavMoveRequestCancel": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNavMoveRequestCancel", + "defaults": {}, + "funcname": "NavMoveRequestCancel", + "location": "imgui_internal:3091", + "namespace": "ImGui", + "ov_cimguiname": "igNavMoveRequestCancel", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igNavMoveRequestForward": [ + { + "args": "(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags)", + "argsT": [ + { + "name": "move_dir", + "type": "ImGuiDir" + }, + { + "name": "clip_dir", + "type": "ImGuiDir" + }, + { + "name": "move_flags", + "type": "ImGuiNavMoveFlags" + }, + { + "name": "scroll_flags", + "type": "ImGuiScrollFlags" + } + ], + "argsoriginal": "(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags)", + "call_args": "(move_dir,clip_dir,move_flags,scroll_flags)", + "cimguiname": "igNavMoveRequestForward", + "defaults": {}, + "funcname": "NavMoveRequestForward", + "location": "imgui_internal:3089", + "namespace": "ImGui", + "ov_cimguiname": "igNavMoveRequestForward", + "ret": "void", + "signature": "(ImGuiDir,ImGuiDir,ImGuiNavMoveFlags,ImGuiScrollFlags)", + "stname": "" + } + ], + "igNavMoveRequestResolveWithLastItem": [ + { + "args": "(ImGuiNavItemData* result)", + "argsT": [ + { + "name": "result", + "type": "ImGuiNavItemData*" + } + ], + "argsoriginal": "(ImGuiNavItemData* result)", + "call_args": "(result)", + "cimguiname": "igNavMoveRequestResolveWithLastItem", + "defaults": {}, + "funcname": "NavMoveRequestResolveWithLastItem", + "location": "imgui_internal:3090", + "namespace": "ImGui", + "ov_cimguiname": "igNavMoveRequestResolveWithLastItem", + "ret": "void", + "signature": "(ImGuiNavItemData*)", + "stname": "" + } + ], + "igNavMoveRequestSubmit": [ + { + "args": "(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags)", + "argsT": [ + { + "name": "move_dir", + "type": "ImGuiDir" + }, + { + "name": "clip_dir", + "type": "ImGuiDir" + }, + { + "name": "move_flags", + "type": "ImGuiNavMoveFlags" + }, + { + "name": "scroll_flags", + "type": "ImGuiScrollFlags" + } + ], + "argsoriginal": "(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags)", + "call_args": "(move_dir,clip_dir,move_flags,scroll_flags)", + "cimguiname": "igNavMoveRequestSubmit", + "defaults": {}, + "funcname": "NavMoveRequestSubmit", + "location": "imgui_internal:3088", + "namespace": "ImGui", + "ov_cimguiname": "igNavMoveRequestSubmit", + "ret": "void", + "signature": "(ImGuiDir,ImGuiDir,ImGuiNavMoveFlags,ImGuiScrollFlags)", + "stname": "" + } + ], + "igNavMoveRequestTryWrapping": [ + { + "args": "(ImGuiWindow* window,ImGuiNavMoveFlags move_flags)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "move_flags", + "type": "ImGuiNavMoveFlags" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiNavMoveFlags move_flags)", + "call_args": "(window,move_flags)", + "cimguiname": "igNavMoveRequestTryWrapping", + "defaults": {}, + "funcname": "NavMoveRequestTryWrapping", + "location": "imgui_internal:3093", + "namespace": "ImGui", + "ov_cimguiname": "igNavMoveRequestTryWrapping", + "ret": "void", + "signature": "(ImGuiWindow*,ImGuiNavMoveFlags)", + "stname": "" + } + ], + "igNewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNewFrame", + "defaults": {}, + "funcname": "NewFrame", + "location": "imgui:302", + "namespace": "ImGui", + "ov_cimguiname": "igNewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igNewLine": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNewLine", + "defaults": {}, + "funcname": "NewLine", + "location": "imgui:449", + "namespace": "ImGui", + "ov_cimguiname": "igNewLine", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igNextColumn": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNextColumn", + "defaults": {}, + "funcname": "NextColumn", + "location": "imgui:785", + "namespace": "ImGui", + "ov_cimguiname": "igNextColumn", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igOpenPopup": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id,ImGuiPopupFlags popup_flags=0)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igOpenPopup", + "defaults": { + "popup_flags": "0" + }, + "funcname": "OpenPopup", + "location": "imgui:705", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopup_Str", + "ret": "void", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + }, + { + "args": "(ImGuiID id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiPopupFlags popup_flags=0)", + "call_args": "(id,popup_flags)", + "cimguiname": "igOpenPopup", + "defaults": { + "popup_flags": "0" + }, + "funcname": "OpenPopup", + "location": "imgui:706", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopup_ID", + "ret": "void", + "signature": "(ImGuiID,ImGuiPopupFlags)", + "stname": "" + } + ], + "igOpenPopupEx": [ + { + "args": "(ImGuiID id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiPopupFlags popup_flags=ImGuiPopupFlags_None)", + "call_args": "(id,popup_flags)", + "cimguiname": "igOpenPopupEx", + "defaults": { + "popup_flags": "ImGuiPopupFlags_None" + }, + "funcname": "OpenPopupEx", + "location": "imgui_internal:3061", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopupEx", + "ret": "void", + "signature": "(ImGuiID,ImGuiPopupFlags)", + "stname": "" + } + ], + "igOpenPopupOnItemClick": [ + { + "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "argsT": [ + { + "name": "str_id", + "type": "const char*" + }, + { + "name": "popup_flags", + "type": "ImGuiPopupFlags" + } + ], + "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", + "call_args": "(str_id,popup_flags)", + "cimguiname": "igOpenPopupOnItemClick", + "defaults": { + "popup_flags": "1", + "str_id": "NULL" + }, + "funcname": "OpenPopupOnItemClick", + "location": "imgui:707", + "namespace": "ImGui", + "ov_cimguiname": "igOpenPopupOnItemClick", + "ret": "void", + "signature": "(const char*,ImGuiPopupFlags)", + "stname": "" + } + ], + "igPlotEx": [ + { + "args": "(ImGuiPlotType plot_type,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 frame_size)", + "argsT": [ + { + "name": "plot_type", + "type": "ImGuiPlotType" + }, + { + "name": "label", + "type": "const char*" + }, + { + "name": "values_getter", + "ret": "float", + "signature": "(void* data,int idx)", + "type": "float(*)(void* data,int idx)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "frame_size", + "type": "ImVec2" + } + ], + "argsoriginal": "(ImGuiPlotType plot_type,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 frame_size)", + "call_args": "(plot_type,label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,frame_size)", + "cimguiname": "igPlotEx", + "defaults": {}, + "funcname": "PlotEx", + "location": "imgui_internal:3407", + "namespace": "ImGui", + "ov_cimguiname": "igPlotEx", + "ret": "int", + "signature": "(ImGuiPlotType,const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", + "stname": "" + } + ], + "igPlotHistogram": [ + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values", + "type": "const float*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + }, + { + "name": "stride", + "type": "int" + } + ], + "argsoriginal": "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))", + "call_args": "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)", + "cimguiname": "igPlotHistogram", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "stride": "sizeof(float)", + "values_offset": "0" + }, + "funcname": "PlotHistogram", + "location": "imgui:650", + "namespace": "ImGui", + "ov_cimguiname": "igPlotHistogram_FloatPtr", + "ret": "void", + "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", + "stname": "" + }, + { + "args": "(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)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "values_getter", + "ret": "float", + "signature": "(void* data,int idx)", + "type": "float(*)(void* data,int idx)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", + "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + } + ], + "argsoriginal": "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))", + "call_args": "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)", + "cimguiname": "igPlotHistogram", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "values_offset": "0" + }, + "funcname": "PlotHistogram", + "location": "imgui:651", "namespace": "ImGui", - "ov_cimguiname": "igGetFrameHeightWithSpacing", - "ret": "float", - "signature": "()", + "ov_cimguiname": "igPlotHistogram_FnFloatPtr", + "ret": "void", + "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", "stname": "" } ], - "igGetID": [ + "igPlotLines": [ { - "args": "(const char* str_id)", + "args": "(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)", "argsT": [ { - "name": "str_id", + "name": "label", + "type": "const char*" + }, + { + "name": "values", + "type": "const float*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", "type": "const char*" + }, + { + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" + }, + { + "name": "stride", + "type": "int" } ], - "argsoriginal": "(const char* str_id)", - "call_args": "(str_id)", - "cimguiname": "igGetID", - "defaults": {}, - "funcname": "GetID", - "location": "imgui:487", + "argsoriginal": "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))", + "call_args": "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)", + "cimguiname": "igPlotLines", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "stride": "sizeof(float)", + "values_offset": "0" + }, + "funcname": "PlotLines", + "location": "imgui:648", "namespace": "ImGui", - "ov_cimguiname": "igGetID_Str", - "ret": "ImGuiID", - "signature": "(const char*)", + "ov_cimguiname": "igPlotLines_FloatPtr", + "ret": "void", + "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", "stname": "" }, { - "args": "(const char* str_id_begin,const char* str_id_end)", + "args": "(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)", "argsT": [ { - "name": "str_id_begin", + "name": "label", "type": "const char*" }, { - "name": "str_id_end", + "name": "values_getter", + "ret": "float", + "signature": "(void* data,int idx)", + "type": "float(*)(void* data,int idx)" + }, + { + "name": "data", + "type": "void*" + }, + { + "name": "values_count", + "type": "int" + }, + { + "name": "values_offset", + "type": "int" + }, + { + "name": "overlay_text", "type": "const char*" - } - ], - "argsoriginal": "(const char* str_id_begin,const char* str_id_end)", - "call_args": "(str_id_begin,str_id_end)", - "cimguiname": "igGetID", - "defaults": {}, - "funcname": "GetID", - "location": "imgui:488", - "namespace": "ImGui", - "ov_cimguiname": "igGetID_StrStr", - "ret": "ImGuiID", - "signature": "(const char*,const char*)", - "stname": "" - }, - { - "args": "(const void* ptr_id)", - "argsT": [ + }, { - "name": "ptr_id", - "type": "const void*" + "name": "scale_min", + "type": "float" + }, + { + "name": "scale_max", + "type": "float" + }, + { + "name": "graph_size", + "type": "ImVec2" } ], - "argsoriginal": "(const void* ptr_id)", - "call_args": "(ptr_id)", - "cimguiname": "igGetID", - "defaults": {}, - "funcname": "GetID", - "location": "imgui:489", + "argsoriginal": "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))", + "call_args": "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)", + "cimguiname": "igPlotLines", + "defaults": { + "graph_size": "ImVec2(0,0)", + "overlay_text": "NULL", + "scale_max": "FLT_MAX", + "scale_min": "FLT_MAX", + "values_offset": "0" + }, + "funcname": "PlotLines", + "location": "imgui:649", "namespace": "ImGui", - "ov_cimguiname": "igGetID_Ptr", - "ret": "ImGuiID", - "signature": "(const void*)", + "ov_cimguiname": "igPlotLines_FnFloatPtr", + "ret": "void", + "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", "stname": "" } ], - "igGetIO": [ + "igPopAllowKeyboardFocus": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetIO", + "cimguiname": "igPopAllowKeyboardFocus", "defaults": {}, - "funcname": "GetIO", - "location": "imgui:300", + "funcname": "PopAllowKeyboardFocus", + "location": "imgui:418", "namespace": "ImGui", - "ov_cimguiname": "igGetIO", - "ret": "ImGuiIO*", - "retref": "&", + "ov_cimguiname": "igPopAllowKeyboardFocus", + "ret": "void", "signature": "()", "stname": "" } ], - "igGetItemRectMax": [ + "igPopButtonRepeat": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetItemRectMax", + "cimguiname": "igPopButtonRepeat", "defaults": {}, - "funcname": "GetItemRectMax", - "location": "imgui:879", + "funcname": "PopButtonRepeat", + "location": "imgui:420", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetItemRectMax", + "ov_cimguiname": "igPopButtonRepeat", "ret": "void", "signature": "()", "stname": "" } ], - "igGetItemRectMin": [ + "igPopClipRect": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetItemRectMin", + "cimguiname": "igPopClipRect", "defaults": {}, - "funcname": "GetItemRectMin", - "location": "imgui:878", + "funcname": "PopClipRect", + "location": "imgui:855", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetItemRectMin", + "ov_cimguiname": "igPopClipRect", "ret": "void", "signature": "()", "stname": "" } ], - "igGetItemRectSize": [ + "igPopColumnsBackground": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetItemRectSize", + "cimguiname": "igPopColumnsBackground", "defaults": {}, - "funcname": "GetItemRectSize", - "location": "imgui:880", + "funcname": "PopColumnsBackground", + "location": "imgui_internal:3249", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetItemRectSize", + "ov_cimguiname": "igPopColumnsBackground", "ret": "void", "signature": "()", "stname": "" - } - ], - "igGetKeyIndex": [ - { - "args": "(ImGuiKey key)", - "argsT": [ - { - "name": "key", - "type": "ImGuiKey" - } - ], - "argsoriginal": "(ImGuiKey key)", - "call_args": "(key)", - "cimguiname": "igGetKeyIndex", - "defaults": {}, - "funcname": "GetKeyIndex", - "location": "imgui:3214", - "namespace": "ImGui", - "ov_cimguiname": "igGetKeyIndex", - "ret": "ImGuiKey", - "signature": "(ImGuiKey)", - "stname": "" - } - ], - "igGetKeyName": [ - { - "args": "(ImGuiKey key)", - "argsT": [ - { - "name": "key", - "type": "ImGuiKey" - } - ], - "argsoriginal": "(ImGuiKey key)", - "call_args": "(key)", - "cimguiname": "igGetKeyName", + } + ], + "igPopFocusScope": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopFocusScope", "defaults": {}, - "funcname": "GetKeyName", - "location": "imgui:926", + "funcname": "PopFocusScope", + "location": "imgui_internal:3233", "namespace": "ImGui", - "ov_cimguiname": "igGetKeyName", - "ret": "const char*", - "signature": "(ImGuiKey)", + "ov_cimguiname": "igPopFocusScope", + "ret": "void", + "signature": "()", "stname": "" } ], - "igGetKeyPressedAmount": [ + "igPopFont": [ { - "args": "(ImGuiKey key,float repeat_delay,float rate)", - "argsT": [ - { - "name": "key", - "type": "ImGuiKey" - }, - { - "name": "repeat_delay", - "type": "float" - }, - { - "name": "rate", - "type": "float" - } - ], - "argsoriginal": "(ImGuiKey key,float repeat_delay,float rate)", - "call_args": "(key,repeat_delay,rate)", - "cimguiname": "igGetKeyPressedAmount", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopFont", "defaults": {}, - "funcname": "GetKeyPressedAmount", - "location": "imgui:925", + "funcname": "PopFont", + "location": "imgui:410", "namespace": "ImGui", - "ov_cimguiname": "igGetKeyPressedAmount", - "ret": "int", - "signature": "(ImGuiKey,float,float)", + "ov_cimguiname": "igPopFont", + "ret": "void", + "signature": "()", "stname": "" } ], - "igGetMainViewport": [ + "igPopID": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetMainViewport", + "cimguiname": "igPopID", "defaults": {}, - "funcname": "GetMainViewport", - "location": "imgui:887", + "funcname": "PopID", + "location": "imgui:486", "namespace": "ImGui", - "ov_cimguiname": "igGetMainViewport", - "ret": "ImGuiViewport*", + "ov_cimguiname": "igPopID", + "ret": "void", "signature": "()", "stname": "" } ], - "igGetMouseClickedCount": [ + "igPopItemFlag": [ { - "args": "(ImGuiMouseButton button)", - "argsT": [ - { - "name": "button", - "type": "ImGuiMouseButton" - } - ], - "argsoriginal": "(ImGuiMouseButton button)", - "call_args": "(button)", - "cimguiname": "igGetMouseClickedCount", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igPopItemFlag", "defaults": {}, - "funcname": "GetMouseClickedCount", - "location": "imgui:937", + "funcname": "PopItemFlag", + "location": "imgui_internal:3051", "namespace": "ImGui", - "ov_cimguiname": "igGetMouseClickedCount", - "ret": "int", - "signature": "(ImGuiMouseButton)", + "ov_cimguiname": "igPopItemFlag", + "ret": "void", + "signature": "()", "stname": "" } ], - "igGetMouseCursor": [ + "igPopItemWidth": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetMouseCursor", + "cimguiname": "igPopItemWidth", "defaults": {}, - "funcname": "GetMouseCursor", - "location": "imgui:946", + "funcname": "PopItemWidth", + "location": "imgui:424", "namespace": "ImGui", - "ov_cimguiname": "igGetMouseCursor", - "ret": "ImGuiMouseCursor", + "ov_cimguiname": "igPopItemWidth", + "ret": "void", "signature": "()", "stname": "" } ], - "igGetMouseDragDelta": [ + "igPopStyleColor": [ { - "args": "(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold)", + "args": "(int count)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" - }, - { - "name": "button", - "type": "ImGuiMouseButton" - }, - { - "name": "lock_threshold", - "type": "float" + "name": "count", + "type": "int" } ], - "argsoriginal": "(ImGuiMouseButton button=0,float lock_threshold=-1.0f)", - "call_args": "(button,lock_threshold)", - "cimguiname": "igGetMouseDragDelta", + "argsoriginal": "(int count=1)", + "call_args": "(count)", + "cimguiname": "igPopStyleColor", "defaults": { - "button": "0", - "lock_threshold": "-1.0f" + "count": "1" }, - "funcname": "GetMouseDragDelta", - "location": "imgui:944", + "funcname": "PopStyleColor", + "location": "imgui:413", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetMouseDragDelta", + "ov_cimguiname": "igPopStyleColor", "ret": "void", - "signature": "(ImGuiMouseButton,float)", + "signature": "(int)", "stname": "" } ], - "igGetMousePos": [ + "igPopStyleVar": [ { - "args": "(ImVec2 *pOut)", + "args": "(int count)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "count", + "type": "int" } ], + "argsoriginal": "(int count=1)", + "call_args": "(count)", + "cimguiname": "igPopStyleVar", + "defaults": { + "count": "1" + }, + "funcname": "PopStyleVar", + "location": "imgui:416", + "namespace": "ImGui", + "ov_cimguiname": "igPopStyleVar", + "ret": "void", + "signature": "(int)", + "stname": "" + } + ], + "igPopTextWrapPos": [ + { + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetMousePos", + "cimguiname": "igPopTextWrapPos", "defaults": {}, - "funcname": "GetMousePos", - "location": "imgui:941", + "funcname": "PopTextWrapPos", + "location": "imgui:428", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetMousePos", + "ov_cimguiname": "igPopTextWrapPos", "ret": "void", "signature": "()", "stname": "" } ], - "igGetMousePosOnOpeningCurrentPopup": [ + "igProgressBar": [ { - "args": "(ImVec2 *pOut)", + "args": "(float fraction,const ImVec2 size_arg,const char* overlay)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "fraction", + "type": "float" + }, + { + "name": "size_arg", + "type": "const ImVec2" + }, + { + "name": "overlay", + "type": "const char*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetMousePosOnOpeningCurrentPopup", - "defaults": {}, - "funcname": "GetMousePosOnOpeningCurrentPopup", - "location": "imgui:942", + "argsoriginal": "(float fraction,const ImVec2& size_arg=ImVec2(-1.17549435082228750796873653722224568e-38F,0),const char* overlay=((void*)0))", + "call_args": "(fraction,size_arg,overlay)", + "cimguiname": "igProgressBar", + "defaults": { + "overlay": "NULL", + "size_arg": "ImVec2(-FLT_MIN,0)" + }, + "funcname": "ProgressBar", + "location": "imgui:518", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetMousePosOnOpeningCurrentPopup", + "ov_cimguiname": "igProgressBar", "ret": "void", - "signature": "()", + "signature": "(float,const ImVec2,const char*)", "stname": "" } ], - "igGetPlatformIO": [ + "igPushAllowKeyboardFocus": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetPlatformIO", + "args": "(bool allow_keyboard_focus)", + "argsT": [ + { + "name": "allow_keyboard_focus", + "type": "bool" + } + ], + "argsoriginal": "(bool allow_keyboard_focus)", + "call_args": "(allow_keyboard_focus)", + "cimguiname": "igPushAllowKeyboardFocus", "defaults": {}, - "funcname": "GetPlatformIO", - "location": "imgui:980", + "funcname": "PushAllowKeyboardFocus", + "location": "imgui:417", "namespace": "ImGui", - "ov_cimguiname": "igGetPlatformIO", - "ret": "ImGuiPlatformIO*", - "retref": "&", - "signature": "()", + "ov_cimguiname": "igPushAllowKeyboardFocus", + "ret": "void", + "signature": "(bool)", "stname": "" } ], - "igGetScrollMaxX": [ + "igPushButtonRepeat": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetScrollMaxX", + "args": "(bool repeat)", + "argsT": [ + { + "name": "repeat", + "type": "bool" + } + ], + "argsoriginal": "(bool repeat)", + "call_args": "(repeat)", + "cimguiname": "igPushButtonRepeat", "defaults": {}, - "funcname": "GetScrollMaxX", - "location": "imgui:401", + "funcname": "PushButtonRepeat", + "location": "imgui:419", "namespace": "ImGui", - "ov_cimguiname": "igGetScrollMaxX", - "ret": "float", - "signature": "()", + "ov_cimguiname": "igPushButtonRepeat", + "ret": "void", + "signature": "(bool)", "stname": "" } ], - "igGetScrollMaxY": [ + "igPushClipRect": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetScrollMaxY", + "args": "(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", + "argsT": [ + { + "name": "clip_rect_min", + "type": "const ImVec2" + }, + { + "name": "clip_rect_max", + "type": "const ImVec2" + }, + { + "name": "intersect_with_current_clip_rect", + "type": "bool" + } + ], + "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect)", + "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", + "cimguiname": "igPushClipRect", "defaults": {}, - "funcname": "GetScrollMaxY", - "location": "imgui:402", + "funcname": "PushClipRect", + "location": "imgui:854", "namespace": "ImGui", - "ov_cimguiname": "igGetScrollMaxY", - "ret": "float", - "signature": "()", + "ov_cimguiname": "igPushClipRect", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,bool)", "stname": "" } ], - "igGetScrollX": [ + "igPushColumnClipRect": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetScrollX", + "args": "(int column_index)", + "argsT": [ + { + "name": "column_index", + "type": "int" + } + ], + "argsoriginal": "(int column_index)", + "call_args": "(column_index)", + "cimguiname": "igPushColumnClipRect", "defaults": {}, - "funcname": "GetScrollX", - "location": "imgui:397", + "funcname": "PushColumnClipRect", + "location": "imgui_internal:3247", "namespace": "ImGui", - "ov_cimguiname": "igGetScrollX", - "ret": "float", - "signature": "()", + "ov_cimguiname": "igPushColumnClipRect", + "ret": "void", + "signature": "(int)", "stname": "" } ], - "igGetScrollY": [ + "igPushColumnsBackground": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetScrollY", + "cimguiname": "igPushColumnsBackground", "defaults": {}, - "funcname": "GetScrollY", - "location": "imgui:398", + "funcname": "PushColumnsBackground", + "location": "imgui_internal:3248", "namespace": "ImGui", - "ov_cimguiname": "igGetScrollY", - "ret": "float", + "ov_cimguiname": "igPushColumnsBackground", + "ret": "void", "signature": "()", "stname": "" } ], - "igGetStateStorage": [ + "igPushFocusScope": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetStateStorage", + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igPushFocusScope", "defaults": {}, - "funcname": "GetStateStorage", - "location": "imgui:903", + "funcname": "PushFocusScope", + "location": "imgui_internal:3232", "namespace": "ImGui", - "ov_cimguiname": "igGetStateStorage", - "ret": "ImGuiStorage*", - "signature": "()", + "ov_cimguiname": "igPushFocusScope", + "ret": "void", + "signature": "(ImGuiID)", "stname": "" } ], - "igGetStyle": [ + "igPushFont": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetStyle", + "args": "(ImFont* font)", + "argsT": [ + { + "name": "font", + "type": "ImFont*" + } + ], + "argsoriginal": "(ImFont* font)", + "call_args": "(font)", + "cimguiname": "igPushFont", "defaults": {}, - "funcname": "GetStyle", - "location": "imgui:301", + "funcname": "PushFont", + "location": "imgui:409", "namespace": "ImGui", - "ov_cimguiname": "igGetStyle", - "ret": "ImGuiStyle*", - "retref": "&", - "signature": "()", + "ov_cimguiname": "igPushFont", + "ret": "void", + "signature": "(ImFont*)", "stname": "" } ], - "igGetStyleColorName": [ + "igPushID": [ { - "args": "(ImGuiCol idx)", + "args": "(const char* str_id)", "argsT": [ { - "name": "idx", - "type": "ImGuiCol" + "name": "str_id", + "type": "const char*" } ], - "argsoriginal": "(ImGuiCol idx)", - "call_args": "(idx)", - "cimguiname": "igGetStyleColorName", + "argsoriginal": "(const char* str_id)", + "call_args": "(str_id)", + "cimguiname": "igPushID", "defaults": {}, - "funcname": "GetStyleColorName", - "location": "imgui:901", + "funcname": "PushID", + "location": "imgui:482", "namespace": "ImGui", - "ov_cimguiname": "igGetStyleColorName", - "ret": "const char*", - "signature": "(ImGuiCol)", + "ov_cimguiname": "igPushID_Str", + "ret": "void", + "signature": "(const char*)", "stname": "" - } - ], - "igGetStyleColorVec4": [ + }, { - "args": "(ImGuiCol idx)", + "args": "(const char* str_id_begin,const char* str_id_end)", "argsT": [ { - "name": "idx", - "type": "ImGuiCol" + "name": "str_id_begin", + "type": "const char*" + }, + { + "name": "str_id_end", + "type": "const char*" } ], - "argsoriginal": "(ImGuiCol idx)", - "call_args": "(idx)", - "cimguiname": "igGetStyleColorVec4", + "argsoriginal": "(const char* str_id_begin,const char* str_id_end)", + "call_args": "(str_id_begin,str_id_end)", + "cimguiname": "igPushID", "defaults": {}, - "funcname": "GetStyleColorVec4", - "location": "imgui:438", + "funcname": "PushID", + "location": "imgui:483", "namespace": "ImGui", - "ov_cimguiname": "igGetStyleColorVec4", - "ret": "const ImVec4*", - "retref": "&", - "signature": "(ImGuiCol)", + "ov_cimguiname": "igPushID_StrStr", + "ret": "void", + "signature": "(const char*,const char*)", "stname": "" - } - ], - "igGetTextLineHeight": [ + }, { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetTextLineHeight", + "args": "(const void* ptr_id)", + "argsT": [ + { + "name": "ptr_id", + "type": "const void*" + } + ], + "argsoriginal": "(const void* ptr_id)", + "call_args": "(ptr_id)", + "cimguiname": "igPushID", "defaults": {}, - "funcname": "GetTextLineHeight", - "location": "imgui:466", + "funcname": "PushID", + "location": "imgui:484", "namespace": "ImGui", - "ov_cimguiname": "igGetTextLineHeight", - "ret": "float", - "signature": "()", + "ov_cimguiname": "igPushID_Ptr", + "ret": "void", + "signature": "(const void*)", + "stname": "" + }, + { + "args": "(int int_id)", + "argsT": [ + { + "name": "int_id", + "type": "int" + } + ], + "argsoriginal": "(int int_id)", + "call_args": "(int_id)", + "cimguiname": "igPushID", + "defaults": {}, + "funcname": "PushID", + "location": "imgui:485", + "namespace": "ImGui", + "ov_cimguiname": "igPushID_Int", + "ret": "void", + "signature": "(int)", "stname": "" } ], - "igGetTextLineHeightWithSpacing": [ + "igPushItemFlag": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetTextLineHeightWithSpacing", + "args": "(ImGuiItemFlags option,bool enabled)", + "argsT": [ + { + "name": "option", + "type": "ImGuiItemFlags" + }, + { + "name": "enabled", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiItemFlags option,bool enabled)", + "call_args": "(option,enabled)", + "cimguiname": "igPushItemFlag", "defaults": {}, - "funcname": "GetTextLineHeightWithSpacing", - "location": "imgui:467", + "funcname": "PushItemFlag", + "location": "imgui_internal:3050", "namespace": "ImGui", - "ov_cimguiname": "igGetTextLineHeightWithSpacing", - "ret": "float", - "signature": "()", + "ov_cimguiname": "igPushItemFlag", + "ret": "void", + "signature": "(ImGuiItemFlags,bool)", "stname": "" } ], - "igGetTime": [ + "igPushItemWidth": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetTime", + "args": "(float item_width)", + "argsT": [ + { + "name": "item_width", + "type": "float" + } + ], + "argsoriginal": "(float item_width)", + "call_args": "(item_width)", + "cimguiname": "igPushItemWidth", "defaults": {}, - "funcname": "GetTime", - "location": "imgui:898", + "funcname": "PushItemWidth", + "location": "imgui:423", "namespace": "ImGui", - "ov_cimguiname": "igGetTime", - "ret": "double", - "signature": "()", + "ov_cimguiname": "igPushItemWidth", + "ret": "void", + "signature": "(float)", "stname": "" } ], - "igGetTreeNodeToLabelSpacing": [ + "igPushMultiItemsWidths": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetTreeNodeToLabelSpacing", + "args": "(int components,float width_full)", + "argsT": [ + { + "name": "components", + "type": "int" + }, + { + "name": "width_full", + "type": "float" + } + ], + "argsoriginal": "(int components,float width_full)", + "call_args": "(components,width_full)", + "cimguiname": "igPushMultiItemsWidths", "defaults": {}, - "funcname": "GetTreeNodeToLabelSpacing", - "location": "imgui:624", + "funcname": "PushMultiItemsWidths", + "location": "imgui_internal:3044", "namespace": "ImGui", - "ov_cimguiname": "igGetTreeNodeToLabelSpacing", - "ret": "float", - "signature": "()", + "ov_cimguiname": "igPushMultiItemsWidths", + "ret": "void", + "signature": "(int,float)", "stname": "" } ], - "igGetVersion": [ + "igPushOverrideID": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetVersion", + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igPushOverrideID", "defaults": {}, - "funcname": "GetVersion", - "location": "imgui:317", + "funcname": "PushOverrideID", + "location": "imgui_internal:3032", "namespace": "ImGui", - "ov_cimguiname": "igGetVersion", - "ret": "const char*", - "signature": "()", + "ov_cimguiname": "igPushOverrideID", + "ret": "void", + "signature": "(ImGuiID)", "stname": "" } ], - "igGetWindowContentRegionMax": [ + "igPushStyleColor": [ { - "args": "(ImVec2 *pOut)", + "args": "(ImGuiCol idx,ImU32 col)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "idx", + "type": "ImGuiCol" + }, + { + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetWindowContentRegionMax", + "argsoriginal": "(ImGuiCol idx,ImU32 col)", + "call_args": "(idx,col)", + "cimguiname": "igPushStyleColor", "defaults": {}, - "funcname": "GetWindowContentRegionMax", - "location": "imgui:392", + "funcname": "PushStyleColor", + "location": "imgui:411", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetWindowContentRegionMax", + "ov_cimguiname": "igPushStyleColor_U32", "ret": "void", - "signature": "()", + "signature": "(ImGuiCol,ImU32)", "stname": "" - } - ], - "igGetWindowContentRegionMin": [ + }, { - "args": "(ImVec2 *pOut)", + "args": "(ImGuiCol idx,const ImVec4 col)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "idx", + "type": "ImGuiCol" + }, + { + "name": "col", + "type": "const ImVec4" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetWindowContentRegionMin", + "argsoriginal": "(ImGuiCol idx,const ImVec4& col)", + "call_args": "(idx,col)", + "cimguiname": "igPushStyleColor", "defaults": {}, - "funcname": "GetWindowContentRegionMin", - "location": "imgui:391", + "funcname": "PushStyleColor", + "location": "imgui:412", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetWindowContentRegionMin", + "ov_cimguiname": "igPushStyleColor_Vec4", "ret": "void", - "signature": "()", + "signature": "(ImGuiCol,const ImVec4)", "stname": "" } ], - "igGetWindowDockID": [ + "igPushStyleVar": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetWindowDockID", + "args": "(ImGuiStyleVar idx,float val)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiStyleVar" + }, + { + "name": "val", + "type": "float" + } + ], + "argsoriginal": "(ImGuiStyleVar idx,float val)", + "call_args": "(idx,val)", + "cimguiname": "igPushStyleVar", "defaults": {}, - "funcname": "GetWindowDockID", - "location": "imgui:819", + "funcname": "PushStyleVar", + "location": "imgui:414", "namespace": "ImGui", - "ov_cimguiname": "igGetWindowDockID", - "ret": "ImGuiID", - "signature": "()", + "ov_cimguiname": "igPushStyleVar_Float", + "ret": "void", + "signature": "(ImGuiStyleVar,float)", "stname": "" - } - ], - "igGetWindowDpiScale": [ + }, { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetWindowDpiScale", + "args": "(ImGuiStyleVar idx,const ImVec2 val)", + "argsT": [ + { + "name": "idx", + "type": "ImGuiStyleVar" + }, + { + "name": "val", + "type": "const ImVec2" + } + ], + "argsoriginal": "(ImGuiStyleVar idx,const ImVec2& val)", + "call_args": "(idx,val)", + "cimguiname": "igPushStyleVar", "defaults": {}, - "funcname": "GetWindowDpiScale", - "location": "imgui:358", + "funcname": "PushStyleVar", + "location": "imgui:415", "namespace": "ImGui", - "ov_cimguiname": "igGetWindowDpiScale", - "ret": "float", - "signature": "()", + "ov_cimguiname": "igPushStyleVar_Vec2", + "ret": "void", + "signature": "(ImGuiStyleVar,const ImVec2)", "stname": "" } ], - "igGetWindowDrawList": [ + "igPushTextWrapPos": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetWindowDrawList", - "defaults": {}, - "funcname": "GetWindowDrawList", - "location": "imgui:357", + "args": "(float wrap_local_pos_x)", + "argsT": [ + { + "name": "wrap_local_pos_x", + "type": "float" + } + ], + "argsoriginal": "(float wrap_local_pos_x=0.0f)", + "call_args": "(wrap_local_pos_x)", + "cimguiname": "igPushTextWrapPos", + "defaults": { + "wrap_local_pos_x": "0.0f" + }, + "funcname": "PushTextWrapPos", + "location": "imgui:427", "namespace": "ImGui", - "ov_cimguiname": "igGetWindowDrawList", - "ret": "ImDrawList*", - "signature": "()", + "ov_cimguiname": "igPushTextWrapPos", + "ret": "void", + "signature": "(float)", "stname": "" } ], - "igGetWindowHeight": [ + "igRadioButton": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetWindowHeight", + "args": "(const char* label,bool active)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "active", + "type": "bool" + } + ], + "argsoriginal": "(const char* label,bool active)", + "call_args": "(label,active)", + "cimguiname": "igRadioButton", "defaults": {}, - "funcname": "GetWindowHeight", - "location": "imgui:362", + "funcname": "RadioButton", + "location": "imgui:516", + "namespace": "ImGui", + "ov_cimguiname": "igRadioButton_Bool", + "ret": "bool", + "signature": "(const char*,bool)", + "stname": "" + }, + { + "args": "(const char* label,int* v,int v_button)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "v_button", + "type": "int" + } + ], + "argsoriginal": "(const char* label,int* v,int v_button)", + "call_args": "(label,v,v_button)", + "cimguiname": "igRadioButton", + "defaults": {}, + "funcname": "RadioButton", + "location": "imgui:517", "namespace": "ImGui", - "ov_cimguiname": "igGetWindowHeight", - "ret": "float", - "signature": "()", + "ov_cimguiname": "igRadioButton_IntPtr", + "ret": "bool", + "signature": "(const char*,int*,int)", "stname": "" } ], - "igGetWindowPos": [ + "igRemoveContextHook": [ { - "args": "(ImVec2 *pOut)", + "args": "(ImGuiContext* context,ImGuiID hook_to_remove)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "context", + "type": "ImGuiContext*" + }, + { + "name": "hook_to_remove", + "type": "ImGuiID" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetWindowPos", + "argsoriginal": "(ImGuiContext* context,ImGuiID hook_to_remove)", + "call_args": "(context,hook_to_remove)", + "cimguiname": "igRemoveContextHook", "defaults": {}, - "funcname": "GetWindowPos", - "location": "imgui:359", + "funcname": "RemoveContextHook", + "location": "imgui_internal:2978", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetWindowPos", + "ov_cimguiname": "igRemoveContextHook", "ret": "void", - "signature": "()", + "signature": "(ImGuiContext*,ImGuiID)", "stname": "" } ], - "igGetWindowSize": [ + "igRemoveSettingsHandler": [ { - "args": "(ImVec2 *pOut)", + "args": "(const char* type_name)", "argsT": [ { - "name": "pOut", - "type": "ImVec2*" + "name": "type_name", + "type": "const char*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetWindowSize", + "argsoriginal": "(const char* type_name)", + "call_args": "(type_name)", + "cimguiname": "igRemoveSettingsHandler", "defaults": {}, - "funcname": "GetWindowSize", - "location": "imgui:360", + "funcname": "RemoveSettingsHandler", + "location": "imgui_internal:2998", "namespace": "ImGui", - "nonUDT": 1, - "ov_cimguiname": "igGetWindowSize", + "ov_cimguiname": "igRemoveSettingsHandler", "ret": "void", - "signature": "()", - "stname": "" - } - ], - "igGetWindowViewport": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igGetWindowViewport", - "defaults": {}, - "funcname": "GetWindowViewport", - "location": "imgui:363", - "namespace": "ImGui", - "ov_cimguiname": "igGetWindowViewport", - "ret": "ImGuiViewport*", - "signature": "()", + "signature": "(const char*)", "stname": "" } ], - "igGetWindowWidth": [ + "igRender": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igGetWindowWidth", + "cimguiname": "igRender", "defaults": {}, - "funcname": "GetWindowWidth", - "location": "imgui:361", + "funcname": "Render", + "location": "imgui:304", "namespace": "ImGui", - "ov_cimguiname": "igGetWindowWidth", - "ret": "float", + "ov_cimguiname": "igRender", + "ret": "void", "signature": "()", "stname": "" } ], - "igImage": [ + "igRenderArrow": [ { - "args": "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col)", + "args": "(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale)", "argsT": [ { - "name": "user_texture_id", - "type": "ImTextureID" - }, - { - "name": "size", - "type": "const ImVec2" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "uv0", - "type": "const ImVec2" + "name": "pos", + "type": "ImVec2" }, { - "name": "uv1", - "type": "const ImVec2" + "name": "col", + "type": "ImU32" }, { - "name": "tint_col", - "type": "const ImVec4" + "name": "dir", + "type": "ImGuiDir" }, { - "name": "border_col", - "type": "const ImVec4" + "name": "scale", + "type": "float" } ], - "argsoriginal": "(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& tint_col=ImVec4(1,1,1,1),const ImVec4& border_col=ImVec4(0,0,0,0))", - "call_args": "(user_texture_id,size,uv0,uv1,tint_col,border_col)", - "cimguiname": "igImage", + "argsoriginal": "(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale=1.0f)", + "call_args": "(draw_list,pos,col,dir,scale)", + "cimguiname": "igRenderArrow", "defaults": { - "border_col": "ImVec4(0,0,0,0)", - "tint_col": "ImVec4(1,1,1,1)", - "uv0": "ImVec2(0,0)", - "uv1": "ImVec2(1,1)" + "scale": "1.0f" }, - "funcname": "Image", - "location": "imgui:523", + "funcname": "RenderArrow", + "location": "imgui_internal:3340", "namespace": "ImGui", - "ov_cimguiname": "igImage", + "ov_cimguiname": "igRenderArrow", "ret": "void", - "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "signature": "(ImDrawList*,ImVec2,ImU32,ImGuiDir,float)", "stname": "" } ], - "igImageButton": [ + "igRenderArrowDockMenu": [ { - "args": "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", + "args": "(ImDrawList* draw_list,ImVec2 p_min,float sz,ImU32 col)", "argsT": [ { - "name": "str_id", - "type": "const char*" - }, - { - "name": "user_texture_id", - "type": "ImTextureID" - }, - { - "name": "size", - "type": "const ImVec2" - }, - { - "name": "uv0", - "type": "const ImVec2" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "uv1", - "type": "const ImVec2" + "name": "p_min", + "type": "ImVec2" }, { - "name": "bg_col", - "type": "const ImVec4" + "name": "sz", + "type": "float" }, { - "name": "tint_col", - "type": "const ImVec4" + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", - "call_args": "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)", - "cimguiname": "igImageButton", - "defaults": { - "bg_col": "ImVec4(0,0,0,0)", - "tint_col": "ImVec4(1,1,1,1)", - "uv0": "ImVec2(0,0)", - "uv1": "ImVec2(1,1)" - }, - "funcname": "ImageButton", - "location": "imgui:524", + "argsoriginal": "(ImDrawList* draw_list,ImVec2 p_min,float sz,ImU32 col)", + "call_args": "(draw_list,p_min,sz,col)", + "cimguiname": "igRenderArrowDockMenu", + "defaults": {}, + "funcname": "RenderArrowDockMenu", + "location": "imgui_internal:3344", "namespace": "ImGui", - "ov_cimguiname": "igImageButton", - "ret": "bool", - "signature": "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)", + "ov_cimguiname": "igRenderArrowDockMenu", + "ret": "void", + "signature": "(ImDrawList*,ImVec2,float,ImU32)", "stname": "" } ], - "igIndent": [ + "igRenderArrowPointingAt": [ { - "args": "(float indent_w)", + "args": "(ImDrawList* draw_list,ImVec2 pos,ImVec2 half_sz,ImGuiDir direction,ImU32 col)", "argsT": [ { - "name": "indent_w", - "type": "float" + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "pos", + "type": "ImVec2" + }, + { + "name": "half_sz", + "type": "ImVec2" + }, + { + "name": "direction", + "type": "ImGuiDir" + }, + { + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "(float indent_w=0.0f)", - "call_args": "(indent_w)", - "cimguiname": "igIndent", - "defaults": { - "indent_w": "0.0f" - }, - "funcname": "Indent", - "location": "imgui:452", + "argsoriginal": "(ImDrawList* draw_list,ImVec2 pos,ImVec2 half_sz,ImGuiDir direction,ImU32 col)", + "call_args": "(draw_list,pos,half_sz,direction,col)", + "cimguiname": "igRenderArrowPointingAt", + "defaults": {}, + "funcname": "RenderArrowPointingAt", + "location": "imgui_internal:3343", "namespace": "ImGui", - "ov_cimguiname": "igIndent", + "ov_cimguiname": "igRenderArrowPointingAt", "ret": "void", - "signature": "(float)", + "signature": "(ImDrawList*,ImVec2,ImVec2,ImGuiDir,ImU32)", "stname": "" } ], - "igInputDouble": [ + "igRenderBullet": [ { - "args": "(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags)", + "args": "(ImDrawList* draw_list,ImVec2 pos,ImU32 col)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "double*" - }, - { - "name": "step", - "type": "double" - }, - { - "name": "step_fast", - "type": "double" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "format", - "type": "const char*" + "name": "pos", + "type": "ImVec2" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "(const char* label,double* v,double step=0.0,double step_fast=0.0,const char* format=\"%.6f\",ImGuiInputTextFlags flags=0)", - "call_args": "(label,v,step,step_fast,format,flags)", - "cimguiname": "igInputDouble", - "defaults": { - "flags": "0", - "format": "\"%.6f\"", - "step": "0.0", - "step_fast": "0.0" - }, - "funcname": "InputDouble", - "location": "imgui:595", + "argsoriginal": "(ImDrawList* draw_list,ImVec2 pos,ImU32 col)", + "call_args": "(draw_list,pos,col)", + "cimguiname": "igRenderBullet", + "defaults": {}, + "funcname": "RenderBullet", + "location": "imgui_internal:3341", "namespace": "ImGui", - "ov_cimguiname": "igInputDouble", - "ret": "bool", - "signature": "(const char*,double*,double,double,const char*,ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderBullet", + "ret": "void", + "signature": "(ImDrawList*,ImVec2,ImU32)", "stname": "" } ], - "igInputFloat": [ + "igRenderCheckMark": [ { - "args": "(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags flags)", + "args": "(ImDrawList* draw_list,ImVec2 pos,ImU32 col,float sz)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "v", - "type": "float*" + "name": "pos", + "type": "ImVec2" }, { - "name": "step", - "type": "float" + "name": "col", + "type": "ImU32" }, { - "name": "step_fast", + "name": "sz", "type": "float" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiInputTextFlags" } ], - "argsoriginal": "(const char* label,float* v,float step=0.0f,float step_fast=0.0f,const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", - "call_args": "(label,v,step,step_fast,format,flags)", - "cimguiname": "igInputFloat", - "defaults": { - "flags": "0", - "format": "\"%.3f\"", - "step": "0.0f", - "step_fast": "0.0f" - }, - "funcname": "InputFloat", - "location": "imgui:587", + "argsoriginal": "(ImDrawList* draw_list,ImVec2 pos,ImU32 col,float sz)", + "call_args": "(draw_list,pos,col,sz)", + "cimguiname": "igRenderCheckMark", + "defaults": {}, + "funcname": "RenderCheckMark", + "location": "imgui_internal:3342", "namespace": "ImGui", - "ov_cimguiname": "igInputFloat", - "ret": "bool", - "signature": "(const char*,float*,float,float,const char*,ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderCheckMark", + "ret": "void", + "signature": "(ImDrawList*,ImVec2,ImU32,float)", "stname": "" } ], - "igInputFloat2": [ + "igRenderColorRectWithAlphaCheckerboard": [ { - "args": "(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags)", + "args": "(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,ImDrawFlags flags)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "v", - "type": "float[2]" + "name": "p_min", + "type": "ImVec2" }, { - "name": "format", - "type": "const char*" + "name": "p_max", + "type": "ImVec2" + }, + { + "name": "fill_col", + "type": "ImU32" + }, + { + "name": "grid_step", + "type": "float" + }, + { + "name": "grid_off", + "type": "ImVec2" + }, + { + "name": "rounding", + "type": "float" }, { "name": "flags", - "type": "ImGuiInputTextFlags" + "type": "ImDrawFlags" } ], - "argsoriginal": "(const char* label,float v[2],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", - "call_args": "(label,v,format,flags)", - "cimguiname": "igInputFloat2", + "argsoriginal": "(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding=0.0f,ImDrawFlags flags=0)", + "call_args": "(draw_list,p_min,p_max,fill_col,grid_step,grid_off,rounding,flags)", + "cimguiname": "igRenderColorRectWithAlphaCheckerboard", "defaults": { "flags": "0", - "format": "\"%.3f\"" + "rounding": "0.0f" }, - "funcname": "InputFloat2", - "location": "imgui:588", + "funcname": "RenderColorRectWithAlphaCheckerboard", + "location": "imgui_internal:3334", "namespace": "ImGui", - "ov_cimguiname": "igInputFloat2", - "ret": "bool", - "signature": "(const char*,float[2],const char*,ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderColorRectWithAlphaCheckerboard", + "ret": "void", + "signature": "(ImDrawList*,ImVec2,ImVec2,ImU32,float,ImVec2,float,ImDrawFlags)", "stname": "" } ], - "igInputFloat3": [ + "igRenderDragDropTargetRect": [ { - "args": "(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags)", + "args": "(const ImRect bb)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "float[3]" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "bb", + "type": "const ImRect" } ], - "argsoriginal": "(const char* label,float v[3],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", - "call_args": "(label,v,format,flags)", - "cimguiname": "igInputFloat3", - "defaults": { - "flags": "0", - "format": "\"%.3f\"" - }, - "funcname": "InputFloat3", - "location": "imgui:589", + "argsoriginal": "(const ImRect& bb)", + "call_args": "(bb)", + "cimguiname": "igRenderDragDropTargetRect", + "defaults": {}, + "funcname": "RenderDragDropTargetRect", + "location": "imgui_internal:3241", "namespace": "ImGui", - "ov_cimguiname": "igInputFloat3", - "ret": "bool", - "signature": "(const char*,float[3],const char*,ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderDragDropTargetRect", + "ret": "void", + "signature": "(const ImRect)", "stname": "" } ], - "igInputFloat4": [ + "igRenderFrame": [ { - "args": "(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags)", + "args": "(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border,float rounding)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "p_min", + "type": "ImVec2" }, { - "name": "v", - "type": "float[4]" + "name": "p_max", + "type": "ImVec2" }, { - "name": "format", - "type": "const char*" + "name": "fill_col", + "type": "ImU32" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "border", + "type": "bool" + }, + { + "name": "rounding", + "type": "float" } ], - "argsoriginal": "(const char* label,float v[4],const char* format=\"%.3f\",ImGuiInputTextFlags flags=0)", - "call_args": "(label,v,format,flags)", - "cimguiname": "igInputFloat4", + "argsoriginal": "(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border=true,float rounding=0.0f)", + "call_args": "(p_min,p_max,fill_col,border,rounding)", + "cimguiname": "igRenderFrame", "defaults": { - "flags": "0", - "format": "\"%.3f\"" + "border": "true", + "rounding": "0.0f" }, - "funcname": "InputFloat4", - "location": "imgui:590", + "funcname": "RenderFrame", + "location": "imgui_internal:3332", "namespace": "ImGui", - "ov_cimguiname": "igInputFloat4", - "ret": "bool", - "signature": "(const char*,float[4],const char*,ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderFrame", + "ret": "void", + "signature": "(ImVec2,ImVec2,ImU32,bool,float)", "stname": "" } ], - "igInputInt": [ + "igRenderFrameBorder": [ { - "args": "(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags)", + "args": "(ImVec2 p_min,ImVec2 p_max,float rounding)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int*" - }, - { - "name": "step", - "type": "int" + "name": "p_min", + "type": "ImVec2" }, { - "name": "step_fast", - "type": "int" + "name": "p_max", + "type": "ImVec2" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "rounding", + "type": "float" } ], - "argsoriginal": "(const char* label,int* v,int step=1,int step_fast=100,ImGuiInputTextFlags flags=0)", - "call_args": "(label,v,step,step_fast,flags)", - "cimguiname": "igInputInt", + "argsoriginal": "(ImVec2 p_min,ImVec2 p_max,float rounding=0.0f)", + "call_args": "(p_min,p_max,rounding)", + "cimguiname": "igRenderFrameBorder", "defaults": { - "flags": "0", - "step": "1", - "step_fast": "100" + "rounding": "0.0f" }, - "funcname": "InputInt", - "location": "imgui:591", + "funcname": "RenderFrameBorder", + "location": "imgui_internal:3333", "namespace": "ImGui", - "ov_cimguiname": "igInputInt", - "ret": "bool", - "signature": "(const char*,int*,int,int,ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderFrameBorder", + "ret": "void", + "signature": "(ImVec2,ImVec2,float)", "stname": "" } ], - "igInputInt2": [ + "igRenderMouseCursor": [ { - "args": "(const char* label,int v[2],ImGuiInputTextFlags flags)", + "args": "(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "pos", + "type": "ImVec2" }, { - "name": "v", - "type": "int[2]" + "name": "scale", + "type": "float" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "mouse_cursor", + "type": "ImGuiMouseCursor" + }, + { + "name": "col_fill", + "type": "ImU32" + }, + { + "name": "col_border", + "type": "ImU32" + }, + { + "name": "col_shadow", + "type": "ImU32" } ], - "argsoriginal": "(const char* label,int v[2],ImGuiInputTextFlags flags=0)", - "call_args": "(label,v,flags)", - "cimguiname": "igInputInt2", - "defaults": { - "flags": "0" - }, - "funcname": "InputInt2", - "location": "imgui:592", + "argsoriginal": "(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)", + "call_args": "(pos,scale,mouse_cursor,col_fill,col_border,col_shadow)", + "cimguiname": "igRenderMouseCursor", + "defaults": {}, + "funcname": "RenderMouseCursor", + "location": "imgui_internal:3337", "namespace": "ImGui", - "ov_cimguiname": "igInputInt2", - "ret": "bool", - "signature": "(const char*,int[2],ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderMouseCursor", + "ret": "void", + "signature": "(ImVec2,float,ImGuiMouseCursor,ImU32,ImU32,ImU32)", "stname": "" } ], - "igInputInt3": [ + "igRenderNavHighlight": [ { - "args": "(const char* label,int v[3],ImGuiInputTextFlags flags)", + "args": "(const ImRect bb,ImGuiID id,ImGuiNavHighlightFlags flags)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "bb", + "type": "const ImRect" }, { - "name": "v", - "type": "int[3]" + "name": "id", + "type": "ImGuiID" }, { "name": "flags", - "type": "ImGuiInputTextFlags" + "type": "ImGuiNavHighlightFlags" } ], - "argsoriginal": "(const char* label,int v[3],ImGuiInputTextFlags flags=0)", - "call_args": "(label,v,flags)", - "cimguiname": "igInputInt3", + "argsoriginal": "(const ImRect& bb,ImGuiID id,ImGuiNavHighlightFlags flags=ImGuiNavHighlightFlags_TypeDefault)", + "call_args": "(bb,id,flags)", + "cimguiname": "igRenderNavHighlight", "defaults": { - "flags": "0" + "flags": "ImGuiNavHighlightFlags_TypeDefault" }, - "funcname": "InputInt3", - "location": "imgui:593", + "funcname": "RenderNavHighlight", + "location": "imgui_internal:3335", "namespace": "ImGui", - "ov_cimguiname": "igInputInt3", - "ret": "bool", - "signature": "(const char*,int[3],ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderNavHighlight", + "ret": "void", + "signature": "(const ImRect,ImGuiID,ImGuiNavHighlightFlags)", "stname": "" } ], - "igInputInt4": [ + "igRenderPlatformWindowsDefault": [ { - "args": "(const char* label,int v[4],ImGuiInputTextFlags flags)", + "args": "(void* platform_render_arg,void* renderer_render_arg)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int[4]" + "name": "platform_render_arg", + "type": "void*" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "renderer_render_arg", + "type": "void*" } ], - "argsoriginal": "(const char* label,int v[4],ImGuiInputTextFlags flags=0)", - "call_args": "(label,v,flags)", - "cimguiname": "igInputInt4", + "argsoriginal": "(void* platform_render_arg=((void*)0),void* renderer_render_arg=((void*)0))", + "call_args": "(platform_render_arg,renderer_render_arg)", + "cimguiname": "igRenderPlatformWindowsDefault", "defaults": { - "flags": "0" + "platform_render_arg": "NULL", + "renderer_render_arg": "NULL" }, - "funcname": "InputInt4", - "location": "imgui:594", + "funcname": "RenderPlatformWindowsDefault", + "location": "imgui:982", "namespace": "ImGui", - "ov_cimguiname": "igInputInt4", - "ret": "bool", - "signature": "(const char*,int[4],ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderPlatformWindowsDefault", + "ret": "void", + "signature": "(void*,void*)", "stname": "" } ], - "igInputScalar": [ + "igRenderRectFilledRangeH": [ { - "args": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step,const void* p_step_fast,const char* format,ImGuiInputTextFlags flags)", + "args": "(ImDrawList* draw_list,const ImRect rect,ImU32 col,float x_start_norm,float x_end_norm,float rounding)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "data_type", - "type": "ImGuiDataType" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "p_data", - "type": "void*" + "name": "rect", + "type": "const ImRect" }, { - "name": "p_step", - "type": "const void*" + "name": "col", + "type": "ImU32" }, { - "name": "p_step_fast", - "type": "const void*" + "name": "x_start_norm", + "type": "float" }, { - "name": "format", - "type": "const char*" + "name": "x_end_norm", + "type": "float" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "rounding", + "type": "float" } ], - "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)", - "call_args": "(label,data_type,p_data,p_step,p_step_fast,format,flags)", - "cimguiname": "igInputScalar", - "defaults": { - "flags": "0", - "format": "NULL", - "p_step": "NULL", - "p_step_fast": "NULL" - }, - "funcname": "InputScalar", - "location": "imgui:596", + "argsoriginal": "(ImDrawList* draw_list,const ImRect& rect,ImU32 col,float x_start_norm,float x_end_norm,float rounding)", + "call_args": "(draw_list,rect,col,x_start_norm,x_end_norm,rounding)", + "cimguiname": "igRenderRectFilledRangeH", + "defaults": {}, + "funcname": "RenderRectFilledRangeH", + "location": "imgui_internal:3345", "namespace": "ImGui", - "ov_cimguiname": "igInputScalar", - "ret": "bool", - "signature": "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderRectFilledRangeH", + "ret": "void", + "signature": "(ImDrawList*,const ImRect,ImU32,float,float,float)", "stname": "" } ], - "igInputScalarN": [ + "igRenderRectFilledWithHole": [ { - "args": "(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)", + "args": "(ImDrawList* draw_list,const ImRect outer,const ImRect inner,ImU32 col,float rounding)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "data_type", - "type": "ImGuiDataType" + "name": "outer", + "type": "const ImRect" }, { - "name": "p_data", - "type": "void*" + "name": "inner", + "type": "const ImRect" }, { - "name": "components", - "type": "int" + "name": "col", + "type": "ImU32" }, { - "name": "p_step", - "type": "const void*" + "name": "rounding", + "type": "float" + } + ], + "argsoriginal": "(ImDrawList* draw_list,const ImRect& outer,const ImRect& inner,ImU32 col,float rounding)", + "call_args": "(draw_list,outer,inner,col,rounding)", + "cimguiname": "igRenderRectFilledWithHole", + "defaults": {}, + "funcname": "RenderRectFilledWithHole", + "location": "imgui_internal:3346", + "namespace": "ImGui", + "ov_cimguiname": "igRenderRectFilledWithHole", + "ret": "void", + "signature": "(ImDrawList*,const ImRect,const ImRect,ImU32,float)", + "stname": "" + } + ], + "igRenderText": [ + { + "args": "(ImVec2 pos,const char* text,const char* text_end,bool hide_text_after_hash)", + "argsT": [ + { + "name": "pos", + "type": "ImVec2" }, { - "name": "p_step_fast", - "type": "const void*" + "name": "text", + "type": "const char*" }, { - "name": "format", + "name": "text_end", "type": "const char*" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "hide_text_after_hash", + "type": "bool" } ], - "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_step=((void*)0),const void* p_step_fast=((void*)0),const char* format=((void*)0),ImGuiInputTextFlags flags=0)", - "call_args": "(label,data_type,p_data,components,p_step,p_step_fast,format,flags)", - "cimguiname": "igInputScalarN", + "argsoriginal": "(ImVec2 pos,const char* text,const char* text_end=((void*)0),bool hide_text_after_hash=true)", + "call_args": "(pos,text,text_end,hide_text_after_hash)", + "cimguiname": "igRenderText", "defaults": { - "flags": "0", - "format": "NULL", - "p_step": "NULL", - "p_step_fast": "NULL" + "hide_text_after_hash": "true", + "text_end": "NULL" }, - "funcname": "InputScalarN", - "location": "imgui:597", + "funcname": "RenderText", + "location": "imgui_internal:3327", "namespace": "ImGui", - "ov_cimguiname": "igInputScalarN", - "ret": "bool", - "signature": "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiInputTextFlags)", + "ov_cimguiname": "igRenderText", + "ret": "void", + "signature": "(ImVec2,const char*,const char*,bool)", "stname": "" } ], - "igInputText": [ + "igRenderTextClipped": [ { - "args": "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "args": "(const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "pos_min", + "type": "const ImVec2" }, { - "name": "buf", - "type": "char*" + "name": "pos_max", + "type": "const ImVec2" }, { - "name": "buf_size", - "type": "size_t" + "name": "text", + "type": "const char*" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "text_end", + "type": "const char*" }, { - "name": "callback", - "type": "ImGuiInputTextCallback" + "name": "text_size_if_known", + "type": "const ImVec2*" }, { - "name": "user_data", - "type": "void*" + "name": "align", + "type": "const ImVec2" + }, + { + "name": "clip_rect", + "type": "const ImRect*" } ], - "argsoriginal": "(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", - "call_args": "(label,buf,buf_size,flags,callback,user_data)", - "cimguiname": "igInputText", + "argsoriginal": "(const ImVec2& pos_min,const ImVec2& pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2& align=ImVec2(0,0),const ImRect* clip_rect=((void*)0))", + "call_args": "(pos_min,pos_max,text,text_end,text_size_if_known,align,clip_rect)", + "cimguiname": "igRenderTextClipped", "defaults": { - "callback": "NULL", - "flags": "0", - "user_data": "NULL" + "align": "ImVec2(0,0)", + "clip_rect": "NULL" }, - "funcname": "InputText", - "location": "imgui:584", + "funcname": "RenderTextClipped", + "location": "imgui_internal:3329", "namespace": "ImGui", - "ov_cimguiname": "igInputText", - "ret": "bool", - "signature": "(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "ov_cimguiname": "igRenderTextClipped", + "ret": "void", + "signature": "(const ImVec2,const ImVec2,const char*,const char*,const ImVec2*,const ImVec2,const ImRect*)", "stname": "" } ], - "igInputTextMultiline": [ + "igRenderTextClippedEx": [ { - "args": "(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "args": "(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "buf", - "type": "char*" + "name": "pos_min", + "type": "const ImVec2" }, { - "name": "buf_size", - "type": "size_t" + "name": "pos_max", + "type": "const ImVec2" }, { - "name": "size", - "type": "const ImVec2" + "name": "text", + "type": "const char*" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "text_end", + "type": "const char*" }, { - "name": "callback", - "type": "ImGuiInputTextCallback" + "name": "text_size_if_known", + "type": "const ImVec2*" }, { - "name": "user_data", - "type": "void*" + "name": "align", + "type": "const ImVec2" + }, + { + "name": "clip_rect", + "type": "const ImRect*" } ], - "argsoriginal": "(const char* label,char* buf,size_t buf_size,const ImVec2& size=ImVec2(0,0),ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", - "call_args": "(label,buf,buf_size,size,flags,callback,user_data)", - "cimguiname": "igInputTextMultiline", + "argsoriginal": "(ImDrawList* draw_list,const ImVec2& pos_min,const ImVec2& pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2& align=ImVec2(0,0),const ImRect* clip_rect=((void*)0))", + "call_args": "(draw_list,pos_min,pos_max,text,text_end,text_size_if_known,align,clip_rect)", + "cimguiname": "igRenderTextClippedEx", "defaults": { - "callback": "NULL", - "flags": "0", - "size": "ImVec2(0,0)", - "user_data": "NULL" + "align": "ImVec2(0,0)", + "clip_rect": "NULL" }, - "funcname": "InputTextMultiline", - "location": "imgui:585", + "funcname": "RenderTextClippedEx", + "location": "imgui_internal:3330", "namespace": "ImGui", - "ov_cimguiname": "igInputTextMultiline", - "ret": "bool", - "signature": "(const char*,char*,size_t,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "ov_cimguiname": "igRenderTextClippedEx", + "ret": "void", + "signature": "(ImDrawList*,const ImVec2,const ImVec2,const char*,const char*,const ImVec2*,const ImVec2,const ImRect*)", "stname": "" } ], - "igInputTextWithHint": [ + "igRenderTextEllipsis": [ { - "args": "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)", + "args": "(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,float clip_max_x,float ellipsis_max_x,const char* text,const char* text_end,const ImVec2* text_size_if_known)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "hint", - "type": "const char*" + "name": "pos_min", + "type": "const ImVec2" }, { - "name": "buf", - "type": "char*" + "name": "pos_max", + "type": "const ImVec2" }, { - "name": "buf_size", - "type": "size_t" + "name": "clip_max_x", + "type": "float" }, { - "name": "flags", - "type": "ImGuiInputTextFlags" + "name": "ellipsis_max_x", + "type": "float" }, { - "name": "callback", - "type": "ImGuiInputTextCallback" + "name": "text", + "type": "const char*" }, { - "name": "user_data", - "type": "void*" + "name": "text_end", + "type": "const char*" + }, + { + "name": "text_size_if_known", + "type": "const ImVec2*" } ], - "argsoriginal": "(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags=0,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))", - "call_args": "(label,hint,buf,buf_size,flags,callback,user_data)", - "cimguiname": "igInputTextWithHint", - "defaults": { - "callback": "NULL", - "flags": "0", - "user_data": "NULL" - }, - "funcname": "InputTextWithHint", - "location": "imgui:586", + "argsoriginal": "(ImDrawList* draw_list,const ImVec2& pos_min,const ImVec2& pos_max,float clip_max_x,float ellipsis_max_x,const char* text,const char* text_end,const ImVec2* text_size_if_known)", + "call_args": "(draw_list,pos_min,pos_max,clip_max_x,ellipsis_max_x,text,text_end,text_size_if_known)", + "cimguiname": "igRenderTextEllipsis", + "defaults": {}, + "funcname": "RenderTextEllipsis", + "location": "imgui_internal:3331", "namespace": "ImGui", - "ov_cimguiname": "igInputTextWithHint", - "ret": "bool", - "signature": "(const char*,const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)", + "ov_cimguiname": "igRenderTextEllipsis", + "ret": "void", + "signature": "(ImDrawList*,const ImVec2,const ImVec2,float,float,const char*,const char*,const ImVec2*)", "stname": "" } ], - "igInvisibleButton": [ + "igRenderTextWrapped": [ { - "args": "(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags)", + "args": "(ImVec2 pos,const char* text,const char* text_end,float wrap_width)", "argsT": [ { - "name": "str_id", + "name": "pos", + "type": "ImVec2" + }, + { + "name": "text", "type": "const char*" }, { - "name": "size", - "type": "const ImVec2" + "name": "text_end", + "type": "const char*" }, { - "name": "flags", - "type": "ImGuiButtonFlags" + "name": "wrap_width", + "type": "float" } ], - "argsoriginal": "(const char* str_id,const ImVec2& size,ImGuiButtonFlags flags=0)", - "call_args": "(str_id,size,flags)", - "cimguiname": "igInvisibleButton", - "defaults": { - "flags": "0" - }, - "funcname": "InvisibleButton", - "location": "imgui:511", + "argsoriginal": "(ImVec2 pos,const char* text,const char* text_end,float wrap_width)", + "call_args": "(pos,text,text_end,wrap_width)", + "cimguiname": "igRenderTextWrapped", + "defaults": {}, + "funcname": "RenderTextWrapped", + "location": "imgui_internal:3328", "namespace": "ImGui", - "ov_cimguiname": "igInvisibleButton", - "ret": "bool", - "signature": "(const char*,const ImVec2,ImGuiButtonFlags)", + "ov_cimguiname": "igRenderTextWrapped", + "ret": "void", + "signature": "(ImVec2,const char*,const char*,float)", "stname": "" } ], - "igIsAnyItemActive": [ + "igResetMouseDragDelta": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsAnyItemActive", - "defaults": {}, - "funcname": "IsAnyItemActive", - "location": "imgui:876", + "args": "(ImGuiMouseButton button)", + "argsT": [ + { + "name": "button", + "type": "ImGuiMouseButton" + } + ], + "argsoriginal": "(ImGuiMouseButton button=0)", + "call_args": "(button)", + "cimguiname": "igResetMouseDragDelta", + "defaults": { + "button": "0" + }, + "funcname": "ResetMouseDragDelta", + "location": "imgui:945", "namespace": "ImGui", - "ov_cimguiname": "igIsAnyItemActive", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igResetMouseDragDelta", + "ret": "void", + "signature": "(ImGuiMouseButton)", "stname": "" } ], - "igIsAnyItemFocused": [ + "igSameLine": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsAnyItemFocused", - "defaults": {}, - "funcname": "IsAnyItemFocused", - "location": "imgui:877", + "args": "(float offset_from_start_x,float spacing)", + "argsT": [ + { + "name": "offset_from_start_x", + "type": "float" + }, + { + "name": "spacing", + "type": "float" + } + ], + "argsoriginal": "(float offset_from_start_x=0.0f,float spacing=-1.0f)", + "call_args": "(offset_from_start_x,spacing)", + "cimguiname": "igSameLine", + "defaults": { + "offset_from_start_x": "0.0f", + "spacing": "-1.0f" + }, + "funcname": "SameLine", + "location": "imgui:448", "namespace": "ImGui", - "ov_cimguiname": "igIsAnyItemFocused", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igSameLine", + "ret": "void", + "signature": "(float,float)", "stname": "" } ], - "igIsAnyItemHovered": [ + "igSaveIniSettingsToDisk": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsAnyItemHovered", + "args": "(const char* ini_filename)", + "argsT": [ + { + "name": "ini_filename", + "type": "const char*" + } + ], + "argsoriginal": "(const char* ini_filename)", + "call_args": "(ini_filename)", + "cimguiname": "igSaveIniSettingsToDisk", "defaults": {}, - "funcname": "IsAnyItemHovered", - "location": "imgui:875", + "funcname": "SaveIniSettingsToDisk", + "location": "imgui:961", "namespace": "ImGui", - "ov_cimguiname": "igIsAnyItemHovered", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igSaveIniSettingsToDisk", + "ret": "void", + "signature": "(const char*)", "stname": "" } ], - "igIsAnyMouseDown": [ + "igSaveIniSettingsToMemory": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsAnyMouseDown", - "defaults": {}, - "funcname": "IsAnyMouseDown", - "location": "imgui:940", + "args": "(size_t* out_ini_size)", + "argsT": [ + { + "name": "out_ini_size", + "type": "size_t*" + } + ], + "argsoriginal": "(size_t* out_ini_size=((void*)0))", + "call_args": "(out_ini_size)", + "cimguiname": "igSaveIniSettingsToMemory", + "defaults": { + "out_ini_size": "NULL" + }, + "funcname": "SaveIniSettingsToMemory", + "location": "imgui:962", "namespace": "ImGui", - "ov_cimguiname": "igIsAnyMouseDown", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igSaveIniSettingsToMemory", + "ret": "const char*", + "signature": "(size_t*)", "stname": "" } ], - "igIsItemActivated": [ + "igScaleWindowsInViewport": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsItemActivated", + "args": "(ImGuiViewportP* viewport,float scale)", + "argsT": [ + { + "name": "viewport", + "type": "ImGuiViewportP*" + }, + { + "name": "scale", + "type": "float" + } + ], + "argsoriginal": "(ImGuiViewportP* viewport,float scale)", + "call_args": "(viewport,scale)", + "cimguiname": "igScaleWindowsInViewport", "defaults": {}, - "funcname": "IsItemActivated", - "location": "imgui:871", + "funcname": "ScaleWindowsInViewport", + "location": "imgui_internal:2983", "namespace": "ImGui", - "ov_cimguiname": "igIsItemActivated", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igScaleWindowsInViewport", + "ret": "void", + "signature": "(ImGuiViewportP*,float)", "stname": "" } ], - "igIsItemActive": [ + "igScrollToBringRectIntoView": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsItemActive", + "args": "(ImGuiWindow* window,const ImRect rect)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "rect", + "type": "const ImRect" + } + ], + "argsoriginal": "(ImGuiWindow* window,const ImRect& rect)", + "call_args": "(window,rect)", + "cimguiname": "igScrollToBringRectIntoView", "defaults": {}, - "funcname": "IsItemActive", - "location": "imgui:866", + "funcname": "ScrollToBringRectIntoView", + "location": "imgui_internal:3016", "namespace": "ImGui", - "ov_cimguiname": "igIsItemActive", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igScrollToBringRectIntoView", + "ret": "void", + "signature": "(ImGuiWindow*,const ImRect)", "stname": "" } ], - "igIsItemClicked": [ + "igScrollToItem": [ { - "args": "(ImGuiMouseButton mouse_button)", + "args": "(ImGuiScrollFlags flags)", "argsT": [ { - "name": "mouse_button", - "type": "ImGuiMouseButton" + "name": "flags", + "type": "ImGuiScrollFlags" } ], - "argsoriginal": "(ImGuiMouseButton mouse_button=0)", - "call_args": "(mouse_button)", - "cimguiname": "igIsItemClicked", + "argsoriginal": "(ImGuiScrollFlags flags=0)", + "call_args": "(flags)", + "cimguiname": "igScrollToItem", "defaults": { - "mouse_button": "0" + "flags": "0" }, - "funcname": "IsItemClicked", - "location": "imgui:868", + "funcname": "ScrollToItem", + "location": "imgui_internal:3012", "namespace": "ImGui", - "ov_cimguiname": "igIsItemClicked", - "ret": "bool", - "signature": "(ImGuiMouseButton)", + "ov_cimguiname": "igScrollToItem", + "ret": "void", + "signature": "(ImGuiScrollFlags)", "stname": "" } ], - "igIsItemDeactivated": [ + "igScrollToRect": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsItemDeactivated", - "defaults": {}, - "funcname": "IsItemDeactivated", - "location": "imgui:872", + "args": "(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "rect", + "type": "const ImRect" + }, + { + "name": "flags", + "type": "ImGuiScrollFlags" + } + ], + "argsoriginal": "(ImGuiWindow* window,const ImRect& rect,ImGuiScrollFlags flags=0)", + "call_args": "(window,rect,flags)", + "cimguiname": "igScrollToRect", + "defaults": { + "flags": "0" + }, + "funcname": "ScrollToRect", + "location": "imgui_internal:3013", "namespace": "ImGui", - "ov_cimguiname": "igIsItemDeactivated", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igScrollToRect", + "ret": "void", + "signature": "(ImGuiWindow*,const ImRect,ImGuiScrollFlags)", "stname": "" } ], - "igIsItemDeactivatedAfterEdit": [ + "igScrollToRectEx": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsItemDeactivatedAfterEdit", - "defaults": {}, - "funcname": "IsItemDeactivatedAfterEdit", - "location": "imgui:873", + "args": "(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "rect", + "type": "const ImRect" + }, + { + "name": "flags", + "type": "ImGuiScrollFlags" + } + ], + "argsoriginal": "(ImGuiWindow* window,const ImRect& rect,ImGuiScrollFlags flags=0)", + "call_args": "(window,rect,flags)", + "cimguiname": "igScrollToRectEx", + "defaults": { + "flags": "0" + }, + "funcname": "ScrollToRectEx", + "location": "imgui_internal:3014", "namespace": "ImGui", - "ov_cimguiname": "igIsItemDeactivatedAfterEdit", - "ret": "bool", - "signature": "()", + "nonUDT": 1, + "ov_cimguiname": "igScrollToRectEx", + "ret": "void", + "signature": "(ImGuiWindow*,const ImRect,ImGuiScrollFlags)", "stname": "" } ], - "igIsItemEdited": [ + "igScrollbar": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsItemEdited", + "args": "(ImGuiAxis axis)", + "argsT": [ + { + "name": "axis", + "type": "ImGuiAxis" + } + ], + "argsoriginal": "(ImGuiAxis axis)", + "call_args": "(axis)", + "cimguiname": "igScrollbar", "defaults": {}, - "funcname": "IsItemEdited", - "location": "imgui:870", + "funcname": "Scrollbar", + "location": "imgui_internal:3355", "namespace": "ImGui", - "ov_cimguiname": "igIsItemEdited", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igScrollbar", + "ret": "void", + "signature": "(ImGuiAxis)", "stname": "" } ], - "igIsItemFocused": [ + "igScrollbarEx": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsItemFocused", + "args": "(const ImRect bb,ImGuiID id,ImGuiAxis axis,ImS64* p_scroll_v,ImS64 avail_v,ImS64 contents_v,ImDrawFlags flags)", + "argsT": [ + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "axis", + "type": "ImGuiAxis" + }, + { + "name": "p_scroll_v", + "type": "ImS64*" + }, + { + "name": "avail_v", + "type": "ImS64" + }, + { + "name": "contents_v", + "type": "ImS64" + }, + { + "name": "flags", + "type": "ImDrawFlags" + } + ], + "argsoriginal": "(const ImRect& bb,ImGuiID id,ImGuiAxis axis,ImS64* p_scroll_v,ImS64 avail_v,ImS64 contents_v,ImDrawFlags flags)", + "call_args": "(bb,id,axis,p_scroll_v,avail_v,contents_v,flags)", + "cimguiname": "igScrollbarEx", "defaults": {}, - "funcname": "IsItemFocused", - "location": "imgui:867", + "funcname": "ScrollbarEx", + "location": "imgui_internal:3356", "namespace": "ImGui", - "ov_cimguiname": "igIsItemFocused", + "ov_cimguiname": "igScrollbarEx", "ret": "bool", - "signature": "()", + "signature": "(const ImRect,ImGuiID,ImGuiAxis,ImS64*,ImS64,ImS64,ImDrawFlags)", "stname": "" } ], - "igIsItemHovered": [ + "igSelectable": [ { - "args": "(ImGuiHoveredFlags flags)", + "args": "(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size)", "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "selected", + "type": "bool" + }, { "name": "flags", - "type": "ImGuiHoveredFlags" + "type": "ImGuiSelectableFlags" + }, + { + "name": "size", + "type": "const ImVec2" } ], - "argsoriginal": "(ImGuiHoveredFlags flags=0)", - "call_args": "(flags)", - "cimguiname": "igIsItemHovered", + "argsoriginal": "(const char* label,bool selected=false,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,selected,flags,size)", + "cimguiname": "igSelectable", "defaults": { - "flags": "0" + "flags": "0", + "selected": "false", + "size": "ImVec2(0,0)" }, - "funcname": "IsItemHovered", - "location": "imgui:865", + "funcname": "Selectable", + "location": "imgui:632", "namespace": "ImGui", - "ov_cimguiname": "igIsItemHovered", + "ov_cimguiname": "igSelectable_Bool", "ret": "bool", - "signature": "(ImGuiHoveredFlags)", + "signature": "(const char*,bool,ImGuiSelectableFlags,const ImVec2)", "stname": "" - } - ], - "igIsItemToggledOpen": [ + }, { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsItemToggledOpen", - "defaults": {}, - "funcname": "IsItemToggledOpen", - "location": "imgui:874", + "args": "(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_selected", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiSelectableFlags" + }, + { + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const char* label,bool* p_selected,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))", + "call_args": "(label,p_selected,flags,size)", + "cimguiname": "igSelectable", + "defaults": { + "flags": "0", + "size": "ImVec2(0,0)" + }, + "funcname": "Selectable", + "location": "imgui:633", "namespace": "ImGui", - "ov_cimguiname": "igIsItemToggledOpen", + "ov_cimguiname": "igSelectable_BoolPtr", "ret": "bool", - "signature": "()", + "signature": "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)", "stname": "" } ], - "igIsItemVisible": [ + "igSeparator": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igIsItemVisible", + "cimguiname": "igSeparator", "defaults": {}, - "funcname": "IsItemVisible", - "location": "imgui:869", + "funcname": "Separator", + "location": "imgui:447", "namespace": "ImGui", - "ov_cimguiname": "igIsItemVisible", - "ret": "bool", + "ov_cimguiname": "igSeparator", + "ret": "void", "signature": "()", "stname": "" } ], - "igIsKeyDown": [ + "igSeparatorEx": [ { - "args": "(ImGuiKey key)", + "args": "(ImGuiSeparatorFlags flags)", "argsT": [ { - "name": "key", - "type": "ImGuiKey" + "name": "flags", + "type": "ImGuiSeparatorFlags" } ], - "argsoriginal": "(ImGuiKey key)", - "call_args": "(key)", - "cimguiname": "igIsKeyDown", + "argsoriginal": "(ImGuiSeparatorFlags flags)", + "call_args": "(flags)", + "cimguiname": "igSeparatorEx", "defaults": {}, - "funcname": "IsKeyDown", - "location": "imgui:922", + "funcname": "SeparatorEx", + "location": "imgui_internal:3362", "namespace": "ImGui", - "ov_cimguiname": "igIsKeyDown", - "ret": "bool", - "signature": "(ImGuiKey)", + "ov_cimguiname": "igSeparatorEx", + "ret": "void", + "signature": "(ImGuiSeparatorFlags)", "stname": "" } ], - "igIsKeyPressed": [ + "igSetActiveID": [ { - "args": "(ImGuiKey key,bool repeat)", + "args": "(ImGuiID id,ImGuiWindow* window)", "argsT": [ { - "name": "key", - "type": "ImGuiKey" + "name": "id", + "type": "ImGuiID" }, { - "name": "repeat", - "type": "bool" + "name": "window", + "type": "ImGuiWindow*" } ], - "argsoriginal": "(ImGuiKey key,bool repeat=true)", - "call_args": "(key,repeat)", - "cimguiname": "igIsKeyPressed", - "defaults": { - "repeat": "true" - }, - "funcname": "IsKeyPressed", - "location": "imgui:923", + "argsoriginal": "(ImGuiID id,ImGuiWindow* window)", + "call_args": "(id,window)", + "cimguiname": "igSetActiveID", + "defaults": {}, + "funcname": "SetActiveID", + "location": "imgui_internal:3025", "namespace": "ImGui", - "ov_cimguiname": "igIsKeyPressed", - "ret": "bool", - "signature": "(ImGuiKey,bool)", + "ov_cimguiname": "igSetActiveID", + "ret": "void", + "signature": "(ImGuiID,ImGuiWindow*)", "stname": "" } ], - "igIsKeyReleased": [ + "igSetActiveIdUsingAllKeyboardKeys": [ { - "args": "(ImGuiKey key)", - "argsT": [ - { - "name": "key", - "type": "ImGuiKey" - } - ], - "argsoriginal": "(ImGuiKey key)", - "call_args": "(key)", - "cimguiname": "igIsKeyReleased", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetActiveIdUsingAllKeyboardKeys", "defaults": {}, - "funcname": "IsKeyReleased", - "location": "imgui:924", + "funcname": "SetActiveIdUsingAllKeyboardKeys", + "location": "imgui_internal:3124", "namespace": "ImGui", - "ov_cimguiname": "igIsKeyReleased", - "ret": "bool", - "signature": "(ImGuiKey)", + "ov_cimguiname": "igSetActiveIdUsingAllKeyboardKeys", + "ret": "void", + "signature": "()", "stname": "" } ], - "igIsMouseClicked": [ + "igSetAllocatorFunctions": [ { - "args": "(ImGuiMouseButton button,bool repeat)", + "args": "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)", "argsT": [ { - "name": "button", - "type": "ImGuiMouseButton" + "name": "alloc_func", + "type": "ImGuiMemAllocFunc" }, { - "name": "repeat", - "type": "bool" + "name": "free_func", + "type": "ImGuiMemFreeFunc" + }, + { + "name": "user_data", + "type": "void*" } ], - "argsoriginal": "(ImGuiMouseButton button,bool repeat=false)", - "call_args": "(button,repeat)", - "cimguiname": "igIsMouseClicked", + "argsoriginal": "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data=((void*)0))", + "call_args": "(alloc_func,free_func,user_data)", + "cimguiname": "igSetAllocatorFunctions", "defaults": { - "repeat": "false" + "user_data": "NULL" }, - "funcname": "IsMouseClicked", - "location": "imgui:934", + "funcname": "SetAllocatorFunctions", + "location": "imgui:972", "namespace": "ImGui", - "ov_cimguiname": "igIsMouseClicked", - "ret": "bool", - "signature": "(ImGuiMouseButton,bool)", + "ov_cimguiname": "igSetAllocatorFunctions", + "ret": "void", + "signature": "(ImGuiMemAllocFunc,ImGuiMemFreeFunc,void*)", "stname": "" } ], - "igIsMouseDoubleClicked": [ + "igSetClipboardText": [ { - "args": "(ImGuiMouseButton button)", + "args": "(const char* text)", "argsT": [ { - "name": "button", - "type": "ImGuiMouseButton" + "name": "text", + "type": "const char*" } ], - "argsoriginal": "(ImGuiMouseButton button)", - "call_args": "(button)", - "cimguiname": "igIsMouseDoubleClicked", + "argsoriginal": "(const char* text)", + "call_args": "(text)", + "cimguiname": "igSetClipboardText", "defaults": {}, - "funcname": "IsMouseDoubleClicked", - "location": "imgui:936", + "funcname": "SetClipboardText", + "location": "imgui:953", "namespace": "ImGui", - "ov_cimguiname": "igIsMouseDoubleClicked", - "ret": "bool", - "signature": "(ImGuiMouseButton)", + "ov_cimguiname": "igSetClipboardText", + "ret": "void", + "signature": "(const char*)", "stname": "" } ], - "igIsMouseDown": [ + "igSetColorEditOptions": [ { - "args": "(ImGuiMouseButton button)", + "args": "(ImGuiColorEditFlags flags)", "argsT": [ { - "name": "button", - "type": "ImGuiMouseButton" + "name": "flags", + "type": "ImGuiColorEditFlags" } ], - "argsoriginal": "(ImGuiMouseButton button)", - "call_args": "(button)", - "cimguiname": "igIsMouseDown", + "argsoriginal": "(ImGuiColorEditFlags flags)", + "call_args": "(flags)", + "cimguiname": "igSetColorEditOptions", "defaults": {}, - "funcname": "IsMouseDown", - "location": "imgui:933", + "funcname": "SetColorEditOptions", + "location": "imgui:607", "namespace": "ImGui", - "ov_cimguiname": "igIsMouseDown", - "ret": "bool", - "signature": "(ImGuiMouseButton)", + "ov_cimguiname": "igSetColorEditOptions", + "ret": "void", + "signature": "(ImGuiColorEditFlags)", "stname": "" } ], - "igIsMouseDragging": [ + "igSetColumnOffset": [ { - "args": "(ImGuiMouseButton button,float lock_threshold)", + "args": "(int column_index,float offset_x)", "argsT": [ { - "name": "button", - "type": "ImGuiMouseButton" + "name": "column_index", + "type": "int" }, { - "name": "lock_threshold", + "name": "offset_x", "type": "float" } ], - "argsoriginal": "(ImGuiMouseButton button,float lock_threshold=-1.0f)", - "call_args": "(button,lock_threshold)", - "cimguiname": "igIsMouseDragging", - "defaults": { - "lock_threshold": "-1.0f" - }, - "funcname": "IsMouseDragging", - "location": "imgui:943", + "argsoriginal": "(int column_index,float offset_x)", + "call_args": "(column_index,offset_x)", + "cimguiname": "igSetColumnOffset", + "defaults": {}, + "funcname": "SetColumnOffset", + "location": "imgui:790", "namespace": "ImGui", - "ov_cimguiname": "igIsMouseDragging", - "ret": "bool", - "signature": "(ImGuiMouseButton,float)", + "ov_cimguiname": "igSetColumnOffset", + "ret": "void", + "signature": "(int,float)", "stname": "" } ], - "igIsMouseHoveringRect": [ + "igSetColumnWidth": [ { - "args": "(const ImVec2 r_min,const ImVec2 r_max,bool clip)", + "args": "(int column_index,float width)", "argsT": [ { - "name": "r_min", - "type": "const ImVec2" - }, - { - "name": "r_max", - "type": "const ImVec2" + "name": "column_index", + "type": "int" }, { - "name": "clip", - "type": "bool" + "name": "width", + "type": "float" } ], - "argsoriginal": "(const ImVec2& r_min,const ImVec2& r_max,bool clip=true)", - "call_args": "(r_min,r_max,clip)", - "cimguiname": "igIsMouseHoveringRect", - "defaults": { - "clip": "true" - }, - "funcname": "IsMouseHoveringRect", - "location": "imgui:938", + "argsoriginal": "(int column_index,float width)", + "call_args": "(column_index,width)", + "cimguiname": "igSetColumnWidth", + "defaults": {}, + "funcname": "SetColumnWidth", + "location": "imgui:788", "namespace": "ImGui", - "ov_cimguiname": "igIsMouseHoveringRect", - "ret": "bool", - "signature": "(const ImVec2,const ImVec2,bool)", + "ov_cimguiname": "igSetColumnWidth", + "ret": "void", + "signature": "(int,float)", "stname": "" } ], - "igIsMousePosValid": [ + "igSetCurrentContext": [ { - "args": "(const ImVec2* mouse_pos)", + "args": "(ImGuiContext* ctx)", "argsT": [ { - "name": "mouse_pos", - "type": "const ImVec2*" + "name": "ctx", + "type": "ImGuiContext*" } ], - "argsoriginal": "(const ImVec2* mouse_pos=((void*)0))", - "call_args": "(mouse_pos)", - "cimguiname": "igIsMousePosValid", - "defaults": { - "mouse_pos": "NULL" - }, - "funcname": "IsMousePosValid", - "location": "imgui:939", + "argsoriginal": "(ImGuiContext* ctx)", + "call_args": "(ctx)", + "cimguiname": "igSetCurrentContext", + "defaults": {}, + "funcname": "SetCurrentContext", + "location": "imgui:297", "namespace": "ImGui", - "ov_cimguiname": "igIsMousePosValid", - "ret": "bool", - "signature": "(const ImVec2*)", + "ov_cimguiname": "igSetCurrentContext", + "ret": "void", + "signature": "(ImGuiContext*)", "stname": "" } ], - "igIsMouseReleased": [ + "igSetCurrentFont": [ { - "args": "(ImGuiMouseButton button)", + "args": "(ImFont* font)", "argsT": [ { - "name": "button", - "type": "ImGuiMouseButton" + "name": "font", + "type": "ImFont*" } ], - "argsoriginal": "(ImGuiMouseButton button)", - "call_args": "(button)", - "cimguiname": "igIsMouseReleased", + "argsoriginal": "(ImFont* font)", + "call_args": "(font)", + "cimguiname": "igSetCurrentFont", "defaults": {}, - "funcname": "IsMouseReleased", - "location": "imgui:935", + "funcname": "SetCurrentFont", + "location": "imgui_internal:2960", "namespace": "ImGui", - "ov_cimguiname": "igIsMouseReleased", - "ret": "bool", - "signature": "(ImGuiMouseButton)", + "ov_cimguiname": "igSetCurrentFont", + "ret": "void", + "signature": "(ImFont*)", "stname": "" } ], - "igIsPopupOpen": [ + "igSetCurrentViewport": [ { - "args": "(const char* str_id,ImGuiPopupFlags flags)", + "args": "(ImGuiWindow* window,ImGuiViewportP* viewport)", "argsT": [ { - "name": "str_id", - "type": "const char*" + "name": "window", + "type": "ImGuiWindow*" }, { - "name": "flags", - "type": "ImGuiPopupFlags" + "name": "viewport", + "type": "ImGuiViewportP*" } ], - "argsoriginal": "(const char* str_id,ImGuiPopupFlags flags=0)", - "call_args": "(str_id,flags)", - "cimguiname": "igIsPopupOpen", - "defaults": { - "flags": "0" - }, - "funcname": "IsPopupOpen", - "location": "imgui:723", + "argsoriginal": "(ImGuiWindow* window,ImGuiViewportP* viewport)", + "call_args": "(window,viewport)", + "cimguiname": "igSetCurrentViewport", + "defaults": {}, + "funcname": "SetCurrentViewport", + "location": "imgui_internal:2986", "namespace": "ImGui", - "ov_cimguiname": "igIsPopupOpen", - "ret": "bool", - "signature": "(const char*,ImGuiPopupFlags)", + "ov_cimguiname": "igSetCurrentViewport", + "ret": "void", + "signature": "(ImGuiWindow*,ImGuiViewportP*)", "stname": "" } ], - "igIsRectVisible": [ + "igSetCursorPos": [ { - "args": "(const ImVec2 size)", + "args": "(const ImVec2 local_pos)", "argsT": [ { - "name": "size", + "name": "local_pos", "type": "const ImVec2" } ], - "argsoriginal": "(const ImVec2& size)", - "call_args": "(size)", - "cimguiname": "igIsRectVisible", + "argsoriginal": "(const ImVec2& local_pos)", + "call_args": "(local_pos)", + "cimguiname": "igSetCursorPos", "defaults": {}, - "funcname": "IsRectVisible", - "location": "imgui:896", + "funcname": "SetCursorPos", + "location": "imgui:459", "namespace": "ImGui", - "ov_cimguiname": "igIsRectVisible_Nil", - "ret": "bool", + "ov_cimguiname": "igSetCursorPos", + "ret": "void", "signature": "(const ImVec2)", "stname": "" - }, + } + ], + "igSetCursorPosX": [ { - "args": "(const ImVec2 rect_min,const ImVec2 rect_max)", + "args": "(float local_x)", "argsT": [ { - "name": "rect_min", - "type": "const ImVec2" - }, - { - "name": "rect_max", - "type": "const ImVec2" + "name": "local_x", + "type": "float" } ], - "argsoriginal": "(const ImVec2& rect_min,const ImVec2& rect_max)", - "call_args": "(rect_min,rect_max)", - "cimguiname": "igIsRectVisible", - "defaults": {}, - "funcname": "IsRectVisible", - "location": "imgui:897", - "namespace": "ImGui", - "ov_cimguiname": "igIsRectVisible_Vec2", - "ret": "bool", - "signature": "(const ImVec2,const ImVec2)", - "stname": "" - } - ], - "igIsWindowAppearing": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsWindowAppearing", - "defaults": {}, - "funcname": "IsWindowAppearing", - "location": "imgui:353", - "namespace": "ImGui", - "ov_cimguiname": "igIsWindowAppearing", - "ret": "bool", - "signature": "()", - "stname": "" - } - ], - "igIsWindowCollapsed": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsWindowCollapsed", + "argsoriginal": "(float local_x)", + "call_args": "(local_x)", + "cimguiname": "igSetCursorPosX", "defaults": {}, - "funcname": "IsWindowCollapsed", - "location": "imgui:354", + "funcname": "SetCursorPosX", + "location": "imgui:460", "namespace": "ImGui", - "ov_cimguiname": "igIsWindowCollapsed", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igSetCursorPosX", + "ret": "void", + "signature": "(float)", "stname": "" } ], - "igIsWindowDocked": [ + "igSetCursorPosY": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igIsWindowDocked", + "args": "(float local_y)", + "argsT": [ + { + "name": "local_y", + "type": "float" + } + ], + "argsoriginal": "(float local_y)", + "call_args": "(local_y)", + "cimguiname": "igSetCursorPosY", "defaults": {}, - "funcname": "IsWindowDocked", - "location": "imgui:820", + "funcname": "SetCursorPosY", + "location": "imgui:461", "namespace": "ImGui", - "ov_cimguiname": "igIsWindowDocked", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igSetCursorPosY", + "ret": "void", + "signature": "(float)", "stname": "" } ], - "igIsWindowFocused": [ + "igSetCursorScreenPos": [ { - "args": "(ImGuiFocusedFlags flags)", + "args": "(const ImVec2 pos)", "argsT": [ { - "name": "flags", - "type": "ImGuiFocusedFlags" + "name": "pos", + "type": "const ImVec2" } ], - "argsoriginal": "(ImGuiFocusedFlags flags=0)", - "call_args": "(flags)", - "cimguiname": "igIsWindowFocused", - "defaults": { - "flags": "0" - }, - "funcname": "IsWindowFocused", - "location": "imgui:355", + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "igSetCursorScreenPos", + "defaults": {}, + "funcname": "SetCursorScreenPos", + "location": "imgui:464", "namespace": "ImGui", - "ov_cimguiname": "igIsWindowFocused", - "ret": "bool", - "signature": "(ImGuiFocusedFlags)", + "ov_cimguiname": "igSetCursorScreenPos", + "ret": "void", + "signature": "(const ImVec2)", "stname": "" } ], - "igIsWindowHovered": [ + "igSetDragDropPayload": [ { - "args": "(ImGuiHoveredFlags flags)", + "args": "(const char* type,const void* data,size_t sz,ImGuiCond cond)", "argsT": [ { - "name": "flags", - "type": "ImGuiHoveredFlags" + "name": "type", + "type": "const char*" + }, + { + "name": "data", + "type": "const void*" + }, + { + "name": "sz", + "type": "size_t" + }, + { + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(ImGuiHoveredFlags flags=0)", - "call_args": "(flags)", - "cimguiname": "igIsWindowHovered", + "argsoriginal": "(const char* type,const void* data,size_t sz,ImGuiCond cond=0)", + "call_args": "(type,data,sz,cond)", + "cimguiname": "igSetDragDropPayload", "defaults": { - "flags": "0" + "cond": "0" }, - "funcname": "IsWindowHovered", - "location": "imgui:356", + "funcname": "SetDragDropPayload", + "location": "imgui:838", "namespace": "ImGui", - "ov_cimguiname": "igIsWindowHovered", + "ov_cimguiname": "igSetDragDropPayload", "ret": "bool", - "signature": "(ImGuiHoveredFlags)", + "signature": "(const char*,const void*,size_t,ImGuiCond)", "stname": "" } ], - "igLabelText": [ + "igSetFocusID": [ { - "args": "(const char* label,const char* fmt,...)", + "args": "(ImGuiID id,ImGuiWindow* window)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "fmt", - "type": "const char*" + "name": "id", + "type": "ImGuiID" }, { - "name": "...", - "type": "..." + "name": "window", + "type": "ImGuiWindow*" } ], - "argsoriginal": "(const char* label,const char* fmt,...)", - "call_args": "(label,fmt,...)", - "cimguiname": "igLabelText", + "argsoriginal": "(ImGuiID id,ImGuiWindow* window)", + "call_args": "(id,window)", + "cimguiname": "igSetFocusID", "defaults": {}, - "funcname": "LabelText", - "isvararg": "...)", - "location": "imgui:501", + "funcname": "SetFocusID", + "location": "imgui_internal:3026", "namespace": "ImGui", - "ov_cimguiname": "igLabelText", + "ov_cimguiname": "igSetFocusID", "ret": "void", - "signature": "(const char*,const char*,...)", + "signature": "(ImGuiID,ImGuiWindow*)", "stname": "" } ], - "igLabelTextV": [ + "igSetHoveredID": [ { - "args": "(const char* label,const char* fmt,va_list args)", + "args": "(ImGuiID id)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "fmt", - "type": "const char*" - }, - { - "name": "args", - "type": "va_list" + "name": "id", + "type": "ImGuiID" } ], - "argsoriginal": "(const char* label,const char* fmt,va_list args)", - "call_args": "(label,fmt,args)", - "cimguiname": "igLabelTextV", + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igSetHoveredID", "defaults": {}, - "funcname": "LabelTextV", - "location": "imgui:502", + "funcname": "SetHoveredID", + "location": "imgui_internal:3029", "namespace": "ImGui", - "ov_cimguiname": "igLabelTextV", + "ov_cimguiname": "igSetHoveredID", "ret": "void", - "signature": "(const char*,const char*,va_list)", + "signature": "(ImGuiID)", "stname": "" } ], - "igListBox": [ + "igSetItemAllowOverlap": [ { - "args": "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetItemAllowOverlap", + "defaults": {}, + "funcname": "SetItemAllowOverlap", + "location": "imgui:881", + "namespace": "ImGui", + "ov_cimguiname": "igSetItemAllowOverlap", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetItemDefaultFocus": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetItemDefaultFocus", + "defaults": {}, + "funcname": "SetItemDefaultFocus", + "location": "imgui:859", + "namespace": "ImGui", + "ov_cimguiname": "igSetItemDefaultFocus", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igSetItemKeyOwner": [ + { + "args": "(ImGuiKey key,ImGuiInputFlags flags)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "current_item", - "type": "int*" - }, - { - "name": "items", - "type": "const char* const[]" - }, - { - "name": "items_count", - "type": "int" + "name": "key", + "type": "ImGuiKey" }, { - "name": "height_in_items", - "type": "int" + "name": "flags", + "type": "ImGuiInputFlags" } ], - "argsoriginal": "(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items=-1)", - "call_args": "(label,current_item,items,items_count,height_in_items)", - "cimguiname": "igListBox", + "argsoriginal": "(ImGuiKey key,ImGuiInputFlags flags=0)", + "call_args": "(key,flags)", + "cimguiname": "igSetItemKeyOwner", "defaults": { - "height_in_items": "-1" + "flags": "0" }, - "funcname": "ListBox", - "location": "imgui:643", + "funcname": "SetItemKeyOwner", + "location": "imgui_internal:3140", "namespace": "ImGui", - "ov_cimguiname": "igListBox_Str_arr", - "ret": "bool", - "signature": "(const char*,int*,const char* const[],int,int)", + "ov_cimguiname": "igSetItemKeyOwner", + "ret": "void", + "signature": "(ImGuiKey,ImGuiInputFlags)", "stname": "" - }, + } + ], + "igSetKeyOwner": [ { - "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items)", + "args": "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "current_item", - "type": "int*" - }, - { - "name": "items_getter", - "ret": "bool", - "signature": "(void* data,int idx,const char** out_text)", - "type": "bool(*)(void* data,int idx,const char** out_text)" - }, - { - "name": "data", - "type": "void*" + "name": "key", + "type": "ImGuiKey" }, { - "name": "items_count", - "type": "int" + "name": "owner_id", + "type": "ImGuiID" }, { - "name": "height_in_items", - "type": "int" + "name": "flags", + "type": "ImGuiInputFlags" } ], - "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items=-1)", - "call_args": "(label,current_item,items_getter,data,items_count,height_in_items)", - "cimguiname": "igListBox", + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags=0)", + "call_args": "(key,owner_id,flags)", + "cimguiname": "igSetKeyOwner", "defaults": { - "height_in_items": "-1" + "flags": "0" }, - "funcname": "ListBox", - "location": "imgui:644", + "funcname": "SetKeyOwner", + "location": "imgui_internal:3139", "namespace": "ImGui", - "ov_cimguiname": "igListBox_FnBoolPtr", - "ret": "bool", - "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", + "ov_cimguiname": "igSetKeyOwner", + "ret": "void", + "signature": "(ImGuiKey,ImGuiID,ImGuiInputFlags)", "stname": "" } ], - "igLoadIniSettingsFromDisk": [ + "igSetKeyboardFocusHere": [ { - "args": "(const char* ini_filename)", + "args": "(int offset)", "argsT": [ { - "name": "ini_filename", - "type": "const char*" + "name": "offset", + "type": "int" } ], - "argsoriginal": "(const char* ini_filename)", - "call_args": "(ini_filename)", - "cimguiname": "igLoadIniSettingsFromDisk", - "defaults": {}, - "funcname": "LoadIniSettingsFromDisk", - "location": "imgui:959", + "argsoriginal": "(int offset=0)", + "call_args": "(offset)", + "cimguiname": "igSetKeyboardFocusHere", + "defaults": { + "offset": "0" + }, + "funcname": "SetKeyboardFocusHere", + "location": "imgui:860", "namespace": "ImGui", - "ov_cimguiname": "igLoadIniSettingsFromDisk", + "ov_cimguiname": "igSetKeyboardFocusHere", "ret": "void", - "signature": "(const char*)", + "signature": "(int)", "stname": "" } ], - "igLoadIniSettingsFromMemory": [ + "igSetLastItemData": [ { - "args": "(const char* ini_data,size_t ini_size)", + "args": "(ImGuiID item_id,ImGuiItemFlags in_flags,ImGuiItemStatusFlags status_flags,const ImRect item_rect)", "argsT": [ { - "name": "ini_data", - "type": "const char*" + "name": "item_id", + "type": "ImGuiID" }, { - "name": "ini_size", - "type": "size_t" + "name": "in_flags", + "type": "ImGuiItemFlags" + }, + { + "name": "status_flags", + "type": "ImGuiItemStatusFlags" + }, + { + "name": "item_rect", + "type": "const ImRect" } ], - "argsoriginal": "(const char* ini_data,size_t ini_size=0)", - "call_args": "(ini_data,ini_size)", - "cimguiname": "igLoadIniSettingsFromMemory", - "defaults": { - "ini_size": "0" - }, - "funcname": "LoadIniSettingsFromMemory", - "location": "imgui:960", + "argsoriginal": "(ImGuiID item_id,ImGuiItemFlags in_flags,ImGuiItemStatusFlags status_flags,const ImRect& item_rect)", + "call_args": "(item_id,in_flags,status_flags,item_rect)", + "cimguiname": "igSetLastItemData", + "defaults": {}, + "funcname": "SetLastItemData", + "location": "imgui_internal:3041", "namespace": "ImGui", - "ov_cimguiname": "igLoadIniSettingsFromMemory", + "ov_cimguiname": "igSetLastItemData", "ret": "void", - "signature": "(const char*,size_t)", + "signature": "(ImGuiID,ImGuiItemFlags,ImGuiItemStatusFlags,const ImRect)", "stname": "" } ], - "igLogButtons": [ + "igSetMouseCursor": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igLogButtons", + "args": "(ImGuiMouseCursor cursor_type)", + "argsT": [ + { + "name": "cursor_type", + "type": "ImGuiMouseCursor" + } + ], + "argsoriginal": "(ImGuiMouseCursor cursor_type)", + "call_args": "(cursor_type)", + "cimguiname": "igSetMouseCursor", "defaults": {}, - "funcname": "LogButtons", - "location": "imgui:828", + "funcname": "SetMouseCursor", + "location": "imgui:947", "namespace": "ImGui", - "ov_cimguiname": "igLogButtons", + "ov_cimguiname": "igSetMouseCursor", "ret": "void", - "signature": "()", + "signature": "(ImGuiMouseCursor)", "stname": "" } ], - "igLogFinish": [ + "igSetNavID": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igLogFinish", + "args": "(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "nav_layer", + "type": "ImGuiNavLayer" + }, + { + "name": "focus_scope_id", + "type": "ImGuiID" + }, + { + "name": "rect_rel", + "type": "const ImRect" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect& rect_rel)", + "call_args": "(id,nav_layer,focus_scope_id,rect_rel)", + "cimguiname": "igSetNavID", "defaults": {}, - "funcname": "LogFinish", - "location": "imgui:827", + "funcname": "SetNavID", + "location": "imgui_internal:3096", "namespace": "ImGui", - "ov_cimguiname": "igLogFinish", + "ov_cimguiname": "igSetNavID", "ret": "void", - "signature": "()", + "signature": "(ImGuiID,ImGuiNavLayer,ImGuiID,const ImRect)", "stname": "" } ], - "igLogText": [ + "igSetNavWindow": [ { - "args": "(const char* fmt,...)", + "args": "(ImGuiWindow* window)", "argsT": [ { - "name": "fmt", - "type": "const char*" - }, - { - "name": "...", - "type": "..." + "name": "window", + "type": "ImGuiWindow*" } ], - "argsoriginal": "(const char* fmt,...)", - "call_args": "(fmt,...)", - "cimguiname": "igLogText", + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igSetNavWindow", "defaults": {}, - "funcname": "LogText", - "isvararg": "...)", - "location": "imgui:829", - "manual": true, + "funcname": "SetNavWindow", + "location": "imgui_internal:3095", "namespace": "ImGui", - "ov_cimguiname": "igLogText", + "ov_cimguiname": "igSetNavWindow", "ret": "void", - "signature": "(const char*,...)", + "signature": "(ImGuiWindow*)", "stname": "" } ], - "igLogTextV": [ + "igSetNextFrameWantCaptureKeyboard": [ { - "args": "(const char* fmt,va_list args)", + "args": "(bool want_capture_keyboard)", "argsT": [ { - "name": "fmt", - "type": "const char*" - }, - { - "name": "args", - "type": "va_list" + "name": "want_capture_keyboard", + "type": "bool" } ], - "argsoriginal": "(const char* fmt,va_list args)", - "call_args": "(fmt,args)", - "cimguiname": "igLogTextV", + "argsoriginal": "(bool want_capture_keyboard)", + "call_args": "(want_capture_keyboard)", + "cimguiname": "igSetNextFrameWantCaptureKeyboard", "defaults": {}, - "funcname": "LogTextV", - "location": "imgui:830", + "funcname": "SetNextFrameWantCaptureKeyboard", + "location": "imgui:927", "namespace": "ImGui", - "ov_cimguiname": "igLogTextV", + "ov_cimguiname": "igSetNextFrameWantCaptureKeyboard", "ret": "void", - "signature": "(const char*,va_list)", + "signature": "(bool)", "stname": "" } ], - "igLogToClipboard": [ + "igSetNextFrameWantCaptureMouse": [ { - "args": "(int auto_open_depth)", + "args": "(bool want_capture_mouse)", "argsT": [ { - "name": "auto_open_depth", - "type": "int" + "name": "want_capture_mouse", + "type": "bool" } ], - "argsoriginal": "(int auto_open_depth=-1)", - "call_args": "(auto_open_depth)", - "cimguiname": "igLogToClipboard", - "defaults": { - "auto_open_depth": "-1" - }, - "funcname": "LogToClipboard", - "location": "imgui:826", + "argsoriginal": "(bool want_capture_mouse)", + "call_args": "(want_capture_mouse)", + "cimguiname": "igSetNextFrameWantCaptureMouse", + "defaults": {}, + "funcname": "SetNextFrameWantCaptureMouse", + "location": "imgui:948", "namespace": "ImGui", - "ov_cimguiname": "igLogToClipboard", + "ov_cimguiname": "igSetNextFrameWantCaptureMouse", "ret": "void", - "signature": "(int)", + "signature": "(bool)", "stname": "" } ], - "igLogToFile": [ + "igSetNextItemOpen": [ { - "args": "(int auto_open_depth,const char* filename)", + "args": "(bool is_open,ImGuiCond cond)", "argsT": [ { - "name": "auto_open_depth", - "type": "int" + "name": "is_open", + "type": "bool" }, { - "name": "filename", - "type": "const char*" + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(int auto_open_depth=-1,const char* filename=((void*)0))", - "call_args": "(auto_open_depth,filename)", - "cimguiname": "igLogToFile", + "argsoriginal": "(bool is_open,ImGuiCond cond=0)", + "call_args": "(is_open,cond)", + "cimguiname": "igSetNextItemOpen", "defaults": { - "auto_open_depth": "-1", - "filename": "NULL" + "cond": "0" }, - "funcname": "LogToFile", - "location": "imgui:825", + "funcname": "SetNextItemOpen", + "location": "imgui:627", "namespace": "ImGui", - "ov_cimguiname": "igLogToFile", + "ov_cimguiname": "igSetNextItemOpen", "ret": "void", - "signature": "(int,const char*)", + "signature": "(bool,ImGuiCond)", "stname": "" } ], - "igLogToTTY": [ + "igSetNextItemWidth": [ { - "args": "(int auto_open_depth)", + "args": "(float item_width)", "argsT": [ { - "name": "auto_open_depth", - "type": "int" + "name": "item_width", + "type": "float" } ], - "argsoriginal": "(int auto_open_depth=-1)", - "call_args": "(auto_open_depth)", - "cimguiname": "igLogToTTY", - "defaults": { - "auto_open_depth": "-1" - }, - "funcname": "LogToTTY", - "location": "imgui:824", + "argsoriginal": "(float item_width)", + "call_args": "(item_width)", + "cimguiname": "igSetNextItemWidth", + "defaults": {}, + "funcname": "SetNextItemWidth", + "location": "imgui:425", "namespace": "ImGui", - "ov_cimguiname": "igLogToTTY", + "ov_cimguiname": "igSetNextItemWidth", "ret": "void", - "signature": "(int)", + "signature": "(float)", "stname": "" } ], - "igMemAlloc": [ + "igSetNextWindowBgAlpha": [ { - "args": "(size_t size)", + "args": "(float alpha)", "argsT": [ { - "name": "size", - "type": "size_t" + "name": "alpha", + "type": "float" } ], - "argsoriginal": "(size_t size)", - "call_args": "(size)", - "cimguiname": "igMemAlloc", + "argsoriginal": "(float alpha)", + "call_args": "(alpha)", + "cimguiname": "igSetNextWindowBgAlpha", "defaults": {}, - "funcname": "MemAlloc", - "location": "imgui:974", + "funcname": "SetNextWindowBgAlpha", + "location": "imgui:374", "namespace": "ImGui", - "ov_cimguiname": "igMemAlloc", - "ret": "void*", - "signature": "(size_t)", + "ov_cimguiname": "igSetNextWindowBgAlpha", + "ret": "void", + "signature": "(float)", "stname": "" } ], - "igMemFree": [ + "igSetNextWindowClass": [ { - "args": "(void* ptr)", + "args": "(const ImGuiWindowClass* window_class)", "argsT": [ { - "name": "ptr", - "type": "void*" + "name": "window_class", + "type": "const ImGuiWindowClass*" } ], - "argsoriginal": "(void* ptr)", - "call_args": "(ptr)", - "cimguiname": "igMemFree", + "argsoriginal": "(const ImGuiWindowClass* window_class)", + "call_args": "(window_class)", + "cimguiname": "igSetNextWindowClass", "defaults": {}, - "funcname": "MemFree", - "location": "imgui:975", + "funcname": "SetNextWindowClass", + "location": "imgui:818", "namespace": "ImGui", - "ov_cimguiname": "igMemFree", + "ov_cimguiname": "igSetNextWindowClass", "ret": "void", - "signature": "(void*)", + "signature": "(const ImGuiWindowClass*)", "stname": "" } ], - "igMenuItem": [ + "igSetNextWindowCollapsed": [ { - "args": "(const char* label,const char* shortcut,bool selected,bool enabled)", + "args": "(bool collapsed,ImGuiCond cond)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "shortcut", - "type": "const char*" - }, - { - "name": "selected", + "name": "collapsed", "type": "bool" }, { - "name": "enabled", - "type": "bool" + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(const char* label,const char* shortcut=((void*)0),bool selected=false,bool enabled=true)", - "call_args": "(label,shortcut,selected,enabled)", - "cimguiname": "igMenuItem", + "argsoriginal": "(bool collapsed,ImGuiCond cond=0)", + "call_args": "(collapsed,cond)", + "cimguiname": "igSetNextWindowCollapsed", "defaults": { - "enabled": "true", - "selected": "false", - "shortcut": "NULL" + "cond": "0" }, - "funcname": "MenuItem", - "location": "imgui:671", + "funcname": "SetNextWindowCollapsed", + "location": "imgui:371", "namespace": "ImGui", - "ov_cimguiname": "igMenuItem_Bool", - "ret": "bool", - "signature": "(const char*,const char*,bool,bool)", + "ov_cimguiname": "igSetNextWindowCollapsed", + "ret": "void", + "signature": "(bool,ImGuiCond)", "stname": "" - }, + } + ], + "igSetNextWindowContentSize": [ { - "args": "(const char* label,const char* shortcut,bool* p_selected,bool enabled)", + "args": "(const ImVec2 size)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "shortcut", - "type": "const char*" - }, + "name": "size", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& size)", + "call_args": "(size)", + "cimguiname": "igSetNextWindowContentSize", + "defaults": {}, + "funcname": "SetNextWindowContentSize", + "location": "imgui:370", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextWindowContentSize", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], + "igSetNextWindowDockID": [ + { + "args": "(ImGuiID dock_id,ImGuiCond cond)", + "argsT": [ { - "name": "p_selected", - "type": "bool*" + "name": "dock_id", + "type": "ImGuiID" }, { - "name": "enabled", - "type": "bool" + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(const char* label,const char* shortcut,bool* p_selected,bool enabled=true)", - "call_args": "(label,shortcut,p_selected,enabled)", - "cimguiname": "igMenuItem", + "argsoriginal": "(ImGuiID dock_id,ImGuiCond cond=0)", + "call_args": "(dock_id,cond)", + "cimguiname": "igSetNextWindowDockID", "defaults": { - "enabled": "true" + "cond": "0" }, - "funcname": "MenuItem", - "location": "imgui:672", + "funcname": "SetNextWindowDockID", + "location": "imgui:817", "namespace": "ImGui", - "ov_cimguiname": "igMenuItem_BoolPtr", - "ret": "bool", - "signature": "(const char*,const char*,bool*,bool)", + "ov_cimguiname": "igSetNextWindowDockID", + "ret": "void", + "signature": "(ImGuiID,ImGuiCond)", "stname": "" } ], - "igNewFrame": [ + "igSetNextWindowFocus": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igNewFrame", + "cimguiname": "igSetNextWindowFocus", "defaults": {}, - "funcname": "NewFrame", - "location": "imgui:302", + "funcname": "SetNextWindowFocus", + "location": "imgui:372", "namespace": "ImGui", - "ov_cimguiname": "igNewFrame", + "ov_cimguiname": "igSetNextWindowFocus", "ret": "void", "signature": "()", "stname": "" } ], - "igNewLine": [ + "igSetNextWindowPos": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igNewLine", - "defaults": {}, - "funcname": "NewLine", - "location": "imgui:449", + "args": "(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot)", + "argsT": [ + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" + }, + { + "name": "pivot", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos,ImGuiCond cond=0,const ImVec2& pivot=ImVec2(0,0))", + "call_args": "(pos,cond,pivot)", + "cimguiname": "igSetNextWindowPos", + "defaults": { + "cond": "0", + "pivot": "ImVec2(0,0)" + }, + "funcname": "SetNextWindowPos", + "location": "imgui:367", "namespace": "ImGui", - "ov_cimguiname": "igNewLine", + "ov_cimguiname": "igSetNextWindowPos", "ret": "void", - "signature": "()", + "signature": "(const ImVec2,ImGuiCond,const ImVec2)", "stname": "" } ], - "igNextColumn": [ + "igSetNextWindowScroll": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igNextColumn", + "args": "(const ImVec2 scroll)", + "argsT": [ + { + "name": "scroll", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& scroll)", + "call_args": "(scroll)", + "cimguiname": "igSetNextWindowScroll", "defaults": {}, - "funcname": "NextColumn", - "location": "imgui:785", + "funcname": "SetNextWindowScroll", + "location": "imgui:373", "namespace": "ImGui", - "ov_cimguiname": "igNextColumn", + "ov_cimguiname": "igSetNextWindowScroll", "ret": "void", - "signature": "()", + "signature": "(const ImVec2)", "stname": "" } ], - "igOpenPopup": [ + "igSetNextWindowSize": [ { - "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "args": "(const ImVec2 size,ImGuiCond cond)", "argsT": [ { - "name": "str_id", - "type": "const char*" + "name": "size", + "type": "const ImVec2" }, { - "name": "popup_flags", - "type": "ImGuiPopupFlags" + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(const char* str_id,ImGuiPopupFlags popup_flags=0)", - "call_args": "(str_id,popup_flags)", - "cimguiname": "igOpenPopup", + "argsoriginal": "(const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(size,cond)", + "cimguiname": "igSetNextWindowSize", "defaults": { - "popup_flags": "0" + "cond": "0" }, - "funcname": "OpenPopup", - "location": "imgui:705", + "funcname": "SetNextWindowSize", + "location": "imgui:368", "namespace": "ImGui", - "ov_cimguiname": "igOpenPopup_Str", + "ov_cimguiname": "igSetNextWindowSize", "ret": "void", - "signature": "(const char*,ImGuiPopupFlags)", + "signature": "(const ImVec2,ImGuiCond)", "stname": "" - }, + } + ], + "igSetNextWindowSizeConstraints": [ { - "args": "(ImGuiID id,ImGuiPopupFlags popup_flags)", + "args": "(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data)", "argsT": [ { - "name": "id", - "type": "ImGuiID" + "name": "size_min", + "type": "const ImVec2" }, { - "name": "popup_flags", - "type": "ImGuiPopupFlags" + "name": "size_max", + "type": "const ImVec2" + }, + { + "name": "custom_callback", + "type": "ImGuiSizeCallback" + }, + { + "name": "custom_callback_data", + "type": "void*" } ], - "argsoriginal": "(ImGuiID id,ImGuiPopupFlags popup_flags=0)", - "call_args": "(id,popup_flags)", - "cimguiname": "igOpenPopup", + "argsoriginal": "(const ImVec2& size_min,const ImVec2& size_max,ImGuiSizeCallback custom_callback=((void*)0),void* custom_callback_data=((void*)0))", + "call_args": "(size_min,size_max,custom_callback,custom_callback_data)", + "cimguiname": "igSetNextWindowSizeConstraints", "defaults": { - "popup_flags": "0" + "custom_callback": "NULL", + "custom_callback_data": "NULL" }, - "funcname": "OpenPopup", - "location": "imgui:706", + "funcname": "SetNextWindowSizeConstraints", + "location": "imgui:369", "namespace": "ImGui", - "ov_cimguiname": "igOpenPopup_ID", + "ov_cimguiname": "igSetNextWindowSizeConstraints", "ret": "void", - "signature": "(ImGuiID,ImGuiPopupFlags)", + "signature": "(const ImVec2,const ImVec2,ImGuiSizeCallback,void*)", "stname": "" } ], - "igOpenPopupOnItemClick": [ + "igSetNextWindowViewport": [ { - "args": "(const char* str_id,ImGuiPopupFlags popup_flags)", + "args": "(ImGuiID viewport_id)", "argsT": [ { - "name": "str_id", - "type": "const char*" - }, - { - "name": "popup_flags", - "type": "ImGuiPopupFlags" + "name": "viewport_id", + "type": "ImGuiID" } ], - "argsoriginal": "(const char* str_id=((void*)0),ImGuiPopupFlags popup_flags=1)", - "call_args": "(str_id,popup_flags)", - "cimguiname": "igOpenPopupOnItemClick", - "defaults": { - "popup_flags": "1", - "str_id": "NULL" - }, - "funcname": "OpenPopupOnItemClick", - "location": "imgui:707", + "argsoriginal": "(ImGuiID viewport_id)", + "call_args": "(viewport_id)", + "cimguiname": "igSetNextWindowViewport", + "defaults": {}, + "funcname": "SetNextWindowViewport", + "location": "imgui:375", "namespace": "ImGui", - "ov_cimguiname": "igOpenPopupOnItemClick", + "ov_cimguiname": "igSetNextWindowViewport", "ret": "void", - "signature": "(const char*,ImGuiPopupFlags)", + "signature": "(ImGuiID)", "stname": "" } ], - "igPlotHistogram": [ + "igSetScrollFromPosX": [ { - "args": "(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)", + "args": "(float local_x,float center_x_ratio)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "values", - "type": "const float*" - }, - { - "name": "values_count", - "type": "int" + "name": "local_x", + "type": "float" }, { - "name": "values_offset", - "type": "int" - }, + "name": "center_x_ratio", + "type": "float" + } + ], + "argsoriginal": "(float local_x,float center_x_ratio=0.5f)", + "call_args": "(local_x,center_x_ratio)", + "cimguiname": "igSetScrollFromPosX", + "defaults": { + "center_x_ratio": "0.5f" + }, + "funcname": "SetScrollFromPosX", + "location": "imgui:405", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollFromPosX_Float", + "ret": "void", + "signature": "(float,float)", + "stname": "" + }, + { + "args": "(ImGuiWindow* window,float local_x,float center_x_ratio)", + "argsT": [ { - "name": "overlay_text", - "type": "const char*" + "name": "window", + "type": "ImGuiWindow*" }, { - "name": "scale_min", + "name": "local_x", "type": "float" }, { - "name": "scale_max", + "name": "center_x_ratio", "type": "float" - }, + } + ], + "argsoriginal": "(ImGuiWindow* window,float local_x,float center_x_ratio)", + "call_args": "(window,local_x,center_x_ratio)", + "cimguiname": "igSetScrollFromPosX", + "defaults": {}, + "funcname": "SetScrollFromPosX", + "location": "imgui_internal:3008", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollFromPosX_WindowPtr", + "ret": "void", + "signature": "(ImGuiWindow*,float,float)", + "stname": "" + } + ], + "igSetScrollFromPosY": [ + { + "args": "(float local_y,float center_y_ratio)", + "argsT": [ { - "name": "graph_size", - "type": "ImVec2" + "name": "local_y", + "type": "float" }, { - "name": "stride", - "type": "int" + "name": "center_y_ratio", + "type": "float" } ], - "argsoriginal": "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))", - "call_args": "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)", - "cimguiname": "igPlotHistogram", + "argsoriginal": "(float local_y,float center_y_ratio=0.5f)", + "call_args": "(local_y,center_y_ratio)", + "cimguiname": "igSetScrollFromPosY", "defaults": { - "graph_size": "ImVec2(0,0)", - "overlay_text": "NULL", - "scale_max": "FLT_MAX", - "scale_min": "FLT_MAX", - "stride": "sizeof(float)", - "values_offset": "0" + "center_y_ratio": "0.5f" }, - "funcname": "PlotHistogram", - "location": "imgui:650", + "funcname": "SetScrollFromPosY", + "location": "imgui:406", "namespace": "ImGui", - "ov_cimguiname": "igPlotHistogram_FloatPtr", + "ov_cimguiname": "igSetScrollFromPosY_Float", "ret": "void", - "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", + "signature": "(float,float)", "stname": "" }, { - "args": "(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)", + "args": "(ImGuiWindow* window,float local_y,float center_y_ratio)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "values_getter", - "ret": "float", - "signature": "(void* data,int idx)", - "type": "float(*)(void* data,int idx)" - }, - { - "name": "data", - "type": "void*" - }, - { - "name": "values_count", - "type": "int" - }, - { - "name": "values_offset", - "type": "int" - }, - { - "name": "overlay_text", - "type": "const char*" + "name": "window", + "type": "ImGuiWindow*" }, { - "name": "scale_min", + "name": "local_y", "type": "float" }, { - "name": "scale_max", + "name": "center_y_ratio", "type": "float" - }, + } + ], + "argsoriginal": "(ImGuiWindow* window,float local_y,float center_y_ratio)", + "call_args": "(window,local_y,center_y_ratio)", + "cimguiname": "igSetScrollFromPosY", + "defaults": {}, + "funcname": "SetScrollFromPosY", + "location": "imgui_internal:3009", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollFromPosY_WindowPtr", + "ret": "void", + "signature": "(ImGuiWindow*,float,float)", + "stname": "" + } + ], + "igSetScrollHereX": [ + { + "args": "(float center_x_ratio)", + "argsT": [ { - "name": "graph_size", - "type": "ImVec2" + "name": "center_x_ratio", + "type": "float" } ], - "argsoriginal": "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))", - "call_args": "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)", - "cimguiname": "igPlotHistogram", + "argsoriginal": "(float center_x_ratio=0.5f)", + "call_args": "(center_x_ratio)", + "cimguiname": "igSetScrollHereX", "defaults": { - "graph_size": "ImVec2(0,0)", - "overlay_text": "NULL", - "scale_max": "FLT_MAX", - "scale_min": "FLT_MAX", - "values_offset": "0" + "center_x_ratio": "0.5f" }, - "funcname": "PlotHistogram", - "location": "imgui:651", + "funcname": "SetScrollHereX", + "location": "imgui:403", "namespace": "ImGui", - "ov_cimguiname": "igPlotHistogram_FnFloatPtr", + "ov_cimguiname": "igSetScrollHereX", "ret": "void", - "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", + "signature": "(float)", "stname": "" } ], - "igPlotLines": [ + "igSetScrollHereY": [ { - "args": "(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)", + "args": "(float center_y_ratio)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "values", - "type": "const float*" - }, - { - "name": "values_count", - "type": "int" - }, - { - "name": "values_offset", - "type": "int" - }, - { - "name": "overlay_text", - "type": "const char*" - }, - { - "name": "scale_min", - "type": "float" - }, - { - "name": "scale_max", + "name": "center_y_ratio", "type": "float" - }, - { - "name": "graph_size", - "type": "ImVec2" - }, - { - "name": "stride", - "type": "int" } ], - "argsoriginal": "(const char* label,const float* values,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0),int stride=sizeof(float))", - "call_args": "(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride)", - "cimguiname": "igPlotLines", + "argsoriginal": "(float center_y_ratio=0.5f)", + "call_args": "(center_y_ratio)", + "cimguiname": "igSetScrollHereY", "defaults": { - "graph_size": "ImVec2(0,0)", - "overlay_text": "NULL", - "scale_max": "FLT_MAX", - "scale_min": "FLT_MAX", - "stride": "sizeof(float)", - "values_offset": "0" + "center_y_ratio": "0.5f" }, - "funcname": "PlotLines", - "location": "imgui:648", + "funcname": "SetScrollHereY", + "location": "imgui:404", "namespace": "ImGui", - "ov_cimguiname": "igPlotLines_FloatPtr", + "ov_cimguiname": "igSetScrollHereY", "ret": "void", - "signature": "(const char*,const float*,int,int,const char*,float,float,ImVec2,int)", + "signature": "(float)", "stname": "" - }, + } + ], + "igSetScrollX": [ { - "args": "(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)", + "args": "(float scroll_x)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "values_getter", - "ret": "float", - "signature": "(void* data,int idx)", - "type": "float(*)(void* data,int idx)" - }, - { - "name": "data", - "type": "void*" - }, - { - "name": "values_count", - "type": "int" - }, - { - "name": "values_offset", - "type": "int" - }, - { - "name": "overlay_text", - "type": "const char*" - }, - { - "name": "scale_min", + "name": "scroll_x", "type": "float" - }, + } + ], + "argsoriginal": "(float scroll_x)", + "call_args": "(scroll_x)", + "cimguiname": "igSetScrollX", + "defaults": {}, + "funcname": "SetScrollX", + "location": "imgui:399", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollX_Float", + "ret": "void", + "signature": "(float)", + "stname": "" + }, + { + "args": "(ImGuiWindow* window,float scroll_x)", + "argsT": [ { - "name": "scale_max", - "type": "float" + "name": "window", + "type": "ImGuiWindow*" }, { - "name": "graph_size", - "type": "ImVec2" + "name": "scroll_x", + "type": "float" } ], - "argsoriginal": "(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset=0,const char* overlay_text=((void*)0),float scale_min=3.40282346638528859811704183484516925e+38F,float scale_max=3.40282346638528859811704183484516925e+38F,ImVec2 graph_size=ImVec2(0,0))", - "call_args": "(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size)", - "cimguiname": "igPlotLines", - "defaults": { - "graph_size": "ImVec2(0,0)", - "overlay_text": "NULL", - "scale_max": "FLT_MAX", - "scale_min": "FLT_MAX", - "values_offset": "0" - }, - "funcname": "PlotLines", - "location": "imgui:649", + "argsoriginal": "(ImGuiWindow* window,float scroll_x)", + "call_args": "(window,scroll_x)", + "cimguiname": "igSetScrollX", + "defaults": {}, + "funcname": "SetScrollX", + "location": "imgui_internal:3006", "namespace": "ImGui", - "ov_cimguiname": "igPlotLines_FnFloatPtr", + "ov_cimguiname": "igSetScrollX_WindowPtr", "ret": "void", - "signature": "(const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)", + "signature": "(ImGuiWindow*,float)", "stname": "" } ], - "igPopAllowKeyboardFocus": [ + "igSetScrollY": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igPopAllowKeyboardFocus", + "args": "(float scroll_y)", + "argsT": [ + { + "name": "scroll_y", + "type": "float" + } + ], + "argsoriginal": "(float scroll_y)", + "call_args": "(scroll_y)", + "cimguiname": "igSetScrollY", + "defaults": {}, + "funcname": "SetScrollY", + "location": "imgui:400", + "namespace": "ImGui", + "ov_cimguiname": "igSetScrollY_Float", + "ret": "void", + "signature": "(float)", + "stname": "" + }, + { + "args": "(ImGuiWindow* window,float scroll_y)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "scroll_y", + "type": "float" + } + ], + "argsoriginal": "(ImGuiWindow* window,float scroll_y)", + "call_args": "(window,scroll_y)", + "cimguiname": "igSetScrollY", "defaults": {}, - "funcname": "PopAllowKeyboardFocus", - "location": "imgui:418", + "funcname": "SetScrollY", + "location": "imgui_internal:3007", "namespace": "ImGui", - "ov_cimguiname": "igPopAllowKeyboardFocus", + "ov_cimguiname": "igSetScrollY_WindowPtr", "ret": "void", - "signature": "()", + "signature": "(ImGuiWindow*,float)", "stname": "" } ], - "igPopButtonRepeat": [ + "igSetShortcutRouting": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igPopButtonRepeat", - "defaults": {}, - "funcname": "PopButtonRepeat", - "location": "imgui:420", + "args": "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "key_chord", + "type": "ImGuiKeyChord" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiKeyChord key_chord,ImGuiID owner_id=0,ImGuiInputFlags flags=0)", + "call_args": "(key_chord,owner_id,flags)", + "cimguiname": "igSetShortcutRouting", + "defaults": { + "flags": "0", + "owner_id": "0" + }, + "funcname": "SetShortcutRouting", + "location": "imgui_internal:3168", "namespace": "ImGui", - "ov_cimguiname": "igPopButtonRepeat", - "ret": "void", - "signature": "()", + "ov_cimguiname": "igSetShortcutRouting", + "ret": "bool", + "signature": "(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)", "stname": "" } ], - "igPopClipRect": [ + "igSetStateStorage": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igPopClipRect", + "args": "(ImGuiStorage* storage)", + "argsT": [ + { + "name": "storage", + "type": "ImGuiStorage*" + } + ], + "argsoriginal": "(ImGuiStorage* storage)", + "call_args": "(storage)", + "cimguiname": "igSetStateStorage", "defaults": {}, - "funcname": "PopClipRect", - "location": "imgui:855", + "funcname": "SetStateStorage", + "location": "imgui:902", "namespace": "ImGui", - "ov_cimguiname": "igPopClipRect", + "ov_cimguiname": "igSetStateStorage", "ret": "void", - "signature": "()", + "signature": "(ImGuiStorage*)", "stname": "" } ], - "igPopFont": [ + "igSetTabItemClosed": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igPopFont", + "args": "(const char* tab_or_docked_window_label)", + "argsT": [ + { + "name": "tab_or_docked_window_label", + "type": "const char*" + } + ], + "argsoriginal": "(const char* tab_or_docked_window_label)", + "call_args": "(tab_or_docked_window_label)", + "cimguiname": "igSetTabItemClosed", "defaults": {}, - "funcname": "PopFont", - "location": "imgui:410", + "funcname": "SetTabItemClosed", + "location": "imgui:800", "namespace": "ImGui", - "ov_cimguiname": "igPopFont", + "ov_cimguiname": "igSetTabItemClosed", "ret": "void", - "signature": "()", + "signature": "(const char*)", "stname": "" } ], - "igPopID": [ + "igSetTooltip": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igPopID", + "args": "(const char* fmt,...)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "...", + "type": "..." + } + ], + "argsoriginal": "(const char* fmt,...)", + "call_args": "(fmt,...)", + "cimguiname": "igSetTooltip", "defaults": {}, - "funcname": "PopID", - "location": "imgui:486", + "funcname": "SetTooltip", + "isvararg": "...)", + "location": "imgui:678", "namespace": "ImGui", - "ov_cimguiname": "igPopID", + "ov_cimguiname": "igSetTooltip", "ret": "void", - "signature": "()", + "signature": "(const char*,...)", "stname": "" } ], - "igPopItemWidth": [ + "igSetTooltipV": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igPopItemWidth", + "args": "(const char* fmt,va_list args)", + "argsT": [ + { + "name": "fmt", + "type": "const char*" + }, + { + "name": "args", + "type": "va_list" + } + ], + "argsoriginal": "(const char* fmt,va_list args)", + "call_args": "(fmt,args)", + "cimguiname": "igSetTooltipV", "defaults": {}, - "funcname": "PopItemWidth", - "location": "imgui:424", + "funcname": "SetTooltipV", + "location": "imgui:679", "namespace": "ImGui", - "ov_cimguiname": "igPopItemWidth", + "ov_cimguiname": "igSetTooltipV", "ret": "void", - "signature": "()", + "signature": "(const char*,va_list)", "stname": "" } ], - "igPopStyleColor": [ + "igSetWindowClipRectBeforeSetChannel": [ { - "args": "(int count)", + "args": "(ImGuiWindow* window,const ImRect clip_rect)", "argsT": [ { - "name": "count", - "type": "int" + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "clip_rect", + "type": "const ImRect" } ], - "argsoriginal": "(int count=1)", - "call_args": "(count)", - "cimguiname": "igPopStyleColor", - "defaults": { - "count": "1" - }, - "funcname": "PopStyleColor", - "location": "imgui:413", + "argsoriginal": "(ImGuiWindow* window,const ImRect& clip_rect)", + "call_args": "(window,clip_rect)", + "cimguiname": "igSetWindowClipRectBeforeSetChannel", + "defaults": {}, + "funcname": "SetWindowClipRectBeforeSetChannel", + "location": "imgui_internal:3244", "namespace": "ImGui", - "ov_cimguiname": "igPopStyleColor", + "ov_cimguiname": "igSetWindowClipRectBeforeSetChannel", "ret": "void", - "signature": "(int)", + "signature": "(ImGuiWindow*,const ImRect)", "stname": "" } ], - "igPopStyleVar": [ + "igSetWindowCollapsed": [ { - "args": "(int count)", + "args": "(bool collapsed,ImGuiCond cond)", "argsT": [ { - "name": "count", - "type": "int" + "name": "collapsed", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(int count=1)", - "call_args": "(count)", - "cimguiname": "igPopStyleVar", + "argsoriginal": "(bool collapsed,ImGuiCond cond=0)", + "call_args": "(collapsed,cond)", + "cimguiname": "igSetWindowCollapsed", "defaults": { - "count": "1" + "cond": "0" }, - "funcname": "PopStyleVar", - "location": "imgui:416", + "funcname": "SetWindowCollapsed", + "location": "imgui:378", "namespace": "ImGui", - "ov_cimguiname": "igPopStyleVar", + "ov_cimguiname": "igSetWindowCollapsed_Bool", "ret": "void", - "signature": "(int)", + "signature": "(bool,ImGuiCond)", "stname": "" - } - ], - "igPopTextWrapPos": [ + }, { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igPopTextWrapPos", - "defaults": {}, - "funcname": "PopTextWrapPos", - "location": "imgui:428", + "args": "(const char* name,bool collapsed,ImGuiCond cond)", + "argsT": [ + { + "name": "name", + "type": "const char*" + }, + { + "name": "collapsed", + "type": "bool" + }, + { + "name": "cond", + "type": "ImGuiCond" + } + ], + "argsoriginal": "(const char* name,bool collapsed,ImGuiCond cond=0)", + "call_args": "(name,collapsed,cond)", + "cimguiname": "igSetWindowCollapsed", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowCollapsed", + "location": "imgui:383", "namespace": "ImGui", - "ov_cimguiname": "igPopTextWrapPos", + "ov_cimguiname": "igSetWindowCollapsed_Str", "ret": "void", - "signature": "()", + "signature": "(const char*,bool,ImGuiCond)", "stname": "" - } - ], - "igProgressBar": [ + }, { - "args": "(float fraction,const ImVec2 size_arg,const char* overlay)", + "args": "(ImGuiWindow* window,bool collapsed,ImGuiCond cond)", "argsT": [ { - "name": "fraction", - "type": "float" + "name": "window", + "type": "ImGuiWindow*" }, { - "name": "size_arg", - "type": "const ImVec2" + "name": "collapsed", + "type": "bool" }, { - "name": "overlay", - "type": "const char*" + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(float fraction,const ImVec2& size_arg=ImVec2(-1.17549435082228750796873653722224568e-38F,0),const char* overlay=((void*)0))", - "call_args": "(fraction,size_arg,overlay)", - "cimguiname": "igProgressBar", + "argsoriginal": "(ImGuiWindow* window,bool collapsed,ImGuiCond cond=0)", + "call_args": "(window,collapsed,cond)", + "cimguiname": "igSetWindowCollapsed", "defaults": { - "overlay": "NULL", - "size_arg": "ImVec2(-FLT_MIN,0)" + "cond": "0" }, - "funcname": "ProgressBar", - "location": "imgui:518", + "funcname": "SetWindowCollapsed", + "location": "imgui_internal:2944", "namespace": "ImGui", - "ov_cimguiname": "igProgressBar", + "ov_cimguiname": "igSetWindowCollapsed_WindowPtr", "ret": "void", - "signature": "(float,const ImVec2,const char*)", + "signature": "(ImGuiWindow*,bool,ImGuiCond)", "stname": "" } ], - "igPushAllowKeyboardFocus": [ + "igSetWindowDock": [ { - "args": "(bool allow_keyboard_focus)", + "args": "(ImGuiWindow* window,ImGuiID dock_id,ImGuiCond cond)", "argsT": [ { - "name": "allow_keyboard_focus", - "type": "bool" + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "dock_id", + "type": "ImGuiID" + }, + { + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(bool allow_keyboard_focus)", - "call_args": "(allow_keyboard_focus)", - "cimguiname": "igPushAllowKeyboardFocus", + "argsoriginal": "(ImGuiWindow* window,ImGuiID dock_id,ImGuiCond cond)", + "call_args": "(window,dock_id,cond)", + "cimguiname": "igSetWindowDock", "defaults": {}, - "funcname": "PushAllowKeyboardFocus", - "location": "imgui:417", + "funcname": "SetWindowDock", + "location": "imgui_internal:3198", "namespace": "ImGui", - "ov_cimguiname": "igPushAllowKeyboardFocus", + "ov_cimguiname": "igSetWindowDock", "ret": "void", - "signature": "(bool)", + "signature": "(ImGuiWindow*,ImGuiID,ImGuiCond)", "stname": "" } ], - "igPushButtonRepeat": [ + "igSetWindowFocus": [ { - "args": "(bool repeat)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSetWindowFocus", + "defaults": {}, + "funcname": "SetWindowFocus", + "location": "imgui:379", + "namespace": "ImGui", + "ov_cimguiname": "igSetWindowFocus_Nil", + "ret": "void", + "signature": "()", + "stname": "" + }, + { + "args": "(const char* name)", "argsT": [ { - "name": "repeat", - "type": "bool" + "name": "name", + "type": "const char*" } ], - "argsoriginal": "(bool repeat)", - "call_args": "(repeat)", - "cimguiname": "igPushButtonRepeat", + "argsoriginal": "(const char* name)", + "call_args": "(name)", + "cimguiname": "igSetWindowFocus", "defaults": {}, - "funcname": "PushButtonRepeat", - "location": "imgui:419", + "funcname": "SetWindowFocus", + "location": "imgui:384", "namespace": "ImGui", - "ov_cimguiname": "igPushButtonRepeat", + "ov_cimguiname": "igSetWindowFocus_Str", "ret": "void", - "signature": "(bool)", + "signature": "(const char*)", "stname": "" } ], - "igPushClipRect": [ + "igSetWindowFontScale": [ { - "args": "(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)", + "args": "(float scale)", "argsT": [ { - "name": "clip_rect_min", - "type": "const ImVec2" - }, - { - "name": "clip_rect_max", - "type": "const ImVec2" - }, - { - "name": "intersect_with_current_clip_rect", - "type": "bool" + "name": "scale", + "type": "float" } ], - "argsoriginal": "(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect)", - "call_args": "(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect)", - "cimguiname": "igPushClipRect", + "argsoriginal": "(float scale)", + "call_args": "(scale)", + "cimguiname": "igSetWindowFontScale", "defaults": {}, - "funcname": "PushClipRect", - "location": "imgui:854", + "funcname": "SetWindowFontScale", + "location": "imgui:380", "namespace": "ImGui", - "ov_cimguiname": "igPushClipRect", + "ov_cimguiname": "igSetWindowFontScale", "ret": "void", - "signature": "(const ImVec2,const ImVec2,bool)", + "signature": "(float)", "stname": "" } ], - "igPushFont": [ + "igSetWindowHitTestHole": [ { - "args": "(ImFont* font)", + "args": "(ImGuiWindow* window,const ImVec2 pos,const ImVec2 size)", "argsT": [ { - "name": "font", - "type": "ImFont*" + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "size", + "type": "const ImVec2" } ], - "argsoriginal": "(ImFont* font)", - "call_args": "(font)", - "cimguiname": "igPushFont", + "argsoriginal": "(ImGuiWindow* window,const ImVec2& pos,const ImVec2& size)", + "call_args": "(window,pos,size)", + "cimguiname": "igSetWindowHitTestHole", "defaults": {}, - "funcname": "PushFont", - "location": "imgui:409", + "funcname": "SetWindowHitTestHole", + "location": "imgui_internal:2945", "namespace": "ImGui", - "ov_cimguiname": "igPushFont", + "ov_cimguiname": "igSetWindowHitTestHole", "ret": "void", - "signature": "(ImFont*)", + "signature": "(ImGuiWindow*,const ImVec2,const ImVec2)", "stname": "" } ], - "igPushID": [ + "igSetWindowPos": [ { - "args": "(const char* str_id)", + "args": "(const ImVec2 pos,ImGuiCond cond)", "argsT": [ { - "name": "str_id", - "type": "const char*" + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(const char* str_id)", - "call_args": "(str_id)", - "cimguiname": "igPushID", - "defaults": {}, - "funcname": "PushID", - "location": "imgui:482", + "argsoriginal": "(const ImVec2& pos,ImGuiCond cond=0)", + "call_args": "(pos,cond)", + "cimguiname": "igSetWindowPos", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowPos", + "location": "imgui:376", "namespace": "ImGui", - "ov_cimguiname": "igPushID_Str", + "ov_cimguiname": "igSetWindowPos_Vec2", "ret": "void", - "signature": "(const char*)", + "signature": "(const ImVec2,ImGuiCond)", "stname": "" }, { - "args": "(const char* str_id_begin,const char* str_id_end)", + "args": "(const char* name,const ImVec2 pos,ImGuiCond cond)", "argsT": [ { - "name": "str_id_begin", + "name": "name", "type": "const char*" }, { - "name": "str_id_end", - "type": "const char*" + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(const char* str_id_begin,const char* str_id_end)", - "call_args": "(str_id_begin,str_id_end)", - "cimguiname": "igPushID", - "defaults": {}, - "funcname": "PushID", - "location": "imgui:483", + "argsoriginal": "(const char* name,const ImVec2& pos,ImGuiCond cond=0)", + "call_args": "(name,pos,cond)", + "cimguiname": "igSetWindowPos", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowPos", + "location": "imgui:381", "namespace": "ImGui", - "ov_cimguiname": "igPushID_StrStr", + "ov_cimguiname": "igSetWindowPos_Str", "ret": "void", - "signature": "(const char*,const char*)", + "signature": "(const char*,const ImVec2,ImGuiCond)", "stname": "" }, { - "args": "(const void* ptr_id)", + "args": "(ImGuiWindow* window,const ImVec2 pos,ImGuiCond cond)", "argsT": [ { - "name": "ptr_id", - "type": "const void*" + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "pos", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(const void* ptr_id)", - "call_args": "(ptr_id)", - "cimguiname": "igPushID", - "defaults": {}, - "funcname": "PushID", - "location": "imgui:484", + "argsoriginal": "(ImGuiWindow* window,const ImVec2& pos,ImGuiCond cond=0)", + "call_args": "(window,pos,cond)", + "cimguiname": "igSetWindowPos", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowPos", + "location": "imgui_internal:2942", "namespace": "ImGui", - "ov_cimguiname": "igPushID_Ptr", + "ov_cimguiname": "igSetWindowPos_WindowPtr", "ret": "void", - "signature": "(const void*)", + "signature": "(ImGuiWindow*,const ImVec2,ImGuiCond)", "stname": "" - }, + } + ], + "igSetWindowSize": [ { - "args": "(int int_id)", + "args": "(const ImVec2 size,ImGuiCond cond)", "argsT": [ { - "name": "int_id", - "type": "int" + "name": "size", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(int int_id)", - "call_args": "(int_id)", - "cimguiname": "igPushID", - "defaults": {}, - "funcname": "PushID", - "location": "imgui:485", + "argsoriginal": "(const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(size,cond)", + "cimguiname": "igSetWindowSize", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowSize", + "location": "imgui:377", "namespace": "ImGui", - "ov_cimguiname": "igPushID_Int", + "ov_cimguiname": "igSetWindowSize_Vec2", "ret": "void", - "signature": "(int)", + "signature": "(const ImVec2,ImGuiCond)", "stname": "" - } - ], - "igPushItemWidth": [ + }, { - "args": "(float item_width)", + "args": "(const char* name,const ImVec2 size,ImGuiCond cond)", "argsT": [ { - "name": "item_width", - "type": "float" + "name": "name", + "type": "const char*" + }, + { + "name": "size", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(float item_width)", - "call_args": "(item_width)", - "cimguiname": "igPushItemWidth", - "defaults": {}, - "funcname": "PushItemWidth", - "location": "imgui:423", + "argsoriginal": "(const char* name,const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(name,size,cond)", + "cimguiname": "igSetWindowSize", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowSize", + "location": "imgui:382", "namespace": "ImGui", - "ov_cimguiname": "igPushItemWidth", + "ov_cimguiname": "igSetWindowSize_Str", "ret": "void", - "signature": "(float)", + "signature": "(const char*,const ImVec2,ImGuiCond)", "stname": "" - } - ], - "igPushStyleColor": [ + }, { - "args": "(ImGuiCol idx,ImU32 col)", + "args": "(ImGuiWindow* window,const ImVec2 size,ImGuiCond cond)", "argsT": [ { - "name": "idx", - "type": "ImGuiCol" + "name": "window", + "type": "ImGuiWindow*" }, { - "name": "col", - "type": "ImU32" + "name": "size", + "type": "const ImVec2" + }, + { + "name": "cond", + "type": "ImGuiCond" } ], - "argsoriginal": "(ImGuiCol idx,ImU32 col)", - "call_args": "(idx,col)", - "cimguiname": "igPushStyleColor", - "defaults": {}, - "funcname": "PushStyleColor", - "location": "imgui:411", + "argsoriginal": "(ImGuiWindow* window,const ImVec2& size,ImGuiCond cond=0)", + "call_args": "(window,size,cond)", + "cimguiname": "igSetWindowSize", + "defaults": { + "cond": "0" + }, + "funcname": "SetWindowSize", + "location": "imgui_internal:2943", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleColor_U32", + "ov_cimguiname": "igSetWindowSize_WindowPtr", "ret": "void", - "signature": "(ImGuiCol,ImU32)", + "signature": "(ImGuiWindow*,const ImVec2,ImGuiCond)", "stname": "" - }, + } + ], + "igSetWindowViewport": [ { - "args": "(ImGuiCol idx,const ImVec4 col)", + "args": "(ImGuiWindow* window,ImGuiViewportP* viewport)", "argsT": [ { - "name": "idx", - "type": "ImGuiCol" + "name": "window", + "type": "ImGuiWindow*" }, { - "name": "col", - "type": "const ImVec4" + "name": "viewport", + "type": "ImGuiViewportP*" } ], - "argsoriginal": "(ImGuiCol idx,const ImVec4& col)", - "call_args": "(idx,col)", - "cimguiname": "igPushStyleColor", + "argsoriginal": "(ImGuiWindow* window,ImGuiViewportP* viewport)", + "call_args": "(window,viewport)", + "cimguiname": "igSetWindowViewport", "defaults": {}, - "funcname": "PushStyleColor", - "location": "imgui:412", + "funcname": "SetWindowViewport", + "location": "imgui_internal:2985", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleColor_Vec4", + "ov_cimguiname": "igSetWindowViewport", "ret": "void", - "signature": "(ImGuiCol,const ImVec4)", + "signature": "(ImGuiWindow*,ImGuiViewportP*)", "stname": "" } ], - "igPushStyleVar": [ + "igShadeVertsLinearColorGradientKeepAlpha": [ { - "args": "(ImGuiStyleVar idx,float val)", + "args": "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1)", "argsT": [ { - "name": "idx", - "type": "ImGuiStyleVar" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "val", - "type": "float" + "name": "vert_start_idx", + "type": "int" + }, + { + "name": "vert_end_idx", + "type": "int" + }, + { + "name": "gradient_p0", + "type": "ImVec2" + }, + { + "name": "gradient_p1", + "type": "ImVec2" + }, + { + "name": "col0", + "type": "ImU32" + }, + { + "name": "col1", + "type": "ImU32" } ], - "argsoriginal": "(ImGuiStyleVar idx,float val)", - "call_args": "(idx,val)", - "cimguiname": "igPushStyleVar", + "argsoriginal": "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1)", + "call_args": "(draw_list,vert_start_idx,vert_end_idx,gradient_p0,gradient_p1,col0,col1)", + "cimguiname": "igShadeVertsLinearColorGradientKeepAlpha", "defaults": {}, - "funcname": "PushStyleVar", - "location": "imgui:414", + "funcname": "ShadeVertsLinearColorGradientKeepAlpha", + "location": "imgui_internal:3410", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleVar_Float", + "ov_cimguiname": "igShadeVertsLinearColorGradientKeepAlpha", "ret": "void", - "signature": "(ImGuiStyleVar,float)", + "signature": "(ImDrawList*,int,int,ImVec2,ImVec2,ImU32,ImU32)", "stname": "" - }, + } + ], + "igShadeVertsLinearUV": [ { - "args": "(ImGuiStyleVar idx,const ImVec2 val)", + "args": "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,bool clamp)", "argsT": [ { - "name": "idx", - "type": "ImGuiStyleVar" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "val", + "name": "vert_start_idx", + "type": "int" + }, + { + "name": "vert_end_idx", + "type": "int" + }, + { + "name": "a", + "type": "const ImVec2" + }, + { + "name": "b", "type": "const ImVec2" + }, + { + "name": "uv_a", + "type": "const ImVec2" + }, + { + "name": "uv_b", + "type": "const ImVec2" + }, + { + "name": "clamp", + "type": "bool" } ], - "argsoriginal": "(ImGuiStyleVar idx,const ImVec2& val)", - "call_args": "(idx,val)", - "cimguiname": "igPushStyleVar", + "argsoriginal": "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,bool clamp)", + "call_args": "(draw_list,vert_start_idx,vert_end_idx,a,b,uv_a,uv_b,clamp)", + "cimguiname": "igShadeVertsLinearUV", "defaults": {}, - "funcname": "PushStyleVar", - "location": "imgui:415", + "funcname": "ShadeVertsLinearUV", + "location": "imgui_internal:3411", "namespace": "ImGui", - "ov_cimguiname": "igPushStyleVar_Vec2", + "ov_cimguiname": "igShadeVertsLinearUV", "ret": "void", - "signature": "(ImGuiStyleVar,const ImVec2)", + "signature": "(ImDrawList*,int,int,const ImVec2,const ImVec2,const ImVec2,const ImVec2,bool)", "stname": "" } ], - "igPushTextWrapPos": [ + "igShortcut": [ { - "args": "(float wrap_local_pos_x)", + "args": "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)", "argsT": [ { - "name": "wrap_local_pos_x", - "type": "float" + "name": "key_chord", + "type": "ImGuiKeyChord" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" } ], - "argsoriginal": "(float wrap_local_pos_x=0.0f)", - "call_args": "(wrap_local_pos_x)", - "cimguiname": "igPushTextWrapPos", + "argsoriginal": "(ImGuiKeyChord key_chord,ImGuiID owner_id=0,ImGuiInputFlags flags=0)", + "call_args": "(key_chord,owner_id,flags)", + "cimguiname": "igShortcut", "defaults": { - "wrap_local_pos_x": "0.0f" + "flags": "0", + "owner_id": "0" }, - "funcname": "PushTextWrapPos", - "location": "imgui:427", + "funcname": "Shortcut", + "location": "imgui_internal:3167", "namespace": "ImGui", - "ov_cimguiname": "igPushTextWrapPos", - "ret": "void", - "signature": "(float)", + "ov_cimguiname": "igShortcut", + "ret": "bool", + "signature": "(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)", "stname": "" } ], - "igRadioButton": [ + "igShowAboutWindow": [ { - "args": "(const char* label,bool active)", + "args": "(bool* p_open)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "active", - "type": "bool" + "name": "p_open", + "type": "bool*" } ], - "argsoriginal": "(const char* label,bool active)", - "call_args": "(label,active)", - "cimguiname": "igRadioButton", - "defaults": {}, - "funcname": "RadioButton", - "location": "imgui:516", + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowAboutWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowAboutWindow", + "location": "imgui:312", "namespace": "ImGui", - "ov_cimguiname": "igRadioButton_Bool", - "ret": "bool", - "signature": "(const char*,bool)", + "ov_cimguiname": "igShowAboutWindow", + "ret": "void", + "signature": "(bool*)", "stname": "" - }, + } + ], + "igShowDebugLogWindow": [ { - "args": "(const char* label,int* v,int v_button)", + "args": "(bool* p_open)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int*" - }, - { - "name": "v_button", - "type": "int" + "name": "p_open", + "type": "bool*" } ], - "argsoriginal": "(const char* label,int* v,int v_button)", - "call_args": "(label,v,v_button)", - "cimguiname": "igRadioButton", - "defaults": {}, - "funcname": "RadioButton", - "location": "imgui:517", + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowDebugLogWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowDebugLogWindow", + "location": "imgui:310", "namespace": "ImGui", - "ov_cimguiname": "igRadioButton_IntPtr", - "ret": "bool", - "signature": "(const char*,int*,int)", + "ov_cimguiname": "igShowDebugLogWindow", + "ret": "void", + "signature": "(bool*)", "stname": "" } ], - "igRender": [ + "igShowDemoWindow": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igRender", - "defaults": {}, - "funcname": "Render", - "location": "imgui:304", + "args": "(bool* p_open)", + "argsT": [ + { + "name": "p_open", + "type": "bool*" + } + ], + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowDemoWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowDemoWindow", + "location": "imgui:308", "namespace": "ImGui", - "ov_cimguiname": "igRender", + "ov_cimguiname": "igShowDemoWindow", "ret": "void", - "signature": "()", + "signature": "(bool*)", "stname": "" } ], - "igRenderPlatformWindowsDefault": [ + "igShowFontAtlas": [ { - "args": "(void* platform_render_arg,void* renderer_render_arg)", + "args": "(ImFontAtlas* atlas)", "argsT": [ { - "name": "platform_render_arg", - "type": "void*" - }, - { - "name": "renderer_render_arg", - "type": "void*" + "name": "atlas", + "type": "ImFontAtlas*" } ], - "argsoriginal": "(void* platform_render_arg=((void*)0),void* renderer_render_arg=((void*)0))", - "call_args": "(platform_render_arg,renderer_render_arg)", - "cimguiname": "igRenderPlatformWindowsDefault", - "defaults": { - "platform_render_arg": "NULL", - "renderer_render_arg": "NULL" - }, - "funcname": "RenderPlatformWindowsDefault", - "location": "imgui:982", + "argsoriginal": "(ImFontAtlas* atlas)", + "call_args": "(atlas)", + "cimguiname": "igShowFontAtlas", + "defaults": {}, + "funcname": "ShowFontAtlas", + "location": "imgui_internal:3431", "namespace": "ImGui", - "ov_cimguiname": "igRenderPlatformWindowsDefault", + "ov_cimguiname": "igShowFontAtlas", "ret": "void", - "signature": "(void*,void*)", + "signature": "(ImFontAtlas*)", "stname": "" } ], - "igResetMouseDragDelta": [ + "igShowFontSelector": [ { - "args": "(ImGuiMouseButton button)", + "args": "(const char* label)", "argsT": [ { - "name": "button", - "type": "ImGuiMouseButton" + "name": "label", + "type": "const char*" } ], - "argsoriginal": "(ImGuiMouseButton button=0)", - "call_args": "(button)", - "cimguiname": "igResetMouseDragDelta", - "defaults": { - "button": "0" - }, - "funcname": "ResetMouseDragDelta", - "location": "imgui:945", + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igShowFontSelector", + "defaults": {}, + "funcname": "ShowFontSelector", + "location": "imgui:315", "namespace": "ImGui", - "ov_cimguiname": "igResetMouseDragDelta", + "ov_cimguiname": "igShowFontSelector", "ret": "void", - "signature": "(ImGuiMouseButton)", + "signature": "(const char*)", "stname": "" } ], - "igSameLine": [ + "igShowMetricsWindow": [ { - "args": "(float offset_from_start_x,float spacing)", + "args": "(bool* p_open)", "argsT": [ { - "name": "offset_from_start_x", - "type": "float" - }, - { - "name": "spacing", - "type": "float" + "name": "p_open", + "type": "bool*" } ], - "argsoriginal": "(float offset_from_start_x=0.0f,float spacing=-1.0f)", - "call_args": "(offset_from_start_x,spacing)", - "cimguiname": "igSameLine", + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowMetricsWindow", "defaults": { - "offset_from_start_x": "0.0f", - "spacing": "-1.0f" + "p_open": "NULL" }, - "funcname": "SameLine", - "location": "imgui:448", + "funcname": "ShowMetricsWindow", + "location": "imgui:309", "namespace": "ImGui", - "ov_cimguiname": "igSameLine", + "ov_cimguiname": "igShowMetricsWindow", "ret": "void", - "signature": "(float,float)", + "signature": "(bool*)", "stname": "" } ], - "igSaveIniSettingsToDisk": [ + "igShowStackToolWindow": [ { - "args": "(const char* ini_filename)", + "args": "(bool* p_open)", "argsT": [ { - "name": "ini_filename", - "type": "const char*" + "name": "p_open", + "type": "bool*" } ], - "argsoriginal": "(const char* ini_filename)", - "call_args": "(ini_filename)", - "cimguiname": "igSaveIniSettingsToDisk", - "defaults": {}, - "funcname": "SaveIniSettingsToDisk", - "location": "imgui:961", + "argsoriginal": "(bool* p_open=((void*)0))", + "call_args": "(p_open)", + "cimguiname": "igShowStackToolWindow", + "defaults": { + "p_open": "NULL" + }, + "funcname": "ShowStackToolWindow", + "location": "imgui:311", "namespace": "ImGui", - "ov_cimguiname": "igSaveIniSettingsToDisk", + "ov_cimguiname": "igShowStackToolWindow", "ret": "void", - "signature": "(const char*)", + "signature": "(bool*)", "stname": "" } ], - "igSaveIniSettingsToMemory": [ + "igShowStyleEditor": [ { - "args": "(size_t* out_ini_size)", + "args": "(ImGuiStyle* ref)", "argsT": [ { - "name": "out_ini_size", - "type": "size_t*" + "name": "ref", + "type": "ImGuiStyle*" } ], - "argsoriginal": "(size_t* out_ini_size=((void*)0))", - "call_args": "(out_ini_size)", - "cimguiname": "igSaveIniSettingsToMemory", + "argsoriginal": "(ImGuiStyle* ref=((void*)0))", + "call_args": "(ref)", + "cimguiname": "igShowStyleEditor", "defaults": { - "out_ini_size": "NULL" + "ref": "NULL" }, - "funcname": "SaveIniSettingsToMemory", - "location": "imgui:962", + "funcname": "ShowStyleEditor", + "location": "imgui:313", "namespace": "ImGui", - "ov_cimguiname": "igSaveIniSettingsToMemory", - "ret": "const char*", - "signature": "(size_t*)", + "ov_cimguiname": "igShowStyleEditor", + "ret": "void", + "signature": "(ImGuiStyle*)", "stname": "" } ], - "igSelectable": [ + "igShowStyleSelector": [ { - "args": "(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size)", + "args": "(const char* label)", "argsT": [ { "name": "label", "type": "const char*" - }, - { - "name": "selected", - "type": "bool" - }, - { - "name": "flags", - "type": "ImGuiSelectableFlags" - }, - { - "name": "size", - "type": "const ImVec2" } ], - "argsoriginal": "(const char* label,bool selected=false,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))", - "call_args": "(label,selected,flags,size)", - "cimguiname": "igSelectable", - "defaults": { - "flags": "0", - "selected": "false", - "size": "ImVec2(0,0)" - }, - "funcname": "Selectable", - "location": "imgui:632", + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igShowStyleSelector", + "defaults": {}, + "funcname": "ShowStyleSelector", + "location": "imgui:314", "namespace": "ImGui", - "ov_cimguiname": "igSelectable_Bool", + "ov_cimguiname": "igShowStyleSelector", "ret": "bool", - "signature": "(const char*,bool,ImGuiSelectableFlags,const ImVec2)", + "signature": "(const char*)", "stname": "" - }, + } + ], + "igShowUserGuide": [ { - "args": "(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igShowUserGuide", + "defaults": {}, + "funcname": "ShowUserGuide", + "location": "imgui:316", + "namespace": "ImGui", + "ov_cimguiname": "igShowUserGuide", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igShrinkWidths": [ + { + "args": "(ImGuiShrinkWidthItem* items,int count,float width_excess)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "p_selected", - "type": "bool*" + "name": "items", + "type": "ImGuiShrinkWidthItem*" }, { - "name": "flags", - "type": "ImGuiSelectableFlags" + "name": "count", + "type": "int" }, { - "name": "size", - "type": "const ImVec2" + "name": "width_excess", + "type": "float" } ], - "argsoriginal": "(const char* label,bool* p_selected,ImGuiSelectableFlags flags=0,const ImVec2& size=ImVec2(0,0))", - "call_args": "(label,p_selected,flags,size)", - "cimguiname": "igSelectable", - "defaults": { - "flags": "0", - "size": "ImVec2(0,0)" - }, - "funcname": "Selectable", - "location": "imgui:633", + "argsoriginal": "(ImGuiShrinkWidthItem* items,int count,float width_excess)", + "call_args": "(items,count,width_excess)", + "cimguiname": "igShrinkWidths", + "defaults": {}, + "funcname": "ShrinkWidths", + "location": "imgui_internal:3047", "namespace": "ImGui", - "ov_cimguiname": "igSelectable_BoolPtr", - "ret": "bool", - "signature": "(const char*,bool*,ImGuiSelectableFlags,const ImVec2)", + "ov_cimguiname": "igShrinkWidths", + "ret": "void", + "signature": "(ImGuiShrinkWidthItem*,int,float)", "stname": "" } ], - "igSeparator": [ + "igShutdown": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igSeparator", + "cimguiname": "igShutdown", "defaults": {}, - "funcname": "Separator", - "location": "imgui:447", + "funcname": "Shutdown", + "location": "imgui_internal:2966", "namespace": "ImGui", - "ov_cimguiname": "igSeparator", + "ov_cimguiname": "igShutdown", "ret": "void", "signature": "()", "stname": "" } ], - "igSetAllocatorFunctions": [ + "igSliderAngle": [ { - "args": "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)", + "args": "(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "alloc_func", - "type": "ImGuiMemAllocFunc" + "name": "label", + "type": "const char*" }, { - "name": "free_func", - "type": "ImGuiMemFreeFunc" + "name": "v_rad", + "type": "float*" }, { - "name": "user_data", - "type": "void*" + "name": "v_degrees_min", + "type": "float" + }, + { + "name": "v_degrees_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data=((void*)0))", - "call_args": "(alloc_func,free_func,user_data)", - "cimguiname": "igSetAllocatorFunctions", + "argsoriginal": "(const char* label,float* v_rad,float v_degrees_min=-360.0f,float v_degrees_max=+360.0f,const char* format=\"%.0f deg\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v_rad,v_degrees_min,v_degrees_max,format,flags)", + "cimguiname": "igSliderAngle", "defaults": { - "user_data": "NULL" + "flags": "0", + "format": "\"%.0f deg\"", + "v_degrees_max": "+360.0f", + "v_degrees_min": "-360.0f" }, - "funcname": "SetAllocatorFunctions", - "location": "imgui:972", + "funcname": "SliderAngle", + "location": "imgui:570", "namespace": "ImGui", - "ov_cimguiname": "igSetAllocatorFunctions", - "ret": "void", - "signature": "(ImGuiMemAllocFunc,ImGuiMemFreeFunc,void*)", + "ov_cimguiname": "igSliderAngle", + "ret": "bool", + "signature": "(const char*,float*,float,float,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetClipboardText": [ + "igSliderBehavior": [ { - "args": "(const char* text)", + "args": "(const ImRect bb,ImGuiID id,ImGuiDataType data_type,void* p_v,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags,ImRect* out_grab_bb)", "argsT": [ { - "name": "text", + "name": "bb", + "type": "const ImRect" + }, + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_v", + "type": "void*" + }, + { + "name": "p_min", + "type": "const void*" + }, + { + "name": "p_max", + "type": "const void*" + }, + { + "name": "format", "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + }, + { + "name": "out_grab_bb", + "type": "ImRect*" } ], - "argsoriginal": "(const char* text)", - "call_args": "(text)", - "cimguiname": "igSetClipboardText", + "argsoriginal": "(const ImRect& bb,ImGuiID id,ImGuiDataType data_type,void* p_v,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags,ImRect* out_grab_bb)", + "call_args": "(bb,id,data_type,p_v,p_min,p_max,format,flags,out_grab_bb)", + "cimguiname": "igSliderBehavior", "defaults": {}, - "funcname": "SetClipboardText", - "location": "imgui:953", + "funcname": "SliderBehavior", + "location": "imgui_internal:3369", "namespace": "ImGui", - "ov_cimguiname": "igSetClipboardText", - "ret": "void", - "signature": "(const char*)", + "ov_cimguiname": "igSliderBehavior", + "ret": "bool", + "signature": "(const ImRect,ImGuiID,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags,ImRect*)", "stname": "" } ], - "igSetColorEditOptions": [ + "igSliderFloat": [ { - "args": "(ImGuiColorEditFlags flags)", + "args": "(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float*" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, { "name": "flags", - "type": "ImGuiColorEditFlags" + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(ImGuiColorEditFlags flags)", - "call_args": "(flags)", - "cimguiname": "igSetColorEditOptions", - "defaults": {}, - "funcname": "SetColorEditOptions", - "location": "imgui:607", + "argsoriginal": "(const char* label,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat", + "location": "imgui:566", "namespace": "ImGui", - "ov_cimguiname": "igSetColorEditOptions", - "ret": "void", - "signature": "(ImGuiColorEditFlags)", + "ov_cimguiname": "igSliderFloat", + "ret": "bool", + "signature": "(const char*,float*,float,float,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetColumnOffset": [ + "igSliderFloat2": [ { - "args": "(int column_index,float offset_x)", + "args": "(const char* label,float v[2],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "column_index", - "type": "int" + "name": "label", + "type": "const char*" }, { - "name": "offset_x", + "name": "v", + "type": "float[2]" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(int column_index,float offset_x)", - "call_args": "(column_index,offset_x)", - "cimguiname": "igSetColumnOffset", - "defaults": {}, - "funcname": "SetColumnOffset", - "location": "imgui:790", + "argsoriginal": "(const char* label,float v[2],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat2", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat2", + "location": "imgui:567", "namespace": "ImGui", - "ov_cimguiname": "igSetColumnOffset", - "ret": "void", - "signature": "(int,float)", + "ov_cimguiname": "igSliderFloat2", + "ret": "bool", + "signature": "(const char*,float[2],float,float,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetColumnWidth": [ + "igSliderFloat3": [ { - "args": "(int column_index,float width)", + "args": "(const char* label,float v[3],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "column_index", - "type": "int" + "name": "label", + "type": "const char*" }, { - "name": "width", + "name": "v", + "type": "float[3]" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(int column_index,float width)", - "call_args": "(column_index,width)", - "cimguiname": "igSetColumnWidth", - "defaults": {}, - "funcname": "SetColumnWidth", - "location": "imgui:788", + "argsoriginal": "(const char* label,float v[3],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat3", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat3", + "location": "imgui:568", "namespace": "ImGui", - "ov_cimguiname": "igSetColumnWidth", - "ret": "void", - "signature": "(int,float)", + "ov_cimguiname": "igSliderFloat3", + "ret": "bool", + "signature": "(const char*,float[3],float,float,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetCurrentContext": [ + "igSliderFloat4": [ { - "args": "(ImGuiContext* ctx)", + "args": "(const char* label,float v[4],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "ctx", - "type": "ImGuiContext*" + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "float[4]" + }, + { + "name": "v_min", + "type": "float" + }, + { + "name": "v_max", + "type": "float" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(ImGuiContext* ctx)", - "call_args": "(ctx)", - "cimguiname": "igSetCurrentContext", - "defaults": {}, - "funcname": "SetCurrentContext", - "location": "imgui:297", + "argsoriginal": "(const char* label,float v[4],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderFloat4", + "defaults": { + "flags": "0", + "format": "\"%.3f\"" + }, + "funcname": "SliderFloat4", + "location": "imgui:569", "namespace": "ImGui", - "ov_cimguiname": "igSetCurrentContext", - "ret": "void", - "signature": "(ImGuiContext*)", + "ov_cimguiname": "igSliderFloat4", + "ret": "bool", + "signature": "(const char*,float[4],float,float,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetCursorPos": [ + "igSliderInt": [ { - "args": "(const ImVec2 local_pos)", + "args": "(const char* label,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "local_pos", - "type": "const ImVec2" - } - ], - "argsoriginal": "(const ImVec2& local_pos)", - "call_args": "(local_pos)", - "cimguiname": "igSetCursorPos", - "defaults": {}, - "funcname": "SetCursorPos", - "location": "imgui:459", + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int*" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" + } + ], + "argsoriginal": "(const char* label,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt", + "location": "imgui:571", "namespace": "ImGui", - "ov_cimguiname": "igSetCursorPos", - "ret": "void", - "signature": "(const ImVec2)", + "ov_cimguiname": "igSliderInt", + "ret": "bool", + "signature": "(const char*,int*,int,int,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetCursorPosX": [ + "igSliderInt2": [ { - "args": "(float local_x)", + "args": "(const char* label,int v[2],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "local_x", - "type": "float" + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[2]" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(float local_x)", - "call_args": "(local_x)", - "cimguiname": "igSetCursorPosX", - "defaults": {}, - "funcname": "SetCursorPosX", - "location": "imgui:460", + "argsoriginal": "(const char* label,int v[2],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt2", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt2", + "location": "imgui:572", "namespace": "ImGui", - "ov_cimguiname": "igSetCursorPosX", - "ret": "void", - "signature": "(float)", + "ov_cimguiname": "igSliderInt2", + "ret": "bool", + "signature": "(const char*,int[2],int,int,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetCursorPosY": [ + "igSliderInt3": [ { - "args": "(float local_y)", + "args": "(const char* label,int v[3],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "local_y", - "type": "float" + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[3]" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(float local_y)", - "call_args": "(local_y)", - "cimguiname": "igSetCursorPosY", - "defaults": {}, - "funcname": "SetCursorPosY", - "location": "imgui:461", + "argsoriginal": "(const char* label,int v[3],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt3", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt3", + "location": "imgui:573", "namespace": "ImGui", - "ov_cimguiname": "igSetCursorPosY", - "ret": "void", - "signature": "(float)", + "ov_cimguiname": "igSliderInt3", + "ret": "bool", + "signature": "(const char*,int[3],int,int,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetCursorScreenPos": [ + "igSliderInt4": [ { - "args": "(const ImVec2 pos)", + "args": "(const char* label,int v[4],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "pos", - "type": "const ImVec2" + "name": "label", + "type": "const char*" + }, + { + "name": "v", + "type": "int[4]" + }, + { + "name": "v_min", + "type": "int" + }, + { + "name": "v_max", + "type": "int" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(const ImVec2& pos)", - "call_args": "(pos)", - "cimguiname": "igSetCursorScreenPos", - "defaults": {}, - "funcname": "SetCursorScreenPos", - "location": "imgui:464", + "argsoriginal": "(const char* label,int v[4],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", + "call_args": "(label,v,v_min,v_max,format,flags)", + "cimguiname": "igSliderInt4", + "defaults": { + "flags": "0", + "format": "\"%d\"" + }, + "funcname": "SliderInt4", + "location": "imgui:574", "namespace": "ImGui", - "ov_cimguiname": "igSetCursorScreenPos", - "ret": "void", - "signature": "(const ImVec2)", + "ov_cimguiname": "igSliderInt4", + "ret": "bool", + "signature": "(const char*,int[4],int,int,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetDragDropPayload": [ + "igSliderScalar": [ { - "args": "(const char* type,const void* data,size_t sz,ImGuiCond cond)", + "args": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "type", + "name": "label", "type": "const char*" }, { - "name": "data", + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "p_min", "type": "const void*" }, { - "name": "sz", - "type": "size_t" + "name": "p_max", + "type": "const void*" }, { - "name": "cond", - "type": "ImGuiCond" + "name": "format", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(const char* type,const void* data,size_t sz,ImGuiCond cond=0)", - "call_args": "(type,data,sz,cond)", - "cimguiname": "igSetDragDropPayload", + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,p_min,p_max,format,flags)", + "cimguiname": "igSliderScalar", "defaults": { - "cond": "0" + "flags": "0", + "format": "NULL" }, - "funcname": "SetDragDropPayload", - "location": "imgui:838", + "funcname": "SliderScalar", + "location": "imgui:575", "namespace": "ImGui", - "ov_cimguiname": "igSetDragDropPayload", + "ov_cimguiname": "igSliderScalar", "ret": "bool", - "signature": "(const char*,const void*,size_t,ImGuiCond)", - "stname": "" - } - ], - "igSetItemAllowOverlap": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igSetItemAllowOverlap", - "defaults": {}, - "funcname": "SetItemAllowOverlap", - "location": "imgui:881", - "namespace": "ImGui", - "ov_cimguiname": "igSetItemAllowOverlap", - "ret": "void", - "signature": "()", - "stname": "" - } - ], - "igSetItemDefaultFocus": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igSetItemDefaultFocus", - "defaults": {}, - "funcname": "SetItemDefaultFocus", - "location": "imgui:859", - "namespace": "ImGui", - "ov_cimguiname": "igSetItemDefaultFocus", - "ret": "void", - "signature": "()", + "signature": "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetKeyboardFocusHere": [ + "igSliderScalarN": [ { - "args": "(int offset)", + "args": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", "argsT": [ { - "name": "offset", + "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*" + }, + { + "name": "flags", + "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(int offset=0)", - "call_args": "(offset)", - "cimguiname": "igSetKeyboardFocusHere", + "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", + "call_args": "(label,data_type,p_data,components,p_min,p_max,format,flags)", + "cimguiname": "igSliderScalarN", "defaults": { - "offset": "0" + "flags": "0", + "format": "NULL" }, - "funcname": "SetKeyboardFocusHere", - "location": "imgui:860", + "funcname": "SliderScalarN", + "location": "imgui:576", "namespace": "ImGui", - "ov_cimguiname": "igSetKeyboardFocusHere", - "ret": "void", - "signature": "(int)", + "ov_cimguiname": "igSliderScalarN", + "ret": "bool", + "signature": "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiSliderFlags)", "stname": "" } ], - "igSetMouseCursor": [ + "igSmallButton": [ { - "args": "(ImGuiMouseCursor cursor_type)", + "args": "(const char* label)", "argsT": [ { - "name": "cursor_type", - "type": "ImGuiMouseCursor" + "name": "label", + "type": "const char*" } ], - "argsoriginal": "(ImGuiMouseCursor cursor_type)", - "call_args": "(cursor_type)", - "cimguiname": "igSetMouseCursor", + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igSmallButton", "defaults": {}, - "funcname": "SetMouseCursor", - "location": "imgui:947", + "funcname": "SmallButton", + "location": "imgui:510", "namespace": "ImGui", - "ov_cimguiname": "igSetMouseCursor", - "ret": "void", - "signature": "(ImGuiMouseCursor)", + "ov_cimguiname": "igSmallButton", + "ret": "bool", + "signature": "(const char*)", "stname": "" } ], - "igSetNextFrameWantCaptureKeyboard": [ + "igSpacing": [ { - "args": "(bool want_capture_keyboard)", - "argsT": [ - { - "name": "want_capture_keyboard", - "type": "bool" - } - ], - "argsoriginal": "(bool want_capture_keyboard)", - "call_args": "(want_capture_keyboard)", - "cimguiname": "igSetNextFrameWantCaptureKeyboard", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igSpacing", "defaults": {}, - "funcname": "SetNextFrameWantCaptureKeyboard", - "location": "imgui:927", + "funcname": "Spacing", + "location": "imgui:450", "namespace": "ImGui", - "ov_cimguiname": "igSetNextFrameWantCaptureKeyboard", + "ov_cimguiname": "igSpacing", "ret": "void", - "signature": "(bool)", + "signature": "()", "stname": "" } ], - "igSetNextFrameWantCaptureMouse": [ + "igSplitterBehavior": [ { - "args": "(bool want_capture_mouse)", + "args": "(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* size1,float* size2,float min_size1,float min_size2,float hover_extend,float hover_visibility_delay,ImU32 bg_col)", "argsT": [ { - "name": "want_capture_mouse", - "type": "bool" + "name": "bb", + "type": "const ImRect" + }, + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "axis", + "type": "ImGuiAxis" + }, + { + "name": "size1", + "type": "float*" + }, + { + "name": "size2", + "type": "float*" + }, + { + "name": "min_size1", + "type": "float" + }, + { + "name": "min_size2", + "type": "float" + }, + { + "name": "hover_extend", + "type": "float" + }, + { + "name": "hover_visibility_delay", + "type": "float" + }, + { + "name": "bg_col", + "type": "ImU32" } ], - "argsoriginal": "(bool want_capture_mouse)", - "call_args": "(want_capture_mouse)", - "cimguiname": "igSetNextFrameWantCaptureMouse", - "defaults": {}, - "funcname": "SetNextFrameWantCaptureMouse", - "location": "imgui:948", + "argsoriginal": "(const ImRect& bb,ImGuiID id,ImGuiAxis axis,float* size1,float* size2,float min_size1,float min_size2,float hover_extend=0.0f,float hover_visibility_delay=0.0f,ImU32 bg_col=0)", + "call_args": "(bb,id,axis,size1,size2,min_size1,min_size2,hover_extend,hover_visibility_delay,bg_col)", + "cimguiname": "igSplitterBehavior", + "defaults": { + "bg_col": "0", + "hover_extend": "0.0f", + "hover_visibility_delay": "0.0f" + }, + "funcname": "SplitterBehavior", + "location": "imgui_internal:3370", "namespace": "ImGui", - "ov_cimguiname": "igSetNextFrameWantCaptureMouse", - "ret": "void", - "signature": "(bool)", + "ov_cimguiname": "igSplitterBehavior", + "ret": "bool", + "signature": "(const ImRect,ImGuiID,ImGuiAxis,float*,float*,float,float,float,float,ImU32)", "stname": "" } ], - "igSetNextItemOpen": [ + "igStartMouseMovingWindow": [ { - "args": "(bool is_open,ImGuiCond cond)", + "args": "(ImGuiWindow* window)", "argsT": [ { - "name": "is_open", - "type": "bool" - }, - { - "name": "cond", - "type": "ImGuiCond" + "name": "window", + "type": "ImGuiWindow*" } ], - "argsoriginal": "(bool is_open,ImGuiCond cond=0)", - "call_args": "(is_open,cond)", - "cimguiname": "igSetNextItemOpen", - "defaults": { - "cond": "0" - }, - "funcname": "SetNextItemOpen", - "location": "imgui:627", + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igStartMouseMovingWindow", + "defaults": {}, + "funcname": "StartMouseMovingWindow", + "location": "imgui_internal:2971", "namespace": "ImGui", - "ov_cimguiname": "igSetNextItemOpen", + "ov_cimguiname": "igStartMouseMovingWindow", "ret": "void", - "signature": "(bool,ImGuiCond)", + "signature": "(ImGuiWindow*)", "stname": "" } ], - "igSetNextItemWidth": [ + "igStartMouseMovingWindowOrNode": [ { - "args": "(float item_width)", + "args": "(ImGuiWindow* window,ImGuiDockNode* node,bool undock_floating_node)", "argsT": [ { - "name": "item_width", - "type": "float" + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "node", + "type": "ImGuiDockNode*" + }, + { + "name": "undock_floating_node", + "type": "bool" } ], - "argsoriginal": "(float item_width)", - "call_args": "(item_width)", - "cimguiname": "igSetNextItemWidth", + "argsoriginal": "(ImGuiWindow* window,ImGuiDockNode* node,bool undock_floating_node)", + "call_args": "(window,node,undock_floating_node)", + "cimguiname": "igStartMouseMovingWindowOrNode", "defaults": {}, - "funcname": "SetNextItemWidth", - "location": "imgui:425", + "funcname": "StartMouseMovingWindowOrNode", + "location": "imgui_internal:2972", "namespace": "ImGui", - "ov_cimguiname": "igSetNextItemWidth", + "ov_cimguiname": "igStartMouseMovingWindowOrNode", "ret": "void", - "signature": "(float)", + "signature": "(ImGuiWindow*,ImGuiDockNode*,bool)", "stname": "" } ], - "igSetNextWindowBgAlpha": [ + "igStyleColorsClassic": [ { - "args": "(float alpha)", + "args": "(ImGuiStyle* dst)", "argsT": [ { - "name": "alpha", - "type": "float" + "name": "dst", + "type": "ImGuiStyle*" } ], - "argsoriginal": "(float alpha)", - "call_args": "(alpha)", - "cimguiname": "igSetNextWindowBgAlpha", - "defaults": {}, - "funcname": "SetNextWindowBgAlpha", - "location": "imgui:374", + "argsoriginal": "(ImGuiStyle* dst=((void*)0))", + "call_args": "(dst)", + "cimguiname": "igStyleColorsClassic", + "defaults": { + "dst": "NULL" + }, + "funcname": "StyleColorsClassic", + "location": "imgui:322", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowBgAlpha", + "ov_cimguiname": "igStyleColorsClassic", "ret": "void", - "signature": "(float)", + "signature": "(ImGuiStyle*)", "stname": "" } ], - "igSetNextWindowClass": [ + "igStyleColorsDark": [ { - "args": "(const ImGuiWindowClass* window_class)", + "args": "(ImGuiStyle* dst)", "argsT": [ { - "name": "window_class", - "type": "const ImGuiWindowClass*" + "name": "dst", + "type": "ImGuiStyle*" } ], - "argsoriginal": "(const ImGuiWindowClass* window_class)", - "call_args": "(window_class)", - "cimguiname": "igSetNextWindowClass", - "defaults": {}, - "funcname": "SetNextWindowClass", - "location": "imgui:818", + "argsoriginal": "(ImGuiStyle* dst=((void*)0))", + "call_args": "(dst)", + "cimguiname": "igStyleColorsDark", + "defaults": { + "dst": "NULL" + }, + "funcname": "StyleColorsDark", + "location": "imgui:320", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowClass", + "ov_cimguiname": "igStyleColorsDark", "ret": "void", - "signature": "(const ImGuiWindowClass*)", + "signature": "(ImGuiStyle*)", "stname": "" } ], - "igSetNextWindowCollapsed": [ + "igStyleColorsLight": [ { - "args": "(bool collapsed,ImGuiCond cond)", + "args": "(ImGuiStyle* dst)", "argsT": [ { - "name": "collapsed", - "type": "bool" - }, - { - "name": "cond", - "type": "ImGuiCond" + "name": "dst", + "type": "ImGuiStyle*" } ], - "argsoriginal": "(bool collapsed,ImGuiCond cond=0)", - "call_args": "(collapsed,cond)", - "cimguiname": "igSetNextWindowCollapsed", + "argsoriginal": "(ImGuiStyle* dst=((void*)0))", + "call_args": "(dst)", + "cimguiname": "igStyleColorsLight", "defaults": { - "cond": "0" + "dst": "NULL" }, - "funcname": "SetNextWindowCollapsed", - "location": "imgui:371", + "funcname": "StyleColorsLight", + "location": "imgui:321", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowCollapsed", + "ov_cimguiname": "igStyleColorsLight", "ret": "void", - "signature": "(bool,ImGuiCond)", + "signature": "(ImGuiStyle*)", "stname": "" } ], - "igSetNextWindowContentSize": [ + "igTabBarAddTab": [ { - "args": "(const ImVec2 size)", + "args": "(ImGuiTabBar* tab_bar,ImGuiTabItemFlags tab_flags,ImGuiWindow* window)", "argsT": [ { - "name": "size", - "type": "const ImVec2" + "name": "tab_bar", + "type": "ImGuiTabBar*" + }, + { + "name": "tab_flags", + "type": "ImGuiTabItemFlags" + }, + { + "name": "window", + "type": "ImGuiWindow*" } ], - "argsoriginal": "(const ImVec2& size)", - "call_args": "(size)", - "cimguiname": "igSetNextWindowContentSize", + "argsoriginal": "(ImGuiTabBar* tab_bar,ImGuiTabItemFlags tab_flags,ImGuiWindow* window)", + "call_args": "(tab_bar,tab_flags,window)", + "cimguiname": "igTabBarAddTab", "defaults": {}, - "funcname": "SetNextWindowContentSize", - "location": "imgui:370", + "funcname": "TabBarAddTab", + "location": "imgui_internal:3312", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowContentSize", + "ov_cimguiname": "igTabBarAddTab", "ret": "void", - "signature": "(const ImVec2)", + "signature": "(ImGuiTabBar*,ImGuiTabItemFlags,ImGuiWindow*)", "stname": "" } ], - "igSetNextWindowDockID": [ + "igTabBarCloseTab": [ { - "args": "(ImGuiID dock_id,ImGuiCond cond)", + "args": "(ImGuiTabBar* tab_bar,ImGuiTabItem* tab)", "argsT": [ { - "name": "dock_id", - "type": "ImGuiID" + "name": "tab_bar", + "type": "ImGuiTabBar*" }, { - "name": "cond", - "type": "ImGuiCond" + "name": "tab", + "type": "ImGuiTabItem*" } ], - "argsoriginal": "(ImGuiID dock_id,ImGuiCond cond=0)", - "call_args": "(dock_id,cond)", - "cimguiname": "igSetNextWindowDockID", - "defaults": { - "cond": "0" - }, - "funcname": "SetNextWindowDockID", - "location": "imgui:817", + "argsoriginal": "(ImGuiTabBar* tab_bar,ImGuiTabItem* tab)", + "call_args": "(tab_bar,tab)", + "cimguiname": "igTabBarCloseTab", + "defaults": {}, + "funcname": "TabBarCloseTab", + "location": "imgui_internal:3314", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowDockID", + "ov_cimguiname": "igTabBarCloseTab", "ret": "void", - "signature": "(ImGuiID,ImGuiCond)", + "signature": "(ImGuiTabBar*,ImGuiTabItem*)", "stname": "" } ], - "igSetNextWindowFocus": [ + "igTabBarFindMostRecentlySelectedTabForActiveWindow": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igSetNextWindowFocus", + "args": "(ImGuiTabBar* tab_bar)", + "argsT": [ + { + "name": "tab_bar", + "type": "ImGuiTabBar*" + } + ], + "argsoriginal": "(ImGuiTabBar* tab_bar)", + "call_args": "(tab_bar)", + "cimguiname": "igTabBarFindMostRecentlySelectedTabForActiveWindow", "defaults": {}, - "funcname": "SetNextWindowFocus", - "location": "imgui:372", + "funcname": "TabBarFindMostRecentlySelectedTabForActiveWindow", + "location": "imgui_internal:3311", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowFocus", - "ret": "void", - "signature": "()", + "ov_cimguiname": "igTabBarFindMostRecentlySelectedTabForActiveWindow", + "ret": "ImGuiTabItem*", + "signature": "(ImGuiTabBar*)", "stname": "" } ], - "igSetNextWindowPos": [ + "igTabBarFindTabByID": [ { - "args": "(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot)", + "args": "(ImGuiTabBar* tab_bar,ImGuiID tab_id)", "argsT": [ { - "name": "pos", - "type": "const ImVec2" - }, - { - "name": "cond", - "type": "ImGuiCond" + "name": "tab_bar", + "type": "ImGuiTabBar*" }, { - "name": "pivot", - "type": "const ImVec2" + "name": "tab_id", + "type": "ImGuiID" } ], - "argsoriginal": "(const ImVec2& pos,ImGuiCond cond=0,const ImVec2& pivot=ImVec2(0,0))", - "call_args": "(pos,cond,pivot)", - "cimguiname": "igSetNextWindowPos", - "defaults": { - "cond": "0", - "pivot": "ImVec2(0,0)" - }, - "funcname": "SetNextWindowPos", - "location": "imgui:367", + "argsoriginal": "(ImGuiTabBar* tab_bar,ImGuiID tab_id)", + "call_args": "(tab_bar,tab_id)", + "cimguiname": "igTabBarFindTabByID", + "defaults": {}, + "funcname": "TabBarFindTabByID", + "location": "imgui_internal:3310", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowPos", - "ret": "void", - "signature": "(const ImVec2,ImGuiCond,const ImVec2)", + "ov_cimguiname": "igTabBarFindTabByID", + "ret": "ImGuiTabItem*", + "signature": "(ImGuiTabBar*,ImGuiID)", "stname": "" } ], - "igSetNextWindowScroll": [ + "igTabBarProcessReorder": [ { - "args": "(const ImVec2 scroll)", + "args": "(ImGuiTabBar* tab_bar)", "argsT": [ { - "name": "scroll", - "type": "const ImVec2" + "name": "tab_bar", + "type": "ImGuiTabBar*" } ], - "argsoriginal": "(const ImVec2& scroll)", - "call_args": "(scroll)", - "cimguiname": "igSetNextWindowScroll", + "argsoriginal": "(ImGuiTabBar* tab_bar)", + "call_args": "(tab_bar)", + "cimguiname": "igTabBarProcessReorder", "defaults": {}, - "funcname": "SetNextWindowScroll", - "location": "imgui:373", + "funcname": "TabBarProcessReorder", + "location": "imgui_internal:3317", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowScroll", - "ret": "void", - "signature": "(const ImVec2)", + "ov_cimguiname": "igTabBarProcessReorder", + "ret": "bool", + "signature": "(ImGuiTabBar*)", "stname": "" } ], - "igSetNextWindowSize": [ + "igTabBarQueueReorder": [ { - "args": "(const ImVec2 size,ImGuiCond cond)", + "args": "(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,int offset)", "argsT": [ { - "name": "size", - "type": "const ImVec2" + "name": "tab_bar", + "type": "ImGuiTabBar*" }, { - "name": "cond", - "type": "ImGuiCond" + "name": "tab", + "type": "const ImGuiTabItem*" + }, + { + "name": "offset", + "type": "int" } ], - "argsoriginal": "(const ImVec2& size,ImGuiCond cond=0)", - "call_args": "(size,cond)", - "cimguiname": "igSetNextWindowSize", - "defaults": { - "cond": "0" - }, - "funcname": "SetNextWindowSize", - "location": "imgui:368", + "argsoriginal": "(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,int offset)", + "call_args": "(tab_bar,tab,offset)", + "cimguiname": "igTabBarQueueReorder", + "defaults": {}, + "funcname": "TabBarQueueReorder", + "location": "imgui_internal:3315", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowSize", + "ov_cimguiname": "igTabBarQueueReorder", "ret": "void", - "signature": "(const ImVec2,ImGuiCond)", + "signature": "(ImGuiTabBar*,const ImGuiTabItem*,int)", "stname": "" } ], - "igSetNextWindowSizeConstraints": [ + "igTabBarQueueReorderFromMousePos": [ { - "args": "(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data)", + "args": "(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,ImVec2 mouse_pos)", "argsT": [ { - "name": "size_min", - "type": "const ImVec2" - }, - { - "name": "size_max", - "type": "const ImVec2" + "name": "tab_bar", + "type": "ImGuiTabBar*" }, { - "name": "custom_callback", - "type": "ImGuiSizeCallback" + "name": "tab", + "type": "const ImGuiTabItem*" }, { - "name": "custom_callback_data", - "type": "void*" + "name": "mouse_pos", + "type": "ImVec2" } ], - "argsoriginal": "(const ImVec2& size_min,const ImVec2& size_max,ImGuiSizeCallback custom_callback=((void*)0),void* custom_callback_data=((void*)0))", - "call_args": "(size_min,size_max,custom_callback,custom_callback_data)", - "cimguiname": "igSetNextWindowSizeConstraints", - "defaults": { - "custom_callback": "NULL", - "custom_callback_data": "NULL" - }, - "funcname": "SetNextWindowSizeConstraints", - "location": "imgui:369", + "argsoriginal": "(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,ImVec2 mouse_pos)", + "call_args": "(tab_bar,tab,mouse_pos)", + "cimguiname": "igTabBarQueueReorderFromMousePos", + "defaults": {}, + "funcname": "TabBarQueueReorderFromMousePos", + "location": "imgui_internal:3316", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowSizeConstraints", + "ov_cimguiname": "igTabBarQueueReorderFromMousePos", "ret": "void", - "signature": "(const ImVec2,const ImVec2,ImGuiSizeCallback,void*)", + "signature": "(ImGuiTabBar*,const ImGuiTabItem*,ImVec2)", "stname": "" } ], - "igSetNextWindowViewport": [ + "igTabBarRemoveTab": [ { - "args": "(ImGuiID viewport_id)", + "args": "(ImGuiTabBar* tab_bar,ImGuiID tab_id)", "argsT": [ { - "name": "viewport_id", + "name": "tab_bar", + "type": "ImGuiTabBar*" + }, + { + "name": "tab_id", "type": "ImGuiID" } ], - "argsoriginal": "(ImGuiID viewport_id)", - "call_args": "(viewport_id)", - "cimguiname": "igSetNextWindowViewport", + "argsoriginal": "(ImGuiTabBar* tab_bar,ImGuiID tab_id)", + "call_args": "(tab_bar,tab_id)", + "cimguiname": "igTabBarRemoveTab", "defaults": {}, - "funcname": "SetNextWindowViewport", - "location": "imgui:375", + "funcname": "TabBarRemoveTab", + "location": "imgui_internal:3313", "namespace": "ImGui", - "ov_cimguiname": "igSetNextWindowViewport", + "ov_cimguiname": "igTabBarRemoveTab", "ret": "void", - "signature": "(ImGuiID)", + "signature": "(ImGuiTabBar*,ImGuiID)", "stname": "" } ], - "igSetScrollFromPosX": [ + "igTabItemBackground": [ { - "args": "(float local_x,float center_x_ratio)", + "args": "(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImU32 col)", "argsT": [ { - "name": "local_x", - "type": "float" + "name": "draw_list", + "type": "ImDrawList*" }, { - "name": "center_x_ratio", - "type": "float" + "name": "bb", + "type": "const ImRect" + }, + { + "name": "flags", + "type": "ImGuiTabItemFlags" + }, + { + "name": "col", + "type": "ImU32" } ], - "argsoriginal": "(float local_x,float center_x_ratio=0.5f)", - "call_args": "(local_x,center_x_ratio)", - "cimguiname": "igSetScrollFromPosX", - "defaults": { - "center_x_ratio": "0.5f" - }, - "funcname": "SetScrollFromPosX", - "location": "imgui:405", + "argsoriginal": "(ImDrawList* draw_list,const ImRect& bb,ImGuiTabItemFlags flags,ImU32 col)", + "call_args": "(draw_list,bb,flags,col)", + "cimguiname": "igTabItemBackground", + "defaults": {}, + "funcname": "TabItemBackground", + "location": "imgui_internal:3321", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollFromPosX", + "ov_cimguiname": "igTabItemBackground", "ret": "void", - "signature": "(float,float)", + "signature": "(ImDrawList*,const ImRect,ImGuiTabItemFlags,ImU32)", "stname": "" } ], - "igSetScrollFromPosY": [ + "igTabItemButton": [ { - "args": "(float local_y,float center_y_ratio)", + "args": "(const char* label,ImGuiTabItemFlags flags)", "argsT": [ { - "name": "local_y", - "type": "float" + "name": "label", + "type": "const char*" }, { - "name": "center_y_ratio", - "type": "float" + "name": "flags", + "type": "ImGuiTabItemFlags" } ], - "argsoriginal": "(float local_y,float center_y_ratio=0.5f)", - "call_args": "(local_y,center_y_ratio)", - "cimguiname": "igSetScrollFromPosY", + "argsoriginal": "(const char* label,ImGuiTabItemFlags flags=0)", + "call_args": "(label,flags)", + "cimguiname": "igTabItemButton", "defaults": { - "center_y_ratio": "0.5f" + "flags": "0" }, - "funcname": "SetScrollFromPosY", - "location": "imgui:406", + "funcname": "TabItemButton", + "location": "imgui:799", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollFromPosY", - "ret": "void", - "signature": "(float,float)", + "ov_cimguiname": "igTabItemButton", + "ret": "bool", + "signature": "(const char*,ImGuiTabItemFlags)", "stname": "" } ], - "igSetScrollHereX": [ + "igTabItemCalcSize": [ { - "args": "(float center_x_ratio)", + "args": "(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker)", "argsT": [ { - "name": "center_x_ratio", - "type": "float" + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "label", + "type": "const char*" + }, + { + "name": "has_close_button_or_unsaved_marker", + "type": "bool" } ], - "argsoriginal": "(float center_x_ratio=0.5f)", - "call_args": "(center_x_ratio)", - "cimguiname": "igSetScrollHereX", - "defaults": { - "center_x_ratio": "0.5f" - }, - "funcname": "SetScrollHereX", - "location": "imgui:403", + "argsoriginal": "(const char* label,bool has_close_button_or_unsaved_marker)", + "call_args": "(label,has_close_button_or_unsaved_marker)", + "cimguiname": "igTabItemCalcSize", + "defaults": {}, + "funcname": "TabItemCalcSize", + "location": "imgui_internal:3319", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollHereX", + "nonUDT": 1, + "ov_cimguiname": "igTabItemCalcSize_Str", "ret": "void", - "signature": "(float)", + "signature": "(const char*,bool)", "stname": "" - } - ], - "igSetScrollHereY": [ + }, { - "args": "(float center_y_ratio)", + "args": "(ImVec2 *pOut,ImGuiWindow* window)", "argsT": [ { - "name": "center_y_ratio", - "type": "float" + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "window", + "type": "ImGuiWindow*" } ], - "argsoriginal": "(float center_y_ratio=0.5f)", - "call_args": "(center_y_ratio)", - "cimguiname": "igSetScrollHereY", - "defaults": { - "center_y_ratio": "0.5f" - }, - "funcname": "SetScrollHereY", - "location": "imgui:404", + "argsoriginal": "(ImGuiWindow* window)", + "call_args": "(window)", + "cimguiname": "igTabItemCalcSize", + "defaults": {}, + "funcname": "TabItemCalcSize", + "location": "imgui_internal:3320", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igTabItemCalcSize_WindowPtr", + "ret": "void", + "signature": "(ImGuiWindow*)", + "stname": "" + } + ], + "igTabItemEx": [ + { + "args": "(ImGuiTabBar* tab_bar,const char* label,bool* p_open,ImGuiTabItemFlags flags,ImGuiWindow* docked_window)", + "argsT": [ + { + "name": "tab_bar", + "type": "ImGuiTabBar*" + }, + { + "name": "label", + "type": "const char*" + }, + { + "name": "p_open", + "type": "bool*" + }, + { + "name": "flags", + "type": "ImGuiTabItemFlags" + }, + { + "name": "docked_window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiTabBar* tab_bar,const char* label,bool* p_open,ImGuiTabItemFlags flags,ImGuiWindow* docked_window)", + "call_args": "(tab_bar,label,p_open,flags,docked_window)", + "cimguiname": "igTabItemEx", + "defaults": {}, + "funcname": "TabItemEx", + "location": "imgui_internal:3318", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollHereY", - "ret": "void", - "signature": "(float)", + "ov_cimguiname": "igTabItemEx", + "ret": "bool", + "signature": "(ImGuiTabBar*,const char*,bool*,ImGuiTabItemFlags,ImGuiWindow*)", "stname": "" } ], - "igSetScrollX": [ + "igTabItemLabelAndCloseButton": [ { - "args": "(float scroll_x)", + "args": "(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImVec2 frame_padding,const char* label,ImGuiID tab_id,ImGuiID close_button_id,bool is_contents_visible,bool* out_just_closed,bool* out_text_clipped)", "argsT": [ { - "name": "scroll_x", - "type": "float" + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "bb", + "type": "const ImRect" + }, + { + "name": "flags", + "type": "ImGuiTabItemFlags" + }, + { + "name": "frame_padding", + "type": "ImVec2" + }, + { + "name": "label", + "type": "const char*" + }, + { + "name": "tab_id", + "type": "ImGuiID" + }, + { + "name": "close_button_id", + "type": "ImGuiID" + }, + { + "name": "is_contents_visible", + "type": "bool" + }, + { + "name": "out_just_closed", + "type": "bool*" + }, + { + "name": "out_text_clipped", + "type": "bool*" } ], - "argsoriginal": "(float scroll_x)", - "call_args": "(scroll_x)", - "cimguiname": "igSetScrollX", + "argsoriginal": "(ImDrawList* draw_list,const ImRect& bb,ImGuiTabItemFlags flags,ImVec2 frame_padding,const char* label,ImGuiID tab_id,ImGuiID close_button_id,bool is_contents_visible,bool* out_just_closed,bool* out_text_clipped)", + "call_args": "(draw_list,bb,flags,frame_padding,label,tab_id,close_button_id,is_contents_visible,out_just_closed,out_text_clipped)", + "cimguiname": "igTabItemLabelAndCloseButton", "defaults": {}, - "funcname": "SetScrollX", - "location": "imgui:399", + "funcname": "TabItemLabelAndCloseButton", + "location": "imgui_internal:3322", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollX", + "ov_cimguiname": "igTabItemLabelAndCloseButton", "ret": "void", - "signature": "(float)", + "signature": "(ImDrawList*,const ImRect,ImGuiTabItemFlags,ImVec2,const char*,ImGuiID,ImGuiID,bool,bool*,bool*)", "stname": "" } ], - "igSetScrollY": [ + "igTableBeginApplyRequests": [ { - "args": "(float scroll_y)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "scroll_y", - "type": "float" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(float scroll_y)", - "call_args": "(scroll_y)", - "cimguiname": "igSetScrollY", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableBeginApplyRequests", "defaults": {}, - "funcname": "SetScrollY", - "location": "imgui:400", + "funcname": "TableBeginApplyRequests", + "location": "imgui_internal:3269", "namespace": "ImGui", - "ov_cimguiname": "igSetScrollY", + "ov_cimguiname": "igTableBeginApplyRequests", "ret": "void", - "signature": "(float)", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igSetStateStorage": [ + "igTableBeginCell": [ { - "args": "(ImGuiStorage* storage)", + "args": "(ImGuiTable* table,int column_n)", "argsT": [ { - "name": "storage", - "type": "ImGuiStorage*" + "name": "table", + "type": "ImGuiTable*" + }, + { + "name": "column_n", + "type": "int" } ], - "argsoriginal": "(ImGuiStorage* storage)", - "call_args": "(storage)", - "cimguiname": "igSetStateStorage", + "argsoriginal": "(ImGuiTable* table,int column_n)", + "call_args": "(table,column_n)", + "cimguiname": "igTableBeginCell", "defaults": {}, - "funcname": "SetStateStorage", - "location": "imgui:902", + "funcname": "TableBeginCell", + "location": "imgui_internal:3286", "namespace": "ImGui", - "ov_cimguiname": "igSetStateStorage", + "ov_cimguiname": "igTableBeginCell", "ret": "void", - "signature": "(ImGuiStorage*)", + "signature": "(ImGuiTable*,int)", "stname": "" } ], - "igSetTabItemClosed": [ + "igTableBeginContextMenuPopup": [ { - "args": "(const char* tab_or_docked_window_label)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "tab_or_docked_window_label", - "type": "const char*" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const char* tab_or_docked_window_label)", - "call_args": "(tab_or_docked_window_label)", - "cimguiname": "igSetTabItemClosed", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableBeginContextMenuPopup", "defaults": {}, - "funcname": "SetTabItemClosed", - "location": "imgui:800", + "funcname": "TableBeginContextMenuPopup", + "location": "imgui_internal:3276", "namespace": "ImGui", - "ov_cimguiname": "igSetTabItemClosed", - "ret": "void", - "signature": "(const char*)", + "ov_cimguiname": "igTableBeginContextMenuPopup", + "ret": "bool", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igSetTooltip": [ + "igTableBeginInitMemory": [ { - "args": "(const char* fmt,...)", + "args": "(ImGuiTable* table,int columns_count)", "argsT": [ { - "name": "fmt", - "type": "const char*" + "name": "table", + "type": "ImGuiTable*" }, { - "name": "...", - "type": "..." + "name": "columns_count", + "type": "int" } ], - "argsoriginal": "(const char* fmt,...)", - "call_args": "(fmt,...)", - "cimguiname": "igSetTooltip", + "argsoriginal": "(ImGuiTable* table,int columns_count)", + "call_args": "(table,columns_count)", + "cimguiname": "igTableBeginInitMemory", "defaults": {}, - "funcname": "SetTooltip", - "isvararg": "...)", - "location": "imgui:678", + "funcname": "TableBeginInitMemory", + "location": "imgui_internal:3268", "namespace": "ImGui", - "ov_cimguiname": "igSetTooltip", + "ov_cimguiname": "igTableBeginInitMemory", "ret": "void", - "signature": "(const char*,...)", + "signature": "(ImGuiTable*,int)", "stname": "" } ], - "igSetTooltipV": [ + "igTableBeginRow": [ { - "args": "(const char* fmt,va_list args)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "fmt", - "type": "const char*" - }, - { - "name": "args", - "type": "va_list" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const char* fmt,va_list args)", - "call_args": "(fmt,args)", - "cimguiname": "igSetTooltipV", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableBeginRow", "defaults": {}, - "funcname": "SetTooltipV", - "location": "imgui:679", + "funcname": "TableBeginRow", + "location": "imgui_internal:3284", "namespace": "ImGui", - "ov_cimguiname": "igSetTooltipV", + "ov_cimguiname": "igTableBeginRow", "ret": "void", - "signature": "(const char*,va_list)", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igSetWindowCollapsed": [ + "igTableDrawBorders": [ { - "args": "(bool collapsed,ImGuiCond cond)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "collapsed", - "type": "bool" - }, - { - "name": "cond", - "type": "ImGuiCond" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(bool collapsed,ImGuiCond cond=0)", - "call_args": "(collapsed,cond)", - "cimguiname": "igSetWindowCollapsed", - "defaults": { - "cond": "0" - }, - "funcname": "SetWindowCollapsed", - "location": "imgui:378", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableDrawBorders", + "defaults": {}, + "funcname": "TableDrawBorders", + "location": "imgui_internal:3274", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowCollapsed_Bool", + "ov_cimguiname": "igTableDrawBorders", "ret": "void", - "signature": "(bool,ImGuiCond)", + "signature": "(ImGuiTable*)", "stname": "" - }, + } + ], + "igTableDrawContextMenu": [ { - "args": "(const char* name,bool collapsed,ImGuiCond cond)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "name", - "type": "const char*" - }, - { - "name": "collapsed", - "type": "bool" - }, - { - "name": "cond", - "type": "ImGuiCond" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const char* name,bool collapsed,ImGuiCond cond=0)", - "call_args": "(name,collapsed,cond)", - "cimguiname": "igSetWindowCollapsed", - "defaults": { - "cond": "0" - }, - "funcname": "SetWindowCollapsed", - "location": "imgui:383", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableDrawContextMenu", + "defaults": {}, + "funcname": "TableDrawContextMenu", + "location": "imgui_internal:3275", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowCollapsed_Str", + "ov_cimguiname": "igTableDrawContextMenu", "ret": "void", - "signature": "(const char*,bool,ImGuiCond)", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igSetWindowFocus": [ + "igTableEndCell": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igSetWindowFocus", + "args": "(ImGuiTable* table)", + "argsT": [ + { + "name": "table", + "type": "ImGuiTable*" + } + ], + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableEndCell", "defaults": {}, - "funcname": "SetWindowFocus", - "location": "imgui:379", + "funcname": "TableEndCell", + "location": "imgui_internal:3287", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowFocus_Nil", + "ov_cimguiname": "igTableEndCell", "ret": "void", - "signature": "()", + "signature": "(ImGuiTable*)", "stname": "" - }, + } + ], + "igTableEndRow": [ { - "args": "(const char* name)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "name", - "type": "const char*" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const char* name)", - "call_args": "(name)", - "cimguiname": "igSetWindowFocus", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableEndRow", "defaults": {}, - "funcname": "SetWindowFocus", - "location": "imgui:384", + "funcname": "TableEndRow", + "location": "imgui_internal:3285", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowFocus_Str", + "ov_cimguiname": "igTableEndRow", "ret": "void", - "signature": "(const char*)", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igSetWindowFontScale": [ + "igTableFindByID": [ { - "args": "(float scale)", + "args": "(ImGuiID id)", "argsT": [ { - "name": "scale", - "type": "float" + "name": "id", + "type": "ImGuiID" } ], - "argsoriginal": "(float scale)", - "call_args": "(scale)", - "cimguiname": "igSetWindowFontScale", + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igTableFindByID", "defaults": {}, - "funcname": "SetWindowFontScale", - "location": "imgui:380", + "funcname": "TableFindByID", + "location": "imgui_internal:3266", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowFontScale", - "ret": "void", - "signature": "(float)", + "ov_cimguiname": "igTableFindByID", + "ret": "ImGuiTable*", + "signature": "(ImGuiID)", "stname": "" } ], - "igSetWindowPos": [ + "igTableFixColumnSortDirection": [ { - "args": "(const ImVec2 pos,ImGuiCond cond)", + "args": "(ImGuiTable* table,ImGuiTableColumn* column)", "argsT": [ { - "name": "pos", - "type": "const ImVec2" + "name": "table", + "type": "ImGuiTable*" }, { - "name": "cond", - "type": "ImGuiCond" + "name": "column", + "type": "ImGuiTableColumn*" } ], - "argsoriginal": "(const ImVec2& pos,ImGuiCond cond=0)", - "call_args": "(pos,cond)", - "cimguiname": "igSetWindowPos", - "defaults": { - "cond": "0" - }, - "funcname": "SetWindowPos", - "location": "imgui:376", + "argsoriginal": "(ImGuiTable* table,ImGuiTableColumn* column)", + "call_args": "(table,column)", + "cimguiname": "igTableFixColumnSortDirection", + "defaults": {}, + "funcname": "TableFixColumnSortDirection", + "location": "imgui_internal:3282", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowPos_Vec2", + "ov_cimguiname": "igTableFixColumnSortDirection", "ret": "void", - "signature": "(const ImVec2,ImGuiCond)", + "signature": "(ImGuiTable*,ImGuiTableColumn*)", "stname": "" - }, + } + ], + "igTableGcCompactSettings": [ { - "args": "(const char* name,const ImVec2 pos,ImGuiCond cond)", - "argsT": [ - { - "name": "name", - "type": "const char*" - }, - { - "name": "pos", - "type": "const ImVec2" - }, - { - "name": "cond", - "type": "ImGuiCond" - } - ], - "argsoriginal": "(const char* name,const ImVec2& pos,ImGuiCond cond=0)", - "call_args": "(name,pos,cond)", - "cimguiname": "igSetWindowPos", - "defaults": { - "cond": "0" - }, - "funcname": "SetWindowPos", - "location": "imgui:381", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGcCompactSettings", + "defaults": {}, + "funcname": "TableGcCompactSettings", + "location": "imgui_internal:3297", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowPos_Str", + "ov_cimguiname": "igTableGcCompactSettings", "ret": "void", - "signature": "(const char*,const ImVec2,ImGuiCond)", + "signature": "()", "stname": "" } ], - "igSetWindowSize": [ + "igTableGcCompactTransientBuffers": [ { - "args": "(const ImVec2 size,ImGuiCond cond)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "size", - "type": "const ImVec2" - }, - { - "name": "cond", - "type": "ImGuiCond" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const ImVec2& size,ImGuiCond cond=0)", - "call_args": "(size,cond)", - "cimguiname": "igSetWindowSize", - "defaults": { - "cond": "0" - }, - "funcname": "SetWindowSize", - "location": "imgui:377", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableGcCompactTransientBuffers", + "defaults": {}, + "funcname": "TableGcCompactTransientBuffers", + "location": "imgui_internal:3295", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowSize_Vec2", + "ov_cimguiname": "igTableGcCompactTransientBuffers_TablePtr", "ret": "void", - "signature": "(const ImVec2,ImGuiCond)", + "signature": "(ImGuiTable*)", "stname": "" }, { - "args": "(const char* name,const ImVec2 size,ImGuiCond cond)", + "args": "(ImGuiTableTempData* table)", "argsT": [ { - "name": "name", - "type": "const char*" - }, - { - "name": "size", - "type": "const ImVec2" - }, - { - "name": "cond", - "type": "ImGuiCond" + "name": "table", + "type": "ImGuiTableTempData*" } ], - "argsoriginal": "(const char* name,const ImVec2& size,ImGuiCond cond=0)", - "call_args": "(name,size,cond)", - "cimguiname": "igSetWindowSize", - "defaults": { - "cond": "0" - }, - "funcname": "SetWindowSize", - "location": "imgui:382", + "argsoriginal": "(ImGuiTableTempData* table)", + "call_args": "(table)", + "cimguiname": "igTableGcCompactTransientBuffers", + "defaults": {}, + "funcname": "TableGcCompactTransientBuffers", + "location": "imgui_internal:3296", "namespace": "ImGui", - "ov_cimguiname": "igSetWindowSize_Str", + "ov_cimguiname": "igTableGcCompactTransientBuffers_TableTempDataPtr", "ret": "void", - "signature": "(const char*,const ImVec2,ImGuiCond)", + "signature": "(ImGuiTableTempData*)", "stname": "" } ], - "igShowAboutWindow": [ + "igTableGetBoundSettings": [ { - "args": "(bool* p_open)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "p_open", - "type": "bool*" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(bool* p_open=((void*)0))", - "call_args": "(p_open)", - "cimguiname": "igShowAboutWindow", - "defaults": { - "p_open": "NULL" - }, - "funcname": "ShowAboutWindow", - "location": "imgui:312", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableGetBoundSettings", + "defaults": {}, + "funcname": "TableGetBoundSettings", + "location": "imgui_internal:3303", "namespace": "ImGui", - "ov_cimguiname": "igShowAboutWindow", - "ret": "void", - "signature": "(bool*)", + "ov_cimguiname": "igTableGetBoundSettings", + "ret": "ImGuiTableSettings*", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igShowDebugLogWindow": [ + "igTableGetCellBgRect": [ { - "args": "(bool* p_open)", + "args": "(ImRect *pOut,const ImGuiTable* table,int column_n)", "argsT": [ { - "name": "p_open", - "type": "bool*" + "name": "pOut", + "type": "ImRect*" + }, + { + "name": "table", + "type": "const ImGuiTable*" + }, + { + "name": "column_n", + "type": "int" } ], - "argsoriginal": "(bool* p_open=((void*)0))", - "call_args": "(p_open)", - "cimguiname": "igShowDebugLogWindow", - "defaults": { - "p_open": "NULL" - }, - "funcname": "ShowDebugLogWindow", - "location": "imgui:310", + "argsoriginal": "(const ImGuiTable* table,int column_n)", + "call_args": "(table,column_n)", + "cimguiname": "igTableGetCellBgRect", + "defaults": {}, + "funcname": "TableGetCellBgRect", + "location": "imgui_internal:3288", "namespace": "ImGui", - "ov_cimguiname": "igShowDebugLogWindow", + "nonUDT": 1, + "ov_cimguiname": "igTableGetCellBgRect", "ret": "void", - "signature": "(bool*)", + "signature": "(const ImGuiTable*,int)", "stname": "" } ], - "igShowDemoWindow": [ + "igTableGetColumnCount": [ { - "args": "(bool* p_open)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetColumnCount", + "defaults": {}, + "funcname": "TableGetColumnCount", + "location": "imgui:774", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnCount", + "ret": "int", + "signature": "()", + "stname": "" + } + ], + "igTableGetColumnFlags": [ + { + "args": "(int column_n)", "argsT": [ { - "name": "p_open", - "type": "bool*" + "name": "column_n", + "type": "int" } ], - "argsoriginal": "(bool* p_open=((void*)0))", - "call_args": "(p_open)", - "cimguiname": "igShowDemoWindow", + "argsoriginal": "(int column_n=-1)", + "call_args": "(column_n)", + "cimguiname": "igTableGetColumnFlags", "defaults": { - "p_open": "NULL" + "column_n": "-1" }, - "funcname": "ShowDemoWindow", - "location": "imgui:308", + "funcname": "TableGetColumnFlags", + "location": "imgui:778", "namespace": "ImGui", - "ov_cimguiname": "igShowDemoWindow", - "ret": "void", - "signature": "(bool*)", + "ov_cimguiname": "igTableGetColumnFlags", + "ret": "ImGuiTableColumnFlags", + "signature": "(int)", "stname": "" } ], - "igShowFontSelector": [ + "igTableGetColumnIndex": [ { - "args": "(const char* label)", - "argsT": [ - { - "name": "label", - "type": "const char*" - } - ], - "argsoriginal": "(const char* label)", - "call_args": "(label)", - "cimguiname": "igShowFontSelector", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetColumnIndex", "defaults": {}, - "funcname": "ShowFontSelector", - "location": "imgui:315", + "funcname": "TableGetColumnIndex", + "location": "imgui:775", "namespace": "ImGui", - "ov_cimguiname": "igShowFontSelector", - "ret": "void", - "signature": "(const char*)", + "ov_cimguiname": "igTableGetColumnIndex", + "ret": "int", + "signature": "()", "stname": "" } ], - "igShowMetricsWindow": [ + "igTableGetColumnName": [ { - "args": "(bool* p_open)", + "args": "(int column_n)", "argsT": [ { - "name": "p_open", - "type": "bool*" + "name": "column_n", + "type": "int" } ], - "argsoriginal": "(bool* p_open=((void*)0))", - "call_args": "(p_open)", - "cimguiname": "igShowMetricsWindow", + "argsoriginal": "(int column_n=-1)", + "call_args": "(column_n)", + "cimguiname": "igTableGetColumnName", "defaults": { - "p_open": "NULL" + "column_n": "-1" }, - "funcname": "ShowMetricsWindow", - "location": "imgui:309", + "funcname": "TableGetColumnName", + "location": "imgui:777", "namespace": "ImGui", - "ov_cimguiname": "igShowMetricsWindow", - "ret": "void", - "signature": "(bool*)", + "ov_cimguiname": "igTableGetColumnName_Int", + "ret": "const char*", + "signature": "(int)", + "stname": "" + }, + { + "args": "(const ImGuiTable* table,int column_n)", + "argsT": [ + { + "name": "table", + "type": "const ImGuiTable*" + }, + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(const ImGuiTable* table,int column_n)", + "call_args": "(table,column_n)", + "cimguiname": "igTableGetColumnName", + "defaults": {}, + "funcname": "TableGetColumnName", + "location": "imgui_internal:3289", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnName_TablePtr", + "ret": "const char*", + "signature": "(const ImGuiTable*,int)", "stname": "" } ], - "igShowStackToolWindow": [ + "igTableGetColumnNextSortDirection": [ { - "args": "(bool* p_open)", + "args": "(ImGuiTableColumn* column)", "argsT": [ { - "name": "p_open", - "type": "bool*" + "name": "column", + "type": "ImGuiTableColumn*" } ], - "argsoriginal": "(bool* p_open=((void*)0))", - "call_args": "(p_open)", - "cimguiname": "igShowStackToolWindow", - "defaults": { - "p_open": "NULL" - }, - "funcname": "ShowStackToolWindow", - "location": "imgui:311", + "argsoriginal": "(ImGuiTableColumn* column)", + "call_args": "(column)", + "cimguiname": "igTableGetColumnNextSortDirection", + "defaults": {}, + "funcname": "TableGetColumnNextSortDirection", + "location": "imgui_internal:3281", "namespace": "ImGui", - "ov_cimguiname": "igShowStackToolWindow", - "ret": "void", - "signature": "(bool*)", + "ov_cimguiname": "igTableGetColumnNextSortDirection", + "ret": "ImGuiSortDirection", + "signature": "(ImGuiTableColumn*)", "stname": "" } ], - "igShowStyleEditor": [ + "igTableGetColumnResizeID": [ { - "args": "(ImGuiStyle* ref)", + "args": "(const ImGuiTable* table,int column_n,int instance_no)", "argsT": [ { - "name": "ref", - "type": "ImGuiStyle*" + "name": "table", + "type": "const ImGuiTable*" + }, + { + "name": "column_n", + "type": "int" + }, + { + "name": "instance_no", + "type": "int" } ], - "argsoriginal": "(ImGuiStyle* ref=((void*)0))", - "call_args": "(ref)", - "cimguiname": "igShowStyleEditor", + "argsoriginal": "(const ImGuiTable* table,int column_n,int instance_no=0)", + "call_args": "(table,column_n,instance_no)", + "cimguiname": "igTableGetColumnResizeID", "defaults": { - "ref": "NULL" + "instance_no": "0" }, - "funcname": "ShowStyleEditor", - "location": "imgui:313", + "funcname": "TableGetColumnResizeID", + "location": "imgui_internal:3290", "namespace": "ImGui", - "ov_cimguiname": "igShowStyleEditor", - "ret": "void", - "signature": "(ImGuiStyle*)", + "ov_cimguiname": "igTableGetColumnResizeID", + "ret": "ImGuiID", + "signature": "(const ImGuiTable*,int,int)", "stname": "" } ], - "igShowStyleSelector": [ + "igTableGetColumnWidthAuto": [ { - "args": "(const char* label)", + "args": "(ImGuiTable* table,ImGuiTableColumn* column)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "table", + "type": "ImGuiTable*" + }, + { + "name": "column", + "type": "ImGuiTableColumn*" } ], - "argsoriginal": "(const char* label)", - "call_args": "(label)", - "cimguiname": "igShowStyleSelector", + "argsoriginal": "(ImGuiTable* table,ImGuiTableColumn* column)", + "call_args": "(table,column)", + "cimguiname": "igTableGetColumnWidthAuto", "defaults": {}, - "funcname": "ShowStyleSelector", - "location": "imgui:314", + "funcname": "TableGetColumnWidthAuto", + "location": "imgui_internal:3283", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetColumnWidthAuto", + "ret": "float", + "signature": "(ImGuiTable*,ImGuiTableColumn*)", + "stname": "" + } + ], + "igTableGetHeaderRowHeight": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetHeaderRowHeight", + "defaults": {}, + "funcname": "TableGetHeaderRowHeight", + "location": "imgui_internal:3260", "namespace": "ImGui", - "ov_cimguiname": "igShowStyleSelector", - "ret": "bool", - "signature": "(const char*)", + "ov_cimguiname": "igTableGetHeaderRowHeight", + "ret": "float", + "signature": "()", "stname": "" } ], - "igShowUserGuide": [ + "igTableGetHoveredColumn": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igShowUserGuide", + "cimguiname": "igTableGetHoveredColumn", "defaults": {}, - "funcname": "ShowUserGuide", - "location": "imgui:316", + "funcname": "TableGetHoveredColumn", + "location": "imgui_internal:3259", "namespace": "ImGui", - "ov_cimguiname": "igShowUserGuide", - "ret": "void", + "ov_cimguiname": "igTableGetHoveredColumn", + "ret": "int", "signature": "()", "stname": "" } ], - "igSliderAngle": [ + "igTableGetInstanceData": [ { - "args": "(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTable* table,int instance_no)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v_rad", - "type": "float*" - }, - { - "name": "v_degrees_min", - "type": "float" - }, - { - "name": "v_degrees_max", - "type": "float" - }, - { - "name": "format", - "type": "const char*" + "name": "table", + "type": "ImGuiTable*" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "instance_no", + "type": "int" } ], - "argsoriginal": "(const char* label,float* v_rad,float v_degrees_min=-360.0f,float v_degrees_max=+360.0f,const char* format=\"%.0f deg\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v_rad,v_degrees_min,v_degrees_max,format,flags)", - "cimguiname": "igSliderAngle", - "defaults": { - "flags": "0", - "format": "\"%.0f deg\"", - "v_degrees_max": "+360.0f", - "v_degrees_min": "-360.0f" - }, - "funcname": "SliderAngle", - "location": "imgui:570", + "argsoriginal": "(ImGuiTable* table,int instance_no)", + "call_args": "(table,instance_no)", + "cimguiname": "igTableGetInstanceData", + "defaults": {}, + "funcname": "TableGetInstanceData", + "location": "imgui_internal:3278", "namespace": "ImGui", - "ov_cimguiname": "igSliderAngle", - "ret": "bool", - "signature": "(const char*,float*,float,float,const char*,ImGuiSliderFlags)", + "ov_cimguiname": "igTableGetInstanceData", + "ret": "ImGuiTableInstanceData*", + "signature": "(ImGuiTable*,int)", "stname": "" } ], - "igSliderFloat": [ + "igTableGetMaxColumnWidth": [ { - "args": "(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(const ImGuiTable* table,int column_n)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "float*" - }, - { - "name": "v_min", - "type": "float" - }, - { - "name": "v_max", - "type": "float" - }, - { - "name": "format", - "type": "const char*" + "name": "table", + "type": "const ImGuiTable*" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "column_n", + "type": "int" } ], - "argsoriginal": "(const char* label,float* v,float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_min,v_max,format,flags)", - "cimguiname": "igSliderFloat", - "defaults": { - "flags": "0", - "format": "\"%.3f\"" - }, - "funcname": "SliderFloat", - "location": "imgui:566", + "argsoriginal": "(const ImGuiTable* table,int column_n)", + "call_args": "(table,column_n)", + "cimguiname": "igTableGetMaxColumnWidth", + "defaults": {}, + "funcname": "TableGetMaxColumnWidth", + "location": "imgui_internal:3291", "namespace": "ImGui", - "ov_cimguiname": "igSliderFloat", - "ret": "bool", - "signature": "(const char*,float*,float,float,const char*,ImGuiSliderFlags)", + "ov_cimguiname": "igTableGetMaxColumnWidth", + "ret": "float", + "signature": "(const ImGuiTable*,int)", "stname": "" } ], - "igSliderFloat2": [ + "igTableGetRowIndex": [ { - "args": "(const char* label,float v[2],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", - "argsT": [ - { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "float[2]" - }, - { - "name": "v_min", - "type": "float" - }, - { - "name": "v_max", - "type": "float" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" - } - ], - "argsoriginal": "(const char* label,float v[2],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_min,v_max,format,flags)", - "cimguiname": "igSliderFloat2", - "defaults": { - "flags": "0", - "format": "\"%.3f\"" - }, - "funcname": "SliderFloat2", - "location": "imgui:567", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetRowIndex", + "defaults": {}, + "funcname": "TableGetRowIndex", + "location": "imgui:776", "namespace": "ImGui", - "ov_cimguiname": "igSliderFloat2", - "ret": "bool", - "signature": "(const char*,float[2],float,float,const char*,ImGuiSliderFlags)", + "ov_cimguiname": "igTableGetRowIndex", + "ret": "int", + "signature": "()", "stname": "" } ], - "igSliderFloat3": [ + "igTableGetSortSpecs": [ { - "args": "(const char* label,float v[3],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetSortSpecs", + "defaults": {}, + "funcname": "TableGetSortSpecs", + "location": "imgui:773", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetSortSpecs", + "ret": "ImGuiTableSortSpecs*", + "signature": "()", + "stname": "" + } + ], + "igTableHeader": [ + { + "args": "(const char* label)", "argsT": [ { "name": "label", "type": "const char*" - }, - { - "name": "v", - "type": "float[3]" - }, - { - "name": "v_min", - "type": "float" - }, - { - "name": "v_max", - "type": "float" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(const char* label,float v[3],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_min,v_max,format,flags)", - "cimguiname": "igSliderFloat3", - "defaults": { - "flags": "0", - "format": "\"%.3f\"" - }, - "funcname": "SliderFloat3", - "location": "imgui:568", + "argsoriginal": "(const char* label)", + "call_args": "(label)", + "cimguiname": "igTableHeader", + "defaults": {}, + "funcname": "TableHeader", + "location": "imgui:765", "namespace": "ImGui", - "ov_cimguiname": "igSliderFloat3", - "ret": "bool", - "signature": "(const char*,float[3],float,float,const char*,ImGuiSliderFlags)", + "ov_cimguiname": "igTableHeader", + "ret": "void", + "signature": "(const char*)", "stname": "" } ], - "igSliderFloat4": [ + "igTableHeadersRow": [ { - "args": "(const char* label,float v[4],float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableHeadersRow", + "defaults": {}, + "funcname": "TableHeadersRow", + "location": "imgui:764", + "namespace": "ImGui", + "ov_cimguiname": "igTableHeadersRow", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igTableLoadSettings": [ + { + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "float[4]" - }, - { - "name": "v_min", - "type": "float" - }, - { - "name": "v_max", - "type": "float" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const char* label,float v[4],float v_min,float v_max,const char* format=\"%.3f\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_min,v_max,format,flags)", - "cimguiname": "igSliderFloat4", - "defaults": { - "flags": "0", - "format": "\"%.3f\"" - }, - "funcname": "SliderFloat4", - "location": "imgui:569", - "namespace": "ImGui", - "ov_cimguiname": "igSliderFloat4", - "ret": "bool", - "signature": "(const char*,float[4],float,float,const char*,ImGuiSliderFlags)", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableLoadSettings", + "defaults": {}, + "funcname": "TableLoadSettings", + "location": "imgui_internal:3300", + "namespace": "ImGui", + "ov_cimguiname": "igTableLoadSettings", + "ret": "void", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igSliderInt": [ + "igTableMergeDrawChannels": [ { - "args": "(const char* label,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int*" - }, - { - "name": "v_min", - "type": "int" - }, - { - "name": "v_max", - "type": "int" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const char* label,int* v,int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_min,v_max,format,flags)", - "cimguiname": "igSliderInt", - "defaults": { - "flags": "0", - "format": "\"%d\"" - }, - "funcname": "SliderInt", - "location": "imgui:571", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableMergeDrawChannels", + "defaults": {}, + "funcname": "TableMergeDrawChannels", + "location": "imgui_internal:3277", "namespace": "ImGui", - "ov_cimguiname": "igSliderInt", + "ov_cimguiname": "igTableMergeDrawChannels", + "ret": "void", + "signature": "(ImGuiTable*)", + "stname": "" + } + ], + "igTableNextColumn": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableNextColumn", + "defaults": {}, + "funcname": "TableNextColumn", + "location": "imgui:751", + "namespace": "ImGui", + "ov_cimguiname": "igTableNextColumn", "ret": "bool", - "signature": "(const char*,int*,int,int,const char*,ImGuiSliderFlags)", + "signature": "()", "stname": "" } ], - "igSliderInt2": [ + "igTableNextRow": [ { - "args": "(const char* label,int v[2],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTableRowFlags row_flags,float min_row_height)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int[2]" - }, - { - "name": "v_min", - "type": "int" - }, - { - "name": "v_max", - "type": "int" - }, - { - "name": "format", - "type": "const char*" + "name": "row_flags", + "type": "ImGuiTableRowFlags" }, { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "min_row_height", + "type": "float" } ], - "argsoriginal": "(const char* label,int v[2],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_min,v_max,format,flags)", - "cimguiname": "igSliderInt2", + "argsoriginal": "(ImGuiTableRowFlags row_flags=0,float min_row_height=0.0f)", + "call_args": "(row_flags,min_row_height)", + "cimguiname": "igTableNextRow", "defaults": { - "flags": "0", - "format": "\"%d\"" + "min_row_height": "0.0f", + "row_flags": "0" }, - "funcname": "SliderInt2", - "location": "imgui:572", + "funcname": "TableNextRow", + "location": "imgui:750", "namespace": "ImGui", - "ov_cimguiname": "igSliderInt2", - "ret": "bool", - "signature": "(const char*,int[2],int,int,const char*,ImGuiSliderFlags)", + "ov_cimguiname": "igTableNextRow", + "ret": "void", + "signature": "(ImGuiTableRowFlags,float)", "stname": "" } ], - "igSliderInt3": [ + "igTableOpenContextMenu": [ { - "args": "(const char* label,int v[3],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "args": "(int column_n)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int[3]" - }, - { - "name": "v_min", - "type": "int" - }, - { - "name": "v_max", + "name": "column_n", "type": "int" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(const char* label,int v[3],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_min,v_max,format,flags)", - "cimguiname": "igSliderInt3", + "argsoriginal": "(int column_n=-1)", + "call_args": "(column_n)", + "cimguiname": "igTableOpenContextMenu", "defaults": { - "flags": "0", - "format": "\"%d\"" + "column_n": "-1" }, - "funcname": "SliderInt3", - "location": "imgui:573", + "funcname": "TableOpenContextMenu", + "location": "imgui_internal:3256", "namespace": "ImGui", - "ov_cimguiname": "igSliderInt3", - "ret": "bool", - "signature": "(const char*,int[3],int,int,const char*,ImGuiSliderFlags)", + "ov_cimguiname": "igTableOpenContextMenu", + "ret": "void", + "signature": "(int)", "stname": "" } ], - "igSliderInt4": [ + "igTablePopBackgroundChannel": [ { - "args": "(const char* label,int v[4],int v_min,int v_max,const char* format,ImGuiSliderFlags flags)", + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTablePopBackgroundChannel", + "defaults": {}, + "funcname": "TablePopBackgroundChannel", + "location": "imgui_internal:3262", + "namespace": "ImGui", + "ov_cimguiname": "igTablePopBackgroundChannel", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igTablePushBackgroundChannel": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTablePushBackgroundChannel", + "defaults": {}, + "funcname": "TablePushBackgroundChannel", + "location": "imgui_internal:3261", + "namespace": "ImGui", + "ov_cimguiname": "igTablePushBackgroundChannel", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igTableRemove": [ + { + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "v", - "type": "int[4]" - }, - { - "name": "v_min", - "type": "int" - }, - { - "name": "v_max", - "type": "int" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const char* label,int v[4],int v_min,int v_max,const char* format=\"%d\",ImGuiSliderFlags flags=0)", - "call_args": "(label,v,v_min,v_max,format,flags)", - "cimguiname": "igSliderInt4", - "defaults": { - "flags": "0", - "format": "\"%d\"" - }, - "funcname": "SliderInt4", - "location": "imgui:574", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableRemove", + "defaults": {}, + "funcname": "TableRemove", + "location": "imgui_internal:3294", "namespace": "ImGui", - "ov_cimguiname": "igSliderInt4", - "ret": "bool", - "signature": "(const char*,int[4],int,int,const char*,ImGuiSliderFlags)", + "ov_cimguiname": "igTableRemove", + "ret": "void", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igSliderScalar": [ + "igTableResetSettings": [ { - "args": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTable* table)", "argsT": [ { - "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*" - }, + "name": "table", + "type": "ImGuiTable*" + } + ], + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableResetSettings", + "defaults": {}, + "funcname": "TableResetSettings", + "location": "imgui_internal:3302", + "namespace": "ImGui", + "ov_cimguiname": "igTableResetSettings", + "ret": "void", + "signature": "(ImGuiTable*)", + "stname": "" + } + ], + "igTableSaveSettings": [ + { + "args": "(ImGuiTable* table)", + "argsT": [ { - "name": "flags", - "type": "ImGuiSliderFlags" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", - "call_args": "(label,data_type,p_data,p_min,p_max,format,flags)", - "cimguiname": "igSliderScalar", - "defaults": { - "flags": "0", - "format": "NULL" - }, - "funcname": "SliderScalar", - "location": "imgui:575", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableSaveSettings", + "defaults": {}, + "funcname": "TableSaveSettings", + "location": "imgui_internal:3301", "namespace": "ImGui", - "ov_cimguiname": "igSliderScalar", - "ret": "bool", - "signature": "(const char*,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags)", + "ov_cimguiname": "igTableSaveSettings", + "ret": "void", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igSliderScalarN": [ + "igTableSetBgColor": [ { - "args": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)", + "args": "(ImGuiTableBgTarget target,ImU32 color,int column_n)", "argsT": [ { - "name": "label", - "type": "const char*" - }, - { - "name": "data_type", - "type": "ImGuiDataType" + "name": "target", + "type": "ImGuiTableBgTarget" }, { - "name": "p_data", - "type": "void*" + "name": "color", + "type": "ImU32" }, { - "name": "components", + "name": "column_n", "type": "int" - }, - { - "name": "p_min", - "type": "const void*" - }, - { - "name": "p_max", - "type": "const void*" - }, - { - "name": "format", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiSliderFlags" } ], - "argsoriginal": "(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format=((void*)0),ImGuiSliderFlags flags=0)", - "call_args": "(label,data_type,p_data,components,p_min,p_max,format,flags)", - "cimguiname": "igSliderScalarN", + "argsoriginal": "(ImGuiTableBgTarget target,ImU32 color,int column_n=-1)", + "call_args": "(target,color,column_n)", + "cimguiname": "igTableSetBgColor", "defaults": { - "flags": "0", - "format": "NULL" + "column_n": "-1" }, - "funcname": "SliderScalarN", - "location": "imgui:576", + "funcname": "TableSetBgColor", + "location": "imgui:780", "namespace": "ImGui", - "ov_cimguiname": "igSliderScalarN", - "ret": "bool", - "signature": "(const char*,ImGuiDataType,void*,int,const void*,const void*,const char*,ImGuiSliderFlags)", + "ov_cimguiname": "igTableSetBgColor", + "ret": "void", + "signature": "(ImGuiTableBgTarget,ImU32,int)", "stname": "" } ], - "igSmallButton": [ + "igTableSetColumnEnabled": [ { - "args": "(const char* label)", + "args": "(int column_n,bool v)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "column_n", + "type": "int" + }, + { + "name": "v", + "type": "bool" } ], - "argsoriginal": "(const char* label)", - "call_args": "(label)", - "cimguiname": "igSmallButton", + "argsoriginal": "(int column_n,bool v)", + "call_args": "(column_n,v)", + "cimguiname": "igTableSetColumnEnabled", "defaults": {}, - "funcname": "SmallButton", - "location": "imgui:510", + "funcname": "TableSetColumnEnabled", + "location": "imgui:779", "namespace": "ImGui", - "ov_cimguiname": "igSmallButton", - "ret": "bool", - "signature": "(const char*)", + "ov_cimguiname": "igTableSetColumnEnabled", + "ret": "void", + "signature": "(int,bool)", "stname": "" } ], - "igSpacing": [ + "igTableSetColumnIndex": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igSpacing", + "args": "(int column_n)", + "argsT": [ + { + "name": "column_n", + "type": "int" + } + ], + "argsoriginal": "(int column_n)", + "call_args": "(column_n)", + "cimguiname": "igTableSetColumnIndex", "defaults": {}, - "funcname": "Spacing", - "location": "imgui:450", + "funcname": "TableSetColumnIndex", + "location": "imgui:752", "namespace": "ImGui", - "ov_cimguiname": "igSpacing", - "ret": "void", - "signature": "()", + "ov_cimguiname": "igTableSetColumnIndex", + "ret": "bool", + "signature": "(int)", "stname": "" } ], - "igStyleColorsClassic": [ + "igTableSetColumnSortDirection": [ { - "args": "(ImGuiStyle* dst)", + "args": "(int column_n,ImGuiSortDirection sort_direction,bool append_to_sort_specs)", "argsT": [ { - "name": "dst", - "type": "ImGuiStyle*" + "name": "column_n", + "type": "int" + }, + { + "name": "sort_direction", + "type": "ImGuiSortDirection" + }, + { + "name": "append_to_sort_specs", + "type": "bool" } ], - "argsoriginal": "(ImGuiStyle* dst=((void*)0))", - "call_args": "(dst)", - "cimguiname": "igStyleColorsClassic", - "defaults": { - "dst": "NULL" - }, - "funcname": "StyleColorsClassic", - "location": "imgui:322", + "argsoriginal": "(int column_n,ImGuiSortDirection sort_direction,bool append_to_sort_specs)", + "call_args": "(column_n,sort_direction,append_to_sort_specs)", + "cimguiname": "igTableSetColumnSortDirection", + "defaults": {}, + "funcname": "TableSetColumnSortDirection", + "location": "imgui_internal:3258", "namespace": "ImGui", - "ov_cimguiname": "igStyleColorsClassic", + "ov_cimguiname": "igTableSetColumnSortDirection", "ret": "void", - "signature": "(ImGuiStyle*)", + "signature": "(int,ImGuiSortDirection,bool)", "stname": "" } ], - "igStyleColorsDark": [ + "igTableSetColumnWidth": [ { - "args": "(ImGuiStyle* dst)", + "args": "(int column_n,float width)", "argsT": [ { - "name": "dst", - "type": "ImGuiStyle*" + "name": "column_n", + "type": "int" + }, + { + "name": "width", + "type": "float" } ], - "argsoriginal": "(ImGuiStyle* dst=((void*)0))", - "call_args": "(dst)", - "cimguiname": "igStyleColorsDark", - "defaults": { - "dst": "NULL" - }, - "funcname": "StyleColorsDark", - "location": "imgui:320", + "argsoriginal": "(int column_n,float width)", + "call_args": "(column_n,width)", + "cimguiname": "igTableSetColumnWidth", + "defaults": {}, + "funcname": "TableSetColumnWidth", + "location": "imgui_internal:3257", "namespace": "ImGui", - "ov_cimguiname": "igStyleColorsDark", + "ov_cimguiname": "igTableSetColumnWidth", "ret": "void", - "signature": "(ImGuiStyle*)", + "signature": "(int,float)", "stname": "" } ], - "igStyleColorsLight": [ + "igTableSetColumnWidthAutoAll": [ { - "args": "(ImGuiStyle* dst)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "dst", - "type": "ImGuiStyle*" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(ImGuiStyle* dst=((void*)0))", - "call_args": "(dst)", - "cimguiname": "igStyleColorsLight", - "defaults": { - "dst": "NULL" - }, - "funcname": "StyleColorsLight", - "location": "imgui:321", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableSetColumnWidthAutoAll", + "defaults": {}, + "funcname": "TableSetColumnWidthAutoAll", + "location": "imgui_internal:3293", "namespace": "ImGui", - "ov_cimguiname": "igStyleColorsLight", + "ov_cimguiname": "igTableSetColumnWidthAutoAll", "ret": "void", - "signature": "(ImGuiStyle*)", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igTabItemButton": [ + "igTableSetColumnWidthAutoSingle": [ { - "args": "(const char* label,ImGuiTabItemFlags flags)", + "args": "(ImGuiTable* table,int column_n)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "table", + "type": "ImGuiTable*" }, { - "name": "flags", - "type": "ImGuiTabItemFlags" + "name": "column_n", + "type": "int" } ], - "argsoriginal": "(const char* label,ImGuiTabItemFlags flags=0)", - "call_args": "(label,flags)", - "cimguiname": "igTabItemButton", - "defaults": { - "flags": "0" - }, - "funcname": "TabItemButton", - "location": "imgui:799", + "argsoriginal": "(ImGuiTable* table,int column_n)", + "call_args": "(table,column_n)", + "cimguiname": "igTableSetColumnWidthAutoSingle", + "defaults": {}, + "funcname": "TableSetColumnWidthAutoSingle", + "location": "imgui_internal:3292", "namespace": "ImGui", - "ov_cimguiname": "igTabItemButton", - "ret": "bool", - "signature": "(const char*,ImGuiTabItemFlags)", + "ov_cimguiname": "igTableSetColumnWidthAutoSingle", + "ret": "void", + "signature": "(ImGuiTable*,int)", "stname": "" } ], - "igTableGetColumnCount": [ + "igTableSettingsAddSettingsHandler": [ { "args": "()", "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "igTableGetColumnCount", + "cimguiname": "igTableSettingsAddSettingsHandler", "defaults": {}, - "funcname": "TableGetColumnCount", - "location": "imgui:774", + "funcname": "TableSettingsAddSettingsHandler", + "location": "imgui_internal:3304", "namespace": "ImGui", - "ov_cimguiname": "igTableGetColumnCount", - "ret": "int", + "ov_cimguiname": "igTableSettingsAddSettingsHandler", + "ret": "void", "signature": "()", "stname": "" } ], - "igTableGetColumnFlags": [ + "igTableSettingsCreate": [ { - "args": "(int column_n)", + "args": "(ImGuiID id,int columns_count)", "argsT": [ { - "name": "column_n", + "name": "id", + "type": "ImGuiID" + }, + { + "name": "columns_count", "type": "int" } ], - "argsoriginal": "(int column_n=-1)", - "call_args": "(column_n)", - "cimguiname": "igTableGetColumnFlags", + "argsoriginal": "(ImGuiID id,int columns_count)", + "call_args": "(id,columns_count)", + "cimguiname": "igTableSettingsCreate", + "defaults": {}, + "funcname": "TableSettingsCreate", + "location": "imgui_internal:3305", + "namespace": "ImGui", + "ov_cimguiname": "igTableSettingsCreate", + "ret": "ImGuiTableSettings*", + "signature": "(ImGuiID,int)", + "stname": "" + } + ], + "igTableSettingsFindByID": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igTableSettingsFindByID", + "defaults": {}, + "funcname": "TableSettingsFindByID", + "location": "imgui_internal:3306", + "namespace": "ImGui", + "ov_cimguiname": "igTableSettingsFindByID", + "ret": "ImGuiTableSettings*", + "signature": "(ImGuiID)", + "stname": "" + } + ], + "igTableSetupColumn": [ + { + "args": "(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)", + "argsT": [ + { + "name": "label", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTableColumnFlags" + }, + { + "name": "init_width_or_weight", + "type": "float" + }, + { + "name": "user_id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(const char* label,ImGuiTableColumnFlags flags=0,float init_width_or_weight=0.0f,ImGuiID user_id=0)", + "call_args": "(label,flags,init_width_or_weight,user_id)", + "cimguiname": "igTableSetupColumn", "defaults": { - "column_n": "-1" + "flags": "0", + "init_width_or_weight": "0.0f", + "user_id": "0" }, - "funcname": "TableGetColumnFlags", - "location": "imgui:778", + "funcname": "TableSetupColumn", + "location": "imgui:762", "namespace": "ImGui", - "ov_cimguiname": "igTableGetColumnFlags", - "ret": "ImGuiTableColumnFlags", - "signature": "(int)", + "ov_cimguiname": "igTableSetupColumn", + "ret": "void", + "signature": "(const char*,ImGuiTableColumnFlags,float,ImGuiID)", "stname": "" } ], - "igTableGetColumnIndex": [ + "igTableSetupDrawChannels": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igTableGetColumnIndex", + "args": "(ImGuiTable* table)", + "argsT": [ + { + "name": "table", + "type": "ImGuiTable*" + } + ], + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableSetupDrawChannels", "defaults": {}, - "funcname": "TableGetColumnIndex", - "location": "imgui:775", + "funcname": "TableSetupDrawChannels", + "location": "imgui_internal:3270", "namespace": "ImGui", - "ov_cimguiname": "igTableGetColumnIndex", - "ret": "int", - "signature": "()", + "ov_cimguiname": "igTableSetupDrawChannels", + "ret": "void", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igTableGetColumnName": [ + "igTableSetupScrollFreeze": [ { - "args": "(int column_n)", + "args": "(int cols,int rows)", "argsT": [ { - "name": "column_n", + "name": "cols", + "type": "int" + }, + { + "name": "rows", "type": "int" } ], - "argsoriginal": "(int column_n=-1)", - "call_args": "(column_n)", - "cimguiname": "igTableGetColumnName", - "defaults": { - "column_n": "-1" - }, - "funcname": "TableGetColumnName", - "location": "imgui:777", + "argsoriginal": "(int cols,int rows)", + "call_args": "(cols,rows)", + "cimguiname": "igTableSetupScrollFreeze", + "defaults": {}, + "funcname": "TableSetupScrollFreeze", + "location": "imgui:763", "namespace": "ImGui", - "ov_cimguiname": "igTableGetColumnName", - "ret": "const char*", - "signature": "(int)", + "ov_cimguiname": "igTableSetupScrollFreeze", + "ret": "void", + "signature": "(int,int)", "stname": "" } ], - "igTableGetRowIndex": [ + "igTableSortSpecsBuild": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igTableGetRowIndex", + "args": "(ImGuiTable* table)", + "argsT": [ + { + "name": "table", + "type": "ImGuiTable*" + } + ], + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableSortSpecsBuild", "defaults": {}, - "funcname": "TableGetRowIndex", - "location": "imgui:776", + "funcname": "TableSortSpecsBuild", + "location": "imgui_internal:3280", "namespace": "ImGui", - "ov_cimguiname": "igTableGetRowIndex", - "ret": "int", - "signature": "()", + "ov_cimguiname": "igTableSortSpecsBuild", + "ret": "void", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igTableGetSortSpecs": [ + "igTableSortSpecsSanitize": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igTableGetSortSpecs", + "args": "(ImGuiTable* table)", + "argsT": [ + { + "name": "table", + "type": "ImGuiTable*" + } + ], + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableSortSpecsSanitize", "defaults": {}, - "funcname": "TableGetSortSpecs", - "location": "imgui:773", + "funcname": "TableSortSpecsSanitize", + "location": "imgui_internal:3279", "namespace": "ImGui", - "ov_cimguiname": "igTableGetSortSpecs", - "ret": "ImGuiTableSortSpecs*", - "signature": "()", + "ov_cimguiname": "igTableSortSpecsSanitize", + "ret": "void", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igTableHeader": [ + "igTableUpdateBorders": [ { - "args": "(const char* label)", + "args": "(ImGuiTable* table)", "argsT": [ { - "name": "label", - "type": "const char*" + "name": "table", + "type": "ImGuiTable*" } ], - "argsoriginal": "(const char* label)", - "call_args": "(label)", - "cimguiname": "igTableHeader", + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableUpdateBorders", "defaults": {}, - "funcname": "TableHeader", - "location": "imgui:765", + "funcname": "TableUpdateBorders", + "location": "imgui_internal:3272", "namespace": "ImGui", - "ov_cimguiname": "igTableHeader", + "ov_cimguiname": "igTableUpdateBorders", "ret": "void", - "signature": "(const char*)", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igTableHeadersRow": [ + "igTableUpdateColumnsWeightFromWidth": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igTableHeadersRow", + "args": "(ImGuiTable* table)", + "argsT": [ + { + "name": "table", + "type": "ImGuiTable*" + } + ], + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableUpdateColumnsWeightFromWidth", "defaults": {}, - "funcname": "TableHeadersRow", - "location": "imgui:764", + "funcname": "TableUpdateColumnsWeightFromWidth", + "location": "imgui_internal:3273", "namespace": "ImGui", - "ov_cimguiname": "igTableHeadersRow", + "ov_cimguiname": "igTableUpdateColumnsWeightFromWidth", "ret": "void", - "signature": "()", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igTableNextColumn": [ + "igTableUpdateLayout": [ { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "igTableNextColumn", + "args": "(ImGuiTable* table)", + "argsT": [ + { + "name": "table", + "type": "ImGuiTable*" + } + ], + "argsoriginal": "(ImGuiTable* table)", + "call_args": "(table)", + "cimguiname": "igTableUpdateLayout", "defaults": {}, - "funcname": "TableNextColumn", - "location": "imgui:751", + "funcname": "TableUpdateLayout", + "location": "imgui_internal:3271", "namespace": "ImGui", - "ov_cimguiname": "igTableNextColumn", - "ret": "bool", - "signature": "()", + "ov_cimguiname": "igTableUpdateLayout", + "ret": "void", + "signature": "(ImGuiTable*)", "stname": "" } ], - "igTableNextRow": [ + "igTempInputIsActive": [ { - "args": "(ImGuiTableRowFlags row_flags,float min_row_height)", + "args": "(ImGuiID id)", "argsT": [ { - "name": "row_flags", - "type": "ImGuiTableRowFlags" - }, - { - "name": "min_row_height", - "type": "float" + "name": "id", + "type": "ImGuiID" } ], - "argsoriginal": "(ImGuiTableRowFlags row_flags=0,float min_row_height=0.0f)", - "call_args": "(row_flags,min_row_height)", - "cimguiname": "igTableNextRow", - "defaults": { - "min_row_height": "0.0f", - "row_flags": "0" - }, - "funcname": "TableNextRow", - "location": "imgui:750", + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igTempInputIsActive", + "defaults": {}, + "funcname": "TempInputIsActive", + "location": "imgui_internal:3398", "namespace": "ImGui", - "ov_cimguiname": "igTableNextRow", - "ret": "void", - "signature": "(ImGuiTableRowFlags,float)", + "ov_cimguiname": "igTempInputIsActive", + "ret": "bool", + "signature": "(ImGuiID)", "stname": "" } ], - "igTableSetBgColor": [ + "igTempInputScalar": [ { - "args": "(ImGuiTableBgTarget target,ImU32 color,int column_n)", + "args": "(const ImRect bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min,const void* p_clamp_max)", "argsT": [ { - "name": "target", - "type": "ImGuiTableBgTarget" + "name": "bb", + "type": "const ImRect" }, { - "name": "color", - "type": "ImU32" + "name": "id", + "type": "ImGuiID" }, { - "name": "column_n", - "type": "int" + "name": "label", + "type": "const char*" + }, + { + "name": "data_type", + "type": "ImGuiDataType" + }, + { + "name": "p_data", + "type": "void*" + }, + { + "name": "format", + "type": "const char*" + }, + { + "name": "p_clamp_min", + "type": "const void*" + }, + { + "name": "p_clamp_max", + "type": "const void*" } ], - "argsoriginal": "(ImGuiTableBgTarget target,ImU32 color,int column_n=-1)", - "call_args": "(target,color,column_n)", - "cimguiname": "igTableSetBgColor", + "argsoriginal": "(const ImRect& bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min=((void*)0),const void* p_clamp_max=((void*)0))", + "call_args": "(bb,id,label,data_type,p_data,format,p_clamp_min,p_clamp_max)", + "cimguiname": "igTempInputScalar", "defaults": { - "column_n": "-1" + "p_clamp_max": "NULL", + "p_clamp_min": "NULL" }, - "funcname": "TableSetBgColor", - "location": "imgui:780", + "funcname": "TempInputScalar", + "location": "imgui_internal:3397", "namespace": "ImGui", - "ov_cimguiname": "igTableSetBgColor", - "ret": "void", - "signature": "(ImGuiTableBgTarget,ImU32,int)", + "ov_cimguiname": "igTempInputScalar", + "ret": "bool", + "signature": "(const ImRect,ImGuiID,const char*,ImGuiDataType,void*,const char*,const void*,const void*)", "stname": "" } ], - "igTableSetColumnEnabled": [ + "igTempInputText": [ { - "args": "(int column_n,bool v)", + "args": "(const ImRect bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags)", "argsT": [ { - "name": "column_n", - "type": "int" + "name": "bb", + "type": "const ImRect" }, { - "name": "v", - "type": "bool" - } - ], - "argsoriginal": "(int column_n,bool v)", - "call_args": "(column_n,v)", - "cimguiname": "igTableSetColumnEnabled", - "defaults": {}, - "funcname": "TableSetColumnEnabled", - "location": "imgui:779", - "namespace": "ImGui", - "ov_cimguiname": "igTableSetColumnEnabled", - "ret": "void", - "signature": "(int,bool)", - "stname": "" - } - ], - "igTableSetColumnIndex": [ - { - "args": "(int column_n)", - "argsT": [ + "name": "id", + "type": "ImGuiID" + }, { - "name": "column_n", + "name": "label", + "type": "const char*" + }, + { + "name": "buf", + "type": "char*" + }, + { + "name": "buf_size", "type": "int" + }, + { + "name": "flags", + "type": "ImGuiInputTextFlags" } ], - "argsoriginal": "(int column_n)", - "call_args": "(column_n)", - "cimguiname": "igTableSetColumnIndex", + "argsoriginal": "(const ImRect& bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags)", + "call_args": "(bb,id,label,buf,buf_size,flags)", + "cimguiname": "igTempInputText", "defaults": {}, - "funcname": "TableSetColumnIndex", - "location": "imgui:752", + "funcname": "TempInputText", + "location": "imgui_internal:3396", "namespace": "ImGui", - "ov_cimguiname": "igTableSetColumnIndex", + "ov_cimguiname": "igTempInputText", "ret": "bool", - "signature": "(int)", + "signature": "(const ImRect,ImGuiID,const char*,char*,int,ImGuiInputTextFlags)", "stname": "" } ], - "igTableSetupColumn": [ + "igTestKeyOwner": [ { - "args": "(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)", - "argsT": [ - { - "name": "label", - "type": "const char*" - }, - { - "name": "flags", - "type": "ImGuiTableColumnFlags" - }, + "args": "(ImGuiKey key,ImGuiID owner_id)", + "argsT": [ { - "name": "init_width_or_weight", - "type": "float" + "name": "key", + "type": "ImGuiKey" }, { - "name": "user_id", + "name": "owner_id", "type": "ImGuiID" } ], - "argsoriginal": "(const char* label,ImGuiTableColumnFlags flags=0,float init_width_or_weight=0.0f,ImGuiID user_id=0)", - "call_args": "(label,flags,init_width_or_weight,user_id)", - "cimguiname": "igTableSetupColumn", - "defaults": { - "flags": "0", - "init_width_or_weight": "0.0f", - "user_id": "0" - }, - "funcname": "TableSetupColumn", - "location": "imgui:762", + "argsoriginal": "(ImGuiKey key,ImGuiID owner_id)", + "call_args": "(key,owner_id)", + "cimguiname": "igTestKeyOwner", + "defaults": {}, + "funcname": "TestKeyOwner", + "location": "imgui_internal:3141", "namespace": "ImGui", - "ov_cimguiname": "igTableSetupColumn", - "ret": "void", - "signature": "(const char*,ImGuiTableColumnFlags,float,ImGuiID)", + "ov_cimguiname": "igTestKeyOwner", + "ret": "bool", + "signature": "(ImGuiKey,ImGuiID)", "stname": "" } ], - "igTableSetupScrollFreeze": [ + "igTestShortcutRouting": [ { - "args": "(int cols,int rows)", + "args": "(ImGuiKeyChord key_chord,ImGuiID owner_id)", "argsT": [ { - "name": "cols", - "type": "int" + "name": "key_chord", + "type": "ImGuiKeyChord" }, { - "name": "rows", - "type": "int" + "name": "owner_id", + "type": "ImGuiID" } ], - "argsoriginal": "(int cols,int rows)", - "call_args": "(cols,rows)", - "cimguiname": "igTableSetupScrollFreeze", + "argsoriginal": "(ImGuiKeyChord key_chord,ImGuiID owner_id)", + "call_args": "(key_chord,owner_id)", + "cimguiname": "igTestShortcutRouting", "defaults": {}, - "funcname": "TableSetupScrollFreeze", - "location": "imgui:763", + "funcname": "TestShortcutRouting", + "location": "imgui_internal:3169", "namespace": "ImGui", - "ov_cimguiname": "igTableSetupScrollFreeze", - "ret": "void", - "signature": "(int,int)", + "ov_cimguiname": "igTestShortcutRouting", + "ret": "bool", + "signature": "(ImGuiKeyChord,ImGuiID)", "stname": "" } ], @@ -17568,6 +35068,39 @@ "stname": "" } ], + "igTextEx": [ + { + "args": "(const char* text,const char* text_end,ImGuiTextFlags flags)", + "argsT": [ + { + "name": "text", + "type": "const char*" + }, + { + "name": "text_end", + "type": "const char*" + }, + { + "name": "flags", + "type": "ImGuiTextFlags" + } + ], + "argsoriginal": "(const char* text,const char* text_end=((void*)0),ImGuiTextFlags flags=0)", + "call_args": "(text,text_end,flags)", + "cimguiname": "igTextEx", + "defaults": { + "flags": "0", + "text_end": "NULL" + }, + "funcname": "TextEx", + "location": "imgui_internal:3350", + "namespace": "ImGui", + "ov_cimguiname": "igTextEx", + "ret": "void", + "signature": "(const char*,const char*,ImGuiTextFlags)", + "stname": "" + } + ], "igTextUnformatted": [ { "args": "(const char* text,const char* text_end)", @@ -17675,6 +35208,36 @@ "stname": "" } ], + "igTranslateWindowsInViewport": [ + { + "args": "(ImGuiViewportP* viewport,const ImVec2 old_pos,const ImVec2 new_pos)", + "argsT": [ + { + "name": "viewport", + "type": "ImGuiViewportP*" + }, + { + "name": "old_pos", + "type": "const ImVec2" + }, + { + "name": "new_pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(ImGuiViewportP* viewport,const ImVec2& old_pos,const ImVec2& new_pos)", + "call_args": "(viewport,old_pos,new_pos)", + "cimguiname": "igTranslateWindowsInViewport", + "defaults": {}, + "funcname": "TranslateWindowsInViewport", + "location": "imgui_internal:2982", + "namespace": "ImGui", + "ov_cimguiname": "igTranslateWindowsInViewport", + "ret": "void", + "signature": "(ImGuiViewportP*,const ImVec2,const ImVec2)", + "stname": "" + } + ], "igTreeNode": [ { "args": "(const char* label)", @@ -17755,6 +35318,42 @@ "stname": "" } ], + "igTreeNodeBehavior": [ + { + "args": "(ImGuiID id,ImGuiTreeNodeFlags flags,const char* label,const char* label_end)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + }, + { + "name": "label", + "type": "const char*" + }, + { + "name": "label_end", + "type": "const char*" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiTreeNodeFlags flags,const char* label,const char* label_end=((void*)0))", + "call_args": "(id,flags,label,label_end)", + "cimguiname": "igTreeNodeBehavior", + "defaults": { + "label_end": "NULL" + }, + "funcname": "TreeNodeBehavior", + "location": "imgui_internal:3371", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeBehavior", + "ret": "bool", + "signature": "(ImGuiID,ImGuiTreeNodeFlags,const char*,const char*)", + "stname": "" + } + ], "igTreeNodeEx": [ { "args": "(const char* label,ImGuiTreeNodeFlags flags)", @@ -17915,6 +35514,58 @@ "stname": "" } ], + "igTreeNodeSetOpen": [ + { + "args": "(ImGuiID id,bool open)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "open", + "type": "bool" + } + ], + "argsoriginal": "(ImGuiID id,bool open)", + "call_args": "(id,open)", + "cimguiname": "igTreeNodeSetOpen", + "defaults": {}, + "funcname": "TreeNodeSetOpen", + "location": "imgui_internal:3373", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeSetOpen", + "ret": "void", + "signature": "(ImGuiID,bool)", + "stname": "" + } + ], + "igTreeNodeUpdateNextOpen": [ + { + "args": "(ImGuiID id,ImGuiTreeNodeFlags flags)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiTreeNodeFlags" + } + ], + "argsoriginal": "(ImGuiID id,ImGuiTreeNodeFlags flags)", + "call_args": "(id,flags)", + "cimguiname": "igTreeNodeUpdateNextOpen", + "defaults": {}, + "funcname": "TreeNodeUpdateNextOpen", + "location": "imgui_internal:3374", + "namespace": "ImGui", + "ov_cimguiname": "igTreeNodeUpdateNextOpen", + "ret": "bool", + "signature": "(ImGuiID,ImGuiTreeNodeFlags)", + "stname": "" + } + ], "igTreeNodeV": [ { "args": "(const char* str_id,const char* fmt,va_list args)", @@ -18032,6 +35683,28 @@ "stname": "" } ], + "igTreePushOverrideID": [ + { + "args": "(ImGuiID id)", + "argsT": [ + { + "name": "id", + "type": "ImGuiID" + } + ], + "argsoriginal": "(ImGuiID id)", + "call_args": "(id)", + "cimguiname": "igTreePushOverrideID", + "defaults": {}, + "funcname": "TreePushOverrideID", + "location": "imgui_internal:3372", + "namespace": "ImGui", + "ov_cimguiname": "igTreePushOverrideID", + "ret": "void", + "signature": "(ImGuiID)", + "stname": "" + } + ], "igUnindent": [ { "args": "(float indent_w)", @@ -18056,6 +35729,79 @@ "stname": "" } ], + "igUpdateHoveredWindowAndCaptureFlags": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igUpdateHoveredWindowAndCaptureFlags", + "defaults": {}, + "funcname": "UpdateHoveredWindowAndCaptureFlags", + "location": "imgui_internal:2970", + "namespace": "ImGui", + "ov_cimguiname": "igUpdateHoveredWindowAndCaptureFlags", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igUpdateInputEvents": [ + { + "args": "(bool trickle_fast_inputs)", + "argsT": [ + { + "name": "trickle_fast_inputs", + "type": "bool" + } + ], + "argsoriginal": "(bool trickle_fast_inputs)", + "call_args": "(trickle_fast_inputs)", + "cimguiname": "igUpdateInputEvents", + "defaults": {}, + "funcname": "UpdateInputEvents", + "location": "imgui_internal:2969", + "namespace": "ImGui", + "ov_cimguiname": "igUpdateInputEvents", + "ret": "void", + "signature": "(bool)", + "stname": "" + } + ], + "igUpdateMouseMovingWindowEndFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igUpdateMouseMovingWindowEndFrame", + "defaults": {}, + "funcname": "UpdateMouseMovingWindowEndFrame", + "location": "imgui_internal:2974", + "namespace": "ImGui", + "ov_cimguiname": "igUpdateMouseMovingWindowEndFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igUpdateMouseMovingWindowNewFrame": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igUpdateMouseMovingWindowNewFrame", + "defaults": {}, + "funcname": "UpdateMouseMovingWindowNewFrame", + "location": "imgui_internal:2973", + "namespace": "ImGui", + "ov_cimguiname": "igUpdateMouseMovingWindowNewFrame", + "ret": "void", + "signature": "()", + "stname": "" + } + ], "igUpdatePlatformWindows": [ { "args": "()", @@ -18073,6 +35819,36 @@ "stname": "" } ], + "igUpdateWindowParentAndRootLinks": [ + { + "args": "(ImGuiWindow* window,ImGuiWindowFlags flags,ImGuiWindow* parent_window)", + "argsT": [ + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "flags", + "type": "ImGuiWindowFlags" + }, + { + "name": "parent_window", + "type": "ImGuiWindow*" + } + ], + "argsoriginal": "(ImGuiWindow* window,ImGuiWindowFlags flags,ImGuiWindow* parent_window)", + "call_args": "(window,flags,parent_window)", + "cimguiname": "igUpdateWindowParentAndRootLinks", + "defaults": {}, + "funcname": "UpdateWindowParentAndRootLinks", + "location": "imgui_internal:2936", + "namespace": "ImGui", + "ov_cimguiname": "igUpdateWindowParentAndRootLinks", + "ret": "void", + "signature": "(ImGuiWindow*,ImGuiWindowFlags,ImGuiWindow*)", + "stname": "" + } + ], "igVSliderFloat": [ { "args": "(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)", @@ -18327,5 +36103,67 @@ "signature": "(const char*,float,const char*)", "stname": "" } + ], + "igWindowRectAbsToRel": [ + { + "args": "(ImRect *pOut,ImGuiWindow* window,const ImRect r)", + "argsT": [ + { + "name": "pOut", + "type": "ImRect*" + }, + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "r", + "type": "const ImRect" + } + ], + "argsoriginal": "(ImGuiWindow* window,const ImRect& r)", + "call_args": "(window,r)", + "cimguiname": "igWindowRectAbsToRel", + "defaults": {}, + "funcname": "WindowRectAbsToRel", + "location": "imgui_internal:2946", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igWindowRectAbsToRel", + "ret": "void", + "signature": "(ImGuiWindow*,const ImRect)", + "stname": "" + } + ], + "igWindowRectRelToAbs": [ + { + "args": "(ImRect *pOut,ImGuiWindow* window,const ImRect r)", + "argsT": [ + { + "name": "pOut", + "type": "ImRect*" + }, + { + "name": "window", + "type": "ImGuiWindow*" + }, + { + "name": "r", + "type": "const ImRect" + } + ], + "argsoriginal": "(ImGuiWindow* window,const ImRect& r)", + "call_args": "(window,r)", + "cimguiname": "igWindowRectRelToAbs", + "defaults": {}, + "funcname": "WindowRectRelToAbs", + "location": "imgui_internal:2947", + "namespace": "ImGui", + "nonUDT": 1, + "ov_cimguiname": "igWindowRectRelToAbs", + "ret": "void", + "signature": "(ImGuiWindow*,const ImRect)", + "stname": "" + } ] } \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/definitions.lua b/imgui-sys/third-party/imgui-docking-freetype/definitions.lua index eec924fc5..518f3153f 100644 --- a/imgui-sys/third-party/imgui-docking-freetype/definitions.lua +++ b/imgui-sys/third-party/imgui-docking-freetype/definitions.lua @@ -1,4 +1,496 @@ local defs = {} +defs["ImBitArray_ClearAllBits"] = {} +defs["ImBitArray_ClearAllBits"][1] = {} +defs["ImBitArray_ClearAllBits"][1]["args"] = "(ImBitArray* self)" +defs["ImBitArray_ClearAllBits"][1]["argsT"] = {} +defs["ImBitArray_ClearAllBits"][1]["argsT"][1] = {} +defs["ImBitArray_ClearAllBits"][1]["argsT"][1]["name"] = "self" +defs["ImBitArray_ClearAllBits"][1]["argsT"][1]["type"] = "ImBitArray*" +defs["ImBitArray_ClearAllBits"][1]["argsoriginal"] = "()" +defs["ImBitArray_ClearAllBits"][1]["call_args"] = "()" +defs["ImBitArray_ClearAllBits"][1]["cimguiname"] = "ImBitArray_ClearAllBits" +defs["ImBitArray_ClearAllBits"][1]["defaults"] = {} +defs["ImBitArray_ClearAllBits"][1]["funcname"] = "ClearAllBits" +defs["ImBitArray_ClearAllBits"][1]["location"] = "imgui_internal:582" +defs["ImBitArray_ClearAllBits"][1]["ov_cimguiname"] = "ImBitArray_ClearAllBits" +defs["ImBitArray_ClearAllBits"][1]["ret"] = "void" +defs["ImBitArray_ClearAllBits"][1]["signature"] = "()" +defs["ImBitArray_ClearAllBits"][1]["stname"] = "ImBitArray" +defs["ImBitArray_ClearAllBits"][1]["templated"] = true +defs["ImBitArray_ClearAllBits"]["()"] = defs["ImBitArray_ClearAllBits"][1] +defs["ImBitArray_ClearBit"] = {} +defs["ImBitArray_ClearBit"][1] = {} +defs["ImBitArray_ClearBit"][1]["args"] = "(ImBitArray* self,int n)" +defs["ImBitArray_ClearBit"][1]["argsT"] = {} +defs["ImBitArray_ClearBit"][1]["argsT"][1] = {} +defs["ImBitArray_ClearBit"][1]["argsT"][1]["name"] = "self" +defs["ImBitArray_ClearBit"][1]["argsT"][1]["type"] = "ImBitArray*" +defs["ImBitArray_ClearBit"][1]["argsT"][2] = {} +defs["ImBitArray_ClearBit"][1]["argsT"][2]["name"] = "n" +defs["ImBitArray_ClearBit"][1]["argsT"][2]["type"] = "int" +defs["ImBitArray_ClearBit"][1]["argsoriginal"] = "(int n)" +defs["ImBitArray_ClearBit"][1]["call_args"] = "(n)" +defs["ImBitArray_ClearBit"][1]["cimguiname"] = "ImBitArray_ClearBit" +defs["ImBitArray_ClearBit"][1]["defaults"] = {} +defs["ImBitArray_ClearBit"][1]["funcname"] = "ClearBit" +defs["ImBitArray_ClearBit"][1]["location"] = "imgui_internal:586" +defs["ImBitArray_ClearBit"][1]["ov_cimguiname"] = "ImBitArray_ClearBit" +defs["ImBitArray_ClearBit"][1]["ret"] = "void" +defs["ImBitArray_ClearBit"][1]["signature"] = "(int)" +defs["ImBitArray_ClearBit"][1]["stname"] = "ImBitArray" +defs["ImBitArray_ClearBit"][1]["templated"] = true +defs["ImBitArray_ClearBit"]["(int)"] = defs["ImBitArray_ClearBit"][1] +defs["ImBitArray_ImBitArray"] = {} +defs["ImBitArray_ImBitArray"][1] = {} +defs["ImBitArray_ImBitArray"][1]["args"] = "()" +defs["ImBitArray_ImBitArray"][1]["argsT"] = {} +defs["ImBitArray_ImBitArray"][1]["argsoriginal"] = "()" +defs["ImBitArray_ImBitArray"][1]["call_args"] = "()" +defs["ImBitArray_ImBitArray"][1]["cimguiname"] = "ImBitArray_ImBitArray" +defs["ImBitArray_ImBitArray"][1]["constructor"] = true +defs["ImBitArray_ImBitArray"][1]["defaults"] = {} +defs["ImBitArray_ImBitArray"][1]["funcname"] = "ImBitArray" +defs["ImBitArray_ImBitArray"][1]["location"] = "imgui_internal:581" +defs["ImBitArray_ImBitArray"][1]["ov_cimguiname"] = "ImBitArray_ImBitArray" +defs["ImBitArray_ImBitArray"][1]["signature"] = "()" +defs["ImBitArray_ImBitArray"][1]["stname"] = "ImBitArray" +defs["ImBitArray_ImBitArray"][1]["templated"] = true +defs["ImBitArray_ImBitArray"]["()"] = defs["ImBitArray_ImBitArray"][1] +defs["ImBitArray_SetAllBits"] = {} +defs["ImBitArray_SetAllBits"][1] = {} +defs["ImBitArray_SetAllBits"][1]["args"] = "(ImBitArray* self)" +defs["ImBitArray_SetAllBits"][1]["argsT"] = {} +defs["ImBitArray_SetAllBits"][1]["argsT"][1] = {} +defs["ImBitArray_SetAllBits"][1]["argsT"][1]["name"] = "self" +defs["ImBitArray_SetAllBits"][1]["argsT"][1]["type"] = "ImBitArray*" +defs["ImBitArray_SetAllBits"][1]["argsoriginal"] = "()" +defs["ImBitArray_SetAllBits"][1]["call_args"] = "()" +defs["ImBitArray_SetAllBits"][1]["cimguiname"] = "ImBitArray_SetAllBits" +defs["ImBitArray_SetAllBits"][1]["defaults"] = {} +defs["ImBitArray_SetAllBits"][1]["funcname"] = "SetAllBits" +defs["ImBitArray_SetAllBits"][1]["location"] = "imgui_internal:583" +defs["ImBitArray_SetAllBits"][1]["ov_cimguiname"] = "ImBitArray_SetAllBits" +defs["ImBitArray_SetAllBits"][1]["ret"] = "void" +defs["ImBitArray_SetAllBits"][1]["signature"] = "()" +defs["ImBitArray_SetAllBits"][1]["stname"] = "ImBitArray" +defs["ImBitArray_SetAllBits"][1]["templated"] = true +defs["ImBitArray_SetAllBits"]["()"] = defs["ImBitArray_SetAllBits"][1] +defs["ImBitArray_SetBit"] = {} +defs["ImBitArray_SetBit"][1] = {} +defs["ImBitArray_SetBit"][1]["args"] = "(ImBitArray* self,int n)" +defs["ImBitArray_SetBit"][1]["argsT"] = {} +defs["ImBitArray_SetBit"][1]["argsT"][1] = {} +defs["ImBitArray_SetBit"][1]["argsT"][1]["name"] = "self" +defs["ImBitArray_SetBit"][1]["argsT"][1]["type"] = "ImBitArray*" +defs["ImBitArray_SetBit"][1]["argsT"][2] = {} +defs["ImBitArray_SetBit"][1]["argsT"][2]["name"] = "n" +defs["ImBitArray_SetBit"][1]["argsT"][2]["type"] = "int" +defs["ImBitArray_SetBit"][1]["argsoriginal"] = "(int n)" +defs["ImBitArray_SetBit"][1]["call_args"] = "(n)" +defs["ImBitArray_SetBit"][1]["cimguiname"] = "ImBitArray_SetBit" +defs["ImBitArray_SetBit"][1]["defaults"] = {} +defs["ImBitArray_SetBit"][1]["funcname"] = "SetBit" +defs["ImBitArray_SetBit"][1]["location"] = "imgui_internal:585" +defs["ImBitArray_SetBit"][1]["ov_cimguiname"] = "ImBitArray_SetBit" +defs["ImBitArray_SetBit"][1]["ret"] = "void" +defs["ImBitArray_SetBit"][1]["signature"] = "(int)" +defs["ImBitArray_SetBit"][1]["stname"] = "ImBitArray" +defs["ImBitArray_SetBit"][1]["templated"] = true +defs["ImBitArray_SetBit"]["(int)"] = defs["ImBitArray_SetBit"][1] +defs["ImBitArray_SetBitRange"] = {} +defs["ImBitArray_SetBitRange"][1] = {} +defs["ImBitArray_SetBitRange"][1]["args"] = "(ImBitArray* self,int n,int n2)" +defs["ImBitArray_SetBitRange"][1]["argsT"] = {} +defs["ImBitArray_SetBitRange"][1]["argsT"][1] = {} +defs["ImBitArray_SetBitRange"][1]["argsT"][1]["name"] = "self" +defs["ImBitArray_SetBitRange"][1]["argsT"][1]["type"] = "ImBitArray*" +defs["ImBitArray_SetBitRange"][1]["argsT"][2] = {} +defs["ImBitArray_SetBitRange"][1]["argsT"][2]["name"] = "n" +defs["ImBitArray_SetBitRange"][1]["argsT"][2]["type"] = "int" +defs["ImBitArray_SetBitRange"][1]["argsT"][3] = {} +defs["ImBitArray_SetBitRange"][1]["argsT"][3]["name"] = "n2" +defs["ImBitArray_SetBitRange"][1]["argsT"][3]["type"] = "int" +defs["ImBitArray_SetBitRange"][1]["argsoriginal"] = "(int n,int n2)" +defs["ImBitArray_SetBitRange"][1]["call_args"] = "(n,n2)" +defs["ImBitArray_SetBitRange"][1]["cimguiname"] = "ImBitArray_SetBitRange" +defs["ImBitArray_SetBitRange"][1]["defaults"] = {} +defs["ImBitArray_SetBitRange"][1]["funcname"] = "SetBitRange" +defs["ImBitArray_SetBitRange"][1]["location"] = "imgui_internal:587" +defs["ImBitArray_SetBitRange"][1]["ov_cimguiname"] = "ImBitArray_SetBitRange" +defs["ImBitArray_SetBitRange"][1]["ret"] = "void" +defs["ImBitArray_SetBitRange"][1]["signature"] = "(int,int)" +defs["ImBitArray_SetBitRange"][1]["stname"] = "ImBitArray" +defs["ImBitArray_SetBitRange"][1]["templated"] = true +defs["ImBitArray_SetBitRange"]["(int,int)"] = defs["ImBitArray_SetBitRange"][1] +defs["ImBitArray_TestBit"] = {} +defs["ImBitArray_TestBit"][1] = {} +defs["ImBitArray_TestBit"][1]["args"] = "(ImBitArray* self,int n)" +defs["ImBitArray_TestBit"][1]["argsT"] = {} +defs["ImBitArray_TestBit"][1]["argsT"][1] = {} +defs["ImBitArray_TestBit"][1]["argsT"][1]["name"] = "self" +defs["ImBitArray_TestBit"][1]["argsT"][1]["type"] = "ImBitArray*" +defs["ImBitArray_TestBit"][1]["argsT"][2] = {} +defs["ImBitArray_TestBit"][1]["argsT"][2]["name"] = "n" +defs["ImBitArray_TestBit"][1]["argsT"][2]["type"] = "int" +defs["ImBitArray_TestBit"][1]["argsoriginal"] = "(int n)" +defs["ImBitArray_TestBit"][1]["call_args"] = "(n)" +defs["ImBitArray_TestBit"][1]["cimguiname"] = "ImBitArray_TestBit" +defs["ImBitArray_TestBit"][1]["defaults"] = {} +defs["ImBitArray_TestBit"][1]["funcname"] = "TestBit" +defs["ImBitArray_TestBit"][1]["location"] = "imgui_internal:584" +defs["ImBitArray_TestBit"][1]["ov_cimguiname"] = "ImBitArray_TestBit" +defs["ImBitArray_TestBit"][1]["ret"] = "bool" +defs["ImBitArray_TestBit"][1]["signature"] = "(int)const" +defs["ImBitArray_TestBit"][1]["stname"] = "ImBitArray" +defs["ImBitArray_TestBit"][1]["templated"] = true +defs["ImBitArray_TestBit"]["(int)const"] = defs["ImBitArray_TestBit"][1] +defs["ImBitArray_destroy"] = {} +defs["ImBitArray_destroy"][1] = {} +defs["ImBitArray_destroy"][1]["args"] = "(ImBitArray* self)" +defs["ImBitArray_destroy"][1]["argsT"] = {} +defs["ImBitArray_destroy"][1]["argsT"][1] = {} +defs["ImBitArray_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImBitArray_destroy"][1]["argsT"][1]["type"] = "ImBitArray*" +defs["ImBitArray_destroy"][1]["call_args"] = "(self)" +defs["ImBitArray_destroy"][1]["cimguiname"] = "ImBitArray_destroy" +defs["ImBitArray_destroy"][1]["defaults"] = {} +defs["ImBitArray_destroy"][1]["destructor"] = true +defs["ImBitArray_destroy"][1]["ov_cimguiname"] = "ImBitArray_destroy" +defs["ImBitArray_destroy"][1]["ret"] = "void" +defs["ImBitArray_destroy"][1]["signature"] = "(ImBitArray*)" +defs["ImBitArray_destroy"][1]["stname"] = "ImBitArray" +defs["ImBitArray_destroy"][1]["templated"] = true +defs["ImBitArray_destroy"]["(ImBitArray*)"] = defs["ImBitArray_destroy"][1] +defs["ImBitVector_Clear"] = {} +defs["ImBitVector_Clear"][1] = {} +defs["ImBitVector_Clear"][1]["args"] = "(ImBitVector* self)" +defs["ImBitVector_Clear"][1]["argsT"] = {} +defs["ImBitVector_Clear"][1]["argsT"][1] = {} +defs["ImBitVector_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImBitVector_Clear"][1]["argsT"][1]["type"] = "ImBitVector*" +defs["ImBitVector_Clear"][1]["argsoriginal"] = "()" +defs["ImBitVector_Clear"][1]["call_args"] = "()" +defs["ImBitVector_Clear"][1]["cimguiname"] = "ImBitVector_Clear" +defs["ImBitVector_Clear"][1]["defaults"] = {} +defs["ImBitVector_Clear"][1]["funcname"] = "Clear" +defs["ImBitVector_Clear"][1]["location"] = "imgui_internal:597" +defs["ImBitVector_Clear"][1]["ov_cimguiname"] = "ImBitVector_Clear" +defs["ImBitVector_Clear"][1]["ret"] = "void" +defs["ImBitVector_Clear"][1]["signature"] = "()" +defs["ImBitVector_Clear"][1]["stname"] = "ImBitVector" +defs["ImBitVector_Clear"]["()"] = defs["ImBitVector_Clear"][1] +defs["ImBitVector_ClearBit"] = {} +defs["ImBitVector_ClearBit"][1] = {} +defs["ImBitVector_ClearBit"][1]["args"] = "(ImBitVector* self,int n)" +defs["ImBitVector_ClearBit"][1]["argsT"] = {} +defs["ImBitVector_ClearBit"][1]["argsT"][1] = {} +defs["ImBitVector_ClearBit"][1]["argsT"][1]["name"] = "self" +defs["ImBitVector_ClearBit"][1]["argsT"][1]["type"] = "ImBitVector*" +defs["ImBitVector_ClearBit"][1]["argsT"][2] = {} +defs["ImBitVector_ClearBit"][1]["argsT"][2]["name"] = "n" +defs["ImBitVector_ClearBit"][1]["argsT"][2]["type"] = "int" +defs["ImBitVector_ClearBit"][1]["argsoriginal"] = "(int n)" +defs["ImBitVector_ClearBit"][1]["call_args"] = "(n)" +defs["ImBitVector_ClearBit"][1]["cimguiname"] = "ImBitVector_ClearBit" +defs["ImBitVector_ClearBit"][1]["defaults"] = {} +defs["ImBitVector_ClearBit"][1]["funcname"] = "ClearBit" +defs["ImBitVector_ClearBit"][1]["location"] = "imgui_internal:600" +defs["ImBitVector_ClearBit"][1]["ov_cimguiname"] = "ImBitVector_ClearBit" +defs["ImBitVector_ClearBit"][1]["ret"] = "void" +defs["ImBitVector_ClearBit"][1]["signature"] = "(int)" +defs["ImBitVector_ClearBit"][1]["stname"] = "ImBitVector" +defs["ImBitVector_ClearBit"]["(int)"] = defs["ImBitVector_ClearBit"][1] +defs["ImBitVector_Create"] = {} +defs["ImBitVector_Create"][1] = {} +defs["ImBitVector_Create"][1]["args"] = "(ImBitVector* self,int sz)" +defs["ImBitVector_Create"][1]["argsT"] = {} +defs["ImBitVector_Create"][1]["argsT"][1] = {} +defs["ImBitVector_Create"][1]["argsT"][1]["name"] = "self" +defs["ImBitVector_Create"][1]["argsT"][1]["type"] = "ImBitVector*" +defs["ImBitVector_Create"][1]["argsT"][2] = {} +defs["ImBitVector_Create"][1]["argsT"][2]["name"] = "sz" +defs["ImBitVector_Create"][1]["argsT"][2]["type"] = "int" +defs["ImBitVector_Create"][1]["argsoriginal"] = "(int sz)" +defs["ImBitVector_Create"][1]["call_args"] = "(sz)" +defs["ImBitVector_Create"][1]["cimguiname"] = "ImBitVector_Create" +defs["ImBitVector_Create"][1]["defaults"] = {} +defs["ImBitVector_Create"][1]["funcname"] = "Create" +defs["ImBitVector_Create"][1]["location"] = "imgui_internal:596" +defs["ImBitVector_Create"][1]["ov_cimguiname"] = "ImBitVector_Create" +defs["ImBitVector_Create"][1]["ret"] = "void" +defs["ImBitVector_Create"][1]["signature"] = "(int)" +defs["ImBitVector_Create"][1]["stname"] = "ImBitVector" +defs["ImBitVector_Create"]["(int)"] = defs["ImBitVector_Create"][1] +defs["ImBitVector_SetBit"] = {} +defs["ImBitVector_SetBit"][1] = {} +defs["ImBitVector_SetBit"][1]["args"] = "(ImBitVector* self,int n)" +defs["ImBitVector_SetBit"][1]["argsT"] = {} +defs["ImBitVector_SetBit"][1]["argsT"][1] = {} +defs["ImBitVector_SetBit"][1]["argsT"][1]["name"] = "self" +defs["ImBitVector_SetBit"][1]["argsT"][1]["type"] = "ImBitVector*" +defs["ImBitVector_SetBit"][1]["argsT"][2] = {} +defs["ImBitVector_SetBit"][1]["argsT"][2]["name"] = "n" +defs["ImBitVector_SetBit"][1]["argsT"][2]["type"] = "int" +defs["ImBitVector_SetBit"][1]["argsoriginal"] = "(int n)" +defs["ImBitVector_SetBit"][1]["call_args"] = "(n)" +defs["ImBitVector_SetBit"][1]["cimguiname"] = "ImBitVector_SetBit" +defs["ImBitVector_SetBit"][1]["defaults"] = {} +defs["ImBitVector_SetBit"][1]["funcname"] = "SetBit" +defs["ImBitVector_SetBit"][1]["location"] = "imgui_internal:599" +defs["ImBitVector_SetBit"][1]["ov_cimguiname"] = "ImBitVector_SetBit" +defs["ImBitVector_SetBit"][1]["ret"] = "void" +defs["ImBitVector_SetBit"][1]["signature"] = "(int)" +defs["ImBitVector_SetBit"][1]["stname"] = "ImBitVector" +defs["ImBitVector_SetBit"]["(int)"] = defs["ImBitVector_SetBit"][1] +defs["ImBitVector_TestBit"] = {} +defs["ImBitVector_TestBit"][1] = {} +defs["ImBitVector_TestBit"][1]["args"] = "(ImBitVector* self,int n)" +defs["ImBitVector_TestBit"][1]["argsT"] = {} +defs["ImBitVector_TestBit"][1]["argsT"][1] = {} +defs["ImBitVector_TestBit"][1]["argsT"][1]["name"] = "self" +defs["ImBitVector_TestBit"][1]["argsT"][1]["type"] = "ImBitVector*" +defs["ImBitVector_TestBit"][1]["argsT"][2] = {} +defs["ImBitVector_TestBit"][1]["argsT"][2]["name"] = "n" +defs["ImBitVector_TestBit"][1]["argsT"][2]["type"] = "int" +defs["ImBitVector_TestBit"][1]["argsoriginal"] = "(int n)" +defs["ImBitVector_TestBit"][1]["call_args"] = "(n)" +defs["ImBitVector_TestBit"][1]["cimguiname"] = "ImBitVector_TestBit" +defs["ImBitVector_TestBit"][1]["defaults"] = {} +defs["ImBitVector_TestBit"][1]["funcname"] = "TestBit" +defs["ImBitVector_TestBit"][1]["location"] = "imgui_internal:598" +defs["ImBitVector_TestBit"][1]["ov_cimguiname"] = "ImBitVector_TestBit" +defs["ImBitVector_TestBit"][1]["ret"] = "bool" +defs["ImBitVector_TestBit"][1]["signature"] = "(int)const" +defs["ImBitVector_TestBit"][1]["stname"] = "ImBitVector" +defs["ImBitVector_TestBit"]["(int)const"] = defs["ImBitVector_TestBit"][1] +defs["ImChunkStream_alloc_chunk"] = {} +defs["ImChunkStream_alloc_chunk"][1] = {} +defs["ImChunkStream_alloc_chunk"][1]["args"] = "(ImChunkStream* self,size_t sz)" +defs["ImChunkStream_alloc_chunk"][1]["argsT"] = {} +defs["ImChunkStream_alloc_chunk"][1]["argsT"][1] = {} +defs["ImChunkStream_alloc_chunk"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_alloc_chunk"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_alloc_chunk"][1]["argsT"][2] = {} +defs["ImChunkStream_alloc_chunk"][1]["argsT"][2]["name"] = "sz" +defs["ImChunkStream_alloc_chunk"][1]["argsT"][2]["type"] = "size_t" +defs["ImChunkStream_alloc_chunk"][1]["argsoriginal"] = "(size_t sz)" +defs["ImChunkStream_alloc_chunk"][1]["call_args"] = "(sz)" +defs["ImChunkStream_alloc_chunk"][1]["cimguiname"] = "ImChunkStream_alloc_chunk" +defs["ImChunkStream_alloc_chunk"][1]["defaults"] = {} +defs["ImChunkStream_alloc_chunk"][1]["funcname"] = "alloc_chunk" +defs["ImChunkStream_alloc_chunk"][1]["location"] = "imgui_internal:703" +defs["ImChunkStream_alloc_chunk"][1]["ov_cimguiname"] = "ImChunkStream_alloc_chunk" +defs["ImChunkStream_alloc_chunk"][1]["ret"] = "T*" +defs["ImChunkStream_alloc_chunk"][1]["signature"] = "(size_t)" +defs["ImChunkStream_alloc_chunk"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_alloc_chunk"][1]["templated"] = true +defs["ImChunkStream_alloc_chunk"]["(size_t)"] = defs["ImChunkStream_alloc_chunk"][1] +defs["ImChunkStream_begin"] = {} +defs["ImChunkStream_begin"][1] = {} +defs["ImChunkStream_begin"][1]["args"] = "(ImChunkStream* self)" +defs["ImChunkStream_begin"][1]["argsT"] = {} +defs["ImChunkStream_begin"][1]["argsT"][1] = {} +defs["ImChunkStream_begin"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_begin"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_begin"][1]["argsoriginal"] = "()" +defs["ImChunkStream_begin"][1]["call_args"] = "()" +defs["ImChunkStream_begin"][1]["cimguiname"] = "ImChunkStream_begin" +defs["ImChunkStream_begin"][1]["defaults"] = {} +defs["ImChunkStream_begin"][1]["funcname"] = "begin" +defs["ImChunkStream_begin"][1]["location"] = "imgui_internal:704" +defs["ImChunkStream_begin"][1]["ov_cimguiname"] = "ImChunkStream_begin" +defs["ImChunkStream_begin"][1]["ret"] = "T*" +defs["ImChunkStream_begin"][1]["signature"] = "()" +defs["ImChunkStream_begin"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_begin"][1]["templated"] = true +defs["ImChunkStream_begin"]["()"] = defs["ImChunkStream_begin"][1] +defs["ImChunkStream_chunk_size"] = {} +defs["ImChunkStream_chunk_size"][1] = {} +defs["ImChunkStream_chunk_size"][1]["args"] = "(ImChunkStream* self,const T* p)" +defs["ImChunkStream_chunk_size"][1]["argsT"] = {} +defs["ImChunkStream_chunk_size"][1]["argsT"][1] = {} +defs["ImChunkStream_chunk_size"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_chunk_size"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_chunk_size"][1]["argsT"][2] = {} +defs["ImChunkStream_chunk_size"][1]["argsT"][2]["name"] = "p" +defs["ImChunkStream_chunk_size"][1]["argsT"][2]["type"] = "const T*" +defs["ImChunkStream_chunk_size"][1]["argsoriginal"] = "(const T* p)" +defs["ImChunkStream_chunk_size"][1]["call_args"] = "(p)" +defs["ImChunkStream_chunk_size"][1]["cimguiname"] = "ImChunkStream_chunk_size" +defs["ImChunkStream_chunk_size"][1]["defaults"] = {} +defs["ImChunkStream_chunk_size"][1]["funcname"] = "chunk_size" +defs["ImChunkStream_chunk_size"][1]["location"] = "imgui_internal:706" +defs["ImChunkStream_chunk_size"][1]["ov_cimguiname"] = "ImChunkStream_chunk_size" +defs["ImChunkStream_chunk_size"][1]["ret"] = "int" +defs["ImChunkStream_chunk_size"][1]["signature"] = "(const T*)" +defs["ImChunkStream_chunk_size"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_chunk_size"][1]["templated"] = true +defs["ImChunkStream_chunk_size"]["(const T*)"] = defs["ImChunkStream_chunk_size"][1] +defs["ImChunkStream_clear"] = {} +defs["ImChunkStream_clear"][1] = {} +defs["ImChunkStream_clear"][1]["args"] = "(ImChunkStream* self)" +defs["ImChunkStream_clear"][1]["argsT"] = {} +defs["ImChunkStream_clear"][1]["argsT"][1] = {} +defs["ImChunkStream_clear"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_clear"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_clear"][1]["argsoriginal"] = "()" +defs["ImChunkStream_clear"][1]["call_args"] = "()" +defs["ImChunkStream_clear"][1]["cimguiname"] = "ImChunkStream_clear" +defs["ImChunkStream_clear"][1]["defaults"] = {} +defs["ImChunkStream_clear"][1]["funcname"] = "clear" +defs["ImChunkStream_clear"][1]["location"] = "imgui_internal:700" +defs["ImChunkStream_clear"][1]["ov_cimguiname"] = "ImChunkStream_clear" +defs["ImChunkStream_clear"][1]["ret"] = "void" +defs["ImChunkStream_clear"][1]["signature"] = "()" +defs["ImChunkStream_clear"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_clear"][1]["templated"] = true +defs["ImChunkStream_clear"]["()"] = defs["ImChunkStream_clear"][1] +defs["ImChunkStream_empty"] = {} +defs["ImChunkStream_empty"][1] = {} +defs["ImChunkStream_empty"][1]["args"] = "(ImChunkStream* self)" +defs["ImChunkStream_empty"][1]["argsT"] = {} +defs["ImChunkStream_empty"][1]["argsT"][1] = {} +defs["ImChunkStream_empty"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_empty"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_empty"][1]["argsoriginal"] = "()" +defs["ImChunkStream_empty"][1]["call_args"] = "()" +defs["ImChunkStream_empty"][1]["cimguiname"] = "ImChunkStream_empty" +defs["ImChunkStream_empty"][1]["defaults"] = {} +defs["ImChunkStream_empty"][1]["funcname"] = "empty" +defs["ImChunkStream_empty"][1]["location"] = "imgui_internal:701" +defs["ImChunkStream_empty"][1]["ov_cimguiname"] = "ImChunkStream_empty" +defs["ImChunkStream_empty"][1]["ret"] = "bool" +defs["ImChunkStream_empty"][1]["signature"] = "()const" +defs["ImChunkStream_empty"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_empty"][1]["templated"] = true +defs["ImChunkStream_empty"]["()const"] = defs["ImChunkStream_empty"][1] +defs["ImChunkStream_end"] = {} +defs["ImChunkStream_end"][1] = {} +defs["ImChunkStream_end"][1]["args"] = "(ImChunkStream* self)" +defs["ImChunkStream_end"][1]["argsT"] = {} +defs["ImChunkStream_end"][1]["argsT"][1] = {} +defs["ImChunkStream_end"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_end"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_end"][1]["argsoriginal"] = "()" +defs["ImChunkStream_end"][1]["call_args"] = "()" +defs["ImChunkStream_end"][1]["cimguiname"] = "ImChunkStream_end" +defs["ImChunkStream_end"][1]["defaults"] = {} +defs["ImChunkStream_end"][1]["funcname"] = "end" +defs["ImChunkStream_end"][1]["location"] = "imgui_internal:707" +defs["ImChunkStream_end"][1]["ov_cimguiname"] = "ImChunkStream_end" +defs["ImChunkStream_end"][1]["ret"] = "T*" +defs["ImChunkStream_end"][1]["signature"] = "()" +defs["ImChunkStream_end"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_end"][1]["templated"] = true +defs["ImChunkStream_end"]["()"] = defs["ImChunkStream_end"][1] +defs["ImChunkStream_next_chunk"] = {} +defs["ImChunkStream_next_chunk"][1] = {} +defs["ImChunkStream_next_chunk"][1]["args"] = "(ImChunkStream* self,T* p)" +defs["ImChunkStream_next_chunk"][1]["argsT"] = {} +defs["ImChunkStream_next_chunk"][1]["argsT"][1] = {} +defs["ImChunkStream_next_chunk"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_next_chunk"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_next_chunk"][1]["argsT"][2] = {} +defs["ImChunkStream_next_chunk"][1]["argsT"][2]["name"] = "p" +defs["ImChunkStream_next_chunk"][1]["argsT"][2]["type"] = "T*" +defs["ImChunkStream_next_chunk"][1]["argsoriginal"] = "(T* p)" +defs["ImChunkStream_next_chunk"][1]["call_args"] = "(p)" +defs["ImChunkStream_next_chunk"][1]["cimguiname"] = "ImChunkStream_next_chunk" +defs["ImChunkStream_next_chunk"][1]["defaults"] = {} +defs["ImChunkStream_next_chunk"][1]["funcname"] = "next_chunk" +defs["ImChunkStream_next_chunk"][1]["location"] = "imgui_internal:705" +defs["ImChunkStream_next_chunk"][1]["ov_cimguiname"] = "ImChunkStream_next_chunk" +defs["ImChunkStream_next_chunk"][1]["ret"] = "T*" +defs["ImChunkStream_next_chunk"][1]["signature"] = "(T*)" +defs["ImChunkStream_next_chunk"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_next_chunk"][1]["templated"] = true +defs["ImChunkStream_next_chunk"]["(T*)"] = defs["ImChunkStream_next_chunk"][1] +defs["ImChunkStream_offset_from_ptr"] = {} +defs["ImChunkStream_offset_from_ptr"][1] = {} +defs["ImChunkStream_offset_from_ptr"][1]["args"] = "(ImChunkStream* self,const T* p)" +defs["ImChunkStream_offset_from_ptr"][1]["argsT"] = {} +defs["ImChunkStream_offset_from_ptr"][1]["argsT"][1] = {} +defs["ImChunkStream_offset_from_ptr"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_offset_from_ptr"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_offset_from_ptr"][1]["argsT"][2] = {} +defs["ImChunkStream_offset_from_ptr"][1]["argsT"][2]["name"] = "p" +defs["ImChunkStream_offset_from_ptr"][1]["argsT"][2]["type"] = "const T*" +defs["ImChunkStream_offset_from_ptr"][1]["argsoriginal"] = "(const T* p)" +defs["ImChunkStream_offset_from_ptr"][1]["call_args"] = "(p)" +defs["ImChunkStream_offset_from_ptr"][1]["cimguiname"] = "ImChunkStream_offset_from_ptr" +defs["ImChunkStream_offset_from_ptr"][1]["defaults"] = {} +defs["ImChunkStream_offset_from_ptr"][1]["funcname"] = "offset_from_ptr" +defs["ImChunkStream_offset_from_ptr"][1]["location"] = "imgui_internal:708" +defs["ImChunkStream_offset_from_ptr"][1]["ov_cimguiname"] = "ImChunkStream_offset_from_ptr" +defs["ImChunkStream_offset_from_ptr"][1]["ret"] = "int" +defs["ImChunkStream_offset_from_ptr"][1]["signature"] = "(const T*)" +defs["ImChunkStream_offset_from_ptr"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_offset_from_ptr"][1]["templated"] = true +defs["ImChunkStream_offset_from_ptr"]["(const T*)"] = defs["ImChunkStream_offset_from_ptr"][1] +defs["ImChunkStream_ptr_from_offset"] = {} +defs["ImChunkStream_ptr_from_offset"][1] = {} +defs["ImChunkStream_ptr_from_offset"][1]["args"] = "(ImChunkStream* self,int off)" +defs["ImChunkStream_ptr_from_offset"][1]["argsT"] = {} +defs["ImChunkStream_ptr_from_offset"][1]["argsT"][1] = {} +defs["ImChunkStream_ptr_from_offset"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_ptr_from_offset"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_ptr_from_offset"][1]["argsT"][2] = {} +defs["ImChunkStream_ptr_from_offset"][1]["argsT"][2]["name"] = "off" +defs["ImChunkStream_ptr_from_offset"][1]["argsT"][2]["type"] = "int" +defs["ImChunkStream_ptr_from_offset"][1]["argsoriginal"] = "(int off)" +defs["ImChunkStream_ptr_from_offset"][1]["call_args"] = "(off)" +defs["ImChunkStream_ptr_from_offset"][1]["cimguiname"] = "ImChunkStream_ptr_from_offset" +defs["ImChunkStream_ptr_from_offset"][1]["defaults"] = {} +defs["ImChunkStream_ptr_from_offset"][1]["funcname"] = "ptr_from_offset" +defs["ImChunkStream_ptr_from_offset"][1]["location"] = "imgui_internal:709" +defs["ImChunkStream_ptr_from_offset"][1]["ov_cimguiname"] = "ImChunkStream_ptr_from_offset" +defs["ImChunkStream_ptr_from_offset"][1]["ret"] = "T*" +defs["ImChunkStream_ptr_from_offset"][1]["signature"] = "(int)" +defs["ImChunkStream_ptr_from_offset"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_ptr_from_offset"][1]["templated"] = true +defs["ImChunkStream_ptr_from_offset"]["(int)"] = defs["ImChunkStream_ptr_from_offset"][1] +defs["ImChunkStream_size"] = {} +defs["ImChunkStream_size"][1] = {} +defs["ImChunkStream_size"][1]["args"] = "(ImChunkStream* self)" +defs["ImChunkStream_size"][1]["argsT"] = {} +defs["ImChunkStream_size"][1]["argsT"][1] = {} +defs["ImChunkStream_size"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_size"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_size"][1]["argsoriginal"] = "()" +defs["ImChunkStream_size"][1]["call_args"] = "()" +defs["ImChunkStream_size"][1]["cimguiname"] = "ImChunkStream_size" +defs["ImChunkStream_size"][1]["defaults"] = {} +defs["ImChunkStream_size"][1]["funcname"] = "size" +defs["ImChunkStream_size"][1]["location"] = "imgui_internal:702" +defs["ImChunkStream_size"][1]["ov_cimguiname"] = "ImChunkStream_size" +defs["ImChunkStream_size"][1]["ret"] = "int" +defs["ImChunkStream_size"][1]["signature"] = "()const" +defs["ImChunkStream_size"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_size"][1]["templated"] = true +defs["ImChunkStream_size"]["()const"] = defs["ImChunkStream_size"][1] +defs["ImChunkStream_swap"] = {} +defs["ImChunkStream_swap"][1] = {} +defs["ImChunkStream_swap"][1]["args"] = "(ImChunkStream* self,ImChunkStream_T * rhs)" +defs["ImChunkStream_swap"][1]["argsT"] = {} +defs["ImChunkStream_swap"][1]["argsT"][1] = {} +defs["ImChunkStream_swap"][1]["argsT"][1]["name"] = "self" +defs["ImChunkStream_swap"][1]["argsT"][1]["type"] = "ImChunkStream*" +defs["ImChunkStream_swap"][1]["argsT"][2] = {} +defs["ImChunkStream_swap"][1]["argsT"][2]["name"] = "rhs" +defs["ImChunkStream_swap"][1]["argsT"][2]["reftoptr"] = true +defs["ImChunkStream_swap"][1]["argsT"][2]["type"] = "ImChunkStream_T *" +defs["ImChunkStream_swap"][1]["argsoriginal"] = "(ImChunkStream& rhs)" +defs["ImChunkStream_swap"][1]["call_args"] = "(*rhs)" +defs["ImChunkStream_swap"][1]["cimguiname"] = "ImChunkStream_swap" +defs["ImChunkStream_swap"][1]["defaults"] = {} +defs["ImChunkStream_swap"][1]["funcname"] = "swap" +defs["ImChunkStream_swap"][1]["location"] = "imgui_internal:710" +defs["ImChunkStream_swap"][1]["ov_cimguiname"] = "ImChunkStream_swap" +defs["ImChunkStream_swap"][1]["ret"] = "void" +defs["ImChunkStream_swap"][1]["signature"] = "(ImChunkStream_T *)" +defs["ImChunkStream_swap"][1]["stname"] = "ImChunkStream" +defs["ImChunkStream_swap"][1]["templated"] = true +defs["ImChunkStream_swap"]["(ImChunkStream_T *)"] = defs["ImChunkStream_swap"][1] defs["ImColor_HSV"] = {} defs["ImColor_HSV"][1] = {} defs["ImColor_HSV"][1]["args"] = "(ImColor *pOut,float h,float s,float v,float a)" @@ -231,6 +723,78 @@ defs["ImDrawCmd_destroy"][1]["ret"] = "void" defs["ImDrawCmd_destroy"][1]["signature"] = "(ImDrawCmd*)" defs["ImDrawCmd_destroy"][1]["stname"] = "ImDrawCmd" defs["ImDrawCmd_destroy"]["(ImDrawCmd*)"] = defs["ImDrawCmd_destroy"][1] +defs["ImDrawDataBuilder_Clear"] = {} +defs["ImDrawDataBuilder_Clear"][1] = {} +defs["ImDrawDataBuilder_Clear"][1]["args"] = "(ImDrawDataBuilder* self)" +defs["ImDrawDataBuilder_Clear"][1]["argsT"] = {} +defs["ImDrawDataBuilder_Clear"][1]["argsT"][1] = {} +defs["ImDrawDataBuilder_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImDrawDataBuilder_Clear"][1]["argsT"][1]["type"] = "ImDrawDataBuilder*" +defs["ImDrawDataBuilder_Clear"][1]["argsoriginal"] = "()" +defs["ImDrawDataBuilder_Clear"][1]["call_args"] = "()" +defs["ImDrawDataBuilder_Clear"][1]["cimguiname"] = "ImDrawDataBuilder_Clear" +defs["ImDrawDataBuilder_Clear"][1]["defaults"] = {} +defs["ImDrawDataBuilder_Clear"][1]["funcname"] = "Clear" +defs["ImDrawDataBuilder_Clear"][1]["location"] = "imgui_internal:786" +defs["ImDrawDataBuilder_Clear"][1]["ov_cimguiname"] = "ImDrawDataBuilder_Clear" +defs["ImDrawDataBuilder_Clear"][1]["ret"] = "void" +defs["ImDrawDataBuilder_Clear"][1]["signature"] = "()" +defs["ImDrawDataBuilder_Clear"][1]["stname"] = "ImDrawDataBuilder" +defs["ImDrawDataBuilder_Clear"]["()"] = defs["ImDrawDataBuilder_Clear"][1] +defs["ImDrawDataBuilder_ClearFreeMemory"] = {} +defs["ImDrawDataBuilder_ClearFreeMemory"][1] = {} +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["args"] = "(ImDrawDataBuilder* self)" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["argsT"] = {} +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["argsT"][1] = {} +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["argsT"][1]["name"] = "self" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["argsT"][1]["type"] = "ImDrawDataBuilder*" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["argsoriginal"] = "()" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["call_args"] = "()" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["cimguiname"] = "ImDrawDataBuilder_ClearFreeMemory" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["defaults"] = {} +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["funcname"] = "ClearFreeMemory" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["location"] = "imgui_internal:787" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["ov_cimguiname"] = "ImDrawDataBuilder_ClearFreeMemory" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["ret"] = "void" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["signature"] = "()" +defs["ImDrawDataBuilder_ClearFreeMemory"][1]["stname"] = "ImDrawDataBuilder" +defs["ImDrawDataBuilder_ClearFreeMemory"]["()"] = defs["ImDrawDataBuilder_ClearFreeMemory"][1] +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"] = {} +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1] = {} +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["args"] = "(ImDrawDataBuilder* self)" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["argsT"] = {} +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["argsT"][1] = {} +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["argsT"][1]["name"] = "self" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["argsT"][1]["type"] = "ImDrawDataBuilder*" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["argsoriginal"] = "()" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["call_args"] = "()" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["cimguiname"] = "ImDrawDataBuilder_FlattenIntoSingleLayer" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["defaults"] = {} +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["funcname"] = "FlattenIntoSingleLayer" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["location"] = "imgui_internal:789" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["ov_cimguiname"] = "ImDrawDataBuilder_FlattenIntoSingleLayer" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["ret"] = "void" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["signature"] = "()" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1]["stname"] = "ImDrawDataBuilder" +defs["ImDrawDataBuilder_FlattenIntoSingleLayer"]["()"] = defs["ImDrawDataBuilder_FlattenIntoSingleLayer"][1] +defs["ImDrawDataBuilder_GetDrawListCount"] = {} +defs["ImDrawDataBuilder_GetDrawListCount"][1] = {} +defs["ImDrawDataBuilder_GetDrawListCount"][1]["args"] = "(ImDrawDataBuilder* self)" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["argsT"] = {} +defs["ImDrawDataBuilder_GetDrawListCount"][1]["argsT"][1] = {} +defs["ImDrawDataBuilder_GetDrawListCount"][1]["argsT"][1]["name"] = "self" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["argsT"][1]["type"] = "ImDrawDataBuilder*" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["argsoriginal"] = "()" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["call_args"] = "()" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["cimguiname"] = "ImDrawDataBuilder_GetDrawListCount" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["defaults"] = {} +defs["ImDrawDataBuilder_GetDrawListCount"][1]["funcname"] = "GetDrawListCount" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["location"] = "imgui_internal:788" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["ov_cimguiname"] = "ImDrawDataBuilder_GetDrawListCount" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["ret"] = "int" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["signature"] = "()const" +defs["ImDrawDataBuilder_GetDrawListCount"][1]["stname"] = "ImDrawDataBuilder" +defs["ImDrawDataBuilder_GetDrawListCount"]["()const"] = defs["ImDrawDataBuilder_GetDrawListCount"][1] defs["ImDrawData_Clear"] = {} defs["ImDrawData_Clear"][1] = {} defs["ImDrawData_Clear"][1]["args"] = "(ImDrawData* self)" @@ -319,6 +883,58 @@ defs["ImDrawData_destroy"][1]["ret"] = "void" defs["ImDrawData_destroy"][1]["signature"] = "(ImDrawData*)" defs["ImDrawData_destroy"][1]["stname"] = "ImDrawData" defs["ImDrawData_destroy"]["(ImDrawData*)"] = defs["ImDrawData_destroy"][1] +defs["ImDrawListSharedData_ImDrawListSharedData"] = {} +defs["ImDrawListSharedData_ImDrawListSharedData"][1] = {} +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["args"] = "()" +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["argsT"] = {} +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["argsoriginal"] = "()" +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["call_args"] = "()" +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["cimguiname"] = "ImDrawListSharedData_ImDrawListSharedData" +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["constructor"] = true +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["defaults"] = {} +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["funcname"] = "ImDrawListSharedData" +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["location"] = "imgui_internal:778" +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["ov_cimguiname"] = "ImDrawListSharedData_ImDrawListSharedData" +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["signature"] = "()" +defs["ImDrawListSharedData_ImDrawListSharedData"][1]["stname"] = "ImDrawListSharedData" +defs["ImDrawListSharedData_ImDrawListSharedData"]["()"] = defs["ImDrawListSharedData_ImDrawListSharedData"][1] +defs["ImDrawListSharedData_SetCircleTessellationMaxError"] = {} +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1] = {} +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["args"] = "(ImDrawListSharedData* self,float max_error)" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["argsT"] = {} +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["argsT"][1] = {} +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["argsT"][1]["type"] = "ImDrawListSharedData*" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["argsT"][2] = {} +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["argsT"][2]["name"] = "max_error" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["argsT"][2]["type"] = "float" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["argsoriginal"] = "(float max_error)" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["call_args"] = "(max_error)" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["cimguiname"] = "ImDrawListSharedData_SetCircleTessellationMaxError" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["defaults"] = {} +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["funcname"] = "SetCircleTessellationMaxError" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["location"] = "imgui_internal:779" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["ov_cimguiname"] = "ImDrawListSharedData_SetCircleTessellationMaxError" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["ret"] = "void" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["signature"] = "(float)" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1]["stname"] = "ImDrawListSharedData" +defs["ImDrawListSharedData_SetCircleTessellationMaxError"]["(float)"] = defs["ImDrawListSharedData_SetCircleTessellationMaxError"][1] +defs["ImDrawListSharedData_destroy"] = {} +defs["ImDrawListSharedData_destroy"][1] = {} +defs["ImDrawListSharedData_destroy"][1]["args"] = "(ImDrawListSharedData* self)" +defs["ImDrawListSharedData_destroy"][1]["argsT"] = {} +defs["ImDrawListSharedData_destroy"][1]["argsT"][1] = {} +defs["ImDrawListSharedData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImDrawListSharedData_destroy"][1]["argsT"][1]["type"] = "ImDrawListSharedData*" +defs["ImDrawListSharedData_destroy"][1]["call_args"] = "(self)" +defs["ImDrawListSharedData_destroy"][1]["cimguiname"] = "ImDrawListSharedData_destroy" +defs["ImDrawListSharedData_destroy"][1]["defaults"] = {} +defs["ImDrawListSharedData_destroy"][1]["destructor"] = true +defs["ImDrawListSharedData_destroy"][1]["ov_cimguiname"] = "ImDrawListSharedData_destroy" +defs["ImDrawListSharedData_destroy"][1]["ret"] = "void" +defs["ImDrawListSharedData_destroy"][1]["signature"] = "(ImDrawListSharedData*)" +defs["ImDrawListSharedData_destroy"][1]["stname"] = "ImDrawListSharedData" +defs["ImDrawListSharedData_destroy"]["(ImDrawListSharedData*)"] = defs["ImDrawListSharedData_destroy"][1] defs["ImDrawListSplitter_Clear"] = {} defs["ImDrawListSplitter_Clear"][1] = {} defs["ImDrawListSplitter_Clear"][1]["args"] = "(ImDrawListSplitter* self)" @@ -3650,6 +4266,392 @@ defs["ImFont_destroy"][1]["ret"] = "void" defs["ImFont_destroy"][1]["signature"] = "(ImFont*)" defs["ImFont_destroy"][1]["stname"] = "ImFont" defs["ImFont_destroy"]["(ImFont*)"] = defs["ImFont_destroy"][1] +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"] = {} +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1] = {} +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["args"] = "()" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["argsT"] = {} +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["argsoriginal"] = "()" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["call_args"] = "()" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["cimguiname"] = "ImGuiComboPreviewData_ImGuiComboPreviewData" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["constructor"] = true +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["defaults"] = {} +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["funcname"] = "ImGuiComboPreviewData" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["location"] = "imgui_internal:1018" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["ov_cimguiname"] = "ImGuiComboPreviewData_ImGuiComboPreviewData" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["signature"] = "()" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1]["stname"] = "ImGuiComboPreviewData" +defs["ImGuiComboPreviewData_ImGuiComboPreviewData"]["()"] = defs["ImGuiComboPreviewData_ImGuiComboPreviewData"][1] +defs["ImGuiComboPreviewData_destroy"] = {} +defs["ImGuiComboPreviewData_destroy"][1] = {} +defs["ImGuiComboPreviewData_destroy"][1]["args"] = "(ImGuiComboPreviewData* self)" +defs["ImGuiComboPreviewData_destroy"][1]["argsT"] = {} +defs["ImGuiComboPreviewData_destroy"][1]["argsT"][1] = {} +defs["ImGuiComboPreviewData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiComboPreviewData_destroy"][1]["argsT"][1]["type"] = "ImGuiComboPreviewData*" +defs["ImGuiComboPreviewData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiComboPreviewData_destroy"][1]["cimguiname"] = "ImGuiComboPreviewData_destroy" +defs["ImGuiComboPreviewData_destroy"][1]["defaults"] = {} +defs["ImGuiComboPreviewData_destroy"][1]["destructor"] = true +defs["ImGuiComboPreviewData_destroy"][1]["ov_cimguiname"] = "ImGuiComboPreviewData_destroy" +defs["ImGuiComboPreviewData_destroy"][1]["ret"] = "void" +defs["ImGuiComboPreviewData_destroy"][1]["signature"] = "(ImGuiComboPreviewData*)" +defs["ImGuiComboPreviewData_destroy"][1]["stname"] = "ImGuiComboPreviewData" +defs["ImGuiComboPreviewData_destroy"]["(ImGuiComboPreviewData*)"] = defs["ImGuiComboPreviewData_destroy"][1] +defs["ImGuiContextHook_ImGuiContextHook"] = {} +defs["ImGuiContextHook_ImGuiContextHook"][1] = {} +defs["ImGuiContextHook_ImGuiContextHook"][1]["args"] = "()" +defs["ImGuiContextHook_ImGuiContextHook"][1]["argsT"] = {} +defs["ImGuiContextHook_ImGuiContextHook"][1]["argsoriginal"] = "()" +defs["ImGuiContextHook_ImGuiContextHook"][1]["call_args"] = "()" +defs["ImGuiContextHook_ImGuiContextHook"][1]["cimguiname"] = "ImGuiContextHook_ImGuiContextHook" +defs["ImGuiContextHook_ImGuiContextHook"][1]["constructor"] = true +defs["ImGuiContextHook_ImGuiContextHook"][1]["defaults"] = {} +defs["ImGuiContextHook_ImGuiContextHook"][1]["funcname"] = "ImGuiContextHook" +defs["ImGuiContextHook_ImGuiContextHook"][1]["location"] = "imgui_internal:1898" +defs["ImGuiContextHook_ImGuiContextHook"][1]["ov_cimguiname"] = "ImGuiContextHook_ImGuiContextHook" +defs["ImGuiContextHook_ImGuiContextHook"][1]["signature"] = "()" +defs["ImGuiContextHook_ImGuiContextHook"][1]["stname"] = "ImGuiContextHook" +defs["ImGuiContextHook_ImGuiContextHook"]["()"] = defs["ImGuiContextHook_ImGuiContextHook"][1] +defs["ImGuiContextHook_destroy"] = {} +defs["ImGuiContextHook_destroy"][1] = {} +defs["ImGuiContextHook_destroy"][1]["args"] = "(ImGuiContextHook* self)" +defs["ImGuiContextHook_destroy"][1]["argsT"] = {} +defs["ImGuiContextHook_destroy"][1]["argsT"][1] = {} +defs["ImGuiContextHook_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiContextHook_destroy"][1]["argsT"][1]["type"] = "ImGuiContextHook*" +defs["ImGuiContextHook_destroy"][1]["call_args"] = "(self)" +defs["ImGuiContextHook_destroy"][1]["cimguiname"] = "ImGuiContextHook_destroy" +defs["ImGuiContextHook_destroy"][1]["defaults"] = {} +defs["ImGuiContextHook_destroy"][1]["destructor"] = true +defs["ImGuiContextHook_destroy"][1]["ov_cimguiname"] = "ImGuiContextHook_destroy" +defs["ImGuiContextHook_destroy"][1]["ret"] = "void" +defs["ImGuiContextHook_destroy"][1]["signature"] = "(ImGuiContextHook*)" +defs["ImGuiContextHook_destroy"][1]["stname"] = "ImGuiContextHook" +defs["ImGuiContextHook_destroy"]["(ImGuiContextHook*)"] = defs["ImGuiContextHook_destroy"][1] +defs["ImGuiContext_ImGuiContext"] = {} +defs["ImGuiContext_ImGuiContext"][1] = {} +defs["ImGuiContext_ImGuiContext"][1]["args"] = "(ImFontAtlas* shared_font_atlas)" +defs["ImGuiContext_ImGuiContext"][1]["argsT"] = {} +defs["ImGuiContext_ImGuiContext"][1]["argsT"][1] = {} +defs["ImGuiContext_ImGuiContext"][1]["argsT"][1]["name"] = "shared_font_atlas" +defs["ImGuiContext_ImGuiContext"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["ImGuiContext_ImGuiContext"][1]["argsoriginal"] = "(ImFontAtlas* shared_font_atlas)" +defs["ImGuiContext_ImGuiContext"][1]["call_args"] = "(shared_font_atlas)" +defs["ImGuiContext_ImGuiContext"][1]["cimguiname"] = "ImGuiContext_ImGuiContext" +defs["ImGuiContext_ImGuiContext"][1]["constructor"] = true +defs["ImGuiContext_ImGuiContext"][1]["defaults"] = {} +defs["ImGuiContext_ImGuiContext"][1]["funcname"] = "ImGuiContext" +defs["ImGuiContext_ImGuiContext"][1]["location"] = "imgui_internal:2204" +defs["ImGuiContext_ImGuiContext"][1]["ov_cimguiname"] = "ImGuiContext_ImGuiContext" +defs["ImGuiContext_ImGuiContext"][1]["signature"] = "(ImFontAtlas*)" +defs["ImGuiContext_ImGuiContext"][1]["stname"] = "ImGuiContext" +defs["ImGuiContext_ImGuiContext"]["(ImFontAtlas*)"] = defs["ImGuiContext_ImGuiContext"][1] +defs["ImGuiContext_destroy"] = {} +defs["ImGuiContext_destroy"][1] = {} +defs["ImGuiContext_destroy"][1]["args"] = "(ImGuiContext* self)" +defs["ImGuiContext_destroy"][1]["argsT"] = {} +defs["ImGuiContext_destroy"][1]["argsT"][1] = {} +defs["ImGuiContext_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiContext_destroy"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["ImGuiContext_destroy"][1]["call_args"] = "(self)" +defs["ImGuiContext_destroy"][1]["cimguiname"] = "ImGuiContext_destroy" +defs["ImGuiContext_destroy"][1]["defaults"] = {} +defs["ImGuiContext_destroy"][1]["destructor"] = true +defs["ImGuiContext_destroy"][1]["ov_cimguiname"] = "ImGuiContext_destroy" +defs["ImGuiContext_destroy"][1]["ret"] = "void" +defs["ImGuiContext_destroy"][1]["signature"] = "(ImGuiContext*)" +defs["ImGuiContext_destroy"][1]["stname"] = "ImGuiContext" +defs["ImGuiContext_destroy"]["(ImGuiContext*)"] = defs["ImGuiContext_destroy"][1] +defs["ImGuiDockContext_ImGuiDockContext"] = {} +defs["ImGuiDockContext_ImGuiDockContext"][1] = {} +defs["ImGuiDockContext_ImGuiDockContext"][1]["args"] = "()" +defs["ImGuiDockContext_ImGuiDockContext"][1]["argsT"] = {} +defs["ImGuiDockContext_ImGuiDockContext"][1]["argsoriginal"] = "()" +defs["ImGuiDockContext_ImGuiDockContext"][1]["call_args"] = "()" +defs["ImGuiDockContext_ImGuiDockContext"][1]["cimguiname"] = "ImGuiDockContext_ImGuiDockContext" +defs["ImGuiDockContext_ImGuiDockContext"][1]["constructor"] = true +defs["ImGuiDockContext_ImGuiDockContext"][1]["defaults"] = {} +defs["ImGuiDockContext_ImGuiDockContext"][1]["funcname"] = "ImGuiDockContext" +defs["ImGuiDockContext_ImGuiDockContext"][1]["location"] = "imgui_internal:1703" +defs["ImGuiDockContext_ImGuiDockContext"][1]["ov_cimguiname"] = "ImGuiDockContext_ImGuiDockContext" +defs["ImGuiDockContext_ImGuiDockContext"][1]["signature"] = "()" +defs["ImGuiDockContext_ImGuiDockContext"][1]["stname"] = "ImGuiDockContext" +defs["ImGuiDockContext_ImGuiDockContext"]["()"] = defs["ImGuiDockContext_ImGuiDockContext"][1] +defs["ImGuiDockContext_destroy"] = {} +defs["ImGuiDockContext_destroy"][1] = {} +defs["ImGuiDockContext_destroy"][1]["args"] = "(ImGuiDockContext* self)" +defs["ImGuiDockContext_destroy"][1]["argsT"] = {} +defs["ImGuiDockContext_destroy"][1]["argsT"][1] = {} +defs["ImGuiDockContext_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockContext_destroy"][1]["argsT"][1]["type"] = "ImGuiDockContext*" +defs["ImGuiDockContext_destroy"][1]["call_args"] = "(self)" +defs["ImGuiDockContext_destroy"][1]["cimguiname"] = "ImGuiDockContext_destroy" +defs["ImGuiDockContext_destroy"][1]["defaults"] = {} +defs["ImGuiDockContext_destroy"][1]["destructor"] = true +defs["ImGuiDockContext_destroy"][1]["ov_cimguiname"] = "ImGuiDockContext_destroy" +defs["ImGuiDockContext_destroy"][1]["ret"] = "void" +defs["ImGuiDockContext_destroy"][1]["signature"] = "(ImGuiDockContext*)" +defs["ImGuiDockContext_destroy"][1]["stname"] = "ImGuiDockContext" +defs["ImGuiDockContext_destroy"]["(ImGuiDockContext*)"] = defs["ImGuiDockContext_destroy"][1] +defs["ImGuiDockNode_ImGuiDockNode"] = {} +defs["ImGuiDockNode_ImGuiDockNode"][1] = {} +defs["ImGuiDockNode_ImGuiDockNode"][1]["args"] = "(ImGuiID id)" +defs["ImGuiDockNode_ImGuiDockNode"][1]["argsT"] = {} +defs["ImGuiDockNode_ImGuiDockNode"][1]["argsT"][1] = {} +defs["ImGuiDockNode_ImGuiDockNode"][1]["argsT"][1]["name"] = "id" +defs["ImGuiDockNode_ImGuiDockNode"][1]["argsT"][1]["type"] = "ImGuiID" +defs["ImGuiDockNode_ImGuiDockNode"][1]["argsoriginal"] = "(ImGuiID id)" +defs["ImGuiDockNode_ImGuiDockNode"][1]["call_args"] = "(id)" +defs["ImGuiDockNode_ImGuiDockNode"][1]["cimguiname"] = "ImGuiDockNode_ImGuiDockNode" +defs["ImGuiDockNode_ImGuiDockNode"][1]["constructor"] = true +defs["ImGuiDockNode_ImGuiDockNode"][1]["defaults"] = {} +defs["ImGuiDockNode_ImGuiDockNode"][1]["funcname"] = "ImGuiDockNode" +defs["ImGuiDockNode_ImGuiDockNode"][1]["location"] = "imgui_internal:1660" +defs["ImGuiDockNode_ImGuiDockNode"][1]["ov_cimguiname"] = "ImGuiDockNode_ImGuiDockNode" +defs["ImGuiDockNode_ImGuiDockNode"][1]["signature"] = "(ImGuiID)" +defs["ImGuiDockNode_ImGuiDockNode"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_ImGuiDockNode"]["(ImGuiID)"] = defs["ImGuiDockNode_ImGuiDockNode"][1] +defs["ImGuiDockNode_IsCentralNode"] = {} +defs["ImGuiDockNode_IsCentralNode"][1] = {} +defs["ImGuiDockNode_IsCentralNode"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_IsCentralNode"][1]["argsT"] = {} +defs["ImGuiDockNode_IsCentralNode"][1]["argsT"][1] = {} +defs["ImGuiDockNode_IsCentralNode"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_IsCentralNode"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_IsCentralNode"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_IsCentralNode"][1]["call_args"] = "()" +defs["ImGuiDockNode_IsCentralNode"][1]["cimguiname"] = "ImGuiDockNode_IsCentralNode" +defs["ImGuiDockNode_IsCentralNode"][1]["defaults"] = {} +defs["ImGuiDockNode_IsCentralNode"][1]["funcname"] = "IsCentralNode" +defs["ImGuiDockNode_IsCentralNode"][1]["location"] = "imgui_internal:1665" +defs["ImGuiDockNode_IsCentralNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsCentralNode" +defs["ImGuiDockNode_IsCentralNode"][1]["ret"] = "bool" +defs["ImGuiDockNode_IsCentralNode"][1]["signature"] = "()const" +defs["ImGuiDockNode_IsCentralNode"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_IsCentralNode"]["()const"] = defs["ImGuiDockNode_IsCentralNode"][1] +defs["ImGuiDockNode_IsDockSpace"] = {} +defs["ImGuiDockNode_IsDockSpace"][1] = {} +defs["ImGuiDockNode_IsDockSpace"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_IsDockSpace"][1]["argsT"] = {} +defs["ImGuiDockNode_IsDockSpace"][1]["argsT"][1] = {} +defs["ImGuiDockNode_IsDockSpace"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_IsDockSpace"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_IsDockSpace"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_IsDockSpace"][1]["call_args"] = "()" +defs["ImGuiDockNode_IsDockSpace"][1]["cimguiname"] = "ImGuiDockNode_IsDockSpace" +defs["ImGuiDockNode_IsDockSpace"][1]["defaults"] = {} +defs["ImGuiDockNode_IsDockSpace"][1]["funcname"] = "IsDockSpace" +defs["ImGuiDockNode_IsDockSpace"][1]["location"] = "imgui_internal:1663" +defs["ImGuiDockNode_IsDockSpace"][1]["ov_cimguiname"] = "ImGuiDockNode_IsDockSpace" +defs["ImGuiDockNode_IsDockSpace"][1]["ret"] = "bool" +defs["ImGuiDockNode_IsDockSpace"][1]["signature"] = "()const" +defs["ImGuiDockNode_IsDockSpace"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_IsDockSpace"]["()const"] = defs["ImGuiDockNode_IsDockSpace"][1] +defs["ImGuiDockNode_IsEmpty"] = {} +defs["ImGuiDockNode_IsEmpty"][1] = {} +defs["ImGuiDockNode_IsEmpty"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_IsEmpty"][1]["argsT"] = {} +defs["ImGuiDockNode_IsEmpty"][1]["argsT"][1] = {} +defs["ImGuiDockNode_IsEmpty"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_IsEmpty"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_IsEmpty"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_IsEmpty"][1]["call_args"] = "()" +defs["ImGuiDockNode_IsEmpty"][1]["cimguiname"] = "ImGuiDockNode_IsEmpty" +defs["ImGuiDockNode_IsEmpty"][1]["defaults"] = {} +defs["ImGuiDockNode_IsEmpty"][1]["funcname"] = "IsEmpty" +defs["ImGuiDockNode_IsEmpty"][1]["location"] = "imgui_internal:1670" +defs["ImGuiDockNode_IsEmpty"][1]["ov_cimguiname"] = "ImGuiDockNode_IsEmpty" +defs["ImGuiDockNode_IsEmpty"][1]["ret"] = "bool" +defs["ImGuiDockNode_IsEmpty"][1]["signature"] = "()const" +defs["ImGuiDockNode_IsEmpty"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_IsEmpty"]["()const"] = defs["ImGuiDockNode_IsEmpty"][1] +defs["ImGuiDockNode_IsFloatingNode"] = {} +defs["ImGuiDockNode_IsFloatingNode"][1] = {} +defs["ImGuiDockNode_IsFloatingNode"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_IsFloatingNode"][1]["argsT"] = {} +defs["ImGuiDockNode_IsFloatingNode"][1]["argsT"][1] = {} +defs["ImGuiDockNode_IsFloatingNode"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_IsFloatingNode"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_IsFloatingNode"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_IsFloatingNode"][1]["call_args"] = "()" +defs["ImGuiDockNode_IsFloatingNode"][1]["cimguiname"] = "ImGuiDockNode_IsFloatingNode" +defs["ImGuiDockNode_IsFloatingNode"][1]["defaults"] = {} +defs["ImGuiDockNode_IsFloatingNode"][1]["funcname"] = "IsFloatingNode" +defs["ImGuiDockNode_IsFloatingNode"][1]["location"] = "imgui_internal:1664" +defs["ImGuiDockNode_IsFloatingNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsFloatingNode" +defs["ImGuiDockNode_IsFloatingNode"][1]["ret"] = "bool" +defs["ImGuiDockNode_IsFloatingNode"][1]["signature"] = "()const" +defs["ImGuiDockNode_IsFloatingNode"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_IsFloatingNode"]["()const"] = defs["ImGuiDockNode_IsFloatingNode"][1] +defs["ImGuiDockNode_IsHiddenTabBar"] = {} +defs["ImGuiDockNode_IsHiddenTabBar"][1] = {} +defs["ImGuiDockNode_IsHiddenTabBar"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["argsT"] = {} +defs["ImGuiDockNode_IsHiddenTabBar"][1]["argsT"][1] = {} +defs["ImGuiDockNode_IsHiddenTabBar"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["call_args"] = "()" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["cimguiname"] = "ImGuiDockNode_IsHiddenTabBar" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["defaults"] = {} +defs["ImGuiDockNode_IsHiddenTabBar"][1]["funcname"] = "IsHiddenTabBar" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["location"] = "imgui_internal:1666" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["ov_cimguiname"] = "ImGuiDockNode_IsHiddenTabBar" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["ret"] = "bool" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["signature"] = "()const" +defs["ImGuiDockNode_IsHiddenTabBar"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_IsHiddenTabBar"]["()const"] = defs["ImGuiDockNode_IsHiddenTabBar"][1] +defs["ImGuiDockNode_IsLeafNode"] = {} +defs["ImGuiDockNode_IsLeafNode"][1] = {} +defs["ImGuiDockNode_IsLeafNode"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_IsLeafNode"][1]["argsT"] = {} +defs["ImGuiDockNode_IsLeafNode"][1]["argsT"][1] = {} +defs["ImGuiDockNode_IsLeafNode"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_IsLeafNode"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_IsLeafNode"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_IsLeafNode"][1]["call_args"] = "()" +defs["ImGuiDockNode_IsLeafNode"][1]["cimguiname"] = "ImGuiDockNode_IsLeafNode" +defs["ImGuiDockNode_IsLeafNode"][1]["defaults"] = {} +defs["ImGuiDockNode_IsLeafNode"][1]["funcname"] = "IsLeafNode" +defs["ImGuiDockNode_IsLeafNode"][1]["location"] = "imgui_internal:1669" +defs["ImGuiDockNode_IsLeafNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsLeafNode" +defs["ImGuiDockNode_IsLeafNode"][1]["ret"] = "bool" +defs["ImGuiDockNode_IsLeafNode"][1]["signature"] = "()const" +defs["ImGuiDockNode_IsLeafNode"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_IsLeafNode"]["()const"] = defs["ImGuiDockNode_IsLeafNode"][1] +defs["ImGuiDockNode_IsNoTabBar"] = {} +defs["ImGuiDockNode_IsNoTabBar"][1] = {} +defs["ImGuiDockNode_IsNoTabBar"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_IsNoTabBar"][1]["argsT"] = {} +defs["ImGuiDockNode_IsNoTabBar"][1]["argsT"][1] = {} +defs["ImGuiDockNode_IsNoTabBar"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_IsNoTabBar"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_IsNoTabBar"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_IsNoTabBar"][1]["call_args"] = "()" +defs["ImGuiDockNode_IsNoTabBar"][1]["cimguiname"] = "ImGuiDockNode_IsNoTabBar" +defs["ImGuiDockNode_IsNoTabBar"][1]["defaults"] = {} +defs["ImGuiDockNode_IsNoTabBar"][1]["funcname"] = "IsNoTabBar" +defs["ImGuiDockNode_IsNoTabBar"][1]["location"] = "imgui_internal:1667" +defs["ImGuiDockNode_IsNoTabBar"][1]["ov_cimguiname"] = "ImGuiDockNode_IsNoTabBar" +defs["ImGuiDockNode_IsNoTabBar"][1]["ret"] = "bool" +defs["ImGuiDockNode_IsNoTabBar"][1]["signature"] = "()const" +defs["ImGuiDockNode_IsNoTabBar"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_IsNoTabBar"]["()const"] = defs["ImGuiDockNode_IsNoTabBar"][1] +defs["ImGuiDockNode_IsRootNode"] = {} +defs["ImGuiDockNode_IsRootNode"][1] = {} +defs["ImGuiDockNode_IsRootNode"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_IsRootNode"][1]["argsT"] = {} +defs["ImGuiDockNode_IsRootNode"][1]["argsT"][1] = {} +defs["ImGuiDockNode_IsRootNode"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_IsRootNode"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_IsRootNode"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_IsRootNode"][1]["call_args"] = "()" +defs["ImGuiDockNode_IsRootNode"][1]["cimguiname"] = "ImGuiDockNode_IsRootNode" +defs["ImGuiDockNode_IsRootNode"][1]["defaults"] = {} +defs["ImGuiDockNode_IsRootNode"][1]["funcname"] = "IsRootNode" +defs["ImGuiDockNode_IsRootNode"][1]["location"] = "imgui_internal:1662" +defs["ImGuiDockNode_IsRootNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsRootNode" +defs["ImGuiDockNode_IsRootNode"][1]["ret"] = "bool" +defs["ImGuiDockNode_IsRootNode"][1]["signature"] = "()const" +defs["ImGuiDockNode_IsRootNode"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_IsRootNode"]["()const"] = defs["ImGuiDockNode_IsRootNode"][1] +defs["ImGuiDockNode_IsSplitNode"] = {} +defs["ImGuiDockNode_IsSplitNode"][1] = {} +defs["ImGuiDockNode_IsSplitNode"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_IsSplitNode"][1]["argsT"] = {} +defs["ImGuiDockNode_IsSplitNode"][1]["argsT"][1] = {} +defs["ImGuiDockNode_IsSplitNode"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_IsSplitNode"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_IsSplitNode"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_IsSplitNode"][1]["call_args"] = "()" +defs["ImGuiDockNode_IsSplitNode"][1]["cimguiname"] = "ImGuiDockNode_IsSplitNode" +defs["ImGuiDockNode_IsSplitNode"][1]["defaults"] = {} +defs["ImGuiDockNode_IsSplitNode"][1]["funcname"] = "IsSplitNode" +defs["ImGuiDockNode_IsSplitNode"][1]["location"] = "imgui_internal:1668" +defs["ImGuiDockNode_IsSplitNode"][1]["ov_cimguiname"] = "ImGuiDockNode_IsSplitNode" +defs["ImGuiDockNode_IsSplitNode"][1]["ret"] = "bool" +defs["ImGuiDockNode_IsSplitNode"][1]["signature"] = "()const" +defs["ImGuiDockNode_IsSplitNode"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_IsSplitNode"]["()const"] = defs["ImGuiDockNode_IsSplitNode"][1] +defs["ImGuiDockNode_Rect"] = {} +defs["ImGuiDockNode_Rect"][1] = {} +defs["ImGuiDockNode_Rect"][1]["args"] = "(ImRect *pOut,ImGuiDockNode* self)" +defs["ImGuiDockNode_Rect"][1]["argsT"] = {} +defs["ImGuiDockNode_Rect"][1]["argsT"][1] = {} +defs["ImGuiDockNode_Rect"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiDockNode_Rect"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImGuiDockNode_Rect"][1]["argsT"][2] = {} +defs["ImGuiDockNode_Rect"][1]["argsT"][2]["name"] = "self" +defs["ImGuiDockNode_Rect"][1]["argsT"][2]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_Rect"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_Rect"][1]["call_args"] = "()" +defs["ImGuiDockNode_Rect"][1]["cimguiname"] = "ImGuiDockNode_Rect" +defs["ImGuiDockNode_Rect"][1]["defaults"] = {} +defs["ImGuiDockNode_Rect"][1]["funcname"] = "Rect" +defs["ImGuiDockNode_Rect"][1]["location"] = "imgui_internal:1671" +defs["ImGuiDockNode_Rect"][1]["nonUDT"] = 1 +defs["ImGuiDockNode_Rect"][1]["ov_cimguiname"] = "ImGuiDockNode_Rect" +defs["ImGuiDockNode_Rect"][1]["ret"] = "void" +defs["ImGuiDockNode_Rect"][1]["signature"] = "()const" +defs["ImGuiDockNode_Rect"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_Rect"]["()const"] = defs["ImGuiDockNode_Rect"][1] +defs["ImGuiDockNode_SetLocalFlags"] = {} +defs["ImGuiDockNode_SetLocalFlags"][1] = {} +defs["ImGuiDockNode_SetLocalFlags"][1]["args"] = "(ImGuiDockNode* self,ImGuiDockNodeFlags flags)" +defs["ImGuiDockNode_SetLocalFlags"][1]["argsT"] = {} +defs["ImGuiDockNode_SetLocalFlags"][1]["argsT"][1] = {} +defs["ImGuiDockNode_SetLocalFlags"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_SetLocalFlags"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_SetLocalFlags"][1]["argsT"][2] = {} +defs["ImGuiDockNode_SetLocalFlags"][1]["argsT"][2]["name"] = "flags" +defs["ImGuiDockNode_SetLocalFlags"][1]["argsT"][2]["type"] = "ImGuiDockNodeFlags" +defs["ImGuiDockNode_SetLocalFlags"][1]["argsoriginal"] = "(ImGuiDockNodeFlags flags)" +defs["ImGuiDockNode_SetLocalFlags"][1]["call_args"] = "(flags)" +defs["ImGuiDockNode_SetLocalFlags"][1]["cimguiname"] = "ImGuiDockNode_SetLocalFlags" +defs["ImGuiDockNode_SetLocalFlags"][1]["defaults"] = {} +defs["ImGuiDockNode_SetLocalFlags"][1]["funcname"] = "SetLocalFlags" +defs["ImGuiDockNode_SetLocalFlags"][1]["location"] = "imgui_internal:1673" +defs["ImGuiDockNode_SetLocalFlags"][1]["ov_cimguiname"] = "ImGuiDockNode_SetLocalFlags" +defs["ImGuiDockNode_SetLocalFlags"][1]["ret"] = "void" +defs["ImGuiDockNode_SetLocalFlags"][1]["signature"] = "(ImGuiDockNodeFlags)" +defs["ImGuiDockNode_SetLocalFlags"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_SetLocalFlags"]["(ImGuiDockNodeFlags)"] = defs["ImGuiDockNode_SetLocalFlags"][1] +defs["ImGuiDockNode_UpdateMergedFlags"] = {} +defs["ImGuiDockNode_UpdateMergedFlags"][1] = {} +defs["ImGuiDockNode_UpdateMergedFlags"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["argsT"] = {} +defs["ImGuiDockNode_UpdateMergedFlags"][1]["argsT"][1] = {} +defs["ImGuiDockNode_UpdateMergedFlags"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["argsoriginal"] = "()" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["call_args"] = "()" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["cimguiname"] = "ImGuiDockNode_UpdateMergedFlags" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["defaults"] = {} +defs["ImGuiDockNode_UpdateMergedFlags"][1]["funcname"] = "UpdateMergedFlags" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["location"] = "imgui_internal:1674" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["ov_cimguiname"] = "ImGuiDockNode_UpdateMergedFlags" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["ret"] = "void" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["signature"] = "()" +defs["ImGuiDockNode_UpdateMergedFlags"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_UpdateMergedFlags"]["()"] = defs["ImGuiDockNode_UpdateMergedFlags"][1] +defs["ImGuiDockNode_destroy"] = {} +defs["ImGuiDockNode_destroy"][1] = {} +defs["ImGuiDockNode_destroy"][1]["args"] = "(ImGuiDockNode* self)" +defs["ImGuiDockNode_destroy"][1]["argsT"] = {} +defs["ImGuiDockNode_destroy"][1]["argsT"][1] = {} +defs["ImGuiDockNode_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiDockNode_destroy"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["ImGuiDockNode_destroy"][1]["call_args"] = "(self)" +defs["ImGuiDockNode_destroy"][1]["cimguiname"] = "ImGuiDockNode_destroy" +defs["ImGuiDockNode_destroy"][1]["defaults"] = {} +defs["ImGuiDockNode_destroy"][1]["destructor"] = true +defs["ImGuiDockNode_destroy"][1]["location"] = "imgui_internal:1661" +defs["ImGuiDockNode_destroy"][1]["ov_cimguiname"] = "ImGuiDockNode_destroy" +defs["ImGuiDockNode_destroy"][1]["realdestructor"] = true +defs["ImGuiDockNode_destroy"][1]["ret"] = "void" +defs["ImGuiDockNode_destroy"][1]["signature"] = "(ImGuiDockNode*)" +defs["ImGuiDockNode_destroy"][1]["stname"] = "ImGuiDockNode" +defs["ImGuiDockNode_destroy"]["(ImGuiDockNode*)"] = defs["ImGuiDockNode_destroy"][1] defs["ImGuiFreeType_GetBuilderForFreeType"] = {} defs["ImGuiFreeType_GetBuilderForFreeType"][1] = {} defs["ImGuiFreeType_GetBuilderForFreeType"][1]["args"] = "()" @@ -4043,6 +5045,37 @@ defs["ImGuiIO_destroy"][1]["ret"] = "void" defs["ImGuiIO_destroy"][1]["signature"] = "(ImGuiIO*)" defs["ImGuiIO_destroy"][1]["stname"] = "ImGuiIO" defs["ImGuiIO_destroy"]["(ImGuiIO*)"] = defs["ImGuiIO_destroy"][1] +defs["ImGuiInputEvent_ImGuiInputEvent"] = {} +defs["ImGuiInputEvent_ImGuiInputEvent"][1] = {} +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["args"] = "()" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["argsT"] = {} +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["argsoriginal"] = "()" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["call_args"] = "()" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["cimguiname"] = "ImGuiInputEvent_ImGuiInputEvent" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["constructor"] = true +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["defaults"] = {} +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["funcname"] = "ImGuiInputEvent" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["location"] = "imgui_internal:1302" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["ov_cimguiname"] = "ImGuiInputEvent_ImGuiInputEvent" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["signature"] = "()" +defs["ImGuiInputEvent_ImGuiInputEvent"][1]["stname"] = "ImGuiInputEvent" +defs["ImGuiInputEvent_ImGuiInputEvent"]["()"] = defs["ImGuiInputEvent_ImGuiInputEvent"][1] +defs["ImGuiInputEvent_destroy"] = {} +defs["ImGuiInputEvent_destroy"][1] = {} +defs["ImGuiInputEvent_destroy"][1]["args"] = "(ImGuiInputEvent* self)" +defs["ImGuiInputEvent_destroy"][1]["argsT"] = {} +defs["ImGuiInputEvent_destroy"][1]["argsT"][1] = {} +defs["ImGuiInputEvent_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputEvent_destroy"][1]["argsT"][1]["type"] = "ImGuiInputEvent*" +defs["ImGuiInputEvent_destroy"][1]["call_args"] = "(self)" +defs["ImGuiInputEvent_destroy"][1]["cimguiname"] = "ImGuiInputEvent_destroy" +defs["ImGuiInputEvent_destroy"][1]["defaults"] = {} +defs["ImGuiInputEvent_destroy"][1]["destructor"] = true +defs["ImGuiInputEvent_destroy"][1]["ov_cimguiname"] = "ImGuiInputEvent_destroy" +defs["ImGuiInputEvent_destroy"][1]["ret"] = "void" +defs["ImGuiInputEvent_destroy"][1]["signature"] = "(ImGuiInputEvent*)" +defs["ImGuiInputEvent_destroy"][1]["stname"] = "ImGuiInputEvent" +defs["ImGuiInputEvent_destroy"]["(ImGuiInputEvent*)"] = defs["ImGuiInputEvent_destroy"][1] defs["ImGuiInputTextCallbackData_ClearSelection"] = {} defs["ImGuiInputTextCallbackData_ClearSelection"][1] = {} defs["ImGuiInputTextCallbackData_ClearSelection"][1]["args"] = "(ImGuiInputTextCallbackData* self)" @@ -4180,6 +5213,518 @@ defs["ImGuiInputTextCallbackData_destroy"][1]["ret"] = "void" defs["ImGuiInputTextCallbackData_destroy"][1]["signature"] = "(ImGuiInputTextCallbackData*)" defs["ImGuiInputTextCallbackData_destroy"][1]["stname"] = "ImGuiInputTextCallbackData" defs["ImGuiInputTextCallbackData_destroy"]["(ImGuiInputTextCallbackData*)"] = defs["ImGuiInputTextCallbackData_destroy"][1] +defs["ImGuiInputTextState_ClearFreeMemory"] = {} +defs["ImGuiInputTextState_ClearFreeMemory"][1] = {} +defs["ImGuiInputTextState_ClearFreeMemory"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["argsT"] = {} +defs["ImGuiInputTextState_ClearFreeMemory"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_ClearFreeMemory"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["call_args"] = "()" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["cimguiname"] = "ImGuiInputTextState_ClearFreeMemory" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["defaults"] = {} +defs["ImGuiInputTextState_ClearFreeMemory"][1]["funcname"] = "ClearFreeMemory" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["location"] = "imgui_internal:1076" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["ov_cimguiname"] = "ImGuiInputTextState_ClearFreeMemory" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["ret"] = "void" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["signature"] = "()" +defs["ImGuiInputTextState_ClearFreeMemory"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_ClearFreeMemory"]["()"] = defs["ImGuiInputTextState_ClearFreeMemory"][1] +defs["ImGuiInputTextState_ClearSelection"] = {} +defs["ImGuiInputTextState_ClearSelection"][1] = {} +defs["ImGuiInputTextState_ClearSelection"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_ClearSelection"][1]["argsT"] = {} +defs["ImGuiInputTextState_ClearSelection"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_ClearSelection"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_ClearSelection"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_ClearSelection"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_ClearSelection"][1]["call_args"] = "()" +defs["ImGuiInputTextState_ClearSelection"][1]["cimguiname"] = "ImGuiInputTextState_ClearSelection" +defs["ImGuiInputTextState_ClearSelection"][1]["defaults"] = {} +defs["ImGuiInputTextState_ClearSelection"][1]["funcname"] = "ClearSelection" +defs["ImGuiInputTextState_ClearSelection"][1]["location"] = "imgui_internal:1085" +defs["ImGuiInputTextState_ClearSelection"][1]["ov_cimguiname"] = "ImGuiInputTextState_ClearSelection" +defs["ImGuiInputTextState_ClearSelection"][1]["ret"] = "void" +defs["ImGuiInputTextState_ClearSelection"][1]["signature"] = "()" +defs["ImGuiInputTextState_ClearSelection"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_ClearSelection"]["()"] = defs["ImGuiInputTextState_ClearSelection"][1] +defs["ImGuiInputTextState_ClearText"] = {} +defs["ImGuiInputTextState_ClearText"][1] = {} +defs["ImGuiInputTextState_ClearText"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_ClearText"][1]["argsT"] = {} +defs["ImGuiInputTextState_ClearText"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_ClearText"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_ClearText"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_ClearText"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_ClearText"][1]["call_args"] = "()" +defs["ImGuiInputTextState_ClearText"][1]["cimguiname"] = "ImGuiInputTextState_ClearText" +defs["ImGuiInputTextState_ClearText"][1]["defaults"] = {} +defs["ImGuiInputTextState_ClearText"][1]["funcname"] = "ClearText" +defs["ImGuiInputTextState_ClearText"][1]["location"] = "imgui_internal:1075" +defs["ImGuiInputTextState_ClearText"][1]["ov_cimguiname"] = "ImGuiInputTextState_ClearText" +defs["ImGuiInputTextState_ClearText"][1]["ret"] = "void" +defs["ImGuiInputTextState_ClearText"][1]["signature"] = "()" +defs["ImGuiInputTextState_ClearText"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_ClearText"]["()"] = defs["ImGuiInputTextState_ClearText"][1] +defs["ImGuiInputTextState_CursorAnimReset"] = {} +defs["ImGuiInputTextState_CursorAnimReset"][1] = {} +defs["ImGuiInputTextState_CursorAnimReset"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_CursorAnimReset"][1]["argsT"] = {} +defs["ImGuiInputTextState_CursorAnimReset"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_CursorAnimReset"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_CursorAnimReset"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_CursorAnimReset"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_CursorAnimReset"][1]["call_args"] = "()" +defs["ImGuiInputTextState_CursorAnimReset"][1]["cimguiname"] = "ImGuiInputTextState_CursorAnimReset" +defs["ImGuiInputTextState_CursorAnimReset"][1]["defaults"] = {} +defs["ImGuiInputTextState_CursorAnimReset"][1]["funcname"] = "CursorAnimReset" +defs["ImGuiInputTextState_CursorAnimReset"][1]["location"] = "imgui_internal:1082" +defs["ImGuiInputTextState_CursorAnimReset"][1]["ov_cimguiname"] = "ImGuiInputTextState_CursorAnimReset" +defs["ImGuiInputTextState_CursorAnimReset"][1]["ret"] = "void" +defs["ImGuiInputTextState_CursorAnimReset"][1]["signature"] = "()" +defs["ImGuiInputTextState_CursorAnimReset"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_CursorAnimReset"]["()"] = defs["ImGuiInputTextState_CursorAnimReset"][1] +defs["ImGuiInputTextState_CursorClamp"] = {} +defs["ImGuiInputTextState_CursorClamp"][1] = {} +defs["ImGuiInputTextState_CursorClamp"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_CursorClamp"][1]["argsT"] = {} +defs["ImGuiInputTextState_CursorClamp"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_CursorClamp"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_CursorClamp"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_CursorClamp"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_CursorClamp"][1]["call_args"] = "()" +defs["ImGuiInputTextState_CursorClamp"][1]["cimguiname"] = "ImGuiInputTextState_CursorClamp" +defs["ImGuiInputTextState_CursorClamp"][1]["defaults"] = {} +defs["ImGuiInputTextState_CursorClamp"][1]["funcname"] = "CursorClamp" +defs["ImGuiInputTextState_CursorClamp"][1]["location"] = "imgui_internal:1083" +defs["ImGuiInputTextState_CursorClamp"][1]["ov_cimguiname"] = "ImGuiInputTextState_CursorClamp" +defs["ImGuiInputTextState_CursorClamp"][1]["ret"] = "void" +defs["ImGuiInputTextState_CursorClamp"][1]["signature"] = "()" +defs["ImGuiInputTextState_CursorClamp"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_CursorClamp"]["()"] = defs["ImGuiInputTextState_CursorClamp"][1] +defs["ImGuiInputTextState_GetCursorPos"] = {} +defs["ImGuiInputTextState_GetCursorPos"][1] = {} +defs["ImGuiInputTextState_GetCursorPos"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_GetCursorPos"][1]["argsT"] = {} +defs["ImGuiInputTextState_GetCursorPos"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_GetCursorPos"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_GetCursorPos"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_GetCursorPos"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_GetCursorPos"][1]["call_args"] = "()" +defs["ImGuiInputTextState_GetCursorPos"][1]["cimguiname"] = "ImGuiInputTextState_GetCursorPos" +defs["ImGuiInputTextState_GetCursorPos"][1]["defaults"] = {} +defs["ImGuiInputTextState_GetCursorPos"][1]["funcname"] = "GetCursorPos" +defs["ImGuiInputTextState_GetCursorPos"][1]["location"] = "imgui_internal:1086" +defs["ImGuiInputTextState_GetCursorPos"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetCursorPos" +defs["ImGuiInputTextState_GetCursorPos"][1]["ret"] = "int" +defs["ImGuiInputTextState_GetCursorPos"][1]["signature"] = "()const" +defs["ImGuiInputTextState_GetCursorPos"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_GetCursorPos"]["()const"] = defs["ImGuiInputTextState_GetCursorPos"][1] +defs["ImGuiInputTextState_GetRedoAvailCount"] = {} +defs["ImGuiInputTextState_GetRedoAvailCount"][1] = {} +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["argsT"] = {} +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["call_args"] = "()" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["cimguiname"] = "ImGuiInputTextState_GetRedoAvailCount" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["defaults"] = {} +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["funcname"] = "GetRedoAvailCount" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["location"] = "imgui_internal:1078" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetRedoAvailCount" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["ret"] = "int" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["signature"] = "()const" +defs["ImGuiInputTextState_GetRedoAvailCount"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_GetRedoAvailCount"]["()const"] = defs["ImGuiInputTextState_GetRedoAvailCount"][1] +defs["ImGuiInputTextState_GetSelectionEnd"] = {} +defs["ImGuiInputTextState_GetSelectionEnd"][1] = {} +defs["ImGuiInputTextState_GetSelectionEnd"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["argsT"] = {} +defs["ImGuiInputTextState_GetSelectionEnd"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_GetSelectionEnd"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["call_args"] = "()" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["cimguiname"] = "ImGuiInputTextState_GetSelectionEnd" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["defaults"] = {} +defs["ImGuiInputTextState_GetSelectionEnd"][1]["funcname"] = "GetSelectionEnd" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["location"] = "imgui_internal:1088" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetSelectionEnd" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["ret"] = "int" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["signature"] = "()const" +defs["ImGuiInputTextState_GetSelectionEnd"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_GetSelectionEnd"]["()const"] = defs["ImGuiInputTextState_GetSelectionEnd"][1] +defs["ImGuiInputTextState_GetSelectionStart"] = {} +defs["ImGuiInputTextState_GetSelectionStart"][1] = {} +defs["ImGuiInputTextState_GetSelectionStart"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_GetSelectionStart"][1]["argsT"] = {} +defs["ImGuiInputTextState_GetSelectionStart"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_GetSelectionStart"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_GetSelectionStart"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_GetSelectionStart"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_GetSelectionStart"][1]["call_args"] = "()" +defs["ImGuiInputTextState_GetSelectionStart"][1]["cimguiname"] = "ImGuiInputTextState_GetSelectionStart" +defs["ImGuiInputTextState_GetSelectionStart"][1]["defaults"] = {} +defs["ImGuiInputTextState_GetSelectionStart"][1]["funcname"] = "GetSelectionStart" +defs["ImGuiInputTextState_GetSelectionStart"][1]["location"] = "imgui_internal:1087" +defs["ImGuiInputTextState_GetSelectionStart"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetSelectionStart" +defs["ImGuiInputTextState_GetSelectionStart"][1]["ret"] = "int" +defs["ImGuiInputTextState_GetSelectionStart"][1]["signature"] = "()const" +defs["ImGuiInputTextState_GetSelectionStart"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_GetSelectionStart"]["()const"] = defs["ImGuiInputTextState_GetSelectionStart"][1] +defs["ImGuiInputTextState_GetUndoAvailCount"] = {} +defs["ImGuiInputTextState_GetUndoAvailCount"][1] = {} +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["argsT"] = {} +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["call_args"] = "()" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["cimguiname"] = "ImGuiInputTextState_GetUndoAvailCount" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["defaults"] = {} +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["funcname"] = "GetUndoAvailCount" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["location"] = "imgui_internal:1077" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["ov_cimguiname"] = "ImGuiInputTextState_GetUndoAvailCount" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["ret"] = "int" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["signature"] = "()const" +defs["ImGuiInputTextState_GetUndoAvailCount"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_GetUndoAvailCount"]["()const"] = defs["ImGuiInputTextState_GetUndoAvailCount"][1] +defs["ImGuiInputTextState_HasSelection"] = {} +defs["ImGuiInputTextState_HasSelection"][1] = {} +defs["ImGuiInputTextState_HasSelection"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_HasSelection"][1]["argsT"] = {} +defs["ImGuiInputTextState_HasSelection"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_HasSelection"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_HasSelection"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_HasSelection"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_HasSelection"][1]["call_args"] = "()" +defs["ImGuiInputTextState_HasSelection"][1]["cimguiname"] = "ImGuiInputTextState_HasSelection" +defs["ImGuiInputTextState_HasSelection"][1]["defaults"] = {} +defs["ImGuiInputTextState_HasSelection"][1]["funcname"] = "HasSelection" +defs["ImGuiInputTextState_HasSelection"][1]["location"] = "imgui_internal:1084" +defs["ImGuiInputTextState_HasSelection"][1]["ov_cimguiname"] = "ImGuiInputTextState_HasSelection" +defs["ImGuiInputTextState_HasSelection"][1]["ret"] = "bool" +defs["ImGuiInputTextState_HasSelection"][1]["signature"] = "()const" +defs["ImGuiInputTextState_HasSelection"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_HasSelection"]["()const"] = defs["ImGuiInputTextState_HasSelection"][1] +defs["ImGuiInputTextState_ImGuiInputTextState"] = {} +defs["ImGuiInputTextState_ImGuiInputTextState"][1] = {} +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["args"] = "()" +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["argsT"] = {} +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["call_args"] = "()" +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["cimguiname"] = "ImGuiInputTextState_ImGuiInputTextState" +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["constructor"] = true +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["defaults"] = {} +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["funcname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["location"] = "imgui_internal:1074" +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["ov_cimguiname"] = "ImGuiInputTextState_ImGuiInputTextState" +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["signature"] = "()" +defs["ImGuiInputTextState_ImGuiInputTextState"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_ImGuiInputTextState"]["()"] = defs["ImGuiInputTextState_ImGuiInputTextState"][1] +defs["ImGuiInputTextState_OnKeyPressed"] = {} +defs["ImGuiInputTextState_OnKeyPressed"][1] = {} +defs["ImGuiInputTextState_OnKeyPressed"][1]["args"] = "(ImGuiInputTextState* self,int key)" +defs["ImGuiInputTextState_OnKeyPressed"][1]["argsT"] = {} +defs["ImGuiInputTextState_OnKeyPressed"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_OnKeyPressed"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_OnKeyPressed"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_OnKeyPressed"][1]["argsT"][2] = {} +defs["ImGuiInputTextState_OnKeyPressed"][1]["argsT"][2]["name"] = "key" +defs["ImGuiInputTextState_OnKeyPressed"][1]["argsT"][2]["type"] = "int" +defs["ImGuiInputTextState_OnKeyPressed"][1]["argsoriginal"] = "(int key)" +defs["ImGuiInputTextState_OnKeyPressed"][1]["call_args"] = "(key)" +defs["ImGuiInputTextState_OnKeyPressed"][1]["cimguiname"] = "ImGuiInputTextState_OnKeyPressed" +defs["ImGuiInputTextState_OnKeyPressed"][1]["defaults"] = {} +defs["ImGuiInputTextState_OnKeyPressed"][1]["funcname"] = "OnKeyPressed" +defs["ImGuiInputTextState_OnKeyPressed"][1]["location"] = "imgui_internal:1079" +defs["ImGuiInputTextState_OnKeyPressed"][1]["ov_cimguiname"] = "ImGuiInputTextState_OnKeyPressed" +defs["ImGuiInputTextState_OnKeyPressed"][1]["ret"] = "void" +defs["ImGuiInputTextState_OnKeyPressed"][1]["signature"] = "(int)" +defs["ImGuiInputTextState_OnKeyPressed"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_OnKeyPressed"]["(int)"] = defs["ImGuiInputTextState_OnKeyPressed"][1] +defs["ImGuiInputTextState_SelectAll"] = {} +defs["ImGuiInputTextState_SelectAll"][1] = {} +defs["ImGuiInputTextState_SelectAll"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_SelectAll"][1]["argsT"] = {} +defs["ImGuiInputTextState_SelectAll"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_SelectAll"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_SelectAll"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_SelectAll"][1]["argsoriginal"] = "()" +defs["ImGuiInputTextState_SelectAll"][1]["call_args"] = "()" +defs["ImGuiInputTextState_SelectAll"][1]["cimguiname"] = "ImGuiInputTextState_SelectAll" +defs["ImGuiInputTextState_SelectAll"][1]["defaults"] = {} +defs["ImGuiInputTextState_SelectAll"][1]["funcname"] = "SelectAll" +defs["ImGuiInputTextState_SelectAll"][1]["location"] = "imgui_internal:1089" +defs["ImGuiInputTextState_SelectAll"][1]["ov_cimguiname"] = "ImGuiInputTextState_SelectAll" +defs["ImGuiInputTextState_SelectAll"][1]["ret"] = "void" +defs["ImGuiInputTextState_SelectAll"][1]["signature"] = "()" +defs["ImGuiInputTextState_SelectAll"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_SelectAll"]["()"] = defs["ImGuiInputTextState_SelectAll"][1] +defs["ImGuiInputTextState_destroy"] = {} +defs["ImGuiInputTextState_destroy"][1] = {} +defs["ImGuiInputTextState_destroy"][1]["args"] = "(ImGuiInputTextState* self)" +defs["ImGuiInputTextState_destroy"][1]["argsT"] = {} +defs["ImGuiInputTextState_destroy"][1]["argsT"][1] = {} +defs["ImGuiInputTextState_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiInputTextState_destroy"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["ImGuiInputTextState_destroy"][1]["call_args"] = "(self)" +defs["ImGuiInputTextState_destroy"][1]["cimguiname"] = "ImGuiInputTextState_destroy" +defs["ImGuiInputTextState_destroy"][1]["defaults"] = {} +defs["ImGuiInputTextState_destroy"][1]["destructor"] = true +defs["ImGuiInputTextState_destroy"][1]["ov_cimguiname"] = "ImGuiInputTextState_destroy" +defs["ImGuiInputTextState_destroy"][1]["ret"] = "void" +defs["ImGuiInputTextState_destroy"][1]["signature"] = "(ImGuiInputTextState*)" +defs["ImGuiInputTextState_destroy"][1]["stname"] = "ImGuiInputTextState" +defs["ImGuiInputTextState_destroy"]["(ImGuiInputTextState*)"] = defs["ImGuiInputTextState_destroy"][1] +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"] = {} +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1] = {} +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["args"] = "()" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["argsT"] = {} +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["argsoriginal"] = "()" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["call_args"] = "()" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["cimguiname"] = "ImGuiKeyOwnerData_ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["constructor"] = true +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["defaults"] = {} +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["funcname"] = "ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["location"] = "imgui_internal:1344" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["ov_cimguiname"] = "ImGuiKeyOwnerData_ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["signature"] = "()" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1]["stname"] = "ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"]["()"] = defs["ImGuiKeyOwnerData_ImGuiKeyOwnerData"][1] +defs["ImGuiKeyOwnerData_destroy"] = {} +defs["ImGuiKeyOwnerData_destroy"][1] = {} +defs["ImGuiKeyOwnerData_destroy"][1]["args"] = "(ImGuiKeyOwnerData* self)" +defs["ImGuiKeyOwnerData_destroy"][1]["argsT"] = {} +defs["ImGuiKeyOwnerData_destroy"][1]["argsT"][1] = {} +defs["ImGuiKeyOwnerData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiKeyOwnerData_destroy"][1]["argsT"][1]["type"] = "ImGuiKeyOwnerData*" +defs["ImGuiKeyOwnerData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiKeyOwnerData_destroy"][1]["cimguiname"] = "ImGuiKeyOwnerData_destroy" +defs["ImGuiKeyOwnerData_destroy"][1]["defaults"] = {} +defs["ImGuiKeyOwnerData_destroy"][1]["destructor"] = true +defs["ImGuiKeyOwnerData_destroy"][1]["ov_cimguiname"] = "ImGuiKeyOwnerData_destroy" +defs["ImGuiKeyOwnerData_destroy"][1]["ret"] = "void" +defs["ImGuiKeyOwnerData_destroy"][1]["signature"] = "(ImGuiKeyOwnerData*)" +defs["ImGuiKeyOwnerData_destroy"][1]["stname"] = "ImGuiKeyOwnerData" +defs["ImGuiKeyOwnerData_destroy"]["(ImGuiKeyOwnerData*)"] = defs["ImGuiKeyOwnerData_destroy"][1] +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"] = {} +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1] = {} +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["args"] = "()" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["argsT"] = {} +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["argsoriginal"] = "()" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["call_args"] = "()" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["cimguiname"] = "ImGuiKeyRoutingData_ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["constructor"] = true +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["defaults"] = {} +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["funcname"] = "ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["location"] = "imgui_internal:1320" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["ov_cimguiname"] = "ImGuiKeyRoutingData_ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["signature"] = "()" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1]["stname"] = "ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"]["()"] = defs["ImGuiKeyRoutingData_ImGuiKeyRoutingData"][1] +defs["ImGuiKeyRoutingData_destroy"] = {} +defs["ImGuiKeyRoutingData_destroy"][1] = {} +defs["ImGuiKeyRoutingData_destroy"][1]["args"] = "(ImGuiKeyRoutingData* self)" +defs["ImGuiKeyRoutingData_destroy"][1]["argsT"] = {} +defs["ImGuiKeyRoutingData_destroy"][1]["argsT"][1] = {} +defs["ImGuiKeyRoutingData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiKeyRoutingData_destroy"][1]["argsT"][1]["type"] = "ImGuiKeyRoutingData*" +defs["ImGuiKeyRoutingData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiKeyRoutingData_destroy"][1]["cimguiname"] = "ImGuiKeyRoutingData_destroy" +defs["ImGuiKeyRoutingData_destroy"][1]["defaults"] = {} +defs["ImGuiKeyRoutingData_destroy"][1]["destructor"] = true +defs["ImGuiKeyRoutingData_destroy"][1]["ov_cimguiname"] = "ImGuiKeyRoutingData_destroy" +defs["ImGuiKeyRoutingData_destroy"][1]["ret"] = "void" +defs["ImGuiKeyRoutingData_destroy"][1]["signature"] = "(ImGuiKeyRoutingData*)" +defs["ImGuiKeyRoutingData_destroy"][1]["stname"] = "ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingData_destroy"]["(ImGuiKeyRoutingData*)"] = defs["ImGuiKeyRoutingData_destroy"][1] +defs["ImGuiKeyRoutingTable_Clear"] = {} +defs["ImGuiKeyRoutingTable_Clear"][1] = {} +defs["ImGuiKeyRoutingTable_Clear"][1]["args"] = "(ImGuiKeyRoutingTable* self)" +defs["ImGuiKeyRoutingTable_Clear"][1]["argsT"] = {} +defs["ImGuiKeyRoutingTable_Clear"][1]["argsT"][1] = {} +defs["ImGuiKeyRoutingTable_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiKeyRoutingTable_Clear"][1]["argsT"][1]["type"] = "ImGuiKeyRoutingTable*" +defs["ImGuiKeyRoutingTable_Clear"][1]["argsoriginal"] = "()" +defs["ImGuiKeyRoutingTable_Clear"][1]["call_args"] = "()" +defs["ImGuiKeyRoutingTable_Clear"][1]["cimguiname"] = "ImGuiKeyRoutingTable_Clear" +defs["ImGuiKeyRoutingTable_Clear"][1]["defaults"] = {} +defs["ImGuiKeyRoutingTable_Clear"][1]["funcname"] = "Clear" +defs["ImGuiKeyRoutingTable_Clear"][1]["location"] = "imgui_internal:1332" +defs["ImGuiKeyRoutingTable_Clear"][1]["ov_cimguiname"] = "ImGuiKeyRoutingTable_Clear" +defs["ImGuiKeyRoutingTable_Clear"][1]["ret"] = "void" +defs["ImGuiKeyRoutingTable_Clear"][1]["signature"] = "()" +defs["ImGuiKeyRoutingTable_Clear"][1]["stname"] = "ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_Clear"]["()"] = defs["ImGuiKeyRoutingTable_Clear"][1] +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"] = {} +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1] = {} +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["args"] = "()" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["argsT"] = {} +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["argsoriginal"] = "()" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["call_args"] = "()" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["cimguiname"] = "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["constructor"] = true +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["defaults"] = {} +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["funcname"] = "ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["location"] = "imgui_internal:1331" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["ov_cimguiname"] = "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["signature"] = "()" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1]["stname"] = "ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"]["()"] = defs["ImGuiKeyRoutingTable_ImGuiKeyRoutingTable"][1] +defs["ImGuiKeyRoutingTable_destroy"] = {} +defs["ImGuiKeyRoutingTable_destroy"][1] = {} +defs["ImGuiKeyRoutingTable_destroy"][1]["args"] = "(ImGuiKeyRoutingTable* self)" +defs["ImGuiKeyRoutingTable_destroy"][1]["argsT"] = {} +defs["ImGuiKeyRoutingTable_destroy"][1]["argsT"][1] = {} +defs["ImGuiKeyRoutingTable_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiKeyRoutingTable_destroy"][1]["argsT"][1]["type"] = "ImGuiKeyRoutingTable*" +defs["ImGuiKeyRoutingTable_destroy"][1]["call_args"] = "(self)" +defs["ImGuiKeyRoutingTable_destroy"][1]["cimguiname"] = "ImGuiKeyRoutingTable_destroy" +defs["ImGuiKeyRoutingTable_destroy"][1]["defaults"] = {} +defs["ImGuiKeyRoutingTable_destroy"][1]["destructor"] = true +defs["ImGuiKeyRoutingTable_destroy"][1]["ov_cimguiname"] = "ImGuiKeyRoutingTable_destroy" +defs["ImGuiKeyRoutingTable_destroy"][1]["ret"] = "void" +defs["ImGuiKeyRoutingTable_destroy"][1]["signature"] = "(ImGuiKeyRoutingTable*)" +defs["ImGuiKeyRoutingTable_destroy"][1]["stname"] = "ImGuiKeyRoutingTable" +defs["ImGuiKeyRoutingTable_destroy"]["(ImGuiKeyRoutingTable*)"] = defs["ImGuiKeyRoutingTable_destroy"][1] +defs["ImGuiLastItemData_ImGuiLastItemData"] = {} +defs["ImGuiLastItemData_ImGuiLastItemData"][1] = {} +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["args"] = "()" +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["argsT"] = {} +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["argsoriginal"] = "()" +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["call_args"] = "()" +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["cimguiname"] = "ImGuiLastItemData_ImGuiLastItemData" +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["constructor"] = true +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["defaults"] = {} +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["funcname"] = "ImGuiLastItemData" +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["location"] = "imgui_internal:1180" +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["ov_cimguiname"] = "ImGuiLastItemData_ImGuiLastItemData" +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["signature"] = "()" +defs["ImGuiLastItemData_ImGuiLastItemData"][1]["stname"] = "ImGuiLastItemData" +defs["ImGuiLastItemData_ImGuiLastItemData"]["()"] = defs["ImGuiLastItemData_ImGuiLastItemData"][1] +defs["ImGuiLastItemData_destroy"] = {} +defs["ImGuiLastItemData_destroy"][1] = {} +defs["ImGuiLastItemData_destroy"][1]["args"] = "(ImGuiLastItemData* self)" +defs["ImGuiLastItemData_destroy"][1]["argsT"] = {} +defs["ImGuiLastItemData_destroy"][1]["argsT"][1] = {} +defs["ImGuiLastItemData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiLastItemData_destroy"][1]["argsT"][1]["type"] = "ImGuiLastItemData*" +defs["ImGuiLastItemData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiLastItemData_destroy"][1]["cimguiname"] = "ImGuiLastItemData_destroy" +defs["ImGuiLastItemData_destroy"][1]["defaults"] = {} +defs["ImGuiLastItemData_destroy"][1]["destructor"] = true +defs["ImGuiLastItemData_destroy"][1]["ov_cimguiname"] = "ImGuiLastItemData_destroy" +defs["ImGuiLastItemData_destroy"][1]["ret"] = "void" +defs["ImGuiLastItemData_destroy"][1]["signature"] = "(ImGuiLastItemData*)" +defs["ImGuiLastItemData_destroy"][1]["stname"] = "ImGuiLastItemData" +defs["ImGuiLastItemData_destroy"]["(ImGuiLastItemData*)"] = defs["ImGuiLastItemData_destroy"][1] +defs["ImGuiListClipperData_ImGuiListClipperData"] = {} +defs["ImGuiListClipperData_ImGuiListClipperData"][1] = {} +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["args"] = "()" +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["argsT"] = {} +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["argsoriginal"] = "()" +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["call_args"] = "()" +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["cimguiname"] = "ImGuiListClipperData_ImGuiListClipperData" +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["constructor"] = true +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["defaults"] = {} +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["funcname"] = "ImGuiListClipperData" +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["location"] = "imgui_internal:1420" +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["ov_cimguiname"] = "ImGuiListClipperData_ImGuiListClipperData" +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["signature"] = "()" +defs["ImGuiListClipperData_ImGuiListClipperData"][1]["stname"] = "ImGuiListClipperData" +defs["ImGuiListClipperData_ImGuiListClipperData"]["()"] = defs["ImGuiListClipperData_ImGuiListClipperData"][1] +defs["ImGuiListClipperData_Reset"] = {} +defs["ImGuiListClipperData_Reset"][1] = {} +defs["ImGuiListClipperData_Reset"][1]["args"] = "(ImGuiListClipperData* self,ImGuiListClipper* clipper)" +defs["ImGuiListClipperData_Reset"][1]["argsT"] = {} +defs["ImGuiListClipperData_Reset"][1]["argsT"][1] = {} +defs["ImGuiListClipperData_Reset"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipperData_Reset"][1]["argsT"][1]["type"] = "ImGuiListClipperData*" +defs["ImGuiListClipperData_Reset"][1]["argsT"][2] = {} +defs["ImGuiListClipperData_Reset"][1]["argsT"][2]["name"] = "clipper" +defs["ImGuiListClipperData_Reset"][1]["argsT"][2]["type"] = "ImGuiListClipper*" +defs["ImGuiListClipperData_Reset"][1]["argsoriginal"] = "(ImGuiListClipper* clipper)" +defs["ImGuiListClipperData_Reset"][1]["call_args"] = "(clipper)" +defs["ImGuiListClipperData_Reset"][1]["cimguiname"] = "ImGuiListClipperData_Reset" +defs["ImGuiListClipperData_Reset"][1]["defaults"] = {} +defs["ImGuiListClipperData_Reset"][1]["funcname"] = "Reset" +defs["ImGuiListClipperData_Reset"][1]["location"] = "imgui_internal:1421" +defs["ImGuiListClipperData_Reset"][1]["ov_cimguiname"] = "ImGuiListClipperData_Reset" +defs["ImGuiListClipperData_Reset"][1]["ret"] = "void" +defs["ImGuiListClipperData_Reset"][1]["signature"] = "(ImGuiListClipper*)" +defs["ImGuiListClipperData_Reset"][1]["stname"] = "ImGuiListClipperData" +defs["ImGuiListClipperData_Reset"]["(ImGuiListClipper*)"] = defs["ImGuiListClipperData_Reset"][1] +defs["ImGuiListClipperData_destroy"] = {} +defs["ImGuiListClipperData_destroy"][1] = {} +defs["ImGuiListClipperData_destroy"][1]["args"] = "(ImGuiListClipperData* self)" +defs["ImGuiListClipperData_destroy"][1]["argsT"] = {} +defs["ImGuiListClipperData_destroy"][1]["argsT"][1] = {} +defs["ImGuiListClipperData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiListClipperData_destroy"][1]["argsT"][1]["type"] = "ImGuiListClipperData*" +defs["ImGuiListClipperData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiListClipperData_destroy"][1]["cimguiname"] = "ImGuiListClipperData_destroy" +defs["ImGuiListClipperData_destroy"][1]["defaults"] = {} +defs["ImGuiListClipperData_destroy"][1]["destructor"] = true +defs["ImGuiListClipperData_destroy"][1]["ov_cimguiname"] = "ImGuiListClipperData_destroy" +defs["ImGuiListClipperData_destroy"][1]["ret"] = "void" +defs["ImGuiListClipperData_destroy"][1]["signature"] = "(ImGuiListClipperData*)" +defs["ImGuiListClipperData_destroy"][1]["stname"] = "ImGuiListClipperData" +defs["ImGuiListClipperData_destroy"]["(ImGuiListClipperData*)"] = defs["ImGuiListClipperData_destroy"][1] +defs["ImGuiListClipperRange_FromIndices"] = {} +defs["ImGuiListClipperRange_FromIndices"][1] = {} +defs["ImGuiListClipperRange_FromIndices"][1]["args"] = "(int min,int max)" +defs["ImGuiListClipperRange_FromIndices"][1]["argsT"] = {} +defs["ImGuiListClipperRange_FromIndices"][1]["argsT"][1] = {} +defs["ImGuiListClipperRange_FromIndices"][1]["argsT"][1]["name"] = "min" +defs["ImGuiListClipperRange_FromIndices"][1]["argsT"][1]["type"] = "int" +defs["ImGuiListClipperRange_FromIndices"][1]["argsT"][2] = {} +defs["ImGuiListClipperRange_FromIndices"][1]["argsT"][2]["name"] = "max" +defs["ImGuiListClipperRange_FromIndices"][1]["argsT"][2]["type"] = "int" +defs["ImGuiListClipperRange_FromIndices"][1]["argsoriginal"] = "(int min,int max)" +defs["ImGuiListClipperRange_FromIndices"][1]["call_args"] = "(min,max)" +defs["ImGuiListClipperRange_FromIndices"][1]["cimguiname"] = "ImGuiListClipperRange_FromIndices" +defs["ImGuiListClipperRange_FromIndices"][1]["defaults"] = {} +defs["ImGuiListClipperRange_FromIndices"][1]["funcname"] = "FromIndices" +defs["ImGuiListClipperRange_FromIndices"][1]["is_static_function"] = true +defs["ImGuiListClipperRange_FromIndices"][1]["location"] = "imgui_internal:1407" +defs["ImGuiListClipperRange_FromIndices"][1]["ov_cimguiname"] = "ImGuiListClipperRange_FromIndices" +defs["ImGuiListClipperRange_FromIndices"][1]["ret"] = "ImGuiListClipperRange" +defs["ImGuiListClipperRange_FromIndices"][1]["signature"] = "(int,int)" +defs["ImGuiListClipperRange_FromIndices"][1]["stname"] = "ImGuiListClipperRange" +defs["ImGuiListClipperRange_FromIndices"]["(int,int)"] = defs["ImGuiListClipperRange_FromIndices"][1] +defs["ImGuiListClipperRange_FromPositions"] = {} +defs["ImGuiListClipperRange_FromPositions"][1] = {} +defs["ImGuiListClipperRange_FromPositions"][1]["args"] = "(float y1,float y2,int off_min,int off_max)" +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"] = {} +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][1] = {} +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][1]["name"] = "y1" +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][1]["type"] = "float" +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][2] = {} +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][2]["name"] = "y2" +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][2]["type"] = "float" +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][3] = {} +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][3]["name"] = "off_min" +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][3]["type"] = "int" +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][4] = {} +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][4]["name"] = "off_max" +defs["ImGuiListClipperRange_FromPositions"][1]["argsT"][4]["type"] = "int" +defs["ImGuiListClipperRange_FromPositions"][1]["argsoriginal"] = "(float y1,float y2,int off_min,int off_max)" +defs["ImGuiListClipperRange_FromPositions"][1]["call_args"] = "(y1,y2,off_min,off_max)" +defs["ImGuiListClipperRange_FromPositions"][1]["cimguiname"] = "ImGuiListClipperRange_FromPositions" +defs["ImGuiListClipperRange_FromPositions"][1]["defaults"] = {} +defs["ImGuiListClipperRange_FromPositions"][1]["funcname"] = "FromPositions" +defs["ImGuiListClipperRange_FromPositions"][1]["is_static_function"] = true +defs["ImGuiListClipperRange_FromPositions"][1]["location"] = "imgui_internal:1408" +defs["ImGuiListClipperRange_FromPositions"][1]["ov_cimguiname"] = "ImGuiListClipperRange_FromPositions" +defs["ImGuiListClipperRange_FromPositions"][1]["ret"] = "ImGuiListClipperRange" +defs["ImGuiListClipperRange_FromPositions"][1]["signature"] = "(float,float,int,int)" +defs["ImGuiListClipperRange_FromPositions"][1]["stname"] = "ImGuiListClipperRange" +defs["ImGuiListClipperRange_FromPositions"]["(float,float,int,int)"] = defs["ImGuiListClipperRange_FromPositions"][1] defs["ImGuiListClipper_Begin"] = {} defs["ImGuiListClipper_Begin"][1] = {} defs["ImGuiListClipper_Begin"][1]["args"] = "(ImGuiListClipper* self,int items_count,float items_height)" @@ -4298,6 +5843,352 @@ defs["ImGuiListClipper_destroy"][1]["ret"] = "void" defs["ImGuiListClipper_destroy"][1]["signature"] = "(ImGuiListClipper*)" defs["ImGuiListClipper_destroy"][1]["stname"] = "ImGuiListClipper" defs["ImGuiListClipper_destroy"]["(ImGuiListClipper*)"] = defs["ImGuiListClipper_destroy"][1] +defs["ImGuiMenuColumns_CalcNextTotalWidth"] = {} +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1] = {} +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["args"] = "(ImGuiMenuColumns* self,bool update_offsets)" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["argsT"] = {} +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["argsT"][1] = {} +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["argsT"][1]["name"] = "self" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["argsT"][1]["type"] = "ImGuiMenuColumns*" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["argsT"][2] = {} +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["argsT"][2]["name"] = "update_offsets" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["argsT"][2]["type"] = "bool" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["argsoriginal"] = "(bool update_offsets)" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["call_args"] = "(update_offsets)" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["cimguiname"] = "ImGuiMenuColumns_CalcNextTotalWidth" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["defaults"] = {} +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["funcname"] = "CalcNextTotalWidth" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["location"] = "imgui_internal:1052" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["ov_cimguiname"] = "ImGuiMenuColumns_CalcNextTotalWidth" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["ret"] = "void" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["signature"] = "(bool)" +defs["ImGuiMenuColumns_CalcNextTotalWidth"][1]["stname"] = "ImGuiMenuColumns" +defs["ImGuiMenuColumns_CalcNextTotalWidth"]["(bool)"] = defs["ImGuiMenuColumns_CalcNextTotalWidth"][1] +defs["ImGuiMenuColumns_DeclColumns"] = {} +defs["ImGuiMenuColumns_DeclColumns"][1] = {} +defs["ImGuiMenuColumns_DeclColumns"][1]["args"] = "(ImGuiMenuColumns* self,float w_icon,float w_label,float w_shortcut,float w_mark)" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"] = {} +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][1] = {} +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][1]["name"] = "self" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][1]["type"] = "ImGuiMenuColumns*" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][2] = {} +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][2]["name"] = "w_icon" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][2]["type"] = "float" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][3] = {} +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][3]["name"] = "w_label" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][3]["type"] = "float" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][4] = {} +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][4]["name"] = "w_shortcut" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][4]["type"] = "float" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][5] = {} +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][5]["name"] = "w_mark" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsT"][5]["type"] = "float" +defs["ImGuiMenuColumns_DeclColumns"][1]["argsoriginal"] = "(float w_icon,float w_label,float w_shortcut,float w_mark)" +defs["ImGuiMenuColumns_DeclColumns"][1]["call_args"] = "(w_icon,w_label,w_shortcut,w_mark)" +defs["ImGuiMenuColumns_DeclColumns"][1]["cimguiname"] = "ImGuiMenuColumns_DeclColumns" +defs["ImGuiMenuColumns_DeclColumns"][1]["defaults"] = {} +defs["ImGuiMenuColumns_DeclColumns"][1]["funcname"] = "DeclColumns" +defs["ImGuiMenuColumns_DeclColumns"][1]["location"] = "imgui_internal:1051" +defs["ImGuiMenuColumns_DeclColumns"][1]["ov_cimguiname"] = "ImGuiMenuColumns_DeclColumns" +defs["ImGuiMenuColumns_DeclColumns"][1]["ret"] = "float" +defs["ImGuiMenuColumns_DeclColumns"][1]["signature"] = "(float,float,float,float)" +defs["ImGuiMenuColumns_DeclColumns"][1]["stname"] = "ImGuiMenuColumns" +defs["ImGuiMenuColumns_DeclColumns"]["(float,float,float,float)"] = defs["ImGuiMenuColumns_DeclColumns"][1] +defs["ImGuiMenuColumns_ImGuiMenuColumns"] = {} +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1] = {} +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["args"] = "()" +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["argsT"] = {} +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["argsoriginal"] = "()" +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["call_args"] = "()" +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["cimguiname"] = "ImGuiMenuColumns_ImGuiMenuColumns" +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["constructor"] = true +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["defaults"] = {} +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["funcname"] = "ImGuiMenuColumns" +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["location"] = "imgui_internal:1049" +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["ov_cimguiname"] = "ImGuiMenuColumns_ImGuiMenuColumns" +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["signature"] = "()" +defs["ImGuiMenuColumns_ImGuiMenuColumns"][1]["stname"] = "ImGuiMenuColumns" +defs["ImGuiMenuColumns_ImGuiMenuColumns"]["()"] = defs["ImGuiMenuColumns_ImGuiMenuColumns"][1] +defs["ImGuiMenuColumns_Update"] = {} +defs["ImGuiMenuColumns_Update"][1] = {} +defs["ImGuiMenuColumns_Update"][1]["args"] = "(ImGuiMenuColumns* self,float spacing,bool window_reappearing)" +defs["ImGuiMenuColumns_Update"][1]["argsT"] = {} +defs["ImGuiMenuColumns_Update"][1]["argsT"][1] = {} +defs["ImGuiMenuColumns_Update"][1]["argsT"][1]["name"] = "self" +defs["ImGuiMenuColumns_Update"][1]["argsT"][1]["type"] = "ImGuiMenuColumns*" +defs["ImGuiMenuColumns_Update"][1]["argsT"][2] = {} +defs["ImGuiMenuColumns_Update"][1]["argsT"][2]["name"] = "spacing" +defs["ImGuiMenuColumns_Update"][1]["argsT"][2]["type"] = "float" +defs["ImGuiMenuColumns_Update"][1]["argsT"][3] = {} +defs["ImGuiMenuColumns_Update"][1]["argsT"][3]["name"] = "window_reappearing" +defs["ImGuiMenuColumns_Update"][1]["argsT"][3]["type"] = "bool" +defs["ImGuiMenuColumns_Update"][1]["argsoriginal"] = "(float spacing,bool window_reappearing)" +defs["ImGuiMenuColumns_Update"][1]["call_args"] = "(spacing,window_reappearing)" +defs["ImGuiMenuColumns_Update"][1]["cimguiname"] = "ImGuiMenuColumns_Update" +defs["ImGuiMenuColumns_Update"][1]["defaults"] = {} +defs["ImGuiMenuColumns_Update"][1]["funcname"] = "Update" +defs["ImGuiMenuColumns_Update"][1]["location"] = "imgui_internal:1050" +defs["ImGuiMenuColumns_Update"][1]["ov_cimguiname"] = "ImGuiMenuColumns_Update" +defs["ImGuiMenuColumns_Update"][1]["ret"] = "void" +defs["ImGuiMenuColumns_Update"][1]["signature"] = "(float,bool)" +defs["ImGuiMenuColumns_Update"][1]["stname"] = "ImGuiMenuColumns" +defs["ImGuiMenuColumns_Update"]["(float,bool)"] = defs["ImGuiMenuColumns_Update"][1] +defs["ImGuiMenuColumns_destroy"] = {} +defs["ImGuiMenuColumns_destroy"][1] = {} +defs["ImGuiMenuColumns_destroy"][1]["args"] = "(ImGuiMenuColumns* self)" +defs["ImGuiMenuColumns_destroy"][1]["argsT"] = {} +defs["ImGuiMenuColumns_destroy"][1]["argsT"][1] = {} +defs["ImGuiMenuColumns_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiMenuColumns_destroy"][1]["argsT"][1]["type"] = "ImGuiMenuColumns*" +defs["ImGuiMenuColumns_destroy"][1]["call_args"] = "(self)" +defs["ImGuiMenuColumns_destroy"][1]["cimguiname"] = "ImGuiMenuColumns_destroy" +defs["ImGuiMenuColumns_destroy"][1]["defaults"] = {} +defs["ImGuiMenuColumns_destroy"][1]["destructor"] = true +defs["ImGuiMenuColumns_destroy"][1]["ov_cimguiname"] = "ImGuiMenuColumns_destroy" +defs["ImGuiMenuColumns_destroy"][1]["ret"] = "void" +defs["ImGuiMenuColumns_destroy"][1]["signature"] = "(ImGuiMenuColumns*)" +defs["ImGuiMenuColumns_destroy"][1]["stname"] = "ImGuiMenuColumns" +defs["ImGuiMenuColumns_destroy"]["(ImGuiMenuColumns*)"] = defs["ImGuiMenuColumns_destroy"][1] +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"] = {} +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1] = {} +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["args"] = "()" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["argsT"] = {} +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["argsoriginal"] = "()" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["call_args"] = "()" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["cimguiname"] = "ImGuiMetricsConfig_ImGuiMetricsConfig" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["constructor"] = true +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["defaults"] = {} +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["funcname"] = "ImGuiMetricsConfig" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["location"] = "imgui_internal:1849" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["ov_cimguiname"] = "ImGuiMetricsConfig_ImGuiMetricsConfig" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["signature"] = "()" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1]["stname"] = "ImGuiMetricsConfig" +defs["ImGuiMetricsConfig_ImGuiMetricsConfig"]["()"] = defs["ImGuiMetricsConfig_ImGuiMetricsConfig"][1] +defs["ImGuiMetricsConfig_destroy"] = {} +defs["ImGuiMetricsConfig_destroy"][1] = {} +defs["ImGuiMetricsConfig_destroy"][1]["args"] = "(ImGuiMetricsConfig* self)" +defs["ImGuiMetricsConfig_destroy"][1]["argsT"] = {} +defs["ImGuiMetricsConfig_destroy"][1]["argsT"][1] = {} +defs["ImGuiMetricsConfig_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiMetricsConfig_destroy"][1]["argsT"][1]["type"] = "ImGuiMetricsConfig*" +defs["ImGuiMetricsConfig_destroy"][1]["call_args"] = "(self)" +defs["ImGuiMetricsConfig_destroy"][1]["cimguiname"] = "ImGuiMetricsConfig_destroy" +defs["ImGuiMetricsConfig_destroy"][1]["defaults"] = {} +defs["ImGuiMetricsConfig_destroy"][1]["destructor"] = true +defs["ImGuiMetricsConfig_destroy"][1]["ov_cimguiname"] = "ImGuiMetricsConfig_destroy" +defs["ImGuiMetricsConfig_destroy"][1]["ret"] = "void" +defs["ImGuiMetricsConfig_destroy"][1]["signature"] = "(ImGuiMetricsConfig*)" +defs["ImGuiMetricsConfig_destroy"][1]["stname"] = "ImGuiMetricsConfig" +defs["ImGuiMetricsConfig_destroy"]["(ImGuiMetricsConfig*)"] = defs["ImGuiMetricsConfig_destroy"][1] +defs["ImGuiNavItemData_Clear"] = {} +defs["ImGuiNavItemData_Clear"][1] = {} +defs["ImGuiNavItemData_Clear"][1]["args"] = "(ImGuiNavItemData* self)" +defs["ImGuiNavItemData_Clear"][1]["argsT"] = {} +defs["ImGuiNavItemData_Clear"][1]["argsT"][1] = {} +defs["ImGuiNavItemData_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiNavItemData_Clear"][1]["argsT"][1]["type"] = "ImGuiNavItemData*" +defs["ImGuiNavItemData_Clear"][1]["argsoriginal"] = "()" +defs["ImGuiNavItemData_Clear"][1]["call_args"] = "()" +defs["ImGuiNavItemData_Clear"][1]["cimguiname"] = "ImGuiNavItemData_Clear" +defs["ImGuiNavItemData_Clear"][1]["defaults"] = {} +defs["ImGuiNavItemData_Clear"][1]["funcname"] = "Clear" +defs["ImGuiNavItemData_Clear"][1]["location"] = "imgui_internal:1497" +defs["ImGuiNavItemData_Clear"][1]["ov_cimguiname"] = "ImGuiNavItemData_Clear" +defs["ImGuiNavItemData_Clear"][1]["ret"] = "void" +defs["ImGuiNavItemData_Clear"][1]["signature"] = "()" +defs["ImGuiNavItemData_Clear"][1]["stname"] = "ImGuiNavItemData" +defs["ImGuiNavItemData_Clear"]["()"] = defs["ImGuiNavItemData_Clear"][1] +defs["ImGuiNavItemData_ImGuiNavItemData"] = {} +defs["ImGuiNavItemData_ImGuiNavItemData"][1] = {} +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["args"] = "()" +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["argsT"] = {} +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["argsoriginal"] = "()" +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["call_args"] = "()" +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["cimguiname"] = "ImGuiNavItemData_ImGuiNavItemData" +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["constructor"] = true +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["defaults"] = {} +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["funcname"] = "ImGuiNavItemData" +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["location"] = "imgui_internal:1496" +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["ov_cimguiname"] = "ImGuiNavItemData_ImGuiNavItemData" +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["signature"] = "()" +defs["ImGuiNavItemData_ImGuiNavItemData"][1]["stname"] = "ImGuiNavItemData" +defs["ImGuiNavItemData_ImGuiNavItemData"]["()"] = defs["ImGuiNavItemData_ImGuiNavItemData"][1] +defs["ImGuiNavItemData_destroy"] = {} +defs["ImGuiNavItemData_destroy"][1] = {} +defs["ImGuiNavItemData_destroy"][1]["args"] = "(ImGuiNavItemData* self)" +defs["ImGuiNavItemData_destroy"][1]["argsT"] = {} +defs["ImGuiNavItemData_destroy"][1]["argsT"][1] = {} +defs["ImGuiNavItemData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiNavItemData_destroy"][1]["argsT"][1]["type"] = "ImGuiNavItemData*" +defs["ImGuiNavItemData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiNavItemData_destroy"][1]["cimguiname"] = "ImGuiNavItemData_destroy" +defs["ImGuiNavItemData_destroy"][1]["defaults"] = {} +defs["ImGuiNavItemData_destroy"][1]["destructor"] = true +defs["ImGuiNavItemData_destroy"][1]["ov_cimguiname"] = "ImGuiNavItemData_destroy" +defs["ImGuiNavItemData_destroy"][1]["ret"] = "void" +defs["ImGuiNavItemData_destroy"][1]["signature"] = "(ImGuiNavItemData*)" +defs["ImGuiNavItemData_destroy"][1]["stname"] = "ImGuiNavItemData" +defs["ImGuiNavItemData_destroy"]["(ImGuiNavItemData*)"] = defs["ImGuiNavItemData_destroy"][1] +defs["ImGuiNextItemData_ClearFlags"] = {} +defs["ImGuiNextItemData_ClearFlags"][1] = {} +defs["ImGuiNextItemData_ClearFlags"][1]["args"] = "(ImGuiNextItemData* self)" +defs["ImGuiNextItemData_ClearFlags"][1]["argsT"] = {} +defs["ImGuiNextItemData_ClearFlags"][1]["argsT"][1] = {} +defs["ImGuiNextItemData_ClearFlags"][1]["argsT"][1]["name"] = "self" +defs["ImGuiNextItemData_ClearFlags"][1]["argsT"][1]["type"] = "ImGuiNextItemData*" +defs["ImGuiNextItemData_ClearFlags"][1]["argsoriginal"] = "()" +defs["ImGuiNextItemData_ClearFlags"][1]["call_args"] = "()" +defs["ImGuiNextItemData_ClearFlags"][1]["cimguiname"] = "ImGuiNextItemData_ClearFlags" +defs["ImGuiNextItemData_ClearFlags"][1]["defaults"] = {} +defs["ImGuiNextItemData_ClearFlags"][1]["funcname"] = "ClearFlags" +defs["ImGuiNextItemData_ClearFlags"][1]["location"] = "imgui_internal:1167" +defs["ImGuiNextItemData_ClearFlags"][1]["ov_cimguiname"] = "ImGuiNextItemData_ClearFlags" +defs["ImGuiNextItemData_ClearFlags"][1]["ret"] = "void" +defs["ImGuiNextItemData_ClearFlags"][1]["signature"] = "()" +defs["ImGuiNextItemData_ClearFlags"][1]["stname"] = "ImGuiNextItemData" +defs["ImGuiNextItemData_ClearFlags"]["()"] = defs["ImGuiNextItemData_ClearFlags"][1] +defs["ImGuiNextItemData_ImGuiNextItemData"] = {} +defs["ImGuiNextItemData_ImGuiNextItemData"][1] = {} +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["args"] = "()" +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["argsT"] = {} +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["argsoriginal"] = "()" +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["call_args"] = "()" +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["cimguiname"] = "ImGuiNextItemData_ImGuiNextItemData" +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["constructor"] = true +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["defaults"] = {} +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["funcname"] = "ImGuiNextItemData" +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["location"] = "imgui_internal:1166" +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["ov_cimguiname"] = "ImGuiNextItemData_ImGuiNextItemData" +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["signature"] = "()" +defs["ImGuiNextItemData_ImGuiNextItemData"][1]["stname"] = "ImGuiNextItemData" +defs["ImGuiNextItemData_ImGuiNextItemData"]["()"] = defs["ImGuiNextItemData_ImGuiNextItemData"][1] +defs["ImGuiNextItemData_destroy"] = {} +defs["ImGuiNextItemData_destroy"][1] = {} +defs["ImGuiNextItemData_destroy"][1]["args"] = "(ImGuiNextItemData* self)" +defs["ImGuiNextItemData_destroy"][1]["argsT"] = {} +defs["ImGuiNextItemData_destroy"][1]["argsT"][1] = {} +defs["ImGuiNextItemData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiNextItemData_destroy"][1]["argsT"][1]["type"] = "ImGuiNextItemData*" +defs["ImGuiNextItemData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiNextItemData_destroy"][1]["cimguiname"] = "ImGuiNextItemData_destroy" +defs["ImGuiNextItemData_destroy"][1]["defaults"] = {} +defs["ImGuiNextItemData_destroy"][1]["destructor"] = true +defs["ImGuiNextItemData_destroy"][1]["ov_cimguiname"] = "ImGuiNextItemData_destroy" +defs["ImGuiNextItemData_destroy"][1]["ret"] = "void" +defs["ImGuiNextItemData_destroy"][1]["signature"] = "(ImGuiNextItemData*)" +defs["ImGuiNextItemData_destroy"][1]["stname"] = "ImGuiNextItemData" +defs["ImGuiNextItemData_destroy"]["(ImGuiNextItemData*)"] = defs["ImGuiNextItemData_destroy"][1] +defs["ImGuiNextWindowData_ClearFlags"] = {} +defs["ImGuiNextWindowData_ClearFlags"][1] = {} +defs["ImGuiNextWindowData_ClearFlags"][1]["args"] = "(ImGuiNextWindowData* self)" +defs["ImGuiNextWindowData_ClearFlags"][1]["argsT"] = {} +defs["ImGuiNextWindowData_ClearFlags"][1]["argsT"][1] = {} +defs["ImGuiNextWindowData_ClearFlags"][1]["argsT"][1]["name"] = "self" +defs["ImGuiNextWindowData_ClearFlags"][1]["argsT"][1]["type"] = "ImGuiNextWindowData*" +defs["ImGuiNextWindowData_ClearFlags"][1]["argsoriginal"] = "()" +defs["ImGuiNextWindowData_ClearFlags"][1]["call_args"] = "()" +defs["ImGuiNextWindowData_ClearFlags"][1]["cimguiname"] = "ImGuiNextWindowData_ClearFlags" +defs["ImGuiNextWindowData_ClearFlags"][1]["defaults"] = {} +defs["ImGuiNextWindowData_ClearFlags"][1]["funcname"] = "ClearFlags" +defs["ImGuiNextWindowData_ClearFlags"][1]["location"] = "imgui_internal:1148" +defs["ImGuiNextWindowData_ClearFlags"][1]["ov_cimguiname"] = "ImGuiNextWindowData_ClearFlags" +defs["ImGuiNextWindowData_ClearFlags"][1]["ret"] = "void" +defs["ImGuiNextWindowData_ClearFlags"][1]["signature"] = "()" +defs["ImGuiNextWindowData_ClearFlags"][1]["stname"] = "ImGuiNextWindowData" +defs["ImGuiNextWindowData_ClearFlags"]["()"] = defs["ImGuiNextWindowData_ClearFlags"][1] +defs["ImGuiNextWindowData_ImGuiNextWindowData"] = {} +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1] = {} +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["args"] = "()" +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["argsT"] = {} +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["argsoriginal"] = "()" +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["call_args"] = "()" +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["cimguiname"] = "ImGuiNextWindowData_ImGuiNextWindowData" +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["constructor"] = true +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["defaults"] = {} +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["funcname"] = "ImGuiNextWindowData" +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["location"] = "imgui_internal:1147" +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["ov_cimguiname"] = "ImGuiNextWindowData_ImGuiNextWindowData" +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["signature"] = "()" +defs["ImGuiNextWindowData_ImGuiNextWindowData"][1]["stname"] = "ImGuiNextWindowData" +defs["ImGuiNextWindowData_ImGuiNextWindowData"]["()"] = defs["ImGuiNextWindowData_ImGuiNextWindowData"][1] +defs["ImGuiNextWindowData_destroy"] = {} +defs["ImGuiNextWindowData_destroy"][1] = {} +defs["ImGuiNextWindowData_destroy"][1]["args"] = "(ImGuiNextWindowData* self)" +defs["ImGuiNextWindowData_destroy"][1]["argsT"] = {} +defs["ImGuiNextWindowData_destroy"][1]["argsT"][1] = {} +defs["ImGuiNextWindowData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiNextWindowData_destroy"][1]["argsT"][1]["type"] = "ImGuiNextWindowData*" +defs["ImGuiNextWindowData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiNextWindowData_destroy"][1]["cimguiname"] = "ImGuiNextWindowData_destroy" +defs["ImGuiNextWindowData_destroy"][1]["defaults"] = {} +defs["ImGuiNextWindowData_destroy"][1]["destructor"] = true +defs["ImGuiNextWindowData_destroy"][1]["ov_cimguiname"] = "ImGuiNextWindowData_destroy" +defs["ImGuiNextWindowData_destroy"][1]["ret"] = "void" +defs["ImGuiNextWindowData_destroy"][1]["signature"] = "(ImGuiNextWindowData*)" +defs["ImGuiNextWindowData_destroy"][1]["stname"] = "ImGuiNextWindowData" +defs["ImGuiNextWindowData_destroy"]["(ImGuiNextWindowData*)"] = defs["ImGuiNextWindowData_destroy"][1] +defs["ImGuiOldColumnData_ImGuiOldColumnData"] = {} +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1] = {} +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["args"] = "()" +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["argsT"] = {} +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["argsoriginal"] = "()" +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["call_args"] = "()" +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["cimguiname"] = "ImGuiOldColumnData_ImGuiOldColumnData" +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["constructor"] = true +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["defaults"] = {} +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["funcname"] = "ImGuiOldColumnData" +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["location"] = "imgui_internal:1532" +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["ov_cimguiname"] = "ImGuiOldColumnData_ImGuiOldColumnData" +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["signature"] = "()" +defs["ImGuiOldColumnData_ImGuiOldColumnData"][1]["stname"] = "ImGuiOldColumnData" +defs["ImGuiOldColumnData_ImGuiOldColumnData"]["()"] = defs["ImGuiOldColumnData_ImGuiOldColumnData"][1] +defs["ImGuiOldColumnData_destroy"] = {} +defs["ImGuiOldColumnData_destroy"][1] = {} +defs["ImGuiOldColumnData_destroy"][1]["args"] = "(ImGuiOldColumnData* self)" +defs["ImGuiOldColumnData_destroy"][1]["argsT"] = {} +defs["ImGuiOldColumnData_destroy"][1]["argsT"][1] = {} +defs["ImGuiOldColumnData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiOldColumnData_destroy"][1]["argsT"][1]["type"] = "ImGuiOldColumnData*" +defs["ImGuiOldColumnData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiOldColumnData_destroy"][1]["cimguiname"] = "ImGuiOldColumnData_destroy" +defs["ImGuiOldColumnData_destroy"][1]["defaults"] = {} +defs["ImGuiOldColumnData_destroy"][1]["destructor"] = true +defs["ImGuiOldColumnData_destroy"][1]["ov_cimguiname"] = "ImGuiOldColumnData_destroy" +defs["ImGuiOldColumnData_destroy"][1]["ret"] = "void" +defs["ImGuiOldColumnData_destroy"][1]["signature"] = "(ImGuiOldColumnData*)" +defs["ImGuiOldColumnData_destroy"][1]["stname"] = "ImGuiOldColumnData" +defs["ImGuiOldColumnData_destroy"]["(ImGuiOldColumnData*)"] = defs["ImGuiOldColumnData_destroy"][1] +defs["ImGuiOldColumns_ImGuiOldColumns"] = {} +defs["ImGuiOldColumns_ImGuiOldColumns"][1] = {} +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["args"] = "()" +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["argsT"] = {} +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["argsoriginal"] = "()" +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["call_args"] = "()" +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["cimguiname"] = "ImGuiOldColumns_ImGuiOldColumns" +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["constructor"] = true +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["defaults"] = {} +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["funcname"] = "ImGuiOldColumns" +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["location"] = "imgui_internal:1553" +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["ov_cimguiname"] = "ImGuiOldColumns_ImGuiOldColumns" +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["signature"] = "()" +defs["ImGuiOldColumns_ImGuiOldColumns"][1]["stname"] = "ImGuiOldColumns" +defs["ImGuiOldColumns_ImGuiOldColumns"]["()"] = defs["ImGuiOldColumns_ImGuiOldColumns"][1] +defs["ImGuiOldColumns_destroy"] = {} +defs["ImGuiOldColumns_destroy"][1] = {} +defs["ImGuiOldColumns_destroy"][1]["args"] = "(ImGuiOldColumns* self)" +defs["ImGuiOldColumns_destroy"][1]["argsT"] = {} +defs["ImGuiOldColumns_destroy"][1]["argsT"][1] = {} +defs["ImGuiOldColumns_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiOldColumns_destroy"][1]["argsT"][1]["type"] = "ImGuiOldColumns*" +defs["ImGuiOldColumns_destroy"][1]["call_args"] = "(self)" +defs["ImGuiOldColumns_destroy"][1]["cimguiname"] = "ImGuiOldColumns_destroy" +defs["ImGuiOldColumns_destroy"][1]["defaults"] = {} +defs["ImGuiOldColumns_destroy"][1]["destructor"] = true +defs["ImGuiOldColumns_destroy"][1]["ov_cimguiname"] = "ImGuiOldColumns_destroy" +defs["ImGuiOldColumns_destroy"][1]["ret"] = "void" +defs["ImGuiOldColumns_destroy"][1]["signature"] = "(ImGuiOldColumns*)" +defs["ImGuiOldColumns_destroy"][1]["stname"] = "ImGuiOldColumns" +defs["ImGuiOldColumns_destroy"]["(ImGuiOldColumns*)"] = defs["ImGuiOldColumns_destroy"][1] defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"] = {} defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1] = {} defs["ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"][1]["args"] = "()" @@ -4528,6 +6419,248 @@ defs["ImGuiPlatformMonitor_destroy"][1]["ret"] = "void" defs["ImGuiPlatformMonitor_destroy"][1]["signature"] = "(ImGuiPlatformMonitor*)" defs["ImGuiPlatformMonitor_destroy"][1]["stname"] = "ImGuiPlatformMonitor" defs["ImGuiPlatformMonitor_destroy"]["(ImGuiPlatformMonitor*)"] = defs["ImGuiPlatformMonitor_destroy"][1] +defs["ImGuiPopupData_ImGuiPopupData"] = {} +defs["ImGuiPopupData_ImGuiPopupData"][1] = {} +defs["ImGuiPopupData_ImGuiPopupData"][1]["args"] = "()" +defs["ImGuiPopupData_ImGuiPopupData"][1]["argsT"] = {} +defs["ImGuiPopupData_ImGuiPopupData"][1]["argsoriginal"] = "()" +defs["ImGuiPopupData_ImGuiPopupData"][1]["call_args"] = "()" +defs["ImGuiPopupData_ImGuiPopupData"][1]["cimguiname"] = "ImGuiPopupData_ImGuiPopupData" +defs["ImGuiPopupData_ImGuiPopupData"][1]["constructor"] = true +defs["ImGuiPopupData_ImGuiPopupData"][1]["defaults"] = {} +defs["ImGuiPopupData_ImGuiPopupData"][1]["funcname"] = "ImGuiPopupData" +defs["ImGuiPopupData_ImGuiPopupData"][1]["location"] = "imgui_internal:1104" +defs["ImGuiPopupData_ImGuiPopupData"][1]["ov_cimguiname"] = "ImGuiPopupData_ImGuiPopupData" +defs["ImGuiPopupData_ImGuiPopupData"][1]["signature"] = "()" +defs["ImGuiPopupData_ImGuiPopupData"][1]["stname"] = "ImGuiPopupData" +defs["ImGuiPopupData_ImGuiPopupData"]["()"] = defs["ImGuiPopupData_ImGuiPopupData"][1] +defs["ImGuiPopupData_destroy"] = {} +defs["ImGuiPopupData_destroy"][1] = {} +defs["ImGuiPopupData_destroy"][1]["args"] = "(ImGuiPopupData* self)" +defs["ImGuiPopupData_destroy"][1]["argsT"] = {} +defs["ImGuiPopupData_destroy"][1]["argsT"][1] = {} +defs["ImGuiPopupData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPopupData_destroy"][1]["argsT"][1]["type"] = "ImGuiPopupData*" +defs["ImGuiPopupData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPopupData_destroy"][1]["cimguiname"] = "ImGuiPopupData_destroy" +defs["ImGuiPopupData_destroy"][1]["defaults"] = {} +defs["ImGuiPopupData_destroy"][1]["destructor"] = true +defs["ImGuiPopupData_destroy"][1]["ov_cimguiname"] = "ImGuiPopupData_destroy" +defs["ImGuiPopupData_destroy"][1]["ret"] = "void" +defs["ImGuiPopupData_destroy"][1]["signature"] = "(ImGuiPopupData*)" +defs["ImGuiPopupData_destroy"][1]["stname"] = "ImGuiPopupData" +defs["ImGuiPopupData_destroy"]["(ImGuiPopupData*)"] = defs["ImGuiPopupData_destroy"][1] +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"] = {} +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1] = {} +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["args"] = "(void* ptr)" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["argsT"] = {} +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["argsT"][1] = {} +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["argsT"][1]["name"] = "ptr" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["argsT"][1]["type"] = "void*" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["argsoriginal"] = "(void* ptr)" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["call_args"] = "(ptr)" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["cimguiname"] = "ImGuiPtrOrIndex_ImGuiPtrOrIndex" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["constructor"] = true +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["defaults"] = {} +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["funcname"] = "ImGuiPtrOrIndex" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["location"] = "imgui_internal:1220" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["ov_cimguiname"] = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["signature"] = "(void*)" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1]["stname"] = "ImGuiPtrOrIndex" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2] = {} +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["args"] = "(int index)" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["argsT"] = {} +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["argsT"][1] = {} +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["argsT"][1]["name"] = "index" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["argsT"][1]["type"] = "int" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["argsoriginal"] = "(int index)" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["call_args"] = "(index)" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["cimguiname"] = "ImGuiPtrOrIndex_ImGuiPtrOrIndex" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["constructor"] = true +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["defaults"] = {} +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["funcname"] = "ImGuiPtrOrIndex" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["location"] = "imgui_internal:1221" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["ov_cimguiname"] = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["signature"] = "(int)" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2]["stname"] = "ImGuiPtrOrIndex" +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"]["(int)"] = defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][2] +defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"]["(void*)"] = defs["ImGuiPtrOrIndex_ImGuiPtrOrIndex"][1] +defs["ImGuiPtrOrIndex_destroy"] = {} +defs["ImGuiPtrOrIndex_destroy"][1] = {} +defs["ImGuiPtrOrIndex_destroy"][1]["args"] = "(ImGuiPtrOrIndex* self)" +defs["ImGuiPtrOrIndex_destroy"][1]["argsT"] = {} +defs["ImGuiPtrOrIndex_destroy"][1]["argsT"][1] = {} +defs["ImGuiPtrOrIndex_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiPtrOrIndex_destroy"][1]["argsT"][1]["type"] = "ImGuiPtrOrIndex*" +defs["ImGuiPtrOrIndex_destroy"][1]["call_args"] = "(self)" +defs["ImGuiPtrOrIndex_destroy"][1]["cimguiname"] = "ImGuiPtrOrIndex_destroy" +defs["ImGuiPtrOrIndex_destroy"][1]["defaults"] = {} +defs["ImGuiPtrOrIndex_destroy"][1]["destructor"] = true +defs["ImGuiPtrOrIndex_destroy"][1]["ov_cimguiname"] = "ImGuiPtrOrIndex_destroy" +defs["ImGuiPtrOrIndex_destroy"][1]["ret"] = "void" +defs["ImGuiPtrOrIndex_destroy"][1]["signature"] = "(ImGuiPtrOrIndex*)" +defs["ImGuiPtrOrIndex_destroy"][1]["stname"] = "ImGuiPtrOrIndex" +defs["ImGuiPtrOrIndex_destroy"]["(ImGuiPtrOrIndex*)"] = defs["ImGuiPtrOrIndex_destroy"][1] +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"] = {} +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1] = {} +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["args"] = "()" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["argsT"] = {} +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["argsoriginal"] = "()" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["call_args"] = "()" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["cimguiname"] = "ImGuiSettingsHandler_ImGuiSettingsHandler" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["constructor"] = true +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["defaults"] = {} +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["funcname"] = "ImGuiSettingsHandler" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["location"] = "imgui_internal:1788" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["ov_cimguiname"] = "ImGuiSettingsHandler_ImGuiSettingsHandler" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["signature"] = "()" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1]["stname"] = "ImGuiSettingsHandler" +defs["ImGuiSettingsHandler_ImGuiSettingsHandler"]["()"] = defs["ImGuiSettingsHandler_ImGuiSettingsHandler"][1] +defs["ImGuiSettingsHandler_destroy"] = {} +defs["ImGuiSettingsHandler_destroy"][1] = {} +defs["ImGuiSettingsHandler_destroy"][1]["args"] = "(ImGuiSettingsHandler* self)" +defs["ImGuiSettingsHandler_destroy"][1]["argsT"] = {} +defs["ImGuiSettingsHandler_destroy"][1]["argsT"][1] = {} +defs["ImGuiSettingsHandler_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiSettingsHandler_destroy"][1]["argsT"][1]["type"] = "ImGuiSettingsHandler*" +defs["ImGuiSettingsHandler_destroy"][1]["call_args"] = "(self)" +defs["ImGuiSettingsHandler_destroy"][1]["cimguiname"] = "ImGuiSettingsHandler_destroy" +defs["ImGuiSettingsHandler_destroy"][1]["defaults"] = {} +defs["ImGuiSettingsHandler_destroy"][1]["destructor"] = true +defs["ImGuiSettingsHandler_destroy"][1]["ov_cimguiname"] = "ImGuiSettingsHandler_destroy" +defs["ImGuiSettingsHandler_destroy"][1]["ret"] = "void" +defs["ImGuiSettingsHandler_destroy"][1]["signature"] = "(ImGuiSettingsHandler*)" +defs["ImGuiSettingsHandler_destroy"][1]["stname"] = "ImGuiSettingsHandler" +defs["ImGuiSettingsHandler_destroy"]["(ImGuiSettingsHandler*)"] = defs["ImGuiSettingsHandler_destroy"][1] +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"] = {} +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1] = {} +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["args"] = "()" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["argsT"] = {} +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["argsoriginal"] = "()" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["call_args"] = "()" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["cimguiname"] = "ImGuiStackLevelInfo_ImGuiStackLevelInfo" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["constructor"] = true +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["defaults"] = {} +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["funcname"] = "ImGuiStackLevelInfo" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["location"] = "imgui_internal:1867" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["ov_cimguiname"] = "ImGuiStackLevelInfo_ImGuiStackLevelInfo" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["signature"] = "()" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1]["stname"] = "ImGuiStackLevelInfo" +defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"]["()"] = defs["ImGuiStackLevelInfo_ImGuiStackLevelInfo"][1] +defs["ImGuiStackLevelInfo_destroy"] = {} +defs["ImGuiStackLevelInfo_destroy"][1] = {} +defs["ImGuiStackLevelInfo_destroy"][1]["args"] = "(ImGuiStackLevelInfo* self)" +defs["ImGuiStackLevelInfo_destroy"][1]["argsT"] = {} +defs["ImGuiStackLevelInfo_destroy"][1]["argsT"][1] = {} +defs["ImGuiStackLevelInfo_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStackLevelInfo_destroy"][1]["argsT"][1]["type"] = "ImGuiStackLevelInfo*" +defs["ImGuiStackLevelInfo_destroy"][1]["call_args"] = "(self)" +defs["ImGuiStackLevelInfo_destroy"][1]["cimguiname"] = "ImGuiStackLevelInfo_destroy" +defs["ImGuiStackLevelInfo_destroy"][1]["defaults"] = {} +defs["ImGuiStackLevelInfo_destroy"][1]["destructor"] = true +defs["ImGuiStackLevelInfo_destroy"][1]["ov_cimguiname"] = "ImGuiStackLevelInfo_destroy" +defs["ImGuiStackLevelInfo_destroy"][1]["ret"] = "void" +defs["ImGuiStackLevelInfo_destroy"][1]["signature"] = "(ImGuiStackLevelInfo*)" +defs["ImGuiStackLevelInfo_destroy"][1]["stname"] = "ImGuiStackLevelInfo" +defs["ImGuiStackLevelInfo_destroy"]["(ImGuiStackLevelInfo*)"] = defs["ImGuiStackLevelInfo_destroy"][1] +defs["ImGuiStackSizes_CompareWithCurrentState"] = {} +defs["ImGuiStackSizes_CompareWithCurrentState"][1] = {} +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["args"] = "(ImGuiStackSizes* self)" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["argsT"] = {} +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["argsT"][1] = {} +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["argsT"][1]["type"] = "ImGuiStackSizes*" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["argsoriginal"] = "()" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["call_args"] = "()" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["cimguiname"] = "ImGuiStackSizes_CompareWithCurrentState" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["defaults"] = {} +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["funcname"] = "CompareWithCurrentState" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["location"] = "imgui_internal:1197" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["ov_cimguiname"] = "ImGuiStackSizes_CompareWithCurrentState" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["ret"] = "void" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["signature"] = "()" +defs["ImGuiStackSizes_CompareWithCurrentState"][1]["stname"] = "ImGuiStackSizes" +defs["ImGuiStackSizes_CompareWithCurrentState"]["()"] = defs["ImGuiStackSizes_CompareWithCurrentState"][1] +defs["ImGuiStackSizes_ImGuiStackSizes"] = {} +defs["ImGuiStackSizes_ImGuiStackSizes"][1] = {} +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["args"] = "()" +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["argsT"] = {} +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["argsoriginal"] = "()" +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["call_args"] = "()" +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["cimguiname"] = "ImGuiStackSizes_ImGuiStackSizes" +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["constructor"] = true +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["defaults"] = {} +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["funcname"] = "ImGuiStackSizes" +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["location"] = "imgui_internal:1195" +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["ov_cimguiname"] = "ImGuiStackSizes_ImGuiStackSizes" +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["signature"] = "()" +defs["ImGuiStackSizes_ImGuiStackSizes"][1]["stname"] = "ImGuiStackSizes" +defs["ImGuiStackSizes_ImGuiStackSizes"]["()"] = defs["ImGuiStackSizes_ImGuiStackSizes"][1] +defs["ImGuiStackSizes_SetToCurrentState"] = {} +defs["ImGuiStackSizes_SetToCurrentState"][1] = {} +defs["ImGuiStackSizes_SetToCurrentState"][1]["args"] = "(ImGuiStackSizes* self)" +defs["ImGuiStackSizes_SetToCurrentState"][1]["argsT"] = {} +defs["ImGuiStackSizes_SetToCurrentState"][1]["argsT"][1] = {} +defs["ImGuiStackSizes_SetToCurrentState"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStackSizes_SetToCurrentState"][1]["argsT"][1]["type"] = "ImGuiStackSizes*" +defs["ImGuiStackSizes_SetToCurrentState"][1]["argsoriginal"] = "()" +defs["ImGuiStackSizes_SetToCurrentState"][1]["call_args"] = "()" +defs["ImGuiStackSizes_SetToCurrentState"][1]["cimguiname"] = "ImGuiStackSizes_SetToCurrentState" +defs["ImGuiStackSizes_SetToCurrentState"][1]["defaults"] = {} +defs["ImGuiStackSizes_SetToCurrentState"][1]["funcname"] = "SetToCurrentState" +defs["ImGuiStackSizes_SetToCurrentState"][1]["location"] = "imgui_internal:1196" +defs["ImGuiStackSizes_SetToCurrentState"][1]["ov_cimguiname"] = "ImGuiStackSizes_SetToCurrentState" +defs["ImGuiStackSizes_SetToCurrentState"][1]["ret"] = "void" +defs["ImGuiStackSizes_SetToCurrentState"][1]["signature"] = "()" +defs["ImGuiStackSizes_SetToCurrentState"][1]["stname"] = "ImGuiStackSizes" +defs["ImGuiStackSizes_SetToCurrentState"]["()"] = defs["ImGuiStackSizes_SetToCurrentState"][1] +defs["ImGuiStackSizes_destroy"] = {} +defs["ImGuiStackSizes_destroy"][1] = {} +defs["ImGuiStackSizes_destroy"][1]["args"] = "(ImGuiStackSizes* self)" +defs["ImGuiStackSizes_destroy"][1]["argsT"] = {} +defs["ImGuiStackSizes_destroy"][1]["argsT"][1] = {} +defs["ImGuiStackSizes_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStackSizes_destroy"][1]["argsT"][1]["type"] = "ImGuiStackSizes*" +defs["ImGuiStackSizes_destroy"][1]["call_args"] = "(self)" +defs["ImGuiStackSizes_destroy"][1]["cimguiname"] = "ImGuiStackSizes_destroy" +defs["ImGuiStackSizes_destroy"][1]["defaults"] = {} +defs["ImGuiStackSizes_destroy"][1]["destructor"] = true +defs["ImGuiStackSizes_destroy"][1]["ov_cimguiname"] = "ImGuiStackSizes_destroy" +defs["ImGuiStackSizes_destroy"][1]["ret"] = "void" +defs["ImGuiStackSizes_destroy"][1]["signature"] = "(ImGuiStackSizes*)" +defs["ImGuiStackSizes_destroy"][1]["stname"] = "ImGuiStackSizes" +defs["ImGuiStackSizes_destroy"]["(ImGuiStackSizes*)"] = defs["ImGuiStackSizes_destroy"][1] +defs["ImGuiStackTool_ImGuiStackTool"] = {} +defs["ImGuiStackTool_ImGuiStackTool"][1] = {} +defs["ImGuiStackTool_ImGuiStackTool"][1]["args"] = "()" +defs["ImGuiStackTool_ImGuiStackTool"][1]["argsT"] = {} +defs["ImGuiStackTool_ImGuiStackTool"][1]["argsoriginal"] = "()" +defs["ImGuiStackTool_ImGuiStackTool"][1]["call_args"] = "()" +defs["ImGuiStackTool_ImGuiStackTool"][1]["cimguiname"] = "ImGuiStackTool_ImGuiStackTool" +defs["ImGuiStackTool_ImGuiStackTool"][1]["constructor"] = true +defs["ImGuiStackTool_ImGuiStackTool"][1]["defaults"] = {} +defs["ImGuiStackTool_ImGuiStackTool"][1]["funcname"] = "ImGuiStackTool" +defs["ImGuiStackTool_ImGuiStackTool"][1]["location"] = "imgui_internal:1880" +defs["ImGuiStackTool_ImGuiStackTool"][1]["ov_cimguiname"] = "ImGuiStackTool_ImGuiStackTool" +defs["ImGuiStackTool_ImGuiStackTool"][1]["signature"] = "()" +defs["ImGuiStackTool_ImGuiStackTool"][1]["stname"] = "ImGuiStackTool" +defs["ImGuiStackTool_ImGuiStackTool"]["()"] = defs["ImGuiStackTool_ImGuiStackTool"][1] +defs["ImGuiStackTool_destroy"] = {} +defs["ImGuiStackTool_destroy"][1] = {} +defs["ImGuiStackTool_destroy"][1]["args"] = "(ImGuiStackTool* self)" +defs["ImGuiStackTool_destroy"][1]["argsT"] = {} +defs["ImGuiStackTool_destroy"][1]["argsT"][1] = {} +defs["ImGuiStackTool_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStackTool_destroy"][1]["argsT"][1]["type"] = "ImGuiStackTool*" +defs["ImGuiStackTool_destroy"][1]["call_args"] = "(self)" +defs["ImGuiStackTool_destroy"][1]["cimguiname"] = "ImGuiStackTool_destroy" +defs["ImGuiStackTool_destroy"][1]["defaults"] = {} +defs["ImGuiStackTool_destroy"][1]["destructor"] = true +defs["ImGuiStackTool_destroy"][1]["ov_cimguiname"] = "ImGuiStackTool_destroy" +defs["ImGuiStackTool_destroy"][1]["ret"] = "void" +defs["ImGuiStackTool_destroy"][1]["signature"] = "(ImGuiStackTool*)" +defs["ImGuiStackTool_destroy"][1]["stname"] = "ImGuiStackTool" +defs["ImGuiStackTool_destroy"]["(ImGuiStackTool*)"] = defs["ImGuiStackTool_destroy"][1] defs["ImGuiStoragePair_ImGuiStoragePair"] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][1] = {} defs["ImGuiStoragePair_ImGuiStoragePair"][1]["args"] = "(ImGuiID _key,int _val_i)" @@ -4954,6 +7087,83 @@ defs["ImGuiStorage_SetVoidPtr"][1]["ret"] = "void" defs["ImGuiStorage_SetVoidPtr"][1]["signature"] = "(ImGuiID,void*)" defs["ImGuiStorage_SetVoidPtr"][1]["stname"] = "ImGuiStorage" defs["ImGuiStorage_SetVoidPtr"]["(ImGuiID,void*)"] = defs["ImGuiStorage_SetVoidPtr"][1] +defs["ImGuiStyleMod_ImGuiStyleMod"] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][1] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["args"] = "(ImGuiStyleVar idx,int v)" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["argsT"] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["argsT"][1] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["argsT"][1]["name"] = "idx" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["argsT"][1]["type"] = "ImGuiStyleVar" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["argsT"][2] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["argsT"][2]["name"] = "v" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["argsT"][2]["type"] = "int" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["argsoriginal"] = "(ImGuiStyleVar idx,int v)" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["call_args"] = "(idx,v)" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["cimguiname"] = "ImGuiStyleMod_ImGuiStyleMod" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["constructor"] = true +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["defaults"] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["funcname"] = "ImGuiStyleMod" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["location"] = "imgui_internal:1003" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["ov_cimguiname"] = "ImGuiStyleMod_ImGuiStyleMod_Int" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["signature"] = "(ImGuiStyleVar,int)" +defs["ImGuiStyleMod_ImGuiStyleMod"][1]["stname"] = "ImGuiStyleMod" +defs["ImGuiStyleMod_ImGuiStyleMod"][2] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["args"] = "(ImGuiStyleVar idx,float v)" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["argsT"] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["argsT"][1] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["argsT"][1]["name"] = "idx" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["argsT"][1]["type"] = "ImGuiStyleVar" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["argsT"][2] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["argsT"][2]["name"] = "v" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["argsT"][2]["type"] = "float" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["argsoriginal"] = "(ImGuiStyleVar idx,float v)" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["call_args"] = "(idx,v)" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["cimguiname"] = "ImGuiStyleMod_ImGuiStyleMod" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["constructor"] = true +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["defaults"] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["funcname"] = "ImGuiStyleMod" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["location"] = "imgui_internal:1004" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["ov_cimguiname"] = "ImGuiStyleMod_ImGuiStyleMod_Float" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["signature"] = "(ImGuiStyleVar,float)" +defs["ImGuiStyleMod_ImGuiStyleMod"][2]["stname"] = "ImGuiStyleMod" +defs["ImGuiStyleMod_ImGuiStyleMod"][3] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["args"] = "(ImGuiStyleVar idx,ImVec2 v)" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["argsT"] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["argsT"][1] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["argsT"][1]["name"] = "idx" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["argsT"][1]["type"] = "ImGuiStyleVar" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["argsT"][2] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["argsT"][2]["name"] = "v" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["argsT"][2]["type"] = "ImVec2" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["argsoriginal"] = "(ImGuiStyleVar idx,ImVec2 v)" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["call_args"] = "(idx,v)" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["cimguiname"] = "ImGuiStyleMod_ImGuiStyleMod" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["constructor"] = true +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["defaults"] = {} +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["funcname"] = "ImGuiStyleMod" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["location"] = "imgui_internal:1005" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["ov_cimguiname"] = "ImGuiStyleMod_ImGuiStyleMod_Vec2" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["signature"] = "(ImGuiStyleVar,ImVec2)" +defs["ImGuiStyleMod_ImGuiStyleMod"][3]["stname"] = "ImGuiStyleMod" +defs["ImGuiStyleMod_ImGuiStyleMod"]["(ImGuiStyleVar,ImVec2)"] = defs["ImGuiStyleMod_ImGuiStyleMod"][3] +defs["ImGuiStyleMod_ImGuiStyleMod"]["(ImGuiStyleVar,float)"] = defs["ImGuiStyleMod_ImGuiStyleMod"][2] +defs["ImGuiStyleMod_ImGuiStyleMod"]["(ImGuiStyleVar,int)"] = defs["ImGuiStyleMod_ImGuiStyleMod"][1] +defs["ImGuiStyleMod_destroy"] = {} +defs["ImGuiStyleMod_destroy"][1] = {} +defs["ImGuiStyleMod_destroy"][1]["args"] = "(ImGuiStyleMod* self)" +defs["ImGuiStyleMod_destroy"][1]["argsT"] = {} +defs["ImGuiStyleMod_destroy"][1]["argsT"][1] = {} +defs["ImGuiStyleMod_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiStyleMod_destroy"][1]["argsT"][1]["type"] = "ImGuiStyleMod*" +defs["ImGuiStyleMod_destroy"][1]["call_args"] = "(self)" +defs["ImGuiStyleMod_destroy"][1]["cimguiname"] = "ImGuiStyleMod_destroy" +defs["ImGuiStyleMod_destroy"][1]["defaults"] = {} +defs["ImGuiStyleMod_destroy"][1]["destructor"] = true +defs["ImGuiStyleMod_destroy"][1]["ov_cimguiname"] = "ImGuiStyleMod_destroy" +defs["ImGuiStyleMod_destroy"][1]["ret"] = "void" +defs["ImGuiStyleMod_destroy"][1]["signature"] = "(ImGuiStyleMod*)" +defs["ImGuiStyleMod_destroy"][1]["stname"] = "ImGuiStyleMod" +defs["ImGuiStyleMod_destroy"]["(ImGuiStyleMod*)"] = defs["ImGuiStyleMod_destroy"][1] defs["ImGuiStyle_ImGuiStyle"] = {} defs["ImGuiStyle_ImGuiStyle"][1] = {} defs["ImGuiStyle_ImGuiStyle"][1]["args"] = "()" @@ -5006,6 +7216,141 @@ defs["ImGuiStyle_destroy"][1]["ret"] = "void" defs["ImGuiStyle_destroy"][1]["signature"] = "(ImGuiStyle*)" defs["ImGuiStyle_destroy"][1]["stname"] = "ImGuiStyle" defs["ImGuiStyle_destroy"]["(ImGuiStyle*)"] = defs["ImGuiStyle_destroy"][1] +defs["ImGuiTabBar_GetTabName"] = {} +defs["ImGuiTabBar_GetTabName"][1] = {} +defs["ImGuiTabBar_GetTabName"][1]["args"] = "(ImGuiTabBar* self,const ImGuiTabItem* tab)" +defs["ImGuiTabBar_GetTabName"][1]["argsT"] = {} +defs["ImGuiTabBar_GetTabName"][1]["argsT"][1] = {} +defs["ImGuiTabBar_GetTabName"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTabBar_GetTabName"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["ImGuiTabBar_GetTabName"][1]["argsT"][2] = {} +defs["ImGuiTabBar_GetTabName"][1]["argsT"][2]["name"] = "tab" +defs["ImGuiTabBar_GetTabName"][1]["argsT"][2]["type"] = "const ImGuiTabItem*" +defs["ImGuiTabBar_GetTabName"][1]["argsoriginal"] = "(const ImGuiTabItem* tab)" +defs["ImGuiTabBar_GetTabName"][1]["call_args"] = "(tab)" +defs["ImGuiTabBar_GetTabName"][1]["cimguiname"] = "ImGuiTabBar_GetTabName" +defs["ImGuiTabBar_GetTabName"][1]["defaults"] = {} +defs["ImGuiTabBar_GetTabName"][1]["funcname"] = "GetTabName" +defs["ImGuiTabBar_GetTabName"][1]["location"] = "imgui_internal:2648" +defs["ImGuiTabBar_GetTabName"][1]["ov_cimguiname"] = "ImGuiTabBar_GetTabName" +defs["ImGuiTabBar_GetTabName"][1]["ret"] = "const char*" +defs["ImGuiTabBar_GetTabName"][1]["signature"] = "(const ImGuiTabItem*)const" +defs["ImGuiTabBar_GetTabName"][1]["stname"] = "ImGuiTabBar" +defs["ImGuiTabBar_GetTabName"]["(const ImGuiTabItem*)const"] = defs["ImGuiTabBar_GetTabName"][1] +defs["ImGuiTabBar_GetTabOrder"] = {} +defs["ImGuiTabBar_GetTabOrder"][1] = {} +defs["ImGuiTabBar_GetTabOrder"][1]["args"] = "(ImGuiTabBar* self,const ImGuiTabItem* tab)" +defs["ImGuiTabBar_GetTabOrder"][1]["argsT"] = {} +defs["ImGuiTabBar_GetTabOrder"][1]["argsT"][1] = {} +defs["ImGuiTabBar_GetTabOrder"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTabBar_GetTabOrder"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["ImGuiTabBar_GetTabOrder"][1]["argsT"][2] = {} +defs["ImGuiTabBar_GetTabOrder"][1]["argsT"][2]["name"] = "tab" +defs["ImGuiTabBar_GetTabOrder"][1]["argsT"][2]["type"] = "const ImGuiTabItem*" +defs["ImGuiTabBar_GetTabOrder"][1]["argsoriginal"] = "(const ImGuiTabItem* tab)" +defs["ImGuiTabBar_GetTabOrder"][1]["call_args"] = "(tab)" +defs["ImGuiTabBar_GetTabOrder"][1]["cimguiname"] = "ImGuiTabBar_GetTabOrder" +defs["ImGuiTabBar_GetTabOrder"][1]["defaults"] = {} +defs["ImGuiTabBar_GetTabOrder"][1]["funcname"] = "GetTabOrder" +defs["ImGuiTabBar_GetTabOrder"][1]["location"] = "imgui_internal:2647" +defs["ImGuiTabBar_GetTabOrder"][1]["ov_cimguiname"] = "ImGuiTabBar_GetTabOrder" +defs["ImGuiTabBar_GetTabOrder"][1]["ret"] = "int" +defs["ImGuiTabBar_GetTabOrder"][1]["signature"] = "(const ImGuiTabItem*)const" +defs["ImGuiTabBar_GetTabOrder"][1]["stname"] = "ImGuiTabBar" +defs["ImGuiTabBar_GetTabOrder"]["(const ImGuiTabItem*)const"] = defs["ImGuiTabBar_GetTabOrder"][1] +defs["ImGuiTabBar_ImGuiTabBar"] = {} +defs["ImGuiTabBar_ImGuiTabBar"][1] = {} +defs["ImGuiTabBar_ImGuiTabBar"][1]["args"] = "()" +defs["ImGuiTabBar_ImGuiTabBar"][1]["argsT"] = {} +defs["ImGuiTabBar_ImGuiTabBar"][1]["argsoriginal"] = "()" +defs["ImGuiTabBar_ImGuiTabBar"][1]["call_args"] = "()" +defs["ImGuiTabBar_ImGuiTabBar"][1]["cimguiname"] = "ImGuiTabBar_ImGuiTabBar" +defs["ImGuiTabBar_ImGuiTabBar"][1]["constructor"] = true +defs["ImGuiTabBar_ImGuiTabBar"][1]["defaults"] = {} +defs["ImGuiTabBar_ImGuiTabBar"][1]["funcname"] = "ImGuiTabBar" +defs["ImGuiTabBar_ImGuiTabBar"][1]["location"] = "imgui_internal:2646" +defs["ImGuiTabBar_ImGuiTabBar"][1]["ov_cimguiname"] = "ImGuiTabBar_ImGuiTabBar" +defs["ImGuiTabBar_ImGuiTabBar"][1]["signature"] = "()" +defs["ImGuiTabBar_ImGuiTabBar"][1]["stname"] = "ImGuiTabBar" +defs["ImGuiTabBar_ImGuiTabBar"]["()"] = defs["ImGuiTabBar_ImGuiTabBar"][1] +defs["ImGuiTabBar_destroy"] = {} +defs["ImGuiTabBar_destroy"][1] = {} +defs["ImGuiTabBar_destroy"][1]["args"] = "(ImGuiTabBar* self)" +defs["ImGuiTabBar_destroy"][1]["argsT"] = {} +defs["ImGuiTabBar_destroy"][1]["argsT"][1] = {} +defs["ImGuiTabBar_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTabBar_destroy"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["ImGuiTabBar_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTabBar_destroy"][1]["cimguiname"] = "ImGuiTabBar_destroy" +defs["ImGuiTabBar_destroy"][1]["defaults"] = {} +defs["ImGuiTabBar_destroy"][1]["destructor"] = true +defs["ImGuiTabBar_destroy"][1]["ov_cimguiname"] = "ImGuiTabBar_destroy" +defs["ImGuiTabBar_destroy"][1]["ret"] = "void" +defs["ImGuiTabBar_destroy"][1]["signature"] = "(ImGuiTabBar*)" +defs["ImGuiTabBar_destroy"][1]["stname"] = "ImGuiTabBar" +defs["ImGuiTabBar_destroy"]["(ImGuiTabBar*)"] = defs["ImGuiTabBar_destroy"][1] +defs["ImGuiTabItem_ImGuiTabItem"] = {} +defs["ImGuiTabItem_ImGuiTabItem"][1] = {} +defs["ImGuiTabItem_ImGuiTabItem"][1]["args"] = "()" +defs["ImGuiTabItem_ImGuiTabItem"][1]["argsT"] = {} +defs["ImGuiTabItem_ImGuiTabItem"][1]["argsoriginal"] = "()" +defs["ImGuiTabItem_ImGuiTabItem"][1]["call_args"] = "()" +defs["ImGuiTabItem_ImGuiTabItem"][1]["cimguiname"] = "ImGuiTabItem_ImGuiTabItem" +defs["ImGuiTabItem_ImGuiTabItem"][1]["constructor"] = true +defs["ImGuiTabItem_ImGuiTabItem"][1]["defaults"] = {} +defs["ImGuiTabItem_ImGuiTabItem"][1]["funcname"] = "ImGuiTabItem" +defs["ImGuiTabItem_ImGuiTabItem"][1]["location"] = "imgui_internal:2608" +defs["ImGuiTabItem_ImGuiTabItem"][1]["ov_cimguiname"] = "ImGuiTabItem_ImGuiTabItem" +defs["ImGuiTabItem_ImGuiTabItem"][1]["signature"] = "()" +defs["ImGuiTabItem_ImGuiTabItem"][1]["stname"] = "ImGuiTabItem" +defs["ImGuiTabItem_ImGuiTabItem"]["()"] = defs["ImGuiTabItem_ImGuiTabItem"][1] +defs["ImGuiTabItem_destroy"] = {} +defs["ImGuiTabItem_destroy"][1] = {} +defs["ImGuiTabItem_destroy"][1]["args"] = "(ImGuiTabItem* self)" +defs["ImGuiTabItem_destroy"][1]["argsT"] = {} +defs["ImGuiTabItem_destroy"][1]["argsT"][1] = {} +defs["ImGuiTabItem_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTabItem_destroy"][1]["argsT"][1]["type"] = "ImGuiTabItem*" +defs["ImGuiTabItem_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTabItem_destroy"][1]["cimguiname"] = "ImGuiTabItem_destroy" +defs["ImGuiTabItem_destroy"][1]["defaults"] = {} +defs["ImGuiTabItem_destroy"][1]["destructor"] = true +defs["ImGuiTabItem_destroy"][1]["ov_cimguiname"] = "ImGuiTabItem_destroy" +defs["ImGuiTabItem_destroy"][1]["ret"] = "void" +defs["ImGuiTabItem_destroy"][1]["signature"] = "(ImGuiTabItem*)" +defs["ImGuiTabItem_destroy"][1]["stname"] = "ImGuiTabItem" +defs["ImGuiTabItem_destroy"]["(ImGuiTabItem*)"] = defs["ImGuiTabItem_destroy"][1] +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"] = {} +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1] = {} +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["args"] = "()" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["argsT"] = {} +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["argsoriginal"] = "()" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["call_args"] = "()" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["cimguiname"] = "ImGuiTableColumnSettings_ImGuiTableColumnSettings" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["constructor"] = true +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["defaults"] = {} +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["funcname"] = "ImGuiTableColumnSettings" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["location"] = "imgui_internal:2894" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["ov_cimguiname"] = "ImGuiTableColumnSettings_ImGuiTableColumnSettings" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["signature"] = "()" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1]["stname"] = "ImGuiTableColumnSettings" +defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"]["()"] = defs["ImGuiTableColumnSettings_ImGuiTableColumnSettings"][1] +defs["ImGuiTableColumnSettings_destroy"] = {} +defs["ImGuiTableColumnSettings_destroy"][1] = {} +defs["ImGuiTableColumnSettings_destroy"][1]["args"] = "(ImGuiTableColumnSettings* self)" +defs["ImGuiTableColumnSettings_destroy"][1]["argsT"] = {} +defs["ImGuiTableColumnSettings_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableColumnSettings_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableColumnSettings_destroy"][1]["argsT"][1]["type"] = "ImGuiTableColumnSettings*" +defs["ImGuiTableColumnSettings_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableColumnSettings_destroy"][1]["cimguiname"] = "ImGuiTableColumnSettings_destroy" +defs["ImGuiTableColumnSettings_destroy"][1]["defaults"] = {} +defs["ImGuiTableColumnSettings_destroy"][1]["destructor"] = true +defs["ImGuiTableColumnSettings_destroy"][1]["ov_cimguiname"] = "ImGuiTableColumnSettings_destroy" +defs["ImGuiTableColumnSettings_destroy"][1]["ret"] = "void" +defs["ImGuiTableColumnSettings_destroy"][1]["signature"] = "(ImGuiTableColumnSettings*)" +defs["ImGuiTableColumnSettings_destroy"][1]["stname"] = "ImGuiTableColumnSettings" +defs["ImGuiTableColumnSettings_destroy"]["(ImGuiTableColumnSettings*)"] = defs["ImGuiTableColumnSettings_destroy"][1] defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"] = {} defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1] = {} defs["ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"][1]["args"] = "()" @@ -5037,6 +7382,117 @@ defs["ImGuiTableColumnSortSpecs_destroy"][1]["ret"] = "void" defs["ImGuiTableColumnSortSpecs_destroy"][1]["signature"] = "(ImGuiTableColumnSortSpecs*)" defs["ImGuiTableColumnSortSpecs_destroy"][1]["stname"] = "ImGuiTableColumnSortSpecs" defs["ImGuiTableColumnSortSpecs_destroy"]["(ImGuiTableColumnSortSpecs*)"] = defs["ImGuiTableColumnSortSpecs_destroy"][1] +defs["ImGuiTableColumn_ImGuiTableColumn"] = {} +defs["ImGuiTableColumn_ImGuiTableColumn"][1] = {} +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["args"] = "()" +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["argsT"] = {} +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["argsoriginal"] = "()" +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["call_args"] = "()" +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["cimguiname"] = "ImGuiTableColumn_ImGuiTableColumn" +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["constructor"] = true +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["defaults"] = {} +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["funcname"] = "ImGuiTableColumn" +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["location"] = "imgui_internal:2717" +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["ov_cimguiname"] = "ImGuiTableColumn_ImGuiTableColumn" +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["signature"] = "()" +defs["ImGuiTableColumn_ImGuiTableColumn"][1]["stname"] = "ImGuiTableColumn" +defs["ImGuiTableColumn_ImGuiTableColumn"]["()"] = defs["ImGuiTableColumn_ImGuiTableColumn"][1] +defs["ImGuiTableColumn_destroy"] = {} +defs["ImGuiTableColumn_destroy"][1] = {} +defs["ImGuiTableColumn_destroy"][1]["args"] = "(ImGuiTableColumn* self)" +defs["ImGuiTableColumn_destroy"][1]["argsT"] = {} +defs["ImGuiTableColumn_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableColumn_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableColumn_destroy"][1]["argsT"][1]["type"] = "ImGuiTableColumn*" +defs["ImGuiTableColumn_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableColumn_destroy"][1]["cimguiname"] = "ImGuiTableColumn_destroy" +defs["ImGuiTableColumn_destroy"][1]["defaults"] = {} +defs["ImGuiTableColumn_destroy"][1]["destructor"] = true +defs["ImGuiTableColumn_destroy"][1]["ov_cimguiname"] = "ImGuiTableColumn_destroy" +defs["ImGuiTableColumn_destroy"][1]["ret"] = "void" +defs["ImGuiTableColumn_destroy"][1]["signature"] = "(ImGuiTableColumn*)" +defs["ImGuiTableColumn_destroy"][1]["stname"] = "ImGuiTableColumn" +defs["ImGuiTableColumn_destroy"]["(ImGuiTableColumn*)"] = defs["ImGuiTableColumn_destroy"][1] +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"] = {} +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1] = {} +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["args"] = "()" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["argsT"] = {} +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["argsoriginal"] = "()" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["call_args"] = "()" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["cimguiname"] = "ImGuiTableInstanceData_ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["constructor"] = true +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["defaults"] = {} +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["funcname"] = "ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["location"] = "imgui_internal:2744" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["ov_cimguiname"] = "ImGuiTableInstanceData_ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["signature"] = "()" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1]["stname"] = "ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_ImGuiTableInstanceData"]["()"] = defs["ImGuiTableInstanceData_ImGuiTableInstanceData"][1] +defs["ImGuiTableInstanceData_destroy"] = {} +defs["ImGuiTableInstanceData_destroy"][1] = {} +defs["ImGuiTableInstanceData_destroy"][1]["args"] = "(ImGuiTableInstanceData* self)" +defs["ImGuiTableInstanceData_destroy"][1]["argsT"] = {} +defs["ImGuiTableInstanceData_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableInstanceData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableInstanceData_destroy"][1]["argsT"][1]["type"] = "ImGuiTableInstanceData*" +defs["ImGuiTableInstanceData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableInstanceData_destroy"][1]["cimguiname"] = "ImGuiTableInstanceData_destroy" +defs["ImGuiTableInstanceData_destroy"][1]["defaults"] = {} +defs["ImGuiTableInstanceData_destroy"][1]["destructor"] = true +defs["ImGuiTableInstanceData_destroy"][1]["ov_cimguiname"] = "ImGuiTableInstanceData_destroy" +defs["ImGuiTableInstanceData_destroy"][1]["ret"] = "void" +defs["ImGuiTableInstanceData_destroy"][1]["signature"] = "(ImGuiTableInstanceData*)" +defs["ImGuiTableInstanceData_destroy"][1]["stname"] = "ImGuiTableInstanceData" +defs["ImGuiTableInstanceData_destroy"]["(ImGuiTableInstanceData*)"] = defs["ImGuiTableInstanceData_destroy"][1] +defs["ImGuiTableSettings_GetColumnSettings"] = {} +defs["ImGuiTableSettings_GetColumnSettings"][1] = {} +defs["ImGuiTableSettings_GetColumnSettings"][1]["args"] = "(ImGuiTableSettings* self)" +defs["ImGuiTableSettings_GetColumnSettings"][1]["argsT"] = {} +defs["ImGuiTableSettings_GetColumnSettings"][1]["argsT"][1] = {} +defs["ImGuiTableSettings_GetColumnSettings"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableSettings_GetColumnSettings"][1]["argsT"][1]["type"] = "ImGuiTableSettings*" +defs["ImGuiTableSettings_GetColumnSettings"][1]["argsoriginal"] = "()" +defs["ImGuiTableSettings_GetColumnSettings"][1]["call_args"] = "()" +defs["ImGuiTableSettings_GetColumnSettings"][1]["cimguiname"] = "ImGuiTableSettings_GetColumnSettings" +defs["ImGuiTableSettings_GetColumnSettings"][1]["defaults"] = {} +defs["ImGuiTableSettings_GetColumnSettings"][1]["funcname"] = "GetColumnSettings" +defs["ImGuiTableSettings_GetColumnSettings"][1]["location"] = "imgui_internal:2917" +defs["ImGuiTableSettings_GetColumnSettings"][1]["ov_cimguiname"] = "ImGuiTableSettings_GetColumnSettings" +defs["ImGuiTableSettings_GetColumnSettings"][1]["ret"] = "ImGuiTableColumnSettings*" +defs["ImGuiTableSettings_GetColumnSettings"][1]["signature"] = "()" +defs["ImGuiTableSettings_GetColumnSettings"][1]["stname"] = "ImGuiTableSettings" +defs["ImGuiTableSettings_GetColumnSettings"]["()"] = defs["ImGuiTableSettings_GetColumnSettings"][1] +defs["ImGuiTableSettings_ImGuiTableSettings"] = {} +defs["ImGuiTableSettings_ImGuiTableSettings"][1] = {} +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["args"] = "()" +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["argsT"] = {} +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["argsoriginal"] = "()" +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["call_args"] = "()" +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["cimguiname"] = "ImGuiTableSettings_ImGuiTableSettings" +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["constructor"] = true +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["defaults"] = {} +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["funcname"] = "ImGuiTableSettings" +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["location"] = "imgui_internal:2916" +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["ov_cimguiname"] = "ImGuiTableSettings_ImGuiTableSettings" +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["signature"] = "()" +defs["ImGuiTableSettings_ImGuiTableSettings"][1]["stname"] = "ImGuiTableSettings" +defs["ImGuiTableSettings_ImGuiTableSettings"]["()"] = defs["ImGuiTableSettings_ImGuiTableSettings"][1] +defs["ImGuiTableSettings_destroy"] = {} +defs["ImGuiTableSettings_destroy"][1] = {} +defs["ImGuiTableSettings_destroy"][1]["args"] = "(ImGuiTableSettings* self)" +defs["ImGuiTableSettings_destroy"][1]["argsT"] = {} +defs["ImGuiTableSettings_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableSettings_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableSettings_destroy"][1]["argsT"][1]["type"] = "ImGuiTableSettings*" +defs["ImGuiTableSettings_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableSettings_destroy"][1]["cimguiname"] = "ImGuiTableSettings_destroy" +defs["ImGuiTableSettings_destroy"][1]["defaults"] = {} +defs["ImGuiTableSettings_destroy"][1]["destructor"] = true +defs["ImGuiTableSettings_destroy"][1]["ov_cimguiname"] = "ImGuiTableSettings_destroy" +defs["ImGuiTableSettings_destroy"][1]["ret"] = "void" +defs["ImGuiTableSettings_destroy"][1]["signature"] = "(ImGuiTableSettings*)" +defs["ImGuiTableSettings_destroy"][1]["stname"] = "ImGuiTableSettings" +defs["ImGuiTableSettings_destroy"]["(ImGuiTableSettings*)"] = defs["ImGuiTableSettings_destroy"][1] defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"] = {} defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1] = {} defs["ImGuiTableSortSpecs_ImGuiTableSortSpecs"][1]["args"] = "()" @@ -5068,6 +7524,70 @@ defs["ImGuiTableSortSpecs_destroy"][1]["ret"] = "void" defs["ImGuiTableSortSpecs_destroy"][1]["signature"] = "(ImGuiTableSortSpecs*)" defs["ImGuiTableSortSpecs_destroy"][1]["stname"] = "ImGuiTableSortSpecs" defs["ImGuiTableSortSpecs_destroy"]["(ImGuiTableSortSpecs*)"] = defs["ImGuiTableSortSpecs_destroy"][1] +defs["ImGuiTableTempData_ImGuiTableTempData"] = {} +defs["ImGuiTableTempData_ImGuiTableTempData"][1] = {} +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["args"] = "()" +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["argsT"] = {} +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["argsoriginal"] = "()" +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["call_args"] = "()" +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["cimguiname"] = "ImGuiTableTempData_ImGuiTableTempData" +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["constructor"] = true +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["defaults"] = {} +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["funcname"] = "ImGuiTableTempData" +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["location"] = "imgui_internal:2879" +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["ov_cimguiname"] = "ImGuiTableTempData_ImGuiTableTempData" +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["signature"] = "()" +defs["ImGuiTableTempData_ImGuiTableTempData"][1]["stname"] = "ImGuiTableTempData" +defs["ImGuiTableTempData_ImGuiTableTempData"]["()"] = defs["ImGuiTableTempData_ImGuiTableTempData"][1] +defs["ImGuiTableTempData_destroy"] = {} +defs["ImGuiTableTempData_destroy"][1] = {} +defs["ImGuiTableTempData_destroy"][1]["args"] = "(ImGuiTableTempData* self)" +defs["ImGuiTableTempData_destroy"][1]["argsT"] = {} +defs["ImGuiTableTempData_destroy"][1]["argsT"][1] = {} +defs["ImGuiTableTempData_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTableTempData_destroy"][1]["argsT"][1]["type"] = "ImGuiTableTempData*" +defs["ImGuiTableTempData_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTableTempData_destroy"][1]["cimguiname"] = "ImGuiTableTempData_destroy" +defs["ImGuiTableTempData_destroy"][1]["defaults"] = {} +defs["ImGuiTableTempData_destroy"][1]["destructor"] = true +defs["ImGuiTableTempData_destroy"][1]["ov_cimguiname"] = "ImGuiTableTempData_destroy" +defs["ImGuiTableTempData_destroy"][1]["ret"] = "void" +defs["ImGuiTableTempData_destroy"][1]["signature"] = "(ImGuiTableTempData*)" +defs["ImGuiTableTempData_destroy"][1]["stname"] = "ImGuiTableTempData" +defs["ImGuiTableTempData_destroy"]["(ImGuiTableTempData*)"] = defs["ImGuiTableTempData_destroy"][1] +defs["ImGuiTable_ImGuiTable"] = {} +defs["ImGuiTable_ImGuiTable"][1] = {} +defs["ImGuiTable_ImGuiTable"][1]["args"] = "()" +defs["ImGuiTable_ImGuiTable"][1]["argsT"] = {} +defs["ImGuiTable_ImGuiTable"][1]["argsoriginal"] = "()" +defs["ImGuiTable_ImGuiTable"][1]["call_args"] = "()" +defs["ImGuiTable_ImGuiTable"][1]["cimguiname"] = "ImGuiTable_ImGuiTable" +defs["ImGuiTable_ImGuiTable"][1]["constructor"] = true +defs["ImGuiTable_ImGuiTable"][1]["defaults"] = {} +defs["ImGuiTable_ImGuiTable"][1]["funcname"] = "ImGuiTable" +defs["ImGuiTable_ImGuiTable"][1]["location"] = "imgui_internal:2855" +defs["ImGuiTable_ImGuiTable"][1]["ov_cimguiname"] = "ImGuiTable_ImGuiTable" +defs["ImGuiTable_ImGuiTable"][1]["signature"] = "()" +defs["ImGuiTable_ImGuiTable"][1]["stname"] = "ImGuiTable" +defs["ImGuiTable_ImGuiTable"]["()"] = defs["ImGuiTable_ImGuiTable"][1] +defs["ImGuiTable_destroy"] = {} +defs["ImGuiTable_destroy"][1] = {} +defs["ImGuiTable_destroy"][1]["args"] = "(ImGuiTable* self)" +defs["ImGuiTable_destroy"][1]["argsT"] = {} +defs["ImGuiTable_destroy"][1]["argsT"][1] = {} +defs["ImGuiTable_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTable_destroy"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["ImGuiTable_destroy"][1]["call_args"] = "(self)" +defs["ImGuiTable_destroy"][1]["cimguiname"] = "ImGuiTable_destroy" +defs["ImGuiTable_destroy"][1]["defaults"] = {} +defs["ImGuiTable_destroy"][1]["destructor"] = true +defs["ImGuiTable_destroy"][1]["location"] = "imgui_internal:2856" +defs["ImGuiTable_destroy"][1]["ov_cimguiname"] = "ImGuiTable_destroy" +defs["ImGuiTable_destroy"][1]["realdestructor"] = true +defs["ImGuiTable_destroy"][1]["ret"] = "void" +defs["ImGuiTable_destroy"][1]["signature"] = "(ImGuiTable*)" +defs["ImGuiTable_destroy"][1]["stname"] = "ImGuiTable" +defs["ImGuiTable_destroy"]["(ImGuiTable*)"] = defs["ImGuiTable_destroy"][1] defs["ImGuiTextBuffer_ImGuiTextBuffer"] = {} defs["ImGuiTextBuffer_ImGuiTextBuffer"][1] = {} defs["ImGuiTextBuffer_ImGuiTextBuffer"][1]["args"] = "()" @@ -5443,6 +7963,117 @@ defs["ImGuiTextFilter_destroy"][1]["ret"] = "void" defs["ImGuiTextFilter_destroy"][1]["signature"] = "(ImGuiTextFilter*)" defs["ImGuiTextFilter_destroy"][1]["stname"] = "ImGuiTextFilter" defs["ImGuiTextFilter_destroy"]["(ImGuiTextFilter*)"] = defs["ImGuiTextFilter_destroy"][1] +defs["ImGuiTextIndex_append"] = {} +defs["ImGuiTextIndex_append"][1] = {} +defs["ImGuiTextIndex_append"][1]["args"] = "(ImGuiTextIndex* self,const char* base,int old_size,int new_size)" +defs["ImGuiTextIndex_append"][1]["argsT"] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_append"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_append"][1]["argsT"][2] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][2]["name"] = "base" +defs["ImGuiTextIndex_append"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextIndex_append"][1]["argsT"][3] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][3]["name"] = "old_size" +defs["ImGuiTextIndex_append"][1]["argsT"][3]["type"] = "int" +defs["ImGuiTextIndex_append"][1]["argsT"][4] = {} +defs["ImGuiTextIndex_append"][1]["argsT"][4]["name"] = "new_size" +defs["ImGuiTextIndex_append"][1]["argsT"][4]["type"] = "int" +defs["ImGuiTextIndex_append"][1]["argsoriginal"] = "(const char* base,int old_size,int new_size)" +defs["ImGuiTextIndex_append"][1]["call_args"] = "(base,old_size,new_size)" +defs["ImGuiTextIndex_append"][1]["cimguiname"] = "ImGuiTextIndex_append" +defs["ImGuiTextIndex_append"][1]["defaults"] = {} +defs["ImGuiTextIndex_append"][1]["funcname"] = "append" +defs["ImGuiTextIndex_append"][1]["location"] = "imgui_internal:725" +defs["ImGuiTextIndex_append"][1]["ov_cimguiname"] = "ImGuiTextIndex_append" +defs["ImGuiTextIndex_append"][1]["ret"] = "void" +defs["ImGuiTextIndex_append"][1]["signature"] = "(const char*,int,int)" +defs["ImGuiTextIndex_append"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_append"]["(const char*,int,int)"] = defs["ImGuiTextIndex_append"][1] +defs["ImGuiTextIndex_clear"] = {} +defs["ImGuiTextIndex_clear"][1] = {} +defs["ImGuiTextIndex_clear"][1]["args"] = "(ImGuiTextIndex* self)" +defs["ImGuiTextIndex_clear"][1]["argsT"] = {} +defs["ImGuiTextIndex_clear"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_clear"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_clear"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_clear"][1]["argsoriginal"] = "()" +defs["ImGuiTextIndex_clear"][1]["call_args"] = "()" +defs["ImGuiTextIndex_clear"][1]["cimguiname"] = "ImGuiTextIndex_clear" +defs["ImGuiTextIndex_clear"][1]["defaults"] = {} +defs["ImGuiTextIndex_clear"][1]["funcname"] = "clear" +defs["ImGuiTextIndex_clear"][1]["location"] = "imgui_internal:721" +defs["ImGuiTextIndex_clear"][1]["ov_cimguiname"] = "ImGuiTextIndex_clear" +defs["ImGuiTextIndex_clear"][1]["ret"] = "void" +defs["ImGuiTextIndex_clear"][1]["signature"] = "()" +defs["ImGuiTextIndex_clear"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_clear"]["()"] = defs["ImGuiTextIndex_clear"][1] +defs["ImGuiTextIndex_get_line_begin"] = {} +defs["ImGuiTextIndex_get_line_begin"][1] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["args"] = "(ImGuiTextIndex* self,const char* base,int n)" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][2] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][2]["name"] = "base" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][3] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][3]["name"] = "n" +defs["ImGuiTextIndex_get_line_begin"][1]["argsT"][3]["type"] = "int" +defs["ImGuiTextIndex_get_line_begin"][1]["argsoriginal"] = "(const char* base,int n)" +defs["ImGuiTextIndex_get_line_begin"][1]["call_args"] = "(base,n)" +defs["ImGuiTextIndex_get_line_begin"][1]["cimguiname"] = "ImGuiTextIndex_get_line_begin" +defs["ImGuiTextIndex_get_line_begin"][1]["defaults"] = {} +defs["ImGuiTextIndex_get_line_begin"][1]["funcname"] = "get_line_begin" +defs["ImGuiTextIndex_get_line_begin"][1]["location"] = "imgui_internal:723" +defs["ImGuiTextIndex_get_line_begin"][1]["ov_cimguiname"] = "ImGuiTextIndex_get_line_begin" +defs["ImGuiTextIndex_get_line_begin"][1]["ret"] = "const char*" +defs["ImGuiTextIndex_get_line_begin"][1]["signature"] = "(const char*,int)" +defs["ImGuiTextIndex_get_line_begin"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_get_line_begin"]["(const char*,int)"] = defs["ImGuiTextIndex_get_line_begin"][1] +defs["ImGuiTextIndex_get_line_end"] = {} +defs["ImGuiTextIndex_get_line_end"][1] = {} +defs["ImGuiTextIndex_get_line_end"][1]["args"] = "(ImGuiTextIndex* self,const char* base,int n)" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"] = {} +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][2] = {} +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][2]["name"] = "base" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][3] = {} +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][3]["name"] = "n" +defs["ImGuiTextIndex_get_line_end"][1]["argsT"][3]["type"] = "int" +defs["ImGuiTextIndex_get_line_end"][1]["argsoriginal"] = "(const char* base,int n)" +defs["ImGuiTextIndex_get_line_end"][1]["call_args"] = "(base,n)" +defs["ImGuiTextIndex_get_line_end"][1]["cimguiname"] = "ImGuiTextIndex_get_line_end" +defs["ImGuiTextIndex_get_line_end"][1]["defaults"] = {} +defs["ImGuiTextIndex_get_line_end"][1]["funcname"] = "get_line_end" +defs["ImGuiTextIndex_get_line_end"][1]["location"] = "imgui_internal:724" +defs["ImGuiTextIndex_get_line_end"][1]["ov_cimguiname"] = "ImGuiTextIndex_get_line_end" +defs["ImGuiTextIndex_get_line_end"][1]["ret"] = "const char*" +defs["ImGuiTextIndex_get_line_end"][1]["signature"] = "(const char*,int)" +defs["ImGuiTextIndex_get_line_end"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_get_line_end"]["(const char*,int)"] = defs["ImGuiTextIndex_get_line_end"][1] +defs["ImGuiTextIndex_size"] = {} +defs["ImGuiTextIndex_size"][1] = {} +defs["ImGuiTextIndex_size"][1]["args"] = "(ImGuiTextIndex* self)" +defs["ImGuiTextIndex_size"][1]["argsT"] = {} +defs["ImGuiTextIndex_size"][1]["argsT"][1] = {} +defs["ImGuiTextIndex_size"][1]["argsT"][1]["name"] = "self" +defs["ImGuiTextIndex_size"][1]["argsT"][1]["type"] = "ImGuiTextIndex*" +defs["ImGuiTextIndex_size"][1]["argsoriginal"] = "()" +defs["ImGuiTextIndex_size"][1]["call_args"] = "()" +defs["ImGuiTextIndex_size"][1]["cimguiname"] = "ImGuiTextIndex_size" +defs["ImGuiTextIndex_size"][1]["defaults"] = {} +defs["ImGuiTextIndex_size"][1]["funcname"] = "size" +defs["ImGuiTextIndex_size"][1]["location"] = "imgui_internal:722" +defs["ImGuiTextIndex_size"][1]["ov_cimguiname"] = "ImGuiTextIndex_size" +defs["ImGuiTextIndex_size"][1]["ret"] = "int" +defs["ImGuiTextIndex_size"][1]["signature"] = "()" +defs["ImGuiTextIndex_size"][1]["stname"] = "ImGuiTextIndex" +defs["ImGuiTextIndex_size"]["()"] = defs["ImGuiTextIndex_size"][1] defs["ImGuiTextRange_ImGuiTextRange"] = {} defs["ImGuiTextRange_ImGuiTextRange"][1] = {} defs["ImGuiTextRange_ImGuiTextRange"][1]["args"] = "()" @@ -5536,6 +8167,194 @@ defs["ImGuiTextRange_split"][1]["ret"] = "void" defs["ImGuiTextRange_split"][1]["signature"] = "(char,ImVector_ImGuiTextRange*)const" defs["ImGuiTextRange_split"][1]["stname"] = "ImGuiTextRange" defs["ImGuiTextRange_split"]["(char,ImVector_ImGuiTextRange*)const"] = defs["ImGuiTextRange_split"][1] +defs["ImGuiViewportP_CalcWorkRectPos"] = {} +defs["ImGuiViewportP_CalcWorkRectPos"][1] = {} +defs["ImGuiViewportP_CalcWorkRectPos"][1]["args"] = "(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min)" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"] = {} +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"][1] = {} +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"][2] = {} +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"][2]["name"] = "self" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"][3] = {} +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"][3]["name"] = "off_min" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["argsoriginal"] = "(const ImVec2& off_min)" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["call_args"] = "(off_min)" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["cimguiname"] = "ImGuiViewportP_CalcWorkRectPos" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["defaults"] = {} +defs["ImGuiViewportP_CalcWorkRectPos"][1]["funcname"] = "CalcWorkRectPos" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["location"] = "imgui_internal:1742" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["nonUDT"] = 1 +defs["ImGuiViewportP_CalcWorkRectPos"][1]["ov_cimguiname"] = "ImGuiViewportP_CalcWorkRectPos" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["ret"] = "void" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["signature"] = "(const ImVec2)const" +defs["ImGuiViewportP_CalcWorkRectPos"][1]["stname"] = "ImGuiViewportP" +defs["ImGuiViewportP_CalcWorkRectPos"]["(const ImVec2)const"] = defs["ImGuiViewportP_CalcWorkRectPos"][1] +defs["ImGuiViewportP_CalcWorkRectSize"] = {} +defs["ImGuiViewportP_CalcWorkRectSize"][1] = {} +defs["ImGuiViewportP_CalcWorkRectSize"][1]["args"] = "(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min,const ImVec2 off_max)" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"] = {} +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][1] = {} +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][2] = {} +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][2]["name"] = "self" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][3] = {} +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][3]["name"] = "off_min" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][3]["type"] = "const ImVec2" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][4] = {} +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][4]["name"] = "off_max" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsT"][4]["type"] = "const ImVec2" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["argsoriginal"] = "(const ImVec2& off_min,const ImVec2& off_max)" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["call_args"] = "(off_min,off_max)" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["cimguiname"] = "ImGuiViewportP_CalcWorkRectSize" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["defaults"] = {} +defs["ImGuiViewportP_CalcWorkRectSize"][1]["funcname"] = "CalcWorkRectSize" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["location"] = "imgui_internal:1743" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["nonUDT"] = 1 +defs["ImGuiViewportP_CalcWorkRectSize"][1]["ov_cimguiname"] = "ImGuiViewportP_CalcWorkRectSize" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["ret"] = "void" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["signature"] = "(const ImVec2,const ImVec2)const" +defs["ImGuiViewportP_CalcWorkRectSize"][1]["stname"] = "ImGuiViewportP" +defs["ImGuiViewportP_CalcWorkRectSize"]["(const ImVec2,const ImVec2)const"] = defs["ImGuiViewportP_CalcWorkRectSize"][1] +defs["ImGuiViewportP_ClearRequestFlags"] = {} +defs["ImGuiViewportP_ClearRequestFlags"][1] = {} +defs["ImGuiViewportP_ClearRequestFlags"][1]["args"] = "(ImGuiViewportP* self)" +defs["ImGuiViewportP_ClearRequestFlags"][1]["argsT"] = {} +defs["ImGuiViewportP_ClearRequestFlags"][1]["argsT"][1] = {} +defs["ImGuiViewportP_ClearRequestFlags"][1]["argsT"][1]["name"] = "self" +defs["ImGuiViewportP_ClearRequestFlags"][1]["argsT"][1]["type"] = "ImGuiViewportP*" +defs["ImGuiViewportP_ClearRequestFlags"][1]["argsoriginal"] = "()" +defs["ImGuiViewportP_ClearRequestFlags"][1]["call_args"] = "()" +defs["ImGuiViewportP_ClearRequestFlags"][1]["cimguiname"] = "ImGuiViewportP_ClearRequestFlags" +defs["ImGuiViewportP_ClearRequestFlags"][1]["defaults"] = {} +defs["ImGuiViewportP_ClearRequestFlags"][1]["funcname"] = "ClearRequestFlags" +defs["ImGuiViewportP_ClearRequestFlags"][1]["location"] = "imgui_internal:1739" +defs["ImGuiViewportP_ClearRequestFlags"][1]["ov_cimguiname"] = "ImGuiViewportP_ClearRequestFlags" +defs["ImGuiViewportP_ClearRequestFlags"][1]["ret"] = "void" +defs["ImGuiViewportP_ClearRequestFlags"][1]["signature"] = "()" +defs["ImGuiViewportP_ClearRequestFlags"][1]["stname"] = "ImGuiViewportP" +defs["ImGuiViewportP_ClearRequestFlags"]["()"] = defs["ImGuiViewportP_ClearRequestFlags"][1] +defs["ImGuiViewportP_GetBuildWorkRect"] = {} +defs["ImGuiViewportP_GetBuildWorkRect"][1] = {} +defs["ImGuiViewportP_GetBuildWorkRect"][1]["args"] = "(ImRect *pOut,ImGuiViewportP* self)" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["argsT"] = {} +defs["ImGuiViewportP_GetBuildWorkRect"][1]["argsT"][1] = {} +defs["ImGuiViewportP_GetBuildWorkRect"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["argsT"][2] = {} +defs["ImGuiViewportP_GetBuildWorkRect"][1]["argsT"][2]["name"] = "self" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["argsoriginal"] = "()" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["call_args"] = "()" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["cimguiname"] = "ImGuiViewportP_GetBuildWorkRect" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["defaults"] = {} +defs["ImGuiViewportP_GetBuildWorkRect"][1]["funcname"] = "GetBuildWorkRect" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["location"] = "imgui_internal:1749" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["nonUDT"] = 1 +defs["ImGuiViewportP_GetBuildWorkRect"][1]["ov_cimguiname"] = "ImGuiViewportP_GetBuildWorkRect" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["ret"] = "void" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["signature"] = "()const" +defs["ImGuiViewportP_GetBuildWorkRect"][1]["stname"] = "ImGuiViewportP" +defs["ImGuiViewportP_GetBuildWorkRect"]["()const"] = defs["ImGuiViewportP_GetBuildWorkRect"][1] +defs["ImGuiViewportP_GetMainRect"] = {} +defs["ImGuiViewportP_GetMainRect"][1] = {} +defs["ImGuiViewportP_GetMainRect"][1]["args"] = "(ImRect *pOut,ImGuiViewportP* self)" +defs["ImGuiViewportP_GetMainRect"][1]["argsT"] = {} +defs["ImGuiViewportP_GetMainRect"][1]["argsT"][1] = {} +defs["ImGuiViewportP_GetMainRect"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiViewportP_GetMainRect"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImGuiViewportP_GetMainRect"][1]["argsT"][2] = {} +defs["ImGuiViewportP_GetMainRect"][1]["argsT"][2]["name"] = "self" +defs["ImGuiViewportP_GetMainRect"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["ImGuiViewportP_GetMainRect"][1]["argsoriginal"] = "()" +defs["ImGuiViewportP_GetMainRect"][1]["call_args"] = "()" +defs["ImGuiViewportP_GetMainRect"][1]["cimguiname"] = "ImGuiViewportP_GetMainRect" +defs["ImGuiViewportP_GetMainRect"][1]["defaults"] = {} +defs["ImGuiViewportP_GetMainRect"][1]["funcname"] = "GetMainRect" +defs["ImGuiViewportP_GetMainRect"][1]["location"] = "imgui_internal:1747" +defs["ImGuiViewportP_GetMainRect"][1]["nonUDT"] = 1 +defs["ImGuiViewportP_GetMainRect"][1]["ov_cimguiname"] = "ImGuiViewportP_GetMainRect" +defs["ImGuiViewportP_GetMainRect"][1]["ret"] = "void" +defs["ImGuiViewportP_GetMainRect"][1]["signature"] = "()const" +defs["ImGuiViewportP_GetMainRect"][1]["stname"] = "ImGuiViewportP" +defs["ImGuiViewportP_GetMainRect"]["()const"] = defs["ImGuiViewportP_GetMainRect"][1] +defs["ImGuiViewportP_GetWorkRect"] = {} +defs["ImGuiViewportP_GetWorkRect"][1] = {} +defs["ImGuiViewportP_GetWorkRect"][1]["args"] = "(ImRect *pOut,ImGuiViewportP* self)" +defs["ImGuiViewportP_GetWorkRect"][1]["argsT"] = {} +defs["ImGuiViewportP_GetWorkRect"][1]["argsT"][1] = {} +defs["ImGuiViewportP_GetWorkRect"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiViewportP_GetWorkRect"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImGuiViewportP_GetWorkRect"][1]["argsT"][2] = {} +defs["ImGuiViewportP_GetWorkRect"][1]["argsT"][2]["name"] = "self" +defs["ImGuiViewportP_GetWorkRect"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["ImGuiViewportP_GetWorkRect"][1]["argsoriginal"] = "()" +defs["ImGuiViewportP_GetWorkRect"][1]["call_args"] = "()" +defs["ImGuiViewportP_GetWorkRect"][1]["cimguiname"] = "ImGuiViewportP_GetWorkRect" +defs["ImGuiViewportP_GetWorkRect"][1]["defaults"] = {} +defs["ImGuiViewportP_GetWorkRect"][1]["funcname"] = "GetWorkRect" +defs["ImGuiViewportP_GetWorkRect"][1]["location"] = "imgui_internal:1748" +defs["ImGuiViewportP_GetWorkRect"][1]["nonUDT"] = 1 +defs["ImGuiViewportP_GetWorkRect"][1]["ov_cimguiname"] = "ImGuiViewportP_GetWorkRect" +defs["ImGuiViewportP_GetWorkRect"][1]["ret"] = "void" +defs["ImGuiViewportP_GetWorkRect"][1]["signature"] = "()const" +defs["ImGuiViewportP_GetWorkRect"][1]["stname"] = "ImGuiViewportP" +defs["ImGuiViewportP_GetWorkRect"]["()const"] = defs["ImGuiViewportP_GetWorkRect"][1] +defs["ImGuiViewportP_ImGuiViewportP"] = {} +defs["ImGuiViewportP_ImGuiViewportP"][1] = {} +defs["ImGuiViewportP_ImGuiViewportP"][1]["args"] = "()" +defs["ImGuiViewportP_ImGuiViewportP"][1]["argsT"] = {} +defs["ImGuiViewportP_ImGuiViewportP"][1]["argsoriginal"] = "()" +defs["ImGuiViewportP_ImGuiViewportP"][1]["call_args"] = "()" +defs["ImGuiViewportP_ImGuiViewportP"][1]["cimguiname"] = "ImGuiViewportP_ImGuiViewportP" +defs["ImGuiViewportP_ImGuiViewportP"][1]["constructor"] = true +defs["ImGuiViewportP_ImGuiViewportP"][1]["defaults"] = {} +defs["ImGuiViewportP_ImGuiViewportP"][1]["funcname"] = "ImGuiViewportP" +defs["ImGuiViewportP_ImGuiViewportP"][1]["location"] = "imgui_internal:1737" +defs["ImGuiViewportP_ImGuiViewportP"][1]["ov_cimguiname"] = "ImGuiViewportP_ImGuiViewportP" +defs["ImGuiViewportP_ImGuiViewportP"][1]["signature"] = "()" +defs["ImGuiViewportP_ImGuiViewportP"][1]["stname"] = "ImGuiViewportP" +defs["ImGuiViewportP_ImGuiViewportP"]["()"] = defs["ImGuiViewportP_ImGuiViewportP"][1] +defs["ImGuiViewportP_UpdateWorkRect"] = {} +defs["ImGuiViewportP_UpdateWorkRect"][1] = {} +defs["ImGuiViewportP_UpdateWorkRect"][1]["args"] = "(ImGuiViewportP* self)" +defs["ImGuiViewportP_UpdateWorkRect"][1]["argsT"] = {} +defs["ImGuiViewportP_UpdateWorkRect"][1]["argsT"][1] = {} +defs["ImGuiViewportP_UpdateWorkRect"][1]["argsT"][1]["name"] = "self" +defs["ImGuiViewportP_UpdateWorkRect"][1]["argsT"][1]["type"] = "ImGuiViewportP*" +defs["ImGuiViewportP_UpdateWorkRect"][1]["argsoriginal"] = "()" +defs["ImGuiViewportP_UpdateWorkRect"][1]["call_args"] = "()" +defs["ImGuiViewportP_UpdateWorkRect"][1]["cimguiname"] = "ImGuiViewportP_UpdateWorkRect" +defs["ImGuiViewportP_UpdateWorkRect"][1]["defaults"] = {} +defs["ImGuiViewportP_UpdateWorkRect"][1]["funcname"] = "UpdateWorkRect" +defs["ImGuiViewportP_UpdateWorkRect"][1]["location"] = "imgui_internal:1744" +defs["ImGuiViewportP_UpdateWorkRect"][1]["ov_cimguiname"] = "ImGuiViewportP_UpdateWorkRect" +defs["ImGuiViewportP_UpdateWorkRect"][1]["ret"] = "void" +defs["ImGuiViewportP_UpdateWorkRect"][1]["signature"] = "()" +defs["ImGuiViewportP_UpdateWorkRect"][1]["stname"] = "ImGuiViewportP" +defs["ImGuiViewportP_UpdateWorkRect"]["()"] = defs["ImGuiViewportP_UpdateWorkRect"][1] +defs["ImGuiViewportP_destroy"] = {} +defs["ImGuiViewportP_destroy"][1] = {} +defs["ImGuiViewportP_destroy"][1]["args"] = "(ImGuiViewportP* self)" +defs["ImGuiViewportP_destroy"][1]["argsT"] = {} +defs["ImGuiViewportP_destroy"][1]["argsT"][1] = {} +defs["ImGuiViewportP_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiViewportP_destroy"][1]["argsT"][1]["type"] = "ImGuiViewportP*" +defs["ImGuiViewportP_destroy"][1]["call_args"] = "(self)" +defs["ImGuiViewportP_destroy"][1]["cimguiname"] = "ImGuiViewportP_destroy" +defs["ImGuiViewportP_destroy"][1]["defaults"] = {} +defs["ImGuiViewportP_destroy"][1]["destructor"] = true +defs["ImGuiViewportP_destroy"][1]["location"] = "imgui_internal:1738" +defs["ImGuiViewportP_destroy"][1]["ov_cimguiname"] = "ImGuiViewportP_destroy" +defs["ImGuiViewportP_destroy"][1]["realdestructor"] = true +defs["ImGuiViewportP_destroy"][1]["ret"] = "void" +defs["ImGuiViewportP_destroy"][1]["signature"] = "(ImGuiViewportP*)" +defs["ImGuiViewportP_destroy"][1]["stname"] = "ImGuiViewportP" +defs["ImGuiViewportP_destroy"]["(ImGuiViewportP*)"] = defs["ImGuiViewportP_destroy"][1] defs["ImGuiViewport_GetCenter"] = {} defs["ImGuiViewport_GetCenter"][1] = {} defs["ImGuiViewport_GetCenter"][1]["args"] = "(ImVec2 *pOut,ImGuiViewport* self)" @@ -5644,6 +8463,1673 @@ defs["ImGuiWindowClass_destroy"][1]["ret"] = "void" defs["ImGuiWindowClass_destroy"][1]["signature"] = "(ImGuiWindowClass*)" defs["ImGuiWindowClass_destroy"][1]["stname"] = "ImGuiWindowClass" defs["ImGuiWindowClass_destroy"]["(ImGuiWindowClass*)"] = defs["ImGuiWindowClass_destroy"][1] +defs["ImGuiWindowSettings_GetName"] = {} +defs["ImGuiWindowSettings_GetName"][1] = {} +defs["ImGuiWindowSettings_GetName"][1]["args"] = "(ImGuiWindowSettings* self)" +defs["ImGuiWindowSettings_GetName"][1]["argsT"] = {} +defs["ImGuiWindowSettings_GetName"][1]["argsT"][1] = {} +defs["ImGuiWindowSettings_GetName"][1]["argsT"][1]["name"] = "self" +defs["ImGuiWindowSettings_GetName"][1]["argsT"][1]["type"] = "ImGuiWindowSettings*" +defs["ImGuiWindowSettings_GetName"][1]["argsoriginal"] = "()" +defs["ImGuiWindowSettings_GetName"][1]["call_args"] = "()" +defs["ImGuiWindowSettings_GetName"][1]["cimguiname"] = "ImGuiWindowSettings_GetName" +defs["ImGuiWindowSettings_GetName"][1]["defaults"] = {} +defs["ImGuiWindowSettings_GetName"][1]["funcname"] = "GetName" +defs["ImGuiWindowSettings_GetName"][1]["location"] = "imgui_internal:1773" +defs["ImGuiWindowSettings_GetName"][1]["ov_cimguiname"] = "ImGuiWindowSettings_GetName" +defs["ImGuiWindowSettings_GetName"][1]["ret"] = "char*" +defs["ImGuiWindowSettings_GetName"][1]["signature"] = "()" +defs["ImGuiWindowSettings_GetName"][1]["stname"] = "ImGuiWindowSettings" +defs["ImGuiWindowSettings_GetName"]["()"] = defs["ImGuiWindowSettings_GetName"][1] +defs["ImGuiWindowSettings_ImGuiWindowSettings"] = {} +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1] = {} +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["args"] = "()" +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["argsT"] = {} +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["argsoriginal"] = "()" +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["call_args"] = "()" +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["cimguiname"] = "ImGuiWindowSettings_ImGuiWindowSettings" +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["constructor"] = true +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["defaults"] = {} +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["funcname"] = "ImGuiWindowSettings" +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["location"] = "imgui_internal:1772" +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["ov_cimguiname"] = "ImGuiWindowSettings_ImGuiWindowSettings" +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["signature"] = "()" +defs["ImGuiWindowSettings_ImGuiWindowSettings"][1]["stname"] = "ImGuiWindowSettings" +defs["ImGuiWindowSettings_ImGuiWindowSettings"]["()"] = defs["ImGuiWindowSettings_ImGuiWindowSettings"][1] +defs["ImGuiWindowSettings_destroy"] = {} +defs["ImGuiWindowSettings_destroy"][1] = {} +defs["ImGuiWindowSettings_destroy"][1]["args"] = "(ImGuiWindowSettings* self)" +defs["ImGuiWindowSettings_destroy"][1]["argsT"] = {} +defs["ImGuiWindowSettings_destroy"][1]["argsT"][1] = {} +defs["ImGuiWindowSettings_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiWindowSettings_destroy"][1]["argsT"][1]["type"] = "ImGuiWindowSettings*" +defs["ImGuiWindowSettings_destroy"][1]["call_args"] = "(self)" +defs["ImGuiWindowSettings_destroy"][1]["cimguiname"] = "ImGuiWindowSettings_destroy" +defs["ImGuiWindowSettings_destroy"][1]["defaults"] = {} +defs["ImGuiWindowSettings_destroy"][1]["destructor"] = true +defs["ImGuiWindowSettings_destroy"][1]["ov_cimguiname"] = "ImGuiWindowSettings_destroy" +defs["ImGuiWindowSettings_destroy"][1]["ret"] = "void" +defs["ImGuiWindowSettings_destroy"][1]["signature"] = "(ImGuiWindowSettings*)" +defs["ImGuiWindowSettings_destroy"][1]["stname"] = "ImGuiWindowSettings" +defs["ImGuiWindowSettings_destroy"]["(ImGuiWindowSettings*)"] = defs["ImGuiWindowSettings_destroy"][1] +defs["ImGuiWindow_CalcFontSize"] = {} +defs["ImGuiWindow_CalcFontSize"][1] = {} +defs["ImGuiWindow_CalcFontSize"][1]["args"] = "(ImGuiWindow* self)" +defs["ImGuiWindow_CalcFontSize"][1]["argsT"] = {} +defs["ImGuiWindow_CalcFontSize"][1]["argsT"][1] = {} +defs["ImGuiWindow_CalcFontSize"][1]["argsT"][1]["name"] = "self" +defs["ImGuiWindow_CalcFontSize"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_CalcFontSize"][1]["argsoriginal"] = "()" +defs["ImGuiWindow_CalcFontSize"][1]["call_args"] = "()" +defs["ImGuiWindow_CalcFontSize"][1]["cimguiname"] = "ImGuiWindow_CalcFontSize" +defs["ImGuiWindow_CalcFontSize"][1]["defaults"] = {} +defs["ImGuiWindow_CalcFontSize"][1]["funcname"] = "CalcFontSize" +defs["ImGuiWindow_CalcFontSize"][1]["location"] = "imgui_internal:2562" +defs["ImGuiWindow_CalcFontSize"][1]["ov_cimguiname"] = "ImGuiWindow_CalcFontSize" +defs["ImGuiWindow_CalcFontSize"][1]["ret"] = "float" +defs["ImGuiWindow_CalcFontSize"][1]["signature"] = "()const" +defs["ImGuiWindow_CalcFontSize"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_CalcFontSize"]["()const"] = defs["ImGuiWindow_CalcFontSize"][1] +defs["ImGuiWindow_GetID"] = {} +defs["ImGuiWindow_GetID"][1] = {} +defs["ImGuiWindow_GetID"][1]["args"] = "(ImGuiWindow* self,const char* str,const char* str_end)" +defs["ImGuiWindow_GetID"][1]["argsT"] = {} +defs["ImGuiWindow_GetID"][1]["argsT"][1] = {} +defs["ImGuiWindow_GetID"][1]["argsT"][1]["name"] = "self" +defs["ImGuiWindow_GetID"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_GetID"][1]["argsT"][2] = {} +defs["ImGuiWindow_GetID"][1]["argsT"][2]["name"] = "str" +defs["ImGuiWindow_GetID"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiWindow_GetID"][1]["argsT"][3] = {} +defs["ImGuiWindow_GetID"][1]["argsT"][3]["name"] = "str_end" +defs["ImGuiWindow_GetID"][1]["argsT"][3]["type"] = "const char*" +defs["ImGuiWindow_GetID"][1]["argsoriginal"] = "(const char* str,const char* str_end=((void*)0))" +defs["ImGuiWindow_GetID"][1]["call_args"] = "(str,str_end)" +defs["ImGuiWindow_GetID"][1]["cimguiname"] = "ImGuiWindow_GetID" +defs["ImGuiWindow_GetID"][1]["defaults"] = {} +defs["ImGuiWindow_GetID"][1]["defaults"]["str_end"] = "NULL" +defs["ImGuiWindow_GetID"][1]["funcname"] = "GetID" +defs["ImGuiWindow_GetID"][1]["location"] = "imgui_internal:2555" +defs["ImGuiWindow_GetID"][1]["ov_cimguiname"] = "ImGuiWindow_GetID_Str" +defs["ImGuiWindow_GetID"][1]["ret"] = "ImGuiID" +defs["ImGuiWindow_GetID"][1]["signature"] = "(const char*,const char*)" +defs["ImGuiWindow_GetID"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_GetID"][2] = {} +defs["ImGuiWindow_GetID"][2]["args"] = "(ImGuiWindow* self,const void* ptr)" +defs["ImGuiWindow_GetID"][2]["argsT"] = {} +defs["ImGuiWindow_GetID"][2]["argsT"][1] = {} +defs["ImGuiWindow_GetID"][2]["argsT"][1]["name"] = "self" +defs["ImGuiWindow_GetID"][2]["argsT"][1]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_GetID"][2]["argsT"][2] = {} +defs["ImGuiWindow_GetID"][2]["argsT"][2]["name"] = "ptr" +defs["ImGuiWindow_GetID"][2]["argsT"][2]["type"] = "const void*" +defs["ImGuiWindow_GetID"][2]["argsoriginal"] = "(const void* ptr)" +defs["ImGuiWindow_GetID"][2]["call_args"] = "(ptr)" +defs["ImGuiWindow_GetID"][2]["cimguiname"] = "ImGuiWindow_GetID" +defs["ImGuiWindow_GetID"][2]["defaults"] = {} +defs["ImGuiWindow_GetID"][2]["funcname"] = "GetID" +defs["ImGuiWindow_GetID"][2]["location"] = "imgui_internal:2556" +defs["ImGuiWindow_GetID"][2]["ov_cimguiname"] = "ImGuiWindow_GetID_Ptr" +defs["ImGuiWindow_GetID"][2]["ret"] = "ImGuiID" +defs["ImGuiWindow_GetID"][2]["signature"] = "(const void*)" +defs["ImGuiWindow_GetID"][2]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_GetID"][3] = {} +defs["ImGuiWindow_GetID"][3]["args"] = "(ImGuiWindow* self,int n)" +defs["ImGuiWindow_GetID"][3]["argsT"] = {} +defs["ImGuiWindow_GetID"][3]["argsT"][1] = {} +defs["ImGuiWindow_GetID"][3]["argsT"][1]["name"] = "self" +defs["ImGuiWindow_GetID"][3]["argsT"][1]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_GetID"][3]["argsT"][2] = {} +defs["ImGuiWindow_GetID"][3]["argsT"][2]["name"] = "n" +defs["ImGuiWindow_GetID"][3]["argsT"][2]["type"] = "int" +defs["ImGuiWindow_GetID"][3]["argsoriginal"] = "(int n)" +defs["ImGuiWindow_GetID"][3]["call_args"] = "(n)" +defs["ImGuiWindow_GetID"][3]["cimguiname"] = "ImGuiWindow_GetID" +defs["ImGuiWindow_GetID"][3]["defaults"] = {} +defs["ImGuiWindow_GetID"][3]["funcname"] = "GetID" +defs["ImGuiWindow_GetID"][3]["location"] = "imgui_internal:2557" +defs["ImGuiWindow_GetID"][3]["ov_cimguiname"] = "ImGuiWindow_GetID_Int" +defs["ImGuiWindow_GetID"][3]["ret"] = "ImGuiID" +defs["ImGuiWindow_GetID"][3]["signature"] = "(int)" +defs["ImGuiWindow_GetID"][3]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_GetID"]["(const char*,const char*)"] = defs["ImGuiWindow_GetID"][1] +defs["ImGuiWindow_GetID"]["(const void*)"] = defs["ImGuiWindow_GetID"][2] +defs["ImGuiWindow_GetID"]["(int)"] = defs["ImGuiWindow_GetID"][3] +defs["ImGuiWindow_GetIDFromRectangle"] = {} +defs["ImGuiWindow_GetIDFromRectangle"][1] = {} +defs["ImGuiWindow_GetIDFromRectangle"][1]["args"] = "(ImGuiWindow* self,const ImRect r_abs)" +defs["ImGuiWindow_GetIDFromRectangle"][1]["argsT"] = {} +defs["ImGuiWindow_GetIDFromRectangle"][1]["argsT"][1] = {} +defs["ImGuiWindow_GetIDFromRectangle"][1]["argsT"][1]["name"] = "self" +defs["ImGuiWindow_GetIDFromRectangle"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_GetIDFromRectangle"][1]["argsT"][2] = {} +defs["ImGuiWindow_GetIDFromRectangle"][1]["argsT"][2]["name"] = "r_abs" +defs["ImGuiWindow_GetIDFromRectangle"][1]["argsT"][2]["type"] = "const ImRect" +defs["ImGuiWindow_GetIDFromRectangle"][1]["argsoriginal"] = "(const ImRect& r_abs)" +defs["ImGuiWindow_GetIDFromRectangle"][1]["call_args"] = "(r_abs)" +defs["ImGuiWindow_GetIDFromRectangle"][1]["cimguiname"] = "ImGuiWindow_GetIDFromRectangle" +defs["ImGuiWindow_GetIDFromRectangle"][1]["defaults"] = {} +defs["ImGuiWindow_GetIDFromRectangle"][1]["funcname"] = "GetIDFromRectangle" +defs["ImGuiWindow_GetIDFromRectangle"][1]["location"] = "imgui_internal:2558" +defs["ImGuiWindow_GetIDFromRectangle"][1]["ov_cimguiname"] = "ImGuiWindow_GetIDFromRectangle" +defs["ImGuiWindow_GetIDFromRectangle"][1]["ret"] = "ImGuiID" +defs["ImGuiWindow_GetIDFromRectangle"][1]["signature"] = "(const ImRect)" +defs["ImGuiWindow_GetIDFromRectangle"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_GetIDFromRectangle"]["(const ImRect)"] = defs["ImGuiWindow_GetIDFromRectangle"][1] +defs["ImGuiWindow_ImGuiWindow"] = {} +defs["ImGuiWindow_ImGuiWindow"][1] = {} +defs["ImGuiWindow_ImGuiWindow"][1]["args"] = "(ImGuiContext* context,const char* name)" +defs["ImGuiWindow_ImGuiWindow"][1]["argsT"] = {} +defs["ImGuiWindow_ImGuiWindow"][1]["argsT"][1] = {} +defs["ImGuiWindow_ImGuiWindow"][1]["argsT"][1]["name"] = "context" +defs["ImGuiWindow_ImGuiWindow"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["ImGuiWindow_ImGuiWindow"][1]["argsT"][2] = {} +defs["ImGuiWindow_ImGuiWindow"][1]["argsT"][2]["name"] = "name" +defs["ImGuiWindow_ImGuiWindow"][1]["argsT"][2]["type"] = "const char*" +defs["ImGuiWindow_ImGuiWindow"][1]["argsoriginal"] = "(ImGuiContext* context,const char* name)" +defs["ImGuiWindow_ImGuiWindow"][1]["call_args"] = "(context,name)" +defs["ImGuiWindow_ImGuiWindow"][1]["cimguiname"] = "ImGuiWindow_ImGuiWindow" +defs["ImGuiWindow_ImGuiWindow"][1]["constructor"] = true +defs["ImGuiWindow_ImGuiWindow"][1]["defaults"] = {} +defs["ImGuiWindow_ImGuiWindow"][1]["funcname"] = "ImGuiWindow" +defs["ImGuiWindow_ImGuiWindow"][1]["location"] = "imgui_internal:2551" +defs["ImGuiWindow_ImGuiWindow"][1]["ov_cimguiname"] = "ImGuiWindow_ImGuiWindow" +defs["ImGuiWindow_ImGuiWindow"][1]["signature"] = "(ImGuiContext*,const char*)" +defs["ImGuiWindow_ImGuiWindow"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_ImGuiWindow"]["(ImGuiContext*,const char*)"] = defs["ImGuiWindow_ImGuiWindow"][1] +defs["ImGuiWindow_MenuBarHeight"] = {} +defs["ImGuiWindow_MenuBarHeight"][1] = {} +defs["ImGuiWindow_MenuBarHeight"][1]["args"] = "(ImGuiWindow* self)" +defs["ImGuiWindow_MenuBarHeight"][1]["argsT"] = {} +defs["ImGuiWindow_MenuBarHeight"][1]["argsT"][1] = {} +defs["ImGuiWindow_MenuBarHeight"][1]["argsT"][1]["name"] = "self" +defs["ImGuiWindow_MenuBarHeight"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_MenuBarHeight"][1]["argsoriginal"] = "()" +defs["ImGuiWindow_MenuBarHeight"][1]["call_args"] = "()" +defs["ImGuiWindow_MenuBarHeight"][1]["cimguiname"] = "ImGuiWindow_MenuBarHeight" +defs["ImGuiWindow_MenuBarHeight"][1]["defaults"] = {} +defs["ImGuiWindow_MenuBarHeight"][1]["funcname"] = "MenuBarHeight" +defs["ImGuiWindow_MenuBarHeight"][1]["location"] = "imgui_internal:2565" +defs["ImGuiWindow_MenuBarHeight"][1]["ov_cimguiname"] = "ImGuiWindow_MenuBarHeight" +defs["ImGuiWindow_MenuBarHeight"][1]["ret"] = "float" +defs["ImGuiWindow_MenuBarHeight"][1]["signature"] = "()const" +defs["ImGuiWindow_MenuBarHeight"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_MenuBarHeight"]["()const"] = defs["ImGuiWindow_MenuBarHeight"][1] +defs["ImGuiWindow_MenuBarRect"] = {} +defs["ImGuiWindow_MenuBarRect"][1] = {} +defs["ImGuiWindow_MenuBarRect"][1]["args"] = "(ImRect *pOut,ImGuiWindow* self)" +defs["ImGuiWindow_MenuBarRect"][1]["argsT"] = {} +defs["ImGuiWindow_MenuBarRect"][1]["argsT"][1] = {} +defs["ImGuiWindow_MenuBarRect"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiWindow_MenuBarRect"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImGuiWindow_MenuBarRect"][1]["argsT"][2] = {} +defs["ImGuiWindow_MenuBarRect"][1]["argsT"][2]["name"] = "self" +defs["ImGuiWindow_MenuBarRect"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_MenuBarRect"][1]["argsoriginal"] = "()" +defs["ImGuiWindow_MenuBarRect"][1]["call_args"] = "()" +defs["ImGuiWindow_MenuBarRect"][1]["cimguiname"] = "ImGuiWindow_MenuBarRect" +defs["ImGuiWindow_MenuBarRect"][1]["defaults"] = {} +defs["ImGuiWindow_MenuBarRect"][1]["funcname"] = "MenuBarRect" +defs["ImGuiWindow_MenuBarRect"][1]["location"] = "imgui_internal:2566" +defs["ImGuiWindow_MenuBarRect"][1]["nonUDT"] = 1 +defs["ImGuiWindow_MenuBarRect"][1]["ov_cimguiname"] = "ImGuiWindow_MenuBarRect" +defs["ImGuiWindow_MenuBarRect"][1]["ret"] = "void" +defs["ImGuiWindow_MenuBarRect"][1]["signature"] = "()const" +defs["ImGuiWindow_MenuBarRect"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_MenuBarRect"]["()const"] = defs["ImGuiWindow_MenuBarRect"][1] +defs["ImGuiWindow_Rect"] = {} +defs["ImGuiWindow_Rect"][1] = {} +defs["ImGuiWindow_Rect"][1]["args"] = "(ImRect *pOut,ImGuiWindow* self)" +defs["ImGuiWindow_Rect"][1]["argsT"] = {} +defs["ImGuiWindow_Rect"][1]["argsT"][1] = {} +defs["ImGuiWindow_Rect"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiWindow_Rect"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImGuiWindow_Rect"][1]["argsT"][2] = {} +defs["ImGuiWindow_Rect"][1]["argsT"][2]["name"] = "self" +defs["ImGuiWindow_Rect"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_Rect"][1]["argsoriginal"] = "()" +defs["ImGuiWindow_Rect"][1]["call_args"] = "()" +defs["ImGuiWindow_Rect"][1]["cimguiname"] = "ImGuiWindow_Rect" +defs["ImGuiWindow_Rect"][1]["defaults"] = {} +defs["ImGuiWindow_Rect"][1]["funcname"] = "Rect" +defs["ImGuiWindow_Rect"][1]["location"] = "imgui_internal:2561" +defs["ImGuiWindow_Rect"][1]["nonUDT"] = 1 +defs["ImGuiWindow_Rect"][1]["ov_cimguiname"] = "ImGuiWindow_Rect" +defs["ImGuiWindow_Rect"][1]["ret"] = "void" +defs["ImGuiWindow_Rect"][1]["signature"] = "()const" +defs["ImGuiWindow_Rect"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_Rect"]["()const"] = defs["ImGuiWindow_Rect"][1] +defs["ImGuiWindow_TitleBarHeight"] = {} +defs["ImGuiWindow_TitleBarHeight"][1] = {} +defs["ImGuiWindow_TitleBarHeight"][1]["args"] = "(ImGuiWindow* self)" +defs["ImGuiWindow_TitleBarHeight"][1]["argsT"] = {} +defs["ImGuiWindow_TitleBarHeight"][1]["argsT"][1] = {} +defs["ImGuiWindow_TitleBarHeight"][1]["argsT"][1]["name"] = "self" +defs["ImGuiWindow_TitleBarHeight"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_TitleBarHeight"][1]["argsoriginal"] = "()" +defs["ImGuiWindow_TitleBarHeight"][1]["call_args"] = "()" +defs["ImGuiWindow_TitleBarHeight"][1]["cimguiname"] = "ImGuiWindow_TitleBarHeight" +defs["ImGuiWindow_TitleBarHeight"][1]["defaults"] = {} +defs["ImGuiWindow_TitleBarHeight"][1]["funcname"] = "TitleBarHeight" +defs["ImGuiWindow_TitleBarHeight"][1]["location"] = "imgui_internal:2563" +defs["ImGuiWindow_TitleBarHeight"][1]["ov_cimguiname"] = "ImGuiWindow_TitleBarHeight" +defs["ImGuiWindow_TitleBarHeight"][1]["ret"] = "float" +defs["ImGuiWindow_TitleBarHeight"][1]["signature"] = "()const" +defs["ImGuiWindow_TitleBarHeight"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_TitleBarHeight"]["()const"] = defs["ImGuiWindow_TitleBarHeight"][1] +defs["ImGuiWindow_TitleBarRect"] = {} +defs["ImGuiWindow_TitleBarRect"][1] = {} +defs["ImGuiWindow_TitleBarRect"][1]["args"] = "(ImRect *pOut,ImGuiWindow* self)" +defs["ImGuiWindow_TitleBarRect"][1]["argsT"] = {} +defs["ImGuiWindow_TitleBarRect"][1]["argsT"][1] = {} +defs["ImGuiWindow_TitleBarRect"][1]["argsT"][1]["name"] = "pOut" +defs["ImGuiWindow_TitleBarRect"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImGuiWindow_TitleBarRect"][1]["argsT"][2] = {} +defs["ImGuiWindow_TitleBarRect"][1]["argsT"][2]["name"] = "self" +defs["ImGuiWindow_TitleBarRect"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_TitleBarRect"][1]["argsoriginal"] = "()" +defs["ImGuiWindow_TitleBarRect"][1]["call_args"] = "()" +defs["ImGuiWindow_TitleBarRect"][1]["cimguiname"] = "ImGuiWindow_TitleBarRect" +defs["ImGuiWindow_TitleBarRect"][1]["defaults"] = {} +defs["ImGuiWindow_TitleBarRect"][1]["funcname"] = "TitleBarRect" +defs["ImGuiWindow_TitleBarRect"][1]["location"] = "imgui_internal:2564" +defs["ImGuiWindow_TitleBarRect"][1]["nonUDT"] = 1 +defs["ImGuiWindow_TitleBarRect"][1]["ov_cimguiname"] = "ImGuiWindow_TitleBarRect" +defs["ImGuiWindow_TitleBarRect"][1]["ret"] = "void" +defs["ImGuiWindow_TitleBarRect"][1]["signature"] = "()const" +defs["ImGuiWindow_TitleBarRect"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_TitleBarRect"]["()const"] = defs["ImGuiWindow_TitleBarRect"][1] +defs["ImGuiWindow_destroy"] = {} +defs["ImGuiWindow_destroy"][1] = {} +defs["ImGuiWindow_destroy"][1]["args"] = "(ImGuiWindow* self)" +defs["ImGuiWindow_destroy"][1]["argsT"] = {} +defs["ImGuiWindow_destroy"][1]["argsT"][1] = {} +defs["ImGuiWindow_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImGuiWindow_destroy"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["ImGuiWindow_destroy"][1]["call_args"] = "(self)" +defs["ImGuiWindow_destroy"][1]["cimguiname"] = "ImGuiWindow_destroy" +defs["ImGuiWindow_destroy"][1]["defaults"] = {} +defs["ImGuiWindow_destroy"][1]["destructor"] = true +defs["ImGuiWindow_destroy"][1]["location"] = "imgui_internal:2553" +defs["ImGuiWindow_destroy"][1]["ov_cimguiname"] = "ImGuiWindow_destroy" +defs["ImGuiWindow_destroy"][1]["realdestructor"] = true +defs["ImGuiWindow_destroy"][1]["ret"] = "void" +defs["ImGuiWindow_destroy"][1]["signature"] = "(ImGuiWindow*)" +defs["ImGuiWindow_destroy"][1]["stname"] = "ImGuiWindow" +defs["ImGuiWindow_destroy"]["(ImGuiWindow*)"] = defs["ImGuiWindow_destroy"][1] +defs["ImPool_Add"] = {} +defs["ImPool_Add"][1] = {} +defs["ImPool_Add"][1]["args"] = "(ImPool* self)" +defs["ImPool_Add"][1]["argsT"] = {} +defs["ImPool_Add"][1]["argsT"][1] = {} +defs["ImPool_Add"][1]["argsT"][1]["name"] = "self" +defs["ImPool_Add"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_Add"][1]["argsoriginal"] = "()" +defs["ImPool_Add"][1]["call_args"] = "()" +defs["ImPool_Add"][1]["cimguiname"] = "ImPool_Add" +defs["ImPool_Add"][1]["defaults"] = {} +defs["ImPool_Add"][1]["funcname"] = "Add" +defs["ImPool_Add"][1]["location"] = "imgui_internal:674" +defs["ImPool_Add"][1]["ov_cimguiname"] = "ImPool_Add" +defs["ImPool_Add"][1]["ret"] = "T*" +defs["ImPool_Add"][1]["signature"] = "()" +defs["ImPool_Add"][1]["stname"] = "ImPool" +defs["ImPool_Add"][1]["templated"] = true +defs["ImPool_Add"]["()"] = defs["ImPool_Add"][1] +defs["ImPool_Clear"] = {} +defs["ImPool_Clear"][1] = {} +defs["ImPool_Clear"][1]["args"] = "(ImPool* self)" +defs["ImPool_Clear"][1]["argsT"] = {} +defs["ImPool_Clear"][1]["argsT"][1] = {} +defs["ImPool_Clear"][1]["argsT"][1]["name"] = "self" +defs["ImPool_Clear"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_Clear"][1]["argsoriginal"] = "()" +defs["ImPool_Clear"][1]["call_args"] = "()" +defs["ImPool_Clear"][1]["cimguiname"] = "ImPool_Clear" +defs["ImPool_Clear"][1]["defaults"] = {} +defs["ImPool_Clear"][1]["funcname"] = "Clear" +defs["ImPool_Clear"][1]["location"] = "imgui_internal:673" +defs["ImPool_Clear"][1]["ov_cimguiname"] = "ImPool_Clear" +defs["ImPool_Clear"][1]["ret"] = "void" +defs["ImPool_Clear"][1]["signature"] = "()" +defs["ImPool_Clear"][1]["stname"] = "ImPool" +defs["ImPool_Clear"][1]["templated"] = true +defs["ImPool_Clear"]["()"] = defs["ImPool_Clear"][1] +defs["ImPool_Contains"] = {} +defs["ImPool_Contains"][1] = {} +defs["ImPool_Contains"][1]["args"] = "(ImPool* self,const T* p)" +defs["ImPool_Contains"][1]["argsT"] = {} +defs["ImPool_Contains"][1]["argsT"][1] = {} +defs["ImPool_Contains"][1]["argsT"][1]["name"] = "self" +defs["ImPool_Contains"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_Contains"][1]["argsT"][2] = {} +defs["ImPool_Contains"][1]["argsT"][2]["name"] = "p" +defs["ImPool_Contains"][1]["argsT"][2]["type"] = "const T*" +defs["ImPool_Contains"][1]["argsoriginal"] = "(const T* p)" +defs["ImPool_Contains"][1]["call_args"] = "(p)" +defs["ImPool_Contains"][1]["cimguiname"] = "ImPool_Contains" +defs["ImPool_Contains"][1]["defaults"] = {} +defs["ImPool_Contains"][1]["funcname"] = "Contains" +defs["ImPool_Contains"][1]["location"] = "imgui_internal:672" +defs["ImPool_Contains"][1]["ov_cimguiname"] = "ImPool_Contains" +defs["ImPool_Contains"][1]["ret"] = "bool" +defs["ImPool_Contains"][1]["signature"] = "(const T*)const" +defs["ImPool_Contains"][1]["stname"] = "ImPool" +defs["ImPool_Contains"][1]["templated"] = true +defs["ImPool_Contains"]["(const T*)const"] = defs["ImPool_Contains"][1] +defs["ImPool_GetAliveCount"] = {} +defs["ImPool_GetAliveCount"][1] = {} +defs["ImPool_GetAliveCount"][1]["args"] = "(ImPool* self)" +defs["ImPool_GetAliveCount"][1]["argsT"] = {} +defs["ImPool_GetAliveCount"][1]["argsT"][1] = {} +defs["ImPool_GetAliveCount"][1]["argsT"][1]["name"] = "self" +defs["ImPool_GetAliveCount"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_GetAliveCount"][1]["argsoriginal"] = "()" +defs["ImPool_GetAliveCount"][1]["call_args"] = "()" +defs["ImPool_GetAliveCount"][1]["cimguiname"] = "ImPool_GetAliveCount" +defs["ImPool_GetAliveCount"][1]["defaults"] = {} +defs["ImPool_GetAliveCount"][1]["funcname"] = "GetAliveCount" +defs["ImPool_GetAliveCount"][1]["location"] = "imgui_internal:681" +defs["ImPool_GetAliveCount"][1]["ov_cimguiname"] = "ImPool_GetAliveCount" +defs["ImPool_GetAliveCount"][1]["ret"] = "int" +defs["ImPool_GetAliveCount"][1]["signature"] = "()const" +defs["ImPool_GetAliveCount"][1]["stname"] = "ImPool" +defs["ImPool_GetAliveCount"][1]["templated"] = true +defs["ImPool_GetAliveCount"]["()const"] = defs["ImPool_GetAliveCount"][1] +defs["ImPool_GetBufSize"] = {} +defs["ImPool_GetBufSize"][1] = {} +defs["ImPool_GetBufSize"][1]["args"] = "(ImPool* self)" +defs["ImPool_GetBufSize"][1]["argsT"] = {} +defs["ImPool_GetBufSize"][1]["argsT"][1] = {} +defs["ImPool_GetBufSize"][1]["argsT"][1]["name"] = "self" +defs["ImPool_GetBufSize"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_GetBufSize"][1]["argsoriginal"] = "()" +defs["ImPool_GetBufSize"][1]["call_args"] = "()" +defs["ImPool_GetBufSize"][1]["cimguiname"] = "ImPool_GetBufSize" +defs["ImPool_GetBufSize"][1]["defaults"] = {} +defs["ImPool_GetBufSize"][1]["funcname"] = "GetBufSize" +defs["ImPool_GetBufSize"][1]["location"] = "imgui_internal:682" +defs["ImPool_GetBufSize"][1]["ov_cimguiname"] = "ImPool_GetBufSize" +defs["ImPool_GetBufSize"][1]["ret"] = "int" +defs["ImPool_GetBufSize"][1]["signature"] = "()const" +defs["ImPool_GetBufSize"][1]["stname"] = "ImPool" +defs["ImPool_GetBufSize"][1]["templated"] = true +defs["ImPool_GetBufSize"]["()const"] = defs["ImPool_GetBufSize"][1] +defs["ImPool_GetByIndex"] = {} +defs["ImPool_GetByIndex"][1] = {} +defs["ImPool_GetByIndex"][1]["args"] = "(ImPool* self,ImPoolIdx n)" +defs["ImPool_GetByIndex"][1]["argsT"] = {} +defs["ImPool_GetByIndex"][1]["argsT"][1] = {} +defs["ImPool_GetByIndex"][1]["argsT"][1]["name"] = "self" +defs["ImPool_GetByIndex"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_GetByIndex"][1]["argsT"][2] = {} +defs["ImPool_GetByIndex"][1]["argsT"][2]["name"] = "n" +defs["ImPool_GetByIndex"][1]["argsT"][2]["type"] = "ImPoolIdx" +defs["ImPool_GetByIndex"][1]["argsoriginal"] = "(ImPoolIdx n)" +defs["ImPool_GetByIndex"][1]["call_args"] = "(n)" +defs["ImPool_GetByIndex"][1]["cimguiname"] = "ImPool_GetByIndex" +defs["ImPool_GetByIndex"][1]["defaults"] = {} +defs["ImPool_GetByIndex"][1]["funcname"] = "GetByIndex" +defs["ImPool_GetByIndex"][1]["location"] = "imgui_internal:669" +defs["ImPool_GetByIndex"][1]["ov_cimguiname"] = "ImPool_GetByIndex" +defs["ImPool_GetByIndex"][1]["ret"] = "T*" +defs["ImPool_GetByIndex"][1]["signature"] = "(ImPoolIdx)" +defs["ImPool_GetByIndex"][1]["stname"] = "ImPool" +defs["ImPool_GetByIndex"][1]["templated"] = true +defs["ImPool_GetByIndex"]["(ImPoolIdx)"] = defs["ImPool_GetByIndex"][1] +defs["ImPool_GetByKey"] = {} +defs["ImPool_GetByKey"][1] = {} +defs["ImPool_GetByKey"][1]["args"] = "(ImPool* self,ImGuiID key)" +defs["ImPool_GetByKey"][1]["argsT"] = {} +defs["ImPool_GetByKey"][1]["argsT"][1] = {} +defs["ImPool_GetByKey"][1]["argsT"][1]["name"] = "self" +defs["ImPool_GetByKey"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_GetByKey"][1]["argsT"][2] = {} +defs["ImPool_GetByKey"][1]["argsT"][2]["name"] = "key" +defs["ImPool_GetByKey"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImPool_GetByKey"][1]["argsoriginal"] = "(ImGuiID key)" +defs["ImPool_GetByKey"][1]["call_args"] = "(key)" +defs["ImPool_GetByKey"][1]["cimguiname"] = "ImPool_GetByKey" +defs["ImPool_GetByKey"][1]["defaults"] = {} +defs["ImPool_GetByKey"][1]["funcname"] = "GetByKey" +defs["ImPool_GetByKey"][1]["location"] = "imgui_internal:668" +defs["ImPool_GetByKey"][1]["ov_cimguiname"] = "ImPool_GetByKey" +defs["ImPool_GetByKey"][1]["ret"] = "T*" +defs["ImPool_GetByKey"][1]["signature"] = "(ImGuiID)" +defs["ImPool_GetByKey"][1]["stname"] = "ImPool" +defs["ImPool_GetByKey"][1]["templated"] = true +defs["ImPool_GetByKey"]["(ImGuiID)"] = defs["ImPool_GetByKey"][1] +defs["ImPool_GetIndex"] = {} +defs["ImPool_GetIndex"][1] = {} +defs["ImPool_GetIndex"][1]["args"] = "(ImPool* self,const T* p)" +defs["ImPool_GetIndex"][1]["argsT"] = {} +defs["ImPool_GetIndex"][1]["argsT"][1] = {} +defs["ImPool_GetIndex"][1]["argsT"][1]["name"] = "self" +defs["ImPool_GetIndex"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_GetIndex"][1]["argsT"][2] = {} +defs["ImPool_GetIndex"][1]["argsT"][2]["name"] = "p" +defs["ImPool_GetIndex"][1]["argsT"][2]["type"] = "const T*" +defs["ImPool_GetIndex"][1]["argsoriginal"] = "(const T* p)" +defs["ImPool_GetIndex"][1]["call_args"] = "(p)" +defs["ImPool_GetIndex"][1]["cimguiname"] = "ImPool_GetIndex" +defs["ImPool_GetIndex"][1]["defaults"] = {} +defs["ImPool_GetIndex"][1]["funcname"] = "GetIndex" +defs["ImPool_GetIndex"][1]["location"] = "imgui_internal:670" +defs["ImPool_GetIndex"][1]["ov_cimguiname"] = "ImPool_GetIndex" +defs["ImPool_GetIndex"][1]["ret"] = "ImPoolIdx" +defs["ImPool_GetIndex"][1]["signature"] = "(const T*)const" +defs["ImPool_GetIndex"][1]["stname"] = "ImPool" +defs["ImPool_GetIndex"][1]["templated"] = true +defs["ImPool_GetIndex"]["(const T*)const"] = defs["ImPool_GetIndex"][1] +defs["ImPool_GetMapSize"] = {} +defs["ImPool_GetMapSize"][1] = {} +defs["ImPool_GetMapSize"][1]["args"] = "(ImPool* self)" +defs["ImPool_GetMapSize"][1]["argsT"] = {} +defs["ImPool_GetMapSize"][1]["argsT"][1] = {} +defs["ImPool_GetMapSize"][1]["argsT"][1]["name"] = "self" +defs["ImPool_GetMapSize"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_GetMapSize"][1]["argsoriginal"] = "()" +defs["ImPool_GetMapSize"][1]["call_args"] = "()" +defs["ImPool_GetMapSize"][1]["cimguiname"] = "ImPool_GetMapSize" +defs["ImPool_GetMapSize"][1]["defaults"] = {} +defs["ImPool_GetMapSize"][1]["funcname"] = "GetMapSize" +defs["ImPool_GetMapSize"][1]["location"] = "imgui_internal:683" +defs["ImPool_GetMapSize"][1]["ov_cimguiname"] = "ImPool_GetMapSize" +defs["ImPool_GetMapSize"][1]["ret"] = "int" +defs["ImPool_GetMapSize"][1]["signature"] = "()const" +defs["ImPool_GetMapSize"][1]["stname"] = "ImPool" +defs["ImPool_GetMapSize"][1]["templated"] = true +defs["ImPool_GetMapSize"]["()const"] = defs["ImPool_GetMapSize"][1] +defs["ImPool_GetOrAddByKey"] = {} +defs["ImPool_GetOrAddByKey"][1] = {} +defs["ImPool_GetOrAddByKey"][1]["args"] = "(ImPool* self,ImGuiID key)" +defs["ImPool_GetOrAddByKey"][1]["argsT"] = {} +defs["ImPool_GetOrAddByKey"][1]["argsT"][1] = {} +defs["ImPool_GetOrAddByKey"][1]["argsT"][1]["name"] = "self" +defs["ImPool_GetOrAddByKey"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_GetOrAddByKey"][1]["argsT"][2] = {} +defs["ImPool_GetOrAddByKey"][1]["argsT"][2]["name"] = "key" +defs["ImPool_GetOrAddByKey"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImPool_GetOrAddByKey"][1]["argsoriginal"] = "(ImGuiID key)" +defs["ImPool_GetOrAddByKey"][1]["call_args"] = "(key)" +defs["ImPool_GetOrAddByKey"][1]["cimguiname"] = "ImPool_GetOrAddByKey" +defs["ImPool_GetOrAddByKey"][1]["defaults"] = {} +defs["ImPool_GetOrAddByKey"][1]["funcname"] = "GetOrAddByKey" +defs["ImPool_GetOrAddByKey"][1]["location"] = "imgui_internal:671" +defs["ImPool_GetOrAddByKey"][1]["ov_cimguiname"] = "ImPool_GetOrAddByKey" +defs["ImPool_GetOrAddByKey"][1]["ret"] = "T*" +defs["ImPool_GetOrAddByKey"][1]["signature"] = "(ImGuiID)" +defs["ImPool_GetOrAddByKey"][1]["stname"] = "ImPool" +defs["ImPool_GetOrAddByKey"][1]["templated"] = true +defs["ImPool_GetOrAddByKey"]["(ImGuiID)"] = defs["ImPool_GetOrAddByKey"][1] +defs["ImPool_ImPool"] = {} +defs["ImPool_ImPool"][1] = {} +defs["ImPool_ImPool"][1]["args"] = "()" +defs["ImPool_ImPool"][1]["argsT"] = {} +defs["ImPool_ImPool"][1]["argsoriginal"] = "()" +defs["ImPool_ImPool"][1]["call_args"] = "()" +defs["ImPool_ImPool"][1]["cimguiname"] = "ImPool_ImPool" +defs["ImPool_ImPool"][1]["constructor"] = true +defs["ImPool_ImPool"][1]["defaults"] = {} +defs["ImPool_ImPool"][1]["funcname"] = "ImPool" +defs["ImPool_ImPool"][1]["location"] = "imgui_internal:666" +defs["ImPool_ImPool"][1]["ov_cimguiname"] = "ImPool_ImPool" +defs["ImPool_ImPool"][1]["signature"] = "()" +defs["ImPool_ImPool"][1]["stname"] = "ImPool" +defs["ImPool_ImPool"][1]["templated"] = true +defs["ImPool_ImPool"]["()"] = defs["ImPool_ImPool"][1] +defs["ImPool_Remove"] = {} +defs["ImPool_Remove"][1] = {} +defs["ImPool_Remove"][1]["args"] = "(ImPool* self,ImGuiID key,const T* p)" +defs["ImPool_Remove"][1]["argsT"] = {} +defs["ImPool_Remove"][1]["argsT"][1] = {} +defs["ImPool_Remove"][1]["argsT"][1]["name"] = "self" +defs["ImPool_Remove"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_Remove"][1]["argsT"][2] = {} +defs["ImPool_Remove"][1]["argsT"][2]["name"] = "key" +defs["ImPool_Remove"][1]["argsT"][2]["type"] = "ImGuiID" +defs["ImPool_Remove"][1]["argsT"][3] = {} +defs["ImPool_Remove"][1]["argsT"][3]["name"] = "p" +defs["ImPool_Remove"][1]["argsT"][3]["type"] = "const T*" +defs["ImPool_Remove"][1]["argsoriginal"] = "(ImGuiID key,const T* p)" +defs["ImPool_Remove"][1]["call_args"] = "(key,p)" +defs["ImPool_Remove"][1]["cimguiname"] = "ImPool_Remove" +defs["ImPool_Remove"][1]["defaults"] = {} +defs["ImPool_Remove"][1]["funcname"] = "Remove" +defs["ImPool_Remove"][1]["location"] = "imgui_internal:675" +defs["ImPool_Remove"][1]["ov_cimguiname"] = "ImPool_Remove_TPtr" +defs["ImPool_Remove"][1]["ret"] = "void" +defs["ImPool_Remove"][1]["signature"] = "(ImGuiID,const T*)" +defs["ImPool_Remove"][1]["stname"] = "ImPool" +defs["ImPool_Remove"][1]["templated"] = true +defs["ImPool_Remove"][2] = {} +defs["ImPool_Remove"][2]["args"] = "(ImPool* self,ImGuiID key,ImPoolIdx idx)" +defs["ImPool_Remove"][2]["argsT"] = {} +defs["ImPool_Remove"][2]["argsT"][1] = {} +defs["ImPool_Remove"][2]["argsT"][1]["name"] = "self" +defs["ImPool_Remove"][2]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_Remove"][2]["argsT"][2] = {} +defs["ImPool_Remove"][2]["argsT"][2]["name"] = "key" +defs["ImPool_Remove"][2]["argsT"][2]["type"] = "ImGuiID" +defs["ImPool_Remove"][2]["argsT"][3] = {} +defs["ImPool_Remove"][2]["argsT"][3]["name"] = "idx" +defs["ImPool_Remove"][2]["argsT"][3]["type"] = "ImPoolIdx" +defs["ImPool_Remove"][2]["argsoriginal"] = "(ImGuiID key,ImPoolIdx idx)" +defs["ImPool_Remove"][2]["call_args"] = "(key,idx)" +defs["ImPool_Remove"][2]["cimguiname"] = "ImPool_Remove" +defs["ImPool_Remove"][2]["defaults"] = {} +defs["ImPool_Remove"][2]["funcname"] = "Remove" +defs["ImPool_Remove"][2]["location"] = "imgui_internal:676" +defs["ImPool_Remove"][2]["ov_cimguiname"] = "ImPool_Remove_PoolIdx" +defs["ImPool_Remove"][2]["ret"] = "void" +defs["ImPool_Remove"][2]["signature"] = "(ImGuiID,ImPoolIdx)" +defs["ImPool_Remove"][2]["stname"] = "ImPool" +defs["ImPool_Remove"][2]["templated"] = true +defs["ImPool_Remove"]["(ImGuiID,ImPoolIdx)"] = defs["ImPool_Remove"][2] +defs["ImPool_Remove"]["(ImGuiID,const T*)"] = defs["ImPool_Remove"][1] +defs["ImPool_Reserve"] = {} +defs["ImPool_Reserve"][1] = {} +defs["ImPool_Reserve"][1]["args"] = "(ImPool* self,int capacity)" +defs["ImPool_Reserve"][1]["argsT"] = {} +defs["ImPool_Reserve"][1]["argsT"][1] = {} +defs["ImPool_Reserve"][1]["argsT"][1]["name"] = "self" +defs["ImPool_Reserve"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_Reserve"][1]["argsT"][2] = {} +defs["ImPool_Reserve"][1]["argsT"][2]["name"] = "capacity" +defs["ImPool_Reserve"][1]["argsT"][2]["type"] = "int" +defs["ImPool_Reserve"][1]["argsoriginal"] = "(int capacity)" +defs["ImPool_Reserve"][1]["call_args"] = "(capacity)" +defs["ImPool_Reserve"][1]["cimguiname"] = "ImPool_Reserve" +defs["ImPool_Reserve"][1]["defaults"] = {} +defs["ImPool_Reserve"][1]["funcname"] = "Reserve" +defs["ImPool_Reserve"][1]["location"] = "imgui_internal:677" +defs["ImPool_Reserve"][1]["ov_cimguiname"] = "ImPool_Reserve" +defs["ImPool_Reserve"][1]["ret"] = "void" +defs["ImPool_Reserve"][1]["signature"] = "(int)" +defs["ImPool_Reserve"][1]["stname"] = "ImPool" +defs["ImPool_Reserve"][1]["templated"] = true +defs["ImPool_Reserve"]["(int)"] = defs["ImPool_Reserve"][1] +defs["ImPool_TryGetMapData"] = {} +defs["ImPool_TryGetMapData"][1] = {} +defs["ImPool_TryGetMapData"][1]["args"] = "(ImPool* self,ImPoolIdx n)" +defs["ImPool_TryGetMapData"][1]["argsT"] = {} +defs["ImPool_TryGetMapData"][1]["argsT"][1] = {} +defs["ImPool_TryGetMapData"][1]["argsT"][1]["name"] = "self" +defs["ImPool_TryGetMapData"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_TryGetMapData"][1]["argsT"][2] = {} +defs["ImPool_TryGetMapData"][1]["argsT"][2]["name"] = "n" +defs["ImPool_TryGetMapData"][1]["argsT"][2]["type"] = "ImPoolIdx" +defs["ImPool_TryGetMapData"][1]["argsoriginal"] = "(ImPoolIdx n)" +defs["ImPool_TryGetMapData"][1]["call_args"] = "(n)" +defs["ImPool_TryGetMapData"][1]["cimguiname"] = "ImPool_TryGetMapData" +defs["ImPool_TryGetMapData"][1]["defaults"] = {} +defs["ImPool_TryGetMapData"][1]["funcname"] = "TryGetMapData" +defs["ImPool_TryGetMapData"][1]["location"] = "imgui_internal:684" +defs["ImPool_TryGetMapData"][1]["ov_cimguiname"] = "ImPool_TryGetMapData" +defs["ImPool_TryGetMapData"][1]["ret"] = "T*" +defs["ImPool_TryGetMapData"][1]["signature"] = "(ImPoolIdx)" +defs["ImPool_TryGetMapData"][1]["stname"] = "ImPool" +defs["ImPool_TryGetMapData"][1]["templated"] = true +defs["ImPool_TryGetMapData"]["(ImPoolIdx)"] = defs["ImPool_TryGetMapData"][1] +defs["ImPool_destroy"] = {} +defs["ImPool_destroy"][1] = {} +defs["ImPool_destroy"][1]["args"] = "(ImPool* self)" +defs["ImPool_destroy"][1]["argsT"] = {} +defs["ImPool_destroy"][1]["argsT"][1] = {} +defs["ImPool_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImPool_destroy"][1]["argsT"][1]["type"] = "ImPool*" +defs["ImPool_destroy"][1]["call_args"] = "(self)" +defs["ImPool_destroy"][1]["cimguiname"] = "ImPool_destroy" +defs["ImPool_destroy"][1]["defaults"] = {} +defs["ImPool_destroy"][1]["destructor"] = true +defs["ImPool_destroy"][1]["location"] = "imgui_internal:667" +defs["ImPool_destroy"][1]["ov_cimguiname"] = "ImPool_destroy" +defs["ImPool_destroy"][1]["realdestructor"] = true +defs["ImPool_destroy"][1]["ret"] = "void" +defs["ImPool_destroy"][1]["signature"] = "(ImPool*)" +defs["ImPool_destroy"][1]["stname"] = "ImPool" +defs["ImPool_destroy"][1]["templated"] = true +defs["ImPool_destroy"]["(ImPool*)"] = defs["ImPool_destroy"][1] +defs["ImRect_Add"] = {} +defs["ImRect_Add"][1] = {} +defs["ImRect_Add"][1]["args"] = "(ImRect* self,const ImVec2 p)" +defs["ImRect_Add"][1]["argsT"] = {} +defs["ImRect_Add"][1]["argsT"][1] = {} +defs["ImRect_Add"][1]["argsT"][1]["name"] = "self" +defs["ImRect_Add"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_Add"][1]["argsT"][2] = {} +defs["ImRect_Add"][1]["argsT"][2]["name"] = "p" +defs["ImRect_Add"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImRect_Add"][1]["argsoriginal"] = "(const ImVec2& p)" +defs["ImRect_Add"][1]["call_args"] = "(p)" +defs["ImRect_Add"][1]["cimguiname"] = "ImRect_Add" +defs["ImRect_Add"][1]["defaults"] = {} +defs["ImRect_Add"][1]["funcname"] = "Add" +defs["ImRect_Add"][1]["location"] = "imgui_internal:543" +defs["ImRect_Add"][1]["ov_cimguiname"] = "ImRect_Add_Vec2" +defs["ImRect_Add"][1]["ret"] = "void" +defs["ImRect_Add"][1]["signature"] = "(const ImVec2)" +defs["ImRect_Add"][1]["stname"] = "ImRect" +defs["ImRect_Add"][2] = {} +defs["ImRect_Add"][2]["args"] = "(ImRect* self,const ImRect r)" +defs["ImRect_Add"][2]["argsT"] = {} +defs["ImRect_Add"][2]["argsT"][1] = {} +defs["ImRect_Add"][2]["argsT"][1]["name"] = "self" +defs["ImRect_Add"][2]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_Add"][2]["argsT"][2] = {} +defs["ImRect_Add"][2]["argsT"][2]["name"] = "r" +defs["ImRect_Add"][2]["argsT"][2]["type"] = "const ImRect" +defs["ImRect_Add"][2]["argsoriginal"] = "(const ImRect& r)" +defs["ImRect_Add"][2]["call_args"] = "(r)" +defs["ImRect_Add"][2]["cimguiname"] = "ImRect_Add" +defs["ImRect_Add"][2]["defaults"] = {} +defs["ImRect_Add"][2]["funcname"] = "Add" +defs["ImRect_Add"][2]["location"] = "imgui_internal:544" +defs["ImRect_Add"][2]["ov_cimguiname"] = "ImRect_Add_Rect" +defs["ImRect_Add"][2]["ret"] = "void" +defs["ImRect_Add"][2]["signature"] = "(const ImRect)" +defs["ImRect_Add"][2]["stname"] = "ImRect" +defs["ImRect_Add"]["(const ImRect)"] = defs["ImRect_Add"][2] +defs["ImRect_Add"]["(const ImVec2)"] = defs["ImRect_Add"][1] +defs["ImRect_ClipWith"] = {} +defs["ImRect_ClipWith"][1] = {} +defs["ImRect_ClipWith"][1]["args"] = "(ImRect* self,const ImRect r)" +defs["ImRect_ClipWith"][1]["argsT"] = {} +defs["ImRect_ClipWith"][1]["argsT"][1] = {} +defs["ImRect_ClipWith"][1]["argsT"][1]["name"] = "self" +defs["ImRect_ClipWith"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_ClipWith"][1]["argsT"][2] = {} +defs["ImRect_ClipWith"][1]["argsT"][2]["name"] = "r" +defs["ImRect_ClipWith"][1]["argsT"][2]["type"] = "const ImRect" +defs["ImRect_ClipWith"][1]["argsoriginal"] = "(const ImRect& r)" +defs["ImRect_ClipWith"][1]["call_args"] = "(r)" +defs["ImRect_ClipWith"][1]["cimguiname"] = "ImRect_ClipWith" +defs["ImRect_ClipWith"][1]["defaults"] = {} +defs["ImRect_ClipWith"][1]["funcname"] = "ClipWith" +defs["ImRect_ClipWith"][1]["location"] = "imgui_internal:550" +defs["ImRect_ClipWith"][1]["ov_cimguiname"] = "ImRect_ClipWith" +defs["ImRect_ClipWith"][1]["ret"] = "void" +defs["ImRect_ClipWith"][1]["signature"] = "(const ImRect)" +defs["ImRect_ClipWith"][1]["stname"] = "ImRect" +defs["ImRect_ClipWith"]["(const ImRect)"] = defs["ImRect_ClipWith"][1] +defs["ImRect_ClipWithFull"] = {} +defs["ImRect_ClipWithFull"][1] = {} +defs["ImRect_ClipWithFull"][1]["args"] = "(ImRect* self,const ImRect r)" +defs["ImRect_ClipWithFull"][1]["argsT"] = {} +defs["ImRect_ClipWithFull"][1]["argsT"][1] = {} +defs["ImRect_ClipWithFull"][1]["argsT"][1]["name"] = "self" +defs["ImRect_ClipWithFull"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_ClipWithFull"][1]["argsT"][2] = {} +defs["ImRect_ClipWithFull"][1]["argsT"][2]["name"] = "r" +defs["ImRect_ClipWithFull"][1]["argsT"][2]["type"] = "const ImRect" +defs["ImRect_ClipWithFull"][1]["argsoriginal"] = "(const ImRect& r)" +defs["ImRect_ClipWithFull"][1]["call_args"] = "(r)" +defs["ImRect_ClipWithFull"][1]["cimguiname"] = "ImRect_ClipWithFull" +defs["ImRect_ClipWithFull"][1]["defaults"] = {} +defs["ImRect_ClipWithFull"][1]["funcname"] = "ClipWithFull" +defs["ImRect_ClipWithFull"][1]["location"] = "imgui_internal:551" +defs["ImRect_ClipWithFull"][1]["ov_cimguiname"] = "ImRect_ClipWithFull" +defs["ImRect_ClipWithFull"][1]["ret"] = "void" +defs["ImRect_ClipWithFull"][1]["signature"] = "(const ImRect)" +defs["ImRect_ClipWithFull"][1]["stname"] = "ImRect" +defs["ImRect_ClipWithFull"]["(const ImRect)"] = defs["ImRect_ClipWithFull"][1] +defs["ImRect_Contains"] = {} +defs["ImRect_Contains"][1] = {} +defs["ImRect_Contains"][1]["args"] = "(ImRect* self,const ImVec2 p)" +defs["ImRect_Contains"][1]["argsT"] = {} +defs["ImRect_Contains"][1]["argsT"][1] = {} +defs["ImRect_Contains"][1]["argsT"][1]["name"] = "self" +defs["ImRect_Contains"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_Contains"][1]["argsT"][2] = {} +defs["ImRect_Contains"][1]["argsT"][2]["name"] = "p" +defs["ImRect_Contains"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImRect_Contains"][1]["argsoriginal"] = "(const ImVec2& p)" +defs["ImRect_Contains"][1]["call_args"] = "(p)" +defs["ImRect_Contains"][1]["cimguiname"] = "ImRect_Contains" +defs["ImRect_Contains"][1]["defaults"] = {} +defs["ImRect_Contains"][1]["funcname"] = "Contains" +defs["ImRect_Contains"][1]["location"] = "imgui_internal:540" +defs["ImRect_Contains"][1]["ov_cimguiname"] = "ImRect_Contains_Vec2" +defs["ImRect_Contains"][1]["ret"] = "bool" +defs["ImRect_Contains"][1]["signature"] = "(const ImVec2)const" +defs["ImRect_Contains"][1]["stname"] = "ImRect" +defs["ImRect_Contains"][2] = {} +defs["ImRect_Contains"][2]["args"] = "(ImRect* self,const ImRect r)" +defs["ImRect_Contains"][2]["argsT"] = {} +defs["ImRect_Contains"][2]["argsT"][1] = {} +defs["ImRect_Contains"][2]["argsT"][1]["name"] = "self" +defs["ImRect_Contains"][2]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_Contains"][2]["argsT"][2] = {} +defs["ImRect_Contains"][2]["argsT"][2]["name"] = "r" +defs["ImRect_Contains"][2]["argsT"][2]["type"] = "const ImRect" +defs["ImRect_Contains"][2]["argsoriginal"] = "(const ImRect& r)" +defs["ImRect_Contains"][2]["call_args"] = "(r)" +defs["ImRect_Contains"][2]["cimguiname"] = "ImRect_Contains" +defs["ImRect_Contains"][2]["defaults"] = {} +defs["ImRect_Contains"][2]["funcname"] = "Contains" +defs["ImRect_Contains"][2]["location"] = "imgui_internal:541" +defs["ImRect_Contains"][2]["ov_cimguiname"] = "ImRect_Contains_Rect" +defs["ImRect_Contains"][2]["ret"] = "bool" +defs["ImRect_Contains"][2]["signature"] = "(const ImRect)const" +defs["ImRect_Contains"][2]["stname"] = "ImRect" +defs["ImRect_Contains"]["(const ImRect)const"] = defs["ImRect_Contains"][2] +defs["ImRect_Contains"]["(const ImVec2)const"] = defs["ImRect_Contains"][1] +defs["ImRect_Expand"] = {} +defs["ImRect_Expand"][1] = {} +defs["ImRect_Expand"][1]["args"] = "(ImRect* self,const float amount)" +defs["ImRect_Expand"][1]["argsT"] = {} +defs["ImRect_Expand"][1]["argsT"][1] = {} +defs["ImRect_Expand"][1]["argsT"][1]["name"] = "self" +defs["ImRect_Expand"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_Expand"][1]["argsT"][2] = {} +defs["ImRect_Expand"][1]["argsT"][2]["name"] = "amount" +defs["ImRect_Expand"][1]["argsT"][2]["type"] = "const float" +defs["ImRect_Expand"][1]["argsoriginal"] = "(const float amount)" +defs["ImRect_Expand"][1]["call_args"] = "(amount)" +defs["ImRect_Expand"][1]["cimguiname"] = "ImRect_Expand" +defs["ImRect_Expand"][1]["defaults"] = {} +defs["ImRect_Expand"][1]["funcname"] = "Expand" +defs["ImRect_Expand"][1]["location"] = "imgui_internal:545" +defs["ImRect_Expand"][1]["ov_cimguiname"] = "ImRect_Expand_Float" +defs["ImRect_Expand"][1]["ret"] = "void" +defs["ImRect_Expand"][1]["signature"] = "(const float)" +defs["ImRect_Expand"][1]["stname"] = "ImRect" +defs["ImRect_Expand"][2] = {} +defs["ImRect_Expand"][2]["args"] = "(ImRect* self,const ImVec2 amount)" +defs["ImRect_Expand"][2]["argsT"] = {} +defs["ImRect_Expand"][2]["argsT"][1] = {} +defs["ImRect_Expand"][2]["argsT"][1]["name"] = "self" +defs["ImRect_Expand"][2]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_Expand"][2]["argsT"][2] = {} +defs["ImRect_Expand"][2]["argsT"][2]["name"] = "amount" +defs["ImRect_Expand"][2]["argsT"][2]["type"] = "const ImVec2" +defs["ImRect_Expand"][2]["argsoriginal"] = "(const ImVec2& amount)" +defs["ImRect_Expand"][2]["call_args"] = "(amount)" +defs["ImRect_Expand"][2]["cimguiname"] = "ImRect_Expand" +defs["ImRect_Expand"][2]["defaults"] = {} +defs["ImRect_Expand"][2]["funcname"] = "Expand" +defs["ImRect_Expand"][2]["location"] = "imgui_internal:546" +defs["ImRect_Expand"][2]["ov_cimguiname"] = "ImRect_Expand_Vec2" +defs["ImRect_Expand"][2]["ret"] = "void" +defs["ImRect_Expand"][2]["signature"] = "(const ImVec2)" +defs["ImRect_Expand"][2]["stname"] = "ImRect" +defs["ImRect_Expand"]["(const ImVec2)"] = defs["ImRect_Expand"][2] +defs["ImRect_Expand"]["(const float)"] = defs["ImRect_Expand"][1] +defs["ImRect_Floor"] = {} +defs["ImRect_Floor"][1] = {} +defs["ImRect_Floor"][1]["args"] = "(ImRect* self)" +defs["ImRect_Floor"][1]["argsT"] = {} +defs["ImRect_Floor"][1]["argsT"][1] = {} +defs["ImRect_Floor"][1]["argsT"][1]["name"] = "self" +defs["ImRect_Floor"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_Floor"][1]["argsoriginal"] = "()" +defs["ImRect_Floor"][1]["call_args"] = "()" +defs["ImRect_Floor"][1]["cimguiname"] = "ImRect_Floor" +defs["ImRect_Floor"][1]["defaults"] = {} +defs["ImRect_Floor"][1]["funcname"] = "Floor" +defs["ImRect_Floor"][1]["location"] = "imgui_internal:552" +defs["ImRect_Floor"][1]["ov_cimguiname"] = "ImRect_Floor" +defs["ImRect_Floor"][1]["ret"] = "void" +defs["ImRect_Floor"][1]["signature"] = "()" +defs["ImRect_Floor"][1]["stname"] = "ImRect" +defs["ImRect_Floor"]["()"] = defs["ImRect_Floor"][1] +defs["ImRect_GetArea"] = {} +defs["ImRect_GetArea"][1] = {} +defs["ImRect_GetArea"][1]["args"] = "(ImRect* self)" +defs["ImRect_GetArea"][1]["argsT"] = {} +defs["ImRect_GetArea"][1]["argsT"][1] = {} +defs["ImRect_GetArea"][1]["argsT"][1]["name"] = "self" +defs["ImRect_GetArea"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_GetArea"][1]["argsoriginal"] = "()" +defs["ImRect_GetArea"][1]["call_args"] = "()" +defs["ImRect_GetArea"][1]["cimguiname"] = "ImRect_GetArea" +defs["ImRect_GetArea"][1]["defaults"] = {} +defs["ImRect_GetArea"][1]["funcname"] = "GetArea" +defs["ImRect_GetArea"][1]["location"] = "imgui_internal:535" +defs["ImRect_GetArea"][1]["ov_cimguiname"] = "ImRect_GetArea" +defs["ImRect_GetArea"][1]["ret"] = "float" +defs["ImRect_GetArea"][1]["signature"] = "()const" +defs["ImRect_GetArea"][1]["stname"] = "ImRect" +defs["ImRect_GetArea"]["()const"] = defs["ImRect_GetArea"][1] +defs["ImRect_GetBL"] = {} +defs["ImRect_GetBL"][1] = {} +defs["ImRect_GetBL"][1]["args"] = "(ImVec2 *pOut,ImRect* self)" +defs["ImRect_GetBL"][1]["argsT"] = {} +defs["ImRect_GetBL"][1]["argsT"][1] = {} +defs["ImRect_GetBL"][1]["argsT"][1]["name"] = "pOut" +defs["ImRect_GetBL"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImRect_GetBL"][1]["argsT"][2] = {} +defs["ImRect_GetBL"][1]["argsT"][2]["name"] = "self" +defs["ImRect_GetBL"][1]["argsT"][2]["type"] = "ImRect*" +defs["ImRect_GetBL"][1]["argsoriginal"] = "()" +defs["ImRect_GetBL"][1]["call_args"] = "()" +defs["ImRect_GetBL"][1]["cimguiname"] = "ImRect_GetBL" +defs["ImRect_GetBL"][1]["defaults"] = {} +defs["ImRect_GetBL"][1]["funcname"] = "GetBL" +defs["ImRect_GetBL"][1]["location"] = "imgui_internal:538" +defs["ImRect_GetBL"][1]["nonUDT"] = 1 +defs["ImRect_GetBL"][1]["ov_cimguiname"] = "ImRect_GetBL" +defs["ImRect_GetBL"][1]["ret"] = "void" +defs["ImRect_GetBL"][1]["signature"] = "()const" +defs["ImRect_GetBL"][1]["stname"] = "ImRect" +defs["ImRect_GetBL"]["()const"] = defs["ImRect_GetBL"][1] +defs["ImRect_GetBR"] = {} +defs["ImRect_GetBR"][1] = {} +defs["ImRect_GetBR"][1]["args"] = "(ImVec2 *pOut,ImRect* self)" +defs["ImRect_GetBR"][1]["argsT"] = {} +defs["ImRect_GetBR"][1]["argsT"][1] = {} +defs["ImRect_GetBR"][1]["argsT"][1]["name"] = "pOut" +defs["ImRect_GetBR"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImRect_GetBR"][1]["argsT"][2] = {} +defs["ImRect_GetBR"][1]["argsT"][2]["name"] = "self" +defs["ImRect_GetBR"][1]["argsT"][2]["type"] = "ImRect*" +defs["ImRect_GetBR"][1]["argsoriginal"] = "()" +defs["ImRect_GetBR"][1]["call_args"] = "()" +defs["ImRect_GetBR"][1]["cimguiname"] = "ImRect_GetBR" +defs["ImRect_GetBR"][1]["defaults"] = {} +defs["ImRect_GetBR"][1]["funcname"] = "GetBR" +defs["ImRect_GetBR"][1]["location"] = "imgui_internal:539" +defs["ImRect_GetBR"][1]["nonUDT"] = 1 +defs["ImRect_GetBR"][1]["ov_cimguiname"] = "ImRect_GetBR" +defs["ImRect_GetBR"][1]["ret"] = "void" +defs["ImRect_GetBR"][1]["signature"] = "()const" +defs["ImRect_GetBR"][1]["stname"] = "ImRect" +defs["ImRect_GetBR"]["()const"] = defs["ImRect_GetBR"][1] +defs["ImRect_GetCenter"] = {} +defs["ImRect_GetCenter"][1] = {} +defs["ImRect_GetCenter"][1]["args"] = "(ImVec2 *pOut,ImRect* self)" +defs["ImRect_GetCenter"][1]["argsT"] = {} +defs["ImRect_GetCenter"][1]["argsT"][1] = {} +defs["ImRect_GetCenter"][1]["argsT"][1]["name"] = "pOut" +defs["ImRect_GetCenter"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImRect_GetCenter"][1]["argsT"][2] = {} +defs["ImRect_GetCenter"][1]["argsT"][2]["name"] = "self" +defs["ImRect_GetCenter"][1]["argsT"][2]["type"] = "ImRect*" +defs["ImRect_GetCenter"][1]["argsoriginal"] = "()" +defs["ImRect_GetCenter"][1]["call_args"] = "()" +defs["ImRect_GetCenter"][1]["cimguiname"] = "ImRect_GetCenter" +defs["ImRect_GetCenter"][1]["defaults"] = {} +defs["ImRect_GetCenter"][1]["funcname"] = "GetCenter" +defs["ImRect_GetCenter"][1]["location"] = "imgui_internal:531" +defs["ImRect_GetCenter"][1]["nonUDT"] = 1 +defs["ImRect_GetCenter"][1]["ov_cimguiname"] = "ImRect_GetCenter" +defs["ImRect_GetCenter"][1]["ret"] = "void" +defs["ImRect_GetCenter"][1]["signature"] = "()const" +defs["ImRect_GetCenter"][1]["stname"] = "ImRect" +defs["ImRect_GetCenter"]["()const"] = defs["ImRect_GetCenter"][1] +defs["ImRect_GetHeight"] = {} +defs["ImRect_GetHeight"][1] = {} +defs["ImRect_GetHeight"][1]["args"] = "(ImRect* self)" +defs["ImRect_GetHeight"][1]["argsT"] = {} +defs["ImRect_GetHeight"][1]["argsT"][1] = {} +defs["ImRect_GetHeight"][1]["argsT"][1]["name"] = "self" +defs["ImRect_GetHeight"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_GetHeight"][1]["argsoriginal"] = "()" +defs["ImRect_GetHeight"][1]["call_args"] = "()" +defs["ImRect_GetHeight"][1]["cimguiname"] = "ImRect_GetHeight" +defs["ImRect_GetHeight"][1]["defaults"] = {} +defs["ImRect_GetHeight"][1]["funcname"] = "GetHeight" +defs["ImRect_GetHeight"][1]["location"] = "imgui_internal:534" +defs["ImRect_GetHeight"][1]["ov_cimguiname"] = "ImRect_GetHeight" +defs["ImRect_GetHeight"][1]["ret"] = "float" +defs["ImRect_GetHeight"][1]["signature"] = "()const" +defs["ImRect_GetHeight"][1]["stname"] = "ImRect" +defs["ImRect_GetHeight"]["()const"] = defs["ImRect_GetHeight"][1] +defs["ImRect_GetSize"] = {} +defs["ImRect_GetSize"][1] = {} +defs["ImRect_GetSize"][1]["args"] = "(ImVec2 *pOut,ImRect* self)" +defs["ImRect_GetSize"][1]["argsT"] = {} +defs["ImRect_GetSize"][1]["argsT"][1] = {} +defs["ImRect_GetSize"][1]["argsT"][1]["name"] = "pOut" +defs["ImRect_GetSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImRect_GetSize"][1]["argsT"][2] = {} +defs["ImRect_GetSize"][1]["argsT"][2]["name"] = "self" +defs["ImRect_GetSize"][1]["argsT"][2]["type"] = "ImRect*" +defs["ImRect_GetSize"][1]["argsoriginal"] = "()" +defs["ImRect_GetSize"][1]["call_args"] = "()" +defs["ImRect_GetSize"][1]["cimguiname"] = "ImRect_GetSize" +defs["ImRect_GetSize"][1]["defaults"] = {} +defs["ImRect_GetSize"][1]["funcname"] = "GetSize" +defs["ImRect_GetSize"][1]["location"] = "imgui_internal:532" +defs["ImRect_GetSize"][1]["nonUDT"] = 1 +defs["ImRect_GetSize"][1]["ov_cimguiname"] = "ImRect_GetSize" +defs["ImRect_GetSize"][1]["ret"] = "void" +defs["ImRect_GetSize"][1]["signature"] = "()const" +defs["ImRect_GetSize"][1]["stname"] = "ImRect" +defs["ImRect_GetSize"]["()const"] = defs["ImRect_GetSize"][1] +defs["ImRect_GetTL"] = {} +defs["ImRect_GetTL"][1] = {} +defs["ImRect_GetTL"][1]["args"] = "(ImVec2 *pOut,ImRect* self)" +defs["ImRect_GetTL"][1]["argsT"] = {} +defs["ImRect_GetTL"][1]["argsT"][1] = {} +defs["ImRect_GetTL"][1]["argsT"][1]["name"] = "pOut" +defs["ImRect_GetTL"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImRect_GetTL"][1]["argsT"][2] = {} +defs["ImRect_GetTL"][1]["argsT"][2]["name"] = "self" +defs["ImRect_GetTL"][1]["argsT"][2]["type"] = "ImRect*" +defs["ImRect_GetTL"][1]["argsoriginal"] = "()" +defs["ImRect_GetTL"][1]["call_args"] = "()" +defs["ImRect_GetTL"][1]["cimguiname"] = "ImRect_GetTL" +defs["ImRect_GetTL"][1]["defaults"] = {} +defs["ImRect_GetTL"][1]["funcname"] = "GetTL" +defs["ImRect_GetTL"][1]["location"] = "imgui_internal:536" +defs["ImRect_GetTL"][1]["nonUDT"] = 1 +defs["ImRect_GetTL"][1]["ov_cimguiname"] = "ImRect_GetTL" +defs["ImRect_GetTL"][1]["ret"] = "void" +defs["ImRect_GetTL"][1]["signature"] = "()const" +defs["ImRect_GetTL"][1]["stname"] = "ImRect" +defs["ImRect_GetTL"]["()const"] = defs["ImRect_GetTL"][1] +defs["ImRect_GetTR"] = {} +defs["ImRect_GetTR"][1] = {} +defs["ImRect_GetTR"][1]["args"] = "(ImVec2 *pOut,ImRect* self)" +defs["ImRect_GetTR"][1]["argsT"] = {} +defs["ImRect_GetTR"][1]["argsT"][1] = {} +defs["ImRect_GetTR"][1]["argsT"][1]["name"] = "pOut" +defs["ImRect_GetTR"][1]["argsT"][1]["type"] = "ImVec2*" +defs["ImRect_GetTR"][1]["argsT"][2] = {} +defs["ImRect_GetTR"][1]["argsT"][2]["name"] = "self" +defs["ImRect_GetTR"][1]["argsT"][2]["type"] = "ImRect*" +defs["ImRect_GetTR"][1]["argsoriginal"] = "()" +defs["ImRect_GetTR"][1]["call_args"] = "()" +defs["ImRect_GetTR"][1]["cimguiname"] = "ImRect_GetTR" +defs["ImRect_GetTR"][1]["defaults"] = {} +defs["ImRect_GetTR"][1]["funcname"] = "GetTR" +defs["ImRect_GetTR"][1]["location"] = "imgui_internal:537" +defs["ImRect_GetTR"][1]["nonUDT"] = 1 +defs["ImRect_GetTR"][1]["ov_cimguiname"] = "ImRect_GetTR" +defs["ImRect_GetTR"][1]["ret"] = "void" +defs["ImRect_GetTR"][1]["signature"] = "()const" +defs["ImRect_GetTR"][1]["stname"] = "ImRect" +defs["ImRect_GetTR"]["()const"] = defs["ImRect_GetTR"][1] +defs["ImRect_GetWidth"] = {} +defs["ImRect_GetWidth"][1] = {} +defs["ImRect_GetWidth"][1]["args"] = "(ImRect* self)" +defs["ImRect_GetWidth"][1]["argsT"] = {} +defs["ImRect_GetWidth"][1]["argsT"][1] = {} +defs["ImRect_GetWidth"][1]["argsT"][1]["name"] = "self" +defs["ImRect_GetWidth"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_GetWidth"][1]["argsoriginal"] = "()" +defs["ImRect_GetWidth"][1]["call_args"] = "()" +defs["ImRect_GetWidth"][1]["cimguiname"] = "ImRect_GetWidth" +defs["ImRect_GetWidth"][1]["defaults"] = {} +defs["ImRect_GetWidth"][1]["funcname"] = "GetWidth" +defs["ImRect_GetWidth"][1]["location"] = "imgui_internal:533" +defs["ImRect_GetWidth"][1]["ov_cimguiname"] = "ImRect_GetWidth" +defs["ImRect_GetWidth"][1]["ret"] = "float" +defs["ImRect_GetWidth"][1]["signature"] = "()const" +defs["ImRect_GetWidth"][1]["stname"] = "ImRect" +defs["ImRect_GetWidth"]["()const"] = defs["ImRect_GetWidth"][1] +defs["ImRect_ImRect"] = {} +defs["ImRect_ImRect"][1] = {} +defs["ImRect_ImRect"][1]["args"] = "()" +defs["ImRect_ImRect"][1]["argsT"] = {} +defs["ImRect_ImRect"][1]["argsoriginal"] = "()" +defs["ImRect_ImRect"][1]["call_args"] = "()" +defs["ImRect_ImRect"][1]["cimguiname"] = "ImRect_ImRect" +defs["ImRect_ImRect"][1]["constructor"] = true +defs["ImRect_ImRect"][1]["defaults"] = {} +defs["ImRect_ImRect"][1]["funcname"] = "ImRect" +defs["ImRect_ImRect"][1]["location"] = "imgui_internal:526" +defs["ImRect_ImRect"][1]["ov_cimguiname"] = "ImRect_ImRect_Nil" +defs["ImRect_ImRect"][1]["signature"] = "()" +defs["ImRect_ImRect"][1]["stname"] = "ImRect" +defs["ImRect_ImRect"][2] = {} +defs["ImRect_ImRect"][2]["args"] = "(const ImVec2 min,const ImVec2 max)" +defs["ImRect_ImRect"][2]["argsT"] = {} +defs["ImRect_ImRect"][2]["argsT"][1] = {} +defs["ImRect_ImRect"][2]["argsT"][1]["name"] = "min" +defs["ImRect_ImRect"][2]["argsT"][1]["type"] = "const ImVec2" +defs["ImRect_ImRect"][2]["argsT"][2] = {} +defs["ImRect_ImRect"][2]["argsT"][2]["name"] = "max" +defs["ImRect_ImRect"][2]["argsT"][2]["type"] = "const ImVec2" +defs["ImRect_ImRect"][2]["argsoriginal"] = "(const ImVec2& min,const ImVec2& max)" +defs["ImRect_ImRect"][2]["call_args"] = "(min,max)" +defs["ImRect_ImRect"][2]["cimguiname"] = "ImRect_ImRect" +defs["ImRect_ImRect"][2]["constructor"] = true +defs["ImRect_ImRect"][2]["defaults"] = {} +defs["ImRect_ImRect"][2]["funcname"] = "ImRect" +defs["ImRect_ImRect"][2]["location"] = "imgui_internal:527" +defs["ImRect_ImRect"][2]["ov_cimguiname"] = "ImRect_ImRect_Vec2" +defs["ImRect_ImRect"][2]["signature"] = "(const ImVec2,const ImVec2)" +defs["ImRect_ImRect"][2]["stname"] = "ImRect" +defs["ImRect_ImRect"][3] = {} +defs["ImRect_ImRect"][3]["args"] = "(const ImVec4 v)" +defs["ImRect_ImRect"][3]["argsT"] = {} +defs["ImRect_ImRect"][3]["argsT"][1] = {} +defs["ImRect_ImRect"][3]["argsT"][1]["name"] = "v" +defs["ImRect_ImRect"][3]["argsT"][1]["type"] = "const ImVec4" +defs["ImRect_ImRect"][3]["argsoriginal"] = "(const ImVec4& v)" +defs["ImRect_ImRect"][3]["call_args"] = "(v)" +defs["ImRect_ImRect"][3]["cimguiname"] = "ImRect_ImRect" +defs["ImRect_ImRect"][3]["constructor"] = true +defs["ImRect_ImRect"][3]["defaults"] = {} +defs["ImRect_ImRect"][3]["funcname"] = "ImRect" +defs["ImRect_ImRect"][3]["location"] = "imgui_internal:528" +defs["ImRect_ImRect"][3]["ov_cimguiname"] = "ImRect_ImRect_Vec4" +defs["ImRect_ImRect"][3]["signature"] = "(const ImVec4)" +defs["ImRect_ImRect"][3]["stname"] = "ImRect" +defs["ImRect_ImRect"][4] = {} +defs["ImRect_ImRect"][4]["args"] = "(float x1,float y1,float x2,float y2)" +defs["ImRect_ImRect"][4]["argsT"] = {} +defs["ImRect_ImRect"][4]["argsT"][1] = {} +defs["ImRect_ImRect"][4]["argsT"][1]["name"] = "x1" +defs["ImRect_ImRect"][4]["argsT"][1]["type"] = "float" +defs["ImRect_ImRect"][4]["argsT"][2] = {} +defs["ImRect_ImRect"][4]["argsT"][2]["name"] = "y1" +defs["ImRect_ImRect"][4]["argsT"][2]["type"] = "float" +defs["ImRect_ImRect"][4]["argsT"][3] = {} +defs["ImRect_ImRect"][4]["argsT"][3]["name"] = "x2" +defs["ImRect_ImRect"][4]["argsT"][3]["type"] = "float" +defs["ImRect_ImRect"][4]["argsT"][4] = {} +defs["ImRect_ImRect"][4]["argsT"][4]["name"] = "y2" +defs["ImRect_ImRect"][4]["argsT"][4]["type"] = "float" +defs["ImRect_ImRect"][4]["argsoriginal"] = "(float x1,float y1,float x2,float y2)" +defs["ImRect_ImRect"][4]["call_args"] = "(x1,y1,x2,y2)" +defs["ImRect_ImRect"][4]["cimguiname"] = "ImRect_ImRect" +defs["ImRect_ImRect"][4]["constructor"] = true +defs["ImRect_ImRect"][4]["defaults"] = {} +defs["ImRect_ImRect"][4]["funcname"] = "ImRect" +defs["ImRect_ImRect"][4]["location"] = "imgui_internal:529" +defs["ImRect_ImRect"][4]["ov_cimguiname"] = "ImRect_ImRect_Float" +defs["ImRect_ImRect"][4]["signature"] = "(float,float,float,float)" +defs["ImRect_ImRect"][4]["stname"] = "ImRect" +defs["ImRect_ImRect"]["()"] = defs["ImRect_ImRect"][1] +defs["ImRect_ImRect"]["(const ImVec2,const ImVec2)"] = defs["ImRect_ImRect"][2] +defs["ImRect_ImRect"]["(const ImVec4)"] = defs["ImRect_ImRect"][3] +defs["ImRect_ImRect"]["(float,float,float,float)"] = defs["ImRect_ImRect"][4] +defs["ImRect_IsInverted"] = {} +defs["ImRect_IsInverted"][1] = {} +defs["ImRect_IsInverted"][1]["args"] = "(ImRect* self)" +defs["ImRect_IsInverted"][1]["argsT"] = {} +defs["ImRect_IsInverted"][1]["argsT"][1] = {} +defs["ImRect_IsInverted"][1]["argsT"][1]["name"] = "self" +defs["ImRect_IsInverted"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_IsInverted"][1]["argsoriginal"] = "()" +defs["ImRect_IsInverted"][1]["call_args"] = "()" +defs["ImRect_IsInverted"][1]["cimguiname"] = "ImRect_IsInverted" +defs["ImRect_IsInverted"][1]["defaults"] = {} +defs["ImRect_IsInverted"][1]["funcname"] = "IsInverted" +defs["ImRect_IsInverted"][1]["location"] = "imgui_internal:553" +defs["ImRect_IsInverted"][1]["ov_cimguiname"] = "ImRect_IsInverted" +defs["ImRect_IsInverted"][1]["ret"] = "bool" +defs["ImRect_IsInverted"][1]["signature"] = "()const" +defs["ImRect_IsInverted"][1]["stname"] = "ImRect" +defs["ImRect_IsInverted"]["()const"] = defs["ImRect_IsInverted"][1] +defs["ImRect_Overlaps"] = {} +defs["ImRect_Overlaps"][1] = {} +defs["ImRect_Overlaps"][1]["args"] = "(ImRect* self,const ImRect r)" +defs["ImRect_Overlaps"][1]["argsT"] = {} +defs["ImRect_Overlaps"][1]["argsT"][1] = {} +defs["ImRect_Overlaps"][1]["argsT"][1]["name"] = "self" +defs["ImRect_Overlaps"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_Overlaps"][1]["argsT"][2] = {} +defs["ImRect_Overlaps"][1]["argsT"][2]["name"] = "r" +defs["ImRect_Overlaps"][1]["argsT"][2]["type"] = "const ImRect" +defs["ImRect_Overlaps"][1]["argsoriginal"] = "(const ImRect& r)" +defs["ImRect_Overlaps"][1]["call_args"] = "(r)" +defs["ImRect_Overlaps"][1]["cimguiname"] = "ImRect_Overlaps" +defs["ImRect_Overlaps"][1]["defaults"] = {} +defs["ImRect_Overlaps"][1]["funcname"] = "Overlaps" +defs["ImRect_Overlaps"][1]["location"] = "imgui_internal:542" +defs["ImRect_Overlaps"][1]["ov_cimguiname"] = "ImRect_Overlaps" +defs["ImRect_Overlaps"][1]["ret"] = "bool" +defs["ImRect_Overlaps"][1]["signature"] = "(const ImRect)const" +defs["ImRect_Overlaps"][1]["stname"] = "ImRect" +defs["ImRect_Overlaps"]["(const ImRect)const"] = defs["ImRect_Overlaps"][1] +defs["ImRect_ToVec4"] = {} +defs["ImRect_ToVec4"][1] = {} +defs["ImRect_ToVec4"][1]["args"] = "(ImVec4 *pOut,ImRect* self)" +defs["ImRect_ToVec4"][1]["argsT"] = {} +defs["ImRect_ToVec4"][1]["argsT"][1] = {} +defs["ImRect_ToVec4"][1]["argsT"][1]["name"] = "pOut" +defs["ImRect_ToVec4"][1]["argsT"][1]["type"] = "ImVec4*" +defs["ImRect_ToVec4"][1]["argsT"][2] = {} +defs["ImRect_ToVec4"][1]["argsT"][2]["name"] = "self" +defs["ImRect_ToVec4"][1]["argsT"][2]["type"] = "ImRect*" +defs["ImRect_ToVec4"][1]["argsoriginal"] = "()" +defs["ImRect_ToVec4"][1]["call_args"] = "()" +defs["ImRect_ToVec4"][1]["cimguiname"] = "ImRect_ToVec4" +defs["ImRect_ToVec4"][1]["defaults"] = {} +defs["ImRect_ToVec4"][1]["funcname"] = "ToVec4" +defs["ImRect_ToVec4"][1]["location"] = "imgui_internal:554" +defs["ImRect_ToVec4"][1]["nonUDT"] = 1 +defs["ImRect_ToVec4"][1]["ov_cimguiname"] = "ImRect_ToVec4" +defs["ImRect_ToVec4"][1]["ret"] = "void" +defs["ImRect_ToVec4"][1]["signature"] = "()const" +defs["ImRect_ToVec4"][1]["stname"] = "ImRect" +defs["ImRect_ToVec4"]["()const"] = defs["ImRect_ToVec4"][1] +defs["ImRect_Translate"] = {} +defs["ImRect_Translate"][1] = {} +defs["ImRect_Translate"][1]["args"] = "(ImRect* self,const ImVec2 d)" +defs["ImRect_Translate"][1]["argsT"] = {} +defs["ImRect_Translate"][1]["argsT"][1] = {} +defs["ImRect_Translate"][1]["argsT"][1]["name"] = "self" +defs["ImRect_Translate"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_Translate"][1]["argsT"][2] = {} +defs["ImRect_Translate"][1]["argsT"][2]["name"] = "d" +defs["ImRect_Translate"][1]["argsT"][2]["type"] = "const ImVec2" +defs["ImRect_Translate"][1]["argsoriginal"] = "(const ImVec2& d)" +defs["ImRect_Translate"][1]["call_args"] = "(d)" +defs["ImRect_Translate"][1]["cimguiname"] = "ImRect_Translate" +defs["ImRect_Translate"][1]["defaults"] = {} +defs["ImRect_Translate"][1]["funcname"] = "Translate" +defs["ImRect_Translate"][1]["location"] = "imgui_internal:547" +defs["ImRect_Translate"][1]["ov_cimguiname"] = "ImRect_Translate" +defs["ImRect_Translate"][1]["ret"] = "void" +defs["ImRect_Translate"][1]["signature"] = "(const ImVec2)" +defs["ImRect_Translate"][1]["stname"] = "ImRect" +defs["ImRect_Translate"]["(const ImVec2)"] = defs["ImRect_Translate"][1] +defs["ImRect_TranslateX"] = {} +defs["ImRect_TranslateX"][1] = {} +defs["ImRect_TranslateX"][1]["args"] = "(ImRect* self,float dx)" +defs["ImRect_TranslateX"][1]["argsT"] = {} +defs["ImRect_TranslateX"][1]["argsT"][1] = {} +defs["ImRect_TranslateX"][1]["argsT"][1]["name"] = "self" +defs["ImRect_TranslateX"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_TranslateX"][1]["argsT"][2] = {} +defs["ImRect_TranslateX"][1]["argsT"][2]["name"] = "dx" +defs["ImRect_TranslateX"][1]["argsT"][2]["type"] = "float" +defs["ImRect_TranslateX"][1]["argsoriginal"] = "(float dx)" +defs["ImRect_TranslateX"][1]["call_args"] = "(dx)" +defs["ImRect_TranslateX"][1]["cimguiname"] = "ImRect_TranslateX" +defs["ImRect_TranslateX"][1]["defaults"] = {} +defs["ImRect_TranslateX"][1]["funcname"] = "TranslateX" +defs["ImRect_TranslateX"][1]["location"] = "imgui_internal:548" +defs["ImRect_TranslateX"][1]["ov_cimguiname"] = "ImRect_TranslateX" +defs["ImRect_TranslateX"][1]["ret"] = "void" +defs["ImRect_TranslateX"][1]["signature"] = "(float)" +defs["ImRect_TranslateX"][1]["stname"] = "ImRect" +defs["ImRect_TranslateX"]["(float)"] = defs["ImRect_TranslateX"][1] +defs["ImRect_TranslateY"] = {} +defs["ImRect_TranslateY"][1] = {} +defs["ImRect_TranslateY"][1]["args"] = "(ImRect* self,float dy)" +defs["ImRect_TranslateY"][1]["argsT"] = {} +defs["ImRect_TranslateY"][1]["argsT"][1] = {} +defs["ImRect_TranslateY"][1]["argsT"][1]["name"] = "self" +defs["ImRect_TranslateY"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_TranslateY"][1]["argsT"][2] = {} +defs["ImRect_TranslateY"][1]["argsT"][2]["name"] = "dy" +defs["ImRect_TranslateY"][1]["argsT"][2]["type"] = "float" +defs["ImRect_TranslateY"][1]["argsoriginal"] = "(float dy)" +defs["ImRect_TranslateY"][1]["call_args"] = "(dy)" +defs["ImRect_TranslateY"][1]["cimguiname"] = "ImRect_TranslateY" +defs["ImRect_TranslateY"][1]["defaults"] = {} +defs["ImRect_TranslateY"][1]["funcname"] = "TranslateY" +defs["ImRect_TranslateY"][1]["location"] = "imgui_internal:549" +defs["ImRect_TranslateY"][1]["ov_cimguiname"] = "ImRect_TranslateY" +defs["ImRect_TranslateY"][1]["ret"] = "void" +defs["ImRect_TranslateY"][1]["signature"] = "(float)" +defs["ImRect_TranslateY"][1]["stname"] = "ImRect" +defs["ImRect_TranslateY"]["(float)"] = defs["ImRect_TranslateY"][1] +defs["ImRect_destroy"] = {} +defs["ImRect_destroy"][1] = {} +defs["ImRect_destroy"][1]["args"] = "(ImRect* self)" +defs["ImRect_destroy"][1]["argsT"] = {} +defs["ImRect_destroy"][1]["argsT"][1] = {} +defs["ImRect_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImRect_destroy"][1]["argsT"][1]["type"] = "ImRect*" +defs["ImRect_destroy"][1]["call_args"] = "(self)" +defs["ImRect_destroy"][1]["cimguiname"] = "ImRect_destroy" +defs["ImRect_destroy"][1]["defaults"] = {} +defs["ImRect_destroy"][1]["destructor"] = true +defs["ImRect_destroy"][1]["ov_cimguiname"] = "ImRect_destroy" +defs["ImRect_destroy"][1]["ret"] = "void" +defs["ImRect_destroy"][1]["signature"] = "(ImRect*)" +defs["ImRect_destroy"][1]["stname"] = "ImRect" +defs["ImRect_destroy"]["(ImRect*)"] = defs["ImRect_destroy"][1] +defs["ImSpanAllocator_GetArenaSizeInBytes"] = {} +defs["ImSpanAllocator_GetArenaSizeInBytes"][1] = {} +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["args"] = "(ImSpanAllocator* self)" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["argsT"] = {} +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["argsT"][1] = {} +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["argsT"][1]["name"] = "self" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["argsT"][1]["type"] = "ImSpanAllocator*" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["argsoriginal"] = "()" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["call_args"] = "()" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["cimguiname"] = "ImSpanAllocator_GetArenaSizeInBytes" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["defaults"] = {} +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["funcname"] = "GetArenaSizeInBytes" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["location"] = "imgui_internal:646" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["ov_cimguiname"] = "ImSpanAllocator_GetArenaSizeInBytes" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["ret"] = "int" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["signature"] = "()" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["stname"] = "ImSpanAllocator" +defs["ImSpanAllocator_GetArenaSizeInBytes"][1]["templated"] = true +defs["ImSpanAllocator_GetArenaSizeInBytes"]["()"] = defs["ImSpanAllocator_GetArenaSizeInBytes"][1] +defs["ImSpanAllocator_GetSpanPtrBegin"] = {} +defs["ImSpanAllocator_GetSpanPtrBegin"][1] = {} +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["args"] = "(ImSpanAllocator* self,int n)" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["argsT"] = {} +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["argsT"][1] = {} +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["argsT"][1]["name"] = "self" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["argsT"][1]["type"] = "ImSpanAllocator*" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["argsT"][2] = {} +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["argsT"][2]["name"] = "n" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["argsT"][2]["type"] = "int" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["argsoriginal"] = "(int n)" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["call_args"] = "(n)" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["cimguiname"] = "ImSpanAllocator_GetSpanPtrBegin" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["defaults"] = {} +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["funcname"] = "GetSpanPtrBegin" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["location"] = "imgui_internal:648" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["ov_cimguiname"] = "ImSpanAllocator_GetSpanPtrBegin" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["ret"] = "void*" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["signature"] = "(int)" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["stname"] = "ImSpanAllocator" +defs["ImSpanAllocator_GetSpanPtrBegin"][1]["templated"] = true +defs["ImSpanAllocator_GetSpanPtrBegin"]["(int)"] = defs["ImSpanAllocator_GetSpanPtrBegin"][1] +defs["ImSpanAllocator_GetSpanPtrEnd"] = {} +defs["ImSpanAllocator_GetSpanPtrEnd"][1] = {} +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["args"] = "(ImSpanAllocator* self,int n)" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["argsT"] = {} +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["argsT"][1] = {} +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["argsT"][1]["name"] = "self" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["argsT"][1]["type"] = "ImSpanAllocator*" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["argsT"][2] = {} +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["argsT"][2]["name"] = "n" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["argsT"][2]["type"] = "int" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["argsoriginal"] = "(int n)" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["call_args"] = "(n)" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["cimguiname"] = "ImSpanAllocator_GetSpanPtrEnd" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["defaults"] = {} +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["funcname"] = "GetSpanPtrEnd" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["location"] = "imgui_internal:649" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["ov_cimguiname"] = "ImSpanAllocator_GetSpanPtrEnd" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["ret"] = "void*" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["signature"] = "(int)" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["stname"] = "ImSpanAllocator" +defs["ImSpanAllocator_GetSpanPtrEnd"][1]["templated"] = true +defs["ImSpanAllocator_GetSpanPtrEnd"]["(int)"] = defs["ImSpanAllocator_GetSpanPtrEnd"][1] +defs["ImSpanAllocator_ImSpanAllocator"] = {} +defs["ImSpanAllocator_ImSpanAllocator"][1] = {} +defs["ImSpanAllocator_ImSpanAllocator"][1]["args"] = "()" +defs["ImSpanAllocator_ImSpanAllocator"][1]["argsT"] = {} +defs["ImSpanAllocator_ImSpanAllocator"][1]["argsoriginal"] = "()" +defs["ImSpanAllocator_ImSpanAllocator"][1]["call_args"] = "()" +defs["ImSpanAllocator_ImSpanAllocator"][1]["cimguiname"] = "ImSpanAllocator_ImSpanAllocator" +defs["ImSpanAllocator_ImSpanAllocator"][1]["constructor"] = true +defs["ImSpanAllocator_ImSpanAllocator"][1]["defaults"] = {} +defs["ImSpanAllocator_ImSpanAllocator"][1]["funcname"] = "ImSpanAllocator" +defs["ImSpanAllocator_ImSpanAllocator"][1]["location"] = "imgui_internal:644" +defs["ImSpanAllocator_ImSpanAllocator"][1]["ov_cimguiname"] = "ImSpanAllocator_ImSpanAllocator" +defs["ImSpanAllocator_ImSpanAllocator"][1]["signature"] = "()" +defs["ImSpanAllocator_ImSpanAllocator"][1]["stname"] = "ImSpanAllocator" +defs["ImSpanAllocator_ImSpanAllocator"][1]["templated"] = true +defs["ImSpanAllocator_ImSpanAllocator"]["()"] = defs["ImSpanAllocator_ImSpanAllocator"][1] +defs["ImSpanAllocator_Reserve"] = {} +defs["ImSpanAllocator_Reserve"][1] = {} +defs["ImSpanAllocator_Reserve"][1]["args"] = "(ImSpanAllocator* self,int n,size_t sz,int a)" +defs["ImSpanAllocator_Reserve"][1]["argsT"] = {} +defs["ImSpanAllocator_Reserve"][1]["argsT"][1] = {} +defs["ImSpanAllocator_Reserve"][1]["argsT"][1]["name"] = "self" +defs["ImSpanAllocator_Reserve"][1]["argsT"][1]["type"] = "ImSpanAllocator*" +defs["ImSpanAllocator_Reserve"][1]["argsT"][2] = {} +defs["ImSpanAllocator_Reserve"][1]["argsT"][2]["name"] = "n" +defs["ImSpanAllocator_Reserve"][1]["argsT"][2]["type"] = "int" +defs["ImSpanAllocator_Reserve"][1]["argsT"][3] = {} +defs["ImSpanAllocator_Reserve"][1]["argsT"][3]["name"] = "sz" +defs["ImSpanAllocator_Reserve"][1]["argsT"][3]["type"] = "size_t" +defs["ImSpanAllocator_Reserve"][1]["argsT"][4] = {} +defs["ImSpanAllocator_Reserve"][1]["argsT"][4]["name"] = "a" +defs["ImSpanAllocator_Reserve"][1]["argsT"][4]["type"] = "int" +defs["ImSpanAllocator_Reserve"][1]["argsoriginal"] = "(int n,size_t sz,int a=4)" +defs["ImSpanAllocator_Reserve"][1]["call_args"] = "(n,sz,a)" +defs["ImSpanAllocator_Reserve"][1]["cimguiname"] = "ImSpanAllocator_Reserve" +defs["ImSpanAllocator_Reserve"][1]["defaults"] = {} +defs["ImSpanAllocator_Reserve"][1]["defaults"]["a"] = "4" +defs["ImSpanAllocator_Reserve"][1]["funcname"] = "Reserve" +defs["ImSpanAllocator_Reserve"][1]["location"] = "imgui_internal:645" +defs["ImSpanAllocator_Reserve"][1]["ov_cimguiname"] = "ImSpanAllocator_Reserve" +defs["ImSpanAllocator_Reserve"][1]["ret"] = "void" +defs["ImSpanAllocator_Reserve"][1]["signature"] = "(int,size_t,int)" +defs["ImSpanAllocator_Reserve"][1]["stname"] = "ImSpanAllocator" +defs["ImSpanAllocator_Reserve"][1]["templated"] = true +defs["ImSpanAllocator_Reserve"]["(int,size_t,int)"] = defs["ImSpanAllocator_Reserve"][1] +defs["ImSpanAllocator_SetArenaBasePtr"] = {} +defs["ImSpanAllocator_SetArenaBasePtr"][1] = {} +defs["ImSpanAllocator_SetArenaBasePtr"][1]["args"] = "(ImSpanAllocator* self,void* base_ptr)" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["argsT"] = {} +defs["ImSpanAllocator_SetArenaBasePtr"][1]["argsT"][1] = {} +defs["ImSpanAllocator_SetArenaBasePtr"][1]["argsT"][1]["name"] = "self" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["argsT"][1]["type"] = "ImSpanAllocator*" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["argsT"][2] = {} +defs["ImSpanAllocator_SetArenaBasePtr"][1]["argsT"][2]["name"] = "base_ptr" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["argsT"][2]["type"] = "void*" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["argsoriginal"] = "(void* base_ptr)" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["call_args"] = "(base_ptr)" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["cimguiname"] = "ImSpanAllocator_SetArenaBasePtr" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["defaults"] = {} +defs["ImSpanAllocator_SetArenaBasePtr"][1]["funcname"] = "SetArenaBasePtr" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["location"] = "imgui_internal:647" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["ov_cimguiname"] = "ImSpanAllocator_SetArenaBasePtr" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["ret"] = "void" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["signature"] = "(void*)" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["stname"] = "ImSpanAllocator" +defs["ImSpanAllocator_SetArenaBasePtr"][1]["templated"] = true +defs["ImSpanAllocator_SetArenaBasePtr"]["(void*)"] = defs["ImSpanAllocator_SetArenaBasePtr"][1] +defs["ImSpanAllocator_destroy"] = {} +defs["ImSpanAllocator_destroy"][1] = {} +defs["ImSpanAllocator_destroy"][1]["args"] = "(ImSpanAllocator* self)" +defs["ImSpanAllocator_destroy"][1]["argsT"] = {} +defs["ImSpanAllocator_destroy"][1]["argsT"][1] = {} +defs["ImSpanAllocator_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImSpanAllocator_destroy"][1]["argsT"][1]["type"] = "ImSpanAllocator*" +defs["ImSpanAllocator_destroy"][1]["call_args"] = "(self)" +defs["ImSpanAllocator_destroy"][1]["cimguiname"] = "ImSpanAllocator_destroy" +defs["ImSpanAllocator_destroy"][1]["defaults"] = {} +defs["ImSpanAllocator_destroy"][1]["destructor"] = true +defs["ImSpanAllocator_destroy"][1]["ov_cimguiname"] = "ImSpanAllocator_destroy" +defs["ImSpanAllocator_destroy"][1]["ret"] = "void" +defs["ImSpanAllocator_destroy"][1]["signature"] = "(ImSpanAllocator*)" +defs["ImSpanAllocator_destroy"][1]["stname"] = "ImSpanAllocator" +defs["ImSpanAllocator_destroy"][1]["templated"] = true +defs["ImSpanAllocator_destroy"]["(ImSpanAllocator*)"] = defs["ImSpanAllocator_destroy"][1] +defs["ImSpan_ImSpan"] = {} +defs["ImSpan_ImSpan"][1] = {} +defs["ImSpan_ImSpan"][1]["args"] = "()" +defs["ImSpan_ImSpan"][1]["argsT"] = {} +defs["ImSpan_ImSpan"][1]["argsoriginal"] = "()" +defs["ImSpan_ImSpan"][1]["call_args"] = "()" +defs["ImSpan_ImSpan"][1]["cimguiname"] = "ImSpan_ImSpan" +defs["ImSpan_ImSpan"][1]["constructor"] = true +defs["ImSpan_ImSpan"][1]["defaults"] = {} +defs["ImSpan_ImSpan"][1]["funcname"] = "ImSpan" +defs["ImSpan_ImSpan"][1]["location"] = "imgui_internal:612" +defs["ImSpan_ImSpan"][1]["ov_cimguiname"] = "ImSpan_ImSpan_Nil" +defs["ImSpan_ImSpan"][1]["signature"] = "()" +defs["ImSpan_ImSpan"][1]["stname"] = "ImSpan" +defs["ImSpan_ImSpan"][1]["templated"] = true +defs["ImSpan_ImSpan"][2] = {} +defs["ImSpan_ImSpan"][2]["args"] = "(T* data,int size)" +defs["ImSpan_ImSpan"][2]["argsT"] = {} +defs["ImSpan_ImSpan"][2]["argsT"][1] = {} +defs["ImSpan_ImSpan"][2]["argsT"][1]["name"] = "data" +defs["ImSpan_ImSpan"][2]["argsT"][1]["type"] = "T*" +defs["ImSpan_ImSpan"][2]["argsT"][2] = {} +defs["ImSpan_ImSpan"][2]["argsT"][2]["name"] = "size" +defs["ImSpan_ImSpan"][2]["argsT"][2]["type"] = "int" +defs["ImSpan_ImSpan"][2]["argsoriginal"] = "(T* data,int size)" +defs["ImSpan_ImSpan"][2]["call_args"] = "(data,size)" +defs["ImSpan_ImSpan"][2]["cimguiname"] = "ImSpan_ImSpan" +defs["ImSpan_ImSpan"][2]["constructor"] = true +defs["ImSpan_ImSpan"][2]["defaults"] = {} +defs["ImSpan_ImSpan"][2]["funcname"] = "ImSpan" +defs["ImSpan_ImSpan"][2]["location"] = "imgui_internal:613" +defs["ImSpan_ImSpan"][2]["ov_cimguiname"] = "ImSpan_ImSpan_TPtrInt" +defs["ImSpan_ImSpan"][2]["signature"] = "(T*,int)" +defs["ImSpan_ImSpan"][2]["stname"] = "ImSpan" +defs["ImSpan_ImSpan"][2]["templated"] = true +defs["ImSpan_ImSpan"][3] = {} +defs["ImSpan_ImSpan"][3]["args"] = "(T* data,T* data_end)" +defs["ImSpan_ImSpan"][3]["argsT"] = {} +defs["ImSpan_ImSpan"][3]["argsT"][1] = {} +defs["ImSpan_ImSpan"][3]["argsT"][1]["name"] = "data" +defs["ImSpan_ImSpan"][3]["argsT"][1]["type"] = "T*" +defs["ImSpan_ImSpan"][3]["argsT"][2] = {} +defs["ImSpan_ImSpan"][3]["argsT"][2]["name"] = "data_end" +defs["ImSpan_ImSpan"][3]["argsT"][2]["type"] = "T*" +defs["ImSpan_ImSpan"][3]["argsoriginal"] = "(T* data,T* data_end)" +defs["ImSpan_ImSpan"][3]["call_args"] = "(data,data_end)" +defs["ImSpan_ImSpan"][3]["cimguiname"] = "ImSpan_ImSpan" +defs["ImSpan_ImSpan"][3]["constructor"] = true +defs["ImSpan_ImSpan"][3]["defaults"] = {} +defs["ImSpan_ImSpan"][3]["funcname"] = "ImSpan" +defs["ImSpan_ImSpan"][3]["location"] = "imgui_internal:614" +defs["ImSpan_ImSpan"][3]["ov_cimguiname"] = "ImSpan_ImSpan_TPtrTPtr" +defs["ImSpan_ImSpan"][3]["signature"] = "(T*,T*)" +defs["ImSpan_ImSpan"][3]["stname"] = "ImSpan" +defs["ImSpan_ImSpan"][3]["templated"] = true +defs["ImSpan_ImSpan"]["()"] = defs["ImSpan_ImSpan"][1] +defs["ImSpan_ImSpan"]["(T*,T*)"] = defs["ImSpan_ImSpan"][3] +defs["ImSpan_ImSpan"]["(T*,int)"] = defs["ImSpan_ImSpan"][2] +defs["ImSpan_begin"] = {} +defs["ImSpan_begin"][1] = {} +defs["ImSpan_begin"][1]["args"] = "(ImSpan* self)" +defs["ImSpan_begin"][1]["argsT"] = {} +defs["ImSpan_begin"][1]["argsT"][1] = {} +defs["ImSpan_begin"][1]["argsT"][1]["name"] = "self" +defs["ImSpan_begin"][1]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_begin"][1]["argsoriginal"] = "()" +defs["ImSpan_begin"][1]["call_args"] = "()" +defs["ImSpan_begin"][1]["cimguiname"] = "ImSpan_begin" +defs["ImSpan_begin"][1]["defaults"] = {} +defs["ImSpan_begin"][1]["funcname"] = "begin" +defs["ImSpan_begin"][1]["location"] = "imgui_internal:623" +defs["ImSpan_begin"][1]["ov_cimguiname"] = "ImSpan_begin_Nil" +defs["ImSpan_begin"][1]["ret"] = "T*" +defs["ImSpan_begin"][1]["signature"] = "()" +defs["ImSpan_begin"][1]["stname"] = "ImSpan" +defs["ImSpan_begin"][1]["templated"] = true +defs["ImSpan_begin"][2] = {} +defs["ImSpan_begin"][2]["args"] = "(ImSpan* self)" +defs["ImSpan_begin"][2]["argsT"] = {} +defs["ImSpan_begin"][2]["argsT"][1] = {} +defs["ImSpan_begin"][2]["argsT"][1]["name"] = "self" +defs["ImSpan_begin"][2]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_begin"][2]["argsoriginal"] = "()" +defs["ImSpan_begin"][2]["call_args"] = "()" +defs["ImSpan_begin"][2]["cimguiname"] = "ImSpan_begin" +defs["ImSpan_begin"][2]["defaults"] = {} +defs["ImSpan_begin"][2]["funcname"] = "begin" +defs["ImSpan_begin"][2]["location"] = "imgui_internal:624" +defs["ImSpan_begin"][2]["ov_cimguiname"] = "ImSpan_begin__const" +defs["ImSpan_begin"][2]["ret"] = "const T*" +defs["ImSpan_begin"][2]["signature"] = "()const" +defs["ImSpan_begin"][2]["stname"] = "ImSpan" +defs["ImSpan_begin"][2]["templated"] = true +defs["ImSpan_begin"]["()"] = defs["ImSpan_begin"][1] +defs["ImSpan_begin"]["()const"] = defs["ImSpan_begin"][2] +defs["ImSpan_destroy"] = {} +defs["ImSpan_destroy"][1] = {} +defs["ImSpan_destroy"][1]["args"] = "(ImSpan* self)" +defs["ImSpan_destroy"][1]["argsT"] = {} +defs["ImSpan_destroy"][1]["argsT"][1] = {} +defs["ImSpan_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImSpan_destroy"][1]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_destroy"][1]["call_args"] = "(self)" +defs["ImSpan_destroy"][1]["cimguiname"] = "ImSpan_destroy" +defs["ImSpan_destroy"][1]["defaults"] = {} +defs["ImSpan_destroy"][1]["destructor"] = true +defs["ImSpan_destroy"][1]["ov_cimguiname"] = "ImSpan_destroy" +defs["ImSpan_destroy"][1]["ret"] = "void" +defs["ImSpan_destroy"][1]["signature"] = "(ImSpan*)" +defs["ImSpan_destroy"][1]["stname"] = "ImSpan" +defs["ImSpan_destroy"][1]["templated"] = true +defs["ImSpan_destroy"]["(ImSpan*)"] = defs["ImSpan_destroy"][1] +defs["ImSpan_end"] = {} +defs["ImSpan_end"][1] = {} +defs["ImSpan_end"][1]["args"] = "(ImSpan* self)" +defs["ImSpan_end"][1]["argsT"] = {} +defs["ImSpan_end"][1]["argsT"][1] = {} +defs["ImSpan_end"][1]["argsT"][1]["name"] = "self" +defs["ImSpan_end"][1]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_end"][1]["argsoriginal"] = "()" +defs["ImSpan_end"][1]["call_args"] = "()" +defs["ImSpan_end"][1]["cimguiname"] = "ImSpan_end" +defs["ImSpan_end"][1]["defaults"] = {} +defs["ImSpan_end"][1]["funcname"] = "end" +defs["ImSpan_end"][1]["location"] = "imgui_internal:625" +defs["ImSpan_end"][1]["ov_cimguiname"] = "ImSpan_end_Nil" +defs["ImSpan_end"][1]["ret"] = "T*" +defs["ImSpan_end"][1]["signature"] = "()" +defs["ImSpan_end"][1]["stname"] = "ImSpan" +defs["ImSpan_end"][1]["templated"] = true +defs["ImSpan_end"][2] = {} +defs["ImSpan_end"][2]["args"] = "(ImSpan* self)" +defs["ImSpan_end"][2]["argsT"] = {} +defs["ImSpan_end"][2]["argsT"][1] = {} +defs["ImSpan_end"][2]["argsT"][1]["name"] = "self" +defs["ImSpan_end"][2]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_end"][2]["argsoriginal"] = "()" +defs["ImSpan_end"][2]["call_args"] = "()" +defs["ImSpan_end"][2]["cimguiname"] = "ImSpan_end" +defs["ImSpan_end"][2]["defaults"] = {} +defs["ImSpan_end"][2]["funcname"] = "end" +defs["ImSpan_end"][2]["location"] = "imgui_internal:626" +defs["ImSpan_end"][2]["ov_cimguiname"] = "ImSpan_end__const" +defs["ImSpan_end"][2]["ret"] = "const T*" +defs["ImSpan_end"][2]["signature"] = "()const" +defs["ImSpan_end"][2]["stname"] = "ImSpan" +defs["ImSpan_end"][2]["templated"] = true +defs["ImSpan_end"]["()"] = defs["ImSpan_end"][1] +defs["ImSpan_end"]["()const"] = defs["ImSpan_end"][2] +defs["ImSpan_index_from_ptr"] = {} +defs["ImSpan_index_from_ptr"][1] = {} +defs["ImSpan_index_from_ptr"][1]["args"] = "(ImSpan* self,const T* it)" +defs["ImSpan_index_from_ptr"][1]["argsT"] = {} +defs["ImSpan_index_from_ptr"][1]["argsT"][1] = {} +defs["ImSpan_index_from_ptr"][1]["argsT"][1]["name"] = "self" +defs["ImSpan_index_from_ptr"][1]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_index_from_ptr"][1]["argsT"][2] = {} +defs["ImSpan_index_from_ptr"][1]["argsT"][2]["name"] = "it" +defs["ImSpan_index_from_ptr"][1]["argsT"][2]["type"] = "const T*" +defs["ImSpan_index_from_ptr"][1]["argsoriginal"] = "(const T* it)" +defs["ImSpan_index_from_ptr"][1]["call_args"] = "(it)" +defs["ImSpan_index_from_ptr"][1]["cimguiname"] = "ImSpan_index_from_ptr" +defs["ImSpan_index_from_ptr"][1]["defaults"] = {} +defs["ImSpan_index_from_ptr"][1]["funcname"] = "index_from_ptr" +defs["ImSpan_index_from_ptr"][1]["location"] = "imgui_internal:629" +defs["ImSpan_index_from_ptr"][1]["ov_cimguiname"] = "ImSpan_index_from_ptr" +defs["ImSpan_index_from_ptr"][1]["ret"] = "int" +defs["ImSpan_index_from_ptr"][1]["signature"] = "(const T*)const" +defs["ImSpan_index_from_ptr"][1]["stname"] = "ImSpan" +defs["ImSpan_index_from_ptr"][1]["templated"] = true +defs["ImSpan_index_from_ptr"]["(const T*)const"] = defs["ImSpan_index_from_ptr"][1] +defs["ImSpan_set"] = {} +defs["ImSpan_set"][1] = {} +defs["ImSpan_set"][1]["args"] = "(ImSpan* self,T* data,int size)" +defs["ImSpan_set"][1]["argsT"] = {} +defs["ImSpan_set"][1]["argsT"][1] = {} +defs["ImSpan_set"][1]["argsT"][1]["name"] = "self" +defs["ImSpan_set"][1]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_set"][1]["argsT"][2] = {} +defs["ImSpan_set"][1]["argsT"][2]["name"] = "data" +defs["ImSpan_set"][1]["argsT"][2]["type"] = "T*" +defs["ImSpan_set"][1]["argsT"][3] = {} +defs["ImSpan_set"][1]["argsT"][3]["name"] = "size" +defs["ImSpan_set"][1]["argsT"][3]["type"] = "int" +defs["ImSpan_set"][1]["argsoriginal"] = "(T* data,int size)" +defs["ImSpan_set"][1]["call_args"] = "(data,size)" +defs["ImSpan_set"][1]["cimguiname"] = "ImSpan_set" +defs["ImSpan_set"][1]["defaults"] = {} +defs["ImSpan_set"][1]["funcname"] = "set" +defs["ImSpan_set"][1]["location"] = "imgui_internal:616" +defs["ImSpan_set"][1]["ov_cimguiname"] = "ImSpan_set_Int" +defs["ImSpan_set"][1]["ret"] = "void" +defs["ImSpan_set"][1]["signature"] = "(T*,int)" +defs["ImSpan_set"][1]["stname"] = "ImSpan" +defs["ImSpan_set"][1]["templated"] = true +defs["ImSpan_set"][2] = {} +defs["ImSpan_set"][2]["args"] = "(ImSpan* self,T* data,T* data_end)" +defs["ImSpan_set"][2]["argsT"] = {} +defs["ImSpan_set"][2]["argsT"][1] = {} +defs["ImSpan_set"][2]["argsT"][1]["name"] = "self" +defs["ImSpan_set"][2]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_set"][2]["argsT"][2] = {} +defs["ImSpan_set"][2]["argsT"][2]["name"] = "data" +defs["ImSpan_set"][2]["argsT"][2]["type"] = "T*" +defs["ImSpan_set"][2]["argsT"][3] = {} +defs["ImSpan_set"][2]["argsT"][3]["name"] = "data_end" +defs["ImSpan_set"][2]["argsT"][3]["type"] = "T*" +defs["ImSpan_set"][2]["argsoriginal"] = "(T* data,T* data_end)" +defs["ImSpan_set"][2]["call_args"] = "(data,data_end)" +defs["ImSpan_set"][2]["cimguiname"] = "ImSpan_set" +defs["ImSpan_set"][2]["defaults"] = {} +defs["ImSpan_set"][2]["funcname"] = "set" +defs["ImSpan_set"][2]["location"] = "imgui_internal:617" +defs["ImSpan_set"][2]["ov_cimguiname"] = "ImSpan_set_TPtr" +defs["ImSpan_set"][2]["ret"] = "void" +defs["ImSpan_set"][2]["signature"] = "(T*,T*)" +defs["ImSpan_set"][2]["stname"] = "ImSpan" +defs["ImSpan_set"][2]["templated"] = true +defs["ImSpan_set"]["(T*,T*)"] = defs["ImSpan_set"][2] +defs["ImSpan_set"]["(T*,int)"] = defs["ImSpan_set"][1] +defs["ImSpan_size"] = {} +defs["ImSpan_size"][1] = {} +defs["ImSpan_size"][1]["args"] = "(ImSpan* self)" +defs["ImSpan_size"][1]["argsT"] = {} +defs["ImSpan_size"][1]["argsT"][1] = {} +defs["ImSpan_size"][1]["argsT"][1]["name"] = "self" +defs["ImSpan_size"][1]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_size"][1]["argsoriginal"] = "()" +defs["ImSpan_size"][1]["call_args"] = "()" +defs["ImSpan_size"][1]["cimguiname"] = "ImSpan_size" +defs["ImSpan_size"][1]["defaults"] = {} +defs["ImSpan_size"][1]["funcname"] = "size" +defs["ImSpan_size"][1]["location"] = "imgui_internal:618" +defs["ImSpan_size"][1]["ov_cimguiname"] = "ImSpan_size" +defs["ImSpan_size"][1]["ret"] = "int" +defs["ImSpan_size"][1]["signature"] = "()const" +defs["ImSpan_size"][1]["stname"] = "ImSpan" +defs["ImSpan_size"][1]["templated"] = true +defs["ImSpan_size"]["()const"] = defs["ImSpan_size"][1] +defs["ImSpan_size_in_bytes"] = {} +defs["ImSpan_size_in_bytes"][1] = {} +defs["ImSpan_size_in_bytes"][1]["args"] = "(ImSpan* self)" +defs["ImSpan_size_in_bytes"][1]["argsT"] = {} +defs["ImSpan_size_in_bytes"][1]["argsT"][1] = {} +defs["ImSpan_size_in_bytes"][1]["argsT"][1]["name"] = "self" +defs["ImSpan_size_in_bytes"][1]["argsT"][1]["type"] = "ImSpan*" +defs["ImSpan_size_in_bytes"][1]["argsoriginal"] = "()" +defs["ImSpan_size_in_bytes"][1]["call_args"] = "()" +defs["ImSpan_size_in_bytes"][1]["cimguiname"] = "ImSpan_size_in_bytes" +defs["ImSpan_size_in_bytes"][1]["defaults"] = {} +defs["ImSpan_size_in_bytes"][1]["funcname"] = "size_in_bytes" +defs["ImSpan_size_in_bytes"][1]["location"] = "imgui_internal:619" +defs["ImSpan_size_in_bytes"][1]["ov_cimguiname"] = "ImSpan_size_in_bytes" +defs["ImSpan_size_in_bytes"][1]["ret"] = "int" +defs["ImSpan_size_in_bytes"][1]["signature"] = "()const" +defs["ImSpan_size_in_bytes"][1]["stname"] = "ImSpan" +defs["ImSpan_size_in_bytes"][1]["templated"] = true +defs["ImSpan_size_in_bytes"]["()const"] = defs["ImSpan_size_in_bytes"][1] +defs["ImVec1_ImVec1"] = {} +defs["ImVec1_ImVec1"][1] = {} +defs["ImVec1_ImVec1"][1]["args"] = "()" +defs["ImVec1_ImVec1"][1]["argsT"] = {} +defs["ImVec1_ImVec1"][1]["argsoriginal"] = "()" +defs["ImVec1_ImVec1"][1]["call_args"] = "()" +defs["ImVec1_ImVec1"][1]["cimguiname"] = "ImVec1_ImVec1" +defs["ImVec1_ImVec1"][1]["constructor"] = true +defs["ImVec1_ImVec1"][1]["defaults"] = {} +defs["ImVec1_ImVec1"][1]["funcname"] = "ImVec1" +defs["ImVec1_ImVec1"][1]["location"] = "imgui_internal:506" +defs["ImVec1_ImVec1"][1]["ov_cimguiname"] = "ImVec1_ImVec1_Nil" +defs["ImVec1_ImVec1"][1]["signature"] = "()" +defs["ImVec1_ImVec1"][1]["stname"] = "ImVec1" +defs["ImVec1_ImVec1"][2] = {} +defs["ImVec1_ImVec1"][2]["args"] = "(float _x)" +defs["ImVec1_ImVec1"][2]["argsT"] = {} +defs["ImVec1_ImVec1"][2]["argsT"][1] = {} +defs["ImVec1_ImVec1"][2]["argsT"][1]["name"] = "_x" +defs["ImVec1_ImVec1"][2]["argsT"][1]["type"] = "float" +defs["ImVec1_ImVec1"][2]["argsoriginal"] = "(float _x)" +defs["ImVec1_ImVec1"][2]["call_args"] = "(_x)" +defs["ImVec1_ImVec1"][2]["cimguiname"] = "ImVec1_ImVec1" +defs["ImVec1_ImVec1"][2]["constructor"] = true +defs["ImVec1_ImVec1"][2]["defaults"] = {} +defs["ImVec1_ImVec1"][2]["funcname"] = "ImVec1" +defs["ImVec1_ImVec1"][2]["location"] = "imgui_internal:507" +defs["ImVec1_ImVec1"][2]["ov_cimguiname"] = "ImVec1_ImVec1_Float" +defs["ImVec1_ImVec1"][2]["signature"] = "(float)" +defs["ImVec1_ImVec1"][2]["stname"] = "ImVec1" +defs["ImVec1_ImVec1"]["()"] = defs["ImVec1_ImVec1"][1] +defs["ImVec1_ImVec1"]["(float)"] = defs["ImVec1_ImVec1"][2] +defs["ImVec1_destroy"] = {} +defs["ImVec1_destroy"][1] = {} +defs["ImVec1_destroy"][1]["args"] = "(ImVec1* self)" +defs["ImVec1_destroy"][1]["argsT"] = {} +defs["ImVec1_destroy"][1]["argsT"][1] = {} +defs["ImVec1_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImVec1_destroy"][1]["argsT"][1]["type"] = "ImVec1*" +defs["ImVec1_destroy"][1]["call_args"] = "(self)" +defs["ImVec1_destroy"][1]["cimguiname"] = "ImVec1_destroy" +defs["ImVec1_destroy"][1]["defaults"] = {} +defs["ImVec1_destroy"][1]["destructor"] = true +defs["ImVec1_destroy"][1]["ov_cimguiname"] = "ImVec1_destroy" +defs["ImVec1_destroy"][1]["ret"] = "void" +defs["ImVec1_destroy"][1]["signature"] = "(ImVec1*)" +defs["ImVec1_destroy"][1]["stname"] = "ImVec1" +defs["ImVec1_destroy"]["(ImVec1*)"] = defs["ImVec1_destroy"][1] defs["ImVec2_ImVec2"] = {} defs["ImVec2_ImVec2"][1] = {} defs["ImVec2_ImVec2"][1]["args"] = "()" @@ -5695,6 +10181,74 @@ defs["ImVec2_destroy"][1]["ret"] = "void" defs["ImVec2_destroy"][1]["signature"] = "(ImVec2*)" defs["ImVec2_destroy"][1]["stname"] = "ImVec2" defs["ImVec2_destroy"]["(ImVec2*)"] = defs["ImVec2_destroy"][1] +defs["ImVec2ih_ImVec2ih"] = {} +defs["ImVec2ih_ImVec2ih"][1] = {} +defs["ImVec2ih_ImVec2ih"][1]["args"] = "()" +defs["ImVec2ih_ImVec2ih"][1]["argsT"] = {} +defs["ImVec2ih_ImVec2ih"][1]["argsoriginal"] = "()" +defs["ImVec2ih_ImVec2ih"][1]["call_args"] = "()" +defs["ImVec2ih_ImVec2ih"][1]["cimguiname"] = "ImVec2ih_ImVec2ih" +defs["ImVec2ih_ImVec2ih"][1]["constructor"] = true +defs["ImVec2ih_ImVec2ih"][1]["defaults"] = {} +defs["ImVec2ih_ImVec2ih"][1]["funcname"] = "ImVec2ih" +defs["ImVec2ih_ImVec2ih"][1]["location"] = "imgui_internal:514" +defs["ImVec2ih_ImVec2ih"][1]["ov_cimguiname"] = "ImVec2ih_ImVec2ih_Nil" +defs["ImVec2ih_ImVec2ih"][1]["signature"] = "()" +defs["ImVec2ih_ImVec2ih"][1]["stname"] = "ImVec2ih" +defs["ImVec2ih_ImVec2ih"][2] = {} +defs["ImVec2ih_ImVec2ih"][2]["args"] = "(short _x,short _y)" +defs["ImVec2ih_ImVec2ih"][2]["argsT"] = {} +defs["ImVec2ih_ImVec2ih"][2]["argsT"][1] = {} +defs["ImVec2ih_ImVec2ih"][2]["argsT"][1]["name"] = "_x" +defs["ImVec2ih_ImVec2ih"][2]["argsT"][1]["type"] = "short" +defs["ImVec2ih_ImVec2ih"][2]["argsT"][2] = {} +defs["ImVec2ih_ImVec2ih"][2]["argsT"][2]["name"] = "_y" +defs["ImVec2ih_ImVec2ih"][2]["argsT"][2]["type"] = "short" +defs["ImVec2ih_ImVec2ih"][2]["argsoriginal"] = "(short _x,short _y)" +defs["ImVec2ih_ImVec2ih"][2]["call_args"] = "(_x,_y)" +defs["ImVec2ih_ImVec2ih"][2]["cimguiname"] = "ImVec2ih_ImVec2ih" +defs["ImVec2ih_ImVec2ih"][2]["constructor"] = true +defs["ImVec2ih_ImVec2ih"][2]["defaults"] = {} +defs["ImVec2ih_ImVec2ih"][2]["funcname"] = "ImVec2ih" +defs["ImVec2ih_ImVec2ih"][2]["location"] = "imgui_internal:515" +defs["ImVec2ih_ImVec2ih"][2]["ov_cimguiname"] = "ImVec2ih_ImVec2ih_short" +defs["ImVec2ih_ImVec2ih"][2]["signature"] = "(short,short)" +defs["ImVec2ih_ImVec2ih"][2]["stname"] = "ImVec2ih" +defs["ImVec2ih_ImVec2ih"][3] = {} +defs["ImVec2ih_ImVec2ih"][3]["args"] = "(const ImVec2 rhs)" +defs["ImVec2ih_ImVec2ih"][3]["argsT"] = {} +defs["ImVec2ih_ImVec2ih"][3]["argsT"][1] = {} +defs["ImVec2ih_ImVec2ih"][3]["argsT"][1]["name"] = "rhs" +defs["ImVec2ih_ImVec2ih"][3]["argsT"][1]["type"] = "const ImVec2" +defs["ImVec2ih_ImVec2ih"][3]["argsoriginal"] = "(const ImVec2& rhs)" +defs["ImVec2ih_ImVec2ih"][3]["call_args"] = "(rhs)" +defs["ImVec2ih_ImVec2ih"][3]["cimguiname"] = "ImVec2ih_ImVec2ih" +defs["ImVec2ih_ImVec2ih"][3]["constructor"] = true +defs["ImVec2ih_ImVec2ih"][3]["defaults"] = {} +defs["ImVec2ih_ImVec2ih"][3]["funcname"] = "ImVec2ih" +defs["ImVec2ih_ImVec2ih"][3]["location"] = "imgui_internal:516" +defs["ImVec2ih_ImVec2ih"][3]["ov_cimguiname"] = "ImVec2ih_ImVec2ih_Vec2" +defs["ImVec2ih_ImVec2ih"][3]["signature"] = "(const ImVec2)" +defs["ImVec2ih_ImVec2ih"][3]["stname"] = "ImVec2ih" +defs["ImVec2ih_ImVec2ih"]["()"] = defs["ImVec2ih_ImVec2ih"][1] +defs["ImVec2ih_ImVec2ih"]["(const ImVec2)"] = defs["ImVec2ih_ImVec2ih"][3] +defs["ImVec2ih_ImVec2ih"]["(short,short)"] = defs["ImVec2ih_ImVec2ih"][2] +defs["ImVec2ih_destroy"] = {} +defs["ImVec2ih_destroy"][1] = {} +defs["ImVec2ih_destroy"][1]["args"] = "(ImVec2ih* self)" +defs["ImVec2ih_destroy"][1]["argsT"] = {} +defs["ImVec2ih_destroy"][1]["argsT"][1] = {} +defs["ImVec2ih_destroy"][1]["argsT"][1]["name"] = "self" +defs["ImVec2ih_destroy"][1]["argsT"][1]["type"] = "ImVec2ih*" +defs["ImVec2ih_destroy"][1]["call_args"] = "(self)" +defs["ImVec2ih_destroy"][1]["cimguiname"] = "ImVec2ih_destroy" +defs["ImVec2ih_destroy"][1]["defaults"] = {} +defs["ImVec2ih_destroy"][1]["destructor"] = true +defs["ImVec2ih_destroy"][1]["ov_cimguiname"] = "ImVec2ih_destroy" +defs["ImVec2ih_destroy"][1]["ret"] = "void" +defs["ImVec2ih_destroy"][1]["signature"] = "(ImVec2ih*)" +defs["ImVec2ih_destroy"][1]["stname"] = "ImVec2ih" +defs["ImVec2ih_destroy"]["(ImVec2ih*)"] = defs["ImVec2ih_destroy"][1] defs["ImVec4_ImVec4"] = {} defs["ImVec4_ImVec4"][1] = {} defs["ImVec4_ImVec4"][1]["args"] = "()" @@ -6576,6 +11130,66 @@ defs["igAcceptDragDropPayload"][1]["ret"] = "const ImGuiPayload*" defs["igAcceptDragDropPayload"][1]["signature"] = "(const char*,ImGuiDragDropFlags)" defs["igAcceptDragDropPayload"][1]["stname"] = "" defs["igAcceptDragDropPayload"]["(const char*,ImGuiDragDropFlags)"] = defs["igAcceptDragDropPayload"][1] +defs["igActivateItem"] = {} +defs["igActivateItem"][1] = {} +defs["igActivateItem"][1]["args"] = "(ImGuiID id)" +defs["igActivateItem"][1]["argsT"] = {} +defs["igActivateItem"][1]["argsT"][1] = {} +defs["igActivateItem"][1]["argsT"][1]["name"] = "id" +defs["igActivateItem"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igActivateItem"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igActivateItem"][1]["call_args"] = "(id)" +defs["igActivateItem"][1]["cimguiname"] = "igActivateItem" +defs["igActivateItem"][1]["defaults"] = {} +defs["igActivateItem"][1]["funcname"] = "ActivateItem" +defs["igActivateItem"][1]["location"] = "imgui_internal:3094" +defs["igActivateItem"][1]["namespace"] = "ImGui" +defs["igActivateItem"][1]["ov_cimguiname"] = "igActivateItem" +defs["igActivateItem"][1]["ret"] = "void" +defs["igActivateItem"][1]["signature"] = "(ImGuiID)" +defs["igActivateItem"][1]["stname"] = "" +defs["igActivateItem"]["(ImGuiID)"] = defs["igActivateItem"][1] +defs["igAddContextHook"] = {} +defs["igAddContextHook"][1] = {} +defs["igAddContextHook"][1]["args"] = "(ImGuiContext* context,const ImGuiContextHook* hook)" +defs["igAddContextHook"][1]["argsT"] = {} +defs["igAddContextHook"][1]["argsT"][1] = {} +defs["igAddContextHook"][1]["argsT"][1]["name"] = "context" +defs["igAddContextHook"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igAddContextHook"][1]["argsT"][2] = {} +defs["igAddContextHook"][1]["argsT"][2]["name"] = "hook" +defs["igAddContextHook"][1]["argsT"][2]["type"] = "const ImGuiContextHook*" +defs["igAddContextHook"][1]["argsoriginal"] = "(ImGuiContext* context,const ImGuiContextHook* hook)" +defs["igAddContextHook"][1]["call_args"] = "(context,hook)" +defs["igAddContextHook"][1]["cimguiname"] = "igAddContextHook" +defs["igAddContextHook"][1]["defaults"] = {} +defs["igAddContextHook"][1]["funcname"] = "AddContextHook" +defs["igAddContextHook"][1]["location"] = "imgui_internal:2977" +defs["igAddContextHook"][1]["namespace"] = "ImGui" +defs["igAddContextHook"][1]["ov_cimguiname"] = "igAddContextHook" +defs["igAddContextHook"][1]["ret"] = "ImGuiID" +defs["igAddContextHook"][1]["signature"] = "(ImGuiContext*,const ImGuiContextHook*)" +defs["igAddContextHook"][1]["stname"] = "" +defs["igAddContextHook"]["(ImGuiContext*,const ImGuiContextHook*)"] = defs["igAddContextHook"][1] +defs["igAddSettingsHandler"] = {} +defs["igAddSettingsHandler"][1] = {} +defs["igAddSettingsHandler"][1]["args"] = "(const ImGuiSettingsHandler* handler)" +defs["igAddSettingsHandler"][1]["argsT"] = {} +defs["igAddSettingsHandler"][1]["argsT"][1] = {} +defs["igAddSettingsHandler"][1]["argsT"][1]["name"] = "handler" +defs["igAddSettingsHandler"][1]["argsT"][1]["type"] = "const ImGuiSettingsHandler*" +defs["igAddSettingsHandler"][1]["argsoriginal"] = "(const ImGuiSettingsHandler* handler)" +defs["igAddSettingsHandler"][1]["call_args"] = "(handler)" +defs["igAddSettingsHandler"][1]["cimguiname"] = "igAddSettingsHandler" +defs["igAddSettingsHandler"][1]["defaults"] = {} +defs["igAddSettingsHandler"][1]["funcname"] = "AddSettingsHandler" +defs["igAddSettingsHandler"][1]["location"] = "imgui_internal:2997" +defs["igAddSettingsHandler"][1]["namespace"] = "ImGui" +defs["igAddSettingsHandler"][1]["ov_cimguiname"] = "igAddSettingsHandler" +defs["igAddSettingsHandler"][1]["ret"] = "void" +defs["igAddSettingsHandler"][1]["signature"] = "(const ImGuiSettingsHandler*)" +defs["igAddSettingsHandler"][1]["stname"] = "" +defs["igAddSettingsHandler"]["(const ImGuiSettingsHandler*)"] = defs["igAddSettingsHandler"][1] defs["igAlignTextToFramePadding"] = {} defs["igAlignTextToFramePadding"][1] = {} defs["igAlignTextToFramePadding"][1]["args"] = "()" @@ -6614,6 +11228,35 @@ defs["igArrowButton"][1]["ret"] = "bool" defs["igArrowButton"][1]["signature"] = "(const char*,ImGuiDir)" defs["igArrowButton"][1]["stname"] = "" defs["igArrowButton"]["(const char*,ImGuiDir)"] = defs["igArrowButton"][1] +defs["igArrowButtonEx"] = {} +defs["igArrowButtonEx"][1] = {} +defs["igArrowButtonEx"][1]["args"] = "(const char* str_id,ImGuiDir dir,ImVec2 size_arg,ImGuiButtonFlags flags)" +defs["igArrowButtonEx"][1]["argsT"] = {} +defs["igArrowButtonEx"][1]["argsT"][1] = {} +defs["igArrowButtonEx"][1]["argsT"][1]["name"] = "str_id" +defs["igArrowButtonEx"][1]["argsT"][1]["type"] = "const char*" +defs["igArrowButtonEx"][1]["argsT"][2] = {} +defs["igArrowButtonEx"][1]["argsT"][2]["name"] = "dir" +defs["igArrowButtonEx"][1]["argsT"][2]["type"] = "ImGuiDir" +defs["igArrowButtonEx"][1]["argsT"][3] = {} +defs["igArrowButtonEx"][1]["argsT"][3]["name"] = "size_arg" +defs["igArrowButtonEx"][1]["argsT"][3]["type"] = "ImVec2" +defs["igArrowButtonEx"][1]["argsT"][4] = {} +defs["igArrowButtonEx"][1]["argsT"][4]["name"] = "flags" +defs["igArrowButtonEx"][1]["argsT"][4]["type"] = "ImGuiButtonFlags" +defs["igArrowButtonEx"][1]["argsoriginal"] = "(const char* str_id,ImGuiDir dir,ImVec2 size_arg,ImGuiButtonFlags flags=0)" +defs["igArrowButtonEx"][1]["call_args"] = "(str_id,dir,size_arg,flags)" +defs["igArrowButtonEx"][1]["cimguiname"] = "igArrowButtonEx" +defs["igArrowButtonEx"][1]["defaults"] = {} +defs["igArrowButtonEx"][1]["defaults"]["flags"] = "0" +defs["igArrowButtonEx"][1]["funcname"] = "ArrowButtonEx" +defs["igArrowButtonEx"][1]["location"] = "imgui_internal:3354" +defs["igArrowButtonEx"][1]["namespace"] = "ImGui" +defs["igArrowButtonEx"][1]["ov_cimguiname"] = "igArrowButtonEx" +defs["igArrowButtonEx"][1]["ret"] = "bool" +defs["igArrowButtonEx"][1]["signature"] = "(const char*,ImGuiDir,ImVec2,ImGuiButtonFlags)" +defs["igArrowButtonEx"][1]["stname"] = "" +defs["igArrowButtonEx"]["(const char*,ImGuiDir,ImVec2,ImGuiButtonFlags)"] = defs["igArrowButtonEx"][1] defs["igBegin"] = {} defs["igBegin"][1] = {} defs["igBegin"][1]["args"] = "(const char* name,bool* p_open,ImGuiWindowFlags flags)" @@ -6702,6 +11345,37 @@ defs["igBeginChild"][2]["signature"] = "(ImGuiID,const ImVec2,bool,ImGuiWindowFl defs["igBeginChild"][2]["stname"] = "" defs["igBeginChild"]["(ImGuiID,const ImVec2,bool,ImGuiWindowFlags)"] = defs["igBeginChild"][2] defs["igBeginChild"]["(const char*,const ImVec2,bool,ImGuiWindowFlags)"] = defs["igBeginChild"][1] +defs["igBeginChildEx"] = {} +defs["igBeginChildEx"][1] = {} +defs["igBeginChildEx"][1]["args"] = "(const char* name,ImGuiID id,const ImVec2 size_arg,bool border,ImGuiWindowFlags flags)" +defs["igBeginChildEx"][1]["argsT"] = {} +defs["igBeginChildEx"][1]["argsT"][1] = {} +defs["igBeginChildEx"][1]["argsT"][1]["name"] = "name" +defs["igBeginChildEx"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginChildEx"][1]["argsT"][2] = {} +defs["igBeginChildEx"][1]["argsT"][2]["name"] = "id" +defs["igBeginChildEx"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igBeginChildEx"][1]["argsT"][3] = {} +defs["igBeginChildEx"][1]["argsT"][3]["name"] = "size_arg" +defs["igBeginChildEx"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igBeginChildEx"][1]["argsT"][4] = {} +defs["igBeginChildEx"][1]["argsT"][4]["name"] = "border" +defs["igBeginChildEx"][1]["argsT"][4]["type"] = "bool" +defs["igBeginChildEx"][1]["argsT"][5] = {} +defs["igBeginChildEx"][1]["argsT"][5]["name"] = "flags" +defs["igBeginChildEx"][1]["argsT"][5]["type"] = "ImGuiWindowFlags" +defs["igBeginChildEx"][1]["argsoriginal"] = "(const char* name,ImGuiID id,const ImVec2& size_arg,bool border,ImGuiWindowFlags flags)" +defs["igBeginChildEx"][1]["call_args"] = "(name,id,size_arg,border,flags)" +defs["igBeginChildEx"][1]["cimguiname"] = "igBeginChildEx" +defs["igBeginChildEx"][1]["defaults"] = {} +defs["igBeginChildEx"][1]["funcname"] = "BeginChildEx" +defs["igBeginChildEx"][1]["location"] = "imgui_internal:3060" +defs["igBeginChildEx"][1]["namespace"] = "ImGui" +defs["igBeginChildEx"][1]["ov_cimguiname"] = "igBeginChildEx" +defs["igBeginChildEx"][1]["ret"] = "bool" +defs["igBeginChildEx"][1]["signature"] = "(const char*,ImGuiID,const ImVec2,bool,ImGuiWindowFlags)" +defs["igBeginChildEx"][1]["stname"] = "" +defs["igBeginChildEx"]["(const char*,ImGuiID,const ImVec2,bool,ImGuiWindowFlags)"] = defs["igBeginChildEx"][1] defs["igBeginChildFrame"] = {} defs["igBeginChildFrame"][1] = {} defs["igBeginChildFrame"][1]["args"] = "(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags)" @@ -6728,6 +11402,32 @@ defs["igBeginChildFrame"][1]["ret"] = "bool" defs["igBeginChildFrame"][1]["signature"] = "(ImGuiID,const ImVec2,ImGuiWindowFlags)" defs["igBeginChildFrame"][1]["stname"] = "" defs["igBeginChildFrame"]["(ImGuiID,const ImVec2,ImGuiWindowFlags)"] = defs["igBeginChildFrame"][1] +defs["igBeginColumns"] = {} +defs["igBeginColumns"][1] = {} +defs["igBeginColumns"][1]["args"] = "(const char* str_id,int count,ImGuiOldColumnFlags flags)" +defs["igBeginColumns"][1]["argsT"] = {} +defs["igBeginColumns"][1]["argsT"][1] = {} +defs["igBeginColumns"][1]["argsT"][1]["name"] = "str_id" +defs["igBeginColumns"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginColumns"][1]["argsT"][2] = {} +defs["igBeginColumns"][1]["argsT"][2]["name"] = "count" +defs["igBeginColumns"][1]["argsT"][2]["type"] = "int" +defs["igBeginColumns"][1]["argsT"][3] = {} +defs["igBeginColumns"][1]["argsT"][3]["name"] = "flags" +defs["igBeginColumns"][1]["argsT"][3]["type"] = "ImGuiOldColumnFlags" +defs["igBeginColumns"][1]["argsoriginal"] = "(const char* str_id,int count,ImGuiOldColumnFlags flags=0)" +defs["igBeginColumns"][1]["call_args"] = "(str_id,count,flags)" +defs["igBeginColumns"][1]["cimguiname"] = "igBeginColumns" +defs["igBeginColumns"][1]["defaults"] = {} +defs["igBeginColumns"][1]["defaults"]["flags"] = "0" +defs["igBeginColumns"][1]["funcname"] = "BeginColumns" +defs["igBeginColumns"][1]["location"] = "imgui_internal:3245" +defs["igBeginColumns"][1]["namespace"] = "ImGui" +defs["igBeginColumns"][1]["ov_cimguiname"] = "igBeginColumns" +defs["igBeginColumns"][1]["ret"] = "void" +defs["igBeginColumns"][1]["signature"] = "(const char*,int,ImGuiOldColumnFlags)" +defs["igBeginColumns"][1]["stname"] = "" +defs["igBeginColumns"]["(const char*,int,ImGuiOldColumnFlags)"] = defs["igBeginColumns"][1] defs["igBeginCombo"] = {} defs["igBeginCombo"][1] = {} defs["igBeginCombo"][1]["args"] = "(const char* label,const char* preview_value,ImGuiComboFlags flags)" @@ -6754,6 +11454,47 @@ defs["igBeginCombo"][1]["ret"] = "bool" defs["igBeginCombo"][1]["signature"] = "(const char*,const char*,ImGuiComboFlags)" defs["igBeginCombo"][1]["stname"] = "" defs["igBeginCombo"]["(const char*,const char*,ImGuiComboFlags)"] = defs["igBeginCombo"][1] +defs["igBeginComboPopup"] = {} +defs["igBeginComboPopup"][1] = {} +defs["igBeginComboPopup"][1]["args"] = "(ImGuiID popup_id,const ImRect bb,ImGuiComboFlags flags)" +defs["igBeginComboPopup"][1]["argsT"] = {} +defs["igBeginComboPopup"][1]["argsT"][1] = {} +defs["igBeginComboPopup"][1]["argsT"][1]["name"] = "popup_id" +defs["igBeginComboPopup"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igBeginComboPopup"][1]["argsT"][2] = {} +defs["igBeginComboPopup"][1]["argsT"][2]["name"] = "bb" +defs["igBeginComboPopup"][1]["argsT"][2]["type"] = "const ImRect" +defs["igBeginComboPopup"][1]["argsT"][3] = {} +defs["igBeginComboPopup"][1]["argsT"][3]["name"] = "flags" +defs["igBeginComboPopup"][1]["argsT"][3]["type"] = "ImGuiComboFlags" +defs["igBeginComboPopup"][1]["argsoriginal"] = "(ImGuiID popup_id,const ImRect& bb,ImGuiComboFlags flags)" +defs["igBeginComboPopup"][1]["call_args"] = "(popup_id,bb,flags)" +defs["igBeginComboPopup"][1]["cimguiname"] = "igBeginComboPopup" +defs["igBeginComboPopup"][1]["defaults"] = {} +defs["igBeginComboPopup"][1]["funcname"] = "BeginComboPopup" +defs["igBeginComboPopup"][1]["location"] = "imgui_internal:3080" +defs["igBeginComboPopup"][1]["namespace"] = "ImGui" +defs["igBeginComboPopup"][1]["ov_cimguiname"] = "igBeginComboPopup" +defs["igBeginComboPopup"][1]["ret"] = "bool" +defs["igBeginComboPopup"][1]["signature"] = "(ImGuiID,const ImRect,ImGuiComboFlags)" +defs["igBeginComboPopup"][1]["stname"] = "" +defs["igBeginComboPopup"]["(ImGuiID,const ImRect,ImGuiComboFlags)"] = defs["igBeginComboPopup"][1] +defs["igBeginComboPreview"] = {} +defs["igBeginComboPreview"][1] = {} +defs["igBeginComboPreview"][1]["args"] = "()" +defs["igBeginComboPreview"][1]["argsT"] = {} +defs["igBeginComboPreview"][1]["argsoriginal"] = "()" +defs["igBeginComboPreview"][1]["call_args"] = "()" +defs["igBeginComboPreview"][1]["cimguiname"] = "igBeginComboPreview" +defs["igBeginComboPreview"][1]["defaults"] = {} +defs["igBeginComboPreview"][1]["funcname"] = "BeginComboPreview" +defs["igBeginComboPreview"][1]["location"] = "imgui_internal:3081" +defs["igBeginComboPreview"][1]["namespace"] = "ImGui" +defs["igBeginComboPreview"][1]["ov_cimguiname"] = "igBeginComboPreview" +defs["igBeginComboPreview"][1]["ret"] = "bool" +defs["igBeginComboPreview"][1]["signature"] = "()" +defs["igBeginComboPreview"][1]["stname"] = "" +defs["igBeginComboPreview"]["()"] = defs["igBeginComboPreview"][1] defs["igBeginDisabled"] = {} defs["igBeginDisabled"][1] = {} defs["igBeginDisabled"][1]["args"] = "(bool disabled)" @@ -6774,6 +11515,66 @@ defs["igBeginDisabled"][1]["ret"] = "void" defs["igBeginDisabled"][1]["signature"] = "(bool)" defs["igBeginDisabled"][1]["stname"] = "" defs["igBeginDisabled"]["(bool)"] = defs["igBeginDisabled"][1] +defs["igBeginDockableDragDropSource"] = {} +defs["igBeginDockableDragDropSource"][1] = {} +defs["igBeginDockableDragDropSource"][1]["args"] = "(ImGuiWindow* window)" +defs["igBeginDockableDragDropSource"][1]["argsT"] = {} +defs["igBeginDockableDragDropSource"][1]["argsT"][1] = {} +defs["igBeginDockableDragDropSource"][1]["argsT"][1]["name"] = "window" +defs["igBeginDockableDragDropSource"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igBeginDockableDragDropSource"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igBeginDockableDragDropSource"][1]["call_args"] = "(window)" +defs["igBeginDockableDragDropSource"][1]["cimguiname"] = "igBeginDockableDragDropSource" +defs["igBeginDockableDragDropSource"][1]["defaults"] = {} +defs["igBeginDockableDragDropSource"][1]["funcname"] = "BeginDockableDragDropSource" +defs["igBeginDockableDragDropSource"][1]["location"] = "imgui_internal:3196" +defs["igBeginDockableDragDropSource"][1]["namespace"] = "ImGui" +defs["igBeginDockableDragDropSource"][1]["ov_cimguiname"] = "igBeginDockableDragDropSource" +defs["igBeginDockableDragDropSource"][1]["ret"] = "void" +defs["igBeginDockableDragDropSource"][1]["signature"] = "(ImGuiWindow*)" +defs["igBeginDockableDragDropSource"][1]["stname"] = "" +defs["igBeginDockableDragDropSource"]["(ImGuiWindow*)"] = defs["igBeginDockableDragDropSource"][1] +defs["igBeginDockableDragDropTarget"] = {} +defs["igBeginDockableDragDropTarget"][1] = {} +defs["igBeginDockableDragDropTarget"][1]["args"] = "(ImGuiWindow* window)" +defs["igBeginDockableDragDropTarget"][1]["argsT"] = {} +defs["igBeginDockableDragDropTarget"][1]["argsT"][1] = {} +defs["igBeginDockableDragDropTarget"][1]["argsT"][1]["name"] = "window" +defs["igBeginDockableDragDropTarget"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igBeginDockableDragDropTarget"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igBeginDockableDragDropTarget"][1]["call_args"] = "(window)" +defs["igBeginDockableDragDropTarget"][1]["cimguiname"] = "igBeginDockableDragDropTarget" +defs["igBeginDockableDragDropTarget"][1]["defaults"] = {} +defs["igBeginDockableDragDropTarget"][1]["funcname"] = "BeginDockableDragDropTarget" +defs["igBeginDockableDragDropTarget"][1]["location"] = "imgui_internal:3197" +defs["igBeginDockableDragDropTarget"][1]["namespace"] = "ImGui" +defs["igBeginDockableDragDropTarget"][1]["ov_cimguiname"] = "igBeginDockableDragDropTarget" +defs["igBeginDockableDragDropTarget"][1]["ret"] = "void" +defs["igBeginDockableDragDropTarget"][1]["signature"] = "(ImGuiWindow*)" +defs["igBeginDockableDragDropTarget"][1]["stname"] = "" +defs["igBeginDockableDragDropTarget"]["(ImGuiWindow*)"] = defs["igBeginDockableDragDropTarget"][1] +defs["igBeginDocked"] = {} +defs["igBeginDocked"][1] = {} +defs["igBeginDocked"][1]["args"] = "(ImGuiWindow* window,bool* p_open)" +defs["igBeginDocked"][1]["argsT"] = {} +defs["igBeginDocked"][1]["argsT"][1] = {} +defs["igBeginDocked"][1]["argsT"][1]["name"] = "window" +defs["igBeginDocked"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igBeginDocked"][1]["argsT"][2] = {} +defs["igBeginDocked"][1]["argsT"][2]["name"] = "p_open" +defs["igBeginDocked"][1]["argsT"][2]["type"] = "bool*" +defs["igBeginDocked"][1]["argsoriginal"] = "(ImGuiWindow* window,bool* p_open)" +defs["igBeginDocked"][1]["call_args"] = "(window,p_open)" +defs["igBeginDocked"][1]["cimguiname"] = "igBeginDocked" +defs["igBeginDocked"][1]["defaults"] = {} +defs["igBeginDocked"][1]["funcname"] = "BeginDocked" +defs["igBeginDocked"][1]["location"] = "imgui_internal:3195" +defs["igBeginDocked"][1]["namespace"] = "ImGui" +defs["igBeginDocked"][1]["ov_cimguiname"] = "igBeginDocked" +defs["igBeginDocked"][1]["ret"] = "void" +defs["igBeginDocked"][1]["signature"] = "(ImGuiWindow*,bool*)" +defs["igBeginDocked"][1]["stname"] = "" +defs["igBeginDocked"]["(ImGuiWindow*,bool*)"] = defs["igBeginDocked"][1] defs["igBeginDragDropSource"] = {} defs["igBeginDragDropSource"][1] = {} defs["igBeginDragDropSource"][1]["args"] = "(ImGuiDragDropFlags flags)" @@ -6810,6 +11611,28 @@ defs["igBeginDragDropTarget"][1]["ret"] = "bool" defs["igBeginDragDropTarget"][1]["signature"] = "()" defs["igBeginDragDropTarget"][1]["stname"] = "" defs["igBeginDragDropTarget"]["()"] = defs["igBeginDragDropTarget"][1] +defs["igBeginDragDropTargetCustom"] = {} +defs["igBeginDragDropTargetCustom"][1] = {} +defs["igBeginDragDropTargetCustom"][1]["args"] = "(const ImRect bb,ImGuiID id)" +defs["igBeginDragDropTargetCustom"][1]["argsT"] = {} +defs["igBeginDragDropTargetCustom"][1]["argsT"][1] = {} +defs["igBeginDragDropTargetCustom"][1]["argsT"][1]["name"] = "bb" +defs["igBeginDragDropTargetCustom"][1]["argsT"][1]["type"] = "const ImRect" +defs["igBeginDragDropTargetCustom"][1]["argsT"][2] = {} +defs["igBeginDragDropTargetCustom"][1]["argsT"][2]["name"] = "id" +defs["igBeginDragDropTargetCustom"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igBeginDragDropTargetCustom"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id)" +defs["igBeginDragDropTargetCustom"][1]["call_args"] = "(bb,id)" +defs["igBeginDragDropTargetCustom"][1]["cimguiname"] = "igBeginDragDropTargetCustom" +defs["igBeginDragDropTargetCustom"][1]["defaults"] = {} +defs["igBeginDragDropTargetCustom"][1]["funcname"] = "BeginDragDropTargetCustom" +defs["igBeginDragDropTargetCustom"][1]["location"] = "imgui_internal:3238" +defs["igBeginDragDropTargetCustom"][1]["namespace"] = "ImGui" +defs["igBeginDragDropTargetCustom"][1]["ov_cimguiname"] = "igBeginDragDropTargetCustom" +defs["igBeginDragDropTargetCustom"][1]["ret"] = "bool" +defs["igBeginDragDropTargetCustom"][1]["signature"] = "(const ImRect,ImGuiID)" +defs["igBeginDragDropTargetCustom"][1]["stname"] = "" +defs["igBeginDragDropTargetCustom"]["(const ImRect,ImGuiID)"] = defs["igBeginDragDropTargetCustom"][1] defs["igBeginGroup"] = {} defs["igBeginGroup"][1] = {} defs["igBeginGroup"][1]["args"] = "()" @@ -6904,6 +11727,32 @@ defs["igBeginMenuBar"][1]["ret"] = "bool" defs["igBeginMenuBar"][1]["signature"] = "()" defs["igBeginMenuBar"][1]["stname"] = "" defs["igBeginMenuBar"]["()"] = defs["igBeginMenuBar"][1] +defs["igBeginMenuEx"] = {} +defs["igBeginMenuEx"][1] = {} +defs["igBeginMenuEx"][1]["args"] = "(const char* label,const char* icon,bool enabled)" +defs["igBeginMenuEx"][1]["argsT"] = {} +defs["igBeginMenuEx"][1]["argsT"][1] = {} +defs["igBeginMenuEx"][1]["argsT"][1]["name"] = "label" +defs["igBeginMenuEx"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginMenuEx"][1]["argsT"][2] = {} +defs["igBeginMenuEx"][1]["argsT"][2]["name"] = "icon" +defs["igBeginMenuEx"][1]["argsT"][2]["type"] = "const char*" +defs["igBeginMenuEx"][1]["argsT"][3] = {} +defs["igBeginMenuEx"][1]["argsT"][3]["name"] = "enabled" +defs["igBeginMenuEx"][1]["argsT"][3]["type"] = "bool" +defs["igBeginMenuEx"][1]["argsoriginal"] = "(const char* label,const char* icon,bool enabled=true)" +defs["igBeginMenuEx"][1]["call_args"] = "(label,icon,enabled)" +defs["igBeginMenuEx"][1]["cimguiname"] = "igBeginMenuEx" +defs["igBeginMenuEx"][1]["defaults"] = {} +defs["igBeginMenuEx"][1]["defaults"]["enabled"] = "true" +defs["igBeginMenuEx"][1]["funcname"] = "BeginMenuEx" +defs["igBeginMenuEx"][1]["location"] = "imgui_internal:3076" +defs["igBeginMenuEx"][1]["namespace"] = "ImGui" +defs["igBeginMenuEx"][1]["ov_cimguiname"] = "igBeginMenuEx" +defs["igBeginMenuEx"][1]["ret"] = "bool" +defs["igBeginMenuEx"][1]["signature"] = "(const char*,const char*,bool)" +defs["igBeginMenuEx"][1]["stname"] = "" +defs["igBeginMenuEx"]["(const char*,const char*,bool)"] = defs["igBeginMenuEx"][1] defs["igBeginPopup"] = {} defs["igBeginPopup"][1] = {} defs["igBeginPopup"][1]["args"] = "(const char* str_id,ImGuiWindowFlags flags)" @@ -6999,6 +11848,28 @@ defs["igBeginPopupContextWindow"][1]["ret"] = "bool" defs["igBeginPopupContextWindow"][1]["signature"] = "(const char*,ImGuiPopupFlags)" defs["igBeginPopupContextWindow"][1]["stname"] = "" defs["igBeginPopupContextWindow"]["(const char*,ImGuiPopupFlags)"] = defs["igBeginPopupContextWindow"][1] +defs["igBeginPopupEx"] = {} +defs["igBeginPopupEx"][1] = {} +defs["igBeginPopupEx"][1]["args"] = "(ImGuiID id,ImGuiWindowFlags extra_flags)" +defs["igBeginPopupEx"][1]["argsT"] = {} +defs["igBeginPopupEx"][1]["argsT"][1] = {} +defs["igBeginPopupEx"][1]["argsT"][1]["name"] = "id" +defs["igBeginPopupEx"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igBeginPopupEx"][1]["argsT"][2] = {} +defs["igBeginPopupEx"][1]["argsT"][2]["name"] = "extra_flags" +defs["igBeginPopupEx"][1]["argsT"][2]["type"] = "ImGuiWindowFlags" +defs["igBeginPopupEx"][1]["argsoriginal"] = "(ImGuiID id,ImGuiWindowFlags extra_flags)" +defs["igBeginPopupEx"][1]["call_args"] = "(id,extra_flags)" +defs["igBeginPopupEx"][1]["cimguiname"] = "igBeginPopupEx" +defs["igBeginPopupEx"][1]["defaults"] = {} +defs["igBeginPopupEx"][1]["funcname"] = "BeginPopupEx" +defs["igBeginPopupEx"][1]["location"] = "imgui_internal:3066" +defs["igBeginPopupEx"][1]["namespace"] = "ImGui" +defs["igBeginPopupEx"][1]["ov_cimguiname"] = "igBeginPopupEx" +defs["igBeginPopupEx"][1]["ret"] = "bool" +defs["igBeginPopupEx"][1]["signature"] = "(ImGuiID,ImGuiWindowFlags)" +defs["igBeginPopupEx"][1]["stname"] = "" +defs["igBeginPopupEx"]["(ImGuiID,ImGuiWindowFlags)"] = defs["igBeginPopupEx"][1] defs["igBeginPopupModal"] = {} defs["igBeginPopupModal"][1] = {} defs["igBeginPopupModal"][1]["args"] = "(const char* name,bool* p_open,ImGuiWindowFlags flags)" @@ -7049,6 +11920,34 @@ defs["igBeginTabBar"][1]["ret"] = "bool" defs["igBeginTabBar"][1]["signature"] = "(const char*,ImGuiTabBarFlags)" defs["igBeginTabBar"][1]["stname"] = "" defs["igBeginTabBar"]["(const char*,ImGuiTabBarFlags)"] = defs["igBeginTabBar"][1] +defs["igBeginTabBarEx"] = {} +defs["igBeginTabBarEx"][1] = {} +defs["igBeginTabBarEx"][1]["args"] = "(ImGuiTabBar* tab_bar,const ImRect bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node)" +defs["igBeginTabBarEx"][1]["argsT"] = {} +defs["igBeginTabBarEx"][1]["argsT"][1] = {} +defs["igBeginTabBarEx"][1]["argsT"][1]["name"] = "tab_bar" +defs["igBeginTabBarEx"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igBeginTabBarEx"][1]["argsT"][2] = {} +defs["igBeginTabBarEx"][1]["argsT"][2]["name"] = "bb" +defs["igBeginTabBarEx"][1]["argsT"][2]["type"] = "const ImRect" +defs["igBeginTabBarEx"][1]["argsT"][3] = {} +defs["igBeginTabBarEx"][1]["argsT"][3]["name"] = "flags" +defs["igBeginTabBarEx"][1]["argsT"][3]["type"] = "ImGuiTabBarFlags" +defs["igBeginTabBarEx"][1]["argsT"][4] = {} +defs["igBeginTabBarEx"][1]["argsT"][4]["name"] = "dock_node" +defs["igBeginTabBarEx"][1]["argsT"][4]["type"] = "ImGuiDockNode*" +defs["igBeginTabBarEx"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar,const ImRect& bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node)" +defs["igBeginTabBarEx"][1]["call_args"] = "(tab_bar,bb,flags,dock_node)" +defs["igBeginTabBarEx"][1]["cimguiname"] = "igBeginTabBarEx" +defs["igBeginTabBarEx"][1]["defaults"] = {} +defs["igBeginTabBarEx"][1]["funcname"] = "BeginTabBarEx" +defs["igBeginTabBarEx"][1]["location"] = "imgui_internal:3309" +defs["igBeginTabBarEx"][1]["namespace"] = "ImGui" +defs["igBeginTabBarEx"][1]["ov_cimguiname"] = "igBeginTabBarEx" +defs["igBeginTabBarEx"][1]["ret"] = "bool" +defs["igBeginTabBarEx"][1]["signature"] = "(ImGuiTabBar*,const ImRect,ImGuiTabBarFlags,ImGuiDockNode*)" +defs["igBeginTabBarEx"][1]["stname"] = "" +defs["igBeginTabBarEx"]["(ImGuiTabBar*,const ImRect,ImGuiTabBarFlags,ImGuiDockNode*)"] = defs["igBeginTabBarEx"][1] defs["igBeginTabItem"] = {} defs["igBeginTabItem"][1] = {} defs["igBeginTabItem"][1]["args"] = "(const char* label,bool* p_open,ImGuiTabItemFlags flags)" @@ -7110,6 +12009,43 @@ defs["igBeginTable"][1]["ret"] = "bool" defs["igBeginTable"][1]["signature"] = "(const char*,int,ImGuiTableFlags,const ImVec2,float)" defs["igBeginTable"][1]["stname"] = "" defs["igBeginTable"]["(const char*,int,ImGuiTableFlags,const ImVec2,float)"] = defs["igBeginTable"][1] +defs["igBeginTableEx"] = {} +defs["igBeginTableEx"][1] = {} +defs["igBeginTableEx"][1]["args"] = "(const char* name,ImGuiID id,int columns_count,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width)" +defs["igBeginTableEx"][1]["argsT"] = {} +defs["igBeginTableEx"][1]["argsT"][1] = {} +defs["igBeginTableEx"][1]["argsT"][1]["name"] = "name" +defs["igBeginTableEx"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginTableEx"][1]["argsT"][2] = {} +defs["igBeginTableEx"][1]["argsT"][2]["name"] = "id" +defs["igBeginTableEx"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igBeginTableEx"][1]["argsT"][3] = {} +defs["igBeginTableEx"][1]["argsT"][3]["name"] = "columns_count" +defs["igBeginTableEx"][1]["argsT"][3]["type"] = "int" +defs["igBeginTableEx"][1]["argsT"][4] = {} +defs["igBeginTableEx"][1]["argsT"][4]["name"] = "flags" +defs["igBeginTableEx"][1]["argsT"][4]["type"] = "ImGuiTableFlags" +defs["igBeginTableEx"][1]["argsT"][5] = {} +defs["igBeginTableEx"][1]["argsT"][5]["name"] = "outer_size" +defs["igBeginTableEx"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igBeginTableEx"][1]["argsT"][6] = {} +defs["igBeginTableEx"][1]["argsT"][6]["name"] = "inner_width" +defs["igBeginTableEx"][1]["argsT"][6]["type"] = "float" +defs["igBeginTableEx"][1]["argsoriginal"] = "(const char* name,ImGuiID id,int columns_count,ImGuiTableFlags flags=0,const ImVec2& outer_size=ImVec2(0,0),float inner_width=0.0f)" +defs["igBeginTableEx"][1]["call_args"] = "(name,id,columns_count,flags,outer_size,inner_width)" +defs["igBeginTableEx"][1]["cimguiname"] = "igBeginTableEx" +defs["igBeginTableEx"][1]["defaults"] = {} +defs["igBeginTableEx"][1]["defaults"]["flags"] = "0" +defs["igBeginTableEx"][1]["defaults"]["inner_width"] = "0.0f" +defs["igBeginTableEx"][1]["defaults"]["outer_size"] = "ImVec2(0,0)" +defs["igBeginTableEx"][1]["funcname"] = "BeginTableEx" +defs["igBeginTableEx"][1]["location"] = "imgui_internal:3267" +defs["igBeginTableEx"][1]["namespace"] = "ImGui" +defs["igBeginTableEx"][1]["ov_cimguiname"] = "igBeginTableEx" +defs["igBeginTableEx"][1]["ret"] = "bool" +defs["igBeginTableEx"][1]["signature"] = "(const char*,ImGuiID,int,ImGuiTableFlags,const ImVec2,float)" +defs["igBeginTableEx"][1]["stname"] = "" +defs["igBeginTableEx"]["(const char*,ImGuiID,int,ImGuiTableFlags,const ImVec2,float)"] = defs["igBeginTableEx"][1] defs["igBeginTooltip"] = {} defs["igBeginTooltip"][1] = {} defs["igBeginTooltip"][1]["args"] = "()" @@ -7126,6 +12062,138 @@ defs["igBeginTooltip"][1]["ret"] = "void" defs["igBeginTooltip"][1]["signature"] = "()" defs["igBeginTooltip"][1]["stname"] = "" defs["igBeginTooltip"]["()"] = defs["igBeginTooltip"][1] +defs["igBeginTooltipEx"] = {} +defs["igBeginTooltipEx"][1] = {} +defs["igBeginTooltipEx"][1]["args"] = "(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags)" +defs["igBeginTooltipEx"][1]["argsT"] = {} +defs["igBeginTooltipEx"][1]["argsT"][1] = {} +defs["igBeginTooltipEx"][1]["argsT"][1]["name"] = "tooltip_flags" +defs["igBeginTooltipEx"][1]["argsT"][1]["type"] = "ImGuiTooltipFlags" +defs["igBeginTooltipEx"][1]["argsT"][2] = {} +defs["igBeginTooltipEx"][1]["argsT"][2]["name"] = "extra_window_flags" +defs["igBeginTooltipEx"][1]["argsT"][2]["type"] = "ImGuiWindowFlags" +defs["igBeginTooltipEx"][1]["argsoriginal"] = "(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags)" +defs["igBeginTooltipEx"][1]["call_args"] = "(tooltip_flags,extra_window_flags)" +defs["igBeginTooltipEx"][1]["cimguiname"] = "igBeginTooltipEx" +defs["igBeginTooltipEx"][1]["defaults"] = {} +defs["igBeginTooltipEx"][1]["funcname"] = "BeginTooltipEx" +defs["igBeginTooltipEx"][1]["location"] = "imgui_internal:3067" +defs["igBeginTooltipEx"][1]["namespace"] = "ImGui" +defs["igBeginTooltipEx"][1]["ov_cimguiname"] = "igBeginTooltipEx" +defs["igBeginTooltipEx"][1]["ret"] = "void" +defs["igBeginTooltipEx"][1]["signature"] = "(ImGuiTooltipFlags,ImGuiWindowFlags)" +defs["igBeginTooltipEx"][1]["stname"] = "" +defs["igBeginTooltipEx"]["(ImGuiTooltipFlags,ImGuiWindowFlags)"] = defs["igBeginTooltipEx"][1] +defs["igBeginViewportSideBar"] = {} +defs["igBeginViewportSideBar"][1] = {} +defs["igBeginViewportSideBar"][1]["args"] = "(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags)" +defs["igBeginViewportSideBar"][1]["argsT"] = {} +defs["igBeginViewportSideBar"][1]["argsT"][1] = {} +defs["igBeginViewportSideBar"][1]["argsT"][1]["name"] = "name" +defs["igBeginViewportSideBar"][1]["argsT"][1]["type"] = "const char*" +defs["igBeginViewportSideBar"][1]["argsT"][2] = {} +defs["igBeginViewportSideBar"][1]["argsT"][2]["name"] = "viewport" +defs["igBeginViewportSideBar"][1]["argsT"][2]["type"] = "ImGuiViewport*" +defs["igBeginViewportSideBar"][1]["argsT"][3] = {} +defs["igBeginViewportSideBar"][1]["argsT"][3]["name"] = "dir" +defs["igBeginViewportSideBar"][1]["argsT"][3]["type"] = "ImGuiDir" +defs["igBeginViewportSideBar"][1]["argsT"][4] = {} +defs["igBeginViewportSideBar"][1]["argsT"][4]["name"] = "size" +defs["igBeginViewportSideBar"][1]["argsT"][4]["type"] = "float" +defs["igBeginViewportSideBar"][1]["argsT"][5] = {} +defs["igBeginViewportSideBar"][1]["argsT"][5]["name"] = "window_flags" +defs["igBeginViewportSideBar"][1]["argsT"][5]["type"] = "ImGuiWindowFlags" +defs["igBeginViewportSideBar"][1]["argsoriginal"] = "(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags)" +defs["igBeginViewportSideBar"][1]["call_args"] = "(name,viewport,dir,size,window_flags)" +defs["igBeginViewportSideBar"][1]["cimguiname"] = "igBeginViewportSideBar" +defs["igBeginViewportSideBar"][1]["defaults"] = {} +defs["igBeginViewportSideBar"][1]["funcname"] = "BeginViewportSideBar" +defs["igBeginViewportSideBar"][1]["location"] = "imgui_internal:3075" +defs["igBeginViewportSideBar"][1]["namespace"] = "ImGui" +defs["igBeginViewportSideBar"][1]["ov_cimguiname"] = "igBeginViewportSideBar" +defs["igBeginViewportSideBar"][1]["ret"] = "bool" +defs["igBeginViewportSideBar"][1]["signature"] = "(const char*,ImGuiViewport*,ImGuiDir,float,ImGuiWindowFlags)" +defs["igBeginViewportSideBar"][1]["stname"] = "" +defs["igBeginViewportSideBar"]["(const char*,ImGuiViewport*,ImGuiDir,float,ImGuiWindowFlags)"] = defs["igBeginViewportSideBar"][1] +defs["igBringWindowToDisplayBack"] = {} +defs["igBringWindowToDisplayBack"][1] = {} +defs["igBringWindowToDisplayBack"][1]["args"] = "(ImGuiWindow* window)" +defs["igBringWindowToDisplayBack"][1]["argsT"] = {} +defs["igBringWindowToDisplayBack"][1]["argsT"][1] = {} +defs["igBringWindowToDisplayBack"][1]["argsT"][1]["name"] = "window" +defs["igBringWindowToDisplayBack"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igBringWindowToDisplayBack"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igBringWindowToDisplayBack"][1]["call_args"] = "(window)" +defs["igBringWindowToDisplayBack"][1]["cimguiname"] = "igBringWindowToDisplayBack" +defs["igBringWindowToDisplayBack"][1]["defaults"] = {} +defs["igBringWindowToDisplayBack"][1]["funcname"] = "BringWindowToDisplayBack" +defs["igBringWindowToDisplayBack"][1]["location"] = "imgui_internal:2954" +defs["igBringWindowToDisplayBack"][1]["namespace"] = "ImGui" +defs["igBringWindowToDisplayBack"][1]["ov_cimguiname"] = "igBringWindowToDisplayBack" +defs["igBringWindowToDisplayBack"][1]["ret"] = "void" +defs["igBringWindowToDisplayBack"][1]["signature"] = "(ImGuiWindow*)" +defs["igBringWindowToDisplayBack"][1]["stname"] = "" +defs["igBringWindowToDisplayBack"]["(ImGuiWindow*)"] = defs["igBringWindowToDisplayBack"][1] +defs["igBringWindowToDisplayBehind"] = {} +defs["igBringWindowToDisplayBehind"][1] = {} +defs["igBringWindowToDisplayBehind"][1]["args"] = "(ImGuiWindow* window,ImGuiWindow* above_window)" +defs["igBringWindowToDisplayBehind"][1]["argsT"] = {} +defs["igBringWindowToDisplayBehind"][1]["argsT"][1] = {} +defs["igBringWindowToDisplayBehind"][1]["argsT"][1]["name"] = "window" +defs["igBringWindowToDisplayBehind"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igBringWindowToDisplayBehind"][1]["argsT"][2] = {} +defs["igBringWindowToDisplayBehind"][1]["argsT"][2]["name"] = "above_window" +defs["igBringWindowToDisplayBehind"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igBringWindowToDisplayBehind"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiWindow* above_window)" +defs["igBringWindowToDisplayBehind"][1]["call_args"] = "(window,above_window)" +defs["igBringWindowToDisplayBehind"][1]["cimguiname"] = "igBringWindowToDisplayBehind" +defs["igBringWindowToDisplayBehind"][1]["defaults"] = {} +defs["igBringWindowToDisplayBehind"][1]["funcname"] = "BringWindowToDisplayBehind" +defs["igBringWindowToDisplayBehind"][1]["location"] = "imgui_internal:2955" +defs["igBringWindowToDisplayBehind"][1]["namespace"] = "ImGui" +defs["igBringWindowToDisplayBehind"][1]["ov_cimguiname"] = "igBringWindowToDisplayBehind" +defs["igBringWindowToDisplayBehind"][1]["ret"] = "void" +defs["igBringWindowToDisplayBehind"][1]["signature"] = "(ImGuiWindow*,ImGuiWindow*)" +defs["igBringWindowToDisplayBehind"][1]["stname"] = "" +defs["igBringWindowToDisplayBehind"]["(ImGuiWindow*,ImGuiWindow*)"] = defs["igBringWindowToDisplayBehind"][1] +defs["igBringWindowToDisplayFront"] = {} +defs["igBringWindowToDisplayFront"][1] = {} +defs["igBringWindowToDisplayFront"][1]["args"] = "(ImGuiWindow* window)" +defs["igBringWindowToDisplayFront"][1]["argsT"] = {} +defs["igBringWindowToDisplayFront"][1]["argsT"][1] = {} +defs["igBringWindowToDisplayFront"][1]["argsT"][1]["name"] = "window" +defs["igBringWindowToDisplayFront"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igBringWindowToDisplayFront"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igBringWindowToDisplayFront"][1]["call_args"] = "(window)" +defs["igBringWindowToDisplayFront"][1]["cimguiname"] = "igBringWindowToDisplayFront" +defs["igBringWindowToDisplayFront"][1]["defaults"] = {} +defs["igBringWindowToDisplayFront"][1]["funcname"] = "BringWindowToDisplayFront" +defs["igBringWindowToDisplayFront"][1]["location"] = "imgui_internal:2953" +defs["igBringWindowToDisplayFront"][1]["namespace"] = "ImGui" +defs["igBringWindowToDisplayFront"][1]["ov_cimguiname"] = "igBringWindowToDisplayFront" +defs["igBringWindowToDisplayFront"][1]["ret"] = "void" +defs["igBringWindowToDisplayFront"][1]["signature"] = "(ImGuiWindow*)" +defs["igBringWindowToDisplayFront"][1]["stname"] = "" +defs["igBringWindowToDisplayFront"]["(ImGuiWindow*)"] = defs["igBringWindowToDisplayFront"][1] +defs["igBringWindowToFocusFront"] = {} +defs["igBringWindowToFocusFront"][1] = {} +defs["igBringWindowToFocusFront"][1]["args"] = "(ImGuiWindow* window)" +defs["igBringWindowToFocusFront"][1]["argsT"] = {} +defs["igBringWindowToFocusFront"][1]["argsT"][1] = {} +defs["igBringWindowToFocusFront"][1]["argsT"][1]["name"] = "window" +defs["igBringWindowToFocusFront"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igBringWindowToFocusFront"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igBringWindowToFocusFront"][1]["call_args"] = "(window)" +defs["igBringWindowToFocusFront"][1]["cimguiname"] = "igBringWindowToFocusFront" +defs["igBringWindowToFocusFront"][1]["defaults"] = {} +defs["igBringWindowToFocusFront"][1]["funcname"] = "BringWindowToFocusFront" +defs["igBringWindowToFocusFront"][1]["location"] = "imgui_internal:2952" +defs["igBringWindowToFocusFront"][1]["namespace"] = "ImGui" +defs["igBringWindowToFocusFront"][1]["ov_cimguiname"] = "igBringWindowToFocusFront" +defs["igBringWindowToFocusFront"][1]["ret"] = "void" +defs["igBringWindowToFocusFront"][1]["signature"] = "(ImGuiWindow*)" +defs["igBringWindowToFocusFront"][1]["stname"] = "" +defs["igBringWindowToFocusFront"]["(ImGuiWindow*)"] = defs["igBringWindowToFocusFront"][1] defs["igBullet"] = {} defs["igBullet"][1] = {} defs["igBullet"][1]["args"] = "()" @@ -7210,6 +12278,94 @@ defs["igButton"][1]["ret"] = "bool" defs["igButton"][1]["signature"] = "(const char*,const ImVec2)" defs["igButton"][1]["stname"] = "" defs["igButton"]["(const char*,const ImVec2)"] = defs["igButton"][1] +defs["igButtonBehavior"] = {} +defs["igButtonBehavior"][1] = {} +defs["igButtonBehavior"][1]["args"] = "(const ImRect bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags)" +defs["igButtonBehavior"][1]["argsT"] = {} +defs["igButtonBehavior"][1]["argsT"][1] = {} +defs["igButtonBehavior"][1]["argsT"][1]["name"] = "bb" +defs["igButtonBehavior"][1]["argsT"][1]["type"] = "const ImRect" +defs["igButtonBehavior"][1]["argsT"][2] = {} +defs["igButtonBehavior"][1]["argsT"][2]["name"] = "id" +defs["igButtonBehavior"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igButtonBehavior"][1]["argsT"][3] = {} +defs["igButtonBehavior"][1]["argsT"][3]["name"] = "out_hovered" +defs["igButtonBehavior"][1]["argsT"][3]["type"] = "bool*" +defs["igButtonBehavior"][1]["argsT"][4] = {} +defs["igButtonBehavior"][1]["argsT"][4]["name"] = "out_held" +defs["igButtonBehavior"][1]["argsT"][4]["type"] = "bool*" +defs["igButtonBehavior"][1]["argsT"][5] = {} +defs["igButtonBehavior"][1]["argsT"][5]["name"] = "flags" +defs["igButtonBehavior"][1]["argsT"][5]["type"] = "ImGuiButtonFlags" +defs["igButtonBehavior"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags=0)" +defs["igButtonBehavior"][1]["call_args"] = "(bb,id,out_hovered,out_held,flags)" +defs["igButtonBehavior"][1]["cimguiname"] = "igButtonBehavior" +defs["igButtonBehavior"][1]["defaults"] = {} +defs["igButtonBehavior"][1]["defaults"]["flags"] = "0" +defs["igButtonBehavior"][1]["funcname"] = "ButtonBehavior" +defs["igButtonBehavior"][1]["location"] = "imgui_internal:3367" +defs["igButtonBehavior"][1]["namespace"] = "ImGui" +defs["igButtonBehavior"][1]["ov_cimguiname"] = "igButtonBehavior" +defs["igButtonBehavior"][1]["ret"] = "bool" +defs["igButtonBehavior"][1]["signature"] = "(const ImRect,ImGuiID,bool*,bool*,ImGuiButtonFlags)" +defs["igButtonBehavior"][1]["stname"] = "" +defs["igButtonBehavior"]["(const ImRect,ImGuiID,bool*,bool*,ImGuiButtonFlags)"] = defs["igButtonBehavior"][1] +defs["igButtonEx"] = {} +defs["igButtonEx"][1] = {} +defs["igButtonEx"][1]["args"] = "(const char* label,const ImVec2 size_arg,ImGuiButtonFlags flags)" +defs["igButtonEx"][1]["argsT"] = {} +defs["igButtonEx"][1]["argsT"][1] = {} +defs["igButtonEx"][1]["argsT"][1]["name"] = "label" +defs["igButtonEx"][1]["argsT"][1]["type"] = "const char*" +defs["igButtonEx"][1]["argsT"][2] = {} +defs["igButtonEx"][1]["argsT"][2]["name"] = "size_arg" +defs["igButtonEx"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igButtonEx"][1]["argsT"][3] = {} +defs["igButtonEx"][1]["argsT"][3]["name"] = "flags" +defs["igButtonEx"][1]["argsT"][3]["type"] = "ImGuiButtonFlags" +defs["igButtonEx"][1]["argsoriginal"] = "(const char* label,const ImVec2& size_arg=ImVec2(0,0),ImGuiButtonFlags flags=0)" +defs["igButtonEx"][1]["call_args"] = "(label,size_arg,flags)" +defs["igButtonEx"][1]["cimguiname"] = "igButtonEx" +defs["igButtonEx"][1]["defaults"] = {} +defs["igButtonEx"][1]["defaults"]["flags"] = "0" +defs["igButtonEx"][1]["defaults"]["size_arg"] = "ImVec2(0,0)" +defs["igButtonEx"][1]["funcname"] = "ButtonEx" +defs["igButtonEx"][1]["location"] = "imgui_internal:3351" +defs["igButtonEx"][1]["namespace"] = "ImGui" +defs["igButtonEx"][1]["ov_cimguiname"] = "igButtonEx" +defs["igButtonEx"][1]["ret"] = "bool" +defs["igButtonEx"][1]["signature"] = "(const char*,const ImVec2,ImGuiButtonFlags)" +defs["igButtonEx"][1]["stname"] = "" +defs["igButtonEx"]["(const char*,const ImVec2,ImGuiButtonFlags)"] = defs["igButtonEx"][1] +defs["igCalcItemSize"] = {} +defs["igCalcItemSize"][1] = {} +defs["igCalcItemSize"][1]["args"] = "(ImVec2 *pOut,ImVec2 size,float default_w,float default_h)" +defs["igCalcItemSize"][1]["argsT"] = {} +defs["igCalcItemSize"][1]["argsT"][1] = {} +defs["igCalcItemSize"][1]["argsT"][1]["name"] = "pOut" +defs["igCalcItemSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igCalcItemSize"][1]["argsT"][2] = {} +defs["igCalcItemSize"][1]["argsT"][2]["name"] = "size" +defs["igCalcItemSize"][1]["argsT"][2]["type"] = "ImVec2" +defs["igCalcItemSize"][1]["argsT"][3] = {} +defs["igCalcItemSize"][1]["argsT"][3]["name"] = "default_w" +defs["igCalcItemSize"][1]["argsT"][3]["type"] = "float" +defs["igCalcItemSize"][1]["argsT"][4] = {} +defs["igCalcItemSize"][1]["argsT"][4]["name"] = "default_h" +defs["igCalcItemSize"][1]["argsT"][4]["type"] = "float" +defs["igCalcItemSize"][1]["argsoriginal"] = "(ImVec2 size,float default_w,float default_h)" +defs["igCalcItemSize"][1]["call_args"] = "(size,default_w,default_h)" +defs["igCalcItemSize"][1]["cimguiname"] = "igCalcItemSize" +defs["igCalcItemSize"][1]["defaults"] = {} +defs["igCalcItemSize"][1]["funcname"] = "CalcItemSize" +defs["igCalcItemSize"][1]["location"] = "imgui_internal:3042" +defs["igCalcItemSize"][1]["namespace"] = "ImGui" +defs["igCalcItemSize"][1]["nonUDT"] = 1 +defs["igCalcItemSize"][1]["ov_cimguiname"] = "igCalcItemSize" +defs["igCalcItemSize"][1]["ret"] = "void" +defs["igCalcItemSize"][1]["signature"] = "(ImVec2,float,float)" +defs["igCalcItemSize"][1]["stname"] = "" +defs["igCalcItemSize"]["(ImVec2,float,float)"] = defs["igCalcItemSize"][1] defs["igCalcItemWidth"] = {} defs["igCalcItemWidth"][1] = {} defs["igCalcItemWidth"][1]["args"] = "()" @@ -7226,6 +12382,31 @@ defs["igCalcItemWidth"][1]["ret"] = "float" defs["igCalcItemWidth"][1]["signature"] = "()" defs["igCalcItemWidth"][1]["stname"] = "" defs["igCalcItemWidth"]["()"] = defs["igCalcItemWidth"][1] +defs["igCalcRoundingFlagsForRectInRect"] = {} +defs["igCalcRoundingFlagsForRectInRect"][1] = {} +defs["igCalcRoundingFlagsForRectInRect"][1]["args"] = "(const ImRect r_in,const ImRect r_outer,float threshold)" +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"] = {} +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"][1] = {} +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"][1]["name"] = "r_in" +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"][1]["type"] = "const ImRect" +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"][2] = {} +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"][2]["name"] = "r_outer" +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"][2]["type"] = "const ImRect" +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"][3] = {} +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"][3]["name"] = "threshold" +defs["igCalcRoundingFlagsForRectInRect"][1]["argsT"][3]["type"] = "float" +defs["igCalcRoundingFlagsForRectInRect"][1]["argsoriginal"] = "(const ImRect& r_in,const ImRect& r_outer,float threshold)" +defs["igCalcRoundingFlagsForRectInRect"][1]["call_args"] = "(r_in,r_outer,threshold)" +defs["igCalcRoundingFlagsForRectInRect"][1]["cimguiname"] = "igCalcRoundingFlagsForRectInRect" +defs["igCalcRoundingFlagsForRectInRect"][1]["defaults"] = {} +defs["igCalcRoundingFlagsForRectInRect"][1]["funcname"] = "CalcRoundingFlagsForRectInRect" +defs["igCalcRoundingFlagsForRectInRect"][1]["location"] = "imgui_internal:3347" +defs["igCalcRoundingFlagsForRectInRect"][1]["namespace"] = "ImGui" +defs["igCalcRoundingFlagsForRectInRect"][1]["ov_cimguiname"] = "igCalcRoundingFlagsForRectInRect" +defs["igCalcRoundingFlagsForRectInRect"][1]["ret"] = "ImDrawFlags" +defs["igCalcRoundingFlagsForRectInRect"][1]["signature"] = "(const ImRect,const ImRect,float)" +defs["igCalcRoundingFlagsForRectInRect"][1]["stname"] = "" +defs["igCalcRoundingFlagsForRectInRect"]["(const ImRect,const ImRect,float)"] = defs["igCalcRoundingFlagsForRectInRect"][1] defs["igCalcTextSize"] = {} defs["igCalcTextSize"][1] = {} defs["igCalcTextSize"][1]["args"] = "(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)" @@ -7261,6 +12442,101 @@ defs["igCalcTextSize"][1]["ret"] = "void" defs["igCalcTextSize"][1]["signature"] = "(const char*,const char*,bool,float)" defs["igCalcTextSize"][1]["stname"] = "" defs["igCalcTextSize"]["(const char*,const char*,bool,float)"] = defs["igCalcTextSize"][1] +defs["igCalcTypematicRepeatAmount"] = {} +defs["igCalcTypematicRepeatAmount"][1] = {} +defs["igCalcTypematicRepeatAmount"][1]["args"] = "(float t0,float t1,float repeat_delay,float repeat_rate)" +defs["igCalcTypematicRepeatAmount"][1]["argsT"] = {} +defs["igCalcTypematicRepeatAmount"][1]["argsT"][1] = {} +defs["igCalcTypematicRepeatAmount"][1]["argsT"][1]["name"] = "t0" +defs["igCalcTypematicRepeatAmount"][1]["argsT"][1]["type"] = "float" +defs["igCalcTypematicRepeatAmount"][1]["argsT"][2] = {} +defs["igCalcTypematicRepeatAmount"][1]["argsT"][2]["name"] = "t1" +defs["igCalcTypematicRepeatAmount"][1]["argsT"][2]["type"] = "float" +defs["igCalcTypematicRepeatAmount"][1]["argsT"][3] = {} +defs["igCalcTypematicRepeatAmount"][1]["argsT"][3]["name"] = "repeat_delay" +defs["igCalcTypematicRepeatAmount"][1]["argsT"][3]["type"] = "float" +defs["igCalcTypematicRepeatAmount"][1]["argsT"][4] = {} +defs["igCalcTypematicRepeatAmount"][1]["argsT"][4]["name"] = "repeat_rate" +defs["igCalcTypematicRepeatAmount"][1]["argsT"][4]["type"] = "float" +defs["igCalcTypematicRepeatAmount"][1]["argsoriginal"] = "(float t0,float t1,float repeat_delay,float repeat_rate)" +defs["igCalcTypematicRepeatAmount"][1]["call_args"] = "(t0,t1,repeat_delay,repeat_rate)" +defs["igCalcTypematicRepeatAmount"][1]["cimguiname"] = "igCalcTypematicRepeatAmount" +defs["igCalcTypematicRepeatAmount"][1]["defaults"] = {} +defs["igCalcTypematicRepeatAmount"][1]["funcname"] = "CalcTypematicRepeatAmount" +defs["igCalcTypematicRepeatAmount"][1]["location"] = "imgui_internal:3122" +defs["igCalcTypematicRepeatAmount"][1]["namespace"] = "ImGui" +defs["igCalcTypematicRepeatAmount"][1]["ov_cimguiname"] = "igCalcTypematicRepeatAmount" +defs["igCalcTypematicRepeatAmount"][1]["ret"] = "int" +defs["igCalcTypematicRepeatAmount"][1]["signature"] = "(float,float,float,float)" +defs["igCalcTypematicRepeatAmount"][1]["stname"] = "" +defs["igCalcTypematicRepeatAmount"]["(float,float,float,float)"] = defs["igCalcTypematicRepeatAmount"][1] +defs["igCalcWindowNextAutoFitSize"] = {} +defs["igCalcWindowNextAutoFitSize"][1] = {} +defs["igCalcWindowNextAutoFitSize"][1]["args"] = "(ImVec2 *pOut,ImGuiWindow* window)" +defs["igCalcWindowNextAutoFitSize"][1]["argsT"] = {} +defs["igCalcWindowNextAutoFitSize"][1]["argsT"][1] = {} +defs["igCalcWindowNextAutoFitSize"][1]["argsT"][1]["name"] = "pOut" +defs["igCalcWindowNextAutoFitSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igCalcWindowNextAutoFitSize"][1]["argsT"][2] = {} +defs["igCalcWindowNextAutoFitSize"][1]["argsT"][2]["name"] = "window" +defs["igCalcWindowNextAutoFitSize"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igCalcWindowNextAutoFitSize"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igCalcWindowNextAutoFitSize"][1]["call_args"] = "(window)" +defs["igCalcWindowNextAutoFitSize"][1]["cimguiname"] = "igCalcWindowNextAutoFitSize" +defs["igCalcWindowNextAutoFitSize"][1]["defaults"] = {} +defs["igCalcWindowNextAutoFitSize"][1]["funcname"] = "CalcWindowNextAutoFitSize" +defs["igCalcWindowNextAutoFitSize"][1]["location"] = "imgui_internal:2937" +defs["igCalcWindowNextAutoFitSize"][1]["namespace"] = "ImGui" +defs["igCalcWindowNextAutoFitSize"][1]["nonUDT"] = 1 +defs["igCalcWindowNextAutoFitSize"][1]["ov_cimguiname"] = "igCalcWindowNextAutoFitSize" +defs["igCalcWindowNextAutoFitSize"][1]["ret"] = "void" +defs["igCalcWindowNextAutoFitSize"][1]["signature"] = "(ImGuiWindow*)" +defs["igCalcWindowNextAutoFitSize"][1]["stname"] = "" +defs["igCalcWindowNextAutoFitSize"]["(ImGuiWindow*)"] = defs["igCalcWindowNextAutoFitSize"][1] +defs["igCalcWrapWidthForPos"] = {} +defs["igCalcWrapWidthForPos"][1] = {} +defs["igCalcWrapWidthForPos"][1]["args"] = "(const ImVec2 pos,float wrap_pos_x)" +defs["igCalcWrapWidthForPos"][1]["argsT"] = {} +defs["igCalcWrapWidthForPos"][1]["argsT"][1] = {} +defs["igCalcWrapWidthForPos"][1]["argsT"][1]["name"] = "pos" +defs["igCalcWrapWidthForPos"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igCalcWrapWidthForPos"][1]["argsT"][2] = {} +defs["igCalcWrapWidthForPos"][1]["argsT"][2]["name"] = "wrap_pos_x" +defs["igCalcWrapWidthForPos"][1]["argsT"][2]["type"] = "float" +defs["igCalcWrapWidthForPos"][1]["argsoriginal"] = "(const ImVec2& pos,float wrap_pos_x)" +defs["igCalcWrapWidthForPos"][1]["call_args"] = "(pos,wrap_pos_x)" +defs["igCalcWrapWidthForPos"][1]["cimguiname"] = "igCalcWrapWidthForPos" +defs["igCalcWrapWidthForPos"][1]["defaults"] = {} +defs["igCalcWrapWidthForPos"][1]["funcname"] = "CalcWrapWidthForPos" +defs["igCalcWrapWidthForPos"][1]["location"] = "imgui_internal:3043" +defs["igCalcWrapWidthForPos"][1]["namespace"] = "ImGui" +defs["igCalcWrapWidthForPos"][1]["ov_cimguiname"] = "igCalcWrapWidthForPos" +defs["igCalcWrapWidthForPos"][1]["ret"] = "float" +defs["igCalcWrapWidthForPos"][1]["signature"] = "(const ImVec2,float)" +defs["igCalcWrapWidthForPos"][1]["stname"] = "" +defs["igCalcWrapWidthForPos"]["(const ImVec2,float)"] = defs["igCalcWrapWidthForPos"][1] +defs["igCallContextHooks"] = {} +defs["igCallContextHooks"][1] = {} +defs["igCallContextHooks"][1]["args"] = "(ImGuiContext* context,ImGuiContextHookType type)" +defs["igCallContextHooks"][1]["argsT"] = {} +defs["igCallContextHooks"][1]["argsT"][1] = {} +defs["igCallContextHooks"][1]["argsT"][1]["name"] = "context" +defs["igCallContextHooks"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igCallContextHooks"][1]["argsT"][2] = {} +defs["igCallContextHooks"][1]["argsT"][2]["name"] = "type" +defs["igCallContextHooks"][1]["argsT"][2]["type"] = "ImGuiContextHookType" +defs["igCallContextHooks"][1]["argsoriginal"] = "(ImGuiContext* context,ImGuiContextHookType type)" +defs["igCallContextHooks"][1]["call_args"] = "(context,type)" +defs["igCallContextHooks"][1]["cimguiname"] = "igCallContextHooks" +defs["igCallContextHooks"][1]["defaults"] = {} +defs["igCallContextHooks"][1]["funcname"] = "CallContextHooks" +defs["igCallContextHooks"][1]["location"] = "imgui_internal:2979" +defs["igCallContextHooks"][1]["namespace"] = "ImGui" +defs["igCallContextHooks"][1]["ov_cimguiname"] = "igCallContextHooks" +defs["igCallContextHooks"][1]["ret"] = "void" +defs["igCallContextHooks"][1]["signature"] = "(ImGuiContext*,ImGuiContextHookType)" +defs["igCallContextHooks"][1]["stname"] = "" +defs["igCallContextHooks"]["(ImGuiContext*,ImGuiContextHookType)"] = defs["igCallContextHooks"][1] defs["igCheckbox"] = {} defs["igCheckbox"][1] = {} defs["igCheckbox"][1]["args"] = "(const char* label,bool* v)" @@ -7330,8 +12606,126 @@ defs["igCheckboxFlags"][2]["ov_cimguiname"] = "igCheckboxFlags_UintPtr" defs["igCheckboxFlags"][2]["ret"] = "bool" defs["igCheckboxFlags"][2]["signature"] = "(const char*,unsigned int*,unsigned int)" defs["igCheckboxFlags"][2]["stname"] = "" +defs["igCheckboxFlags"][3] = {} +defs["igCheckboxFlags"][3]["args"] = "(const char* label,ImS64* flags,ImS64 flags_value)" +defs["igCheckboxFlags"][3]["argsT"] = {} +defs["igCheckboxFlags"][3]["argsT"][1] = {} +defs["igCheckboxFlags"][3]["argsT"][1]["name"] = "label" +defs["igCheckboxFlags"][3]["argsT"][1]["type"] = "const char*" +defs["igCheckboxFlags"][3]["argsT"][2] = {} +defs["igCheckboxFlags"][3]["argsT"][2]["name"] = "flags" +defs["igCheckboxFlags"][3]["argsT"][2]["type"] = "ImS64*" +defs["igCheckboxFlags"][3]["argsT"][3] = {} +defs["igCheckboxFlags"][3]["argsT"][3]["name"] = "flags_value" +defs["igCheckboxFlags"][3]["argsT"][3]["type"] = "ImS64" +defs["igCheckboxFlags"][3]["argsoriginal"] = "(const char* label,ImS64* flags,ImS64 flags_value)" +defs["igCheckboxFlags"][3]["call_args"] = "(label,flags,flags_value)" +defs["igCheckboxFlags"][3]["cimguiname"] = "igCheckboxFlags" +defs["igCheckboxFlags"][3]["defaults"] = {} +defs["igCheckboxFlags"][3]["funcname"] = "CheckboxFlags" +defs["igCheckboxFlags"][3]["location"] = "imgui_internal:3363" +defs["igCheckboxFlags"][3]["namespace"] = "ImGui" +defs["igCheckboxFlags"][3]["ov_cimguiname"] = "igCheckboxFlags_S64Ptr" +defs["igCheckboxFlags"][3]["ret"] = "bool" +defs["igCheckboxFlags"][3]["signature"] = "(const char*,ImS64*,ImS64)" +defs["igCheckboxFlags"][3]["stname"] = "" +defs["igCheckboxFlags"][4] = {} +defs["igCheckboxFlags"][4]["args"] = "(const char* label,ImU64* flags,ImU64 flags_value)" +defs["igCheckboxFlags"][4]["argsT"] = {} +defs["igCheckboxFlags"][4]["argsT"][1] = {} +defs["igCheckboxFlags"][4]["argsT"][1]["name"] = "label" +defs["igCheckboxFlags"][4]["argsT"][1]["type"] = "const char*" +defs["igCheckboxFlags"][4]["argsT"][2] = {} +defs["igCheckboxFlags"][4]["argsT"][2]["name"] = "flags" +defs["igCheckboxFlags"][4]["argsT"][2]["type"] = "ImU64*" +defs["igCheckboxFlags"][4]["argsT"][3] = {} +defs["igCheckboxFlags"][4]["argsT"][3]["name"] = "flags_value" +defs["igCheckboxFlags"][4]["argsT"][3]["type"] = "ImU64" +defs["igCheckboxFlags"][4]["argsoriginal"] = "(const char* label,ImU64* flags,ImU64 flags_value)" +defs["igCheckboxFlags"][4]["call_args"] = "(label,flags,flags_value)" +defs["igCheckboxFlags"][4]["cimguiname"] = "igCheckboxFlags" +defs["igCheckboxFlags"][4]["defaults"] = {} +defs["igCheckboxFlags"][4]["funcname"] = "CheckboxFlags" +defs["igCheckboxFlags"][4]["location"] = "imgui_internal:3364" +defs["igCheckboxFlags"][4]["namespace"] = "ImGui" +defs["igCheckboxFlags"][4]["ov_cimguiname"] = "igCheckboxFlags_U64Ptr" +defs["igCheckboxFlags"][4]["ret"] = "bool" +defs["igCheckboxFlags"][4]["signature"] = "(const char*,ImU64*,ImU64)" +defs["igCheckboxFlags"][4]["stname"] = "" +defs["igCheckboxFlags"]["(const char*,ImS64*,ImS64)"] = defs["igCheckboxFlags"][3] +defs["igCheckboxFlags"]["(const char*,ImU64*,ImU64)"] = defs["igCheckboxFlags"][4] defs["igCheckboxFlags"]["(const char*,int*,int)"] = defs["igCheckboxFlags"][1] defs["igCheckboxFlags"]["(const char*,unsigned int*,unsigned int)"] = defs["igCheckboxFlags"][2] +defs["igClearActiveID"] = {} +defs["igClearActiveID"][1] = {} +defs["igClearActiveID"][1]["args"] = "()" +defs["igClearActiveID"][1]["argsT"] = {} +defs["igClearActiveID"][1]["argsoriginal"] = "()" +defs["igClearActiveID"][1]["call_args"] = "()" +defs["igClearActiveID"][1]["cimguiname"] = "igClearActiveID" +defs["igClearActiveID"][1]["defaults"] = {} +defs["igClearActiveID"][1]["funcname"] = "ClearActiveID" +defs["igClearActiveID"][1]["location"] = "imgui_internal:3027" +defs["igClearActiveID"][1]["namespace"] = "ImGui" +defs["igClearActiveID"][1]["ov_cimguiname"] = "igClearActiveID" +defs["igClearActiveID"][1]["ret"] = "void" +defs["igClearActiveID"][1]["signature"] = "()" +defs["igClearActiveID"][1]["stname"] = "" +defs["igClearActiveID"]["()"] = defs["igClearActiveID"][1] +defs["igClearDragDrop"] = {} +defs["igClearDragDrop"][1] = {} +defs["igClearDragDrop"][1]["args"] = "()" +defs["igClearDragDrop"][1]["argsT"] = {} +defs["igClearDragDrop"][1]["argsoriginal"] = "()" +defs["igClearDragDrop"][1]["call_args"] = "()" +defs["igClearDragDrop"][1]["cimguiname"] = "igClearDragDrop" +defs["igClearDragDrop"][1]["defaults"] = {} +defs["igClearDragDrop"][1]["funcname"] = "ClearDragDrop" +defs["igClearDragDrop"][1]["location"] = "imgui_internal:3239" +defs["igClearDragDrop"][1]["namespace"] = "ImGui" +defs["igClearDragDrop"][1]["ov_cimguiname"] = "igClearDragDrop" +defs["igClearDragDrop"][1]["ret"] = "void" +defs["igClearDragDrop"][1]["signature"] = "()" +defs["igClearDragDrop"][1]["stname"] = "" +defs["igClearDragDrop"]["()"] = defs["igClearDragDrop"][1] +defs["igClearIniSettings"] = {} +defs["igClearIniSettings"][1] = {} +defs["igClearIniSettings"][1]["args"] = "()" +defs["igClearIniSettings"][1]["argsT"] = {} +defs["igClearIniSettings"][1]["argsoriginal"] = "()" +defs["igClearIniSettings"][1]["call_args"] = "()" +defs["igClearIniSettings"][1]["cimguiname"] = "igClearIniSettings" +defs["igClearIniSettings"][1]["defaults"] = {} +defs["igClearIniSettings"][1]["funcname"] = "ClearIniSettings" +defs["igClearIniSettings"][1]["location"] = "imgui_internal:2993" +defs["igClearIniSettings"][1]["namespace"] = "ImGui" +defs["igClearIniSettings"][1]["ov_cimguiname"] = "igClearIniSettings" +defs["igClearIniSettings"][1]["ret"] = "void" +defs["igClearIniSettings"][1]["signature"] = "()" +defs["igClearIniSettings"][1]["stname"] = "" +defs["igClearIniSettings"]["()"] = defs["igClearIniSettings"][1] +defs["igCloseButton"] = {} +defs["igCloseButton"][1] = {} +defs["igCloseButton"][1]["args"] = "(ImGuiID id,const ImVec2 pos)" +defs["igCloseButton"][1]["argsT"] = {} +defs["igCloseButton"][1]["argsT"][1] = {} +defs["igCloseButton"][1]["argsT"][1]["name"] = "id" +defs["igCloseButton"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igCloseButton"][1]["argsT"][2] = {} +defs["igCloseButton"][1]["argsT"][2]["name"] = "pos" +defs["igCloseButton"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igCloseButton"][1]["argsoriginal"] = "(ImGuiID id,const ImVec2& pos)" +defs["igCloseButton"][1]["call_args"] = "(id,pos)" +defs["igCloseButton"][1]["cimguiname"] = "igCloseButton" +defs["igCloseButton"][1]["defaults"] = {} +defs["igCloseButton"][1]["funcname"] = "CloseButton" +defs["igCloseButton"][1]["location"] = "imgui_internal:3352" +defs["igCloseButton"][1]["namespace"] = "ImGui" +defs["igCloseButton"][1]["ov_cimguiname"] = "igCloseButton" +defs["igCloseButton"][1]["ret"] = "bool" +defs["igCloseButton"][1]["signature"] = "(ImGuiID,const ImVec2)" +defs["igCloseButton"][1]["stname"] = "" +defs["igCloseButton"]["(ImGuiID,const ImVec2)"] = defs["igCloseButton"][1] defs["igCloseCurrentPopup"] = {} defs["igCloseCurrentPopup"][1] = {} defs["igCloseCurrentPopup"][1]["args"] = "()" @@ -7348,6 +12742,91 @@ defs["igCloseCurrentPopup"][1]["ret"] = "void" defs["igCloseCurrentPopup"][1]["signature"] = "()" defs["igCloseCurrentPopup"][1]["stname"] = "" defs["igCloseCurrentPopup"]["()"] = defs["igCloseCurrentPopup"][1] +defs["igClosePopupToLevel"] = {} +defs["igClosePopupToLevel"][1] = {} +defs["igClosePopupToLevel"][1]["args"] = "(int remaining,bool restore_focus_to_window_under_popup)" +defs["igClosePopupToLevel"][1]["argsT"] = {} +defs["igClosePopupToLevel"][1]["argsT"][1] = {} +defs["igClosePopupToLevel"][1]["argsT"][1]["name"] = "remaining" +defs["igClosePopupToLevel"][1]["argsT"][1]["type"] = "int" +defs["igClosePopupToLevel"][1]["argsT"][2] = {} +defs["igClosePopupToLevel"][1]["argsT"][2]["name"] = "restore_focus_to_window_under_popup" +defs["igClosePopupToLevel"][1]["argsT"][2]["type"] = "bool" +defs["igClosePopupToLevel"][1]["argsoriginal"] = "(int remaining,bool restore_focus_to_window_under_popup)" +defs["igClosePopupToLevel"][1]["call_args"] = "(remaining,restore_focus_to_window_under_popup)" +defs["igClosePopupToLevel"][1]["cimguiname"] = "igClosePopupToLevel" +defs["igClosePopupToLevel"][1]["defaults"] = {} +defs["igClosePopupToLevel"][1]["funcname"] = "ClosePopupToLevel" +defs["igClosePopupToLevel"][1]["location"] = "imgui_internal:3062" +defs["igClosePopupToLevel"][1]["namespace"] = "ImGui" +defs["igClosePopupToLevel"][1]["ov_cimguiname"] = "igClosePopupToLevel" +defs["igClosePopupToLevel"][1]["ret"] = "void" +defs["igClosePopupToLevel"][1]["signature"] = "(int,bool)" +defs["igClosePopupToLevel"][1]["stname"] = "" +defs["igClosePopupToLevel"]["(int,bool)"] = defs["igClosePopupToLevel"][1] +defs["igClosePopupsExceptModals"] = {} +defs["igClosePopupsExceptModals"][1] = {} +defs["igClosePopupsExceptModals"][1]["args"] = "()" +defs["igClosePopupsExceptModals"][1]["argsT"] = {} +defs["igClosePopupsExceptModals"][1]["argsoriginal"] = "()" +defs["igClosePopupsExceptModals"][1]["call_args"] = "()" +defs["igClosePopupsExceptModals"][1]["cimguiname"] = "igClosePopupsExceptModals" +defs["igClosePopupsExceptModals"][1]["defaults"] = {} +defs["igClosePopupsExceptModals"][1]["funcname"] = "ClosePopupsExceptModals" +defs["igClosePopupsExceptModals"][1]["location"] = "imgui_internal:3064" +defs["igClosePopupsExceptModals"][1]["namespace"] = "ImGui" +defs["igClosePopupsExceptModals"][1]["ov_cimguiname"] = "igClosePopupsExceptModals" +defs["igClosePopupsExceptModals"][1]["ret"] = "void" +defs["igClosePopupsExceptModals"][1]["signature"] = "()" +defs["igClosePopupsExceptModals"][1]["stname"] = "" +defs["igClosePopupsExceptModals"]["()"] = defs["igClosePopupsExceptModals"][1] +defs["igClosePopupsOverWindow"] = {} +defs["igClosePopupsOverWindow"][1] = {} +defs["igClosePopupsOverWindow"][1]["args"] = "(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup)" +defs["igClosePopupsOverWindow"][1]["argsT"] = {} +defs["igClosePopupsOverWindow"][1]["argsT"][1] = {} +defs["igClosePopupsOverWindow"][1]["argsT"][1]["name"] = "ref_window" +defs["igClosePopupsOverWindow"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igClosePopupsOverWindow"][1]["argsT"][2] = {} +defs["igClosePopupsOverWindow"][1]["argsT"][2]["name"] = "restore_focus_to_window_under_popup" +defs["igClosePopupsOverWindow"][1]["argsT"][2]["type"] = "bool" +defs["igClosePopupsOverWindow"][1]["argsoriginal"] = "(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup)" +defs["igClosePopupsOverWindow"][1]["call_args"] = "(ref_window,restore_focus_to_window_under_popup)" +defs["igClosePopupsOverWindow"][1]["cimguiname"] = "igClosePopupsOverWindow" +defs["igClosePopupsOverWindow"][1]["defaults"] = {} +defs["igClosePopupsOverWindow"][1]["funcname"] = "ClosePopupsOverWindow" +defs["igClosePopupsOverWindow"][1]["location"] = "imgui_internal:3063" +defs["igClosePopupsOverWindow"][1]["namespace"] = "ImGui" +defs["igClosePopupsOverWindow"][1]["ov_cimguiname"] = "igClosePopupsOverWindow" +defs["igClosePopupsOverWindow"][1]["ret"] = "void" +defs["igClosePopupsOverWindow"][1]["signature"] = "(ImGuiWindow*,bool)" +defs["igClosePopupsOverWindow"][1]["stname"] = "" +defs["igClosePopupsOverWindow"]["(ImGuiWindow*,bool)"] = defs["igClosePopupsOverWindow"][1] +defs["igCollapseButton"] = {} +defs["igCollapseButton"][1] = {} +defs["igCollapseButton"][1]["args"] = "(ImGuiID id,const ImVec2 pos,ImGuiDockNode* dock_node)" +defs["igCollapseButton"][1]["argsT"] = {} +defs["igCollapseButton"][1]["argsT"][1] = {} +defs["igCollapseButton"][1]["argsT"][1]["name"] = "id" +defs["igCollapseButton"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igCollapseButton"][1]["argsT"][2] = {} +defs["igCollapseButton"][1]["argsT"][2]["name"] = "pos" +defs["igCollapseButton"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igCollapseButton"][1]["argsT"][3] = {} +defs["igCollapseButton"][1]["argsT"][3]["name"] = "dock_node" +defs["igCollapseButton"][1]["argsT"][3]["type"] = "ImGuiDockNode*" +defs["igCollapseButton"][1]["argsoriginal"] = "(ImGuiID id,const ImVec2& pos,ImGuiDockNode* dock_node)" +defs["igCollapseButton"][1]["call_args"] = "(id,pos,dock_node)" +defs["igCollapseButton"][1]["cimguiname"] = "igCollapseButton" +defs["igCollapseButton"][1]["defaults"] = {} +defs["igCollapseButton"][1]["funcname"] = "CollapseButton" +defs["igCollapseButton"][1]["location"] = "imgui_internal:3353" +defs["igCollapseButton"][1]["namespace"] = "ImGui" +defs["igCollapseButton"][1]["ov_cimguiname"] = "igCollapseButton" +defs["igCollapseButton"][1]["ret"] = "bool" +defs["igCollapseButton"][1]["signature"] = "(ImGuiID,const ImVec2,ImGuiDockNode*)" +defs["igCollapseButton"][1]["stname"] = "" +defs["igCollapseButton"]["(ImGuiID,const ImVec2,ImGuiDockNode*)"] = defs["igCollapseButton"][1] defs["igCollapsingHeader"] = {} defs["igCollapsingHeader"][1] = {} defs["igCollapsingHeader"][1]["args"] = "(const char* label,ImGuiTreeNodeFlags flags)" @@ -7594,6 +13073,28 @@ defs["igColorEdit4"][1]["ret"] = "bool" defs["igColorEdit4"][1]["signature"] = "(const char*,float[4],ImGuiColorEditFlags)" defs["igColorEdit4"][1]["stname"] = "" defs["igColorEdit4"]["(const char*,float[4],ImGuiColorEditFlags)"] = defs["igColorEdit4"][1] +defs["igColorEditOptionsPopup"] = {} +defs["igColorEditOptionsPopup"][1] = {} +defs["igColorEditOptionsPopup"][1]["args"] = "(const float* col,ImGuiColorEditFlags flags)" +defs["igColorEditOptionsPopup"][1]["argsT"] = {} +defs["igColorEditOptionsPopup"][1]["argsT"][1] = {} +defs["igColorEditOptionsPopup"][1]["argsT"][1]["name"] = "col" +defs["igColorEditOptionsPopup"][1]["argsT"][1]["type"] = "const float*" +defs["igColorEditOptionsPopup"][1]["argsT"][2] = {} +defs["igColorEditOptionsPopup"][1]["argsT"][2]["name"] = "flags" +defs["igColorEditOptionsPopup"][1]["argsT"][2]["type"] = "ImGuiColorEditFlags" +defs["igColorEditOptionsPopup"][1]["argsoriginal"] = "(const float* col,ImGuiColorEditFlags flags)" +defs["igColorEditOptionsPopup"][1]["call_args"] = "(col,flags)" +defs["igColorEditOptionsPopup"][1]["cimguiname"] = "igColorEditOptionsPopup" +defs["igColorEditOptionsPopup"][1]["defaults"] = {} +defs["igColorEditOptionsPopup"][1]["funcname"] = "ColorEditOptionsPopup" +defs["igColorEditOptionsPopup"][1]["location"] = "imgui_internal:3403" +defs["igColorEditOptionsPopup"][1]["namespace"] = "ImGui" +defs["igColorEditOptionsPopup"][1]["ov_cimguiname"] = "igColorEditOptionsPopup" +defs["igColorEditOptionsPopup"][1]["ret"] = "void" +defs["igColorEditOptionsPopup"][1]["signature"] = "(const float*,ImGuiColorEditFlags)" +defs["igColorEditOptionsPopup"][1]["stname"] = "" +defs["igColorEditOptionsPopup"]["(const float*,ImGuiColorEditFlags)"] = defs["igColorEditOptionsPopup"][1] defs["igColorPicker3"] = {} defs["igColorPicker3"][1] = {} defs["igColorPicker3"][1]["args"] = "(const char* label,float col[3],ImGuiColorEditFlags flags)" @@ -7650,6 +13151,53 @@ defs["igColorPicker4"][1]["ret"] = "bool" defs["igColorPicker4"][1]["signature"] = "(const char*,float[4],ImGuiColorEditFlags,const float*)" defs["igColorPicker4"][1]["stname"] = "" defs["igColorPicker4"]["(const char*,float[4],ImGuiColorEditFlags,const float*)"] = defs["igColorPicker4"][1] +defs["igColorPickerOptionsPopup"] = {} +defs["igColorPickerOptionsPopup"][1] = {} +defs["igColorPickerOptionsPopup"][1]["args"] = "(const float* ref_col,ImGuiColorEditFlags flags)" +defs["igColorPickerOptionsPopup"][1]["argsT"] = {} +defs["igColorPickerOptionsPopup"][1]["argsT"][1] = {} +defs["igColorPickerOptionsPopup"][1]["argsT"][1]["name"] = "ref_col" +defs["igColorPickerOptionsPopup"][1]["argsT"][1]["type"] = "const float*" +defs["igColorPickerOptionsPopup"][1]["argsT"][2] = {} +defs["igColorPickerOptionsPopup"][1]["argsT"][2]["name"] = "flags" +defs["igColorPickerOptionsPopup"][1]["argsT"][2]["type"] = "ImGuiColorEditFlags" +defs["igColorPickerOptionsPopup"][1]["argsoriginal"] = "(const float* ref_col,ImGuiColorEditFlags flags)" +defs["igColorPickerOptionsPopup"][1]["call_args"] = "(ref_col,flags)" +defs["igColorPickerOptionsPopup"][1]["cimguiname"] = "igColorPickerOptionsPopup" +defs["igColorPickerOptionsPopup"][1]["defaults"] = {} +defs["igColorPickerOptionsPopup"][1]["funcname"] = "ColorPickerOptionsPopup" +defs["igColorPickerOptionsPopup"][1]["location"] = "imgui_internal:3404" +defs["igColorPickerOptionsPopup"][1]["namespace"] = "ImGui" +defs["igColorPickerOptionsPopup"][1]["ov_cimguiname"] = "igColorPickerOptionsPopup" +defs["igColorPickerOptionsPopup"][1]["ret"] = "void" +defs["igColorPickerOptionsPopup"][1]["signature"] = "(const float*,ImGuiColorEditFlags)" +defs["igColorPickerOptionsPopup"][1]["stname"] = "" +defs["igColorPickerOptionsPopup"]["(const float*,ImGuiColorEditFlags)"] = defs["igColorPickerOptionsPopup"][1] +defs["igColorTooltip"] = {} +defs["igColorTooltip"][1] = {} +defs["igColorTooltip"][1]["args"] = "(const char* text,const float* col,ImGuiColorEditFlags flags)" +defs["igColorTooltip"][1]["argsT"] = {} +defs["igColorTooltip"][1]["argsT"][1] = {} +defs["igColorTooltip"][1]["argsT"][1]["name"] = "text" +defs["igColorTooltip"][1]["argsT"][1]["type"] = "const char*" +defs["igColorTooltip"][1]["argsT"][2] = {} +defs["igColorTooltip"][1]["argsT"][2]["name"] = "col" +defs["igColorTooltip"][1]["argsT"][2]["type"] = "const float*" +defs["igColorTooltip"][1]["argsT"][3] = {} +defs["igColorTooltip"][1]["argsT"][3]["name"] = "flags" +defs["igColorTooltip"][1]["argsT"][3]["type"] = "ImGuiColorEditFlags" +defs["igColorTooltip"][1]["argsoriginal"] = "(const char* text,const float* col,ImGuiColorEditFlags flags)" +defs["igColorTooltip"][1]["call_args"] = "(text,col,flags)" +defs["igColorTooltip"][1]["cimguiname"] = "igColorTooltip" +defs["igColorTooltip"][1]["defaults"] = {} +defs["igColorTooltip"][1]["funcname"] = "ColorTooltip" +defs["igColorTooltip"][1]["location"] = "imgui_internal:3402" +defs["igColorTooltip"][1]["namespace"] = "ImGui" +defs["igColorTooltip"][1]["ov_cimguiname"] = "igColorTooltip" +defs["igColorTooltip"][1]["ret"] = "void" +defs["igColorTooltip"][1]["signature"] = "(const char*,const float*,ImGuiColorEditFlags)" +defs["igColorTooltip"][1]["stname"] = "" +defs["igColorTooltip"]["(const char*,const float*,ImGuiColorEditFlags)"] = defs["igColorTooltip"][1] defs["igColumns"] = {} defs["igColumns"][1] = {} defs["igColumns"][1]["args"] = "(int count,const char* id,bool border)" @@ -7774,6 +13322,25 @@ defs["igCombo"][3]["stname"] = "" defs["igCombo"]["(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)"] = defs["igCombo"][3] defs["igCombo"]["(const char*,int*,const char* const[],int,int)"] = defs["igCombo"][1] defs["igCombo"]["(const char*,int*,const char*,int)"] = defs["igCombo"][2] +defs["igConvertSingleModFlagToKey"] = {} +defs["igConvertSingleModFlagToKey"][1] = {} +defs["igConvertSingleModFlagToKey"][1]["args"] = "(ImGuiKey key)" +defs["igConvertSingleModFlagToKey"][1]["argsT"] = {} +defs["igConvertSingleModFlagToKey"][1]["argsT"][1] = {} +defs["igConvertSingleModFlagToKey"][1]["argsT"][1]["name"] = "key" +defs["igConvertSingleModFlagToKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igConvertSingleModFlagToKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igConvertSingleModFlagToKey"][1]["call_args"] = "(key)" +defs["igConvertSingleModFlagToKey"][1]["cimguiname"] = "igConvertSingleModFlagToKey" +defs["igConvertSingleModFlagToKey"][1]["defaults"] = {} +defs["igConvertSingleModFlagToKey"][1]["funcname"] = "ConvertSingleModFlagToKey" +defs["igConvertSingleModFlagToKey"][1]["location"] = "imgui_internal:3107" +defs["igConvertSingleModFlagToKey"][1]["namespace"] = "ImGui" +defs["igConvertSingleModFlagToKey"][1]["ov_cimguiname"] = "igConvertSingleModFlagToKey" +defs["igConvertSingleModFlagToKey"][1]["ret"] = "ImGuiKey" +defs["igConvertSingleModFlagToKey"][1]["signature"] = "(ImGuiKey)" +defs["igConvertSingleModFlagToKey"][1]["stname"] = "" +defs["igConvertSingleModFlagToKey"]["(ImGuiKey)"] = defs["igConvertSingleModFlagToKey"][1] defs["igCreateContext"] = {} defs["igCreateContext"][1] = {} defs["igCreateContext"][1]["args"] = "(ImFontAtlas* shared_font_atlas)" @@ -7794,6 +13361,187 @@ defs["igCreateContext"][1]["ret"] = "ImGuiContext*" defs["igCreateContext"][1]["signature"] = "(ImFontAtlas*)" defs["igCreateContext"][1]["stname"] = "" defs["igCreateContext"]["(ImFontAtlas*)"] = defs["igCreateContext"][1] +defs["igCreateNewWindowSettings"] = {} +defs["igCreateNewWindowSettings"][1] = {} +defs["igCreateNewWindowSettings"][1]["args"] = "(const char* name)" +defs["igCreateNewWindowSettings"][1]["argsT"] = {} +defs["igCreateNewWindowSettings"][1]["argsT"][1] = {} +defs["igCreateNewWindowSettings"][1]["argsT"][1]["name"] = "name" +defs["igCreateNewWindowSettings"][1]["argsT"][1]["type"] = "const char*" +defs["igCreateNewWindowSettings"][1]["argsoriginal"] = "(const char* name)" +defs["igCreateNewWindowSettings"][1]["call_args"] = "(name)" +defs["igCreateNewWindowSettings"][1]["cimguiname"] = "igCreateNewWindowSettings" +defs["igCreateNewWindowSettings"][1]["defaults"] = {} +defs["igCreateNewWindowSettings"][1]["funcname"] = "CreateNewWindowSettings" +defs["igCreateNewWindowSettings"][1]["location"] = "imgui_internal:2994" +defs["igCreateNewWindowSettings"][1]["namespace"] = "ImGui" +defs["igCreateNewWindowSettings"][1]["ov_cimguiname"] = "igCreateNewWindowSettings" +defs["igCreateNewWindowSettings"][1]["ret"] = "ImGuiWindowSettings*" +defs["igCreateNewWindowSettings"][1]["signature"] = "(const char*)" +defs["igCreateNewWindowSettings"][1]["stname"] = "" +defs["igCreateNewWindowSettings"]["(const char*)"] = defs["igCreateNewWindowSettings"][1] +defs["igDataTypeApplyFromText"] = {} +defs["igDataTypeApplyFromText"][1] = {} +defs["igDataTypeApplyFromText"][1]["args"] = "(const char* buf,ImGuiDataType data_type,void* p_data,const char* format)" +defs["igDataTypeApplyFromText"][1]["argsT"] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][1] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][1]["name"] = "buf" +defs["igDataTypeApplyFromText"][1]["argsT"][1]["type"] = "const char*" +defs["igDataTypeApplyFromText"][1]["argsT"][2] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][2]["name"] = "data_type" +defs["igDataTypeApplyFromText"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igDataTypeApplyFromText"][1]["argsT"][3] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][3]["name"] = "p_data" +defs["igDataTypeApplyFromText"][1]["argsT"][3]["type"] = "void*" +defs["igDataTypeApplyFromText"][1]["argsT"][4] = {} +defs["igDataTypeApplyFromText"][1]["argsT"][4]["name"] = "format" +defs["igDataTypeApplyFromText"][1]["argsT"][4]["type"] = "const char*" +defs["igDataTypeApplyFromText"][1]["argsoriginal"] = "(const char* buf,ImGuiDataType data_type,void* p_data,const char* format)" +defs["igDataTypeApplyFromText"][1]["call_args"] = "(buf,data_type,p_data,format)" +defs["igDataTypeApplyFromText"][1]["cimguiname"] = "igDataTypeApplyFromText" +defs["igDataTypeApplyFromText"][1]["defaults"] = {} +defs["igDataTypeApplyFromText"][1]["funcname"] = "DataTypeApplyFromText" +defs["igDataTypeApplyFromText"][1]["location"] = "imgui_internal:3390" +defs["igDataTypeApplyFromText"][1]["namespace"] = "ImGui" +defs["igDataTypeApplyFromText"][1]["ov_cimguiname"] = "igDataTypeApplyFromText" +defs["igDataTypeApplyFromText"][1]["ret"] = "bool" +defs["igDataTypeApplyFromText"][1]["signature"] = "(const char*,ImGuiDataType,void*,const char*)" +defs["igDataTypeApplyFromText"][1]["stname"] = "" +defs["igDataTypeApplyFromText"]["(const char*,ImGuiDataType,void*,const char*)"] = defs["igDataTypeApplyFromText"][1] +defs["igDataTypeApplyOp"] = {} +defs["igDataTypeApplyOp"][1] = {} +defs["igDataTypeApplyOp"][1]["args"] = "(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2)" +defs["igDataTypeApplyOp"][1]["argsT"] = {} +defs["igDataTypeApplyOp"][1]["argsT"][1] = {} +defs["igDataTypeApplyOp"][1]["argsT"][1]["name"] = "data_type" +defs["igDataTypeApplyOp"][1]["argsT"][1]["type"] = "ImGuiDataType" +defs["igDataTypeApplyOp"][1]["argsT"][2] = {} +defs["igDataTypeApplyOp"][1]["argsT"][2]["name"] = "op" +defs["igDataTypeApplyOp"][1]["argsT"][2]["type"] = "int" +defs["igDataTypeApplyOp"][1]["argsT"][3] = {} +defs["igDataTypeApplyOp"][1]["argsT"][3]["name"] = "output" +defs["igDataTypeApplyOp"][1]["argsT"][3]["type"] = "void*" +defs["igDataTypeApplyOp"][1]["argsT"][4] = {} +defs["igDataTypeApplyOp"][1]["argsT"][4]["name"] = "arg_1" +defs["igDataTypeApplyOp"][1]["argsT"][4]["type"] = "const void*" +defs["igDataTypeApplyOp"][1]["argsT"][5] = {} +defs["igDataTypeApplyOp"][1]["argsT"][5]["name"] = "arg_2" +defs["igDataTypeApplyOp"][1]["argsT"][5]["type"] = "const void*" +defs["igDataTypeApplyOp"][1]["argsoriginal"] = "(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2)" +defs["igDataTypeApplyOp"][1]["call_args"] = "(data_type,op,output,arg_1,arg_2)" +defs["igDataTypeApplyOp"][1]["cimguiname"] = "igDataTypeApplyOp" +defs["igDataTypeApplyOp"][1]["defaults"] = {} +defs["igDataTypeApplyOp"][1]["funcname"] = "DataTypeApplyOp" +defs["igDataTypeApplyOp"][1]["location"] = "imgui_internal:3389" +defs["igDataTypeApplyOp"][1]["namespace"] = "ImGui" +defs["igDataTypeApplyOp"][1]["ov_cimguiname"] = "igDataTypeApplyOp" +defs["igDataTypeApplyOp"][1]["ret"] = "void" +defs["igDataTypeApplyOp"][1]["signature"] = "(ImGuiDataType,int,void*,const void*,const void*)" +defs["igDataTypeApplyOp"][1]["stname"] = "" +defs["igDataTypeApplyOp"]["(ImGuiDataType,int,void*,const void*,const void*)"] = defs["igDataTypeApplyOp"][1] +defs["igDataTypeClamp"] = {} +defs["igDataTypeClamp"][1] = {} +defs["igDataTypeClamp"][1]["args"] = "(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max)" +defs["igDataTypeClamp"][1]["argsT"] = {} +defs["igDataTypeClamp"][1]["argsT"][1] = {} +defs["igDataTypeClamp"][1]["argsT"][1]["name"] = "data_type" +defs["igDataTypeClamp"][1]["argsT"][1]["type"] = "ImGuiDataType" +defs["igDataTypeClamp"][1]["argsT"][2] = {} +defs["igDataTypeClamp"][1]["argsT"][2]["name"] = "p_data" +defs["igDataTypeClamp"][1]["argsT"][2]["type"] = "void*" +defs["igDataTypeClamp"][1]["argsT"][3] = {} +defs["igDataTypeClamp"][1]["argsT"][3]["name"] = "p_min" +defs["igDataTypeClamp"][1]["argsT"][3]["type"] = "const void*" +defs["igDataTypeClamp"][1]["argsT"][4] = {} +defs["igDataTypeClamp"][1]["argsT"][4]["name"] = "p_max" +defs["igDataTypeClamp"][1]["argsT"][4]["type"] = "const void*" +defs["igDataTypeClamp"][1]["argsoriginal"] = "(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max)" +defs["igDataTypeClamp"][1]["call_args"] = "(data_type,p_data,p_min,p_max)" +defs["igDataTypeClamp"][1]["cimguiname"] = "igDataTypeClamp" +defs["igDataTypeClamp"][1]["defaults"] = {} +defs["igDataTypeClamp"][1]["funcname"] = "DataTypeClamp" +defs["igDataTypeClamp"][1]["location"] = "imgui_internal:3392" +defs["igDataTypeClamp"][1]["namespace"] = "ImGui" +defs["igDataTypeClamp"][1]["ov_cimguiname"] = "igDataTypeClamp" +defs["igDataTypeClamp"][1]["ret"] = "bool" +defs["igDataTypeClamp"][1]["signature"] = "(ImGuiDataType,void*,const void*,const void*)" +defs["igDataTypeClamp"][1]["stname"] = "" +defs["igDataTypeClamp"]["(ImGuiDataType,void*,const void*,const void*)"] = defs["igDataTypeClamp"][1] +defs["igDataTypeCompare"] = {} +defs["igDataTypeCompare"][1] = {} +defs["igDataTypeCompare"][1]["args"] = "(ImGuiDataType data_type,const void* arg_1,const void* arg_2)" +defs["igDataTypeCompare"][1]["argsT"] = {} +defs["igDataTypeCompare"][1]["argsT"][1] = {} +defs["igDataTypeCompare"][1]["argsT"][1]["name"] = "data_type" +defs["igDataTypeCompare"][1]["argsT"][1]["type"] = "ImGuiDataType" +defs["igDataTypeCompare"][1]["argsT"][2] = {} +defs["igDataTypeCompare"][1]["argsT"][2]["name"] = "arg_1" +defs["igDataTypeCompare"][1]["argsT"][2]["type"] = "const void*" +defs["igDataTypeCompare"][1]["argsT"][3] = {} +defs["igDataTypeCompare"][1]["argsT"][3]["name"] = "arg_2" +defs["igDataTypeCompare"][1]["argsT"][3]["type"] = "const void*" +defs["igDataTypeCompare"][1]["argsoriginal"] = "(ImGuiDataType data_type,const void* arg_1,const void* arg_2)" +defs["igDataTypeCompare"][1]["call_args"] = "(data_type,arg_1,arg_2)" +defs["igDataTypeCompare"][1]["cimguiname"] = "igDataTypeCompare" +defs["igDataTypeCompare"][1]["defaults"] = {} +defs["igDataTypeCompare"][1]["funcname"] = "DataTypeCompare" +defs["igDataTypeCompare"][1]["location"] = "imgui_internal:3391" +defs["igDataTypeCompare"][1]["namespace"] = "ImGui" +defs["igDataTypeCompare"][1]["ov_cimguiname"] = "igDataTypeCompare" +defs["igDataTypeCompare"][1]["ret"] = "int" +defs["igDataTypeCompare"][1]["signature"] = "(ImGuiDataType,const void*,const void*)" +defs["igDataTypeCompare"][1]["stname"] = "" +defs["igDataTypeCompare"]["(ImGuiDataType,const void*,const void*)"] = defs["igDataTypeCompare"][1] +defs["igDataTypeFormatString"] = {} +defs["igDataTypeFormatString"][1] = {} +defs["igDataTypeFormatString"][1]["args"] = "(char* buf,int buf_size,ImGuiDataType data_type,const void* p_data,const char* format)" +defs["igDataTypeFormatString"][1]["argsT"] = {} +defs["igDataTypeFormatString"][1]["argsT"][1] = {} +defs["igDataTypeFormatString"][1]["argsT"][1]["name"] = "buf" +defs["igDataTypeFormatString"][1]["argsT"][1]["type"] = "char*" +defs["igDataTypeFormatString"][1]["argsT"][2] = {} +defs["igDataTypeFormatString"][1]["argsT"][2]["name"] = "buf_size" +defs["igDataTypeFormatString"][1]["argsT"][2]["type"] = "int" +defs["igDataTypeFormatString"][1]["argsT"][3] = {} +defs["igDataTypeFormatString"][1]["argsT"][3]["name"] = "data_type" +defs["igDataTypeFormatString"][1]["argsT"][3]["type"] = "ImGuiDataType" +defs["igDataTypeFormatString"][1]["argsT"][4] = {} +defs["igDataTypeFormatString"][1]["argsT"][4]["name"] = "p_data" +defs["igDataTypeFormatString"][1]["argsT"][4]["type"] = "const void*" +defs["igDataTypeFormatString"][1]["argsT"][5] = {} +defs["igDataTypeFormatString"][1]["argsT"][5]["name"] = "format" +defs["igDataTypeFormatString"][1]["argsT"][5]["type"] = "const char*" +defs["igDataTypeFormatString"][1]["argsoriginal"] = "(char* buf,int buf_size,ImGuiDataType data_type,const void* p_data,const char* format)" +defs["igDataTypeFormatString"][1]["call_args"] = "(buf,buf_size,data_type,p_data,format)" +defs["igDataTypeFormatString"][1]["cimguiname"] = "igDataTypeFormatString" +defs["igDataTypeFormatString"][1]["defaults"] = {} +defs["igDataTypeFormatString"][1]["funcname"] = "DataTypeFormatString" +defs["igDataTypeFormatString"][1]["location"] = "imgui_internal:3388" +defs["igDataTypeFormatString"][1]["namespace"] = "ImGui" +defs["igDataTypeFormatString"][1]["ov_cimguiname"] = "igDataTypeFormatString" +defs["igDataTypeFormatString"][1]["ret"] = "int" +defs["igDataTypeFormatString"][1]["signature"] = "(char*,int,ImGuiDataType,const void*,const char*)" +defs["igDataTypeFormatString"][1]["stname"] = "" +defs["igDataTypeFormatString"]["(char*,int,ImGuiDataType,const void*,const char*)"] = defs["igDataTypeFormatString"][1] +defs["igDataTypeGetInfo"] = {} +defs["igDataTypeGetInfo"][1] = {} +defs["igDataTypeGetInfo"][1]["args"] = "(ImGuiDataType data_type)" +defs["igDataTypeGetInfo"][1]["argsT"] = {} +defs["igDataTypeGetInfo"][1]["argsT"][1] = {} +defs["igDataTypeGetInfo"][1]["argsT"][1]["name"] = "data_type" +defs["igDataTypeGetInfo"][1]["argsT"][1]["type"] = "ImGuiDataType" +defs["igDataTypeGetInfo"][1]["argsoriginal"] = "(ImGuiDataType data_type)" +defs["igDataTypeGetInfo"][1]["call_args"] = "(data_type)" +defs["igDataTypeGetInfo"][1]["cimguiname"] = "igDataTypeGetInfo" +defs["igDataTypeGetInfo"][1]["defaults"] = {} +defs["igDataTypeGetInfo"][1]["funcname"] = "DataTypeGetInfo" +defs["igDataTypeGetInfo"][1]["location"] = "imgui_internal:3387" +defs["igDataTypeGetInfo"][1]["namespace"] = "ImGui" +defs["igDataTypeGetInfo"][1]["ov_cimguiname"] = "igDataTypeGetInfo" +defs["igDataTypeGetInfo"][1]["ret"] = "const ImGuiDataTypeInfo*" +defs["igDataTypeGetInfo"][1]["signature"] = "(ImGuiDataType)" +defs["igDataTypeGetInfo"][1]["stname"] = "" +defs["igDataTypeGetInfo"]["(ImGuiDataType)"] = defs["igDataTypeGetInfo"][1] defs["igDebugCheckVersionAndDataLayout"] = {} defs["igDebugCheckVersionAndDataLayout"][1] = {} defs["igDebugCheckVersionAndDataLayout"][1]["args"] = "(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)" @@ -7831,6 +13579,543 @@ defs["igDebugCheckVersionAndDataLayout"][1]["ret"] = "bool" defs["igDebugCheckVersionAndDataLayout"][1]["signature"] = "(const char*,size_t,size_t,size_t,size_t,size_t,size_t)" defs["igDebugCheckVersionAndDataLayout"][1]["stname"] = "" defs["igDebugCheckVersionAndDataLayout"]["(const char*,size_t,size_t,size_t,size_t,size_t,size_t)"] = defs["igDebugCheckVersionAndDataLayout"][1] +defs["igDebugDrawItemRect"] = {} +defs["igDebugDrawItemRect"][1] = {} +defs["igDebugDrawItemRect"][1]["args"] = "(ImU32 col)" +defs["igDebugDrawItemRect"][1]["argsT"] = {} +defs["igDebugDrawItemRect"][1]["argsT"][1] = {} +defs["igDebugDrawItemRect"][1]["argsT"][1]["name"] = "col" +defs["igDebugDrawItemRect"][1]["argsT"][1]["type"] = "ImU32" +defs["igDebugDrawItemRect"][1]["argsoriginal"] = "(ImU32 col=(((ImU32)(255)<<24)|((ImU32)(0)<<16)|((ImU32)(0)<<8)|((ImU32)(255)<<0)))" +defs["igDebugDrawItemRect"][1]["call_args"] = "(col)" +defs["igDebugDrawItemRect"][1]["cimguiname"] = "igDebugDrawItemRect" +defs["igDebugDrawItemRect"][1]["defaults"] = {} +defs["igDebugDrawItemRect"][1]["defaults"]["col"] = "4278190335" +defs["igDebugDrawItemRect"][1]["funcname"] = "DebugDrawItemRect" +defs["igDebugDrawItemRect"][1]["location"] = "imgui_internal:3429" +defs["igDebugDrawItemRect"][1]["namespace"] = "ImGui" +defs["igDebugDrawItemRect"][1]["ov_cimguiname"] = "igDebugDrawItemRect" +defs["igDebugDrawItemRect"][1]["ret"] = "void" +defs["igDebugDrawItemRect"][1]["signature"] = "(ImU32)" +defs["igDebugDrawItemRect"][1]["stname"] = "" +defs["igDebugDrawItemRect"]["(ImU32)"] = defs["igDebugDrawItemRect"][1] +defs["igDebugHookIdInfo"] = {} +defs["igDebugHookIdInfo"][1] = {} +defs["igDebugHookIdInfo"][1]["args"] = "(ImGuiID id,ImGuiDataType data_type,const void* data_id,const void* data_id_end)" +defs["igDebugHookIdInfo"][1]["argsT"] = {} +defs["igDebugHookIdInfo"][1]["argsT"][1] = {} +defs["igDebugHookIdInfo"][1]["argsT"][1]["name"] = "id" +defs["igDebugHookIdInfo"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDebugHookIdInfo"][1]["argsT"][2] = {} +defs["igDebugHookIdInfo"][1]["argsT"][2]["name"] = "data_type" +defs["igDebugHookIdInfo"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igDebugHookIdInfo"][1]["argsT"][3] = {} +defs["igDebugHookIdInfo"][1]["argsT"][3]["name"] = "data_id" +defs["igDebugHookIdInfo"][1]["argsT"][3]["type"] = "const void*" +defs["igDebugHookIdInfo"][1]["argsT"][4] = {} +defs["igDebugHookIdInfo"][1]["argsT"][4]["name"] = "data_id_end" +defs["igDebugHookIdInfo"][1]["argsT"][4]["type"] = "const void*" +defs["igDebugHookIdInfo"][1]["argsoriginal"] = "(ImGuiID id,ImGuiDataType data_type,const void* data_id,const void* data_id_end)" +defs["igDebugHookIdInfo"][1]["call_args"] = "(id,data_type,data_id,data_id_end)" +defs["igDebugHookIdInfo"][1]["cimguiname"] = "igDebugHookIdInfo" +defs["igDebugHookIdInfo"][1]["defaults"] = {} +defs["igDebugHookIdInfo"][1]["funcname"] = "DebugHookIdInfo" +defs["igDebugHookIdInfo"][1]["location"] = "imgui_internal:3432" +defs["igDebugHookIdInfo"][1]["namespace"] = "ImGui" +defs["igDebugHookIdInfo"][1]["ov_cimguiname"] = "igDebugHookIdInfo" +defs["igDebugHookIdInfo"][1]["ret"] = "void" +defs["igDebugHookIdInfo"][1]["signature"] = "(ImGuiID,ImGuiDataType,const void*,const void*)" +defs["igDebugHookIdInfo"][1]["stname"] = "" +defs["igDebugHookIdInfo"]["(ImGuiID,ImGuiDataType,const void*,const void*)"] = defs["igDebugHookIdInfo"][1] +defs["igDebugLocateItem"] = {} +defs["igDebugLocateItem"][1] = {} +defs["igDebugLocateItem"][1]["args"] = "(ImGuiID target_id)" +defs["igDebugLocateItem"][1]["argsT"] = {} +defs["igDebugLocateItem"][1]["argsT"][1] = {} +defs["igDebugLocateItem"][1]["argsT"][1]["name"] = "target_id" +defs["igDebugLocateItem"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDebugLocateItem"][1]["argsoriginal"] = "(ImGuiID target_id)" +defs["igDebugLocateItem"][1]["call_args"] = "(target_id)" +defs["igDebugLocateItem"][1]["cimguiname"] = "igDebugLocateItem" +defs["igDebugLocateItem"][1]["defaults"] = {} +defs["igDebugLocateItem"][1]["funcname"] = "DebugLocateItem" +defs["igDebugLocateItem"][1]["location"] = "imgui_internal:3426" +defs["igDebugLocateItem"][1]["namespace"] = "ImGui" +defs["igDebugLocateItem"][1]["ov_cimguiname"] = "igDebugLocateItem" +defs["igDebugLocateItem"][1]["ret"] = "void" +defs["igDebugLocateItem"][1]["signature"] = "(ImGuiID)" +defs["igDebugLocateItem"][1]["stname"] = "" +defs["igDebugLocateItem"]["(ImGuiID)"] = defs["igDebugLocateItem"][1] +defs["igDebugLocateItemOnHover"] = {} +defs["igDebugLocateItemOnHover"][1] = {} +defs["igDebugLocateItemOnHover"][1]["args"] = "(ImGuiID target_id)" +defs["igDebugLocateItemOnHover"][1]["argsT"] = {} +defs["igDebugLocateItemOnHover"][1]["argsT"][1] = {} +defs["igDebugLocateItemOnHover"][1]["argsT"][1]["name"] = "target_id" +defs["igDebugLocateItemOnHover"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDebugLocateItemOnHover"][1]["argsoriginal"] = "(ImGuiID target_id)" +defs["igDebugLocateItemOnHover"][1]["call_args"] = "(target_id)" +defs["igDebugLocateItemOnHover"][1]["cimguiname"] = "igDebugLocateItemOnHover" +defs["igDebugLocateItemOnHover"][1]["defaults"] = {} +defs["igDebugLocateItemOnHover"][1]["funcname"] = "DebugLocateItemOnHover" +defs["igDebugLocateItemOnHover"][1]["location"] = "imgui_internal:3427" +defs["igDebugLocateItemOnHover"][1]["namespace"] = "ImGui" +defs["igDebugLocateItemOnHover"][1]["ov_cimguiname"] = "igDebugLocateItemOnHover" +defs["igDebugLocateItemOnHover"][1]["ret"] = "void" +defs["igDebugLocateItemOnHover"][1]["signature"] = "(ImGuiID)" +defs["igDebugLocateItemOnHover"][1]["stname"] = "" +defs["igDebugLocateItemOnHover"]["(ImGuiID)"] = defs["igDebugLocateItemOnHover"][1] +defs["igDebugLocateItemResolveWithLastItem"] = {} +defs["igDebugLocateItemResolveWithLastItem"][1] = {} +defs["igDebugLocateItemResolveWithLastItem"][1]["args"] = "()" +defs["igDebugLocateItemResolveWithLastItem"][1]["argsT"] = {} +defs["igDebugLocateItemResolveWithLastItem"][1]["argsoriginal"] = "()" +defs["igDebugLocateItemResolveWithLastItem"][1]["call_args"] = "()" +defs["igDebugLocateItemResolveWithLastItem"][1]["cimguiname"] = "igDebugLocateItemResolveWithLastItem" +defs["igDebugLocateItemResolveWithLastItem"][1]["defaults"] = {} +defs["igDebugLocateItemResolveWithLastItem"][1]["funcname"] = "DebugLocateItemResolveWithLastItem" +defs["igDebugLocateItemResolveWithLastItem"][1]["location"] = "imgui_internal:3428" +defs["igDebugLocateItemResolveWithLastItem"][1]["namespace"] = "ImGui" +defs["igDebugLocateItemResolveWithLastItem"][1]["ov_cimguiname"] = "igDebugLocateItemResolveWithLastItem" +defs["igDebugLocateItemResolveWithLastItem"][1]["ret"] = "void" +defs["igDebugLocateItemResolveWithLastItem"][1]["signature"] = "()" +defs["igDebugLocateItemResolveWithLastItem"][1]["stname"] = "" +defs["igDebugLocateItemResolveWithLastItem"]["()"] = defs["igDebugLocateItemResolveWithLastItem"][1] +defs["igDebugLog"] = {} +defs["igDebugLog"][1] = {} +defs["igDebugLog"][1]["args"] = "(const char* fmt,...)" +defs["igDebugLog"][1]["argsT"] = {} +defs["igDebugLog"][1]["argsT"][1] = {} +defs["igDebugLog"][1]["argsT"][1]["name"] = "fmt" +defs["igDebugLog"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugLog"][1]["argsT"][2] = {} +defs["igDebugLog"][1]["argsT"][2]["name"] = "..." +defs["igDebugLog"][1]["argsT"][2]["type"] = "..." +defs["igDebugLog"][1]["argsoriginal"] = "(const char* fmt,...)" +defs["igDebugLog"][1]["call_args"] = "(fmt,...)" +defs["igDebugLog"][1]["cimguiname"] = "igDebugLog" +defs["igDebugLog"][1]["defaults"] = {} +defs["igDebugLog"][1]["funcname"] = "DebugLog" +defs["igDebugLog"][1]["isvararg"] = "...)" +defs["igDebugLog"][1]["location"] = "imgui_internal:3419" +defs["igDebugLog"][1]["namespace"] = "ImGui" +defs["igDebugLog"][1]["ov_cimguiname"] = "igDebugLog" +defs["igDebugLog"][1]["ret"] = "void" +defs["igDebugLog"][1]["signature"] = "(const char*,...)" +defs["igDebugLog"][1]["stname"] = "" +defs["igDebugLog"]["(const char*,...)"] = defs["igDebugLog"][1] +defs["igDebugLogV"] = {} +defs["igDebugLogV"][1] = {} +defs["igDebugLogV"][1]["args"] = "(const char* fmt,va_list args)" +defs["igDebugLogV"][1]["argsT"] = {} +defs["igDebugLogV"][1]["argsT"][1] = {} +defs["igDebugLogV"][1]["argsT"][1]["name"] = "fmt" +defs["igDebugLogV"][1]["argsT"][1]["type"] = "const char*" +defs["igDebugLogV"][1]["argsT"][2] = {} +defs["igDebugLogV"][1]["argsT"][2]["name"] = "args" +defs["igDebugLogV"][1]["argsT"][2]["type"] = "va_list" +defs["igDebugLogV"][1]["argsoriginal"] = "(const char* fmt,va_list args)" +defs["igDebugLogV"][1]["call_args"] = "(fmt,args)" +defs["igDebugLogV"][1]["cimguiname"] = "igDebugLogV" +defs["igDebugLogV"][1]["defaults"] = {} +defs["igDebugLogV"][1]["funcname"] = "DebugLogV" +defs["igDebugLogV"][1]["location"] = "imgui_internal:3420" +defs["igDebugLogV"][1]["namespace"] = "ImGui" +defs["igDebugLogV"][1]["ov_cimguiname"] = "igDebugLogV" +defs["igDebugLogV"][1]["ret"] = "void" +defs["igDebugLogV"][1]["signature"] = "(const char*,va_list)" +defs["igDebugLogV"][1]["stname"] = "" +defs["igDebugLogV"]["(const char*,va_list)"] = defs["igDebugLogV"][1] +defs["igDebugNodeColumns"] = {} +defs["igDebugNodeColumns"][1] = {} +defs["igDebugNodeColumns"][1]["args"] = "(ImGuiOldColumns* columns)" +defs["igDebugNodeColumns"][1]["argsT"] = {} +defs["igDebugNodeColumns"][1]["argsT"][1] = {} +defs["igDebugNodeColumns"][1]["argsT"][1]["name"] = "columns" +defs["igDebugNodeColumns"][1]["argsT"][1]["type"] = "ImGuiOldColumns*" +defs["igDebugNodeColumns"][1]["argsoriginal"] = "(ImGuiOldColumns* columns)" +defs["igDebugNodeColumns"][1]["call_args"] = "(columns)" +defs["igDebugNodeColumns"][1]["cimguiname"] = "igDebugNodeColumns" +defs["igDebugNodeColumns"][1]["defaults"] = {} +defs["igDebugNodeColumns"][1]["funcname"] = "DebugNodeColumns" +defs["igDebugNodeColumns"][1]["location"] = "imgui_internal:3433" +defs["igDebugNodeColumns"][1]["namespace"] = "ImGui" +defs["igDebugNodeColumns"][1]["ov_cimguiname"] = "igDebugNodeColumns" +defs["igDebugNodeColumns"][1]["ret"] = "void" +defs["igDebugNodeColumns"][1]["signature"] = "(ImGuiOldColumns*)" +defs["igDebugNodeColumns"][1]["stname"] = "" +defs["igDebugNodeColumns"]["(ImGuiOldColumns*)"] = defs["igDebugNodeColumns"][1] +defs["igDebugNodeDockNode"] = {} +defs["igDebugNodeDockNode"][1] = {} +defs["igDebugNodeDockNode"][1]["args"] = "(ImGuiDockNode* node,const char* label)" +defs["igDebugNodeDockNode"][1]["argsT"] = {} +defs["igDebugNodeDockNode"][1]["argsT"][1] = {} +defs["igDebugNodeDockNode"][1]["argsT"][1]["name"] = "node" +defs["igDebugNodeDockNode"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["igDebugNodeDockNode"][1]["argsT"][2] = {} +defs["igDebugNodeDockNode"][1]["argsT"][2]["name"] = "label" +defs["igDebugNodeDockNode"][1]["argsT"][2]["type"] = "const char*" +defs["igDebugNodeDockNode"][1]["argsoriginal"] = "(ImGuiDockNode* node,const char* label)" +defs["igDebugNodeDockNode"][1]["call_args"] = "(node,label)" +defs["igDebugNodeDockNode"][1]["cimguiname"] = "igDebugNodeDockNode" +defs["igDebugNodeDockNode"][1]["defaults"] = {} +defs["igDebugNodeDockNode"][1]["funcname"] = "DebugNodeDockNode" +defs["igDebugNodeDockNode"][1]["location"] = "imgui_internal:3434" +defs["igDebugNodeDockNode"][1]["namespace"] = "ImGui" +defs["igDebugNodeDockNode"][1]["ov_cimguiname"] = "igDebugNodeDockNode" +defs["igDebugNodeDockNode"][1]["ret"] = "void" +defs["igDebugNodeDockNode"][1]["signature"] = "(ImGuiDockNode*,const char*)" +defs["igDebugNodeDockNode"][1]["stname"] = "" +defs["igDebugNodeDockNode"]["(ImGuiDockNode*,const char*)"] = defs["igDebugNodeDockNode"][1] +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"] = {} +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1] = {} +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["args"] = "(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb)" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"] = {} +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][1] = {} +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][1]["name"] = "out_draw_list" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][2] = {} +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][2]["name"] = "draw_list" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][2]["type"] = "const ImDrawList*" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][3] = {} +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][3]["name"] = "draw_cmd" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][3]["type"] = "const ImDrawCmd*" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][4] = {} +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][4]["name"] = "show_mesh" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][4]["type"] = "bool" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][5] = {} +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][5]["name"] = "show_aabb" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsT"][5]["type"] = "bool" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["argsoriginal"] = "(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb)" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["call_args"] = "(out_draw_list,draw_list,draw_cmd,show_mesh,show_aabb)" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["cimguiname"] = "igDebugNodeDrawCmdShowMeshAndBoundingBox" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["defaults"] = {} +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["funcname"] = "DebugNodeDrawCmdShowMeshAndBoundingBox" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["location"] = "imgui_internal:3436" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["namespace"] = "ImGui" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["ov_cimguiname"] = "igDebugNodeDrawCmdShowMeshAndBoundingBox" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["ret"] = "void" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["signature"] = "(ImDrawList*,const ImDrawList*,const ImDrawCmd*,bool,bool)" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1]["stname"] = "" +defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"]["(ImDrawList*,const ImDrawList*,const ImDrawCmd*,bool,bool)"] = defs["igDebugNodeDrawCmdShowMeshAndBoundingBox"][1] +defs["igDebugNodeDrawList"] = {} +defs["igDebugNodeDrawList"][1] = {} +defs["igDebugNodeDrawList"][1]["args"] = "(ImGuiWindow* window,ImGuiViewportP* viewport,const ImDrawList* draw_list,const char* label)" +defs["igDebugNodeDrawList"][1]["argsT"] = {} +defs["igDebugNodeDrawList"][1]["argsT"][1] = {} +defs["igDebugNodeDrawList"][1]["argsT"][1]["name"] = "window" +defs["igDebugNodeDrawList"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igDebugNodeDrawList"][1]["argsT"][2] = {} +defs["igDebugNodeDrawList"][1]["argsT"][2]["name"] = "viewport" +defs["igDebugNodeDrawList"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["igDebugNodeDrawList"][1]["argsT"][3] = {} +defs["igDebugNodeDrawList"][1]["argsT"][3]["name"] = "draw_list" +defs["igDebugNodeDrawList"][1]["argsT"][3]["type"] = "const ImDrawList*" +defs["igDebugNodeDrawList"][1]["argsT"][4] = {} +defs["igDebugNodeDrawList"][1]["argsT"][4]["name"] = "label" +defs["igDebugNodeDrawList"][1]["argsT"][4]["type"] = "const char*" +defs["igDebugNodeDrawList"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiViewportP* viewport,const ImDrawList* draw_list,const char* label)" +defs["igDebugNodeDrawList"][1]["call_args"] = "(window,viewport,draw_list,label)" +defs["igDebugNodeDrawList"][1]["cimguiname"] = "igDebugNodeDrawList" +defs["igDebugNodeDrawList"][1]["defaults"] = {} +defs["igDebugNodeDrawList"][1]["funcname"] = "DebugNodeDrawList" +defs["igDebugNodeDrawList"][1]["location"] = "imgui_internal:3435" +defs["igDebugNodeDrawList"][1]["namespace"] = "ImGui" +defs["igDebugNodeDrawList"][1]["ov_cimguiname"] = "igDebugNodeDrawList" +defs["igDebugNodeDrawList"][1]["ret"] = "void" +defs["igDebugNodeDrawList"][1]["signature"] = "(ImGuiWindow*,ImGuiViewportP*,const ImDrawList*,const char*)" +defs["igDebugNodeDrawList"][1]["stname"] = "" +defs["igDebugNodeDrawList"]["(ImGuiWindow*,ImGuiViewportP*,const ImDrawList*,const char*)"] = defs["igDebugNodeDrawList"][1] +defs["igDebugNodeFont"] = {} +defs["igDebugNodeFont"][1] = {} +defs["igDebugNodeFont"][1]["args"] = "(ImFont* font)" +defs["igDebugNodeFont"][1]["argsT"] = {} +defs["igDebugNodeFont"][1]["argsT"][1] = {} +defs["igDebugNodeFont"][1]["argsT"][1]["name"] = "font" +defs["igDebugNodeFont"][1]["argsT"][1]["type"] = "ImFont*" +defs["igDebugNodeFont"][1]["argsoriginal"] = "(ImFont* font)" +defs["igDebugNodeFont"][1]["call_args"] = "(font)" +defs["igDebugNodeFont"][1]["cimguiname"] = "igDebugNodeFont" +defs["igDebugNodeFont"][1]["defaults"] = {} +defs["igDebugNodeFont"][1]["funcname"] = "DebugNodeFont" +defs["igDebugNodeFont"][1]["location"] = "imgui_internal:3437" +defs["igDebugNodeFont"][1]["namespace"] = "ImGui" +defs["igDebugNodeFont"][1]["ov_cimguiname"] = "igDebugNodeFont" +defs["igDebugNodeFont"][1]["ret"] = "void" +defs["igDebugNodeFont"][1]["signature"] = "(ImFont*)" +defs["igDebugNodeFont"][1]["stname"] = "" +defs["igDebugNodeFont"]["(ImFont*)"] = defs["igDebugNodeFont"][1] +defs["igDebugNodeFontGlyph"] = {} +defs["igDebugNodeFontGlyph"][1] = {} +defs["igDebugNodeFontGlyph"][1]["args"] = "(ImFont* font,const ImFontGlyph* glyph)" +defs["igDebugNodeFontGlyph"][1]["argsT"] = {} +defs["igDebugNodeFontGlyph"][1]["argsT"][1] = {} +defs["igDebugNodeFontGlyph"][1]["argsT"][1]["name"] = "font" +defs["igDebugNodeFontGlyph"][1]["argsT"][1]["type"] = "ImFont*" +defs["igDebugNodeFontGlyph"][1]["argsT"][2] = {} +defs["igDebugNodeFontGlyph"][1]["argsT"][2]["name"] = "glyph" +defs["igDebugNodeFontGlyph"][1]["argsT"][2]["type"] = "const ImFontGlyph*" +defs["igDebugNodeFontGlyph"][1]["argsoriginal"] = "(ImFont* font,const ImFontGlyph* glyph)" +defs["igDebugNodeFontGlyph"][1]["call_args"] = "(font,glyph)" +defs["igDebugNodeFontGlyph"][1]["cimguiname"] = "igDebugNodeFontGlyph" +defs["igDebugNodeFontGlyph"][1]["defaults"] = {} +defs["igDebugNodeFontGlyph"][1]["funcname"] = "DebugNodeFontGlyph" +defs["igDebugNodeFontGlyph"][1]["location"] = "imgui_internal:3438" +defs["igDebugNodeFontGlyph"][1]["namespace"] = "ImGui" +defs["igDebugNodeFontGlyph"][1]["ov_cimguiname"] = "igDebugNodeFontGlyph" +defs["igDebugNodeFontGlyph"][1]["ret"] = "void" +defs["igDebugNodeFontGlyph"][1]["signature"] = "(ImFont*,const ImFontGlyph*)" +defs["igDebugNodeFontGlyph"][1]["stname"] = "" +defs["igDebugNodeFontGlyph"]["(ImFont*,const ImFontGlyph*)"] = defs["igDebugNodeFontGlyph"][1] +defs["igDebugNodeInputTextState"] = {} +defs["igDebugNodeInputTextState"][1] = {} +defs["igDebugNodeInputTextState"][1]["args"] = "(ImGuiInputTextState* state)" +defs["igDebugNodeInputTextState"][1]["argsT"] = {} +defs["igDebugNodeInputTextState"][1]["argsT"][1] = {} +defs["igDebugNodeInputTextState"][1]["argsT"][1]["name"] = "state" +defs["igDebugNodeInputTextState"][1]["argsT"][1]["type"] = "ImGuiInputTextState*" +defs["igDebugNodeInputTextState"][1]["argsoriginal"] = "(ImGuiInputTextState* state)" +defs["igDebugNodeInputTextState"][1]["call_args"] = "(state)" +defs["igDebugNodeInputTextState"][1]["cimguiname"] = "igDebugNodeInputTextState" +defs["igDebugNodeInputTextState"][1]["defaults"] = {} +defs["igDebugNodeInputTextState"][1]["funcname"] = "DebugNodeInputTextState" +defs["igDebugNodeInputTextState"][1]["location"] = "imgui_internal:3443" +defs["igDebugNodeInputTextState"][1]["namespace"] = "ImGui" +defs["igDebugNodeInputTextState"][1]["ov_cimguiname"] = "igDebugNodeInputTextState" +defs["igDebugNodeInputTextState"][1]["ret"] = "void" +defs["igDebugNodeInputTextState"][1]["signature"] = "(ImGuiInputTextState*)" +defs["igDebugNodeInputTextState"][1]["stname"] = "" +defs["igDebugNodeInputTextState"]["(ImGuiInputTextState*)"] = defs["igDebugNodeInputTextState"][1] +defs["igDebugNodeStorage"] = {} +defs["igDebugNodeStorage"][1] = {} +defs["igDebugNodeStorage"][1]["args"] = "(ImGuiStorage* storage,const char* label)" +defs["igDebugNodeStorage"][1]["argsT"] = {} +defs["igDebugNodeStorage"][1]["argsT"][1] = {} +defs["igDebugNodeStorage"][1]["argsT"][1]["name"] = "storage" +defs["igDebugNodeStorage"][1]["argsT"][1]["type"] = "ImGuiStorage*" +defs["igDebugNodeStorage"][1]["argsT"][2] = {} +defs["igDebugNodeStorage"][1]["argsT"][2]["name"] = "label" +defs["igDebugNodeStorage"][1]["argsT"][2]["type"] = "const char*" +defs["igDebugNodeStorage"][1]["argsoriginal"] = "(ImGuiStorage* storage,const char* label)" +defs["igDebugNodeStorage"][1]["call_args"] = "(storage,label)" +defs["igDebugNodeStorage"][1]["cimguiname"] = "igDebugNodeStorage" +defs["igDebugNodeStorage"][1]["defaults"] = {} +defs["igDebugNodeStorage"][1]["funcname"] = "DebugNodeStorage" +defs["igDebugNodeStorage"][1]["location"] = "imgui_internal:3439" +defs["igDebugNodeStorage"][1]["namespace"] = "ImGui" +defs["igDebugNodeStorage"][1]["ov_cimguiname"] = "igDebugNodeStorage" +defs["igDebugNodeStorage"][1]["ret"] = "void" +defs["igDebugNodeStorage"][1]["signature"] = "(ImGuiStorage*,const char*)" +defs["igDebugNodeStorage"][1]["stname"] = "" +defs["igDebugNodeStorage"]["(ImGuiStorage*,const char*)"] = defs["igDebugNodeStorage"][1] +defs["igDebugNodeTabBar"] = {} +defs["igDebugNodeTabBar"][1] = {} +defs["igDebugNodeTabBar"][1]["args"] = "(ImGuiTabBar* tab_bar,const char* label)" +defs["igDebugNodeTabBar"][1]["argsT"] = {} +defs["igDebugNodeTabBar"][1]["argsT"][1] = {} +defs["igDebugNodeTabBar"][1]["argsT"][1]["name"] = "tab_bar" +defs["igDebugNodeTabBar"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igDebugNodeTabBar"][1]["argsT"][2] = {} +defs["igDebugNodeTabBar"][1]["argsT"][2]["name"] = "label" +defs["igDebugNodeTabBar"][1]["argsT"][2]["type"] = "const char*" +defs["igDebugNodeTabBar"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar,const char* label)" +defs["igDebugNodeTabBar"][1]["call_args"] = "(tab_bar,label)" +defs["igDebugNodeTabBar"][1]["cimguiname"] = "igDebugNodeTabBar" +defs["igDebugNodeTabBar"][1]["defaults"] = {} +defs["igDebugNodeTabBar"][1]["funcname"] = "DebugNodeTabBar" +defs["igDebugNodeTabBar"][1]["location"] = "imgui_internal:3440" +defs["igDebugNodeTabBar"][1]["namespace"] = "ImGui" +defs["igDebugNodeTabBar"][1]["ov_cimguiname"] = "igDebugNodeTabBar" +defs["igDebugNodeTabBar"][1]["ret"] = "void" +defs["igDebugNodeTabBar"][1]["signature"] = "(ImGuiTabBar*,const char*)" +defs["igDebugNodeTabBar"][1]["stname"] = "" +defs["igDebugNodeTabBar"]["(ImGuiTabBar*,const char*)"] = defs["igDebugNodeTabBar"][1] +defs["igDebugNodeTable"] = {} +defs["igDebugNodeTable"][1] = {} +defs["igDebugNodeTable"][1]["args"] = "(ImGuiTable* table)" +defs["igDebugNodeTable"][1]["argsT"] = {} +defs["igDebugNodeTable"][1]["argsT"][1] = {} +defs["igDebugNodeTable"][1]["argsT"][1]["name"] = "table" +defs["igDebugNodeTable"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igDebugNodeTable"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igDebugNodeTable"][1]["call_args"] = "(table)" +defs["igDebugNodeTable"][1]["cimguiname"] = "igDebugNodeTable" +defs["igDebugNodeTable"][1]["defaults"] = {} +defs["igDebugNodeTable"][1]["funcname"] = "DebugNodeTable" +defs["igDebugNodeTable"][1]["location"] = "imgui_internal:3441" +defs["igDebugNodeTable"][1]["namespace"] = "ImGui" +defs["igDebugNodeTable"][1]["ov_cimguiname"] = "igDebugNodeTable" +defs["igDebugNodeTable"][1]["ret"] = "void" +defs["igDebugNodeTable"][1]["signature"] = "(ImGuiTable*)" +defs["igDebugNodeTable"][1]["stname"] = "" +defs["igDebugNodeTable"]["(ImGuiTable*)"] = defs["igDebugNodeTable"][1] +defs["igDebugNodeTableSettings"] = {} +defs["igDebugNodeTableSettings"][1] = {} +defs["igDebugNodeTableSettings"][1]["args"] = "(ImGuiTableSettings* settings)" +defs["igDebugNodeTableSettings"][1]["argsT"] = {} +defs["igDebugNodeTableSettings"][1]["argsT"][1] = {} +defs["igDebugNodeTableSettings"][1]["argsT"][1]["name"] = "settings" +defs["igDebugNodeTableSettings"][1]["argsT"][1]["type"] = "ImGuiTableSettings*" +defs["igDebugNodeTableSettings"][1]["argsoriginal"] = "(ImGuiTableSettings* settings)" +defs["igDebugNodeTableSettings"][1]["call_args"] = "(settings)" +defs["igDebugNodeTableSettings"][1]["cimguiname"] = "igDebugNodeTableSettings" +defs["igDebugNodeTableSettings"][1]["defaults"] = {} +defs["igDebugNodeTableSettings"][1]["funcname"] = "DebugNodeTableSettings" +defs["igDebugNodeTableSettings"][1]["location"] = "imgui_internal:3442" +defs["igDebugNodeTableSettings"][1]["namespace"] = "ImGui" +defs["igDebugNodeTableSettings"][1]["ov_cimguiname"] = "igDebugNodeTableSettings" +defs["igDebugNodeTableSettings"][1]["ret"] = "void" +defs["igDebugNodeTableSettings"][1]["signature"] = "(ImGuiTableSettings*)" +defs["igDebugNodeTableSettings"][1]["stname"] = "" +defs["igDebugNodeTableSettings"]["(ImGuiTableSettings*)"] = defs["igDebugNodeTableSettings"][1] +defs["igDebugNodeViewport"] = {} +defs["igDebugNodeViewport"][1] = {} +defs["igDebugNodeViewport"][1]["args"] = "(ImGuiViewportP* viewport)" +defs["igDebugNodeViewport"][1]["argsT"] = {} +defs["igDebugNodeViewport"][1]["argsT"][1] = {} +defs["igDebugNodeViewport"][1]["argsT"][1]["name"] = "viewport" +defs["igDebugNodeViewport"][1]["argsT"][1]["type"] = "ImGuiViewportP*" +defs["igDebugNodeViewport"][1]["argsoriginal"] = "(ImGuiViewportP* viewport)" +defs["igDebugNodeViewport"][1]["call_args"] = "(viewport)" +defs["igDebugNodeViewport"][1]["cimguiname"] = "igDebugNodeViewport" +defs["igDebugNodeViewport"][1]["defaults"] = {} +defs["igDebugNodeViewport"][1]["funcname"] = "DebugNodeViewport" +defs["igDebugNodeViewport"][1]["location"] = "imgui_internal:3448" +defs["igDebugNodeViewport"][1]["namespace"] = "ImGui" +defs["igDebugNodeViewport"][1]["ov_cimguiname"] = "igDebugNodeViewport" +defs["igDebugNodeViewport"][1]["ret"] = "void" +defs["igDebugNodeViewport"][1]["signature"] = "(ImGuiViewportP*)" +defs["igDebugNodeViewport"][1]["stname"] = "" +defs["igDebugNodeViewport"]["(ImGuiViewportP*)"] = defs["igDebugNodeViewport"][1] +defs["igDebugNodeWindow"] = {} +defs["igDebugNodeWindow"][1] = {} +defs["igDebugNodeWindow"][1]["args"] = "(ImGuiWindow* window,const char* label)" +defs["igDebugNodeWindow"][1]["argsT"] = {} +defs["igDebugNodeWindow"][1]["argsT"][1] = {} +defs["igDebugNodeWindow"][1]["argsT"][1]["name"] = "window" +defs["igDebugNodeWindow"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igDebugNodeWindow"][1]["argsT"][2] = {} +defs["igDebugNodeWindow"][1]["argsT"][2]["name"] = "label" +defs["igDebugNodeWindow"][1]["argsT"][2]["type"] = "const char*" +defs["igDebugNodeWindow"][1]["argsoriginal"] = "(ImGuiWindow* window,const char* label)" +defs["igDebugNodeWindow"][1]["call_args"] = "(window,label)" +defs["igDebugNodeWindow"][1]["cimguiname"] = "igDebugNodeWindow" +defs["igDebugNodeWindow"][1]["defaults"] = {} +defs["igDebugNodeWindow"][1]["funcname"] = "DebugNodeWindow" +defs["igDebugNodeWindow"][1]["location"] = "imgui_internal:3444" +defs["igDebugNodeWindow"][1]["namespace"] = "ImGui" +defs["igDebugNodeWindow"][1]["ov_cimguiname"] = "igDebugNodeWindow" +defs["igDebugNodeWindow"][1]["ret"] = "void" +defs["igDebugNodeWindow"][1]["signature"] = "(ImGuiWindow*,const char*)" +defs["igDebugNodeWindow"][1]["stname"] = "" +defs["igDebugNodeWindow"]["(ImGuiWindow*,const char*)"] = defs["igDebugNodeWindow"][1] +defs["igDebugNodeWindowSettings"] = {} +defs["igDebugNodeWindowSettings"][1] = {} +defs["igDebugNodeWindowSettings"][1]["args"] = "(ImGuiWindowSettings* settings)" +defs["igDebugNodeWindowSettings"][1]["argsT"] = {} +defs["igDebugNodeWindowSettings"][1]["argsT"][1] = {} +defs["igDebugNodeWindowSettings"][1]["argsT"][1]["name"] = "settings" +defs["igDebugNodeWindowSettings"][1]["argsT"][1]["type"] = "ImGuiWindowSettings*" +defs["igDebugNodeWindowSettings"][1]["argsoriginal"] = "(ImGuiWindowSettings* settings)" +defs["igDebugNodeWindowSettings"][1]["call_args"] = "(settings)" +defs["igDebugNodeWindowSettings"][1]["cimguiname"] = "igDebugNodeWindowSettings" +defs["igDebugNodeWindowSettings"][1]["defaults"] = {} +defs["igDebugNodeWindowSettings"][1]["funcname"] = "DebugNodeWindowSettings" +defs["igDebugNodeWindowSettings"][1]["location"] = "imgui_internal:3445" +defs["igDebugNodeWindowSettings"][1]["namespace"] = "ImGui" +defs["igDebugNodeWindowSettings"][1]["ov_cimguiname"] = "igDebugNodeWindowSettings" +defs["igDebugNodeWindowSettings"][1]["ret"] = "void" +defs["igDebugNodeWindowSettings"][1]["signature"] = "(ImGuiWindowSettings*)" +defs["igDebugNodeWindowSettings"][1]["stname"] = "" +defs["igDebugNodeWindowSettings"]["(ImGuiWindowSettings*)"] = defs["igDebugNodeWindowSettings"][1] +defs["igDebugNodeWindowsList"] = {} +defs["igDebugNodeWindowsList"][1] = {} +defs["igDebugNodeWindowsList"][1]["args"] = "(ImVector_ImGuiWindowPtr* windows,const char* label)" +defs["igDebugNodeWindowsList"][1]["argsT"] = {} +defs["igDebugNodeWindowsList"][1]["argsT"][1] = {} +defs["igDebugNodeWindowsList"][1]["argsT"][1]["name"] = "windows" +defs["igDebugNodeWindowsList"][1]["argsT"][1]["type"] = "ImVector_ImGuiWindowPtr*" +defs["igDebugNodeWindowsList"][1]["argsT"][2] = {} +defs["igDebugNodeWindowsList"][1]["argsT"][2]["name"] = "label" +defs["igDebugNodeWindowsList"][1]["argsT"][2]["type"] = "const char*" +defs["igDebugNodeWindowsList"][1]["argsoriginal"] = "(ImVector* windows,const char* label)" +defs["igDebugNodeWindowsList"][1]["call_args"] = "(windows,label)" +defs["igDebugNodeWindowsList"][1]["cimguiname"] = "igDebugNodeWindowsList" +defs["igDebugNodeWindowsList"][1]["defaults"] = {} +defs["igDebugNodeWindowsList"][1]["funcname"] = "DebugNodeWindowsList" +defs["igDebugNodeWindowsList"][1]["location"] = "imgui_internal:3446" +defs["igDebugNodeWindowsList"][1]["namespace"] = "ImGui" +defs["igDebugNodeWindowsList"][1]["ov_cimguiname"] = "igDebugNodeWindowsList" +defs["igDebugNodeWindowsList"][1]["ret"] = "void" +defs["igDebugNodeWindowsList"][1]["signature"] = "(ImVector_ImGuiWindowPtr*,const char*)" +defs["igDebugNodeWindowsList"][1]["stname"] = "" +defs["igDebugNodeWindowsList"]["(ImVector_ImGuiWindowPtr*,const char*)"] = defs["igDebugNodeWindowsList"][1] +defs["igDebugNodeWindowsListByBeginStackParent"] = {} +defs["igDebugNodeWindowsListByBeginStackParent"][1] = {} +defs["igDebugNodeWindowsListByBeginStackParent"][1]["args"] = "(ImGuiWindow** windows,int windows_size,ImGuiWindow* parent_in_begin_stack)" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"] = {} +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"][1] = {} +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"][1]["name"] = "windows" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"][1]["type"] = "ImGuiWindow**" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"][2] = {} +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"][2]["name"] = "windows_size" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"][2]["type"] = "int" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"][3] = {} +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"][3]["name"] = "parent_in_begin_stack" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsT"][3]["type"] = "ImGuiWindow*" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["argsoriginal"] = "(ImGuiWindow** windows,int windows_size,ImGuiWindow* parent_in_begin_stack)" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["call_args"] = "(windows,windows_size,parent_in_begin_stack)" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["cimguiname"] = "igDebugNodeWindowsListByBeginStackParent" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["defaults"] = {} +defs["igDebugNodeWindowsListByBeginStackParent"][1]["funcname"] = "DebugNodeWindowsListByBeginStackParent" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["location"] = "imgui_internal:3447" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["namespace"] = "ImGui" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["ov_cimguiname"] = "igDebugNodeWindowsListByBeginStackParent" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["ret"] = "void" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["signature"] = "(ImGuiWindow**,int,ImGuiWindow*)" +defs["igDebugNodeWindowsListByBeginStackParent"][1]["stname"] = "" +defs["igDebugNodeWindowsListByBeginStackParent"]["(ImGuiWindow**,int,ImGuiWindow*)"] = defs["igDebugNodeWindowsListByBeginStackParent"][1] +defs["igDebugRenderViewportThumbnail"] = {} +defs["igDebugRenderViewportThumbnail"][1] = {} +defs["igDebugRenderViewportThumbnail"][1]["args"] = "(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb)" +defs["igDebugRenderViewportThumbnail"][1]["argsT"] = {} +defs["igDebugRenderViewportThumbnail"][1]["argsT"][1] = {} +defs["igDebugRenderViewportThumbnail"][1]["argsT"][1]["name"] = "draw_list" +defs["igDebugRenderViewportThumbnail"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igDebugRenderViewportThumbnail"][1]["argsT"][2] = {} +defs["igDebugRenderViewportThumbnail"][1]["argsT"][2]["name"] = "viewport" +defs["igDebugRenderViewportThumbnail"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["igDebugRenderViewportThumbnail"][1]["argsT"][3] = {} +defs["igDebugRenderViewportThumbnail"][1]["argsT"][3]["name"] = "bb" +defs["igDebugRenderViewportThumbnail"][1]["argsT"][3]["type"] = "const ImRect" +defs["igDebugRenderViewportThumbnail"][1]["argsoriginal"] = "(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect& bb)" +defs["igDebugRenderViewportThumbnail"][1]["call_args"] = "(draw_list,viewport,bb)" +defs["igDebugRenderViewportThumbnail"][1]["cimguiname"] = "igDebugRenderViewportThumbnail" +defs["igDebugRenderViewportThumbnail"][1]["defaults"] = {} +defs["igDebugRenderViewportThumbnail"][1]["funcname"] = "DebugRenderViewportThumbnail" +defs["igDebugRenderViewportThumbnail"][1]["location"] = "imgui_internal:3449" +defs["igDebugRenderViewportThumbnail"][1]["namespace"] = "ImGui" +defs["igDebugRenderViewportThumbnail"][1]["ov_cimguiname"] = "igDebugRenderViewportThumbnail" +defs["igDebugRenderViewportThumbnail"][1]["ret"] = "void" +defs["igDebugRenderViewportThumbnail"][1]["signature"] = "(ImDrawList*,ImGuiViewportP*,const ImRect)" +defs["igDebugRenderViewportThumbnail"][1]["stname"] = "" +defs["igDebugRenderViewportThumbnail"]["(ImDrawList*,ImGuiViewportP*,const ImRect)"] = defs["igDebugRenderViewportThumbnail"][1] +defs["igDebugStartItemPicker"] = {} +defs["igDebugStartItemPicker"][1] = {} +defs["igDebugStartItemPicker"][1]["args"] = "()" +defs["igDebugStartItemPicker"][1]["argsT"] = {} +defs["igDebugStartItemPicker"][1]["argsoriginal"] = "()" +defs["igDebugStartItemPicker"][1]["call_args"] = "()" +defs["igDebugStartItemPicker"][1]["cimguiname"] = "igDebugStartItemPicker" +defs["igDebugStartItemPicker"][1]["defaults"] = {} +defs["igDebugStartItemPicker"][1]["funcname"] = "DebugStartItemPicker" +defs["igDebugStartItemPicker"][1]["location"] = "imgui_internal:3430" +defs["igDebugStartItemPicker"][1]["namespace"] = "ImGui" +defs["igDebugStartItemPicker"][1]["ov_cimguiname"] = "igDebugStartItemPicker" +defs["igDebugStartItemPicker"][1]["ret"] = "void" +defs["igDebugStartItemPicker"][1]["signature"] = "()" +defs["igDebugStartItemPicker"][1]["stname"] = "" +defs["igDebugStartItemPicker"]["()"] = defs["igDebugStartItemPicker"][1] defs["igDebugTextEncoding"] = {} defs["igDebugTextEncoding"][1] = {} defs["igDebugTextEncoding"][1]["args"] = "(const char* text)" @@ -7870,6 +14155,25 @@ defs["igDestroyContext"][1]["ret"] = "void" defs["igDestroyContext"][1]["signature"] = "(ImGuiContext*)" defs["igDestroyContext"][1]["stname"] = "" defs["igDestroyContext"]["(ImGuiContext*)"] = defs["igDestroyContext"][1] +defs["igDestroyPlatformWindow"] = {} +defs["igDestroyPlatformWindow"][1] = {} +defs["igDestroyPlatformWindow"][1]["args"] = "(ImGuiViewportP* viewport)" +defs["igDestroyPlatformWindow"][1]["argsT"] = {} +defs["igDestroyPlatformWindow"][1]["argsT"][1] = {} +defs["igDestroyPlatformWindow"][1]["argsT"][1]["name"] = "viewport" +defs["igDestroyPlatformWindow"][1]["argsT"][1]["type"] = "ImGuiViewportP*" +defs["igDestroyPlatformWindow"][1]["argsoriginal"] = "(ImGuiViewportP* viewport)" +defs["igDestroyPlatformWindow"][1]["call_args"] = "(viewport)" +defs["igDestroyPlatformWindow"][1]["cimguiname"] = "igDestroyPlatformWindow" +defs["igDestroyPlatformWindow"][1]["defaults"] = {} +defs["igDestroyPlatformWindow"][1]["funcname"] = "DestroyPlatformWindow" +defs["igDestroyPlatformWindow"][1]["location"] = "imgui_internal:2984" +defs["igDestroyPlatformWindow"][1]["namespace"] = "ImGui" +defs["igDestroyPlatformWindow"][1]["ov_cimguiname"] = "igDestroyPlatformWindow" +defs["igDestroyPlatformWindow"][1]["ret"] = "void" +defs["igDestroyPlatformWindow"][1]["signature"] = "(ImGuiViewportP*)" +defs["igDestroyPlatformWindow"][1]["stname"] = "" +defs["igDestroyPlatformWindow"]["(ImGuiViewportP*)"] = defs["igDestroyPlatformWindow"][1] defs["igDestroyPlatformWindows"] = {} defs["igDestroyPlatformWindows"][1] = {} defs["igDestroyPlatformWindows"][1]["args"] = "()" @@ -7886,6 +14190,729 @@ defs["igDestroyPlatformWindows"][1]["ret"] = "void" defs["igDestroyPlatformWindows"][1]["signature"] = "()" defs["igDestroyPlatformWindows"][1]["stname"] = "" defs["igDestroyPlatformWindows"]["()"] = defs["igDestroyPlatformWindows"][1] +defs["igDockBuilderAddNode"] = {} +defs["igDockBuilderAddNode"][1] = {} +defs["igDockBuilderAddNode"][1]["args"] = "(ImGuiID node_id,ImGuiDockNodeFlags flags)" +defs["igDockBuilderAddNode"][1]["argsT"] = {} +defs["igDockBuilderAddNode"][1]["argsT"][1] = {} +defs["igDockBuilderAddNode"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderAddNode"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderAddNode"][1]["argsT"][2] = {} +defs["igDockBuilderAddNode"][1]["argsT"][2]["name"] = "flags" +defs["igDockBuilderAddNode"][1]["argsT"][2]["type"] = "ImGuiDockNodeFlags" +defs["igDockBuilderAddNode"][1]["argsoriginal"] = "(ImGuiID node_id=0,ImGuiDockNodeFlags flags=0)" +defs["igDockBuilderAddNode"][1]["call_args"] = "(node_id,flags)" +defs["igDockBuilderAddNode"][1]["cimguiname"] = "igDockBuilderAddNode" +defs["igDockBuilderAddNode"][1]["defaults"] = {} +defs["igDockBuilderAddNode"][1]["defaults"]["flags"] = "0" +defs["igDockBuilderAddNode"][1]["defaults"]["node_id"] = "0" +defs["igDockBuilderAddNode"][1]["funcname"] = "DockBuilderAddNode" +defs["igDockBuilderAddNode"][1]["location"] = "imgui_internal:3212" +defs["igDockBuilderAddNode"][1]["namespace"] = "ImGui" +defs["igDockBuilderAddNode"][1]["ov_cimguiname"] = "igDockBuilderAddNode" +defs["igDockBuilderAddNode"][1]["ret"] = "ImGuiID" +defs["igDockBuilderAddNode"][1]["signature"] = "(ImGuiID,ImGuiDockNodeFlags)" +defs["igDockBuilderAddNode"][1]["stname"] = "" +defs["igDockBuilderAddNode"]["(ImGuiID,ImGuiDockNodeFlags)"] = defs["igDockBuilderAddNode"][1] +defs["igDockBuilderCopyDockSpace"] = {} +defs["igDockBuilderCopyDockSpace"][1] = {} +defs["igDockBuilderCopyDockSpace"][1]["args"] = "(ImGuiID src_dockspace_id,ImGuiID dst_dockspace_id,ImVector_const_charPtr* in_window_remap_pairs)" +defs["igDockBuilderCopyDockSpace"][1]["argsT"] = {} +defs["igDockBuilderCopyDockSpace"][1]["argsT"][1] = {} +defs["igDockBuilderCopyDockSpace"][1]["argsT"][1]["name"] = "src_dockspace_id" +defs["igDockBuilderCopyDockSpace"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderCopyDockSpace"][1]["argsT"][2] = {} +defs["igDockBuilderCopyDockSpace"][1]["argsT"][2]["name"] = "dst_dockspace_id" +defs["igDockBuilderCopyDockSpace"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igDockBuilderCopyDockSpace"][1]["argsT"][3] = {} +defs["igDockBuilderCopyDockSpace"][1]["argsT"][3]["name"] = "in_window_remap_pairs" +defs["igDockBuilderCopyDockSpace"][1]["argsT"][3]["type"] = "ImVector_const_charPtr*" +defs["igDockBuilderCopyDockSpace"][1]["argsoriginal"] = "(ImGuiID src_dockspace_id,ImGuiID dst_dockspace_id,ImVector* in_window_remap_pairs)" +defs["igDockBuilderCopyDockSpace"][1]["call_args"] = "(src_dockspace_id,dst_dockspace_id,in_window_remap_pairs)" +defs["igDockBuilderCopyDockSpace"][1]["cimguiname"] = "igDockBuilderCopyDockSpace" +defs["igDockBuilderCopyDockSpace"][1]["defaults"] = {} +defs["igDockBuilderCopyDockSpace"][1]["funcname"] = "DockBuilderCopyDockSpace" +defs["igDockBuilderCopyDockSpace"][1]["location"] = "imgui_internal:3219" +defs["igDockBuilderCopyDockSpace"][1]["namespace"] = "ImGui" +defs["igDockBuilderCopyDockSpace"][1]["ov_cimguiname"] = "igDockBuilderCopyDockSpace" +defs["igDockBuilderCopyDockSpace"][1]["ret"] = "void" +defs["igDockBuilderCopyDockSpace"][1]["signature"] = "(ImGuiID,ImGuiID,ImVector_const_charPtr*)" +defs["igDockBuilderCopyDockSpace"][1]["stname"] = "" +defs["igDockBuilderCopyDockSpace"]["(ImGuiID,ImGuiID,ImVector_const_charPtr*)"] = defs["igDockBuilderCopyDockSpace"][1] +defs["igDockBuilderCopyNode"] = {} +defs["igDockBuilderCopyNode"][1] = {} +defs["igDockBuilderCopyNode"][1]["args"] = "(ImGuiID src_node_id,ImGuiID dst_node_id,ImVector_ImGuiID* out_node_remap_pairs)" +defs["igDockBuilderCopyNode"][1]["argsT"] = {} +defs["igDockBuilderCopyNode"][1]["argsT"][1] = {} +defs["igDockBuilderCopyNode"][1]["argsT"][1]["name"] = "src_node_id" +defs["igDockBuilderCopyNode"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderCopyNode"][1]["argsT"][2] = {} +defs["igDockBuilderCopyNode"][1]["argsT"][2]["name"] = "dst_node_id" +defs["igDockBuilderCopyNode"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igDockBuilderCopyNode"][1]["argsT"][3] = {} +defs["igDockBuilderCopyNode"][1]["argsT"][3]["name"] = "out_node_remap_pairs" +defs["igDockBuilderCopyNode"][1]["argsT"][3]["type"] = "ImVector_ImGuiID*" +defs["igDockBuilderCopyNode"][1]["argsoriginal"] = "(ImGuiID src_node_id,ImGuiID dst_node_id,ImVector* out_node_remap_pairs)" +defs["igDockBuilderCopyNode"][1]["call_args"] = "(src_node_id,dst_node_id,out_node_remap_pairs)" +defs["igDockBuilderCopyNode"][1]["cimguiname"] = "igDockBuilderCopyNode" +defs["igDockBuilderCopyNode"][1]["defaults"] = {} +defs["igDockBuilderCopyNode"][1]["funcname"] = "DockBuilderCopyNode" +defs["igDockBuilderCopyNode"][1]["location"] = "imgui_internal:3220" +defs["igDockBuilderCopyNode"][1]["namespace"] = "ImGui" +defs["igDockBuilderCopyNode"][1]["ov_cimguiname"] = "igDockBuilderCopyNode" +defs["igDockBuilderCopyNode"][1]["ret"] = "void" +defs["igDockBuilderCopyNode"][1]["signature"] = "(ImGuiID,ImGuiID,ImVector_ImGuiID*)" +defs["igDockBuilderCopyNode"][1]["stname"] = "" +defs["igDockBuilderCopyNode"]["(ImGuiID,ImGuiID,ImVector_ImGuiID*)"] = defs["igDockBuilderCopyNode"][1] +defs["igDockBuilderCopyWindowSettings"] = {} +defs["igDockBuilderCopyWindowSettings"][1] = {} +defs["igDockBuilderCopyWindowSettings"][1]["args"] = "(const char* src_name,const char* dst_name)" +defs["igDockBuilderCopyWindowSettings"][1]["argsT"] = {} +defs["igDockBuilderCopyWindowSettings"][1]["argsT"][1] = {} +defs["igDockBuilderCopyWindowSettings"][1]["argsT"][1]["name"] = "src_name" +defs["igDockBuilderCopyWindowSettings"][1]["argsT"][1]["type"] = "const char*" +defs["igDockBuilderCopyWindowSettings"][1]["argsT"][2] = {} +defs["igDockBuilderCopyWindowSettings"][1]["argsT"][2]["name"] = "dst_name" +defs["igDockBuilderCopyWindowSettings"][1]["argsT"][2]["type"] = "const char*" +defs["igDockBuilderCopyWindowSettings"][1]["argsoriginal"] = "(const char* src_name,const char* dst_name)" +defs["igDockBuilderCopyWindowSettings"][1]["call_args"] = "(src_name,dst_name)" +defs["igDockBuilderCopyWindowSettings"][1]["cimguiname"] = "igDockBuilderCopyWindowSettings" +defs["igDockBuilderCopyWindowSettings"][1]["defaults"] = {} +defs["igDockBuilderCopyWindowSettings"][1]["funcname"] = "DockBuilderCopyWindowSettings" +defs["igDockBuilderCopyWindowSettings"][1]["location"] = "imgui_internal:3221" +defs["igDockBuilderCopyWindowSettings"][1]["namespace"] = "ImGui" +defs["igDockBuilderCopyWindowSettings"][1]["ov_cimguiname"] = "igDockBuilderCopyWindowSettings" +defs["igDockBuilderCopyWindowSettings"][1]["ret"] = "void" +defs["igDockBuilderCopyWindowSettings"][1]["signature"] = "(const char*,const char*)" +defs["igDockBuilderCopyWindowSettings"][1]["stname"] = "" +defs["igDockBuilderCopyWindowSettings"]["(const char*,const char*)"] = defs["igDockBuilderCopyWindowSettings"][1] +defs["igDockBuilderDockWindow"] = {} +defs["igDockBuilderDockWindow"][1] = {} +defs["igDockBuilderDockWindow"][1]["args"] = "(const char* window_name,ImGuiID node_id)" +defs["igDockBuilderDockWindow"][1]["argsT"] = {} +defs["igDockBuilderDockWindow"][1]["argsT"][1] = {} +defs["igDockBuilderDockWindow"][1]["argsT"][1]["name"] = "window_name" +defs["igDockBuilderDockWindow"][1]["argsT"][1]["type"] = "const char*" +defs["igDockBuilderDockWindow"][1]["argsT"][2] = {} +defs["igDockBuilderDockWindow"][1]["argsT"][2]["name"] = "node_id" +defs["igDockBuilderDockWindow"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igDockBuilderDockWindow"][1]["argsoriginal"] = "(const char* window_name,ImGuiID node_id)" +defs["igDockBuilderDockWindow"][1]["call_args"] = "(window_name,node_id)" +defs["igDockBuilderDockWindow"][1]["cimguiname"] = "igDockBuilderDockWindow" +defs["igDockBuilderDockWindow"][1]["defaults"] = {} +defs["igDockBuilderDockWindow"][1]["funcname"] = "DockBuilderDockWindow" +defs["igDockBuilderDockWindow"][1]["location"] = "imgui_internal:3209" +defs["igDockBuilderDockWindow"][1]["namespace"] = "ImGui" +defs["igDockBuilderDockWindow"][1]["ov_cimguiname"] = "igDockBuilderDockWindow" +defs["igDockBuilderDockWindow"][1]["ret"] = "void" +defs["igDockBuilderDockWindow"][1]["signature"] = "(const char*,ImGuiID)" +defs["igDockBuilderDockWindow"][1]["stname"] = "" +defs["igDockBuilderDockWindow"]["(const char*,ImGuiID)"] = defs["igDockBuilderDockWindow"][1] +defs["igDockBuilderFinish"] = {} +defs["igDockBuilderFinish"][1] = {} +defs["igDockBuilderFinish"][1]["args"] = "(ImGuiID node_id)" +defs["igDockBuilderFinish"][1]["argsT"] = {} +defs["igDockBuilderFinish"][1]["argsT"][1] = {} +defs["igDockBuilderFinish"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderFinish"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderFinish"][1]["argsoriginal"] = "(ImGuiID node_id)" +defs["igDockBuilderFinish"][1]["call_args"] = "(node_id)" +defs["igDockBuilderFinish"][1]["cimguiname"] = "igDockBuilderFinish" +defs["igDockBuilderFinish"][1]["defaults"] = {} +defs["igDockBuilderFinish"][1]["funcname"] = "DockBuilderFinish" +defs["igDockBuilderFinish"][1]["location"] = "imgui_internal:3222" +defs["igDockBuilderFinish"][1]["namespace"] = "ImGui" +defs["igDockBuilderFinish"][1]["ov_cimguiname"] = "igDockBuilderFinish" +defs["igDockBuilderFinish"][1]["ret"] = "void" +defs["igDockBuilderFinish"][1]["signature"] = "(ImGuiID)" +defs["igDockBuilderFinish"][1]["stname"] = "" +defs["igDockBuilderFinish"]["(ImGuiID)"] = defs["igDockBuilderFinish"][1] +defs["igDockBuilderGetCentralNode"] = {} +defs["igDockBuilderGetCentralNode"][1] = {} +defs["igDockBuilderGetCentralNode"][1]["args"] = "(ImGuiID node_id)" +defs["igDockBuilderGetCentralNode"][1]["argsT"] = {} +defs["igDockBuilderGetCentralNode"][1]["argsT"][1] = {} +defs["igDockBuilderGetCentralNode"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderGetCentralNode"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderGetCentralNode"][1]["argsoriginal"] = "(ImGuiID node_id)" +defs["igDockBuilderGetCentralNode"][1]["call_args"] = "(node_id)" +defs["igDockBuilderGetCentralNode"][1]["cimguiname"] = "igDockBuilderGetCentralNode" +defs["igDockBuilderGetCentralNode"][1]["defaults"] = {} +defs["igDockBuilderGetCentralNode"][1]["funcname"] = "DockBuilderGetCentralNode" +defs["igDockBuilderGetCentralNode"][1]["location"] = "imgui_internal:3211" +defs["igDockBuilderGetCentralNode"][1]["namespace"] = "ImGui" +defs["igDockBuilderGetCentralNode"][1]["ov_cimguiname"] = "igDockBuilderGetCentralNode" +defs["igDockBuilderGetCentralNode"][1]["ret"] = "ImGuiDockNode*" +defs["igDockBuilderGetCentralNode"][1]["signature"] = "(ImGuiID)" +defs["igDockBuilderGetCentralNode"][1]["stname"] = "" +defs["igDockBuilderGetCentralNode"]["(ImGuiID)"] = defs["igDockBuilderGetCentralNode"][1] +defs["igDockBuilderGetNode"] = {} +defs["igDockBuilderGetNode"][1] = {} +defs["igDockBuilderGetNode"][1]["args"] = "(ImGuiID node_id)" +defs["igDockBuilderGetNode"][1]["argsT"] = {} +defs["igDockBuilderGetNode"][1]["argsT"][1] = {} +defs["igDockBuilderGetNode"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderGetNode"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderGetNode"][1]["argsoriginal"] = "(ImGuiID node_id)" +defs["igDockBuilderGetNode"][1]["call_args"] = "(node_id)" +defs["igDockBuilderGetNode"][1]["cimguiname"] = "igDockBuilderGetNode" +defs["igDockBuilderGetNode"][1]["defaults"] = {} +defs["igDockBuilderGetNode"][1]["funcname"] = "DockBuilderGetNode" +defs["igDockBuilderGetNode"][1]["location"] = "imgui_internal:3210" +defs["igDockBuilderGetNode"][1]["namespace"] = "ImGui" +defs["igDockBuilderGetNode"][1]["ov_cimguiname"] = "igDockBuilderGetNode" +defs["igDockBuilderGetNode"][1]["ret"] = "ImGuiDockNode*" +defs["igDockBuilderGetNode"][1]["signature"] = "(ImGuiID)" +defs["igDockBuilderGetNode"][1]["stname"] = "" +defs["igDockBuilderGetNode"]["(ImGuiID)"] = defs["igDockBuilderGetNode"][1] +defs["igDockBuilderRemoveNode"] = {} +defs["igDockBuilderRemoveNode"][1] = {} +defs["igDockBuilderRemoveNode"][1]["args"] = "(ImGuiID node_id)" +defs["igDockBuilderRemoveNode"][1]["argsT"] = {} +defs["igDockBuilderRemoveNode"][1]["argsT"][1] = {} +defs["igDockBuilderRemoveNode"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderRemoveNode"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderRemoveNode"][1]["argsoriginal"] = "(ImGuiID node_id)" +defs["igDockBuilderRemoveNode"][1]["call_args"] = "(node_id)" +defs["igDockBuilderRemoveNode"][1]["cimguiname"] = "igDockBuilderRemoveNode" +defs["igDockBuilderRemoveNode"][1]["defaults"] = {} +defs["igDockBuilderRemoveNode"][1]["funcname"] = "DockBuilderRemoveNode" +defs["igDockBuilderRemoveNode"][1]["location"] = "imgui_internal:3213" +defs["igDockBuilderRemoveNode"][1]["namespace"] = "ImGui" +defs["igDockBuilderRemoveNode"][1]["ov_cimguiname"] = "igDockBuilderRemoveNode" +defs["igDockBuilderRemoveNode"][1]["ret"] = "void" +defs["igDockBuilderRemoveNode"][1]["signature"] = "(ImGuiID)" +defs["igDockBuilderRemoveNode"][1]["stname"] = "" +defs["igDockBuilderRemoveNode"]["(ImGuiID)"] = defs["igDockBuilderRemoveNode"][1] +defs["igDockBuilderRemoveNodeChildNodes"] = {} +defs["igDockBuilderRemoveNodeChildNodes"][1] = {} +defs["igDockBuilderRemoveNodeChildNodes"][1]["args"] = "(ImGuiID node_id)" +defs["igDockBuilderRemoveNodeChildNodes"][1]["argsT"] = {} +defs["igDockBuilderRemoveNodeChildNodes"][1]["argsT"][1] = {} +defs["igDockBuilderRemoveNodeChildNodes"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderRemoveNodeChildNodes"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderRemoveNodeChildNodes"][1]["argsoriginal"] = "(ImGuiID node_id)" +defs["igDockBuilderRemoveNodeChildNodes"][1]["call_args"] = "(node_id)" +defs["igDockBuilderRemoveNodeChildNodes"][1]["cimguiname"] = "igDockBuilderRemoveNodeChildNodes" +defs["igDockBuilderRemoveNodeChildNodes"][1]["defaults"] = {} +defs["igDockBuilderRemoveNodeChildNodes"][1]["funcname"] = "DockBuilderRemoveNodeChildNodes" +defs["igDockBuilderRemoveNodeChildNodes"][1]["location"] = "imgui_internal:3215" +defs["igDockBuilderRemoveNodeChildNodes"][1]["namespace"] = "ImGui" +defs["igDockBuilderRemoveNodeChildNodes"][1]["ov_cimguiname"] = "igDockBuilderRemoveNodeChildNodes" +defs["igDockBuilderRemoveNodeChildNodes"][1]["ret"] = "void" +defs["igDockBuilderRemoveNodeChildNodes"][1]["signature"] = "(ImGuiID)" +defs["igDockBuilderRemoveNodeChildNodes"][1]["stname"] = "" +defs["igDockBuilderRemoveNodeChildNodes"]["(ImGuiID)"] = defs["igDockBuilderRemoveNodeChildNodes"][1] +defs["igDockBuilderRemoveNodeDockedWindows"] = {} +defs["igDockBuilderRemoveNodeDockedWindows"][1] = {} +defs["igDockBuilderRemoveNodeDockedWindows"][1]["args"] = "(ImGuiID node_id,bool clear_settings_refs)" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["argsT"] = {} +defs["igDockBuilderRemoveNodeDockedWindows"][1]["argsT"][1] = {} +defs["igDockBuilderRemoveNodeDockedWindows"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["argsT"][2] = {} +defs["igDockBuilderRemoveNodeDockedWindows"][1]["argsT"][2]["name"] = "clear_settings_refs" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["argsT"][2]["type"] = "bool" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["argsoriginal"] = "(ImGuiID node_id,bool clear_settings_refs=true)" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["call_args"] = "(node_id,clear_settings_refs)" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["cimguiname"] = "igDockBuilderRemoveNodeDockedWindows" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["defaults"] = {} +defs["igDockBuilderRemoveNodeDockedWindows"][1]["defaults"]["clear_settings_refs"] = "true" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["funcname"] = "DockBuilderRemoveNodeDockedWindows" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["location"] = "imgui_internal:3214" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["namespace"] = "ImGui" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["ov_cimguiname"] = "igDockBuilderRemoveNodeDockedWindows" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["ret"] = "void" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["signature"] = "(ImGuiID,bool)" +defs["igDockBuilderRemoveNodeDockedWindows"][1]["stname"] = "" +defs["igDockBuilderRemoveNodeDockedWindows"]["(ImGuiID,bool)"] = defs["igDockBuilderRemoveNodeDockedWindows"][1] +defs["igDockBuilderSetNodePos"] = {} +defs["igDockBuilderSetNodePos"][1] = {} +defs["igDockBuilderSetNodePos"][1]["args"] = "(ImGuiID node_id,ImVec2 pos)" +defs["igDockBuilderSetNodePos"][1]["argsT"] = {} +defs["igDockBuilderSetNodePos"][1]["argsT"][1] = {} +defs["igDockBuilderSetNodePos"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderSetNodePos"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderSetNodePos"][1]["argsT"][2] = {} +defs["igDockBuilderSetNodePos"][1]["argsT"][2]["name"] = "pos" +defs["igDockBuilderSetNodePos"][1]["argsT"][2]["type"] = "ImVec2" +defs["igDockBuilderSetNodePos"][1]["argsoriginal"] = "(ImGuiID node_id,ImVec2 pos)" +defs["igDockBuilderSetNodePos"][1]["call_args"] = "(node_id,pos)" +defs["igDockBuilderSetNodePos"][1]["cimguiname"] = "igDockBuilderSetNodePos" +defs["igDockBuilderSetNodePos"][1]["defaults"] = {} +defs["igDockBuilderSetNodePos"][1]["funcname"] = "DockBuilderSetNodePos" +defs["igDockBuilderSetNodePos"][1]["location"] = "imgui_internal:3216" +defs["igDockBuilderSetNodePos"][1]["namespace"] = "ImGui" +defs["igDockBuilderSetNodePos"][1]["ov_cimguiname"] = "igDockBuilderSetNodePos" +defs["igDockBuilderSetNodePos"][1]["ret"] = "void" +defs["igDockBuilderSetNodePos"][1]["signature"] = "(ImGuiID,ImVec2)" +defs["igDockBuilderSetNodePos"][1]["stname"] = "" +defs["igDockBuilderSetNodePos"]["(ImGuiID,ImVec2)"] = defs["igDockBuilderSetNodePos"][1] +defs["igDockBuilderSetNodeSize"] = {} +defs["igDockBuilderSetNodeSize"][1] = {} +defs["igDockBuilderSetNodeSize"][1]["args"] = "(ImGuiID node_id,ImVec2 size)" +defs["igDockBuilderSetNodeSize"][1]["argsT"] = {} +defs["igDockBuilderSetNodeSize"][1]["argsT"][1] = {} +defs["igDockBuilderSetNodeSize"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderSetNodeSize"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderSetNodeSize"][1]["argsT"][2] = {} +defs["igDockBuilderSetNodeSize"][1]["argsT"][2]["name"] = "size" +defs["igDockBuilderSetNodeSize"][1]["argsT"][2]["type"] = "ImVec2" +defs["igDockBuilderSetNodeSize"][1]["argsoriginal"] = "(ImGuiID node_id,ImVec2 size)" +defs["igDockBuilderSetNodeSize"][1]["call_args"] = "(node_id,size)" +defs["igDockBuilderSetNodeSize"][1]["cimguiname"] = "igDockBuilderSetNodeSize" +defs["igDockBuilderSetNodeSize"][1]["defaults"] = {} +defs["igDockBuilderSetNodeSize"][1]["funcname"] = "DockBuilderSetNodeSize" +defs["igDockBuilderSetNodeSize"][1]["location"] = "imgui_internal:3217" +defs["igDockBuilderSetNodeSize"][1]["namespace"] = "ImGui" +defs["igDockBuilderSetNodeSize"][1]["ov_cimguiname"] = "igDockBuilderSetNodeSize" +defs["igDockBuilderSetNodeSize"][1]["ret"] = "void" +defs["igDockBuilderSetNodeSize"][1]["signature"] = "(ImGuiID,ImVec2)" +defs["igDockBuilderSetNodeSize"][1]["stname"] = "" +defs["igDockBuilderSetNodeSize"]["(ImGuiID,ImVec2)"] = defs["igDockBuilderSetNodeSize"][1] +defs["igDockBuilderSplitNode"] = {} +defs["igDockBuilderSplitNode"][1] = {} +defs["igDockBuilderSplitNode"][1]["args"] = "(ImGuiID node_id,ImGuiDir split_dir,float size_ratio_for_node_at_dir,ImGuiID* out_id_at_dir,ImGuiID* out_id_at_opposite_dir)" +defs["igDockBuilderSplitNode"][1]["argsT"] = {} +defs["igDockBuilderSplitNode"][1]["argsT"][1] = {} +defs["igDockBuilderSplitNode"][1]["argsT"][1]["name"] = "node_id" +defs["igDockBuilderSplitNode"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDockBuilderSplitNode"][1]["argsT"][2] = {} +defs["igDockBuilderSplitNode"][1]["argsT"][2]["name"] = "split_dir" +defs["igDockBuilderSplitNode"][1]["argsT"][2]["type"] = "ImGuiDir" +defs["igDockBuilderSplitNode"][1]["argsT"][3] = {} +defs["igDockBuilderSplitNode"][1]["argsT"][3]["name"] = "size_ratio_for_node_at_dir" +defs["igDockBuilderSplitNode"][1]["argsT"][3]["type"] = "float" +defs["igDockBuilderSplitNode"][1]["argsT"][4] = {} +defs["igDockBuilderSplitNode"][1]["argsT"][4]["name"] = "out_id_at_dir" +defs["igDockBuilderSplitNode"][1]["argsT"][4]["type"] = "ImGuiID*" +defs["igDockBuilderSplitNode"][1]["argsT"][5] = {} +defs["igDockBuilderSplitNode"][1]["argsT"][5]["name"] = "out_id_at_opposite_dir" +defs["igDockBuilderSplitNode"][1]["argsT"][5]["type"] = "ImGuiID*" +defs["igDockBuilderSplitNode"][1]["argsoriginal"] = "(ImGuiID node_id,ImGuiDir split_dir,float size_ratio_for_node_at_dir,ImGuiID* out_id_at_dir,ImGuiID* out_id_at_opposite_dir)" +defs["igDockBuilderSplitNode"][1]["call_args"] = "(node_id,split_dir,size_ratio_for_node_at_dir,out_id_at_dir,out_id_at_opposite_dir)" +defs["igDockBuilderSplitNode"][1]["cimguiname"] = "igDockBuilderSplitNode" +defs["igDockBuilderSplitNode"][1]["defaults"] = {} +defs["igDockBuilderSplitNode"][1]["funcname"] = "DockBuilderSplitNode" +defs["igDockBuilderSplitNode"][1]["location"] = "imgui_internal:3218" +defs["igDockBuilderSplitNode"][1]["namespace"] = "ImGui" +defs["igDockBuilderSplitNode"][1]["ov_cimguiname"] = "igDockBuilderSplitNode" +defs["igDockBuilderSplitNode"][1]["ret"] = "ImGuiID" +defs["igDockBuilderSplitNode"][1]["signature"] = "(ImGuiID,ImGuiDir,float,ImGuiID*,ImGuiID*)" +defs["igDockBuilderSplitNode"][1]["stname"] = "" +defs["igDockBuilderSplitNode"]["(ImGuiID,ImGuiDir,float,ImGuiID*,ImGuiID*)"] = defs["igDockBuilderSplitNode"][1] +defs["igDockContextCalcDropPosForDocking"] = {} +defs["igDockContextCalcDropPosForDocking"][1] = {} +defs["igDockContextCalcDropPosForDocking"][1]["args"] = "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"] = {} +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][1] = {} +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][1]["name"] = "target" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][2] = {} +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][2]["name"] = "target_node" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][2]["type"] = "ImGuiDockNode*" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][3] = {} +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][3]["name"] = "payload_window" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][3]["type"] = "ImGuiWindow*" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][4] = {} +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][4]["name"] = "payload_node" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][4]["type"] = "ImGuiDockNode*" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][5] = {} +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][5]["name"] = "split_dir" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][5]["type"] = "ImGuiDir" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][6] = {} +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][6]["name"] = "split_outer" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][6]["type"] = "bool" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][7] = {} +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][7]["name"] = "out_pos" +defs["igDockContextCalcDropPosForDocking"][1]["argsT"][7]["type"] = "ImVec2*" +defs["igDockContextCalcDropPosForDocking"][1]["argsoriginal"] = "(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)" +defs["igDockContextCalcDropPosForDocking"][1]["call_args"] = "(target,target_node,payload_window,payload_node,split_dir,split_outer,out_pos)" +defs["igDockContextCalcDropPosForDocking"][1]["cimguiname"] = "igDockContextCalcDropPosForDocking" +defs["igDockContextCalcDropPosForDocking"][1]["defaults"] = {} +defs["igDockContextCalcDropPosForDocking"][1]["funcname"] = "DockContextCalcDropPosForDocking" +defs["igDockContextCalcDropPosForDocking"][1]["location"] = "imgui_internal:3185" +defs["igDockContextCalcDropPosForDocking"][1]["namespace"] = "ImGui" +defs["igDockContextCalcDropPosForDocking"][1]["ov_cimguiname"] = "igDockContextCalcDropPosForDocking" +defs["igDockContextCalcDropPosForDocking"][1]["ret"] = "bool" +defs["igDockContextCalcDropPosForDocking"][1]["signature"] = "(ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDockNode*,ImGuiDir,bool,ImVec2*)" +defs["igDockContextCalcDropPosForDocking"][1]["stname"] = "" +defs["igDockContextCalcDropPosForDocking"]["(ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDockNode*,ImGuiDir,bool,ImVec2*)"] = defs["igDockContextCalcDropPosForDocking"][1] +defs["igDockContextClearNodes"] = {} +defs["igDockContextClearNodes"][1] = {} +defs["igDockContextClearNodes"][1]["args"] = "(ImGuiContext* ctx,ImGuiID root_id,bool clear_settings_refs)" +defs["igDockContextClearNodes"][1]["argsT"] = {} +defs["igDockContextClearNodes"][1]["argsT"][1] = {} +defs["igDockContextClearNodes"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextClearNodes"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextClearNodes"][1]["argsT"][2] = {} +defs["igDockContextClearNodes"][1]["argsT"][2]["name"] = "root_id" +defs["igDockContextClearNodes"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igDockContextClearNodes"][1]["argsT"][3] = {} +defs["igDockContextClearNodes"][1]["argsT"][3]["name"] = "clear_settings_refs" +defs["igDockContextClearNodes"][1]["argsT"][3]["type"] = "bool" +defs["igDockContextClearNodes"][1]["argsoriginal"] = "(ImGuiContext* ctx,ImGuiID root_id,bool clear_settings_refs)" +defs["igDockContextClearNodes"][1]["call_args"] = "(ctx,root_id,clear_settings_refs)" +defs["igDockContextClearNodes"][1]["cimguiname"] = "igDockContextClearNodes" +defs["igDockContextClearNodes"][1]["defaults"] = {} +defs["igDockContextClearNodes"][1]["funcname"] = "DockContextClearNodes" +defs["igDockContextClearNodes"][1]["location"] = "imgui_internal:3176" +defs["igDockContextClearNodes"][1]["namespace"] = "ImGui" +defs["igDockContextClearNodes"][1]["ov_cimguiname"] = "igDockContextClearNodes" +defs["igDockContextClearNodes"][1]["ret"] = "void" +defs["igDockContextClearNodes"][1]["signature"] = "(ImGuiContext*,ImGuiID,bool)" +defs["igDockContextClearNodes"][1]["stname"] = "" +defs["igDockContextClearNodes"]["(ImGuiContext*,ImGuiID,bool)"] = defs["igDockContextClearNodes"][1] +defs["igDockContextEndFrame"] = {} +defs["igDockContextEndFrame"][1] = {} +defs["igDockContextEndFrame"][1]["args"] = "(ImGuiContext* ctx)" +defs["igDockContextEndFrame"][1]["argsT"] = {} +defs["igDockContextEndFrame"][1]["argsT"][1] = {} +defs["igDockContextEndFrame"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextEndFrame"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextEndFrame"][1]["argsoriginal"] = "(ImGuiContext* ctx)" +defs["igDockContextEndFrame"][1]["call_args"] = "(ctx)" +defs["igDockContextEndFrame"][1]["cimguiname"] = "igDockContextEndFrame" +defs["igDockContextEndFrame"][1]["defaults"] = {} +defs["igDockContextEndFrame"][1]["funcname"] = "DockContextEndFrame" +defs["igDockContextEndFrame"][1]["location"] = "imgui_internal:3180" +defs["igDockContextEndFrame"][1]["namespace"] = "ImGui" +defs["igDockContextEndFrame"][1]["ov_cimguiname"] = "igDockContextEndFrame" +defs["igDockContextEndFrame"][1]["ret"] = "void" +defs["igDockContextEndFrame"][1]["signature"] = "(ImGuiContext*)" +defs["igDockContextEndFrame"][1]["stname"] = "" +defs["igDockContextEndFrame"]["(ImGuiContext*)"] = defs["igDockContextEndFrame"][1] +defs["igDockContextFindNodeByID"] = {} +defs["igDockContextFindNodeByID"][1] = {} +defs["igDockContextFindNodeByID"][1]["args"] = "(ImGuiContext* ctx,ImGuiID id)" +defs["igDockContextFindNodeByID"][1]["argsT"] = {} +defs["igDockContextFindNodeByID"][1]["argsT"][1] = {} +defs["igDockContextFindNodeByID"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextFindNodeByID"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextFindNodeByID"][1]["argsT"][2] = {} +defs["igDockContextFindNodeByID"][1]["argsT"][2]["name"] = "id" +defs["igDockContextFindNodeByID"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igDockContextFindNodeByID"][1]["argsoriginal"] = "(ImGuiContext* ctx,ImGuiID id)" +defs["igDockContextFindNodeByID"][1]["call_args"] = "(ctx,id)" +defs["igDockContextFindNodeByID"][1]["cimguiname"] = "igDockContextFindNodeByID" +defs["igDockContextFindNodeByID"][1]["defaults"] = {} +defs["igDockContextFindNodeByID"][1]["funcname"] = "DockContextFindNodeByID" +defs["igDockContextFindNodeByID"][1]["location"] = "imgui_internal:3186" +defs["igDockContextFindNodeByID"][1]["namespace"] = "ImGui" +defs["igDockContextFindNodeByID"][1]["ov_cimguiname"] = "igDockContextFindNodeByID" +defs["igDockContextFindNodeByID"][1]["ret"] = "ImGuiDockNode*" +defs["igDockContextFindNodeByID"][1]["signature"] = "(ImGuiContext*,ImGuiID)" +defs["igDockContextFindNodeByID"][1]["stname"] = "" +defs["igDockContextFindNodeByID"]["(ImGuiContext*,ImGuiID)"] = defs["igDockContextFindNodeByID"][1] +defs["igDockContextGenNodeID"] = {} +defs["igDockContextGenNodeID"][1] = {} +defs["igDockContextGenNodeID"][1]["args"] = "(ImGuiContext* ctx)" +defs["igDockContextGenNodeID"][1]["argsT"] = {} +defs["igDockContextGenNodeID"][1]["argsT"][1] = {} +defs["igDockContextGenNodeID"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextGenNodeID"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextGenNodeID"][1]["argsoriginal"] = "(ImGuiContext* ctx)" +defs["igDockContextGenNodeID"][1]["call_args"] = "(ctx)" +defs["igDockContextGenNodeID"][1]["cimguiname"] = "igDockContextGenNodeID" +defs["igDockContextGenNodeID"][1]["defaults"] = {} +defs["igDockContextGenNodeID"][1]["funcname"] = "DockContextGenNodeID" +defs["igDockContextGenNodeID"][1]["location"] = "imgui_internal:3181" +defs["igDockContextGenNodeID"][1]["namespace"] = "ImGui" +defs["igDockContextGenNodeID"][1]["ov_cimguiname"] = "igDockContextGenNodeID" +defs["igDockContextGenNodeID"][1]["ret"] = "ImGuiID" +defs["igDockContextGenNodeID"][1]["signature"] = "(ImGuiContext*)" +defs["igDockContextGenNodeID"][1]["stname"] = "" +defs["igDockContextGenNodeID"]["(ImGuiContext*)"] = defs["igDockContextGenNodeID"][1] +defs["igDockContextInitialize"] = {} +defs["igDockContextInitialize"][1] = {} +defs["igDockContextInitialize"][1]["args"] = "(ImGuiContext* ctx)" +defs["igDockContextInitialize"][1]["argsT"] = {} +defs["igDockContextInitialize"][1]["argsT"][1] = {} +defs["igDockContextInitialize"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextInitialize"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextInitialize"][1]["argsoriginal"] = "(ImGuiContext* ctx)" +defs["igDockContextInitialize"][1]["call_args"] = "(ctx)" +defs["igDockContextInitialize"][1]["cimguiname"] = "igDockContextInitialize" +defs["igDockContextInitialize"][1]["defaults"] = {} +defs["igDockContextInitialize"][1]["funcname"] = "DockContextInitialize" +defs["igDockContextInitialize"][1]["location"] = "imgui_internal:3174" +defs["igDockContextInitialize"][1]["namespace"] = "ImGui" +defs["igDockContextInitialize"][1]["ov_cimguiname"] = "igDockContextInitialize" +defs["igDockContextInitialize"][1]["ret"] = "void" +defs["igDockContextInitialize"][1]["signature"] = "(ImGuiContext*)" +defs["igDockContextInitialize"][1]["stname"] = "" +defs["igDockContextInitialize"]["(ImGuiContext*)"] = defs["igDockContextInitialize"][1] +defs["igDockContextNewFrameUpdateDocking"] = {} +defs["igDockContextNewFrameUpdateDocking"][1] = {} +defs["igDockContextNewFrameUpdateDocking"][1]["args"] = "(ImGuiContext* ctx)" +defs["igDockContextNewFrameUpdateDocking"][1]["argsT"] = {} +defs["igDockContextNewFrameUpdateDocking"][1]["argsT"][1] = {} +defs["igDockContextNewFrameUpdateDocking"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextNewFrameUpdateDocking"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextNewFrameUpdateDocking"][1]["argsoriginal"] = "(ImGuiContext* ctx)" +defs["igDockContextNewFrameUpdateDocking"][1]["call_args"] = "(ctx)" +defs["igDockContextNewFrameUpdateDocking"][1]["cimguiname"] = "igDockContextNewFrameUpdateDocking" +defs["igDockContextNewFrameUpdateDocking"][1]["defaults"] = {} +defs["igDockContextNewFrameUpdateDocking"][1]["funcname"] = "DockContextNewFrameUpdateDocking" +defs["igDockContextNewFrameUpdateDocking"][1]["location"] = "imgui_internal:3179" +defs["igDockContextNewFrameUpdateDocking"][1]["namespace"] = "ImGui" +defs["igDockContextNewFrameUpdateDocking"][1]["ov_cimguiname"] = "igDockContextNewFrameUpdateDocking" +defs["igDockContextNewFrameUpdateDocking"][1]["ret"] = "void" +defs["igDockContextNewFrameUpdateDocking"][1]["signature"] = "(ImGuiContext*)" +defs["igDockContextNewFrameUpdateDocking"][1]["stname"] = "" +defs["igDockContextNewFrameUpdateDocking"]["(ImGuiContext*)"] = defs["igDockContextNewFrameUpdateDocking"][1] +defs["igDockContextNewFrameUpdateUndocking"] = {} +defs["igDockContextNewFrameUpdateUndocking"][1] = {} +defs["igDockContextNewFrameUpdateUndocking"][1]["args"] = "(ImGuiContext* ctx)" +defs["igDockContextNewFrameUpdateUndocking"][1]["argsT"] = {} +defs["igDockContextNewFrameUpdateUndocking"][1]["argsT"][1] = {} +defs["igDockContextNewFrameUpdateUndocking"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextNewFrameUpdateUndocking"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextNewFrameUpdateUndocking"][1]["argsoriginal"] = "(ImGuiContext* ctx)" +defs["igDockContextNewFrameUpdateUndocking"][1]["call_args"] = "(ctx)" +defs["igDockContextNewFrameUpdateUndocking"][1]["cimguiname"] = "igDockContextNewFrameUpdateUndocking" +defs["igDockContextNewFrameUpdateUndocking"][1]["defaults"] = {} +defs["igDockContextNewFrameUpdateUndocking"][1]["funcname"] = "DockContextNewFrameUpdateUndocking" +defs["igDockContextNewFrameUpdateUndocking"][1]["location"] = "imgui_internal:3178" +defs["igDockContextNewFrameUpdateUndocking"][1]["namespace"] = "ImGui" +defs["igDockContextNewFrameUpdateUndocking"][1]["ov_cimguiname"] = "igDockContextNewFrameUpdateUndocking" +defs["igDockContextNewFrameUpdateUndocking"][1]["ret"] = "void" +defs["igDockContextNewFrameUpdateUndocking"][1]["signature"] = "(ImGuiContext*)" +defs["igDockContextNewFrameUpdateUndocking"][1]["stname"] = "" +defs["igDockContextNewFrameUpdateUndocking"]["(ImGuiContext*)"] = defs["igDockContextNewFrameUpdateUndocking"][1] +defs["igDockContextQueueDock"] = {} +defs["igDockContextQueueDock"][1] = {} +defs["igDockContextQueueDock"][1]["args"] = "(ImGuiContext* ctx,ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,float split_ratio,bool split_outer)" +defs["igDockContextQueueDock"][1]["argsT"] = {} +defs["igDockContextQueueDock"][1]["argsT"][1] = {} +defs["igDockContextQueueDock"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextQueueDock"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextQueueDock"][1]["argsT"][2] = {} +defs["igDockContextQueueDock"][1]["argsT"][2]["name"] = "target" +defs["igDockContextQueueDock"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igDockContextQueueDock"][1]["argsT"][3] = {} +defs["igDockContextQueueDock"][1]["argsT"][3]["name"] = "target_node" +defs["igDockContextQueueDock"][1]["argsT"][3]["type"] = "ImGuiDockNode*" +defs["igDockContextQueueDock"][1]["argsT"][4] = {} +defs["igDockContextQueueDock"][1]["argsT"][4]["name"] = "payload" +defs["igDockContextQueueDock"][1]["argsT"][4]["type"] = "ImGuiWindow*" +defs["igDockContextQueueDock"][1]["argsT"][5] = {} +defs["igDockContextQueueDock"][1]["argsT"][5]["name"] = "split_dir" +defs["igDockContextQueueDock"][1]["argsT"][5]["type"] = "ImGuiDir" +defs["igDockContextQueueDock"][1]["argsT"][6] = {} +defs["igDockContextQueueDock"][1]["argsT"][6]["name"] = "split_ratio" +defs["igDockContextQueueDock"][1]["argsT"][6]["type"] = "float" +defs["igDockContextQueueDock"][1]["argsT"][7] = {} +defs["igDockContextQueueDock"][1]["argsT"][7]["name"] = "split_outer" +defs["igDockContextQueueDock"][1]["argsT"][7]["type"] = "bool" +defs["igDockContextQueueDock"][1]["argsoriginal"] = "(ImGuiContext* ctx,ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,float split_ratio,bool split_outer)" +defs["igDockContextQueueDock"][1]["call_args"] = "(ctx,target,target_node,payload,split_dir,split_ratio,split_outer)" +defs["igDockContextQueueDock"][1]["cimguiname"] = "igDockContextQueueDock" +defs["igDockContextQueueDock"][1]["defaults"] = {} +defs["igDockContextQueueDock"][1]["funcname"] = "DockContextQueueDock" +defs["igDockContextQueueDock"][1]["location"] = "imgui_internal:3182" +defs["igDockContextQueueDock"][1]["namespace"] = "ImGui" +defs["igDockContextQueueDock"][1]["ov_cimguiname"] = "igDockContextQueueDock" +defs["igDockContextQueueDock"][1]["ret"] = "void" +defs["igDockContextQueueDock"][1]["signature"] = "(ImGuiContext*,ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDir,float,bool)" +defs["igDockContextQueueDock"][1]["stname"] = "" +defs["igDockContextQueueDock"]["(ImGuiContext*,ImGuiWindow*,ImGuiDockNode*,ImGuiWindow*,ImGuiDir,float,bool)"] = defs["igDockContextQueueDock"][1] +defs["igDockContextQueueUndockNode"] = {} +defs["igDockContextQueueUndockNode"][1] = {} +defs["igDockContextQueueUndockNode"][1]["args"] = "(ImGuiContext* ctx,ImGuiDockNode* node)" +defs["igDockContextQueueUndockNode"][1]["argsT"] = {} +defs["igDockContextQueueUndockNode"][1]["argsT"][1] = {} +defs["igDockContextQueueUndockNode"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextQueueUndockNode"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextQueueUndockNode"][1]["argsT"][2] = {} +defs["igDockContextQueueUndockNode"][1]["argsT"][2]["name"] = "node" +defs["igDockContextQueueUndockNode"][1]["argsT"][2]["type"] = "ImGuiDockNode*" +defs["igDockContextQueueUndockNode"][1]["argsoriginal"] = "(ImGuiContext* ctx,ImGuiDockNode* node)" +defs["igDockContextQueueUndockNode"][1]["call_args"] = "(ctx,node)" +defs["igDockContextQueueUndockNode"][1]["cimguiname"] = "igDockContextQueueUndockNode" +defs["igDockContextQueueUndockNode"][1]["defaults"] = {} +defs["igDockContextQueueUndockNode"][1]["funcname"] = "DockContextQueueUndockNode" +defs["igDockContextQueueUndockNode"][1]["location"] = "imgui_internal:3184" +defs["igDockContextQueueUndockNode"][1]["namespace"] = "ImGui" +defs["igDockContextQueueUndockNode"][1]["ov_cimguiname"] = "igDockContextQueueUndockNode" +defs["igDockContextQueueUndockNode"][1]["ret"] = "void" +defs["igDockContextQueueUndockNode"][1]["signature"] = "(ImGuiContext*,ImGuiDockNode*)" +defs["igDockContextQueueUndockNode"][1]["stname"] = "" +defs["igDockContextQueueUndockNode"]["(ImGuiContext*,ImGuiDockNode*)"] = defs["igDockContextQueueUndockNode"][1] +defs["igDockContextQueueUndockWindow"] = {} +defs["igDockContextQueueUndockWindow"][1] = {} +defs["igDockContextQueueUndockWindow"][1]["args"] = "(ImGuiContext* ctx,ImGuiWindow* window)" +defs["igDockContextQueueUndockWindow"][1]["argsT"] = {} +defs["igDockContextQueueUndockWindow"][1]["argsT"][1] = {} +defs["igDockContextQueueUndockWindow"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextQueueUndockWindow"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextQueueUndockWindow"][1]["argsT"][2] = {} +defs["igDockContextQueueUndockWindow"][1]["argsT"][2]["name"] = "window" +defs["igDockContextQueueUndockWindow"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igDockContextQueueUndockWindow"][1]["argsoriginal"] = "(ImGuiContext* ctx,ImGuiWindow* window)" +defs["igDockContextQueueUndockWindow"][1]["call_args"] = "(ctx,window)" +defs["igDockContextQueueUndockWindow"][1]["cimguiname"] = "igDockContextQueueUndockWindow" +defs["igDockContextQueueUndockWindow"][1]["defaults"] = {} +defs["igDockContextQueueUndockWindow"][1]["funcname"] = "DockContextQueueUndockWindow" +defs["igDockContextQueueUndockWindow"][1]["location"] = "imgui_internal:3183" +defs["igDockContextQueueUndockWindow"][1]["namespace"] = "ImGui" +defs["igDockContextQueueUndockWindow"][1]["ov_cimguiname"] = "igDockContextQueueUndockWindow" +defs["igDockContextQueueUndockWindow"][1]["ret"] = "void" +defs["igDockContextQueueUndockWindow"][1]["signature"] = "(ImGuiContext*,ImGuiWindow*)" +defs["igDockContextQueueUndockWindow"][1]["stname"] = "" +defs["igDockContextQueueUndockWindow"]["(ImGuiContext*,ImGuiWindow*)"] = defs["igDockContextQueueUndockWindow"][1] +defs["igDockContextRebuildNodes"] = {} +defs["igDockContextRebuildNodes"][1] = {} +defs["igDockContextRebuildNodes"][1]["args"] = "(ImGuiContext* ctx)" +defs["igDockContextRebuildNodes"][1]["argsT"] = {} +defs["igDockContextRebuildNodes"][1]["argsT"][1] = {} +defs["igDockContextRebuildNodes"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextRebuildNodes"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextRebuildNodes"][1]["argsoriginal"] = "(ImGuiContext* ctx)" +defs["igDockContextRebuildNodes"][1]["call_args"] = "(ctx)" +defs["igDockContextRebuildNodes"][1]["cimguiname"] = "igDockContextRebuildNodes" +defs["igDockContextRebuildNodes"][1]["defaults"] = {} +defs["igDockContextRebuildNodes"][1]["funcname"] = "DockContextRebuildNodes" +defs["igDockContextRebuildNodes"][1]["location"] = "imgui_internal:3177" +defs["igDockContextRebuildNodes"][1]["namespace"] = "ImGui" +defs["igDockContextRebuildNodes"][1]["ov_cimguiname"] = "igDockContextRebuildNodes" +defs["igDockContextRebuildNodes"][1]["ret"] = "void" +defs["igDockContextRebuildNodes"][1]["signature"] = "(ImGuiContext*)" +defs["igDockContextRebuildNodes"][1]["stname"] = "" +defs["igDockContextRebuildNodes"]["(ImGuiContext*)"] = defs["igDockContextRebuildNodes"][1] +defs["igDockContextShutdown"] = {} +defs["igDockContextShutdown"][1] = {} +defs["igDockContextShutdown"][1]["args"] = "(ImGuiContext* ctx)" +defs["igDockContextShutdown"][1]["argsT"] = {} +defs["igDockContextShutdown"][1]["argsT"][1] = {} +defs["igDockContextShutdown"][1]["argsT"][1]["name"] = "ctx" +defs["igDockContextShutdown"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igDockContextShutdown"][1]["argsoriginal"] = "(ImGuiContext* ctx)" +defs["igDockContextShutdown"][1]["call_args"] = "(ctx)" +defs["igDockContextShutdown"][1]["cimguiname"] = "igDockContextShutdown" +defs["igDockContextShutdown"][1]["defaults"] = {} +defs["igDockContextShutdown"][1]["funcname"] = "DockContextShutdown" +defs["igDockContextShutdown"][1]["location"] = "imgui_internal:3175" +defs["igDockContextShutdown"][1]["namespace"] = "ImGui" +defs["igDockContextShutdown"][1]["ov_cimguiname"] = "igDockContextShutdown" +defs["igDockContextShutdown"][1]["ret"] = "void" +defs["igDockContextShutdown"][1]["signature"] = "(ImGuiContext*)" +defs["igDockContextShutdown"][1]["stname"] = "" +defs["igDockContextShutdown"]["(ImGuiContext*)"] = defs["igDockContextShutdown"][1] +defs["igDockNodeBeginAmendTabBar"] = {} +defs["igDockNodeBeginAmendTabBar"][1] = {} +defs["igDockNodeBeginAmendTabBar"][1]["args"] = "(ImGuiDockNode* node)" +defs["igDockNodeBeginAmendTabBar"][1]["argsT"] = {} +defs["igDockNodeBeginAmendTabBar"][1]["argsT"][1] = {} +defs["igDockNodeBeginAmendTabBar"][1]["argsT"][1]["name"] = "node" +defs["igDockNodeBeginAmendTabBar"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["igDockNodeBeginAmendTabBar"][1]["argsoriginal"] = "(ImGuiDockNode* node)" +defs["igDockNodeBeginAmendTabBar"][1]["call_args"] = "(node)" +defs["igDockNodeBeginAmendTabBar"][1]["cimguiname"] = "igDockNodeBeginAmendTabBar" +defs["igDockNodeBeginAmendTabBar"][1]["defaults"] = {} +defs["igDockNodeBeginAmendTabBar"][1]["funcname"] = "DockNodeBeginAmendTabBar" +defs["igDockNodeBeginAmendTabBar"][1]["location"] = "imgui_internal:3187" +defs["igDockNodeBeginAmendTabBar"][1]["namespace"] = "ImGui" +defs["igDockNodeBeginAmendTabBar"][1]["ov_cimguiname"] = "igDockNodeBeginAmendTabBar" +defs["igDockNodeBeginAmendTabBar"][1]["ret"] = "bool" +defs["igDockNodeBeginAmendTabBar"][1]["signature"] = "(ImGuiDockNode*)" +defs["igDockNodeBeginAmendTabBar"][1]["stname"] = "" +defs["igDockNodeBeginAmendTabBar"]["(ImGuiDockNode*)"] = defs["igDockNodeBeginAmendTabBar"][1] +defs["igDockNodeEndAmendTabBar"] = {} +defs["igDockNodeEndAmendTabBar"][1] = {} +defs["igDockNodeEndAmendTabBar"][1]["args"] = "()" +defs["igDockNodeEndAmendTabBar"][1]["argsT"] = {} +defs["igDockNodeEndAmendTabBar"][1]["argsoriginal"] = "()" +defs["igDockNodeEndAmendTabBar"][1]["call_args"] = "()" +defs["igDockNodeEndAmendTabBar"][1]["cimguiname"] = "igDockNodeEndAmendTabBar" +defs["igDockNodeEndAmendTabBar"][1]["defaults"] = {} +defs["igDockNodeEndAmendTabBar"][1]["funcname"] = "DockNodeEndAmendTabBar" +defs["igDockNodeEndAmendTabBar"][1]["location"] = "imgui_internal:3188" +defs["igDockNodeEndAmendTabBar"][1]["namespace"] = "ImGui" +defs["igDockNodeEndAmendTabBar"][1]["ov_cimguiname"] = "igDockNodeEndAmendTabBar" +defs["igDockNodeEndAmendTabBar"][1]["ret"] = "void" +defs["igDockNodeEndAmendTabBar"][1]["signature"] = "()" +defs["igDockNodeEndAmendTabBar"][1]["stname"] = "" +defs["igDockNodeEndAmendTabBar"]["()"] = defs["igDockNodeEndAmendTabBar"][1] +defs["igDockNodeGetDepth"] = {} +defs["igDockNodeGetDepth"][1] = {} +defs["igDockNodeGetDepth"][1]["args"] = "(const ImGuiDockNode* node)" +defs["igDockNodeGetDepth"][1]["argsT"] = {} +defs["igDockNodeGetDepth"][1]["argsT"][1] = {} +defs["igDockNodeGetDepth"][1]["argsT"][1]["name"] = "node" +defs["igDockNodeGetDepth"][1]["argsT"][1]["type"] = "const ImGuiDockNode*" +defs["igDockNodeGetDepth"][1]["argsoriginal"] = "(const ImGuiDockNode* node)" +defs["igDockNodeGetDepth"][1]["call_args"] = "(node)" +defs["igDockNodeGetDepth"][1]["cimguiname"] = "igDockNodeGetDepth" +defs["igDockNodeGetDepth"][1]["defaults"] = {} +defs["igDockNodeGetDepth"][1]["funcname"] = "DockNodeGetDepth" +defs["igDockNodeGetDepth"][1]["location"] = "imgui_internal:3191" +defs["igDockNodeGetDepth"][1]["namespace"] = "ImGui" +defs["igDockNodeGetDepth"][1]["ov_cimguiname"] = "igDockNodeGetDepth" +defs["igDockNodeGetDepth"][1]["ret"] = "int" +defs["igDockNodeGetDepth"][1]["signature"] = "(const ImGuiDockNode*)" +defs["igDockNodeGetDepth"][1]["stname"] = "" +defs["igDockNodeGetDepth"]["(const ImGuiDockNode*)"] = defs["igDockNodeGetDepth"][1] +defs["igDockNodeGetRootNode"] = {} +defs["igDockNodeGetRootNode"][1] = {} +defs["igDockNodeGetRootNode"][1]["args"] = "(ImGuiDockNode* node)" +defs["igDockNodeGetRootNode"][1]["argsT"] = {} +defs["igDockNodeGetRootNode"][1]["argsT"][1] = {} +defs["igDockNodeGetRootNode"][1]["argsT"][1]["name"] = "node" +defs["igDockNodeGetRootNode"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["igDockNodeGetRootNode"][1]["argsoriginal"] = "(ImGuiDockNode* node)" +defs["igDockNodeGetRootNode"][1]["call_args"] = "(node)" +defs["igDockNodeGetRootNode"][1]["cimguiname"] = "igDockNodeGetRootNode" +defs["igDockNodeGetRootNode"][1]["defaults"] = {} +defs["igDockNodeGetRootNode"][1]["funcname"] = "DockNodeGetRootNode" +defs["igDockNodeGetRootNode"][1]["location"] = "imgui_internal:3189" +defs["igDockNodeGetRootNode"][1]["namespace"] = "ImGui" +defs["igDockNodeGetRootNode"][1]["ov_cimguiname"] = "igDockNodeGetRootNode" +defs["igDockNodeGetRootNode"][1]["ret"] = "ImGuiDockNode*" +defs["igDockNodeGetRootNode"][1]["signature"] = "(ImGuiDockNode*)" +defs["igDockNodeGetRootNode"][1]["stname"] = "" +defs["igDockNodeGetRootNode"]["(ImGuiDockNode*)"] = defs["igDockNodeGetRootNode"][1] +defs["igDockNodeGetWindowMenuButtonId"] = {} +defs["igDockNodeGetWindowMenuButtonId"][1] = {} +defs["igDockNodeGetWindowMenuButtonId"][1]["args"] = "(const ImGuiDockNode* node)" +defs["igDockNodeGetWindowMenuButtonId"][1]["argsT"] = {} +defs["igDockNodeGetWindowMenuButtonId"][1]["argsT"][1] = {} +defs["igDockNodeGetWindowMenuButtonId"][1]["argsT"][1]["name"] = "node" +defs["igDockNodeGetWindowMenuButtonId"][1]["argsT"][1]["type"] = "const ImGuiDockNode*" +defs["igDockNodeGetWindowMenuButtonId"][1]["argsoriginal"] = "(const ImGuiDockNode* node)" +defs["igDockNodeGetWindowMenuButtonId"][1]["call_args"] = "(node)" +defs["igDockNodeGetWindowMenuButtonId"][1]["cimguiname"] = "igDockNodeGetWindowMenuButtonId" +defs["igDockNodeGetWindowMenuButtonId"][1]["defaults"] = {} +defs["igDockNodeGetWindowMenuButtonId"][1]["funcname"] = "DockNodeGetWindowMenuButtonId" +defs["igDockNodeGetWindowMenuButtonId"][1]["location"] = "imgui_internal:3192" +defs["igDockNodeGetWindowMenuButtonId"][1]["namespace"] = "ImGui" +defs["igDockNodeGetWindowMenuButtonId"][1]["ov_cimguiname"] = "igDockNodeGetWindowMenuButtonId" +defs["igDockNodeGetWindowMenuButtonId"][1]["ret"] = "ImGuiID" +defs["igDockNodeGetWindowMenuButtonId"][1]["signature"] = "(const ImGuiDockNode*)" +defs["igDockNodeGetWindowMenuButtonId"][1]["stname"] = "" +defs["igDockNodeGetWindowMenuButtonId"]["(const ImGuiDockNode*)"] = defs["igDockNodeGetWindowMenuButtonId"][1] +defs["igDockNodeIsInHierarchyOf"] = {} +defs["igDockNodeIsInHierarchyOf"][1] = {} +defs["igDockNodeIsInHierarchyOf"][1]["args"] = "(ImGuiDockNode* node,ImGuiDockNode* parent)" +defs["igDockNodeIsInHierarchyOf"][1]["argsT"] = {} +defs["igDockNodeIsInHierarchyOf"][1]["argsT"][1] = {} +defs["igDockNodeIsInHierarchyOf"][1]["argsT"][1]["name"] = "node" +defs["igDockNodeIsInHierarchyOf"][1]["argsT"][1]["type"] = "ImGuiDockNode*" +defs["igDockNodeIsInHierarchyOf"][1]["argsT"][2] = {} +defs["igDockNodeIsInHierarchyOf"][1]["argsT"][2]["name"] = "parent" +defs["igDockNodeIsInHierarchyOf"][1]["argsT"][2]["type"] = "ImGuiDockNode*" +defs["igDockNodeIsInHierarchyOf"][1]["argsoriginal"] = "(ImGuiDockNode* node,ImGuiDockNode* parent)" +defs["igDockNodeIsInHierarchyOf"][1]["call_args"] = "(node,parent)" +defs["igDockNodeIsInHierarchyOf"][1]["cimguiname"] = "igDockNodeIsInHierarchyOf" +defs["igDockNodeIsInHierarchyOf"][1]["defaults"] = {} +defs["igDockNodeIsInHierarchyOf"][1]["funcname"] = "DockNodeIsInHierarchyOf" +defs["igDockNodeIsInHierarchyOf"][1]["location"] = "imgui_internal:3190" +defs["igDockNodeIsInHierarchyOf"][1]["namespace"] = "ImGui" +defs["igDockNodeIsInHierarchyOf"][1]["ov_cimguiname"] = "igDockNodeIsInHierarchyOf" +defs["igDockNodeIsInHierarchyOf"][1]["ret"] = "bool" +defs["igDockNodeIsInHierarchyOf"][1]["signature"] = "(ImGuiDockNode*,ImGuiDockNode*)" +defs["igDockNodeIsInHierarchyOf"][1]["stname"] = "" +defs["igDockNodeIsInHierarchyOf"]["(ImGuiDockNode*,ImGuiDockNode*)"] = defs["igDockNodeIsInHierarchyOf"][1] defs["igDockSpace"] = {} defs["igDockSpace"][1] = {} defs["igDockSpace"][1]["args"] = "(ImGuiID id,const ImVec2 size,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class)" @@ -7945,6 +14972,46 @@ defs["igDockSpaceOverViewport"][1]["ret"] = "ImGuiID" defs["igDockSpaceOverViewport"][1]["signature"] = "(const ImGuiViewport*,ImGuiDockNodeFlags,const ImGuiWindowClass*)" defs["igDockSpaceOverViewport"][1]["stname"] = "" defs["igDockSpaceOverViewport"]["(const ImGuiViewport*,ImGuiDockNodeFlags,const ImGuiWindowClass*)"] = defs["igDockSpaceOverViewport"][1] +defs["igDragBehavior"] = {} +defs["igDragBehavior"][1] = {} +defs["igDragBehavior"][1]["args"] = "(ImGuiID id,ImGuiDataType data_type,void* p_v,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragBehavior"][1]["argsT"] = {} +defs["igDragBehavior"][1]["argsT"][1] = {} +defs["igDragBehavior"][1]["argsT"][1]["name"] = "id" +defs["igDragBehavior"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igDragBehavior"][1]["argsT"][2] = {} +defs["igDragBehavior"][1]["argsT"][2]["name"] = "data_type" +defs["igDragBehavior"][1]["argsT"][2]["type"] = "ImGuiDataType" +defs["igDragBehavior"][1]["argsT"][3] = {} +defs["igDragBehavior"][1]["argsT"][3]["name"] = "p_v" +defs["igDragBehavior"][1]["argsT"][3]["type"] = "void*" +defs["igDragBehavior"][1]["argsT"][4] = {} +defs["igDragBehavior"][1]["argsT"][4]["name"] = "v_speed" +defs["igDragBehavior"][1]["argsT"][4]["type"] = "float" +defs["igDragBehavior"][1]["argsT"][5] = {} +defs["igDragBehavior"][1]["argsT"][5]["name"] = "p_min" +defs["igDragBehavior"][1]["argsT"][5]["type"] = "const void*" +defs["igDragBehavior"][1]["argsT"][6] = {} +defs["igDragBehavior"][1]["argsT"][6]["name"] = "p_max" +defs["igDragBehavior"][1]["argsT"][6]["type"] = "const void*" +defs["igDragBehavior"][1]["argsT"][7] = {} +defs["igDragBehavior"][1]["argsT"][7]["name"] = "format" +defs["igDragBehavior"][1]["argsT"][7]["type"] = "const char*" +defs["igDragBehavior"][1]["argsT"][8] = {} +defs["igDragBehavior"][1]["argsT"][8]["name"] = "flags" +defs["igDragBehavior"][1]["argsT"][8]["type"] = "ImGuiSliderFlags" +defs["igDragBehavior"][1]["argsoriginal"] = "(ImGuiID id,ImGuiDataType data_type,void* p_v,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags)" +defs["igDragBehavior"][1]["call_args"] = "(id,data_type,p_v,v_speed,p_min,p_max,format,flags)" +defs["igDragBehavior"][1]["cimguiname"] = "igDragBehavior" +defs["igDragBehavior"][1]["defaults"] = {} +defs["igDragBehavior"][1]["funcname"] = "DragBehavior" +defs["igDragBehavior"][1]["location"] = "imgui_internal:3368" +defs["igDragBehavior"][1]["namespace"] = "ImGui" +defs["igDragBehavior"][1]["ov_cimguiname"] = "igDragBehavior" +defs["igDragBehavior"][1]["ret"] = "bool" +defs["igDragBehavior"][1]["signature"] = "(ImGuiID,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)" +defs["igDragBehavior"][1]["stname"] = "" +defs["igDragBehavior"]["(ImGuiID,ImGuiDataType,void*,float,const void*,const void*,const char*,ImGuiSliderFlags)"] = defs["igDragBehavior"][1] defs["igDragFloat"] = {} defs["igDragFloat"][1] = {} defs["igDragFloat"][1]["args"] = "(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" @@ -8539,6 +15606,22 @@ defs["igEndChildFrame"][1]["ret"] = "void" defs["igEndChildFrame"][1]["signature"] = "()" defs["igEndChildFrame"][1]["stname"] = "" defs["igEndChildFrame"]["()"] = defs["igEndChildFrame"][1] +defs["igEndColumns"] = {} +defs["igEndColumns"][1] = {} +defs["igEndColumns"][1]["args"] = "()" +defs["igEndColumns"][1]["argsT"] = {} +defs["igEndColumns"][1]["argsoriginal"] = "()" +defs["igEndColumns"][1]["call_args"] = "()" +defs["igEndColumns"][1]["cimguiname"] = "igEndColumns" +defs["igEndColumns"][1]["defaults"] = {} +defs["igEndColumns"][1]["funcname"] = "EndColumns" +defs["igEndColumns"][1]["location"] = "imgui_internal:3246" +defs["igEndColumns"][1]["namespace"] = "ImGui" +defs["igEndColumns"][1]["ov_cimguiname"] = "igEndColumns" +defs["igEndColumns"][1]["ret"] = "void" +defs["igEndColumns"][1]["signature"] = "()" +defs["igEndColumns"][1]["stname"] = "" +defs["igEndColumns"]["()"] = defs["igEndColumns"][1] defs["igEndCombo"] = {} defs["igEndCombo"][1] = {} defs["igEndCombo"][1]["args"] = "()" @@ -8555,6 +15638,22 @@ defs["igEndCombo"][1]["ret"] = "void" defs["igEndCombo"][1]["signature"] = "()" defs["igEndCombo"][1]["stname"] = "" defs["igEndCombo"]["()"] = defs["igEndCombo"][1] +defs["igEndComboPreview"] = {} +defs["igEndComboPreview"][1] = {} +defs["igEndComboPreview"][1]["args"] = "()" +defs["igEndComboPreview"][1]["argsT"] = {} +defs["igEndComboPreview"][1]["argsoriginal"] = "()" +defs["igEndComboPreview"][1]["call_args"] = "()" +defs["igEndComboPreview"][1]["cimguiname"] = "igEndComboPreview" +defs["igEndComboPreview"][1]["defaults"] = {} +defs["igEndComboPreview"][1]["funcname"] = "EndComboPreview" +defs["igEndComboPreview"][1]["location"] = "imgui_internal:3082" +defs["igEndComboPreview"][1]["namespace"] = "ImGui" +defs["igEndComboPreview"][1]["ov_cimguiname"] = "igEndComboPreview" +defs["igEndComboPreview"][1]["ret"] = "void" +defs["igEndComboPreview"][1]["signature"] = "()" +defs["igEndComboPreview"][1]["stname"] = "" +defs["igEndComboPreview"]["()"] = defs["igEndComboPreview"][1] defs["igEndDisabled"] = {} defs["igEndDisabled"][1] = {} defs["igEndDisabled"][1]["args"] = "()" @@ -8779,6 +15878,250 @@ defs["igEndTooltip"][1]["ret"] = "void" defs["igEndTooltip"][1]["signature"] = "()" defs["igEndTooltip"][1]["stname"] = "" defs["igEndTooltip"]["()"] = defs["igEndTooltip"][1] +defs["igErrorCheckEndFrameRecover"] = {} +defs["igErrorCheckEndFrameRecover"][1] = {} +defs["igErrorCheckEndFrameRecover"][1]["args"] = "(ImGuiErrorLogCallback log_callback,void* user_data)" +defs["igErrorCheckEndFrameRecover"][1]["argsT"] = {} +defs["igErrorCheckEndFrameRecover"][1]["argsT"][1] = {} +defs["igErrorCheckEndFrameRecover"][1]["argsT"][1]["name"] = "log_callback" +defs["igErrorCheckEndFrameRecover"][1]["argsT"][1]["type"] = "ImGuiErrorLogCallback" +defs["igErrorCheckEndFrameRecover"][1]["argsT"][2] = {} +defs["igErrorCheckEndFrameRecover"][1]["argsT"][2]["name"] = "user_data" +defs["igErrorCheckEndFrameRecover"][1]["argsT"][2]["type"] = "void*" +defs["igErrorCheckEndFrameRecover"][1]["argsoriginal"] = "(ImGuiErrorLogCallback log_callback,void* user_data=((void*)0))" +defs["igErrorCheckEndFrameRecover"][1]["call_args"] = "(log_callback,user_data)" +defs["igErrorCheckEndFrameRecover"][1]["cimguiname"] = "igErrorCheckEndFrameRecover" +defs["igErrorCheckEndFrameRecover"][1]["defaults"] = {} +defs["igErrorCheckEndFrameRecover"][1]["defaults"]["user_data"] = "NULL" +defs["igErrorCheckEndFrameRecover"][1]["funcname"] = "ErrorCheckEndFrameRecover" +defs["igErrorCheckEndFrameRecover"][1]["location"] = "imgui_internal:3423" +defs["igErrorCheckEndFrameRecover"][1]["namespace"] = "ImGui" +defs["igErrorCheckEndFrameRecover"][1]["ov_cimguiname"] = "igErrorCheckEndFrameRecover" +defs["igErrorCheckEndFrameRecover"][1]["ret"] = "void" +defs["igErrorCheckEndFrameRecover"][1]["signature"] = "(ImGuiErrorLogCallback,void*)" +defs["igErrorCheckEndFrameRecover"][1]["stname"] = "" +defs["igErrorCheckEndFrameRecover"]["(ImGuiErrorLogCallback,void*)"] = defs["igErrorCheckEndFrameRecover"][1] +defs["igErrorCheckEndWindowRecover"] = {} +defs["igErrorCheckEndWindowRecover"][1] = {} +defs["igErrorCheckEndWindowRecover"][1]["args"] = "(ImGuiErrorLogCallback log_callback,void* user_data)" +defs["igErrorCheckEndWindowRecover"][1]["argsT"] = {} +defs["igErrorCheckEndWindowRecover"][1]["argsT"][1] = {} +defs["igErrorCheckEndWindowRecover"][1]["argsT"][1]["name"] = "log_callback" +defs["igErrorCheckEndWindowRecover"][1]["argsT"][1]["type"] = "ImGuiErrorLogCallback" +defs["igErrorCheckEndWindowRecover"][1]["argsT"][2] = {} +defs["igErrorCheckEndWindowRecover"][1]["argsT"][2]["name"] = "user_data" +defs["igErrorCheckEndWindowRecover"][1]["argsT"][2]["type"] = "void*" +defs["igErrorCheckEndWindowRecover"][1]["argsoriginal"] = "(ImGuiErrorLogCallback log_callback,void* user_data=((void*)0))" +defs["igErrorCheckEndWindowRecover"][1]["call_args"] = "(log_callback,user_data)" +defs["igErrorCheckEndWindowRecover"][1]["cimguiname"] = "igErrorCheckEndWindowRecover" +defs["igErrorCheckEndWindowRecover"][1]["defaults"] = {} +defs["igErrorCheckEndWindowRecover"][1]["defaults"]["user_data"] = "NULL" +defs["igErrorCheckEndWindowRecover"][1]["funcname"] = "ErrorCheckEndWindowRecover" +defs["igErrorCheckEndWindowRecover"][1]["location"] = "imgui_internal:3424" +defs["igErrorCheckEndWindowRecover"][1]["namespace"] = "ImGui" +defs["igErrorCheckEndWindowRecover"][1]["ov_cimguiname"] = "igErrorCheckEndWindowRecover" +defs["igErrorCheckEndWindowRecover"][1]["ret"] = "void" +defs["igErrorCheckEndWindowRecover"][1]["signature"] = "(ImGuiErrorLogCallback,void*)" +defs["igErrorCheckEndWindowRecover"][1]["stname"] = "" +defs["igErrorCheckEndWindowRecover"]["(ImGuiErrorLogCallback,void*)"] = defs["igErrorCheckEndWindowRecover"][1] +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"] = {} +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1] = {} +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["args"] = "()" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["argsT"] = {} +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["argsoriginal"] = "()" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["call_args"] = "()" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["cimguiname"] = "igErrorCheckUsingSetCursorPosToExtendParentBoundaries" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["defaults"] = {} +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["funcname"] = "ErrorCheckUsingSetCursorPosToExtendParentBoundaries" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["location"] = "imgui_internal:3425" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["namespace"] = "ImGui" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["ov_cimguiname"] = "igErrorCheckUsingSetCursorPosToExtendParentBoundaries" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["ret"] = "void" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["signature"] = "()" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1]["stname"] = "" +defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"]["()"] = defs["igErrorCheckUsingSetCursorPosToExtendParentBoundaries"][1] +defs["igFindBestWindowPosForPopup"] = {} +defs["igFindBestWindowPosForPopup"][1] = {} +defs["igFindBestWindowPosForPopup"][1]["args"] = "(ImVec2 *pOut,ImGuiWindow* window)" +defs["igFindBestWindowPosForPopup"][1]["argsT"] = {} +defs["igFindBestWindowPosForPopup"][1]["argsT"][1] = {} +defs["igFindBestWindowPosForPopup"][1]["argsT"][1]["name"] = "pOut" +defs["igFindBestWindowPosForPopup"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igFindBestWindowPosForPopup"][1]["argsT"][2] = {} +defs["igFindBestWindowPosForPopup"][1]["argsT"][2]["name"] = "window" +defs["igFindBestWindowPosForPopup"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igFindBestWindowPosForPopup"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igFindBestWindowPosForPopup"][1]["call_args"] = "(window)" +defs["igFindBestWindowPosForPopup"][1]["cimguiname"] = "igFindBestWindowPosForPopup" +defs["igFindBestWindowPosForPopup"][1]["defaults"] = {} +defs["igFindBestWindowPosForPopup"][1]["funcname"] = "FindBestWindowPosForPopup" +defs["igFindBestWindowPosForPopup"][1]["location"] = "imgui_internal:3071" +defs["igFindBestWindowPosForPopup"][1]["namespace"] = "ImGui" +defs["igFindBestWindowPosForPopup"][1]["nonUDT"] = 1 +defs["igFindBestWindowPosForPopup"][1]["ov_cimguiname"] = "igFindBestWindowPosForPopup" +defs["igFindBestWindowPosForPopup"][1]["ret"] = "void" +defs["igFindBestWindowPosForPopup"][1]["signature"] = "(ImGuiWindow*)" +defs["igFindBestWindowPosForPopup"][1]["stname"] = "" +defs["igFindBestWindowPosForPopup"]["(ImGuiWindow*)"] = defs["igFindBestWindowPosForPopup"][1] +defs["igFindBestWindowPosForPopupEx"] = {} +defs["igFindBestWindowPosForPopupEx"][1] = {} +defs["igFindBestWindowPosForPopupEx"][1]["args"] = "(ImVec2 *pOut,const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy)" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"] = {} +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][1] = {} +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][1]["name"] = "pOut" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][2] = {} +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][2]["name"] = "ref_pos" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][3] = {} +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][3]["name"] = "size" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][4] = {} +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][4]["name"] = "last_dir" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][4]["type"] = "ImGuiDir*" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][5] = {} +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][5]["name"] = "r_outer" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][5]["type"] = "const ImRect" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][6] = {} +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][6]["name"] = "r_avoid" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][6]["type"] = "const ImRect" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][7] = {} +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][7]["name"] = "policy" +defs["igFindBestWindowPosForPopupEx"][1]["argsT"][7]["type"] = "ImGuiPopupPositionPolicy" +defs["igFindBestWindowPosForPopupEx"][1]["argsoriginal"] = "(const ImVec2& ref_pos,const ImVec2& size,ImGuiDir* last_dir,const ImRect& r_outer,const ImRect& r_avoid,ImGuiPopupPositionPolicy policy)" +defs["igFindBestWindowPosForPopupEx"][1]["call_args"] = "(ref_pos,size,last_dir,r_outer,r_avoid,policy)" +defs["igFindBestWindowPosForPopupEx"][1]["cimguiname"] = "igFindBestWindowPosForPopupEx" +defs["igFindBestWindowPosForPopupEx"][1]["defaults"] = {} +defs["igFindBestWindowPosForPopupEx"][1]["funcname"] = "FindBestWindowPosForPopupEx" +defs["igFindBestWindowPosForPopupEx"][1]["location"] = "imgui_internal:3072" +defs["igFindBestWindowPosForPopupEx"][1]["namespace"] = "ImGui" +defs["igFindBestWindowPosForPopupEx"][1]["nonUDT"] = 1 +defs["igFindBestWindowPosForPopupEx"][1]["ov_cimguiname"] = "igFindBestWindowPosForPopupEx" +defs["igFindBestWindowPosForPopupEx"][1]["ret"] = "void" +defs["igFindBestWindowPosForPopupEx"][1]["signature"] = "(const ImVec2,const ImVec2,ImGuiDir*,const ImRect,const ImRect,ImGuiPopupPositionPolicy)" +defs["igFindBestWindowPosForPopupEx"][1]["stname"] = "" +defs["igFindBestWindowPosForPopupEx"]["(const ImVec2,const ImVec2,ImGuiDir*,const ImRect,const ImRect,ImGuiPopupPositionPolicy)"] = defs["igFindBestWindowPosForPopupEx"][1] +defs["igFindBottomMostVisibleWindowWithinBeginStack"] = {} +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1] = {} +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["args"] = "(ImGuiWindow* window)" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["argsT"] = {} +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["argsT"][1] = {} +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["argsT"][1]["name"] = "window" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["call_args"] = "(window)" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["cimguiname"] = "igFindBottomMostVisibleWindowWithinBeginStack" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["defaults"] = {} +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["funcname"] = "FindBottomMostVisibleWindowWithinBeginStack" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["location"] = "imgui_internal:2957" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["namespace"] = "ImGui" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["ov_cimguiname"] = "igFindBottomMostVisibleWindowWithinBeginStack" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["ret"] = "ImGuiWindow*" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["signature"] = "(ImGuiWindow*)" +defs["igFindBottomMostVisibleWindowWithinBeginStack"][1]["stname"] = "" +defs["igFindBottomMostVisibleWindowWithinBeginStack"]["(ImGuiWindow*)"] = defs["igFindBottomMostVisibleWindowWithinBeginStack"][1] +defs["igFindHoveredViewportFromPlatformWindowStack"] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["args"] = "(const ImVec2 mouse_platform_pos)" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsT"] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsT"][1] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsT"][1]["name"] = "mouse_platform_pos" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["argsoriginal"] = "(const ImVec2& mouse_platform_pos)" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["call_args"] = "(mouse_platform_pos)" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["cimguiname"] = "igFindHoveredViewportFromPlatformWindowStack" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["defaults"] = {} +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["funcname"] = "FindHoveredViewportFromPlatformWindowStack" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["location"] = "imgui_internal:2988" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["namespace"] = "ImGui" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["ov_cimguiname"] = "igFindHoveredViewportFromPlatformWindowStack" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["ret"] = "ImGuiViewportP*" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["signature"] = "(const ImVec2)" +defs["igFindHoveredViewportFromPlatformWindowStack"][1]["stname"] = "" +defs["igFindHoveredViewportFromPlatformWindowStack"]["(const ImVec2)"] = defs["igFindHoveredViewportFromPlatformWindowStack"][1] +defs["igFindOrCreateColumns"] = {} +defs["igFindOrCreateColumns"][1] = {} +defs["igFindOrCreateColumns"][1]["args"] = "(ImGuiWindow* window,ImGuiID id)" +defs["igFindOrCreateColumns"][1]["argsT"] = {} +defs["igFindOrCreateColumns"][1]["argsT"][1] = {} +defs["igFindOrCreateColumns"][1]["argsT"][1]["name"] = "window" +defs["igFindOrCreateColumns"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igFindOrCreateColumns"][1]["argsT"][2] = {} +defs["igFindOrCreateColumns"][1]["argsT"][2]["name"] = "id" +defs["igFindOrCreateColumns"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igFindOrCreateColumns"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiID id)" +defs["igFindOrCreateColumns"][1]["call_args"] = "(window,id)" +defs["igFindOrCreateColumns"][1]["cimguiname"] = "igFindOrCreateColumns" +defs["igFindOrCreateColumns"][1]["defaults"] = {} +defs["igFindOrCreateColumns"][1]["funcname"] = "FindOrCreateColumns" +defs["igFindOrCreateColumns"][1]["location"] = "imgui_internal:3251" +defs["igFindOrCreateColumns"][1]["namespace"] = "ImGui" +defs["igFindOrCreateColumns"][1]["ov_cimguiname"] = "igFindOrCreateColumns" +defs["igFindOrCreateColumns"][1]["ret"] = "ImGuiOldColumns*" +defs["igFindOrCreateColumns"][1]["signature"] = "(ImGuiWindow*,ImGuiID)" +defs["igFindOrCreateColumns"][1]["stname"] = "" +defs["igFindOrCreateColumns"]["(ImGuiWindow*,ImGuiID)"] = defs["igFindOrCreateColumns"][1] +defs["igFindOrCreateWindowSettings"] = {} +defs["igFindOrCreateWindowSettings"][1] = {} +defs["igFindOrCreateWindowSettings"][1]["args"] = "(const char* name)" +defs["igFindOrCreateWindowSettings"][1]["argsT"] = {} +defs["igFindOrCreateWindowSettings"][1]["argsT"][1] = {} +defs["igFindOrCreateWindowSettings"][1]["argsT"][1]["name"] = "name" +defs["igFindOrCreateWindowSettings"][1]["argsT"][1]["type"] = "const char*" +defs["igFindOrCreateWindowSettings"][1]["argsoriginal"] = "(const char* name)" +defs["igFindOrCreateWindowSettings"][1]["call_args"] = "(name)" +defs["igFindOrCreateWindowSettings"][1]["cimguiname"] = "igFindOrCreateWindowSettings" +defs["igFindOrCreateWindowSettings"][1]["defaults"] = {} +defs["igFindOrCreateWindowSettings"][1]["funcname"] = "FindOrCreateWindowSettings" +defs["igFindOrCreateWindowSettings"][1]["location"] = "imgui_internal:2996" +defs["igFindOrCreateWindowSettings"][1]["namespace"] = "ImGui" +defs["igFindOrCreateWindowSettings"][1]["ov_cimguiname"] = "igFindOrCreateWindowSettings" +defs["igFindOrCreateWindowSettings"][1]["ret"] = "ImGuiWindowSettings*" +defs["igFindOrCreateWindowSettings"][1]["signature"] = "(const char*)" +defs["igFindOrCreateWindowSettings"][1]["stname"] = "" +defs["igFindOrCreateWindowSettings"]["(const char*)"] = defs["igFindOrCreateWindowSettings"][1] +defs["igFindRenderedTextEnd"] = {} +defs["igFindRenderedTextEnd"][1] = {} +defs["igFindRenderedTextEnd"][1]["args"] = "(const char* text,const char* text_end)" +defs["igFindRenderedTextEnd"][1]["argsT"] = {} +defs["igFindRenderedTextEnd"][1]["argsT"][1] = {} +defs["igFindRenderedTextEnd"][1]["argsT"][1]["name"] = "text" +defs["igFindRenderedTextEnd"][1]["argsT"][1]["type"] = "const char*" +defs["igFindRenderedTextEnd"][1]["argsT"][2] = {} +defs["igFindRenderedTextEnd"][1]["argsT"][2]["name"] = "text_end" +defs["igFindRenderedTextEnd"][1]["argsT"][2]["type"] = "const char*" +defs["igFindRenderedTextEnd"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0))" +defs["igFindRenderedTextEnd"][1]["call_args"] = "(text,text_end)" +defs["igFindRenderedTextEnd"][1]["cimguiname"] = "igFindRenderedTextEnd" +defs["igFindRenderedTextEnd"][1]["defaults"] = {} +defs["igFindRenderedTextEnd"][1]["defaults"]["text_end"] = "NULL" +defs["igFindRenderedTextEnd"][1]["funcname"] = "FindRenderedTextEnd" +defs["igFindRenderedTextEnd"][1]["location"] = "imgui_internal:3336" +defs["igFindRenderedTextEnd"][1]["namespace"] = "ImGui" +defs["igFindRenderedTextEnd"][1]["ov_cimguiname"] = "igFindRenderedTextEnd" +defs["igFindRenderedTextEnd"][1]["ret"] = "const char*" +defs["igFindRenderedTextEnd"][1]["signature"] = "(const char*,const char*)" +defs["igFindRenderedTextEnd"][1]["stname"] = "" +defs["igFindRenderedTextEnd"]["(const char*,const char*)"] = defs["igFindRenderedTextEnd"][1] +defs["igFindSettingsHandler"] = {} +defs["igFindSettingsHandler"][1] = {} +defs["igFindSettingsHandler"][1]["args"] = "(const char* type_name)" +defs["igFindSettingsHandler"][1]["argsT"] = {} +defs["igFindSettingsHandler"][1]["argsT"][1] = {} +defs["igFindSettingsHandler"][1]["argsT"][1]["name"] = "type_name" +defs["igFindSettingsHandler"][1]["argsT"][1]["type"] = "const char*" +defs["igFindSettingsHandler"][1]["argsoriginal"] = "(const char* type_name)" +defs["igFindSettingsHandler"][1]["call_args"] = "(type_name)" +defs["igFindSettingsHandler"][1]["cimguiname"] = "igFindSettingsHandler" +defs["igFindSettingsHandler"][1]["defaults"] = {} +defs["igFindSettingsHandler"][1]["funcname"] = "FindSettingsHandler" +defs["igFindSettingsHandler"][1]["location"] = "imgui_internal:2999" +defs["igFindSettingsHandler"][1]["namespace"] = "ImGui" +defs["igFindSettingsHandler"][1]["ov_cimguiname"] = "igFindSettingsHandler" +defs["igFindSettingsHandler"][1]["ret"] = "ImGuiSettingsHandler*" +defs["igFindSettingsHandler"][1]["signature"] = "(const char*)" +defs["igFindSettingsHandler"][1]["stname"] = "" +defs["igFindSettingsHandler"]["(const char*)"] = defs["igFindSettingsHandler"][1] defs["igFindViewportByID"] = {} defs["igFindViewportByID"][1] = {} defs["igFindViewportByID"][1]["args"] = "(ImGuiID id)" @@ -8817,6 +16160,193 @@ defs["igFindViewportByPlatformHandle"][1]["ret"] = "ImGuiViewport*" defs["igFindViewportByPlatformHandle"][1]["signature"] = "(void*)" defs["igFindViewportByPlatformHandle"][1]["stname"] = "" defs["igFindViewportByPlatformHandle"]["(void*)"] = defs["igFindViewportByPlatformHandle"][1] +defs["igFindWindowByID"] = {} +defs["igFindWindowByID"][1] = {} +defs["igFindWindowByID"][1]["args"] = "(ImGuiID id)" +defs["igFindWindowByID"][1]["argsT"] = {} +defs["igFindWindowByID"][1]["argsT"][1] = {} +defs["igFindWindowByID"][1]["argsT"][1]["name"] = "id" +defs["igFindWindowByID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igFindWindowByID"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igFindWindowByID"][1]["call_args"] = "(id)" +defs["igFindWindowByID"][1]["cimguiname"] = "igFindWindowByID" +defs["igFindWindowByID"][1]["defaults"] = {} +defs["igFindWindowByID"][1]["funcname"] = "FindWindowByID" +defs["igFindWindowByID"][1]["location"] = "imgui_internal:2934" +defs["igFindWindowByID"][1]["namespace"] = "ImGui" +defs["igFindWindowByID"][1]["ov_cimguiname"] = "igFindWindowByID" +defs["igFindWindowByID"][1]["ret"] = "ImGuiWindow*" +defs["igFindWindowByID"][1]["signature"] = "(ImGuiID)" +defs["igFindWindowByID"][1]["stname"] = "" +defs["igFindWindowByID"]["(ImGuiID)"] = defs["igFindWindowByID"][1] +defs["igFindWindowByName"] = {} +defs["igFindWindowByName"][1] = {} +defs["igFindWindowByName"][1]["args"] = "(const char* name)" +defs["igFindWindowByName"][1]["argsT"] = {} +defs["igFindWindowByName"][1]["argsT"][1] = {} +defs["igFindWindowByName"][1]["argsT"][1]["name"] = "name" +defs["igFindWindowByName"][1]["argsT"][1]["type"] = "const char*" +defs["igFindWindowByName"][1]["argsoriginal"] = "(const char* name)" +defs["igFindWindowByName"][1]["call_args"] = "(name)" +defs["igFindWindowByName"][1]["cimguiname"] = "igFindWindowByName" +defs["igFindWindowByName"][1]["defaults"] = {} +defs["igFindWindowByName"][1]["funcname"] = "FindWindowByName" +defs["igFindWindowByName"][1]["location"] = "imgui_internal:2935" +defs["igFindWindowByName"][1]["namespace"] = "ImGui" +defs["igFindWindowByName"][1]["ov_cimguiname"] = "igFindWindowByName" +defs["igFindWindowByName"][1]["ret"] = "ImGuiWindow*" +defs["igFindWindowByName"][1]["signature"] = "(const char*)" +defs["igFindWindowByName"][1]["stname"] = "" +defs["igFindWindowByName"]["(const char*)"] = defs["igFindWindowByName"][1] +defs["igFindWindowDisplayIndex"] = {} +defs["igFindWindowDisplayIndex"][1] = {} +defs["igFindWindowDisplayIndex"][1]["args"] = "(ImGuiWindow* window)" +defs["igFindWindowDisplayIndex"][1]["argsT"] = {} +defs["igFindWindowDisplayIndex"][1]["argsT"][1] = {} +defs["igFindWindowDisplayIndex"][1]["argsT"][1]["name"] = "window" +defs["igFindWindowDisplayIndex"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igFindWindowDisplayIndex"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igFindWindowDisplayIndex"][1]["call_args"] = "(window)" +defs["igFindWindowDisplayIndex"][1]["cimguiname"] = "igFindWindowDisplayIndex" +defs["igFindWindowDisplayIndex"][1]["defaults"] = {} +defs["igFindWindowDisplayIndex"][1]["funcname"] = "FindWindowDisplayIndex" +defs["igFindWindowDisplayIndex"][1]["location"] = "imgui_internal:2956" +defs["igFindWindowDisplayIndex"][1]["namespace"] = "ImGui" +defs["igFindWindowDisplayIndex"][1]["ov_cimguiname"] = "igFindWindowDisplayIndex" +defs["igFindWindowDisplayIndex"][1]["ret"] = "int" +defs["igFindWindowDisplayIndex"][1]["signature"] = "(ImGuiWindow*)" +defs["igFindWindowDisplayIndex"][1]["stname"] = "" +defs["igFindWindowDisplayIndex"]["(ImGuiWindow*)"] = defs["igFindWindowDisplayIndex"][1] +defs["igFindWindowSettings"] = {} +defs["igFindWindowSettings"][1] = {} +defs["igFindWindowSettings"][1]["args"] = "(ImGuiID id)" +defs["igFindWindowSettings"][1]["argsT"] = {} +defs["igFindWindowSettings"][1]["argsT"][1] = {} +defs["igFindWindowSettings"][1]["argsT"][1]["name"] = "id" +defs["igFindWindowSettings"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igFindWindowSettings"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igFindWindowSettings"][1]["call_args"] = "(id)" +defs["igFindWindowSettings"][1]["cimguiname"] = "igFindWindowSettings" +defs["igFindWindowSettings"][1]["defaults"] = {} +defs["igFindWindowSettings"][1]["funcname"] = "FindWindowSettings" +defs["igFindWindowSettings"][1]["location"] = "imgui_internal:2995" +defs["igFindWindowSettings"][1]["namespace"] = "ImGui" +defs["igFindWindowSettings"][1]["ov_cimguiname"] = "igFindWindowSettings" +defs["igFindWindowSettings"][1]["ret"] = "ImGuiWindowSettings*" +defs["igFindWindowSettings"][1]["signature"] = "(ImGuiID)" +defs["igFindWindowSettings"][1]["stname"] = "" +defs["igFindWindowSettings"]["(ImGuiID)"] = defs["igFindWindowSettings"][1] +defs["igFocusTopMostWindowUnderOne"] = {} +defs["igFocusTopMostWindowUnderOne"][1] = {} +defs["igFocusTopMostWindowUnderOne"][1]["args"] = "(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window)" +defs["igFocusTopMostWindowUnderOne"][1]["argsT"] = {} +defs["igFocusTopMostWindowUnderOne"][1]["argsT"][1] = {} +defs["igFocusTopMostWindowUnderOne"][1]["argsT"][1]["name"] = "under_this_window" +defs["igFocusTopMostWindowUnderOne"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igFocusTopMostWindowUnderOne"][1]["argsT"][2] = {} +defs["igFocusTopMostWindowUnderOne"][1]["argsT"][2]["name"] = "ignore_window" +defs["igFocusTopMostWindowUnderOne"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igFocusTopMostWindowUnderOne"][1]["argsoriginal"] = "(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window)" +defs["igFocusTopMostWindowUnderOne"][1]["call_args"] = "(under_this_window,ignore_window)" +defs["igFocusTopMostWindowUnderOne"][1]["cimguiname"] = "igFocusTopMostWindowUnderOne" +defs["igFocusTopMostWindowUnderOne"][1]["defaults"] = {} +defs["igFocusTopMostWindowUnderOne"][1]["funcname"] = "FocusTopMostWindowUnderOne" +defs["igFocusTopMostWindowUnderOne"][1]["location"] = "imgui_internal:2951" +defs["igFocusTopMostWindowUnderOne"][1]["namespace"] = "ImGui" +defs["igFocusTopMostWindowUnderOne"][1]["ov_cimguiname"] = "igFocusTopMostWindowUnderOne" +defs["igFocusTopMostWindowUnderOne"][1]["ret"] = "void" +defs["igFocusTopMostWindowUnderOne"][1]["signature"] = "(ImGuiWindow*,ImGuiWindow*)" +defs["igFocusTopMostWindowUnderOne"][1]["stname"] = "" +defs["igFocusTopMostWindowUnderOne"]["(ImGuiWindow*,ImGuiWindow*)"] = defs["igFocusTopMostWindowUnderOne"][1] +defs["igFocusWindow"] = {} +defs["igFocusWindow"][1] = {} +defs["igFocusWindow"][1]["args"] = "(ImGuiWindow* window)" +defs["igFocusWindow"][1]["argsT"] = {} +defs["igFocusWindow"][1]["argsT"][1] = {} +defs["igFocusWindow"][1]["argsT"][1]["name"] = "window" +defs["igFocusWindow"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igFocusWindow"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igFocusWindow"][1]["call_args"] = "(window)" +defs["igFocusWindow"][1]["cimguiname"] = "igFocusWindow" +defs["igFocusWindow"][1]["defaults"] = {} +defs["igFocusWindow"][1]["funcname"] = "FocusWindow" +defs["igFocusWindow"][1]["location"] = "imgui_internal:2950" +defs["igFocusWindow"][1]["namespace"] = "ImGui" +defs["igFocusWindow"][1]["ov_cimguiname"] = "igFocusWindow" +defs["igFocusWindow"][1]["ret"] = "void" +defs["igFocusWindow"][1]["signature"] = "(ImGuiWindow*)" +defs["igFocusWindow"][1]["stname"] = "" +defs["igFocusWindow"]["(ImGuiWindow*)"] = defs["igFocusWindow"][1] +defs["igGcAwakeTransientWindowBuffers"] = {} +defs["igGcAwakeTransientWindowBuffers"][1] = {} +defs["igGcAwakeTransientWindowBuffers"][1]["args"] = "(ImGuiWindow* window)" +defs["igGcAwakeTransientWindowBuffers"][1]["argsT"] = {} +defs["igGcAwakeTransientWindowBuffers"][1]["argsT"][1] = {} +defs["igGcAwakeTransientWindowBuffers"][1]["argsT"][1]["name"] = "window" +defs["igGcAwakeTransientWindowBuffers"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igGcAwakeTransientWindowBuffers"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igGcAwakeTransientWindowBuffers"][1]["call_args"] = "(window)" +defs["igGcAwakeTransientWindowBuffers"][1]["cimguiname"] = "igGcAwakeTransientWindowBuffers" +defs["igGcAwakeTransientWindowBuffers"][1]["defaults"] = {} +defs["igGcAwakeTransientWindowBuffers"][1]["funcname"] = "GcAwakeTransientWindowBuffers" +defs["igGcAwakeTransientWindowBuffers"][1]["location"] = "imgui_internal:3416" +defs["igGcAwakeTransientWindowBuffers"][1]["namespace"] = "ImGui" +defs["igGcAwakeTransientWindowBuffers"][1]["ov_cimguiname"] = "igGcAwakeTransientWindowBuffers" +defs["igGcAwakeTransientWindowBuffers"][1]["ret"] = "void" +defs["igGcAwakeTransientWindowBuffers"][1]["signature"] = "(ImGuiWindow*)" +defs["igGcAwakeTransientWindowBuffers"][1]["stname"] = "" +defs["igGcAwakeTransientWindowBuffers"]["(ImGuiWindow*)"] = defs["igGcAwakeTransientWindowBuffers"][1] +defs["igGcCompactTransientMiscBuffers"] = {} +defs["igGcCompactTransientMiscBuffers"][1] = {} +defs["igGcCompactTransientMiscBuffers"][1]["args"] = "()" +defs["igGcCompactTransientMiscBuffers"][1]["argsT"] = {} +defs["igGcCompactTransientMiscBuffers"][1]["argsoriginal"] = "()" +defs["igGcCompactTransientMiscBuffers"][1]["call_args"] = "()" +defs["igGcCompactTransientMiscBuffers"][1]["cimguiname"] = "igGcCompactTransientMiscBuffers" +defs["igGcCompactTransientMiscBuffers"][1]["defaults"] = {} +defs["igGcCompactTransientMiscBuffers"][1]["funcname"] = "GcCompactTransientMiscBuffers" +defs["igGcCompactTransientMiscBuffers"][1]["location"] = "imgui_internal:3414" +defs["igGcCompactTransientMiscBuffers"][1]["namespace"] = "ImGui" +defs["igGcCompactTransientMiscBuffers"][1]["ov_cimguiname"] = "igGcCompactTransientMiscBuffers" +defs["igGcCompactTransientMiscBuffers"][1]["ret"] = "void" +defs["igGcCompactTransientMiscBuffers"][1]["signature"] = "()" +defs["igGcCompactTransientMiscBuffers"][1]["stname"] = "" +defs["igGcCompactTransientMiscBuffers"]["()"] = defs["igGcCompactTransientMiscBuffers"][1] +defs["igGcCompactTransientWindowBuffers"] = {} +defs["igGcCompactTransientWindowBuffers"][1] = {} +defs["igGcCompactTransientWindowBuffers"][1]["args"] = "(ImGuiWindow* window)" +defs["igGcCompactTransientWindowBuffers"][1]["argsT"] = {} +defs["igGcCompactTransientWindowBuffers"][1]["argsT"][1] = {} +defs["igGcCompactTransientWindowBuffers"][1]["argsT"][1]["name"] = "window" +defs["igGcCompactTransientWindowBuffers"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igGcCompactTransientWindowBuffers"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igGcCompactTransientWindowBuffers"][1]["call_args"] = "(window)" +defs["igGcCompactTransientWindowBuffers"][1]["cimguiname"] = "igGcCompactTransientWindowBuffers" +defs["igGcCompactTransientWindowBuffers"][1]["defaults"] = {} +defs["igGcCompactTransientWindowBuffers"][1]["funcname"] = "GcCompactTransientWindowBuffers" +defs["igGcCompactTransientWindowBuffers"][1]["location"] = "imgui_internal:3415" +defs["igGcCompactTransientWindowBuffers"][1]["namespace"] = "ImGui" +defs["igGcCompactTransientWindowBuffers"][1]["ov_cimguiname"] = "igGcCompactTransientWindowBuffers" +defs["igGcCompactTransientWindowBuffers"][1]["ret"] = "void" +defs["igGcCompactTransientWindowBuffers"][1]["signature"] = "(ImGuiWindow*)" +defs["igGcCompactTransientWindowBuffers"][1]["stname"] = "" +defs["igGcCompactTransientWindowBuffers"]["(ImGuiWindow*)"] = defs["igGcCompactTransientWindowBuffers"][1] +defs["igGetActiveID"] = {} +defs["igGetActiveID"][1] = {} +defs["igGetActiveID"][1]["args"] = "()" +defs["igGetActiveID"][1]["argsT"] = {} +defs["igGetActiveID"][1]["argsoriginal"] = "()" +defs["igGetActiveID"][1]["call_args"] = "()" +defs["igGetActiveID"][1]["cimguiname"] = "igGetActiveID" +defs["igGetActiveID"][1]["defaults"] = {} +defs["igGetActiveID"][1]["funcname"] = "GetActiveID" +defs["igGetActiveID"][1]["location"] = "imgui_internal:3023" +defs["igGetActiveID"][1]["namespace"] = "ImGui" +defs["igGetActiveID"][1]["ov_cimguiname"] = "igGetActiveID" +defs["igGetActiveID"][1]["ret"] = "ImGuiID" +defs["igGetActiveID"][1]["signature"] = "()" +defs["igGetActiveID"][1]["stname"] = "" +defs["igGetActiveID"]["()"] = defs["igGetActiveID"][1] defs["igGetAllocatorFunctions"] = {} defs["igGetAllocatorFunctions"][1] = {} defs["igGetAllocatorFunctions"][1]["args"] = "(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)" @@ -8967,6 +16497,28 @@ defs["igGetColumnIndex"][1]["ret"] = "int" defs["igGetColumnIndex"][1]["signature"] = "()" defs["igGetColumnIndex"][1]["stname"] = "" defs["igGetColumnIndex"]["()"] = defs["igGetColumnIndex"][1] +defs["igGetColumnNormFromOffset"] = {} +defs["igGetColumnNormFromOffset"][1] = {} +defs["igGetColumnNormFromOffset"][1]["args"] = "(const ImGuiOldColumns* columns,float offset)" +defs["igGetColumnNormFromOffset"][1]["argsT"] = {} +defs["igGetColumnNormFromOffset"][1]["argsT"][1] = {} +defs["igGetColumnNormFromOffset"][1]["argsT"][1]["name"] = "columns" +defs["igGetColumnNormFromOffset"][1]["argsT"][1]["type"] = "const ImGuiOldColumns*" +defs["igGetColumnNormFromOffset"][1]["argsT"][2] = {} +defs["igGetColumnNormFromOffset"][1]["argsT"][2]["name"] = "offset" +defs["igGetColumnNormFromOffset"][1]["argsT"][2]["type"] = "float" +defs["igGetColumnNormFromOffset"][1]["argsoriginal"] = "(const ImGuiOldColumns* columns,float offset)" +defs["igGetColumnNormFromOffset"][1]["call_args"] = "(columns,offset)" +defs["igGetColumnNormFromOffset"][1]["cimguiname"] = "igGetColumnNormFromOffset" +defs["igGetColumnNormFromOffset"][1]["defaults"] = {} +defs["igGetColumnNormFromOffset"][1]["funcname"] = "GetColumnNormFromOffset" +defs["igGetColumnNormFromOffset"][1]["location"] = "imgui_internal:3253" +defs["igGetColumnNormFromOffset"][1]["namespace"] = "ImGui" +defs["igGetColumnNormFromOffset"][1]["ov_cimguiname"] = "igGetColumnNormFromOffset" +defs["igGetColumnNormFromOffset"][1]["ret"] = "float" +defs["igGetColumnNormFromOffset"][1]["signature"] = "(const ImGuiOldColumns*,float)" +defs["igGetColumnNormFromOffset"][1]["stname"] = "" +defs["igGetColumnNormFromOffset"]["(const ImGuiOldColumns*,float)"] = defs["igGetColumnNormFromOffset"][1] defs["igGetColumnOffset"] = {} defs["igGetColumnOffset"][1] = {} defs["igGetColumnOffset"][1]["args"] = "(int column_index)" @@ -8987,6 +16539,28 @@ defs["igGetColumnOffset"][1]["ret"] = "float" defs["igGetColumnOffset"][1]["signature"] = "(int)" defs["igGetColumnOffset"][1]["stname"] = "" defs["igGetColumnOffset"]["(int)"] = defs["igGetColumnOffset"][1] +defs["igGetColumnOffsetFromNorm"] = {} +defs["igGetColumnOffsetFromNorm"][1] = {} +defs["igGetColumnOffsetFromNorm"][1]["args"] = "(const ImGuiOldColumns* columns,float offset_norm)" +defs["igGetColumnOffsetFromNorm"][1]["argsT"] = {} +defs["igGetColumnOffsetFromNorm"][1]["argsT"][1] = {} +defs["igGetColumnOffsetFromNorm"][1]["argsT"][1]["name"] = "columns" +defs["igGetColumnOffsetFromNorm"][1]["argsT"][1]["type"] = "const ImGuiOldColumns*" +defs["igGetColumnOffsetFromNorm"][1]["argsT"][2] = {} +defs["igGetColumnOffsetFromNorm"][1]["argsT"][2]["name"] = "offset_norm" +defs["igGetColumnOffsetFromNorm"][1]["argsT"][2]["type"] = "float" +defs["igGetColumnOffsetFromNorm"][1]["argsoriginal"] = "(const ImGuiOldColumns* columns,float offset_norm)" +defs["igGetColumnOffsetFromNorm"][1]["call_args"] = "(columns,offset_norm)" +defs["igGetColumnOffsetFromNorm"][1]["cimguiname"] = "igGetColumnOffsetFromNorm" +defs["igGetColumnOffsetFromNorm"][1]["defaults"] = {} +defs["igGetColumnOffsetFromNorm"][1]["funcname"] = "GetColumnOffsetFromNorm" +defs["igGetColumnOffsetFromNorm"][1]["location"] = "imgui_internal:3252" +defs["igGetColumnOffsetFromNorm"][1]["namespace"] = "ImGui" +defs["igGetColumnOffsetFromNorm"][1]["ov_cimguiname"] = "igGetColumnOffsetFromNorm" +defs["igGetColumnOffsetFromNorm"][1]["ret"] = "float" +defs["igGetColumnOffsetFromNorm"][1]["signature"] = "(const ImGuiOldColumns*,float)" +defs["igGetColumnOffsetFromNorm"][1]["stname"] = "" +defs["igGetColumnOffsetFromNorm"]["(const ImGuiOldColumns*,float)"] = defs["igGetColumnOffsetFromNorm"][1] defs["igGetColumnWidth"] = {} defs["igGetColumnWidth"][1] = {} defs["igGetColumnWidth"][1]["args"] = "(int column_index)" @@ -9023,6 +16597,28 @@ defs["igGetColumnsCount"][1]["ret"] = "int" defs["igGetColumnsCount"][1]["signature"] = "()" defs["igGetColumnsCount"][1]["stname"] = "" defs["igGetColumnsCount"]["()"] = defs["igGetColumnsCount"][1] +defs["igGetColumnsID"] = {} +defs["igGetColumnsID"][1] = {} +defs["igGetColumnsID"][1]["args"] = "(const char* str_id,int count)" +defs["igGetColumnsID"][1]["argsT"] = {} +defs["igGetColumnsID"][1]["argsT"][1] = {} +defs["igGetColumnsID"][1]["argsT"][1]["name"] = "str_id" +defs["igGetColumnsID"][1]["argsT"][1]["type"] = "const char*" +defs["igGetColumnsID"][1]["argsT"][2] = {} +defs["igGetColumnsID"][1]["argsT"][2]["name"] = "count" +defs["igGetColumnsID"][1]["argsT"][2]["type"] = "int" +defs["igGetColumnsID"][1]["argsoriginal"] = "(const char* str_id,int count)" +defs["igGetColumnsID"][1]["call_args"] = "(str_id,count)" +defs["igGetColumnsID"][1]["cimguiname"] = "igGetColumnsID" +defs["igGetColumnsID"][1]["defaults"] = {} +defs["igGetColumnsID"][1]["funcname"] = "GetColumnsID" +defs["igGetColumnsID"][1]["location"] = "imgui_internal:3250" +defs["igGetColumnsID"][1]["namespace"] = "ImGui" +defs["igGetColumnsID"][1]["ov_cimguiname"] = "igGetColumnsID" +defs["igGetColumnsID"][1]["ret"] = "ImGuiID" +defs["igGetColumnsID"][1]["signature"] = "(const char*,int)" +defs["igGetColumnsID"][1]["stname"] = "" +defs["igGetColumnsID"]["(const char*,int)"] = defs["igGetColumnsID"][1] defs["igGetContentRegionAvail"] = {} defs["igGetContentRegionAvail"][1] = {} defs["igGetContentRegionAvail"][1]["args"] = "(ImVec2 *pOut)" @@ -9063,6 +16659,26 @@ defs["igGetContentRegionMax"][1]["ret"] = "void" defs["igGetContentRegionMax"][1]["signature"] = "()" defs["igGetContentRegionMax"][1]["stname"] = "" defs["igGetContentRegionMax"]["()"] = defs["igGetContentRegionMax"][1] +defs["igGetContentRegionMaxAbs"] = {} +defs["igGetContentRegionMaxAbs"][1] = {} +defs["igGetContentRegionMaxAbs"][1]["args"] = "(ImVec2 *pOut)" +defs["igGetContentRegionMaxAbs"][1]["argsT"] = {} +defs["igGetContentRegionMaxAbs"][1]["argsT"][1] = {} +defs["igGetContentRegionMaxAbs"][1]["argsT"][1]["name"] = "pOut" +defs["igGetContentRegionMaxAbs"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetContentRegionMaxAbs"][1]["argsoriginal"] = "()" +defs["igGetContentRegionMaxAbs"][1]["call_args"] = "()" +defs["igGetContentRegionMaxAbs"][1]["cimguiname"] = "igGetContentRegionMaxAbs" +defs["igGetContentRegionMaxAbs"][1]["defaults"] = {} +defs["igGetContentRegionMaxAbs"][1]["funcname"] = "GetContentRegionMaxAbs" +defs["igGetContentRegionMaxAbs"][1]["location"] = "imgui_internal:3046" +defs["igGetContentRegionMaxAbs"][1]["namespace"] = "ImGui" +defs["igGetContentRegionMaxAbs"][1]["nonUDT"] = 1 +defs["igGetContentRegionMaxAbs"][1]["ov_cimguiname"] = "igGetContentRegionMaxAbs" +defs["igGetContentRegionMaxAbs"][1]["ret"] = "void" +defs["igGetContentRegionMaxAbs"][1]["signature"] = "()" +defs["igGetContentRegionMaxAbs"][1]["stname"] = "" +defs["igGetContentRegionMaxAbs"]["()"] = defs["igGetContentRegionMaxAbs"][1] defs["igGetCurrentContext"] = {} defs["igGetCurrentContext"][1] = {} defs["igGetCurrentContext"][1]["args"] = "()" @@ -9079,6 +16695,70 @@ defs["igGetCurrentContext"][1]["ret"] = "ImGuiContext*" defs["igGetCurrentContext"][1]["signature"] = "()" defs["igGetCurrentContext"][1]["stname"] = "" defs["igGetCurrentContext"]["()"] = defs["igGetCurrentContext"][1] +defs["igGetCurrentFocusScope"] = {} +defs["igGetCurrentFocusScope"][1] = {} +defs["igGetCurrentFocusScope"][1]["args"] = "()" +defs["igGetCurrentFocusScope"][1]["argsT"] = {} +defs["igGetCurrentFocusScope"][1]["argsoriginal"] = "()" +defs["igGetCurrentFocusScope"][1]["call_args"] = "()" +defs["igGetCurrentFocusScope"][1]["cimguiname"] = "igGetCurrentFocusScope" +defs["igGetCurrentFocusScope"][1]["defaults"] = {} +defs["igGetCurrentFocusScope"][1]["funcname"] = "GetCurrentFocusScope" +defs["igGetCurrentFocusScope"][1]["location"] = "imgui_internal:3234" +defs["igGetCurrentFocusScope"][1]["namespace"] = "ImGui" +defs["igGetCurrentFocusScope"][1]["ov_cimguiname"] = "igGetCurrentFocusScope" +defs["igGetCurrentFocusScope"][1]["ret"] = "ImGuiID" +defs["igGetCurrentFocusScope"][1]["signature"] = "()" +defs["igGetCurrentFocusScope"][1]["stname"] = "" +defs["igGetCurrentFocusScope"]["()"] = defs["igGetCurrentFocusScope"][1] +defs["igGetCurrentTable"] = {} +defs["igGetCurrentTable"][1] = {} +defs["igGetCurrentTable"][1]["args"] = "()" +defs["igGetCurrentTable"][1]["argsT"] = {} +defs["igGetCurrentTable"][1]["argsoriginal"] = "()" +defs["igGetCurrentTable"][1]["call_args"] = "()" +defs["igGetCurrentTable"][1]["cimguiname"] = "igGetCurrentTable" +defs["igGetCurrentTable"][1]["defaults"] = {} +defs["igGetCurrentTable"][1]["funcname"] = "GetCurrentTable" +defs["igGetCurrentTable"][1]["location"] = "imgui_internal:3265" +defs["igGetCurrentTable"][1]["namespace"] = "ImGui" +defs["igGetCurrentTable"][1]["ov_cimguiname"] = "igGetCurrentTable" +defs["igGetCurrentTable"][1]["ret"] = "ImGuiTable*" +defs["igGetCurrentTable"][1]["signature"] = "()" +defs["igGetCurrentTable"][1]["stname"] = "" +defs["igGetCurrentTable"]["()"] = defs["igGetCurrentTable"][1] +defs["igGetCurrentWindow"] = {} +defs["igGetCurrentWindow"][1] = {} +defs["igGetCurrentWindow"][1]["args"] = "()" +defs["igGetCurrentWindow"][1]["argsT"] = {} +defs["igGetCurrentWindow"][1]["argsoriginal"] = "()" +defs["igGetCurrentWindow"][1]["call_args"] = "()" +defs["igGetCurrentWindow"][1]["cimguiname"] = "igGetCurrentWindow" +defs["igGetCurrentWindow"][1]["defaults"] = {} +defs["igGetCurrentWindow"][1]["funcname"] = "GetCurrentWindow" +defs["igGetCurrentWindow"][1]["location"] = "imgui_internal:2933" +defs["igGetCurrentWindow"][1]["namespace"] = "ImGui" +defs["igGetCurrentWindow"][1]["ov_cimguiname"] = "igGetCurrentWindow" +defs["igGetCurrentWindow"][1]["ret"] = "ImGuiWindow*" +defs["igGetCurrentWindow"][1]["signature"] = "()" +defs["igGetCurrentWindow"][1]["stname"] = "" +defs["igGetCurrentWindow"]["()"] = defs["igGetCurrentWindow"][1] +defs["igGetCurrentWindowRead"] = {} +defs["igGetCurrentWindowRead"][1] = {} +defs["igGetCurrentWindowRead"][1]["args"] = "()" +defs["igGetCurrentWindowRead"][1]["argsT"] = {} +defs["igGetCurrentWindowRead"][1]["argsoriginal"] = "()" +defs["igGetCurrentWindowRead"][1]["call_args"] = "()" +defs["igGetCurrentWindowRead"][1]["cimguiname"] = "igGetCurrentWindowRead" +defs["igGetCurrentWindowRead"][1]["defaults"] = {} +defs["igGetCurrentWindowRead"][1]["funcname"] = "GetCurrentWindowRead" +defs["igGetCurrentWindowRead"][1]["location"] = "imgui_internal:2932" +defs["igGetCurrentWindowRead"][1]["namespace"] = "ImGui" +defs["igGetCurrentWindowRead"][1]["ov_cimguiname"] = "igGetCurrentWindowRead" +defs["igGetCurrentWindowRead"][1]["ret"] = "ImGuiWindow*" +defs["igGetCurrentWindowRead"][1]["signature"] = "()" +defs["igGetCurrentWindowRead"][1]["stname"] = "" +defs["igGetCurrentWindowRead"]["()"] = defs["igGetCurrentWindowRead"][1] defs["igGetCursorPos"] = {} defs["igGetCursorPos"][1] = {} defs["igGetCursorPos"][1]["args"] = "(ImVec2 *pOut)" @@ -9171,6 +16851,22 @@ defs["igGetCursorStartPos"][1]["ret"] = "void" defs["igGetCursorStartPos"][1]["signature"] = "()" defs["igGetCursorStartPos"][1]["stname"] = "" defs["igGetCursorStartPos"]["()"] = defs["igGetCursorStartPos"][1] +defs["igGetDefaultFont"] = {} +defs["igGetDefaultFont"][1] = {} +defs["igGetDefaultFont"][1]["args"] = "()" +defs["igGetDefaultFont"][1]["argsT"] = {} +defs["igGetDefaultFont"][1]["argsoriginal"] = "()" +defs["igGetDefaultFont"][1]["call_args"] = "()" +defs["igGetDefaultFont"][1]["cimguiname"] = "igGetDefaultFont" +defs["igGetDefaultFont"][1]["defaults"] = {} +defs["igGetDefaultFont"][1]["funcname"] = "GetDefaultFont" +defs["igGetDefaultFont"][1]["location"] = "imgui_internal:2961" +defs["igGetDefaultFont"][1]["namespace"] = "ImGui" +defs["igGetDefaultFont"][1]["ov_cimguiname"] = "igGetDefaultFont" +defs["igGetDefaultFont"][1]["ret"] = "ImFont*" +defs["igGetDefaultFont"][1]["signature"] = "()" +defs["igGetDefaultFont"][1]["stname"] = "" +defs["igGetDefaultFont"]["()"] = defs["igGetDefaultFont"][1] defs["igGetDragDropPayload"] = {} defs["igGetDragDropPayload"][1] = {} defs["igGetDragDropPayload"][1]["args"] = "()" @@ -9219,6 +16915,22 @@ defs["igGetDrawListSharedData"][1]["ret"] = "ImDrawListSharedData*" defs["igGetDrawListSharedData"][1]["signature"] = "()" defs["igGetDrawListSharedData"][1]["stname"] = "" defs["igGetDrawListSharedData"]["()"] = defs["igGetDrawListSharedData"][1] +defs["igGetFocusID"] = {} +defs["igGetFocusID"][1] = {} +defs["igGetFocusID"][1]["args"] = "()" +defs["igGetFocusID"][1]["argsT"] = {} +defs["igGetFocusID"][1]["argsoriginal"] = "()" +defs["igGetFocusID"][1]["call_args"] = "()" +defs["igGetFocusID"][1]["cimguiname"] = "igGetFocusID" +defs["igGetFocusID"][1]["defaults"] = {} +defs["igGetFocusID"][1]["funcname"] = "GetFocusID" +defs["igGetFocusID"][1]["location"] = "imgui_internal:3024" +defs["igGetFocusID"][1]["namespace"] = "ImGui" +defs["igGetFocusID"][1]["ov_cimguiname"] = "igGetFocusID" +defs["igGetFocusID"][1]["ret"] = "ImGuiID" +defs["igGetFocusID"][1]["signature"] = "()" +defs["igGetFocusID"][1]["stname"] = "" +defs["igGetFocusID"]["()"] = defs["igGetFocusID"][1] defs["igGetFont"] = {} defs["igGetFont"][1] = {} defs["igGetFont"][1]["args"] = "()" @@ -9303,8 +17015,26 @@ defs["igGetForegroundDrawList"][2]["ov_cimguiname"] = "igGetForegroundDrawList_V defs["igGetForegroundDrawList"][2]["ret"] = "ImDrawList*" defs["igGetForegroundDrawList"][2]["signature"] = "(ImGuiViewport*)" defs["igGetForegroundDrawList"][2]["stname"] = "" +defs["igGetForegroundDrawList"][3] = {} +defs["igGetForegroundDrawList"][3]["args"] = "(ImGuiWindow* window)" +defs["igGetForegroundDrawList"][3]["argsT"] = {} +defs["igGetForegroundDrawList"][3]["argsT"][1] = {} +defs["igGetForegroundDrawList"][3]["argsT"][1]["name"] = "window" +defs["igGetForegroundDrawList"][3]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igGetForegroundDrawList"][3]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igGetForegroundDrawList"][3]["call_args"] = "(window)" +defs["igGetForegroundDrawList"][3]["cimguiname"] = "igGetForegroundDrawList" +defs["igGetForegroundDrawList"][3]["defaults"] = {} +defs["igGetForegroundDrawList"][3]["funcname"] = "GetForegroundDrawList" +defs["igGetForegroundDrawList"][3]["location"] = "imgui_internal:2962" +defs["igGetForegroundDrawList"][3]["namespace"] = "ImGui" +defs["igGetForegroundDrawList"][3]["ov_cimguiname"] = "igGetForegroundDrawList_WindowPtr" +defs["igGetForegroundDrawList"][3]["ret"] = "ImDrawList*" +defs["igGetForegroundDrawList"][3]["signature"] = "(ImGuiWindow*)" +defs["igGetForegroundDrawList"][3]["stname"] = "" defs["igGetForegroundDrawList"]["()"] = defs["igGetForegroundDrawList"][1] defs["igGetForegroundDrawList"]["(ImGuiViewport*)"] = defs["igGetForegroundDrawList"][2] +defs["igGetForegroundDrawList"]["(ImGuiWindow*)"] = defs["igGetForegroundDrawList"][3] defs["igGetFrameCount"] = {} defs["igGetFrameCount"][1] = {} defs["igGetFrameCount"][1]["args"] = "()" @@ -9353,6 +17083,22 @@ defs["igGetFrameHeightWithSpacing"][1]["ret"] = "float" defs["igGetFrameHeightWithSpacing"][1]["signature"] = "()" defs["igGetFrameHeightWithSpacing"][1]["stname"] = "" defs["igGetFrameHeightWithSpacing"]["()"] = defs["igGetFrameHeightWithSpacing"][1] +defs["igGetHoveredID"] = {} +defs["igGetHoveredID"][1] = {} +defs["igGetHoveredID"][1]["args"] = "()" +defs["igGetHoveredID"][1]["argsT"] = {} +defs["igGetHoveredID"][1]["argsoriginal"] = "()" +defs["igGetHoveredID"][1]["call_args"] = "()" +defs["igGetHoveredID"][1]["cimguiname"] = "igGetHoveredID" +defs["igGetHoveredID"][1]["defaults"] = {} +defs["igGetHoveredID"][1]["funcname"] = "GetHoveredID" +defs["igGetHoveredID"][1]["location"] = "imgui_internal:3028" +defs["igGetHoveredID"][1]["namespace"] = "ImGui" +defs["igGetHoveredID"][1]["ov_cimguiname"] = "igGetHoveredID" +defs["igGetHoveredID"][1]["ret"] = "ImGuiID" +defs["igGetHoveredID"][1]["signature"] = "()" +defs["igGetHoveredID"][1]["stname"] = "" +defs["igGetHoveredID"]["()"] = defs["igGetHoveredID"][1] defs["igGetID"] = {} defs["igGetID"][1] = {} defs["igGetID"][1]["args"] = "(const char* str_id)" @@ -9411,6 +17157,31 @@ defs["igGetID"][3]["stname"] = "" defs["igGetID"]["(const char*)"] = defs["igGetID"][1] defs["igGetID"]["(const char*,const char*)"] = defs["igGetID"][2] defs["igGetID"]["(const void*)"] = defs["igGetID"][3] +defs["igGetIDWithSeed"] = {} +defs["igGetIDWithSeed"][1] = {} +defs["igGetIDWithSeed"][1]["args"] = "(const char* str_id_begin,const char* str_id_end,ImGuiID seed)" +defs["igGetIDWithSeed"][1]["argsT"] = {} +defs["igGetIDWithSeed"][1]["argsT"][1] = {} +defs["igGetIDWithSeed"][1]["argsT"][1]["name"] = "str_id_begin" +defs["igGetIDWithSeed"][1]["argsT"][1]["type"] = "const char*" +defs["igGetIDWithSeed"][1]["argsT"][2] = {} +defs["igGetIDWithSeed"][1]["argsT"][2]["name"] = "str_id_end" +defs["igGetIDWithSeed"][1]["argsT"][2]["type"] = "const char*" +defs["igGetIDWithSeed"][1]["argsT"][3] = {} +defs["igGetIDWithSeed"][1]["argsT"][3]["name"] = "seed" +defs["igGetIDWithSeed"][1]["argsT"][3]["type"] = "ImGuiID" +defs["igGetIDWithSeed"][1]["argsoriginal"] = "(const char* str_id_begin,const char* str_id_end,ImGuiID seed)" +defs["igGetIDWithSeed"][1]["call_args"] = "(str_id_begin,str_id_end,seed)" +defs["igGetIDWithSeed"][1]["cimguiname"] = "igGetIDWithSeed" +defs["igGetIDWithSeed"][1]["defaults"] = {} +defs["igGetIDWithSeed"][1]["funcname"] = "GetIDWithSeed" +defs["igGetIDWithSeed"][1]["location"] = "imgui_internal:3033" +defs["igGetIDWithSeed"][1]["namespace"] = "ImGui" +defs["igGetIDWithSeed"][1]["ov_cimguiname"] = "igGetIDWithSeed" +defs["igGetIDWithSeed"][1]["ret"] = "ImGuiID" +defs["igGetIDWithSeed"][1]["signature"] = "(const char*,const char*,ImGuiID)" +defs["igGetIDWithSeed"][1]["stname"] = "" +defs["igGetIDWithSeed"]["(const char*,const char*,ImGuiID)"] = defs["igGetIDWithSeed"][1] defs["igGetIO"] = {} defs["igGetIO"][1] = {} defs["igGetIO"][1]["args"] = "()" @@ -9428,6 +17199,57 @@ defs["igGetIO"][1]["retref"] = "&" defs["igGetIO"][1]["signature"] = "()" defs["igGetIO"][1]["stname"] = "" defs["igGetIO"]["()"] = defs["igGetIO"][1] +defs["igGetInputTextState"] = {} +defs["igGetInputTextState"][1] = {} +defs["igGetInputTextState"][1]["args"] = "(ImGuiID id)" +defs["igGetInputTextState"][1]["argsT"] = {} +defs["igGetInputTextState"][1]["argsT"][1] = {} +defs["igGetInputTextState"][1]["argsT"][1]["name"] = "id" +defs["igGetInputTextState"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igGetInputTextState"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igGetInputTextState"][1]["call_args"] = "(id)" +defs["igGetInputTextState"][1]["cimguiname"] = "igGetInputTextState" +defs["igGetInputTextState"][1]["defaults"] = {} +defs["igGetInputTextState"][1]["funcname"] = "GetInputTextState" +defs["igGetInputTextState"][1]["location"] = "imgui_internal:3399" +defs["igGetInputTextState"][1]["namespace"] = "ImGui" +defs["igGetInputTextState"][1]["ov_cimguiname"] = "igGetInputTextState" +defs["igGetInputTextState"][1]["ret"] = "ImGuiInputTextState*" +defs["igGetInputTextState"][1]["signature"] = "(ImGuiID)" +defs["igGetInputTextState"][1]["stname"] = "" +defs["igGetInputTextState"]["(ImGuiID)"] = defs["igGetInputTextState"][1] +defs["igGetItemFlags"] = {} +defs["igGetItemFlags"][1] = {} +defs["igGetItemFlags"][1]["args"] = "()" +defs["igGetItemFlags"][1]["argsT"] = {} +defs["igGetItemFlags"][1]["argsoriginal"] = "()" +defs["igGetItemFlags"][1]["call_args"] = "()" +defs["igGetItemFlags"][1]["cimguiname"] = "igGetItemFlags" +defs["igGetItemFlags"][1]["defaults"] = {} +defs["igGetItemFlags"][1]["funcname"] = "GetItemFlags" +defs["igGetItemFlags"][1]["location"] = "imgui_internal:3022" +defs["igGetItemFlags"][1]["namespace"] = "ImGui" +defs["igGetItemFlags"][1]["ov_cimguiname"] = "igGetItemFlags" +defs["igGetItemFlags"][1]["ret"] = "ImGuiItemFlags" +defs["igGetItemFlags"][1]["signature"] = "()" +defs["igGetItemFlags"][1]["stname"] = "" +defs["igGetItemFlags"]["()"] = defs["igGetItemFlags"][1] +defs["igGetItemID"] = {} +defs["igGetItemID"][1] = {} +defs["igGetItemID"][1]["args"] = "()" +defs["igGetItemID"][1]["argsT"] = {} +defs["igGetItemID"][1]["argsoriginal"] = "()" +defs["igGetItemID"][1]["call_args"] = "()" +defs["igGetItemID"][1]["cimguiname"] = "igGetItemID" +defs["igGetItemID"][1]["defaults"] = {} +defs["igGetItemID"][1]["funcname"] = "GetItemID" +defs["igGetItemID"][1]["location"] = "imgui_internal:3020" +defs["igGetItemID"][1]["namespace"] = "ImGui" +defs["igGetItemID"][1]["ov_cimguiname"] = "igGetItemID" +defs["igGetItemID"][1]["ret"] = "ImGuiID" +defs["igGetItemID"][1]["signature"] = "()" +defs["igGetItemID"][1]["stname"] = "" +defs["igGetItemID"]["()"] = defs["igGetItemID"][1] defs["igGetItemRectMax"] = {} defs["igGetItemRectMax"][1] = {} defs["igGetItemRectMax"][1]["args"] = "(ImVec2 *pOut)" @@ -9488,6 +17310,66 @@ defs["igGetItemRectSize"][1]["ret"] = "void" defs["igGetItemRectSize"][1]["signature"] = "()" defs["igGetItemRectSize"][1]["stname"] = "" defs["igGetItemRectSize"]["()"] = defs["igGetItemRectSize"][1] +defs["igGetItemStatusFlags"] = {} +defs["igGetItemStatusFlags"][1] = {} +defs["igGetItemStatusFlags"][1]["args"] = "()" +defs["igGetItemStatusFlags"][1]["argsT"] = {} +defs["igGetItemStatusFlags"][1]["argsoriginal"] = "()" +defs["igGetItemStatusFlags"][1]["call_args"] = "()" +defs["igGetItemStatusFlags"][1]["cimguiname"] = "igGetItemStatusFlags" +defs["igGetItemStatusFlags"][1]["defaults"] = {} +defs["igGetItemStatusFlags"][1]["funcname"] = "GetItemStatusFlags" +defs["igGetItemStatusFlags"][1]["location"] = "imgui_internal:3021" +defs["igGetItemStatusFlags"][1]["namespace"] = "ImGui" +defs["igGetItemStatusFlags"][1]["ov_cimguiname"] = "igGetItemStatusFlags" +defs["igGetItemStatusFlags"][1]["ret"] = "ImGuiItemStatusFlags" +defs["igGetItemStatusFlags"][1]["signature"] = "()" +defs["igGetItemStatusFlags"][1]["stname"] = "" +defs["igGetItemStatusFlags"]["()"] = defs["igGetItemStatusFlags"][1] +defs["igGetKeyChordName"] = {} +defs["igGetKeyChordName"][1] = {} +defs["igGetKeyChordName"][1]["args"] = "(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size)" +defs["igGetKeyChordName"][1]["argsT"] = {} +defs["igGetKeyChordName"][1]["argsT"][1] = {} +defs["igGetKeyChordName"][1]["argsT"][1]["name"] = "key_chord" +defs["igGetKeyChordName"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igGetKeyChordName"][1]["argsT"][2] = {} +defs["igGetKeyChordName"][1]["argsT"][2]["name"] = "out_buf" +defs["igGetKeyChordName"][1]["argsT"][2]["type"] = "char*" +defs["igGetKeyChordName"][1]["argsT"][3] = {} +defs["igGetKeyChordName"][1]["argsT"][3]["name"] = "out_buf_size" +defs["igGetKeyChordName"][1]["argsT"][3]["type"] = "int" +defs["igGetKeyChordName"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size)" +defs["igGetKeyChordName"][1]["call_args"] = "(key_chord,out_buf,out_buf_size)" +defs["igGetKeyChordName"][1]["cimguiname"] = "igGetKeyChordName" +defs["igGetKeyChordName"][1]["defaults"] = {} +defs["igGetKeyChordName"][1]["funcname"] = "GetKeyChordName" +defs["igGetKeyChordName"][1]["location"] = "imgui_internal:3117" +defs["igGetKeyChordName"][1]["namespace"] = "ImGui" +defs["igGetKeyChordName"][1]["ov_cimguiname"] = "igGetKeyChordName" +defs["igGetKeyChordName"][1]["ret"] = "void" +defs["igGetKeyChordName"][1]["signature"] = "(ImGuiKeyChord,char*,int)" +defs["igGetKeyChordName"][1]["stname"] = "" +defs["igGetKeyChordName"]["(ImGuiKeyChord,char*,int)"] = defs["igGetKeyChordName"][1] +defs["igGetKeyData"] = {} +defs["igGetKeyData"][1] = {} +defs["igGetKeyData"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyData"][1]["argsT"] = {} +defs["igGetKeyData"][1]["argsT"][1] = {} +defs["igGetKeyData"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyData"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyData"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyData"][1]["call_args"] = "(key)" +defs["igGetKeyData"][1]["cimguiname"] = "igGetKeyData" +defs["igGetKeyData"][1]["defaults"] = {} +defs["igGetKeyData"][1]["funcname"] = "GetKeyData" +defs["igGetKeyData"][1]["location"] = "imgui_internal:3116" +defs["igGetKeyData"][1]["namespace"] = "ImGui" +defs["igGetKeyData"][1]["ov_cimguiname"] = "igGetKeyData" +defs["igGetKeyData"][1]["ret"] = "ImGuiKeyData*" +defs["igGetKeyData"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyData"][1]["stname"] = "" +defs["igGetKeyData"]["(ImGuiKey)"] = defs["igGetKeyData"][1] defs["igGetKeyIndex"] = {} defs["igGetKeyIndex"][1] = {} defs["igGetKeyIndex"][1]["args"] = "(ImGuiKey key)" @@ -9526,6 +17408,44 @@ defs["igGetKeyName"][1]["ret"] = "const char*" defs["igGetKeyName"][1]["signature"] = "(ImGuiKey)" defs["igGetKeyName"][1]["stname"] = "" defs["igGetKeyName"]["(ImGuiKey)"] = defs["igGetKeyName"][1] +defs["igGetKeyOwner"] = {} +defs["igGetKeyOwner"][1] = {} +defs["igGetKeyOwner"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyOwner"][1]["argsT"] = {} +defs["igGetKeyOwner"][1]["argsT"][1] = {} +defs["igGetKeyOwner"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyOwner"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyOwner"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyOwner"][1]["call_args"] = "(key)" +defs["igGetKeyOwner"][1]["cimguiname"] = "igGetKeyOwner" +defs["igGetKeyOwner"][1]["defaults"] = {} +defs["igGetKeyOwner"][1]["funcname"] = "GetKeyOwner" +defs["igGetKeyOwner"][1]["location"] = "imgui_internal:3138" +defs["igGetKeyOwner"][1]["namespace"] = "ImGui" +defs["igGetKeyOwner"][1]["ov_cimguiname"] = "igGetKeyOwner" +defs["igGetKeyOwner"][1]["ret"] = "ImGuiID" +defs["igGetKeyOwner"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyOwner"][1]["stname"] = "" +defs["igGetKeyOwner"]["(ImGuiKey)"] = defs["igGetKeyOwner"][1] +defs["igGetKeyOwnerData"] = {} +defs["igGetKeyOwnerData"][1] = {} +defs["igGetKeyOwnerData"][1]["args"] = "(ImGuiKey key)" +defs["igGetKeyOwnerData"][1]["argsT"] = {} +defs["igGetKeyOwnerData"][1]["argsT"][1] = {} +defs["igGetKeyOwnerData"][1]["argsT"][1]["name"] = "key" +defs["igGetKeyOwnerData"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igGetKeyOwnerData"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igGetKeyOwnerData"][1]["call_args"] = "(key)" +defs["igGetKeyOwnerData"][1]["cimguiname"] = "igGetKeyOwnerData" +defs["igGetKeyOwnerData"][1]["defaults"] = {} +defs["igGetKeyOwnerData"][1]["funcname"] = "GetKeyOwnerData" +defs["igGetKeyOwnerData"][1]["location"] = "imgui_internal:3142" +defs["igGetKeyOwnerData"][1]["namespace"] = "ImGui" +defs["igGetKeyOwnerData"][1]["ov_cimguiname"] = "igGetKeyOwnerData" +defs["igGetKeyOwnerData"][1]["ret"] = "ImGuiKeyOwnerData*" +defs["igGetKeyOwnerData"][1]["signature"] = "(ImGuiKey)" +defs["igGetKeyOwnerData"][1]["stname"] = "" +defs["igGetKeyOwnerData"]["(ImGuiKey)"] = defs["igGetKeyOwnerData"][1] defs["igGetKeyPressedAmount"] = {} defs["igGetKeyPressedAmount"][1] = {} defs["igGetKeyPressedAmount"][1]["args"] = "(ImGuiKey key,float repeat_delay,float rate)" @@ -9551,6 +17471,38 @@ defs["igGetKeyPressedAmount"][1]["ret"] = "int" defs["igGetKeyPressedAmount"][1]["signature"] = "(ImGuiKey,float,float)" defs["igGetKeyPressedAmount"][1]["stname"] = "" defs["igGetKeyPressedAmount"]["(ImGuiKey,float,float)"] = defs["igGetKeyPressedAmount"][1] +defs["igGetKeyVector2d"] = {} +defs["igGetKeyVector2d"][1] = {} +defs["igGetKeyVector2d"][1]["args"] = "(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)" +defs["igGetKeyVector2d"][1]["argsT"] = {} +defs["igGetKeyVector2d"][1]["argsT"][1] = {} +defs["igGetKeyVector2d"][1]["argsT"][1]["name"] = "pOut" +defs["igGetKeyVector2d"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igGetKeyVector2d"][1]["argsT"][2] = {} +defs["igGetKeyVector2d"][1]["argsT"][2]["name"] = "key_left" +defs["igGetKeyVector2d"][1]["argsT"][2]["type"] = "ImGuiKey" +defs["igGetKeyVector2d"][1]["argsT"][3] = {} +defs["igGetKeyVector2d"][1]["argsT"][3]["name"] = "key_right" +defs["igGetKeyVector2d"][1]["argsT"][3]["type"] = "ImGuiKey" +defs["igGetKeyVector2d"][1]["argsT"][4] = {} +defs["igGetKeyVector2d"][1]["argsT"][4]["name"] = "key_up" +defs["igGetKeyVector2d"][1]["argsT"][4]["type"] = "ImGuiKey" +defs["igGetKeyVector2d"][1]["argsT"][5] = {} +defs["igGetKeyVector2d"][1]["argsT"][5]["name"] = "key_down" +defs["igGetKeyVector2d"][1]["argsT"][5]["type"] = "ImGuiKey" +defs["igGetKeyVector2d"][1]["argsoriginal"] = "(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)" +defs["igGetKeyVector2d"][1]["call_args"] = "(key_left,key_right,key_up,key_down)" +defs["igGetKeyVector2d"][1]["cimguiname"] = "igGetKeyVector2d" +defs["igGetKeyVector2d"][1]["defaults"] = {} +defs["igGetKeyVector2d"][1]["funcname"] = "GetKeyVector2d" +defs["igGetKeyVector2d"][1]["location"] = "imgui_internal:3120" +defs["igGetKeyVector2d"][1]["namespace"] = "ImGui" +defs["igGetKeyVector2d"][1]["nonUDT"] = 1 +defs["igGetKeyVector2d"][1]["ov_cimguiname"] = "igGetKeyVector2d" +defs["igGetKeyVector2d"][1]["ret"] = "void" +defs["igGetKeyVector2d"][1]["signature"] = "(ImGuiKey,ImGuiKey,ImGuiKey,ImGuiKey)" +defs["igGetKeyVector2d"][1]["stname"] = "" +defs["igGetKeyVector2d"]["(ImGuiKey,ImGuiKey,ImGuiKey,ImGuiKey)"] = defs["igGetKeyVector2d"][1] defs["igGetMainViewport"] = {} defs["igGetMainViewport"][1] = {} defs["igGetMainViewport"][1]["args"] = "()" @@ -9670,6 +17622,25 @@ defs["igGetMousePosOnOpeningCurrentPopup"][1]["ret"] = "void" defs["igGetMousePosOnOpeningCurrentPopup"][1]["signature"] = "()" defs["igGetMousePosOnOpeningCurrentPopup"][1]["stname"] = "" defs["igGetMousePosOnOpeningCurrentPopup"]["()"] = defs["igGetMousePosOnOpeningCurrentPopup"][1] +defs["igGetNavTweakPressedAmount"] = {} +defs["igGetNavTweakPressedAmount"][1] = {} +defs["igGetNavTweakPressedAmount"][1]["args"] = "(ImGuiAxis axis)" +defs["igGetNavTweakPressedAmount"][1]["argsT"] = {} +defs["igGetNavTweakPressedAmount"][1]["argsT"][1] = {} +defs["igGetNavTweakPressedAmount"][1]["argsT"][1]["name"] = "axis" +defs["igGetNavTweakPressedAmount"][1]["argsT"][1]["type"] = "ImGuiAxis" +defs["igGetNavTweakPressedAmount"][1]["argsoriginal"] = "(ImGuiAxis axis)" +defs["igGetNavTweakPressedAmount"][1]["call_args"] = "(axis)" +defs["igGetNavTweakPressedAmount"][1]["cimguiname"] = "igGetNavTweakPressedAmount" +defs["igGetNavTweakPressedAmount"][1]["defaults"] = {} +defs["igGetNavTweakPressedAmount"][1]["funcname"] = "GetNavTweakPressedAmount" +defs["igGetNavTweakPressedAmount"][1]["location"] = "imgui_internal:3121" +defs["igGetNavTweakPressedAmount"][1]["namespace"] = "ImGui" +defs["igGetNavTweakPressedAmount"][1]["ov_cimguiname"] = "igGetNavTweakPressedAmount" +defs["igGetNavTweakPressedAmount"][1]["ret"] = "float" +defs["igGetNavTweakPressedAmount"][1]["signature"] = "(ImGuiAxis)" +defs["igGetNavTweakPressedAmount"][1]["stname"] = "" +defs["igGetNavTweakPressedAmount"]["(ImGuiAxis)"] = defs["igGetNavTweakPressedAmount"][1] defs["igGetPlatformIO"] = {} defs["igGetPlatformIO"][1] = {} defs["igGetPlatformIO"][1]["args"] = "()" @@ -9687,6 +17658,29 @@ defs["igGetPlatformIO"][1]["retref"] = "&" defs["igGetPlatformIO"][1]["signature"] = "()" defs["igGetPlatformIO"][1]["stname"] = "" defs["igGetPlatformIO"]["()"] = defs["igGetPlatformIO"][1] +defs["igGetPopupAllowedExtentRect"] = {} +defs["igGetPopupAllowedExtentRect"][1] = {} +defs["igGetPopupAllowedExtentRect"][1]["args"] = "(ImRect *pOut,ImGuiWindow* window)" +defs["igGetPopupAllowedExtentRect"][1]["argsT"] = {} +defs["igGetPopupAllowedExtentRect"][1]["argsT"][1] = {} +defs["igGetPopupAllowedExtentRect"][1]["argsT"][1]["name"] = "pOut" +defs["igGetPopupAllowedExtentRect"][1]["argsT"][1]["type"] = "ImRect*" +defs["igGetPopupAllowedExtentRect"][1]["argsT"][2] = {} +defs["igGetPopupAllowedExtentRect"][1]["argsT"][2]["name"] = "window" +defs["igGetPopupAllowedExtentRect"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igGetPopupAllowedExtentRect"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igGetPopupAllowedExtentRect"][1]["call_args"] = "(window)" +defs["igGetPopupAllowedExtentRect"][1]["cimguiname"] = "igGetPopupAllowedExtentRect" +defs["igGetPopupAllowedExtentRect"][1]["defaults"] = {} +defs["igGetPopupAllowedExtentRect"][1]["funcname"] = "GetPopupAllowedExtentRect" +defs["igGetPopupAllowedExtentRect"][1]["location"] = "imgui_internal:3068" +defs["igGetPopupAllowedExtentRect"][1]["namespace"] = "ImGui" +defs["igGetPopupAllowedExtentRect"][1]["nonUDT"] = 1 +defs["igGetPopupAllowedExtentRect"][1]["ov_cimguiname"] = "igGetPopupAllowedExtentRect" +defs["igGetPopupAllowedExtentRect"][1]["ret"] = "void" +defs["igGetPopupAllowedExtentRect"][1]["signature"] = "(ImGuiWindow*)" +defs["igGetPopupAllowedExtentRect"][1]["stname"] = "" +defs["igGetPopupAllowedExtentRect"]["(ImGuiWindow*)"] = defs["igGetPopupAllowedExtentRect"][1] defs["igGetScrollMaxX"] = {} defs["igGetScrollMaxX"][1] = {} defs["igGetScrollMaxX"][1]["args"] = "()" @@ -9751,6 +17745,25 @@ defs["igGetScrollY"][1]["ret"] = "float" defs["igGetScrollY"][1]["signature"] = "()" defs["igGetScrollY"][1]["stname"] = "" defs["igGetScrollY"]["()"] = defs["igGetScrollY"][1] +defs["igGetShortcutRoutingData"] = {} +defs["igGetShortcutRoutingData"][1] = {} +defs["igGetShortcutRoutingData"][1]["args"] = "(ImGuiKeyChord key_chord)" +defs["igGetShortcutRoutingData"][1]["argsT"] = {} +defs["igGetShortcutRoutingData"][1]["argsT"][1] = {} +defs["igGetShortcutRoutingData"][1]["argsT"][1]["name"] = "key_chord" +defs["igGetShortcutRoutingData"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igGetShortcutRoutingData"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord)" +defs["igGetShortcutRoutingData"][1]["call_args"] = "(key_chord)" +defs["igGetShortcutRoutingData"][1]["cimguiname"] = "igGetShortcutRoutingData" +defs["igGetShortcutRoutingData"][1]["defaults"] = {} +defs["igGetShortcutRoutingData"][1]["funcname"] = "GetShortcutRoutingData" +defs["igGetShortcutRoutingData"][1]["location"] = "imgui_internal:3170" +defs["igGetShortcutRoutingData"][1]["namespace"] = "ImGui" +defs["igGetShortcutRoutingData"][1]["ov_cimguiname"] = "igGetShortcutRoutingData" +defs["igGetShortcutRoutingData"][1]["ret"] = "ImGuiKeyRoutingData*" +defs["igGetShortcutRoutingData"][1]["signature"] = "(ImGuiKeyChord)" +defs["igGetShortcutRoutingData"][1]["stname"] = "" +defs["igGetShortcutRoutingData"]["(ImGuiKeyChord)"] = defs["igGetShortcutRoutingData"][1] defs["igGetStateStorage"] = {} defs["igGetStateStorage"][1] = {} defs["igGetStateStorage"][1]["args"] = "()" @@ -9871,6 +17884,38 @@ defs["igGetTime"][1]["ret"] = "double" defs["igGetTime"][1]["signature"] = "()" defs["igGetTime"][1]["stname"] = "" defs["igGetTime"]["()"] = defs["igGetTime"][1] +defs["igGetTopMostAndVisiblePopupModal"] = {} +defs["igGetTopMostAndVisiblePopupModal"][1] = {} +defs["igGetTopMostAndVisiblePopupModal"][1]["args"] = "()" +defs["igGetTopMostAndVisiblePopupModal"][1]["argsT"] = {} +defs["igGetTopMostAndVisiblePopupModal"][1]["argsoriginal"] = "()" +defs["igGetTopMostAndVisiblePopupModal"][1]["call_args"] = "()" +defs["igGetTopMostAndVisiblePopupModal"][1]["cimguiname"] = "igGetTopMostAndVisiblePopupModal" +defs["igGetTopMostAndVisiblePopupModal"][1]["defaults"] = {} +defs["igGetTopMostAndVisiblePopupModal"][1]["funcname"] = "GetTopMostAndVisiblePopupModal" +defs["igGetTopMostAndVisiblePopupModal"][1]["location"] = "imgui_internal:3070" +defs["igGetTopMostAndVisiblePopupModal"][1]["namespace"] = "ImGui" +defs["igGetTopMostAndVisiblePopupModal"][1]["ov_cimguiname"] = "igGetTopMostAndVisiblePopupModal" +defs["igGetTopMostAndVisiblePopupModal"][1]["ret"] = "ImGuiWindow*" +defs["igGetTopMostAndVisiblePopupModal"][1]["signature"] = "()" +defs["igGetTopMostAndVisiblePopupModal"][1]["stname"] = "" +defs["igGetTopMostAndVisiblePopupModal"]["()"] = defs["igGetTopMostAndVisiblePopupModal"][1] +defs["igGetTopMostPopupModal"] = {} +defs["igGetTopMostPopupModal"][1] = {} +defs["igGetTopMostPopupModal"][1]["args"] = "()" +defs["igGetTopMostPopupModal"][1]["argsT"] = {} +defs["igGetTopMostPopupModal"][1]["argsoriginal"] = "()" +defs["igGetTopMostPopupModal"][1]["call_args"] = "()" +defs["igGetTopMostPopupModal"][1]["cimguiname"] = "igGetTopMostPopupModal" +defs["igGetTopMostPopupModal"][1]["defaults"] = {} +defs["igGetTopMostPopupModal"][1]["funcname"] = "GetTopMostPopupModal" +defs["igGetTopMostPopupModal"][1]["location"] = "imgui_internal:3069" +defs["igGetTopMostPopupModal"][1]["namespace"] = "ImGui" +defs["igGetTopMostPopupModal"][1]["ov_cimguiname"] = "igGetTopMostPopupModal" +defs["igGetTopMostPopupModal"][1]["ret"] = "ImGuiWindow*" +defs["igGetTopMostPopupModal"][1]["signature"] = "()" +defs["igGetTopMostPopupModal"][1]["stname"] = "" +defs["igGetTopMostPopupModal"]["()"] = defs["igGetTopMostPopupModal"][1] defs["igGetTreeNodeToLabelSpacing"] = {} defs["igGetTreeNodeToLabelSpacing"][1] = {} defs["igGetTreeNodeToLabelSpacing"][1]["args"] = "()" @@ -9887,6 +17932,31 @@ defs["igGetTreeNodeToLabelSpacing"][1]["ret"] = "float" defs["igGetTreeNodeToLabelSpacing"][1]["signature"] = "()" defs["igGetTreeNodeToLabelSpacing"][1]["stname"] = "" defs["igGetTreeNodeToLabelSpacing"]["()"] = defs["igGetTreeNodeToLabelSpacing"][1] +defs["igGetTypematicRepeatRate"] = {} +defs["igGetTypematicRepeatRate"][1] = {} +defs["igGetTypematicRepeatRate"][1]["args"] = "(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate)" +defs["igGetTypematicRepeatRate"][1]["argsT"] = {} +defs["igGetTypematicRepeatRate"][1]["argsT"][1] = {} +defs["igGetTypematicRepeatRate"][1]["argsT"][1]["name"] = "flags" +defs["igGetTypematicRepeatRate"][1]["argsT"][1]["type"] = "ImGuiInputFlags" +defs["igGetTypematicRepeatRate"][1]["argsT"][2] = {} +defs["igGetTypematicRepeatRate"][1]["argsT"][2]["name"] = "repeat_delay" +defs["igGetTypematicRepeatRate"][1]["argsT"][2]["type"] = "float*" +defs["igGetTypematicRepeatRate"][1]["argsT"][3] = {} +defs["igGetTypematicRepeatRate"][1]["argsT"][3]["name"] = "repeat_rate" +defs["igGetTypematicRepeatRate"][1]["argsT"][3]["type"] = "float*" +defs["igGetTypematicRepeatRate"][1]["argsoriginal"] = "(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate)" +defs["igGetTypematicRepeatRate"][1]["call_args"] = "(flags,repeat_delay,repeat_rate)" +defs["igGetTypematicRepeatRate"][1]["cimguiname"] = "igGetTypematicRepeatRate" +defs["igGetTypematicRepeatRate"][1]["defaults"] = {} +defs["igGetTypematicRepeatRate"][1]["funcname"] = "GetTypematicRepeatRate" +defs["igGetTypematicRepeatRate"][1]["location"] = "imgui_internal:3123" +defs["igGetTypematicRepeatRate"][1]["namespace"] = "ImGui" +defs["igGetTypematicRepeatRate"][1]["ov_cimguiname"] = "igGetTypematicRepeatRate" +defs["igGetTypematicRepeatRate"][1]["ret"] = "void" +defs["igGetTypematicRepeatRate"][1]["signature"] = "(ImGuiInputFlags,float*,float*)" +defs["igGetTypematicRepeatRate"][1]["stname"] = "" +defs["igGetTypematicRepeatRate"]["(ImGuiInputFlags,float*,float*)"] = defs["igGetTypematicRepeatRate"][1] defs["igGetVersion"] = {} defs["igGetVersion"][1] = {} defs["igGetVersion"][1]["args"] = "()" @@ -9903,6 +17973,44 @@ defs["igGetVersion"][1]["ret"] = "const char*" defs["igGetVersion"][1]["signature"] = "()" defs["igGetVersion"][1]["stname"] = "" defs["igGetVersion"]["()"] = defs["igGetVersion"][1] +defs["igGetViewportPlatformMonitor"] = {} +defs["igGetViewportPlatformMonitor"][1] = {} +defs["igGetViewportPlatformMonitor"][1]["args"] = "(ImGuiViewport* viewport)" +defs["igGetViewportPlatformMonitor"][1]["argsT"] = {} +defs["igGetViewportPlatformMonitor"][1]["argsT"][1] = {} +defs["igGetViewportPlatformMonitor"][1]["argsT"][1]["name"] = "viewport" +defs["igGetViewportPlatformMonitor"][1]["argsT"][1]["type"] = "ImGuiViewport*" +defs["igGetViewportPlatformMonitor"][1]["argsoriginal"] = "(ImGuiViewport* viewport)" +defs["igGetViewportPlatformMonitor"][1]["call_args"] = "(viewport)" +defs["igGetViewportPlatformMonitor"][1]["cimguiname"] = "igGetViewportPlatformMonitor" +defs["igGetViewportPlatformMonitor"][1]["defaults"] = {} +defs["igGetViewportPlatformMonitor"][1]["funcname"] = "GetViewportPlatformMonitor" +defs["igGetViewportPlatformMonitor"][1]["location"] = "imgui_internal:2987" +defs["igGetViewportPlatformMonitor"][1]["namespace"] = "ImGui" +defs["igGetViewportPlatformMonitor"][1]["ov_cimguiname"] = "igGetViewportPlatformMonitor" +defs["igGetViewportPlatformMonitor"][1]["ret"] = "const ImGuiPlatformMonitor*" +defs["igGetViewportPlatformMonitor"][1]["signature"] = "(ImGuiViewport*)" +defs["igGetViewportPlatformMonitor"][1]["stname"] = "" +defs["igGetViewportPlatformMonitor"]["(ImGuiViewport*)"] = defs["igGetViewportPlatformMonitor"][1] +defs["igGetWindowAlwaysWantOwnTabBar"] = {} +defs["igGetWindowAlwaysWantOwnTabBar"][1] = {} +defs["igGetWindowAlwaysWantOwnTabBar"][1]["args"] = "(ImGuiWindow* window)" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["argsT"] = {} +defs["igGetWindowAlwaysWantOwnTabBar"][1]["argsT"][1] = {} +defs["igGetWindowAlwaysWantOwnTabBar"][1]["argsT"][1]["name"] = "window" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["call_args"] = "(window)" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["cimguiname"] = "igGetWindowAlwaysWantOwnTabBar" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["defaults"] = {} +defs["igGetWindowAlwaysWantOwnTabBar"][1]["funcname"] = "GetWindowAlwaysWantOwnTabBar" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["location"] = "imgui_internal:3194" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["namespace"] = "ImGui" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["ov_cimguiname"] = "igGetWindowAlwaysWantOwnTabBar" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["ret"] = "bool" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["signature"] = "(ImGuiWindow*)" +defs["igGetWindowAlwaysWantOwnTabBar"][1]["stname"] = "" +defs["igGetWindowAlwaysWantOwnTabBar"]["(ImGuiWindow*)"] = defs["igGetWindowAlwaysWantOwnTabBar"][1] defs["igGetWindowContentRegionMax"] = {} defs["igGetWindowContentRegionMax"][1] = {} defs["igGetWindowContentRegionMax"][1]["args"] = "(ImVec2 *pOut)" @@ -9959,6 +18067,22 @@ defs["igGetWindowDockID"][1]["ret"] = "ImGuiID" defs["igGetWindowDockID"][1]["signature"] = "()" defs["igGetWindowDockID"][1]["stname"] = "" defs["igGetWindowDockID"]["()"] = defs["igGetWindowDockID"][1] +defs["igGetWindowDockNode"] = {} +defs["igGetWindowDockNode"][1] = {} +defs["igGetWindowDockNode"][1]["args"] = "()" +defs["igGetWindowDockNode"][1]["argsT"] = {} +defs["igGetWindowDockNode"][1]["argsoriginal"] = "()" +defs["igGetWindowDockNode"][1]["call_args"] = "()" +defs["igGetWindowDockNode"][1]["cimguiname"] = "igGetWindowDockNode" +defs["igGetWindowDockNode"][1]["defaults"] = {} +defs["igGetWindowDockNode"][1]["funcname"] = "GetWindowDockNode" +defs["igGetWindowDockNode"][1]["location"] = "imgui_internal:3193" +defs["igGetWindowDockNode"][1]["namespace"] = "ImGui" +defs["igGetWindowDockNode"][1]["ov_cimguiname"] = "igGetWindowDockNode" +defs["igGetWindowDockNode"][1]["ret"] = "ImGuiDockNode*" +defs["igGetWindowDockNode"][1]["signature"] = "()" +defs["igGetWindowDockNode"][1]["stname"] = "" +defs["igGetWindowDockNode"]["()"] = defs["igGetWindowDockNode"][1] defs["igGetWindowDpiScale"] = {} defs["igGetWindowDpiScale"][1] = {} defs["igGetWindowDpiScale"][1]["args"] = "()" @@ -10027,6 +18151,98 @@ defs["igGetWindowPos"][1]["ret"] = "void" defs["igGetWindowPos"][1]["signature"] = "()" defs["igGetWindowPos"][1]["stname"] = "" defs["igGetWindowPos"]["()"] = defs["igGetWindowPos"][1] +defs["igGetWindowResizeBorderID"] = {} +defs["igGetWindowResizeBorderID"][1] = {} +defs["igGetWindowResizeBorderID"][1]["args"] = "(ImGuiWindow* window,ImGuiDir dir)" +defs["igGetWindowResizeBorderID"][1]["argsT"] = {} +defs["igGetWindowResizeBorderID"][1]["argsT"][1] = {} +defs["igGetWindowResizeBorderID"][1]["argsT"][1]["name"] = "window" +defs["igGetWindowResizeBorderID"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igGetWindowResizeBorderID"][1]["argsT"][2] = {} +defs["igGetWindowResizeBorderID"][1]["argsT"][2]["name"] = "dir" +defs["igGetWindowResizeBorderID"][1]["argsT"][2]["type"] = "ImGuiDir" +defs["igGetWindowResizeBorderID"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiDir dir)" +defs["igGetWindowResizeBorderID"][1]["call_args"] = "(window,dir)" +defs["igGetWindowResizeBorderID"][1]["cimguiname"] = "igGetWindowResizeBorderID" +defs["igGetWindowResizeBorderID"][1]["defaults"] = {} +defs["igGetWindowResizeBorderID"][1]["funcname"] = "GetWindowResizeBorderID" +defs["igGetWindowResizeBorderID"][1]["location"] = "imgui_internal:3361" +defs["igGetWindowResizeBorderID"][1]["namespace"] = "ImGui" +defs["igGetWindowResizeBorderID"][1]["ov_cimguiname"] = "igGetWindowResizeBorderID" +defs["igGetWindowResizeBorderID"][1]["ret"] = "ImGuiID" +defs["igGetWindowResizeBorderID"][1]["signature"] = "(ImGuiWindow*,ImGuiDir)" +defs["igGetWindowResizeBorderID"][1]["stname"] = "" +defs["igGetWindowResizeBorderID"]["(ImGuiWindow*,ImGuiDir)"] = defs["igGetWindowResizeBorderID"][1] +defs["igGetWindowResizeCornerID"] = {} +defs["igGetWindowResizeCornerID"][1] = {} +defs["igGetWindowResizeCornerID"][1]["args"] = "(ImGuiWindow* window,int n)" +defs["igGetWindowResizeCornerID"][1]["argsT"] = {} +defs["igGetWindowResizeCornerID"][1]["argsT"][1] = {} +defs["igGetWindowResizeCornerID"][1]["argsT"][1]["name"] = "window" +defs["igGetWindowResizeCornerID"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igGetWindowResizeCornerID"][1]["argsT"][2] = {} +defs["igGetWindowResizeCornerID"][1]["argsT"][2]["name"] = "n" +defs["igGetWindowResizeCornerID"][1]["argsT"][2]["type"] = "int" +defs["igGetWindowResizeCornerID"][1]["argsoriginal"] = "(ImGuiWindow* window,int n)" +defs["igGetWindowResizeCornerID"][1]["call_args"] = "(window,n)" +defs["igGetWindowResizeCornerID"][1]["cimguiname"] = "igGetWindowResizeCornerID" +defs["igGetWindowResizeCornerID"][1]["defaults"] = {} +defs["igGetWindowResizeCornerID"][1]["funcname"] = "GetWindowResizeCornerID" +defs["igGetWindowResizeCornerID"][1]["location"] = "imgui_internal:3360" +defs["igGetWindowResizeCornerID"][1]["namespace"] = "ImGui" +defs["igGetWindowResizeCornerID"][1]["ov_cimguiname"] = "igGetWindowResizeCornerID" +defs["igGetWindowResizeCornerID"][1]["ret"] = "ImGuiID" +defs["igGetWindowResizeCornerID"][1]["signature"] = "(ImGuiWindow*,int)" +defs["igGetWindowResizeCornerID"][1]["stname"] = "" +defs["igGetWindowResizeCornerID"]["(ImGuiWindow*,int)"] = defs["igGetWindowResizeCornerID"][1] +defs["igGetWindowScrollbarID"] = {} +defs["igGetWindowScrollbarID"][1] = {} +defs["igGetWindowScrollbarID"][1]["args"] = "(ImGuiWindow* window,ImGuiAxis axis)" +defs["igGetWindowScrollbarID"][1]["argsT"] = {} +defs["igGetWindowScrollbarID"][1]["argsT"][1] = {} +defs["igGetWindowScrollbarID"][1]["argsT"][1]["name"] = "window" +defs["igGetWindowScrollbarID"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igGetWindowScrollbarID"][1]["argsT"][2] = {} +defs["igGetWindowScrollbarID"][1]["argsT"][2]["name"] = "axis" +defs["igGetWindowScrollbarID"][1]["argsT"][2]["type"] = "ImGuiAxis" +defs["igGetWindowScrollbarID"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiAxis axis)" +defs["igGetWindowScrollbarID"][1]["call_args"] = "(window,axis)" +defs["igGetWindowScrollbarID"][1]["cimguiname"] = "igGetWindowScrollbarID" +defs["igGetWindowScrollbarID"][1]["defaults"] = {} +defs["igGetWindowScrollbarID"][1]["funcname"] = "GetWindowScrollbarID" +defs["igGetWindowScrollbarID"][1]["location"] = "imgui_internal:3359" +defs["igGetWindowScrollbarID"][1]["namespace"] = "ImGui" +defs["igGetWindowScrollbarID"][1]["ov_cimguiname"] = "igGetWindowScrollbarID" +defs["igGetWindowScrollbarID"][1]["ret"] = "ImGuiID" +defs["igGetWindowScrollbarID"][1]["signature"] = "(ImGuiWindow*,ImGuiAxis)" +defs["igGetWindowScrollbarID"][1]["stname"] = "" +defs["igGetWindowScrollbarID"]["(ImGuiWindow*,ImGuiAxis)"] = defs["igGetWindowScrollbarID"][1] +defs["igGetWindowScrollbarRect"] = {} +defs["igGetWindowScrollbarRect"][1] = {} +defs["igGetWindowScrollbarRect"][1]["args"] = "(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis)" +defs["igGetWindowScrollbarRect"][1]["argsT"] = {} +defs["igGetWindowScrollbarRect"][1]["argsT"][1] = {} +defs["igGetWindowScrollbarRect"][1]["argsT"][1]["name"] = "pOut" +defs["igGetWindowScrollbarRect"][1]["argsT"][1]["type"] = "ImRect*" +defs["igGetWindowScrollbarRect"][1]["argsT"][2] = {} +defs["igGetWindowScrollbarRect"][1]["argsT"][2]["name"] = "window" +defs["igGetWindowScrollbarRect"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igGetWindowScrollbarRect"][1]["argsT"][3] = {} +defs["igGetWindowScrollbarRect"][1]["argsT"][3]["name"] = "axis" +defs["igGetWindowScrollbarRect"][1]["argsT"][3]["type"] = "ImGuiAxis" +defs["igGetWindowScrollbarRect"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiAxis axis)" +defs["igGetWindowScrollbarRect"][1]["call_args"] = "(window,axis)" +defs["igGetWindowScrollbarRect"][1]["cimguiname"] = "igGetWindowScrollbarRect" +defs["igGetWindowScrollbarRect"][1]["defaults"] = {} +defs["igGetWindowScrollbarRect"][1]["funcname"] = "GetWindowScrollbarRect" +defs["igGetWindowScrollbarRect"][1]["location"] = "imgui_internal:3358" +defs["igGetWindowScrollbarRect"][1]["namespace"] = "ImGui" +defs["igGetWindowScrollbarRect"][1]["nonUDT"] = 1 +defs["igGetWindowScrollbarRect"][1]["ov_cimguiname"] = "igGetWindowScrollbarRect" +defs["igGetWindowScrollbarRect"][1]["ret"] = "void" +defs["igGetWindowScrollbarRect"][1]["signature"] = "(ImGuiWindow*,ImGuiAxis)" +defs["igGetWindowScrollbarRect"][1]["stname"] = "" +defs["igGetWindowScrollbarRect"]["(ImGuiWindow*,ImGuiAxis)"] = defs["igGetWindowScrollbarRect"][1] defs["igGetWindowSize"] = {} defs["igGetWindowSize"][1] = {} defs["igGetWindowSize"][1]["args"] = "(ImVec2 *pOut)" @@ -10079,6 +18295,2282 @@ defs["igGetWindowWidth"][1]["ret"] = "float" defs["igGetWindowWidth"][1]["signature"] = "()" defs["igGetWindowWidth"][1]["stname"] = "" defs["igGetWindowWidth"]["()"] = defs["igGetWindowWidth"][1] +defs["igImAbs"] = {} +defs["igImAbs"][1] = {} +defs["igImAbs"][1]["args"] = "(int x)" +defs["igImAbs"][1]["argsT"] = {} +defs["igImAbs"][1]["argsT"][1] = {} +defs["igImAbs"][1]["argsT"][1]["name"] = "x" +defs["igImAbs"][1]["argsT"][1]["type"] = "int" +defs["igImAbs"][1]["argsoriginal"] = "(int x)" +defs["igImAbs"][1]["call_args"] = "(x)" +defs["igImAbs"][1]["cimguiname"] = "igImAbs" +defs["igImAbs"][1]["defaults"] = {} +defs["igImAbs"][1]["funcname"] = "ImAbs" +defs["igImAbs"][1]["location"] = "imgui_internal:444" +defs["igImAbs"][1]["ov_cimguiname"] = "igImAbs_Int" +defs["igImAbs"][1]["ret"] = "int" +defs["igImAbs"][1]["signature"] = "(int)" +defs["igImAbs"][1]["stname"] = "" +defs["igImAbs"][2] = {} +defs["igImAbs"][2]["args"] = "(float x)" +defs["igImAbs"][2]["argsT"] = {} +defs["igImAbs"][2]["argsT"][1] = {} +defs["igImAbs"][2]["argsT"][1]["name"] = "x" +defs["igImAbs"][2]["argsT"][1]["type"] = "float" +defs["igImAbs"][2]["argsoriginal"] = "(float x)" +defs["igImAbs"][2]["call_args"] = "(x)" +defs["igImAbs"][2]["cimguiname"] = "igImAbs" +defs["igImAbs"][2]["defaults"] = {} +defs["igImAbs"][2]["funcname"] = "ImAbs" +defs["igImAbs"][2]["location"] = "imgui_internal:445" +defs["igImAbs"][2]["ov_cimguiname"] = "igImAbs_Float" +defs["igImAbs"][2]["ret"] = "float" +defs["igImAbs"][2]["signature"] = "(float)" +defs["igImAbs"][2]["stname"] = "" +defs["igImAbs"][3] = {} +defs["igImAbs"][3]["args"] = "(double x)" +defs["igImAbs"][3]["argsT"] = {} +defs["igImAbs"][3]["argsT"][1] = {} +defs["igImAbs"][3]["argsT"][1]["name"] = "x" +defs["igImAbs"][3]["argsT"][1]["type"] = "double" +defs["igImAbs"][3]["argsoriginal"] = "(double x)" +defs["igImAbs"][3]["call_args"] = "(x)" +defs["igImAbs"][3]["cimguiname"] = "igImAbs" +defs["igImAbs"][3]["defaults"] = {} +defs["igImAbs"][3]["funcname"] = "ImAbs" +defs["igImAbs"][3]["location"] = "imgui_internal:446" +defs["igImAbs"][3]["ov_cimguiname"] = "igImAbs_double" +defs["igImAbs"][3]["ret"] = "double" +defs["igImAbs"][3]["signature"] = "(double)" +defs["igImAbs"][3]["stname"] = "" +defs["igImAbs"]["(double)"] = defs["igImAbs"][3] +defs["igImAbs"]["(float)"] = defs["igImAbs"][2] +defs["igImAbs"]["(int)"] = defs["igImAbs"][1] +defs["igImAlphaBlendColors"] = {} +defs["igImAlphaBlendColors"][1] = {} +defs["igImAlphaBlendColors"][1]["args"] = "(ImU32 col_a,ImU32 col_b)" +defs["igImAlphaBlendColors"][1]["argsT"] = {} +defs["igImAlphaBlendColors"][1]["argsT"][1] = {} +defs["igImAlphaBlendColors"][1]["argsT"][1]["name"] = "col_a" +defs["igImAlphaBlendColors"][1]["argsT"][1]["type"] = "ImU32" +defs["igImAlphaBlendColors"][1]["argsT"][2] = {} +defs["igImAlphaBlendColors"][1]["argsT"][2]["name"] = "col_b" +defs["igImAlphaBlendColors"][1]["argsT"][2]["type"] = "ImU32" +defs["igImAlphaBlendColors"][1]["argsoriginal"] = "(ImU32 col_a,ImU32 col_b)" +defs["igImAlphaBlendColors"][1]["call_args"] = "(col_a,col_b)" +defs["igImAlphaBlendColors"][1]["cimguiname"] = "igImAlphaBlendColors" +defs["igImAlphaBlendColors"][1]["defaults"] = {} +defs["igImAlphaBlendColors"][1]["funcname"] = "ImAlphaBlendColors" +defs["igImAlphaBlendColors"][1]["location"] = "imgui_internal:334" +defs["igImAlphaBlendColors"][1]["ov_cimguiname"] = "igImAlphaBlendColors" +defs["igImAlphaBlendColors"][1]["ret"] = "ImU32" +defs["igImAlphaBlendColors"][1]["signature"] = "(ImU32,ImU32)" +defs["igImAlphaBlendColors"][1]["stname"] = "" +defs["igImAlphaBlendColors"]["(ImU32,ImU32)"] = defs["igImAlphaBlendColors"][1] +defs["igImBezierCubicCalc"] = {} +defs["igImBezierCubicCalc"][1] = {} +defs["igImBezierCubicCalc"][1]["args"] = "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t)" +defs["igImBezierCubicCalc"][1]["argsT"] = {} +defs["igImBezierCubicCalc"][1]["argsT"][1] = {} +defs["igImBezierCubicCalc"][1]["argsT"][1]["name"] = "pOut" +defs["igImBezierCubicCalc"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImBezierCubicCalc"][1]["argsT"][2] = {} +defs["igImBezierCubicCalc"][1]["argsT"][2]["name"] = "p1" +defs["igImBezierCubicCalc"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImBezierCubicCalc"][1]["argsT"][3] = {} +defs["igImBezierCubicCalc"][1]["argsT"][3]["name"] = "p2" +defs["igImBezierCubicCalc"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImBezierCubicCalc"][1]["argsT"][4] = {} +defs["igImBezierCubicCalc"][1]["argsT"][4]["name"] = "p3" +defs["igImBezierCubicCalc"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImBezierCubicCalc"][1]["argsT"][5] = {} +defs["igImBezierCubicCalc"][1]["argsT"][5]["name"] = "p4" +defs["igImBezierCubicCalc"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igImBezierCubicCalc"][1]["argsT"][6] = {} +defs["igImBezierCubicCalc"][1]["argsT"][6]["name"] = "t" +defs["igImBezierCubicCalc"][1]["argsT"][6]["type"] = "float" +defs["igImBezierCubicCalc"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,float t)" +defs["igImBezierCubicCalc"][1]["call_args"] = "(p1,p2,p3,p4,t)" +defs["igImBezierCubicCalc"][1]["cimguiname"] = "igImBezierCubicCalc" +defs["igImBezierCubicCalc"][1]["defaults"] = {} +defs["igImBezierCubicCalc"][1]["funcname"] = "ImBezierCubicCalc" +defs["igImBezierCubicCalc"][1]["location"] = "imgui_internal:489" +defs["igImBezierCubicCalc"][1]["nonUDT"] = 1 +defs["igImBezierCubicCalc"][1]["ov_cimguiname"] = "igImBezierCubicCalc" +defs["igImBezierCubicCalc"][1]["ret"] = "void" +defs["igImBezierCubicCalc"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)" +defs["igImBezierCubicCalc"][1]["stname"] = "" +defs["igImBezierCubicCalc"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)"] = defs["igImBezierCubicCalc"][1] +defs["igImBezierCubicClosestPoint"] = {} +defs["igImBezierCubicClosestPoint"][1] = {} +defs["igImBezierCubicClosestPoint"][1]["args"] = "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments)" +defs["igImBezierCubicClosestPoint"][1]["argsT"] = {} +defs["igImBezierCubicClosestPoint"][1]["argsT"][1] = {} +defs["igImBezierCubicClosestPoint"][1]["argsT"][1]["name"] = "pOut" +defs["igImBezierCubicClosestPoint"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImBezierCubicClosestPoint"][1]["argsT"][2] = {} +defs["igImBezierCubicClosestPoint"][1]["argsT"][2]["name"] = "p1" +defs["igImBezierCubicClosestPoint"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPoint"][1]["argsT"][3] = {} +defs["igImBezierCubicClosestPoint"][1]["argsT"][3]["name"] = "p2" +defs["igImBezierCubicClosestPoint"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPoint"][1]["argsT"][4] = {} +defs["igImBezierCubicClosestPoint"][1]["argsT"][4]["name"] = "p3" +defs["igImBezierCubicClosestPoint"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPoint"][1]["argsT"][5] = {} +defs["igImBezierCubicClosestPoint"][1]["argsT"][5]["name"] = "p4" +defs["igImBezierCubicClosestPoint"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPoint"][1]["argsT"][6] = {} +defs["igImBezierCubicClosestPoint"][1]["argsT"][6]["name"] = "p" +defs["igImBezierCubicClosestPoint"][1]["argsT"][6]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPoint"][1]["argsT"][7] = {} +defs["igImBezierCubicClosestPoint"][1]["argsT"][7]["name"] = "num_segments" +defs["igImBezierCubicClosestPoint"][1]["argsT"][7]["type"] = "int" +defs["igImBezierCubicClosestPoint"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& p,int num_segments)" +defs["igImBezierCubicClosestPoint"][1]["call_args"] = "(p1,p2,p3,p4,p,num_segments)" +defs["igImBezierCubicClosestPoint"][1]["cimguiname"] = "igImBezierCubicClosestPoint" +defs["igImBezierCubicClosestPoint"][1]["defaults"] = {} +defs["igImBezierCubicClosestPoint"][1]["funcname"] = "ImBezierCubicClosestPoint" +defs["igImBezierCubicClosestPoint"][1]["location"] = "imgui_internal:490" +defs["igImBezierCubicClosestPoint"][1]["nonUDT"] = 1 +defs["igImBezierCubicClosestPoint"][1]["ov_cimguiname"] = "igImBezierCubicClosestPoint" +defs["igImBezierCubicClosestPoint"][1]["ret"] = "void" +defs["igImBezierCubicClosestPoint"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,int)" +defs["igImBezierCubicClosestPoint"][1]["stname"] = "" +defs["igImBezierCubicClosestPoint"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,int)"] = defs["igImBezierCubicClosestPoint"][1] +defs["igImBezierCubicClosestPointCasteljau"] = {} +defs["igImBezierCubicClosestPointCasteljau"][1] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["args"] = "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol)" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][1] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][1]["name"] = "pOut" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][2] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][2]["name"] = "p1" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][3] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][3]["name"] = "p2" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][4] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][4]["name"] = "p3" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][5] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][5]["name"] = "p4" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][6] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][6]["name"] = "p" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][6]["type"] = "const ImVec2" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][7] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][7]["name"] = "tess_tol" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsT"][7]["type"] = "float" +defs["igImBezierCubicClosestPointCasteljau"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& p,float tess_tol)" +defs["igImBezierCubicClosestPointCasteljau"][1]["call_args"] = "(p1,p2,p3,p4,p,tess_tol)" +defs["igImBezierCubicClosestPointCasteljau"][1]["cimguiname"] = "igImBezierCubicClosestPointCasteljau" +defs["igImBezierCubicClosestPointCasteljau"][1]["defaults"] = {} +defs["igImBezierCubicClosestPointCasteljau"][1]["funcname"] = "ImBezierCubicClosestPointCasteljau" +defs["igImBezierCubicClosestPointCasteljau"][1]["location"] = "imgui_internal:491" +defs["igImBezierCubicClosestPointCasteljau"][1]["nonUDT"] = 1 +defs["igImBezierCubicClosestPointCasteljau"][1]["ov_cimguiname"] = "igImBezierCubicClosestPointCasteljau" +defs["igImBezierCubicClosestPointCasteljau"][1]["ret"] = "void" +defs["igImBezierCubicClosestPointCasteljau"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)" +defs["igImBezierCubicClosestPointCasteljau"][1]["stname"] = "" +defs["igImBezierCubicClosestPointCasteljau"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)"] = defs["igImBezierCubicClosestPointCasteljau"][1] +defs["igImBezierQuadraticCalc"] = {} +defs["igImBezierQuadraticCalc"][1] = {} +defs["igImBezierQuadraticCalc"][1]["args"] = "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t)" +defs["igImBezierQuadraticCalc"][1]["argsT"] = {} +defs["igImBezierQuadraticCalc"][1]["argsT"][1] = {} +defs["igImBezierQuadraticCalc"][1]["argsT"][1]["name"] = "pOut" +defs["igImBezierQuadraticCalc"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImBezierQuadraticCalc"][1]["argsT"][2] = {} +defs["igImBezierQuadraticCalc"][1]["argsT"][2]["name"] = "p1" +defs["igImBezierQuadraticCalc"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImBezierQuadraticCalc"][1]["argsT"][3] = {} +defs["igImBezierQuadraticCalc"][1]["argsT"][3]["name"] = "p2" +defs["igImBezierQuadraticCalc"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImBezierQuadraticCalc"][1]["argsT"][4] = {} +defs["igImBezierQuadraticCalc"][1]["argsT"][4]["name"] = "p3" +defs["igImBezierQuadraticCalc"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImBezierQuadraticCalc"][1]["argsT"][5] = {} +defs["igImBezierQuadraticCalc"][1]["argsT"][5]["name"] = "t" +defs["igImBezierQuadraticCalc"][1]["argsT"][5]["type"] = "float" +defs["igImBezierQuadraticCalc"][1]["argsoriginal"] = "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,float t)" +defs["igImBezierQuadraticCalc"][1]["call_args"] = "(p1,p2,p3,t)" +defs["igImBezierQuadraticCalc"][1]["cimguiname"] = "igImBezierQuadraticCalc" +defs["igImBezierQuadraticCalc"][1]["defaults"] = {} +defs["igImBezierQuadraticCalc"][1]["funcname"] = "ImBezierQuadraticCalc" +defs["igImBezierQuadraticCalc"][1]["location"] = "imgui_internal:492" +defs["igImBezierQuadraticCalc"][1]["nonUDT"] = 1 +defs["igImBezierQuadraticCalc"][1]["ov_cimguiname"] = "igImBezierQuadraticCalc" +defs["igImBezierQuadraticCalc"][1]["ret"] = "void" +defs["igImBezierQuadraticCalc"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,float)" +defs["igImBezierQuadraticCalc"][1]["stname"] = "" +defs["igImBezierQuadraticCalc"]["(const ImVec2,const ImVec2,const ImVec2,float)"] = defs["igImBezierQuadraticCalc"][1] +defs["igImBitArrayClearBit"] = {} +defs["igImBitArrayClearBit"][1] = {} +defs["igImBitArrayClearBit"][1]["args"] = "(ImU32* arr,int n)" +defs["igImBitArrayClearBit"][1]["argsT"] = {} +defs["igImBitArrayClearBit"][1]["argsT"][1] = {} +defs["igImBitArrayClearBit"][1]["argsT"][1]["name"] = "arr" +defs["igImBitArrayClearBit"][1]["argsT"][1]["type"] = "ImU32*" +defs["igImBitArrayClearBit"][1]["argsT"][2] = {} +defs["igImBitArrayClearBit"][1]["argsT"][2]["name"] = "n" +defs["igImBitArrayClearBit"][1]["argsT"][2]["type"] = "int" +defs["igImBitArrayClearBit"][1]["argsoriginal"] = "(ImU32* arr,int n)" +defs["igImBitArrayClearBit"][1]["call_args"] = "(arr,n)" +defs["igImBitArrayClearBit"][1]["cimguiname"] = "igImBitArrayClearBit" +defs["igImBitArrayClearBit"][1]["defaults"] = {} +defs["igImBitArrayClearBit"][1]["funcname"] = "ImBitArrayClearBit" +defs["igImBitArrayClearBit"][1]["location"] = "imgui_internal:560" +defs["igImBitArrayClearBit"][1]["ov_cimguiname"] = "igImBitArrayClearBit" +defs["igImBitArrayClearBit"][1]["ret"] = "void" +defs["igImBitArrayClearBit"][1]["signature"] = "(ImU32*,int)" +defs["igImBitArrayClearBit"][1]["stname"] = "" +defs["igImBitArrayClearBit"]["(ImU32*,int)"] = defs["igImBitArrayClearBit"][1] +defs["igImBitArraySetBit"] = {} +defs["igImBitArraySetBit"][1] = {} +defs["igImBitArraySetBit"][1]["args"] = "(ImU32* arr,int n)" +defs["igImBitArraySetBit"][1]["argsT"] = {} +defs["igImBitArraySetBit"][1]["argsT"][1] = {} +defs["igImBitArraySetBit"][1]["argsT"][1]["name"] = "arr" +defs["igImBitArraySetBit"][1]["argsT"][1]["type"] = "ImU32*" +defs["igImBitArraySetBit"][1]["argsT"][2] = {} +defs["igImBitArraySetBit"][1]["argsT"][2]["name"] = "n" +defs["igImBitArraySetBit"][1]["argsT"][2]["type"] = "int" +defs["igImBitArraySetBit"][1]["argsoriginal"] = "(ImU32* arr,int n)" +defs["igImBitArraySetBit"][1]["call_args"] = "(arr,n)" +defs["igImBitArraySetBit"][1]["cimguiname"] = "igImBitArraySetBit" +defs["igImBitArraySetBit"][1]["defaults"] = {} +defs["igImBitArraySetBit"][1]["funcname"] = "ImBitArraySetBit" +defs["igImBitArraySetBit"][1]["location"] = "imgui_internal:561" +defs["igImBitArraySetBit"][1]["ov_cimguiname"] = "igImBitArraySetBit" +defs["igImBitArraySetBit"][1]["ret"] = "void" +defs["igImBitArraySetBit"][1]["signature"] = "(ImU32*,int)" +defs["igImBitArraySetBit"][1]["stname"] = "" +defs["igImBitArraySetBit"]["(ImU32*,int)"] = defs["igImBitArraySetBit"][1] +defs["igImBitArraySetBitRange"] = {} +defs["igImBitArraySetBitRange"][1] = {} +defs["igImBitArraySetBitRange"][1]["args"] = "(ImU32* arr,int n,int n2)" +defs["igImBitArraySetBitRange"][1]["argsT"] = {} +defs["igImBitArraySetBitRange"][1]["argsT"][1] = {} +defs["igImBitArraySetBitRange"][1]["argsT"][1]["name"] = "arr" +defs["igImBitArraySetBitRange"][1]["argsT"][1]["type"] = "ImU32*" +defs["igImBitArraySetBitRange"][1]["argsT"][2] = {} +defs["igImBitArraySetBitRange"][1]["argsT"][2]["name"] = "n" +defs["igImBitArraySetBitRange"][1]["argsT"][2]["type"] = "int" +defs["igImBitArraySetBitRange"][1]["argsT"][3] = {} +defs["igImBitArraySetBitRange"][1]["argsT"][3]["name"] = "n2" +defs["igImBitArraySetBitRange"][1]["argsT"][3]["type"] = "int" +defs["igImBitArraySetBitRange"][1]["argsoriginal"] = "(ImU32* arr,int n,int n2)" +defs["igImBitArraySetBitRange"][1]["call_args"] = "(arr,n,n2)" +defs["igImBitArraySetBitRange"][1]["cimguiname"] = "igImBitArraySetBitRange" +defs["igImBitArraySetBitRange"][1]["defaults"] = {} +defs["igImBitArraySetBitRange"][1]["funcname"] = "ImBitArraySetBitRange" +defs["igImBitArraySetBitRange"][1]["location"] = "imgui_internal:562" +defs["igImBitArraySetBitRange"][1]["ov_cimguiname"] = "igImBitArraySetBitRange" +defs["igImBitArraySetBitRange"][1]["ret"] = "void" +defs["igImBitArraySetBitRange"][1]["signature"] = "(ImU32*,int,int)" +defs["igImBitArraySetBitRange"][1]["stname"] = "" +defs["igImBitArraySetBitRange"]["(ImU32*,int,int)"] = defs["igImBitArraySetBitRange"][1] +defs["igImBitArrayTestBit"] = {} +defs["igImBitArrayTestBit"][1] = {} +defs["igImBitArrayTestBit"][1]["args"] = "(const ImU32* arr,int n)" +defs["igImBitArrayTestBit"][1]["argsT"] = {} +defs["igImBitArrayTestBit"][1]["argsT"][1] = {} +defs["igImBitArrayTestBit"][1]["argsT"][1]["name"] = "arr" +defs["igImBitArrayTestBit"][1]["argsT"][1]["type"] = "const ImU32*" +defs["igImBitArrayTestBit"][1]["argsT"][2] = {} +defs["igImBitArrayTestBit"][1]["argsT"][2]["name"] = "n" +defs["igImBitArrayTestBit"][1]["argsT"][2]["type"] = "int" +defs["igImBitArrayTestBit"][1]["argsoriginal"] = "(const ImU32* arr,int n)" +defs["igImBitArrayTestBit"][1]["call_args"] = "(arr,n)" +defs["igImBitArrayTestBit"][1]["cimguiname"] = "igImBitArrayTestBit" +defs["igImBitArrayTestBit"][1]["defaults"] = {} +defs["igImBitArrayTestBit"][1]["funcname"] = "ImBitArrayTestBit" +defs["igImBitArrayTestBit"][1]["location"] = "imgui_internal:559" +defs["igImBitArrayTestBit"][1]["ov_cimguiname"] = "igImBitArrayTestBit" +defs["igImBitArrayTestBit"][1]["ret"] = "bool" +defs["igImBitArrayTestBit"][1]["signature"] = "(const ImU32*,int)" +defs["igImBitArrayTestBit"][1]["stname"] = "" +defs["igImBitArrayTestBit"]["(const ImU32*,int)"] = defs["igImBitArrayTestBit"][1] +defs["igImCharIsBlankA"] = {} +defs["igImCharIsBlankA"][1] = {} +defs["igImCharIsBlankA"][1]["args"] = "(char c)" +defs["igImCharIsBlankA"][1]["argsT"] = {} +defs["igImCharIsBlankA"][1]["argsT"][1] = {} +defs["igImCharIsBlankA"][1]["argsT"][1]["name"] = "c" +defs["igImCharIsBlankA"][1]["argsT"][1]["type"] = "char" +defs["igImCharIsBlankA"][1]["argsoriginal"] = "(char c)" +defs["igImCharIsBlankA"][1]["call_args"] = "(c)" +defs["igImCharIsBlankA"][1]["cimguiname"] = "igImCharIsBlankA" +defs["igImCharIsBlankA"][1]["defaults"] = {} +defs["igImCharIsBlankA"][1]["funcname"] = "ImCharIsBlankA" +defs["igImCharIsBlankA"][1]["location"] = "imgui_internal:356" +defs["igImCharIsBlankA"][1]["ov_cimguiname"] = "igImCharIsBlankA" +defs["igImCharIsBlankA"][1]["ret"] = "bool" +defs["igImCharIsBlankA"][1]["signature"] = "(char)" +defs["igImCharIsBlankA"][1]["stname"] = "" +defs["igImCharIsBlankA"]["(char)"] = defs["igImCharIsBlankA"][1] +defs["igImCharIsBlankW"] = {} +defs["igImCharIsBlankW"][1] = {} +defs["igImCharIsBlankW"][1]["args"] = "(unsigned int c)" +defs["igImCharIsBlankW"][1]["argsT"] = {} +defs["igImCharIsBlankW"][1]["argsT"][1] = {} +defs["igImCharIsBlankW"][1]["argsT"][1]["name"] = "c" +defs["igImCharIsBlankW"][1]["argsT"][1]["type"] = "unsigned int" +defs["igImCharIsBlankW"][1]["argsoriginal"] = "(unsigned int c)" +defs["igImCharIsBlankW"][1]["call_args"] = "(c)" +defs["igImCharIsBlankW"][1]["cimguiname"] = "igImCharIsBlankW" +defs["igImCharIsBlankW"][1]["defaults"] = {} +defs["igImCharIsBlankW"][1]["funcname"] = "ImCharIsBlankW" +defs["igImCharIsBlankW"][1]["location"] = "imgui_internal:357" +defs["igImCharIsBlankW"][1]["ov_cimguiname"] = "igImCharIsBlankW" +defs["igImCharIsBlankW"][1]["ret"] = "bool" +defs["igImCharIsBlankW"][1]["signature"] = "(unsigned int)" +defs["igImCharIsBlankW"][1]["stname"] = "" +defs["igImCharIsBlankW"]["(unsigned int)"] = defs["igImCharIsBlankW"][1] +defs["igImClamp"] = {} +defs["igImClamp"][1] = {} +defs["igImClamp"][1]["args"] = "(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,ImVec2 mx)" +defs["igImClamp"][1]["argsT"] = {} +defs["igImClamp"][1]["argsT"][1] = {} +defs["igImClamp"][1]["argsT"][1]["name"] = "pOut" +defs["igImClamp"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImClamp"][1]["argsT"][2] = {} +defs["igImClamp"][1]["argsT"][2]["name"] = "v" +defs["igImClamp"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImClamp"][1]["argsT"][3] = {} +defs["igImClamp"][1]["argsT"][3]["name"] = "mn" +defs["igImClamp"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImClamp"][1]["argsT"][4] = {} +defs["igImClamp"][1]["argsT"][4]["name"] = "mx" +defs["igImClamp"][1]["argsT"][4]["type"] = "ImVec2" +defs["igImClamp"][1]["argsoriginal"] = "(const ImVec2& v,const ImVec2& mn,ImVec2 mx)" +defs["igImClamp"][1]["call_args"] = "(v,mn,mx)" +defs["igImClamp"][1]["cimguiname"] = "igImClamp" +defs["igImClamp"][1]["defaults"] = {} +defs["igImClamp"][1]["funcname"] = "ImClamp" +defs["igImClamp"][1]["location"] = "imgui_internal:468" +defs["igImClamp"][1]["nonUDT"] = 1 +defs["igImClamp"][1]["ov_cimguiname"] = "igImClamp" +defs["igImClamp"][1]["ret"] = "void" +defs["igImClamp"][1]["signature"] = "(const ImVec2,const ImVec2,ImVec2)" +defs["igImClamp"][1]["stname"] = "" +defs["igImClamp"]["(const ImVec2,const ImVec2,ImVec2)"] = defs["igImClamp"][1] +defs["igImDot"] = {} +defs["igImDot"][1] = {} +defs["igImDot"][1]["args"] = "(const ImVec2 a,const ImVec2 b)" +defs["igImDot"][1]["argsT"] = {} +defs["igImDot"][1]["argsT"][1] = {} +defs["igImDot"][1]["argsT"][1]["name"] = "a" +defs["igImDot"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igImDot"][1]["argsT"][2] = {} +defs["igImDot"][1]["argsT"][2]["name"] = "b" +defs["igImDot"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImDot"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b)" +defs["igImDot"][1]["call_args"] = "(a,b)" +defs["igImDot"][1]["cimguiname"] = "igImDot" +defs["igImDot"][1]["defaults"] = {} +defs["igImDot"][1]["funcname"] = "ImDot" +defs["igImDot"][1]["location"] = "imgui_internal:481" +defs["igImDot"][1]["ov_cimguiname"] = "igImDot" +defs["igImDot"][1]["ret"] = "float" +defs["igImDot"][1]["signature"] = "(const ImVec2,const ImVec2)" +defs["igImDot"][1]["stname"] = "" +defs["igImDot"]["(const ImVec2,const ImVec2)"] = defs["igImDot"][1] +defs["igImFileClose"] = {} +defs["igImFileClose"][1] = {} +defs["igImFileClose"][1]["args"] = "(ImFileHandle file)" +defs["igImFileClose"][1]["argsT"] = {} +defs["igImFileClose"][1]["argsT"][1] = {} +defs["igImFileClose"][1]["argsT"][1]["name"] = "file" +defs["igImFileClose"][1]["argsT"][1]["type"] = "ImFileHandle" +defs["igImFileClose"][1]["argsoriginal"] = "(ImFileHandle file)" +defs["igImFileClose"][1]["call_args"] = "(file)" +defs["igImFileClose"][1]["cimguiname"] = "igImFileClose" +defs["igImFileClose"][1]["defaults"] = {} +defs["igImFileClose"][1]["funcname"] = "ImFileClose" +defs["igImFileClose"][1]["location"] = "imgui_internal:417" +defs["igImFileClose"][1]["ov_cimguiname"] = "igImFileClose" +defs["igImFileClose"][1]["ret"] = "bool" +defs["igImFileClose"][1]["signature"] = "(ImFileHandle)" +defs["igImFileClose"][1]["stname"] = "" +defs["igImFileClose"]["(ImFileHandle)"] = defs["igImFileClose"][1] +defs["igImFileGetSize"] = {} +defs["igImFileGetSize"][1] = {} +defs["igImFileGetSize"][1]["args"] = "(ImFileHandle file)" +defs["igImFileGetSize"][1]["argsT"] = {} +defs["igImFileGetSize"][1]["argsT"][1] = {} +defs["igImFileGetSize"][1]["argsT"][1]["name"] = "file" +defs["igImFileGetSize"][1]["argsT"][1]["type"] = "ImFileHandle" +defs["igImFileGetSize"][1]["argsoriginal"] = "(ImFileHandle file)" +defs["igImFileGetSize"][1]["call_args"] = "(file)" +defs["igImFileGetSize"][1]["cimguiname"] = "igImFileGetSize" +defs["igImFileGetSize"][1]["defaults"] = {} +defs["igImFileGetSize"][1]["funcname"] = "ImFileGetSize" +defs["igImFileGetSize"][1]["location"] = "imgui_internal:418" +defs["igImFileGetSize"][1]["ov_cimguiname"] = "igImFileGetSize" +defs["igImFileGetSize"][1]["ret"] = "ImU64" +defs["igImFileGetSize"][1]["signature"] = "(ImFileHandle)" +defs["igImFileGetSize"][1]["stname"] = "" +defs["igImFileGetSize"]["(ImFileHandle)"] = defs["igImFileGetSize"][1] +defs["igImFileLoadToMemory"] = {} +defs["igImFileLoadToMemory"][1] = {} +defs["igImFileLoadToMemory"][1]["args"] = "(const char* filename,const char* mode,size_t* out_file_size,int padding_bytes)" +defs["igImFileLoadToMemory"][1]["argsT"] = {} +defs["igImFileLoadToMemory"][1]["argsT"][1] = {} +defs["igImFileLoadToMemory"][1]["argsT"][1]["name"] = "filename" +defs["igImFileLoadToMemory"][1]["argsT"][1]["type"] = "const char*" +defs["igImFileLoadToMemory"][1]["argsT"][2] = {} +defs["igImFileLoadToMemory"][1]["argsT"][2]["name"] = "mode" +defs["igImFileLoadToMemory"][1]["argsT"][2]["type"] = "const char*" +defs["igImFileLoadToMemory"][1]["argsT"][3] = {} +defs["igImFileLoadToMemory"][1]["argsT"][3]["name"] = "out_file_size" +defs["igImFileLoadToMemory"][1]["argsT"][3]["type"] = "size_t*" +defs["igImFileLoadToMemory"][1]["argsT"][4] = {} +defs["igImFileLoadToMemory"][1]["argsT"][4]["name"] = "padding_bytes" +defs["igImFileLoadToMemory"][1]["argsT"][4]["type"] = "int" +defs["igImFileLoadToMemory"][1]["argsoriginal"] = "(const char* filename,const char* mode,size_t* out_file_size=((void*)0),int padding_bytes=0)" +defs["igImFileLoadToMemory"][1]["call_args"] = "(filename,mode,out_file_size,padding_bytes)" +defs["igImFileLoadToMemory"][1]["cimguiname"] = "igImFileLoadToMemory" +defs["igImFileLoadToMemory"][1]["defaults"] = {} +defs["igImFileLoadToMemory"][1]["defaults"]["out_file_size"] = "NULL" +defs["igImFileLoadToMemory"][1]["defaults"]["padding_bytes"] = "0" +defs["igImFileLoadToMemory"][1]["funcname"] = "ImFileLoadToMemory" +defs["igImFileLoadToMemory"][1]["location"] = "imgui_internal:424" +defs["igImFileLoadToMemory"][1]["ov_cimguiname"] = "igImFileLoadToMemory" +defs["igImFileLoadToMemory"][1]["ret"] = "void*" +defs["igImFileLoadToMemory"][1]["signature"] = "(const char*,const char*,size_t*,int)" +defs["igImFileLoadToMemory"][1]["stname"] = "" +defs["igImFileLoadToMemory"]["(const char*,const char*,size_t*,int)"] = defs["igImFileLoadToMemory"][1] +defs["igImFileOpen"] = {} +defs["igImFileOpen"][1] = {} +defs["igImFileOpen"][1]["args"] = "(const char* filename,const char* mode)" +defs["igImFileOpen"][1]["argsT"] = {} +defs["igImFileOpen"][1]["argsT"][1] = {} +defs["igImFileOpen"][1]["argsT"][1]["name"] = "filename" +defs["igImFileOpen"][1]["argsT"][1]["type"] = "const char*" +defs["igImFileOpen"][1]["argsT"][2] = {} +defs["igImFileOpen"][1]["argsT"][2]["name"] = "mode" +defs["igImFileOpen"][1]["argsT"][2]["type"] = "const char*" +defs["igImFileOpen"][1]["argsoriginal"] = "(const char* filename,const char* mode)" +defs["igImFileOpen"][1]["call_args"] = "(filename,mode)" +defs["igImFileOpen"][1]["cimguiname"] = "igImFileOpen" +defs["igImFileOpen"][1]["defaults"] = {} +defs["igImFileOpen"][1]["funcname"] = "ImFileOpen" +defs["igImFileOpen"][1]["location"] = "imgui_internal:416" +defs["igImFileOpen"][1]["ov_cimguiname"] = "igImFileOpen" +defs["igImFileOpen"][1]["ret"] = "ImFileHandle" +defs["igImFileOpen"][1]["signature"] = "(const char*,const char*)" +defs["igImFileOpen"][1]["stname"] = "" +defs["igImFileOpen"]["(const char*,const char*)"] = defs["igImFileOpen"][1] +defs["igImFileRead"] = {} +defs["igImFileRead"][1] = {} +defs["igImFileRead"][1]["args"] = "(void* data,ImU64 size,ImU64 count,ImFileHandle file)" +defs["igImFileRead"][1]["argsT"] = {} +defs["igImFileRead"][1]["argsT"][1] = {} +defs["igImFileRead"][1]["argsT"][1]["name"] = "data" +defs["igImFileRead"][1]["argsT"][1]["type"] = "void*" +defs["igImFileRead"][1]["argsT"][2] = {} +defs["igImFileRead"][1]["argsT"][2]["name"] = "size" +defs["igImFileRead"][1]["argsT"][2]["type"] = "ImU64" +defs["igImFileRead"][1]["argsT"][3] = {} +defs["igImFileRead"][1]["argsT"][3]["name"] = "count" +defs["igImFileRead"][1]["argsT"][3]["type"] = "ImU64" +defs["igImFileRead"][1]["argsT"][4] = {} +defs["igImFileRead"][1]["argsT"][4]["name"] = "file" +defs["igImFileRead"][1]["argsT"][4]["type"] = "ImFileHandle" +defs["igImFileRead"][1]["argsoriginal"] = "(void* data,ImU64 size,ImU64 count,ImFileHandle file)" +defs["igImFileRead"][1]["call_args"] = "(data,size,count,file)" +defs["igImFileRead"][1]["cimguiname"] = "igImFileRead" +defs["igImFileRead"][1]["defaults"] = {} +defs["igImFileRead"][1]["funcname"] = "ImFileRead" +defs["igImFileRead"][1]["location"] = "imgui_internal:419" +defs["igImFileRead"][1]["ov_cimguiname"] = "igImFileRead" +defs["igImFileRead"][1]["ret"] = "ImU64" +defs["igImFileRead"][1]["signature"] = "(void*,ImU64,ImU64,ImFileHandle)" +defs["igImFileRead"][1]["stname"] = "" +defs["igImFileRead"]["(void*,ImU64,ImU64,ImFileHandle)"] = defs["igImFileRead"][1] +defs["igImFileWrite"] = {} +defs["igImFileWrite"][1] = {} +defs["igImFileWrite"][1]["args"] = "(const void* data,ImU64 size,ImU64 count,ImFileHandle file)" +defs["igImFileWrite"][1]["argsT"] = {} +defs["igImFileWrite"][1]["argsT"][1] = {} +defs["igImFileWrite"][1]["argsT"][1]["name"] = "data" +defs["igImFileWrite"][1]["argsT"][1]["type"] = "const void*" +defs["igImFileWrite"][1]["argsT"][2] = {} +defs["igImFileWrite"][1]["argsT"][2]["name"] = "size" +defs["igImFileWrite"][1]["argsT"][2]["type"] = "ImU64" +defs["igImFileWrite"][1]["argsT"][3] = {} +defs["igImFileWrite"][1]["argsT"][3]["name"] = "count" +defs["igImFileWrite"][1]["argsT"][3]["type"] = "ImU64" +defs["igImFileWrite"][1]["argsT"][4] = {} +defs["igImFileWrite"][1]["argsT"][4]["name"] = "file" +defs["igImFileWrite"][1]["argsT"][4]["type"] = "ImFileHandle" +defs["igImFileWrite"][1]["argsoriginal"] = "(const void* data,ImU64 size,ImU64 count,ImFileHandle file)" +defs["igImFileWrite"][1]["call_args"] = "(data,size,count,file)" +defs["igImFileWrite"][1]["cimguiname"] = "igImFileWrite" +defs["igImFileWrite"][1]["defaults"] = {} +defs["igImFileWrite"][1]["funcname"] = "ImFileWrite" +defs["igImFileWrite"][1]["location"] = "imgui_internal:420" +defs["igImFileWrite"][1]["ov_cimguiname"] = "igImFileWrite" +defs["igImFileWrite"][1]["ret"] = "ImU64" +defs["igImFileWrite"][1]["signature"] = "(const void*,ImU64,ImU64,ImFileHandle)" +defs["igImFileWrite"][1]["stname"] = "" +defs["igImFileWrite"]["(const void*,ImU64,ImU64,ImFileHandle)"] = defs["igImFileWrite"][1] +defs["igImFloor"] = {} +defs["igImFloor"][1] = {} +defs["igImFloor"][1]["args"] = "(float f)" +defs["igImFloor"][1]["argsT"] = {} +defs["igImFloor"][1]["argsT"][1] = {} +defs["igImFloor"][1]["argsT"][1]["name"] = "f" +defs["igImFloor"][1]["argsT"][1]["type"] = "float" +defs["igImFloor"][1]["argsoriginal"] = "(float f)" +defs["igImFloor"][1]["call_args"] = "(f)" +defs["igImFloor"][1]["cimguiname"] = "igImFloor" +defs["igImFloor"][1]["defaults"] = {} +defs["igImFloor"][1]["funcname"] = "ImFloor" +defs["igImFloor"][1]["location"] = "imgui_internal:476" +defs["igImFloor"][1]["ov_cimguiname"] = "igImFloor_Float" +defs["igImFloor"][1]["ret"] = "float" +defs["igImFloor"][1]["signature"] = "(float)" +defs["igImFloor"][1]["stname"] = "" +defs["igImFloor"][2] = {} +defs["igImFloor"][2]["args"] = "(ImVec2 *pOut,const ImVec2 v)" +defs["igImFloor"][2]["argsT"] = {} +defs["igImFloor"][2]["argsT"][1] = {} +defs["igImFloor"][2]["argsT"][1]["name"] = "pOut" +defs["igImFloor"][2]["argsT"][1]["type"] = "ImVec2*" +defs["igImFloor"][2]["argsT"][2] = {} +defs["igImFloor"][2]["argsT"][2]["name"] = "v" +defs["igImFloor"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igImFloor"][2]["argsoriginal"] = "(const ImVec2& v)" +defs["igImFloor"][2]["call_args"] = "(v)" +defs["igImFloor"][2]["cimguiname"] = "igImFloor" +defs["igImFloor"][2]["defaults"] = {} +defs["igImFloor"][2]["funcname"] = "ImFloor" +defs["igImFloor"][2]["location"] = "imgui_internal:478" +defs["igImFloor"][2]["nonUDT"] = 1 +defs["igImFloor"][2]["ov_cimguiname"] = "igImFloor_Vec2" +defs["igImFloor"][2]["ret"] = "void" +defs["igImFloor"][2]["signature"] = "(const ImVec2)" +defs["igImFloor"][2]["stname"] = "" +defs["igImFloor"]["(const ImVec2)"] = defs["igImFloor"][2] +defs["igImFloor"]["(float)"] = defs["igImFloor"][1] +defs["igImFloorSigned"] = {} +defs["igImFloorSigned"][1] = {} +defs["igImFloorSigned"][1]["args"] = "(float f)" +defs["igImFloorSigned"][1]["argsT"] = {} +defs["igImFloorSigned"][1]["argsT"][1] = {} +defs["igImFloorSigned"][1]["argsT"][1]["name"] = "f" +defs["igImFloorSigned"][1]["argsT"][1]["type"] = "float" +defs["igImFloorSigned"][1]["argsoriginal"] = "(float f)" +defs["igImFloorSigned"][1]["call_args"] = "(f)" +defs["igImFloorSigned"][1]["cimguiname"] = "igImFloorSigned" +defs["igImFloorSigned"][1]["defaults"] = {} +defs["igImFloorSigned"][1]["funcname"] = "ImFloorSigned" +defs["igImFloorSigned"][1]["location"] = "imgui_internal:477" +defs["igImFloorSigned"][1]["ov_cimguiname"] = "igImFloorSigned_Float" +defs["igImFloorSigned"][1]["ret"] = "float" +defs["igImFloorSigned"][1]["signature"] = "(float)" +defs["igImFloorSigned"][1]["stname"] = "" +defs["igImFloorSigned"][2] = {} +defs["igImFloorSigned"][2]["args"] = "(ImVec2 *pOut,const ImVec2 v)" +defs["igImFloorSigned"][2]["argsT"] = {} +defs["igImFloorSigned"][2]["argsT"][1] = {} +defs["igImFloorSigned"][2]["argsT"][1]["name"] = "pOut" +defs["igImFloorSigned"][2]["argsT"][1]["type"] = "ImVec2*" +defs["igImFloorSigned"][2]["argsT"][2] = {} +defs["igImFloorSigned"][2]["argsT"][2]["name"] = "v" +defs["igImFloorSigned"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igImFloorSigned"][2]["argsoriginal"] = "(const ImVec2& v)" +defs["igImFloorSigned"][2]["call_args"] = "(v)" +defs["igImFloorSigned"][2]["cimguiname"] = "igImFloorSigned" +defs["igImFloorSigned"][2]["defaults"] = {} +defs["igImFloorSigned"][2]["funcname"] = "ImFloorSigned" +defs["igImFloorSigned"][2]["location"] = "imgui_internal:479" +defs["igImFloorSigned"][2]["nonUDT"] = 1 +defs["igImFloorSigned"][2]["ov_cimguiname"] = "igImFloorSigned_Vec2" +defs["igImFloorSigned"][2]["ret"] = "void" +defs["igImFloorSigned"][2]["signature"] = "(const ImVec2)" +defs["igImFloorSigned"][2]["stname"] = "" +defs["igImFloorSigned"]["(const ImVec2)"] = defs["igImFloorSigned"][2] +defs["igImFloorSigned"]["(float)"] = defs["igImFloorSigned"][1] +defs["igImFontAtlasBuildFinish"] = {} +defs["igImFontAtlasBuildFinish"][1] = {} +defs["igImFontAtlasBuildFinish"][1]["args"] = "(ImFontAtlas* atlas)" +defs["igImFontAtlasBuildFinish"][1]["argsT"] = {} +defs["igImFontAtlasBuildFinish"][1]["argsT"][1] = {} +defs["igImFontAtlasBuildFinish"][1]["argsT"][1]["name"] = "atlas" +defs["igImFontAtlasBuildFinish"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["igImFontAtlasBuildFinish"][1]["argsoriginal"] = "(ImFontAtlas* atlas)" +defs["igImFontAtlasBuildFinish"][1]["call_args"] = "(atlas)" +defs["igImFontAtlasBuildFinish"][1]["cimguiname"] = "igImFontAtlasBuildFinish" +defs["igImFontAtlasBuildFinish"][1]["defaults"] = {} +defs["igImFontAtlasBuildFinish"][1]["funcname"] = "ImFontAtlasBuildFinish" +defs["igImFontAtlasBuildFinish"][1]["location"] = "imgui_internal:3488" +defs["igImFontAtlasBuildFinish"][1]["ov_cimguiname"] = "igImFontAtlasBuildFinish" +defs["igImFontAtlasBuildFinish"][1]["ret"] = "void" +defs["igImFontAtlasBuildFinish"][1]["signature"] = "(ImFontAtlas*)" +defs["igImFontAtlasBuildFinish"][1]["stname"] = "" +defs["igImFontAtlasBuildFinish"]["(ImFontAtlas*)"] = defs["igImFontAtlasBuildFinish"][1] +defs["igImFontAtlasBuildInit"] = {} +defs["igImFontAtlasBuildInit"][1] = {} +defs["igImFontAtlasBuildInit"][1]["args"] = "(ImFontAtlas* atlas)" +defs["igImFontAtlasBuildInit"][1]["argsT"] = {} +defs["igImFontAtlasBuildInit"][1]["argsT"][1] = {} +defs["igImFontAtlasBuildInit"][1]["argsT"][1]["name"] = "atlas" +defs["igImFontAtlasBuildInit"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["igImFontAtlasBuildInit"][1]["argsoriginal"] = "(ImFontAtlas* atlas)" +defs["igImFontAtlasBuildInit"][1]["call_args"] = "(atlas)" +defs["igImFontAtlasBuildInit"][1]["cimguiname"] = "igImFontAtlasBuildInit" +defs["igImFontAtlasBuildInit"][1]["defaults"] = {} +defs["igImFontAtlasBuildInit"][1]["funcname"] = "ImFontAtlasBuildInit" +defs["igImFontAtlasBuildInit"][1]["location"] = "imgui_internal:3485" +defs["igImFontAtlasBuildInit"][1]["ov_cimguiname"] = "igImFontAtlasBuildInit" +defs["igImFontAtlasBuildInit"][1]["ret"] = "void" +defs["igImFontAtlasBuildInit"][1]["signature"] = "(ImFontAtlas*)" +defs["igImFontAtlasBuildInit"][1]["stname"] = "" +defs["igImFontAtlasBuildInit"]["(ImFontAtlas*)"] = defs["igImFontAtlasBuildInit"][1] +defs["igImFontAtlasBuildMultiplyCalcLookupTable"] = {} +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1] = {} +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["args"] = "(unsigned char out_table[256],float in_multiply_factor)" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["argsT"] = {} +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["argsT"][1] = {} +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["argsT"][1]["name"] = "out_table" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["argsT"][1]["type"] = "unsigned char[256]" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["argsT"][2] = {} +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["argsT"][2]["name"] = "in_multiply_factor" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["argsT"][2]["type"] = "float" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["argsoriginal"] = "(unsigned char out_table[256],float in_multiply_factor)" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["call_args"] = "(out_table,in_multiply_factor)" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["cimguiname"] = "igImFontAtlasBuildMultiplyCalcLookupTable" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["defaults"] = {} +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["funcname"] = "ImFontAtlasBuildMultiplyCalcLookupTable" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["location"] = "imgui_internal:3491" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["ov_cimguiname"] = "igImFontAtlasBuildMultiplyCalcLookupTable" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["ret"] = "void" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["signature"] = "(unsigned char[256],float)" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1]["stname"] = "" +defs["igImFontAtlasBuildMultiplyCalcLookupTable"]["(unsigned char[256],float)"] = defs["igImFontAtlasBuildMultiplyCalcLookupTable"][1] +defs["igImFontAtlasBuildMultiplyRectAlpha8"] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["args"] = "(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride)" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][1] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][1]["name"] = "table" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][1]["type"] = "const unsigned char[256]" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][2] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][2]["name"] = "pixels" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][2]["type"] = "unsigned char*" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][3] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][3]["name"] = "x" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][3]["type"] = "int" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][4] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][4]["name"] = "y" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][4]["type"] = "int" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][5] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][5]["name"] = "w" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][5]["type"] = "int" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][6] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][6]["name"] = "h" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][6]["type"] = "int" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][7] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][7]["name"] = "stride" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsT"][7]["type"] = "int" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["argsoriginal"] = "(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride)" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["call_args"] = "(table,pixels,x,y,w,h,stride)" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["cimguiname"] = "igImFontAtlasBuildMultiplyRectAlpha8" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["defaults"] = {} +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["funcname"] = "ImFontAtlasBuildMultiplyRectAlpha8" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["location"] = "imgui_internal:3492" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["ov_cimguiname"] = "igImFontAtlasBuildMultiplyRectAlpha8" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["ret"] = "void" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["signature"] = "(const unsigned char[256],unsigned char*,int,int,int,int,int)" +defs["igImFontAtlasBuildMultiplyRectAlpha8"][1]["stname"] = "" +defs["igImFontAtlasBuildMultiplyRectAlpha8"]["(const unsigned char[256],unsigned char*,int,int,int,int,int)"] = defs["igImFontAtlasBuildMultiplyRectAlpha8"][1] +defs["igImFontAtlasBuildPackCustomRects"] = {} +defs["igImFontAtlasBuildPackCustomRects"][1] = {} +defs["igImFontAtlasBuildPackCustomRects"][1]["args"] = "(ImFontAtlas* atlas,void* stbrp_context_opaque)" +defs["igImFontAtlasBuildPackCustomRects"][1]["argsT"] = {} +defs["igImFontAtlasBuildPackCustomRects"][1]["argsT"][1] = {} +defs["igImFontAtlasBuildPackCustomRects"][1]["argsT"][1]["name"] = "atlas" +defs["igImFontAtlasBuildPackCustomRects"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["igImFontAtlasBuildPackCustomRects"][1]["argsT"][2] = {} +defs["igImFontAtlasBuildPackCustomRects"][1]["argsT"][2]["name"] = "stbrp_context_opaque" +defs["igImFontAtlasBuildPackCustomRects"][1]["argsT"][2]["type"] = "void*" +defs["igImFontAtlasBuildPackCustomRects"][1]["argsoriginal"] = "(ImFontAtlas* atlas,void* stbrp_context_opaque)" +defs["igImFontAtlasBuildPackCustomRects"][1]["call_args"] = "(atlas,stbrp_context_opaque)" +defs["igImFontAtlasBuildPackCustomRects"][1]["cimguiname"] = "igImFontAtlasBuildPackCustomRects" +defs["igImFontAtlasBuildPackCustomRects"][1]["defaults"] = {} +defs["igImFontAtlasBuildPackCustomRects"][1]["funcname"] = "ImFontAtlasBuildPackCustomRects" +defs["igImFontAtlasBuildPackCustomRects"][1]["location"] = "imgui_internal:3487" +defs["igImFontAtlasBuildPackCustomRects"][1]["ov_cimguiname"] = "igImFontAtlasBuildPackCustomRects" +defs["igImFontAtlasBuildPackCustomRects"][1]["ret"] = "void" +defs["igImFontAtlasBuildPackCustomRects"][1]["signature"] = "(ImFontAtlas*,void*)" +defs["igImFontAtlasBuildPackCustomRects"][1]["stname"] = "" +defs["igImFontAtlasBuildPackCustomRects"]["(ImFontAtlas*,void*)"] = defs["igImFontAtlasBuildPackCustomRects"][1] +defs["igImFontAtlasBuildRender32bppRectFromString"] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["args"] = "(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value)" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][1] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][1]["name"] = "atlas" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][2] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][2]["name"] = "x" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][2]["type"] = "int" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][3] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][3]["name"] = "y" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][3]["type"] = "int" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][4] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][4]["name"] = "w" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][4]["type"] = "int" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][5] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][5]["name"] = "h" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][5]["type"] = "int" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][6] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][6]["name"] = "in_str" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][6]["type"] = "const char*" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][7] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][7]["name"] = "in_marker_char" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][7]["type"] = "char" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][8] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][8]["name"] = "in_marker_pixel_value" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsT"][8]["type"] = "unsigned int" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["argsoriginal"] = "(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value)" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["call_args"] = "(atlas,x,y,w,h,in_str,in_marker_char,in_marker_pixel_value)" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["cimguiname"] = "igImFontAtlasBuildRender32bppRectFromString" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["defaults"] = {} +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["funcname"] = "ImFontAtlasBuildRender32bppRectFromString" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["location"] = "imgui_internal:3490" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["ov_cimguiname"] = "igImFontAtlasBuildRender32bppRectFromString" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["ret"] = "void" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["signature"] = "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned int)" +defs["igImFontAtlasBuildRender32bppRectFromString"][1]["stname"] = "" +defs["igImFontAtlasBuildRender32bppRectFromString"]["(ImFontAtlas*,int,int,int,int,const char*,char,unsigned int)"] = defs["igImFontAtlasBuildRender32bppRectFromString"][1] +defs["igImFontAtlasBuildRender8bppRectFromString"] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["args"] = "(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value)" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][1] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][1]["name"] = "atlas" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][2] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][2]["name"] = "x" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][2]["type"] = "int" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][3] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][3]["name"] = "y" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][3]["type"] = "int" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][4] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][4]["name"] = "w" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][4]["type"] = "int" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][5] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][5]["name"] = "h" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][5]["type"] = "int" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][6] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][6]["name"] = "in_str" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][6]["type"] = "const char*" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][7] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][7]["name"] = "in_marker_char" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][7]["type"] = "char" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][8] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][8]["name"] = "in_marker_pixel_value" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsT"][8]["type"] = "unsigned char" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["argsoriginal"] = "(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value)" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["call_args"] = "(atlas,x,y,w,h,in_str,in_marker_char,in_marker_pixel_value)" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["cimguiname"] = "igImFontAtlasBuildRender8bppRectFromString" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["defaults"] = {} +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["funcname"] = "ImFontAtlasBuildRender8bppRectFromString" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["location"] = "imgui_internal:3489" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["ov_cimguiname"] = "igImFontAtlasBuildRender8bppRectFromString" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["ret"] = "void" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["signature"] = "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned char)" +defs["igImFontAtlasBuildRender8bppRectFromString"][1]["stname"] = "" +defs["igImFontAtlasBuildRender8bppRectFromString"]["(ImFontAtlas*,int,int,int,int,const char*,char,unsigned char)"] = defs["igImFontAtlasBuildRender8bppRectFromString"][1] +defs["igImFontAtlasBuildSetupFont"] = {} +defs["igImFontAtlasBuildSetupFont"][1] = {} +defs["igImFontAtlasBuildSetupFont"][1]["args"] = "(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent)" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"] = {} +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][1] = {} +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][1]["name"] = "atlas" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][2] = {} +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][2]["name"] = "font" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][2]["type"] = "ImFont*" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][3] = {} +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][3]["name"] = "font_config" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][3]["type"] = "ImFontConfig*" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][4] = {} +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][4]["name"] = "ascent" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][4]["type"] = "float" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][5] = {} +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][5]["name"] = "descent" +defs["igImFontAtlasBuildSetupFont"][1]["argsT"][5]["type"] = "float" +defs["igImFontAtlasBuildSetupFont"][1]["argsoriginal"] = "(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent)" +defs["igImFontAtlasBuildSetupFont"][1]["call_args"] = "(atlas,font,font_config,ascent,descent)" +defs["igImFontAtlasBuildSetupFont"][1]["cimguiname"] = "igImFontAtlasBuildSetupFont" +defs["igImFontAtlasBuildSetupFont"][1]["defaults"] = {} +defs["igImFontAtlasBuildSetupFont"][1]["funcname"] = "ImFontAtlasBuildSetupFont" +defs["igImFontAtlasBuildSetupFont"][1]["location"] = "imgui_internal:3486" +defs["igImFontAtlasBuildSetupFont"][1]["ov_cimguiname"] = "igImFontAtlasBuildSetupFont" +defs["igImFontAtlasBuildSetupFont"][1]["ret"] = "void" +defs["igImFontAtlasBuildSetupFont"][1]["signature"] = "(ImFontAtlas*,ImFont*,ImFontConfig*,float,float)" +defs["igImFontAtlasBuildSetupFont"][1]["stname"] = "" +defs["igImFontAtlasBuildSetupFont"]["(ImFontAtlas*,ImFont*,ImFontConfig*,float,float)"] = defs["igImFontAtlasBuildSetupFont"][1] +defs["igImFormatString"] = {} +defs["igImFormatString"][1] = {} +defs["igImFormatString"][1]["args"] = "(char* buf,size_t buf_size,const char* fmt,...)" +defs["igImFormatString"][1]["argsT"] = {} +defs["igImFormatString"][1]["argsT"][1] = {} +defs["igImFormatString"][1]["argsT"][1]["name"] = "buf" +defs["igImFormatString"][1]["argsT"][1]["type"] = "char*" +defs["igImFormatString"][1]["argsT"][2] = {} +defs["igImFormatString"][1]["argsT"][2]["name"] = "buf_size" +defs["igImFormatString"][1]["argsT"][2]["type"] = "size_t" +defs["igImFormatString"][1]["argsT"][3] = {} +defs["igImFormatString"][1]["argsT"][3]["name"] = "fmt" +defs["igImFormatString"][1]["argsT"][3]["type"] = "const char*" +defs["igImFormatString"][1]["argsT"][4] = {} +defs["igImFormatString"][1]["argsT"][4]["name"] = "..." +defs["igImFormatString"][1]["argsT"][4]["type"] = "..." +defs["igImFormatString"][1]["argsoriginal"] = "(char* buf,size_t buf_size,const char* fmt,...)" +defs["igImFormatString"][1]["call_args"] = "(buf,buf_size,fmt,...)" +defs["igImFormatString"][1]["cimguiname"] = "igImFormatString" +defs["igImFormatString"][1]["defaults"] = {} +defs["igImFormatString"][1]["funcname"] = "ImFormatString" +defs["igImFormatString"][1]["isvararg"] = "...)" +defs["igImFormatString"][1]["location"] = "imgui_internal:361" +defs["igImFormatString"][1]["ov_cimguiname"] = "igImFormatString" +defs["igImFormatString"][1]["ret"] = "int" +defs["igImFormatString"][1]["signature"] = "(char*,size_t,const char*,...)" +defs["igImFormatString"][1]["stname"] = "" +defs["igImFormatString"]["(char*,size_t,const char*,...)"] = defs["igImFormatString"][1] +defs["igImFormatStringToTempBuffer"] = {} +defs["igImFormatStringToTempBuffer"][1] = {} +defs["igImFormatStringToTempBuffer"][1]["args"] = "(const char** out_buf,const char** out_buf_end,const char* fmt,...)" +defs["igImFormatStringToTempBuffer"][1]["argsT"] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][1] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][1]["name"] = "out_buf" +defs["igImFormatStringToTempBuffer"][1]["argsT"][1]["type"] = "const char**" +defs["igImFormatStringToTempBuffer"][1]["argsT"][2] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][2]["name"] = "out_buf_end" +defs["igImFormatStringToTempBuffer"][1]["argsT"][2]["type"] = "const char**" +defs["igImFormatStringToTempBuffer"][1]["argsT"][3] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][3]["name"] = "fmt" +defs["igImFormatStringToTempBuffer"][1]["argsT"][3]["type"] = "const char*" +defs["igImFormatStringToTempBuffer"][1]["argsT"][4] = {} +defs["igImFormatStringToTempBuffer"][1]["argsT"][4]["name"] = "..." +defs["igImFormatStringToTempBuffer"][1]["argsT"][4]["type"] = "..." +defs["igImFormatStringToTempBuffer"][1]["argsoriginal"] = "(const char** out_buf,const char** out_buf_end,const char* fmt,...)" +defs["igImFormatStringToTempBuffer"][1]["call_args"] = "(out_buf,out_buf_end,fmt,...)" +defs["igImFormatStringToTempBuffer"][1]["cimguiname"] = "igImFormatStringToTempBuffer" +defs["igImFormatStringToTempBuffer"][1]["defaults"] = {} +defs["igImFormatStringToTempBuffer"][1]["funcname"] = "ImFormatStringToTempBuffer" +defs["igImFormatStringToTempBuffer"][1]["isvararg"] = "...)" +defs["igImFormatStringToTempBuffer"][1]["location"] = "imgui_internal:363" +defs["igImFormatStringToTempBuffer"][1]["ov_cimguiname"] = "igImFormatStringToTempBuffer" +defs["igImFormatStringToTempBuffer"][1]["ret"] = "void" +defs["igImFormatStringToTempBuffer"][1]["signature"] = "(const char**,const char**,const char*,...)" +defs["igImFormatStringToTempBuffer"][1]["stname"] = "" +defs["igImFormatStringToTempBuffer"]["(const char**,const char**,const char*,...)"] = defs["igImFormatStringToTempBuffer"][1] +defs["igImFormatStringToTempBufferV"] = {} +defs["igImFormatStringToTempBufferV"][1] = {} +defs["igImFormatStringToTempBufferV"][1]["args"] = "(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args)" +defs["igImFormatStringToTempBufferV"][1]["argsT"] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][1] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][1]["name"] = "out_buf" +defs["igImFormatStringToTempBufferV"][1]["argsT"][1]["type"] = "const char**" +defs["igImFormatStringToTempBufferV"][1]["argsT"][2] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][2]["name"] = "out_buf_end" +defs["igImFormatStringToTempBufferV"][1]["argsT"][2]["type"] = "const char**" +defs["igImFormatStringToTempBufferV"][1]["argsT"][3] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][3]["name"] = "fmt" +defs["igImFormatStringToTempBufferV"][1]["argsT"][3]["type"] = "const char*" +defs["igImFormatStringToTempBufferV"][1]["argsT"][4] = {} +defs["igImFormatStringToTempBufferV"][1]["argsT"][4]["name"] = "args" +defs["igImFormatStringToTempBufferV"][1]["argsT"][4]["type"] = "va_list" +defs["igImFormatStringToTempBufferV"][1]["argsoriginal"] = "(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args)" +defs["igImFormatStringToTempBufferV"][1]["call_args"] = "(out_buf,out_buf_end,fmt,args)" +defs["igImFormatStringToTempBufferV"][1]["cimguiname"] = "igImFormatStringToTempBufferV" +defs["igImFormatStringToTempBufferV"][1]["defaults"] = {} +defs["igImFormatStringToTempBufferV"][1]["funcname"] = "ImFormatStringToTempBufferV" +defs["igImFormatStringToTempBufferV"][1]["location"] = "imgui_internal:364" +defs["igImFormatStringToTempBufferV"][1]["ov_cimguiname"] = "igImFormatStringToTempBufferV" +defs["igImFormatStringToTempBufferV"][1]["ret"] = "void" +defs["igImFormatStringToTempBufferV"][1]["signature"] = "(const char**,const char**,const char*,va_list)" +defs["igImFormatStringToTempBufferV"][1]["stname"] = "" +defs["igImFormatStringToTempBufferV"]["(const char**,const char**,const char*,va_list)"] = defs["igImFormatStringToTempBufferV"][1] +defs["igImFormatStringV"] = {} +defs["igImFormatStringV"][1] = {} +defs["igImFormatStringV"][1]["args"] = "(char* buf,size_t buf_size,const char* fmt,va_list args)" +defs["igImFormatStringV"][1]["argsT"] = {} +defs["igImFormatStringV"][1]["argsT"][1] = {} +defs["igImFormatStringV"][1]["argsT"][1]["name"] = "buf" +defs["igImFormatStringV"][1]["argsT"][1]["type"] = "char*" +defs["igImFormatStringV"][1]["argsT"][2] = {} +defs["igImFormatStringV"][1]["argsT"][2]["name"] = "buf_size" +defs["igImFormatStringV"][1]["argsT"][2]["type"] = "size_t" +defs["igImFormatStringV"][1]["argsT"][3] = {} +defs["igImFormatStringV"][1]["argsT"][3]["name"] = "fmt" +defs["igImFormatStringV"][1]["argsT"][3]["type"] = "const char*" +defs["igImFormatStringV"][1]["argsT"][4] = {} +defs["igImFormatStringV"][1]["argsT"][4]["name"] = "args" +defs["igImFormatStringV"][1]["argsT"][4]["type"] = "va_list" +defs["igImFormatStringV"][1]["argsoriginal"] = "(char* buf,size_t buf_size,const char* fmt,va_list args)" +defs["igImFormatStringV"][1]["call_args"] = "(buf,buf_size,fmt,args)" +defs["igImFormatStringV"][1]["cimguiname"] = "igImFormatStringV" +defs["igImFormatStringV"][1]["defaults"] = {} +defs["igImFormatStringV"][1]["funcname"] = "ImFormatStringV" +defs["igImFormatStringV"][1]["location"] = "imgui_internal:362" +defs["igImFormatStringV"][1]["ov_cimguiname"] = "igImFormatStringV" +defs["igImFormatStringV"][1]["ret"] = "int" +defs["igImFormatStringV"][1]["signature"] = "(char*,size_t,const char*,va_list)" +defs["igImFormatStringV"][1]["stname"] = "" +defs["igImFormatStringV"]["(char*,size_t,const char*,va_list)"] = defs["igImFormatStringV"][1] +defs["igImGetDirQuadrantFromDelta"] = {} +defs["igImGetDirQuadrantFromDelta"][1] = {} +defs["igImGetDirQuadrantFromDelta"][1]["args"] = "(float dx,float dy)" +defs["igImGetDirQuadrantFromDelta"][1]["argsT"] = {} +defs["igImGetDirQuadrantFromDelta"][1]["argsT"][1] = {} +defs["igImGetDirQuadrantFromDelta"][1]["argsT"][1]["name"] = "dx" +defs["igImGetDirQuadrantFromDelta"][1]["argsT"][1]["type"] = "float" +defs["igImGetDirQuadrantFromDelta"][1]["argsT"][2] = {} +defs["igImGetDirQuadrantFromDelta"][1]["argsT"][2]["name"] = "dy" +defs["igImGetDirQuadrantFromDelta"][1]["argsT"][2]["type"] = "float" +defs["igImGetDirQuadrantFromDelta"][1]["argsoriginal"] = "(float dx,float dy)" +defs["igImGetDirQuadrantFromDelta"][1]["call_args"] = "(dx,dy)" +defs["igImGetDirQuadrantFromDelta"][1]["cimguiname"] = "igImGetDirQuadrantFromDelta" +defs["igImGetDirQuadrantFromDelta"][1]["defaults"] = {} +defs["igImGetDirQuadrantFromDelta"][1]["funcname"] = "ImGetDirQuadrantFromDelta" +defs["igImGetDirQuadrantFromDelta"][1]["location"] = "imgui_internal:498" +defs["igImGetDirQuadrantFromDelta"][1]["ov_cimguiname"] = "igImGetDirQuadrantFromDelta" +defs["igImGetDirQuadrantFromDelta"][1]["ret"] = "ImGuiDir" +defs["igImGetDirQuadrantFromDelta"][1]["signature"] = "(float,float)" +defs["igImGetDirQuadrantFromDelta"][1]["stname"] = "" +defs["igImGetDirQuadrantFromDelta"]["(float,float)"] = defs["igImGetDirQuadrantFromDelta"][1] +defs["igImHashData"] = {} +defs["igImHashData"][1] = {} +defs["igImHashData"][1]["args"] = "(const void* data,size_t data_size,ImU32 seed)" +defs["igImHashData"][1]["argsT"] = {} +defs["igImHashData"][1]["argsT"][1] = {} +defs["igImHashData"][1]["argsT"][1]["name"] = "data" +defs["igImHashData"][1]["argsT"][1]["type"] = "const void*" +defs["igImHashData"][1]["argsT"][2] = {} +defs["igImHashData"][1]["argsT"][2]["name"] = "data_size" +defs["igImHashData"][1]["argsT"][2]["type"] = "size_t" +defs["igImHashData"][1]["argsT"][3] = {} +defs["igImHashData"][1]["argsT"][3]["name"] = "seed" +defs["igImHashData"][1]["argsT"][3]["type"] = "ImU32" +defs["igImHashData"][1]["argsoriginal"] = "(const void* data,size_t data_size,ImU32 seed=0)" +defs["igImHashData"][1]["call_args"] = "(data,data_size,seed)" +defs["igImHashData"][1]["cimguiname"] = "igImHashData" +defs["igImHashData"][1]["defaults"] = {} +defs["igImHashData"][1]["defaults"]["seed"] = "0" +defs["igImHashData"][1]["funcname"] = "ImHashData" +defs["igImHashData"][1]["location"] = "imgui_internal:325" +defs["igImHashData"][1]["ov_cimguiname"] = "igImHashData" +defs["igImHashData"][1]["ret"] = "ImGuiID" +defs["igImHashData"][1]["signature"] = "(const void*,size_t,ImU32)" +defs["igImHashData"][1]["stname"] = "" +defs["igImHashData"]["(const void*,size_t,ImU32)"] = defs["igImHashData"][1] +defs["igImHashStr"] = {} +defs["igImHashStr"][1] = {} +defs["igImHashStr"][1]["args"] = "(const char* data,size_t data_size,ImU32 seed)" +defs["igImHashStr"][1]["argsT"] = {} +defs["igImHashStr"][1]["argsT"][1] = {} +defs["igImHashStr"][1]["argsT"][1]["name"] = "data" +defs["igImHashStr"][1]["argsT"][1]["type"] = "const char*" +defs["igImHashStr"][1]["argsT"][2] = {} +defs["igImHashStr"][1]["argsT"][2]["name"] = "data_size" +defs["igImHashStr"][1]["argsT"][2]["type"] = "size_t" +defs["igImHashStr"][1]["argsT"][3] = {} +defs["igImHashStr"][1]["argsT"][3]["name"] = "seed" +defs["igImHashStr"][1]["argsT"][3]["type"] = "ImU32" +defs["igImHashStr"][1]["argsoriginal"] = "(const char* data,size_t data_size=0,ImU32 seed=0)" +defs["igImHashStr"][1]["call_args"] = "(data,data_size,seed)" +defs["igImHashStr"][1]["cimguiname"] = "igImHashStr" +defs["igImHashStr"][1]["defaults"] = {} +defs["igImHashStr"][1]["defaults"]["data_size"] = "0" +defs["igImHashStr"][1]["defaults"]["seed"] = "0" +defs["igImHashStr"][1]["funcname"] = "ImHashStr" +defs["igImHashStr"][1]["location"] = "imgui_internal:326" +defs["igImHashStr"][1]["ov_cimguiname"] = "igImHashStr" +defs["igImHashStr"][1]["ret"] = "ImGuiID" +defs["igImHashStr"][1]["signature"] = "(const char*,size_t,ImU32)" +defs["igImHashStr"][1]["stname"] = "" +defs["igImHashStr"]["(const char*,size_t,ImU32)"] = defs["igImHashStr"][1] +defs["igImInvLength"] = {} +defs["igImInvLength"][1] = {} +defs["igImInvLength"][1]["args"] = "(const ImVec2 lhs,float fail_value)" +defs["igImInvLength"][1]["argsT"] = {} +defs["igImInvLength"][1]["argsT"][1] = {} +defs["igImInvLength"][1]["argsT"][1]["name"] = "lhs" +defs["igImInvLength"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igImInvLength"][1]["argsT"][2] = {} +defs["igImInvLength"][1]["argsT"][2]["name"] = "fail_value" +defs["igImInvLength"][1]["argsT"][2]["type"] = "float" +defs["igImInvLength"][1]["argsoriginal"] = "(const ImVec2& lhs,float fail_value)" +defs["igImInvLength"][1]["call_args"] = "(lhs,fail_value)" +defs["igImInvLength"][1]["cimguiname"] = "igImInvLength" +defs["igImInvLength"][1]["defaults"] = {} +defs["igImInvLength"][1]["funcname"] = "ImInvLength" +defs["igImInvLength"][1]["location"] = "imgui_internal:475" +defs["igImInvLength"][1]["ov_cimguiname"] = "igImInvLength" +defs["igImInvLength"][1]["ret"] = "float" +defs["igImInvLength"][1]["signature"] = "(const ImVec2,float)" +defs["igImInvLength"][1]["stname"] = "" +defs["igImInvLength"]["(const ImVec2,float)"] = defs["igImInvLength"][1] +defs["igImIsFloatAboveGuaranteedIntegerPrecision"] = {} +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1] = {} +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["args"] = "(float f)" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["argsT"] = {} +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["argsT"][1] = {} +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["argsT"][1]["name"] = "f" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["argsT"][1]["type"] = "float" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["argsoriginal"] = "(float f)" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["call_args"] = "(f)" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["cimguiname"] = "igImIsFloatAboveGuaranteedIntegerPrecision" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["defaults"] = {} +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["funcname"] = "ImIsFloatAboveGuaranteedIntegerPrecision" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["location"] = "imgui_internal:485" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["ov_cimguiname"] = "igImIsFloatAboveGuaranteedIntegerPrecision" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["ret"] = "bool" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["signature"] = "(float)" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1]["stname"] = "" +defs["igImIsFloatAboveGuaranteedIntegerPrecision"]["(float)"] = defs["igImIsFloatAboveGuaranteedIntegerPrecision"][1] +defs["igImIsPowerOfTwo"] = {} +defs["igImIsPowerOfTwo"][1] = {} +defs["igImIsPowerOfTwo"][1]["args"] = "(int v)" +defs["igImIsPowerOfTwo"][1]["argsT"] = {} +defs["igImIsPowerOfTwo"][1]["argsT"][1] = {} +defs["igImIsPowerOfTwo"][1]["argsT"][1]["name"] = "v" +defs["igImIsPowerOfTwo"][1]["argsT"][1]["type"] = "int" +defs["igImIsPowerOfTwo"][1]["argsoriginal"] = "(int v)" +defs["igImIsPowerOfTwo"][1]["call_args"] = "(v)" +defs["igImIsPowerOfTwo"][1]["cimguiname"] = "igImIsPowerOfTwo" +defs["igImIsPowerOfTwo"][1]["defaults"] = {} +defs["igImIsPowerOfTwo"][1]["funcname"] = "ImIsPowerOfTwo" +defs["igImIsPowerOfTwo"][1]["location"] = "imgui_internal:337" +defs["igImIsPowerOfTwo"][1]["ov_cimguiname"] = "igImIsPowerOfTwo_Int" +defs["igImIsPowerOfTwo"][1]["ret"] = "bool" +defs["igImIsPowerOfTwo"][1]["signature"] = "(int)" +defs["igImIsPowerOfTwo"][1]["stname"] = "" +defs["igImIsPowerOfTwo"][2] = {} +defs["igImIsPowerOfTwo"][2]["args"] = "(ImU64 v)" +defs["igImIsPowerOfTwo"][2]["argsT"] = {} +defs["igImIsPowerOfTwo"][2]["argsT"][1] = {} +defs["igImIsPowerOfTwo"][2]["argsT"][1]["name"] = "v" +defs["igImIsPowerOfTwo"][2]["argsT"][1]["type"] = "ImU64" +defs["igImIsPowerOfTwo"][2]["argsoriginal"] = "(ImU64 v)" +defs["igImIsPowerOfTwo"][2]["call_args"] = "(v)" +defs["igImIsPowerOfTwo"][2]["cimguiname"] = "igImIsPowerOfTwo" +defs["igImIsPowerOfTwo"][2]["defaults"] = {} +defs["igImIsPowerOfTwo"][2]["funcname"] = "ImIsPowerOfTwo" +defs["igImIsPowerOfTwo"][2]["location"] = "imgui_internal:338" +defs["igImIsPowerOfTwo"][2]["ov_cimguiname"] = "igImIsPowerOfTwo_U64" +defs["igImIsPowerOfTwo"][2]["ret"] = "bool" +defs["igImIsPowerOfTwo"][2]["signature"] = "(ImU64)" +defs["igImIsPowerOfTwo"][2]["stname"] = "" +defs["igImIsPowerOfTwo"]["(ImU64)"] = defs["igImIsPowerOfTwo"][2] +defs["igImIsPowerOfTwo"]["(int)"] = defs["igImIsPowerOfTwo"][1] +defs["igImLengthSqr"] = {} +defs["igImLengthSqr"][1] = {} +defs["igImLengthSqr"][1]["args"] = "(const ImVec2 lhs)" +defs["igImLengthSqr"][1]["argsT"] = {} +defs["igImLengthSqr"][1]["argsT"][1] = {} +defs["igImLengthSqr"][1]["argsT"][1]["name"] = "lhs" +defs["igImLengthSqr"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igImLengthSqr"][1]["argsoriginal"] = "(const ImVec2& lhs)" +defs["igImLengthSqr"][1]["call_args"] = "(lhs)" +defs["igImLengthSqr"][1]["cimguiname"] = "igImLengthSqr" +defs["igImLengthSqr"][1]["defaults"] = {} +defs["igImLengthSqr"][1]["funcname"] = "ImLengthSqr" +defs["igImLengthSqr"][1]["location"] = "imgui_internal:473" +defs["igImLengthSqr"][1]["ov_cimguiname"] = "igImLengthSqr_Vec2" +defs["igImLengthSqr"][1]["ret"] = "float" +defs["igImLengthSqr"][1]["signature"] = "(const ImVec2)" +defs["igImLengthSqr"][1]["stname"] = "" +defs["igImLengthSqr"][2] = {} +defs["igImLengthSqr"][2]["args"] = "(const ImVec4 lhs)" +defs["igImLengthSqr"][2]["argsT"] = {} +defs["igImLengthSqr"][2]["argsT"][1] = {} +defs["igImLengthSqr"][2]["argsT"][1]["name"] = "lhs" +defs["igImLengthSqr"][2]["argsT"][1]["type"] = "const ImVec4" +defs["igImLengthSqr"][2]["argsoriginal"] = "(const ImVec4& lhs)" +defs["igImLengthSqr"][2]["call_args"] = "(lhs)" +defs["igImLengthSqr"][2]["cimguiname"] = "igImLengthSqr" +defs["igImLengthSqr"][2]["defaults"] = {} +defs["igImLengthSqr"][2]["funcname"] = "ImLengthSqr" +defs["igImLengthSqr"][2]["location"] = "imgui_internal:474" +defs["igImLengthSqr"][2]["ov_cimguiname"] = "igImLengthSqr_Vec4" +defs["igImLengthSqr"][2]["ret"] = "float" +defs["igImLengthSqr"][2]["signature"] = "(const ImVec4)" +defs["igImLengthSqr"][2]["stname"] = "" +defs["igImLengthSqr"]["(const ImVec2)"] = defs["igImLengthSqr"][1] +defs["igImLengthSqr"]["(const ImVec4)"] = defs["igImLengthSqr"][2] +defs["igImLerp"] = {} +defs["igImLerp"][1] = {} +defs["igImLerp"][1]["args"] = "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t)" +defs["igImLerp"][1]["argsT"] = {} +defs["igImLerp"][1]["argsT"][1] = {} +defs["igImLerp"][1]["argsT"][1]["name"] = "pOut" +defs["igImLerp"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImLerp"][1]["argsT"][2] = {} +defs["igImLerp"][1]["argsT"][2]["name"] = "a" +defs["igImLerp"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImLerp"][1]["argsT"][3] = {} +defs["igImLerp"][1]["argsT"][3]["name"] = "b" +defs["igImLerp"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImLerp"][1]["argsT"][4] = {} +defs["igImLerp"][1]["argsT"][4]["name"] = "t" +defs["igImLerp"][1]["argsT"][4]["type"] = "float" +defs["igImLerp"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,float t)" +defs["igImLerp"][1]["call_args"] = "(a,b,t)" +defs["igImLerp"][1]["cimguiname"] = "igImLerp" +defs["igImLerp"][1]["defaults"] = {} +defs["igImLerp"][1]["funcname"] = "ImLerp" +defs["igImLerp"][1]["location"] = "imgui_internal:469" +defs["igImLerp"][1]["nonUDT"] = 1 +defs["igImLerp"][1]["ov_cimguiname"] = "igImLerp_Vec2Float" +defs["igImLerp"][1]["ret"] = "void" +defs["igImLerp"][1]["signature"] = "(const ImVec2,const ImVec2,float)" +defs["igImLerp"][1]["stname"] = "" +defs["igImLerp"][2] = {} +defs["igImLerp"][2]["args"] = "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t)" +defs["igImLerp"][2]["argsT"] = {} +defs["igImLerp"][2]["argsT"][1] = {} +defs["igImLerp"][2]["argsT"][1]["name"] = "pOut" +defs["igImLerp"][2]["argsT"][1]["type"] = "ImVec2*" +defs["igImLerp"][2]["argsT"][2] = {} +defs["igImLerp"][2]["argsT"][2]["name"] = "a" +defs["igImLerp"][2]["argsT"][2]["type"] = "const ImVec2" +defs["igImLerp"][2]["argsT"][3] = {} +defs["igImLerp"][2]["argsT"][3]["name"] = "b" +defs["igImLerp"][2]["argsT"][3]["type"] = "const ImVec2" +defs["igImLerp"][2]["argsT"][4] = {} +defs["igImLerp"][2]["argsT"][4]["name"] = "t" +defs["igImLerp"][2]["argsT"][4]["type"] = "const ImVec2" +defs["igImLerp"][2]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& t)" +defs["igImLerp"][2]["call_args"] = "(a,b,t)" +defs["igImLerp"][2]["cimguiname"] = "igImLerp" +defs["igImLerp"][2]["defaults"] = {} +defs["igImLerp"][2]["funcname"] = "ImLerp" +defs["igImLerp"][2]["location"] = "imgui_internal:470" +defs["igImLerp"][2]["nonUDT"] = 1 +defs["igImLerp"][2]["ov_cimguiname"] = "igImLerp_Vec2Vec2" +defs["igImLerp"][2]["ret"] = "void" +defs["igImLerp"][2]["signature"] = "(const ImVec2,const ImVec2,const ImVec2)" +defs["igImLerp"][2]["stname"] = "" +defs["igImLerp"][3] = {} +defs["igImLerp"][3]["args"] = "(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t)" +defs["igImLerp"][3]["argsT"] = {} +defs["igImLerp"][3]["argsT"][1] = {} +defs["igImLerp"][3]["argsT"][1]["name"] = "pOut" +defs["igImLerp"][3]["argsT"][1]["type"] = "ImVec4*" +defs["igImLerp"][3]["argsT"][2] = {} +defs["igImLerp"][3]["argsT"][2]["name"] = "a" +defs["igImLerp"][3]["argsT"][2]["type"] = "const ImVec4" +defs["igImLerp"][3]["argsT"][3] = {} +defs["igImLerp"][3]["argsT"][3]["name"] = "b" +defs["igImLerp"][3]["argsT"][3]["type"] = "const ImVec4" +defs["igImLerp"][3]["argsT"][4] = {} +defs["igImLerp"][3]["argsT"][4]["name"] = "t" +defs["igImLerp"][3]["argsT"][4]["type"] = "float" +defs["igImLerp"][3]["argsoriginal"] = "(const ImVec4& a,const ImVec4& b,float t)" +defs["igImLerp"][3]["call_args"] = "(a,b,t)" +defs["igImLerp"][3]["cimguiname"] = "igImLerp" +defs["igImLerp"][3]["defaults"] = {} +defs["igImLerp"][3]["funcname"] = "ImLerp" +defs["igImLerp"][3]["location"] = "imgui_internal:471" +defs["igImLerp"][3]["nonUDT"] = 1 +defs["igImLerp"][3]["ov_cimguiname"] = "igImLerp_Vec4" +defs["igImLerp"][3]["ret"] = "void" +defs["igImLerp"][3]["signature"] = "(const ImVec4,const ImVec4,float)" +defs["igImLerp"][3]["stname"] = "" +defs["igImLerp"]["(const ImVec2,const ImVec2,const ImVec2)"] = defs["igImLerp"][2] +defs["igImLerp"]["(const ImVec2,const ImVec2,float)"] = defs["igImLerp"][1] +defs["igImLerp"]["(const ImVec4,const ImVec4,float)"] = defs["igImLerp"][3] +defs["igImLineClosestPoint"] = {} +defs["igImLineClosestPoint"][1] = {} +defs["igImLineClosestPoint"][1]["args"] = "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 p)" +defs["igImLineClosestPoint"][1]["argsT"] = {} +defs["igImLineClosestPoint"][1]["argsT"][1] = {} +defs["igImLineClosestPoint"][1]["argsT"][1]["name"] = "pOut" +defs["igImLineClosestPoint"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImLineClosestPoint"][1]["argsT"][2] = {} +defs["igImLineClosestPoint"][1]["argsT"][2]["name"] = "a" +defs["igImLineClosestPoint"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImLineClosestPoint"][1]["argsT"][3] = {} +defs["igImLineClosestPoint"][1]["argsT"][3]["name"] = "b" +defs["igImLineClosestPoint"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImLineClosestPoint"][1]["argsT"][4] = {} +defs["igImLineClosestPoint"][1]["argsT"][4]["name"] = "p" +defs["igImLineClosestPoint"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImLineClosestPoint"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& p)" +defs["igImLineClosestPoint"][1]["call_args"] = "(a,b,p)" +defs["igImLineClosestPoint"][1]["cimguiname"] = "igImLineClosestPoint" +defs["igImLineClosestPoint"][1]["defaults"] = {} +defs["igImLineClosestPoint"][1]["funcname"] = "ImLineClosestPoint" +defs["igImLineClosestPoint"][1]["location"] = "imgui_internal:493" +defs["igImLineClosestPoint"][1]["nonUDT"] = 1 +defs["igImLineClosestPoint"][1]["ov_cimguiname"] = "igImLineClosestPoint" +defs["igImLineClosestPoint"][1]["ret"] = "void" +defs["igImLineClosestPoint"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2)" +defs["igImLineClosestPoint"][1]["stname"] = "" +defs["igImLineClosestPoint"]["(const ImVec2,const ImVec2,const ImVec2)"] = defs["igImLineClosestPoint"][1] +defs["igImLinearSweep"] = {} +defs["igImLinearSweep"][1] = {} +defs["igImLinearSweep"][1]["args"] = "(float current,float target,float speed)" +defs["igImLinearSweep"][1]["argsT"] = {} +defs["igImLinearSweep"][1]["argsT"][1] = {} +defs["igImLinearSweep"][1]["argsT"][1]["name"] = "current" +defs["igImLinearSweep"][1]["argsT"][1]["type"] = "float" +defs["igImLinearSweep"][1]["argsT"][2] = {} +defs["igImLinearSweep"][1]["argsT"][2]["name"] = "target" +defs["igImLinearSweep"][1]["argsT"][2]["type"] = "float" +defs["igImLinearSweep"][1]["argsT"][3] = {} +defs["igImLinearSweep"][1]["argsT"][3]["name"] = "speed" +defs["igImLinearSweep"][1]["argsT"][3]["type"] = "float" +defs["igImLinearSweep"][1]["argsoriginal"] = "(float current,float target,float speed)" +defs["igImLinearSweep"][1]["call_args"] = "(current,target,speed)" +defs["igImLinearSweep"][1]["cimguiname"] = "igImLinearSweep" +defs["igImLinearSweep"][1]["defaults"] = {} +defs["igImLinearSweep"][1]["funcname"] = "ImLinearSweep" +defs["igImLinearSweep"][1]["location"] = "imgui_internal:483" +defs["igImLinearSweep"][1]["ov_cimguiname"] = "igImLinearSweep" +defs["igImLinearSweep"][1]["ret"] = "float" +defs["igImLinearSweep"][1]["signature"] = "(float,float,float)" +defs["igImLinearSweep"][1]["stname"] = "" +defs["igImLinearSweep"]["(float,float,float)"] = defs["igImLinearSweep"][1] +defs["igImLog"] = {} +defs["igImLog"][1] = {} +defs["igImLog"][1]["args"] = "(float x)" +defs["igImLog"][1]["argsT"] = {} +defs["igImLog"][1]["argsT"][1] = {} +defs["igImLog"][1]["argsT"][1]["name"] = "x" +defs["igImLog"][1]["argsT"][1]["type"] = "float" +defs["igImLog"][1]["argsoriginal"] = "(float x)" +defs["igImLog"][1]["call_args"] = "(x)" +defs["igImLog"][1]["cimguiname"] = "igImLog" +defs["igImLog"][1]["defaults"] = {} +defs["igImLog"][1]["funcname"] = "ImLog" +defs["igImLog"][1]["location"] = "imgui_internal:442" +defs["igImLog"][1]["ov_cimguiname"] = "igImLog_Float" +defs["igImLog"][1]["ret"] = "float" +defs["igImLog"][1]["signature"] = "(float)" +defs["igImLog"][1]["stname"] = "" +defs["igImLog"][2] = {} +defs["igImLog"][2]["args"] = "(double x)" +defs["igImLog"][2]["argsT"] = {} +defs["igImLog"][2]["argsT"][1] = {} +defs["igImLog"][2]["argsT"][1]["name"] = "x" +defs["igImLog"][2]["argsT"][1]["type"] = "double" +defs["igImLog"][2]["argsoriginal"] = "(double x)" +defs["igImLog"][2]["call_args"] = "(x)" +defs["igImLog"][2]["cimguiname"] = "igImLog" +defs["igImLog"][2]["defaults"] = {} +defs["igImLog"][2]["funcname"] = "ImLog" +defs["igImLog"][2]["location"] = "imgui_internal:443" +defs["igImLog"][2]["ov_cimguiname"] = "igImLog_double" +defs["igImLog"][2]["ret"] = "double" +defs["igImLog"][2]["signature"] = "(double)" +defs["igImLog"][2]["stname"] = "" +defs["igImLog"]["(double)"] = defs["igImLog"][2] +defs["igImLog"]["(float)"] = defs["igImLog"][1] +defs["igImMax"] = {} +defs["igImMax"][1] = {} +defs["igImMax"][1]["args"] = "(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)" +defs["igImMax"][1]["argsT"] = {} +defs["igImMax"][1]["argsT"][1] = {} +defs["igImMax"][1]["argsT"][1]["name"] = "pOut" +defs["igImMax"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImMax"][1]["argsT"][2] = {} +defs["igImMax"][1]["argsT"][2]["name"] = "lhs" +defs["igImMax"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImMax"][1]["argsT"][3] = {} +defs["igImMax"][1]["argsT"][3]["name"] = "rhs" +defs["igImMax"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImMax"][1]["argsoriginal"] = "(const ImVec2& lhs,const ImVec2& rhs)" +defs["igImMax"][1]["call_args"] = "(lhs,rhs)" +defs["igImMax"][1]["cimguiname"] = "igImMax" +defs["igImMax"][1]["defaults"] = {} +defs["igImMax"][1]["funcname"] = "ImMax" +defs["igImMax"][1]["location"] = "imgui_internal:467" +defs["igImMax"][1]["nonUDT"] = 1 +defs["igImMax"][1]["ov_cimguiname"] = "igImMax" +defs["igImMax"][1]["ret"] = "void" +defs["igImMax"][1]["signature"] = "(const ImVec2,const ImVec2)" +defs["igImMax"][1]["stname"] = "" +defs["igImMax"]["(const ImVec2,const ImVec2)"] = defs["igImMax"][1] +defs["igImMin"] = {} +defs["igImMin"][1] = {} +defs["igImMin"][1]["args"] = "(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)" +defs["igImMin"][1]["argsT"] = {} +defs["igImMin"][1]["argsT"][1] = {} +defs["igImMin"][1]["argsT"][1]["name"] = "pOut" +defs["igImMin"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImMin"][1]["argsT"][2] = {} +defs["igImMin"][1]["argsT"][2]["name"] = "lhs" +defs["igImMin"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImMin"][1]["argsT"][3] = {} +defs["igImMin"][1]["argsT"][3]["name"] = "rhs" +defs["igImMin"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImMin"][1]["argsoriginal"] = "(const ImVec2& lhs,const ImVec2& rhs)" +defs["igImMin"][1]["call_args"] = "(lhs,rhs)" +defs["igImMin"][1]["cimguiname"] = "igImMin" +defs["igImMin"][1]["defaults"] = {} +defs["igImMin"][1]["funcname"] = "ImMin" +defs["igImMin"][1]["location"] = "imgui_internal:466" +defs["igImMin"][1]["nonUDT"] = 1 +defs["igImMin"][1]["ov_cimguiname"] = "igImMin" +defs["igImMin"][1]["ret"] = "void" +defs["igImMin"][1]["signature"] = "(const ImVec2,const ImVec2)" +defs["igImMin"][1]["stname"] = "" +defs["igImMin"]["(const ImVec2,const ImVec2)"] = defs["igImMin"][1] +defs["igImModPositive"] = {} +defs["igImModPositive"][1] = {} +defs["igImModPositive"][1]["args"] = "(int a,int b)" +defs["igImModPositive"][1]["argsT"] = {} +defs["igImModPositive"][1]["argsT"][1] = {} +defs["igImModPositive"][1]["argsT"][1]["name"] = "a" +defs["igImModPositive"][1]["argsT"][1]["type"] = "int" +defs["igImModPositive"][1]["argsT"][2] = {} +defs["igImModPositive"][1]["argsT"][2]["name"] = "b" +defs["igImModPositive"][1]["argsT"][2]["type"] = "int" +defs["igImModPositive"][1]["argsoriginal"] = "(int a,int b)" +defs["igImModPositive"][1]["call_args"] = "(a,b)" +defs["igImModPositive"][1]["cimguiname"] = "igImModPositive" +defs["igImModPositive"][1]["defaults"] = {} +defs["igImModPositive"][1]["funcname"] = "ImModPositive" +defs["igImModPositive"][1]["location"] = "imgui_internal:480" +defs["igImModPositive"][1]["ov_cimguiname"] = "igImModPositive" +defs["igImModPositive"][1]["ret"] = "int" +defs["igImModPositive"][1]["signature"] = "(int,int)" +defs["igImModPositive"][1]["stname"] = "" +defs["igImModPositive"]["(int,int)"] = defs["igImModPositive"][1] +defs["igImMul"] = {} +defs["igImMul"][1] = {} +defs["igImMul"][1]["args"] = "(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)" +defs["igImMul"][1]["argsT"] = {} +defs["igImMul"][1]["argsT"][1] = {} +defs["igImMul"][1]["argsT"][1]["name"] = "pOut" +defs["igImMul"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImMul"][1]["argsT"][2] = {} +defs["igImMul"][1]["argsT"][2]["name"] = "lhs" +defs["igImMul"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImMul"][1]["argsT"][3] = {} +defs["igImMul"][1]["argsT"][3]["name"] = "rhs" +defs["igImMul"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImMul"][1]["argsoriginal"] = "(const ImVec2& lhs,const ImVec2& rhs)" +defs["igImMul"][1]["call_args"] = "(lhs,rhs)" +defs["igImMul"][1]["cimguiname"] = "igImMul" +defs["igImMul"][1]["defaults"] = {} +defs["igImMul"][1]["funcname"] = "ImMul" +defs["igImMul"][1]["location"] = "imgui_internal:484" +defs["igImMul"][1]["nonUDT"] = 1 +defs["igImMul"][1]["ov_cimguiname"] = "igImMul" +defs["igImMul"][1]["ret"] = "void" +defs["igImMul"][1]["signature"] = "(const ImVec2,const ImVec2)" +defs["igImMul"][1]["stname"] = "" +defs["igImMul"]["(const ImVec2,const ImVec2)"] = defs["igImMul"][1] +defs["igImParseFormatFindEnd"] = {} +defs["igImParseFormatFindEnd"][1] = {} +defs["igImParseFormatFindEnd"][1]["args"] = "(const char* format)" +defs["igImParseFormatFindEnd"][1]["argsT"] = {} +defs["igImParseFormatFindEnd"][1]["argsT"][1] = {} +defs["igImParseFormatFindEnd"][1]["argsT"][1]["name"] = "format" +defs["igImParseFormatFindEnd"][1]["argsT"][1]["type"] = "const char*" +defs["igImParseFormatFindEnd"][1]["argsoriginal"] = "(const char* format)" +defs["igImParseFormatFindEnd"][1]["call_args"] = "(format)" +defs["igImParseFormatFindEnd"][1]["cimguiname"] = "igImParseFormatFindEnd" +defs["igImParseFormatFindEnd"][1]["defaults"] = {} +defs["igImParseFormatFindEnd"][1]["funcname"] = "ImParseFormatFindEnd" +defs["igImParseFormatFindEnd"][1]["location"] = "imgui_internal:366" +defs["igImParseFormatFindEnd"][1]["ov_cimguiname"] = "igImParseFormatFindEnd" +defs["igImParseFormatFindEnd"][1]["ret"] = "const char*" +defs["igImParseFormatFindEnd"][1]["signature"] = "(const char*)" +defs["igImParseFormatFindEnd"][1]["stname"] = "" +defs["igImParseFormatFindEnd"]["(const char*)"] = defs["igImParseFormatFindEnd"][1] +defs["igImParseFormatFindStart"] = {} +defs["igImParseFormatFindStart"][1] = {} +defs["igImParseFormatFindStart"][1]["args"] = "(const char* format)" +defs["igImParseFormatFindStart"][1]["argsT"] = {} +defs["igImParseFormatFindStart"][1]["argsT"][1] = {} +defs["igImParseFormatFindStart"][1]["argsT"][1]["name"] = "format" +defs["igImParseFormatFindStart"][1]["argsT"][1]["type"] = "const char*" +defs["igImParseFormatFindStart"][1]["argsoriginal"] = "(const char* format)" +defs["igImParseFormatFindStart"][1]["call_args"] = "(format)" +defs["igImParseFormatFindStart"][1]["cimguiname"] = "igImParseFormatFindStart" +defs["igImParseFormatFindStart"][1]["defaults"] = {} +defs["igImParseFormatFindStart"][1]["funcname"] = "ImParseFormatFindStart" +defs["igImParseFormatFindStart"][1]["location"] = "imgui_internal:365" +defs["igImParseFormatFindStart"][1]["ov_cimguiname"] = "igImParseFormatFindStart" +defs["igImParseFormatFindStart"][1]["ret"] = "const char*" +defs["igImParseFormatFindStart"][1]["signature"] = "(const char*)" +defs["igImParseFormatFindStart"][1]["stname"] = "" +defs["igImParseFormatFindStart"]["(const char*)"] = defs["igImParseFormatFindStart"][1] +defs["igImParseFormatPrecision"] = {} +defs["igImParseFormatPrecision"][1] = {} +defs["igImParseFormatPrecision"][1]["args"] = "(const char* format,int default_value)" +defs["igImParseFormatPrecision"][1]["argsT"] = {} +defs["igImParseFormatPrecision"][1]["argsT"][1] = {} +defs["igImParseFormatPrecision"][1]["argsT"][1]["name"] = "format" +defs["igImParseFormatPrecision"][1]["argsT"][1]["type"] = "const char*" +defs["igImParseFormatPrecision"][1]["argsT"][2] = {} +defs["igImParseFormatPrecision"][1]["argsT"][2]["name"] = "default_value" +defs["igImParseFormatPrecision"][1]["argsT"][2]["type"] = "int" +defs["igImParseFormatPrecision"][1]["argsoriginal"] = "(const char* format,int default_value)" +defs["igImParseFormatPrecision"][1]["call_args"] = "(format,default_value)" +defs["igImParseFormatPrecision"][1]["cimguiname"] = "igImParseFormatPrecision" +defs["igImParseFormatPrecision"][1]["defaults"] = {} +defs["igImParseFormatPrecision"][1]["funcname"] = "ImParseFormatPrecision" +defs["igImParseFormatPrecision"][1]["location"] = "imgui_internal:370" +defs["igImParseFormatPrecision"][1]["ov_cimguiname"] = "igImParseFormatPrecision" +defs["igImParseFormatPrecision"][1]["ret"] = "int" +defs["igImParseFormatPrecision"][1]["signature"] = "(const char*,int)" +defs["igImParseFormatPrecision"][1]["stname"] = "" +defs["igImParseFormatPrecision"]["(const char*,int)"] = defs["igImParseFormatPrecision"][1] +defs["igImParseFormatSanitizeForPrinting"] = {} +defs["igImParseFormatSanitizeForPrinting"][1] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["args"] = "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][1] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][1]["name"] = "fmt_in" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][1]["type"] = "const char*" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][2] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][2]["name"] = "fmt_out" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][2]["type"] = "char*" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][3] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][3]["name"] = "fmt_out_size" +defs["igImParseFormatSanitizeForPrinting"][1]["argsT"][3]["type"] = "size_t" +defs["igImParseFormatSanitizeForPrinting"][1]["argsoriginal"] = "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)" +defs["igImParseFormatSanitizeForPrinting"][1]["call_args"] = "(fmt_in,fmt_out,fmt_out_size)" +defs["igImParseFormatSanitizeForPrinting"][1]["cimguiname"] = "igImParseFormatSanitizeForPrinting" +defs["igImParseFormatSanitizeForPrinting"][1]["defaults"] = {} +defs["igImParseFormatSanitizeForPrinting"][1]["funcname"] = "ImParseFormatSanitizeForPrinting" +defs["igImParseFormatSanitizeForPrinting"][1]["location"] = "imgui_internal:368" +defs["igImParseFormatSanitizeForPrinting"][1]["ov_cimguiname"] = "igImParseFormatSanitizeForPrinting" +defs["igImParseFormatSanitizeForPrinting"][1]["ret"] = "void" +defs["igImParseFormatSanitizeForPrinting"][1]["signature"] = "(const char*,char*,size_t)" +defs["igImParseFormatSanitizeForPrinting"][1]["stname"] = "" +defs["igImParseFormatSanitizeForPrinting"]["(const char*,char*,size_t)"] = defs["igImParseFormatSanitizeForPrinting"][1] +defs["igImParseFormatSanitizeForScanning"] = {} +defs["igImParseFormatSanitizeForScanning"][1] = {} +defs["igImParseFormatSanitizeForScanning"][1]["args"] = "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"] = {} +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][1] = {} +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][1]["name"] = "fmt_in" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][1]["type"] = "const char*" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][2] = {} +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][2]["name"] = "fmt_out" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][2]["type"] = "char*" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][3] = {} +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][3]["name"] = "fmt_out_size" +defs["igImParseFormatSanitizeForScanning"][1]["argsT"][3]["type"] = "size_t" +defs["igImParseFormatSanitizeForScanning"][1]["argsoriginal"] = "(const char* fmt_in,char* fmt_out,size_t fmt_out_size)" +defs["igImParseFormatSanitizeForScanning"][1]["call_args"] = "(fmt_in,fmt_out,fmt_out_size)" +defs["igImParseFormatSanitizeForScanning"][1]["cimguiname"] = "igImParseFormatSanitizeForScanning" +defs["igImParseFormatSanitizeForScanning"][1]["defaults"] = {} +defs["igImParseFormatSanitizeForScanning"][1]["funcname"] = "ImParseFormatSanitizeForScanning" +defs["igImParseFormatSanitizeForScanning"][1]["location"] = "imgui_internal:369" +defs["igImParseFormatSanitizeForScanning"][1]["ov_cimguiname"] = "igImParseFormatSanitizeForScanning" +defs["igImParseFormatSanitizeForScanning"][1]["ret"] = "const char*" +defs["igImParseFormatSanitizeForScanning"][1]["signature"] = "(const char*,char*,size_t)" +defs["igImParseFormatSanitizeForScanning"][1]["stname"] = "" +defs["igImParseFormatSanitizeForScanning"]["(const char*,char*,size_t)"] = defs["igImParseFormatSanitizeForScanning"][1] +defs["igImParseFormatTrimDecorations"] = {} +defs["igImParseFormatTrimDecorations"][1] = {} +defs["igImParseFormatTrimDecorations"][1]["args"] = "(const char* format,char* buf,size_t buf_size)" +defs["igImParseFormatTrimDecorations"][1]["argsT"] = {} +defs["igImParseFormatTrimDecorations"][1]["argsT"][1] = {} +defs["igImParseFormatTrimDecorations"][1]["argsT"][1]["name"] = "format" +defs["igImParseFormatTrimDecorations"][1]["argsT"][1]["type"] = "const char*" +defs["igImParseFormatTrimDecorations"][1]["argsT"][2] = {} +defs["igImParseFormatTrimDecorations"][1]["argsT"][2]["name"] = "buf" +defs["igImParseFormatTrimDecorations"][1]["argsT"][2]["type"] = "char*" +defs["igImParseFormatTrimDecorations"][1]["argsT"][3] = {} +defs["igImParseFormatTrimDecorations"][1]["argsT"][3]["name"] = "buf_size" +defs["igImParseFormatTrimDecorations"][1]["argsT"][3]["type"] = "size_t" +defs["igImParseFormatTrimDecorations"][1]["argsoriginal"] = "(const char* format,char* buf,size_t buf_size)" +defs["igImParseFormatTrimDecorations"][1]["call_args"] = "(format,buf,buf_size)" +defs["igImParseFormatTrimDecorations"][1]["cimguiname"] = "igImParseFormatTrimDecorations" +defs["igImParseFormatTrimDecorations"][1]["defaults"] = {} +defs["igImParseFormatTrimDecorations"][1]["funcname"] = "ImParseFormatTrimDecorations" +defs["igImParseFormatTrimDecorations"][1]["location"] = "imgui_internal:367" +defs["igImParseFormatTrimDecorations"][1]["ov_cimguiname"] = "igImParseFormatTrimDecorations" +defs["igImParseFormatTrimDecorations"][1]["ret"] = "const char*" +defs["igImParseFormatTrimDecorations"][1]["signature"] = "(const char*,char*,size_t)" +defs["igImParseFormatTrimDecorations"][1]["stname"] = "" +defs["igImParseFormatTrimDecorations"]["(const char*,char*,size_t)"] = defs["igImParseFormatTrimDecorations"][1] +defs["igImPow"] = {} +defs["igImPow"][1] = {} +defs["igImPow"][1]["args"] = "(float x,float y)" +defs["igImPow"][1]["argsT"] = {} +defs["igImPow"][1]["argsT"][1] = {} +defs["igImPow"][1]["argsT"][1]["name"] = "x" +defs["igImPow"][1]["argsT"][1]["type"] = "float" +defs["igImPow"][1]["argsT"][2] = {} +defs["igImPow"][1]["argsT"][2]["name"] = "y" +defs["igImPow"][1]["argsT"][2]["type"] = "float" +defs["igImPow"][1]["argsoriginal"] = "(float x,float y)" +defs["igImPow"][1]["call_args"] = "(x,y)" +defs["igImPow"][1]["cimguiname"] = "igImPow" +defs["igImPow"][1]["defaults"] = {} +defs["igImPow"][1]["funcname"] = "ImPow" +defs["igImPow"][1]["location"] = "imgui_internal:440" +defs["igImPow"][1]["ov_cimguiname"] = "igImPow_Float" +defs["igImPow"][1]["ret"] = "float" +defs["igImPow"][1]["signature"] = "(float,float)" +defs["igImPow"][1]["stname"] = "" +defs["igImPow"][2] = {} +defs["igImPow"][2]["args"] = "(double x,double y)" +defs["igImPow"][2]["argsT"] = {} +defs["igImPow"][2]["argsT"][1] = {} +defs["igImPow"][2]["argsT"][1]["name"] = "x" +defs["igImPow"][2]["argsT"][1]["type"] = "double" +defs["igImPow"][2]["argsT"][2] = {} +defs["igImPow"][2]["argsT"][2]["name"] = "y" +defs["igImPow"][2]["argsT"][2]["type"] = "double" +defs["igImPow"][2]["argsoriginal"] = "(double x,double y)" +defs["igImPow"][2]["call_args"] = "(x,y)" +defs["igImPow"][2]["cimguiname"] = "igImPow" +defs["igImPow"][2]["defaults"] = {} +defs["igImPow"][2]["funcname"] = "ImPow" +defs["igImPow"][2]["location"] = "imgui_internal:441" +defs["igImPow"][2]["ov_cimguiname"] = "igImPow_double" +defs["igImPow"][2]["ret"] = "double" +defs["igImPow"][2]["signature"] = "(double,double)" +defs["igImPow"][2]["stname"] = "" +defs["igImPow"]["(double,double)"] = defs["igImPow"][2] +defs["igImPow"]["(float,float)"] = defs["igImPow"][1] +defs["igImQsort"] = {} +defs["igImQsort"][1] = {} +defs["igImQsort"][1]["args"] = "(void* base,size_t count,size_t size_of_element,int(*compare_func)(void const*,void const*))" +defs["igImQsort"][1]["argsT"] = {} +defs["igImQsort"][1]["argsT"][1] = {} +defs["igImQsort"][1]["argsT"][1]["name"] = "base" +defs["igImQsort"][1]["argsT"][1]["type"] = "void*" +defs["igImQsort"][1]["argsT"][2] = {} +defs["igImQsort"][1]["argsT"][2]["name"] = "count" +defs["igImQsort"][1]["argsT"][2]["type"] = "size_t" +defs["igImQsort"][1]["argsT"][3] = {} +defs["igImQsort"][1]["argsT"][3]["name"] = "size_of_element" +defs["igImQsort"][1]["argsT"][3]["type"] = "size_t" +defs["igImQsort"][1]["argsT"][4] = {} +defs["igImQsort"][1]["argsT"][4]["name"] = "compare_func" +defs["igImQsort"][1]["argsT"][4]["ret"] = "int" +defs["igImQsort"][1]["argsT"][4]["signature"] = "(void const*,void const*)" +defs["igImQsort"][1]["argsT"][4]["type"] = "int(*)(void const*,void const*)" +defs["igImQsort"][1]["argsoriginal"] = "(void* base,size_t count,size_t size_of_element,int(*compare_func)(void const*,void const*))" +defs["igImQsort"][1]["call_args"] = "(base,count,size_of_element,compare_func)" +defs["igImQsort"][1]["cimguiname"] = "igImQsort" +defs["igImQsort"][1]["defaults"] = {} +defs["igImQsort"][1]["funcname"] = "ImQsort" +defs["igImQsort"][1]["location"] = "imgui_internal:330" +defs["igImQsort"][1]["ov_cimguiname"] = "igImQsort" +defs["igImQsort"][1]["ret"] = "void" +defs["igImQsort"][1]["signature"] = "(void*,size_t,size_t,int(*)(void const*,void const*))" +defs["igImQsort"][1]["stname"] = "" +defs["igImQsort"]["(void*,size_t,size_t,int(*)(void const*,void const*))"] = defs["igImQsort"][1] +defs["igImRotate"] = {} +defs["igImRotate"][1] = {} +defs["igImRotate"][1]["args"] = "(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a)" +defs["igImRotate"][1]["argsT"] = {} +defs["igImRotate"][1]["argsT"][1] = {} +defs["igImRotate"][1]["argsT"][1]["name"] = "pOut" +defs["igImRotate"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImRotate"][1]["argsT"][2] = {} +defs["igImRotate"][1]["argsT"][2]["name"] = "v" +defs["igImRotate"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImRotate"][1]["argsT"][3] = {} +defs["igImRotate"][1]["argsT"][3]["name"] = "cos_a" +defs["igImRotate"][1]["argsT"][3]["type"] = "float" +defs["igImRotate"][1]["argsT"][4] = {} +defs["igImRotate"][1]["argsT"][4]["name"] = "sin_a" +defs["igImRotate"][1]["argsT"][4]["type"] = "float" +defs["igImRotate"][1]["argsoriginal"] = "(const ImVec2& v,float cos_a,float sin_a)" +defs["igImRotate"][1]["call_args"] = "(v,cos_a,sin_a)" +defs["igImRotate"][1]["cimguiname"] = "igImRotate" +defs["igImRotate"][1]["defaults"] = {} +defs["igImRotate"][1]["funcname"] = "ImRotate" +defs["igImRotate"][1]["location"] = "imgui_internal:482" +defs["igImRotate"][1]["nonUDT"] = 1 +defs["igImRotate"][1]["ov_cimguiname"] = "igImRotate" +defs["igImRotate"][1]["ret"] = "void" +defs["igImRotate"][1]["signature"] = "(const ImVec2,float,float)" +defs["igImRotate"][1]["stname"] = "" +defs["igImRotate"]["(const ImVec2,float,float)"] = defs["igImRotate"][1] +defs["igImRsqrt"] = {} +defs["igImRsqrt"][1] = {} +defs["igImRsqrt"][1]["args"] = "(float x)" +defs["igImRsqrt"][1]["argsT"] = {} +defs["igImRsqrt"][1]["argsT"][1] = {} +defs["igImRsqrt"][1]["argsT"][1]["name"] = "x" +defs["igImRsqrt"][1]["argsT"][1]["type"] = "float" +defs["igImRsqrt"][1]["argsoriginal"] = "(float x)" +defs["igImRsqrt"][1]["call_args"] = "(x)" +defs["igImRsqrt"][1]["cimguiname"] = "igImRsqrt" +defs["igImRsqrt"][1]["defaults"] = {} +defs["igImRsqrt"][1]["funcname"] = "ImRsqrt" +defs["igImRsqrt"][1]["location"] = "imgui_internal:450" +defs["igImRsqrt"][1]["ov_cimguiname"] = "igImRsqrt_Float" +defs["igImRsqrt"][1]["ret"] = "float" +defs["igImRsqrt"][1]["signature"] = "(float)" +defs["igImRsqrt"][1]["stname"] = "" +defs["igImRsqrt"][2] = {} +defs["igImRsqrt"][2]["args"] = "(double x)" +defs["igImRsqrt"][2]["argsT"] = {} +defs["igImRsqrt"][2]["argsT"][1] = {} +defs["igImRsqrt"][2]["argsT"][1]["name"] = "x" +defs["igImRsqrt"][2]["argsT"][1]["type"] = "double" +defs["igImRsqrt"][2]["argsoriginal"] = "(double x)" +defs["igImRsqrt"][2]["call_args"] = "(x)" +defs["igImRsqrt"][2]["cimguiname"] = "igImRsqrt" +defs["igImRsqrt"][2]["defaults"] = {} +defs["igImRsqrt"][2]["funcname"] = "ImRsqrt" +defs["igImRsqrt"][2]["location"] = "imgui_internal:454" +defs["igImRsqrt"][2]["ov_cimguiname"] = "igImRsqrt_double" +defs["igImRsqrt"][2]["ret"] = "double" +defs["igImRsqrt"][2]["signature"] = "(double)" +defs["igImRsqrt"][2]["stname"] = "" +defs["igImRsqrt"]["(double)"] = defs["igImRsqrt"][2] +defs["igImRsqrt"]["(float)"] = defs["igImRsqrt"][1] +defs["igImSaturate"] = {} +defs["igImSaturate"][1] = {} +defs["igImSaturate"][1]["args"] = "(float f)" +defs["igImSaturate"][1]["argsT"] = {} +defs["igImSaturate"][1]["argsT"][1] = {} +defs["igImSaturate"][1]["argsT"][1]["name"] = "f" +defs["igImSaturate"][1]["argsT"][1]["type"] = "float" +defs["igImSaturate"][1]["argsoriginal"] = "(float f)" +defs["igImSaturate"][1]["call_args"] = "(f)" +defs["igImSaturate"][1]["cimguiname"] = "igImSaturate" +defs["igImSaturate"][1]["defaults"] = {} +defs["igImSaturate"][1]["funcname"] = "ImSaturate" +defs["igImSaturate"][1]["location"] = "imgui_internal:472" +defs["igImSaturate"][1]["ov_cimguiname"] = "igImSaturate" +defs["igImSaturate"][1]["ret"] = "float" +defs["igImSaturate"][1]["signature"] = "(float)" +defs["igImSaturate"][1]["stname"] = "" +defs["igImSaturate"]["(float)"] = defs["igImSaturate"][1] +defs["igImSign"] = {} +defs["igImSign"][1] = {} +defs["igImSign"][1]["args"] = "(float x)" +defs["igImSign"][1]["argsT"] = {} +defs["igImSign"][1]["argsT"][1] = {} +defs["igImSign"][1]["argsT"][1]["name"] = "x" +defs["igImSign"][1]["argsT"][1]["type"] = "float" +defs["igImSign"][1]["argsoriginal"] = "(float x)" +defs["igImSign"][1]["call_args"] = "(x)" +defs["igImSign"][1]["cimguiname"] = "igImSign" +defs["igImSign"][1]["defaults"] = {} +defs["igImSign"][1]["funcname"] = "ImSign" +defs["igImSign"][1]["location"] = "imgui_internal:447" +defs["igImSign"][1]["ov_cimguiname"] = "igImSign_Float" +defs["igImSign"][1]["ret"] = "float" +defs["igImSign"][1]["signature"] = "(float)" +defs["igImSign"][1]["stname"] = "" +defs["igImSign"][2] = {} +defs["igImSign"][2]["args"] = "(double x)" +defs["igImSign"][2]["argsT"] = {} +defs["igImSign"][2]["argsT"][1] = {} +defs["igImSign"][2]["argsT"][1]["name"] = "x" +defs["igImSign"][2]["argsT"][1]["type"] = "double" +defs["igImSign"][2]["argsoriginal"] = "(double x)" +defs["igImSign"][2]["call_args"] = "(x)" +defs["igImSign"][2]["cimguiname"] = "igImSign" +defs["igImSign"][2]["defaults"] = {} +defs["igImSign"][2]["funcname"] = "ImSign" +defs["igImSign"][2]["location"] = "imgui_internal:448" +defs["igImSign"][2]["ov_cimguiname"] = "igImSign_double" +defs["igImSign"][2]["ret"] = "double" +defs["igImSign"][2]["signature"] = "(double)" +defs["igImSign"][2]["stname"] = "" +defs["igImSign"]["(double)"] = defs["igImSign"][2] +defs["igImSign"]["(float)"] = defs["igImSign"][1] +defs["igImStrSkipBlank"] = {} +defs["igImStrSkipBlank"][1] = {} +defs["igImStrSkipBlank"][1]["args"] = "(const char* str)" +defs["igImStrSkipBlank"][1]["argsT"] = {} +defs["igImStrSkipBlank"][1]["argsT"][1] = {} +defs["igImStrSkipBlank"][1]["argsT"][1]["name"] = "str" +defs["igImStrSkipBlank"][1]["argsT"][1]["type"] = "const char*" +defs["igImStrSkipBlank"][1]["argsoriginal"] = "(const char* str)" +defs["igImStrSkipBlank"][1]["call_args"] = "(str)" +defs["igImStrSkipBlank"][1]["cimguiname"] = "igImStrSkipBlank" +defs["igImStrSkipBlank"][1]["defaults"] = {} +defs["igImStrSkipBlank"][1]["funcname"] = "ImStrSkipBlank" +defs["igImStrSkipBlank"][1]["location"] = "imgui_internal:353" +defs["igImStrSkipBlank"][1]["ov_cimguiname"] = "igImStrSkipBlank" +defs["igImStrSkipBlank"][1]["ret"] = "const char*" +defs["igImStrSkipBlank"][1]["signature"] = "(const char*)" +defs["igImStrSkipBlank"][1]["stname"] = "" +defs["igImStrSkipBlank"]["(const char*)"] = defs["igImStrSkipBlank"][1] +defs["igImStrTrimBlanks"] = {} +defs["igImStrTrimBlanks"][1] = {} +defs["igImStrTrimBlanks"][1]["args"] = "(char* str)" +defs["igImStrTrimBlanks"][1]["argsT"] = {} +defs["igImStrTrimBlanks"][1]["argsT"][1] = {} +defs["igImStrTrimBlanks"][1]["argsT"][1]["name"] = "str" +defs["igImStrTrimBlanks"][1]["argsT"][1]["type"] = "char*" +defs["igImStrTrimBlanks"][1]["argsoriginal"] = "(char* str)" +defs["igImStrTrimBlanks"][1]["call_args"] = "(str)" +defs["igImStrTrimBlanks"][1]["cimguiname"] = "igImStrTrimBlanks" +defs["igImStrTrimBlanks"][1]["defaults"] = {} +defs["igImStrTrimBlanks"][1]["funcname"] = "ImStrTrimBlanks" +defs["igImStrTrimBlanks"][1]["location"] = "imgui_internal:352" +defs["igImStrTrimBlanks"][1]["ov_cimguiname"] = "igImStrTrimBlanks" +defs["igImStrTrimBlanks"][1]["ret"] = "void" +defs["igImStrTrimBlanks"][1]["signature"] = "(char*)" +defs["igImStrTrimBlanks"][1]["stname"] = "" +defs["igImStrTrimBlanks"]["(char*)"] = defs["igImStrTrimBlanks"][1] +defs["igImStrbolW"] = {} +defs["igImStrbolW"][1] = {} +defs["igImStrbolW"][1]["args"] = "(const ImWchar* buf_mid_line,const ImWchar* buf_begin)" +defs["igImStrbolW"][1]["argsT"] = {} +defs["igImStrbolW"][1]["argsT"][1] = {} +defs["igImStrbolW"][1]["argsT"][1]["name"] = "buf_mid_line" +defs["igImStrbolW"][1]["argsT"][1]["type"] = "const ImWchar*" +defs["igImStrbolW"][1]["argsT"][2] = {} +defs["igImStrbolW"][1]["argsT"][2]["name"] = "buf_begin" +defs["igImStrbolW"][1]["argsT"][2]["type"] = "const ImWchar*" +defs["igImStrbolW"][1]["argsoriginal"] = "(const ImWchar* buf_mid_line,const ImWchar* buf_begin)" +defs["igImStrbolW"][1]["call_args"] = "(buf_mid_line,buf_begin)" +defs["igImStrbolW"][1]["cimguiname"] = "igImStrbolW" +defs["igImStrbolW"][1]["defaults"] = {} +defs["igImStrbolW"][1]["funcname"] = "ImStrbolW" +defs["igImStrbolW"][1]["location"] = "imgui_internal:350" +defs["igImStrbolW"][1]["ov_cimguiname"] = "igImStrbolW" +defs["igImStrbolW"][1]["ret"] = "const ImWchar*" +defs["igImStrbolW"][1]["signature"] = "(const ImWchar*,const ImWchar*)" +defs["igImStrbolW"][1]["stname"] = "" +defs["igImStrbolW"]["(const ImWchar*,const ImWchar*)"] = defs["igImStrbolW"][1] +defs["igImStrchrRange"] = {} +defs["igImStrchrRange"][1] = {} +defs["igImStrchrRange"][1]["args"] = "(const char* str_begin,const char* str_end,char c)" +defs["igImStrchrRange"][1]["argsT"] = {} +defs["igImStrchrRange"][1]["argsT"][1] = {} +defs["igImStrchrRange"][1]["argsT"][1]["name"] = "str_begin" +defs["igImStrchrRange"][1]["argsT"][1]["type"] = "const char*" +defs["igImStrchrRange"][1]["argsT"][2] = {} +defs["igImStrchrRange"][1]["argsT"][2]["name"] = "str_end" +defs["igImStrchrRange"][1]["argsT"][2]["type"] = "const char*" +defs["igImStrchrRange"][1]["argsT"][3] = {} +defs["igImStrchrRange"][1]["argsT"][3]["name"] = "c" +defs["igImStrchrRange"][1]["argsT"][3]["type"] = "char" +defs["igImStrchrRange"][1]["argsoriginal"] = "(const char* str_begin,const char* str_end,char c)" +defs["igImStrchrRange"][1]["call_args"] = "(str_begin,str_end,c)" +defs["igImStrchrRange"][1]["cimguiname"] = "igImStrchrRange" +defs["igImStrchrRange"][1]["defaults"] = {} +defs["igImStrchrRange"][1]["funcname"] = "ImStrchrRange" +defs["igImStrchrRange"][1]["location"] = "imgui_internal:347" +defs["igImStrchrRange"][1]["ov_cimguiname"] = "igImStrchrRange" +defs["igImStrchrRange"][1]["ret"] = "const char*" +defs["igImStrchrRange"][1]["signature"] = "(const char*,const char*,char)" +defs["igImStrchrRange"][1]["stname"] = "" +defs["igImStrchrRange"]["(const char*,const char*,char)"] = defs["igImStrchrRange"][1] +defs["igImStrdup"] = {} +defs["igImStrdup"][1] = {} +defs["igImStrdup"][1]["args"] = "(const char* str)" +defs["igImStrdup"][1]["argsT"] = {} +defs["igImStrdup"][1]["argsT"][1] = {} +defs["igImStrdup"][1]["argsT"][1]["name"] = "str" +defs["igImStrdup"][1]["argsT"][1]["type"] = "const char*" +defs["igImStrdup"][1]["argsoriginal"] = "(const char* str)" +defs["igImStrdup"][1]["call_args"] = "(str)" +defs["igImStrdup"][1]["cimguiname"] = "igImStrdup" +defs["igImStrdup"][1]["defaults"] = {} +defs["igImStrdup"][1]["funcname"] = "ImStrdup" +defs["igImStrdup"][1]["location"] = "imgui_internal:345" +defs["igImStrdup"][1]["ov_cimguiname"] = "igImStrdup" +defs["igImStrdup"][1]["ret"] = "char*" +defs["igImStrdup"][1]["signature"] = "(const char*)" +defs["igImStrdup"][1]["stname"] = "" +defs["igImStrdup"]["(const char*)"] = defs["igImStrdup"][1] +defs["igImStrdupcpy"] = {} +defs["igImStrdupcpy"][1] = {} +defs["igImStrdupcpy"][1]["args"] = "(char* dst,size_t* p_dst_size,const char* str)" +defs["igImStrdupcpy"][1]["argsT"] = {} +defs["igImStrdupcpy"][1]["argsT"][1] = {} +defs["igImStrdupcpy"][1]["argsT"][1]["name"] = "dst" +defs["igImStrdupcpy"][1]["argsT"][1]["type"] = "char*" +defs["igImStrdupcpy"][1]["argsT"][2] = {} +defs["igImStrdupcpy"][1]["argsT"][2]["name"] = "p_dst_size" +defs["igImStrdupcpy"][1]["argsT"][2]["type"] = "size_t*" +defs["igImStrdupcpy"][1]["argsT"][3] = {} +defs["igImStrdupcpy"][1]["argsT"][3]["name"] = "str" +defs["igImStrdupcpy"][1]["argsT"][3]["type"] = "const char*" +defs["igImStrdupcpy"][1]["argsoriginal"] = "(char* dst,size_t* p_dst_size,const char* str)" +defs["igImStrdupcpy"][1]["call_args"] = "(dst,p_dst_size,str)" +defs["igImStrdupcpy"][1]["cimguiname"] = "igImStrdupcpy" +defs["igImStrdupcpy"][1]["defaults"] = {} +defs["igImStrdupcpy"][1]["funcname"] = "ImStrdupcpy" +defs["igImStrdupcpy"][1]["location"] = "imgui_internal:346" +defs["igImStrdupcpy"][1]["ov_cimguiname"] = "igImStrdupcpy" +defs["igImStrdupcpy"][1]["ret"] = "char*" +defs["igImStrdupcpy"][1]["signature"] = "(char*,size_t*,const char*)" +defs["igImStrdupcpy"][1]["stname"] = "" +defs["igImStrdupcpy"]["(char*,size_t*,const char*)"] = defs["igImStrdupcpy"][1] +defs["igImStreolRange"] = {} +defs["igImStreolRange"][1] = {} +defs["igImStreolRange"][1]["args"] = "(const char* str,const char* str_end)" +defs["igImStreolRange"][1]["argsT"] = {} +defs["igImStreolRange"][1]["argsT"][1] = {} +defs["igImStreolRange"][1]["argsT"][1]["name"] = "str" +defs["igImStreolRange"][1]["argsT"][1]["type"] = "const char*" +defs["igImStreolRange"][1]["argsT"][2] = {} +defs["igImStreolRange"][1]["argsT"][2]["name"] = "str_end" +defs["igImStreolRange"][1]["argsT"][2]["type"] = "const char*" +defs["igImStreolRange"][1]["argsoriginal"] = "(const char* str,const char* str_end)" +defs["igImStreolRange"][1]["call_args"] = "(str,str_end)" +defs["igImStreolRange"][1]["cimguiname"] = "igImStreolRange" +defs["igImStreolRange"][1]["defaults"] = {} +defs["igImStreolRange"][1]["funcname"] = "ImStreolRange" +defs["igImStreolRange"][1]["location"] = "imgui_internal:349" +defs["igImStreolRange"][1]["ov_cimguiname"] = "igImStreolRange" +defs["igImStreolRange"][1]["ret"] = "const char*" +defs["igImStreolRange"][1]["signature"] = "(const char*,const char*)" +defs["igImStreolRange"][1]["stname"] = "" +defs["igImStreolRange"]["(const char*,const char*)"] = defs["igImStreolRange"][1] +defs["igImStricmp"] = {} +defs["igImStricmp"][1] = {} +defs["igImStricmp"][1]["args"] = "(const char* str1,const char* str2)" +defs["igImStricmp"][1]["argsT"] = {} +defs["igImStricmp"][1]["argsT"][1] = {} +defs["igImStricmp"][1]["argsT"][1]["name"] = "str1" +defs["igImStricmp"][1]["argsT"][1]["type"] = "const char*" +defs["igImStricmp"][1]["argsT"][2] = {} +defs["igImStricmp"][1]["argsT"][2]["name"] = "str2" +defs["igImStricmp"][1]["argsT"][2]["type"] = "const char*" +defs["igImStricmp"][1]["argsoriginal"] = "(const char* str1,const char* str2)" +defs["igImStricmp"][1]["call_args"] = "(str1,str2)" +defs["igImStricmp"][1]["cimguiname"] = "igImStricmp" +defs["igImStricmp"][1]["defaults"] = {} +defs["igImStricmp"][1]["funcname"] = "ImStricmp" +defs["igImStricmp"][1]["location"] = "imgui_internal:342" +defs["igImStricmp"][1]["ov_cimguiname"] = "igImStricmp" +defs["igImStricmp"][1]["ret"] = "int" +defs["igImStricmp"][1]["signature"] = "(const char*,const char*)" +defs["igImStricmp"][1]["stname"] = "" +defs["igImStricmp"]["(const char*,const char*)"] = defs["igImStricmp"][1] +defs["igImStristr"] = {} +defs["igImStristr"][1] = {} +defs["igImStristr"][1]["args"] = "(const char* haystack,const char* haystack_end,const char* needle,const char* needle_end)" +defs["igImStristr"][1]["argsT"] = {} +defs["igImStristr"][1]["argsT"][1] = {} +defs["igImStristr"][1]["argsT"][1]["name"] = "haystack" +defs["igImStristr"][1]["argsT"][1]["type"] = "const char*" +defs["igImStristr"][1]["argsT"][2] = {} +defs["igImStristr"][1]["argsT"][2]["name"] = "haystack_end" +defs["igImStristr"][1]["argsT"][2]["type"] = "const char*" +defs["igImStristr"][1]["argsT"][3] = {} +defs["igImStristr"][1]["argsT"][3]["name"] = "needle" +defs["igImStristr"][1]["argsT"][3]["type"] = "const char*" +defs["igImStristr"][1]["argsT"][4] = {} +defs["igImStristr"][1]["argsT"][4]["name"] = "needle_end" +defs["igImStristr"][1]["argsT"][4]["type"] = "const char*" +defs["igImStristr"][1]["argsoriginal"] = "(const char* haystack,const char* haystack_end,const char* needle,const char* needle_end)" +defs["igImStristr"][1]["call_args"] = "(haystack,haystack_end,needle,needle_end)" +defs["igImStristr"][1]["cimguiname"] = "igImStristr" +defs["igImStristr"][1]["defaults"] = {} +defs["igImStristr"][1]["funcname"] = "ImStristr" +defs["igImStristr"][1]["location"] = "imgui_internal:351" +defs["igImStristr"][1]["ov_cimguiname"] = "igImStristr" +defs["igImStristr"][1]["ret"] = "const char*" +defs["igImStristr"][1]["signature"] = "(const char*,const char*,const char*,const char*)" +defs["igImStristr"][1]["stname"] = "" +defs["igImStristr"]["(const char*,const char*,const char*,const char*)"] = defs["igImStristr"][1] +defs["igImStrlenW"] = {} +defs["igImStrlenW"][1] = {} +defs["igImStrlenW"][1]["args"] = "(const ImWchar* str)" +defs["igImStrlenW"][1]["argsT"] = {} +defs["igImStrlenW"][1]["argsT"][1] = {} +defs["igImStrlenW"][1]["argsT"][1]["name"] = "str" +defs["igImStrlenW"][1]["argsT"][1]["type"] = "const ImWchar*" +defs["igImStrlenW"][1]["argsoriginal"] = "(const ImWchar* str)" +defs["igImStrlenW"][1]["call_args"] = "(str)" +defs["igImStrlenW"][1]["cimguiname"] = "igImStrlenW" +defs["igImStrlenW"][1]["defaults"] = {} +defs["igImStrlenW"][1]["funcname"] = "ImStrlenW" +defs["igImStrlenW"][1]["location"] = "imgui_internal:348" +defs["igImStrlenW"][1]["ov_cimguiname"] = "igImStrlenW" +defs["igImStrlenW"][1]["ret"] = "int" +defs["igImStrlenW"][1]["signature"] = "(const ImWchar*)" +defs["igImStrlenW"][1]["stname"] = "" +defs["igImStrlenW"]["(const ImWchar*)"] = defs["igImStrlenW"][1] +defs["igImStrncpy"] = {} +defs["igImStrncpy"][1] = {} +defs["igImStrncpy"][1]["args"] = "(char* dst,const char* src,size_t count)" +defs["igImStrncpy"][1]["argsT"] = {} +defs["igImStrncpy"][1]["argsT"][1] = {} +defs["igImStrncpy"][1]["argsT"][1]["name"] = "dst" +defs["igImStrncpy"][1]["argsT"][1]["type"] = "char*" +defs["igImStrncpy"][1]["argsT"][2] = {} +defs["igImStrncpy"][1]["argsT"][2]["name"] = "src" +defs["igImStrncpy"][1]["argsT"][2]["type"] = "const char*" +defs["igImStrncpy"][1]["argsT"][3] = {} +defs["igImStrncpy"][1]["argsT"][3]["name"] = "count" +defs["igImStrncpy"][1]["argsT"][3]["type"] = "size_t" +defs["igImStrncpy"][1]["argsoriginal"] = "(char* dst,const char* src,size_t count)" +defs["igImStrncpy"][1]["call_args"] = "(dst,src,count)" +defs["igImStrncpy"][1]["cimguiname"] = "igImStrncpy" +defs["igImStrncpy"][1]["defaults"] = {} +defs["igImStrncpy"][1]["funcname"] = "ImStrncpy" +defs["igImStrncpy"][1]["location"] = "imgui_internal:344" +defs["igImStrncpy"][1]["ov_cimguiname"] = "igImStrncpy" +defs["igImStrncpy"][1]["ret"] = "void" +defs["igImStrncpy"][1]["signature"] = "(char*,const char*,size_t)" +defs["igImStrncpy"][1]["stname"] = "" +defs["igImStrncpy"]["(char*,const char*,size_t)"] = defs["igImStrncpy"][1] +defs["igImStrnicmp"] = {} +defs["igImStrnicmp"][1] = {} +defs["igImStrnicmp"][1]["args"] = "(const char* str1,const char* str2,size_t count)" +defs["igImStrnicmp"][1]["argsT"] = {} +defs["igImStrnicmp"][1]["argsT"][1] = {} +defs["igImStrnicmp"][1]["argsT"][1]["name"] = "str1" +defs["igImStrnicmp"][1]["argsT"][1]["type"] = "const char*" +defs["igImStrnicmp"][1]["argsT"][2] = {} +defs["igImStrnicmp"][1]["argsT"][2]["name"] = "str2" +defs["igImStrnicmp"][1]["argsT"][2]["type"] = "const char*" +defs["igImStrnicmp"][1]["argsT"][3] = {} +defs["igImStrnicmp"][1]["argsT"][3]["name"] = "count" +defs["igImStrnicmp"][1]["argsT"][3]["type"] = "size_t" +defs["igImStrnicmp"][1]["argsoriginal"] = "(const char* str1,const char* str2,size_t count)" +defs["igImStrnicmp"][1]["call_args"] = "(str1,str2,count)" +defs["igImStrnicmp"][1]["cimguiname"] = "igImStrnicmp" +defs["igImStrnicmp"][1]["defaults"] = {} +defs["igImStrnicmp"][1]["funcname"] = "ImStrnicmp" +defs["igImStrnicmp"][1]["location"] = "imgui_internal:343" +defs["igImStrnicmp"][1]["ov_cimguiname"] = "igImStrnicmp" +defs["igImStrnicmp"][1]["ret"] = "int" +defs["igImStrnicmp"][1]["signature"] = "(const char*,const char*,size_t)" +defs["igImStrnicmp"][1]["stname"] = "" +defs["igImStrnicmp"]["(const char*,const char*,size_t)"] = defs["igImStrnicmp"][1] +defs["igImTextCharFromUtf8"] = {} +defs["igImTextCharFromUtf8"][1] = {} +defs["igImTextCharFromUtf8"][1]["args"] = "(unsigned int* out_char,const char* in_text,const char* in_text_end)" +defs["igImTextCharFromUtf8"][1]["argsT"] = {} +defs["igImTextCharFromUtf8"][1]["argsT"][1] = {} +defs["igImTextCharFromUtf8"][1]["argsT"][1]["name"] = "out_char" +defs["igImTextCharFromUtf8"][1]["argsT"][1]["type"] = "unsigned int*" +defs["igImTextCharFromUtf8"][1]["argsT"][2] = {} +defs["igImTextCharFromUtf8"][1]["argsT"][2]["name"] = "in_text" +defs["igImTextCharFromUtf8"][1]["argsT"][2]["type"] = "const char*" +defs["igImTextCharFromUtf8"][1]["argsT"][3] = {} +defs["igImTextCharFromUtf8"][1]["argsT"][3]["name"] = "in_text_end" +defs["igImTextCharFromUtf8"][1]["argsT"][3]["type"] = "const char*" +defs["igImTextCharFromUtf8"][1]["argsoriginal"] = "(unsigned int* out_char,const char* in_text,const char* in_text_end)" +defs["igImTextCharFromUtf8"][1]["call_args"] = "(out_char,in_text,in_text_end)" +defs["igImTextCharFromUtf8"][1]["cimguiname"] = "igImTextCharFromUtf8" +defs["igImTextCharFromUtf8"][1]["defaults"] = {} +defs["igImTextCharFromUtf8"][1]["funcname"] = "ImTextCharFromUtf8" +defs["igImTextCharFromUtf8"][1]["location"] = "imgui_internal:375" +defs["igImTextCharFromUtf8"][1]["ov_cimguiname"] = "igImTextCharFromUtf8" +defs["igImTextCharFromUtf8"][1]["ret"] = "int" +defs["igImTextCharFromUtf8"][1]["signature"] = "(unsigned int*,const char*,const char*)" +defs["igImTextCharFromUtf8"][1]["stname"] = "" +defs["igImTextCharFromUtf8"]["(unsigned int*,const char*,const char*)"] = defs["igImTextCharFromUtf8"][1] +defs["igImTextCharToUtf8"] = {} +defs["igImTextCharToUtf8"][1] = {} +defs["igImTextCharToUtf8"][1]["args"] = "(char out_buf[5],unsigned int c)" +defs["igImTextCharToUtf8"][1]["argsT"] = {} +defs["igImTextCharToUtf8"][1]["argsT"][1] = {} +defs["igImTextCharToUtf8"][1]["argsT"][1]["name"] = "out_buf" +defs["igImTextCharToUtf8"][1]["argsT"][1]["type"] = "char[5]" +defs["igImTextCharToUtf8"][1]["argsT"][2] = {} +defs["igImTextCharToUtf8"][1]["argsT"][2]["name"] = "c" +defs["igImTextCharToUtf8"][1]["argsT"][2]["type"] = "unsigned int" +defs["igImTextCharToUtf8"][1]["argsoriginal"] = "(char out_buf[5],unsigned int c)" +defs["igImTextCharToUtf8"][1]["call_args"] = "(out_buf,c)" +defs["igImTextCharToUtf8"][1]["cimguiname"] = "igImTextCharToUtf8" +defs["igImTextCharToUtf8"][1]["defaults"] = {} +defs["igImTextCharToUtf8"][1]["funcname"] = "ImTextCharToUtf8" +defs["igImTextCharToUtf8"][1]["location"] = "imgui_internal:373" +defs["igImTextCharToUtf8"][1]["ov_cimguiname"] = "igImTextCharToUtf8" +defs["igImTextCharToUtf8"][1]["ret"] = "const char*" +defs["igImTextCharToUtf8"][1]["signature"] = "(char[5],unsigned int)" +defs["igImTextCharToUtf8"][1]["stname"] = "" +defs["igImTextCharToUtf8"]["(char[5],unsigned int)"] = defs["igImTextCharToUtf8"][1] +defs["igImTextCountCharsFromUtf8"] = {} +defs["igImTextCountCharsFromUtf8"][1] = {} +defs["igImTextCountCharsFromUtf8"][1]["args"] = "(const char* in_text,const char* in_text_end)" +defs["igImTextCountCharsFromUtf8"][1]["argsT"] = {} +defs["igImTextCountCharsFromUtf8"][1]["argsT"][1] = {} +defs["igImTextCountCharsFromUtf8"][1]["argsT"][1]["name"] = "in_text" +defs["igImTextCountCharsFromUtf8"][1]["argsT"][1]["type"] = "const char*" +defs["igImTextCountCharsFromUtf8"][1]["argsT"][2] = {} +defs["igImTextCountCharsFromUtf8"][1]["argsT"][2]["name"] = "in_text_end" +defs["igImTextCountCharsFromUtf8"][1]["argsT"][2]["type"] = "const char*" +defs["igImTextCountCharsFromUtf8"][1]["argsoriginal"] = "(const char* in_text,const char* in_text_end)" +defs["igImTextCountCharsFromUtf8"][1]["call_args"] = "(in_text,in_text_end)" +defs["igImTextCountCharsFromUtf8"][1]["cimguiname"] = "igImTextCountCharsFromUtf8" +defs["igImTextCountCharsFromUtf8"][1]["defaults"] = {} +defs["igImTextCountCharsFromUtf8"][1]["funcname"] = "ImTextCountCharsFromUtf8" +defs["igImTextCountCharsFromUtf8"][1]["location"] = "imgui_internal:377" +defs["igImTextCountCharsFromUtf8"][1]["ov_cimguiname"] = "igImTextCountCharsFromUtf8" +defs["igImTextCountCharsFromUtf8"][1]["ret"] = "int" +defs["igImTextCountCharsFromUtf8"][1]["signature"] = "(const char*,const char*)" +defs["igImTextCountCharsFromUtf8"][1]["stname"] = "" +defs["igImTextCountCharsFromUtf8"]["(const char*,const char*)"] = defs["igImTextCountCharsFromUtf8"][1] +defs["igImTextCountUtf8BytesFromChar"] = {} +defs["igImTextCountUtf8BytesFromChar"][1] = {} +defs["igImTextCountUtf8BytesFromChar"][1]["args"] = "(const char* in_text,const char* in_text_end)" +defs["igImTextCountUtf8BytesFromChar"][1]["argsT"] = {} +defs["igImTextCountUtf8BytesFromChar"][1]["argsT"][1] = {} +defs["igImTextCountUtf8BytesFromChar"][1]["argsT"][1]["name"] = "in_text" +defs["igImTextCountUtf8BytesFromChar"][1]["argsT"][1]["type"] = "const char*" +defs["igImTextCountUtf8BytesFromChar"][1]["argsT"][2] = {} +defs["igImTextCountUtf8BytesFromChar"][1]["argsT"][2]["name"] = "in_text_end" +defs["igImTextCountUtf8BytesFromChar"][1]["argsT"][2]["type"] = "const char*" +defs["igImTextCountUtf8BytesFromChar"][1]["argsoriginal"] = "(const char* in_text,const char* in_text_end)" +defs["igImTextCountUtf8BytesFromChar"][1]["call_args"] = "(in_text,in_text_end)" +defs["igImTextCountUtf8BytesFromChar"][1]["cimguiname"] = "igImTextCountUtf8BytesFromChar" +defs["igImTextCountUtf8BytesFromChar"][1]["defaults"] = {} +defs["igImTextCountUtf8BytesFromChar"][1]["funcname"] = "ImTextCountUtf8BytesFromChar" +defs["igImTextCountUtf8BytesFromChar"][1]["location"] = "imgui_internal:378" +defs["igImTextCountUtf8BytesFromChar"][1]["ov_cimguiname"] = "igImTextCountUtf8BytesFromChar" +defs["igImTextCountUtf8BytesFromChar"][1]["ret"] = "int" +defs["igImTextCountUtf8BytesFromChar"][1]["signature"] = "(const char*,const char*)" +defs["igImTextCountUtf8BytesFromChar"][1]["stname"] = "" +defs["igImTextCountUtf8BytesFromChar"]["(const char*,const char*)"] = defs["igImTextCountUtf8BytesFromChar"][1] +defs["igImTextCountUtf8BytesFromStr"] = {} +defs["igImTextCountUtf8BytesFromStr"][1] = {} +defs["igImTextCountUtf8BytesFromStr"][1]["args"] = "(const ImWchar* in_text,const ImWchar* in_text_end)" +defs["igImTextCountUtf8BytesFromStr"][1]["argsT"] = {} +defs["igImTextCountUtf8BytesFromStr"][1]["argsT"][1] = {} +defs["igImTextCountUtf8BytesFromStr"][1]["argsT"][1]["name"] = "in_text" +defs["igImTextCountUtf8BytesFromStr"][1]["argsT"][1]["type"] = "const ImWchar*" +defs["igImTextCountUtf8BytesFromStr"][1]["argsT"][2] = {} +defs["igImTextCountUtf8BytesFromStr"][1]["argsT"][2]["name"] = "in_text_end" +defs["igImTextCountUtf8BytesFromStr"][1]["argsT"][2]["type"] = "const ImWchar*" +defs["igImTextCountUtf8BytesFromStr"][1]["argsoriginal"] = "(const ImWchar* in_text,const ImWchar* in_text_end)" +defs["igImTextCountUtf8BytesFromStr"][1]["call_args"] = "(in_text,in_text_end)" +defs["igImTextCountUtf8BytesFromStr"][1]["cimguiname"] = "igImTextCountUtf8BytesFromStr" +defs["igImTextCountUtf8BytesFromStr"][1]["defaults"] = {} +defs["igImTextCountUtf8BytesFromStr"][1]["funcname"] = "ImTextCountUtf8BytesFromStr" +defs["igImTextCountUtf8BytesFromStr"][1]["location"] = "imgui_internal:379" +defs["igImTextCountUtf8BytesFromStr"][1]["ov_cimguiname"] = "igImTextCountUtf8BytesFromStr" +defs["igImTextCountUtf8BytesFromStr"][1]["ret"] = "int" +defs["igImTextCountUtf8BytesFromStr"][1]["signature"] = "(const ImWchar*,const ImWchar*)" +defs["igImTextCountUtf8BytesFromStr"][1]["stname"] = "" +defs["igImTextCountUtf8BytesFromStr"]["(const ImWchar*,const ImWchar*)"] = defs["igImTextCountUtf8BytesFromStr"][1] +defs["igImTextStrFromUtf8"] = {} +defs["igImTextStrFromUtf8"][1] = {} +defs["igImTextStrFromUtf8"][1]["args"] = "(ImWchar* out_buf,int out_buf_size,const char* in_text,const char* in_text_end,const char** in_remaining)" +defs["igImTextStrFromUtf8"][1]["argsT"] = {} +defs["igImTextStrFromUtf8"][1]["argsT"][1] = {} +defs["igImTextStrFromUtf8"][1]["argsT"][1]["name"] = "out_buf" +defs["igImTextStrFromUtf8"][1]["argsT"][1]["type"] = "ImWchar*" +defs["igImTextStrFromUtf8"][1]["argsT"][2] = {} +defs["igImTextStrFromUtf8"][1]["argsT"][2]["name"] = "out_buf_size" +defs["igImTextStrFromUtf8"][1]["argsT"][2]["type"] = "int" +defs["igImTextStrFromUtf8"][1]["argsT"][3] = {} +defs["igImTextStrFromUtf8"][1]["argsT"][3]["name"] = "in_text" +defs["igImTextStrFromUtf8"][1]["argsT"][3]["type"] = "const char*" +defs["igImTextStrFromUtf8"][1]["argsT"][4] = {} +defs["igImTextStrFromUtf8"][1]["argsT"][4]["name"] = "in_text_end" +defs["igImTextStrFromUtf8"][1]["argsT"][4]["type"] = "const char*" +defs["igImTextStrFromUtf8"][1]["argsT"][5] = {} +defs["igImTextStrFromUtf8"][1]["argsT"][5]["name"] = "in_remaining" +defs["igImTextStrFromUtf8"][1]["argsT"][5]["type"] = "const char**" +defs["igImTextStrFromUtf8"][1]["argsoriginal"] = "(ImWchar* out_buf,int out_buf_size,const char* in_text,const char* in_text_end,const char** in_remaining=((void*)0))" +defs["igImTextStrFromUtf8"][1]["call_args"] = "(out_buf,out_buf_size,in_text,in_text_end,in_remaining)" +defs["igImTextStrFromUtf8"][1]["cimguiname"] = "igImTextStrFromUtf8" +defs["igImTextStrFromUtf8"][1]["defaults"] = {} +defs["igImTextStrFromUtf8"][1]["defaults"]["in_remaining"] = "NULL" +defs["igImTextStrFromUtf8"][1]["funcname"] = "ImTextStrFromUtf8" +defs["igImTextStrFromUtf8"][1]["location"] = "imgui_internal:376" +defs["igImTextStrFromUtf8"][1]["ov_cimguiname"] = "igImTextStrFromUtf8" +defs["igImTextStrFromUtf8"][1]["ret"] = "int" +defs["igImTextStrFromUtf8"][1]["signature"] = "(ImWchar*,int,const char*,const char*,const char**)" +defs["igImTextStrFromUtf8"][1]["stname"] = "" +defs["igImTextStrFromUtf8"]["(ImWchar*,int,const char*,const char*,const char**)"] = defs["igImTextStrFromUtf8"][1] +defs["igImTextStrToUtf8"] = {} +defs["igImTextStrToUtf8"][1] = {} +defs["igImTextStrToUtf8"][1]["args"] = "(char* out_buf,int out_buf_size,const ImWchar* in_text,const ImWchar* in_text_end)" +defs["igImTextStrToUtf8"][1]["argsT"] = {} +defs["igImTextStrToUtf8"][1]["argsT"][1] = {} +defs["igImTextStrToUtf8"][1]["argsT"][1]["name"] = "out_buf" +defs["igImTextStrToUtf8"][1]["argsT"][1]["type"] = "char*" +defs["igImTextStrToUtf8"][1]["argsT"][2] = {} +defs["igImTextStrToUtf8"][1]["argsT"][2]["name"] = "out_buf_size" +defs["igImTextStrToUtf8"][1]["argsT"][2]["type"] = "int" +defs["igImTextStrToUtf8"][1]["argsT"][3] = {} +defs["igImTextStrToUtf8"][1]["argsT"][3]["name"] = "in_text" +defs["igImTextStrToUtf8"][1]["argsT"][3]["type"] = "const ImWchar*" +defs["igImTextStrToUtf8"][1]["argsT"][4] = {} +defs["igImTextStrToUtf8"][1]["argsT"][4]["name"] = "in_text_end" +defs["igImTextStrToUtf8"][1]["argsT"][4]["type"] = "const ImWchar*" +defs["igImTextStrToUtf8"][1]["argsoriginal"] = "(char* out_buf,int out_buf_size,const ImWchar* in_text,const ImWchar* in_text_end)" +defs["igImTextStrToUtf8"][1]["call_args"] = "(out_buf,out_buf_size,in_text,in_text_end)" +defs["igImTextStrToUtf8"][1]["cimguiname"] = "igImTextStrToUtf8" +defs["igImTextStrToUtf8"][1]["defaults"] = {} +defs["igImTextStrToUtf8"][1]["funcname"] = "ImTextStrToUtf8" +defs["igImTextStrToUtf8"][1]["location"] = "imgui_internal:374" +defs["igImTextStrToUtf8"][1]["ov_cimguiname"] = "igImTextStrToUtf8" +defs["igImTextStrToUtf8"][1]["ret"] = "int" +defs["igImTextStrToUtf8"][1]["signature"] = "(char*,int,const ImWchar*,const ImWchar*)" +defs["igImTextStrToUtf8"][1]["stname"] = "" +defs["igImTextStrToUtf8"]["(char*,int,const ImWchar*,const ImWchar*)"] = defs["igImTextStrToUtf8"][1] +defs["igImToUpper"] = {} +defs["igImToUpper"][1] = {} +defs["igImToUpper"][1]["args"] = "(char c)" +defs["igImToUpper"][1]["argsT"] = {} +defs["igImToUpper"][1]["argsT"][1] = {} +defs["igImToUpper"][1]["argsT"][1]["name"] = "c" +defs["igImToUpper"][1]["argsT"][1]["type"] = "char" +defs["igImToUpper"][1]["argsoriginal"] = "(char c)" +defs["igImToUpper"][1]["call_args"] = "(c)" +defs["igImToUpper"][1]["cimguiname"] = "igImToUpper" +defs["igImToUpper"][1]["defaults"] = {} +defs["igImToUpper"][1]["funcname"] = "ImToUpper" +defs["igImToUpper"][1]["location"] = "imgui_internal:355" +defs["igImToUpper"][1]["ov_cimguiname"] = "igImToUpper" +defs["igImToUpper"][1]["ret"] = "char" +defs["igImToUpper"][1]["signature"] = "(char)" +defs["igImToUpper"][1]["stname"] = "" +defs["igImToUpper"]["(char)"] = defs["igImToUpper"][1] +defs["igImTriangleArea"] = {} +defs["igImTriangleArea"][1] = {} +defs["igImTriangleArea"][1]["args"] = "(const ImVec2 a,const ImVec2 b,const ImVec2 c)" +defs["igImTriangleArea"][1]["argsT"] = {} +defs["igImTriangleArea"][1]["argsT"][1] = {} +defs["igImTriangleArea"][1]["argsT"][1]["name"] = "a" +defs["igImTriangleArea"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igImTriangleArea"][1]["argsT"][2] = {} +defs["igImTriangleArea"][1]["argsT"][2]["name"] = "b" +defs["igImTriangleArea"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImTriangleArea"][1]["argsT"][3] = {} +defs["igImTriangleArea"][1]["argsT"][3]["name"] = "c" +defs["igImTriangleArea"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImTriangleArea"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& c)" +defs["igImTriangleArea"][1]["call_args"] = "(a,b,c)" +defs["igImTriangleArea"][1]["cimguiname"] = "igImTriangleArea" +defs["igImTriangleArea"][1]["defaults"] = {} +defs["igImTriangleArea"][1]["funcname"] = "ImTriangleArea" +defs["igImTriangleArea"][1]["location"] = "imgui_internal:497" +defs["igImTriangleArea"][1]["ov_cimguiname"] = "igImTriangleArea" +defs["igImTriangleArea"][1]["ret"] = "float" +defs["igImTriangleArea"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2)" +defs["igImTriangleArea"][1]["stname"] = "" +defs["igImTriangleArea"]["(const ImVec2,const ImVec2,const ImVec2)"] = defs["igImTriangleArea"][1] +defs["igImTriangleBarycentricCoords"] = {} +defs["igImTriangleBarycentricCoords"][1] = {} +defs["igImTriangleBarycentricCoords"][1]["args"] = "(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float* out_u,float* out_v,float* out_w)" +defs["igImTriangleBarycentricCoords"][1]["argsT"] = {} +defs["igImTriangleBarycentricCoords"][1]["argsT"][1] = {} +defs["igImTriangleBarycentricCoords"][1]["argsT"][1]["name"] = "a" +defs["igImTriangleBarycentricCoords"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igImTriangleBarycentricCoords"][1]["argsT"][2] = {} +defs["igImTriangleBarycentricCoords"][1]["argsT"][2]["name"] = "b" +defs["igImTriangleBarycentricCoords"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImTriangleBarycentricCoords"][1]["argsT"][3] = {} +defs["igImTriangleBarycentricCoords"][1]["argsT"][3]["name"] = "c" +defs["igImTriangleBarycentricCoords"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImTriangleBarycentricCoords"][1]["argsT"][4] = {} +defs["igImTriangleBarycentricCoords"][1]["argsT"][4]["name"] = "p" +defs["igImTriangleBarycentricCoords"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImTriangleBarycentricCoords"][1]["argsT"][5] = {} +defs["igImTriangleBarycentricCoords"][1]["argsT"][5]["name"] = "out_u" +defs["igImTriangleBarycentricCoords"][1]["argsT"][5]["reftoptr"] = true +defs["igImTriangleBarycentricCoords"][1]["argsT"][5]["type"] = "float*" +defs["igImTriangleBarycentricCoords"][1]["argsT"][6] = {} +defs["igImTriangleBarycentricCoords"][1]["argsT"][6]["name"] = "out_v" +defs["igImTriangleBarycentricCoords"][1]["argsT"][6]["reftoptr"] = true +defs["igImTriangleBarycentricCoords"][1]["argsT"][6]["type"] = "float*" +defs["igImTriangleBarycentricCoords"][1]["argsT"][7] = {} +defs["igImTriangleBarycentricCoords"][1]["argsT"][7]["name"] = "out_w" +defs["igImTriangleBarycentricCoords"][1]["argsT"][7]["reftoptr"] = true +defs["igImTriangleBarycentricCoords"][1]["argsT"][7]["type"] = "float*" +defs["igImTriangleBarycentricCoords"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& p,float& out_u,float& out_v,float& out_w)" +defs["igImTriangleBarycentricCoords"][1]["call_args"] = "(a,b,c,p,*out_u,*out_v,*out_w)" +defs["igImTriangleBarycentricCoords"][1]["cimguiname"] = "igImTriangleBarycentricCoords" +defs["igImTriangleBarycentricCoords"][1]["defaults"] = {} +defs["igImTriangleBarycentricCoords"][1]["funcname"] = "ImTriangleBarycentricCoords" +defs["igImTriangleBarycentricCoords"][1]["location"] = "imgui_internal:496" +defs["igImTriangleBarycentricCoords"][1]["ov_cimguiname"] = "igImTriangleBarycentricCoords" +defs["igImTriangleBarycentricCoords"][1]["ret"] = "void" +defs["igImTriangleBarycentricCoords"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float*,float*,float*)" +defs["igImTriangleBarycentricCoords"][1]["stname"] = "" +defs["igImTriangleBarycentricCoords"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float*,float*,float*)"] = defs["igImTriangleBarycentricCoords"][1] +defs["igImTriangleClosestPoint"] = {} +defs["igImTriangleClosestPoint"][1] = {} +defs["igImTriangleClosestPoint"][1]["args"] = "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p)" +defs["igImTriangleClosestPoint"][1]["argsT"] = {} +defs["igImTriangleClosestPoint"][1]["argsT"][1] = {} +defs["igImTriangleClosestPoint"][1]["argsT"][1]["name"] = "pOut" +defs["igImTriangleClosestPoint"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igImTriangleClosestPoint"][1]["argsT"][2] = {} +defs["igImTriangleClosestPoint"][1]["argsT"][2]["name"] = "a" +defs["igImTriangleClosestPoint"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImTriangleClosestPoint"][1]["argsT"][3] = {} +defs["igImTriangleClosestPoint"][1]["argsT"][3]["name"] = "b" +defs["igImTriangleClosestPoint"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImTriangleClosestPoint"][1]["argsT"][4] = {} +defs["igImTriangleClosestPoint"][1]["argsT"][4]["name"] = "c" +defs["igImTriangleClosestPoint"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImTriangleClosestPoint"][1]["argsT"][5] = {} +defs["igImTriangleClosestPoint"][1]["argsT"][5]["name"] = "p" +defs["igImTriangleClosestPoint"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igImTriangleClosestPoint"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& p)" +defs["igImTriangleClosestPoint"][1]["call_args"] = "(a,b,c,p)" +defs["igImTriangleClosestPoint"][1]["cimguiname"] = "igImTriangleClosestPoint" +defs["igImTriangleClosestPoint"][1]["defaults"] = {} +defs["igImTriangleClosestPoint"][1]["funcname"] = "ImTriangleClosestPoint" +defs["igImTriangleClosestPoint"][1]["location"] = "imgui_internal:495" +defs["igImTriangleClosestPoint"][1]["nonUDT"] = 1 +defs["igImTriangleClosestPoint"][1]["ov_cimguiname"] = "igImTriangleClosestPoint" +defs["igImTriangleClosestPoint"][1]["ret"] = "void" +defs["igImTriangleClosestPoint"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2)" +defs["igImTriangleClosestPoint"][1]["stname"] = "" +defs["igImTriangleClosestPoint"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2)"] = defs["igImTriangleClosestPoint"][1] +defs["igImTriangleContainsPoint"] = {} +defs["igImTriangleContainsPoint"][1] = {} +defs["igImTriangleContainsPoint"][1]["args"] = "(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p)" +defs["igImTriangleContainsPoint"][1]["argsT"] = {} +defs["igImTriangleContainsPoint"][1]["argsT"][1] = {} +defs["igImTriangleContainsPoint"][1]["argsT"][1]["name"] = "a" +defs["igImTriangleContainsPoint"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igImTriangleContainsPoint"][1]["argsT"][2] = {} +defs["igImTriangleContainsPoint"][1]["argsT"][2]["name"] = "b" +defs["igImTriangleContainsPoint"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igImTriangleContainsPoint"][1]["argsT"][3] = {} +defs["igImTriangleContainsPoint"][1]["argsT"][3]["name"] = "c" +defs["igImTriangleContainsPoint"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImTriangleContainsPoint"][1]["argsT"][4] = {} +defs["igImTriangleContainsPoint"][1]["argsT"][4]["name"] = "p" +defs["igImTriangleContainsPoint"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImTriangleContainsPoint"][1]["argsoriginal"] = "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& p)" +defs["igImTriangleContainsPoint"][1]["call_args"] = "(a,b,c,p)" +defs["igImTriangleContainsPoint"][1]["cimguiname"] = "igImTriangleContainsPoint" +defs["igImTriangleContainsPoint"][1]["defaults"] = {} +defs["igImTriangleContainsPoint"][1]["funcname"] = "ImTriangleContainsPoint" +defs["igImTriangleContainsPoint"][1]["location"] = "imgui_internal:494" +defs["igImTriangleContainsPoint"][1]["ov_cimguiname"] = "igImTriangleContainsPoint" +defs["igImTriangleContainsPoint"][1]["ret"] = "bool" +defs["igImTriangleContainsPoint"][1]["signature"] = "(const ImVec2,const ImVec2,const ImVec2,const ImVec2)" +defs["igImTriangleContainsPoint"][1]["stname"] = "" +defs["igImTriangleContainsPoint"]["(const ImVec2,const ImVec2,const ImVec2,const ImVec2)"] = defs["igImTriangleContainsPoint"][1] +defs["igImUpperPowerOfTwo"] = {} +defs["igImUpperPowerOfTwo"][1] = {} +defs["igImUpperPowerOfTwo"][1]["args"] = "(int v)" +defs["igImUpperPowerOfTwo"][1]["argsT"] = {} +defs["igImUpperPowerOfTwo"][1]["argsT"][1] = {} +defs["igImUpperPowerOfTwo"][1]["argsT"][1]["name"] = "v" +defs["igImUpperPowerOfTwo"][1]["argsT"][1]["type"] = "int" +defs["igImUpperPowerOfTwo"][1]["argsoriginal"] = "(int v)" +defs["igImUpperPowerOfTwo"][1]["call_args"] = "(v)" +defs["igImUpperPowerOfTwo"][1]["cimguiname"] = "igImUpperPowerOfTwo" +defs["igImUpperPowerOfTwo"][1]["defaults"] = {} +defs["igImUpperPowerOfTwo"][1]["funcname"] = "ImUpperPowerOfTwo" +defs["igImUpperPowerOfTwo"][1]["location"] = "imgui_internal:339" +defs["igImUpperPowerOfTwo"][1]["ov_cimguiname"] = "igImUpperPowerOfTwo" +defs["igImUpperPowerOfTwo"][1]["ret"] = "int" +defs["igImUpperPowerOfTwo"][1]["signature"] = "(int)" +defs["igImUpperPowerOfTwo"][1]["stname"] = "" +defs["igImUpperPowerOfTwo"]["(int)"] = defs["igImUpperPowerOfTwo"][1] defs["igImage"] = {} defs["igImage"][1] = {} defs["igImage"][1]["args"] = "(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col)" @@ -10158,6 +20650,43 @@ defs["igImageButton"][1]["ret"] = "bool" defs["igImageButton"][1]["signature"] = "(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" defs["igImageButton"][1]["stname"] = "" defs["igImageButton"]["(const char*,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImageButton"][1] +defs["igImageButtonEx"] = {} +defs["igImageButtonEx"][1] = {} +defs["igImageButtonEx"][1]["args"] = "(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)" +defs["igImageButtonEx"][1]["argsT"] = {} +defs["igImageButtonEx"][1]["argsT"][1] = {} +defs["igImageButtonEx"][1]["argsT"][1]["name"] = "id" +defs["igImageButtonEx"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igImageButtonEx"][1]["argsT"][2] = {} +defs["igImageButtonEx"][1]["argsT"][2]["name"] = "texture_id" +defs["igImageButtonEx"][1]["argsT"][2]["type"] = "ImTextureID" +defs["igImageButtonEx"][1]["argsT"][3] = {} +defs["igImageButtonEx"][1]["argsT"][3]["name"] = "size" +defs["igImageButtonEx"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igImageButtonEx"][1]["argsT"][4] = {} +defs["igImageButtonEx"][1]["argsT"][4]["name"] = "uv0" +defs["igImageButtonEx"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igImageButtonEx"][1]["argsT"][5] = {} +defs["igImageButtonEx"][1]["argsT"][5]["name"] = "uv1" +defs["igImageButtonEx"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igImageButtonEx"][1]["argsT"][6] = {} +defs["igImageButtonEx"][1]["argsT"][6]["name"] = "bg_col" +defs["igImageButtonEx"][1]["argsT"][6]["type"] = "const ImVec4" +defs["igImageButtonEx"][1]["argsT"][7] = {} +defs["igImageButtonEx"][1]["argsT"][7]["name"] = "tint_col" +defs["igImageButtonEx"][1]["argsT"][7]["type"] = "const ImVec4" +defs["igImageButtonEx"][1]["argsoriginal"] = "(ImGuiID id,ImTextureID texture_id,const ImVec2& size,const ImVec2& uv0,const ImVec2& uv1,const ImVec4& bg_col,const ImVec4& tint_col)" +defs["igImageButtonEx"][1]["call_args"] = "(id,texture_id,size,uv0,uv1,bg_col,tint_col)" +defs["igImageButtonEx"][1]["cimguiname"] = "igImageButtonEx" +defs["igImageButtonEx"][1]["defaults"] = {} +defs["igImageButtonEx"][1]["funcname"] = "ImageButtonEx" +defs["igImageButtonEx"][1]["location"] = "imgui_internal:3357" +defs["igImageButtonEx"][1]["namespace"] = "ImGui" +defs["igImageButtonEx"][1]["ov_cimguiname"] = "igImageButtonEx" +defs["igImageButtonEx"][1]["ret"] = "bool" +defs["igImageButtonEx"][1]["signature"] = "(ImGuiID,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)" +defs["igImageButtonEx"][1]["stname"] = "" +defs["igImageButtonEx"]["(ImGuiID,ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec4,const ImVec4)"] = defs["igImageButtonEx"][1] defs["igIndent"] = {} defs["igIndent"][1] = {} defs["igIndent"][1]["args"] = "(float indent_w)" @@ -10178,6 +20707,22 @@ defs["igIndent"][1]["ret"] = "void" defs["igIndent"][1]["signature"] = "(float)" defs["igIndent"][1]["stname"] = "" defs["igIndent"]["(float)"] = defs["igIndent"][1] +defs["igInitialize"] = {} +defs["igInitialize"][1] = {} +defs["igInitialize"][1]["args"] = "()" +defs["igInitialize"][1]["argsT"] = {} +defs["igInitialize"][1]["argsoriginal"] = "()" +defs["igInitialize"][1]["call_args"] = "()" +defs["igInitialize"][1]["cimguiname"] = "igInitialize" +defs["igInitialize"][1]["defaults"] = {} +defs["igInitialize"][1]["funcname"] = "Initialize" +defs["igInitialize"][1]["location"] = "imgui_internal:2965" +defs["igInitialize"][1]["namespace"] = "ImGui" +defs["igInitialize"][1]["ov_cimguiname"] = "igInitialize" +defs["igInitialize"][1]["ret"] = "void" +defs["igInitialize"][1]["signature"] = "()" +defs["igInitialize"][1]["stname"] = "" +defs["igInitialize"]["()"] = defs["igInitialize"][1] defs["igInputDouble"] = {} defs["igInputDouble"][1] = {} defs["igInputDouble"][1]["args"] = "(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags)" @@ -10578,6 +21123,48 @@ defs["igInputText"][1]["ret"] = "bool" defs["igInputText"][1]["signature"] = "(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)" defs["igInputText"][1]["stname"] = "" defs["igInputText"]["(const char*,char*,size_t,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)"] = defs["igInputText"][1] +defs["igInputTextEx"] = {} +defs["igInputTextEx"][1] = {} +defs["igInputTextEx"][1]["args"] = "(const char* label,const char* hint,char* buf,int buf_size,const ImVec2 size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)" +defs["igInputTextEx"][1]["argsT"] = {} +defs["igInputTextEx"][1]["argsT"][1] = {} +defs["igInputTextEx"][1]["argsT"][1]["name"] = "label" +defs["igInputTextEx"][1]["argsT"][1]["type"] = "const char*" +defs["igInputTextEx"][1]["argsT"][2] = {} +defs["igInputTextEx"][1]["argsT"][2]["name"] = "hint" +defs["igInputTextEx"][1]["argsT"][2]["type"] = "const char*" +defs["igInputTextEx"][1]["argsT"][3] = {} +defs["igInputTextEx"][1]["argsT"][3]["name"] = "buf" +defs["igInputTextEx"][1]["argsT"][3]["type"] = "char*" +defs["igInputTextEx"][1]["argsT"][4] = {} +defs["igInputTextEx"][1]["argsT"][4]["name"] = "buf_size" +defs["igInputTextEx"][1]["argsT"][4]["type"] = "int" +defs["igInputTextEx"][1]["argsT"][5] = {} +defs["igInputTextEx"][1]["argsT"][5]["name"] = "size_arg" +defs["igInputTextEx"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igInputTextEx"][1]["argsT"][6] = {} +defs["igInputTextEx"][1]["argsT"][6]["name"] = "flags" +defs["igInputTextEx"][1]["argsT"][6]["type"] = "ImGuiInputTextFlags" +defs["igInputTextEx"][1]["argsT"][7] = {} +defs["igInputTextEx"][1]["argsT"][7]["name"] = "callback" +defs["igInputTextEx"][1]["argsT"][7]["type"] = "ImGuiInputTextCallback" +defs["igInputTextEx"][1]["argsT"][8] = {} +defs["igInputTextEx"][1]["argsT"][8]["name"] = "user_data" +defs["igInputTextEx"][1]["argsT"][8]["type"] = "void*" +defs["igInputTextEx"][1]["argsoriginal"] = "(const char* label,const char* hint,char* buf,int buf_size,const ImVec2& size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback=((void*)0),void* user_data=((void*)0))" +defs["igInputTextEx"][1]["call_args"] = "(label,hint,buf,buf_size,size_arg,flags,callback,user_data)" +defs["igInputTextEx"][1]["cimguiname"] = "igInputTextEx" +defs["igInputTextEx"][1]["defaults"] = {} +defs["igInputTextEx"][1]["defaults"]["callback"] = "NULL" +defs["igInputTextEx"][1]["defaults"]["user_data"] = "NULL" +defs["igInputTextEx"][1]["funcname"] = "InputTextEx" +defs["igInputTextEx"][1]["location"] = "imgui_internal:3395" +defs["igInputTextEx"][1]["namespace"] = "ImGui" +defs["igInputTextEx"][1]["ov_cimguiname"] = "igInputTextEx" +defs["igInputTextEx"][1]["ret"] = "bool" +defs["igInputTextEx"][1]["signature"] = "(const char*,const char*,char*,int,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)" +defs["igInputTextEx"][1]["stname"] = "" +defs["igInputTextEx"]["(const char*,const char*,char*,int,const ImVec2,ImGuiInputTextFlags,ImGuiInputTextCallback,void*)"] = defs["igInputTextEx"][1] defs["igInputTextMultiline"] = {} defs["igInputTextMultiline"][1] = {} defs["igInputTextMultiline"][1]["args"] = "(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)" @@ -10685,6 +21272,44 @@ defs["igInvisibleButton"][1]["ret"] = "bool" defs["igInvisibleButton"][1]["signature"] = "(const char*,const ImVec2,ImGuiButtonFlags)" defs["igInvisibleButton"][1]["stname"] = "" defs["igInvisibleButton"]["(const char*,const ImVec2,ImGuiButtonFlags)"] = defs["igInvisibleButton"][1] +defs["igIsActiveIdUsingNavDir"] = {} +defs["igIsActiveIdUsingNavDir"][1] = {} +defs["igIsActiveIdUsingNavDir"][1]["args"] = "(ImGuiDir dir)" +defs["igIsActiveIdUsingNavDir"][1]["argsT"] = {} +defs["igIsActiveIdUsingNavDir"][1]["argsT"][1] = {} +defs["igIsActiveIdUsingNavDir"][1]["argsT"][1]["name"] = "dir" +defs["igIsActiveIdUsingNavDir"][1]["argsT"][1]["type"] = "ImGuiDir" +defs["igIsActiveIdUsingNavDir"][1]["argsoriginal"] = "(ImGuiDir dir)" +defs["igIsActiveIdUsingNavDir"][1]["call_args"] = "(dir)" +defs["igIsActiveIdUsingNavDir"][1]["cimguiname"] = "igIsActiveIdUsingNavDir" +defs["igIsActiveIdUsingNavDir"][1]["defaults"] = {} +defs["igIsActiveIdUsingNavDir"][1]["funcname"] = "IsActiveIdUsingNavDir" +defs["igIsActiveIdUsingNavDir"][1]["location"] = "imgui_internal:3125" +defs["igIsActiveIdUsingNavDir"][1]["namespace"] = "ImGui" +defs["igIsActiveIdUsingNavDir"][1]["ov_cimguiname"] = "igIsActiveIdUsingNavDir" +defs["igIsActiveIdUsingNavDir"][1]["ret"] = "bool" +defs["igIsActiveIdUsingNavDir"][1]["signature"] = "(ImGuiDir)" +defs["igIsActiveIdUsingNavDir"][1]["stname"] = "" +defs["igIsActiveIdUsingNavDir"]["(ImGuiDir)"] = defs["igIsActiveIdUsingNavDir"][1] +defs["igIsAliasKey"] = {} +defs["igIsAliasKey"][1] = {} +defs["igIsAliasKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsAliasKey"][1]["argsT"] = {} +defs["igIsAliasKey"][1]["argsT"][1] = {} +defs["igIsAliasKey"][1]["argsT"][1]["name"] = "key" +defs["igIsAliasKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsAliasKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsAliasKey"][1]["call_args"] = "(key)" +defs["igIsAliasKey"][1]["cimguiname"] = "igIsAliasKey" +defs["igIsAliasKey"][1]["defaults"] = {} +defs["igIsAliasKey"][1]["funcname"] = "IsAliasKey" +defs["igIsAliasKey"][1]["location"] = "imgui_internal:3106" +defs["igIsAliasKey"][1]["namespace"] = "ImGui" +defs["igIsAliasKey"][1]["ov_cimguiname"] = "igIsAliasKey" +defs["igIsAliasKey"][1]["ret"] = "bool" +defs["igIsAliasKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsAliasKey"][1]["stname"] = "" +defs["igIsAliasKey"]["(ImGuiKey)"] = defs["igIsAliasKey"][1] defs["igIsAnyItemActive"] = {} defs["igIsAnyItemActive"][1] = {} defs["igIsAnyItemActive"][1]["args"] = "()" @@ -10749,6 +21374,79 @@ defs["igIsAnyMouseDown"][1]["ret"] = "bool" defs["igIsAnyMouseDown"][1]["signature"] = "()" defs["igIsAnyMouseDown"][1]["stname"] = "" defs["igIsAnyMouseDown"]["()"] = defs["igIsAnyMouseDown"][1] +defs["igIsClippedEx"] = {} +defs["igIsClippedEx"][1] = {} +defs["igIsClippedEx"][1]["args"] = "(const ImRect bb,ImGuiID id)" +defs["igIsClippedEx"][1]["argsT"] = {} +defs["igIsClippedEx"][1]["argsT"][1] = {} +defs["igIsClippedEx"][1]["argsT"][1]["name"] = "bb" +defs["igIsClippedEx"][1]["argsT"][1]["type"] = "const ImRect" +defs["igIsClippedEx"][1]["argsT"][2] = {} +defs["igIsClippedEx"][1]["argsT"][2]["name"] = "id" +defs["igIsClippedEx"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igIsClippedEx"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id)" +defs["igIsClippedEx"][1]["call_args"] = "(bb,id)" +defs["igIsClippedEx"][1]["cimguiname"] = "igIsClippedEx" +defs["igIsClippedEx"][1]["defaults"] = {} +defs["igIsClippedEx"][1]["funcname"] = "IsClippedEx" +defs["igIsClippedEx"][1]["location"] = "imgui_internal:3040" +defs["igIsClippedEx"][1]["namespace"] = "ImGui" +defs["igIsClippedEx"][1]["ov_cimguiname"] = "igIsClippedEx" +defs["igIsClippedEx"][1]["ret"] = "bool" +defs["igIsClippedEx"][1]["signature"] = "(const ImRect,ImGuiID)" +defs["igIsClippedEx"][1]["stname"] = "" +defs["igIsClippedEx"]["(const ImRect,ImGuiID)"] = defs["igIsClippedEx"][1] +defs["igIsDragDropActive"] = {} +defs["igIsDragDropActive"][1] = {} +defs["igIsDragDropActive"][1]["args"] = "()" +defs["igIsDragDropActive"][1]["argsT"] = {} +defs["igIsDragDropActive"][1]["argsoriginal"] = "()" +defs["igIsDragDropActive"][1]["call_args"] = "()" +defs["igIsDragDropActive"][1]["cimguiname"] = "igIsDragDropActive" +defs["igIsDragDropActive"][1]["defaults"] = {} +defs["igIsDragDropActive"][1]["funcname"] = "IsDragDropActive" +defs["igIsDragDropActive"][1]["location"] = "imgui_internal:3237" +defs["igIsDragDropActive"][1]["namespace"] = "ImGui" +defs["igIsDragDropActive"][1]["ov_cimguiname"] = "igIsDragDropActive" +defs["igIsDragDropActive"][1]["ret"] = "bool" +defs["igIsDragDropActive"][1]["signature"] = "()" +defs["igIsDragDropActive"][1]["stname"] = "" +defs["igIsDragDropActive"]["()"] = defs["igIsDragDropActive"][1] +defs["igIsDragDropPayloadBeingAccepted"] = {} +defs["igIsDragDropPayloadBeingAccepted"][1] = {} +defs["igIsDragDropPayloadBeingAccepted"][1]["args"] = "()" +defs["igIsDragDropPayloadBeingAccepted"][1]["argsT"] = {} +defs["igIsDragDropPayloadBeingAccepted"][1]["argsoriginal"] = "()" +defs["igIsDragDropPayloadBeingAccepted"][1]["call_args"] = "()" +defs["igIsDragDropPayloadBeingAccepted"][1]["cimguiname"] = "igIsDragDropPayloadBeingAccepted" +defs["igIsDragDropPayloadBeingAccepted"][1]["defaults"] = {} +defs["igIsDragDropPayloadBeingAccepted"][1]["funcname"] = "IsDragDropPayloadBeingAccepted" +defs["igIsDragDropPayloadBeingAccepted"][1]["location"] = "imgui_internal:3240" +defs["igIsDragDropPayloadBeingAccepted"][1]["namespace"] = "ImGui" +defs["igIsDragDropPayloadBeingAccepted"][1]["ov_cimguiname"] = "igIsDragDropPayloadBeingAccepted" +defs["igIsDragDropPayloadBeingAccepted"][1]["ret"] = "bool" +defs["igIsDragDropPayloadBeingAccepted"][1]["signature"] = "()" +defs["igIsDragDropPayloadBeingAccepted"][1]["stname"] = "" +defs["igIsDragDropPayloadBeingAccepted"]["()"] = defs["igIsDragDropPayloadBeingAccepted"][1] +defs["igIsGamepadKey"] = {} +defs["igIsGamepadKey"][1] = {} +defs["igIsGamepadKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsGamepadKey"][1]["argsT"] = {} +defs["igIsGamepadKey"][1]["argsT"][1] = {} +defs["igIsGamepadKey"][1]["argsT"][1]["name"] = "key" +defs["igIsGamepadKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsGamepadKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsGamepadKey"][1]["call_args"] = "(key)" +defs["igIsGamepadKey"][1]["cimguiname"] = "igIsGamepadKey" +defs["igIsGamepadKey"][1]["defaults"] = {} +defs["igIsGamepadKey"][1]["funcname"] = "IsGamepadKey" +defs["igIsGamepadKey"][1]["location"] = "imgui_internal:3104" +defs["igIsGamepadKey"][1]["namespace"] = "ImGui" +defs["igIsGamepadKey"][1]["ov_cimguiname"] = "igIsGamepadKey" +defs["igIsGamepadKey"][1]["ret"] = "bool" +defs["igIsGamepadKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsGamepadKey"][1]["stname"] = "" +defs["igIsGamepadKey"]["(ImGuiKey)"] = defs["igIsGamepadKey"][1] defs["igIsItemActivated"] = {} defs["igIsItemActivated"][1] = {} defs["igIsItemActivated"][1]["args"] = "()" @@ -10901,6 +21599,22 @@ defs["igIsItemToggledOpen"][1]["ret"] = "bool" defs["igIsItemToggledOpen"][1]["signature"] = "()" defs["igIsItemToggledOpen"][1]["stname"] = "" defs["igIsItemToggledOpen"]["()"] = defs["igIsItemToggledOpen"][1] +defs["igIsItemToggledSelection"] = {} +defs["igIsItemToggledSelection"][1] = {} +defs["igIsItemToggledSelection"][1]["args"] = "()" +defs["igIsItemToggledSelection"][1]["argsT"] = {} +defs["igIsItemToggledSelection"][1]["argsoriginal"] = "()" +defs["igIsItemToggledSelection"][1]["call_args"] = "()" +defs["igIsItemToggledSelection"][1]["cimguiname"] = "igIsItemToggledSelection" +defs["igIsItemToggledSelection"][1]["defaults"] = {} +defs["igIsItemToggledSelection"][1]["funcname"] = "IsItemToggledSelection" +defs["igIsItemToggledSelection"][1]["location"] = "imgui_internal:3045" +defs["igIsItemToggledSelection"][1]["namespace"] = "ImGui" +defs["igIsItemToggledSelection"][1]["ov_cimguiname"] = "igIsItemToggledSelection" +defs["igIsItemToggledSelection"][1]["ret"] = "bool" +defs["igIsItemToggledSelection"][1]["signature"] = "()" +defs["igIsItemToggledSelection"][1]["stname"] = "" +defs["igIsItemToggledSelection"]["()"] = defs["igIsItemToggledSelection"][1] defs["igIsItemVisible"] = {} defs["igIsItemVisible"][1] = {} defs["igIsItemVisible"][1]["args"] = "()" @@ -10931,11 +21645,32 @@ defs["igIsKeyDown"][1]["defaults"] = {} defs["igIsKeyDown"][1]["funcname"] = "IsKeyDown" defs["igIsKeyDown"][1]["location"] = "imgui:922" defs["igIsKeyDown"][1]["namespace"] = "ImGui" -defs["igIsKeyDown"][1]["ov_cimguiname"] = "igIsKeyDown" +defs["igIsKeyDown"][1]["ov_cimguiname"] = "igIsKeyDown_Nil" defs["igIsKeyDown"][1]["ret"] = "bool" defs["igIsKeyDown"][1]["signature"] = "(ImGuiKey)" defs["igIsKeyDown"][1]["stname"] = "" +defs["igIsKeyDown"][2] = {} +defs["igIsKeyDown"][2]["args"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igIsKeyDown"][2]["argsT"] = {} +defs["igIsKeyDown"][2]["argsT"][1] = {} +defs["igIsKeyDown"][2]["argsT"][1]["name"] = "key" +defs["igIsKeyDown"][2]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyDown"][2]["argsT"][2] = {} +defs["igIsKeyDown"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsKeyDown"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsKeyDown"][2]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igIsKeyDown"][2]["call_args"] = "(key,owner_id)" +defs["igIsKeyDown"][2]["cimguiname"] = "igIsKeyDown" +defs["igIsKeyDown"][2]["defaults"] = {} +defs["igIsKeyDown"][2]["funcname"] = "IsKeyDown" +defs["igIsKeyDown"][2]["location"] = "imgui_internal:3150" +defs["igIsKeyDown"][2]["namespace"] = "ImGui" +defs["igIsKeyDown"][2]["ov_cimguiname"] = "igIsKeyDown_ID" +defs["igIsKeyDown"][2]["ret"] = "bool" +defs["igIsKeyDown"][2]["signature"] = "(ImGuiKey,ImGuiID)" +defs["igIsKeyDown"][2]["stname"] = "" defs["igIsKeyDown"]["(ImGuiKey)"] = defs["igIsKeyDown"][1] +defs["igIsKeyDown"]["(ImGuiKey,ImGuiID)"] = defs["igIsKeyDown"][2] defs["igIsKeyPressed"] = {} defs["igIsKeyPressed"][1] = {} defs["igIsKeyPressed"][1]["args"] = "(ImGuiKey key,bool repeat)" @@ -10954,11 +21689,59 @@ defs["igIsKeyPressed"][1]["defaults"]["repeat"] = "true" defs["igIsKeyPressed"][1]["funcname"] = "IsKeyPressed" defs["igIsKeyPressed"][1]["location"] = "imgui:923" defs["igIsKeyPressed"][1]["namespace"] = "ImGui" -defs["igIsKeyPressed"][1]["ov_cimguiname"] = "igIsKeyPressed" +defs["igIsKeyPressed"][1]["ov_cimguiname"] = "igIsKeyPressed_Bool" defs["igIsKeyPressed"][1]["ret"] = "bool" defs["igIsKeyPressed"][1]["signature"] = "(ImGuiKey,bool)" defs["igIsKeyPressed"][1]["stname"] = "" +defs["igIsKeyPressed"][2] = {} +defs["igIsKeyPressed"][2]["args"] = "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igIsKeyPressed"][2]["argsT"] = {} +defs["igIsKeyPressed"][2]["argsT"][1] = {} +defs["igIsKeyPressed"][2]["argsT"][1]["name"] = "key" +defs["igIsKeyPressed"][2]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyPressed"][2]["argsT"][2] = {} +defs["igIsKeyPressed"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsKeyPressed"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsKeyPressed"][2]["argsT"][3] = {} +defs["igIsKeyPressed"][2]["argsT"][3]["name"] = "flags" +defs["igIsKeyPressed"][2]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igIsKeyPressed"][2]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags=0)" +defs["igIsKeyPressed"][2]["call_args"] = "(key,owner_id,flags)" +defs["igIsKeyPressed"][2]["cimguiname"] = "igIsKeyPressed" +defs["igIsKeyPressed"][2]["defaults"] = {} +defs["igIsKeyPressed"][2]["defaults"]["flags"] = "0" +defs["igIsKeyPressed"][2]["funcname"] = "IsKeyPressed" +defs["igIsKeyPressed"][2]["location"] = "imgui_internal:3151" +defs["igIsKeyPressed"][2]["namespace"] = "ImGui" +defs["igIsKeyPressed"][2]["ov_cimguiname"] = "igIsKeyPressed_ID" +defs["igIsKeyPressed"][2]["ret"] = "bool" +defs["igIsKeyPressed"][2]["signature"] = "(ImGuiKey,ImGuiID,ImGuiInputFlags)" +defs["igIsKeyPressed"][2]["stname"] = "" +defs["igIsKeyPressed"]["(ImGuiKey,ImGuiID,ImGuiInputFlags)"] = defs["igIsKeyPressed"][2] defs["igIsKeyPressed"]["(ImGuiKey,bool)"] = defs["igIsKeyPressed"][1] +defs["igIsKeyPressedMap"] = {} +defs["igIsKeyPressedMap"][1] = {} +defs["igIsKeyPressedMap"][1]["args"] = "(ImGuiKey key,bool repeat)" +defs["igIsKeyPressedMap"][1]["argsT"] = {} +defs["igIsKeyPressedMap"][1]["argsT"][1] = {} +defs["igIsKeyPressedMap"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyPressedMap"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyPressedMap"][1]["argsT"][2] = {} +defs["igIsKeyPressedMap"][1]["argsT"][2]["name"] = "repeat" +defs["igIsKeyPressedMap"][1]["argsT"][2]["type"] = "bool" +defs["igIsKeyPressedMap"][1]["argsoriginal"] = "(ImGuiKey key,bool repeat=true)" +defs["igIsKeyPressedMap"][1]["call_args"] = "(key,repeat)" +defs["igIsKeyPressedMap"][1]["cimguiname"] = "igIsKeyPressedMap" +defs["igIsKeyPressedMap"][1]["defaults"] = {} +defs["igIsKeyPressedMap"][1]["defaults"]["repeat"] = "true" +defs["igIsKeyPressedMap"][1]["funcname"] = "IsKeyPressedMap" +defs["igIsKeyPressedMap"][1]["location"] = "imgui_internal:3465" +defs["igIsKeyPressedMap"][1]["namespace"] = "ImGui" +defs["igIsKeyPressedMap"][1]["ov_cimguiname"] = "igIsKeyPressedMap" +defs["igIsKeyPressedMap"][1]["ret"] = "bool" +defs["igIsKeyPressedMap"][1]["signature"] = "(ImGuiKey,bool)" +defs["igIsKeyPressedMap"][1]["stname"] = "" +defs["igIsKeyPressedMap"]["(ImGuiKey,bool)"] = defs["igIsKeyPressedMap"][1] defs["igIsKeyReleased"] = {} defs["igIsKeyReleased"][1] = {} defs["igIsKeyReleased"][1]["args"] = "(ImGuiKey key)" @@ -10973,11 +21756,70 @@ defs["igIsKeyReleased"][1]["defaults"] = {} defs["igIsKeyReleased"][1]["funcname"] = "IsKeyReleased" defs["igIsKeyReleased"][1]["location"] = "imgui:924" defs["igIsKeyReleased"][1]["namespace"] = "ImGui" -defs["igIsKeyReleased"][1]["ov_cimguiname"] = "igIsKeyReleased" +defs["igIsKeyReleased"][1]["ov_cimguiname"] = "igIsKeyReleased_Nil" defs["igIsKeyReleased"][1]["ret"] = "bool" defs["igIsKeyReleased"][1]["signature"] = "(ImGuiKey)" defs["igIsKeyReleased"][1]["stname"] = "" +defs["igIsKeyReleased"][2] = {} +defs["igIsKeyReleased"][2]["args"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igIsKeyReleased"][2]["argsT"] = {} +defs["igIsKeyReleased"][2]["argsT"][1] = {} +defs["igIsKeyReleased"][2]["argsT"][1]["name"] = "key" +defs["igIsKeyReleased"][2]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyReleased"][2]["argsT"][2] = {} +defs["igIsKeyReleased"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsKeyReleased"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsKeyReleased"][2]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igIsKeyReleased"][2]["call_args"] = "(key,owner_id)" +defs["igIsKeyReleased"][2]["cimguiname"] = "igIsKeyReleased" +defs["igIsKeyReleased"][2]["defaults"] = {} +defs["igIsKeyReleased"][2]["funcname"] = "IsKeyReleased" +defs["igIsKeyReleased"][2]["location"] = "imgui_internal:3152" +defs["igIsKeyReleased"][2]["namespace"] = "ImGui" +defs["igIsKeyReleased"][2]["ov_cimguiname"] = "igIsKeyReleased_ID" +defs["igIsKeyReleased"][2]["ret"] = "bool" +defs["igIsKeyReleased"][2]["signature"] = "(ImGuiKey,ImGuiID)" +defs["igIsKeyReleased"][2]["stname"] = "" defs["igIsKeyReleased"]["(ImGuiKey)"] = defs["igIsKeyReleased"][1] +defs["igIsKeyReleased"]["(ImGuiKey,ImGuiID)"] = defs["igIsKeyReleased"][2] +defs["igIsKeyboardKey"] = {} +defs["igIsKeyboardKey"][1] = {} +defs["igIsKeyboardKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsKeyboardKey"][1]["argsT"] = {} +defs["igIsKeyboardKey"][1]["argsT"][1] = {} +defs["igIsKeyboardKey"][1]["argsT"][1]["name"] = "key" +defs["igIsKeyboardKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsKeyboardKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsKeyboardKey"][1]["call_args"] = "(key)" +defs["igIsKeyboardKey"][1]["cimguiname"] = "igIsKeyboardKey" +defs["igIsKeyboardKey"][1]["defaults"] = {} +defs["igIsKeyboardKey"][1]["funcname"] = "IsKeyboardKey" +defs["igIsKeyboardKey"][1]["location"] = "imgui_internal:3103" +defs["igIsKeyboardKey"][1]["namespace"] = "ImGui" +defs["igIsKeyboardKey"][1]["ov_cimguiname"] = "igIsKeyboardKey" +defs["igIsKeyboardKey"][1]["ret"] = "bool" +defs["igIsKeyboardKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsKeyboardKey"][1]["stname"] = "" +defs["igIsKeyboardKey"]["(ImGuiKey)"] = defs["igIsKeyboardKey"][1] +defs["igIsLegacyKey"] = {} +defs["igIsLegacyKey"][1] = {} +defs["igIsLegacyKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsLegacyKey"][1]["argsT"] = {} +defs["igIsLegacyKey"][1]["argsT"][1] = {} +defs["igIsLegacyKey"][1]["argsT"][1]["name"] = "key" +defs["igIsLegacyKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsLegacyKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsLegacyKey"][1]["call_args"] = "(key)" +defs["igIsLegacyKey"][1]["cimguiname"] = "igIsLegacyKey" +defs["igIsLegacyKey"][1]["defaults"] = {} +defs["igIsLegacyKey"][1]["funcname"] = "IsLegacyKey" +defs["igIsLegacyKey"][1]["location"] = "imgui_internal:3102" +defs["igIsLegacyKey"][1]["namespace"] = "ImGui" +defs["igIsLegacyKey"][1]["ov_cimguiname"] = "igIsLegacyKey" +defs["igIsLegacyKey"][1]["ret"] = "bool" +defs["igIsLegacyKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsLegacyKey"][1]["stname"] = "" +defs["igIsLegacyKey"]["(ImGuiKey)"] = defs["igIsLegacyKey"][1] defs["igIsMouseClicked"] = {} defs["igIsMouseClicked"][1] = {} defs["igIsMouseClicked"][1]["args"] = "(ImGuiMouseButton button,bool repeat)" @@ -10996,10 +21838,35 @@ defs["igIsMouseClicked"][1]["defaults"]["repeat"] = "false" defs["igIsMouseClicked"][1]["funcname"] = "IsMouseClicked" defs["igIsMouseClicked"][1]["location"] = "imgui:934" defs["igIsMouseClicked"][1]["namespace"] = "ImGui" -defs["igIsMouseClicked"][1]["ov_cimguiname"] = "igIsMouseClicked" +defs["igIsMouseClicked"][1]["ov_cimguiname"] = "igIsMouseClicked_Bool" defs["igIsMouseClicked"][1]["ret"] = "bool" defs["igIsMouseClicked"][1]["signature"] = "(ImGuiMouseButton,bool)" defs["igIsMouseClicked"][1]["stname"] = "" +defs["igIsMouseClicked"][2] = {} +defs["igIsMouseClicked"][2]["args"] = "(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igIsMouseClicked"][2]["argsT"] = {} +defs["igIsMouseClicked"][2]["argsT"][1] = {} +defs["igIsMouseClicked"][2]["argsT"][1]["name"] = "button" +defs["igIsMouseClicked"][2]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseClicked"][2]["argsT"][2] = {} +defs["igIsMouseClicked"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsMouseClicked"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsMouseClicked"][2]["argsT"][3] = {} +defs["igIsMouseClicked"][2]["argsT"][3]["name"] = "flags" +defs["igIsMouseClicked"][2]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igIsMouseClicked"][2]["argsoriginal"] = "(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags=0)" +defs["igIsMouseClicked"][2]["call_args"] = "(button,owner_id,flags)" +defs["igIsMouseClicked"][2]["cimguiname"] = "igIsMouseClicked" +defs["igIsMouseClicked"][2]["defaults"] = {} +defs["igIsMouseClicked"][2]["defaults"]["flags"] = "0" +defs["igIsMouseClicked"][2]["funcname"] = "IsMouseClicked" +defs["igIsMouseClicked"][2]["location"] = "imgui_internal:3154" +defs["igIsMouseClicked"][2]["namespace"] = "ImGui" +defs["igIsMouseClicked"][2]["ov_cimguiname"] = "igIsMouseClicked_ID" +defs["igIsMouseClicked"][2]["ret"] = "bool" +defs["igIsMouseClicked"][2]["signature"] = "(ImGuiMouseButton,ImGuiID,ImGuiInputFlags)" +defs["igIsMouseClicked"][2]["stname"] = "" +defs["igIsMouseClicked"]["(ImGuiMouseButton,ImGuiID,ImGuiInputFlags)"] = defs["igIsMouseClicked"][2] defs["igIsMouseClicked"]["(ImGuiMouseButton,bool)"] = defs["igIsMouseClicked"][1] defs["igIsMouseDoubleClicked"] = {} defs["igIsMouseDoubleClicked"][1] = {} @@ -11034,11 +21901,55 @@ defs["igIsMouseDown"][1]["defaults"] = {} defs["igIsMouseDown"][1]["funcname"] = "IsMouseDown" defs["igIsMouseDown"][1]["location"] = "imgui:933" defs["igIsMouseDown"][1]["namespace"] = "ImGui" -defs["igIsMouseDown"][1]["ov_cimguiname"] = "igIsMouseDown" +defs["igIsMouseDown"][1]["ov_cimguiname"] = "igIsMouseDown_Nil" defs["igIsMouseDown"][1]["ret"] = "bool" defs["igIsMouseDown"][1]["signature"] = "(ImGuiMouseButton)" defs["igIsMouseDown"][1]["stname"] = "" +defs["igIsMouseDown"][2] = {} +defs["igIsMouseDown"][2]["args"] = "(ImGuiMouseButton button,ImGuiID owner_id)" +defs["igIsMouseDown"][2]["argsT"] = {} +defs["igIsMouseDown"][2]["argsT"][1] = {} +defs["igIsMouseDown"][2]["argsT"][1]["name"] = "button" +defs["igIsMouseDown"][2]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseDown"][2]["argsT"][2] = {} +defs["igIsMouseDown"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsMouseDown"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsMouseDown"][2]["argsoriginal"] = "(ImGuiMouseButton button,ImGuiID owner_id)" +defs["igIsMouseDown"][2]["call_args"] = "(button,owner_id)" +defs["igIsMouseDown"][2]["cimguiname"] = "igIsMouseDown" +defs["igIsMouseDown"][2]["defaults"] = {} +defs["igIsMouseDown"][2]["funcname"] = "IsMouseDown" +defs["igIsMouseDown"][2]["location"] = "imgui_internal:3153" +defs["igIsMouseDown"][2]["namespace"] = "ImGui" +defs["igIsMouseDown"][2]["ov_cimguiname"] = "igIsMouseDown_ID" +defs["igIsMouseDown"][2]["ret"] = "bool" +defs["igIsMouseDown"][2]["signature"] = "(ImGuiMouseButton,ImGuiID)" +defs["igIsMouseDown"][2]["stname"] = "" defs["igIsMouseDown"]["(ImGuiMouseButton)"] = defs["igIsMouseDown"][1] +defs["igIsMouseDown"]["(ImGuiMouseButton,ImGuiID)"] = defs["igIsMouseDown"][2] +defs["igIsMouseDragPastThreshold"] = {} +defs["igIsMouseDragPastThreshold"][1] = {} +defs["igIsMouseDragPastThreshold"][1]["args"] = "(ImGuiMouseButton button,float lock_threshold)" +defs["igIsMouseDragPastThreshold"][1]["argsT"] = {} +defs["igIsMouseDragPastThreshold"][1]["argsT"][1] = {} +defs["igIsMouseDragPastThreshold"][1]["argsT"][1]["name"] = "button" +defs["igIsMouseDragPastThreshold"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseDragPastThreshold"][1]["argsT"][2] = {} +defs["igIsMouseDragPastThreshold"][1]["argsT"][2]["name"] = "lock_threshold" +defs["igIsMouseDragPastThreshold"][1]["argsT"][2]["type"] = "float" +defs["igIsMouseDragPastThreshold"][1]["argsoriginal"] = "(ImGuiMouseButton button,float lock_threshold=-1.0f)" +defs["igIsMouseDragPastThreshold"][1]["call_args"] = "(button,lock_threshold)" +defs["igIsMouseDragPastThreshold"][1]["cimguiname"] = "igIsMouseDragPastThreshold" +defs["igIsMouseDragPastThreshold"][1]["defaults"] = {} +defs["igIsMouseDragPastThreshold"][1]["defaults"]["lock_threshold"] = "-1.0f" +defs["igIsMouseDragPastThreshold"][1]["funcname"] = "IsMouseDragPastThreshold" +defs["igIsMouseDragPastThreshold"][1]["location"] = "imgui_internal:3119" +defs["igIsMouseDragPastThreshold"][1]["namespace"] = "ImGui" +defs["igIsMouseDragPastThreshold"][1]["ov_cimguiname"] = "igIsMouseDragPastThreshold" +defs["igIsMouseDragPastThreshold"][1]["ret"] = "bool" +defs["igIsMouseDragPastThreshold"][1]["signature"] = "(ImGuiMouseButton,float)" +defs["igIsMouseDragPastThreshold"][1]["stname"] = "" +defs["igIsMouseDragPastThreshold"]["(ImGuiMouseButton,float)"] = defs["igIsMouseDragPastThreshold"][1] defs["igIsMouseDragging"] = {} defs["igIsMouseDragging"][1] = {} defs["igIsMouseDragging"][1]["args"] = "(ImGuiMouseButton button,float lock_threshold)" @@ -11088,6 +21999,25 @@ defs["igIsMouseHoveringRect"][1]["ret"] = "bool" defs["igIsMouseHoveringRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" defs["igIsMouseHoveringRect"][1]["stname"] = "" defs["igIsMouseHoveringRect"]["(const ImVec2,const ImVec2,bool)"] = defs["igIsMouseHoveringRect"][1] +defs["igIsMouseKey"] = {} +defs["igIsMouseKey"][1] = {} +defs["igIsMouseKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsMouseKey"][1]["argsT"] = {} +defs["igIsMouseKey"][1]["argsT"][1] = {} +defs["igIsMouseKey"][1]["argsT"][1]["name"] = "key" +defs["igIsMouseKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsMouseKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsMouseKey"][1]["call_args"] = "(key)" +defs["igIsMouseKey"][1]["cimguiname"] = "igIsMouseKey" +defs["igIsMouseKey"][1]["defaults"] = {} +defs["igIsMouseKey"][1]["funcname"] = "IsMouseKey" +defs["igIsMouseKey"][1]["location"] = "imgui_internal:3105" +defs["igIsMouseKey"][1]["namespace"] = "ImGui" +defs["igIsMouseKey"][1]["ov_cimguiname"] = "igIsMouseKey" +defs["igIsMouseKey"][1]["ret"] = "bool" +defs["igIsMouseKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsMouseKey"][1]["stname"] = "" +defs["igIsMouseKey"]["(ImGuiKey)"] = defs["igIsMouseKey"][1] defs["igIsMousePosValid"] = {} defs["igIsMousePosValid"][1] = {} defs["igIsMousePosValid"][1]["args"] = "(const ImVec2* mouse_pos)" @@ -11122,11 +22052,70 @@ defs["igIsMouseReleased"][1]["defaults"] = {} defs["igIsMouseReleased"][1]["funcname"] = "IsMouseReleased" defs["igIsMouseReleased"][1]["location"] = "imgui:935" defs["igIsMouseReleased"][1]["namespace"] = "ImGui" -defs["igIsMouseReleased"][1]["ov_cimguiname"] = "igIsMouseReleased" +defs["igIsMouseReleased"][1]["ov_cimguiname"] = "igIsMouseReleased_Nil" defs["igIsMouseReleased"][1]["ret"] = "bool" defs["igIsMouseReleased"][1]["signature"] = "(ImGuiMouseButton)" defs["igIsMouseReleased"][1]["stname"] = "" +defs["igIsMouseReleased"][2] = {} +defs["igIsMouseReleased"][2]["args"] = "(ImGuiMouseButton button,ImGuiID owner_id)" +defs["igIsMouseReleased"][2]["argsT"] = {} +defs["igIsMouseReleased"][2]["argsT"][1] = {} +defs["igIsMouseReleased"][2]["argsT"][1]["name"] = "button" +defs["igIsMouseReleased"][2]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igIsMouseReleased"][2]["argsT"][2] = {} +defs["igIsMouseReleased"][2]["argsT"][2]["name"] = "owner_id" +defs["igIsMouseReleased"][2]["argsT"][2]["type"] = "ImGuiID" +defs["igIsMouseReleased"][2]["argsoriginal"] = "(ImGuiMouseButton button,ImGuiID owner_id)" +defs["igIsMouseReleased"][2]["call_args"] = "(button,owner_id)" +defs["igIsMouseReleased"][2]["cimguiname"] = "igIsMouseReleased" +defs["igIsMouseReleased"][2]["defaults"] = {} +defs["igIsMouseReleased"][2]["funcname"] = "IsMouseReleased" +defs["igIsMouseReleased"][2]["location"] = "imgui_internal:3155" +defs["igIsMouseReleased"][2]["namespace"] = "ImGui" +defs["igIsMouseReleased"][2]["ov_cimguiname"] = "igIsMouseReleased_ID" +defs["igIsMouseReleased"][2]["ret"] = "bool" +defs["igIsMouseReleased"][2]["signature"] = "(ImGuiMouseButton,ImGuiID)" +defs["igIsMouseReleased"][2]["stname"] = "" defs["igIsMouseReleased"]["(ImGuiMouseButton)"] = defs["igIsMouseReleased"][1] +defs["igIsMouseReleased"]["(ImGuiMouseButton,ImGuiID)"] = defs["igIsMouseReleased"][2] +defs["igIsNamedKey"] = {} +defs["igIsNamedKey"][1] = {} +defs["igIsNamedKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsNamedKey"][1]["argsT"] = {} +defs["igIsNamedKey"][1]["argsT"][1] = {} +defs["igIsNamedKey"][1]["argsT"][1]["name"] = "key" +defs["igIsNamedKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsNamedKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsNamedKey"][1]["call_args"] = "(key)" +defs["igIsNamedKey"][1]["cimguiname"] = "igIsNamedKey" +defs["igIsNamedKey"][1]["defaults"] = {} +defs["igIsNamedKey"][1]["funcname"] = "IsNamedKey" +defs["igIsNamedKey"][1]["location"] = "imgui_internal:3100" +defs["igIsNamedKey"][1]["namespace"] = "ImGui" +defs["igIsNamedKey"][1]["ov_cimguiname"] = "igIsNamedKey" +defs["igIsNamedKey"][1]["ret"] = "bool" +defs["igIsNamedKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsNamedKey"][1]["stname"] = "" +defs["igIsNamedKey"]["(ImGuiKey)"] = defs["igIsNamedKey"][1] +defs["igIsNamedKeyOrModKey"] = {} +defs["igIsNamedKeyOrModKey"][1] = {} +defs["igIsNamedKeyOrModKey"][1]["args"] = "(ImGuiKey key)" +defs["igIsNamedKeyOrModKey"][1]["argsT"] = {} +defs["igIsNamedKeyOrModKey"][1]["argsT"][1] = {} +defs["igIsNamedKeyOrModKey"][1]["argsT"][1]["name"] = "key" +defs["igIsNamedKeyOrModKey"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igIsNamedKeyOrModKey"][1]["argsoriginal"] = "(ImGuiKey key)" +defs["igIsNamedKeyOrModKey"][1]["call_args"] = "(key)" +defs["igIsNamedKeyOrModKey"][1]["cimguiname"] = "igIsNamedKeyOrModKey" +defs["igIsNamedKeyOrModKey"][1]["defaults"] = {} +defs["igIsNamedKeyOrModKey"][1]["funcname"] = "IsNamedKeyOrModKey" +defs["igIsNamedKeyOrModKey"][1]["location"] = "imgui_internal:3101" +defs["igIsNamedKeyOrModKey"][1]["namespace"] = "ImGui" +defs["igIsNamedKeyOrModKey"][1]["ov_cimguiname"] = "igIsNamedKeyOrModKey" +defs["igIsNamedKeyOrModKey"][1]["ret"] = "bool" +defs["igIsNamedKeyOrModKey"][1]["signature"] = "(ImGuiKey)" +defs["igIsNamedKeyOrModKey"][1]["stname"] = "" +defs["igIsNamedKeyOrModKey"]["(ImGuiKey)"] = defs["igIsNamedKeyOrModKey"][1] defs["igIsPopupOpen"] = {} defs["igIsPopupOpen"][1] = {} defs["igIsPopupOpen"][1]["args"] = "(const char* str_id,ImGuiPopupFlags flags)" @@ -11145,10 +22134,31 @@ defs["igIsPopupOpen"][1]["defaults"]["flags"] = "0" defs["igIsPopupOpen"][1]["funcname"] = "IsPopupOpen" defs["igIsPopupOpen"][1]["location"] = "imgui:723" defs["igIsPopupOpen"][1]["namespace"] = "ImGui" -defs["igIsPopupOpen"][1]["ov_cimguiname"] = "igIsPopupOpen" +defs["igIsPopupOpen"][1]["ov_cimguiname"] = "igIsPopupOpen_Str" defs["igIsPopupOpen"][1]["ret"] = "bool" defs["igIsPopupOpen"][1]["signature"] = "(const char*,ImGuiPopupFlags)" defs["igIsPopupOpen"][1]["stname"] = "" +defs["igIsPopupOpen"][2] = {} +defs["igIsPopupOpen"][2]["args"] = "(ImGuiID id,ImGuiPopupFlags popup_flags)" +defs["igIsPopupOpen"][2]["argsT"] = {} +defs["igIsPopupOpen"][2]["argsT"][1] = {} +defs["igIsPopupOpen"][2]["argsT"][1]["name"] = "id" +defs["igIsPopupOpen"][2]["argsT"][1]["type"] = "ImGuiID" +defs["igIsPopupOpen"][2]["argsT"][2] = {} +defs["igIsPopupOpen"][2]["argsT"][2]["name"] = "popup_flags" +defs["igIsPopupOpen"][2]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igIsPopupOpen"][2]["argsoriginal"] = "(ImGuiID id,ImGuiPopupFlags popup_flags)" +defs["igIsPopupOpen"][2]["call_args"] = "(id,popup_flags)" +defs["igIsPopupOpen"][2]["cimguiname"] = "igIsPopupOpen" +defs["igIsPopupOpen"][2]["defaults"] = {} +defs["igIsPopupOpen"][2]["funcname"] = "IsPopupOpen" +defs["igIsPopupOpen"][2]["location"] = "imgui_internal:3065" +defs["igIsPopupOpen"][2]["namespace"] = "ImGui" +defs["igIsPopupOpen"][2]["ov_cimguiname"] = "igIsPopupOpen_ID" +defs["igIsPopupOpen"][2]["ret"] = "bool" +defs["igIsPopupOpen"][2]["signature"] = "(ImGuiID,ImGuiPopupFlags)" +defs["igIsPopupOpen"][2]["stname"] = "" +defs["igIsPopupOpen"]["(ImGuiID,ImGuiPopupFlags)"] = defs["igIsPopupOpen"][2] defs["igIsPopupOpen"]["(const char*,ImGuiPopupFlags)"] = defs["igIsPopupOpen"][1] defs["igIsRectVisible"] = {} defs["igIsRectVisible"][1] = {} @@ -11190,6 +22200,28 @@ defs["igIsRectVisible"][2]["signature"] = "(const ImVec2,const ImVec2)" defs["igIsRectVisible"][2]["stname"] = "" defs["igIsRectVisible"]["(const ImVec2)"] = defs["igIsRectVisible"][1] defs["igIsRectVisible"]["(const ImVec2,const ImVec2)"] = defs["igIsRectVisible"][2] +defs["igIsWindowAbove"] = {} +defs["igIsWindowAbove"][1] = {} +defs["igIsWindowAbove"][1]["args"] = "(ImGuiWindow* potential_above,ImGuiWindow* potential_below)" +defs["igIsWindowAbove"][1]["argsT"] = {} +defs["igIsWindowAbove"][1]["argsT"][1] = {} +defs["igIsWindowAbove"][1]["argsT"][1]["name"] = "potential_above" +defs["igIsWindowAbove"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igIsWindowAbove"][1]["argsT"][2] = {} +defs["igIsWindowAbove"][1]["argsT"][2]["name"] = "potential_below" +defs["igIsWindowAbove"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igIsWindowAbove"][1]["argsoriginal"] = "(ImGuiWindow* potential_above,ImGuiWindow* potential_below)" +defs["igIsWindowAbove"][1]["call_args"] = "(potential_above,potential_below)" +defs["igIsWindowAbove"][1]["cimguiname"] = "igIsWindowAbove" +defs["igIsWindowAbove"][1]["defaults"] = {} +defs["igIsWindowAbove"][1]["funcname"] = "IsWindowAbove" +defs["igIsWindowAbove"][1]["location"] = "imgui_internal:2940" +defs["igIsWindowAbove"][1]["namespace"] = "ImGui" +defs["igIsWindowAbove"][1]["ov_cimguiname"] = "igIsWindowAbove" +defs["igIsWindowAbove"][1]["ret"] = "bool" +defs["igIsWindowAbove"][1]["signature"] = "(ImGuiWindow*,ImGuiWindow*)" +defs["igIsWindowAbove"][1]["stname"] = "" +defs["igIsWindowAbove"]["(ImGuiWindow*,ImGuiWindow*)"] = defs["igIsWindowAbove"][1] defs["igIsWindowAppearing"] = {} defs["igIsWindowAppearing"][1] = {} defs["igIsWindowAppearing"][1]["args"] = "()" @@ -11206,6 +22238,34 @@ defs["igIsWindowAppearing"][1]["ret"] = "bool" defs["igIsWindowAppearing"][1]["signature"] = "()" defs["igIsWindowAppearing"][1]["stname"] = "" defs["igIsWindowAppearing"]["()"] = defs["igIsWindowAppearing"][1] +defs["igIsWindowChildOf"] = {} +defs["igIsWindowChildOf"][1] = {} +defs["igIsWindowChildOf"][1]["args"] = "(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy)" +defs["igIsWindowChildOf"][1]["argsT"] = {} +defs["igIsWindowChildOf"][1]["argsT"][1] = {} +defs["igIsWindowChildOf"][1]["argsT"][1]["name"] = "window" +defs["igIsWindowChildOf"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igIsWindowChildOf"][1]["argsT"][2] = {} +defs["igIsWindowChildOf"][1]["argsT"][2]["name"] = "potential_parent" +defs["igIsWindowChildOf"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igIsWindowChildOf"][1]["argsT"][3] = {} +defs["igIsWindowChildOf"][1]["argsT"][3]["name"] = "popup_hierarchy" +defs["igIsWindowChildOf"][1]["argsT"][3]["type"] = "bool" +defs["igIsWindowChildOf"][1]["argsT"][4] = {} +defs["igIsWindowChildOf"][1]["argsT"][4]["name"] = "dock_hierarchy" +defs["igIsWindowChildOf"][1]["argsT"][4]["type"] = "bool" +defs["igIsWindowChildOf"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy)" +defs["igIsWindowChildOf"][1]["call_args"] = "(window,potential_parent,popup_hierarchy,dock_hierarchy)" +defs["igIsWindowChildOf"][1]["cimguiname"] = "igIsWindowChildOf" +defs["igIsWindowChildOf"][1]["defaults"] = {} +defs["igIsWindowChildOf"][1]["funcname"] = "IsWindowChildOf" +defs["igIsWindowChildOf"][1]["location"] = "imgui_internal:2938" +defs["igIsWindowChildOf"][1]["namespace"] = "ImGui" +defs["igIsWindowChildOf"][1]["ov_cimguiname"] = "igIsWindowChildOf" +defs["igIsWindowChildOf"][1]["ret"] = "bool" +defs["igIsWindowChildOf"][1]["signature"] = "(ImGuiWindow*,ImGuiWindow*,bool,bool)" +defs["igIsWindowChildOf"][1]["stname"] = "" +defs["igIsWindowChildOf"]["(ImGuiWindow*,ImGuiWindow*,bool,bool)"] = defs["igIsWindowChildOf"][1] defs["igIsWindowCollapsed"] = {} defs["igIsWindowCollapsed"][1] = {} defs["igIsWindowCollapsed"][1]["args"] = "()" @@ -11278,6 +22338,163 @@ defs["igIsWindowHovered"][1]["ret"] = "bool" defs["igIsWindowHovered"][1]["signature"] = "(ImGuiHoveredFlags)" defs["igIsWindowHovered"][1]["stname"] = "" defs["igIsWindowHovered"]["(ImGuiHoveredFlags)"] = defs["igIsWindowHovered"][1] +defs["igIsWindowNavFocusable"] = {} +defs["igIsWindowNavFocusable"][1] = {} +defs["igIsWindowNavFocusable"][1]["args"] = "(ImGuiWindow* window)" +defs["igIsWindowNavFocusable"][1]["argsT"] = {} +defs["igIsWindowNavFocusable"][1]["argsT"][1] = {} +defs["igIsWindowNavFocusable"][1]["argsT"][1]["name"] = "window" +defs["igIsWindowNavFocusable"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igIsWindowNavFocusable"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igIsWindowNavFocusable"][1]["call_args"] = "(window)" +defs["igIsWindowNavFocusable"][1]["cimguiname"] = "igIsWindowNavFocusable" +defs["igIsWindowNavFocusable"][1]["defaults"] = {} +defs["igIsWindowNavFocusable"][1]["funcname"] = "IsWindowNavFocusable" +defs["igIsWindowNavFocusable"][1]["location"] = "imgui_internal:2941" +defs["igIsWindowNavFocusable"][1]["namespace"] = "ImGui" +defs["igIsWindowNavFocusable"][1]["ov_cimguiname"] = "igIsWindowNavFocusable" +defs["igIsWindowNavFocusable"][1]["ret"] = "bool" +defs["igIsWindowNavFocusable"][1]["signature"] = "(ImGuiWindow*)" +defs["igIsWindowNavFocusable"][1]["stname"] = "" +defs["igIsWindowNavFocusable"]["(ImGuiWindow*)"] = defs["igIsWindowNavFocusable"][1] +defs["igIsWindowWithinBeginStackOf"] = {} +defs["igIsWindowWithinBeginStackOf"][1] = {} +defs["igIsWindowWithinBeginStackOf"][1]["args"] = "(ImGuiWindow* window,ImGuiWindow* potential_parent)" +defs["igIsWindowWithinBeginStackOf"][1]["argsT"] = {} +defs["igIsWindowWithinBeginStackOf"][1]["argsT"][1] = {} +defs["igIsWindowWithinBeginStackOf"][1]["argsT"][1]["name"] = "window" +defs["igIsWindowWithinBeginStackOf"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igIsWindowWithinBeginStackOf"][1]["argsT"][2] = {} +defs["igIsWindowWithinBeginStackOf"][1]["argsT"][2]["name"] = "potential_parent" +defs["igIsWindowWithinBeginStackOf"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igIsWindowWithinBeginStackOf"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiWindow* potential_parent)" +defs["igIsWindowWithinBeginStackOf"][1]["call_args"] = "(window,potential_parent)" +defs["igIsWindowWithinBeginStackOf"][1]["cimguiname"] = "igIsWindowWithinBeginStackOf" +defs["igIsWindowWithinBeginStackOf"][1]["defaults"] = {} +defs["igIsWindowWithinBeginStackOf"][1]["funcname"] = "IsWindowWithinBeginStackOf" +defs["igIsWindowWithinBeginStackOf"][1]["location"] = "imgui_internal:2939" +defs["igIsWindowWithinBeginStackOf"][1]["namespace"] = "ImGui" +defs["igIsWindowWithinBeginStackOf"][1]["ov_cimguiname"] = "igIsWindowWithinBeginStackOf" +defs["igIsWindowWithinBeginStackOf"][1]["ret"] = "bool" +defs["igIsWindowWithinBeginStackOf"][1]["signature"] = "(ImGuiWindow*,ImGuiWindow*)" +defs["igIsWindowWithinBeginStackOf"][1]["stname"] = "" +defs["igIsWindowWithinBeginStackOf"]["(ImGuiWindow*,ImGuiWindow*)"] = defs["igIsWindowWithinBeginStackOf"][1] +defs["igItemAdd"] = {} +defs["igItemAdd"][1] = {} +defs["igItemAdd"][1]["args"] = "(const ImRect bb,ImGuiID id,const ImRect* nav_bb,ImGuiItemFlags extra_flags)" +defs["igItemAdd"][1]["argsT"] = {} +defs["igItemAdd"][1]["argsT"][1] = {} +defs["igItemAdd"][1]["argsT"][1]["name"] = "bb" +defs["igItemAdd"][1]["argsT"][1]["type"] = "const ImRect" +defs["igItemAdd"][1]["argsT"][2] = {} +defs["igItemAdd"][1]["argsT"][2]["name"] = "id" +defs["igItemAdd"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igItemAdd"][1]["argsT"][3] = {} +defs["igItemAdd"][1]["argsT"][3]["name"] = "nav_bb" +defs["igItemAdd"][1]["argsT"][3]["type"] = "const ImRect*" +defs["igItemAdd"][1]["argsT"][4] = {} +defs["igItemAdd"][1]["argsT"][4]["name"] = "extra_flags" +defs["igItemAdd"][1]["argsT"][4]["type"] = "ImGuiItemFlags" +defs["igItemAdd"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id,const ImRect* nav_bb=((void*)0),ImGuiItemFlags extra_flags=0)" +defs["igItemAdd"][1]["call_args"] = "(bb,id,nav_bb,extra_flags)" +defs["igItemAdd"][1]["cimguiname"] = "igItemAdd" +defs["igItemAdd"][1]["defaults"] = {} +defs["igItemAdd"][1]["defaults"]["extra_flags"] = "0" +defs["igItemAdd"][1]["defaults"]["nav_bb"] = "NULL" +defs["igItemAdd"][1]["funcname"] = "ItemAdd" +defs["igItemAdd"][1]["location"] = "imgui_internal:3038" +defs["igItemAdd"][1]["namespace"] = "ImGui" +defs["igItemAdd"][1]["ov_cimguiname"] = "igItemAdd" +defs["igItemAdd"][1]["ret"] = "bool" +defs["igItemAdd"][1]["signature"] = "(const ImRect,ImGuiID,const ImRect*,ImGuiItemFlags)" +defs["igItemAdd"][1]["stname"] = "" +defs["igItemAdd"]["(const ImRect,ImGuiID,const ImRect*,ImGuiItemFlags)"] = defs["igItemAdd"][1] +defs["igItemHoverable"] = {} +defs["igItemHoverable"][1] = {} +defs["igItemHoverable"][1]["args"] = "(const ImRect bb,ImGuiID id)" +defs["igItemHoverable"][1]["argsT"] = {} +defs["igItemHoverable"][1]["argsT"][1] = {} +defs["igItemHoverable"][1]["argsT"][1]["name"] = "bb" +defs["igItemHoverable"][1]["argsT"][1]["type"] = "const ImRect" +defs["igItemHoverable"][1]["argsT"][2] = {} +defs["igItemHoverable"][1]["argsT"][2]["name"] = "id" +defs["igItemHoverable"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igItemHoverable"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id)" +defs["igItemHoverable"][1]["call_args"] = "(bb,id)" +defs["igItemHoverable"][1]["cimguiname"] = "igItemHoverable" +defs["igItemHoverable"][1]["defaults"] = {} +defs["igItemHoverable"][1]["funcname"] = "ItemHoverable" +defs["igItemHoverable"][1]["location"] = "imgui_internal:3039" +defs["igItemHoverable"][1]["namespace"] = "ImGui" +defs["igItemHoverable"][1]["ov_cimguiname"] = "igItemHoverable" +defs["igItemHoverable"][1]["ret"] = "bool" +defs["igItemHoverable"][1]["signature"] = "(const ImRect,ImGuiID)" +defs["igItemHoverable"][1]["stname"] = "" +defs["igItemHoverable"]["(const ImRect,ImGuiID)"] = defs["igItemHoverable"][1] +defs["igItemSize"] = {} +defs["igItemSize"][1] = {} +defs["igItemSize"][1]["args"] = "(const ImVec2 size,float text_baseline_y)" +defs["igItemSize"][1]["argsT"] = {} +defs["igItemSize"][1]["argsT"][1] = {} +defs["igItemSize"][1]["argsT"][1]["name"] = "size" +defs["igItemSize"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igItemSize"][1]["argsT"][2] = {} +defs["igItemSize"][1]["argsT"][2]["name"] = "text_baseline_y" +defs["igItemSize"][1]["argsT"][2]["type"] = "float" +defs["igItemSize"][1]["argsoriginal"] = "(const ImVec2& size,float text_baseline_y=-1.0f)" +defs["igItemSize"][1]["call_args"] = "(size,text_baseline_y)" +defs["igItemSize"][1]["cimguiname"] = "igItemSize" +defs["igItemSize"][1]["defaults"] = {} +defs["igItemSize"][1]["defaults"]["text_baseline_y"] = "-1.0f" +defs["igItemSize"][1]["funcname"] = "ItemSize" +defs["igItemSize"][1]["location"] = "imgui_internal:3036" +defs["igItemSize"][1]["namespace"] = "ImGui" +defs["igItemSize"][1]["ov_cimguiname"] = "igItemSize_Vec2" +defs["igItemSize"][1]["ret"] = "void" +defs["igItemSize"][1]["signature"] = "(const ImVec2,float)" +defs["igItemSize"][1]["stname"] = "" +defs["igItemSize"][2] = {} +defs["igItemSize"][2]["args"] = "(const ImRect bb,float text_baseline_y)" +defs["igItemSize"][2]["argsT"] = {} +defs["igItemSize"][2]["argsT"][1] = {} +defs["igItemSize"][2]["argsT"][1]["name"] = "bb" +defs["igItemSize"][2]["argsT"][1]["type"] = "const ImRect" +defs["igItemSize"][2]["argsT"][2] = {} +defs["igItemSize"][2]["argsT"][2]["name"] = "text_baseline_y" +defs["igItemSize"][2]["argsT"][2]["type"] = "float" +defs["igItemSize"][2]["argsoriginal"] = "(const ImRect& bb,float text_baseline_y=-1.0f)" +defs["igItemSize"][2]["call_args"] = "(bb,text_baseline_y)" +defs["igItemSize"][2]["cimguiname"] = "igItemSize" +defs["igItemSize"][2]["defaults"] = {} +defs["igItemSize"][2]["defaults"]["text_baseline_y"] = "-1.0f" +defs["igItemSize"][2]["funcname"] = "ItemSize" +defs["igItemSize"][2]["location"] = "imgui_internal:3037" +defs["igItemSize"][2]["namespace"] = "ImGui" +defs["igItemSize"][2]["ov_cimguiname"] = "igItemSize_Rect" +defs["igItemSize"][2]["ret"] = "void" +defs["igItemSize"][2]["signature"] = "(const ImRect,float)" +defs["igItemSize"][2]["stname"] = "" +defs["igItemSize"]["(const ImRect,float)"] = defs["igItemSize"][2] +defs["igItemSize"]["(const ImVec2,float)"] = defs["igItemSize"][1] +defs["igKeepAliveID"] = {} +defs["igKeepAliveID"][1] = {} +defs["igKeepAliveID"][1]["args"] = "(ImGuiID id)" +defs["igKeepAliveID"][1]["argsT"] = {} +defs["igKeepAliveID"][1]["argsT"][1] = {} +defs["igKeepAliveID"][1]["argsT"][1]["name"] = "id" +defs["igKeepAliveID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igKeepAliveID"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igKeepAliveID"][1]["call_args"] = "(id)" +defs["igKeepAliveID"][1]["cimguiname"] = "igKeepAliveID" +defs["igKeepAliveID"][1]["defaults"] = {} +defs["igKeepAliveID"][1]["funcname"] = "KeepAliveID" +defs["igKeepAliveID"][1]["location"] = "imgui_internal:3030" +defs["igKeepAliveID"][1]["namespace"] = "ImGui" +defs["igKeepAliveID"][1]["ov_cimguiname"] = "igKeepAliveID" +defs["igKeepAliveID"][1]["ret"] = "void" +defs["igKeepAliveID"][1]["signature"] = "(ImGuiID)" +defs["igKeepAliveID"][1]["stname"] = "" +defs["igKeepAliveID"]["(ImGuiID)"] = defs["igKeepAliveID"][1] defs["igLabelText"] = {} defs["igLabelText"][1] = {} defs["igLabelText"][1]["args"] = "(const char* label,const char* fmt,...)" @@ -11439,6 +22656,69 @@ defs["igLoadIniSettingsFromMemory"][1]["ret"] = "void" defs["igLoadIniSettingsFromMemory"][1]["signature"] = "(const char*,size_t)" defs["igLoadIniSettingsFromMemory"][1]["stname"] = "" defs["igLoadIniSettingsFromMemory"]["(const char*,size_t)"] = defs["igLoadIniSettingsFromMemory"][1] +defs["igLocalizeGetMsg"] = {} +defs["igLocalizeGetMsg"][1] = {} +defs["igLocalizeGetMsg"][1]["args"] = "(ImGuiLocKey key)" +defs["igLocalizeGetMsg"][1]["argsT"] = {} +defs["igLocalizeGetMsg"][1]["argsT"][1] = {} +defs["igLocalizeGetMsg"][1]["argsT"][1]["name"] = "key" +defs["igLocalizeGetMsg"][1]["argsT"][1]["type"] = "ImGuiLocKey" +defs["igLocalizeGetMsg"][1]["argsoriginal"] = "(ImGuiLocKey key)" +defs["igLocalizeGetMsg"][1]["call_args"] = "(key)" +defs["igLocalizeGetMsg"][1]["cimguiname"] = "igLocalizeGetMsg" +defs["igLocalizeGetMsg"][1]["defaults"] = {} +defs["igLocalizeGetMsg"][1]["funcname"] = "LocalizeGetMsg" +defs["igLocalizeGetMsg"][1]["location"] = "imgui_internal:3003" +defs["igLocalizeGetMsg"][1]["namespace"] = "ImGui" +defs["igLocalizeGetMsg"][1]["ov_cimguiname"] = "igLocalizeGetMsg" +defs["igLocalizeGetMsg"][1]["ret"] = "const char*" +defs["igLocalizeGetMsg"][1]["signature"] = "(ImGuiLocKey)" +defs["igLocalizeGetMsg"][1]["stname"] = "" +defs["igLocalizeGetMsg"]["(ImGuiLocKey)"] = defs["igLocalizeGetMsg"][1] +defs["igLocalizeRegisterEntries"] = {} +defs["igLocalizeRegisterEntries"][1] = {} +defs["igLocalizeRegisterEntries"][1]["args"] = "(const ImGuiLocEntry* entries,int count)" +defs["igLocalizeRegisterEntries"][1]["argsT"] = {} +defs["igLocalizeRegisterEntries"][1]["argsT"][1] = {} +defs["igLocalizeRegisterEntries"][1]["argsT"][1]["name"] = "entries" +defs["igLocalizeRegisterEntries"][1]["argsT"][1]["type"] = "const ImGuiLocEntry*" +defs["igLocalizeRegisterEntries"][1]["argsT"][2] = {} +defs["igLocalizeRegisterEntries"][1]["argsT"][2]["name"] = "count" +defs["igLocalizeRegisterEntries"][1]["argsT"][2]["type"] = "int" +defs["igLocalizeRegisterEntries"][1]["argsoriginal"] = "(const ImGuiLocEntry* entries,int count)" +defs["igLocalizeRegisterEntries"][1]["call_args"] = "(entries,count)" +defs["igLocalizeRegisterEntries"][1]["cimguiname"] = "igLocalizeRegisterEntries" +defs["igLocalizeRegisterEntries"][1]["defaults"] = {} +defs["igLocalizeRegisterEntries"][1]["funcname"] = "LocalizeRegisterEntries" +defs["igLocalizeRegisterEntries"][1]["location"] = "imgui_internal:3002" +defs["igLocalizeRegisterEntries"][1]["namespace"] = "ImGui" +defs["igLocalizeRegisterEntries"][1]["ov_cimguiname"] = "igLocalizeRegisterEntries" +defs["igLocalizeRegisterEntries"][1]["ret"] = "void" +defs["igLocalizeRegisterEntries"][1]["signature"] = "(const ImGuiLocEntry*,int)" +defs["igLocalizeRegisterEntries"][1]["stname"] = "" +defs["igLocalizeRegisterEntries"]["(const ImGuiLocEntry*,int)"] = defs["igLocalizeRegisterEntries"][1] +defs["igLogBegin"] = {} +defs["igLogBegin"][1] = {} +defs["igLogBegin"][1]["args"] = "(ImGuiLogType type,int auto_open_depth)" +defs["igLogBegin"][1]["argsT"] = {} +defs["igLogBegin"][1]["argsT"][1] = {} +defs["igLogBegin"][1]["argsT"][1]["name"] = "type" +defs["igLogBegin"][1]["argsT"][1]["type"] = "ImGuiLogType" +defs["igLogBegin"][1]["argsT"][2] = {} +defs["igLogBegin"][1]["argsT"][2]["name"] = "auto_open_depth" +defs["igLogBegin"][1]["argsT"][2]["type"] = "int" +defs["igLogBegin"][1]["argsoriginal"] = "(ImGuiLogType type,int auto_open_depth)" +defs["igLogBegin"][1]["call_args"] = "(type,auto_open_depth)" +defs["igLogBegin"][1]["cimguiname"] = "igLogBegin" +defs["igLogBegin"][1]["defaults"] = {} +defs["igLogBegin"][1]["funcname"] = "LogBegin" +defs["igLogBegin"][1]["location"] = "imgui_internal:3054" +defs["igLogBegin"][1]["namespace"] = "ImGui" +defs["igLogBegin"][1]["ov_cimguiname"] = "igLogBegin" +defs["igLogBegin"][1]["ret"] = "void" +defs["igLogBegin"][1]["signature"] = "(ImGuiLogType,int)" +defs["igLogBegin"][1]["stname"] = "" +defs["igLogBegin"]["(ImGuiLogType,int)"] = defs["igLogBegin"][1] defs["igLogButtons"] = {} defs["igLogButtons"][1] = {} defs["igLogButtons"][1]["args"] = "()" @@ -11471,6 +22751,54 @@ defs["igLogFinish"][1]["ret"] = "void" defs["igLogFinish"][1]["signature"] = "()" defs["igLogFinish"][1]["stname"] = "" defs["igLogFinish"]["()"] = defs["igLogFinish"][1] +defs["igLogRenderedText"] = {} +defs["igLogRenderedText"][1] = {} +defs["igLogRenderedText"][1]["args"] = "(const ImVec2* ref_pos,const char* text,const char* text_end)" +defs["igLogRenderedText"][1]["argsT"] = {} +defs["igLogRenderedText"][1]["argsT"][1] = {} +defs["igLogRenderedText"][1]["argsT"][1]["name"] = "ref_pos" +defs["igLogRenderedText"][1]["argsT"][1]["type"] = "const ImVec2*" +defs["igLogRenderedText"][1]["argsT"][2] = {} +defs["igLogRenderedText"][1]["argsT"][2]["name"] = "text" +defs["igLogRenderedText"][1]["argsT"][2]["type"] = "const char*" +defs["igLogRenderedText"][1]["argsT"][3] = {} +defs["igLogRenderedText"][1]["argsT"][3]["name"] = "text_end" +defs["igLogRenderedText"][1]["argsT"][3]["type"] = "const char*" +defs["igLogRenderedText"][1]["argsoriginal"] = "(const ImVec2* ref_pos,const char* text,const char* text_end=((void*)0))" +defs["igLogRenderedText"][1]["call_args"] = "(ref_pos,text,text_end)" +defs["igLogRenderedText"][1]["cimguiname"] = "igLogRenderedText" +defs["igLogRenderedText"][1]["defaults"] = {} +defs["igLogRenderedText"][1]["defaults"]["text_end"] = "NULL" +defs["igLogRenderedText"][1]["funcname"] = "LogRenderedText" +defs["igLogRenderedText"][1]["location"] = "imgui_internal:3056" +defs["igLogRenderedText"][1]["namespace"] = "ImGui" +defs["igLogRenderedText"][1]["ov_cimguiname"] = "igLogRenderedText" +defs["igLogRenderedText"][1]["ret"] = "void" +defs["igLogRenderedText"][1]["signature"] = "(const ImVec2*,const char*,const char*)" +defs["igLogRenderedText"][1]["stname"] = "" +defs["igLogRenderedText"]["(const ImVec2*,const char*,const char*)"] = defs["igLogRenderedText"][1] +defs["igLogSetNextTextDecoration"] = {} +defs["igLogSetNextTextDecoration"][1] = {} +defs["igLogSetNextTextDecoration"][1]["args"] = "(const char* prefix,const char* suffix)" +defs["igLogSetNextTextDecoration"][1]["argsT"] = {} +defs["igLogSetNextTextDecoration"][1]["argsT"][1] = {} +defs["igLogSetNextTextDecoration"][1]["argsT"][1]["name"] = "prefix" +defs["igLogSetNextTextDecoration"][1]["argsT"][1]["type"] = "const char*" +defs["igLogSetNextTextDecoration"][1]["argsT"][2] = {} +defs["igLogSetNextTextDecoration"][1]["argsT"][2]["name"] = "suffix" +defs["igLogSetNextTextDecoration"][1]["argsT"][2]["type"] = "const char*" +defs["igLogSetNextTextDecoration"][1]["argsoriginal"] = "(const char* prefix,const char* suffix)" +defs["igLogSetNextTextDecoration"][1]["call_args"] = "(prefix,suffix)" +defs["igLogSetNextTextDecoration"][1]["cimguiname"] = "igLogSetNextTextDecoration" +defs["igLogSetNextTextDecoration"][1]["defaults"] = {} +defs["igLogSetNextTextDecoration"][1]["funcname"] = "LogSetNextTextDecoration" +defs["igLogSetNextTextDecoration"][1]["location"] = "imgui_internal:3057" +defs["igLogSetNextTextDecoration"][1]["namespace"] = "ImGui" +defs["igLogSetNextTextDecoration"][1]["ov_cimguiname"] = "igLogSetNextTextDecoration" +defs["igLogSetNextTextDecoration"][1]["ret"] = "void" +defs["igLogSetNextTextDecoration"][1]["signature"] = "(const char*,const char*)" +defs["igLogSetNextTextDecoration"][1]["stname"] = "" +defs["igLogSetNextTextDecoration"]["(const char*,const char*)"] = defs["igLogSetNextTextDecoration"][1] defs["igLogText"] = {} defs["igLogText"][1] = {} defs["igLogText"][1]["args"] = "(const char* fmt,...)" @@ -11517,6 +22845,26 @@ defs["igLogTextV"][1]["ret"] = "void" defs["igLogTextV"][1]["signature"] = "(const char*,va_list)" defs["igLogTextV"][1]["stname"] = "" defs["igLogTextV"]["(const char*,va_list)"] = defs["igLogTextV"][1] +defs["igLogToBuffer"] = {} +defs["igLogToBuffer"][1] = {} +defs["igLogToBuffer"][1]["args"] = "(int auto_open_depth)" +defs["igLogToBuffer"][1]["argsT"] = {} +defs["igLogToBuffer"][1]["argsT"][1] = {} +defs["igLogToBuffer"][1]["argsT"][1]["name"] = "auto_open_depth" +defs["igLogToBuffer"][1]["argsT"][1]["type"] = "int" +defs["igLogToBuffer"][1]["argsoriginal"] = "(int auto_open_depth=-1)" +defs["igLogToBuffer"][1]["call_args"] = "(auto_open_depth)" +defs["igLogToBuffer"][1]["cimguiname"] = "igLogToBuffer" +defs["igLogToBuffer"][1]["defaults"] = {} +defs["igLogToBuffer"][1]["defaults"]["auto_open_depth"] = "-1" +defs["igLogToBuffer"][1]["funcname"] = "LogToBuffer" +defs["igLogToBuffer"][1]["location"] = "imgui_internal:3055" +defs["igLogToBuffer"][1]["namespace"] = "ImGui" +defs["igLogToBuffer"][1]["ov_cimguiname"] = "igLogToBuffer" +defs["igLogToBuffer"][1]["ret"] = "void" +defs["igLogToBuffer"][1]["signature"] = "(int)" +defs["igLogToBuffer"][1]["stname"] = "" +defs["igLogToBuffer"]["(int)"] = defs["igLogToBuffer"][1] defs["igLogToClipboard"] = {} defs["igLogToClipboard"][1] = {} defs["igLogToClipboard"][1]["args"] = "(int auto_open_depth)" @@ -11581,6 +22929,59 @@ defs["igLogToTTY"][1]["ret"] = "void" defs["igLogToTTY"][1]["signature"] = "(int)" defs["igLogToTTY"][1]["stname"] = "" defs["igLogToTTY"]["(int)"] = defs["igLogToTTY"][1] +defs["igMarkIniSettingsDirty"] = {} +defs["igMarkIniSettingsDirty"][1] = {} +defs["igMarkIniSettingsDirty"][1]["args"] = "()" +defs["igMarkIniSettingsDirty"][1]["argsT"] = {} +defs["igMarkIniSettingsDirty"][1]["argsoriginal"] = "()" +defs["igMarkIniSettingsDirty"][1]["call_args"] = "()" +defs["igMarkIniSettingsDirty"][1]["cimguiname"] = "igMarkIniSettingsDirty" +defs["igMarkIniSettingsDirty"][1]["defaults"] = {} +defs["igMarkIniSettingsDirty"][1]["funcname"] = "MarkIniSettingsDirty" +defs["igMarkIniSettingsDirty"][1]["location"] = "imgui_internal:2991" +defs["igMarkIniSettingsDirty"][1]["namespace"] = "ImGui" +defs["igMarkIniSettingsDirty"][1]["ov_cimguiname"] = "igMarkIniSettingsDirty_Nil" +defs["igMarkIniSettingsDirty"][1]["ret"] = "void" +defs["igMarkIniSettingsDirty"][1]["signature"] = "()" +defs["igMarkIniSettingsDirty"][1]["stname"] = "" +defs["igMarkIniSettingsDirty"][2] = {} +defs["igMarkIniSettingsDirty"][2]["args"] = "(ImGuiWindow* window)" +defs["igMarkIniSettingsDirty"][2]["argsT"] = {} +defs["igMarkIniSettingsDirty"][2]["argsT"][1] = {} +defs["igMarkIniSettingsDirty"][2]["argsT"][1]["name"] = "window" +defs["igMarkIniSettingsDirty"][2]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igMarkIniSettingsDirty"][2]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igMarkIniSettingsDirty"][2]["call_args"] = "(window)" +defs["igMarkIniSettingsDirty"][2]["cimguiname"] = "igMarkIniSettingsDirty" +defs["igMarkIniSettingsDirty"][2]["defaults"] = {} +defs["igMarkIniSettingsDirty"][2]["funcname"] = "MarkIniSettingsDirty" +defs["igMarkIniSettingsDirty"][2]["location"] = "imgui_internal:2992" +defs["igMarkIniSettingsDirty"][2]["namespace"] = "ImGui" +defs["igMarkIniSettingsDirty"][2]["ov_cimguiname"] = "igMarkIniSettingsDirty_WindowPtr" +defs["igMarkIniSettingsDirty"][2]["ret"] = "void" +defs["igMarkIniSettingsDirty"][2]["signature"] = "(ImGuiWindow*)" +defs["igMarkIniSettingsDirty"][2]["stname"] = "" +defs["igMarkIniSettingsDirty"]["()"] = defs["igMarkIniSettingsDirty"][1] +defs["igMarkIniSettingsDirty"]["(ImGuiWindow*)"] = defs["igMarkIniSettingsDirty"][2] +defs["igMarkItemEdited"] = {} +defs["igMarkItemEdited"][1] = {} +defs["igMarkItemEdited"][1]["args"] = "(ImGuiID id)" +defs["igMarkItemEdited"][1]["argsT"] = {} +defs["igMarkItemEdited"][1]["argsT"][1] = {} +defs["igMarkItemEdited"][1]["argsT"][1]["name"] = "id" +defs["igMarkItemEdited"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igMarkItemEdited"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igMarkItemEdited"][1]["call_args"] = "(id)" +defs["igMarkItemEdited"][1]["cimguiname"] = "igMarkItemEdited" +defs["igMarkItemEdited"][1]["defaults"] = {} +defs["igMarkItemEdited"][1]["funcname"] = "MarkItemEdited" +defs["igMarkItemEdited"][1]["location"] = "imgui_internal:3031" +defs["igMarkItemEdited"][1]["namespace"] = "ImGui" +defs["igMarkItemEdited"][1]["ov_cimguiname"] = "igMarkItemEdited" +defs["igMarkItemEdited"][1]["ret"] = "void" +defs["igMarkItemEdited"][1]["signature"] = "(ImGuiID)" +defs["igMarkItemEdited"][1]["stname"] = "" +defs["igMarkItemEdited"]["(ImGuiID)"] = defs["igMarkItemEdited"][1] defs["igMemAlloc"] = {} defs["igMemAlloc"][1] = {} defs["igMemAlloc"][1]["args"] = "(size_t size)" @@ -11678,6 +23079,242 @@ defs["igMenuItem"][2]["signature"] = "(const char*,const char*,bool*,bool)" defs["igMenuItem"][2]["stname"] = "" defs["igMenuItem"]["(const char*,const char*,bool*,bool)"] = defs["igMenuItem"][2] defs["igMenuItem"]["(const char*,const char*,bool,bool)"] = defs["igMenuItem"][1] +defs["igMenuItemEx"] = {} +defs["igMenuItemEx"][1] = {} +defs["igMenuItemEx"][1]["args"] = "(const char* label,const char* icon,const char* shortcut,bool selected,bool enabled)" +defs["igMenuItemEx"][1]["argsT"] = {} +defs["igMenuItemEx"][1]["argsT"][1] = {} +defs["igMenuItemEx"][1]["argsT"][1]["name"] = "label" +defs["igMenuItemEx"][1]["argsT"][1]["type"] = "const char*" +defs["igMenuItemEx"][1]["argsT"][2] = {} +defs["igMenuItemEx"][1]["argsT"][2]["name"] = "icon" +defs["igMenuItemEx"][1]["argsT"][2]["type"] = "const char*" +defs["igMenuItemEx"][1]["argsT"][3] = {} +defs["igMenuItemEx"][1]["argsT"][3]["name"] = "shortcut" +defs["igMenuItemEx"][1]["argsT"][3]["type"] = "const char*" +defs["igMenuItemEx"][1]["argsT"][4] = {} +defs["igMenuItemEx"][1]["argsT"][4]["name"] = "selected" +defs["igMenuItemEx"][1]["argsT"][4]["type"] = "bool" +defs["igMenuItemEx"][1]["argsT"][5] = {} +defs["igMenuItemEx"][1]["argsT"][5]["name"] = "enabled" +defs["igMenuItemEx"][1]["argsT"][5]["type"] = "bool" +defs["igMenuItemEx"][1]["argsoriginal"] = "(const char* label,const char* icon,const char* shortcut=((void*)0),bool selected=false,bool enabled=true)" +defs["igMenuItemEx"][1]["call_args"] = "(label,icon,shortcut,selected,enabled)" +defs["igMenuItemEx"][1]["cimguiname"] = "igMenuItemEx" +defs["igMenuItemEx"][1]["defaults"] = {} +defs["igMenuItemEx"][1]["defaults"]["enabled"] = "true" +defs["igMenuItemEx"][1]["defaults"]["selected"] = "false" +defs["igMenuItemEx"][1]["defaults"]["shortcut"] = "NULL" +defs["igMenuItemEx"][1]["funcname"] = "MenuItemEx" +defs["igMenuItemEx"][1]["location"] = "imgui_internal:3077" +defs["igMenuItemEx"][1]["namespace"] = "ImGui" +defs["igMenuItemEx"][1]["ov_cimguiname"] = "igMenuItemEx" +defs["igMenuItemEx"][1]["ret"] = "bool" +defs["igMenuItemEx"][1]["signature"] = "(const char*,const char*,const char*,bool,bool)" +defs["igMenuItemEx"][1]["stname"] = "" +defs["igMenuItemEx"]["(const char*,const char*,const char*,bool,bool)"] = defs["igMenuItemEx"][1] +defs["igMouseButtonToKey"] = {} +defs["igMouseButtonToKey"][1] = {} +defs["igMouseButtonToKey"][1]["args"] = "(ImGuiMouseButton button)" +defs["igMouseButtonToKey"][1]["argsT"] = {} +defs["igMouseButtonToKey"][1]["argsT"][1] = {} +defs["igMouseButtonToKey"][1]["argsT"][1]["name"] = "button" +defs["igMouseButtonToKey"][1]["argsT"][1]["type"] = "ImGuiMouseButton" +defs["igMouseButtonToKey"][1]["argsoriginal"] = "(ImGuiMouseButton button)" +defs["igMouseButtonToKey"][1]["call_args"] = "(button)" +defs["igMouseButtonToKey"][1]["cimguiname"] = "igMouseButtonToKey" +defs["igMouseButtonToKey"][1]["defaults"] = {} +defs["igMouseButtonToKey"][1]["funcname"] = "MouseButtonToKey" +defs["igMouseButtonToKey"][1]["location"] = "imgui_internal:3118" +defs["igMouseButtonToKey"][1]["namespace"] = "ImGui" +defs["igMouseButtonToKey"][1]["ov_cimguiname"] = "igMouseButtonToKey" +defs["igMouseButtonToKey"][1]["ret"] = "ImGuiKey" +defs["igMouseButtonToKey"][1]["signature"] = "(ImGuiMouseButton)" +defs["igMouseButtonToKey"][1]["stname"] = "" +defs["igMouseButtonToKey"]["(ImGuiMouseButton)"] = defs["igMouseButtonToKey"][1] +defs["igNavInitRequestApplyResult"] = {} +defs["igNavInitRequestApplyResult"][1] = {} +defs["igNavInitRequestApplyResult"][1]["args"] = "()" +defs["igNavInitRequestApplyResult"][1]["argsT"] = {} +defs["igNavInitRequestApplyResult"][1]["argsoriginal"] = "()" +defs["igNavInitRequestApplyResult"][1]["call_args"] = "()" +defs["igNavInitRequestApplyResult"][1]["cimguiname"] = "igNavInitRequestApplyResult" +defs["igNavInitRequestApplyResult"][1]["defaults"] = {} +defs["igNavInitRequestApplyResult"][1]["funcname"] = "NavInitRequestApplyResult" +defs["igNavInitRequestApplyResult"][1]["location"] = "imgui_internal:3086" +defs["igNavInitRequestApplyResult"][1]["namespace"] = "ImGui" +defs["igNavInitRequestApplyResult"][1]["ov_cimguiname"] = "igNavInitRequestApplyResult" +defs["igNavInitRequestApplyResult"][1]["ret"] = "void" +defs["igNavInitRequestApplyResult"][1]["signature"] = "()" +defs["igNavInitRequestApplyResult"][1]["stname"] = "" +defs["igNavInitRequestApplyResult"]["()"] = defs["igNavInitRequestApplyResult"][1] +defs["igNavInitWindow"] = {} +defs["igNavInitWindow"][1] = {} +defs["igNavInitWindow"][1]["args"] = "(ImGuiWindow* window,bool force_reinit)" +defs["igNavInitWindow"][1]["argsT"] = {} +defs["igNavInitWindow"][1]["argsT"][1] = {} +defs["igNavInitWindow"][1]["argsT"][1]["name"] = "window" +defs["igNavInitWindow"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igNavInitWindow"][1]["argsT"][2] = {} +defs["igNavInitWindow"][1]["argsT"][2]["name"] = "force_reinit" +defs["igNavInitWindow"][1]["argsT"][2]["type"] = "bool" +defs["igNavInitWindow"][1]["argsoriginal"] = "(ImGuiWindow* window,bool force_reinit)" +defs["igNavInitWindow"][1]["call_args"] = "(window,force_reinit)" +defs["igNavInitWindow"][1]["cimguiname"] = "igNavInitWindow" +defs["igNavInitWindow"][1]["defaults"] = {} +defs["igNavInitWindow"][1]["funcname"] = "NavInitWindow" +defs["igNavInitWindow"][1]["location"] = "imgui_internal:3085" +defs["igNavInitWindow"][1]["namespace"] = "ImGui" +defs["igNavInitWindow"][1]["ov_cimguiname"] = "igNavInitWindow" +defs["igNavInitWindow"][1]["ret"] = "void" +defs["igNavInitWindow"][1]["signature"] = "(ImGuiWindow*,bool)" +defs["igNavInitWindow"][1]["stname"] = "" +defs["igNavInitWindow"]["(ImGuiWindow*,bool)"] = defs["igNavInitWindow"][1] +defs["igNavMoveRequestApplyResult"] = {} +defs["igNavMoveRequestApplyResult"][1] = {} +defs["igNavMoveRequestApplyResult"][1]["args"] = "()" +defs["igNavMoveRequestApplyResult"][1]["argsT"] = {} +defs["igNavMoveRequestApplyResult"][1]["argsoriginal"] = "()" +defs["igNavMoveRequestApplyResult"][1]["call_args"] = "()" +defs["igNavMoveRequestApplyResult"][1]["cimguiname"] = "igNavMoveRequestApplyResult" +defs["igNavMoveRequestApplyResult"][1]["defaults"] = {} +defs["igNavMoveRequestApplyResult"][1]["funcname"] = "NavMoveRequestApplyResult" +defs["igNavMoveRequestApplyResult"][1]["location"] = "imgui_internal:3092" +defs["igNavMoveRequestApplyResult"][1]["namespace"] = "ImGui" +defs["igNavMoveRequestApplyResult"][1]["ov_cimguiname"] = "igNavMoveRequestApplyResult" +defs["igNavMoveRequestApplyResult"][1]["ret"] = "void" +defs["igNavMoveRequestApplyResult"][1]["signature"] = "()" +defs["igNavMoveRequestApplyResult"][1]["stname"] = "" +defs["igNavMoveRequestApplyResult"]["()"] = defs["igNavMoveRequestApplyResult"][1] +defs["igNavMoveRequestButNoResultYet"] = {} +defs["igNavMoveRequestButNoResultYet"][1] = {} +defs["igNavMoveRequestButNoResultYet"][1]["args"] = "()" +defs["igNavMoveRequestButNoResultYet"][1]["argsT"] = {} +defs["igNavMoveRequestButNoResultYet"][1]["argsoriginal"] = "()" +defs["igNavMoveRequestButNoResultYet"][1]["call_args"] = "()" +defs["igNavMoveRequestButNoResultYet"][1]["cimguiname"] = "igNavMoveRequestButNoResultYet" +defs["igNavMoveRequestButNoResultYet"][1]["defaults"] = {} +defs["igNavMoveRequestButNoResultYet"][1]["funcname"] = "NavMoveRequestButNoResultYet" +defs["igNavMoveRequestButNoResultYet"][1]["location"] = "imgui_internal:3087" +defs["igNavMoveRequestButNoResultYet"][1]["namespace"] = "ImGui" +defs["igNavMoveRequestButNoResultYet"][1]["ov_cimguiname"] = "igNavMoveRequestButNoResultYet" +defs["igNavMoveRequestButNoResultYet"][1]["ret"] = "bool" +defs["igNavMoveRequestButNoResultYet"][1]["signature"] = "()" +defs["igNavMoveRequestButNoResultYet"][1]["stname"] = "" +defs["igNavMoveRequestButNoResultYet"]["()"] = defs["igNavMoveRequestButNoResultYet"][1] +defs["igNavMoveRequestCancel"] = {} +defs["igNavMoveRequestCancel"][1] = {} +defs["igNavMoveRequestCancel"][1]["args"] = "()" +defs["igNavMoveRequestCancel"][1]["argsT"] = {} +defs["igNavMoveRequestCancel"][1]["argsoriginal"] = "()" +defs["igNavMoveRequestCancel"][1]["call_args"] = "()" +defs["igNavMoveRequestCancel"][1]["cimguiname"] = "igNavMoveRequestCancel" +defs["igNavMoveRequestCancel"][1]["defaults"] = {} +defs["igNavMoveRequestCancel"][1]["funcname"] = "NavMoveRequestCancel" +defs["igNavMoveRequestCancel"][1]["location"] = "imgui_internal:3091" +defs["igNavMoveRequestCancel"][1]["namespace"] = "ImGui" +defs["igNavMoveRequestCancel"][1]["ov_cimguiname"] = "igNavMoveRequestCancel" +defs["igNavMoveRequestCancel"][1]["ret"] = "void" +defs["igNavMoveRequestCancel"][1]["signature"] = "()" +defs["igNavMoveRequestCancel"][1]["stname"] = "" +defs["igNavMoveRequestCancel"]["()"] = defs["igNavMoveRequestCancel"][1] +defs["igNavMoveRequestForward"] = {} +defs["igNavMoveRequestForward"][1] = {} +defs["igNavMoveRequestForward"][1]["args"] = "(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags)" +defs["igNavMoveRequestForward"][1]["argsT"] = {} +defs["igNavMoveRequestForward"][1]["argsT"][1] = {} +defs["igNavMoveRequestForward"][1]["argsT"][1]["name"] = "move_dir" +defs["igNavMoveRequestForward"][1]["argsT"][1]["type"] = "ImGuiDir" +defs["igNavMoveRequestForward"][1]["argsT"][2] = {} +defs["igNavMoveRequestForward"][1]["argsT"][2]["name"] = "clip_dir" +defs["igNavMoveRequestForward"][1]["argsT"][2]["type"] = "ImGuiDir" +defs["igNavMoveRequestForward"][1]["argsT"][3] = {} +defs["igNavMoveRequestForward"][1]["argsT"][3]["name"] = "move_flags" +defs["igNavMoveRequestForward"][1]["argsT"][3]["type"] = "ImGuiNavMoveFlags" +defs["igNavMoveRequestForward"][1]["argsT"][4] = {} +defs["igNavMoveRequestForward"][1]["argsT"][4]["name"] = "scroll_flags" +defs["igNavMoveRequestForward"][1]["argsT"][4]["type"] = "ImGuiScrollFlags" +defs["igNavMoveRequestForward"][1]["argsoriginal"] = "(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags)" +defs["igNavMoveRequestForward"][1]["call_args"] = "(move_dir,clip_dir,move_flags,scroll_flags)" +defs["igNavMoveRequestForward"][1]["cimguiname"] = "igNavMoveRequestForward" +defs["igNavMoveRequestForward"][1]["defaults"] = {} +defs["igNavMoveRequestForward"][1]["funcname"] = "NavMoveRequestForward" +defs["igNavMoveRequestForward"][1]["location"] = "imgui_internal:3089" +defs["igNavMoveRequestForward"][1]["namespace"] = "ImGui" +defs["igNavMoveRequestForward"][1]["ov_cimguiname"] = "igNavMoveRequestForward" +defs["igNavMoveRequestForward"][1]["ret"] = "void" +defs["igNavMoveRequestForward"][1]["signature"] = "(ImGuiDir,ImGuiDir,ImGuiNavMoveFlags,ImGuiScrollFlags)" +defs["igNavMoveRequestForward"][1]["stname"] = "" +defs["igNavMoveRequestForward"]["(ImGuiDir,ImGuiDir,ImGuiNavMoveFlags,ImGuiScrollFlags)"] = defs["igNavMoveRequestForward"][1] +defs["igNavMoveRequestResolveWithLastItem"] = {} +defs["igNavMoveRequestResolveWithLastItem"][1] = {} +defs["igNavMoveRequestResolveWithLastItem"][1]["args"] = "(ImGuiNavItemData* result)" +defs["igNavMoveRequestResolveWithLastItem"][1]["argsT"] = {} +defs["igNavMoveRequestResolveWithLastItem"][1]["argsT"][1] = {} +defs["igNavMoveRequestResolveWithLastItem"][1]["argsT"][1]["name"] = "result" +defs["igNavMoveRequestResolveWithLastItem"][1]["argsT"][1]["type"] = "ImGuiNavItemData*" +defs["igNavMoveRequestResolveWithLastItem"][1]["argsoriginal"] = "(ImGuiNavItemData* result)" +defs["igNavMoveRequestResolveWithLastItem"][1]["call_args"] = "(result)" +defs["igNavMoveRequestResolveWithLastItem"][1]["cimguiname"] = "igNavMoveRequestResolveWithLastItem" +defs["igNavMoveRequestResolveWithLastItem"][1]["defaults"] = {} +defs["igNavMoveRequestResolveWithLastItem"][1]["funcname"] = "NavMoveRequestResolveWithLastItem" +defs["igNavMoveRequestResolveWithLastItem"][1]["location"] = "imgui_internal:3090" +defs["igNavMoveRequestResolveWithLastItem"][1]["namespace"] = "ImGui" +defs["igNavMoveRequestResolveWithLastItem"][1]["ov_cimguiname"] = "igNavMoveRequestResolveWithLastItem" +defs["igNavMoveRequestResolveWithLastItem"][1]["ret"] = "void" +defs["igNavMoveRequestResolveWithLastItem"][1]["signature"] = "(ImGuiNavItemData*)" +defs["igNavMoveRequestResolveWithLastItem"][1]["stname"] = "" +defs["igNavMoveRequestResolveWithLastItem"]["(ImGuiNavItemData*)"] = defs["igNavMoveRequestResolveWithLastItem"][1] +defs["igNavMoveRequestSubmit"] = {} +defs["igNavMoveRequestSubmit"][1] = {} +defs["igNavMoveRequestSubmit"][1]["args"] = "(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags)" +defs["igNavMoveRequestSubmit"][1]["argsT"] = {} +defs["igNavMoveRequestSubmit"][1]["argsT"][1] = {} +defs["igNavMoveRequestSubmit"][1]["argsT"][1]["name"] = "move_dir" +defs["igNavMoveRequestSubmit"][1]["argsT"][1]["type"] = "ImGuiDir" +defs["igNavMoveRequestSubmit"][1]["argsT"][2] = {} +defs["igNavMoveRequestSubmit"][1]["argsT"][2]["name"] = "clip_dir" +defs["igNavMoveRequestSubmit"][1]["argsT"][2]["type"] = "ImGuiDir" +defs["igNavMoveRequestSubmit"][1]["argsT"][3] = {} +defs["igNavMoveRequestSubmit"][1]["argsT"][3]["name"] = "move_flags" +defs["igNavMoveRequestSubmit"][1]["argsT"][3]["type"] = "ImGuiNavMoveFlags" +defs["igNavMoveRequestSubmit"][1]["argsT"][4] = {} +defs["igNavMoveRequestSubmit"][1]["argsT"][4]["name"] = "scroll_flags" +defs["igNavMoveRequestSubmit"][1]["argsT"][4]["type"] = "ImGuiScrollFlags" +defs["igNavMoveRequestSubmit"][1]["argsoriginal"] = "(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags)" +defs["igNavMoveRequestSubmit"][1]["call_args"] = "(move_dir,clip_dir,move_flags,scroll_flags)" +defs["igNavMoveRequestSubmit"][1]["cimguiname"] = "igNavMoveRequestSubmit" +defs["igNavMoveRequestSubmit"][1]["defaults"] = {} +defs["igNavMoveRequestSubmit"][1]["funcname"] = "NavMoveRequestSubmit" +defs["igNavMoveRequestSubmit"][1]["location"] = "imgui_internal:3088" +defs["igNavMoveRequestSubmit"][1]["namespace"] = "ImGui" +defs["igNavMoveRequestSubmit"][1]["ov_cimguiname"] = "igNavMoveRequestSubmit" +defs["igNavMoveRequestSubmit"][1]["ret"] = "void" +defs["igNavMoveRequestSubmit"][1]["signature"] = "(ImGuiDir,ImGuiDir,ImGuiNavMoveFlags,ImGuiScrollFlags)" +defs["igNavMoveRequestSubmit"][1]["stname"] = "" +defs["igNavMoveRequestSubmit"]["(ImGuiDir,ImGuiDir,ImGuiNavMoveFlags,ImGuiScrollFlags)"] = defs["igNavMoveRequestSubmit"][1] +defs["igNavMoveRequestTryWrapping"] = {} +defs["igNavMoveRequestTryWrapping"][1] = {} +defs["igNavMoveRequestTryWrapping"][1]["args"] = "(ImGuiWindow* window,ImGuiNavMoveFlags move_flags)" +defs["igNavMoveRequestTryWrapping"][1]["argsT"] = {} +defs["igNavMoveRequestTryWrapping"][1]["argsT"][1] = {} +defs["igNavMoveRequestTryWrapping"][1]["argsT"][1]["name"] = "window" +defs["igNavMoveRequestTryWrapping"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igNavMoveRequestTryWrapping"][1]["argsT"][2] = {} +defs["igNavMoveRequestTryWrapping"][1]["argsT"][2]["name"] = "move_flags" +defs["igNavMoveRequestTryWrapping"][1]["argsT"][2]["type"] = "ImGuiNavMoveFlags" +defs["igNavMoveRequestTryWrapping"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiNavMoveFlags move_flags)" +defs["igNavMoveRequestTryWrapping"][1]["call_args"] = "(window,move_flags)" +defs["igNavMoveRequestTryWrapping"][1]["cimguiname"] = "igNavMoveRequestTryWrapping" +defs["igNavMoveRequestTryWrapping"][1]["defaults"] = {} +defs["igNavMoveRequestTryWrapping"][1]["funcname"] = "NavMoveRequestTryWrapping" +defs["igNavMoveRequestTryWrapping"][1]["location"] = "imgui_internal:3093" +defs["igNavMoveRequestTryWrapping"][1]["namespace"] = "ImGui" +defs["igNavMoveRequestTryWrapping"][1]["ov_cimguiname"] = "igNavMoveRequestTryWrapping" +defs["igNavMoveRequestTryWrapping"][1]["ret"] = "void" +defs["igNavMoveRequestTryWrapping"][1]["signature"] = "(ImGuiWindow*,ImGuiNavMoveFlags)" +defs["igNavMoveRequestTryWrapping"][1]["stname"] = "" +defs["igNavMoveRequestTryWrapping"]["(ImGuiWindow*,ImGuiNavMoveFlags)"] = defs["igNavMoveRequestTryWrapping"][1] defs["igNewFrame"] = {} defs["igNewFrame"][1] = {} defs["igNewFrame"][1]["args"] = "()" @@ -11771,6 +23408,29 @@ defs["igOpenPopup"][2]["signature"] = "(ImGuiID,ImGuiPopupFlags)" defs["igOpenPopup"][2]["stname"] = "" defs["igOpenPopup"]["(ImGuiID,ImGuiPopupFlags)"] = defs["igOpenPopup"][2] defs["igOpenPopup"]["(const char*,ImGuiPopupFlags)"] = defs["igOpenPopup"][1] +defs["igOpenPopupEx"] = {} +defs["igOpenPopupEx"][1] = {} +defs["igOpenPopupEx"][1]["args"] = "(ImGuiID id,ImGuiPopupFlags popup_flags)" +defs["igOpenPopupEx"][1]["argsT"] = {} +defs["igOpenPopupEx"][1]["argsT"][1] = {} +defs["igOpenPopupEx"][1]["argsT"][1]["name"] = "id" +defs["igOpenPopupEx"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igOpenPopupEx"][1]["argsT"][2] = {} +defs["igOpenPopupEx"][1]["argsT"][2]["name"] = "popup_flags" +defs["igOpenPopupEx"][1]["argsT"][2]["type"] = "ImGuiPopupFlags" +defs["igOpenPopupEx"][1]["argsoriginal"] = "(ImGuiID id,ImGuiPopupFlags popup_flags=ImGuiPopupFlags_None)" +defs["igOpenPopupEx"][1]["call_args"] = "(id,popup_flags)" +defs["igOpenPopupEx"][1]["cimguiname"] = "igOpenPopupEx" +defs["igOpenPopupEx"][1]["defaults"] = {} +defs["igOpenPopupEx"][1]["defaults"]["popup_flags"] = "ImGuiPopupFlags_None" +defs["igOpenPopupEx"][1]["funcname"] = "OpenPopupEx" +defs["igOpenPopupEx"][1]["location"] = "imgui_internal:3061" +defs["igOpenPopupEx"][1]["namespace"] = "ImGui" +defs["igOpenPopupEx"][1]["ov_cimguiname"] = "igOpenPopupEx" +defs["igOpenPopupEx"][1]["ret"] = "void" +defs["igOpenPopupEx"][1]["signature"] = "(ImGuiID,ImGuiPopupFlags)" +defs["igOpenPopupEx"][1]["stname"] = "" +defs["igOpenPopupEx"]["(ImGuiID,ImGuiPopupFlags)"] = defs["igOpenPopupEx"][1] defs["igOpenPopupOnItemClick"] = {} defs["igOpenPopupOnItemClick"][1] = {} defs["igOpenPopupOnItemClick"][1]["args"] = "(const char* str_id,ImGuiPopupFlags popup_flags)" @@ -11795,6 +23455,54 @@ defs["igOpenPopupOnItemClick"][1]["ret"] = "void" defs["igOpenPopupOnItemClick"][1]["signature"] = "(const char*,ImGuiPopupFlags)" defs["igOpenPopupOnItemClick"][1]["stname"] = "" defs["igOpenPopupOnItemClick"]["(const char*,ImGuiPopupFlags)"] = defs["igOpenPopupOnItemClick"][1] +defs["igPlotEx"] = {} +defs["igPlotEx"][1] = {} +defs["igPlotEx"][1]["args"] = "(ImGuiPlotType plot_type,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 frame_size)" +defs["igPlotEx"][1]["argsT"] = {} +defs["igPlotEx"][1]["argsT"][1] = {} +defs["igPlotEx"][1]["argsT"][1]["name"] = "plot_type" +defs["igPlotEx"][1]["argsT"][1]["type"] = "ImGuiPlotType" +defs["igPlotEx"][1]["argsT"][2] = {} +defs["igPlotEx"][1]["argsT"][2]["name"] = "label" +defs["igPlotEx"][1]["argsT"][2]["type"] = "const char*" +defs["igPlotEx"][1]["argsT"][3] = {} +defs["igPlotEx"][1]["argsT"][3]["name"] = "values_getter" +defs["igPlotEx"][1]["argsT"][3]["ret"] = "float" +defs["igPlotEx"][1]["argsT"][3]["signature"] = "(void* data,int idx)" +defs["igPlotEx"][1]["argsT"][3]["type"] = "float(*)(void* data,int idx)" +defs["igPlotEx"][1]["argsT"][4] = {} +defs["igPlotEx"][1]["argsT"][4]["name"] = "data" +defs["igPlotEx"][1]["argsT"][4]["type"] = "void*" +defs["igPlotEx"][1]["argsT"][5] = {} +defs["igPlotEx"][1]["argsT"][5]["name"] = "values_count" +defs["igPlotEx"][1]["argsT"][5]["type"] = "int" +defs["igPlotEx"][1]["argsT"][6] = {} +defs["igPlotEx"][1]["argsT"][6]["name"] = "values_offset" +defs["igPlotEx"][1]["argsT"][6]["type"] = "int" +defs["igPlotEx"][1]["argsT"][7] = {} +defs["igPlotEx"][1]["argsT"][7]["name"] = "overlay_text" +defs["igPlotEx"][1]["argsT"][7]["type"] = "const char*" +defs["igPlotEx"][1]["argsT"][8] = {} +defs["igPlotEx"][1]["argsT"][8]["name"] = "scale_min" +defs["igPlotEx"][1]["argsT"][8]["type"] = "float" +defs["igPlotEx"][1]["argsT"][9] = {} +defs["igPlotEx"][1]["argsT"][9]["name"] = "scale_max" +defs["igPlotEx"][1]["argsT"][9]["type"] = "float" +defs["igPlotEx"][1]["argsT"][10] = {} +defs["igPlotEx"][1]["argsT"][10]["name"] = "frame_size" +defs["igPlotEx"][1]["argsT"][10]["type"] = "ImVec2" +defs["igPlotEx"][1]["argsoriginal"] = "(ImGuiPlotType plot_type,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 frame_size)" +defs["igPlotEx"][1]["call_args"] = "(plot_type,label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,frame_size)" +defs["igPlotEx"][1]["cimguiname"] = "igPlotEx" +defs["igPlotEx"][1]["defaults"] = {} +defs["igPlotEx"][1]["funcname"] = "PlotEx" +defs["igPlotEx"][1]["location"] = "imgui_internal:3407" +defs["igPlotEx"][1]["namespace"] = "ImGui" +defs["igPlotEx"][1]["ov_cimguiname"] = "igPlotEx" +defs["igPlotEx"][1]["ret"] = "int" +defs["igPlotEx"][1]["signature"] = "(ImGuiPlotType,const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)" +defs["igPlotEx"][1]["stname"] = "" +defs["igPlotEx"]["(ImGuiPlotType,const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)"] = defs["igPlotEx"][1] defs["igPlotHistogram"] = {} defs["igPlotHistogram"][1] = {} defs["igPlotHistogram"][1]["args"] = "(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)" @@ -12039,6 +23747,38 @@ defs["igPopClipRect"][1]["ret"] = "void" defs["igPopClipRect"][1]["signature"] = "()" defs["igPopClipRect"][1]["stname"] = "" defs["igPopClipRect"]["()"] = defs["igPopClipRect"][1] +defs["igPopColumnsBackground"] = {} +defs["igPopColumnsBackground"][1] = {} +defs["igPopColumnsBackground"][1]["args"] = "()" +defs["igPopColumnsBackground"][1]["argsT"] = {} +defs["igPopColumnsBackground"][1]["argsoriginal"] = "()" +defs["igPopColumnsBackground"][1]["call_args"] = "()" +defs["igPopColumnsBackground"][1]["cimguiname"] = "igPopColumnsBackground" +defs["igPopColumnsBackground"][1]["defaults"] = {} +defs["igPopColumnsBackground"][1]["funcname"] = "PopColumnsBackground" +defs["igPopColumnsBackground"][1]["location"] = "imgui_internal:3249" +defs["igPopColumnsBackground"][1]["namespace"] = "ImGui" +defs["igPopColumnsBackground"][1]["ov_cimguiname"] = "igPopColumnsBackground" +defs["igPopColumnsBackground"][1]["ret"] = "void" +defs["igPopColumnsBackground"][1]["signature"] = "()" +defs["igPopColumnsBackground"][1]["stname"] = "" +defs["igPopColumnsBackground"]["()"] = defs["igPopColumnsBackground"][1] +defs["igPopFocusScope"] = {} +defs["igPopFocusScope"][1] = {} +defs["igPopFocusScope"][1]["args"] = "()" +defs["igPopFocusScope"][1]["argsT"] = {} +defs["igPopFocusScope"][1]["argsoriginal"] = "()" +defs["igPopFocusScope"][1]["call_args"] = "()" +defs["igPopFocusScope"][1]["cimguiname"] = "igPopFocusScope" +defs["igPopFocusScope"][1]["defaults"] = {} +defs["igPopFocusScope"][1]["funcname"] = "PopFocusScope" +defs["igPopFocusScope"][1]["location"] = "imgui_internal:3233" +defs["igPopFocusScope"][1]["namespace"] = "ImGui" +defs["igPopFocusScope"][1]["ov_cimguiname"] = "igPopFocusScope" +defs["igPopFocusScope"][1]["ret"] = "void" +defs["igPopFocusScope"][1]["signature"] = "()" +defs["igPopFocusScope"][1]["stname"] = "" +defs["igPopFocusScope"]["()"] = defs["igPopFocusScope"][1] defs["igPopFont"] = {} defs["igPopFont"][1] = {} defs["igPopFont"][1]["args"] = "()" @@ -12071,6 +23811,22 @@ defs["igPopID"][1]["ret"] = "void" defs["igPopID"][1]["signature"] = "()" defs["igPopID"][1]["stname"] = "" defs["igPopID"]["()"] = defs["igPopID"][1] +defs["igPopItemFlag"] = {} +defs["igPopItemFlag"][1] = {} +defs["igPopItemFlag"][1]["args"] = "()" +defs["igPopItemFlag"][1]["argsT"] = {} +defs["igPopItemFlag"][1]["argsoriginal"] = "()" +defs["igPopItemFlag"][1]["call_args"] = "()" +defs["igPopItemFlag"][1]["cimguiname"] = "igPopItemFlag" +defs["igPopItemFlag"][1]["defaults"] = {} +defs["igPopItemFlag"][1]["funcname"] = "PopItemFlag" +defs["igPopItemFlag"][1]["location"] = "imgui_internal:3051" +defs["igPopItemFlag"][1]["namespace"] = "ImGui" +defs["igPopItemFlag"][1]["ov_cimguiname"] = "igPopItemFlag" +defs["igPopItemFlag"][1]["ret"] = "void" +defs["igPopItemFlag"][1]["signature"] = "()" +defs["igPopItemFlag"][1]["stname"] = "" +defs["igPopItemFlag"]["()"] = defs["igPopItemFlag"][1] defs["igPopItemWidth"] = {} defs["igPopItemWidth"][1] = {} defs["igPopItemWidth"][1]["args"] = "()" @@ -12233,6 +23989,60 @@ defs["igPushClipRect"][1]["ret"] = "void" defs["igPushClipRect"][1]["signature"] = "(const ImVec2,const ImVec2,bool)" defs["igPushClipRect"][1]["stname"] = "" defs["igPushClipRect"]["(const ImVec2,const ImVec2,bool)"] = defs["igPushClipRect"][1] +defs["igPushColumnClipRect"] = {} +defs["igPushColumnClipRect"][1] = {} +defs["igPushColumnClipRect"][1]["args"] = "(int column_index)" +defs["igPushColumnClipRect"][1]["argsT"] = {} +defs["igPushColumnClipRect"][1]["argsT"][1] = {} +defs["igPushColumnClipRect"][1]["argsT"][1]["name"] = "column_index" +defs["igPushColumnClipRect"][1]["argsT"][1]["type"] = "int" +defs["igPushColumnClipRect"][1]["argsoriginal"] = "(int column_index)" +defs["igPushColumnClipRect"][1]["call_args"] = "(column_index)" +defs["igPushColumnClipRect"][1]["cimguiname"] = "igPushColumnClipRect" +defs["igPushColumnClipRect"][1]["defaults"] = {} +defs["igPushColumnClipRect"][1]["funcname"] = "PushColumnClipRect" +defs["igPushColumnClipRect"][1]["location"] = "imgui_internal:3247" +defs["igPushColumnClipRect"][1]["namespace"] = "ImGui" +defs["igPushColumnClipRect"][1]["ov_cimguiname"] = "igPushColumnClipRect" +defs["igPushColumnClipRect"][1]["ret"] = "void" +defs["igPushColumnClipRect"][1]["signature"] = "(int)" +defs["igPushColumnClipRect"][1]["stname"] = "" +defs["igPushColumnClipRect"]["(int)"] = defs["igPushColumnClipRect"][1] +defs["igPushColumnsBackground"] = {} +defs["igPushColumnsBackground"][1] = {} +defs["igPushColumnsBackground"][1]["args"] = "()" +defs["igPushColumnsBackground"][1]["argsT"] = {} +defs["igPushColumnsBackground"][1]["argsoriginal"] = "()" +defs["igPushColumnsBackground"][1]["call_args"] = "()" +defs["igPushColumnsBackground"][1]["cimguiname"] = "igPushColumnsBackground" +defs["igPushColumnsBackground"][1]["defaults"] = {} +defs["igPushColumnsBackground"][1]["funcname"] = "PushColumnsBackground" +defs["igPushColumnsBackground"][1]["location"] = "imgui_internal:3248" +defs["igPushColumnsBackground"][1]["namespace"] = "ImGui" +defs["igPushColumnsBackground"][1]["ov_cimguiname"] = "igPushColumnsBackground" +defs["igPushColumnsBackground"][1]["ret"] = "void" +defs["igPushColumnsBackground"][1]["signature"] = "()" +defs["igPushColumnsBackground"][1]["stname"] = "" +defs["igPushColumnsBackground"]["()"] = defs["igPushColumnsBackground"][1] +defs["igPushFocusScope"] = {} +defs["igPushFocusScope"][1] = {} +defs["igPushFocusScope"][1]["args"] = "(ImGuiID id)" +defs["igPushFocusScope"][1]["argsT"] = {} +defs["igPushFocusScope"][1]["argsT"][1] = {} +defs["igPushFocusScope"][1]["argsT"][1]["name"] = "id" +defs["igPushFocusScope"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igPushFocusScope"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igPushFocusScope"][1]["call_args"] = "(id)" +defs["igPushFocusScope"][1]["cimguiname"] = "igPushFocusScope" +defs["igPushFocusScope"][1]["defaults"] = {} +defs["igPushFocusScope"][1]["funcname"] = "PushFocusScope" +defs["igPushFocusScope"][1]["location"] = "imgui_internal:3232" +defs["igPushFocusScope"][1]["namespace"] = "ImGui" +defs["igPushFocusScope"][1]["ov_cimguiname"] = "igPushFocusScope" +defs["igPushFocusScope"][1]["ret"] = "void" +defs["igPushFocusScope"][1]["signature"] = "(ImGuiID)" +defs["igPushFocusScope"][1]["stname"] = "" +defs["igPushFocusScope"]["(ImGuiID)"] = defs["igPushFocusScope"][1] defs["igPushFont"] = {} defs["igPushFont"][1] = {} defs["igPushFont"][1]["args"] = "(ImFont* font)" @@ -12328,6 +24138,28 @@ defs["igPushID"]["(const char*)"] = defs["igPushID"][1] defs["igPushID"]["(const char*,const char*)"] = defs["igPushID"][2] defs["igPushID"]["(const void*)"] = defs["igPushID"][3] defs["igPushID"]["(int)"] = defs["igPushID"][4] +defs["igPushItemFlag"] = {} +defs["igPushItemFlag"][1] = {} +defs["igPushItemFlag"][1]["args"] = "(ImGuiItemFlags option,bool enabled)" +defs["igPushItemFlag"][1]["argsT"] = {} +defs["igPushItemFlag"][1]["argsT"][1] = {} +defs["igPushItemFlag"][1]["argsT"][1]["name"] = "option" +defs["igPushItemFlag"][1]["argsT"][1]["type"] = "ImGuiItemFlags" +defs["igPushItemFlag"][1]["argsT"][2] = {} +defs["igPushItemFlag"][1]["argsT"][2]["name"] = "enabled" +defs["igPushItemFlag"][1]["argsT"][2]["type"] = "bool" +defs["igPushItemFlag"][1]["argsoriginal"] = "(ImGuiItemFlags option,bool enabled)" +defs["igPushItemFlag"][1]["call_args"] = "(option,enabled)" +defs["igPushItemFlag"][1]["cimguiname"] = "igPushItemFlag" +defs["igPushItemFlag"][1]["defaults"] = {} +defs["igPushItemFlag"][1]["funcname"] = "PushItemFlag" +defs["igPushItemFlag"][1]["location"] = "imgui_internal:3050" +defs["igPushItemFlag"][1]["namespace"] = "ImGui" +defs["igPushItemFlag"][1]["ov_cimguiname"] = "igPushItemFlag" +defs["igPushItemFlag"][1]["ret"] = "void" +defs["igPushItemFlag"][1]["signature"] = "(ImGuiItemFlags,bool)" +defs["igPushItemFlag"][1]["stname"] = "" +defs["igPushItemFlag"]["(ImGuiItemFlags,bool)"] = defs["igPushItemFlag"][1] defs["igPushItemWidth"] = {} defs["igPushItemWidth"][1] = {} defs["igPushItemWidth"][1]["args"] = "(float item_width)" @@ -12347,6 +24179,47 @@ defs["igPushItemWidth"][1]["ret"] = "void" defs["igPushItemWidth"][1]["signature"] = "(float)" defs["igPushItemWidth"][1]["stname"] = "" defs["igPushItemWidth"]["(float)"] = defs["igPushItemWidth"][1] +defs["igPushMultiItemsWidths"] = {} +defs["igPushMultiItemsWidths"][1] = {} +defs["igPushMultiItemsWidths"][1]["args"] = "(int components,float width_full)" +defs["igPushMultiItemsWidths"][1]["argsT"] = {} +defs["igPushMultiItemsWidths"][1]["argsT"][1] = {} +defs["igPushMultiItemsWidths"][1]["argsT"][1]["name"] = "components" +defs["igPushMultiItemsWidths"][1]["argsT"][1]["type"] = "int" +defs["igPushMultiItemsWidths"][1]["argsT"][2] = {} +defs["igPushMultiItemsWidths"][1]["argsT"][2]["name"] = "width_full" +defs["igPushMultiItemsWidths"][1]["argsT"][2]["type"] = "float" +defs["igPushMultiItemsWidths"][1]["argsoriginal"] = "(int components,float width_full)" +defs["igPushMultiItemsWidths"][1]["call_args"] = "(components,width_full)" +defs["igPushMultiItemsWidths"][1]["cimguiname"] = "igPushMultiItemsWidths" +defs["igPushMultiItemsWidths"][1]["defaults"] = {} +defs["igPushMultiItemsWidths"][1]["funcname"] = "PushMultiItemsWidths" +defs["igPushMultiItemsWidths"][1]["location"] = "imgui_internal:3044" +defs["igPushMultiItemsWidths"][1]["namespace"] = "ImGui" +defs["igPushMultiItemsWidths"][1]["ov_cimguiname"] = "igPushMultiItemsWidths" +defs["igPushMultiItemsWidths"][1]["ret"] = "void" +defs["igPushMultiItemsWidths"][1]["signature"] = "(int,float)" +defs["igPushMultiItemsWidths"][1]["stname"] = "" +defs["igPushMultiItemsWidths"]["(int,float)"] = defs["igPushMultiItemsWidths"][1] +defs["igPushOverrideID"] = {} +defs["igPushOverrideID"][1] = {} +defs["igPushOverrideID"][1]["args"] = "(ImGuiID id)" +defs["igPushOverrideID"][1]["argsT"] = {} +defs["igPushOverrideID"][1]["argsT"][1] = {} +defs["igPushOverrideID"][1]["argsT"][1]["name"] = "id" +defs["igPushOverrideID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igPushOverrideID"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igPushOverrideID"][1]["call_args"] = "(id)" +defs["igPushOverrideID"][1]["cimguiname"] = "igPushOverrideID" +defs["igPushOverrideID"][1]["defaults"] = {} +defs["igPushOverrideID"][1]["funcname"] = "PushOverrideID" +defs["igPushOverrideID"][1]["location"] = "imgui_internal:3032" +defs["igPushOverrideID"][1]["namespace"] = "ImGui" +defs["igPushOverrideID"][1]["ov_cimguiname"] = "igPushOverrideID" +defs["igPushOverrideID"][1]["ret"] = "void" +defs["igPushOverrideID"][1]["signature"] = "(ImGuiID)" +defs["igPushOverrideID"][1]["stname"] = "" +defs["igPushOverrideID"]["(ImGuiID)"] = defs["igPushOverrideID"][1] defs["igPushStyleColor"] = {} defs["igPushStyleColor"][1] = {} defs["igPushStyleColor"][1]["args"] = "(ImGuiCol idx,ImU32 col)" @@ -12499,6 +24372,47 @@ defs["igRadioButton"][2]["signature"] = "(const char*,int*,int)" defs["igRadioButton"][2]["stname"] = "" defs["igRadioButton"]["(const char*,bool)"] = defs["igRadioButton"][1] defs["igRadioButton"]["(const char*,int*,int)"] = defs["igRadioButton"][2] +defs["igRemoveContextHook"] = {} +defs["igRemoveContextHook"][1] = {} +defs["igRemoveContextHook"][1]["args"] = "(ImGuiContext* context,ImGuiID hook_to_remove)" +defs["igRemoveContextHook"][1]["argsT"] = {} +defs["igRemoveContextHook"][1]["argsT"][1] = {} +defs["igRemoveContextHook"][1]["argsT"][1]["name"] = "context" +defs["igRemoveContextHook"][1]["argsT"][1]["type"] = "ImGuiContext*" +defs["igRemoveContextHook"][1]["argsT"][2] = {} +defs["igRemoveContextHook"][1]["argsT"][2]["name"] = "hook_to_remove" +defs["igRemoveContextHook"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igRemoveContextHook"][1]["argsoriginal"] = "(ImGuiContext* context,ImGuiID hook_to_remove)" +defs["igRemoveContextHook"][1]["call_args"] = "(context,hook_to_remove)" +defs["igRemoveContextHook"][1]["cimguiname"] = "igRemoveContextHook" +defs["igRemoveContextHook"][1]["defaults"] = {} +defs["igRemoveContextHook"][1]["funcname"] = "RemoveContextHook" +defs["igRemoveContextHook"][1]["location"] = "imgui_internal:2978" +defs["igRemoveContextHook"][1]["namespace"] = "ImGui" +defs["igRemoveContextHook"][1]["ov_cimguiname"] = "igRemoveContextHook" +defs["igRemoveContextHook"][1]["ret"] = "void" +defs["igRemoveContextHook"][1]["signature"] = "(ImGuiContext*,ImGuiID)" +defs["igRemoveContextHook"][1]["stname"] = "" +defs["igRemoveContextHook"]["(ImGuiContext*,ImGuiID)"] = defs["igRemoveContextHook"][1] +defs["igRemoveSettingsHandler"] = {} +defs["igRemoveSettingsHandler"][1] = {} +defs["igRemoveSettingsHandler"][1]["args"] = "(const char* type_name)" +defs["igRemoveSettingsHandler"][1]["argsT"] = {} +defs["igRemoveSettingsHandler"][1]["argsT"][1] = {} +defs["igRemoveSettingsHandler"][1]["argsT"][1]["name"] = "type_name" +defs["igRemoveSettingsHandler"][1]["argsT"][1]["type"] = "const char*" +defs["igRemoveSettingsHandler"][1]["argsoriginal"] = "(const char* type_name)" +defs["igRemoveSettingsHandler"][1]["call_args"] = "(type_name)" +defs["igRemoveSettingsHandler"][1]["cimguiname"] = "igRemoveSettingsHandler" +defs["igRemoveSettingsHandler"][1]["defaults"] = {} +defs["igRemoveSettingsHandler"][1]["funcname"] = "RemoveSettingsHandler" +defs["igRemoveSettingsHandler"][1]["location"] = "imgui_internal:2998" +defs["igRemoveSettingsHandler"][1]["namespace"] = "ImGui" +defs["igRemoveSettingsHandler"][1]["ov_cimguiname"] = "igRemoveSettingsHandler" +defs["igRemoveSettingsHandler"][1]["ret"] = "void" +defs["igRemoveSettingsHandler"][1]["signature"] = "(const char*)" +defs["igRemoveSettingsHandler"][1]["stname"] = "" +defs["igRemoveSettingsHandler"]["(const char*)"] = defs["igRemoveSettingsHandler"][1] defs["igRender"] = {} defs["igRender"][1] = {} defs["igRender"][1]["args"] = "()" @@ -12515,6 +24429,330 @@ defs["igRender"][1]["ret"] = "void" defs["igRender"][1]["signature"] = "()" defs["igRender"][1]["stname"] = "" defs["igRender"]["()"] = defs["igRender"][1] +defs["igRenderArrow"] = {} +defs["igRenderArrow"][1] = {} +defs["igRenderArrow"][1]["args"] = "(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale)" +defs["igRenderArrow"][1]["argsT"] = {} +defs["igRenderArrow"][1]["argsT"][1] = {} +defs["igRenderArrow"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderArrow"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderArrow"][1]["argsT"][2] = {} +defs["igRenderArrow"][1]["argsT"][2]["name"] = "pos" +defs["igRenderArrow"][1]["argsT"][2]["type"] = "ImVec2" +defs["igRenderArrow"][1]["argsT"][3] = {} +defs["igRenderArrow"][1]["argsT"][3]["name"] = "col" +defs["igRenderArrow"][1]["argsT"][3]["type"] = "ImU32" +defs["igRenderArrow"][1]["argsT"][4] = {} +defs["igRenderArrow"][1]["argsT"][4]["name"] = "dir" +defs["igRenderArrow"][1]["argsT"][4]["type"] = "ImGuiDir" +defs["igRenderArrow"][1]["argsT"][5] = {} +defs["igRenderArrow"][1]["argsT"][5]["name"] = "scale" +defs["igRenderArrow"][1]["argsT"][5]["type"] = "float" +defs["igRenderArrow"][1]["argsoriginal"] = "(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale=1.0f)" +defs["igRenderArrow"][1]["call_args"] = "(draw_list,pos,col,dir,scale)" +defs["igRenderArrow"][1]["cimguiname"] = "igRenderArrow" +defs["igRenderArrow"][1]["defaults"] = {} +defs["igRenderArrow"][1]["defaults"]["scale"] = "1.0f" +defs["igRenderArrow"][1]["funcname"] = "RenderArrow" +defs["igRenderArrow"][1]["location"] = "imgui_internal:3340" +defs["igRenderArrow"][1]["namespace"] = "ImGui" +defs["igRenderArrow"][1]["ov_cimguiname"] = "igRenderArrow" +defs["igRenderArrow"][1]["ret"] = "void" +defs["igRenderArrow"][1]["signature"] = "(ImDrawList*,ImVec2,ImU32,ImGuiDir,float)" +defs["igRenderArrow"][1]["stname"] = "" +defs["igRenderArrow"]["(ImDrawList*,ImVec2,ImU32,ImGuiDir,float)"] = defs["igRenderArrow"][1] +defs["igRenderArrowDockMenu"] = {} +defs["igRenderArrowDockMenu"][1] = {} +defs["igRenderArrowDockMenu"][1]["args"] = "(ImDrawList* draw_list,ImVec2 p_min,float sz,ImU32 col)" +defs["igRenderArrowDockMenu"][1]["argsT"] = {} +defs["igRenderArrowDockMenu"][1]["argsT"][1] = {} +defs["igRenderArrowDockMenu"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderArrowDockMenu"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderArrowDockMenu"][1]["argsT"][2] = {} +defs["igRenderArrowDockMenu"][1]["argsT"][2]["name"] = "p_min" +defs["igRenderArrowDockMenu"][1]["argsT"][2]["type"] = "ImVec2" +defs["igRenderArrowDockMenu"][1]["argsT"][3] = {} +defs["igRenderArrowDockMenu"][1]["argsT"][3]["name"] = "sz" +defs["igRenderArrowDockMenu"][1]["argsT"][3]["type"] = "float" +defs["igRenderArrowDockMenu"][1]["argsT"][4] = {} +defs["igRenderArrowDockMenu"][1]["argsT"][4]["name"] = "col" +defs["igRenderArrowDockMenu"][1]["argsT"][4]["type"] = "ImU32" +defs["igRenderArrowDockMenu"][1]["argsoriginal"] = "(ImDrawList* draw_list,ImVec2 p_min,float sz,ImU32 col)" +defs["igRenderArrowDockMenu"][1]["call_args"] = "(draw_list,p_min,sz,col)" +defs["igRenderArrowDockMenu"][1]["cimguiname"] = "igRenderArrowDockMenu" +defs["igRenderArrowDockMenu"][1]["defaults"] = {} +defs["igRenderArrowDockMenu"][1]["funcname"] = "RenderArrowDockMenu" +defs["igRenderArrowDockMenu"][1]["location"] = "imgui_internal:3344" +defs["igRenderArrowDockMenu"][1]["namespace"] = "ImGui" +defs["igRenderArrowDockMenu"][1]["ov_cimguiname"] = "igRenderArrowDockMenu" +defs["igRenderArrowDockMenu"][1]["ret"] = "void" +defs["igRenderArrowDockMenu"][1]["signature"] = "(ImDrawList*,ImVec2,float,ImU32)" +defs["igRenderArrowDockMenu"][1]["stname"] = "" +defs["igRenderArrowDockMenu"]["(ImDrawList*,ImVec2,float,ImU32)"] = defs["igRenderArrowDockMenu"][1] +defs["igRenderArrowPointingAt"] = {} +defs["igRenderArrowPointingAt"][1] = {} +defs["igRenderArrowPointingAt"][1]["args"] = "(ImDrawList* draw_list,ImVec2 pos,ImVec2 half_sz,ImGuiDir direction,ImU32 col)" +defs["igRenderArrowPointingAt"][1]["argsT"] = {} +defs["igRenderArrowPointingAt"][1]["argsT"][1] = {} +defs["igRenderArrowPointingAt"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderArrowPointingAt"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderArrowPointingAt"][1]["argsT"][2] = {} +defs["igRenderArrowPointingAt"][1]["argsT"][2]["name"] = "pos" +defs["igRenderArrowPointingAt"][1]["argsT"][2]["type"] = "ImVec2" +defs["igRenderArrowPointingAt"][1]["argsT"][3] = {} +defs["igRenderArrowPointingAt"][1]["argsT"][3]["name"] = "half_sz" +defs["igRenderArrowPointingAt"][1]["argsT"][3]["type"] = "ImVec2" +defs["igRenderArrowPointingAt"][1]["argsT"][4] = {} +defs["igRenderArrowPointingAt"][1]["argsT"][4]["name"] = "direction" +defs["igRenderArrowPointingAt"][1]["argsT"][4]["type"] = "ImGuiDir" +defs["igRenderArrowPointingAt"][1]["argsT"][5] = {} +defs["igRenderArrowPointingAt"][1]["argsT"][5]["name"] = "col" +defs["igRenderArrowPointingAt"][1]["argsT"][5]["type"] = "ImU32" +defs["igRenderArrowPointingAt"][1]["argsoriginal"] = "(ImDrawList* draw_list,ImVec2 pos,ImVec2 half_sz,ImGuiDir direction,ImU32 col)" +defs["igRenderArrowPointingAt"][1]["call_args"] = "(draw_list,pos,half_sz,direction,col)" +defs["igRenderArrowPointingAt"][1]["cimguiname"] = "igRenderArrowPointingAt" +defs["igRenderArrowPointingAt"][1]["defaults"] = {} +defs["igRenderArrowPointingAt"][1]["funcname"] = "RenderArrowPointingAt" +defs["igRenderArrowPointingAt"][1]["location"] = "imgui_internal:3343" +defs["igRenderArrowPointingAt"][1]["namespace"] = "ImGui" +defs["igRenderArrowPointingAt"][1]["ov_cimguiname"] = "igRenderArrowPointingAt" +defs["igRenderArrowPointingAt"][1]["ret"] = "void" +defs["igRenderArrowPointingAt"][1]["signature"] = "(ImDrawList*,ImVec2,ImVec2,ImGuiDir,ImU32)" +defs["igRenderArrowPointingAt"][1]["stname"] = "" +defs["igRenderArrowPointingAt"]["(ImDrawList*,ImVec2,ImVec2,ImGuiDir,ImU32)"] = defs["igRenderArrowPointingAt"][1] +defs["igRenderBullet"] = {} +defs["igRenderBullet"][1] = {} +defs["igRenderBullet"][1]["args"] = "(ImDrawList* draw_list,ImVec2 pos,ImU32 col)" +defs["igRenderBullet"][1]["argsT"] = {} +defs["igRenderBullet"][1]["argsT"][1] = {} +defs["igRenderBullet"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderBullet"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderBullet"][1]["argsT"][2] = {} +defs["igRenderBullet"][1]["argsT"][2]["name"] = "pos" +defs["igRenderBullet"][1]["argsT"][2]["type"] = "ImVec2" +defs["igRenderBullet"][1]["argsT"][3] = {} +defs["igRenderBullet"][1]["argsT"][3]["name"] = "col" +defs["igRenderBullet"][1]["argsT"][3]["type"] = "ImU32" +defs["igRenderBullet"][1]["argsoriginal"] = "(ImDrawList* draw_list,ImVec2 pos,ImU32 col)" +defs["igRenderBullet"][1]["call_args"] = "(draw_list,pos,col)" +defs["igRenderBullet"][1]["cimguiname"] = "igRenderBullet" +defs["igRenderBullet"][1]["defaults"] = {} +defs["igRenderBullet"][1]["funcname"] = "RenderBullet" +defs["igRenderBullet"][1]["location"] = "imgui_internal:3341" +defs["igRenderBullet"][1]["namespace"] = "ImGui" +defs["igRenderBullet"][1]["ov_cimguiname"] = "igRenderBullet" +defs["igRenderBullet"][1]["ret"] = "void" +defs["igRenderBullet"][1]["signature"] = "(ImDrawList*,ImVec2,ImU32)" +defs["igRenderBullet"][1]["stname"] = "" +defs["igRenderBullet"]["(ImDrawList*,ImVec2,ImU32)"] = defs["igRenderBullet"][1] +defs["igRenderCheckMark"] = {} +defs["igRenderCheckMark"][1] = {} +defs["igRenderCheckMark"][1]["args"] = "(ImDrawList* draw_list,ImVec2 pos,ImU32 col,float sz)" +defs["igRenderCheckMark"][1]["argsT"] = {} +defs["igRenderCheckMark"][1]["argsT"][1] = {} +defs["igRenderCheckMark"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderCheckMark"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderCheckMark"][1]["argsT"][2] = {} +defs["igRenderCheckMark"][1]["argsT"][2]["name"] = "pos" +defs["igRenderCheckMark"][1]["argsT"][2]["type"] = "ImVec2" +defs["igRenderCheckMark"][1]["argsT"][3] = {} +defs["igRenderCheckMark"][1]["argsT"][3]["name"] = "col" +defs["igRenderCheckMark"][1]["argsT"][3]["type"] = "ImU32" +defs["igRenderCheckMark"][1]["argsT"][4] = {} +defs["igRenderCheckMark"][1]["argsT"][4]["name"] = "sz" +defs["igRenderCheckMark"][1]["argsT"][4]["type"] = "float" +defs["igRenderCheckMark"][1]["argsoriginal"] = "(ImDrawList* draw_list,ImVec2 pos,ImU32 col,float sz)" +defs["igRenderCheckMark"][1]["call_args"] = "(draw_list,pos,col,sz)" +defs["igRenderCheckMark"][1]["cimguiname"] = "igRenderCheckMark" +defs["igRenderCheckMark"][1]["defaults"] = {} +defs["igRenderCheckMark"][1]["funcname"] = "RenderCheckMark" +defs["igRenderCheckMark"][1]["location"] = "imgui_internal:3342" +defs["igRenderCheckMark"][1]["namespace"] = "ImGui" +defs["igRenderCheckMark"][1]["ov_cimguiname"] = "igRenderCheckMark" +defs["igRenderCheckMark"][1]["ret"] = "void" +defs["igRenderCheckMark"][1]["signature"] = "(ImDrawList*,ImVec2,ImU32,float)" +defs["igRenderCheckMark"][1]["stname"] = "" +defs["igRenderCheckMark"]["(ImDrawList*,ImVec2,ImU32,float)"] = defs["igRenderCheckMark"][1] +defs["igRenderColorRectWithAlphaCheckerboard"] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["args"] = "(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,ImDrawFlags flags)" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][1] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][2] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][2]["name"] = "p_min" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][2]["type"] = "ImVec2" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][3] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][3]["name"] = "p_max" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][3]["type"] = "ImVec2" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][4] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][4]["name"] = "fill_col" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][4]["type"] = "ImU32" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][5] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][5]["name"] = "grid_step" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][5]["type"] = "float" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][6] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][6]["name"] = "grid_off" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][6]["type"] = "ImVec2" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][7] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][7]["name"] = "rounding" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][7]["type"] = "float" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][8] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][8]["name"] = "flags" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsT"][8]["type"] = "ImDrawFlags" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["argsoriginal"] = "(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding=0.0f,ImDrawFlags flags=0)" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["call_args"] = "(draw_list,p_min,p_max,fill_col,grid_step,grid_off,rounding,flags)" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["cimguiname"] = "igRenderColorRectWithAlphaCheckerboard" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["defaults"] = {} +defs["igRenderColorRectWithAlphaCheckerboard"][1]["defaults"]["flags"] = "0" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["defaults"]["rounding"] = "0.0f" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["funcname"] = "RenderColorRectWithAlphaCheckerboard" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["location"] = "imgui_internal:3334" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["namespace"] = "ImGui" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["ov_cimguiname"] = "igRenderColorRectWithAlphaCheckerboard" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["ret"] = "void" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["signature"] = "(ImDrawList*,ImVec2,ImVec2,ImU32,float,ImVec2,float,ImDrawFlags)" +defs["igRenderColorRectWithAlphaCheckerboard"][1]["stname"] = "" +defs["igRenderColorRectWithAlphaCheckerboard"]["(ImDrawList*,ImVec2,ImVec2,ImU32,float,ImVec2,float,ImDrawFlags)"] = defs["igRenderColorRectWithAlphaCheckerboard"][1] +defs["igRenderDragDropTargetRect"] = {} +defs["igRenderDragDropTargetRect"][1] = {} +defs["igRenderDragDropTargetRect"][1]["args"] = "(const ImRect bb)" +defs["igRenderDragDropTargetRect"][1]["argsT"] = {} +defs["igRenderDragDropTargetRect"][1]["argsT"][1] = {} +defs["igRenderDragDropTargetRect"][1]["argsT"][1]["name"] = "bb" +defs["igRenderDragDropTargetRect"][1]["argsT"][1]["type"] = "const ImRect" +defs["igRenderDragDropTargetRect"][1]["argsoriginal"] = "(const ImRect& bb)" +defs["igRenderDragDropTargetRect"][1]["call_args"] = "(bb)" +defs["igRenderDragDropTargetRect"][1]["cimguiname"] = "igRenderDragDropTargetRect" +defs["igRenderDragDropTargetRect"][1]["defaults"] = {} +defs["igRenderDragDropTargetRect"][1]["funcname"] = "RenderDragDropTargetRect" +defs["igRenderDragDropTargetRect"][1]["location"] = "imgui_internal:3241" +defs["igRenderDragDropTargetRect"][1]["namespace"] = "ImGui" +defs["igRenderDragDropTargetRect"][1]["ov_cimguiname"] = "igRenderDragDropTargetRect" +defs["igRenderDragDropTargetRect"][1]["ret"] = "void" +defs["igRenderDragDropTargetRect"][1]["signature"] = "(const ImRect)" +defs["igRenderDragDropTargetRect"][1]["stname"] = "" +defs["igRenderDragDropTargetRect"]["(const ImRect)"] = defs["igRenderDragDropTargetRect"][1] +defs["igRenderFrame"] = {} +defs["igRenderFrame"][1] = {} +defs["igRenderFrame"][1]["args"] = "(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border,float rounding)" +defs["igRenderFrame"][1]["argsT"] = {} +defs["igRenderFrame"][1]["argsT"][1] = {} +defs["igRenderFrame"][1]["argsT"][1]["name"] = "p_min" +defs["igRenderFrame"][1]["argsT"][1]["type"] = "ImVec2" +defs["igRenderFrame"][1]["argsT"][2] = {} +defs["igRenderFrame"][1]["argsT"][2]["name"] = "p_max" +defs["igRenderFrame"][1]["argsT"][2]["type"] = "ImVec2" +defs["igRenderFrame"][1]["argsT"][3] = {} +defs["igRenderFrame"][1]["argsT"][3]["name"] = "fill_col" +defs["igRenderFrame"][1]["argsT"][3]["type"] = "ImU32" +defs["igRenderFrame"][1]["argsT"][4] = {} +defs["igRenderFrame"][1]["argsT"][4]["name"] = "border" +defs["igRenderFrame"][1]["argsT"][4]["type"] = "bool" +defs["igRenderFrame"][1]["argsT"][5] = {} +defs["igRenderFrame"][1]["argsT"][5]["name"] = "rounding" +defs["igRenderFrame"][1]["argsT"][5]["type"] = "float" +defs["igRenderFrame"][1]["argsoriginal"] = "(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border=true,float rounding=0.0f)" +defs["igRenderFrame"][1]["call_args"] = "(p_min,p_max,fill_col,border,rounding)" +defs["igRenderFrame"][1]["cimguiname"] = "igRenderFrame" +defs["igRenderFrame"][1]["defaults"] = {} +defs["igRenderFrame"][1]["defaults"]["border"] = "true" +defs["igRenderFrame"][1]["defaults"]["rounding"] = "0.0f" +defs["igRenderFrame"][1]["funcname"] = "RenderFrame" +defs["igRenderFrame"][1]["location"] = "imgui_internal:3332" +defs["igRenderFrame"][1]["namespace"] = "ImGui" +defs["igRenderFrame"][1]["ov_cimguiname"] = "igRenderFrame" +defs["igRenderFrame"][1]["ret"] = "void" +defs["igRenderFrame"][1]["signature"] = "(ImVec2,ImVec2,ImU32,bool,float)" +defs["igRenderFrame"][1]["stname"] = "" +defs["igRenderFrame"]["(ImVec2,ImVec2,ImU32,bool,float)"] = defs["igRenderFrame"][1] +defs["igRenderFrameBorder"] = {} +defs["igRenderFrameBorder"][1] = {} +defs["igRenderFrameBorder"][1]["args"] = "(ImVec2 p_min,ImVec2 p_max,float rounding)" +defs["igRenderFrameBorder"][1]["argsT"] = {} +defs["igRenderFrameBorder"][1]["argsT"][1] = {} +defs["igRenderFrameBorder"][1]["argsT"][1]["name"] = "p_min" +defs["igRenderFrameBorder"][1]["argsT"][1]["type"] = "ImVec2" +defs["igRenderFrameBorder"][1]["argsT"][2] = {} +defs["igRenderFrameBorder"][1]["argsT"][2]["name"] = "p_max" +defs["igRenderFrameBorder"][1]["argsT"][2]["type"] = "ImVec2" +defs["igRenderFrameBorder"][1]["argsT"][3] = {} +defs["igRenderFrameBorder"][1]["argsT"][3]["name"] = "rounding" +defs["igRenderFrameBorder"][1]["argsT"][3]["type"] = "float" +defs["igRenderFrameBorder"][1]["argsoriginal"] = "(ImVec2 p_min,ImVec2 p_max,float rounding=0.0f)" +defs["igRenderFrameBorder"][1]["call_args"] = "(p_min,p_max,rounding)" +defs["igRenderFrameBorder"][1]["cimguiname"] = "igRenderFrameBorder" +defs["igRenderFrameBorder"][1]["defaults"] = {} +defs["igRenderFrameBorder"][1]["defaults"]["rounding"] = "0.0f" +defs["igRenderFrameBorder"][1]["funcname"] = "RenderFrameBorder" +defs["igRenderFrameBorder"][1]["location"] = "imgui_internal:3333" +defs["igRenderFrameBorder"][1]["namespace"] = "ImGui" +defs["igRenderFrameBorder"][1]["ov_cimguiname"] = "igRenderFrameBorder" +defs["igRenderFrameBorder"][1]["ret"] = "void" +defs["igRenderFrameBorder"][1]["signature"] = "(ImVec2,ImVec2,float)" +defs["igRenderFrameBorder"][1]["stname"] = "" +defs["igRenderFrameBorder"]["(ImVec2,ImVec2,float)"] = defs["igRenderFrameBorder"][1] +defs["igRenderMouseCursor"] = {} +defs["igRenderMouseCursor"][1] = {} +defs["igRenderMouseCursor"][1]["args"] = "(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)" +defs["igRenderMouseCursor"][1]["argsT"] = {} +defs["igRenderMouseCursor"][1]["argsT"][1] = {} +defs["igRenderMouseCursor"][1]["argsT"][1]["name"] = "pos" +defs["igRenderMouseCursor"][1]["argsT"][1]["type"] = "ImVec2" +defs["igRenderMouseCursor"][1]["argsT"][2] = {} +defs["igRenderMouseCursor"][1]["argsT"][2]["name"] = "scale" +defs["igRenderMouseCursor"][1]["argsT"][2]["type"] = "float" +defs["igRenderMouseCursor"][1]["argsT"][3] = {} +defs["igRenderMouseCursor"][1]["argsT"][3]["name"] = "mouse_cursor" +defs["igRenderMouseCursor"][1]["argsT"][3]["type"] = "ImGuiMouseCursor" +defs["igRenderMouseCursor"][1]["argsT"][4] = {} +defs["igRenderMouseCursor"][1]["argsT"][4]["name"] = "col_fill" +defs["igRenderMouseCursor"][1]["argsT"][4]["type"] = "ImU32" +defs["igRenderMouseCursor"][1]["argsT"][5] = {} +defs["igRenderMouseCursor"][1]["argsT"][5]["name"] = "col_border" +defs["igRenderMouseCursor"][1]["argsT"][5]["type"] = "ImU32" +defs["igRenderMouseCursor"][1]["argsT"][6] = {} +defs["igRenderMouseCursor"][1]["argsT"][6]["name"] = "col_shadow" +defs["igRenderMouseCursor"][1]["argsT"][6]["type"] = "ImU32" +defs["igRenderMouseCursor"][1]["argsoriginal"] = "(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow)" +defs["igRenderMouseCursor"][1]["call_args"] = "(pos,scale,mouse_cursor,col_fill,col_border,col_shadow)" +defs["igRenderMouseCursor"][1]["cimguiname"] = "igRenderMouseCursor" +defs["igRenderMouseCursor"][1]["defaults"] = {} +defs["igRenderMouseCursor"][1]["funcname"] = "RenderMouseCursor" +defs["igRenderMouseCursor"][1]["location"] = "imgui_internal:3337" +defs["igRenderMouseCursor"][1]["namespace"] = "ImGui" +defs["igRenderMouseCursor"][1]["ov_cimguiname"] = "igRenderMouseCursor" +defs["igRenderMouseCursor"][1]["ret"] = "void" +defs["igRenderMouseCursor"][1]["signature"] = "(ImVec2,float,ImGuiMouseCursor,ImU32,ImU32,ImU32)" +defs["igRenderMouseCursor"][1]["stname"] = "" +defs["igRenderMouseCursor"]["(ImVec2,float,ImGuiMouseCursor,ImU32,ImU32,ImU32)"] = defs["igRenderMouseCursor"][1] +defs["igRenderNavHighlight"] = {} +defs["igRenderNavHighlight"][1] = {} +defs["igRenderNavHighlight"][1]["args"] = "(const ImRect bb,ImGuiID id,ImGuiNavHighlightFlags flags)" +defs["igRenderNavHighlight"][1]["argsT"] = {} +defs["igRenderNavHighlight"][1]["argsT"][1] = {} +defs["igRenderNavHighlight"][1]["argsT"][1]["name"] = "bb" +defs["igRenderNavHighlight"][1]["argsT"][1]["type"] = "const ImRect" +defs["igRenderNavHighlight"][1]["argsT"][2] = {} +defs["igRenderNavHighlight"][1]["argsT"][2]["name"] = "id" +defs["igRenderNavHighlight"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igRenderNavHighlight"][1]["argsT"][3] = {} +defs["igRenderNavHighlight"][1]["argsT"][3]["name"] = "flags" +defs["igRenderNavHighlight"][1]["argsT"][3]["type"] = "ImGuiNavHighlightFlags" +defs["igRenderNavHighlight"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id,ImGuiNavHighlightFlags flags=ImGuiNavHighlightFlags_TypeDefault)" +defs["igRenderNavHighlight"][1]["call_args"] = "(bb,id,flags)" +defs["igRenderNavHighlight"][1]["cimguiname"] = "igRenderNavHighlight" +defs["igRenderNavHighlight"][1]["defaults"] = {} +defs["igRenderNavHighlight"][1]["defaults"]["flags"] = "ImGuiNavHighlightFlags_TypeDefault" +defs["igRenderNavHighlight"][1]["funcname"] = "RenderNavHighlight" +defs["igRenderNavHighlight"][1]["location"] = "imgui_internal:3335" +defs["igRenderNavHighlight"][1]["namespace"] = "ImGui" +defs["igRenderNavHighlight"][1]["ov_cimguiname"] = "igRenderNavHighlight" +defs["igRenderNavHighlight"][1]["ret"] = "void" +defs["igRenderNavHighlight"][1]["signature"] = "(const ImRect,ImGuiID,ImGuiNavHighlightFlags)" +defs["igRenderNavHighlight"][1]["stname"] = "" +defs["igRenderNavHighlight"]["(const ImRect,ImGuiID,ImGuiNavHighlightFlags)"] = defs["igRenderNavHighlight"][1] defs["igRenderPlatformWindowsDefault"] = {} defs["igRenderPlatformWindowsDefault"][1] = {} defs["igRenderPlatformWindowsDefault"][1]["args"] = "(void* platform_render_arg,void* renderer_render_arg)" @@ -12539,6 +24777,250 @@ defs["igRenderPlatformWindowsDefault"][1]["ret"] = "void" defs["igRenderPlatformWindowsDefault"][1]["signature"] = "(void*,void*)" defs["igRenderPlatformWindowsDefault"][1]["stname"] = "" defs["igRenderPlatformWindowsDefault"]["(void*,void*)"] = defs["igRenderPlatformWindowsDefault"][1] +defs["igRenderRectFilledRangeH"] = {} +defs["igRenderRectFilledRangeH"][1] = {} +defs["igRenderRectFilledRangeH"][1]["args"] = "(ImDrawList* draw_list,const ImRect rect,ImU32 col,float x_start_norm,float x_end_norm,float rounding)" +defs["igRenderRectFilledRangeH"][1]["argsT"] = {} +defs["igRenderRectFilledRangeH"][1]["argsT"][1] = {} +defs["igRenderRectFilledRangeH"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderRectFilledRangeH"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderRectFilledRangeH"][1]["argsT"][2] = {} +defs["igRenderRectFilledRangeH"][1]["argsT"][2]["name"] = "rect" +defs["igRenderRectFilledRangeH"][1]["argsT"][2]["type"] = "const ImRect" +defs["igRenderRectFilledRangeH"][1]["argsT"][3] = {} +defs["igRenderRectFilledRangeH"][1]["argsT"][3]["name"] = "col" +defs["igRenderRectFilledRangeH"][1]["argsT"][3]["type"] = "ImU32" +defs["igRenderRectFilledRangeH"][1]["argsT"][4] = {} +defs["igRenderRectFilledRangeH"][1]["argsT"][4]["name"] = "x_start_norm" +defs["igRenderRectFilledRangeH"][1]["argsT"][4]["type"] = "float" +defs["igRenderRectFilledRangeH"][1]["argsT"][5] = {} +defs["igRenderRectFilledRangeH"][1]["argsT"][5]["name"] = "x_end_norm" +defs["igRenderRectFilledRangeH"][1]["argsT"][5]["type"] = "float" +defs["igRenderRectFilledRangeH"][1]["argsT"][6] = {} +defs["igRenderRectFilledRangeH"][1]["argsT"][6]["name"] = "rounding" +defs["igRenderRectFilledRangeH"][1]["argsT"][6]["type"] = "float" +defs["igRenderRectFilledRangeH"][1]["argsoriginal"] = "(ImDrawList* draw_list,const ImRect& rect,ImU32 col,float x_start_norm,float x_end_norm,float rounding)" +defs["igRenderRectFilledRangeH"][1]["call_args"] = "(draw_list,rect,col,x_start_norm,x_end_norm,rounding)" +defs["igRenderRectFilledRangeH"][1]["cimguiname"] = "igRenderRectFilledRangeH" +defs["igRenderRectFilledRangeH"][1]["defaults"] = {} +defs["igRenderRectFilledRangeH"][1]["funcname"] = "RenderRectFilledRangeH" +defs["igRenderRectFilledRangeH"][1]["location"] = "imgui_internal:3345" +defs["igRenderRectFilledRangeH"][1]["namespace"] = "ImGui" +defs["igRenderRectFilledRangeH"][1]["ov_cimguiname"] = "igRenderRectFilledRangeH" +defs["igRenderRectFilledRangeH"][1]["ret"] = "void" +defs["igRenderRectFilledRangeH"][1]["signature"] = "(ImDrawList*,const ImRect,ImU32,float,float,float)" +defs["igRenderRectFilledRangeH"][1]["stname"] = "" +defs["igRenderRectFilledRangeH"]["(ImDrawList*,const ImRect,ImU32,float,float,float)"] = defs["igRenderRectFilledRangeH"][1] +defs["igRenderRectFilledWithHole"] = {} +defs["igRenderRectFilledWithHole"][1] = {} +defs["igRenderRectFilledWithHole"][1]["args"] = "(ImDrawList* draw_list,const ImRect outer,const ImRect inner,ImU32 col,float rounding)" +defs["igRenderRectFilledWithHole"][1]["argsT"] = {} +defs["igRenderRectFilledWithHole"][1]["argsT"][1] = {} +defs["igRenderRectFilledWithHole"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderRectFilledWithHole"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderRectFilledWithHole"][1]["argsT"][2] = {} +defs["igRenderRectFilledWithHole"][1]["argsT"][2]["name"] = "outer" +defs["igRenderRectFilledWithHole"][1]["argsT"][2]["type"] = "const ImRect" +defs["igRenderRectFilledWithHole"][1]["argsT"][3] = {} +defs["igRenderRectFilledWithHole"][1]["argsT"][3]["name"] = "inner" +defs["igRenderRectFilledWithHole"][1]["argsT"][3]["type"] = "const ImRect" +defs["igRenderRectFilledWithHole"][1]["argsT"][4] = {} +defs["igRenderRectFilledWithHole"][1]["argsT"][4]["name"] = "col" +defs["igRenderRectFilledWithHole"][1]["argsT"][4]["type"] = "ImU32" +defs["igRenderRectFilledWithHole"][1]["argsT"][5] = {} +defs["igRenderRectFilledWithHole"][1]["argsT"][5]["name"] = "rounding" +defs["igRenderRectFilledWithHole"][1]["argsT"][5]["type"] = "float" +defs["igRenderRectFilledWithHole"][1]["argsoriginal"] = "(ImDrawList* draw_list,const ImRect& outer,const ImRect& inner,ImU32 col,float rounding)" +defs["igRenderRectFilledWithHole"][1]["call_args"] = "(draw_list,outer,inner,col,rounding)" +defs["igRenderRectFilledWithHole"][1]["cimguiname"] = "igRenderRectFilledWithHole" +defs["igRenderRectFilledWithHole"][1]["defaults"] = {} +defs["igRenderRectFilledWithHole"][1]["funcname"] = "RenderRectFilledWithHole" +defs["igRenderRectFilledWithHole"][1]["location"] = "imgui_internal:3346" +defs["igRenderRectFilledWithHole"][1]["namespace"] = "ImGui" +defs["igRenderRectFilledWithHole"][1]["ov_cimguiname"] = "igRenderRectFilledWithHole" +defs["igRenderRectFilledWithHole"][1]["ret"] = "void" +defs["igRenderRectFilledWithHole"][1]["signature"] = "(ImDrawList*,const ImRect,const ImRect,ImU32,float)" +defs["igRenderRectFilledWithHole"][1]["stname"] = "" +defs["igRenderRectFilledWithHole"]["(ImDrawList*,const ImRect,const ImRect,ImU32,float)"] = defs["igRenderRectFilledWithHole"][1] +defs["igRenderText"] = {} +defs["igRenderText"][1] = {} +defs["igRenderText"][1]["args"] = "(ImVec2 pos,const char* text,const char* text_end,bool hide_text_after_hash)" +defs["igRenderText"][1]["argsT"] = {} +defs["igRenderText"][1]["argsT"][1] = {} +defs["igRenderText"][1]["argsT"][1]["name"] = "pos" +defs["igRenderText"][1]["argsT"][1]["type"] = "ImVec2" +defs["igRenderText"][1]["argsT"][2] = {} +defs["igRenderText"][1]["argsT"][2]["name"] = "text" +defs["igRenderText"][1]["argsT"][2]["type"] = "const char*" +defs["igRenderText"][1]["argsT"][3] = {} +defs["igRenderText"][1]["argsT"][3]["name"] = "text_end" +defs["igRenderText"][1]["argsT"][3]["type"] = "const char*" +defs["igRenderText"][1]["argsT"][4] = {} +defs["igRenderText"][1]["argsT"][4]["name"] = "hide_text_after_hash" +defs["igRenderText"][1]["argsT"][4]["type"] = "bool" +defs["igRenderText"][1]["argsoriginal"] = "(ImVec2 pos,const char* text,const char* text_end=((void*)0),bool hide_text_after_hash=true)" +defs["igRenderText"][1]["call_args"] = "(pos,text,text_end,hide_text_after_hash)" +defs["igRenderText"][1]["cimguiname"] = "igRenderText" +defs["igRenderText"][1]["defaults"] = {} +defs["igRenderText"][1]["defaults"]["hide_text_after_hash"] = "true" +defs["igRenderText"][1]["defaults"]["text_end"] = "NULL" +defs["igRenderText"][1]["funcname"] = "RenderText" +defs["igRenderText"][1]["location"] = "imgui_internal:3327" +defs["igRenderText"][1]["namespace"] = "ImGui" +defs["igRenderText"][1]["ov_cimguiname"] = "igRenderText" +defs["igRenderText"][1]["ret"] = "void" +defs["igRenderText"][1]["signature"] = "(ImVec2,const char*,const char*,bool)" +defs["igRenderText"][1]["stname"] = "" +defs["igRenderText"]["(ImVec2,const char*,const char*,bool)"] = defs["igRenderText"][1] +defs["igRenderTextClipped"] = {} +defs["igRenderTextClipped"][1] = {} +defs["igRenderTextClipped"][1]["args"] = "(const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect)" +defs["igRenderTextClipped"][1]["argsT"] = {} +defs["igRenderTextClipped"][1]["argsT"][1] = {} +defs["igRenderTextClipped"][1]["argsT"][1]["name"] = "pos_min" +defs["igRenderTextClipped"][1]["argsT"][1]["type"] = "const ImVec2" +defs["igRenderTextClipped"][1]["argsT"][2] = {} +defs["igRenderTextClipped"][1]["argsT"][2]["name"] = "pos_max" +defs["igRenderTextClipped"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igRenderTextClipped"][1]["argsT"][3] = {} +defs["igRenderTextClipped"][1]["argsT"][3]["name"] = "text" +defs["igRenderTextClipped"][1]["argsT"][3]["type"] = "const char*" +defs["igRenderTextClipped"][1]["argsT"][4] = {} +defs["igRenderTextClipped"][1]["argsT"][4]["name"] = "text_end" +defs["igRenderTextClipped"][1]["argsT"][4]["type"] = "const char*" +defs["igRenderTextClipped"][1]["argsT"][5] = {} +defs["igRenderTextClipped"][1]["argsT"][5]["name"] = "text_size_if_known" +defs["igRenderTextClipped"][1]["argsT"][5]["type"] = "const ImVec2*" +defs["igRenderTextClipped"][1]["argsT"][6] = {} +defs["igRenderTextClipped"][1]["argsT"][6]["name"] = "align" +defs["igRenderTextClipped"][1]["argsT"][6]["type"] = "const ImVec2" +defs["igRenderTextClipped"][1]["argsT"][7] = {} +defs["igRenderTextClipped"][1]["argsT"][7]["name"] = "clip_rect" +defs["igRenderTextClipped"][1]["argsT"][7]["type"] = "const ImRect*" +defs["igRenderTextClipped"][1]["argsoriginal"] = "(const ImVec2& pos_min,const ImVec2& pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2& align=ImVec2(0,0),const ImRect* clip_rect=((void*)0))" +defs["igRenderTextClipped"][1]["call_args"] = "(pos_min,pos_max,text,text_end,text_size_if_known,align,clip_rect)" +defs["igRenderTextClipped"][1]["cimguiname"] = "igRenderTextClipped" +defs["igRenderTextClipped"][1]["defaults"] = {} +defs["igRenderTextClipped"][1]["defaults"]["align"] = "ImVec2(0,0)" +defs["igRenderTextClipped"][1]["defaults"]["clip_rect"] = "NULL" +defs["igRenderTextClipped"][1]["funcname"] = "RenderTextClipped" +defs["igRenderTextClipped"][1]["location"] = "imgui_internal:3329" +defs["igRenderTextClipped"][1]["namespace"] = "ImGui" +defs["igRenderTextClipped"][1]["ov_cimguiname"] = "igRenderTextClipped" +defs["igRenderTextClipped"][1]["ret"] = "void" +defs["igRenderTextClipped"][1]["signature"] = "(const ImVec2,const ImVec2,const char*,const char*,const ImVec2*,const ImVec2,const ImRect*)" +defs["igRenderTextClipped"][1]["stname"] = "" +defs["igRenderTextClipped"]["(const ImVec2,const ImVec2,const char*,const char*,const ImVec2*,const ImVec2,const ImRect*)"] = defs["igRenderTextClipped"][1] +defs["igRenderTextClippedEx"] = {} +defs["igRenderTextClippedEx"][1] = {} +defs["igRenderTextClippedEx"][1]["args"] = "(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect)" +defs["igRenderTextClippedEx"][1]["argsT"] = {} +defs["igRenderTextClippedEx"][1]["argsT"][1] = {} +defs["igRenderTextClippedEx"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderTextClippedEx"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderTextClippedEx"][1]["argsT"][2] = {} +defs["igRenderTextClippedEx"][1]["argsT"][2]["name"] = "pos_min" +defs["igRenderTextClippedEx"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igRenderTextClippedEx"][1]["argsT"][3] = {} +defs["igRenderTextClippedEx"][1]["argsT"][3]["name"] = "pos_max" +defs["igRenderTextClippedEx"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igRenderTextClippedEx"][1]["argsT"][4] = {} +defs["igRenderTextClippedEx"][1]["argsT"][4]["name"] = "text" +defs["igRenderTextClippedEx"][1]["argsT"][4]["type"] = "const char*" +defs["igRenderTextClippedEx"][1]["argsT"][5] = {} +defs["igRenderTextClippedEx"][1]["argsT"][5]["name"] = "text_end" +defs["igRenderTextClippedEx"][1]["argsT"][5]["type"] = "const char*" +defs["igRenderTextClippedEx"][1]["argsT"][6] = {} +defs["igRenderTextClippedEx"][1]["argsT"][6]["name"] = "text_size_if_known" +defs["igRenderTextClippedEx"][1]["argsT"][6]["type"] = "const ImVec2*" +defs["igRenderTextClippedEx"][1]["argsT"][7] = {} +defs["igRenderTextClippedEx"][1]["argsT"][7]["name"] = "align" +defs["igRenderTextClippedEx"][1]["argsT"][7]["type"] = "const ImVec2" +defs["igRenderTextClippedEx"][1]["argsT"][8] = {} +defs["igRenderTextClippedEx"][1]["argsT"][8]["name"] = "clip_rect" +defs["igRenderTextClippedEx"][1]["argsT"][8]["type"] = "const ImRect*" +defs["igRenderTextClippedEx"][1]["argsoriginal"] = "(ImDrawList* draw_list,const ImVec2& pos_min,const ImVec2& pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2& align=ImVec2(0,0),const ImRect* clip_rect=((void*)0))" +defs["igRenderTextClippedEx"][1]["call_args"] = "(draw_list,pos_min,pos_max,text,text_end,text_size_if_known,align,clip_rect)" +defs["igRenderTextClippedEx"][1]["cimguiname"] = "igRenderTextClippedEx" +defs["igRenderTextClippedEx"][1]["defaults"] = {} +defs["igRenderTextClippedEx"][1]["defaults"]["align"] = "ImVec2(0,0)" +defs["igRenderTextClippedEx"][1]["defaults"]["clip_rect"] = "NULL" +defs["igRenderTextClippedEx"][1]["funcname"] = "RenderTextClippedEx" +defs["igRenderTextClippedEx"][1]["location"] = "imgui_internal:3330" +defs["igRenderTextClippedEx"][1]["namespace"] = "ImGui" +defs["igRenderTextClippedEx"][1]["ov_cimguiname"] = "igRenderTextClippedEx" +defs["igRenderTextClippedEx"][1]["ret"] = "void" +defs["igRenderTextClippedEx"][1]["signature"] = "(ImDrawList*,const ImVec2,const ImVec2,const char*,const char*,const ImVec2*,const ImVec2,const ImRect*)" +defs["igRenderTextClippedEx"][1]["stname"] = "" +defs["igRenderTextClippedEx"]["(ImDrawList*,const ImVec2,const ImVec2,const char*,const char*,const ImVec2*,const ImVec2,const ImRect*)"] = defs["igRenderTextClippedEx"][1] +defs["igRenderTextEllipsis"] = {} +defs["igRenderTextEllipsis"][1] = {} +defs["igRenderTextEllipsis"][1]["args"] = "(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,float clip_max_x,float ellipsis_max_x,const char* text,const char* text_end,const ImVec2* text_size_if_known)" +defs["igRenderTextEllipsis"][1]["argsT"] = {} +defs["igRenderTextEllipsis"][1]["argsT"][1] = {} +defs["igRenderTextEllipsis"][1]["argsT"][1]["name"] = "draw_list" +defs["igRenderTextEllipsis"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igRenderTextEllipsis"][1]["argsT"][2] = {} +defs["igRenderTextEllipsis"][1]["argsT"][2]["name"] = "pos_min" +defs["igRenderTextEllipsis"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igRenderTextEllipsis"][1]["argsT"][3] = {} +defs["igRenderTextEllipsis"][1]["argsT"][3]["name"] = "pos_max" +defs["igRenderTextEllipsis"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igRenderTextEllipsis"][1]["argsT"][4] = {} +defs["igRenderTextEllipsis"][1]["argsT"][4]["name"] = "clip_max_x" +defs["igRenderTextEllipsis"][1]["argsT"][4]["type"] = "float" +defs["igRenderTextEllipsis"][1]["argsT"][5] = {} +defs["igRenderTextEllipsis"][1]["argsT"][5]["name"] = "ellipsis_max_x" +defs["igRenderTextEllipsis"][1]["argsT"][5]["type"] = "float" +defs["igRenderTextEllipsis"][1]["argsT"][6] = {} +defs["igRenderTextEllipsis"][1]["argsT"][6]["name"] = "text" +defs["igRenderTextEllipsis"][1]["argsT"][6]["type"] = "const char*" +defs["igRenderTextEllipsis"][1]["argsT"][7] = {} +defs["igRenderTextEllipsis"][1]["argsT"][7]["name"] = "text_end" +defs["igRenderTextEllipsis"][1]["argsT"][7]["type"] = "const char*" +defs["igRenderTextEllipsis"][1]["argsT"][8] = {} +defs["igRenderTextEllipsis"][1]["argsT"][8]["name"] = "text_size_if_known" +defs["igRenderTextEllipsis"][1]["argsT"][8]["type"] = "const ImVec2*" +defs["igRenderTextEllipsis"][1]["argsoriginal"] = "(ImDrawList* draw_list,const ImVec2& pos_min,const ImVec2& pos_max,float clip_max_x,float ellipsis_max_x,const char* text,const char* text_end,const ImVec2* text_size_if_known)" +defs["igRenderTextEllipsis"][1]["call_args"] = "(draw_list,pos_min,pos_max,clip_max_x,ellipsis_max_x,text,text_end,text_size_if_known)" +defs["igRenderTextEllipsis"][1]["cimguiname"] = "igRenderTextEllipsis" +defs["igRenderTextEllipsis"][1]["defaults"] = {} +defs["igRenderTextEllipsis"][1]["funcname"] = "RenderTextEllipsis" +defs["igRenderTextEllipsis"][1]["location"] = "imgui_internal:3331" +defs["igRenderTextEllipsis"][1]["namespace"] = "ImGui" +defs["igRenderTextEllipsis"][1]["ov_cimguiname"] = "igRenderTextEllipsis" +defs["igRenderTextEllipsis"][1]["ret"] = "void" +defs["igRenderTextEllipsis"][1]["signature"] = "(ImDrawList*,const ImVec2,const ImVec2,float,float,const char*,const char*,const ImVec2*)" +defs["igRenderTextEllipsis"][1]["stname"] = "" +defs["igRenderTextEllipsis"]["(ImDrawList*,const ImVec2,const ImVec2,float,float,const char*,const char*,const ImVec2*)"] = defs["igRenderTextEllipsis"][1] +defs["igRenderTextWrapped"] = {} +defs["igRenderTextWrapped"][1] = {} +defs["igRenderTextWrapped"][1]["args"] = "(ImVec2 pos,const char* text,const char* text_end,float wrap_width)" +defs["igRenderTextWrapped"][1]["argsT"] = {} +defs["igRenderTextWrapped"][1]["argsT"][1] = {} +defs["igRenderTextWrapped"][1]["argsT"][1]["name"] = "pos" +defs["igRenderTextWrapped"][1]["argsT"][1]["type"] = "ImVec2" +defs["igRenderTextWrapped"][1]["argsT"][2] = {} +defs["igRenderTextWrapped"][1]["argsT"][2]["name"] = "text" +defs["igRenderTextWrapped"][1]["argsT"][2]["type"] = "const char*" +defs["igRenderTextWrapped"][1]["argsT"][3] = {} +defs["igRenderTextWrapped"][1]["argsT"][3]["name"] = "text_end" +defs["igRenderTextWrapped"][1]["argsT"][3]["type"] = "const char*" +defs["igRenderTextWrapped"][1]["argsT"][4] = {} +defs["igRenderTextWrapped"][1]["argsT"][4]["name"] = "wrap_width" +defs["igRenderTextWrapped"][1]["argsT"][4]["type"] = "float" +defs["igRenderTextWrapped"][1]["argsoriginal"] = "(ImVec2 pos,const char* text,const char* text_end,float wrap_width)" +defs["igRenderTextWrapped"][1]["call_args"] = "(pos,text,text_end,wrap_width)" +defs["igRenderTextWrapped"][1]["cimguiname"] = "igRenderTextWrapped" +defs["igRenderTextWrapped"][1]["defaults"] = {} +defs["igRenderTextWrapped"][1]["funcname"] = "RenderTextWrapped" +defs["igRenderTextWrapped"][1]["location"] = "imgui_internal:3328" +defs["igRenderTextWrapped"][1]["namespace"] = "ImGui" +defs["igRenderTextWrapped"][1]["ov_cimguiname"] = "igRenderTextWrapped" +defs["igRenderTextWrapped"][1]["ret"] = "void" +defs["igRenderTextWrapped"][1]["signature"] = "(ImVec2,const char*,const char*,float)" +defs["igRenderTextWrapped"][1]["stname"] = "" +defs["igRenderTextWrapped"]["(ImVec2,const char*,const char*,float)"] = defs["igRenderTextWrapped"][1] defs["igResetMouseDragDelta"] = {} defs["igResetMouseDragDelta"][1] = {} defs["igResetMouseDragDelta"][1]["args"] = "(ImGuiMouseButton button)" @@ -12622,6 +25104,182 @@ defs["igSaveIniSettingsToMemory"][1]["ret"] = "const char*" defs["igSaveIniSettingsToMemory"][1]["signature"] = "(size_t*)" defs["igSaveIniSettingsToMemory"][1]["stname"] = "" defs["igSaveIniSettingsToMemory"]["(size_t*)"] = defs["igSaveIniSettingsToMemory"][1] +defs["igScaleWindowsInViewport"] = {} +defs["igScaleWindowsInViewport"][1] = {} +defs["igScaleWindowsInViewport"][1]["args"] = "(ImGuiViewportP* viewport,float scale)" +defs["igScaleWindowsInViewport"][1]["argsT"] = {} +defs["igScaleWindowsInViewport"][1]["argsT"][1] = {} +defs["igScaleWindowsInViewport"][1]["argsT"][1]["name"] = "viewport" +defs["igScaleWindowsInViewport"][1]["argsT"][1]["type"] = "ImGuiViewportP*" +defs["igScaleWindowsInViewport"][1]["argsT"][2] = {} +defs["igScaleWindowsInViewport"][1]["argsT"][2]["name"] = "scale" +defs["igScaleWindowsInViewport"][1]["argsT"][2]["type"] = "float" +defs["igScaleWindowsInViewport"][1]["argsoriginal"] = "(ImGuiViewportP* viewport,float scale)" +defs["igScaleWindowsInViewport"][1]["call_args"] = "(viewport,scale)" +defs["igScaleWindowsInViewport"][1]["cimguiname"] = "igScaleWindowsInViewport" +defs["igScaleWindowsInViewport"][1]["defaults"] = {} +defs["igScaleWindowsInViewport"][1]["funcname"] = "ScaleWindowsInViewport" +defs["igScaleWindowsInViewport"][1]["location"] = "imgui_internal:2983" +defs["igScaleWindowsInViewport"][1]["namespace"] = "ImGui" +defs["igScaleWindowsInViewport"][1]["ov_cimguiname"] = "igScaleWindowsInViewport" +defs["igScaleWindowsInViewport"][1]["ret"] = "void" +defs["igScaleWindowsInViewport"][1]["signature"] = "(ImGuiViewportP*,float)" +defs["igScaleWindowsInViewport"][1]["stname"] = "" +defs["igScaleWindowsInViewport"]["(ImGuiViewportP*,float)"] = defs["igScaleWindowsInViewport"][1] +defs["igScrollToBringRectIntoView"] = {} +defs["igScrollToBringRectIntoView"][1] = {} +defs["igScrollToBringRectIntoView"][1]["args"] = "(ImGuiWindow* window,const ImRect rect)" +defs["igScrollToBringRectIntoView"][1]["argsT"] = {} +defs["igScrollToBringRectIntoView"][1]["argsT"][1] = {} +defs["igScrollToBringRectIntoView"][1]["argsT"][1]["name"] = "window" +defs["igScrollToBringRectIntoView"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igScrollToBringRectIntoView"][1]["argsT"][2] = {} +defs["igScrollToBringRectIntoView"][1]["argsT"][2]["name"] = "rect" +defs["igScrollToBringRectIntoView"][1]["argsT"][2]["type"] = "const ImRect" +defs["igScrollToBringRectIntoView"][1]["argsoriginal"] = "(ImGuiWindow* window,const ImRect& rect)" +defs["igScrollToBringRectIntoView"][1]["call_args"] = "(window,rect)" +defs["igScrollToBringRectIntoView"][1]["cimguiname"] = "igScrollToBringRectIntoView" +defs["igScrollToBringRectIntoView"][1]["defaults"] = {} +defs["igScrollToBringRectIntoView"][1]["funcname"] = "ScrollToBringRectIntoView" +defs["igScrollToBringRectIntoView"][1]["location"] = "imgui_internal:3016" +defs["igScrollToBringRectIntoView"][1]["namespace"] = "ImGui" +defs["igScrollToBringRectIntoView"][1]["ov_cimguiname"] = "igScrollToBringRectIntoView" +defs["igScrollToBringRectIntoView"][1]["ret"] = "void" +defs["igScrollToBringRectIntoView"][1]["signature"] = "(ImGuiWindow*,const ImRect)" +defs["igScrollToBringRectIntoView"][1]["stname"] = "" +defs["igScrollToBringRectIntoView"]["(ImGuiWindow*,const ImRect)"] = defs["igScrollToBringRectIntoView"][1] +defs["igScrollToItem"] = {} +defs["igScrollToItem"][1] = {} +defs["igScrollToItem"][1]["args"] = "(ImGuiScrollFlags flags)" +defs["igScrollToItem"][1]["argsT"] = {} +defs["igScrollToItem"][1]["argsT"][1] = {} +defs["igScrollToItem"][1]["argsT"][1]["name"] = "flags" +defs["igScrollToItem"][1]["argsT"][1]["type"] = "ImGuiScrollFlags" +defs["igScrollToItem"][1]["argsoriginal"] = "(ImGuiScrollFlags flags=0)" +defs["igScrollToItem"][1]["call_args"] = "(flags)" +defs["igScrollToItem"][1]["cimguiname"] = "igScrollToItem" +defs["igScrollToItem"][1]["defaults"] = {} +defs["igScrollToItem"][1]["defaults"]["flags"] = "0" +defs["igScrollToItem"][1]["funcname"] = "ScrollToItem" +defs["igScrollToItem"][1]["location"] = "imgui_internal:3012" +defs["igScrollToItem"][1]["namespace"] = "ImGui" +defs["igScrollToItem"][1]["ov_cimguiname"] = "igScrollToItem" +defs["igScrollToItem"][1]["ret"] = "void" +defs["igScrollToItem"][1]["signature"] = "(ImGuiScrollFlags)" +defs["igScrollToItem"][1]["stname"] = "" +defs["igScrollToItem"]["(ImGuiScrollFlags)"] = defs["igScrollToItem"][1] +defs["igScrollToRect"] = {} +defs["igScrollToRect"][1] = {} +defs["igScrollToRect"][1]["args"] = "(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags)" +defs["igScrollToRect"][1]["argsT"] = {} +defs["igScrollToRect"][1]["argsT"][1] = {} +defs["igScrollToRect"][1]["argsT"][1]["name"] = "window" +defs["igScrollToRect"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igScrollToRect"][1]["argsT"][2] = {} +defs["igScrollToRect"][1]["argsT"][2]["name"] = "rect" +defs["igScrollToRect"][1]["argsT"][2]["type"] = "const ImRect" +defs["igScrollToRect"][1]["argsT"][3] = {} +defs["igScrollToRect"][1]["argsT"][3]["name"] = "flags" +defs["igScrollToRect"][1]["argsT"][3]["type"] = "ImGuiScrollFlags" +defs["igScrollToRect"][1]["argsoriginal"] = "(ImGuiWindow* window,const ImRect& rect,ImGuiScrollFlags flags=0)" +defs["igScrollToRect"][1]["call_args"] = "(window,rect,flags)" +defs["igScrollToRect"][1]["cimguiname"] = "igScrollToRect" +defs["igScrollToRect"][1]["defaults"] = {} +defs["igScrollToRect"][1]["defaults"]["flags"] = "0" +defs["igScrollToRect"][1]["funcname"] = "ScrollToRect" +defs["igScrollToRect"][1]["location"] = "imgui_internal:3013" +defs["igScrollToRect"][1]["namespace"] = "ImGui" +defs["igScrollToRect"][1]["ov_cimguiname"] = "igScrollToRect" +defs["igScrollToRect"][1]["ret"] = "void" +defs["igScrollToRect"][1]["signature"] = "(ImGuiWindow*,const ImRect,ImGuiScrollFlags)" +defs["igScrollToRect"][1]["stname"] = "" +defs["igScrollToRect"]["(ImGuiWindow*,const ImRect,ImGuiScrollFlags)"] = defs["igScrollToRect"][1] +defs["igScrollToRectEx"] = {} +defs["igScrollToRectEx"][1] = {} +defs["igScrollToRectEx"][1]["args"] = "(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags)" +defs["igScrollToRectEx"][1]["argsT"] = {} +defs["igScrollToRectEx"][1]["argsT"][1] = {} +defs["igScrollToRectEx"][1]["argsT"][1]["name"] = "pOut" +defs["igScrollToRectEx"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igScrollToRectEx"][1]["argsT"][2] = {} +defs["igScrollToRectEx"][1]["argsT"][2]["name"] = "window" +defs["igScrollToRectEx"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igScrollToRectEx"][1]["argsT"][3] = {} +defs["igScrollToRectEx"][1]["argsT"][3]["name"] = "rect" +defs["igScrollToRectEx"][1]["argsT"][3]["type"] = "const ImRect" +defs["igScrollToRectEx"][1]["argsT"][4] = {} +defs["igScrollToRectEx"][1]["argsT"][4]["name"] = "flags" +defs["igScrollToRectEx"][1]["argsT"][4]["type"] = "ImGuiScrollFlags" +defs["igScrollToRectEx"][1]["argsoriginal"] = "(ImGuiWindow* window,const ImRect& rect,ImGuiScrollFlags flags=0)" +defs["igScrollToRectEx"][1]["call_args"] = "(window,rect,flags)" +defs["igScrollToRectEx"][1]["cimguiname"] = "igScrollToRectEx" +defs["igScrollToRectEx"][1]["defaults"] = {} +defs["igScrollToRectEx"][1]["defaults"]["flags"] = "0" +defs["igScrollToRectEx"][1]["funcname"] = "ScrollToRectEx" +defs["igScrollToRectEx"][1]["location"] = "imgui_internal:3014" +defs["igScrollToRectEx"][1]["namespace"] = "ImGui" +defs["igScrollToRectEx"][1]["nonUDT"] = 1 +defs["igScrollToRectEx"][1]["ov_cimguiname"] = "igScrollToRectEx" +defs["igScrollToRectEx"][1]["ret"] = "void" +defs["igScrollToRectEx"][1]["signature"] = "(ImGuiWindow*,const ImRect,ImGuiScrollFlags)" +defs["igScrollToRectEx"][1]["stname"] = "" +defs["igScrollToRectEx"]["(ImGuiWindow*,const ImRect,ImGuiScrollFlags)"] = defs["igScrollToRectEx"][1] +defs["igScrollbar"] = {} +defs["igScrollbar"][1] = {} +defs["igScrollbar"][1]["args"] = "(ImGuiAxis axis)" +defs["igScrollbar"][1]["argsT"] = {} +defs["igScrollbar"][1]["argsT"][1] = {} +defs["igScrollbar"][1]["argsT"][1]["name"] = "axis" +defs["igScrollbar"][1]["argsT"][1]["type"] = "ImGuiAxis" +defs["igScrollbar"][1]["argsoriginal"] = "(ImGuiAxis axis)" +defs["igScrollbar"][1]["call_args"] = "(axis)" +defs["igScrollbar"][1]["cimguiname"] = "igScrollbar" +defs["igScrollbar"][1]["defaults"] = {} +defs["igScrollbar"][1]["funcname"] = "Scrollbar" +defs["igScrollbar"][1]["location"] = "imgui_internal:3355" +defs["igScrollbar"][1]["namespace"] = "ImGui" +defs["igScrollbar"][1]["ov_cimguiname"] = "igScrollbar" +defs["igScrollbar"][1]["ret"] = "void" +defs["igScrollbar"][1]["signature"] = "(ImGuiAxis)" +defs["igScrollbar"][1]["stname"] = "" +defs["igScrollbar"]["(ImGuiAxis)"] = defs["igScrollbar"][1] +defs["igScrollbarEx"] = {} +defs["igScrollbarEx"][1] = {} +defs["igScrollbarEx"][1]["args"] = "(const ImRect bb,ImGuiID id,ImGuiAxis axis,ImS64* p_scroll_v,ImS64 avail_v,ImS64 contents_v,ImDrawFlags flags)" +defs["igScrollbarEx"][1]["argsT"] = {} +defs["igScrollbarEx"][1]["argsT"][1] = {} +defs["igScrollbarEx"][1]["argsT"][1]["name"] = "bb" +defs["igScrollbarEx"][1]["argsT"][1]["type"] = "const ImRect" +defs["igScrollbarEx"][1]["argsT"][2] = {} +defs["igScrollbarEx"][1]["argsT"][2]["name"] = "id" +defs["igScrollbarEx"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igScrollbarEx"][1]["argsT"][3] = {} +defs["igScrollbarEx"][1]["argsT"][3]["name"] = "axis" +defs["igScrollbarEx"][1]["argsT"][3]["type"] = "ImGuiAxis" +defs["igScrollbarEx"][1]["argsT"][4] = {} +defs["igScrollbarEx"][1]["argsT"][4]["name"] = "p_scroll_v" +defs["igScrollbarEx"][1]["argsT"][4]["type"] = "ImS64*" +defs["igScrollbarEx"][1]["argsT"][5] = {} +defs["igScrollbarEx"][1]["argsT"][5]["name"] = "avail_v" +defs["igScrollbarEx"][1]["argsT"][5]["type"] = "ImS64" +defs["igScrollbarEx"][1]["argsT"][6] = {} +defs["igScrollbarEx"][1]["argsT"][6]["name"] = "contents_v" +defs["igScrollbarEx"][1]["argsT"][6]["type"] = "ImS64" +defs["igScrollbarEx"][1]["argsT"][7] = {} +defs["igScrollbarEx"][1]["argsT"][7]["name"] = "flags" +defs["igScrollbarEx"][1]["argsT"][7]["type"] = "ImDrawFlags" +defs["igScrollbarEx"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id,ImGuiAxis axis,ImS64* p_scroll_v,ImS64 avail_v,ImS64 contents_v,ImDrawFlags flags)" +defs["igScrollbarEx"][1]["call_args"] = "(bb,id,axis,p_scroll_v,avail_v,contents_v,flags)" +defs["igScrollbarEx"][1]["cimguiname"] = "igScrollbarEx" +defs["igScrollbarEx"][1]["defaults"] = {} +defs["igScrollbarEx"][1]["funcname"] = "ScrollbarEx" +defs["igScrollbarEx"][1]["location"] = "imgui_internal:3356" +defs["igScrollbarEx"][1]["namespace"] = "ImGui" +defs["igScrollbarEx"][1]["ov_cimguiname"] = "igScrollbarEx" +defs["igScrollbarEx"][1]["ret"] = "bool" +defs["igScrollbarEx"][1]["signature"] = "(const ImRect,ImGuiID,ImGuiAxis,ImS64*,ImS64,ImS64,ImDrawFlags)" +defs["igScrollbarEx"][1]["stname"] = "" +defs["igScrollbarEx"]["(const ImRect,ImGuiID,ImGuiAxis,ImS64*,ImS64,ImS64,ImDrawFlags)"] = defs["igScrollbarEx"][1] defs["igSelectable"] = {} defs["igSelectable"][1] = {} defs["igSelectable"][1]["args"] = "(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size)" @@ -12698,6 +25356,63 @@ defs["igSeparator"][1]["ret"] = "void" defs["igSeparator"][1]["signature"] = "()" defs["igSeparator"][1]["stname"] = "" defs["igSeparator"]["()"] = defs["igSeparator"][1] +defs["igSeparatorEx"] = {} +defs["igSeparatorEx"][1] = {} +defs["igSeparatorEx"][1]["args"] = "(ImGuiSeparatorFlags flags)" +defs["igSeparatorEx"][1]["argsT"] = {} +defs["igSeparatorEx"][1]["argsT"][1] = {} +defs["igSeparatorEx"][1]["argsT"][1]["name"] = "flags" +defs["igSeparatorEx"][1]["argsT"][1]["type"] = "ImGuiSeparatorFlags" +defs["igSeparatorEx"][1]["argsoriginal"] = "(ImGuiSeparatorFlags flags)" +defs["igSeparatorEx"][1]["call_args"] = "(flags)" +defs["igSeparatorEx"][1]["cimguiname"] = "igSeparatorEx" +defs["igSeparatorEx"][1]["defaults"] = {} +defs["igSeparatorEx"][1]["funcname"] = "SeparatorEx" +defs["igSeparatorEx"][1]["location"] = "imgui_internal:3362" +defs["igSeparatorEx"][1]["namespace"] = "ImGui" +defs["igSeparatorEx"][1]["ov_cimguiname"] = "igSeparatorEx" +defs["igSeparatorEx"][1]["ret"] = "void" +defs["igSeparatorEx"][1]["signature"] = "(ImGuiSeparatorFlags)" +defs["igSeparatorEx"][1]["stname"] = "" +defs["igSeparatorEx"]["(ImGuiSeparatorFlags)"] = defs["igSeparatorEx"][1] +defs["igSetActiveID"] = {} +defs["igSetActiveID"][1] = {} +defs["igSetActiveID"][1]["args"] = "(ImGuiID id,ImGuiWindow* window)" +defs["igSetActiveID"][1]["argsT"] = {} +defs["igSetActiveID"][1]["argsT"][1] = {} +defs["igSetActiveID"][1]["argsT"][1]["name"] = "id" +defs["igSetActiveID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igSetActiveID"][1]["argsT"][2] = {} +defs["igSetActiveID"][1]["argsT"][2]["name"] = "window" +defs["igSetActiveID"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igSetActiveID"][1]["argsoriginal"] = "(ImGuiID id,ImGuiWindow* window)" +defs["igSetActiveID"][1]["call_args"] = "(id,window)" +defs["igSetActiveID"][1]["cimguiname"] = "igSetActiveID" +defs["igSetActiveID"][1]["defaults"] = {} +defs["igSetActiveID"][1]["funcname"] = "SetActiveID" +defs["igSetActiveID"][1]["location"] = "imgui_internal:3025" +defs["igSetActiveID"][1]["namespace"] = "ImGui" +defs["igSetActiveID"][1]["ov_cimguiname"] = "igSetActiveID" +defs["igSetActiveID"][1]["ret"] = "void" +defs["igSetActiveID"][1]["signature"] = "(ImGuiID,ImGuiWindow*)" +defs["igSetActiveID"][1]["stname"] = "" +defs["igSetActiveID"]["(ImGuiID,ImGuiWindow*)"] = defs["igSetActiveID"][1] +defs["igSetActiveIdUsingAllKeyboardKeys"] = {} +defs["igSetActiveIdUsingAllKeyboardKeys"][1] = {} +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["args"] = "()" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["argsT"] = {} +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["argsoriginal"] = "()" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["call_args"] = "()" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["cimguiname"] = "igSetActiveIdUsingAllKeyboardKeys" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["defaults"] = {} +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["funcname"] = "SetActiveIdUsingAllKeyboardKeys" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["location"] = "imgui_internal:3124" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["namespace"] = "ImGui" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["ov_cimguiname"] = "igSetActiveIdUsingAllKeyboardKeys" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["ret"] = "void" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["signature"] = "()" +defs["igSetActiveIdUsingAllKeyboardKeys"][1]["stname"] = "" +defs["igSetActiveIdUsingAllKeyboardKeys"]["()"] = defs["igSetActiveIdUsingAllKeyboardKeys"][1] defs["igSetAllocatorFunctions"] = {} defs["igSetAllocatorFunctions"][1] = {} defs["igSetAllocatorFunctions"][1]["args"] = "(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)" @@ -12825,6 +25540,47 @@ defs["igSetCurrentContext"][1]["ret"] = "void" defs["igSetCurrentContext"][1]["signature"] = "(ImGuiContext*)" defs["igSetCurrentContext"][1]["stname"] = "" defs["igSetCurrentContext"]["(ImGuiContext*)"] = defs["igSetCurrentContext"][1] +defs["igSetCurrentFont"] = {} +defs["igSetCurrentFont"][1] = {} +defs["igSetCurrentFont"][1]["args"] = "(ImFont* font)" +defs["igSetCurrentFont"][1]["argsT"] = {} +defs["igSetCurrentFont"][1]["argsT"][1] = {} +defs["igSetCurrentFont"][1]["argsT"][1]["name"] = "font" +defs["igSetCurrentFont"][1]["argsT"][1]["type"] = "ImFont*" +defs["igSetCurrentFont"][1]["argsoriginal"] = "(ImFont* font)" +defs["igSetCurrentFont"][1]["call_args"] = "(font)" +defs["igSetCurrentFont"][1]["cimguiname"] = "igSetCurrentFont" +defs["igSetCurrentFont"][1]["defaults"] = {} +defs["igSetCurrentFont"][1]["funcname"] = "SetCurrentFont" +defs["igSetCurrentFont"][1]["location"] = "imgui_internal:2960" +defs["igSetCurrentFont"][1]["namespace"] = "ImGui" +defs["igSetCurrentFont"][1]["ov_cimguiname"] = "igSetCurrentFont" +defs["igSetCurrentFont"][1]["ret"] = "void" +defs["igSetCurrentFont"][1]["signature"] = "(ImFont*)" +defs["igSetCurrentFont"][1]["stname"] = "" +defs["igSetCurrentFont"]["(ImFont*)"] = defs["igSetCurrentFont"][1] +defs["igSetCurrentViewport"] = {} +defs["igSetCurrentViewport"][1] = {} +defs["igSetCurrentViewport"][1]["args"] = "(ImGuiWindow* window,ImGuiViewportP* viewport)" +defs["igSetCurrentViewport"][1]["argsT"] = {} +defs["igSetCurrentViewport"][1]["argsT"][1] = {} +defs["igSetCurrentViewport"][1]["argsT"][1]["name"] = "window" +defs["igSetCurrentViewport"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetCurrentViewport"][1]["argsT"][2] = {} +defs["igSetCurrentViewport"][1]["argsT"][2]["name"] = "viewport" +defs["igSetCurrentViewport"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["igSetCurrentViewport"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiViewportP* viewport)" +defs["igSetCurrentViewport"][1]["call_args"] = "(window,viewport)" +defs["igSetCurrentViewport"][1]["cimguiname"] = "igSetCurrentViewport" +defs["igSetCurrentViewport"][1]["defaults"] = {} +defs["igSetCurrentViewport"][1]["funcname"] = "SetCurrentViewport" +defs["igSetCurrentViewport"][1]["location"] = "imgui_internal:2986" +defs["igSetCurrentViewport"][1]["namespace"] = "ImGui" +defs["igSetCurrentViewport"][1]["ov_cimguiname"] = "igSetCurrentViewport" +defs["igSetCurrentViewport"][1]["ret"] = "void" +defs["igSetCurrentViewport"][1]["signature"] = "(ImGuiWindow*,ImGuiViewportP*)" +defs["igSetCurrentViewport"][1]["stname"] = "" +defs["igSetCurrentViewport"]["(ImGuiWindow*,ImGuiViewportP*)"] = defs["igSetCurrentViewport"][1] defs["igSetCursorPos"] = {} defs["igSetCursorPos"][1] = {} defs["igSetCursorPos"][1]["args"] = "(const ImVec2 local_pos)" @@ -12930,6 +25686,47 @@ defs["igSetDragDropPayload"][1]["ret"] = "bool" defs["igSetDragDropPayload"][1]["signature"] = "(const char*,const void*,size_t,ImGuiCond)" defs["igSetDragDropPayload"][1]["stname"] = "" defs["igSetDragDropPayload"]["(const char*,const void*,size_t,ImGuiCond)"] = defs["igSetDragDropPayload"][1] +defs["igSetFocusID"] = {} +defs["igSetFocusID"][1] = {} +defs["igSetFocusID"][1]["args"] = "(ImGuiID id,ImGuiWindow* window)" +defs["igSetFocusID"][1]["argsT"] = {} +defs["igSetFocusID"][1]["argsT"][1] = {} +defs["igSetFocusID"][1]["argsT"][1]["name"] = "id" +defs["igSetFocusID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igSetFocusID"][1]["argsT"][2] = {} +defs["igSetFocusID"][1]["argsT"][2]["name"] = "window" +defs["igSetFocusID"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igSetFocusID"][1]["argsoriginal"] = "(ImGuiID id,ImGuiWindow* window)" +defs["igSetFocusID"][1]["call_args"] = "(id,window)" +defs["igSetFocusID"][1]["cimguiname"] = "igSetFocusID" +defs["igSetFocusID"][1]["defaults"] = {} +defs["igSetFocusID"][1]["funcname"] = "SetFocusID" +defs["igSetFocusID"][1]["location"] = "imgui_internal:3026" +defs["igSetFocusID"][1]["namespace"] = "ImGui" +defs["igSetFocusID"][1]["ov_cimguiname"] = "igSetFocusID" +defs["igSetFocusID"][1]["ret"] = "void" +defs["igSetFocusID"][1]["signature"] = "(ImGuiID,ImGuiWindow*)" +defs["igSetFocusID"][1]["stname"] = "" +defs["igSetFocusID"]["(ImGuiID,ImGuiWindow*)"] = defs["igSetFocusID"][1] +defs["igSetHoveredID"] = {} +defs["igSetHoveredID"][1] = {} +defs["igSetHoveredID"][1]["args"] = "(ImGuiID id)" +defs["igSetHoveredID"][1]["argsT"] = {} +defs["igSetHoveredID"][1]["argsT"][1] = {} +defs["igSetHoveredID"][1]["argsT"][1]["name"] = "id" +defs["igSetHoveredID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igSetHoveredID"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igSetHoveredID"][1]["call_args"] = "(id)" +defs["igSetHoveredID"][1]["cimguiname"] = "igSetHoveredID" +defs["igSetHoveredID"][1]["defaults"] = {} +defs["igSetHoveredID"][1]["funcname"] = "SetHoveredID" +defs["igSetHoveredID"][1]["location"] = "imgui_internal:3029" +defs["igSetHoveredID"][1]["namespace"] = "ImGui" +defs["igSetHoveredID"][1]["ov_cimguiname"] = "igSetHoveredID" +defs["igSetHoveredID"][1]["ret"] = "void" +defs["igSetHoveredID"][1]["signature"] = "(ImGuiID)" +defs["igSetHoveredID"][1]["stname"] = "" +defs["igSetHoveredID"]["(ImGuiID)"] = defs["igSetHoveredID"][1] defs["igSetItemAllowOverlap"] = {} defs["igSetItemAllowOverlap"][1] = {} defs["igSetItemAllowOverlap"][1]["args"] = "()" @@ -12962,6 +25759,55 @@ defs["igSetItemDefaultFocus"][1]["ret"] = "void" defs["igSetItemDefaultFocus"][1]["signature"] = "()" defs["igSetItemDefaultFocus"][1]["stname"] = "" defs["igSetItemDefaultFocus"]["()"] = defs["igSetItemDefaultFocus"][1] +defs["igSetItemKeyOwner"] = {} +defs["igSetItemKeyOwner"][1] = {} +defs["igSetItemKeyOwner"][1]["args"] = "(ImGuiKey key,ImGuiInputFlags flags)" +defs["igSetItemKeyOwner"][1]["argsT"] = {} +defs["igSetItemKeyOwner"][1]["argsT"][1] = {} +defs["igSetItemKeyOwner"][1]["argsT"][1]["name"] = "key" +defs["igSetItemKeyOwner"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igSetItemKeyOwner"][1]["argsT"][2] = {} +defs["igSetItemKeyOwner"][1]["argsT"][2]["name"] = "flags" +defs["igSetItemKeyOwner"][1]["argsT"][2]["type"] = "ImGuiInputFlags" +defs["igSetItemKeyOwner"][1]["argsoriginal"] = "(ImGuiKey key,ImGuiInputFlags flags=0)" +defs["igSetItemKeyOwner"][1]["call_args"] = "(key,flags)" +defs["igSetItemKeyOwner"][1]["cimguiname"] = "igSetItemKeyOwner" +defs["igSetItemKeyOwner"][1]["defaults"] = {} +defs["igSetItemKeyOwner"][1]["defaults"]["flags"] = "0" +defs["igSetItemKeyOwner"][1]["funcname"] = "SetItemKeyOwner" +defs["igSetItemKeyOwner"][1]["location"] = "imgui_internal:3140" +defs["igSetItemKeyOwner"][1]["namespace"] = "ImGui" +defs["igSetItemKeyOwner"][1]["ov_cimguiname"] = "igSetItemKeyOwner" +defs["igSetItemKeyOwner"][1]["ret"] = "void" +defs["igSetItemKeyOwner"][1]["signature"] = "(ImGuiKey,ImGuiInputFlags)" +defs["igSetItemKeyOwner"][1]["stname"] = "" +defs["igSetItemKeyOwner"]["(ImGuiKey,ImGuiInputFlags)"] = defs["igSetItemKeyOwner"][1] +defs["igSetKeyOwner"] = {} +defs["igSetKeyOwner"][1] = {} +defs["igSetKeyOwner"][1]["args"] = "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igSetKeyOwner"][1]["argsT"] = {} +defs["igSetKeyOwner"][1]["argsT"][1] = {} +defs["igSetKeyOwner"][1]["argsT"][1]["name"] = "key" +defs["igSetKeyOwner"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igSetKeyOwner"][1]["argsT"][2] = {} +defs["igSetKeyOwner"][1]["argsT"][2]["name"] = "owner_id" +defs["igSetKeyOwner"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igSetKeyOwner"][1]["argsT"][3] = {} +defs["igSetKeyOwner"][1]["argsT"][3]["name"] = "flags" +defs["igSetKeyOwner"][1]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igSetKeyOwner"][1]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags=0)" +defs["igSetKeyOwner"][1]["call_args"] = "(key,owner_id,flags)" +defs["igSetKeyOwner"][1]["cimguiname"] = "igSetKeyOwner" +defs["igSetKeyOwner"][1]["defaults"] = {} +defs["igSetKeyOwner"][1]["defaults"]["flags"] = "0" +defs["igSetKeyOwner"][1]["funcname"] = "SetKeyOwner" +defs["igSetKeyOwner"][1]["location"] = "imgui_internal:3139" +defs["igSetKeyOwner"][1]["namespace"] = "ImGui" +defs["igSetKeyOwner"][1]["ov_cimguiname"] = "igSetKeyOwner" +defs["igSetKeyOwner"][1]["ret"] = "void" +defs["igSetKeyOwner"][1]["signature"] = "(ImGuiKey,ImGuiID,ImGuiInputFlags)" +defs["igSetKeyOwner"][1]["stname"] = "" +defs["igSetKeyOwner"]["(ImGuiKey,ImGuiID,ImGuiInputFlags)"] = defs["igSetKeyOwner"][1] defs["igSetKeyboardFocusHere"] = {} defs["igSetKeyboardFocusHere"][1] = {} defs["igSetKeyboardFocusHere"][1]["args"] = "(int offset)" @@ -12982,6 +25828,34 @@ defs["igSetKeyboardFocusHere"][1]["ret"] = "void" defs["igSetKeyboardFocusHere"][1]["signature"] = "(int)" defs["igSetKeyboardFocusHere"][1]["stname"] = "" defs["igSetKeyboardFocusHere"]["(int)"] = defs["igSetKeyboardFocusHere"][1] +defs["igSetLastItemData"] = {} +defs["igSetLastItemData"][1] = {} +defs["igSetLastItemData"][1]["args"] = "(ImGuiID item_id,ImGuiItemFlags in_flags,ImGuiItemStatusFlags status_flags,const ImRect item_rect)" +defs["igSetLastItemData"][1]["argsT"] = {} +defs["igSetLastItemData"][1]["argsT"][1] = {} +defs["igSetLastItemData"][1]["argsT"][1]["name"] = "item_id" +defs["igSetLastItemData"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igSetLastItemData"][1]["argsT"][2] = {} +defs["igSetLastItemData"][1]["argsT"][2]["name"] = "in_flags" +defs["igSetLastItemData"][1]["argsT"][2]["type"] = "ImGuiItemFlags" +defs["igSetLastItemData"][1]["argsT"][3] = {} +defs["igSetLastItemData"][1]["argsT"][3]["name"] = "status_flags" +defs["igSetLastItemData"][1]["argsT"][3]["type"] = "ImGuiItemStatusFlags" +defs["igSetLastItemData"][1]["argsT"][4] = {} +defs["igSetLastItemData"][1]["argsT"][4]["name"] = "item_rect" +defs["igSetLastItemData"][1]["argsT"][4]["type"] = "const ImRect" +defs["igSetLastItemData"][1]["argsoriginal"] = "(ImGuiID item_id,ImGuiItemFlags in_flags,ImGuiItemStatusFlags status_flags,const ImRect& item_rect)" +defs["igSetLastItemData"][1]["call_args"] = "(item_id,in_flags,status_flags,item_rect)" +defs["igSetLastItemData"][1]["cimguiname"] = "igSetLastItemData" +defs["igSetLastItemData"][1]["defaults"] = {} +defs["igSetLastItemData"][1]["funcname"] = "SetLastItemData" +defs["igSetLastItemData"][1]["location"] = "imgui_internal:3041" +defs["igSetLastItemData"][1]["namespace"] = "ImGui" +defs["igSetLastItemData"][1]["ov_cimguiname"] = "igSetLastItemData" +defs["igSetLastItemData"][1]["ret"] = "void" +defs["igSetLastItemData"][1]["signature"] = "(ImGuiID,ImGuiItemFlags,ImGuiItemStatusFlags,const ImRect)" +defs["igSetLastItemData"][1]["stname"] = "" +defs["igSetLastItemData"]["(ImGuiID,ImGuiItemFlags,ImGuiItemStatusFlags,const ImRect)"] = defs["igSetLastItemData"][1] defs["igSetMouseCursor"] = {} defs["igSetMouseCursor"][1] = {} defs["igSetMouseCursor"][1]["args"] = "(ImGuiMouseCursor cursor_type)" @@ -13001,6 +25875,53 @@ defs["igSetMouseCursor"][1]["ret"] = "void" defs["igSetMouseCursor"][1]["signature"] = "(ImGuiMouseCursor)" defs["igSetMouseCursor"][1]["stname"] = "" defs["igSetMouseCursor"]["(ImGuiMouseCursor)"] = defs["igSetMouseCursor"][1] +defs["igSetNavID"] = {} +defs["igSetNavID"][1] = {} +defs["igSetNavID"][1]["args"] = "(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel)" +defs["igSetNavID"][1]["argsT"] = {} +defs["igSetNavID"][1]["argsT"][1] = {} +defs["igSetNavID"][1]["argsT"][1]["name"] = "id" +defs["igSetNavID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igSetNavID"][1]["argsT"][2] = {} +defs["igSetNavID"][1]["argsT"][2]["name"] = "nav_layer" +defs["igSetNavID"][1]["argsT"][2]["type"] = "ImGuiNavLayer" +defs["igSetNavID"][1]["argsT"][3] = {} +defs["igSetNavID"][1]["argsT"][3]["name"] = "focus_scope_id" +defs["igSetNavID"][1]["argsT"][3]["type"] = "ImGuiID" +defs["igSetNavID"][1]["argsT"][4] = {} +defs["igSetNavID"][1]["argsT"][4]["name"] = "rect_rel" +defs["igSetNavID"][1]["argsT"][4]["type"] = "const ImRect" +defs["igSetNavID"][1]["argsoriginal"] = "(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect& rect_rel)" +defs["igSetNavID"][1]["call_args"] = "(id,nav_layer,focus_scope_id,rect_rel)" +defs["igSetNavID"][1]["cimguiname"] = "igSetNavID" +defs["igSetNavID"][1]["defaults"] = {} +defs["igSetNavID"][1]["funcname"] = "SetNavID" +defs["igSetNavID"][1]["location"] = "imgui_internal:3096" +defs["igSetNavID"][1]["namespace"] = "ImGui" +defs["igSetNavID"][1]["ov_cimguiname"] = "igSetNavID" +defs["igSetNavID"][1]["ret"] = "void" +defs["igSetNavID"][1]["signature"] = "(ImGuiID,ImGuiNavLayer,ImGuiID,const ImRect)" +defs["igSetNavID"][1]["stname"] = "" +defs["igSetNavID"]["(ImGuiID,ImGuiNavLayer,ImGuiID,const ImRect)"] = defs["igSetNavID"][1] +defs["igSetNavWindow"] = {} +defs["igSetNavWindow"][1] = {} +defs["igSetNavWindow"][1]["args"] = "(ImGuiWindow* window)" +defs["igSetNavWindow"][1]["argsT"] = {} +defs["igSetNavWindow"][1]["argsT"][1] = {} +defs["igSetNavWindow"][1]["argsT"][1]["name"] = "window" +defs["igSetNavWindow"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetNavWindow"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igSetNavWindow"][1]["call_args"] = "(window)" +defs["igSetNavWindow"][1]["cimguiname"] = "igSetNavWindow" +defs["igSetNavWindow"][1]["defaults"] = {} +defs["igSetNavWindow"][1]["funcname"] = "SetNavWindow" +defs["igSetNavWindow"][1]["location"] = "imgui_internal:3095" +defs["igSetNavWindow"][1]["namespace"] = "ImGui" +defs["igSetNavWindow"][1]["ov_cimguiname"] = "igSetNavWindow" +defs["igSetNavWindow"][1]["ret"] = "void" +defs["igSetNavWindow"][1]["signature"] = "(ImGuiWindow*)" +defs["igSetNavWindow"][1]["stname"] = "" +defs["igSetNavWindow"]["(ImGuiWindow*)"] = defs["igSetNavWindow"][1] defs["igSetNextFrameWantCaptureKeyboard"] = {} defs["igSetNextFrameWantCaptureKeyboard"][1] = {} defs["igSetNextFrameWantCaptureKeyboard"][1]["args"] = "(bool want_capture_keyboard)" @@ -13336,10 +26257,34 @@ defs["igSetScrollFromPosX"][1]["defaults"]["center_x_ratio"] = "0.5f" defs["igSetScrollFromPosX"][1]["funcname"] = "SetScrollFromPosX" defs["igSetScrollFromPosX"][1]["location"] = "imgui:405" defs["igSetScrollFromPosX"][1]["namespace"] = "ImGui" -defs["igSetScrollFromPosX"][1]["ov_cimguiname"] = "igSetScrollFromPosX" +defs["igSetScrollFromPosX"][1]["ov_cimguiname"] = "igSetScrollFromPosX_Float" defs["igSetScrollFromPosX"][1]["ret"] = "void" defs["igSetScrollFromPosX"][1]["signature"] = "(float,float)" defs["igSetScrollFromPosX"][1]["stname"] = "" +defs["igSetScrollFromPosX"][2] = {} +defs["igSetScrollFromPosX"][2]["args"] = "(ImGuiWindow* window,float local_x,float center_x_ratio)" +defs["igSetScrollFromPosX"][2]["argsT"] = {} +defs["igSetScrollFromPosX"][2]["argsT"][1] = {} +defs["igSetScrollFromPosX"][2]["argsT"][1]["name"] = "window" +defs["igSetScrollFromPosX"][2]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetScrollFromPosX"][2]["argsT"][2] = {} +defs["igSetScrollFromPosX"][2]["argsT"][2]["name"] = "local_x" +defs["igSetScrollFromPosX"][2]["argsT"][2]["type"] = "float" +defs["igSetScrollFromPosX"][2]["argsT"][3] = {} +defs["igSetScrollFromPosX"][2]["argsT"][3]["name"] = "center_x_ratio" +defs["igSetScrollFromPosX"][2]["argsT"][3]["type"] = "float" +defs["igSetScrollFromPosX"][2]["argsoriginal"] = "(ImGuiWindow* window,float local_x,float center_x_ratio)" +defs["igSetScrollFromPosX"][2]["call_args"] = "(window,local_x,center_x_ratio)" +defs["igSetScrollFromPosX"][2]["cimguiname"] = "igSetScrollFromPosX" +defs["igSetScrollFromPosX"][2]["defaults"] = {} +defs["igSetScrollFromPosX"][2]["funcname"] = "SetScrollFromPosX" +defs["igSetScrollFromPosX"][2]["location"] = "imgui_internal:3008" +defs["igSetScrollFromPosX"][2]["namespace"] = "ImGui" +defs["igSetScrollFromPosX"][2]["ov_cimguiname"] = "igSetScrollFromPosX_WindowPtr" +defs["igSetScrollFromPosX"][2]["ret"] = "void" +defs["igSetScrollFromPosX"][2]["signature"] = "(ImGuiWindow*,float,float)" +defs["igSetScrollFromPosX"][2]["stname"] = "" +defs["igSetScrollFromPosX"]["(ImGuiWindow*,float,float)"] = defs["igSetScrollFromPosX"][2] defs["igSetScrollFromPosX"]["(float,float)"] = defs["igSetScrollFromPosX"][1] defs["igSetScrollFromPosY"] = {} defs["igSetScrollFromPosY"][1] = {} @@ -13359,10 +26304,34 @@ defs["igSetScrollFromPosY"][1]["defaults"]["center_y_ratio"] = "0.5f" defs["igSetScrollFromPosY"][1]["funcname"] = "SetScrollFromPosY" defs["igSetScrollFromPosY"][1]["location"] = "imgui:406" defs["igSetScrollFromPosY"][1]["namespace"] = "ImGui" -defs["igSetScrollFromPosY"][1]["ov_cimguiname"] = "igSetScrollFromPosY" +defs["igSetScrollFromPosY"][1]["ov_cimguiname"] = "igSetScrollFromPosY_Float" defs["igSetScrollFromPosY"][1]["ret"] = "void" defs["igSetScrollFromPosY"][1]["signature"] = "(float,float)" defs["igSetScrollFromPosY"][1]["stname"] = "" +defs["igSetScrollFromPosY"][2] = {} +defs["igSetScrollFromPosY"][2]["args"] = "(ImGuiWindow* window,float local_y,float center_y_ratio)" +defs["igSetScrollFromPosY"][2]["argsT"] = {} +defs["igSetScrollFromPosY"][2]["argsT"][1] = {} +defs["igSetScrollFromPosY"][2]["argsT"][1]["name"] = "window" +defs["igSetScrollFromPosY"][2]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetScrollFromPosY"][2]["argsT"][2] = {} +defs["igSetScrollFromPosY"][2]["argsT"][2]["name"] = "local_y" +defs["igSetScrollFromPosY"][2]["argsT"][2]["type"] = "float" +defs["igSetScrollFromPosY"][2]["argsT"][3] = {} +defs["igSetScrollFromPosY"][2]["argsT"][3]["name"] = "center_y_ratio" +defs["igSetScrollFromPosY"][2]["argsT"][3]["type"] = "float" +defs["igSetScrollFromPosY"][2]["argsoriginal"] = "(ImGuiWindow* window,float local_y,float center_y_ratio)" +defs["igSetScrollFromPosY"][2]["call_args"] = "(window,local_y,center_y_ratio)" +defs["igSetScrollFromPosY"][2]["cimguiname"] = "igSetScrollFromPosY" +defs["igSetScrollFromPosY"][2]["defaults"] = {} +defs["igSetScrollFromPosY"][2]["funcname"] = "SetScrollFromPosY" +defs["igSetScrollFromPosY"][2]["location"] = "imgui_internal:3009" +defs["igSetScrollFromPosY"][2]["namespace"] = "ImGui" +defs["igSetScrollFromPosY"][2]["ov_cimguiname"] = "igSetScrollFromPosY_WindowPtr" +defs["igSetScrollFromPosY"][2]["ret"] = "void" +defs["igSetScrollFromPosY"][2]["signature"] = "(ImGuiWindow*,float,float)" +defs["igSetScrollFromPosY"][2]["stname"] = "" +defs["igSetScrollFromPosY"]["(ImGuiWindow*,float,float)"] = defs["igSetScrollFromPosY"][2] defs["igSetScrollFromPosY"]["(float,float)"] = defs["igSetScrollFromPosY"][1] defs["igSetScrollHereX"] = {} defs["igSetScrollHereX"][1] = {} @@ -13418,10 +26387,31 @@ defs["igSetScrollX"][1]["defaults"] = {} defs["igSetScrollX"][1]["funcname"] = "SetScrollX" defs["igSetScrollX"][1]["location"] = "imgui:399" defs["igSetScrollX"][1]["namespace"] = "ImGui" -defs["igSetScrollX"][1]["ov_cimguiname"] = "igSetScrollX" +defs["igSetScrollX"][1]["ov_cimguiname"] = "igSetScrollX_Float" defs["igSetScrollX"][1]["ret"] = "void" defs["igSetScrollX"][1]["signature"] = "(float)" defs["igSetScrollX"][1]["stname"] = "" +defs["igSetScrollX"][2] = {} +defs["igSetScrollX"][2]["args"] = "(ImGuiWindow* window,float scroll_x)" +defs["igSetScrollX"][2]["argsT"] = {} +defs["igSetScrollX"][2]["argsT"][1] = {} +defs["igSetScrollX"][2]["argsT"][1]["name"] = "window" +defs["igSetScrollX"][2]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetScrollX"][2]["argsT"][2] = {} +defs["igSetScrollX"][2]["argsT"][2]["name"] = "scroll_x" +defs["igSetScrollX"][2]["argsT"][2]["type"] = "float" +defs["igSetScrollX"][2]["argsoriginal"] = "(ImGuiWindow* window,float scroll_x)" +defs["igSetScrollX"][2]["call_args"] = "(window,scroll_x)" +defs["igSetScrollX"][2]["cimguiname"] = "igSetScrollX" +defs["igSetScrollX"][2]["defaults"] = {} +defs["igSetScrollX"][2]["funcname"] = "SetScrollX" +defs["igSetScrollX"][2]["location"] = "imgui_internal:3006" +defs["igSetScrollX"][2]["namespace"] = "ImGui" +defs["igSetScrollX"][2]["ov_cimguiname"] = "igSetScrollX_WindowPtr" +defs["igSetScrollX"][2]["ret"] = "void" +defs["igSetScrollX"][2]["signature"] = "(ImGuiWindow*,float)" +defs["igSetScrollX"][2]["stname"] = "" +defs["igSetScrollX"]["(ImGuiWindow*,float)"] = defs["igSetScrollX"][2] defs["igSetScrollX"]["(float)"] = defs["igSetScrollX"][1] defs["igSetScrollY"] = {} defs["igSetScrollY"][1] = {} @@ -13437,11 +26427,59 @@ defs["igSetScrollY"][1]["defaults"] = {} defs["igSetScrollY"][1]["funcname"] = "SetScrollY" defs["igSetScrollY"][1]["location"] = "imgui:400" defs["igSetScrollY"][1]["namespace"] = "ImGui" -defs["igSetScrollY"][1]["ov_cimguiname"] = "igSetScrollY" +defs["igSetScrollY"][1]["ov_cimguiname"] = "igSetScrollY_Float" defs["igSetScrollY"][1]["ret"] = "void" defs["igSetScrollY"][1]["signature"] = "(float)" defs["igSetScrollY"][1]["stname"] = "" +defs["igSetScrollY"][2] = {} +defs["igSetScrollY"][2]["args"] = "(ImGuiWindow* window,float scroll_y)" +defs["igSetScrollY"][2]["argsT"] = {} +defs["igSetScrollY"][2]["argsT"][1] = {} +defs["igSetScrollY"][2]["argsT"][1]["name"] = "window" +defs["igSetScrollY"][2]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetScrollY"][2]["argsT"][2] = {} +defs["igSetScrollY"][2]["argsT"][2]["name"] = "scroll_y" +defs["igSetScrollY"][2]["argsT"][2]["type"] = "float" +defs["igSetScrollY"][2]["argsoriginal"] = "(ImGuiWindow* window,float scroll_y)" +defs["igSetScrollY"][2]["call_args"] = "(window,scroll_y)" +defs["igSetScrollY"][2]["cimguiname"] = "igSetScrollY" +defs["igSetScrollY"][2]["defaults"] = {} +defs["igSetScrollY"][2]["funcname"] = "SetScrollY" +defs["igSetScrollY"][2]["location"] = "imgui_internal:3007" +defs["igSetScrollY"][2]["namespace"] = "ImGui" +defs["igSetScrollY"][2]["ov_cimguiname"] = "igSetScrollY_WindowPtr" +defs["igSetScrollY"][2]["ret"] = "void" +defs["igSetScrollY"][2]["signature"] = "(ImGuiWindow*,float)" +defs["igSetScrollY"][2]["stname"] = "" +defs["igSetScrollY"]["(ImGuiWindow*,float)"] = defs["igSetScrollY"][2] defs["igSetScrollY"]["(float)"] = defs["igSetScrollY"][1] +defs["igSetShortcutRouting"] = {} +defs["igSetShortcutRouting"][1] = {} +defs["igSetShortcutRouting"][1]["args"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igSetShortcutRouting"][1]["argsT"] = {} +defs["igSetShortcutRouting"][1]["argsT"][1] = {} +defs["igSetShortcutRouting"][1]["argsT"][1]["name"] = "key_chord" +defs["igSetShortcutRouting"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igSetShortcutRouting"][1]["argsT"][2] = {} +defs["igSetShortcutRouting"][1]["argsT"][2]["name"] = "owner_id" +defs["igSetShortcutRouting"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igSetShortcutRouting"][1]["argsT"][3] = {} +defs["igSetShortcutRouting"][1]["argsT"][3]["name"] = "flags" +defs["igSetShortcutRouting"][1]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igSetShortcutRouting"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id=0,ImGuiInputFlags flags=0)" +defs["igSetShortcutRouting"][1]["call_args"] = "(key_chord,owner_id,flags)" +defs["igSetShortcutRouting"][1]["cimguiname"] = "igSetShortcutRouting" +defs["igSetShortcutRouting"][1]["defaults"] = {} +defs["igSetShortcutRouting"][1]["defaults"]["flags"] = "0" +defs["igSetShortcutRouting"][1]["defaults"]["owner_id"] = "0" +defs["igSetShortcutRouting"][1]["funcname"] = "SetShortcutRouting" +defs["igSetShortcutRouting"][1]["location"] = "imgui_internal:3168" +defs["igSetShortcutRouting"][1]["namespace"] = "ImGui" +defs["igSetShortcutRouting"][1]["ov_cimguiname"] = "igSetShortcutRouting" +defs["igSetShortcutRouting"][1]["ret"] = "bool" +defs["igSetShortcutRouting"][1]["signature"] = "(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)" +defs["igSetShortcutRouting"][1]["stname"] = "" +defs["igSetShortcutRouting"]["(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)"] = defs["igSetShortcutRouting"][1] defs["igSetStateStorage"] = {} defs["igSetStateStorage"][1] = {} defs["igSetStateStorage"][1]["args"] = "(ImGuiStorage* storage)" @@ -13525,6 +26563,28 @@ defs["igSetTooltipV"][1]["ret"] = "void" defs["igSetTooltipV"][1]["signature"] = "(const char*,va_list)" defs["igSetTooltipV"][1]["stname"] = "" defs["igSetTooltipV"]["(const char*,va_list)"] = defs["igSetTooltipV"][1] +defs["igSetWindowClipRectBeforeSetChannel"] = {} +defs["igSetWindowClipRectBeforeSetChannel"][1] = {} +defs["igSetWindowClipRectBeforeSetChannel"][1]["args"] = "(ImGuiWindow* window,const ImRect clip_rect)" +defs["igSetWindowClipRectBeforeSetChannel"][1]["argsT"] = {} +defs["igSetWindowClipRectBeforeSetChannel"][1]["argsT"][1] = {} +defs["igSetWindowClipRectBeforeSetChannel"][1]["argsT"][1]["name"] = "window" +defs["igSetWindowClipRectBeforeSetChannel"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetWindowClipRectBeforeSetChannel"][1]["argsT"][2] = {} +defs["igSetWindowClipRectBeforeSetChannel"][1]["argsT"][2]["name"] = "clip_rect" +defs["igSetWindowClipRectBeforeSetChannel"][1]["argsT"][2]["type"] = "const ImRect" +defs["igSetWindowClipRectBeforeSetChannel"][1]["argsoriginal"] = "(ImGuiWindow* window,const ImRect& clip_rect)" +defs["igSetWindowClipRectBeforeSetChannel"][1]["call_args"] = "(window,clip_rect)" +defs["igSetWindowClipRectBeforeSetChannel"][1]["cimguiname"] = "igSetWindowClipRectBeforeSetChannel" +defs["igSetWindowClipRectBeforeSetChannel"][1]["defaults"] = {} +defs["igSetWindowClipRectBeforeSetChannel"][1]["funcname"] = "SetWindowClipRectBeforeSetChannel" +defs["igSetWindowClipRectBeforeSetChannel"][1]["location"] = "imgui_internal:3244" +defs["igSetWindowClipRectBeforeSetChannel"][1]["namespace"] = "ImGui" +defs["igSetWindowClipRectBeforeSetChannel"][1]["ov_cimguiname"] = "igSetWindowClipRectBeforeSetChannel" +defs["igSetWindowClipRectBeforeSetChannel"][1]["ret"] = "void" +defs["igSetWindowClipRectBeforeSetChannel"][1]["signature"] = "(ImGuiWindow*,const ImRect)" +defs["igSetWindowClipRectBeforeSetChannel"][1]["stname"] = "" +defs["igSetWindowClipRectBeforeSetChannel"]["(ImGuiWindow*,const ImRect)"] = defs["igSetWindowClipRectBeforeSetChannel"][1] defs["igSetWindowCollapsed"] = {} defs["igSetWindowCollapsed"][1] = {} defs["igSetWindowCollapsed"][1]["args"] = "(bool collapsed,ImGuiCond cond)" @@ -13571,8 +26631,58 @@ defs["igSetWindowCollapsed"][2]["ov_cimguiname"] = "igSetWindowCollapsed_Str" defs["igSetWindowCollapsed"][2]["ret"] = "void" defs["igSetWindowCollapsed"][2]["signature"] = "(const char*,bool,ImGuiCond)" defs["igSetWindowCollapsed"][2]["stname"] = "" +defs["igSetWindowCollapsed"][3] = {} +defs["igSetWindowCollapsed"][3]["args"] = "(ImGuiWindow* window,bool collapsed,ImGuiCond cond)" +defs["igSetWindowCollapsed"][3]["argsT"] = {} +defs["igSetWindowCollapsed"][3]["argsT"][1] = {} +defs["igSetWindowCollapsed"][3]["argsT"][1]["name"] = "window" +defs["igSetWindowCollapsed"][3]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetWindowCollapsed"][3]["argsT"][2] = {} +defs["igSetWindowCollapsed"][3]["argsT"][2]["name"] = "collapsed" +defs["igSetWindowCollapsed"][3]["argsT"][2]["type"] = "bool" +defs["igSetWindowCollapsed"][3]["argsT"][3] = {} +defs["igSetWindowCollapsed"][3]["argsT"][3]["name"] = "cond" +defs["igSetWindowCollapsed"][3]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowCollapsed"][3]["argsoriginal"] = "(ImGuiWindow* window,bool collapsed,ImGuiCond cond=0)" +defs["igSetWindowCollapsed"][3]["call_args"] = "(window,collapsed,cond)" +defs["igSetWindowCollapsed"][3]["cimguiname"] = "igSetWindowCollapsed" +defs["igSetWindowCollapsed"][3]["defaults"] = {} +defs["igSetWindowCollapsed"][3]["defaults"]["cond"] = "0" +defs["igSetWindowCollapsed"][3]["funcname"] = "SetWindowCollapsed" +defs["igSetWindowCollapsed"][3]["location"] = "imgui_internal:2944" +defs["igSetWindowCollapsed"][3]["namespace"] = "ImGui" +defs["igSetWindowCollapsed"][3]["ov_cimguiname"] = "igSetWindowCollapsed_WindowPtr" +defs["igSetWindowCollapsed"][3]["ret"] = "void" +defs["igSetWindowCollapsed"][3]["signature"] = "(ImGuiWindow*,bool,ImGuiCond)" +defs["igSetWindowCollapsed"][3]["stname"] = "" +defs["igSetWindowCollapsed"]["(ImGuiWindow*,bool,ImGuiCond)"] = defs["igSetWindowCollapsed"][3] defs["igSetWindowCollapsed"]["(bool,ImGuiCond)"] = defs["igSetWindowCollapsed"][1] defs["igSetWindowCollapsed"]["(const char*,bool,ImGuiCond)"] = defs["igSetWindowCollapsed"][2] +defs["igSetWindowDock"] = {} +defs["igSetWindowDock"][1] = {} +defs["igSetWindowDock"][1]["args"] = "(ImGuiWindow* window,ImGuiID dock_id,ImGuiCond cond)" +defs["igSetWindowDock"][1]["argsT"] = {} +defs["igSetWindowDock"][1]["argsT"][1] = {} +defs["igSetWindowDock"][1]["argsT"][1]["name"] = "window" +defs["igSetWindowDock"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetWindowDock"][1]["argsT"][2] = {} +defs["igSetWindowDock"][1]["argsT"][2]["name"] = "dock_id" +defs["igSetWindowDock"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igSetWindowDock"][1]["argsT"][3] = {} +defs["igSetWindowDock"][1]["argsT"][3]["name"] = "cond" +defs["igSetWindowDock"][1]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowDock"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiID dock_id,ImGuiCond cond)" +defs["igSetWindowDock"][1]["call_args"] = "(window,dock_id,cond)" +defs["igSetWindowDock"][1]["cimguiname"] = "igSetWindowDock" +defs["igSetWindowDock"][1]["defaults"] = {} +defs["igSetWindowDock"][1]["funcname"] = "SetWindowDock" +defs["igSetWindowDock"][1]["location"] = "imgui_internal:3198" +defs["igSetWindowDock"][1]["namespace"] = "ImGui" +defs["igSetWindowDock"][1]["ov_cimguiname"] = "igSetWindowDock" +defs["igSetWindowDock"][1]["ret"] = "void" +defs["igSetWindowDock"][1]["signature"] = "(ImGuiWindow*,ImGuiID,ImGuiCond)" +defs["igSetWindowDock"][1]["stname"] = "" +defs["igSetWindowDock"]["(ImGuiWindow*,ImGuiID,ImGuiCond)"] = defs["igSetWindowDock"][1] defs["igSetWindowFocus"] = {} defs["igSetWindowFocus"][1] = {} defs["igSetWindowFocus"][1]["args"] = "()" @@ -13626,6 +26736,31 @@ defs["igSetWindowFontScale"][1]["ret"] = "void" defs["igSetWindowFontScale"][1]["signature"] = "(float)" defs["igSetWindowFontScale"][1]["stname"] = "" defs["igSetWindowFontScale"]["(float)"] = defs["igSetWindowFontScale"][1] +defs["igSetWindowHitTestHole"] = {} +defs["igSetWindowHitTestHole"][1] = {} +defs["igSetWindowHitTestHole"][1]["args"] = "(ImGuiWindow* window,const ImVec2 pos,const ImVec2 size)" +defs["igSetWindowHitTestHole"][1]["argsT"] = {} +defs["igSetWindowHitTestHole"][1]["argsT"][1] = {} +defs["igSetWindowHitTestHole"][1]["argsT"][1]["name"] = "window" +defs["igSetWindowHitTestHole"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetWindowHitTestHole"][1]["argsT"][2] = {} +defs["igSetWindowHitTestHole"][1]["argsT"][2]["name"] = "pos" +defs["igSetWindowHitTestHole"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igSetWindowHitTestHole"][1]["argsT"][3] = {} +defs["igSetWindowHitTestHole"][1]["argsT"][3]["name"] = "size" +defs["igSetWindowHitTestHole"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igSetWindowHitTestHole"][1]["argsoriginal"] = "(ImGuiWindow* window,const ImVec2& pos,const ImVec2& size)" +defs["igSetWindowHitTestHole"][1]["call_args"] = "(window,pos,size)" +defs["igSetWindowHitTestHole"][1]["cimguiname"] = "igSetWindowHitTestHole" +defs["igSetWindowHitTestHole"][1]["defaults"] = {} +defs["igSetWindowHitTestHole"][1]["funcname"] = "SetWindowHitTestHole" +defs["igSetWindowHitTestHole"][1]["location"] = "imgui_internal:2945" +defs["igSetWindowHitTestHole"][1]["namespace"] = "ImGui" +defs["igSetWindowHitTestHole"][1]["ov_cimguiname"] = "igSetWindowHitTestHole" +defs["igSetWindowHitTestHole"][1]["ret"] = "void" +defs["igSetWindowHitTestHole"][1]["signature"] = "(ImGuiWindow*,const ImVec2,const ImVec2)" +defs["igSetWindowHitTestHole"][1]["stname"] = "" +defs["igSetWindowHitTestHole"]["(ImGuiWindow*,const ImVec2,const ImVec2)"] = defs["igSetWindowHitTestHole"][1] defs["igSetWindowPos"] = {} defs["igSetWindowPos"][1] = {} defs["igSetWindowPos"][1]["args"] = "(const ImVec2 pos,ImGuiCond cond)" @@ -13672,6 +26807,31 @@ defs["igSetWindowPos"][2]["ov_cimguiname"] = "igSetWindowPos_Str" defs["igSetWindowPos"][2]["ret"] = "void" defs["igSetWindowPos"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" defs["igSetWindowPos"][2]["stname"] = "" +defs["igSetWindowPos"][3] = {} +defs["igSetWindowPos"][3]["args"] = "(ImGuiWindow* window,const ImVec2 pos,ImGuiCond cond)" +defs["igSetWindowPos"][3]["argsT"] = {} +defs["igSetWindowPos"][3]["argsT"][1] = {} +defs["igSetWindowPos"][3]["argsT"][1]["name"] = "window" +defs["igSetWindowPos"][3]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetWindowPos"][3]["argsT"][2] = {} +defs["igSetWindowPos"][3]["argsT"][2]["name"] = "pos" +defs["igSetWindowPos"][3]["argsT"][2]["type"] = "const ImVec2" +defs["igSetWindowPos"][3]["argsT"][3] = {} +defs["igSetWindowPos"][3]["argsT"][3]["name"] = "cond" +defs["igSetWindowPos"][3]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowPos"][3]["argsoriginal"] = "(ImGuiWindow* window,const ImVec2& pos,ImGuiCond cond=0)" +defs["igSetWindowPos"][3]["call_args"] = "(window,pos,cond)" +defs["igSetWindowPos"][3]["cimguiname"] = "igSetWindowPos" +defs["igSetWindowPos"][3]["defaults"] = {} +defs["igSetWindowPos"][3]["defaults"]["cond"] = "0" +defs["igSetWindowPos"][3]["funcname"] = "SetWindowPos" +defs["igSetWindowPos"][3]["location"] = "imgui_internal:2942" +defs["igSetWindowPos"][3]["namespace"] = "ImGui" +defs["igSetWindowPos"][3]["ov_cimguiname"] = "igSetWindowPos_WindowPtr" +defs["igSetWindowPos"][3]["ret"] = "void" +defs["igSetWindowPos"][3]["signature"] = "(ImGuiWindow*,const ImVec2,ImGuiCond)" +defs["igSetWindowPos"][3]["stname"] = "" +defs["igSetWindowPos"]["(ImGuiWindow*,const ImVec2,ImGuiCond)"] = defs["igSetWindowPos"][3] defs["igSetWindowPos"]["(const ImVec2,ImGuiCond)"] = defs["igSetWindowPos"][1] defs["igSetWindowPos"]["(const char*,const ImVec2,ImGuiCond)"] = defs["igSetWindowPos"][2] defs["igSetWindowSize"] = {} @@ -13720,8 +26880,159 @@ defs["igSetWindowSize"][2]["ov_cimguiname"] = "igSetWindowSize_Str" defs["igSetWindowSize"][2]["ret"] = "void" defs["igSetWindowSize"][2]["signature"] = "(const char*,const ImVec2,ImGuiCond)" defs["igSetWindowSize"][2]["stname"] = "" +defs["igSetWindowSize"][3] = {} +defs["igSetWindowSize"][3]["args"] = "(ImGuiWindow* window,const ImVec2 size,ImGuiCond cond)" +defs["igSetWindowSize"][3]["argsT"] = {} +defs["igSetWindowSize"][3]["argsT"][1] = {} +defs["igSetWindowSize"][3]["argsT"][1]["name"] = "window" +defs["igSetWindowSize"][3]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetWindowSize"][3]["argsT"][2] = {} +defs["igSetWindowSize"][3]["argsT"][2]["name"] = "size" +defs["igSetWindowSize"][3]["argsT"][2]["type"] = "const ImVec2" +defs["igSetWindowSize"][3]["argsT"][3] = {} +defs["igSetWindowSize"][3]["argsT"][3]["name"] = "cond" +defs["igSetWindowSize"][3]["argsT"][3]["type"] = "ImGuiCond" +defs["igSetWindowSize"][3]["argsoriginal"] = "(ImGuiWindow* window,const ImVec2& size,ImGuiCond cond=0)" +defs["igSetWindowSize"][3]["call_args"] = "(window,size,cond)" +defs["igSetWindowSize"][3]["cimguiname"] = "igSetWindowSize" +defs["igSetWindowSize"][3]["defaults"] = {} +defs["igSetWindowSize"][3]["defaults"]["cond"] = "0" +defs["igSetWindowSize"][3]["funcname"] = "SetWindowSize" +defs["igSetWindowSize"][3]["location"] = "imgui_internal:2943" +defs["igSetWindowSize"][3]["namespace"] = "ImGui" +defs["igSetWindowSize"][3]["ov_cimguiname"] = "igSetWindowSize_WindowPtr" +defs["igSetWindowSize"][3]["ret"] = "void" +defs["igSetWindowSize"][3]["signature"] = "(ImGuiWindow*,const ImVec2,ImGuiCond)" +defs["igSetWindowSize"][3]["stname"] = "" +defs["igSetWindowSize"]["(ImGuiWindow*,const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][3] defs["igSetWindowSize"]["(const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][1] defs["igSetWindowSize"]["(const char*,const ImVec2,ImGuiCond)"] = defs["igSetWindowSize"][2] +defs["igSetWindowViewport"] = {} +defs["igSetWindowViewport"][1] = {} +defs["igSetWindowViewport"][1]["args"] = "(ImGuiWindow* window,ImGuiViewportP* viewport)" +defs["igSetWindowViewport"][1]["argsT"] = {} +defs["igSetWindowViewport"][1]["argsT"][1] = {} +defs["igSetWindowViewport"][1]["argsT"][1]["name"] = "window" +defs["igSetWindowViewport"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igSetWindowViewport"][1]["argsT"][2] = {} +defs["igSetWindowViewport"][1]["argsT"][2]["name"] = "viewport" +defs["igSetWindowViewport"][1]["argsT"][2]["type"] = "ImGuiViewportP*" +defs["igSetWindowViewport"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiViewportP* viewport)" +defs["igSetWindowViewport"][1]["call_args"] = "(window,viewport)" +defs["igSetWindowViewport"][1]["cimguiname"] = "igSetWindowViewport" +defs["igSetWindowViewport"][1]["defaults"] = {} +defs["igSetWindowViewport"][1]["funcname"] = "SetWindowViewport" +defs["igSetWindowViewport"][1]["location"] = "imgui_internal:2985" +defs["igSetWindowViewport"][1]["namespace"] = "ImGui" +defs["igSetWindowViewport"][1]["ov_cimguiname"] = "igSetWindowViewport" +defs["igSetWindowViewport"][1]["ret"] = "void" +defs["igSetWindowViewport"][1]["signature"] = "(ImGuiWindow*,ImGuiViewportP*)" +defs["igSetWindowViewport"][1]["stname"] = "" +defs["igSetWindowViewport"]["(ImGuiWindow*,ImGuiViewportP*)"] = defs["igSetWindowViewport"][1] +defs["igShadeVertsLinearColorGradientKeepAlpha"] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["args"] = "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1)" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][1] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][1]["name"] = "draw_list" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][2] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][2]["name"] = "vert_start_idx" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][2]["type"] = "int" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][3] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][3]["name"] = "vert_end_idx" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][3]["type"] = "int" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][4] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][4]["name"] = "gradient_p0" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][4]["type"] = "ImVec2" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][5] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][5]["name"] = "gradient_p1" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][5]["type"] = "ImVec2" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][6] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][6]["name"] = "col0" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][6]["type"] = "ImU32" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][7] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][7]["name"] = "col1" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsT"][7]["type"] = "ImU32" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["argsoriginal"] = "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1)" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["call_args"] = "(draw_list,vert_start_idx,vert_end_idx,gradient_p0,gradient_p1,col0,col1)" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["cimguiname"] = "igShadeVertsLinearColorGradientKeepAlpha" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["defaults"] = {} +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["funcname"] = "ShadeVertsLinearColorGradientKeepAlpha" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["location"] = "imgui_internal:3410" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["namespace"] = "ImGui" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["ov_cimguiname"] = "igShadeVertsLinearColorGradientKeepAlpha" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["ret"] = "void" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["signature"] = "(ImDrawList*,int,int,ImVec2,ImVec2,ImU32,ImU32)" +defs["igShadeVertsLinearColorGradientKeepAlpha"][1]["stname"] = "" +defs["igShadeVertsLinearColorGradientKeepAlpha"]["(ImDrawList*,int,int,ImVec2,ImVec2,ImU32,ImU32)"] = defs["igShadeVertsLinearColorGradientKeepAlpha"][1] +defs["igShadeVertsLinearUV"] = {} +defs["igShadeVertsLinearUV"][1] = {} +defs["igShadeVertsLinearUV"][1]["args"] = "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,bool clamp)" +defs["igShadeVertsLinearUV"][1]["argsT"] = {} +defs["igShadeVertsLinearUV"][1]["argsT"][1] = {} +defs["igShadeVertsLinearUV"][1]["argsT"][1]["name"] = "draw_list" +defs["igShadeVertsLinearUV"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igShadeVertsLinearUV"][1]["argsT"][2] = {} +defs["igShadeVertsLinearUV"][1]["argsT"][2]["name"] = "vert_start_idx" +defs["igShadeVertsLinearUV"][1]["argsT"][2]["type"] = "int" +defs["igShadeVertsLinearUV"][1]["argsT"][3] = {} +defs["igShadeVertsLinearUV"][1]["argsT"][3]["name"] = "vert_end_idx" +defs["igShadeVertsLinearUV"][1]["argsT"][3]["type"] = "int" +defs["igShadeVertsLinearUV"][1]["argsT"][4] = {} +defs["igShadeVertsLinearUV"][1]["argsT"][4]["name"] = "a" +defs["igShadeVertsLinearUV"][1]["argsT"][4]["type"] = "const ImVec2" +defs["igShadeVertsLinearUV"][1]["argsT"][5] = {} +defs["igShadeVertsLinearUV"][1]["argsT"][5]["name"] = "b" +defs["igShadeVertsLinearUV"][1]["argsT"][5]["type"] = "const ImVec2" +defs["igShadeVertsLinearUV"][1]["argsT"][6] = {} +defs["igShadeVertsLinearUV"][1]["argsT"][6]["name"] = "uv_a" +defs["igShadeVertsLinearUV"][1]["argsT"][6]["type"] = "const ImVec2" +defs["igShadeVertsLinearUV"][1]["argsT"][7] = {} +defs["igShadeVertsLinearUV"][1]["argsT"][7]["name"] = "uv_b" +defs["igShadeVertsLinearUV"][1]["argsT"][7]["type"] = "const ImVec2" +defs["igShadeVertsLinearUV"][1]["argsT"][8] = {} +defs["igShadeVertsLinearUV"][1]["argsT"][8]["name"] = "clamp" +defs["igShadeVertsLinearUV"][1]["argsT"][8]["type"] = "bool" +defs["igShadeVertsLinearUV"][1]["argsoriginal"] = "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,bool clamp)" +defs["igShadeVertsLinearUV"][1]["call_args"] = "(draw_list,vert_start_idx,vert_end_idx,a,b,uv_a,uv_b,clamp)" +defs["igShadeVertsLinearUV"][1]["cimguiname"] = "igShadeVertsLinearUV" +defs["igShadeVertsLinearUV"][1]["defaults"] = {} +defs["igShadeVertsLinearUV"][1]["funcname"] = "ShadeVertsLinearUV" +defs["igShadeVertsLinearUV"][1]["location"] = "imgui_internal:3411" +defs["igShadeVertsLinearUV"][1]["namespace"] = "ImGui" +defs["igShadeVertsLinearUV"][1]["ov_cimguiname"] = "igShadeVertsLinearUV" +defs["igShadeVertsLinearUV"][1]["ret"] = "void" +defs["igShadeVertsLinearUV"][1]["signature"] = "(ImDrawList*,int,int,const ImVec2,const ImVec2,const ImVec2,const ImVec2,bool)" +defs["igShadeVertsLinearUV"][1]["stname"] = "" +defs["igShadeVertsLinearUV"]["(ImDrawList*,int,int,const ImVec2,const ImVec2,const ImVec2,const ImVec2,bool)"] = defs["igShadeVertsLinearUV"][1] +defs["igShortcut"] = {} +defs["igShortcut"][1] = {} +defs["igShortcut"][1]["args"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)" +defs["igShortcut"][1]["argsT"] = {} +defs["igShortcut"][1]["argsT"][1] = {} +defs["igShortcut"][1]["argsT"][1]["name"] = "key_chord" +defs["igShortcut"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igShortcut"][1]["argsT"][2] = {} +defs["igShortcut"][1]["argsT"][2]["name"] = "owner_id" +defs["igShortcut"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igShortcut"][1]["argsT"][3] = {} +defs["igShortcut"][1]["argsT"][3]["name"] = "flags" +defs["igShortcut"][1]["argsT"][3]["type"] = "ImGuiInputFlags" +defs["igShortcut"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id=0,ImGuiInputFlags flags=0)" +defs["igShortcut"][1]["call_args"] = "(key_chord,owner_id,flags)" +defs["igShortcut"][1]["cimguiname"] = "igShortcut" +defs["igShortcut"][1]["defaults"] = {} +defs["igShortcut"][1]["defaults"]["flags"] = "0" +defs["igShortcut"][1]["defaults"]["owner_id"] = "0" +defs["igShortcut"][1]["funcname"] = "Shortcut" +defs["igShortcut"][1]["location"] = "imgui_internal:3167" +defs["igShortcut"][1]["namespace"] = "ImGui" +defs["igShortcut"][1]["ov_cimguiname"] = "igShortcut" +defs["igShortcut"][1]["ret"] = "bool" +defs["igShortcut"][1]["signature"] = "(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)" +defs["igShortcut"][1]["stname"] = "" +defs["igShortcut"]["(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)"] = defs["igShortcut"][1] defs["igShowAboutWindow"] = {} defs["igShowAboutWindow"][1] = {} defs["igShowAboutWindow"][1]["args"] = "(bool* p_open)" @@ -13782,6 +27093,25 @@ defs["igShowDemoWindow"][1]["ret"] = "void" defs["igShowDemoWindow"][1]["signature"] = "(bool*)" defs["igShowDemoWindow"][1]["stname"] = "" defs["igShowDemoWindow"]["(bool*)"] = defs["igShowDemoWindow"][1] +defs["igShowFontAtlas"] = {} +defs["igShowFontAtlas"][1] = {} +defs["igShowFontAtlas"][1]["args"] = "(ImFontAtlas* atlas)" +defs["igShowFontAtlas"][1]["argsT"] = {} +defs["igShowFontAtlas"][1]["argsT"][1] = {} +defs["igShowFontAtlas"][1]["argsT"][1]["name"] = "atlas" +defs["igShowFontAtlas"][1]["argsT"][1]["type"] = "ImFontAtlas*" +defs["igShowFontAtlas"][1]["argsoriginal"] = "(ImFontAtlas* atlas)" +defs["igShowFontAtlas"][1]["call_args"] = "(atlas)" +defs["igShowFontAtlas"][1]["cimguiname"] = "igShowFontAtlas" +defs["igShowFontAtlas"][1]["defaults"] = {} +defs["igShowFontAtlas"][1]["funcname"] = "ShowFontAtlas" +defs["igShowFontAtlas"][1]["location"] = "imgui_internal:3431" +defs["igShowFontAtlas"][1]["namespace"] = "ImGui" +defs["igShowFontAtlas"][1]["ov_cimguiname"] = "igShowFontAtlas" +defs["igShowFontAtlas"][1]["ret"] = "void" +defs["igShowFontAtlas"][1]["signature"] = "(ImFontAtlas*)" +defs["igShowFontAtlas"][1]["stname"] = "" +defs["igShowFontAtlas"]["(ImFontAtlas*)"] = defs["igShowFontAtlas"][1] defs["igShowFontSelector"] = {} defs["igShowFontSelector"][1] = {} defs["igShowFontSelector"][1]["args"] = "(const char* label)" @@ -13896,6 +27226,47 @@ defs["igShowUserGuide"][1]["ret"] = "void" defs["igShowUserGuide"][1]["signature"] = "()" defs["igShowUserGuide"][1]["stname"] = "" defs["igShowUserGuide"]["()"] = defs["igShowUserGuide"][1] +defs["igShrinkWidths"] = {} +defs["igShrinkWidths"][1] = {} +defs["igShrinkWidths"][1]["args"] = "(ImGuiShrinkWidthItem* items,int count,float width_excess)" +defs["igShrinkWidths"][1]["argsT"] = {} +defs["igShrinkWidths"][1]["argsT"][1] = {} +defs["igShrinkWidths"][1]["argsT"][1]["name"] = "items" +defs["igShrinkWidths"][1]["argsT"][1]["type"] = "ImGuiShrinkWidthItem*" +defs["igShrinkWidths"][1]["argsT"][2] = {} +defs["igShrinkWidths"][1]["argsT"][2]["name"] = "count" +defs["igShrinkWidths"][1]["argsT"][2]["type"] = "int" +defs["igShrinkWidths"][1]["argsT"][3] = {} +defs["igShrinkWidths"][1]["argsT"][3]["name"] = "width_excess" +defs["igShrinkWidths"][1]["argsT"][3]["type"] = "float" +defs["igShrinkWidths"][1]["argsoriginal"] = "(ImGuiShrinkWidthItem* items,int count,float width_excess)" +defs["igShrinkWidths"][1]["call_args"] = "(items,count,width_excess)" +defs["igShrinkWidths"][1]["cimguiname"] = "igShrinkWidths" +defs["igShrinkWidths"][1]["defaults"] = {} +defs["igShrinkWidths"][1]["funcname"] = "ShrinkWidths" +defs["igShrinkWidths"][1]["location"] = "imgui_internal:3047" +defs["igShrinkWidths"][1]["namespace"] = "ImGui" +defs["igShrinkWidths"][1]["ov_cimguiname"] = "igShrinkWidths" +defs["igShrinkWidths"][1]["ret"] = "void" +defs["igShrinkWidths"][1]["signature"] = "(ImGuiShrinkWidthItem*,int,float)" +defs["igShrinkWidths"][1]["stname"] = "" +defs["igShrinkWidths"]["(ImGuiShrinkWidthItem*,int,float)"] = defs["igShrinkWidths"][1] +defs["igShutdown"] = {} +defs["igShutdown"][1] = {} +defs["igShutdown"][1]["args"] = "()" +defs["igShutdown"][1]["argsT"] = {} +defs["igShutdown"][1]["argsoriginal"] = "()" +defs["igShutdown"][1]["call_args"] = "()" +defs["igShutdown"][1]["cimguiname"] = "igShutdown" +defs["igShutdown"][1]["defaults"] = {} +defs["igShutdown"][1]["funcname"] = "Shutdown" +defs["igShutdown"][1]["location"] = "imgui_internal:2966" +defs["igShutdown"][1]["namespace"] = "ImGui" +defs["igShutdown"][1]["ov_cimguiname"] = "igShutdown" +defs["igShutdown"][1]["ret"] = "void" +defs["igShutdown"][1]["signature"] = "()" +defs["igShutdown"][1]["stname"] = "" +defs["igShutdown"]["()"] = defs["igShutdown"][1] defs["igSliderAngle"] = {} defs["igSliderAngle"][1] = {} defs["igSliderAngle"][1]["args"] = "(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags)" @@ -13934,6 +27305,49 @@ defs["igSliderAngle"][1]["ret"] = "bool" defs["igSliderAngle"][1]["signature"] = "(const char*,float*,float,float,const char*,ImGuiSliderFlags)" defs["igSliderAngle"][1]["stname"] = "" defs["igSliderAngle"]["(const char*,float*,float,float,const char*,ImGuiSliderFlags)"] = defs["igSliderAngle"][1] +defs["igSliderBehavior"] = {} +defs["igSliderBehavior"][1] = {} +defs["igSliderBehavior"][1]["args"] = "(const ImRect bb,ImGuiID id,ImGuiDataType data_type,void* p_v,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags,ImRect* out_grab_bb)" +defs["igSliderBehavior"][1]["argsT"] = {} +defs["igSliderBehavior"][1]["argsT"][1] = {} +defs["igSliderBehavior"][1]["argsT"][1]["name"] = "bb" +defs["igSliderBehavior"][1]["argsT"][1]["type"] = "const ImRect" +defs["igSliderBehavior"][1]["argsT"][2] = {} +defs["igSliderBehavior"][1]["argsT"][2]["name"] = "id" +defs["igSliderBehavior"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igSliderBehavior"][1]["argsT"][3] = {} +defs["igSliderBehavior"][1]["argsT"][3]["name"] = "data_type" +defs["igSliderBehavior"][1]["argsT"][3]["type"] = "ImGuiDataType" +defs["igSliderBehavior"][1]["argsT"][4] = {} +defs["igSliderBehavior"][1]["argsT"][4]["name"] = "p_v" +defs["igSliderBehavior"][1]["argsT"][4]["type"] = "void*" +defs["igSliderBehavior"][1]["argsT"][5] = {} +defs["igSliderBehavior"][1]["argsT"][5]["name"] = "p_min" +defs["igSliderBehavior"][1]["argsT"][5]["type"] = "const void*" +defs["igSliderBehavior"][1]["argsT"][6] = {} +defs["igSliderBehavior"][1]["argsT"][6]["name"] = "p_max" +defs["igSliderBehavior"][1]["argsT"][6]["type"] = "const void*" +defs["igSliderBehavior"][1]["argsT"][7] = {} +defs["igSliderBehavior"][1]["argsT"][7]["name"] = "format" +defs["igSliderBehavior"][1]["argsT"][7]["type"] = "const char*" +defs["igSliderBehavior"][1]["argsT"][8] = {} +defs["igSliderBehavior"][1]["argsT"][8]["name"] = "flags" +defs["igSliderBehavior"][1]["argsT"][8]["type"] = "ImGuiSliderFlags" +defs["igSliderBehavior"][1]["argsT"][9] = {} +defs["igSliderBehavior"][1]["argsT"][9]["name"] = "out_grab_bb" +defs["igSliderBehavior"][1]["argsT"][9]["type"] = "ImRect*" +defs["igSliderBehavior"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id,ImGuiDataType data_type,void* p_v,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags,ImRect* out_grab_bb)" +defs["igSliderBehavior"][1]["call_args"] = "(bb,id,data_type,p_v,p_min,p_max,format,flags,out_grab_bb)" +defs["igSliderBehavior"][1]["cimguiname"] = "igSliderBehavior" +defs["igSliderBehavior"][1]["defaults"] = {} +defs["igSliderBehavior"][1]["funcname"] = "SliderBehavior" +defs["igSliderBehavior"][1]["location"] = "imgui_internal:3369" +defs["igSliderBehavior"][1]["namespace"] = "ImGui" +defs["igSliderBehavior"][1]["ov_cimguiname"] = "igSliderBehavior" +defs["igSliderBehavior"][1]["ret"] = "bool" +defs["igSliderBehavior"][1]["signature"] = "(const ImRect,ImGuiID,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags,ImRect*)" +defs["igSliderBehavior"][1]["stname"] = "" +defs["igSliderBehavior"]["(const ImRect,ImGuiID,ImGuiDataType,void*,const void*,const void*,const char*,ImGuiSliderFlags,ImRect*)"] = defs["igSliderBehavior"][1] defs["igSliderFloat"] = {} defs["igSliderFloat"][1] = {} defs["igSliderFloat"][1]["args"] = "(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" @@ -14338,6 +27752,99 @@ defs["igSpacing"][1]["ret"] = "void" defs["igSpacing"][1]["signature"] = "()" defs["igSpacing"][1]["stname"] = "" defs["igSpacing"]["()"] = defs["igSpacing"][1] +defs["igSplitterBehavior"] = {} +defs["igSplitterBehavior"][1] = {} +defs["igSplitterBehavior"][1]["args"] = "(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* size1,float* size2,float min_size1,float min_size2,float hover_extend,float hover_visibility_delay,ImU32 bg_col)" +defs["igSplitterBehavior"][1]["argsT"] = {} +defs["igSplitterBehavior"][1]["argsT"][1] = {} +defs["igSplitterBehavior"][1]["argsT"][1]["name"] = "bb" +defs["igSplitterBehavior"][1]["argsT"][1]["type"] = "const ImRect" +defs["igSplitterBehavior"][1]["argsT"][2] = {} +defs["igSplitterBehavior"][1]["argsT"][2]["name"] = "id" +defs["igSplitterBehavior"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igSplitterBehavior"][1]["argsT"][3] = {} +defs["igSplitterBehavior"][1]["argsT"][3]["name"] = "axis" +defs["igSplitterBehavior"][1]["argsT"][3]["type"] = "ImGuiAxis" +defs["igSplitterBehavior"][1]["argsT"][4] = {} +defs["igSplitterBehavior"][1]["argsT"][4]["name"] = "size1" +defs["igSplitterBehavior"][1]["argsT"][4]["type"] = "float*" +defs["igSplitterBehavior"][1]["argsT"][5] = {} +defs["igSplitterBehavior"][1]["argsT"][5]["name"] = "size2" +defs["igSplitterBehavior"][1]["argsT"][5]["type"] = "float*" +defs["igSplitterBehavior"][1]["argsT"][6] = {} +defs["igSplitterBehavior"][1]["argsT"][6]["name"] = "min_size1" +defs["igSplitterBehavior"][1]["argsT"][6]["type"] = "float" +defs["igSplitterBehavior"][1]["argsT"][7] = {} +defs["igSplitterBehavior"][1]["argsT"][7]["name"] = "min_size2" +defs["igSplitterBehavior"][1]["argsT"][7]["type"] = "float" +defs["igSplitterBehavior"][1]["argsT"][8] = {} +defs["igSplitterBehavior"][1]["argsT"][8]["name"] = "hover_extend" +defs["igSplitterBehavior"][1]["argsT"][8]["type"] = "float" +defs["igSplitterBehavior"][1]["argsT"][9] = {} +defs["igSplitterBehavior"][1]["argsT"][9]["name"] = "hover_visibility_delay" +defs["igSplitterBehavior"][1]["argsT"][9]["type"] = "float" +defs["igSplitterBehavior"][1]["argsT"][10] = {} +defs["igSplitterBehavior"][1]["argsT"][10]["name"] = "bg_col" +defs["igSplitterBehavior"][1]["argsT"][10]["type"] = "ImU32" +defs["igSplitterBehavior"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id,ImGuiAxis axis,float* size1,float* size2,float min_size1,float min_size2,float hover_extend=0.0f,float hover_visibility_delay=0.0f,ImU32 bg_col=0)" +defs["igSplitterBehavior"][1]["call_args"] = "(bb,id,axis,size1,size2,min_size1,min_size2,hover_extend,hover_visibility_delay,bg_col)" +defs["igSplitterBehavior"][1]["cimguiname"] = "igSplitterBehavior" +defs["igSplitterBehavior"][1]["defaults"] = {} +defs["igSplitterBehavior"][1]["defaults"]["bg_col"] = "0" +defs["igSplitterBehavior"][1]["defaults"]["hover_extend"] = "0.0f" +defs["igSplitterBehavior"][1]["defaults"]["hover_visibility_delay"] = "0.0f" +defs["igSplitterBehavior"][1]["funcname"] = "SplitterBehavior" +defs["igSplitterBehavior"][1]["location"] = "imgui_internal:3370" +defs["igSplitterBehavior"][1]["namespace"] = "ImGui" +defs["igSplitterBehavior"][1]["ov_cimguiname"] = "igSplitterBehavior" +defs["igSplitterBehavior"][1]["ret"] = "bool" +defs["igSplitterBehavior"][1]["signature"] = "(const ImRect,ImGuiID,ImGuiAxis,float*,float*,float,float,float,float,ImU32)" +defs["igSplitterBehavior"][1]["stname"] = "" +defs["igSplitterBehavior"]["(const ImRect,ImGuiID,ImGuiAxis,float*,float*,float,float,float,float,ImU32)"] = defs["igSplitterBehavior"][1] +defs["igStartMouseMovingWindow"] = {} +defs["igStartMouseMovingWindow"][1] = {} +defs["igStartMouseMovingWindow"][1]["args"] = "(ImGuiWindow* window)" +defs["igStartMouseMovingWindow"][1]["argsT"] = {} +defs["igStartMouseMovingWindow"][1]["argsT"][1] = {} +defs["igStartMouseMovingWindow"][1]["argsT"][1]["name"] = "window" +defs["igStartMouseMovingWindow"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igStartMouseMovingWindow"][1]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igStartMouseMovingWindow"][1]["call_args"] = "(window)" +defs["igStartMouseMovingWindow"][1]["cimguiname"] = "igStartMouseMovingWindow" +defs["igStartMouseMovingWindow"][1]["defaults"] = {} +defs["igStartMouseMovingWindow"][1]["funcname"] = "StartMouseMovingWindow" +defs["igStartMouseMovingWindow"][1]["location"] = "imgui_internal:2971" +defs["igStartMouseMovingWindow"][1]["namespace"] = "ImGui" +defs["igStartMouseMovingWindow"][1]["ov_cimguiname"] = "igStartMouseMovingWindow" +defs["igStartMouseMovingWindow"][1]["ret"] = "void" +defs["igStartMouseMovingWindow"][1]["signature"] = "(ImGuiWindow*)" +defs["igStartMouseMovingWindow"][1]["stname"] = "" +defs["igStartMouseMovingWindow"]["(ImGuiWindow*)"] = defs["igStartMouseMovingWindow"][1] +defs["igStartMouseMovingWindowOrNode"] = {} +defs["igStartMouseMovingWindowOrNode"][1] = {} +defs["igStartMouseMovingWindowOrNode"][1]["args"] = "(ImGuiWindow* window,ImGuiDockNode* node,bool undock_floating_node)" +defs["igStartMouseMovingWindowOrNode"][1]["argsT"] = {} +defs["igStartMouseMovingWindowOrNode"][1]["argsT"][1] = {} +defs["igStartMouseMovingWindowOrNode"][1]["argsT"][1]["name"] = "window" +defs["igStartMouseMovingWindowOrNode"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igStartMouseMovingWindowOrNode"][1]["argsT"][2] = {} +defs["igStartMouseMovingWindowOrNode"][1]["argsT"][2]["name"] = "node" +defs["igStartMouseMovingWindowOrNode"][1]["argsT"][2]["type"] = "ImGuiDockNode*" +defs["igStartMouseMovingWindowOrNode"][1]["argsT"][3] = {} +defs["igStartMouseMovingWindowOrNode"][1]["argsT"][3]["name"] = "undock_floating_node" +defs["igStartMouseMovingWindowOrNode"][1]["argsT"][3]["type"] = "bool" +defs["igStartMouseMovingWindowOrNode"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiDockNode* node,bool undock_floating_node)" +defs["igStartMouseMovingWindowOrNode"][1]["call_args"] = "(window,node,undock_floating_node)" +defs["igStartMouseMovingWindowOrNode"][1]["cimguiname"] = "igStartMouseMovingWindowOrNode" +defs["igStartMouseMovingWindowOrNode"][1]["defaults"] = {} +defs["igStartMouseMovingWindowOrNode"][1]["funcname"] = "StartMouseMovingWindowOrNode" +defs["igStartMouseMovingWindowOrNode"][1]["location"] = "imgui_internal:2972" +defs["igStartMouseMovingWindowOrNode"][1]["namespace"] = "ImGui" +defs["igStartMouseMovingWindowOrNode"][1]["ov_cimguiname"] = "igStartMouseMovingWindowOrNode" +defs["igStartMouseMovingWindowOrNode"][1]["ret"] = "void" +defs["igStartMouseMovingWindowOrNode"][1]["signature"] = "(ImGuiWindow*,ImGuiDockNode*,bool)" +defs["igStartMouseMovingWindowOrNode"][1]["stname"] = "" +defs["igStartMouseMovingWindowOrNode"]["(ImGuiWindow*,ImGuiDockNode*,bool)"] = defs["igStartMouseMovingWindowOrNode"][1] defs["igStyleColorsClassic"] = {} defs["igStyleColorsClassic"][1] = {} defs["igStyleColorsClassic"][1]["args"] = "(ImGuiStyle* dst)" @@ -14398,6 +27905,213 @@ defs["igStyleColorsLight"][1]["ret"] = "void" defs["igStyleColorsLight"][1]["signature"] = "(ImGuiStyle*)" defs["igStyleColorsLight"][1]["stname"] = "" defs["igStyleColorsLight"]["(ImGuiStyle*)"] = defs["igStyleColorsLight"][1] +defs["igTabBarAddTab"] = {} +defs["igTabBarAddTab"][1] = {} +defs["igTabBarAddTab"][1]["args"] = "(ImGuiTabBar* tab_bar,ImGuiTabItemFlags tab_flags,ImGuiWindow* window)" +defs["igTabBarAddTab"][1]["argsT"] = {} +defs["igTabBarAddTab"][1]["argsT"][1] = {} +defs["igTabBarAddTab"][1]["argsT"][1]["name"] = "tab_bar" +defs["igTabBarAddTab"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igTabBarAddTab"][1]["argsT"][2] = {} +defs["igTabBarAddTab"][1]["argsT"][2]["name"] = "tab_flags" +defs["igTabBarAddTab"][1]["argsT"][2]["type"] = "ImGuiTabItemFlags" +defs["igTabBarAddTab"][1]["argsT"][3] = {} +defs["igTabBarAddTab"][1]["argsT"][3]["name"] = "window" +defs["igTabBarAddTab"][1]["argsT"][3]["type"] = "ImGuiWindow*" +defs["igTabBarAddTab"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar,ImGuiTabItemFlags tab_flags,ImGuiWindow* window)" +defs["igTabBarAddTab"][1]["call_args"] = "(tab_bar,tab_flags,window)" +defs["igTabBarAddTab"][1]["cimguiname"] = "igTabBarAddTab" +defs["igTabBarAddTab"][1]["defaults"] = {} +defs["igTabBarAddTab"][1]["funcname"] = "TabBarAddTab" +defs["igTabBarAddTab"][1]["location"] = "imgui_internal:3312" +defs["igTabBarAddTab"][1]["namespace"] = "ImGui" +defs["igTabBarAddTab"][1]["ov_cimguiname"] = "igTabBarAddTab" +defs["igTabBarAddTab"][1]["ret"] = "void" +defs["igTabBarAddTab"][1]["signature"] = "(ImGuiTabBar*,ImGuiTabItemFlags,ImGuiWindow*)" +defs["igTabBarAddTab"][1]["stname"] = "" +defs["igTabBarAddTab"]["(ImGuiTabBar*,ImGuiTabItemFlags,ImGuiWindow*)"] = defs["igTabBarAddTab"][1] +defs["igTabBarCloseTab"] = {} +defs["igTabBarCloseTab"][1] = {} +defs["igTabBarCloseTab"][1]["args"] = "(ImGuiTabBar* tab_bar,ImGuiTabItem* tab)" +defs["igTabBarCloseTab"][1]["argsT"] = {} +defs["igTabBarCloseTab"][1]["argsT"][1] = {} +defs["igTabBarCloseTab"][1]["argsT"][1]["name"] = "tab_bar" +defs["igTabBarCloseTab"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igTabBarCloseTab"][1]["argsT"][2] = {} +defs["igTabBarCloseTab"][1]["argsT"][2]["name"] = "tab" +defs["igTabBarCloseTab"][1]["argsT"][2]["type"] = "ImGuiTabItem*" +defs["igTabBarCloseTab"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar,ImGuiTabItem* tab)" +defs["igTabBarCloseTab"][1]["call_args"] = "(tab_bar,tab)" +defs["igTabBarCloseTab"][1]["cimguiname"] = "igTabBarCloseTab" +defs["igTabBarCloseTab"][1]["defaults"] = {} +defs["igTabBarCloseTab"][1]["funcname"] = "TabBarCloseTab" +defs["igTabBarCloseTab"][1]["location"] = "imgui_internal:3314" +defs["igTabBarCloseTab"][1]["namespace"] = "ImGui" +defs["igTabBarCloseTab"][1]["ov_cimguiname"] = "igTabBarCloseTab" +defs["igTabBarCloseTab"][1]["ret"] = "void" +defs["igTabBarCloseTab"][1]["signature"] = "(ImGuiTabBar*,ImGuiTabItem*)" +defs["igTabBarCloseTab"][1]["stname"] = "" +defs["igTabBarCloseTab"]["(ImGuiTabBar*,ImGuiTabItem*)"] = defs["igTabBarCloseTab"][1] +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"] = {} +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1] = {} +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["args"] = "(ImGuiTabBar* tab_bar)" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["argsT"] = {} +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["argsT"][1] = {} +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["argsT"][1]["name"] = "tab_bar" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar)" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["call_args"] = "(tab_bar)" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["cimguiname"] = "igTabBarFindMostRecentlySelectedTabForActiveWindow" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["defaults"] = {} +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["funcname"] = "TabBarFindMostRecentlySelectedTabForActiveWindow" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["location"] = "imgui_internal:3311" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["namespace"] = "ImGui" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["ov_cimguiname"] = "igTabBarFindMostRecentlySelectedTabForActiveWindow" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["ret"] = "ImGuiTabItem*" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["signature"] = "(ImGuiTabBar*)" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1]["stname"] = "" +defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"]["(ImGuiTabBar*)"] = defs["igTabBarFindMostRecentlySelectedTabForActiveWindow"][1] +defs["igTabBarFindTabByID"] = {} +defs["igTabBarFindTabByID"][1] = {} +defs["igTabBarFindTabByID"][1]["args"] = "(ImGuiTabBar* tab_bar,ImGuiID tab_id)" +defs["igTabBarFindTabByID"][1]["argsT"] = {} +defs["igTabBarFindTabByID"][1]["argsT"][1] = {} +defs["igTabBarFindTabByID"][1]["argsT"][1]["name"] = "tab_bar" +defs["igTabBarFindTabByID"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igTabBarFindTabByID"][1]["argsT"][2] = {} +defs["igTabBarFindTabByID"][1]["argsT"][2]["name"] = "tab_id" +defs["igTabBarFindTabByID"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igTabBarFindTabByID"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar,ImGuiID tab_id)" +defs["igTabBarFindTabByID"][1]["call_args"] = "(tab_bar,tab_id)" +defs["igTabBarFindTabByID"][1]["cimguiname"] = "igTabBarFindTabByID" +defs["igTabBarFindTabByID"][1]["defaults"] = {} +defs["igTabBarFindTabByID"][1]["funcname"] = "TabBarFindTabByID" +defs["igTabBarFindTabByID"][1]["location"] = "imgui_internal:3310" +defs["igTabBarFindTabByID"][1]["namespace"] = "ImGui" +defs["igTabBarFindTabByID"][1]["ov_cimguiname"] = "igTabBarFindTabByID" +defs["igTabBarFindTabByID"][1]["ret"] = "ImGuiTabItem*" +defs["igTabBarFindTabByID"][1]["signature"] = "(ImGuiTabBar*,ImGuiID)" +defs["igTabBarFindTabByID"][1]["stname"] = "" +defs["igTabBarFindTabByID"]["(ImGuiTabBar*,ImGuiID)"] = defs["igTabBarFindTabByID"][1] +defs["igTabBarProcessReorder"] = {} +defs["igTabBarProcessReorder"][1] = {} +defs["igTabBarProcessReorder"][1]["args"] = "(ImGuiTabBar* tab_bar)" +defs["igTabBarProcessReorder"][1]["argsT"] = {} +defs["igTabBarProcessReorder"][1]["argsT"][1] = {} +defs["igTabBarProcessReorder"][1]["argsT"][1]["name"] = "tab_bar" +defs["igTabBarProcessReorder"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igTabBarProcessReorder"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar)" +defs["igTabBarProcessReorder"][1]["call_args"] = "(tab_bar)" +defs["igTabBarProcessReorder"][1]["cimguiname"] = "igTabBarProcessReorder" +defs["igTabBarProcessReorder"][1]["defaults"] = {} +defs["igTabBarProcessReorder"][1]["funcname"] = "TabBarProcessReorder" +defs["igTabBarProcessReorder"][1]["location"] = "imgui_internal:3317" +defs["igTabBarProcessReorder"][1]["namespace"] = "ImGui" +defs["igTabBarProcessReorder"][1]["ov_cimguiname"] = "igTabBarProcessReorder" +defs["igTabBarProcessReorder"][1]["ret"] = "bool" +defs["igTabBarProcessReorder"][1]["signature"] = "(ImGuiTabBar*)" +defs["igTabBarProcessReorder"][1]["stname"] = "" +defs["igTabBarProcessReorder"]["(ImGuiTabBar*)"] = defs["igTabBarProcessReorder"][1] +defs["igTabBarQueueReorder"] = {} +defs["igTabBarQueueReorder"][1] = {} +defs["igTabBarQueueReorder"][1]["args"] = "(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,int offset)" +defs["igTabBarQueueReorder"][1]["argsT"] = {} +defs["igTabBarQueueReorder"][1]["argsT"][1] = {} +defs["igTabBarQueueReorder"][1]["argsT"][1]["name"] = "tab_bar" +defs["igTabBarQueueReorder"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igTabBarQueueReorder"][1]["argsT"][2] = {} +defs["igTabBarQueueReorder"][1]["argsT"][2]["name"] = "tab" +defs["igTabBarQueueReorder"][1]["argsT"][2]["type"] = "const ImGuiTabItem*" +defs["igTabBarQueueReorder"][1]["argsT"][3] = {} +defs["igTabBarQueueReorder"][1]["argsT"][3]["name"] = "offset" +defs["igTabBarQueueReorder"][1]["argsT"][3]["type"] = "int" +defs["igTabBarQueueReorder"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,int offset)" +defs["igTabBarQueueReorder"][1]["call_args"] = "(tab_bar,tab,offset)" +defs["igTabBarQueueReorder"][1]["cimguiname"] = "igTabBarQueueReorder" +defs["igTabBarQueueReorder"][1]["defaults"] = {} +defs["igTabBarQueueReorder"][1]["funcname"] = "TabBarQueueReorder" +defs["igTabBarQueueReorder"][1]["location"] = "imgui_internal:3315" +defs["igTabBarQueueReorder"][1]["namespace"] = "ImGui" +defs["igTabBarQueueReorder"][1]["ov_cimguiname"] = "igTabBarQueueReorder" +defs["igTabBarQueueReorder"][1]["ret"] = "void" +defs["igTabBarQueueReorder"][1]["signature"] = "(ImGuiTabBar*,const ImGuiTabItem*,int)" +defs["igTabBarQueueReorder"][1]["stname"] = "" +defs["igTabBarQueueReorder"]["(ImGuiTabBar*,const ImGuiTabItem*,int)"] = defs["igTabBarQueueReorder"][1] +defs["igTabBarQueueReorderFromMousePos"] = {} +defs["igTabBarQueueReorderFromMousePos"][1] = {} +defs["igTabBarQueueReorderFromMousePos"][1]["args"] = "(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,ImVec2 mouse_pos)" +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"] = {} +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"][1] = {} +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"][1]["name"] = "tab_bar" +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"][2] = {} +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"][2]["name"] = "tab" +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"][2]["type"] = "const ImGuiTabItem*" +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"][3] = {} +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"][3]["name"] = "mouse_pos" +defs["igTabBarQueueReorderFromMousePos"][1]["argsT"][3]["type"] = "ImVec2" +defs["igTabBarQueueReorderFromMousePos"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,ImVec2 mouse_pos)" +defs["igTabBarQueueReorderFromMousePos"][1]["call_args"] = "(tab_bar,tab,mouse_pos)" +defs["igTabBarQueueReorderFromMousePos"][1]["cimguiname"] = "igTabBarQueueReorderFromMousePos" +defs["igTabBarQueueReorderFromMousePos"][1]["defaults"] = {} +defs["igTabBarQueueReorderFromMousePos"][1]["funcname"] = "TabBarQueueReorderFromMousePos" +defs["igTabBarQueueReorderFromMousePos"][1]["location"] = "imgui_internal:3316" +defs["igTabBarQueueReorderFromMousePos"][1]["namespace"] = "ImGui" +defs["igTabBarQueueReorderFromMousePos"][1]["ov_cimguiname"] = "igTabBarQueueReorderFromMousePos" +defs["igTabBarQueueReorderFromMousePos"][1]["ret"] = "void" +defs["igTabBarQueueReorderFromMousePos"][1]["signature"] = "(ImGuiTabBar*,const ImGuiTabItem*,ImVec2)" +defs["igTabBarQueueReorderFromMousePos"][1]["stname"] = "" +defs["igTabBarQueueReorderFromMousePos"]["(ImGuiTabBar*,const ImGuiTabItem*,ImVec2)"] = defs["igTabBarQueueReorderFromMousePos"][1] +defs["igTabBarRemoveTab"] = {} +defs["igTabBarRemoveTab"][1] = {} +defs["igTabBarRemoveTab"][1]["args"] = "(ImGuiTabBar* tab_bar,ImGuiID tab_id)" +defs["igTabBarRemoveTab"][1]["argsT"] = {} +defs["igTabBarRemoveTab"][1]["argsT"][1] = {} +defs["igTabBarRemoveTab"][1]["argsT"][1]["name"] = "tab_bar" +defs["igTabBarRemoveTab"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igTabBarRemoveTab"][1]["argsT"][2] = {} +defs["igTabBarRemoveTab"][1]["argsT"][2]["name"] = "tab_id" +defs["igTabBarRemoveTab"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igTabBarRemoveTab"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar,ImGuiID tab_id)" +defs["igTabBarRemoveTab"][1]["call_args"] = "(tab_bar,tab_id)" +defs["igTabBarRemoveTab"][1]["cimguiname"] = "igTabBarRemoveTab" +defs["igTabBarRemoveTab"][1]["defaults"] = {} +defs["igTabBarRemoveTab"][1]["funcname"] = "TabBarRemoveTab" +defs["igTabBarRemoveTab"][1]["location"] = "imgui_internal:3313" +defs["igTabBarRemoveTab"][1]["namespace"] = "ImGui" +defs["igTabBarRemoveTab"][1]["ov_cimguiname"] = "igTabBarRemoveTab" +defs["igTabBarRemoveTab"][1]["ret"] = "void" +defs["igTabBarRemoveTab"][1]["signature"] = "(ImGuiTabBar*,ImGuiID)" +defs["igTabBarRemoveTab"][1]["stname"] = "" +defs["igTabBarRemoveTab"]["(ImGuiTabBar*,ImGuiID)"] = defs["igTabBarRemoveTab"][1] +defs["igTabItemBackground"] = {} +defs["igTabItemBackground"][1] = {} +defs["igTabItemBackground"][1]["args"] = "(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImU32 col)" +defs["igTabItemBackground"][1]["argsT"] = {} +defs["igTabItemBackground"][1]["argsT"][1] = {} +defs["igTabItemBackground"][1]["argsT"][1]["name"] = "draw_list" +defs["igTabItemBackground"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igTabItemBackground"][1]["argsT"][2] = {} +defs["igTabItemBackground"][1]["argsT"][2]["name"] = "bb" +defs["igTabItemBackground"][1]["argsT"][2]["type"] = "const ImRect" +defs["igTabItemBackground"][1]["argsT"][3] = {} +defs["igTabItemBackground"][1]["argsT"][3]["name"] = "flags" +defs["igTabItemBackground"][1]["argsT"][3]["type"] = "ImGuiTabItemFlags" +defs["igTabItemBackground"][1]["argsT"][4] = {} +defs["igTabItemBackground"][1]["argsT"][4]["name"] = "col" +defs["igTabItemBackground"][1]["argsT"][4]["type"] = "ImU32" +defs["igTabItemBackground"][1]["argsoriginal"] = "(ImDrawList* draw_list,const ImRect& bb,ImGuiTabItemFlags flags,ImU32 col)" +defs["igTabItemBackground"][1]["call_args"] = "(draw_list,bb,flags,col)" +defs["igTabItemBackground"][1]["cimguiname"] = "igTabItemBackground" +defs["igTabItemBackground"][1]["defaults"] = {} +defs["igTabItemBackground"][1]["funcname"] = "TabItemBackground" +defs["igTabItemBackground"][1]["location"] = "imgui_internal:3321" +defs["igTabItemBackground"][1]["namespace"] = "ImGui" +defs["igTabItemBackground"][1]["ov_cimguiname"] = "igTabItemBackground" +defs["igTabItemBackground"][1]["ret"] = "void" +defs["igTabItemBackground"][1]["signature"] = "(ImDrawList*,const ImRect,ImGuiTabItemFlags,ImU32)" +defs["igTabItemBackground"][1]["stname"] = "" +defs["igTabItemBackground"]["(ImDrawList*,const ImRect,ImGuiTabItemFlags,ImU32)"] = defs["igTabItemBackground"][1] defs["igTabItemButton"] = {} defs["igTabItemButton"][1] = {} defs["igTabItemButton"][1]["args"] = "(const char* label,ImGuiTabItemFlags flags)" @@ -14421,6 +28135,447 @@ defs["igTabItemButton"][1]["ret"] = "bool" defs["igTabItemButton"][1]["signature"] = "(const char*,ImGuiTabItemFlags)" defs["igTabItemButton"][1]["stname"] = "" defs["igTabItemButton"]["(const char*,ImGuiTabItemFlags)"] = defs["igTabItemButton"][1] +defs["igTabItemCalcSize"] = {} +defs["igTabItemCalcSize"][1] = {} +defs["igTabItemCalcSize"][1]["args"] = "(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker)" +defs["igTabItemCalcSize"][1]["argsT"] = {} +defs["igTabItemCalcSize"][1]["argsT"][1] = {} +defs["igTabItemCalcSize"][1]["argsT"][1]["name"] = "pOut" +defs["igTabItemCalcSize"][1]["argsT"][1]["type"] = "ImVec2*" +defs["igTabItemCalcSize"][1]["argsT"][2] = {} +defs["igTabItemCalcSize"][1]["argsT"][2]["name"] = "label" +defs["igTabItemCalcSize"][1]["argsT"][2]["type"] = "const char*" +defs["igTabItemCalcSize"][1]["argsT"][3] = {} +defs["igTabItemCalcSize"][1]["argsT"][3]["name"] = "has_close_button_or_unsaved_marker" +defs["igTabItemCalcSize"][1]["argsT"][3]["type"] = "bool" +defs["igTabItemCalcSize"][1]["argsoriginal"] = "(const char* label,bool has_close_button_or_unsaved_marker)" +defs["igTabItemCalcSize"][1]["call_args"] = "(label,has_close_button_or_unsaved_marker)" +defs["igTabItemCalcSize"][1]["cimguiname"] = "igTabItemCalcSize" +defs["igTabItemCalcSize"][1]["defaults"] = {} +defs["igTabItemCalcSize"][1]["funcname"] = "TabItemCalcSize" +defs["igTabItemCalcSize"][1]["location"] = "imgui_internal:3319" +defs["igTabItemCalcSize"][1]["namespace"] = "ImGui" +defs["igTabItemCalcSize"][1]["nonUDT"] = 1 +defs["igTabItemCalcSize"][1]["ov_cimguiname"] = "igTabItemCalcSize_Str" +defs["igTabItemCalcSize"][1]["ret"] = "void" +defs["igTabItemCalcSize"][1]["signature"] = "(const char*,bool)" +defs["igTabItemCalcSize"][1]["stname"] = "" +defs["igTabItemCalcSize"][2] = {} +defs["igTabItemCalcSize"][2]["args"] = "(ImVec2 *pOut,ImGuiWindow* window)" +defs["igTabItemCalcSize"][2]["argsT"] = {} +defs["igTabItemCalcSize"][2]["argsT"][1] = {} +defs["igTabItemCalcSize"][2]["argsT"][1]["name"] = "pOut" +defs["igTabItemCalcSize"][2]["argsT"][1]["type"] = "ImVec2*" +defs["igTabItemCalcSize"][2]["argsT"][2] = {} +defs["igTabItemCalcSize"][2]["argsT"][2]["name"] = "window" +defs["igTabItemCalcSize"][2]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igTabItemCalcSize"][2]["argsoriginal"] = "(ImGuiWindow* window)" +defs["igTabItemCalcSize"][2]["call_args"] = "(window)" +defs["igTabItemCalcSize"][2]["cimguiname"] = "igTabItemCalcSize" +defs["igTabItemCalcSize"][2]["defaults"] = {} +defs["igTabItemCalcSize"][2]["funcname"] = "TabItemCalcSize" +defs["igTabItemCalcSize"][2]["location"] = "imgui_internal:3320" +defs["igTabItemCalcSize"][2]["namespace"] = "ImGui" +defs["igTabItemCalcSize"][2]["nonUDT"] = 1 +defs["igTabItemCalcSize"][2]["ov_cimguiname"] = "igTabItemCalcSize_WindowPtr" +defs["igTabItemCalcSize"][2]["ret"] = "void" +defs["igTabItemCalcSize"][2]["signature"] = "(ImGuiWindow*)" +defs["igTabItemCalcSize"][2]["stname"] = "" +defs["igTabItemCalcSize"]["(ImGuiWindow*)"] = defs["igTabItemCalcSize"][2] +defs["igTabItemCalcSize"]["(const char*,bool)"] = defs["igTabItemCalcSize"][1] +defs["igTabItemEx"] = {} +defs["igTabItemEx"][1] = {} +defs["igTabItemEx"][1]["args"] = "(ImGuiTabBar* tab_bar,const char* label,bool* p_open,ImGuiTabItemFlags flags,ImGuiWindow* docked_window)" +defs["igTabItemEx"][1]["argsT"] = {} +defs["igTabItemEx"][1]["argsT"][1] = {} +defs["igTabItemEx"][1]["argsT"][1]["name"] = "tab_bar" +defs["igTabItemEx"][1]["argsT"][1]["type"] = "ImGuiTabBar*" +defs["igTabItemEx"][1]["argsT"][2] = {} +defs["igTabItemEx"][1]["argsT"][2]["name"] = "label" +defs["igTabItemEx"][1]["argsT"][2]["type"] = "const char*" +defs["igTabItemEx"][1]["argsT"][3] = {} +defs["igTabItemEx"][1]["argsT"][3]["name"] = "p_open" +defs["igTabItemEx"][1]["argsT"][3]["type"] = "bool*" +defs["igTabItemEx"][1]["argsT"][4] = {} +defs["igTabItemEx"][1]["argsT"][4]["name"] = "flags" +defs["igTabItemEx"][1]["argsT"][4]["type"] = "ImGuiTabItemFlags" +defs["igTabItemEx"][1]["argsT"][5] = {} +defs["igTabItemEx"][1]["argsT"][5]["name"] = "docked_window" +defs["igTabItemEx"][1]["argsT"][5]["type"] = "ImGuiWindow*" +defs["igTabItemEx"][1]["argsoriginal"] = "(ImGuiTabBar* tab_bar,const char* label,bool* p_open,ImGuiTabItemFlags flags,ImGuiWindow* docked_window)" +defs["igTabItemEx"][1]["call_args"] = "(tab_bar,label,p_open,flags,docked_window)" +defs["igTabItemEx"][1]["cimguiname"] = "igTabItemEx" +defs["igTabItemEx"][1]["defaults"] = {} +defs["igTabItemEx"][1]["funcname"] = "TabItemEx" +defs["igTabItemEx"][1]["location"] = "imgui_internal:3318" +defs["igTabItemEx"][1]["namespace"] = "ImGui" +defs["igTabItemEx"][1]["ov_cimguiname"] = "igTabItemEx" +defs["igTabItemEx"][1]["ret"] = "bool" +defs["igTabItemEx"][1]["signature"] = "(ImGuiTabBar*,const char*,bool*,ImGuiTabItemFlags,ImGuiWindow*)" +defs["igTabItemEx"][1]["stname"] = "" +defs["igTabItemEx"]["(ImGuiTabBar*,const char*,bool*,ImGuiTabItemFlags,ImGuiWindow*)"] = defs["igTabItemEx"][1] +defs["igTabItemLabelAndCloseButton"] = {} +defs["igTabItemLabelAndCloseButton"][1] = {} +defs["igTabItemLabelAndCloseButton"][1]["args"] = "(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImVec2 frame_padding,const char* label,ImGuiID tab_id,ImGuiID close_button_id,bool is_contents_visible,bool* out_just_closed,bool* out_text_clipped)" +defs["igTabItemLabelAndCloseButton"][1]["argsT"] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][1] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][1]["name"] = "draw_list" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][1]["type"] = "ImDrawList*" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][2] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][2]["name"] = "bb" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][2]["type"] = "const ImRect" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][3] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][3]["name"] = "flags" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][3]["type"] = "ImGuiTabItemFlags" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][4] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][4]["name"] = "frame_padding" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][4]["type"] = "ImVec2" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][5] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][5]["name"] = "label" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][5]["type"] = "const char*" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][6] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][6]["name"] = "tab_id" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][6]["type"] = "ImGuiID" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][7] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][7]["name"] = "close_button_id" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][7]["type"] = "ImGuiID" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][8] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][8]["name"] = "is_contents_visible" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][8]["type"] = "bool" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][9] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][9]["name"] = "out_just_closed" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][9]["type"] = "bool*" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][10] = {} +defs["igTabItemLabelAndCloseButton"][1]["argsT"][10]["name"] = "out_text_clipped" +defs["igTabItemLabelAndCloseButton"][1]["argsT"][10]["type"] = "bool*" +defs["igTabItemLabelAndCloseButton"][1]["argsoriginal"] = "(ImDrawList* draw_list,const ImRect& bb,ImGuiTabItemFlags flags,ImVec2 frame_padding,const char* label,ImGuiID tab_id,ImGuiID close_button_id,bool is_contents_visible,bool* out_just_closed,bool* out_text_clipped)" +defs["igTabItemLabelAndCloseButton"][1]["call_args"] = "(draw_list,bb,flags,frame_padding,label,tab_id,close_button_id,is_contents_visible,out_just_closed,out_text_clipped)" +defs["igTabItemLabelAndCloseButton"][1]["cimguiname"] = "igTabItemLabelAndCloseButton" +defs["igTabItemLabelAndCloseButton"][1]["defaults"] = {} +defs["igTabItemLabelAndCloseButton"][1]["funcname"] = "TabItemLabelAndCloseButton" +defs["igTabItemLabelAndCloseButton"][1]["location"] = "imgui_internal:3322" +defs["igTabItemLabelAndCloseButton"][1]["namespace"] = "ImGui" +defs["igTabItemLabelAndCloseButton"][1]["ov_cimguiname"] = "igTabItemLabelAndCloseButton" +defs["igTabItemLabelAndCloseButton"][1]["ret"] = "void" +defs["igTabItemLabelAndCloseButton"][1]["signature"] = "(ImDrawList*,const ImRect,ImGuiTabItemFlags,ImVec2,const char*,ImGuiID,ImGuiID,bool,bool*,bool*)" +defs["igTabItemLabelAndCloseButton"][1]["stname"] = "" +defs["igTabItemLabelAndCloseButton"]["(ImDrawList*,const ImRect,ImGuiTabItemFlags,ImVec2,const char*,ImGuiID,ImGuiID,bool,bool*,bool*)"] = defs["igTabItemLabelAndCloseButton"][1] +defs["igTableBeginApplyRequests"] = {} +defs["igTableBeginApplyRequests"][1] = {} +defs["igTableBeginApplyRequests"][1]["args"] = "(ImGuiTable* table)" +defs["igTableBeginApplyRequests"][1]["argsT"] = {} +defs["igTableBeginApplyRequests"][1]["argsT"][1] = {} +defs["igTableBeginApplyRequests"][1]["argsT"][1]["name"] = "table" +defs["igTableBeginApplyRequests"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableBeginApplyRequests"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableBeginApplyRequests"][1]["call_args"] = "(table)" +defs["igTableBeginApplyRequests"][1]["cimguiname"] = "igTableBeginApplyRequests" +defs["igTableBeginApplyRequests"][1]["defaults"] = {} +defs["igTableBeginApplyRequests"][1]["funcname"] = "TableBeginApplyRequests" +defs["igTableBeginApplyRequests"][1]["location"] = "imgui_internal:3269" +defs["igTableBeginApplyRequests"][1]["namespace"] = "ImGui" +defs["igTableBeginApplyRequests"][1]["ov_cimguiname"] = "igTableBeginApplyRequests" +defs["igTableBeginApplyRequests"][1]["ret"] = "void" +defs["igTableBeginApplyRequests"][1]["signature"] = "(ImGuiTable*)" +defs["igTableBeginApplyRequests"][1]["stname"] = "" +defs["igTableBeginApplyRequests"]["(ImGuiTable*)"] = defs["igTableBeginApplyRequests"][1] +defs["igTableBeginCell"] = {} +defs["igTableBeginCell"][1] = {} +defs["igTableBeginCell"][1]["args"] = "(ImGuiTable* table,int column_n)" +defs["igTableBeginCell"][1]["argsT"] = {} +defs["igTableBeginCell"][1]["argsT"][1] = {} +defs["igTableBeginCell"][1]["argsT"][1]["name"] = "table" +defs["igTableBeginCell"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableBeginCell"][1]["argsT"][2] = {} +defs["igTableBeginCell"][1]["argsT"][2]["name"] = "column_n" +defs["igTableBeginCell"][1]["argsT"][2]["type"] = "int" +defs["igTableBeginCell"][1]["argsoriginal"] = "(ImGuiTable* table,int column_n)" +defs["igTableBeginCell"][1]["call_args"] = "(table,column_n)" +defs["igTableBeginCell"][1]["cimguiname"] = "igTableBeginCell" +defs["igTableBeginCell"][1]["defaults"] = {} +defs["igTableBeginCell"][1]["funcname"] = "TableBeginCell" +defs["igTableBeginCell"][1]["location"] = "imgui_internal:3286" +defs["igTableBeginCell"][1]["namespace"] = "ImGui" +defs["igTableBeginCell"][1]["ov_cimguiname"] = "igTableBeginCell" +defs["igTableBeginCell"][1]["ret"] = "void" +defs["igTableBeginCell"][1]["signature"] = "(ImGuiTable*,int)" +defs["igTableBeginCell"][1]["stname"] = "" +defs["igTableBeginCell"]["(ImGuiTable*,int)"] = defs["igTableBeginCell"][1] +defs["igTableBeginContextMenuPopup"] = {} +defs["igTableBeginContextMenuPopup"][1] = {} +defs["igTableBeginContextMenuPopup"][1]["args"] = "(ImGuiTable* table)" +defs["igTableBeginContextMenuPopup"][1]["argsT"] = {} +defs["igTableBeginContextMenuPopup"][1]["argsT"][1] = {} +defs["igTableBeginContextMenuPopup"][1]["argsT"][1]["name"] = "table" +defs["igTableBeginContextMenuPopup"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableBeginContextMenuPopup"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableBeginContextMenuPopup"][1]["call_args"] = "(table)" +defs["igTableBeginContextMenuPopup"][1]["cimguiname"] = "igTableBeginContextMenuPopup" +defs["igTableBeginContextMenuPopup"][1]["defaults"] = {} +defs["igTableBeginContextMenuPopup"][1]["funcname"] = "TableBeginContextMenuPopup" +defs["igTableBeginContextMenuPopup"][1]["location"] = "imgui_internal:3276" +defs["igTableBeginContextMenuPopup"][1]["namespace"] = "ImGui" +defs["igTableBeginContextMenuPopup"][1]["ov_cimguiname"] = "igTableBeginContextMenuPopup" +defs["igTableBeginContextMenuPopup"][1]["ret"] = "bool" +defs["igTableBeginContextMenuPopup"][1]["signature"] = "(ImGuiTable*)" +defs["igTableBeginContextMenuPopup"][1]["stname"] = "" +defs["igTableBeginContextMenuPopup"]["(ImGuiTable*)"] = defs["igTableBeginContextMenuPopup"][1] +defs["igTableBeginInitMemory"] = {} +defs["igTableBeginInitMemory"][1] = {} +defs["igTableBeginInitMemory"][1]["args"] = "(ImGuiTable* table,int columns_count)" +defs["igTableBeginInitMemory"][1]["argsT"] = {} +defs["igTableBeginInitMemory"][1]["argsT"][1] = {} +defs["igTableBeginInitMemory"][1]["argsT"][1]["name"] = "table" +defs["igTableBeginInitMemory"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableBeginInitMemory"][1]["argsT"][2] = {} +defs["igTableBeginInitMemory"][1]["argsT"][2]["name"] = "columns_count" +defs["igTableBeginInitMemory"][1]["argsT"][2]["type"] = "int" +defs["igTableBeginInitMemory"][1]["argsoriginal"] = "(ImGuiTable* table,int columns_count)" +defs["igTableBeginInitMemory"][1]["call_args"] = "(table,columns_count)" +defs["igTableBeginInitMemory"][1]["cimguiname"] = "igTableBeginInitMemory" +defs["igTableBeginInitMemory"][1]["defaults"] = {} +defs["igTableBeginInitMemory"][1]["funcname"] = "TableBeginInitMemory" +defs["igTableBeginInitMemory"][1]["location"] = "imgui_internal:3268" +defs["igTableBeginInitMemory"][1]["namespace"] = "ImGui" +defs["igTableBeginInitMemory"][1]["ov_cimguiname"] = "igTableBeginInitMemory" +defs["igTableBeginInitMemory"][1]["ret"] = "void" +defs["igTableBeginInitMemory"][1]["signature"] = "(ImGuiTable*,int)" +defs["igTableBeginInitMemory"][1]["stname"] = "" +defs["igTableBeginInitMemory"]["(ImGuiTable*,int)"] = defs["igTableBeginInitMemory"][1] +defs["igTableBeginRow"] = {} +defs["igTableBeginRow"][1] = {} +defs["igTableBeginRow"][1]["args"] = "(ImGuiTable* table)" +defs["igTableBeginRow"][1]["argsT"] = {} +defs["igTableBeginRow"][1]["argsT"][1] = {} +defs["igTableBeginRow"][1]["argsT"][1]["name"] = "table" +defs["igTableBeginRow"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableBeginRow"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableBeginRow"][1]["call_args"] = "(table)" +defs["igTableBeginRow"][1]["cimguiname"] = "igTableBeginRow" +defs["igTableBeginRow"][1]["defaults"] = {} +defs["igTableBeginRow"][1]["funcname"] = "TableBeginRow" +defs["igTableBeginRow"][1]["location"] = "imgui_internal:3284" +defs["igTableBeginRow"][1]["namespace"] = "ImGui" +defs["igTableBeginRow"][1]["ov_cimguiname"] = "igTableBeginRow" +defs["igTableBeginRow"][1]["ret"] = "void" +defs["igTableBeginRow"][1]["signature"] = "(ImGuiTable*)" +defs["igTableBeginRow"][1]["stname"] = "" +defs["igTableBeginRow"]["(ImGuiTable*)"] = defs["igTableBeginRow"][1] +defs["igTableDrawBorders"] = {} +defs["igTableDrawBorders"][1] = {} +defs["igTableDrawBorders"][1]["args"] = "(ImGuiTable* table)" +defs["igTableDrawBorders"][1]["argsT"] = {} +defs["igTableDrawBorders"][1]["argsT"][1] = {} +defs["igTableDrawBorders"][1]["argsT"][1]["name"] = "table" +defs["igTableDrawBorders"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableDrawBorders"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableDrawBorders"][1]["call_args"] = "(table)" +defs["igTableDrawBorders"][1]["cimguiname"] = "igTableDrawBorders" +defs["igTableDrawBorders"][1]["defaults"] = {} +defs["igTableDrawBorders"][1]["funcname"] = "TableDrawBorders" +defs["igTableDrawBorders"][1]["location"] = "imgui_internal:3274" +defs["igTableDrawBorders"][1]["namespace"] = "ImGui" +defs["igTableDrawBorders"][1]["ov_cimguiname"] = "igTableDrawBorders" +defs["igTableDrawBorders"][1]["ret"] = "void" +defs["igTableDrawBorders"][1]["signature"] = "(ImGuiTable*)" +defs["igTableDrawBorders"][1]["stname"] = "" +defs["igTableDrawBorders"]["(ImGuiTable*)"] = defs["igTableDrawBorders"][1] +defs["igTableDrawContextMenu"] = {} +defs["igTableDrawContextMenu"][1] = {} +defs["igTableDrawContextMenu"][1]["args"] = "(ImGuiTable* table)" +defs["igTableDrawContextMenu"][1]["argsT"] = {} +defs["igTableDrawContextMenu"][1]["argsT"][1] = {} +defs["igTableDrawContextMenu"][1]["argsT"][1]["name"] = "table" +defs["igTableDrawContextMenu"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableDrawContextMenu"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableDrawContextMenu"][1]["call_args"] = "(table)" +defs["igTableDrawContextMenu"][1]["cimguiname"] = "igTableDrawContextMenu" +defs["igTableDrawContextMenu"][1]["defaults"] = {} +defs["igTableDrawContextMenu"][1]["funcname"] = "TableDrawContextMenu" +defs["igTableDrawContextMenu"][1]["location"] = "imgui_internal:3275" +defs["igTableDrawContextMenu"][1]["namespace"] = "ImGui" +defs["igTableDrawContextMenu"][1]["ov_cimguiname"] = "igTableDrawContextMenu" +defs["igTableDrawContextMenu"][1]["ret"] = "void" +defs["igTableDrawContextMenu"][1]["signature"] = "(ImGuiTable*)" +defs["igTableDrawContextMenu"][1]["stname"] = "" +defs["igTableDrawContextMenu"]["(ImGuiTable*)"] = defs["igTableDrawContextMenu"][1] +defs["igTableEndCell"] = {} +defs["igTableEndCell"][1] = {} +defs["igTableEndCell"][1]["args"] = "(ImGuiTable* table)" +defs["igTableEndCell"][1]["argsT"] = {} +defs["igTableEndCell"][1]["argsT"][1] = {} +defs["igTableEndCell"][1]["argsT"][1]["name"] = "table" +defs["igTableEndCell"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableEndCell"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableEndCell"][1]["call_args"] = "(table)" +defs["igTableEndCell"][1]["cimguiname"] = "igTableEndCell" +defs["igTableEndCell"][1]["defaults"] = {} +defs["igTableEndCell"][1]["funcname"] = "TableEndCell" +defs["igTableEndCell"][1]["location"] = "imgui_internal:3287" +defs["igTableEndCell"][1]["namespace"] = "ImGui" +defs["igTableEndCell"][1]["ov_cimguiname"] = "igTableEndCell" +defs["igTableEndCell"][1]["ret"] = "void" +defs["igTableEndCell"][1]["signature"] = "(ImGuiTable*)" +defs["igTableEndCell"][1]["stname"] = "" +defs["igTableEndCell"]["(ImGuiTable*)"] = defs["igTableEndCell"][1] +defs["igTableEndRow"] = {} +defs["igTableEndRow"][1] = {} +defs["igTableEndRow"][1]["args"] = "(ImGuiTable* table)" +defs["igTableEndRow"][1]["argsT"] = {} +defs["igTableEndRow"][1]["argsT"][1] = {} +defs["igTableEndRow"][1]["argsT"][1]["name"] = "table" +defs["igTableEndRow"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableEndRow"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableEndRow"][1]["call_args"] = "(table)" +defs["igTableEndRow"][1]["cimguiname"] = "igTableEndRow" +defs["igTableEndRow"][1]["defaults"] = {} +defs["igTableEndRow"][1]["funcname"] = "TableEndRow" +defs["igTableEndRow"][1]["location"] = "imgui_internal:3285" +defs["igTableEndRow"][1]["namespace"] = "ImGui" +defs["igTableEndRow"][1]["ov_cimguiname"] = "igTableEndRow" +defs["igTableEndRow"][1]["ret"] = "void" +defs["igTableEndRow"][1]["signature"] = "(ImGuiTable*)" +defs["igTableEndRow"][1]["stname"] = "" +defs["igTableEndRow"]["(ImGuiTable*)"] = defs["igTableEndRow"][1] +defs["igTableFindByID"] = {} +defs["igTableFindByID"][1] = {} +defs["igTableFindByID"][1]["args"] = "(ImGuiID id)" +defs["igTableFindByID"][1]["argsT"] = {} +defs["igTableFindByID"][1]["argsT"][1] = {} +defs["igTableFindByID"][1]["argsT"][1]["name"] = "id" +defs["igTableFindByID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTableFindByID"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igTableFindByID"][1]["call_args"] = "(id)" +defs["igTableFindByID"][1]["cimguiname"] = "igTableFindByID" +defs["igTableFindByID"][1]["defaults"] = {} +defs["igTableFindByID"][1]["funcname"] = "TableFindByID" +defs["igTableFindByID"][1]["location"] = "imgui_internal:3266" +defs["igTableFindByID"][1]["namespace"] = "ImGui" +defs["igTableFindByID"][1]["ov_cimguiname"] = "igTableFindByID" +defs["igTableFindByID"][1]["ret"] = "ImGuiTable*" +defs["igTableFindByID"][1]["signature"] = "(ImGuiID)" +defs["igTableFindByID"][1]["stname"] = "" +defs["igTableFindByID"]["(ImGuiID)"] = defs["igTableFindByID"][1] +defs["igTableFixColumnSortDirection"] = {} +defs["igTableFixColumnSortDirection"][1] = {} +defs["igTableFixColumnSortDirection"][1]["args"] = "(ImGuiTable* table,ImGuiTableColumn* column)" +defs["igTableFixColumnSortDirection"][1]["argsT"] = {} +defs["igTableFixColumnSortDirection"][1]["argsT"][1] = {} +defs["igTableFixColumnSortDirection"][1]["argsT"][1]["name"] = "table" +defs["igTableFixColumnSortDirection"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableFixColumnSortDirection"][1]["argsT"][2] = {} +defs["igTableFixColumnSortDirection"][1]["argsT"][2]["name"] = "column" +defs["igTableFixColumnSortDirection"][1]["argsT"][2]["type"] = "ImGuiTableColumn*" +defs["igTableFixColumnSortDirection"][1]["argsoriginal"] = "(ImGuiTable* table,ImGuiTableColumn* column)" +defs["igTableFixColumnSortDirection"][1]["call_args"] = "(table,column)" +defs["igTableFixColumnSortDirection"][1]["cimguiname"] = "igTableFixColumnSortDirection" +defs["igTableFixColumnSortDirection"][1]["defaults"] = {} +defs["igTableFixColumnSortDirection"][1]["funcname"] = "TableFixColumnSortDirection" +defs["igTableFixColumnSortDirection"][1]["location"] = "imgui_internal:3282" +defs["igTableFixColumnSortDirection"][1]["namespace"] = "ImGui" +defs["igTableFixColumnSortDirection"][1]["ov_cimguiname"] = "igTableFixColumnSortDirection" +defs["igTableFixColumnSortDirection"][1]["ret"] = "void" +defs["igTableFixColumnSortDirection"][1]["signature"] = "(ImGuiTable*,ImGuiTableColumn*)" +defs["igTableFixColumnSortDirection"][1]["stname"] = "" +defs["igTableFixColumnSortDirection"]["(ImGuiTable*,ImGuiTableColumn*)"] = defs["igTableFixColumnSortDirection"][1] +defs["igTableGcCompactSettings"] = {} +defs["igTableGcCompactSettings"][1] = {} +defs["igTableGcCompactSettings"][1]["args"] = "()" +defs["igTableGcCompactSettings"][1]["argsT"] = {} +defs["igTableGcCompactSettings"][1]["argsoriginal"] = "()" +defs["igTableGcCompactSettings"][1]["call_args"] = "()" +defs["igTableGcCompactSettings"][1]["cimguiname"] = "igTableGcCompactSettings" +defs["igTableGcCompactSettings"][1]["defaults"] = {} +defs["igTableGcCompactSettings"][1]["funcname"] = "TableGcCompactSettings" +defs["igTableGcCompactSettings"][1]["location"] = "imgui_internal:3297" +defs["igTableGcCompactSettings"][1]["namespace"] = "ImGui" +defs["igTableGcCompactSettings"][1]["ov_cimguiname"] = "igTableGcCompactSettings" +defs["igTableGcCompactSettings"][1]["ret"] = "void" +defs["igTableGcCompactSettings"][1]["signature"] = "()" +defs["igTableGcCompactSettings"][1]["stname"] = "" +defs["igTableGcCompactSettings"]["()"] = defs["igTableGcCompactSettings"][1] +defs["igTableGcCompactTransientBuffers"] = {} +defs["igTableGcCompactTransientBuffers"][1] = {} +defs["igTableGcCompactTransientBuffers"][1]["args"] = "(ImGuiTable* table)" +defs["igTableGcCompactTransientBuffers"][1]["argsT"] = {} +defs["igTableGcCompactTransientBuffers"][1]["argsT"][1] = {} +defs["igTableGcCompactTransientBuffers"][1]["argsT"][1]["name"] = "table" +defs["igTableGcCompactTransientBuffers"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableGcCompactTransientBuffers"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableGcCompactTransientBuffers"][1]["call_args"] = "(table)" +defs["igTableGcCompactTransientBuffers"][1]["cimguiname"] = "igTableGcCompactTransientBuffers" +defs["igTableGcCompactTransientBuffers"][1]["defaults"] = {} +defs["igTableGcCompactTransientBuffers"][1]["funcname"] = "TableGcCompactTransientBuffers" +defs["igTableGcCompactTransientBuffers"][1]["location"] = "imgui_internal:3295" +defs["igTableGcCompactTransientBuffers"][1]["namespace"] = "ImGui" +defs["igTableGcCompactTransientBuffers"][1]["ov_cimguiname"] = "igTableGcCompactTransientBuffers_TablePtr" +defs["igTableGcCompactTransientBuffers"][1]["ret"] = "void" +defs["igTableGcCompactTransientBuffers"][1]["signature"] = "(ImGuiTable*)" +defs["igTableGcCompactTransientBuffers"][1]["stname"] = "" +defs["igTableGcCompactTransientBuffers"][2] = {} +defs["igTableGcCompactTransientBuffers"][2]["args"] = "(ImGuiTableTempData* table)" +defs["igTableGcCompactTransientBuffers"][2]["argsT"] = {} +defs["igTableGcCompactTransientBuffers"][2]["argsT"][1] = {} +defs["igTableGcCompactTransientBuffers"][2]["argsT"][1]["name"] = "table" +defs["igTableGcCompactTransientBuffers"][2]["argsT"][1]["type"] = "ImGuiTableTempData*" +defs["igTableGcCompactTransientBuffers"][2]["argsoriginal"] = "(ImGuiTableTempData* table)" +defs["igTableGcCompactTransientBuffers"][2]["call_args"] = "(table)" +defs["igTableGcCompactTransientBuffers"][2]["cimguiname"] = "igTableGcCompactTransientBuffers" +defs["igTableGcCompactTransientBuffers"][2]["defaults"] = {} +defs["igTableGcCompactTransientBuffers"][2]["funcname"] = "TableGcCompactTransientBuffers" +defs["igTableGcCompactTransientBuffers"][2]["location"] = "imgui_internal:3296" +defs["igTableGcCompactTransientBuffers"][2]["namespace"] = "ImGui" +defs["igTableGcCompactTransientBuffers"][2]["ov_cimguiname"] = "igTableGcCompactTransientBuffers_TableTempDataPtr" +defs["igTableGcCompactTransientBuffers"][2]["ret"] = "void" +defs["igTableGcCompactTransientBuffers"][2]["signature"] = "(ImGuiTableTempData*)" +defs["igTableGcCompactTransientBuffers"][2]["stname"] = "" +defs["igTableGcCompactTransientBuffers"]["(ImGuiTable*)"] = defs["igTableGcCompactTransientBuffers"][1] +defs["igTableGcCompactTransientBuffers"]["(ImGuiTableTempData*)"] = defs["igTableGcCompactTransientBuffers"][2] +defs["igTableGetBoundSettings"] = {} +defs["igTableGetBoundSettings"][1] = {} +defs["igTableGetBoundSettings"][1]["args"] = "(ImGuiTable* table)" +defs["igTableGetBoundSettings"][1]["argsT"] = {} +defs["igTableGetBoundSettings"][1]["argsT"][1] = {} +defs["igTableGetBoundSettings"][1]["argsT"][1]["name"] = "table" +defs["igTableGetBoundSettings"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableGetBoundSettings"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableGetBoundSettings"][1]["call_args"] = "(table)" +defs["igTableGetBoundSettings"][1]["cimguiname"] = "igTableGetBoundSettings" +defs["igTableGetBoundSettings"][1]["defaults"] = {} +defs["igTableGetBoundSettings"][1]["funcname"] = "TableGetBoundSettings" +defs["igTableGetBoundSettings"][1]["location"] = "imgui_internal:3303" +defs["igTableGetBoundSettings"][1]["namespace"] = "ImGui" +defs["igTableGetBoundSettings"][1]["ov_cimguiname"] = "igTableGetBoundSettings" +defs["igTableGetBoundSettings"][1]["ret"] = "ImGuiTableSettings*" +defs["igTableGetBoundSettings"][1]["signature"] = "(ImGuiTable*)" +defs["igTableGetBoundSettings"][1]["stname"] = "" +defs["igTableGetBoundSettings"]["(ImGuiTable*)"] = defs["igTableGetBoundSettings"][1] +defs["igTableGetCellBgRect"] = {} +defs["igTableGetCellBgRect"][1] = {} +defs["igTableGetCellBgRect"][1]["args"] = "(ImRect *pOut,const ImGuiTable* table,int column_n)" +defs["igTableGetCellBgRect"][1]["argsT"] = {} +defs["igTableGetCellBgRect"][1]["argsT"][1] = {} +defs["igTableGetCellBgRect"][1]["argsT"][1]["name"] = "pOut" +defs["igTableGetCellBgRect"][1]["argsT"][1]["type"] = "ImRect*" +defs["igTableGetCellBgRect"][1]["argsT"][2] = {} +defs["igTableGetCellBgRect"][1]["argsT"][2]["name"] = "table" +defs["igTableGetCellBgRect"][1]["argsT"][2]["type"] = "const ImGuiTable*" +defs["igTableGetCellBgRect"][1]["argsT"][3] = {} +defs["igTableGetCellBgRect"][1]["argsT"][3]["name"] = "column_n" +defs["igTableGetCellBgRect"][1]["argsT"][3]["type"] = "int" +defs["igTableGetCellBgRect"][1]["argsoriginal"] = "(const ImGuiTable* table,int column_n)" +defs["igTableGetCellBgRect"][1]["call_args"] = "(table,column_n)" +defs["igTableGetCellBgRect"][1]["cimguiname"] = "igTableGetCellBgRect" +defs["igTableGetCellBgRect"][1]["defaults"] = {} +defs["igTableGetCellBgRect"][1]["funcname"] = "TableGetCellBgRect" +defs["igTableGetCellBgRect"][1]["location"] = "imgui_internal:3288" +defs["igTableGetCellBgRect"][1]["namespace"] = "ImGui" +defs["igTableGetCellBgRect"][1]["nonUDT"] = 1 +defs["igTableGetCellBgRect"][1]["ov_cimguiname"] = "igTableGetCellBgRect" +defs["igTableGetCellBgRect"][1]["ret"] = "void" +defs["igTableGetCellBgRect"][1]["signature"] = "(const ImGuiTable*,int)" +defs["igTableGetCellBgRect"][1]["stname"] = "" +defs["igTableGetCellBgRect"]["(const ImGuiTable*,int)"] = defs["igTableGetCellBgRect"][1] defs["igTableGetColumnCount"] = {} defs["igTableGetColumnCount"][1] = {} defs["igTableGetColumnCount"][1]["args"] = "()" @@ -14488,11 +28643,175 @@ defs["igTableGetColumnName"][1]["defaults"]["column_n"] = "-1" defs["igTableGetColumnName"][1]["funcname"] = "TableGetColumnName" defs["igTableGetColumnName"][1]["location"] = "imgui:777" defs["igTableGetColumnName"][1]["namespace"] = "ImGui" -defs["igTableGetColumnName"][1]["ov_cimguiname"] = "igTableGetColumnName" +defs["igTableGetColumnName"][1]["ov_cimguiname"] = "igTableGetColumnName_Int" defs["igTableGetColumnName"][1]["ret"] = "const char*" defs["igTableGetColumnName"][1]["signature"] = "(int)" defs["igTableGetColumnName"][1]["stname"] = "" +defs["igTableGetColumnName"][2] = {} +defs["igTableGetColumnName"][2]["args"] = "(const ImGuiTable* table,int column_n)" +defs["igTableGetColumnName"][2]["argsT"] = {} +defs["igTableGetColumnName"][2]["argsT"][1] = {} +defs["igTableGetColumnName"][2]["argsT"][1]["name"] = "table" +defs["igTableGetColumnName"][2]["argsT"][1]["type"] = "const ImGuiTable*" +defs["igTableGetColumnName"][2]["argsT"][2] = {} +defs["igTableGetColumnName"][2]["argsT"][2]["name"] = "column_n" +defs["igTableGetColumnName"][2]["argsT"][2]["type"] = "int" +defs["igTableGetColumnName"][2]["argsoriginal"] = "(const ImGuiTable* table,int column_n)" +defs["igTableGetColumnName"][2]["call_args"] = "(table,column_n)" +defs["igTableGetColumnName"][2]["cimguiname"] = "igTableGetColumnName" +defs["igTableGetColumnName"][2]["defaults"] = {} +defs["igTableGetColumnName"][2]["funcname"] = "TableGetColumnName" +defs["igTableGetColumnName"][2]["location"] = "imgui_internal:3289" +defs["igTableGetColumnName"][2]["namespace"] = "ImGui" +defs["igTableGetColumnName"][2]["ov_cimguiname"] = "igTableGetColumnName_TablePtr" +defs["igTableGetColumnName"][2]["ret"] = "const char*" +defs["igTableGetColumnName"][2]["signature"] = "(const ImGuiTable*,int)" +defs["igTableGetColumnName"][2]["stname"] = "" +defs["igTableGetColumnName"]["(const ImGuiTable*,int)"] = defs["igTableGetColumnName"][2] defs["igTableGetColumnName"]["(int)"] = defs["igTableGetColumnName"][1] +defs["igTableGetColumnNextSortDirection"] = {} +defs["igTableGetColumnNextSortDirection"][1] = {} +defs["igTableGetColumnNextSortDirection"][1]["args"] = "(ImGuiTableColumn* column)" +defs["igTableGetColumnNextSortDirection"][1]["argsT"] = {} +defs["igTableGetColumnNextSortDirection"][1]["argsT"][1] = {} +defs["igTableGetColumnNextSortDirection"][1]["argsT"][1]["name"] = "column" +defs["igTableGetColumnNextSortDirection"][1]["argsT"][1]["type"] = "ImGuiTableColumn*" +defs["igTableGetColumnNextSortDirection"][1]["argsoriginal"] = "(ImGuiTableColumn* column)" +defs["igTableGetColumnNextSortDirection"][1]["call_args"] = "(column)" +defs["igTableGetColumnNextSortDirection"][1]["cimguiname"] = "igTableGetColumnNextSortDirection" +defs["igTableGetColumnNextSortDirection"][1]["defaults"] = {} +defs["igTableGetColumnNextSortDirection"][1]["funcname"] = "TableGetColumnNextSortDirection" +defs["igTableGetColumnNextSortDirection"][1]["location"] = "imgui_internal:3281" +defs["igTableGetColumnNextSortDirection"][1]["namespace"] = "ImGui" +defs["igTableGetColumnNextSortDirection"][1]["ov_cimguiname"] = "igTableGetColumnNextSortDirection" +defs["igTableGetColumnNextSortDirection"][1]["ret"] = "ImGuiSortDirection" +defs["igTableGetColumnNextSortDirection"][1]["signature"] = "(ImGuiTableColumn*)" +defs["igTableGetColumnNextSortDirection"][1]["stname"] = "" +defs["igTableGetColumnNextSortDirection"]["(ImGuiTableColumn*)"] = defs["igTableGetColumnNextSortDirection"][1] +defs["igTableGetColumnResizeID"] = {} +defs["igTableGetColumnResizeID"][1] = {} +defs["igTableGetColumnResizeID"][1]["args"] = "(const ImGuiTable* table,int column_n,int instance_no)" +defs["igTableGetColumnResizeID"][1]["argsT"] = {} +defs["igTableGetColumnResizeID"][1]["argsT"][1] = {} +defs["igTableGetColumnResizeID"][1]["argsT"][1]["name"] = "table" +defs["igTableGetColumnResizeID"][1]["argsT"][1]["type"] = "const ImGuiTable*" +defs["igTableGetColumnResizeID"][1]["argsT"][2] = {} +defs["igTableGetColumnResizeID"][1]["argsT"][2]["name"] = "column_n" +defs["igTableGetColumnResizeID"][1]["argsT"][2]["type"] = "int" +defs["igTableGetColumnResizeID"][1]["argsT"][3] = {} +defs["igTableGetColumnResizeID"][1]["argsT"][3]["name"] = "instance_no" +defs["igTableGetColumnResizeID"][1]["argsT"][3]["type"] = "int" +defs["igTableGetColumnResizeID"][1]["argsoriginal"] = "(const ImGuiTable* table,int column_n,int instance_no=0)" +defs["igTableGetColumnResizeID"][1]["call_args"] = "(table,column_n,instance_no)" +defs["igTableGetColumnResizeID"][1]["cimguiname"] = "igTableGetColumnResizeID" +defs["igTableGetColumnResizeID"][1]["defaults"] = {} +defs["igTableGetColumnResizeID"][1]["defaults"]["instance_no"] = "0" +defs["igTableGetColumnResizeID"][1]["funcname"] = "TableGetColumnResizeID" +defs["igTableGetColumnResizeID"][1]["location"] = "imgui_internal:3290" +defs["igTableGetColumnResizeID"][1]["namespace"] = "ImGui" +defs["igTableGetColumnResizeID"][1]["ov_cimguiname"] = "igTableGetColumnResizeID" +defs["igTableGetColumnResizeID"][1]["ret"] = "ImGuiID" +defs["igTableGetColumnResizeID"][1]["signature"] = "(const ImGuiTable*,int,int)" +defs["igTableGetColumnResizeID"][1]["stname"] = "" +defs["igTableGetColumnResizeID"]["(const ImGuiTable*,int,int)"] = defs["igTableGetColumnResizeID"][1] +defs["igTableGetColumnWidthAuto"] = {} +defs["igTableGetColumnWidthAuto"][1] = {} +defs["igTableGetColumnWidthAuto"][1]["args"] = "(ImGuiTable* table,ImGuiTableColumn* column)" +defs["igTableGetColumnWidthAuto"][1]["argsT"] = {} +defs["igTableGetColumnWidthAuto"][1]["argsT"][1] = {} +defs["igTableGetColumnWidthAuto"][1]["argsT"][1]["name"] = "table" +defs["igTableGetColumnWidthAuto"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableGetColumnWidthAuto"][1]["argsT"][2] = {} +defs["igTableGetColumnWidthAuto"][1]["argsT"][2]["name"] = "column" +defs["igTableGetColumnWidthAuto"][1]["argsT"][2]["type"] = "ImGuiTableColumn*" +defs["igTableGetColumnWidthAuto"][1]["argsoriginal"] = "(ImGuiTable* table,ImGuiTableColumn* column)" +defs["igTableGetColumnWidthAuto"][1]["call_args"] = "(table,column)" +defs["igTableGetColumnWidthAuto"][1]["cimguiname"] = "igTableGetColumnWidthAuto" +defs["igTableGetColumnWidthAuto"][1]["defaults"] = {} +defs["igTableGetColumnWidthAuto"][1]["funcname"] = "TableGetColumnWidthAuto" +defs["igTableGetColumnWidthAuto"][1]["location"] = "imgui_internal:3283" +defs["igTableGetColumnWidthAuto"][1]["namespace"] = "ImGui" +defs["igTableGetColumnWidthAuto"][1]["ov_cimguiname"] = "igTableGetColumnWidthAuto" +defs["igTableGetColumnWidthAuto"][1]["ret"] = "float" +defs["igTableGetColumnWidthAuto"][1]["signature"] = "(ImGuiTable*,ImGuiTableColumn*)" +defs["igTableGetColumnWidthAuto"][1]["stname"] = "" +defs["igTableGetColumnWidthAuto"]["(ImGuiTable*,ImGuiTableColumn*)"] = defs["igTableGetColumnWidthAuto"][1] +defs["igTableGetHeaderRowHeight"] = {} +defs["igTableGetHeaderRowHeight"][1] = {} +defs["igTableGetHeaderRowHeight"][1]["args"] = "()" +defs["igTableGetHeaderRowHeight"][1]["argsT"] = {} +defs["igTableGetHeaderRowHeight"][1]["argsoriginal"] = "()" +defs["igTableGetHeaderRowHeight"][1]["call_args"] = "()" +defs["igTableGetHeaderRowHeight"][1]["cimguiname"] = "igTableGetHeaderRowHeight" +defs["igTableGetHeaderRowHeight"][1]["defaults"] = {} +defs["igTableGetHeaderRowHeight"][1]["funcname"] = "TableGetHeaderRowHeight" +defs["igTableGetHeaderRowHeight"][1]["location"] = "imgui_internal:3260" +defs["igTableGetHeaderRowHeight"][1]["namespace"] = "ImGui" +defs["igTableGetHeaderRowHeight"][1]["ov_cimguiname"] = "igTableGetHeaderRowHeight" +defs["igTableGetHeaderRowHeight"][1]["ret"] = "float" +defs["igTableGetHeaderRowHeight"][1]["signature"] = "()" +defs["igTableGetHeaderRowHeight"][1]["stname"] = "" +defs["igTableGetHeaderRowHeight"]["()"] = defs["igTableGetHeaderRowHeight"][1] +defs["igTableGetHoveredColumn"] = {} +defs["igTableGetHoveredColumn"][1] = {} +defs["igTableGetHoveredColumn"][1]["args"] = "()" +defs["igTableGetHoveredColumn"][1]["argsT"] = {} +defs["igTableGetHoveredColumn"][1]["argsoriginal"] = "()" +defs["igTableGetHoveredColumn"][1]["call_args"] = "()" +defs["igTableGetHoveredColumn"][1]["cimguiname"] = "igTableGetHoveredColumn" +defs["igTableGetHoveredColumn"][1]["defaults"] = {} +defs["igTableGetHoveredColumn"][1]["funcname"] = "TableGetHoveredColumn" +defs["igTableGetHoveredColumn"][1]["location"] = "imgui_internal:3259" +defs["igTableGetHoveredColumn"][1]["namespace"] = "ImGui" +defs["igTableGetHoveredColumn"][1]["ov_cimguiname"] = "igTableGetHoveredColumn" +defs["igTableGetHoveredColumn"][1]["ret"] = "int" +defs["igTableGetHoveredColumn"][1]["signature"] = "()" +defs["igTableGetHoveredColumn"][1]["stname"] = "" +defs["igTableGetHoveredColumn"]["()"] = defs["igTableGetHoveredColumn"][1] +defs["igTableGetInstanceData"] = {} +defs["igTableGetInstanceData"][1] = {} +defs["igTableGetInstanceData"][1]["args"] = "(ImGuiTable* table,int instance_no)" +defs["igTableGetInstanceData"][1]["argsT"] = {} +defs["igTableGetInstanceData"][1]["argsT"][1] = {} +defs["igTableGetInstanceData"][1]["argsT"][1]["name"] = "table" +defs["igTableGetInstanceData"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableGetInstanceData"][1]["argsT"][2] = {} +defs["igTableGetInstanceData"][1]["argsT"][2]["name"] = "instance_no" +defs["igTableGetInstanceData"][1]["argsT"][2]["type"] = "int" +defs["igTableGetInstanceData"][1]["argsoriginal"] = "(ImGuiTable* table,int instance_no)" +defs["igTableGetInstanceData"][1]["call_args"] = "(table,instance_no)" +defs["igTableGetInstanceData"][1]["cimguiname"] = "igTableGetInstanceData" +defs["igTableGetInstanceData"][1]["defaults"] = {} +defs["igTableGetInstanceData"][1]["funcname"] = "TableGetInstanceData" +defs["igTableGetInstanceData"][1]["location"] = "imgui_internal:3278" +defs["igTableGetInstanceData"][1]["namespace"] = "ImGui" +defs["igTableGetInstanceData"][1]["ov_cimguiname"] = "igTableGetInstanceData" +defs["igTableGetInstanceData"][1]["ret"] = "ImGuiTableInstanceData*" +defs["igTableGetInstanceData"][1]["signature"] = "(ImGuiTable*,int)" +defs["igTableGetInstanceData"][1]["stname"] = "" +defs["igTableGetInstanceData"]["(ImGuiTable*,int)"] = defs["igTableGetInstanceData"][1] +defs["igTableGetMaxColumnWidth"] = {} +defs["igTableGetMaxColumnWidth"][1] = {} +defs["igTableGetMaxColumnWidth"][1]["args"] = "(const ImGuiTable* table,int column_n)" +defs["igTableGetMaxColumnWidth"][1]["argsT"] = {} +defs["igTableGetMaxColumnWidth"][1]["argsT"][1] = {} +defs["igTableGetMaxColumnWidth"][1]["argsT"][1]["name"] = "table" +defs["igTableGetMaxColumnWidth"][1]["argsT"][1]["type"] = "const ImGuiTable*" +defs["igTableGetMaxColumnWidth"][1]["argsT"][2] = {} +defs["igTableGetMaxColumnWidth"][1]["argsT"][2]["name"] = "column_n" +defs["igTableGetMaxColumnWidth"][1]["argsT"][2]["type"] = "int" +defs["igTableGetMaxColumnWidth"][1]["argsoriginal"] = "(const ImGuiTable* table,int column_n)" +defs["igTableGetMaxColumnWidth"][1]["call_args"] = "(table,column_n)" +defs["igTableGetMaxColumnWidth"][1]["cimguiname"] = "igTableGetMaxColumnWidth" +defs["igTableGetMaxColumnWidth"][1]["defaults"] = {} +defs["igTableGetMaxColumnWidth"][1]["funcname"] = "TableGetMaxColumnWidth" +defs["igTableGetMaxColumnWidth"][1]["location"] = "imgui_internal:3291" +defs["igTableGetMaxColumnWidth"][1]["namespace"] = "ImGui" +defs["igTableGetMaxColumnWidth"][1]["ov_cimguiname"] = "igTableGetMaxColumnWidth" +defs["igTableGetMaxColumnWidth"][1]["ret"] = "float" +defs["igTableGetMaxColumnWidth"][1]["signature"] = "(const ImGuiTable*,int)" +defs["igTableGetMaxColumnWidth"][1]["stname"] = "" +defs["igTableGetMaxColumnWidth"]["(const ImGuiTable*,int)"] = defs["igTableGetMaxColumnWidth"][1] defs["igTableGetRowIndex"] = {} defs["igTableGetRowIndex"][1] = {} defs["igTableGetRowIndex"][1]["args"] = "()" @@ -14560,6 +28879,44 @@ defs["igTableHeadersRow"][1]["ret"] = "void" defs["igTableHeadersRow"][1]["signature"] = "()" defs["igTableHeadersRow"][1]["stname"] = "" defs["igTableHeadersRow"]["()"] = defs["igTableHeadersRow"][1] +defs["igTableLoadSettings"] = {} +defs["igTableLoadSettings"][1] = {} +defs["igTableLoadSettings"][1]["args"] = "(ImGuiTable* table)" +defs["igTableLoadSettings"][1]["argsT"] = {} +defs["igTableLoadSettings"][1]["argsT"][1] = {} +defs["igTableLoadSettings"][1]["argsT"][1]["name"] = "table" +defs["igTableLoadSettings"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableLoadSettings"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableLoadSettings"][1]["call_args"] = "(table)" +defs["igTableLoadSettings"][1]["cimguiname"] = "igTableLoadSettings" +defs["igTableLoadSettings"][1]["defaults"] = {} +defs["igTableLoadSettings"][1]["funcname"] = "TableLoadSettings" +defs["igTableLoadSettings"][1]["location"] = "imgui_internal:3300" +defs["igTableLoadSettings"][1]["namespace"] = "ImGui" +defs["igTableLoadSettings"][1]["ov_cimguiname"] = "igTableLoadSettings" +defs["igTableLoadSettings"][1]["ret"] = "void" +defs["igTableLoadSettings"][1]["signature"] = "(ImGuiTable*)" +defs["igTableLoadSettings"][1]["stname"] = "" +defs["igTableLoadSettings"]["(ImGuiTable*)"] = defs["igTableLoadSettings"][1] +defs["igTableMergeDrawChannels"] = {} +defs["igTableMergeDrawChannels"][1] = {} +defs["igTableMergeDrawChannels"][1]["args"] = "(ImGuiTable* table)" +defs["igTableMergeDrawChannels"][1]["argsT"] = {} +defs["igTableMergeDrawChannels"][1]["argsT"][1] = {} +defs["igTableMergeDrawChannels"][1]["argsT"][1]["name"] = "table" +defs["igTableMergeDrawChannels"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableMergeDrawChannels"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableMergeDrawChannels"][1]["call_args"] = "(table)" +defs["igTableMergeDrawChannels"][1]["cimguiname"] = "igTableMergeDrawChannels" +defs["igTableMergeDrawChannels"][1]["defaults"] = {} +defs["igTableMergeDrawChannels"][1]["funcname"] = "TableMergeDrawChannels" +defs["igTableMergeDrawChannels"][1]["location"] = "imgui_internal:3277" +defs["igTableMergeDrawChannels"][1]["namespace"] = "ImGui" +defs["igTableMergeDrawChannels"][1]["ov_cimguiname"] = "igTableMergeDrawChannels" +defs["igTableMergeDrawChannels"][1]["ret"] = "void" +defs["igTableMergeDrawChannels"][1]["signature"] = "(ImGuiTable*)" +defs["igTableMergeDrawChannels"][1]["stname"] = "" +defs["igTableMergeDrawChannels"]["(ImGuiTable*)"] = defs["igTableMergeDrawChannels"][1] defs["igTableNextColumn"] = {} defs["igTableNextColumn"][1] = {} defs["igTableNextColumn"][1]["args"] = "()" @@ -14600,6 +28957,115 @@ defs["igTableNextRow"][1]["ret"] = "void" defs["igTableNextRow"][1]["signature"] = "(ImGuiTableRowFlags,float)" defs["igTableNextRow"][1]["stname"] = "" defs["igTableNextRow"]["(ImGuiTableRowFlags,float)"] = defs["igTableNextRow"][1] +defs["igTableOpenContextMenu"] = {} +defs["igTableOpenContextMenu"][1] = {} +defs["igTableOpenContextMenu"][1]["args"] = "(int column_n)" +defs["igTableOpenContextMenu"][1]["argsT"] = {} +defs["igTableOpenContextMenu"][1]["argsT"][1] = {} +defs["igTableOpenContextMenu"][1]["argsT"][1]["name"] = "column_n" +defs["igTableOpenContextMenu"][1]["argsT"][1]["type"] = "int" +defs["igTableOpenContextMenu"][1]["argsoriginal"] = "(int column_n=-1)" +defs["igTableOpenContextMenu"][1]["call_args"] = "(column_n)" +defs["igTableOpenContextMenu"][1]["cimguiname"] = "igTableOpenContextMenu" +defs["igTableOpenContextMenu"][1]["defaults"] = {} +defs["igTableOpenContextMenu"][1]["defaults"]["column_n"] = "-1" +defs["igTableOpenContextMenu"][1]["funcname"] = "TableOpenContextMenu" +defs["igTableOpenContextMenu"][1]["location"] = "imgui_internal:3256" +defs["igTableOpenContextMenu"][1]["namespace"] = "ImGui" +defs["igTableOpenContextMenu"][1]["ov_cimguiname"] = "igTableOpenContextMenu" +defs["igTableOpenContextMenu"][1]["ret"] = "void" +defs["igTableOpenContextMenu"][1]["signature"] = "(int)" +defs["igTableOpenContextMenu"][1]["stname"] = "" +defs["igTableOpenContextMenu"]["(int)"] = defs["igTableOpenContextMenu"][1] +defs["igTablePopBackgroundChannel"] = {} +defs["igTablePopBackgroundChannel"][1] = {} +defs["igTablePopBackgroundChannel"][1]["args"] = "()" +defs["igTablePopBackgroundChannel"][1]["argsT"] = {} +defs["igTablePopBackgroundChannel"][1]["argsoriginal"] = "()" +defs["igTablePopBackgroundChannel"][1]["call_args"] = "()" +defs["igTablePopBackgroundChannel"][1]["cimguiname"] = "igTablePopBackgroundChannel" +defs["igTablePopBackgroundChannel"][1]["defaults"] = {} +defs["igTablePopBackgroundChannel"][1]["funcname"] = "TablePopBackgroundChannel" +defs["igTablePopBackgroundChannel"][1]["location"] = "imgui_internal:3262" +defs["igTablePopBackgroundChannel"][1]["namespace"] = "ImGui" +defs["igTablePopBackgroundChannel"][1]["ov_cimguiname"] = "igTablePopBackgroundChannel" +defs["igTablePopBackgroundChannel"][1]["ret"] = "void" +defs["igTablePopBackgroundChannel"][1]["signature"] = "()" +defs["igTablePopBackgroundChannel"][1]["stname"] = "" +defs["igTablePopBackgroundChannel"]["()"] = defs["igTablePopBackgroundChannel"][1] +defs["igTablePushBackgroundChannel"] = {} +defs["igTablePushBackgroundChannel"][1] = {} +defs["igTablePushBackgroundChannel"][1]["args"] = "()" +defs["igTablePushBackgroundChannel"][1]["argsT"] = {} +defs["igTablePushBackgroundChannel"][1]["argsoriginal"] = "()" +defs["igTablePushBackgroundChannel"][1]["call_args"] = "()" +defs["igTablePushBackgroundChannel"][1]["cimguiname"] = "igTablePushBackgroundChannel" +defs["igTablePushBackgroundChannel"][1]["defaults"] = {} +defs["igTablePushBackgroundChannel"][1]["funcname"] = "TablePushBackgroundChannel" +defs["igTablePushBackgroundChannel"][1]["location"] = "imgui_internal:3261" +defs["igTablePushBackgroundChannel"][1]["namespace"] = "ImGui" +defs["igTablePushBackgroundChannel"][1]["ov_cimguiname"] = "igTablePushBackgroundChannel" +defs["igTablePushBackgroundChannel"][1]["ret"] = "void" +defs["igTablePushBackgroundChannel"][1]["signature"] = "()" +defs["igTablePushBackgroundChannel"][1]["stname"] = "" +defs["igTablePushBackgroundChannel"]["()"] = defs["igTablePushBackgroundChannel"][1] +defs["igTableRemove"] = {} +defs["igTableRemove"][1] = {} +defs["igTableRemove"][1]["args"] = "(ImGuiTable* table)" +defs["igTableRemove"][1]["argsT"] = {} +defs["igTableRemove"][1]["argsT"][1] = {} +defs["igTableRemove"][1]["argsT"][1]["name"] = "table" +defs["igTableRemove"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableRemove"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableRemove"][1]["call_args"] = "(table)" +defs["igTableRemove"][1]["cimguiname"] = "igTableRemove" +defs["igTableRemove"][1]["defaults"] = {} +defs["igTableRemove"][1]["funcname"] = "TableRemove" +defs["igTableRemove"][1]["location"] = "imgui_internal:3294" +defs["igTableRemove"][1]["namespace"] = "ImGui" +defs["igTableRemove"][1]["ov_cimguiname"] = "igTableRemove" +defs["igTableRemove"][1]["ret"] = "void" +defs["igTableRemove"][1]["signature"] = "(ImGuiTable*)" +defs["igTableRemove"][1]["stname"] = "" +defs["igTableRemove"]["(ImGuiTable*)"] = defs["igTableRemove"][1] +defs["igTableResetSettings"] = {} +defs["igTableResetSettings"][1] = {} +defs["igTableResetSettings"][1]["args"] = "(ImGuiTable* table)" +defs["igTableResetSettings"][1]["argsT"] = {} +defs["igTableResetSettings"][1]["argsT"][1] = {} +defs["igTableResetSettings"][1]["argsT"][1]["name"] = "table" +defs["igTableResetSettings"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableResetSettings"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableResetSettings"][1]["call_args"] = "(table)" +defs["igTableResetSettings"][1]["cimguiname"] = "igTableResetSettings" +defs["igTableResetSettings"][1]["defaults"] = {} +defs["igTableResetSettings"][1]["funcname"] = "TableResetSettings" +defs["igTableResetSettings"][1]["location"] = "imgui_internal:3302" +defs["igTableResetSettings"][1]["namespace"] = "ImGui" +defs["igTableResetSettings"][1]["ov_cimguiname"] = "igTableResetSettings" +defs["igTableResetSettings"][1]["ret"] = "void" +defs["igTableResetSettings"][1]["signature"] = "(ImGuiTable*)" +defs["igTableResetSettings"][1]["stname"] = "" +defs["igTableResetSettings"]["(ImGuiTable*)"] = defs["igTableResetSettings"][1] +defs["igTableSaveSettings"] = {} +defs["igTableSaveSettings"][1] = {} +defs["igTableSaveSettings"][1]["args"] = "(ImGuiTable* table)" +defs["igTableSaveSettings"][1]["argsT"] = {} +defs["igTableSaveSettings"][1]["argsT"][1] = {} +defs["igTableSaveSettings"][1]["argsT"][1]["name"] = "table" +defs["igTableSaveSettings"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableSaveSettings"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableSaveSettings"][1]["call_args"] = "(table)" +defs["igTableSaveSettings"][1]["cimguiname"] = "igTableSaveSettings" +defs["igTableSaveSettings"][1]["defaults"] = {} +defs["igTableSaveSettings"][1]["funcname"] = "TableSaveSettings" +defs["igTableSaveSettings"][1]["location"] = "imgui_internal:3301" +defs["igTableSaveSettings"][1]["namespace"] = "ImGui" +defs["igTableSaveSettings"][1]["ov_cimguiname"] = "igTableSaveSettings" +defs["igTableSaveSettings"][1]["ret"] = "void" +defs["igTableSaveSettings"][1]["signature"] = "(ImGuiTable*)" +defs["igTableSaveSettings"][1]["stname"] = "" +defs["igTableSaveSettings"]["(ImGuiTable*)"] = defs["igTableSaveSettings"][1] defs["igTableSetBgColor"] = {} defs["igTableSetBgColor"][1] = {} defs["igTableSetBgColor"][1]["args"] = "(ImGuiTableBgTarget target,ImU32 color,int column_n)" @@ -14667,6 +29133,151 @@ defs["igTableSetColumnIndex"][1]["ret"] = "bool" defs["igTableSetColumnIndex"][1]["signature"] = "(int)" defs["igTableSetColumnIndex"][1]["stname"] = "" defs["igTableSetColumnIndex"]["(int)"] = defs["igTableSetColumnIndex"][1] +defs["igTableSetColumnSortDirection"] = {} +defs["igTableSetColumnSortDirection"][1] = {} +defs["igTableSetColumnSortDirection"][1]["args"] = "(int column_n,ImGuiSortDirection sort_direction,bool append_to_sort_specs)" +defs["igTableSetColumnSortDirection"][1]["argsT"] = {} +defs["igTableSetColumnSortDirection"][1]["argsT"][1] = {} +defs["igTableSetColumnSortDirection"][1]["argsT"][1]["name"] = "column_n" +defs["igTableSetColumnSortDirection"][1]["argsT"][1]["type"] = "int" +defs["igTableSetColumnSortDirection"][1]["argsT"][2] = {} +defs["igTableSetColumnSortDirection"][1]["argsT"][2]["name"] = "sort_direction" +defs["igTableSetColumnSortDirection"][1]["argsT"][2]["type"] = "ImGuiSortDirection" +defs["igTableSetColumnSortDirection"][1]["argsT"][3] = {} +defs["igTableSetColumnSortDirection"][1]["argsT"][3]["name"] = "append_to_sort_specs" +defs["igTableSetColumnSortDirection"][1]["argsT"][3]["type"] = "bool" +defs["igTableSetColumnSortDirection"][1]["argsoriginal"] = "(int column_n,ImGuiSortDirection sort_direction,bool append_to_sort_specs)" +defs["igTableSetColumnSortDirection"][1]["call_args"] = "(column_n,sort_direction,append_to_sort_specs)" +defs["igTableSetColumnSortDirection"][1]["cimguiname"] = "igTableSetColumnSortDirection" +defs["igTableSetColumnSortDirection"][1]["defaults"] = {} +defs["igTableSetColumnSortDirection"][1]["funcname"] = "TableSetColumnSortDirection" +defs["igTableSetColumnSortDirection"][1]["location"] = "imgui_internal:3258" +defs["igTableSetColumnSortDirection"][1]["namespace"] = "ImGui" +defs["igTableSetColumnSortDirection"][1]["ov_cimguiname"] = "igTableSetColumnSortDirection" +defs["igTableSetColumnSortDirection"][1]["ret"] = "void" +defs["igTableSetColumnSortDirection"][1]["signature"] = "(int,ImGuiSortDirection,bool)" +defs["igTableSetColumnSortDirection"][1]["stname"] = "" +defs["igTableSetColumnSortDirection"]["(int,ImGuiSortDirection,bool)"] = defs["igTableSetColumnSortDirection"][1] +defs["igTableSetColumnWidth"] = {} +defs["igTableSetColumnWidth"][1] = {} +defs["igTableSetColumnWidth"][1]["args"] = "(int column_n,float width)" +defs["igTableSetColumnWidth"][1]["argsT"] = {} +defs["igTableSetColumnWidth"][1]["argsT"][1] = {} +defs["igTableSetColumnWidth"][1]["argsT"][1]["name"] = "column_n" +defs["igTableSetColumnWidth"][1]["argsT"][1]["type"] = "int" +defs["igTableSetColumnWidth"][1]["argsT"][2] = {} +defs["igTableSetColumnWidth"][1]["argsT"][2]["name"] = "width" +defs["igTableSetColumnWidth"][1]["argsT"][2]["type"] = "float" +defs["igTableSetColumnWidth"][1]["argsoriginal"] = "(int column_n,float width)" +defs["igTableSetColumnWidth"][1]["call_args"] = "(column_n,width)" +defs["igTableSetColumnWidth"][1]["cimguiname"] = "igTableSetColumnWidth" +defs["igTableSetColumnWidth"][1]["defaults"] = {} +defs["igTableSetColumnWidth"][1]["funcname"] = "TableSetColumnWidth" +defs["igTableSetColumnWidth"][1]["location"] = "imgui_internal:3257" +defs["igTableSetColumnWidth"][1]["namespace"] = "ImGui" +defs["igTableSetColumnWidth"][1]["ov_cimguiname"] = "igTableSetColumnWidth" +defs["igTableSetColumnWidth"][1]["ret"] = "void" +defs["igTableSetColumnWidth"][1]["signature"] = "(int,float)" +defs["igTableSetColumnWidth"][1]["stname"] = "" +defs["igTableSetColumnWidth"]["(int,float)"] = defs["igTableSetColumnWidth"][1] +defs["igTableSetColumnWidthAutoAll"] = {} +defs["igTableSetColumnWidthAutoAll"][1] = {} +defs["igTableSetColumnWidthAutoAll"][1]["args"] = "(ImGuiTable* table)" +defs["igTableSetColumnWidthAutoAll"][1]["argsT"] = {} +defs["igTableSetColumnWidthAutoAll"][1]["argsT"][1] = {} +defs["igTableSetColumnWidthAutoAll"][1]["argsT"][1]["name"] = "table" +defs["igTableSetColumnWidthAutoAll"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableSetColumnWidthAutoAll"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableSetColumnWidthAutoAll"][1]["call_args"] = "(table)" +defs["igTableSetColumnWidthAutoAll"][1]["cimguiname"] = "igTableSetColumnWidthAutoAll" +defs["igTableSetColumnWidthAutoAll"][1]["defaults"] = {} +defs["igTableSetColumnWidthAutoAll"][1]["funcname"] = "TableSetColumnWidthAutoAll" +defs["igTableSetColumnWidthAutoAll"][1]["location"] = "imgui_internal:3293" +defs["igTableSetColumnWidthAutoAll"][1]["namespace"] = "ImGui" +defs["igTableSetColumnWidthAutoAll"][1]["ov_cimguiname"] = "igTableSetColumnWidthAutoAll" +defs["igTableSetColumnWidthAutoAll"][1]["ret"] = "void" +defs["igTableSetColumnWidthAutoAll"][1]["signature"] = "(ImGuiTable*)" +defs["igTableSetColumnWidthAutoAll"][1]["stname"] = "" +defs["igTableSetColumnWidthAutoAll"]["(ImGuiTable*)"] = defs["igTableSetColumnWidthAutoAll"][1] +defs["igTableSetColumnWidthAutoSingle"] = {} +defs["igTableSetColumnWidthAutoSingle"][1] = {} +defs["igTableSetColumnWidthAutoSingle"][1]["args"] = "(ImGuiTable* table,int column_n)" +defs["igTableSetColumnWidthAutoSingle"][1]["argsT"] = {} +defs["igTableSetColumnWidthAutoSingle"][1]["argsT"][1] = {} +defs["igTableSetColumnWidthAutoSingle"][1]["argsT"][1]["name"] = "table" +defs["igTableSetColumnWidthAutoSingle"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableSetColumnWidthAutoSingle"][1]["argsT"][2] = {} +defs["igTableSetColumnWidthAutoSingle"][1]["argsT"][2]["name"] = "column_n" +defs["igTableSetColumnWidthAutoSingle"][1]["argsT"][2]["type"] = "int" +defs["igTableSetColumnWidthAutoSingle"][1]["argsoriginal"] = "(ImGuiTable* table,int column_n)" +defs["igTableSetColumnWidthAutoSingle"][1]["call_args"] = "(table,column_n)" +defs["igTableSetColumnWidthAutoSingle"][1]["cimguiname"] = "igTableSetColumnWidthAutoSingle" +defs["igTableSetColumnWidthAutoSingle"][1]["defaults"] = {} +defs["igTableSetColumnWidthAutoSingle"][1]["funcname"] = "TableSetColumnWidthAutoSingle" +defs["igTableSetColumnWidthAutoSingle"][1]["location"] = "imgui_internal:3292" +defs["igTableSetColumnWidthAutoSingle"][1]["namespace"] = "ImGui" +defs["igTableSetColumnWidthAutoSingle"][1]["ov_cimguiname"] = "igTableSetColumnWidthAutoSingle" +defs["igTableSetColumnWidthAutoSingle"][1]["ret"] = "void" +defs["igTableSetColumnWidthAutoSingle"][1]["signature"] = "(ImGuiTable*,int)" +defs["igTableSetColumnWidthAutoSingle"][1]["stname"] = "" +defs["igTableSetColumnWidthAutoSingle"]["(ImGuiTable*,int)"] = defs["igTableSetColumnWidthAutoSingle"][1] +defs["igTableSettingsAddSettingsHandler"] = {} +defs["igTableSettingsAddSettingsHandler"][1] = {} +defs["igTableSettingsAddSettingsHandler"][1]["args"] = "()" +defs["igTableSettingsAddSettingsHandler"][1]["argsT"] = {} +defs["igTableSettingsAddSettingsHandler"][1]["argsoriginal"] = "()" +defs["igTableSettingsAddSettingsHandler"][1]["call_args"] = "()" +defs["igTableSettingsAddSettingsHandler"][1]["cimguiname"] = "igTableSettingsAddSettingsHandler" +defs["igTableSettingsAddSettingsHandler"][1]["defaults"] = {} +defs["igTableSettingsAddSettingsHandler"][1]["funcname"] = "TableSettingsAddSettingsHandler" +defs["igTableSettingsAddSettingsHandler"][1]["location"] = "imgui_internal:3304" +defs["igTableSettingsAddSettingsHandler"][1]["namespace"] = "ImGui" +defs["igTableSettingsAddSettingsHandler"][1]["ov_cimguiname"] = "igTableSettingsAddSettingsHandler" +defs["igTableSettingsAddSettingsHandler"][1]["ret"] = "void" +defs["igTableSettingsAddSettingsHandler"][1]["signature"] = "()" +defs["igTableSettingsAddSettingsHandler"][1]["stname"] = "" +defs["igTableSettingsAddSettingsHandler"]["()"] = defs["igTableSettingsAddSettingsHandler"][1] +defs["igTableSettingsCreate"] = {} +defs["igTableSettingsCreate"][1] = {} +defs["igTableSettingsCreate"][1]["args"] = "(ImGuiID id,int columns_count)" +defs["igTableSettingsCreate"][1]["argsT"] = {} +defs["igTableSettingsCreate"][1]["argsT"][1] = {} +defs["igTableSettingsCreate"][1]["argsT"][1]["name"] = "id" +defs["igTableSettingsCreate"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTableSettingsCreate"][1]["argsT"][2] = {} +defs["igTableSettingsCreate"][1]["argsT"][2]["name"] = "columns_count" +defs["igTableSettingsCreate"][1]["argsT"][2]["type"] = "int" +defs["igTableSettingsCreate"][1]["argsoriginal"] = "(ImGuiID id,int columns_count)" +defs["igTableSettingsCreate"][1]["call_args"] = "(id,columns_count)" +defs["igTableSettingsCreate"][1]["cimguiname"] = "igTableSettingsCreate" +defs["igTableSettingsCreate"][1]["defaults"] = {} +defs["igTableSettingsCreate"][1]["funcname"] = "TableSettingsCreate" +defs["igTableSettingsCreate"][1]["location"] = "imgui_internal:3305" +defs["igTableSettingsCreate"][1]["namespace"] = "ImGui" +defs["igTableSettingsCreate"][1]["ov_cimguiname"] = "igTableSettingsCreate" +defs["igTableSettingsCreate"][1]["ret"] = "ImGuiTableSettings*" +defs["igTableSettingsCreate"][1]["signature"] = "(ImGuiID,int)" +defs["igTableSettingsCreate"][1]["stname"] = "" +defs["igTableSettingsCreate"]["(ImGuiID,int)"] = defs["igTableSettingsCreate"][1] +defs["igTableSettingsFindByID"] = {} +defs["igTableSettingsFindByID"][1] = {} +defs["igTableSettingsFindByID"][1]["args"] = "(ImGuiID id)" +defs["igTableSettingsFindByID"][1]["argsT"] = {} +defs["igTableSettingsFindByID"][1]["argsT"][1] = {} +defs["igTableSettingsFindByID"][1]["argsT"][1]["name"] = "id" +defs["igTableSettingsFindByID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTableSettingsFindByID"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igTableSettingsFindByID"][1]["call_args"] = "(id)" +defs["igTableSettingsFindByID"][1]["cimguiname"] = "igTableSettingsFindByID" +defs["igTableSettingsFindByID"][1]["defaults"] = {} +defs["igTableSettingsFindByID"][1]["funcname"] = "TableSettingsFindByID" +defs["igTableSettingsFindByID"][1]["location"] = "imgui_internal:3306" +defs["igTableSettingsFindByID"][1]["namespace"] = "ImGui" +defs["igTableSettingsFindByID"][1]["ov_cimguiname"] = "igTableSettingsFindByID" +defs["igTableSettingsFindByID"][1]["ret"] = "ImGuiTableSettings*" +defs["igTableSettingsFindByID"][1]["signature"] = "(ImGuiID)" +defs["igTableSettingsFindByID"][1]["stname"] = "" +defs["igTableSettingsFindByID"]["(ImGuiID)"] = defs["igTableSettingsFindByID"][1] defs["igTableSetupColumn"] = {} defs["igTableSetupColumn"][1] = {} defs["igTableSetupColumn"][1]["args"] = "(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)" @@ -14698,6 +29309,25 @@ defs["igTableSetupColumn"][1]["ret"] = "void" defs["igTableSetupColumn"][1]["signature"] = "(const char*,ImGuiTableColumnFlags,float,ImGuiID)" defs["igTableSetupColumn"][1]["stname"] = "" defs["igTableSetupColumn"]["(const char*,ImGuiTableColumnFlags,float,ImGuiID)"] = defs["igTableSetupColumn"][1] +defs["igTableSetupDrawChannels"] = {} +defs["igTableSetupDrawChannels"][1] = {} +defs["igTableSetupDrawChannels"][1]["args"] = "(ImGuiTable* table)" +defs["igTableSetupDrawChannels"][1]["argsT"] = {} +defs["igTableSetupDrawChannels"][1]["argsT"][1] = {} +defs["igTableSetupDrawChannels"][1]["argsT"][1]["name"] = "table" +defs["igTableSetupDrawChannels"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableSetupDrawChannels"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableSetupDrawChannels"][1]["call_args"] = "(table)" +defs["igTableSetupDrawChannels"][1]["cimguiname"] = "igTableSetupDrawChannels" +defs["igTableSetupDrawChannels"][1]["defaults"] = {} +defs["igTableSetupDrawChannels"][1]["funcname"] = "TableSetupDrawChannels" +defs["igTableSetupDrawChannels"][1]["location"] = "imgui_internal:3270" +defs["igTableSetupDrawChannels"][1]["namespace"] = "ImGui" +defs["igTableSetupDrawChannels"][1]["ov_cimguiname"] = "igTableSetupDrawChannels" +defs["igTableSetupDrawChannels"][1]["ret"] = "void" +defs["igTableSetupDrawChannels"][1]["signature"] = "(ImGuiTable*)" +defs["igTableSetupDrawChannels"][1]["stname"] = "" +defs["igTableSetupDrawChannels"]["(ImGuiTable*)"] = defs["igTableSetupDrawChannels"][1] defs["igTableSetupScrollFreeze"] = {} defs["igTableSetupScrollFreeze"][1] = {} defs["igTableSetupScrollFreeze"][1]["args"] = "(int cols,int rows)" @@ -14720,6 +29350,240 @@ defs["igTableSetupScrollFreeze"][1]["ret"] = "void" defs["igTableSetupScrollFreeze"][1]["signature"] = "(int,int)" defs["igTableSetupScrollFreeze"][1]["stname"] = "" defs["igTableSetupScrollFreeze"]["(int,int)"] = defs["igTableSetupScrollFreeze"][1] +defs["igTableSortSpecsBuild"] = {} +defs["igTableSortSpecsBuild"][1] = {} +defs["igTableSortSpecsBuild"][1]["args"] = "(ImGuiTable* table)" +defs["igTableSortSpecsBuild"][1]["argsT"] = {} +defs["igTableSortSpecsBuild"][1]["argsT"][1] = {} +defs["igTableSortSpecsBuild"][1]["argsT"][1]["name"] = "table" +defs["igTableSortSpecsBuild"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableSortSpecsBuild"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableSortSpecsBuild"][1]["call_args"] = "(table)" +defs["igTableSortSpecsBuild"][1]["cimguiname"] = "igTableSortSpecsBuild" +defs["igTableSortSpecsBuild"][1]["defaults"] = {} +defs["igTableSortSpecsBuild"][1]["funcname"] = "TableSortSpecsBuild" +defs["igTableSortSpecsBuild"][1]["location"] = "imgui_internal:3280" +defs["igTableSortSpecsBuild"][1]["namespace"] = "ImGui" +defs["igTableSortSpecsBuild"][1]["ov_cimguiname"] = "igTableSortSpecsBuild" +defs["igTableSortSpecsBuild"][1]["ret"] = "void" +defs["igTableSortSpecsBuild"][1]["signature"] = "(ImGuiTable*)" +defs["igTableSortSpecsBuild"][1]["stname"] = "" +defs["igTableSortSpecsBuild"]["(ImGuiTable*)"] = defs["igTableSortSpecsBuild"][1] +defs["igTableSortSpecsSanitize"] = {} +defs["igTableSortSpecsSanitize"][1] = {} +defs["igTableSortSpecsSanitize"][1]["args"] = "(ImGuiTable* table)" +defs["igTableSortSpecsSanitize"][1]["argsT"] = {} +defs["igTableSortSpecsSanitize"][1]["argsT"][1] = {} +defs["igTableSortSpecsSanitize"][1]["argsT"][1]["name"] = "table" +defs["igTableSortSpecsSanitize"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableSortSpecsSanitize"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableSortSpecsSanitize"][1]["call_args"] = "(table)" +defs["igTableSortSpecsSanitize"][1]["cimguiname"] = "igTableSortSpecsSanitize" +defs["igTableSortSpecsSanitize"][1]["defaults"] = {} +defs["igTableSortSpecsSanitize"][1]["funcname"] = "TableSortSpecsSanitize" +defs["igTableSortSpecsSanitize"][1]["location"] = "imgui_internal:3279" +defs["igTableSortSpecsSanitize"][1]["namespace"] = "ImGui" +defs["igTableSortSpecsSanitize"][1]["ov_cimguiname"] = "igTableSortSpecsSanitize" +defs["igTableSortSpecsSanitize"][1]["ret"] = "void" +defs["igTableSortSpecsSanitize"][1]["signature"] = "(ImGuiTable*)" +defs["igTableSortSpecsSanitize"][1]["stname"] = "" +defs["igTableSortSpecsSanitize"]["(ImGuiTable*)"] = defs["igTableSortSpecsSanitize"][1] +defs["igTableUpdateBorders"] = {} +defs["igTableUpdateBorders"][1] = {} +defs["igTableUpdateBorders"][1]["args"] = "(ImGuiTable* table)" +defs["igTableUpdateBorders"][1]["argsT"] = {} +defs["igTableUpdateBorders"][1]["argsT"][1] = {} +defs["igTableUpdateBorders"][1]["argsT"][1]["name"] = "table" +defs["igTableUpdateBorders"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableUpdateBorders"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableUpdateBorders"][1]["call_args"] = "(table)" +defs["igTableUpdateBorders"][1]["cimguiname"] = "igTableUpdateBorders" +defs["igTableUpdateBorders"][1]["defaults"] = {} +defs["igTableUpdateBorders"][1]["funcname"] = "TableUpdateBorders" +defs["igTableUpdateBorders"][1]["location"] = "imgui_internal:3272" +defs["igTableUpdateBorders"][1]["namespace"] = "ImGui" +defs["igTableUpdateBorders"][1]["ov_cimguiname"] = "igTableUpdateBorders" +defs["igTableUpdateBorders"][1]["ret"] = "void" +defs["igTableUpdateBorders"][1]["signature"] = "(ImGuiTable*)" +defs["igTableUpdateBorders"][1]["stname"] = "" +defs["igTableUpdateBorders"]["(ImGuiTable*)"] = defs["igTableUpdateBorders"][1] +defs["igTableUpdateColumnsWeightFromWidth"] = {} +defs["igTableUpdateColumnsWeightFromWidth"][1] = {} +defs["igTableUpdateColumnsWeightFromWidth"][1]["args"] = "(ImGuiTable* table)" +defs["igTableUpdateColumnsWeightFromWidth"][1]["argsT"] = {} +defs["igTableUpdateColumnsWeightFromWidth"][1]["argsT"][1] = {} +defs["igTableUpdateColumnsWeightFromWidth"][1]["argsT"][1]["name"] = "table" +defs["igTableUpdateColumnsWeightFromWidth"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableUpdateColumnsWeightFromWidth"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableUpdateColumnsWeightFromWidth"][1]["call_args"] = "(table)" +defs["igTableUpdateColumnsWeightFromWidth"][1]["cimguiname"] = "igTableUpdateColumnsWeightFromWidth" +defs["igTableUpdateColumnsWeightFromWidth"][1]["defaults"] = {} +defs["igTableUpdateColumnsWeightFromWidth"][1]["funcname"] = "TableUpdateColumnsWeightFromWidth" +defs["igTableUpdateColumnsWeightFromWidth"][1]["location"] = "imgui_internal:3273" +defs["igTableUpdateColumnsWeightFromWidth"][1]["namespace"] = "ImGui" +defs["igTableUpdateColumnsWeightFromWidth"][1]["ov_cimguiname"] = "igTableUpdateColumnsWeightFromWidth" +defs["igTableUpdateColumnsWeightFromWidth"][1]["ret"] = "void" +defs["igTableUpdateColumnsWeightFromWidth"][1]["signature"] = "(ImGuiTable*)" +defs["igTableUpdateColumnsWeightFromWidth"][1]["stname"] = "" +defs["igTableUpdateColumnsWeightFromWidth"]["(ImGuiTable*)"] = defs["igTableUpdateColumnsWeightFromWidth"][1] +defs["igTableUpdateLayout"] = {} +defs["igTableUpdateLayout"][1] = {} +defs["igTableUpdateLayout"][1]["args"] = "(ImGuiTable* table)" +defs["igTableUpdateLayout"][1]["argsT"] = {} +defs["igTableUpdateLayout"][1]["argsT"][1] = {} +defs["igTableUpdateLayout"][1]["argsT"][1]["name"] = "table" +defs["igTableUpdateLayout"][1]["argsT"][1]["type"] = "ImGuiTable*" +defs["igTableUpdateLayout"][1]["argsoriginal"] = "(ImGuiTable* table)" +defs["igTableUpdateLayout"][1]["call_args"] = "(table)" +defs["igTableUpdateLayout"][1]["cimguiname"] = "igTableUpdateLayout" +defs["igTableUpdateLayout"][1]["defaults"] = {} +defs["igTableUpdateLayout"][1]["funcname"] = "TableUpdateLayout" +defs["igTableUpdateLayout"][1]["location"] = "imgui_internal:3271" +defs["igTableUpdateLayout"][1]["namespace"] = "ImGui" +defs["igTableUpdateLayout"][1]["ov_cimguiname"] = "igTableUpdateLayout" +defs["igTableUpdateLayout"][1]["ret"] = "void" +defs["igTableUpdateLayout"][1]["signature"] = "(ImGuiTable*)" +defs["igTableUpdateLayout"][1]["stname"] = "" +defs["igTableUpdateLayout"]["(ImGuiTable*)"] = defs["igTableUpdateLayout"][1] +defs["igTempInputIsActive"] = {} +defs["igTempInputIsActive"][1] = {} +defs["igTempInputIsActive"][1]["args"] = "(ImGuiID id)" +defs["igTempInputIsActive"][1]["argsT"] = {} +defs["igTempInputIsActive"][1]["argsT"][1] = {} +defs["igTempInputIsActive"][1]["argsT"][1]["name"] = "id" +defs["igTempInputIsActive"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTempInputIsActive"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igTempInputIsActive"][1]["call_args"] = "(id)" +defs["igTempInputIsActive"][1]["cimguiname"] = "igTempInputIsActive" +defs["igTempInputIsActive"][1]["defaults"] = {} +defs["igTempInputIsActive"][1]["funcname"] = "TempInputIsActive" +defs["igTempInputIsActive"][1]["location"] = "imgui_internal:3398" +defs["igTempInputIsActive"][1]["namespace"] = "ImGui" +defs["igTempInputIsActive"][1]["ov_cimguiname"] = "igTempInputIsActive" +defs["igTempInputIsActive"][1]["ret"] = "bool" +defs["igTempInputIsActive"][1]["signature"] = "(ImGuiID)" +defs["igTempInputIsActive"][1]["stname"] = "" +defs["igTempInputIsActive"]["(ImGuiID)"] = defs["igTempInputIsActive"][1] +defs["igTempInputScalar"] = {} +defs["igTempInputScalar"][1] = {} +defs["igTempInputScalar"][1]["args"] = "(const ImRect bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min,const void* p_clamp_max)" +defs["igTempInputScalar"][1]["argsT"] = {} +defs["igTempInputScalar"][1]["argsT"][1] = {} +defs["igTempInputScalar"][1]["argsT"][1]["name"] = "bb" +defs["igTempInputScalar"][1]["argsT"][1]["type"] = "const ImRect" +defs["igTempInputScalar"][1]["argsT"][2] = {} +defs["igTempInputScalar"][1]["argsT"][2]["name"] = "id" +defs["igTempInputScalar"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igTempInputScalar"][1]["argsT"][3] = {} +defs["igTempInputScalar"][1]["argsT"][3]["name"] = "label" +defs["igTempInputScalar"][1]["argsT"][3]["type"] = "const char*" +defs["igTempInputScalar"][1]["argsT"][4] = {} +defs["igTempInputScalar"][1]["argsT"][4]["name"] = "data_type" +defs["igTempInputScalar"][1]["argsT"][4]["type"] = "ImGuiDataType" +defs["igTempInputScalar"][1]["argsT"][5] = {} +defs["igTempInputScalar"][1]["argsT"][5]["name"] = "p_data" +defs["igTempInputScalar"][1]["argsT"][5]["type"] = "void*" +defs["igTempInputScalar"][1]["argsT"][6] = {} +defs["igTempInputScalar"][1]["argsT"][6]["name"] = "format" +defs["igTempInputScalar"][1]["argsT"][6]["type"] = "const char*" +defs["igTempInputScalar"][1]["argsT"][7] = {} +defs["igTempInputScalar"][1]["argsT"][7]["name"] = "p_clamp_min" +defs["igTempInputScalar"][1]["argsT"][7]["type"] = "const void*" +defs["igTempInputScalar"][1]["argsT"][8] = {} +defs["igTempInputScalar"][1]["argsT"][8]["name"] = "p_clamp_max" +defs["igTempInputScalar"][1]["argsT"][8]["type"] = "const void*" +defs["igTempInputScalar"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min=((void*)0),const void* p_clamp_max=((void*)0))" +defs["igTempInputScalar"][1]["call_args"] = "(bb,id,label,data_type,p_data,format,p_clamp_min,p_clamp_max)" +defs["igTempInputScalar"][1]["cimguiname"] = "igTempInputScalar" +defs["igTempInputScalar"][1]["defaults"] = {} +defs["igTempInputScalar"][1]["defaults"]["p_clamp_max"] = "NULL" +defs["igTempInputScalar"][1]["defaults"]["p_clamp_min"] = "NULL" +defs["igTempInputScalar"][1]["funcname"] = "TempInputScalar" +defs["igTempInputScalar"][1]["location"] = "imgui_internal:3397" +defs["igTempInputScalar"][1]["namespace"] = "ImGui" +defs["igTempInputScalar"][1]["ov_cimguiname"] = "igTempInputScalar" +defs["igTempInputScalar"][1]["ret"] = "bool" +defs["igTempInputScalar"][1]["signature"] = "(const ImRect,ImGuiID,const char*,ImGuiDataType,void*,const char*,const void*,const void*)" +defs["igTempInputScalar"][1]["stname"] = "" +defs["igTempInputScalar"]["(const ImRect,ImGuiID,const char*,ImGuiDataType,void*,const char*,const void*,const void*)"] = defs["igTempInputScalar"][1] +defs["igTempInputText"] = {} +defs["igTempInputText"][1] = {} +defs["igTempInputText"][1]["args"] = "(const ImRect bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags)" +defs["igTempInputText"][1]["argsT"] = {} +defs["igTempInputText"][1]["argsT"][1] = {} +defs["igTempInputText"][1]["argsT"][1]["name"] = "bb" +defs["igTempInputText"][1]["argsT"][1]["type"] = "const ImRect" +defs["igTempInputText"][1]["argsT"][2] = {} +defs["igTempInputText"][1]["argsT"][2]["name"] = "id" +defs["igTempInputText"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igTempInputText"][1]["argsT"][3] = {} +defs["igTempInputText"][1]["argsT"][3]["name"] = "label" +defs["igTempInputText"][1]["argsT"][3]["type"] = "const char*" +defs["igTempInputText"][1]["argsT"][4] = {} +defs["igTempInputText"][1]["argsT"][4]["name"] = "buf" +defs["igTempInputText"][1]["argsT"][4]["type"] = "char*" +defs["igTempInputText"][1]["argsT"][5] = {} +defs["igTempInputText"][1]["argsT"][5]["name"] = "buf_size" +defs["igTempInputText"][1]["argsT"][5]["type"] = "int" +defs["igTempInputText"][1]["argsT"][6] = {} +defs["igTempInputText"][1]["argsT"][6]["name"] = "flags" +defs["igTempInputText"][1]["argsT"][6]["type"] = "ImGuiInputTextFlags" +defs["igTempInputText"][1]["argsoriginal"] = "(const ImRect& bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags)" +defs["igTempInputText"][1]["call_args"] = "(bb,id,label,buf,buf_size,flags)" +defs["igTempInputText"][1]["cimguiname"] = "igTempInputText" +defs["igTempInputText"][1]["defaults"] = {} +defs["igTempInputText"][1]["funcname"] = "TempInputText" +defs["igTempInputText"][1]["location"] = "imgui_internal:3396" +defs["igTempInputText"][1]["namespace"] = "ImGui" +defs["igTempInputText"][1]["ov_cimguiname"] = "igTempInputText" +defs["igTempInputText"][1]["ret"] = "bool" +defs["igTempInputText"][1]["signature"] = "(const ImRect,ImGuiID,const char*,char*,int,ImGuiInputTextFlags)" +defs["igTempInputText"][1]["stname"] = "" +defs["igTempInputText"]["(const ImRect,ImGuiID,const char*,char*,int,ImGuiInputTextFlags)"] = defs["igTempInputText"][1] +defs["igTestKeyOwner"] = {} +defs["igTestKeyOwner"][1] = {} +defs["igTestKeyOwner"][1]["args"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igTestKeyOwner"][1]["argsT"] = {} +defs["igTestKeyOwner"][1]["argsT"][1] = {} +defs["igTestKeyOwner"][1]["argsT"][1]["name"] = "key" +defs["igTestKeyOwner"][1]["argsT"][1]["type"] = "ImGuiKey" +defs["igTestKeyOwner"][1]["argsT"][2] = {} +defs["igTestKeyOwner"][1]["argsT"][2]["name"] = "owner_id" +defs["igTestKeyOwner"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igTestKeyOwner"][1]["argsoriginal"] = "(ImGuiKey key,ImGuiID owner_id)" +defs["igTestKeyOwner"][1]["call_args"] = "(key,owner_id)" +defs["igTestKeyOwner"][1]["cimguiname"] = "igTestKeyOwner" +defs["igTestKeyOwner"][1]["defaults"] = {} +defs["igTestKeyOwner"][1]["funcname"] = "TestKeyOwner" +defs["igTestKeyOwner"][1]["location"] = "imgui_internal:3141" +defs["igTestKeyOwner"][1]["namespace"] = "ImGui" +defs["igTestKeyOwner"][1]["ov_cimguiname"] = "igTestKeyOwner" +defs["igTestKeyOwner"][1]["ret"] = "bool" +defs["igTestKeyOwner"][1]["signature"] = "(ImGuiKey,ImGuiID)" +defs["igTestKeyOwner"][1]["stname"] = "" +defs["igTestKeyOwner"]["(ImGuiKey,ImGuiID)"] = defs["igTestKeyOwner"][1] +defs["igTestShortcutRouting"] = {} +defs["igTestShortcutRouting"][1] = {} +defs["igTestShortcutRouting"][1]["args"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id)" +defs["igTestShortcutRouting"][1]["argsT"] = {} +defs["igTestShortcutRouting"][1]["argsT"][1] = {} +defs["igTestShortcutRouting"][1]["argsT"][1]["name"] = "key_chord" +defs["igTestShortcutRouting"][1]["argsT"][1]["type"] = "ImGuiKeyChord" +defs["igTestShortcutRouting"][1]["argsT"][2] = {} +defs["igTestShortcutRouting"][1]["argsT"][2]["name"] = "owner_id" +defs["igTestShortcutRouting"][1]["argsT"][2]["type"] = "ImGuiID" +defs["igTestShortcutRouting"][1]["argsoriginal"] = "(ImGuiKeyChord key_chord,ImGuiID owner_id)" +defs["igTestShortcutRouting"][1]["call_args"] = "(key_chord,owner_id)" +defs["igTestShortcutRouting"][1]["cimguiname"] = "igTestShortcutRouting" +defs["igTestShortcutRouting"][1]["defaults"] = {} +defs["igTestShortcutRouting"][1]["funcname"] = "TestShortcutRouting" +defs["igTestShortcutRouting"][1]["location"] = "imgui_internal:3169" +defs["igTestShortcutRouting"][1]["namespace"] = "ImGui" +defs["igTestShortcutRouting"][1]["ov_cimguiname"] = "igTestShortcutRouting" +defs["igTestShortcutRouting"][1]["ret"] = "bool" +defs["igTestShortcutRouting"][1]["signature"] = "(ImGuiKeyChord,ImGuiID)" +defs["igTestShortcutRouting"][1]["stname"] = "" +defs["igTestShortcutRouting"]["(ImGuiKeyChord,ImGuiID)"] = defs["igTestShortcutRouting"][1] defs["igText"] = {} defs["igText"][1] = {} defs["igText"][1]["args"] = "(const char* fmt,...)" @@ -14839,6 +29703,33 @@ defs["igTextDisabledV"][1]["ret"] = "void" defs["igTextDisabledV"][1]["signature"] = "(const char*,va_list)" defs["igTextDisabledV"][1]["stname"] = "" defs["igTextDisabledV"]["(const char*,va_list)"] = defs["igTextDisabledV"][1] +defs["igTextEx"] = {} +defs["igTextEx"][1] = {} +defs["igTextEx"][1]["args"] = "(const char* text,const char* text_end,ImGuiTextFlags flags)" +defs["igTextEx"][1]["argsT"] = {} +defs["igTextEx"][1]["argsT"][1] = {} +defs["igTextEx"][1]["argsT"][1]["name"] = "text" +defs["igTextEx"][1]["argsT"][1]["type"] = "const char*" +defs["igTextEx"][1]["argsT"][2] = {} +defs["igTextEx"][1]["argsT"][2]["name"] = "text_end" +defs["igTextEx"][1]["argsT"][2]["type"] = "const char*" +defs["igTextEx"][1]["argsT"][3] = {} +defs["igTextEx"][1]["argsT"][3]["name"] = "flags" +defs["igTextEx"][1]["argsT"][3]["type"] = "ImGuiTextFlags" +defs["igTextEx"][1]["argsoriginal"] = "(const char* text,const char* text_end=((void*)0),ImGuiTextFlags flags=0)" +defs["igTextEx"][1]["call_args"] = "(text,text_end,flags)" +defs["igTextEx"][1]["cimguiname"] = "igTextEx" +defs["igTextEx"][1]["defaults"] = {} +defs["igTextEx"][1]["defaults"]["flags"] = "0" +defs["igTextEx"][1]["defaults"]["text_end"] = "NULL" +defs["igTextEx"][1]["funcname"] = "TextEx" +defs["igTextEx"][1]["location"] = "imgui_internal:3350" +defs["igTextEx"][1]["namespace"] = "ImGui" +defs["igTextEx"][1]["ov_cimguiname"] = "igTextEx" +defs["igTextEx"][1]["ret"] = "void" +defs["igTextEx"][1]["signature"] = "(const char*,const char*,ImGuiTextFlags)" +defs["igTextEx"][1]["stname"] = "" +defs["igTextEx"]["(const char*,const char*,ImGuiTextFlags)"] = defs["igTextEx"][1] defs["igTextUnformatted"] = {} defs["igTextUnformatted"][1] = {} defs["igTextUnformatted"][1]["args"] = "(const char* text,const char* text_end)" @@ -14929,6 +29820,31 @@ defs["igTextWrappedV"][1]["ret"] = "void" defs["igTextWrappedV"][1]["signature"] = "(const char*,va_list)" defs["igTextWrappedV"][1]["stname"] = "" defs["igTextWrappedV"]["(const char*,va_list)"] = defs["igTextWrappedV"][1] +defs["igTranslateWindowsInViewport"] = {} +defs["igTranslateWindowsInViewport"][1] = {} +defs["igTranslateWindowsInViewport"][1]["args"] = "(ImGuiViewportP* viewport,const ImVec2 old_pos,const ImVec2 new_pos)" +defs["igTranslateWindowsInViewport"][1]["argsT"] = {} +defs["igTranslateWindowsInViewport"][1]["argsT"][1] = {} +defs["igTranslateWindowsInViewport"][1]["argsT"][1]["name"] = "viewport" +defs["igTranslateWindowsInViewport"][1]["argsT"][1]["type"] = "ImGuiViewportP*" +defs["igTranslateWindowsInViewport"][1]["argsT"][2] = {} +defs["igTranslateWindowsInViewport"][1]["argsT"][2]["name"] = "old_pos" +defs["igTranslateWindowsInViewport"][1]["argsT"][2]["type"] = "const ImVec2" +defs["igTranslateWindowsInViewport"][1]["argsT"][3] = {} +defs["igTranslateWindowsInViewport"][1]["argsT"][3]["name"] = "new_pos" +defs["igTranslateWindowsInViewport"][1]["argsT"][3]["type"] = "const ImVec2" +defs["igTranslateWindowsInViewport"][1]["argsoriginal"] = "(ImGuiViewportP* viewport,const ImVec2& old_pos,const ImVec2& new_pos)" +defs["igTranslateWindowsInViewport"][1]["call_args"] = "(viewport,old_pos,new_pos)" +defs["igTranslateWindowsInViewport"][1]["cimguiname"] = "igTranslateWindowsInViewport" +defs["igTranslateWindowsInViewport"][1]["defaults"] = {} +defs["igTranslateWindowsInViewport"][1]["funcname"] = "TranslateWindowsInViewport" +defs["igTranslateWindowsInViewport"][1]["location"] = "imgui_internal:2982" +defs["igTranslateWindowsInViewport"][1]["namespace"] = "ImGui" +defs["igTranslateWindowsInViewport"][1]["ov_cimguiname"] = "igTranslateWindowsInViewport" +defs["igTranslateWindowsInViewport"][1]["ret"] = "void" +defs["igTranslateWindowsInViewport"][1]["signature"] = "(ImGuiViewportP*,const ImVec2,const ImVec2)" +defs["igTranslateWindowsInViewport"][1]["stname"] = "" +defs["igTranslateWindowsInViewport"]["(ImGuiViewportP*,const ImVec2,const ImVec2)"] = defs["igTranslateWindowsInViewport"][1] defs["igTreeNode"] = {} defs["igTreeNode"][1] = {} defs["igTreeNode"][1]["args"] = "(const char* label)" @@ -14998,6 +29914,35 @@ defs["igTreeNode"][3]["stname"] = "" defs["igTreeNode"]["(const char*)"] = defs["igTreeNode"][1] defs["igTreeNode"]["(const char*,const char*,...)"] = defs["igTreeNode"][2] defs["igTreeNode"]["(const void*,const char*,...)"] = defs["igTreeNode"][3] +defs["igTreeNodeBehavior"] = {} +defs["igTreeNodeBehavior"][1] = {} +defs["igTreeNodeBehavior"][1]["args"] = "(ImGuiID id,ImGuiTreeNodeFlags flags,const char* label,const char* label_end)" +defs["igTreeNodeBehavior"][1]["argsT"] = {} +defs["igTreeNodeBehavior"][1]["argsT"][1] = {} +defs["igTreeNodeBehavior"][1]["argsT"][1]["name"] = "id" +defs["igTreeNodeBehavior"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTreeNodeBehavior"][1]["argsT"][2] = {} +defs["igTreeNodeBehavior"][1]["argsT"][2]["name"] = "flags" +defs["igTreeNodeBehavior"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeBehavior"][1]["argsT"][3] = {} +defs["igTreeNodeBehavior"][1]["argsT"][3]["name"] = "label" +defs["igTreeNodeBehavior"][1]["argsT"][3]["type"] = "const char*" +defs["igTreeNodeBehavior"][1]["argsT"][4] = {} +defs["igTreeNodeBehavior"][1]["argsT"][4]["name"] = "label_end" +defs["igTreeNodeBehavior"][1]["argsT"][4]["type"] = "const char*" +defs["igTreeNodeBehavior"][1]["argsoriginal"] = "(ImGuiID id,ImGuiTreeNodeFlags flags,const char* label,const char* label_end=((void*)0))" +defs["igTreeNodeBehavior"][1]["call_args"] = "(id,flags,label,label_end)" +defs["igTreeNodeBehavior"][1]["cimguiname"] = "igTreeNodeBehavior" +defs["igTreeNodeBehavior"][1]["defaults"] = {} +defs["igTreeNodeBehavior"][1]["defaults"]["label_end"] = "NULL" +defs["igTreeNodeBehavior"][1]["funcname"] = "TreeNodeBehavior" +defs["igTreeNodeBehavior"][1]["location"] = "imgui_internal:3371" +defs["igTreeNodeBehavior"][1]["namespace"] = "ImGui" +defs["igTreeNodeBehavior"][1]["ov_cimguiname"] = "igTreeNodeBehavior" +defs["igTreeNodeBehavior"][1]["ret"] = "bool" +defs["igTreeNodeBehavior"][1]["signature"] = "(ImGuiID,ImGuiTreeNodeFlags,const char*,const char*)" +defs["igTreeNodeBehavior"][1]["stname"] = "" +defs["igTreeNodeBehavior"]["(ImGuiID,ImGuiTreeNodeFlags,const char*,const char*)"] = defs["igTreeNodeBehavior"][1] defs["igTreeNodeEx"] = {} defs["igTreeNodeEx"][1] = {} defs["igTreeNodeEx"][1]["args"] = "(const char* label,ImGuiTreeNodeFlags flags)" @@ -15132,6 +30077,50 @@ defs["igTreeNodeExV"][2]["signature"] = "(const void*,ImGuiTreeNodeFlags,const c defs["igTreeNodeExV"][2]["stname"] = "" defs["igTreeNodeExV"]["(const char*,ImGuiTreeNodeFlags,const char*,va_list)"] = defs["igTreeNodeExV"][1] defs["igTreeNodeExV"]["(const void*,ImGuiTreeNodeFlags,const char*,va_list)"] = defs["igTreeNodeExV"][2] +defs["igTreeNodeSetOpen"] = {} +defs["igTreeNodeSetOpen"][1] = {} +defs["igTreeNodeSetOpen"][1]["args"] = "(ImGuiID id,bool open)" +defs["igTreeNodeSetOpen"][1]["argsT"] = {} +defs["igTreeNodeSetOpen"][1]["argsT"][1] = {} +defs["igTreeNodeSetOpen"][1]["argsT"][1]["name"] = "id" +defs["igTreeNodeSetOpen"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTreeNodeSetOpen"][1]["argsT"][2] = {} +defs["igTreeNodeSetOpen"][1]["argsT"][2]["name"] = "open" +defs["igTreeNodeSetOpen"][1]["argsT"][2]["type"] = "bool" +defs["igTreeNodeSetOpen"][1]["argsoriginal"] = "(ImGuiID id,bool open)" +defs["igTreeNodeSetOpen"][1]["call_args"] = "(id,open)" +defs["igTreeNodeSetOpen"][1]["cimguiname"] = "igTreeNodeSetOpen" +defs["igTreeNodeSetOpen"][1]["defaults"] = {} +defs["igTreeNodeSetOpen"][1]["funcname"] = "TreeNodeSetOpen" +defs["igTreeNodeSetOpen"][1]["location"] = "imgui_internal:3373" +defs["igTreeNodeSetOpen"][1]["namespace"] = "ImGui" +defs["igTreeNodeSetOpen"][1]["ov_cimguiname"] = "igTreeNodeSetOpen" +defs["igTreeNodeSetOpen"][1]["ret"] = "void" +defs["igTreeNodeSetOpen"][1]["signature"] = "(ImGuiID,bool)" +defs["igTreeNodeSetOpen"][1]["stname"] = "" +defs["igTreeNodeSetOpen"]["(ImGuiID,bool)"] = defs["igTreeNodeSetOpen"][1] +defs["igTreeNodeUpdateNextOpen"] = {} +defs["igTreeNodeUpdateNextOpen"][1] = {} +defs["igTreeNodeUpdateNextOpen"][1]["args"] = "(ImGuiID id,ImGuiTreeNodeFlags flags)" +defs["igTreeNodeUpdateNextOpen"][1]["argsT"] = {} +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][1] = {} +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][1]["name"] = "id" +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][2] = {} +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][2]["name"] = "flags" +defs["igTreeNodeUpdateNextOpen"][1]["argsT"][2]["type"] = "ImGuiTreeNodeFlags" +defs["igTreeNodeUpdateNextOpen"][1]["argsoriginal"] = "(ImGuiID id,ImGuiTreeNodeFlags flags)" +defs["igTreeNodeUpdateNextOpen"][1]["call_args"] = "(id,flags)" +defs["igTreeNodeUpdateNextOpen"][1]["cimguiname"] = "igTreeNodeUpdateNextOpen" +defs["igTreeNodeUpdateNextOpen"][1]["defaults"] = {} +defs["igTreeNodeUpdateNextOpen"][1]["funcname"] = "TreeNodeUpdateNextOpen" +defs["igTreeNodeUpdateNextOpen"][1]["location"] = "imgui_internal:3374" +defs["igTreeNodeUpdateNextOpen"][1]["namespace"] = "ImGui" +defs["igTreeNodeUpdateNextOpen"][1]["ov_cimguiname"] = "igTreeNodeUpdateNextOpen" +defs["igTreeNodeUpdateNextOpen"][1]["ret"] = "bool" +defs["igTreeNodeUpdateNextOpen"][1]["signature"] = "(ImGuiID,ImGuiTreeNodeFlags)" +defs["igTreeNodeUpdateNextOpen"][1]["stname"] = "" +defs["igTreeNodeUpdateNextOpen"]["(ImGuiID,ImGuiTreeNodeFlags)"] = defs["igTreeNodeUpdateNextOpen"][1] defs["igTreeNodeV"] = {} defs["igTreeNodeV"][1] = {} defs["igTreeNodeV"][1]["args"] = "(const char* str_id,const char* fmt,va_list args)" @@ -15234,6 +30223,25 @@ defs["igTreePush"][2]["signature"] = "(const void*)" defs["igTreePush"][2]["stname"] = "" defs["igTreePush"]["(const char*)"] = defs["igTreePush"][1] defs["igTreePush"]["(const void*)"] = defs["igTreePush"][2] +defs["igTreePushOverrideID"] = {} +defs["igTreePushOverrideID"][1] = {} +defs["igTreePushOverrideID"][1]["args"] = "(ImGuiID id)" +defs["igTreePushOverrideID"][1]["argsT"] = {} +defs["igTreePushOverrideID"][1]["argsT"][1] = {} +defs["igTreePushOverrideID"][1]["argsT"][1]["name"] = "id" +defs["igTreePushOverrideID"][1]["argsT"][1]["type"] = "ImGuiID" +defs["igTreePushOverrideID"][1]["argsoriginal"] = "(ImGuiID id)" +defs["igTreePushOverrideID"][1]["call_args"] = "(id)" +defs["igTreePushOverrideID"][1]["cimguiname"] = "igTreePushOverrideID" +defs["igTreePushOverrideID"][1]["defaults"] = {} +defs["igTreePushOverrideID"][1]["funcname"] = "TreePushOverrideID" +defs["igTreePushOverrideID"][1]["location"] = "imgui_internal:3372" +defs["igTreePushOverrideID"][1]["namespace"] = "ImGui" +defs["igTreePushOverrideID"][1]["ov_cimguiname"] = "igTreePushOverrideID" +defs["igTreePushOverrideID"][1]["ret"] = "void" +defs["igTreePushOverrideID"][1]["signature"] = "(ImGuiID)" +defs["igTreePushOverrideID"][1]["stname"] = "" +defs["igTreePushOverrideID"]["(ImGuiID)"] = defs["igTreePushOverrideID"][1] defs["igUnindent"] = {} defs["igUnindent"][1] = {} defs["igUnindent"][1]["args"] = "(float indent_w)" @@ -15254,6 +30262,73 @@ defs["igUnindent"][1]["ret"] = "void" defs["igUnindent"][1]["signature"] = "(float)" defs["igUnindent"][1]["stname"] = "" defs["igUnindent"]["(float)"] = defs["igUnindent"][1] +defs["igUpdateHoveredWindowAndCaptureFlags"] = {} +defs["igUpdateHoveredWindowAndCaptureFlags"][1] = {} +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["args"] = "()" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["argsT"] = {} +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["argsoriginal"] = "()" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["call_args"] = "()" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["cimguiname"] = "igUpdateHoveredWindowAndCaptureFlags" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["defaults"] = {} +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["funcname"] = "UpdateHoveredWindowAndCaptureFlags" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["location"] = "imgui_internal:2970" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["namespace"] = "ImGui" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["ov_cimguiname"] = "igUpdateHoveredWindowAndCaptureFlags" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["ret"] = "void" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["signature"] = "()" +defs["igUpdateHoveredWindowAndCaptureFlags"][1]["stname"] = "" +defs["igUpdateHoveredWindowAndCaptureFlags"]["()"] = defs["igUpdateHoveredWindowAndCaptureFlags"][1] +defs["igUpdateInputEvents"] = {} +defs["igUpdateInputEvents"][1] = {} +defs["igUpdateInputEvents"][1]["args"] = "(bool trickle_fast_inputs)" +defs["igUpdateInputEvents"][1]["argsT"] = {} +defs["igUpdateInputEvents"][1]["argsT"][1] = {} +defs["igUpdateInputEvents"][1]["argsT"][1]["name"] = "trickle_fast_inputs" +defs["igUpdateInputEvents"][1]["argsT"][1]["type"] = "bool" +defs["igUpdateInputEvents"][1]["argsoriginal"] = "(bool trickle_fast_inputs)" +defs["igUpdateInputEvents"][1]["call_args"] = "(trickle_fast_inputs)" +defs["igUpdateInputEvents"][1]["cimguiname"] = "igUpdateInputEvents" +defs["igUpdateInputEvents"][1]["defaults"] = {} +defs["igUpdateInputEvents"][1]["funcname"] = "UpdateInputEvents" +defs["igUpdateInputEvents"][1]["location"] = "imgui_internal:2969" +defs["igUpdateInputEvents"][1]["namespace"] = "ImGui" +defs["igUpdateInputEvents"][1]["ov_cimguiname"] = "igUpdateInputEvents" +defs["igUpdateInputEvents"][1]["ret"] = "void" +defs["igUpdateInputEvents"][1]["signature"] = "(bool)" +defs["igUpdateInputEvents"][1]["stname"] = "" +defs["igUpdateInputEvents"]["(bool)"] = defs["igUpdateInputEvents"][1] +defs["igUpdateMouseMovingWindowEndFrame"] = {} +defs["igUpdateMouseMovingWindowEndFrame"][1] = {} +defs["igUpdateMouseMovingWindowEndFrame"][1]["args"] = "()" +defs["igUpdateMouseMovingWindowEndFrame"][1]["argsT"] = {} +defs["igUpdateMouseMovingWindowEndFrame"][1]["argsoriginal"] = "()" +defs["igUpdateMouseMovingWindowEndFrame"][1]["call_args"] = "()" +defs["igUpdateMouseMovingWindowEndFrame"][1]["cimguiname"] = "igUpdateMouseMovingWindowEndFrame" +defs["igUpdateMouseMovingWindowEndFrame"][1]["defaults"] = {} +defs["igUpdateMouseMovingWindowEndFrame"][1]["funcname"] = "UpdateMouseMovingWindowEndFrame" +defs["igUpdateMouseMovingWindowEndFrame"][1]["location"] = "imgui_internal:2974" +defs["igUpdateMouseMovingWindowEndFrame"][1]["namespace"] = "ImGui" +defs["igUpdateMouseMovingWindowEndFrame"][1]["ov_cimguiname"] = "igUpdateMouseMovingWindowEndFrame" +defs["igUpdateMouseMovingWindowEndFrame"][1]["ret"] = "void" +defs["igUpdateMouseMovingWindowEndFrame"][1]["signature"] = "()" +defs["igUpdateMouseMovingWindowEndFrame"][1]["stname"] = "" +defs["igUpdateMouseMovingWindowEndFrame"]["()"] = defs["igUpdateMouseMovingWindowEndFrame"][1] +defs["igUpdateMouseMovingWindowNewFrame"] = {} +defs["igUpdateMouseMovingWindowNewFrame"][1] = {} +defs["igUpdateMouseMovingWindowNewFrame"][1]["args"] = "()" +defs["igUpdateMouseMovingWindowNewFrame"][1]["argsT"] = {} +defs["igUpdateMouseMovingWindowNewFrame"][1]["argsoriginal"] = "()" +defs["igUpdateMouseMovingWindowNewFrame"][1]["call_args"] = "()" +defs["igUpdateMouseMovingWindowNewFrame"][1]["cimguiname"] = "igUpdateMouseMovingWindowNewFrame" +defs["igUpdateMouseMovingWindowNewFrame"][1]["defaults"] = {} +defs["igUpdateMouseMovingWindowNewFrame"][1]["funcname"] = "UpdateMouseMovingWindowNewFrame" +defs["igUpdateMouseMovingWindowNewFrame"][1]["location"] = "imgui_internal:2973" +defs["igUpdateMouseMovingWindowNewFrame"][1]["namespace"] = "ImGui" +defs["igUpdateMouseMovingWindowNewFrame"][1]["ov_cimguiname"] = "igUpdateMouseMovingWindowNewFrame" +defs["igUpdateMouseMovingWindowNewFrame"][1]["ret"] = "void" +defs["igUpdateMouseMovingWindowNewFrame"][1]["signature"] = "()" +defs["igUpdateMouseMovingWindowNewFrame"][1]["stname"] = "" +defs["igUpdateMouseMovingWindowNewFrame"]["()"] = defs["igUpdateMouseMovingWindowNewFrame"][1] defs["igUpdatePlatformWindows"] = {} defs["igUpdatePlatformWindows"][1] = {} defs["igUpdatePlatformWindows"][1]["args"] = "()" @@ -15270,6 +30345,31 @@ defs["igUpdatePlatformWindows"][1]["ret"] = "void" defs["igUpdatePlatformWindows"][1]["signature"] = "()" defs["igUpdatePlatformWindows"][1]["stname"] = "" defs["igUpdatePlatformWindows"]["()"] = defs["igUpdatePlatformWindows"][1] +defs["igUpdateWindowParentAndRootLinks"] = {} +defs["igUpdateWindowParentAndRootLinks"][1] = {} +defs["igUpdateWindowParentAndRootLinks"][1]["args"] = "(ImGuiWindow* window,ImGuiWindowFlags flags,ImGuiWindow* parent_window)" +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"] = {} +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"][1] = {} +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"][1]["name"] = "window" +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"][1]["type"] = "ImGuiWindow*" +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"][2] = {} +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"][2]["name"] = "flags" +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"][2]["type"] = "ImGuiWindowFlags" +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"][3] = {} +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"][3]["name"] = "parent_window" +defs["igUpdateWindowParentAndRootLinks"][1]["argsT"][3]["type"] = "ImGuiWindow*" +defs["igUpdateWindowParentAndRootLinks"][1]["argsoriginal"] = "(ImGuiWindow* window,ImGuiWindowFlags flags,ImGuiWindow* parent_window)" +defs["igUpdateWindowParentAndRootLinks"][1]["call_args"] = "(window,flags,parent_window)" +defs["igUpdateWindowParentAndRootLinks"][1]["cimguiname"] = "igUpdateWindowParentAndRootLinks" +defs["igUpdateWindowParentAndRootLinks"][1]["defaults"] = {} +defs["igUpdateWindowParentAndRootLinks"][1]["funcname"] = "UpdateWindowParentAndRootLinks" +defs["igUpdateWindowParentAndRootLinks"][1]["location"] = "imgui_internal:2936" +defs["igUpdateWindowParentAndRootLinks"][1]["namespace"] = "ImGui" +defs["igUpdateWindowParentAndRootLinks"][1]["ov_cimguiname"] = "igUpdateWindowParentAndRootLinks" +defs["igUpdateWindowParentAndRootLinks"][1]["ret"] = "void" +defs["igUpdateWindowParentAndRootLinks"][1]["signature"] = "(ImGuiWindow*,ImGuiWindowFlags,ImGuiWindow*)" +defs["igUpdateWindowParentAndRootLinks"][1]["stname"] = "" +defs["igUpdateWindowParentAndRootLinks"]["(ImGuiWindow*,ImGuiWindowFlags,ImGuiWindow*)"] = defs["igUpdateWindowParentAndRootLinks"][1] defs["igVSliderFloat"] = {} defs["igVSliderFloat"][1] = {} defs["igVSliderFloat"][1]["args"] = "(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags)" @@ -15479,5 +30579,57 @@ defs["igValue"]["(const char*,bool)"] = defs["igValue"][1] defs["igValue"]["(const char*,float,const char*)"] = defs["igValue"][4] defs["igValue"]["(const char*,int)"] = defs["igValue"][2] defs["igValue"]["(const char*,unsigned int)"] = defs["igValue"][3] +defs["igWindowRectAbsToRel"] = {} +defs["igWindowRectAbsToRel"][1] = {} +defs["igWindowRectAbsToRel"][1]["args"] = "(ImRect *pOut,ImGuiWindow* window,const ImRect r)" +defs["igWindowRectAbsToRel"][1]["argsT"] = {} +defs["igWindowRectAbsToRel"][1]["argsT"][1] = {} +defs["igWindowRectAbsToRel"][1]["argsT"][1]["name"] = "pOut" +defs["igWindowRectAbsToRel"][1]["argsT"][1]["type"] = "ImRect*" +defs["igWindowRectAbsToRel"][1]["argsT"][2] = {} +defs["igWindowRectAbsToRel"][1]["argsT"][2]["name"] = "window" +defs["igWindowRectAbsToRel"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igWindowRectAbsToRel"][1]["argsT"][3] = {} +defs["igWindowRectAbsToRel"][1]["argsT"][3]["name"] = "r" +defs["igWindowRectAbsToRel"][1]["argsT"][3]["type"] = "const ImRect" +defs["igWindowRectAbsToRel"][1]["argsoriginal"] = "(ImGuiWindow* window,const ImRect& r)" +defs["igWindowRectAbsToRel"][1]["call_args"] = "(window,r)" +defs["igWindowRectAbsToRel"][1]["cimguiname"] = "igWindowRectAbsToRel" +defs["igWindowRectAbsToRel"][1]["defaults"] = {} +defs["igWindowRectAbsToRel"][1]["funcname"] = "WindowRectAbsToRel" +defs["igWindowRectAbsToRel"][1]["location"] = "imgui_internal:2946" +defs["igWindowRectAbsToRel"][1]["namespace"] = "ImGui" +defs["igWindowRectAbsToRel"][1]["nonUDT"] = 1 +defs["igWindowRectAbsToRel"][1]["ov_cimguiname"] = "igWindowRectAbsToRel" +defs["igWindowRectAbsToRel"][1]["ret"] = "void" +defs["igWindowRectAbsToRel"][1]["signature"] = "(ImGuiWindow*,const ImRect)" +defs["igWindowRectAbsToRel"][1]["stname"] = "" +defs["igWindowRectAbsToRel"]["(ImGuiWindow*,const ImRect)"] = defs["igWindowRectAbsToRel"][1] +defs["igWindowRectRelToAbs"] = {} +defs["igWindowRectRelToAbs"][1] = {} +defs["igWindowRectRelToAbs"][1]["args"] = "(ImRect *pOut,ImGuiWindow* window,const ImRect r)" +defs["igWindowRectRelToAbs"][1]["argsT"] = {} +defs["igWindowRectRelToAbs"][1]["argsT"][1] = {} +defs["igWindowRectRelToAbs"][1]["argsT"][1]["name"] = "pOut" +defs["igWindowRectRelToAbs"][1]["argsT"][1]["type"] = "ImRect*" +defs["igWindowRectRelToAbs"][1]["argsT"][2] = {} +defs["igWindowRectRelToAbs"][1]["argsT"][2]["name"] = "window" +defs["igWindowRectRelToAbs"][1]["argsT"][2]["type"] = "ImGuiWindow*" +defs["igWindowRectRelToAbs"][1]["argsT"][3] = {} +defs["igWindowRectRelToAbs"][1]["argsT"][3]["name"] = "r" +defs["igWindowRectRelToAbs"][1]["argsT"][3]["type"] = "const ImRect" +defs["igWindowRectRelToAbs"][1]["argsoriginal"] = "(ImGuiWindow* window,const ImRect& r)" +defs["igWindowRectRelToAbs"][1]["call_args"] = "(window,r)" +defs["igWindowRectRelToAbs"][1]["cimguiname"] = "igWindowRectRelToAbs" +defs["igWindowRectRelToAbs"][1]["defaults"] = {} +defs["igWindowRectRelToAbs"][1]["funcname"] = "WindowRectRelToAbs" +defs["igWindowRectRelToAbs"][1]["location"] = "imgui_internal:2947" +defs["igWindowRectRelToAbs"][1]["namespace"] = "ImGui" +defs["igWindowRectRelToAbs"][1]["nonUDT"] = 1 +defs["igWindowRectRelToAbs"][1]["ov_cimguiname"] = "igWindowRectRelToAbs" +defs["igWindowRectRelToAbs"][1]["ret"] = "void" +defs["igWindowRectRelToAbs"][1]["signature"] = "(ImGuiWindow*,const ImRect)" +defs["igWindowRectRelToAbs"][1]["stname"] = "" +defs["igWindowRectRelToAbs"]["(ImGuiWindow*,const ImRect)"] = defs["igWindowRectRelToAbs"][1] return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/overloads.txt b/imgui-sys/third-party/imgui-docking-freetype/overloads.txt index c0ff42abc..6b78943a0 100644 --- a/imgui-sys/third-party/imgui-docking-freetype/overloads.txt +++ b/imgui-sys/third-party/imgui-docking-freetype/overloads.txt @@ -8,16 +8,64 @@ ImColor_ImColor 5 ImDrawList_AddText 2 1 void ImDrawList_AddText_Vec2 (const ImVec2,ImU32,const char*,const char*) 2 void ImDrawList_AddText_FontPtr (const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*) +ImGuiPtrOrIndex_ImGuiPtrOrIndex 2 +1 nil ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr (void*) +2 nil ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int (int) ImGuiStoragePair_ImGuiStoragePair 3 1 nil ImGuiStoragePair_ImGuiStoragePair_Int (ImGuiID,int) 2 nil ImGuiStoragePair_ImGuiStoragePair_Float (ImGuiID,float) 3 nil ImGuiStoragePair_ImGuiStoragePair_Ptr (ImGuiID,void*) +ImGuiStyleMod_ImGuiStyleMod 3 +1 nil ImGuiStyleMod_ImGuiStyleMod_Int (ImGuiStyleVar,int) +2 nil ImGuiStyleMod_ImGuiStyleMod_Float (ImGuiStyleVar,float) +3 nil ImGuiStyleMod_ImGuiStyleMod_Vec2 (ImGuiStyleVar,ImVec2) ImGuiTextRange_ImGuiTextRange 2 1 nil ImGuiTextRange_ImGuiTextRange_Nil () 2 nil ImGuiTextRange_ImGuiTextRange_Str (const char*,const char*) +ImGuiWindow_GetID 3 +1 ImGuiID ImGuiWindow_GetID_Str (const char*,const char*) +2 ImGuiID ImGuiWindow_GetID_Ptr (const void*) +3 ImGuiID ImGuiWindow_GetID_Int (int) +ImPool_Remove 2 +1 void ImPool_Remove_TPtr (ImGuiID,const T*) +2 void ImPool_Remove_PoolIdx (ImGuiID,ImPoolIdx) +ImRect_Add 2 +1 void ImRect_Add_Vec2 (const ImVec2) +2 void ImRect_Add_Rect (const ImRect) +ImRect_Contains 2 +1 bool ImRect_Contains_Vec2 (const ImVec2)const +2 bool ImRect_Contains_Rect (const ImRect)const +ImRect_Expand 2 +1 void ImRect_Expand_Float (const float) +2 void ImRect_Expand_Vec2 (const ImVec2) +ImRect_ImRect 4 +1 nil ImRect_ImRect_Nil () +2 nil ImRect_ImRect_Vec2 (const ImVec2,const ImVec2) +3 nil ImRect_ImRect_Vec4 (const ImVec4) +4 nil ImRect_ImRect_Float (float,float,float,float) +ImSpan_ImSpan 3 +1 nil ImSpan_ImSpan_Nil () +2 nil ImSpan_ImSpan_TPtrInt (T*,int) +3 nil ImSpan_ImSpan_TPtrTPtr (T*,T*) +ImSpan_begin 2 +1 T* ImSpan_begin_Nil () +2 const T* ImSpan_begin__const ()const +ImSpan_end 2 +1 T* ImSpan_end_Nil () +2 const T* ImSpan_end__const ()const +ImSpan_set 2 +1 void ImSpan_set_Int (T*,int) +2 void ImSpan_set_TPtr (T*,T*) +ImVec1_ImVec1 2 +1 nil ImVec1_ImVec1_Nil () +2 nil ImVec1_ImVec1_Float (float) ImVec2_ImVec2 2 1 nil ImVec2_ImVec2_Nil () 2 nil ImVec2_ImVec2_Float (float,float) +ImVec2ih_ImVec2ih 3 +1 nil ImVec2ih_ImVec2ih_Nil () +2 nil ImVec2ih_ImVec2ih_short (short,short) +3 nil ImVec2ih_ImVec2ih_Vec2 (const ImVec2) ImVec4_ImVec4 2 1 nil ImVec4_ImVec4_Nil () 2 nil ImVec4_ImVec4_Float (float,float,float,float) @@ -48,9 +96,11 @@ ImVector_resize 2 igBeginChild 2 1 bool igBeginChild_Str (const char*,const ImVec2,bool,ImGuiWindowFlags) 2 bool igBeginChild_ID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags) -igCheckboxFlags 2 +igCheckboxFlags 4 1 bool igCheckboxFlags_IntPtr (const char*,int*,int) 2 bool igCheckboxFlags_UintPtr (const char*,unsigned int*,unsigned int) +3 bool igCheckboxFlags_S64Ptr (const char*,ImS64*,ImS64) +4 bool igCheckboxFlags_U64Ptr (const char*,ImU64*,ImU64) igCollapsingHeader 2 1 bool igCollapsingHeader_TreeNodeFlags (const char*,ImGuiTreeNodeFlags) 2 bool igCollapsingHeader_BoolPtr (const char*,bool*,ImGuiTreeNodeFlags) @@ -65,19 +115,79 @@ igGetColorU32 3 1 ImU32 igGetColorU32_Col (ImGuiCol,float) 2 ImU32 igGetColorU32_Vec4 (const ImVec4) 3 ImU32 igGetColorU32_U32 (ImU32) -igGetForegroundDrawList 2 +igGetForegroundDrawList 3 1 ImDrawList* igGetForegroundDrawList_Nil () 2 ImDrawList* igGetForegroundDrawList_ViewportPtr (ImGuiViewport*) +3 ImDrawList* igGetForegroundDrawList_WindowPtr (ImGuiWindow*) igGetID 3 1 ImGuiID igGetID_Str (const char*) 2 ImGuiID igGetID_StrStr (const char*,const char*) 3 ImGuiID igGetID_Ptr (const void*) +igImAbs 3 +1 int igImAbs_Int (int) +2 float igImAbs_Float (float) +3 double igImAbs_double (double) +igImFloor 2 +1 float igImFloor_Float (float) +2 ImVec2 igImFloor_Vec2 (const ImVec2) +igImFloorSigned 2 +1 float igImFloorSigned_Float (float) +2 ImVec2 igImFloorSigned_Vec2 (const ImVec2) +igImIsPowerOfTwo 2 +1 bool igImIsPowerOfTwo_Int (int) +2 bool igImIsPowerOfTwo_U64 (ImU64) +igImLengthSqr 2 +1 float igImLengthSqr_Vec2 (const ImVec2) +2 float igImLengthSqr_Vec4 (const ImVec4) +igImLerp 3 +1 ImVec2 igImLerp_Vec2Float (const ImVec2,const ImVec2,float) +2 ImVec2 igImLerp_Vec2Vec2 (const ImVec2,const ImVec2,const ImVec2) +3 ImVec4 igImLerp_Vec4 (const ImVec4,const ImVec4,float) +igImLog 2 +1 float igImLog_Float (float) +2 double igImLog_double (double) +igImPow 2 +1 float igImPow_Float (float,float) +2 double igImPow_double (double,double) +igImRsqrt 2 +1 float igImRsqrt_Float (float) +2 double igImRsqrt_double (double) +igImSign 2 +1 float igImSign_Float (float) +2 double igImSign_double (double) +igIsKeyDown 2 +1 bool igIsKeyDown_Nil (ImGuiKey) +2 bool igIsKeyDown_ID (ImGuiKey,ImGuiID) +igIsKeyPressed 2 +1 bool igIsKeyPressed_Bool (ImGuiKey,bool) +2 bool igIsKeyPressed_ID (ImGuiKey,ImGuiID,ImGuiInputFlags) +igIsKeyReleased 2 +1 bool igIsKeyReleased_Nil (ImGuiKey) +2 bool igIsKeyReleased_ID (ImGuiKey,ImGuiID) +igIsMouseClicked 2 +1 bool igIsMouseClicked_Bool (ImGuiMouseButton,bool) +2 bool igIsMouseClicked_ID (ImGuiMouseButton,ImGuiID,ImGuiInputFlags) +igIsMouseDown 2 +1 bool igIsMouseDown_Nil (ImGuiMouseButton) +2 bool igIsMouseDown_ID (ImGuiMouseButton,ImGuiID) +igIsMouseReleased 2 +1 bool igIsMouseReleased_Nil (ImGuiMouseButton) +2 bool igIsMouseReleased_ID (ImGuiMouseButton,ImGuiID) +igIsPopupOpen 2 +1 bool igIsPopupOpen_Str (const char*,ImGuiPopupFlags) +2 bool igIsPopupOpen_ID (ImGuiID,ImGuiPopupFlags) igIsRectVisible 2 1 bool igIsRectVisible_Nil (const ImVec2) 2 bool igIsRectVisible_Vec2 (const ImVec2,const ImVec2) +igItemSize 2 +1 void igItemSize_Vec2 (const ImVec2,float) +2 void igItemSize_Rect (const ImRect,float) igListBox 2 1 bool igListBox_Str_arr (const char*,int*,const char* const[],int,int) 2 bool igListBox_FnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int) +igMarkIniSettingsDirty 2 +1 void igMarkIniSettingsDirty_Nil () +2 void igMarkIniSettingsDirty_WindowPtr (ImGuiWindow*) igMenuItem 2 1 bool igMenuItem_Bool (const char*,const char*,bool,bool) 2 bool igMenuItem_BoolPtr (const char*,const char*,bool*,bool) @@ -107,18 +217,42 @@ igRadioButton 2 igSelectable 2 1 bool igSelectable_Bool (const char*,bool,ImGuiSelectableFlags,const ImVec2) 2 bool igSelectable_BoolPtr (const char*,bool*,ImGuiSelectableFlags,const ImVec2) -igSetWindowCollapsed 2 +igSetScrollFromPosX 2 +1 void igSetScrollFromPosX_Float (float,float) +2 void igSetScrollFromPosX_WindowPtr (ImGuiWindow*,float,float) +igSetScrollFromPosY 2 +1 void igSetScrollFromPosY_Float (float,float) +2 void igSetScrollFromPosY_WindowPtr (ImGuiWindow*,float,float) +igSetScrollX 2 +1 void igSetScrollX_Float (float) +2 void igSetScrollX_WindowPtr (ImGuiWindow*,float) +igSetScrollY 2 +1 void igSetScrollY_Float (float) +2 void igSetScrollY_WindowPtr (ImGuiWindow*,float) +igSetWindowCollapsed 3 1 void igSetWindowCollapsed_Bool (bool,ImGuiCond) 2 void igSetWindowCollapsed_Str (const char*,bool,ImGuiCond) +3 void igSetWindowCollapsed_WindowPtr (ImGuiWindow*,bool,ImGuiCond) igSetWindowFocus 2 1 void igSetWindowFocus_Nil () 2 void igSetWindowFocus_Str (const char*) -igSetWindowPos 2 +igSetWindowPos 3 1 void igSetWindowPos_Vec2 (const ImVec2,ImGuiCond) 2 void igSetWindowPos_Str (const char*,const ImVec2,ImGuiCond) -igSetWindowSize 2 +3 void igSetWindowPos_WindowPtr (ImGuiWindow*,const ImVec2,ImGuiCond) +igSetWindowSize 3 1 void igSetWindowSize_Vec2 (const ImVec2,ImGuiCond) 2 void igSetWindowSize_Str (const char*,const ImVec2,ImGuiCond) +3 void igSetWindowSize_WindowPtr (ImGuiWindow*,const ImVec2,ImGuiCond) +igTabItemCalcSize 2 +1 ImVec2 igTabItemCalcSize_Str (const char*,bool) +2 ImVec2 igTabItemCalcSize_WindowPtr (ImGuiWindow*) +igTableGcCompactTransientBuffers 2 +1 void igTableGcCompactTransientBuffers_TablePtr (ImGuiTable*) +2 void igTableGcCompactTransientBuffers_TableTempDataPtr (ImGuiTableTempData*) +igTableGetColumnName 2 +1 const char* igTableGetColumnName_Int (int) +2 const char* igTableGetColumnName_TablePtr (const ImGuiTable*,int) igTreeNode 3 1 bool igTreeNode_Str (const char*) 2 bool igTreeNode_StrStr (const char*,const char*,...) @@ -141,4 +275,4 @@ igValue 4 2 void igValue_Int (const char*,int) 3 void igValue_Uint (const char*,unsigned int) 4 void igValue_Float (const char*,float,const char*) -99 overloaded \ No newline at end of file +193 overloaded \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.json b/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.json index 81caefffa..57992968f 100644 --- a/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.json +++ b/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.json @@ -121,6 +121,45 @@ "value": "1 << 2" } ], + "ImGuiActivateFlags_": [ + { + "calc_value": 0, + "name": "ImGuiActivateFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiActivateFlags_PreferInput", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiActivateFlags_PreferTweak", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiActivateFlags_TryToPreserveState", + "value": "1 << 2" + } + ], + "ImGuiAxis": [ + { + "calc_value": -1, + "name": "ImGuiAxis_None", + "value": "-1" + }, + { + "calc_value": 0, + "name": "ImGuiAxis_X", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiAxis_Y", + "value": "1" + } + ], "ImGuiBackendFlags_": [ { "calc_value": 0, @@ -163,6 +202,103 @@ "value": "1 << 12" } ], + "ImGuiButtonFlagsPrivate_": [ + { + "calc_value": 16, + "name": "ImGuiButtonFlags_PressedOnClick", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiButtonFlags_PressedOnClickRelease", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiButtonFlags_PressedOnClickReleaseAnywhere", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiButtonFlags_PressedOnRelease", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiButtonFlags_PressedOnDoubleClick", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiButtonFlags_PressedOnDragDropHold", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiButtonFlags_Repeat", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiButtonFlags_FlattenChildren", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiButtonFlags_AllowItemOverlap", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiButtonFlags_DontClosePopups", + "value": "1 << 13" + }, + { + "calc_value": 32768, + "name": "ImGuiButtonFlags_AlignTextBaseLine", + "value": "1 << 15" + }, + { + "calc_value": 65536, + "name": "ImGuiButtonFlags_NoKeyModifiers", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiButtonFlags_NoHoldingActiveId", + "value": "1 << 17" + }, + { + "calc_value": 262144, + "name": "ImGuiButtonFlags_NoNavFocus", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiButtonFlags_NoHoveredOnFocus", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiButtonFlags_NoSetKeyOwner", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiButtonFlags_NoTestKeyOwner", + "value": "1 << 21" + }, + { + "calc_value": 1008, + "name": "ImGuiButtonFlags_PressedOnMask_", + "value": "ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold" + }, + { + "calc_value": 32, + "name": "ImGuiButtonFlags_PressedOnDefault_", + "value": "ImGuiButtonFlags_PressedOnClickRelease" + } + ], "ImGuiButtonFlags_": [ { "calc_value": 0, @@ -624,6 +760,13 @@ "value": "ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV" } ], + "ImGuiComboFlagsPrivate_": [ + { + "calc_value": 1048576, + "name": "ImGuiComboFlags_CustomPreview", + "value": "1 << 20" + } + ], "ImGuiComboFlags_": [ { "calc_value": 0, @@ -765,214 +908,466 @@ "value": "1 << 21" } ], - "ImGuiDataType_": [ + "ImGuiContextHookType": [ { "calc_value": 0, - "name": "ImGuiDataType_S8", + "name": "ImGuiContextHookType_NewFramePre", "value": "0" }, { "calc_value": 1, - "name": "ImGuiDataType_U8", + "name": "ImGuiContextHookType_NewFramePost", "value": "1" }, { "calc_value": 2, - "name": "ImGuiDataType_S16", + "name": "ImGuiContextHookType_EndFramePre", "value": "2" }, { "calc_value": 3, - "name": "ImGuiDataType_U16", + "name": "ImGuiContextHookType_EndFramePost", "value": "3" }, { "calc_value": 4, - "name": "ImGuiDataType_S32", + "name": "ImGuiContextHookType_RenderPre", "value": "4" }, { "calc_value": 5, - "name": "ImGuiDataType_U32", + "name": "ImGuiContextHookType_RenderPost", "value": "5" }, { "calc_value": 6, - "name": "ImGuiDataType_S64", + "name": "ImGuiContextHookType_Shutdown", "value": "6" }, { "calc_value": 7, - "name": "ImGuiDataType_U64", + "name": "ImGuiContextHookType_PendingRemoval_", "value": "7" - }, + } + ], + "ImGuiDataAuthority_": [ { - "calc_value": 8, - "name": "ImGuiDataType_Float", - "value": "8" + "calc_value": 0, + "name": "ImGuiDataAuthority_Auto", + "value": "0" }, { - "calc_value": 9, - "name": "ImGuiDataType_Double", - "value": "9" + "calc_value": 1, + "name": "ImGuiDataAuthority_DockNode", + "value": "1" }, { - "calc_value": 10, - "name": "ImGuiDataType_COUNT", - "value": "10" + "calc_value": 2, + "name": "ImGuiDataAuthority_Window", + "value": "2" } ], - "ImGuiDir_": [ + "ImGuiDataTypePrivate_": [ { - "calc_value": -1, - "name": "ImGuiDir_None", - "value": "-1" + "calc_value": 11, + "name": "ImGuiDataType_String", + "value": "ImGuiDataType_COUNT + 1" + }, + { + "calc_value": 12, + "name": "ImGuiDataType_Pointer", + "value": "ImGuiDataType_COUNT + 1+1" }, + { + "calc_value": 13, + "name": "ImGuiDataType_ID", + "value": "ImGuiDataType_COUNT + 1+1+1" + } + ], + "ImGuiDataType_": [ { "calc_value": 0, - "name": "ImGuiDir_Left", + "name": "ImGuiDataType_S8", "value": "0" }, { "calc_value": 1, - "name": "ImGuiDir_Right", + "name": "ImGuiDataType_U8", "value": "1" }, { "calc_value": 2, - "name": "ImGuiDir_Up", + "name": "ImGuiDataType_S16", "value": "2" }, { "calc_value": 3, - "name": "ImGuiDir_Down", + "name": "ImGuiDataType_U16", "value": "3" }, { "calc_value": 4, - "name": "ImGuiDir_COUNT", + "name": "ImGuiDataType_S32", "value": "4" - } - ], - "ImGuiDockNodeFlags_": [ - { - "calc_value": 0, - "name": "ImGuiDockNodeFlags_None", - "value": "0" }, { - "calc_value": 1, - "name": "ImGuiDockNodeFlags_KeepAliveOnly", - "value": "1 << 0" + "calc_value": 5, + "name": "ImGuiDataType_U32", + "value": "5" }, { - "calc_value": 4, - "name": "ImGuiDockNodeFlags_NoDockingInCentralNode", - "value": "1 << 2" + "calc_value": 6, + "name": "ImGuiDataType_S64", + "value": "6" }, { - "calc_value": 8, - "name": "ImGuiDockNodeFlags_PassthruCentralNode", - "value": "1 << 3" + "calc_value": 7, + "name": "ImGuiDataType_U64", + "value": "7" }, { - "calc_value": 16, - "name": "ImGuiDockNodeFlags_NoSplit", - "value": "1 << 4" + "calc_value": 8, + "name": "ImGuiDataType_Float", + "value": "8" }, { - "calc_value": 32, - "name": "ImGuiDockNodeFlags_NoResize", - "value": "1 << 5" + "calc_value": 9, + "name": "ImGuiDataType_Double", + "value": "9" }, { - "calc_value": 64, - "name": "ImGuiDockNodeFlags_AutoHideTabBar", - "value": "1 << 6" + "calc_value": 10, + "name": "ImGuiDataType_COUNT", + "value": "10" } ], - "ImGuiDragDropFlags_": [ + "ImGuiDebugLogFlags_": [ { "calc_value": 0, - "name": "ImGuiDragDropFlags_None", + "name": "ImGuiDebugLogFlags_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiDragDropFlags_SourceNoPreviewTooltip", + "name": "ImGuiDebugLogFlags_EventActiveId", "value": "1 << 0" }, { "calc_value": 2, - "name": "ImGuiDragDropFlags_SourceNoDisableHover", + "name": "ImGuiDebugLogFlags_EventFocus", "value": "1 << 1" }, { "calc_value": 4, - "name": "ImGuiDragDropFlags_SourceNoHoldToOpenOthers", + "name": "ImGuiDebugLogFlags_EventPopup", "value": "1 << 2" }, { "calc_value": 8, - "name": "ImGuiDragDropFlags_SourceAllowNullID", + "name": "ImGuiDebugLogFlags_EventNav", "value": "1 << 3" }, { "calc_value": 16, - "name": "ImGuiDragDropFlags_SourceExtern", + "name": "ImGuiDebugLogFlags_EventClipper", "value": "1 << 4" }, { "calc_value": 32, - "name": "ImGuiDragDropFlags_SourceAutoExpirePayload", + "name": "ImGuiDebugLogFlags_EventIO", "value": "1 << 5" }, { - "calc_value": 1024, - "name": "ImGuiDragDropFlags_AcceptBeforeDelivery", - "value": "1 << 10" + "calc_value": 64, + "name": "ImGuiDebugLogFlags_EventDocking", + "value": "1 << 6" }, { - "calc_value": 2048, - "name": "ImGuiDragDropFlags_AcceptNoDrawDefaultRect", - "value": "1 << 11" + "calc_value": 128, + "name": "ImGuiDebugLogFlags_EventViewport", + "value": "1 << 7" }, { - "calc_value": 4096, - "name": "ImGuiDragDropFlags_AcceptNoPreviewTooltip", - "value": "1 << 12" + "calc_value": 255, + "name": "ImGuiDebugLogFlags_EventMask_", + "value": "ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport" }, { - "calc_value": 3072, - "name": "ImGuiDragDropFlags_AcceptPeekOnly", - "value": "ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect" + "calc_value": 1024, + "name": "ImGuiDebugLogFlags_OutputToTTY", + "value": "1 << 10" } ], - "ImGuiFocusedFlags_": [ + "ImGuiDir_": [ + { + "calc_value": -1, + "name": "ImGuiDir_None", + "value": "-1" + }, { "calc_value": 0, - "name": "ImGuiFocusedFlags_None", + "name": "ImGuiDir_Left", "value": "0" }, { "calc_value": 1, - "name": "ImGuiFocusedFlags_ChildWindows", - "value": "1 << 0" + "name": "ImGuiDir_Right", + "value": "1" }, { "calc_value": 2, - "name": "ImGuiFocusedFlags_RootWindow", - "value": "1 << 1" - }, - { - "calc_value": 4, - "name": "ImGuiFocusedFlags_AnyWindow", - "value": "1 << 2" + "name": "ImGuiDir_Up", + "value": "2" }, { - "calc_value": 8, - "name": "ImGuiFocusedFlags_NoPopupHierarchy", - "value": "1 << 3" + "calc_value": 3, + "name": "ImGuiDir_Down", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiDir_COUNT", + "value": "4" + } + ], + "ImGuiDockNodeFlagsPrivate_": [ + { + "calc_value": 1024, + "name": "ImGuiDockNodeFlags_DockSpace", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiDockNodeFlags_CentralNode", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiDockNodeFlags_NoTabBar", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiDockNodeFlags_HiddenTabBar", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiDockNodeFlags_NoWindowMenuButton", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiDockNodeFlags_NoCloseButton", + "value": "1 << 15" + }, + { + "calc_value": 65536, + "name": "ImGuiDockNodeFlags_NoDocking", + "value": "1 << 16" + }, + { + "calc_value": 131072, + "name": "ImGuiDockNodeFlags_NoDockingSplitMe", + "value": "1 << 17" + }, + { + "calc_value": 262144, + "name": "ImGuiDockNodeFlags_NoDockingSplitOther", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiDockNodeFlags_NoDockingOverMe", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiDockNodeFlags_NoDockingOverOther", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiDockNodeFlags_NoDockingOverEmpty", + "value": "1 << 21" + }, + { + "calc_value": 4194304, + "name": "ImGuiDockNodeFlags_NoResizeX", + "value": "1 << 22" + }, + { + "calc_value": 8388608, + "name": "ImGuiDockNodeFlags_NoResizeY", + "value": "1 << 23" + }, + { + "calc_value": -1, + "name": "ImGuiDockNodeFlags_SharedFlagsInheritMask_", + "value": "~0" + }, + { + "calc_value": 12582944, + "name": "ImGuiDockNodeFlags_NoResizeFlagsMask_", + "value": "ImGuiDockNodeFlags_NoResize | ImGuiDockNodeFlags_NoResizeX | ImGuiDockNodeFlags_NoResizeY" + }, + { + "calc_value": 12713072, + "name": "ImGuiDockNodeFlags_LocalFlagsMask_", + "value": "ImGuiDockNodeFlags_NoSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking" + }, + { + "calc_value": 12712048, + "name": "ImGuiDockNodeFlags_LocalFlagsTransferMask_", + "value": "ImGuiDockNodeFlags_LocalFlagsMask_ & ~ImGuiDockNodeFlags_DockSpace" + }, + { + "calc_value": 12712992, + "name": "ImGuiDockNodeFlags_SavedFlagsMask_", + "value": "ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking" + } + ], + "ImGuiDockNodeFlags_": [ + { + "calc_value": 0, + "name": "ImGuiDockNodeFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDockNodeFlags_KeepAliveOnly", + "value": "1 << 0" + }, + { + "calc_value": 4, + "name": "ImGuiDockNodeFlags_NoDockingInCentralNode", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiDockNodeFlags_PassthruCentralNode", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiDockNodeFlags_NoSplit", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiDockNodeFlags_NoResize", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiDockNodeFlags_AutoHideTabBar", + "value": "1 << 6" + } + ], + "ImGuiDockNodeState": [ + { + "calc_value": 0, + "name": "ImGuiDockNodeState_Unknown", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiDockNodeState_HostWindowVisible", + "value": "3" + } + ], + "ImGuiDragDropFlags_": [ + { + "calc_value": 0, + "name": "ImGuiDragDropFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiDragDropFlags_SourceNoPreviewTooltip", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiDragDropFlags_SourceNoDisableHover", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiDragDropFlags_SourceNoHoldToOpenOthers", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiDragDropFlags_SourceAllowNullID", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiDragDropFlags_SourceExtern", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiDragDropFlags_SourceAutoExpirePayload", + "value": "1 << 5" + }, + { + "calc_value": 1024, + "name": "ImGuiDragDropFlags_AcceptBeforeDelivery", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiDragDropFlags_AcceptNoDrawDefaultRect", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiDragDropFlags_AcceptNoPreviewTooltip", + "value": "1 << 12" + }, + { + "calc_value": 3072, + "name": "ImGuiDragDropFlags_AcceptPeekOnly", + "value": "ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect" + } + ], + "ImGuiFocusedFlags_": [ + { + "calc_value": 0, + "name": "ImGuiFocusedFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiFocusedFlags_ChildWindows", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiFocusedFlags_RootWindow", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiFocusedFlags_AnyWindow", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiFocusedFlags_NoPopupHierarchy", + "value": "1 << 3" }, { "calc_value": 16, @@ -1119,51 +1514,274 @@ "value": "1 << 13" } ], - "ImGuiInputTextFlags_": [ + "ImGuiInputEventType": [ { "calc_value": 0, - "name": "ImGuiInputTextFlags_None", + "name": "ImGuiInputEventType_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiInputTextFlags_CharsDecimal", - "value": "1 << 0" + "name": "ImGuiInputEventType_MousePos", + "value": "1" }, { "calc_value": 2, - "name": "ImGuiInputTextFlags_CharsHexadecimal", - "value": "1 << 1" + "name": "ImGuiInputEventType_MouseWheel", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiInputEventType_MouseButton", + "value": "3" }, { "calc_value": 4, - "name": "ImGuiInputTextFlags_CharsUppercase", - "value": "1 << 2" + "name": "ImGuiInputEventType_MouseViewport", + "value": "4" }, { - "calc_value": 8, - "name": "ImGuiInputTextFlags_CharsNoBlank", - "value": "1 << 3" + "calc_value": 5, + "name": "ImGuiInputEventType_Key", + "value": "5" }, { - "calc_value": 16, - "name": "ImGuiInputTextFlags_AutoSelectAll", - "value": "1 << 4" + "calc_value": 6, + "name": "ImGuiInputEventType_Text", + "value": "6" }, { - "calc_value": 32, - "name": "ImGuiInputTextFlags_EnterReturnsTrue", - "value": "1 << 5" + "calc_value": 7, + "name": "ImGuiInputEventType_Focus", + "value": "7" }, { - "calc_value": 64, - "name": "ImGuiInputTextFlags_CallbackCompletion", - "value": "1 << 6" + "calc_value": 8, + "name": "ImGuiInputEventType_COUNT", + "value": "8" + } + ], + "ImGuiInputFlags_": [ + { + "calc_value": 0, + "name": "ImGuiInputFlags_None", + "value": "0" }, { - "calc_value": 128, - "name": "ImGuiInputTextFlags_CallbackHistory", - "value": "1 << 7" + "calc_value": 1, + "name": "ImGuiInputFlags_Repeat", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiInputFlags_RepeatRateDefault", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiInputFlags_RepeatRateNavMove", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiInputFlags_RepeatRateNavTweak", + "value": "1 << 3" + }, + { + "calc_value": 14, + "name": "ImGuiInputFlags_RepeatRateMask_", + "value": "ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak" + }, + { + "calc_value": 16, + "name": "ImGuiInputFlags_CondHovered", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiInputFlags_CondActive", + "value": "1 << 5" + }, + { + "calc_value": 48, + "name": "ImGuiInputFlags_CondDefault_", + "value": "ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive" + }, + { + "calc_value": 48, + "name": "ImGuiInputFlags_CondMask_", + "value": "ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive" + }, + { + "calc_value": 64, + "name": "ImGuiInputFlags_LockThisFrame", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiInputFlags_LockUntilRelease", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiInputFlags_RouteFocused", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiInputFlags_RouteGlobalLow", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiInputFlags_RouteGlobal", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiInputFlags_RouteGlobalHigh", + "value": "1 << 11" + }, + { + "calc_value": 3840, + "name": "ImGuiInputFlags_RouteMask_", + "value": "ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh" + }, + { + "calc_value": 4096, + "name": "ImGuiInputFlags_RouteAlways", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiInputFlags_RouteUnlessBgFocused", + "value": "1 << 13" + }, + { + "calc_value": 12288, + "name": "ImGuiInputFlags_RouteExtraMask_", + "value": "ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused" + }, + { + "calc_value": 15, + "name": "ImGuiInputFlags_SupportedByIsKeyPressed", + "value": "ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_" + }, + { + "calc_value": 16143, + "name": "ImGuiInputFlags_SupportedByShortcut", + "value": "ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_" + }, + { + "calc_value": 192, + "name": "ImGuiInputFlags_SupportedBySetKeyOwner", + "value": "ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease" + }, + { + "calc_value": 240, + "name": "ImGuiInputFlags_SupportedBySetItemKeyOwner", + "value": "ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_" + } + ], + "ImGuiInputSource": [ + { + "calc_value": 0, + "name": "ImGuiInputSource_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiInputSource_Mouse", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiInputSource_Keyboard", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiInputSource_Gamepad", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiInputSource_Clipboard", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiInputSource_Nav", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiInputSource_COUNT", + "value": "6" + } + ], + "ImGuiInputTextFlagsPrivate_": [ + { + "calc_value": 67108864, + "name": "ImGuiInputTextFlags_Multiline", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiInputTextFlags_NoMarkEdited", + "value": "1 << 27" + }, + { + "calc_value": 268435456, + "name": "ImGuiInputTextFlags_MergedItem", + "value": "1 << 28" + } + ], + "ImGuiInputTextFlags_": [ + { + "calc_value": 0, + "name": "ImGuiInputTextFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiInputTextFlags_CharsDecimal", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiInputTextFlags_CharsHexadecimal", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiInputTextFlags_CharsUppercase", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiInputTextFlags_CharsNoBlank", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiInputTextFlags_AutoSelectAll", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiInputTextFlags_EnterReturnsTrue", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiInputTextFlags_CallbackCompletion", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiInputTextFlags_CallbackHistory", + "value": "1 << 7" }, { "calc_value": 256, @@ -1231,6 +1849,120 @@ "value": "1 << 20" } ], + "ImGuiItemFlags_": [ + { + "calc_value": 0, + "name": "ImGuiItemFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiItemFlags_NoTabStop", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiItemFlags_ButtonRepeat", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiItemFlags_Disabled", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiItemFlags_NoNav", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiItemFlags_NoNavDefaultFocus", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiItemFlags_SelectableDontClosePopup", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiItemFlags_MixedValue", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiItemFlags_ReadOnly", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiItemFlags_NoWindowHoverableCheck", + "value": "1 << 8" + }, + { + "calc_value": 1024, + "name": "ImGuiItemFlags_Inputable", + "value": "1 << 10" + } + ], + "ImGuiItemStatusFlags_": [ + { + "calc_value": 0, + "name": "ImGuiItemStatusFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiItemStatusFlags_HoveredRect", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiItemStatusFlags_HasDisplayRect", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiItemStatusFlags_Edited", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiItemStatusFlags_ToggledSelection", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiItemStatusFlags_ToggledOpen", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiItemStatusFlags_HasDeactivated", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiItemStatusFlags_Deactivated", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiItemStatusFlags_HoveredWindow", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiItemStatusFlags_FocusedByTabbing", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiItemStatusFlags_Visible", + "value": "1 << 9" + } + ], "ImGuiKey": [ { "calc_value": 0, @@ -2003,7 +2735,93 @@ "value": "0" } ], - "ImGuiMouseButton_": [ + "ImGuiLayoutType_": [ + { + "calc_value": 0, + "name": "ImGuiLayoutType_Horizontal", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiLayoutType_Vertical", + "value": "1" + } + ], + "ImGuiLocKey": [ + { + "calc_value": 0, + "name": "ImGuiLocKey_TableSizeOne", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiLocKey_TableSizeAllFit", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiLocKey_TableSizeAllDefault", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiLocKey_TableResetOrder", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiLocKey_WindowingMainMenuBar", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiLocKey_WindowingPopup", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiLocKey_WindowingUntitled", + "value": "6" + }, + { + "calc_value": 7, + "name": "ImGuiLocKey_DockingHideTabBar", + "value": "7" + }, + { + "calc_value": 8, + "name": "ImGuiLocKey_COUNT", + "value": "8" + } + ], + "ImGuiLogType": [ + { + "calc_value": 0, + "name": "ImGuiLogType_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiLogType_TTY", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiLogType_File", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiLogType_Buffer", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiLogType_Clipboard", + "value": "4" + } + ], + "ImGuiMouseButton_": [ { "calc_value": 0, "name": "ImGuiMouseButton_Left", @@ -2082,6 +2900,33 @@ "value": "9" } ], + "ImGuiNavHighlightFlags_": [ + { + "calc_value": 0, + "name": "ImGuiNavHighlightFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiNavHighlightFlags_TypeDefault", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiNavHighlightFlags_TypeThin", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiNavHighlightFlags_AlwaysDraw", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiNavHighlightFlags_NoRounding", + "value": "1 << 3" + } + ], "ImGuiNavInput": [ { "calc_value": 0, @@ -2169,2748 +3014,7357 @@ "value": "16" } ], - "ImGuiPopupFlags_": [ + "ImGuiNavLayer": [ { "calc_value": 0, - "name": "ImGuiPopupFlags_None", + "name": "ImGuiNavLayer_Main", "value": "0" }, + { + "calc_value": 1, + "name": "ImGuiNavLayer_Menu", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiNavLayer_COUNT", + "value": "2" + } + ], + "ImGuiNavMoveFlags_": [ { "calc_value": 0, - "name": "ImGuiPopupFlags_MouseButtonLeft", + "name": "ImGuiNavMoveFlags_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiPopupFlags_MouseButtonRight", - "value": "1" + "name": "ImGuiNavMoveFlags_LoopX", + "value": "1 << 0" }, { "calc_value": 2, - "name": "ImGuiPopupFlags_MouseButtonMiddle", - "value": "2" + "name": "ImGuiNavMoveFlags_LoopY", + "value": "1 << 1" }, { - "calc_value": 31, - "name": "ImGuiPopupFlags_MouseButtonMask_", - "value": "0x1F" + "calc_value": 4, + "name": "ImGuiNavMoveFlags_WrapX", + "value": "1 << 2" }, { - "calc_value": 1, - "name": "ImGuiPopupFlags_MouseButtonDefault_", - "value": "1" + "calc_value": 8, + "name": "ImGuiNavMoveFlags_WrapY", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiNavMoveFlags_AllowCurrentNavId", + "value": "1 << 4" }, { "calc_value": 32, - "name": "ImGuiPopupFlags_NoOpenOverExistingPopup", + "name": "ImGuiNavMoveFlags_AlsoScoreVisibleSet", "value": "1 << 5" }, { "calc_value": 64, - "name": "ImGuiPopupFlags_NoOpenOverItems", + "name": "ImGuiNavMoveFlags_ScrollToEdgeY", "value": "1 << 6" }, { "calc_value": 128, - "name": "ImGuiPopupFlags_AnyPopupId", + "name": "ImGuiNavMoveFlags_Forwarded", "value": "1 << 7" }, { "calc_value": 256, - "name": "ImGuiPopupFlags_AnyPopupLevel", + "name": "ImGuiNavMoveFlags_DebugNoResult", "value": "1 << 8" }, { - "calc_value": 384, - "name": "ImGuiPopupFlags_AnyPopup", - "value": "ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel" + "calc_value": 512, + "name": "ImGuiNavMoveFlags_FocusApi", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiNavMoveFlags_Tabbing", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiNavMoveFlags_Activate", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiNavMoveFlags_DontSetNavHighlight", + "value": "1 << 12" } ], - "ImGuiSelectableFlags_": [ + "ImGuiNextItemDataFlags_": [ { "calc_value": 0, - "name": "ImGuiSelectableFlags_None", + "name": "ImGuiNextItemDataFlags_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiSelectableFlags_DontClosePopups", + "name": "ImGuiNextItemDataFlags_HasWidth", "value": "1 << 0" }, { "calc_value": 2, - "name": "ImGuiSelectableFlags_SpanAllColumns", + "name": "ImGuiNextItemDataFlags_HasOpen", + "value": "1 << 1" + } + ], + "ImGuiNextWindowDataFlags_": [ + { + "calc_value": 0, + "name": "ImGuiNextWindowDataFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiNextWindowDataFlags_HasPos", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiNextWindowDataFlags_HasSize", "value": "1 << 1" }, { "calc_value": 4, - "name": "ImGuiSelectableFlags_AllowDoubleClick", + "name": "ImGuiNextWindowDataFlags_HasContentSize", "value": "1 << 2" }, { "calc_value": 8, - "name": "ImGuiSelectableFlags_Disabled", + "name": "ImGuiNextWindowDataFlags_HasCollapsed", "value": "1 << 3" }, { "calc_value": 16, - "name": "ImGuiSelectableFlags_AllowItemOverlap", - "value": "1 << 4" - } - ], - "ImGuiSliderFlags_": [ - { - "calc_value": 0, - "name": "ImGuiSliderFlags_None", - "value": "0" - }, - { - "calc_value": 16, - "name": "ImGuiSliderFlags_AlwaysClamp", + "name": "ImGuiNextWindowDataFlags_HasSizeConstraint", "value": "1 << 4" }, { "calc_value": 32, - "name": "ImGuiSliderFlags_Logarithmic", + "name": "ImGuiNextWindowDataFlags_HasFocus", "value": "1 << 5" }, { "calc_value": 64, - "name": "ImGuiSliderFlags_NoRoundToFormat", + "name": "ImGuiNextWindowDataFlags_HasBgAlpha", "value": "1 << 6" }, { "calc_value": 128, - "name": "ImGuiSliderFlags_NoInput", + "name": "ImGuiNextWindowDataFlags_HasScroll", "value": "1 << 7" }, { - "calc_value": 1879048207, - "name": "ImGuiSliderFlags_InvalidMask_", - "value": "0x7000000F" + "calc_value": 256, + "name": "ImGuiNextWindowDataFlags_HasViewport", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiNextWindowDataFlags_HasDock", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiNextWindowDataFlags_HasWindowClass", + "value": "1 << 10" } ], - "ImGuiSortDirection_": [ + "ImGuiOldColumnFlags_": [ { "calc_value": 0, - "name": "ImGuiSortDirection_None", + "name": "ImGuiOldColumnFlags_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiSortDirection_Ascending", - "value": "1" + "name": "ImGuiOldColumnFlags_NoBorder", + "value": "1 << 0" }, { "calc_value": 2, - "name": "ImGuiSortDirection_Descending", - "value": "2" + "name": "ImGuiOldColumnFlags_NoResize", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiOldColumnFlags_NoPreserveWidths", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiOldColumnFlags_NoForceWithinWindow", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiOldColumnFlags_GrowParentContentsSize", + "value": "1 << 4" } ], - "ImGuiStyleVar_": [ + "ImGuiPlotType": [ { "calc_value": 0, - "name": "ImGuiStyleVar_Alpha", + "name": "ImGuiPlotType_Lines", "value": "0" }, { "calc_value": 1, - "name": "ImGuiStyleVar_DisabledAlpha", + "name": "ImGuiPlotType_Histogram", "value": "1" + } + ], + "ImGuiPopupFlags_": [ + { + "calc_value": 0, + "name": "ImGuiPopupFlags_None", + "value": "0" }, { - "calc_value": 2, - "name": "ImGuiStyleVar_WindowPadding", - "value": "2" + "calc_value": 0, + "name": "ImGuiPopupFlags_MouseButtonLeft", + "value": "0" }, { - "calc_value": 3, - "name": "ImGuiStyleVar_WindowRounding", - "value": "3" + "calc_value": 1, + "name": "ImGuiPopupFlags_MouseButtonRight", + "value": "1" }, { - "calc_value": 4, - "name": "ImGuiStyleVar_WindowBorderSize", - "value": "4" + "calc_value": 2, + "name": "ImGuiPopupFlags_MouseButtonMiddle", + "value": "2" }, { - "calc_value": 5, - "name": "ImGuiStyleVar_WindowMinSize", - "value": "5" + "calc_value": 31, + "name": "ImGuiPopupFlags_MouseButtonMask_", + "value": "0x1F" }, { - "calc_value": 6, - "name": "ImGuiStyleVar_WindowTitleAlign", - "value": "6" + "calc_value": 1, + "name": "ImGuiPopupFlags_MouseButtonDefault_", + "value": "1" }, { - "calc_value": 7, - "name": "ImGuiStyleVar_ChildRounding", - "value": "7" + "calc_value": 32, + "name": "ImGuiPopupFlags_NoOpenOverExistingPopup", + "value": "1 << 5" }, { - "calc_value": 8, - "name": "ImGuiStyleVar_ChildBorderSize", - "value": "8" + "calc_value": 64, + "name": "ImGuiPopupFlags_NoOpenOverItems", + "value": "1 << 6" }, { - "calc_value": 9, - "name": "ImGuiStyleVar_PopupRounding", - "value": "9" + "calc_value": 128, + "name": "ImGuiPopupFlags_AnyPopupId", + "value": "1 << 7" }, { - "calc_value": 10, - "name": "ImGuiStyleVar_PopupBorderSize", - "value": "10" + "calc_value": 256, + "name": "ImGuiPopupFlags_AnyPopupLevel", + "value": "1 << 8" }, { - "calc_value": 11, - "name": "ImGuiStyleVar_FramePadding", - "value": "11" + "calc_value": 384, + "name": "ImGuiPopupFlags_AnyPopup", + "value": "ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel" + } + ], + "ImGuiPopupPositionPolicy": [ + { + "calc_value": 0, + "name": "ImGuiPopupPositionPolicy_Default", + "value": "0" }, { - "calc_value": 12, - "name": "ImGuiStyleVar_FrameRounding", - "value": "12" + "calc_value": 1, + "name": "ImGuiPopupPositionPolicy_ComboBox", + "value": "1" }, { - "calc_value": 13, - "name": "ImGuiStyleVar_FrameBorderSize", - "value": "13" + "calc_value": 2, + "name": "ImGuiPopupPositionPolicy_Tooltip", + "value": "2" + } + ], + "ImGuiScrollFlags_": [ + { + "calc_value": 0, + "name": "ImGuiScrollFlags_None", + "value": "0" }, { - "calc_value": 14, - "name": "ImGuiStyleVar_ItemSpacing", - "value": "14" + "calc_value": 1, + "name": "ImGuiScrollFlags_KeepVisibleEdgeX", + "value": "1 << 0" }, { - "calc_value": 15, - "name": "ImGuiStyleVar_ItemInnerSpacing", - "value": "15" + "calc_value": 2, + "name": "ImGuiScrollFlags_KeepVisibleEdgeY", + "value": "1 << 1" }, { - "calc_value": 16, - "name": "ImGuiStyleVar_IndentSpacing", - "value": "16" + "calc_value": 4, + "name": "ImGuiScrollFlags_KeepVisibleCenterX", + "value": "1 << 2" }, { - "calc_value": 17, - "name": "ImGuiStyleVar_CellPadding", - "value": "17" + "calc_value": 8, + "name": "ImGuiScrollFlags_KeepVisibleCenterY", + "value": "1 << 3" }, { - "calc_value": 18, - "name": "ImGuiStyleVar_ScrollbarSize", - "value": "18" + "calc_value": 16, + "name": "ImGuiScrollFlags_AlwaysCenterX", + "value": "1 << 4" }, { - "calc_value": 19, - "name": "ImGuiStyleVar_ScrollbarRounding", - "value": "19" + "calc_value": 32, + "name": "ImGuiScrollFlags_AlwaysCenterY", + "value": "1 << 5" }, { - "calc_value": 20, - "name": "ImGuiStyleVar_GrabMinSize", - "value": "20" + "calc_value": 64, + "name": "ImGuiScrollFlags_NoScrollParent", + "value": "1 << 6" }, { "calc_value": 21, - "name": "ImGuiStyleVar_GrabRounding", - "value": "21" + "name": "ImGuiScrollFlags_MaskX_", + "value": "ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX" }, { - "calc_value": 22, - "name": "ImGuiStyleVar_TabRounding", - "value": "22" + "calc_value": 42, + "name": "ImGuiScrollFlags_MaskY_", + "value": "ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY" + } + ], + "ImGuiSelectableFlagsPrivate_": [ + { + "calc_value": 1048576, + "name": "ImGuiSelectableFlags_NoHoldingActiveID", + "value": "1 << 20" }, { - "calc_value": 23, - "name": "ImGuiStyleVar_ButtonTextAlign", - "value": "23" + "calc_value": 2097152, + "name": "ImGuiSelectableFlags_SelectOnNav", + "value": "1 << 21" }, { - "calc_value": 24, - "name": "ImGuiStyleVar_SelectableTextAlign", - "value": "24" + "calc_value": 4194304, + "name": "ImGuiSelectableFlags_SelectOnClick", + "value": "1 << 22" }, { - "calc_value": 25, - "name": "ImGuiStyleVar_COUNT", - "value": "25" + "calc_value": 8388608, + "name": "ImGuiSelectableFlags_SelectOnRelease", + "value": "1 << 23" + }, + { + "calc_value": 16777216, + "name": "ImGuiSelectableFlags_SpanAvailWidth", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiSelectableFlags_DrawHoveredWhenHeld", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiSelectableFlags_SetNavIdOnHover", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiSelectableFlags_NoPadWithHalfSpacing", + "value": "1 << 27" + }, + { + "calc_value": 268435456, + "name": "ImGuiSelectableFlags_NoSetKeyOwner", + "value": "1 << 28" } ], - "ImGuiTabBarFlags_": [ + "ImGuiSelectableFlags_": [ { "calc_value": 0, - "name": "ImGuiTabBarFlags_None", + "name": "ImGuiSelectableFlags_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiTabBarFlags_Reorderable", + "name": "ImGuiSelectableFlags_DontClosePopups", "value": "1 << 0" }, { "calc_value": 2, - "name": "ImGuiTabBarFlags_AutoSelectNewTabs", + "name": "ImGuiSelectableFlags_SpanAllColumns", "value": "1 << 1" }, { "calc_value": 4, - "name": "ImGuiTabBarFlags_TabListPopupButton", + "name": "ImGuiSelectableFlags_AllowDoubleClick", "value": "1 << 2" }, { "calc_value": 8, - "name": "ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", + "name": "ImGuiSelectableFlags_Disabled", "value": "1 << 3" }, { "calc_value": 16, - "name": "ImGuiTabBarFlags_NoTabListScrollingButtons", + "name": "ImGuiSelectableFlags_AllowItemOverlap", "value": "1 << 4" - }, - { - "calc_value": 32, - "name": "ImGuiTabBarFlags_NoTooltip", - "value": "1 << 5" - }, - { - "calc_value": 64, - "name": "ImGuiTabBarFlags_FittingPolicyResizeDown", - "value": "1 << 6" - }, - { - "calc_value": 128, - "name": "ImGuiTabBarFlags_FittingPolicyScroll", - "value": "1 << 7" - }, - { - "calc_value": 192, - "name": "ImGuiTabBarFlags_FittingPolicyMask_", - "value": "ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll" - }, - { - "calc_value": 64, - "name": "ImGuiTabBarFlags_FittingPolicyDefault_", - "value": "ImGuiTabBarFlags_FittingPolicyResizeDown" } ], - "ImGuiTabItemFlags_": [ + "ImGuiSeparatorFlags_": [ { "calc_value": 0, - "name": "ImGuiTabItemFlags_None", + "name": "ImGuiSeparatorFlags_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiTabItemFlags_UnsavedDocument", + "name": "ImGuiSeparatorFlags_Horizontal", "value": "1 << 0" }, { "calc_value": 2, - "name": "ImGuiTabItemFlags_SetSelected", + "name": "ImGuiSeparatorFlags_Vertical", "value": "1 << 1" }, { "calc_value": 4, - "name": "ImGuiTabItemFlags_NoCloseWithMiddleMouseButton", + "name": "ImGuiSeparatorFlags_SpanAllColumns", "value": "1 << 2" + } + ], + "ImGuiSliderFlagsPrivate_": [ + { + "calc_value": 1048576, + "name": "ImGuiSliderFlags_Vertical", + "value": "1 << 20" }, { - "calc_value": 8, - "name": "ImGuiTabItemFlags_NoPushId", - "value": "1 << 3" + "calc_value": 2097152, + "name": "ImGuiSliderFlags_ReadOnly", + "value": "1 << 21" + } + ], + "ImGuiSliderFlags_": [ + { + "calc_value": 0, + "name": "ImGuiSliderFlags_None", + "value": "0" }, { "calc_value": 16, - "name": "ImGuiTabItemFlags_NoTooltip", + "name": "ImGuiSliderFlags_AlwaysClamp", "value": "1 << 4" }, { "calc_value": 32, - "name": "ImGuiTabItemFlags_NoReorder", + "name": "ImGuiSliderFlags_Logarithmic", "value": "1 << 5" }, { "calc_value": 64, - "name": "ImGuiTabItemFlags_Leading", + "name": "ImGuiSliderFlags_NoRoundToFormat", "value": "1 << 6" }, { "calc_value": 128, - "name": "ImGuiTabItemFlags_Trailing", + "name": "ImGuiSliderFlags_NoInput", "value": "1 << 7" + }, + { + "calc_value": 1879048207, + "name": "ImGuiSliderFlags_InvalidMask_", + "value": "0x7000000F" } ], - "ImGuiTableBgTarget_": [ + "ImGuiSortDirection_": [ { "calc_value": 0, - "name": "ImGuiTableBgTarget_None", + "name": "ImGuiSortDirection_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiTableBgTarget_RowBg0", + "name": "ImGuiSortDirection_Ascending", "value": "1" }, { "calc_value": 2, - "name": "ImGuiTableBgTarget_RowBg1", + "name": "ImGuiSortDirection_Descending", "value": "2" - }, - { - "calc_value": 3, - "name": "ImGuiTableBgTarget_CellBg", - "value": "3" } ], - "ImGuiTableColumnFlags_": [ + "ImGuiStyleVar_": [ { "calc_value": 0, - "name": "ImGuiTableColumnFlags_None", + "name": "ImGuiStyleVar_Alpha", "value": "0" }, { "calc_value": 1, - "name": "ImGuiTableColumnFlags_Disabled", - "value": "1 << 0" + "name": "ImGuiStyleVar_DisabledAlpha", + "value": "1" }, { "calc_value": 2, - "name": "ImGuiTableColumnFlags_DefaultHide", - "value": "1 << 1" + "name": "ImGuiStyleVar_WindowPadding", + "value": "2" }, { - "calc_value": 4, - "name": "ImGuiTableColumnFlags_DefaultSort", - "value": "1 << 2" + "calc_value": 3, + "name": "ImGuiStyleVar_WindowRounding", + "value": "3" }, { - "calc_value": 8, - "name": "ImGuiTableColumnFlags_WidthStretch", - "value": "1 << 3" + "calc_value": 4, + "name": "ImGuiStyleVar_WindowBorderSize", + "value": "4" }, { - "calc_value": 16, - "name": "ImGuiTableColumnFlags_WidthFixed", - "value": "1 << 4" + "calc_value": 5, + "name": "ImGuiStyleVar_WindowMinSize", + "value": "5" }, { - "calc_value": 32, - "name": "ImGuiTableColumnFlags_NoResize", - "value": "1 << 5" + "calc_value": 6, + "name": "ImGuiStyleVar_WindowTitleAlign", + "value": "6" }, { - "calc_value": 64, - "name": "ImGuiTableColumnFlags_NoReorder", - "value": "1 << 6" + "calc_value": 7, + "name": "ImGuiStyleVar_ChildRounding", + "value": "7" }, { - "calc_value": 128, - "name": "ImGuiTableColumnFlags_NoHide", - "value": "1 << 7" + "calc_value": 8, + "name": "ImGuiStyleVar_ChildBorderSize", + "value": "8" }, { - "calc_value": 256, - "name": "ImGuiTableColumnFlags_NoClip", - "value": "1 << 8" + "calc_value": 9, + "name": "ImGuiStyleVar_PopupRounding", + "value": "9" }, { - "calc_value": 512, - "name": "ImGuiTableColumnFlags_NoSort", - "value": "1 << 9" + "calc_value": 10, + "name": "ImGuiStyleVar_PopupBorderSize", + "value": "10" }, { - "calc_value": 1024, - "name": "ImGuiTableColumnFlags_NoSortAscending", - "value": "1 << 10" + "calc_value": 11, + "name": "ImGuiStyleVar_FramePadding", + "value": "11" }, { - "calc_value": 2048, - "name": "ImGuiTableColumnFlags_NoSortDescending", - "value": "1 << 11" + "calc_value": 12, + "name": "ImGuiStyleVar_FrameRounding", + "value": "12" }, { - "calc_value": 4096, - "name": "ImGuiTableColumnFlags_NoHeaderLabel", - "value": "1 << 12" + "calc_value": 13, + "name": "ImGuiStyleVar_FrameBorderSize", + "value": "13" }, { - "calc_value": 8192, - "name": "ImGuiTableColumnFlags_NoHeaderWidth", - "value": "1 << 13" + "calc_value": 14, + "name": "ImGuiStyleVar_ItemSpacing", + "value": "14" }, { - "calc_value": 16384, - "name": "ImGuiTableColumnFlags_PreferSortAscending", - "value": "1 << 14" + "calc_value": 15, + "name": "ImGuiStyleVar_ItemInnerSpacing", + "value": "15" }, { - "calc_value": 32768, - "name": "ImGuiTableColumnFlags_PreferSortDescending", - "value": "1 << 15" + "calc_value": 16, + "name": "ImGuiStyleVar_IndentSpacing", + "value": "16" }, { - "calc_value": 65536, - "name": "ImGuiTableColumnFlags_IndentEnable", - "value": "1 << 16" + "calc_value": 17, + "name": "ImGuiStyleVar_CellPadding", + "value": "17" }, { - "calc_value": 131072, - "name": "ImGuiTableColumnFlags_IndentDisable", - "value": "1 << 17" + "calc_value": 18, + "name": "ImGuiStyleVar_ScrollbarSize", + "value": "18" }, { - "calc_value": 16777216, - "name": "ImGuiTableColumnFlags_IsEnabled", - "value": "1 << 24" + "calc_value": 19, + "name": "ImGuiStyleVar_ScrollbarRounding", + "value": "19" }, { - "calc_value": 33554432, - "name": "ImGuiTableColumnFlags_IsVisible", - "value": "1 << 25" + "calc_value": 20, + "name": "ImGuiStyleVar_GrabMinSize", + "value": "20" }, { - "calc_value": 67108864, - "name": "ImGuiTableColumnFlags_IsSorted", - "value": "1 << 26" + "calc_value": 21, + "name": "ImGuiStyleVar_GrabRounding", + "value": "21" }, { - "calc_value": 134217728, - "name": "ImGuiTableColumnFlags_IsHovered", - "value": "1 << 27" + "calc_value": 22, + "name": "ImGuiStyleVar_TabRounding", + "value": "22" + }, + { + "calc_value": 23, + "name": "ImGuiStyleVar_ButtonTextAlign", + "value": "23" }, { "calc_value": 24, - "name": "ImGuiTableColumnFlags_WidthMask_", - "value": "ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed" + "name": "ImGuiStyleVar_SelectableTextAlign", + "value": "24" }, { - "calc_value": 196608, - "name": "ImGuiTableColumnFlags_IndentMask_", - "value": "ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable" + "calc_value": 25, + "name": "ImGuiStyleVar_COUNT", + "value": "25" + } + ], + "ImGuiTabBarFlagsPrivate_": [ + { + "calc_value": 1048576, + "name": "ImGuiTabBarFlags_DockNode", + "value": "1 << 20" }, { - "calc_value": 251658240, - "name": "ImGuiTableColumnFlags_StatusMask_", - "value": "ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered" + "calc_value": 2097152, + "name": "ImGuiTabBarFlags_IsFocused", + "value": "1 << 21" }, { - "calc_value": 1073741824, - "name": "ImGuiTableColumnFlags_NoDirectResize_", - "value": "1 << 30" + "calc_value": 4194304, + "name": "ImGuiTabBarFlags_SaveSettings", + "value": "1 << 22" } ], - "ImGuiTableFlags_": [ + "ImGuiTabBarFlags_": [ { "calc_value": 0, - "name": "ImGuiTableFlags_None", + "name": "ImGuiTabBarFlags_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiTableFlags_Resizable", + "name": "ImGuiTabBarFlags_Reorderable", "value": "1 << 0" }, { "calc_value": 2, - "name": "ImGuiTableFlags_Reorderable", + "name": "ImGuiTabBarFlags_AutoSelectNewTabs", "value": "1 << 1" }, { "calc_value": 4, - "name": "ImGuiTableFlags_Hideable", + "name": "ImGuiTabBarFlags_TabListPopupButton", "value": "1 << 2" }, { "calc_value": 8, - "name": "ImGuiTableFlags_Sortable", + "name": "ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", "value": "1 << 3" }, { "calc_value": 16, - "name": "ImGuiTableFlags_NoSavedSettings", + "name": "ImGuiTabBarFlags_NoTabListScrollingButtons", "value": "1 << 4" }, { "calc_value": 32, - "name": "ImGuiTableFlags_ContextMenuInBody", + "name": "ImGuiTabBarFlags_NoTooltip", "value": "1 << 5" }, { "calc_value": 64, - "name": "ImGuiTableFlags_RowBg", + "name": "ImGuiTabBarFlags_FittingPolicyResizeDown", "value": "1 << 6" }, { "calc_value": 128, - "name": "ImGuiTableFlags_BordersInnerH", + "name": "ImGuiTabBarFlags_FittingPolicyScroll", "value": "1 << 7" }, { - "calc_value": 256, - "name": "ImGuiTableFlags_BordersOuterH", - "value": "1 << 8" + "calc_value": 192, + "name": "ImGuiTabBarFlags_FittingPolicyMask_", + "value": "ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll" }, { - "calc_value": 512, - "name": "ImGuiTableFlags_BordersInnerV", - "value": "1 << 9" - }, + "calc_value": 64, + "name": "ImGuiTabBarFlags_FittingPolicyDefault_", + "value": "ImGuiTabBarFlags_FittingPolicyResizeDown" + } + ], + "ImGuiTabItemFlagsPrivate_": [ { - "calc_value": 1024, - "name": "ImGuiTableFlags_BordersOuterV", - "value": "1 << 10" + "calc_value": 192, + "name": "ImGuiTabItemFlags_SectionMask_", + "value": "ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing" }, { - "calc_value": 384, - "name": "ImGuiTableFlags_BordersH", - "value": "ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH" + "calc_value": 1048576, + "name": "ImGuiTabItemFlags_NoCloseButton", + "value": "1 << 20" }, { - "calc_value": 1536, - "name": "ImGuiTableFlags_BordersV", - "value": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV" + "calc_value": 2097152, + "name": "ImGuiTabItemFlags_Button", + "value": "1 << 21" }, { - "calc_value": 640, - "name": "ImGuiTableFlags_BordersInner", - "value": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH" + "calc_value": 4194304, + "name": "ImGuiTabItemFlags_Unsorted", + "value": "1 << 22" }, { - "calc_value": 1280, - "name": "ImGuiTableFlags_BordersOuter", - "value": "ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH" - }, + "calc_value": 8388608, + "name": "ImGuiTabItemFlags_Preview", + "value": "1 << 23" + } + ], + "ImGuiTabItemFlags_": [ { - "calc_value": 1920, - "name": "ImGuiTableFlags_Borders", - "value": "ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter" + "calc_value": 0, + "name": "ImGuiTabItemFlags_None", + "value": "0" }, { - "calc_value": 2048, - "name": "ImGuiTableFlags_NoBordersInBody", - "value": "1 << 11" + "calc_value": 1, + "name": "ImGuiTabItemFlags_UnsavedDocument", + "value": "1 << 0" }, { - "calc_value": 4096, - "name": "ImGuiTableFlags_NoBordersInBodyUntilResize", - "value": "1 << 12" + "calc_value": 2, + "name": "ImGuiTabItemFlags_SetSelected", + "value": "1 << 1" }, { - "calc_value": 8192, - "name": "ImGuiTableFlags_SizingFixedFit", - "value": "1 << 13" + "calc_value": 4, + "name": "ImGuiTabItemFlags_NoCloseWithMiddleMouseButton", + "value": "1 << 2" }, { - "calc_value": 16384, - "name": "ImGuiTableFlags_SizingFixedSame", - "value": "2 << 13" + "calc_value": 8, + "name": "ImGuiTabItemFlags_NoPushId", + "value": "1 << 3" }, { - "calc_value": 24576, - "name": "ImGuiTableFlags_SizingStretchProp", - "value": "3 << 13" + "calc_value": 16, + "name": "ImGuiTabItemFlags_NoTooltip", + "value": "1 << 4" }, { - "calc_value": 32768, - "name": "ImGuiTableFlags_SizingStretchSame", - "value": "4 << 13" + "calc_value": 32, + "name": "ImGuiTabItemFlags_NoReorder", + "value": "1 << 5" }, { - "calc_value": 65536, - "name": "ImGuiTableFlags_NoHostExtendX", - "value": "1 << 16" + "calc_value": 64, + "name": "ImGuiTabItemFlags_Leading", + "value": "1 << 6" }, { - "calc_value": 131072, - "name": "ImGuiTableFlags_NoHostExtendY", - "value": "1 << 17" + "calc_value": 128, + "name": "ImGuiTabItemFlags_Trailing", + "value": "1 << 7" + } + ], + "ImGuiTableBgTarget_": [ + { + "calc_value": 0, + "name": "ImGuiTableBgTarget_None", + "value": "0" }, { - "calc_value": 262144, - "name": "ImGuiTableFlags_NoKeepColumnsVisible", - "value": "1 << 18" + "calc_value": 1, + "name": "ImGuiTableBgTarget_RowBg0", + "value": "1" }, { - "calc_value": 524288, - "name": "ImGuiTableFlags_PreciseWidths", - "value": "1 << 19" + "calc_value": 2, + "name": "ImGuiTableBgTarget_RowBg1", + "value": "2" }, { - "calc_value": 1048576, - "name": "ImGuiTableFlags_NoClip", - "value": "1 << 20" - }, - { - "calc_value": 2097152, - "name": "ImGuiTableFlags_PadOuterX", - "value": "1 << 21" - }, - { - "calc_value": 4194304, - "name": "ImGuiTableFlags_NoPadOuterX", - "value": "1 << 22" - }, - { - "calc_value": 8388608, - "name": "ImGuiTableFlags_NoPadInnerX", - "value": "1 << 23" - }, - { - "calc_value": 16777216, - "name": "ImGuiTableFlags_ScrollX", - "value": "1 << 24" - }, - { - "calc_value": 33554432, - "name": "ImGuiTableFlags_ScrollY", - "value": "1 << 25" - }, - { - "calc_value": 67108864, - "name": "ImGuiTableFlags_SortMulti", - "value": "1 << 26" - }, - { - "calc_value": 134217728, - "name": "ImGuiTableFlags_SortTristate", - "value": "1 << 27" - }, - { - "calc_value": 57344, - "name": "ImGuiTableFlags_SizingMask_", - "value": "ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame" - } - ], - "ImGuiTableRowFlags_": [ - { - "calc_value": 0, - "name": "ImGuiTableRowFlags_None", - "value": "0" - }, - { - "calc_value": 1, - "name": "ImGuiTableRowFlags_Headers", - "value": "1 << 0" + "calc_value": 3, + "name": "ImGuiTableBgTarget_CellBg", + "value": "3" } ], - "ImGuiTreeNodeFlags_": [ + "ImGuiTableColumnFlags_": [ { "calc_value": 0, - "name": "ImGuiTreeNodeFlags_None", + "name": "ImGuiTableColumnFlags_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiTreeNodeFlags_Selected", + "name": "ImGuiTableColumnFlags_Disabled", "value": "1 << 0" }, { "calc_value": 2, - "name": "ImGuiTreeNodeFlags_Framed", + "name": "ImGuiTableColumnFlags_DefaultHide", "value": "1 << 1" }, { "calc_value": 4, - "name": "ImGuiTreeNodeFlags_AllowItemOverlap", + "name": "ImGuiTableColumnFlags_DefaultSort", "value": "1 << 2" }, { "calc_value": 8, - "name": "ImGuiTreeNodeFlags_NoTreePushOnOpen", + "name": "ImGuiTableColumnFlags_WidthStretch", "value": "1 << 3" }, { "calc_value": 16, - "name": "ImGuiTreeNodeFlags_NoAutoOpenOnLog", + "name": "ImGuiTableColumnFlags_WidthFixed", "value": "1 << 4" }, { "calc_value": 32, - "name": "ImGuiTreeNodeFlags_DefaultOpen", + "name": "ImGuiTableColumnFlags_NoResize", "value": "1 << 5" }, { "calc_value": 64, - "name": "ImGuiTreeNodeFlags_OpenOnDoubleClick", + "name": "ImGuiTableColumnFlags_NoReorder", "value": "1 << 6" }, { "calc_value": 128, - "name": "ImGuiTreeNodeFlags_OpenOnArrow", + "name": "ImGuiTableColumnFlags_NoHide", "value": "1 << 7" }, { "calc_value": 256, - "name": "ImGuiTreeNodeFlags_Leaf", + "name": "ImGuiTableColumnFlags_NoClip", "value": "1 << 8" }, { "calc_value": 512, - "name": "ImGuiTreeNodeFlags_Bullet", + "name": "ImGuiTableColumnFlags_NoSort", "value": "1 << 9" }, { "calc_value": 1024, - "name": "ImGuiTreeNodeFlags_FramePadding", + "name": "ImGuiTableColumnFlags_NoSortAscending", "value": "1 << 10" }, { "calc_value": 2048, - "name": "ImGuiTreeNodeFlags_SpanAvailWidth", + "name": "ImGuiTableColumnFlags_NoSortDescending", "value": "1 << 11" }, { "calc_value": 4096, - "name": "ImGuiTreeNodeFlags_SpanFullWidth", + "name": "ImGuiTableColumnFlags_NoHeaderLabel", "value": "1 << 12" }, { "calc_value": 8192, - "name": "ImGuiTreeNodeFlags_NavLeftJumpsBackHere", + "name": "ImGuiTableColumnFlags_NoHeaderWidth", "value": "1 << 13" }, { - "calc_value": 26, - "name": "ImGuiTreeNodeFlags_CollapsingHeader", - "value": "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog" - } - ], - "ImGuiViewportFlags_": [ - { - "calc_value": 0, - "name": "ImGuiViewportFlags_None", - "value": "0" - }, - { - "calc_value": 1, - "name": "ImGuiViewportFlags_IsPlatformWindow", - "value": "1 << 0" - }, - { - "calc_value": 2, - "name": "ImGuiViewportFlags_IsPlatformMonitor", - "value": "1 << 1" + "calc_value": 16384, + "name": "ImGuiTableColumnFlags_PreferSortAscending", + "value": "1 << 14" }, { - "calc_value": 4, - "name": "ImGuiViewportFlags_OwnedByApp", - "value": "1 << 2" + "calc_value": 32768, + "name": "ImGuiTableColumnFlags_PreferSortDescending", + "value": "1 << 15" }, { - "calc_value": 8, - "name": "ImGuiViewportFlags_NoDecoration", - "value": "1 << 3" + "calc_value": 65536, + "name": "ImGuiTableColumnFlags_IndentEnable", + "value": "1 << 16" }, { - "calc_value": 16, - "name": "ImGuiViewportFlags_NoTaskBarIcon", - "value": "1 << 4" + "calc_value": 131072, + "name": "ImGuiTableColumnFlags_IndentDisable", + "value": "1 << 17" }, { - "calc_value": 32, - "name": "ImGuiViewportFlags_NoFocusOnAppearing", - "value": "1 << 5" + "calc_value": 16777216, + "name": "ImGuiTableColumnFlags_IsEnabled", + "value": "1 << 24" }, { - "calc_value": 64, - "name": "ImGuiViewportFlags_NoFocusOnClick", - "value": "1 << 6" + "calc_value": 33554432, + "name": "ImGuiTableColumnFlags_IsVisible", + "value": "1 << 25" }, { - "calc_value": 128, - "name": "ImGuiViewportFlags_NoInputs", - "value": "1 << 7" + "calc_value": 67108864, + "name": "ImGuiTableColumnFlags_IsSorted", + "value": "1 << 26" }, { - "calc_value": 256, - "name": "ImGuiViewportFlags_NoRendererClear", - "value": "1 << 8" + "calc_value": 134217728, + "name": "ImGuiTableColumnFlags_IsHovered", + "value": "1 << 27" }, { - "calc_value": 512, - "name": "ImGuiViewportFlags_TopMost", - "value": "1 << 9" + "calc_value": 24, + "name": "ImGuiTableColumnFlags_WidthMask_", + "value": "ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed" }, { - "calc_value": 1024, - "name": "ImGuiViewportFlags_Minimized", - "value": "1 << 10" + "calc_value": 196608, + "name": "ImGuiTableColumnFlags_IndentMask_", + "value": "ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable" }, { - "calc_value": 2048, - "name": "ImGuiViewportFlags_NoAutoMerge", - "value": "1 << 11" + "calc_value": 251658240, + "name": "ImGuiTableColumnFlags_StatusMask_", + "value": "ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered" }, { - "calc_value": 4096, - "name": "ImGuiViewportFlags_CanHostOtherWindows", - "value": "1 << 12" + "calc_value": 1073741824, + "name": "ImGuiTableColumnFlags_NoDirectResize_", + "value": "1 << 30" } ], - "ImGuiWindowFlags_": [ + "ImGuiTableFlags_": [ { "calc_value": 0, - "name": "ImGuiWindowFlags_None", + "name": "ImGuiTableFlags_None", "value": "0" }, { "calc_value": 1, - "name": "ImGuiWindowFlags_NoTitleBar", + "name": "ImGuiTableFlags_Resizable", "value": "1 << 0" }, { "calc_value": 2, - "name": "ImGuiWindowFlags_NoResize", + "name": "ImGuiTableFlags_Reorderable", "value": "1 << 1" }, { "calc_value": 4, - "name": "ImGuiWindowFlags_NoMove", + "name": "ImGuiTableFlags_Hideable", "value": "1 << 2" }, { "calc_value": 8, - "name": "ImGuiWindowFlags_NoScrollbar", + "name": "ImGuiTableFlags_Sortable", "value": "1 << 3" }, { "calc_value": 16, - "name": "ImGuiWindowFlags_NoScrollWithMouse", + "name": "ImGuiTableFlags_NoSavedSettings", "value": "1 << 4" }, { "calc_value": 32, - "name": "ImGuiWindowFlags_NoCollapse", + "name": "ImGuiTableFlags_ContextMenuInBody", "value": "1 << 5" }, { "calc_value": 64, - "name": "ImGuiWindowFlags_AlwaysAutoResize", + "name": "ImGuiTableFlags_RowBg", "value": "1 << 6" }, { "calc_value": 128, - "name": "ImGuiWindowFlags_NoBackground", + "name": "ImGuiTableFlags_BordersInnerH", "value": "1 << 7" }, { "calc_value": 256, - "name": "ImGuiWindowFlags_NoSavedSettings", + "name": "ImGuiTableFlags_BordersOuterH", "value": "1 << 8" }, { "calc_value": 512, - "name": "ImGuiWindowFlags_NoMouseInputs", + "name": "ImGuiTableFlags_BordersInnerV", "value": "1 << 9" }, { "calc_value": 1024, - "name": "ImGuiWindowFlags_MenuBar", + "name": "ImGuiTableFlags_BordersOuterV", "value": "1 << 10" }, + { + "calc_value": 384, + "name": "ImGuiTableFlags_BordersH", + "value": "ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH" + }, + { + "calc_value": 1536, + "name": "ImGuiTableFlags_BordersV", + "value": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV" + }, + { + "calc_value": 640, + "name": "ImGuiTableFlags_BordersInner", + "value": "ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH" + }, + { + "calc_value": 1280, + "name": "ImGuiTableFlags_BordersOuter", + "value": "ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH" + }, + { + "calc_value": 1920, + "name": "ImGuiTableFlags_Borders", + "value": "ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter" + }, { "calc_value": 2048, - "name": "ImGuiWindowFlags_HorizontalScrollbar", + "name": "ImGuiTableFlags_NoBordersInBody", "value": "1 << 11" }, { "calc_value": 4096, - "name": "ImGuiWindowFlags_NoFocusOnAppearing", + "name": "ImGuiTableFlags_NoBordersInBodyUntilResize", "value": "1 << 12" }, { "calc_value": 8192, - "name": "ImGuiWindowFlags_NoBringToFrontOnFocus", + "name": "ImGuiTableFlags_SizingFixedFit", "value": "1 << 13" }, { "calc_value": 16384, - "name": "ImGuiWindowFlags_AlwaysVerticalScrollbar", - "value": "1 << 14" + "name": "ImGuiTableFlags_SizingFixedSame", + "value": "2 << 13" + }, + { + "calc_value": 24576, + "name": "ImGuiTableFlags_SizingStretchProp", + "value": "3 << 13" }, { "calc_value": 32768, - "name": "ImGuiWindowFlags_AlwaysHorizontalScrollbar", - "value": "1<< 15" + "name": "ImGuiTableFlags_SizingStretchSame", + "value": "4 << 13" }, { "calc_value": 65536, - "name": "ImGuiWindowFlags_AlwaysUseWindowPadding", + "name": "ImGuiTableFlags_NoHostExtendX", "value": "1 << 16" }, + { + "calc_value": 131072, + "name": "ImGuiTableFlags_NoHostExtendY", + "value": "1 << 17" + }, { "calc_value": 262144, - "name": "ImGuiWindowFlags_NoNavInputs", + "name": "ImGuiTableFlags_NoKeepColumnsVisible", "value": "1 << 18" }, { "calc_value": 524288, - "name": "ImGuiWindowFlags_NoNavFocus", + "name": "ImGuiTableFlags_PreciseWidths", "value": "1 << 19" }, { "calc_value": 1048576, - "name": "ImGuiWindowFlags_UnsavedDocument", + "name": "ImGuiTableFlags_NoClip", "value": "1 << 20" }, { "calc_value": 2097152, - "name": "ImGuiWindowFlags_NoDocking", + "name": "ImGuiTableFlags_PadOuterX", "value": "1 << 21" }, { - "calc_value": 786432, - "name": "ImGuiWindowFlags_NoNav", - "value": "ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" - }, - { - "calc_value": 43, - "name": "ImGuiWindowFlags_NoDecoration", - "value": "ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse" - }, - { - "calc_value": 786944, - "name": "ImGuiWindowFlags_NoInputs", - "value": "ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" + "calc_value": 4194304, + "name": "ImGuiTableFlags_NoPadOuterX", + "value": "1 << 22" }, { "calc_value": 8388608, - "name": "ImGuiWindowFlags_NavFlattened", + "name": "ImGuiTableFlags_NoPadInnerX", "value": "1 << 23" }, { "calc_value": 16777216, - "name": "ImGuiWindowFlags_ChildWindow", + "name": "ImGuiTableFlags_ScrollX", "value": "1 << 24" }, { "calc_value": 33554432, - "name": "ImGuiWindowFlags_Tooltip", + "name": "ImGuiTableFlags_ScrollY", "value": "1 << 25" }, { "calc_value": 67108864, - "name": "ImGuiWindowFlags_Popup", + "name": "ImGuiTableFlags_SortMulti", "value": "1 << 26" }, { "calc_value": 134217728, - "name": "ImGuiWindowFlags_Modal", + "name": "ImGuiTableFlags_SortTristate", "value": "1 << 27" }, { - "calc_value": 268435456, - "name": "ImGuiWindowFlags_ChildMenu", - "value": "1 << 28" + "calc_value": 57344, + "name": "ImGuiTableFlags_SizingMask_", + "value": "ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame" + } + ], + "ImGuiTableRowFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTableRowFlags_None", + "value": "0" }, { - "calc_value": 536870912, - "name": "ImGuiWindowFlags_DockNodeHost", - "value": "1 << 29" + "calc_value": 1, + "name": "ImGuiTableRowFlags_Headers", + "value": "1 << 0" } - ] - }, - "enumtypes": { - "ImGuiKey": "int" - }, - "locations": { - "ImColor": "imgui:2458", - "ImDrawChannel": "imgui:2548", - "ImDrawCmd": "imgui:2507", - "ImDrawCmdHeader": "imgui:2540", - "ImDrawData": "imgui:2740", - "ImDrawFlags_": "imgui:2574", - "ImDrawList": "imgui:2612", - "ImDrawListFlags_": "imgui:2594", - "ImDrawListSplitter": "imgui:2557", - "ImDrawVert": "imgui:2525", - "ImFont": "imgui:2959", - "ImFontAtlas": "imgui:2857", - "ImFontAtlasCustomRect": "imgui:2819", - "ImFontAtlasFlags_": "imgui:2832", - "ImFontConfig": "imgui:2763", - "ImFontGlyph": "imgui:2792", - "ImFontGlyphRangesBuilder": "imgui:2804", - "ImGuiBackendFlags_": "imgui:1579", - "ImGuiButtonFlags_": "imgui:1693", - "ImGuiCol_": "imgui:1594", - "ImGuiColorEditFlags_": "imgui:1706", - "ImGuiComboFlags_": "imgui:1124", - "ImGuiCond_": "imgui:1797", - "ImGuiConfigFlags_": "imgui:1554", - "ImGuiDataType_": "imgui:1376", - "ImGuiDir_": "imgui:1392", - "ImGuiDockNodeFlags_": "imgui:1341", - "ImGuiDragDropFlags_": "imgui:1354", - "ImGuiFocusedFlags_": "imgui:1301", - "ImGuiFreeTypeBuilderFlags": "imgui_freetype:19", - "ImGuiHoveredFlags_": "imgui:1315", - "ImGuiIO": "imgui:1974", - "ImGuiInputTextCallbackData": "imgui:2162", - "ImGuiInputTextFlags_": "imgui:1036", - "ImGuiKey": "imgui:1413", - "ImGuiKeyData": "imgui:1966", - "ImGuiListClipper": "imgui:2407", - "ImGuiMouseButton_": "imgui:1769", - "ImGuiMouseCursor_": "imgui:1779", - "ImGuiNavInput": "imgui:1545", - "ImGuiOnceUponAFrame": "imgui:2282", - "ImGuiPayload": "imgui:2223", - "ImGuiPlatformIO": "imgui:3124", - "ImGuiPlatformImeData": "imgui:3196", - "ImGuiPlatformMonitor": "imgui:3187", - "ImGuiPopupFlags_": "imgui:1097", - "ImGuiSelectableFlags_": "imgui:1113", - "ImGuiSizeCallbackData": "imgui:2193", - "ImGuiSliderFlags_": "imgui:1752", - "ImGuiSortDirection_": "imgui:1403", - "ImGuiStorage": "imgui:2344", - "ImGuiStoragePair": "imgui:2347", - "ImGuiStyle": "imgui:1909", - "ImGuiStyleVar_": "imgui:1661", - "ImGuiTabBarFlags_": "imgui:1138", - "ImGuiTabItemFlags_": "imgui:1154", - "ImGuiTableBgTarget_": "imgui:1292", - "ImGuiTableColumnFlags_": "imgui:1240", - "ImGuiTableColumnSortSpecs": "imgui:2245", - "ImGuiTableFlags_": "imgui:1189", - "ImGuiTableRowFlags_": "imgui:1277", - "ImGuiTableSortSpecs": "imgui:2259", - "ImGuiTextBuffer": "imgui:2317", - "ImGuiTextFilter": "imgui:2290", - "ImGuiTextRange": "imgui:2300", - "ImGuiTreeNodeFlags_": "imgui:1068", - "ImGuiViewport": "imgui:3040", - "ImGuiViewportFlags_": "imgui:3015", - "ImGuiWindowClass": "imgui:2208", - "ImGuiWindowFlags_": "imgui:995", - "ImVec2": "imgui:259", - "ImVec4": "imgui:272" - }, - "structs": { - "ImColor": [ + ], + "ImGuiTextFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTextFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTextFlags_NoWidthForLargeClippedText", + "value": "1 << 0" + } + ], + "ImGuiTooltipFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTooltipFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTooltipFlags_OverridePreviousTooltip", + "value": "1 << 0" + } + ], + "ImGuiTreeNodeFlagsPrivate_": [ + { + "calc_value": 1048576, + "name": "ImGuiTreeNodeFlags_ClipLabelForTrailingButton", + "value": "1 << 20" + } + ], + "ImGuiTreeNodeFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTreeNodeFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiTreeNodeFlags_Selected", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiTreeNodeFlags_Framed", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiTreeNodeFlags_AllowItemOverlap", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiTreeNodeFlags_NoTreePushOnOpen", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiTreeNodeFlags_NoAutoOpenOnLog", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiTreeNodeFlags_DefaultOpen", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiTreeNodeFlags_OpenOnDoubleClick", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiTreeNodeFlags_OpenOnArrow", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiTreeNodeFlags_Leaf", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiTreeNodeFlags_Bullet", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiTreeNodeFlags_FramePadding", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiTreeNodeFlags_SpanAvailWidth", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiTreeNodeFlags_SpanFullWidth", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiTreeNodeFlags_NavLeftJumpsBackHere", + "value": "1 << 13" + }, + { + "calc_value": 26, + "name": "ImGuiTreeNodeFlags_CollapsingHeader", + "value": "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog" + } + ], + "ImGuiViewportFlags_": [ + { + "calc_value": 0, + "name": "ImGuiViewportFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiViewportFlags_IsPlatformWindow", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiViewportFlags_IsPlatformMonitor", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiViewportFlags_OwnedByApp", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiViewportFlags_NoDecoration", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiViewportFlags_NoTaskBarIcon", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiViewportFlags_NoFocusOnAppearing", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiViewportFlags_NoFocusOnClick", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiViewportFlags_NoInputs", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiViewportFlags_NoRendererClear", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiViewportFlags_TopMost", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiViewportFlags_Minimized", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiViewportFlags_NoAutoMerge", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiViewportFlags_CanHostOtherWindows", + "value": "1 << 12" + } + ], + "ImGuiWindowDockStyleCol": [ + { + "calc_value": 0, + "name": "ImGuiWindowDockStyleCol_Text", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiWindowDockStyleCol_Tab", + "value": "1" + }, + { + "calc_value": 2, + "name": "ImGuiWindowDockStyleCol_TabHovered", + "value": "2" + }, + { + "calc_value": 3, + "name": "ImGuiWindowDockStyleCol_TabActive", + "value": "3" + }, + { + "calc_value": 4, + "name": "ImGuiWindowDockStyleCol_TabUnfocused", + "value": "4" + }, + { + "calc_value": 5, + "name": "ImGuiWindowDockStyleCol_TabUnfocusedActive", + "value": "5" + }, + { + "calc_value": 6, + "name": "ImGuiWindowDockStyleCol_COUNT", + "value": "6" + } + ], + "ImGuiWindowFlags_": [ + { + "calc_value": 0, + "name": "ImGuiWindowFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "name": "ImGuiWindowFlags_NoTitleBar", + "value": "1 << 0" + }, + { + "calc_value": 2, + "name": "ImGuiWindowFlags_NoResize", + "value": "1 << 1" + }, + { + "calc_value": 4, + "name": "ImGuiWindowFlags_NoMove", + "value": "1 << 2" + }, + { + "calc_value": 8, + "name": "ImGuiWindowFlags_NoScrollbar", + "value": "1 << 3" + }, + { + "calc_value": 16, + "name": "ImGuiWindowFlags_NoScrollWithMouse", + "value": "1 << 4" + }, + { + "calc_value": 32, + "name": "ImGuiWindowFlags_NoCollapse", + "value": "1 << 5" + }, + { + "calc_value": 64, + "name": "ImGuiWindowFlags_AlwaysAutoResize", + "value": "1 << 6" + }, + { + "calc_value": 128, + "name": "ImGuiWindowFlags_NoBackground", + "value": "1 << 7" + }, + { + "calc_value": 256, + "name": "ImGuiWindowFlags_NoSavedSettings", + "value": "1 << 8" + }, + { + "calc_value": 512, + "name": "ImGuiWindowFlags_NoMouseInputs", + "value": "1 << 9" + }, + { + "calc_value": 1024, + "name": "ImGuiWindowFlags_MenuBar", + "value": "1 << 10" + }, + { + "calc_value": 2048, + "name": "ImGuiWindowFlags_HorizontalScrollbar", + "value": "1 << 11" + }, + { + "calc_value": 4096, + "name": "ImGuiWindowFlags_NoFocusOnAppearing", + "value": "1 << 12" + }, + { + "calc_value": 8192, + "name": "ImGuiWindowFlags_NoBringToFrontOnFocus", + "value": "1 << 13" + }, + { + "calc_value": 16384, + "name": "ImGuiWindowFlags_AlwaysVerticalScrollbar", + "value": "1 << 14" + }, + { + "calc_value": 32768, + "name": "ImGuiWindowFlags_AlwaysHorizontalScrollbar", + "value": "1<< 15" + }, + { + "calc_value": 65536, + "name": "ImGuiWindowFlags_AlwaysUseWindowPadding", + "value": "1 << 16" + }, + { + "calc_value": 262144, + "name": "ImGuiWindowFlags_NoNavInputs", + "value": "1 << 18" + }, + { + "calc_value": 524288, + "name": "ImGuiWindowFlags_NoNavFocus", + "value": "1 << 19" + }, + { + "calc_value": 1048576, + "name": "ImGuiWindowFlags_UnsavedDocument", + "value": "1 << 20" + }, + { + "calc_value": 2097152, + "name": "ImGuiWindowFlags_NoDocking", + "value": "1 << 21" + }, + { + "calc_value": 786432, + "name": "ImGuiWindowFlags_NoNav", + "value": "ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" + }, + { + "calc_value": 43, + "name": "ImGuiWindowFlags_NoDecoration", + "value": "ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse" + }, + { + "calc_value": 786944, + "name": "ImGuiWindowFlags_NoInputs", + "value": "ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus" + }, + { + "calc_value": 8388608, + "name": "ImGuiWindowFlags_NavFlattened", + "value": "1 << 23" + }, + { + "calc_value": 16777216, + "name": "ImGuiWindowFlags_ChildWindow", + "value": "1 << 24" + }, + { + "calc_value": 33554432, + "name": "ImGuiWindowFlags_Tooltip", + "value": "1 << 25" + }, + { + "calc_value": 67108864, + "name": "ImGuiWindowFlags_Popup", + "value": "1 << 26" + }, + { + "calc_value": 134217728, + "name": "ImGuiWindowFlags_Modal", + "value": "1 << 27" + }, + { + "calc_value": 268435456, + "name": "ImGuiWindowFlags_ChildMenu", + "value": "1 << 28" + }, + { + "calc_value": 536870912, + "name": "ImGuiWindowFlags_DockNodeHost", + "value": "1 << 29" + } + ] + }, + "enumtypes": { + "ImGuiKey": "int", + "ImGuiLocKey": "int" + }, + "locations": { + "ImBitVector": "imgui_internal:593", + "ImColor": "imgui:2458", + "ImDrawChannel": "imgui:2548", + "ImDrawCmd": "imgui:2507", + "ImDrawCmdHeader": "imgui:2540", + "ImDrawData": "imgui:2740", + "ImDrawDataBuilder": "imgui_internal:782", + "ImDrawFlags_": "imgui:2574", + "ImDrawList": "imgui:2612", + "ImDrawListFlags_": "imgui:2594", + "ImDrawListSharedData": "imgui_internal:759", + "ImDrawListSplitter": "imgui:2557", + "ImDrawVert": "imgui:2525", + "ImFont": "imgui:2959", + "ImFontAtlas": "imgui:2857", + "ImFontAtlasCustomRect": "imgui:2819", + "ImFontAtlasFlags_": "imgui:2832", + "ImFontBuilderIO": "imgui_internal:3476", + "ImFontConfig": "imgui:2763", + "ImFontGlyph": "imgui:2792", + "ImFontGlyphRangesBuilder": "imgui:2804", + "ImGuiActivateFlags_": "imgui_internal:1428", + "ImGuiAxis": "imgui_internal:949", + "ImGuiBackendFlags_": "imgui:1579", + "ImGuiButtonFlagsPrivate_": "imgui_internal:853", + "ImGuiButtonFlags_": "imgui:1693", + "ImGuiCol_": "imgui:1594", + "ImGuiColorEditFlags_": "imgui:1706", + "ImGuiColorMod": "imgui_internal:992", + "ImGuiComboFlagsPrivate_": "imgui_internal:878", + "ImGuiComboFlags_": "imgui:1124", + "ImGuiComboPreviewData": "imgui_internal:1009", + "ImGuiCond_": "imgui:1797", + "ImGuiConfigFlags_": "imgui:1554", + "ImGuiContext": "imgui_internal:1905", + "ImGuiContextHook": "imgui_internal:1890", + "ImGuiContextHookType": "imgui_internal:1888", + "ImGuiDataAuthority_": "imgui_internal:1599", + "ImGuiDataTypeInfo": "imgui_internal:975", + "ImGuiDataTypePrivate_": "imgui_internal:984", + "ImGuiDataTypeTempStorage": "imgui_internal:969", + "ImGuiDataType_": "imgui:1376", + "ImGuiDebugLogFlags_": "imgui_internal:1820", + "ImGuiDir_": "imgui:1392", + "ImGuiDockContext": "imgui_internal:1697", + "ImGuiDockNode": "imgui_internal:1615", + "ImGuiDockNodeFlagsPrivate_": "imgui_internal:1574", + "ImGuiDockNodeFlags_": "imgui:1341", + "ImGuiDockNodeState": "imgui_internal:1606", + "ImGuiDragDropFlags_": "imgui:1354", + "ImGuiFocusedFlags_": "imgui:1301", + "ImGuiFreeTypeBuilderFlags": "imgui_freetype:19", + "ImGuiGroupData": "imgui_internal:1022", + "ImGuiHoveredFlags_": "imgui:1315", + "ImGuiIO": "imgui:1974", + "ImGuiInputEvent": "imgui_internal:1286", + "ImGuiInputEventAppFocused": "imgui_internal:1284", + "ImGuiInputEventKey": "imgui_internal:1282", + "ImGuiInputEventMouseButton": "imgui_internal:1280", + "ImGuiInputEventMousePos": "imgui_internal:1278", + "ImGuiInputEventMouseViewport": "imgui_internal:1281", + "ImGuiInputEventMouseWheel": "imgui_internal:1279", + "ImGuiInputEventText": "imgui_internal:1283", + "ImGuiInputEventType": "imgui_internal:1252", + "ImGuiInputFlags_": "imgui_internal:1349", + "ImGuiInputSource": "imgui_internal:1265", + "ImGuiInputTextCallbackData": "imgui:2162", + "ImGuiInputTextFlagsPrivate_": "imgui_internal:844", + "ImGuiInputTextFlags_": "imgui:1036", + "ImGuiInputTextState": "imgui_internal:1057", + "ImGuiItemFlags_": "imgui_internal:801", + "ImGuiItemStatusFlags_": "imgui_internal:821", + "ImGuiKey": "imgui:1413", + "ImGuiKeyData": "imgui:1966", + "ImGuiKeyOwnerData": "imgui_internal:1337", + "ImGuiKeyRoutingData": "imgui_internal:1312", + "ImGuiKeyRoutingTable": "imgui_internal:1325", + "ImGuiLastItemData": "imgui_internal:1171", + "ImGuiLayoutType_": "imgui_internal:933", + "ImGuiListClipper": "imgui:2407", + "ImGuiListClipperData": "imgui_internal:1412", + "ImGuiListClipperRange": "imgui_internal:1399", + "ImGuiLocEntry": "imgui_internal:1809", + "ImGuiLocKey": "imgui_internal:1796", + "ImGuiLogType": "imgui_internal:939", + "ImGuiMenuColumns": "imgui_internal:1038", + "ImGuiMetricsConfig": "imgui_internal:1836", + "ImGuiMouseButton_": "imgui:1769", + "ImGuiMouseCursor_": "imgui:1779", + "ImGuiNavHighlightFlags_": "imgui_internal:1451", + "ImGuiNavInput": "imgui:1545", + "ImGuiNavItemData": "imgui_internal:1485", + "ImGuiNavLayer": "imgui_internal:1478", + "ImGuiNavMoveFlags_": "imgui_internal:1460", + "ImGuiNextItemData": "imgui_internal:1158", + "ImGuiNextItemDataFlags_": "imgui_internal:1151", + "ImGuiNextWindowData": "imgui_internal:1124", + "ImGuiNextWindowDataFlags_": "imgui_internal:1107", + "ImGuiOldColumnData": "imgui_internal:1525", + "ImGuiOldColumnFlags_": "imgui_internal:1505", + "ImGuiOldColumns": "imgui_internal:1535", + "ImGuiOnceUponAFrame": "imgui:2282", + "ImGuiPayload": "imgui:2223", + "ImGuiPlatformIO": "imgui:3124", + "ImGuiPlatformImeData": "imgui:3196", + "ImGuiPlatformMonitor": "imgui:3187", + "ImGuiPlotType": "imgui_internal:956", + "ImGuiPopupData": "imgui_internal:1093", + "ImGuiPopupFlags_": "imgui:1097", + "ImGuiPopupPositionPolicy": "imgui_internal:962", + "ImGuiPtrOrIndex": "imgui_internal:1215", + "ImGuiScrollFlags_": "imgui_internal:1437", + "ImGuiSelectableFlagsPrivate_": "imgui_internal:891", + "ImGuiSelectableFlags_": "imgui:1113", + "ImGuiSeparatorFlags_": "imgui_internal:911", + "ImGuiSettingsHandler": "imgui_internal:1776", + "ImGuiShrinkWidthItem": "imgui_internal:1208", + "ImGuiSizeCallbackData": "imgui:2193", + "ImGuiSliderFlagsPrivate_": "imgui_internal:884", + "ImGuiSliderFlags_": "imgui:1752", + "ImGuiSortDirection_": "imgui:1403", + "ImGuiStackLevelInfo": "imgui_internal:1859", + "ImGuiStackSizes": "imgui_internal:1183", + "ImGuiStackTool": "imgui_internal:1871", + "ImGuiStorage": "imgui:2344", + "ImGuiStoragePair": "imgui:2347", + "ImGuiStyle": "imgui:1909", + "ImGuiStyleMod": "imgui_internal:999", + "ImGuiStyleVar_": "imgui:1661", + "ImGuiTabBar": "imgui_internal:2612", + "ImGuiTabBarFlagsPrivate_": "imgui_internal:2574", + "ImGuiTabBarFlags_": "imgui:1138", + "ImGuiTabItem": "imgui_internal:2592", + "ImGuiTabItemFlagsPrivate_": "imgui_internal:2582", + "ImGuiTabItemFlags_": "imgui:1154", + "ImGuiTable": "imgui_internal:2748", + "ImGuiTableBgTarget_": "imgui:1292", + "ImGuiTableCellData": "imgui_internal:2732", + "ImGuiTableColumn": "imgui_internal:2673", + "ImGuiTableColumnFlags_": "imgui:1240", + "ImGuiTableColumnSettings": "imgui_internal:2883", + "ImGuiTableColumnSortSpecs": "imgui:2245", + "ImGuiTableFlags_": "imgui:1189", + "ImGuiTableInstanceData": "imgui_internal:2739", + "ImGuiTableRowFlags_": "imgui:1277", + "ImGuiTableSettings": "imgui_internal:2907", + "ImGuiTableSortSpecs": "imgui:2259", + "ImGuiTableTempData": "imgui_internal:2862", + "ImGuiTextBuffer": "imgui:2317", + "ImGuiTextFilter": "imgui:2290", + "ImGuiTextFlags_": "imgui_internal:919", + "ImGuiTextIndex": "imgui_internal:716", + "ImGuiTextRange": "imgui:2300", + "ImGuiTooltipFlags_": "imgui_internal:925", + "ImGuiTreeNodeFlagsPrivate_": "imgui_internal:906", + "ImGuiTreeNodeFlags_": "imgui:1068", + "ImGuiViewport": "imgui:3040", + "ImGuiViewportFlags_": "imgui:3015", + "ImGuiViewportP": "imgui_internal:1714", + "ImGuiWindow": "imgui_internal:2430", + "ImGuiWindowClass": "imgui:2208", + "ImGuiWindowDockStyle": "imgui_internal:1692", + "ImGuiWindowDockStyleCol": "imgui_internal:1681", + "ImGuiWindowFlags_": "imgui:995", + "ImGuiWindowSettings": "imgui_internal:1759", + "ImGuiWindowStackData": "imgui_internal:1201", + "ImGuiWindowTempData": "imgui_internal:2382", + "ImRect": "imgui_internal:521", + "ImVec1": "imgui_internal:503", + "ImVec2": "imgui:259", + "ImVec2ih": "imgui_internal:511", + "ImVec4": "imgui:272", + "STB_TexteditState": "imstb_textedit:319", + "StbTexteditRow": "imstb_textedit:366", + "StbUndoRecord": "imstb_textedit:301", + "StbUndoState": "imstb_textedit:310" + }, + "structs": { + "ImBitVector": [ + { + "name": "Storage", + "template_type": "ImU32", + "type": "ImVector_ImU32" + } + ], + "ImColor": [ + { + "name": "Value", + "type": "ImVec4" + } + ], + "ImDrawChannel": [ + { + "name": "_CmdBuffer", + "template_type": "ImDrawCmd", + "type": "ImVector_ImDrawCmd" + }, + { + "name": "_IdxBuffer", + "template_type": "ImDrawIdx", + "type": "ImVector_ImDrawIdx" + } + ], + "ImDrawCmd": [ + { + "name": "ClipRect", + "type": "ImVec4" + }, + { + "name": "TextureId", + "type": "ImTextureID" + }, + { + "name": "VtxOffset", + "type": "unsigned int" + }, + { + "name": "IdxOffset", + "type": "unsigned int" + }, + { + "name": "ElemCount", + "type": "unsigned int" + }, + { + "name": "UserCallback", + "type": "ImDrawCallback" + }, + { + "name": "UserCallbackData", + "type": "void*" + } + ], + "ImDrawCmdHeader": [ + { + "name": "ClipRect", + "type": "ImVec4" + }, + { + "name": "TextureId", + "type": "ImTextureID" + }, + { + "name": "VtxOffset", + "type": "unsigned int" + } + ], + "ImDrawData": [ + { + "name": "Valid", + "type": "bool" + }, + { + "name": "CmdListsCount", + "type": "int" + }, + { + "name": "TotalIdxCount", + "type": "int" + }, + { + "name": "TotalVtxCount", + "type": "int" + }, + { + "name": "CmdLists", + "type": "ImDrawList**" + }, + { + "name": "DisplayPos", + "type": "ImVec2" + }, + { + "name": "DisplaySize", + "type": "ImVec2" + }, + { + "name": "FramebufferScale", + "type": "ImVec2" + }, + { + "name": "OwnerViewport", + "type": "ImGuiViewport*" + } + ], + "ImDrawDataBuilder": [ + { + "name": "Layers[2]", + "size": 2, + "template_type": "ImDrawList*", + "type": "ImVector_ImDrawListPtr" + } + ], + "ImDrawList": [ + { + "name": "CmdBuffer", + "template_type": "ImDrawCmd", + "type": "ImVector_ImDrawCmd" + }, + { + "name": "IdxBuffer", + "template_type": "ImDrawIdx", + "type": "ImVector_ImDrawIdx" + }, + { + "name": "VtxBuffer", + "template_type": "ImDrawVert", + "type": "ImVector_ImDrawVert" + }, + { + "name": "Flags", + "type": "ImDrawListFlags" + }, + { + "name": "_VtxCurrentIdx", + "type": "unsigned int" + }, + { + "name": "_Data", + "type": "ImDrawListSharedData*" + }, + { + "name": "_OwnerName", + "type": "const char*" + }, + { + "name": "_VtxWritePtr", + "type": "ImDrawVert*" + }, + { + "name": "_IdxWritePtr", + "type": "ImDrawIdx*" + }, + { + "name": "_ClipRectStack", + "template_type": "ImVec4", + "type": "ImVector_ImVec4" + }, + { + "name": "_TextureIdStack", + "template_type": "ImTextureID", + "type": "ImVector_ImTextureID" + }, + { + "name": "_Path", + "template_type": "ImVec2", + "type": "ImVector_ImVec2" + }, + { + "name": "_CmdHeader", + "type": "ImDrawCmdHeader" + }, + { + "name": "_Splitter", + "type": "ImDrawListSplitter" + }, + { + "name": "_FringeScale", + "type": "float" + } + ], + "ImDrawListSharedData": [ + { + "name": "TexUvWhitePixel", + "type": "ImVec2" + }, + { + "name": "Font", + "type": "ImFont*" + }, + { + "name": "FontSize", + "type": "float" + }, + { + "name": "CurveTessellationTol", + "type": "float" + }, + { + "name": "CircleSegmentMaxError", + "type": "float" + }, + { + "name": "ClipRectFullscreen", + "type": "ImVec4" + }, + { + "name": "InitialFlags", + "type": "ImDrawListFlags" + }, + { + "name": "TempBuffer", + "template_type": "ImVec2", + "type": "ImVector_ImVec2" + }, + { + "name": "ArcFastVtx[48]", + "size": 48, + "type": "ImVec2" + }, + { + "name": "ArcFastRadiusCutoff", + "type": "float" + }, + { + "name": "CircleSegmentCounts[64]", + "size": 64, + "type": "ImU8" + }, + { + "name": "TexUvLines", + "type": "const ImVec4*" + } + ], + "ImDrawListSplitter": [ + { + "name": "_Current", + "type": "int" + }, + { + "name": "_Count", + "type": "int" + }, + { + "name": "_Channels", + "template_type": "ImDrawChannel", + "type": "ImVector_ImDrawChannel" + } + ], + "ImDrawVert": [ + { + "name": "pos", + "type": "ImVec2" + }, + { + "name": "uv", + "type": "ImVec2" + }, + { + "name": "col", + "type": "ImU32" + } + ], + "ImFont": [ + { + "name": "IndexAdvanceX", + "template_type": "float", + "type": "ImVector_float" + }, + { + "name": "FallbackAdvanceX", + "type": "float" + }, + { + "name": "FontSize", + "type": "float" + }, + { + "name": "IndexLookup", + "template_type": "ImWchar", + "type": "ImVector_ImWchar" + }, + { + "name": "Glyphs", + "template_type": "ImFontGlyph", + "type": "ImVector_ImFontGlyph" + }, + { + "name": "FallbackGlyph", + "type": "const ImFontGlyph*" + }, + { + "name": "ContainerAtlas", + "type": "ImFontAtlas*" + }, + { + "name": "ConfigData", + "type": "const ImFontConfig*" + }, + { + "name": "ConfigDataCount", + "type": "short" + }, + { + "name": "FallbackChar", + "type": "ImWchar" + }, + { + "name": "EllipsisChar", + "type": "ImWchar" + }, + { + "name": "DotChar", + "type": "ImWchar" + }, + { + "name": "DirtyLookupTables", + "type": "bool" + }, + { + "name": "Scale", + "type": "float" + }, + { + "name": "Ascent", + "type": "float" + }, + { + "name": "Descent", + "type": "float" + }, + { + "name": "MetricsTotalSurface", + "type": "int" + }, + { + "name": "Used4kPagesMap[(0x10FFFF+1)/4096/8]", + "size": 34, + "type": "ImU8" + } + ], + "ImFontAtlas": [ + { + "name": "Flags", + "type": "ImFontAtlasFlags" + }, + { + "name": "TexID", + "type": "ImTextureID" + }, + { + "name": "TexDesiredWidth", + "type": "int" + }, + { + "name": "TexGlyphPadding", + "type": "int" + }, + { + "name": "Locked", + "type": "bool" + }, + { + "name": "TexReady", + "type": "bool" + }, + { + "name": "TexPixelsUseColors", + "type": "bool" + }, + { + "name": "TexPixelsAlpha8", + "type": "unsigned char*" + }, + { + "name": "TexPixelsRGBA32", + "type": "unsigned int*" + }, + { + "name": "TexWidth", + "type": "int" + }, + { + "name": "TexHeight", + "type": "int" + }, + { + "name": "TexUvScale", + "type": "ImVec2" + }, + { + "name": "TexUvWhitePixel", + "type": "ImVec2" + }, + { + "name": "Fonts", + "template_type": "ImFont*", + "type": "ImVector_ImFontPtr" + }, + { + "name": "CustomRects", + "template_type": "ImFontAtlasCustomRect", + "type": "ImVector_ImFontAtlasCustomRect" + }, + { + "name": "ConfigData", + "template_type": "ImFontConfig", + "type": "ImVector_ImFontConfig" + }, + { + "name": "TexUvLines[(63)+1]", + "size": 64, + "type": "ImVec4" + }, + { + "name": "FontBuilderIO", + "type": "const ImFontBuilderIO*" + }, + { + "name": "FontBuilderFlags", + "type": "unsigned int" + }, + { + "name": "PackIdMouseCursors", + "type": "int" + }, + { + "name": "PackIdLines", + "type": "int" + } + ], + "ImFontAtlasCustomRect": [ + { + "name": "Width", + "type": "unsigned short" + }, + { + "name": "Height", + "type": "unsigned short" + }, + { + "name": "X", + "type": "unsigned short" + }, + { + "name": "Y", + "type": "unsigned short" + }, + { + "name": "GlyphID", + "type": "unsigned int" + }, + { + "name": "GlyphAdvanceX", + "type": "float" + }, + { + "name": "GlyphOffset", + "type": "ImVec2" + }, + { + "name": "Font", + "type": "ImFont*" + } + ], + "ImFontBuilderIO": [ + { + "name": "FontBuilder_Build", + "type": "bool(*)(ImFontAtlas* atlas)" + } + ], + "ImFontConfig": [ + { + "name": "FontData", + "type": "void*" + }, + { + "name": "FontDataSize", + "type": "int" + }, + { + "name": "FontDataOwnedByAtlas", + "type": "bool" + }, + { + "name": "FontNo", + "type": "int" + }, + { + "name": "SizePixels", + "type": "float" + }, + { + "name": "OversampleH", + "type": "int" + }, + { + "name": "OversampleV", + "type": "int" + }, + { + "name": "PixelSnapH", + "type": "bool" + }, + { + "name": "GlyphExtraSpacing", + "type": "ImVec2" + }, + { + "name": "GlyphOffset", + "type": "ImVec2" + }, + { + "name": "GlyphRanges", + "type": "const ImWchar*" + }, + { + "name": "GlyphMinAdvanceX", + "type": "float" + }, + { + "name": "GlyphMaxAdvanceX", + "type": "float" + }, + { + "name": "MergeMode", + "type": "bool" + }, + { + "name": "FontBuilderFlags", + "type": "unsigned int" + }, + { + "name": "RasterizerMultiply", + "type": "float" + }, + { + "name": "EllipsisChar", + "type": "ImWchar" + }, + { + "name": "Name[40]", + "size": 40, + "type": "char" + }, + { + "name": "DstFont", + "type": "ImFont*" + } + ], + "ImFontGlyph": [ + { + "bitfield": "1", + "name": "Colored", + "type": "unsigned int" + }, + { + "bitfield": "1", + "name": "Visible", + "type": "unsigned int" + }, + { + "bitfield": "30", + "name": "Codepoint", + "type": "unsigned int" + }, + { + "name": "AdvanceX", + "type": "float" + }, + { + "name": "X0", + "type": "float" + }, + { + "name": "Y0", + "type": "float" + }, + { + "name": "X1", + "type": "float" + }, + { + "name": "Y1", + "type": "float" + }, + { + "name": "U0", + "type": "float" + }, + { + "name": "V0", + "type": "float" + }, + { + "name": "U1", + "type": "float" + }, + { + "name": "V1", + "type": "float" + } + ], + "ImFontGlyphRangesBuilder": [ + { + "name": "UsedChars", + "template_type": "ImU32", + "type": "ImVector_ImU32" + } + ], + "ImGuiColorMod": [ + { + "name": "Col", + "type": "ImGuiCol" + }, + { + "name": "BackupValue", + "type": "ImVec4" + } + ], + "ImGuiComboPreviewData": [ + { + "name": "PreviewRect", + "type": "ImRect" + }, + { + "name": "BackupCursorPos", + "type": "ImVec2" + }, + { + "name": "BackupCursorMaxPos", + "type": "ImVec2" + }, + { + "name": "BackupCursorPosPrevLine", + "type": "ImVec2" + }, + { + "name": "BackupPrevLineTextBaseOffset", + "type": "float" + }, + { + "name": "BackupLayout", + "type": "ImGuiLayoutType" + } + ], + "ImGuiContext": [ + { + "name": "Initialized", + "type": "bool" + }, + { + "name": "FontAtlasOwnedByContext", + "type": "bool" + }, + { + "name": "IO", + "type": "ImGuiIO" + }, + { + "name": "PlatformIO", + "type": "ImGuiPlatformIO" + }, + { + "name": "InputEventsQueue", + "template_type": "ImGuiInputEvent", + "type": "ImVector_ImGuiInputEvent" + }, + { + "name": "InputEventsTrail", + "template_type": "ImGuiInputEvent", + "type": "ImVector_ImGuiInputEvent" + }, + { + "name": "Style", + "type": "ImGuiStyle" + }, + { + "name": "ConfigFlagsCurrFrame", + "type": "ImGuiConfigFlags" + }, + { + "name": "ConfigFlagsLastFrame", + "type": "ImGuiConfigFlags" + }, + { + "name": "Font", + "type": "ImFont*" + }, + { + "name": "FontSize", + "type": "float" + }, + { + "name": "FontBaseSize", + "type": "float" + }, + { + "name": "DrawListSharedData", + "type": "ImDrawListSharedData" + }, + { + "name": "Time", + "type": "double" + }, + { + "name": "FrameCount", + "type": "int" + }, + { + "name": "FrameCountEnded", + "type": "int" + }, + { + "name": "FrameCountPlatformEnded", + "type": "int" + }, + { + "name": "FrameCountRendered", + "type": "int" + }, + { + "name": "WithinFrameScope", + "type": "bool" + }, + { + "name": "WithinFrameScopeWithImplicitWindow", + "type": "bool" + }, + { + "name": "WithinEndChild", + "type": "bool" + }, + { + "name": "GcCompactAll", + "type": "bool" + }, + { + "name": "TestEngineHookItems", + "type": "bool" + }, + { + "name": "TestEngine", + "type": "void*" + }, + { + "name": "Windows", + "template_type": "ImGuiWindow*", + "type": "ImVector_ImGuiWindowPtr" + }, + { + "name": "WindowsFocusOrder", + "template_type": "ImGuiWindow*", + "type": "ImVector_ImGuiWindowPtr" + }, + { + "name": "WindowsTempSortBuffer", + "template_type": "ImGuiWindow*", + "type": "ImVector_ImGuiWindowPtr" + }, + { + "name": "CurrentWindowStack", + "template_type": "ImGuiWindowStackData", + "type": "ImVector_ImGuiWindowStackData" + }, + { + "name": "WindowsById", + "type": "ImGuiStorage" + }, + { + "name": "WindowsActiveCount", + "type": "int" + }, + { + "name": "WindowsHoverPadding", + "type": "ImVec2" + }, + { + "name": "CurrentWindow", + "type": "ImGuiWindow*" + }, + { + "name": "HoveredWindow", + "type": "ImGuiWindow*" + }, + { + "name": "HoveredWindowUnderMovingWindow", + "type": "ImGuiWindow*" + }, + { + "name": "MovingWindow", + "type": "ImGuiWindow*" + }, + { + "name": "WheelingWindow", + "type": "ImGuiWindow*" + }, + { + "name": "WheelingWindowRefMousePos", + "type": "ImVec2" + }, + { + "name": "WheelingWindowReleaseTimer", + "type": "float" + }, + { + "name": "DebugHookIdInfo", + "type": "ImGuiID" + }, + { + "name": "HoveredId", + "type": "ImGuiID" + }, + { + "name": "HoveredIdPreviousFrame", + "type": "ImGuiID" + }, + { + "name": "HoveredIdAllowOverlap", + "type": "bool" + }, + { + "name": "HoveredIdDisabled", + "type": "bool" + }, + { + "name": "HoveredIdTimer", + "type": "float" + }, + { + "name": "HoveredIdNotActiveTimer", + "type": "float" + }, + { + "name": "ActiveId", + "type": "ImGuiID" + }, + { + "name": "ActiveIdIsAlive", + "type": "ImGuiID" + }, + { + "name": "ActiveIdTimer", + "type": "float" + }, + { + "name": "ActiveIdIsJustActivated", + "type": "bool" + }, + { + "name": "ActiveIdAllowOverlap", + "type": "bool" + }, + { + "name": "ActiveIdNoClearOnFocusLoss", + "type": "bool" + }, + { + "name": "ActiveIdHasBeenPressedBefore", + "type": "bool" + }, + { + "name": "ActiveIdHasBeenEditedBefore", + "type": "bool" + }, + { + "name": "ActiveIdHasBeenEditedThisFrame", + "type": "bool" + }, + { + "name": "ActiveIdClickOffset", + "type": "ImVec2" + }, + { + "name": "ActiveIdWindow", + "type": "ImGuiWindow*" + }, + { + "name": "ActiveIdSource", + "type": "ImGuiInputSource" + }, + { + "name": "ActiveIdMouseButton", + "type": "int" + }, + { + "name": "ActiveIdPreviousFrame", + "type": "ImGuiID" + }, + { + "name": "ActiveIdPreviousFrameIsAlive", + "type": "bool" + }, + { + "name": "ActiveIdPreviousFrameHasBeenEditedBefore", + "type": "bool" + }, + { + "name": "ActiveIdPreviousFrameWindow", + "type": "ImGuiWindow*" + }, + { + "name": "LastActiveId", + "type": "ImGuiID" + }, + { + "name": "LastActiveIdTimer", + "type": "float" + }, + { + "name": "KeysOwnerData[ImGuiKey_NamedKey_COUNT]", + "size": 140, + "type": "ImGuiKeyOwnerData" + }, + { + "name": "KeysRoutingTable", + "type": "ImGuiKeyRoutingTable" + }, + { + "name": "ActiveIdUsingNavDirMask", + "type": "ImU32" + }, + { + "name": "ActiveIdUsingAllKeyboardKeys", + "type": "bool" + }, + { + "name": "ActiveIdUsingNavInputMask", + "type": "ImU32" + }, + { + "name": "CurrentFocusScopeId", + "type": "ImGuiID" + }, + { + "name": "CurrentItemFlags", + "type": "ImGuiItemFlags" + }, + { + "name": "DebugLocateId", + "type": "ImGuiID" + }, + { + "name": "NextItemData", + "type": "ImGuiNextItemData" + }, + { + "name": "LastItemData", + "type": "ImGuiLastItemData" + }, + { + "name": "NextWindowData", + "type": "ImGuiNextWindowData" + }, + { + "name": "ColorStack", + "template_type": "ImGuiColorMod", + "type": "ImVector_ImGuiColorMod" + }, + { + "name": "StyleVarStack", + "template_type": "ImGuiStyleMod", + "type": "ImVector_ImGuiStyleMod" + }, + { + "name": "FontStack", + "template_type": "ImFont*", + "type": "ImVector_ImFontPtr" + }, + { + "name": "FocusScopeStack", + "template_type": "ImGuiID", + "type": "ImVector_ImGuiID" + }, + { + "name": "ItemFlagsStack", + "template_type": "ImGuiItemFlags", + "type": "ImVector_ImGuiItemFlags" + }, + { + "name": "GroupStack", + "template_type": "ImGuiGroupData", + "type": "ImVector_ImGuiGroupData" + }, + { + "name": "OpenPopupStack", + "template_type": "ImGuiPopupData", + "type": "ImVector_ImGuiPopupData" + }, + { + "name": "BeginPopupStack", + "template_type": "ImGuiPopupData", + "type": "ImVector_ImGuiPopupData" + }, + { + "name": "BeginMenuCount", + "type": "int" + }, + { + "name": "Viewports", + "template_type": "ImGuiViewportP*", + "type": "ImVector_ImGuiViewportPPtr" + }, + { + "name": "CurrentDpiScale", + "type": "float" + }, + { + "name": "CurrentViewport", + "type": "ImGuiViewportP*" + }, + { + "name": "MouseViewport", + "type": "ImGuiViewportP*" + }, + { + "name": "MouseLastHoveredViewport", + "type": "ImGuiViewportP*" + }, + { + "name": "PlatformLastFocusedViewportId", + "type": "ImGuiID" + }, + { + "name": "FallbackMonitor", + "type": "ImGuiPlatformMonitor" + }, + { + "name": "ViewportFrontMostStampCount", + "type": "int" + }, + { + "name": "NavWindow", + "type": "ImGuiWindow*" + }, + { + "name": "NavId", + "type": "ImGuiID" + }, + { + "name": "NavFocusScopeId", + "type": "ImGuiID" + }, + { + "name": "NavActivateId", + "type": "ImGuiID" + }, + { + "name": "NavActivateDownId", + "type": "ImGuiID" + }, + { + "name": "NavActivatePressedId", + "type": "ImGuiID" + }, + { + "name": "NavActivateInputId", + "type": "ImGuiID" + }, + { + "name": "NavActivateFlags", + "type": "ImGuiActivateFlags" + }, + { + "name": "NavJustMovedToId", + "type": "ImGuiID" + }, + { + "name": "NavJustMovedToFocusScopeId", + "type": "ImGuiID" + }, + { + "name": "NavJustMovedToKeyMods", + "type": "ImGuiKeyChord" + }, + { + "name": "NavNextActivateId", + "type": "ImGuiID" + }, + { + "name": "NavNextActivateFlags", + "type": "ImGuiActivateFlags" + }, + { + "name": "NavInputSource", + "type": "ImGuiInputSource" + }, + { + "name": "NavLayer", + "type": "ImGuiNavLayer" + }, + { + "name": "NavIdIsAlive", + "type": "bool" + }, + { + "name": "NavMousePosDirty", + "type": "bool" + }, + { + "name": "NavDisableHighlight", + "type": "bool" + }, + { + "name": "NavDisableMouseHover", + "type": "bool" + }, + { + "name": "NavAnyRequest", + "type": "bool" + }, + { + "name": "NavInitRequest", + "type": "bool" + }, + { + "name": "NavInitRequestFromMove", + "type": "bool" + }, + { + "name": "NavInitResultId", + "type": "ImGuiID" + }, + { + "name": "NavInitResultRectRel", + "type": "ImRect" + }, + { + "name": "NavMoveSubmitted", + "type": "bool" + }, + { + "name": "NavMoveScoringItems", + "type": "bool" + }, + { + "name": "NavMoveForwardToNextFrame", + "type": "bool" + }, + { + "name": "NavMoveFlags", + "type": "ImGuiNavMoveFlags" + }, + { + "name": "NavMoveScrollFlags", + "type": "ImGuiScrollFlags" + }, + { + "name": "NavMoveKeyMods", + "type": "ImGuiKeyChord" + }, + { + "name": "NavMoveDir", + "type": "ImGuiDir" + }, + { + "name": "NavMoveDirForDebug", + "type": "ImGuiDir" + }, + { + "name": "NavMoveClipDir", + "type": "ImGuiDir" + }, + { + "name": "NavScoringRect", + "type": "ImRect" + }, + { + "name": "NavScoringNoClipRect", + "type": "ImRect" + }, + { + "name": "NavScoringDebugCount", + "type": "int" + }, + { + "name": "NavTabbingDir", + "type": "int" + }, + { + "name": "NavTabbingCounter", + "type": "int" + }, + { + "name": "NavMoveResultLocal", + "type": "ImGuiNavItemData" + }, + { + "name": "NavMoveResultLocalVisible", + "type": "ImGuiNavItemData" + }, + { + "name": "NavMoveResultOther", + "type": "ImGuiNavItemData" + }, + { + "name": "NavTabbingResultFirst", + "type": "ImGuiNavItemData" + }, + { + "name": "ConfigNavWindowingKeyNext", + "type": "ImGuiKeyChord" + }, + { + "name": "ConfigNavWindowingKeyPrev", + "type": "ImGuiKeyChord" + }, + { + "name": "NavWindowingTarget", + "type": "ImGuiWindow*" + }, + { + "name": "NavWindowingTargetAnim", + "type": "ImGuiWindow*" + }, + { + "name": "NavWindowingListWindow", + "type": "ImGuiWindow*" + }, + { + "name": "NavWindowingTimer", + "type": "float" + }, + { + "name": "NavWindowingHighlightAlpha", + "type": "float" + }, + { + "name": "NavWindowingToggleLayer", + "type": "bool" + }, + { + "name": "NavWindowingAccumDeltaPos", + "type": "ImVec2" + }, + { + "name": "NavWindowingAccumDeltaSize", + "type": "ImVec2" + }, + { + "name": "DimBgRatio", + "type": "float" + }, + { + "name": "MouseCursor", + "type": "ImGuiMouseCursor" + }, + { + "name": "DragDropActive", + "type": "bool" + }, + { + "name": "DragDropWithinSource", + "type": "bool" + }, + { + "name": "DragDropWithinTarget", + "type": "bool" + }, + { + "name": "DragDropSourceFlags", + "type": "ImGuiDragDropFlags" + }, + { + "name": "DragDropSourceFrameCount", + "type": "int" + }, + { + "name": "DragDropMouseButton", + "type": "int" + }, + { + "name": "DragDropPayload", + "type": "ImGuiPayload" + }, + { + "name": "DragDropTargetRect", + "type": "ImRect" + }, + { + "name": "DragDropTargetId", + "type": "ImGuiID" + }, + { + "name": "DragDropAcceptFlags", + "type": "ImGuiDragDropFlags" + }, + { + "name": "DragDropAcceptIdCurrRectSurface", + "type": "float" + }, + { + "name": "DragDropAcceptIdCurr", + "type": "ImGuiID" + }, + { + "name": "DragDropAcceptIdPrev", + "type": "ImGuiID" + }, + { + "name": "DragDropAcceptFrameCount", + "type": "int" + }, + { + "name": "DragDropHoldJustPressedId", + "type": "ImGuiID" + }, + { + "name": "DragDropPayloadBufHeap", + "template_type": "unsigned char", + "type": "ImVector_unsigned_char" + }, + { + "name": "DragDropPayloadBufLocal[16]", + "size": 16, + "type": "unsigned char" + }, + { + "name": "ClipperTempDataStacked", + "type": "int" + }, + { + "name": "ClipperTempData", + "template_type": "ImGuiListClipperData", + "type": "ImVector_ImGuiListClipperData" + }, + { + "name": "CurrentTable", + "type": "ImGuiTable*" + }, + { + "name": "TablesTempDataStacked", + "type": "int" + }, + { + "name": "TablesTempData", + "template_type": "ImGuiTableTempData", + "type": "ImVector_ImGuiTableTempData" + }, + { + "name": "Tables", + "template_type": "ImGuiTable", + "type": "ImPool_ImGuiTable" + }, + { + "name": "TablesLastTimeActive", + "template_type": "float", + "type": "ImVector_float" + }, + { + "name": "DrawChannelsTempMergeBuffer", + "template_type": "ImDrawChannel", + "type": "ImVector_ImDrawChannel" + }, + { + "name": "CurrentTabBar", + "type": "ImGuiTabBar*" + }, + { + "name": "TabBars", + "template_type": "ImGuiTabBar", + "type": "ImPool_ImGuiTabBar" + }, + { + "name": "CurrentTabBarStack", + "template_type": "ImGuiPtrOrIndex", + "type": "ImVector_ImGuiPtrOrIndex" + }, + { + "name": "ShrinkWidthBuffer", + "template_type": "ImGuiShrinkWidthItem", + "type": "ImVector_ImGuiShrinkWidthItem" + }, + { + "name": "HoverDelayId", + "type": "ImGuiID" + }, + { + "name": "HoverDelayIdPreviousFrame", + "type": "ImGuiID" + }, + { + "name": "HoverDelayTimer", + "type": "float" + }, + { + "name": "HoverDelayClearTimer", + "type": "float" + }, + { + "name": "MouseLastValidPos", + "type": "ImVec2" + }, + { + "name": "InputTextState", + "type": "ImGuiInputTextState" + }, + { + "name": "InputTextPasswordFont", + "type": "ImFont" + }, + { + "name": "TempInputId", + "type": "ImGuiID" + }, + { + "name": "ColorEditOptions", + "type": "ImGuiColorEditFlags" + }, + { + "name": "ColorEditLastHue", + "type": "float" + }, + { + "name": "ColorEditLastSat", + "type": "float" + }, + { + "name": "ColorEditLastColor", + "type": "ImU32" + }, + { + "name": "ColorPickerRef", + "type": "ImVec4" + }, + { + "name": "ComboPreviewData", + "type": "ImGuiComboPreviewData" + }, + { + "name": "SliderGrabClickOffset", + "type": "float" + }, + { + "name": "SliderCurrentAccum", + "type": "float" + }, + { + "name": "SliderCurrentAccumDirty", + "type": "bool" + }, + { + "name": "DragCurrentAccumDirty", + "type": "bool" + }, + { + "name": "DragCurrentAccum", + "type": "float" + }, + { + "name": "DragSpeedDefaultRatio", + "type": "float" + }, + { + "name": "ScrollbarClickDeltaToGrabCenter", + "type": "float" + }, + { + "name": "DisabledAlphaBackup", + "type": "float" + }, + { + "name": "DisabledStackSize", + "type": "short" + }, + { + "name": "TooltipOverrideCount", + "type": "short" + }, + { + "name": "ClipboardHandlerData", + "template_type": "char", + "type": "ImVector_char" + }, + { + "name": "MenusIdSubmittedThisFrame", + "template_type": "ImGuiID", + "type": "ImVector_ImGuiID" + }, + { + "name": "PlatformImeData", + "type": "ImGuiPlatformImeData" + }, + { + "name": "PlatformImeDataPrev", + "type": "ImGuiPlatformImeData" + }, + { + "name": "PlatformImeViewport", + "type": "ImGuiID" + }, + { + "name": "PlatformLocaleDecimalPoint", + "type": "char" + }, + { + "name": "DockContext", + "type": "ImGuiDockContext" + }, + { + "name": "SettingsLoaded", + "type": "bool" + }, + { + "name": "SettingsDirtyTimer", + "type": "float" + }, + { + "name": "SettingsIniData", + "type": "ImGuiTextBuffer" + }, + { + "name": "SettingsHandlers", + "template_type": "ImGuiSettingsHandler", + "type": "ImVector_ImGuiSettingsHandler" + }, + { + "name": "SettingsWindows", + "template_type": "ImGuiWindowSettings", + "type": "ImChunkStream_ImGuiWindowSettings" + }, + { + "name": "SettingsTables", + "template_type": "ImGuiTableSettings", + "type": "ImChunkStream_ImGuiTableSettings" + }, + { + "name": "Hooks", + "template_type": "ImGuiContextHook", + "type": "ImVector_ImGuiContextHook" + }, + { + "name": "HookIdNext", + "type": "ImGuiID" + }, + { + "name": "LocalizationTable[ImGuiLocKey_COUNT]", + "size": 8, + "type": "const char*" + }, + { + "name": "LogEnabled", + "type": "bool" + }, + { + "name": "LogType", + "type": "ImGuiLogType" + }, + { + "name": "LogFile", + "type": "ImFileHandle" + }, + { + "name": "LogBuffer", + "type": "ImGuiTextBuffer" + }, + { + "name": "LogNextPrefix", + "type": "const char*" + }, + { + "name": "LogNextSuffix", + "type": "const char*" + }, + { + "name": "LogLinePosY", + "type": "float" + }, + { + "name": "LogLineFirstItem", + "type": "bool" + }, + { + "name": "LogDepthRef", + "type": "int" + }, + { + "name": "LogDepthToExpand", + "type": "int" + }, + { + "name": "LogDepthToExpandDefault", + "type": "int" + }, + { + "name": "DebugLogFlags", + "type": "ImGuiDebugLogFlags" + }, + { + "name": "DebugLogBuf", + "type": "ImGuiTextBuffer" + }, + { + "name": "DebugLogIndex", + "type": "ImGuiTextIndex" + }, + { + "name": "DebugLocateFrames", + "type": "ImU8" + }, + { + "name": "DebugItemPickerActive", + "type": "bool" + }, + { + "name": "DebugItemPickerMouseButton", + "type": "ImU8" + }, + { + "name": "DebugItemPickerBreakId", + "type": "ImGuiID" + }, + { + "name": "DebugMetricsConfig", + "type": "ImGuiMetricsConfig" + }, + { + "name": "DebugStackTool", + "type": "ImGuiStackTool" + }, + { + "name": "DebugHoveredDockNode", + "type": "ImGuiDockNode*" + }, + { + "name": "FramerateSecPerFrame[60]", + "size": 60, + "type": "float" + }, + { + "name": "FramerateSecPerFrameIdx", + "type": "int" + }, + { + "name": "FramerateSecPerFrameCount", + "type": "int" + }, + { + "name": "FramerateSecPerFrameAccum", + "type": "float" + }, + { + "name": "WantCaptureMouseNextFrame", + "type": "int" + }, + { + "name": "WantCaptureKeyboardNextFrame", + "type": "int" + }, + { + "name": "WantTextInputNextFrame", + "type": "int" + }, + { + "name": "TempBuffer", + "template_type": "char", + "type": "ImVector_char" + } + ], + "ImGuiContextHook": [ + { + "name": "HookId", + "type": "ImGuiID" + }, + { + "name": "Type", + "type": "ImGuiContextHookType" + }, + { + "name": "Owner", + "type": "ImGuiID" + }, + { + "name": "Callback", + "type": "ImGuiContextHookCallback" + }, + { + "name": "UserData", + "type": "void*" + } + ], + "ImGuiDataTypeInfo": [ + { + "name": "Size", + "type": "size_t" + }, + { + "name": "Name", + "type": "const char*" + }, + { + "name": "PrintFmt", + "type": "const char*" + }, + { + "name": "ScanFmt", + "type": "const char*" + } + ], + "ImGuiDataTypeTempStorage": [ + { + "name": "Data[8]", + "size": 8, + "type": "ImU8" + } + ], + "ImGuiDockContext": [ + { + "name": "Nodes", + "type": "ImGuiStorage" + }, + { + "name": "Requests", + "template_type": "ImGuiDockRequest", + "type": "ImVector_ImGuiDockRequest" + }, + { + "name": "NodesSettings", + "template_type": "ImGuiDockNodeSettings", + "type": "ImVector_ImGuiDockNodeSettings" + }, + { + "name": "WantFullRebuild", + "type": "bool" + } + ], + "ImGuiDockNode": [ + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "SharedFlags", + "type": "ImGuiDockNodeFlags" + }, + { + "name": "LocalFlags", + "type": "ImGuiDockNodeFlags" + }, + { + "name": "LocalFlagsInWindows", + "type": "ImGuiDockNodeFlags" + }, + { + "name": "MergedFlags", + "type": "ImGuiDockNodeFlags" + }, + { + "name": "State", + "type": "ImGuiDockNodeState" + }, + { + "name": "ParentNode", + "type": "ImGuiDockNode*" + }, + { + "name": "ChildNodes[2]", + "size": 2, + "type": "ImGuiDockNode*" + }, + { + "name": "Windows", + "template_type": "ImGuiWindow*", + "type": "ImVector_ImGuiWindowPtr" + }, + { + "name": "TabBar", + "type": "ImGuiTabBar*" + }, + { + "name": "Pos", + "type": "ImVec2" + }, + { + "name": "Size", + "type": "ImVec2" + }, + { + "name": "SizeRef", + "type": "ImVec2" + }, + { + "name": "SplitAxis", + "type": "ImGuiAxis" + }, + { + "name": "WindowClass", + "type": "ImGuiWindowClass" + }, + { + "name": "LastBgColor", + "type": "ImU32" + }, + { + "name": "HostWindow", + "type": "ImGuiWindow*" + }, + { + "name": "VisibleWindow", + "type": "ImGuiWindow*" + }, + { + "name": "CentralNode", + "type": "ImGuiDockNode*" + }, + { + "name": "OnlyNodeWithWindows", + "type": "ImGuiDockNode*" + }, + { + "name": "CountNodeWithWindows", + "type": "int" + }, + { + "name": "LastFrameAlive", + "type": "int" + }, + { + "name": "LastFrameActive", + "type": "int" + }, + { + "name": "LastFrameFocused", + "type": "int" + }, + { + "name": "LastFocusedNodeId", + "type": "ImGuiID" + }, + { + "name": "SelectedTabId", + "type": "ImGuiID" + }, + { + "name": "WantCloseTabId", + "type": "ImGuiID" + }, + { + "bitfield": "3", + "name": "AuthorityForPos", + "type": "ImGuiDataAuthority" + }, + { + "bitfield": "3", + "name": "AuthorityForSize", + "type": "ImGuiDataAuthority" + }, + { + "bitfield": "3", + "name": "AuthorityForViewport", + "type": "ImGuiDataAuthority" + }, + { + "bitfield": "1", + "name": "IsVisible", + "type": "bool" + }, + { + "bitfield": "1", + "name": "IsFocused", + "type": "bool" + }, + { + "bitfield": "1", + "name": "IsBgDrawnThisFrame", + "type": "bool" + }, + { + "bitfield": "1", + "name": "HasCloseButton", + "type": "bool" + }, + { + "bitfield": "1", + "name": "HasWindowMenuButton", + "type": "bool" + }, + { + "bitfield": "1", + "name": "HasCentralNodeChild", + "type": "bool" + }, + { + "bitfield": "1", + "name": "WantCloseAll", + "type": "bool" + }, + { + "bitfield": "1", + "name": "WantLockSizeOnce", + "type": "bool" + }, + { + "bitfield": "1", + "name": "WantMouseMove", + "type": "bool" + }, + { + "bitfield": "1", + "name": "WantHiddenTabBarUpdate", + "type": "bool" + }, + { + "bitfield": "1", + "name": "WantHiddenTabBarToggle", + "type": "bool" + } + ], + "ImGuiGroupData": [ + { + "name": "WindowID", + "type": "ImGuiID" + }, + { + "name": "BackupCursorPos", + "type": "ImVec2" + }, + { + "name": "BackupCursorMaxPos", + "type": "ImVec2" + }, + { + "name": "BackupIndent", + "type": "ImVec1" + }, + { + "name": "BackupGroupOffset", + "type": "ImVec1" + }, + { + "name": "BackupCurrLineSize", + "type": "ImVec2" + }, + { + "name": "BackupCurrLineTextBaseOffset", + "type": "float" + }, + { + "name": "BackupActiveIdIsAlive", + "type": "ImGuiID" + }, + { + "name": "BackupActiveIdPreviousFrameIsAlive", + "type": "bool" + }, + { + "name": "BackupHoveredIdIsAlive", + "type": "bool" + }, + { + "name": "EmitItem", + "type": "bool" + } + ], + "ImGuiIO": [ + { + "name": "ConfigFlags", + "type": "ImGuiConfigFlags" + }, + { + "name": "BackendFlags", + "type": "ImGuiBackendFlags" + }, + { + "name": "DisplaySize", + "type": "ImVec2" + }, + { + "name": "DeltaTime", + "type": "float" + }, + { + "name": "IniSavingRate", + "type": "float" + }, + { + "name": "IniFilename", + "type": "const char*" + }, + { + "name": "LogFilename", + "type": "const char*" + }, + { + "name": "MouseDoubleClickTime", + "type": "float" + }, + { + "name": "MouseDoubleClickMaxDist", + "type": "float" + }, + { + "name": "MouseDragThreshold", + "type": "float" + }, + { + "name": "KeyRepeatDelay", + "type": "float" + }, + { + "name": "KeyRepeatRate", + "type": "float" + }, + { + "name": "HoverDelayNormal", + "type": "float" + }, + { + "name": "HoverDelayShort", + "type": "float" + }, + { + "name": "UserData", + "type": "void*" + }, + { + "name": "Fonts", + "type": "ImFontAtlas*" + }, + { + "name": "FontGlobalScale", + "type": "float" + }, + { + "name": "FontAllowUserScaling", + "type": "bool" + }, + { + "name": "FontDefault", + "type": "ImFont*" + }, + { + "name": "DisplayFramebufferScale", + "type": "ImVec2" + }, + { + "name": "ConfigDockingNoSplit", + "type": "bool" + }, + { + "name": "ConfigDockingWithShift", + "type": "bool" + }, + { + "name": "ConfigDockingAlwaysTabBar", + "type": "bool" + }, + { + "name": "ConfigDockingTransparentPayload", + "type": "bool" + }, + { + "name": "ConfigViewportsNoAutoMerge", + "type": "bool" + }, + { + "name": "ConfigViewportsNoTaskBarIcon", + "type": "bool" + }, + { + "name": "ConfigViewportsNoDecoration", + "type": "bool" + }, + { + "name": "ConfigViewportsNoDefaultParent", + "type": "bool" + }, + { + "name": "MouseDrawCursor", + "type": "bool" + }, + { + "name": "ConfigMacOSXBehaviors", + "type": "bool" + }, + { + "name": "ConfigInputTrickleEventQueue", + "type": "bool" + }, + { + "name": "ConfigInputTextCursorBlink", + "type": "bool" + }, + { + "name": "ConfigInputTextEnterKeepActive", + "type": "bool" + }, + { + "name": "ConfigDragClickToInputText", + "type": "bool" + }, + { + "name": "ConfigWindowsResizeFromEdges", + "type": "bool" + }, + { + "name": "ConfigWindowsMoveFromTitleBarOnly", + "type": "bool" + }, + { + "name": "ConfigMemoryCompactTimer", + "type": "float" + }, + { + "name": "BackendPlatformName", + "type": "const char*" + }, + { + "name": "BackendRendererName", + "type": "const char*" + }, + { + "name": "BackendPlatformUserData", + "type": "void*" + }, + { + "name": "BackendRendererUserData", + "type": "void*" + }, + { + "name": "BackendLanguageUserData", + "type": "void*" + }, + { + "name": "GetClipboardTextFn", + "type": "const char*(*)(void* user_data)" + }, + { + "name": "SetClipboardTextFn", + "type": "void(*)(void* user_data,const char* text)" + }, + { + "name": "ClipboardUserData", + "type": "void*" + }, + { + "name": "SetPlatformImeDataFn", + "type": "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" + }, + { + "name": "_UnusedPadding", + "type": "void*" + }, + { + "name": "WantCaptureMouse", + "type": "bool" + }, + { + "name": "WantCaptureKeyboard", + "type": "bool" + }, + { + "name": "WantTextInput", + "type": "bool" + }, + { + "name": "WantSetMousePos", + "type": "bool" + }, + { + "name": "WantSaveIniSettings", + "type": "bool" + }, + { + "name": "NavActive", + "type": "bool" + }, + { + "name": "NavVisible", + "type": "bool" + }, + { + "name": "Framerate", + "type": "float" + }, + { + "name": "MetricsRenderVertices", + "type": "int" + }, + { + "name": "MetricsRenderIndices", + "type": "int" + }, + { + "name": "MetricsRenderWindows", + "type": "int" + }, + { + "name": "MetricsActiveWindows", + "type": "int" + }, + { + "name": "MetricsActiveAllocations", + "type": "int" + }, + { + "name": "MouseDelta", + "type": "ImVec2" + }, + { + "name": "KeyMap[ImGuiKey_COUNT]", + "size": 652, + "type": "int" + }, + { + "name": "KeysDown[ImGuiKey_COUNT]", + "size": 652, + "type": "bool" + }, + { + "name": "NavInputs[ImGuiNavInput_COUNT]", + "size": 16, + "type": "float" + }, + { + "name": "MousePos", + "type": "ImVec2" + }, + { + "name": "MouseDown[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseWheel", + "type": "float" + }, + { + "name": "MouseWheelH", + "type": "float" + }, + { + "name": "MouseHoveredViewport", + "type": "ImGuiID" + }, + { + "name": "KeyCtrl", + "type": "bool" + }, + { + "name": "KeyShift", + "type": "bool" + }, + { + "name": "KeyAlt", + "type": "bool" + }, + { + "name": "KeySuper", + "type": "bool" + }, + { + "name": "KeyMods", + "type": "ImGuiKeyChord" + }, + { + "name": "KeysData[ImGuiKey_KeysData_SIZE]", + "size": 652, + "type": "ImGuiKeyData" + }, + { + "name": "WantCaptureMouseUnlessPopupClose", + "type": "bool" + }, + { + "name": "MousePosPrev", + "type": "ImVec2" + }, + { + "name": "MouseClickedPos[5]", + "size": 5, + "type": "ImVec2" + }, + { + "name": "MouseClickedTime[5]", + "size": 5, + "type": "double" + }, + { + "name": "MouseClicked[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDoubleClicked[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseClickedCount[5]", + "size": 5, + "type": "ImU16" + }, + { + "name": "MouseClickedLastCount[5]", + "size": 5, + "type": "ImU16" + }, + { + "name": "MouseReleased[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDownOwned[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDownOwnedUnlessPopupClose[5]", + "size": 5, + "type": "bool" + }, + { + "name": "MouseDownDuration[5]", + "size": 5, + "type": "float" + }, + { + "name": "MouseDownDurationPrev[5]", + "size": 5, + "type": "float" + }, + { + "name": "MouseDragMaxDistanceAbs[5]", + "size": 5, + "type": "ImVec2" + }, + { + "name": "MouseDragMaxDistanceSqr[5]", + "size": 5, + "type": "float" + }, + { + "name": "PenPressure", + "type": "float" + }, + { + "name": "AppFocusLost", + "type": "bool" + }, + { + "name": "AppAcceptingEvents", + "type": "bool" + }, + { + "name": "BackendUsingLegacyKeyArrays", + "type": "ImS8" + }, + { + "name": "BackendUsingLegacyNavInputArray", + "type": "bool" + }, + { + "name": "InputQueueSurrogate", + "type": "ImWchar16" + }, + { + "name": "InputQueueCharacters", + "template_type": "ImWchar", + "type": "ImVector_ImWchar" + } + ], + "ImGuiInputEvent": [ + { + "name": "Type", + "type": "ImGuiInputEventType" + }, + { + "name": "Source", + "type": "ImGuiInputSource" + }, + { + "name": "", + "type": "union { ImGuiInputEventMousePos MousePos; ImGuiInputEventMouseWheel MouseWheel; ImGuiInputEventMouseButton MouseButton; ImGuiInputEventMouseViewport MouseViewport; ImGuiInputEventKey Key; ImGuiInputEventText Text; ImGuiInputEventAppFocused AppFocused;}" + }, + { + "name": "AddedByTestEngine", + "type": "bool" + } + ], + "ImGuiInputEventAppFocused": [ + { + "name": "Focused", + "type": "bool" + } + ], + "ImGuiInputEventKey": [ + { + "name": "Key", + "type": "ImGuiKey" + }, + { + "name": "Down", + "type": "bool" + }, + { + "name": "AnalogValue", + "type": "float" + } + ], + "ImGuiInputEventMouseButton": [ + { + "name": "Button", + "type": "int" + }, + { + "name": "Down", + "type": "bool" + } + ], + "ImGuiInputEventMousePos": [ + { + "name": "PosX", + "type": "float" + }, + { + "name": "PosY", + "type": "float" + } + ], + "ImGuiInputEventMouseViewport": [ + { + "name": "HoveredViewportID", + "type": "ImGuiID" + } + ], + "ImGuiInputEventMouseWheel": [ + { + "name": "WheelX", + "type": "float" + }, + { + "name": "WheelY", + "type": "float" + } + ], + "ImGuiInputEventText": [ + { + "name": "Char", + "type": "unsigned int" + } + ], + "ImGuiInputTextCallbackData": [ + { + "name": "EventFlag", + "type": "ImGuiInputTextFlags" + }, + { + "name": "Flags", + "type": "ImGuiInputTextFlags" + }, + { + "name": "UserData", + "type": "void*" + }, + { + "name": "EventChar", + "type": "ImWchar" + }, + { + "name": "EventKey", + "type": "ImGuiKey" + }, + { + "name": "Buf", + "type": "char*" + }, + { + "name": "BufTextLen", + "type": "int" + }, + { + "name": "BufSize", + "type": "int" + }, + { + "name": "BufDirty", + "type": "bool" + }, + { + "name": "CursorPos", + "type": "int" + }, + { + "name": "SelectionStart", + "type": "int" + }, + { + "name": "SelectionEnd", + "type": "int" + } + ], + "ImGuiInputTextState": [ + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "CurLenW", + "type": "int" + }, + { + "name": "CurLenA", + "type": "int" + }, + { + "name": "TextW", + "template_type": "ImWchar", + "type": "ImVector_ImWchar" + }, + { + "name": "TextA", + "template_type": "char", + "type": "ImVector_char" + }, + { + "name": "InitialTextA", + "template_type": "char", + "type": "ImVector_char" + }, + { + "name": "TextAIsValid", + "type": "bool" + }, + { + "name": "BufCapacityA", + "type": "int" + }, + { + "name": "ScrollX", + "type": "float" + }, + { + "name": "Stb", + "type": "STB_TexteditState" + }, + { + "name": "CursorAnim", + "type": "float" + }, + { + "name": "CursorFollow", + "type": "bool" + }, + { + "name": "SelectedAllMouseLock", + "type": "bool" + }, + { + "name": "Edited", + "type": "bool" + }, + { + "name": "Flags", + "type": "ImGuiInputTextFlags" + } + ], + "ImGuiKeyData": [ + { + "name": "Down", + "type": "bool" + }, + { + "name": "DownDuration", + "type": "float" + }, + { + "name": "DownDurationPrev", + "type": "float" + }, + { + "name": "AnalogValue", + "type": "float" + } + ], + "ImGuiKeyOwnerData": [ + { + "name": "OwnerCurr", + "type": "ImGuiID" + }, + { + "name": "OwnerNext", + "type": "ImGuiID" + }, + { + "name": "LockThisFrame", + "type": "bool" + }, + { + "name": "LockUntilRelease", + "type": "bool" + } + ], + "ImGuiKeyRoutingData": [ + { + "name": "NextEntryIndex", + "type": "ImGuiKeyRoutingIndex" + }, + { + "name": "Mods", + "type": "ImU16" + }, + { + "name": "RoutingNextScore", + "type": "ImU8" + }, + { + "name": "RoutingCurr", + "type": "ImGuiID" + }, + { + "name": "RoutingNext", + "type": "ImGuiID" + } + ], + "ImGuiKeyRoutingTable": [ + { + "name": "Index[ImGuiKey_NamedKey_COUNT]", + "size": 140, + "type": "ImGuiKeyRoutingIndex" + }, + { + "name": "Entries", + "template_type": "ImGuiKeyRoutingData", + "type": "ImVector_ImGuiKeyRoutingData" + }, + { + "name": "EntriesNext", + "template_type": "ImGuiKeyRoutingData", + "type": "ImVector_ImGuiKeyRoutingData" + } + ], + "ImGuiLastItemData": [ + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "InFlags", + "type": "ImGuiItemFlags" + }, + { + "name": "StatusFlags", + "type": "ImGuiItemStatusFlags" + }, + { + "name": "Rect", + "type": "ImRect" + }, + { + "name": "NavRect", + "type": "ImRect" + }, + { + "name": "DisplayRect", + "type": "ImRect" + } + ], + "ImGuiListClipper": [ + { + "name": "DisplayStart", + "type": "int" + }, + { + "name": "DisplayEnd", + "type": "int" + }, + { + "name": "ItemsCount", + "type": "int" + }, + { + "name": "ItemsHeight", + "type": "float" + }, + { + "name": "StartPosY", + "type": "float" + }, + { + "name": "TempData", + "type": "void*" + } + ], + "ImGuiListClipperData": [ + { + "name": "ListClipper", + "type": "ImGuiListClipper*" + }, + { + "name": "LossynessOffset", + "type": "float" + }, + { + "name": "StepNo", + "type": "int" + }, + { + "name": "ItemsFrozen", + "type": "int" + }, + { + "name": "Ranges", + "template_type": "ImGuiListClipperRange", + "type": "ImVector_ImGuiListClipperRange" + } + ], + "ImGuiListClipperRange": [ + { + "name": "Min", + "type": "int" + }, + { + "name": "Max", + "type": "int" + }, + { + "name": "PosToIndexConvert", + "type": "bool" + }, + { + "name": "PosToIndexOffsetMin", + "type": "ImS8" + }, + { + "name": "PosToIndexOffsetMax", + "type": "ImS8" + } + ], + "ImGuiLocEntry": [ + { + "name": "Key", + "type": "ImGuiLocKey" + }, + { + "name": "Text", + "type": "const char*" + } + ], + "ImGuiMenuColumns": [ + { + "name": "TotalWidth", + "type": "ImU32" + }, + { + "name": "NextTotalWidth", + "type": "ImU32" + }, + { + "name": "Spacing", + "type": "ImU16" + }, + { + "name": "OffsetIcon", + "type": "ImU16" + }, + { + "name": "OffsetLabel", + "type": "ImU16" + }, + { + "name": "OffsetShortcut", + "type": "ImU16" + }, + { + "name": "OffsetMark", + "type": "ImU16" + }, + { + "name": "Widths[4]", + "size": 4, + "type": "ImU16" + } + ], + "ImGuiMetricsConfig": [ + { + "name": "ShowDebugLog", + "type": "bool" + }, + { + "name": "ShowStackTool", + "type": "bool" + }, + { + "name": "ShowWindowsRects", + "type": "bool" + }, + { + "name": "ShowWindowsBeginOrder", + "type": "bool" + }, + { + "name": "ShowTablesRects", + "type": "bool" + }, + { + "name": "ShowDrawCmdMesh", + "type": "bool" + }, + { + "name": "ShowDrawCmdBoundingBoxes", + "type": "bool" + }, + { + "name": "ShowDockingNodes", + "type": "bool" + }, + { + "name": "ShowWindowsRectsType", + "type": "int" + }, + { + "name": "ShowTablesRectsType", + "type": "int" + } + ], + "ImGuiNavItemData": [ + { + "name": "Window", + "type": "ImGuiWindow*" + }, + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "FocusScopeId", + "type": "ImGuiID" + }, + { + "name": "RectRel", + "type": "ImRect" + }, + { + "name": "InFlags", + "type": "ImGuiItemFlags" + }, + { + "name": "DistBox", + "type": "float" + }, + { + "name": "DistCenter", + "type": "float" + }, + { + "name": "DistAxial", + "type": "float" + } + ], + "ImGuiNextItemData": [ + { + "name": "Flags", + "type": "ImGuiNextItemDataFlags" + }, + { + "name": "Width", + "type": "float" + }, + { + "name": "FocusScopeId", + "type": "ImGuiID" + }, + { + "name": "OpenCond", + "type": "ImGuiCond" + }, + { + "name": "OpenVal", + "type": "bool" + } + ], + "ImGuiNextWindowData": [ + { + "name": "Flags", + "type": "ImGuiNextWindowDataFlags" + }, + { + "name": "PosCond", + "type": "ImGuiCond" + }, + { + "name": "SizeCond", + "type": "ImGuiCond" + }, + { + "name": "CollapsedCond", + "type": "ImGuiCond" + }, + { + "name": "DockCond", + "type": "ImGuiCond" + }, + { + "name": "PosVal", + "type": "ImVec2" + }, + { + "name": "PosPivotVal", + "type": "ImVec2" + }, + { + "name": "SizeVal", + "type": "ImVec2" + }, + { + "name": "ContentSizeVal", + "type": "ImVec2" + }, + { + "name": "ScrollVal", + "type": "ImVec2" + }, + { + "name": "PosUndock", + "type": "bool" + }, + { + "name": "CollapsedVal", + "type": "bool" + }, + { + "name": "SizeConstraintRect", + "type": "ImRect" + }, + { + "name": "SizeCallback", + "type": "ImGuiSizeCallback" + }, + { + "name": "SizeCallbackUserData", + "type": "void*" + }, + { + "name": "BgAlphaVal", + "type": "float" + }, + { + "name": "ViewportId", + "type": "ImGuiID" + }, + { + "name": "DockId", + "type": "ImGuiID" + }, + { + "name": "WindowClass", + "type": "ImGuiWindowClass" + }, + { + "name": "MenuBarOffsetMinVal", + "type": "ImVec2" + } + ], + "ImGuiOldColumnData": [ + { + "name": "OffsetNorm", + "type": "float" + }, + { + "name": "OffsetNormBeforeResize", + "type": "float" + }, + { + "name": "Flags", + "type": "ImGuiOldColumnFlags" + }, + { + "name": "ClipRect", + "type": "ImRect" + } + ], + "ImGuiOldColumns": [ + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "Flags", + "type": "ImGuiOldColumnFlags" + }, + { + "name": "IsFirstFrame", + "type": "bool" + }, + { + "name": "IsBeingResized", + "type": "bool" + }, + { + "name": "Current", + "type": "int" + }, + { + "name": "Count", + "type": "int" + }, + { + "name": "OffMinX", + "type": "float" + }, + { + "name": "OffMaxX", + "type": "float" + }, + { + "name": "LineMinY", + "type": "float" + }, + { + "name": "LineMaxY", + "type": "float" + }, + { + "name": "HostCursorPosY", + "type": "float" + }, + { + "name": "HostCursorMaxPosX", + "type": "float" + }, + { + "name": "HostInitialClipRect", + "type": "ImRect" + }, + { + "name": "HostBackupClipRect", + "type": "ImRect" + }, + { + "name": "HostBackupParentWorkRect", + "type": "ImRect" + }, + { + "name": "Columns", + "template_type": "ImGuiOldColumnData", + "type": "ImVector_ImGuiOldColumnData" + }, + { + "name": "Splitter", + "type": "ImDrawListSplitter" + } + ], + "ImGuiOnceUponAFrame": [ + { + "name": "RefFrame", + "type": "int" + } + ], + "ImGuiPayload": [ + { + "name": "Data", + "type": "void*" + }, + { + "name": "DataSize", + "type": "int" + }, + { + "name": "SourceId", + "type": "ImGuiID" + }, + { + "name": "SourceParentId", + "type": "ImGuiID" + }, + { + "name": "DataFrameCount", + "type": "int" + }, + { + "name": "DataType[32+1]", + "size": 33, + "type": "char" + }, + { + "name": "Preview", + "type": "bool" + }, + { + "name": "Delivery", + "type": "bool" + } + ], + "ImGuiPlatformIO": [ + { + "name": "Platform_CreateWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_DestroyWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_ShowWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_SetWindowPos", + "type": "void(*)(ImGuiViewport* vp,ImVec2 pos)" + }, + { + "name": "Platform_GetWindowPos", + "type": "ImVec2(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_SetWindowSize", + "type": "void(*)(ImGuiViewport* vp,ImVec2 size)" + }, + { + "name": "Platform_GetWindowSize", + "type": "ImVec2(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_SetWindowFocus", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_GetWindowFocus", + "type": "bool(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_GetWindowMinimized", + "type": "bool(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_SetWindowTitle", + "type": "void(*)(ImGuiViewport* vp,const char* str)" + }, + { + "name": "Platform_SetWindowAlpha", + "type": "void(*)(ImGuiViewport* vp,float alpha)" + }, + { + "name": "Platform_UpdateWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_RenderWindow", + "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + }, + { + "name": "Platform_SwapBuffers", + "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + }, + { + "name": "Platform_GetWindowDpiScale", + "type": "float(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_OnChangedViewport", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Platform_CreateVkSurface", + "type": "int(*)(ImGuiViewport* vp,ImU64 vk_inst,const void* vk_allocators,ImU64* out_vk_surface)" + }, + { + "name": "Renderer_CreateWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Renderer_DestroyWindow", + "type": "void(*)(ImGuiViewport* vp)" + }, + { + "name": "Renderer_SetWindowSize", + "type": "void(*)(ImGuiViewport* vp,ImVec2 size)" + }, + { + "name": "Renderer_RenderWindow", + "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + }, + { + "name": "Renderer_SwapBuffers", + "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + }, + { + "name": "Monitors", + "template_type": "ImGuiPlatformMonitor", + "type": "ImVector_ImGuiPlatformMonitor" + }, + { + "name": "Viewports", + "template_type": "ImGuiViewport*", + "type": "ImVector_ImGuiViewportPtr" + } + ], + "ImGuiPlatformImeData": [ + { + "name": "WantVisible", + "type": "bool" + }, + { + "name": "InputPos", + "type": "ImVec2" + }, + { + "name": "InputLineHeight", + "type": "float" + } + ], + "ImGuiPlatformMonitor": [ + { + "name": "MainPos", + "type": "ImVec2" + }, + { + "name": "MainSize", + "type": "ImVec2" + }, + { + "name": "WorkPos", + "type": "ImVec2" + }, + { + "name": "WorkSize", + "type": "ImVec2" + }, + { + "name": "DpiScale", + "type": "float" + } + ], + "ImGuiPopupData": [ + { + "name": "PopupId", + "type": "ImGuiID" + }, + { + "name": "Window", + "type": "ImGuiWindow*" + }, + { + "name": "BackupNavWindow", + "type": "ImGuiWindow*" + }, + { + "name": "ParentNavLayer", + "type": "int" + }, + { + "name": "OpenFrameCount", + "type": "int" + }, + { + "name": "OpenParentId", + "type": "ImGuiID" + }, + { + "name": "OpenPopupPos", + "type": "ImVec2" + }, + { + "name": "OpenMousePos", + "type": "ImVec2" + } + ], + "ImGuiPtrOrIndex": [ + { + "name": "Ptr", + "type": "void*" + }, + { + "name": "Index", + "type": "int" + } + ], + "ImGuiSettingsHandler": [ + { + "name": "TypeName", + "type": "const char*" + }, + { + "name": "TypeHash", + "type": "ImGuiID" + }, + { + "name": "ClearAllFn", + "type": "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler)" + }, + { + "name": "ReadInitFn", + "type": "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler)" + }, + { + "name": "ReadOpenFn", + "type": "void*(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler,const char* name)" + }, + { + "name": "ReadLineFn", + "type": "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler,void* entry,const char* line)" + }, + { + "name": "ApplyAllFn", + "type": "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler)" + }, + { + "name": "WriteAllFn", + "type": "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler,ImGuiTextBuffer* out_buf)" + }, + { + "name": "UserData", + "type": "void*" + } + ], + "ImGuiShrinkWidthItem": [ + { + "name": "Index", + "type": "int" + }, + { + "name": "Width", + "type": "float" + }, + { + "name": "InitialWidth", + "type": "float" + } + ], + "ImGuiSizeCallbackData": [ + { + "name": "UserData", + "type": "void*" + }, + { + "name": "Pos", + "type": "ImVec2" + }, + { + "name": "CurrentSize", + "type": "ImVec2" + }, + { + "name": "DesiredSize", + "type": "ImVec2" + } + ], + "ImGuiStackLevelInfo": [ + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "QueryFrameCount", + "type": "ImS8" + }, + { + "name": "QuerySuccess", + "type": "bool" + }, + { + "bitfield": "8", + "name": "DataType", + "type": "ImGuiDataType" + }, + { + "name": "Desc[57]", + "size": 57, + "type": "char" + } + ], + "ImGuiStackSizes": [ + { + "name": "SizeOfIDStack", + "type": "short" + }, + { + "name": "SizeOfColorStack", + "type": "short" + }, + { + "name": "SizeOfStyleVarStack", + "type": "short" + }, + { + "name": "SizeOfFontStack", + "type": "short" + }, + { + "name": "SizeOfFocusScopeStack", + "type": "short" + }, + { + "name": "SizeOfGroupStack", + "type": "short" + }, + { + "name": "SizeOfItemFlagsStack", + "type": "short" + }, + { + "name": "SizeOfBeginPopupStack", + "type": "short" + }, + { + "name": "SizeOfDisabledStack", + "type": "short" + } + ], + "ImGuiStackTool": [ + { + "name": "LastActiveFrame", + "type": "int" + }, + { + "name": "StackLevel", + "type": "int" + }, + { + "name": "QueryId", + "type": "ImGuiID" + }, + { + "name": "Results", + "template_type": "ImGuiStackLevelInfo", + "type": "ImVector_ImGuiStackLevelInfo" + }, + { + "name": "CopyToClipboardOnCtrlC", + "type": "bool" + }, + { + "name": "CopyToClipboardLastTime", + "type": "float" + } + ], + "ImGuiStorage": [ + { + "name": "Data", + "template_type": "ImGuiStoragePair", + "type": "ImVector_ImGuiStoragePair" + } + ], + "ImGuiStoragePair": [ + { + "name": "key", + "type": "ImGuiID" + }, + { + "name": "", + "type": "union { int val_i; float val_f; void* val_p;}" + } + ], + "ImGuiStyle": [ + { + "name": "Alpha", + "type": "float" + }, + { + "name": "DisabledAlpha", + "type": "float" + }, + { + "name": "WindowPadding", + "type": "ImVec2" + }, + { + "name": "WindowRounding", + "type": "float" + }, + { + "name": "WindowBorderSize", + "type": "float" + }, + { + "name": "WindowMinSize", + "type": "ImVec2" + }, + { + "name": "WindowTitleAlign", + "type": "ImVec2" + }, + { + "name": "WindowMenuButtonPosition", + "type": "ImGuiDir" + }, + { + "name": "ChildRounding", + "type": "float" + }, + { + "name": "ChildBorderSize", + "type": "float" + }, + { + "name": "PopupRounding", + "type": "float" + }, + { + "name": "PopupBorderSize", + "type": "float" + }, + { + "name": "FramePadding", + "type": "ImVec2" + }, + { + "name": "FrameRounding", + "type": "float" + }, + { + "name": "FrameBorderSize", + "type": "float" + }, + { + "name": "ItemSpacing", + "type": "ImVec2" + }, + { + "name": "ItemInnerSpacing", + "type": "ImVec2" + }, + { + "name": "CellPadding", + "type": "ImVec2" + }, + { + "name": "TouchExtraPadding", + "type": "ImVec2" + }, + { + "name": "IndentSpacing", + "type": "float" + }, + { + "name": "ColumnsMinSpacing", + "type": "float" + }, + { + "name": "ScrollbarSize", + "type": "float" + }, + { + "name": "ScrollbarRounding", + "type": "float" + }, + { + "name": "GrabMinSize", + "type": "float" + }, + { + "name": "GrabRounding", + "type": "float" + }, + { + "name": "LogSliderDeadzone", + "type": "float" + }, + { + "name": "TabRounding", + "type": "float" + }, + { + "name": "TabBorderSize", + "type": "float" + }, + { + "name": "TabMinWidthForCloseButton", + "type": "float" + }, + { + "name": "ColorButtonPosition", + "type": "ImGuiDir" + }, + { + "name": "ButtonTextAlign", + "type": "ImVec2" + }, + { + "name": "SelectableTextAlign", + "type": "ImVec2" + }, + { + "name": "DisplayWindowPadding", + "type": "ImVec2" + }, + { + "name": "DisplaySafeAreaPadding", + "type": "ImVec2" + }, + { + "name": "MouseCursorScale", + "type": "float" + }, + { + "name": "AntiAliasedLines", + "type": "bool" + }, + { + "name": "AntiAliasedLinesUseTex", + "type": "bool" + }, + { + "name": "AntiAliasedFill", + "type": "bool" + }, + { + "name": "CurveTessellationTol", + "type": "float" + }, + { + "name": "CircleTessellationMaxError", + "type": "float" + }, + { + "name": "Colors[ImGuiCol_COUNT]", + "size": 55, + "type": "ImVec4" + } + ], + "ImGuiStyleMod": [ + { + "name": "VarIdx", + "type": "ImGuiStyleVar" + }, + { + "name": "", + "type": "union { int BackupInt[2]; float BackupFloat[2];}" + } + ], + "ImGuiTabBar": [ + { + "name": "Tabs", + "template_type": "ImGuiTabItem", + "type": "ImVector_ImGuiTabItem" + }, + { + "name": "Flags", + "type": "ImGuiTabBarFlags" + }, + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "SelectedTabId", + "type": "ImGuiID" + }, + { + "name": "NextSelectedTabId", + "type": "ImGuiID" + }, + { + "name": "VisibleTabId", + "type": "ImGuiID" + }, + { + "name": "CurrFrameVisible", + "type": "int" + }, + { + "name": "PrevFrameVisible", + "type": "int" + }, + { + "name": "BarRect", + "type": "ImRect" + }, + { + "name": "CurrTabsContentsHeight", + "type": "float" + }, + { + "name": "PrevTabsContentsHeight", + "type": "float" + }, + { + "name": "WidthAllTabs", + "type": "float" + }, + { + "name": "WidthAllTabsIdeal", + "type": "float" + }, + { + "name": "ScrollingAnim", + "type": "float" + }, + { + "name": "ScrollingTarget", + "type": "float" + }, + { + "name": "ScrollingTargetDistToVisibility", + "type": "float" + }, + { + "name": "ScrollingSpeed", + "type": "float" + }, + { + "name": "ScrollingRectMinX", + "type": "float" + }, + { + "name": "ScrollingRectMaxX", + "type": "float" + }, + { + "name": "ReorderRequestTabId", + "type": "ImGuiID" + }, + { + "name": "ReorderRequestOffset", + "type": "ImS16" + }, + { + "name": "BeginCount", + "type": "ImS8" + }, + { + "name": "WantLayout", + "type": "bool" + }, + { + "name": "VisibleTabWasSubmitted", + "type": "bool" + }, + { + "name": "TabsAddedNew", + "type": "bool" + }, + { + "name": "TabsActiveCount", + "type": "ImS16" + }, + { + "name": "LastTabItemIdx", + "type": "ImS16" + }, + { + "name": "ItemSpacingY", + "type": "float" + }, + { + "name": "FramePadding", + "type": "ImVec2" + }, + { + "name": "BackupCursorPos", + "type": "ImVec2" + }, + { + "name": "TabsNames", + "type": "ImGuiTextBuffer" + } + ], + "ImGuiTabItem": [ + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "Flags", + "type": "ImGuiTabItemFlags" + }, + { + "name": "Window", + "type": "ImGuiWindow*" + }, + { + "name": "LastFrameVisible", + "type": "int" + }, + { + "name": "LastFrameSelected", + "type": "int" + }, + { + "name": "Offset", + "type": "float" + }, + { + "name": "Width", + "type": "float" + }, + { + "name": "ContentWidth", + "type": "float" + }, + { + "name": "RequestedWidth", + "type": "float" + }, + { + "name": "NameOffset", + "type": "ImS32" + }, + { + "name": "BeginOrder", + "type": "ImS16" + }, + { + "name": "IndexDuringLayout", + "type": "ImS16" + }, + { + "name": "WantClose", + "type": "bool" + } + ], + "ImGuiTable": [ + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "Flags", + "type": "ImGuiTableFlags" + }, + { + "name": "RawData", + "type": "void*" + }, + { + "name": "TempData", + "type": "ImGuiTableTempData*" + }, + { + "name": "Columns", + "template_type": "ImGuiTableColumn", + "type": "ImSpan_ImGuiTableColumn" + }, + { + "name": "DisplayOrderToIndex", + "template_type": "ImGuiTableColumnIdx", + "type": "ImSpan_ImGuiTableColumnIdx" + }, + { + "name": "RowCellData", + "template_type": "ImGuiTableCellData", + "type": "ImSpan_ImGuiTableCellData" + }, + { + "name": "EnabledMaskByDisplayOrder", + "type": "ImU64" + }, + { + "name": "EnabledMaskByIndex", + "type": "ImU64" + }, + { + "name": "VisibleMaskByIndex", + "type": "ImU64" + }, + { + "name": "RequestOutputMaskByIndex", + "type": "ImU64" + }, + { + "name": "SettingsLoadedFlags", + "type": "ImGuiTableFlags" + }, + { + "name": "SettingsOffset", + "type": "int" + }, + { + "name": "LastFrameActive", + "type": "int" + }, + { + "name": "ColumnsCount", + "type": "int" + }, + { + "name": "CurrentRow", + "type": "int" + }, + { + "name": "CurrentColumn", + "type": "int" + }, + { + "name": "InstanceCurrent", + "type": "ImS16" + }, + { + "name": "InstanceInteracted", + "type": "ImS16" + }, + { + "name": "RowPosY1", + "type": "float" + }, + { + "name": "RowPosY2", + "type": "float" + }, + { + "name": "RowMinHeight", + "type": "float" + }, + { + "name": "RowTextBaseline", + "type": "float" + }, + { + "name": "RowIndentOffsetX", + "type": "float" + }, + { + "bitfield": "16", + "name": "RowFlags", + "type": "ImGuiTableRowFlags" + }, + { + "bitfield": "16", + "name": "LastRowFlags", + "type": "ImGuiTableRowFlags" + }, + { + "name": "RowBgColorCounter", + "type": "int" + }, + { + "name": "RowBgColor[2]", + "size": 2, + "type": "ImU32" + }, + { + "name": "BorderColorStrong", + "type": "ImU32" + }, + { + "name": "BorderColorLight", + "type": "ImU32" + }, + { + "name": "BorderX1", + "type": "float" + }, + { + "name": "BorderX2", + "type": "float" + }, + { + "name": "HostIndentX", + "type": "float" + }, + { + "name": "MinColumnWidth", + "type": "float" + }, + { + "name": "OuterPaddingX", + "type": "float" + }, + { + "name": "CellPaddingX", + "type": "float" + }, + { + "name": "CellPaddingY", + "type": "float" + }, + { + "name": "CellSpacingX1", + "type": "float" + }, + { + "name": "CellSpacingX2", + "type": "float" + }, + { + "name": "InnerWidth", + "type": "float" + }, + { + "name": "ColumnsGivenWidth", + "type": "float" + }, + { + "name": "ColumnsAutoFitWidth", + "type": "float" + }, { - "name": "Value", - "type": "ImVec4" - } - ], - "ImDrawChannel": [ + "name": "ColumnsStretchSumWeights", + "type": "float" + }, { - "name": "_CmdBuffer", - "template_type": "ImDrawCmd", - "type": "ImVector_ImDrawCmd" + "name": "ResizedColumnNextWidth", + "type": "float" }, { - "name": "_IdxBuffer", - "template_type": "ImDrawIdx", - "type": "ImVector_ImDrawIdx" - } - ], - "ImDrawCmd": [ + "name": "ResizeLockMinContentsX2", + "type": "float" + }, { - "name": "ClipRect", - "type": "ImVec4" + "name": "RefScale", + "type": "float" }, { - "name": "TextureId", - "type": "ImTextureID" + "name": "OuterRect", + "type": "ImRect" }, { - "name": "VtxOffset", - "type": "unsigned int" + "name": "InnerRect", + "type": "ImRect" }, { - "name": "IdxOffset", - "type": "unsigned int" + "name": "WorkRect", + "type": "ImRect" }, { - "name": "ElemCount", - "type": "unsigned int" + "name": "InnerClipRect", + "type": "ImRect" }, { - "name": "UserCallback", - "type": "ImDrawCallback" + "name": "BgClipRect", + "type": "ImRect" }, { - "name": "UserCallbackData", - "type": "void*" - } - ], - "ImDrawCmdHeader": [ + "name": "Bg0ClipRectForDrawCmd", + "type": "ImRect" + }, { - "name": "ClipRect", - "type": "ImVec4" + "name": "Bg2ClipRectForDrawCmd", + "type": "ImRect" }, { - "name": "TextureId", - "type": "ImTextureID" + "name": "HostClipRect", + "type": "ImRect" }, { - "name": "VtxOffset", - "type": "unsigned int" - } - ], - "ImDrawData": [ + "name": "HostBackupInnerClipRect", + "type": "ImRect" + }, { - "name": "Valid", - "type": "bool" + "name": "OuterWindow", + "type": "ImGuiWindow*" }, { - "name": "CmdListsCount", - "type": "int" + "name": "InnerWindow", + "type": "ImGuiWindow*" }, { - "name": "TotalIdxCount", - "type": "int" + "name": "ColumnsNames", + "type": "ImGuiTextBuffer" }, { - "name": "TotalVtxCount", - "type": "int" + "name": "DrawSplitter", + "type": "ImDrawListSplitter*" }, { - "name": "CmdLists", - "type": "ImDrawList**" + "name": "InstanceDataFirst", + "type": "ImGuiTableInstanceData" }, { - "name": "DisplayPos", - "type": "ImVec2" + "name": "InstanceDataExtra", + "template_type": "ImGuiTableInstanceData", + "type": "ImVector_ImGuiTableInstanceData" }, { - "name": "DisplaySize", - "type": "ImVec2" + "name": "SortSpecsSingle", + "type": "ImGuiTableColumnSortSpecs" }, { - "name": "FramebufferScale", - "type": "ImVec2" + "name": "SortSpecsMulti", + "template_type": "ImGuiTableColumnSortSpecs", + "type": "ImVector_ImGuiTableColumnSortSpecs" }, { - "name": "OwnerViewport", - "type": "ImGuiViewport*" - } - ], - "ImDrawList": [ + "name": "SortSpecs", + "type": "ImGuiTableSortSpecs" + }, { - "name": "CmdBuffer", - "template_type": "ImDrawCmd", - "type": "ImVector_ImDrawCmd" + "name": "SortSpecsCount", + "type": "ImGuiTableColumnIdx" }, { - "name": "IdxBuffer", - "template_type": "ImDrawIdx", - "type": "ImVector_ImDrawIdx" + "name": "ColumnsEnabledCount", + "type": "ImGuiTableColumnIdx" }, { - "name": "VtxBuffer", - "template_type": "ImDrawVert", - "type": "ImVector_ImDrawVert" + "name": "ColumnsEnabledFixedCount", + "type": "ImGuiTableColumnIdx" }, { - "name": "Flags", - "type": "ImDrawListFlags" + "name": "DeclColumnsCount", + "type": "ImGuiTableColumnIdx" }, { - "name": "_VtxCurrentIdx", - "type": "unsigned int" + "name": "HoveredColumnBody", + "type": "ImGuiTableColumnIdx" }, { - "name": "_Data", - "type": "ImDrawListSharedData*" + "name": "HoveredColumnBorder", + "type": "ImGuiTableColumnIdx" }, { - "name": "_OwnerName", - "type": "const char*" + "name": "AutoFitSingleColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "_VtxWritePtr", - "type": "ImDrawVert*" + "name": "ResizedColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "_IdxWritePtr", - "type": "ImDrawIdx*" + "name": "LastResizedColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "_ClipRectStack", - "template_type": "ImVec4", - "type": "ImVector_ImVec4" + "name": "HeldHeaderColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "_TextureIdStack", - "template_type": "ImTextureID", - "type": "ImVector_ImTextureID" + "name": "ReorderColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "_Path", - "template_type": "ImVec2", - "type": "ImVector_ImVec2" + "name": "ReorderColumnDir", + "type": "ImGuiTableColumnIdx" }, { - "name": "_CmdHeader", - "type": "ImDrawCmdHeader" + "name": "LeftMostEnabledColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "_Splitter", - "type": "ImDrawListSplitter" + "name": "RightMostEnabledColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "_FringeScale", - "type": "float" - } - ], - "ImDrawListSplitter": [ + "name": "LeftMostStretchedColumn", + "type": "ImGuiTableColumnIdx" + }, { - "name": "_Current", - "type": "int" + "name": "RightMostStretchedColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "_Count", - "type": "int" + "name": "ContextPopupColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "_Channels", - "template_type": "ImDrawChannel", - "type": "ImVector_ImDrawChannel" - } - ], - "ImDrawVert": [ + "name": "FreezeRowsRequest", + "type": "ImGuiTableColumnIdx" + }, { - "name": "pos", - "type": "ImVec2" + "name": "FreezeRowsCount", + "type": "ImGuiTableColumnIdx" }, { - "name": "uv", - "type": "ImVec2" + "name": "FreezeColumnsRequest", + "type": "ImGuiTableColumnIdx" }, { - "name": "col", + "name": "FreezeColumnsCount", + "type": "ImGuiTableColumnIdx" + }, + { + "name": "RowCellDataCurrent", + "type": "ImGuiTableColumnIdx" + }, + { + "name": "DummyDrawChannel", + "type": "ImGuiTableDrawChannelIdx" + }, + { + "name": "Bg2DrawChannelCurrent", + "type": "ImGuiTableDrawChannelIdx" + }, + { + "name": "Bg2DrawChannelUnfrozen", + "type": "ImGuiTableDrawChannelIdx" + }, + { + "name": "IsLayoutLocked", + "type": "bool" + }, + { + "name": "IsInsideRow", + "type": "bool" + }, + { + "name": "IsInitializing", + "type": "bool" + }, + { + "name": "IsSortSpecsDirty", + "type": "bool" + }, + { + "name": "IsUsingHeaders", + "type": "bool" + }, + { + "name": "IsContextPopupOpen", + "type": "bool" + }, + { + "name": "IsSettingsRequestLoad", + "type": "bool" + }, + { + "name": "IsSettingsDirty", + "type": "bool" + }, + { + "name": "IsDefaultDisplayOrder", + "type": "bool" + }, + { + "name": "IsResetAllRequest", + "type": "bool" + }, + { + "name": "IsResetDisplayOrderRequest", + "type": "bool" + }, + { + "name": "IsUnfrozenRows", + "type": "bool" + }, + { + "name": "IsDefaultSizingPolicy", + "type": "bool" + }, + { + "name": "MemoryCompacted", + "type": "bool" + }, + { + "name": "HostSkipItems", + "type": "bool" + } + ], + "ImGuiTableCellData": [ + { + "name": "BgColor", "type": "ImU32" + }, + { + "name": "Column", + "type": "ImGuiTableColumnIdx" } ], - "ImFont": [ + "ImGuiTableColumn": [ { - "name": "IndexAdvanceX", - "template_type": "float", - "type": "ImVector_float" + "name": "Flags", + "type": "ImGuiTableColumnFlags" }, { - "name": "FallbackAdvanceX", + "name": "WidthGiven", "type": "float" }, { - "name": "FontSize", + "name": "MinX", "type": "float" }, { - "name": "IndexLookup", - "template_type": "ImWchar", - "type": "ImVector_ImWchar" + "name": "MaxX", + "type": "float" }, { - "name": "Glyphs", - "template_type": "ImFontGlyph", - "type": "ImVector_ImFontGlyph" + "name": "WidthRequest", + "type": "float" }, { - "name": "FallbackGlyph", - "type": "const ImFontGlyph*" + "name": "WidthAuto", + "type": "float" }, { - "name": "ContainerAtlas", - "type": "ImFontAtlas*" + "name": "StretchWeight", + "type": "float" }, { - "name": "ConfigData", - "type": "const ImFontConfig*" + "name": "InitStretchWeightOrWidth", + "type": "float" }, { - "name": "ConfigDataCount", - "type": "short" + "name": "ClipRect", + "type": "ImRect" }, { - "name": "FallbackChar", - "type": "ImWchar" + "name": "UserID", + "type": "ImGuiID" }, { - "name": "EllipsisChar", - "type": "ImWchar" + "name": "WorkMinX", + "type": "float" }, { - "name": "DotChar", - "type": "ImWchar" + "name": "WorkMaxX", + "type": "float" }, { - "name": "DirtyLookupTables", - "type": "bool" + "name": "ItemWidth", + "type": "float" }, { - "name": "Scale", + "name": "ContentMaxXFrozen", "type": "float" }, { - "name": "Ascent", + "name": "ContentMaxXUnfrozen", "type": "float" }, { - "name": "Descent", + "name": "ContentMaxXHeadersUsed", "type": "float" }, { - "name": "MetricsTotalSurface", - "type": "int" + "name": "ContentMaxXHeadersIdeal", + "type": "float" }, { - "name": "Used4kPagesMap[(0x10FFFF+1)/4096/8]", - "size": 34, - "type": "ImU8" - } - ], - "ImFontAtlas": [ + "name": "NameOffset", + "type": "ImS16" + }, { - "name": "Flags", - "type": "ImFontAtlasFlags" + "name": "DisplayOrder", + "type": "ImGuiTableColumnIdx" }, { - "name": "TexID", - "type": "ImTextureID" + "name": "IndexWithinEnabledSet", + "type": "ImGuiTableColumnIdx" }, { - "name": "TexDesiredWidth", - "type": "int" + "name": "PrevEnabledColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "TexGlyphPadding", - "type": "int" + "name": "NextEnabledColumn", + "type": "ImGuiTableColumnIdx" }, { - "name": "Locked", - "type": "bool" + "name": "SortOrder", + "type": "ImGuiTableColumnIdx" }, { - "name": "TexReady", - "type": "bool" + "name": "DrawChannelCurrent", + "type": "ImGuiTableDrawChannelIdx" + }, + { + "name": "DrawChannelFrozen", + "type": "ImGuiTableDrawChannelIdx" + }, + { + "name": "DrawChannelUnfrozen", + "type": "ImGuiTableDrawChannelIdx" }, { - "name": "TexPixelsUseColors", + "name": "IsEnabled", "type": "bool" }, { - "name": "TexPixelsAlpha8", - "type": "unsigned char*" + "name": "IsUserEnabled", + "type": "bool" }, { - "name": "TexPixelsRGBA32", - "type": "unsigned int*" + "name": "IsUserEnabledNextFrame", + "type": "bool" }, { - "name": "TexWidth", - "type": "int" + "name": "IsVisibleX", + "type": "bool" }, { - "name": "TexHeight", - "type": "int" + "name": "IsVisibleY", + "type": "bool" }, { - "name": "TexUvScale", - "type": "ImVec2" + "name": "IsRequestOutput", + "type": "bool" }, { - "name": "TexUvWhitePixel", - "type": "ImVec2" + "name": "IsSkipItems", + "type": "bool" }, { - "name": "Fonts", - "template_type": "ImFont*", - "type": "ImVector_ImFontPtr" + "name": "IsPreserveWidthAuto", + "type": "bool" }, { - "name": "CustomRects", - "template_type": "ImFontAtlasCustomRect", - "type": "ImVector_ImFontAtlasCustomRect" + "name": "NavLayerCurrent", + "type": "ImS8" }, { - "name": "ConfigData", - "template_type": "ImFontConfig", - "type": "ImVector_ImFontConfig" + "name": "AutoFitQueue", + "type": "ImU8" }, { - "name": "TexUvLines[(63)+1]", - "size": 64, - "type": "ImVec4" + "name": "CannotSkipItemsQueue", + "type": "ImU8" }, { - "name": "FontBuilderIO", - "type": "const ImFontBuilderIO*" + "bitfield": "2", + "name": "SortDirection", + "type": "ImU8" }, { - "name": "FontBuilderFlags", - "type": "unsigned int" + "bitfield": "2", + "name": "SortDirectionsAvailCount", + "type": "ImU8" }, { - "name": "PackIdMouseCursors", - "type": "int" + "bitfield": "4", + "name": "SortDirectionsAvailMask", + "type": "ImU8" }, { - "name": "PackIdLines", - "type": "int" + "name": "SortDirectionsAvailList", + "type": "ImU8" } ], - "ImFontAtlasCustomRect": [ + "ImGuiTableColumnSettings": [ { - "name": "Width", - "type": "unsigned short" + "name": "WidthOrWeight", + "type": "float" }, { - "name": "Height", - "type": "unsigned short" + "name": "UserID", + "type": "ImGuiID" }, { - "name": "X", - "type": "unsigned short" + "name": "Index", + "type": "ImGuiTableColumnIdx" }, { - "name": "Y", - "type": "unsigned short" + "name": "DisplayOrder", + "type": "ImGuiTableColumnIdx" }, { - "name": "GlyphID", - "type": "unsigned int" + "name": "SortOrder", + "type": "ImGuiTableColumnIdx" }, { - "name": "GlyphAdvanceX", - "type": "float" + "bitfield": "2", + "name": "SortDirection", + "type": "ImU8" }, { - "name": "GlyphOffset", - "type": "ImVec2" + "bitfield": "1", + "name": "IsEnabled", + "type": "ImU8" }, { - "name": "Font", - "type": "ImFont*" + "bitfield": "1", + "name": "IsStretch", + "type": "ImU8" } ], - "ImFontConfig": [ + "ImGuiTableColumnSortSpecs": [ { - "name": "FontData", - "type": "void*" + "name": "ColumnUserID", + "type": "ImGuiID" }, { - "name": "FontDataSize", - "type": "int" + "name": "ColumnIndex", + "type": "ImS16" }, { - "name": "FontDataOwnedByAtlas", - "type": "bool" + "name": "SortOrder", + "type": "ImS16" }, { - "name": "FontNo", - "type": "int" - }, + "bitfield": "8", + "name": "SortDirection", + "type": "ImGuiSortDirection" + } + ], + "ImGuiTableInstanceData": [ { - "name": "SizePixels", + "name": "LastOuterHeight", "type": "float" }, { - "name": "OversampleH", - "type": "int" - }, + "name": "LastFirstRowHeight", + "type": "float" + } + ], + "ImGuiTableSettings": [ { - "name": "OversampleV", - "type": "int" + "name": "ID", + "type": "ImGuiID" }, { - "name": "PixelSnapH", - "type": "bool" + "name": "SaveFlags", + "type": "ImGuiTableFlags" }, { - "name": "GlyphExtraSpacing", - "type": "ImVec2" + "name": "RefScale", + "type": "float" }, { - "name": "GlyphOffset", - "type": "ImVec2" + "name": "ColumnsCount", + "type": "ImGuiTableColumnIdx" }, { - "name": "GlyphRanges", - "type": "const ImWchar*" + "name": "ColumnsCountMax", + "type": "ImGuiTableColumnIdx" }, { - "name": "GlyphMinAdvanceX", - "type": "float" + "name": "WantApply", + "type": "bool" + } + ], + "ImGuiTableSortSpecs": [ + { + "name": "Specs", + "type": "const ImGuiTableColumnSortSpecs*" }, { - "name": "GlyphMaxAdvanceX", - "type": "float" + "name": "SpecsCount", + "type": "int" }, { - "name": "MergeMode", + "name": "SpecsDirty", "type": "bool" - }, + } + ], + "ImGuiTableTempData": [ { - "name": "FontBuilderFlags", - "type": "unsigned int" + "name": "TableIndex", + "type": "int" }, { - "name": "RasterizerMultiply", + "name": "LastTimeActive", "type": "float" }, { - "name": "EllipsisChar", - "type": "ImWchar" + "name": "UserOuterSize", + "type": "ImVec2" }, { - "name": "Name[40]", - "size": 40, - "type": "char" + "name": "DrawSplitter", + "type": "ImDrawListSplitter" }, { - "name": "DstFont", - "type": "ImFont*" - } - ], - "ImFontGlyph": [ - { - "bitfield": "1", - "name": "Colored", - "type": "unsigned int" + "name": "HostBackupWorkRect", + "type": "ImRect" }, { - "bitfield": "1", - "name": "Visible", - "type": "unsigned int" + "name": "HostBackupParentWorkRect", + "type": "ImRect" }, { - "bitfield": "30", - "name": "Codepoint", - "type": "unsigned int" + "name": "HostBackupPrevLineSize", + "type": "ImVec2" }, { - "name": "AdvanceX", - "type": "float" + "name": "HostBackupCurrLineSize", + "type": "ImVec2" }, { - "name": "X0", - "type": "float" + "name": "HostBackupCursorMaxPos", + "type": "ImVec2" }, { - "name": "Y0", - "type": "float" + "name": "HostBackupColumnsOffset", + "type": "ImVec1" }, { - "name": "X1", + "name": "HostBackupItemWidth", "type": "float" }, { - "name": "Y1", - "type": "float" - }, + "name": "HostBackupItemWidthStackSize", + "type": "int" + } + ], + "ImGuiTextBuffer": [ { - "name": "U0", - "type": "float" - }, + "name": "Buf", + "template_type": "char", + "type": "ImVector_char" + } + ], + "ImGuiTextFilter": [ { - "name": "V0", - "type": "float" + "name": "InputBuf[256]", + "size": 256, + "type": "char" }, { - "name": "U1", - "type": "float" + "name": "Filters", + "template_type": "ImGuiTextRange", + "type": "ImVector_ImGuiTextRange" }, { - "name": "V1", - "type": "float" + "name": "CountGrep", + "type": "int" } ], - "ImFontGlyphRangesBuilder": [ + "ImGuiTextIndex": [ { - "name": "UsedChars", - "template_type": "ImU32", - "type": "ImVector_ImU32" + "name": "LineOffsets", + "template_type": "int", + "type": "ImVector_int" + }, + { + "name": "EndOffset", + "type": "int" } ], - "ImGuiIO": [ + "ImGuiTextRange": [ { - "name": "ConfigFlags", - "type": "ImGuiConfigFlags" + "name": "b", + "type": "const char*" }, { - "name": "BackendFlags", - "type": "ImGuiBackendFlags" + "name": "e", + "type": "const char*" + } + ], + "ImGuiViewport": [ + { + "name": "ID", + "type": "ImGuiID" }, { - "name": "DisplaySize", - "type": "ImVec2" + "name": "Flags", + "type": "ImGuiViewportFlags" }, { - "name": "DeltaTime", - "type": "float" + "name": "Pos", + "type": "ImVec2" }, { - "name": "IniSavingRate", - "type": "float" + "name": "Size", + "type": "ImVec2" }, { - "name": "IniFilename", - "type": "const char*" + "name": "WorkPos", + "type": "ImVec2" }, { - "name": "LogFilename", - "type": "const char*" + "name": "WorkSize", + "type": "ImVec2" }, { - "name": "MouseDoubleClickTime", + "name": "DpiScale", "type": "float" }, { - "name": "MouseDoubleClickMaxDist", - "type": "float" + "name": "ParentViewportId", + "type": "ImGuiID" }, { - "name": "MouseDragThreshold", - "type": "float" + "name": "DrawData", + "type": "ImDrawData*" }, { - "name": "KeyRepeatDelay", - "type": "float" + "name": "RendererUserData", + "type": "void*" }, { - "name": "KeyRepeatRate", - "type": "float" + "name": "PlatformUserData", + "type": "void*" }, { - "name": "HoverDelayNormal", - "type": "float" + "name": "PlatformHandle", + "type": "void*" }, { - "name": "HoverDelayShort", - "type": "float" + "name": "PlatformHandleRaw", + "type": "void*" }, { - "name": "UserData", - "type": "void*" + "name": "PlatformWindowCreated", + "type": "bool" }, { - "name": "Fonts", - "type": "ImFontAtlas*" + "name": "PlatformRequestMove", + "type": "bool" }, { - "name": "FontGlobalScale", - "type": "float" + "name": "PlatformRequestResize", + "type": "bool" }, { - "name": "FontAllowUserScaling", + "name": "PlatformRequestClose", "type": "bool" + } + ], + "ImGuiViewportP": [ + { + "name": "_ImGuiViewport", + "type": "ImGuiViewport" }, { - "name": "FontDefault", - "type": "ImFont*" + "name": "Idx", + "type": "int" }, { - "name": "DisplayFramebufferScale", - "type": "ImVec2" + "name": "LastFrameActive", + "type": "int" }, { - "name": "ConfigDockingNoSplit", - "type": "bool" + "name": "LastFrontMostStampCount", + "type": "int" }, { - "name": "ConfigDockingWithShift", - "type": "bool" + "name": "LastNameHash", + "type": "ImGuiID" }, { - "name": "ConfigDockingAlwaysTabBar", - "type": "bool" + "name": "LastPos", + "type": "ImVec2" }, { - "name": "ConfigDockingTransparentPayload", - "type": "bool" + "name": "Alpha", + "type": "float" }, { - "name": "ConfigViewportsNoAutoMerge", - "type": "bool" + "name": "LastAlpha", + "type": "float" }, { - "name": "ConfigViewportsNoTaskBarIcon", - "type": "bool" + "name": "PlatformMonitor", + "type": "short" }, { - "name": "ConfigViewportsNoDecoration", - "type": "bool" + "name": "Window", + "type": "ImGuiWindow*" }, { - "name": "ConfigViewportsNoDefaultParent", - "type": "bool" + "name": "DrawListsLastFrame[2]", + "size": 2, + "type": "int" }, { - "name": "MouseDrawCursor", - "type": "bool" + "name": "DrawLists[2]", + "size": 2, + "type": "ImDrawList*" }, { - "name": "ConfigMacOSXBehaviors", - "type": "bool" + "name": "DrawDataP", + "type": "ImDrawData" }, { - "name": "ConfigInputTrickleEventQueue", - "type": "bool" + "name": "DrawDataBuilder", + "type": "ImDrawDataBuilder" }, { - "name": "ConfigInputTextCursorBlink", - "type": "bool" + "name": "LastPlatformPos", + "type": "ImVec2" }, { - "name": "ConfigInputTextEnterKeepActive", - "type": "bool" + "name": "LastPlatformSize", + "type": "ImVec2" }, { - "name": "ConfigDragClickToInputText", - "type": "bool" + "name": "LastRendererSize", + "type": "ImVec2" }, { - "name": "ConfigWindowsResizeFromEdges", - "type": "bool" + "name": "WorkOffsetMin", + "type": "ImVec2" }, { - "name": "ConfigWindowsMoveFromTitleBarOnly", - "type": "bool" + "name": "WorkOffsetMax", + "type": "ImVec2" }, { - "name": "ConfigMemoryCompactTimer", - "type": "float" + "name": "BuildWorkOffsetMin", + "type": "ImVec2" }, { - "name": "BackendPlatformName", - "type": "const char*" + "name": "BuildWorkOffsetMax", + "type": "ImVec2" + } + ], + "ImGuiWindow": [ + { + "name": "Name", + "type": "char*" }, { - "name": "BackendRendererName", - "type": "const char*" + "name": "ID", + "type": "ImGuiID" }, { - "name": "BackendPlatformUserData", - "type": "void*" + "name": "Flags", + "type": "ImGuiWindowFlags" }, { - "name": "BackendRendererUserData", - "type": "void*" + "name": "FlagsPreviousFrame", + "type": "ImGuiWindowFlags" }, { - "name": "BackendLanguageUserData", - "type": "void*" + "name": "WindowClass", + "type": "ImGuiWindowClass" }, { - "name": "GetClipboardTextFn", - "type": "const char*(*)(void* user_data)" + "name": "Viewport", + "type": "ImGuiViewportP*" }, { - "name": "SetClipboardTextFn", - "type": "void(*)(void* user_data,const char* text)" + "name": "ViewportId", + "type": "ImGuiID" }, { - "name": "ClipboardUserData", - "type": "void*" + "name": "ViewportPos", + "type": "ImVec2" }, { - "name": "SetPlatformImeDataFn", - "type": "void(*)(ImGuiViewport* viewport,ImGuiPlatformImeData* data)" + "name": "ViewportAllowPlatformMonitorExtend", + "type": "int" }, { - "name": "_UnusedPadding", - "type": "void*" + "name": "Pos", + "type": "ImVec2" }, { - "name": "WantCaptureMouse", - "type": "bool" + "name": "Size", + "type": "ImVec2" }, { - "name": "WantCaptureKeyboard", - "type": "bool" + "name": "SizeFull", + "type": "ImVec2" }, { - "name": "WantTextInput", - "type": "bool" + "name": "ContentSize", + "type": "ImVec2" }, { - "name": "WantSetMousePos", - "type": "bool" + "name": "ContentSizeIdeal", + "type": "ImVec2" }, { - "name": "WantSaveIniSettings", - "type": "bool" + "name": "ContentSizeExplicit", + "type": "ImVec2" }, { - "name": "NavActive", - "type": "bool" + "name": "WindowPadding", + "type": "ImVec2" }, { - "name": "NavVisible", - "type": "bool" + "name": "WindowRounding", + "type": "float" }, { - "name": "Framerate", + "name": "WindowBorderSize", "type": "float" }, { - "name": "MetricsRenderVertices", + "name": "NameBufLen", "type": "int" }, { - "name": "MetricsRenderIndices", - "type": "int" + "name": "MoveId", + "type": "ImGuiID" }, { - "name": "MetricsRenderWindows", - "type": "int" + "name": "TabId", + "type": "ImGuiID" }, { - "name": "MetricsActiveWindows", - "type": "int" + "name": "ChildId", + "type": "ImGuiID" }, { - "name": "MetricsActiveAllocations", - "type": "int" + "name": "Scroll", + "type": "ImVec2" }, { - "name": "MouseDelta", + "name": "ScrollMax", "type": "ImVec2" }, { - "name": "KeyMap[ImGuiKey_COUNT]", - "size": 652, - "type": "int" + "name": "ScrollTarget", + "type": "ImVec2" }, { - "name": "KeysDown[ImGuiKey_COUNT]", - "size": 652, - "type": "bool" + "name": "ScrollTargetCenterRatio", + "type": "ImVec2" }, { - "name": "NavInputs[ImGuiNavInput_COUNT]", - "size": 16, - "type": "float" + "name": "ScrollTargetEdgeSnapDist", + "type": "ImVec2" }, { - "name": "MousePos", + "name": "ScrollbarSizes", "type": "ImVec2" }, { - "name": "MouseDown[5]", - "size": 5, + "name": "ScrollbarX", "type": "bool" }, { - "name": "MouseWheel", - "type": "float" + "name": "ScrollbarY", + "type": "bool" }, { - "name": "MouseWheelH", - "type": "float" + "name": "ViewportOwned", + "type": "bool" }, { - "name": "MouseHoveredViewport", - "type": "ImGuiID" + "name": "Active", + "type": "bool" }, { - "name": "KeyCtrl", + "name": "WasActive", "type": "bool" }, { - "name": "KeyShift", + "name": "WriteAccessed", "type": "bool" }, { - "name": "KeyAlt", + "name": "Collapsed", "type": "bool" }, { - "name": "KeySuper", + "name": "WantCollapseToggle", "type": "bool" }, { - "name": "KeyMods", - "type": "ImGuiKeyChord" + "name": "SkipItems", + "type": "bool" }, { - "name": "KeysData[ImGuiKey_KeysData_SIZE]", - "size": 652, - "type": "ImGuiKeyData" + "name": "Appearing", + "type": "bool" }, { - "name": "WantCaptureMouseUnlessPopupClose", + "name": "Hidden", "type": "bool" }, { - "name": "MousePosPrev", - "type": "ImVec2" + "name": "IsFallbackWindow", + "type": "bool" }, { - "name": "MouseClickedPos[5]", - "size": 5, - "type": "ImVec2" + "name": "IsExplicitChild", + "type": "bool" }, { - "name": "MouseClickedTime[5]", - "size": 5, - "type": "double" + "name": "HasCloseButton", + "type": "bool" }, { - "name": "MouseClicked[5]", - "size": 5, - "type": "bool" + "name": "ResizeBorderHeld", + "type": "signed char" }, { - "name": "MouseDoubleClicked[5]", - "size": 5, - "type": "bool" + "name": "BeginCount", + "type": "short" }, { - "name": "MouseClickedCount[5]", - "size": 5, - "type": "ImU16" + "name": "BeginCountPreviousFrame", + "type": "short" }, { - "name": "MouseClickedLastCount[5]", - "size": 5, - "type": "ImU16" + "name": "BeginOrderWithinParent", + "type": "short" }, { - "name": "MouseReleased[5]", - "size": 5, - "type": "bool" + "name": "BeginOrderWithinContext", + "type": "short" }, { - "name": "MouseDownOwned[5]", - "size": 5, - "type": "bool" + "name": "FocusOrder", + "type": "short" }, { - "name": "MouseDownOwnedUnlessPopupClose[5]", - "size": 5, - "type": "bool" + "name": "PopupId", + "type": "ImGuiID" }, { - "name": "MouseDownDuration[5]", - "size": 5, - "type": "float" + "name": "AutoFitFramesX", + "type": "ImS8" }, { - "name": "MouseDownDurationPrev[5]", - "size": 5, - "type": "float" + "name": "AutoFitFramesY", + "type": "ImS8" }, { - "name": "MouseDragMaxDistanceAbs[5]", - "size": 5, - "type": "ImVec2" + "name": "AutoFitChildAxises", + "type": "ImS8" }, { - "name": "MouseDragMaxDistanceSqr[5]", - "size": 5, - "type": "float" + "name": "AutoFitOnlyGrows", + "type": "bool" }, { - "name": "PenPressure", - "type": "float" + "name": "AutoPosLastDirection", + "type": "ImGuiDir" }, { - "name": "AppFocusLost", - "type": "bool" + "name": "HiddenFramesCanSkipItems", + "type": "ImS8" }, { - "name": "AppAcceptingEvents", - "type": "bool" + "name": "HiddenFramesCannotSkipItems", + "type": "ImS8" }, { - "name": "BackendUsingLegacyKeyArrays", + "name": "HiddenFramesForRenderOnly", "type": "ImS8" }, { - "name": "BackendUsingLegacyNavInputArray", - "type": "bool" + "name": "DisableInputsFrames", + "type": "ImS8" }, { - "name": "InputQueueSurrogate", - "type": "ImWchar16" + "bitfield": "8", + "name": "SetWindowPosAllowFlags", + "type": "ImGuiCond" }, { - "name": "InputQueueCharacters", - "template_type": "ImWchar", - "type": "ImVector_ImWchar" - } - ], - "ImGuiInputTextCallbackData": [ - { - "name": "EventFlag", - "type": "ImGuiInputTextFlags" + "bitfield": "8", + "name": "SetWindowSizeAllowFlags", + "type": "ImGuiCond" }, { - "name": "Flags", - "type": "ImGuiInputTextFlags" + "bitfield": "8", + "name": "SetWindowCollapsedAllowFlags", + "type": "ImGuiCond" }, { - "name": "UserData", - "type": "void*" + "bitfield": "8", + "name": "SetWindowDockAllowFlags", + "type": "ImGuiCond" }, { - "name": "EventChar", - "type": "ImWchar" + "name": "SetWindowPosVal", + "type": "ImVec2" }, { - "name": "EventKey", - "type": "ImGuiKey" + "name": "SetWindowPosPivot", + "type": "ImVec2" }, { - "name": "Buf", - "type": "char*" + "name": "IDStack", + "template_type": "ImGuiID", + "type": "ImVector_ImGuiID" }, { - "name": "BufTextLen", - "type": "int" + "name": "DC", + "type": "ImGuiWindowTempData" }, { - "name": "BufSize", - "type": "int" + "name": "OuterRectClipped", + "type": "ImRect" }, { - "name": "BufDirty", - "type": "bool" + "name": "InnerRect", + "type": "ImRect" }, { - "name": "CursorPos", - "type": "int" + "name": "InnerClipRect", + "type": "ImRect" }, { - "name": "SelectionStart", - "type": "int" + "name": "WorkRect", + "type": "ImRect" }, { - "name": "SelectionEnd", - "type": "int" - } - ], - "ImGuiKeyData": [ - { - "name": "Down", - "type": "bool" + "name": "ParentWorkRect", + "type": "ImRect" }, { - "name": "DownDuration", - "type": "float" + "name": "ClipRect", + "type": "ImRect" }, { - "name": "DownDurationPrev", - "type": "float" + "name": "ContentRegionRect", + "type": "ImRect" }, { - "name": "AnalogValue", - "type": "float" - } - ], - "ImGuiListClipper": [ + "name": "HitTestHoleSize", + "type": "ImVec2ih" + }, { - "name": "DisplayStart", - "type": "int" + "name": "HitTestHoleOffset", + "type": "ImVec2ih" }, { - "name": "DisplayEnd", + "name": "LastFrameActive", "type": "int" }, { - "name": "ItemsCount", + "name": "LastFrameJustFocused", "type": "int" }, { - "name": "ItemsHeight", + "name": "LastTimeActive", "type": "float" }, { - "name": "StartPosY", + "name": "ItemWidthDefault", "type": "float" }, { - "name": "TempData", - "type": "void*" - } - ], - "ImGuiOnceUponAFrame": [ - { - "name": "RefFrame", - "type": "int" - } - ], - "ImGuiPayload": [ - { - "name": "Data", - "type": "void*" + "name": "StateStorage", + "type": "ImGuiStorage" }, { - "name": "DataSize", - "type": "int" + "name": "ColumnsStorage", + "template_type": "ImGuiOldColumns", + "type": "ImVector_ImGuiOldColumns" }, { - "name": "SourceId", - "type": "ImGuiID" + "name": "FontWindowScale", + "type": "float" }, { - "name": "SourceParentId", - "type": "ImGuiID" + "name": "FontDpiScale", + "type": "float" }, { - "name": "DataFrameCount", + "name": "SettingsOffset", "type": "int" }, { - "name": "DataType[32+1]", - "size": 33, - "type": "char" - }, - { - "name": "Preview", - "type": "bool" - }, - { - "name": "Delivery", - "type": "bool" - } - ], - "ImGuiPlatformIO": [ - { - "name": "Platform_CreateWindow", - "type": "void(*)(ImGuiViewport* vp)" + "name": "DrawList", + "type": "ImDrawList*" }, { - "name": "Platform_DestroyWindow", - "type": "void(*)(ImGuiViewport* vp)" + "name": "DrawListInst", + "type": "ImDrawList" }, { - "name": "Platform_ShowWindow", - "type": "void(*)(ImGuiViewport* vp)" + "name": "ParentWindow", + "type": "ImGuiWindow*" }, { - "name": "Platform_SetWindowPos", - "type": "void(*)(ImGuiViewport* vp,ImVec2 pos)" + "name": "ParentWindowInBeginStack", + "type": "ImGuiWindow*" }, { - "name": "Platform_GetWindowPos", - "type": "ImVec2(*)(ImGuiViewport* vp)" + "name": "RootWindow", + "type": "ImGuiWindow*" }, { - "name": "Platform_SetWindowSize", - "type": "void(*)(ImGuiViewport* vp,ImVec2 size)" + "name": "RootWindowPopupTree", + "type": "ImGuiWindow*" }, { - "name": "Platform_GetWindowSize", - "type": "ImVec2(*)(ImGuiViewport* vp)" + "name": "RootWindowDockTree", + "type": "ImGuiWindow*" }, { - "name": "Platform_SetWindowFocus", - "type": "void(*)(ImGuiViewport* vp)" + "name": "RootWindowForTitleBarHighlight", + "type": "ImGuiWindow*" }, { - "name": "Platform_GetWindowFocus", - "type": "bool(*)(ImGuiViewport* vp)" + "name": "RootWindowForNav", + "type": "ImGuiWindow*" }, { - "name": "Platform_GetWindowMinimized", - "type": "bool(*)(ImGuiViewport* vp)" + "name": "NavLastChildNavWindow", + "type": "ImGuiWindow*" }, { - "name": "Platform_SetWindowTitle", - "type": "void(*)(ImGuiViewport* vp,const char* str)" + "name": "NavLastIds[ImGuiNavLayer_COUNT]", + "size": 2, + "type": "ImGuiID" }, { - "name": "Platform_SetWindowAlpha", - "type": "void(*)(ImGuiViewport* vp,float alpha)" + "name": "NavRectRel[ImGuiNavLayer_COUNT]", + "size": 2, + "type": "ImRect" }, { - "name": "Platform_UpdateWindow", - "type": "void(*)(ImGuiViewport* vp)" + "name": "NavRootFocusScopeId", + "type": "ImGuiID" }, { - "name": "Platform_RenderWindow", - "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + "name": "MemoryDrawListIdxCapacity", + "type": "int" }, { - "name": "Platform_SwapBuffers", - "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + "name": "MemoryDrawListVtxCapacity", + "type": "int" }, { - "name": "Platform_GetWindowDpiScale", - "type": "float(*)(ImGuiViewport* vp)" + "name": "MemoryCompacted", + "type": "bool" }, { - "name": "Platform_OnChangedViewport", - "type": "void(*)(ImGuiViewport* vp)" + "bitfield": "1", + "name": "DockIsActive", + "type": "bool" }, { - "name": "Platform_CreateVkSurface", - "type": "int(*)(ImGuiViewport* vp,ImU64 vk_inst,const void* vk_allocators,ImU64* out_vk_surface)" + "bitfield": "1", + "name": "DockNodeIsVisible", + "type": "bool" }, { - "name": "Renderer_CreateWindow", - "type": "void(*)(ImGuiViewport* vp)" + "bitfield": "1", + "name": "DockTabIsVisible", + "type": "bool" }, { - "name": "Renderer_DestroyWindow", - "type": "void(*)(ImGuiViewport* vp)" + "bitfield": "1", + "name": "DockTabWantClose", + "type": "bool" }, { - "name": "Renderer_SetWindowSize", - "type": "void(*)(ImGuiViewport* vp,ImVec2 size)" + "name": "DockOrder", + "type": "short" }, { - "name": "Renderer_RenderWindow", - "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + "name": "DockStyle", + "type": "ImGuiWindowDockStyle" }, { - "name": "Renderer_SwapBuffers", - "type": "void(*)(ImGuiViewport* vp,void* render_arg)" + "name": "DockNode", + "type": "ImGuiDockNode*" }, { - "name": "Monitors", - "template_type": "ImGuiPlatformMonitor", - "type": "ImVector_ImGuiPlatformMonitor" + "name": "DockNodeAsHost", + "type": "ImGuiDockNode*" }, { - "name": "Viewports", - "template_type": "ImGuiViewport*", - "type": "ImVector_ImGuiViewportPtr" - } - ], - "ImGuiPlatformImeData": [ - { - "name": "WantVisible", - "type": "bool" + "name": "DockId", + "type": "ImGuiID" }, { - "name": "InputPos", - "type": "ImVec2" + "name": "DockTabItemStatusFlags", + "type": "ImGuiItemStatusFlags" }, { - "name": "InputLineHeight", - "type": "float" + "name": "DockTabItemRect", + "type": "ImRect" } ], - "ImGuiPlatformMonitor": [ + "ImGuiWindowClass": [ { - "name": "MainPos", - "type": "ImVec2" + "name": "ClassId", + "type": "ImGuiID" }, { - "name": "MainSize", - "type": "ImVec2" + "name": "ParentViewportId", + "type": "ImGuiID" }, { - "name": "WorkPos", - "type": "ImVec2" + "name": "ViewportFlagsOverrideSet", + "type": "ImGuiViewportFlags" }, { - "name": "WorkSize", - "type": "ImVec2" + "name": "ViewportFlagsOverrideClear", + "type": "ImGuiViewportFlags" }, { - "name": "DpiScale", - "type": "float" - } - ], - "ImGuiSizeCallbackData": [ - { - "name": "UserData", - "type": "void*" + "name": "TabItemFlagsOverrideSet", + "type": "ImGuiTabItemFlags" }, { - "name": "Pos", - "type": "ImVec2" + "name": "DockNodeFlagsOverrideSet", + "type": "ImGuiDockNodeFlags" }, { - "name": "CurrentSize", - "type": "ImVec2" + "name": "DockingAlwaysTabBar", + "type": "bool" }, { - "name": "DesiredSize", - "type": "ImVec2" + "name": "DockingAllowUnclassed", + "type": "bool" } ], - "ImGuiStorage": [ + "ImGuiWindowDockStyle": [ { - "name": "Data", - "template_type": "ImGuiStoragePair", - "type": "ImVector_ImGuiStoragePair" + "name": "Colors[ImGuiWindowDockStyleCol_COUNT]", + "size": 6, + "type": "ImU32" } ], - "ImGuiStoragePair": [ + "ImGuiWindowSettings": [ { - "name": "key", + "name": "ID", "type": "ImGuiID" }, { - "name": "", - "type": "union { int val_i; float val_f; void* val_p;}" - } - ], - "ImGuiStyle": [ - { - "name": "Alpha", - "type": "float" - }, - { - "name": "DisabledAlpha", - "type": "float" + "name": "Pos", + "type": "ImVec2ih" }, { - "name": "WindowPadding", - "type": "ImVec2" + "name": "Size", + "type": "ImVec2ih" }, { - "name": "WindowRounding", - "type": "float" + "name": "ViewportPos", + "type": "ImVec2ih" }, { - "name": "WindowBorderSize", - "type": "float" + "name": "ViewportId", + "type": "ImGuiID" }, { - "name": "WindowMinSize", - "type": "ImVec2" + "name": "DockId", + "type": "ImGuiID" }, { - "name": "WindowTitleAlign", - "type": "ImVec2" + "name": "ClassId", + "type": "ImGuiID" }, { - "name": "WindowMenuButtonPosition", - "type": "ImGuiDir" + "name": "DockOrder", + "type": "short" }, { - "name": "ChildRounding", - "type": "float" + "name": "Collapsed", + "type": "bool" }, { - "name": "ChildBorderSize", - "type": "float" - }, + "name": "WantApply", + "type": "bool" + } + ], + "ImGuiWindowStackData": [ { - "name": "PopupRounding", - "type": "float" + "name": "Window", + "type": "ImGuiWindow*" }, { - "name": "PopupBorderSize", - "type": "float" + "name": "ParentLastItemDataBackup", + "type": "ImGuiLastItemData" }, { - "name": "FramePadding", + "name": "StackSizesOnBegin", + "type": "ImGuiStackSizes" + } + ], + "ImGuiWindowTempData": [ + { + "name": "CursorPos", "type": "ImVec2" }, { - "name": "FrameRounding", - "type": "float" + "name": "CursorPosPrevLine", + "type": "ImVec2" }, { - "name": "FrameBorderSize", - "type": "float" + "name": "CursorStartPos", + "type": "ImVec2" }, { - "name": "ItemSpacing", + "name": "CursorMaxPos", "type": "ImVec2" }, { - "name": "ItemInnerSpacing", + "name": "IdealMaxPos", "type": "ImVec2" }, { - "name": "CellPadding", + "name": "CurrLineSize", "type": "ImVec2" }, { - "name": "TouchExtraPadding", + "name": "PrevLineSize", "type": "ImVec2" }, { - "name": "IndentSpacing", + "name": "CurrLineTextBaseOffset", "type": "float" }, { - "name": "ColumnsMinSpacing", + "name": "PrevLineTextBaseOffset", "type": "float" }, { - "name": "ScrollbarSize", - "type": "float" + "name": "IsSameLine", + "type": "bool" }, { - "name": "ScrollbarRounding", - "type": "float" + "name": "IsSetPos", + "type": "bool" }, { - "name": "GrabMinSize", - "type": "float" + "name": "Indent", + "type": "ImVec1" }, { - "name": "GrabRounding", - "type": "float" + "name": "ColumnsOffset", + "type": "ImVec1" }, { - "name": "LogSliderDeadzone", - "type": "float" + "name": "GroupOffset", + "type": "ImVec1" }, { - "name": "TabRounding", - "type": "float" + "name": "CursorStartPosLossyness", + "type": "ImVec2" }, { - "name": "TabBorderSize", - "type": "float" + "name": "NavLayerCurrent", + "type": "ImGuiNavLayer" }, { - "name": "TabMinWidthForCloseButton", - "type": "float" + "name": "NavLayersActiveMask", + "type": "short" }, { - "name": "ColorButtonPosition", - "type": "ImGuiDir" + "name": "NavLayersActiveMaskNext", + "type": "short" }, { - "name": "ButtonTextAlign", - "type": "ImVec2" + "name": "NavHideHighlightOneFrame", + "type": "bool" }, { - "name": "SelectableTextAlign", - "type": "ImVec2" + "name": "NavHasScroll", + "type": "bool" }, { - "name": "DisplayWindowPadding", - "type": "ImVec2" + "name": "MenuBarAppending", + "type": "bool" }, { - "name": "DisplaySafeAreaPadding", + "name": "MenuBarOffset", "type": "ImVec2" }, { - "name": "MouseCursorScale", - "type": "float" + "name": "MenuColumns", + "type": "ImGuiMenuColumns" }, { - "name": "AntiAliasedLines", - "type": "bool" + "name": "TreeDepth", + "type": "int" }, { - "name": "AntiAliasedLinesUseTex", - "type": "bool" + "name": "TreeJumpToParentOnPopMask", + "type": "ImU32" }, { - "name": "AntiAliasedFill", - "type": "bool" + "name": "ChildWindows", + "template_type": "ImGuiWindow*", + "type": "ImVector_ImGuiWindowPtr" }, { - "name": "CurveTessellationTol", - "type": "float" + "name": "StateStorage", + "type": "ImGuiStorage*" }, { - "name": "CircleTessellationMaxError", - "type": "float" + "name": "CurrentColumns", + "type": "ImGuiOldColumns*" }, { - "name": "Colors[ImGuiCol_COUNT]", - "size": 55, - "type": "ImVec4" - } - ], - "ImGuiTableColumnSortSpecs": [ - { - "name": "ColumnUserID", - "type": "ImGuiID" + "name": "CurrentTableIdx", + "type": "int" }, { - "name": "ColumnIndex", - "type": "ImS16" + "name": "LayoutType", + "type": "ImGuiLayoutType" }, { - "name": "SortOrder", - "type": "ImS16" + "name": "ParentLayoutType", + "type": "ImGuiLayoutType" }, { - "bitfield": "8", - "name": "SortDirection", - "type": "ImGuiSortDirection" - } - ], - "ImGuiTableSortSpecs": [ + "name": "ItemWidth", + "type": "float" + }, { - "name": "Specs", - "type": "const ImGuiTableColumnSortSpecs*" + "name": "TextWrapPos", + "type": "float" }, { - "name": "SpecsCount", - "type": "int" + "name": "ItemWidthStack", + "template_type": "float", + "type": "ImVector_float" }, { - "name": "SpecsDirty", - "type": "bool" + "name": "TextWrapPosStack", + "template_type": "float", + "type": "ImVector_float" } ], - "ImGuiTextBuffer": [ + "ImRect": [ { - "name": "Buf", - "template_type": "char", - "type": "ImVector_char" + "name": "Min", + "type": "ImVec2" + }, + { + "name": "Max", + "type": "ImVec2" } ], - "ImGuiTextFilter": [ + "ImVec1": [ { - "name": "InputBuf[256]", - "size": 256, - "type": "char" - }, + "name": "x", + "type": "float" + } + ], + "ImVec2": [ { - "name": "Filters", - "template_type": "ImGuiTextRange", - "type": "ImVector_ImGuiTextRange" + "name": "x", + "type": "float" }, { - "name": "CountGrep", - "type": "int" + "name": "y", + "type": "float" } ], - "ImGuiTextRange": [ + "ImVec2ih": [ { - "name": "b", - "type": "const char*" + "name": "x", + "type": "short" }, { - "name": "e", - "type": "const char*" + "name": "y", + "type": "short" } ], - "ImGuiViewport": [ + "ImVec4": [ { - "name": "ID", - "type": "ImGuiID" + "name": "x", + "type": "float" }, { - "name": "Flags", - "type": "ImGuiViewportFlags" + "name": "y", + "type": "float" }, { - "name": "Pos", - "type": "ImVec2" + "name": "z", + "type": "float" }, { - "name": "Size", - "type": "ImVec2" + "name": "w", + "type": "float" + } + ], + "STB_TexteditState": [ + { + "name": "cursor", + "type": "int" }, { - "name": "WorkPos", - "type": "ImVec2" + "name": "select_start", + "type": "int" }, { - "name": "WorkSize", - "type": "ImVec2" + "name": "select_end", + "type": "int" }, { - "name": "DpiScale", - "type": "float" + "name": "insert_mode", + "type": "unsigned char" }, { - "name": "ParentViewportId", - "type": "ImGuiID" + "name": "row_count_per_page", + "type": "int" }, { - "name": "DrawData", - "type": "ImDrawData*" + "name": "cursor_at_end_of_line", + "type": "unsigned char" }, { - "name": "RendererUserData", - "type": "void*" + "name": "initialized", + "type": "unsigned char" }, { - "name": "PlatformUserData", - "type": "void*" + "name": "has_preferred_x", + "type": "unsigned char" }, { - "name": "PlatformHandle", - "type": "void*" + "name": "single_line", + "type": "unsigned char" }, { - "name": "PlatformHandleRaw", - "type": "void*" + "name": "padding1", + "type": "unsigned char" }, { - "name": "PlatformWindowCreated", - "type": "bool" + "name": "padding2", + "type": "unsigned char" }, { - "name": "PlatformRequestMove", - "type": "bool" + "name": "padding3", + "type": "unsigned char" }, { - "name": "PlatformRequestResize", - "type": "bool" + "name": "preferred_x", + "type": "float" }, { - "name": "PlatformRequestClose", - "type": "bool" + "name": "undostate", + "type": "StbUndoState" } ], - "ImGuiWindowClass": [ + "StbTexteditRow": [ { - "name": "ClassId", - "type": "ImGuiID" + "name": "x0", + "type": "float" }, { - "name": "ParentViewportId", - "type": "ImGuiID" + "name": "x1", + "type": "float" }, { - "name": "ViewportFlagsOverrideSet", - "type": "ImGuiViewportFlags" + "name": "baseline_y_delta", + "type": "float" }, { - "name": "ViewportFlagsOverrideClear", - "type": "ImGuiViewportFlags" + "name": "ymin", + "type": "float" }, { - "name": "TabItemFlagsOverrideSet", - "type": "ImGuiTabItemFlags" + "name": "ymax", + "type": "float" }, { - "name": "DockNodeFlagsOverrideSet", - "type": "ImGuiDockNodeFlags" + "name": "num_chars", + "type": "int" + } + ], + "StbUndoRecord": [ + { + "name": "where", + "type": "int" }, { - "name": "DockingAlwaysTabBar", - "type": "bool" + "name": "insert_length", + "type": "int" }, { - "name": "DockingAllowUnclassed", - "type": "bool" + "name": "delete_length", + "type": "int" + }, + { + "name": "char_storage", + "type": "int" } ], - "ImVec2": [ + "StbUndoState": [ { - "name": "x", - "type": "float" + "name": "undo_rec[99]", + "size": 99, + "type": "StbUndoRecord" }, { - "name": "y", - "type": "float" - } - ], - "ImVec4": [ + "name": "undo_char[999]", + "size": 999, + "type": "ImWchar" + }, { - "name": "x", - "type": "float" + "name": "undo_point", + "type": "short" }, { - "name": "y", - "type": "float" + "name": "redo_point", + "type": "short" }, { - "name": "z", - "type": "float" + "name": "undo_char_point", + "type": "int" }, { - "name": "w", - "type": "float" + "name": "redo_char_point", + "type": "int" } ] } diff --git a/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.lua b/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.lua index c8ac47a4e..d2ebf9f6c 100644 --- a/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.lua +++ b/imgui-sys/third-party/imgui-docking-freetype/structs_and_enums.lua @@ -95,6 +95,36 @@ defs["enums"]["ImFontAtlasFlags_"][4] = {} defs["enums"]["ImFontAtlasFlags_"][4]["calc_value"] = 4 defs["enums"]["ImFontAtlasFlags_"][4]["name"] = "ImFontAtlasFlags_NoBakedLines" defs["enums"]["ImFontAtlasFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiActivateFlags_"] = {} +defs["enums"]["ImGuiActivateFlags_"][1] = {} +defs["enums"]["ImGuiActivateFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiActivateFlags_"][1]["name"] = "ImGuiActivateFlags_None" +defs["enums"]["ImGuiActivateFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiActivateFlags_"][2] = {} +defs["enums"]["ImGuiActivateFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiActivateFlags_"][2]["name"] = "ImGuiActivateFlags_PreferInput" +defs["enums"]["ImGuiActivateFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiActivateFlags_"][3] = {} +defs["enums"]["ImGuiActivateFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiActivateFlags_"][3]["name"] = "ImGuiActivateFlags_PreferTweak" +defs["enums"]["ImGuiActivateFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiActivateFlags_"][4] = {} +defs["enums"]["ImGuiActivateFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiActivateFlags_"][4]["name"] = "ImGuiActivateFlags_TryToPreserveState" +defs["enums"]["ImGuiActivateFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiAxis"] = {} +defs["enums"]["ImGuiAxis"][1] = {} +defs["enums"]["ImGuiAxis"][1]["calc_value"] = -1 +defs["enums"]["ImGuiAxis"][1]["name"] = "ImGuiAxis_None" +defs["enums"]["ImGuiAxis"][1]["value"] = "-1" +defs["enums"]["ImGuiAxis"][2] = {} +defs["enums"]["ImGuiAxis"][2]["calc_value"] = 0 +defs["enums"]["ImGuiAxis"][2]["name"] = "ImGuiAxis_X" +defs["enums"]["ImGuiAxis"][2]["value"] = "0" +defs["enums"]["ImGuiAxis"][3] = {} +defs["enums"]["ImGuiAxis"][3]["calc_value"] = 1 +defs["enums"]["ImGuiAxis"][3]["name"] = "ImGuiAxis_Y" +defs["enums"]["ImGuiAxis"][3]["value"] = "1" defs["enums"]["ImGuiBackendFlags_"] = {} defs["enums"]["ImGuiBackendFlags_"][1] = {} defs["enums"]["ImGuiBackendFlags_"][1]["calc_value"] = 0 @@ -128,6 +158,83 @@ defs["enums"]["ImGuiBackendFlags_"][8] = {} defs["enums"]["ImGuiBackendFlags_"][8]["calc_value"] = 4096 defs["enums"]["ImGuiBackendFlags_"][8]["name"] = "ImGuiBackendFlags_RendererHasViewports" defs["enums"]["ImGuiBackendFlags_"][8]["value"] = "1 << 12" +defs["enums"]["ImGuiButtonFlagsPrivate_"] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][1] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][1]["calc_value"] = 16 +defs["enums"]["ImGuiButtonFlagsPrivate_"][1]["name"] = "ImGuiButtonFlags_PressedOnClick" +defs["enums"]["ImGuiButtonFlagsPrivate_"][1]["value"] = "1 << 4" +defs["enums"]["ImGuiButtonFlagsPrivate_"][2] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][2]["calc_value"] = 32 +defs["enums"]["ImGuiButtonFlagsPrivate_"][2]["name"] = "ImGuiButtonFlags_PressedOnClickRelease" +defs["enums"]["ImGuiButtonFlagsPrivate_"][2]["value"] = "1 << 5" +defs["enums"]["ImGuiButtonFlagsPrivate_"][3] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][3]["calc_value"] = 64 +defs["enums"]["ImGuiButtonFlagsPrivate_"][3]["name"] = "ImGuiButtonFlags_PressedOnClickReleaseAnywhere" +defs["enums"]["ImGuiButtonFlagsPrivate_"][3]["value"] = "1 << 6" +defs["enums"]["ImGuiButtonFlagsPrivate_"][4] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][4]["calc_value"] = 128 +defs["enums"]["ImGuiButtonFlagsPrivate_"][4]["name"] = "ImGuiButtonFlags_PressedOnRelease" +defs["enums"]["ImGuiButtonFlagsPrivate_"][4]["value"] = "1 << 7" +defs["enums"]["ImGuiButtonFlagsPrivate_"][5] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][5]["calc_value"] = 256 +defs["enums"]["ImGuiButtonFlagsPrivate_"][5]["name"] = "ImGuiButtonFlags_PressedOnDoubleClick" +defs["enums"]["ImGuiButtonFlagsPrivate_"][5]["value"] = "1 << 8" +defs["enums"]["ImGuiButtonFlagsPrivate_"][6] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][6]["calc_value"] = 512 +defs["enums"]["ImGuiButtonFlagsPrivate_"][6]["name"] = "ImGuiButtonFlags_PressedOnDragDropHold" +defs["enums"]["ImGuiButtonFlagsPrivate_"][6]["value"] = "1 << 9" +defs["enums"]["ImGuiButtonFlagsPrivate_"][7] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][7]["calc_value"] = 1024 +defs["enums"]["ImGuiButtonFlagsPrivate_"][7]["name"] = "ImGuiButtonFlags_Repeat" +defs["enums"]["ImGuiButtonFlagsPrivate_"][7]["value"] = "1 << 10" +defs["enums"]["ImGuiButtonFlagsPrivate_"][8] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][8]["calc_value"] = 2048 +defs["enums"]["ImGuiButtonFlagsPrivate_"][8]["name"] = "ImGuiButtonFlags_FlattenChildren" +defs["enums"]["ImGuiButtonFlagsPrivate_"][8]["value"] = "1 << 11" +defs["enums"]["ImGuiButtonFlagsPrivate_"][9] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][9]["calc_value"] = 4096 +defs["enums"]["ImGuiButtonFlagsPrivate_"][9]["name"] = "ImGuiButtonFlags_AllowItemOverlap" +defs["enums"]["ImGuiButtonFlagsPrivate_"][9]["value"] = "1 << 12" +defs["enums"]["ImGuiButtonFlagsPrivate_"][10] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][10]["calc_value"] = 8192 +defs["enums"]["ImGuiButtonFlagsPrivate_"][10]["name"] = "ImGuiButtonFlags_DontClosePopups" +defs["enums"]["ImGuiButtonFlagsPrivate_"][10]["value"] = "1 << 13" +defs["enums"]["ImGuiButtonFlagsPrivate_"][11] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][11]["calc_value"] = 32768 +defs["enums"]["ImGuiButtonFlagsPrivate_"][11]["name"] = "ImGuiButtonFlags_AlignTextBaseLine" +defs["enums"]["ImGuiButtonFlagsPrivate_"][11]["value"] = "1 << 15" +defs["enums"]["ImGuiButtonFlagsPrivate_"][12] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][12]["calc_value"] = 65536 +defs["enums"]["ImGuiButtonFlagsPrivate_"][12]["name"] = "ImGuiButtonFlags_NoKeyModifiers" +defs["enums"]["ImGuiButtonFlagsPrivate_"][12]["value"] = "1 << 16" +defs["enums"]["ImGuiButtonFlagsPrivate_"][13] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][13]["calc_value"] = 131072 +defs["enums"]["ImGuiButtonFlagsPrivate_"][13]["name"] = "ImGuiButtonFlags_NoHoldingActiveId" +defs["enums"]["ImGuiButtonFlagsPrivate_"][13]["value"] = "1 << 17" +defs["enums"]["ImGuiButtonFlagsPrivate_"][14] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][14]["calc_value"] = 262144 +defs["enums"]["ImGuiButtonFlagsPrivate_"][14]["name"] = "ImGuiButtonFlags_NoNavFocus" +defs["enums"]["ImGuiButtonFlagsPrivate_"][14]["value"] = "1 << 18" +defs["enums"]["ImGuiButtonFlagsPrivate_"][15] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][15]["calc_value"] = 524288 +defs["enums"]["ImGuiButtonFlagsPrivate_"][15]["name"] = "ImGuiButtonFlags_NoHoveredOnFocus" +defs["enums"]["ImGuiButtonFlagsPrivate_"][15]["value"] = "1 << 19" +defs["enums"]["ImGuiButtonFlagsPrivate_"][16] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][16]["calc_value"] = 1048576 +defs["enums"]["ImGuiButtonFlagsPrivate_"][16]["name"] = "ImGuiButtonFlags_NoSetKeyOwner" +defs["enums"]["ImGuiButtonFlagsPrivate_"][16]["value"] = "1 << 20" +defs["enums"]["ImGuiButtonFlagsPrivate_"][17] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][17]["calc_value"] = 2097152 +defs["enums"]["ImGuiButtonFlagsPrivate_"][17]["name"] = "ImGuiButtonFlags_NoTestKeyOwner" +defs["enums"]["ImGuiButtonFlagsPrivate_"][17]["value"] = "1 << 21" +defs["enums"]["ImGuiButtonFlagsPrivate_"][18] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][18]["calc_value"] = 1008 +defs["enums"]["ImGuiButtonFlagsPrivate_"][18]["name"] = "ImGuiButtonFlags_PressedOnMask_" +defs["enums"]["ImGuiButtonFlagsPrivate_"][18]["value"] = "ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold" +defs["enums"]["ImGuiButtonFlagsPrivate_"][19] = {} +defs["enums"]["ImGuiButtonFlagsPrivate_"][19]["calc_value"] = 32 +defs["enums"]["ImGuiButtonFlagsPrivate_"][19]["name"] = "ImGuiButtonFlags_PressedOnDefault_" +defs["enums"]["ImGuiButtonFlagsPrivate_"][19]["value"] = "ImGuiButtonFlags_PressedOnClickRelease" defs["enums"]["ImGuiButtonFlags_"] = {} defs["enums"]["ImGuiButtonFlags_"][1] = {} defs["enums"]["ImGuiButtonFlags_"][1]["calc_value"] = 0 @@ -495,6 +602,11 @@ defs["enums"]["ImGuiColorEditFlags_"][29] = {} defs["enums"]["ImGuiColorEditFlags_"][29]["calc_value"] = 402653184 defs["enums"]["ImGuiColorEditFlags_"][29]["name"] = "ImGuiColorEditFlags_InputMask_" defs["enums"]["ImGuiColorEditFlags_"][29]["value"] = "ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV" +defs["enums"]["ImGuiComboFlagsPrivate_"] = {} +defs["enums"]["ImGuiComboFlagsPrivate_"][1] = {} +defs["enums"]["ImGuiComboFlagsPrivate_"][1]["calc_value"] = 1048576 +defs["enums"]["ImGuiComboFlagsPrivate_"][1]["name"] = "ImGuiComboFlags_CustomPreview" +defs["enums"]["ImGuiComboFlagsPrivate_"][1]["value"] = "1 << 20" defs["enums"]["ImGuiComboFlags_"] = {} defs["enums"]["ImGuiComboFlags_"][1] = {} defs["enums"]["ImGuiComboFlags_"][1]["calc_value"] = 0 @@ -606,6 +718,65 @@ defs["enums"]["ImGuiConfigFlags_"][13] = {} defs["enums"]["ImGuiConfigFlags_"][13]["calc_value"] = 2097152 defs["enums"]["ImGuiConfigFlags_"][13]["name"] = "ImGuiConfigFlags_IsTouchScreen" defs["enums"]["ImGuiConfigFlags_"][13]["value"] = "1 << 21" +defs["enums"]["ImGuiContextHookType"] = {} +defs["enums"]["ImGuiContextHookType"][1] = {} +defs["enums"]["ImGuiContextHookType"][1]["calc_value"] = 0 +defs["enums"]["ImGuiContextHookType"][1]["name"] = "ImGuiContextHookType_NewFramePre" +defs["enums"]["ImGuiContextHookType"][1]["value"] = "0" +defs["enums"]["ImGuiContextHookType"][2] = {} +defs["enums"]["ImGuiContextHookType"][2]["calc_value"] = 1 +defs["enums"]["ImGuiContextHookType"][2]["name"] = "ImGuiContextHookType_NewFramePost" +defs["enums"]["ImGuiContextHookType"][2]["value"] = "1" +defs["enums"]["ImGuiContextHookType"][3] = {} +defs["enums"]["ImGuiContextHookType"][3]["calc_value"] = 2 +defs["enums"]["ImGuiContextHookType"][3]["name"] = "ImGuiContextHookType_EndFramePre" +defs["enums"]["ImGuiContextHookType"][3]["value"] = "2" +defs["enums"]["ImGuiContextHookType"][4] = {} +defs["enums"]["ImGuiContextHookType"][4]["calc_value"] = 3 +defs["enums"]["ImGuiContextHookType"][4]["name"] = "ImGuiContextHookType_EndFramePost" +defs["enums"]["ImGuiContextHookType"][4]["value"] = "3" +defs["enums"]["ImGuiContextHookType"][5] = {} +defs["enums"]["ImGuiContextHookType"][5]["calc_value"] = 4 +defs["enums"]["ImGuiContextHookType"][5]["name"] = "ImGuiContextHookType_RenderPre" +defs["enums"]["ImGuiContextHookType"][5]["value"] = "4" +defs["enums"]["ImGuiContextHookType"][6] = {} +defs["enums"]["ImGuiContextHookType"][6]["calc_value"] = 5 +defs["enums"]["ImGuiContextHookType"][6]["name"] = "ImGuiContextHookType_RenderPost" +defs["enums"]["ImGuiContextHookType"][6]["value"] = "5" +defs["enums"]["ImGuiContextHookType"][7] = {} +defs["enums"]["ImGuiContextHookType"][7]["calc_value"] = 6 +defs["enums"]["ImGuiContextHookType"][7]["name"] = "ImGuiContextHookType_Shutdown" +defs["enums"]["ImGuiContextHookType"][7]["value"] = "6" +defs["enums"]["ImGuiContextHookType"][8] = {} +defs["enums"]["ImGuiContextHookType"][8]["calc_value"] = 7 +defs["enums"]["ImGuiContextHookType"][8]["name"] = "ImGuiContextHookType_PendingRemoval_" +defs["enums"]["ImGuiContextHookType"][8]["value"] = "7" +defs["enums"]["ImGuiDataAuthority_"] = {} +defs["enums"]["ImGuiDataAuthority_"][1] = {} +defs["enums"]["ImGuiDataAuthority_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiDataAuthority_"][1]["name"] = "ImGuiDataAuthority_Auto" +defs["enums"]["ImGuiDataAuthority_"][1]["value"] = "0" +defs["enums"]["ImGuiDataAuthority_"][2] = {} +defs["enums"]["ImGuiDataAuthority_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiDataAuthority_"][2]["name"] = "ImGuiDataAuthority_DockNode" +defs["enums"]["ImGuiDataAuthority_"][2]["value"] = "1" +defs["enums"]["ImGuiDataAuthority_"][3] = {} +defs["enums"]["ImGuiDataAuthority_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiDataAuthority_"][3]["name"] = "ImGuiDataAuthority_Window" +defs["enums"]["ImGuiDataAuthority_"][3]["value"] = "2" +defs["enums"]["ImGuiDataTypePrivate_"] = {} +defs["enums"]["ImGuiDataTypePrivate_"][1] = {} +defs["enums"]["ImGuiDataTypePrivate_"][1]["calc_value"] = 11 +defs["enums"]["ImGuiDataTypePrivate_"][1]["name"] = "ImGuiDataType_String" +defs["enums"]["ImGuiDataTypePrivate_"][1]["value"] = "ImGuiDataType_COUNT + 1" +defs["enums"]["ImGuiDataTypePrivate_"][2] = {} +defs["enums"]["ImGuiDataTypePrivate_"][2]["calc_value"] = 12 +defs["enums"]["ImGuiDataTypePrivate_"][2]["name"] = "ImGuiDataType_Pointer" +defs["enums"]["ImGuiDataTypePrivate_"][2]["value"] = "ImGuiDataType_COUNT + 1+1" +defs["enums"]["ImGuiDataTypePrivate_"][3] = {} +defs["enums"]["ImGuiDataTypePrivate_"][3]["calc_value"] = 13 +defs["enums"]["ImGuiDataTypePrivate_"][3]["name"] = "ImGuiDataType_ID" +defs["enums"]["ImGuiDataTypePrivate_"][3]["value"] = "ImGuiDataType_COUNT + 1+1+1" defs["enums"]["ImGuiDataType_"] = {} defs["enums"]["ImGuiDataType_"][1] = {} defs["enums"]["ImGuiDataType_"][1]["calc_value"] = 0 @@ -651,6 +822,51 @@ defs["enums"]["ImGuiDataType_"][11] = {} defs["enums"]["ImGuiDataType_"][11]["calc_value"] = 10 defs["enums"]["ImGuiDataType_"][11]["name"] = "ImGuiDataType_COUNT" defs["enums"]["ImGuiDataType_"][11]["value"] = "10" +defs["enums"]["ImGuiDebugLogFlags_"] = {} +defs["enums"]["ImGuiDebugLogFlags_"][1] = {} +defs["enums"]["ImGuiDebugLogFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiDebugLogFlags_"][1]["name"] = "ImGuiDebugLogFlags_None" +defs["enums"]["ImGuiDebugLogFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiDebugLogFlags_"][2] = {} +defs["enums"]["ImGuiDebugLogFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiDebugLogFlags_"][2]["name"] = "ImGuiDebugLogFlags_EventActiveId" +defs["enums"]["ImGuiDebugLogFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiDebugLogFlags_"][3] = {} +defs["enums"]["ImGuiDebugLogFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiDebugLogFlags_"][3]["name"] = "ImGuiDebugLogFlags_EventFocus" +defs["enums"]["ImGuiDebugLogFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiDebugLogFlags_"][4] = {} +defs["enums"]["ImGuiDebugLogFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiDebugLogFlags_"][4]["name"] = "ImGuiDebugLogFlags_EventPopup" +defs["enums"]["ImGuiDebugLogFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiDebugLogFlags_"][5] = {} +defs["enums"]["ImGuiDebugLogFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiDebugLogFlags_"][5]["name"] = "ImGuiDebugLogFlags_EventNav" +defs["enums"]["ImGuiDebugLogFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiDebugLogFlags_"][6] = {} +defs["enums"]["ImGuiDebugLogFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiDebugLogFlags_"][6]["name"] = "ImGuiDebugLogFlags_EventClipper" +defs["enums"]["ImGuiDebugLogFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiDebugLogFlags_"][7] = {} +defs["enums"]["ImGuiDebugLogFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiDebugLogFlags_"][7]["name"] = "ImGuiDebugLogFlags_EventIO" +defs["enums"]["ImGuiDebugLogFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiDebugLogFlags_"][8] = {} +defs["enums"]["ImGuiDebugLogFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiDebugLogFlags_"][8]["name"] = "ImGuiDebugLogFlags_EventDocking" +defs["enums"]["ImGuiDebugLogFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiDebugLogFlags_"][9] = {} +defs["enums"]["ImGuiDebugLogFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiDebugLogFlags_"][9]["name"] = "ImGuiDebugLogFlags_EventViewport" +defs["enums"]["ImGuiDebugLogFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiDebugLogFlags_"][10] = {} +defs["enums"]["ImGuiDebugLogFlags_"][10]["calc_value"] = 255 +defs["enums"]["ImGuiDebugLogFlags_"][10]["name"] = "ImGuiDebugLogFlags_EventMask_" +defs["enums"]["ImGuiDebugLogFlags_"][10]["value"] = "ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport" +defs["enums"]["ImGuiDebugLogFlags_"][11] = {} +defs["enums"]["ImGuiDebugLogFlags_"][11]["calc_value"] = 1024 +defs["enums"]["ImGuiDebugLogFlags_"][11]["name"] = "ImGuiDebugLogFlags_OutputToTTY" +defs["enums"]["ImGuiDebugLogFlags_"][11]["value"] = "1 << 10" defs["enums"]["ImGuiDir_"] = {} defs["enums"]["ImGuiDir_"][1] = {} defs["enums"]["ImGuiDir_"][1]["calc_value"] = -1 @@ -676,6 +892,83 @@ defs["enums"]["ImGuiDir_"][6] = {} defs["enums"]["ImGuiDir_"][6]["calc_value"] = 4 defs["enums"]["ImGuiDir_"][6]["name"] = "ImGuiDir_COUNT" defs["enums"]["ImGuiDir_"][6]["value"] = "4" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][1] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][1]["calc_value"] = 1024 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][1]["name"] = "ImGuiDockNodeFlags_DockSpace" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][1]["value"] = "1 << 10" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][2] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][2]["calc_value"] = 2048 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][2]["name"] = "ImGuiDockNodeFlags_CentralNode" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][2]["value"] = "1 << 11" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][3] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][3]["calc_value"] = 4096 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][3]["name"] = "ImGuiDockNodeFlags_NoTabBar" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][3]["value"] = "1 << 12" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][4] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][4]["calc_value"] = 8192 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][4]["name"] = "ImGuiDockNodeFlags_HiddenTabBar" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][4]["value"] = "1 << 13" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][5] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][5]["calc_value"] = 16384 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][5]["name"] = "ImGuiDockNodeFlags_NoWindowMenuButton" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][5]["value"] = "1 << 14" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][6] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][6]["calc_value"] = 32768 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][6]["name"] = "ImGuiDockNodeFlags_NoCloseButton" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][6]["value"] = "1 << 15" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][7] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][7]["calc_value"] = 65536 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][7]["name"] = "ImGuiDockNodeFlags_NoDocking" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][7]["value"] = "1 << 16" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][8] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][8]["calc_value"] = 131072 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][8]["name"] = "ImGuiDockNodeFlags_NoDockingSplitMe" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][8]["value"] = "1 << 17" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][9] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][9]["calc_value"] = 262144 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][9]["name"] = "ImGuiDockNodeFlags_NoDockingSplitOther" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][9]["value"] = "1 << 18" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][10] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][10]["calc_value"] = 524288 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][10]["name"] = "ImGuiDockNodeFlags_NoDockingOverMe" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][10]["value"] = "1 << 19" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][11] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][11]["calc_value"] = 1048576 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][11]["name"] = "ImGuiDockNodeFlags_NoDockingOverOther" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][11]["value"] = "1 << 20" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][12] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][12]["calc_value"] = 2097152 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][12]["name"] = "ImGuiDockNodeFlags_NoDockingOverEmpty" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][12]["value"] = "1 << 21" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][13] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][13]["calc_value"] = 4194304 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][13]["name"] = "ImGuiDockNodeFlags_NoResizeX" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][13]["value"] = "1 << 22" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][14] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][14]["calc_value"] = 8388608 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][14]["name"] = "ImGuiDockNodeFlags_NoResizeY" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][14]["value"] = "1 << 23" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][15] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][15]["calc_value"] = -1 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][15]["name"] = "ImGuiDockNodeFlags_SharedFlagsInheritMask_" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][15]["value"] = "~0" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][16] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][16]["calc_value"] = 12582944 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][16]["name"] = "ImGuiDockNodeFlags_NoResizeFlagsMask_" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][16]["value"] = "ImGuiDockNodeFlags_NoResize | ImGuiDockNodeFlags_NoResizeX | ImGuiDockNodeFlags_NoResizeY" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][17] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][17]["calc_value"] = 12713072 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][17]["name"] = "ImGuiDockNodeFlags_LocalFlagsMask_" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][17]["value"] = "ImGuiDockNodeFlags_NoSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][18] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][18]["calc_value"] = 12712048 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][18]["name"] = "ImGuiDockNodeFlags_LocalFlagsTransferMask_" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][18]["value"] = "ImGuiDockNodeFlags_LocalFlagsMask_ & ~ImGuiDockNodeFlags_DockSpace" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][19] = {} +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][19]["calc_value"] = 12712992 +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][19]["name"] = "ImGuiDockNodeFlags_SavedFlagsMask_" +defs["enums"]["ImGuiDockNodeFlagsPrivate_"][19]["value"] = "ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking" defs["enums"]["ImGuiDockNodeFlags_"] = {} defs["enums"]["ImGuiDockNodeFlags_"][1] = {} defs["enums"]["ImGuiDockNodeFlags_"][1]["calc_value"] = 0 @@ -705,6 +998,23 @@ defs["enums"]["ImGuiDockNodeFlags_"][7] = {} defs["enums"]["ImGuiDockNodeFlags_"][7]["calc_value"] = 64 defs["enums"]["ImGuiDockNodeFlags_"][7]["name"] = "ImGuiDockNodeFlags_AutoHideTabBar" defs["enums"]["ImGuiDockNodeFlags_"][7]["value"] = "1 << 6" +defs["enums"]["ImGuiDockNodeState"] = {} +defs["enums"]["ImGuiDockNodeState"][1] = {} +defs["enums"]["ImGuiDockNodeState"][1]["calc_value"] = 0 +defs["enums"]["ImGuiDockNodeState"][1]["name"] = "ImGuiDockNodeState_Unknown" +defs["enums"]["ImGuiDockNodeState"][1]["value"] = "0" +defs["enums"]["ImGuiDockNodeState"][2] = {} +defs["enums"]["ImGuiDockNodeState"][2]["calc_value"] = 1 +defs["enums"]["ImGuiDockNodeState"][2]["name"] = "ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow" +defs["enums"]["ImGuiDockNodeState"][2]["value"] = "1" +defs["enums"]["ImGuiDockNodeState"][3] = {} +defs["enums"]["ImGuiDockNodeState"][3]["calc_value"] = 2 +defs["enums"]["ImGuiDockNodeState"][3]["name"] = "ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing" +defs["enums"]["ImGuiDockNodeState"][3]["value"] = "2" +defs["enums"]["ImGuiDockNodeState"][4] = {} +defs["enums"]["ImGuiDockNodeState"][4]["calc_value"] = 3 +defs["enums"]["ImGuiDockNodeState"][4]["name"] = "ImGuiDockNodeState_HostWindowVisible" +defs["enums"]["ImGuiDockNodeState"][4]["value"] = "3" defs["enums"]["ImGuiDragDropFlags_"] = {} defs["enums"]["ImGuiDragDropFlags_"][1] = {} defs["enums"]["ImGuiDragDropFlags_"][1]["calc_value"] = 0 @@ -885,6 +1195,182 @@ defs["enums"]["ImGuiHoveredFlags_"][16] = {} defs["enums"]["ImGuiHoveredFlags_"][16]["calc_value"] = 8192 defs["enums"]["ImGuiHoveredFlags_"][16]["name"] = "ImGuiHoveredFlags_NoSharedDelay" defs["enums"]["ImGuiHoveredFlags_"][16]["value"] = "1 << 13" +defs["enums"]["ImGuiInputEventType"] = {} +defs["enums"]["ImGuiInputEventType"][1] = {} +defs["enums"]["ImGuiInputEventType"][1]["calc_value"] = 0 +defs["enums"]["ImGuiInputEventType"][1]["name"] = "ImGuiInputEventType_None" +defs["enums"]["ImGuiInputEventType"][1]["value"] = "0" +defs["enums"]["ImGuiInputEventType"][2] = {} +defs["enums"]["ImGuiInputEventType"][2]["calc_value"] = 1 +defs["enums"]["ImGuiInputEventType"][2]["name"] = "ImGuiInputEventType_MousePos" +defs["enums"]["ImGuiInputEventType"][2]["value"] = "1" +defs["enums"]["ImGuiInputEventType"][3] = {} +defs["enums"]["ImGuiInputEventType"][3]["calc_value"] = 2 +defs["enums"]["ImGuiInputEventType"][3]["name"] = "ImGuiInputEventType_MouseWheel" +defs["enums"]["ImGuiInputEventType"][3]["value"] = "2" +defs["enums"]["ImGuiInputEventType"][4] = {} +defs["enums"]["ImGuiInputEventType"][4]["calc_value"] = 3 +defs["enums"]["ImGuiInputEventType"][4]["name"] = "ImGuiInputEventType_MouseButton" +defs["enums"]["ImGuiInputEventType"][4]["value"] = "3" +defs["enums"]["ImGuiInputEventType"][5] = {} +defs["enums"]["ImGuiInputEventType"][5]["calc_value"] = 4 +defs["enums"]["ImGuiInputEventType"][5]["name"] = "ImGuiInputEventType_MouseViewport" +defs["enums"]["ImGuiInputEventType"][5]["value"] = "4" +defs["enums"]["ImGuiInputEventType"][6] = {} +defs["enums"]["ImGuiInputEventType"][6]["calc_value"] = 5 +defs["enums"]["ImGuiInputEventType"][6]["name"] = "ImGuiInputEventType_Key" +defs["enums"]["ImGuiInputEventType"][6]["value"] = "5" +defs["enums"]["ImGuiInputEventType"][7] = {} +defs["enums"]["ImGuiInputEventType"][7]["calc_value"] = 6 +defs["enums"]["ImGuiInputEventType"][7]["name"] = "ImGuiInputEventType_Text" +defs["enums"]["ImGuiInputEventType"][7]["value"] = "6" +defs["enums"]["ImGuiInputEventType"][8] = {} +defs["enums"]["ImGuiInputEventType"][8]["calc_value"] = 7 +defs["enums"]["ImGuiInputEventType"][8]["name"] = "ImGuiInputEventType_Focus" +defs["enums"]["ImGuiInputEventType"][8]["value"] = "7" +defs["enums"]["ImGuiInputEventType"][9] = {} +defs["enums"]["ImGuiInputEventType"][9]["calc_value"] = 8 +defs["enums"]["ImGuiInputEventType"][9]["name"] = "ImGuiInputEventType_COUNT" +defs["enums"]["ImGuiInputEventType"][9]["value"] = "8" +defs["enums"]["ImGuiInputFlags_"] = {} +defs["enums"]["ImGuiInputFlags_"][1] = {} +defs["enums"]["ImGuiInputFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiInputFlags_"][1]["name"] = "ImGuiInputFlags_None" +defs["enums"]["ImGuiInputFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiInputFlags_"][2] = {} +defs["enums"]["ImGuiInputFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiInputFlags_"][2]["name"] = "ImGuiInputFlags_Repeat" +defs["enums"]["ImGuiInputFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiInputFlags_"][3] = {} +defs["enums"]["ImGuiInputFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiInputFlags_"][3]["name"] = "ImGuiInputFlags_RepeatRateDefault" +defs["enums"]["ImGuiInputFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiInputFlags_"][4] = {} +defs["enums"]["ImGuiInputFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiInputFlags_"][4]["name"] = "ImGuiInputFlags_RepeatRateNavMove" +defs["enums"]["ImGuiInputFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiInputFlags_"][5] = {} +defs["enums"]["ImGuiInputFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiInputFlags_"][5]["name"] = "ImGuiInputFlags_RepeatRateNavTweak" +defs["enums"]["ImGuiInputFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiInputFlags_"][6] = {} +defs["enums"]["ImGuiInputFlags_"][6]["calc_value"] = 14 +defs["enums"]["ImGuiInputFlags_"][6]["name"] = "ImGuiInputFlags_RepeatRateMask_" +defs["enums"]["ImGuiInputFlags_"][6]["value"] = "ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak" +defs["enums"]["ImGuiInputFlags_"][7] = {} +defs["enums"]["ImGuiInputFlags_"][7]["calc_value"] = 16 +defs["enums"]["ImGuiInputFlags_"][7]["name"] = "ImGuiInputFlags_CondHovered" +defs["enums"]["ImGuiInputFlags_"][7]["value"] = "1 << 4" +defs["enums"]["ImGuiInputFlags_"][8] = {} +defs["enums"]["ImGuiInputFlags_"][8]["calc_value"] = 32 +defs["enums"]["ImGuiInputFlags_"][8]["name"] = "ImGuiInputFlags_CondActive" +defs["enums"]["ImGuiInputFlags_"][8]["value"] = "1 << 5" +defs["enums"]["ImGuiInputFlags_"][9] = {} +defs["enums"]["ImGuiInputFlags_"][9]["calc_value"] = 48 +defs["enums"]["ImGuiInputFlags_"][9]["name"] = "ImGuiInputFlags_CondDefault_" +defs["enums"]["ImGuiInputFlags_"][9]["value"] = "ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive" +defs["enums"]["ImGuiInputFlags_"][10] = {} +defs["enums"]["ImGuiInputFlags_"][10]["calc_value"] = 48 +defs["enums"]["ImGuiInputFlags_"][10]["name"] = "ImGuiInputFlags_CondMask_" +defs["enums"]["ImGuiInputFlags_"][10]["value"] = "ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive" +defs["enums"]["ImGuiInputFlags_"][11] = {} +defs["enums"]["ImGuiInputFlags_"][11]["calc_value"] = 64 +defs["enums"]["ImGuiInputFlags_"][11]["name"] = "ImGuiInputFlags_LockThisFrame" +defs["enums"]["ImGuiInputFlags_"][11]["value"] = "1 << 6" +defs["enums"]["ImGuiInputFlags_"][12] = {} +defs["enums"]["ImGuiInputFlags_"][12]["calc_value"] = 128 +defs["enums"]["ImGuiInputFlags_"][12]["name"] = "ImGuiInputFlags_LockUntilRelease" +defs["enums"]["ImGuiInputFlags_"][12]["value"] = "1 << 7" +defs["enums"]["ImGuiInputFlags_"][13] = {} +defs["enums"]["ImGuiInputFlags_"][13]["calc_value"] = 256 +defs["enums"]["ImGuiInputFlags_"][13]["name"] = "ImGuiInputFlags_RouteFocused" +defs["enums"]["ImGuiInputFlags_"][13]["value"] = "1 << 8" +defs["enums"]["ImGuiInputFlags_"][14] = {} +defs["enums"]["ImGuiInputFlags_"][14]["calc_value"] = 512 +defs["enums"]["ImGuiInputFlags_"][14]["name"] = "ImGuiInputFlags_RouteGlobalLow" +defs["enums"]["ImGuiInputFlags_"][14]["value"] = "1 << 9" +defs["enums"]["ImGuiInputFlags_"][15] = {} +defs["enums"]["ImGuiInputFlags_"][15]["calc_value"] = 1024 +defs["enums"]["ImGuiInputFlags_"][15]["name"] = "ImGuiInputFlags_RouteGlobal" +defs["enums"]["ImGuiInputFlags_"][15]["value"] = "1 << 10" +defs["enums"]["ImGuiInputFlags_"][16] = {} +defs["enums"]["ImGuiInputFlags_"][16]["calc_value"] = 2048 +defs["enums"]["ImGuiInputFlags_"][16]["name"] = "ImGuiInputFlags_RouteGlobalHigh" +defs["enums"]["ImGuiInputFlags_"][16]["value"] = "1 << 11" +defs["enums"]["ImGuiInputFlags_"][17] = {} +defs["enums"]["ImGuiInputFlags_"][17]["calc_value"] = 3840 +defs["enums"]["ImGuiInputFlags_"][17]["name"] = "ImGuiInputFlags_RouteMask_" +defs["enums"]["ImGuiInputFlags_"][17]["value"] = "ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh" +defs["enums"]["ImGuiInputFlags_"][18] = {} +defs["enums"]["ImGuiInputFlags_"][18]["calc_value"] = 4096 +defs["enums"]["ImGuiInputFlags_"][18]["name"] = "ImGuiInputFlags_RouteAlways" +defs["enums"]["ImGuiInputFlags_"][18]["value"] = "1 << 12" +defs["enums"]["ImGuiInputFlags_"][19] = {} +defs["enums"]["ImGuiInputFlags_"][19]["calc_value"] = 8192 +defs["enums"]["ImGuiInputFlags_"][19]["name"] = "ImGuiInputFlags_RouteUnlessBgFocused" +defs["enums"]["ImGuiInputFlags_"][19]["value"] = "1 << 13" +defs["enums"]["ImGuiInputFlags_"][20] = {} +defs["enums"]["ImGuiInputFlags_"][20]["calc_value"] = 12288 +defs["enums"]["ImGuiInputFlags_"][20]["name"] = "ImGuiInputFlags_RouteExtraMask_" +defs["enums"]["ImGuiInputFlags_"][20]["value"] = "ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused" +defs["enums"]["ImGuiInputFlags_"][21] = {} +defs["enums"]["ImGuiInputFlags_"][21]["calc_value"] = 15 +defs["enums"]["ImGuiInputFlags_"][21]["name"] = "ImGuiInputFlags_SupportedByIsKeyPressed" +defs["enums"]["ImGuiInputFlags_"][21]["value"] = "ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_" +defs["enums"]["ImGuiInputFlags_"][22] = {} +defs["enums"]["ImGuiInputFlags_"][22]["calc_value"] = 16143 +defs["enums"]["ImGuiInputFlags_"][22]["name"] = "ImGuiInputFlags_SupportedByShortcut" +defs["enums"]["ImGuiInputFlags_"][22]["value"] = "ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_" +defs["enums"]["ImGuiInputFlags_"][23] = {} +defs["enums"]["ImGuiInputFlags_"][23]["calc_value"] = 192 +defs["enums"]["ImGuiInputFlags_"][23]["name"] = "ImGuiInputFlags_SupportedBySetKeyOwner" +defs["enums"]["ImGuiInputFlags_"][23]["value"] = "ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease" +defs["enums"]["ImGuiInputFlags_"][24] = {} +defs["enums"]["ImGuiInputFlags_"][24]["calc_value"] = 240 +defs["enums"]["ImGuiInputFlags_"][24]["name"] = "ImGuiInputFlags_SupportedBySetItemKeyOwner" +defs["enums"]["ImGuiInputFlags_"][24]["value"] = "ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_" +defs["enums"]["ImGuiInputSource"] = {} +defs["enums"]["ImGuiInputSource"][1] = {} +defs["enums"]["ImGuiInputSource"][1]["calc_value"] = 0 +defs["enums"]["ImGuiInputSource"][1]["name"] = "ImGuiInputSource_None" +defs["enums"]["ImGuiInputSource"][1]["value"] = "0" +defs["enums"]["ImGuiInputSource"][2] = {} +defs["enums"]["ImGuiInputSource"][2]["calc_value"] = 1 +defs["enums"]["ImGuiInputSource"][2]["name"] = "ImGuiInputSource_Mouse" +defs["enums"]["ImGuiInputSource"][2]["value"] = "1" +defs["enums"]["ImGuiInputSource"][3] = {} +defs["enums"]["ImGuiInputSource"][3]["calc_value"] = 2 +defs["enums"]["ImGuiInputSource"][3]["name"] = "ImGuiInputSource_Keyboard" +defs["enums"]["ImGuiInputSource"][3]["value"] = "2" +defs["enums"]["ImGuiInputSource"][4] = {} +defs["enums"]["ImGuiInputSource"][4]["calc_value"] = 3 +defs["enums"]["ImGuiInputSource"][4]["name"] = "ImGuiInputSource_Gamepad" +defs["enums"]["ImGuiInputSource"][4]["value"] = "3" +defs["enums"]["ImGuiInputSource"][5] = {} +defs["enums"]["ImGuiInputSource"][5]["calc_value"] = 4 +defs["enums"]["ImGuiInputSource"][5]["name"] = "ImGuiInputSource_Clipboard" +defs["enums"]["ImGuiInputSource"][5]["value"] = "4" +defs["enums"]["ImGuiInputSource"][6] = {} +defs["enums"]["ImGuiInputSource"][6]["calc_value"] = 5 +defs["enums"]["ImGuiInputSource"][6]["name"] = "ImGuiInputSource_Nav" +defs["enums"]["ImGuiInputSource"][6]["value"] = "5" +defs["enums"]["ImGuiInputSource"][7] = {} +defs["enums"]["ImGuiInputSource"][7]["calc_value"] = 6 +defs["enums"]["ImGuiInputSource"][7]["name"] = "ImGuiInputSource_COUNT" +defs["enums"]["ImGuiInputSource"][7]["value"] = "6" +defs["enums"]["ImGuiInputTextFlagsPrivate_"] = {} +defs["enums"]["ImGuiInputTextFlagsPrivate_"][1] = {} +defs["enums"]["ImGuiInputTextFlagsPrivate_"][1]["calc_value"] = 67108864 +defs["enums"]["ImGuiInputTextFlagsPrivate_"][1]["name"] = "ImGuiInputTextFlags_Multiline" +defs["enums"]["ImGuiInputTextFlagsPrivate_"][1]["value"] = "1 << 26" +defs["enums"]["ImGuiInputTextFlagsPrivate_"][2] = {} +defs["enums"]["ImGuiInputTextFlagsPrivate_"][2]["calc_value"] = 134217728 +defs["enums"]["ImGuiInputTextFlagsPrivate_"][2]["name"] = "ImGuiInputTextFlags_NoMarkEdited" +defs["enums"]["ImGuiInputTextFlagsPrivate_"][2]["value"] = "1 << 27" +defs["enums"]["ImGuiInputTextFlagsPrivate_"][3] = {} +defs["enums"]["ImGuiInputTextFlagsPrivate_"][3]["calc_value"] = 268435456 +defs["enums"]["ImGuiInputTextFlagsPrivate_"][3]["name"] = "ImGuiInputTextFlags_MergedItem" +defs["enums"]["ImGuiInputTextFlagsPrivate_"][3]["value"] = "1 << 28" defs["enums"]["ImGuiInputTextFlags_"] = {} defs["enums"]["ImGuiInputTextFlags_"][1] = {} defs["enums"]["ImGuiInputTextFlags_"][1]["calc_value"] = 0 @@ -974,6 +1460,96 @@ defs["enums"]["ImGuiInputTextFlags_"][22] = {} defs["enums"]["ImGuiInputTextFlags_"][22]["calc_value"] = 1048576 defs["enums"]["ImGuiInputTextFlags_"][22]["name"] = "ImGuiInputTextFlags_EscapeClearsAll" defs["enums"]["ImGuiInputTextFlags_"][22]["value"] = "1 << 20" +defs["enums"]["ImGuiItemFlags_"] = {} +defs["enums"]["ImGuiItemFlags_"][1] = {} +defs["enums"]["ImGuiItemFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiItemFlags_"][1]["name"] = "ImGuiItemFlags_None" +defs["enums"]["ImGuiItemFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiItemFlags_"][2] = {} +defs["enums"]["ImGuiItemFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiItemFlags_"][2]["name"] = "ImGuiItemFlags_NoTabStop" +defs["enums"]["ImGuiItemFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiItemFlags_"][3] = {} +defs["enums"]["ImGuiItemFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiItemFlags_"][3]["name"] = "ImGuiItemFlags_ButtonRepeat" +defs["enums"]["ImGuiItemFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiItemFlags_"][4] = {} +defs["enums"]["ImGuiItemFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiItemFlags_"][4]["name"] = "ImGuiItemFlags_Disabled" +defs["enums"]["ImGuiItemFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiItemFlags_"][5] = {} +defs["enums"]["ImGuiItemFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiItemFlags_"][5]["name"] = "ImGuiItemFlags_NoNav" +defs["enums"]["ImGuiItemFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiItemFlags_"][6] = {} +defs["enums"]["ImGuiItemFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiItemFlags_"][6]["name"] = "ImGuiItemFlags_NoNavDefaultFocus" +defs["enums"]["ImGuiItemFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiItemFlags_"][7] = {} +defs["enums"]["ImGuiItemFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiItemFlags_"][7]["name"] = "ImGuiItemFlags_SelectableDontClosePopup" +defs["enums"]["ImGuiItemFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiItemFlags_"][8] = {} +defs["enums"]["ImGuiItemFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiItemFlags_"][8]["name"] = "ImGuiItemFlags_MixedValue" +defs["enums"]["ImGuiItemFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiItemFlags_"][9] = {} +defs["enums"]["ImGuiItemFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiItemFlags_"][9]["name"] = "ImGuiItemFlags_ReadOnly" +defs["enums"]["ImGuiItemFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiItemFlags_"][10] = {} +defs["enums"]["ImGuiItemFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiItemFlags_"][10]["name"] = "ImGuiItemFlags_NoWindowHoverableCheck" +defs["enums"]["ImGuiItemFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiItemFlags_"][11] = {} +defs["enums"]["ImGuiItemFlags_"][11]["calc_value"] = 1024 +defs["enums"]["ImGuiItemFlags_"][11]["name"] = "ImGuiItemFlags_Inputable" +defs["enums"]["ImGuiItemFlags_"][11]["value"] = "1 << 10" +defs["enums"]["ImGuiItemStatusFlags_"] = {} +defs["enums"]["ImGuiItemStatusFlags_"][1] = {} +defs["enums"]["ImGuiItemStatusFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiItemStatusFlags_"][1]["name"] = "ImGuiItemStatusFlags_None" +defs["enums"]["ImGuiItemStatusFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiItemStatusFlags_"][2] = {} +defs["enums"]["ImGuiItemStatusFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiItemStatusFlags_"][2]["name"] = "ImGuiItemStatusFlags_HoveredRect" +defs["enums"]["ImGuiItemStatusFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiItemStatusFlags_"][3] = {} +defs["enums"]["ImGuiItemStatusFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiItemStatusFlags_"][3]["name"] = "ImGuiItemStatusFlags_HasDisplayRect" +defs["enums"]["ImGuiItemStatusFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiItemStatusFlags_"][4] = {} +defs["enums"]["ImGuiItemStatusFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiItemStatusFlags_"][4]["name"] = "ImGuiItemStatusFlags_Edited" +defs["enums"]["ImGuiItemStatusFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiItemStatusFlags_"][5] = {} +defs["enums"]["ImGuiItemStatusFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiItemStatusFlags_"][5]["name"] = "ImGuiItemStatusFlags_ToggledSelection" +defs["enums"]["ImGuiItemStatusFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiItemStatusFlags_"][6] = {} +defs["enums"]["ImGuiItemStatusFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiItemStatusFlags_"][6]["name"] = "ImGuiItemStatusFlags_ToggledOpen" +defs["enums"]["ImGuiItemStatusFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiItemStatusFlags_"][7] = {} +defs["enums"]["ImGuiItemStatusFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiItemStatusFlags_"][7]["name"] = "ImGuiItemStatusFlags_HasDeactivated" +defs["enums"]["ImGuiItemStatusFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiItemStatusFlags_"][8] = {} +defs["enums"]["ImGuiItemStatusFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiItemStatusFlags_"][8]["name"] = "ImGuiItemStatusFlags_Deactivated" +defs["enums"]["ImGuiItemStatusFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiItemStatusFlags_"][9] = {} +defs["enums"]["ImGuiItemStatusFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiItemStatusFlags_"][9]["name"] = "ImGuiItemStatusFlags_HoveredWindow" +defs["enums"]["ImGuiItemStatusFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiItemStatusFlags_"][10] = {} +defs["enums"]["ImGuiItemStatusFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiItemStatusFlags_"][10]["name"] = "ImGuiItemStatusFlags_FocusedByTabbing" +defs["enums"]["ImGuiItemStatusFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiItemStatusFlags_"][11] = {} +defs["enums"]["ImGuiItemStatusFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiItemStatusFlags_"][11]["name"] = "ImGuiItemStatusFlags_Visible" +defs["enums"]["ImGuiItemStatusFlags_"][11]["value"] = "1 << 9" defs["enums"]["ImGuiKey"] = {} defs["enums"]["ImGuiKey"][1] = {} defs["enums"]["ImGuiKey"][1]["calc_value"] = 0 @@ -1591,6 +2167,73 @@ defs["enums"]["ImGuiKey"][154] = {} defs["enums"]["ImGuiKey"][154]["calc_value"] = 0 defs["enums"]["ImGuiKey"][154]["name"] = "ImGuiKey_KeysData_OFFSET" defs["enums"]["ImGuiKey"][154]["value"] = "0" +defs["enums"]["ImGuiLayoutType_"] = {} +defs["enums"]["ImGuiLayoutType_"][1] = {} +defs["enums"]["ImGuiLayoutType_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiLayoutType_"][1]["name"] = "ImGuiLayoutType_Horizontal" +defs["enums"]["ImGuiLayoutType_"][1]["value"] = "0" +defs["enums"]["ImGuiLayoutType_"][2] = {} +defs["enums"]["ImGuiLayoutType_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiLayoutType_"][2]["name"] = "ImGuiLayoutType_Vertical" +defs["enums"]["ImGuiLayoutType_"][2]["value"] = "1" +defs["enums"]["ImGuiLocKey"] = {} +defs["enums"]["ImGuiLocKey"][1] = {} +defs["enums"]["ImGuiLocKey"][1]["calc_value"] = 0 +defs["enums"]["ImGuiLocKey"][1]["name"] = "ImGuiLocKey_TableSizeOne" +defs["enums"]["ImGuiLocKey"][1]["value"] = "0" +defs["enums"]["ImGuiLocKey"][2] = {} +defs["enums"]["ImGuiLocKey"][2]["calc_value"] = 1 +defs["enums"]["ImGuiLocKey"][2]["name"] = "ImGuiLocKey_TableSizeAllFit" +defs["enums"]["ImGuiLocKey"][2]["value"] = "1" +defs["enums"]["ImGuiLocKey"][3] = {} +defs["enums"]["ImGuiLocKey"][3]["calc_value"] = 2 +defs["enums"]["ImGuiLocKey"][3]["name"] = "ImGuiLocKey_TableSizeAllDefault" +defs["enums"]["ImGuiLocKey"][3]["value"] = "2" +defs["enums"]["ImGuiLocKey"][4] = {} +defs["enums"]["ImGuiLocKey"][4]["calc_value"] = 3 +defs["enums"]["ImGuiLocKey"][4]["name"] = "ImGuiLocKey_TableResetOrder" +defs["enums"]["ImGuiLocKey"][4]["value"] = "3" +defs["enums"]["ImGuiLocKey"][5] = {} +defs["enums"]["ImGuiLocKey"][5]["calc_value"] = 4 +defs["enums"]["ImGuiLocKey"][5]["name"] = "ImGuiLocKey_WindowingMainMenuBar" +defs["enums"]["ImGuiLocKey"][5]["value"] = "4" +defs["enums"]["ImGuiLocKey"][6] = {} +defs["enums"]["ImGuiLocKey"][6]["calc_value"] = 5 +defs["enums"]["ImGuiLocKey"][6]["name"] = "ImGuiLocKey_WindowingPopup" +defs["enums"]["ImGuiLocKey"][6]["value"] = "5" +defs["enums"]["ImGuiLocKey"][7] = {} +defs["enums"]["ImGuiLocKey"][7]["calc_value"] = 6 +defs["enums"]["ImGuiLocKey"][7]["name"] = "ImGuiLocKey_WindowingUntitled" +defs["enums"]["ImGuiLocKey"][7]["value"] = "6" +defs["enums"]["ImGuiLocKey"][8] = {} +defs["enums"]["ImGuiLocKey"][8]["calc_value"] = 7 +defs["enums"]["ImGuiLocKey"][8]["name"] = "ImGuiLocKey_DockingHideTabBar" +defs["enums"]["ImGuiLocKey"][8]["value"] = "7" +defs["enums"]["ImGuiLocKey"][9] = {} +defs["enums"]["ImGuiLocKey"][9]["calc_value"] = 8 +defs["enums"]["ImGuiLocKey"][9]["name"] = "ImGuiLocKey_COUNT" +defs["enums"]["ImGuiLocKey"][9]["value"] = "8" +defs["enums"]["ImGuiLogType"] = {} +defs["enums"]["ImGuiLogType"][1] = {} +defs["enums"]["ImGuiLogType"][1]["calc_value"] = 0 +defs["enums"]["ImGuiLogType"][1]["name"] = "ImGuiLogType_None" +defs["enums"]["ImGuiLogType"][1]["value"] = "0" +defs["enums"]["ImGuiLogType"][2] = {} +defs["enums"]["ImGuiLogType"][2]["calc_value"] = 1 +defs["enums"]["ImGuiLogType"][2]["name"] = "ImGuiLogType_TTY" +defs["enums"]["ImGuiLogType"][2]["value"] = "1" +defs["enums"]["ImGuiLogType"][3] = {} +defs["enums"]["ImGuiLogType"][3]["calc_value"] = 2 +defs["enums"]["ImGuiLogType"][3]["name"] = "ImGuiLogType_File" +defs["enums"]["ImGuiLogType"][3]["value"] = "2" +defs["enums"]["ImGuiLogType"][4] = {} +defs["enums"]["ImGuiLogType"][4]["calc_value"] = 3 +defs["enums"]["ImGuiLogType"][4]["name"] = "ImGuiLogType_Buffer" +defs["enums"]["ImGuiLogType"][4]["value"] = "3" +defs["enums"]["ImGuiLogType"][5] = {} +defs["enums"]["ImGuiLogType"][5]["calc_value"] = 4 +defs["enums"]["ImGuiLogType"][5]["name"] = "ImGuiLogType_Clipboard" +defs["enums"]["ImGuiLogType"][5]["value"] = "4" defs["enums"]["ImGuiMouseButton_"] = {} defs["enums"]["ImGuiMouseButton_"][1] = {} defs["enums"]["ImGuiMouseButton_"][1]["calc_value"] = 0 @@ -1653,6 +2296,27 @@ defs["enums"]["ImGuiMouseCursor_"][11] = {} defs["enums"]["ImGuiMouseCursor_"][11]["calc_value"] = 9 defs["enums"]["ImGuiMouseCursor_"][11]["name"] = "ImGuiMouseCursor_COUNT" defs["enums"]["ImGuiMouseCursor_"][11]["value"] = "9" +defs["enums"]["ImGuiNavHighlightFlags_"] = {} +defs["enums"]["ImGuiNavHighlightFlags_"][1] = {} +defs["enums"]["ImGuiNavHighlightFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiNavHighlightFlags_"][1]["name"] = "ImGuiNavHighlightFlags_None" +defs["enums"]["ImGuiNavHighlightFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiNavHighlightFlags_"][2] = {} +defs["enums"]["ImGuiNavHighlightFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiNavHighlightFlags_"][2]["name"] = "ImGuiNavHighlightFlags_TypeDefault" +defs["enums"]["ImGuiNavHighlightFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiNavHighlightFlags_"][3] = {} +defs["enums"]["ImGuiNavHighlightFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiNavHighlightFlags_"][3]["name"] = "ImGuiNavHighlightFlags_TypeThin" +defs["enums"]["ImGuiNavHighlightFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiNavHighlightFlags_"][4] = {} +defs["enums"]["ImGuiNavHighlightFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiNavHighlightFlags_"][4]["name"] = "ImGuiNavHighlightFlags_AlwaysDraw" +defs["enums"]["ImGuiNavHighlightFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiNavHighlightFlags_"][5] = {} +defs["enums"]["ImGuiNavHighlightFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiNavHighlightFlags_"][5]["name"] = "ImGuiNavHighlightFlags_NoRounding" +defs["enums"]["ImGuiNavHighlightFlags_"][5]["value"] = "1 << 3" defs["enums"]["ImGuiNavInput"] = {} defs["enums"]["ImGuiNavInput"][1] = {} defs["enums"]["ImGuiNavInput"][1]["calc_value"] = 0 @@ -1722,6 +2386,172 @@ defs["enums"]["ImGuiNavInput"][17] = {} defs["enums"]["ImGuiNavInput"][17]["calc_value"] = 16 defs["enums"]["ImGuiNavInput"][17]["name"] = "ImGuiNavInput_COUNT" defs["enums"]["ImGuiNavInput"][17]["value"] = "16" +defs["enums"]["ImGuiNavLayer"] = {} +defs["enums"]["ImGuiNavLayer"][1] = {} +defs["enums"]["ImGuiNavLayer"][1]["calc_value"] = 0 +defs["enums"]["ImGuiNavLayer"][1]["name"] = "ImGuiNavLayer_Main" +defs["enums"]["ImGuiNavLayer"][1]["value"] = "0" +defs["enums"]["ImGuiNavLayer"][2] = {} +defs["enums"]["ImGuiNavLayer"][2]["calc_value"] = 1 +defs["enums"]["ImGuiNavLayer"][2]["name"] = "ImGuiNavLayer_Menu" +defs["enums"]["ImGuiNavLayer"][2]["value"] = "1" +defs["enums"]["ImGuiNavLayer"][3] = {} +defs["enums"]["ImGuiNavLayer"][3]["calc_value"] = 2 +defs["enums"]["ImGuiNavLayer"][3]["name"] = "ImGuiNavLayer_COUNT" +defs["enums"]["ImGuiNavLayer"][3]["value"] = "2" +defs["enums"]["ImGuiNavMoveFlags_"] = {} +defs["enums"]["ImGuiNavMoveFlags_"][1] = {} +defs["enums"]["ImGuiNavMoveFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiNavMoveFlags_"][1]["name"] = "ImGuiNavMoveFlags_None" +defs["enums"]["ImGuiNavMoveFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiNavMoveFlags_"][2] = {} +defs["enums"]["ImGuiNavMoveFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiNavMoveFlags_"][2]["name"] = "ImGuiNavMoveFlags_LoopX" +defs["enums"]["ImGuiNavMoveFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiNavMoveFlags_"][3] = {} +defs["enums"]["ImGuiNavMoveFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiNavMoveFlags_"][3]["name"] = "ImGuiNavMoveFlags_LoopY" +defs["enums"]["ImGuiNavMoveFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiNavMoveFlags_"][4] = {} +defs["enums"]["ImGuiNavMoveFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiNavMoveFlags_"][4]["name"] = "ImGuiNavMoveFlags_WrapX" +defs["enums"]["ImGuiNavMoveFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiNavMoveFlags_"][5] = {} +defs["enums"]["ImGuiNavMoveFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiNavMoveFlags_"][5]["name"] = "ImGuiNavMoveFlags_WrapY" +defs["enums"]["ImGuiNavMoveFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiNavMoveFlags_"][6] = {} +defs["enums"]["ImGuiNavMoveFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiNavMoveFlags_"][6]["name"] = "ImGuiNavMoveFlags_AllowCurrentNavId" +defs["enums"]["ImGuiNavMoveFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiNavMoveFlags_"][7] = {} +defs["enums"]["ImGuiNavMoveFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiNavMoveFlags_"][7]["name"] = "ImGuiNavMoveFlags_AlsoScoreVisibleSet" +defs["enums"]["ImGuiNavMoveFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiNavMoveFlags_"][8] = {} +defs["enums"]["ImGuiNavMoveFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiNavMoveFlags_"][8]["name"] = "ImGuiNavMoveFlags_ScrollToEdgeY" +defs["enums"]["ImGuiNavMoveFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiNavMoveFlags_"][9] = {} +defs["enums"]["ImGuiNavMoveFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiNavMoveFlags_"][9]["name"] = "ImGuiNavMoveFlags_Forwarded" +defs["enums"]["ImGuiNavMoveFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiNavMoveFlags_"][10] = {} +defs["enums"]["ImGuiNavMoveFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiNavMoveFlags_"][10]["name"] = "ImGuiNavMoveFlags_DebugNoResult" +defs["enums"]["ImGuiNavMoveFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiNavMoveFlags_"][11] = {} +defs["enums"]["ImGuiNavMoveFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiNavMoveFlags_"][11]["name"] = "ImGuiNavMoveFlags_FocusApi" +defs["enums"]["ImGuiNavMoveFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiNavMoveFlags_"][12] = {} +defs["enums"]["ImGuiNavMoveFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiNavMoveFlags_"][12]["name"] = "ImGuiNavMoveFlags_Tabbing" +defs["enums"]["ImGuiNavMoveFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiNavMoveFlags_"][13] = {} +defs["enums"]["ImGuiNavMoveFlags_"][13]["calc_value"] = 2048 +defs["enums"]["ImGuiNavMoveFlags_"][13]["name"] = "ImGuiNavMoveFlags_Activate" +defs["enums"]["ImGuiNavMoveFlags_"][13]["value"] = "1 << 11" +defs["enums"]["ImGuiNavMoveFlags_"][14] = {} +defs["enums"]["ImGuiNavMoveFlags_"][14]["calc_value"] = 4096 +defs["enums"]["ImGuiNavMoveFlags_"][14]["name"] = "ImGuiNavMoveFlags_DontSetNavHighlight" +defs["enums"]["ImGuiNavMoveFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiNextItemDataFlags_"] = {} +defs["enums"]["ImGuiNextItemDataFlags_"][1] = {} +defs["enums"]["ImGuiNextItemDataFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiNextItemDataFlags_"][1]["name"] = "ImGuiNextItemDataFlags_None" +defs["enums"]["ImGuiNextItemDataFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiNextItemDataFlags_"][2] = {} +defs["enums"]["ImGuiNextItemDataFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiNextItemDataFlags_"][2]["name"] = "ImGuiNextItemDataFlags_HasWidth" +defs["enums"]["ImGuiNextItemDataFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiNextItemDataFlags_"][3] = {} +defs["enums"]["ImGuiNextItemDataFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiNextItemDataFlags_"][3]["name"] = "ImGuiNextItemDataFlags_HasOpen" +defs["enums"]["ImGuiNextItemDataFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiNextWindowDataFlags_"] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][1] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiNextWindowDataFlags_"][1]["name"] = "ImGuiNextWindowDataFlags_None" +defs["enums"]["ImGuiNextWindowDataFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiNextWindowDataFlags_"][2] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiNextWindowDataFlags_"][2]["name"] = "ImGuiNextWindowDataFlags_HasPos" +defs["enums"]["ImGuiNextWindowDataFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiNextWindowDataFlags_"][3] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiNextWindowDataFlags_"][3]["name"] = "ImGuiNextWindowDataFlags_HasSize" +defs["enums"]["ImGuiNextWindowDataFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiNextWindowDataFlags_"][4] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiNextWindowDataFlags_"][4]["name"] = "ImGuiNextWindowDataFlags_HasContentSize" +defs["enums"]["ImGuiNextWindowDataFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiNextWindowDataFlags_"][5] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiNextWindowDataFlags_"][5]["name"] = "ImGuiNextWindowDataFlags_HasCollapsed" +defs["enums"]["ImGuiNextWindowDataFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiNextWindowDataFlags_"][6] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiNextWindowDataFlags_"][6]["name"] = "ImGuiNextWindowDataFlags_HasSizeConstraint" +defs["enums"]["ImGuiNextWindowDataFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiNextWindowDataFlags_"][7] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiNextWindowDataFlags_"][7]["name"] = "ImGuiNextWindowDataFlags_HasFocus" +defs["enums"]["ImGuiNextWindowDataFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiNextWindowDataFlags_"][8] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiNextWindowDataFlags_"][8]["name"] = "ImGuiNextWindowDataFlags_HasBgAlpha" +defs["enums"]["ImGuiNextWindowDataFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiNextWindowDataFlags_"][9] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][9]["calc_value"] = 128 +defs["enums"]["ImGuiNextWindowDataFlags_"][9]["name"] = "ImGuiNextWindowDataFlags_HasScroll" +defs["enums"]["ImGuiNextWindowDataFlags_"][9]["value"] = "1 << 7" +defs["enums"]["ImGuiNextWindowDataFlags_"][10] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][10]["calc_value"] = 256 +defs["enums"]["ImGuiNextWindowDataFlags_"][10]["name"] = "ImGuiNextWindowDataFlags_HasViewport" +defs["enums"]["ImGuiNextWindowDataFlags_"][10]["value"] = "1 << 8" +defs["enums"]["ImGuiNextWindowDataFlags_"][11] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][11]["calc_value"] = 512 +defs["enums"]["ImGuiNextWindowDataFlags_"][11]["name"] = "ImGuiNextWindowDataFlags_HasDock" +defs["enums"]["ImGuiNextWindowDataFlags_"][11]["value"] = "1 << 9" +defs["enums"]["ImGuiNextWindowDataFlags_"][12] = {} +defs["enums"]["ImGuiNextWindowDataFlags_"][12]["calc_value"] = 1024 +defs["enums"]["ImGuiNextWindowDataFlags_"][12]["name"] = "ImGuiNextWindowDataFlags_HasWindowClass" +defs["enums"]["ImGuiNextWindowDataFlags_"][12]["value"] = "1 << 10" +defs["enums"]["ImGuiOldColumnFlags_"] = {} +defs["enums"]["ImGuiOldColumnFlags_"][1] = {} +defs["enums"]["ImGuiOldColumnFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiOldColumnFlags_"][1]["name"] = "ImGuiOldColumnFlags_None" +defs["enums"]["ImGuiOldColumnFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiOldColumnFlags_"][2] = {} +defs["enums"]["ImGuiOldColumnFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiOldColumnFlags_"][2]["name"] = "ImGuiOldColumnFlags_NoBorder" +defs["enums"]["ImGuiOldColumnFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiOldColumnFlags_"][3] = {} +defs["enums"]["ImGuiOldColumnFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiOldColumnFlags_"][3]["name"] = "ImGuiOldColumnFlags_NoResize" +defs["enums"]["ImGuiOldColumnFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiOldColumnFlags_"][4] = {} +defs["enums"]["ImGuiOldColumnFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiOldColumnFlags_"][4]["name"] = "ImGuiOldColumnFlags_NoPreserveWidths" +defs["enums"]["ImGuiOldColumnFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiOldColumnFlags_"][5] = {} +defs["enums"]["ImGuiOldColumnFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiOldColumnFlags_"][5]["name"] = "ImGuiOldColumnFlags_NoForceWithinWindow" +defs["enums"]["ImGuiOldColumnFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiOldColumnFlags_"][6] = {} +defs["enums"]["ImGuiOldColumnFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiOldColumnFlags_"][6]["name"] = "ImGuiOldColumnFlags_GrowParentContentsSize" +defs["enums"]["ImGuiOldColumnFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiPlotType"] = {} +defs["enums"]["ImGuiPlotType"][1] = {} +defs["enums"]["ImGuiPlotType"][1]["calc_value"] = 0 +defs["enums"]["ImGuiPlotType"][1]["name"] = "ImGuiPlotType_Lines" +defs["enums"]["ImGuiPlotType"][1]["value"] = "0" +defs["enums"]["ImGuiPlotType"][2] = {} +defs["enums"]["ImGuiPlotType"][2]["calc_value"] = 1 +defs["enums"]["ImGuiPlotType"][2]["name"] = "ImGuiPlotType_Histogram" +defs["enums"]["ImGuiPlotType"][2]["value"] = "1" defs["enums"]["ImGuiPopupFlags_"] = {} defs["enums"]["ImGuiPopupFlags_"][1] = {} defs["enums"]["ImGuiPopupFlags_"][1]["calc_value"] = 0 @@ -1767,6 +2597,97 @@ defs["enums"]["ImGuiPopupFlags_"][11] = {} defs["enums"]["ImGuiPopupFlags_"][11]["calc_value"] = 384 defs["enums"]["ImGuiPopupFlags_"][11]["name"] = "ImGuiPopupFlags_AnyPopup" defs["enums"]["ImGuiPopupFlags_"][11]["value"] = "ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel" +defs["enums"]["ImGuiPopupPositionPolicy"] = {} +defs["enums"]["ImGuiPopupPositionPolicy"][1] = {} +defs["enums"]["ImGuiPopupPositionPolicy"][1]["calc_value"] = 0 +defs["enums"]["ImGuiPopupPositionPolicy"][1]["name"] = "ImGuiPopupPositionPolicy_Default" +defs["enums"]["ImGuiPopupPositionPolicy"][1]["value"] = "0" +defs["enums"]["ImGuiPopupPositionPolicy"][2] = {} +defs["enums"]["ImGuiPopupPositionPolicy"][2]["calc_value"] = 1 +defs["enums"]["ImGuiPopupPositionPolicy"][2]["name"] = "ImGuiPopupPositionPolicy_ComboBox" +defs["enums"]["ImGuiPopupPositionPolicy"][2]["value"] = "1" +defs["enums"]["ImGuiPopupPositionPolicy"][3] = {} +defs["enums"]["ImGuiPopupPositionPolicy"][3]["calc_value"] = 2 +defs["enums"]["ImGuiPopupPositionPolicy"][3]["name"] = "ImGuiPopupPositionPolicy_Tooltip" +defs["enums"]["ImGuiPopupPositionPolicy"][3]["value"] = "2" +defs["enums"]["ImGuiScrollFlags_"] = {} +defs["enums"]["ImGuiScrollFlags_"][1] = {} +defs["enums"]["ImGuiScrollFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiScrollFlags_"][1]["name"] = "ImGuiScrollFlags_None" +defs["enums"]["ImGuiScrollFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiScrollFlags_"][2] = {} +defs["enums"]["ImGuiScrollFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiScrollFlags_"][2]["name"] = "ImGuiScrollFlags_KeepVisibleEdgeX" +defs["enums"]["ImGuiScrollFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiScrollFlags_"][3] = {} +defs["enums"]["ImGuiScrollFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiScrollFlags_"][3]["name"] = "ImGuiScrollFlags_KeepVisibleEdgeY" +defs["enums"]["ImGuiScrollFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiScrollFlags_"][4] = {} +defs["enums"]["ImGuiScrollFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiScrollFlags_"][4]["name"] = "ImGuiScrollFlags_KeepVisibleCenterX" +defs["enums"]["ImGuiScrollFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiScrollFlags_"][5] = {} +defs["enums"]["ImGuiScrollFlags_"][5]["calc_value"] = 8 +defs["enums"]["ImGuiScrollFlags_"][5]["name"] = "ImGuiScrollFlags_KeepVisibleCenterY" +defs["enums"]["ImGuiScrollFlags_"][5]["value"] = "1 << 3" +defs["enums"]["ImGuiScrollFlags_"][6] = {} +defs["enums"]["ImGuiScrollFlags_"][6]["calc_value"] = 16 +defs["enums"]["ImGuiScrollFlags_"][6]["name"] = "ImGuiScrollFlags_AlwaysCenterX" +defs["enums"]["ImGuiScrollFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiScrollFlags_"][7] = {} +defs["enums"]["ImGuiScrollFlags_"][7]["calc_value"] = 32 +defs["enums"]["ImGuiScrollFlags_"][7]["name"] = "ImGuiScrollFlags_AlwaysCenterY" +defs["enums"]["ImGuiScrollFlags_"][7]["value"] = "1 << 5" +defs["enums"]["ImGuiScrollFlags_"][8] = {} +defs["enums"]["ImGuiScrollFlags_"][8]["calc_value"] = 64 +defs["enums"]["ImGuiScrollFlags_"][8]["name"] = "ImGuiScrollFlags_NoScrollParent" +defs["enums"]["ImGuiScrollFlags_"][8]["value"] = "1 << 6" +defs["enums"]["ImGuiScrollFlags_"][9] = {} +defs["enums"]["ImGuiScrollFlags_"][9]["calc_value"] = 21 +defs["enums"]["ImGuiScrollFlags_"][9]["name"] = "ImGuiScrollFlags_MaskX_" +defs["enums"]["ImGuiScrollFlags_"][9]["value"] = "ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX" +defs["enums"]["ImGuiScrollFlags_"][10] = {} +defs["enums"]["ImGuiScrollFlags_"][10]["calc_value"] = 42 +defs["enums"]["ImGuiScrollFlags_"][10]["name"] = "ImGuiScrollFlags_MaskY_" +defs["enums"]["ImGuiScrollFlags_"][10]["value"] = "ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY" +defs["enums"]["ImGuiSelectableFlagsPrivate_"] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][1] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][1]["calc_value"] = 1048576 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][1]["name"] = "ImGuiSelectableFlags_NoHoldingActiveID" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][1]["value"] = "1 << 20" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][2] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][2]["calc_value"] = 2097152 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][2]["name"] = "ImGuiSelectableFlags_SelectOnNav" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][2]["value"] = "1 << 21" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][3] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][3]["calc_value"] = 4194304 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][3]["name"] = "ImGuiSelectableFlags_SelectOnClick" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][3]["value"] = "1 << 22" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][4] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][4]["calc_value"] = 8388608 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][4]["name"] = "ImGuiSelectableFlags_SelectOnRelease" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][4]["value"] = "1 << 23" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][5] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][5]["calc_value"] = 16777216 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][5]["name"] = "ImGuiSelectableFlags_SpanAvailWidth" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][5]["value"] = "1 << 24" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][6] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][6]["calc_value"] = 33554432 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][6]["name"] = "ImGuiSelectableFlags_DrawHoveredWhenHeld" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][6]["value"] = "1 << 25" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][7] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][7]["calc_value"] = 67108864 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][7]["name"] = "ImGuiSelectableFlags_SetNavIdOnHover" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][7]["value"] = "1 << 26" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][8] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][8]["calc_value"] = 134217728 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][8]["name"] = "ImGuiSelectableFlags_NoPadWithHalfSpacing" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][8]["value"] = "1 << 27" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][9] = {} +defs["enums"]["ImGuiSelectableFlagsPrivate_"][9]["calc_value"] = 268435456 +defs["enums"]["ImGuiSelectableFlagsPrivate_"][9]["name"] = "ImGuiSelectableFlags_NoSetKeyOwner" +defs["enums"]["ImGuiSelectableFlagsPrivate_"][9]["value"] = "1 << 28" defs["enums"]["ImGuiSelectableFlags_"] = {} defs["enums"]["ImGuiSelectableFlags_"][1] = {} defs["enums"]["ImGuiSelectableFlags_"][1]["calc_value"] = 0 @@ -1792,6 +2713,32 @@ defs["enums"]["ImGuiSelectableFlags_"][6] = {} defs["enums"]["ImGuiSelectableFlags_"][6]["calc_value"] = 16 defs["enums"]["ImGuiSelectableFlags_"][6]["name"] = "ImGuiSelectableFlags_AllowItemOverlap" defs["enums"]["ImGuiSelectableFlags_"][6]["value"] = "1 << 4" +defs["enums"]["ImGuiSeparatorFlags_"] = {} +defs["enums"]["ImGuiSeparatorFlags_"][1] = {} +defs["enums"]["ImGuiSeparatorFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiSeparatorFlags_"][1]["name"] = "ImGuiSeparatorFlags_None" +defs["enums"]["ImGuiSeparatorFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiSeparatorFlags_"][2] = {} +defs["enums"]["ImGuiSeparatorFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiSeparatorFlags_"][2]["name"] = "ImGuiSeparatorFlags_Horizontal" +defs["enums"]["ImGuiSeparatorFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiSeparatorFlags_"][3] = {} +defs["enums"]["ImGuiSeparatorFlags_"][3]["calc_value"] = 2 +defs["enums"]["ImGuiSeparatorFlags_"][3]["name"] = "ImGuiSeparatorFlags_Vertical" +defs["enums"]["ImGuiSeparatorFlags_"][3]["value"] = "1 << 1" +defs["enums"]["ImGuiSeparatorFlags_"][4] = {} +defs["enums"]["ImGuiSeparatorFlags_"][4]["calc_value"] = 4 +defs["enums"]["ImGuiSeparatorFlags_"][4]["name"] = "ImGuiSeparatorFlags_SpanAllColumns" +defs["enums"]["ImGuiSeparatorFlags_"][4]["value"] = "1 << 2" +defs["enums"]["ImGuiSliderFlagsPrivate_"] = {} +defs["enums"]["ImGuiSliderFlagsPrivate_"][1] = {} +defs["enums"]["ImGuiSliderFlagsPrivate_"][1]["calc_value"] = 1048576 +defs["enums"]["ImGuiSliderFlagsPrivate_"][1]["name"] = "ImGuiSliderFlags_Vertical" +defs["enums"]["ImGuiSliderFlagsPrivate_"][1]["value"] = "1 << 20" +defs["enums"]["ImGuiSliderFlagsPrivate_"][2] = {} +defs["enums"]["ImGuiSliderFlagsPrivate_"][2]["calc_value"] = 2097152 +defs["enums"]["ImGuiSliderFlagsPrivate_"][2]["name"] = "ImGuiSliderFlags_ReadOnly" +defs["enums"]["ImGuiSliderFlagsPrivate_"][2]["value"] = "1 << 21" defs["enums"]["ImGuiSliderFlags_"] = {} defs["enums"]["ImGuiSliderFlags_"][1] = {} defs["enums"]["ImGuiSliderFlags_"][1]["calc_value"] = 0 @@ -1935,6 +2882,19 @@ defs["enums"]["ImGuiStyleVar_"][26] = {} defs["enums"]["ImGuiStyleVar_"][26]["calc_value"] = 25 defs["enums"]["ImGuiStyleVar_"][26]["name"] = "ImGuiStyleVar_COUNT" defs["enums"]["ImGuiStyleVar_"][26]["value"] = "25" +defs["enums"]["ImGuiTabBarFlagsPrivate_"] = {} +defs["enums"]["ImGuiTabBarFlagsPrivate_"][1] = {} +defs["enums"]["ImGuiTabBarFlagsPrivate_"][1]["calc_value"] = 1048576 +defs["enums"]["ImGuiTabBarFlagsPrivate_"][1]["name"] = "ImGuiTabBarFlags_DockNode" +defs["enums"]["ImGuiTabBarFlagsPrivate_"][1]["value"] = "1 << 20" +defs["enums"]["ImGuiTabBarFlagsPrivate_"][2] = {} +defs["enums"]["ImGuiTabBarFlagsPrivate_"][2]["calc_value"] = 2097152 +defs["enums"]["ImGuiTabBarFlagsPrivate_"][2]["name"] = "ImGuiTabBarFlags_IsFocused" +defs["enums"]["ImGuiTabBarFlagsPrivate_"][2]["value"] = "1 << 21" +defs["enums"]["ImGuiTabBarFlagsPrivate_"][3] = {} +defs["enums"]["ImGuiTabBarFlagsPrivate_"][3]["calc_value"] = 4194304 +defs["enums"]["ImGuiTabBarFlagsPrivate_"][3]["name"] = "ImGuiTabBarFlags_SaveSettings" +defs["enums"]["ImGuiTabBarFlagsPrivate_"][3]["value"] = "1 << 22" defs["enums"]["ImGuiTabBarFlags_"] = {} defs["enums"]["ImGuiTabBarFlags_"][1] = {} defs["enums"]["ImGuiTabBarFlags_"][1]["calc_value"] = 0 @@ -1980,6 +2940,27 @@ defs["enums"]["ImGuiTabBarFlags_"][11] = {} defs["enums"]["ImGuiTabBarFlags_"][11]["calc_value"] = 64 defs["enums"]["ImGuiTabBarFlags_"][11]["name"] = "ImGuiTabBarFlags_FittingPolicyDefault_" defs["enums"]["ImGuiTabBarFlags_"][11]["value"] = "ImGuiTabBarFlags_FittingPolicyResizeDown" +defs["enums"]["ImGuiTabItemFlagsPrivate_"] = {} +defs["enums"]["ImGuiTabItemFlagsPrivate_"][1] = {} +defs["enums"]["ImGuiTabItemFlagsPrivate_"][1]["calc_value"] = 192 +defs["enums"]["ImGuiTabItemFlagsPrivate_"][1]["name"] = "ImGuiTabItemFlags_SectionMask_" +defs["enums"]["ImGuiTabItemFlagsPrivate_"][1]["value"] = "ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing" +defs["enums"]["ImGuiTabItemFlagsPrivate_"][2] = {} +defs["enums"]["ImGuiTabItemFlagsPrivate_"][2]["calc_value"] = 1048576 +defs["enums"]["ImGuiTabItemFlagsPrivate_"][2]["name"] = "ImGuiTabItemFlags_NoCloseButton" +defs["enums"]["ImGuiTabItemFlagsPrivate_"][2]["value"] = "1 << 20" +defs["enums"]["ImGuiTabItemFlagsPrivate_"][3] = {} +defs["enums"]["ImGuiTabItemFlagsPrivate_"][3]["calc_value"] = 2097152 +defs["enums"]["ImGuiTabItemFlagsPrivate_"][3]["name"] = "ImGuiTabItemFlags_Button" +defs["enums"]["ImGuiTabItemFlagsPrivate_"][3]["value"] = "1 << 21" +defs["enums"]["ImGuiTabItemFlagsPrivate_"][4] = {} +defs["enums"]["ImGuiTabItemFlagsPrivate_"][4]["calc_value"] = 4194304 +defs["enums"]["ImGuiTabItemFlagsPrivate_"][4]["name"] = "ImGuiTabItemFlags_Unsorted" +defs["enums"]["ImGuiTabItemFlagsPrivate_"][4]["value"] = "1 << 22" +defs["enums"]["ImGuiTabItemFlagsPrivate_"][5] = {} +defs["enums"]["ImGuiTabItemFlagsPrivate_"][5]["calc_value"] = 8388608 +defs["enums"]["ImGuiTabItemFlagsPrivate_"][5]["name"] = "ImGuiTabItemFlags_Preview" +defs["enums"]["ImGuiTabItemFlagsPrivate_"][5]["value"] = "1 << 23" defs["enums"]["ImGuiTabItemFlags_"] = {} defs["enums"]["ImGuiTabItemFlags_"][1] = {} defs["enums"]["ImGuiTabItemFlags_"][1]["calc_value"] = 0 @@ -2297,6 +3278,29 @@ defs["enums"]["ImGuiTableRowFlags_"][2] = {} defs["enums"]["ImGuiTableRowFlags_"][2]["calc_value"] = 1 defs["enums"]["ImGuiTableRowFlags_"][2]["name"] = "ImGuiTableRowFlags_Headers" defs["enums"]["ImGuiTableRowFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTextFlags_"] = {} +defs["enums"]["ImGuiTextFlags_"][1] = {} +defs["enums"]["ImGuiTextFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTextFlags_"][1]["name"] = "ImGuiTextFlags_None" +defs["enums"]["ImGuiTextFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTextFlags_"][2] = {} +defs["enums"]["ImGuiTextFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTextFlags_"][2]["name"] = "ImGuiTextFlags_NoWidthForLargeClippedText" +defs["enums"]["ImGuiTextFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTooltipFlags_"] = {} +defs["enums"]["ImGuiTooltipFlags_"][1] = {} +defs["enums"]["ImGuiTooltipFlags_"][1]["calc_value"] = 0 +defs["enums"]["ImGuiTooltipFlags_"][1]["name"] = "ImGuiTooltipFlags_None" +defs["enums"]["ImGuiTooltipFlags_"][1]["value"] = "0" +defs["enums"]["ImGuiTooltipFlags_"][2] = {} +defs["enums"]["ImGuiTooltipFlags_"][2]["calc_value"] = 1 +defs["enums"]["ImGuiTooltipFlags_"][2]["name"] = "ImGuiTooltipFlags_OverridePreviousTooltip" +defs["enums"]["ImGuiTooltipFlags_"][2]["value"] = "1 << 0" +defs["enums"]["ImGuiTreeNodeFlagsPrivate_"] = {} +defs["enums"]["ImGuiTreeNodeFlagsPrivate_"][1] = {} +defs["enums"]["ImGuiTreeNodeFlagsPrivate_"][1]["calc_value"] = 1048576 +defs["enums"]["ImGuiTreeNodeFlagsPrivate_"][1]["name"] = "ImGuiTreeNodeFlags_ClipLabelForTrailingButton" +defs["enums"]["ImGuiTreeNodeFlagsPrivate_"][1]["value"] = "1 << 20" defs["enums"]["ImGuiTreeNodeFlags_"] = {} defs["enums"]["ImGuiTreeNodeFlags_"][1] = {} defs["enums"]["ImGuiTreeNodeFlags_"][1]["calc_value"] = 0 @@ -2419,6 +3423,35 @@ defs["enums"]["ImGuiViewportFlags_"][14] = {} defs["enums"]["ImGuiViewportFlags_"][14]["calc_value"] = 4096 defs["enums"]["ImGuiViewportFlags_"][14]["name"] = "ImGuiViewportFlags_CanHostOtherWindows" defs["enums"]["ImGuiViewportFlags_"][14]["value"] = "1 << 12" +defs["enums"]["ImGuiWindowDockStyleCol"] = {} +defs["enums"]["ImGuiWindowDockStyleCol"][1] = {} +defs["enums"]["ImGuiWindowDockStyleCol"][1]["calc_value"] = 0 +defs["enums"]["ImGuiWindowDockStyleCol"][1]["name"] = "ImGuiWindowDockStyleCol_Text" +defs["enums"]["ImGuiWindowDockStyleCol"][1]["value"] = "0" +defs["enums"]["ImGuiWindowDockStyleCol"][2] = {} +defs["enums"]["ImGuiWindowDockStyleCol"][2]["calc_value"] = 1 +defs["enums"]["ImGuiWindowDockStyleCol"][2]["name"] = "ImGuiWindowDockStyleCol_Tab" +defs["enums"]["ImGuiWindowDockStyleCol"][2]["value"] = "1" +defs["enums"]["ImGuiWindowDockStyleCol"][3] = {} +defs["enums"]["ImGuiWindowDockStyleCol"][3]["calc_value"] = 2 +defs["enums"]["ImGuiWindowDockStyleCol"][3]["name"] = "ImGuiWindowDockStyleCol_TabHovered" +defs["enums"]["ImGuiWindowDockStyleCol"][3]["value"] = "2" +defs["enums"]["ImGuiWindowDockStyleCol"][4] = {} +defs["enums"]["ImGuiWindowDockStyleCol"][4]["calc_value"] = 3 +defs["enums"]["ImGuiWindowDockStyleCol"][4]["name"] = "ImGuiWindowDockStyleCol_TabActive" +defs["enums"]["ImGuiWindowDockStyleCol"][4]["value"] = "3" +defs["enums"]["ImGuiWindowDockStyleCol"][5] = {} +defs["enums"]["ImGuiWindowDockStyleCol"][5]["calc_value"] = 4 +defs["enums"]["ImGuiWindowDockStyleCol"][5]["name"] = "ImGuiWindowDockStyleCol_TabUnfocused" +defs["enums"]["ImGuiWindowDockStyleCol"][5]["value"] = "4" +defs["enums"]["ImGuiWindowDockStyleCol"][6] = {} +defs["enums"]["ImGuiWindowDockStyleCol"][6]["calc_value"] = 5 +defs["enums"]["ImGuiWindowDockStyleCol"][6]["name"] = "ImGuiWindowDockStyleCol_TabUnfocusedActive" +defs["enums"]["ImGuiWindowDockStyleCol"][6]["value"] = "5" +defs["enums"]["ImGuiWindowDockStyleCol"][7] = {} +defs["enums"]["ImGuiWindowDockStyleCol"][7]["calc_value"] = 6 +defs["enums"]["ImGuiWindowDockStyleCol"][7]["name"] = "ImGuiWindowDockStyleCol_COUNT" +defs["enums"]["ImGuiWindowDockStyleCol"][7]["value"] = "6" defs["enums"]["ImGuiWindowFlags_"] = {} defs["enums"]["ImGuiWindowFlags_"][1] = {} defs["enums"]["ImGuiWindowFlags_"][1]["calc_value"] = 0 @@ -2550,80 +3583,190 @@ defs["enums"]["ImGuiWindowFlags_"][32]["name"] = "ImGuiWindowFlags_DockNodeHost" defs["enums"]["ImGuiWindowFlags_"][32]["value"] = "1 << 29" defs["enumtypes"] = {} defs["enumtypes"]["ImGuiKey"] = "int" +defs["enumtypes"]["ImGuiLocKey"] = "int" defs["locations"] = {} +defs["locations"]["ImBitVector"] = "imgui_internal:593" defs["locations"]["ImColor"] = "imgui:2458" defs["locations"]["ImDrawChannel"] = "imgui:2548" defs["locations"]["ImDrawCmd"] = "imgui:2507" defs["locations"]["ImDrawCmdHeader"] = "imgui:2540" defs["locations"]["ImDrawData"] = "imgui:2740" +defs["locations"]["ImDrawDataBuilder"] = "imgui_internal:782" defs["locations"]["ImDrawFlags_"] = "imgui:2574" defs["locations"]["ImDrawList"] = "imgui:2612" defs["locations"]["ImDrawListFlags_"] = "imgui:2594" +defs["locations"]["ImDrawListSharedData"] = "imgui_internal:759" defs["locations"]["ImDrawListSplitter"] = "imgui:2557" defs["locations"]["ImDrawVert"] = "imgui:2525" defs["locations"]["ImFont"] = "imgui:2959" defs["locations"]["ImFontAtlas"] = "imgui:2857" defs["locations"]["ImFontAtlasCustomRect"] = "imgui:2819" defs["locations"]["ImFontAtlasFlags_"] = "imgui:2832" +defs["locations"]["ImFontBuilderIO"] = "imgui_internal:3476" defs["locations"]["ImFontConfig"] = "imgui:2763" defs["locations"]["ImFontGlyph"] = "imgui:2792" defs["locations"]["ImFontGlyphRangesBuilder"] = "imgui:2804" +defs["locations"]["ImGuiActivateFlags_"] = "imgui_internal:1428" +defs["locations"]["ImGuiAxis"] = "imgui_internal:949" defs["locations"]["ImGuiBackendFlags_"] = "imgui:1579" +defs["locations"]["ImGuiButtonFlagsPrivate_"] = "imgui_internal:853" defs["locations"]["ImGuiButtonFlags_"] = "imgui:1693" defs["locations"]["ImGuiCol_"] = "imgui:1594" defs["locations"]["ImGuiColorEditFlags_"] = "imgui:1706" +defs["locations"]["ImGuiColorMod"] = "imgui_internal:992" +defs["locations"]["ImGuiComboFlagsPrivate_"] = "imgui_internal:878" defs["locations"]["ImGuiComboFlags_"] = "imgui:1124" +defs["locations"]["ImGuiComboPreviewData"] = "imgui_internal:1009" defs["locations"]["ImGuiCond_"] = "imgui:1797" defs["locations"]["ImGuiConfigFlags_"] = "imgui:1554" +defs["locations"]["ImGuiContext"] = "imgui_internal:1905" +defs["locations"]["ImGuiContextHook"] = "imgui_internal:1890" +defs["locations"]["ImGuiContextHookType"] = "imgui_internal:1888" +defs["locations"]["ImGuiDataAuthority_"] = "imgui_internal:1599" +defs["locations"]["ImGuiDataTypeInfo"] = "imgui_internal:975" +defs["locations"]["ImGuiDataTypePrivate_"] = "imgui_internal:984" +defs["locations"]["ImGuiDataTypeTempStorage"] = "imgui_internal:969" defs["locations"]["ImGuiDataType_"] = "imgui:1376" +defs["locations"]["ImGuiDebugLogFlags_"] = "imgui_internal:1820" defs["locations"]["ImGuiDir_"] = "imgui:1392" +defs["locations"]["ImGuiDockContext"] = "imgui_internal:1697" +defs["locations"]["ImGuiDockNode"] = "imgui_internal:1615" +defs["locations"]["ImGuiDockNodeFlagsPrivate_"] = "imgui_internal:1574" defs["locations"]["ImGuiDockNodeFlags_"] = "imgui:1341" +defs["locations"]["ImGuiDockNodeState"] = "imgui_internal:1606" defs["locations"]["ImGuiDragDropFlags_"] = "imgui:1354" defs["locations"]["ImGuiFocusedFlags_"] = "imgui:1301" defs["locations"]["ImGuiFreeTypeBuilderFlags"] = "imgui_freetype:19" +defs["locations"]["ImGuiGroupData"] = "imgui_internal:1022" defs["locations"]["ImGuiHoveredFlags_"] = "imgui:1315" defs["locations"]["ImGuiIO"] = "imgui:1974" +defs["locations"]["ImGuiInputEvent"] = "imgui_internal:1286" +defs["locations"]["ImGuiInputEventAppFocused"] = "imgui_internal:1284" +defs["locations"]["ImGuiInputEventKey"] = "imgui_internal:1282" +defs["locations"]["ImGuiInputEventMouseButton"] = "imgui_internal:1280" +defs["locations"]["ImGuiInputEventMousePos"] = "imgui_internal:1278" +defs["locations"]["ImGuiInputEventMouseViewport"] = "imgui_internal:1281" +defs["locations"]["ImGuiInputEventMouseWheel"] = "imgui_internal:1279" +defs["locations"]["ImGuiInputEventText"] = "imgui_internal:1283" +defs["locations"]["ImGuiInputEventType"] = "imgui_internal:1252" +defs["locations"]["ImGuiInputFlags_"] = "imgui_internal:1349" +defs["locations"]["ImGuiInputSource"] = "imgui_internal:1265" defs["locations"]["ImGuiInputTextCallbackData"] = "imgui:2162" +defs["locations"]["ImGuiInputTextFlagsPrivate_"] = "imgui_internal:844" defs["locations"]["ImGuiInputTextFlags_"] = "imgui:1036" +defs["locations"]["ImGuiInputTextState"] = "imgui_internal:1057" +defs["locations"]["ImGuiItemFlags_"] = "imgui_internal:801" +defs["locations"]["ImGuiItemStatusFlags_"] = "imgui_internal:821" defs["locations"]["ImGuiKey"] = "imgui:1413" defs["locations"]["ImGuiKeyData"] = "imgui:1966" +defs["locations"]["ImGuiKeyOwnerData"] = "imgui_internal:1337" +defs["locations"]["ImGuiKeyRoutingData"] = "imgui_internal:1312" +defs["locations"]["ImGuiKeyRoutingTable"] = "imgui_internal:1325" +defs["locations"]["ImGuiLastItemData"] = "imgui_internal:1171" +defs["locations"]["ImGuiLayoutType_"] = "imgui_internal:933" defs["locations"]["ImGuiListClipper"] = "imgui:2407" +defs["locations"]["ImGuiListClipperData"] = "imgui_internal:1412" +defs["locations"]["ImGuiListClipperRange"] = "imgui_internal:1399" +defs["locations"]["ImGuiLocEntry"] = "imgui_internal:1809" +defs["locations"]["ImGuiLocKey"] = "imgui_internal:1796" +defs["locations"]["ImGuiLogType"] = "imgui_internal:939" +defs["locations"]["ImGuiMenuColumns"] = "imgui_internal:1038" +defs["locations"]["ImGuiMetricsConfig"] = "imgui_internal:1836" defs["locations"]["ImGuiMouseButton_"] = "imgui:1769" defs["locations"]["ImGuiMouseCursor_"] = "imgui:1779" +defs["locations"]["ImGuiNavHighlightFlags_"] = "imgui_internal:1451" defs["locations"]["ImGuiNavInput"] = "imgui:1545" +defs["locations"]["ImGuiNavItemData"] = "imgui_internal:1485" +defs["locations"]["ImGuiNavLayer"] = "imgui_internal:1478" +defs["locations"]["ImGuiNavMoveFlags_"] = "imgui_internal:1460" +defs["locations"]["ImGuiNextItemData"] = "imgui_internal:1158" +defs["locations"]["ImGuiNextItemDataFlags_"] = "imgui_internal:1151" +defs["locations"]["ImGuiNextWindowData"] = "imgui_internal:1124" +defs["locations"]["ImGuiNextWindowDataFlags_"] = "imgui_internal:1107" +defs["locations"]["ImGuiOldColumnData"] = "imgui_internal:1525" +defs["locations"]["ImGuiOldColumnFlags_"] = "imgui_internal:1505" +defs["locations"]["ImGuiOldColumns"] = "imgui_internal:1535" defs["locations"]["ImGuiOnceUponAFrame"] = "imgui:2282" defs["locations"]["ImGuiPayload"] = "imgui:2223" defs["locations"]["ImGuiPlatformIO"] = "imgui:3124" defs["locations"]["ImGuiPlatformImeData"] = "imgui:3196" defs["locations"]["ImGuiPlatformMonitor"] = "imgui:3187" +defs["locations"]["ImGuiPlotType"] = "imgui_internal:956" +defs["locations"]["ImGuiPopupData"] = "imgui_internal:1093" defs["locations"]["ImGuiPopupFlags_"] = "imgui:1097" +defs["locations"]["ImGuiPopupPositionPolicy"] = "imgui_internal:962" +defs["locations"]["ImGuiPtrOrIndex"] = "imgui_internal:1215" +defs["locations"]["ImGuiScrollFlags_"] = "imgui_internal:1437" +defs["locations"]["ImGuiSelectableFlagsPrivate_"] = "imgui_internal:891" defs["locations"]["ImGuiSelectableFlags_"] = "imgui:1113" +defs["locations"]["ImGuiSeparatorFlags_"] = "imgui_internal:911" +defs["locations"]["ImGuiSettingsHandler"] = "imgui_internal:1776" +defs["locations"]["ImGuiShrinkWidthItem"] = "imgui_internal:1208" defs["locations"]["ImGuiSizeCallbackData"] = "imgui:2193" +defs["locations"]["ImGuiSliderFlagsPrivate_"] = "imgui_internal:884" defs["locations"]["ImGuiSliderFlags_"] = "imgui:1752" defs["locations"]["ImGuiSortDirection_"] = "imgui:1403" +defs["locations"]["ImGuiStackLevelInfo"] = "imgui_internal:1859" +defs["locations"]["ImGuiStackSizes"] = "imgui_internal:1183" +defs["locations"]["ImGuiStackTool"] = "imgui_internal:1871" defs["locations"]["ImGuiStorage"] = "imgui:2344" defs["locations"]["ImGuiStoragePair"] = "imgui:2347" defs["locations"]["ImGuiStyle"] = "imgui:1909" +defs["locations"]["ImGuiStyleMod"] = "imgui_internal:999" defs["locations"]["ImGuiStyleVar_"] = "imgui:1661" +defs["locations"]["ImGuiTabBar"] = "imgui_internal:2612" +defs["locations"]["ImGuiTabBarFlagsPrivate_"] = "imgui_internal:2574" defs["locations"]["ImGuiTabBarFlags_"] = "imgui:1138" +defs["locations"]["ImGuiTabItem"] = "imgui_internal:2592" +defs["locations"]["ImGuiTabItemFlagsPrivate_"] = "imgui_internal:2582" defs["locations"]["ImGuiTabItemFlags_"] = "imgui:1154" +defs["locations"]["ImGuiTable"] = "imgui_internal:2748" defs["locations"]["ImGuiTableBgTarget_"] = "imgui:1292" +defs["locations"]["ImGuiTableCellData"] = "imgui_internal:2732" +defs["locations"]["ImGuiTableColumn"] = "imgui_internal:2673" defs["locations"]["ImGuiTableColumnFlags_"] = "imgui:1240" +defs["locations"]["ImGuiTableColumnSettings"] = "imgui_internal:2883" defs["locations"]["ImGuiTableColumnSortSpecs"] = "imgui:2245" defs["locations"]["ImGuiTableFlags_"] = "imgui:1189" +defs["locations"]["ImGuiTableInstanceData"] = "imgui_internal:2739" defs["locations"]["ImGuiTableRowFlags_"] = "imgui:1277" +defs["locations"]["ImGuiTableSettings"] = "imgui_internal:2907" defs["locations"]["ImGuiTableSortSpecs"] = "imgui:2259" +defs["locations"]["ImGuiTableTempData"] = "imgui_internal:2862" defs["locations"]["ImGuiTextBuffer"] = "imgui:2317" defs["locations"]["ImGuiTextFilter"] = "imgui:2290" +defs["locations"]["ImGuiTextFlags_"] = "imgui_internal:919" +defs["locations"]["ImGuiTextIndex"] = "imgui_internal:716" defs["locations"]["ImGuiTextRange"] = "imgui:2300" +defs["locations"]["ImGuiTooltipFlags_"] = "imgui_internal:925" +defs["locations"]["ImGuiTreeNodeFlagsPrivate_"] = "imgui_internal:906" defs["locations"]["ImGuiTreeNodeFlags_"] = "imgui:1068" defs["locations"]["ImGuiViewport"] = "imgui:3040" defs["locations"]["ImGuiViewportFlags_"] = "imgui:3015" +defs["locations"]["ImGuiViewportP"] = "imgui_internal:1714" +defs["locations"]["ImGuiWindow"] = "imgui_internal:2430" defs["locations"]["ImGuiWindowClass"] = "imgui:2208" +defs["locations"]["ImGuiWindowDockStyle"] = "imgui_internal:1692" +defs["locations"]["ImGuiWindowDockStyleCol"] = "imgui_internal:1681" defs["locations"]["ImGuiWindowFlags_"] = "imgui:995" +defs["locations"]["ImGuiWindowSettings"] = "imgui_internal:1759" +defs["locations"]["ImGuiWindowStackData"] = "imgui_internal:1201" +defs["locations"]["ImGuiWindowTempData"] = "imgui_internal:2382" +defs["locations"]["ImRect"] = "imgui_internal:521" +defs["locations"]["ImVec1"] = "imgui_internal:503" defs["locations"]["ImVec2"] = "imgui:259" +defs["locations"]["ImVec2ih"] = "imgui_internal:511" defs["locations"]["ImVec4"] = "imgui:272" +defs["locations"]["STB_TexteditState"] = "imstb_textedit:319" +defs["locations"]["StbTexteditRow"] = "imstb_textedit:366" +defs["locations"]["StbUndoRecord"] = "imstb_textedit:301" +defs["locations"]["StbUndoState"] = "imstb_textedit:310" defs["structs"] = {} +defs["structs"]["ImBitVector"] = {} +defs["structs"]["ImBitVector"][1] = {} +defs["structs"]["ImBitVector"][1]["name"] = "Storage" +defs["structs"]["ImBitVector"][1]["template_type"] = "ImU32" +defs["structs"]["ImBitVector"][1]["type"] = "ImVector_ImU32" defs["structs"]["ImColor"] = {} defs["structs"]["ImColor"][1] = {} defs["structs"]["ImColor"][1]["name"] = "Value" @@ -2697,6 +3840,12 @@ defs["structs"]["ImDrawData"][8]["type"] = "ImVec2" defs["structs"]["ImDrawData"][9] = {} defs["structs"]["ImDrawData"][9]["name"] = "OwnerViewport" defs["structs"]["ImDrawData"][9]["type"] = "ImGuiViewport*" +defs["structs"]["ImDrawDataBuilder"] = {} +defs["structs"]["ImDrawDataBuilder"][1] = {} +defs["structs"]["ImDrawDataBuilder"][1]["name"] = "Layers[2]" +defs["structs"]["ImDrawDataBuilder"][1]["size"] = 2 +defs["structs"]["ImDrawDataBuilder"][1]["template_type"] = "ImDrawList*" +defs["structs"]["ImDrawDataBuilder"][1]["type"] = "ImVector_ImDrawListPtr" defs["structs"]["ImDrawList"] = {} defs["structs"]["ImDrawList"][1] = {} defs["structs"]["ImDrawList"][1]["name"] = "CmdBuffer" @@ -2749,6 +3898,46 @@ defs["structs"]["ImDrawList"][14]["type"] = "ImDrawListSplitter" defs["structs"]["ImDrawList"][15] = {} defs["structs"]["ImDrawList"][15]["name"] = "_FringeScale" defs["structs"]["ImDrawList"][15]["type"] = "float" +defs["structs"]["ImDrawListSharedData"] = {} +defs["structs"]["ImDrawListSharedData"][1] = {} +defs["structs"]["ImDrawListSharedData"][1]["name"] = "TexUvWhitePixel" +defs["structs"]["ImDrawListSharedData"][1]["type"] = "ImVec2" +defs["structs"]["ImDrawListSharedData"][2] = {} +defs["structs"]["ImDrawListSharedData"][2]["name"] = "Font" +defs["structs"]["ImDrawListSharedData"][2]["type"] = "ImFont*" +defs["structs"]["ImDrawListSharedData"][3] = {} +defs["structs"]["ImDrawListSharedData"][3]["name"] = "FontSize" +defs["structs"]["ImDrawListSharedData"][3]["type"] = "float" +defs["structs"]["ImDrawListSharedData"][4] = {} +defs["structs"]["ImDrawListSharedData"][4]["name"] = "CurveTessellationTol" +defs["structs"]["ImDrawListSharedData"][4]["type"] = "float" +defs["structs"]["ImDrawListSharedData"][5] = {} +defs["structs"]["ImDrawListSharedData"][5]["name"] = "CircleSegmentMaxError" +defs["structs"]["ImDrawListSharedData"][5]["type"] = "float" +defs["structs"]["ImDrawListSharedData"][6] = {} +defs["structs"]["ImDrawListSharedData"][6]["name"] = "ClipRectFullscreen" +defs["structs"]["ImDrawListSharedData"][6]["type"] = "ImVec4" +defs["structs"]["ImDrawListSharedData"][7] = {} +defs["structs"]["ImDrawListSharedData"][7]["name"] = "InitialFlags" +defs["structs"]["ImDrawListSharedData"][7]["type"] = "ImDrawListFlags" +defs["structs"]["ImDrawListSharedData"][8] = {} +defs["structs"]["ImDrawListSharedData"][8]["name"] = "TempBuffer" +defs["structs"]["ImDrawListSharedData"][8]["template_type"] = "ImVec2" +defs["structs"]["ImDrawListSharedData"][8]["type"] = "ImVector_ImVec2" +defs["structs"]["ImDrawListSharedData"][9] = {} +defs["structs"]["ImDrawListSharedData"][9]["name"] = "ArcFastVtx[48]" +defs["structs"]["ImDrawListSharedData"][9]["size"] = 48 +defs["structs"]["ImDrawListSharedData"][9]["type"] = "ImVec2" +defs["structs"]["ImDrawListSharedData"][10] = {} +defs["structs"]["ImDrawListSharedData"][10]["name"] = "ArcFastRadiusCutoff" +defs["structs"]["ImDrawListSharedData"][10]["type"] = "float" +defs["structs"]["ImDrawListSharedData"][11] = {} +defs["structs"]["ImDrawListSharedData"][11]["name"] = "CircleSegmentCounts[64]" +defs["structs"]["ImDrawListSharedData"][11]["size"] = 64 +defs["structs"]["ImDrawListSharedData"][11]["type"] = "ImU8" +defs["structs"]["ImDrawListSharedData"][12] = {} +defs["structs"]["ImDrawListSharedData"][12]["name"] = "TexUvLines" +defs["structs"]["ImDrawListSharedData"][12]["type"] = "const ImVec4*" defs["structs"]["ImDrawListSplitter"] = {} defs["structs"]["ImDrawListSplitter"][1] = {} defs["structs"]["ImDrawListSplitter"][1]["name"] = "_Current" @@ -2922,6 +4111,10 @@ defs["structs"]["ImFontAtlasCustomRect"][7]["type"] = "ImVec2" defs["structs"]["ImFontAtlasCustomRect"][8] = {} defs["structs"]["ImFontAtlasCustomRect"][8]["name"] = "Font" defs["structs"]["ImFontAtlasCustomRect"][8]["type"] = "ImFont*" +defs["structs"]["ImFontBuilderIO"] = {} +defs["structs"]["ImFontBuilderIO"][1] = {} +defs["structs"]["ImFontBuilderIO"][1]["name"] = "FontBuilder_Build" +defs["structs"]["ImFontBuilderIO"][1]["type"] = "bool(*)(ImFontAtlas* atlas)" defs["structs"]["ImFontConfig"] = {} defs["structs"]["ImFontConfig"][1] = {} defs["structs"]["ImFontConfig"][1]["name"] = "FontData" @@ -3026,6 +4219,1023 @@ defs["structs"]["ImFontGlyphRangesBuilder"][1] = {} defs["structs"]["ImFontGlyphRangesBuilder"][1]["name"] = "UsedChars" defs["structs"]["ImFontGlyphRangesBuilder"][1]["template_type"] = "ImU32" defs["structs"]["ImFontGlyphRangesBuilder"][1]["type"] = "ImVector_ImU32" +defs["structs"]["ImGuiColorMod"] = {} +defs["structs"]["ImGuiColorMod"][1] = {} +defs["structs"]["ImGuiColorMod"][1]["name"] = "Col" +defs["structs"]["ImGuiColorMod"][1]["type"] = "ImGuiCol" +defs["structs"]["ImGuiColorMod"][2] = {} +defs["structs"]["ImGuiColorMod"][2]["name"] = "BackupValue" +defs["structs"]["ImGuiColorMod"][2]["type"] = "ImVec4" +defs["structs"]["ImGuiComboPreviewData"] = {} +defs["structs"]["ImGuiComboPreviewData"][1] = {} +defs["structs"]["ImGuiComboPreviewData"][1]["name"] = "PreviewRect" +defs["structs"]["ImGuiComboPreviewData"][1]["type"] = "ImRect" +defs["structs"]["ImGuiComboPreviewData"][2] = {} +defs["structs"]["ImGuiComboPreviewData"][2]["name"] = "BackupCursorPos" +defs["structs"]["ImGuiComboPreviewData"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiComboPreviewData"][3] = {} +defs["structs"]["ImGuiComboPreviewData"][3]["name"] = "BackupCursorMaxPos" +defs["structs"]["ImGuiComboPreviewData"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiComboPreviewData"][4] = {} +defs["structs"]["ImGuiComboPreviewData"][4]["name"] = "BackupCursorPosPrevLine" +defs["structs"]["ImGuiComboPreviewData"][4]["type"] = "ImVec2" +defs["structs"]["ImGuiComboPreviewData"][5] = {} +defs["structs"]["ImGuiComboPreviewData"][5]["name"] = "BackupPrevLineTextBaseOffset" +defs["structs"]["ImGuiComboPreviewData"][5]["type"] = "float" +defs["structs"]["ImGuiComboPreviewData"][6] = {} +defs["structs"]["ImGuiComboPreviewData"][6]["name"] = "BackupLayout" +defs["structs"]["ImGuiComboPreviewData"][6]["type"] = "ImGuiLayoutType" +defs["structs"]["ImGuiContext"] = {} +defs["structs"]["ImGuiContext"][1] = {} +defs["structs"]["ImGuiContext"][1]["name"] = "Initialized" +defs["structs"]["ImGuiContext"][1]["type"] = "bool" +defs["structs"]["ImGuiContext"][2] = {} +defs["structs"]["ImGuiContext"][2]["name"] = "FontAtlasOwnedByContext" +defs["structs"]["ImGuiContext"][2]["type"] = "bool" +defs["structs"]["ImGuiContext"][3] = {} +defs["structs"]["ImGuiContext"][3]["name"] = "IO" +defs["structs"]["ImGuiContext"][3]["type"] = "ImGuiIO" +defs["structs"]["ImGuiContext"][4] = {} +defs["structs"]["ImGuiContext"][4]["name"] = "PlatformIO" +defs["structs"]["ImGuiContext"][4]["type"] = "ImGuiPlatformIO" +defs["structs"]["ImGuiContext"][5] = {} +defs["structs"]["ImGuiContext"][5]["name"] = "InputEventsQueue" +defs["structs"]["ImGuiContext"][5]["template_type"] = "ImGuiInputEvent" +defs["structs"]["ImGuiContext"][5]["type"] = "ImVector_ImGuiInputEvent" +defs["structs"]["ImGuiContext"][6] = {} +defs["structs"]["ImGuiContext"][6]["name"] = "InputEventsTrail" +defs["structs"]["ImGuiContext"][6]["template_type"] = "ImGuiInputEvent" +defs["structs"]["ImGuiContext"][6]["type"] = "ImVector_ImGuiInputEvent" +defs["structs"]["ImGuiContext"][7] = {} +defs["structs"]["ImGuiContext"][7]["name"] = "Style" +defs["structs"]["ImGuiContext"][7]["type"] = "ImGuiStyle" +defs["structs"]["ImGuiContext"][8] = {} +defs["structs"]["ImGuiContext"][8]["name"] = "ConfigFlagsCurrFrame" +defs["structs"]["ImGuiContext"][8]["type"] = "ImGuiConfigFlags" +defs["structs"]["ImGuiContext"][9] = {} +defs["structs"]["ImGuiContext"][9]["name"] = "ConfigFlagsLastFrame" +defs["structs"]["ImGuiContext"][9]["type"] = "ImGuiConfigFlags" +defs["structs"]["ImGuiContext"][10] = {} +defs["structs"]["ImGuiContext"][10]["name"] = "Font" +defs["structs"]["ImGuiContext"][10]["type"] = "ImFont*" +defs["structs"]["ImGuiContext"][11] = {} +defs["structs"]["ImGuiContext"][11]["name"] = "FontSize" +defs["structs"]["ImGuiContext"][11]["type"] = "float" +defs["structs"]["ImGuiContext"][12] = {} +defs["structs"]["ImGuiContext"][12]["name"] = "FontBaseSize" +defs["structs"]["ImGuiContext"][12]["type"] = "float" +defs["structs"]["ImGuiContext"][13] = {} +defs["structs"]["ImGuiContext"][13]["name"] = "DrawListSharedData" +defs["structs"]["ImGuiContext"][13]["type"] = "ImDrawListSharedData" +defs["structs"]["ImGuiContext"][14] = {} +defs["structs"]["ImGuiContext"][14]["name"] = "Time" +defs["structs"]["ImGuiContext"][14]["type"] = "double" +defs["structs"]["ImGuiContext"][15] = {} +defs["structs"]["ImGuiContext"][15]["name"] = "FrameCount" +defs["structs"]["ImGuiContext"][15]["type"] = "int" +defs["structs"]["ImGuiContext"][16] = {} +defs["structs"]["ImGuiContext"][16]["name"] = "FrameCountEnded" +defs["structs"]["ImGuiContext"][16]["type"] = "int" +defs["structs"]["ImGuiContext"][17] = {} +defs["structs"]["ImGuiContext"][17]["name"] = "FrameCountPlatformEnded" +defs["structs"]["ImGuiContext"][17]["type"] = "int" +defs["structs"]["ImGuiContext"][18] = {} +defs["structs"]["ImGuiContext"][18]["name"] = "FrameCountRendered" +defs["structs"]["ImGuiContext"][18]["type"] = "int" +defs["structs"]["ImGuiContext"][19] = {} +defs["structs"]["ImGuiContext"][19]["name"] = "WithinFrameScope" +defs["structs"]["ImGuiContext"][19]["type"] = "bool" +defs["structs"]["ImGuiContext"][20] = {} +defs["structs"]["ImGuiContext"][20]["name"] = "WithinFrameScopeWithImplicitWindow" +defs["structs"]["ImGuiContext"][20]["type"] = "bool" +defs["structs"]["ImGuiContext"][21] = {} +defs["structs"]["ImGuiContext"][21]["name"] = "WithinEndChild" +defs["structs"]["ImGuiContext"][21]["type"] = "bool" +defs["structs"]["ImGuiContext"][22] = {} +defs["structs"]["ImGuiContext"][22]["name"] = "GcCompactAll" +defs["structs"]["ImGuiContext"][22]["type"] = "bool" +defs["structs"]["ImGuiContext"][23] = {} +defs["structs"]["ImGuiContext"][23]["name"] = "TestEngineHookItems" +defs["structs"]["ImGuiContext"][23]["type"] = "bool" +defs["structs"]["ImGuiContext"][24] = {} +defs["structs"]["ImGuiContext"][24]["name"] = "TestEngine" +defs["structs"]["ImGuiContext"][24]["type"] = "void*" +defs["structs"]["ImGuiContext"][25] = {} +defs["structs"]["ImGuiContext"][25]["name"] = "Windows" +defs["structs"]["ImGuiContext"][25]["template_type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][25]["type"] = "ImVector_ImGuiWindowPtr" +defs["structs"]["ImGuiContext"][26] = {} +defs["structs"]["ImGuiContext"][26]["name"] = "WindowsFocusOrder" +defs["structs"]["ImGuiContext"][26]["template_type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][26]["type"] = "ImVector_ImGuiWindowPtr" +defs["structs"]["ImGuiContext"][27] = {} +defs["structs"]["ImGuiContext"][27]["name"] = "WindowsTempSortBuffer" +defs["structs"]["ImGuiContext"][27]["template_type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][27]["type"] = "ImVector_ImGuiWindowPtr" +defs["structs"]["ImGuiContext"][28] = {} +defs["structs"]["ImGuiContext"][28]["name"] = "CurrentWindowStack" +defs["structs"]["ImGuiContext"][28]["template_type"] = "ImGuiWindowStackData" +defs["structs"]["ImGuiContext"][28]["type"] = "ImVector_ImGuiWindowStackData" +defs["structs"]["ImGuiContext"][29] = {} +defs["structs"]["ImGuiContext"][29]["name"] = "WindowsById" +defs["structs"]["ImGuiContext"][29]["type"] = "ImGuiStorage" +defs["structs"]["ImGuiContext"][30] = {} +defs["structs"]["ImGuiContext"][30]["name"] = "WindowsActiveCount" +defs["structs"]["ImGuiContext"][30]["type"] = "int" +defs["structs"]["ImGuiContext"][31] = {} +defs["structs"]["ImGuiContext"][31]["name"] = "WindowsHoverPadding" +defs["structs"]["ImGuiContext"][31]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][32] = {} +defs["structs"]["ImGuiContext"][32]["name"] = "CurrentWindow" +defs["structs"]["ImGuiContext"][32]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][33] = {} +defs["structs"]["ImGuiContext"][33]["name"] = "HoveredWindow" +defs["structs"]["ImGuiContext"][33]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][34] = {} +defs["structs"]["ImGuiContext"][34]["name"] = "HoveredWindowUnderMovingWindow" +defs["structs"]["ImGuiContext"][34]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][35] = {} +defs["structs"]["ImGuiContext"][35]["name"] = "MovingWindow" +defs["structs"]["ImGuiContext"][35]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][36] = {} +defs["structs"]["ImGuiContext"][36]["name"] = "WheelingWindow" +defs["structs"]["ImGuiContext"][36]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][37] = {} +defs["structs"]["ImGuiContext"][37]["name"] = "WheelingWindowRefMousePos" +defs["structs"]["ImGuiContext"][37]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][38] = {} +defs["structs"]["ImGuiContext"][38]["name"] = "WheelingWindowReleaseTimer" +defs["structs"]["ImGuiContext"][38]["type"] = "float" +defs["structs"]["ImGuiContext"][39] = {} +defs["structs"]["ImGuiContext"][39]["name"] = "DebugHookIdInfo" +defs["structs"]["ImGuiContext"][39]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][40] = {} +defs["structs"]["ImGuiContext"][40]["name"] = "HoveredId" +defs["structs"]["ImGuiContext"][40]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][41] = {} +defs["structs"]["ImGuiContext"][41]["name"] = "HoveredIdPreviousFrame" +defs["structs"]["ImGuiContext"][41]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][42] = {} +defs["structs"]["ImGuiContext"][42]["name"] = "HoveredIdAllowOverlap" +defs["structs"]["ImGuiContext"][42]["type"] = "bool" +defs["structs"]["ImGuiContext"][43] = {} +defs["structs"]["ImGuiContext"][43]["name"] = "HoveredIdDisabled" +defs["structs"]["ImGuiContext"][43]["type"] = "bool" +defs["structs"]["ImGuiContext"][44] = {} +defs["structs"]["ImGuiContext"][44]["name"] = "HoveredIdTimer" +defs["structs"]["ImGuiContext"][44]["type"] = "float" +defs["structs"]["ImGuiContext"][45] = {} +defs["structs"]["ImGuiContext"][45]["name"] = "HoveredIdNotActiveTimer" +defs["structs"]["ImGuiContext"][45]["type"] = "float" +defs["structs"]["ImGuiContext"][46] = {} +defs["structs"]["ImGuiContext"][46]["name"] = "ActiveId" +defs["structs"]["ImGuiContext"][46]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][47] = {} +defs["structs"]["ImGuiContext"][47]["name"] = "ActiveIdIsAlive" +defs["structs"]["ImGuiContext"][47]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][48] = {} +defs["structs"]["ImGuiContext"][48]["name"] = "ActiveIdTimer" +defs["structs"]["ImGuiContext"][48]["type"] = "float" +defs["structs"]["ImGuiContext"][49] = {} +defs["structs"]["ImGuiContext"][49]["name"] = "ActiveIdIsJustActivated" +defs["structs"]["ImGuiContext"][49]["type"] = "bool" +defs["structs"]["ImGuiContext"][50] = {} +defs["structs"]["ImGuiContext"][50]["name"] = "ActiveIdAllowOverlap" +defs["structs"]["ImGuiContext"][50]["type"] = "bool" +defs["structs"]["ImGuiContext"][51] = {} +defs["structs"]["ImGuiContext"][51]["name"] = "ActiveIdNoClearOnFocusLoss" +defs["structs"]["ImGuiContext"][51]["type"] = "bool" +defs["structs"]["ImGuiContext"][52] = {} +defs["structs"]["ImGuiContext"][52]["name"] = "ActiveIdHasBeenPressedBefore" +defs["structs"]["ImGuiContext"][52]["type"] = "bool" +defs["structs"]["ImGuiContext"][53] = {} +defs["structs"]["ImGuiContext"][53]["name"] = "ActiveIdHasBeenEditedBefore" +defs["structs"]["ImGuiContext"][53]["type"] = "bool" +defs["structs"]["ImGuiContext"][54] = {} +defs["structs"]["ImGuiContext"][54]["name"] = "ActiveIdHasBeenEditedThisFrame" +defs["structs"]["ImGuiContext"][54]["type"] = "bool" +defs["structs"]["ImGuiContext"][55] = {} +defs["structs"]["ImGuiContext"][55]["name"] = "ActiveIdClickOffset" +defs["structs"]["ImGuiContext"][55]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][56] = {} +defs["structs"]["ImGuiContext"][56]["name"] = "ActiveIdWindow" +defs["structs"]["ImGuiContext"][56]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][57] = {} +defs["structs"]["ImGuiContext"][57]["name"] = "ActiveIdSource" +defs["structs"]["ImGuiContext"][57]["type"] = "ImGuiInputSource" +defs["structs"]["ImGuiContext"][58] = {} +defs["structs"]["ImGuiContext"][58]["name"] = "ActiveIdMouseButton" +defs["structs"]["ImGuiContext"][58]["type"] = "int" +defs["structs"]["ImGuiContext"][59] = {} +defs["structs"]["ImGuiContext"][59]["name"] = "ActiveIdPreviousFrame" +defs["structs"]["ImGuiContext"][59]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][60] = {} +defs["structs"]["ImGuiContext"][60]["name"] = "ActiveIdPreviousFrameIsAlive" +defs["structs"]["ImGuiContext"][60]["type"] = "bool" +defs["structs"]["ImGuiContext"][61] = {} +defs["structs"]["ImGuiContext"][61]["name"] = "ActiveIdPreviousFrameHasBeenEditedBefore" +defs["structs"]["ImGuiContext"][61]["type"] = "bool" +defs["structs"]["ImGuiContext"][62] = {} +defs["structs"]["ImGuiContext"][62]["name"] = "ActiveIdPreviousFrameWindow" +defs["structs"]["ImGuiContext"][62]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][63] = {} +defs["structs"]["ImGuiContext"][63]["name"] = "LastActiveId" +defs["structs"]["ImGuiContext"][63]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][64] = {} +defs["structs"]["ImGuiContext"][64]["name"] = "LastActiveIdTimer" +defs["structs"]["ImGuiContext"][64]["type"] = "float" +defs["structs"]["ImGuiContext"][65] = {} +defs["structs"]["ImGuiContext"][65]["name"] = "KeysOwnerData[ImGuiKey_NamedKey_COUNT]" +defs["structs"]["ImGuiContext"][65]["size"] = 140 +defs["structs"]["ImGuiContext"][65]["type"] = "ImGuiKeyOwnerData" +defs["structs"]["ImGuiContext"][66] = {} +defs["structs"]["ImGuiContext"][66]["name"] = "KeysRoutingTable" +defs["structs"]["ImGuiContext"][66]["type"] = "ImGuiKeyRoutingTable" +defs["structs"]["ImGuiContext"][67] = {} +defs["structs"]["ImGuiContext"][67]["name"] = "ActiveIdUsingNavDirMask" +defs["structs"]["ImGuiContext"][67]["type"] = "ImU32" +defs["structs"]["ImGuiContext"][68] = {} +defs["structs"]["ImGuiContext"][68]["name"] = "ActiveIdUsingAllKeyboardKeys" +defs["structs"]["ImGuiContext"][68]["type"] = "bool" +defs["structs"]["ImGuiContext"][69] = {} +defs["structs"]["ImGuiContext"][69]["name"] = "ActiveIdUsingNavInputMask" +defs["structs"]["ImGuiContext"][69]["type"] = "ImU32" +defs["structs"]["ImGuiContext"][70] = {} +defs["structs"]["ImGuiContext"][70]["name"] = "CurrentFocusScopeId" +defs["structs"]["ImGuiContext"][70]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][71] = {} +defs["structs"]["ImGuiContext"][71]["name"] = "CurrentItemFlags" +defs["structs"]["ImGuiContext"][71]["type"] = "ImGuiItemFlags" +defs["structs"]["ImGuiContext"][72] = {} +defs["structs"]["ImGuiContext"][72]["name"] = "DebugLocateId" +defs["structs"]["ImGuiContext"][72]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][73] = {} +defs["structs"]["ImGuiContext"][73]["name"] = "NextItemData" +defs["structs"]["ImGuiContext"][73]["type"] = "ImGuiNextItemData" +defs["structs"]["ImGuiContext"][74] = {} +defs["structs"]["ImGuiContext"][74]["name"] = "LastItemData" +defs["structs"]["ImGuiContext"][74]["type"] = "ImGuiLastItemData" +defs["structs"]["ImGuiContext"][75] = {} +defs["structs"]["ImGuiContext"][75]["name"] = "NextWindowData" +defs["structs"]["ImGuiContext"][75]["type"] = "ImGuiNextWindowData" +defs["structs"]["ImGuiContext"][76] = {} +defs["structs"]["ImGuiContext"][76]["name"] = "ColorStack" +defs["structs"]["ImGuiContext"][76]["template_type"] = "ImGuiColorMod" +defs["structs"]["ImGuiContext"][76]["type"] = "ImVector_ImGuiColorMod" +defs["structs"]["ImGuiContext"][77] = {} +defs["structs"]["ImGuiContext"][77]["name"] = "StyleVarStack" +defs["structs"]["ImGuiContext"][77]["template_type"] = "ImGuiStyleMod" +defs["structs"]["ImGuiContext"][77]["type"] = "ImVector_ImGuiStyleMod" +defs["structs"]["ImGuiContext"][78] = {} +defs["structs"]["ImGuiContext"][78]["name"] = "FontStack" +defs["structs"]["ImGuiContext"][78]["template_type"] = "ImFont*" +defs["structs"]["ImGuiContext"][78]["type"] = "ImVector_ImFontPtr" +defs["structs"]["ImGuiContext"][79] = {} +defs["structs"]["ImGuiContext"][79]["name"] = "FocusScopeStack" +defs["structs"]["ImGuiContext"][79]["template_type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][79]["type"] = "ImVector_ImGuiID" +defs["structs"]["ImGuiContext"][80] = {} +defs["structs"]["ImGuiContext"][80]["name"] = "ItemFlagsStack" +defs["structs"]["ImGuiContext"][80]["template_type"] = "ImGuiItemFlags" +defs["structs"]["ImGuiContext"][80]["type"] = "ImVector_ImGuiItemFlags" +defs["structs"]["ImGuiContext"][81] = {} +defs["structs"]["ImGuiContext"][81]["name"] = "GroupStack" +defs["structs"]["ImGuiContext"][81]["template_type"] = "ImGuiGroupData" +defs["structs"]["ImGuiContext"][81]["type"] = "ImVector_ImGuiGroupData" +defs["structs"]["ImGuiContext"][82] = {} +defs["structs"]["ImGuiContext"][82]["name"] = "OpenPopupStack" +defs["structs"]["ImGuiContext"][82]["template_type"] = "ImGuiPopupData" +defs["structs"]["ImGuiContext"][82]["type"] = "ImVector_ImGuiPopupData" +defs["structs"]["ImGuiContext"][83] = {} +defs["structs"]["ImGuiContext"][83]["name"] = "BeginPopupStack" +defs["structs"]["ImGuiContext"][83]["template_type"] = "ImGuiPopupData" +defs["structs"]["ImGuiContext"][83]["type"] = "ImVector_ImGuiPopupData" +defs["structs"]["ImGuiContext"][84] = {} +defs["structs"]["ImGuiContext"][84]["name"] = "BeginMenuCount" +defs["structs"]["ImGuiContext"][84]["type"] = "int" +defs["structs"]["ImGuiContext"][85] = {} +defs["structs"]["ImGuiContext"][85]["name"] = "Viewports" +defs["structs"]["ImGuiContext"][85]["template_type"] = "ImGuiViewportP*" +defs["structs"]["ImGuiContext"][85]["type"] = "ImVector_ImGuiViewportPPtr" +defs["structs"]["ImGuiContext"][86] = {} +defs["structs"]["ImGuiContext"][86]["name"] = "CurrentDpiScale" +defs["structs"]["ImGuiContext"][86]["type"] = "float" +defs["structs"]["ImGuiContext"][87] = {} +defs["structs"]["ImGuiContext"][87]["name"] = "CurrentViewport" +defs["structs"]["ImGuiContext"][87]["type"] = "ImGuiViewportP*" +defs["structs"]["ImGuiContext"][88] = {} +defs["structs"]["ImGuiContext"][88]["name"] = "MouseViewport" +defs["structs"]["ImGuiContext"][88]["type"] = "ImGuiViewportP*" +defs["structs"]["ImGuiContext"][89] = {} +defs["structs"]["ImGuiContext"][89]["name"] = "MouseLastHoveredViewport" +defs["structs"]["ImGuiContext"][89]["type"] = "ImGuiViewportP*" +defs["structs"]["ImGuiContext"][90] = {} +defs["structs"]["ImGuiContext"][90]["name"] = "PlatformLastFocusedViewportId" +defs["structs"]["ImGuiContext"][90]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][91] = {} +defs["structs"]["ImGuiContext"][91]["name"] = "FallbackMonitor" +defs["structs"]["ImGuiContext"][91]["type"] = "ImGuiPlatformMonitor" +defs["structs"]["ImGuiContext"][92] = {} +defs["structs"]["ImGuiContext"][92]["name"] = "ViewportFrontMostStampCount" +defs["structs"]["ImGuiContext"][92]["type"] = "int" +defs["structs"]["ImGuiContext"][93] = {} +defs["structs"]["ImGuiContext"][93]["name"] = "NavWindow" +defs["structs"]["ImGuiContext"][93]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][94] = {} +defs["structs"]["ImGuiContext"][94]["name"] = "NavId" +defs["structs"]["ImGuiContext"][94]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][95] = {} +defs["structs"]["ImGuiContext"][95]["name"] = "NavFocusScopeId" +defs["structs"]["ImGuiContext"][95]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][96] = {} +defs["structs"]["ImGuiContext"][96]["name"] = "NavActivateId" +defs["structs"]["ImGuiContext"][96]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][97] = {} +defs["structs"]["ImGuiContext"][97]["name"] = "NavActivateDownId" +defs["structs"]["ImGuiContext"][97]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][98] = {} +defs["structs"]["ImGuiContext"][98]["name"] = "NavActivatePressedId" +defs["structs"]["ImGuiContext"][98]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][99] = {} +defs["structs"]["ImGuiContext"][99]["name"] = "NavActivateInputId" +defs["structs"]["ImGuiContext"][99]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][100] = {} +defs["structs"]["ImGuiContext"][100]["name"] = "NavActivateFlags" +defs["structs"]["ImGuiContext"][100]["type"] = "ImGuiActivateFlags" +defs["structs"]["ImGuiContext"][101] = {} +defs["structs"]["ImGuiContext"][101]["name"] = "NavJustMovedToId" +defs["structs"]["ImGuiContext"][101]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][102] = {} +defs["structs"]["ImGuiContext"][102]["name"] = "NavJustMovedToFocusScopeId" +defs["structs"]["ImGuiContext"][102]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][103] = {} +defs["structs"]["ImGuiContext"][103]["name"] = "NavJustMovedToKeyMods" +defs["structs"]["ImGuiContext"][103]["type"] = "ImGuiKeyChord" +defs["structs"]["ImGuiContext"][104] = {} +defs["structs"]["ImGuiContext"][104]["name"] = "NavNextActivateId" +defs["structs"]["ImGuiContext"][104]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][105] = {} +defs["structs"]["ImGuiContext"][105]["name"] = "NavNextActivateFlags" +defs["structs"]["ImGuiContext"][105]["type"] = "ImGuiActivateFlags" +defs["structs"]["ImGuiContext"][106] = {} +defs["structs"]["ImGuiContext"][106]["name"] = "NavInputSource" +defs["structs"]["ImGuiContext"][106]["type"] = "ImGuiInputSource" +defs["structs"]["ImGuiContext"][107] = {} +defs["structs"]["ImGuiContext"][107]["name"] = "NavLayer" +defs["structs"]["ImGuiContext"][107]["type"] = "ImGuiNavLayer" +defs["structs"]["ImGuiContext"][108] = {} +defs["structs"]["ImGuiContext"][108]["name"] = "NavIdIsAlive" +defs["structs"]["ImGuiContext"][108]["type"] = "bool" +defs["structs"]["ImGuiContext"][109] = {} +defs["structs"]["ImGuiContext"][109]["name"] = "NavMousePosDirty" +defs["structs"]["ImGuiContext"][109]["type"] = "bool" +defs["structs"]["ImGuiContext"][110] = {} +defs["structs"]["ImGuiContext"][110]["name"] = "NavDisableHighlight" +defs["structs"]["ImGuiContext"][110]["type"] = "bool" +defs["structs"]["ImGuiContext"][111] = {} +defs["structs"]["ImGuiContext"][111]["name"] = "NavDisableMouseHover" +defs["structs"]["ImGuiContext"][111]["type"] = "bool" +defs["structs"]["ImGuiContext"][112] = {} +defs["structs"]["ImGuiContext"][112]["name"] = "NavAnyRequest" +defs["structs"]["ImGuiContext"][112]["type"] = "bool" +defs["structs"]["ImGuiContext"][113] = {} +defs["structs"]["ImGuiContext"][113]["name"] = "NavInitRequest" +defs["structs"]["ImGuiContext"][113]["type"] = "bool" +defs["structs"]["ImGuiContext"][114] = {} +defs["structs"]["ImGuiContext"][114]["name"] = "NavInitRequestFromMove" +defs["structs"]["ImGuiContext"][114]["type"] = "bool" +defs["structs"]["ImGuiContext"][115] = {} +defs["structs"]["ImGuiContext"][115]["name"] = "NavInitResultId" +defs["structs"]["ImGuiContext"][115]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][116] = {} +defs["structs"]["ImGuiContext"][116]["name"] = "NavInitResultRectRel" +defs["structs"]["ImGuiContext"][116]["type"] = "ImRect" +defs["structs"]["ImGuiContext"][117] = {} +defs["structs"]["ImGuiContext"][117]["name"] = "NavMoveSubmitted" +defs["structs"]["ImGuiContext"][117]["type"] = "bool" +defs["structs"]["ImGuiContext"][118] = {} +defs["structs"]["ImGuiContext"][118]["name"] = "NavMoveScoringItems" +defs["structs"]["ImGuiContext"][118]["type"] = "bool" +defs["structs"]["ImGuiContext"][119] = {} +defs["structs"]["ImGuiContext"][119]["name"] = "NavMoveForwardToNextFrame" +defs["structs"]["ImGuiContext"][119]["type"] = "bool" +defs["structs"]["ImGuiContext"][120] = {} +defs["structs"]["ImGuiContext"][120]["name"] = "NavMoveFlags" +defs["structs"]["ImGuiContext"][120]["type"] = "ImGuiNavMoveFlags" +defs["structs"]["ImGuiContext"][121] = {} +defs["structs"]["ImGuiContext"][121]["name"] = "NavMoveScrollFlags" +defs["structs"]["ImGuiContext"][121]["type"] = "ImGuiScrollFlags" +defs["structs"]["ImGuiContext"][122] = {} +defs["structs"]["ImGuiContext"][122]["name"] = "NavMoveKeyMods" +defs["structs"]["ImGuiContext"][122]["type"] = "ImGuiKeyChord" +defs["structs"]["ImGuiContext"][123] = {} +defs["structs"]["ImGuiContext"][123]["name"] = "NavMoveDir" +defs["structs"]["ImGuiContext"][123]["type"] = "ImGuiDir" +defs["structs"]["ImGuiContext"][124] = {} +defs["structs"]["ImGuiContext"][124]["name"] = "NavMoveDirForDebug" +defs["structs"]["ImGuiContext"][124]["type"] = "ImGuiDir" +defs["structs"]["ImGuiContext"][125] = {} +defs["structs"]["ImGuiContext"][125]["name"] = "NavMoveClipDir" +defs["structs"]["ImGuiContext"][125]["type"] = "ImGuiDir" +defs["structs"]["ImGuiContext"][126] = {} +defs["structs"]["ImGuiContext"][126]["name"] = "NavScoringRect" +defs["structs"]["ImGuiContext"][126]["type"] = "ImRect" +defs["structs"]["ImGuiContext"][127] = {} +defs["structs"]["ImGuiContext"][127]["name"] = "NavScoringNoClipRect" +defs["structs"]["ImGuiContext"][127]["type"] = "ImRect" +defs["structs"]["ImGuiContext"][128] = {} +defs["structs"]["ImGuiContext"][128]["name"] = "NavScoringDebugCount" +defs["structs"]["ImGuiContext"][128]["type"] = "int" +defs["structs"]["ImGuiContext"][129] = {} +defs["structs"]["ImGuiContext"][129]["name"] = "NavTabbingDir" +defs["structs"]["ImGuiContext"][129]["type"] = "int" +defs["structs"]["ImGuiContext"][130] = {} +defs["structs"]["ImGuiContext"][130]["name"] = "NavTabbingCounter" +defs["structs"]["ImGuiContext"][130]["type"] = "int" +defs["structs"]["ImGuiContext"][131] = {} +defs["structs"]["ImGuiContext"][131]["name"] = "NavMoveResultLocal" +defs["structs"]["ImGuiContext"][131]["type"] = "ImGuiNavItemData" +defs["structs"]["ImGuiContext"][132] = {} +defs["structs"]["ImGuiContext"][132]["name"] = "NavMoveResultLocalVisible" +defs["structs"]["ImGuiContext"][132]["type"] = "ImGuiNavItemData" +defs["structs"]["ImGuiContext"][133] = {} +defs["structs"]["ImGuiContext"][133]["name"] = "NavMoveResultOther" +defs["structs"]["ImGuiContext"][133]["type"] = "ImGuiNavItemData" +defs["structs"]["ImGuiContext"][134] = {} +defs["structs"]["ImGuiContext"][134]["name"] = "NavTabbingResultFirst" +defs["structs"]["ImGuiContext"][134]["type"] = "ImGuiNavItemData" +defs["structs"]["ImGuiContext"][135] = {} +defs["structs"]["ImGuiContext"][135]["name"] = "ConfigNavWindowingKeyNext" +defs["structs"]["ImGuiContext"][135]["type"] = "ImGuiKeyChord" +defs["structs"]["ImGuiContext"][136] = {} +defs["structs"]["ImGuiContext"][136]["name"] = "ConfigNavWindowingKeyPrev" +defs["structs"]["ImGuiContext"][136]["type"] = "ImGuiKeyChord" +defs["structs"]["ImGuiContext"][137] = {} +defs["structs"]["ImGuiContext"][137]["name"] = "NavWindowingTarget" +defs["structs"]["ImGuiContext"][137]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][138] = {} +defs["structs"]["ImGuiContext"][138]["name"] = "NavWindowingTargetAnim" +defs["structs"]["ImGuiContext"][138]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][139] = {} +defs["structs"]["ImGuiContext"][139]["name"] = "NavWindowingListWindow" +defs["structs"]["ImGuiContext"][139]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiContext"][140] = {} +defs["structs"]["ImGuiContext"][140]["name"] = "NavWindowingTimer" +defs["structs"]["ImGuiContext"][140]["type"] = "float" +defs["structs"]["ImGuiContext"][141] = {} +defs["structs"]["ImGuiContext"][141]["name"] = "NavWindowingHighlightAlpha" +defs["structs"]["ImGuiContext"][141]["type"] = "float" +defs["structs"]["ImGuiContext"][142] = {} +defs["structs"]["ImGuiContext"][142]["name"] = "NavWindowingToggleLayer" +defs["structs"]["ImGuiContext"][142]["type"] = "bool" +defs["structs"]["ImGuiContext"][143] = {} +defs["structs"]["ImGuiContext"][143]["name"] = "NavWindowingAccumDeltaPos" +defs["structs"]["ImGuiContext"][143]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][144] = {} +defs["structs"]["ImGuiContext"][144]["name"] = "NavWindowingAccumDeltaSize" +defs["structs"]["ImGuiContext"][144]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][145] = {} +defs["structs"]["ImGuiContext"][145]["name"] = "DimBgRatio" +defs["structs"]["ImGuiContext"][145]["type"] = "float" +defs["structs"]["ImGuiContext"][146] = {} +defs["structs"]["ImGuiContext"][146]["name"] = "MouseCursor" +defs["structs"]["ImGuiContext"][146]["type"] = "ImGuiMouseCursor" +defs["structs"]["ImGuiContext"][147] = {} +defs["structs"]["ImGuiContext"][147]["name"] = "DragDropActive" +defs["structs"]["ImGuiContext"][147]["type"] = "bool" +defs["structs"]["ImGuiContext"][148] = {} +defs["structs"]["ImGuiContext"][148]["name"] = "DragDropWithinSource" +defs["structs"]["ImGuiContext"][148]["type"] = "bool" +defs["structs"]["ImGuiContext"][149] = {} +defs["structs"]["ImGuiContext"][149]["name"] = "DragDropWithinTarget" +defs["structs"]["ImGuiContext"][149]["type"] = "bool" +defs["structs"]["ImGuiContext"][150] = {} +defs["structs"]["ImGuiContext"][150]["name"] = "DragDropSourceFlags" +defs["structs"]["ImGuiContext"][150]["type"] = "ImGuiDragDropFlags" +defs["structs"]["ImGuiContext"][151] = {} +defs["structs"]["ImGuiContext"][151]["name"] = "DragDropSourceFrameCount" +defs["structs"]["ImGuiContext"][151]["type"] = "int" +defs["structs"]["ImGuiContext"][152] = {} +defs["structs"]["ImGuiContext"][152]["name"] = "DragDropMouseButton" +defs["structs"]["ImGuiContext"][152]["type"] = "int" +defs["structs"]["ImGuiContext"][153] = {} +defs["structs"]["ImGuiContext"][153]["name"] = "DragDropPayload" +defs["structs"]["ImGuiContext"][153]["type"] = "ImGuiPayload" +defs["structs"]["ImGuiContext"][154] = {} +defs["structs"]["ImGuiContext"][154]["name"] = "DragDropTargetRect" +defs["structs"]["ImGuiContext"][154]["type"] = "ImRect" +defs["structs"]["ImGuiContext"][155] = {} +defs["structs"]["ImGuiContext"][155]["name"] = "DragDropTargetId" +defs["structs"]["ImGuiContext"][155]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][156] = {} +defs["structs"]["ImGuiContext"][156]["name"] = "DragDropAcceptFlags" +defs["structs"]["ImGuiContext"][156]["type"] = "ImGuiDragDropFlags" +defs["structs"]["ImGuiContext"][157] = {} +defs["structs"]["ImGuiContext"][157]["name"] = "DragDropAcceptIdCurrRectSurface" +defs["structs"]["ImGuiContext"][157]["type"] = "float" +defs["structs"]["ImGuiContext"][158] = {} +defs["structs"]["ImGuiContext"][158]["name"] = "DragDropAcceptIdCurr" +defs["structs"]["ImGuiContext"][158]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][159] = {} +defs["structs"]["ImGuiContext"][159]["name"] = "DragDropAcceptIdPrev" +defs["structs"]["ImGuiContext"][159]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][160] = {} +defs["structs"]["ImGuiContext"][160]["name"] = "DragDropAcceptFrameCount" +defs["structs"]["ImGuiContext"][160]["type"] = "int" +defs["structs"]["ImGuiContext"][161] = {} +defs["structs"]["ImGuiContext"][161]["name"] = "DragDropHoldJustPressedId" +defs["structs"]["ImGuiContext"][161]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][162] = {} +defs["structs"]["ImGuiContext"][162]["name"] = "DragDropPayloadBufHeap" +defs["structs"]["ImGuiContext"][162]["template_type"] = "unsigned char" +defs["structs"]["ImGuiContext"][162]["type"] = "ImVector_unsigned_char" +defs["structs"]["ImGuiContext"][163] = {} +defs["structs"]["ImGuiContext"][163]["name"] = "DragDropPayloadBufLocal[16]" +defs["structs"]["ImGuiContext"][163]["size"] = 16 +defs["structs"]["ImGuiContext"][163]["type"] = "unsigned char" +defs["structs"]["ImGuiContext"][164] = {} +defs["structs"]["ImGuiContext"][164]["name"] = "ClipperTempDataStacked" +defs["structs"]["ImGuiContext"][164]["type"] = "int" +defs["structs"]["ImGuiContext"][165] = {} +defs["structs"]["ImGuiContext"][165]["name"] = "ClipperTempData" +defs["structs"]["ImGuiContext"][165]["template_type"] = "ImGuiListClipperData" +defs["structs"]["ImGuiContext"][165]["type"] = "ImVector_ImGuiListClipperData" +defs["structs"]["ImGuiContext"][166] = {} +defs["structs"]["ImGuiContext"][166]["name"] = "CurrentTable" +defs["structs"]["ImGuiContext"][166]["type"] = "ImGuiTable*" +defs["structs"]["ImGuiContext"][167] = {} +defs["structs"]["ImGuiContext"][167]["name"] = "TablesTempDataStacked" +defs["structs"]["ImGuiContext"][167]["type"] = "int" +defs["structs"]["ImGuiContext"][168] = {} +defs["structs"]["ImGuiContext"][168]["name"] = "TablesTempData" +defs["structs"]["ImGuiContext"][168]["template_type"] = "ImGuiTableTempData" +defs["structs"]["ImGuiContext"][168]["type"] = "ImVector_ImGuiTableTempData" +defs["structs"]["ImGuiContext"][169] = {} +defs["structs"]["ImGuiContext"][169]["name"] = "Tables" +defs["structs"]["ImGuiContext"][169]["template_type"] = "ImGuiTable" +defs["structs"]["ImGuiContext"][169]["type"] = "ImPool_ImGuiTable" +defs["structs"]["ImGuiContext"][170] = {} +defs["structs"]["ImGuiContext"][170]["name"] = "TablesLastTimeActive" +defs["structs"]["ImGuiContext"][170]["template_type"] = "float" +defs["structs"]["ImGuiContext"][170]["type"] = "ImVector_float" +defs["structs"]["ImGuiContext"][171] = {} +defs["structs"]["ImGuiContext"][171]["name"] = "DrawChannelsTempMergeBuffer" +defs["structs"]["ImGuiContext"][171]["template_type"] = "ImDrawChannel" +defs["structs"]["ImGuiContext"][171]["type"] = "ImVector_ImDrawChannel" +defs["structs"]["ImGuiContext"][172] = {} +defs["structs"]["ImGuiContext"][172]["name"] = "CurrentTabBar" +defs["structs"]["ImGuiContext"][172]["type"] = "ImGuiTabBar*" +defs["structs"]["ImGuiContext"][173] = {} +defs["structs"]["ImGuiContext"][173]["name"] = "TabBars" +defs["structs"]["ImGuiContext"][173]["template_type"] = "ImGuiTabBar" +defs["structs"]["ImGuiContext"][173]["type"] = "ImPool_ImGuiTabBar" +defs["structs"]["ImGuiContext"][174] = {} +defs["structs"]["ImGuiContext"][174]["name"] = "CurrentTabBarStack" +defs["structs"]["ImGuiContext"][174]["template_type"] = "ImGuiPtrOrIndex" +defs["structs"]["ImGuiContext"][174]["type"] = "ImVector_ImGuiPtrOrIndex" +defs["structs"]["ImGuiContext"][175] = {} +defs["structs"]["ImGuiContext"][175]["name"] = "ShrinkWidthBuffer" +defs["structs"]["ImGuiContext"][175]["template_type"] = "ImGuiShrinkWidthItem" +defs["structs"]["ImGuiContext"][175]["type"] = "ImVector_ImGuiShrinkWidthItem" +defs["structs"]["ImGuiContext"][176] = {} +defs["structs"]["ImGuiContext"][176]["name"] = "HoverDelayId" +defs["structs"]["ImGuiContext"][176]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][177] = {} +defs["structs"]["ImGuiContext"][177]["name"] = "HoverDelayIdPreviousFrame" +defs["structs"]["ImGuiContext"][177]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][178] = {} +defs["structs"]["ImGuiContext"][178]["name"] = "HoverDelayTimer" +defs["structs"]["ImGuiContext"][178]["type"] = "float" +defs["structs"]["ImGuiContext"][179] = {} +defs["structs"]["ImGuiContext"][179]["name"] = "HoverDelayClearTimer" +defs["structs"]["ImGuiContext"][179]["type"] = "float" +defs["structs"]["ImGuiContext"][180] = {} +defs["structs"]["ImGuiContext"][180]["name"] = "MouseLastValidPos" +defs["structs"]["ImGuiContext"][180]["type"] = "ImVec2" +defs["structs"]["ImGuiContext"][181] = {} +defs["structs"]["ImGuiContext"][181]["name"] = "InputTextState" +defs["structs"]["ImGuiContext"][181]["type"] = "ImGuiInputTextState" +defs["structs"]["ImGuiContext"][182] = {} +defs["structs"]["ImGuiContext"][182]["name"] = "InputTextPasswordFont" +defs["structs"]["ImGuiContext"][182]["type"] = "ImFont" +defs["structs"]["ImGuiContext"][183] = {} +defs["structs"]["ImGuiContext"][183]["name"] = "TempInputId" +defs["structs"]["ImGuiContext"][183]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][184] = {} +defs["structs"]["ImGuiContext"][184]["name"] = "ColorEditOptions" +defs["structs"]["ImGuiContext"][184]["type"] = "ImGuiColorEditFlags" +defs["structs"]["ImGuiContext"][185] = {} +defs["structs"]["ImGuiContext"][185]["name"] = "ColorEditLastHue" +defs["structs"]["ImGuiContext"][185]["type"] = "float" +defs["structs"]["ImGuiContext"][186] = {} +defs["structs"]["ImGuiContext"][186]["name"] = "ColorEditLastSat" +defs["structs"]["ImGuiContext"][186]["type"] = "float" +defs["structs"]["ImGuiContext"][187] = {} +defs["structs"]["ImGuiContext"][187]["name"] = "ColorEditLastColor" +defs["structs"]["ImGuiContext"][187]["type"] = "ImU32" +defs["structs"]["ImGuiContext"][188] = {} +defs["structs"]["ImGuiContext"][188]["name"] = "ColorPickerRef" +defs["structs"]["ImGuiContext"][188]["type"] = "ImVec4" +defs["structs"]["ImGuiContext"][189] = {} +defs["structs"]["ImGuiContext"][189]["name"] = "ComboPreviewData" +defs["structs"]["ImGuiContext"][189]["type"] = "ImGuiComboPreviewData" +defs["structs"]["ImGuiContext"][190] = {} +defs["structs"]["ImGuiContext"][190]["name"] = "SliderGrabClickOffset" +defs["structs"]["ImGuiContext"][190]["type"] = "float" +defs["structs"]["ImGuiContext"][191] = {} +defs["structs"]["ImGuiContext"][191]["name"] = "SliderCurrentAccum" +defs["structs"]["ImGuiContext"][191]["type"] = "float" +defs["structs"]["ImGuiContext"][192] = {} +defs["structs"]["ImGuiContext"][192]["name"] = "SliderCurrentAccumDirty" +defs["structs"]["ImGuiContext"][192]["type"] = "bool" +defs["structs"]["ImGuiContext"][193] = {} +defs["structs"]["ImGuiContext"][193]["name"] = "DragCurrentAccumDirty" +defs["structs"]["ImGuiContext"][193]["type"] = "bool" +defs["structs"]["ImGuiContext"][194] = {} +defs["structs"]["ImGuiContext"][194]["name"] = "DragCurrentAccum" +defs["structs"]["ImGuiContext"][194]["type"] = "float" +defs["structs"]["ImGuiContext"][195] = {} +defs["structs"]["ImGuiContext"][195]["name"] = "DragSpeedDefaultRatio" +defs["structs"]["ImGuiContext"][195]["type"] = "float" +defs["structs"]["ImGuiContext"][196] = {} +defs["structs"]["ImGuiContext"][196]["name"] = "ScrollbarClickDeltaToGrabCenter" +defs["structs"]["ImGuiContext"][196]["type"] = "float" +defs["structs"]["ImGuiContext"][197] = {} +defs["structs"]["ImGuiContext"][197]["name"] = "DisabledAlphaBackup" +defs["structs"]["ImGuiContext"][197]["type"] = "float" +defs["structs"]["ImGuiContext"][198] = {} +defs["structs"]["ImGuiContext"][198]["name"] = "DisabledStackSize" +defs["structs"]["ImGuiContext"][198]["type"] = "short" +defs["structs"]["ImGuiContext"][199] = {} +defs["structs"]["ImGuiContext"][199]["name"] = "TooltipOverrideCount" +defs["structs"]["ImGuiContext"][199]["type"] = "short" +defs["structs"]["ImGuiContext"][200] = {} +defs["structs"]["ImGuiContext"][200]["name"] = "ClipboardHandlerData" +defs["structs"]["ImGuiContext"][200]["template_type"] = "char" +defs["structs"]["ImGuiContext"][200]["type"] = "ImVector_char" +defs["structs"]["ImGuiContext"][201] = {} +defs["structs"]["ImGuiContext"][201]["name"] = "MenusIdSubmittedThisFrame" +defs["structs"]["ImGuiContext"][201]["template_type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][201]["type"] = "ImVector_ImGuiID" +defs["structs"]["ImGuiContext"][202] = {} +defs["structs"]["ImGuiContext"][202]["name"] = "PlatformImeData" +defs["structs"]["ImGuiContext"][202]["type"] = "ImGuiPlatformImeData" +defs["structs"]["ImGuiContext"][203] = {} +defs["structs"]["ImGuiContext"][203]["name"] = "PlatformImeDataPrev" +defs["structs"]["ImGuiContext"][203]["type"] = "ImGuiPlatformImeData" +defs["structs"]["ImGuiContext"][204] = {} +defs["structs"]["ImGuiContext"][204]["name"] = "PlatformImeViewport" +defs["structs"]["ImGuiContext"][204]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][205] = {} +defs["structs"]["ImGuiContext"][205]["name"] = "PlatformLocaleDecimalPoint" +defs["structs"]["ImGuiContext"][205]["type"] = "char" +defs["structs"]["ImGuiContext"][206] = {} +defs["structs"]["ImGuiContext"][206]["name"] = "DockContext" +defs["structs"]["ImGuiContext"][206]["type"] = "ImGuiDockContext" +defs["structs"]["ImGuiContext"][207] = {} +defs["structs"]["ImGuiContext"][207]["name"] = "SettingsLoaded" +defs["structs"]["ImGuiContext"][207]["type"] = "bool" +defs["structs"]["ImGuiContext"][208] = {} +defs["structs"]["ImGuiContext"][208]["name"] = "SettingsDirtyTimer" +defs["structs"]["ImGuiContext"][208]["type"] = "float" +defs["structs"]["ImGuiContext"][209] = {} +defs["structs"]["ImGuiContext"][209]["name"] = "SettingsIniData" +defs["structs"]["ImGuiContext"][209]["type"] = "ImGuiTextBuffer" +defs["structs"]["ImGuiContext"][210] = {} +defs["structs"]["ImGuiContext"][210]["name"] = "SettingsHandlers" +defs["structs"]["ImGuiContext"][210]["template_type"] = "ImGuiSettingsHandler" +defs["structs"]["ImGuiContext"][210]["type"] = "ImVector_ImGuiSettingsHandler" +defs["structs"]["ImGuiContext"][211] = {} +defs["structs"]["ImGuiContext"][211]["name"] = "SettingsWindows" +defs["structs"]["ImGuiContext"][211]["template_type"] = "ImGuiWindowSettings" +defs["structs"]["ImGuiContext"][211]["type"] = "ImChunkStream_ImGuiWindowSettings" +defs["structs"]["ImGuiContext"][212] = {} +defs["structs"]["ImGuiContext"][212]["name"] = "SettingsTables" +defs["structs"]["ImGuiContext"][212]["template_type"] = "ImGuiTableSettings" +defs["structs"]["ImGuiContext"][212]["type"] = "ImChunkStream_ImGuiTableSettings" +defs["structs"]["ImGuiContext"][213] = {} +defs["structs"]["ImGuiContext"][213]["name"] = "Hooks" +defs["structs"]["ImGuiContext"][213]["template_type"] = "ImGuiContextHook" +defs["structs"]["ImGuiContext"][213]["type"] = "ImVector_ImGuiContextHook" +defs["structs"]["ImGuiContext"][214] = {} +defs["structs"]["ImGuiContext"][214]["name"] = "HookIdNext" +defs["structs"]["ImGuiContext"][214]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][215] = {} +defs["structs"]["ImGuiContext"][215]["name"] = "LocalizationTable[ImGuiLocKey_COUNT]" +defs["structs"]["ImGuiContext"][215]["size"] = 8 +defs["structs"]["ImGuiContext"][215]["type"] = "const char*" +defs["structs"]["ImGuiContext"][216] = {} +defs["structs"]["ImGuiContext"][216]["name"] = "LogEnabled" +defs["structs"]["ImGuiContext"][216]["type"] = "bool" +defs["structs"]["ImGuiContext"][217] = {} +defs["structs"]["ImGuiContext"][217]["name"] = "LogType" +defs["structs"]["ImGuiContext"][217]["type"] = "ImGuiLogType" +defs["structs"]["ImGuiContext"][218] = {} +defs["structs"]["ImGuiContext"][218]["name"] = "LogFile" +defs["structs"]["ImGuiContext"][218]["type"] = "ImFileHandle" +defs["structs"]["ImGuiContext"][219] = {} +defs["structs"]["ImGuiContext"][219]["name"] = "LogBuffer" +defs["structs"]["ImGuiContext"][219]["type"] = "ImGuiTextBuffer" +defs["structs"]["ImGuiContext"][220] = {} +defs["structs"]["ImGuiContext"][220]["name"] = "LogNextPrefix" +defs["structs"]["ImGuiContext"][220]["type"] = "const char*" +defs["structs"]["ImGuiContext"][221] = {} +defs["structs"]["ImGuiContext"][221]["name"] = "LogNextSuffix" +defs["structs"]["ImGuiContext"][221]["type"] = "const char*" +defs["structs"]["ImGuiContext"][222] = {} +defs["structs"]["ImGuiContext"][222]["name"] = "LogLinePosY" +defs["structs"]["ImGuiContext"][222]["type"] = "float" +defs["structs"]["ImGuiContext"][223] = {} +defs["structs"]["ImGuiContext"][223]["name"] = "LogLineFirstItem" +defs["structs"]["ImGuiContext"][223]["type"] = "bool" +defs["structs"]["ImGuiContext"][224] = {} +defs["structs"]["ImGuiContext"][224]["name"] = "LogDepthRef" +defs["structs"]["ImGuiContext"][224]["type"] = "int" +defs["structs"]["ImGuiContext"][225] = {} +defs["structs"]["ImGuiContext"][225]["name"] = "LogDepthToExpand" +defs["structs"]["ImGuiContext"][225]["type"] = "int" +defs["structs"]["ImGuiContext"][226] = {} +defs["structs"]["ImGuiContext"][226]["name"] = "LogDepthToExpandDefault" +defs["structs"]["ImGuiContext"][226]["type"] = "int" +defs["structs"]["ImGuiContext"][227] = {} +defs["structs"]["ImGuiContext"][227]["name"] = "DebugLogFlags" +defs["structs"]["ImGuiContext"][227]["type"] = "ImGuiDebugLogFlags" +defs["structs"]["ImGuiContext"][228] = {} +defs["structs"]["ImGuiContext"][228]["name"] = "DebugLogBuf" +defs["structs"]["ImGuiContext"][228]["type"] = "ImGuiTextBuffer" +defs["structs"]["ImGuiContext"][229] = {} +defs["structs"]["ImGuiContext"][229]["name"] = "DebugLogIndex" +defs["structs"]["ImGuiContext"][229]["type"] = "ImGuiTextIndex" +defs["structs"]["ImGuiContext"][230] = {} +defs["structs"]["ImGuiContext"][230]["name"] = "DebugLocateFrames" +defs["structs"]["ImGuiContext"][230]["type"] = "ImU8" +defs["structs"]["ImGuiContext"][231] = {} +defs["structs"]["ImGuiContext"][231]["name"] = "DebugItemPickerActive" +defs["structs"]["ImGuiContext"][231]["type"] = "bool" +defs["structs"]["ImGuiContext"][232] = {} +defs["structs"]["ImGuiContext"][232]["name"] = "DebugItemPickerMouseButton" +defs["structs"]["ImGuiContext"][232]["type"] = "ImU8" +defs["structs"]["ImGuiContext"][233] = {} +defs["structs"]["ImGuiContext"][233]["name"] = "DebugItemPickerBreakId" +defs["structs"]["ImGuiContext"][233]["type"] = "ImGuiID" +defs["structs"]["ImGuiContext"][234] = {} +defs["structs"]["ImGuiContext"][234]["name"] = "DebugMetricsConfig" +defs["structs"]["ImGuiContext"][234]["type"] = "ImGuiMetricsConfig" +defs["structs"]["ImGuiContext"][235] = {} +defs["structs"]["ImGuiContext"][235]["name"] = "DebugStackTool" +defs["structs"]["ImGuiContext"][235]["type"] = "ImGuiStackTool" +defs["structs"]["ImGuiContext"][236] = {} +defs["structs"]["ImGuiContext"][236]["name"] = "DebugHoveredDockNode" +defs["structs"]["ImGuiContext"][236]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiContext"][237] = {} +defs["structs"]["ImGuiContext"][237]["name"] = "FramerateSecPerFrame[60]" +defs["structs"]["ImGuiContext"][237]["size"] = 60 +defs["structs"]["ImGuiContext"][237]["type"] = "float" +defs["structs"]["ImGuiContext"][238] = {} +defs["structs"]["ImGuiContext"][238]["name"] = "FramerateSecPerFrameIdx" +defs["structs"]["ImGuiContext"][238]["type"] = "int" +defs["structs"]["ImGuiContext"][239] = {} +defs["structs"]["ImGuiContext"][239]["name"] = "FramerateSecPerFrameCount" +defs["structs"]["ImGuiContext"][239]["type"] = "int" +defs["structs"]["ImGuiContext"][240] = {} +defs["structs"]["ImGuiContext"][240]["name"] = "FramerateSecPerFrameAccum" +defs["structs"]["ImGuiContext"][240]["type"] = "float" +defs["structs"]["ImGuiContext"][241] = {} +defs["structs"]["ImGuiContext"][241]["name"] = "WantCaptureMouseNextFrame" +defs["structs"]["ImGuiContext"][241]["type"] = "int" +defs["structs"]["ImGuiContext"][242] = {} +defs["structs"]["ImGuiContext"][242]["name"] = "WantCaptureKeyboardNextFrame" +defs["structs"]["ImGuiContext"][242]["type"] = "int" +defs["structs"]["ImGuiContext"][243] = {} +defs["structs"]["ImGuiContext"][243]["name"] = "WantTextInputNextFrame" +defs["structs"]["ImGuiContext"][243]["type"] = "int" +defs["structs"]["ImGuiContext"][244] = {} +defs["structs"]["ImGuiContext"][244]["name"] = "TempBuffer" +defs["structs"]["ImGuiContext"][244]["template_type"] = "char" +defs["structs"]["ImGuiContext"][244]["type"] = "ImVector_char" +defs["structs"]["ImGuiContextHook"] = {} +defs["structs"]["ImGuiContextHook"][1] = {} +defs["structs"]["ImGuiContextHook"][1]["name"] = "HookId" +defs["structs"]["ImGuiContextHook"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiContextHook"][2] = {} +defs["structs"]["ImGuiContextHook"][2]["name"] = "Type" +defs["structs"]["ImGuiContextHook"][2]["type"] = "ImGuiContextHookType" +defs["structs"]["ImGuiContextHook"][3] = {} +defs["structs"]["ImGuiContextHook"][3]["name"] = "Owner" +defs["structs"]["ImGuiContextHook"][3]["type"] = "ImGuiID" +defs["structs"]["ImGuiContextHook"][4] = {} +defs["structs"]["ImGuiContextHook"][4]["name"] = "Callback" +defs["structs"]["ImGuiContextHook"][4]["type"] = "ImGuiContextHookCallback" +defs["structs"]["ImGuiContextHook"][5] = {} +defs["structs"]["ImGuiContextHook"][5]["name"] = "UserData" +defs["structs"]["ImGuiContextHook"][5]["type"] = "void*" +defs["structs"]["ImGuiDataTypeInfo"] = {} +defs["structs"]["ImGuiDataTypeInfo"][1] = {} +defs["structs"]["ImGuiDataTypeInfo"][1]["name"] = "Size" +defs["structs"]["ImGuiDataTypeInfo"][1]["type"] = "size_t" +defs["structs"]["ImGuiDataTypeInfo"][2] = {} +defs["structs"]["ImGuiDataTypeInfo"][2]["name"] = "Name" +defs["structs"]["ImGuiDataTypeInfo"][2]["type"] = "const char*" +defs["structs"]["ImGuiDataTypeInfo"][3] = {} +defs["structs"]["ImGuiDataTypeInfo"][3]["name"] = "PrintFmt" +defs["structs"]["ImGuiDataTypeInfo"][3]["type"] = "const char*" +defs["structs"]["ImGuiDataTypeInfo"][4] = {} +defs["structs"]["ImGuiDataTypeInfo"][4]["name"] = "ScanFmt" +defs["structs"]["ImGuiDataTypeInfo"][4]["type"] = "const char*" +defs["structs"]["ImGuiDataTypeTempStorage"] = {} +defs["structs"]["ImGuiDataTypeTempStorage"][1] = {} +defs["structs"]["ImGuiDataTypeTempStorage"][1]["name"] = "Data[8]" +defs["structs"]["ImGuiDataTypeTempStorage"][1]["size"] = 8 +defs["structs"]["ImGuiDataTypeTempStorage"][1]["type"] = "ImU8" +defs["structs"]["ImGuiDockContext"] = {} +defs["structs"]["ImGuiDockContext"][1] = {} +defs["structs"]["ImGuiDockContext"][1]["name"] = "Nodes" +defs["structs"]["ImGuiDockContext"][1]["type"] = "ImGuiStorage" +defs["structs"]["ImGuiDockContext"][2] = {} +defs["structs"]["ImGuiDockContext"][2]["name"] = "Requests" +defs["structs"]["ImGuiDockContext"][2]["template_type"] = "ImGuiDockRequest" +defs["structs"]["ImGuiDockContext"][2]["type"] = "ImVector_ImGuiDockRequest" +defs["structs"]["ImGuiDockContext"][3] = {} +defs["structs"]["ImGuiDockContext"][3]["name"] = "NodesSettings" +defs["structs"]["ImGuiDockContext"][3]["template_type"] = "ImGuiDockNodeSettings" +defs["structs"]["ImGuiDockContext"][3]["type"] = "ImVector_ImGuiDockNodeSettings" +defs["structs"]["ImGuiDockContext"][4] = {} +defs["structs"]["ImGuiDockContext"][4]["name"] = "WantFullRebuild" +defs["structs"]["ImGuiDockContext"][4]["type"] = "bool" +defs["structs"]["ImGuiDockNode"] = {} +defs["structs"]["ImGuiDockNode"][1] = {} +defs["structs"]["ImGuiDockNode"][1]["name"] = "ID" +defs["structs"]["ImGuiDockNode"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiDockNode"][2] = {} +defs["structs"]["ImGuiDockNode"][2]["name"] = "SharedFlags" +defs["structs"]["ImGuiDockNode"][2]["type"] = "ImGuiDockNodeFlags" +defs["structs"]["ImGuiDockNode"][3] = {} +defs["structs"]["ImGuiDockNode"][3]["name"] = "LocalFlags" +defs["structs"]["ImGuiDockNode"][3]["type"] = "ImGuiDockNodeFlags" +defs["structs"]["ImGuiDockNode"][4] = {} +defs["structs"]["ImGuiDockNode"][4]["name"] = "LocalFlagsInWindows" +defs["structs"]["ImGuiDockNode"][4]["type"] = "ImGuiDockNodeFlags" +defs["structs"]["ImGuiDockNode"][5] = {} +defs["structs"]["ImGuiDockNode"][5]["name"] = "MergedFlags" +defs["structs"]["ImGuiDockNode"][5]["type"] = "ImGuiDockNodeFlags" +defs["structs"]["ImGuiDockNode"][6] = {} +defs["structs"]["ImGuiDockNode"][6]["name"] = "State" +defs["structs"]["ImGuiDockNode"][6]["type"] = "ImGuiDockNodeState" +defs["structs"]["ImGuiDockNode"][7] = {} +defs["structs"]["ImGuiDockNode"][7]["name"] = "ParentNode" +defs["structs"]["ImGuiDockNode"][7]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiDockNode"][8] = {} +defs["structs"]["ImGuiDockNode"][8]["name"] = "ChildNodes[2]" +defs["structs"]["ImGuiDockNode"][8]["size"] = 2 +defs["structs"]["ImGuiDockNode"][8]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiDockNode"][9] = {} +defs["structs"]["ImGuiDockNode"][9]["name"] = "Windows" +defs["structs"]["ImGuiDockNode"][9]["template_type"] = "ImGuiWindow*" +defs["structs"]["ImGuiDockNode"][9]["type"] = "ImVector_ImGuiWindowPtr" +defs["structs"]["ImGuiDockNode"][10] = {} +defs["structs"]["ImGuiDockNode"][10]["name"] = "TabBar" +defs["structs"]["ImGuiDockNode"][10]["type"] = "ImGuiTabBar*" +defs["structs"]["ImGuiDockNode"][11] = {} +defs["structs"]["ImGuiDockNode"][11]["name"] = "Pos" +defs["structs"]["ImGuiDockNode"][11]["type"] = "ImVec2" +defs["structs"]["ImGuiDockNode"][12] = {} +defs["structs"]["ImGuiDockNode"][12]["name"] = "Size" +defs["structs"]["ImGuiDockNode"][12]["type"] = "ImVec2" +defs["structs"]["ImGuiDockNode"][13] = {} +defs["structs"]["ImGuiDockNode"][13]["name"] = "SizeRef" +defs["structs"]["ImGuiDockNode"][13]["type"] = "ImVec2" +defs["structs"]["ImGuiDockNode"][14] = {} +defs["structs"]["ImGuiDockNode"][14]["name"] = "SplitAxis" +defs["structs"]["ImGuiDockNode"][14]["type"] = "ImGuiAxis" +defs["structs"]["ImGuiDockNode"][15] = {} +defs["structs"]["ImGuiDockNode"][15]["name"] = "WindowClass" +defs["structs"]["ImGuiDockNode"][15]["type"] = "ImGuiWindowClass" +defs["structs"]["ImGuiDockNode"][16] = {} +defs["structs"]["ImGuiDockNode"][16]["name"] = "LastBgColor" +defs["structs"]["ImGuiDockNode"][16]["type"] = "ImU32" +defs["structs"]["ImGuiDockNode"][17] = {} +defs["structs"]["ImGuiDockNode"][17]["name"] = "HostWindow" +defs["structs"]["ImGuiDockNode"][17]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiDockNode"][18] = {} +defs["structs"]["ImGuiDockNode"][18]["name"] = "VisibleWindow" +defs["structs"]["ImGuiDockNode"][18]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiDockNode"][19] = {} +defs["structs"]["ImGuiDockNode"][19]["name"] = "CentralNode" +defs["structs"]["ImGuiDockNode"][19]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiDockNode"][20] = {} +defs["structs"]["ImGuiDockNode"][20]["name"] = "OnlyNodeWithWindows" +defs["structs"]["ImGuiDockNode"][20]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiDockNode"][21] = {} +defs["structs"]["ImGuiDockNode"][21]["name"] = "CountNodeWithWindows" +defs["structs"]["ImGuiDockNode"][21]["type"] = "int" +defs["structs"]["ImGuiDockNode"][22] = {} +defs["structs"]["ImGuiDockNode"][22]["name"] = "LastFrameAlive" +defs["structs"]["ImGuiDockNode"][22]["type"] = "int" +defs["structs"]["ImGuiDockNode"][23] = {} +defs["structs"]["ImGuiDockNode"][23]["name"] = "LastFrameActive" +defs["structs"]["ImGuiDockNode"][23]["type"] = "int" +defs["structs"]["ImGuiDockNode"][24] = {} +defs["structs"]["ImGuiDockNode"][24]["name"] = "LastFrameFocused" +defs["structs"]["ImGuiDockNode"][24]["type"] = "int" +defs["structs"]["ImGuiDockNode"][25] = {} +defs["structs"]["ImGuiDockNode"][25]["name"] = "LastFocusedNodeId" +defs["structs"]["ImGuiDockNode"][25]["type"] = "ImGuiID" +defs["structs"]["ImGuiDockNode"][26] = {} +defs["structs"]["ImGuiDockNode"][26]["name"] = "SelectedTabId" +defs["structs"]["ImGuiDockNode"][26]["type"] = "ImGuiID" +defs["structs"]["ImGuiDockNode"][27] = {} +defs["structs"]["ImGuiDockNode"][27]["name"] = "WantCloseTabId" +defs["structs"]["ImGuiDockNode"][27]["type"] = "ImGuiID" +defs["structs"]["ImGuiDockNode"][28] = {} +defs["structs"]["ImGuiDockNode"][28]["bitfield"] = "3" +defs["structs"]["ImGuiDockNode"][28]["name"] = "AuthorityForPos" +defs["structs"]["ImGuiDockNode"][28]["type"] = "ImGuiDataAuthority" +defs["structs"]["ImGuiDockNode"][29] = {} +defs["structs"]["ImGuiDockNode"][29]["bitfield"] = "3" +defs["structs"]["ImGuiDockNode"][29]["name"] = "AuthorityForSize" +defs["structs"]["ImGuiDockNode"][29]["type"] = "ImGuiDataAuthority" +defs["structs"]["ImGuiDockNode"][30] = {} +defs["structs"]["ImGuiDockNode"][30]["bitfield"] = "3" +defs["structs"]["ImGuiDockNode"][30]["name"] = "AuthorityForViewport" +defs["structs"]["ImGuiDockNode"][30]["type"] = "ImGuiDataAuthority" +defs["structs"]["ImGuiDockNode"][31] = {} +defs["structs"]["ImGuiDockNode"][31]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][31]["name"] = "IsVisible" +defs["structs"]["ImGuiDockNode"][31]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][32] = {} +defs["structs"]["ImGuiDockNode"][32]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][32]["name"] = "IsFocused" +defs["structs"]["ImGuiDockNode"][32]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][33] = {} +defs["structs"]["ImGuiDockNode"][33]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][33]["name"] = "IsBgDrawnThisFrame" +defs["structs"]["ImGuiDockNode"][33]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][34] = {} +defs["structs"]["ImGuiDockNode"][34]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][34]["name"] = "HasCloseButton" +defs["structs"]["ImGuiDockNode"][34]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][35] = {} +defs["structs"]["ImGuiDockNode"][35]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][35]["name"] = "HasWindowMenuButton" +defs["structs"]["ImGuiDockNode"][35]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][36] = {} +defs["structs"]["ImGuiDockNode"][36]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][36]["name"] = "HasCentralNodeChild" +defs["structs"]["ImGuiDockNode"][36]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][37] = {} +defs["structs"]["ImGuiDockNode"][37]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][37]["name"] = "WantCloseAll" +defs["structs"]["ImGuiDockNode"][37]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][38] = {} +defs["structs"]["ImGuiDockNode"][38]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][38]["name"] = "WantLockSizeOnce" +defs["structs"]["ImGuiDockNode"][38]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][39] = {} +defs["structs"]["ImGuiDockNode"][39]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][39]["name"] = "WantMouseMove" +defs["structs"]["ImGuiDockNode"][39]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][40] = {} +defs["structs"]["ImGuiDockNode"][40]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][40]["name"] = "WantHiddenTabBarUpdate" +defs["structs"]["ImGuiDockNode"][40]["type"] = "bool" +defs["structs"]["ImGuiDockNode"][41] = {} +defs["structs"]["ImGuiDockNode"][41]["bitfield"] = "1" +defs["structs"]["ImGuiDockNode"][41]["name"] = "WantHiddenTabBarToggle" +defs["structs"]["ImGuiDockNode"][41]["type"] = "bool" +defs["structs"]["ImGuiGroupData"] = {} +defs["structs"]["ImGuiGroupData"][1] = {} +defs["structs"]["ImGuiGroupData"][1]["name"] = "WindowID" +defs["structs"]["ImGuiGroupData"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiGroupData"][2] = {} +defs["structs"]["ImGuiGroupData"][2]["name"] = "BackupCursorPos" +defs["structs"]["ImGuiGroupData"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiGroupData"][3] = {} +defs["structs"]["ImGuiGroupData"][3]["name"] = "BackupCursorMaxPos" +defs["structs"]["ImGuiGroupData"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiGroupData"][4] = {} +defs["structs"]["ImGuiGroupData"][4]["name"] = "BackupIndent" +defs["structs"]["ImGuiGroupData"][4]["type"] = "ImVec1" +defs["structs"]["ImGuiGroupData"][5] = {} +defs["structs"]["ImGuiGroupData"][5]["name"] = "BackupGroupOffset" +defs["structs"]["ImGuiGroupData"][5]["type"] = "ImVec1" +defs["structs"]["ImGuiGroupData"][6] = {} +defs["structs"]["ImGuiGroupData"][6]["name"] = "BackupCurrLineSize" +defs["structs"]["ImGuiGroupData"][6]["type"] = "ImVec2" +defs["structs"]["ImGuiGroupData"][7] = {} +defs["structs"]["ImGuiGroupData"][7]["name"] = "BackupCurrLineTextBaseOffset" +defs["structs"]["ImGuiGroupData"][7]["type"] = "float" +defs["structs"]["ImGuiGroupData"][8] = {} +defs["structs"]["ImGuiGroupData"][8]["name"] = "BackupActiveIdIsAlive" +defs["structs"]["ImGuiGroupData"][8]["type"] = "ImGuiID" +defs["structs"]["ImGuiGroupData"][9] = {} +defs["structs"]["ImGuiGroupData"][9]["name"] = "BackupActiveIdPreviousFrameIsAlive" +defs["structs"]["ImGuiGroupData"][9]["type"] = "bool" +defs["structs"]["ImGuiGroupData"][10] = {} +defs["structs"]["ImGuiGroupData"][10]["name"] = "BackupHoveredIdIsAlive" +defs["structs"]["ImGuiGroupData"][10]["type"] = "bool" +defs["structs"]["ImGuiGroupData"][11] = {} +defs["structs"]["ImGuiGroupData"][11]["name"] = "EmitItem" +defs["structs"]["ImGuiGroupData"][11]["type"] = "bool" defs["structs"]["ImGuiIO"] = {} defs["structs"]["ImGuiIO"][1] = {} defs["structs"]["ImGuiIO"][1]["name"] = "ConfigFlags" @@ -3337,6 +5547,62 @@ defs["structs"]["ImGuiIO"][97] = {} defs["structs"]["ImGuiIO"][97]["name"] = "InputQueueCharacters" defs["structs"]["ImGuiIO"][97]["template_type"] = "ImWchar" defs["structs"]["ImGuiIO"][97]["type"] = "ImVector_ImWchar" +defs["structs"]["ImGuiInputEvent"] = {} +defs["structs"]["ImGuiInputEvent"][1] = {} +defs["structs"]["ImGuiInputEvent"][1]["name"] = "Type" +defs["structs"]["ImGuiInputEvent"][1]["type"] = "ImGuiInputEventType" +defs["structs"]["ImGuiInputEvent"][2] = {} +defs["structs"]["ImGuiInputEvent"][2]["name"] = "Source" +defs["structs"]["ImGuiInputEvent"][2]["type"] = "ImGuiInputSource" +defs["structs"]["ImGuiInputEvent"][3] = {} +defs["structs"]["ImGuiInputEvent"][3]["name"] = "" +defs["structs"]["ImGuiInputEvent"][3]["type"] = "union { ImGuiInputEventMousePos MousePos; ImGuiInputEventMouseWheel MouseWheel; ImGuiInputEventMouseButton MouseButton; ImGuiInputEventMouseViewport MouseViewport; ImGuiInputEventKey Key; ImGuiInputEventText Text; ImGuiInputEventAppFocused AppFocused;}" +defs["structs"]["ImGuiInputEvent"][4] = {} +defs["structs"]["ImGuiInputEvent"][4]["name"] = "AddedByTestEngine" +defs["structs"]["ImGuiInputEvent"][4]["type"] = "bool" +defs["structs"]["ImGuiInputEventAppFocused"] = {} +defs["structs"]["ImGuiInputEventAppFocused"][1] = {} +defs["structs"]["ImGuiInputEventAppFocused"][1]["name"] = "Focused" +defs["structs"]["ImGuiInputEventAppFocused"][1]["type"] = "bool" +defs["structs"]["ImGuiInputEventKey"] = {} +defs["structs"]["ImGuiInputEventKey"][1] = {} +defs["structs"]["ImGuiInputEventKey"][1]["name"] = "Key" +defs["structs"]["ImGuiInputEventKey"][1]["type"] = "ImGuiKey" +defs["structs"]["ImGuiInputEventKey"][2] = {} +defs["structs"]["ImGuiInputEventKey"][2]["name"] = "Down" +defs["structs"]["ImGuiInputEventKey"][2]["type"] = "bool" +defs["structs"]["ImGuiInputEventKey"][3] = {} +defs["structs"]["ImGuiInputEventKey"][3]["name"] = "AnalogValue" +defs["structs"]["ImGuiInputEventKey"][3]["type"] = "float" +defs["structs"]["ImGuiInputEventMouseButton"] = {} +defs["structs"]["ImGuiInputEventMouseButton"][1] = {} +defs["structs"]["ImGuiInputEventMouseButton"][1]["name"] = "Button" +defs["structs"]["ImGuiInputEventMouseButton"][1]["type"] = "int" +defs["structs"]["ImGuiInputEventMouseButton"][2] = {} +defs["structs"]["ImGuiInputEventMouseButton"][2]["name"] = "Down" +defs["structs"]["ImGuiInputEventMouseButton"][2]["type"] = "bool" +defs["structs"]["ImGuiInputEventMousePos"] = {} +defs["structs"]["ImGuiInputEventMousePos"][1] = {} +defs["structs"]["ImGuiInputEventMousePos"][1]["name"] = "PosX" +defs["structs"]["ImGuiInputEventMousePos"][1]["type"] = "float" +defs["structs"]["ImGuiInputEventMousePos"][2] = {} +defs["structs"]["ImGuiInputEventMousePos"][2]["name"] = "PosY" +defs["structs"]["ImGuiInputEventMousePos"][2]["type"] = "float" +defs["structs"]["ImGuiInputEventMouseViewport"] = {} +defs["structs"]["ImGuiInputEventMouseViewport"][1] = {} +defs["structs"]["ImGuiInputEventMouseViewport"][1]["name"] = "HoveredViewportID" +defs["structs"]["ImGuiInputEventMouseViewport"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiInputEventMouseWheel"] = {} +defs["structs"]["ImGuiInputEventMouseWheel"][1] = {} +defs["structs"]["ImGuiInputEventMouseWheel"][1]["name"] = "WheelX" +defs["structs"]["ImGuiInputEventMouseWheel"][1]["type"] = "float" +defs["structs"]["ImGuiInputEventMouseWheel"][2] = {} +defs["structs"]["ImGuiInputEventMouseWheel"][2]["name"] = "WheelY" +defs["structs"]["ImGuiInputEventMouseWheel"][2]["type"] = "float" +defs["structs"]["ImGuiInputEventText"] = {} +defs["structs"]["ImGuiInputEventText"][1] = {} +defs["structs"]["ImGuiInputEventText"][1]["name"] = "Char" +defs["structs"]["ImGuiInputEventText"][1]["type"] = "unsigned int" defs["structs"]["ImGuiInputTextCallbackData"] = {} defs["structs"]["ImGuiInputTextCallbackData"][1] = {} defs["structs"]["ImGuiInputTextCallbackData"][1]["name"] = "EventFlag" @@ -3374,6 +5640,55 @@ defs["structs"]["ImGuiInputTextCallbackData"][11]["type"] = "int" defs["structs"]["ImGuiInputTextCallbackData"][12] = {} defs["structs"]["ImGuiInputTextCallbackData"][12]["name"] = "SelectionEnd" defs["structs"]["ImGuiInputTextCallbackData"][12]["type"] = "int" +defs["structs"]["ImGuiInputTextState"] = {} +defs["structs"]["ImGuiInputTextState"][1] = {} +defs["structs"]["ImGuiInputTextState"][1]["name"] = "ID" +defs["structs"]["ImGuiInputTextState"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiInputTextState"][2] = {} +defs["structs"]["ImGuiInputTextState"][2]["name"] = "CurLenW" +defs["structs"]["ImGuiInputTextState"][2]["type"] = "int" +defs["structs"]["ImGuiInputTextState"][3] = {} +defs["structs"]["ImGuiInputTextState"][3]["name"] = "CurLenA" +defs["structs"]["ImGuiInputTextState"][3]["type"] = "int" +defs["structs"]["ImGuiInputTextState"][4] = {} +defs["structs"]["ImGuiInputTextState"][4]["name"] = "TextW" +defs["structs"]["ImGuiInputTextState"][4]["template_type"] = "ImWchar" +defs["structs"]["ImGuiInputTextState"][4]["type"] = "ImVector_ImWchar" +defs["structs"]["ImGuiInputTextState"][5] = {} +defs["structs"]["ImGuiInputTextState"][5]["name"] = "TextA" +defs["structs"]["ImGuiInputTextState"][5]["template_type"] = "char" +defs["structs"]["ImGuiInputTextState"][5]["type"] = "ImVector_char" +defs["structs"]["ImGuiInputTextState"][6] = {} +defs["structs"]["ImGuiInputTextState"][6]["name"] = "InitialTextA" +defs["structs"]["ImGuiInputTextState"][6]["template_type"] = "char" +defs["structs"]["ImGuiInputTextState"][6]["type"] = "ImVector_char" +defs["structs"]["ImGuiInputTextState"][7] = {} +defs["structs"]["ImGuiInputTextState"][7]["name"] = "TextAIsValid" +defs["structs"]["ImGuiInputTextState"][7]["type"] = "bool" +defs["structs"]["ImGuiInputTextState"][8] = {} +defs["structs"]["ImGuiInputTextState"][8]["name"] = "BufCapacityA" +defs["structs"]["ImGuiInputTextState"][8]["type"] = "int" +defs["structs"]["ImGuiInputTextState"][9] = {} +defs["structs"]["ImGuiInputTextState"][9]["name"] = "ScrollX" +defs["structs"]["ImGuiInputTextState"][9]["type"] = "float" +defs["structs"]["ImGuiInputTextState"][10] = {} +defs["structs"]["ImGuiInputTextState"][10]["name"] = "Stb" +defs["structs"]["ImGuiInputTextState"][10]["type"] = "STB_TexteditState" +defs["structs"]["ImGuiInputTextState"][11] = {} +defs["structs"]["ImGuiInputTextState"][11]["name"] = "CursorAnim" +defs["structs"]["ImGuiInputTextState"][11]["type"] = "float" +defs["structs"]["ImGuiInputTextState"][12] = {} +defs["structs"]["ImGuiInputTextState"][12]["name"] = "CursorFollow" +defs["structs"]["ImGuiInputTextState"][12]["type"] = "bool" +defs["structs"]["ImGuiInputTextState"][13] = {} +defs["structs"]["ImGuiInputTextState"][13]["name"] = "SelectedAllMouseLock" +defs["structs"]["ImGuiInputTextState"][13]["type"] = "bool" +defs["structs"]["ImGuiInputTextState"][14] = {} +defs["structs"]["ImGuiInputTextState"][14]["name"] = "Edited" +defs["structs"]["ImGuiInputTextState"][14]["type"] = "bool" +defs["structs"]["ImGuiInputTextState"][15] = {} +defs["structs"]["ImGuiInputTextState"][15]["name"] = "Flags" +defs["structs"]["ImGuiInputTextState"][15]["type"] = "ImGuiInputTextFlags" defs["structs"]["ImGuiKeyData"] = {} defs["structs"]["ImGuiKeyData"][1] = {} defs["structs"]["ImGuiKeyData"][1]["name"] = "Down" @@ -3387,6 +5702,67 @@ defs["structs"]["ImGuiKeyData"][3]["type"] = "float" defs["structs"]["ImGuiKeyData"][4] = {} defs["structs"]["ImGuiKeyData"][4]["name"] = "AnalogValue" defs["structs"]["ImGuiKeyData"][4]["type"] = "float" +defs["structs"]["ImGuiKeyOwnerData"] = {} +defs["structs"]["ImGuiKeyOwnerData"][1] = {} +defs["structs"]["ImGuiKeyOwnerData"][1]["name"] = "OwnerCurr" +defs["structs"]["ImGuiKeyOwnerData"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiKeyOwnerData"][2] = {} +defs["structs"]["ImGuiKeyOwnerData"][2]["name"] = "OwnerNext" +defs["structs"]["ImGuiKeyOwnerData"][2]["type"] = "ImGuiID" +defs["structs"]["ImGuiKeyOwnerData"][3] = {} +defs["structs"]["ImGuiKeyOwnerData"][3]["name"] = "LockThisFrame" +defs["structs"]["ImGuiKeyOwnerData"][3]["type"] = "bool" +defs["structs"]["ImGuiKeyOwnerData"][4] = {} +defs["structs"]["ImGuiKeyOwnerData"][4]["name"] = "LockUntilRelease" +defs["structs"]["ImGuiKeyOwnerData"][4]["type"] = "bool" +defs["structs"]["ImGuiKeyRoutingData"] = {} +defs["structs"]["ImGuiKeyRoutingData"][1] = {} +defs["structs"]["ImGuiKeyRoutingData"][1]["name"] = "NextEntryIndex" +defs["structs"]["ImGuiKeyRoutingData"][1]["type"] = "ImGuiKeyRoutingIndex" +defs["structs"]["ImGuiKeyRoutingData"][2] = {} +defs["structs"]["ImGuiKeyRoutingData"][2]["name"] = "Mods" +defs["structs"]["ImGuiKeyRoutingData"][2]["type"] = "ImU16" +defs["structs"]["ImGuiKeyRoutingData"][3] = {} +defs["structs"]["ImGuiKeyRoutingData"][3]["name"] = "RoutingNextScore" +defs["structs"]["ImGuiKeyRoutingData"][3]["type"] = "ImU8" +defs["structs"]["ImGuiKeyRoutingData"][4] = {} +defs["structs"]["ImGuiKeyRoutingData"][4]["name"] = "RoutingCurr" +defs["structs"]["ImGuiKeyRoutingData"][4]["type"] = "ImGuiID" +defs["structs"]["ImGuiKeyRoutingData"][5] = {} +defs["structs"]["ImGuiKeyRoutingData"][5]["name"] = "RoutingNext" +defs["structs"]["ImGuiKeyRoutingData"][5]["type"] = "ImGuiID" +defs["structs"]["ImGuiKeyRoutingTable"] = {} +defs["structs"]["ImGuiKeyRoutingTable"][1] = {} +defs["structs"]["ImGuiKeyRoutingTable"][1]["name"] = "Index[ImGuiKey_NamedKey_COUNT]" +defs["structs"]["ImGuiKeyRoutingTable"][1]["size"] = 140 +defs["structs"]["ImGuiKeyRoutingTable"][1]["type"] = "ImGuiKeyRoutingIndex" +defs["structs"]["ImGuiKeyRoutingTable"][2] = {} +defs["structs"]["ImGuiKeyRoutingTable"][2]["name"] = "Entries" +defs["structs"]["ImGuiKeyRoutingTable"][2]["template_type"] = "ImGuiKeyRoutingData" +defs["structs"]["ImGuiKeyRoutingTable"][2]["type"] = "ImVector_ImGuiKeyRoutingData" +defs["structs"]["ImGuiKeyRoutingTable"][3] = {} +defs["structs"]["ImGuiKeyRoutingTable"][3]["name"] = "EntriesNext" +defs["structs"]["ImGuiKeyRoutingTable"][3]["template_type"] = "ImGuiKeyRoutingData" +defs["structs"]["ImGuiKeyRoutingTable"][3]["type"] = "ImVector_ImGuiKeyRoutingData" +defs["structs"]["ImGuiLastItemData"] = {} +defs["structs"]["ImGuiLastItemData"][1] = {} +defs["structs"]["ImGuiLastItemData"][1]["name"] = "ID" +defs["structs"]["ImGuiLastItemData"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiLastItemData"][2] = {} +defs["structs"]["ImGuiLastItemData"][2]["name"] = "InFlags" +defs["structs"]["ImGuiLastItemData"][2]["type"] = "ImGuiItemFlags" +defs["structs"]["ImGuiLastItemData"][3] = {} +defs["structs"]["ImGuiLastItemData"][3]["name"] = "StatusFlags" +defs["structs"]["ImGuiLastItemData"][3]["type"] = "ImGuiItemStatusFlags" +defs["structs"]["ImGuiLastItemData"][4] = {} +defs["structs"]["ImGuiLastItemData"][4]["name"] = "Rect" +defs["structs"]["ImGuiLastItemData"][4]["type"] = "ImRect" +defs["structs"]["ImGuiLastItemData"][5] = {} +defs["structs"]["ImGuiLastItemData"][5]["name"] = "NavRect" +defs["structs"]["ImGuiLastItemData"][5]["type"] = "ImRect" +defs["structs"]["ImGuiLastItemData"][6] = {} +defs["structs"]["ImGuiLastItemData"][6]["name"] = "DisplayRect" +defs["structs"]["ImGuiLastItemData"][6]["type"] = "ImRect" defs["structs"]["ImGuiListClipper"] = {} defs["structs"]["ImGuiListClipper"][1] = {} defs["structs"]["ImGuiListClipper"][1]["name"] = "DisplayStart" @@ -3406,6 +5782,271 @@ defs["structs"]["ImGuiListClipper"][5]["type"] = "float" defs["structs"]["ImGuiListClipper"][6] = {} defs["structs"]["ImGuiListClipper"][6]["name"] = "TempData" defs["structs"]["ImGuiListClipper"][6]["type"] = "void*" +defs["structs"]["ImGuiListClipperData"] = {} +defs["structs"]["ImGuiListClipperData"][1] = {} +defs["structs"]["ImGuiListClipperData"][1]["name"] = "ListClipper" +defs["structs"]["ImGuiListClipperData"][1]["type"] = "ImGuiListClipper*" +defs["structs"]["ImGuiListClipperData"][2] = {} +defs["structs"]["ImGuiListClipperData"][2]["name"] = "LossynessOffset" +defs["structs"]["ImGuiListClipperData"][2]["type"] = "float" +defs["structs"]["ImGuiListClipperData"][3] = {} +defs["structs"]["ImGuiListClipperData"][3]["name"] = "StepNo" +defs["structs"]["ImGuiListClipperData"][3]["type"] = "int" +defs["structs"]["ImGuiListClipperData"][4] = {} +defs["structs"]["ImGuiListClipperData"][4]["name"] = "ItemsFrozen" +defs["structs"]["ImGuiListClipperData"][4]["type"] = "int" +defs["structs"]["ImGuiListClipperData"][5] = {} +defs["structs"]["ImGuiListClipperData"][5]["name"] = "Ranges" +defs["structs"]["ImGuiListClipperData"][5]["template_type"] = "ImGuiListClipperRange" +defs["structs"]["ImGuiListClipperData"][5]["type"] = "ImVector_ImGuiListClipperRange" +defs["structs"]["ImGuiListClipperRange"] = {} +defs["structs"]["ImGuiListClipperRange"][1] = {} +defs["structs"]["ImGuiListClipperRange"][1]["name"] = "Min" +defs["structs"]["ImGuiListClipperRange"][1]["type"] = "int" +defs["structs"]["ImGuiListClipperRange"][2] = {} +defs["structs"]["ImGuiListClipperRange"][2]["name"] = "Max" +defs["structs"]["ImGuiListClipperRange"][2]["type"] = "int" +defs["structs"]["ImGuiListClipperRange"][3] = {} +defs["structs"]["ImGuiListClipperRange"][3]["name"] = "PosToIndexConvert" +defs["structs"]["ImGuiListClipperRange"][3]["type"] = "bool" +defs["structs"]["ImGuiListClipperRange"][4] = {} +defs["structs"]["ImGuiListClipperRange"][4]["name"] = "PosToIndexOffsetMin" +defs["structs"]["ImGuiListClipperRange"][4]["type"] = "ImS8" +defs["structs"]["ImGuiListClipperRange"][5] = {} +defs["structs"]["ImGuiListClipperRange"][5]["name"] = "PosToIndexOffsetMax" +defs["structs"]["ImGuiListClipperRange"][5]["type"] = "ImS8" +defs["structs"]["ImGuiLocEntry"] = {} +defs["structs"]["ImGuiLocEntry"][1] = {} +defs["structs"]["ImGuiLocEntry"][1]["name"] = "Key" +defs["structs"]["ImGuiLocEntry"][1]["type"] = "ImGuiLocKey" +defs["structs"]["ImGuiLocEntry"][2] = {} +defs["structs"]["ImGuiLocEntry"][2]["name"] = "Text" +defs["structs"]["ImGuiLocEntry"][2]["type"] = "const char*" +defs["structs"]["ImGuiMenuColumns"] = {} +defs["structs"]["ImGuiMenuColumns"][1] = {} +defs["structs"]["ImGuiMenuColumns"][1]["name"] = "TotalWidth" +defs["structs"]["ImGuiMenuColumns"][1]["type"] = "ImU32" +defs["structs"]["ImGuiMenuColumns"][2] = {} +defs["structs"]["ImGuiMenuColumns"][2]["name"] = "NextTotalWidth" +defs["structs"]["ImGuiMenuColumns"][2]["type"] = "ImU32" +defs["structs"]["ImGuiMenuColumns"][3] = {} +defs["structs"]["ImGuiMenuColumns"][3]["name"] = "Spacing" +defs["structs"]["ImGuiMenuColumns"][3]["type"] = "ImU16" +defs["structs"]["ImGuiMenuColumns"][4] = {} +defs["structs"]["ImGuiMenuColumns"][4]["name"] = "OffsetIcon" +defs["structs"]["ImGuiMenuColumns"][4]["type"] = "ImU16" +defs["structs"]["ImGuiMenuColumns"][5] = {} +defs["structs"]["ImGuiMenuColumns"][5]["name"] = "OffsetLabel" +defs["structs"]["ImGuiMenuColumns"][5]["type"] = "ImU16" +defs["structs"]["ImGuiMenuColumns"][6] = {} +defs["structs"]["ImGuiMenuColumns"][6]["name"] = "OffsetShortcut" +defs["structs"]["ImGuiMenuColumns"][6]["type"] = "ImU16" +defs["structs"]["ImGuiMenuColumns"][7] = {} +defs["structs"]["ImGuiMenuColumns"][7]["name"] = "OffsetMark" +defs["structs"]["ImGuiMenuColumns"][7]["type"] = "ImU16" +defs["structs"]["ImGuiMenuColumns"][8] = {} +defs["structs"]["ImGuiMenuColumns"][8]["name"] = "Widths[4]" +defs["structs"]["ImGuiMenuColumns"][8]["size"] = 4 +defs["structs"]["ImGuiMenuColumns"][8]["type"] = "ImU16" +defs["structs"]["ImGuiMetricsConfig"] = {} +defs["structs"]["ImGuiMetricsConfig"][1] = {} +defs["structs"]["ImGuiMetricsConfig"][1]["name"] = "ShowDebugLog" +defs["structs"]["ImGuiMetricsConfig"][1]["type"] = "bool" +defs["structs"]["ImGuiMetricsConfig"][2] = {} +defs["structs"]["ImGuiMetricsConfig"][2]["name"] = "ShowStackTool" +defs["structs"]["ImGuiMetricsConfig"][2]["type"] = "bool" +defs["structs"]["ImGuiMetricsConfig"][3] = {} +defs["structs"]["ImGuiMetricsConfig"][3]["name"] = "ShowWindowsRects" +defs["structs"]["ImGuiMetricsConfig"][3]["type"] = "bool" +defs["structs"]["ImGuiMetricsConfig"][4] = {} +defs["structs"]["ImGuiMetricsConfig"][4]["name"] = "ShowWindowsBeginOrder" +defs["structs"]["ImGuiMetricsConfig"][4]["type"] = "bool" +defs["structs"]["ImGuiMetricsConfig"][5] = {} +defs["structs"]["ImGuiMetricsConfig"][5]["name"] = "ShowTablesRects" +defs["structs"]["ImGuiMetricsConfig"][5]["type"] = "bool" +defs["structs"]["ImGuiMetricsConfig"][6] = {} +defs["structs"]["ImGuiMetricsConfig"][6]["name"] = "ShowDrawCmdMesh" +defs["structs"]["ImGuiMetricsConfig"][6]["type"] = "bool" +defs["structs"]["ImGuiMetricsConfig"][7] = {} +defs["structs"]["ImGuiMetricsConfig"][7]["name"] = "ShowDrawCmdBoundingBoxes" +defs["structs"]["ImGuiMetricsConfig"][7]["type"] = "bool" +defs["structs"]["ImGuiMetricsConfig"][8] = {} +defs["structs"]["ImGuiMetricsConfig"][8]["name"] = "ShowDockingNodes" +defs["structs"]["ImGuiMetricsConfig"][8]["type"] = "bool" +defs["structs"]["ImGuiMetricsConfig"][9] = {} +defs["structs"]["ImGuiMetricsConfig"][9]["name"] = "ShowWindowsRectsType" +defs["structs"]["ImGuiMetricsConfig"][9]["type"] = "int" +defs["structs"]["ImGuiMetricsConfig"][10] = {} +defs["structs"]["ImGuiMetricsConfig"][10]["name"] = "ShowTablesRectsType" +defs["structs"]["ImGuiMetricsConfig"][10]["type"] = "int" +defs["structs"]["ImGuiNavItemData"] = {} +defs["structs"]["ImGuiNavItemData"][1] = {} +defs["structs"]["ImGuiNavItemData"][1]["name"] = "Window" +defs["structs"]["ImGuiNavItemData"][1]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiNavItemData"][2] = {} +defs["structs"]["ImGuiNavItemData"][2]["name"] = "ID" +defs["structs"]["ImGuiNavItemData"][2]["type"] = "ImGuiID" +defs["structs"]["ImGuiNavItemData"][3] = {} +defs["structs"]["ImGuiNavItemData"][3]["name"] = "FocusScopeId" +defs["structs"]["ImGuiNavItemData"][3]["type"] = "ImGuiID" +defs["structs"]["ImGuiNavItemData"][4] = {} +defs["structs"]["ImGuiNavItemData"][4]["name"] = "RectRel" +defs["structs"]["ImGuiNavItemData"][4]["type"] = "ImRect" +defs["structs"]["ImGuiNavItemData"][5] = {} +defs["structs"]["ImGuiNavItemData"][5]["name"] = "InFlags" +defs["structs"]["ImGuiNavItemData"][5]["type"] = "ImGuiItemFlags" +defs["structs"]["ImGuiNavItemData"][6] = {} +defs["structs"]["ImGuiNavItemData"][6]["name"] = "DistBox" +defs["structs"]["ImGuiNavItemData"][6]["type"] = "float" +defs["structs"]["ImGuiNavItemData"][7] = {} +defs["structs"]["ImGuiNavItemData"][7]["name"] = "DistCenter" +defs["structs"]["ImGuiNavItemData"][7]["type"] = "float" +defs["structs"]["ImGuiNavItemData"][8] = {} +defs["structs"]["ImGuiNavItemData"][8]["name"] = "DistAxial" +defs["structs"]["ImGuiNavItemData"][8]["type"] = "float" +defs["structs"]["ImGuiNextItemData"] = {} +defs["structs"]["ImGuiNextItemData"][1] = {} +defs["structs"]["ImGuiNextItemData"][1]["name"] = "Flags" +defs["structs"]["ImGuiNextItemData"][1]["type"] = "ImGuiNextItemDataFlags" +defs["structs"]["ImGuiNextItemData"][2] = {} +defs["structs"]["ImGuiNextItemData"][2]["name"] = "Width" +defs["structs"]["ImGuiNextItemData"][2]["type"] = "float" +defs["structs"]["ImGuiNextItemData"][3] = {} +defs["structs"]["ImGuiNextItemData"][3]["name"] = "FocusScopeId" +defs["structs"]["ImGuiNextItemData"][3]["type"] = "ImGuiID" +defs["structs"]["ImGuiNextItemData"][4] = {} +defs["structs"]["ImGuiNextItemData"][4]["name"] = "OpenCond" +defs["structs"]["ImGuiNextItemData"][4]["type"] = "ImGuiCond" +defs["structs"]["ImGuiNextItemData"][5] = {} +defs["structs"]["ImGuiNextItemData"][5]["name"] = "OpenVal" +defs["structs"]["ImGuiNextItemData"][5]["type"] = "bool" +defs["structs"]["ImGuiNextWindowData"] = {} +defs["structs"]["ImGuiNextWindowData"][1] = {} +defs["structs"]["ImGuiNextWindowData"][1]["name"] = "Flags" +defs["structs"]["ImGuiNextWindowData"][1]["type"] = "ImGuiNextWindowDataFlags" +defs["structs"]["ImGuiNextWindowData"][2] = {} +defs["structs"]["ImGuiNextWindowData"][2]["name"] = "PosCond" +defs["structs"]["ImGuiNextWindowData"][2]["type"] = "ImGuiCond" +defs["structs"]["ImGuiNextWindowData"][3] = {} +defs["structs"]["ImGuiNextWindowData"][3]["name"] = "SizeCond" +defs["structs"]["ImGuiNextWindowData"][3]["type"] = "ImGuiCond" +defs["structs"]["ImGuiNextWindowData"][4] = {} +defs["structs"]["ImGuiNextWindowData"][4]["name"] = "CollapsedCond" +defs["structs"]["ImGuiNextWindowData"][4]["type"] = "ImGuiCond" +defs["structs"]["ImGuiNextWindowData"][5] = {} +defs["structs"]["ImGuiNextWindowData"][5]["name"] = "DockCond" +defs["structs"]["ImGuiNextWindowData"][5]["type"] = "ImGuiCond" +defs["structs"]["ImGuiNextWindowData"][6] = {} +defs["structs"]["ImGuiNextWindowData"][6]["name"] = "PosVal" +defs["structs"]["ImGuiNextWindowData"][6]["type"] = "ImVec2" +defs["structs"]["ImGuiNextWindowData"][7] = {} +defs["structs"]["ImGuiNextWindowData"][7]["name"] = "PosPivotVal" +defs["structs"]["ImGuiNextWindowData"][7]["type"] = "ImVec2" +defs["structs"]["ImGuiNextWindowData"][8] = {} +defs["structs"]["ImGuiNextWindowData"][8]["name"] = "SizeVal" +defs["structs"]["ImGuiNextWindowData"][8]["type"] = "ImVec2" +defs["structs"]["ImGuiNextWindowData"][9] = {} +defs["structs"]["ImGuiNextWindowData"][9]["name"] = "ContentSizeVal" +defs["structs"]["ImGuiNextWindowData"][9]["type"] = "ImVec2" +defs["structs"]["ImGuiNextWindowData"][10] = {} +defs["structs"]["ImGuiNextWindowData"][10]["name"] = "ScrollVal" +defs["structs"]["ImGuiNextWindowData"][10]["type"] = "ImVec2" +defs["structs"]["ImGuiNextWindowData"][11] = {} +defs["structs"]["ImGuiNextWindowData"][11]["name"] = "PosUndock" +defs["structs"]["ImGuiNextWindowData"][11]["type"] = "bool" +defs["structs"]["ImGuiNextWindowData"][12] = {} +defs["structs"]["ImGuiNextWindowData"][12]["name"] = "CollapsedVal" +defs["structs"]["ImGuiNextWindowData"][12]["type"] = "bool" +defs["structs"]["ImGuiNextWindowData"][13] = {} +defs["structs"]["ImGuiNextWindowData"][13]["name"] = "SizeConstraintRect" +defs["structs"]["ImGuiNextWindowData"][13]["type"] = "ImRect" +defs["structs"]["ImGuiNextWindowData"][14] = {} +defs["structs"]["ImGuiNextWindowData"][14]["name"] = "SizeCallback" +defs["structs"]["ImGuiNextWindowData"][14]["type"] = "ImGuiSizeCallback" +defs["structs"]["ImGuiNextWindowData"][15] = {} +defs["structs"]["ImGuiNextWindowData"][15]["name"] = "SizeCallbackUserData" +defs["structs"]["ImGuiNextWindowData"][15]["type"] = "void*" +defs["structs"]["ImGuiNextWindowData"][16] = {} +defs["structs"]["ImGuiNextWindowData"][16]["name"] = "BgAlphaVal" +defs["structs"]["ImGuiNextWindowData"][16]["type"] = "float" +defs["structs"]["ImGuiNextWindowData"][17] = {} +defs["structs"]["ImGuiNextWindowData"][17]["name"] = "ViewportId" +defs["structs"]["ImGuiNextWindowData"][17]["type"] = "ImGuiID" +defs["structs"]["ImGuiNextWindowData"][18] = {} +defs["structs"]["ImGuiNextWindowData"][18]["name"] = "DockId" +defs["structs"]["ImGuiNextWindowData"][18]["type"] = "ImGuiID" +defs["structs"]["ImGuiNextWindowData"][19] = {} +defs["structs"]["ImGuiNextWindowData"][19]["name"] = "WindowClass" +defs["structs"]["ImGuiNextWindowData"][19]["type"] = "ImGuiWindowClass" +defs["structs"]["ImGuiNextWindowData"][20] = {} +defs["structs"]["ImGuiNextWindowData"][20]["name"] = "MenuBarOffsetMinVal" +defs["structs"]["ImGuiNextWindowData"][20]["type"] = "ImVec2" +defs["structs"]["ImGuiOldColumnData"] = {} +defs["structs"]["ImGuiOldColumnData"][1] = {} +defs["structs"]["ImGuiOldColumnData"][1]["name"] = "OffsetNorm" +defs["structs"]["ImGuiOldColumnData"][1]["type"] = "float" +defs["structs"]["ImGuiOldColumnData"][2] = {} +defs["structs"]["ImGuiOldColumnData"][2]["name"] = "OffsetNormBeforeResize" +defs["structs"]["ImGuiOldColumnData"][2]["type"] = "float" +defs["structs"]["ImGuiOldColumnData"][3] = {} +defs["structs"]["ImGuiOldColumnData"][3]["name"] = "Flags" +defs["structs"]["ImGuiOldColumnData"][3]["type"] = "ImGuiOldColumnFlags" +defs["structs"]["ImGuiOldColumnData"][4] = {} +defs["structs"]["ImGuiOldColumnData"][4]["name"] = "ClipRect" +defs["structs"]["ImGuiOldColumnData"][4]["type"] = "ImRect" +defs["structs"]["ImGuiOldColumns"] = {} +defs["structs"]["ImGuiOldColumns"][1] = {} +defs["structs"]["ImGuiOldColumns"][1]["name"] = "ID" +defs["structs"]["ImGuiOldColumns"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiOldColumns"][2] = {} +defs["structs"]["ImGuiOldColumns"][2]["name"] = "Flags" +defs["structs"]["ImGuiOldColumns"][2]["type"] = "ImGuiOldColumnFlags" +defs["structs"]["ImGuiOldColumns"][3] = {} +defs["structs"]["ImGuiOldColumns"][3]["name"] = "IsFirstFrame" +defs["structs"]["ImGuiOldColumns"][3]["type"] = "bool" +defs["structs"]["ImGuiOldColumns"][4] = {} +defs["structs"]["ImGuiOldColumns"][4]["name"] = "IsBeingResized" +defs["structs"]["ImGuiOldColumns"][4]["type"] = "bool" +defs["structs"]["ImGuiOldColumns"][5] = {} +defs["structs"]["ImGuiOldColumns"][5]["name"] = "Current" +defs["structs"]["ImGuiOldColumns"][5]["type"] = "int" +defs["structs"]["ImGuiOldColumns"][6] = {} +defs["structs"]["ImGuiOldColumns"][6]["name"] = "Count" +defs["structs"]["ImGuiOldColumns"][6]["type"] = "int" +defs["structs"]["ImGuiOldColumns"][7] = {} +defs["structs"]["ImGuiOldColumns"][7]["name"] = "OffMinX" +defs["structs"]["ImGuiOldColumns"][7]["type"] = "float" +defs["structs"]["ImGuiOldColumns"][8] = {} +defs["structs"]["ImGuiOldColumns"][8]["name"] = "OffMaxX" +defs["structs"]["ImGuiOldColumns"][8]["type"] = "float" +defs["structs"]["ImGuiOldColumns"][9] = {} +defs["structs"]["ImGuiOldColumns"][9]["name"] = "LineMinY" +defs["structs"]["ImGuiOldColumns"][9]["type"] = "float" +defs["structs"]["ImGuiOldColumns"][10] = {} +defs["structs"]["ImGuiOldColumns"][10]["name"] = "LineMaxY" +defs["structs"]["ImGuiOldColumns"][10]["type"] = "float" +defs["structs"]["ImGuiOldColumns"][11] = {} +defs["structs"]["ImGuiOldColumns"][11]["name"] = "HostCursorPosY" +defs["structs"]["ImGuiOldColumns"][11]["type"] = "float" +defs["structs"]["ImGuiOldColumns"][12] = {} +defs["structs"]["ImGuiOldColumns"][12]["name"] = "HostCursorMaxPosX" +defs["structs"]["ImGuiOldColumns"][12]["type"] = "float" +defs["structs"]["ImGuiOldColumns"][13] = {} +defs["structs"]["ImGuiOldColumns"][13]["name"] = "HostInitialClipRect" +defs["structs"]["ImGuiOldColumns"][13]["type"] = "ImRect" +defs["structs"]["ImGuiOldColumns"][14] = {} +defs["structs"]["ImGuiOldColumns"][14]["name"] = "HostBackupClipRect" +defs["structs"]["ImGuiOldColumns"][14]["type"] = "ImRect" +defs["structs"]["ImGuiOldColumns"][15] = {} +defs["structs"]["ImGuiOldColumns"][15]["name"] = "HostBackupParentWorkRect" +defs["structs"]["ImGuiOldColumns"][15]["type"] = "ImRect" +defs["structs"]["ImGuiOldColumns"][16] = {} +defs["structs"]["ImGuiOldColumns"][16]["name"] = "Columns" +defs["structs"]["ImGuiOldColumns"][16]["template_type"] = "ImGuiOldColumnData" +defs["structs"]["ImGuiOldColumns"][16]["type"] = "ImVector_ImGuiOldColumnData" +defs["structs"]["ImGuiOldColumns"][17] = {} +defs["structs"]["ImGuiOldColumns"][17]["name"] = "Splitter" +defs["structs"]["ImGuiOldColumns"][17]["type"] = "ImDrawListSplitter" defs["structs"]["ImGuiOnceUponAFrame"] = {} defs["structs"]["ImGuiOnceUponAFrame"][1] = {} defs["structs"]["ImGuiOnceUponAFrame"][1]["name"] = "RefFrame" @@ -3540,6 +6181,76 @@ defs["structs"]["ImGuiPlatformMonitor"][4]["type"] = "ImVec2" defs["structs"]["ImGuiPlatformMonitor"][5] = {} defs["structs"]["ImGuiPlatformMonitor"][5]["name"] = "DpiScale" defs["structs"]["ImGuiPlatformMonitor"][5]["type"] = "float" +defs["structs"]["ImGuiPopupData"] = {} +defs["structs"]["ImGuiPopupData"][1] = {} +defs["structs"]["ImGuiPopupData"][1]["name"] = "PopupId" +defs["structs"]["ImGuiPopupData"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiPopupData"][2] = {} +defs["structs"]["ImGuiPopupData"][2]["name"] = "Window" +defs["structs"]["ImGuiPopupData"][2]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiPopupData"][3] = {} +defs["structs"]["ImGuiPopupData"][3]["name"] = "BackupNavWindow" +defs["structs"]["ImGuiPopupData"][3]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiPopupData"][4] = {} +defs["structs"]["ImGuiPopupData"][4]["name"] = "ParentNavLayer" +defs["structs"]["ImGuiPopupData"][4]["type"] = "int" +defs["structs"]["ImGuiPopupData"][5] = {} +defs["structs"]["ImGuiPopupData"][5]["name"] = "OpenFrameCount" +defs["structs"]["ImGuiPopupData"][5]["type"] = "int" +defs["structs"]["ImGuiPopupData"][6] = {} +defs["structs"]["ImGuiPopupData"][6]["name"] = "OpenParentId" +defs["structs"]["ImGuiPopupData"][6]["type"] = "ImGuiID" +defs["structs"]["ImGuiPopupData"][7] = {} +defs["structs"]["ImGuiPopupData"][7]["name"] = "OpenPopupPos" +defs["structs"]["ImGuiPopupData"][7]["type"] = "ImVec2" +defs["structs"]["ImGuiPopupData"][8] = {} +defs["structs"]["ImGuiPopupData"][8]["name"] = "OpenMousePos" +defs["structs"]["ImGuiPopupData"][8]["type"] = "ImVec2" +defs["structs"]["ImGuiPtrOrIndex"] = {} +defs["structs"]["ImGuiPtrOrIndex"][1] = {} +defs["structs"]["ImGuiPtrOrIndex"][1]["name"] = "Ptr" +defs["structs"]["ImGuiPtrOrIndex"][1]["type"] = "void*" +defs["structs"]["ImGuiPtrOrIndex"][2] = {} +defs["structs"]["ImGuiPtrOrIndex"][2]["name"] = "Index" +defs["structs"]["ImGuiPtrOrIndex"][2]["type"] = "int" +defs["structs"]["ImGuiSettingsHandler"] = {} +defs["structs"]["ImGuiSettingsHandler"][1] = {} +defs["structs"]["ImGuiSettingsHandler"][1]["name"] = "TypeName" +defs["structs"]["ImGuiSettingsHandler"][1]["type"] = "const char*" +defs["structs"]["ImGuiSettingsHandler"][2] = {} +defs["structs"]["ImGuiSettingsHandler"][2]["name"] = "TypeHash" +defs["structs"]["ImGuiSettingsHandler"][2]["type"] = "ImGuiID" +defs["structs"]["ImGuiSettingsHandler"][3] = {} +defs["structs"]["ImGuiSettingsHandler"][3]["name"] = "ClearAllFn" +defs["structs"]["ImGuiSettingsHandler"][3]["type"] = "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler)" +defs["structs"]["ImGuiSettingsHandler"][4] = {} +defs["structs"]["ImGuiSettingsHandler"][4]["name"] = "ReadInitFn" +defs["structs"]["ImGuiSettingsHandler"][4]["type"] = "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler)" +defs["structs"]["ImGuiSettingsHandler"][5] = {} +defs["structs"]["ImGuiSettingsHandler"][5]["name"] = "ReadOpenFn" +defs["structs"]["ImGuiSettingsHandler"][5]["type"] = "void*(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler,const char* name)" +defs["structs"]["ImGuiSettingsHandler"][6] = {} +defs["structs"]["ImGuiSettingsHandler"][6]["name"] = "ReadLineFn" +defs["structs"]["ImGuiSettingsHandler"][6]["type"] = "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler,void* entry,const char* line)" +defs["structs"]["ImGuiSettingsHandler"][7] = {} +defs["structs"]["ImGuiSettingsHandler"][7]["name"] = "ApplyAllFn" +defs["structs"]["ImGuiSettingsHandler"][7]["type"] = "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler)" +defs["structs"]["ImGuiSettingsHandler"][8] = {} +defs["structs"]["ImGuiSettingsHandler"][8]["name"] = "WriteAllFn" +defs["structs"]["ImGuiSettingsHandler"][8]["type"] = "void(*)(ImGuiContext* ctx,ImGuiSettingsHandler* handler,ImGuiTextBuffer* out_buf)" +defs["structs"]["ImGuiSettingsHandler"][9] = {} +defs["structs"]["ImGuiSettingsHandler"][9]["name"] = "UserData" +defs["structs"]["ImGuiSettingsHandler"][9]["type"] = "void*" +defs["structs"]["ImGuiShrinkWidthItem"] = {} +defs["structs"]["ImGuiShrinkWidthItem"][1] = {} +defs["structs"]["ImGuiShrinkWidthItem"][1]["name"] = "Index" +defs["structs"]["ImGuiShrinkWidthItem"][1]["type"] = "int" +defs["structs"]["ImGuiShrinkWidthItem"][2] = {} +defs["structs"]["ImGuiShrinkWidthItem"][2]["name"] = "Width" +defs["structs"]["ImGuiShrinkWidthItem"][2]["type"] = "float" +defs["structs"]["ImGuiShrinkWidthItem"][3] = {} +defs["structs"]["ImGuiShrinkWidthItem"][3]["name"] = "InitialWidth" +defs["structs"]["ImGuiShrinkWidthItem"][3]["type"] = "float" defs["structs"]["ImGuiSizeCallbackData"] = {} defs["structs"]["ImGuiSizeCallbackData"][1] = {} defs["structs"]["ImGuiSizeCallbackData"][1]["name"] = "UserData" @@ -3553,6 +6264,72 @@ defs["structs"]["ImGuiSizeCallbackData"][3]["type"] = "ImVec2" defs["structs"]["ImGuiSizeCallbackData"][4] = {} defs["structs"]["ImGuiSizeCallbackData"][4]["name"] = "DesiredSize" defs["structs"]["ImGuiSizeCallbackData"][4]["type"] = "ImVec2" +defs["structs"]["ImGuiStackLevelInfo"] = {} +defs["structs"]["ImGuiStackLevelInfo"][1] = {} +defs["structs"]["ImGuiStackLevelInfo"][1]["name"] = "ID" +defs["structs"]["ImGuiStackLevelInfo"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiStackLevelInfo"][2] = {} +defs["structs"]["ImGuiStackLevelInfo"][2]["name"] = "QueryFrameCount" +defs["structs"]["ImGuiStackLevelInfo"][2]["type"] = "ImS8" +defs["structs"]["ImGuiStackLevelInfo"][3] = {} +defs["structs"]["ImGuiStackLevelInfo"][3]["name"] = "QuerySuccess" +defs["structs"]["ImGuiStackLevelInfo"][3]["type"] = "bool" +defs["structs"]["ImGuiStackLevelInfo"][4] = {} +defs["structs"]["ImGuiStackLevelInfo"][4]["bitfield"] = "8" +defs["structs"]["ImGuiStackLevelInfo"][4]["name"] = "DataType" +defs["structs"]["ImGuiStackLevelInfo"][4]["type"] = "ImGuiDataType" +defs["structs"]["ImGuiStackLevelInfo"][5] = {} +defs["structs"]["ImGuiStackLevelInfo"][5]["name"] = "Desc[57]" +defs["structs"]["ImGuiStackLevelInfo"][5]["size"] = 57 +defs["structs"]["ImGuiStackLevelInfo"][5]["type"] = "char" +defs["structs"]["ImGuiStackSizes"] = {} +defs["structs"]["ImGuiStackSizes"][1] = {} +defs["structs"]["ImGuiStackSizes"][1]["name"] = "SizeOfIDStack" +defs["structs"]["ImGuiStackSizes"][1]["type"] = "short" +defs["structs"]["ImGuiStackSizes"][2] = {} +defs["structs"]["ImGuiStackSizes"][2]["name"] = "SizeOfColorStack" +defs["structs"]["ImGuiStackSizes"][2]["type"] = "short" +defs["structs"]["ImGuiStackSizes"][3] = {} +defs["structs"]["ImGuiStackSizes"][3]["name"] = "SizeOfStyleVarStack" +defs["structs"]["ImGuiStackSizes"][3]["type"] = "short" +defs["structs"]["ImGuiStackSizes"][4] = {} +defs["structs"]["ImGuiStackSizes"][4]["name"] = "SizeOfFontStack" +defs["structs"]["ImGuiStackSizes"][4]["type"] = "short" +defs["structs"]["ImGuiStackSizes"][5] = {} +defs["structs"]["ImGuiStackSizes"][5]["name"] = "SizeOfFocusScopeStack" +defs["structs"]["ImGuiStackSizes"][5]["type"] = "short" +defs["structs"]["ImGuiStackSizes"][6] = {} +defs["structs"]["ImGuiStackSizes"][6]["name"] = "SizeOfGroupStack" +defs["structs"]["ImGuiStackSizes"][6]["type"] = "short" +defs["structs"]["ImGuiStackSizes"][7] = {} +defs["structs"]["ImGuiStackSizes"][7]["name"] = "SizeOfItemFlagsStack" +defs["structs"]["ImGuiStackSizes"][7]["type"] = "short" +defs["structs"]["ImGuiStackSizes"][8] = {} +defs["structs"]["ImGuiStackSizes"][8]["name"] = "SizeOfBeginPopupStack" +defs["structs"]["ImGuiStackSizes"][8]["type"] = "short" +defs["structs"]["ImGuiStackSizes"][9] = {} +defs["structs"]["ImGuiStackSizes"][9]["name"] = "SizeOfDisabledStack" +defs["structs"]["ImGuiStackSizes"][9]["type"] = "short" +defs["structs"]["ImGuiStackTool"] = {} +defs["structs"]["ImGuiStackTool"][1] = {} +defs["structs"]["ImGuiStackTool"][1]["name"] = "LastActiveFrame" +defs["structs"]["ImGuiStackTool"][1]["type"] = "int" +defs["structs"]["ImGuiStackTool"][2] = {} +defs["structs"]["ImGuiStackTool"][2]["name"] = "StackLevel" +defs["structs"]["ImGuiStackTool"][2]["type"] = "int" +defs["structs"]["ImGuiStackTool"][3] = {} +defs["structs"]["ImGuiStackTool"][3]["name"] = "QueryId" +defs["structs"]["ImGuiStackTool"][3]["type"] = "ImGuiID" +defs["structs"]["ImGuiStackTool"][4] = {} +defs["structs"]["ImGuiStackTool"][4]["name"] = "Results" +defs["structs"]["ImGuiStackTool"][4]["template_type"] = "ImGuiStackLevelInfo" +defs["structs"]["ImGuiStackTool"][4]["type"] = "ImVector_ImGuiStackLevelInfo" +defs["structs"]["ImGuiStackTool"][5] = {} +defs["structs"]["ImGuiStackTool"][5]["name"] = "CopyToClipboardOnCtrlC" +defs["structs"]["ImGuiStackTool"][5]["type"] = "bool" +defs["structs"]["ImGuiStackTool"][6] = {} +defs["structs"]["ImGuiStackTool"][6]["name"] = "CopyToClipboardLastTime" +defs["structs"]["ImGuiStackTool"][6]["type"] = "float" defs["structs"]["ImGuiStorage"] = {} defs["structs"]["ImGuiStorage"][1] = {} defs["structs"]["ImGuiStorage"][1]["name"] = "Data" @@ -3690,6 +6467,631 @@ defs["structs"]["ImGuiStyle"][41] = {} defs["structs"]["ImGuiStyle"][41]["name"] = "Colors[ImGuiCol_COUNT]" defs["structs"]["ImGuiStyle"][41]["size"] = 55 defs["structs"]["ImGuiStyle"][41]["type"] = "ImVec4" +defs["structs"]["ImGuiStyleMod"] = {} +defs["structs"]["ImGuiStyleMod"][1] = {} +defs["structs"]["ImGuiStyleMod"][1]["name"] = "VarIdx" +defs["structs"]["ImGuiStyleMod"][1]["type"] = "ImGuiStyleVar" +defs["structs"]["ImGuiStyleMod"][2] = {} +defs["structs"]["ImGuiStyleMod"][2]["name"] = "" +defs["structs"]["ImGuiStyleMod"][2]["type"] = "union { int BackupInt[2]; float BackupFloat[2];}" +defs["structs"]["ImGuiTabBar"] = {} +defs["structs"]["ImGuiTabBar"][1] = {} +defs["structs"]["ImGuiTabBar"][1]["name"] = "Tabs" +defs["structs"]["ImGuiTabBar"][1]["template_type"] = "ImGuiTabItem" +defs["structs"]["ImGuiTabBar"][1]["type"] = "ImVector_ImGuiTabItem" +defs["structs"]["ImGuiTabBar"][2] = {} +defs["structs"]["ImGuiTabBar"][2]["name"] = "Flags" +defs["structs"]["ImGuiTabBar"][2]["type"] = "ImGuiTabBarFlags" +defs["structs"]["ImGuiTabBar"][3] = {} +defs["structs"]["ImGuiTabBar"][3]["name"] = "ID" +defs["structs"]["ImGuiTabBar"][3]["type"] = "ImGuiID" +defs["structs"]["ImGuiTabBar"][4] = {} +defs["structs"]["ImGuiTabBar"][4]["name"] = "SelectedTabId" +defs["structs"]["ImGuiTabBar"][4]["type"] = "ImGuiID" +defs["structs"]["ImGuiTabBar"][5] = {} +defs["structs"]["ImGuiTabBar"][5]["name"] = "NextSelectedTabId" +defs["structs"]["ImGuiTabBar"][5]["type"] = "ImGuiID" +defs["structs"]["ImGuiTabBar"][6] = {} +defs["structs"]["ImGuiTabBar"][6]["name"] = "VisibleTabId" +defs["structs"]["ImGuiTabBar"][6]["type"] = "ImGuiID" +defs["structs"]["ImGuiTabBar"][7] = {} +defs["structs"]["ImGuiTabBar"][7]["name"] = "CurrFrameVisible" +defs["structs"]["ImGuiTabBar"][7]["type"] = "int" +defs["structs"]["ImGuiTabBar"][8] = {} +defs["structs"]["ImGuiTabBar"][8]["name"] = "PrevFrameVisible" +defs["structs"]["ImGuiTabBar"][8]["type"] = "int" +defs["structs"]["ImGuiTabBar"][9] = {} +defs["structs"]["ImGuiTabBar"][9]["name"] = "BarRect" +defs["structs"]["ImGuiTabBar"][9]["type"] = "ImRect" +defs["structs"]["ImGuiTabBar"][10] = {} +defs["structs"]["ImGuiTabBar"][10]["name"] = "CurrTabsContentsHeight" +defs["structs"]["ImGuiTabBar"][10]["type"] = "float" +defs["structs"]["ImGuiTabBar"][11] = {} +defs["structs"]["ImGuiTabBar"][11]["name"] = "PrevTabsContentsHeight" +defs["structs"]["ImGuiTabBar"][11]["type"] = "float" +defs["structs"]["ImGuiTabBar"][12] = {} +defs["structs"]["ImGuiTabBar"][12]["name"] = "WidthAllTabs" +defs["structs"]["ImGuiTabBar"][12]["type"] = "float" +defs["structs"]["ImGuiTabBar"][13] = {} +defs["structs"]["ImGuiTabBar"][13]["name"] = "WidthAllTabsIdeal" +defs["structs"]["ImGuiTabBar"][13]["type"] = "float" +defs["structs"]["ImGuiTabBar"][14] = {} +defs["structs"]["ImGuiTabBar"][14]["name"] = "ScrollingAnim" +defs["structs"]["ImGuiTabBar"][14]["type"] = "float" +defs["structs"]["ImGuiTabBar"][15] = {} +defs["structs"]["ImGuiTabBar"][15]["name"] = "ScrollingTarget" +defs["structs"]["ImGuiTabBar"][15]["type"] = "float" +defs["structs"]["ImGuiTabBar"][16] = {} +defs["structs"]["ImGuiTabBar"][16]["name"] = "ScrollingTargetDistToVisibility" +defs["structs"]["ImGuiTabBar"][16]["type"] = "float" +defs["structs"]["ImGuiTabBar"][17] = {} +defs["structs"]["ImGuiTabBar"][17]["name"] = "ScrollingSpeed" +defs["structs"]["ImGuiTabBar"][17]["type"] = "float" +defs["structs"]["ImGuiTabBar"][18] = {} +defs["structs"]["ImGuiTabBar"][18]["name"] = "ScrollingRectMinX" +defs["structs"]["ImGuiTabBar"][18]["type"] = "float" +defs["structs"]["ImGuiTabBar"][19] = {} +defs["structs"]["ImGuiTabBar"][19]["name"] = "ScrollingRectMaxX" +defs["structs"]["ImGuiTabBar"][19]["type"] = "float" +defs["structs"]["ImGuiTabBar"][20] = {} +defs["structs"]["ImGuiTabBar"][20]["name"] = "ReorderRequestTabId" +defs["structs"]["ImGuiTabBar"][20]["type"] = "ImGuiID" +defs["structs"]["ImGuiTabBar"][21] = {} +defs["structs"]["ImGuiTabBar"][21]["name"] = "ReorderRequestOffset" +defs["structs"]["ImGuiTabBar"][21]["type"] = "ImS16" +defs["structs"]["ImGuiTabBar"][22] = {} +defs["structs"]["ImGuiTabBar"][22]["name"] = "BeginCount" +defs["structs"]["ImGuiTabBar"][22]["type"] = "ImS8" +defs["structs"]["ImGuiTabBar"][23] = {} +defs["structs"]["ImGuiTabBar"][23]["name"] = "WantLayout" +defs["structs"]["ImGuiTabBar"][23]["type"] = "bool" +defs["structs"]["ImGuiTabBar"][24] = {} +defs["structs"]["ImGuiTabBar"][24]["name"] = "VisibleTabWasSubmitted" +defs["structs"]["ImGuiTabBar"][24]["type"] = "bool" +defs["structs"]["ImGuiTabBar"][25] = {} +defs["structs"]["ImGuiTabBar"][25]["name"] = "TabsAddedNew" +defs["structs"]["ImGuiTabBar"][25]["type"] = "bool" +defs["structs"]["ImGuiTabBar"][26] = {} +defs["structs"]["ImGuiTabBar"][26]["name"] = "TabsActiveCount" +defs["structs"]["ImGuiTabBar"][26]["type"] = "ImS16" +defs["structs"]["ImGuiTabBar"][27] = {} +defs["structs"]["ImGuiTabBar"][27]["name"] = "LastTabItemIdx" +defs["structs"]["ImGuiTabBar"][27]["type"] = "ImS16" +defs["structs"]["ImGuiTabBar"][28] = {} +defs["structs"]["ImGuiTabBar"][28]["name"] = "ItemSpacingY" +defs["structs"]["ImGuiTabBar"][28]["type"] = "float" +defs["structs"]["ImGuiTabBar"][29] = {} +defs["structs"]["ImGuiTabBar"][29]["name"] = "FramePadding" +defs["structs"]["ImGuiTabBar"][29]["type"] = "ImVec2" +defs["structs"]["ImGuiTabBar"][30] = {} +defs["structs"]["ImGuiTabBar"][30]["name"] = "BackupCursorPos" +defs["structs"]["ImGuiTabBar"][30]["type"] = "ImVec2" +defs["structs"]["ImGuiTabBar"][31] = {} +defs["structs"]["ImGuiTabBar"][31]["name"] = "TabsNames" +defs["structs"]["ImGuiTabBar"][31]["type"] = "ImGuiTextBuffer" +defs["structs"]["ImGuiTabItem"] = {} +defs["structs"]["ImGuiTabItem"][1] = {} +defs["structs"]["ImGuiTabItem"][1]["name"] = "ID" +defs["structs"]["ImGuiTabItem"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiTabItem"][2] = {} +defs["structs"]["ImGuiTabItem"][2]["name"] = "Flags" +defs["structs"]["ImGuiTabItem"][2]["type"] = "ImGuiTabItemFlags" +defs["structs"]["ImGuiTabItem"][3] = {} +defs["structs"]["ImGuiTabItem"][3]["name"] = "Window" +defs["structs"]["ImGuiTabItem"][3]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiTabItem"][4] = {} +defs["structs"]["ImGuiTabItem"][4]["name"] = "LastFrameVisible" +defs["structs"]["ImGuiTabItem"][4]["type"] = "int" +defs["structs"]["ImGuiTabItem"][5] = {} +defs["structs"]["ImGuiTabItem"][5]["name"] = "LastFrameSelected" +defs["structs"]["ImGuiTabItem"][5]["type"] = "int" +defs["structs"]["ImGuiTabItem"][6] = {} +defs["structs"]["ImGuiTabItem"][6]["name"] = "Offset" +defs["structs"]["ImGuiTabItem"][6]["type"] = "float" +defs["structs"]["ImGuiTabItem"][7] = {} +defs["structs"]["ImGuiTabItem"][7]["name"] = "Width" +defs["structs"]["ImGuiTabItem"][7]["type"] = "float" +defs["structs"]["ImGuiTabItem"][8] = {} +defs["structs"]["ImGuiTabItem"][8]["name"] = "ContentWidth" +defs["structs"]["ImGuiTabItem"][8]["type"] = "float" +defs["structs"]["ImGuiTabItem"][9] = {} +defs["structs"]["ImGuiTabItem"][9]["name"] = "RequestedWidth" +defs["structs"]["ImGuiTabItem"][9]["type"] = "float" +defs["structs"]["ImGuiTabItem"][10] = {} +defs["structs"]["ImGuiTabItem"][10]["name"] = "NameOffset" +defs["structs"]["ImGuiTabItem"][10]["type"] = "ImS32" +defs["structs"]["ImGuiTabItem"][11] = {} +defs["structs"]["ImGuiTabItem"][11]["name"] = "BeginOrder" +defs["structs"]["ImGuiTabItem"][11]["type"] = "ImS16" +defs["structs"]["ImGuiTabItem"][12] = {} +defs["structs"]["ImGuiTabItem"][12]["name"] = "IndexDuringLayout" +defs["structs"]["ImGuiTabItem"][12]["type"] = "ImS16" +defs["structs"]["ImGuiTabItem"][13] = {} +defs["structs"]["ImGuiTabItem"][13]["name"] = "WantClose" +defs["structs"]["ImGuiTabItem"][13]["type"] = "bool" +defs["structs"]["ImGuiTable"] = {} +defs["structs"]["ImGuiTable"][1] = {} +defs["structs"]["ImGuiTable"][1]["name"] = "ID" +defs["structs"]["ImGuiTable"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiTable"][2] = {} +defs["structs"]["ImGuiTable"][2]["name"] = "Flags" +defs["structs"]["ImGuiTable"][2]["type"] = "ImGuiTableFlags" +defs["structs"]["ImGuiTable"][3] = {} +defs["structs"]["ImGuiTable"][3]["name"] = "RawData" +defs["structs"]["ImGuiTable"][3]["type"] = "void*" +defs["structs"]["ImGuiTable"][4] = {} +defs["structs"]["ImGuiTable"][4]["name"] = "TempData" +defs["structs"]["ImGuiTable"][4]["type"] = "ImGuiTableTempData*" +defs["structs"]["ImGuiTable"][5] = {} +defs["structs"]["ImGuiTable"][5]["name"] = "Columns" +defs["structs"]["ImGuiTable"][5]["template_type"] = "ImGuiTableColumn" +defs["structs"]["ImGuiTable"][5]["type"] = "ImSpan_ImGuiTableColumn" +defs["structs"]["ImGuiTable"][6] = {} +defs["structs"]["ImGuiTable"][6]["name"] = "DisplayOrderToIndex" +defs["structs"]["ImGuiTable"][6]["template_type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][6]["type"] = "ImSpan_ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][7] = {} +defs["structs"]["ImGuiTable"][7]["name"] = "RowCellData" +defs["structs"]["ImGuiTable"][7]["template_type"] = "ImGuiTableCellData" +defs["structs"]["ImGuiTable"][7]["type"] = "ImSpan_ImGuiTableCellData" +defs["structs"]["ImGuiTable"][8] = {} +defs["structs"]["ImGuiTable"][8]["name"] = "EnabledMaskByDisplayOrder" +defs["structs"]["ImGuiTable"][8]["type"] = "ImU64" +defs["structs"]["ImGuiTable"][9] = {} +defs["structs"]["ImGuiTable"][9]["name"] = "EnabledMaskByIndex" +defs["structs"]["ImGuiTable"][9]["type"] = "ImU64" +defs["structs"]["ImGuiTable"][10] = {} +defs["structs"]["ImGuiTable"][10]["name"] = "VisibleMaskByIndex" +defs["structs"]["ImGuiTable"][10]["type"] = "ImU64" +defs["structs"]["ImGuiTable"][11] = {} +defs["structs"]["ImGuiTable"][11]["name"] = "RequestOutputMaskByIndex" +defs["structs"]["ImGuiTable"][11]["type"] = "ImU64" +defs["structs"]["ImGuiTable"][12] = {} +defs["structs"]["ImGuiTable"][12]["name"] = "SettingsLoadedFlags" +defs["structs"]["ImGuiTable"][12]["type"] = "ImGuiTableFlags" +defs["structs"]["ImGuiTable"][13] = {} +defs["structs"]["ImGuiTable"][13]["name"] = "SettingsOffset" +defs["structs"]["ImGuiTable"][13]["type"] = "int" +defs["structs"]["ImGuiTable"][14] = {} +defs["structs"]["ImGuiTable"][14]["name"] = "LastFrameActive" +defs["structs"]["ImGuiTable"][14]["type"] = "int" +defs["structs"]["ImGuiTable"][15] = {} +defs["structs"]["ImGuiTable"][15]["name"] = "ColumnsCount" +defs["structs"]["ImGuiTable"][15]["type"] = "int" +defs["structs"]["ImGuiTable"][16] = {} +defs["structs"]["ImGuiTable"][16]["name"] = "CurrentRow" +defs["structs"]["ImGuiTable"][16]["type"] = "int" +defs["structs"]["ImGuiTable"][17] = {} +defs["structs"]["ImGuiTable"][17]["name"] = "CurrentColumn" +defs["structs"]["ImGuiTable"][17]["type"] = "int" +defs["structs"]["ImGuiTable"][18] = {} +defs["structs"]["ImGuiTable"][18]["name"] = "InstanceCurrent" +defs["structs"]["ImGuiTable"][18]["type"] = "ImS16" +defs["structs"]["ImGuiTable"][19] = {} +defs["structs"]["ImGuiTable"][19]["name"] = "InstanceInteracted" +defs["structs"]["ImGuiTable"][19]["type"] = "ImS16" +defs["structs"]["ImGuiTable"][20] = {} +defs["structs"]["ImGuiTable"][20]["name"] = "RowPosY1" +defs["structs"]["ImGuiTable"][20]["type"] = "float" +defs["structs"]["ImGuiTable"][21] = {} +defs["structs"]["ImGuiTable"][21]["name"] = "RowPosY2" +defs["structs"]["ImGuiTable"][21]["type"] = "float" +defs["structs"]["ImGuiTable"][22] = {} +defs["structs"]["ImGuiTable"][22]["name"] = "RowMinHeight" +defs["structs"]["ImGuiTable"][22]["type"] = "float" +defs["structs"]["ImGuiTable"][23] = {} +defs["structs"]["ImGuiTable"][23]["name"] = "RowTextBaseline" +defs["structs"]["ImGuiTable"][23]["type"] = "float" +defs["structs"]["ImGuiTable"][24] = {} +defs["structs"]["ImGuiTable"][24]["name"] = "RowIndentOffsetX" +defs["structs"]["ImGuiTable"][24]["type"] = "float" +defs["structs"]["ImGuiTable"][25] = {} +defs["structs"]["ImGuiTable"][25]["bitfield"] = "16" +defs["structs"]["ImGuiTable"][25]["name"] = "RowFlags" +defs["structs"]["ImGuiTable"][25]["type"] = "ImGuiTableRowFlags" +defs["structs"]["ImGuiTable"][26] = {} +defs["structs"]["ImGuiTable"][26]["bitfield"] = "16" +defs["structs"]["ImGuiTable"][26]["name"] = "LastRowFlags" +defs["structs"]["ImGuiTable"][26]["type"] = "ImGuiTableRowFlags" +defs["structs"]["ImGuiTable"][27] = {} +defs["structs"]["ImGuiTable"][27]["name"] = "RowBgColorCounter" +defs["structs"]["ImGuiTable"][27]["type"] = "int" +defs["structs"]["ImGuiTable"][28] = {} +defs["structs"]["ImGuiTable"][28]["name"] = "RowBgColor[2]" +defs["structs"]["ImGuiTable"][28]["size"] = 2 +defs["structs"]["ImGuiTable"][28]["type"] = "ImU32" +defs["structs"]["ImGuiTable"][29] = {} +defs["structs"]["ImGuiTable"][29]["name"] = "BorderColorStrong" +defs["structs"]["ImGuiTable"][29]["type"] = "ImU32" +defs["structs"]["ImGuiTable"][30] = {} +defs["structs"]["ImGuiTable"][30]["name"] = "BorderColorLight" +defs["structs"]["ImGuiTable"][30]["type"] = "ImU32" +defs["structs"]["ImGuiTable"][31] = {} +defs["structs"]["ImGuiTable"][31]["name"] = "BorderX1" +defs["structs"]["ImGuiTable"][31]["type"] = "float" +defs["structs"]["ImGuiTable"][32] = {} +defs["structs"]["ImGuiTable"][32]["name"] = "BorderX2" +defs["structs"]["ImGuiTable"][32]["type"] = "float" +defs["structs"]["ImGuiTable"][33] = {} +defs["structs"]["ImGuiTable"][33]["name"] = "HostIndentX" +defs["structs"]["ImGuiTable"][33]["type"] = "float" +defs["structs"]["ImGuiTable"][34] = {} +defs["structs"]["ImGuiTable"][34]["name"] = "MinColumnWidth" +defs["structs"]["ImGuiTable"][34]["type"] = "float" +defs["structs"]["ImGuiTable"][35] = {} +defs["structs"]["ImGuiTable"][35]["name"] = "OuterPaddingX" +defs["structs"]["ImGuiTable"][35]["type"] = "float" +defs["structs"]["ImGuiTable"][36] = {} +defs["structs"]["ImGuiTable"][36]["name"] = "CellPaddingX" +defs["structs"]["ImGuiTable"][36]["type"] = "float" +defs["structs"]["ImGuiTable"][37] = {} +defs["structs"]["ImGuiTable"][37]["name"] = "CellPaddingY" +defs["structs"]["ImGuiTable"][37]["type"] = "float" +defs["structs"]["ImGuiTable"][38] = {} +defs["structs"]["ImGuiTable"][38]["name"] = "CellSpacingX1" +defs["structs"]["ImGuiTable"][38]["type"] = "float" +defs["structs"]["ImGuiTable"][39] = {} +defs["structs"]["ImGuiTable"][39]["name"] = "CellSpacingX2" +defs["structs"]["ImGuiTable"][39]["type"] = "float" +defs["structs"]["ImGuiTable"][40] = {} +defs["structs"]["ImGuiTable"][40]["name"] = "InnerWidth" +defs["structs"]["ImGuiTable"][40]["type"] = "float" +defs["structs"]["ImGuiTable"][41] = {} +defs["structs"]["ImGuiTable"][41]["name"] = "ColumnsGivenWidth" +defs["structs"]["ImGuiTable"][41]["type"] = "float" +defs["structs"]["ImGuiTable"][42] = {} +defs["structs"]["ImGuiTable"][42]["name"] = "ColumnsAutoFitWidth" +defs["structs"]["ImGuiTable"][42]["type"] = "float" +defs["structs"]["ImGuiTable"][43] = {} +defs["structs"]["ImGuiTable"][43]["name"] = "ColumnsStretchSumWeights" +defs["structs"]["ImGuiTable"][43]["type"] = "float" +defs["structs"]["ImGuiTable"][44] = {} +defs["structs"]["ImGuiTable"][44]["name"] = "ResizedColumnNextWidth" +defs["structs"]["ImGuiTable"][44]["type"] = "float" +defs["structs"]["ImGuiTable"][45] = {} +defs["structs"]["ImGuiTable"][45]["name"] = "ResizeLockMinContentsX2" +defs["structs"]["ImGuiTable"][45]["type"] = "float" +defs["structs"]["ImGuiTable"][46] = {} +defs["structs"]["ImGuiTable"][46]["name"] = "RefScale" +defs["structs"]["ImGuiTable"][46]["type"] = "float" +defs["structs"]["ImGuiTable"][47] = {} +defs["structs"]["ImGuiTable"][47]["name"] = "OuterRect" +defs["structs"]["ImGuiTable"][47]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][48] = {} +defs["structs"]["ImGuiTable"][48]["name"] = "InnerRect" +defs["structs"]["ImGuiTable"][48]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][49] = {} +defs["structs"]["ImGuiTable"][49]["name"] = "WorkRect" +defs["structs"]["ImGuiTable"][49]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][50] = {} +defs["structs"]["ImGuiTable"][50]["name"] = "InnerClipRect" +defs["structs"]["ImGuiTable"][50]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][51] = {} +defs["structs"]["ImGuiTable"][51]["name"] = "BgClipRect" +defs["structs"]["ImGuiTable"][51]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][52] = {} +defs["structs"]["ImGuiTable"][52]["name"] = "Bg0ClipRectForDrawCmd" +defs["structs"]["ImGuiTable"][52]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][53] = {} +defs["structs"]["ImGuiTable"][53]["name"] = "Bg2ClipRectForDrawCmd" +defs["structs"]["ImGuiTable"][53]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][54] = {} +defs["structs"]["ImGuiTable"][54]["name"] = "HostClipRect" +defs["structs"]["ImGuiTable"][54]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][55] = {} +defs["structs"]["ImGuiTable"][55]["name"] = "HostBackupInnerClipRect" +defs["structs"]["ImGuiTable"][55]["type"] = "ImRect" +defs["structs"]["ImGuiTable"][56] = {} +defs["structs"]["ImGuiTable"][56]["name"] = "OuterWindow" +defs["structs"]["ImGuiTable"][56]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiTable"][57] = {} +defs["structs"]["ImGuiTable"][57]["name"] = "InnerWindow" +defs["structs"]["ImGuiTable"][57]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiTable"][58] = {} +defs["structs"]["ImGuiTable"][58]["name"] = "ColumnsNames" +defs["structs"]["ImGuiTable"][58]["type"] = "ImGuiTextBuffer" +defs["structs"]["ImGuiTable"][59] = {} +defs["structs"]["ImGuiTable"][59]["name"] = "DrawSplitter" +defs["structs"]["ImGuiTable"][59]["type"] = "ImDrawListSplitter*" +defs["structs"]["ImGuiTable"][60] = {} +defs["structs"]["ImGuiTable"][60]["name"] = "InstanceDataFirst" +defs["structs"]["ImGuiTable"][60]["type"] = "ImGuiTableInstanceData" +defs["structs"]["ImGuiTable"][61] = {} +defs["structs"]["ImGuiTable"][61]["name"] = "InstanceDataExtra" +defs["structs"]["ImGuiTable"][61]["template_type"] = "ImGuiTableInstanceData" +defs["structs"]["ImGuiTable"][61]["type"] = "ImVector_ImGuiTableInstanceData" +defs["structs"]["ImGuiTable"][62] = {} +defs["structs"]["ImGuiTable"][62]["name"] = "SortSpecsSingle" +defs["structs"]["ImGuiTable"][62]["type"] = "ImGuiTableColumnSortSpecs" +defs["structs"]["ImGuiTable"][63] = {} +defs["structs"]["ImGuiTable"][63]["name"] = "SortSpecsMulti" +defs["structs"]["ImGuiTable"][63]["template_type"] = "ImGuiTableColumnSortSpecs" +defs["structs"]["ImGuiTable"][63]["type"] = "ImVector_ImGuiTableColumnSortSpecs" +defs["structs"]["ImGuiTable"][64] = {} +defs["structs"]["ImGuiTable"][64]["name"] = "SortSpecs" +defs["structs"]["ImGuiTable"][64]["type"] = "ImGuiTableSortSpecs" +defs["structs"]["ImGuiTable"][65] = {} +defs["structs"]["ImGuiTable"][65]["name"] = "SortSpecsCount" +defs["structs"]["ImGuiTable"][65]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][66] = {} +defs["structs"]["ImGuiTable"][66]["name"] = "ColumnsEnabledCount" +defs["structs"]["ImGuiTable"][66]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][67] = {} +defs["structs"]["ImGuiTable"][67]["name"] = "ColumnsEnabledFixedCount" +defs["structs"]["ImGuiTable"][67]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][68] = {} +defs["structs"]["ImGuiTable"][68]["name"] = "DeclColumnsCount" +defs["structs"]["ImGuiTable"][68]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][69] = {} +defs["structs"]["ImGuiTable"][69]["name"] = "HoveredColumnBody" +defs["structs"]["ImGuiTable"][69]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][70] = {} +defs["structs"]["ImGuiTable"][70]["name"] = "HoveredColumnBorder" +defs["structs"]["ImGuiTable"][70]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][71] = {} +defs["structs"]["ImGuiTable"][71]["name"] = "AutoFitSingleColumn" +defs["structs"]["ImGuiTable"][71]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][72] = {} +defs["structs"]["ImGuiTable"][72]["name"] = "ResizedColumn" +defs["structs"]["ImGuiTable"][72]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][73] = {} +defs["structs"]["ImGuiTable"][73]["name"] = "LastResizedColumn" +defs["structs"]["ImGuiTable"][73]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][74] = {} +defs["structs"]["ImGuiTable"][74]["name"] = "HeldHeaderColumn" +defs["structs"]["ImGuiTable"][74]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][75] = {} +defs["structs"]["ImGuiTable"][75]["name"] = "ReorderColumn" +defs["structs"]["ImGuiTable"][75]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][76] = {} +defs["structs"]["ImGuiTable"][76]["name"] = "ReorderColumnDir" +defs["structs"]["ImGuiTable"][76]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][77] = {} +defs["structs"]["ImGuiTable"][77]["name"] = "LeftMostEnabledColumn" +defs["structs"]["ImGuiTable"][77]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][78] = {} +defs["structs"]["ImGuiTable"][78]["name"] = "RightMostEnabledColumn" +defs["structs"]["ImGuiTable"][78]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][79] = {} +defs["structs"]["ImGuiTable"][79]["name"] = "LeftMostStretchedColumn" +defs["structs"]["ImGuiTable"][79]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][80] = {} +defs["structs"]["ImGuiTable"][80]["name"] = "RightMostStretchedColumn" +defs["structs"]["ImGuiTable"][80]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][81] = {} +defs["structs"]["ImGuiTable"][81]["name"] = "ContextPopupColumn" +defs["structs"]["ImGuiTable"][81]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][82] = {} +defs["structs"]["ImGuiTable"][82]["name"] = "FreezeRowsRequest" +defs["structs"]["ImGuiTable"][82]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][83] = {} +defs["structs"]["ImGuiTable"][83]["name"] = "FreezeRowsCount" +defs["structs"]["ImGuiTable"][83]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][84] = {} +defs["structs"]["ImGuiTable"][84]["name"] = "FreezeColumnsRequest" +defs["structs"]["ImGuiTable"][84]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][85] = {} +defs["structs"]["ImGuiTable"][85]["name"] = "FreezeColumnsCount" +defs["structs"]["ImGuiTable"][85]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][86] = {} +defs["structs"]["ImGuiTable"][86]["name"] = "RowCellDataCurrent" +defs["structs"]["ImGuiTable"][86]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTable"][87] = {} +defs["structs"]["ImGuiTable"][87]["name"] = "DummyDrawChannel" +defs["structs"]["ImGuiTable"][87]["type"] = "ImGuiTableDrawChannelIdx" +defs["structs"]["ImGuiTable"][88] = {} +defs["structs"]["ImGuiTable"][88]["name"] = "Bg2DrawChannelCurrent" +defs["structs"]["ImGuiTable"][88]["type"] = "ImGuiTableDrawChannelIdx" +defs["structs"]["ImGuiTable"][89] = {} +defs["structs"]["ImGuiTable"][89]["name"] = "Bg2DrawChannelUnfrozen" +defs["structs"]["ImGuiTable"][89]["type"] = "ImGuiTableDrawChannelIdx" +defs["structs"]["ImGuiTable"][90] = {} +defs["structs"]["ImGuiTable"][90]["name"] = "IsLayoutLocked" +defs["structs"]["ImGuiTable"][90]["type"] = "bool" +defs["structs"]["ImGuiTable"][91] = {} +defs["structs"]["ImGuiTable"][91]["name"] = "IsInsideRow" +defs["structs"]["ImGuiTable"][91]["type"] = "bool" +defs["structs"]["ImGuiTable"][92] = {} +defs["structs"]["ImGuiTable"][92]["name"] = "IsInitializing" +defs["structs"]["ImGuiTable"][92]["type"] = "bool" +defs["structs"]["ImGuiTable"][93] = {} +defs["structs"]["ImGuiTable"][93]["name"] = "IsSortSpecsDirty" +defs["structs"]["ImGuiTable"][93]["type"] = "bool" +defs["structs"]["ImGuiTable"][94] = {} +defs["structs"]["ImGuiTable"][94]["name"] = "IsUsingHeaders" +defs["structs"]["ImGuiTable"][94]["type"] = "bool" +defs["structs"]["ImGuiTable"][95] = {} +defs["structs"]["ImGuiTable"][95]["name"] = "IsContextPopupOpen" +defs["structs"]["ImGuiTable"][95]["type"] = "bool" +defs["structs"]["ImGuiTable"][96] = {} +defs["structs"]["ImGuiTable"][96]["name"] = "IsSettingsRequestLoad" +defs["structs"]["ImGuiTable"][96]["type"] = "bool" +defs["structs"]["ImGuiTable"][97] = {} +defs["structs"]["ImGuiTable"][97]["name"] = "IsSettingsDirty" +defs["structs"]["ImGuiTable"][97]["type"] = "bool" +defs["structs"]["ImGuiTable"][98] = {} +defs["structs"]["ImGuiTable"][98]["name"] = "IsDefaultDisplayOrder" +defs["structs"]["ImGuiTable"][98]["type"] = "bool" +defs["structs"]["ImGuiTable"][99] = {} +defs["structs"]["ImGuiTable"][99]["name"] = "IsResetAllRequest" +defs["structs"]["ImGuiTable"][99]["type"] = "bool" +defs["structs"]["ImGuiTable"][100] = {} +defs["structs"]["ImGuiTable"][100]["name"] = "IsResetDisplayOrderRequest" +defs["structs"]["ImGuiTable"][100]["type"] = "bool" +defs["structs"]["ImGuiTable"][101] = {} +defs["structs"]["ImGuiTable"][101]["name"] = "IsUnfrozenRows" +defs["structs"]["ImGuiTable"][101]["type"] = "bool" +defs["structs"]["ImGuiTable"][102] = {} +defs["structs"]["ImGuiTable"][102]["name"] = "IsDefaultSizingPolicy" +defs["structs"]["ImGuiTable"][102]["type"] = "bool" +defs["structs"]["ImGuiTable"][103] = {} +defs["structs"]["ImGuiTable"][103]["name"] = "MemoryCompacted" +defs["structs"]["ImGuiTable"][103]["type"] = "bool" +defs["structs"]["ImGuiTable"][104] = {} +defs["structs"]["ImGuiTable"][104]["name"] = "HostSkipItems" +defs["structs"]["ImGuiTable"][104]["type"] = "bool" +defs["structs"]["ImGuiTableCellData"] = {} +defs["structs"]["ImGuiTableCellData"][1] = {} +defs["structs"]["ImGuiTableCellData"][1]["name"] = "BgColor" +defs["structs"]["ImGuiTableCellData"][1]["type"] = "ImU32" +defs["structs"]["ImGuiTableCellData"][2] = {} +defs["structs"]["ImGuiTableCellData"][2]["name"] = "Column" +defs["structs"]["ImGuiTableCellData"][2]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableColumn"] = {} +defs["structs"]["ImGuiTableColumn"][1] = {} +defs["structs"]["ImGuiTableColumn"][1]["name"] = "Flags" +defs["structs"]["ImGuiTableColumn"][1]["type"] = "ImGuiTableColumnFlags" +defs["structs"]["ImGuiTableColumn"][2] = {} +defs["structs"]["ImGuiTableColumn"][2]["name"] = "WidthGiven" +defs["structs"]["ImGuiTableColumn"][2]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][3] = {} +defs["structs"]["ImGuiTableColumn"][3]["name"] = "MinX" +defs["structs"]["ImGuiTableColumn"][3]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][4] = {} +defs["structs"]["ImGuiTableColumn"][4]["name"] = "MaxX" +defs["structs"]["ImGuiTableColumn"][4]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][5] = {} +defs["structs"]["ImGuiTableColumn"][5]["name"] = "WidthRequest" +defs["structs"]["ImGuiTableColumn"][5]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][6] = {} +defs["structs"]["ImGuiTableColumn"][6]["name"] = "WidthAuto" +defs["structs"]["ImGuiTableColumn"][6]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][7] = {} +defs["structs"]["ImGuiTableColumn"][7]["name"] = "StretchWeight" +defs["structs"]["ImGuiTableColumn"][7]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][8] = {} +defs["structs"]["ImGuiTableColumn"][8]["name"] = "InitStretchWeightOrWidth" +defs["structs"]["ImGuiTableColumn"][8]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][9] = {} +defs["structs"]["ImGuiTableColumn"][9]["name"] = "ClipRect" +defs["structs"]["ImGuiTableColumn"][9]["type"] = "ImRect" +defs["structs"]["ImGuiTableColumn"][10] = {} +defs["structs"]["ImGuiTableColumn"][10]["name"] = "UserID" +defs["structs"]["ImGuiTableColumn"][10]["type"] = "ImGuiID" +defs["structs"]["ImGuiTableColumn"][11] = {} +defs["structs"]["ImGuiTableColumn"][11]["name"] = "WorkMinX" +defs["structs"]["ImGuiTableColumn"][11]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][12] = {} +defs["structs"]["ImGuiTableColumn"][12]["name"] = "WorkMaxX" +defs["structs"]["ImGuiTableColumn"][12]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][13] = {} +defs["structs"]["ImGuiTableColumn"][13]["name"] = "ItemWidth" +defs["structs"]["ImGuiTableColumn"][13]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][14] = {} +defs["structs"]["ImGuiTableColumn"][14]["name"] = "ContentMaxXFrozen" +defs["structs"]["ImGuiTableColumn"][14]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][15] = {} +defs["structs"]["ImGuiTableColumn"][15]["name"] = "ContentMaxXUnfrozen" +defs["structs"]["ImGuiTableColumn"][15]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][16] = {} +defs["structs"]["ImGuiTableColumn"][16]["name"] = "ContentMaxXHeadersUsed" +defs["structs"]["ImGuiTableColumn"][16]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][17] = {} +defs["structs"]["ImGuiTableColumn"][17]["name"] = "ContentMaxXHeadersIdeal" +defs["structs"]["ImGuiTableColumn"][17]["type"] = "float" +defs["structs"]["ImGuiTableColumn"][18] = {} +defs["structs"]["ImGuiTableColumn"][18]["name"] = "NameOffset" +defs["structs"]["ImGuiTableColumn"][18]["type"] = "ImS16" +defs["structs"]["ImGuiTableColumn"][19] = {} +defs["structs"]["ImGuiTableColumn"][19]["name"] = "DisplayOrder" +defs["structs"]["ImGuiTableColumn"][19]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableColumn"][20] = {} +defs["structs"]["ImGuiTableColumn"][20]["name"] = "IndexWithinEnabledSet" +defs["structs"]["ImGuiTableColumn"][20]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableColumn"][21] = {} +defs["structs"]["ImGuiTableColumn"][21]["name"] = "PrevEnabledColumn" +defs["structs"]["ImGuiTableColumn"][21]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableColumn"][22] = {} +defs["structs"]["ImGuiTableColumn"][22]["name"] = "NextEnabledColumn" +defs["structs"]["ImGuiTableColumn"][22]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableColumn"][23] = {} +defs["structs"]["ImGuiTableColumn"][23]["name"] = "SortOrder" +defs["structs"]["ImGuiTableColumn"][23]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableColumn"][24] = {} +defs["structs"]["ImGuiTableColumn"][24]["name"] = "DrawChannelCurrent" +defs["structs"]["ImGuiTableColumn"][24]["type"] = "ImGuiTableDrawChannelIdx" +defs["structs"]["ImGuiTableColumn"][25] = {} +defs["structs"]["ImGuiTableColumn"][25]["name"] = "DrawChannelFrozen" +defs["structs"]["ImGuiTableColumn"][25]["type"] = "ImGuiTableDrawChannelIdx" +defs["structs"]["ImGuiTableColumn"][26] = {} +defs["structs"]["ImGuiTableColumn"][26]["name"] = "DrawChannelUnfrozen" +defs["structs"]["ImGuiTableColumn"][26]["type"] = "ImGuiTableDrawChannelIdx" +defs["structs"]["ImGuiTableColumn"][27] = {} +defs["structs"]["ImGuiTableColumn"][27]["name"] = "IsEnabled" +defs["structs"]["ImGuiTableColumn"][27]["type"] = "bool" +defs["structs"]["ImGuiTableColumn"][28] = {} +defs["structs"]["ImGuiTableColumn"][28]["name"] = "IsUserEnabled" +defs["structs"]["ImGuiTableColumn"][28]["type"] = "bool" +defs["structs"]["ImGuiTableColumn"][29] = {} +defs["structs"]["ImGuiTableColumn"][29]["name"] = "IsUserEnabledNextFrame" +defs["structs"]["ImGuiTableColumn"][29]["type"] = "bool" +defs["structs"]["ImGuiTableColumn"][30] = {} +defs["structs"]["ImGuiTableColumn"][30]["name"] = "IsVisibleX" +defs["structs"]["ImGuiTableColumn"][30]["type"] = "bool" +defs["structs"]["ImGuiTableColumn"][31] = {} +defs["structs"]["ImGuiTableColumn"][31]["name"] = "IsVisibleY" +defs["structs"]["ImGuiTableColumn"][31]["type"] = "bool" +defs["structs"]["ImGuiTableColumn"][32] = {} +defs["structs"]["ImGuiTableColumn"][32]["name"] = "IsRequestOutput" +defs["structs"]["ImGuiTableColumn"][32]["type"] = "bool" +defs["structs"]["ImGuiTableColumn"][33] = {} +defs["structs"]["ImGuiTableColumn"][33]["name"] = "IsSkipItems" +defs["structs"]["ImGuiTableColumn"][33]["type"] = "bool" +defs["structs"]["ImGuiTableColumn"][34] = {} +defs["structs"]["ImGuiTableColumn"][34]["name"] = "IsPreserveWidthAuto" +defs["structs"]["ImGuiTableColumn"][34]["type"] = "bool" +defs["structs"]["ImGuiTableColumn"][35] = {} +defs["structs"]["ImGuiTableColumn"][35]["name"] = "NavLayerCurrent" +defs["structs"]["ImGuiTableColumn"][35]["type"] = "ImS8" +defs["structs"]["ImGuiTableColumn"][36] = {} +defs["structs"]["ImGuiTableColumn"][36]["name"] = "AutoFitQueue" +defs["structs"]["ImGuiTableColumn"][36]["type"] = "ImU8" +defs["structs"]["ImGuiTableColumn"][37] = {} +defs["structs"]["ImGuiTableColumn"][37]["name"] = "CannotSkipItemsQueue" +defs["structs"]["ImGuiTableColumn"][37]["type"] = "ImU8" +defs["structs"]["ImGuiTableColumn"][38] = {} +defs["structs"]["ImGuiTableColumn"][38]["bitfield"] = "2" +defs["structs"]["ImGuiTableColumn"][38]["name"] = "SortDirection" +defs["structs"]["ImGuiTableColumn"][38]["type"] = "ImU8" +defs["structs"]["ImGuiTableColumn"][39] = {} +defs["structs"]["ImGuiTableColumn"][39]["bitfield"] = "2" +defs["structs"]["ImGuiTableColumn"][39]["name"] = "SortDirectionsAvailCount" +defs["structs"]["ImGuiTableColumn"][39]["type"] = "ImU8" +defs["structs"]["ImGuiTableColumn"][40] = {} +defs["structs"]["ImGuiTableColumn"][40]["bitfield"] = "4" +defs["structs"]["ImGuiTableColumn"][40]["name"] = "SortDirectionsAvailMask" +defs["structs"]["ImGuiTableColumn"][40]["type"] = "ImU8" +defs["structs"]["ImGuiTableColumn"][41] = {} +defs["structs"]["ImGuiTableColumn"][41]["name"] = "SortDirectionsAvailList" +defs["structs"]["ImGuiTableColumn"][41]["type"] = "ImU8" +defs["structs"]["ImGuiTableColumnSettings"] = {} +defs["structs"]["ImGuiTableColumnSettings"][1] = {} +defs["structs"]["ImGuiTableColumnSettings"][1]["name"] = "WidthOrWeight" +defs["structs"]["ImGuiTableColumnSettings"][1]["type"] = "float" +defs["structs"]["ImGuiTableColumnSettings"][2] = {} +defs["structs"]["ImGuiTableColumnSettings"][2]["name"] = "UserID" +defs["structs"]["ImGuiTableColumnSettings"][2]["type"] = "ImGuiID" +defs["structs"]["ImGuiTableColumnSettings"][3] = {} +defs["structs"]["ImGuiTableColumnSettings"][3]["name"] = "Index" +defs["structs"]["ImGuiTableColumnSettings"][3]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableColumnSettings"][4] = {} +defs["structs"]["ImGuiTableColumnSettings"][4]["name"] = "DisplayOrder" +defs["structs"]["ImGuiTableColumnSettings"][4]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableColumnSettings"][5] = {} +defs["structs"]["ImGuiTableColumnSettings"][5]["name"] = "SortOrder" +defs["structs"]["ImGuiTableColumnSettings"][5]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableColumnSettings"][6] = {} +defs["structs"]["ImGuiTableColumnSettings"][6]["bitfield"] = "2" +defs["structs"]["ImGuiTableColumnSettings"][6]["name"] = "SortDirection" +defs["structs"]["ImGuiTableColumnSettings"][6]["type"] = "ImU8" +defs["structs"]["ImGuiTableColumnSettings"][7] = {} +defs["structs"]["ImGuiTableColumnSettings"][7]["bitfield"] = "1" +defs["structs"]["ImGuiTableColumnSettings"][7]["name"] = "IsEnabled" +defs["structs"]["ImGuiTableColumnSettings"][7]["type"] = "ImU8" +defs["structs"]["ImGuiTableColumnSettings"][8] = {} +defs["structs"]["ImGuiTableColumnSettings"][8]["bitfield"] = "1" +defs["structs"]["ImGuiTableColumnSettings"][8]["name"] = "IsStretch" +defs["structs"]["ImGuiTableColumnSettings"][8]["type"] = "ImU8" defs["structs"]["ImGuiTableColumnSortSpecs"] = {} defs["structs"]["ImGuiTableColumnSortSpecs"][1] = {} defs["structs"]["ImGuiTableColumnSortSpecs"][1]["name"] = "ColumnUserID" @@ -3704,6 +7106,32 @@ defs["structs"]["ImGuiTableColumnSortSpecs"][4] = {} defs["structs"]["ImGuiTableColumnSortSpecs"][4]["bitfield"] = "8" defs["structs"]["ImGuiTableColumnSortSpecs"][4]["name"] = "SortDirection" defs["structs"]["ImGuiTableColumnSortSpecs"][4]["type"] = "ImGuiSortDirection" +defs["structs"]["ImGuiTableInstanceData"] = {} +defs["structs"]["ImGuiTableInstanceData"][1] = {} +defs["structs"]["ImGuiTableInstanceData"][1]["name"] = "LastOuterHeight" +defs["structs"]["ImGuiTableInstanceData"][1]["type"] = "float" +defs["structs"]["ImGuiTableInstanceData"][2] = {} +defs["structs"]["ImGuiTableInstanceData"][2]["name"] = "LastFirstRowHeight" +defs["structs"]["ImGuiTableInstanceData"][2]["type"] = "float" +defs["structs"]["ImGuiTableSettings"] = {} +defs["structs"]["ImGuiTableSettings"][1] = {} +defs["structs"]["ImGuiTableSettings"][1]["name"] = "ID" +defs["structs"]["ImGuiTableSettings"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiTableSettings"][2] = {} +defs["structs"]["ImGuiTableSettings"][2]["name"] = "SaveFlags" +defs["structs"]["ImGuiTableSettings"][2]["type"] = "ImGuiTableFlags" +defs["structs"]["ImGuiTableSettings"][3] = {} +defs["structs"]["ImGuiTableSettings"][3]["name"] = "RefScale" +defs["structs"]["ImGuiTableSettings"][3]["type"] = "float" +defs["structs"]["ImGuiTableSettings"][4] = {} +defs["structs"]["ImGuiTableSettings"][4]["name"] = "ColumnsCount" +defs["structs"]["ImGuiTableSettings"][4]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableSettings"][5] = {} +defs["structs"]["ImGuiTableSettings"][5]["name"] = "ColumnsCountMax" +defs["structs"]["ImGuiTableSettings"][5]["type"] = "ImGuiTableColumnIdx" +defs["structs"]["ImGuiTableSettings"][6] = {} +defs["structs"]["ImGuiTableSettings"][6]["name"] = "WantApply" +defs["structs"]["ImGuiTableSettings"][6]["type"] = "bool" defs["structs"]["ImGuiTableSortSpecs"] = {} defs["structs"]["ImGuiTableSortSpecs"][1] = {} defs["structs"]["ImGuiTableSortSpecs"][1]["name"] = "Specs" @@ -3714,6 +7142,43 @@ defs["structs"]["ImGuiTableSortSpecs"][2]["type"] = "int" defs["structs"]["ImGuiTableSortSpecs"][3] = {} defs["structs"]["ImGuiTableSortSpecs"][3]["name"] = "SpecsDirty" defs["structs"]["ImGuiTableSortSpecs"][3]["type"] = "bool" +defs["structs"]["ImGuiTableTempData"] = {} +defs["structs"]["ImGuiTableTempData"][1] = {} +defs["structs"]["ImGuiTableTempData"][1]["name"] = "TableIndex" +defs["structs"]["ImGuiTableTempData"][1]["type"] = "int" +defs["structs"]["ImGuiTableTempData"][2] = {} +defs["structs"]["ImGuiTableTempData"][2]["name"] = "LastTimeActive" +defs["structs"]["ImGuiTableTempData"][2]["type"] = "float" +defs["structs"]["ImGuiTableTempData"][3] = {} +defs["structs"]["ImGuiTableTempData"][3]["name"] = "UserOuterSize" +defs["structs"]["ImGuiTableTempData"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiTableTempData"][4] = {} +defs["structs"]["ImGuiTableTempData"][4]["name"] = "DrawSplitter" +defs["structs"]["ImGuiTableTempData"][4]["type"] = "ImDrawListSplitter" +defs["structs"]["ImGuiTableTempData"][5] = {} +defs["structs"]["ImGuiTableTempData"][5]["name"] = "HostBackupWorkRect" +defs["structs"]["ImGuiTableTempData"][5]["type"] = "ImRect" +defs["structs"]["ImGuiTableTempData"][6] = {} +defs["structs"]["ImGuiTableTempData"][6]["name"] = "HostBackupParentWorkRect" +defs["structs"]["ImGuiTableTempData"][6]["type"] = "ImRect" +defs["structs"]["ImGuiTableTempData"][7] = {} +defs["structs"]["ImGuiTableTempData"][7]["name"] = "HostBackupPrevLineSize" +defs["structs"]["ImGuiTableTempData"][7]["type"] = "ImVec2" +defs["structs"]["ImGuiTableTempData"][8] = {} +defs["structs"]["ImGuiTableTempData"][8]["name"] = "HostBackupCurrLineSize" +defs["structs"]["ImGuiTableTempData"][8]["type"] = "ImVec2" +defs["structs"]["ImGuiTableTempData"][9] = {} +defs["structs"]["ImGuiTableTempData"][9]["name"] = "HostBackupCursorMaxPos" +defs["structs"]["ImGuiTableTempData"][9]["type"] = "ImVec2" +defs["structs"]["ImGuiTableTempData"][10] = {} +defs["structs"]["ImGuiTableTempData"][10]["name"] = "HostBackupColumnsOffset" +defs["structs"]["ImGuiTableTempData"][10]["type"] = "ImVec1" +defs["structs"]["ImGuiTableTempData"][11] = {} +defs["structs"]["ImGuiTableTempData"][11]["name"] = "HostBackupItemWidth" +defs["structs"]["ImGuiTableTempData"][11]["type"] = "float" +defs["structs"]["ImGuiTableTempData"][12] = {} +defs["structs"]["ImGuiTableTempData"][12]["name"] = "HostBackupItemWidthStackSize" +defs["structs"]["ImGuiTableTempData"][12]["type"] = "int" defs["structs"]["ImGuiTextBuffer"] = {} defs["structs"]["ImGuiTextBuffer"][1] = {} defs["structs"]["ImGuiTextBuffer"][1]["name"] = "Buf" @@ -3731,6 +7196,14 @@ defs["structs"]["ImGuiTextFilter"][2]["type"] = "ImVector_ImGuiTextRange" defs["structs"]["ImGuiTextFilter"][3] = {} defs["structs"]["ImGuiTextFilter"][3]["name"] = "CountGrep" defs["structs"]["ImGuiTextFilter"][3]["type"] = "int" +defs["structs"]["ImGuiTextIndex"] = {} +defs["structs"]["ImGuiTextIndex"][1] = {} +defs["structs"]["ImGuiTextIndex"][1]["name"] = "LineOffsets" +defs["structs"]["ImGuiTextIndex"][1]["template_type"] = "int" +defs["structs"]["ImGuiTextIndex"][1]["type"] = "ImVector_int" +defs["structs"]["ImGuiTextIndex"][2] = {} +defs["structs"]["ImGuiTextIndex"][2]["name"] = "EndOffset" +defs["structs"]["ImGuiTextIndex"][2]["type"] = "int" defs["structs"]["ImGuiTextRange"] = {} defs["structs"]["ImGuiTextRange"][1] = {} defs["structs"]["ImGuiTextRange"][1]["name"] = "b" @@ -3790,6 +7263,418 @@ defs["structs"]["ImGuiViewport"][16]["type"] = "bool" defs["structs"]["ImGuiViewport"][17] = {} defs["structs"]["ImGuiViewport"][17]["name"] = "PlatformRequestClose" defs["structs"]["ImGuiViewport"][17]["type"] = "bool" +defs["structs"]["ImGuiViewportP"] = {} +defs["structs"]["ImGuiViewportP"][1] = {} +defs["structs"]["ImGuiViewportP"][1]["name"] = "_ImGuiViewport" +defs["structs"]["ImGuiViewportP"][1]["type"] = "ImGuiViewport" +defs["structs"]["ImGuiViewportP"][2] = {} +defs["structs"]["ImGuiViewportP"][2]["name"] = "Idx" +defs["structs"]["ImGuiViewportP"][2]["type"] = "int" +defs["structs"]["ImGuiViewportP"][3] = {} +defs["structs"]["ImGuiViewportP"][3]["name"] = "LastFrameActive" +defs["structs"]["ImGuiViewportP"][3]["type"] = "int" +defs["structs"]["ImGuiViewportP"][4] = {} +defs["structs"]["ImGuiViewportP"][4]["name"] = "LastFrontMostStampCount" +defs["structs"]["ImGuiViewportP"][4]["type"] = "int" +defs["structs"]["ImGuiViewportP"][5] = {} +defs["structs"]["ImGuiViewportP"][5]["name"] = "LastNameHash" +defs["structs"]["ImGuiViewportP"][5]["type"] = "ImGuiID" +defs["structs"]["ImGuiViewportP"][6] = {} +defs["structs"]["ImGuiViewportP"][6]["name"] = "LastPos" +defs["structs"]["ImGuiViewportP"][6]["type"] = "ImVec2" +defs["structs"]["ImGuiViewportP"][7] = {} +defs["structs"]["ImGuiViewportP"][7]["name"] = "Alpha" +defs["structs"]["ImGuiViewportP"][7]["type"] = "float" +defs["structs"]["ImGuiViewportP"][8] = {} +defs["structs"]["ImGuiViewportP"][8]["name"] = "LastAlpha" +defs["structs"]["ImGuiViewportP"][8]["type"] = "float" +defs["structs"]["ImGuiViewportP"][9] = {} +defs["structs"]["ImGuiViewportP"][9]["name"] = "PlatformMonitor" +defs["structs"]["ImGuiViewportP"][9]["type"] = "short" +defs["structs"]["ImGuiViewportP"][10] = {} +defs["structs"]["ImGuiViewportP"][10]["name"] = "Window" +defs["structs"]["ImGuiViewportP"][10]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiViewportP"][11] = {} +defs["structs"]["ImGuiViewportP"][11]["name"] = "DrawListsLastFrame[2]" +defs["structs"]["ImGuiViewportP"][11]["size"] = 2 +defs["structs"]["ImGuiViewportP"][11]["type"] = "int" +defs["structs"]["ImGuiViewportP"][12] = {} +defs["structs"]["ImGuiViewportP"][12]["name"] = "DrawLists[2]" +defs["structs"]["ImGuiViewportP"][12]["size"] = 2 +defs["structs"]["ImGuiViewportP"][12]["type"] = "ImDrawList*" +defs["structs"]["ImGuiViewportP"][13] = {} +defs["structs"]["ImGuiViewportP"][13]["name"] = "DrawDataP" +defs["structs"]["ImGuiViewportP"][13]["type"] = "ImDrawData" +defs["structs"]["ImGuiViewportP"][14] = {} +defs["structs"]["ImGuiViewportP"][14]["name"] = "DrawDataBuilder" +defs["structs"]["ImGuiViewportP"][14]["type"] = "ImDrawDataBuilder" +defs["structs"]["ImGuiViewportP"][15] = {} +defs["structs"]["ImGuiViewportP"][15]["name"] = "LastPlatformPos" +defs["structs"]["ImGuiViewportP"][15]["type"] = "ImVec2" +defs["structs"]["ImGuiViewportP"][16] = {} +defs["structs"]["ImGuiViewportP"][16]["name"] = "LastPlatformSize" +defs["structs"]["ImGuiViewportP"][16]["type"] = "ImVec2" +defs["structs"]["ImGuiViewportP"][17] = {} +defs["structs"]["ImGuiViewportP"][17]["name"] = "LastRendererSize" +defs["structs"]["ImGuiViewportP"][17]["type"] = "ImVec2" +defs["structs"]["ImGuiViewportP"][18] = {} +defs["structs"]["ImGuiViewportP"][18]["name"] = "WorkOffsetMin" +defs["structs"]["ImGuiViewportP"][18]["type"] = "ImVec2" +defs["structs"]["ImGuiViewportP"][19] = {} +defs["structs"]["ImGuiViewportP"][19]["name"] = "WorkOffsetMax" +defs["structs"]["ImGuiViewportP"][19]["type"] = "ImVec2" +defs["structs"]["ImGuiViewportP"][20] = {} +defs["structs"]["ImGuiViewportP"][20]["name"] = "BuildWorkOffsetMin" +defs["structs"]["ImGuiViewportP"][20]["type"] = "ImVec2" +defs["structs"]["ImGuiViewportP"][21] = {} +defs["structs"]["ImGuiViewportP"][21]["name"] = "BuildWorkOffsetMax" +defs["structs"]["ImGuiViewportP"][21]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"] = {} +defs["structs"]["ImGuiWindow"][1] = {} +defs["structs"]["ImGuiWindow"][1]["name"] = "Name" +defs["structs"]["ImGuiWindow"][1]["type"] = "char*" +defs["structs"]["ImGuiWindow"][2] = {} +defs["structs"]["ImGuiWindow"][2]["name"] = "ID" +defs["structs"]["ImGuiWindow"][2]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][3] = {} +defs["structs"]["ImGuiWindow"][3]["name"] = "Flags" +defs["structs"]["ImGuiWindow"][3]["type"] = "ImGuiWindowFlags" +defs["structs"]["ImGuiWindow"][4] = {} +defs["structs"]["ImGuiWindow"][4]["name"] = "FlagsPreviousFrame" +defs["structs"]["ImGuiWindow"][4]["type"] = "ImGuiWindowFlags" +defs["structs"]["ImGuiWindow"][5] = {} +defs["structs"]["ImGuiWindow"][5]["name"] = "WindowClass" +defs["structs"]["ImGuiWindow"][5]["type"] = "ImGuiWindowClass" +defs["structs"]["ImGuiWindow"][6] = {} +defs["structs"]["ImGuiWindow"][6]["name"] = "Viewport" +defs["structs"]["ImGuiWindow"][6]["type"] = "ImGuiViewportP*" +defs["structs"]["ImGuiWindow"][7] = {} +defs["structs"]["ImGuiWindow"][7]["name"] = "ViewportId" +defs["structs"]["ImGuiWindow"][7]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][8] = {} +defs["structs"]["ImGuiWindow"][8]["name"] = "ViewportPos" +defs["structs"]["ImGuiWindow"][8]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][9] = {} +defs["structs"]["ImGuiWindow"][9]["name"] = "ViewportAllowPlatformMonitorExtend" +defs["structs"]["ImGuiWindow"][9]["type"] = "int" +defs["structs"]["ImGuiWindow"][10] = {} +defs["structs"]["ImGuiWindow"][10]["name"] = "Pos" +defs["structs"]["ImGuiWindow"][10]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][11] = {} +defs["structs"]["ImGuiWindow"][11]["name"] = "Size" +defs["structs"]["ImGuiWindow"][11]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][12] = {} +defs["structs"]["ImGuiWindow"][12]["name"] = "SizeFull" +defs["structs"]["ImGuiWindow"][12]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][13] = {} +defs["structs"]["ImGuiWindow"][13]["name"] = "ContentSize" +defs["structs"]["ImGuiWindow"][13]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][14] = {} +defs["structs"]["ImGuiWindow"][14]["name"] = "ContentSizeIdeal" +defs["structs"]["ImGuiWindow"][14]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][15] = {} +defs["structs"]["ImGuiWindow"][15]["name"] = "ContentSizeExplicit" +defs["structs"]["ImGuiWindow"][15]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][16] = {} +defs["structs"]["ImGuiWindow"][16]["name"] = "WindowPadding" +defs["structs"]["ImGuiWindow"][16]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][17] = {} +defs["structs"]["ImGuiWindow"][17]["name"] = "WindowRounding" +defs["structs"]["ImGuiWindow"][17]["type"] = "float" +defs["structs"]["ImGuiWindow"][18] = {} +defs["structs"]["ImGuiWindow"][18]["name"] = "WindowBorderSize" +defs["structs"]["ImGuiWindow"][18]["type"] = "float" +defs["structs"]["ImGuiWindow"][19] = {} +defs["structs"]["ImGuiWindow"][19]["name"] = "NameBufLen" +defs["structs"]["ImGuiWindow"][19]["type"] = "int" +defs["structs"]["ImGuiWindow"][20] = {} +defs["structs"]["ImGuiWindow"][20]["name"] = "MoveId" +defs["structs"]["ImGuiWindow"][20]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][21] = {} +defs["structs"]["ImGuiWindow"][21]["name"] = "TabId" +defs["structs"]["ImGuiWindow"][21]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][22] = {} +defs["structs"]["ImGuiWindow"][22]["name"] = "ChildId" +defs["structs"]["ImGuiWindow"][22]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][23] = {} +defs["structs"]["ImGuiWindow"][23]["name"] = "Scroll" +defs["structs"]["ImGuiWindow"][23]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][24] = {} +defs["structs"]["ImGuiWindow"][24]["name"] = "ScrollMax" +defs["structs"]["ImGuiWindow"][24]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][25] = {} +defs["structs"]["ImGuiWindow"][25]["name"] = "ScrollTarget" +defs["structs"]["ImGuiWindow"][25]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][26] = {} +defs["structs"]["ImGuiWindow"][26]["name"] = "ScrollTargetCenterRatio" +defs["structs"]["ImGuiWindow"][26]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][27] = {} +defs["structs"]["ImGuiWindow"][27]["name"] = "ScrollTargetEdgeSnapDist" +defs["structs"]["ImGuiWindow"][27]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][28] = {} +defs["structs"]["ImGuiWindow"][28]["name"] = "ScrollbarSizes" +defs["structs"]["ImGuiWindow"][28]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][29] = {} +defs["structs"]["ImGuiWindow"][29]["name"] = "ScrollbarX" +defs["structs"]["ImGuiWindow"][29]["type"] = "bool" +defs["structs"]["ImGuiWindow"][30] = {} +defs["structs"]["ImGuiWindow"][30]["name"] = "ScrollbarY" +defs["structs"]["ImGuiWindow"][30]["type"] = "bool" +defs["structs"]["ImGuiWindow"][31] = {} +defs["structs"]["ImGuiWindow"][31]["name"] = "ViewportOwned" +defs["structs"]["ImGuiWindow"][31]["type"] = "bool" +defs["structs"]["ImGuiWindow"][32] = {} +defs["structs"]["ImGuiWindow"][32]["name"] = "Active" +defs["structs"]["ImGuiWindow"][32]["type"] = "bool" +defs["structs"]["ImGuiWindow"][33] = {} +defs["structs"]["ImGuiWindow"][33]["name"] = "WasActive" +defs["structs"]["ImGuiWindow"][33]["type"] = "bool" +defs["structs"]["ImGuiWindow"][34] = {} +defs["structs"]["ImGuiWindow"][34]["name"] = "WriteAccessed" +defs["structs"]["ImGuiWindow"][34]["type"] = "bool" +defs["structs"]["ImGuiWindow"][35] = {} +defs["structs"]["ImGuiWindow"][35]["name"] = "Collapsed" +defs["structs"]["ImGuiWindow"][35]["type"] = "bool" +defs["structs"]["ImGuiWindow"][36] = {} +defs["structs"]["ImGuiWindow"][36]["name"] = "WantCollapseToggle" +defs["structs"]["ImGuiWindow"][36]["type"] = "bool" +defs["structs"]["ImGuiWindow"][37] = {} +defs["structs"]["ImGuiWindow"][37]["name"] = "SkipItems" +defs["structs"]["ImGuiWindow"][37]["type"] = "bool" +defs["structs"]["ImGuiWindow"][38] = {} +defs["structs"]["ImGuiWindow"][38]["name"] = "Appearing" +defs["structs"]["ImGuiWindow"][38]["type"] = "bool" +defs["structs"]["ImGuiWindow"][39] = {} +defs["structs"]["ImGuiWindow"][39]["name"] = "Hidden" +defs["structs"]["ImGuiWindow"][39]["type"] = "bool" +defs["structs"]["ImGuiWindow"][40] = {} +defs["structs"]["ImGuiWindow"][40]["name"] = "IsFallbackWindow" +defs["structs"]["ImGuiWindow"][40]["type"] = "bool" +defs["structs"]["ImGuiWindow"][41] = {} +defs["structs"]["ImGuiWindow"][41]["name"] = "IsExplicitChild" +defs["structs"]["ImGuiWindow"][41]["type"] = "bool" +defs["structs"]["ImGuiWindow"][42] = {} +defs["structs"]["ImGuiWindow"][42]["name"] = "HasCloseButton" +defs["structs"]["ImGuiWindow"][42]["type"] = "bool" +defs["structs"]["ImGuiWindow"][43] = {} +defs["structs"]["ImGuiWindow"][43]["name"] = "ResizeBorderHeld" +defs["structs"]["ImGuiWindow"][43]["type"] = "signed char" +defs["structs"]["ImGuiWindow"][44] = {} +defs["structs"]["ImGuiWindow"][44]["name"] = "BeginCount" +defs["structs"]["ImGuiWindow"][44]["type"] = "short" +defs["structs"]["ImGuiWindow"][45] = {} +defs["structs"]["ImGuiWindow"][45]["name"] = "BeginCountPreviousFrame" +defs["structs"]["ImGuiWindow"][45]["type"] = "short" +defs["structs"]["ImGuiWindow"][46] = {} +defs["structs"]["ImGuiWindow"][46]["name"] = "BeginOrderWithinParent" +defs["structs"]["ImGuiWindow"][46]["type"] = "short" +defs["structs"]["ImGuiWindow"][47] = {} +defs["structs"]["ImGuiWindow"][47]["name"] = "BeginOrderWithinContext" +defs["structs"]["ImGuiWindow"][47]["type"] = "short" +defs["structs"]["ImGuiWindow"][48] = {} +defs["structs"]["ImGuiWindow"][48]["name"] = "FocusOrder" +defs["structs"]["ImGuiWindow"][48]["type"] = "short" +defs["structs"]["ImGuiWindow"][49] = {} +defs["structs"]["ImGuiWindow"][49]["name"] = "PopupId" +defs["structs"]["ImGuiWindow"][49]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][50] = {} +defs["structs"]["ImGuiWindow"][50]["name"] = "AutoFitFramesX" +defs["structs"]["ImGuiWindow"][50]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][51] = {} +defs["structs"]["ImGuiWindow"][51]["name"] = "AutoFitFramesY" +defs["structs"]["ImGuiWindow"][51]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][52] = {} +defs["structs"]["ImGuiWindow"][52]["name"] = "AutoFitChildAxises" +defs["structs"]["ImGuiWindow"][52]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][53] = {} +defs["structs"]["ImGuiWindow"][53]["name"] = "AutoFitOnlyGrows" +defs["structs"]["ImGuiWindow"][53]["type"] = "bool" +defs["structs"]["ImGuiWindow"][54] = {} +defs["structs"]["ImGuiWindow"][54]["name"] = "AutoPosLastDirection" +defs["structs"]["ImGuiWindow"][54]["type"] = "ImGuiDir" +defs["structs"]["ImGuiWindow"][55] = {} +defs["structs"]["ImGuiWindow"][55]["name"] = "HiddenFramesCanSkipItems" +defs["structs"]["ImGuiWindow"][55]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][56] = {} +defs["structs"]["ImGuiWindow"][56]["name"] = "HiddenFramesCannotSkipItems" +defs["structs"]["ImGuiWindow"][56]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][57] = {} +defs["structs"]["ImGuiWindow"][57]["name"] = "HiddenFramesForRenderOnly" +defs["structs"]["ImGuiWindow"][57]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][58] = {} +defs["structs"]["ImGuiWindow"][58]["name"] = "DisableInputsFrames" +defs["structs"]["ImGuiWindow"][58]["type"] = "ImS8" +defs["structs"]["ImGuiWindow"][59] = {} +defs["structs"]["ImGuiWindow"][59]["bitfield"] = "8" +defs["structs"]["ImGuiWindow"][59]["name"] = "SetWindowPosAllowFlags" +defs["structs"]["ImGuiWindow"][59]["type"] = "ImGuiCond" +defs["structs"]["ImGuiWindow"][60] = {} +defs["structs"]["ImGuiWindow"][60]["bitfield"] = "8" +defs["structs"]["ImGuiWindow"][60]["name"] = "SetWindowSizeAllowFlags" +defs["structs"]["ImGuiWindow"][60]["type"] = "ImGuiCond" +defs["structs"]["ImGuiWindow"][61] = {} +defs["structs"]["ImGuiWindow"][61]["bitfield"] = "8" +defs["structs"]["ImGuiWindow"][61]["name"] = "SetWindowCollapsedAllowFlags" +defs["structs"]["ImGuiWindow"][61]["type"] = "ImGuiCond" +defs["structs"]["ImGuiWindow"][62] = {} +defs["structs"]["ImGuiWindow"][62]["bitfield"] = "8" +defs["structs"]["ImGuiWindow"][62]["name"] = "SetWindowDockAllowFlags" +defs["structs"]["ImGuiWindow"][62]["type"] = "ImGuiCond" +defs["structs"]["ImGuiWindow"][63] = {} +defs["structs"]["ImGuiWindow"][63]["name"] = "SetWindowPosVal" +defs["structs"]["ImGuiWindow"][63]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][64] = {} +defs["structs"]["ImGuiWindow"][64]["name"] = "SetWindowPosPivot" +defs["structs"]["ImGuiWindow"][64]["type"] = "ImVec2" +defs["structs"]["ImGuiWindow"][65] = {} +defs["structs"]["ImGuiWindow"][65]["name"] = "IDStack" +defs["structs"]["ImGuiWindow"][65]["template_type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][65]["type"] = "ImVector_ImGuiID" +defs["structs"]["ImGuiWindow"][66] = {} +defs["structs"]["ImGuiWindow"][66]["name"] = "DC" +defs["structs"]["ImGuiWindow"][66]["type"] = "ImGuiWindowTempData" +defs["structs"]["ImGuiWindow"][67] = {} +defs["structs"]["ImGuiWindow"][67]["name"] = "OuterRectClipped" +defs["structs"]["ImGuiWindow"][67]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][68] = {} +defs["structs"]["ImGuiWindow"][68]["name"] = "InnerRect" +defs["structs"]["ImGuiWindow"][68]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][69] = {} +defs["structs"]["ImGuiWindow"][69]["name"] = "InnerClipRect" +defs["structs"]["ImGuiWindow"][69]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][70] = {} +defs["structs"]["ImGuiWindow"][70]["name"] = "WorkRect" +defs["structs"]["ImGuiWindow"][70]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][71] = {} +defs["structs"]["ImGuiWindow"][71]["name"] = "ParentWorkRect" +defs["structs"]["ImGuiWindow"][71]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][72] = {} +defs["structs"]["ImGuiWindow"][72]["name"] = "ClipRect" +defs["structs"]["ImGuiWindow"][72]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][73] = {} +defs["structs"]["ImGuiWindow"][73]["name"] = "ContentRegionRect" +defs["structs"]["ImGuiWindow"][73]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][74] = {} +defs["structs"]["ImGuiWindow"][74]["name"] = "HitTestHoleSize" +defs["structs"]["ImGuiWindow"][74]["type"] = "ImVec2ih" +defs["structs"]["ImGuiWindow"][75] = {} +defs["structs"]["ImGuiWindow"][75]["name"] = "HitTestHoleOffset" +defs["structs"]["ImGuiWindow"][75]["type"] = "ImVec2ih" +defs["structs"]["ImGuiWindow"][76] = {} +defs["structs"]["ImGuiWindow"][76]["name"] = "LastFrameActive" +defs["structs"]["ImGuiWindow"][76]["type"] = "int" +defs["structs"]["ImGuiWindow"][77] = {} +defs["structs"]["ImGuiWindow"][77]["name"] = "LastFrameJustFocused" +defs["structs"]["ImGuiWindow"][77]["type"] = "int" +defs["structs"]["ImGuiWindow"][78] = {} +defs["structs"]["ImGuiWindow"][78]["name"] = "LastTimeActive" +defs["structs"]["ImGuiWindow"][78]["type"] = "float" +defs["structs"]["ImGuiWindow"][79] = {} +defs["structs"]["ImGuiWindow"][79]["name"] = "ItemWidthDefault" +defs["structs"]["ImGuiWindow"][79]["type"] = "float" +defs["structs"]["ImGuiWindow"][80] = {} +defs["structs"]["ImGuiWindow"][80]["name"] = "StateStorage" +defs["structs"]["ImGuiWindow"][80]["type"] = "ImGuiStorage" +defs["structs"]["ImGuiWindow"][81] = {} +defs["structs"]["ImGuiWindow"][81]["name"] = "ColumnsStorage" +defs["structs"]["ImGuiWindow"][81]["template_type"] = "ImGuiOldColumns" +defs["structs"]["ImGuiWindow"][81]["type"] = "ImVector_ImGuiOldColumns" +defs["structs"]["ImGuiWindow"][82] = {} +defs["structs"]["ImGuiWindow"][82]["name"] = "FontWindowScale" +defs["structs"]["ImGuiWindow"][82]["type"] = "float" +defs["structs"]["ImGuiWindow"][83] = {} +defs["structs"]["ImGuiWindow"][83]["name"] = "FontDpiScale" +defs["structs"]["ImGuiWindow"][83]["type"] = "float" +defs["structs"]["ImGuiWindow"][84] = {} +defs["structs"]["ImGuiWindow"][84]["name"] = "SettingsOffset" +defs["structs"]["ImGuiWindow"][84]["type"] = "int" +defs["structs"]["ImGuiWindow"][85] = {} +defs["structs"]["ImGuiWindow"][85]["name"] = "DrawList" +defs["structs"]["ImGuiWindow"][85]["type"] = "ImDrawList*" +defs["structs"]["ImGuiWindow"][86] = {} +defs["structs"]["ImGuiWindow"][86]["name"] = "DrawListInst" +defs["structs"]["ImGuiWindow"][86]["type"] = "ImDrawList" +defs["structs"]["ImGuiWindow"][87] = {} +defs["structs"]["ImGuiWindow"][87]["name"] = "ParentWindow" +defs["structs"]["ImGuiWindow"][87]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][88] = {} +defs["structs"]["ImGuiWindow"][88]["name"] = "ParentWindowInBeginStack" +defs["structs"]["ImGuiWindow"][88]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][89] = {} +defs["structs"]["ImGuiWindow"][89]["name"] = "RootWindow" +defs["structs"]["ImGuiWindow"][89]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][90] = {} +defs["structs"]["ImGuiWindow"][90]["name"] = "RootWindowPopupTree" +defs["structs"]["ImGuiWindow"][90]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][91] = {} +defs["structs"]["ImGuiWindow"][91]["name"] = "RootWindowDockTree" +defs["structs"]["ImGuiWindow"][91]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][92] = {} +defs["structs"]["ImGuiWindow"][92]["name"] = "RootWindowForTitleBarHighlight" +defs["structs"]["ImGuiWindow"][92]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][93] = {} +defs["structs"]["ImGuiWindow"][93]["name"] = "RootWindowForNav" +defs["structs"]["ImGuiWindow"][93]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][94] = {} +defs["structs"]["ImGuiWindow"][94]["name"] = "NavLastChildNavWindow" +defs["structs"]["ImGuiWindow"][94]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindow"][95] = {} +defs["structs"]["ImGuiWindow"][95]["name"] = "NavLastIds[ImGuiNavLayer_COUNT]" +defs["structs"]["ImGuiWindow"][95]["size"] = 2 +defs["structs"]["ImGuiWindow"][95]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][96] = {} +defs["structs"]["ImGuiWindow"][96]["name"] = "NavRectRel[ImGuiNavLayer_COUNT]" +defs["structs"]["ImGuiWindow"][96]["size"] = 2 +defs["structs"]["ImGuiWindow"][96]["type"] = "ImRect" +defs["structs"]["ImGuiWindow"][97] = {} +defs["structs"]["ImGuiWindow"][97]["name"] = "NavRootFocusScopeId" +defs["structs"]["ImGuiWindow"][97]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][98] = {} +defs["structs"]["ImGuiWindow"][98]["name"] = "MemoryDrawListIdxCapacity" +defs["structs"]["ImGuiWindow"][98]["type"] = "int" +defs["structs"]["ImGuiWindow"][99] = {} +defs["structs"]["ImGuiWindow"][99]["name"] = "MemoryDrawListVtxCapacity" +defs["structs"]["ImGuiWindow"][99]["type"] = "int" +defs["structs"]["ImGuiWindow"][100] = {} +defs["structs"]["ImGuiWindow"][100]["name"] = "MemoryCompacted" +defs["structs"]["ImGuiWindow"][100]["type"] = "bool" +defs["structs"]["ImGuiWindow"][101] = {} +defs["structs"]["ImGuiWindow"][101]["bitfield"] = "1" +defs["structs"]["ImGuiWindow"][101]["name"] = "DockIsActive" +defs["structs"]["ImGuiWindow"][101]["type"] = "bool" +defs["structs"]["ImGuiWindow"][102] = {} +defs["structs"]["ImGuiWindow"][102]["bitfield"] = "1" +defs["structs"]["ImGuiWindow"][102]["name"] = "DockNodeIsVisible" +defs["structs"]["ImGuiWindow"][102]["type"] = "bool" +defs["structs"]["ImGuiWindow"][103] = {} +defs["structs"]["ImGuiWindow"][103]["bitfield"] = "1" +defs["structs"]["ImGuiWindow"][103]["name"] = "DockTabIsVisible" +defs["structs"]["ImGuiWindow"][103]["type"] = "bool" +defs["structs"]["ImGuiWindow"][104] = {} +defs["structs"]["ImGuiWindow"][104]["bitfield"] = "1" +defs["structs"]["ImGuiWindow"][104]["name"] = "DockTabWantClose" +defs["structs"]["ImGuiWindow"][104]["type"] = "bool" +defs["structs"]["ImGuiWindow"][105] = {} +defs["structs"]["ImGuiWindow"][105]["name"] = "DockOrder" +defs["structs"]["ImGuiWindow"][105]["type"] = "short" +defs["structs"]["ImGuiWindow"][106] = {} +defs["structs"]["ImGuiWindow"][106]["name"] = "DockStyle" +defs["structs"]["ImGuiWindow"][106]["type"] = "ImGuiWindowDockStyle" +defs["structs"]["ImGuiWindow"][107] = {} +defs["structs"]["ImGuiWindow"][107]["name"] = "DockNode" +defs["structs"]["ImGuiWindow"][107]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiWindow"][108] = {} +defs["structs"]["ImGuiWindow"][108]["name"] = "DockNodeAsHost" +defs["structs"]["ImGuiWindow"][108]["type"] = "ImGuiDockNode*" +defs["structs"]["ImGuiWindow"][109] = {} +defs["structs"]["ImGuiWindow"][109]["name"] = "DockId" +defs["structs"]["ImGuiWindow"][109]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindow"][110] = {} +defs["structs"]["ImGuiWindow"][110]["name"] = "DockTabItemStatusFlags" +defs["structs"]["ImGuiWindow"][110]["type"] = "ImGuiItemStatusFlags" +defs["structs"]["ImGuiWindow"][111] = {} +defs["structs"]["ImGuiWindow"][111]["name"] = "DockTabItemRect" +defs["structs"]["ImGuiWindow"][111]["type"] = "ImRect" defs["structs"]["ImGuiWindowClass"] = {} defs["structs"]["ImGuiWindowClass"][1] = {} defs["structs"]["ImGuiWindowClass"][1]["name"] = "ClassId" @@ -3815,6 +7700,172 @@ defs["structs"]["ImGuiWindowClass"][7]["type"] = "bool" defs["structs"]["ImGuiWindowClass"][8] = {} defs["structs"]["ImGuiWindowClass"][8]["name"] = "DockingAllowUnclassed" defs["structs"]["ImGuiWindowClass"][8]["type"] = "bool" +defs["structs"]["ImGuiWindowDockStyle"] = {} +defs["structs"]["ImGuiWindowDockStyle"][1] = {} +defs["structs"]["ImGuiWindowDockStyle"][1]["name"] = "Colors[ImGuiWindowDockStyleCol_COUNT]" +defs["structs"]["ImGuiWindowDockStyle"][1]["size"] = 6 +defs["structs"]["ImGuiWindowDockStyle"][1]["type"] = "ImU32" +defs["structs"]["ImGuiWindowSettings"] = {} +defs["structs"]["ImGuiWindowSettings"][1] = {} +defs["structs"]["ImGuiWindowSettings"][1]["name"] = "ID" +defs["structs"]["ImGuiWindowSettings"][1]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindowSettings"][2] = {} +defs["structs"]["ImGuiWindowSettings"][2]["name"] = "Pos" +defs["structs"]["ImGuiWindowSettings"][2]["type"] = "ImVec2ih" +defs["structs"]["ImGuiWindowSettings"][3] = {} +defs["structs"]["ImGuiWindowSettings"][3]["name"] = "Size" +defs["structs"]["ImGuiWindowSettings"][3]["type"] = "ImVec2ih" +defs["structs"]["ImGuiWindowSettings"][4] = {} +defs["structs"]["ImGuiWindowSettings"][4]["name"] = "ViewportPos" +defs["structs"]["ImGuiWindowSettings"][4]["type"] = "ImVec2ih" +defs["structs"]["ImGuiWindowSettings"][5] = {} +defs["structs"]["ImGuiWindowSettings"][5]["name"] = "ViewportId" +defs["structs"]["ImGuiWindowSettings"][5]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindowSettings"][6] = {} +defs["structs"]["ImGuiWindowSettings"][6]["name"] = "DockId" +defs["structs"]["ImGuiWindowSettings"][6]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindowSettings"][7] = {} +defs["structs"]["ImGuiWindowSettings"][7]["name"] = "ClassId" +defs["structs"]["ImGuiWindowSettings"][7]["type"] = "ImGuiID" +defs["structs"]["ImGuiWindowSettings"][8] = {} +defs["structs"]["ImGuiWindowSettings"][8]["name"] = "DockOrder" +defs["structs"]["ImGuiWindowSettings"][8]["type"] = "short" +defs["structs"]["ImGuiWindowSettings"][9] = {} +defs["structs"]["ImGuiWindowSettings"][9]["name"] = "Collapsed" +defs["structs"]["ImGuiWindowSettings"][9]["type"] = "bool" +defs["structs"]["ImGuiWindowSettings"][10] = {} +defs["structs"]["ImGuiWindowSettings"][10]["name"] = "WantApply" +defs["structs"]["ImGuiWindowSettings"][10]["type"] = "bool" +defs["structs"]["ImGuiWindowStackData"] = {} +defs["structs"]["ImGuiWindowStackData"][1] = {} +defs["structs"]["ImGuiWindowStackData"][1]["name"] = "Window" +defs["structs"]["ImGuiWindowStackData"][1]["type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindowStackData"][2] = {} +defs["structs"]["ImGuiWindowStackData"][2]["name"] = "ParentLastItemDataBackup" +defs["structs"]["ImGuiWindowStackData"][2]["type"] = "ImGuiLastItemData" +defs["structs"]["ImGuiWindowStackData"][3] = {} +defs["structs"]["ImGuiWindowStackData"][3]["name"] = "StackSizesOnBegin" +defs["structs"]["ImGuiWindowStackData"][3]["type"] = "ImGuiStackSizes" +defs["structs"]["ImGuiWindowTempData"] = {} +defs["structs"]["ImGuiWindowTempData"][1] = {} +defs["structs"]["ImGuiWindowTempData"][1]["name"] = "CursorPos" +defs["structs"]["ImGuiWindowTempData"][1]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][2] = {} +defs["structs"]["ImGuiWindowTempData"][2]["name"] = "CursorPosPrevLine" +defs["structs"]["ImGuiWindowTempData"][2]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][3] = {} +defs["structs"]["ImGuiWindowTempData"][3]["name"] = "CursorStartPos" +defs["structs"]["ImGuiWindowTempData"][3]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][4] = {} +defs["structs"]["ImGuiWindowTempData"][4]["name"] = "CursorMaxPos" +defs["structs"]["ImGuiWindowTempData"][4]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][5] = {} +defs["structs"]["ImGuiWindowTempData"][5]["name"] = "IdealMaxPos" +defs["structs"]["ImGuiWindowTempData"][5]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][6] = {} +defs["structs"]["ImGuiWindowTempData"][6]["name"] = "CurrLineSize" +defs["structs"]["ImGuiWindowTempData"][6]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][7] = {} +defs["structs"]["ImGuiWindowTempData"][7]["name"] = "PrevLineSize" +defs["structs"]["ImGuiWindowTempData"][7]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][8] = {} +defs["structs"]["ImGuiWindowTempData"][8]["name"] = "CurrLineTextBaseOffset" +defs["structs"]["ImGuiWindowTempData"][8]["type"] = "float" +defs["structs"]["ImGuiWindowTempData"][9] = {} +defs["structs"]["ImGuiWindowTempData"][9]["name"] = "PrevLineTextBaseOffset" +defs["structs"]["ImGuiWindowTempData"][9]["type"] = "float" +defs["structs"]["ImGuiWindowTempData"][10] = {} +defs["structs"]["ImGuiWindowTempData"][10]["name"] = "IsSameLine" +defs["structs"]["ImGuiWindowTempData"][10]["type"] = "bool" +defs["structs"]["ImGuiWindowTempData"][11] = {} +defs["structs"]["ImGuiWindowTempData"][11]["name"] = "IsSetPos" +defs["structs"]["ImGuiWindowTempData"][11]["type"] = "bool" +defs["structs"]["ImGuiWindowTempData"][12] = {} +defs["structs"]["ImGuiWindowTempData"][12]["name"] = "Indent" +defs["structs"]["ImGuiWindowTempData"][12]["type"] = "ImVec1" +defs["structs"]["ImGuiWindowTempData"][13] = {} +defs["structs"]["ImGuiWindowTempData"][13]["name"] = "ColumnsOffset" +defs["structs"]["ImGuiWindowTempData"][13]["type"] = "ImVec1" +defs["structs"]["ImGuiWindowTempData"][14] = {} +defs["structs"]["ImGuiWindowTempData"][14]["name"] = "GroupOffset" +defs["structs"]["ImGuiWindowTempData"][14]["type"] = "ImVec1" +defs["structs"]["ImGuiWindowTempData"][15] = {} +defs["structs"]["ImGuiWindowTempData"][15]["name"] = "CursorStartPosLossyness" +defs["structs"]["ImGuiWindowTempData"][15]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][16] = {} +defs["structs"]["ImGuiWindowTempData"][16]["name"] = "NavLayerCurrent" +defs["structs"]["ImGuiWindowTempData"][16]["type"] = "ImGuiNavLayer" +defs["structs"]["ImGuiWindowTempData"][17] = {} +defs["structs"]["ImGuiWindowTempData"][17]["name"] = "NavLayersActiveMask" +defs["structs"]["ImGuiWindowTempData"][17]["type"] = "short" +defs["structs"]["ImGuiWindowTempData"][18] = {} +defs["structs"]["ImGuiWindowTempData"][18]["name"] = "NavLayersActiveMaskNext" +defs["structs"]["ImGuiWindowTempData"][18]["type"] = "short" +defs["structs"]["ImGuiWindowTempData"][19] = {} +defs["structs"]["ImGuiWindowTempData"][19]["name"] = "NavHideHighlightOneFrame" +defs["structs"]["ImGuiWindowTempData"][19]["type"] = "bool" +defs["structs"]["ImGuiWindowTempData"][20] = {} +defs["structs"]["ImGuiWindowTempData"][20]["name"] = "NavHasScroll" +defs["structs"]["ImGuiWindowTempData"][20]["type"] = "bool" +defs["structs"]["ImGuiWindowTempData"][21] = {} +defs["structs"]["ImGuiWindowTempData"][21]["name"] = "MenuBarAppending" +defs["structs"]["ImGuiWindowTempData"][21]["type"] = "bool" +defs["structs"]["ImGuiWindowTempData"][22] = {} +defs["structs"]["ImGuiWindowTempData"][22]["name"] = "MenuBarOffset" +defs["structs"]["ImGuiWindowTempData"][22]["type"] = "ImVec2" +defs["structs"]["ImGuiWindowTempData"][23] = {} +defs["structs"]["ImGuiWindowTempData"][23]["name"] = "MenuColumns" +defs["structs"]["ImGuiWindowTempData"][23]["type"] = "ImGuiMenuColumns" +defs["structs"]["ImGuiWindowTempData"][24] = {} +defs["structs"]["ImGuiWindowTempData"][24]["name"] = "TreeDepth" +defs["structs"]["ImGuiWindowTempData"][24]["type"] = "int" +defs["structs"]["ImGuiWindowTempData"][25] = {} +defs["structs"]["ImGuiWindowTempData"][25]["name"] = "TreeJumpToParentOnPopMask" +defs["structs"]["ImGuiWindowTempData"][25]["type"] = "ImU32" +defs["structs"]["ImGuiWindowTempData"][26] = {} +defs["structs"]["ImGuiWindowTempData"][26]["name"] = "ChildWindows" +defs["structs"]["ImGuiWindowTempData"][26]["template_type"] = "ImGuiWindow*" +defs["structs"]["ImGuiWindowTempData"][26]["type"] = "ImVector_ImGuiWindowPtr" +defs["structs"]["ImGuiWindowTempData"][27] = {} +defs["structs"]["ImGuiWindowTempData"][27]["name"] = "StateStorage" +defs["structs"]["ImGuiWindowTempData"][27]["type"] = "ImGuiStorage*" +defs["structs"]["ImGuiWindowTempData"][28] = {} +defs["structs"]["ImGuiWindowTempData"][28]["name"] = "CurrentColumns" +defs["structs"]["ImGuiWindowTempData"][28]["type"] = "ImGuiOldColumns*" +defs["structs"]["ImGuiWindowTempData"][29] = {} +defs["structs"]["ImGuiWindowTempData"][29]["name"] = "CurrentTableIdx" +defs["structs"]["ImGuiWindowTempData"][29]["type"] = "int" +defs["structs"]["ImGuiWindowTempData"][30] = {} +defs["structs"]["ImGuiWindowTempData"][30]["name"] = "LayoutType" +defs["structs"]["ImGuiWindowTempData"][30]["type"] = "ImGuiLayoutType" +defs["structs"]["ImGuiWindowTempData"][31] = {} +defs["structs"]["ImGuiWindowTempData"][31]["name"] = "ParentLayoutType" +defs["structs"]["ImGuiWindowTempData"][31]["type"] = "ImGuiLayoutType" +defs["structs"]["ImGuiWindowTempData"][32] = {} +defs["structs"]["ImGuiWindowTempData"][32]["name"] = "ItemWidth" +defs["structs"]["ImGuiWindowTempData"][32]["type"] = "float" +defs["structs"]["ImGuiWindowTempData"][33] = {} +defs["structs"]["ImGuiWindowTempData"][33]["name"] = "TextWrapPos" +defs["structs"]["ImGuiWindowTempData"][33]["type"] = "float" +defs["structs"]["ImGuiWindowTempData"][34] = {} +defs["structs"]["ImGuiWindowTempData"][34]["name"] = "ItemWidthStack" +defs["structs"]["ImGuiWindowTempData"][34]["template_type"] = "float" +defs["structs"]["ImGuiWindowTempData"][34]["type"] = "ImVector_float" +defs["structs"]["ImGuiWindowTempData"][35] = {} +defs["structs"]["ImGuiWindowTempData"][35]["name"] = "TextWrapPosStack" +defs["structs"]["ImGuiWindowTempData"][35]["template_type"] = "float" +defs["structs"]["ImGuiWindowTempData"][35]["type"] = "ImVector_float" +defs["structs"]["ImRect"] = {} +defs["structs"]["ImRect"][1] = {} +defs["structs"]["ImRect"][1]["name"] = "Min" +defs["structs"]["ImRect"][1]["type"] = "ImVec2" +defs["structs"]["ImRect"][2] = {} +defs["structs"]["ImRect"][2]["name"] = "Max" +defs["structs"]["ImRect"][2]["type"] = "ImVec2" +defs["structs"]["ImVec1"] = {} +defs["structs"]["ImVec1"][1] = {} +defs["structs"]["ImVec1"][1]["name"] = "x" +defs["structs"]["ImVec1"][1]["type"] = "float" defs["structs"]["ImVec2"] = {} defs["structs"]["ImVec2"][1] = {} defs["structs"]["ImVec2"][1]["name"] = "x" @@ -3822,6 +7873,13 @@ defs["structs"]["ImVec2"][1]["type"] = "float" defs["structs"]["ImVec2"][2] = {} defs["structs"]["ImVec2"][2]["name"] = "y" defs["structs"]["ImVec2"][2]["type"] = "float" +defs["structs"]["ImVec2ih"] = {} +defs["structs"]["ImVec2ih"][1] = {} +defs["structs"]["ImVec2ih"][1]["name"] = "x" +defs["structs"]["ImVec2ih"][1]["type"] = "short" +defs["structs"]["ImVec2ih"][2] = {} +defs["structs"]["ImVec2ih"][2]["name"] = "y" +defs["structs"]["ImVec2ih"][2]["type"] = "short" defs["structs"]["ImVec4"] = {} defs["structs"]["ImVec4"][1] = {} defs["structs"]["ImVec4"][1]["name"] = "x" @@ -3835,7 +7893,148 @@ defs["structs"]["ImVec4"][3]["type"] = "float" defs["structs"]["ImVec4"][4] = {} defs["structs"]["ImVec4"][4]["name"] = "w" defs["structs"]["ImVec4"][4]["type"] = "float" +defs["structs"]["STB_TexteditState"] = {} +defs["structs"]["STB_TexteditState"][1] = {} +defs["structs"]["STB_TexteditState"][1]["name"] = "cursor" +defs["structs"]["STB_TexteditState"][1]["type"] = "int" +defs["structs"]["STB_TexteditState"][2] = {} +defs["structs"]["STB_TexteditState"][2]["name"] = "select_start" +defs["structs"]["STB_TexteditState"][2]["type"] = "int" +defs["structs"]["STB_TexteditState"][3] = {} +defs["structs"]["STB_TexteditState"][3]["name"] = "select_end" +defs["structs"]["STB_TexteditState"][3]["type"] = "int" +defs["structs"]["STB_TexteditState"][4] = {} +defs["structs"]["STB_TexteditState"][4]["name"] = "insert_mode" +defs["structs"]["STB_TexteditState"][4]["type"] = "unsigned char" +defs["structs"]["STB_TexteditState"][5] = {} +defs["structs"]["STB_TexteditState"][5]["name"] = "row_count_per_page" +defs["structs"]["STB_TexteditState"][5]["type"] = "int" +defs["structs"]["STB_TexteditState"][6] = {} +defs["structs"]["STB_TexteditState"][6]["name"] = "cursor_at_end_of_line" +defs["structs"]["STB_TexteditState"][6]["type"] = "unsigned char" +defs["structs"]["STB_TexteditState"][7] = {} +defs["structs"]["STB_TexteditState"][7]["name"] = "initialized" +defs["structs"]["STB_TexteditState"][7]["type"] = "unsigned char" +defs["structs"]["STB_TexteditState"][8] = {} +defs["structs"]["STB_TexteditState"][8]["name"] = "has_preferred_x" +defs["structs"]["STB_TexteditState"][8]["type"] = "unsigned char" +defs["structs"]["STB_TexteditState"][9] = {} +defs["structs"]["STB_TexteditState"][9]["name"] = "single_line" +defs["structs"]["STB_TexteditState"][9]["type"] = "unsigned char" +defs["structs"]["STB_TexteditState"][10] = {} +defs["structs"]["STB_TexteditState"][10]["name"] = "padding1" +defs["structs"]["STB_TexteditState"][10]["type"] = "unsigned char" +defs["structs"]["STB_TexteditState"][11] = {} +defs["structs"]["STB_TexteditState"][11]["name"] = "padding2" +defs["structs"]["STB_TexteditState"][11]["type"] = "unsigned char" +defs["structs"]["STB_TexteditState"][12] = {} +defs["structs"]["STB_TexteditState"][12]["name"] = "padding3" +defs["structs"]["STB_TexteditState"][12]["type"] = "unsigned char" +defs["structs"]["STB_TexteditState"][13] = {} +defs["structs"]["STB_TexteditState"][13]["name"] = "preferred_x" +defs["structs"]["STB_TexteditState"][13]["type"] = "float" +defs["structs"]["STB_TexteditState"][14] = {} +defs["structs"]["STB_TexteditState"][14]["name"] = "undostate" +defs["structs"]["STB_TexteditState"][14]["type"] = "StbUndoState" +defs["structs"]["StbTexteditRow"] = {} +defs["structs"]["StbTexteditRow"][1] = {} +defs["structs"]["StbTexteditRow"][1]["name"] = "x0" +defs["structs"]["StbTexteditRow"][1]["type"] = "float" +defs["structs"]["StbTexteditRow"][2] = {} +defs["structs"]["StbTexteditRow"][2]["name"] = "x1" +defs["structs"]["StbTexteditRow"][2]["type"] = "float" +defs["structs"]["StbTexteditRow"][3] = {} +defs["structs"]["StbTexteditRow"][3]["name"] = "baseline_y_delta" +defs["structs"]["StbTexteditRow"][3]["type"] = "float" +defs["structs"]["StbTexteditRow"][4] = {} +defs["structs"]["StbTexteditRow"][4]["name"] = "ymin" +defs["structs"]["StbTexteditRow"][4]["type"] = "float" +defs["structs"]["StbTexteditRow"][5] = {} +defs["structs"]["StbTexteditRow"][5]["name"] = "ymax" +defs["structs"]["StbTexteditRow"][5]["type"] = "float" +defs["structs"]["StbTexteditRow"][6] = {} +defs["structs"]["StbTexteditRow"][6]["name"] = "num_chars" +defs["structs"]["StbTexteditRow"][6]["type"] = "int" +defs["structs"]["StbUndoRecord"] = {} +defs["structs"]["StbUndoRecord"][1] = {} +defs["structs"]["StbUndoRecord"][1]["name"] = "where" +defs["structs"]["StbUndoRecord"][1]["type"] = "int" +defs["structs"]["StbUndoRecord"][2] = {} +defs["structs"]["StbUndoRecord"][2]["name"] = "insert_length" +defs["structs"]["StbUndoRecord"][2]["type"] = "int" +defs["structs"]["StbUndoRecord"][3] = {} +defs["structs"]["StbUndoRecord"][3]["name"] = "delete_length" +defs["structs"]["StbUndoRecord"][3]["type"] = "int" +defs["structs"]["StbUndoRecord"][4] = {} +defs["structs"]["StbUndoRecord"][4]["name"] = "char_storage" +defs["structs"]["StbUndoRecord"][4]["type"] = "int" +defs["structs"]["StbUndoState"] = {} +defs["structs"]["StbUndoState"][1] = {} +defs["structs"]["StbUndoState"][1]["name"] = "undo_rec[99]" +defs["structs"]["StbUndoState"][1]["size"] = 99 +defs["structs"]["StbUndoState"][1]["type"] = "StbUndoRecord" +defs["structs"]["StbUndoState"][2] = {} +defs["structs"]["StbUndoState"][2]["name"] = "undo_char[999]" +defs["structs"]["StbUndoState"][2]["size"] = 999 +defs["structs"]["StbUndoState"][2]["type"] = "ImWchar" +defs["structs"]["StbUndoState"][3] = {} +defs["structs"]["StbUndoState"][3]["name"] = "undo_point" +defs["structs"]["StbUndoState"][3]["type"] = "short" +defs["structs"]["StbUndoState"][4] = {} +defs["structs"]["StbUndoState"][4]["name"] = "redo_point" +defs["structs"]["StbUndoState"][4]["type"] = "short" +defs["structs"]["StbUndoState"][5] = {} +defs["structs"]["StbUndoState"][5]["name"] = "undo_char_point" +defs["structs"]["StbUndoState"][5]["type"] = "int" +defs["structs"]["StbUndoState"][6] = {} +defs["structs"]["StbUndoState"][6]["name"] = "redo_char_point" +defs["structs"]["StbUndoState"][6]["type"] = "int" defs["templated_structs"] = {} +defs["templated_structs"]["ImBitArray"] = {} +defs["templated_structs"]["ImBitArray"][1] = {} +defs["templated_structs"]["ImBitArray"][1]["name"] = "Storage[(BITCOUNT+31)>>5]" +defs["templated_structs"]["ImBitArray"][1]["type"] = "ImU32" +defs["templated_structs"]["ImChunkStream"] = {} +defs["templated_structs"]["ImChunkStream"][1] = {} +defs["templated_structs"]["ImChunkStream"][1]["name"] = "Buf" +defs["templated_structs"]["ImChunkStream"][1]["template_type"] = "char" +defs["templated_structs"]["ImChunkStream"][1]["type"] = "ImVector_char" +defs["templated_structs"]["ImPool"] = {} +defs["templated_structs"]["ImPool"][1] = {} +defs["templated_structs"]["ImPool"][1]["name"] = "Buf" +defs["templated_structs"]["ImPool"][1]["type"] = "ImVector" +defs["templated_structs"]["ImPool"][2] = {} +defs["templated_structs"]["ImPool"][2]["name"] = "Map" +defs["templated_structs"]["ImPool"][2]["type"] = "ImGuiStorage" +defs["templated_structs"]["ImPool"][3] = {} +defs["templated_structs"]["ImPool"][3]["name"] = "FreeIdx" +defs["templated_structs"]["ImPool"][3]["type"] = "ImPoolIdx" +defs["templated_structs"]["ImPool"][4] = {} +defs["templated_structs"]["ImPool"][4]["name"] = "AliveCount" +defs["templated_structs"]["ImPool"][4]["type"] = "ImPoolIdx" +defs["templated_structs"]["ImSpan"] = {} +defs["templated_structs"]["ImSpan"][1] = {} +defs["templated_structs"]["ImSpan"][1]["name"] = "Data" +defs["templated_structs"]["ImSpan"][1]["type"] = "T*" +defs["templated_structs"]["ImSpan"][2] = {} +defs["templated_structs"]["ImSpan"][2]["name"] = "DataEnd" +defs["templated_structs"]["ImSpan"][2]["type"] = "T*" +defs["templated_structs"]["ImSpanAllocator"] = {} +defs["templated_structs"]["ImSpanAllocator"][1] = {} +defs["templated_structs"]["ImSpanAllocator"][1]["name"] = "BasePtr" +defs["templated_structs"]["ImSpanAllocator"][1]["type"] = "char*" +defs["templated_structs"]["ImSpanAllocator"][2] = {} +defs["templated_structs"]["ImSpanAllocator"][2]["name"] = "CurrOff" +defs["templated_structs"]["ImSpanAllocator"][2]["type"] = "int" +defs["templated_structs"]["ImSpanAllocator"][3] = {} +defs["templated_structs"]["ImSpanAllocator"][3]["name"] = "CurrIdx" +defs["templated_structs"]["ImSpanAllocator"][3]["type"] = "int" +defs["templated_structs"]["ImSpanAllocator"][4] = {} +defs["templated_structs"]["ImSpanAllocator"][4]["name"] = "Offsets[CHUNKS]" +defs["templated_structs"]["ImSpanAllocator"][4]["type"] = "int" +defs["templated_structs"]["ImSpanAllocator"][5] = {} +defs["templated_structs"]["ImSpanAllocator"][5]["name"] = "Sizes[CHUNKS]" +defs["templated_structs"]["ImSpanAllocator"][5]["type"] = "int" defs["templated_structs"]["ImVector"] = {} defs["templated_structs"]["ImVector"][1] = {} defs["templated_structs"]["ImVector"][1]["name"] = "Size" @@ -3847,27 +8046,76 @@ defs["templated_structs"]["ImVector"][3] = {} defs["templated_structs"]["ImVector"][3]["name"] = "Data" defs["templated_structs"]["ImVector"][3]["type"] = "T*" defs["templates_done"] = {} +defs["templates_done"]["ImBitArray"] = {} +defs["templates_done"]["ImBitArray"]["ImGuiKey_NamedKey_COUNT, -ImGuiKey_NamedKey_BEGIN"] = true +defs["templates_done"]["ImChunkStream"] = {} +defs["templates_done"]["ImChunkStream"]["ImGuiTableSettings"] = true +defs["templates_done"]["ImChunkStream"]["ImGuiWindowSettings"] = true +defs["templates_done"]["ImPool"] = {} +defs["templates_done"]["ImPool"]["ImGuiTabBar"] = true +defs["templates_done"]["ImPool"]["ImGuiTable"] = true +defs["templates_done"]["ImSpan"] = {} +defs["templates_done"]["ImSpan"]["ImGuiTableCellData"] = true +defs["templates_done"]["ImSpan"]["ImGuiTableColumn"] = true +defs["templates_done"]["ImSpan"]["ImGuiTableColumnIdx"] = true defs["templates_done"]["ImVector"] = {} defs["templates_done"]["ImVector"]["ImDrawChannel"] = true defs["templates_done"]["ImVector"]["ImDrawCmd"] = true defs["templates_done"]["ImVector"]["ImDrawIdx"] = true +defs["templates_done"]["ImVector"]["ImDrawList*"] = true defs["templates_done"]["ImVector"]["ImDrawVert"] = true defs["templates_done"]["ImVector"]["ImFont*"] = true defs["templates_done"]["ImVector"]["ImFontAtlasCustomRect"] = true defs["templates_done"]["ImVector"]["ImFontConfig"] = true defs["templates_done"]["ImVector"]["ImFontGlyph"] = true +defs["templates_done"]["ImVector"]["ImGuiColorMod"] = true +defs["templates_done"]["ImVector"]["ImGuiContextHook"] = true +defs["templates_done"]["ImVector"]["ImGuiDockNodeSettings"] = true +defs["templates_done"]["ImVector"]["ImGuiDockRequest"] = true +defs["templates_done"]["ImVector"]["ImGuiGroupData"] = true +defs["templates_done"]["ImVector"]["ImGuiID"] = true +defs["templates_done"]["ImVector"]["ImGuiInputEvent"] = true +defs["templates_done"]["ImVector"]["ImGuiItemFlags"] = true +defs["templates_done"]["ImVector"]["ImGuiKeyRoutingData"] = true +defs["templates_done"]["ImVector"]["ImGuiListClipperData"] = true +defs["templates_done"]["ImVector"]["ImGuiListClipperRange"] = true +defs["templates_done"]["ImVector"]["ImGuiOldColumnData"] = true +defs["templates_done"]["ImVector"]["ImGuiOldColumns"] = true defs["templates_done"]["ImVector"]["ImGuiPlatformMonitor"] = true +defs["templates_done"]["ImVector"]["ImGuiPopupData"] = true +defs["templates_done"]["ImVector"]["ImGuiPtrOrIndex"] = true +defs["templates_done"]["ImVector"]["ImGuiSettingsHandler"] = true +defs["templates_done"]["ImVector"]["ImGuiShrinkWidthItem"] = true +defs["templates_done"]["ImVector"]["ImGuiStackLevelInfo"] = true defs["templates_done"]["ImVector"]["ImGuiStoragePair"] = true +defs["templates_done"]["ImVector"]["ImGuiStyleMod"] = true +defs["templates_done"]["ImVector"]["ImGuiTabBar"] = true +defs["templates_done"]["ImVector"]["ImGuiTabItem"] = true +defs["templates_done"]["ImVector"]["ImGuiTable"] = true +defs["templates_done"]["ImVector"]["ImGuiTableColumnSortSpecs"] = true +defs["templates_done"]["ImVector"]["ImGuiTableInstanceData"] = true +defs["templates_done"]["ImVector"]["ImGuiTableTempData"] = true defs["templates_done"]["ImVector"]["ImGuiTextRange"] = true defs["templates_done"]["ImVector"]["ImGuiViewport*"] = true +defs["templates_done"]["ImVector"]["ImGuiViewportP*"] = true +defs["templates_done"]["ImVector"]["ImGuiWindow*"] = true +defs["templates_done"]["ImVector"]["ImGuiWindowStackData"] = true defs["templates_done"]["ImVector"]["ImTextureID"] = true defs["templates_done"]["ImVector"]["ImU32"] = true defs["templates_done"]["ImVector"]["ImVec2"] = true defs["templates_done"]["ImVector"]["ImVec4"] = true defs["templates_done"]["ImVector"]["ImWchar"] = true defs["templates_done"]["ImVector"]["char"] = true +defs["templates_done"]["ImVector"]["const char*"] = true defs["templates_done"]["ImVector"]["float"] = true +defs["templates_done"]["ImVector"]["int"] = true +defs["templates_done"]["ImVector"]["unsigned char"] = true defs["typenames"] = {} +defs["typenames"]["ImBitArray"] = "int BITCOUNT, int OFFSET = 0" +defs["typenames"]["ImChunkStream"] = "T" +defs["typenames"]["ImPool"] = "T" +defs["typenames"]["ImSpan"] = "T" +defs["typenames"]["ImSpanAllocator"] = "int CHUNKS" defs["typenames"]["ImVector"] = "T" return defs \ No newline at end of file diff --git a/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.json b/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.json index ff1b3335a..3cb480f0d 100644 --- a/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.json +++ b/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.json @@ -1,10 +1,13 @@ { + "ImBitArrayForNamedKeys": "ImBitArray", + "ImBitVector": "struct ImBitVector", "ImColor": "struct ImColor", "ImDrawCallback": "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);", "ImDrawChannel": "struct ImDrawChannel", "ImDrawCmd": "struct ImDrawCmd", "ImDrawCmdHeader": "struct ImDrawCmdHeader", "ImDrawData": "struct ImDrawData", + "ImDrawDataBuilder": "struct ImDrawDataBuilder", "ImDrawFlags": "int", "ImDrawIdx": "unsigned short", "ImDrawList": "struct ImDrawList", @@ -12,6 +15,7 @@ "ImDrawListSharedData": "struct ImDrawListSharedData", "ImDrawListSplitter": "struct ImDrawListSplitter", "ImDrawVert": "struct ImDrawVert", + "ImFileHandle": "FILE*", "ImFont": "struct ImFont", "ImFontAtlas": "struct ImFontAtlas", "ImFontAtlasCustomRect": "struct ImFontAtlasCustomRect", @@ -20,63 +24,144 @@ "ImFontConfig": "struct ImFontConfig", "ImFontGlyph": "struct ImFontGlyph", "ImFontGlyphRangesBuilder": "struct ImFontGlyphRangesBuilder", + "ImGuiActivateFlags": "int", "ImGuiBackendFlags": "int", "ImGuiButtonFlags": "int", "ImGuiCol": "int", "ImGuiColorEditFlags": "int", + "ImGuiColorMod": "struct ImGuiColorMod", "ImGuiComboFlags": "int", + "ImGuiComboPreviewData": "struct ImGuiComboPreviewData", "ImGuiCond": "int", "ImGuiConfigFlags": "int", "ImGuiContext": "struct ImGuiContext", + "ImGuiContextHook": "struct ImGuiContextHook", + "ImGuiContextHookCallback": "void(*)(ImGuiContext* ctx,ImGuiContextHook* hook);", + "ImGuiDataAuthority": "int", "ImGuiDataType": "int", + "ImGuiDataTypeInfo": "struct ImGuiDataTypeInfo", + "ImGuiDataTypeTempStorage": "struct ImGuiDataTypeTempStorage", + "ImGuiDebugLogFlags": "int", "ImGuiDir": "int", + "ImGuiDockContext": "struct ImGuiDockContext", + "ImGuiDockNode": "struct ImGuiDockNode", "ImGuiDockNodeFlags": "int", + "ImGuiDockNodeSettings": "struct ImGuiDockNodeSettings", + "ImGuiDockRequest": "struct ImGuiDockRequest", "ImGuiDragDropFlags": "int", + "ImGuiErrorLogCallback": "void(*)(void* user_data,const char* fmt,...);", "ImGuiFocusedFlags": "int", + "ImGuiGroupData": "struct ImGuiGroupData", "ImGuiHoveredFlags": "int", "ImGuiID": "unsigned int", "ImGuiIO": "struct ImGuiIO", + "ImGuiInputEvent": "struct ImGuiInputEvent", + "ImGuiInputEventAppFocused": "struct ImGuiInputEventAppFocused", + "ImGuiInputEventKey": "struct ImGuiInputEventKey", + "ImGuiInputEventMouseButton": "struct ImGuiInputEventMouseButton", + "ImGuiInputEventMousePos": "struct ImGuiInputEventMousePos", + "ImGuiInputEventMouseViewport": "struct ImGuiInputEventMouseViewport", + "ImGuiInputEventMouseWheel": "struct ImGuiInputEventMouseWheel", + "ImGuiInputEventText": "struct ImGuiInputEventText", + "ImGuiInputFlags": "int", "ImGuiInputTextCallback": "int(*)(ImGuiInputTextCallbackData* data);", "ImGuiInputTextCallbackData": "struct ImGuiInputTextCallbackData", "ImGuiInputTextFlags": "int", + "ImGuiInputTextState": "struct ImGuiInputTextState", + "ImGuiItemFlags": "int", + "ImGuiItemStatusFlags": "int", "ImGuiKeyChord": "int", "ImGuiKeyData": "struct ImGuiKeyData", + "ImGuiKeyOwnerData": "struct ImGuiKeyOwnerData", + "ImGuiKeyRoutingData": "struct ImGuiKeyRoutingData", + "ImGuiKeyRoutingIndex": "ImS16", + "ImGuiKeyRoutingTable": "struct ImGuiKeyRoutingTable", + "ImGuiLastItemData": "struct ImGuiLastItemData", + "ImGuiLayoutType": "int", "ImGuiListClipper": "struct ImGuiListClipper", + "ImGuiListClipperData": "struct ImGuiListClipperData", + "ImGuiListClipperRange": "struct ImGuiListClipperRange", + "ImGuiLocEntry": "struct ImGuiLocEntry", "ImGuiMemAllocFunc": "void*(*)(size_t sz,void* user_data);", "ImGuiMemFreeFunc": "void(*)(void* ptr,void* user_data);", + "ImGuiMenuColumns": "struct ImGuiMenuColumns", + "ImGuiMetricsConfig": "struct ImGuiMetricsConfig", "ImGuiMouseButton": "int", "ImGuiMouseCursor": "int", + "ImGuiNavHighlightFlags": "int", + "ImGuiNavItemData": "struct ImGuiNavItemData", + "ImGuiNavMoveFlags": "int", + "ImGuiNextItemData": "struct ImGuiNextItemData", + "ImGuiNextItemDataFlags": "int", + "ImGuiNextWindowData": "struct ImGuiNextWindowData", + "ImGuiNextWindowDataFlags": "int", + "ImGuiOldColumnData": "struct ImGuiOldColumnData", + "ImGuiOldColumnFlags": "int", + "ImGuiOldColumns": "struct ImGuiOldColumns", "ImGuiOnceUponAFrame": "struct ImGuiOnceUponAFrame", "ImGuiPayload": "struct ImGuiPayload", "ImGuiPlatformIO": "struct ImGuiPlatformIO", "ImGuiPlatformImeData": "struct ImGuiPlatformImeData", "ImGuiPlatformMonitor": "struct ImGuiPlatformMonitor", + "ImGuiPopupData": "struct ImGuiPopupData", "ImGuiPopupFlags": "int", + "ImGuiPtrOrIndex": "struct ImGuiPtrOrIndex", + "ImGuiScrollFlags": "int", "ImGuiSelectableFlags": "int", + "ImGuiSeparatorFlags": "int", + "ImGuiSettingsHandler": "struct ImGuiSettingsHandler", + "ImGuiShrinkWidthItem": "struct ImGuiShrinkWidthItem", "ImGuiSizeCallback": "void(*)(ImGuiSizeCallbackData* data);", "ImGuiSizeCallbackData": "struct ImGuiSizeCallbackData", "ImGuiSliderFlags": "int", "ImGuiSortDirection": "int", + "ImGuiStackLevelInfo": "struct ImGuiStackLevelInfo", + "ImGuiStackSizes": "struct ImGuiStackSizes", + "ImGuiStackTool": "struct ImGuiStackTool", "ImGuiStorage": "struct ImGuiStorage", "ImGuiStoragePair": "struct ImGuiStoragePair", "ImGuiStyle": "struct ImGuiStyle", + "ImGuiStyleMod": "struct ImGuiStyleMod", "ImGuiStyleVar": "int", + "ImGuiTabBar": "struct ImGuiTabBar", "ImGuiTabBarFlags": "int", + "ImGuiTabItem": "struct ImGuiTabItem", "ImGuiTabItemFlags": "int", + "ImGuiTable": "struct ImGuiTable", "ImGuiTableBgTarget": "int", + "ImGuiTableCellData": "struct ImGuiTableCellData", + "ImGuiTableColumn": "struct ImGuiTableColumn", "ImGuiTableColumnFlags": "int", + "ImGuiTableColumnIdx": "ImS8", + "ImGuiTableColumnSettings": "struct ImGuiTableColumnSettings", "ImGuiTableColumnSortSpecs": "struct ImGuiTableColumnSortSpecs", + "ImGuiTableColumnsSettings": "struct ImGuiTableColumnsSettings", + "ImGuiTableDrawChannelIdx": "ImU8", "ImGuiTableFlags": "int", + "ImGuiTableInstanceData": "struct ImGuiTableInstanceData", "ImGuiTableRowFlags": "int", + "ImGuiTableSettings": "struct ImGuiTableSettings", "ImGuiTableSortSpecs": "struct ImGuiTableSortSpecs", + "ImGuiTableTempData": "struct ImGuiTableTempData", "ImGuiTextBuffer": "struct ImGuiTextBuffer", "ImGuiTextFilter": "struct ImGuiTextFilter", + "ImGuiTextFlags": "int", + "ImGuiTextIndex": "struct ImGuiTextIndex", "ImGuiTextRange": "struct ImGuiTextRange", + "ImGuiTooltipFlags": "int", "ImGuiTreeNodeFlags": "int", "ImGuiViewport": "struct ImGuiViewport", "ImGuiViewportFlags": "int", + "ImGuiViewportP": "struct ImGuiViewportP", + "ImGuiWindow": "struct ImGuiWindow", "ImGuiWindowClass": "struct ImGuiWindowClass", + "ImGuiWindowDockStyle": "struct ImGuiWindowDockStyle", "ImGuiWindowFlags": "int", + "ImGuiWindowSettings": "struct ImGuiWindowSettings", + "ImGuiWindowStackData": "struct ImGuiWindowStackData", + "ImGuiWindowTempData": "struct ImGuiWindowTempData", + "ImPoolIdx": "int", + "ImRect": "struct ImRect", "ImS16": "signed short", "ImS32": "signed int", "ImS64": "signed long long", @@ -86,11 +171,17 @@ "ImU32": "unsigned int", "ImU64": "unsigned long long", "ImU8": "unsigned char", + "ImVec1": "struct ImVec1", "ImVec2": "struct ImVec2", + "ImVec2ih": "struct ImVec2ih", "ImVec4": "struct ImVec4", "ImWchar": "ImWchar32", "ImWchar16": "unsigned short", "ImWchar32": "unsigned int", + "STB_TexteditState": "struct STB_TexteditState", + "StbTexteditRow": "struct StbTexteditRow", + "StbUndoRecord": "struct StbUndoRecord", + "StbUndoState": "struct StbUndoState", "const_iterator": "const value_type*", "iterator": "value_type*", "value_type": "T" diff --git a/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.lua b/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.lua index 76de713ae..eba4c8694 100644 --- a/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.lua +++ b/imgui-sys/third-party/imgui-docking-freetype/typedefs_dict.lua @@ -1,10 +1,13 @@ local defs = {} +defs["ImBitArrayForNamedKeys"] = "ImBitArray" +defs["ImBitVector"] = "struct ImBitVector" defs["ImColor"] = "struct ImColor" defs["ImDrawCallback"] = "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);" defs["ImDrawChannel"] = "struct ImDrawChannel" defs["ImDrawCmd"] = "struct ImDrawCmd" defs["ImDrawCmdHeader"] = "struct ImDrawCmdHeader" defs["ImDrawData"] = "struct ImDrawData" +defs["ImDrawDataBuilder"] = "struct ImDrawDataBuilder" defs["ImDrawFlags"] = "int" defs["ImDrawIdx"] = "unsigned short" defs["ImDrawList"] = "struct ImDrawList" @@ -12,6 +15,7 @@ defs["ImDrawListFlags"] = "int" defs["ImDrawListSharedData"] = "struct ImDrawListSharedData" defs["ImDrawListSplitter"] = "struct ImDrawListSplitter" defs["ImDrawVert"] = "struct ImDrawVert" +defs["ImFileHandle"] = "FILE*" defs["ImFont"] = "struct ImFont" defs["ImFontAtlas"] = "struct ImFontAtlas" defs["ImFontAtlasCustomRect"] = "struct ImFontAtlasCustomRect" @@ -20,63 +24,144 @@ defs["ImFontBuilderIO"] = "struct ImFontBuilderIO" defs["ImFontConfig"] = "struct ImFontConfig" defs["ImFontGlyph"] = "struct ImFontGlyph" defs["ImFontGlyphRangesBuilder"] = "struct ImFontGlyphRangesBuilder" +defs["ImGuiActivateFlags"] = "int" defs["ImGuiBackendFlags"] = "int" defs["ImGuiButtonFlags"] = "int" defs["ImGuiCol"] = "int" defs["ImGuiColorEditFlags"] = "int" +defs["ImGuiColorMod"] = "struct ImGuiColorMod" defs["ImGuiComboFlags"] = "int" +defs["ImGuiComboPreviewData"] = "struct ImGuiComboPreviewData" defs["ImGuiCond"] = "int" defs["ImGuiConfigFlags"] = "int" defs["ImGuiContext"] = "struct ImGuiContext" +defs["ImGuiContextHook"] = "struct ImGuiContextHook" +defs["ImGuiContextHookCallback"] = "void(*)(ImGuiContext* ctx,ImGuiContextHook* hook);" +defs["ImGuiDataAuthority"] = "int" defs["ImGuiDataType"] = "int" +defs["ImGuiDataTypeInfo"] = "struct ImGuiDataTypeInfo" +defs["ImGuiDataTypeTempStorage"] = "struct ImGuiDataTypeTempStorage" +defs["ImGuiDebugLogFlags"] = "int" defs["ImGuiDir"] = "int" +defs["ImGuiDockContext"] = "struct ImGuiDockContext" +defs["ImGuiDockNode"] = "struct ImGuiDockNode" defs["ImGuiDockNodeFlags"] = "int" +defs["ImGuiDockNodeSettings"] = "struct ImGuiDockNodeSettings" +defs["ImGuiDockRequest"] = "struct ImGuiDockRequest" defs["ImGuiDragDropFlags"] = "int" +defs["ImGuiErrorLogCallback"] = "void(*)(void* user_data,const char* fmt,...);" defs["ImGuiFocusedFlags"] = "int" +defs["ImGuiGroupData"] = "struct ImGuiGroupData" defs["ImGuiHoveredFlags"] = "int" defs["ImGuiID"] = "unsigned int" defs["ImGuiIO"] = "struct ImGuiIO" +defs["ImGuiInputEvent"] = "struct ImGuiInputEvent" +defs["ImGuiInputEventAppFocused"] = "struct ImGuiInputEventAppFocused" +defs["ImGuiInputEventKey"] = "struct ImGuiInputEventKey" +defs["ImGuiInputEventMouseButton"] = "struct ImGuiInputEventMouseButton" +defs["ImGuiInputEventMousePos"] = "struct ImGuiInputEventMousePos" +defs["ImGuiInputEventMouseViewport"] = "struct ImGuiInputEventMouseViewport" +defs["ImGuiInputEventMouseWheel"] = "struct ImGuiInputEventMouseWheel" +defs["ImGuiInputEventText"] = "struct ImGuiInputEventText" +defs["ImGuiInputFlags"] = "int" defs["ImGuiInputTextCallback"] = "int(*)(ImGuiInputTextCallbackData* data);" defs["ImGuiInputTextCallbackData"] = "struct ImGuiInputTextCallbackData" defs["ImGuiInputTextFlags"] = "int" +defs["ImGuiInputTextState"] = "struct ImGuiInputTextState" +defs["ImGuiItemFlags"] = "int" +defs["ImGuiItemStatusFlags"] = "int" defs["ImGuiKeyChord"] = "int" defs["ImGuiKeyData"] = "struct ImGuiKeyData" +defs["ImGuiKeyOwnerData"] = "struct ImGuiKeyOwnerData" +defs["ImGuiKeyRoutingData"] = "struct ImGuiKeyRoutingData" +defs["ImGuiKeyRoutingIndex"] = "ImS16" +defs["ImGuiKeyRoutingTable"] = "struct ImGuiKeyRoutingTable" +defs["ImGuiLastItemData"] = "struct ImGuiLastItemData" +defs["ImGuiLayoutType"] = "int" defs["ImGuiListClipper"] = "struct ImGuiListClipper" +defs["ImGuiListClipperData"] = "struct ImGuiListClipperData" +defs["ImGuiListClipperRange"] = "struct ImGuiListClipperRange" +defs["ImGuiLocEntry"] = "struct ImGuiLocEntry" defs["ImGuiMemAllocFunc"] = "void*(*)(size_t sz,void* user_data);" defs["ImGuiMemFreeFunc"] = "void(*)(void* ptr,void* user_data);" +defs["ImGuiMenuColumns"] = "struct ImGuiMenuColumns" +defs["ImGuiMetricsConfig"] = "struct ImGuiMetricsConfig" defs["ImGuiMouseButton"] = "int" defs["ImGuiMouseCursor"] = "int" +defs["ImGuiNavHighlightFlags"] = "int" +defs["ImGuiNavItemData"] = "struct ImGuiNavItemData" +defs["ImGuiNavMoveFlags"] = "int" +defs["ImGuiNextItemData"] = "struct ImGuiNextItemData" +defs["ImGuiNextItemDataFlags"] = "int" +defs["ImGuiNextWindowData"] = "struct ImGuiNextWindowData" +defs["ImGuiNextWindowDataFlags"] = "int" +defs["ImGuiOldColumnData"] = "struct ImGuiOldColumnData" +defs["ImGuiOldColumnFlags"] = "int" +defs["ImGuiOldColumns"] = "struct ImGuiOldColumns" defs["ImGuiOnceUponAFrame"] = "struct ImGuiOnceUponAFrame" defs["ImGuiPayload"] = "struct ImGuiPayload" defs["ImGuiPlatformIO"] = "struct ImGuiPlatformIO" defs["ImGuiPlatformImeData"] = "struct ImGuiPlatformImeData" defs["ImGuiPlatformMonitor"] = "struct ImGuiPlatformMonitor" +defs["ImGuiPopupData"] = "struct ImGuiPopupData" defs["ImGuiPopupFlags"] = "int" +defs["ImGuiPtrOrIndex"] = "struct ImGuiPtrOrIndex" +defs["ImGuiScrollFlags"] = "int" defs["ImGuiSelectableFlags"] = "int" +defs["ImGuiSeparatorFlags"] = "int" +defs["ImGuiSettingsHandler"] = "struct ImGuiSettingsHandler" +defs["ImGuiShrinkWidthItem"] = "struct ImGuiShrinkWidthItem" defs["ImGuiSizeCallback"] = "void(*)(ImGuiSizeCallbackData* data);" defs["ImGuiSizeCallbackData"] = "struct ImGuiSizeCallbackData" defs["ImGuiSliderFlags"] = "int" defs["ImGuiSortDirection"] = "int" +defs["ImGuiStackLevelInfo"] = "struct ImGuiStackLevelInfo" +defs["ImGuiStackSizes"] = "struct ImGuiStackSizes" +defs["ImGuiStackTool"] = "struct ImGuiStackTool" defs["ImGuiStorage"] = "struct ImGuiStorage" defs["ImGuiStoragePair"] = "struct ImGuiStoragePair" defs["ImGuiStyle"] = "struct ImGuiStyle" +defs["ImGuiStyleMod"] = "struct ImGuiStyleMod" defs["ImGuiStyleVar"] = "int" +defs["ImGuiTabBar"] = "struct ImGuiTabBar" defs["ImGuiTabBarFlags"] = "int" +defs["ImGuiTabItem"] = "struct ImGuiTabItem" defs["ImGuiTabItemFlags"] = "int" +defs["ImGuiTable"] = "struct ImGuiTable" defs["ImGuiTableBgTarget"] = "int" +defs["ImGuiTableCellData"] = "struct ImGuiTableCellData" +defs["ImGuiTableColumn"] = "struct ImGuiTableColumn" defs["ImGuiTableColumnFlags"] = "int" +defs["ImGuiTableColumnIdx"] = "ImS8" +defs["ImGuiTableColumnSettings"] = "struct ImGuiTableColumnSettings" defs["ImGuiTableColumnSortSpecs"] = "struct ImGuiTableColumnSortSpecs" +defs["ImGuiTableColumnsSettings"] = "struct ImGuiTableColumnsSettings" +defs["ImGuiTableDrawChannelIdx"] = "ImU8" defs["ImGuiTableFlags"] = "int" +defs["ImGuiTableInstanceData"] = "struct ImGuiTableInstanceData" defs["ImGuiTableRowFlags"] = "int" +defs["ImGuiTableSettings"] = "struct ImGuiTableSettings" defs["ImGuiTableSortSpecs"] = "struct ImGuiTableSortSpecs" +defs["ImGuiTableTempData"] = "struct ImGuiTableTempData" defs["ImGuiTextBuffer"] = "struct ImGuiTextBuffer" defs["ImGuiTextFilter"] = "struct ImGuiTextFilter" +defs["ImGuiTextFlags"] = "int" +defs["ImGuiTextIndex"] = "struct ImGuiTextIndex" defs["ImGuiTextRange"] = "struct ImGuiTextRange" +defs["ImGuiTooltipFlags"] = "int" defs["ImGuiTreeNodeFlags"] = "int" defs["ImGuiViewport"] = "struct ImGuiViewport" defs["ImGuiViewportFlags"] = "int" +defs["ImGuiViewportP"] = "struct ImGuiViewportP" +defs["ImGuiWindow"] = "struct ImGuiWindow" defs["ImGuiWindowClass"] = "struct ImGuiWindowClass" +defs["ImGuiWindowDockStyle"] = "struct ImGuiWindowDockStyle" defs["ImGuiWindowFlags"] = "int" +defs["ImGuiWindowSettings"] = "struct ImGuiWindowSettings" +defs["ImGuiWindowStackData"] = "struct ImGuiWindowStackData" +defs["ImGuiWindowTempData"] = "struct ImGuiWindowTempData" +defs["ImPoolIdx"] = "int" +defs["ImRect"] = "struct ImRect" defs["ImS16"] = "signed short" defs["ImS32"] = "signed int" defs["ImS64"] = "signed long long" @@ -86,11 +171,17 @@ defs["ImU16"] = "unsigned short" defs["ImU32"] = "unsigned int" defs["ImU64"] = "unsigned long long" defs["ImU8"] = "unsigned char" +defs["ImVec1"] = "struct ImVec1" defs["ImVec2"] = "struct ImVec2" +defs["ImVec2ih"] = "struct ImVec2ih" defs["ImVec4"] = "struct ImVec4" defs["ImWchar"] = "ImWchar32" defs["ImWchar16"] = "unsigned short" defs["ImWchar32"] = "unsigned int" +defs["STB_TexteditState"] = "struct STB_TexteditState" +defs["StbTexteditRow"] = "struct StbTexteditRow" +defs["StbUndoRecord"] = "struct StbUndoRecord" +defs["StbUndoState"] = "struct StbUndoState" defs["const_iterator"] = "const value_type*" defs["iterator"] = "value_type*" defs["value_type"] = "T" diff --git a/imgui-sys/third-party/imgui-docking-freetype/update-cimgui-output.sh b/imgui-sys/third-party/imgui-docking-freetype/update-cimgui-output.sh index e90099fe6..88c8c2742 100755 --- a/imgui-sys/third-party/imgui-docking-freetype/update-cimgui-output.sh +++ b/imgui-sys/third-party/imgui-docking-freetype/update-cimgui-output.sh @@ -24,7 +24,7 @@ rm ${CIMGUI_DIR}/imgui || : ln -s ${SCRIPT_DIR}/imgui ${CIMGUI_DIR}/imgui # Run the generator -luajit generator.lua gcc freetype -DIMGUI_USE_WCHAR32 +luajit generator.lua gcc "internal,freetype" -DIMGUI_USE_WCHAR32 # Tidy up rm ${CIMGUI_DIR}/imgui # Remove symlink (no recursive rm) From af898e7358a8403785964fb22f0773af3a04ee29 Mon Sep 17 00:00:00 2001 From: dbr Date: Wed, 4 Jan 2023 15:47:24 +1030 Subject: [PATCH 16/18] Fix exclude of .crate file Glob pattern no longer matched anything, including the intermediate cimgui files unnecessarily --- imgui-sys/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui-sys/Cargo.toml b/imgui-sys/Cargo.toml index 692385968..a4205a625 100644 --- a/imgui-sys/Cargo.toml +++ b/imgui-sys/Cargo.toml @@ -14,8 +14,8 @@ links = "imgui" # exclude json, lua, and the imgui subdirs (imgui/examples, imgui/docs, etc) # ..but we need imgui/misc/freetype/ for the freetype feature exclude = [ - "third-party/*.json", - "third-party/*.lua", + "third-party/*/*.json", + "third-party/*/*.lua", "third-party/imgui/backends/", "third-party/imgui/docs/", "third-party/imgui/examples/", From f60edd25cf25f833211917821220064572bd9738 Mon Sep 17 00:00:00 2001 From: dbr Date: Wed, 4 Jan 2023 16:57:25 +1030 Subject: [PATCH 17/18] fmt --- xtask/src/bindgen.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xtask/src/bindgen.rs b/xtask/src/bindgen.rs index d96366395..e686b922a 100644 --- a/xtask/src/bindgen.rs +++ b/xtask/src/bindgen.rs @@ -22,7 +22,10 @@ impl Bindgen { None => "".to_string(), Some(x) => format!("-{}", x), }; - let cimgui_output = root.join(&format!("imgui-sys/third-party/imgui-{}{}", variant, additional)); + let cimgui_output = root.join(&format!( + "imgui-sys/third-party/imgui-{}{}", + variant, additional + )); let types = get_types(&cimgui_output.join("structs_and_enums.json"))?; let funcs = get_definitions(&cimgui_output.join("definitions.json"))?; From a5f40a5fe0524192c6392e9aa54bc525bf73e874 Mon Sep 17 00:00:00 2001 From: dbr Date: Wed, 4 Jan 2023 17:01:15 +1030 Subject: [PATCH 18/18] Fix clippy complaint --- xtask/src/bindgen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/bindgen.rs b/xtask/src/bindgen.rs index e686b922a..6c0d3734b 100644 --- a/xtask/src/bindgen.rs +++ b/xtask/src/bindgen.rs @@ -32,7 +32,7 @@ impl Bindgen { let header = cimgui_output.join("cimgui.h"); let output_name = match (variant, flag) { - ("master", None) => format!("bindings.rs"), + ("master", None) => "bindings.rs".to_string(), ("master", Some(f)) => format!("{}_bindings.rs", f), (var, None) => format!("{}_bindings.rs", var), (var, Some(f)) => format!("{}_{}_bindings.rs", var, f),